@guihz/trading-vue-editor-tes 0.0.40 → 0.0.42
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var o=document.createElement("style");o.appendChild(document.createTextNode(`.line-decoration_modified,.line-decoration_added,.line-decoration_removed{left:auto!important;right:20px;transform:scale(-1);width:4px!important}.line-modified:before{content:"";height:100%;left:0;position:absolute;top:0;transition:width .2s;width:3px;z-index:1;background-image:linear-gradient(-45deg,#2962ff 25%,#0000 0,#0000 50%,#2962ff 0,#2962ff 75%,#0000 0,#0000);background-size:3px 3px}.line-added:before{content:"";height:100%;left:0;position:absolute;top:0;transition:width .2s;width:3px;z-index:1;background:#089950}.modified-in-monaco-diff-editor .line-modified:before,.modified-in-monaco-diff-editor .line-added:before,.modified-in-monaco-diff-editor .line-decoration_removed:after{background:none}.line-modified:hover:before,.line-added:hover:before,.line-decoration_removed:hover:before{width:5px}.line-decoration_removed:hover:before{background-color:#f23645}.line-decoration_removed:hover:after{background:none}.line-decoration_removed:before{content:"";height:100%;left:0;position:absolute;top:0;transition:width .2s;width:3px;z-index:1}.line-decoration_removed:after{background:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='4'%20height='18'%20viewBox='0%200%204%2018'%20fill='%23F23645'%3e%3cpath%20d='M3.7%208.11a.5.5%200%200%201%200%20.67L.89%2012a.5.5%200%200%201-.88-.33V5.3a.5.5%200%200%201%20.87-.33L3.7%208.1Z'/%3e%3c/svg%3e") 50% no-repeat;background-size:5px 20px;content:"";height:10px;left:-4px;position:absolute;top:-3px;transform:scale(-1);width:10px}.content-popup{position:relative;border-bottom:1px solid;display:flex;flex-direction:column;height:100%;-webkit-user-select:none;user-select:none;background-color:#
|
2
|
-
(function(Ae,M){typeof exports=="object"&&typeof module<"u"?M(exports,require("react"),require("monaco-editor"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","monaco-editor","react-dom"],M):(Ae=typeof globalThis<"u"?globalThis:Ae||self,M(Ae.vueEditor={},Ae.react,Ae["monaco-editor"],Ae["react-dom"]))})(this,function(Ae,M,Ze,cu){"use strict";var Dn=document.createElement("style");Dn.textContent=`.line-decoration_modified,.line-decoration_added,.line-decoration_removed{left:auto!important;right:20px;transform:scale(-1);width:4px!important}.line-modified:before{content:"";height:100%;left:0;position:absolute;top:0;transition:width .2s;width:3px;z-index:1;background-image:linear-gradient(-45deg,#2962ff 25%,#0000 0,#0000 50%,#2962ff 0,#2962ff 75%,#0000 0,#0000);background-size:3px 3px}.line-added:before{content:"";height:100%;left:0;position:absolute;top:0;transition:width .2s;width:3px;z-index:1;background:#089950}.modified-in-monaco-diff-editor .line-modified:before,.modified-in-monaco-diff-editor .line-added:before,.modified-in-monaco-diff-editor .line-decoration_removed:after{background:none}.line-modified:hover:before,.line-added:hover:before,.line-decoration_removed:hover:before{width:5px}.line-decoration_removed:hover:before{background-color:#f23645}.line-decoration_removed:hover:after{background:none}.line-decoration_removed:before{content:"";height:100%;left:0;position:absolute;top:0;transition:width .2s;width:3px;z-index:1}.line-decoration_removed:after{background:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='4'%20height='18'%20viewBox='0%200%204%2018'%20fill='%23F23645'%3e%3cpath%20d='M3.7%208.11a.5.5%200%200%201%200%20.67L.89%2012a.5.5%200%200%201-.88-.33V5.3a.5.5%200%200%201%20.87-.33L3.7%208.1Z'/%3e%3c/svg%3e") 50% no-repeat;background-size:5px 20px;content:"";height:10px;left:-4px;position:absolute;top:-3px;transform:scale(-1);width:10px}.content-popup{position:relative;border-bottom:1px solid;display:flex;flex-direction:column;height:100%;-webkit-user-select:none;user-select:none;background-color:#
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var o=document.createElement("style");o.appendChild(document.createTextNode(`.line-decoration_modified,.line-decoration_added,.line-decoration_removed{left:auto!important;right:20px;transform:scale(-1);width:4px!important}.line-modified:before{content:"";height:100%;left:0;position:absolute;top:0;transition:width .2s;width:3px;z-index:1;background-image:linear-gradient(-45deg,#2962ff 25%,#0000 0,#0000 50%,#2962ff 0,#2962ff 75%,#0000 0,#0000);background-size:3px 3px}.line-added:before{content:"";height:100%;left:0;position:absolute;top:0;transition:width .2s;width:3px;z-index:1;background:#089950}.modified-in-monaco-diff-editor .line-modified:before,.modified-in-monaco-diff-editor .line-added:before,.modified-in-monaco-diff-editor .line-decoration_removed:after{background:none}.line-modified:hover:before,.line-added:hover:before,.line-decoration_removed:hover:before{width:5px}.line-decoration_removed:hover:before{background-color:#f23645}.line-decoration_removed:hover:after{background:none}.line-decoration_removed:before{content:"";height:100%;left:0;position:absolute;top:0;transition:width .2s;width:3px;z-index:1}.line-decoration_removed:after{background:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='4'%20height='18'%20viewBox='0%200%204%2018'%20fill='%23F23645'%3e%3cpath%20d='M3.7%208.11a.5.5%200%200%201%200%20.67L.89%2012a.5.5%200%200%201-.88-.33V5.3a.5.5%200%200%201%20.87-.33L3.7%208.1Z'/%3e%3c/svg%3e") 50% no-repeat;background-size:5px 20px;content:"";height:10px;left:-4px;position:absolute;top:-3px;transform:scale(-1);width:10px}.vs-dark .content-popup{background-color:#1e222d}.content-popup{position:relative;border-bottom:1px solid;display:flex;flex-direction:column;height:100%;-webkit-user-select:none;user-select:none;background-color:#fff}.header-popup{align-items:center;position:relative;z-index:1;border-left:0;border-right:0;display:flex;height:22px;justify-content:space-between;margin-top:5px;border-bottom:1px solid #fff;border-top:1px solid #fff;background-color:#fff}.title-popup{font-size:13px;font-weight:400;line-height:18px;margin-left:27px}.actions-popup{align-items:center;display:flex}.button-popup{height:24px;cursor:pointer;justify-content:center;width:24px;display:flex;padding:0 5px;align-items:center;box-sizing:border-box;transition:background-color 60ms ease,opacity 60ms ease,color 60ms ease}.icon-popup{display:flex}.triangle-popup{position:absolute;left:55px;margin-top:1px;height:8px;z-index:0;transform:rotate(-45deg);width:8px}.triangle-modified-popup{background-color:#2962ff}.vs-dark .header-modified-popup{background-color:#1e222d}.header-modified-popup{background-color:#e3effd;border-color:#2962ff}.content-modified-popup{border-bottom-color:#2962ff}.triangle-added-popup{background-color:#089950}.vs-dark .header-added-popup{background-color:#1a3326}.header-added-popup{background-color:#daf2e6;border-color:#089950}.content-added-popup{border-bottom-color:#089950}.triangle-removed-popup{background-color:#f23645}.vs-dark .header-removed-popup{background-color:#331f20}.header-removed-popup{background-color:#ffebec;border-color:#f23645}.content-removed-popup{border-bottom-color:#f23645}.monaco-editor.vs-dark .quick-input-widget{background:#1e222d!important}.monaco-editor .monaco-inputbox:focus-within,.monaco-editor.vs-dark .monaco-inputbox:focus-within{border-color:#2962ff}.monaco-editor .quick-input-widget .monaco-inputbox{background-color:unset!important;border:unset!important}.monaco-editor .quick-input-widget .input:active,.monaco-editor .quick-input-widget .input:focus{border:2px solid #2962ff}.monaco-editor.vs-dark .quick-input-widget .input{background-color:#1e222d!important;color:#d1d4dc!important}.monaco-editor .monaco-inputbox .input{font-size:14px;line-height:18px;outline:none}.monaco-editor .quick-input-widget .input{background-color:#fff!important;border:1px solid #d1d4dc;border-radius:6px;color:#131722!important;height:28px;padding-bottom:5px}.monaco-editor .overflow-guard{overflow:hidden!important}section{display:block!important}.monaco-editor .find-widget .codicon.toggle:before{content:"";font-size:15px;transition:.3s ease-out}.monaco-editor .find-widget.replaceToggled{height:80px!important}.monaco-editor .find-widget{border-bottom-left-radius:6px;border-bottom-right-radius:6px;height:44px!important;width:450px!important;transition:.3s ease-out}.monaco-editor .find-widget.replaceToggled .find-part,.monaco-editor .find-widget.replaceToggled .replace-part{margin-left:17px}.monaco-editor .find-widget .codicon.toggle.codicon-find-expanded{height:77px}.monaco-editor .find-widget.replaceToggled .replace-part{margin-top:8px}.monaco-editor .find-widget .codicon.toggle{border-radius:4px;cursor:default;height:41px;left:2px;top:2px}.monaco-editor .find-widget .monaco-sash{display:none}.monaco-editor .find-widget .find-part{margin-top:8px}.monaco-editor .find-widget .monaco-findInput{width:255px}.monaco-editor .monaco-scrollable-element{--vscode-scrollbarSlider-background: #64646466;margin-bottom:-2px}.monaco-editor.vs-dark .find-widget .monaco-scrollable-element>.monaco-inputbox.idle{background-color:#1e222d!important}.monaco-editor.vs-dark .find-widget .monaco-scrollable-element>.monaco-inputbox.idle{border-color:#50535e!important}.monaco-editor .find-widget .monaco-scrollable-element>.monaco-inputbox.idle{background-color:#fff!important;border-color:#d1d4dc!important;border-radius:6px;height:28px}.monaco-editor.vs-dark .monaco-inputbox,.monaco-editor.vs-dark .monaco-inputbox.idle{border:2px solid #50535e}.monaco-editor .monaco-inputbox,.monaco-editor .monaco-inputbox.idle{border:2px solid #a3a6af;border-radius:4px;overflow:hidden}.monaco-editor .find-widget>.button.codicon-widget-close{top:10px}.monaco-editor .find-widget .codicon.toggle.codicon-find-expanded:before{transform:rotate(180deg)}.monaco-editor .find-widget .monaco-scrollable-element>.monaco-inputbox.idle .ibwrapper>textarea.input{padding-top:4px}.monaco-editor .monaco-inputbox .input{line-height:18px}.monaco-editor.vs-dark .find-widget .monaco-scrollable-element>.monaco-inputbox.synthetic-focus{border:1px solid #2962ff!important}.monaco-editor .find-widget .monaco-scrollable-element>.monaco-inputbox.synthetic-focus{border:1px solid #2962ff!important;outline-color:#0000}.monaco-editor .monaco-inputbox:focus-within{border-color:#2962ff}.vs-dark .context-view .monaco-menu>.monaco-action-bar.vertical{background-color:#1e222d!important}.context-view .monaco-menu>.monaco-action-bar.vertical{background-color:#fff!important}.vs-dark .context-view .monaco-menu>.monaco-action-bar.vertical .action-item .action-menu-item,.vs-dark .context-view .monaco-menu>.monaco-action-bar.vertical .action-item .submenu-indicator{color:#d1d4dc!important}.context-view .monaco-menu>.monaco-action-bar.vertical .action-item .action-menu-item,.context-view .monaco-menu>.monaco-action-bar.vertical .action-item .submenu-indicator{color:#131722!important}.context-view .monaco-menu>.monaco-action-bar.vertical .action-item .action-menu-item{border-radius:0;height:32px;margin:0}.vs-dark .context-view .monaco-menu>.monaco-action-bar.vertical .action-item.focused .action-menu-item,.vs-dark .context-view .monaco-menu>.monaco-action-bar.vertical .action-item.focused .submenu-indicator{background-color:#2a2e39!important;color:#d1d4dc!important}.context-view .monaco-menu>.monaco-action-bar.vertical .action-item.focused .action-menu-item,.context-view .monaco-menu>.monaco-action-bar.vertical .action-item.focused .submenu-indicator{background-color:#f0f3fa!important;color:#131722!important}.vs-dark .context-view .monaco-menu>.monaco-action-bar.vertical .action-label.separator{border-bottom:1px solid #434651!important}.context-view .monaco-menu>.monaco-action-bar.vertical .action-label.separator{border-bottom:1px solid #e0e3eb!important;margin-left:0!important;margin-right:0!important;opacity:1}.vs-dark .context-view .monaco-menu>.monaco-action-bar.vertical .action-item .action-menu-item span.keybinding{color:#5d606b}.context-view .monaco-menu>.monaco-action-bar.vertical .action-item .action-menu-item span.keybinding{color:#9598a1}.monaco-menu{max-height:calc(100vh - 35px)!important}`)),document.head.appendChild(o)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
|
2
|
+
(function(Ae,M){typeof exports=="object"&&typeof module<"u"?M(exports,require("react"),require("monaco-editor"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","monaco-editor","react-dom"],M):(Ae=typeof globalThis<"u"?globalThis:Ae||self,M(Ae.vueEditor={},Ae.react,Ae["monaco-editor"],Ae["react-dom"]))})(this,function(Ae,M,Ze,cu){"use strict";var Dn=document.createElement("style");Dn.textContent=`.line-decoration_modified,.line-decoration_added,.line-decoration_removed{left:auto!important;right:20px;transform:scale(-1);width:4px!important}.line-modified:before{content:"";height:100%;left:0;position:absolute;top:0;transition:width .2s;width:3px;z-index:1;background-image:linear-gradient(-45deg,#2962ff 25%,#0000 0,#0000 50%,#2962ff 0,#2962ff 75%,#0000 0,#0000);background-size:3px 3px}.line-added:before{content:"";height:100%;left:0;position:absolute;top:0;transition:width .2s;width:3px;z-index:1;background:#089950}.modified-in-monaco-diff-editor .line-modified:before,.modified-in-monaco-diff-editor .line-added:before,.modified-in-monaco-diff-editor .line-decoration_removed:after{background:none}.line-modified:hover:before,.line-added:hover:before,.line-decoration_removed:hover:before{width:5px}.line-decoration_removed:hover:before{background-color:#f23645}.line-decoration_removed:hover:after{background:none}.line-decoration_removed:before{content:"";height:100%;left:0;position:absolute;top:0;transition:width .2s;width:3px;z-index:1}.line-decoration_removed:after{background:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='4'%20height='18'%20viewBox='0%200%204%2018'%20fill='%23F23645'%3e%3cpath%20d='M3.7%208.11a.5.5%200%200%201%200%20.67L.89%2012a.5.5%200%200%201-.88-.33V5.3a.5.5%200%200%201%20.87-.33L3.7%208.1Z'/%3e%3c/svg%3e") 50% no-repeat;background-size:5px 20px;content:"";height:10px;left:-4px;position:absolute;top:-3px;transform:scale(-1);width:10px}.vs-dark .content-popup{background-color:#1e222d}.content-popup{position:relative;border-bottom:1px solid;display:flex;flex-direction:column;height:100%;-webkit-user-select:none;user-select:none;background-color:#fff}.header-popup{align-items:center;position:relative;z-index:1;border-left:0;border-right:0;display:flex;height:22px;justify-content:space-between;margin-top:5px;border-bottom:1px solid #fff;border-top:1px solid #fff;background-color:#fff}.title-popup{font-size:13px;font-weight:400;line-height:18px;margin-left:27px}.actions-popup{align-items:center;display:flex}.button-popup{height:24px;cursor:pointer;justify-content:center;width:24px;display:flex;padding:0 5px;align-items:center;box-sizing:border-box;transition:background-color 60ms ease,opacity 60ms ease,color 60ms ease}.icon-popup{display:flex}.triangle-popup{position:absolute;left:55px;margin-top:1px;height:8px;z-index:0;transform:rotate(-45deg);width:8px}.triangle-modified-popup{background-color:#2962ff}.vs-dark .header-modified-popup{background-color:#1e222d}.header-modified-popup{background-color:#e3effd;border-color:#2962ff}.content-modified-popup{border-bottom-color:#2962ff}.triangle-added-popup{background-color:#089950}.vs-dark .header-added-popup{background-color:#1a3326}.header-added-popup{background-color:#daf2e6;border-color:#089950}.content-added-popup{border-bottom-color:#089950}.triangle-removed-popup{background-color:#f23645}.vs-dark .header-removed-popup{background-color:#331f20}.header-removed-popup{background-color:#ffebec;border-color:#f23645}.content-removed-popup{border-bottom-color:#f23645}.monaco-editor.vs-dark .quick-input-widget{background:#1e222d!important}.monaco-editor .monaco-inputbox:focus-within,.monaco-editor.vs-dark .monaco-inputbox:focus-within{border-color:#2962ff}.monaco-editor .quick-input-widget .monaco-inputbox{background-color:unset!important;border:unset!important}.monaco-editor .quick-input-widget .input:active,.monaco-editor .quick-input-widget .input:focus{border:2px solid #2962ff}.monaco-editor.vs-dark .quick-input-widget .input{background-color:#1e222d!important;color:#d1d4dc!important}.monaco-editor .monaco-inputbox .input{font-size:14px;line-height:18px;outline:none}.monaco-editor .quick-input-widget .input{background-color:#fff!important;border:1px solid #d1d4dc;border-radius:6px;color:#131722!important;height:28px;padding-bottom:5px}.monaco-editor .overflow-guard{overflow:hidden!important}section{display:block!important}.monaco-editor .find-widget .codicon.toggle:before{content:"";font-size:15px;transition:.3s ease-out}.monaco-editor .find-widget.replaceToggled{height:80px!important}.monaco-editor .find-widget{border-bottom-left-radius:6px;border-bottom-right-radius:6px;height:44px!important;width:450px!important;transition:.3s ease-out}.monaco-editor .find-widget.replaceToggled .find-part,.monaco-editor .find-widget.replaceToggled .replace-part{margin-left:17px}.monaco-editor .find-widget .codicon.toggle.codicon-find-expanded{height:77px}.monaco-editor .find-widget.replaceToggled .replace-part{margin-top:8px}.monaco-editor .find-widget .codicon.toggle{border-radius:4px;cursor:default;height:41px;left:2px;top:2px}.monaco-editor .find-widget .monaco-sash{display:none}.monaco-editor .find-widget .find-part{margin-top:8px}.monaco-editor .find-widget .monaco-findInput{width:255px}.monaco-editor .monaco-scrollable-element{--vscode-scrollbarSlider-background: #64646466;margin-bottom:-2px}.monaco-editor.vs-dark .find-widget .monaco-scrollable-element>.monaco-inputbox.idle{background-color:#1e222d!important}.monaco-editor.vs-dark .find-widget .monaco-scrollable-element>.monaco-inputbox.idle{border-color:#50535e!important}.monaco-editor .find-widget .monaco-scrollable-element>.monaco-inputbox.idle{background-color:#fff!important;border-color:#d1d4dc!important;border-radius:6px;height:28px}.monaco-editor.vs-dark .monaco-inputbox,.monaco-editor.vs-dark .monaco-inputbox.idle{border:2px solid #50535e}.monaco-editor .monaco-inputbox,.monaco-editor .monaco-inputbox.idle{border:2px solid #a3a6af;border-radius:4px;overflow:hidden}.monaco-editor .find-widget>.button.codicon-widget-close{top:10px}.monaco-editor .find-widget .codicon.toggle.codicon-find-expanded:before{transform:rotate(180deg)}.monaco-editor .find-widget .monaco-scrollable-element>.monaco-inputbox.idle .ibwrapper>textarea.input{padding-top:4px}.monaco-editor .monaco-inputbox .input{line-height:18px}.monaco-editor.vs-dark .find-widget .monaco-scrollable-element>.monaco-inputbox.synthetic-focus{border:1px solid #2962ff!important}.monaco-editor .find-widget .monaco-scrollable-element>.monaco-inputbox.synthetic-focus{border:1px solid #2962ff!important;outline-color:#0000}.monaco-editor .monaco-inputbox:focus-within{border-color:#2962ff}.vs-dark .context-view .monaco-menu>.monaco-action-bar.vertical{background-color:#1e222d!important}.context-view .monaco-menu>.monaco-action-bar.vertical{background-color:#fff!important}.vs-dark .context-view .monaco-menu>.monaco-action-bar.vertical .action-item .action-menu-item,.vs-dark .context-view .monaco-menu>.monaco-action-bar.vertical .action-item .submenu-indicator{color:#d1d4dc!important}.context-view .monaco-menu>.monaco-action-bar.vertical .action-item .action-menu-item,.context-view .monaco-menu>.monaco-action-bar.vertical .action-item .submenu-indicator{color:#131722!important}.context-view .monaco-menu>.monaco-action-bar.vertical .action-item .action-menu-item{border-radius:0;height:32px;margin:0}.vs-dark .context-view .monaco-menu>.monaco-action-bar.vertical .action-item.focused .action-menu-item,.vs-dark .context-view .monaco-menu>.monaco-action-bar.vertical .action-item.focused .submenu-indicator{background-color:#2a2e39!important;color:#d1d4dc!important}.context-view .monaco-menu>.monaco-action-bar.vertical .action-item.focused .action-menu-item,.context-view .monaco-menu>.monaco-action-bar.vertical .action-item.focused .submenu-indicator{background-color:#f0f3fa!important;color:#131722!important}.vs-dark .context-view .monaco-menu>.monaco-action-bar.vertical .action-label.separator{border-bottom:1px solid #434651!important}.context-view .monaco-menu>.monaco-action-bar.vertical .action-label.separator{border-bottom:1px solid #e0e3eb!important;margin-left:0!important;margin-right:0!important;opacity:1}.vs-dark .context-view .monaco-menu>.monaco-action-bar.vertical .action-item .action-menu-item span.keybinding{color:#5d606b}.context-view .monaco-menu>.monaco-action-bar.vertical .action-item .action-menu-item span.keybinding{color:#9598a1}.monaco-menu{max-height:calc(100vh - 35px)!important}
|
3
3
|
`,document.head.appendChild(Dn);var Fa=typeof document<"u"?document.currentScript:null;function uu(s){const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(s){for(const a in s)if(a!=="default"){const o=Object.getOwnPropertyDescriptor(s,a);Object.defineProperty(i,a,o.get?o:{enumerable:!0,get:()=>s[a]})}}return i.default=s,Object.freeze(i)}const du=uu(Ze);var kn;(function(s){s.Comment="comment",s.Text="text",s.String="string",s.Paren="paren",s.StringInvalid="string.invalid",s.ConstantNumericInteger="constant.numeric.integer",s.ConstantNumericFloat="constant.numeric.float",s.ConstantLanguage="constant.language",s.ConstantLanguageBoolean="constant.other.boolean",s.ConstantOtherColor="constant.other.color",s.SupportVariable="support.variable",s.SupportType="support.type",s.Keyword="keyword",s.KeywordEquals="keyword.equals",s.KeywordOperator="keyword.operator",s.CustomType="entity.name.type",s.VariableOther="variable.other",s.Property="variable.other.property",s.SupportFunction="support.function",s.SupportMethod="support.method",s.ImportedFunction="meta.function-call",s.Function="entity.name.function",s.ImportName="entity.name.module",s.ImportAlias="entity.name.module.name",s.ExtensionMethod="entity.name.method",s.Annotation="comment.annotation",s.PunctuationOperator="punctuation.operator",s.Empty="empty",s.Source="source"})(kn||(kn={}));var ht;(function(s){s.Type="type",s.Returns="Returns",s.Syntax="Syntax",s.Remarks="Remarks",s.Fields="Fields",s.Description="Description",s.Example="Example"})(ht||(ht={})),Ae.Actions=void 0,function(s){s.Save="save",s.Find="find",s.TriggerConsole="trigger.console"}(Ae.Actions||(Ae.Actions={}));var ta=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Ys={exports:{}},ra={};/**
|
4
4
|
* @license React
|
5
5
|
* react-jsx-runtime.production.min.js
|
@@ -16,7 +16,7 @@
|
|
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 qn;function mu(){return qn||(qn=1,process.env.NODE_ENV!=="production"&&function(){var s=M,i=Symbol.for("react.element"),a=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),p=Symbol.for("react.profiler"),m=Symbol.for("react.provider"),g=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),b=Symbol.for("react.suspense"),w=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),z=Symbol.for("react.lazy"),E=Symbol.for("react.offscreen"),P=Symbol.iterator,j="@@iterator";function
|
19
|
+
*/var qn;function mu(){return qn||(qn=1,process.env.NODE_ENV!=="production"&&function(){var s=M,i=Symbol.for("react.element"),a=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),p=Symbol.for("react.profiler"),m=Symbol.for("react.provider"),g=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),b=Symbol.for("react.suspense"),w=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),z=Symbol.for("react.lazy"),E=Symbol.for("react.offscreen"),P=Symbol.iterator,j="@@iterator";function re(y){if(y===null||typeof y!="object")return null;var S=P&&y[P]||y[j];return typeof S=="function"?S:null}var me=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function Y(y){{for(var S=arguments.length,N=new Array(S>1?S-1:0),X=1;X<S;X++)N[X-1]=arguments[X];F("error",y,N)}}function F(y,S,N){{var X=me.ReactDebugCurrentFrame,ue=X.getStackAddendum();ue!==""&&(S+="%s",N=N.concat([ue]));var fe=N.map(function(oe){return String(oe)});fe.unshift("Warning: "+S),Function.prototype.apply.call(console[y],console,fe)}}var B=!1,G=!1,ie=!1,J=!1,Pe=!1,be;be=Symbol.for("react.module.reference");function ne(y){return!!(typeof y=="string"||typeof y=="function"||y===o||y===p||Pe||y===u||y===b||y===w||J||y===E||B||G||ie||typeof y=="object"&&y!==null&&(y.$$typeof===z||y.$$typeof===k||y.$$typeof===m||y.$$typeof===g||y.$$typeof===v||y.$$typeof===be||y.getModuleId!==void 0))}function _t(y,S,N){var X=y.displayName;if(X)return X;var ue=S.displayName||S.name||"";return ue!==""?N+"("+ue+")":N}function gt(y){return y.displayName||"Context"}function Ee(y){if(y==null)return null;if(typeof y.tag=="number"&&Y("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 p:return"Profiler";case u:return"StrictMode";case b:return"Suspense";case w:return"SuspenseList"}if(typeof y=="object")switch(y.$$typeof){case g:var S=y;return gt(S)+".Consumer";case m:var N=y;return gt(N._context)+".Provider";case v:return _t(y,y.render,"ForwardRef");case k:var X=y.displayName||null;return X!==null?X:Ee(y.type)||"Memo";case z:{var ue=y,fe=ue._payload,oe=ue._init;try{return Ee(oe(fe))}catch{return null}}}return null}var Re=Object.assign,U=0,de,Se,ze,Fe,Ht,V,ge;function Be(){}Be.__reactDisabledLog=!0;function $t(){{if(U===0){de=console.log,Se=console.info,ze=console.warn,Fe=console.error,Ht=console.group,V=console.groupCollapsed,ge=console.groupEnd;var y={configurable:!0,enumerable:!0,value:Be,writable:!0};Object.defineProperties(console,{info:y,log:y,warn:y,error:y,group:y,groupCollapsed:y,groupEnd:y})}U++}}function Ve(){{if(U--,U===0){var y={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Re({},y,{value:de}),info:Re({},y,{value:Se}),warn:Re({},y,{value:ze}),error:Re({},y,{value:Fe}),group:Re({},y,{value:Ht}),groupCollapsed:Re({},y,{value:V}),groupEnd:Re({},y,{value:ge})})}U<0&&Y("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var nr=me.ReactCurrentDispatcher,pa;function Ft(y,S,N){{if(pa===void 0)try{throw Error()}catch(ue){var X=ue.stack.trim().match(/\n( *(at )?)/);pa=X&&X[1]||""}return`
|
20
20
|
`+pa+y}}var Gt=!1,Or;{var Pr=typeof WeakMap=="function"?WeakMap:Map;Or=new Pr}function br(y,S){if(!y||Gt)return"";{var N=Or.get(y);if(N!==void 0)return N}var X;Gt=!0;var ue=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var fe;fe=nr.current,nr.current=null,$t();try{if(S){var oe=function(){throw Error()};if(Object.defineProperty(oe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(oe,[])}catch(tt){X=tt}Reflect.construct(y,[],oe)}else{try{oe.call()}catch(tt){X=tt}y.call(oe.prototype)}}else{try{throw Error()}catch(tt){X=tt}y()}}catch(tt){if(tt&&X&&typeof tt.stack=="string"){for(var ae=tt.stack.split(`
|
21
21
|
`),Ue=X.stack.split(`
|
22
22
|
`),De=ae.length-1,qe=Ue.length-1;De>=1&&qe>=0&&ae[De]!==Ue[qe];)qe--;for(;De>=1&&qe>=0;De--,qe--)if(ae[De]!==Ue[qe]){if(De!==1||qe!==1)do if(De--,qe--,qe<0||ae[De]!==Ue[qe]){var et=`
|
@@ -26,7 +26,7 @@ Check the render method of \``+y+"`."}return""}}function ci(y){{if(y!==void 0){v
|
|
26
26
|
|
27
27
|
Check your code at `+S+":"+N+"."}return""}}var rs={};function as(y){{var S=ts();if(!S){var N=typeof y=="string"?y:y.displayName||y.name;N&&(S=`
|
28
28
|
|
29
|
-
Check the top-level render call using <`+N+">.")}return S}}function ss(y,S){{if(!y._store||y._store.validated||y.key!=null)return;y._store.validated=!0;var N=as(S);if(rs[N])return;rs[N]=!0;var X="";y&&y._owner&&y._owner!==xa.current&&(X=" It was passed a child from "+Ee(y._owner.type)+"."),Yt(y),Y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',N,X),Yt(null)}}function is(y,S){{if(typeof y!="object")return;if(Xt(y))for(var N=0;N<y.length;N++){var X=y[N];va(X)&&ss(X,S)}else if(va(y))y._store&&(y._store.validated=!0);else if(y){var ue=
|
29
|
+
Check the top-level render call using <`+N+">.")}return S}}function ss(y,S){{if(!y._store||y._store.validated||y.key!=null)return;y._store.validated=!0;var N=as(S);if(rs[N])return;rs[N]=!0;var X="";y&&y._owner&&y._owner!==xa.current&&(X=" It was passed a child from "+Ee(y._owner.type)+"."),Yt(y),Y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',N,X),Yt(null)}}function is(y,S){{if(typeof y!="object")return;if(Xt(y))for(var N=0;N<y.length;N++){var X=y[N];va(X)&&ss(X,S)}else if(va(y))y._store&&(y._store.validated=!0);else if(y){var ue=re(y);if(typeof ue=="function"&&ue!==y.entries)for(var fe=ue.call(y),oe;!(oe=fe.next()).done;)va(oe.value)&&ss(oe.value,S)}}}function ui(y){{var S=y.type;if(S==null||typeof S=="string")return;var N;if(typeof S=="function")N=S.propTypes;else if(typeof S=="object"&&(S.$$typeof===v||S.$$typeof===k))N=S.propTypes;else return;if(N){var X=Ee(S);xr(N,y.props,"prop",X,y)}else if(S.PropTypes!==void 0&&!Br){Br=!0;var ue=Ee(S);Y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ue||"Unknown")}typeof S.getDefaultProps=="function"&&!S.getDefaultProps.isReactClassApproved&&Y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function wa(y){{for(var S=Object.keys(y.props),N=0;N<S.length;N++){var X=S[N];if(X!=="children"&&X!=="key"){Yt(y),Y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",X),Yt(null);break}}y.ref!==null&&(Yt(y),Y("Invalid attribute `ref` supplied to `React.Fragment`."),Yt(null))}}function ns(y,S,N,X,ue,fe){{var oe=ne(y);if(!oe){var ae="";(y===void 0||typeof y=="object"&&y!==null&&Object.keys(y).length===0)&&(ae+=" 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 Ue=ci(ue);Ue?ae+=Ue:ae+=ts();var De;y===null?De="null":Xt(y)?De="array":y!==void 0&&y.$$typeof===i?(De="<"+(Ee(y.type)||"Unknown")+" />",ae=" Did you accidentally export a JSX literal instead of a component?"):De=typeof y,Y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",De,ae)}var qe=li(y,S,N,ue,fe);if(qe==null)return qe;if(oe){var et=S.children;if(et!==void 0)if(X)if(Xt(et)){for(var zt=0;zt<et.length;zt++)is(et[zt],y);Object.freeze&&Object.freeze(et)}else Y("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 is(et,y)}return y===o?wa(qe):ui(qe),qe}}function Ta(y,S,N){return ns(y,S,N,!0)}function di(y,S,N){return ns(y,S,N,!1)}var pi=di,mi=Ta;aa.Fragment=o,aa.jsx=pi,aa.jsxs=mi}()),aa}process.env.NODE_ENV==="production"?Ys.exports=pu():Ys.exports=mu();var nt=Ys.exports;function fu(s,i,a){return i in s?Object.defineProperty(s,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):s[i]=a,s}function Cn(s,i){var a=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);i&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),a.push.apply(a,o)}return a}function Sn(s){for(var i=1;i<arguments.length;i++){var a=arguments[i]!=null?arguments[i]:{};i%2?Cn(Object(a),!0).forEach(function(o){fu(s,o,a[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(a)):Cn(Object(a)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(a,o))})}return s}function yu(s,i){if(s==null)return{};var a={},o=Object.keys(s),u,p;for(p=0;p<o.length;p++)u=o[p],!(i.indexOf(u)>=0)&&(a[u]=s[u]);return a}function hu(s,i){if(s==null)return{};var a=yu(s,i),o,u;if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(s);for(u=0;u<p.length;u++)o=p[u],!(i.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(s,o)&&(a[o]=s[o])}return a}function _u(s,i){return gu(s)||bu(s,i)||xu(s,i)||vu()}function gu(s){if(Array.isArray(s))return s}function bu(s,i){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(s)))){var a=[],o=!0,u=!1,p=void 0;try{for(var m=s[Symbol.iterator](),g;!(o=(g=m.next()).done)&&(a.push(g.value),!(i&&a.length===i));o=!0);}catch(v){u=!0,p=v}finally{try{!o&&m.return!=null&&m.return()}finally{if(u)throw p}}return a}}function xu(s,i){if(s){if(typeof s=="string")return zn(s,i);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 zn(s,i)}}function zn(s,i){(i==null||i>s.length)&&(i=s.length);for(var a=0,o=new Array(i);a<i;a++)o[a]=s[a];return o}function vu(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
30
30
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wu(s,i,a){return i in s?Object.defineProperty(s,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):s[i]=a,s}function Nn(s,i){var a=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);i&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),a.push.apply(a,o)}return a}function On(s){for(var i=1;i<arguments.length;i++){var a=arguments[i]!=null?arguments[i]:{};i%2?Nn(Object(a),!0).forEach(function(o){wu(s,o,a[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(a)):Nn(Object(a)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(a,o))})}return s}function Tu(){for(var s=arguments.length,i=new Array(s),a=0;a<s;a++)i[a]=arguments[a];return function(o){return i.reduceRight(function(u,p){return p(u)},o)}}function sa(s){return function i(){for(var a=this,o=arguments.length,u=new Array(o),p=0;p<o;p++)u[p]=arguments[p];return u.length>=s.length?s.apply(this,u):function(){for(var m=arguments.length,g=new Array(m),v=0;v<m;v++)g[v]=arguments[v];return i.apply(a,[].concat(u,g))}}}function Ba(s){return{}.toString.call(s).includes("Object")}function Iu(s){return!Object.keys(s).length}function ia(s){return typeof s=="function"}function Du(s,i){return Object.prototype.hasOwnProperty.call(s,i)}function ku(s,i){return Ba(i)||sr("changeType"),Object.keys(i).some(function(a){return!Du(s,a)})&&sr("changeField"),i}function Au(s){ia(s)||sr("selectorType")}function qu(s){ia(s)||Ba(s)||sr("handlerType"),Ba(s)&&Object.values(s).some(function(i){return!ia(i)})&&sr("handlersType")}function Cu(s){s||sr("initialIsRequired"),Ba(s)||sr("initialType"),Iu(s)&&sr("initialContent")}function Su(s,i){throw new Error(s[i]||s.default)}var zu={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=sa(Su)(zu),ja={changes:ku,selector:Au,handler:qu,initial:Cu};function Nu(s){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ja.initial(s),ja.handler(i);var a={current:s},o=sa(Eu)(a,i),u=sa(Pu)(a),p=sa(ja.changes)(s),m=sa(Ou)(a);function g(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(w){return w};return ja.selector(b),b(a.current)}function v(b){Tu(o,u,p,m)(b)}return[g,v]}function Ou(s,i){return ia(i)?i(s.current):i}function Pu(s,i){return s.current=On(On({},s.current),i),i}function Eu(s,i,a){return ia(i)?i(s.current):Object.keys(a).forEach(function(o){var u;return(u=i[o])===null||u===void 0?void 0:u.call(i,s.current[o])}),a}var Ru={create:Nu},Mu={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.43.0/min/vs"}};function Lu(s){return function i(){for(var a=this,o=arguments.length,u=new Array(o),p=0;p<o;p++)u[p]=arguments[p];return u.length>=s.length?s.apply(this,u):function(){for(var m=arguments.length,g=new Array(m),v=0;v<m;v++)g[v]=arguments[v];return i.apply(a,[].concat(u,g))}}}function Fu(s){return{}.toString.call(s).includes("Object")}function Bu(s){return s||En("configIsRequired"),Fu(s)||En("configType"),s.urls?(ju(),{paths:{vs:s.urls.monacoBase}}):s}function ju(){console.warn(Pn.deprecation)}function Uu(s,i){throw new Error(s[i]||s.default)}var Pn={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
|
|
@@ -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
|
-
`},En=Lu(Uu)(Pn),Wu={config:Bu},Hu=function(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return function(u){return a.reduceRight(function(p,m){return m(p)},u)}};function Rn(s,i){return Object.keys(i).forEach(function(a){i[a]instanceof Object&&s[a]&&Object.assign(i[a],Rn(s[a],i[a]))}),Sn(Sn({},s),i)}var $u={type:"cancelation",msg:"operation is manually canceled"};function Vs(s){var i=!1,a=new Promise(function(o,u){s.then(function(p){return i?u($u):o(p)}),s.catch(u)});return a.cancel=function(){return i=!0},a}var Gu=Ru.create({config:Mu,isInitialized:!1,resolve:null,reject:null,monaco:null}),Mn=_u(Gu,2),na=Mn[0],Ua=Mn[1];function Xu(s){var i=Wu.config(s),a=i.monaco,o=hu(i,["monaco"]);Ua(function(u){return{config:Rn(u.config,o),monaco:a}})}function Yu(){var s=na(function(i){var a=i.monaco,o=i.isInitialized,u=i.resolve;return{monaco:a,isInitialized:o,resolve:u}});if(!s.isInitialized){if(Ua({isInitialized:!0}),s.monaco)return s.resolve(s.monaco),Vs(Ks);if(window.monaco&&window.monaco.editor)return Ln(window.monaco),s.resolve(window.monaco),Vs(Ks);Hu(Vu,Qu)(Ju)}return Vs(Ks)}function Vu(s){return document.body.appendChild(s)}function Ku(s){var i=document.createElement("script");return s&&(i.src=s),i}function Qu(s){var i=na(function(o){var u=o.config,p=o.reject;return{config:u,reject:p}}),a=Ku("".concat(i.config.paths.vs,"/loader.js"));return a.onload=function(){return s()},a.onerror=i.reject,a}function Ju(){var s=na(function(a){var o=a.config,u=a.resolve,p=a.reject;return{config:o,resolve:u,reject:p}}),i=window.require;i.config(s.config),i(["vs/editor/editor.main"],function(a){Ln(a),s.resolve(a)},function(a){s.reject(a)})}function Ln(s){na().monaco||Ua({monaco:s})}function Zu(){return na(function(s){var i=s.monaco;return i})}var Ks=new Promise(function(s,i){return Ua({resolve:s,reject:i})}),Qs={config:Xu,init:Yu,__getMonacoInstance:Zu},ed={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},Js=ed,td={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},rd=td;function ad({children:s}){return M.createElement("div",{style:rd.container},s)}var sd=ad,id=sd;function nd({width:s,height:i,isEditorReady:a,loading:o,_ref:u,className:p,wrapperProps:m}){return M.createElement("section",{style:{...Js.wrapper,width:s,height:i},...m},!a&&M.createElement(id,null,o),M.createElement("div",{ref:u,style:{...Js.fullWidth,...!a&&Js.hide},className:p}))}var od=nd,Fn=M.memo(od);function ld(s){M.useEffect(s,[])}var Bn=ld;function cd(s,i,a=!0){let o=M.useRef(!0);M.useEffect(o.current||!a?()=>{o.current=!1}:s,i)}var ot=cd;function oa(){}function zr(s,i,a,o){return ud(s,o)||dd(s,i,a,o)}function ud(s,i){return s.editor.getModel(jn(s,i))}function dd(s,i,a,o){return s.editor.createModel(i,a,o?jn(s,o):void 0)}function jn(s,i){return s.Uri.parse(i)}function pd({original:s,modified:i,language:a,originalLanguage:o,modifiedLanguage:u,originalModelPath:p,modifiedModelPath:m,keepCurrentOriginalModel:g=!1,keepCurrentModifiedModel:v=!1,theme:b="light",loading:w="Loading...",options:k={},height:z="100%",width:E="100%",className:P,wrapperProps:j={},beforeMount:
|
39
|
+
`},En=Lu(Uu)(Pn),Wu={config:Bu},Hu=function(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return function(u){return a.reduceRight(function(p,m){return m(p)},u)}};function Rn(s,i){return Object.keys(i).forEach(function(a){i[a]instanceof Object&&s[a]&&Object.assign(i[a],Rn(s[a],i[a]))}),Sn(Sn({},s),i)}var $u={type:"cancelation",msg:"operation is manually canceled"};function Vs(s){var i=!1,a=new Promise(function(o,u){s.then(function(p){return i?u($u):o(p)}),s.catch(u)});return a.cancel=function(){return i=!0},a}var Gu=Ru.create({config:Mu,isInitialized:!1,resolve:null,reject:null,monaco:null}),Mn=_u(Gu,2),na=Mn[0],Ua=Mn[1];function Xu(s){var i=Wu.config(s),a=i.monaco,o=hu(i,["monaco"]);Ua(function(u){return{config:Rn(u.config,o),monaco:a}})}function Yu(){var s=na(function(i){var a=i.monaco,o=i.isInitialized,u=i.resolve;return{monaco:a,isInitialized:o,resolve:u}});if(!s.isInitialized){if(Ua({isInitialized:!0}),s.monaco)return s.resolve(s.monaco),Vs(Ks);if(window.monaco&&window.monaco.editor)return Ln(window.monaco),s.resolve(window.monaco),Vs(Ks);Hu(Vu,Qu)(Ju)}return Vs(Ks)}function Vu(s){return document.body.appendChild(s)}function Ku(s){var i=document.createElement("script");return s&&(i.src=s),i}function Qu(s){var i=na(function(o){var u=o.config,p=o.reject;return{config:u,reject:p}}),a=Ku("".concat(i.config.paths.vs,"/loader.js"));return a.onload=function(){return s()},a.onerror=i.reject,a}function Ju(){var s=na(function(a){var o=a.config,u=a.resolve,p=a.reject;return{config:o,resolve:u,reject:p}}),i=window.require;i.config(s.config),i(["vs/editor/editor.main"],function(a){Ln(a),s.resolve(a)},function(a){s.reject(a)})}function Ln(s){na().monaco||Ua({monaco:s})}function Zu(){return na(function(s){var i=s.monaco;return i})}var Ks=new Promise(function(s,i){return Ua({resolve:s,reject:i})}),Qs={config:Xu,init:Yu,__getMonacoInstance:Zu},ed={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},Js=ed,td={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},rd=td;function ad({children:s}){return M.createElement("div",{style:rd.container},s)}var sd=ad,id=sd;function nd({width:s,height:i,isEditorReady:a,loading:o,_ref:u,className:p,wrapperProps:m}){return M.createElement("section",{style:{...Js.wrapper,width:s,height:i},...m},!a&&M.createElement(id,null,o),M.createElement("div",{ref:u,style:{...Js.fullWidth,...!a&&Js.hide},className:p}))}var od=nd,Fn=M.memo(od);function ld(s){M.useEffect(s,[])}var Bn=ld;function cd(s,i,a=!0){let o=M.useRef(!0);M.useEffect(o.current||!a?()=>{o.current=!1}:s,i)}var ot=cd;function oa(){}function zr(s,i,a,o){return ud(s,o)||dd(s,i,a,o)}function ud(s,i){return s.editor.getModel(jn(s,i))}function dd(s,i,a,o){return s.editor.createModel(i,a,o?jn(s,o):void 0)}function jn(s,i){return s.Uri.parse(i)}function pd({original:s,modified:i,language:a,originalLanguage:o,modifiedLanguage:u,originalModelPath:p,modifiedModelPath:m,keepCurrentOriginalModel:g=!1,keepCurrentModifiedModel:v=!1,theme:b="light",loading:w="Loading...",options:k={},height:z="100%",width:E="100%",className:P,wrapperProps:j={},beforeMount:re=oa,onMount:me=oa}){let[Y,F]=M.useState(!1),[B,G]=M.useState(!0),ie=M.useRef(null),J=M.useRef(null),Pe=M.useRef(null),be=M.useRef(me),ne=M.useRef(re),_t=M.useRef(!1);Bn(()=>{let U=Qs.init();return U.then(de=>(J.current=de)&&G(!1)).catch(de=>(de==null?void 0:de.type)!=="cancelation"&&console.error("Monaco initialization: error:",de)),()=>ie.current?Re():U.cancel()}),ot(()=>{if(ie.current&&J.current){let U=ie.current.getOriginalEditor(),de=zr(J.current,s||"",o||a||"text",p||"");de!==U.getModel()&&U.setModel(de)}},[p],Y),ot(()=>{if(ie.current&&J.current){let U=ie.current.getModifiedEditor(),de=zr(J.current,i||"",u||a||"text",m||"");de!==U.getModel()&&U.setModel(de)}},[m],Y),ot(()=>{let U=ie.current.getModifiedEditor();U.getOption(J.current.editor.EditorOption.readOnly)?U.setValue(i||""):i!==U.getValue()&&(U.executeEdits("",[{range:U.getModel().getFullModelRange(),text:i||"",forceMoveMarkers:!0}]),U.pushUndoStop())},[i],Y),ot(()=>{var U,de;(de=(U=ie.current)==null?void 0:U.getModel())==null||de.original.setValue(s||"")},[s],Y),ot(()=>{let{original:U,modified:de}=ie.current.getModel();J.current.editor.setModelLanguage(U,o||a||"text"),J.current.editor.setModelLanguage(de,u||a||"text")},[a,o,u],Y),ot(()=>{var U;(U=J.current)==null||U.editor.setTheme(b)},[b],Y),ot(()=>{var U;(U=ie.current)==null||U.updateOptions(k)},[k],Y);let gt=M.useCallback(()=>{var Se;if(!J.current)return;ne.current(J.current);let U=zr(J.current,s||"",o||a||"text",p||""),de=zr(J.current,i||"",u||a||"text",m||"");(Se=ie.current)==null||Se.setModel({original:U,modified:de})},[a,i,u,s,o,p,m]),Ee=M.useCallback(()=>{var U;!_t.current&&Pe.current&&(ie.current=J.current.editor.createDiffEditor(Pe.current,{automaticLayout:!0,...k}),gt(),(U=J.current)==null||U.editor.setTheme(b),F(!0),_t.current=!0)},[k,b,gt]);M.useEffect(()=>{Y&&be.current(ie.current,J.current)},[Y]),M.useEffect(()=>{!B&&!Y&&Ee()},[B,Y,Ee]);function Re(){var de,Se,ze,Fe;let U=(de=ie.current)==null?void 0:de.getModel();g||((Se=U==null?void 0:U.original)==null||Se.dispose()),v||((ze=U==null?void 0:U.modified)==null||ze.dispose()),(Fe=ie.current)==null||Fe.dispose()}return M.createElement(Fn,{width:E,height:z,isEditorReady:Y,loading:w,_ref:Pe,className:P,wrapperProps:j})}var md=pd,fd=M.memo(md);function yd(s){let i=M.useRef();return M.useEffect(()=>{i.current=s},[s]),i.current}var hd=yd,Wa=new Map;function _d({defaultValue:s,defaultLanguage:i,defaultPath:a,value:o,language:u,path:p,theme:m="light",line:g,loading:v="Loading...",options:b={},overrideServices:w={},saveViewState:k=!0,keepCurrentModel:z=!1,width:E="100%",height:P="100%",className:j,wrapperProps:re={},beforeMount:me=oa,onMount:Y=oa,onChange:F,onValidate:B=oa}){let[G,ie]=M.useState(!1),[J,Pe]=M.useState(!0),be=M.useRef(null),ne=M.useRef(null),_t=M.useRef(null),gt=M.useRef(Y),Ee=M.useRef(me),Re=M.useRef(),U=M.useRef(o),de=hd(p),Se=M.useRef(!1),ze=M.useRef(!1);Bn(()=>{let V=Qs.init();return V.then(ge=>(be.current=ge)&&Pe(!1)).catch(ge=>(ge==null?void 0:ge.type)!=="cancelation"&&console.error("Monaco initialization: error:",ge)),()=>ne.current?Ht():V.cancel()}),ot(()=>{var ge,Be,$t,Ve;let V=zr(be.current,s||o||"",i||u||"",p||a||"");V!==((ge=ne.current)==null?void 0:ge.getModel())&&(k&&Wa.set(de,(Be=ne.current)==null?void 0:Be.saveViewState()),($t=ne.current)==null||$t.setModel(V),k&&((Ve=ne.current)==null||Ve.restoreViewState(Wa.get(p))))},[p],G),ot(()=>{var V;(V=ne.current)==null||V.updateOptions(b)},[b],G),ot(()=>{!ne.current||o===void 0||(ne.current.getOption(be.current.editor.EditorOption.readOnly)?ne.current.setValue(o):o!==ne.current.getValue()&&(ze.current=!0,ne.current.executeEdits("",[{range:ne.current.getModel().getFullModelRange(),text:o,forceMoveMarkers:!0}]),ne.current.pushUndoStop(),ze.current=!1))},[o],G),ot(()=>{var ge,Be;let V=(ge=ne.current)==null?void 0:ge.getModel();V&&u&&((Be=be.current)==null||Be.editor.setModelLanguage(V,u))},[u],G),ot(()=>{var V;g!==void 0&&((V=ne.current)==null||V.revealLine(g))},[g],G),ot(()=>{var V;(V=be.current)==null||V.editor.setTheme(m)},[m],G);let Fe=M.useCallback(()=>{var V;if(!(!_t.current||!be.current)&&!Se.current){Ee.current(be.current);let ge=p||a,Be=zr(be.current,o||s||"",i||u||"",ge||"");ne.current=(V=be.current)==null?void 0:V.editor.create(_t.current,{model:Be,automaticLayout:!0,...b},w),k&&ne.current.restoreViewState(Wa.get(ge)),be.current.editor.setTheme(m),g!==void 0&&ne.current.revealLine(g),ie(!0),Se.current=!0}},[s,i,a,o,u,p,b,w,k,m,g]);M.useEffect(()=>{G&>.current(ne.current,be.current)},[G]),M.useEffect(()=>{!J&&!G&&Fe()},[J,G,Fe]),U.current=o,M.useEffect(()=>{var V,ge;G&&F&&((V=Re.current)==null||V.dispose(),Re.current=(ge=ne.current)==null?void 0:ge.onDidChangeModelContent(Be=>{ze.current||F(ne.current.getValue(),Be)}))},[G,F]),M.useEffect(()=>{if(G){let V=be.current.editor.onDidChangeMarkers(ge=>{var $t;let Be=($t=ne.current.getModel())==null?void 0:$t.uri;if(Be&&ge.find(Ve=>Ve.path===Be.path)){let Ve=be.current.editor.getModelMarkers({resource:Be});B==null||B(Ve)}});return()=>{V==null||V.dispose()}}return()=>{}},[G,B]);function Ht(){var V,ge;(V=Re.current)==null||V.dispose(),z?k&&Wa.set(p,ne.current.saveViewState()):(ge=ne.current.getModel())==null||ge.dispose(),ne.current.dispose()}return M.createElement(Fn,{width:E,height:P,isEditorReady:G,loading:v,_ref:_t,className:j,wrapperProps:re})}var gd=_d,bd=M.memo(gd);const Un={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
|
…
|
@@ -102,16 +102,16 @@ else
|
|
102
102
|
|
103
103
|
`}bold(i){return`**${i}**`}italic(i){return`*${i.replace(">",">").replace("<","<")}*`}pineCode(i){return`\`\`\`
|
104
104
|
${i}
|
105
|
-
\`\`\``}code(i){return`\`${i}\``}paragraph(...i){return[this.paragraphBreak,...i,this.paragraphBreak].join(this.lineBreak)}link(i,a){return`[${i}](${a.href})`}}const he=new Dd;function kd(s,i=0,a=!0){const o=s[i];if(!o)return"";const u=/(Mac|iPhone|iPod|iPad)/i.test(window.navigator.userAgent),{name:p,title:m,desc:g,type:v,syntax:b,returns:w,remarks:k,fields:z}=o,E=[`${he.bold(p)} (${m})`];if(s.length>1&&E.push(he.italic(`+${s.length-1} overloads`)),E.push(he.delimiter),g&&E.push(he.paragraph(Array.isArray(g)?g.join(he.lineBreak):g||"")),v&&E.push(he.paragraph(he.bold(ht.Type),he.italic(v))),b&&b.length&&E.push(he.paragraph(he.bold(ht.Syntax),he.pineCode(b.join(he.lineBreak)))),w&&E.push(he.paragraph(he.bold(ht.Returns),he.lineBreak,w.join(he.lineBreak))),k&&k.length&&s.length<=1){let P="";typeof k=="string"?P=k:P=k.join(he.lineBreak)||"",P.length<200&&E.push(he.paragraph(he.bold(ht.Remarks),he.lineBreak,P))}if(z){const P=[];for(const j of z){const ee=j.desc?` - ${j.desc}`:"";P.push(`${j.name} (${j.type}) ${ee}`)}E.push(he.paragraph(he.bold(ht.Fields),he.lineBreak,P.join(he.paragraphBreak)))}return a&&E.push(he.italic(`${he.code(u?"⌘":"Ctrl")} + ${vd.clickOnKeywordForMoreHelp}`)),E.join(E.length===2?" ":he.lineBreak)}const Zs="tcc_cursor_position",Ad=["submenuitem.EditorContextPeek","editor.action.peekDefinition"];function qd(s){return s.replace(/<[^<>]+>/,"").replace(/(series|simple|const|input)\s+([\w\d.]+)/,"$2").replace(/\w[\w.\d]*\[\]/,"array")}function Cd(s){const i=s.getContribution("editor.contrib.contextmenu"),a=i==null?void 0:i._getMenuActions;i._getMenuActions=function(){return a.apply(i,arguments).filter(function(u){return!Ad.includes(u.id)})}}class Sd{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=he,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(i){this._nextIsBracket=i}get nextIsBracket(){return this._nextIsBracket}initBuiltinsTrees(){this._getBuiltinsCacheFragment(),this._suggestions=this._getAllCompletionItems(),this._getFuncArgumentsCompletionItemsToCache(this._builtinSubtreeCache.functions)}getArgSuggestions(i){return this._funcArgsCache.get(i)||this._userFuncArgsCache.get(i)}getSuggestions(i){return i?this._namespaceCache.get(i)||this._userNamespaceCache.get(i):this._suggestions.concat(this._userSuggestions)}_initUserDefind(){this._userFuncArgsCache.clear(),this._userNamespaceCache.clear(),this._userOutermostNsItems.clear(),this._methodNamespaceCache.clear(),this._methodFuncs.clear()}setUserDefind(i,a,o,u){this._initUserDefind();const p=this._mergeTreeSlices(this._generateTreeSlice(Rt.methods,"method"),this._generateTreeSlice(u,"method"));this._getMethodNamespaceCache(p),this._userMethods=u,this._userTypes=a,this._userFunctions=i;const m=this._generateTreeSlice(i,"fun");this._userSuggestions=this._getAllUserCompletionItems(m,this._generateTreeSlice(a,"type"),this._generateTreeSlice(o,"var")),this._getUserFuncArgumentsCompletionItemsToCache(m)}_getAllUserCompletionItems(i,a,o){const u=this._getUserVariableCompletionItems(o),p=this._getTypeCompletionItems(a,!0),m=this._getFunctionCompletionItems(i,void 0,!0);return[...p,...m,...u,...this._userOutermostNsItems.values()]}_getAllCompletionItems(){const{variables:i,keywords:a,types:o,functions:u}=this._builtinSubtreeCache,p=this._getVariableCompletionItems(i),m=this._getKeywordCompletionItems(a),g=this._getTypeCompletionItems(o),v=this._getFunctionCompletionItems(u),b=this._getSnippetsCompletionsList();return[...p,...m,...g,...v,...this._outermostNsItems.values(),...b]}_getNodeKey(i,a){return`${a}_${i}`}_mergeTreeSlices(...i){const a=new Map;for(const o of i)for(const[u,p]of o){const m=a.get(u);m?a.set(u,{...m,children:this._mergeTreeSlices(p.children,m.children)}):a.set(u,p)}return a}_mergeCompletions(i,a){const o=this._namespaceCache.get(i);o?this._namespaceCache.set(i,[...o,...a]):this._namespaceCache.set(i,a)}_mergeUserCompletions(i,a){const o=this._userNamespaceCache.get(i);o?this._userNamespaceCache.set(i,[...o,...a]):this._userNamespaceCache.set(i,a)}_generateTreeSlice(i,a){const o=new Map;for(const[u,p]of i){const[m,...g]=u.split("."),v=g.length>0,b=o.get(this._getNodeKey(m,v?"ns":a));let w=new Map,k=p.map(E=>({...E,name:u})),z=this._getNodeKey(u,a);if(v&&a!=="type"){const E=new Map([[g.join("."),p]]);k=[{name:m,title:Ie.namespace}],z=this._getNodeKey(m,"ns"),w=this._generateTreeSlice(E,a)}b&&(k=[{name:m,title:Ie.namespace}],w=this._mergeTreeSlices(b.children,w)),o.set(z,{value:k,children:w})}return o}_getBuiltinsCacheFragment(){const{keywords:i,variables:a,constants:o,types:u,functions:p}=Rt;return this._builtinSubtreeCache={keywords:this._generateTreeSlice(i,"key"),variables:this._mergeTreeSlices(this._generateTreeSlice(a,"var"),this._generateTreeSlice(o,"var")),types:this._generateTreeSlice(u,"type"),functions:this._generateTreeSlice(p,"fun")},this._builtinSubtreeCache}_getVariableCompletionItems(i,a){const o=[],u=[];for(const[p,m]of i){const{value:g,children:v}=m;if(p.startsWith("ns")){const b=this._getNamespaceCompletionItem(g[0]);if(a){u.push({...b});const k=`${a}.${b.label}`;b.label=k,b.insertText=k}const w=this._getVariableCompletionItems(v,b.label);a||this._outermostNsItems.set(p,b),o.push(...w)}else{const b=this._getVariableCompletionItem(g[0],a?3:2);if(a){u.push({...b});const{label:w}=b;b.label=`${a}.${w}`,b.insertText=`${a}.${b.insertText}`,b.filterText=`${w}\r`}o.push(b)}}return u.length&&a&&this._mergeCompletions(a,u),o}_setUserVariableSubItems(i,a){var b,w,k,z;let o=[];const u=qd(i.type||""),p=this._methodNamespaceCache.get(u),m=a?`${a}.${i.name}`:i.name;p&&(o=p.filter(E=>{var me;const P=`${u}.${E.label}`,j=Rt.methods.get(P)||this._userMethods.get(P),ee=j==null?void 0:j.some(Y=>!Y.thisType||Y.thisType[0].includes("<>")||Y.thisType.includes(i.type||""));if(ee&&j){const Y=this._getNamedArgumentsCompletionList(((me=j[0])==null?void 0:me.args)||[]),F=`${m}.${E.label}`;this._userFuncArgsCache.set(F,Y),this._methodFuncs.set(F,j)}return ee}));const{types:g}=Rt,v=((w=(b=this._userTypes.get(u))==null?void 0:b[0])==null?void 0:w.fields)||((z=(k=g.get(u))==null?void 0:k[0])==null?void 0:z.fields);if(v)for(const E of v){const P=E.name,j=E.type,ee=this._getInstanceTypeCompletionItemProp({name:P,type:j});this._setUserVariableSubItems({name:P,type:j},i.name),o.push({...ee})}o.length&&this._mergeUserCompletions(m,o)}_getUserVariableCompletionItems(i,a){const o=[],u=[];for(const[p,m]of i){const{value:g,children:v}=m;if(this._setUserVariableSubItems(g[0]),p.startsWith("ns")){const b=this._getNamespaceCompletionItem(g[0]);if(a){u.push({...b});const k=`${a}.${b.label}`;b.label=k,b.insertText=k}const w=this._getUserVariableCompletionItems(v,b.label);a||this._userOutermostNsItems.set(p,b),o.push(...w)}else{const b=this._getVariableCompletionItem(g[0],a?2:1,!0);if(a){u.push({...b});const{label:w}=b;b.label=`${a}.${w}`,b.insertText=`${a}.${b.insertText}`,b.filterText=`${w}\r`}o.push(b)}}return u.length&&a&&this._mergeUserCompletions(a,u),o}_getTypeCompletionItems(i,a=!1){const o=[];for(const[,u]of i){const{value:p}=u,m=a?this._getCustomTypeCompletionItem(p[0]):this._getTypeCompletionItem(p[0]);o.push(m)}return o}_getKeywordCompletionItems(i){const a=[];for(const[,o]of i){const{value:u}=o,p=this._getKeywordCompletionItem(u[0]);a.push(p)}return a}_getMethodNamespaceCache(i,a){const o=[];for(const[u,p]of i){const{value:m,children:g}=p;if(u.startsWith("ns")){const v=this._getNamespaceCompletionItem(m[0]);if(a){o.push({...v});const b=`${a}.${v.label}`;v.label=b,v.insertText=b}this._getMethodNamespaceCache(g,v.label)}else{const v=this._getFunctionCompletionItem(m[0],a?3:2);if(m.length>1&&(v.detail=`${v.detail} (+${m.length-1} overloads)`),a){o.push({...v});const{label:b}=v;v.label=`${a}.${b}`,v.insertText=`${a}.${v.insertText}`,v.filterText=`${b}\r`}}}a&&this._methodNamespaceCache.set(a,o)}_getFunctionCompletionItems(i,a,o=!1){const u=[],p=[];for(const[m,g]of i){const{value:v,children:b}=g;if(m.startsWith("ns")){const w=this._getNamespaceCompletionItem(v[0]);if(a){p.push({...w});const z=`${a}.${w.label}`;w.label=z,w.insertText=z}const k=this._getFunctionCompletionItems(b,w.label,o);a||(o?this._userOutermostNsItems.set(m,w):this._outermostNsItems.set(m,w)),u.push(...k)}else{const w=this._getFunctionCompletionItem(v[0],a?3:2,o);if(v.length>1&&(w.detail=`${w.detail} (+${v.length-1} overloads)`),a){p.push({...w});const{label:k}=w;w.label=`${a}.${k}`,w.insertText=`${a}.${w.insertText}`,w.filterText=`${k}\r`}u.push(w)}}return p.length&&a&&(o?this._mergeUserCompletions(a,p):this._mergeCompletions(a,p)),u}_getSnippetsCompletionsList(){return xd.map(i=>{const{label:a,kind:o,insertText:u}=i,p=a.charAt(0).toUpperCase()+a.substring(1),m={value:this._formatter.pineCode(u.replace(/\${\d:([^}]+)}|\${\d}/g,"$1"))};return{label:a,detail:`(${p} ${o})`,insertText:u,insertTextRules:Ze.languages.CompletionItemInsertTextRule.InsertAsSnippet,sortText:`2_${a}`,kind:Ze.languages.CompletionItemKind.Snippet,documentation:m}})}_getFuncArgumentsCompletionItemsToCache(i,a){for(const[o,u]of i){const{name:p}=u.value[0];if(o.startsWith("ns"))this._getFuncArgumentsCompletionItemsToCache(u.children,a?`${a}.${p}`:p);else{const m=new Map;u.value.reduce((b,w)=>{const k=w.args;return k&&k.length&&k.forEach(z=>{b.set(z.name,z)}),b},m);const g=this._getNamedArgumentsCompletionList([...m.values()]),v=a?`${a}.${p}`:p;this._funcArgsCache.set(v,g)}}}_getUserFuncArgumentsCompletionItemsToCache(i,a){for(const[o,u]of i){const{name:p}=u.value[0];if(o.startsWith("ns"))this._getUserFuncArgumentsCompletionItemsToCache(u.children,a?`${a}.${p}`:p);else{const m=new Map;u.value.reduce((b,w)=>{const k=w.args;return k&&k.length&&k.forEach(z=>{b.set(z.name,z)}),b},m);const g=this._getNamedArgumentsCompletionList([...m.values()]),v=a?`${a}.${p}`:p;this._userFuncArgsCache.set(v,g)}}}_getNamedArgumentsCompletionList(i){return i.map(a=>{const{name:o,desc:u,displayType:p}=a,m=`${o} = `,g=Array.isArray(u)?u.join(this._formatter.delimiter):u||"";return{label:m,documentation:{value:this._formatter.paragraph(this._formatter.bold(Ie.Description),this._formatter.lineBreak,g)},insertText:m,detail:`(${Ie.parameter}) ${Ie.types} ${p}`,kind:Ze.languages.CompletionItemKind.Text,sortText:`0_${m}`}})}_getVariableCompletionItem(i,a=2,o=!0){const u=this._extractExamples(i),p=this._extractDescription(i),m=[this._createDescriptionSection(p)];u.length?m.push(this._createExampleSection(u)):i.syntax&&i.syntax.length&&m.push(this._createSyntaxSection(i.syntax));const g={value:m.join(this._formatter.lineBreak)},v=o?Ie.variables:Ie.userDefinedVariable;return{documentation:g,label:i.name,insertText:i.name,kind:Ze.languages.CompletionItemKind.Variable,sortText:`${a}_${i.name}`,detail:`(${v}) ${i.type}`}}_getKeywordCompletionItem(i,a=2){const o=this._extractExamples(i),u=this._extractDescription(i),p=[this._createDescriptionSection(u)];return o.length?p.push(this._createExampleSection(o)):i.syntax&&i.syntax.length&&p.push(this._createSyntaxSection(i.syntax)),{documentation:{value:p.join(this._formatter.lineBreak)},label:i.name,insertText:i.name,kind:Ze.languages.CompletionItemKind.Keyword,sortText:`${a}_${i.name}`,detail:`(${Ie.keywords})`}}_getTypeCompletionItem(i){const a=this._extractDescription(i);return{documentation:{value:this._createDescriptionSection(a)},label:i.name,insertText:i.name,kind:Ze.languages.CompletionItemKind.Keyword,sortText:`1_${i.name}`,detail:`(${Ie.types})`}}_getCustomTypeCompletionItem(i){const a=this._extractDescription(i);return{documentation:{value:this._createDescriptionSection(a)},label:i.name,insertText:i.name,kind:Ze.languages.CompletionItemKind.Keyword,sortText:`2_${i.name}`,detail:`(${Ie.userDefinedType})`}}_getInstanceTypeCompletionItemProp(i){const a=this._extractDescription(i),o=[];return a&&o.push(this._formatter.paragraph(this._formatter.bold(ht.Description),this._formatter.lineBreak,a)),{documentation:{value:o.join(this._formatter.lineBreak)},label:i.name,insertText:i.name,kind:Ze.languages.CompletionItemKind.Field,sortText:`2_${i.name}`,detail:`(${Ie.field}) ${i.type}`}}_getFunctionCompletionItem(i,a=2,o=!0){var E;const u=i.returnedTypes&&i.returnedTypes[0]||i.syntax&&i.syntax[0]&&((E=i.syntax[0].split("→").pop())==null?void 0:E.trim()),p=this._extractExamples(i),m=this._extractDescription(i),g=[this._createDescriptionSection(m)];p.length?g.push(this._createExampleSection(p)):i.syntax&&i.syntax.length&&g.push(this._createSyntaxSection(i.syntax)),i.returns&&i.returns.length&&g.push(this._createReturnSection(i.returns));const v={value:g.join(this._formatter.lineBreak)},b=i.name,w=o?Ie.functions:Ie.userDefinedFunction,k=i.template,z=k?`${Id(b)}<\${1}>`:b;return{documentation:v,label:k?`${b.replace(/<.+>/,"")}<type>`:b,kind:Ze.languages.CompletionItemKind.Function,sortText:`${a}_${b}`,insertTextRules:Ze.languages.CompletionItemInsertTextRule.InsertAsSnippet,insertText:z+this.bracketsPostfix,originInsertText:z,detail:`(${w}) ${Ie.returns} ${u}`,command:{id:"tcc.editor.function",title:"",arguments:[k?"editor.action.triggerSuggest":"editor.action.triggerParameterHints"]}}}_getNamespaceCompletionItem(i,a=2){const o=[this._createDescriptionSection(Ie.namespaceDesc)];return{label:i.name,documentation:{value:o.join(this._formatter.lineBreak)},detail:`(${Ie.namespace}) ${i.name}`,insertText:i.name,sortText:`${a}_${i.name}`,kind:Ze.languages.CompletionItemKind.Module}}_extractExamples(i){let a;return i.examples||i.detailedDesc&&((a=i.detailedDesc[0])===null||a===void 0?void 0:a.examples)||[]}_extractDescription(i){return Array.isArray(i.desc)?i.desc.join(this._formatter.lineBreak):i.desc||""}_createExampleSection(i){return this._formatter.paragraph(this._formatter.bold(ht.Example),this._formatter.pineCode(i.join(this._formatter.lineBreak)))}_createSyntaxSection(i){return this._formatter.paragraph(this._formatter.bold(ht.Syntax),this._formatter.pineCode(i.join(this._formatter.lineBreak)))}_createReturnSection(i){return this._formatter.paragraph(this._formatter.bold(ht.Returns),this._formatter.lineBreak,i.join(this._formatter.lineBreak))}_createDescriptionSection(i){return!i||i.trim().length===0?"":this._formatter.paragraph(this._formatter.bold(ht.Description),this._formatter.lineBreak,i)}}const Mt=new Sd;class zd{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(i,a){const{functions:o,variables:u,types:p,methods:m}=i;o&&(this._userFunctions=o),u&&(this._userVariables=u),p&&(this._userTypes=p),m&&(this._userMethods=m),this._overloadsFuncs=a}parseLineContentFuncVar(i,a,o,u){let p=(o==null?void 0:o.getLineContent(a))||"";const m=p.indexOf("//");if(this._removeString(p).indexOf("//")!==-1&&m<=i)return;p=p+" ";const g=this._getVariablesDocVal(p,i,a);if(g){if(g.isBuildIn){const w=o==null?void 0:o.getWordAtPosition(u||new Ze.Position(a,i));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 g}const v=this._getFuncsDocVal(p,i,a);if(v)return v;const b=p.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,p,i);if(w){const k=this._getBuildInOther(w.name);if(k)return{docValue:k,isBuildIn:!0,index:0};{const z=this._getBuildInFunc(`${w.name}<type>`);if(z)return{docValue:z,isBuildIn:!0,index:0}}}}return null}_getBuildInFunc(i){return Rt.functions.get(i)}_getBuildInMethod(i){return Rt.methods.get(i)}_getBuildInOther(i){const{keywords:a,variables:o,constants:u,types:p}=Rt;return a.get(i)||o.get(i)||u.get(i)||p.get(i)}parseCurrentInputFunc(i,a=!1,o=!1){let u=i.length-1,p=0,m=a,g=o;for(;u>=0;){const v=i.charAt(u);if(u-=1,/['"]/.test(v)){const b=v;if(v==="'"){if(m){m=!1;continue}}else if(g){g=!1;continue}for(;u>=0;){const w=i.charAt(u);if(u-=1,w===b)break}}if(!(m||g)&&(/\)/.test(v)&&(p+=1),/\(/.test(v))){if(p>0){p-=1;continue}let b="";for(;u>=0;){const w=i.charAt(u);if(u-=1,!(/\s/.test(w)&&!b)){if(/[^\w.]/.test(w))break;b=w+b}}if(b)return{funcName:b,startIndex:u+1}}}}parseCurrentInputFuncAndArg(i,a=!1,o=!1){const{funcName:u,startIndex:p}=this.parseCurrentInputFunc(i,a,o)||{};if(u&&typeof p=="number"){let m=i.slice(p+u.length).trim().slice(1),g=-1;if(a&&(g=m.lastIndexOf("'")),o){const w=m.lastIndexOf('"');(w!==-1&&w<g||g===-1)&&(g=w)}g!==-1&&(m=m.substring(0,g));const b=m.replace(/[\w.]+\(.*\)/g,"").split(",").map(w=>{const k=w.trim().split("=");return k.length<=1?"":k[0].trim()});return{funcName:u,args:b}}}_removeString(i){return i.replace(/\\"|\\'/g,"").replace(/"[^"]*"|'[^']*'/g,"")}_getVariablesDocVal(i,a,o){const u=this._removeString(i).replace(/\/\/.*/g,"").match(/[a-zA-Z_][a-zA-Z_0-9]*(\s*\.\s*[a-zA-Z_][a-zA-Z_0-9]*)*(?=\s*[^(a-zA-Z_0-9."'<])/g);if(u){const p=this._matchContent(u,i,a);if(p){const m={docValue:void 0,isBuildIn:!0,index:0},g=this._getBuildInOther(p.name);if(g)return m.docValue=g,m;const v=this._getUserVariablesDocVal(p.name,a,o);if(v)return Object.assign(m,{docValue:[v],isBuildIn:!1});const b=this._getUserTypesDocVal(p.name);if(b)return Object.assign(m,{docValue:b,isBuildIn:!1});const w=this._getTypesAndFileds(i,p.name,a,o);if(w&&typeof w!="string")return Object.assign(m,{docValue:[w],isBuildIn:!1})}}}_getUserVariablesDocVal(i,a,o){const m=[...this._userVariables.get(i)||[]].sort((g,v)=>(v.scope||0)-(g.scope||0)).find(g=>{const v=g.range;return((v==null?void 0:v.startColumn)||0)<=a&&((v==null?void 0:v.startLineNumber)||0)<=o&&((v==null?void 0:v.endLineNumber)||0)>=o});if(m)return m.title=Ie.userDefinedVariable,m.type=this._arrayTypeTransform(m.type),m}_getUserTypesDocVal(i){const a=this._userTypes.get(i);if(a)return a[0].title=Ie.userDefinedType,a}_getTypesAndFileds(i,a,o,u){var p,m;if(a.includes(".")){const g=a.split(".");let v=g[0],b,w=null,k=i.indexOf(a,o-a.length)+1,z=k+v.length-1;for(const E of g.slice(1)){if(!w){const P=k<=o&&z>=o,j=this._getUserVariablesDocVal(v,o,u);if(P&&j)return j;w=j==null?void 0:j.type}if(w){b=w,k=z+2,z=z+E.length+1;const P=this._userTypes.get(w)||Rt.types.get(w),j=(m=(p=P==null?void 0:P[0])==null?void 0:p.fields)==null?void 0:m.find(ee=>ee.name===E);if(j&&k<=o&&z>=o)return{name:`${w}.${E}`,desc:j.desc,type:this._arrayTypeTransform(j.type),title:Ie.field};w=j==null?void 0:j.type}else v=`${v}.${E}`,z=z+E.length+1}return b}}_getFuncsDocVal(i,a,o){const u=i.match(/[a-zA-Z_][a-zA-Z_0-9]*(\s*\.\s*[a-zA-Z_][a-zA-Z_0-9]*)*(?=\s*\()/g);if(u){const p=this._matchContent(u,i,a);if(p){const m={docValue:void 0,isBuildIn:!0,index:0},g=this._getBuildInFunc(p.name);if(g)return m.index=this._getOverloadsFuncIndex(g,a,p.name,o),Object.assign(m,{docValue:g});const v=this._getUserFuncsDocVal(p.name);if(v)return Object.assign(m,{docValue:v,isBuildIn:!1});const b=this._getUserVarFuncsDocVal(i,p.name,a,o);if(b)return Object.assign(m,{docValue:[b],isBuildIn:!1})}}}_getOverloadsFuncIndex(i,a,o,u){if(i.length>1){const p=this._overloadsFuncs.find(m=>m.name===o&&m.line===u&&m.startColumn<=a&&m.endColumn>=a);if(p)return p.index}return 0}_getUserFuncsDocVal(i){const a=this._userFunctions.get(i);if(a)return a[0].title=Ie.userDefinedFunction,a}_getUserMethodsDocVal(i){const a=this._userMethods.get(i);if(a)return a[0].title=Ie.userDefinedMethod,a}_getUserVarFuncsDocVal(i,a,o,u){var p;if(a.includes(".")){const m=a.split("."),g=this._getTypesAndFileds(i,a,o,u);if(typeof g=="string"){const b=`${this._arrayTypeTransform(g).replace(/<[^<>]+>/,"").replace(/(series|simple|const|input)\s+([\w\d.]+)/,"$2")}.${m.pop()}`,w=this._getBuildInMethod(b);if(w){const k=this._getOverloadsFuncIndex(w,o,b,u);return{...w[0],name:b,index:k}}return(p=this._getUserMethodsDocVal(b))==null?void 0:p[0]}else return g}}_arrayTypeTransform(i=""){return i.includes("[]")?`array<${i.replace("[]","")}>`:i}_matchContent(i,a,o){let u=0;for(const p of i){u=o-p.length;const m=a.indexOf(p,u);if(u=m+p.length,this._judgeVal(a,m,u)&&m+1<=o&&u>=o)return{name:p,endIndex:u}}}_judgeVal(i,a,o){const u=i.charAt(a-1),p=/[\w\d."']/;if(p.test(u))return!1;const m=i.charAt(o);return!p.test(m)}}const la=new zd;var Ha={exports:{}};/**
|
105
|
+
\`\`\``}code(i){return`\`${i}\``}paragraph(...i){return[this.paragraphBreak,...i,this.paragraphBreak].join(this.lineBreak)}link(i,a){return`[${i}](${a.href})`}}const he=new Dd;function kd(s,i=0,a=!0){const o=s[i];if(!o)return"";const u=/(Mac|iPhone|iPod|iPad)/i.test(window.navigator.userAgent),{name:p,title:m,desc:g,type:v,syntax:b,returns:w,remarks:k,fields:z}=o,E=[`${he.bold(p)} (${m})`];if(s.length>1&&E.push(he.italic(`+${s.length-1} overloads`)),E.push(he.delimiter),g&&E.push(he.paragraph(Array.isArray(g)?g.join(he.lineBreak):g||"")),v&&E.push(he.paragraph(he.bold(ht.Type),he.italic(v))),b&&b.length&&E.push(he.paragraph(he.bold(ht.Syntax),he.pineCode(b.join(he.lineBreak)))),w&&E.push(he.paragraph(he.bold(ht.Returns),he.lineBreak,w.join(he.lineBreak))),k&&k.length&&s.length<=1){let P="";typeof k=="string"?P=k:P=k.join(he.lineBreak)||"",P.length<200&&E.push(he.paragraph(he.bold(ht.Remarks),he.lineBreak,P))}if(z){const P=[];for(const j of z){const re=j.desc?` - ${j.desc}`:"";P.push(`${j.name} (${j.type}) ${re}`)}E.push(he.paragraph(he.bold(ht.Fields),he.lineBreak,P.join(he.paragraphBreak)))}return a&&E.push(he.italic(`${he.code(u?"⌘":"Ctrl")} + ${vd.clickOnKeywordForMoreHelp}`)),E.join(E.length===2?" ":he.lineBreak)}const Zs="tcc_cursor_position",Ad=["submenuitem.EditorContextPeek","editor.action.peekDefinition"];function qd(s){return s.replace(/<[^<>]+>/,"").replace(/(series|simple|const|input)\s+([\w\d.]+)/,"$2").replace(/\w[\w.\d]*\[\]/,"array")}function Cd(s){const i=s.getContribution("editor.contrib.contextmenu"),a=i==null?void 0:i._getMenuActions;i._getMenuActions=function(){return a.apply(i,arguments).filter(function(u){return!Ad.includes(u.id)})}}class Sd{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=he,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(i){this._nextIsBracket=i}get nextIsBracket(){return this._nextIsBracket}initBuiltinsTrees(){this._getBuiltinsCacheFragment(),this._suggestions=this._getAllCompletionItems(),this._getFuncArgumentsCompletionItemsToCache(this._builtinSubtreeCache.functions)}getArgSuggestions(i){return this._funcArgsCache.get(i)||this._userFuncArgsCache.get(i)}getSuggestions(i){return i?this._namespaceCache.get(i)||this._userNamespaceCache.get(i):this._suggestions.concat(this._userSuggestions)}_initUserDefind(){this._userFuncArgsCache.clear(),this._userNamespaceCache.clear(),this._userOutermostNsItems.clear(),this._methodNamespaceCache.clear(),this._methodFuncs.clear()}setUserDefind(i,a,o,u){this._initUserDefind();const p=this._mergeTreeSlices(this._generateTreeSlice(Rt.methods,"method"),this._generateTreeSlice(u,"method"));this._getMethodNamespaceCache(p),this._userMethods=u,this._userTypes=a,this._userFunctions=i;const m=this._generateTreeSlice(i,"fun");this._userSuggestions=this._getAllUserCompletionItems(m,this._generateTreeSlice(a,"type"),this._generateTreeSlice(o,"var")),this._getUserFuncArgumentsCompletionItemsToCache(m)}_getAllUserCompletionItems(i,a,o){const u=this._getUserVariableCompletionItems(o),p=this._getTypeCompletionItems(a,!0),m=this._getFunctionCompletionItems(i,void 0,!0);return[...p,...m,...u,...this._userOutermostNsItems.values()]}_getAllCompletionItems(){const{variables:i,keywords:a,types:o,functions:u}=this._builtinSubtreeCache,p=this._getVariableCompletionItems(i),m=this._getKeywordCompletionItems(a),g=this._getTypeCompletionItems(o),v=this._getFunctionCompletionItems(u),b=this._getSnippetsCompletionsList();return[...p,...m,...g,...v,...this._outermostNsItems.values(),...b]}_getNodeKey(i,a){return`${a}_${i}`}_mergeTreeSlices(...i){const a=new Map;for(const o of i)for(const[u,p]of o){const m=a.get(u);m?a.set(u,{...m,children:this._mergeTreeSlices(p.children,m.children)}):a.set(u,p)}return a}_mergeCompletions(i,a){const o=this._namespaceCache.get(i);o?this._namespaceCache.set(i,[...o,...a]):this._namespaceCache.set(i,a)}_mergeUserCompletions(i,a){const o=this._userNamespaceCache.get(i);o?this._userNamespaceCache.set(i,[...o,...a]):this._userNamespaceCache.set(i,a)}_generateTreeSlice(i,a){const o=new Map;for(const[u,p]of i){const[m,...g]=u.split("."),v=g.length>0,b=o.get(this._getNodeKey(m,v?"ns":a));let w=new Map,k=p.map(E=>({...E,name:u})),z=this._getNodeKey(u,a);if(v&&a!=="type"){const E=new Map([[g.join("."),p]]);k=[{name:m,title:Ie.namespace}],z=this._getNodeKey(m,"ns"),w=this._generateTreeSlice(E,a)}b&&(k=[{name:m,title:Ie.namespace}],w=this._mergeTreeSlices(b.children,w)),o.set(z,{value:k,children:w})}return o}_getBuiltinsCacheFragment(){const{keywords:i,variables:a,constants:o,types:u,functions:p}=Rt;return this._builtinSubtreeCache={keywords:this._generateTreeSlice(i,"key"),variables:this._mergeTreeSlices(this._generateTreeSlice(a,"var"),this._generateTreeSlice(o,"var")),types:this._generateTreeSlice(u,"type"),functions:this._generateTreeSlice(p,"fun")},this._builtinSubtreeCache}_getVariableCompletionItems(i,a){const o=[],u=[];for(const[p,m]of i){const{value:g,children:v}=m;if(p.startsWith("ns")){const b=this._getNamespaceCompletionItem(g[0]);if(a){u.push({...b});const k=`${a}.${b.label}`;b.label=k,b.insertText=k}const w=this._getVariableCompletionItems(v,b.label);a||this._outermostNsItems.set(p,b),o.push(...w)}else{const b=this._getVariableCompletionItem(g[0],a?3:2);if(a){u.push({...b});const{label:w}=b;b.label=`${a}.${w}`,b.insertText=`${a}.${b.insertText}`,b.filterText=`${w}\r`}o.push(b)}}return u.length&&a&&this._mergeCompletions(a,u),o}_setUserVariableSubItems(i,a){var b,w,k,z;let o=[];const u=qd(i.type||""),p=this._methodNamespaceCache.get(u),m=a?`${a}.${i.name}`:i.name;p&&(o=p.filter(E=>{var me;const P=`${u}.${E.label}`,j=Rt.methods.get(P)||this._userMethods.get(P),re=j==null?void 0:j.some(Y=>!Y.thisType||Y.thisType[0].includes("<>")||Y.thisType.includes(i.type||""));if(re&&j){const Y=this._getNamedArgumentsCompletionList(((me=j[0])==null?void 0:me.args)||[]),F=`${m}.${E.label}`;this._userFuncArgsCache.set(F,Y),this._methodFuncs.set(F,j)}return re}));const{types:g}=Rt,v=((w=(b=this._userTypes.get(u))==null?void 0:b[0])==null?void 0:w.fields)||((z=(k=g.get(u))==null?void 0:k[0])==null?void 0:z.fields);if(v)for(const E of v){const P=E.name,j=E.type,re=this._getInstanceTypeCompletionItemProp({name:P,type:j});this._setUserVariableSubItems({name:P,type:j},i.name),o.push({...re})}o.length&&this._mergeUserCompletions(m,o)}_getUserVariableCompletionItems(i,a){const o=[],u=[];for(const[p,m]of i){const{value:g,children:v}=m;if(this._setUserVariableSubItems(g[0]),p.startsWith("ns")){const b=this._getNamespaceCompletionItem(g[0]);if(a){u.push({...b});const k=`${a}.${b.label}`;b.label=k,b.insertText=k}const w=this._getUserVariableCompletionItems(v,b.label);a||this._userOutermostNsItems.set(p,b),o.push(...w)}else{const b=this._getVariableCompletionItem(g[0],a?2:1,!0);if(a){u.push({...b});const{label:w}=b;b.label=`${a}.${w}`,b.insertText=`${a}.${b.insertText}`,b.filterText=`${w}\r`}o.push(b)}}return u.length&&a&&this._mergeUserCompletions(a,u),o}_getTypeCompletionItems(i,a=!1){const o=[];for(const[,u]of i){const{value:p}=u,m=a?this._getCustomTypeCompletionItem(p[0]):this._getTypeCompletionItem(p[0]);o.push(m)}return o}_getKeywordCompletionItems(i){const a=[];for(const[,o]of i){const{value:u}=o,p=this._getKeywordCompletionItem(u[0]);a.push(p)}return a}_getMethodNamespaceCache(i,a){const o=[];for(const[u,p]of i){const{value:m,children:g}=p;if(u.startsWith("ns")){const v=this._getNamespaceCompletionItem(m[0]);if(a){o.push({...v});const b=`${a}.${v.label}`;v.label=b,v.insertText=b}this._getMethodNamespaceCache(g,v.label)}else{const v=this._getFunctionCompletionItem(m[0],a?3:2);if(m.length>1&&(v.detail=`${v.detail} (+${m.length-1} overloads)`),a){o.push({...v});const{label:b}=v;v.label=`${a}.${b}`,v.insertText=`${a}.${v.insertText}`,v.filterText=`${b}\r`}}}a&&this._methodNamespaceCache.set(a,o)}_getFunctionCompletionItems(i,a,o=!1){const u=[],p=[];for(const[m,g]of i){const{value:v,children:b}=g;if(m.startsWith("ns")){const w=this._getNamespaceCompletionItem(v[0]);if(a){p.push({...w});const z=`${a}.${w.label}`;w.label=z,w.insertText=z}const k=this._getFunctionCompletionItems(b,w.label,o);a||(o?this._userOutermostNsItems.set(m,w):this._outermostNsItems.set(m,w)),u.push(...k)}else{const w=this._getFunctionCompletionItem(v[0],a?3:2,o);if(v.length>1&&(w.detail=`${w.detail} (+${v.length-1} overloads)`),a){p.push({...w});const{label:k}=w;w.label=`${a}.${k}`,w.insertText=`${a}.${w.insertText}`,w.filterText=`${k}\r`}u.push(w)}}return p.length&&a&&(o?this._mergeUserCompletions(a,p):this._mergeCompletions(a,p)),u}_getSnippetsCompletionsList(){return xd.map(i=>{const{label:a,kind:o,insertText:u}=i,p=a.charAt(0).toUpperCase()+a.substring(1),m={value:this._formatter.pineCode(u.replace(/\${\d:([^}]+)}|\${\d}/g,"$1"))};return{label:a,detail:`(${p} ${o})`,insertText:u,insertTextRules:Ze.languages.CompletionItemInsertTextRule.InsertAsSnippet,sortText:`2_${a}`,kind:Ze.languages.CompletionItemKind.Snippet,documentation:m}})}_getFuncArgumentsCompletionItemsToCache(i,a){for(const[o,u]of i){const{name:p}=u.value[0];if(o.startsWith("ns"))this._getFuncArgumentsCompletionItemsToCache(u.children,a?`${a}.${p}`:p);else{const m=new Map;u.value.reduce((b,w)=>{const k=w.args;return k&&k.length&&k.forEach(z=>{b.set(z.name,z)}),b},m);const g=this._getNamedArgumentsCompletionList([...m.values()]),v=a?`${a}.${p}`:p;this._funcArgsCache.set(v,g)}}}_getUserFuncArgumentsCompletionItemsToCache(i,a){for(const[o,u]of i){const{name:p}=u.value[0];if(o.startsWith("ns"))this._getUserFuncArgumentsCompletionItemsToCache(u.children,a?`${a}.${p}`:p);else{const m=new Map;u.value.reduce((b,w)=>{const k=w.args;return k&&k.length&&k.forEach(z=>{b.set(z.name,z)}),b},m);const g=this._getNamedArgumentsCompletionList([...m.values()]),v=a?`${a}.${p}`:p;this._userFuncArgsCache.set(v,g)}}}_getNamedArgumentsCompletionList(i){return i.map(a=>{const{name:o,desc:u,displayType:p}=a,m=`${o} = `,g=Array.isArray(u)?u.join(this._formatter.delimiter):u||"";return{label:m,documentation:{value:this._formatter.paragraph(this._formatter.bold(Ie.Description),this._formatter.lineBreak,g)},insertText:m,detail:`(${Ie.parameter}) ${Ie.types} ${p}`,kind:Ze.languages.CompletionItemKind.Text,sortText:`0_${m}`}})}_getVariableCompletionItem(i,a=2,o=!0){const u=this._extractExamples(i),p=this._extractDescription(i),m=[this._createDescriptionSection(p)];u.length?m.push(this._createExampleSection(u)):i.syntax&&i.syntax.length&&m.push(this._createSyntaxSection(i.syntax));const g={value:m.join(this._formatter.lineBreak)},v=o?Ie.variables:Ie.userDefinedVariable;return{documentation:g,label:i.name,insertText:i.name,kind:Ze.languages.CompletionItemKind.Variable,sortText:`${a}_${i.name}`,detail:`(${v}) ${i.type}`}}_getKeywordCompletionItem(i,a=2){const o=this._extractExamples(i),u=this._extractDescription(i),p=[this._createDescriptionSection(u)];return o.length?p.push(this._createExampleSection(o)):i.syntax&&i.syntax.length&&p.push(this._createSyntaxSection(i.syntax)),{documentation:{value:p.join(this._formatter.lineBreak)},label:i.name,insertText:i.name,kind:Ze.languages.CompletionItemKind.Keyword,sortText:`${a}_${i.name}`,detail:`(${Ie.keywords})`}}_getTypeCompletionItem(i){const a=this._extractDescription(i);return{documentation:{value:this._createDescriptionSection(a)},label:i.name,insertText:i.name,kind:Ze.languages.CompletionItemKind.Keyword,sortText:`1_${i.name}`,detail:`(${Ie.types})`}}_getCustomTypeCompletionItem(i){const a=this._extractDescription(i);return{documentation:{value:this._createDescriptionSection(a)},label:i.name,insertText:i.name,kind:Ze.languages.CompletionItemKind.Keyword,sortText:`2_${i.name}`,detail:`(${Ie.userDefinedType})`}}_getInstanceTypeCompletionItemProp(i){const a=this._extractDescription(i),o=[];return a&&o.push(this._formatter.paragraph(this._formatter.bold(ht.Description),this._formatter.lineBreak,a)),{documentation:{value:o.join(this._formatter.lineBreak)},label:i.name,insertText:i.name,kind:Ze.languages.CompletionItemKind.Field,sortText:`2_${i.name}`,detail:`(${Ie.field}) ${i.type}`}}_getFunctionCompletionItem(i,a=2,o=!0){var E;const u=i.returnedTypes&&i.returnedTypes[0]||i.syntax&&i.syntax[0]&&((E=i.syntax[0].split("→").pop())==null?void 0:E.trim()),p=this._extractExamples(i),m=this._extractDescription(i),g=[this._createDescriptionSection(m)];p.length?g.push(this._createExampleSection(p)):i.syntax&&i.syntax.length&&g.push(this._createSyntaxSection(i.syntax)),i.returns&&i.returns.length&&g.push(this._createReturnSection(i.returns));const v={value:g.join(this._formatter.lineBreak)},b=i.name,w=o?Ie.functions:Ie.userDefinedFunction,k=i.template,z=k?`${Id(b)}<\${1}>`:b;return{documentation:v,label:k?`${b.replace(/<.+>/,"")}<type>`:b,kind:Ze.languages.CompletionItemKind.Function,sortText:`${a}_${b}`,insertTextRules:Ze.languages.CompletionItemInsertTextRule.InsertAsSnippet,insertText:z+this.bracketsPostfix,originInsertText:z,detail:`(${w}) ${Ie.returns} ${u}`,command:{id:"tcc.editor.function",title:"",arguments:[k?"editor.action.triggerSuggest":"editor.action.triggerParameterHints"]}}}_getNamespaceCompletionItem(i,a=2){const o=[this._createDescriptionSection(Ie.namespaceDesc)];return{label:i.name,documentation:{value:o.join(this._formatter.lineBreak)},detail:`(${Ie.namespace}) ${i.name}`,insertText:i.name,sortText:`${a}_${i.name}`,kind:Ze.languages.CompletionItemKind.Module}}_extractExamples(i){let a;return i.examples||i.detailedDesc&&((a=i.detailedDesc[0])===null||a===void 0?void 0:a.examples)||[]}_extractDescription(i){return Array.isArray(i.desc)?i.desc.join(this._formatter.lineBreak):i.desc||""}_createExampleSection(i){return this._formatter.paragraph(this._formatter.bold(ht.Example),this._formatter.pineCode(i.join(this._formatter.lineBreak)))}_createSyntaxSection(i){return this._formatter.paragraph(this._formatter.bold(ht.Syntax),this._formatter.pineCode(i.join(this._formatter.lineBreak)))}_createReturnSection(i){return this._formatter.paragraph(this._formatter.bold(ht.Returns),this._formatter.lineBreak,i.join(this._formatter.lineBreak))}_createDescriptionSection(i){return!i||i.trim().length===0?"":this._formatter.paragraph(this._formatter.bold(ht.Description),this._formatter.lineBreak,i)}}const Mt=new Sd;class zd{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(i,a){const{functions:o,variables:u,types:p,methods:m}=i;o&&(this._userFunctions=o),u&&(this._userVariables=u),p&&(this._userTypes=p),m&&(this._userMethods=m),this._overloadsFuncs=a}parseLineContentFuncVar(i,a,o,u){let p=(o==null?void 0:o.getLineContent(a))||"";const m=p.indexOf("//");if(this._removeString(p).indexOf("//")!==-1&&m<=i)return;p=p+" ";const g=this._getVariablesDocVal(p,i,a);if(g){if(g.isBuildIn){const w=o==null?void 0:o.getWordAtPosition(u||new Ze.Position(a,i));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 g}const v=this._getFuncsDocVal(p,i,a);if(v)return v;const b=p.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,p,i);if(w){const k=this._getBuildInOther(w.name);if(k)return{docValue:k,isBuildIn:!0,index:0};{const z=this._getBuildInFunc(`${w.name}<type>`);if(z)return{docValue:z,isBuildIn:!0,index:0}}}}return null}_getBuildInFunc(i){return Rt.functions.get(i)}_getBuildInMethod(i){return Rt.methods.get(i)}_getBuildInOther(i){const{keywords:a,variables:o,constants:u,types:p}=Rt;return a.get(i)||o.get(i)||u.get(i)||p.get(i)}parseCurrentInputFunc(i,a=!1,o=!1){let u=i.length-1,p=0,m=a,g=o;for(;u>=0;){const v=i.charAt(u);if(u-=1,/['"]/.test(v)){const b=v;if(v==="'"){if(m){m=!1;continue}}else if(g){g=!1;continue}for(;u>=0;){const w=i.charAt(u);if(u-=1,w===b)break}}if(!(m||g)&&(/\)/.test(v)&&(p+=1),/\(/.test(v))){if(p>0){p-=1;continue}let b="";for(;u>=0;){const w=i.charAt(u);if(u-=1,!(/\s/.test(w)&&!b)){if(/[^\w.]/.test(w))break;b=w+b}}if(b)return{funcName:b,startIndex:u+1}}}}parseCurrentInputFuncAndArg(i,a=!1,o=!1){const{funcName:u,startIndex:p}=this.parseCurrentInputFunc(i,a,o)||{};if(u&&typeof p=="number"){let m=i.slice(p+u.length).trim().slice(1),g=-1;if(a&&(g=m.lastIndexOf("'")),o){const w=m.lastIndexOf('"');(w!==-1&&w<g||g===-1)&&(g=w)}g!==-1&&(m=m.substring(0,g));const b=m.replace(/[\w.]+\(.*\)/g,"").split(",").map(w=>{const k=w.trim().split("=");return k.length<=1?"":k[0].trim()});return{funcName:u,args:b}}}_removeString(i){return i.replace(/\\"|\\'/g,"").replace(/"[^"]*"|'[^']*'/g,"")}_getVariablesDocVal(i,a,o){const u=this._removeString(i).replace(/\/\/.*/g,"").match(/[a-zA-Z_][a-zA-Z_0-9]*(\s*\.\s*[a-zA-Z_][a-zA-Z_0-9]*)*(?=\s*[^(a-zA-Z_0-9."'<])/g);if(u){const p=this._matchContent(u,i,a);if(p){const m={docValue:void 0,isBuildIn:!0,index:0},g=this._getBuildInOther(p.name);if(g)return m.docValue=g,m;const v=this._getUserVariablesDocVal(p.name,a,o);if(v)return Object.assign(m,{docValue:[v],isBuildIn:!1});const b=this._getUserTypesDocVal(p.name);if(b)return Object.assign(m,{docValue:b,isBuildIn:!1});const w=this._getTypesAndFileds(i,p.name,a,o);if(w&&typeof w!="string")return Object.assign(m,{docValue:[w],isBuildIn:!1})}}}_getUserVariablesDocVal(i,a,o){const m=[...this._userVariables.get(i)||[]].sort((g,v)=>(v.scope||0)-(g.scope||0)).find(g=>{const v=g.range;return((v==null?void 0:v.startColumn)||0)<=a&&((v==null?void 0:v.startLineNumber)||0)<=o&&((v==null?void 0:v.endLineNumber)||0)>=o});if(m)return m.title=Ie.userDefinedVariable,m.type=this._arrayTypeTransform(m.type),m}_getUserTypesDocVal(i){const a=this._userTypes.get(i);if(a)return a[0].title=Ie.userDefinedType,a}_getTypesAndFileds(i,a,o,u){var p,m;if(a.includes(".")){const g=a.split(".");let v=g[0],b,w=null,k=i.indexOf(a,o-a.length)+1,z=k+v.length-1;for(const E of g.slice(1)){if(!w){const P=k<=o&&z>=o,j=this._getUserVariablesDocVal(v,o,u);if(P&&j)return j;w=j==null?void 0:j.type}if(w){b=w,k=z+2,z=z+E.length+1;const P=this._userTypes.get(w)||Rt.types.get(w),j=(m=(p=P==null?void 0:P[0])==null?void 0:p.fields)==null?void 0:m.find(re=>re.name===E);if(j&&k<=o&&z>=o)return{name:`${w}.${E}`,desc:j.desc,type:this._arrayTypeTransform(j.type),title:Ie.field};w=j==null?void 0:j.type}else v=`${v}.${E}`,z=z+E.length+1}return b}}_getFuncsDocVal(i,a,o){const u=i.match(/[a-zA-Z_][a-zA-Z_0-9]*(\s*\.\s*[a-zA-Z_][a-zA-Z_0-9]*)*(?=\s*\()/g);if(u){const p=this._matchContent(u,i,a);if(p){const m={docValue:void 0,isBuildIn:!0,index:0},g=this._getBuildInFunc(p.name);if(g)return m.index=this._getOverloadsFuncIndex(g,a,p.name,o),Object.assign(m,{docValue:g});const v=this._getUserFuncsDocVal(p.name);if(v)return Object.assign(m,{docValue:v,isBuildIn:!1});const b=this._getUserVarFuncsDocVal(i,p.name,a,o);if(b)return Object.assign(m,{docValue:[b],isBuildIn:!1})}}}_getOverloadsFuncIndex(i,a,o,u){if(i.length>1){const p=this._overloadsFuncs.find(m=>m.name===o&&m.line===u&&m.startColumn<=a&&m.endColumn>=a);if(p)return p.index}return 0}_getUserFuncsDocVal(i){const a=this._userFunctions.get(i);if(a)return a[0].title=Ie.userDefinedFunction,a}_getUserMethodsDocVal(i){const a=this._userMethods.get(i);if(a)return a[0].title=Ie.userDefinedMethod,a}_getUserVarFuncsDocVal(i,a,o,u){var p;if(a.includes(".")){const m=a.split("."),g=this._getTypesAndFileds(i,a,o,u);if(typeof g=="string"){const b=`${this._arrayTypeTransform(g).replace(/<[^<>]+>/,"").replace(/(series|simple|const|input)\s+([\w\d.]+)/,"$2")}.${m.pop()}`,w=this._getBuildInMethod(b);if(w){const k=this._getOverloadsFuncIndex(w,o,b,u);return{...w[0],name:b,index:k}}return(p=this._getUserMethodsDocVal(b))==null?void 0:p[0]}else return g}}_arrayTypeTransform(i=""){return i.includes("[]")?`array<${i.replace("[]","")}>`:i}_matchContent(i,a,o){let u=0;for(const p of i){u=o-p.length;const m=a.indexOf(p,u);if(u=m+p.length,this._judgeVal(a,m,u)&&m+1<=o&&u>=o)return{name:p,endIndex:u}}}_judgeVal(i,a,o){const u=i.charAt(a-1),p=/[\w\d."']/;if(p.test(u))return!1;const m=i.charAt(o);return!p.test(m)}}const la=new zd;var Ha={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
|
-
*/Ha.exports,function(s,i){(function(){var a,o="4.17.21",u=200,p="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",m="Expected a function",g="Invalid `variable` option passed into `_.template`",v="__lodash_hash_undefined__",b=500,w="__lodash_placeholder__",k=1,z=2,E=4,P=1,j=2,ee=1,me=2,Y=4,F=8,B=16,G=32,ie=64,J=128,Pe=256,be=512,ne=30,_t="...",gt=800,Ee=16,Re=1,U=2,de=3,Se=1/0,ze=9007199254740991,Fe=17976931348623157e292,Ht=NaN,V=4294967295,ge=V-1,Be=V>>>1,$t=[["ary",J],["bind",ee],["bindKey",me],["curry",F],["curryRight",B],["flip",be],["partial",G],["partialRight",ie],["rearg",Pe]],Ve="[object Arguments]",nr="[object Array]",pa="[object AsyncFunction]",Ft="[object Boolean]",Gt="[object Date]",Or="[object DOMException]",Pr="[object Error]",br="[object Function]",Ja="[object GeneratorFunction]",lt="[object Map]",Bt="[object Number]",Er="[object Null]",bt="[object Object]",ma="[object Promise]",Rr="[object Proxy]",xr="[object RegExp]",ct="[object Set]",Xt="[object String]",Mr="[object Symbol]",oi="[object Undefined]",or="[object WeakMap]",Za="[object WeakSet]",St="[object ArrayBuffer]",lr="[object DataView]",Lr="[object Float32Array]",Fr="[object Float64Array]",vr="[object Int8Array]",fa="[object Int16Array]",ya="[object Int32Array]",ha="[object Uint8Array]",_a="[object Uint8ClampedArray]",ga="[object Uint16Array]",ba="[object Uint32Array]",li=/\b__p \+= '';/g,xa=/\b(__p \+=) '' \+/g,es=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Yt=/&(?:amp|lt|gt|quot|#39);/g,Br=/[&<>"']/g,va=RegExp(Yt.source),ts=RegExp(Br.source),ci=/<%-([\s\S]+?)%>/g,rs=/<%([\s\S]+?)%>/g,as=/<%=([\s\S]+?)%>/g,ss=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,is=/^\w*$/,ui=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,wa=/[\\^$.*+?()[\]{}|]/g,ns=RegExp(wa.source),Ta=/^\s+/,di=/\s/,pi=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,mi=/\{\n\/\* \[wrapped with (.+)\] \*/,y=/,? & /,S=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,N=/[()=,{}\[\]\/\s]/,X=/\\(\\)?/g,ue=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,fe=/\w*$/,oe=/^[-+]0x[0-9a-f]+$/i,ae=/^0b[01]+$/i,Ue=/^\[object .+?Constructor\]$/,De=/^0o[0-7]+$/i,qe=/^(?:0|[1-9]\d*)$/,et=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,zt=/($^)/,os=/['\n\r\u2028\u2029\\]/g,tt="\\ud800-\\udfff",vp="\\u0300-\\u036f",wp="\\ufe20-\\ufe2f",Tp="\\u20d0-\\u20ff",Lo=vp+wp+Tp,Fo="\\u2700-\\u27bf",Bo="a-z\\xdf-\\xf6\\xf8-\\xff",Ip="\\xac\\xb1\\xd7\\xf7",Dp="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",kp="\\u2000-\\u206f",Ap=" \\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",jo="A-Z\\xc0-\\xd6\\xd8-\\xde",Uo="\\ufe0e\\ufe0f",Wo=Ip+Dp+kp+Ap,fi="['’]",qp="["+tt+"]",Ho="["+Wo+"]",ls="["+Lo+"]",$o="\\d+",Cp="["+Fo+"]",Go="["+Bo+"]",Xo="[^"+tt+Wo+$o+Fo+Bo+jo+"]",yi="\\ud83c[\\udffb-\\udfff]",Sp="(?:"+ls+"|"+yi+")",Yo="[^"+tt+"]",hi="(?:\\ud83c[\\udde6-\\uddff]){2}",_i="[\\ud800-\\udbff][\\udc00-\\udfff]",jr="["+jo+"]",Vo="\\u200d",Ko="(?:"+Go+"|"+Xo+")",zp="(?:"+jr+"|"+Xo+")",Qo="(?:"+fi+"(?:d|ll|m|re|s|t|ve))?",Jo="(?:"+fi+"(?:D|LL|M|RE|S|T|VE))?",Zo=Sp+"?",el="["+Uo+"]?",Np="(?:"+Vo+"(?:"+[Yo,hi,_i].join("|")+")"+el+Zo+")*",Op="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Pp="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",tl=el+Zo+Np,Ep="(?:"+[Cp,hi,_i].join("|")+")"+tl,Rp="(?:"+[Yo+ls+"?",ls,hi,_i,qp].join("|")+")",Mp=RegExp(fi,"g"),Lp=RegExp(ls,"g"),gi=RegExp(yi+"(?="+yi+")|"+Rp+tl,"g"),Fp=RegExp([jr+"?"+Go+"+"+Qo+"(?="+[Ho,jr,"$"].join("|")+")",zp+"+"+Jo+"(?="+[Ho,jr+Ko,"$"].join("|")+")",jr+"?"+Ko+"+"+Qo,jr+"+"+Jo,Pp,Op,$o,Ep].join("|"),"g"),Bp=RegExp("["+Vo+tt+Lo+Uo+"]"),jp=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Up=["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"],Wp=-1,we={};we[Lr]=we[Fr]=we[vr]=we[fa]=we[ya]=we[ha]=we[_a]=we[ga]=we[ba]=!0,we[Ve]=we[nr]=we[St]=we[Ft]=we[lr]=we[Gt]=we[Pr]=we[br]=we[lt]=we[Bt]=we[bt]=we[xr]=we[ct]=we[Xt]=we[or]=!1;var ve={};ve[Ve]=ve[nr]=ve[St]=ve[lr]=ve[Ft]=ve[Gt]=ve[Lr]=ve[Fr]=ve[vr]=ve[fa]=ve[ya]=ve[lt]=ve[Bt]=ve[bt]=ve[xr]=ve[ct]=ve[Xt]=ve[Mr]=ve[ha]=ve[_a]=ve[ga]=ve[ba]=!0,ve[Pr]=ve[br]=ve[or]=!1;var Hp={À:"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"},$p={"&":"&","<":"<",">":">",'"':""","'":"'"},Gp={"&":"&","<":"<",">":">",""":'"',"'":"'"},Xp={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Yp=parseFloat,Vp=parseInt,rl=typeof ta=="object"&&ta&&ta.Object===Object&&ta,Kp=typeof self=="object"&&self&&self.Object===Object&&self,We=rl||Kp||Function("return this")(),bi=i&&!i.nodeType&&i,wr=bi&&!0&&s&&!s.nodeType&&s,al=wr&&wr.exports===bi,xi=al&&rl.process,xt=function(){try{var _=wr&&wr.require&&wr.require("util").types;return _||xi&&xi.binding&&xi.binding("util")}catch{}}(),sl=xt&&xt.isArrayBuffer,il=xt&&xt.isDate,nl=xt&&xt.isMap,ol=xt&&xt.isRegExp,ll=xt&&xt.isSet,cl=xt&&xt.isTypedArray;function ut(_,D,T){switch(T.length){case 0:return _.call(D);case 1:return _.call(D,T[0]);case 2:return _.call(D,T[0],T[1]);case 3:return _.call(D,T[0],T[1],T[2])}return _.apply(D,T)}function Qp(_,D,T,R){for(var K=-1,pe=_==null?0:_.length;++K<pe;){var Me=_[K];D(R,Me,T(Me),_)}return R}function vt(_,D){for(var T=-1,R=_==null?0:_.length;++T<R&&D(_[T],T,_)!==!1;);return _}function Jp(_,D){for(var T=_==null?0:_.length;T--&&D(_[T],T,_)!==!1;);return _}function ul(_,D){for(var T=-1,R=_==null?0:_.length;++T<R;)if(!D(_[T],T,_))return!1;return!0}function cr(_,D){for(var T=-1,R=_==null?0:_.length,K=0,pe=[];++T<R;){var Me=_[T];D(Me,T,_)&&(pe[K++]=Me)}return pe}function cs(_,D){var T=_==null?0:_.length;return!!T&&Ur(_,D,0)>-1}function vi(_,D,T){for(var R=-1,K=_==null?0:_.length;++R<K;)if(T(D,_[R]))return!0;return!1}function Te(_,D){for(var T=-1,R=_==null?0:_.length,K=Array(R);++T<R;)K[T]=D(_[T],T,_);return K}function ur(_,D){for(var T=-1,R=D.length,K=_.length;++T<R;)_[K+T]=D[T];return _}function wi(_,D,T,R){var K=-1,pe=_==null?0:_.length;for(R&&pe&&(T=_[++K]);++K<pe;)T=D(T,_[K],K,_);return T}function Zp(_,D,T,R){var K=_==null?0:_.length;for(R&&K&&(T=_[--K]);K--;)T=D(T,_[K],K,_);return T}function Ti(_,D){for(var T=-1,R=_==null?0:_.length;++T<R;)if(D(_[T],T,_))return!0;return!1}var em=Ii("length");function tm(_){return _.split("")}function rm(_){return _.match(S)||[]}function dl(_,D,T){var R;return T(_,function(K,pe,Me){if(D(K,pe,Me))return R=pe,!1}),R}function us(_,D,T,R){for(var K=_.length,pe=T+(R?1:-1);R?pe--:++pe<K;)if(D(_[pe],pe,_))return pe;return-1}function Ur(_,D,T){return D===D?fm(_,D,T):us(_,pl,T)}function am(_,D,T,R){for(var K=T-1,pe=_.length;++K<pe;)if(R(_[K],D))return K;return-1}function pl(_){return _!==_}function ml(_,D){var T=_==null?0:_.length;return T?ki(_,D)/T:Ht}function Ii(_){return function(D){return D==null?a:D[_]}}function Di(_){return function(D){return _==null?a:_[D]}}function fl(_,D,T,R,K){return K(_,function(pe,Me,xe){T=R?(R=!1,pe):D(T,pe,Me,xe)}),T}function sm(_,D){var T=_.length;for(_.sort(D);T--;)_[T]=_[T].value;return _}function ki(_,D){for(var T,R=-1,K=_.length;++R<K;){var pe=D(_[R]);pe!==a&&(T=T===a?pe:T+pe)}return T}function Ai(_,D){for(var T=-1,R=Array(_);++T<_;)R[T]=D(T);return R}function im(_,D){return Te(D,function(T){return[T,_[T]]})}function yl(_){return _&&_.slice(0,bl(_)+1).replace(Ta,"")}function dt(_){return function(D){return _(D)}}function qi(_,D){return Te(D,function(T){return _[T]})}function Ia(_,D){return _.has(D)}function hl(_,D){for(var T=-1,R=_.length;++T<R&&Ur(D,_[T],0)>-1;);return T}function _l(_,D){for(var T=_.length;T--&&Ur(D,_[T],0)>-1;);return T}function nm(_,D){for(var T=_.length,R=0;T--;)_[T]===D&&++R;return R}var om=Di(Hp),lm=Di($p);function cm(_){return"\\"+Xp[_]}function um(_,D){return _==null?a:_[D]}function Wr(_){return Bp.test(_)}function dm(_){return jp.test(_)}function pm(_){for(var D,T=[];!(D=_.next()).done;)T.push(D.value);return T}function Ci(_){var D=-1,T=Array(_.size);return _.forEach(function(R,K){T[++D]=[K,R]}),T}function gl(_,D){return function(T){return _(D(T))}}function dr(_,D){for(var T=-1,R=_.length,K=0,pe=[];++T<R;){var Me=_[T];(Me===D||Me===w)&&(_[T]=w,pe[K++]=T)}return pe}function ds(_){var D=-1,T=Array(_.size);return _.forEach(function(R){T[++D]=R}),T}function mm(_){var D=-1,T=Array(_.size);return _.forEach(function(R){T[++D]=[R,R]}),T}function fm(_,D,T){for(var R=T-1,K=_.length;++R<K;)if(_[R]===D)return R;return-1}function ym(_,D,T){for(var R=T+1;R--;)if(_[R]===D)return R;return R}function Hr(_){return Wr(_)?_m(_):em(_)}function Nt(_){return Wr(_)?gm(_):tm(_)}function bl(_){for(var D=_.length;D--&&di.test(_.charAt(D)););return D}var hm=Di(Gp);function _m(_){for(var D=gi.lastIndex=0;gi.test(_);)++D;return D}function gm(_){return _.match(gi)||[]}function bm(_){return _.match(Fp)||[]}var xm=function _(D){D=D==null?We:$r.defaults(We.Object(),D,$r.pick(We,Up));var T=D.Array,R=D.Date,K=D.Error,pe=D.Function,Me=D.Math,xe=D.Object,Si=D.RegExp,vm=D.String,wt=D.TypeError,ps=T.prototype,wm=pe.prototype,Gr=xe.prototype,ms=D["__core-js_shared__"],fs=wm.toString,_e=Gr.hasOwnProperty,Tm=0,xl=function(){var e=/[^.]+$/.exec(ms&&ms.keys&&ms.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),ys=Gr.toString,Im=fs.call(xe),Dm=We._,km=Si("^"+fs.call(_e).replace(wa,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),hs=al?D.Buffer:a,pr=D.Symbol,_s=D.Uint8Array,vl=hs?hs.allocUnsafe:a,gs=gl(xe.getPrototypeOf,xe),wl=xe.create,Tl=Gr.propertyIsEnumerable,bs=ps.splice,Il=pr?pr.isConcatSpreadable:a,Da=pr?pr.iterator:a,Tr=pr?pr.toStringTag:a,xs=function(){try{var e=qr(xe,"defineProperty");return e({},"",{}),e}catch{}}(),Am=D.clearTimeout!==We.clearTimeout&&D.clearTimeout,qm=R&&R.now!==We.Date.now&&R.now,Cm=D.setTimeout!==We.setTimeout&&D.setTimeout,vs=Me.ceil,ws=Me.floor,zi=xe.getOwnPropertySymbols,Sm=hs?hs.isBuffer:a,Dl=D.isFinite,zm=ps.join,Nm=gl(xe.keys,xe),Le=Me.max,Ge=Me.min,Om=R.now,Pm=D.parseInt,kl=Me.random,Em=ps.reverse,Ni=qr(D,"DataView"),ka=qr(D,"Map"),Oi=qr(D,"Promise"),Xr=qr(D,"Set"),Aa=qr(D,"WeakMap"),qa=qr(xe,"create"),Ts=Aa&&new Aa,Yr={},Rm=Cr(Ni),Mm=Cr(ka),Lm=Cr(Oi),Fm=Cr(Xr),Bm=Cr(Aa),Is=pr?pr.prototype:a,Ca=Is?Is.valueOf:a,Al=Is?Is.toString:a;function c(e){if(Ce(e)&&!Q(e)&&!(e instanceof le)){if(e instanceof Tt)return e;if(_e.call(e,"__wrapped__"))return qc(e)}return new Tt(e)}var Vr=function(){function e(){}return function(t){if(!ke(t))return{};if(wl)return wl(t);e.prototype=t;var r=new e;return e.prototype=a,r}}();function Ds(){}function Tt(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=a}c.templateSettings={escape:ci,evaluate:rs,interpolate:as,variable:"",imports:{_:c}},c.prototype=Ds.prototype,c.prototype.constructor=c,Tt.prototype=Vr(Ds.prototype),Tt.prototype.constructor=Tt;function le(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=V,this.__views__=[]}function jm(){var e=new le(this.__wrapped__);return e.__actions__=rt(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=rt(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=rt(this.__views__),e}function Um(){if(this.__filtered__){var e=new le(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function Wm(){var e=this.__wrapped__.value(),t=this.__dir__,r=Q(e),n=t<0,l=r?e.length:0,d=ry(0,l,this.__views__),f=d.start,h=d.end,x=h-f,A=n?h:f-1,q=this.__iteratees__,C=q.length,O=0,L=Ge(x,this.__takeCount__);if(!r||!n&&l==x&&L==x)return Ql(e,this.__actions__);var H=[];e:for(;x--&&O<L;){A+=t;for(var te=-1,$=e[A];++te<C;){var se=q[te],ce=se.iteratee,ft=se.type,Je=ce($);if(ft==U)$=Je;else if(!Je){if(ft==Re)continue e;break e}}H[O++]=$}return H}le.prototype=Vr(Ds.prototype),le.prototype.constructor=le;function Ir(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Hm(){this.__data__=qa?qa(null):{},this.size=0}function $m(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function Gm(e){var t=this.__data__;if(qa){var r=t[e];return r===v?a:r}return _e.call(t,e)?t[e]:a}function Xm(e){var t=this.__data__;return qa?t[e]!==a:_e.call(t,e)}function Ym(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=qa&&t===a?v:t,this}Ir.prototype.clear=Hm,Ir.prototype.delete=$m,Ir.prototype.get=Gm,Ir.prototype.has=Xm,Ir.prototype.set=Ym;function Vt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Vm(){this.__data__=[],this.size=0}function Km(e){var t=this.__data__,r=ks(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():bs.call(t,r,1),--this.size,!0}function Qm(e){var t=this.__data__,r=ks(t,e);return r<0?a:t[r][1]}function Jm(e){return ks(this.__data__,e)>-1}function Zm(e,t){var r=this.__data__,n=ks(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}Vt.prototype.clear=Vm,Vt.prototype.delete=Km,Vt.prototype.get=Qm,Vt.prototype.has=Jm,Vt.prototype.set=Zm;function Kt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function ef(){this.size=0,this.__data__={hash:new Ir,map:new(ka||Vt),string:new Ir}}function tf(e){var t=Ls(this,e).delete(e);return this.size-=t?1:0,t}function rf(e){return Ls(this,e).get(e)}function af(e){return Ls(this,e).has(e)}function sf(e,t){var r=Ls(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}Kt.prototype.clear=ef,Kt.prototype.delete=tf,Kt.prototype.get=rf,Kt.prototype.has=af,Kt.prototype.set=sf;function Dr(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Kt;++t<r;)this.add(e[t])}function nf(e){return this.__data__.set(e,v),this}function of(e){return this.__data__.has(e)}Dr.prototype.add=Dr.prototype.push=nf,Dr.prototype.has=of;function Ot(e){var t=this.__data__=new Vt(e);this.size=t.size}function lf(){this.__data__=new Vt,this.size=0}function cf(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function uf(e){return this.__data__.get(e)}function df(e){return this.__data__.has(e)}function pf(e,t){var r=this.__data__;if(r instanceof Vt){var n=r.__data__;if(!ka||n.length<u-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Kt(n)}return r.set(e,t),this.size=r.size,this}Ot.prototype.clear=lf,Ot.prototype.delete=cf,Ot.prototype.get=uf,Ot.prototype.has=df,Ot.prototype.set=pf;function ql(e,t){var r=Q(e),n=!r&&Sr(e),l=!r&&!n&&_r(e),d=!r&&!n&&!l&&Zr(e),f=r||n||l||d,h=f?Ai(e.length,vm):[],x=h.length;for(var A in e)(t||_e.call(e,A))&&!(f&&(A=="length"||l&&(A=="offset"||A=="parent")||d&&(A=="buffer"||A=="byteLength"||A=="byteOffset")||er(A,x)))&&h.push(A);return h}function Cl(e){var t=e.length;return t?e[Hi(0,t-1)]:a}function mf(e,t){return Fs(rt(e),kr(t,0,e.length))}function ff(e){return Fs(rt(e))}function Pi(e,t,r){(r!==a&&!Pt(e[t],r)||r===a&&!(t in e))&&Qt(e,t,r)}function Sa(e,t,r){var n=e[t];(!(_e.call(e,t)&&Pt(n,r))||r===a&&!(t in e))&&Qt(e,t,r)}function ks(e,t){for(var r=e.length;r--;)if(Pt(e[r][0],t))return r;return-1}function yf(e,t,r,n){return mr(e,function(l,d,f){t(n,l,r(l),f)}),n}function Sl(e,t){return e&&Ut(t,je(t),e)}function hf(e,t){return e&&Ut(t,st(t),e)}function Qt(e,t,r){t=="__proto__"&&xs?xs(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Ei(e,t){for(var r=-1,n=t.length,l=T(n),d=e==null;++r<n;)l[r]=d?a:hn(e,t[r]);return l}function kr(e,t,r){return e===e&&(r!==a&&(e=e<=r?e:r),t!==a&&(e=e>=t?e:t)),e}function It(e,t,r,n,l,d){var f,h=t&k,x=t&z,A=t&E;if(r&&(f=l?r(e,n,l,d):r(e)),f!==a)return f;if(!ke(e))return e;var q=Q(e);if(q){if(f=sy(e),!h)return rt(e,f)}else{var C=Xe(e),O=C==br||C==Ja;if(_r(e))return ec(e,h);if(C==bt||C==Ve||O&&!l){if(f=x||O?{}:bc(e),!h)return x?Xf(e,hf(f,e)):Gf(e,Sl(f,e))}else{if(!ve[C])return l?e:{};f=iy(e,C,h)}}d||(d=new Ot);var L=d.get(e);if(L)return L;d.set(e,f),Yc(e)?e.forEach(function($){f.add(It($,t,r,$,e,d))}):Gc(e)&&e.forEach(function($,se){f.set(se,It($,t,r,se,e,d))});var H=A?x?tn:en:x?st:je,te=q?a:H(e);return vt(te||e,function($,se){te&&(se=$,$=e[se]),Sa(f,se,It($,t,r,se,e,d))}),f}function _f(e){var t=je(e);return function(r){return zl(r,e,t)}}function zl(e,t,r){var n=r.length;if(e==null)return!n;for(e=xe(e);n--;){var l=r[n],d=t[l],f=e[l];if(f===a&&!(l in e)||!d(f))return!1}return!0}function Nl(e,t,r){if(typeof e!="function")throw new wt(m);return Ma(function(){e.apply(a,r)},t)}function za(e,t,r,n){var l=-1,d=cs,f=!0,h=e.length,x=[],A=t.length;if(!h)return x;r&&(t=Te(t,dt(r))),n?(d=vi,f=!1):t.length>=u&&(d=Ia,f=!1,t=new Dr(t));e:for(;++l<h;){var q=e[l],C=r==null?q:r(q);if(q=n||q!==0?q:0,f&&C===C){for(var O=A;O--;)if(t[O]===C)continue e;x.push(q)}else d(t,C,n)||x.push(q)}return x}var mr=ic(jt),Ol=ic(Mi,!0);function gf(e,t){var r=!0;return mr(e,function(n,l,d){return r=!!t(n,l,d),r}),r}function As(e,t,r){for(var n=-1,l=e.length;++n<l;){var d=e[n],f=t(d);if(f!=null&&(h===a?f===f&&!mt(f):r(f,h)))var h=f,x=d}return x}function bf(e,t,r,n){var l=e.length;for(r=Z(r),r<0&&(r=-r>l?0:l+r),n=n===a||n>l?l:Z(n),n<0&&(n+=l),n=r>n?0:Kc(n);r<n;)e[r++]=t;return e}function Pl(e,t){var r=[];return mr(e,function(n,l,d){t(n,l,d)&&r.push(n)}),r}function He(e,t,r,n,l){var d=-1,f=e.length;for(r||(r=oy),l||(l=[]);++d<f;){var h=e[d];t>0&&r(h)?t>1?He(h,t-1,r,n,l):ur(l,h):n||(l[l.length]=h)}return l}var Ri=nc(),El=nc(!0);function jt(e,t){return e&&Ri(e,t,je)}function Mi(e,t){return e&&El(e,t,je)}function qs(e,t){return cr(t,function(r){return tr(e[r])})}function Ar(e,t){t=yr(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[Wt(t[r++])];return r&&r==n?e:a}function Rl(e,t,r){var n=t(e);return Q(e)?n:ur(n,r(e))}function Ke(e){return e==null?e===a?oi:Er:Tr&&Tr in xe(e)?ty(e):fy(e)}function Li(e,t){return e>t}function xf(e,t){return e!=null&&_e.call(e,t)}function vf(e,t){return e!=null&&t in xe(e)}function wf(e,t,r){return e>=Ge(t,r)&&e<Le(t,r)}function Fi(e,t,r){for(var n=r?vi:cs,l=e[0].length,d=e.length,f=d,h=T(d),x=1/0,A=[];f--;){var q=e[f];f&&t&&(q=Te(q,dt(t))),x=Ge(q.length,x),h[f]=!r&&(t||l>=120&&q.length>=120)?new Dr(f&&q):a}q=e[0];var C=-1,O=h[0];e:for(;++C<l&&A.length<x;){var L=q[C],H=t?t(L):L;if(L=r||L!==0?L:0,!(O?Ia(O,H):n(A,H,r))){for(f=d;--f;){var te=h[f];if(!(te?Ia(te,H):n(e[f],H,r)))continue e}O&&O.push(H),A.push(L)}}return A}function Tf(e,t,r,n){return jt(e,function(l,d,f){t(n,r(l),d,f)}),n}function Na(e,t,r){t=yr(t,e),e=Tc(e,t);var n=e==null?e:e[Wt(kt(t))];return n==null?a:ut(n,e,r)}function Ml(e){return Ce(e)&&Ke(e)==Ve}function If(e){return Ce(e)&&Ke(e)==St}function Df(e){return Ce(e)&&Ke(e)==Gt}function Oa(e,t,r,n,l){return e===t?!0:e==null||t==null||!Ce(e)&&!Ce(t)?e!==e&&t!==t:kf(e,t,r,n,Oa,l)}function kf(e,t,r,n,l,d){var f=Q(e),h=Q(t),x=f?nr:Xe(e),A=h?nr:Xe(t);x=x==Ve?bt:x,A=A==Ve?bt:A;var q=x==bt,C=A==bt,O=x==A;if(O&&_r(e)){if(!_r(t))return!1;f=!0,q=!1}if(O&&!q)return d||(d=new Ot),f||Zr(e)?hc(e,t,r,n,l,d):Zf(e,t,x,r,n,l,d);if(!(r&P)){var L=q&&_e.call(e,"__wrapped__"),H=C&&_e.call(t,"__wrapped__");if(L||H){var te=L?e.value():e,$=H?t.value():t;return d||(d=new Ot),l(te,$,r,n,d)}}return O?(d||(d=new Ot),ey(e,t,r,n,l,d)):!1}function Af(e){return Ce(e)&&Xe(e)==lt}function Bi(e,t,r,n){var l=r.length,d=l,f=!n;if(e==null)return!d;for(e=xe(e);l--;){var h=r[l];if(f&&h[2]?h[1]!==e[h[0]]:!(h[0]in e))return!1}for(;++l<d;){h=r[l];var x=h[0],A=e[x],q=h[1];if(f&&h[2]){if(A===a&&!(x in e))return!1}else{var C=new Ot;if(n)var O=n(A,q,x,e,t,C);if(!(O===a?Oa(q,A,P|j,n,C):O))return!1}}return!0}function Ll(e){if(!ke(e)||cy(e))return!1;var t=tr(e)?km:Ue;return t.test(Cr(e))}function qf(e){return Ce(e)&&Ke(e)==xr}function Cf(e){return Ce(e)&&Xe(e)==ct}function Sf(e){return Ce(e)&&$s(e.length)&&!!we[Ke(e)]}function Fl(e){return typeof e=="function"?e:e==null?it:typeof e=="object"?Q(e)?Ul(e[0],e[1]):jl(e):ou(e)}function ji(e){if(!Ra(e))return Nm(e);var t=[];for(var r in xe(e))_e.call(e,r)&&r!="constructor"&&t.push(r);return t}function zf(e){if(!ke(e))return my(e);var t=Ra(e),r=[];for(var n in e)n=="constructor"&&(t||!_e.call(e,n))||r.push(n);return r}function Ui(e,t){return e<t}function Bl(e,t){var r=-1,n=at(e)?T(e.length):[];return mr(e,function(l,d,f){n[++r]=t(l,d,f)}),n}function jl(e){var t=an(e);return t.length==1&&t[0][2]?vc(t[0][0],t[0][1]):function(r){return r===e||Bi(r,e,t)}}function Ul(e,t){return nn(e)&&xc(t)?vc(Wt(e),t):function(r){var n=hn(r,e);return n===a&&n===t?_n(r,e):Oa(t,n,P|j)}}function Cs(e,t,r,n,l){e!==t&&Ri(t,function(d,f){if(l||(l=new Ot),ke(d))Nf(e,t,f,r,Cs,n,l);else{var h=n?n(ln(e,f),d,f+"",e,t,l):a;h===a&&(h=d),Pi(e,f,h)}},st)}function Nf(e,t,r,n,l,d,f){var h=ln(e,r),x=ln(t,r),A=f.get(x);if(A){Pi(e,r,A);return}var q=d?d(h,x,r+"",e,t,f):a,C=q===a;if(C){var O=Q(x),L=!O&&_r(x),H=!O&&!L&&Zr(x);q=x,O||L||H?Q(h)?q=h:Ne(h)?q=rt(h):L?(C=!1,q=ec(x,!0)):H?(C=!1,q=tc(x,!0)):q=[]:La(x)||Sr(x)?(q=h,Sr(h)?q=Qc(h):(!ke(h)||tr(h))&&(q=bc(x))):C=!1}C&&(f.set(x,q),l(q,x,n,d,f),f.delete(x)),Pi(e,r,q)}function Wl(e,t){var r=e.length;if(r)return t+=t<0?r:0,er(t,r)?e[t]:a}function Hl(e,t,r){t.length?t=Te(t,function(d){return Q(d)?function(f){return Ar(f,d.length===1?d[0]:d)}:d}):t=[it];var n=-1;t=Te(t,dt(W()));var l=Bl(e,function(d,f,h){var x=Te(t,function(A){return A(d)});return{criteria:x,index:++n,value:d}});return sm(l,function(d,f){return $f(d,f,r)})}function Of(e,t){return $l(e,t,function(r,n){return _n(e,n)})}function $l(e,t,r){for(var n=-1,l=t.length,d={};++n<l;){var f=t[n],h=Ar(e,f);r(h,f)&&Pa(d,yr(f,e),h)}return d}function Pf(e){return function(t){return Ar(t,e)}}function Wi(e,t,r,n){var l=n?am:Ur,d=-1,f=t.length,h=e;for(e===t&&(t=rt(t)),r&&(h=Te(e,dt(r)));++d<f;)for(var x=0,A=t[d],q=r?r(A):A;(x=l(h,q,x,n))>-1;)h!==e&&bs.call(h,x,1),bs.call(e,x,1);return e}function Gl(e,t){for(var r=e?t.length:0,n=r-1;r--;){var l=t[r];if(r==n||l!==d){var d=l;er(l)?bs.call(e,l,1):Xi(e,l)}}return e}function Hi(e,t){return e+ws(kl()*(t-e+1))}function Ef(e,t,r,n){for(var l=-1,d=Le(vs((t-e)/(r||1)),0),f=T(d);d--;)f[n?d:++l]=e,e+=r;return f}function $i(e,t){var r="";if(!e||t<1||t>ze)return r;do t%2&&(r+=e),t=ws(t/2),t&&(e+=e);while(t);return r}function re(e,t){return cn(wc(e,t,it),e+"")}function Rf(e){return Cl(ea(e))}function Mf(e,t){var r=ea(e);return Fs(r,kr(t,0,r.length))}function Pa(e,t,r,n){if(!ke(e))return e;t=yr(t,e);for(var l=-1,d=t.length,f=d-1,h=e;h!=null&&++l<d;){var x=Wt(t[l]),A=r;if(x==="__proto__"||x==="constructor"||x==="prototype")return e;if(l!=f){var q=h[x];A=n?n(q,x,h):a,A===a&&(A=ke(q)?q:er(t[l+1])?[]:{})}Sa(h,x,A),h=h[x]}return e}var Xl=Ts?function(e,t){return Ts.set(e,t),e}:it,Lf=xs?function(e,t){return xs(e,"toString",{configurable:!0,enumerable:!1,value:bn(t),writable:!0})}:it;function Ff(e){return Fs(ea(e))}function Dt(e,t,r){var n=-1,l=e.length;t<0&&(t=-t>l?0:l+t),r=r>l?l:r,r<0&&(r+=l),l=t>r?0:r-t>>>0,t>>>=0;for(var d=T(l);++n<l;)d[n]=e[n+t];return d}function Bf(e,t){var r;return mr(e,function(n,l,d){return r=t(n,l,d),!r}),!!r}function Ss(e,t,r){var n=0,l=e==null?n:e.length;if(typeof t=="number"&&t===t&&l<=Be){for(;n<l;){var d=n+l>>>1,f=e[d];f!==null&&!mt(f)&&(r?f<=t:f<t)?n=d+1:l=d}return l}return Gi(e,t,it,r)}function Gi(e,t,r,n){var l=0,d=e==null?0:e.length;if(d===0)return 0;t=r(t);for(var f=t!==t,h=t===null,x=mt(t),A=t===a;l<d;){var q=ws((l+d)/2),C=r(e[q]),O=C!==a,L=C===null,H=C===C,te=mt(C);if(f)var $=n||H;else A?$=H&&(n||O):h?$=H&&O&&(n||!L):x?$=H&&O&&!L&&(n||!te):L||te?$=!1:$=n?C<=t:C<t;$?l=q+1:d=q}return Ge(d,ge)}function Yl(e,t){for(var r=-1,n=e.length,l=0,d=[];++r<n;){var f=e[r],h=t?t(f):f;if(!r||!Pt(h,x)){var x=h;d[l++]=f===0?0:f}}return d}function Vl(e){return typeof e=="number"?e:mt(e)?Ht:+e}function pt(e){if(typeof e=="string")return e;if(Q(e))return Te(e,pt)+"";if(mt(e))return Al?Al.call(e):"";var t=e+"";return t=="0"&&1/e==-Se?"-0":t}function fr(e,t,r){var n=-1,l=cs,d=e.length,f=!0,h=[],x=h;if(r)f=!1,l=vi;else if(d>=u){var A=t?null:Qf(e);if(A)return ds(A);f=!1,l=Ia,x=new Dr}else x=t?[]:h;e:for(;++n<d;){var q=e[n],C=t?t(q):q;if(q=r||q!==0?q:0,f&&C===C){for(var O=x.length;O--;)if(x[O]===C)continue e;t&&x.push(C),h.push(q)}else l(x,C,r)||(x!==h&&x.push(C),h.push(q))}return h}function Xi(e,t){return t=yr(t,e),e=Tc(e,t),e==null||delete e[Wt(kt(t))]}function Kl(e,t,r,n){return Pa(e,t,r(Ar(e,t)),n)}function zs(e,t,r,n){for(var l=e.length,d=n?l:-1;(n?d--:++d<l)&&t(e[d],d,e););return r?Dt(e,n?0:d,n?d+1:l):Dt(e,n?d+1:0,n?l:d)}function Ql(e,t){var r=e;return r instanceof le&&(r=r.value()),wi(t,function(n,l){return l.func.apply(l.thisArg,ur([n],l.args))},r)}function Yi(e,t,r){var n=e.length;if(n<2)return n?fr(e[0]):[];for(var l=-1,d=T(n);++l<n;)for(var f=e[l],h=-1;++h<n;)h!=l&&(d[l]=za(d[l]||f,e[h],t,r));return fr(He(d,1),t,r)}function Jl(e,t,r){for(var n=-1,l=e.length,d=t.length,f={};++n<l;){var h=n<d?t[n]:a;r(f,e[n],h)}return f}function Vi(e){return Ne(e)?e:[]}function Ki(e){return typeof e=="function"?e:it}function yr(e,t){return Q(e)?e:nn(e,t)?[e]:Ac(ye(e))}var jf=re;function hr(e,t,r){var n=e.length;return r=r===a?n:r,!t&&r>=n?e:Dt(e,t,r)}var Zl=Am||function(e){return We.clearTimeout(e)};function ec(e,t){if(t)return e.slice();var r=e.length,n=vl?vl(r):new e.constructor(r);return e.copy(n),n}function Qi(e){var t=new e.constructor(e.byteLength);return new _s(t).set(new _s(e)),t}function Uf(e,t){var r=t?Qi(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}function Wf(e){var t=new e.constructor(e.source,fe.exec(e));return t.lastIndex=e.lastIndex,t}function Hf(e){return Ca?xe(Ca.call(e)):{}}function tc(e,t){var r=t?Qi(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function rc(e,t){if(e!==t){var r=e!==a,n=e===null,l=e===e,d=mt(e),f=t!==a,h=t===null,x=t===t,A=mt(t);if(!h&&!A&&!d&&e>t||d&&f&&x&&!h&&!A||n&&f&&x||!r&&x||!l)return 1;if(!n&&!d&&!A&&e<t||A&&r&&l&&!n&&!d||h&&r&&l||!f&&l||!x)return-1}return 0}function $f(e,t,r){for(var n=-1,l=e.criteria,d=t.criteria,f=l.length,h=r.length;++n<f;){var x=rc(l[n],d[n]);if(x){if(n>=h)return x;var A=r[n];return x*(A=="desc"?-1:1)}}return e.index-t.index}function ac(e,t,r,n){for(var l=-1,d=e.length,f=r.length,h=-1,x=t.length,A=Le(d-f,0),q=T(x+A),C=!n;++h<x;)q[h]=t[h];for(;++l<f;)(C||l<d)&&(q[r[l]]=e[l]);for(;A--;)q[h++]=e[l++];return q}function sc(e,t,r,n){for(var l=-1,d=e.length,f=-1,h=r.length,x=-1,A=t.length,q=Le(d-h,0),C=T(q+A),O=!n;++l<q;)C[l]=e[l];for(var L=l;++x<A;)C[L+x]=t[x];for(;++f<h;)(O||l<d)&&(C[L+r[f]]=e[l++]);return C}function rt(e,t){var r=-1,n=e.length;for(t||(t=T(n));++r<n;)t[r]=e[r];return t}function Ut(e,t,r,n){var l=!r;r||(r={});for(var d=-1,f=t.length;++d<f;){var h=t[d],x=n?n(r[h],e[h],h,r,e):a;x===a&&(x=e[h]),l?Qt(r,h,x):Sa(r,h,x)}return r}function Gf(e,t){return Ut(e,sn(e),t)}function Xf(e,t){return Ut(e,_c(e),t)}function Ns(e,t){return function(r,n){var l=Q(r)?Qp:yf,d=t?t():{};return l(r,e,W(n,2),d)}}function Kr(e){return re(function(t,r){var n=-1,l=r.length,d=l>1?r[l-1]:a,f=l>2?r[2]:a;for(d=e.length>3&&typeof d=="function"?(l--,d):a,f&&Qe(r[0],r[1],f)&&(d=l<3?a:d,l=1),t=xe(t);++n<l;){var h=r[n];h&&e(t,h,n,d)}return t})}function ic(e,t){return function(r,n){if(r==null)return r;if(!at(r))return e(r,n);for(var l=r.length,d=t?l:-1,f=xe(r);(t?d--:++d<l)&&n(f[d],d,f)!==!1;);return r}}function nc(e){return function(t,r,n){for(var l=-1,d=xe(t),f=n(t),h=f.length;h--;){var x=f[e?h:++l];if(r(d[x],x,d)===!1)break}return t}}function Yf(e,t,r){var n=t&ee,l=Ea(e);function d(){var f=this&&this!==We&&this instanceof d?l:e;return f.apply(n?r:this,arguments)}return d}function oc(e){return function(t){t=ye(t);var r=Wr(t)?Nt(t):a,n=r?r[0]:t.charAt(0),l=r?hr(r,1).join(""):t.slice(1);return n[e]()+l}}function Qr(e){return function(t){return wi(iu(su(t).replace(Mp,"")),e,"")}}function Ea(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=Vr(e.prototype),n=e.apply(r,t);return ke(n)?n:r}}function Vf(e,t,r){var n=Ea(e);function l(){for(var d=arguments.length,f=T(d),h=d,x=Jr(l);h--;)f[h]=arguments[h];var A=d<3&&f[0]!==x&&f[d-1]!==x?[]:dr(f,x);if(d-=A.length,d<r)return pc(e,t,Os,l.placeholder,a,f,A,a,a,r-d);var q=this&&this!==We&&this instanceof l?n:e;return ut(q,this,f)}return l}function lc(e){return function(t,r,n){var l=xe(t);if(!at(t)){var d=W(r,3);t=je(t),r=function(h){return d(l[h],h,l)}}var f=e(t,r,n);return f>-1?l[d?t[f]:f]:a}}function cc(e){return Zt(function(t){var r=t.length,n=r,l=Tt.prototype.thru;for(e&&t.reverse();n--;){var d=t[n];if(typeof d!="function")throw new wt(m);if(l&&!f&&Ms(d)=="wrapper")var f=new Tt([],!0)}for(n=f?n:r;++n<r;){d=t[n];var h=Ms(d),x=h=="wrapper"?rn(d):a;x&&on(x[0])&&x[1]==(J|F|G|Pe)&&!x[4].length&&x[9]==1?f=f[Ms(x[0])].apply(f,x[3]):f=d.length==1&&on(d)?f[h]():f.thru(d)}return function(){var A=arguments,q=A[0];if(f&&A.length==1&&Q(q))return f.plant(q).value();for(var C=0,O=r?t[C].apply(this,A):q;++C<r;)O=t[C].call(this,O);return O}})}function Os(e,t,r,n,l,d,f,h,x,A){var q=t&J,C=t&ee,O=t&me,L=t&(F|B),H=t&be,te=O?a:Ea(e);function $(){for(var se=arguments.length,ce=T(se),ft=se;ft--;)ce[ft]=arguments[ft];if(L)var Je=Jr($),yt=nm(ce,Je);if(n&&(ce=ac(ce,n,l,L)),d&&(ce=sc(ce,d,f,L)),se-=yt,L&&se<A){var Oe=dr(ce,Je);return pc(e,t,Os,$.placeholder,r,ce,Oe,h,x,A-se)}var Et=C?r:this,ar=O?Et[e]:e;return se=ce.length,h?ce=yy(ce,h):H&&se>1&&ce.reverse(),q&&x<se&&(ce.length=x),this&&this!==We&&this instanceof $&&(ar=te||Ea(ar)),ar.apply(Et,ce)}return $}function uc(e,t){return function(r,n){return Tf(r,e,t(n),{})}}function Ps(e,t){return function(r,n){var l;if(r===a&&n===a)return t;if(r!==a&&(l=r),n!==a){if(l===a)return n;typeof r=="string"||typeof n=="string"?(r=pt(r),n=pt(n)):(r=Vl(r),n=Vl(n)),l=e(r,n)}return l}}function Ji(e){return Zt(function(t){return t=Te(t,dt(W())),re(function(r){var n=this;return e(t,function(l){return ut(l,n,r)})})})}function Es(e,t){t=t===a?" ":pt(t);var r=t.length;if(r<2)return r?$i(t,e):t;var n=$i(t,vs(e/Hr(t)));return Wr(t)?hr(Nt(n),0,e).join(""):n.slice(0,e)}function Kf(e,t,r,n){var l=t&ee,d=Ea(e);function f(){for(var h=-1,x=arguments.length,A=-1,q=n.length,C=T(q+x),O=this&&this!==We&&this instanceof f?d:e;++A<q;)C[A]=n[A];for(;x--;)C[A++]=arguments[++h];return ut(O,l?r:this,C)}return f}function dc(e){return function(t,r,n){return n&&typeof n!="number"&&Qe(t,r,n)&&(r=n=a),t=rr(t),r===a?(r=t,t=0):r=rr(r),n=n===a?t<r?1:-1:rr(n),Ef(t,r,n,e)}}function Rs(e){return function(t,r){return typeof t=="string"&&typeof r=="string"||(t=At(t),r=At(r)),e(t,r)}}function pc(e,t,r,n,l,d,f,h,x,A){var q=t&F,C=q?f:a,O=q?a:f,L=q?d:a,H=q?a:d;t|=q?G:ie,t&=~(q?ie:G),t&Y||(t&=~(ee|me));var te=[e,t,l,L,C,H,O,h,x,A],$=r.apply(a,te);return on(e)&&Ic($,te),$.placeholder=n,Dc($,e,t)}function Zi(e){var t=Me[e];return function(r,n){if(r=At(r),n=n==null?0:Ge(Z(n),292),n&&Dl(r)){var l=(ye(r)+"e").split("e"),d=t(l[0]+"e"+(+l[1]+n));return l=(ye(d)+"e").split("e"),+(l[0]+"e"+(+l[1]-n))}return t(r)}}var Qf=Xr&&1/ds(new Xr([,-0]))[1]==Se?function(e){return new Xr(e)}:wn;function mc(e){return function(t){var r=Xe(t);return r==lt?Ci(t):r==ct?mm(t):im(t,e(t))}}function Jt(e,t,r,n,l,d,f,h){var x=t&me;if(!x&&typeof e!="function")throw new wt(m);var A=n?n.length:0;if(A||(t&=~(G|ie),n=l=a),f=f===a?f:Le(Z(f),0),h=h===a?h:Z(h),A-=l?l.length:0,t&ie){var q=n,C=l;n=l=a}var O=x?a:rn(e),L=[e,t,r,n,l,q,C,d,f,h];if(O&&py(L,O),e=L[0],t=L[1],r=L[2],n=L[3],l=L[4],h=L[9]=L[9]===a?x?0:e.length:Le(L[9]-A,0),!h&&t&(F|B)&&(t&=~(F|B)),!t||t==ee)var H=Yf(e,t,r);else t==F||t==B?H=Vf(e,t,h):(t==G||t==(ee|G))&&!l.length?H=Kf(e,t,r,n):H=Os.apply(a,L);var te=O?Xl:Ic;return Dc(te(H,L),e,t)}function fc(e,t,r,n){return e===a||Pt(e,Gr[r])&&!_e.call(n,r)?t:e}function yc(e,t,r,n,l,d){return ke(e)&&ke(t)&&(d.set(t,e),Cs(e,t,a,yc,d),d.delete(t)),e}function Jf(e){return La(e)?a:e}function hc(e,t,r,n,l,d){var f=r&P,h=e.length,x=t.length;if(h!=x&&!(f&&x>h))return!1;var A=d.get(e),q=d.get(t);if(A&&q)return A==t&&q==e;var C=-1,O=!0,L=r&j?new Dr:a;for(d.set(e,t),d.set(t,e);++C<h;){var H=e[C],te=t[C];if(n)var $=f?n(te,H,C,t,e,d):n(H,te,C,e,t,d);if($!==a){if($)continue;O=!1;break}if(L){if(!Ti(t,function(se,ce){if(!Ia(L,ce)&&(H===se||l(H,se,r,n,d)))return L.push(ce)})){O=!1;break}}else if(!(H===te||l(H,te,r,n,d))){O=!1;break}}return d.delete(e),d.delete(t),O}function Zf(e,t,r,n,l,d,f){switch(r){case lr:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case St:return!(e.byteLength!=t.byteLength||!d(new _s(e),new _s(t)));case Ft:case Gt:case Bt:return Pt(+e,+t);case Pr:return e.name==t.name&&e.message==t.message;case xr:case Xt:return e==t+"";case lt:var h=Ci;case ct:var x=n&P;if(h||(h=ds),e.size!=t.size&&!x)return!1;var A=f.get(e);if(A)return A==t;n|=j,f.set(e,t);var q=hc(h(e),h(t),n,l,d,f);return f.delete(e),q;case Mr:if(Ca)return Ca.call(e)==Ca.call(t)}return!1}function ey(e,t,r,n,l,d){var f=r&P,h=en(e),x=h.length,A=en(t),q=A.length;if(x!=q&&!f)return!1;for(var C=x;C--;){var O=h[C];if(!(f?O in t:_e.call(t,O)))return!1}var L=d.get(e),H=d.get(t);if(L&&H)return L==t&&H==e;var te=!0;d.set(e,t),d.set(t,e);for(var $=f;++C<x;){O=h[C];var se=e[O],ce=t[O];if(n)var ft=f?n(ce,se,O,t,e,d):n(se,ce,O,e,t,d);if(!(ft===a?se===ce||l(se,ce,r,n,d):ft)){te=!1;break}$||($=O=="constructor")}if(te&&!$){var Je=e.constructor,yt=t.constructor;Je!=yt&&"constructor"in e&&"constructor"in t&&!(typeof Je=="function"&&Je instanceof Je&&typeof yt=="function"&&yt instanceof yt)&&(te=!1)}return d.delete(e),d.delete(t),te}function Zt(e){return cn(wc(e,a,zc),e+"")}function en(e){return Rl(e,je,sn)}function tn(e){return Rl(e,st,_c)}var rn=Ts?function(e){return Ts.get(e)}:wn;function Ms(e){for(var t=e.name+"",r=Yr[t],n=_e.call(Yr,t)?r.length:0;n--;){var l=r[n],d=l.func;if(d==null||d==e)return l.name}return t}function Jr(e){var t=_e.call(c,"placeholder")?c:e;return t.placeholder}function W(){var e=c.iteratee||xn;return e=e===xn?Fl:e,arguments.length?e(arguments[0],arguments[1]):e}function Ls(e,t){var r=e.__data__;return ly(t)?r[typeof t=="string"?"string":"hash"]:r.map}function an(e){for(var t=je(e),r=t.length;r--;){var n=t[r],l=e[n];t[r]=[n,l,xc(l)]}return t}function qr(e,t){var r=um(e,t);return Ll(r)?r:a}function ty(e){var t=_e.call(e,Tr),r=e[Tr];try{e[Tr]=a;var n=!0}catch{}var l=ys.call(e);return n&&(t?e[Tr]=r:delete e[Tr]),l}var sn=zi?function(e){return e==null?[]:(e=xe(e),cr(zi(e),function(t){return Tl.call(e,t)}))}:Tn,_c=zi?function(e){for(var t=[];e;)ur(t,sn(e)),e=gs(e);return t}:Tn,Xe=Ke;(Ni&&Xe(new Ni(new ArrayBuffer(1)))!=lr||ka&&Xe(new ka)!=lt||Oi&&Xe(Oi.resolve())!=ma||Xr&&Xe(new Xr)!=ct||Aa&&Xe(new Aa)!=or)&&(Xe=function(e){var t=Ke(e),r=t==bt?e.constructor:a,n=r?Cr(r):"";if(n)switch(n){case Rm:return lr;case Mm:return lt;case Lm:return ma;case Fm:return ct;case Bm:return or}return t});function ry(e,t,r){for(var n=-1,l=r.length;++n<l;){var d=r[n],f=d.size;switch(d.type){case"drop":e+=f;break;case"dropRight":t-=f;break;case"take":t=Ge(t,e+f);break;case"takeRight":e=Le(e,t-f);break}}return{start:e,end:t}}function ay(e){var t=e.match(mi);return t?t[1].split(y):[]}function gc(e,t,r){t=yr(t,e);for(var n=-1,l=t.length,d=!1;++n<l;){var f=Wt(t[n]);if(!(d=e!=null&&r(e,f)))break;e=e[f]}return d||++n!=l?d:(l=e==null?0:e.length,!!l&&$s(l)&&er(f,l)&&(Q(e)||Sr(e)))}function sy(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&_e.call(e,"index")&&(r.index=e.index,r.input=e.input),r}function bc(e){return typeof e.constructor=="function"&&!Ra(e)?Vr(gs(e)):{}}function iy(e,t,r){var n=e.constructor;switch(t){case St:return Qi(e);case Ft:case Gt:return new n(+e);case lr:return Uf(e,r);case Lr:case Fr:case vr:case fa:case ya:case ha:case _a:case ga:case ba:return tc(e,r);case lt:return new n;case Bt:case Xt:return new n(e);case xr:return Wf(e);case ct:return new n;case Mr:return Hf(e)}}function ny(e,t){var r=t.length;if(!r)return e;var n=r-1;return t[n]=(r>1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(pi,`{
|
112
|
+
*/Ha.exports,function(s,i){(function(){var a,o="4.17.21",u=200,p="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",m="Expected a function",g="Invalid `variable` option passed into `_.template`",v="__lodash_hash_undefined__",b=500,w="__lodash_placeholder__",k=1,z=2,E=4,P=1,j=2,re=1,me=2,Y=4,F=8,B=16,G=32,ie=64,J=128,Pe=256,be=512,ne=30,_t="...",gt=800,Ee=16,Re=1,U=2,de=3,Se=1/0,ze=9007199254740991,Fe=17976931348623157e292,Ht=NaN,V=4294967295,ge=V-1,Be=V>>>1,$t=[["ary",J],["bind",re],["bindKey",me],["curry",F],["curryRight",B],["flip",be],["partial",G],["partialRight",ie],["rearg",Pe]],Ve="[object Arguments]",nr="[object Array]",pa="[object AsyncFunction]",Ft="[object Boolean]",Gt="[object Date]",Or="[object DOMException]",Pr="[object Error]",br="[object Function]",Ja="[object GeneratorFunction]",lt="[object Map]",Bt="[object Number]",Er="[object Null]",bt="[object Object]",ma="[object Promise]",Rr="[object Proxy]",xr="[object RegExp]",ct="[object Set]",Xt="[object String]",Mr="[object Symbol]",oi="[object Undefined]",or="[object WeakMap]",Za="[object WeakSet]",St="[object ArrayBuffer]",lr="[object DataView]",Lr="[object Float32Array]",Fr="[object Float64Array]",vr="[object Int8Array]",fa="[object Int16Array]",ya="[object Int32Array]",ha="[object Uint8Array]",_a="[object Uint8ClampedArray]",ga="[object Uint16Array]",ba="[object Uint32Array]",li=/\b__p \+= '';/g,xa=/\b(__p \+=) '' \+/g,es=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Yt=/&(?:amp|lt|gt|quot|#39);/g,Br=/[&<>"']/g,va=RegExp(Yt.source),ts=RegExp(Br.source),ci=/<%-([\s\S]+?)%>/g,rs=/<%([\s\S]+?)%>/g,as=/<%=([\s\S]+?)%>/g,ss=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,is=/^\w*$/,ui=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,wa=/[\\^$.*+?()[\]{}|]/g,ns=RegExp(wa.source),Ta=/^\s+/,di=/\s/,pi=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,mi=/\{\n\/\* \[wrapped with (.+)\] \*/,y=/,? & /,S=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,N=/[()=,{}\[\]\/\s]/,X=/\\(\\)?/g,ue=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,fe=/\w*$/,oe=/^[-+]0x[0-9a-f]+$/i,ae=/^0b[01]+$/i,Ue=/^\[object .+?Constructor\]$/,De=/^0o[0-7]+$/i,qe=/^(?:0|[1-9]\d*)$/,et=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,zt=/($^)/,os=/['\n\r\u2028\u2029\\]/g,tt="\\ud800-\\udfff",vp="\\u0300-\\u036f",wp="\\ufe20-\\ufe2f",Tp="\\u20d0-\\u20ff",Lo=vp+wp+Tp,Fo="\\u2700-\\u27bf",Bo="a-z\\xdf-\\xf6\\xf8-\\xff",Ip="\\xac\\xb1\\xd7\\xf7",Dp="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",kp="\\u2000-\\u206f",Ap=" \\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",jo="A-Z\\xc0-\\xd6\\xd8-\\xde",Uo="\\ufe0e\\ufe0f",Wo=Ip+Dp+kp+Ap,fi="['’]",qp="["+tt+"]",Ho="["+Wo+"]",ls="["+Lo+"]",$o="\\d+",Cp="["+Fo+"]",Go="["+Bo+"]",Xo="[^"+tt+Wo+$o+Fo+Bo+jo+"]",yi="\\ud83c[\\udffb-\\udfff]",Sp="(?:"+ls+"|"+yi+")",Yo="[^"+tt+"]",hi="(?:\\ud83c[\\udde6-\\uddff]){2}",_i="[\\ud800-\\udbff][\\udc00-\\udfff]",jr="["+jo+"]",Vo="\\u200d",Ko="(?:"+Go+"|"+Xo+")",zp="(?:"+jr+"|"+Xo+")",Qo="(?:"+fi+"(?:d|ll|m|re|s|t|ve))?",Jo="(?:"+fi+"(?:D|LL|M|RE|S|T|VE))?",Zo=Sp+"?",el="["+Uo+"]?",Np="(?:"+Vo+"(?:"+[Yo,hi,_i].join("|")+")"+el+Zo+")*",Op="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Pp="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",tl=el+Zo+Np,Ep="(?:"+[Cp,hi,_i].join("|")+")"+tl,Rp="(?:"+[Yo+ls+"?",ls,hi,_i,qp].join("|")+")",Mp=RegExp(fi,"g"),Lp=RegExp(ls,"g"),gi=RegExp(yi+"(?="+yi+")|"+Rp+tl,"g"),Fp=RegExp([jr+"?"+Go+"+"+Qo+"(?="+[Ho,jr,"$"].join("|")+")",zp+"+"+Jo+"(?="+[Ho,jr+Ko,"$"].join("|")+")",jr+"?"+Ko+"+"+Qo,jr+"+"+Jo,Pp,Op,$o,Ep].join("|"),"g"),Bp=RegExp("["+Vo+tt+Lo+Uo+"]"),jp=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Up=["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"],Wp=-1,we={};we[Lr]=we[Fr]=we[vr]=we[fa]=we[ya]=we[ha]=we[_a]=we[ga]=we[ba]=!0,we[Ve]=we[nr]=we[St]=we[Ft]=we[lr]=we[Gt]=we[Pr]=we[br]=we[lt]=we[Bt]=we[bt]=we[xr]=we[ct]=we[Xt]=we[or]=!1;var ve={};ve[Ve]=ve[nr]=ve[St]=ve[lr]=ve[Ft]=ve[Gt]=ve[Lr]=ve[Fr]=ve[vr]=ve[fa]=ve[ya]=ve[lt]=ve[Bt]=ve[bt]=ve[xr]=ve[ct]=ve[Xt]=ve[Mr]=ve[ha]=ve[_a]=ve[ga]=ve[ba]=!0,ve[Pr]=ve[br]=ve[or]=!1;var Hp={À:"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"},$p={"&":"&","<":"<",">":">",'"':""","'":"'"},Gp={"&":"&","<":"<",">":">",""":'"',"'":"'"},Xp={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Yp=parseFloat,Vp=parseInt,rl=typeof ta=="object"&&ta&&ta.Object===Object&&ta,Kp=typeof self=="object"&&self&&self.Object===Object&&self,We=rl||Kp||Function("return this")(),bi=i&&!i.nodeType&&i,wr=bi&&!0&&s&&!s.nodeType&&s,al=wr&&wr.exports===bi,xi=al&&rl.process,xt=function(){try{var _=wr&&wr.require&&wr.require("util").types;return _||xi&&xi.binding&&xi.binding("util")}catch{}}(),sl=xt&&xt.isArrayBuffer,il=xt&&xt.isDate,nl=xt&&xt.isMap,ol=xt&&xt.isRegExp,ll=xt&&xt.isSet,cl=xt&&xt.isTypedArray;function ut(_,D,T){switch(T.length){case 0:return _.call(D);case 1:return _.call(D,T[0]);case 2:return _.call(D,T[0],T[1]);case 3:return _.call(D,T[0],T[1],T[2])}return _.apply(D,T)}function Qp(_,D,T,R){for(var K=-1,pe=_==null?0:_.length;++K<pe;){var Me=_[K];D(R,Me,T(Me),_)}return R}function vt(_,D){for(var T=-1,R=_==null?0:_.length;++T<R&&D(_[T],T,_)!==!1;);return _}function Jp(_,D){for(var T=_==null?0:_.length;T--&&D(_[T],T,_)!==!1;);return _}function ul(_,D){for(var T=-1,R=_==null?0:_.length;++T<R;)if(!D(_[T],T,_))return!1;return!0}function cr(_,D){for(var T=-1,R=_==null?0:_.length,K=0,pe=[];++T<R;){var Me=_[T];D(Me,T,_)&&(pe[K++]=Me)}return pe}function cs(_,D){var T=_==null?0:_.length;return!!T&&Ur(_,D,0)>-1}function vi(_,D,T){for(var R=-1,K=_==null?0:_.length;++R<K;)if(T(D,_[R]))return!0;return!1}function Te(_,D){for(var T=-1,R=_==null?0:_.length,K=Array(R);++T<R;)K[T]=D(_[T],T,_);return K}function ur(_,D){for(var T=-1,R=D.length,K=_.length;++T<R;)_[K+T]=D[T];return _}function wi(_,D,T,R){var K=-1,pe=_==null?0:_.length;for(R&&pe&&(T=_[++K]);++K<pe;)T=D(T,_[K],K,_);return T}function Zp(_,D,T,R){var K=_==null?0:_.length;for(R&&K&&(T=_[--K]);K--;)T=D(T,_[K],K,_);return T}function Ti(_,D){for(var T=-1,R=_==null?0:_.length;++T<R;)if(D(_[T],T,_))return!0;return!1}var em=Ii("length");function tm(_){return _.split("")}function rm(_){return _.match(S)||[]}function dl(_,D,T){var R;return T(_,function(K,pe,Me){if(D(K,pe,Me))return R=pe,!1}),R}function us(_,D,T,R){for(var K=_.length,pe=T+(R?1:-1);R?pe--:++pe<K;)if(D(_[pe],pe,_))return pe;return-1}function Ur(_,D,T){return D===D?fm(_,D,T):us(_,pl,T)}function am(_,D,T,R){for(var K=T-1,pe=_.length;++K<pe;)if(R(_[K],D))return K;return-1}function pl(_){return _!==_}function ml(_,D){var T=_==null?0:_.length;return T?ki(_,D)/T:Ht}function Ii(_){return function(D){return D==null?a:D[_]}}function Di(_){return function(D){return _==null?a:_[D]}}function fl(_,D,T,R,K){return K(_,function(pe,Me,xe){T=R?(R=!1,pe):D(T,pe,Me,xe)}),T}function sm(_,D){var T=_.length;for(_.sort(D);T--;)_[T]=_[T].value;return _}function ki(_,D){for(var T,R=-1,K=_.length;++R<K;){var pe=D(_[R]);pe!==a&&(T=T===a?pe:T+pe)}return T}function Ai(_,D){for(var T=-1,R=Array(_);++T<_;)R[T]=D(T);return R}function im(_,D){return Te(D,function(T){return[T,_[T]]})}function yl(_){return _&&_.slice(0,bl(_)+1).replace(Ta,"")}function dt(_){return function(D){return _(D)}}function qi(_,D){return Te(D,function(T){return _[T]})}function Ia(_,D){return _.has(D)}function hl(_,D){for(var T=-1,R=_.length;++T<R&&Ur(D,_[T],0)>-1;);return T}function _l(_,D){for(var T=_.length;T--&&Ur(D,_[T],0)>-1;);return T}function nm(_,D){for(var T=_.length,R=0;T--;)_[T]===D&&++R;return R}var om=Di(Hp),lm=Di($p);function cm(_){return"\\"+Xp[_]}function um(_,D){return _==null?a:_[D]}function Wr(_){return Bp.test(_)}function dm(_){return jp.test(_)}function pm(_){for(var D,T=[];!(D=_.next()).done;)T.push(D.value);return T}function Ci(_){var D=-1,T=Array(_.size);return _.forEach(function(R,K){T[++D]=[K,R]}),T}function gl(_,D){return function(T){return _(D(T))}}function dr(_,D){for(var T=-1,R=_.length,K=0,pe=[];++T<R;){var Me=_[T];(Me===D||Me===w)&&(_[T]=w,pe[K++]=T)}return pe}function ds(_){var D=-1,T=Array(_.size);return _.forEach(function(R){T[++D]=R}),T}function mm(_){var D=-1,T=Array(_.size);return _.forEach(function(R){T[++D]=[R,R]}),T}function fm(_,D,T){for(var R=T-1,K=_.length;++R<K;)if(_[R]===D)return R;return-1}function ym(_,D,T){for(var R=T+1;R--;)if(_[R]===D)return R;return R}function Hr(_){return Wr(_)?_m(_):em(_)}function Nt(_){return Wr(_)?gm(_):tm(_)}function bl(_){for(var D=_.length;D--&&di.test(_.charAt(D)););return D}var hm=Di(Gp);function _m(_){for(var D=gi.lastIndex=0;gi.test(_);)++D;return D}function gm(_){return _.match(gi)||[]}function bm(_){return _.match(Fp)||[]}var xm=function _(D){D=D==null?We:$r.defaults(We.Object(),D,$r.pick(We,Up));var T=D.Array,R=D.Date,K=D.Error,pe=D.Function,Me=D.Math,xe=D.Object,Si=D.RegExp,vm=D.String,wt=D.TypeError,ps=T.prototype,wm=pe.prototype,Gr=xe.prototype,ms=D["__core-js_shared__"],fs=wm.toString,_e=Gr.hasOwnProperty,Tm=0,xl=function(){var e=/[^.]+$/.exec(ms&&ms.keys&&ms.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),ys=Gr.toString,Im=fs.call(xe),Dm=We._,km=Si("^"+fs.call(_e).replace(wa,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),hs=al?D.Buffer:a,pr=D.Symbol,_s=D.Uint8Array,vl=hs?hs.allocUnsafe:a,gs=gl(xe.getPrototypeOf,xe),wl=xe.create,Tl=Gr.propertyIsEnumerable,bs=ps.splice,Il=pr?pr.isConcatSpreadable:a,Da=pr?pr.iterator:a,Tr=pr?pr.toStringTag:a,xs=function(){try{var e=qr(xe,"defineProperty");return e({},"",{}),e}catch{}}(),Am=D.clearTimeout!==We.clearTimeout&&D.clearTimeout,qm=R&&R.now!==We.Date.now&&R.now,Cm=D.setTimeout!==We.setTimeout&&D.setTimeout,vs=Me.ceil,ws=Me.floor,zi=xe.getOwnPropertySymbols,Sm=hs?hs.isBuffer:a,Dl=D.isFinite,zm=ps.join,Nm=gl(xe.keys,xe),Le=Me.max,Ge=Me.min,Om=R.now,Pm=D.parseInt,kl=Me.random,Em=ps.reverse,Ni=qr(D,"DataView"),ka=qr(D,"Map"),Oi=qr(D,"Promise"),Xr=qr(D,"Set"),Aa=qr(D,"WeakMap"),qa=qr(xe,"create"),Ts=Aa&&new Aa,Yr={},Rm=Cr(Ni),Mm=Cr(ka),Lm=Cr(Oi),Fm=Cr(Xr),Bm=Cr(Aa),Is=pr?pr.prototype:a,Ca=Is?Is.valueOf:a,Al=Is?Is.toString:a;function c(e){if(Ce(e)&&!Q(e)&&!(e instanceof le)){if(e instanceof Tt)return e;if(_e.call(e,"__wrapped__"))return qc(e)}return new Tt(e)}var Vr=function(){function e(){}return function(t){if(!ke(t))return{};if(wl)return wl(t);e.prototype=t;var r=new e;return e.prototype=a,r}}();function Ds(){}function Tt(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=a}c.templateSettings={escape:ci,evaluate:rs,interpolate:as,variable:"",imports:{_:c}},c.prototype=Ds.prototype,c.prototype.constructor=c,Tt.prototype=Vr(Ds.prototype),Tt.prototype.constructor=Tt;function le(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=V,this.__views__=[]}function jm(){var e=new le(this.__wrapped__);return e.__actions__=rt(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=rt(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=rt(this.__views__),e}function Um(){if(this.__filtered__){var e=new le(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function Wm(){var e=this.__wrapped__.value(),t=this.__dir__,r=Q(e),n=t<0,l=r?e.length:0,d=ry(0,l,this.__views__),f=d.start,h=d.end,x=h-f,A=n?h:f-1,q=this.__iteratees__,C=q.length,O=0,L=Ge(x,this.__takeCount__);if(!r||!n&&l==x&&L==x)return Ql(e,this.__actions__);var H=[];e:for(;x--&&O<L;){A+=t;for(var ee=-1,$=e[A];++ee<C;){var se=q[ee],ce=se.iteratee,ft=se.type,Je=ce($);if(ft==U)$=Je;else if(!Je){if(ft==Re)continue e;break e}}H[O++]=$}return H}le.prototype=Vr(Ds.prototype),le.prototype.constructor=le;function Ir(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Hm(){this.__data__=qa?qa(null):{},this.size=0}function $m(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function Gm(e){var t=this.__data__;if(qa){var r=t[e];return r===v?a:r}return _e.call(t,e)?t[e]:a}function Xm(e){var t=this.__data__;return qa?t[e]!==a:_e.call(t,e)}function Ym(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=qa&&t===a?v:t,this}Ir.prototype.clear=Hm,Ir.prototype.delete=$m,Ir.prototype.get=Gm,Ir.prototype.has=Xm,Ir.prototype.set=Ym;function Vt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Vm(){this.__data__=[],this.size=0}function Km(e){var t=this.__data__,r=ks(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():bs.call(t,r,1),--this.size,!0}function Qm(e){var t=this.__data__,r=ks(t,e);return r<0?a:t[r][1]}function Jm(e){return ks(this.__data__,e)>-1}function Zm(e,t){var r=this.__data__,n=ks(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}Vt.prototype.clear=Vm,Vt.prototype.delete=Km,Vt.prototype.get=Qm,Vt.prototype.has=Jm,Vt.prototype.set=Zm;function Kt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function ef(){this.size=0,this.__data__={hash:new Ir,map:new(ka||Vt),string:new Ir}}function tf(e){var t=Ls(this,e).delete(e);return this.size-=t?1:0,t}function rf(e){return Ls(this,e).get(e)}function af(e){return Ls(this,e).has(e)}function sf(e,t){var r=Ls(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}Kt.prototype.clear=ef,Kt.prototype.delete=tf,Kt.prototype.get=rf,Kt.prototype.has=af,Kt.prototype.set=sf;function Dr(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Kt;++t<r;)this.add(e[t])}function nf(e){return this.__data__.set(e,v),this}function of(e){return this.__data__.has(e)}Dr.prototype.add=Dr.prototype.push=nf,Dr.prototype.has=of;function Ot(e){var t=this.__data__=new Vt(e);this.size=t.size}function lf(){this.__data__=new Vt,this.size=0}function cf(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function uf(e){return this.__data__.get(e)}function df(e){return this.__data__.has(e)}function pf(e,t){var r=this.__data__;if(r instanceof Vt){var n=r.__data__;if(!ka||n.length<u-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Kt(n)}return r.set(e,t),this.size=r.size,this}Ot.prototype.clear=lf,Ot.prototype.delete=cf,Ot.prototype.get=uf,Ot.prototype.has=df,Ot.prototype.set=pf;function ql(e,t){var r=Q(e),n=!r&&Sr(e),l=!r&&!n&&_r(e),d=!r&&!n&&!l&&Zr(e),f=r||n||l||d,h=f?Ai(e.length,vm):[],x=h.length;for(var A in e)(t||_e.call(e,A))&&!(f&&(A=="length"||l&&(A=="offset"||A=="parent")||d&&(A=="buffer"||A=="byteLength"||A=="byteOffset")||er(A,x)))&&h.push(A);return h}function Cl(e){var t=e.length;return t?e[Hi(0,t-1)]:a}function mf(e,t){return Fs(rt(e),kr(t,0,e.length))}function ff(e){return Fs(rt(e))}function Pi(e,t,r){(r!==a&&!Pt(e[t],r)||r===a&&!(t in e))&&Qt(e,t,r)}function Sa(e,t,r){var n=e[t];(!(_e.call(e,t)&&Pt(n,r))||r===a&&!(t in e))&&Qt(e,t,r)}function ks(e,t){for(var r=e.length;r--;)if(Pt(e[r][0],t))return r;return-1}function yf(e,t,r,n){return mr(e,function(l,d,f){t(n,l,r(l),f)}),n}function Sl(e,t){return e&&Ut(t,je(t),e)}function hf(e,t){return e&&Ut(t,st(t),e)}function Qt(e,t,r){t=="__proto__"&&xs?xs(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Ei(e,t){for(var r=-1,n=t.length,l=T(n),d=e==null;++r<n;)l[r]=d?a:hn(e,t[r]);return l}function kr(e,t,r){return e===e&&(r!==a&&(e=e<=r?e:r),t!==a&&(e=e>=t?e:t)),e}function It(e,t,r,n,l,d){var f,h=t&k,x=t&z,A=t&E;if(r&&(f=l?r(e,n,l,d):r(e)),f!==a)return f;if(!ke(e))return e;var q=Q(e);if(q){if(f=sy(e),!h)return rt(e,f)}else{var C=Xe(e),O=C==br||C==Ja;if(_r(e))return ec(e,h);if(C==bt||C==Ve||O&&!l){if(f=x||O?{}:bc(e),!h)return x?Xf(e,hf(f,e)):Gf(e,Sl(f,e))}else{if(!ve[C])return l?e:{};f=iy(e,C,h)}}d||(d=new Ot);var L=d.get(e);if(L)return L;d.set(e,f),Yc(e)?e.forEach(function($){f.add(It($,t,r,$,e,d))}):Gc(e)&&e.forEach(function($,se){f.set(se,It($,t,r,se,e,d))});var H=A?x?tn:en:x?st:je,ee=q?a:H(e);return vt(ee||e,function($,se){ee&&(se=$,$=e[se]),Sa(f,se,It($,t,r,se,e,d))}),f}function _f(e){var t=je(e);return function(r){return zl(r,e,t)}}function zl(e,t,r){var n=r.length;if(e==null)return!n;for(e=xe(e);n--;){var l=r[n],d=t[l],f=e[l];if(f===a&&!(l in e)||!d(f))return!1}return!0}function Nl(e,t,r){if(typeof e!="function")throw new wt(m);return Ma(function(){e.apply(a,r)},t)}function za(e,t,r,n){var l=-1,d=cs,f=!0,h=e.length,x=[],A=t.length;if(!h)return x;r&&(t=Te(t,dt(r))),n?(d=vi,f=!1):t.length>=u&&(d=Ia,f=!1,t=new Dr(t));e:for(;++l<h;){var q=e[l],C=r==null?q:r(q);if(q=n||q!==0?q:0,f&&C===C){for(var O=A;O--;)if(t[O]===C)continue e;x.push(q)}else d(t,C,n)||x.push(q)}return x}var mr=ic(jt),Ol=ic(Mi,!0);function gf(e,t){var r=!0;return mr(e,function(n,l,d){return r=!!t(n,l,d),r}),r}function As(e,t,r){for(var n=-1,l=e.length;++n<l;){var d=e[n],f=t(d);if(f!=null&&(h===a?f===f&&!mt(f):r(f,h)))var h=f,x=d}return x}function bf(e,t,r,n){var l=e.length;for(r=Z(r),r<0&&(r=-r>l?0:l+r),n=n===a||n>l?l:Z(n),n<0&&(n+=l),n=r>n?0:Kc(n);r<n;)e[r++]=t;return e}function Pl(e,t){var r=[];return mr(e,function(n,l,d){t(n,l,d)&&r.push(n)}),r}function He(e,t,r,n,l){var d=-1,f=e.length;for(r||(r=oy),l||(l=[]);++d<f;){var h=e[d];t>0&&r(h)?t>1?He(h,t-1,r,n,l):ur(l,h):n||(l[l.length]=h)}return l}var Ri=nc(),El=nc(!0);function jt(e,t){return e&&Ri(e,t,je)}function Mi(e,t){return e&&El(e,t,je)}function qs(e,t){return cr(t,function(r){return tr(e[r])})}function Ar(e,t){t=yr(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[Wt(t[r++])];return r&&r==n?e:a}function Rl(e,t,r){var n=t(e);return Q(e)?n:ur(n,r(e))}function Ke(e){return e==null?e===a?oi:Er:Tr&&Tr in xe(e)?ty(e):fy(e)}function Li(e,t){return e>t}function xf(e,t){return e!=null&&_e.call(e,t)}function vf(e,t){return e!=null&&t in xe(e)}function wf(e,t,r){return e>=Ge(t,r)&&e<Le(t,r)}function Fi(e,t,r){for(var n=r?vi:cs,l=e[0].length,d=e.length,f=d,h=T(d),x=1/0,A=[];f--;){var q=e[f];f&&t&&(q=Te(q,dt(t))),x=Ge(q.length,x),h[f]=!r&&(t||l>=120&&q.length>=120)?new Dr(f&&q):a}q=e[0];var C=-1,O=h[0];e:for(;++C<l&&A.length<x;){var L=q[C],H=t?t(L):L;if(L=r||L!==0?L:0,!(O?Ia(O,H):n(A,H,r))){for(f=d;--f;){var ee=h[f];if(!(ee?Ia(ee,H):n(e[f],H,r)))continue e}O&&O.push(H),A.push(L)}}return A}function Tf(e,t,r,n){return jt(e,function(l,d,f){t(n,r(l),d,f)}),n}function Na(e,t,r){t=yr(t,e),e=Tc(e,t);var n=e==null?e:e[Wt(kt(t))];return n==null?a:ut(n,e,r)}function Ml(e){return Ce(e)&&Ke(e)==Ve}function If(e){return Ce(e)&&Ke(e)==St}function Df(e){return Ce(e)&&Ke(e)==Gt}function Oa(e,t,r,n,l){return e===t?!0:e==null||t==null||!Ce(e)&&!Ce(t)?e!==e&&t!==t:kf(e,t,r,n,Oa,l)}function kf(e,t,r,n,l,d){var f=Q(e),h=Q(t),x=f?nr:Xe(e),A=h?nr:Xe(t);x=x==Ve?bt:x,A=A==Ve?bt:A;var q=x==bt,C=A==bt,O=x==A;if(O&&_r(e)){if(!_r(t))return!1;f=!0,q=!1}if(O&&!q)return d||(d=new Ot),f||Zr(e)?hc(e,t,r,n,l,d):Zf(e,t,x,r,n,l,d);if(!(r&P)){var L=q&&_e.call(e,"__wrapped__"),H=C&&_e.call(t,"__wrapped__");if(L||H){var ee=L?e.value():e,$=H?t.value():t;return d||(d=new Ot),l(ee,$,r,n,d)}}return O?(d||(d=new Ot),ey(e,t,r,n,l,d)):!1}function Af(e){return Ce(e)&&Xe(e)==lt}function Bi(e,t,r,n){var l=r.length,d=l,f=!n;if(e==null)return!d;for(e=xe(e);l--;){var h=r[l];if(f&&h[2]?h[1]!==e[h[0]]:!(h[0]in e))return!1}for(;++l<d;){h=r[l];var x=h[0],A=e[x],q=h[1];if(f&&h[2]){if(A===a&&!(x in e))return!1}else{var C=new Ot;if(n)var O=n(A,q,x,e,t,C);if(!(O===a?Oa(q,A,P|j,n,C):O))return!1}}return!0}function Ll(e){if(!ke(e)||cy(e))return!1;var t=tr(e)?km:Ue;return t.test(Cr(e))}function qf(e){return Ce(e)&&Ke(e)==xr}function Cf(e){return Ce(e)&&Xe(e)==ct}function Sf(e){return Ce(e)&&$s(e.length)&&!!we[Ke(e)]}function Fl(e){return typeof e=="function"?e:e==null?it:typeof e=="object"?Q(e)?Ul(e[0],e[1]):jl(e):ou(e)}function ji(e){if(!Ra(e))return Nm(e);var t=[];for(var r in xe(e))_e.call(e,r)&&r!="constructor"&&t.push(r);return t}function zf(e){if(!ke(e))return my(e);var t=Ra(e),r=[];for(var n in e)n=="constructor"&&(t||!_e.call(e,n))||r.push(n);return r}function Ui(e,t){return e<t}function Bl(e,t){var r=-1,n=at(e)?T(e.length):[];return mr(e,function(l,d,f){n[++r]=t(l,d,f)}),n}function jl(e){var t=an(e);return t.length==1&&t[0][2]?vc(t[0][0],t[0][1]):function(r){return r===e||Bi(r,e,t)}}function Ul(e,t){return nn(e)&&xc(t)?vc(Wt(e),t):function(r){var n=hn(r,e);return n===a&&n===t?_n(r,e):Oa(t,n,P|j)}}function Cs(e,t,r,n,l){e!==t&&Ri(t,function(d,f){if(l||(l=new Ot),ke(d))Nf(e,t,f,r,Cs,n,l);else{var h=n?n(ln(e,f),d,f+"",e,t,l):a;h===a&&(h=d),Pi(e,f,h)}},st)}function Nf(e,t,r,n,l,d,f){var h=ln(e,r),x=ln(t,r),A=f.get(x);if(A){Pi(e,r,A);return}var q=d?d(h,x,r+"",e,t,f):a,C=q===a;if(C){var O=Q(x),L=!O&&_r(x),H=!O&&!L&&Zr(x);q=x,O||L||H?Q(h)?q=h:Ne(h)?q=rt(h):L?(C=!1,q=ec(x,!0)):H?(C=!1,q=tc(x,!0)):q=[]:La(x)||Sr(x)?(q=h,Sr(h)?q=Qc(h):(!ke(h)||tr(h))&&(q=bc(x))):C=!1}C&&(f.set(x,q),l(q,x,n,d,f),f.delete(x)),Pi(e,r,q)}function Wl(e,t){var r=e.length;if(r)return t+=t<0?r:0,er(t,r)?e[t]:a}function Hl(e,t,r){t.length?t=Te(t,function(d){return Q(d)?function(f){return Ar(f,d.length===1?d[0]:d)}:d}):t=[it];var n=-1;t=Te(t,dt(W()));var l=Bl(e,function(d,f,h){var x=Te(t,function(A){return A(d)});return{criteria:x,index:++n,value:d}});return sm(l,function(d,f){return $f(d,f,r)})}function Of(e,t){return $l(e,t,function(r,n){return _n(e,n)})}function $l(e,t,r){for(var n=-1,l=t.length,d={};++n<l;){var f=t[n],h=Ar(e,f);r(h,f)&&Pa(d,yr(f,e),h)}return d}function Pf(e){return function(t){return Ar(t,e)}}function Wi(e,t,r,n){var l=n?am:Ur,d=-1,f=t.length,h=e;for(e===t&&(t=rt(t)),r&&(h=Te(e,dt(r)));++d<f;)for(var x=0,A=t[d],q=r?r(A):A;(x=l(h,q,x,n))>-1;)h!==e&&bs.call(h,x,1),bs.call(e,x,1);return e}function Gl(e,t){for(var r=e?t.length:0,n=r-1;r--;){var l=t[r];if(r==n||l!==d){var d=l;er(l)?bs.call(e,l,1):Xi(e,l)}}return e}function Hi(e,t){return e+ws(kl()*(t-e+1))}function Ef(e,t,r,n){for(var l=-1,d=Le(vs((t-e)/(r||1)),0),f=T(d);d--;)f[n?d:++l]=e,e+=r;return f}function $i(e,t){var r="";if(!e||t<1||t>ze)return r;do t%2&&(r+=e),t=ws(t/2),t&&(e+=e);while(t);return r}function te(e,t){return cn(wc(e,t,it),e+"")}function Rf(e){return Cl(ea(e))}function Mf(e,t){var r=ea(e);return Fs(r,kr(t,0,r.length))}function Pa(e,t,r,n){if(!ke(e))return e;t=yr(t,e);for(var l=-1,d=t.length,f=d-1,h=e;h!=null&&++l<d;){var x=Wt(t[l]),A=r;if(x==="__proto__"||x==="constructor"||x==="prototype")return e;if(l!=f){var q=h[x];A=n?n(q,x,h):a,A===a&&(A=ke(q)?q:er(t[l+1])?[]:{})}Sa(h,x,A),h=h[x]}return e}var Xl=Ts?function(e,t){return Ts.set(e,t),e}:it,Lf=xs?function(e,t){return xs(e,"toString",{configurable:!0,enumerable:!1,value:bn(t),writable:!0})}:it;function Ff(e){return Fs(ea(e))}function Dt(e,t,r){var n=-1,l=e.length;t<0&&(t=-t>l?0:l+t),r=r>l?l:r,r<0&&(r+=l),l=t>r?0:r-t>>>0,t>>>=0;for(var d=T(l);++n<l;)d[n]=e[n+t];return d}function Bf(e,t){var r;return mr(e,function(n,l,d){return r=t(n,l,d),!r}),!!r}function Ss(e,t,r){var n=0,l=e==null?n:e.length;if(typeof t=="number"&&t===t&&l<=Be){for(;n<l;){var d=n+l>>>1,f=e[d];f!==null&&!mt(f)&&(r?f<=t:f<t)?n=d+1:l=d}return l}return Gi(e,t,it,r)}function Gi(e,t,r,n){var l=0,d=e==null?0:e.length;if(d===0)return 0;t=r(t);for(var f=t!==t,h=t===null,x=mt(t),A=t===a;l<d;){var q=ws((l+d)/2),C=r(e[q]),O=C!==a,L=C===null,H=C===C,ee=mt(C);if(f)var $=n||H;else A?$=H&&(n||O):h?$=H&&O&&(n||!L):x?$=H&&O&&!L&&(n||!ee):L||ee?$=!1:$=n?C<=t:C<t;$?l=q+1:d=q}return Ge(d,ge)}function Yl(e,t){for(var r=-1,n=e.length,l=0,d=[];++r<n;){var f=e[r],h=t?t(f):f;if(!r||!Pt(h,x)){var x=h;d[l++]=f===0?0:f}}return d}function Vl(e){return typeof e=="number"?e:mt(e)?Ht:+e}function pt(e){if(typeof e=="string")return e;if(Q(e))return Te(e,pt)+"";if(mt(e))return Al?Al.call(e):"";var t=e+"";return t=="0"&&1/e==-Se?"-0":t}function fr(e,t,r){var n=-1,l=cs,d=e.length,f=!0,h=[],x=h;if(r)f=!1,l=vi;else if(d>=u){var A=t?null:Qf(e);if(A)return ds(A);f=!1,l=Ia,x=new Dr}else x=t?[]:h;e:for(;++n<d;){var q=e[n],C=t?t(q):q;if(q=r||q!==0?q:0,f&&C===C){for(var O=x.length;O--;)if(x[O]===C)continue e;t&&x.push(C),h.push(q)}else l(x,C,r)||(x!==h&&x.push(C),h.push(q))}return h}function Xi(e,t){return t=yr(t,e),e=Tc(e,t),e==null||delete e[Wt(kt(t))]}function Kl(e,t,r,n){return Pa(e,t,r(Ar(e,t)),n)}function zs(e,t,r,n){for(var l=e.length,d=n?l:-1;(n?d--:++d<l)&&t(e[d],d,e););return r?Dt(e,n?0:d,n?d+1:l):Dt(e,n?d+1:0,n?l:d)}function Ql(e,t){var r=e;return r instanceof le&&(r=r.value()),wi(t,function(n,l){return l.func.apply(l.thisArg,ur([n],l.args))},r)}function Yi(e,t,r){var n=e.length;if(n<2)return n?fr(e[0]):[];for(var l=-1,d=T(n);++l<n;)for(var f=e[l],h=-1;++h<n;)h!=l&&(d[l]=za(d[l]||f,e[h],t,r));return fr(He(d,1),t,r)}function Jl(e,t,r){for(var n=-1,l=e.length,d=t.length,f={};++n<l;){var h=n<d?t[n]:a;r(f,e[n],h)}return f}function Vi(e){return Ne(e)?e:[]}function Ki(e){return typeof e=="function"?e:it}function yr(e,t){return Q(e)?e:nn(e,t)?[e]:Ac(ye(e))}var jf=te;function hr(e,t,r){var n=e.length;return r=r===a?n:r,!t&&r>=n?e:Dt(e,t,r)}var Zl=Am||function(e){return We.clearTimeout(e)};function ec(e,t){if(t)return e.slice();var r=e.length,n=vl?vl(r):new e.constructor(r);return e.copy(n),n}function Qi(e){var t=new e.constructor(e.byteLength);return new _s(t).set(new _s(e)),t}function Uf(e,t){var r=t?Qi(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}function Wf(e){var t=new e.constructor(e.source,fe.exec(e));return t.lastIndex=e.lastIndex,t}function Hf(e){return Ca?xe(Ca.call(e)):{}}function tc(e,t){var r=t?Qi(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function rc(e,t){if(e!==t){var r=e!==a,n=e===null,l=e===e,d=mt(e),f=t!==a,h=t===null,x=t===t,A=mt(t);if(!h&&!A&&!d&&e>t||d&&f&&x&&!h&&!A||n&&f&&x||!r&&x||!l)return 1;if(!n&&!d&&!A&&e<t||A&&r&&l&&!n&&!d||h&&r&&l||!f&&l||!x)return-1}return 0}function $f(e,t,r){for(var n=-1,l=e.criteria,d=t.criteria,f=l.length,h=r.length;++n<f;){var x=rc(l[n],d[n]);if(x){if(n>=h)return x;var A=r[n];return x*(A=="desc"?-1:1)}}return e.index-t.index}function ac(e,t,r,n){for(var l=-1,d=e.length,f=r.length,h=-1,x=t.length,A=Le(d-f,0),q=T(x+A),C=!n;++h<x;)q[h]=t[h];for(;++l<f;)(C||l<d)&&(q[r[l]]=e[l]);for(;A--;)q[h++]=e[l++];return q}function sc(e,t,r,n){for(var l=-1,d=e.length,f=-1,h=r.length,x=-1,A=t.length,q=Le(d-h,0),C=T(q+A),O=!n;++l<q;)C[l]=e[l];for(var L=l;++x<A;)C[L+x]=t[x];for(;++f<h;)(O||l<d)&&(C[L+r[f]]=e[l++]);return C}function rt(e,t){var r=-1,n=e.length;for(t||(t=T(n));++r<n;)t[r]=e[r];return t}function Ut(e,t,r,n){var l=!r;r||(r={});for(var d=-1,f=t.length;++d<f;){var h=t[d],x=n?n(r[h],e[h],h,r,e):a;x===a&&(x=e[h]),l?Qt(r,h,x):Sa(r,h,x)}return r}function Gf(e,t){return Ut(e,sn(e),t)}function Xf(e,t){return Ut(e,_c(e),t)}function Ns(e,t){return function(r,n){var l=Q(r)?Qp:yf,d=t?t():{};return l(r,e,W(n,2),d)}}function Kr(e){return te(function(t,r){var n=-1,l=r.length,d=l>1?r[l-1]:a,f=l>2?r[2]:a;for(d=e.length>3&&typeof d=="function"?(l--,d):a,f&&Qe(r[0],r[1],f)&&(d=l<3?a:d,l=1),t=xe(t);++n<l;){var h=r[n];h&&e(t,h,n,d)}return t})}function ic(e,t){return function(r,n){if(r==null)return r;if(!at(r))return e(r,n);for(var l=r.length,d=t?l:-1,f=xe(r);(t?d--:++d<l)&&n(f[d],d,f)!==!1;);return r}}function nc(e){return function(t,r,n){for(var l=-1,d=xe(t),f=n(t),h=f.length;h--;){var x=f[e?h:++l];if(r(d[x],x,d)===!1)break}return t}}function Yf(e,t,r){var n=t&re,l=Ea(e);function d(){var f=this&&this!==We&&this instanceof d?l:e;return f.apply(n?r:this,arguments)}return d}function oc(e){return function(t){t=ye(t);var r=Wr(t)?Nt(t):a,n=r?r[0]:t.charAt(0),l=r?hr(r,1).join(""):t.slice(1);return n[e]()+l}}function Qr(e){return function(t){return wi(iu(su(t).replace(Mp,"")),e,"")}}function Ea(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=Vr(e.prototype),n=e.apply(r,t);return ke(n)?n:r}}function Vf(e,t,r){var n=Ea(e);function l(){for(var d=arguments.length,f=T(d),h=d,x=Jr(l);h--;)f[h]=arguments[h];var A=d<3&&f[0]!==x&&f[d-1]!==x?[]:dr(f,x);if(d-=A.length,d<r)return pc(e,t,Os,l.placeholder,a,f,A,a,a,r-d);var q=this&&this!==We&&this instanceof l?n:e;return ut(q,this,f)}return l}function lc(e){return function(t,r,n){var l=xe(t);if(!at(t)){var d=W(r,3);t=je(t),r=function(h){return d(l[h],h,l)}}var f=e(t,r,n);return f>-1?l[d?t[f]:f]:a}}function cc(e){return Zt(function(t){var r=t.length,n=r,l=Tt.prototype.thru;for(e&&t.reverse();n--;){var d=t[n];if(typeof d!="function")throw new wt(m);if(l&&!f&&Ms(d)=="wrapper")var f=new Tt([],!0)}for(n=f?n:r;++n<r;){d=t[n];var h=Ms(d),x=h=="wrapper"?rn(d):a;x&&on(x[0])&&x[1]==(J|F|G|Pe)&&!x[4].length&&x[9]==1?f=f[Ms(x[0])].apply(f,x[3]):f=d.length==1&&on(d)?f[h]():f.thru(d)}return function(){var A=arguments,q=A[0];if(f&&A.length==1&&Q(q))return f.plant(q).value();for(var C=0,O=r?t[C].apply(this,A):q;++C<r;)O=t[C].call(this,O);return O}})}function Os(e,t,r,n,l,d,f,h,x,A){var q=t&J,C=t&re,O=t&me,L=t&(F|B),H=t&be,ee=O?a:Ea(e);function $(){for(var se=arguments.length,ce=T(se),ft=se;ft--;)ce[ft]=arguments[ft];if(L)var Je=Jr($),yt=nm(ce,Je);if(n&&(ce=ac(ce,n,l,L)),d&&(ce=sc(ce,d,f,L)),se-=yt,L&&se<A){var Oe=dr(ce,Je);return pc(e,t,Os,$.placeholder,r,ce,Oe,h,x,A-se)}var Et=C?r:this,ar=O?Et[e]:e;return se=ce.length,h?ce=yy(ce,h):H&&se>1&&ce.reverse(),q&&x<se&&(ce.length=x),this&&this!==We&&this instanceof $&&(ar=ee||Ea(ar)),ar.apply(Et,ce)}return $}function uc(e,t){return function(r,n){return Tf(r,e,t(n),{})}}function Ps(e,t){return function(r,n){var l;if(r===a&&n===a)return t;if(r!==a&&(l=r),n!==a){if(l===a)return n;typeof r=="string"||typeof n=="string"?(r=pt(r),n=pt(n)):(r=Vl(r),n=Vl(n)),l=e(r,n)}return l}}function Ji(e){return Zt(function(t){return t=Te(t,dt(W())),te(function(r){var n=this;return e(t,function(l){return ut(l,n,r)})})})}function Es(e,t){t=t===a?" ":pt(t);var r=t.length;if(r<2)return r?$i(t,e):t;var n=$i(t,vs(e/Hr(t)));return Wr(t)?hr(Nt(n),0,e).join(""):n.slice(0,e)}function Kf(e,t,r,n){var l=t&re,d=Ea(e);function f(){for(var h=-1,x=arguments.length,A=-1,q=n.length,C=T(q+x),O=this&&this!==We&&this instanceof f?d:e;++A<q;)C[A]=n[A];for(;x--;)C[A++]=arguments[++h];return ut(O,l?r:this,C)}return f}function dc(e){return function(t,r,n){return n&&typeof n!="number"&&Qe(t,r,n)&&(r=n=a),t=rr(t),r===a?(r=t,t=0):r=rr(r),n=n===a?t<r?1:-1:rr(n),Ef(t,r,n,e)}}function Rs(e){return function(t,r){return typeof t=="string"&&typeof r=="string"||(t=At(t),r=At(r)),e(t,r)}}function pc(e,t,r,n,l,d,f,h,x,A){var q=t&F,C=q?f:a,O=q?a:f,L=q?d:a,H=q?a:d;t|=q?G:ie,t&=~(q?ie:G),t&Y||(t&=~(re|me));var ee=[e,t,l,L,C,H,O,h,x,A],$=r.apply(a,ee);return on(e)&&Ic($,ee),$.placeholder=n,Dc($,e,t)}function Zi(e){var t=Me[e];return function(r,n){if(r=At(r),n=n==null?0:Ge(Z(n),292),n&&Dl(r)){var l=(ye(r)+"e").split("e"),d=t(l[0]+"e"+(+l[1]+n));return l=(ye(d)+"e").split("e"),+(l[0]+"e"+(+l[1]-n))}return t(r)}}var Qf=Xr&&1/ds(new Xr([,-0]))[1]==Se?function(e){return new Xr(e)}:wn;function mc(e){return function(t){var r=Xe(t);return r==lt?Ci(t):r==ct?mm(t):im(t,e(t))}}function Jt(e,t,r,n,l,d,f,h){var x=t&me;if(!x&&typeof e!="function")throw new wt(m);var A=n?n.length:0;if(A||(t&=~(G|ie),n=l=a),f=f===a?f:Le(Z(f),0),h=h===a?h:Z(h),A-=l?l.length:0,t&ie){var q=n,C=l;n=l=a}var O=x?a:rn(e),L=[e,t,r,n,l,q,C,d,f,h];if(O&&py(L,O),e=L[0],t=L[1],r=L[2],n=L[3],l=L[4],h=L[9]=L[9]===a?x?0:e.length:Le(L[9]-A,0),!h&&t&(F|B)&&(t&=~(F|B)),!t||t==re)var H=Yf(e,t,r);else t==F||t==B?H=Vf(e,t,h):(t==G||t==(re|G))&&!l.length?H=Kf(e,t,r,n):H=Os.apply(a,L);var ee=O?Xl:Ic;return Dc(ee(H,L),e,t)}function fc(e,t,r,n){return e===a||Pt(e,Gr[r])&&!_e.call(n,r)?t:e}function yc(e,t,r,n,l,d){return ke(e)&&ke(t)&&(d.set(t,e),Cs(e,t,a,yc,d),d.delete(t)),e}function Jf(e){return La(e)?a:e}function hc(e,t,r,n,l,d){var f=r&P,h=e.length,x=t.length;if(h!=x&&!(f&&x>h))return!1;var A=d.get(e),q=d.get(t);if(A&&q)return A==t&&q==e;var C=-1,O=!0,L=r&j?new Dr:a;for(d.set(e,t),d.set(t,e);++C<h;){var H=e[C],ee=t[C];if(n)var $=f?n(ee,H,C,t,e,d):n(H,ee,C,e,t,d);if($!==a){if($)continue;O=!1;break}if(L){if(!Ti(t,function(se,ce){if(!Ia(L,ce)&&(H===se||l(H,se,r,n,d)))return L.push(ce)})){O=!1;break}}else if(!(H===ee||l(H,ee,r,n,d))){O=!1;break}}return d.delete(e),d.delete(t),O}function Zf(e,t,r,n,l,d,f){switch(r){case lr:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case St:return!(e.byteLength!=t.byteLength||!d(new _s(e),new _s(t)));case Ft:case Gt:case Bt:return Pt(+e,+t);case Pr:return e.name==t.name&&e.message==t.message;case xr:case Xt:return e==t+"";case lt:var h=Ci;case ct:var x=n&P;if(h||(h=ds),e.size!=t.size&&!x)return!1;var A=f.get(e);if(A)return A==t;n|=j,f.set(e,t);var q=hc(h(e),h(t),n,l,d,f);return f.delete(e),q;case Mr:if(Ca)return Ca.call(e)==Ca.call(t)}return!1}function ey(e,t,r,n,l,d){var f=r&P,h=en(e),x=h.length,A=en(t),q=A.length;if(x!=q&&!f)return!1;for(var C=x;C--;){var O=h[C];if(!(f?O in t:_e.call(t,O)))return!1}var L=d.get(e),H=d.get(t);if(L&&H)return L==t&&H==e;var ee=!0;d.set(e,t),d.set(t,e);for(var $=f;++C<x;){O=h[C];var se=e[O],ce=t[O];if(n)var ft=f?n(ce,se,O,t,e,d):n(se,ce,O,e,t,d);if(!(ft===a?se===ce||l(se,ce,r,n,d):ft)){ee=!1;break}$||($=O=="constructor")}if(ee&&!$){var Je=e.constructor,yt=t.constructor;Je!=yt&&"constructor"in e&&"constructor"in t&&!(typeof Je=="function"&&Je instanceof Je&&typeof yt=="function"&&yt instanceof yt)&&(ee=!1)}return d.delete(e),d.delete(t),ee}function Zt(e){return cn(wc(e,a,zc),e+"")}function en(e){return Rl(e,je,sn)}function tn(e){return Rl(e,st,_c)}var rn=Ts?function(e){return Ts.get(e)}:wn;function Ms(e){for(var t=e.name+"",r=Yr[t],n=_e.call(Yr,t)?r.length:0;n--;){var l=r[n],d=l.func;if(d==null||d==e)return l.name}return t}function Jr(e){var t=_e.call(c,"placeholder")?c:e;return t.placeholder}function W(){var e=c.iteratee||xn;return e=e===xn?Fl:e,arguments.length?e(arguments[0],arguments[1]):e}function Ls(e,t){var r=e.__data__;return ly(t)?r[typeof t=="string"?"string":"hash"]:r.map}function an(e){for(var t=je(e),r=t.length;r--;){var n=t[r],l=e[n];t[r]=[n,l,xc(l)]}return t}function qr(e,t){var r=um(e,t);return Ll(r)?r:a}function ty(e){var t=_e.call(e,Tr),r=e[Tr];try{e[Tr]=a;var n=!0}catch{}var l=ys.call(e);return n&&(t?e[Tr]=r:delete e[Tr]),l}var sn=zi?function(e){return e==null?[]:(e=xe(e),cr(zi(e),function(t){return Tl.call(e,t)}))}:Tn,_c=zi?function(e){for(var t=[];e;)ur(t,sn(e)),e=gs(e);return t}:Tn,Xe=Ke;(Ni&&Xe(new Ni(new ArrayBuffer(1)))!=lr||ka&&Xe(new ka)!=lt||Oi&&Xe(Oi.resolve())!=ma||Xr&&Xe(new Xr)!=ct||Aa&&Xe(new Aa)!=or)&&(Xe=function(e){var t=Ke(e),r=t==bt?e.constructor:a,n=r?Cr(r):"";if(n)switch(n){case Rm:return lr;case Mm:return lt;case Lm:return ma;case Fm:return ct;case Bm:return or}return t});function ry(e,t,r){for(var n=-1,l=r.length;++n<l;){var d=r[n],f=d.size;switch(d.type){case"drop":e+=f;break;case"dropRight":t-=f;break;case"take":t=Ge(t,e+f);break;case"takeRight":e=Le(e,t-f);break}}return{start:e,end:t}}function ay(e){var t=e.match(mi);return t?t[1].split(y):[]}function gc(e,t,r){t=yr(t,e);for(var n=-1,l=t.length,d=!1;++n<l;){var f=Wt(t[n]);if(!(d=e!=null&&r(e,f)))break;e=e[f]}return d||++n!=l?d:(l=e==null?0:e.length,!!l&&$s(l)&&er(f,l)&&(Q(e)||Sr(e)))}function sy(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&_e.call(e,"index")&&(r.index=e.index,r.input=e.input),r}function bc(e){return typeof e.constructor=="function"&&!Ra(e)?Vr(gs(e)):{}}function iy(e,t,r){var n=e.constructor;switch(t){case St:return Qi(e);case Ft:case Gt:return new n(+e);case lr:return Uf(e,r);case Lr:case Fr:case vr:case fa:case ya:case ha:case _a:case ga:case ba:return tc(e,r);case lt:return new n;case Bt:case Xt:return new n(e);case xr:return Wf(e);case ct:return new n;case Mr:return Hf(e)}}function ny(e,t){var r=t.length;if(!r)return e;var n=r-1;return t[n]=(r>1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(pi,`{
|
113
113
|
/* [wrapped with `+t+`] */
|
114
|
-
`)}function oy(e){return Q(e)||Sr(e)||!!(Il&&e&&e[Il])}function er(e,t){var r=typeof e;return t=t??ze,!!t&&(r=="number"||r!="symbol"&&qe.test(e))&&e>-1&&e%1==0&&e<t}function Qe(e,t,r){if(!ke(r))return!1;var n=typeof t;return(n=="number"?at(r)&&er(t,r.length):n=="string"&&t in r)?Pt(r[t],e):!1}function nn(e,t){if(Q(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||mt(e)?!0:is.test(e)||!ss.test(e)||t!=null&&e in xe(t)}function ly(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function on(e){var t=Ms(e),r=c[t];if(typeof r!="function"||!(t in le.prototype))return!1;if(e===r)return!0;var n=rn(r);return!!n&&e===n[0]}function cy(e){return!!xl&&xl in e}var uy=ms?tr:In;function Ra(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Gr;return e===r}function xc(e){return e===e&&!ke(e)}function vc(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==a||e in xe(r))}}function dy(e){var t=Ws(e,function(n){return r.size===b&&r.clear(),n}),r=t.cache;return t}function py(e,t){var r=e[1],n=t[1],l=r|n,d=l<(ee|me|J),f=n==J&&r==F||n==J&&r==Pe&&e[7].length<=t[8]||n==(J|Pe)&&t[7].length<=t[8]&&r==F;if(!(d||f))return e;n&ee&&(e[2]=t[2],l|=r&ee?0:Y);var h=t[3];if(h){var x=e[3];e[3]=x?ac(x,h,t[4]):h,e[4]=x?dr(e[3],w):t[4]}return h=t[5],h&&(x=e[5],e[5]=x?sc(x,h,t[6]):h,e[6]=x?dr(e[5],w):t[6]),h=t[7],h&&(e[7]=h),n&J&&(e[8]=e[8]==null?t[8]:Ge(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=l,e}function my(e){var t=[];if(e!=null)for(var r in xe(e))t.push(r);return t}function fy(e){return ys.call(e)}function wc(e,t,r){return t=Le(t===a?e.length-1:t,0),function(){for(var n=arguments,l=-1,d=Le(n.length-t,0),f=T(d);++l<d;)f[l]=n[t+l];l=-1;for(var h=T(t+1);++l<t;)h[l]=n[l];return h[t]=r(f),ut(e,this,h)}}function Tc(e,t){return t.length<2?e:Ar(e,Dt(t,0,-1))}function yy(e,t){for(var r=e.length,n=Ge(t.length,r),l=rt(e);n--;){var d=t[n];e[n]=er(d,r)?l[d]:a}return e}function ln(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Ic=kc(Xl),Ma=Cm||function(e,t){return We.setTimeout(e,t)},cn=kc(Lf);function Dc(e,t,r){var n=t+"";return cn(e,ny(n,hy(ay(n),r)))}function kc(e){var t=0,r=0;return function(){var n=Om(),l=Ee-(n-r);if(r=n,l>0){if(++t>=gt)return arguments[0]}else t=0;return e.apply(a,arguments)}}function Fs(e,t){var r=-1,n=e.length,l=n-1;for(t=t===a?n:t;++r<t;){var d=Hi(r,l),f=e[d];e[d]=e[r],e[r]=f}return e.length=t,e}var Ac=dy(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(ui,function(r,n,l,d){t.push(l?d.replace(X,"$1"):n||r)}),t});function Wt(e){if(typeof e=="string"||mt(e))return e;var t=e+"";return t=="0"&&1/e==-Se?"-0":t}function Cr(e){if(e!=null){try{return fs.call(e)}catch{}try{return e+""}catch{}}return""}function hy(e,t){return vt($t,function(r){var n="_."+r[0];t&r[1]&&!cs(e,n)&&e.push(n)}),e.sort()}function qc(e){if(e instanceof le)return e.clone();var t=new Tt(e.__wrapped__,e.__chain__);return t.__actions__=rt(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function _y(e,t,r){(r?Qe(e,t,r):t===a)?t=1:t=Le(Z(t),0);var n=e==null?0:e.length;if(!n||t<1)return[];for(var l=0,d=0,f=T(vs(n/t));l<n;)f[d++]=Dt(e,l,l+=t);return f}function gy(e){for(var t=-1,r=e==null?0:e.length,n=0,l=[];++t<r;){var d=e[t];d&&(l[n++]=d)}return l}function by(){var e=arguments.length;if(!e)return[];for(var t=T(e-1),r=arguments[0],n=e;n--;)t[n-1]=arguments[n];return ur(Q(r)?rt(r):[r],He(t,1))}var xy=re(function(e,t){return Ne(e)?za(e,He(t,1,Ne,!0)):[]}),vy=re(function(e,t){var r=kt(t);return Ne(r)&&(r=a),Ne(e)?za(e,He(t,1,Ne,!0),W(r,2)):[]}),wy=re(function(e,t){var r=kt(t);return Ne(r)&&(r=a),Ne(e)?za(e,He(t,1,Ne,!0),a,r):[]});function Ty(e,t,r){var n=e==null?0:e.length;return n?(t=r||t===a?1:Z(t),Dt(e,t<0?0:t,n)):[]}function Iy(e,t,r){var n=e==null?0:e.length;return n?(t=r||t===a?1:Z(t),t=n-t,Dt(e,0,t<0?0:t)):[]}function Dy(e,t){return e&&e.length?zs(e,W(t,3),!0,!0):[]}function ky(e,t){return e&&e.length?zs(e,W(t,3),!0):[]}function Ay(e,t,r,n){var l=e==null?0:e.length;return l?(r&&typeof r!="number"&&Qe(e,t,r)&&(r=0,n=l),bf(e,t,r,n)):[]}function Cc(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var l=r==null?0:Z(r);return l<0&&(l=Le(n+l,0)),us(e,W(t,3),l)}function Sc(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var l=n-1;return r!==a&&(l=Z(r),l=r<0?Le(n+l,0):Ge(l,n-1)),us(e,W(t,3),l,!0)}function zc(e){var t=e==null?0:e.length;return t?He(e,1):[]}function qy(e){var t=e==null?0:e.length;return t?He(e,Se):[]}function Cy(e,t){var r=e==null?0:e.length;return r?(t=t===a?1:Z(t),He(e,t)):[]}function Sy(e){for(var t=-1,r=e==null?0:e.length,n={};++t<r;){var l=e[t];n[l[0]]=l[1]}return n}function Nc(e){return e&&e.length?e[0]:a}function zy(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var l=r==null?0:Z(r);return l<0&&(l=Le(n+l,0)),Ur(e,t,l)}function Ny(e){var t=e==null?0:e.length;return t?Dt(e,0,-1):[]}var Oy=re(function(e){var t=Te(e,Vi);return t.length&&t[0]===e[0]?Fi(t):[]}),Py=re(function(e){var t=kt(e),r=Te(e,Vi);return t===kt(r)?t=a:r.pop(),r.length&&r[0]===e[0]?Fi(r,W(t,2)):[]}),Ey=re(function(e){var t=kt(e),r=Te(e,Vi);return t=typeof t=="function"?t:a,t&&r.pop(),r.length&&r[0]===e[0]?Fi(r,a,t):[]});function Ry(e,t){return e==null?"":zm.call(e,t)}function kt(e){var t=e==null?0:e.length;return t?e[t-1]:a}function My(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var l=n;return r!==a&&(l=Z(r),l=l<0?Le(n+l,0):Ge(l,n-1)),t===t?ym(e,t,l):us(e,pl,l,!0)}function Ly(e,t){return e&&e.length?Wl(e,Z(t)):a}var Fy=re(Oc);function Oc(e,t){return e&&e.length&&t&&t.length?Wi(e,t):e}function By(e,t,r){return e&&e.length&&t&&t.length?Wi(e,t,W(r,2)):e}function jy(e,t,r){return e&&e.length&&t&&t.length?Wi(e,t,a,r):e}var Uy=Zt(function(e,t){var r=e==null?0:e.length,n=Ei(e,t);return Gl(e,Te(t,function(l){return er(l,r)?+l:l}).sort(rc)),n});function Wy(e,t){var r=[];if(!(e&&e.length))return r;var n=-1,l=[],d=e.length;for(t=W(t,3);++n<d;){var f=e[n];t(f,n,e)&&(r.push(f),l.push(n))}return Gl(e,l),r}function un(e){return e==null?e:Em.call(e)}function Hy(e,t,r){var n=e==null?0:e.length;return n?(r&&typeof r!="number"&&Qe(e,t,r)?(t=0,r=n):(t=t==null?0:Z(t),r=r===a?n:Z(r)),Dt(e,t,r)):[]}function $y(e,t){return Ss(e,t)}function Gy(e,t,r){return Gi(e,t,W(r,2))}function Xy(e,t){var r=e==null?0:e.length;if(r){var n=Ss(e,t);if(n<r&&Pt(e[n],t))return n}return-1}function Yy(e,t){return Ss(e,t,!0)}function Vy(e,t,r){return Gi(e,t,W(r,2),!0)}function Ky(e,t){var r=e==null?0:e.length;if(r){var n=Ss(e,t,!0)-1;if(Pt(e[n],t))return n}return-1}function Qy(e){return e&&e.length?Yl(e):[]}function Jy(e,t){return e&&e.length?Yl(e,W(t,2)):[]}function Zy(e){var t=e==null?0:e.length;return t?Dt(e,1,t):[]}function eh(e,t,r){return e&&e.length?(t=r||t===a?1:Z(t),Dt(e,0,t<0?0:t)):[]}function th(e,t,r){var n=e==null?0:e.length;return n?(t=r||t===a?1:Z(t),t=n-t,Dt(e,t<0?0:t,n)):[]}function rh(e,t){return e&&e.length?zs(e,W(t,3),!1,!0):[]}function ah(e,t){return e&&e.length?zs(e,W(t,3)):[]}var sh=re(function(e){return fr(He(e,1,Ne,!0))}),ih=re(function(e){var t=kt(e);return Ne(t)&&(t=a),fr(He(e,1,Ne,!0),W(t,2))}),nh=re(function(e){var t=kt(e);return t=typeof t=="function"?t:a,fr(He(e,1,Ne,!0),a,t)});function oh(e){return e&&e.length?fr(e):[]}function lh(e,t){return e&&e.length?fr(e,W(t,2)):[]}function ch(e,t){return t=typeof t=="function"?t:a,e&&e.length?fr(e,a,t):[]}function dn(e){if(!(e&&e.length))return[];var t=0;return e=cr(e,function(r){if(Ne(r))return t=Le(r.length,t),!0}),Ai(t,function(r){return Te(e,Ii(r))})}function Pc(e,t){if(!(e&&e.length))return[];var r=dn(e);return t==null?r:Te(r,function(n){return ut(t,a,n)})}var uh=re(function(e,t){return Ne(e)?za(e,t):[]}),dh=re(function(e){return Yi(cr(e,Ne))}),ph=re(function(e){var t=kt(e);return Ne(t)&&(t=a),Yi(cr(e,Ne),W(t,2))}),mh=re(function(e){var t=kt(e);return t=typeof t=="function"?t:a,Yi(cr(e,Ne),a,t)}),fh=re(dn);function yh(e,t){return Jl(e||[],t||[],Sa)}function hh(e,t){return Jl(e||[],t||[],Pa)}var _h=re(function(e){var t=e.length,r=t>1?e[t-1]:a;return r=typeof r=="function"?(e.pop(),r):a,Pc(e,r)});function Ec(e){var t=c(e);return t.__chain__=!0,t}function gh(e,t){return t(e),e}function Bs(e,t){return t(e)}var bh=Zt(function(e){var t=e.length,r=t?e[0]:0,n=this.__wrapped__,l=function(d){return Ei(d,e)};return t>1||this.__actions__.length||!(n instanceof le)||!er(r)?this.thru(l):(n=n.slice(r,+r+(t?1:0)),n.__actions__.push({func:Bs,args:[l],thisArg:a}),new Tt(n,this.__chain__).thru(function(d){return t&&!d.length&&d.push(a),d}))});function xh(){return Ec(this)}function vh(){return new Tt(this.value(),this.__chain__)}function wh(){this.__values__===a&&(this.__values__=Vc(this.value()));var e=this.__index__>=this.__values__.length,t=e?a:this.__values__[this.__index__++];return{done:e,value:t}}function Th(){return this}function Ih(e){for(var t,r=this;r instanceof Ds;){var n=qc(r);n.__index__=0,n.__values__=a,t?l.__wrapped__=n:t=n;var l=n;r=r.__wrapped__}return l.__wrapped__=e,t}function Dh(){var e=this.__wrapped__;if(e instanceof le){var t=e;return this.__actions__.length&&(t=new le(this)),t=t.reverse(),t.__actions__.push({func:Bs,args:[un],thisArg:a}),new Tt(t,this.__chain__)}return this.thru(un)}function kh(){return Ql(this.__wrapped__,this.__actions__)}var Ah=Ns(function(e,t,r){_e.call(e,r)?++e[r]:Qt(e,r,1)});function qh(e,t,r){var n=Q(e)?ul:gf;return r&&Qe(e,t,r)&&(t=a),n(e,W(t,3))}function Ch(e,t){var r=Q(e)?cr:Pl;return r(e,W(t,3))}var Sh=lc(Cc),zh=lc(Sc);function Nh(e,t){return He(js(e,t),1)}function Oh(e,t){return He(js(e,t),Se)}function Ph(e,t,r){return r=r===a?1:Z(r),He(js(e,t),r)}function Rc(e,t){var r=Q(e)?vt:mr;return r(e,W(t,3))}function Mc(e,t){var r=Q(e)?Jp:Ol;return r(e,W(t,3))}var Eh=Ns(function(e,t,r){_e.call(e,r)?e[r].push(t):Qt(e,r,[t])});function Rh(e,t,r,n){e=at(e)?e:ea(e),r=r&&!n?Z(r):0;var l=e.length;return r<0&&(r=Le(l+r,0)),Gs(e)?r<=l&&e.indexOf(t,r)>-1:!!l&&Ur(e,t,r)>-1}var Mh=re(function(e,t,r){var n=-1,l=typeof t=="function",d=at(e)?T(e.length):[];return mr(e,function(f){d[++n]=l?ut(t,f,r):Na(f,t,r)}),d}),Lh=Ns(function(e,t,r){Qt(e,r,t)});function js(e,t){var r=Q(e)?Te:Bl;return r(e,W(t,3))}function Fh(e,t,r,n){return e==null?[]:(Q(t)||(t=t==null?[]:[t]),r=n?a:r,Q(r)||(r=r==null?[]:[r]),Hl(e,t,r))}var Bh=Ns(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]});function jh(e,t,r){var n=Q(e)?wi:fl,l=arguments.length<3;return n(e,W(t,4),r,l,mr)}function Uh(e,t,r){var n=Q(e)?Zp:fl,l=arguments.length<3;return n(e,W(t,4),r,l,Ol)}function Wh(e,t){var r=Q(e)?cr:Pl;return r(e,Hs(W(t,3)))}function Hh(e){var t=Q(e)?Cl:Rf;return t(e)}function $h(e,t,r){(r?Qe(e,t,r):t===a)?t=1:t=Z(t);var n=Q(e)?mf:Mf;return n(e,t)}function Gh(e){var t=Q(e)?ff:Ff;return t(e)}function Xh(e){if(e==null)return 0;if(at(e))return Gs(e)?Hr(e):e.length;var t=Xe(e);return t==lt||t==ct?e.size:ji(e).length}function Yh(e,t,r){var n=Q(e)?Ti:Bf;return r&&Qe(e,t,r)&&(t=a),n(e,W(t,3))}var Vh=re(function(e,t){if(e==null)return[];var r=t.length;return r>1&&Qe(e,t[0],t[1])?t=[]:r>2&&Qe(t[0],t[1],t[2])&&(t=[t[0]]),Hl(e,He(t,1),[])}),Us=qm||function(){return We.Date.now()};function Kh(e,t){if(typeof t!="function")throw new wt(m);return e=Z(e),function(){if(--e<1)return t.apply(this,arguments)}}function Lc(e,t,r){return t=r?a:t,t=e&&t==null?e.length:t,Jt(e,J,a,a,a,a,t)}function Fc(e,t){var r;if(typeof t!="function")throw new wt(m);return e=Z(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=a),r}}var pn=re(function(e,t,r){var n=ee;if(r.length){var l=dr(r,Jr(pn));n|=G}return Jt(e,n,t,r,l)}),Bc=re(function(e,t,r){var n=ee|me;if(r.length){var l=dr(r,Jr(Bc));n|=G}return Jt(t,n,e,r,l)});function jc(e,t,r){t=r?a:t;var n=Jt(e,F,a,a,a,a,a,t);return n.placeholder=jc.placeholder,n}function Uc(e,t,r){t=r?a:t;var n=Jt(e,B,a,a,a,a,a,t);return n.placeholder=Uc.placeholder,n}function Wc(e,t,r){var n,l,d,f,h,x,A=0,q=!1,C=!1,O=!0;if(typeof e!="function")throw new wt(m);t=At(t)||0,ke(r)&&(q=!!r.leading,C="maxWait"in r,d=C?Le(At(r.maxWait)||0,t):d,O="trailing"in r?!!r.trailing:O);function L(Oe){var Et=n,ar=l;return n=l=a,A=Oe,f=e.apply(ar,Et),f}function H(Oe){return A=Oe,h=Ma(se,t),q?L(Oe):f}function te(Oe){var Et=Oe-x,ar=Oe-A,lu=t-Et;return C?Ge(lu,d-ar):lu}function $(Oe){var Et=Oe-x,ar=Oe-A;return x===a||Et>=t||Et<0||C&&ar>=d}function se(){var Oe=Us();if($(Oe))return ce(Oe);h=Ma(se,te(Oe))}function ce(Oe){return h=a,O&&n?L(Oe):(n=l=a,f)}function ft(){h!==a&&Zl(h),A=0,n=x=l=h=a}function Je(){return h===a?f:ce(Us())}function yt(){var Oe=Us(),Et=$(Oe);if(n=arguments,l=this,x=Oe,Et){if(h===a)return H(x);if(C)return Zl(h),h=Ma(se,t),L(x)}return h===a&&(h=Ma(se,t)),f}return yt.cancel=ft,yt.flush=Je,yt}var Qh=re(function(e,t){return Nl(e,1,t)}),Jh=re(function(e,t,r){return Nl(e,At(t)||0,r)});function Zh(e){return Jt(e,be)}function Ws(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new wt(m);var r=function(){var n=arguments,l=t?t.apply(this,n):n[0],d=r.cache;if(d.has(l))return d.get(l);var f=e.apply(this,n);return r.cache=d.set(l,f)||d,f};return r.cache=new(Ws.Cache||Kt),r}Ws.Cache=Kt;function Hs(e){if(typeof e!="function")throw new wt(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 e_(e){return Fc(2,e)}var t_=jf(function(e,t){t=t.length==1&&Q(t[0])?Te(t[0],dt(W())):Te(He(t,1),dt(W()));var r=t.length;return re(function(n){for(var l=-1,d=Ge(n.length,r);++l<d;)n[l]=t[l].call(this,n[l]);return ut(e,this,n)})}),mn=re(function(e,t){var r=dr(t,Jr(mn));return Jt(e,G,a,t,r)}),Hc=re(function(e,t){var r=dr(t,Jr(Hc));return Jt(e,ie,a,t,r)}),r_=Zt(function(e,t){return Jt(e,Pe,a,a,a,t)});function a_(e,t){if(typeof e!="function")throw new wt(m);return t=t===a?t:Z(t),re(e,t)}function s_(e,t){if(typeof e!="function")throw new wt(m);return t=t==null?0:Le(Z(t),0),re(function(r){var n=r[t],l=hr(r,0,t);return n&&ur(l,n),ut(e,this,l)})}function i_(e,t,r){var n=!0,l=!0;if(typeof e!="function")throw new wt(m);return ke(r)&&(n="leading"in r?!!r.leading:n,l="trailing"in r?!!r.trailing:l),Wc(e,t,{leading:n,maxWait:t,trailing:l})}function n_(e){return Lc(e,1)}function o_(e,t){return mn(Ki(t),e)}function l_(){if(!arguments.length)return[];var e=arguments[0];return Q(e)?e:[e]}function c_(e){return It(e,E)}function u_(e,t){return t=typeof t=="function"?t:a,It(e,E,t)}function d_(e){return It(e,k|E)}function p_(e,t){return t=typeof t=="function"?t:a,It(e,k|E,t)}function m_(e,t){return t==null||zl(e,t,je(t))}function Pt(e,t){return e===t||e!==e&&t!==t}var f_=Rs(Li),y_=Rs(function(e,t){return e>=t}),Sr=Ml(function(){return arguments}())?Ml:function(e){return Ce(e)&&_e.call(e,"callee")&&!Tl.call(e,"callee")},Q=T.isArray,h_=sl?dt(sl):If;function at(e){return e!=null&&$s(e.length)&&!tr(e)}function Ne(e){return Ce(e)&&at(e)}function __(e){return e===!0||e===!1||Ce(e)&&Ke(e)==Ft}var _r=Sm||In,g_=il?dt(il):Df;function b_(e){return Ce(e)&&e.nodeType===1&&!La(e)}function x_(e){if(e==null)return!0;if(at(e)&&(Q(e)||typeof e=="string"||typeof e.splice=="function"||_r(e)||Zr(e)||Sr(e)))return!e.length;var t=Xe(e);if(t==lt||t==ct)return!e.size;if(Ra(e))return!ji(e).length;for(var r in e)if(_e.call(e,r))return!1;return!0}function v_(e,t){return Oa(e,t)}function w_(e,t,r){r=typeof r=="function"?r:a;var n=r?r(e,t):a;return n===a?Oa(e,t,a,r):!!n}function fn(e){if(!Ce(e))return!1;var t=Ke(e);return t==Pr||t==Or||typeof e.message=="string"&&typeof e.name=="string"&&!La(e)}function T_(e){return typeof e=="number"&&Dl(e)}function tr(e){if(!ke(e))return!1;var t=Ke(e);return t==br||t==Ja||t==pa||t==Rr}function $c(e){return typeof e=="number"&&e==Z(e)}function $s(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=ze}function ke(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function Ce(e){return e!=null&&typeof e=="object"}var Gc=nl?dt(nl):Af;function I_(e,t){return e===t||Bi(e,t,an(t))}function D_(e,t,r){return r=typeof r=="function"?r:a,Bi(e,t,an(t),r)}function k_(e){return Xc(e)&&e!=+e}function A_(e){if(uy(e))throw new K(p);return Ll(e)}function q_(e){return e===null}function C_(e){return e==null}function Xc(e){return typeof e=="number"||Ce(e)&&Ke(e)==Bt}function La(e){if(!Ce(e)||Ke(e)!=bt)return!1;var t=gs(e);if(t===null)return!0;var r=_e.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&fs.call(r)==Im}var yn=ol?dt(ol):qf;function S_(e){return $c(e)&&e>=-ze&&e<=ze}var Yc=ll?dt(ll):Cf;function Gs(e){return typeof e=="string"||!Q(e)&&Ce(e)&&Ke(e)==Xt}function mt(e){return typeof e=="symbol"||Ce(e)&&Ke(e)==Mr}var Zr=cl?dt(cl):Sf;function z_(e){return e===a}function N_(e){return Ce(e)&&Xe(e)==or}function O_(e){return Ce(e)&&Ke(e)==Za}var P_=Rs(Ui),E_=Rs(function(e,t){return e<=t});function Vc(e){if(!e)return[];if(at(e))return Gs(e)?Nt(e):rt(e);if(Da&&e[Da])return pm(e[Da]());var t=Xe(e),r=t==lt?Ci:t==ct?ds:ea;return r(e)}function rr(e){if(!e)return e===0?e:0;if(e=At(e),e===Se||e===-Se){var t=e<0?-1:1;return t*Fe}return e===e?e:0}function Z(e){var t=rr(e),r=t%1;return t===t?r?t-r:t:0}function Kc(e){return e?kr(Z(e),0,V):0}function At(e){if(typeof e=="number")return e;if(mt(e))return Ht;if(ke(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ke(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=yl(e);var r=ae.test(e);return r||De.test(e)?Vp(e.slice(2),r?2:8):oe.test(e)?Ht:+e}function Qc(e){return Ut(e,st(e))}function R_(e){return e?kr(Z(e),-ze,ze):e===0?e:0}function ye(e){return e==null?"":pt(e)}var M_=Kr(function(e,t){if(Ra(t)||at(t)){Ut(t,je(t),e);return}for(var r in t)_e.call(t,r)&&Sa(e,r,t[r])}),Jc=Kr(function(e,t){Ut(t,st(t),e)}),Xs=Kr(function(e,t,r,n){Ut(t,st(t),e,n)}),L_=Kr(function(e,t,r,n){Ut(t,je(t),e,n)}),F_=Zt(Ei);function B_(e,t){var r=Vr(e);return t==null?r:Sl(r,t)}var j_=re(function(e,t){e=xe(e);var r=-1,n=t.length,l=n>2?t[2]:a;for(l&&Qe(t[0],t[1],l)&&(n=1);++r<n;)for(var d=t[r],f=st(d),h=-1,x=f.length;++h<x;){var A=f[h],q=e[A];(q===a||Pt(q,Gr[A])&&!_e.call(e,A))&&(e[A]=d[A])}return e}),U_=re(function(e){return e.push(a,yc),ut(Zc,a,e)});function W_(e,t){return dl(e,W(t,3),jt)}function H_(e,t){return dl(e,W(t,3),Mi)}function $_(e,t){return e==null?e:Ri(e,W(t,3),st)}function G_(e,t){return e==null?e:El(e,W(t,3),st)}function X_(e,t){return e&&jt(e,W(t,3))}function Y_(e,t){return e&&Mi(e,W(t,3))}function V_(e){return e==null?[]:qs(e,je(e))}function K_(e){return e==null?[]:qs(e,st(e))}function hn(e,t,r){var n=e==null?a:Ar(e,t);return n===a?r:n}function Q_(e,t){return e!=null&&gc(e,t,xf)}function _n(e,t){return e!=null&&gc(e,t,vf)}var J_=uc(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=ys.call(t)),e[t]=r},bn(it)),Z_=uc(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=ys.call(t)),_e.call(e,t)?e[t].push(r):e[t]=[r]},W),eg=re(Na);function je(e){return at(e)?ql(e):ji(e)}function st(e){return at(e)?ql(e,!0):zf(e)}function tg(e,t){var r={};return t=W(t,3),jt(e,function(n,l,d){Qt(r,t(n,l,d),n)}),r}function rg(e,t){var r={};return t=W(t,3),jt(e,function(n,l,d){Qt(r,l,t(n,l,d))}),r}var ag=Kr(function(e,t,r){Cs(e,t,r)}),Zc=Kr(function(e,t,r,n){Cs(e,t,r,n)}),sg=Zt(function(e,t){var r={};if(e==null)return r;var n=!1;t=Te(t,function(d){return d=yr(d,e),n||(n=d.length>1),d}),Ut(e,tn(e),r),n&&(r=It(r,k|z|E,Jf));for(var l=t.length;l--;)Xi(r,t[l]);return r});function ig(e,t){return eu(e,Hs(W(t)))}var ng=Zt(function(e,t){return e==null?{}:Of(e,t)});function eu(e,t){if(e==null)return{};var r=Te(tn(e),function(n){return[n]});return t=W(t),$l(e,r,function(n,l){return t(n,l[0])})}function og(e,t,r){t=yr(t,e);var n=-1,l=t.length;for(l||(l=1,e=a);++n<l;){var d=e==null?a:e[Wt(t[n])];d===a&&(n=l,d=r),e=tr(d)?d.call(e):d}return e}function lg(e,t,r){return e==null?e:Pa(e,t,r)}function cg(e,t,r,n){return n=typeof n=="function"?n:a,e==null?e:Pa(e,t,r,n)}var tu=mc(je),ru=mc(st);function ug(e,t,r){var n=Q(e),l=n||_r(e)||Zr(e);if(t=W(t,4),r==null){var d=e&&e.constructor;l?r=n?new d:[]:ke(e)?r=tr(d)?Vr(gs(e)):{}:r={}}return(l?vt:jt)(e,function(f,h,x){return t(r,f,h,x)}),r}function dg(e,t){return e==null?!0:Xi(e,t)}function pg(e,t,r){return e==null?e:Kl(e,t,Ki(r))}function mg(e,t,r,n){return n=typeof n=="function"?n:a,e==null?e:Kl(e,t,Ki(r),n)}function ea(e){return e==null?[]:qi(e,je(e))}function fg(e){return e==null?[]:qi(e,st(e))}function yg(e,t,r){return r===a&&(r=t,t=a),r!==a&&(r=At(r),r=r===r?r:0),t!==a&&(t=At(t),t=t===t?t:0),kr(At(e),t,r)}function hg(e,t,r){return t=rr(t),r===a?(r=t,t=0):r=rr(r),e=At(e),wf(e,t,r)}function _g(e,t,r){if(r&&typeof r!="boolean"&&Qe(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 n=e;e=t,t=n}if(r||e%1||t%1){var l=kl();return Ge(e+l*(t-e+Yp("1e-"+((l+"").length-1))),t)}return Hi(e,t)}var gg=Qr(function(e,t,r){return t=t.toLowerCase(),e+(r?au(t):t)});function au(e){return gn(ye(e).toLowerCase())}function su(e){return e=ye(e),e&&e.replace(et,om).replace(Lp,"")}function bg(e,t,r){e=ye(e),t=pt(t);var n=e.length;r=r===a?n:kr(Z(r),0,n);var l=r;return r-=t.length,r>=0&&e.slice(r,l)==t}function xg(e){return e=ye(e),e&&ts.test(e)?e.replace(Br,lm):e}function vg(e){return e=ye(e),e&&ns.test(e)?e.replace(wa,"\\$&"):e}var wg=Qr(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),Tg=Qr(function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}),Ig=oc("toLowerCase");function Dg(e,t,r){e=ye(e),t=Z(t);var n=t?Hr(e):0;if(!t||n>=t)return e;var l=(t-n)/2;return Es(ws(l),r)+e+Es(vs(l),r)}function kg(e,t,r){e=ye(e),t=Z(t);var n=t?Hr(e):0;return t&&n<t?e+Es(t-n,r):e}function Ag(e,t,r){e=ye(e),t=Z(t);var n=t?Hr(e):0;return t&&n<t?Es(t-n,r)+e:e}function qg(e,t,r){return r||t==null?t=0:t&&(t=+t),Pm(ye(e).replace(Ta,""),t||0)}function Cg(e,t,r){return(r?Qe(e,t,r):t===a)?t=1:t=Z(t),$i(ye(e),t)}function Sg(){var e=arguments,t=ye(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var zg=Qr(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});function Ng(e,t,r){return r&&typeof r!="number"&&Qe(e,t,r)&&(t=r=a),r=r===a?V:r>>>0,r?(e=ye(e),e&&(typeof t=="string"||t!=null&&!yn(t))&&(t=pt(t),!t&&Wr(e))?hr(Nt(e),0,r):e.split(t,r)):[]}var Og=Qr(function(e,t,r){return e+(r?" ":"")+gn(t)});function Pg(e,t,r){return e=ye(e),r=r==null?0:kr(Z(r),0,e.length),t=pt(t),e.slice(r,r+t.length)==t}function Eg(e,t,r){var n=c.templateSettings;r&&Qe(e,t,r)&&(t=a),e=ye(e),t=Xs({},t,n,fc);var l=Xs({},t.imports,n.imports,fc),d=je(l),f=qi(l,d),h,x,A=0,q=t.interpolate||zt,C="__p += '",O=Si((t.escape||zt).source+"|"+q.source+"|"+(q===as?ue:zt).source+"|"+(t.evaluate||zt).source+"|$","g"),L="//# sourceURL="+(_e.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Wp+"]")+`
|
114
|
+
`)}function oy(e){return Q(e)||Sr(e)||!!(Il&&e&&e[Il])}function er(e,t){var r=typeof e;return t=t??ze,!!t&&(r=="number"||r!="symbol"&&qe.test(e))&&e>-1&&e%1==0&&e<t}function Qe(e,t,r){if(!ke(r))return!1;var n=typeof t;return(n=="number"?at(r)&&er(t,r.length):n=="string"&&t in r)?Pt(r[t],e):!1}function nn(e,t){if(Q(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||mt(e)?!0:is.test(e)||!ss.test(e)||t!=null&&e in xe(t)}function ly(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function on(e){var t=Ms(e),r=c[t];if(typeof r!="function"||!(t in le.prototype))return!1;if(e===r)return!0;var n=rn(r);return!!n&&e===n[0]}function cy(e){return!!xl&&xl in e}var uy=ms?tr:In;function Ra(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Gr;return e===r}function xc(e){return e===e&&!ke(e)}function vc(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==a||e in xe(r))}}function dy(e){var t=Ws(e,function(n){return r.size===b&&r.clear(),n}),r=t.cache;return t}function py(e,t){var r=e[1],n=t[1],l=r|n,d=l<(re|me|J),f=n==J&&r==F||n==J&&r==Pe&&e[7].length<=t[8]||n==(J|Pe)&&t[7].length<=t[8]&&r==F;if(!(d||f))return e;n&re&&(e[2]=t[2],l|=r&re?0:Y);var h=t[3];if(h){var x=e[3];e[3]=x?ac(x,h,t[4]):h,e[4]=x?dr(e[3],w):t[4]}return h=t[5],h&&(x=e[5],e[5]=x?sc(x,h,t[6]):h,e[6]=x?dr(e[5],w):t[6]),h=t[7],h&&(e[7]=h),n&J&&(e[8]=e[8]==null?t[8]:Ge(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=l,e}function my(e){var t=[];if(e!=null)for(var r in xe(e))t.push(r);return t}function fy(e){return ys.call(e)}function wc(e,t,r){return t=Le(t===a?e.length-1:t,0),function(){for(var n=arguments,l=-1,d=Le(n.length-t,0),f=T(d);++l<d;)f[l]=n[t+l];l=-1;for(var h=T(t+1);++l<t;)h[l]=n[l];return h[t]=r(f),ut(e,this,h)}}function Tc(e,t){return t.length<2?e:Ar(e,Dt(t,0,-1))}function yy(e,t){for(var r=e.length,n=Ge(t.length,r),l=rt(e);n--;){var d=t[n];e[n]=er(d,r)?l[d]:a}return e}function ln(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Ic=kc(Xl),Ma=Cm||function(e,t){return We.setTimeout(e,t)},cn=kc(Lf);function Dc(e,t,r){var n=t+"";return cn(e,ny(n,hy(ay(n),r)))}function kc(e){var t=0,r=0;return function(){var n=Om(),l=Ee-(n-r);if(r=n,l>0){if(++t>=gt)return arguments[0]}else t=0;return e.apply(a,arguments)}}function Fs(e,t){var r=-1,n=e.length,l=n-1;for(t=t===a?n:t;++r<t;){var d=Hi(r,l),f=e[d];e[d]=e[r],e[r]=f}return e.length=t,e}var Ac=dy(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(ui,function(r,n,l,d){t.push(l?d.replace(X,"$1"):n||r)}),t});function Wt(e){if(typeof e=="string"||mt(e))return e;var t=e+"";return t=="0"&&1/e==-Se?"-0":t}function Cr(e){if(e!=null){try{return fs.call(e)}catch{}try{return e+""}catch{}}return""}function hy(e,t){return vt($t,function(r){var n="_."+r[0];t&r[1]&&!cs(e,n)&&e.push(n)}),e.sort()}function qc(e){if(e instanceof le)return e.clone();var t=new Tt(e.__wrapped__,e.__chain__);return t.__actions__=rt(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function _y(e,t,r){(r?Qe(e,t,r):t===a)?t=1:t=Le(Z(t),0);var n=e==null?0:e.length;if(!n||t<1)return[];for(var l=0,d=0,f=T(vs(n/t));l<n;)f[d++]=Dt(e,l,l+=t);return f}function gy(e){for(var t=-1,r=e==null?0:e.length,n=0,l=[];++t<r;){var d=e[t];d&&(l[n++]=d)}return l}function by(){var e=arguments.length;if(!e)return[];for(var t=T(e-1),r=arguments[0],n=e;n--;)t[n-1]=arguments[n];return ur(Q(r)?rt(r):[r],He(t,1))}var xy=te(function(e,t){return Ne(e)?za(e,He(t,1,Ne,!0)):[]}),vy=te(function(e,t){var r=kt(t);return Ne(r)&&(r=a),Ne(e)?za(e,He(t,1,Ne,!0),W(r,2)):[]}),wy=te(function(e,t){var r=kt(t);return Ne(r)&&(r=a),Ne(e)?za(e,He(t,1,Ne,!0),a,r):[]});function Ty(e,t,r){var n=e==null?0:e.length;return n?(t=r||t===a?1:Z(t),Dt(e,t<0?0:t,n)):[]}function Iy(e,t,r){var n=e==null?0:e.length;return n?(t=r||t===a?1:Z(t),t=n-t,Dt(e,0,t<0?0:t)):[]}function Dy(e,t){return e&&e.length?zs(e,W(t,3),!0,!0):[]}function ky(e,t){return e&&e.length?zs(e,W(t,3),!0):[]}function Ay(e,t,r,n){var l=e==null?0:e.length;return l?(r&&typeof r!="number"&&Qe(e,t,r)&&(r=0,n=l),bf(e,t,r,n)):[]}function Cc(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var l=r==null?0:Z(r);return l<0&&(l=Le(n+l,0)),us(e,W(t,3),l)}function Sc(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var l=n-1;return r!==a&&(l=Z(r),l=r<0?Le(n+l,0):Ge(l,n-1)),us(e,W(t,3),l,!0)}function zc(e){var t=e==null?0:e.length;return t?He(e,1):[]}function qy(e){var t=e==null?0:e.length;return t?He(e,Se):[]}function Cy(e,t){var r=e==null?0:e.length;return r?(t=t===a?1:Z(t),He(e,t)):[]}function Sy(e){for(var t=-1,r=e==null?0:e.length,n={};++t<r;){var l=e[t];n[l[0]]=l[1]}return n}function Nc(e){return e&&e.length?e[0]:a}function zy(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var l=r==null?0:Z(r);return l<0&&(l=Le(n+l,0)),Ur(e,t,l)}function Ny(e){var t=e==null?0:e.length;return t?Dt(e,0,-1):[]}var Oy=te(function(e){var t=Te(e,Vi);return t.length&&t[0]===e[0]?Fi(t):[]}),Py=te(function(e){var t=kt(e),r=Te(e,Vi);return t===kt(r)?t=a:r.pop(),r.length&&r[0]===e[0]?Fi(r,W(t,2)):[]}),Ey=te(function(e){var t=kt(e),r=Te(e,Vi);return t=typeof t=="function"?t:a,t&&r.pop(),r.length&&r[0]===e[0]?Fi(r,a,t):[]});function Ry(e,t){return e==null?"":zm.call(e,t)}function kt(e){var t=e==null?0:e.length;return t?e[t-1]:a}function My(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var l=n;return r!==a&&(l=Z(r),l=l<0?Le(n+l,0):Ge(l,n-1)),t===t?ym(e,t,l):us(e,pl,l,!0)}function Ly(e,t){return e&&e.length?Wl(e,Z(t)):a}var Fy=te(Oc);function Oc(e,t){return e&&e.length&&t&&t.length?Wi(e,t):e}function By(e,t,r){return e&&e.length&&t&&t.length?Wi(e,t,W(r,2)):e}function jy(e,t,r){return e&&e.length&&t&&t.length?Wi(e,t,a,r):e}var Uy=Zt(function(e,t){var r=e==null?0:e.length,n=Ei(e,t);return Gl(e,Te(t,function(l){return er(l,r)?+l:l}).sort(rc)),n});function Wy(e,t){var r=[];if(!(e&&e.length))return r;var n=-1,l=[],d=e.length;for(t=W(t,3);++n<d;){var f=e[n];t(f,n,e)&&(r.push(f),l.push(n))}return Gl(e,l),r}function un(e){return e==null?e:Em.call(e)}function Hy(e,t,r){var n=e==null?0:e.length;return n?(r&&typeof r!="number"&&Qe(e,t,r)?(t=0,r=n):(t=t==null?0:Z(t),r=r===a?n:Z(r)),Dt(e,t,r)):[]}function $y(e,t){return Ss(e,t)}function Gy(e,t,r){return Gi(e,t,W(r,2))}function Xy(e,t){var r=e==null?0:e.length;if(r){var n=Ss(e,t);if(n<r&&Pt(e[n],t))return n}return-1}function Yy(e,t){return Ss(e,t,!0)}function Vy(e,t,r){return Gi(e,t,W(r,2),!0)}function Ky(e,t){var r=e==null?0:e.length;if(r){var n=Ss(e,t,!0)-1;if(Pt(e[n],t))return n}return-1}function Qy(e){return e&&e.length?Yl(e):[]}function Jy(e,t){return e&&e.length?Yl(e,W(t,2)):[]}function Zy(e){var t=e==null?0:e.length;return t?Dt(e,1,t):[]}function eh(e,t,r){return e&&e.length?(t=r||t===a?1:Z(t),Dt(e,0,t<0?0:t)):[]}function th(e,t,r){var n=e==null?0:e.length;return n?(t=r||t===a?1:Z(t),t=n-t,Dt(e,t<0?0:t,n)):[]}function rh(e,t){return e&&e.length?zs(e,W(t,3),!1,!0):[]}function ah(e,t){return e&&e.length?zs(e,W(t,3)):[]}var sh=te(function(e){return fr(He(e,1,Ne,!0))}),ih=te(function(e){var t=kt(e);return Ne(t)&&(t=a),fr(He(e,1,Ne,!0),W(t,2))}),nh=te(function(e){var t=kt(e);return t=typeof t=="function"?t:a,fr(He(e,1,Ne,!0),a,t)});function oh(e){return e&&e.length?fr(e):[]}function lh(e,t){return e&&e.length?fr(e,W(t,2)):[]}function ch(e,t){return t=typeof t=="function"?t:a,e&&e.length?fr(e,a,t):[]}function dn(e){if(!(e&&e.length))return[];var t=0;return e=cr(e,function(r){if(Ne(r))return t=Le(r.length,t),!0}),Ai(t,function(r){return Te(e,Ii(r))})}function Pc(e,t){if(!(e&&e.length))return[];var r=dn(e);return t==null?r:Te(r,function(n){return ut(t,a,n)})}var uh=te(function(e,t){return Ne(e)?za(e,t):[]}),dh=te(function(e){return Yi(cr(e,Ne))}),ph=te(function(e){var t=kt(e);return Ne(t)&&(t=a),Yi(cr(e,Ne),W(t,2))}),mh=te(function(e){var t=kt(e);return t=typeof t=="function"?t:a,Yi(cr(e,Ne),a,t)}),fh=te(dn);function yh(e,t){return Jl(e||[],t||[],Sa)}function hh(e,t){return Jl(e||[],t||[],Pa)}var _h=te(function(e){var t=e.length,r=t>1?e[t-1]:a;return r=typeof r=="function"?(e.pop(),r):a,Pc(e,r)});function Ec(e){var t=c(e);return t.__chain__=!0,t}function gh(e,t){return t(e),e}function Bs(e,t){return t(e)}var bh=Zt(function(e){var t=e.length,r=t?e[0]:0,n=this.__wrapped__,l=function(d){return Ei(d,e)};return t>1||this.__actions__.length||!(n instanceof le)||!er(r)?this.thru(l):(n=n.slice(r,+r+(t?1:0)),n.__actions__.push({func:Bs,args:[l],thisArg:a}),new Tt(n,this.__chain__).thru(function(d){return t&&!d.length&&d.push(a),d}))});function xh(){return Ec(this)}function vh(){return new Tt(this.value(),this.__chain__)}function wh(){this.__values__===a&&(this.__values__=Vc(this.value()));var e=this.__index__>=this.__values__.length,t=e?a:this.__values__[this.__index__++];return{done:e,value:t}}function Th(){return this}function Ih(e){for(var t,r=this;r instanceof Ds;){var n=qc(r);n.__index__=0,n.__values__=a,t?l.__wrapped__=n:t=n;var l=n;r=r.__wrapped__}return l.__wrapped__=e,t}function Dh(){var e=this.__wrapped__;if(e instanceof le){var t=e;return this.__actions__.length&&(t=new le(this)),t=t.reverse(),t.__actions__.push({func:Bs,args:[un],thisArg:a}),new Tt(t,this.__chain__)}return this.thru(un)}function kh(){return Ql(this.__wrapped__,this.__actions__)}var Ah=Ns(function(e,t,r){_e.call(e,r)?++e[r]:Qt(e,r,1)});function qh(e,t,r){var n=Q(e)?ul:gf;return r&&Qe(e,t,r)&&(t=a),n(e,W(t,3))}function Ch(e,t){var r=Q(e)?cr:Pl;return r(e,W(t,3))}var Sh=lc(Cc),zh=lc(Sc);function Nh(e,t){return He(js(e,t),1)}function Oh(e,t){return He(js(e,t),Se)}function Ph(e,t,r){return r=r===a?1:Z(r),He(js(e,t),r)}function Rc(e,t){var r=Q(e)?vt:mr;return r(e,W(t,3))}function Mc(e,t){var r=Q(e)?Jp:Ol;return r(e,W(t,3))}var Eh=Ns(function(e,t,r){_e.call(e,r)?e[r].push(t):Qt(e,r,[t])});function Rh(e,t,r,n){e=at(e)?e:ea(e),r=r&&!n?Z(r):0;var l=e.length;return r<0&&(r=Le(l+r,0)),Gs(e)?r<=l&&e.indexOf(t,r)>-1:!!l&&Ur(e,t,r)>-1}var Mh=te(function(e,t,r){var n=-1,l=typeof t=="function",d=at(e)?T(e.length):[];return mr(e,function(f){d[++n]=l?ut(t,f,r):Na(f,t,r)}),d}),Lh=Ns(function(e,t,r){Qt(e,r,t)});function js(e,t){var r=Q(e)?Te:Bl;return r(e,W(t,3))}function Fh(e,t,r,n){return e==null?[]:(Q(t)||(t=t==null?[]:[t]),r=n?a:r,Q(r)||(r=r==null?[]:[r]),Hl(e,t,r))}var Bh=Ns(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]});function jh(e,t,r){var n=Q(e)?wi:fl,l=arguments.length<3;return n(e,W(t,4),r,l,mr)}function Uh(e,t,r){var n=Q(e)?Zp:fl,l=arguments.length<3;return n(e,W(t,4),r,l,Ol)}function Wh(e,t){var r=Q(e)?cr:Pl;return r(e,Hs(W(t,3)))}function Hh(e){var t=Q(e)?Cl:Rf;return t(e)}function $h(e,t,r){(r?Qe(e,t,r):t===a)?t=1:t=Z(t);var n=Q(e)?mf:Mf;return n(e,t)}function Gh(e){var t=Q(e)?ff:Ff;return t(e)}function Xh(e){if(e==null)return 0;if(at(e))return Gs(e)?Hr(e):e.length;var t=Xe(e);return t==lt||t==ct?e.size:ji(e).length}function Yh(e,t,r){var n=Q(e)?Ti:Bf;return r&&Qe(e,t,r)&&(t=a),n(e,W(t,3))}var Vh=te(function(e,t){if(e==null)return[];var r=t.length;return r>1&&Qe(e,t[0],t[1])?t=[]:r>2&&Qe(t[0],t[1],t[2])&&(t=[t[0]]),Hl(e,He(t,1),[])}),Us=qm||function(){return We.Date.now()};function Kh(e,t){if(typeof t!="function")throw new wt(m);return e=Z(e),function(){if(--e<1)return t.apply(this,arguments)}}function Lc(e,t,r){return t=r?a:t,t=e&&t==null?e.length:t,Jt(e,J,a,a,a,a,t)}function Fc(e,t){var r;if(typeof t!="function")throw new wt(m);return e=Z(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=a),r}}var pn=te(function(e,t,r){var n=re;if(r.length){var l=dr(r,Jr(pn));n|=G}return Jt(e,n,t,r,l)}),Bc=te(function(e,t,r){var n=re|me;if(r.length){var l=dr(r,Jr(Bc));n|=G}return Jt(t,n,e,r,l)});function jc(e,t,r){t=r?a:t;var n=Jt(e,F,a,a,a,a,a,t);return n.placeholder=jc.placeholder,n}function Uc(e,t,r){t=r?a:t;var n=Jt(e,B,a,a,a,a,a,t);return n.placeholder=Uc.placeholder,n}function Wc(e,t,r){var n,l,d,f,h,x,A=0,q=!1,C=!1,O=!0;if(typeof e!="function")throw new wt(m);t=At(t)||0,ke(r)&&(q=!!r.leading,C="maxWait"in r,d=C?Le(At(r.maxWait)||0,t):d,O="trailing"in r?!!r.trailing:O);function L(Oe){var Et=n,ar=l;return n=l=a,A=Oe,f=e.apply(ar,Et),f}function H(Oe){return A=Oe,h=Ma(se,t),q?L(Oe):f}function ee(Oe){var Et=Oe-x,ar=Oe-A,lu=t-Et;return C?Ge(lu,d-ar):lu}function $(Oe){var Et=Oe-x,ar=Oe-A;return x===a||Et>=t||Et<0||C&&ar>=d}function se(){var Oe=Us();if($(Oe))return ce(Oe);h=Ma(se,ee(Oe))}function ce(Oe){return h=a,O&&n?L(Oe):(n=l=a,f)}function ft(){h!==a&&Zl(h),A=0,n=x=l=h=a}function Je(){return h===a?f:ce(Us())}function yt(){var Oe=Us(),Et=$(Oe);if(n=arguments,l=this,x=Oe,Et){if(h===a)return H(x);if(C)return Zl(h),h=Ma(se,t),L(x)}return h===a&&(h=Ma(se,t)),f}return yt.cancel=ft,yt.flush=Je,yt}var Qh=te(function(e,t){return Nl(e,1,t)}),Jh=te(function(e,t,r){return Nl(e,At(t)||0,r)});function Zh(e){return Jt(e,be)}function Ws(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new wt(m);var r=function(){var n=arguments,l=t?t.apply(this,n):n[0],d=r.cache;if(d.has(l))return d.get(l);var f=e.apply(this,n);return r.cache=d.set(l,f)||d,f};return r.cache=new(Ws.Cache||Kt),r}Ws.Cache=Kt;function Hs(e){if(typeof e!="function")throw new wt(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 e_(e){return Fc(2,e)}var t_=jf(function(e,t){t=t.length==1&&Q(t[0])?Te(t[0],dt(W())):Te(He(t,1),dt(W()));var r=t.length;return te(function(n){for(var l=-1,d=Ge(n.length,r);++l<d;)n[l]=t[l].call(this,n[l]);return ut(e,this,n)})}),mn=te(function(e,t){var r=dr(t,Jr(mn));return Jt(e,G,a,t,r)}),Hc=te(function(e,t){var r=dr(t,Jr(Hc));return Jt(e,ie,a,t,r)}),r_=Zt(function(e,t){return Jt(e,Pe,a,a,a,t)});function a_(e,t){if(typeof e!="function")throw new wt(m);return t=t===a?t:Z(t),te(e,t)}function s_(e,t){if(typeof e!="function")throw new wt(m);return t=t==null?0:Le(Z(t),0),te(function(r){var n=r[t],l=hr(r,0,t);return n&&ur(l,n),ut(e,this,l)})}function i_(e,t,r){var n=!0,l=!0;if(typeof e!="function")throw new wt(m);return ke(r)&&(n="leading"in r?!!r.leading:n,l="trailing"in r?!!r.trailing:l),Wc(e,t,{leading:n,maxWait:t,trailing:l})}function n_(e){return Lc(e,1)}function o_(e,t){return mn(Ki(t),e)}function l_(){if(!arguments.length)return[];var e=arguments[0];return Q(e)?e:[e]}function c_(e){return It(e,E)}function u_(e,t){return t=typeof t=="function"?t:a,It(e,E,t)}function d_(e){return It(e,k|E)}function p_(e,t){return t=typeof t=="function"?t:a,It(e,k|E,t)}function m_(e,t){return t==null||zl(e,t,je(t))}function Pt(e,t){return e===t||e!==e&&t!==t}var f_=Rs(Li),y_=Rs(function(e,t){return e>=t}),Sr=Ml(function(){return arguments}())?Ml:function(e){return Ce(e)&&_e.call(e,"callee")&&!Tl.call(e,"callee")},Q=T.isArray,h_=sl?dt(sl):If;function at(e){return e!=null&&$s(e.length)&&!tr(e)}function Ne(e){return Ce(e)&&at(e)}function __(e){return e===!0||e===!1||Ce(e)&&Ke(e)==Ft}var _r=Sm||In,g_=il?dt(il):Df;function b_(e){return Ce(e)&&e.nodeType===1&&!La(e)}function x_(e){if(e==null)return!0;if(at(e)&&(Q(e)||typeof e=="string"||typeof e.splice=="function"||_r(e)||Zr(e)||Sr(e)))return!e.length;var t=Xe(e);if(t==lt||t==ct)return!e.size;if(Ra(e))return!ji(e).length;for(var r in e)if(_e.call(e,r))return!1;return!0}function v_(e,t){return Oa(e,t)}function w_(e,t,r){r=typeof r=="function"?r:a;var n=r?r(e,t):a;return n===a?Oa(e,t,a,r):!!n}function fn(e){if(!Ce(e))return!1;var t=Ke(e);return t==Pr||t==Or||typeof e.message=="string"&&typeof e.name=="string"&&!La(e)}function T_(e){return typeof e=="number"&&Dl(e)}function tr(e){if(!ke(e))return!1;var t=Ke(e);return t==br||t==Ja||t==pa||t==Rr}function $c(e){return typeof e=="number"&&e==Z(e)}function $s(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=ze}function ke(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function Ce(e){return e!=null&&typeof e=="object"}var Gc=nl?dt(nl):Af;function I_(e,t){return e===t||Bi(e,t,an(t))}function D_(e,t,r){return r=typeof r=="function"?r:a,Bi(e,t,an(t),r)}function k_(e){return Xc(e)&&e!=+e}function A_(e){if(uy(e))throw new K(p);return Ll(e)}function q_(e){return e===null}function C_(e){return e==null}function Xc(e){return typeof e=="number"||Ce(e)&&Ke(e)==Bt}function La(e){if(!Ce(e)||Ke(e)!=bt)return!1;var t=gs(e);if(t===null)return!0;var r=_e.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&fs.call(r)==Im}var yn=ol?dt(ol):qf;function S_(e){return $c(e)&&e>=-ze&&e<=ze}var Yc=ll?dt(ll):Cf;function Gs(e){return typeof e=="string"||!Q(e)&&Ce(e)&&Ke(e)==Xt}function mt(e){return typeof e=="symbol"||Ce(e)&&Ke(e)==Mr}var Zr=cl?dt(cl):Sf;function z_(e){return e===a}function N_(e){return Ce(e)&&Xe(e)==or}function O_(e){return Ce(e)&&Ke(e)==Za}var P_=Rs(Ui),E_=Rs(function(e,t){return e<=t});function Vc(e){if(!e)return[];if(at(e))return Gs(e)?Nt(e):rt(e);if(Da&&e[Da])return pm(e[Da]());var t=Xe(e),r=t==lt?Ci:t==ct?ds:ea;return r(e)}function rr(e){if(!e)return e===0?e:0;if(e=At(e),e===Se||e===-Se){var t=e<0?-1:1;return t*Fe}return e===e?e:0}function Z(e){var t=rr(e),r=t%1;return t===t?r?t-r:t:0}function Kc(e){return e?kr(Z(e),0,V):0}function At(e){if(typeof e=="number")return e;if(mt(e))return Ht;if(ke(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ke(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=yl(e);var r=ae.test(e);return r||De.test(e)?Vp(e.slice(2),r?2:8):oe.test(e)?Ht:+e}function Qc(e){return Ut(e,st(e))}function R_(e){return e?kr(Z(e),-ze,ze):e===0?e:0}function ye(e){return e==null?"":pt(e)}var M_=Kr(function(e,t){if(Ra(t)||at(t)){Ut(t,je(t),e);return}for(var r in t)_e.call(t,r)&&Sa(e,r,t[r])}),Jc=Kr(function(e,t){Ut(t,st(t),e)}),Xs=Kr(function(e,t,r,n){Ut(t,st(t),e,n)}),L_=Kr(function(e,t,r,n){Ut(t,je(t),e,n)}),F_=Zt(Ei);function B_(e,t){var r=Vr(e);return t==null?r:Sl(r,t)}var j_=te(function(e,t){e=xe(e);var r=-1,n=t.length,l=n>2?t[2]:a;for(l&&Qe(t[0],t[1],l)&&(n=1);++r<n;)for(var d=t[r],f=st(d),h=-1,x=f.length;++h<x;){var A=f[h],q=e[A];(q===a||Pt(q,Gr[A])&&!_e.call(e,A))&&(e[A]=d[A])}return e}),U_=te(function(e){return e.push(a,yc),ut(Zc,a,e)});function W_(e,t){return dl(e,W(t,3),jt)}function H_(e,t){return dl(e,W(t,3),Mi)}function $_(e,t){return e==null?e:Ri(e,W(t,3),st)}function G_(e,t){return e==null?e:El(e,W(t,3),st)}function X_(e,t){return e&&jt(e,W(t,3))}function Y_(e,t){return e&&Mi(e,W(t,3))}function V_(e){return e==null?[]:qs(e,je(e))}function K_(e){return e==null?[]:qs(e,st(e))}function hn(e,t,r){var n=e==null?a:Ar(e,t);return n===a?r:n}function Q_(e,t){return e!=null&&gc(e,t,xf)}function _n(e,t){return e!=null&&gc(e,t,vf)}var J_=uc(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=ys.call(t)),e[t]=r},bn(it)),Z_=uc(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=ys.call(t)),_e.call(e,t)?e[t].push(r):e[t]=[r]},W),eg=te(Na);function je(e){return at(e)?ql(e):ji(e)}function st(e){return at(e)?ql(e,!0):zf(e)}function tg(e,t){var r={};return t=W(t,3),jt(e,function(n,l,d){Qt(r,t(n,l,d),n)}),r}function rg(e,t){var r={};return t=W(t,3),jt(e,function(n,l,d){Qt(r,l,t(n,l,d))}),r}var ag=Kr(function(e,t,r){Cs(e,t,r)}),Zc=Kr(function(e,t,r,n){Cs(e,t,r,n)}),sg=Zt(function(e,t){var r={};if(e==null)return r;var n=!1;t=Te(t,function(d){return d=yr(d,e),n||(n=d.length>1),d}),Ut(e,tn(e),r),n&&(r=It(r,k|z|E,Jf));for(var l=t.length;l--;)Xi(r,t[l]);return r});function ig(e,t){return eu(e,Hs(W(t)))}var ng=Zt(function(e,t){return e==null?{}:Of(e,t)});function eu(e,t){if(e==null)return{};var r=Te(tn(e),function(n){return[n]});return t=W(t),$l(e,r,function(n,l){return t(n,l[0])})}function og(e,t,r){t=yr(t,e);var n=-1,l=t.length;for(l||(l=1,e=a);++n<l;){var d=e==null?a:e[Wt(t[n])];d===a&&(n=l,d=r),e=tr(d)?d.call(e):d}return e}function lg(e,t,r){return e==null?e:Pa(e,t,r)}function cg(e,t,r,n){return n=typeof n=="function"?n:a,e==null?e:Pa(e,t,r,n)}var tu=mc(je),ru=mc(st);function ug(e,t,r){var n=Q(e),l=n||_r(e)||Zr(e);if(t=W(t,4),r==null){var d=e&&e.constructor;l?r=n?new d:[]:ke(e)?r=tr(d)?Vr(gs(e)):{}:r={}}return(l?vt:jt)(e,function(f,h,x){return t(r,f,h,x)}),r}function dg(e,t){return e==null?!0:Xi(e,t)}function pg(e,t,r){return e==null?e:Kl(e,t,Ki(r))}function mg(e,t,r,n){return n=typeof n=="function"?n:a,e==null?e:Kl(e,t,Ki(r),n)}function ea(e){return e==null?[]:qi(e,je(e))}function fg(e){return e==null?[]:qi(e,st(e))}function yg(e,t,r){return r===a&&(r=t,t=a),r!==a&&(r=At(r),r=r===r?r:0),t!==a&&(t=At(t),t=t===t?t:0),kr(At(e),t,r)}function hg(e,t,r){return t=rr(t),r===a?(r=t,t=0):r=rr(r),e=At(e),wf(e,t,r)}function _g(e,t,r){if(r&&typeof r!="boolean"&&Qe(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 n=e;e=t,t=n}if(r||e%1||t%1){var l=kl();return Ge(e+l*(t-e+Yp("1e-"+((l+"").length-1))),t)}return Hi(e,t)}var gg=Qr(function(e,t,r){return t=t.toLowerCase(),e+(r?au(t):t)});function au(e){return gn(ye(e).toLowerCase())}function su(e){return e=ye(e),e&&e.replace(et,om).replace(Lp,"")}function bg(e,t,r){e=ye(e),t=pt(t);var n=e.length;r=r===a?n:kr(Z(r),0,n);var l=r;return r-=t.length,r>=0&&e.slice(r,l)==t}function xg(e){return e=ye(e),e&&ts.test(e)?e.replace(Br,lm):e}function vg(e){return e=ye(e),e&&ns.test(e)?e.replace(wa,"\\$&"):e}var wg=Qr(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),Tg=Qr(function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}),Ig=oc("toLowerCase");function Dg(e,t,r){e=ye(e),t=Z(t);var n=t?Hr(e):0;if(!t||n>=t)return e;var l=(t-n)/2;return Es(ws(l),r)+e+Es(vs(l),r)}function kg(e,t,r){e=ye(e),t=Z(t);var n=t?Hr(e):0;return t&&n<t?e+Es(t-n,r):e}function Ag(e,t,r){e=ye(e),t=Z(t);var n=t?Hr(e):0;return t&&n<t?Es(t-n,r)+e:e}function qg(e,t,r){return r||t==null?t=0:t&&(t=+t),Pm(ye(e).replace(Ta,""),t||0)}function Cg(e,t,r){return(r?Qe(e,t,r):t===a)?t=1:t=Z(t),$i(ye(e),t)}function Sg(){var e=arguments,t=ye(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var zg=Qr(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});function Ng(e,t,r){return r&&typeof r!="number"&&Qe(e,t,r)&&(t=r=a),r=r===a?V:r>>>0,r?(e=ye(e),e&&(typeof t=="string"||t!=null&&!yn(t))&&(t=pt(t),!t&&Wr(e))?hr(Nt(e),0,r):e.split(t,r)):[]}var Og=Qr(function(e,t,r){return e+(r?" ":"")+gn(t)});function Pg(e,t,r){return e=ye(e),r=r==null?0:kr(Z(r),0,e.length),t=pt(t),e.slice(r,r+t.length)==t}function Eg(e,t,r){var n=c.templateSettings;r&&Qe(e,t,r)&&(t=a),e=ye(e),t=Xs({},t,n,fc);var l=Xs({},t.imports,n.imports,fc),d=je(l),f=qi(l,d),h,x,A=0,q=t.interpolate||zt,C="__p += '",O=Si((t.escape||zt).source+"|"+q.source+"|"+(q===as?ue:zt).source+"|"+(t.evaluate||zt).source+"|$","g"),L="//# sourceURL="+(_e.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Wp+"]")+`
|
115
115
|
`;e.replace(O,function($,se,ce,ft,Je,yt){return ce||(ce=ft),C+=e.slice(A,yt).replace(os,cm),se&&(h=!0,C+=`' +
|
116
116
|
__e(`+se+`) +
|
117
117
|
'`),Je&&(x=!0,C+=`';
|
@@ -128,13 +128,13 @@ __p += '`),ce&&(C+=`' +
|
|
128
128
|
function print() { __p += __j.call(arguments, '') }
|
129
129
|
`:`;
|
130
130
|
`)+C+`return __p
|
131
|
-
}`;var te=nu(function(){return pe(d,L+"return "+C).apply(a,f)});if(te.source=C,fn(te))throw te;return te}function Rg(e){return ye(e).toLowerCase()}function Mg(e){return ye(e).toUpperCase()}function Lg(e,t,r){if(e=ye(e),e&&(r||t===a))return yl(e);if(!e||!(t=pt(t)))return e;var n=Nt(e),l=Nt(t),d=hl(n,l),f=_l(n,l)+1;return hr(n,d,f).join("")}function Fg(e,t,r){if(e=ye(e),e&&(r||t===a))return e.slice(0,bl(e)+1);if(!e||!(t=pt(t)))return e;var n=Nt(e),l=_l(n,Nt(t))+1;return hr(n,0,l).join("")}function Bg(e,t,r){if(e=ye(e),e&&(r||t===a))return e.replace(Ta,"");if(!e||!(t=pt(t)))return e;var n=Nt(e),l=hl(n,Nt(t));return hr(n,l).join("")}function jg(e,t){var r=ne,n=_t;if(ke(t)){var l="separator"in t?t.separator:l;r="length"in t?Z(t.length):r,n="omission"in t?pt(t.omission):n}e=ye(e);var d=e.length;if(Wr(e)){var f=Nt(e);d=f.length}if(r>=d)return e;var h=r-Hr(n);if(h<1)return n;var x=f?hr(f,0,h).join(""):e.slice(0,h);if(l===a)return x+n;if(f&&(h+=x.length-h),yn(l)){if(e.slice(h).search(l)){var A,q=x;for(l.global||(l=Si(l.source,ye(fe.exec(l))+"g")),l.lastIndex=0;A=l.exec(q);)var C=A.index;x=x.slice(0,C===a?h:C)}}else if(e.indexOf(pt(l),h)!=h){var O=x.lastIndexOf(l);O>-1&&(x=x.slice(0,O))}return x+n}function Ug(e){return e=ye(e),e&&va.test(e)?e.replace(Yt,hm):e}var Wg=Qr(function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}),gn=oc("toUpperCase");function iu(e,t,r){return e=ye(e),t=r?a:t,t===a?dm(e)?bm(e):rm(e):e.match(t)||[]}var nu=re(function(e,t){try{return ut(e,a,t)}catch(r){return fn(r)?r:new K(r)}}),Hg=Zt(function(e,t){return vt(t,function(r){r=Wt(r),Qt(e,r,pn(e[r],e))}),e});function $g(e){var t=e==null?0:e.length,r=W();return e=t?Te(e,function(n){if(typeof n[1]!="function")throw new wt(m);return[r(n[0]),n[1]]}):[],re(function(n){for(var l=-1;++l<t;){var d=e[l];if(ut(d[0],this,n))return ut(d[1],this,n)}})}function Gg(e){return _f(It(e,k))}function bn(e){return function(){return e}}function Xg(e,t){return e==null||e!==e?t:e}var Yg=cc(),Vg=cc(!0);function it(e){return e}function xn(e){return Fl(typeof e=="function"?e:It(e,k))}function Kg(e){return jl(It(e,k))}function Qg(e,t){return Ul(e,It(t,k))}var Jg=re(function(e,t){return function(r){return Na(r,e,t)}}),Zg=re(function(e,t){return function(r){return Na(e,r,t)}});function vn(e,t,r){var n=je(t),l=qs(t,n);r==null&&!(ke(t)&&(l.length||!n.length))&&(r=t,t=e,e=this,l=qs(t,je(t)));var d=!(ke(r)&&"chain"in r)||!!r.chain,f=tr(e);return vt(l,function(h){var x=t[h];e[h]=x,f&&(e.prototype[h]=function(){var A=this.__chain__;if(d||A){var q=e(this.__wrapped__),C=q.__actions__=rt(this.__actions__);return C.push({func:x,args:arguments,thisArg:e}),q.__chain__=A,q}return x.apply(e,ur([this.value()],arguments))})}),e}function eb(){return We._===this&&(We._=Dm),this}function wn(){}function tb(e){return e=Z(e),re(function(t){return Wl(t,e)})}var rb=Ji(Te),ab=Ji(ul),sb=Ji(Ti);function ou(e){return nn(e)?Ii(Wt(e)):Pf(e)}function ib(e){return function(t){return e==null?a:Ar(e,t)}}var nb=dc(),ob=dc(!0);function Tn(){return[]}function In(){return!1}function lb(){return{}}function cb(){return""}function ub(){return!0}function db(e,t){if(e=Z(e),e<1||e>ze)return[];var r=V,n=Ge(e,V);t=W(t),e-=V;for(var l=Ai(n,t);++r<e;)t(r);return l}function pb(e){return Q(e)?Te(e,Wt):mt(e)?[e]:rt(Ac(ye(e)))}function mb(e){var t=++Tm;return ye(e)+t}var fb=Ps(function(e,t){return e+t},0),yb=Zi("ceil"),hb=Ps(function(e,t){return e/t},1),_b=Zi("floor");function gb(e){return e&&e.length?As(e,it,Li):a}function bb(e,t){return e&&e.length?As(e,W(t,2),Li):a}function xb(e){return ml(e,it)}function vb(e,t){return ml(e,W(t,2))}function wb(e){return e&&e.length?As(e,it,Ui):a}function Tb(e,t){return e&&e.length?As(e,W(t,2),Ui):a}var Ib=Ps(function(e,t){return e*t},1),Db=Zi("round"),kb=Ps(function(e,t){return e-t},0);function Ab(e){return e&&e.length?ki(e,it):0}function qb(e,t){return e&&e.length?ki(e,W(t,2)):0}return c.after=Kh,c.ary=Lc,c.assign=M_,c.assignIn=Jc,c.assignInWith=Xs,c.assignWith=L_,c.at=F_,c.before=Fc,c.bind=pn,c.bindAll=Hg,c.bindKey=Bc,c.castArray=l_,c.chain=Ec,c.chunk=_y,c.compact=gy,c.concat=by,c.cond=$g,c.conforms=Gg,c.constant=bn,c.countBy=Ah,c.create=B_,c.curry=jc,c.curryRight=Uc,c.debounce=Wc,c.defaults=j_,c.defaultsDeep=U_,c.defer=Qh,c.delay=Jh,c.difference=xy,c.differenceBy=vy,c.differenceWith=wy,c.drop=Ty,c.dropRight=Iy,c.dropRightWhile=Dy,c.dropWhile=ky,c.fill=Ay,c.filter=Ch,c.flatMap=Nh,c.flatMapDeep=Oh,c.flatMapDepth=Ph,c.flatten=zc,c.flattenDeep=qy,c.flattenDepth=Cy,c.flip=Zh,c.flow=Yg,c.flowRight=Vg,c.fromPairs=Sy,c.functions=V_,c.functionsIn=K_,c.groupBy=Eh,c.initial=Ny,c.intersection=Oy,c.intersectionBy=Py,c.intersectionWith=Ey,c.invert=J_,c.invertBy=Z_,c.invokeMap=Mh,c.iteratee=xn,c.keyBy=Lh,c.keys=je,c.keysIn=st,c.map=js,c.mapKeys=tg,c.mapValues=rg,c.matches=Kg,c.matchesProperty=Qg,c.memoize=Ws,c.merge=ag,c.mergeWith=Zc,c.method=Jg,c.methodOf=Zg,c.mixin=vn,c.negate=Hs,c.nthArg=tb,c.omit=sg,c.omitBy=ig,c.once=e_,c.orderBy=Fh,c.over=rb,c.overArgs=t_,c.overEvery=ab,c.overSome=sb,c.partial=mn,c.partialRight=Hc,c.partition=Bh,c.pick=ng,c.pickBy=eu,c.property=ou,c.propertyOf=ib,c.pull=Fy,c.pullAll=Oc,c.pullAllBy=By,c.pullAllWith=jy,c.pullAt=Uy,c.range=nb,c.rangeRight=ob,c.rearg=r_,c.reject=Wh,c.remove=Wy,c.rest=a_,c.reverse=un,c.sampleSize=$h,c.set=lg,c.setWith=cg,c.shuffle=Gh,c.slice=Hy,c.sortBy=Vh,c.sortedUniq=Qy,c.sortedUniqBy=Jy,c.split=Ng,c.spread=s_,c.tail=Zy,c.take=eh,c.takeRight=th,c.takeRightWhile=rh,c.takeWhile=ah,c.tap=gh,c.throttle=i_,c.thru=Bs,c.toArray=Vc,c.toPairs=tu,c.toPairsIn=ru,c.toPath=pb,c.toPlainObject=Qc,c.transform=ug,c.unary=n_,c.union=sh,c.unionBy=ih,c.unionWith=nh,c.uniq=oh,c.uniqBy=lh,c.uniqWith=ch,c.unset=dg,c.unzip=dn,c.unzipWith=Pc,c.update=pg,c.updateWith=mg,c.values=ea,c.valuesIn=fg,c.without=uh,c.words=iu,c.wrap=o_,c.xor=dh,c.xorBy=ph,c.xorWith=mh,c.zip=fh,c.zipObject=yh,c.zipObjectDeep=hh,c.zipWith=_h,c.entries=tu,c.entriesIn=ru,c.extend=Jc,c.extendWith=Xs,vn(c,c),c.add=fb,c.attempt=nu,c.camelCase=gg,c.capitalize=au,c.ceil=yb,c.clamp=yg,c.clone=c_,c.cloneDeep=d_,c.cloneDeepWith=p_,c.cloneWith=u_,c.conformsTo=m_,c.deburr=su,c.defaultTo=Xg,c.divide=hb,c.endsWith=bg,c.eq=Pt,c.escape=xg,c.escapeRegExp=vg,c.every=qh,c.find=Sh,c.findIndex=Cc,c.findKey=W_,c.findLast=zh,c.findLastIndex=Sc,c.findLastKey=H_,c.floor=_b,c.forEach=Rc,c.forEachRight=Mc,c.forIn=$_,c.forInRight=G_,c.forOwn=X_,c.forOwnRight=Y_,c.get=hn,c.gt=f_,c.gte=y_,c.has=Q_,c.hasIn=_n,c.head=Nc,c.identity=it,c.includes=Rh,c.indexOf=zy,c.inRange=hg,c.invoke=eg,c.isArguments=Sr,c.isArray=Q,c.isArrayBuffer=h_,c.isArrayLike=at,c.isArrayLikeObject=Ne,c.isBoolean=__,c.isBuffer=_r,c.isDate=g_,c.isElement=b_,c.isEmpty=x_,c.isEqual=v_,c.isEqualWith=w_,c.isError=fn,c.isFinite=T_,c.isFunction=tr,c.isInteger=$c,c.isLength=$s,c.isMap=Gc,c.isMatch=I_,c.isMatchWith=D_,c.isNaN=k_,c.isNative=A_,c.isNil=C_,c.isNull=q_,c.isNumber=Xc,c.isObject=ke,c.isObjectLike=Ce,c.isPlainObject=La,c.isRegExp=yn,c.isSafeInteger=S_,c.isSet=Yc,c.isString=Gs,c.isSymbol=mt,c.isTypedArray=Zr,c.isUndefined=z_,c.isWeakMap=N_,c.isWeakSet=O_,c.join=Ry,c.kebabCase=wg,c.last=kt,c.lastIndexOf=My,c.lowerCase=Tg,c.lowerFirst=Ig,c.lt=P_,c.lte=E_,c.max=gb,c.maxBy=bb,c.mean=xb,c.meanBy=vb,c.min=wb,c.minBy=Tb,c.stubArray=Tn,c.stubFalse=In,c.stubObject=lb,c.stubString=cb,c.stubTrue=ub,c.multiply=Ib,c.nth=Ly,c.noConflict=eb,c.noop=wn,c.now=Us,c.pad=Dg,c.padEnd=kg,c.padStart=Ag,c.parseInt=qg,c.random=_g,c.reduce=jh,c.reduceRight=Uh,c.repeat=Cg,c.replace=Sg,c.result=og,c.round=Db,c.runInContext=_,c.sample=Hh,c.size=Xh,c.snakeCase=zg,c.some=Yh,c.sortedIndex=$y,c.sortedIndexBy=Gy,c.sortedIndexOf=Xy,c.sortedLastIndex=Yy,c.sortedLastIndexBy=Vy,c.sortedLastIndexOf=Ky,c.startCase=Og,c.startsWith=Pg,c.subtract=kb,c.sum=Ab,c.sumBy=qb,c.template=Eg,c.times=db,c.toFinite=rr,c.toInteger=Z,c.toLength=Kc,c.toLower=Rg,c.toNumber=At,c.toSafeInteger=R_,c.toString=ye,c.toUpper=Mg,c.trim=Lg,c.trimEnd=Fg,c.trimStart=Bg,c.truncate=jg,c.unescape=Ug,c.uniqueId=mb,c.upperCase=Wg,c.upperFirst=gn,c.each=Rc,c.eachRight=Mc,c.first=Nc,vn(c,function(){var e={};return jt(c,function(t,r){_e.call(c.prototype,r)||(e[r]=t)}),e}(),{chain:!1}),c.VERSION=o,vt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){c[e].placeholder=c}),vt(["drop","take"],function(e,t){le.prototype[e]=function(r){r=r===a?1:Le(Z(r),0);var n=this.__filtered__&&!t?new le(this):this.clone();return n.__filtered__?n.__takeCount__=Ge(r,n.__takeCount__):n.__views__.push({size:Ge(r,V),type:e+(n.__dir__<0?"Right":"")}),n},le.prototype[e+"Right"]=function(r){return this.reverse()[e](r).reverse()}}),vt(["filter","map","takeWhile"],function(e,t){var r=t+1,n=r==Re||r==de;le.prototype[e]=function(l){var d=this.clone();return d.__iteratees__.push({iteratee:W(l,3),type:r}),d.__filtered__=d.__filtered__||n,d}}),vt(["head","last"],function(e,t){var r="take"+(t?"Right":"");le.prototype[e]=function(){return this[r](1).value()[0]}}),vt(["initial","tail"],function(e,t){var r="drop"+(t?"":"Right");le.prototype[e]=function(){return this.__filtered__?new le(this):this[r](1)}}),le.prototype.compact=function(){return this.filter(it)},le.prototype.find=function(e){return this.filter(e).head()},le.prototype.findLast=function(e){return this.reverse().find(e)},le.prototype.invokeMap=re(function(e,t){return typeof e=="function"?new le(this):this.map(function(r){return Na(r,e,t)})}),le.prototype.reject=function(e){return this.filter(Hs(W(e)))},le.prototype.slice=function(e,t){e=Z(e);var r=this;return r.__filtered__&&(e>0||t<0)?new le(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==a&&(t=Z(t),r=t<0?r.dropRight(-t):r.take(t-e)),r)},le.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},le.prototype.toArray=function(){return this.take(V)},jt(le.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),n=/^(?:head|last)$/.test(t),l=c[n?"take"+(t=="last"?"Right":""):t],d=n||/^find/.test(t);l&&(c.prototype[t]=function(){var f=this.__wrapped__,h=n?[1]:arguments,x=f instanceof le,A=h[0],q=x||Q(f),C=function(se){var ce=l.apply(c,ur([se],h));return n&&O?ce[0]:ce};q&&r&&typeof A=="function"&&A.length!=1&&(x=q=!1);var O=this.__chain__,L=!!this.__actions__.length,H=d&&!O,te=x&&!L;if(!d&&q){f=te?f:new le(this);var $=e.apply(f,h);return $.__actions__.push({func:Bs,args:[C],thisArg:a}),new Tt($,O)}return H&&te?e.apply(this,h):($=this.thru(C),H?n?$.value()[0]:$.value():$)})}),vt(["pop","push","shift","sort","splice","unshift"],function(e){var t=ps[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);c.prototype[e]=function(){var l=arguments;if(n&&!this.__chain__){var d=this.value();return t.apply(Q(d)?d:[],l)}return this[r](function(f){return t.apply(Q(f)?f:[],l)})}}),jt(le.prototype,function(e,t){var r=c[t];if(r){var n=r.name+"";_e.call(Yr,n)||(Yr[n]=[]),Yr[n].push({name:t,func:r})}}),Yr[Os(a,me).name]=[{name:"wrapper",func:a}],le.prototype.clone=jm,le.prototype.reverse=Um,le.prototype.value=Wm,c.prototype.at=bh,c.prototype.chain=xh,c.prototype.commit=vh,c.prototype.next=wh,c.prototype.plant=Ih,c.prototype.reverse=Dh,c.prototype.toJSON=c.prototype.valueOf=c.prototype.value=kh,c.prototype.first=c.prototype.head,Da&&(c.prototype[Da]=Th),c},$r=xm();wr?((wr.exports=$r)._=$r,bi._=$r):We._=$r}).call(ta)}(Ha,Ha.exports);var Nd=Ha.exports;const Ye="tccScript",Wn={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 qt;(function(s){s[s.None=0]="None",s[s.Indent=1]="Indent",s[s.IndentOutdent=2]="IndentOutdent",s[s.Outdent=3]="Outdent"})(qt||(qt={}));const Hn={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:qt.Indent}},{beforeText:/if\s+.*\s*$/,action:{indentAction:qt.Indent}},{beforeText:/else/,action:{indentAction:qt.Indent}},{beforeText:/for\s+\S+\s*=\s*\S+\s+to\s+\S+(?:\s+by\s+\S+)?\s*$/,action:{indentAction:qt.Indent}},{beforeText:/for\s+(?:\[\S+\s+\S+]|\S+)\s+in\s+\S+\s*$/,action:{indentAction:qt.Indent}},{beforeText:/switch\s+.*\s*$/,action:{indentAction:qt.Indent}},{beforeText:/while\s+.*\s*$/,action:{indentAction:qt.Indent}},{beforeText:/type\s+\w+/,action:{indentAction:qt.Indent}},{beforeText:/^\s*$/,action:{indentAction:qt.Outdent}}]},I={"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 Lt(s,i=1){return s+Math.round(255*Math.min(Math.max(i,0),1)).toString(16).toUpperCase().padStart(2,"0")}const $n={base:"vs",inherit:!0,rules:[{token:"comment",foreground:I["color-cold-gray-400"]},{token:"comment.annotation",fontStyle:"bold"},{token:"text",foreground:I["color-cold-gray-900"]},{token:"string",foreground:I["color-iguana-green-700"]},{token:"constant.numeric",foreground:I["color-banana-yellow-900"]},{token:"constant.language",foreground:I["color-ripe-red-a600"]},{token:"constant.other.color",foreground:I["color-ripe-red-a600"]},{token:"constant.other",foreground:I["color-ripe-red-a600"]},{token:"support.variable",foreground:I["color-ripe-red-a600"]},{token:"support.function",foreground:I["color-tv-blue-a600"]},{token:"support.type",foreground:I["color-minty-green-400"],fontStyle:"bold"},{token:"entity.name.type",foreground:I["color-minty-green-400"],fontStyle:"bold"},{token:"support.method",foreground:I["color-tv-blue-a600"]},{token:"keyword.equals",foreground:I["color-minty-green-400"]},{token:"keyword.operator",foreground:I["color-minty-green-400"]},{token:"keyword.other",foreground:I["color-minty-green-400"]},{token:"keyword",foreground:I["color-minty-green-400"]},{token:"variable.other",foreground:I["color-cold-gray-800"]},{token:"variable.other.property",foreground:I["color-cold-gray-800"]},{token:"paren",foreground:I["color-black"]},{token:"entity.name.function",foreground:I["color-tv-blue-900"]},{token:"entity.name.method",foreground:I["color-tv-blue-900"]},{token:"meta.function-call",foreground:I["color-grapes-purple-600"]},{token:"entity.name.module.name",foreground:I["color-grapes-purple-600"]},{token:"entity.name.module",foreground:I["color-tv-blue-a600"]},{token:"",background:I["color-white"]}],colors:{"editor.foreground":I["color-cold-gray-900"],"editor.background":"#00000000","editorLineNumber.foreground":I["color-cold-gray-400"],"editorLineNumber.activeForeground":I["color-cold-gray-700"],"editorHoverWidget.background":I["color-white"],"editorHoverWidget.statusBarBackground":I["color-cold-gray-150"],"editorHoverWidget.foreground":I["color-cold-gray-900"],"editorWidget.background":I["color-white"],"editorWidget.foreground":I["color-cold-gray-900"],"editorGutter.background":"#00000000","editor.foldBackground":Lt(I["color-cold-gray-200"],.5),"editor.lineHighlightBackground":I["color-tv-blue-50"],"editor.lineHighlightBorder":I["color-tv-blue-50"],"editor.rangeHighlightBackground":I["color-tv-blue-a800"],"editorBracketMatch.background":I["color-cold-gray-150"],"editor.selectionBackground":I["color-tv-blue-100"],"editor.selectionHighlightBackground":I["color-tv-blue-50"],"editor.findMatchBackground":I["color-tan-orange-100"],"editor.findMatchHighlightBackground":I["color-tan-orange-100"],"editor.findMatchBorder":I["color-tan-orange-500"],"list.foreground":I["color-cold-gray-900"],"list.hoverForeground":I["color-cold-gray-900"],"list.activeSelectionBackground":I["color-tv-blue-500"],"list.hoverBackground":I["color-tv-blue-50"],"list.focusHighlightForeground":I["color-tv-blue-100"],"list.inactiveSelectionBackground":I["color-tv-blue-500"],"keybindingLabel.background":I["color-white"],"keybindingLabel.foreground":I["color-cold-gray-900"],"keybindingLabel.border":I["color-cold-gray-150"],"input.foreground":I["color-cold-gray-900"],"textLink.foreground":I["color-tv-blue-500"],"textLink.activeForeground":I["color-tv-blue-600"],"peekViewEditor.matchHighlightBackground":I["color-tan-orange-100"],"peekViewResult.lineForeground":I["color-cold-gray-900"],"editorMarkerNavigationWarning.background":I["color-banana-yellow-800"],"inputValidation.warningBackground":I["color-banana-yellow-800"],"diffEditor.insertedTextBackground":Lt(I["color-forest-green-500"],.3),"diffEditor.insertedLineBackground":Lt(I["color-forest-green-500"],.15),"diffEditor.removedTextBackground":Lt(I["color-ripe-red-500"],.3),"diffEditor.removedLineBackground":Lt(I["color-ripe-red-500"],.15),"editorInlayHint.background":I["color-cold-gray-150"],"editorInlayHint.foreground":I["color-cold-gray-550"],"editorError.foreground":I["color-ripe-red-500"],"editorWarning.foreground":I["color-tan-orange-500"]}},Gn={base:"vs-dark",inherit:!0,rules:[{token:"comment",foreground:I["color-cold-gray-500"]},{token:"comment.annotation",fontStyle:"bold"},{token:"text",foreground:I["color-white"]},{token:"string",foreground:I["color-iguana-green-700"]},{token:"constant.numeric",foreground:I["color-banana-yellow-900"]},{token:"constant.language",foreground:I["color-ripe-red-300"]},{token:"constant.other.color",foreground:I["color-ripe-red-300"]},{token:"constant.other",foreground:I["color-ripe-red-300"]},{token:"support.variable",foreground:I["color-ripe-red-300"]},{token:"support.function",foreground:I["color-tv-blue-300"]},{token:"support.method",foreground:I["color-tv-blue-300"]},{token:"support.type",foreground:I["color-minty-green-300"],fontStyle:"bold"},{token:"entity.name.type",foreground:I["color-minty-green-300"],fontStyle:"bold"},{token:"keyword.equals",foreground:I["color-minty-green-300"]},{token:"keyword.operator",foreground:I["color-minty-green-300"]},{token:"keyword.other",foreground:I["color-minty-green-300"]},{token:"keyword",foreground:I["color-minty-green-300"]},{token:"variable.other",foreground:I["color-cold-gray-200"]},{token:"variable.other.property",foreground:I["color-cold-gray-200"]},{token:"paren",foreground:I["color-white"]},{token:"entity.name.function",foreground:I["color-tv-blue-400"]},{token:"entity.name.method",foreground:I["color-tv-blue-400"]},{token:"meta.function-call",foreground:I["color-grapes-purple-300"]},{token:"entity.name.module.name",foreground:I["color-grapes-purple-300"]},{token:"entity.name.module",foreground:I["color-tv-blue-300"]},{token:"",background:I["color-cold-gray-900"]}],colors:{"editor.foreground":I["color-white"],"editor.background":I["color-cold-gray-900"],"editorLineNumber.foreground":I["color-cold-gray-500"],"editorLineNumber.activeForeground":I["color-cold-gray-300"],"editorWidget.background":I["color-cold-gray-850"],"editorHoverWidget.background":I["color-cold-gray-850"],"editorHoverWidget.foreground":I["color-cold-gray-300"],"editorHoverWidget.statusBarBackground":I["color-cold-gray-900"],"editorWidget.foreground":I["color-cold-gray-300"],"editorGutter.background":I["color-cold-gray-900"],"editor.foldBackground":Lt(I["color-cold-gray-700"],.5),"editor.lineHighlightBackground":I["color-tv-blue-a900"],"editor.lineHighlightBorder":I["color-tv-blue-a900"],"editor.rangeHighlightBackground":I["color-tv-blue-a800"],"editorBracketMatch.background":I["color-cold-gray-750"],"editor.selectionBackground":I["color-tv-blue-a800"],"editor.selectionHighlightBackground":I["color-cold-gray-800"],"list.foreground":I["color-cold-gray-350"],"list.hoverForeground":I["color-cold-gray-350"],"list.activeSelectionBackground":I["color-tv-blue-500"],"list.hoverBackground":I["color-tv-blue-900"],"list.focusHighlightForeground":I["color-tv-blue-300"],"list.inactiveSelectionBackground":I["color-tv-blue-500"],"keybindingLabel.background":I["color-cold-gray-800"],"keybindingLabel.foreground":I["color-cold-gray-300"],"keybindingLabel.border":I["color-cold-gray-700"],"input.foreground":I["color-cold-gray-350"],"textLink.foreground":I["color-tv-blue-500"],"textLink.activeForeground":I["color-tv-blue-600"],"peekViewEditor.matchHighlightBackground":I["color-tan-orange-a800"],"peekViewResult.lineForeground":I["color-cold-gray-350"],"diffEditor.insertedTextBackground":Lt(I["color-iguana-green-a700"],.3),"diffEditor.insertedLineBackground":Lt(I["color-iguana-green-a700"],.15),"diffEditor.removedTextBackground":Lt(I["color-ripe-red-a400"],.3),"diffEditor.removedLineBackground":Lt(I["color-ripe-red-a400"],.15),"editorInlayHint.background":I["color-cold-gray-800"],"editorInlayHint.foreground":I["color-cold-gray-400"],"editorError.foreground":I["color-ripe-red-500"],"editorWarning.foreground":I["color-tan-orange-700"]}},Od=/(\\(?:[\\'"]))|(\\$)|("|$)|($)/g,Pd=/(\\(?:[\\'"]))|(\\$)|('|$)|($)/g,Xn={"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 Ed{constructor(i){Object.defineProperty(this,"_formatter",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_isMac",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_getSignatureParams",{enumerable:!0,configurable:!0,writable:!0,value:(a=[],o)=>{const u=new Map,p=o.indexOf("(");for(let m=p+1,g=p;m<o.length;m++)o[m]!==","&&o[m]!==")"||(g++,u.set(o.slice(g,m),g),g=m+1);return a.map(({name:m,displayType:g,desc:v})=>{const b=[],w=u.get(m),k=w+m.length;return b.push(this._formatter.paragraph(this._formatter.bold(m),this._formatter.italic(g||""))),v&&b.push(Array.isArray(v)?v.join(this._formatter.lineBreak):v),{label:[w,k],documentation:{value:b.join(this._formatter.lineBreak)}}})}}),this._formatter=he,this._isMac=/(Mac|iPhone|iPod|iPad)/i.test(i)}getSignatureHelpValues(i,a){const o=this._getFuncItems(i);if(!(o!=null&&o.length))return null;const u=this._getSequentialSignatures(i,o),p=this._getActiveIndex(o,a);return{signatures:u,...p}}_getActiveIndex(i,a=[]){let o=0,u=-1;a.some(m=>!!m)||(u=a.length-1);const p=a.pop();if(p)for(const[m,g]of i.entries()){const{args:v}=g;if(v&&v.length){const b=v.findIndex(w=>w.name===p);if(b!=-1){u=b,o=m;break}}}return{activeParameter:u,activeSignature:o}}_getFuncItems(i){return Rt.functions.get(i)||Mt.userFuncs.get(i)||Mt.methodFuncs.get(i)}_getSequentialSignatures(i,a){return a.map(o=>{const u=this._getSignatureLabel(i,o);return{label:u,documentation:this._getFormattedSignatureDocumentation(o),parameters:this._getSignatureParams(o.args,u)}})}_getSignatureLabel(i,a,o=!1){const u=[i];return o&&u.push("<type>"),a.args&&(u.push("("),u.push(a.args.map(({name:p})=>p).join(", ")),u.push(")")),u.join("")}_getFormattedSignatureDocumentation(i){const{desc:a}=i,o=[];a&&o.push(Array.isArray(a)?a.join(this._formatter.lineBreak):a);const u=`${this._formatter.code(this._isMac?"⌘":"Ctrl")} +
|
131
|
+
}`;var ee=nu(function(){return pe(d,L+"return "+C).apply(a,f)});if(ee.source=C,fn(ee))throw ee;return ee}function Rg(e){return ye(e).toLowerCase()}function Mg(e){return ye(e).toUpperCase()}function Lg(e,t,r){if(e=ye(e),e&&(r||t===a))return yl(e);if(!e||!(t=pt(t)))return e;var n=Nt(e),l=Nt(t),d=hl(n,l),f=_l(n,l)+1;return hr(n,d,f).join("")}function Fg(e,t,r){if(e=ye(e),e&&(r||t===a))return e.slice(0,bl(e)+1);if(!e||!(t=pt(t)))return e;var n=Nt(e),l=_l(n,Nt(t))+1;return hr(n,0,l).join("")}function Bg(e,t,r){if(e=ye(e),e&&(r||t===a))return e.replace(Ta,"");if(!e||!(t=pt(t)))return e;var n=Nt(e),l=hl(n,Nt(t));return hr(n,l).join("")}function jg(e,t){var r=ne,n=_t;if(ke(t)){var l="separator"in t?t.separator:l;r="length"in t?Z(t.length):r,n="omission"in t?pt(t.omission):n}e=ye(e);var d=e.length;if(Wr(e)){var f=Nt(e);d=f.length}if(r>=d)return e;var h=r-Hr(n);if(h<1)return n;var x=f?hr(f,0,h).join(""):e.slice(0,h);if(l===a)return x+n;if(f&&(h+=x.length-h),yn(l)){if(e.slice(h).search(l)){var A,q=x;for(l.global||(l=Si(l.source,ye(fe.exec(l))+"g")),l.lastIndex=0;A=l.exec(q);)var C=A.index;x=x.slice(0,C===a?h:C)}}else if(e.indexOf(pt(l),h)!=h){var O=x.lastIndexOf(l);O>-1&&(x=x.slice(0,O))}return x+n}function Ug(e){return e=ye(e),e&&va.test(e)?e.replace(Yt,hm):e}var Wg=Qr(function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}),gn=oc("toUpperCase");function iu(e,t,r){return e=ye(e),t=r?a:t,t===a?dm(e)?bm(e):rm(e):e.match(t)||[]}var nu=te(function(e,t){try{return ut(e,a,t)}catch(r){return fn(r)?r:new K(r)}}),Hg=Zt(function(e,t){return vt(t,function(r){r=Wt(r),Qt(e,r,pn(e[r],e))}),e});function $g(e){var t=e==null?0:e.length,r=W();return e=t?Te(e,function(n){if(typeof n[1]!="function")throw new wt(m);return[r(n[0]),n[1]]}):[],te(function(n){for(var l=-1;++l<t;){var d=e[l];if(ut(d[0],this,n))return ut(d[1],this,n)}})}function Gg(e){return _f(It(e,k))}function bn(e){return function(){return e}}function Xg(e,t){return e==null||e!==e?t:e}var Yg=cc(),Vg=cc(!0);function it(e){return e}function xn(e){return Fl(typeof e=="function"?e:It(e,k))}function Kg(e){return jl(It(e,k))}function Qg(e,t){return Ul(e,It(t,k))}var Jg=te(function(e,t){return function(r){return Na(r,e,t)}}),Zg=te(function(e,t){return function(r){return Na(e,r,t)}});function vn(e,t,r){var n=je(t),l=qs(t,n);r==null&&!(ke(t)&&(l.length||!n.length))&&(r=t,t=e,e=this,l=qs(t,je(t)));var d=!(ke(r)&&"chain"in r)||!!r.chain,f=tr(e);return vt(l,function(h){var x=t[h];e[h]=x,f&&(e.prototype[h]=function(){var A=this.__chain__;if(d||A){var q=e(this.__wrapped__),C=q.__actions__=rt(this.__actions__);return C.push({func:x,args:arguments,thisArg:e}),q.__chain__=A,q}return x.apply(e,ur([this.value()],arguments))})}),e}function eb(){return We._===this&&(We._=Dm),this}function wn(){}function tb(e){return e=Z(e),te(function(t){return Wl(t,e)})}var rb=Ji(Te),ab=Ji(ul),sb=Ji(Ti);function ou(e){return nn(e)?Ii(Wt(e)):Pf(e)}function ib(e){return function(t){return e==null?a:Ar(e,t)}}var nb=dc(),ob=dc(!0);function Tn(){return[]}function In(){return!1}function lb(){return{}}function cb(){return""}function ub(){return!0}function db(e,t){if(e=Z(e),e<1||e>ze)return[];var r=V,n=Ge(e,V);t=W(t),e-=V;for(var l=Ai(n,t);++r<e;)t(r);return l}function pb(e){return Q(e)?Te(e,Wt):mt(e)?[e]:rt(Ac(ye(e)))}function mb(e){var t=++Tm;return ye(e)+t}var fb=Ps(function(e,t){return e+t},0),yb=Zi("ceil"),hb=Ps(function(e,t){return e/t},1),_b=Zi("floor");function gb(e){return e&&e.length?As(e,it,Li):a}function bb(e,t){return e&&e.length?As(e,W(t,2),Li):a}function xb(e){return ml(e,it)}function vb(e,t){return ml(e,W(t,2))}function wb(e){return e&&e.length?As(e,it,Ui):a}function Tb(e,t){return e&&e.length?As(e,W(t,2),Ui):a}var Ib=Ps(function(e,t){return e*t},1),Db=Zi("round"),kb=Ps(function(e,t){return e-t},0);function Ab(e){return e&&e.length?ki(e,it):0}function qb(e,t){return e&&e.length?ki(e,W(t,2)):0}return c.after=Kh,c.ary=Lc,c.assign=M_,c.assignIn=Jc,c.assignInWith=Xs,c.assignWith=L_,c.at=F_,c.before=Fc,c.bind=pn,c.bindAll=Hg,c.bindKey=Bc,c.castArray=l_,c.chain=Ec,c.chunk=_y,c.compact=gy,c.concat=by,c.cond=$g,c.conforms=Gg,c.constant=bn,c.countBy=Ah,c.create=B_,c.curry=jc,c.curryRight=Uc,c.debounce=Wc,c.defaults=j_,c.defaultsDeep=U_,c.defer=Qh,c.delay=Jh,c.difference=xy,c.differenceBy=vy,c.differenceWith=wy,c.drop=Ty,c.dropRight=Iy,c.dropRightWhile=Dy,c.dropWhile=ky,c.fill=Ay,c.filter=Ch,c.flatMap=Nh,c.flatMapDeep=Oh,c.flatMapDepth=Ph,c.flatten=zc,c.flattenDeep=qy,c.flattenDepth=Cy,c.flip=Zh,c.flow=Yg,c.flowRight=Vg,c.fromPairs=Sy,c.functions=V_,c.functionsIn=K_,c.groupBy=Eh,c.initial=Ny,c.intersection=Oy,c.intersectionBy=Py,c.intersectionWith=Ey,c.invert=J_,c.invertBy=Z_,c.invokeMap=Mh,c.iteratee=xn,c.keyBy=Lh,c.keys=je,c.keysIn=st,c.map=js,c.mapKeys=tg,c.mapValues=rg,c.matches=Kg,c.matchesProperty=Qg,c.memoize=Ws,c.merge=ag,c.mergeWith=Zc,c.method=Jg,c.methodOf=Zg,c.mixin=vn,c.negate=Hs,c.nthArg=tb,c.omit=sg,c.omitBy=ig,c.once=e_,c.orderBy=Fh,c.over=rb,c.overArgs=t_,c.overEvery=ab,c.overSome=sb,c.partial=mn,c.partialRight=Hc,c.partition=Bh,c.pick=ng,c.pickBy=eu,c.property=ou,c.propertyOf=ib,c.pull=Fy,c.pullAll=Oc,c.pullAllBy=By,c.pullAllWith=jy,c.pullAt=Uy,c.range=nb,c.rangeRight=ob,c.rearg=r_,c.reject=Wh,c.remove=Wy,c.rest=a_,c.reverse=un,c.sampleSize=$h,c.set=lg,c.setWith=cg,c.shuffle=Gh,c.slice=Hy,c.sortBy=Vh,c.sortedUniq=Qy,c.sortedUniqBy=Jy,c.split=Ng,c.spread=s_,c.tail=Zy,c.take=eh,c.takeRight=th,c.takeRightWhile=rh,c.takeWhile=ah,c.tap=gh,c.throttle=i_,c.thru=Bs,c.toArray=Vc,c.toPairs=tu,c.toPairsIn=ru,c.toPath=pb,c.toPlainObject=Qc,c.transform=ug,c.unary=n_,c.union=sh,c.unionBy=ih,c.unionWith=nh,c.uniq=oh,c.uniqBy=lh,c.uniqWith=ch,c.unset=dg,c.unzip=dn,c.unzipWith=Pc,c.update=pg,c.updateWith=mg,c.values=ea,c.valuesIn=fg,c.without=uh,c.words=iu,c.wrap=o_,c.xor=dh,c.xorBy=ph,c.xorWith=mh,c.zip=fh,c.zipObject=yh,c.zipObjectDeep=hh,c.zipWith=_h,c.entries=tu,c.entriesIn=ru,c.extend=Jc,c.extendWith=Xs,vn(c,c),c.add=fb,c.attempt=nu,c.camelCase=gg,c.capitalize=au,c.ceil=yb,c.clamp=yg,c.clone=c_,c.cloneDeep=d_,c.cloneDeepWith=p_,c.cloneWith=u_,c.conformsTo=m_,c.deburr=su,c.defaultTo=Xg,c.divide=hb,c.endsWith=bg,c.eq=Pt,c.escape=xg,c.escapeRegExp=vg,c.every=qh,c.find=Sh,c.findIndex=Cc,c.findKey=W_,c.findLast=zh,c.findLastIndex=Sc,c.findLastKey=H_,c.floor=_b,c.forEach=Rc,c.forEachRight=Mc,c.forIn=$_,c.forInRight=G_,c.forOwn=X_,c.forOwnRight=Y_,c.get=hn,c.gt=f_,c.gte=y_,c.has=Q_,c.hasIn=_n,c.head=Nc,c.identity=it,c.includes=Rh,c.indexOf=zy,c.inRange=hg,c.invoke=eg,c.isArguments=Sr,c.isArray=Q,c.isArrayBuffer=h_,c.isArrayLike=at,c.isArrayLikeObject=Ne,c.isBoolean=__,c.isBuffer=_r,c.isDate=g_,c.isElement=b_,c.isEmpty=x_,c.isEqual=v_,c.isEqualWith=w_,c.isError=fn,c.isFinite=T_,c.isFunction=tr,c.isInteger=$c,c.isLength=$s,c.isMap=Gc,c.isMatch=I_,c.isMatchWith=D_,c.isNaN=k_,c.isNative=A_,c.isNil=C_,c.isNull=q_,c.isNumber=Xc,c.isObject=ke,c.isObjectLike=Ce,c.isPlainObject=La,c.isRegExp=yn,c.isSafeInteger=S_,c.isSet=Yc,c.isString=Gs,c.isSymbol=mt,c.isTypedArray=Zr,c.isUndefined=z_,c.isWeakMap=N_,c.isWeakSet=O_,c.join=Ry,c.kebabCase=wg,c.last=kt,c.lastIndexOf=My,c.lowerCase=Tg,c.lowerFirst=Ig,c.lt=P_,c.lte=E_,c.max=gb,c.maxBy=bb,c.mean=xb,c.meanBy=vb,c.min=wb,c.minBy=Tb,c.stubArray=Tn,c.stubFalse=In,c.stubObject=lb,c.stubString=cb,c.stubTrue=ub,c.multiply=Ib,c.nth=Ly,c.noConflict=eb,c.noop=wn,c.now=Us,c.pad=Dg,c.padEnd=kg,c.padStart=Ag,c.parseInt=qg,c.random=_g,c.reduce=jh,c.reduceRight=Uh,c.repeat=Cg,c.replace=Sg,c.result=og,c.round=Db,c.runInContext=_,c.sample=Hh,c.size=Xh,c.snakeCase=zg,c.some=Yh,c.sortedIndex=$y,c.sortedIndexBy=Gy,c.sortedIndexOf=Xy,c.sortedLastIndex=Yy,c.sortedLastIndexBy=Vy,c.sortedLastIndexOf=Ky,c.startCase=Og,c.startsWith=Pg,c.subtract=kb,c.sum=Ab,c.sumBy=qb,c.template=Eg,c.times=db,c.toFinite=rr,c.toInteger=Z,c.toLength=Kc,c.toLower=Rg,c.toNumber=At,c.toSafeInteger=R_,c.toString=ye,c.toUpper=Mg,c.trim=Lg,c.trimEnd=Fg,c.trimStart=Bg,c.truncate=jg,c.unescape=Ug,c.uniqueId=mb,c.upperCase=Wg,c.upperFirst=gn,c.each=Rc,c.eachRight=Mc,c.first=Nc,vn(c,function(){var e={};return jt(c,function(t,r){_e.call(c.prototype,r)||(e[r]=t)}),e}(),{chain:!1}),c.VERSION=o,vt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){c[e].placeholder=c}),vt(["drop","take"],function(e,t){le.prototype[e]=function(r){r=r===a?1:Le(Z(r),0);var n=this.__filtered__&&!t?new le(this):this.clone();return n.__filtered__?n.__takeCount__=Ge(r,n.__takeCount__):n.__views__.push({size:Ge(r,V),type:e+(n.__dir__<0?"Right":"")}),n},le.prototype[e+"Right"]=function(r){return this.reverse()[e](r).reverse()}}),vt(["filter","map","takeWhile"],function(e,t){var r=t+1,n=r==Re||r==de;le.prototype[e]=function(l){var d=this.clone();return d.__iteratees__.push({iteratee:W(l,3),type:r}),d.__filtered__=d.__filtered__||n,d}}),vt(["head","last"],function(e,t){var r="take"+(t?"Right":"");le.prototype[e]=function(){return this[r](1).value()[0]}}),vt(["initial","tail"],function(e,t){var r="drop"+(t?"":"Right");le.prototype[e]=function(){return this.__filtered__?new le(this):this[r](1)}}),le.prototype.compact=function(){return this.filter(it)},le.prototype.find=function(e){return this.filter(e).head()},le.prototype.findLast=function(e){return this.reverse().find(e)},le.prototype.invokeMap=te(function(e,t){return typeof e=="function"?new le(this):this.map(function(r){return Na(r,e,t)})}),le.prototype.reject=function(e){return this.filter(Hs(W(e)))},le.prototype.slice=function(e,t){e=Z(e);var r=this;return r.__filtered__&&(e>0||t<0)?new le(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==a&&(t=Z(t),r=t<0?r.dropRight(-t):r.take(t-e)),r)},le.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},le.prototype.toArray=function(){return this.take(V)},jt(le.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),n=/^(?:head|last)$/.test(t),l=c[n?"take"+(t=="last"?"Right":""):t],d=n||/^find/.test(t);l&&(c.prototype[t]=function(){var f=this.__wrapped__,h=n?[1]:arguments,x=f instanceof le,A=h[0],q=x||Q(f),C=function(se){var ce=l.apply(c,ur([se],h));return n&&O?ce[0]:ce};q&&r&&typeof A=="function"&&A.length!=1&&(x=q=!1);var O=this.__chain__,L=!!this.__actions__.length,H=d&&!O,ee=x&&!L;if(!d&&q){f=ee?f:new le(this);var $=e.apply(f,h);return $.__actions__.push({func:Bs,args:[C],thisArg:a}),new Tt($,O)}return H&&ee?e.apply(this,h):($=this.thru(C),H?n?$.value()[0]:$.value():$)})}),vt(["pop","push","shift","sort","splice","unshift"],function(e){var t=ps[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);c.prototype[e]=function(){var l=arguments;if(n&&!this.__chain__){var d=this.value();return t.apply(Q(d)?d:[],l)}return this[r](function(f){return t.apply(Q(f)?f:[],l)})}}),jt(le.prototype,function(e,t){var r=c[t];if(r){var n=r.name+"";_e.call(Yr,n)||(Yr[n]=[]),Yr[n].push({name:t,func:r})}}),Yr[Os(a,me).name]=[{name:"wrapper",func:a}],le.prototype.clone=jm,le.prototype.reverse=Um,le.prototype.value=Wm,c.prototype.at=bh,c.prototype.chain=xh,c.prototype.commit=vh,c.prototype.next=wh,c.prototype.plant=Ih,c.prototype.reverse=Dh,c.prototype.toJSON=c.prototype.valueOf=c.prototype.value=kh,c.prototype.first=c.prototype.head,Da&&(c.prototype[Da]=Th),c},$r=xm();wr?((wr.exports=$r)._=$r,bi._=$r):We._=$r}).call(ta)}(Ha,Ha.exports);var Nd=Ha.exports;const Ye="tccScript",Wn={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 qt;(function(s){s[s.None=0]="None",s[s.Indent=1]="Indent",s[s.IndentOutdent=2]="IndentOutdent",s[s.Outdent=3]="Outdent"})(qt||(qt={}));const Hn={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:qt.Indent}},{beforeText:/if\s+.*\s*$/,action:{indentAction:qt.Indent}},{beforeText:/else/,action:{indentAction:qt.Indent}},{beforeText:/for\s+\S+\s*=\s*\S+\s+to\s+\S+(?:\s+by\s+\S+)?\s*$/,action:{indentAction:qt.Indent}},{beforeText:/for\s+(?:\[\S+\s+\S+]|\S+)\s+in\s+\S+\s*$/,action:{indentAction:qt.Indent}},{beforeText:/switch\s+.*\s*$/,action:{indentAction:qt.Indent}},{beforeText:/while\s+.*\s*$/,action:{indentAction:qt.Indent}},{beforeText:/type\s+\w+/,action:{indentAction:qt.Indent}},{beforeText:/^\s*$/,action:{indentAction:qt.Outdent}}]},I={"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 Lt(s,i=1){return s+Math.round(255*Math.min(Math.max(i,0),1)).toString(16).toUpperCase().padStart(2,"0")}const $n={base:"vs",inherit:!0,rules:[{token:"comment",foreground:I["color-cold-gray-400"]},{token:"comment.annotation",fontStyle:"bold"},{token:"text",foreground:I["color-cold-gray-900"]},{token:"string",foreground:I["color-iguana-green-700"]},{token:"constant.numeric",foreground:I["color-banana-yellow-900"]},{token:"constant.language",foreground:I["color-ripe-red-a600"]},{token:"constant.other.color",foreground:I["color-ripe-red-a600"]},{token:"constant.other",foreground:I["color-ripe-red-a600"]},{token:"support.variable",foreground:I["color-ripe-red-a600"]},{token:"support.function",foreground:I["color-tv-blue-a600"]},{token:"support.type",foreground:I["color-minty-green-400"],fontStyle:"bold"},{token:"entity.name.type",foreground:I["color-minty-green-400"],fontStyle:"bold"},{token:"support.method",foreground:I["color-tv-blue-a600"]},{token:"keyword.equals",foreground:I["color-minty-green-400"]},{token:"keyword.operator",foreground:I["color-minty-green-400"]},{token:"keyword.other",foreground:I["color-minty-green-400"]},{token:"keyword",foreground:I["color-minty-green-400"]},{token:"variable.other",foreground:I["color-cold-gray-800"]},{token:"variable.other.property",foreground:I["color-cold-gray-800"]},{token:"paren",foreground:I["color-black"]},{token:"entity.name.function",foreground:I["color-tv-blue-900"]},{token:"entity.name.method",foreground:I["color-tv-blue-900"]},{token:"meta.function-call",foreground:I["color-grapes-purple-600"]},{token:"entity.name.module.name",foreground:I["color-grapes-purple-600"]},{token:"entity.name.module",foreground:I["color-tv-blue-a600"]},{token:"",background:I["color-white"]}],colors:{"editor.foreground":I["color-cold-gray-900"],"editor.background":"#00000000","editorLineNumber.foreground":I["color-cold-gray-400"],"editorLineNumber.activeForeground":I["color-cold-gray-700"],"editorHoverWidget.background":I["color-white"],"editorHoverWidget.statusBarBackground":I["color-cold-gray-150"],"editorHoverWidget.foreground":I["color-cold-gray-900"],"editorWidget.background":I["color-white"],"editorWidget.foreground":I["color-cold-gray-900"],"editorGutter.background":"#00000000","editor.foldBackground":Lt(I["color-cold-gray-200"],.5),"editor.lineHighlightBackground":I["color-tv-blue-50"],"editor.lineHighlightBorder":I["color-tv-blue-50"],"editor.rangeHighlightBackground":I["color-tv-blue-a800"],"editorBracketMatch.background":I["color-cold-gray-150"],"editor.selectionBackground":I["color-tv-blue-100"],"editor.selectionHighlightBackground":I["color-tv-blue-50"],"editor.findMatchBackground":I["color-tan-orange-100"],"editor.findMatchHighlightBackground":I["color-tan-orange-100"],"editor.findMatchBorder":I["color-tan-orange-500"],"list.foreground":I["color-cold-gray-900"],"list.hoverForeground":I["color-cold-gray-900"],"list.activeSelectionBackground":I["color-tv-blue-500"],"list.hoverBackground":I["color-tv-blue-50"],"list.focusHighlightForeground":I["color-tv-blue-100"],"list.inactiveSelectionBackground":I["color-tv-blue-500"],"keybindingLabel.background":I["color-white"],"keybindingLabel.foreground":I["color-cold-gray-900"],"keybindingLabel.border":I["color-cold-gray-150"],"input.foreground":I["color-cold-gray-900"],"textLink.foreground":I["color-tv-blue-500"],"textLink.activeForeground":I["color-tv-blue-600"],"peekViewEditor.matchHighlightBackground":I["color-tan-orange-100"],"peekViewResult.lineForeground":I["color-cold-gray-900"],"editorMarkerNavigationWarning.background":I["color-banana-yellow-800"],"inputValidation.warningBackground":I["color-banana-yellow-800"],"diffEditor.insertedTextBackground":Lt(I["color-forest-green-500"],.3),"diffEditor.insertedLineBackground":Lt(I["color-forest-green-500"],.15),"diffEditor.removedTextBackground":Lt(I["color-ripe-red-500"],.3),"diffEditor.removedLineBackground":Lt(I["color-ripe-red-500"],.15),"editorInlayHint.background":I["color-cold-gray-150"],"editorInlayHint.foreground":I["color-cold-gray-550"],"editorError.foreground":I["color-ripe-red-500"],"editorWarning.foreground":I["color-tan-orange-500"]}},Gn={base:"vs-dark",inherit:!0,rules:[{token:"comment",foreground:I["color-cold-gray-500"]},{token:"comment.annotation",fontStyle:"bold"},{token:"text",foreground:I["color-white"]},{token:"string",foreground:I["color-iguana-green-700"]},{token:"constant.numeric",foreground:I["color-banana-yellow-900"]},{token:"constant.language",foreground:I["color-ripe-red-300"]},{token:"constant.other.color",foreground:I["color-ripe-red-300"]},{token:"constant.other",foreground:I["color-ripe-red-300"]},{token:"support.variable",foreground:I["color-ripe-red-300"]},{token:"support.function",foreground:I["color-tv-blue-300"]},{token:"support.method",foreground:I["color-tv-blue-300"]},{token:"support.type",foreground:I["color-minty-green-300"],fontStyle:"bold"},{token:"entity.name.type",foreground:I["color-minty-green-300"],fontStyle:"bold"},{token:"keyword.equals",foreground:I["color-minty-green-300"]},{token:"keyword.operator",foreground:I["color-minty-green-300"]},{token:"keyword.other",foreground:I["color-minty-green-300"]},{token:"keyword",foreground:I["color-minty-green-300"]},{token:"variable.other",foreground:I["color-cold-gray-200"]},{token:"variable.other.property",foreground:I["color-cold-gray-200"]},{token:"paren",foreground:I["color-white"]},{token:"entity.name.function",foreground:I["color-tv-blue-400"]},{token:"entity.name.method",foreground:I["color-tv-blue-400"]},{token:"meta.function-call",foreground:I["color-grapes-purple-300"]},{token:"entity.name.module.name",foreground:I["color-grapes-purple-300"]},{token:"entity.name.module",foreground:I["color-tv-blue-300"]},{token:"",background:I["color-cold-gray-900"]}],colors:{"editor.foreground":I["color-white"],"editor.background":I["color-cold-gray-900"],"editorLineNumber.foreground":I["color-cold-gray-500"],"editorLineNumber.activeForeground":I["color-cold-gray-300"],"editorWidget.background":I["color-cold-gray-850"],"editorHoverWidget.background":I["color-cold-gray-850"],"editorHoverWidget.foreground":I["color-cold-gray-300"],"editorHoverWidget.statusBarBackground":I["color-cold-gray-900"],"editorWidget.foreground":I["color-cold-gray-300"],"editorGutter.background":I["color-cold-gray-900"],"editor.foldBackground":Lt(I["color-cold-gray-700"],.5),"editor.lineHighlightBackground":I["color-tv-blue-a900"],"editor.lineHighlightBorder":I["color-tv-blue-a900"],"editor.rangeHighlightBackground":I["color-tv-blue-a800"],"editorBracketMatch.background":I["color-cold-gray-750"],"editor.selectionBackground":I["color-tv-blue-a800"],"editor.selectionHighlightBackground":I["color-cold-gray-800"],"list.foreground":I["color-cold-gray-350"],"list.hoverForeground":I["color-cold-gray-350"],"list.activeSelectionBackground":I["color-tv-blue-500"],"list.hoverBackground":I["color-tv-blue-900"],"list.focusHighlightForeground":I["color-tv-blue-300"],"list.inactiveSelectionBackground":I["color-tv-blue-500"],"keybindingLabel.background":I["color-cold-gray-800"],"keybindingLabel.foreground":I["color-cold-gray-300"],"keybindingLabel.border":I["color-cold-gray-700"],"input.foreground":I["color-cold-gray-350"],"textLink.foreground":I["color-tv-blue-500"],"textLink.activeForeground":I["color-tv-blue-600"],"peekViewEditor.matchHighlightBackground":I["color-tan-orange-a800"],"peekViewResult.lineForeground":I["color-cold-gray-350"],"diffEditor.insertedTextBackground":Lt(I["color-iguana-green-a700"],.3),"diffEditor.insertedLineBackground":Lt(I["color-iguana-green-a700"],.15),"diffEditor.removedTextBackground":Lt(I["color-ripe-red-a400"],.3),"diffEditor.removedLineBackground":Lt(I["color-ripe-red-a400"],.15),"editorInlayHint.background":I["color-cold-gray-800"],"editorInlayHint.foreground":I["color-cold-gray-400"],"editorError.foreground":I["color-ripe-red-500"],"editorWarning.foreground":I["color-tan-orange-700"]}},Od=/(\\(?:[\\'"]))|(\\$)|("|$)|($)/g,Pd=/(\\(?:[\\'"]))|(\\$)|('|$)|($)/g,Xn={"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 Ed{constructor(i){Object.defineProperty(this,"_formatter",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_isMac",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_getSignatureParams",{enumerable:!0,configurable:!0,writable:!0,value:(a=[],o)=>{const u=new Map,p=o.indexOf("(");for(let m=p+1,g=p;m<o.length;m++)o[m]!==","&&o[m]!==")"||(g++,u.set(o.slice(g,m),g),g=m+1);return a.map(({name:m,displayType:g,desc:v})=>{const b=[],w=u.get(m),k=w+m.length;return b.push(this._formatter.paragraph(this._formatter.bold(m),this._formatter.italic(g||""))),v&&b.push(Array.isArray(v)?v.join(this._formatter.lineBreak):v),{label:[w,k],documentation:{value:b.join(this._formatter.lineBreak)}}})}}),this._formatter=he,this._isMac=/(Mac|iPhone|iPod|iPad)/i.test(i)}getSignatureHelpValues(i,a){const o=this._getFuncItems(i);if(!(o!=null&&o.length))return null;const u=this._getSequentialSignatures(i,o),p=this._getActiveIndex(o,a);return{signatures:u,...p}}_getActiveIndex(i,a=[]){let o=0,u=-1;a.some(m=>!!m)||(u=a.length-1);const p=a.pop();if(p)for(const[m,g]of i.entries()){const{args:v}=g;if(v&&v.length){const b=v.findIndex(w=>w.name===p);if(b!=-1){u=b,o=m;break}}}return{activeParameter:u,activeSignature:o}}_getFuncItems(i){return Rt.functions.get(i)||Mt.userFuncs.get(i)||Mt.methodFuncs.get(i)}_getSequentialSignatures(i,a){return a.map(o=>{const u=this._getSignatureLabel(i,o);return{label:u,documentation:this._getFormattedSignatureDocumentation(o),parameters:this._getSignatureParams(o.args,u)}})}_getSignatureLabel(i,a,o=!1){const u=[i];return o&&u.push("<type>"),a.args&&(u.push("("),u.push(a.args.map(({name:p})=>p).join(", ")),u.push(")")),u.join("")}_getFormattedSignatureDocumentation(i){const{desc:a}=i,o=[];a&&o.push(Array.isArray(a)?a.join(this._formatter.lineBreak):a);const u=`${this._formatter.code(this._isMac?"⌘":"Ctrl")} +
|
132
132
|
${this._formatter.code("Shift")} +
|
133
|
-
${this._formatter.code("Space")}`;return o.push(this._formatter.lineBreak),o.push(this._formatter.italic(`${u} ${Ie.toTriggerParameterHints}`)),{value:this._formatter.paragraph(...o)}}}const Rd=new Ed(window.navigator.userAgent);class Md{constructor(){Object.defineProperty(this,"_colors",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._colors=Xn}getDocumentColors(i){const a=[];return i.forEach(o=>{const{range:u}=o;let{matches:p}=o;p=p||[];const m=p[0]||"";let g=null;this._isHexToken(m)?g=this._hexToColor(m):this._isRgbColor(m)?g=this._rgbToColor(m):this._colors[m]?g=this._hexToColor(this._colors[m]):this._isColorExpression(m)&&p[1]&&p[6]&&(g=this._extractNewExpression(p[1],Number(p[6]))),g&&a.push({color:g,range:u})}),a}get _defultColorsRegStr(){return Object.keys(Xn).reduce((i,a)=>`${i}|${a}`,"")}get colorMatchesRegStr(){const i=`#[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*(${i})\\s*,\\s*(\\d+)\\s*\\)|${i}`}getDocumentColorPresentations(i,{color:a,range:o}){const u=i.getValueInRange(o);if(this._isHexToken(u)||this._colors[u])return[{label:this._colorRgbRepresentation(a)},{label:this._colorHexRepresentation(a)}];if(this._isColorExpression(u)||this._isRgbColor(u)){const p=this._isColorExpression(u)?this._colorNewRepresentation(a):this._colorRgbRepresentation(a);if(!p)return[];const m=this._colorHexRepresentation(a);return[{label:p,textEdit:{text:p,range:o}},{label:m,textEdit:{text:m,range:o}}]}return null}_hexFromNumber(i){const a=this._denormalize(i).toString(16);return a.length===1?`0${a}`:a}_normalize(i){return i/255}_denormalize(i){return Math.round(255*i)}_normalizeAlpha(i){return(100-i)/100}_denormalizeAlpha(i){return 100-Math.round(100*i)}_extractNewExpression(i,a){let o=null;return this._isHexToken(i)?o=this._hexToColor(i):this._isRgbColor(i)?o=this._rgbToColor(i):this._colors[i]&&(o=this._hexToColor(this._colors[i])),o&&!Number.isNaN(a)?{...o,alpha:this._normalizeAlpha(a)}:null}_colorHexRepresentation(i){const a=this._hexFromNumber(i.red),o=this._hexFromNumber(i.green),u=this._hexFromNumber(i.blue),p=this._hexFromNumber(i.alpha);return`#${a}${o}${u}${i.alpha===1?"":p}`}_colorRgbRepresentation(i){const a=this._denormalize(i.red),o=this._denormalize(i.green),u=this._denormalize(i.blue),p=this._denormalizeAlpha(i.alpha),m=[a,o,u];return p>0&&m.push(p),`color.rgb(${m.join(", ")})`}_colorNewRepresentation(i){const a={...i,alpha:1};return`color.new(${this._colorHexRepresentation(a)}, ${this._denormalizeAlpha(i.alpha)})`}_hexToColor(i){const a=(i=this._isHexToken(i)?i.slice(1):i).length===3||i.length===4,o=a?`${i.slice(0,1)}${i.slice(0,1)}`:i.slice(0,2),u=a?`${i.slice(1,2)}${i.slice(1,2)}`:i.slice(2,4),p=a?`${i.slice(2,3)}${i.slice(2,3)}`:i.slice(4,6),m=(a?`${i.slice(3,4)}${i.slice(3,4)}`:i.slice(6,8))||"ff";return{red:this._normalize(parseInt(o,16)),green:this._normalize(parseInt(u,16)),blue:this._normalize(parseInt(p,16)),alpha:this._normalize(parseInt(m,16))}}_rgbToColor(i){const a=i.replace(/[^\d,]/g,"").split(","),o=this._normalize(Number(a[0])),u=this._normalize(Number(a[1])),p=this._normalize(Number(a[2])),m=this._normalizeAlpha(Number(a[3]))||1;return isNaN(o)||isNaN(u)||isNaN(p)?null:{red:o,green:u,blue:p,alpha:m}}_isHexToken(i){return i.charAt(0)==="#"}_isRgbColor(i){return i.startsWith("color.rgb")}_isColorExpression(i){return i.startsWith("color.new")}}const ei=new Md;function Ld(s,i){var z;const a={startLineNumber:i.lineNumber,startColumn:1,endLineNumber:i.lineNumber,endColumn:i.column},o=s.getValueInRange(a),u=o.match(/([\w.]+)$/)||[],p=(z=u[0])==null?void 0:z.match(/.*[^\w.]+([\w.]+)(?=\.)|([\w.]+)(?=\.)/),m=p?p[1]?p[1]:p[2]?p[2]:void 0:void 0,g=s.getWordUntilPosition(i),v=la.parseCurrentInputFunc(o),b={startLineNumber:i.lineNumber,endLineNumber:i.lineNumber,startColumn:g.startColumn,endColumn:g.endColumn},w=s.getValueInRange({...b,startColumn:g.endColumn,endColumn:g.endColumn+1});Mt.nextIsBracket=w==="(";let k=Yn(Mt.getSuggestions(m)||[],b);if(u[0]==="."&&(k=[]),v&&!m&&!/=\s*\w+$/.test(o)){const E=Yn(Mt.getArgSuggestions(v.funcName)||[],b);k=k.concat(E)}return{suggestions:k||[]}}function Fd(s){if(s.kind!==1)return s;const{originInsertText:i}=s;return Mt.nextIsBracket?s.insertText=i:s.insertText=i+Mt.bracketsPostfix,s}function Bd(s,i){const a=la.parseLineContentFuncVar(i.column,i.lineNumber,s,i);if(a&&a.docValue.length){const o=kd(a.docValue,a.index,a.isBuildIn);if(o)return{contents:[{value:o}]}}return{contents:[]}}function jd(s,i){var k,z;const a={startLineNumber:i.lineNumber,endLineNumber:i.lineNumber,startColumn:1,endColumn:i.column},o=s.getValueInRange(a),u=s.findMatches(String(Od),a,!0,!1,null,!0),p=s.findMatches(String(Pd),a,!0,!1,null,!0),m=(k=u.pop())==null?void 0:k.matches,g=(z=p.pop())==null?void 0:z.matches;let v=!1;u.length%2===0?m&&m[0]==='"'&&(v=!0):m&&!m[0]&&(v=!0);let b=!1;p.length%2===0?g&&g[0]==="'"&&(b=!0):g&&!g[0]&&(b=!0);const w=la.parseCurrentInputFuncAndArg(o,b,v);if(w){const{funcName:E,args:P}=w,j=Rd.getSignatureHelpValues(E,P);if(j)return{value:j,dispose:()=>{console.log("dispose")}}}return null}function Ud(s){let i=s.findMatches(ei.colorMatchesRegStr,!0,!0,!1,null,!0);return i=i.filter(o=>{const u=s.getValueInRange({...o.range,startColumn:0});return u.indexOf("//")===-1||u.indexOf("//")>o.range.endColumn}),ei.getDocumentColors(i)}function Wd(s,i){return ei.getDocumentColorPresentations(s,i)||[]}function Hd(s,i,a){const o=s.getModel(),u=la.parseLineContentFuncVar(a.startColumn+1,a.startLineNumber,o);if(!u||u.isBuildIn||!u.docValue||!u.docValue[0].pos)return!0;const{lineNumber:p,column:m}=u.docValue[0].pos,g={startLineNumber:p,endLineNumber:p,startColumn:m,endColumn:m};return s.revealRangeInCenterIfOutsideViewport(g),s.setSelection(g),!0}function $d(s,i){return{uri:s.uri,range:{startLineNumber:i.lineNumber,endLineNumber:i.lineNumber,startColumn:i.column-1,endColumn:i.column-1}}}function Yn(s,i){return s.map(a=>(a.range=i,a))}var ca={},ua=cu;if(process.env.NODE_ENV==="production")ca.createRoot=ua.createRoot,ca.hydrateRoot=ua.hydrateRoot;else{var $a=ua.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;ca.createRoot=function(s,i){$a.usingClientEntryPoint=!0;try{return ua.createRoot(s,i)}finally{$a.usingClientEntryPoint=!1}},ca.hydrateRoot=function(s,i,a){$a.usingClientEntryPoint=!0;try{return ua.hydrateRoot(s,i,a)}finally{$a.usingClientEntryPoint=!1}}}var $e;(function(s){s.added="added",s.removed="removed",s.modified="modified"})($e||($e={}));const Gd=(s,i)=>{const{close:a,retracement:o}=s,[u,p]=M.useState("modified");return M.useImperativeHandle(i,()=>({updateType(m){p(m)}})),nt.jsxs("div",{className:`content-popup content-${u}-popup`,children:[nt.jsx("div",{className:`triangle-popup triangle-${u}-popup`}),nt.jsxs("div",{className:`header-popup header-${u}-popup`,children:[nt.jsx("div",{className:"title-popup",children:"Local working changes"}),nt.jsx("div",{className:"actions-popup",children:nt.jsx("div",{onClick:a,"data-role":"button",className:"button-popup","data-name":"button-close-diff",children:nt.jsx("span",{className:"icon-popup",role:"img",children:nt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 12",width:"12",height:"12",children:nt.jsx("path",{stroke:"currentColor",strokeWidth:"1.2",d:"m1.5 1.5 9 9m0-9-9 9"})})})})})]}),nt.jsx("div",{id:"diffEditorContainer",style:{height:"100%"}})]})},Xd=M.forwardRef(Gd);class Yd{constructor(i,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=i,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)),ca.createRoot(this._domNode).render(nt.jsx(Xd,{ref:u=>this._content=u,close:()=>this._close(),retracement:this._retracement})),this._top=0}_close(){this._domNode.style.display="none"}_retracement(){}getId(){return this._id}getDomNode(){return this._domNode}getPosition(){return null}show(i,a,o){var u;this._top=a,(u=this._content)==null||u.updateType(o),this._domNode.style.top=`${i}px`,this._domNode.style.display="block"}hide(){this._domNode.style.display="none"}scrollChangeHandler(i){const a=i.scrollTop;this._domNode.style.top=`${this._top-a}px`}}function ir(){}ir.prototype={diff:function(i,a){var o,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},p=u.callback;typeof u=="function"&&(p=u,u={}),this.options=u;var m=this;function g(B){return p?(setTimeout(function(){p(void 0,B)},0),!0):B}i=this.castInput(i),a=this.castInput(a),i=this.removeEmpty(this.tokenize(i)),a=this.removeEmpty(this.tokenize(a));var v=a.length,b=i.length,w=1,k=v+b;u.maxEditLength&&(k=Math.min(k,u.maxEditLength));var z=(o=u.timeout)!==null&&o!==void 0?o:1/0,E=Date.now()+z,P=[{oldPos:-1,lastComponent:void 0}],j=this.extractCommon(P[0],a,i,0);if(P[0].oldPos+1>=b&&j+1>=v)return g([{value:this.join(a),count:a.length}]);var ee=-1/0,me=1/0;function Y(){for(var B=Math.max(ee,-w);B<=Math.min(me,w);B+=2){var G=void 0,ie=P[B-1],J=P[B+1];ie&&(P[B-1]=void 0);var Pe=!1;if(J){var be=J.oldPos-B;Pe=J&&0<=be&&be<v}var ne=ie&&ie.oldPos+1<b;if(!Pe&&!ne){P[B]=void 0;continue}if(!ne||Pe&&ie.oldPos+1<J.oldPos?G=m.addToPath(J,!0,void 0,0):G=m.addToPath(ie,void 0,!0,1),j=m.extractCommon(G,a,i,B),G.oldPos+1>=b&&j+1>=v)return g(Vd(m,G.lastComponent,a,i,m.useLongestToken));P[B]=G,G.oldPos+1>=b&&(me=Math.min(me,B-1)),j+1>=v&&(ee=Math.max(ee,B+1))}w++}if(p)(function B(){setTimeout(function(){if(w>k||Date.now()>E)return p();Y()||B()},0)})();else for(;w<=k&&Date.now()<=E;){var F=Y();if(F)return F}},addToPath:function(i,a,o,u){var p=i.lastComponent;return p&&p.added===a&&p.removed===o?{oldPos:i.oldPos+u,lastComponent:{count:p.count+1,added:a,removed:o,previousComponent:p.previousComponent}}:{oldPos:i.oldPos+u,lastComponent:{count:1,added:a,removed:o,previousComponent:p}}},extractCommon:function(i,a,o,u){for(var p=a.length,m=o.length,g=i.oldPos,v=g-u,b=0;v+1<p&&g+1<m&&this.equals(a[v+1],o[g+1]);)v++,g++,b++;return b&&(i.lastComponent={count:b,previousComponent:i.lastComponent}),i.oldPos=g,v},equals:function(i,a){return this.options.comparator?this.options.comparator(i,a):i===a||this.options.ignoreCase&&i.toLowerCase()===a.toLowerCase()},removeEmpty:function(i){for(var a=[],o=0;o<i.length;o++)i[o]&&a.push(i[o]);return a},castInput:function(i){return i},tokenize:function(i){return i.split("")},join:function(i){return i.join("")}};function Vd(s,i,a,o,u){for(var p=[],m;i;)p.push(i),m=i.previousComponent,delete i.previousComponent,i=m;p.reverse();for(var g=0,v=p.length,b=0,w=0;g<v;g++){var k=p[g];if(k.removed){if(k.value=s.join(o.slice(w,w+k.count)),w+=k.count,g&&p[g-1].added){var E=p[g-1];p[g-1]=p[g],p[g]=E}}else{if(!k.added&&u){var z=a.slice(b,b+k.count);z=z.map(function(j,ee){var me=o[w+ee];return me.length>j.length?me:j}),k.value=s.join(z)}else k.value=s.join(a.slice(b,b+k.count));b+=k.count,k.added||(w+=k.count)}}var P=p[v-1];return v>1&&typeof P.value=="string"&&(P.added||P.removed)&&s.equals("",P.value)&&(p[v-2].value+=P.value,p.pop()),p}var Vn=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,Kn=/\S/,Qn=new ir;Qn.equals=function(s,i){return this.options.ignoreCase&&(s=s.toLowerCase(),i=i.toLowerCase()),s===i||this.options.ignoreWhitespace&&!Kn.test(s)&&!Kn.test(i)},Qn.tokenize=function(s){for(var i=s.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),a=0;a<i.length-1;a++)!i[a+1]&&i[a+2]&&Vn.test(i[a])&&Vn.test(i[a+2])&&(i[a]+=i[a+2],i.splice(a+1,2),a--);return i};var ti=new ir;ti.tokenize=function(s){this.options.stripTrailingCr&&(s=s.replace(/\r\n/g,`
|
134
|
-
`));var i=[],a=s.split(/(\n|\r\n)/);a[a.length-1]||a.pop();for(var o=0;o<a.length;o++){var u=a[o];o%2&&!this.options.newlineIsToken?i[i.length-1]+=u:(this.options.ignoreWhitespace&&(u=u.trim()),i.push(u))}return i};function Kd(s,i,a){return ti.diff(s,i,a)}var Qd=new ir;Qd.tokenize=function(s){return s.split(/(\S.+?[.!?])(?=\s+|$)/)};var Jd=new ir;Jd.tokenize=function(s){return s.split(/([{}:;,]|\s+)/)};function Ga(s){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ga=function(i){return typeof i}:Ga=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Ga(s)}var Zd=Object.prototype.toString,da=new ir;da.useLongestToken=!0,da.tokenize=ti.tokenize,da.castInput=function(s){var i=this.options,a=i.undefinedReplacement,o=i.stringifyReplacer,u=o===void 0?function(p,m){return typeof m>"u"?a:m}:o;return typeof s=="string"?s:JSON.stringify(ri(s,null,null,u),u," ")},da.equals=function(s,i){return ir.prototype.equals.call(da,s.replace(/,([\r\n])/g,"$1"),i.replace(/,([\r\n])/g,"$1"))};function ri(s,i,a,o,u){i=i||[],a=a||[],o&&(s=o(u,s));var p;for(p=0;p<i.length;p+=1)if(i[p]===s)return a[p];var m;if(Zd.call(s)==="[object Array]"){for(i.push(s),m=new Array(s.length),a.push(m),p=0;p<s.length;p+=1)m[p]=ri(s[p],i,a,o,u);return i.pop(),a.pop(),m}if(s&&s.toJSON&&(s=s.toJSON()),Ga(s)==="object"&&s!==null){i.push(s),m={},a.push(m);var g=[],v;for(v in s)s.hasOwnProperty(v)&&g.push(v);for(g.sort(),p=0;p<g.length;p+=1)v=g[p],m[v]=ri(s[v],i,a,o,v);i.pop(),a.pop()}else m=s;return m}var ai=new ir;ai.tokenize=function(s){return s.slice()},ai.join=ai.removeEmpty=function(s){return s};class ep{constructor(i,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=i,this._monaco=a,this._originalModel=this._monaco.editor.createModel("",Ye),this._oldDecorations=[],this._init(),this._eventListening(o)}_init(){var i;this._changeEvent(),this._didChangeListener=(i=this._editor.getModel())==null?void 0:i.onDidChangeContent(()=>this._changeEvent())}update(i){var a,o;this._originalModel=this._monaco.editor.createModel(i,Ye),i!==((a=this._editor.getModel())==null?void 0:a.getValue())&&this._changeEvent(),(o=this._editor.getModel())==null||o.deltaDecorations(this._oldDecorations,[]),this._oldDecorations=[]}dispose(){var i,a,o,u;this._diffPopupWidget&&(this._diffPopupWidget.hide(),this._editor.removeOverlayWidget(this._diffPopupWidget)),(i=this._didChangeListener)==null||i.dispose(),(a=this._onMouseDownListener)==null||a.dispose(),(o=this._editor.getModel())==null||o.deltaDecorations(this._oldDecorations,[]),this._oldDecorations=[],(u=this._diffEditor)==null||u.dispose(),this._diffEditor=void 0}_changesHandle(i){let a=0,o;const u=[];let p=0;for(const m of i){const{added:g,removed:v,count:b=1,value:w}=m;g?o&&o.removed?(a=this._changeHandle(u,a,p,b,$e.modified),p=0,o=void 0):(o&&o.added&&(a=this._changeHandle(u,a,p,o.count||1,$e.added),p=0),o=m):v?o&&o.added?(a=this._changeHandle(u,a,p,o.count||1,$e.modified),p=0,o=void 0):(o&&o.removed&&this._addDecorationList(u,a,$e.removed),o=m):/^\n+$/.test(w)?o&&(o.added||o.removed)?p=b:a+=b:(o&&o.added?(a=this._changeHandle(u,a,p,o.count||1,$e.added),p=0,o=void 0):o&&o.removed&&(this._addDecorationList(u,a,$e.removed),o=void 0),a+=b)}return o&&o.added?a=this._changeHandle(u,a,p,o.count||1,$e.added):o&&o.removed&&this._addDecorationList(u,a,$e.removed),u}_changeHandle(i,a,o,u,p){for(let m=1;m<=u;m++)this._addDecorationList(i,a+m,p);return a+=u+o,a}_addDecorationList(i,a,o){i.push({range:new this._monaco.Range(a,1,a,1),options:{isWholeLine:!0,linesDecorationsClassName:`line-${o} line-decoration_${o}`}})}_changeEvent(){var u,p;const i=Kd(this._originalModel.getValue(),((u=this._editor.getModel())==null?void 0:u.getValue())||""),a=this._changesHandle(i),o=((p=this._editor.getModel())==null?void 0:p.deltaDecorations(this._oldDecorations,a))||[];this._oldDecorations=o}_eventListening(i){const a=new Yd("diff.popup.widget",this._editor);this._editor.addOverlayWidget(a),this._onMouseDownListener=this._editor.onMouseDown(o=>this._onMouseDownHandle(o,i)),this._diffPopupWidget=a}_onMouseDownHandle(i,a){var g,v,b,w,k,z;const o=(g=i.target.element)==null?void 0:g.classList,u=o==null?void 0:o.contains(`line-${$e.added}`),p=o==null?void 0:o.contains(`line-${$e.modified}`),m=o==null?void 0:o.contains(`line-${$e.removed}`);if(u||p||m){const E=((b=(v=i==null?void 0:i.target)==null?void 0:v.position)==null?void 0:b.lineNumber)||0,P=((w=this._editor)==null?void 0:w.getTopForLineNumber(E+1))||0,j=((k=this._editor)==null?void 0:k.getScrollTop())||0,ee=u?$e.added:p?$e.modified:$e.removed;(z=this._diffPopupWidget)==null||z.show(P-j,P,ee),this._diffEditor||(this._diffEditor=this._createDiffEditor(a)),this._diffEditor.setModel({original:this._originalModel,modified:this._editor.getModel()}),this._diffEditor.revealLineInCenter(E+1)}}_createDiffEditor(i="vs-dark"){return this._monaco.editor.createDiffEditor(document.getElementById("diffEditorContainer"),{theme:i,renderSideBySide:!1,quickSuggestions:!1,suggestOnTriggerCharacters:!1,hover:{enabled:!1},parameterHints:{enabled:!1}})}}class tp{constructor(i,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,"_onActionTrigger",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._editor=i,this._monaco=a,this._onActionTrigger=o,this._init()}updateActionTrigger(i){this._onActionTrigger=i}setModelMarkers(i){this._monaco.editor.setModelMarkers(this._editor.getModel(),"owner",i)}addDiffDecorations(){this._decorations||(this._decorations=new ep(this._editor,this._monaco))}removeDiffDecorations(){var i;(i=this._decorations)==null||i.dispose(),this._decorations=void 0}setValue(i){this._editor.setValue(i)}setPosition(i){var a,o,u;(a=this._editor)==null||a.setPosition(i),(o=this._editor)==null||o.revealPositionInCenter(i),(u=this._editor)==null||u.focus()}setOriginalScript(i){var a;(a=this._decorations)==null||a.update(i)}getEditorLayout(){var o;const i=this._editor.getContentHeight(),a=(o=this._editor.getModel())==null?void 0:o.getLineCount();return{contentHeight:i,lineCount:a}}setEditorLayout(i){var a,o;(o=this._editor)==null||o.layout({height:i,width:(a=this._editor)==null?void 0:a.getContainerDomNode().clientWidth})}_init(){this._register(),this._setOptions(),this._addCommands(),this._addActions(),this._setCursorPosition()}_setCursorPosition(){const i=localStorage.getItem(Zs);this._editor.setPosition(i?JSON.parse(i):{lineNumber:1,column:1}),this._editor.focus()}_register(){this._monaco.languages.register({id:Ye}),this._monaco.languages.registerCompletionItemProvider(Ye,{triggerCharacters:["."],provideCompletionItems:Ld,resolveCompletionItem:Fd}),this._monaco.languages.registerHoverProvider(Ye,{provideHover:Bd}),this._monaco.languages.registerSignatureHelpProvider(Ye,{signatureHelpTriggerCharacters:["(",","],provideSignatureHelp:jd}),this._monaco.languages.registerColorProvider(Ye,{provideColorPresentations:Wd,provideDocumentColors:Ud}),this._monaco.editor.registerEditorOpener({openCodeEditor:Hd}),this._monaco.languages.registerDefinitionProvider(Ye,{provideDefinition:$d})}_setOptions(){this._monaco.editor.defineTheme("vs-dark",Gn),this._monaco.editor.defineTheme("vs",$n),this._monaco.languages.setMonarchTokensProvider(Ye,Wn),this._monaco.languages.setLanguageConfiguration(Ye,Hn)}_addCommands(){this._monaco.editor.addCommand({id:"tcc.editor.function",run:(i,a)=>{var o;if(Mt.nextIsBracket){const u=this._editor.getPosition();u&&this._editor.setPosition(Object.assign(u,{column:u.column+1}))}(o=this._editor.getAction(a))==null||o.run()}})}_addActions(){this._editor.addAction({id:"tcc-save-script",label:"保存脚本",keybindings:[this._monaco.KeyMod.CtrlCmd|this._monaco.KeyCode.KeyS],contextMenuGroupId:"9_modification",contextMenuOrder:1,run:()=>{this._onActionTrigger&&this._onActionTrigger(Ae.Actions.Save)}}),this._editor.addAction({id:"tcc-find-replace-line",label:"寻找/替换",keybindings:[this._monaco.KeyMod.CtrlCmd|this._monaco.KeyCode.KeyF],contextMenuGroupId:"9_cutcopypaste",contextMenuOrder:5,run:()=>{this.openFind(),this._onActionTrigger&&this._onActionTrigger(Ae.Actions.Find)}}),this._editor.addAction({id:"tcc-trigger-console-script",label:"切换控制台",keybindings:[this._monaco.KeyMod.CtrlCmd|this._monaco.KeyCode.Backquote],contextMenuGroupId:"9_modification-c",contextMenuOrder:2,run:()=>{this._onActionTrigger&&this._onActionTrigger(Ae.Actions.TriggerConsole)}})}openFind(){this._editor.focus(),this._editor.trigger("click","actions.find",null)}gotoLine(){this._editor.focus(),this._editor.trigger("click","editor.action.gotoLine",null)}onChangeCursorPosition(i){this._changPositionListener&&this._changPositionListener.dispose();const a=localStorage.getItem(Zs);i&&i(a?JSON.parse(a):{lineNumber:1,column:1}),this._changPositionListener=this._editor.onDidChangeCursorPosition(o=>{localStorage.setItem(Zs,JSON.stringify(o.position)),i&&i(o.position)})}}/**
|
133
|
+
${this._formatter.code("Space")}`;return o.push(this._formatter.lineBreak),o.push(this._formatter.italic(`${u} ${Ie.toTriggerParameterHints}`)),{value:this._formatter.paragraph(...o)}}}const Rd=new Ed(window.navigator.userAgent);class Md{constructor(){Object.defineProperty(this,"_colors",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._colors=Xn}getDocumentColors(i){const a=[];return i.forEach(o=>{const{range:u}=o;let{matches:p}=o;p=p||[];const m=p[0]||"";let g=null;this._isHexToken(m)?g=this._hexToColor(m):this._isRgbColor(m)?g=this._rgbToColor(m):this._colors[m]?g=this._hexToColor(this._colors[m]):this._isColorExpression(m)&&p[1]&&p[6]&&(g=this._extractNewExpression(p[1],Number(p[6]))),g&&a.push({color:g,range:u})}),a}get _defultColorsRegStr(){return Object.keys(Xn).reduce((i,a)=>`${i}|${a}`,"")}get colorMatchesRegStr(){const i=`#[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*(${i})\\s*,\\s*(\\d+)\\s*\\)|${i}`}getDocumentColorPresentations(i,{color:a,range:o}){const u=i.getValueInRange(o);if(this._isHexToken(u)||this._colors[u])return[{label:this._colorRgbRepresentation(a)},{label:this._colorHexRepresentation(a)}];if(this._isColorExpression(u)||this._isRgbColor(u)){const p=this._isColorExpression(u)?this._colorNewRepresentation(a):this._colorRgbRepresentation(a);if(!p)return[];const m=this._colorHexRepresentation(a);return[{label:p,textEdit:{text:p,range:o}},{label:m,textEdit:{text:m,range:o}}]}return null}_hexFromNumber(i){const a=this._denormalize(i).toString(16);return a.length===1?`0${a}`:a}_normalize(i){return i/255}_denormalize(i){return Math.round(255*i)}_normalizeAlpha(i){return(100-i)/100}_denormalizeAlpha(i){return 100-Math.round(100*i)}_extractNewExpression(i,a){let o=null;return this._isHexToken(i)?o=this._hexToColor(i):this._isRgbColor(i)?o=this._rgbToColor(i):this._colors[i]&&(o=this._hexToColor(this._colors[i])),o&&!Number.isNaN(a)?{...o,alpha:this._normalizeAlpha(a)}:null}_colorHexRepresentation(i){const a=this._hexFromNumber(i.red),o=this._hexFromNumber(i.green),u=this._hexFromNumber(i.blue),p=this._hexFromNumber(i.alpha);return`#${a}${o}${u}${i.alpha===1?"":p}`}_colorRgbRepresentation(i){const a=this._denormalize(i.red),o=this._denormalize(i.green),u=this._denormalize(i.blue),p=this._denormalizeAlpha(i.alpha),m=[a,o,u];return p>0&&m.push(p),`color.rgb(${m.join(", ")})`}_colorNewRepresentation(i){const a={...i,alpha:1};return`color.new(${this._colorHexRepresentation(a)}, ${this._denormalizeAlpha(i.alpha)})`}_hexToColor(i){const a=(i=this._isHexToken(i)?i.slice(1):i).length===3||i.length===4,o=a?`${i.slice(0,1)}${i.slice(0,1)}`:i.slice(0,2),u=a?`${i.slice(1,2)}${i.slice(1,2)}`:i.slice(2,4),p=a?`${i.slice(2,3)}${i.slice(2,3)}`:i.slice(4,6),m=(a?`${i.slice(3,4)}${i.slice(3,4)}`:i.slice(6,8))||"ff";return{red:this._normalize(parseInt(o,16)),green:this._normalize(parseInt(u,16)),blue:this._normalize(parseInt(p,16)),alpha:this._normalize(parseInt(m,16))}}_rgbToColor(i){const a=i.replace(/[^\d,]/g,"").split(","),o=this._normalize(Number(a[0])),u=this._normalize(Number(a[1])),p=this._normalize(Number(a[2])),m=this._normalizeAlpha(Number(a[3]))||1;return isNaN(o)||isNaN(u)||isNaN(p)?null:{red:o,green:u,blue:p,alpha:m}}_isHexToken(i){return i.charAt(0)==="#"}_isRgbColor(i){return i.startsWith("color.rgb")}_isColorExpression(i){return i.startsWith("color.new")}}const ei=new Md;function Ld(s,i){var z;const a={startLineNumber:i.lineNumber,startColumn:1,endLineNumber:i.lineNumber,endColumn:i.column},o=s.getValueInRange(a),u=o.match(/([\w.]+)$/)||[],p=(z=u[0])==null?void 0:z.match(/.*[^\w.]+([\w.]+)(?=\.)|([\w.]+)(?=\.)/),m=p?p[1]?p[1]:p[2]?p[2]:void 0:void 0,g=s.getWordUntilPosition(i),v=la.parseCurrentInputFunc(o),b={startLineNumber:i.lineNumber,endLineNumber:i.lineNumber,startColumn:g.startColumn,endColumn:g.endColumn},w=s.getValueInRange({...b,startColumn:g.endColumn,endColumn:g.endColumn+1});Mt.nextIsBracket=w==="(";let k=Yn(Mt.getSuggestions(m)||[],b);if(u[0]==="."&&(k=[]),v&&!m&&!/=\s*\w+$/.test(o)){const E=Yn(Mt.getArgSuggestions(v.funcName)||[],b);k=k.concat(E)}return{suggestions:k||[]}}function Fd(s){if(s.kind!==1)return s;const{originInsertText:i}=s;return Mt.nextIsBracket?s.insertText=i:s.insertText=i+Mt.bracketsPostfix,s}function Bd(s,i){const a=la.parseLineContentFuncVar(i.column,i.lineNumber,s,i);if(a&&a.docValue.length){const o=kd(a.docValue,a.index,a.isBuildIn);if(o)return{contents:[{value:o}]}}return{contents:[]}}function jd(s,i){var k,z;const a={startLineNumber:i.lineNumber,endLineNumber:i.lineNumber,startColumn:1,endColumn:i.column},o=s.getValueInRange(a),u=s.findMatches(String(Od),a,!0,!1,null,!0),p=s.findMatches(String(Pd),a,!0,!1,null,!0),m=(k=u.pop())==null?void 0:k.matches,g=(z=p.pop())==null?void 0:z.matches;let v=!1;u.length%2===0?m&&m[0]==='"'&&(v=!0):m&&!m[0]&&(v=!0);let b=!1;p.length%2===0?g&&g[0]==="'"&&(b=!0):g&&!g[0]&&(b=!0);const w=la.parseCurrentInputFuncAndArg(o,b,v);if(w){const{funcName:E,args:P}=w,j=Rd.getSignatureHelpValues(E,P);if(j)return{value:j,dispose:()=>{console.log("dispose")}}}return null}function Ud(s){let i=s.findMatches(ei.colorMatchesRegStr,!0,!0,!1,null,!0);return i=i.filter(o=>{const u=s.getValueInRange({...o.range,startColumn:0});return u.indexOf("//")===-1||u.indexOf("//")>o.range.endColumn}),ei.getDocumentColors(i)}function Wd(s,i){return ei.getDocumentColorPresentations(s,i)||[]}function Hd(s,i,a){const o=s.getModel(),u=la.parseLineContentFuncVar(a.startColumn+1,a.startLineNumber,o);if(!u||u.isBuildIn||!u.docValue||!u.docValue[0].pos)return!0;const{lineNumber:p,column:m}=u.docValue[0].pos,g={startLineNumber:p,endLineNumber:p,startColumn:m,endColumn:m};return s.revealRangeInCenterIfOutsideViewport(g),s.setSelection(g),!0}function $d(s,i){return{uri:s.uri,range:{startLineNumber:i.lineNumber,endLineNumber:i.lineNumber,startColumn:i.column-1,endColumn:i.column-1}}}function Yn(s,i){return s.map(a=>(a.range=i,a))}var ca={},ua=cu;if(process.env.NODE_ENV==="production")ca.createRoot=ua.createRoot,ca.hydrateRoot=ua.hydrateRoot;else{var $a=ua.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;ca.createRoot=function(s,i){$a.usingClientEntryPoint=!0;try{return ua.createRoot(s,i)}finally{$a.usingClientEntryPoint=!1}},ca.hydrateRoot=function(s,i,a){$a.usingClientEntryPoint=!0;try{return ua.hydrateRoot(s,i,a)}finally{$a.usingClientEntryPoint=!1}}}var $e;(function(s){s.added="added",s.removed="removed",s.modified="modified"})($e||($e={}));const Gd=(s,i)=>{const{close:a,retracement:o}=s,[u,p]=M.useState("modified");return M.useImperativeHandle(i,()=>({updateType(m){p(m)}})),nt.jsxs("div",{className:`content-popup content-${u}-popup`,children:[nt.jsx("div",{className:`triangle-popup triangle-${u}-popup`}),nt.jsxs("div",{className:`header-popup header-${u}-popup`,children:[nt.jsx("div",{className:"title-popup",children:"Local working changes"}),nt.jsx("div",{className:"actions-popup",children:nt.jsx("div",{onClick:a,"data-role":"button",className:"button-popup","data-name":"button-close-diff",children:nt.jsx("span",{className:"icon-popup",role:"img",children:nt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 12",width:"12",height:"12",children:nt.jsx("path",{stroke:"currentColor",strokeWidth:"1.2",d:"m1.5 1.5 9 9m0-9-9 9"})})})})})]}),nt.jsx("div",{id:"diffEditorContainer",style:{height:"100%"}})]})},Xd=M.forwardRef(Gd);class Yd{constructor(i,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=i,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)),ca.createRoot(this._domNode).render(nt.jsx(Xd,{ref:u=>this._content=u,close:()=>this._close(),retracement:this._retracement})),this._top=0}_close(){this._domNode.style.display="none"}_retracement(){}getId(){return this._id}getDomNode(){return this._domNode}getPosition(){return null}show(i,a,o){var u;this._top=a,(u=this._content)==null||u.updateType(o),this._domNode.style.top=`${i}px`,this._domNode.style.display="block"}hide(){this._domNode.style.display="none"}scrollChangeHandler(i){const a=i.scrollTop;this._domNode.style.top=`${this._top-a}px`}}function ir(){}ir.prototype={diff:function(i,a){var o,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},p=u.callback;typeof u=="function"&&(p=u,u={}),this.options=u;var m=this;function g(B){return p?(setTimeout(function(){p(void 0,B)},0),!0):B}i=this.castInput(i),a=this.castInput(a),i=this.removeEmpty(this.tokenize(i)),a=this.removeEmpty(this.tokenize(a));var v=a.length,b=i.length,w=1,k=v+b;u.maxEditLength&&(k=Math.min(k,u.maxEditLength));var z=(o=u.timeout)!==null&&o!==void 0?o:1/0,E=Date.now()+z,P=[{oldPos:-1,lastComponent:void 0}],j=this.extractCommon(P[0],a,i,0);if(P[0].oldPos+1>=b&&j+1>=v)return g([{value:this.join(a),count:a.length}]);var re=-1/0,me=1/0;function Y(){for(var B=Math.max(re,-w);B<=Math.min(me,w);B+=2){var G=void 0,ie=P[B-1],J=P[B+1];ie&&(P[B-1]=void 0);var Pe=!1;if(J){var be=J.oldPos-B;Pe=J&&0<=be&&be<v}var ne=ie&&ie.oldPos+1<b;if(!Pe&&!ne){P[B]=void 0;continue}if(!ne||Pe&&ie.oldPos+1<J.oldPos?G=m.addToPath(J,!0,void 0,0):G=m.addToPath(ie,void 0,!0,1),j=m.extractCommon(G,a,i,B),G.oldPos+1>=b&&j+1>=v)return g(Vd(m,G.lastComponent,a,i,m.useLongestToken));P[B]=G,G.oldPos+1>=b&&(me=Math.min(me,B-1)),j+1>=v&&(re=Math.max(re,B+1))}w++}if(p)(function B(){setTimeout(function(){if(w>k||Date.now()>E)return p();Y()||B()},0)})();else for(;w<=k&&Date.now()<=E;){var F=Y();if(F)return F}},addToPath:function(i,a,o,u){var p=i.lastComponent;return p&&p.added===a&&p.removed===o?{oldPos:i.oldPos+u,lastComponent:{count:p.count+1,added:a,removed:o,previousComponent:p.previousComponent}}:{oldPos:i.oldPos+u,lastComponent:{count:1,added:a,removed:o,previousComponent:p}}},extractCommon:function(i,a,o,u){for(var p=a.length,m=o.length,g=i.oldPos,v=g-u,b=0;v+1<p&&g+1<m&&this.equals(a[v+1],o[g+1]);)v++,g++,b++;return b&&(i.lastComponent={count:b,previousComponent:i.lastComponent}),i.oldPos=g,v},equals:function(i,a){return this.options.comparator?this.options.comparator(i,a):i===a||this.options.ignoreCase&&i.toLowerCase()===a.toLowerCase()},removeEmpty:function(i){for(var a=[],o=0;o<i.length;o++)i[o]&&a.push(i[o]);return a},castInput:function(i){return i},tokenize:function(i){return i.split("")},join:function(i){return i.join("")}};function Vd(s,i,a,o,u){for(var p=[],m;i;)p.push(i),m=i.previousComponent,delete i.previousComponent,i=m;p.reverse();for(var g=0,v=p.length,b=0,w=0;g<v;g++){var k=p[g];if(k.removed){if(k.value=s.join(o.slice(w,w+k.count)),w+=k.count,g&&p[g-1].added){var E=p[g-1];p[g-1]=p[g],p[g]=E}}else{if(!k.added&&u){var z=a.slice(b,b+k.count);z=z.map(function(j,re){var me=o[w+re];return me.length>j.length?me:j}),k.value=s.join(z)}else k.value=s.join(a.slice(b,b+k.count));b+=k.count,k.added||(w+=k.count)}}var P=p[v-1];return v>1&&typeof P.value=="string"&&(P.added||P.removed)&&s.equals("",P.value)&&(p[v-2].value+=P.value,p.pop()),p}var Vn=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,Kn=/\S/,Qn=new ir;Qn.equals=function(s,i){return this.options.ignoreCase&&(s=s.toLowerCase(),i=i.toLowerCase()),s===i||this.options.ignoreWhitespace&&!Kn.test(s)&&!Kn.test(i)},Qn.tokenize=function(s){for(var i=s.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),a=0;a<i.length-1;a++)!i[a+1]&&i[a+2]&&Vn.test(i[a])&&Vn.test(i[a+2])&&(i[a]+=i[a+2],i.splice(a+1,2),a--);return i};var ti=new ir;ti.tokenize=function(s){this.options.stripTrailingCr&&(s=s.replace(/\r\n/g,`
|
134
|
+
`));var i=[],a=s.split(/(\n|\r\n)/);a[a.length-1]||a.pop();for(var o=0;o<a.length;o++){var u=a[o];o%2&&!this.options.newlineIsToken?i[i.length-1]+=u:(this.options.ignoreWhitespace&&(u=u.trim()),i.push(u))}return i};function Kd(s,i,a){return ti.diff(s,i,a)}var Qd=new ir;Qd.tokenize=function(s){return s.split(/(\S.+?[.!?])(?=\s+|$)/)};var Jd=new ir;Jd.tokenize=function(s){return s.split(/([{}:;,]|\s+)/)};function Ga(s){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ga=function(i){return typeof i}:Ga=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Ga(s)}var Zd=Object.prototype.toString,da=new ir;da.useLongestToken=!0,da.tokenize=ti.tokenize,da.castInput=function(s){var i=this.options,a=i.undefinedReplacement,o=i.stringifyReplacer,u=o===void 0?function(p,m){return typeof m>"u"?a:m}:o;return typeof s=="string"?s:JSON.stringify(ri(s,null,null,u),u," ")},da.equals=function(s,i){return ir.prototype.equals.call(da,s.replace(/,([\r\n])/g,"$1"),i.replace(/,([\r\n])/g,"$1"))};function ri(s,i,a,o,u){i=i||[],a=a||[],o&&(s=o(u,s));var p;for(p=0;p<i.length;p+=1)if(i[p]===s)return a[p];var m;if(Zd.call(s)==="[object Array]"){for(i.push(s),m=new Array(s.length),a.push(m),p=0;p<s.length;p+=1)m[p]=ri(s[p],i,a,o,u);return i.pop(),a.pop(),m}if(s&&s.toJSON&&(s=s.toJSON()),Ga(s)==="object"&&s!==null){i.push(s),m={},a.push(m);var g=[],v;for(v in s)s.hasOwnProperty(v)&&g.push(v);for(g.sort(),p=0;p<g.length;p+=1)v=g[p],m[v]=ri(s[v],i,a,o,v);i.pop(),a.pop()}else m=s;return m}var ai=new ir;ai.tokenize=function(s){return s.slice()},ai.join=ai.removeEmpty=function(s){return s};class ep{constructor(i,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=i,this._monaco=a,this._originalModel=this._monaco.editor.createModel(o,Ye),this._oldDecorations=[],this._init(),this._eventListening()}_init(){var i;this._changeEvent(),this._didChangeListener=(i=this._editor.getModel())==null?void 0:i.onDidChangeContent(()=>this._changeEvent())}update(i){var a,o;if(this._originalModel=this._monaco.editor.createModel(i,Ye),i!==((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 i,a,o,u;this._diffPopupWidget&&(this._diffPopupWidget.hide(),this._editor.removeOverlayWidget(this._diffPopupWidget)),(i=this._didChangeListener)==null||i.dispose(),(a=this._onMouseDownListener)==null||a.dispose(),(o=this._editor.getModel())==null||o.deltaDecorations(this._oldDecorations,[]),this._oldDecorations=[],(u=this._diffEditor)==null||u.dispose(),this._diffEditor=void 0}_changesHandle(i){let a=0,o;const u=[];let p=0;for(const m of i){const{added:g,removed:v,count:b=1,value:w}=m;g?o&&o.removed?(a=this._changeHandle(u,a,p,b,$e.modified),p=0,o=void 0):(o&&o.added&&(a=this._changeHandle(u,a,p,o.count||1,$e.added),p=0),o=m):v?o&&o.added?(a=this._changeHandle(u,a,p,o.count||1,$e.modified),p=0,o=void 0):(o&&o.removed&&this._addDecorationList(u,a,$e.removed),o=m):/^\n+$/.test(w)?o&&(o.added||o.removed)?p=b:a+=b:(o&&o.added?(a=this._changeHandle(u,a,p,o.count||1,$e.added),p=0,o=void 0):o&&o.removed&&(this._addDecorationList(u,a,$e.removed),o=void 0),a+=b)}return o&&o.added?a=this._changeHandle(u,a,p,o.count||1,$e.added):o&&o.removed&&this._addDecorationList(u,a,$e.removed),u}_changeHandle(i,a,o,u,p){for(let m=1;m<=u;m++)this._addDecorationList(i,a+m,p);return a+=u+o,a}_addDecorationList(i,a,o){i.push({range:new this._monaco.Range(a,1,a,1),options:{isWholeLine:!0,linesDecorationsClassName:`line-${o} line-decoration_${o}`}})}_changeEvent(){var u,p;const i=Kd(this._originalModel.getValue(),((u=this._editor.getModel())==null?void 0:u.getValue())||""),a=this._changesHandle(i),o=((p=this._editor.getModel())==null?void 0:p.deltaDecorations(this._oldDecorations,a))||[];this._oldDecorations=o}_eventListening(){const i=new Yd("diff.popup.widget",this._editor);this._editor.addOverlayWidget(i),this._onMouseDownListener=this._editor.onMouseDown(a=>this._onMouseDownHandle(a)),this._diffPopupWidget=i}_onMouseDownHandle(i){var m,g,v,b,w,k;const a=(m=i.target.element)==null?void 0:m.classList,o=a==null?void 0:a.contains(`line-${$e.added}`),u=a==null?void 0:a.contains(`line-${$e.modified}`),p=a==null?void 0:a.contains(`line-${$e.removed}`);if(o||u||p){const z=((v=(g=i==null?void 0:i.target)==null?void 0:g.position)==null?void 0:v.lineNumber)||0,E=((b=this._editor)==null?void 0:b.getTopForLineNumber(z+1))||0,P=((w=this._editor)==null?void 0:w.getScrollTop())||0,j=o?$e.added:u?$e.modified:$e.removed;(k=this._diffPopupWidget)==null||k.show(E-P,E,j),this._diffEditor||(this._diffEditor=this._createDiffEditor()),this._diffEditor.setModel({original:this._originalModel,modified:this._editor.getModel()}),this._diffEditor.revealLineInCenter(z+1)}}_createDiffEditor(){return this._monaco.editor.createDiffEditor(document.getElementById("diffEditorContainer"),{renderSideBySide:!1,quickSuggestions:!1,suggestOnTriggerCharacters:!1,hover:{enabled:!1},parameterHints:{enabled:!1}})}}class tp{constructor(i,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}),this._editor=i,this._monaco=a,this._onActionTrigger=o,this._init()}updateActionTrigger(i){this._onActionTrigger=i}setModelMarkers(i){this._monaco.editor.setModelMarkers(this._editor.getModel(),"owner",i)}addDiffDecorations(){this._decorations||(this._decorations=new ep(this._editor,this._monaco,this._originalScript))}removeDiffDecorations(){var i;(i=this._decorations)==null||i.dispose(),this._decorations=void 0}setValue(i){this._editor.setValue(i)}setPosition(i){var a,o,u;(a=this._editor)==null||a.setPosition(i),(o=this._editor)==null||o.revealPositionInCenter(i),(u=this._editor)==null||u.focus()}setOriginalScript(i){var a;this._originalScript=i,(a=this._decorations)==null||a.update(i)}getEditorLayout(){var o;const i=this._editor.getContentHeight(),a=(o=this._editor.getModel())==null?void 0:o.getLineCount();return{contentHeight:i,lineCount:a}}setEditorLayout(i){var a,o;(o=this._editor)==null||o.layout({height:i,width:(a=this._editor)==null?void 0:a.getContainerDomNode().clientWidth})}_init(){this._register(),this._setOptions(),this._addCommands(),this._addActions(),this._setCursorPosition()}_setCursorPosition(){const i=localStorage.getItem(Zs);this._editor.setPosition(i?JSON.parse(i):{lineNumber:1,column:1}),this._editor.focus()}_register(){this._monaco.languages.register({id:Ye}),this._monaco.languages.registerCompletionItemProvider(Ye,{triggerCharacters:["."],provideCompletionItems:Ld,resolveCompletionItem:Fd}),this._monaco.languages.registerHoverProvider(Ye,{provideHover:Bd}),this._monaco.languages.registerSignatureHelpProvider(Ye,{signatureHelpTriggerCharacters:["(",","],provideSignatureHelp:jd}),this._monaco.languages.registerColorProvider(Ye,{provideColorPresentations:Wd,provideDocumentColors:Ud}),this._monaco.editor.registerEditorOpener({openCodeEditor:Hd}),this._monaco.languages.registerDefinitionProvider(Ye,{provideDefinition:$d})}_setOptions(){this._monaco.editor.defineTheme("vs-dark",Gn),this._monaco.editor.defineTheme("vs",$n),this._monaco.languages.setMonarchTokensProvider(Ye,Wn),this._monaco.languages.setLanguageConfiguration(Ye,Hn)}_addCommands(){this._monaco.editor.addCommand({id:"tcc.editor.function",run:(i,a)=>{var o;if(Mt.nextIsBracket){const u=this._editor.getPosition();u&&this._editor.setPosition(Object.assign(u,{column:u.column+1}))}(o=this._editor.getAction(a))==null||o.run()}})}_addActions(){this._editor.addAction({id:"tcc-save-script",label:"保存脚本",keybindings:[this._monaco.KeyMod.CtrlCmd|this._monaco.KeyCode.KeyS],contextMenuGroupId:"9_modification",contextMenuOrder:1,run:()=>{this._onActionTrigger&&this._onActionTrigger(Ae.Actions.Save)}}),this._editor.addAction({id:"tcc-find-replace-line",label:"寻找/替换",keybindings:[this._monaco.KeyMod.CtrlCmd|this._monaco.KeyCode.KeyF],contextMenuGroupId:"9_cutcopypaste",contextMenuOrder:5,run:()=>{this.openFind(),this._onActionTrigger&&this._onActionTrigger(Ae.Actions.Find)}}),this._editor.addAction({id:"tcc-trigger-console-script",label:"切换控制台",keybindings:[this._monaco.KeyMod.CtrlCmd|this._monaco.KeyCode.Backquote],contextMenuGroupId:"9_modification-c",contextMenuOrder:2,run:()=>{this._onActionTrigger&&this._onActionTrigger(Ae.Actions.TriggerConsole)}})}openFind(){this._editor.focus(),this._editor.trigger("click","actions.find",null)}gotoLine(){this._editor.focus(),this._editor.trigger("click","editor.action.gotoLine",null)}onChangeCursorPosition(i){this._changPositionListener&&this._changPositionListener.dispose();const a=localStorage.getItem(Zs);i&&i(a?JSON.parse(a):{lineNumber:1,column:1}),this._changPositionListener=this._editor.onDidChangeCursorPosition(o=>{localStorage.setItem(Zs,JSON.stringify(o.position)),i&&i(o.position)})}}/**
|
135
135
|
* @license
|
136
136
|
* Copyright 2019 Google LLC
|
137
137
|
* SPDX-License-Identifier: Apache-2.0
|
138
|
-
*/const Jn=Symbol("Comlink.proxy"),rp=Symbol("Comlink.endpoint"),ap=Symbol("Comlink.releaseProxy"),si=Symbol("Comlink.finalizer"),Xa=Symbol("Comlink.thrown"),Zn=s=>typeof s=="object"&&s!==null||typeof s=="function",sp={canHandle:s=>Zn(s)&&s[Jn],serialize(s){const{port1:i,port2:a}=new MessageChannel;return to(s,i),[a,[a]]},deserialize(s){return s.start(),ii(s)}},ip={canHandle:s=>Zn(s)&&Xa in s,serialize({value:s}){let i;return s instanceof Error?i={isError:!0,value:{message:s.message,name:s.name,stack:s.stack}}:i={isError:!1,value:s},[i,[]]},deserialize(s){throw s.isError?Object.assign(new Error(s.value.message),s.value):s.value}},eo=new Map([["proxy",sp],["throw",ip]]);function np(s,i){for(const a of s)if(i===a||a==="*"||a instanceof RegExp&&a.test(i))return!0;return!1}function to(s,i=globalThis,a=["*"]){i.addEventListener("message",function o(u){if(!u||!u.data)return;if(!np(a,u.origin)){console.warn(`Invalid origin '${u.origin}' for comlink proxy`);return}const{id:p,type:m,path:g}=Object.assign({path:[]},u.data),v=(u.data.argumentList||[]).map(gr);let b;try{const w=g.slice(0,-1).reduce((z,E)=>z[E],s),k=g.reduce((z,E)=>z[E],s);switch(m){case"GET":b=k;break;case"SET":w[g.slice(-1)[0]]=gr(u.data.value),b=!0;break;case"APPLY":b=k.apply(w,v);break;case"CONSTRUCT":{const z=new k(...v);b=pp(z)}break;case"ENDPOINT":{const{port1:z,port2:E}=new MessageChannel;to(s,E),b=dp(z,[z])}break;case"RELEASE":b=void 0;break;default:return}}catch(w){b={value:w,[Xa]:0}}Promise.resolve(b).catch(w=>({value:w,[Xa]:0})).then(w=>{const[k,z]=Qa(w);i.postMessage(Object.assign(Object.assign({},k),{id:p}),z),m==="RELEASE"&&(i.removeEventListener("message",o),ro(i),si in s&&typeof s[si]=="function"&&s[si]())}).catch(w=>{const[k,z]=Qa({value:new TypeError("Unserializable return value"),[Xa]:0});i.postMessage(Object.assign(Object.assign({},k),{id:p}),z)})}),i.start&&i.start()}function op(s){return s.constructor.name==="MessagePort"}function ro(s){op(s)&&s.close()}function ii(s,i){return ni(s,[],i)}function Ya(s){if(s)throw new Error("Proxy has been released and is not useable")}function ao(s){return Nr(s,{type:"RELEASE"}).then(()=>{ro(s)})}const Va=new WeakMap,Ka="FinalizationRegistry"in globalThis&&new FinalizationRegistry(s=>{const i=(Va.get(s)||0)-1;Va.set(s,i),i===0&&ao(s)});function lp(s,i){const a=(Va.get(i)||0)+1;Va.set(i,a),Ka&&Ka.register(s,i,s)}function cp(s){Ka&&Ka.unregister(s)}function ni(s,i=[],a=function(){}){let o=!1;const u=new Proxy(a,{get(p,m){if(Ya(o),m===ap)return()=>{cp(u),ao(s),o=!0};if(m==="then"){if(i.length===0)return{then:()=>u};const g=Nr(s,{type:"GET",path:i.map(v=>v.toString())}).then(gr);return g.then.bind(g)}return ni(s,[...i,m])},set(p,m,g){Ya(o);const[v,b]=Qa(g);return Nr(s,{type:"SET",path:[...i,m].map(w=>w.toString()),value:v},b).then(gr)},apply(p,m,g){Ya(o);const v=i[i.length-1];if(v===rp)return Nr(s,{type:"ENDPOINT"}).then(gr);if(v==="bind")return ni(s,i.slice(0,-1));const[b,w]=so(g);return Nr(s,{type:"APPLY",path:i.map(k=>k.toString()),argumentList:b},w).then(gr)},construct(p,m){Ya(o);const[g,v]=so(m);return Nr(s,{type:"CONSTRUCT",path:i.map(b=>b.toString()),argumentList:g},v).then(gr)}});return lp(u,s),u}function up(s){return Array.prototype.concat.apply([],s)}function so(s){const i=s.map(Qa);return[i.map(a=>a[0]),up(i.map(a=>a[1]))]}const io=new WeakMap;function dp(s,i){return io.set(s,i),s}function pp(s){return Object.assign(s,{[Jn]:!0})}function Qa(s){for(const[i,a]of eo)if(a.canHandle(s)){const[o,u]=a.serialize(s);return[{type:"HANDLER",name:i,value:o},u]}return[{type:"RAW",value:s},io.get(s)||[]]}function gr(s){switch(s.type){case"HANDLER":return eo.get(s.name).deserialize(s.value);case"RAW":return s.value}}function Nr(s,i,a){return new Promise(o=>{const u=mp();s.addEventListener("message",function p(m){!m.data||!m.data.id||m.data.id!==u||(s.removeEventListener("message",p),o(m.data))}),s.start&&s.start(),s.postMessage(Object.assign({id:u},i),a)})}function mp(){return new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-")}const no=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:Fa&&Fa.src||new URL("trading-vue-editor.umd.cjs",document.baseURI).href),{type:"module",name:"Run TccScript Server"});no.onerror=s=>{console.error(s)};const oo=ii(no),fp=ii(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:Fa&&Fa.src||new URL("trading-vue-editor.umd.cjs",document.baseURI).href),{type:"module",name:"Parser TccScript Server"}));async function lo(s,i=!1){const{functions:a,types:o,constants:u,variables:p,methods:m}=Rt;return await fp(s,i,{functions:Object.fromEntries(a),methods:Object.fromEntries(m),types:Object.fromEntries(o),constants:Object.fromEntries(u),variables:Object.fromEntries(p)})}async function co(s,i,a=!0){return await oo.runScript(s,i,a)}async function yp(s){return await oo.removeScript(s)}function hp(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 Ct;(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"})(Ct||(Ct={}));var uo;(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"})(uo||(uo={}));var po;(function(s){s.dividends="dividends",s.none="none",s.splits="splits"})(po||(po={}));var mo;(function(s){s.freqAll="freq_all",s.freqOncePerBar="freq_once_per_bar",s.freqOncePerBarClose="freq_once_per_bar_close"})(mo||(mo={}));var fo;(function(s){s.gapsOff="gaps_off",s.gapsOn="gaps_on",s.lookaheadOff="lookahead_off",s.lookaheadOn="lookahead_on"})(fo||(fo={}));var yo;(function(s){s.all="all",s.dataWindow="data_window",s.none="none",s.pane="pane",s.priceScale="price_scale",s.statusLine="status_line"})(yo||(yo={}));var ho;(function(s){s.both="both",s.left="left",s.none="none",s.right="right"})(ho||(ho={}));var _o;(function(s){s.inherit="inherit",s.mintick="mintick",s.percent="percent",s.price="price",s.volume="volume"})(_o||(_o={}));var go;(function(s){s.styleDashed="style_dashed",s.styleDotted="style_dotted",s.styleSolid="style_solid"})(go||(go={}));var bo;(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"})(bo||(bo={}));var xo;(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"})(xo||(xo={}));var vo;(function(s){s.abovebar="abovebar",s.absolute="absolute",s.belowbar="belowbar",s.bottom="bottom",s.top="top"})(vo||(vo={}));var wo;(function(s){s.ascending="ascending",s.descending="descending"})(wo||(wo={}));var To;(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"})(To||(To={}));var Io;(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"})(Io||(Io={}));var Do;(function(s){s.left="left",s.none="none",s.right="right"})(Do||(Do={}));var ko;(function(s){s.extended="extended",s.regular="regular"})(ko||(ko={}));var Ao;(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"})(Ao||(Ao={}));var qo;(function(s){s.auto="auto",s.huge="huge",s.large="large",s.normal="normal",s.small="small",s.tiny="tiny"})(qo||(qo={}));var Co;(function(s){s.cash="cash",s.fixed="fixed",s.percentOfEquity="percent_of_equity"})(Co||(Co={}));var So;(function(s){s.cashPerContract="cash_per_contract",s.cashPerOrder="cash_per_order",s.percent="percent"})(So||(So={}));var zo;(function(s){s.all="all",s.long="long",s.short="short"})(zo||(zo={}));var No;(function(s){s.cancel="cancel",s.none="none",s.reduce="reduce"})(No||(No={}));var Oo;(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"})(Oo||(Oo={}));var Po;(function(s){s.bar_index="bar_index",s.bar_time="bar_time"})(Po||(Po={}));var Eo;(function(s){s.abovebar="abovebar",s.belowbar="belowbar",s.price="price"})(Eo||(Eo={}));var Ro;(function(s){s.actual="actual",s.estimate="estimate",s.standardized="standardized"})(Ro||(Ro={}));var Mo;(function(s){s.traditional="Traditional",s.fibonacci="Fibonacci",s.woodie="Woodie",s.classic="Classic",s.dm="DM",s.camarilla="Camarilla"})(Mo||(Mo={})),Ct.SERIES,Ct.SIMPLE,Ct.INPUT,Ct.CONST,Ct.INT,Ct.FLOAT,Ct.BOOL,Ct.COLOR,Ct.STRING;const _p={domReadOnly:!0,scrollBeyondLastLine:!1,readOnly:!0,minimap:{enabled:!1},scrollbar:{vertical:"hidden",horizontal:"hidden",alwaysConsumeMouseWheel:!1},contextmenu:!1};self.MonacoEnvironment={getWorker(){return new hp({name:"Editor Worker"})}},Qs.config({monaco:du});const gp=(s,i)=>{const{height:a,width:o,theme:u,options:p,hasDiff:m,readOnly:g,defaultValue:v,onChange:b,onDeclareConfigChange:w,onCursorPositionChange:k,onActionTrigger:z,onEditorDidMount:E}=s,P=M.useRef(null);M.useImperativeHandle(i,()=>({setOriginalScript(F){var B;(B=P.current)==null||B.setOriginalScript(F)},setScript(F){var B;(B=P.current)==null||B.setValue(F)},gotoLine(){var F;(F=P.current)==null||F.gotoLine()},getEditorLayout(){var F;return(F=P.current)==null?void 0:F.getEditorLayout()},setPosition(F,B){var G;(G=P.current)==null||G.setPosition({column:F,lineNumber:B})},setModelMarkers(F){var B;(B=P.current)==null||B.setModelMarkers(F)}})),M.useEffect(()=>{var F,B;m?(B=P.current)==null||B.addDiffDecorations():(F=P.current)==null||F.removeDiffDecorations()},[m]),M.useEffect(()=>{var F;(F=P.current)==null||F.updateActionTrigger(z)},[z]),M.useEffect(()=>{var F;a&&((F=P.current)==null||F.setEditorLayout(Number(a)))},[a,P.current]);function j(F,B){var ie,J;Mt.initBuiltinsTrees(),P.current=new tp(F,B,z),m&&((ie=P.current)==null||ie.addDiffDecorations()),Cd(F),(J=P.current)==null||J.setEditorLayout(Number(a));const G=F.getValue();P.current.onChangeCursorPosition(k),b&&b(G),!g&&ee(G),E&&E()}const ee=M.useCallback(async F=>{var ze;const B=Date.now(),{errors:G,functions:ie,methods:J,types:Pe,variables:be,overloadsFuncs:ne,preParserCode:_t}=await lo(F),gt=new Map(Object.entries(ie)),Ee=new Map(Object.entries(J)),Re=new Map(Object.entries(Pe)),U=new Map(Object.entries(be));la.setUserDefined({functions:gt,methods:Ee,types:Re,variables:U},ne),Mt.setUserDefind(gt,Re,U,Ee);const de=G.map(Fe=>({...Fe,severity:Fe.type||Ze.MarkerSeverity.Error}));if(g)return;try{if(!G.length){const Fe=await co(_t,{isPreParser:!0});w&&w(Fe)}}catch(Fe){console.log(Fe,"==================error- Run TccScript Server"),G.push({message:`Runtime Error: ${Fe.message}`,startLineNumber:0,endLineNumber:0,startColumn:0,endColumn:0})}(ze=P.current)==null||ze.setModelMarkers(de);const Se=Date.now();console.log((Se-B)/1e3)},[w,g]),me=M.useMemo(()=>Nd.debounce(ee,1e3),[ee]);function Y(F){var B;if(g){ee(F||"");return}(B=P.current)==null||B.setModelMarkers([]),F!==void 0&&(b&&b(F),me(F))}return nt.jsx(bd,{height:a,width:o||"100%",defaultLanguage:Ye,defaultValue:v||`indicator("我的脚本")
|
138
|
+
*/const Jn=Symbol("Comlink.proxy"),rp=Symbol("Comlink.endpoint"),ap=Symbol("Comlink.releaseProxy"),si=Symbol("Comlink.finalizer"),Xa=Symbol("Comlink.thrown"),Zn=s=>typeof s=="object"&&s!==null||typeof s=="function",sp={canHandle:s=>Zn(s)&&s[Jn],serialize(s){const{port1:i,port2:a}=new MessageChannel;return to(s,i),[a,[a]]},deserialize(s){return s.start(),ii(s)}},ip={canHandle:s=>Zn(s)&&Xa in s,serialize({value:s}){let i;return s instanceof Error?i={isError:!0,value:{message:s.message,name:s.name,stack:s.stack}}:i={isError:!1,value:s},[i,[]]},deserialize(s){throw s.isError?Object.assign(new Error(s.value.message),s.value):s.value}},eo=new Map([["proxy",sp],["throw",ip]]);function np(s,i){for(const a of s)if(i===a||a==="*"||a instanceof RegExp&&a.test(i))return!0;return!1}function to(s,i=globalThis,a=["*"]){i.addEventListener("message",function o(u){if(!u||!u.data)return;if(!np(a,u.origin)){console.warn(`Invalid origin '${u.origin}' for comlink proxy`);return}const{id:p,type:m,path:g}=Object.assign({path:[]},u.data),v=(u.data.argumentList||[]).map(gr);let b;try{const w=g.slice(0,-1).reduce((z,E)=>z[E],s),k=g.reduce((z,E)=>z[E],s);switch(m){case"GET":b=k;break;case"SET":w[g.slice(-1)[0]]=gr(u.data.value),b=!0;break;case"APPLY":b=k.apply(w,v);break;case"CONSTRUCT":{const z=new k(...v);b=pp(z)}break;case"ENDPOINT":{const{port1:z,port2:E}=new MessageChannel;to(s,E),b=dp(z,[z])}break;case"RELEASE":b=void 0;break;default:return}}catch(w){b={value:w,[Xa]:0}}Promise.resolve(b).catch(w=>({value:w,[Xa]:0})).then(w=>{const[k,z]=Qa(w);i.postMessage(Object.assign(Object.assign({},k),{id:p}),z),m==="RELEASE"&&(i.removeEventListener("message",o),ro(i),si in s&&typeof s[si]=="function"&&s[si]())}).catch(w=>{const[k,z]=Qa({value:new TypeError("Unserializable return value"),[Xa]:0});i.postMessage(Object.assign(Object.assign({},k),{id:p}),z)})}),i.start&&i.start()}function op(s){return s.constructor.name==="MessagePort"}function ro(s){op(s)&&s.close()}function ii(s,i){return ni(s,[],i)}function Ya(s){if(s)throw new Error("Proxy has been released and is not useable")}function ao(s){return Nr(s,{type:"RELEASE"}).then(()=>{ro(s)})}const Va=new WeakMap,Ka="FinalizationRegistry"in globalThis&&new FinalizationRegistry(s=>{const i=(Va.get(s)||0)-1;Va.set(s,i),i===0&&ao(s)});function lp(s,i){const a=(Va.get(i)||0)+1;Va.set(i,a),Ka&&Ka.register(s,i,s)}function cp(s){Ka&&Ka.unregister(s)}function ni(s,i=[],a=function(){}){let o=!1;const u=new Proxy(a,{get(p,m){if(Ya(o),m===ap)return()=>{cp(u),ao(s),o=!0};if(m==="then"){if(i.length===0)return{then:()=>u};const g=Nr(s,{type:"GET",path:i.map(v=>v.toString())}).then(gr);return g.then.bind(g)}return ni(s,[...i,m])},set(p,m,g){Ya(o);const[v,b]=Qa(g);return Nr(s,{type:"SET",path:[...i,m].map(w=>w.toString()),value:v},b).then(gr)},apply(p,m,g){Ya(o);const v=i[i.length-1];if(v===rp)return Nr(s,{type:"ENDPOINT"}).then(gr);if(v==="bind")return ni(s,i.slice(0,-1));const[b,w]=so(g);return Nr(s,{type:"APPLY",path:i.map(k=>k.toString()),argumentList:b},w).then(gr)},construct(p,m){Ya(o);const[g,v]=so(m);return Nr(s,{type:"CONSTRUCT",path:i.map(b=>b.toString()),argumentList:g},v).then(gr)}});return lp(u,s),u}function up(s){return Array.prototype.concat.apply([],s)}function so(s){const i=s.map(Qa);return[i.map(a=>a[0]),up(i.map(a=>a[1]))]}const io=new WeakMap;function dp(s,i){return io.set(s,i),s}function pp(s){return Object.assign(s,{[Jn]:!0})}function Qa(s){for(const[i,a]of eo)if(a.canHandle(s)){const[o,u]=a.serialize(s);return[{type:"HANDLER",name:i,value:o},u]}return[{type:"RAW",value:s},io.get(s)||[]]}function gr(s){switch(s.type){case"HANDLER":return eo.get(s.name).deserialize(s.value);case"RAW":return s.value}}function Nr(s,i,a){return new Promise(o=>{const u=mp();s.addEventListener("message",function p(m){!m.data||!m.data.id||m.data.id!==u||(s.removeEventListener("message",p),o(m.data))}),s.start&&s.start(),s.postMessage(Object.assign({id:u},i),a)})}function mp(){return new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-")}const no=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:Fa&&Fa.src||new URL("trading-vue-editor.umd.cjs",document.baseURI).href),{type:"module",name:"Run TccScript Server"});no.onerror=s=>{console.error(s)};const oo=ii(no),fp=ii(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:Fa&&Fa.src||new URL("trading-vue-editor.umd.cjs",document.baseURI).href),{type:"module",name:"Parser TccScript Server"}));async function lo(s,i=!1){const{functions:a,types:o,constants:u,variables:p,methods:m}=Rt;return await fp(s,i,{functions:Object.fromEntries(a),methods:Object.fromEntries(m),types:Object.fromEntries(o),constants:Object.fromEntries(u),variables:Object.fromEntries(p)})}async function co(s,i,a=!0){return await oo.runScript(s,i,a)}async function yp(s){return await oo.removeScript(s)}function hp(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 Ct;(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"})(Ct||(Ct={}));var uo;(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"})(uo||(uo={}));var po;(function(s){s.dividends="dividends",s.none="none",s.splits="splits"})(po||(po={}));var mo;(function(s){s.freqAll="freq_all",s.freqOncePerBar="freq_once_per_bar",s.freqOncePerBarClose="freq_once_per_bar_close"})(mo||(mo={}));var fo;(function(s){s.gapsOff="gaps_off",s.gapsOn="gaps_on",s.lookaheadOff="lookahead_off",s.lookaheadOn="lookahead_on"})(fo||(fo={}));var yo;(function(s){s.all="all",s.dataWindow="data_window",s.none="none",s.pane="pane",s.priceScale="price_scale",s.statusLine="status_line"})(yo||(yo={}));var ho;(function(s){s.both="both",s.left="left",s.none="none",s.right="right"})(ho||(ho={}));var _o;(function(s){s.inherit="inherit",s.mintick="mintick",s.percent="percent",s.price="price",s.volume="volume"})(_o||(_o={}));var go;(function(s){s.styleDashed="style_dashed",s.styleDotted="style_dotted",s.styleSolid="style_solid"})(go||(go={}));var bo;(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"})(bo||(bo={}));var xo;(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"})(xo||(xo={}));var vo;(function(s){s.abovebar="abovebar",s.absolute="absolute",s.belowbar="belowbar",s.bottom="bottom",s.top="top"})(vo||(vo={}));var wo;(function(s){s.ascending="ascending",s.descending="descending"})(wo||(wo={}));var To;(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"})(To||(To={}));var Io;(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"})(Io||(Io={}));var Do;(function(s){s.left="left",s.none="none",s.right="right"})(Do||(Do={}));var ko;(function(s){s.extended="extended",s.regular="regular"})(ko||(ko={}));var Ao;(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"})(Ao||(Ao={}));var qo;(function(s){s.auto="auto",s.huge="huge",s.large="large",s.normal="normal",s.small="small",s.tiny="tiny"})(qo||(qo={}));var Co;(function(s){s.cash="cash",s.fixed="fixed",s.percentOfEquity="percent_of_equity"})(Co||(Co={}));var So;(function(s){s.cashPerContract="cash_per_contract",s.cashPerOrder="cash_per_order",s.percent="percent"})(So||(So={}));var zo;(function(s){s.all="all",s.long="long",s.short="short"})(zo||(zo={}));var No;(function(s){s.cancel="cancel",s.none="none",s.reduce="reduce"})(No||(No={}));var Oo;(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"})(Oo||(Oo={}));var Po;(function(s){s.bar_index="bar_index",s.bar_time="bar_time"})(Po||(Po={}));var Eo;(function(s){s.abovebar="abovebar",s.belowbar="belowbar",s.price="price"})(Eo||(Eo={}));var Ro;(function(s){s.actual="actual",s.estimate="estimate",s.standardized="standardized"})(Ro||(Ro={}));var Mo;(function(s){s.traditional="Traditional",s.fibonacci="Fibonacci",s.woodie="Woodie",s.classic="Classic",s.dm="DM",s.camarilla="Camarilla"})(Mo||(Mo={})),Ct.SERIES,Ct.SIMPLE,Ct.INPUT,Ct.CONST,Ct.INT,Ct.FLOAT,Ct.BOOL,Ct.COLOR,Ct.STRING;const _p={domReadOnly:!0,scrollBeyondLastLine:!1,readOnly:!0,minimap:{enabled:!1},scrollbar:{vertical:"hidden",horizontal:"hidden",alwaysConsumeMouseWheel:!1},contextmenu:!1};self.MonacoEnvironment={getWorker(){return new hp({name:"Editor Worker"})}},Qs.config({monaco:du});const gp=(s,i)=>{const{height:a,width:o,theme:u,options:p,hasDiff:m,readOnly:g,defaultValue:v,onChange:b,onDeclareConfigChange:w,onCursorPositionChange:k,onActionTrigger:z,onEditorDidMount:E}=s,P=M.useRef(null);M.useImperativeHandle(i,()=>({setOriginalScript(F){var B;(B=P.current)==null||B.setOriginalScript(F)},setScript(F){var B;(B=P.current)==null||B.setValue(F)},gotoLine(){var F;(F=P.current)==null||F.gotoLine()},getEditorLayout(){var F;return(F=P.current)==null?void 0:F.getEditorLayout()},setPosition(F,B){var G;(G=P.current)==null||G.setPosition({column:F,lineNumber:B})},setModelMarkers(F){var B;(B=P.current)==null||B.setModelMarkers(F)}})),M.useEffect(()=>{var F,B;m?(B=P.current)==null||B.addDiffDecorations():(F=P.current)==null||F.removeDiffDecorations()},[m]),M.useEffect(()=>{var F;(F=P.current)==null||F.updateActionTrigger(z)},[z]),M.useEffect(()=>{var F;a&&((F=P.current)==null||F.setEditorLayout(Number(a)))},[a,P.current]);function j(F,B){var ie,J;Mt.initBuiltinsTrees(),P.current=new tp(F,B,z),m&&((ie=P.current)==null||ie.addDiffDecorations()),Cd(F),(J=P.current)==null||J.setEditorLayout(Number(a));const G=F.getValue();P.current.onChangeCursorPosition(k),b&&b(G),!g&&re(G),E&&E()}const re=M.useCallback(async F=>{var ze;const B=Date.now(),{errors:G,functions:ie,methods:J,types:Pe,variables:be,overloadsFuncs:ne,preParserCode:_t}=await lo(F),gt=new Map(Object.entries(ie)),Ee=new Map(Object.entries(J)),Re=new Map(Object.entries(Pe)),U=new Map(Object.entries(be));la.setUserDefined({functions:gt,methods:Ee,types:Re,variables:U},ne),Mt.setUserDefind(gt,Re,U,Ee);const de=G.map(Fe=>({...Fe,severity:Fe.type||Ze.MarkerSeverity.Error}));if(g)return;try{if(!G.length){const Fe=await co(_t,{isPreParser:!0});w&&w(Fe)}}catch(Fe){console.log(Fe,"==================error- Run TccScript Server"),G.push({message:`Runtime Error: ${Fe.message}`,startLineNumber:0,endLineNumber:0,startColumn:0,endColumn:0})}(ze=P.current)==null||ze.setModelMarkers(de);const Se=Date.now();console.log((Se-B)/1e3)},[w,g]),me=M.useMemo(()=>Nd.debounce(re,1e3),[re]);function Y(F){var B;if(g){re(F||"");return}(B=P.current)==null||B.setModelMarkers([]),F!==void 0&&(b&&b(F),me(F))}return nt.jsx(bd,{height:a,width:o||"100%",defaultLanguage:Ye,defaultValue:v||`indicator("我的脚本")
|
139
139
|
plot(close)
|
140
140
|
`,theme:u||"vs-dark",className:u||"vs-dark",options:{colorDecorators:!0,matchOnWordStartOnly:!0,useShadowDOM:!1,suggest:{preview:!0,matchOnWordStartOnly:!0},fontSize:13,...g?_p:{},readOnlyMessage:{value:"该脚本是只读的。它无法被编辑。"},...p},onMount:j,onChange:Y})},bp=M.forwardRef(gp),xp=s=>{const{theme:i,modified:a,original:o,height:u,width:p,renderSideBySide:m=!0}=s,g=M.useCallback((v,b)=>{b.languages.register({id:Ye}),b.editor.defineTheme("vs-dark",Gn),b.editor.defineTheme("vs",$n),b.languages.setMonarchTokensProvider(Ye,Wn),b.languages.setLanguageConfiguration(Ye,Hn)},[]);return nt.jsx(fd,{height:u||"90vh",width:p||"100%",theme:i||"vs-dark",options:{readOnly:!0,renderSideBySide:m,scrollBeyondLastLine:!1},language:Ye,modified:a,original:o,onMount:g})};Ae.VMarkerSeverity=void 0,function(s){s[s.Hint=1]="Hint",s[s.Info=2]="Info",s[s.Warning=4]="Warning",s[s.Error=8]="Error"}(Ae.VMarkerSeverity||(Ae.VMarkerSeverity={})),Ae.TradingVueDiffEditor=xp,Ae.TradingVueEditor=bp,Ae.parseTcc=lo,Ae.removeScript=yp,Ae.scriptsRun=co,Object.defineProperty(Ae,Symbol.toStringTag,{value:"Module"})});
|