openc3-cosmos-tool-packetviewer 6.4.2 → 6.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/tools/packetviewer/{ArrayWidget-D0fKsdTb-608ea1179bd135904d6b.js → ArrayWidget-CC3iwyQc-6d211eb4f93b77894040.js} +2 -2
- data/tools/packetviewer/{ArrayplotWidget-BmRSuGhA-63908aecc5273b075096.js → ArrayplotWidget-CiQdsmVy-c1f832762bb8e7056d42.js} +1 -1
- data/tools/packetviewer/{BarColumn-DtYw6Gmq-84c604bda88523017ab1.js → BarColumn-BhjcS87D-a86ff98ad5c016b14351.js} +1 -1
- data/tools/packetviewer/BlockWidget-LLPHBYVU-2bddda3c3f4ea1e43b9c.js +2 -0
- data/tools/packetviewer/{ButtonWidget-8iOpXmpp-f52902b1a53c36a358e3.js → ButtonWidget-Co0KMkIG-c2920cb4f5e10b0882ea.js} +1 -1
- data/tools/packetviewer/CanvasWidget-DPrxnI7M-e660091c4971b5870fa9.js +1 -0
- data/tools/packetviewer/CanvasdotWidget-s1ALDR4k-6d4af482334bd5e9e9f1.js +1 -0
- data/tools/packetviewer/{CanvasimageWidget-CFiCpITu-8bbab3e74f0ac57f3670.js → CanvasimageWidget-Cs-KjdqK-1f62530ebfefa30f0301.js} +1 -1
- data/tools/packetviewer/{CanvasimagevalueWidget-fu6vbAY0-5106bd317c2f6beba7af.js → CanvasimagevalueWidget-B-wBQisl-de504a0d9c8c44f3c27e.js} +1 -1
- data/tools/packetviewer/CanvaslabelWidget-CLBK52pP-422253956d4a601b44c6.js +1 -0
- data/tools/packetviewer/{CanvaslabelvalueWidget-BOFa8-NU-34bf6b4ec4632bec4fcd.js → CanvaslabelvalueWidget-CAa70y_o-a19743a8065a47f01786.js} +1 -1
- data/tools/packetviewer/CanvaslineWidget-PdwVJOQ5-c4c5f63518fef7d53a1e.js +1 -0
- data/tools/packetviewer/{CanvaslinevalueWidget-BCZoO-Z6-6e27e6157f15d7fa80f8.js → CanvaslinevalueWidget-CKrp1f3Z-45d689d0949bf18c678a.js} +1 -1
- data/tools/packetviewer/CheckbuttonWidget-CTSfH4NN-f4c9735f257d7fe7b9d2.js +1 -0
- data/tools/packetviewer/ComboboxWidget-BQzv9zk5-fe97a4a2c971e1a28997.js +1 -0
- data/tools/packetviewer/{DateWidget-Dggqab-F-8d0cdac01a65a5aed605.js → DateWidget-DKXxXT1g-2f6d4759ba53b17dcc16.js} +1 -1
- data/tools/packetviewer/{DetailsDialog-BhSAQDSK-fd577c6654f71eacf347.js → DetailsDialog-DEjAO6yp-c09a98e5ced79aae038d.js} +1 -1
- data/tools/packetviewer/{DynamicWidget-CfMtj7H8-db53e5b0cf329eb3a988.js → DynamicWidget-CfMtj7H8-5a6d866c223cc04383f5.js} +1 -1
- data/tools/packetviewer/{FormatvalueWidget-B9_PbzY2-a06ae9e29cb3ae4af6df.js → FormatvalueWidget-7Yp9jfgX-b941978415541ffe1aba.js} +1 -1
- data/tools/packetviewer/{Graph-B29y4d5A-e812475eb244795a5798.js → Graph-hzxapkW--82b5184a2031bb407ebd.js} +1 -1
- data/tools/packetviewer/{GraphWidget-oBxPa3EB-f995b1548bb1036bc3f6.js → GraphWidget-Dn0ZaxHo-21db3d603a7a2323673b.js} +1 -1
- data/tools/packetviewer/{HorizontalWidget-BWgZL_Oz-a1c75a7de491898f7f21.js → HorizontalWidget-BFzi3rMl-498d4303a23127337740.js} +1 -1
- data/tools/packetviewer/{HorizontalboxWidget-yMYUnNB8-183568379896295ac826.js → HorizontalboxWidget-DIagyace-cb2712b44de082988dbe.js} +1 -1
- data/tools/packetviewer/HorizontallineWidget-BOZNWM3a-18e681f5d3ffce1748a4.js +1 -0
- data/tools/packetviewer/{IframeWidget-DA4P_mJT-852aedb8aa312cbd8a75.js → IframeWidget-BU24bhc2-219fe1b2aad65c987cf6.js} +1 -1
- data/tools/packetviewer/{ImageLoader-rvd9t-mk-b335f5551b29d4acde0a.js → ImageLoader-xxDrxPAX-b1664183928c721d491a.js} +1 -1
- data/tools/packetviewer/{ImageviewerWidget-B1wK0hK4-c9c316d80f28fc6c5022.js → ImageviewerWidget-YMA4CVsl-8f8bd27ef067c92e149b.js} +1 -1
- data/tools/packetviewer/{LabelWidget-CY0saBoK-f99deb00dd50e6f86496.js → LabelWidget-2402SA18-f2329229331ef96f884f.js} +1 -1
- data/tools/packetviewer/LabelledWidget-Cbubzj_g-87f27a2500b35ca9a713.js +1 -0
- data/tools/packetviewer/{LabelprogressbarWidget-CmXcESTg-5c4bfcaf078667fd175b.js → LabelprogressbarWidget-s8V7w6LJ-3651d167b62630ddcf3f.js} +1 -1
- data/tools/packetviewer/LabelsparklineWidget-qbM_OXLh-c835717a9854da033dc9.js +1 -0
- data/tools/packetviewer/{LabelvalueWidget-dNaNfsBE-7056094afe14c1feb838.js → LabelvalueWidget-B5Ihc2yP-fd4fddf05f74b0fcb50c.js} +1 -1
- data/tools/packetviewer/{LabelvaluedescWidget-3vNoH6Mc-f0bd629bd36008351fff.js → LabelvaluedescWidget-Cl3JHPGR-1e635c569b12306f2296.js} +1 -1
- data/tools/packetviewer/LabelvaluelimitsbarWidget-DnpfRyHl-94f76b6d799de882c1e4.js +1 -0
- data/tools/packetviewer/{LabelvaluelimitscolumnWidget-BZ6nwifg-105ab6eabe210563ba54.js → LabelvaluelimitscolumnWidget-D4L9L5oa-b0843775d8d268868ebd.js} +1 -1
- data/tools/packetviewer/LabelvaluerangebarWidget-BivnHCbE-ce75a2e627389cb96b46.js +1 -0
- data/tools/packetviewer/Layout-B7KU2jmu-718be435410de58a83e4.js +1 -0
- data/tools/packetviewer/{LedWidget-DSxpmIOK-4c45d10d3ed45f337e89.js → LedWidget-DpdthKEd-adc4827e325c40a32462.js} +1 -1
- data/tools/packetviewer/{LimitsbarWidget-BoPTdVV5-975fd2a3405c0ffe831a.js → LimitsbarWidget-CLyj3Kb--28b733af6cf0c9ff06e2.js} +1 -1
- data/tools/packetviewer/{LimitscolorWidget-Bt3qOvrv-b1cfc027db3ff599a308.js → LimitscolorWidget-ChvzYoug-4dc9fd891cc95c6255cf.js} +1 -1
- data/tools/packetviewer/{LimitscolumnWidget-Ce6YnUBz-2c97f3c52e8a45bb5d4d.js → LimitscolumnWidget-IOhsLFZ1-4b1e2ee1e9fdcc3929af.js} +1 -1
- data/tools/packetviewer/LinegraphWidget-DZdqMqjw-3429c0022e181597abac.js +1 -0
- data/tools/packetviewer/{MatrixbycolumnsWidget-5MgJFZtz-80d57a9882a4406ecc2b.js → MatrixbycolumnsWidget-BzGYMhJ2-c1d936f99e2e1f4b3ac2.js} +1 -1
- data/tools/packetviewer/{PacketViewer-953652030ced8d10f41d.js → PacketViewer-9c0136faec72d0246abe.js} +6 -6
- data/tools/packetviewer/{ProgressbarWidget-CDwDOFIy-9debc744db7e38eb5d41.js → ProgressbarWidget-Bre-0zcS-4eaa094f07b5d27a63e9.js} +1 -1
- data/tools/packetviewer/RadiobuttonWidget-CLbfhrkc-e1ec902a289f635109d9.js +1 -0
- data/tools/packetviewer/RadiogroupWidget-DvRc70_Q-d22d145e6419d2f3bd4d.js +1 -0
- data/tools/packetviewer/{RangebarWidget-aHmgV0qs-1c885b41eb51fc89a4a8.js → RangebarWidget-BvzVWcfZ-69b2294a00bb61ee8b39.js} +1 -1
- data/tools/packetviewer/{RollupWidget-D1jUPrUQ-7ada173fbe7ce66b08c8.js → RollupWidget-KT243Ed8-27ccb88503e9f65259f3.js} +1 -1
- data/tools/packetviewer/{ScrollwindowWidget-Cn0o3b4E-592040bf66470c6bc644.js → ScrollwindowWidget-DcpdXyrP-6df1e8103e020956a94e.js} +1 -1
- data/tools/packetviewer/{SignalWidget-BQBzqdU--c95cd62b2f6082514a7c.js → SignalWidget-CoTi0Uzy-e83c7c1a9f15300a1d32.js} +1 -1
- data/tools/packetviewer/SpacerWidget-CTekSgNO-907ea52a6082751581eb.js +1 -0
- data/tools/packetviewer/{SparklineWidget-BTH9rvcX-d3c6d812bbd952233c60.js → SparklineWidget-BxwPKrIr-e421cc1d9b70e3a21b6f.js} +1 -1
- data/tools/packetviewer/{TabbookWidget-C-aDdEoD-87cb866b9075ffb79db4.js → TabbookWidget-B6Nx3Kmt-37b26d30d7dc9f22599d.js} +1 -1
- data/tools/packetviewer/TextboxWidget-DJgAfLFU-d1f4d63f7e04c6eb060d.js +1 -0
- data/tools/packetviewer/TextfieldWidget-Bc2xGs8v-2f364f135cd5f4c86d4e.js +1 -0
- data/tools/packetviewer/{TimeWidget-C_site21-ce4a279c314e918b2d8a.js → TimeWidget-DO6ZuMLO-26cb035fd43d39e3bfac.js} +1 -1
- data/tools/packetviewer/TitleWidget-CkZhMme1-15a679fbc730291d2021.js +1 -0
- data/tools/packetviewer/{VWidget-DuUens7G-b6a86e82a7a70e9180d5.js → VWidget-DzhcRBQe-10ebaea93740004baa2f.js} +1 -1
- data/tools/packetviewer/ValueWidget-tieHz2H1-6fedd0ac12c4a01ff62a.js +1 -0
- data/tools/packetviewer/ValuelimitsbarWidget-oFqxZu0t-6ca20162697e76ebc287.js +1 -0
- data/tools/packetviewer/{ValuelimitscolumnWidget-BBTuSCK9-f44ee894ccb209f76111.js → ValuelimitscolumnWidget-DYBv8POg-d008fae8e1fd64e4ab8b.js} +1 -1
- data/tools/packetviewer/{ValuerangebarWidget-Ct7iGtu0-f9e152d9443bceb8216b.js → ValuerangebarWidget-m3gFyG4v-d0db45ee5263f3169de0.js} +1 -1
- data/tools/packetviewer/{VerticalWidget-DJn02myf-52b3bdf0690336afdc4b.js → VerticalWidget-CcdRZmQK-ad26da865104b86f7801.js} +1 -1
- data/tools/packetviewer/VerticalboxWidget-DfsCYhrX-23144363ec95d5766894.js +1 -0
- data/tools/packetviewer/{Widget-CP2CtyUr-ee843508baed056173b0.js → Widget-B5HKasz2-75f34c3a0678314204c2.js} +1 -1
- data/tools/packetviewer/{main-b9e7e07182c9541e7974.js → main-cf6796c95ad2c4c24c8d.js} +36 -36
- data/tools/packetviewer/main.js +1 -1
- metadata +68 -68
- data/tools/packetviewer/BlockWidget-Dpxbw455-149a4748813860884145.js +0 -2
- data/tools/packetviewer/CanvasWidget-B0iU38rA-fb2d91fdc6f2e21f4d2d.js +0 -1
- data/tools/packetviewer/CanvasdotWidget-C9viSVBs-5a9e078e1c2710fb8f7a.js +0 -1
- data/tools/packetviewer/CanvaslabelWidget-BVqHq3Vp-4eadee72c38d2199839c.js +0 -1
- data/tools/packetviewer/CanvaslineWidget-l3ko0QXk-8f3d35e1c5742fbdffce.js +0 -1
- data/tools/packetviewer/CheckbuttonWidget-BN7e1d5b-bd01a570c597849e18be.js +0 -1
- data/tools/packetviewer/ComboboxWidget-Bb5RGXDB-2c5cc99200edcefd072d.js +0 -1
- data/tools/packetviewer/HorizontallineWidget-C4zMx7z2-e91608cbd592af522e59.js +0 -1
- data/tools/packetviewer/LabelledWidget-B3ZOYaGy-ddfdfea1a2dae96e2641.js +0 -1
- data/tools/packetviewer/LabelsparklineWidget-D_yrQrn6-a3c18977610ddd85d1ec.js +0 -1
- data/tools/packetviewer/LabelvaluelimitsbarWidget-7VppYVIN-d1f00e26bb0cf6022249.js +0 -1
- data/tools/packetviewer/LabelvaluerangebarWidget-IyuXLNsw-16a4e9105e9689699f2b.js +0 -1
- data/tools/packetviewer/Layout-BqMhhhws-bc33a6a11287094896e4.js +0 -1
- data/tools/packetviewer/LinegraphWidget-XAbg0jj2-73482bd06bd3d4cbc0a8.js +0 -1
- data/tools/packetviewer/RadiobuttonWidget-cQ8V8LaD-80b2ceedfe044a3ea2c8.js +0 -1
- data/tools/packetviewer/RadiogroupWidget-BvRnuGA2-7036429f70721982fbad.js +0 -1
- data/tools/packetviewer/SpacerWidget-C0RmQY3t-b711fd94de5a76f959d0.js +0 -1
- data/tools/packetviewer/TextboxWidget-Dd2ccpUQ-8c0ef41a0e77764d8e7e.js +0 -1
- data/tools/packetviewer/TextfieldWidget-DY3aFTnP-ff475464d7bb092dca4e.js +0 -1
- data/tools/packetviewer/TitleWidget-Bx81VfQD-6ed8a79f503f8dde5cf4.js +0 -1
- data/tools/packetviewer/ValueWidget-cbjxVV3B-b55ecae94a4970cc02b7.js +0 -1
- data/tools/packetviewer/ValuelimitsbarWidget-cQb2o_xH-3fce8514b55aedd01eb0.js +0 -1
- data/tools/packetviewer/VerticalboxWidget-DHQMxtF3-e81b4eebe258076efa89.js +0 -1
@@ -1,4 +1,4 @@
|
|
1
|
-
System.register(["vue","vue-router","single-spa","vuex","vuetify"],function(er,ot){"use strict";var wt,Wr,hn,ht,Ke,Br,zr,tp,np,Ds,wa,ei,tr,wr,Yc,Ps,ll,cl,rp,ip,ul,op,sp,ap,Xc,lp,cp,up,hp,Qc,dp,pp,gp,fp,mp,vp;return{setters:[Mt=>{wt=Mt.resolveComponent,Wr=Mt.createBlock,hn=Mt.openBlock,ht=Mt.withCtx,Ke=Mt.createVNode,Br=Mt.createElementBlock,zr=Mt.createElementVNode,tp=Mt.useCssVars,np=Mt.defineAsyncComponent,Ds=Mt.h,wa=Mt.normalizeStyle,ei=Mt.createCommentVNode,tr=Mt.createTextVNode,wr=Mt.toDisplayString,Yc=Mt.withKeys,Ps=Mt.withModifiers,ll=Mt.withDirectives,cl=Mt.vShow,rp=Mt.createSlots,ip=Mt.normalizeClass,ul=Mt.Fragment,op=Mt.defineComponent,sp=Mt.warn,ap=Mt.inject,Xc=Mt.computed,lp=Mt.shallowRef,cp=Mt.watchEffect,up=Mt.getCurrentInstance,hp=Mt.provide,Qc=Mt.createApp,dp=Mt.mergeProps},Mt=>{pp=Mt.createRouter,gp=Mt.createWebHistory},Mt=>{fp=Mt.getMountedApps},Mt=>{mp=Mt.createStore},Mt=>{vp=Mt.createVuetify}],execute:function(){er({$:Ap,c:W$,l:xn,m:xr,y:qn,z:td});var Mt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function yp(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);t&&(r=r.filter(function(f){return Object.getOwnPropertyDescriptor(n,f).enumerable})),e.push.apply(e,r)}return e}function es(n){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?yp(Object(e),!0).forEach(function(r){xb(n,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):yp(Object(e)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(e,r))})}return n}function xb(n,t,e){return(t=function(r){var f=function(p,y){if(ts(p)!=="object"||p===null)return p;var b=p[Symbol.toPrimitive];if(b!==void 0){var h=b.call(p,y);if(ts(h)!=="object")return h;throw new TypeError("@@toPrimitive must return a primitive value.")}return(y==="string"?String:Number)(p)}(r,"string");return ts(f)==="symbol"?f:String(f)}(t))in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}function ts(n){return ts=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ts(n)}(function(n){if(n.CSS&&n.CSS.escape)return n.CSS.escape;var t=function(e){if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");for(var r,f=String(e),p=f.length,y=-1,b="",h=f.charCodeAt(0);++y<p;)(r=f.charCodeAt(y))!=0?b+=r>=1&&r<=31||r==127||y==0&&r>=48&&r<=57||y==1&&r>=48&&r<=57&&h==45?"\\"+r.toString(16)+" ":y==0&&p==1&&r==45||!(r>=128||r==45||r==95||r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122)?"\\"+f.charAt(y):f.charAt(y):b+="�";return b};n.CSS||(n.CSS={}),n.CSS.escape=t})(Mt);var Cb={appOptions:null,template:null,Vue:null,createApp:null,handleInstance:null};function kb(n){if(ts(n)!=="object")throw new Error("single-spa-vue requires a configuration object");var t=es(es({},Cb),n);if(!t.Vue&&!t.createApp)throw Error("single-spa-vue must be passed opts.Vue or opts.createApp");if(!t.appOptions)throw Error("single-spa-vue must be passed opts.appOptions");if(t.appOptions.el&&typeof t.appOptions.el!="string"&&!(t.appOptions.el instanceof HTMLElement))throw Error("single-spa-vue: appOptions.el must be a string CSS selector, an HTMLElement, or not provided at all. Was given ".concat(ts(t.appOptions.el)));t.createApp=t.createApp||t.Vue&&t.Vue.createApp;var e={};return{bootstrap:Sb.bind(null,t,e),mount:Ab.bind(null,t,e),unmount:Tb.bind(null,t,e),update:_b.bind(null,t,e)}}function Sb(n){return n.loadRootComponent?n.loadRootComponent().then(function(t){return n.rootComponent=t}):Promise.resolve()}function Ab(n,t,e){var r={};return Promise.resolve().then(function(){return function(f,p){return typeof f.appOptions=="function"?f.appOptions(p):Promise.resolve(es({},f.appOptions))}(n,e).then(function(f){var p;if(e.domElement&&!f.el&&(f.el=e.domElement),f.el)if(typeof f.el=="string"){if(!(p=document.querySelector(f.el)))throw Error("If appOptions.el is provided to single-spa-vue, the dom element must exist in the dom. Was provided as ".concat(f.el))}else(p=f.el).id||(p.id="single-spa-application:".concat(e.name)),f.el="#".concat(CSS.escape(p.id));else{var y="single-spa-application:".concat(e.name);f.el="#".concat(CSS.escape(y)),(p=document.getElementById(y))||((p=document.createElement("div")).id=y,document.body.appendChild(p))}if(!n.replaceMode&&(f.el=f.el+" .single-spa-container",!p.querySelector(".single-spa-container"))){var b=document.createElement("div");b.className="single-spa-container",p.appendChild(b)}r.domEl=p,f.render||f.template||!n.rootComponent||(f.render=function(g){return g(n.rootComponent)}),f.data||(f.data={});var h=f.data;if(f.data=function(){return es(es({},typeof h=="function"?h.call(this,this):h),e)},n.createApp){if(r.vueInstance=n.createApp(f),n.handleInstance)return Promise.resolve(n.handleInstance(r.vueInstance,e)).then(function(){return r.root=r.vueInstance.mount(f.el),t[e.name]=r,r.vueInstance});r.root=r.vueInstance.mount(f.el)}else if(r.vueInstance=new n.Vue(f),r.vueInstance.bind&&(r.vueInstance=r.vueInstance.bind(r.vueInstance)),n.handleInstance)return Promise.resolve(n.handleInstance(r.vueInstance,e)).then(function(){return t[e.name]=r,r.vueInstance});return t[e.name]=r,r.vueInstance})})}function _b(n,t,e){return Promise.resolve().then(function(){var r=t[e.name],f=es(es({},n.appOptions.data||{}),e),p=r.root||r.vueInstance;for(var y in f)p[y]=f[y]})}function Tb(n,t,e){return Promise.resolve().then(function(){var r=t[e.name];n.createApp?r.vueInstance.unmount(r.domEl):(r.vueInstance.$destroy(),r.vueInstance.$el.innerHTML=""),delete r.vueInstance,r.domEl&&(r.domEl.innerHTML="",delete r.domEl)})}const $b=er("_",(n,t)=>{const e=n.__vccOpts||n;for(const[r,f]of t)e[r]=f;return e}),Mb={};function Ib(n,t){const e=wt("router-view"),r=wt("v-app");return hn(),Wr(r,{id:"innerapp"},{default:ht(()=>[Ke(e)]),_:1})}const Eb=$b(Mb,[["render",Ib]]),VN="modulepreload",KN=function(n){return"/"+n},qN={},st=function(t,e,r){let f=Promise.resolve();function p(y){const b=new Event("vite:preloadError",{cancelable:!0});if(b.payload=y,window.dispatchEvent(b),!b.defaultPrevented)throw y}return f.then(y=>{for(const b of y||[])b.status==="rejected"&&p(b.reason);return t().catch(p)})},wp=function(n){var t;!n.name!=="NotFound"&&(n.path=`/tools/packetviewer/${n.path.replace(/^\//,"")}`),(t=n.children)==null||t.forEach(wp)},so=er("d",(n,t)=>{const e=n.__vccOpts||n;for(const[r,f]of t)e[r]=f;return e}),Rb="/icons/customIcons.svg",Zc={props:{icon:{type:String},size:{type:String,default:"small"},color:{type:String,default:"white"}},computed:{iconSrc:function(){return Rb+"#"+this.icon}}},bp=()=>{tp(n=>({"259824e2":n.color}))},xp=Zc.setup;Zc.setup=xp?(n,t)=>(bp(),xp(n,t)):bp;const Lb={class:"cosmos-custom-icon"},Ob={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",preserveAspectRatio:"xMidYMid meet",focusable:"false"},Nb=["href"];function Db(n,t,e,r,f,p){return hn(),Br("span",Lb,[(hn(),Br("svg",Ob,[zr("use",{href:p.iconSrc},null,8,Nb)]))])}const Pb=so(Zc,[["render",Db],["__scopeId","data-v-4b6f1199"]]),hl=6e4,Jc=36e5,Fb=1e3,Cp=Symbol.for("constructDateFrom");function qn(n,t){return typeof n=="function"?n(t):n&&typeof n=="object"&&Cp in n?n[Cp](t):n instanceof Date?new n.constructor(t):new Date(t)}function xn(n,t){return qn(t||n,n)}let Wb={};function Fs(){return Wb}function Io(n,t){var e,r,f,p;const y=Fs(),b=(t==null?void 0:t.weekStartsOn)??((r=(e=t==null?void 0:t.locale)==null?void 0:e.options)==null?void 0:r.weekStartsOn)??y.weekStartsOn??((p=(f=y.locale)==null?void 0:f.options)==null?void 0:p.weekStartsOn)??0,h=xn(n,t==null?void 0:t.in),g=h.getDay(),s=(g<b?7:0)+g-b;return h.setDate(h.getDate()-s),h.setHours(0,0,0,0),h}function Ws(n,t){return Io(n,{...t,weekStartsOn:1})}function kp(n,t){const e=xn(n,void 0),r=e.getFullYear(),f=qn(e,0);f.setFullYear(r+1,0,4),f.setHours(0,0,0,0);const p=Ws(f),y=qn(e,0);y.setFullYear(r,0,4),y.setHours(0,0,0,0);const b=Ws(y);return e.getTime()>=p.getTime()?r+1:e.getTime()>=b.getTime()?r:r-1}function dl(n){const t=xn(n),e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),+n-+e}function Bb(n,...t){const e=qn.bind(null,t.find(r=>typeof r=="object"));return t.map(e)}function Sp(n,t){const e=xn(n,void 0);return e.setHours(0,0,0,0),e}function zb(n,t,e){const[r,f]=Bb(void 0,n,t),p=Sp(r),y=Sp(f),b=+p-dl(p),h=+y-dl(y);return Math.round((b-h)/864e5)}function jb(n,t){const e=kp(n),r=qn(n,0);return r.setFullYear(e,0,4),r.setHours(0,0,0,0),Ws(r)}function Hb(n){return n instanceof Date||typeof n=="object"&&Object.prototype.toString.call(n)==="[object Date]"}function Ap(n){return!(!Hb(n)&&typeof n!="number"||isNaN(+xn(n)))}function Ub(n,t){const e=xn(n,void 0);return e.setFullYear(e.getFullYear(),0,1),e.setHours(0,0,0,0),e}const Vb={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Kb=(n,t,e)=>{let r;const f=Vb[n];return typeof f=="string"?r=f:t===1?r=f.one:r=f.other.replace("{{count}}",t.toString()),e!=null&&e.addSuffix?e.comparison&&e.comparison>0?"in "+r:r+" ago":r};function eu(n){return(t={})=>{const e=t.width?String(t.width):n.defaultWidth;return n.formats[e]||n.formats[n.defaultWidth]}}const qb={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Gb={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Yb={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Xb={date:eu({formats:qb,defaultWidth:"full"}),time:eu({formats:Gb,defaultWidth:"full"}),dateTime:eu({formats:Yb,defaultWidth:"full"})},Qb={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Zb=(n,t,e,r)=>Qb[n];function ba(n){return(t,e)=>{const r=e!=null&&e.context?String(e.context):"standalone";let f;if(r==="formatting"&&n.formattingValues){const y=n.defaultFormattingWidth||n.defaultWidth,b=e!=null&&e.width?String(e.width):y;f=n.formattingValues[b]||n.formattingValues[y]}else{const y=n.defaultWidth,b=e!=null&&e.width?String(e.width):n.defaultWidth;f=n.values[b]||n.values[y]}const p=n.argumentCallback?n.argumentCallback(t):t;return f[p]}}const Jb={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},e0={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},t0={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},n0={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},r0={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},i0={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},o0=(n,t)=>{const e=Number(n),r=e%100;if(r>20||r<10)switch(r%10){case 1:return e+"st";case 2:return e+"nd";case 3:return e+"rd"}return e+"th"},s0={ordinalNumber:o0,era:ba({values:Jb,defaultWidth:"wide"}),quarter:ba({values:e0,defaultWidth:"wide",argumentCallback:n=>n-1}),month:ba({values:t0,defaultWidth:"wide"}),day:ba({values:n0,defaultWidth:"wide"}),dayPeriod:ba({values:r0,defaultWidth:"wide",formattingValues:i0,defaultFormattingWidth:"wide"})};function xa(n){return(t,e={})=>{const r=e.width,f=r&&n.matchPatterns[r]||n.matchPatterns[n.defaultMatchWidth],p=t.match(f);if(!p)return null;const y=p[0],b=r&&n.parsePatterns[r]||n.parsePatterns[n.defaultParseWidth],h=Array.isArray(b)?l0(b,l=>l.test(y)):a0(b,l=>l.test(y));let g;g=n.valueCallback?n.valueCallback(h):h,g=e.valueCallback?e.valueCallback(g):g;const s=t.slice(y.length);return{value:g,rest:s}}}function a0(n,t){for(const e in n)if(Object.prototype.hasOwnProperty.call(n,e)&&t(n[e]))return e}function l0(n,t){for(let e=0;e<n.length;e++)if(t(n[e]))return e}function c0(n){return(t,e={})=>{const r=t.match(n.matchPattern);if(!r)return null;const f=r[0],p=t.match(n.parsePattern);if(!p)return null;let y=n.valueCallback?n.valueCallback(p[0]):p[0];y=e.valueCallback?e.valueCallback(y):y;const b=t.slice(f.length);return{value:y,rest:b}}}const u0=/^(\d+)(th|st|nd|rd)?/i,h0=/\d+/i,d0={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},p0={any:[/^b/i,/^(a|c)/i]},g0={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},f0={any:[/1/i,/2/i,/3/i,/4/i]},m0={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},v0={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},y0={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},w0={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},b0={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},x0={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},C0={ordinalNumber:c0({matchPattern:u0,parsePattern:h0,valueCallback:n=>parseInt(n,10)}),era:xa({matchPatterns:d0,defaultMatchWidth:"wide",parsePatterns:p0,defaultParseWidth:"any"}),quarter:xa({matchPatterns:g0,defaultMatchWidth:"wide",parsePatterns:f0,defaultParseWidth:"any",valueCallback:n=>n+1}),month:xa({matchPatterns:m0,defaultMatchWidth:"wide",parsePatterns:v0,defaultParseWidth:"any"}),day:xa({matchPatterns:y0,defaultMatchWidth:"wide",parsePatterns:w0,defaultParseWidth:"any"}),dayPeriod:xa({matchPatterns:b0,defaultMatchWidth:"any",parsePatterns:x0,defaultParseWidth:"any"})},_p={code:"en-US",formatDistance:Kb,formatLong:Xb,formatRelative:Zb,localize:s0,match:C0,options:{weekStartsOn:0,firstWeekContainsDate:1}};function k0(n,t){const e=xn(n,void 0);return zb(e,Ub(e))+1}function Tp(n,t){const e=xn(n,void 0),r=+Ws(e)-+jb(e);return Math.round(r/6048e5)+1}function tu(n,t){var e,r,f,p;const y=xn(n,t==null?void 0:t.in),b=y.getFullYear(),h=Fs(),g=(t==null?void 0:t.firstWeekContainsDate)??((r=(e=t==null?void 0:t.locale)==null?void 0:e.options)==null?void 0:r.firstWeekContainsDate)??h.firstWeekContainsDate??((p=(f=h.locale)==null?void 0:f.options)==null?void 0:p.firstWeekContainsDate)??1,s=qn((t==null?void 0:t.in)||n,0);s.setFullYear(b+1,0,g),s.setHours(0,0,0,0);const l=Io(s,t),u=qn((t==null?void 0:t.in)||n,0);u.setFullYear(b,0,g),u.setHours(0,0,0,0);const a=Io(u,t);return+y>=+l?b+1:+y>=+a?b:b-1}function S0(n,t){var e,r,f,p;const y=Fs(),b=(t==null?void 0:t.firstWeekContainsDate)??((r=(e=t==null?void 0:t.locale)==null?void 0:e.options)==null?void 0:r.firstWeekContainsDate)??y.firstWeekContainsDate??((p=(f=y.locale)==null?void 0:f.options)==null?void 0:p.firstWeekContainsDate)??1,h=tu(n,t),g=qn((t==null?void 0:t.in)||n,0);return g.setFullYear(h,0,b),g.setHours(0,0,0,0),Io(g,t)}function $p(n,t){const e=xn(n,t==null?void 0:t.in),r=+Io(e,t)-+S0(e,t);return Math.round(r/6048e5)+1}function an(n,t){const e=n<0?"-":"",r=Math.abs(n).toString().padStart(t,"0");return e+r}const Eo={y(n,t){const e=n.getFullYear(),r=e>0?e:1-e;return an(t==="yy"?r%100:r,t.length)},M(n,t){const e=n.getMonth();return t==="M"?String(e+1):an(e+1,2)},d(n,t){return an(n.getDate(),t.length)},a(n,t){const e=n.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return e.toUpperCase();case"aaa":return e;case"aaaaa":return e[0];case"aaaa":default:return e==="am"?"a.m.":"p.m."}},h(n,t){return an(n.getHours()%12||12,t.length)},H(n,t){return an(n.getHours(),t.length)},m(n,t){return an(n.getMinutes(),t.length)},s(n,t){return an(n.getSeconds(),t.length)},S(n,t){const e=t.length,r=n.getMilliseconds(),f=Math.trunc(r*Math.pow(10,e-3));return an(f,t.length)}},Bs={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Mp={G:function(n,t,e){const r=n.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return e.era(r,{width:"abbreviated"});case"GGGGG":return e.era(r,{width:"narrow"});case"GGGG":default:return e.era(r,{width:"wide"})}},y:function(n,t,e){if(t==="yo"){const r=n.getFullYear(),f=r>0?r:1-r;return e.ordinalNumber(f,{unit:"year"})}return Eo.y(n,t)},Y:function(n,t,e,r){const f=tu(n,r),p=f>0?f:1-f;if(t==="YY"){const y=p%100;return an(y,2)}return t==="Yo"?e.ordinalNumber(p,{unit:"year"}):an(p,t.length)},R:function(n,t){const e=kp(n);return an(e,t.length)},u:function(n,t){const e=n.getFullYear();return an(e,t.length)},Q:function(n,t,e){const r=Math.ceil((n.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return an(r,2);case"Qo":return e.ordinalNumber(r,{unit:"quarter"});case"QQQ":return e.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return e.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return e.quarter(r,{width:"wide",context:"formatting"})}},q:function(n,t,e){const r=Math.ceil((n.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return an(r,2);case"qo":return e.ordinalNumber(r,{unit:"quarter"});case"qqq":return e.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return e.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return e.quarter(r,{width:"wide",context:"standalone"})}},M:function(n,t,e){const r=n.getMonth();switch(t){case"M":case"MM":return Eo.M(n,t);case"Mo":return e.ordinalNumber(r+1,{unit:"month"});case"MMM":return e.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return e.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return e.month(r,{width:"wide",context:"formatting"})}},L:function(n,t,e){const r=n.getMonth();switch(t){case"L":return String(r+1);case"LL":return an(r+1,2);case"Lo":return e.ordinalNumber(r+1,{unit:"month"});case"LLL":return e.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return e.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return e.month(r,{width:"wide",context:"standalone"})}},w:function(n,t,e,r){const f=$p(n,r);return t==="wo"?e.ordinalNumber(f,{unit:"week"}):an(f,t.length)},I:function(n,t,e){const r=Tp(n);return t==="Io"?e.ordinalNumber(r,{unit:"week"}):an(r,t.length)},d:function(n,t,e){return t==="do"?e.ordinalNumber(n.getDate(),{unit:"date"}):Eo.d(n,t)},D:function(n,t,e){const r=k0(n);return t==="Do"?e.ordinalNumber(r,{unit:"dayOfYear"}):an(r,t.length)},E:function(n,t,e){const r=n.getDay();switch(t){case"E":case"EE":case"EEE":return e.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return e.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return e.day(r,{width:"short",context:"formatting"});case"EEEE":default:return e.day(r,{width:"wide",context:"formatting"})}},e:function(n,t,e,r){const f=n.getDay(),p=(f-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(p);case"ee":return an(p,2);case"eo":return e.ordinalNumber(p,{unit:"day"});case"eee":return e.day(f,{width:"abbreviated",context:"formatting"});case"eeeee":return e.day(f,{width:"narrow",context:"formatting"});case"eeeeee":return e.day(f,{width:"short",context:"formatting"});case"eeee":default:return e.day(f,{width:"wide",context:"formatting"})}},c:function(n,t,e,r){const f=n.getDay(),p=(f-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(p);case"cc":return an(p,t.length);case"co":return e.ordinalNumber(p,{unit:"day"});case"ccc":return e.day(f,{width:"abbreviated",context:"standalone"});case"ccccc":return e.day(f,{width:"narrow",context:"standalone"});case"cccccc":return e.day(f,{width:"short",context:"standalone"});case"cccc":default:return e.day(f,{width:"wide",context:"standalone"})}},i:function(n,t,e){const r=n.getDay(),f=r===0?7:r;switch(t){case"i":return String(f);case"ii":return an(f,t.length);case"io":return e.ordinalNumber(f,{unit:"day"});case"iii":return e.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return e.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return e.day(r,{width:"short",context:"formatting"});case"iiii":default:return e.day(r,{width:"wide",context:"formatting"})}},a:function(n,t,e){const r=n.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return e.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return e.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(n,t,e){const r=n.getHours();let f;switch(r===12?f=Bs.noon:r===0?f=Bs.midnight:f=r/12>=1?"pm":"am",t){case"b":case"bb":return e.dayPeriod(f,{width:"abbreviated",context:"formatting"});case"bbb":return e.dayPeriod(f,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return e.dayPeriod(f,{width:"narrow",context:"formatting"});case"bbbb":default:return e.dayPeriod(f,{width:"wide",context:"formatting"})}},B:function(n,t,e){const r=n.getHours();let f;switch(r>=17?f=Bs.evening:r>=12?f=Bs.afternoon:r>=4?f=Bs.morning:f=Bs.night,t){case"B":case"BB":case"BBB":return e.dayPeriod(f,{width:"abbreviated",context:"formatting"});case"BBBBB":return e.dayPeriod(f,{width:"narrow",context:"formatting"});case"BBBB":default:return e.dayPeriod(f,{width:"wide",context:"formatting"})}},h:function(n,t,e){if(t==="ho"){let r=n.getHours()%12;return r===0&&(r=12),e.ordinalNumber(r,{unit:"hour"})}return Eo.h(n,t)},H:function(n,t,e){return t==="Ho"?e.ordinalNumber(n.getHours(),{unit:"hour"}):Eo.H(n,t)},K:function(n,t,e){const r=n.getHours()%12;return t==="Ko"?e.ordinalNumber(r,{unit:"hour"}):an(r,t.length)},k:function(n,t,e){let r=n.getHours();return r===0&&(r=24),t==="ko"?e.ordinalNumber(r,{unit:"hour"}):an(r,t.length)},m:function(n,t,e){return t==="mo"?e.ordinalNumber(n.getMinutes(),{unit:"minute"}):Eo.m(n,t)},s:function(n,t,e){return t==="so"?e.ordinalNumber(n.getSeconds(),{unit:"second"}):Eo.s(n,t)},S:function(n,t){return Eo.S(n,t)},X:function(n,t,e){const r=n.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return Ep(r);case"XXXX":case"XX":return ns(r);case"XXXXX":case"XXX":default:return ns(r,":")}},x:function(n,t,e){const r=n.getTimezoneOffset();switch(t){case"x":return Ep(r);case"xxxx":case"xx":return ns(r);case"xxxxx":case"xxx":default:return ns(r,":")}},O:function(n,t,e){const r=n.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Ip(r,":");case"OOOO":default:return"GMT"+ns(r,":")}},z:function(n,t,e){const r=n.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Ip(r,":");case"zzzz":default:return"GMT"+ns(r,":")}},t:function(n,t,e){const r=Math.trunc(+n/1e3);return an(r,t.length)},T:function(n,t,e){return an(+n,t.length)}};function Ip(n,t=""){const e=n>0?"-":"+",r=Math.abs(n),f=Math.trunc(r/60),p=r%60;return p===0?e+String(f):e+String(f)+t+an(p,2)}function Ep(n,t){return n%60===0?(n>0?"-":"+")+an(Math.abs(n)/60,2):ns(n,t)}function ns(n,t=""){const e=n>0?"-":"+",r=Math.abs(n),f=an(Math.trunc(r/60),2),p=an(r%60,2);return e+f+t+p}const Rp=(n,t)=>{switch(n){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},Lp=(n,t)=>{switch(n){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},A0=(n,t)=>{const e=n.match(/(P+)(p+)?/)||[],r=e[1],f=e[2];if(!f)return Rp(n,t);let p;switch(r){case"P":p=t.dateTime({width:"short"});break;case"PP":p=t.dateTime({width:"medium"});break;case"PPP":p=t.dateTime({width:"long"});break;case"PPPP":default:p=t.dateTime({width:"full"});break}return p.replace("{{date}}",Rp(r,t)).replace("{{time}}",Lp(f,t))},nu={p:Lp,P:A0},_0=/^D+$/,T0=/^Y+$/,$0=["D","DD","YY","YYYY"];function Op(n){return _0.test(n)}function Np(n){return T0.test(n)}function ru(n,t,e){const r=M0(n,t,e);if(console.warn(r),$0.includes(n))throw new RangeError(r)}function M0(n,t,e){const r=n[0]==="Y"?"years":"days of the month";return`Use \`${n.toLowerCase()}\` instead of \`${n}\` (in \`${t}\`) for formatting ${r} to the input \`${e}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const I0=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,E0=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,R0=/^'([^]*?)'?$/,L0=/''/g,O0=/[a-zA-Z]/;function rs(n,t,e){var r,f,p,y,b,h,g,s;const l=Fs(),u=(e==null?void 0:e.locale)??l.locale??_p,a=(e==null?void 0:e.firstWeekContainsDate)??((f=(r=e==null?void 0:e.locale)==null?void 0:r.options)==null?void 0:f.firstWeekContainsDate)??l.firstWeekContainsDate??((y=(p=l.locale)==null?void 0:p.options)==null?void 0:y.firstWeekContainsDate)??1,o=(e==null?void 0:e.weekStartsOn)??((h=(b=e==null?void 0:e.locale)==null?void 0:b.options)==null?void 0:h.weekStartsOn)??l.weekStartsOn??((s=(g=l.locale)==null?void 0:g.options)==null?void 0:s.weekStartsOn)??0,c=xn(n,e==null?void 0:e.in);if(!Ap(c))throw new RangeError("Invalid time value");let d=t.match(E0).map(x=>{const E=x[0];if(E==="p"||E==="P"){const $=nu[E];return $(x,u.formatLong)}return x}).join("").match(I0).map(x=>{if(x==="''")return{isToken:!1,value:"'"};const E=x[0];if(E==="'")return{isToken:!1,value:N0(x)};if(Mp[E])return{isToken:!0,value:x};if(E.match(O0))throw new RangeError("Format string contains an unescaped latin alphabet character `"+E+"`");return{isToken:!1,value:x}});u.localize.preprocessor&&(d=u.localize.preprocessor(c,d));const w={firstWeekContainsDate:a,weekStartsOn:o,locale:u};return d.map(x=>{if(!x.isToken)return x.value;const E=x.value;(!(e!=null&&e.useAdditionalWeekYearTokens)&&Np(E)||!(e!=null&&e.useAdditionalDayOfYearTokens)&&Op(E))&&ru(E,t,String(n));const $=Mp[E[0]];return $(c,E,u.localize,w)}).join("")}function N0(n){const t=n.match(R0);return t?t[1].replace(L0,"'"):n}var Ro=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function pl(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Dp={exports:{}},Pp;function D0(){return Pp||(Pp=1,function(n,t){(function(){var e="ace",r=function(){return this}();!r&&typeof window<"u"&&(r=window);var f=function(s,l,u){if(typeof s!="string"){f.original?f.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace());return}arguments.length==2&&(u=l),f.modules[s]||(f.payloads[s]=u,f.modules[s]=null)};f.modules={},f.payloads={};var p=function(s,l,u){if(typeof l=="string"){var a=h(s,l);if(a!=null)return u&&u(),a}else if(Object.prototype.toString.call(l)==="[object Array]"){for(var o=[],c=0,d=l.length;c<d;++c){var w=h(s,l[c]);if(w==null&&y.original)return;o.push(w)}return u&&u.apply(null,o)||!0}},y=function(s,l){var u=p("",s,l);return u==null&&y.original?y.original.apply(this,arguments):u},b=function(s,l){if(l.indexOf("!")!==-1){var u=l.split("!");return b(s,u[0])+"!"+b(s,u[1])}if(l.charAt(0)=="."){var a=s.split("/").slice(0,-1).join("/");for(l=a+"/"+l;l.indexOf(".")!==-1&&o!=l;){var o=l;l=l.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return l},h=function(s,l){l=b(s,l);var u=f.modules[l];if(!u){if(u=f.payloads[l],typeof u=="function"){var a={},o={id:l,uri:"",exports:a,packaged:!0},c=function(w,x){return p(l,w,x)},d=u(c,a,o);a=d||o.exports,f.modules[l]=a,delete f.payloads[l]}u=f.modules[l]=a||u}return u};function g(s){var l=r;r[s]||(r[s]={}),l=r[s],(!l.define||!l.define.packaged)&&(f.original=l.define,l.define=f,l.define.packaged=!0),(!l.require||!l.require.packaged)&&(y.original=l.require,l.require=y,l.require.packaged=!0)}g(e)})(),ace.define("ace/lib/es6-shim",["require","exports","module"],function(e,r,f){function p(y,b,h){Object.defineProperty(y,b,{value:h,enumerable:!1,writable:!0,configurable:!0})}String.prototype.startsWith||p(String.prototype,"startsWith",function(y,b){return b=b||0,this.lastIndexOf(y,b)===b}),String.prototype.endsWith||p(String.prototype,"endsWith",function(y,b){var h=this;(b===void 0||b>h.length)&&(b=h.length),b-=y.length;var g=h.indexOf(y,b);return g!==-1&&g===b}),String.prototype.repeat||p(String.prototype,"repeat",function(y){for(var b="",h=this;y>0;)y&1&&(b+=h),(y>>=1)&&(h+=h);return b}),String.prototype.includes||p(String.prototype,"includes",function(y,b){return this.indexOf(y,b)!=-1}),Object.assign||(Object.assign=function(y){if(y==null)throw new TypeError("Cannot convert undefined or null to object");for(var b=Object(y),h=1;h<arguments.length;h++){var g=arguments[h];g!=null&&Object.keys(g).forEach(function(s){b[s]=g[s]})}return b}),Object.values||(Object.values=function(y){return Object.keys(y).map(function(b){return y[b]})}),Array.prototype.find||p(Array.prototype,"find",function(y){for(var b=this.length,h=arguments[1],g=0;g<b;g++){var s=this[g];if(y.call(h,s,g,this))return s}}),Array.prototype.findIndex||p(Array.prototype,"findIndex",function(y){for(var b=this.length,h=arguments[1],g=0;g<b;g++){var s=this[g];if(y.call(h,s,g,this))return g}}),Array.prototype.includes||p(Array.prototype,"includes",function(y,b){return this.indexOf(y,b)!=-1}),Array.prototype.fill||p(Array.prototype,"fill",function(y){for(var b=this,h=b.length>>>0,g=arguments[1],s=g>>0,l=s<0?Math.max(h+s,0):Math.min(s,h),u=arguments[2],a=u===void 0?h:u>>0,o=a<0?Math.max(h+a,0):Math.min(a,h);l<o;)b[l]=y,l++;return b}),Array.of||p(Array,"of",function(){return Array.prototype.slice.call(arguments)})}),ace.define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/es6-shim"],function(e,r,f){e("./es6-shim")}),ace.define("ace/lib/deep_copy",["require","exports","module"],function(e,r,f){r.deepCopy=function p(y){if(typeof y!="object"||!y)return y;var b;if(Array.isArray(y)){b=[];for(var h=0;h<y.length;h++)b[h]=p(y[h]);return b}if(Object.prototype.toString.call(y)!=="[object Object]")return y;b={};for(var h in y)b[h]=p(y[h]);return b}}),ace.define("ace/lib/lang",["require","exports","module","ace/lib/deep_copy"],function(e,r,f){r.last=function(b){return b[b.length-1]},r.stringReverse=function(b){return b.split("").reverse().join("")},r.stringRepeat=function(b,h){for(var g="";h>0;)h&1&&(g+=b),(h>>=1)&&(b+=b);return g};var p=/^\s\s*/,y=/\s\s*$/;r.stringTrimLeft=function(b){return b.replace(p,"")},r.stringTrimRight=function(b){return b.replace(y,"")},r.copyObject=function(b){var h={};for(var g in b)h[g]=b[g];return h},r.copyArray=function(b){for(var h=[],g=0,s=b.length;g<s;g++)b[g]&&typeof b[g]=="object"?h[g]=this.copyObject(b[g]):h[g]=b[g];return h},r.deepCopy=e("./deep_copy").deepCopy,r.arrayToMap=function(b){for(var h={},g=0;g<b.length;g++)h[b[g]]=1;return h},r.createMap=function(b){var h=Object.create(null);for(var g in b)h[g]=b[g];return h},r.arrayRemove=function(b,h){for(var g=0;g<=b.length;g++)h===b[g]&&b.splice(g,1)},r.escapeRegExp=function(b){return b.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},r.escapeHTML=function(b){return(""+b).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<")},r.getMatchOffsets=function(b,h){var g=[];return b.replace(h,function(s){g.push({offset:arguments[arguments.length-2],length:s.length})}),g},r.deferredCall=function(b){var h=null,g=function(){h=null,b()},s=function(l){return s.cancel(),h=setTimeout(g,l||0),s};return s.schedule=s,s.call=function(){return this.cancel(),b(),s},s.cancel=function(){return clearTimeout(h),h=null,s},s.isPending=function(){return h},s},r.delayedCall=function(b,h){var g=null,s=function(){g=null,b()},l=function(u){g==null&&(g=setTimeout(s,u||h))};return l.delay=function(u){g&&clearTimeout(g),g=setTimeout(s,u||h)},l.schedule=l,l.call=function(){this.cancel(),b()},l.cancel=function(){g&&clearTimeout(g),g=null},l.isPending=function(){return g},l},r.supportsLookbehind=function(){try{new RegExp("(?<=.)")}catch{return!1}return!0},r.skipEmptyMatch=function(b,h,g){return g&&b.codePointAt(h)>65535?2:1}}),ace.define("ace/lib/useragent",["require","exports","module"],function(e,r,f){r.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},r.getOS=function(){return r.isMac?r.OS.MAC:r.isLinux?r.OS.LINUX:r.OS.WINDOWS};var p=typeof navigator=="object"?navigator:{},y=(/mac|win|linux/i.exec(p.platform)||["other"])[0].toLowerCase(),b=p.userAgent||"",h=p.appName||"";r.isWin=y=="win",r.isMac=y=="mac",r.isLinux=y=="linux",r.isIE=h=="Microsoft Internet Explorer"||h.indexOf("MSAppHost")>=0?parseFloat((b.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((b.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),r.isOldIE=r.isIE&&r.isIE<9,r.isGecko=r.isMozilla=b.match(/ Gecko\/\d+/),r.isOpera=typeof opera=="object"&&Object.prototype.toString.call(window.opera)=="[object Opera]",r.isWebKit=parseFloat(b.split("WebKit/")[1])||void 0,r.isChrome=parseFloat(b.split(" Chrome/")[1])||void 0,r.isSafari=parseFloat(b.split(" Safari/")[1])&&!r.isChrome||void 0,r.isEdge=parseFloat(b.split(" Edge/")[1])||void 0,r.isAIR=b.indexOf("AdobeAIR")>=0,r.isAndroid=b.indexOf("Android")>=0,r.isChromeOS=b.indexOf(" CrOS ")>=0,r.isIOS=/iPad|iPhone|iPod/.test(b)&&!window.MSStream,r.isIOS&&(r.isMac=!0),r.isMobile=r.isIOS||r.isAndroid}),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],function(e,r,f){var p=e("./useragent"),y="http://www.w3.org/1999/xhtml";r.buildDom=function u(a,o,c){if(typeof a=="string"&&a){var d=document.createTextNode(a);return o&&o.appendChild(d),d}if(!Array.isArray(a))return a&&a.appendChild&&o&&o.appendChild(a),a;if(typeof a[0]!="string"||!a[0]){for(var w=[],x=0;x<a.length;x++){var E=u(a[x],o,c);E&&w.push(E)}return w}var $=document.createElement(a[0]),S=a[1],C=1;S&&typeof S=="object"&&!Array.isArray(S)&&(C=2);for(var x=C;x<a.length;x++)u(a[x],$,c);return C==2&&Object.keys(S).forEach(function(R){var L=S[R];R==="class"?$.className=Array.isArray(L)?L.join(" "):L:typeof L=="function"||R=="value"||R[0]=="$"?$[R]=L:R==="ref"?c&&(c[L]=$):R==="style"?typeof L=="string"&&($.style.cssText=L):L!=null&&$.setAttribute(R,L)}),o&&o.appendChild($),$},r.getDocumentHead=function(u){return u||(u=document),u.head||u.getElementsByTagName("head")[0]||u.documentElement},r.createElement=function(u,a){return document.createElementNS?document.createElementNS(a||y,u):document.createElement(u)},r.removeChildren=function(u){u.innerHTML=""},r.createTextNode=function(u,a){var o=a?a.ownerDocument:document;return o.createTextNode(u)},r.createFragment=function(u){var a=u?u.ownerDocument:document;return a.createDocumentFragment()},r.hasCssClass=function(u,a){var o=(u.className+"").split(/\s+/g);return o.indexOf(a)!==-1},r.addCssClass=function(u,a){r.hasCssClass(u,a)||(u.className+=" "+a)},r.removeCssClass=function(u,a){for(var o=u.className.split(/\s+/g);;){var c=o.indexOf(a);if(c==-1)break;o.splice(c,1)}u.className=o.join(" ")},r.toggleCssClass=function(u,a){for(var o=u.className.split(/\s+/g),c=!0;;){var d=o.indexOf(a);if(d==-1)break;c=!1,o.splice(d,1)}return c&&o.push(a),u.className=o.join(" "),c},r.setCssClass=function(u,a,o){o?r.addCssClass(u,a):r.removeCssClass(u,a)},r.hasCssString=function(u,a){var o=0,c;if(a=a||document,c=a.querySelectorAll("style")){for(;o<c.length;)if(c[o++].id===u)return!0}},r.removeElementById=function(u,a){a=a||document,a.getElementById(u)&&a.getElementById(u).remove()};var b,h=[];r.useStrictCSP=function(u){b=u,u==!1?g():h||(h=[])};function g(){var u=h;h=null,u&&u.forEach(function(a){s(a[0],a[1])})}function s(u,a,o){if(!(typeof document>"u")){if(h){if(o)g();else if(o===!1)return h.push([u,a])}if(!b){var c=o;!o||!o.getRootNode?c=document:(c=o.getRootNode(),(!c||c==o)&&(c=document));var d=c.ownerDocument||c;if(a&&r.hasCssString(a,c))return null;a&&(u+=`
|
1
|
+
System.register(["vue","vue-router","single-spa","vuex","vuetify"],function(tr,ot){"use strict";var wt,Wr,hn,ht,Ke,Br,zr,tp,np,Ds,wa,ei,nr,wr,Yc,Ps,ll,cl,rp,ip,ul,op,sp,ap,Xc,lp,cp,up,hp,Qc,dp,pp,gp,fp,mp,vp;return{setters:[Mt=>{wt=Mt.resolveComponent,Wr=Mt.createBlock,hn=Mt.openBlock,ht=Mt.withCtx,Ke=Mt.createVNode,Br=Mt.createElementBlock,zr=Mt.createElementVNode,tp=Mt.useCssVars,np=Mt.defineAsyncComponent,Ds=Mt.h,wa=Mt.normalizeStyle,ei=Mt.createCommentVNode,nr=Mt.createTextVNode,wr=Mt.toDisplayString,Yc=Mt.withKeys,Ps=Mt.withModifiers,ll=Mt.withDirectives,cl=Mt.vShow,rp=Mt.createSlots,ip=Mt.normalizeClass,ul=Mt.Fragment,op=Mt.defineComponent,sp=Mt.warn,ap=Mt.inject,Xc=Mt.computed,lp=Mt.shallowRef,cp=Mt.watchEffect,up=Mt.getCurrentInstance,hp=Mt.provide,Qc=Mt.createApp,dp=Mt.mergeProps},Mt=>{pp=Mt.createRouter,gp=Mt.createWebHistory},Mt=>{fp=Mt.getMountedApps},Mt=>{mp=Mt.createStore},Mt=>{vp=Mt.createVuetify}],execute:function(){tr({$:Ap,c:W$,l:Cn,m:xr,y:Gn,z:td});var Mt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function yp(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);t&&(r=r.filter(function(f){return Object.getOwnPropertyDescriptor(n,f).enumerable})),e.push.apply(e,r)}return e}function es(n){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?yp(Object(e),!0).forEach(function(r){xb(n,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):yp(Object(e)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(e,r))})}return n}function xb(n,t,e){return(t=function(r){var f=function(p,y){if(ts(p)!=="object"||p===null)return p;var b=p[Symbol.toPrimitive];if(b!==void 0){var h=b.call(p,y);if(ts(h)!=="object")return h;throw new TypeError("@@toPrimitive must return a primitive value.")}return(y==="string"?String:Number)(p)}(r,"string");return ts(f)==="symbol"?f:String(f)}(t))in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}function ts(n){return ts=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ts(n)}(function(n){if(n.CSS&&n.CSS.escape)return n.CSS.escape;var t=function(e){if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");for(var r,f=String(e),p=f.length,y=-1,b="",h=f.charCodeAt(0);++y<p;)(r=f.charCodeAt(y))!=0?b+=r>=1&&r<=31||r==127||y==0&&r>=48&&r<=57||y==1&&r>=48&&r<=57&&h==45?"\\"+r.toString(16)+" ":y==0&&p==1&&r==45||!(r>=128||r==45||r==95||r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122)?"\\"+f.charAt(y):f.charAt(y):b+="�";return b};n.CSS||(n.CSS={}),n.CSS.escape=t})(Mt);var Cb={appOptions:null,template:null,Vue:null,createApp:null,handleInstance:null};function kb(n){if(ts(n)!=="object")throw new Error("single-spa-vue requires a configuration object");var t=es(es({},Cb),n);if(!t.Vue&&!t.createApp)throw Error("single-spa-vue must be passed opts.Vue or opts.createApp");if(!t.appOptions)throw Error("single-spa-vue must be passed opts.appOptions");if(t.appOptions.el&&typeof t.appOptions.el!="string"&&!(t.appOptions.el instanceof HTMLElement))throw Error("single-spa-vue: appOptions.el must be a string CSS selector, an HTMLElement, or not provided at all. Was given ".concat(ts(t.appOptions.el)));t.createApp=t.createApp||t.Vue&&t.Vue.createApp;var e={};return{bootstrap:Sb.bind(null,t,e),mount:Ab.bind(null,t,e),unmount:Tb.bind(null,t,e),update:_b.bind(null,t,e)}}function Sb(n){return n.loadRootComponent?n.loadRootComponent().then(function(t){return n.rootComponent=t}):Promise.resolve()}function Ab(n,t,e){var r={};return Promise.resolve().then(function(){return function(f,p){return typeof f.appOptions=="function"?f.appOptions(p):Promise.resolve(es({},f.appOptions))}(n,e).then(function(f){var p;if(e.domElement&&!f.el&&(f.el=e.domElement),f.el)if(typeof f.el=="string"){if(!(p=document.querySelector(f.el)))throw Error("If appOptions.el is provided to single-spa-vue, the dom element must exist in the dom. Was provided as ".concat(f.el))}else(p=f.el).id||(p.id="single-spa-application:".concat(e.name)),f.el="#".concat(CSS.escape(p.id));else{var y="single-spa-application:".concat(e.name);f.el="#".concat(CSS.escape(y)),(p=document.getElementById(y))||((p=document.createElement("div")).id=y,document.body.appendChild(p))}if(!n.replaceMode&&(f.el=f.el+" .single-spa-container",!p.querySelector(".single-spa-container"))){var b=document.createElement("div");b.className="single-spa-container",p.appendChild(b)}r.domEl=p,f.render||f.template||!n.rootComponent||(f.render=function(g){return g(n.rootComponent)}),f.data||(f.data={});var h=f.data;if(f.data=function(){return es(es({},typeof h=="function"?h.call(this,this):h),e)},n.createApp){if(r.vueInstance=n.createApp(f),n.handleInstance)return Promise.resolve(n.handleInstance(r.vueInstance,e)).then(function(){return r.root=r.vueInstance.mount(f.el),t[e.name]=r,r.vueInstance});r.root=r.vueInstance.mount(f.el)}else if(r.vueInstance=new n.Vue(f),r.vueInstance.bind&&(r.vueInstance=r.vueInstance.bind(r.vueInstance)),n.handleInstance)return Promise.resolve(n.handleInstance(r.vueInstance,e)).then(function(){return t[e.name]=r,r.vueInstance});return t[e.name]=r,r.vueInstance})})}function _b(n,t,e){return Promise.resolve().then(function(){var r=t[e.name],f=es(es({},n.appOptions.data||{}),e),p=r.root||r.vueInstance;for(var y in f)p[y]=f[y]})}function Tb(n,t,e){return Promise.resolve().then(function(){var r=t[e.name];n.createApp?r.vueInstance.unmount(r.domEl):(r.vueInstance.$destroy(),r.vueInstance.$el.innerHTML=""),delete r.vueInstance,r.domEl&&(r.domEl.innerHTML="",delete r.domEl)})}const $b=tr("_",(n,t)=>{const e=n.__vccOpts||n;for(const[r,f]of t)e[r]=f;return e}),Mb={};function Ib(n,t){const e=wt("router-view"),r=wt("v-app");return hn(),Wr(r,{id:"innerapp"},{default:ht(()=>[Ke(e)]),_:1})}const Eb=$b(Mb,[["render",Ib]]),VN="modulepreload",KN=function(n){return"/"+n},qN={},st=function(t,e,r){let f=Promise.resolve();function p(y){const b=new Event("vite:preloadError",{cancelable:!0});if(b.payload=y,window.dispatchEvent(b),!b.defaultPrevented)throw y}return f.then(y=>{for(const b of y||[])b.status==="rejected"&&p(b.reason);return t().catch(p)})},wp=function(n){var t;!n.name!=="NotFound"&&(n.path=`/tools/packetviewer/${n.path.replace(/^\//,"")}`),(t=n.children)==null||t.forEach(wp)},so=tr("d",(n,t)=>{const e=n.__vccOpts||n;for(const[r,f]of t)e[r]=f;return e}),Rb="/icons/customIcons.svg",Zc={props:{icon:{type:String},size:{type:String,default:"small"},color:{type:String,default:"white"}},computed:{iconSrc:function(){return Rb+"#"+this.icon}}},bp=()=>{tp(n=>({"259824e2":n.color}))},xp=Zc.setup;Zc.setup=xp?(n,t)=>(bp(),xp(n,t)):bp;const Lb={class:"cosmos-custom-icon"},Ob={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",preserveAspectRatio:"xMidYMid meet",focusable:"false"},Nb=["href"];function Db(n,t,e,r,f,p){return hn(),Br("span",Lb,[(hn(),Br("svg",Ob,[zr("use",{href:p.iconSrc},null,8,Nb)]))])}const Pb=so(Zc,[["render",Db],["__scopeId","data-v-4b6f1199"]]),hl=6e4,Jc=36e5,Fb=1e3,Cp=Symbol.for("constructDateFrom");function Gn(n,t){return typeof n=="function"?n(t):n&&typeof n=="object"&&Cp in n?n[Cp](t):n instanceof Date?new n.constructor(t):new Date(t)}function Cn(n,t){return Gn(t||n,n)}let Wb={};function Fs(){return Wb}function Io(n,t){var e,r,f,p;const y=Fs(),b=(t==null?void 0:t.weekStartsOn)??((r=(e=t==null?void 0:t.locale)==null?void 0:e.options)==null?void 0:r.weekStartsOn)??y.weekStartsOn??((p=(f=y.locale)==null?void 0:f.options)==null?void 0:p.weekStartsOn)??0,h=Cn(n,t==null?void 0:t.in),g=h.getDay(),s=(g<b?7:0)+g-b;return h.setDate(h.getDate()-s),h.setHours(0,0,0,0),h}function Ws(n,t){return Io(n,{...t,weekStartsOn:1})}function kp(n,t){const e=Cn(n,void 0),r=e.getFullYear(),f=Gn(e,0);f.setFullYear(r+1,0,4),f.setHours(0,0,0,0);const p=Ws(f),y=Gn(e,0);y.setFullYear(r,0,4),y.setHours(0,0,0,0);const b=Ws(y);return e.getTime()>=p.getTime()?r+1:e.getTime()>=b.getTime()?r:r-1}function dl(n){const t=Cn(n),e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),+n-+e}function Bb(n,...t){const e=Gn.bind(null,t.find(r=>typeof r=="object"));return t.map(e)}function Sp(n,t){const e=Cn(n,void 0);return e.setHours(0,0,0,0),e}function zb(n,t,e){const[r,f]=Bb(void 0,n,t),p=Sp(r),y=Sp(f),b=+p-dl(p),h=+y-dl(y);return Math.round((b-h)/864e5)}function jb(n,t){const e=kp(n),r=Gn(n,0);return r.setFullYear(e,0,4),r.setHours(0,0,0,0),Ws(r)}function Hb(n){return n instanceof Date||typeof n=="object"&&Object.prototype.toString.call(n)==="[object Date]"}function Ap(n){return!(!Hb(n)&&typeof n!="number"||isNaN(+Cn(n)))}function Ub(n,t){const e=Cn(n,void 0);return e.setFullYear(e.getFullYear(),0,1),e.setHours(0,0,0,0),e}const Vb={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Kb=(n,t,e)=>{let r;const f=Vb[n];return typeof f=="string"?r=f:t===1?r=f.one:r=f.other.replace("{{count}}",t.toString()),e!=null&&e.addSuffix?e.comparison&&e.comparison>0?"in "+r:r+" ago":r};function eu(n){return(t={})=>{const e=t.width?String(t.width):n.defaultWidth;return n.formats[e]||n.formats[n.defaultWidth]}}const qb={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Gb={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Yb={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Xb={date:eu({formats:qb,defaultWidth:"full"}),time:eu({formats:Gb,defaultWidth:"full"}),dateTime:eu({formats:Yb,defaultWidth:"full"})},Qb={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Zb=(n,t,e,r)=>Qb[n];function ba(n){return(t,e)=>{const r=e!=null&&e.context?String(e.context):"standalone";let f;if(r==="formatting"&&n.formattingValues){const y=n.defaultFormattingWidth||n.defaultWidth,b=e!=null&&e.width?String(e.width):y;f=n.formattingValues[b]||n.formattingValues[y]}else{const y=n.defaultWidth,b=e!=null&&e.width?String(e.width):n.defaultWidth;f=n.values[b]||n.values[y]}const p=n.argumentCallback?n.argumentCallback(t):t;return f[p]}}const Jb={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},e0={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},t0={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},n0={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},r0={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},i0={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},o0=(n,t)=>{const e=Number(n),r=e%100;if(r>20||r<10)switch(r%10){case 1:return e+"st";case 2:return e+"nd";case 3:return e+"rd"}return e+"th"},s0={ordinalNumber:o0,era:ba({values:Jb,defaultWidth:"wide"}),quarter:ba({values:e0,defaultWidth:"wide",argumentCallback:n=>n-1}),month:ba({values:t0,defaultWidth:"wide"}),day:ba({values:n0,defaultWidth:"wide"}),dayPeriod:ba({values:r0,defaultWidth:"wide",formattingValues:i0,defaultFormattingWidth:"wide"})};function xa(n){return(t,e={})=>{const r=e.width,f=r&&n.matchPatterns[r]||n.matchPatterns[n.defaultMatchWidth],p=t.match(f);if(!p)return null;const y=p[0],b=r&&n.parsePatterns[r]||n.parsePatterns[n.defaultParseWidth],h=Array.isArray(b)?l0(b,l=>l.test(y)):a0(b,l=>l.test(y));let g;g=n.valueCallback?n.valueCallback(h):h,g=e.valueCallback?e.valueCallback(g):g;const s=t.slice(y.length);return{value:g,rest:s}}}function a0(n,t){for(const e in n)if(Object.prototype.hasOwnProperty.call(n,e)&&t(n[e]))return e}function l0(n,t){for(let e=0;e<n.length;e++)if(t(n[e]))return e}function c0(n){return(t,e={})=>{const r=t.match(n.matchPattern);if(!r)return null;const f=r[0],p=t.match(n.parsePattern);if(!p)return null;let y=n.valueCallback?n.valueCallback(p[0]):p[0];y=e.valueCallback?e.valueCallback(y):y;const b=t.slice(f.length);return{value:y,rest:b}}}const u0=/^(\d+)(th|st|nd|rd)?/i,h0=/\d+/i,d0={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},p0={any:[/^b/i,/^(a|c)/i]},g0={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},f0={any:[/1/i,/2/i,/3/i,/4/i]},m0={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},v0={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},y0={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},w0={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},b0={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},x0={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},C0={ordinalNumber:c0({matchPattern:u0,parsePattern:h0,valueCallback:n=>parseInt(n,10)}),era:xa({matchPatterns:d0,defaultMatchWidth:"wide",parsePatterns:p0,defaultParseWidth:"any"}),quarter:xa({matchPatterns:g0,defaultMatchWidth:"wide",parsePatterns:f0,defaultParseWidth:"any",valueCallback:n=>n+1}),month:xa({matchPatterns:m0,defaultMatchWidth:"wide",parsePatterns:v0,defaultParseWidth:"any"}),day:xa({matchPatterns:y0,defaultMatchWidth:"wide",parsePatterns:w0,defaultParseWidth:"any"}),dayPeriod:xa({matchPatterns:b0,defaultMatchWidth:"any",parsePatterns:x0,defaultParseWidth:"any"})},_p={code:"en-US",formatDistance:Kb,formatLong:Xb,formatRelative:Zb,localize:s0,match:C0,options:{weekStartsOn:0,firstWeekContainsDate:1}};function k0(n,t){const e=Cn(n,void 0);return zb(e,Ub(e))+1}function Tp(n,t){const e=Cn(n,void 0),r=+Ws(e)-+jb(e);return Math.round(r/6048e5)+1}function tu(n,t){var e,r,f,p;const y=Cn(n,t==null?void 0:t.in),b=y.getFullYear(),h=Fs(),g=(t==null?void 0:t.firstWeekContainsDate)??((r=(e=t==null?void 0:t.locale)==null?void 0:e.options)==null?void 0:r.firstWeekContainsDate)??h.firstWeekContainsDate??((p=(f=h.locale)==null?void 0:f.options)==null?void 0:p.firstWeekContainsDate)??1,s=Gn((t==null?void 0:t.in)||n,0);s.setFullYear(b+1,0,g),s.setHours(0,0,0,0);const l=Io(s,t),u=Gn((t==null?void 0:t.in)||n,0);u.setFullYear(b,0,g),u.setHours(0,0,0,0);const a=Io(u,t);return+y>=+l?b+1:+y>=+a?b:b-1}function S0(n,t){var e,r,f,p;const y=Fs(),b=(t==null?void 0:t.firstWeekContainsDate)??((r=(e=t==null?void 0:t.locale)==null?void 0:e.options)==null?void 0:r.firstWeekContainsDate)??y.firstWeekContainsDate??((p=(f=y.locale)==null?void 0:f.options)==null?void 0:p.firstWeekContainsDate)??1,h=tu(n,t),g=Gn((t==null?void 0:t.in)||n,0);return g.setFullYear(h,0,b),g.setHours(0,0,0,0),Io(g,t)}function $p(n,t){const e=Cn(n,t==null?void 0:t.in),r=+Io(e,t)-+S0(e,t);return Math.round(r/6048e5)+1}function an(n,t){const e=n<0?"-":"",r=Math.abs(n).toString().padStart(t,"0");return e+r}const Eo={y(n,t){const e=n.getFullYear(),r=e>0?e:1-e;return an(t==="yy"?r%100:r,t.length)},M(n,t){const e=n.getMonth();return t==="M"?String(e+1):an(e+1,2)},d(n,t){return an(n.getDate(),t.length)},a(n,t){const e=n.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return e.toUpperCase();case"aaa":return e;case"aaaaa":return e[0];case"aaaa":default:return e==="am"?"a.m.":"p.m."}},h(n,t){return an(n.getHours()%12||12,t.length)},H(n,t){return an(n.getHours(),t.length)},m(n,t){return an(n.getMinutes(),t.length)},s(n,t){return an(n.getSeconds(),t.length)},S(n,t){const e=t.length,r=n.getMilliseconds(),f=Math.trunc(r*Math.pow(10,e-3));return an(f,t.length)}},Bs={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Mp={G:function(n,t,e){const r=n.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return e.era(r,{width:"abbreviated"});case"GGGGG":return e.era(r,{width:"narrow"});case"GGGG":default:return e.era(r,{width:"wide"})}},y:function(n,t,e){if(t==="yo"){const r=n.getFullYear(),f=r>0?r:1-r;return e.ordinalNumber(f,{unit:"year"})}return Eo.y(n,t)},Y:function(n,t,e,r){const f=tu(n,r),p=f>0?f:1-f;if(t==="YY"){const y=p%100;return an(y,2)}return t==="Yo"?e.ordinalNumber(p,{unit:"year"}):an(p,t.length)},R:function(n,t){const e=kp(n);return an(e,t.length)},u:function(n,t){const e=n.getFullYear();return an(e,t.length)},Q:function(n,t,e){const r=Math.ceil((n.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return an(r,2);case"Qo":return e.ordinalNumber(r,{unit:"quarter"});case"QQQ":return e.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return e.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return e.quarter(r,{width:"wide",context:"formatting"})}},q:function(n,t,e){const r=Math.ceil((n.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return an(r,2);case"qo":return e.ordinalNumber(r,{unit:"quarter"});case"qqq":return e.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return e.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return e.quarter(r,{width:"wide",context:"standalone"})}},M:function(n,t,e){const r=n.getMonth();switch(t){case"M":case"MM":return Eo.M(n,t);case"Mo":return e.ordinalNumber(r+1,{unit:"month"});case"MMM":return e.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return e.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return e.month(r,{width:"wide",context:"formatting"})}},L:function(n,t,e){const r=n.getMonth();switch(t){case"L":return String(r+1);case"LL":return an(r+1,2);case"Lo":return e.ordinalNumber(r+1,{unit:"month"});case"LLL":return e.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return e.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return e.month(r,{width:"wide",context:"standalone"})}},w:function(n,t,e,r){const f=$p(n,r);return t==="wo"?e.ordinalNumber(f,{unit:"week"}):an(f,t.length)},I:function(n,t,e){const r=Tp(n);return t==="Io"?e.ordinalNumber(r,{unit:"week"}):an(r,t.length)},d:function(n,t,e){return t==="do"?e.ordinalNumber(n.getDate(),{unit:"date"}):Eo.d(n,t)},D:function(n,t,e){const r=k0(n);return t==="Do"?e.ordinalNumber(r,{unit:"dayOfYear"}):an(r,t.length)},E:function(n,t,e){const r=n.getDay();switch(t){case"E":case"EE":case"EEE":return e.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return e.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return e.day(r,{width:"short",context:"formatting"});case"EEEE":default:return e.day(r,{width:"wide",context:"formatting"})}},e:function(n,t,e,r){const f=n.getDay(),p=(f-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(p);case"ee":return an(p,2);case"eo":return e.ordinalNumber(p,{unit:"day"});case"eee":return e.day(f,{width:"abbreviated",context:"formatting"});case"eeeee":return e.day(f,{width:"narrow",context:"formatting"});case"eeeeee":return e.day(f,{width:"short",context:"formatting"});case"eeee":default:return e.day(f,{width:"wide",context:"formatting"})}},c:function(n,t,e,r){const f=n.getDay(),p=(f-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(p);case"cc":return an(p,t.length);case"co":return e.ordinalNumber(p,{unit:"day"});case"ccc":return e.day(f,{width:"abbreviated",context:"standalone"});case"ccccc":return e.day(f,{width:"narrow",context:"standalone"});case"cccccc":return e.day(f,{width:"short",context:"standalone"});case"cccc":default:return e.day(f,{width:"wide",context:"standalone"})}},i:function(n,t,e){const r=n.getDay(),f=r===0?7:r;switch(t){case"i":return String(f);case"ii":return an(f,t.length);case"io":return e.ordinalNumber(f,{unit:"day"});case"iii":return e.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return e.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return e.day(r,{width:"short",context:"formatting"});case"iiii":default:return e.day(r,{width:"wide",context:"formatting"})}},a:function(n,t,e){const r=n.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return e.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return e.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(n,t,e){const r=n.getHours();let f;switch(r===12?f=Bs.noon:r===0?f=Bs.midnight:f=r/12>=1?"pm":"am",t){case"b":case"bb":return e.dayPeriod(f,{width:"abbreviated",context:"formatting"});case"bbb":return e.dayPeriod(f,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return e.dayPeriod(f,{width:"narrow",context:"formatting"});case"bbbb":default:return e.dayPeriod(f,{width:"wide",context:"formatting"})}},B:function(n,t,e){const r=n.getHours();let f;switch(r>=17?f=Bs.evening:r>=12?f=Bs.afternoon:r>=4?f=Bs.morning:f=Bs.night,t){case"B":case"BB":case"BBB":return e.dayPeriod(f,{width:"abbreviated",context:"formatting"});case"BBBBB":return e.dayPeriod(f,{width:"narrow",context:"formatting"});case"BBBB":default:return e.dayPeriod(f,{width:"wide",context:"formatting"})}},h:function(n,t,e){if(t==="ho"){let r=n.getHours()%12;return r===0&&(r=12),e.ordinalNumber(r,{unit:"hour"})}return Eo.h(n,t)},H:function(n,t,e){return t==="Ho"?e.ordinalNumber(n.getHours(),{unit:"hour"}):Eo.H(n,t)},K:function(n,t,e){const r=n.getHours()%12;return t==="Ko"?e.ordinalNumber(r,{unit:"hour"}):an(r,t.length)},k:function(n,t,e){let r=n.getHours();return r===0&&(r=24),t==="ko"?e.ordinalNumber(r,{unit:"hour"}):an(r,t.length)},m:function(n,t,e){return t==="mo"?e.ordinalNumber(n.getMinutes(),{unit:"minute"}):Eo.m(n,t)},s:function(n,t,e){return t==="so"?e.ordinalNumber(n.getSeconds(),{unit:"second"}):Eo.s(n,t)},S:function(n,t){return Eo.S(n,t)},X:function(n,t,e){const r=n.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return Ep(r);case"XXXX":case"XX":return ns(r);case"XXXXX":case"XXX":default:return ns(r,":")}},x:function(n,t,e){const r=n.getTimezoneOffset();switch(t){case"x":return Ep(r);case"xxxx":case"xx":return ns(r);case"xxxxx":case"xxx":default:return ns(r,":")}},O:function(n,t,e){const r=n.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Ip(r,":");case"OOOO":default:return"GMT"+ns(r,":")}},z:function(n,t,e){const r=n.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Ip(r,":");case"zzzz":default:return"GMT"+ns(r,":")}},t:function(n,t,e){const r=Math.trunc(+n/1e3);return an(r,t.length)},T:function(n,t,e){return an(+n,t.length)}};function Ip(n,t=""){const e=n>0?"-":"+",r=Math.abs(n),f=Math.trunc(r/60),p=r%60;return p===0?e+String(f):e+String(f)+t+an(p,2)}function Ep(n,t){return n%60===0?(n>0?"-":"+")+an(Math.abs(n)/60,2):ns(n,t)}function ns(n,t=""){const e=n>0?"-":"+",r=Math.abs(n),f=an(Math.trunc(r/60),2),p=an(r%60,2);return e+f+t+p}const Rp=(n,t)=>{switch(n){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},Lp=(n,t)=>{switch(n){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},A0=(n,t)=>{const e=n.match(/(P+)(p+)?/)||[],r=e[1],f=e[2];if(!f)return Rp(n,t);let p;switch(r){case"P":p=t.dateTime({width:"short"});break;case"PP":p=t.dateTime({width:"medium"});break;case"PPP":p=t.dateTime({width:"long"});break;case"PPPP":default:p=t.dateTime({width:"full"});break}return p.replace("{{date}}",Rp(r,t)).replace("{{time}}",Lp(f,t))},nu={p:Lp,P:A0},_0=/^D+$/,T0=/^Y+$/,$0=["D","DD","YY","YYYY"];function Op(n){return _0.test(n)}function Np(n){return T0.test(n)}function ru(n,t,e){const r=M0(n,t,e);if(console.warn(r),$0.includes(n))throw new RangeError(r)}function M0(n,t,e){const r=n[0]==="Y"?"years":"days of the month";return`Use \`${n.toLowerCase()}\` instead of \`${n}\` (in \`${t}\`) for formatting ${r} to the input \`${e}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const I0=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,E0=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,R0=/^'([^]*?)'?$/,L0=/''/g,O0=/[a-zA-Z]/;function rs(n,t,e){var r,f,p,y,b,h,g,s;const l=Fs(),u=(e==null?void 0:e.locale)??l.locale??_p,a=(e==null?void 0:e.firstWeekContainsDate)??((f=(r=e==null?void 0:e.locale)==null?void 0:r.options)==null?void 0:f.firstWeekContainsDate)??l.firstWeekContainsDate??((y=(p=l.locale)==null?void 0:p.options)==null?void 0:y.firstWeekContainsDate)??1,o=(e==null?void 0:e.weekStartsOn)??((h=(b=e==null?void 0:e.locale)==null?void 0:b.options)==null?void 0:h.weekStartsOn)??l.weekStartsOn??((s=(g=l.locale)==null?void 0:g.options)==null?void 0:s.weekStartsOn)??0,c=Cn(n,e==null?void 0:e.in);if(!Ap(c))throw new RangeError("Invalid time value");let d=t.match(E0).map(x=>{const E=x[0];if(E==="p"||E==="P"){const $=nu[E];return $(x,u.formatLong)}return x}).join("").match(I0).map(x=>{if(x==="''")return{isToken:!1,value:"'"};const E=x[0];if(E==="'")return{isToken:!1,value:N0(x)};if(Mp[E])return{isToken:!0,value:x};if(E.match(O0))throw new RangeError("Format string contains an unescaped latin alphabet character `"+E+"`");return{isToken:!1,value:x}});u.localize.preprocessor&&(d=u.localize.preprocessor(c,d));const w={firstWeekContainsDate:a,weekStartsOn:o,locale:u};return d.map(x=>{if(!x.isToken)return x.value;const E=x.value;(!(e!=null&&e.useAdditionalWeekYearTokens)&&Np(E)||!(e!=null&&e.useAdditionalDayOfYearTokens)&&Op(E))&&ru(E,t,String(n));const $=Mp[E[0]];return $(c,E,u.localize,w)}).join("")}function N0(n){const t=n.match(R0);return t?t[1].replace(L0,"'"):n}var Ro=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function pl(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Dp={exports:{}},Pp;function D0(){return Pp||(Pp=1,function(n,t){(function(){var e="ace",r=function(){return this}();!r&&typeof window<"u"&&(r=window);var f=function(s,l,u){if(typeof s!="string"){f.original?f.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace());return}arguments.length==2&&(u=l),f.modules[s]||(f.payloads[s]=u,f.modules[s]=null)};f.modules={},f.payloads={};var p=function(s,l,u){if(typeof l=="string"){var a=h(s,l);if(a!=null)return u&&u(),a}else if(Object.prototype.toString.call(l)==="[object Array]"){for(var o=[],c=0,d=l.length;c<d;++c){var w=h(s,l[c]);if(w==null&&y.original)return;o.push(w)}return u&&u.apply(null,o)||!0}},y=function(s,l){var u=p("",s,l);return u==null&&y.original?y.original.apply(this,arguments):u},b=function(s,l){if(l.indexOf("!")!==-1){var u=l.split("!");return b(s,u[0])+"!"+b(s,u[1])}if(l.charAt(0)=="."){var a=s.split("/").slice(0,-1).join("/");for(l=a+"/"+l;l.indexOf(".")!==-1&&o!=l;){var o=l;l=l.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return l},h=function(s,l){l=b(s,l);var u=f.modules[l];if(!u){if(u=f.payloads[l],typeof u=="function"){var a={},o={id:l,uri:"",exports:a,packaged:!0},c=function(w,x){return p(l,w,x)},d=u(c,a,o);a=d||o.exports,f.modules[l]=a,delete f.payloads[l]}u=f.modules[l]=a||u}return u};function g(s){var l=r;r[s]||(r[s]={}),l=r[s],(!l.define||!l.define.packaged)&&(f.original=l.define,l.define=f,l.define.packaged=!0),(!l.require||!l.require.packaged)&&(y.original=l.require,l.require=y,l.require.packaged=!0)}g(e)})(),ace.define("ace/lib/es6-shim",["require","exports","module"],function(e,r,f){function p(y,b,h){Object.defineProperty(y,b,{value:h,enumerable:!1,writable:!0,configurable:!0})}String.prototype.startsWith||p(String.prototype,"startsWith",function(y,b){return b=b||0,this.lastIndexOf(y,b)===b}),String.prototype.endsWith||p(String.prototype,"endsWith",function(y,b){var h=this;(b===void 0||b>h.length)&&(b=h.length),b-=y.length;var g=h.indexOf(y,b);return g!==-1&&g===b}),String.prototype.repeat||p(String.prototype,"repeat",function(y){for(var b="",h=this;y>0;)y&1&&(b+=h),(y>>=1)&&(h+=h);return b}),String.prototype.includes||p(String.prototype,"includes",function(y,b){return this.indexOf(y,b)!=-1}),Object.assign||(Object.assign=function(y){if(y==null)throw new TypeError("Cannot convert undefined or null to object");for(var b=Object(y),h=1;h<arguments.length;h++){var g=arguments[h];g!=null&&Object.keys(g).forEach(function(s){b[s]=g[s]})}return b}),Object.values||(Object.values=function(y){return Object.keys(y).map(function(b){return y[b]})}),Array.prototype.find||p(Array.prototype,"find",function(y){for(var b=this.length,h=arguments[1],g=0;g<b;g++){var s=this[g];if(y.call(h,s,g,this))return s}}),Array.prototype.findIndex||p(Array.prototype,"findIndex",function(y){for(var b=this.length,h=arguments[1],g=0;g<b;g++){var s=this[g];if(y.call(h,s,g,this))return g}}),Array.prototype.includes||p(Array.prototype,"includes",function(y,b){return this.indexOf(y,b)!=-1}),Array.prototype.fill||p(Array.prototype,"fill",function(y){for(var b=this,h=b.length>>>0,g=arguments[1],s=g>>0,l=s<0?Math.max(h+s,0):Math.min(s,h),u=arguments[2],a=u===void 0?h:u>>0,o=a<0?Math.max(h+a,0):Math.min(a,h);l<o;)b[l]=y,l++;return b}),Array.of||p(Array,"of",function(){return Array.prototype.slice.call(arguments)})}),ace.define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/es6-shim"],function(e,r,f){e("./es6-shim")}),ace.define("ace/lib/deep_copy",["require","exports","module"],function(e,r,f){r.deepCopy=function p(y){if(typeof y!="object"||!y)return y;var b;if(Array.isArray(y)){b=[];for(var h=0;h<y.length;h++)b[h]=p(y[h]);return b}if(Object.prototype.toString.call(y)!=="[object Object]")return y;b={};for(var h in y)b[h]=p(y[h]);return b}}),ace.define("ace/lib/lang",["require","exports","module","ace/lib/deep_copy"],function(e,r,f){r.last=function(b){return b[b.length-1]},r.stringReverse=function(b){return b.split("").reverse().join("")},r.stringRepeat=function(b,h){for(var g="";h>0;)h&1&&(g+=b),(h>>=1)&&(b+=b);return g};var p=/^\s\s*/,y=/\s\s*$/;r.stringTrimLeft=function(b){return b.replace(p,"")},r.stringTrimRight=function(b){return b.replace(y,"")},r.copyObject=function(b){var h={};for(var g in b)h[g]=b[g];return h},r.copyArray=function(b){for(var h=[],g=0,s=b.length;g<s;g++)b[g]&&typeof b[g]=="object"?h[g]=this.copyObject(b[g]):h[g]=b[g];return h},r.deepCopy=e("./deep_copy").deepCopy,r.arrayToMap=function(b){for(var h={},g=0;g<b.length;g++)h[b[g]]=1;return h},r.createMap=function(b){var h=Object.create(null);for(var g in b)h[g]=b[g];return h},r.arrayRemove=function(b,h){for(var g=0;g<=b.length;g++)h===b[g]&&b.splice(g,1)},r.escapeRegExp=function(b){return b.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},r.escapeHTML=function(b){return(""+b).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<")},r.getMatchOffsets=function(b,h){var g=[];return b.replace(h,function(s){g.push({offset:arguments[arguments.length-2],length:s.length})}),g},r.deferredCall=function(b){var h=null,g=function(){h=null,b()},s=function(l){return s.cancel(),h=setTimeout(g,l||0),s};return s.schedule=s,s.call=function(){return this.cancel(),b(),s},s.cancel=function(){return clearTimeout(h),h=null,s},s.isPending=function(){return h},s},r.delayedCall=function(b,h){var g=null,s=function(){g=null,b()},l=function(u){g==null&&(g=setTimeout(s,u||h))};return l.delay=function(u){g&&clearTimeout(g),g=setTimeout(s,u||h)},l.schedule=l,l.call=function(){this.cancel(),b()},l.cancel=function(){g&&clearTimeout(g),g=null},l.isPending=function(){return g},l},r.supportsLookbehind=function(){try{new RegExp("(?<=.)")}catch{return!1}return!0},r.skipEmptyMatch=function(b,h,g){return g&&b.codePointAt(h)>65535?2:1}}),ace.define("ace/lib/useragent",["require","exports","module"],function(e,r,f){r.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},r.getOS=function(){return r.isMac?r.OS.MAC:r.isLinux?r.OS.LINUX:r.OS.WINDOWS};var p=typeof navigator=="object"?navigator:{},y=(/mac|win|linux/i.exec(p.platform)||["other"])[0].toLowerCase(),b=p.userAgent||"",h=p.appName||"";r.isWin=y=="win",r.isMac=y=="mac",r.isLinux=y=="linux",r.isIE=h=="Microsoft Internet Explorer"||h.indexOf("MSAppHost")>=0?parseFloat((b.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((b.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),r.isOldIE=r.isIE&&r.isIE<9,r.isGecko=r.isMozilla=b.match(/ Gecko\/\d+/),r.isOpera=typeof opera=="object"&&Object.prototype.toString.call(window.opera)=="[object Opera]",r.isWebKit=parseFloat(b.split("WebKit/")[1])||void 0,r.isChrome=parseFloat(b.split(" Chrome/")[1])||void 0,r.isSafari=parseFloat(b.split(" Safari/")[1])&&!r.isChrome||void 0,r.isEdge=parseFloat(b.split(" Edge/")[1])||void 0,r.isAIR=b.indexOf("AdobeAIR")>=0,r.isAndroid=b.indexOf("Android")>=0,r.isChromeOS=b.indexOf(" CrOS ")>=0,r.isIOS=/iPad|iPhone|iPod/.test(b)&&!window.MSStream,r.isIOS&&(r.isMac=!0),r.isMobile=r.isIOS||r.isAndroid}),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],function(e,r,f){var p=e("./useragent"),y="http://www.w3.org/1999/xhtml";r.buildDom=function u(a,o,c){if(typeof a=="string"&&a){var d=document.createTextNode(a);return o&&o.appendChild(d),d}if(!Array.isArray(a))return a&&a.appendChild&&o&&o.appendChild(a),a;if(typeof a[0]!="string"||!a[0]){for(var w=[],x=0;x<a.length;x++){var E=u(a[x],o,c);E&&w.push(E)}return w}var $=document.createElement(a[0]),S=a[1],C=1;S&&typeof S=="object"&&!Array.isArray(S)&&(C=2);for(var x=C;x<a.length;x++)u(a[x],$,c);return C==2&&Object.keys(S).forEach(function(R){var L=S[R];R==="class"?$.className=Array.isArray(L)?L.join(" "):L:typeof L=="function"||R=="value"||R[0]=="$"?$[R]=L:R==="ref"?c&&(c[L]=$):R==="style"?typeof L=="string"&&($.style.cssText=L):L!=null&&$.setAttribute(R,L)}),o&&o.appendChild($),$},r.getDocumentHead=function(u){return u||(u=document),u.head||u.getElementsByTagName("head")[0]||u.documentElement},r.createElement=function(u,a){return document.createElementNS?document.createElementNS(a||y,u):document.createElement(u)},r.removeChildren=function(u){u.innerHTML=""},r.createTextNode=function(u,a){var o=a?a.ownerDocument:document;return o.createTextNode(u)},r.createFragment=function(u){var a=u?u.ownerDocument:document;return a.createDocumentFragment()},r.hasCssClass=function(u,a){var o=(u.className+"").split(/\s+/g);return o.indexOf(a)!==-1},r.addCssClass=function(u,a){r.hasCssClass(u,a)||(u.className+=" "+a)},r.removeCssClass=function(u,a){for(var o=u.className.split(/\s+/g);;){var c=o.indexOf(a);if(c==-1)break;o.splice(c,1)}u.className=o.join(" ")},r.toggleCssClass=function(u,a){for(var o=u.className.split(/\s+/g),c=!0;;){var d=o.indexOf(a);if(d==-1)break;c=!1,o.splice(d,1)}return c&&o.push(a),u.className=o.join(" "),c},r.setCssClass=function(u,a,o){o?r.addCssClass(u,a):r.removeCssClass(u,a)},r.hasCssString=function(u,a){var o=0,c;if(a=a||document,c=a.querySelectorAll("style")){for(;o<c.length;)if(c[o++].id===u)return!0}},r.removeElementById=function(u,a){a=a||document,a.getElementById(u)&&a.getElementById(u).remove()};var b,h=[];r.useStrictCSP=function(u){b=u,u==!1?g():h||(h=[])};function g(){var u=h;h=null,u&&u.forEach(function(a){s(a[0],a[1])})}function s(u,a,o){if(!(typeof document>"u")){if(h){if(o)g();else if(o===!1)return h.push([u,a])}if(!b){var c=o;!o||!o.getRootNode?c=document:(c=o.getRootNode(),(!c||c==o)&&(c=document));var d=c.ownerDocument||c;if(a&&r.hasCssString(a,c))return null;a&&(u+=`
|
2
2
|
/*# sourceURL=ace/css/`+a+" */");var w=r.createElement("style");w.appendChild(d.createTextNode(u)),a&&(w.id=a),c==d&&(c=r.getDocumentHead(d)),c.insertBefore(w,c.firstChild)}}}if(r.importCssString=s,r.importCssStylsheet=function(u,a){r.buildDom(["link",{rel:"stylesheet",href:u}],r.getDocumentHead(a))},r.scrollbarWidth=function(u){var a=r.createElement("ace_inner");a.style.width="100%",a.style.minWidth="0px",a.style.height="200px",a.style.display="block";var o=r.createElement("ace_outer"),c=o.style;c.position="absolute",c.left="-10000px",c.overflow="hidden",c.width="200px",c.minWidth="0px",c.height="150px",c.display="block",o.appendChild(a);var d=u&&u.documentElement||document&&document.documentElement;if(!d)return 0;d.appendChild(o);var w=a.offsetWidth;c.overflow="scroll";var x=a.offsetWidth;return w===x&&(x=o.clientWidth),d.removeChild(o),w-x},r.computedStyle=function(u,a){return window.getComputedStyle(u,"")||{}},r.setStyle=function(u,a,o){u[a]!==o&&(u[a]=o)},r.HAS_CSS_ANIMATION=!1,r.HAS_CSS_TRANSFORMS=!1,r.HI_DPI=p.isWin?typeof window<"u"&&window.devicePixelRatio>=1.5:!0,p.isChromeOS&&(r.HI_DPI=!1),typeof document<"u"){var l=document.createElement("div");r.HI_DPI&&l.style.transform!==void 0&&(r.HAS_CSS_TRANSFORMS=!0),!p.isEdge&&typeof l.style.animationName<"u"&&(r.HAS_CSS_ANIMATION=!0),l=null}r.HAS_CSS_TRANSFORMS?r.translate=function(u,a,o){u.style.transform="translate("+Math.round(a)+"px, "+Math.round(o)+"px)"}:r.translate=function(u,a,o){u.style.top=Math.round(o)+"px",u.style.left=Math.round(a)+"px"}}),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(e,r,f){/*
|
3
3
|
* based on code from:
|
4
4
|
*
|
@@ -170,12 +170,12 @@ System.register(["vue","vue-router","single-spa","vuex","vuetify"],function(er,o
|
|
170
170
|
`+Xe}else if(At.end.row>Z){var xt=C.session.getLine(Z+1);ze=At.end.row>Z+1?xt.length:At.end.column,ze+=Xe.length+1,Xe=Xe+`
|
171
171
|
`+xt}else E&&St>0&&(Xe=`
|
172
172
|
`+Xe,ze+=1,ke+=1);Xe.length>o&&(ke<o&&ze<o?Xe=Xe.slice(0,o):(Xe=`
|
173
|
-
`,ke==ze?ke=ze=0:(ke=0,ze=1)));var
|
173
|
+
`,ke==ze?ke=ze=0:(ke=0,ze=1)));var kn=Xe+`
|
174
174
|
|
175
|
-
`;
|
176
|
-
`:Dt},Ie=function(ke){if(I)return
|
177
|
-
`?xt=c.end:Ot<N&&A[Ot-1]==" "?(xt=c.left,
|
178
|
-
`).length>2?xt=c.down:ut>B&&A[ut-1]==" "?(xt=c.right,Cn=d.option):(ut>B||ut==B&&B!=N&&Ot==ut)&&(xt=c.right),Ot!==ut&&(Cn|=d.shift),xt){var kr=ze.onCommandKey({},Cn,xt);if(!kr&&ze.commands){xt=c.keyCodeToString(xt);var Kr=ze.commands.findKeyCommand(Cn,xt);Kr&&ze.execCommand(Kr)}N=Ot,B=ut,ae("")}}};document.addEventListener("selectionchange",St),ze.on("destroy",function(){document.removeEventListener("selectionchange",St)})}this.destroy=function(){R.parentElement&&R.parentElement.removeChild(R)}},r.TextInput=$,r.$setUserAgentForTests=function(S,C){E=S,w=C}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(e,r,f){var p=e("../lib/useragent"),y=0,b=550,h=function(){function l(u){u.$clickSelection=null;var a=u.editor;a.setDefaultHandler("mousedown",this.onMouseDown.bind(u)),a.setDefaultHandler("dblclick",this.onDoubleClick.bind(u)),a.setDefaultHandler("tripleclick",this.onTripleClick.bind(u)),a.setDefaultHandler("quadclick",this.onQuadClick.bind(u)),a.setDefaultHandler("mousewheel",this.onMouseWheel.bind(u));var o=["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"];o.forEach(function(c){u[c]=this[c]},this),u.selectByLines=this.extendSelectionBy.bind(u,"getLineRange"),u.selectByWords=this.extendSelectionBy.bind(u,"getWordRange")}return l.prototype.onMouseDown=function(u){var a=u.inSelection(),o=u.getDocumentPosition();this.mousedownEvent=u;var c=this.editor,d=u.getButton();if(d!==0){var w=c.getSelectionRange(),x=w.isEmpty();(x||d==1)&&c.selection.moveToPosition(o),d==2&&(c.textInput.onContextMenu(u.domEvent),p.isMozilla||u.preventDefault());return}if(this.mousedownEvent.time=Date.now(),a&&!c.isFocused()&&(c.focus(),this.$focusTimeout&&!this.$clickSelection&&!c.inMultiSelectMode)){this.setState("focusWait"),this.captureMouse(u);return}return this.captureMouse(u),this.startSelect(o,u.domEvent._clicks>1),u.preventDefault()},l.prototype.startSelect=function(u,a){u=u||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var o=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?o.selection.selectToPosition(u):a||o.selection.moveToPosition(u),a||this.select(),o.setStyle("ace_selecting"),this.setState("select"))},l.prototype.select=function(){var u,a=this.editor,o=a.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var c=this.$clickSelection.comparePoint(o);if(c==-1)u=this.$clickSelection.end;else if(c==1)u=this.$clickSelection.start;else{var d=s(this.$clickSelection,o);o=d.cursor,u=d.anchor}a.selection.setSelectionAnchor(u.row,u.column)}a.selection.selectToPosition(o),a.renderer.scrollCursorIntoView()},l.prototype.extendSelectionBy=function(u){var a,o=this.editor,c=o.renderer.screenToTextCoordinates(this.x,this.y),d=o.selection[u](c.row,c.column);if(this.$clickSelection){var w=this.$clickSelection.comparePoint(d.start),x=this.$clickSelection.comparePoint(d.end);if(w==-1&&x<=0)a=this.$clickSelection.end,(d.end.row!=c.row||d.end.column!=c.column)&&(c=d.start);else if(x==1&&w>=0)a=this.$clickSelection.start,(d.start.row!=c.row||d.start.column!=c.column)&&(c=d.end);else if(w==-1&&x==1)c=d.end,a=d.start;else{var E=s(this.$clickSelection,c);c=E.cursor,a=E.anchor}o.selection.setSelectionAnchor(a.row,a.column)}o.selection.selectToPosition(c),o.renderer.scrollCursorIntoView()},l.prototype.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting")},l.prototype.focusWait=function(){var u=g(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),a=Date.now();(u>y||a-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},l.prototype.onDoubleClick=function(u){var a=u.getDocumentPosition(),o=this.editor,c=o.session,d=c.getBracketRange(a);d?(d.isEmpty()&&(d.start.column--,d.end.column++),this.setState("select")):(d=o.selection.getWordRange(a.row,a.column),this.setState("selectByWords")),this.$clickSelection=d,this.select()},l.prototype.onTripleClick=function(u){var a=u.getDocumentPosition(),o=this.editor;this.setState("selectByLines");var c=o.getSelectionRange();c.isMultiLine()&&c.contains(a.row,a.column)?(this.$clickSelection=o.selection.getLineRange(c.start.row),this.$clickSelection.end=o.selection.getLineRange(c.end.row).end):this.$clickSelection=o.selection.getLineRange(a.row),this.select()},l.prototype.onQuadClick=function(u){var a=this.editor;a.selectAll(),this.$clickSelection=a.getSelectionRange(),this.setState("selectAll")},l.prototype.onMouseWheel=function(u){if(!u.getAccelKey()){u.getShiftKey()&&u.wheelY&&!u.wheelX&&(u.wheelX=u.wheelY,u.wheelY=0);var a=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var o=this.$lastScroll,c=u.domEvent.timeStamp,d=c-o.t,w=d?u.wheelX/d:o.vx,x=d?u.wheelY/d:o.vy;d<b&&(w=(w+o.vx)/2,x=(x+o.vy)/2);var E=Math.abs(w/x),$=!1;if(E>=1&&a.renderer.isScrollableBy(u.wheelX*u.speed,0)&&($=!0),E<=1&&a.renderer.isScrollableBy(0,u.wheelY*u.speed)&&($=!0),$)o.allowed=c;else if(c-o.allowed<b){var S=Math.abs(w)<=1.5*Math.abs(o.vx)&&Math.abs(x)<=1.5*Math.abs(o.vy);S?($=!0,o.allowed=c):o.allowed=0}if(o.t=c,o.vx=w,o.vy=x,$)return a.renderer.scrollBy(u.wheelX*u.speed,u.wheelY*u.speed),u.stop()}},l}();h.prototype.selectEnd=h.prototype.selectByLinesEnd,h.prototype.selectAllEnd=h.prototype.selectByLinesEnd,h.prototype.selectByWordsEnd=h.prototype.selectByLinesEnd,r.DefaultHandlers=h;function g(l,u,a,o){return Math.sqrt(Math.pow(a-l,2)+Math.pow(o-u,2))}function s(l,u){if(l.start.row==l.end.row)var a=2*u.column-l.start.column-l.end.column;else if(l.start.row==l.end.row-1&&!l.start.column&&!l.end.column)var a=u.column-4;else var a=2*u.row-l.start.row-l.end.row;return a<0?{cursor:l.start,anchor:l.end}:{cursor:l.end,anchor:l.start}}}),ace.define("ace/lib/scroll",["require","exports","module"],function(e,r,f){r.preventParentScroll=function(p){p.stopPropagation();var y=p.currentTarget,b=y.scrollHeight>y.clientHeight;b||p.preventDefault()}}),ace.define("ace/tooltip",["require","exports","module","ace/lib/dom","ace/lib/event","ace/range","ace/lib/scroll"],function(e,r,f){var p=this&&this.__extends||function(){var c=function(d,w){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,E){x.__proto__=E}||function(x,E){for(var $ in E)Object.prototype.hasOwnProperty.call(E,$)&&(x[$]=E[$])},c(d,w)};return function(d,w){if(typeof w!="function"&&w!==null)throw new TypeError("Class extends value "+String(w)+" is not a constructor or null");c(d,w);function x(){this.constructor=d}d.prototype=w===null?Object.create(w):(x.prototype=w.prototype,new x)}}(),y=this&&this.__values||function(c){var d=typeof Symbol=="function"&&Symbol.iterator,w=d&&c[d],x=0;if(w)return w.call(c);if(c&&typeof c.length=="number")return{next:function(){return c&&x>=c.length&&(c=void 0),{value:c&&c[x++],done:!c}}};throw new TypeError(d?"Object is not iterable.":"Symbol.iterator is not defined.")},b=e("./lib/dom");e("./lib/event");var h=e("./range").Range,g=e("./lib/scroll").preventParentScroll,s="ace_tooltip",l=function(){function c(d){this.isOpen=!1,this.$element=null,this.$parentNode=d}return c.prototype.$init=function(){return this.$element=b.createElement("div"),this.$element.className=s,this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},c.prototype.getElement=function(){return this.$element||this.$init()},c.prototype.setText=function(d){this.getElement().textContent=d},c.prototype.setHtml=function(d){this.getElement().innerHTML=d},c.prototype.setPosition=function(d,w){this.getElement().style.left=d+"px",this.getElement().style.top=w+"px"},c.prototype.setClassName=function(d){b.addCssClass(this.getElement(),d)},c.prototype.setTheme=function(d){this.$element.className=s+" "+(d.isDark?"ace_dark ":"")+(d.cssClass||"")},c.prototype.show=function(d,w,x){d!=null&&this.setText(d),w!=null&&x!=null&&this.setPosition(w,x),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},c.prototype.hide=function(d){this.isOpen&&(this.getElement().style.display="none",this.getElement().className=s,this.isOpen=!1)},c.prototype.getHeight=function(){return this.getElement().offsetHeight},c.prototype.getWidth=function(){return this.getElement().offsetWidth},c.prototype.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)},c}(),u=function(){function c(){this.popups=[]}return c.prototype.addPopup=function(d){this.popups.push(d),this.updatePopups()},c.prototype.removePopup=function(d){var w=this.popups.indexOf(d);w!==-1&&(this.popups.splice(w,1),this.updatePopups())},c.prototype.updatePopups=function(){var d,w,x,E;this.popups.sort(function(F,O){return O.priority-F.priority});var $=[];try{for(var S=y(this.popups),C=S.next();!C.done;C=S.next()){var R=C.value,L=!0;try{for(var P=(x=void 0,y($)),I=P.next();!I.done;I=P.next()){var H=I.value;if(this.doPopupsOverlap(H,R)){L=!1;break}}}catch(F){x={error:F}}finally{try{I&&!I.done&&(E=P.return)&&E.call(P)}finally{if(x)throw x.error}}L?$.push(R):R.hide()}}catch(F){d={error:F}}finally{try{C&&!C.done&&(w=S.return)&&w.call(S)}finally{if(d)throw d.error}}},c.prototype.doPopupsOverlap=function(d,w){var x=d.getElement().getBoundingClientRect(),E=w.getElement().getBoundingClientRect();return x.left<E.right&&x.right>E.left&&x.top<E.bottom&&x.bottom>E.top},c}(),a=new u;r.popupManager=a,r.Tooltip=l;var o=function(c){p(d,c);function d(w){w===void 0&&(w=document.body);var x=c.call(this,w)||this;x.timeout=void 0,x.lastT=0,x.idleTime=350,x.lastEvent=void 0,x.onMouseOut=x.onMouseOut.bind(x),x.onMouseMove=x.onMouseMove.bind(x),x.waitForHover=x.waitForHover.bind(x),x.hide=x.hide.bind(x);var E=x.getElement();return E.style.whiteSpace="pre-wrap",E.style.pointerEvents="auto",E.addEventListener("mouseout",x.onMouseOut),E.tabIndex=-1,E.addEventListener("blur",(function(){E.contains(document.activeElement)||this.hide()}).bind(x)),E.addEventListener("wheel",g),x}return d.prototype.addToEditor=function(w){w.on("mousemove",this.onMouseMove),w.on("mousedown",this.hide),w.renderer.getMouseEventTarget().addEventListener("mouseout",this.onMouseOut,!0)},d.prototype.removeFromEditor=function(w){w.off("mousemove",this.onMouseMove),w.off("mousedown",this.hide),w.renderer.getMouseEventTarget().removeEventListener("mouseout",this.onMouseOut,!0),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},d.prototype.onMouseMove=function(w,x){this.lastEvent=w,this.lastT=Date.now();var E=x.$mouseHandler.isMousePressed;if(this.isOpen){var $=this.lastEvent&&this.lastEvent.getDocumentPosition();(!this.range||!this.range.contains($.row,$.column)||E||this.isOutsideOfText(this.lastEvent))&&this.hide()}this.timeout||E||(this.lastEvent=w,this.timeout=setTimeout(this.waitForHover,this.idleTime))},d.prototype.waitForHover=function(){this.timeout&&clearTimeout(this.timeout);var w=Date.now()-this.lastT;if(this.idleTime-w>10){this.timeout=setTimeout(this.waitForHover,this.idleTime-w);return}this.timeout=null,this.lastEvent&&!this.isOutsideOfText(this.lastEvent)&&this.$gatherData(this.lastEvent,this.lastEvent.editor)},d.prototype.isOutsideOfText=function(w){var x=w.editor,E=w.getDocumentPosition(),$=x.session.getLine(E.row);if(E.column==$.length){var S=x.renderer.pixelToScreenCoordinates(w.clientX,w.clientY),C=x.session.documentToScreenPosition(E.row,E.column);if(C.column!=S.column||C.row!=S.row)return!0}return!1},d.prototype.setDataProvider=function(w){this.$gatherData=w},d.prototype.showForRange=function(w,x,E,$){var S=10;if(!($&&$!=this.lastEvent)&&!(this.isOpen&&document.activeElement==this.getElement())){var C=w.renderer;this.isOpen||(a.addPopup(this),this.$registerCloseEvents(),this.setTheme(C.theme)),this.isOpen=!0,this.addMarker(x,w.session),this.range=h.fromPoints(x.start,x.end);var R=C.textToScreenCoordinates(x.start.row,x.start.column),L=C.scroller.getBoundingClientRect();R.pageX<L.left&&(R.pageX=L.left);var P=this.getElement();P.innerHTML="",P.appendChild(E),P.style.maxHeight="",P.style.display="block";var I=P.clientHeight,H=P.clientWidth,F=window.innerHeight-R.pageY-C.lineHeight,O=!0;R.pageY-I<0&&R.pageY<F&&(O=!1),P.style.maxHeight=(O?R.pageY:F)-S+"px",P.style.top=O?"":R.pageY+C.lineHeight+"px",P.style.bottom=O?window.innerHeight-R.pageY+"px":"",P.style.left=Math.min(R.pageX,window.innerWidth-H-S)+"px"}},d.prototype.addMarker=function(w,x){this.marker&&this.$markerSession.removeMarker(this.marker),this.$markerSession=x,this.marker=x&&x.addMarker(w,"ace_highlight-marker","text")},d.prototype.hide=function(w){!w&&document.activeElement==this.getElement()||w&&w.target&&(w.type!="keydown"||w.ctrlKey||w.metaKey)&&this.$element.contains(w.target)||(this.lastEvent=null,this.timeout&&clearTimeout(this.timeout),this.timeout=null,this.addMarker(null),this.isOpen&&(this.$removeCloseEvents(),this.getElement().style.display="none",this.isOpen=!1,a.removePopup(this)))},d.prototype.$registerCloseEvents=function(){window.addEventListener("keydown",this.hide,!0),window.addEventListener("wheel",this.hide,!0),window.addEventListener("mousedown",this.hide,!0)},d.prototype.$removeCloseEvents=function(){window.removeEventListener("keydown",this.hide,!0),window.removeEventListener("wheel",this.hide,!0),window.removeEventListener("mousedown",this.hide,!0)},d.prototype.onMouseOut=function(w){this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.lastEvent=null,this.isOpen&&(!w.relatedTarget||this.getElement().contains(w.relatedTarget)||w&&w.currentTarget.contains(w.relatedTarget)||w.relatedTarget.classList.contains("ace_content")||this.hide())},d}(l);r.HoverTooltip=o}),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/tooltip","ace/config"],function(e,r,f){var p=this&&this.__extends||function(){var c=function(d,w){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,E){x.__proto__=E}||function(x,E){for(var $ in E)Object.prototype.hasOwnProperty.call(E,$)&&(x[$]=E[$])},c(d,w)};return function(d,w){if(typeof w!="function"&&w!==null)throw new TypeError("Class extends value "+String(w)+" is not a constructor or null");c(d,w);function x(){this.constructor=d}d.prototype=w===null?Object.create(w):(x.prototype=w.prototype,new x)}}(),y=this&&this.__values||function(c){var d=typeof Symbol=="function"&&Symbol.iterator,w=d&&c[d],x=0;if(w)return w.call(c);if(c&&typeof c.length=="number")return{next:function(){return c&&x>=c.length&&(c=void 0),{value:c&&c[x++],done:!c}}};throw new TypeError(d?"Object is not iterable.":"Symbol.iterator is not defined.")},b=e("../lib/dom"),h=e("../lib/event"),g=e("../tooltip").Tooltip,s=e("../config").nls,l=5,u=3;r.GUTTER_TOOLTIP_LEFT_OFFSET=l,r.GUTTER_TOOLTIP_TOP_OFFSET=u;function a(c){var d=c.editor,w=d.renderer.$gutterLayer,x=new o(d,!0);c.editor.setDefaultHandler("guttermousedown",function(L){if(!(!d.isFocused()||L.getButton()!=0)){var P=w.getRegion(L);if(P!="foldWidgets"){var I=L.getDocumentPosition().row,H=d.session.selection;if(L.getShiftKey())H.selectTo(I,0);else{if(L.domEvent.detail==2)return d.selectAll(),L.preventDefault();c.$clickSelection=d.selection.getLineRange(I)}return c.setState("selectByLines"),c.captureMouse(L),L.preventDefault()}}});var E,$;function S(){var L=$.getDocumentPosition().row,P=d.session.getLength();if(L==P){var I=d.renderer.pixelToScreenCoordinates(0,$.y).row,H=$.$pos;if(I>d.session.documentToScreenRow(H.row,H.column))return C()}if(x.showTooltip(L),!!x.isOpen)if(d.on("mousewheel",C),d.on("changeSession",C),window.addEventListener("keydown",C,!0),c.$tooltipFollowsMouse)R($);else{var F=$.getGutterRow(),O=w.$lines.get(F);if(O){var _=O.element.querySelector(".ace_gutter_annotation"),A=_.getBoundingClientRect(),N=x.getElement().style;N.left=A.right-l+"px",N.top=A.bottom-u+"px"}else R($)}}function C(L){L&&L.type==="keydown"&&(L.ctrlKey||L.metaKey)||L&&L.type==="mouseout"&&(!L.relatedTarget||x.getElement().contains(L.relatedTarget))||(E&&(E=clearTimeout(E)),x.isOpen&&(x.hideTooltip(),d.off("mousewheel",C),d.off("changeSession",C),window.removeEventListener("keydown",C,!0)))}function R(L){x.setPosition(L.x,L.y)}c.editor.setDefaultHandler("guttermousemove",function(L){var P=L.domEvent.target||L.domEvent.srcElement;if(b.hasCssClass(P,"ace_fold-widget")||b.hasCssClass(P,"ace_custom-widget"))return C();x.isOpen&&c.$tooltipFollowsMouse&&R(L),$=L,!E&&(E=setTimeout(function(){E=null,$&&!c.isMousePressed&&S()},50))}),h.addListener(d.renderer.$gutter,"mouseout",function(L){$=null,x.isOpen&&(E=setTimeout(function(){E=null,C(L)},50))},d)}r.GutterHandler=a;var o=function(c){p(d,c);function d(w,x){x===void 0&&(x=!1);var E=c.call(this,w.container)||this;E.editor=w,E.visibleTooltipRow;var $=E.getElement();return $.setAttribute("role","tooltip"),$.style.pointerEvents="auto",x&&(E.onMouseOut=E.onMouseOut.bind(E),$.addEventListener("mouseout",E.onMouseOut)),E}return d.prototype.onMouseOut=function(w){this.isOpen&&(!w.relatedTarget||this.getElement().contains(w.relatedTarget)||w&&w.currentTarget.contains(w.relatedTarget)||this.hideTooltip())},d.prototype.setPosition=function(w,x){var E=window.innerWidth||document.documentElement.clientWidth,$=window.innerHeight||document.documentElement.clientHeight,S=this.getWidth(),C=this.getHeight();w+=15,x+=15,w+S>E&&(w-=w+S-E),x+C>$&&(x-=20+C),g.prototype.setPosition.call(this,w,x)},Object.defineProperty(d,"annotationLabels",{get:function(){return{error:{singular:s("gutter-tooltip.aria-label.error.singular","error"),plural:s("gutter-tooltip.aria-label.error.plural","errors")},security:{singular:s("gutter-tooltip.aria-label.security.singular","security finding"),plural:s("gutter-tooltip.aria-label.security.plural","security findings")},warning:{singular:s("gutter-tooltip.aria-label.warning.singular","warning"),plural:s("gutter-tooltip.aria-label.warning.plural","warnings")},info:{singular:s("gutter-tooltip.aria-label.info.singular","information message"),plural:s("gutter-tooltip.aria-label.info.plural","information messages")},hint:{singular:s("gutter-tooltip.aria-label.hint.singular","suggestion"),plural:s("gutter-tooltip.aria-label.hint.plural","suggestions")}}},enumerable:!1,configurable:!0}),d.prototype.showTooltip=function(w){var x,E=this.editor.renderer.$gutterLayer,$=E.$annotations[w],S;$?S={displayText:Array.from($.displayText),type:Array.from($.type)}:S={displayText:[],type:[]};var C=E.session.getFoldLine(w);if(C&&E.$showFoldedAnnotations){for(var R={error:[],security:[],warning:[],info:[],hint:[]},L={error:1,security:2,warning:3,info:4,hint:5},P,I=w+1;I<=C.end.row;I++)if(E.$annotations[I])for(var H=0;H<E.$annotations[I].text.length;H++){var F=E.$annotations[I].type[H];R[F].push(E.$annotations[I].text[H]),(!P||L[F]<L[P])&&(P=F)}if(["error","security","warning"].includes(P)){var O="".concat(d.annotationsToSummaryString(R)," in folded code.");S.displayText.push(O),S.type.push(P+"_fold")}}if(S.displayText.length===0)return this.hideTooltip();for(var _={error:[],security:[],warning:[],info:[],hint:[]},A=E.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",I=0;I<S.displayText.length;I++){var N=b.createElement("span"),B=b.createElement("span");(x=B.classList).add.apply(x,["ace_".concat(S.type[I]),A]),B.setAttribute("aria-label","".concat(d.annotationLabels[S.type[I].replace("_fold","")].singular)),B.setAttribute("role","img"),B.appendChild(b.createTextNode(" ")),N.appendChild(B),N.appendChild(b.createTextNode(S.displayText[I])),N.appendChild(b.createElement("br")),_[S.type[I].replace("_fold","")].push(N)}var U=this.getElement();b.removeChildren(U),_.error.forEach(function(q){return U.appendChild(q)}),_.security.forEach(function(q){return U.appendChild(q)}),_.warning.forEach(function(q){return U.appendChild(q)}),_.info.forEach(function(q){return U.appendChild(q)}),_.hint.forEach(function(q){return U.appendChild(q)}),U.setAttribute("aria-live","polite"),this.isOpen||(this.setTheme(this.editor.renderer.theme),this.setClassName("ace_gutter-tooltip")),this.show(),this.visibleTooltipRow=w,this.editor._signal("showGutterTooltip",this)},d.prototype.hideTooltip=function(){this.isOpen&&(this.$element.removeAttribute("aria-live"),this.hide(),this.visibleTooltipRow=void 0,this.editor._signal("hideGutterTooltip",this))},d.annotationsToSummaryString=function(w){var x,E,$=[],S=["error","security","warning","info","hint"];try{for(var C=y(S),R=C.next();!R.done;R=C.next()){var L=R.value;if(w[L].length){var P=w[L].length===1?d.annotationLabels[L].singular:d.annotationLabels[L].plural;$.push("".concat(w[L].length," ").concat(P))}}}catch(I){x={error:I}}finally{try{R&&!R.done&&(E=C.return)&&E.call(C)}finally{if(x)throw x.error}}return $.join(", ")},d}(g);r.GutterTooltip=o}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(e,r,f){var p=e("../lib/event"),y=e("../lib/useragent"),b=function(){function h(g,s){this.speed,this.wheelX,this.wheelY,this.domEvent=g,this.editor=s,this.x=this.clientX=g.clientX,this.y=this.clientY=g.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1}return h.prototype.stopPropagation=function(){p.stopPropagation(this.domEvent),this.propagationStopped=!0},h.prototype.preventDefault=function(){p.preventDefault(this.domEvent),this.defaultPrevented=!0},h.prototype.stop=function(){this.stopPropagation(),this.preventDefault()},h.prototype.getDocumentPosition=function(){return this.$pos?this.$pos:(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY),this.$pos)},h.prototype.getGutterRow=function(){var g=this.getDocumentPosition().row,s=this.editor.session.documentToScreenRow(g,0),l=this.editor.session.documentToScreenRow(this.editor.renderer.$gutterLayer.$lines.get(0).row,0);return s-l},h.prototype.inSelection=function(){if(this.$inSelection!==null)return this.$inSelection;var g=this.editor,s=g.getSelectionRange();if(s.isEmpty())this.$inSelection=!1;else{var l=this.getDocumentPosition();this.$inSelection=s.contains(l.row,l.column)}return this.$inSelection},h.prototype.getButton=function(){return p.getButton(this.domEvent)},h.prototype.getShiftKey=function(){return this.domEvent.shiftKey},h.prototype.getAccelKey=function(){return y.isMac?this.domEvent.metaKey:this.domEvent.ctrlKey},h}();r.MouseEvent=b}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(e,r,f){var p=e("../lib/dom"),y=e("../lib/event"),b=e("../lib/useragent"),h=200,g=200,s=5;function l(a){var o=a.editor,c=p.createElement("div");c.style.cssText="top:-100px;position:absolute;z-index:2147483647;opacity:0.5",c.textContent=" ";var d=["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"];d.forEach(function(ne){a[ne]=this[ne]},this),o.on("mousedown",this.onMouseDown.bind(a));var w=o.container,x,E,$,S,C,R,L=0,P,I,H,F,O;this.onDragStart=function(ne){if(this.cancelDrag||!w.draggable){var ae=this;return setTimeout(function(){ae.startSelect(),ae.captureMouse(ne)},0),ne.preventDefault()}C=o.getSelectionRange();var ue=ne.dataTransfer;ue.effectAllowed=o.getReadOnly()?"copy":"copyMove",o.container.appendChild(c),ue.setDragImage&&ue.setDragImage(c,0,0),setTimeout(function(){o.container.removeChild(c)}),ue.clearData(),ue.setData("Text",o.session.getTextRange()),I=!0,this.setState("drag")},this.onDragEnd=function(ne){if(w.draggable=!1,I=!1,this.setState(null),!o.getReadOnly()){var ae=ne.dataTransfer.dropEffect;!P&&ae=="move"&&o.session.remove(o.getSelectionRange()),o.$resetCursorStyle()}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(ne){if(!(o.getReadOnly()||!te(ne.dataTransfer)))return E=ne.clientX,$=ne.clientY,x||B(),L++,ne.dataTransfer.dropEffect=P=he(ne),y.preventDefault(ne)},this.onDragOver=function(ne){if(!(o.getReadOnly()||!te(ne.dataTransfer)))return E=ne.clientX,$=ne.clientY,x||(B(),L++),q!==null&&(q=null),ne.dataTransfer.dropEffect=P=he(ne),y.preventDefault(ne)},this.onDragLeave=function(ne){if(L--,L<=0&&x)return U(),P=null,y.preventDefault(ne)},this.onDrop=function(ne){if(R){var ae=ne.dataTransfer;if(I)switch(P){case"move":C.contains(R.row,R.column)?C={start:R,end:R}:C=o.moveText(C,R);break;case"copy":C=o.moveText(C,R,!0);break}else{var ue=ae.getData("Text");C={start:R,end:o.session.insert(R,ue)},o.focus(),P=null}return U(),y.preventDefault(ne)}},y.addListener(w,"dragstart",this.onDragStart.bind(a),o),y.addListener(w,"dragend",this.onDragEnd.bind(a),o),y.addListener(w,"dragenter",this.onDragEnter.bind(a),o),y.addListener(w,"dragover",this.onDragOver.bind(a),o),y.addListener(w,"dragleave",this.onDragLeave.bind(a),o),y.addListener(w,"drop",this.onDrop.bind(a),o);function _(ne,ae){var ue=Date.now(),ce=!ae||ne.row!=ae.row,fe=!ae||ne.column!=ae.column;if(!F||ce||fe)o.moveCursorToPosition(ne),F=ue,O={x:E,y:$};else{var Te=u(O.x,O.y,E,$);Te>s?F=null:ue-F>=g&&(o.renderer.scrollCursorIntoView(),F=null)}}function A(ne,ae){var ue=Date.now(),ce=o.renderer.layerConfig.lineHeight,fe=o.renderer.layerConfig.characterWidth,Te=o.renderer.scroller.getBoundingClientRect(),$e={x:{left:E-Te.left,right:Te.right-E},y:{top:$-Te.top,bottom:Te.bottom-$}},Ie=Math.min($e.x.left,$e.x.right),Ye=Math.min($e.y.top,$e.y.bottom),qe={row:ne.row,column:ne.column};Ie/fe<=2&&(qe.column+=$e.x.left<$e.x.right?-3:2),Ye/ce<=1&&(qe.row+=$e.y.top<$e.y.bottom?-1:1);var dt=ne.row!=qe.row,nt=ne.column!=qe.column,pt=!ae||ne.row!=ae.row;dt||nt&&!pt?H?ue-H>=h&&o.renderer.scrollCursorIntoView(qe):H=ue:H=null}function N(){var ne=R;R=o.renderer.screenToTextCoordinates(E,$),_(R,ne),A(R,ne)}function B(){C=o.selection.toOrientedRange(),x=o.session.addMarker(C,"ace_selection",o.getSelectionStyle()),o.clearSelection(),o.isFocused()&&o.renderer.$cursorLayer.setBlinking(!1),clearInterval(S),N(),S=setInterval(N,20),L=0,y.addListener(document,"mousemove",Z)}function U(){clearInterval(S),o.session.removeMarker(x),x=null,o.selection.fromOrientedRange(C),o.isFocused()&&!I&&o.$resetCursorStyle(),C=null,R=null,L=0,H=null,F=null,y.removeListener(document,"mousemove",Z)}var q=null;function Z(){q==null&&(q=setTimeout(function(){q!=null&&x&&U()},20))}function te(ne){var ae=ne.types;return!ae||Array.prototype.some.call(ae,function(ue){return ue=="text/plain"||ue=="Text"})}function he(ne){var ae=["copy","copymove","all","uninitialized"],ue=["move","copymove","linkmove","all","uninitialized"],ce=b.isMac?ne.altKey:ne.ctrlKey,fe="uninitialized";try{fe=ne.dataTransfer.effectAllowed.toLowerCase()}catch{}var Te="none";return ce&&ae.indexOf(fe)>=0?Te="copy":ue.indexOf(fe)>=0?Te="move":ae.indexOf(fe)>=0&&(Te="copy"),Te}}(function(){this.dragWait=function(){var a=Date.now()-this.mousedownEvent.time;a>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){var a=this.editor.container;a.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(a){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var a=this.editor,o=a.container;o.draggable=!0,a.renderer.$cursorLayer.setBlinking(!1),a.setStyle("ace_dragging");var c=b.isWin?"default":"move";a.renderer.setCursorStyle(c),this.setState("dragReady")},this.onMouseDrag=function(a){var o=this.editor.container;if(b.isIE&&this.state=="dragReady"){var c=u(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);c>3&&o.dragDrop()}if(this.state==="dragWait"){var c=u(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);c>0&&(o.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))}},this.onMouseDown=function(a){if(this.$dragEnabled){this.mousedownEvent=a;var o=this.editor,c=a.inSelection(),d=a.getButton(),w=a.domEvent.detail||1;if(w===1&&d===0&&c){if(a.editor.inMultiSelectMode&&(a.getAccelKey()||a.getShiftKey()))return;this.mousedownEvent.time=Date.now();var x=a.domEvent.target||a.domEvent.srcElement;if("unselectable"in x&&(x.unselectable="on"),o.getDragDelay()){if(b.isWebKit){this.cancelDrag=!0;var E=o.container;E.draggable=!0}this.setState("dragWait")}else this.startDrag();this.captureMouse(a,this.onMouseDrag.bind(this)),a.defaultPrevented=!0}}}}).call(l.prototype);function u(a,o,c,d){return Math.sqrt(Math.pow(c-a,2)+Math.pow(d-o,2))}r.DragdropHandler=l}),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],function(e,r,f){var p=e("./mouse_event").MouseEvent,y=e("../lib/event"),b=e("../lib/dom");r.addTouchListeners=function(h,g){var s="scroll",l,u,a,o,c,d,w=0,x,E=0,$=0,S=0,C,R;function L(){var _=window.navigator&&window.navigator.clipboard,A=!1,N=function(){var q=g.getCopyText(),Z=g.session.getUndoManager().hasUndo();R.replaceChild(b.buildDom(A?["span",!q&&B("selectall")&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],q&&B("copy")&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],q&&B("cut")&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],_&&B("paste")&&["span",{class:"ace_mobile-button",action:"paste"},"Paste"],Z&&B("undo")&&["span",{class:"ace_mobile-button",action:"undo"},"Undo"],B("find")&&["span",{class:"ace_mobile-button",action:"find"},"Find"],B("openCommandPalette")&&["span",{class:"ace_mobile-button",action:"openCommandPalette"},"Palette"]]:["span"]),R.firstChild)},B=function(q){return g.commands.canExecute(q,g)},U=function(q){var Z=q.target.getAttribute("action");if(Z=="more"||!A)return A=!A,N();Z=="paste"?_.readText().then(function(te){g.execCommand(Z,te)}):Z&&((Z=="cut"||Z=="copy")&&(_?_.writeText(g.getCopyText()):document.execCommand("copy")),g.execCommand(Z)),R.firstChild.style.display="none",A=!1,Z!="openCommandPalette"&&g.focus()};R=b.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(q){s="menu",q.stopPropagation(),q.preventDefault(),g.textInput.focus()},ontouchend:function(q){q.stopPropagation(),q.preventDefault(),U(q)},onclick:U},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],g.container)}function P(){if(!g.getOption("enableMobileMenu")){R&&I();return}R||L();var _=g.selection.cursor,A=g.renderer.textToScreenCoordinates(_.row,_.column),N=g.renderer.textToScreenCoordinates(0,0).pageX,B=g.renderer.scrollLeft,U=g.container.getBoundingClientRect();R.style.top=A.pageY-U.top-3+"px",A.pageX-U.left<U.width-70?(R.style.left="",R.style.right="10px"):(R.style.right="",R.style.left=N+B-U.left+"px"),R.style.display="",R.firstChild.style.display="none",g.on("input",I)}function I(_){R&&(R.style.display="none"),g.off("input",I)}function H(){c=null,clearTimeout(c);var _=g.selection.getRange(),A=_.contains(x.row,x.column);(_.isEmpty()||!A)&&(g.selection.moveToPosition(x),g.selection.selectWord()),s="wait",P()}function F(){c=null,clearTimeout(c),g.selection.moveToPosition(x);var _=E>=2?g.selection.getLineRange(x.row):g.session.getBracketRange(x);_&&!_.isEmpty()?g.selection.setRange(_):g.selection.selectWord(),s="wait"}y.addListener(h,"contextmenu",function(_){if(C){var A=g.textInput.getElement();A.focus()}},g),y.addListener(h,"touchstart",function(_){var A=_.touches;if(c||A.length>1){clearTimeout(c),c=null,a=-1,s="zoom";return}C=g.$mouseHandler.isMousePressed=!0;var N=g.renderer.layerConfig.lineHeight,B=g.renderer.layerConfig.lineHeight,U=_.timeStamp;o=U;var q=A[0],Z=q.clientX,te=q.clientY;Math.abs(l-Z)+Math.abs(u-te)>N&&(a=-1),l=_.clientX=Z,u=_.clientY=te,$=S=0;var he=new p(_,g);if(x=he.getDocumentPosition(),U-a<500&&A.length==1&&!w)E++,_.preventDefault(),_.button=0,F();else{E=0;var ne=g.selection.cursor,ae=g.selection.isEmpty()?ne:g.selection.anchor,ue=g.renderer.$cursorLayer.getPixelPosition(ne,!0),ce=g.renderer.$cursorLayer.getPixelPosition(ae,!0),fe=g.renderer.scroller.getBoundingClientRect(),Te=g.renderer.layerConfig.offset,$e=g.renderer.scrollLeft,Ie=function(dt,nt){return dt=dt/B,nt=nt/N-.75,dt*dt+nt*nt};if(_.clientX<fe.left){s="zoom";return}var Ye=Ie(_.clientX-fe.left-ue.left+$e,_.clientY-fe.top-ue.top+Te),qe=Ie(_.clientX-fe.left-ce.left+$e,_.clientY-fe.top-ce.top+Te);Ye<3.5&&qe<3.5&&(s=Ye>qe?"cursor":"anchor"),qe<3.5?s="anchor":Ye<3.5?s="cursor":s="scroll",c=setTimeout(H,450)}a=U},g),y.addListener(h,"touchend",function(_){C=g.$mouseHandler.isMousePressed=!1,d&&clearInterval(d),s=="zoom"?(s="",w=0):c?(g.selection.moveToPosition(x),w=0,P()):s=="scroll"?(O(),I()):P(),clearTimeout(c),c=null},g),y.addListener(h,"touchmove",function(_){c&&(clearTimeout(c),c=null);var A=_.touches;if(!(A.length>1||s=="zoom")){var N=A[0],B=l-N.clientX,U=u-N.clientY;if(s=="wait")if(B*B+U*U>4)s="cursor";else return _.preventDefault();l=N.clientX,u=N.clientY,_.clientX=N.clientX,_.clientY=N.clientY;var q=_.timeStamp,Z=q-o;if(o=q,s=="scroll"){var te=new p(_,g);te.speed=1,te.wheelX=B,te.wheelY=U,10*Math.abs(B)<Math.abs(U)&&(B=0),10*Math.abs(U)<Math.abs(B)&&(U=0),Z!=0&&($=B/Z,S=U/Z),g._emit("mousewheel",te),te.propagationStopped||($=S=0)}else{var he=new p(_,g),ne=he.getDocumentPosition();s=="cursor"?g.selection.moveCursorToPosition(ne):s=="anchor"&&g.selection.setSelectionAnchor(ne.row,ne.column),g.renderer.scrollCursorIntoView(ne),_.preventDefault()}}},g);function O(){w+=60,d=setInterval(function(){w--<=0&&(clearInterval(d),d=null),Math.abs($)<.01&&($=0),Math.abs(S)<.01&&(S=0),w<20&&($=.9*$),w<20&&(S=.9*S);var _=g.session.getScrollTop();g.renderer.scrollBy(10*$,10*S),_==g.session.getScrollTop()&&(w=0)},10)}}}),ace.define("ace/mouse/mouse_handler",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/mouse/default_handlers","ace/mouse/default_gutter_handler","ace/mouse/mouse_event","ace/mouse/dragdrop_handler","ace/mouse/touch_handler","ace/config"],function(e,r,f){var p=e("../lib/event"),y=e("../lib/useragent"),b=e("./default_handlers").DefaultHandlers,h=e("./default_gutter_handler").GutterHandler,g=e("./mouse_event").MouseEvent,s=e("./dragdrop_handler").DragdropHandler,l=e("./touch_handler").addTouchListeners,u=e("../config"),a=function(){function o(c){this.$dragDelay,this.$dragEnabled,this.$mouseMoved,this.mouseEvent,this.$focusTimeout;var d=this;this.editor=c,new b(this),new h(this),new s(this);var w=function($){var S=!document.hasFocus||!document.hasFocus()||!c.isFocused()&&document.activeElement==(c.textInput&&c.textInput.getElement());S&&window.focus(),c.focus(),setTimeout(function(){c.isFocused()||c.focus()})},x=c.renderer.getMouseEventTarget();p.addListener(x,"click",this.onMouseEvent.bind(this,"click"),c),p.addListener(x,"mousemove",this.onMouseMove.bind(this,"mousemove"),c),p.addMultiMouseDownListener([x,c.renderer.scrollBarV&&c.renderer.scrollBarV.inner,c.renderer.scrollBarH&&c.renderer.scrollBarH.inner,c.textInput&&c.textInput.getElement()].filter(Boolean),[400,300,250],this,"onMouseEvent",c),p.addMouseWheelListener(c.container,this.onMouseWheel.bind(this,"mousewheel"),c),l(c.container,c);var E=c.renderer.$gutter;p.addListener(E,"mousedown",this.onMouseEvent.bind(this,"guttermousedown"),c),p.addListener(E,"click",this.onMouseEvent.bind(this,"gutterclick"),c),p.addListener(E,"dblclick",this.onMouseEvent.bind(this,"gutterdblclick"),c),p.addListener(E,"mousemove",this.onMouseEvent.bind(this,"guttermousemove"),c),p.addListener(x,"mousedown",w,c),p.addListener(E,"mousedown",w,c),y.isIE&&c.renderer.scrollBarV&&(p.addListener(c.renderer.scrollBarV.element,"mousedown",w,c),p.addListener(c.renderer.scrollBarH.element,"mousedown",w,c)),c.on("mousemove",function($){if(!(d.state||d.$dragDelay||!d.$dragEnabled)){var S=c.renderer.screenToTextCoordinates($.x,$.y),C=c.session.selection.getRange(),R=c.renderer;!C.isEmpty()&&C.insideStart(S.row,S.column)?R.setCursorStyle("default"):R.setCursorStyle("")}},c)}return o.prototype.onMouseEvent=function(c,d){this.editor.session&&this.editor._emit(c,new g(d,this.editor))},o.prototype.onMouseMove=function(c,d){var w=this.editor._eventRegistry&&this.editor._eventRegistry.mousemove;!w||!w.length||this.editor._emit(c,new g(d,this.editor))},o.prototype.onMouseWheel=function(c,d){var w=new g(d,this.editor);w.speed=this.$scrollSpeed*2,w.wheelX=d.wheelX,w.wheelY=d.wheelY,this.editor._emit(c,w)},o.prototype.setState=function(c){this.state=c},o.prototype.captureMouse=function(c,d){this.x=c.x,this.y=c.y,this.isMousePressed=!0;var w=this.editor,x=this.editor.renderer;x.$isMousePressed=!0;var E=this,$=function(P){if(P){if(y.isWebKit&&!P.which&&E.releaseMouse)return E.releaseMouse();E.x=P.clientX,E.y=P.clientY,d&&d(P),E.mouseEvent=new g(P,E.editor),E.$mouseMoved=!0}},S=function(P){w.off("beforeEndOperation",R),clearInterval(L),w.session&&C(),E[E.state+"End"]&&E[E.state+"End"](P),E.state="",E.isMousePressed=x.$isMousePressed=!1,x.$keepTextAreaAtCursor&&x.$moveTextAreaToCursor(),E.$onCaptureMouseMove=E.releaseMouse=null,P&&E.onMouseEvent("mouseup",P),w.endOperation()},C=function(){E[E.state]&&E[E.state](),E.$mouseMoved=!1};if(y.isOldIE&&c.domEvent.type=="dblclick")return setTimeout(function(){S(c)});var R=function(P){E.releaseMouse&&w.curOp.command.name&&w.curOp.selectionChanged&&(E[E.state+"End"]&&E[E.state+"End"](),E.state="",E.releaseMouse())};w.on("beforeEndOperation",R),w.startOperation({command:{name:"mouse"}}),E.$onCaptureMouseMove=$,E.releaseMouse=p.capture(this.editor.container,$,S);var L=setInterval(C,20)},o.prototype.cancelContextMenu=function(){var c=(function(d){d&&d.domEvent&&d.domEvent.type!="contextmenu"||(this.editor.off("nativecontextmenu",c),d&&d.domEvent&&p.stopEvent(d.domEvent))}).bind(this);setTimeout(c,10),this.editor.on("nativecontextmenu",c)},o.prototype.destroy=function(){this.releaseMouse&&this.releaseMouse()},o}();a.prototype.releaseMouse=null,u.defineOptions(a.prototype,"mouseHandler",{scrollSpeed:{initialValue:2},dragDelay:{initialValue:y.isMac?150:0},dragEnabled:{initialValue:!0},focusTimeout:{initialValue:0},tooltipFollowsMouse:{initialValue:!0}}),r.MouseHandler=a}),ace.define("ace/mouse/fold_handler",["require","exports","module","ace/lib/dom"],function(e,r,f){var p=e("../lib/dom"),y=function(){function b(h){h.on("click",function(g){var s=g.getDocumentPosition(),l=h.session,u=l.getFoldAt(s.row,s.column,1);u&&(g.getAccelKey()?l.removeFold(u):l.expandFold(u),g.stop());var a=g.domEvent&&g.domEvent.target;a&&p.hasCssClass(a,"ace_inline_button")&&p.hasCssClass(a,"ace_toggle_wrap")&&(l.setOption("wrap",!l.getUseWrapMode()),h.renderer.scrollCursorIntoView())}),h.on("gutterclick",function(g){var s=h.renderer.$gutterLayer.getRegion(g);if(s=="foldWidgets"){var l=g.getDocumentPosition().row,u=h.session;u.foldWidgets&&u.foldWidgets[l]&&h.session.onFoldWidgetClick(l,g),h.isFocused()||h.focus(),g.stop()}}),h.on("gutterdblclick",function(g){var s=h.renderer.$gutterLayer.getRegion(g);if(s=="foldWidgets"){var l=g.getDocumentPosition().row,u=h.session,a=u.getParentFoldRangeData(l,!0),o=a.range||a.firstRange;if(o){l=o.start.row;var c=u.getFoldAt(l,u.getLine(l).length,1);c?u.removeFold(c):(u.addFold("...",o),h.renderer.scrollCursorIntoView({row:o.start.row,column:0}))}g.stop()}})}return b}();r.FoldHandler=y}),ace.define("ace/keyboard/keybinding",["require","exports","module","ace/lib/keys","ace/lib/event"],function(e,r,f){var p=e("../lib/keys"),y=e("../lib/event"),b=function(){function h(g){this.$editor=g,this.$data={editor:g},this.$handlers=[],this.setDefaultHandler(g.commands)}return h.prototype.setDefaultHandler=function(g){this.removeKeyboardHandler(this.$defaultHandler),this.$defaultHandler=g,this.addKeyboardHandler(g,0)},h.prototype.setKeyboardHandler=function(g){var s=this.$handlers;if(s[s.length-1]!=g){for(;s[s.length-1]&&s[s.length-1]!=this.$defaultHandler;)this.removeKeyboardHandler(s[s.length-1]);this.addKeyboardHandler(g,1)}},h.prototype.addKeyboardHandler=function(g,s){if(g){typeof g=="function"&&!g.handleKeyboard&&(g.handleKeyboard=g);var l=this.$handlers.indexOf(g);l!=-1&&this.$handlers.splice(l,1),s==null?this.$handlers.push(g):this.$handlers.splice(s,0,g),l==-1&&g.attach&&g.attach(this.$editor)}},h.prototype.removeKeyboardHandler=function(g){var s=this.$handlers.indexOf(g);return s==-1?!1:(this.$handlers.splice(s,1),g.detach&&g.detach(this.$editor),!0)},h.prototype.getKeyboardHandler=function(){return this.$handlers[this.$handlers.length-1]},h.prototype.getStatusText=function(){var g=this.$data,s=g.editor;return this.$handlers.map(function(l){return l.getStatusText&&l.getStatusText(s,g)||""}).filter(Boolean).join(" ")},h.prototype.$callKeyboardHandlers=function(g,s,l,u){for(var a,o=!1,c=this.$editor.commands,d=this.$handlers.length;d--&&(a=this.$handlers[d].handleKeyboard(this.$data,g,s,l,u),!(!(!a||!a.command)&&(a.command=="null"?o=!0:o=c.exec(a.command,this.$editor,a.args,u),o&&u&&g!=-1&&a.passEvent!=!0&&a.command.passEvent!=!0&&y.stopEvent(u),o))););return!o&&g==-1&&(a={command:"insertstring"},o=c.exec("insertstring",this.$editor,s)),o&&this.$editor._signal&&this.$editor._signal("keyboardActivity",a),o},h.prototype.onCommandKey=function(g,s,l){var u=p.keyCodeToString(l);return this.$callKeyboardHandlers(s,u,l,g)},h.prototype.onTextInput=function(g){return this.$callKeyboardHandlers(-1,g)},h}();r.KeyBinding=b}),ace.define("ace/lib/bidiutil",["require","exports","module"],function(e,r,f){var p=0,y=0,b=!1,h=!1,g=!1,s=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],l=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],u=0,a=1,o=0,c=1,d=2,w=3,x=4,E=5,$=6,S=7,C=8,R=9,L=10,P=11,I=12,H=13,F=14,O=15,_=16,A=17,N=18,B=[N,N,N,N,N,N,N,N,N,$,E,$,C,E,N,N,N,N,N,N,N,N,N,N,N,N,N,N,E,E,E,$,C,x,x,P,P,P,x,x,x,x,x,L,R,L,R,R,d,d,d,d,d,d,d,d,d,d,R,x,x,x,x,x,x,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,x,x,x,x,x,x,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,x,x,x,x,N,N,N,N,N,N,E,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,R,x,P,P,P,P,x,x,x,x,o,x,x,N,x,x,P,P,d,d,x,o,x,x,x,d,o,x,x,x,x,x],U=[C,C,C,C,C,C,C,C,C,C,C,N,N,N,o,c,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,C,E,H,F,O,_,A,R,P,P,P,P,P,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,R,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,C];function q(ne,ae,ue,ce){var fe=p?l:s,Te=null,$e=null,Ie=null,Ye=0,qe=null,dt=null,nt=-1,pt=null,tn=null,gn=[];if(!ce)for(pt=0,ce=[];pt<ue;pt++)ce[pt]=he(ne[pt]);for(y=p,b=!1,h=!1,g=!1,tn=0;tn<ue;tn++){if(Te=Ye,gn[tn]=$e=te(ne,ce,gn,tn),Ye=fe[Te][$e],qe=Ye&240,Ye&=15,ae[tn]=Ie=fe[Ye][5],qe>0)if(qe==16){for(pt=nt;pt<tn;pt++)ae[pt]=1;nt=-1}else nt=-1;if(dt=fe[Ye][6],dt)nt==-1&&(nt=tn);else if(nt>-1){for(pt=nt;pt<tn;pt++)ae[pt]=Ie;nt=-1}ce[tn]==E&&(ae[tn]=0),y|=Ie}if(g){for(pt=0;pt<ue;pt++)if(ce[pt]==$){ae[pt]=p;for(var Yt=pt-1;Yt>=0&&ce[Yt]==C;Yt--)ae[Yt]=p}}}function Z(ne,ae,ue){if(!(y<ne)){if(ne==1&&p==a&&!h){ue.reverse();return}for(var ce=ue.length,fe=0,Te,$e,Ie,Ye;fe<ce;){if(ae[fe]>=ne){for(Te=fe+1;Te<ce&&ae[Te]>=ne;)Te++;for($e=fe,Ie=Te-1;$e<Ie;$e++,Ie--)Ye=ue[$e],ue[$e]=ue[Ie],ue[Ie]=Ye;fe=Te}fe++}}}function te(ne,ae,ue,ce){var fe=ae[ce],Te,$e,Ie,Ye;switch(fe){case o:case c:b=!1;case x:case w:return fe;case d:return b?w:d;case S:return b=!0,c;case C:return x;case R:return ce<1||ce+1>=ae.length||(Te=ue[ce-1])!=d&&Te!=w||($e=ae[ce+1])!=d&&$e!=w?x:(b&&($e=w),$e==Te?$e:x);case L:return Te=ce>0?ue[ce-1]:E,Te==d&&ce+1<ae.length&&ae[ce+1]==d?d:x;case P:if(ce>0&&ue[ce-1]==d)return d;if(b)return x;for(Ye=ce+1,Ie=ae.length;Ye<Ie&&ae[Ye]==P;)Ye++;return Ye<Ie&&ae[Ye]==d?d:x;case I:for(Ie=ae.length,Ye=ce+1;Ye<Ie&&ae[Ye]==I;)Ye++;if(Ye<Ie){var qe=ne[ce],dt=qe>=1425&&qe<=2303||qe==64286;if(Te=ae[Ye],dt&&(Te==c||Te==S))return c}return ce<1||(Te=ae[ce-1])==E?x:ue[ce-1];case E:return b=!1,h=!0,p;case $:return g=!0,x;case H:case F:case _:case A:case O:b=!1;case N:return x}}function he(ne){var ae=ne.charCodeAt(0),ue=ae>>8;return ue==0?ae>191?o:B[ae]:ue==5?/[\u0591-\u05f4]/.test(ne)?c:o:ue==6?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(ne)?I:/[\u0660-\u0669\u066b-\u066c]/.test(ne)?w:ae==1642?P:/[\u06f0-\u06f9]/.test(ne)?d:S:ue==32&&ae<=8287?U[ae&255]:ue==254&&ae>=65136?S:x}r.L=o,r.R=c,r.EN=d,r.ON_R=3,r.AN=4,r.R_H=5,r.B=6,r.RLE=7,r.DOT="·",r.doBidiReorder=function(ne,ae,ue){if(ne.length<2)return{};var ce=ne.split(""),fe=new Array(ce.length),Te=new Array(ce.length),$e=[];p=ue?a:u,q(ce,$e,ce.length,ae);for(var Ie=0;Ie<fe.length;fe[Ie]=Ie,Ie++);Z(2,$e,fe),Z(1,$e,fe);for(var Ie=0;Ie<fe.length-1;Ie++)ae[Ie]===w?$e[Ie]=r.AN:$e[Ie]===c&&(ae[Ie]>S&&ae[Ie]<H||ae[Ie]===x||ae[Ie]===N)?$e[Ie]=r.ON_R:Ie>0&&ce[Ie-1]==="ل"&&/\u0622|\u0623|\u0625|\u0627/.test(ce[Ie])&&($e[Ie-1]=$e[Ie]=r.R_H,Ie++);ce[ce.length-1]===r.DOT&&($e[ce.length-1]=r.B),ce[0]===""&&($e[0]=r.RLE);for(var Ie=0;Ie<fe.length;Ie++)Te[Ie]=$e[fe[Ie]];return{logicalFromVisual:fe,bidiLevels:Te}},r.hasBidiCharacters=function(ne,ae){for(var ue=!1,ce=0;ce<ne.length;ce++)ae[ce]=he(ne.charAt(ce)),!ue&&(ae[ce]==c||ae[ce]==S||ae[ce]==w)&&(ue=!0);return ue},r.getVisualFromLogicalIdx=function(ne,ae){for(var ue=0;ue<ae.logicalFromVisual.length;ue++)if(ae.logicalFromVisual[ue]==ne)return ue;return 0}}),ace.define("ace/bidihandler",["require","exports","module","ace/lib/bidiutil","ace/lib/lang"],function(e,r,f){var p=e("./lib/bidiutil"),y=e("./lib/lang"),b=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\u202B]/,h=function(){function g(s){this.session=s,this.bidiMap={},this.currentRow=null,this.bidiUtil=p,this.charWidths=[],this.EOL="¬",this.showInvisibles=!0,this.isRtlDir=!1,this.$isRtl=!1,this.line="",this.wrapIndent=0,this.EOF="¶",this.RLE="",this.contentWidth=0,this.fontMetrics=null,this.rtlLineOffset=0,this.wrapOffset=0,this.isMoveLeftOperation=!1,this.seenBidi=b.test(s.getValue())}return g.prototype.isBidiRow=function(s,l,u){return this.seenBidi?(s!==this.currentRow&&(this.currentRow=s,this.updateRowLine(l,u),this.updateBidiMap()),this.bidiMap.bidiLevels):!1},g.prototype.onChange=function(s){this.seenBidi?this.currentRow=null:s.action=="insert"&&b.test(s.lines.join(`
|
175
|
+
`;kn!=A&&(R.value=A=kn,N=B=kn.length)}if(Te&&(N=R.selectionStart,B=R.selectionEnd),B!=ze||N!=ke||R.selectionEnd!=B)try{R.setSelectionRange(ke,ze),N=ke,B=ze}catch{}I=!1}};this.resetSelection=ae,he&&C.onFocus();var ue=function(ke){return ke.selectionStart===0&&ke.selectionEnd>=A.length&&ke.value===A&&A&&ke.selectionEnd!==B},ce=function(ke){I||(L?L=!1:ue(R)?(C.selectAll(),ae()):E&&R.selectionStart!=N&&ae())},fe=null;this.setInputHandler=function(ke){fe=ke},this.getInputHandler=function(){return fe};var Te=!1,$e=function(ke,ze){if(Te&&(Te=!1),P)return ae(),ke&&C.onPaste(ke),P=!1,"";for(var Xe=R.selectionStart,gt=R.selectionEnd,At=N,St=A.length-B,Dt=ke,Ot=ke.length-Xe,ut=ke.length-gt,xt=0;At>0&&A[xt]==ke[xt];)xt++,At--;for(Dt=Dt.slice(xt),xt=1;St>0&&A.length-xt>N-1&&A[A.length-xt]==ke[ke.length-xt];)xt++,St--;Ot-=xt-1,ut-=xt-1;var kn=Dt.length-xt+1;if(kn<0&&(At=-kn,kn=0),Dt=Dt.slice(0,kn),!ze&&!Dt&&!Ot&&!At&&!St&&!ut)return"";H=!0;var kr=!1;return b.isAndroid&&Dt==". "&&(Dt=" ",kr=!0),Dt&&!At&&!St&&!Ot&&!ut||O?C.onTextInput(Dt):C.onTextInput(Dt,{extendLeft:At,extendRight:St,restoreStart:Ot,restoreEnd:ut}),H=!1,A=ke,N=Xe,B=gt,U=ut,kr?`
|
176
|
+
`:Dt},Ie=function(ke){if(I)return fn();if(ke&&ke.inputType){if(ke.inputType=="historyUndo")return C.execCommand("undo");if(ke.inputType=="historyRedo")return C.execCommand("redo")}var ze=R.value,Xe=$e(ze,!0);(ze.length>o+100||x.test(Xe)||E&&N<1&&N==B)&&ae()},Ye=function(ke,ze,Xe){var gt=ke.clipboardData||window.clipboardData;if(!(!gt||l)){var At=u||Xe?"Text":"text/plain";try{return ze?gt.setData(At,ze)!==!1:gt.getData(At)}catch(St){if(!Xe)return Ye(St,ze,!0)}}},qe=function(ke,ze){var Xe=C.getCopyText();if(!Xe)return p.preventDefault(ke);Ye(ke,Xe)?(w&&(ae(Xe),L=Xe,setTimeout(function(){L=!1},10)),ze?C.onCut():C.onCopy(),p.preventDefault(ke)):(L=!0,R.value=Xe,R.select(),setTimeout(function(){L=!1,ae(),ze?C.onCut():C.onCopy()}))},dt=function(ke){qe(ke,!0)},nt=function(ke){qe(ke,!1)},pt=function(ke){var ze=Ye(ke);s.pasteCancelled()||(typeof ze=="string"?(ze&&C.onPaste(ze,ke),b.isIE&&setTimeout(ae),p.preventDefault(ke)):(R.value="",P=!0))};p.addCommandKeyListener(R,function(ke,ze,Xe){if(!I)return C.onCommandKey(ke,ze,Xe)},C),p.addListener(R,"select",ce,C),p.addListener(R,"input",Ie,C),p.addListener(R,"cut",dt,C),p.addListener(R,"copy",nt,C),p.addListener(R,"paste",pt,C),(!("oncut"in R)||!("oncopy"in R)||!("onpaste"in R))&&p.addListener(S,"keydown",function(ke){if(!(b.isMac&&!ke.metaKey||!ke.ctrlKey))switch(ke.keyCode){case 67:nt(ke);break;case 86:pt(ke);break;case 88:dt(ke);break}},C);var tn=function(ke){if(!(I||!C.onCompositionStart||C.$readOnly)&&(I={},!O)){ke.data&&(I.useTextareaForIME=!1),setTimeout(fn,0),C._signal("compositionStart"),C.on("mousedown",gr);var ze=C.getSelectionRange();ze.end.row=ze.start.row,ze.end.column=ze.start.column,I.markerRange=ze,I.selectionStart=N,C.onCompositionStart(I),I.useTextareaForIME?(A=R.value="",N=0,B=0):(R.msGetInputContext&&(I.context=R.msGetInputContext()),R.getInputContext&&(I.context=R.getInputContext()))}},fn=function(){if(!(!I||!C.onCompositionUpdate||C.$readOnly)){if(O)return gr();if(I.useTextareaForIME)C.onCompositionUpdate(R.value);else{var ke=R.value;$e(ke),I.markerRange&&(I.context&&(I.markerRange.start.column=I.selectionStart=I.context.compositionStartOffset),I.markerRange.end.column=I.markerRange.start.column+B-I.selectionStart+U)}}},Yt=function(ke){!C.onCompositionEnd||C.$readOnly||(I=!1,C.onCompositionEnd(),C.off("mousedown",gr),ke&&Ie())};function gr(){_=!0,R.blur(),R.focus(),_=!1}var mn=g.delayedCall(fn,50).schedule.bind(null,null);function Rn(ke){ke.keyCode==27&&R.value.length<R.selectionStart&&(I||(A=R.value),N=B=-1,ae()),mn()}p.addListener(R,"compositionstart",tn,C),p.addListener(R,"compositionupdate",fn,C),p.addListener(R,"keyup",Rn,C),p.addListener(R,"keydown",mn,C),p.addListener(R,"compositionend",Yt,C),this.getElement=function(){return R},this.setCommandMode=function(ke){O=ke,R.readOnly=!1},this.setReadOnly=function(ke){O||(R.readOnly=ke)},this.setCopyWithEmptySelection=function(ke){},this.onContextMenu=function(ke){Te=!0,ae(),C._emit("nativecontextmenu",{target:C,domEvent:ke}),this.moveToMouse(ke,!0)},this.moveToMouse=function(ke,ze){F||(F=R.style.cssText),R.style.cssText=(ze?"z-index:100000;":"")+(b.isIE?"opacity:0.1;":"")+"text-indent: -"+(N+B)*C.renderer.characterWidth*.5+"px;";var Xe=C.container.getBoundingClientRect(),gt=h.computedStyle(C.container),At=Xe.top+(parseInt(gt.borderTopWidth)||0),St=Xe.left+(parseInt(gt.borderLeftWidth)||0),Dt=Xe.bottom-At-R.clientHeight-2,Ot=function(ut){h.translate(R,ut.clientX-St-2,Math.min(ut.clientY-At-2,Dt))};Ot(ke),ke.type=="mousedown"&&(C.renderer.$isMousePressed=!0,clearTimeout(Ln),b.isWin&&p.capture(C.container,Ot,Qn))},this.onContextMenuClose=Qn;var Ln;function Qn(){clearTimeout(Ln),Ln=setTimeout(function(){F&&(R.style.cssText=F,F=""),C.renderer.$isMousePressed=!1,C.renderer.$keepTextAreaAtCursor&&C.renderer.$moveTextAreaToCursor()},0)}var bt=function(ke){C.textInput.onContextMenu(ke),Qn()};p.addListener(R,"mouseup",bt,C),p.addListener(R,"mousedown",function(ke){ke.preventDefault(),Qn()},C),p.addListener(C.renderer.scroller,"contextmenu",bt,C),p.addListener(R,"contextmenu",bt,C),w&&He(S,C,R);function He(ke,ze,Xe){var gt=null,At=!1;Xe.addEventListener("keydown",function(Dt){gt&&clearTimeout(gt),At=!0},!0),Xe.addEventListener("keyup",function(Dt){gt=setTimeout(function(){At=!1},100)},!0);var St=function(Dt){if(document.activeElement===Xe&&!(At||I||ze.$mouseHandler.isMousePressed)&&!L){var Ot=Xe.selectionStart,ut=Xe.selectionEnd,xt=null,kn=0;if(Ot==0?xt=c.up:Ot==1?xt=c.home:ut>B&&A[ut]==`
|
177
|
+
`?xt=c.end:Ot<N&&A[Ot-1]==" "?(xt=c.left,kn=d.option):Ot<N||Ot==N&&B!=N&&Ot==ut?xt=c.left:ut>B&&A.slice(0,ut).split(`
|
178
|
+
`).length>2?xt=c.down:ut>B&&A[ut-1]==" "?(xt=c.right,kn=d.option):(ut>B||ut==B&&B!=N&&Ot==ut)&&(xt=c.right),Ot!==ut&&(kn|=d.shift),xt){var kr=ze.onCommandKey({},kn,xt);if(!kr&&ze.commands){xt=c.keyCodeToString(xt);var Kr=ze.commands.findKeyCommand(kn,xt);Kr&&ze.execCommand(Kr)}N=Ot,B=ut,ae("")}}};document.addEventListener("selectionchange",St),ze.on("destroy",function(){document.removeEventListener("selectionchange",St)})}this.destroy=function(){R.parentElement&&R.parentElement.removeChild(R)}},r.TextInput=$,r.$setUserAgentForTests=function(S,C){E=S,w=C}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(e,r,f){var p=e("../lib/useragent"),y=0,b=550,h=function(){function l(u){u.$clickSelection=null;var a=u.editor;a.setDefaultHandler("mousedown",this.onMouseDown.bind(u)),a.setDefaultHandler("dblclick",this.onDoubleClick.bind(u)),a.setDefaultHandler("tripleclick",this.onTripleClick.bind(u)),a.setDefaultHandler("quadclick",this.onQuadClick.bind(u)),a.setDefaultHandler("mousewheel",this.onMouseWheel.bind(u));var o=["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"];o.forEach(function(c){u[c]=this[c]},this),u.selectByLines=this.extendSelectionBy.bind(u,"getLineRange"),u.selectByWords=this.extendSelectionBy.bind(u,"getWordRange")}return l.prototype.onMouseDown=function(u){var a=u.inSelection(),o=u.getDocumentPosition();this.mousedownEvent=u;var c=this.editor,d=u.getButton();if(d!==0){var w=c.getSelectionRange(),x=w.isEmpty();(x||d==1)&&c.selection.moveToPosition(o),d==2&&(c.textInput.onContextMenu(u.domEvent),p.isMozilla||u.preventDefault());return}if(this.mousedownEvent.time=Date.now(),a&&!c.isFocused()&&(c.focus(),this.$focusTimeout&&!this.$clickSelection&&!c.inMultiSelectMode)){this.setState("focusWait"),this.captureMouse(u);return}return this.captureMouse(u),this.startSelect(o,u.domEvent._clicks>1),u.preventDefault()},l.prototype.startSelect=function(u,a){u=u||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var o=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?o.selection.selectToPosition(u):a||o.selection.moveToPosition(u),a||this.select(),o.setStyle("ace_selecting"),this.setState("select"))},l.prototype.select=function(){var u,a=this.editor,o=a.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var c=this.$clickSelection.comparePoint(o);if(c==-1)u=this.$clickSelection.end;else if(c==1)u=this.$clickSelection.start;else{var d=s(this.$clickSelection,o);o=d.cursor,u=d.anchor}a.selection.setSelectionAnchor(u.row,u.column)}a.selection.selectToPosition(o),a.renderer.scrollCursorIntoView()},l.prototype.extendSelectionBy=function(u){var a,o=this.editor,c=o.renderer.screenToTextCoordinates(this.x,this.y),d=o.selection[u](c.row,c.column);if(this.$clickSelection){var w=this.$clickSelection.comparePoint(d.start),x=this.$clickSelection.comparePoint(d.end);if(w==-1&&x<=0)a=this.$clickSelection.end,(d.end.row!=c.row||d.end.column!=c.column)&&(c=d.start);else if(x==1&&w>=0)a=this.$clickSelection.start,(d.start.row!=c.row||d.start.column!=c.column)&&(c=d.end);else if(w==-1&&x==1)c=d.end,a=d.start;else{var E=s(this.$clickSelection,c);c=E.cursor,a=E.anchor}o.selection.setSelectionAnchor(a.row,a.column)}o.selection.selectToPosition(c),o.renderer.scrollCursorIntoView()},l.prototype.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting")},l.prototype.focusWait=function(){var u=g(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),a=Date.now();(u>y||a-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},l.prototype.onDoubleClick=function(u){var a=u.getDocumentPosition(),o=this.editor,c=o.session,d=c.getBracketRange(a);d?(d.isEmpty()&&(d.start.column--,d.end.column++),this.setState("select")):(d=o.selection.getWordRange(a.row,a.column),this.setState("selectByWords")),this.$clickSelection=d,this.select()},l.prototype.onTripleClick=function(u){var a=u.getDocumentPosition(),o=this.editor;this.setState("selectByLines");var c=o.getSelectionRange();c.isMultiLine()&&c.contains(a.row,a.column)?(this.$clickSelection=o.selection.getLineRange(c.start.row),this.$clickSelection.end=o.selection.getLineRange(c.end.row).end):this.$clickSelection=o.selection.getLineRange(a.row),this.select()},l.prototype.onQuadClick=function(u){var a=this.editor;a.selectAll(),this.$clickSelection=a.getSelectionRange(),this.setState("selectAll")},l.prototype.onMouseWheel=function(u){if(!u.getAccelKey()){u.getShiftKey()&&u.wheelY&&!u.wheelX&&(u.wheelX=u.wheelY,u.wheelY=0);var a=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var o=this.$lastScroll,c=u.domEvent.timeStamp,d=c-o.t,w=d?u.wheelX/d:o.vx,x=d?u.wheelY/d:o.vy;d<b&&(w=(w+o.vx)/2,x=(x+o.vy)/2);var E=Math.abs(w/x),$=!1;if(E>=1&&a.renderer.isScrollableBy(u.wheelX*u.speed,0)&&($=!0),E<=1&&a.renderer.isScrollableBy(0,u.wheelY*u.speed)&&($=!0),$)o.allowed=c;else if(c-o.allowed<b){var S=Math.abs(w)<=1.5*Math.abs(o.vx)&&Math.abs(x)<=1.5*Math.abs(o.vy);S?($=!0,o.allowed=c):o.allowed=0}if(o.t=c,o.vx=w,o.vy=x,$)return a.renderer.scrollBy(u.wheelX*u.speed,u.wheelY*u.speed),u.stop()}},l}();h.prototype.selectEnd=h.prototype.selectByLinesEnd,h.prototype.selectAllEnd=h.prototype.selectByLinesEnd,h.prototype.selectByWordsEnd=h.prototype.selectByLinesEnd,r.DefaultHandlers=h;function g(l,u,a,o){return Math.sqrt(Math.pow(a-l,2)+Math.pow(o-u,2))}function s(l,u){if(l.start.row==l.end.row)var a=2*u.column-l.start.column-l.end.column;else if(l.start.row==l.end.row-1&&!l.start.column&&!l.end.column)var a=u.column-4;else var a=2*u.row-l.start.row-l.end.row;return a<0?{cursor:l.start,anchor:l.end}:{cursor:l.end,anchor:l.start}}}),ace.define("ace/lib/scroll",["require","exports","module"],function(e,r,f){r.preventParentScroll=function(p){p.stopPropagation();var y=p.currentTarget,b=y.scrollHeight>y.clientHeight;b||p.preventDefault()}}),ace.define("ace/tooltip",["require","exports","module","ace/lib/dom","ace/lib/event","ace/range","ace/lib/scroll"],function(e,r,f){var p=this&&this.__extends||function(){var c=function(d,w){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,E){x.__proto__=E}||function(x,E){for(var $ in E)Object.prototype.hasOwnProperty.call(E,$)&&(x[$]=E[$])},c(d,w)};return function(d,w){if(typeof w!="function"&&w!==null)throw new TypeError("Class extends value "+String(w)+" is not a constructor or null");c(d,w);function x(){this.constructor=d}d.prototype=w===null?Object.create(w):(x.prototype=w.prototype,new x)}}(),y=this&&this.__values||function(c){var d=typeof Symbol=="function"&&Symbol.iterator,w=d&&c[d],x=0;if(w)return w.call(c);if(c&&typeof c.length=="number")return{next:function(){return c&&x>=c.length&&(c=void 0),{value:c&&c[x++],done:!c}}};throw new TypeError(d?"Object is not iterable.":"Symbol.iterator is not defined.")},b=e("./lib/dom");e("./lib/event");var h=e("./range").Range,g=e("./lib/scroll").preventParentScroll,s="ace_tooltip",l=function(){function c(d){this.isOpen=!1,this.$element=null,this.$parentNode=d}return c.prototype.$init=function(){return this.$element=b.createElement("div"),this.$element.className=s,this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},c.prototype.getElement=function(){return this.$element||this.$init()},c.prototype.setText=function(d){this.getElement().textContent=d},c.prototype.setHtml=function(d){this.getElement().innerHTML=d},c.prototype.setPosition=function(d,w){this.getElement().style.left=d+"px",this.getElement().style.top=w+"px"},c.prototype.setClassName=function(d){b.addCssClass(this.getElement(),d)},c.prototype.setTheme=function(d){this.$element.className=s+" "+(d.isDark?"ace_dark ":"")+(d.cssClass||"")},c.prototype.show=function(d,w,x){d!=null&&this.setText(d),w!=null&&x!=null&&this.setPosition(w,x),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},c.prototype.hide=function(d){this.isOpen&&(this.getElement().style.display="none",this.getElement().className=s,this.isOpen=!1)},c.prototype.getHeight=function(){return this.getElement().offsetHeight},c.prototype.getWidth=function(){return this.getElement().offsetWidth},c.prototype.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)},c}(),u=function(){function c(){this.popups=[]}return c.prototype.addPopup=function(d){this.popups.push(d),this.updatePopups()},c.prototype.removePopup=function(d){var w=this.popups.indexOf(d);w!==-1&&(this.popups.splice(w,1),this.updatePopups())},c.prototype.updatePopups=function(){var d,w,x,E;this.popups.sort(function(F,O){return O.priority-F.priority});var $=[];try{for(var S=y(this.popups),C=S.next();!C.done;C=S.next()){var R=C.value,L=!0;try{for(var P=(x=void 0,y($)),I=P.next();!I.done;I=P.next()){var H=I.value;if(this.doPopupsOverlap(H,R)){L=!1;break}}}catch(F){x={error:F}}finally{try{I&&!I.done&&(E=P.return)&&E.call(P)}finally{if(x)throw x.error}}L?$.push(R):R.hide()}}catch(F){d={error:F}}finally{try{C&&!C.done&&(w=S.return)&&w.call(S)}finally{if(d)throw d.error}}},c.prototype.doPopupsOverlap=function(d,w){var x=d.getElement().getBoundingClientRect(),E=w.getElement().getBoundingClientRect();return x.left<E.right&&x.right>E.left&&x.top<E.bottom&&x.bottom>E.top},c}(),a=new u;r.popupManager=a,r.Tooltip=l;var o=function(c){p(d,c);function d(w){w===void 0&&(w=document.body);var x=c.call(this,w)||this;x.timeout=void 0,x.lastT=0,x.idleTime=350,x.lastEvent=void 0,x.onMouseOut=x.onMouseOut.bind(x),x.onMouseMove=x.onMouseMove.bind(x),x.waitForHover=x.waitForHover.bind(x),x.hide=x.hide.bind(x);var E=x.getElement();return E.style.whiteSpace="pre-wrap",E.style.pointerEvents="auto",E.addEventListener("mouseout",x.onMouseOut),E.tabIndex=-1,E.addEventListener("blur",(function(){E.contains(document.activeElement)||this.hide()}).bind(x)),E.addEventListener("wheel",g),x}return d.prototype.addToEditor=function(w){w.on("mousemove",this.onMouseMove),w.on("mousedown",this.hide),w.renderer.getMouseEventTarget().addEventListener("mouseout",this.onMouseOut,!0)},d.prototype.removeFromEditor=function(w){w.off("mousemove",this.onMouseMove),w.off("mousedown",this.hide),w.renderer.getMouseEventTarget().removeEventListener("mouseout",this.onMouseOut,!0),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},d.prototype.onMouseMove=function(w,x){this.lastEvent=w,this.lastT=Date.now();var E=x.$mouseHandler.isMousePressed;if(this.isOpen){var $=this.lastEvent&&this.lastEvent.getDocumentPosition();(!this.range||!this.range.contains($.row,$.column)||E||this.isOutsideOfText(this.lastEvent))&&this.hide()}this.timeout||E||(this.lastEvent=w,this.timeout=setTimeout(this.waitForHover,this.idleTime))},d.prototype.waitForHover=function(){this.timeout&&clearTimeout(this.timeout);var w=Date.now()-this.lastT;if(this.idleTime-w>10){this.timeout=setTimeout(this.waitForHover,this.idleTime-w);return}this.timeout=null,this.lastEvent&&!this.isOutsideOfText(this.lastEvent)&&this.$gatherData(this.lastEvent,this.lastEvent.editor)},d.prototype.isOutsideOfText=function(w){var x=w.editor,E=w.getDocumentPosition(),$=x.session.getLine(E.row);if(E.column==$.length){var S=x.renderer.pixelToScreenCoordinates(w.clientX,w.clientY),C=x.session.documentToScreenPosition(E.row,E.column);if(C.column!=S.column||C.row!=S.row)return!0}return!1},d.prototype.setDataProvider=function(w){this.$gatherData=w},d.prototype.showForRange=function(w,x,E,$){var S=10;if(!($&&$!=this.lastEvent)&&!(this.isOpen&&document.activeElement==this.getElement())){var C=w.renderer;this.isOpen||(a.addPopup(this),this.$registerCloseEvents(),this.setTheme(C.theme)),this.isOpen=!0,this.addMarker(x,w.session),this.range=h.fromPoints(x.start,x.end);var R=C.textToScreenCoordinates(x.start.row,x.start.column),L=C.scroller.getBoundingClientRect();R.pageX<L.left&&(R.pageX=L.left);var P=this.getElement();P.innerHTML="",P.appendChild(E),P.style.maxHeight="",P.style.display="block";var I=P.clientHeight,H=P.clientWidth,F=window.innerHeight-R.pageY-C.lineHeight,O=!0;R.pageY-I<0&&R.pageY<F&&(O=!1),P.style.maxHeight=(O?R.pageY:F)-S+"px",P.style.top=O?"":R.pageY+C.lineHeight+"px",P.style.bottom=O?window.innerHeight-R.pageY+"px":"",P.style.left=Math.min(R.pageX,window.innerWidth-H-S)+"px"}},d.prototype.addMarker=function(w,x){this.marker&&this.$markerSession.removeMarker(this.marker),this.$markerSession=x,this.marker=x&&x.addMarker(w,"ace_highlight-marker","text")},d.prototype.hide=function(w){!w&&document.activeElement==this.getElement()||w&&w.target&&(w.type!="keydown"||w.ctrlKey||w.metaKey)&&this.$element.contains(w.target)||(this.lastEvent=null,this.timeout&&clearTimeout(this.timeout),this.timeout=null,this.addMarker(null),this.isOpen&&(this.$removeCloseEvents(),this.getElement().style.display="none",this.isOpen=!1,a.removePopup(this)))},d.prototype.$registerCloseEvents=function(){window.addEventListener("keydown",this.hide,!0),window.addEventListener("wheel",this.hide,!0),window.addEventListener("mousedown",this.hide,!0)},d.prototype.$removeCloseEvents=function(){window.removeEventListener("keydown",this.hide,!0),window.removeEventListener("wheel",this.hide,!0),window.removeEventListener("mousedown",this.hide,!0)},d.prototype.onMouseOut=function(w){this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.lastEvent=null,this.isOpen&&(!w.relatedTarget||this.getElement().contains(w.relatedTarget)||w&&w.currentTarget.contains(w.relatedTarget)||w.relatedTarget.classList.contains("ace_content")||this.hide())},d}(l);r.HoverTooltip=o}),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/tooltip","ace/config"],function(e,r,f){var p=this&&this.__extends||function(){var c=function(d,w){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,E){x.__proto__=E}||function(x,E){for(var $ in E)Object.prototype.hasOwnProperty.call(E,$)&&(x[$]=E[$])},c(d,w)};return function(d,w){if(typeof w!="function"&&w!==null)throw new TypeError("Class extends value "+String(w)+" is not a constructor or null");c(d,w);function x(){this.constructor=d}d.prototype=w===null?Object.create(w):(x.prototype=w.prototype,new x)}}(),y=this&&this.__values||function(c){var d=typeof Symbol=="function"&&Symbol.iterator,w=d&&c[d],x=0;if(w)return w.call(c);if(c&&typeof c.length=="number")return{next:function(){return c&&x>=c.length&&(c=void 0),{value:c&&c[x++],done:!c}}};throw new TypeError(d?"Object is not iterable.":"Symbol.iterator is not defined.")},b=e("../lib/dom"),h=e("../lib/event"),g=e("../tooltip").Tooltip,s=e("../config").nls,l=5,u=3;r.GUTTER_TOOLTIP_LEFT_OFFSET=l,r.GUTTER_TOOLTIP_TOP_OFFSET=u;function a(c){var d=c.editor,w=d.renderer.$gutterLayer,x=new o(d,!0);c.editor.setDefaultHandler("guttermousedown",function(L){if(!(!d.isFocused()||L.getButton()!=0)){var P=w.getRegion(L);if(P!="foldWidgets"){var I=L.getDocumentPosition().row,H=d.session.selection;if(L.getShiftKey())H.selectTo(I,0);else{if(L.domEvent.detail==2)return d.selectAll(),L.preventDefault();c.$clickSelection=d.selection.getLineRange(I)}return c.setState("selectByLines"),c.captureMouse(L),L.preventDefault()}}});var E,$;function S(){var L=$.getDocumentPosition().row,P=d.session.getLength();if(L==P){var I=d.renderer.pixelToScreenCoordinates(0,$.y).row,H=$.$pos;if(I>d.session.documentToScreenRow(H.row,H.column))return C()}if(x.showTooltip(L),!!x.isOpen)if(d.on("mousewheel",C),d.on("changeSession",C),window.addEventListener("keydown",C,!0),c.$tooltipFollowsMouse)R($);else{var F=$.getGutterRow(),O=w.$lines.get(F);if(O){var _=O.element.querySelector(".ace_gutter_annotation"),A=_.getBoundingClientRect(),N=x.getElement().style;N.left=A.right-l+"px",N.top=A.bottom-u+"px"}else R($)}}function C(L){L&&L.type==="keydown"&&(L.ctrlKey||L.metaKey)||L&&L.type==="mouseout"&&(!L.relatedTarget||x.getElement().contains(L.relatedTarget))||(E&&(E=clearTimeout(E)),x.isOpen&&(x.hideTooltip(),d.off("mousewheel",C),d.off("changeSession",C),window.removeEventListener("keydown",C,!0)))}function R(L){x.setPosition(L.x,L.y)}c.editor.setDefaultHandler("guttermousemove",function(L){var P=L.domEvent.target||L.domEvent.srcElement;if(b.hasCssClass(P,"ace_fold-widget")||b.hasCssClass(P,"ace_custom-widget"))return C();x.isOpen&&c.$tooltipFollowsMouse&&R(L),$=L,!E&&(E=setTimeout(function(){E=null,$&&!c.isMousePressed&&S()},50))}),h.addListener(d.renderer.$gutter,"mouseout",function(L){$=null,x.isOpen&&(E=setTimeout(function(){E=null,C(L)},50))},d)}r.GutterHandler=a;var o=function(c){p(d,c);function d(w,x){x===void 0&&(x=!1);var E=c.call(this,w.container)||this;E.editor=w,E.visibleTooltipRow;var $=E.getElement();return $.setAttribute("role","tooltip"),$.style.pointerEvents="auto",x&&(E.onMouseOut=E.onMouseOut.bind(E),$.addEventListener("mouseout",E.onMouseOut)),E}return d.prototype.onMouseOut=function(w){this.isOpen&&(!w.relatedTarget||this.getElement().contains(w.relatedTarget)||w&&w.currentTarget.contains(w.relatedTarget)||this.hideTooltip())},d.prototype.setPosition=function(w,x){var E=window.innerWidth||document.documentElement.clientWidth,$=window.innerHeight||document.documentElement.clientHeight,S=this.getWidth(),C=this.getHeight();w+=15,x+=15,w+S>E&&(w-=w+S-E),x+C>$&&(x-=20+C),g.prototype.setPosition.call(this,w,x)},Object.defineProperty(d,"annotationLabels",{get:function(){return{error:{singular:s("gutter-tooltip.aria-label.error.singular","error"),plural:s("gutter-tooltip.aria-label.error.plural","errors")},security:{singular:s("gutter-tooltip.aria-label.security.singular","security finding"),plural:s("gutter-tooltip.aria-label.security.plural","security findings")},warning:{singular:s("gutter-tooltip.aria-label.warning.singular","warning"),plural:s("gutter-tooltip.aria-label.warning.plural","warnings")},info:{singular:s("gutter-tooltip.aria-label.info.singular","information message"),plural:s("gutter-tooltip.aria-label.info.plural","information messages")},hint:{singular:s("gutter-tooltip.aria-label.hint.singular","suggestion"),plural:s("gutter-tooltip.aria-label.hint.plural","suggestions")}}},enumerable:!1,configurable:!0}),d.prototype.showTooltip=function(w){var x,E=this.editor.renderer.$gutterLayer,$=E.$annotations[w],S;$?S={displayText:Array.from($.displayText),type:Array.from($.type)}:S={displayText:[],type:[]};var C=E.session.getFoldLine(w);if(C&&E.$showFoldedAnnotations){for(var R={error:[],security:[],warning:[],info:[],hint:[]},L={error:1,security:2,warning:3,info:4,hint:5},P,I=w+1;I<=C.end.row;I++)if(E.$annotations[I])for(var H=0;H<E.$annotations[I].text.length;H++){var F=E.$annotations[I].type[H];R[F].push(E.$annotations[I].text[H]),(!P||L[F]<L[P])&&(P=F)}if(["error","security","warning"].includes(P)){var O="".concat(d.annotationsToSummaryString(R)," in folded code.");S.displayText.push(O),S.type.push(P+"_fold")}}if(S.displayText.length===0)return this.hideTooltip();for(var _={error:[],security:[],warning:[],info:[],hint:[]},A=E.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",I=0;I<S.displayText.length;I++){var N=b.createElement("span"),B=b.createElement("span");(x=B.classList).add.apply(x,["ace_".concat(S.type[I]),A]),B.setAttribute("aria-label","".concat(d.annotationLabels[S.type[I].replace("_fold","")].singular)),B.setAttribute("role","img"),B.appendChild(b.createTextNode(" ")),N.appendChild(B),N.appendChild(b.createTextNode(S.displayText[I])),N.appendChild(b.createElement("br")),_[S.type[I].replace("_fold","")].push(N)}var U=this.getElement();b.removeChildren(U),_.error.forEach(function(q){return U.appendChild(q)}),_.security.forEach(function(q){return U.appendChild(q)}),_.warning.forEach(function(q){return U.appendChild(q)}),_.info.forEach(function(q){return U.appendChild(q)}),_.hint.forEach(function(q){return U.appendChild(q)}),U.setAttribute("aria-live","polite"),this.isOpen||(this.setTheme(this.editor.renderer.theme),this.setClassName("ace_gutter-tooltip")),this.show(),this.visibleTooltipRow=w,this.editor._signal("showGutterTooltip",this)},d.prototype.hideTooltip=function(){this.isOpen&&(this.$element.removeAttribute("aria-live"),this.hide(),this.visibleTooltipRow=void 0,this.editor._signal("hideGutterTooltip",this))},d.annotationsToSummaryString=function(w){var x,E,$=[],S=["error","security","warning","info","hint"];try{for(var C=y(S),R=C.next();!R.done;R=C.next()){var L=R.value;if(w[L].length){var P=w[L].length===1?d.annotationLabels[L].singular:d.annotationLabels[L].plural;$.push("".concat(w[L].length," ").concat(P))}}}catch(I){x={error:I}}finally{try{R&&!R.done&&(E=C.return)&&E.call(C)}finally{if(x)throw x.error}}return $.join(", ")},d}(g);r.GutterTooltip=o}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(e,r,f){var p=e("../lib/event"),y=e("../lib/useragent"),b=function(){function h(g,s){this.speed,this.wheelX,this.wheelY,this.domEvent=g,this.editor=s,this.x=this.clientX=g.clientX,this.y=this.clientY=g.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1}return h.prototype.stopPropagation=function(){p.stopPropagation(this.domEvent),this.propagationStopped=!0},h.prototype.preventDefault=function(){p.preventDefault(this.domEvent),this.defaultPrevented=!0},h.prototype.stop=function(){this.stopPropagation(),this.preventDefault()},h.prototype.getDocumentPosition=function(){return this.$pos?this.$pos:(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY),this.$pos)},h.prototype.getGutterRow=function(){var g=this.getDocumentPosition().row,s=this.editor.session.documentToScreenRow(g,0),l=this.editor.session.documentToScreenRow(this.editor.renderer.$gutterLayer.$lines.get(0).row,0);return s-l},h.prototype.inSelection=function(){if(this.$inSelection!==null)return this.$inSelection;var g=this.editor,s=g.getSelectionRange();if(s.isEmpty())this.$inSelection=!1;else{var l=this.getDocumentPosition();this.$inSelection=s.contains(l.row,l.column)}return this.$inSelection},h.prototype.getButton=function(){return p.getButton(this.domEvent)},h.prototype.getShiftKey=function(){return this.domEvent.shiftKey},h.prototype.getAccelKey=function(){return y.isMac?this.domEvent.metaKey:this.domEvent.ctrlKey},h}();r.MouseEvent=b}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(e,r,f){var p=e("../lib/dom"),y=e("../lib/event"),b=e("../lib/useragent"),h=200,g=200,s=5;function l(a){var o=a.editor,c=p.createElement("div");c.style.cssText="top:-100px;position:absolute;z-index:2147483647;opacity:0.5",c.textContent=" ";var d=["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"];d.forEach(function(ne){a[ne]=this[ne]},this),o.on("mousedown",this.onMouseDown.bind(a));var w=o.container,x,E,$,S,C,R,L=0,P,I,H,F,O;this.onDragStart=function(ne){if(this.cancelDrag||!w.draggable){var ae=this;return setTimeout(function(){ae.startSelect(),ae.captureMouse(ne)},0),ne.preventDefault()}C=o.getSelectionRange();var ue=ne.dataTransfer;ue.effectAllowed=o.getReadOnly()?"copy":"copyMove",o.container.appendChild(c),ue.setDragImage&&ue.setDragImage(c,0,0),setTimeout(function(){o.container.removeChild(c)}),ue.clearData(),ue.setData("Text",o.session.getTextRange()),I=!0,this.setState("drag")},this.onDragEnd=function(ne){if(w.draggable=!1,I=!1,this.setState(null),!o.getReadOnly()){var ae=ne.dataTransfer.dropEffect;!P&&ae=="move"&&o.session.remove(o.getSelectionRange()),o.$resetCursorStyle()}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(ne){if(!(o.getReadOnly()||!te(ne.dataTransfer)))return E=ne.clientX,$=ne.clientY,x||B(),L++,ne.dataTransfer.dropEffect=P=he(ne),y.preventDefault(ne)},this.onDragOver=function(ne){if(!(o.getReadOnly()||!te(ne.dataTransfer)))return E=ne.clientX,$=ne.clientY,x||(B(),L++),q!==null&&(q=null),ne.dataTransfer.dropEffect=P=he(ne),y.preventDefault(ne)},this.onDragLeave=function(ne){if(L--,L<=0&&x)return U(),P=null,y.preventDefault(ne)},this.onDrop=function(ne){if(R){var ae=ne.dataTransfer;if(I)switch(P){case"move":C.contains(R.row,R.column)?C={start:R,end:R}:C=o.moveText(C,R);break;case"copy":C=o.moveText(C,R,!0);break}else{var ue=ae.getData("Text");C={start:R,end:o.session.insert(R,ue)},o.focus(),P=null}return U(),y.preventDefault(ne)}},y.addListener(w,"dragstart",this.onDragStart.bind(a),o),y.addListener(w,"dragend",this.onDragEnd.bind(a),o),y.addListener(w,"dragenter",this.onDragEnter.bind(a),o),y.addListener(w,"dragover",this.onDragOver.bind(a),o),y.addListener(w,"dragleave",this.onDragLeave.bind(a),o),y.addListener(w,"drop",this.onDrop.bind(a),o);function _(ne,ae){var ue=Date.now(),ce=!ae||ne.row!=ae.row,fe=!ae||ne.column!=ae.column;if(!F||ce||fe)o.moveCursorToPosition(ne),F=ue,O={x:E,y:$};else{var Te=u(O.x,O.y,E,$);Te>s?F=null:ue-F>=g&&(o.renderer.scrollCursorIntoView(),F=null)}}function A(ne,ae){var ue=Date.now(),ce=o.renderer.layerConfig.lineHeight,fe=o.renderer.layerConfig.characterWidth,Te=o.renderer.scroller.getBoundingClientRect(),$e={x:{left:E-Te.left,right:Te.right-E},y:{top:$-Te.top,bottom:Te.bottom-$}},Ie=Math.min($e.x.left,$e.x.right),Ye=Math.min($e.y.top,$e.y.bottom),qe={row:ne.row,column:ne.column};Ie/fe<=2&&(qe.column+=$e.x.left<$e.x.right?-3:2),Ye/ce<=1&&(qe.row+=$e.y.top<$e.y.bottom?-1:1);var dt=ne.row!=qe.row,nt=ne.column!=qe.column,pt=!ae||ne.row!=ae.row;dt||nt&&!pt?H?ue-H>=h&&o.renderer.scrollCursorIntoView(qe):H=ue:H=null}function N(){var ne=R;R=o.renderer.screenToTextCoordinates(E,$),_(R,ne),A(R,ne)}function B(){C=o.selection.toOrientedRange(),x=o.session.addMarker(C,"ace_selection",o.getSelectionStyle()),o.clearSelection(),o.isFocused()&&o.renderer.$cursorLayer.setBlinking(!1),clearInterval(S),N(),S=setInterval(N,20),L=0,y.addListener(document,"mousemove",Z)}function U(){clearInterval(S),o.session.removeMarker(x),x=null,o.selection.fromOrientedRange(C),o.isFocused()&&!I&&o.$resetCursorStyle(),C=null,R=null,L=0,H=null,F=null,y.removeListener(document,"mousemove",Z)}var q=null;function Z(){q==null&&(q=setTimeout(function(){q!=null&&x&&U()},20))}function te(ne){var ae=ne.types;return!ae||Array.prototype.some.call(ae,function(ue){return ue=="text/plain"||ue=="Text"})}function he(ne){var ae=["copy","copymove","all","uninitialized"],ue=["move","copymove","linkmove","all","uninitialized"],ce=b.isMac?ne.altKey:ne.ctrlKey,fe="uninitialized";try{fe=ne.dataTransfer.effectAllowed.toLowerCase()}catch{}var Te="none";return ce&&ae.indexOf(fe)>=0?Te="copy":ue.indexOf(fe)>=0?Te="move":ae.indexOf(fe)>=0&&(Te="copy"),Te}}(function(){this.dragWait=function(){var a=Date.now()-this.mousedownEvent.time;a>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){var a=this.editor.container;a.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(a){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var a=this.editor,o=a.container;o.draggable=!0,a.renderer.$cursorLayer.setBlinking(!1),a.setStyle("ace_dragging");var c=b.isWin?"default":"move";a.renderer.setCursorStyle(c),this.setState("dragReady")},this.onMouseDrag=function(a){var o=this.editor.container;if(b.isIE&&this.state=="dragReady"){var c=u(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);c>3&&o.dragDrop()}if(this.state==="dragWait"){var c=u(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);c>0&&(o.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))}},this.onMouseDown=function(a){if(this.$dragEnabled){this.mousedownEvent=a;var o=this.editor,c=a.inSelection(),d=a.getButton(),w=a.domEvent.detail||1;if(w===1&&d===0&&c){if(a.editor.inMultiSelectMode&&(a.getAccelKey()||a.getShiftKey()))return;this.mousedownEvent.time=Date.now();var x=a.domEvent.target||a.domEvent.srcElement;if("unselectable"in x&&(x.unselectable="on"),o.getDragDelay()){if(b.isWebKit){this.cancelDrag=!0;var E=o.container;E.draggable=!0}this.setState("dragWait")}else this.startDrag();this.captureMouse(a,this.onMouseDrag.bind(this)),a.defaultPrevented=!0}}}}).call(l.prototype);function u(a,o,c,d){return Math.sqrt(Math.pow(c-a,2)+Math.pow(d-o,2))}r.DragdropHandler=l}),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],function(e,r,f){var p=e("./mouse_event").MouseEvent,y=e("../lib/event"),b=e("../lib/dom");r.addTouchListeners=function(h,g){var s="scroll",l,u,a,o,c,d,w=0,x,E=0,$=0,S=0,C,R;function L(){var _=window.navigator&&window.navigator.clipboard,A=!1,N=function(){var q=g.getCopyText(),Z=g.session.getUndoManager().hasUndo();R.replaceChild(b.buildDom(A?["span",!q&&B("selectall")&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],q&&B("copy")&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],q&&B("cut")&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],_&&B("paste")&&["span",{class:"ace_mobile-button",action:"paste"},"Paste"],Z&&B("undo")&&["span",{class:"ace_mobile-button",action:"undo"},"Undo"],B("find")&&["span",{class:"ace_mobile-button",action:"find"},"Find"],B("openCommandPalette")&&["span",{class:"ace_mobile-button",action:"openCommandPalette"},"Palette"]]:["span"]),R.firstChild)},B=function(q){return g.commands.canExecute(q,g)},U=function(q){var Z=q.target.getAttribute("action");if(Z=="more"||!A)return A=!A,N();Z=="paste"?_.readText().then(function(te){g.execCommand(Z,te)}):Z&&((Z=="cut"||Z=="copy")&&(_?_.writeText(g.getCopyText()):document.execCommand("copy")),g.execCommand(Z)),R.firstChild.style.display="none",A=!1,Z!="openCommandPalette"&&g.focus()};R=b.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(q){s="menu",q.stopPropagation(),q.preventDefault(),g.textInput.focus()},ontouchend:function(q){q.stopPropagation(),q.preventDefault(),U(q)},onclick:U},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],g.container)}function P(){if(!g.getOption("enableMobileMenu")){R&&I();return}R||L();var _=g.selection.cursor,A=g.renderer.textToScreenCoordinates(_.row,_.column),N=g.renderer.textToScreenCoordinates(0,0).pageX,B=g.renderer.scrollLeft,U=g.container.getBoundingClientRect();R.style.top=A.pageY-U.top-3+"px",A.pageX-U.left<U.width-70?(R.style.left="",R.style.right="10px"):(R.style.right="",R.style.left=N+B-U.left+"px"),R.style.display="",R.firstChild.style.display="none",g.on("input",I)}function I(_){R&&(R.style.display="none"),g.off("input",I)}function H(){c=null,clearTimeout(c);var _=g.selection.getRange(),A=_.contains(x.row,x.column);(_.isEmpty()||!A)&&(g.selection.moveToPosition(x),g.selection.selectWord()),s="wait",P()}function F(){c=null,clearTimeout(c),g.selection.moveToPosition(x);var _=E>=2?g.selection.getLineRange(x.row):g.session.getBracketRange(x);_&&!_.isEmpty()?g.selection.setRange(_):g.selection.selectWord(),s="wait"}y.addListener(h,"contextmenu",function(_){if(C){var A=g.textInput.getElement();A.focus()}},g),y.addListener(h,"touchstart",function(_){var A=_.touches;if(c||A.length>1){clearTimeout(c),c=null,a=-1,s="zoom";return}C=g.$mouseHandler.isMousePressed=!0;var N=g.renderer.layerConfig.lineHeight,B=g.renderer.layerConfig.lineHeight,U=_.timeStamp;o=U;var q=A[0],Z=q.clientX,te=q.clientY;Math.abs(l-Z)+Math.abs(u-te)>N&&(a=-1),l=_.clientX=Z,u=_.clientY=te,$=S=0;var he=new p(_,g);if(x=he.getDocumentPosition(),U-a<500&&A.length==1&&!w)E++,_.preventDefault(),_.button=0,F();else{E=0;var ne=g.selection.cursor,ae=g.selection.isEmpty()?ne:g.selection.anchor,ue=g.renderer.$cursorLayer.getPixelPosition(ne,!0),ce=g.renderer.$cursorLayer.getPixelPosition(ae,!0),fe=g.renderer.scroller.getBoundingClientRect(),Te=g.renderer.layerConfig.offset,$e=g.renderer.scrollLeft,Ie=function(dt,nt){return dt=dt/B,nt=nt/N-.75,dt*dt+nt*nt};if(_.clientX<fe.left){s="zoom";return}var Ye=Ie(_.clientX-fe.left-ue.left+$e,_.clientY-fe.top-ue.top+Te),qe=Ie(_.clientX-fe.left-ce.left+$e,_.clientY-fe.top-ce.top+Te);Ye<3.5&&qe<3.5&&(s=Ye>qe?"cursor":"anchor"),qe<3.5?s="anchor":Ye<3.5?s="cursor":s="scroll",c=setTimeout(H,450)}a=U},g),y.addListener(h,"touchend",function(_){C=g.$mouseHandler.isMousePressed=!1,d&&clearInterval(d),s=="zoom"?(s="",w=0):c?(g.selection.moveToPosition(x),w=0,P()):s=="scroll"?(O(),I()):P(),clearTimeout(c),c=null},g),y.addListener(h,"touchmove",function(_){c&&(clearTimeout(c),c=null);var A=_.touches;if(!(A.length>1||s=="zoom")){var N=A[0],B=l-N.clientX,U=u-N.clientY;if(s=="wait")if(B*B+U*U>4)s="cursor";else return _.preventDefault();l=N.clientX,u=N.clientY,_.clientX=N.clientX,_.clientY=N.clientY;var q=_.timeStamp,Z=q-o;if(o=q,s=="scroll"){var te=new p(_,g);te.speed=1,te.wheelX=B,te.wheelY=U,10*Math.abs(B)<Math.abs(U)&&(B=0),10*Math.abs(U)<Math.abs(B)&&(U=0),Z!=0&&($=B/Z,S=U/Z),g._emit("mousewheel",te),te.propagationStopped||($=S=0)}else{var he=new p(_,g),ne=he.getDocumentPosition();s=="cursor"?g.selection.moveCursorToPosition(ne):s=="anchor"&&g.selection.setSelectionAnchor(ne.row,ne.column),g.renderer.scrollCursorIntoView(ne),_.preventDefault()}}},g);function O(){w+=60,d=setInterval(function(){w--<=0&&(clearInterval(d),d=null),Math.abs($)<.01&&($=0),Math.abs(S)<.01&&(S=0),w<20&&($=.9*$),w<20&&(S=.9*S);var _=g.session.getScrollTop();g.renderer.scrollBy(10*$,10*S),_==g.session.getScrollTop()&&(w=0)},10)}}}),ace.define("ace/mouse/mouse_handler",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/mouse/default_handlers","ace/mouse/default_gutter_handler","ace/mouse/mouse_event","ace/mouse/dragdrop_handler","ace/mouse/touch_handler","ace/config"],function(e,r,f){var p=e("../lib/event"),y=e("../lib/useragent"),b=e("./default_handlers").DefaultHandlers,h=e("./default_gutter_handler").GutterHandler,g=e("./mouse_event").MouseEvent,s=e("./dragdrop_handler").DragdropHandler,l=e("./touch_handler").addTouchListeners,u=e("../config"),a=function(){function o(c){this.$dragDelay,this.$dragEnabled,this.$mouseMoved,this.mouseEvent,this.$focusTimeout;var d=this;this.editor=c,new b(this),new h(this),new s(this);var w=function($){var S=!document.hasFocus||!document.hasFocus()||!c.isFocused()&&document.activeElement==(c.textInput&&c.textInput.getElement());S&&window.focus(),c.focus(),setTimeout(function(){c.isFocused()||c.focus()})},x=c.renderer.getMouseEventTarget();p.addListener(x,"click",this.onMouseEvent.bind(this,"click"),c),p.addListener(x,"mousemove",this.onMouseMove.bind(this,"mousemove"),c),p.addMultiMouseDownListener([x,c.renderer.scrollBarV&&c.renderer.scrollBarV.inner,c.renderer.scrollBarH&&c.renderer.scrollBarH.inner,c.textInput&&c.textInput.getElement()].filter(Boolean),[400,300,250],this,"onMouseEvent",c),p.addMouseWheelListener(c.container,this.onMouseWheel.bind(this,"mousewheel"),c),l(c.container,c);var E=c.renderer.$gutter;p.addListener(E,"mousedown",this.onMouseEvent.bind(this,"guttermousedown"),c),p.addListener(E,"click",this.onMouseEvent.bind(this,"gutterclick"),c),p.addListener(E,"dblclick",this.onMouseEvent.bind(this,"gutterdblclick"),c),p.addListener(E,"mousemove",this.onMouseEvent.bind(this,"guttermousemove"),c),p.addListener(x,"mousedown",w,c),p.addListener(E,"mousedown",w,c),y.isIE&&c.renderer.scrollBarV&&(p.addListener(c.renderer.scrollBarV.element,"mousedown",w,c),p.addListener(c.renderer.scrollBarH.element,"mousedown",w,c)),c.on("mousemove",function($){if(!(d.state||d.$dragDelay||!d.$dragEnabled)){var S=c.renderer.screenToTextCoordinates($.x,$.y),C=c.session.selection.getRange(),R=c.renderer;!C.isEmpty()&&C.insideStart(S.row,S.column)?R.setCursorStyle("default"):R.setCursorStyle("")}},c)}return o.prototype.onMouseEvent=function(c,d){this.editor.session&&this.editor._emit(c,new g(d,this.editor))},o.prototype.onMouseMove=function(c,d){var w=this.editor._eventRegistry&&this.editor._eventRegistry.mousemove;!w||!w.length||this.editor._emit(c,new g(d,this.editor))},o.prototype.onMouseWheel=function(c,d){var w=new g(d,this.editor);w.speed=this.$scrollSpeed*2,w.wheelX=d.wheelX,w.wheelY=d.wheelY,this.editor._emit(c,w)},o.prototype.setState=function(c){this.state=c},o.prototype.captureMouse=function(c,d){this.x=c.x,this.y=c.y,this.isMousePressed=!0;var w=this.editor,x=this.editor.renderer;x.$isMousePressed=!0;var E=this,$=function(P){if(P){if(y.isWebKit&&!P.which&&E.releaseMouse)return E.releaseMouse();E.x=P.clientX,E.y=P.clientY,d&&d(P),E.mouseEvent=new g(P,E.editor),E.$mouseMoved=!0}},S=function(P){w.off("beforeEndOperation",R),clearInterval(L),w.session&&C(),E[E.state+"End"]&&E[E.state+"End"](P),E.state="",E.isMousePressed=x.$isMousePressed=!1,x.$keepTextAreaAtCursor&&x.$moveTextAreaToCursor(),E.$onCaptureMouseMove=E.releaseMouse=null,P&&E.onMouseEvent("mouseup",P),w.endOperation()},C=function(){E[E.state]&&E[E.state](),E.$mouseMoved=!1};if(y.isOldIE&&c.domEvent.type=="dblclick")return setTimeout(function(){S(c)});var R=function(P){E.releaseMouse&&w.curOp.command.name&&w.curOp.selectionChanged&&(E[E.state+"End"]&&E[E.state+"End"](),E.state="",E.releaseMouse())};w.on("beforeEndOperation",R),w.startOperation({command:{name:"mouse"}}),E.$onCaptureMouseMove=$,E.releaseMouse=p.capture(this.editor.container,$,S);var L=setInterval(C,20)},o.prototype.cancelContextMenu=function(){var c=(function(d){d&&d.domEvent&&d.domEvent.type!="contextmenu"||(this.editor.off("nativecontextmenu",c),d&&d.domEvent&&p.stopEvent(d.domEvent))}).bind(this);setTimeout(c,10),this.editor.on("nativecontextmenu",c)},o.prototype.destroy=function(){this.releaseMouse&&this.releaseMouse()},o}();a.prototype.releaseMouse=null,u.defineOptions(a.prototype,"mouseHandler",{scrollSpeed:{initialValue:2},dragDelay:{initialValue:y.isMac?150:0},dragEnabled:{initialValue:!0},focusTimeout:{initialValue:0},tooltipFollowsMouse:{initialValue:!0}}),r.MouseHandler=a}),ace.define("ace/mouse/fold_handler",["require","exports","module","ace/lib/dom"],function(e,r,f){var p=e("../lib/dom"),y=function(){function b(h){h.on("click",function(g){var s=g.getDocumentPosition(),l=h.session,u=l.getFoldAt(s.row,s.column,1);u&&(g.getAccelKey()?l.removeFold(u):l.expandFold(u),g.stop());var a=g.domEvent&&g.domEvent.target;a&&p.hasCssClass(a,"ace_inline_button")&&p.hasCssClass(a,"ace_toggle_wrap")&&(l.setOption("wrap",!l.getUseWrapMode()),h.renderer.scrollCursorIntoView())}),h.on("gutterclick",function(g){var s=h.renderer.$gutterLayer.getRegion(g);if(s=="foldWidgets"){var l=g.getDocumentPosition().row,u=h.session;u.foldWidgets&&u.foldWidgets[l]&&h.session.onFoldWidgetClick(l,g),h.isFocused()||h.focus(),g.stop()}}),h.on("gutterdblclick",function(g){var s=h.renderer.$gutterLayer.getRegion(g);if(s=="foldWidgets"){var l=g.getDocumentPosition().row,u=h.session,a=u.getParentFoldRangeData(l,!0),o=a.range||a.firstRange;if(o){l=o.start.row;var c=u.getFoldAt(l,u.getLine(l).length,1);c?u.removeFold(c):(u.addFold("...",o),h.renderer.scrollCursorIntoView({row:o.start.row,column:0}))}g.stop()}})}return b}();r.FoldHandler=y}),ace.define("ace/keyboard/keybinding",["require","exports","module","ace/lib/keys","ace/lib/event"],function(e,r,f){var p=e("../lib/keys"),y=e("../lib/event"),b=function(){function h(g){this.$editor=g,this.$data={editor:g},this.$handlers=[],this.setDefaultHandler(g.commands)}return h.prototype.setDefaultHandler=function(g){this.removeKeyboardHandler(this.$defaultHandler),this.$defaultHandler=g,this.addKeyboardHandler(g,0)},h.prototype.setKeyboardHandler=function(g){var s=this.$handlers;if(s[s.length-1]!=g){for(;s[s.length-1]&&s[s.length-1]!=this.$defaultHandler;)this.removeKeyboardHandler(s[s.length-1]);this.addKeyboardHandler(g,1)}},h.prototype.addKeyboardHandler=function(g,s){if(g){typeof g=="function"&&!g.handleKeyboard&&(g.handleKeyboard=g);var l=this.$handlers.indexOf(g);l!=-1&&this.$handlers.splice(l,1),s==null?this.$handlers.push(g):this.$handlers.splice(s,0,g),l==-1&&g.attach&&g.attach(this.$editor)}},h.prototype.removeKeyboardHandler=function(g){var s=this.$handlers.indexOf(g);return s==-1?!1:(this.$handlers.splice(s,1),g.detach&&g.detach(this.$editor),!0)},h.prototype.getKeyboardHandler=function(){return this.$handlers[this.$handlers.length-1]},h.prototype.getStatusText=function(){var g=this.$data,s=g.editor;return this.$handlers.map(function(l){return l.getStatusText&&l.getStatusText(s,g)||""}).filter(Boolean).join(" ")},h.prototype.$callKeyboardHandlers=function(g,s,l,u){for(var a,o=!1,c=this.$editor.commands,d=this.$handlers.length;d--&&(a=this.$handlers[d].handleKeyboard(this.$data,g,s,l,u),!(!(!a||!a.command)&&(a.command=="null"?o=!0:o=c.exec(a.command,this.$editor,a.args,u),o&&u&&g!=-1&&a.passEvent!=!0&&a.command.passEvent!=!0&&y.stopEvent(u),o))););return!o&&g==-1&&(a={command:"insertstring"},o=c.exec("insertstring",this.$editor,s)),o&&this.$editor._signal&&this.$editor._signal("keyboardActivity",a),o},h.prototype.onCommandKey=function(g,s,l){var u=p.keyCodeToString(l);return this.$callKeyboardHandlers(s,u,l,g)},h.prototype.onTextInput=function(g){return this.$callKeyboardHandlers(-1,g)},h}();r.KeyBinding=b}),ace.define("ace/lib/bidiutil",["require","exports","module"],function(e,r,f){var p=0,y=0,b=!1,h=!1,g=!1,s=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],l=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],u=0,a=1,o=0,c=1,d=2,w=3,x=4,E=5,$=6,S=7,C=8,R=9,L=10,P=11,I=12,H=13,F=14,O=15,_=16,A=17,N=18,B=[N,N,N,N,N,N,N,N,N,$,E,$,C,E,N,N,N,N,N,N,N,N,N,N,N,N,N,N,E,E,E,$,C,x,x,P,P,P,x,x,x,x,x,L,R,L,R,R,d,d,d,d,d,d,d,d,d,d,R,x,x,x,x,x,x,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,x,x,x,x,x,x,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,x,x,x,x,N,N,N,N,N,N,E,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,R,x,P,P,P,P,x,x,x,x,o,x,x,N,x,x,P,P,d,d,x,o,x,x,x,d,o,x,x,x,x,x],U=[C,C,C,C,C,C,C,C,C,C,C,N,N,N,o,c,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,C,E,H,F,O,_,A,R,P,P,P,P,P,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,R,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,C];function q(ne,ae,ue,ce){var fe=p?l:s,Te=null,$e=null,Ie=null,Ye=0,qe=null,dt=null,nt=-1,pt=null,tn=null,fn=[];if(!ce)for(pt=0,ce=[];pt<ue;pt++)ce[pt]=he(ne[pt]);for(y=p,b=!1,h=!1,g=!1,tn=0;tn<ue;tn++){if(Te=Ye,fn[tn]=$e=te(ne,ce,fn,tn),Ye=fe[Te][$e],qe=Ye&240,Ye&=15,ae[tn]=Ie=fe[Ye][5],qe>0)if(qe==16){for(pt=nt;pt<tn;pt++)ae[pt]=1;nt=-1}else nt=-1;if(dt=fe[Ye][6],dt)nt==-1&&(nt=tn);else if(nt>-1){for(pt=nt;pt<tn;pt++)ae[pt]=Ie;nt=-1}ce[tn]==E&&(ae[tn]=0),y|=Ie}if(g){for(pt=0;pt<ue;pt++)if(ce[pt]==$){ae[pt]=p;for(var Yt=pt-1;Yt>=0&&ce[Yt]==C;Yt--)ae[Yt]=p}}}function Z(ne,ae,ue){if(!(y<ne)){if(ne==1&&p==a&&!h){ue.reverse();return}for(var ce=ue.length,fe=0,Te,$e,Ie,Ye;fe<ce;){if(ae[fe]>=ne){for(Te=fe+1;Te<ce&&ae[Te]>=ne;)Te++;for($e=fe,Ie=Te-1;$e<Ie;$e++,Ie--)Ye=ue[$e],ue[$e]=ue[Ie],ue[Ie]=Ye;fe=Te}fe++}}}function te(ne,ae,ue,ce){var fe=ae[ce],Te,$e,Ie,Ye;switch(fe){case o:case c:b=!1;case x:case w:return fe;case d:return b?w:d;case S:return b=!0,c;case C:return x;case R:return ce<1||ce+1>=ae.length||(Te=ue[ce-1])!=d&&Te!=w||($e=ae[ce+1])!=d&&$e!=w?x:(b&&($e=w),$e==Te?$e:x);case L:return Te=ce>0?ue[ce-1]:E,Te==d&&ce+1<ae.length&&ae[ce+1]==d?d:x;case P:if(ce>0&&ue[ce-1]==d)return d;if(b)return x;for(Ye=ce+1,Ie=ae.length;Ye<Ie&&ae[Ye]==P;)Ye++;return Ye<Ie&&ae[Ye]==d?d:x;case I:for(Ie=ae.length,Ye=ce+1;Ye<Ie&&ae[Ye]==I;)Ye++;if(Ye<Ie){var qe=ne[ce],dt=qe>=1425&&qe<=2303||qe==64286;if(Te=ae[Ye],dt&&(Te==c||Te==S))return c}return ce<1||(Te=ae[ce-1])==E?x:ue[ce-1];case E:return b=!1,h=!0,p;case $:return g=!0,x;case H:case F:case _:case A:case O:b=!1;case N:return x}}function he(ne){var ae=ne.charCodeAt(0),ue=ae>>8;return ue==0?ae>191?o:B[ae]:ue==5?/[\u0591-\u05f4]/.test(ne)?c:o:ue==6?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(ne)?I:/[\u0660-\u0669\u066b-\u066c]/.test(ne)?w:ae==1642?P:/[\u06f0-\u06f9]/.test(ne)?d:S:ue==32&&ae<=8287?U[ae&255]:ue==254&&ae>=65136?S:x}r.L=o,r.R=c,r.EN=d,r.ON_R=3,r.AN=4,r.R_H=5,r.B=6,r.RLE=7,r.DOT="·",r.doBidiReorder=function(ne,ae,ue){if(ne.length<2)return{};var ce=ne.split(""),fe=new Array(ce.length),Te=new Array(ce.length),$e=[];p=ue?a:u,q(ce,$e,ce.length,ae);for(var Ie=0;Ie<fe.length;fe[Ie]=Ie,Ie++);Z(2,$e,fe),Z(1,$e,fe);for(var Ie=0;Ie<fe.length-1;Ie++)ae[Ie]===w?$e[Ie]=r.AN:$e[Ie]===c&&(ae[Ie]>S&&ae[Ie]<H||ae[Ie]===x||ae[Ie]===N)?$e[Ie]=r.ON_R:Ie>0&&ce[Ie-1]==="ل"&&/\u0622|\u0623|\u0625|\u0627/.test(ce[Ie])&&($e[Ie-1]=$e[Ie]=r.R_H,Ie++);ce[ce.length-1]===r.DOT&&($e[ce.length-1]=r.B),ce[0]===""&&($e[0]=r.RLE);for(var Ie=0;Ie<fe.length;Ie++)Te[Ie]=$e[fe[Ie]];return{logicalFromVisual:fe,bidiLevels:Te}},r.hasBidiCharacters=function(ne,ae){for(var ue=!1,ce=0;ce<ne.length;ce++)ae[ce]=he(ne.charAt(ce)),!ue&&(ae[ce]==c||ae[ce]==S||ae[ce]==w)&&(ue=!0);return ue},r.getVisualFromLogicalIdx=function(ne,ae){for(var ue=0;ue<ae.logicalFromVisual.length;ue++)if(ae.logicalFromVisual[ue]==ne)return ue;return 0}}),ace.define("ace/bidihandler",["require","exports","module","ace/lib/bidiutil","ace/lib/lang"],function(e,r,f){var p=e("./lib/bidiutil"),y=e("./lib/lang"),b=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\u202B]/,h=function(){function g(s){this.session=s,this.bidiMap={},this.currentRow=null,this.bidiUtil=p,this.charWidths=[],this.EOL="¬",this.showInvisibles=!0,this.isRtlDir=!1,this.$isRtl=!1,this.line="",this.wrapIndent=0,this.EOF="¶",this.RLE="",this.contentWidth=0,this.fontMetrics=null,this.rtlLineOffset=0,this.wrapOffset=0,this.isMoveLeftOperation=!1,this.seenBidi=b.test(s.getValue())}return g.prototype.isBidiRow=function(s,l,u){return this.seenBidi?(s!==this.currentRow&&(this.currentRow=s,this.updateRowLine(l,u),this.updateBidiMap()),this.bidiMap.bidiLevels):!1},g.prototype.onChange=function(s){this.seenBidi?this.currentRow=null:s.action=="insert"&&b.test(s.lines.join(`
|
179
179
|
`))&&(this.seenBidi=!0,this.currentRow=null)},g.prototype.getDocumentRow=function(){var s=0,l=this.session.$screenRowCache;if(l.length){var u=this.session.$getRowCacheIndex(l,this.currentRow);u>=0&&(s=this.session.$docRowCache[u])}return s},g.prototype.getSplitIndex=function(){var s=0,l=this.session.$screenRowCache;if(l.length)for(var u,a=this.session.$getRowCacheIndex(l,this.currentRow);this.currentRow-s>0&&(u=this.session.$getRowCacheIndex(l,this.currentRow-s-1),u===a);)a=u,s++;else s=this.currentRow;return s},g.prototype.updateRowLine=function(s,l){s===void 0&&(s=this.getDocumentRow());var u=s===this.session.getLength()-1,a=u?this.EOF:this.EOL;if(this.wrapIndent=0,this.line=this.session.getLine(s),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode){var o=this.session.$wrapData[s];o&&(l===void 0&&(l=this.getSplitIndex()),l>0&&o.length?(this.wrapIndent=o.indent,this.wrapOffset=this.wrapIndent*this.charWidths[p.L],this.line=l<o.length?this.line.substring(o[l-1],o[l]):this.line.substring(o[o.length-1])):this.line=this.line.substring(0,o[l]),l==o.length&&(this.line+=this.showInvisibles?a:p.DOT))}else this.line+=this.showInvisibles?a:p.DOT;var c=this.session,d=0,w;this.line=this.line.replace(/\t|[\u1100-\u2029, \u202F-\uFFE6]/g,function(x,E){return x===" "||c.isFullWidth(x.charCodeAt(0))?(w=x===" "?c.getScreenTabSize(E+d):2,d+=w-1,y.stringRepeat(p.DOT,w)):x}),this.isRtlDir&&(this.fontMetrics.$main.textContent=this.line.charAt(this.line.length-1)==p.DOT?this.line.substr(0,this.line.length-1):this.line,this.rtlLineOffset=this.contentWidth-this.fontMetrics.$main.getBoundingClientRect().width)},g.prototype.updateBidiMap=function(){var s=[];p.hasBidiCharacters(this.line,s)||this.isRtlDir?this.bidiMap=p.doBidiReorder(this.line,s,this.isRtlDir):this.bidiMap={}},g.prototype.markAsDirty=function(){this.currentRow=null},g.prototype.updateCharacterWidths=function(s){if(this.characterWidth!==s.$characterSize.width){this.fontMetrics=s;var l=this.characterWidth=s.$characterSize.width,u=s.$measureCharWidth("ה");this.charWidths[p.L]=this.charWidths[p.EN]=this.charWidths[p.ON_R]=l,this.charWidths[p.R]=this.charWidths[p.AN]=u,this.charWidths[p.R_H]=u*.45,this.charWidths[p.B]=this.charWidths[p.RLE]=0,this.currentRow=null}},g.prototype.setShowInvisibles=function(s){this.showInvisibles=s,this.currentRow=null},g.prototype.setEolChar=function(s){this.EOL=s},g.prototype.setContentWidth=function(s){this.contentWidth=s},g.prototype.isRtlLine=function(s){return this.$isRtl?!0:s!=null?this.session.getLine(s).charAt(0)==this.RLE:this.isRtlDir},g.prototype.setRtlDirection=function(s,l){for(var u=s.getCursorPosition(),a=s.selection.getSelectionAnchor().row;a<=u.row;a++)!l&&s.session.getLine(a).charAt(0)===s.session.$bidiHandler.RLE?s.session.doc.removeInLine(a,0,1):l&&s.session.getLine(a).charAt(0)!==s.session.$bidiHandler.RLE&&s.session.doc.insert({column:0,row:a},s.session.$bidiHandler.RLE)},g.prototype.getPosLeft=function(s){s-=this.wrapIndent;var l=this.line.charAt(0)===this.RLE?1:0,u=s>l?this.session.getOverwrite()?s:s-1:l,a=p.getVisualFromLogicalIdx(u,this.bidiMap),o=this.bidiMap.bidiLevels,c=0;!this.session.getOverwrite()&&s<=l&&o[a]%2!==0&&a++;for(var d=0;d<a;d++)c+=this.charWidths[o[d]];return!this.session.getOverwrite()&&s>l&&o[a]%2===0&&(c+=this.charWidths[o[a]]),this.wrapIndent&&(c+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(c+=this.rtlLineOffset),c},g.prototype.getSelections=function(s,l){var u=this.bidiMap,a=u.bidiLevels,o,c=[],d=0,w=Math.min(s,l)-this.wrapIndent,x=Math.max(s,l)-this.wrapIndent,E=!1,$=!1,S=0;this.wrapIndent&&(d+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var C,R=0;R<a.length;R++)C=u.logicalFromVisual[R],o=a[R],E=C>=w&&C<x,E&&!$?S=d:!E&&$&&c.push({left:S,width:d-S}),d+=this.charWidths[o],$=E;if(E&&R===a.length&&c.push({left:S,width:d-S}),this.isRtlDir)for(var L=0;L<c.length;L++)c[L].left+=this.rtlLineOffset;return c},g.prototype.offsetToCol=function(u){this.isRtlDir&&(u-=this.rtlLineOffset);var l=0,u=Math.max(u,0),a=0,o=0,c=this.bidiMap.bidiLevels,d=this.charWidths[c[o]];for(this.wrapIndent&&(u-=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);u>a+d/2;){if(a+=d,o===c.length-1){d=0;break}d=this.charWidths[c[++o]]}return o>0&&c[o-1]%2!==0&&c[o]%2===0?(u<a&&o--,l=this.bidiMap.logicalFromVisual[o]):o>0&&c[o-1]%2===0&&c[o]%2!==0?l=1+(u>a?this.bidiMap.logicalFromVisual[o]:this.bidiMap.logicalFromVisual[o-1]):this.isRtlDir&&o===c.length-1&&d===0&&c[o-1]%2===0||!this.isRtlDir&&o===0&&c[o]%2!==0?l=1+this.bidiMap.logicalFromVisual[o]:(o>0&&c[o-1]%2!==0&&d!==0&&o--,l=this.bidiMap.logicalFromVisual[o]),l===0&&this.isRtlDir&&l++,l+this.wrapIndent},g}();r.BidiHandler=h}),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],function(e,r,f){var p=e("./lib/oop"),y=e("./lib/lang"),b=e("./lib/event_emitter").EventEmitter,h=e("./range").Range,g=function(){function s(l){this.session=l,this.doc=l.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var u=this;this.cursor.on("change",function(a){u.$cursorChanged=!0,u.$silent||u._emit("changeCursor"),!u.$isEmpty&&!u.$silent&&u._emit("changeSelection"),!u.$keepDesiredColumnOnChange&&a.old.column!=a.value.column&&(u.$desiredColumn=null)}),this.anchor.on("change",function(){u.$anchorChanged=!0,!u.$isEmpty&&!u.$silent&&u._emit("changeSelection")})}return s.prototype.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},s.prototype.isMultiLine=function(){return!this.$isEmpty&&this.anchor.row!=this.cursor.row},s.prototype.getCursor=function(){return this.lead.getPosition()},s.prototype.setAnchor=function(l,u){this.$isEmpty=!1,this.anchor.setPosition(l,u)},s.prototype.getAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},s.prototype.getSelectionLead=function(){return this.lead.getPosition()},s.prototype.isBackwards=function(){var l=this.anchor,u=this.lead;return l.row>u.row||l.row==u.row&&l.column>u.column},s.prototype.getRange=function(){var l=this.anchor,u=this.lead;return this.$isEmpty?h.fromPoints(u,u):this.isBackwards()?h.fromPoints(u,l):h.fromPoints(l,u)},s.prototype.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},s.prototype.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},s.prototype.setRange=function(l,u){var a=u?l.end:l.start,o=u?l.start:l.end;this.$setSelection(a.row,a.column,o.row,o.column)},s.prototype.$setSelection=function(l,u,a,o){if(!this.$silent){var c=this.$isEmpty,d=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(l,u),this.cursor.setPosition(a,o),this.$isEmpty=!h.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||c!=this.$isEmpty||d)&&this._emit("changeSelection")}},s.prototype.$moveSelection=function(l){var u=this.lead;this.$isEmpty&&this.setSelectionAnchor(u.row,u.column),l.call(this)},s.prototype.selectTo=function(l,u){this.$moveSelection(function(){this.moveCursorTo(l,u)})},s.prototype.selectToPosition=function(l){this.$moveSelection(function(){this.moveCursorToPosition(l)})},s.prototype.moveTo=function(l,u){this.clearSelection(),this.moveCursorTo(l,u)},s.prototype.moveToPosition=function(l){this.clearSelection(),this.moveCursorToPosition(l)},s.prototype.selectUp=function(){this.$moveSelection(this.moveCursorUp)},s.prototype.selectDown=function(){this.$moveSelection(this.moveCursorDown)},s.prototype.selectRight=function(){this.$moveSelection(this.moveCursorRight)},s.prototype.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},s.prototype.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},s.prototype.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},s.prototype.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},s.prototype.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},s.prototype.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},s.prototype.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},s.prototype.getWordRange=function(l,u){if(typeof u>"u"){var a=l||this.lead;l=a.row,u=a.column}return this.session.getWordRange(l,u)},s.prototype.selectWord=function(){this.setSelectionRange(this.getWordRange())},s.prototype.selectAWord=function(){var l=this.getCursor(),u=this.session.getAWordRange(l.row,l.column);this.setSelectionRange(u)},s.prototype.getLineRange=function(l,u){var a=typeof l=="number"?l:this.lead.row,o,c=this.session.getFoldLine(a);return c?(a=c.start.row,o=c.end.row):o=a,u===!0?new h(a,0,o,this.session.getLine(o).length):new h(a,0,o+1,0)},s.prototype.selectLine=function(){this.setSelectionRange(this.getLineRange())},s.prototype.moveCursorUp=function(){this.moveCursorBy(-1,0)},s.prototype.moveCursorDown=function(){this.moveCursorBy(1,0)},s.prototype.wouldMoveIntoSoftTab=function(l,u,a){var o=l.column,c=l.column+u;return a<0&&(o=l.column-u,c=l.column),this.session.isTabStop(l)&&this.doc.getLine(l.row).slice(o,c).split(" ").length-1==u},s.prototype.moveCursorLeft=function(){var l=this.lead.getPosition(),u;if(u=this.session.getFoldAt(l.row,l.column,-1))this.moveCursorTo(u.start.row,u.start.column);else if(l.column===0)l.row>0&&this.moveCursorTo(l.row-1,this.doc.getLine(l.row-1).length);else{var a=this.session.getTabSize();this.wouldMoveIntoSoftTab(l,a,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-a):this.moveCursorBy(0,-1)}},s.prototype.moveCursorRight=function(){var l=this.lead.getPosition(),u;if(u=this.session.getFoldAt(l.row,l.column,1))this.moveCursorTo(u.end.row,u.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row<this.doc.getLength()-1&&this.moveCursorTo(this.lead.row+1,0);else{var a=this.session.getTabSize(),l=this.lead;this.wouldMoveIntoSoftTab(l,a,1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,a):this.moveCursorBy(0,1)}},s.prototype.moveCursorLineStart=function(){var l=this.lead.row,u=this.lead.column,a=this.session.documentToScreenRow(l,u),o=this.session.screenToDocumentPosition(a,0),c=this.session.getDisplayLine(l,null,o.row,o.column),d=c.match(/^\s*/);d[0].length!=u&&!this.session.$useEmacsStyleLineStart&&(o.column+=d[0].length),this.moveCursorToPosition(o)},s.prototype.moveCursorLineEnd=function(){var l=this.lead,u=this.session.getDocumentLastRowColumnPosition(l.row,l.column);if(this.lead.column==u.column){var a=this.session.getLine(u.row);if(u.column==a.length){var o=a.search(/\s+$/);o>0&&(u.column=o)}}this.moveCursorTo(u.row,u.column)},s.prototype.moveCursorFileEnd=function(){var l=this.doc.getLength()-1,u=this.doc.getLine(l).length;this.moveCursorTo(l,u)},s.prototype.moveCursorFileStart=function(){this.moveCursorTo(0,0)},s.prototype.moveCursorLongWordRight=function(){var l=this.lead.row,u=this.lead.column,a=this.doc.getLine(l),o=a.substring(u);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var c=this.session.getFoldAt(l,u,1);if(c){this.moveCursorTo(c.end.row,c.end.column);return}if(this.session.nonTokenRe.exec(o)&&(u+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,o=a.substring(u)),u>=a.length){this.moveCursorTo(l,a.length),this.moveCursorRight(),l<this.doc.getLength()-1&&this.moveCursorWordRight();return}this.session.tokenRe.exec(o)&&(u+=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(l,u)},s.prototype.moveCursorLongWordLeft=function(){var l=this.lead.row,u=this.lead.column,a;if(a=this.session.getFoldAt(l,u,-1)){this.moveCursorTo(a.start.row,a.start.column);return}var o=this.session.getFoldStringAt(l,u,-1);o==null&&(o=this.doc.getLine(l).substring(0,u));var c=y.stringReverse(o);if(this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0,this.session.nonTokenRe.exec(c)&&(u-=this.session.nonTokenRe.lastIndex,c=c.slice(this.session.nonTokenRe.lastIndex),this.session.nonTokenRe.lastIndex=0),u<=0){this.moveCursorTo(l,0),this.moveCursorLeft(),l>0&&this.moveCursorWordLeft();return}this.session.tokenRe.exec(c)&&(u-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(l,u)},s.prototype.$shortWordEndIndex=function(l){var u=0,a,o=/\s/,c=this.session.tokenRe;if(c.lastIndex=0,this.session.tokenRe.exec(l))u=this.session.tokenRe.lastIndex;else{for(;(a=l[u])&&o.test(a);)u++;if(u<1){for(c.lastIndex=0;(a=l[u])&&!c.test(a);)if(c.lastIndex=0,u++,o.test(a))if(u>2){u--;break}else{for(;(a=l[u])&&o.test(a);)u++;if(u>2)break}}}return c.lastIndex=0,u},s.prototype.moveCursorShortWordRight=function(){var l=this.lead.row,u=this.lead.column,a=this.doc.getLine(l),o=a.substring(u),c=this.session.getFoldAt(l,u,1);if(c)return this.moveCursorTo(c.end.row,c.end.column);if(u==a.length){var d=this.doc.getLength();do l++,o=this.doc.getLine(l);while(l<d&&/^\s*$/.test(o));/^\s+/.test(o)||(o=""),u=0}var w=this.$shortWordEndIndex(o);this.moveCursorTo(l,u+w)},s.prototype.moveCursorShortWordLeft=function(){var l=this.lead.row,u=this.lead.column,a;if(a=this.session.getFoldAt(l,u,-1))return this.moveCursorTo(a.start.row,a.start.column);var o=this.session.getLine(l).substring(0,u);if(u===0){do l--,o=this.doc.getLine(l);while(l>0&&/^\s*$/.test(o));u=o.length,/\s+$/.test(o)||(o="")}var c=y.stringReverse(o),d=this.$shortWordEndIndex(c);return this.moveCursorTo(l,u-d)},s.prototype.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},s.prototype.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},s.prototype.moveCursorBy=function(l,u){var a=this.session.documentToScreenPosition(this.lead.row,this.lead.column),o;if(u===0&&(l!==0&&(this.session.$bidiHandler.isBidiRow(a.row,this.lead.row)?(o=this.session.$bidiHandler.getPosLeft(a.column),a.column=Math.round(o/this.session.$bidiHandler.charWidths[0])):o=a.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?a.column=this.$desiredColumn:this.$desiredColumn=a.column),l!=0&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]){var c=this.session.lineWidgets[this.lead.row];l<0?l-=c.rowsAbove||0:l>0&&(l+=c.rowCount-(c.rowsAbove||0))}var d=this.session.screenToDocumentPosition(a.row+l,a.column,o);l!==0&&u===0&&d.row===this.lead.row&&(d.column,this.lead.column),this.moveCursorTo(d.row,d.column+u,u===0)},s.prototype.moveCursorToPosition=function(l){this.moveCursorTo(l.row,l.column)},s.prototype.moveCursorTo=function(l,u,a){var o=this.session.getFoldAt(l,u,1);o&&(l=o.start.row,u=o.start.column),this.$keepDesiredColumnOnChange=!0;var c=this.session.getLine(l);/[\uDC00-\uDFFF]/.test(c.charAt(u))&&c.charAt(u-1)&&(this.lead.row==l&&this.lead.column==u+1?u=u-1:u=u+1),this.lead.setPosition(l,u),this.$keepDesiredColumnOnChange=!1,a||(this.$desiredColumn=null)},s.prototype.moveCursorToScreen=function(l,u,a){var o=this.session.screenToDocumentPosition(l,u);this.moveCursorTo(o.row,o.column,a)},s.prototype.detach=function(){this.lead.detach(),this.anchor.detach()},s.prototype.fromOrientedRange=function(l){this.setSelectionRange(l,l.cursor==l.start),this.$desiredColumn=l.desiredColumn||this.$desiredColumn},s.prototype.toOrientedRange=function(l){var u=this.getRange();return l?(l.start.column=u.start.column,l.start.row=u.start.row,l.end.column=u.end.column,l.end.row=u.end.row):l=u,l.cursor=this.isBackwards()?l.start:l.end,l.desiredColumn=this.$desiredColumn,l},s.prototype.getRangeOfMovements=function(l){var u=this.getCursor();try{l(this);var a=this.getCursor();return h.fromPoints(u,a)}catch{return h.fromPoints(u,u)}finally{this.moveCursorToPosition(u)}},s.prototype.toJSON=function(){if(this.rangeCount)var l=this.ranges.map(function(u){var a=u.clone();return a.isBackwards=u.cursor==u.start,a});else{var l=this.getRange();l.isBackwards=this.isBackwards()}return l},s.prototype.fromJSON=function(l){if(l.start==null)if(this.rangeList&&l.length>1){this.toSingleRange(l[0]);for(var u=l.length;u--;){var a=h.fromPoints(l[u].start,l[u].end);l[u].isBackwards&&(a.cursor=a.start),this.addRange(a,!0)}return}else l=l[0];this.rangeList&&this.toSingleRange(l),this.setSelectionRange(l,l.isBackwards)},s.prototype.isEqual=function(l){if((l.length||this.rangeCount)&&l.length!=this.rangeCount)return!1;if(!l.length||!this.ranges)return this.getRange().isEqual(l);for(var u=this.ranges.length;u--;)if(!this.ranges[u].isEqual(l[u]))return!1;return!0},s}();g.prototype.setSelectionAnchor=g.prototype.setAnchor,g.prototype.getSelectionAnchor=g.prototype.getAnchor,g.prototype.setSelectionRange=g.prototype.setRange,p.implement(g.prototype,b),r.Selection=g}),ace.define("ace/tokenizer",["require","exports","module","ace/lib/report_error"],function(e,r,f){var p=e("./lib/report_error").reportError,y=2e3,b=function(){function h(g){this.splitRegex,this.states=g,this.regExps={},this.matchMappings={};for(var s in this.states){for(var l=this.states[s],u=[],a=0,o=this.matchMappings[s]={defaultToken:"text"},c="g",d=[],w=0;w<l.length;w++){var x=l[w];if(x.defaultToken&&(o.defaultToken=x.defaultToken),x.caseInsensitive&&c.indexOf("i")===-1&&(c+="i"),x.unicode&&c.indexOf("u")===-1&&(c+="u"),x.regex!=null){x.regex instanceof RegExp&&(x.regex=x.regex.toString().slice(1,-1));var E=x.regex,$=new RegExp("(?:("+E+")|(.))").exec("a").length-2;Array.isArray(x.token)?x.token.length==1||$==1?x.token=x.token[0]:$-1!=x.token.length?(this.reportError("number of classes and regexp groups doesn't match",{rule:x,groupCount:$-1}),x.token=x.token[0]):(x.tokenArray=x.token,x.token=null,x.onMatch=this.$arrayTokens):typeof x.token=="function"&&!x.onMatch&&($>1?x.onMatch=this.$applyToken:x.onMatch=x.token),$>1&&(/\\\d/.test(x.regex)?E=x.regex.replace(/\\([0-9]+)/g,function(S,C){return"\\"+(parseInt(C,10)+a+1)}):($=1,E=this.removeCapturingGroups(x.regex)),!x.splitRegex&&typeof x.token!="string"&&d.push(x)),o[a]=w,a+=$,u.push(E),x.onMatch||(x.onMatch=null)}}u.length||(o[0]=0,u.push("$")),d.forEach(function(S){S.splitRegex=this.createSplitterRegexp(S.regex,c)},this),this.regExps[s]=new RegExp("("+u.join(")|(")+")|($)",c)}}return h.prototype.$setMaxTokenCount=function(g){y=g|0},h.prototype.$applyToken=function(g){var s=this.splitRegex.exec(g).slice(1),l=this.token.apply(this,s);if(typeof l=="string")return[{type:l,value:g}];for(var u=[],a=0,o=l.length;a<o;a++)s[a]&&(u[u.length]={type:l[a],value:s[a]});return u},h.prototype.$arrayTokens=function(g){if(!g)return[];var s=this.splitRegex.exec(g);if(!s)return"text";for(var l=[],u=this.tokenArray,a=0,o=u.length;a<o;a++)s[a+1]&&(l[l.length]={type:u[a],value:s[a+1]});return l},h.prototype.removeCapturingGroups=function(g){var s=g.replace(/\\.|\[(?:\\.|[^\\\]])*|\(\?[:=!<]|(\()/g,function(l,u){return u?"(?:":l});return s},h.prototype.createSplitterRegexp=function(g,s){if(g.indexOf("(?=")!=-1){var l=0,u=!1,a={};g.replace(/(\\.)|(\((?:\?[=!])?)|(\))|([\[\]])/g,function(o,c,d,w,x,E){return u?u=x!="]":x?u=!0:w?(l==a.stack&&(a.end=E+1,a.stack=-1),l--):d&&(l++,d.length!=1&&(a.stack=l,a.start=E)),o}),a.end!=null&&/^\)*$/.test(g.substr(a.end))&&(g=g.substring(0,a.start)+g.substr(a.end))}return g.charAt(0)!="^"&&(g="^"+g),g.charAt(g.length-1)!="$"&&(g+="$"),new RegExp(g,(s||"").replace("g",""))},h.prototype.getLineTokens=function(g,s){if(s&&typeof s!="string"){var l=s.slice(0);s=l[0],s==="#tmp"&&(l.shift(),s=l.shift())}else var l=[];var u=s||"start",a=this.states[u];a||(u="start",a=this.states[u]);var o=this.matchMappings[u],c=this.regExps[u];c.lastIndex=0;for(var d,w=[],x=0,E=0,$={type:null,value:""};d=c.exec(g);){var S=o.defaultToken,C=null,R=d[0],L=c.lastIndex;if(L-R.length>x){var P=g.substring(x,L-R.length);$.type==S?$.value+=P:($.type&&w.push($),$={type:S,value:P})}for(var I=0;I<d.length-2;I++)if(d[I+1]!==void 0){C=a[o[I]],C.onMatch?S=C.onMatch(R,u,l,g):S=C.token,C.next&&(typeof C.next=="string"?u=C.next:u=C.next(u,l),a=this.states[u],a||(this.reportError("state doesn't exist",u),u="start",a=this.states[u]),o=this.matchMappings[u],x=L,c=this.regExps[u],c.lastIndex=L),C.consumeLineEnd&&(x=L);break}if(R){if(typeof S=="string")(!C||C.merge!==!1)&&$.type===S?$.value+=R:($.type&&w.push($),$={type:S,value:R});else if(S){$.type&&w.push($),$={type:null,value:""};for(var I=0;I<S.length;I++)w.push(S[I])}}if(x==g.length)break;if(x=L,E++>y){for(E>2*g.length&&this.reportError("infinite loop with in ace tokenizer",{startState:s,line:g});x<g.length;)$.type&&w.push($),$={value:g.substring(x,x+=500),type:"overflow"};u="start",l=[];break}}return $.type&&w.push($),l.length>1&&l[0]!==u&&l.unshift("#tmp",u),{tokens:w,state:l.length?l:u}},h}();b.prototype.reportError=p,r.Tokenizer=b}),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/deep_copy"],function(e,r,f){var p=e("../lib/deep_copy").deepCopy,y;y=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}},(function(){this.addRules=function(g,s){if(!s){for(var l in g)this.$rules[l]=g[l];return}for(var l in g){for(var u=g[l],a=0;a<u.length;a++){var o=u[a];(o.next||o.onMatch)&&(typeof o.next=="string"&&o.next.indexOf(s)!==0&&(o.next=s+o.next),o.nextState&&o.nextState.indexOf(s)!==0&&(o.nextState=s+o.nextState))}this.$rules[s+l]=u}},this.getRules=function(){return this.$rules},this.embedRules=function(g,s,l,u,a){var o=typeof g=="function"?new g().getRules():g;if(u)for(var c=0;c<u.length;c++)u[c]=s+u[c];else{u=[];for(var d in o)u.push(s+d)}if(this.addRules(o,s),l)for(var w=Array.prototype[a?"push":"unshift"],c=0;c<u.length;c++)w.apply(this.$rules[u[c]],p(l));this.$embeds||(this.$embeds=[]),this.$embeds.push(s)},this.getEmbeds=function(){return this.$embeds};var b=function(g,s){return(g!="start"||s.length)&&s.unshift(this.nextState,g),this.nextState},h=function(g,s){return s.shift(),s.shift()||"start"};this.normalizeRules=function(){var g=0,s=this.$rules;function l(u){var a=s[u];a.processed=!0;for(var o=0;o<a.length;o++){var c=a[o],d=null;Array.isArray(c)&&(d=c,c={}),!c.regex&&c.start&&(c.regex=c.start,c.next||(c.next=[]),c.next.push({defaultToken:c.token},{token:c.token+".end",regex:c.end||c.start,next:"pop"}),c.token=c.token+".start",c.push=!0);var w=c.next||c.push;if(w&&Array.isArray(w)){var x=c.stateName;x||(x=c.token,typeof x!="string"&&(x=x[0]||""),s[x]&&(x+=g++)),s[x]=w,c.next=x,l(x)}else w=="pop"&&(c.next=h);if(c.push&&(c.nextState=c.next||c.push,c.next=b,delete c.push),c.rules)for(var E in c.rules)s[E]?s[E].push&&s[E].push.apply(s[E],c.rules[E]):s[E]=c.rules[E];var $=typeof c=="string"?c:c.include;if($&&($==="$self"&&($="start"),Array.isArray($)?d=$.map(function(C){return s[C]}):d=s[$]),d){var S=[o,1].concat(d);c.noEscape&&(S=S.filter(function(C){return!C.next})),a.splice.apply(a,S),o--}c.keywordMap&&(c.token=this.createKeywordMapper(c.keywordMap,c.defaultToken||"text",c.caseInsensitive),delete c.defaultToken)}}Object.keys(s).forEach(l,this)},this.createKeywordMapper=function(g,s,l,u){var a=Object.create(null);return this.$keywordList=[],Object.keys(g).forEach(function(o){for(var c=g[o],d=c.split(u||"|"),w=d.length;w--;){var x=d[w];this.$keywordList.push(x),l&&(x=x.toLowerCase()),a[x]=o}},this),g=null,l?function(o){return a[o.toLowerCase()]||s}:function(o){return a[o]||s}},this.getKeywords=function(){return this.$keywords}}).call(y.prototype),r.TextHighlightRules=y}),ace.define("ace/mode/behaviour",["require","exports","module"],function(e,r,f){var p;p=function(){this.$behaviours={}},(function(){this.add=function(y,b,h){switch(void 0){case this.$behaviours:this.$behaviours={};case this.$behaviours[y]:this.$behaviours[y]={}}this.$behaviours[y][b]=h},this.addBehaviours=function(y){for(var b in y)for(var h in y[b])this.add(b,h,y[b][h])},this.remove=function(y){this.$behaviours&&this.$behaviours[y]&&delete this.$behaviours[y]},this.inherit=function(y,b){if(typeof y=="function")var h=new y().getBehaviours(b);else var h=y.getBehaviours(b);this.addBehaviours(h)},this.getBehaviours=function(y){if(y){for(var b={},h=0;h<y.length;h++)this.$behaviours[y[h]]&&(b[y[h]]=this.$behaviours[y[h]]);return b}else return this.$behaviours}}).call(p.prototype),r.Behaviour=p}),ace.define("ace/token_iterator",["require","exports","module","ace/range"],function(e,r,f){var p=e("./range").Range,y=function(){function b(h,g,s){this.$session=h,this.$row=g,this.$rowTokens=h.getTokens(g);var l=h.getTokenAt(g,s);this.$tokenIndex=l?l.index:-1}return b.prototype.stepBackward=function(){for(this.$tokenIndex-=1;this.$tokenIndex<0;){if(this.$row-=1,this.$row<0)return this.$row=0,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=this.$rowTokens.length-1}return this.$rowTokens[this.$tokenIndex]},b.prototype.stepForward=function(){this.$tokenIndex+=1;for(var h;this.$tokenIndex>=this.$rowTokens.length;){if(this.$row+=1,h||(h=this.$session.getLength()),this.$row>=h)return this.$row=h-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},b.prototype.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},b.prototype.getCurrentTokenRow=function(){return this.$row},b.prototype.getCurrentTokenColumn=function(){var h=this.$rowTokens,g=this.$tokenIndex,s=h[g].start;if(s!==void 0)return s;for(s=0;g>0;)g-=1,s+=h[g].value.length;return s},b.prototype.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},b.prototype.getCurrentTokenRange=function(){var h=this.$rowTokens[this.$tokenIndex],g=this.getCurrentTokenColumn();return new p(this.$row,g,this.$row,g+h.value.length)},b}();r.TokenIterator=y}),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(e,r,f){var p=e("../../lib/oop"),y=e("../behaviour").Behaviour,b=e("../../token_iterator").TokenIterator,h=e("../../lib/lang"),g=["text","paren.rparen","rparen","paren","punctuation.operator"],s=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],l,u={},a={'"':'"',"'":"'"},o=function(w){var x=-1;if(w.multiSelect&&(x=w.selection.index,u.rangeCount!=w.multiSelect.rangeCount&&(u={rangeCount:w.multiSelect.rangeCount})),u[x])return l=u[x];l=u[x]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},c=function(w,x,E,$){var S=w.end.row-w.start.row;return{text:E+x+$,selection:[0,w.start.column+1,S,w.end.column+(S?0:1)]}},d;d=function(w){w=w||{},this.add("braces","insertion",function(x,E,$,S,C){var R=$.getCursorPosition(),L=S.doc.getLine(R.row);if(C=="{"){o($);var P=$.getSelectionRange(),I=S.doc.getTextRange(P),H=S.getTokenAt(R.row,R.column);if(I!==""&&I!=="{"&&$.getWrapBehavioursEnabled())return c(P,I,"{","}");if(H&&/(?:string)\.quasi|\.xml/.test(H.type)){var F=[/tag\-(?:open|name)/,/attribute\-name/];return F.some(function(q){return q.test(H.type)})||/(string)\.quasi/.test(H.type)&&H.value[R.column-H.start-1]!=="$"?void 0:(d.recordAutoInsert($,S,"}"),{text:"{}",selection:[1,1]})}else if(d.isSaneInsertion($,S))return/[\]\}\)]/.test(L[R.column])||$.inMultiSelectMode||w.braces?(d.recordAutoInsert($,S,"}"),{text:"{}",selection:[1,1]}):(d.recordMaybeInsert($,S,"{"),{text:"{",selection:[1,1]})}else if(C=="}"){o($);var O=L.substring(R.column,R.column+1);if(O=="}"){var _=S.$findOpeningBracket("}",{column:R.column+1,row:R.row});if(_!==null&&d.isAutoInsertedClosing(R,L,C))return d.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}else if(C==`
|
180
180
|
`||C==`\r
|
181
181
|
`){o($);var A="";d.isMaybeInsertedClosing(R,L)&&(A=h.stringRepeat("}",l.maybeInsertedBrackets),d.clearMaybeInsertedClosing());var O=L.substring(R.column,R.column+1);if(O==="}"){var N=S.findMatchingBracket({row:R.row,column:R.column+1},"}");if(!N)return null;var B=this.$getIndent(S.getLine(N.row))}else if(A)var B=this.$getIndent(L);else{d.clearMaybeInsertedClosing();return}var U=B+S.getTabString();return{text:`
|
@@ -1393,17 +1393,17 @@ System.register(["vue","vue-router","single-spa","vuex","vuetify"],function(er,o
|
|
1393
1393
|
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(n){return n instanceof this?n:new this(n)}static concat(n,...t){const e=new this(n);return t.forEach(r=>e.set(r)),e}static accessor(n){const t=(this[vg]=this[vg]={accessors:{}}).accessors,e=this.prototype;function r(f){const p=Aa(f);t[p]||(Zx(e,f),t[p]=!0)}return Ae.isArray(n)?n.forEach(r):r(n),this}};Hr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Ae.reduceDescriptors(Hr.prototype,({value:n},t)=>{let e=t[0].toUpperCase()+t.slice(1);return{get:()=>n,set(r){this[e]=r}}}),Ae.freezeMethods(Hr);function hu(n,t){const e=this||Sa,r=t||e,f=Hr.from(r.headers);let p=r.data;return Ae.forEach(n,function(y){p=y.call(e,p,f.normalize(),t?t.status:void 0)}),f.normalize(),p}function yg(n){return!!(n&&n.__CANCEL__)}function js(n,t,e){It.call(this,n??"canceled",It.ERR_CANCELED,t,e),this.name="CanceledError"}Ae.inherits(js,It,{__CANCEL__:!0});function wg(n,t,e){const r=e.config.validateStatus;!e.status||!r||r(e.status)?n(e):t(new It("Request failed with status code "+e.status,[It.ERR_BAD_REQUEST,It.ERR_BAD_RESPONSE][Math.floor(e.status/100)-4],e.config,e.request,e))}function Jx(n){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return t&&t[1]||""}function e1(n,t){n=n||10;const e=new Array(n),r=new Array(n);let f=0,p=0,y;return t=t!==void 0?t:1e3,function(b){const h=Date.now(),g=r[p];y||(y=h),e[f]=b,r[f]=h;let s=p,l=0;for(;s!==f;)l+=e[s++],s=s%n;if(f=(f+1)%n,f===p&&(p=(p+1)%n),h-y<t)return;const u=g&&h-g;return u?Math.round(l*1e3/u):void 0}}function t1(n,t){let e=0,r=1e3/t,f,p;const y=(b,h=Date.now())=>{e=h,f=null,p&&(clearTimeout(p),p=null),n.apply(null,b)};return[(...b)=>{const h=Date.now(),g=h-e;g>=r?y(b,h):(f=b,p||(p=setTimeout(()=>{p=null,y(f)},r-g)))},()=>f&&y(f)]}const Cl=(n,t,e=3)=>{let r=0;const f=e1(50,250);return t1(p=>{const y=p.loaded,b=p.lengthComputable?p.total:void 0,h=y-r,g=f(h),s=y<=b;r=y;const l={loaded:y,total:b,progress:b?y/b:void 0,bytes:h,rate:g||void 0,estimated:g&&b&&s?(b-y)/g:void 0,event:p,lengthComputable:b!=null,[t?"download":"upload"]:!0};n(l)},e)},bg=(n,t)=>{const e=n!=null;return[r=>t[0]({lengthComputable:e,total:n,loaded:r}),t[1]]},xg=n=>(...t)=>Ae.asap(()=>n(...t)),n1=br.hasStandardBrowserEnv?((n,t)=>e=>(e=new URL(e,br.origin),n.protocol===e.protocol&&n.host===e.host&&(t||n.port===e.port)))(new URL(br.origin),br.navigator&&/(msie|trident)/i.test(br.navigator.userAgent)):()=>!0,r1=br.hasStandardBrowserEnv?{write(n,t,e,r,f,p){const y=[n+"="+encodeURIComponent(t)];Ae.isNumber(e)&&y.push("expires="+new Date(e).toGMTString()),Ae.isString(r)&&y.push("path="+r),Ae.isString(f)&&y.push("domain="+f),p===!0&&y.push("secure"),document.cookie=y.join("; ")},read(n){const t=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(n){this.write(n,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function i1(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function o1(n,t){return t?n.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):n}function Cg(n,t,e){let r=!i1(t);return n&&(r||e==!1)?o1(n,t):t}const kg=n=>n instanceof Hr?{...n}:n;function os(n,t){t=t||{};const e={};function r(g,s,l,u){return Ae.isPlainObject(g)&&Ae.isPlainObject(s)?Ae.merge.call({caseless:u},g,s):Ae.isPlainObject(s)?Ae.merge({},s):Ae.isArray(s)?s.slice():s}function f(g,s,l,u){if(Ae.isUndefined(s)){if(!Ae.isUndefined(g))return r(void 0,g,l,u)}else return r(g,s,l,u)}function p(g,s){if(!Ae.isUndefined(s))return r(void 0,s)}function y(g,s){if(Ae.isUndefined(s)){if(!Ae.isUndefined(g))return r(void 0,g)}else return r(void 0,s)}function b(g,s,l){if(l in t)return r(g,s);if(l in n)return r(void 0,g)}const h={url:p,method:p,data:p,baseURL:y,transformRequest:y,transformResponse:y,paramsSerializer:y,timeout:y,timeoutMessage:y,withCredentials:y,withXSRFToken:y,adapter:y,responseType:y,xsrfCookieName:y,xsrfHeaderName:y,onUploadProgress:y,onDownloadProgress:y,decompress:y,maxContentLength:y,maxBodyLength:y,beforeRedirect:y,transport:y,httpAgent:y,httpsAgent:y,cancelToken:y,socketPath:y,responseEncoding:y,validateStatus:b,headers:(g,s,l)=>f(kg(g),kg(s),l,!0)};return Ae.forEach(Object.keys(Object.assign({},n,t)),function(g){const s=h[g]||f,l=s(n[g],t[g],g);Ae.isUndefined(l)&&s!==b||(e[g]=l)}),e}const Sg=n=>{const t=os({},n);let{data:e,withXSRFToken:r,xsrfHeaderName:f,xsrfCookieName:p,headers:y,auth:b}=t;t.headers=y=Hr.from(y),t.url=pg(Cg(t.baseURL,t.url,t.allowAbsoluteUrls),n.params,n.paramsSerializer),b&&y.set("Authorization","Basic "+btoa((b.username||"")+":"+(b.password?unescape(encodeURIComponent(b.password)):"")));let h;if(Ae.isFormData(e)){if(br.hasStandardBrowserEnv||br.hasStandardBrowserWebWorkerEnv)y.setContentType(void 0);else if((h=y.getContentType())!==!1){const[g,...s]=h?h.split(";").map(l=>l.trim()).filter(Boolean):[];y.setContentType([g||"multipart/form-data",...s].join("; "))}}if(br.hasStandardBrowserEnv&&(r&&Ae.isFunction(r)&&(r=r(t)),r||r!==!1&&n1(t.url))){const g=f&&p&&r1.read(p);g&&y.set(f,g)}return t},s1=typeof XMLHttpRequest<"u",a1=s1&&function(n){return new Promise(function(t,e){const r=Sg(n);let f=r.data;const p=Hr.from(r.headers).normalize();let{responseType:y,onUploadProgress:b,onDownloadProgress:h}=r,g,s,l,u,a;function o(){u&&u(),a&&a(),r.cancelToken&&r.cancelToken.unsubscribe(g),r.signal&&r.signal.removeEventListener("abort",g)}let c=new XMLHttpRequest;c.open(r.method.toUpperCase(),r.url,!0),c.timeout=r.timeout;function d(){if(!c)return;const x=Hr.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),E={data:!y||y==="text"||y==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:x,config:n,request:c};wg(function($){t($),o()},function($){e($),o()},E),c=null}"onloadend"in c?c.onloadend=d:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(d)},c.onabort=function(){c&&(e(new It("Request aborted",It.ECONNABORTED,n,c)),c=null)},c.onerror=function(){e(new It("Network Error",It.ERR_NETWORK,n,c)),c=null},c.ontimeout=function(){let x=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const E=r.transitional||fg;r.timeoutErrorMessage&&(x=r.timeoutErrorMessage),e(new It(x,E.clarifyTimeoutError?It.ETIMEDOUT:It.ECONNABORTED,n,c)),c=null},f===void 0&&p.setContentType(null),"setRequestHeader"in c&&Ae.forEach(p.toJSON(),function(x,E){c.setRequestHeader(E,x)}),Ae.isUndefined(r.withCredentials)||(c.withCredentials=!!r.withCredentials),y&&y!=="json"&&(c.responseType=r.responseType),h&&([l,a]=Cl(h,!0),c.addEventListener("progress",l)),b&&c.upload&&([s,u]=Cl(b),c.upload.addEventListener("progress",s),c.upload.addEventListener("loadend",u)),(r.cancelToken||r.signal)&&(g=x=>{c&&(e(!x||x.type?new js(null,n,c):x),c.abort(),c=null)},r.cancelToken&&r.cancelToken.subscribe(g),r.signal&&(r.signal.aborted?g():r.signal.addEventListener("abort",g)));const w=Jx(r.url);if(w&&br.protocols.indexOf(w)===-1){e(new It("Unsupported protocol "+w+":",It.ERR_BAD_REQUEST,n));return}c.send(f||null)})},l1=(n,t)=>{const{length:e}=n=n?n.filter(Boolean):[];if(t||e){let r=new AbortController,f;const p=function(g){if(!f){f=!0,b();const s=g instanceof Error?g:this.reason;r.abort(s instanceof It?s:new js(s instanceof Error?s.message:s))}};let y=t&&setTimeout(()=>{y=null,p(new It(`timeout ${t} of ms exceeded`,It.ETIMEDOUT))},t);const b=()=>{n&&(y&&clearTimeout(y),y=null,n.forEach(g=>{g.unsubscribe?g.unsubscribe(p):g.removeEventListener("abort",p)}),n=null)};n.forEach(g=>g.addEventListener("abort",p));const{signal:h}=r;return h.unsubscribe=()=>Ae.asap(b),h}},c1=function*(n,t){let e=n.byteLength;if(e<t){yield n;return}let r=0,f;for(;r<e;)f=r+t,yield n.slice(r,f),r=f},u1=async function*(n,t){for await(const e of h1(n))yield*c1(e,t)},h1=async function*(n){if(n[Symbol.asyncIterator]){yield*n;return}const t=n.getReader();try{for(;;){const{done:e,value:r}=await t.read();if(e)break;yield r}}finally{await t.cancel()}},Ag=(n,t,e,r)=>{const f=u1(n,t);let p=0,y,b=h=>{y||(y=!0,r&&r(h))};return new ReadableStream({async pull(h){try{const{done:g,value:s}=await f.next();if(g){b(),h.close();return}let l=s.byteLength;if(e){let u=p+=l;e(u)}h.enqueue(new Uint8Array(s))}catch(g){throw b(g),g}},cancel(h){return b(h),f.return()}},{highWaterMark:2})},kl=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",_g=kl&&typeof ReadableStream=="function",d1=kl&&(typeof TextEncoder=="function"?(n=>t=>n.encode(t))(new TextEncoder):async n=>new Uint8Array(await new Response(n).arrayBuffer())),Tg=(n,...t)=>{try{return!!n(...t)}catch{return!1}},p1=_g&&Tg(()=>{let n=!1;const t=new Request(br.origin,{body:new ReadableStream,method:"POST",get duplex(){return n=!0,"half"}}).headers.has("Content-Type");return n&&!t}),$g=64*1024,du=_g&&Tg(()=>Ae.isReadableStream(new Response("").body)),Sl={stream:du&&(n=>n.body)};kl&&(n=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Sl[t]&&(Sl[t]=Ae.isFunction(n[t])?e=>e[t]():(e,r)=>{throw new It(`Response type '${t}' is not supported`,It.ERR_NOT_SUPPORT,r)})})})(new Response);const g1=async n=>{if(n==null)return 0;if(Ae.isBlob(n))return n.size;if(Ae.isSpecCompliantForm(n))return(await new Request(br.origin,{method:"POST",body:n}).arrayBuffer()).byteLength;if(Ae.isArrayBufferView(n)||Ae.isArrayBuffer(n))return n.byteLength;if(Ae.isURLSearchParams(n)&&(n=n+""),Ae.isString(n))return(await d1(n)).byteLength},f1=async(n,t)=>Ae.toFiniteNumber(n.getContentLength())??g1(t),m1=kl&&(async n=>{let{url:t,method:e,data:r,signal:f,cancelToken:p,timeout:y,onDownloadProgress:b,onUploadProgress:h,responseType:g,headers:s,withCredentials:l="same-origin",fetchOptions:u}=Sg(n);g=g?(g+"").toLowerCase():"text";let a=l1([f,p&&p.toAbortSignal()],y),o;const c=a&&a.unsubscribe&&(()=>{a.unsubscribe()});let d;try{if(h&&p1&&e!=="get"&&e!=="head"&&(d=await f1(s,r))!==0){let S=new Request(t,{method:"POST",body:r,duplex:"half"}),C;if(Ae.isFormData(r)&&(C=S.headers.get("content-type"))&&s.setContentType(C),S.body){const[R,L]=bg(d,Cl(xg(h)));r=Ag(S.body,$g,R,L)}}Ae.isString(l)||(l=l?"include":"omit");const w="credentials"in Request.prototype;o=new Request(t,{...u,signal:a,method:e.toUpperCase(),headers:s.normalize().toJSON(),body:r,duplex:"half",credentials:w?l:void 0});let x=await fetch(o);const E=du&&(g==="stream"||g==="response");if(du&&(b||E&&c)){const S={};["status","statusText","headers"].forEach(P=>{S[P]=x[P]});const C=Ae.toFiniteNumber(x.headers.get("content-length")),[R,L]=b&&bg(C,Cl(xg(b),!0))||[];x=new Response(Ag(x.body,$g,R,()=>{L&&L(),c&&c()}),S)}g=g||"text";let $=await Sl[Ae.findKey(Sl,g)||"text"](x,n);return!E&&c&&c(),await new Promise((S,C)=>{wg(S,C,{data:$,headers:Hr.from(x.headers),status:x.status,statusText:x.statusText,config:n,request:o})})}catch(w){throw c&&c(),w&&w.name==="TypeError"&&/Load failed|fetch/i.test(w.message)?Object.assign(new It("Network Error",It.ERR_NETWORK,n,o),{cause:w.cause||w}):It.from(w,w&&w.code,n,o)}}),pu={http:Ex,xhr:a1,fetch:m1};Ae.forEach(pu,(n,t)=>{if(n){try{Object.defineProperty(n,"name",{value:t})}catch{}Object.defineProperty(n,"adapterName",{value:t})}});const Mg=n=>`- ${n}`,v1=n=>Ae.isFunction(n)||n===null||n===!1,Ig={getAdapter:n=>{n=Ae.isArray(n)?n:[n];const{length:t}=n;let e,r;const f={};for(let p=0;p<t;p++){e=n[p];let y;if(r=e,!v1(e)&&(r=pu[(y=String(e)).toLowerCase()],r===void 0))throw new It(`Unknown adapter '${y}'`);if(r)break;f[y||"#"+p]=r}if(!r){const p=Object.entries(f).map(([b,h])=>`adapter ${b} `+(h===!1?"is not supported by the environment":"is not available in the build"));let y=t?p.length>1?`since :
|
1394
1394
|
`+p.map(Mg).join(`
|
1395
1395
|
`):" "+Mg(p[0]):"as no adapter specified";throw new It("There is no suitable adapter to dispatch the request "+y,"ERR_NOT_SUPPORT")}return r},adapters:pu};function gu(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new js(null,n)}function Eg(n){return gu(n),n.headers=Hr.from(n.headers),n.data=hu.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),Ig.getAdapter(n.adapter||Sa.adapter)(n).then(function(t){return gu(n),t.data=hu.call(n,n.transformResponse,t),t.headers=Hr.from(t.headers),t},function(t){return yg(t)||(gu(n),t&&t.response&&(t.response.data=hu.call(n,n.transformResponse,t.response),t.response.headers=Hr.from(t.response.headers))),Promise.reject(t)})}const Rg="1.9.0",Al={};["object","boolean","number","function","string","symbol"].forEach((n,t)=>{Al[n]=function(e){return typeof e===n||"a"+(t<1?"n ":" ")+n}});const Lg={};Al.transitional=function(n,t,e){function r(f,p){return"[Axios v"+Rg+"] Transitional option '"+f+"'"+p+(e?". "+e:"")}return(f,p,y)=>{if(n===!1)throw new It(r(p," has been removed"+(t?" in "+t:"")),It.ERR_DEPRECATED);return t&&!Lg[p]&&(Lg[p]=!0,console.warn(r(p," has been deprecated since v"+t+" and will be removed in the near future"))),n?n(f,p,y):!0}},Al.spelling=function(n){return(t,e)=>(console.warn(`${e} is likely a misspelling of ${n}`),!0)};function y1(n,t,e){if(typeof n!="object")throw new It("options must be an object",It.ERR_BAD_OPTION_VALUE);const r=Object.keys(n);let f=r.length;for(;f-- >0;){const p=r[f],y=t[p];if(y){const b=n[p],h=b===void 0||y(b,p,n);if(h!==!0)throw new It("option "+p+" must be "+h,It.ERR_BAD_OPTION_VALUE);continue}if(e!==!0)throw new It("Unknown option "+p,It.ERR_BAD_OPTION)}}const _l={assertOptions:y1,validators:Al},Ki=_l.validators;let ss=class{constructor(n){this.defaults=n||{},this.interceptors={request:new gg,response:new gg}}async request(n,t){try{return await this._request(n,t)}catch(e){if(e instanceof Error){let r={};Error.captureStackTrace?Error.captureStackTrace(r):r=new Error;const f=r.stack?r.stack.replace(/^.+\n/,""):"";try{e.stack?f&&!String(e.stack).endsWith(f.replace(/^.+\n.+\n/,""))&&(e.stack+=`
|
1396
|
-
`+f):e.stack=f}catch{}}throw e}}_request(n,t){typeof n=="string"?(t=t||{},t.url=n):t=n||{},t=os(this.defaults,t);const{transitional:e,paramsSerializer:r,headers:f}=t;e!==void 0&&_l.assertOptions(e,{silentJSONParsing:Ki.transitional(Ki.boolean),forcedJSONParsing:Ki.transitional(Ki.boolean),clarifyTimeoutError:Ki.transitional(Ki.boolean)},!1),r!=null&&(Ae.isFunction(r)?t.paramsSerializer={serialize:r}:_l.assertOptions(r,{encode:Ki.function,serialize:Ki.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),_l.assertOptions(t,{baseUrl:Ki.spelling("baseURL"),withXsrfToken:Ki.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let p=f&&Ae.merge(f.common,f[t.method]);f&&Ae.forEach(["delete","get","head","post","put","patch","common"],a=>{delete f[a]}),t.headers=Hr.concat(p,f);const y=[];let b=!0;this.interceptors.request.forEach(function(a){typeof a.runWhen=="function"&&a.runWhen(t)===!1||(b=b&&a.synchronous,y.unshift(a.fulfilled,a.rejected))});const h=[];this.interceptors.response.forEach(function(a){h.push(a.fulfilled,a.rejected)});let g,s=0,l;if(!b){const a=[Eg.bind(this),void 0];for(a.unshift.apply(a,y),a.push.apply(a,h),l=a.length,g=Promise.resolve(t);s<l;)g=g.then(a[s++],a[s++]);return g}l=y.length;let u=t;for(s=0;s<l;){const a=y[s++],o=y[s++];try{u=a(u)}catch(c){o.call(this,c);break}}try{g=Eg.call(this,u)}catch(a){return Promise.reject(a)}for(s=0,l=h.length;s<l;)g=g.then(h[s++],h[s++]);return g}getUri(n){n=os(this.defaults,n);const t=Cg(n.baseURL,n.url,n.allowAbsoluteUrls);return pg(t,n.params,n.paramsSerializer)}};Ae.forEach(["delete","get","head","options"],function(n){ss.prototype[n]=function(t,e){return this.request(os(e||{},{method:n,url:t,data:(e||{}).data}))}}),Ae.forEach(["post","put","patch"],function(n){function t(e){return function(r,f,p){return this.request(os(p||{},{method:n,headers:e?{"Content-Type":"multipart/form-data"}:{},url:r,data:f}))}}ss.prototype[n]=t(),ss.prototype[n+"Form"]=t(!0)});let w1=class wb{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let e;this.promise=new Promise(function(f){e=f});const r=this;this.promise.then(f=>{if(!r._listeners)return;let p=r._listeners.length;for(;p-- >0;)r._listeners[p](f);r._listeners=null}),this.promise.then=f=>{let p;const y=new Promise(b=>{r.subscribe(b),p=b}).then(f);return y.cancel=function(){r.unsubscribe(p)},y},t(function(f,p,y){r.reason||(r.reason=new js(f,p,y),e(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);e!==-1&&this._listeners.splice(e,1)}toAbortSignal(){const t=new AbortController,e=r=>{t.abort(r)};return this.subscribe(e),t.signal.unsubscribe=()=>this.unsubscribe(e),t.signal}static source(){let t;return{token:new wb(function(e){t=e}),cancel:t}}};function b1(n){return function(t){return n.apply(null,t)}}function x1(n){return Ae.isObject(n)&&n.isAxiosError===!0}const fu={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(fu).forEach(([n,t])=>{fu[t]=n});function Og(n){const t=new ss(n),e=Zp(ss.prototype.request,t);return Ae.extend(e,ss.prototype,t,{allOwnKeys:!0}),Ae.extend(e,t,null,{allOwnKeys:!0}),e.create=function(r){return Og(os(n,r))},e}const Wn=Og(Sa);Wn.Axios=ss,Wn.CanceledError=js,Wn.CancelToken=w1,Wn.isCancel=yg,Wn.VERSION=Rg,Wn.toFormData=bl,Wn.AxiosError=It,Wn.Cancel=Wn.CanceledError,Wn.all=function(n){return Promise.all(n)},Wn.spread=b1,Wn.isAxiosError=x1,Wn.mergeConfig=os,Wn.AxiosHeaders=Hr,Wn.formToJSON=n=>mg(Ae.isHTMLForm(n)?new FormData(n):n),Wn.getAdapter=Ig.getAdapter,Wn.HttpStatusCode=fu,Wn.default=Wn;const{Axios:GN,AxiosError:YN,CanceledError:XN,isCancel:QN,CancelToken:ZN,VERSION:JN,all:e2,Cancel:t2,isAxiosError:n2,spread:r2,toFormData:i2,AxiosHeaders:o2,HttpStatusCode:s2,formToJSON:a2,getAdapter:l2,mergeConfig:c2}=Wn,mu=Wn.create({baseURL:location.origin,timeout:6e4,params:{}});mu.interceptors.response.use(n=>n,n=>{var t,e,r,f,p,y,b,h,g,s,l;if(n.response){if(n.response.status===401&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0).then(function(o){o&&OpenC3Auth.setTokens()}),n.response.config.headers["Ignore-Errors"]&&n.response.config.headers["Ignore-Errors"].includes(n.response.status.toString()))return Promise.reject(n);let u=`HTTP ${n.response.status} - `;(t=n.response)!=null&&t.statusText&&(u+=`${n.response.statusText} `),(r=(e=n.response)==null?void 0:e.config)!=null&&r.data&&(u+=`${n.response.config.data} `),(p=(f=n.response)==null?void 0:f.data)!=null&&p.message?u+=`${n.response.data.message}`:(b=(y=n.response)==null?void 0:y.data)!=null&&b.exception?u+=`${n.response.data.exception}`:(s=(g=(h=n.response)==null?void 0:h.data)==null?void 0:g.error)!=null&&s.message?(n.response.data.error.class&&(u+=`${n.response.data.error.class} `),u+=`${n.response.data.error.message}`):u+=`${(l=n.response)==null?void 0:l.data}`;const{$cosmosNotify:a}=window;throw a&&a.serious({title:"Network error",body:u}),n}else throw n});const Tl=async function(n,t,{data:e,params:r={},headers:f,noAuth:p=!1,noScope:y=!1,onUploadProgress:b=!1}={}){if(!p){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch{OpenC3Auth.login()}f.Authorization=localStorage.openc3Token}return f.manual=!0,!y&&!r.scope&&(r.scope=window.openc3Scope),mu({method:n,url:t,data:e,params:r,headers:f,onUploadProgress:b})},vu={Accept:"application/json"},Ng={...vu,"Content-Type":"application/json"},u2=er("F",{get:function(n,{params:t,headers:e=vu,noScope:r,noAuth:f,onUploadProgress:p}={}){return Tl("get",n,{params:t,headers:e,noScope:r,noAuth:f,onUploadProgress:p})},put:function(n,{data:t,params:e,headers:r=Ng,noScope:f,noAuth:p,onUploadProgress:y}={}){return Tl("put",n,{data:t,params:e,headers:r,noScope:f,noAuth:p,onUploadProgress:y})},post:function(n,{data:t,params:e,headers:r=Ng,noScope:f,noAuth:p,onUploadProgress:y}={}){return Tl("post",n,{data:t,params:e,headers:r,noScope:f,noAuth:p,onUploadProgress:y})},delete:function(n,{params:t,headers:e=vu,noScope:r,noAuth:f,onUploadProgress:p}={}){return Tl("delete",n,{params:t,headers:e,noScope:r,noAuth:f,onUploadProgress:p})}});let $l=()=>({emit(n,...t){for(let e=this.events[n]||[],r=0,f=e.length;r<f;r++)e[r](...t)},events:{},on(n,t){var e;return((e=this.events)[n]||(e[n]=[])).push(t),()=>{var r;this.events[n]=(r=this.events[n])==null?void 0:r.filter(f=>t!==f)}}});class _a extends Error{constructor(t,e){t instanceof Error?(super(t.message),this.cause=t):super(t),this.reason=e,this.name="ReasonError"}}class yu extends _a{constructor(t){super("Rejected",t),this.name="SubscriptionRejectedError"}}class C1 extends _a{constructor(t){super(t||"Timed out to receive subscription ack"),this.name="SubscriptionTimeoutError"}}class Ei extends _a{constructor(t,e){e?super(t,e):super("Disconnected",t),this.name="DisconnectedError"}}class k1 extends Ei{constructor(t){super(t,"stale_connection"),this.name="StaleConnectionError"}}function Dg(n){return n?`{${Object.keys(n).sort().filter(t=>n[t]!==void 0).map(t=>{let e=JSON.stringify(n[t]);return`${JSON.stringify(t)}:${e}`}).join(",")}}`:""}class S1{constructor(t){this.channel=t,this.listeners=[]}watch(){this.listeners.push(this.channel.on("presence",t=>{if(t.type==="info"){this._state||(this._state=this.stateFromInfo(t));return}this._state&&(t.type==="join"?this._state[t.id]=t.info:t.type==="leave"&&delete this._state[t.id])}))}reset(){delete this._state}dispose(){delete this._info,delete this._state,this.listeners.forEach(t=>t()),this.listeners.length=0}async join(t,e){if(!this._info)return this._info={id:t,info:e},this.channel.perform("$presence:join",this._info)}async leave(){if(!this._info)return;let t=await this.channel.perform("$presence:leave");return delete this._info,t}async info(){return this._state?this._state:(this._promise||(this._promise=this._sync()),await this._promise,this._state)}async _sync(){this.watch();try{let t=await this.channel.perform("$presence:info",{});return this._state=this.stateFromInfo(t),this._state}finally{delete this._promise}}stateFromInfo(t){return t.records.reduce((e,{id:r,info:f})=>(e[r]=f,e),{})}}const as=Symbol("state");class Pg{constructor(t={}){this.emitter=$l(),this.params=Object.freeze(t),this.presence=new S1(this),this.initialConnect=!0,this[as]="idle"}get identifier(){return this._identifier?this._identifier:(this._identifier=Dg({channel:this.channelId,...this.params}),this._identifier)}get channelId(){return this.constructor.identifier}get state(){return this[as]}attached(t){if(this.receiver){if(this.receiver!==t)throw Error("Already connected to a different receiver");return!1}return this.receiver=t,!0}connecting(){this[as]="connecting"}connected(){if(this.state==="connected"||this.state==="closed")return;this[as]="connected";let t=!1;this.initialConnect?(this.initialConnect=!1,this.emit("connect",{reconnect:!1,restored:t})):this.emit("connect",{reconnect:!0,restored:t})}restored(){if(this.state==="connected")throw Error("Already connected");this[as]="connected";let t=!0,e=!0;this.initialConnect=!1,this.emit("connect",{reconnect:e,restored:t})}disconnected(t){this.state==="disconnected"||this.state==="closed"||(this[as]="disconnected",this.presence.reset(),this.emit("disconnect",t))}closed(t){this.state!=="closed"&&(this[as]="closed",delete this.receiver,this.initialConnect=!0,this.presence.dispose(),this.emit("close",t))}disconnect(){this.state==="idle"||this.state==="closed"||this.receiver.unsubscribe(this)}async perform(t,e){if(this.state==="idle"||this.state==="closed")throw Error("Channel is not subscribed");return this.receiver.perform(this.identifier,t,e)}async send(t){return this.perform(void 0,t)}async whisper(t){try{await this.perform("$whisper",t)}catch(e){let r=this.receiver?this.receiver.logger:null;r&&r.warn("whisper failed: ",e)}}receive(t,e){this.emit("message",t,e)}on(t,e){return this.emitter.on(t,e)}once(t,e){let r=this.emitter.on(t,(...f)=>{r(),e(...f)});return r}emit(t,...e){return this.emitter.emit(t,...e)}ensureSubscribed(){return this.state==="connected"?Promise.resolve():this.state==="closed"?Promise.reject(Error("Channel is unsubscribed")):this.pendingSubscribe()}pendingSubscribe(){return this._pendingSubscribe?this._pendingSubscribe:(this._pendingSubscribe=new Promise((t,e)=>{let r=[()=>delete this._pendingSubscribe];r.push(this.on("connect",()=>{r.forEach(f=>f()),t()})),r.push(this.on("close",f=>{r.forEach(p=>p()),e(f||new _a("Channel was disconnected before subscribing","canceled"))}))}),this._pendingSubscribe)}}class A1{constructor(t){this.id=t,this.intent="unsubscribed",this.state="idle",this.channels=[],this.disposed=!1,this._pendings=[]}add(t){this.channels.includes(t)||this.channels.push(t)}remove(t){let e=this.channels.indexOf(t);e>-1&&this.channels.splice(e,1)}notify(t,...e){this.state=t==="restored"?"connected":t,e.length===1?this.channels.forEach(r=>r[t](e[0])):this.channels.forEach(r=>r[t]())}pending(t){this._checkIntent(t);let e=this._pendings[0];return!e||e.intent!==t?Promise.resolve():e.promise}ensureResubscribed(){this.disposed||(this.intent=void 0,this.ensureSubscribed())}ensureSubscribed(){if(this.intent!=="subscribed"){if(this.disposed)throw Error("Subscription is disposed");this.intent="subscribed",!this._mergeWithPending("unsubscribed")&&this.subscriber(this)}}maybeUnsubscribe(){this.disposed||this.intent==="unsubscribed"||this.channels.length>0||(this.intent="unsubscribed",this._mergeWithPending("subscribed"))||this.unsubscriber(this)}async acquire(t){this._checkIntent(t);let e,r={promise:new Promise(p=>{e=p}),intent:t,release:()=>{this._pendings.splice(this._pendings.indexOf(r),1),e(r)},canceled:!1,acquired:!1},f=this._pendingTop;return this._pendings.push(r),f&&await f.promise,this.gvl&&await this.gvl.acquire(r,t),r.acquired=!0,r}close(t){this.disposed=!0,this.intent=void 0,this.notify("closed",t)}_checkIntent(t){if(!(t==="unsubscribed"||t==="subscribed"))throw Error(`Unknown subscription intent: ${t}`)}get _pendingTop(){return this._pendings.length?this._pendings[this._pendings.length-1]:void 0}_mergeWithPending(t){let e=this._pendingTop;return!e||e.acquired||e.intent!==t?!1:(this._pendings.pop(),e.canceled=!0,!0)}}class _1{constructor(){this.queue=[]}async acquire(t,e){e==="subscribed"&&(this.queue.push(t.promise.then(()=>{this.queue.splice(this.queue.indexOf(t),1)})),this.queue.length>1&&await this.queue[this.queue.length-2])}}class T1{constructor(t){t.concurrentSubscribes===!1&&(this.glv=new _1),this._subscriptions={},this._localToRemote={}}all(){return Object.values(this._subscriptions)}get(t){return this._subscriptions[t]}create(t,{subscribe:e,unsubscribe:r}){let f=this._subscriptions[t]=new A1(t);return f.remoteId=this._localToRemote[t],f.subscriber=e,f.unsubscriber=r,f.gvl=this.glv,f}remove(t){delete this._subscriptions[t],delete this._localToRemote[t]}storeRemoteId(t,e){this._localToRemote[t]=e;let r=this.get(t);r&&(r.remoteId=e)}}class $1{constructor(t={}){this.subscriptions=new T1(t),this._pendingMessages=[],this._remoteToLocal={}}subscribe(t,e){this._remoteToLocal[e]=t,this.subscriptions.storeRemoteId(t,e),this.flush(e)}unsubscribe(t){let e=this.subscriptions.get(t);if(!e)return;let r=e.remoteId;r&&delete this._remoteToLocal[r],this.subscriptions.remove(t)}transmit(t,e,r){let f=this._remoteToLocal[t];if(!f){this._pendingMessages.push([t,e,r]);return}let p=this.subscriptions.get(f);p&&p.channels.forEach(y=>{y.receive(e,r)})}notify(t,e,r){let f=this._remoteToLocal[t];if(!f)return;let p=this.subscriptions.get(f);p&&p.channels.forEach(y=>y.emit(e,r))}close(){this._pendingMessages.length=0}get size(){return this.channels.length}get channels(){return this.subscriptions.all().flatMap(t=>t.channels)}flush(t){let e=[];for(let r of this._pendingMessages)r[0]===t?this.transmit(r[0],r[1],r[2]):e.push(r);this._pendingMessages=e}}const Fg={debug:0,info:1,warn:2,error:3};class Wg{constructor(t){this.level=t||"warn"}log(t,e,r){Fg[t]<Fg[this.level]||this.writeLogEntry(t,e,r)}writeLogEntry(){throw Error("Not implemented")}debug(t,e){this.log("debug",t,e)}info(t,e){this.log("info",t,e)}warn(t,e){this.log("warn",t,e)}error(t,e){this.log("error",t,e)}}class Ta extends Wg{writeLogEntry(){}}class M1{encode(t){return JSON.stringify(t)}decode(t){try{return JSON.parse(t)}catch{}}}let I1=0;class Bg{constructor(t={}){let{logger:e}=t;this.logger=e||new Ta,this.pendingSubscriptions={},this.pendingUnsubscriptions={},this.subscribeCooldownInterval=t.subscribeCooldownInterval||250,this.subscribeRetryInterval=t.subscribeRetryInterval||5e3}attached(t){this.cable=t}subscribe(t,e){let r={channel:t};e&&Object.assign(r,e);let f=Dg(r);if(this.pendingUnsubscriptions[f]){let y=this.subscribeCooldownInterval*1.5;return this.logger.debug(`unsubscribed recently, cooldown for ${y}`,f),new Promise(b=>{setTimeout(()=>{b(this.subscribe(t,e))},y)})}if(this.pendingSubscriptions[f])return this.logger.warn("subscription is already pending, skipping",f),Promise.reject(Error("Already subscribing"));let p=this.subscribeRetryInterval;return new Promise((y,b)=>{let h=++I1;this.pendingSubscriptions[f]={resolve:y,reject:b,id:h},this.cable.send(this.buildSubscribeRequest(f)),this.maybeRetrySubscribe(h,f,p)})}buildSubscribeRequest(t){return{command:"subscribe",identifier:t}}maybeRetrySubscribe(t,e,r){setTimeout(()=>{let f=this.pendingSubscriptions[e];f&&f.id===t&&(this.logger.warn(`no subscription ack received in ${r}ms, retrying subscribe`,e),this.cable.send(this.buildSubscribeRequest(e)),this.maybeExpireSubscribe(t,e,r))},r)}maybeExpireSubscribe(t,e,r){setTimeout(()=>{let f=this.pendingSubscriptions[e];f&&f.id===t&&(delete this.pendingSubscriptions[e],f.reject(new C1(`Haven't received subscription ack in ${r*2}ms for ${e}`)))},r)}unsubscribe(t){return this.cable.send({command:"unsubscribe",identifier:t}),this.pendingUnsubscriptions[t]=!0,setTimeout(()=>{delete this.pendingUnsubscriptions[t]},this.subscribeCooldownInterval),Promise.resolve()}perform(t,e,r){return e==="$whisper"?this.whisper(t,r):(r||(r={}),r.action=e,this.cable.send({command:"message",identifier:t,data:JSON.stringify(r)}),Promise.resolve())}whisper(t,e){return this.cable.send({command:"whisper",identifier:t,data:e}),Promise.resolve()}receive(t){if(typeof t!="object"){this.logger.error("unsupported message format",{message:t});return}let{type:e,identifier:r,message:f,reason:p,reconnect:y}=t;if(e==="ping")return this.cable.keepalive(t.message);if(this.cable.keepalive(),e==="welcome"){let b=t.sid;return b&&this.cable.setSessionId(b),this.cable.connected()}if(e==="disconnect"){let b=new Ei(p);this.reset(b),y===!1?this.cable.closed(b):this.cable.disconnected(b);return}if(e==="confirm_subscription"){let b=this.pendingSubscriptions[r];if(!b){this.logger.error("subscription not found, unsubscribing",{type:e,identifier:r}),this.unsubscribe(r);return}return delete this.pendingSubscriptions[r],b.resolve(r)}if(e==="reject_subscription"){let b=this.pendingSubscriptions[r];return b?(delete this.pendingSubscriptions[r],b.reject(new yu)):this.logger.error("subscription not found",{type:e,identifier:r})}if(f)return{identifier:r,message:f};this.logger.warn(`unknown message type: ${e}`,{message:t})}reset(t){for(let e in this.pendingSubscriptions)this.pendingSubscriptions[e].reject(t);this.pendingSubscriptions={}}recoverableClosure(){return!1}}const zg=()=>Date.now()/1e3|0;class E1 extends Bg{constructor(t={}){super(t),this.streamsPositions={},this.subscriptionStreams={},this.pendingHistory={},this.pendingPresence={},this.presenceInfo={},this.restoreSince=t.historyTimestamp,this.disableSessionRecovery=t.disableSessionRecovery,this.restoreSince===void 0&&(this.restoreSince=zg()),this.sessionId=void 0,this.sendPongs=t.pongs}reset(t){for(let e in this.pendingPresence)this.pendingPresence[e].reject(t);return this.pendingPresence={},super.reset()}receive(t){if(typeof t!="object"){this.logger.error("unsupported message format",{message:t});return}let{type:e,identifier:r,message:f}=t;if(e==="disconnect")return delete this.sessionId,this.cable.setSessionId(""),super.receive(t);if(e==="reject_subscription")return super.receive(t);if(e==="confirm_subscription")return this.subscriptionStreams[r]||(this.subscriptionStreams[r]=new Set),super.receive(t);if(e==="ping")return this.restoreSince&&(this.restoreSince=zg()),this.sendPongs&&this.sendPong(),this.cable.keepalive(t.message);if(this.cable.keepalive(),e==="confirm_history"){this.logger.debug("history result received",t),this.cable.notify("history_received",r);return}if(e==="reject_history"){this.logger.warn("failed to retrieve history",t),this.cable.notify("history_not_found",r);return}if(e==="welcome"){if(this.disableSessionRecovery||(this.sessionId=t.sid,this.sessionId&&this.cable.setSessionId(this.sessionId)),t.restored){let p=t.restored_ids||Object.keys(this.subscriptionStreams);for(let y of p)this.cable.send({identifier:y,command:"history",history:this.historyRequestFor(y)}),this.presenceInfo[y]&&this.cable.send({identifier:y,command:"join",presence:this.presenceInfo[y]});return this.cable.restored(p)}return this.cable.connected(this.sessionId)}if(e==="presence"){let p=f.type;if(p==="info"){let y=this.pendingPresence[r];y&&(delete this.pendingPresence[r],y.resolve(f))}else if(p==="error"){let y=this.pendingPresence[r];y&&(delete this.pendingPresence[r],y.reject(new Error("failed to retrieve presence")))}return{type:e,identifier:r,message:f}}if(f){let p=this.trackStreamPosition(r,t.stream_id,t.epoch,t.offset);return{identifier:r,message:f,meta:p}}this.logger.warn(`unknown message type: ${e}`,{message:t})}perform(t,e,r){switch(e){case"$presence:join":return this.join(t,r);case"$presence:leave":return this.leave(t,r);case"$presence:info":return this.presence(t,r)}return super.perform(t,e,r)}unsubscribe(t){return delete this.presenceInfo[t],super.unsubscribe(t)}buildSubscribeRequest(t){let e=super.buildSubscribeRequest(t),r=this.historyRequestFor(t);r&&(e.history=r,this.pendingHistory[t]=!0);let f=this.presenceInfo[t];return f&&(e.presence=f),e}recoverableClosure(){return!!this.sessionId}historyRequestFor(t){let e={},r=!1;if(this.subscriptionStreams[t])for(let f of this.subscriptionStreams[t]){let p=this.streamsPositions[f];p&&(r=!0,e[f]=p)}if(!(!r&&!this.restoreSince))return{since:this.restoreSince,streams:e}}trackStreamPosition(t,e,r,f){if(!(!e||!r))return this.subscriptionStreams[t]||(this.subscriptionStreams[t]=new Set),this.subscriptionStreams[t].add(e),this.streamsPositions[e]={epoch:r,offset:f},{stream:e,epoch:r,offset:f}}async sendPong(){await new Promise(t=>setTimeout(t,0)),this.cable.state==="connected"&&this.cable.send({command:"pong"})}async join(t,e){return this.presenceInfo[t]=e,this.cable.send({command:"join",identifier:t,presence:e}),Promise.resolve()}async leave(t,e){return delete this.presenceInfo[t],this.cable.send({command:"leave",identifier:t,presence:e}),Promise.resolve()}presence(t,e){return this.pendingPresence[t]?(this.logger.warn("presence is already pending, skipping",t),Promise.reject(Error("presence request is already pending"))):new Promise((r,f)=>{this.pendingPresence[t]={resolve:r,reject:f},this.cable.send({command:"presence",identifier:t,data:e})})}}class R1 extends _a{constructor(){super("No connection","closed"),this.name="NoConnectionError"}}class wu extends Pg{constructor(t,e){super(e),this.channelId=t}set channelId(t){this._channelId=t}get channelId(){return this._channelId}}gl(wu,"identifier","__ghost__");const L1="$pubsub";class bu extends Pg{async perform(t,e){if(t.startsWith("$"))return super.perform(t,e);throw Error("not implemented")}}gl(bu,"identifier",L1);const ls=Symbol("state");let O1=class{constructor({transport:n,protocol:t,encoder:e,logger:r,lazy:f,hubOptions:p,performFailures:y,transportConfigurator:b}){this.emitter=$l(),this.transport=n,this.encoder=e,this.logger=r||new Ta,this.protocol=t,this.performFailures=y||"throw",this.protocol.attached(this),this.hub=new $1(p||{}),this[ls]="idle",this.handleClose=this.handleClose.bind(this),this.handleIncoming=this.handleIncoming.bind(this),this.transportConfigurator=b,this.transport.on("close",this.handleClose),this.transport.on("data",this.handleIncoming),this.initialConnect=!0,this.recovering=!1,f===!1&&this.connect().catch(()=>{})}get state(){return this[ls]}async connect(){if(this.state==="connected")return Promise.resolve();if(this.state==="connecting")return this.pendingConnect();let n=this.state==="idle";this[ls]="connecting";let t=this.pendingConnect();this.logger.debug("connecting");try{this.transportConfigurator&&await this.transportConfigurator(this.transport,{initial:n}),await this.transport.open()}catch(e){this.handleClose(e)}return t}setSessionId(n){this.sessionId=n,this.transport.setParam("sid",n)}connected(){if(this.state==="connected")return;this.logger.info("connected"),this[ls]="connected",this.recovering&&this.hub.subscriptions.all().forEach(t=>t.notify("disconnected",new Ei("recovery_failed"))),this.hub.subscriptions.all().forEach(t=>this._resubscribe(t));let n=!1;this.recovering=!1,this.initialConnect?(this.initialConnect=!1,this.emit("connect",{reconnect:!1,restored:n})):this.emit("connect",{reconnect:!0,restored:n})}restored(n){this.logger.info("connection recovered",{remoteIds:n}),this[ls]="connected",this.hub.subscriptions.all().forEach(r=>{n&&r.remoteId&&n.includes(r.remoteId)?r.notify("restored"):(r.notify("disconnected",new Ei("recovery_failed")),this._resubscribe(r))});let t=!this.initialConnect,e=!0;this.recovering=!1,this.initialConnect=!1,this.emit("connect",{reconnect:t,restored:e})}notify(n,t,e){t&&typeof t!="string"&&(e=t,t=void 0),t?this.hub.notify(t,"info",{type:n,data:e}):this.emit("info",{type:n,data:e})}handleClose(n){this.logger.debug("transport closed",{error:n}),this.disconnected(new Ei(n,"transport_closed"))}disconnected(n){(this.state==="connected"||this.state==="connecting")&&(this.logger.info("disconnected",{reason:n}),this[ls]="disconnected",this.recovering=this.protocol.recoverableClosure(n),this.recovering?this.hub.subscriptions.all().forEach(t=>t.notify("connecting")):this.hub.subscriptions.all().forEach(t=>{t.notify("disconnected",n)}),this.protocol.reset(n),this.hub.close(),this.transport.close(),this.emit("disconnect",n))}closed(n){if(this.state==="closed"||this.state==="idle")return;let t;n&&(t=n instanceof Ei?n:new Ei(n,void 0)),this.logger.info("closed",{reason:n||"user"}),this[ls]="closed";let e=t||new Ei("cable_closed");this.hub.subscriptions.all().forEach(r=>r.notify("disconnected",e)),this.hub.close(),this.protocol.reset(),this.transport.close(),this.initialConnect=!0,this.emit("close",t)}disconnect(){this.closed()}handleIncoming(n){if(this.state==="closed"||this.state==="idle")return;let t=this.encoder.decode(n);if(t===void 0){this.logger.error("failed to decode message",{message:n});return}this.logger.debug("incoming data",t);let e=this.protocol.receive(t);if(e){this.logger.debug("processed incoming message",e);let{type:r,identifier:f,message:p,meta:y}=e;r?this.hub.notify(f,r,p):this.hub.transmit(f,p,y)}}send(n){if(this.state==="closed")throw Error("Cable is closed");let t=this.encoder.encode(n);if(t===void 0){this.logger.error("failed to encode message",{message:n});return}this.logger.debug("outgoing message",n),this.transport.send(t)}keepalive(n){this.emit("keepalive",n)}streamFrom(n){let t=new bu({stream_name:n});return this.subscribe(t)}streamFromSigned(n){let t=new bu({signed_stream_name:n});return this.subscribe(t)}subscribeTo(n,t){let e,r;return typeof n=="string"&&(r=n,n=wu),e=r?new n(r,t):new n(t),this.subscribe(e)}subscribe(n){if(!n.attached(this))return n;let t=n.identifier;n.connecting();let e=this.hub.subscriptions.get(t)||this.hub.subscriptions.create(t,{subscribe:r=>this._subscribe(r,n.channelId,n.params),unsubscribe:r=>this._unsubscribe(r)});return e.add(n),e.intent==="subscribed"&&e.state==="connected"&&n.connected(),e.ensureSubscribed(),n}async _resubscribe(n){n.intent!=="subscribed"||!n.channels[0]||(n.notify("connecting"),n.ensureResubscribed())}async _subscribe(n,t,e){let r=n.id;if(this.state==="idle"&&this.connect().catch(()=>{}),this.state!=="connected"){this.logger.debug("cancel subscribe, no connection",{identifier:r});return}this.logger.debug("acquiring subscribe lock",{identifier:r});let f=await n.acquire("subscribed");if(f.canceled){this.logger.debug("subscribe lock has been canceled",{identifier:r}),f.release();return}if(this.logger.debug("subscribe lock has been acquired",{identifier:r}),n.intent!=="subscribed"){this.logger.debug("cancel subscribe request, already unsubscribed"),f.release();return}if(this.state!=="connected"){this.logger.debug("cancel subscribe, no connection",{identifier:r}),f.release();return}if(n.state==="connected"){this.logger.debug("already connected, skip subscribe command",{identifier:r}),n.notify("connected"),f.release();return}let p={identifier:t,params:e};this.logger.debug("subscribing",p);try{let y=await this.protocol.subscribe(t,e);this.hub.subscribe(r,y),this.logger.debug("subscribed",{...p,remoteId:y}),n.notify("connected")}catch(y){if(y){if(y instanceof yu&&this.logger.warn("rejected",p),y instanceof Ei){this.logger.debug("disconnected during subscription; will retry on connect",p),f.release();return}this.logger.error("failed to subscribe",{error:y,...p})}n.close(y),this.hub.unsubscribe(r)}f.release()}unsubscribe(n){let t=n.identifier,e=this.hub.subscriptions.get(t);if(!e)throw Error(`Subscription not found: ${t}`);e.remove(n),n.closed(),e.maybeUnsubscribe()}async _unsubscribe(n){let t=n.id;this.logger.debug("acquiring unsubscribe lock",{identifier:t});let e=await n.acquire("unsubscribed");if(e.canceled){this.logger.debug("unsubscribe lock has been canceled",{identifier:t}),e.release();return}if(this.logger.debug("unsubscribe lock has been acquired",{identifier:t}),n.intent!=="unsubscribed"){this.logger.debug("cancel unsubscribe, no longer needed",{identifier:t,intent:n.intent}),e.release();return}if(n.state==="disconnected"||n.state==="closed"){this.logger.debug(`already ${n.state} connected, skip unsubscribe command`,{identifier:t}),e.release();return}let r=n.remoteId;if(this.logger.debug("unsubscribing...",{remoteId:r}),this.state!=="connected"){this.logger.debug("unsubscribe skipped (cable is not connected)",{id:t}),n.close(),this.hub.unsubscribe(t),e.release();return}try{await this.protocol.unsubscribe(r),this.logger.debug("unsubscribed remotely",{id:t})}catch(f){f&&(f instanceof Ei?this.logger.debug("cable disconnected during the unsubscribe command execution",{id:t,error:f}):this.logger.error("unsubscribe failed",{id:t,error:f}))}n.intent==="unsubscribed"?(n.close(),this.hub.unsubscribe(t)):n.state="closed",e.release()}async perform(n,t,e){if(this.performFailures==="throw")return this._perform(n,t,e);try{return await this._perform(n,t,e)}catch(r){this.performFailures==="warn"&&this.logger.warn("perform failed",{error:r});return}}async _perform(n,t,e){if(this.state==="connecting"&&await this.pendingConnect(),this.state==="closed"||this.state==="disconnected")throw new R1;let r=this.hub.subscriptions.get(n);if(!r)throw Error(`Subscription not found: ${n}`);if(await r.pending("subscribed"),r.intent!=="subscribed")throw Error(`Subscription is closed: ${n}`);let f=r.remoteId,p={id:f,action:t,payload:e};this.logger.debug("perform",p);try{let y=await this.protocol.perform(f,t,e);return y&&this.logger.debug("perform result",{message:y,request:p}),y}catch(y){throw this.logger.error("perform failed",{error:y,request:p}),y}}on(n,t){return this.emitter.on(n,t)}once(n,t){let e=this.emitter.on(n,(...r)=>{e(),t(...r)});return e}emit(n,...t){return this.emitter.emit(n,...t)}pendingConnect(){return this._pendingConnect?this._pendingConnect:(this._pendingConnect=new Promise((n,t)=>{let e=[()=>delete this._pendingConnect];e.push(this.on("connect",()=>{e.forEach(r=>r()),n()})),e.push(this.on("close",r=>{e.forEach(f=>f()),t(r)})),e.push(this.on("disconnect",r=>{e.forEach(f=>f()),t(r)}))}),this._pendingConnect)}};const N1={maxMissingPings:2,maxReconnectAttempts:1/0},Hs=()=>Date.now(),jg=(n,t)=>{t=t||{};let{backoffRate:e,jitterRatio:r,maxInterval:f}=t;return e=e||2,r===void 0&&(r=.5),p=>{let y=n*e**p,b=y*e,h=y+(b-y)*Math.random(),g=2*(Math.random()-.5)*r;return h=h*(1+g),f&&f<h&&(h=f),h}};let Hg=class{constructor({pingInterval:n,...t}){if(this.pingInterval=n,!this.pingInterval)throw Error(`Incorrect pingInterval is provided: ${n}`);if(t=Object.assign({},N1,t),this.strategy=t.reconnectStrategy,!this.strategy)throw Error("Reconnect strategy must be provided");this.maxMissingPings=t.maxMissingPings,this.maxReconnectAttempts=t.maxReconnectAttempts,this.logger=t.logger||new Ta,this.state="pending_connect",this.attempts=0,this.disconnectedAt=Hs()}watch(n){this.target=n,this.initListeners()}reconnectNow(){return this.state==="connected"||this.state==="pending_connect"||this.state==="closed"?!1:(this.cancelReconnect(),this.state="pending_connect",this.target.connect().catch(n=>{this.logger.info("Failed at reconnecting: "+n)}),!0)}initListeners(){this.unbind=[],this.unbind.push(this.target.on("connect",()=>{this.attempts=0,this.pingedAt=Hs(),this.state="connected",this.cancelReconnect(),this.startPolling()})),this.unbind.push(this.target.on("disconnect",()=>{this.disconnectedAt=Hs(),this.state="disconnected",this.stopPolling(),this.scheduleReconnect()})),this.unbind.push(this.target.on("close",()=>{this.disconnectedAt=Hs(),this.state="closed",this.cancelReconnect(),this.stopPolling()})),this.unbind.push(this.target.on("keepalive",()=>{this.pingedAt=Hs()})),this.unbind.push(()=>{this.cancelReconnect(),this.stopPolling()})}dispose(){delete this.target,this.unbind&&this.unbind.forEach(n=>n()),delete this.unbind}startPolling(){this.pollId&&clearTimeout(this.pollId);let n=this.pingInterval+(Math.random()-.5)*this.pingInterval*.5;this.pollId=setTimeout(()=>{this.checkStale(),this.state==="connected"&&this.startPolling()},n)}stopPolling(){this.pollId&&clearTimeout(this.pollId)}checkStale(){let n=Hs()-this.pingedAt;n>this.maxMissingPings*this.pingInterval&&(this.logger.warn(`Stale connection: ${n}ms without pings`),this.state="pending_disconnect",this.target.disconnected(new k1))}scheduleReconnect(){if(this.attempts>=this.maxReconnectAttempts){this.target.close();return}let n=this.strategy(this.attempts);this.attempts++,this.logger.info(`Reconnecting in ${n}ms (${this.attempts} attempt)`),this.state="pending_reconnect",this.reconnnectId=setTimeout(()=>this.reconnectNow(),n)}cancelReconnect(){this.reconnnectId&&(clearTimeout(this.reconnnectId),delete this.reconnnectId)}};class D1{constructor(t,e={}){this.transports=t,this.transport=null,this.emitter=$l(),this.unbind=[],this.logger=e.logger||new Ta}displayName(){return"fallbacked transport"}async open(){for(let t=0;t<this.transports.length;t++){let e=this.transports[t];try{this.transport=e,this.resetListeners(),this.logger.debug(`Trying to connect via ${e.displayName()}`),await e.open(),this.logger.debug(`Connected via ${e.displayName()}`);return}catch(r){this.logger.debug(`Failed to connect via ${e.displayName()}: ${r.message}`)}}throw this.transport=null,this.resetListeners(),new Error("Couldn't connect via any available transport")}send(t){if(!this.transport)throw new Error("No transport is open");this.transport.send(t)}async close(){if(!this.transport)throw new Error("No transport is open");await this.transport.close(),this.transport=null}setURL(){throw new Error("Not implemented. Set URL for each transport separately")}setParam(t,e){this.transports.forEach(r=>{r.setParam(t,e)})}setToken(t,e){this.transports.forEach(r=>{r.setToken(t,e)})}on(t,e){return this.emitter.on(t,e)}once(t,e){let r=this.emitter.on(t,(...f)=>{r(),e(...f)});return r}get url(){return this.transport?this.transport.url:""}resetListeners(){this.unbind.forEach(t=>t()),this.unbind.length=0,this.transport&&this.unbind.push(this.transport.on("open",()=>{this.emitter.emit("open")}),this.transport.on("data",t=>{this.emitter.emit("data",t)}),this.transport.on("close",t=>{this.emitter.emit("close",t)}),this.transport.on("error",t=>{this.emitter.emit("error",t)}))}}class P1{constructor(t,e={}){this.url=t;let r=e.websocketImplementation;if(r)this.Impl=r;else if(typeof WebSocket<"u")this.Impl=WebSocket;else throw new Error("No WebSocket support");this.connected=!1,this.emitter=$l();let{format:f,subprotocol:p,authStrategy:y}=e;this.format=f||"text",this.connectionOptions=e.websocketOptions,this.authStrategy=y||"param",this.authProtocol="",this.subprotocol=p}displayName(){return"WebSocket("+this.url+")"}open(){let t=this.subprotocol;return this.authStrategy==="sub-protocol"&&(t=[this.subprotocol,this.authProtocol]),this.connectionOptions?this.ws=new this.Impl(this.url,t,this.connectionOptions):this.ws=new this.Impl(this.url,t),this.ws.binaryType="arraybuffer",this.initListeners(),new Promise((e,r)=>{let f=[];f.push(this.once("open",()=>{f.forEach(p=>p()),e()})),f.push(this.once("close",()=>{f.forEach(p=>p()),r(Error("WS connection closed"))}))})}setURL(t){this.url=t}setParam(t,e){let r=new URL(this.url);r.searchParams.set(t,e);let f=`${r.protocol}//${r.host}${r.pathname}?${r.searchParams}`;this.setURL(f)}setToken(t,e="jid"){if(this.authStrategy==="param")this.setParam(e,t);else if(this.authStrategy==="header"){this.connectionOptions=this.connectionOptions||{},this.connectionOptions.headers=this.connectionOptions.headers||{};let r=`x-${e}`.toLowerCase();r=Object.keys(this.connectionOptions.headers).find(f=>f.toLowerCase()===r)||r,this.connectionOptions.headers[r]=t}else if(this.authStrategy==="sub-protocol")this.authProtocol=`anycable-token.${t}`;else throw new Error("Unknown auth strategy: "+this.authStrategy)}send(t){if(!this.ws||!this.connected)throw Error("WebSocket is not connected");this.ws.send(t)}close(){this.ws?this.onclose():this.connected=!1}on(t,e){return this.emitter.on(t,e)}once(t,e){let r=this.emitter.on(t,(...f)=>{r(),e(...f)});return r}initListeners(){this.ws.onerror=t=>{this.connected&&this.emitter.emit("error",t.error||new Error("WS Error"))},this.ws.onclose=()=>{this.onclose()},this.ws.onmessage=t=>{let e=t.data;this.format==="binary"&&(e=new Uint8Array(e)),this.emitter.emit("data",e)},this.ws.onopen=()=>{this.connected=!0,this.emitter.emit("open")}}onclose(){this.ws.onclose=void 0,this.ws.onmessage=void 0,this.ws.onopen=void 0,this.ws.close(),delete this.ws,this.connected=!1,this.emitter.emit("close")}}const Ug={protocol:"actioncable-v1-json",pingInterval:3e3,maxReconnectAttempts:1/0,maxMissingPings:2,logLevel:"warn",lazy:!0};function F1(n,t){if(typeof n=="object"&&typeof t>"u"&&(t=n,n=void 0),t=t||{},!n&&!t.transport)throw Error("URL or transport must be specified");t=Object.assign({},Ug,t);let{protocol:e,websocketImplementation:r,websocketFormat:f,websocketOptions:p,websocketAuthStrategy:y,fallbacks:b,logLevel:h,logger:g,transport:s,encoder:l,lazy:u,monitor:a,pingInterval:o,reconnectStrategy:c,maxMissingPings:d,maxReconnectAttempts:w,subprotocol:x,tokenRefresher:E,historyTimestamp:$,protocolOptions:S,concurrentSubscribes:C,performFailures:R,transportConfigurator:L,auth:P}=t;if(g=g||new Ta(h),typeof e=="string"){x=x||e;let F=e.substring(0,e.lastIndexOf("-")),O=e.substring(e.lastIndexOf("-")+1);if(S=S||{},F==="actioncable-v1")e=new Bg({logger:g,...S});else if(F==="actioncable-v1-ext")e=new E1({logger:g,historyTimestamp:$,...S});else throw Error(`Protocol is not supported yet: ${e}`);if(O==="json")l=l||new M1,f=f||"text";else if(O==="msgpack"){if(f="binary",!l)throw Error("Msgpack encoder must be specified explicitly. Use `@anycable/msgpack-encoder` package or build your own")}else if(O==="protobuf"){if(f=f||"binary",!l)throw Error("Protobuf encoder must be specified explicitly. Use `@anycable/protobuf-encoder` package or build your own")}else throw Error(`Protocol is not supported yet: ${e}`)}if(!e)throw Error("Protocol must be specified");s=s||new P1(n,{websocketImplementation:r,websocketOptions:p,subprotocol:x,authStrategy:y,format:f}),b&&(s=new D1([s,...b],{logger:g})),P&&P.token&&s.setToken(P.token,P.param||"jid"),c=c||jg(o),a!==!1&&(a=a||new Hg({pingInterval:o,reconnectStrategy:c,maxMissingPings:d,maxReconnectAttempts:w,logger:g}));let I={concurrentSubscribes:C},H=new O1({protocol:e,transport:s,encoder:l,logger:g,lazy:u,hubOptions:I,performFailures:R,transportConfigurator:L});return a&&(a.watch(H),H.monitor=a),E&&W1(H,async()=>{try{await E(s)}catch(F){return g.error("Failed to refresh authentication token: "+F),!1}return H.connect().catch(()=>{}),!0}),H}function W1(n,t){let e=!1;n.on("connect",()=>e=!1),n.on("close",async r=>{if(r){if(e){n.logger.warn("Token auto-refresh is disabled",r);return}r.reason==="token_expired"&&(e=!0,await t())}})}class B1{constructor(t){this.channel=t}notify(t,...e){typeof this[t]=="function"&&this[t](...e)}perform(t,e={}){this.channel.perform(t,e)}send(t){this.channel.send(t)}get identifier(){return this.channel.identifier}unsubscribe(){return this.channel.disconnect()}}class z1 extends wu{constructor(t,e,r){super(t,e),this.subscription=new B1(this),Object.assign(this.subscription,r),this.on("connect",({reconnect:f})=>this.subscription.notify("connected",{reconnected:f})),this.on("disconnect",()=>this.subscription.notify("disconnected",{allowReconnect:!0})),this.on("message",f=>this.subscription.notify("received",f)),this.on("close",f=>{f&&f instanceof yu?this.subscription.notify("rejected"):this.subscription.notify("disconnected",{allowReconnect:!1})})}}class j1{constructor(t){this.cable=t}create(t,e){let r,f;typeof t=="object"?(r=t.channel,delete t.channel,f=t):(r=t,f={});let p=new z1(r,f,e);return p.subscription.notify("initialized"),this.cable.subscribe(p),p.subscription}findAll(t){return this.cable.hub.channels.filter(e=>e.identifier===t).map(e=>e.subscription)}}class H1{constructor(t){this.cable=t,this.subscriptions=new j1(t)}}class U1 extends Wg{writeLogEntry(t,e,r){r?console[t](e,r):console[t](e)}}class V1 extends Hg{watch(t){super.watch(t),this.initActivityListeners()}initActivityListeners(){if(typeof document<"u"&&typeof window<"u"&&document.addEventListener&&window.addEventListener){let t=()=>{document.hidden||this.reconnectNow()&&this.logger.debug("Trigger reconnect due to visibility change")},e=f=>{this.reconnectNow()&&this.logger.debug("Trigger reconnect",{event:f})},r=()=>this.disconnect(new Ei("page_frozen"));document.addEventListener("visibilitychange",t,!1),window.addEventListener("focus",e,!1),window.addEventListener("online",e,!1),window.addEventListener("resume",e,!1),window.addEventListener("freeze",r,!1),this.unbind.push(()=>{document.removeEventListener("visibilitychange",t,!1),window.removeEventListener("focus",e,!1),window.removeEventListener("online",e,!1),window.removeEventListener("resume",e,!1),window.removeEventListener("freeze",r,!1)})}}disconnect(t){this.state==="disconnected"||this.state==="closed"||(this.logger.info("Disconnecting",{reason:t.message}),this.cancelReconnect(),this.stopPolling(),this.state="pending_disconnect",this.target.disconnected(t))}}const K1=["cable","action-cable"],q1="/cable",Ml=(n,t)=>{for(let e of K1){let r=n.head.querySelector(`meta[name='${e}-${t}']`);if(r)return r.getAttribute("content")}},Vg=n=>n.match(/wss?:\/\//)?n:typeof window<"u"?`${window.location.protocol.replace("http","ws")}//${window.location.host}${n}`:n,G1=()=>{if(typeof document<"u"&&document.head){let n=Ml(document,"url");if(n)return Vg(n)}return Vg(q1)},Y1=()=>{if(typeof document<"u"&&document.head){let n=Ml(document,"history-timestamp");if(n)return n|0}},X1=()=>{if(typeof document<"u"&&document.head)return Ml(document,"token")},Q1=()=>{if(typeof document<"u"&&document.head)return Ml(document,"token-param")};function Z1(n,t){typeof n=="object"&&typeof t>"u"&&(t=n,n=void 0),n=n||G1(),t=t||{},t.historyTimestamp||(t.historyTimestamp=Y1());let e=X1();if(e){let g=Q1();t.auth=Object.assign({token:e,param:g},t.auth||{})}t=Object.assign({},Ug,t);let{logLevel:r,logger:f,pingInterval:p,reconnectStrategy:y,maxMissingPings:b,maxReconnectAttempts:h}=t;return f=t.logger=t.logger||new U1(r),y=t.reconnectStrategy=t.reconnectStrategy||jg(p),t.monitor!==!1&&(t.monitor=t.monitor||new V1({pingInterval:p,reconnectStrategy:y,maxMissingPings:b,maxReconnectAttempts:h,logger:f})),F1(n,t)}function J1(n,t){let e=Z1(n,t);return new H1(e)}class eC{constructor(t="/openc3-api/cable"){this._cable=null,this._url=t}disconnect(){this._cable&&(this._cable.cable.disconnect(),this._cable=null)}createSubscription(t,e,r={},f={}){return OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then(p=>{if(p&&OpenC3Auth.setTokens(),this._cable==null){let y=this._url+"?scope="+encodeURIComponent(window.openc3Scope)+"&authorization="+encodeURIComponent(localStorage.openc3Token);y=new URL(y,document.baseURI).href,this._cable=J1(y)}return this._cable.subscriptions.create({channel:t,...f},r)})}recordPing(){}}er("P",eC);class tC{constructor(t,e,r="",f=""){this.keyword=t.keyword,this.parameters=t.parameters,this.filename=t.filename,this.line=t.line,this.lineNumber=t.lineNumber,this.message=e,this.usage=r,this.url=f}}er("b",tC);function Il(n){return nC.test(n)}const nC=/^-?[0-9]+$/;function Kg(n){return rC.test(n)}const rC=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$/;function qg(n,t){const e=Number.parseFloat(n),r=String(e),f=Gg(n),p=Gg(r);return!!(f===p||(t==null?void 0:t.approx)===!0&&!Il(n)&&p.length>=14&&f.startsWith(p.substring(0,14)))}let $a=function(n){return n.underflow="underflow",n.overflow="overflow",n.truncate_integer="truncate_integer",n.truncate_float="truncate_float",n}({});function iC(n){if(qg(n,{approx:!1}))return;if(Il(n))return $a.truncate_integer;const t=Number.parseFloat(n);return Number.isFinite(t)?t===0?$a.underflow:$a.truncate_float:$a.overflow}function Gg(n){return n.replace(oC,"").replace(aC,"").replace(lC,"").replace(sC,"")}const oC=/[eE][+-]?\d+$/,sC=/^-?(0*)?/,aC=/\./,lC=/0+$/;class cC{constructor(t){if(gl(this,"isLosslessNumber",!0),!Kg(t))throw new Error(`Invalid number (value: "${t}")`);this.value=t}valueOf(){const t=iC(this.value);if(t===void 0||t===$a.truncate_float)return Number.parseFloat(this.value);if(Il(this.value))return BigInt(this.value);throw new Error(`Cannot safely convert to number: the value '${this.value}' would ${t} and become ${Number.parseFloat(this.value)}`)}toString(){return this.value}}function uC(n){return n&&typeof n=="object"&&n.isLosslessNumber===!0||!1}function hC(n){return new cC(n)}function dC(n,t){return xu({"":n},"",n,t)}function xu(n,t,e,r){return Array.isArray(e)?r.call(n,t,gC(e,r)):e&&typeof e=="object"&&!uC(e)?r.call(n,t,pC(e,r)):r.call(n,t,e)}function pC(n,t){for(const e of Object.keys(n)){const r=xu(n,e,n[e],t);r!==void 0?n[e]=r:delete n[e]}return n}function gC(n,t){for(let e=0;e<n.length;e++)n[e]=xu(n,String(e),n[e],t);return n}function fC(n,t){let e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:hC,r=0;const f=b();return o(f),d(),t?dC(f,t):f;function p(){if(n.charCodeAt(r)===xC){r++,g();const _={};let A=!0;for(;r<n.length&&n.charCodeAt(r)!==Xg;){A?A=!1:(u(),g());const N=r,B=s();if(B===void 0){E();return}g(),a();const U=b();if(U===void 0){P();return}Object.prototype.hasOwnProperty.call(_,B)&&!Cu(U,_[B])&&$(B,N+1),_[B]=U}return n.charCodeAt(r)!==Xg&&S(),r++,_}}function y(){if(n.charCodeAt(r)===CC){r++,g();const _=[];let A=!0;for(;r<n.length&&n.charCodeAt(r)!==Qg;){A?A=!1:u();const N=b();c(N),_.push(N)}return n.charCodeAt(r)!==Qg&&C(),r++,_}}function b(){g();const _=s()??l()??p()??y()??h("true",!0)??h("false",!1)??h("null",null);return g(),_}function h(_,A){if(n.slice(r,r+_.length)===_)return r+=_.length,A}function g(){for(;mC(n.charCodeAt(r));)r++}function s(){if(n.charCodeAt(r)===ku){r++;let _="";for(;r<n.length&&n.charCodeAt(r)!==ku;){if(n.charCodeAt(r)===bC){const A=n[r+1],N=wC[A];N!==void 0?(_+=N,r++):A==="u"?El(n.charCodeAt(r+2))&&El(n.charCodeAt(r+3))&&El(n.charCodeAt(r+4))&&El(n.charCodeAt(r+5))?(_+=String.fromCharCode(Number.parseInt(n.slice(r+2,r+6),16)),r+=5):I(r):L(r)}else yC(n.charCodeAt(r))?_+=n[r]:R(n[r]);r++}return x(),r++,_}}function l(){const _=r;if(n.charCodeAt(r)===Zg&&(r++,w(_)),n.charCodeAt(r)===Su)r++;else if(vC(n.charCodeAt(r)))for(r++;Rl(n.charCodeAt(r));)r++;if(n.charCodeAt(r)===IC)for(r++,w(_);Rl(n.charCodeAt(r));)r++;if(n.charCodeAt(r)===NC||n.charCodeAt(r)===OC)for(r++,(n.charCodeAt(r)===Zg||n.charCodeAt(r)===TC)&&r++,w(_);Rl(n.charCodeAt(r));)r++;if(r>_)return e(n.slice(_,r))}function u(){if(n.charCodeAt(r)!==MC)throw new SyntaxError(`Comma ',' expected after value ${O()}`);r++}function a(){if(n.charCodeAt(r)!==EC)throw new SyntaxError(`Colon ':' expected after property name ${O()}`);r++}function o(_){if(_===void 0)throw new SyntaxError(`JSON value expected ${O()}`)}function c(_){if(_===void 0)throw new SyntaxError(`Array item expected ${O()}`)}function d(){if(r<n.length)throw new SyntaxError(`Expected end of input ${O()}`)}function w(_){if(!Rl(n.charCodeAt(r))){const A=n.slice(_,r);throw new SyntaxError(`Invalid number '${A}', expecting a digit ${O()}`)}}function x(){if(n.charCodeAt(r)!==ku)throw new SyntaxError(`End of string '"' expected ${O()}`)}function E(){throw new SyntaxError(`Quoted object key expected ${O()}`)}function $(_,A){throw new SyntaxError(`Duplicate key '${_}' encountered at position ${A}`)}function S(){throw new SyntaxError(`Quoted object key or end of object '}' expected ${O()}`)}function C(){throw new SyntaxError(`Array item or end of array ']' expected ${O()}`)}function R(_){throw new SyntaxError(`Invalid character '${_}' ${H()}`)}function L(_){const A=n.slice(_,_+2);throw new SyntaxError(`Invalid escape character '${A}' ${H()}`)}function P(){throw new SyntaxError(`Object value expected after ':' ${H()}`)}function I(_){const A=n.slice(_,_+6);throw new SyntaxError(`Invalid unicode character '${A}' ${H()}`)}function H(){return`at position ${r}`}function F(){return r<n.length?`but got '${n[r]}'`:"but reached end of input"}function O(){return`${F()} ${H()}`}}function mC(n){return n===kC||n===SC||n===AC||n===_C}function El(n){return n>=Su&&n<=Au||n>=RC&&n<=DC||n>=LC&&n<=PC}function Rl(n){return n>=Su&&n<=Au}function vC(n){return n>=$C&&n<=Au}function yC(n){return n>=32&&n<=1114111}function Cu(n,t){return n===t?!0:Array.isArray(n)&&Array.isArray(t)?n.length===t.length&&n.every((e,r)=>Cu(e,t[r])):Yg(n)&&Yg(t)?[...new Set([...Object.keys(n),...Object.keys(t)])].every(e=>Cu(n[e],t[e])):!1}function Yg(n){return typeof n=="object"&&n!==null}const wC={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
|
1397
|
-
`,r:"\r",t:" "},bC=92,xC=123,Xg=125,CC=91,Qg=93,kC=32,SC=10,AC=9,_C=13,ku=34,TC=43,Zg=45,Su=48,$C=49,Au=57,MC=44,IC=46,EC=58,RC=65,LC=97,OC=69,NC=101,DC=70,PC=102;function Jg(n,t,e,r){return f(n);function f(h,g){if(Array.isArray(r)){const s=r.find(l=>l.test(h));if(s){const l=s.stringify(h);if(typeof l!="string"||!Kg(l))throw new Error(`Invalid JSON number: output of a number stringifier must be a string containing a JSON number (output: ${l})`);return l}}if(typeof h=="boolean"||typeof h=="number"||typeof h=="string"||h===null||h instanceof Date||h instanceof Boolean||h instanceof Number||h instanceof String)return JSON.stringify(h);if(h!=null&&h.isLosslessNumber||typeof h=="bigint")return h.toString();if(Array.isArray(h))return p(h);if(h&&typeof h=="object")return y(h)}function p(h,g){if(h.length===0)return"[]";let s="[";for(let l=0;l<h.length;l++){const u=h[l];typeof u<"u"&&typeof u!="function"?s+=f(u):s+="null",l<h.length-1&&(s+=",")}return s+="]",s}function y(h,g){if(typeof h.toJSON=="function")return Jg(h.toJSON(),t,e,void 0);const s=Array.isArray(t)?t.map(String):Object.keys(h);if(s.length===0)return"{}";let l=!0,u="{";for(const a of s){const o=h[a];if(b(a,o)){l?l=!1:u+=",";const c=JSON.stringify(a);u+=`${c}:`,u+=f(o)}}return u+="}",u}function b(h,g){return typeof g<"u"&&typeof g!="function"&&typeof g!="symbol"}}function FC(n){return Il(n)&&!qg(n)?BigInt(n):parseFloat(n)}class Lo{constructor(){gl(this,"id",1)}async exec(t,e,r={},f={},p=6e4){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch{OpenC3Auth.login()}this.id=this.id+1;try{return r.scope=window.openc3Scope,f.manual=!0,(await mu.post("/openc3-api/api",{jsonrpc:"2.0",method:t,params:e,id:this.id,keyword_params:r},{headers:{Authorization:localStorage.openc3Token,"Content-Type":"application/json-rpc",...f},timeout:p,transformRequest:[(y,b)=>Jg(y)],transformResponse:[y=>fC(y,void 0,FC)]})).data.result}catch(y){let b=new Error;throw y.response?(b.name=y.response.data.error.data.class,b.message=y.response.data.error.data.message,b.object=y.response.data.error):y.request?(b.name="Request error",b.message="Request error, no response received"):b=y,b}}decode_openc3_type(t){if(t!==null&&typeof t=="object"&&t.json_class=="Float"&&t.raw){if(t.raw=="NaN")return NaN;if(t.raw=="Infinity")return 1/0;if(t.raw=="-Infinity")return-1/0}return null}encode_openc3_type(t){return Number.isNaN(t)?{json_class:"Float",raw:"NaN"}:t==Number.POSITIVE_INFINITY?{json_class:"Float",raw:"Infinity"}:t==Number.NEGATIVE_INFINITY?{json_class:"Float",raw:"-Infinity"}:null}ensure_offline_access(){this.offline_access_needed().then(t=>{t&&(localStorage.openc3OfflineToken?this.set_offline_access(localStorage.openc3OfflineToken).then(()=>{delete localStorage.openc3OfflineToken}):OpenC3Auth.getOfflineAccess())})}offline_access_needed(){return this.exec("offline_access_needed",[])}set_offline_access(t){return this.exec("set_offline_access",[t])}get_all_interface_info(){return this.exec("get_all_interface_info",[])}map_target_to_interface(t,e){return this.exec("map_target_to_interface",[t,e])}connect_interface(t,...e){return e.length>0?this.exec("connect_interface",[t,...e]):this.exec("connect_interface",[t])}disconnect_interface(t){return this.exec("disconnect_interface",[t])}interface_cmd(t,e,...r){return this.exec("interface_cmd",[t,e,...r])}get_all_router_info(){return this.exec("get_all_router_info",[])}connect_router(t){return this.exec("connect_router",[t])}disconnect_router(t){return this.exec("disconnect_router",[t])}get_target_interfaces(){return this.exec("get_target_interfaces",[])}get_tlm_cnts(t){return this.exec("get_tlm_cnts",[t])}get_item(t,e,r){return this.exec("get_item",[t,e,r])}get_param(t,e,r){return this.exec("get_param",[t,e,r])}get_parameter(t,e,r){return this.exec("get_param",[t,e,r])}get_limits_sets(){return this.exec("get_limits_sets",[])}get_limits_set(){return this.exec("get_limits_set",[])}set_limits_set(t){return this.exec("set_limits_set",[t])}get_target(t){return this.exec("get_target",[t])}get_target_names(){return this.exec("get_target_names",[])}get_target_list(){return this.exec("get_target_names",[])}get_tlm(t,e){return this.exec("get_tlm",[t,e])}get_telemetry(t,e){return this.exec("get_tlm",[t,e])}get_all_tlm(t){return this.exec("get_all_tlm",[t])}get_all_telemetry(t){return this.exec("get_all_tlm",[t])}get_all_tlm_names(t,e=!1){return this.exec("get_all_tlm_names",[t],{hidden:e})}get_all_telemetry_names(t){return this.exec("get_all_tlm_names",[t])}get_all_tlm_item_names(t){return this.exec("get_all_tlm_item_names",[t])}async get_tlm_packet(t,e,r,f=30){const p=await this.exec("get_tlm_packet",[t,e],{type:r,stale_time:f});if(p!=null){let y=p.length,b=null;for(let h=0;h<y;h++)b=this.decode_openc3_type(p[h][1]),b!==null&&(p[h][1]=b)}return p}get_packet_derived_items(t,e){return this.exec("get_packet_derived_items",[t,e])}get_tlm_buffer(t,e){return this.exec("get_tlm_buffer",[t,e])}async get_tlm_values(t,e=30,r=null){let f={stale_time:e};r!==null&&(f.cache_timeout=r);const p=await this.exec("get_tlm_values",[t],f,{},1e4);let y=p[0].length,b=null;for(let h=0;h<y;h++)b=this.decode_openc3_type(p[0][h]),b!==null&&(p[0][h]=b);return p}get_limits(t,e,r){return this.exec("get_limits",[t,e,r])}async tlm(t,e,r,f="CONVERTED"){let p=null;if(e===void 0)p=await this.exec("tlm",[t]);else if(r===void 0)if(["RAW","CONVERTED","FORMATTED","WITH_UNITS"].includes(e))p=await this.exec("tlm",[t],{type:e});else{let b=new Error;throw b.name="TypeError",b.message=`Invalid data type ${e}. Valid options are RAW, CONVERTED, FORMATTED, and WITH_UNITS.`,b}else p=await this.exec("tlm",[t,e,r],{type:f});let y=this.decode_openc3_type(p);return y!==null&&(p=y),p}async inject_tlm(t,e,r=null,f="CONVERTED"){await this.exec("inject_tlm",[t,e,r],{type:f})}set_tlm(t,e,r,f){return this.exec("set_tlm",[t,e,r],{type:f})}override_tlm(t,e,r,f){return this.exec("override_tlm",[t,e,r],{type:f})}get_overrides(){return this.exec("get_overrides")}normalize_tlm(t,e,r,f){return this.exec("normalize_tlm",[t,e,r],{type:f})}get_all_cmds(t){return this.exec("get_all_cmds",[t])}get_all_commands(t){return this.exec("get_all_cmds",[t])}get_all_cmd_names(t,e=!1){return this.exec("get_all_cmd_names",[t],{hidden:e})}get_all_command_names(t){return this.exec("get_all_cmd_names",[t])}get_cmd(t,e){return this.exec("get_cmd",[t,e])}get_command(t,e){return this.exec("get_cmd",[t,e])}get_cmd_cnts(t){return this.exec("get_cmd_cnts",[t])}get_cmd_value(t,e,r,f="CONVERTED"){return this.exec("get_cmd_value",[t,e,r,f])}get_cmd_buffer(t,e){return this.exec("get_cmd_buffer",[t,e])}_cmd(t,e,r,f,p){let y=null;for(let b in f)Object.prototype.hasOwnProperty.call(f,b)&&(y=this.encode_openc3_type(f[b]),y!==null&&(f[b]=y));return this.exec(t,[e,r,f],{},p)}get_cmd_hazardous(t,e,r,f={}){return e===void 0?this.exec("get_cmd_hazardous",t,{},f):this._cmd("get_cmd_hazardous",t,e,r,f)}cmd(t,e,r,f={}){return e===void 0?this.exec("cmd",t,{},f):this._cmd("cmd",t,e,r,f)}cmd_no_range_check(t,e,r,f={}){return e===void 0?this.exec("cmd_no_range_check",t,{},f):this._cmd("cmd_no_range_check",t,e,r,f)}cmd_raw(t,e,r,f={}){return e===void 0?this.exec("cmd_raw",t,{},f):this._cmd("cmd_raw",t,e,r,f)}cmd_raw_no_range_check(t,e,r,f={}){return e===void 0?this.exec("cmd_raw_no_range_check",t,{},f):this._cmd("cmd_raw_no_range_check",t,e,r,f)}cmd_no_hazardous_check(t,e,r,f={}){return e===void 0?this.exec("cmd_no_hazardous_check",t,{},f):this._cmd("cmd_no_hazardous_check",t,e,r,f)}cmd_no_checks(t,e,r,f={}){return e===void 0?this.exec("cmd_no_checks",t,{},f):this._cmd("cmd_no_checks",t,e,r,f)}cmd_raw_no_hazardous_check(t,e,r,f={}){return e===void 0?this.exec("cmd_raw_no_hazardous_check",t,{},f):this._cmd("cmd_raw_no_hazardous_check",t,e,r,f)}cmd_raw_no_checks(t,e,r,f={}){return e===void 0?this.exec("cmd_raw_no_checks",t,{},f):this._cmd("cmd_raw_no_checks",t,e,r,f)}build_cmd(t,e,r){return e===void 0?this.exec("build_cmd",t):this._cmd("build_cmd",t,e,r)}build_command(t,e,r){return e===void 0?this.exec("build_cmd",t):this._cmd("build_cmd",t,e,r)}get_interface_names(){return this.exec("get_interface_names",[])}send_raw(t,e){return this.exec("send_raw",[t,e])}list_configs(t){return this.exec("list_configs",[t])}load_config(t,e){return this.exec("load_config",[t,e])}save_config(t,e,r){return this.exec("save_config",[t,e,r])}delete_config(t,e){return this.exec("delete_config",[t,e])}enable_limits(t,e,r){return this.exec("enable_limits",[t,e,r])}disable_limits(t,e,r){return this.exec("disable_limits",[t,e,r])}get_out_of_limits(){return this.exec("get_out_of_limits",[])}get_overall_limits_state(t){return this.exec("get_overall_limits_state",[t])}list_settings(){return this.exec("list_settings",[])}get_all_settings(){return this.exec("get_all_settings",[])}get_setting(t){return this.exec("get_setting",[t])}get_settings(t){return this.exec("get_settings",t)}set_setting(t,e){return this.exec("set_setting",[t,e])}update_news(){return this.exec("update_news",[])}save_setting(t,e){return this.exec("set_setting",[t,e])}get_metrics(){return this.exec("get_metrics",[])}async hashString(t){if(window.isSecureContext){const e=new TextEncoder().encode(t),r=await crypto.subtle.digest("SHA-256",e),f=new Uint8Array(r);return Array.from(f).map(p=>p.toString(16).padStart(2,"0")).join("")}}}er("B",Lo);var ef={exports:{}},tf;function WC(){return tf||(tf=1,function(n,t){ace.define("ace/ext/hardwrap",["require","exports","module","ace/range","ace/editor","ace/config"],function(e,r,f){function p(g,s){function l(P,I,H){if(!(P.length<I)){var F=P.slice(0,I),O=P.slice(I),_=/^(?:(\s+)|(\S+)(\s+))/.exec(O),A=/(?:(\s+)|(\s+)(\S+))$/.exec(F),N=0,B=0;if(A&&!A[2]&&(N=I-A[1].length,B=I),_&&!_[2]&&(N||(N=I),B=I+_[1].length),N)return{start:N,end:B};if(A&&A[2]&&A.index>H)return{start:A.index,end:A.index+A[2].length};if(_&&_[2])return N=I+_[2].length,{start:N,end:N+_[3].length}}}for(var u=s.column||g.getOption("printMarginColumn"),a=s.allowMerge!=0,o=Math.min(s.startRow,s.endRow),c=Math.max(s.startRow,s.endRow),d=g.session;o<=c;){var w=d.getLine(o);if(w.length>u){var x=l(w,u,5);if(x){var E=/^\s*/.exec(w)[0];d.replace(new b(o,x.start,o,x.end),`
|
1398
|
-
`+E)}c++}else if(a&&/\S/.test(w)&&o!=c){var $=d.getLine(o+1);if($&&/\S/.test($)){var S=w.replace(/\s+$/,""),C=$.replace(/^\s+/,""),R=S+" "+C,x=l(R,u,5);if(x&&x.start>S.length||R.length<u){var L=new b(o,S.length,o+1,$.length-C.length);d.replace(L," "),o--,c--}else S.length<w.length&&d.remove(new b(o,S.length,o,w.length))}}o++}}function y(g){if(g.command.name=="insertstring"&&/\S/.test(g.args)){var s=g.editor,l=s.selection.cursor;if(l.column<=s.renderer.$printMarginColumn)return;var u=s.session.$undoManager.$lastDelta;p(s,{startRow:l.row,endRow:l.row,allowMerge:!1}),u!=s.session.$undoManager.$lastDelta&&s.session.markUndoGroup()}}var b=e("../range").Range,h=e("../editor").Editor;e("../config").defineOptions(h.prototype,"editor",{hardWrap:{set:function(g){g?this.commands.on("afterExec",y):this.commands.off("afterExec",y)},value:!1}}),r.hardWrap=p}),ace.define("ace/keyboard/vim",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/dom","ace/lib/oop","ace/lib/keys","ace/lib/event","ace/search","ace/lib/useragent","ace/search_highlight","ace/commands/multi_select_commands","ace/mode/text","ace/ext/hardwrap","ace/multi_select"],function(e,r,f){function p(v){return{row:v.line,column:v.ch}}function y(v){return new Ne(v.row,v.column)}function b(v,T,k){if(T.line===k.line&&T.ch>=k.ch-1){var D=v.getLine(T.line),W=D.charCodeAt(T.ch);55296<=W&&W<=55551&&(k.ch+=1)}return{start:T,end:k}}function h(v){v.setOption("disableInput",!0),v.setOption("showCursorWhenSelecting",!1),Fe.signal(v,"vim-mode-change",{mode:"normal"}),v.on("cursorActivity",zo),R(v),Fe.on(v.getInputField(),"paste",s(v))}function g(v){v.setOption("disableInput",!1),v.off("cursorActivity",zo),Fe.off(v.getInputField(),"paste",s(v)),v.state.vim=null,
|
1399
|
-
`;else if(Ci[k]){var W=
|
1400
|
-
`){var K=
|
1401
|
-
`;else{if(Ci.hasOwnProperty(se)){Y=Ci[se],Ho(v,Y);continue}Y=Y[0],z.lastIndex=K.index+1}}v.replaceSelection(Y)}}}finally{if(Lr.pop(),cn=Lr.length?D:!1,!Lr.length&&
|
1402
|
-
`;break;case"<Space>":k=" ";break;default:k=""}return k}function Ye(v,T,k){return function(){for(var D=0;D<k;D++)T(v)}}function qe(v){return new Ne(v.line,v.ch)}function dt(v,T){return v.ch==T.ch&&v.line==T.line}function nt(v,T){return v.line<T.line?!0:v.line==T.line&&v.ch<T.ch}function pt(v,T){return arguments.length>2&&(T=pt.apply(void 0,Array.prototype.slice.call(arguments,1))),nt(v,T)?v:T}function tn(v,T){return arguments.length>2&&(T=tn.apply(void 0,Array.prototype.slice.call(arguments,1))),nt(v,T)?T:v}function
|
1403
|
-
`);W.pop();for(var z,z=W.pop();W.length>0&&z&&d(z);z=W.pop())k.line--,k.ch=0;z?(k.line--,k.ch=Yt(v,k.line)):k.ch=0}}function Ot(v,T,k){T.ch=0,k.ch=0,k.line++}function ut(v){if(!v)return 0;var T=v.search(/\S/);return T==-1?v.length:T}function xt(v,T,k){var D=T.inclusive,W=T.innerWord,z=T.bigWord,K=T.noSymbol,Y=T.multiline,Q=k||At(v),re=v.getLine(Q.line),se=re,ye=Q.line,Ce=ye,me=Q.ch,we,Oe=K?wo[0]:bi[0];if(W&&/\s/.test(re.charAt(me)))Oe=function(yn){return/\s/.test(yn)};else{for(;!Oe(re.charAt(me));)if(me++,me>=re.length){if(!Y)return null;me--,we=co(v,Q,!0,z,!0);break}z?Oe=bi[0]:(Oe=wo[0],Oe(re.charAt(me))||(Oe=wo[1]))}for(var Le=me,Ue=me;Oe(re.charAt(Ue))&&Ue>=0;)Ue--;if(Ue++,we)Le=we.to,Ce=we.line,se=v.getLine(Ce),!se&&Le==0&&Le++;else for(;Oe(re.charAt(Le))&&Le<re.length;)Le++;if(D){var at=Le,Ze=Q.ch<=Ue&&/\s/.test(re.charAt(Q.ch));if(!Ze)for(;/\s/.test(se.charAt(Le))&&Le<se.length;)Le++;if(at==Le||Ze){for(var tt=Ue;/\s/.test(re.charAt(Ue-1))&&Ue>0;)Ue--;!Ue&&!Ze&&(Ue=tt)}}return{start:new Ne(ye,Ue),end:new Ne(Ce,Le)}}function Cn(v,T,k){var D=T;if(!Fe.findMatchingTag||!Fe.findEnclosingTag)return{start:D,end:D};var W=Fe.findMatchingTag(v,T)||Fe.findEnclosingTag(v,T);return!W||!W.open||!W.close?{start:D,end:D}:k?{start:W.open.from,end:W.close.to}:{start:W.open.to,end:W.close.from}}function kr(v,T,k){dt(T,k)||Be.jumpList.add(v,T,k)}function Kr(v,T){Be.lastCharacterSearch.increment=v,Be.lastCharacterSearch.forward=T.forward,Be.lastCharacterSearch.selectedCharacter=T.selectedCharacter}function Di(v,T,k,D){var W=qe(v.getCursor()),z=k?1:-1,K=k?v.lineCount():-1,Y=W.ch,Q=W.line,re=v.getLine(Q),se={lineText:re,nextCh:re.charAt(Y),lastCh:null,index:Y,symb:D,reverseSymb:(k?{")":"(","}":"{"}:{"(":")","{":"}"})[D],forward:k,depth:0,curMoveThrough:!1},ye=ai[D];if(!ye)return W;var Ce=li[ye].init,me=li[ye].isComplete;for(Ce&&Ce(se);Q!==K&&T;){if(se.index+=z,se.nextCh=se.lineText.charAt(se.index),!se.nextCh){if(Q+=z,se.lineText=v.getLine(Q)||"",z>0)se.index=0;else{var we=se.lineText.length;se.index=we>0?we-1:0}se.nextCh=se.lineText.charAt(se.index)}me(se)&&(W.line=Q,W.ch=se.index,T--)}return se.nextCh||se.curMoveThrough?new Ne(Q,se.index):W}function co(v,T,k,D,W){var z=T.line,K=T.ch,Y=v.getLine(z),Q=k?1:-1,re=D?bi:wo;if(W&&Y==""){if(z+=Q,Y=v.getLine(z),!l(v,z))return null;K=k?0:Y.length}for(;;){if(W&&Y=="")return{from:0,to:0,line:z};for(var se=Q>0?Y.length:-1,ye=se,Ce=se;K!=se;){for(var me=!1,we=0;we<re.length&&!me;++we)if(re[we](Y.charAt(K))){for(ye=K;K!=se&&re[we](Y.charAt(K));)K+=Q;if(Ce=K,me=ye!=Ce,ye==T.ch&&z==T.line&&Ce==ye+Q)continue;return{from:Math.min(ye,Ce+1),to:Math.max(ye,Ce),line:z}}me||(K+=Q)}if(z+=Q,!l(v,z))return null;Y=v.getLine(z),K=Q>0?0:Y.length}}function fr(v,T,k,D,W,z){var K=qe(T),Y=[];(D&&!W||!D&&W)&&k++;for(var Q=!D||!W,re=0;re<k;re++){var se=co(v,T,D,z,Q);if(!se){var ye=Yt(v,v.lastLine());Y.push(D?{line:v.lastLine(),from:ye,to:ye}:{line:0,from:0,to:0});break}Y.push(se),T=new Ne(se.line,D?se.to-1:se.from)}var Ce=Y.length!=k,me=Y[0],we=Y.pop();return D&&!W?(!Ce&&(me.from!=K.ch||me.line!=K.line)&&(we=Y.pop()),new Ne(we.line,we.from)):D&&W?new Ne(we.line,we.to-1):!D&&W?(!Ce&&(me.to!=K.ch||me.line!=K.line)&&(we=Y.pop()),new Ne(we.line,we.to)):new Ne(we.line,we.from)}function uo(v,T,k,D,W){var z=T,K=new Ne(z.line+k.repeat-1,1/0),Y=v.clipPos(K);return Y.ch--,W||(D.lastHPos=1/0,D.lastHSPos=v.charCoords(Y,"div").left),K}function Do(v,T,k,D,W){for(var z=W||v.getCursor(),K=z.ch,Y,Q=0;Q<T;Q++){var re=v.getLine(z.line);if(Y=Ua(K,re,D,k),Y==-1)return null;K=Y}return new Ne(v.getCursor().line,Y)}function Ha(v,T){var k=v.getCursor().line;return ue(v,new Ne(k,T-1))}function ii(v,T,k,D){!x(k,no)&&!Zt.test(k)||(T.marks[k]&&T.marks[k].clear(),T.marks[k]=v.setBookmark(D))}function Ua(v,T,k,D,W){var z;return D?(z=T.indexOf(k,v+1),z!=-1):(z=T.lastIndexOf(k,v-1),z!=-1),z}function ys(v,T,k,D,W){function z(Ue){return!/\S/.test(v.getLine(Ue))}function K(Ue,at,Ze){return Ze?z(Ue)!=z(Ue+at):!z(Ue)&&z(Ue+at)}function Y(Ue){D=D>0?1:-1;var at=v.ace.session.getFoldLine(Ue);at&&Ue+D>at.start.row&&Ue+D<at.end.row&&(D=(D>0?at.end.row:at.start.row)-Ue)}var Q=T.line,re=v.firstLine(),se=v.lastLine(),ye,Ce,me=Q;if(D){for(;re<=me&&me<=se&&k>0;)Y(me),K(me,D)&&k--,me+=D;return new Ne(me,0)}var we=v.state.vim;if(we.visualLine&&K(Q,1,!0)){var Oe=we.sel.anchor;K(Oe.line,-1,!0)&&(!W||Oe.line!=Q)&&(Q+=1)}var Le=z(Q);for(me=Q;me<=se&&k;me++)K(me,1,!0)&&(!W||z(me)!=Le)&&k--;for(Ce=new Ne(me,0),me>se&&!Le?Le=!0:W=!1,me=Q;me>re&&!((!W||z(me)==Le||me==Q)&&K(me,-1,!0));me--);return ye=new Ne(me,0),{start:ye,end:Ce}}function ra(v,T,k,D,W){function z(re){re.pos+re.dir<0||re.pos+re.dir>=re.line.length?re.line=null:re.pos+=re.dir}function K(re,se,ye,Ce){var me=re.getLine(se),we={line:me,ln:se,pos:ye,dir:Ce};if(we.line==="")return{ln:we.ln,pos:we.pos};var Oe=we.pos;for(z(we);we.line!==null;){if(Oe=we.pos,w(we.line[we.pos])){if(!W)return{ln:we.ln,pos:we.pos+1};for(z(we);we.line!==null&&d(we.line[we.pos]);)Oe=we.pos,z(we);return{ln:we.ln,pos:Oe+1}}z(we)}return{ln:we.ln,pos:Oe+1}}function Y(re,se,ye,Ce){var me=re.getLine(se),we={line:me,ln:se,pos:ye,dir:Ce};if(we.line==="")return{ln:we.ln,pos:we.pos};var Oe=we.pos;for(z(we);we.line!==null;){if(!d(we.line[we.pos])&&!w(we.line[we.pos]))Oe=we.pos;else if(w(we.line[we.pos]))return W?d(we.line[we.pos+1])?{ln:we.ln,pos:we.pos+1}:{ln:we.ln,pos:Oe}:{ln:we.ln,pos:Oe};z(we)}return we.line=me,W&&d(we.line[we.pos])?{ln:we.ln,pos:we.pos}:{ln:we.ln,pos:Oe}}for(var Q={ln:T.line,pos:T.ch};k>0;)D<0?Q=Y(v,Q.ln,Q.pos,D):Q=K(v,Q.ln,Q.pos,D),k--;return new Ne(Q.ln,Q.pos)}function Pi(v,T,k,D){function W(Q,re){if(re.pos+re.dir<0||re.pos+re.dir>=re.line.length){if(re.ln+=re.dir,!l(Q,re.ln)){re.line=null,re.ln=null,re.pos=null;return}re.line=Q.getLine(re.ln),re.pos=re.dir>0?0:re.line.length-1}else re.pos+=re.dir}function z(Q,re,se,ye){var Le=Q.getLine(re),Ce=Le==="",me={line:Le,ln:re,pos:se,dir:ye},we={ln:me.ln,pos:me.pos},Oe=me.line==="";for(W(Q,me);me.line!==null;){if(we.ln=me.ln,we.pos=me.pos,me.line===""&&!Oe)return{ln:me.ln,pos:me.pos};if(Ce&&me.line!==""&&!d(me.line[me.pos]))return{ln:me.ln,pos:me.pos};w(me.line[me.pos])&&!Ce&&(me.pos===me.line.length-1||d(me.line[me.pos+1]))&&(Ce=!0),W(Q,me)}var Le=Q.getLine(we.ln);we.pos=0;for(var Ue=Le.length-1;Ue>=0;--Ue)if(!d(Le[Ue])){we.pos=Ue;break}return we}function K(Q,re,se,ye){var Oe=Q.getLine(re),Ce={line:Oe,ln:re,pos:se,dir:ye},me={ln:Ce.ln,pos:null},we=Ce.line==="";for(W(Q,Ce);Ce.line!==null;){if(Ce.line===""&&!we)return me.pos!==null?me:{ln:Ce.ln,pos:Ce.pos};if(!(!w(Ce.line[Ce.pos])||me.pos===null||Ce.ln===me.ln&&Ce.pos+1===me.pos))return me;Ce.line!==""&&!d(Ce.line[Ce.pos])&&(we=!1,me={ln:Ce.ln,pos:Ce.pos}),W(Q,Ce)}var Oe=Q.getLine(me.ln);me.pos=0;for(var Le=0;Le<Oe.length;++Le)if(!d(Oe[Le])){me.pos=Le;break}return me}for(var Y={ln:T.line,pos:T.ch};k>0;)D<0?Y=K(v,Y.ln,Y.pos,D):Y=z(v,Y.ln,Y.pos,D),k--;return new Ne(Y.ln,Y.pos)}function jn(v,T,k,D){var W=T,z,K,Y={"(":/[()]/,")":/[()]/,"[":/[[\]]/,"]":/[[\]]/,"{":/[{}]/,"}":/[{}]/,"<":/[<>]/,">":/[<>]/}[k],Q={"(":"(",")":"(","[":"[","]":"[","{":"{","}":"{","<":"<",">":"<"}[k],re=v.getLine(W.line).charAt(W.ch),se=re===Q?1:0;if(z=v.scanForBracket(new Ne(W.line,W.ch+se),-1,void 0,{bracketRegex:Y}),K=v.scanForBracket(new Ne(W.line,W.ch+se),1,void 0,{bracketRegex:Y}),!z||!K)return null;if(z=z.pos,K=K.pos,z.line==K.line&&z.ch>K.ch||z.line>K.line){var ye=z;z=K,K=ye}return D?K.ch+=1:z.ch+=1,{start:z,end:K}}function Sr(v,T,k,D){var W=qe(T),z=v.getLine(W.line),K=z.split(""),Y,Q,re,se,ye=K.indexOf(k);if(W.ch<ye)W.ch=ye;else if(ye<W.ch&&K[W.ch]==k){var Ce=/string/.test(v.getTokenTypeAt(fe(T,0,1))),me=/string/.test(v.getTokenTypeAt(T)),we=Ce&&!me;we||(Q=W.ch,--W.ch)}if(K[W.ch]==k&&!Q)Y=W.ch+1;else for(re=W.ch;re>-1&&!Y;re--)K[re]==k&&(Y=re+1);if(Y&&!Q)for(re=Y,se=K.length;re<se&&!Q;re++)K[re]==k&&(Q=re);return!Y||!Q?{start:W,end:W}:(D&&(--Y,++Q),{start:new Ne(W.line,Y),end:new Ne(W.line,Q)})}function Fi(){}function Tn(v){var T=v.state.vim;return T.searchState_||(T.searchState_=new Fi)}function Ar(v){return Wi(v,"/")}function Qi(v){return ws(v,"/")}function Wi(v,T){var k=ws(v,T)||[];if(!k.length)return[];var D=[];if(k[0]===0){for(var W=0;W<k.length;W++)typeof k[W]=="number"&&D.push(v.substring(k[W]+1,k[W+1]));return D}}function ws(v,T){T||(T="/");for(var k=!1,D=[],W=0;W<v.length;W++){var z=v.charAt(W);!k&&z==T&&D.push(W),k=!k&&z=="\\"}return D}function ia(v){for(var T="|(){",k="}",D=!1,W=[],z=-1;z<v.length;z++){var K=v.charAt(z)||"",Y=v.charAt(z+1)||"",Q=Y&&T.indexOf(Y)!=-1;D?((K!=="\\"||!Q)&&W.push(K),D=!1):K==="\\"?(D=!0,Y&&k.indexOf(Y)!=-1&&(Q=!0),(!Q||Y==="\\")&&W.push(K)):(W.push(K),Q&&Y!=="\\"&&W.push("\\"))}return W.join("")}function Va(v){for(var T=!1,k=[],D=-1;D<v.length;D++){var W=v.charAt(D)||"",z=v.charAt(D+1)||"";ki[W+z]?(k.push(ki[W+z]),D++):T?(k.push(W),T=!1):W==="\\"?(T=!0,o(z)||z==="$"?k.push("$"):z!=="/"&&z!=="\\"&&k.push("\\")):(W==="$"&&k.push("$"),k.push(W),z==="/"&&k.push("\\"))}return k.join("")}function Ka(v){for(var T=new Fe.StringStream(v),k=[];!T.eol();){for(;T.peek()&&T.peek()!="\\";)k.push(T.next());var D=!1;for(var W in lr)if(T.match(W,!0)){D=!0,k.push(lr[W]);break}D||k.push(T.next())}return k.join("")}function Bi(v,T,k){var D=Be.registerController.getRegister("/");if(D.setText(v),v instanceof RegExp)return v;var W=Qi(v),z,K;if(!W.length)z=v;else{z=v.substring(0,W[0]);var Y=v.substring(W[0]);K=Y.indexOf("i")!=-1}if(!z)return null;S("pcre")||(z=ia(z)),k&&(T=/^[^A-Z]*$/.test(z));var Q=new RegExp(z,T||K?"im":"m");return Q}function oi(v){typeof v=="string"&&(v=document.createElement(v));for(var T,k=1;k<arguments.length;k++)if(T=arguments[k])if(typeof T!="object"&&(T=document.createTextNode(T)),T.nodeType)v.appendChild(T);else for(var D in T)Object.prototype.hasOwnProperty.call(T,D)&&(D[0]==="$"?v.style[D.slice(1)]=T[D]:v.setAttribute(D,T[D]));return v}function Ut(v,T){var k=oi("div",{$color:"red",$whiteSpace:"pre",class:"cm-vim-message"},T);v.openNotification?v.openNotification(k,{bottom:!0,duration:5e3}):alert(k.innerText)}function oa(v,T){return oi("div",{$display:"flex"},oi("span",{$fontFamily:"monospace",$whiteSpace:"pre",$flex:1},v,oi("input",{type:"text",autocorrect:"off",autocapitalize:"off",spellcheck:"false",$width:"100%"})),T&&oi("span",{$color:"#888"},T))}function _r(v,T){if(Lr.length){T.value||(T.value=""),bn=T;return}var k=oa(T.prefix,T.desc);if(v.openDialog)v.openDialog(k,T.onClose,{onKeyDown:T.onKeyDown,onKeyUp:T.onKeyUp,bottom:!0,selectValueOnOpen:!1,value:T.value});else{var D="";typeof T.prefix!="string"&&T.prefix&&(D+=T.prefix.textContent),T.desc&&(D+=" "+T.desc),T.onClose(prompt(D,""))}}function Hn(v,T){if(v instanceof RegExp&&T instanceof RegExp){for(var k=["global","multiline","ignoreCase","source"],D=0;D<k.length;D++){var W=k[D];if(v[W]!==T[W])return!1}return!0}return!1}function mn(v,T,k,D){if(T){var W=Tn(v),z=Bi(T,!!k,!!D);if(z)return vi(v,z),Hn(z,W.getQuery())||W.setQuery(z),z}}function Ln(v){if(v.source.charAt(0)=="^")var T=!0;return{token:function(k){if(T&&!k.sol()){k.skipToEnd();return}var D=k.match(v,!1);if(D)return D[0].length==0?(k.next(),"searching"):!k.sol()&&(k.backUp(1),!v.exec(k.next()+D[0]))?(k.next(),null):(k.match(v),"searching");for(;!k.eol()&&(k.next(),!k.match(v,!1)););},query:v}}function vi(v,T){clearTimeout(cr);var k=Tn(v);k.highlightTimeout=cr,cr=setTimeout(function(){if(v.state.vim){var D=Tn(v);D.highlightTimeout=null;var W=D.getOverlay();(!W||T!=W.query)&&(W&&v.removeOverlay(W),W=Ln(T),v.addOverlay(W),v.showMatchesOnScrollbar&&(D.getScrollbarAnnotate()&&D.getScrollbarAnnotate().clear(),D.setScrollbarAnnotate(v.showMatchesOnScrollbar(T))),D.setOverlay(W))}},50)}function Tr(v,T,k,D){return D===void 0&&(D=1),v.operation(function(){for(var W=v.getCursor(),z=v.getSearchCursor(k,W),K=0;K<D;K++){var Y=z.find(T);if(K==0&&Y&&dt(z.from(),W)){var Q=T?z.from():z.to();Y=z.find(T),Y&&!Y[0]&&dt(z.from(),Q)&&v.getLine(Q.line).length==Q.ch&&(Y=z.find(T))}if(!Y&&(z=v.getSearchCursor(k,T?new Ne(v.lastLine()):new Ne(v.firstLine(),0)),!z.find(T)))return}return z.from()})}function yi(v,T,k,D,W){return D===void 0&&(D=1),v.operation(function(){var z=v.getCursor(),K=v.getSearchCursor(k,z),Y=K.find(!T);!W.visualMode&&Y&&dt(K.from(),z)&&K.find(!T);for(var Q=0;Q<D;Q++)if(Y=K.find(T),!Y&&(K=v.getSearchCursor(k,T?new Ne(v.lastLine()):new Ne(v.firstLine(),0)),!K.find(T)))return;return[K.from(),K.to()]})}function Po(v){var T=Tn(v);T.highlightTimeout&&(clearTimeout(T.highlightTimeout),T.highlightTimeout=null),v.removeOverlay(Tn(v).getOverlay()),T.setOverlay(null),T.getScrollbarAnnotate()&&(T.getScrollbarAnnotate().clear(),T.setScrollbarAnnotate(null))}function bs(v,T,k){return typeof v!="number"&&(v=v.line),T instanceof Array?x(v,T):typeof k=="number"?v>=T&&v<=k:v==T}function Zi(v){var T=v.ace.renderer;return{top:T.getFirstFullyVisibleRow(),bottom:T.getLastFullyVisibleRow()}}function qr(v,T,k){if(k=="'"||k=="`")return Be.jumpList.find(v,-1)||new Ne(0,0);if(k==".")return ho(v);var D=T.marks[k];return D&&D.find()}function ho(v){if(v.getLastEditEnd)return v.getLastEditEnd();for(var T=v.doc.history.done,k=T.length;k--;)if(T[k].changes)return qe(T[k].changes[0].to)}function Fo(v,T,k,D,W,z,K,Y,Q){function re(){v.operation(function(){for(;!Oe;)se(),Ce();me()})}function se(){var Ze=v.getRange(z.from(),z.to()),tt=Ze.replace(K,Y),yn=z.to().line;z.replace(tt),Ue=z.to().line,W+=Ue-yn,at=Ue<yn}function ye(){var Ze=Le&&qe(z.to()),tt=z.findNext();return tt&&!tt[0]&&Ze&&dt(z.from(),Ze)&&(tt=z.findNext()),tt}function Ce(){for(;ye()&&bs(z.from(),D,W);)if(!(!k&&z.from().line==Ue&&!at)){v.scrollIntoView(z.from(),30),v.setSelection(z.from(),z.to()),Le=z.from(),Oe=!1;return}Oe=!0}function me(Ze){if(Ze&&Ze(),v.focus(),Le){v.setCursor(Le);var tt=v.state.vim;tt.exMode=!1,tt.lastHPos=tt.lastHSPos=Le.ch}Q&&Q()}function we(Ze,tt,yn){Fe.e_stop(Ze);var lt=H(Ze);switch(lt){case"y":se(),Ce();break;case"n":Ce();break;case"a":var kn=Q;Q=void 0,v.operation(re),Q=kn;break;case"l":se();case"q":case"<Esc>":case"<C-c>":case"<C-[>":me(yn)}return Oe&&me(yn),!0}v.state.vim.exMode=!0;var Oe=!1,Le,Ue,at;if(Ce(),Oe){Ut(v,"No matches for "+K.source);return}if(!T){re(),Q&&Q();return}_r(v,{prefix:oi("span","replace with ",oi("strong",Y)," (y/n/a/q/l)"),onKeyDown:we})}function Gr(v,T){var k=v.state.vim,D=Be.macroModeState,W=Be.registerController.getRegister("."),z=D.isPlaying,K=D.lastInsertModeChanges;z||(v.off("change",po),k.insertEnd&&k.insertEnd.clear(),k.insertEnd=null,Fe.off(v.getInputField(),"keydown",Ss)),!z&&k.insertModeRepeat>1&&(sa(v,k,k.insertModeRepeat-1,!0),k.lastEditInputState.repeatOverride=k.insertModeRepeat),delete k.insertModeRepeat,k.insertMode=!1,T||v.setCursor(v.getCursor().line,v.getCursor().ch-1),v.setOption("keyMap","vim"),v.setOption("disableInput",!0),v.toggleOverwrite(!1),W.setText(K.changes.join("")),Fe.signal(v,"vim-mode-change",{mode:"normal"}),D.isRecording&&or(D)}function Wo(v){$n.unshift(v)}function xs(v,T,k,D,W){var z={keys:v,type:T};z[T]=k,z[T+"Args"]=D;for(var K in W)z[K]=W[K];Wo(z)}function Cs(v,T,k,D){var W=Be.registerController.getRegister(D);if(D==":"){W.keyBuffer[0]&&vr.processCommand(v,W.keyBuffer[0]),k.isPlaying=!1;return}var z=W.keyBuffer,K=0;k.isPlaying=!0,k.replaySearchQueries=W.searchQueries.slice(0);for(var Y=0;Y<z.length;Y++)for(var Q=z[Y],re,se;Q;)if(re=/<\w+-.+?>|<\w+>|./.exec(Q),se=re[0],Q=Q.substring(re.index+se.length),Ct.handleKey(v,se,"macro"),T.insertMode){var ye=W.insertModeChanges[K++].changes;Be.macroModeState.lastInsertModeChanges.changes=ye,Uo(v,ye,1),Gr(v)}k.isPlaying=!1}function Bo(v,T){if(!v.isPlaying){var k=v.latestRegister,D=Be.registerController.getRegister(k);D&&D.pushText(T)}}function or(v){if(!v.isPlaying){var T=v.latestRegister,k=Be.registerController.getRegister(T);k&&k.pushInsertModeChanges&&k.pushInsertModeChanges(v.lastInsertModeChanges)}}function ks(v,T){if(!v.isPlaying){var k=v.latestRegister,D=Be.registerController.getRegister(k);D&&D.pushSearchQuery&&D.pushSearchQuery(T)}}function po(v,T){var k=Be.macroModeState,D=k.lastInsertModeChanges;if(!k.isPlaying)for(var W=v.state.vim;T;){if(D.expectCursorActivityForChange=!0,D.ignoreCount>1)D.ignoreCount--;else if(T.origin=="+input"||T.origin=="paste"||T.origin===void 0){var z=v.listSelections().length;z>1&&(D.ignoreCount=z);var K=T.text.join(`
|
1404
|
-
`);if(D.maybeReset&&(D.changes=[],D.maybeReset=!1),K)if(v.state.overwrite&&!/\n/.test(K))D.changes.push([K]);else{if(K.length>1){var Y=W&&W.insertEnd&&W.insertEnd.find(),Q=v.getCursor();if(Y&&Y.line==Q.line){var re=Y.ch-Q.ch;re>0&&re<K.length&&(D.changes.push([K,re]),K="")}}K&&D.changes.push(K)}}T=T.next}}function zo(v){var T=v.state.vim;if(T.insertMode){var k=Be.macroModeState;if(k.isPlaying)return;var D=k.lastInsertModeChanges;D.expectCursorActivityForChange?D.expectCursorActivityForChange=!1:(D.maybeReset=!0,T.insertEnd&&T.insertEnd.clear(),T.insertEnd=v.setBookmark(v.getCursor(),{insertLeft:!0}))}else v.curOp.isVimOp||jo(v,T)}function jo(v,T,k){var D=v.getCursor("anchor"),W=v.getCursor("head");if(T.visualMode&&!v.somethingSelected()?St(v,!1):!T.visualMode&&!T.insertMode&&v.somethingSelected()&&(T.visualMode=!0,T.visualLine=!1,Fe.signal(v,"vim-mode-change",{mode:"visual"})),T.visualMode){var z=nt(W,D)?0:-1,K=nt(W,D)?-1:0;W=fe(W,0,z),D=fe(D,0,K),T.sel={anchor:D,head:W},ii(v,T,"<",pt(W,D)),ii(v,T,">",tn(W,D))}else!T.insertMode&&!k&&(T.lastHPos=v.getCursor().ch)}function Ji(v,T){this.keyName=v,this.key=T.key,this.ctrlKey=T.ctrlKey,this.altKey=T.altKey,this.metaKey=T.metaKey,this.shiftKey=T.shiftKey}function Ss(v){var T=Be.macroModeState,k=T.lastInsertModeChanges,D=Fe.keyName?Fe.keyName(v):v.key;D&&(D.indexOf("Delete")!=-1||D.indexOf("Backspace")!=-1)&&(k.maybeReset&&(k.changes=[],k.maybeReset=!1),k.changes.push(new Ji(D,v)))}function sa(v,T,k,D){function W(){Y?
|
1405
|
-
`)},goLineLeft:function(v){v.ace.selection.moveCursorLineStart()},goLineRight:function(v){v.ace.selection.moveCursorLineEnd()}},Fe.keyMap={},Fe.addClass=Fe.rmClass=function(){},Fe.e_stop=Fe.e_preventDefault=fo.stopEvent,Fe.keyName=function(v){var T=qa[v.keyCode]||v.key||"";return T.length==1&&(T=T.toUpperCase()),T=fo.getModifierString(v).replace(/(^|-)\w/g,function(k){return k.toUpperCase()})+T,T},Fe.keyMap.default=function(v){return function(T){var k=T.ace.commands.commandKeyBinding[v.toLowerCase()];return k&&T.ace.execCommand(k)!==!1}},Fe.lookupKey=function v(T,k,D){k||(k="default"),typeof k=="string"&&(k=Fe.keyMap[k]||Fe.keyMap.default);var W=typeof k=="function"?k(T):k[T];if(W===!1)return"nothing";if(W==="...")return"multi";if(W!=null&&D(W))return"handled";if(k.fallthrough){if(!Array.isArray(k.fallthrough))return v(T,k.fallthrough,D);for(var z=0;z<k.fallthrough.length;z++){var K=v(T,k.fallthrough[z],D);if(K)return K}}},Fe.findMatchingTag=function(v,T){return v.findMatchingTag(T)},Fe.findEnclosingTag=function(v,T){},Fe.signal=function(v,T,k){return v._signal(T,k)},Fe.on=fo.addListener,Fe.off=fo.removeListener,Fe.isWordChar=function(v){return v<""?/^\w$/.test(v):(la.lastIndex=0,la.test(v))},(function(){aa.implement(Fe.prototype,eo),this.destroy=function(){this.ace.off("change",this.onChange),this.ace.off("changeSelection",this.onSelectionChange),this.ace.off("beforeEndOperation",this.onBeforeEndOperation),this.removeOverlay()},this.virtualSelectionMode=function(){return this.ace.inVirtualSelectionMode&&this.ace.selection.index},this.onChange=function(k){this.$lineHandleChanges&&this.$lineHandleChanges.push(k);var D={text:k.action[0]=="i"?k.lines:[]},W=this.curOp=this.curOp||{};W.changeHandlers||(W.changeHandlers=this._eventRegistry.change&&this._eventRegistry.change.slice()),W.lastChange?W.lastChange.next=W.lastChange=D:W.lastChange=W.change=D,this.$updateMarkers(k)},this.onSelectionChange=function(){var k=this.curOp=this.curOp||{};k.cursorActivityHandlers||(k.cursorActivityHandlers=this._eventRegistry.cursorActivity&&this._eventRegistry.cursorActivity.slice()),this.curOp.cursorActivity=!0,this.ace.inMultiSelectMode&&this.ace.keyBinding.removeKeyboardHandler(vo.keyboardHandler)},this.operation=function(k,D){if(!D&&this.curOp||D&&this.curOp&&this.curOp.force)return k();if((D||!this.ace.curOp)&&this.curOp&&this.onBeforeEndOperation(),!this.ace.curOp){var W=this.ace.prevOp;this.ace.startOperation({command:{name:"vim",scrollIntoView:"cursor"}})}var z=this.curOp=this.curOp||{};this.curOp.force=D;var K=k();return this.ace.curOp&&this.ace.curOp.command.name=="vim"&&(this.state.dialog&&(this.ace.curOp.command.scrollIntoView=this.ace.curOp.vimDialogScroll),this.ace.endOperation(),!z.cursorActivity&&!z.lastChange&&W&&(this.ace.prevOp=W)),(D||!this.ace.curOp)&&this.curOp&&this.onBeforeEndOperation(),K},this.onBeforeEndOperation=function(){var k=this.curOp;k&&(k.change&&this.signal("change",k.change,k),k&&k.cursorActivity&&this.signal("cursorActivity",null,k),this.curOp=null)},this.signal=function(k,D,W){var z=W?W[k+"Handlers"]:(this._eventRegistry||{})[k];if(z){z=z.slice();for(var K=0;K<z.length;K++)z[K](this,D)}},this.firstLine=function(){return 0},this.lastLine=function(){return this.ace.session.getLength()-1},this.lineCount=function(){return this.ace.session.getLength()},this.setCursor=function(k,D){typeof k=="object"&&(D=k.ch,k=k.line);var W=!this.curOp&&!this.ace.inVirtualSelectionMode;this.ace.inVirtualSelectionMode||this.ace.exitMultiSelectMode(),this.ace.session.unfold({row:k,column:D}),this.ace.selection.moveTo(k,D),W&&(this.ace.renderer.scrollCursorIntoView(),this.ace.endOperation())},this.getCursor=function(k){var D=this.ace.selection,W=k=="anchor"?D.isEmpty()?D.lead:D.anchor:k=="head"||!k?D.lead:D.getRange()[k];return y(W)},this.listSelections=function(k){var D=this.ace.multiSelect.rangeList.ranges;return!D.length||this.ace.inVirtualSelectionMode?[{anchor:this.getCursor("anchor"),head:this.getCursor("head")}]:D.map(function(W){return{anchor:this.clipPos(y(W.cursor==W.end?W.start:W.end)),head:this.clipPos(y(W.cursor))}},this)},this.setSelections=function(k,D){var W=this.ace.multiSelect,z=k.map(function(re){var se=p(re.anchor),ye=p(re.head),Ce=
|
1406
|
-
`,K=!1);var Y=new ji;D.ch==null&&(D.ch=Number.MAX_VALUE);var Q={row:D.line,column:D.ch},re=this,se=null;return{findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(ye){Y.setOptions({needle:k,caseSensitive:z,wrap:!1,backwards:ye,regExp:K,start:se||Q});var Ce=Y.find(re.ace.session);return se=Ce,se&&[!se.isEmpty()]},from:function(){return se&&y(se.start)},to:function(){return se&&y(se.end)},replace:function(ye){se&&(se.end=re.ace.session.doc.replace(se,ye))}}},this.scrollTo=function(k,D){var W=this.ace.renderer,z=W.layerConfig,K=z.maxHeight;K-=(W.$size.scrollerHeight-W.lineHeight)*W.$scrollPastEnd,D!=null&&this.ace.session.setScrollTop(Math.max(0,Math.min(D,K))),k!=null&&this.ace.session.setScrollLeft(Math.max(0,Math.min(k,z.width)))},this.scrollInfo=function(){return 0},this.scrollIntoView=function(k,D){if(k){var W=this.ace.renderer,z={top:0,bottom:D};W.scrollCursorIntoView(p(k),W.lineHeight*2/W.$size.scrollerHeight,z)}},this.getLine=function(k){return this.ace.session.getLine(k)},this.getRange=function(k,D){return this.ace.session.getTextRange(new
|
1396
|
+
`+f):e.stack=f}catch{}}throw e}}_request(n,t){typeof n=="string"?(t=t||{},t.url=n):t=n||{},t=os(this.defaults,t);const{transitional:e,paramsSerializer:r,headers:f}=t;e!==void 0&&_l.assertOptions(e,{silentJSONParsing:Ki.transitional(Ki.boolean),forcedJSONParsing:Ki.transitional(Ki.boolean),clarifyTimeoutError:Ki.transitional(Ki.boolean)},!1),r!=null&&(Ae.isFunction(r)?t.paramsSerializer={serialize:r}:_l.assertOptions(r,{encode:Ki.function,serialize:Ki.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),_l.assertOptions(t,{baseUrl:Ki.spelling("baseURL"),withXsrfToken:Ki.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let p=f&&Ae.merge(f.common,f[t.method]);f&&Ae.forEach(["delete","get","head","post","put","patch","common"],a=>{delete f[a]}),t.headers=Hr.concat(p,f);const y=[];let b=!0;this.interceptors.request.forEach(function(a){typeof a.runWhen=="function"&&a.runWhen(t)===!1||(b=b&&a.synchronous,y.unshift(a.fulfilled,a.rejected))});const h=[];this.interceptors.response.forEach(function(a){h.push(a.fulfilled,a.rejected)});let g,s=0,l;if(!b){const a=[Eg.bind(this),void 0];for(a.unshift.apply(a,y),a.push.apply(a,h),l=a.length,g=Promise.resolve(t);s<l;)g=g.then(a[s++],a[s++]);return g}l=y.length;let u=t;for(s=0;s<l;){const a=y[s++],o=y[s++];try{u=a(u)}catch(c){o.call(this,c);break}}try{g=Eg.call(this,u)}catch(a){return Promise.reject(a)}for(s=0,l=h.length;s<l;)g=g.then(h[s++],h[s++]);return g}getUri(n){n=os(this.defaults,n);const t=Cg(n.baseURL,n.url,n.allowAbsoluteUrls);return pg(t,n.params,n.paramsSerializer)}};Ae.forEach(["delete","get","head","options"],function(n){ss.prototype[n]=function(t,e){return this.request(os(e||{},{method:n,url:t,data:(e||{}).data}))}}),Ae.forEach(["post","put","patch"],function(n){function t(e){return function(r,f,p){return this.request(os(p||{},{method:n,headers:e?{"Content-Type":"multipart/form-data"}:{},url:r,data:f}))}}ss.prototype[n]=t(),ss.prototype[n+"Form"]=t(!0)});let w1=class wb{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let e;this.promise=new Promise(function(f){e=f});const r=this;this.promise.then(f=>{if(!r._listeners)return;let p=r._listeners.length;for(;p-- >0;)r._listeners[p](f);r._listeners=null}),this.promise.then=f=>{let p;const y=new Promise(b=>{r.subscribe(b),p=b}).then(f);return y.cancel=function(){r.unsubscribe(p)},y},t(function(f,p,y){r.reason||(r.reason=new js(f,p,y),e(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);e!==-1&&this._listeners.splice(e,1)}toAbortSignal(){const t=new AbortController,e=r=>{t.abort(r)};return this.subscribe(e),t.signal.unsubscribe=()=>this.unsubscribe(e),t.signal}static source(){let t;return{token:new wb(function(e){t=e}),cancel:t}}};function b1(n){return function(t){return n.apply(null,t)}}function x1(n){return Ae.isObject(n)&&n.isAxiosError===!0}const fu={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(fu).forEach(([n,t])=>{fu[t]=n});function Og(n){const t=new ss(n),e=Zp(ss.prototype.request,t);return Ae.extend(e,ss.prototype,t,{allOwnKeys:!0}),Ae.extend(e,t,null,{allOwnKeys:!0}),e.create=function(r){return Og(os(n,r))},e}const Bn=Og(Sa);Bn.Axios=ss,Bn.CanceledError=js,Bn.CancelToken=w1,Bn.isCancel=yg,Bn.VERSION=Rg,Bn.toFormData=bl,Bn.AxiosError=It,Bn.Cancel=Bn.CanceledError,Bn.all=function(n){return Promise.all(n)},Bn.spread=b1,Bn.isAxiosError=x1,Bn.mergeConfig=os,Bn.AxiosHeaders=Hr,Bn.formToJSON=n=>mg(Ae.isHTMLForm(n)?new FormData(n):n),Bn.getAdapter=Ig.getAdapter,Bn.HttpStatusCode=fu,Bn.default=Bn;const{Axios:GN,AxiosError:YN,CanceledError:XN,isCancel:QN,CancelToken:ZN,VERSION:JN,all:e2,Cancel:t2,isAxiosError:n2,spread:r2,toFormData:i2,AxiosHeaders:o2,HttpStatusCode:s2,formToJSON:a2,getAdapter:l2,mergeConfig:c2}=Bn,mu=Bn.create({baseURL:location.origin,timeout:6e4,params:{}});mu.interceptors.response.use(n=>n,n=>{var t,e,r,f,p,y,b,h,g,s,l;if(n.response){if(n.response.status===401&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0).then(function(o){o&&OpenC3Auth.setTokens()}),n.response.config.headers["Ignore-Errors"]&&n.response.config.headers["Ignore-Errors"].includes(n.response.status.toString()))return Promise.reject(n);let u=`HTTP ${n.response.status} - `;(t=n.response)!=null&&t.statusText&&(u+=`${n.response.statusText} `),(r=(e=n.response)==null?void 0:e.config)!=null&&r.data&&(u+=`${n.response.config.data} `),(p=(f=n.response)==null?void 0:f.data)!=null&&p.message?u+=`${n.response.data.message}`:(b=(y=n.response)==null?void 0:y.data)!=null&&b.exception?u+=`${n.response.data.exception}`:(s=(g=(h=n.response)==null?void 0:h.data)==null?void 0:g.error)!=null&&s.message?(n.response.data.error.class&&(u+=`${n.response.data.error.class} `),u+=`${n.response.data.error.message}`):u+=`${(l=n.response)==null?void 0:l.data}`;const{$cosmosNotify:a}=window;throw a&&a.serious({title:"Network error",body:u}),n}else throw n});const Tl=async function(n,t,{data:e,params:r={},headers:f,noAuth:p=!1,noScope:y=!1,onUploadProgress:b=!1}={}){if(!p){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch{OpenC3Auth.login()}f.Authorization=localStorage.openc3Token}return f.manual=!0,!y&&!r.scope&&(r.scope=window.openc3Scope),mu({method:n,url:t,data:e,params:r,headers:f,onUploadProgress:b})},vu={Accept:"application/json"},Ng={...vu,"Content-Type":"application/json"},u2=tr("F",{get:function(n,{params:t,headers:e=vu,noScope:r,noAuth:f,onUploadProgress:p}={}){return Tl("get",n,{params:t,headers:e,noScope:r,noAuth:f,onUploadProgress:p})},put:function(n,{data:t,params:e,headers:r=Ng,noScope:f,noAuth:p,onUploadProgress:y}={}){return Tl("put",n,{data:t,params:e,headers:r,noScope:f,noAuth:p,onUploadProgress:y})},post:function(n,{data:t,params:e,headers:r=Ng,noScope:f,noAuth:p,onUploadProgress:y}={}){return Tl("post",n,{data:t,params:e,headers:r,noScope:f,noAuth:p,onUploadProgress:y})},delete:function(n,{params:t,headers:e=vu,noScope:r,noAuth:f,onUploadProgress:p}={}){return Tl("delete",n,{params:t,headers:e,noScope:r,noAuth:f,onUploadProgress:p})}});let $l=()=>({emit(n,...t){for(let e=this.events[n]||[],r=0,f=e.length;r<f;r++)e[r](...t)},events:{},on(n,t){var e;return((e=this.events)[n]||(e[n]=[])).push(t),()=>{var r;this.events[n]=(r=this.events[n])==null?void 0:r.filter(f=>t!==f)}}});class _a extends Error{constructor(t,e){t instanceof Error?(super(t.message),this.cause=t):super(t),this.reason=e,this.name="ReasonError"}}class yu extends _a{constructor(t){super("Rejected",t),this.name="SubscriptionRejectedError"}}class C1 extends _a{constructor(t){super(t||"Timed out to receive subscription ack"),this.name="SubscriptionTimeoutError"}}class Ei extends _a{constructor(t,e){e?super(t,e):super("Disconnected",t),this.name="DisconnectedError"}}class k1 extends Ei{constructor(t){super(t,"stale_connection"),this.name="StaleConnectionError"}}function Dg(n){return n?`{${Object.keys(n).sort().filter(t=>n[t]!==void 0).map(t=>{let e=JSON.stringify(n[t]);return`${JSON.stringify(t)}:${e}`}).join(",")}}`:""}class S1{constructor(t){this.channel=t,this.listeners=[]}watch(){this.listeners.push(this.channel.on("presence",t=>{if(t.type==="info"){this._state||(this._state=this.stateFromInfo(t));return}this._state&&(t.type==="join"?this._state[t.id]=t.info:t.type==="leave"&&delete this._state[t.id])}))}reset(){delete this._state}dispose(){delete this._info,delete this._state,this.listeners.forEach(t=>t()),this.listeners.length=0}async join(t,e){if(!this._info)return this._info={id:t,info:e},this.channel.perform("$presence:join",this._info)}async leave(){if(!this._info)return;let t=await this.channel.perform("$presence:leave");return delete this._info,t}async info(){return this._state?this._state:(this._promise||(this._promise=this._sync()),await this._promise,this._state)}async _sync(){this.watch();try{let t=await this.channel.perform("$presence:info",{});return this._state=this.stateFromInfo(t),this._state}finally{delete this._promise}}stateFromInfo(t){return t.records.reduce((e,{id:r,info:f})=>(e[r]=f,e),{})}}const as=Symbol("state");class Pg{constructor(t={}){this.emitter=$l(),this.params=Object.freeze(t),this.presence=new S1(this),this.initialConnect=!0,this[as]="idle"}get identifier(){return this._identifier?this._identifier:(this._identifier=Dg({channel:this.channelId,...this.params}),this._identifier)}get channelId(){return this.constructor.identifier}get state(){return this[as]}attached(t){if(this.receiver){if(this.receiver!==t)throw Error("Already connected to a different receiver");return!1}return this.receiver=t,!0}connecting(){this[as]="connecting"}connected(){if(this.state==="connected"||this.state==="closed")return;this[as]="connected";let t=!1;this.initialConnect?(this.initialConnect=!1,this.emit("connect",{reconnect:!1,restored:t})):this.emit("connect",{reconnect:!0,restored:t})}restored(){if(this.state==="connected")throw Error("Already connected");this[as]="connected";let t=!0,e=!0;this.initialConnect=!1,this.emit("connect",{reconnect:e,restored:t})}disconnected(t){this.state==="disconnected"||this.state==="closed"||(this[as]="disconnected",this.presence.reset(),this.emit("disconnect",t))}closed(t){this.state!=="closed"&&(this[as]="closed",delete this.receiver,this.initialConnect=!0,this.presence.dispose(),this.emit("close",t))}disconnect(){this.state==="idle"||this.state==="closed"||this.receiver.unsubscribe(this)}async perform(t,e){if(this.state==="idle"||this.state==="closed")throw Error("Channel is not subscribed");return this.receiver.perform(this.identifier,t,e)}async send(t){return this.perform(void 0,t)}async whisper(t){try{await this.perform("$whisper",t)}catch(e){let r=this.receiver?this.receiver.logger:null;r&&r.warn("whisper failed: ",e)}}receive(t,e){this.emit("message",t,e)}on(t,e){return this.emitter.on(t,e)}once(t,e){let r=this.emitter.on(t,(...f)=>{r(),e(...f)});return r}emit(t,...e){return this.emitter.emit(t,...e)}ensureSubscribed(){return this.state==="connected"?Promise.resolve():this.state==="closed"?Promise.reject(Error("Channel is unsubscribed")):this.pendingSubscribe()}pendingSubscribe(){return this._pendingSubscribe?this._pendingSubscribe:(this._pendingSubscribe=new Promise((t,e)=>{let r=[()=>delete this._pendingSubscribe];r.push(this.on("connect",()=>{r.forEach(f=>f()),t()})),r.push(this.on("close",f=>{r.forEach(p=>p()),e(f||new _a("Channel was disconnected before subscribing","canceled"))}))}),this._pendingSubscribe)}}class A1{constructor(t){this.id=t,this.intent="unsubscribed",this.state="idle",this.channels=[],this.disposed=!1,this._pendings=[]}add(t){this.channels.includes(t)||this.channels.push(t)}remove(t){let e=this.channels.indexOf(t);e>-1&&this.channels.splice(e,1)}notify(t,...e){this.state=t==="restored"?"connected":t,e.length===1?this.channels.forEach(r=>r[t](e[0])):this.channels.forEach(r=>r[t]())}pending(t){this._checkIntent(t);let e=this._pendings[0];return!e||e.intent!==t?Promise.resolve():e.promise}ensureResubscribed(){this.disposed||(this.intent=void 0,this.ensureSubscribed())}ensureSubscribed(){if(this.intent!=="subscribed"){if(this.disposed)throw Error("Subscription is disposed");this.intent="subscribed",!this._mergeWithPending("unsubscribed")&&this.subscriber(this)}}maybeUnsubscribe(){this.disposed||this.intent==="unsubscribed"||this.channels.length>0||(this.intent="unsubscribed",this._mergeWithPending("subscribed"))||this.unsubscriber(this)}async acquire(t){this._checkIntent(t);let e,r={promise:new Promise(p=>{e=p}),intent:t,release:()=>{this._pendings.splice(this._pendings.indexOf(r),1),e(r)},canceled:!1,acquired:!1},f=this._pendingTop;return this._pendings.push(r),f&&await f.promise,this.gvl&&await this.gvl.acquire(r,t),r.acquired=!0,r}close(t){this.disposed=!0,this.intent=void 0,this.notify("closed",t)}_checkIntent(t){if(!(t==="unsubscribed"||t==="subscribed"))throw Error(`Unknown subscription intent: ${t}`)}get _pendingTop(){return this._pendings.length?this._pendings[this._pendings.length-1]:void 0}_mergeWithPending(t){let e=this._pendingTop;return!e||e.acquired||e.intent!==t?!1:(this._pendings.pop(),e.canceled=!0,!0)}}class _1{constructor(){this.queue=[]}async acquire(t,e){e==="subscribed"&&(this.queue.push(t.promise.then(()=>{this.queue.splice(this.queue.indexOf(t),1)})),this.queue.length>1&&await this.queue[this.queue.length-2])}}class T1{constructor(t){t.concurrentSubscribes===!1&&(this.glv=new _1),this._subscriptions={},this._localToRemote={}}all(){return Object.values(this._subscriptions)}get(t){return this._subscriptions[t]}create(t,{subscribe:e,unsubscribe:r}){let f=this._subscriptions[t]=new A1(t);return f.remoteId=this._localToRemote[t],f.subscriber=e,f.unsubscriber=r,f.gvl=this.glv,f}remove(t){delete this._subscriptions[t],delete this._localToRemote[t]}storeRemoteId(t,e){this._localToRemote[t]=e;let r=this.get(t);r&&(r.remoteId=e)}}class $1{constructor(t={}){this.subscriptions=new T1(t),this._pendingMessages=[],this._remoteToLocal={}}subscribe(t,e){this._remoteToLocal[e]=t,this.subscriptions.storeRemoteId(t,e),this.flush(e)}unsubscribe(t){let e=this.subscriptions.get(t);if(!e)return;let r=e.remoteId;r&&delete this._remoteToLocal[r],this.subscriptions.remove(t)}transmit(t,e,r){let f=this._remoteToLocal[t];if(!f){this._pendingMessages.push([t,e,r]);return}let p=this.subscriptions.get(f);p&&p.channels.forEach(y=>{y.receive(e,r)})}notify(t,e,r){let f=this._remoteToLocal[t];if(!f)return;let p=this.subscriptions.get(f);p&&p.channels.forEach(y=>y.emit(e,r))}close(){this._pendingMessages.length=0}get size(){return this.channels.length}get channels(){return this.subscriptions.all().flatMap(t=>t.channels)}flush(t){let e=[];for(let r of this._pendingMessages)r[0]===t?this.transmit(r[0],r[1],r[2]):e.push(r);this._pendingMessages=e}}const Fg={debug:0,info:1,warn:2,error:3};class Wg{constructor(t){this.level=t||"warn"}log(t,e,r){Fg[t]<Fg[this.level]||this.writeLogEntry(t,e,r)}writeLogEntry(){throw Error("Not implemented")}debug(t,e){this.log("debug",t,e)}info(t,e){this.log("info",t,e)}warn(t,e){this.log("warn",t,e)}error(t,e){this.log("error",t,e)}}class Ta extends Wg{writeLogEntry(){}}class M1{encode(t){return JSON.stringify(t)}decode(t){try{return JSON.parse(t)}catch{}}}let I1=0;class Bg{constructor(t={}){let{logger:e}=t;this.logger=e||new Ta,this.pendingSubscriptions={},this.pendingUnsubscriptions={},this.subscribeCooldownInterval=t.subscribeCooldownInterval||250,this.subscribeRetryInterval=t.subscribeRetryInterval||5e3}attached(t){this.cable=t}subscribe(t,e){let r={channel:t};e&&Object.assign(r,e);let f=Dg(r);if(this.pendingUnsubscriptions[f]){let y=this.subscribeCooldownInterval*1.5;return this.logger.debug(`unsubscribed recently, cooldown for ${y}`,f),new Promise(b=>{setTimeout(()=>{b(this.subscribe(t,e))},y)})}if(this.pendingSubscriptions[f])return this.logger.warn("subscription is already pending, skipping",f),Promise.reject(Error("Already subscribing"));let p=this.subscribeRetryInterval;return new Promise((y,b)=>{let h=++I1;this.pendingSubscriptions[f]={resolve:y,reject:b,id:h},this.cable.send(this.buildSubscribeRequest(f)),this.maybeRetrySubscribe(h,f,p)})}buildSubscribeRequest(t){return{command:"subscribe",identifier:t}}maybeRetrySubscribe(t,e,r){setTimeout(()=>{let f=this.pendingSubscriptions[e];f&&f.id===t&&(this.logger.warn(`no subscription ack received in ${r}ms, retrying subscribe`,e),this.cable.send(this.buildSubscribeRequest(e)),this.maybeExpireSubscribe(t,e,r))},r)}maybeExpireSubscribe(t,e,r){setTimeout(()=>{let f=this.pendingSubscriptions[e];f&&f.id===t&&(delete this.pendingSubscriptions[e],f.reject(new C1(`Haven't received subscription ack in ${r*2}ms for ${e}`)))},r)}unsubscribe(t){return this.cable.send({command:"unsubscribe",identifier:t}),this.pendingUnsubscriptions[t]=!0,setTimeout(()=>{delete this.pendingUnsubscriptions[t]},this.subscribeCooldownInterval),Promise.resolve()}perform(t,e,r){return e==="$whisper"?this.whisper(t,r):(r||(r={}),r.action=e,this.cable.send({command:"message",identifier:t,data:JSON.stringify(r)}),Promise.resolve())}whisper(t,e){return this.cable.send({command:"whisper",identifier:t,data:e}),Promise.resolve()}receive(t){if(typeof t!="object"){this.logger.error("unsupported message format",{message:t});return}let{type:e,identifier:r,message:f,reason:p,reconnect:y}=t;if(e==="ping")return this.cable.keepalive(t.message);if(this.cable.keepalive(),e==="welcome"){let b=t.sid;return b&&this.cable.setSessionId(b),this.cable.connected()}if(e==="disconnect"){let b=new Ei(p);this.reset(b),y===!1?this.cable.closed(b):this.cable.disconnected(b);return}if(e==="confirm_subscription"){let b=this.pendingSubscriptions[r];if(!b){this.logger.error("subscription not found, unsubscribing",{type:e,identifier:r}),this.unsubscribe(r);return}return delete this.pendingSubscriptions[r],b.resolve(r)}if(e==="reject_subscription"){let b=this.pendingSubscriptions[r];return b?(delete this.pendingSubscriptions[r],b.reject(new yu)):this.logger.error("subscription not found",{type:e,identifier:r})}if(f)return{identifier:r,message:f};this.logger.warn(`unknown message type: ${e}`,{message:t})}reset(t){for(let e in this.pendingSubscriptions)this.pendingSubscriptions[e].reject(t);this.pendingSubscriptions={}}recoverableClosure(){return!1}}const zg=()=>Date.now()/1e3|0;class E1 extends Bg{constructor(t={}){super(t),this.streamsPositions={},this.subscriptionStreams={},this.pendingHistory={},this.pendingPresence={},this.presenceInfo={},this.restoreSince=t.historyTimestamp,this.disableSessionRecovery=t.disableSessionRecovery,this.restoreSince===void 0&&(this.restoreSince=zg()),this.sessionId=void 0,this.sendPongs=t.pongs}reset(t){for(let e in this.pendingPresence)this.pendingPresence[e].reject(t);return this.pendingPresence={},super.reset()}receive(t){if(typeof t!="object"){this.logger.error("unsupported message format",{message:t});return}let{type:e,identifier:r,message:f}=t;if(e==="disconnect")return delete this.sessionId,this.cable.setSessionId(""),super.receive(t);if(e==="reject_subscription")return super.receive(t);if(e==="confirm_subscription")return this.subscriptionStreams[r]||(this.subscriptionStreams[r]=new Set),super.receive(t);if(e==="ping")return this.restoreSince&&(this.restoreSince=zg()),this.sendPongs&&this.sendPong(),this.cable.keepalive(t.message);if(this.cable.keepalive(),e==="confirm_history"){this.logger.debug("history result received",t),this.cable.notify("history_received",r);return}if(e==="reject_history"){this.logger.warn("failed to retrieve history",t),this.cable.notify("history_not_found",r);return}if(e==="welcome"){if(this.disableSessionRecovery||(this.sessionId=t.sid,this.sessionId&&this.cable.setSessionId(this.sessionId)),t.restored){let p=t.restored_ids||Object.keys(this.subscriptionStreams);for(let y of p)this.cable.send({identifier:y,command:"history",history:this.historyRequestFor(y)}),this.presenceInfo[y]&&this.cable.send({identifier:y,command:"join",presence:this.presenceInfo[y]});return this.cable.restored(p)}return this.cable.connected(this.sessionId)}if(e==="presence"){let p=f.type;if(p==="info"){let y=this.pendingPresence[r];y&&(delete this.pendingPresence[r],y.resolve(f))}else if(p==="error"){let y=this.pendingPresence[r];y&&(delete this.pendingPresence[r],y.reject(new Error("failed to retrieve presence")))}return{type:e,identifier:r,message:f}}if(f){let p=this.trackStreamPosition(r,t.stream_id,t.epoch,t.offset);return{identifier:r,message:f,meta:p}}this.logger.warn(`unknown message type: ${e}`,{message:t})}perform(t,e,r){switch(e){case"$presence:join":return this.join(t,r);case"$presence:leave":return this.leave(t,r);case"$presence:info":return this.presence(t,r)}return super.perform(t,e,r)}unsubscribe(t){return delete this.presenceInfo[t],super.unsubscribe(t)}buildSubscribeRequest(t){let e=super.buildSubscribeRequest(t),r=this.historyRequestFor(t);r&&(e.history=r,this.pendingHistory[t]=!0);let f=this.presenceInfo[t];return f&&(e.presence=f),e}recoverableClosure(){return!!this.sessionId}historyRequestFor(t){let e={},r=!1;if(this.subscriptionStreams[t])for(let f of this.subscriptionStreams[t]){let p=this.streamsPositions[f];p&&(r=!0,e[f]=p)}if(!(!r&&!this.restoreSince))return{since:this.restoreSince,streams:e}}trackStreamPosition(t,e,r,f){if(!(!e||!r))return this.subscriptionStreams[t]||(this.subscriptionStreams[t]=new Set),this.subscriptionStreams[t].add(e),this.streamsPositions[e]={epoch:r,offset:f},{stream:e,epoch:r,offset:f}}async sendPong(){await new Promise(t=>setTimeout(t,0)),this.cable.state==="connected"&&this.cable.send({command:"pong"})}async join(t,e){return this.presenceInfo[t]=e,this.cable.send({command:"join",identifier:t,presence:e}),Promise.resolve()}async leave(t,e){return delete this.presenceInfo[t],this.cable.send({command:"leave",identifier:t,presence:e}),Promise.resolve()}presence(t,e){return this.pendingPresence[t]?(this.logger.warn("presence is already pending, skipping",t),Promise.reject(Error("presence request is already pending"))):new Promise((r,f)=>{this.pendingPresence[t]={resolve:r,reject:f},this.cable.send({command:"presence",identifier:t,data:e})})}}class R1 extends _a{constructor(){super("No connection","closed"),this.name="NoConnectionError"}}class wu extends Pg{constructor(t,e){super(e),this.channelId=t}set channelId(t){this._channelId=t}get channelId(){return this._channelId}}gl(wu,"identifier","__ghost__");const L1="$pubsub";class bu extends Pg{async perform(t,e){if(t.startsWith("$"))return super.perform(t,e);throw Error("not implemented")}}gl(bu,"identifier",L1);const ls=Symbol("state");let O1=class{constructor({transport:n,protocol:t,encoder:e,logger:r,lazy:f,hubOptions:p,performFailures:y,transportConfigurator:b}){this.emitter=$l(),this.transport=n,this.encoder=e,this.logger=r||new Ta,this.protocol=t,this.performFailures=y||"throw",this.protocol.attached(this),this.hub=new $1(p||{}),this[ls]="idle",this.handleClose=this.handleClose.bind(this),this.handleIncoming=this.handleIncoming.bind(this),this.transportConfigurator=b,this.transport.on("close",this.handleClose),this.transport.on("data",this.handleIncoming),this.initialConnect=!0,this.recovering=!1,f===!1&&this.connect().catch(()=>{})}get state(){return this[ls]}async connect(){if(this.state==="connected")return Promise.resolve();if(this.state==="connecting")return this.pendingConnect();let n=this.state==="idle";this[ls]="connecting";let t=this.pendingConnect();this.logger.debug("connecting");try{this.transportConfigurator&&await this.transportConfigurator(this.transport,{initial:n}),await this.transport.open()}catch(e){this.handleClose(e)}return t}setSessionId(n){this.sessionId=n,this.transport.setParam("sid",n)}connected(){if(this.state==="connected")return;this.logger.info("connected"),this[ls]="connected",this.recovering&&this.hub.subscriptions.all().forEach(t=>t.notify("disconnected",new Ei("recovery_failed"))),this.hub.subscriptions.all().forEach(t=>this._resubscribe(t));let n=!1;this.recovering=!1,this.initialConnect?(this.initialConnect=!1,this.emit("connect",{reconnect:!1,restored:n})):this.emit("connect",{reconnect:!0,restored:n})}restored(n){this.logger.info("connection recovered",{remoteIds:n}),this[ls]="connected",this.hub.subscriptions.all().forEach(r=>{n&&r.remoteId&&n.includes(r.remoteId)?r.notify("restored"):(r.notify("disconnected",new Ei("recovery_failed")),this._resubscribe(r))});let t=!this.initialConnect,e=!0;this.recovering=!1,this.initialConnect=!1,this.emit("connect",{reconnect:t,restored:e})}notify(n,t,e){t&&typeof t!="string"&&(e=t,t=void 0),t?this.hub.notify(t,"info",{type:n,data:e}):this.emit("info",{type:n,data:e})}handleClose(n){this.logger.debug("transport closed",{error:n}),this.disconnected(new Ei(n,"transport_closed"))}disconnected(n){(this.state==="connected"||this.state==="connecting")&&(this.logger.info("disconnected",{reason:n}),this[ls]="disconnected",this.recovering=this.protocol.recoverableClosure(n),this.recovering?this.hub.subscriptions.all().forEach(t=>t.notify("connecting")):this.hub.subscriptions.all().forEach(t=>{t.notify("disconnected",n)}),this.protocol.reset(n),this.hub.close(),this.transport.close(),this.emit("disconnect",n))}closed(n){if(this.state==="closed"||this.state==="idle")return;let t;n&&(t=n instanceof Ei?n:new Ei(n,void 0)),this.logger.info("closed",{reason:n||"user"}),this[ls]="closed";let e=t||new Ei("cable_closed");this.hub.subscriptions.all().forEach(r=>r.notify("disconnected",e)),this.hub.close(),this.protocol.reset(),this.transport.close(),this.initialConnect=!0,this.emit("close",t)}disconnect(){this.closed()}handleIncoming(n){if(this.state==="closed"||this.state==="idle")return;let t=this.encoder.decode(n);if(t===void 0){this.logger.error("failed to decode message",{message:n});return}this.logger.debug("incoming data",t);let e=this.protocol.receive(t);if(e){this.logger.debug("processed incoming message",e);let{type:r,identifier:f,message:p,meta:y}=e;r?this.hub.notify(f,r,p):this.hub.transmit(f,p,y)}}send(n){if(this.state==="closed")throw Error("Cable is closed");let t=this.encoder.encode(n);if(t===void 0){this.logger.error("failed to encode message",{message:n});return}this.logger.debug("outgoing message",n),this.transport.send(t)}keepalive(n){this.emit("keepalive",n)}streamFrom(n){let t=new bu({stream_name:n});return this.subscribe(t)}streamFromSigned(n){let t=new bu({signed_stream_name:n});return this.subscribe(t)}subscribeTo(n,t){let e,r;return typeof n=="string"&&(r=n,n=wu),e=r?new n(r,t):new n(t),this.subscribe(e)}subscribe(n){if(!n.attached(this))return n;let t=n.identifier;n.connecting();let e=this.hub.subscriptions.get(t)||this.hub.subscriptions.create(t,{subscribe:r=>this._subscribe(r,n.channelId,n.params),unsubscribe:r=>this._unsubscribe(r)});return e.add(n),e.intent==="subscribed"&&e.state==="connected"&&n.connected(),e.ensureSubscribed(),n}async _resubscribe(n){n.intent!=="subscribed"||!n.channels[0]||(n.notify("connecting"),n.ensureResubscribed())}async _subscribe(n,t,e){let r=n.id;if(this.state==="idle"&&this.connect().catch(()=>{}),this.state!=="connected"){this.logger.debug("cancel subscribe, no connection",{identifier:r});return}this.logger.debug("acquiring subscribe lock",{identifier:r});let f=await n.acquire("subscribed");if(f.canceled){this.logger.debug("subscribe lock has been canceled",{identifier:r}),f.release();return}if(this.logger.debug("subscribe lock has been acquired",{identifier:r}),n.intent!=="subscribed"){this.logger.debug("cancel subscribe request, already unsubscribed"),f.release();return}if(this.state!=="connected"){this.logger.debug("cancel subscribe, no connection",{identifier:r}),f.release();return}if(n.state==="connected"){this.logger.debug("already connected, skip subscribe command",{identifier:r}),n.notify("connected"),f.release();return}let p={identifier:t,params:e};this.logger.debug("subscribing",p);try{let y=await this.protocol.subscribe(t,e);this.hub.subscribe(r,y),this.logger.debug("subscribed",{...p,remoteId:y}),n.notify("connected")}catch(y){if(y){if(y instanceof yu&&this.logger.warn("rejected",p),y instanceof Ei){this.logger.debug("disconnected during subscription; will retry on connect",p),f.release();return}this.logger.error("failed to subscribe",{error:y,...p})}n.close(y),this.hub.unsubscribe(r)}f.release()}unsubscribe(n){let t=n.identifier,e=this.hub.subscriptions.get(t);if(!e)throw Error(`Subscription not found: ${t}`);e.remove(n),n.closed(),e.maybeUnsubscribe()}async _unsubscribe(n){let t=n.id;this.logger.debug("acquiring unsubscribe lock",{identifier:t});let e=await n.acquire("unsubscribed");if(e.canceled){this.logger.debug("unsubscribe lock has been canceled",{identifier:t}),e.release();return}if(this.logger.debug("unsubscribe lock has been acquired",{identifier:t}),n.intent!=="unsubscribed"){this.logger.debug("cancel unsubscribe, no longer needed",{identifier:t,intent:n.intent}),e.release();return}if(n.state==="disconnected"||n.state==="closed"){this.logger.debug(`already ${n.state} connected, skip unsubscribe command`,{identifier:t}),e.release();return}let r=n.remoteId;if(this.logger.debug("unsubscribing...",{remoteId:r}),this.state!=="connected"){this.logger.debug("unsubscribe skipped (cable is not connected)",{id:t}),n.close(),this.hub.unsubscribe(t),e.release();return}try{await this.protocol.unsubscribe(r),this.logger.debug("unsubscribed remotely",{id:t})}catch(f){f&&(f instanceof Ei?this.logger.debug("cable disconnected during the unsubscribe command execution",{id:t,error:f}):this.logger.error("unsubscribe failed",{id:t,error:f}))}n.intent==="unsubscribed"?(n.close(),this.hub.unsubscribe(t)):n.state="closed",e.release()}async perform(n,t,e){if(this.performFailures==="throw")return this._perform(n,t,e);try{return await this._perform(n,t,e)}catch(r){this.performFailures==="warn"&&this.logger.warn("perform failed",{error:r});return}}async _perform(n,t,e){if(this.state==="connecting"&&await this.pendingConnect(),this.state==="closed"||this.state==="disconnected")throw new R1;let r=this.hub.subscriptions.get(n);if(!r)throw Error(`Subscription not found: ${n}`);if(await r.pending("subscribed"),r.intent!=="subscribed")throw Error(`Subscription is closed: ${n}`);let f=r.remoteId,p={id:f,action:t,payload:e};this.logger.debug("perform",p);try{let y=await this.protocol.perform(f,t,e);return y&&this.logger.debug("perform result",{message:y,request:p}),y}catch(y){throw this.logger.error("perform failed",{error:y,request:p}),y}}on(n,t){return this.emitter.on(n,t)}once(n,t){let e=this.emitter.on(n,(...r)=>{e(),t(...r)});return e}emit(n,...t){return this.emitter.emit(n,...t)}pendingConnect(){return this._pendingConnect?this._pendingConnect:(this._pendingConnect=new Promise((n,t)=>{let e=[()=>delete this._pendingConnect];e.push(this.on("connect",()=>{e.forEach(r=>r()),n()})),e.push(this.on("close",r=>{e.forEach(f=>f()),t(r)})),e.push(this.on("disconnect",r=>{e.forEach(f=>f()),t(r)}))}),this._pendingConnect)}};const N1={maxMissingPings:2,maxReconnectAttempts:1/0},Hs=()=>Date.now(),jg=(n,t)=>{t=t||{};let{backoffRate:e,jitterRatio:r,maxInterval:f}=t;return e=e||2,r===void 0&&(r=.5),p=>{let y=n*e**p,b=y*e,h=y+(b-y)*Math.random(),g=2*(Math.random()-.5)*r;return h=h*(1+g),f&&f<h&&(h=f),h}};let Hg=class{constructor({pingInterval:n,...t}){if(this.pingInterval=n,!this.pingInterval)throw Error(`Incorrect pingInterval is provided: ${n}`);if(t=Object.assign({},N1,t),this.strategy=t.reconnectStrategy,!this.strategy)throw Error("Reconnect strategy must be provided");this.maxMissingPings=t.maxMissingPings,this.maxReconnectAttempts=t.maxReconnectAttempts,this.logger=t.logger||new Ta,this.state="pending_connect",this.attempts=0,this.disconnectedAt=Hs()}watch(n){this.target=n,this.initListeners()}reconnectNow(){return this.state==="connected"||this.state==="pending_connect"||this.state==="closed"?!1:(this.cancelReconnect(),this.state="pending_connect",this.target.connect().catch(n=>{this.logger.info("Failed at reconnecting: "+n)}),!0)}initListeners(){this.unbind=[],this.unbind.push(this.target.on("connect",()=>{this.attempts=0,this.pingedAt=Hs(),this.state="connected",this.cancelReconnect(),this.startPolling()})),this.unbind.push(this.target.on("disconnect",()=>{this.disconnectedAt=Hs(),this.state="disconnected",this.stopPolling(),this.scheduleReconnect()})),this.unbind.push(this.target.on("close",()=>{this.disconnectedAt=Hs(),this.state="closed",this.cancelReconnect(),this.stopPolling()})),this.unbind.push(this.target.on("keepalive",()=>{this.pingedAt=Hs()})),this.unbind.push(()=>{this.cancelReconnect(),this.stopPolling()})}dispose(){delete this.target,this.unbind&&this.unbind.forEach(n=>n()),delete this.unbind}startPolling(){this.pollId&&clearTimeout(this.pollId);let n=this.pingInterval+(Math.random()-.5)*this.pingInterval*.5;this.pollId=setTimeout(()=>{this.checkStale(),this.state==="connected"&&this.startPolling()},n)}stopPolling(){this.pollId&&clearTimeout(this.pollId)}checkStale(){let n=Hs()-this.pingedAt;n>this.maxMissingPings*this.pingInterval&&(this.logger.warn(`Stale connection: ${n}ms without pings`),this.state="pending_disconnect",this.target.disconnected(new k1))}scheduleReconnect(){if(this.attempts>=this.maxReconnectAttempts){this.target.close();return}let n=this.strategy(this.attempts);this.attempts++,this.logger.info(`Reconnecting in ${n}ms (${this.attempts} attempt)`),this.state="pending_reconnect",this.reconnnectId=setTimeout(()=>this.reconnectNow(),n)}cancelReconnect(){this.reconnnectId&&(clearTimeout(this.reconnnectId),delete this.reconnnectId)}};class D1{constructor(t,e={}){this.transports=t,this.transport=null,this.emitter=$l(),this.unbind=[],this.logger=e.logger||new Ta}displayName(){return"fallbacked transport"}async open(){for(let t=0;t<this.transports.length;t++){let e=this.transports[t];try{this.transport=e,this.resetListeners(),this.logger.debug(`Trying to connect via ${e.displayName()}`),await e.open(),this.logger.debug(`Connected via ${e.displayName()}`);return}catch(r){this.logger.debug(`Failed to connect via ${e.displayName()}: ${r.message}`)}}throw this.transport=null,this.resetListeners(),new Error("Couldn't connect via any available transport")}send(t){if(!this.transport)throw new Error("No transport is open");this.transport.send(t)}async close(){if(!this.transport)throw new Error("No transport is open");await this.transport.close(),this.transport=null}setURL(){throw new Error("Not implemented. Set URL for each transport separately")}setParam(t,e){this.transports.forEach(r=>{r.setParam(t,e)})}setToken(t,e){this.transports.forEach(r=>{r.setToken(t,e)})}on(t,e){return this.emitter.on(t,e)}once(t,e){let r=this.emitter.on(t,(...f)=>{r(),e(...f)});return r}get url(){return this.transport?this.transport.url:""}resetListeners(){this.unbind.forEach(t=>t()),this.unbind.length=0,this.transport&&this.unbind.push(this.transport.on("open",()=>{this.emitter.emit("open")}),this.transport.on("data",t=>{this.emitter.emit("data",t)}),this.transport.on("close",t=>{this.emitter.emit("close",t)}),this.transport.on("error",t=>{this.emitter.emit("error",t)}))}}class P1{constructor(t,e={}){this.url=t;let r=e.websocketImplementation;if(r)this.Impl=r;else if(typeof WebSocket<"u")this.Impl=WebSocket;else throw new Error("No WebSocket support");this.connected=!1,this.emitter=$l();let{format:f,subprotocol:p,authStrategy:y}=e;this.format=f||"text",this.connectionOptions=e.websocketOptions,this.authStrategy=y||"param",this.authProtocol="",this.subprotocol=p}displayName(){return"WebSocket("+this.url+")"}open(){let t=this.subprotocol;return this.authStrategy==="sub-protocol"&&(t=[this.subprotocol,this.authProtocol]),this.connectionOptions?this.ws=new this.Impl(this.url,t,this.connectionOptions):this.ws=new this.Impl(this.url,t),this.ws.binaryType="arraybuffer",this.initListeners(),new Promise((e,r)=>{let f=[];f.push(this.once("open",()=>{f.forEach(p=>p()),e()})),f.push(this.once("close",()=>{f.forEach(p=>p()),r(Error("WS connection closed"))}))})}setURL(t){this.url=t}setParam(t,e){let r=new URL(this.url);r.searchParams.set(t,e);let f=`${r.protocol}//${r.host}${r.pathname}?${r.searchParams}`;this.setURL(f)}setToken(t,e="jid"){if(this.authStrategy==="param")this.setParam(e,t);else if(this.authStrategy==="header"){this.connectionOptions=this.connectionOptions||{},this.connectionOptions.headers=this.connectionOptions.headers||{};let r=`x-${e}`.toLowerCase();r=Object.keys(this.connectionOptions.headers).find(f=>f.toLowerCase()===r)||r,this.connectionOptions.headers[r]=t}else if(this.authStrategy==="sub-protocol")this.authProtocol=`anycable-token.${t}`;else throw new Error("Unknown auth strategy: "+this.authStrategy)}send(t){if(!this.ws||!this.connected)throw Error("WebSocket is not connected");this.ws.send(t)}close(){this.ws?this.onclose():this.connected=!1}on(t,e){return this.emitter.on(t,e)}once(t,e){let r=this.emitter.on(t,(...f)=>{r(),e(...f)});return r}initListeners(){this.ws.onerror=t=>{this.connected&&this.emitter.emit("error",t.error||new Error("WS Error"))},this.ws.onclose=()=>{this.onclose()},this.ws.onmessage=t=>{let e=t.data;this.format==="binary"&&(e=new Uint8Array(e)),this.emitter.emit("data",e)},this.ws.onopen=()=>{this.connected=!0,this.emitter.emit("open")}}onclose(){this.ws.onclose=void 0,this.ws.onmessage=void 0,this.ws.onopen=void 0,this.ws.close(),delete this.ws,this.connected=!1,this.emitter.emit("close")}}const Ug={protocol:"actioncable-v1-json",pingInterval:3e3,maxReconnectAttempts:1/0,maxMissingPings:2,logLevel:"warn",lazy:!0};function F1(n,t){if(typeof n=="object"&&typeof t>"u"&&(t=n,n=void 0),t=t||{},!n&&!t.transport)throw Error("URL or transport must be specified");t=Object.assign({},Ug,t);let{protocol:e,websocketImplementation:r,websocketFormat:f,websocketOptions:p,websocketAuthStrategy:y,fallbacks:b,logLevel:h,logger:g,transport:s,encoder:l,lazy:u,monitor:a,pingInterval:o,reconnectStrategy:c,maxMissingPings:d,maxReconnectAttempts:w,subprotocol:x,tokenRefresher:E,historyTimestamp:$,protocolOptions:S,concurrentSubscribes:C,performFailures:R,transportConfigurator:L,auth:P}=t;if(g=g||new Ta(h),typeof e=="string"){x=x||e;let F=e.substring(0,e.lastIndexOf("-")),O=e.substring(e.lastIndexOf("-")+1);if(S=S||{},F==="actioncable-v1")e=new Bg({logger:g,...S});else if(F==="actioncable-v1-ext")e=new E1({logger:g,historyTimestamp:$,...S});else throw Error(`Protocol is not supported yet: ${e}`);if(O==="json")l=l||new M1,f=f||"text";else if(O==="msgpack"){if(f="binary",!l)throw Error("Msgpack encoder must be specified explicitly. Use `@anycable/msgpack-encoder` package or build your own")}else if(O==="protobuf"){if(f=f||"binary",!l)throw Error("Protobuf encoder must be specified explicitly. Use `@anycable/protobuf-encoder` package or build your own")}else throw Error(`Protocol is not supported yet: ${e}`)}if(!e)throw Error("Protocol must be specified");s=s||new P1(n,{websocketImplementation:r,websocketOptions:p,subprotocol:x,authStrategy:y,format:f}),b&&(s=new D1([s,...b],{logger:g})),P&&P.token&&s.setToken(P.token,P.param||"jid"),c=c||jg(o),a!==!1&&(a=a||new Hg({pingInterval:o,reconnectStrategy:c,maxMissingPings:d,maxReconnectAttempts:w,logger:g}));let I={concurrentSubscribes:C},H=new O1({protocol:e,transport:s,encoder:l,logger:g,lazy:u,hubOptions:I,performFailures:R,transportConfigurator:L});return a&&(a.watch(H),H.monitor=a),E&&W1(H,async()=>{try{await E(s)}catch(F){return g.error("Failed to refresh authentication token: "+F),!1}return H.connect().catch(()=>{}),!0}),H}function W1(n,t){let e=!1;n.on("connect",()=>e=!1),n.on("close",async r=>{if(r){if(e){n.logger.warn("Token auto-refresh is disabled",r);return}r.reason==="token_expired"&&(e=!0,await t())}})}class B1{constructor(t){this.channel=t}notify(t,...e){typeof this[t]=="function"&&this[t](...e)}perform(t,e={}){this.channel.perform(t,e)}send(t){this.channel.send(t)}get identifier(){return this.channel.identifier}unsubscribe(){return this.channel.disconnect()}}class z1 extends wu{constructor(t,e,r){super(t,e),this.subscription=new B1(this),Object.assign(this.subscription,r),this.on("connect",({reconnect:f})=>this.subscription.notify("connected",{reconnected:f})),this.on("disconnect",()=>this.subscription.notify("disconnected",{allowReconnect:!0})),this.on("message",f=>this.subscription.notify("received",f)),this.on("close",f=>{f&&f instanceof yu?this.subscription.notify("rejected"):this.subscription.notify("disconnected",{allowReconnect:!1})})}}class j1{constructor(t){this.cable=t}create(t,e){let r,f;typeof t=="object"?(r=t.channel,delete t.channel,f=t):(r=t,f={});let p=new z1(r,f,e);return p.subscription.notify("initialized"),this.cable.subscribe(p),p.subscription}findAll(t){return this.cable.hub.channels.filter(e=>e.identifier===t).map(e=>e.subscription)}}class H1{constructor(t){this.cable=t,this.subscriptions=new j1(t)}}class U1 extends Wg{writeLogEntry(t,e,r){r?console[t](e,r):console[t](e)}}class V1 extends Hg{watch(t){super.watch(t),this.initActivityListeners()}initActivityListeners(){if(typeof document<"u"&&typeof window<"u"&&document.addEventListener&&window.addEventListener){let t=()=>{document.hidden||this.reconnectNow()&&this.logger.debug("Trigger reconnect due to visibility change")},e=f=>{this.reconnectNow()&&this.logger.debug("Trigger reconnect",{event:f})},r=()=>this.disconnect(new Ei("page_frozen"));document.addEventListener("visibilitychange",t,!1),window.addEventListener("focus",e,!1),window.addEventListener("online",e,!1),window.addEventListener("resume",e,!1),window.addEventListener("freeze",r,!1),this.unbind.push(()=>{document.removeEventListener("visibilitychange",t,!1),window.removeEventListener("focus",e,!1),window.removeEventListener("online",e,!1),window.removeEventListener("resume",e,!1),window.removeEventListener("freeze",r,!1)})}}disconnect(t){this.state==="disconnected"||this.state==="closed"||(this.logger.info("Disconnecting",{reason:t.message}),this.cancelReconnect(),this.stopPolling(),this.state="pending_disconnect",this.target.disconnected(t))}}const K1=["cable","action-cable"],q1="/cable",Ml=(n,t)=>{for(let e of K1){let r=n.head.querySelector(`meta[name='${e}-${t}']`);if(r)return r.getAttribute("content")}},Vg=n=>n.match(/wss?:\/\//)?n:typeof window<"u"?`${window.location.protocol.replace("http","ws")}//${window.location.host}${n}`:n,G1=()=>{if(typeof document<"u"&&document.head){let n=Ml(document,"url");if(n)return Vg(n)}return Vg(q1)},Y1=()=>{if(typeof document<"u"&&document.head){let n=Ml(document,"history-timestamp");if(n)return n|0}},X1=()=>{if(typeof document<"u"&&document.head)return Ml(document,"token")},Q1=()=>{if(typeof document<"u"&&document.head)return Ml(document,"token-param")};function Z1(n,t){typeof n=="object"&&typeof t>"u"&&(t=n,n=void 0),n=n||G1(),t=t||{},t.historyTimestamp||(t.historyTimestamp=Y1());let e=X1();if(e){let g=Q1();t.auth=Object.assign({token:e,param:g},t.auth||{})}t=Object.assign({},Ug,t);let{logLevel:r,logger:f,pingInterval:p,reconnectStrategy:y,maxMissingPings:b,maxReconnectAttempts:h}=t;return f=t.logger=t.logger||new U1(r),y=t.reconnectStrategy=t.reconnectStrategy||jg(p),t.monitor!==!1&&(t.monitor=t.monitor||new V1({pingInterval:p,reconnectStrategy:y,maxMissingPings:b,maxReconnectAttempts:h,logger:f})),F1(n,t)}function J1(n,t){let e=Z1(n,t);return new H1(e)}class eC{constructor(t="/openc3-api/cable"){this._cable=null,this._url=t}disconnect(){this._cable&&(this._cable.cable.disconnect(),this._cable=null)}createSubscription(t,e,r={},f={}){return OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then(p=>{if(p&&OpenC3Auth.setTokens(),this._cable==null){let y=this._url+"?scope="+encodeURIComponent(window.openc3Scope)+"&authorization="+encodeURIComponent(localStorage.openc3Token);y=new URL(y,document.baseURI).href,this._cable=J1(y)}return this._cable.subscriptions.create({channel:t,...f},r)})}recordPing(){}}tr("P",eC);class tC{constructor(t,e,r="",f=""){this.keyword=t.keyword,this.parameters=t.parameters,this.filename=t.filename,this.line=t.line,this.lineNumber=t.lineNumber,this.message=e,this.usage=r,this.url=f}}tr("b",tC);function Il(n){return nC.test(n)}const nC=/^-?[0-9]+$/;function Kg(n){return rC.test(n)}const rC=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$/;function qg(n,t){const e=Number.parseFloat(n),r=String(e),f=Gg(n),p=Gg(r);return!!(f===p||(t==null?void 0:t.approx)===!0&&!Il(n)&&p.length>=14&&f.startsWith(p.substring(0,14)))}let $a=function(n){return n.underflow="underflow",n.overflow="overflow",n.truncate_integer="truncate_integer",n.truncate_float="truncate_float",n}({});function iC(n){if(qg(n,{approx:!1}))return;if(Il(n))return $a.truncate_integer;const t=Number.parseFloat(n);return Number.isFinite(t)?t===0?$a.underflow:$a.truncate_float:$a.overflow}function Gg(n){return n.replace(oC,"").replace(aC,"").replace(lC,"").replace(sC,"")}const oC=/[eE][+-]?\d+$/,sC=/^-?(0*)?/,aC=/\./,lC=/0+$/;class cC{constructor(t){if(gl(this,"isLosslessNumber",!0),!Kg(t))throw new Error(`Invalid number (value: "${t}")`);this.value=t}valueOf(){const t=iC(this.value);if(t===void 0||t===$a.truncate_float)return Number.parseFloat(this.value);if(Il(this.value))return BigInt(this.value);throw new Error(`Cannot safely convert to number: the value '${this.value}' would ${t} and become ${Number.parseFloat(this.value)}`)}toString(){return this.value}}function uC(n){return n&&typeof n=="object"&&n.isLosslessNumber===!0||!1}function hC(n){return new cC(n)}function dC(n,t){return xu({"":n},"",n,t)}function xu(n,t,e,r){return Array.isArray(e)?r.call(n,t,gC(e,r)):e&&typeof e=="object"&&!uC(e)?r.call(n,t,pC(e,r)):r.call(n,t,e)}function pC(n,t){for(const e of Object.keys(n)){const r=xu(n,e,n[e],t);r!==void 0?n[e]=r:delete n[e]}return n}function gC(n,t){for(let e=0;e<n.length;e++)n[e]=xu(n,String(e),n[e],t);return n}function fC(n,t){let e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:hC,r=0;const f=b();return o(f),d(),t?dC(f,t):f;function p(){if(n.charCodeAt(r)===xC){r++,g();const _={};let A=!0;for(;r<n.length&&n.charCodeAt(r)!==Xg;){A?A=!1:(u(),g());const N=r,B=s();if(B===void 0){E();return}g(),a();const U=b();if(U===void 0){P();return}Object.prototype.hasOwnProperty.call(_,B)&&!Cu(U,_[B])&&$(B,N+1),_[B]=U}return n.charCodeAt(r)!==Xg&&S(),r++,_}}function y(){if(n.charCodeAt(r)===CC){r++,g();const _=[];let A=!0;for(;r<n.length&&n.charCodeAt(r)!==Qg;){A?A=!1:u();const N=b();c(N),_.push(N)}return n.charCodeAt(r)!==Qg&&C(),r++,_}}function b(){g();const _=s()??l()??p()??y()??h("true",!0)??h("false",!1)??h("null",null);return g(),_}function h(_,A){if(n.slice(r,r+_.length)===_)return r+=_.length,A}function g(){for(;mC(n.charCodeAt(r));)r++}function s(){if(n.charCodeAt(r)===ku){r++;let _="";for(;r<n.length&&n.charCodeAt(r)!==ku;){if(n.charCodeAt(r)===bC){const A=n[r+1],N=wC[A];N!==void 0?(_+=N,r++):A==="u"?El(n.charCodeAt(r+2))&&El(n.charCodeAt(r+3))&&El(n.charCodeAt(r+4))&&El(n.charCodeAt(r+5))?(_+=String.fromCharCode(Number.parseInt(n.slice(r+2,r+6),16)),r+=5):I(r):L(r)}else yC(n.charCodeAt(r))?_+=n[r]:R(n[r]);r++}return x(),r++,_}}function l(){const _=r;if(n.charCodeAt(r)===Zg&&(r++,w(_)),n.charCodeAt(r)===Su)r++;else if(vC(n.charCodeAt(r)))for(r++;Rl(n.charCodeAt(r));)r++;if(n.charCodeAt(r)===IC)for(r++,w(_);Rl(n.charCodeAt(r));)r++;if(n.charCodeAt(r)===NC||n.charCodeAt(r)===OC)for(r++,(n.charCodeAt(r)===Zg||n.charCodeAt(r)===TC)&&r++,w(_);Rl(n.charCodeAt(r));)r++;if(r>_)return e(n.slice(_,r))}function u(){if(n.charCodeAt(r)!==MC)throw new SyntaxError(`Comma ',' expected after value ${O()}`);r++}function a(){if(n.charCodeAt(r)!==EC)throw new SyntaxError(`Colon ':' expected after property name ${O()}`);r++}function o(_){if(_===void 0)throw new SyntaxError(`JSON value expected ${O()}`)}function c(_){if(_===void 0)throw new SyntaxError(`Array item expected ${O()}`)}function d(){if(r<n.length)throw new SyntaxError(`Expected end of input ${O()}`)}function w(_){if(!Rl(n.charCodeAt(r))){const A=n.slice(_,r);throw new SyntaxError(`Invalid number '${A}', expecting a digit ${O()}`)}}function x(){if(n.charCodeAt(r)!==ku)throw new SyntaxError(`End of string '"' expected ${O()}`)}function E(){throw new SyntaxError(`Quoted object key expected ${O()}`)}function $(_,A){throw new SyntaxError(`Duplicate key '${_}' encountered at position ${A}`)}function S(){throw new SyntaxError(`Quoted object key or end of object '}' expected ${O()}`)}function C(){throw new SyntaxError(`Array item or end of array ']' expected ${O()}`)}function R(_){throw new SyntaxError(`Invalid character '${_}' ${H()}`)}function L(_){const A=n.slice(_,_+2);throw new SyntaxError(`Invalid escape character '${A}' ${H()}`)}function P(){throw new SyntaxError(`Object value expected after ':' ${H()}`)}function I(_){const A=n.slice(_,_+6);throw new SyntaxError(`Invalid unicode character '${A}' ${H()}`)}function H(){return`at position ${r}`}function F(){return r<n.length?`but got '${n[r]}'`:"but reached end of input"}function O(){return`${F()} ${H()}`}}function mC(n){return n===kC||n===SC||n===AC||n===_C}function El(n){return n>=Su&&n<=Au||n>=RC&&n<=DC||n>=LC&&n<=PC}function Rl(n){return n>=Su&&n<=Au}function vC(n){return n>=$C&&n<=Au}function yC(n){return n>=32&&n<=1114111}function Cu(n,t){return n===t?!0:Array.isArray(n)&&Array.isArray(t)?n.length===t.length&&n.every((e,r)=>Cu(e,t[r])):Yg(n)&&Yg(t)?[...new Set([...Object.keys(n),...Object.keys(t)])].every(e=>Cu(n[e],t[e])):!1}function Yg(n){return typeof n=="object"&&n!==null}const wC={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
|
1397
|
+
`,r:"\r",t:" "},bC=92,xC=123,Xg=125,CC=91,Qg=93,kC=32,SC=10,AC=9,_C=13,ku=34,TC=43,Zg=45,Su=48,$C=49,Au=57,MC=44,IC=46,EC=58,RC=65,LC=97,OC=69,NC=101,DC=70,PC=102;function Jg(n,t,e,r){return f(n);function f(h,g){if(Array.isArray(r)){const s=r.find(l=>l.test(h));if(s){const l=s.stringify(h);if(typeof l!="string"||!Kg(l))throw new Error(`Invalid JSON number: output of a number stringifier must be a string containing a JSON number (output: ${l})`);return l}}if(typeof h=="boolean"||typeof h=="number"||typeof h=="string"||h===null||h instanceof Date||h instanceof Boolean||h instanceof Number||h instanceof String)return JSON.stringify(h);if(h!=null&&h.isLosslessNumber||typeof h=="bigint")return h.toString();if(Array.isArray(h))return p(h);if(h&&typeof h=="object")return y(h)}function p(h,g){if(h.length===0)return"[]";let s="[";for(let l=0;l<h.length;l++){const u=h[l];typeof u<"u"&&typeof u!="function"?s+=f(u):s+="null",l<h.length-1&&(s+=",")}return s+="]",s}function y(h,g){if(typeof h.toJSON=="function")return Jg(h.toJSON(),t,e,void 0);const s=Array.isArray(t)?t.map(String):Object.keys(h);if(s.length===0)return"{}";let l=!0,u="{";for(const a of s){const o=h[a];if(b(a,o)){l?l=!1:u+=",";const c=JSON.stringify(a);u+=`${c}:`,u+=f(o)}}return u+="}",u}function b(h,g){return typeof g<"u"&&typeof g!="function"&&typeof g!="symbol"}}function FC(n){return Il(n)&&!qg(n)?BigInt(n):parseFloat(n)}class Lo{constructor(){gl(this,"id",1)}async exec(t,e,r={},f={},p=6e4){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch{OpenC3Auth.login()}this.id=this.id+1;try{return r.scope=window.openc3Scope,f.manual=!0,(await mu.post("/openc3-api/api",{jsonrpc:"2.0",method:t,params:e,id:this.id,keyword_params:r},{headers:{Authorization:localStorage.openc3Token,"Content-Type":"application/json-rpc",...f},timeout:p,transformRequest:[(y,b)=>Jg(y)],transformResponse:[y=>fC(y,void 0,FC)]})).data.result}catch(y){let b=new Error;throw y.response?(b.name=y.response.data.error.data.class,b.message=y.response.data.error.data.message,b.object=y.response.data.error):y.request?(b.name="Request error",b.message="Request error, no response received"):b=y,b}}decode_openc3_type(t){if(t!==null&&typeof t=="object"&&t.json_class=="Float"&&t.raw){if(t.raw=="NaN")return NaN;if(t.raw=="Infinity")return 1/0;if(t.raw=="-Infinity")return-1/0}return null}encode_openc3_type(t){return Number.isNaN(t)?{json_class:"Float",raw:"NaN"}:t==Number.POSITIVE_INFINITY?{json_class:"Float",raw:"Infinity"}:t==Number.NEGATIVE_INFINITY?{json_class:"Float",raw:"-Infinity"}:null}ensure_offline_access(){this.offline_access_needed().then(t=>{t&&(localStorage.openc3OfflineToken?this.set_offline_access(localStorage.openc3OfflineToken).then(()=>{delete localStorage.openc3OfflineToken}):OpenC3Auth.getOfflineAccess())})}offline_access_needed(){return this.exec("offline_access_needed",[])}set_offline_access(t){return this.exec("set_offline_access",[t])}get_all_interface_info(){return this.exec("get_all_interface_info",[])}map_target_to_interface(t,e){return this.exec("map_target_to_interface",[t,e])}connect_interface(t,...e){return e.length>0?this.exec("connect_interface",[t,...e]):this.exec("connect_interface",[t])}disconnect_interface(t){return this.exec("disconnect_interface",[t])}interface_cmd(t,e,...r){return this.exec("interface_cmd",[t,e,...r])}get_all_router_info(){return this.exec("get_all_router_info",[])}connect_router(t){return this.exec("connect_router",[t])}disconnect_router(t){return this.exec("disconnect_router",[t])}get_target_interfaces(){return this.exec("get_target_interfaces",[])}get_tlm_cnts(t){return this.exec("get_tlm_cnts",[t])}get_item(t,e,r){return this.exec("get_item",[t,e,r])}get_param(t,e,r){return this.exec("get_param",[t,e,r])}get_parameter(t,e,r){return this.exec("get_param",[t,e,r])}get_limits_sets(){return this.exec("get_limits_sets",[])}get_limits_set(){return this.exec("get_limits_set",[])}set_limits_set(t){return this.exec("set_limits_set",[t])}get_target(t){return this.exec("get_target",[t])}get_target_names(){return this.exec("get_target_names",[])}get_target_list(){return this.exec("get_target_names",[])}get_tlm(t,e){return this.exec("get_tlm",[t,e])}get_telemetry(t,e){return this.exec("get_tlm",[t,e])}get_all_tlm(t){return this.exec("get_all_tlm",[t])}get_all_telemetry(t){return this.exec("get_all_tlm",[t])}get_all_tlm_names(t,e=!1){return this.exec("get_all_tlm_names",[t],{hidden:e})}get_all_telemetry_names(t){return this.exec("get_all_tlm_names",[t])}get_all_tlm_item_names(t){return this.exec("get_all_tlm_item_names",[t])}async get_tlm_packet(t,e,r,f=30){const p=await this.exec("get_tlm_packet",[t,e],{type:r,stale_time:f});if(p!=null){let y=p.length,b=null;for(let h=0;h<y;h++)b=this.decode_openc3_type(p[h][1]),b!==null&&(p[h][1]=b)}return p}get_packet_derived_items(t,e){return this.exec("get_packet_derived_items",[t,e])}get_tlm_buffer(t,e){return this.exec("get_tlm_buffer",[t,e])}async get_tlm_values(t,e=30,r=null){let f={stale_time:e};r!==null&&(f.cache_timeout=r);const p=await this.exec("get_tlm_values",[t],f,{},1e4);let y=p[0].length,b=null;for(let h=0;h<y;h++)b=this.decode_openc3_type(p[0][h]),b!==null&&(p[0][h]=b);return p}get_limits(t,e,r){return this.exec("get_limits",[t,e,r])}async tlm(t,e,r,f="CONVERTED"){let p=null;if(e===void 0)p=await this.exec("tlm",[t]);else if(r===void 0)if(["RAW","CONVERTED","FORMATTED","WITH_UNITS"].includes(e))p=await this.exec("tlm",[t],{type:e});else{let b=new Error;throw b.name="TypeError",b.message=`Invalid data type ${e}. Valid options are RAW, CONVERTED, FORMATTED, and WITH_UNITS.`,b}else p=await this.exec("tlm",[t,e,r],{type:f});let y=this.decode_openc3_type(p);return y!==null&&(p=y),p}async inject_tlm(t,e,r=null,f="CONVERTED"){await this.exec("inject_tlm",[t,e,r],{type:f})}set_tlm(t,e,r,f){return this.exec("set_tlm",[t,e,r],{type:f})}override_tlm(t,e,r,f){return this.exec("override_tlm",[t,e,r],{type:f})}get_overrides(){return this.exec("get_overrides")}normalize_tlm(t,e,r,f){return this.exec("normalize_tlm",[t,e,r],{type:f})}get_all_cmds(t){return this.exec("get_all_cmds",[t])}get_all_commands(t){return this.exec("get_all_cmds",[t])}get_all_cmd_names(t,e=!1){return this.exec("get_all_cmd_names",[t],{hidden:e})}get_all_command_names(t){return this.exec("get_all_cmd_names",[t])}get_cmd(t,e){return this.exec("get_cmd",[t,e])}get_command(t,e){return this.exec("get_cmd",[t,e])}get_cmd_cnts(t){return this.exec("get_cmd_cnts",[t])}get_cmd_value(t,e,r,f="CONVERTED"){return this.exec("get_cmd_value",[t,e,r,f])}get_cmd_buffer(t,e){return this.exec("get_cmd_buffer",[t,e])}_cmd(t,e,r,f,p){let y=null;for(let b in f)Object.prototype.hasOwnProperty.call(f,b)&&(y=this.encode_openc3_type(f[b]),y!==null&&(f[b]=y));return this.exec(t,[e,r,f],{},p)}get_cmd_hazardous(t,e,r,f={}){return e===void 0?this.exec("get_cmd_hazardous",t,{},f):this._cmd("get_cmd_hazardous",t,e,r,f)}cmd(t,e,r,f={}){return e===void 0?this.exec("cmd",t,{},f):this._cmd("cmd",t,e,r,f)}cmd_no_range_check(t,e,r,f={}){return e===void 0?this.exec("cmd_no_range_check",t,{},f):this._cmd("cmd_no_range_check",t,e,r,f)}cmd_raw(t,e,r,f={}){return e===void 0?this.exec("cmd_raw",t,{},f):this._cmd("cmd_raw",t,e,r,f)}cmd_raw_no_range_check(t,e,r,f={}){return e===void 0?this.exec("cmd_raw_no_range_check",t,{},f):this._cmd("cmd_raw_no_range_check",t,e,r,f)}cmd_no_hazardous_check(t,e,r,f={}){return e===void 0?this.exec("cmd_no_hazardous_check",t,{},f):this._cmd("cmd_no_hazardous_check",t,e,r,f)}cmd_no_checks(t,e,r,f={}){return e===void 0?this.exec("cmd_no_checks",t,{},f):this._cmd("cmd_no_checks",t,e,r,f)}cmd_raw_no_hazardous_check(t,e,r,f={}){return e===void 0?this.exec("cmd_raw_no_hazardous_check",t,{},f):this._cmd("cmd_raw_no_hazardous_check",t,e,r,f)}cmd_raw_no_checks(t,e,r,f={}){return e===void 0?this.exec("cmd_raw_no_checks",t,{},f):this._cmd("cmd_raw_no_checks",t,e,r,f)}build_cmd(t,e,r){return e===void 0?this.exec("build_cmd",t):this._cmd("build_cmd",t,e,r)}build_command(t,e,r){return e===void 0?this.exec("build_cmd",t):this._cmd("build_cmd",t,e,r)}get_interface_names(){return this.exec("get_interface_names",[])}send_raw(t,e){return this.exec("send_raw",[t,e])}list_configs(t){return this.exec("list_configs",[t])}load_config(t,e){return this.exec("load_config",[t,e])}save_config(t,e,r){return this.exec("save_config",[t,e,r])}delete_config(t,e){return this.exec("delete_config",[t,e])}enable_limits(t,e,r){return this.exec("enable_limits",[t,e,r])}disable_limits(t,e,r){return this.exec("disable_limits",[t,e,r])}get_out_of_limits(){return this.exec("get_out_of_limits",[])}get_overall_limits_state(t){return this.exec("get_overall_limits_state",[t])}list_settings(){return this.exec("list_settings",[])}get_all_settings(){return this.exec("get_all_settings",[])}get_setting(t){return this.exec("get_setting",[t])}get_settings(t){return this.exec("get_settings",t)}set_setting(t,e){return this.exec("set_setting",[t,e])}update_news(){return this.exec("update_news",[])}save_setting(t,e){return this.exec("set_setting",[t,e])}get_metrics(){return this.exec("get_metrics",[])}async hashString(t){if(window.isSecureContext){const e=new TextEncoder().encode(t),r=await crypto.subtle.digest("SHA-256",e),f=new Uint8Array(r);return Array.from(f).map(p=>p.toString(16).padStart(2,"0")).join("")}}}tr("B",Lo);var ef={exports:{}},tf;function WC(){return tf||(tf=1,function(n,t){ace.define("ace/ext/hardwrap",["require","exports","module","ace/range","ace/editor","ace/config"],function(e,r,f){function p(g,s){function l(P,I,H){if(!(P.length<I)){var F=P.slice(0,I),O=P.slice(I),_=/^(?:(\s+)|(\S+)(\s+))/.exec(O),A=/(?:(\s+)|(\s+)(\S+))$/.exec(F),N=0,B=0;if(A&&!A[2]&&(N=I-A[1].length,B=I),_&&!_[2]&&(N||(N=I),B=I+_[1].length),N)return{start:N,end:B};if(A&&A[2]&&A.index>H)return{start:A.index,end:A.index+A[2].length};if(_&&_[2])return N=I+_[2].length,{start:N,end:N+_[3].length}}}for(var u=s.column||g.getOption("printMarginColumn"),a=s.allowMerge!=0,o=Math.min(s.startRow,s.endRow),c=Math.max(s.startRow,s.endRow),d=g.session;o<=c;){var w=d.getLine(o);if(w.length>u){var x=l(w,u,5);if(x){var E=/^\s*/.exec(w)[0];d.replace(new b(o,x.start,o,x.end),`
|
1398
|
+
`+E)}c++}else if(a&&/\S/.test(w)&&o!=c){var $=d.getLine(o+1);if($&&/\S/.test($)){var S=w.replace(/\s+$/,""),C=$.replace(/^\s+/,""),R=S+" "+C,x=l(R,u,5);if(x&&x.start>S.length||R.length<u){var L=new b(o,S.length,o+1,$.length-C.length);d.replace(L," "),o--,c--}else S.length<w.length&&d.remove(new b(o,S.length,o,w.length))}}o++}}function y(g){if(g.command.name=="insertstring"&&/\S/.test(g.args)){var s=g.editor,l=s.selection.cursor;if(l.column<=s.renderer.$printMarginColumn)return;var u=s.session.$undoManager.$lastDelta;p(s,{startRow:l.row,endRow:l.row,allowMerge:!1}),u!=s.session.$undoManager.$lastDelta&&s.session.markUndoGroup()}}var b=e("../range").Range,h=e("../editor").Editor;e("../config").defineOptions(h.prototype,"editor",{hardWrap:{set:function(g){g?this.commands.on("afterExec",y):this.commands.off("afterExec",y)},value:!1}}),r.hardWrap=p}),ace.define("ace/keyboard/vim",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/dom","ace/lib/oop","ace/lib/keys","ace/lib/event","ace/search","ace/lib/useragent","ace/search_highlight","ace/commands/multi_select_commands","ace/mode/text","ace/ext/hardwrap","ace/multi_select"],function(e,r,f){function p(v){return{row:v.line,column:v.ch}}function y(v){return new Ne(v.row,v.column)}function b(v,T,k){if(T.line===k.line&&T.ch>=k.ch-1){var D=v.getLine(T.line),W=D.charCodeAt(T.ch);55296<=W&&W<=55551&&(k.ch+=1)}return{start:T,end:k}}function h(v){v.setOption("disableInput",!0),v.setOption("showCursorWhenSelecting",!1),Fe.signal(v,"vim-mode-change",{mode:"normal"}),v.on("cursorActivity",zo),R(v),Fe.on(v.getInputField(),"paste",s(v))}function g(v){v.setOption("disableInput",!1),v.off("cursorActivity",zo),Fe.off(v.getInputField(),"paste",s(v)),v.state.vim=null,ur&&clearTimeout(ur)}function s(v){var T=v.state.vim;return T.onPasteFn||(T.onPasteFn=function(){T.insertMode||(v.setCursor(fe(v.getCursor(),0,1)),Pn.enterInsertMode(v,{},T))}),T.onPasteFn}function l(v,T){return T>=v.firstLine()&&T<=v.lastLine()}function u(v){return/^[a-z]$/.test(v)}function a(v){return"()[]{}".indexOf(v)!=-1}function o(v){return ua.test(v)}function c(v){return rn.test(v)}function d(v){return/^\s*$/.test(v)}function w(v){return".?!".indexOf(v)!=-1}function x(v,T){for(var k=0;k<T.length;k++)if(T[k]==v)return!0;return!1}function E(v,T,k,D,W){if(T===void 0&&!W)throw Error("defaultValue is required unless callback is provided");if(k||(k="string"),Vt[v]={type:k,defaultValue:T,callback:W},D)for(var z=0;z<D.length;z++)Vt[D[z]]=Vt[v];T&&$(v,T)}function $(v,T,k,D){var W=Vt[v];D=D||{};var z=D.scope;if(!W)return new Error("Unknown option: "+v);if(W.type=="boolean"){if(T&&T!==!0)return new Error("Invalid argument: "+v+"="+T);T!==!1&&(T=!0)}W.callback?(z!=="local"&&W.callback(T,void 0),z!=="global"&&k&&W.callback(T,k)):(z!=="local"&&(W.value=W.type=="boolean"?!!T:T),z!=="global"&&k&&(k.state.vim.options[v]={value:T}))}function S(v,T,k){var D=Vt[v];k=k||{};var W=k.scope;if(!D)return new Error("Unknown option: "+v);if(D.callback){var z=T&&D.callback(void 0,T);return W!=="global"&&z!==void 0?z:W!=="local"?D.callback():void 0}var z=W!=="global"&&T&&T.state.vim.options[v];return(z||W!=="local"&&D||{}).value}function C(){this.latestRegister=void 0,this.isPlaying=!1,this.isRecording=!1,this.replaySearchQueries=[],this.onRecordingDone=void 0,this.lastInsertModeChanges=Nn()}function R(v){return v.state.vim||(v.state.vim={inputState:new _,lastEditInputState:void 0,lastEditActionCommand:void 0,lastHPos:-1,lastHSPos:-1,lastMotion:null,marks:{},insertMode:!1,insertModeReturn:!1,insertModeRepeat:void 0,visualMode:!1,visualLine:!1,visualBlock:!1,lastSelection:null,lastPastedText:null,sel:{},options:{},expectLiteralNext:!1}),v.state.vim}function L(){Be={searchQuery:null,searchIsReversed:!1,lastSubstituteReplacePart:void 0,jumpList:xi(),macroModeState:new C,lastCharacterSearch:{increment:0,forward:!0,selectedCharacter:""},registerController:new q({}),searchHistoryController:new Z,exCommandHistoryController:new Z};for(var v in Vt){var T=Vt[v];T.value=T.defaultValue}}function P(v){function T(Y){typeof Y=="string"?xn.value=Y:xn=null}if(v[0]=="<"){var k=v.toLowerCase().slice(1,-1),D=k.split("-");if(k=D.pop()||"",k=="lt")v="<";else if(k=="space")v=" ";else if(k=="cr")v=`
|
1399
|
+
`;else if(Ci[k]){var W=xn.value,z={key:Ci[k],target:{value:W,selectionEnd:W.length,selectionStart:W.length}};xn.onKeyDown&&xn.onKeyDown(z,xn.value,T),xn&&xn.onKeyUp&&xn.onKeyUp(z,xn.value,T);return}}if(v==`
|
1400
|
+
`){var K=xn;xn=null,K.onClose&&K.onClose(K.value)}else xn.value=(xn.value||"")+v}function I(v,T,k){var D=cn;if(k){if(Lr.indexOf(k)!=-1)return;Lr.push(k),cn=k.noremap!=0}try{for(var W=R(v),z=/<(?:[CSMA]-)*\w+>|./gi,K;K=z.exec(T);){var Y=K[0],Q=W.insertMode;if(xn){P(Y);continue}var re=Ct.handleKey(v,Y,"mapping");if(!re&&Q&&W.insertMode){if(Y[0]=="<"){var se=Y.toLowerCase().slice(1,-1),ye=se.split("-");if(se=ye.pop()||"",se=="lt")Y="<";else if(se=="space")Y=" ";else if(se=="cr")Y=`
|
1401
|
+
`;else{if(Ci.hasOwnProperty(se)){Y=Ci[se],Ho(v,Y);continue}Y=Y[0],z.lastIndex=K.index+1}}v.replaceSelection(Y)}}}finally{if(Lr.pop(),cn=Lr.length?D:!1,!Lr.length&&xn){var Ce=xn;xn=null,_r(v,Ce)}}}function H(v,T){var k=v.key;if(!Or[k]){k.length>1&&k[0]=="n"&&(k=k.replace("Numpad","")),k=Zn[k]||k;var D="";if(v.ctrlKey&&(D+="C-"),v.altKey&&(D+="A-"),v.metaKey&&(D+="M-"),Fe.isMac&&v.altKey&&!v.metaKey&&!v.ctrlKey&&(D=D.slice(2)),(D||k.length>1)&&v.shiftKey&&(D+="S-"),T&&!T.expectLiteralNext&&k.length==1){if(Vn.keymap&&k in Vn.keymap)(Vn.remapCtrl!=0||!D)&&(k=Vn.keymap[k]);else if(k.charCodeAt(0)>255){var W=v.code&&v.code.slice(-1)||"";v.shiftKey||(W=W.toLowerCase()),W&&(k=W)}}return D+=k,D.length>1&&(D="<"+D+">"),D}}function F(v,T){Vn.string!==v&&(Vn=O(v)),Vn.remapCtrl=T}function O(v){function T(D){return D.split(/\\?(.)/).filter(Boolean)}var k={};return v?(v.split(/((?:[^\\,]|\\.)+),/).map(function(D){if(D){var W=D.split(/((?:[^\\;]|\\.)+);/);if(W.length==3){var z=T(W[1]),K=T(W[2]);if(z.length!==K.length)return;for(var Y=0;Y<z.length;++Y)k[z[Y]]=K[Y]}else if(W.length==1){var Q=T(D);if(Q.length%2!==0)return;for(var Y=0;Y<Q.length;Y+=2)k[Q[Y]]=Q[Y+1]}}}),{keymap:k,string:v}):{keymap:k,string:""}}function _(){this.prefixRepeat=[],this.motionRepeat=[],this.operator=null,this.operatorArgs=null,this.motion=null,this.motionArgs=null,this.keyBuffer=[],this.registerName=null,this.changeQueue=null}function A(v,T){v.state.vim.inputState=new _,v.state.vim.expectLiteralNext=!1,Fe.signal(v,"vim-command-done",T)}function N(){this.removed=[],this.inserted=""}function B(v,T,k){this.clear(),this.keyBuffer=[v||""],this.insertModeChanges=[],this.searchQueries=[],this.linewise=!!T,this.blockwise=!!k}function U(v,T){var k=Be.registerController.registers;if(!v||v.length!=1)throw Error("Register name must be 1 character");k[v]=T,nn.push(v)}function q(v){this.registers=v,this.unnamedRegister=v['"']=new B,v["."]=new B,v[":"]=new B,v["/"]=new B,v["+"]=new B}function Z(){this.historyBuffer=[],this.iterator=0,this.initialPrefix=null}function te(v,T){Yr[v]=T}function he(v,T){for(var k=[],D=0;D<T;D++)k.push(v);return k}function ne(v,T){qo[v]=T}function ae(v,T){Pn[v]=T}function ue(v,T,k){var D=v.state.vim,W=D.insertMode||D.visualMode,z=Math.min(Math.max(v.firstLine(),T.line),v.lastLine()),K=v.getLine(z),Y=K.length-1+ +!!W,Q=Math.min(Math.max(0,T.ch),Y),re=K.charCodeAt(Q);if(56320<=re&&re<=57343){var se=1;k&&k.line==z&&k.ch>Q&&(se=-1),Q+=se,Q>Y&&(Q-=2)}return new Ne(z,Q)}function ce(v){var T={};for(var k in v)v.hasOwnProperty(k)&&(T[k]=v[k]);return T}function fe(v,T,k){return typeof T=="object"&&(k=T.ch,T=T.line),new Ne(v.line+T,v.ch+k)}function Te(v,T,k,D){D.operator&&(k="operatorPending");for(var W,z=[],K=[],Y=cn?T.length-yo:0,Q=Y;Q<T.length;Q++){var re=T[Q];k=="insert"&&re.context!="insert"||re.context&&re.context!=k||D.operator&&re.type=="action"||!(W=$e(v,re.keys))||(W=="partial"&&z.push(re),W=="full"&&K.push(re))}return{partial:z.length&&z,full:K.length&&K}}function $e(v,T){var k=T.slice(-11)=="<character>",D=T.slice(-10)=="<register>";if(k||D){var W=T.length-(k?11:10),z=v.slice(0,W),K=T.slice(0,W);return z==K&&v.length>W?"full":K.indexOf(z)==0?"partial":!1}return v==T?"full":T.indexOf(v)==0?"partial":!1}function Ie(v){var T=/^.*(<[^>]+>)$/.exec(v),k=T?T[1]:v.slice(-1);if(k.length>1)switch(k){case"<CR>":k=`
|
1402
|
+
`;break;case"<Space>":k=" ";break;default:k=""}return k}function Ye(v,T,k){return function(){for(var D=0;D<k;D++)T(v)}}function qe(v){return new Ne(v.line,v.ch)}function dt(v,T){return v.ch==T.ch&&v.line==T.line}function nt(v,T){return v.line<T.line?!0:v.line==T.line&&v.ch<T.ch}function pt(v,T){return arguments.length>2&&(T=pt.apply(void 0,Array.prototype.slice.call(arguments,1))),nt(v,T)?v:T}function tn(v,T){return arguments.length>2&&(T=tn.apply(void 0,Array.prototype.slice.call(arguments,1))),nt(v,T)?T:v}function fn(v,T,k){var D=nt(v,T),W=nt(T,k);return D&&W}function Yt(v,T){return v.getLine(T).length}function gr(v){return v.trim?v.trim():v.replace(/^\s+|\s+$/g,"")}function mn(v){return v.replace(/([.?*+$\[\]\/\\(){}|\-])/g,"\\$1")}function Rn(v,T,k){var D=Yt(v,T),W=new Array(k-D+1).join(" ");v.setCursor(new Ne(T,D)),v.replaceRange(W,v.getCursor())}function Ln(v,T){var k=[],D=v.listSelections(),W=qe(v.clipPos(T)),z=!dt(T,W),K=v.getCursor("head"),Y=bt(D,K),Q=dt(D[Y].head,D[Y].anchor),re=D.length-1,se=re-Y>Y?re:0,ye=D[se].anchor,Ce=Math.min(ye.line,W.line),me=Math.max(ye.line,W.line),we=ye.ch,Oe=W.ch,Le=D[se].head.ch-we,Ue=Oe-we;Le>0&&Ue<=0?(we++,z||Oe--):Le<0&&Ue>=0?(we--,Q||Oe++):Le<0&&Ue==-1&&(we--,Oe++);for(var at=Ce;at<=me;at++){var Ze={anchor:new Ne(at,we),head:new Ne(at,Oe)};k.push(Ze)}return v.setSelections(k),T.ch=Oe,ye.ch=we,ye}function Qn(v,T,k){for(var D=[],W=0;W<k;W++){var z=fe(T,W,0);D.push({anchor:z,head:z})}v.setSelections(D,0)}function bt(v,T,k){for(var D=0;D<v.length;D++){var W=dt(v[D].anchor,T),z=dt(v[D].head,T);if(W||z)return D}return-1}function He(v,T){var k=T.lastSelection,D=function(){var z=v.listSelections(),K=z[0],Y=z[z.length-1],Q=nt(K.anchor,K.head)?K.anchor:K.head,re=nt(Y.anchor,Y.head)?Y.head:Y.anchor;return[Q,re]},W=function(){var z=v.getCursor(),K=v.getCursor(),Y=k.visualBlock;if(Y){var Q=Y.width,re=Y.height;K=new Ne(z.line+re,z.ch+Q);for(var se=[],ye=z.line;ye<K.line;ye++){var Ce=new Ne(ye,z.ch),me=new Ne(ye,K.ch),we={anchor:Ce,head:me};se.push(we)}v.setSelections(se)}else{var Oe=k.anchorMark.find(),Le=k.headMark.find(),Ue=Le.line-Oe.line,at=Le.ch-Oe.ch;K={line:K.line+Ue,ch:Ue?K.ch:at+K.ch},k.visualLine&&(z=new Ne(z.line,0),K=new Ne(K.line,Yt(v,K.line))),v.setSelection(z,K)}return[z,K]};return T.visualMode?D():W()}function ke(v,T){var k=T.sel.anchor,D=T.sel.head;T.lastPastedText&&(D=v.posFromIndex(v.indexFromPos(k)+T.lastPastedText.length),T.lastPastedText=null),T.lastSelection={anchorMark:v.setBookmark(k),headMark:v.setBookmark(D),anchor:qe(k),head:qe(D),visualMode:T.visualMode,visualLine:T.visualLine,visualBlock:T.visualBlock}}function ze(v,T,k,D){var W=v.state.vim.sel,z=D?T:W.head,K=D?T:W.anchor,Y;return nt(k,T)&&(Y=k,k=T,T=Y),nt(z,K)?(z=pt(T,z),K=tn(K,k)):(K=pt(T,K),z=tn(z,k),z=fe(z,0,-1),z.ch==-1&&z.line!=v.firstLine()&&(z=new Ne(z.line-1,Yt(v,z.line-1)))),[K,z]}function Xe(v,T,W){var D=v.state.vim;T=T||D.sel;var W=W||D.visualLine?"line":D.visualBlock?"block":"char",z=gt(v,T,W);v.setSelections(z.ranges,z.primary)}function gt(v,T,k,D){var W=qe(T.head),z=qe(T.anchor);if(k=="char"){var K=!D&&!nt(T.head,T.anchor)?1:0,Y=nt(T.head,T.anchor)?1:0;return W=fe(T.head,0,K),z=fe(T.anchor,0,Y),{ranges:[{anchor:z,head:W}],primary:0}}if(k=="line"){if(nt(T.head,T.anchor))W.ch=0,z.ch=Yt(v,z.line);else{z.ch=0;var Q=v.lastLine();W.line>Q&&(W.line=Q),W.ch=Yt(v,W.line)}return{ranges:[{anchor:z,head:W}],primary:0}}if(k=="block"){var re=Math.min(z.line,W.line),se=z.ch,ye=Math.max(z.line,W.line),Ce=W.ch;se<Ce?Ce+=1:se+=1;for(var me=ye-re+1,we=W.line==re?0:me-1,Oe=[],Le=0;Le<me;Le++)Oe.push({anchor:new Ne(re+Le,se),head:new Ne(re+Le,Ce)});return{ranges:Oe,primary:we}}}function At(v){var T=v.getCursor("head");return v.getSelection().length==1&&(T=pt(T,v.getCursor("anchor"))),T}function St(v,T){var k=v.state.vim;T!==!1&&v.setCursor(ue(v,k.sel.head)),ke(v,k),k.visualMode=!1,k.visualLine=!1,k.visualBlock=!1,k.insertMode||Fe.signal(v,"vim-mode-change",{mode:"normal"})}function Dt(v,T,k){var D=v.getRange(T,k);if(/\n\s*$/.test(D)){var W=D.split(`
|
1403
|
+
`);W.pop();for(var z,z=W.pop();W.length>0&&z&&d(z);z=W.pop())k.line--,k.ch=0;z?(k.line--,k.ch=Yt(v,k.line)):k.ch=0}}function Ot(v,T,k){T.ch=0,k.ch=0,k.line++}function ut(v){if(!v)return 0;var T=v.search(/\S/);return T==-1?v.length:T}function xt(v,T,k){var D=T.inclusive,W=T.innerWord,z=T.bigWord,K=T.noSymbol,Y=T.multiline,Q=k||At(v),re=v.getLine(Q.line),se=re,ye=Q.line,Ce=ye,me=Q.ch,we,Oe=K?wo[0]:bi[0];if(W&&/\s/.test(re.charAt(me)))Oe=function(wn){return/\s/.test(wn)};else{for(;!Oe(re.charAt(me));)if(me++,me>=re.length){if(!Y)return null;me--,we=co(v,Q,!0,z,!0);break}z?Oe=bi[0]:(Oe=wo[0],Oe(re.charAt(me))||(Oe=wo[1]))}for(var Le=me,Ue=me;Oe(re.charAt(Ue))&&Ue>=0;)Ue--;if(Ue++,we)Le=we.to,Ce=we.line,se=v.getLine(Ce),!se&&Le==0&&Le++;else for(;Oe(re.charAt(Le))&&Le<re.length;)Le++;if(D){var at=Le,Ze=Q.ch<=Ue&&/\s/.test(re.charAt(Q.ch));if(!Ze)for(;/\s/.test(se.charAt(Le))&&Le<se.length;)Le++;if(at==Le||Ze){for(var tt=Ue;/\s/.test(re.charAt(Ue-1))&&Ue>0;)Ue--;!Ue&&!Ze&&(Ue=tt)}}return{start:new Ne(ye,Ue),end:new Ne(Ce,Le)}}function kn(v,T,k){var D=T;if(!Fe.findMatchingTag||!Fe.findEnclosingTag)return{start:D,end:D};var W=Fe.findMatchingTag(v,T)||Fe.findEnclosingTag(v,T);return!W||!W.open||!W.close?{start:D,end:D}:k?{start:W.open.from,end:W.close.to}:{start:W.open.to,end:W.close.from}}function kr(v,T,k){dt(T,k)||Be.jumpList.add(v,T,k)}function Kr(v,T){Be.lastCharacterSearch.increment=v,Be.lastCharacterSearch.forward=T.forward,Be.lastCharacterSearch.selectedCharacter=T.selectedCharacter}function Di(v,T,k,D){var W=qe(v.getCursor()),z=k?1:-1,K=k?v.lineCount():-1,Y=W.ch,Q=W.line,re=v.getLine(Q),se={lineText:re,nextCh:re.charAt(Y),lastCh:null,index:Y,symb:D,reverseSymb:(k?{")":"(","}":"{"}:{"(":")","{":"}"})[D],forward:k,depth:0,curMoveThrough:!1},ye=ai[D];if(!ye)return W;var Ce=li[ye].init,me=li[ye].isComplete;for(Ce&&Ce(se);Q!==K&&T;){if(se.index+=z,se.nextCh=se.lineText.charAt(se.index),!se.nextCh){if(Q+=z,se.lineText=v.getLine(Q)||"",z>0)se.index=0;else{var we=se.lineText.length;se.index=we>0?we-1:0}se.nextCh=se.lineText.charAt(se.index)}me(se)&&(W.line=Q,W.ch=se.index,T--)}return se.nextCh||se.curMoveThrough?new Ne(Q,se.index):W}function co(v,T,k,D,W){var z=T.line,K=T.ch,Y=v.getLine(z),Q=k?1:-1,re=D?bi:wo;if(W&&Y==""){if(z+=Q,Y=v.getLine(z),!l(v,z))return null;K=k?0:Y.length}for(;;){if(W&&Y=="")return{from:0,to:0,line:z};for(var se=Q>0?Y.length:-1,ye=se,Ce=se;K!=se;){for(var me=!1,we=0;we<re.length&&!me;++we)if(re[we](Y.charAt(K))){for(ye=K;K!=se&&re[we](Y.charAt(K));)K+=Q;if(Ce=K,me=ye!=Ce,ye==T.ch&&z==T.line&&Ce==ye+Q)continue;return{from:Math.min(ye,Ce+1),to:Math.max(ye,Ce),line:z}}me||(K+=Q)}if(z+=Q,!l(v,z))return null;Y=v.getLine(z),K=Q>0?0:Y.length}}function fr(v,T,k,D,W,z){var K=qe(T),Y=[];(D&&!W||!D&&W)&&k++;for(var Q=!D||!W,re=0;re<k;re++){var se=co(v,T,D,z,Q);if(!se){var ye=Yt(v,v.lastLine());Y.push(D?{line:v.lastLine(),from:ye,to:ye}:{line:0,from:0,to:0});break}Y.push(se),T=new Ne(se.line,D?se.to-1:se.from)}var Ce=Y.length!=k,me=Y[0],we=Y.pop();return D&&!W?(!Ce&&(me.from!=K.ch||me.line!=K.line)&&(we=Y.pop()),new Ne(we.line,we.from)):D&&W?new Ne(we.line,we.to-1):!D&&W?(!Ce&&(me.to!=K.ch||me.line!=K.line)&&(we=Y.pop()),new Ne(we.line,we.to)):new Ne(we.line,we.from)}function uo(v,T,k,D,W){var z=T,K=new Ne(z.line+k.repeat-1,1/0),Y=v.clipPos(K);return Y.ch--,W||(D.lastHPos=1/0,D.lastHSPos=v.charCoords(Y,"div").left),K}function Do(v,T,k,D,W){for(var z=W||v.getCursor(),K=z.ch,Y,Q=0;Q<T;Q++){var re=v.getLine(z.line);if(Y=Ua(K,re,D,k),Y==-1)return null;K=Y}return new Ne(v.getCursor().line,Y)}function Ha(v,T){var k=v.getCursor().line;return ue(v,new Ne(k,T-1))}function ii(v,T,k,D){!x(k,no)&&!Zt.test(k)||(T.marks[k]&&T.marks[k].clear(),T.marks[k]=v.setBookmark(D))}function Ua(v,T,k,D,W){var z;return D?(z=T.indexOf(k,v+1),z!=-1):(z=T.lastIndexOf(k,v-1),z!=-1),z}function ys(v,T,k,D,W){function z(Ue){return!/\S/.test(v.getLine(Ue))}function K(Ue,at,Ze){return Ze?z(Ue)!=z(Ue+at):!z(Ue)&&z(Ue+at)}function Y(Ue){D=D>0?1:-1;var at=v.ace.session.getFoldLine(Ue);at&&Ue+D>at.start.row&&Ue+D<at.end.row&&(D=(D>0?at.end.row:at.start.row)-Ue)}var Q=T.line,re=v.firstLine(),se=v.lastLine(),ye,Ce,me=Q;if(D){for(;re<=me&&me<=se&&k>0;)Y(me),K(me,D)&&k--,me+=D;return new Ne(me,0)}var we=v.state.vim;if(we.visualLine&&K(Q,1,!0)){var Oe=we.sel.anchor;K(Oe.line,-1,!0)&&(!W||Oe.line!=Q)&&(Q+=1)}var Le=z(Q);for(me=Q;me<=se&&k;me++)K(me,1,!0)&&(!W||z(me)!=Le)&&k--;for(Ce=new Ne(me,0),me>se&&!Le?Le=!0:W=!1,me=Q;me>re&&!((!W||z(me)==Le||me==Q)&&K(me,-1,!0));me--);return ye=new Ne(me,0),{start:ye,end:Ce}}function ra(v,T,k,D,W){function z(re){re.pos+re.dir<0||re.pos+re.dir>=re.line.length?re.line=null:re.pos+=re.dir}function K(re,se,ye,Ce){var me=re.getLine(se),we={line:me,ln:se,pos:ye,dir:Ce};if(we.line==="")return{ln:we.ln,pos:we.pos};var Oe=we.pos;for(z(we);we.line!==null;){if(Oe=we.pos,w(we.line[we.pos])){if(!W)return{ln:we.ln,pos:we.pos+1};for(z(we);we.line!==null&&d(we.line[we.pos]);)Oe=we.pos,z(we);return{ln:we.ln,pos:Oe+1}}z(we)}return{ln:we.ln,pos:Oe+1}}function Y(re,se,ye,Ce){var me=re.getLine(se),we={line:me,ln:se,pos:ye,dir:Ce};if(we.line==="")return{ln:we.ln,pos:we.pos};var Oe=we.pos;for(z(we);we.line!==null;){if(!d(we.line[we.pos])&&!w(we.line[we.pos]))Oe=we.pos;else if(w(we.line[we.pos]))return W?d(we.line[we.pos+1])?{ln:we.ln,pos:we.pos+1}:{ln:we.ln,pos:Oe}:{ln:we.ln,pos:Oe};z(we)}return we.line=me,W&&d(we.line[we.pos])?{ln:we.ln,pos:we.pos}:{ln:we.ln,pos:Oe}}for(var Q={ln:T.line,pos:T.ch};k>0;)D<0?Q=Y(v,Q.ln,Q.pos,D):Q=K(v,Q.ln,Q.pos,D),k--;return new Ne(Q.ln,Q.pos)}function Pi(v,T,k,D){function W(Q,re){if(re.pos+re.dir<0||re.pos+re.dir>=re.line.length){if(re.ln+=re.dir,!l(Q,re.ln)){re.line=null,re.ln=null,re.pos=null;return}re.line=Q.getLine(re.ln),re.pos=re.dir>0?0:re.line.length-1}else re.pos+=re.dir}function z(Q,re,se,ye){var Le=Q.getLine(re),Ce=Le==="",me={line:Le,ln:re,pos:se,dir:ye},we={ln:me.ln,pos:me.pos},Oe=me.line==="";for(W(Q,me);me.line!==null;){if(we.ln=me.ln,we.pos=me.pos,me.line===""&&!Oe)return{ln:me.ln,pos:me.pos};if(Ce&&me.line!==""&&!d(me.line[me.pos]))return{ln:me.ln,pos:me.pos};w(me.line[me.pos])&&!Ce&&(me.pos===me.line.length-1||d(me.line[me.pos+1]))&&(Ce=!0),W(Q,me)}var Le=Q.getLine(we.ln);we.pos=0;for(var Ue=Le.length-1;Ue>=0;--Ue)if(!d(Le[Ue])){we.pos=Ue;break}return we}function K(Q,re,se,ye){var Oe=Q.getLine(re),Ce={line:Oe,ln:re,pos:se,dir:ye},me={ln:Ce.ln,pos:null},we=Ce.line==="";for(W(Q,Ce);Ce.line!==null;){if(Ce.line===""&&!we)return me.pos!==null?me:{ln:Ce.ln,pos:Ce.pos};if(!(!w(Ce.line[Ce.pos])||me.pos===null||Ce.ln===me.ln&&Ce.pos+1===me.pos))return me;Ce.line!==""&&!d(Ce.line[Ce.pos])&&(we=!1,me={ln:Ce.ln,pos:Ce.pos}),W(Q,Ce)}var Oe=Q.getLine(me.ln);me.pos=0;for(var Le=0;Le<Oe.length;++Le)if(!d(Oe[Le])){me.pos=Le;break}return me}for(var Y={ln:T.line,pos:T.ch};k>0;)D<0?Y=K(v,Y.ln,Y.pos,D):Y=z(v,Y.ln,Y.pos,D),k--;return new Ne(Y.ln,Y.pos)}function Hn(v,T,k,D){var W=T,z,K,Y={"(":/[()]/,")":/[()]/,"[":/[[\]]/,"]":/[[\]]/,"{":/[{}]/,"}":/[{}]/,"<":/[<>]/,">":/[<>]/}[k],Q={"(":"(",")":"(","[":"[","]":"[","{":"{","}":"{","<":"<",">":"<"}[k],re=v.getLine(W.line).charAt(W.ch),se=re===Q?1:0;if(z=v.scanForBracket(new Ne(W.line,W.ch+se),-1,void 0,{bracketRegex:Y}),K=v.scanForBracket(new Ne(W.line,W.ch+se),1,void 0,{bracketRegex:Y}),!z||!K)return null;if(z=z.pos,K=K.pos,z.line==K.line&&z.ch>K.ch||z.line>K.line){var ye=z;z=K,K=ye}return D?K.ch+=1:z.ch+=1,{start:z,end:K}}function Sr(v,T,k,D){var W=qe(T),z=v.getLine(W.line),K=z.split(""),Y,Q,re,se,ye=K.indexOf(k);if(W.ch<ye)W.ch=ye;else if(ye<W.ch&&K[W.ch]==k){var Ce=/string/.test(v.getTokenTypeAt(fe(T,0,1))),me=/string/.test(v.getTokenTypeAt(T)),we=Ce&&!me;we||(Q=W.ch,--W.ch)}if(K[W.ch]==k&&!Q)Y=W.ch+1;else for(re=W.ch;re>-1&&!Y;re--)K[re]==k&&(Y=re+1);if(Y&&!Q)for(re=Y,se=K.length;re<se&&!Q;re++)K[re]==k&&(Q=re);return!Y||!Q?{start:W,end:W}:(D&&(--Y,++Q),{start:new Ne(W.line,Y),end:new Ne(W.line,Q)})}function Fi(){}function $n(v){var T=v.state.vim;return T.searchState_||(T.searchState_=new Fi)}function Ar(v){return Wi(v,"/")}function Qi(v){return ws(v,"/")}function Wi(v,T){var k=ws(v,T)||[];if(!k.length)return[];var D=[];if(k[0]===0){for(var W=0;W<k.length;W++)typeof k[W]=="number"&&D.push(v.substring(k[W]+1,k[W+1]));return D}}function ws(v,T){T||(T="/");for(var k=!1,D=[],W=0;W<v.length;W++){var z=v.charAt(W);!k&&z==T&&D.push(W),k=!k&&z=="\\"}return D}function ia(v){for(var T="|(){",k="}",D=!1,W=[],z=-1;z<v.length;z++){var K=v.charAt(z)||"",Y=v.charAt(z+1)||"",Q=Y&&T.indexOf(Y)!=-1;D?((K!=="\\"||!Q)&&W.push(K),D=!1):K==="\\"?(D=!0,Y&&k.indexOf(Y)!=-1&&(Q=!0),(!Q||Y==="\\")&&W.push(K)):(W.push(K),Q&&Y!=="\\"&&W.push("\\"))}return W.join("")}function Va(v){for(var T=!1,k=[],D=-1;D<v.length;D++){var W=v.charAt(D)||"",z=v.charAt(D+1)||"";ki[W+z]?(k.push(ki[W+z]),D++):T?(k.push(W),T=!1):W==="\\"?(T=!0,o(z)||z==="$"?k.push("$"):z!=="/"&&z!=="\\"&&k.push("\\")):(W==="$"&&k.push("$"),k.push(W),z==="/"&&k.push("\\"))}return k.join("")}function Ka(v){for(var T=new Fe.StringStream(v),k=[];!T.eol();){for(;T.peek()&&T.peek()!="\\";)k.push(T.next());var D=!1;for(var W in cr)if(T.match(W,!0)){D=!0,k.push(cr[W]);break}D||k.push(T.next())}return k.join("")}function Bi(v,T,k){var D=Be.registerController.getRegister("/");if(D.setText(v),v instanceof RegExp)return v;var W=Qi(v),z,K;if(!W.length)z=v;else{z=v.substring(0,W[0]);var Y=v.substring(W[0]);K=Y.indexOf("i")!=-1}if(!z)return null;S("pcre")||(z=ia(z)),k&&(T=/^[^A-Z]*$/.test(z));var Q=new RegExp(z,T||K?"im":"m");return Q}function oi(v){typeof v=="string"&&(v=document.createElement(v));for(var T,k=1;k<arguments.length;k++)if(T=arguments[k])if(typeof T!="object"&&(T=document.createTextNode(T)),T.nodeType)v.appendChild(T);else for(var D in T)Object.prototype.hasOwnProperty.call(T,D)&&(D[0]==="$"?v.style[D.slice(1)]=T[D]:v.setAttribute(D,T[D]));return v}function Ut(v,T){var k=oi("div",{$color:"red",$whiteSpace:"pre",class:"cm-vim-message"},T);v.openNotification?v.openNotification(k,{bottom:!0,duration:5e3}):alert(k.innerText)}function oa(v,T){return oi("div",{$display:"flex"},oi("span",{$fontFamily:"monospace",$whiteSpace:"pre",$flex:1},v,oi("input",{type:"text",autocorrect:"off",autocapitalize:"off",spellcheck:"false",$width:"100%"})),T&&oi("span",{$color:"#888"},T))}function _r(v,T){if(Lr.length){T.value||(T.value=""),xn=T;return}var k=oa(T.prefix,T.desc);if(v.openDialog)v.openDialog(k,T.onClose,{onKeyDown:T.onKeyDown,onKeyUp:T.onKeyUp,bottom:!0,selectValueOnOpen:!1,value:T.value});else{var D="";typeof T.prefix!="string"&&T.prefix&&(D+=T.prefix.textContent),T.desc&&(D+=" "+T.desc),T.onClose(prompt(D,""))}}function Un(v,T){if(v instanceof RegExp&&T instanceof RegExp){for(var k=["global","multiline","ignoreCase","source"],D=0;D<k.length;D++){var W=k[D];if(v[W]!==T[W])return!1}return!0}return!1}function vn(v,T,k,D){if(T){var W=$n(v),z=Bi(T,!!k,!!D);if(z)return vi(v,z),Un(z,W.getQuery())||W.setQuery(z),z}}function On(v){if(v.source.charAt(0)=="^")var T=!0;return{token:function(k){if(T&&!k.sol()){k.skipToEnd();return}var D=k.match(v,!1);if(D)return D[0].length==0?(k.next(),"searching"):!k.sol()&&(k.backUp(1),!v.exec(k.next()+D[0]))?(k.next(),null):(k.match(v),"searching");for(;!k.eol()&&(k.next(),!k.match(v,!1)););},query:v}}function vi(v,T){clearTimeout(ur);var k=$n(v);k.highlightTimeout=ur,ur=setTimeout(function(){if(v.state.vim){var D=$n(v);D.highlightTimeout=null;var W=D.getOverlay();(!W||T!=W.query)&&(W&&v.removeOverlay(W),W=On(T),v.addOverlay(W),v.showMatchesOnScrollbar&&(D.getScrollbarAnnotate()&&D.getScrollbarAnnotate().clear(),D.setScrollbarAnnotate(v.showMatchesOnScrollbar(T))),D.setOverlay(W))}},50)}function Tr(v,T,k,D){return D===void 0&&(D=1),v.operation(function(){for(var W=v.getCursor(),z=v.getSearchCursor(k,W),K=0;K<D;K++){var Y=z.find(T);if(K==0&&Y&&dt(z.from(),W)){var Q=T?z.from():z.to();Y=z.find(T),Y&&!Y[0]&&dt(z.from(),Q)&&v.getLine(Q.line).length==Q.ch&&(Y=z.find(T))}if(!Y&&(z=v.getSearchCursor(k,T?new Ne(v.lastLine()):new Ne(v.firstLine(),0)),!z.find(T)))return}return z.from()})}function yi(v,T,k,D,W){return D===void 0&&(D=1),v.operation(function(){var z=v.getCursor(),K=v.getSearchCursor(k,z),Y=K.find(!T);!W.visualMode&&Y&&dt(K.from(),z)&&K.find(!T);for(var Q=0;Q<D;Q++)if(Y=K.find(T),!Y&&(K=v.getSearchCursor(k,T?new Ne(v.lastLine()):new Ne(v.firstLine(),0)),!K.find(T)))return;return[K.from(),K.to()]})}function Po(v){var T=$n(v);T.highlightTimeout&&(clearTimeout(T.highlightTimeout),T.highlightTimeout=null),v.removeOverlay($n(v).getOverlay()),T.setOverlay(null),T.getScrollbarAnnotate()&&(T.getScrollbarAnnotate().clear(),T.setScrollbarAnnotate(null))}function bs(v,T,k){return typeof v!="number"&&(v=v.line),T instanceof Array?x(v,T):typeof k=="number"?v>=T&&v<=k:v==T}function Zi(v){var T=v.ace.renderer;return{top:T.getFirstFullyVisibleRow(),bottom:T.getLastFullyVisibleRow()}}function qr(v,T,k){if(k=="'"||k=="`")return Be.jumpList.find(v,-1)||new Ne(0,0);if(k==".")return ho(v);var D=T.marks[k];return D&&D.find()}function ho(v){if(v.getLastEditEnd)return v.getLastEditEnd();for(var T=v.doc.history.done,k=T.length;k--;)if(T[k].changes)return qe(T[k].changes[0].to)}function Fo(v,T,k,D,W,z,K,Y,Q){function re(){v.operation(function(){for(;!Oe;)se(),Ce();me()})}function se(){var Ze=v.getRange(z.from(),z.to()),tt=Ze.replace(K,Y),wn=z.to().line;z.replace(tt),Ue=z.to().line,W+=Ue-wn,at=Ue<wn}function ye(){var Ze=Le&&qe(z.to()),tt=z.findNext();return tt&&!tt[0]&&Ze&&dt(z.from(),Ze)&&(tt=z.findNext()),tt}function Ce(){for(;ye()&&bs(z.from(),D,W);)if(!(!k&&z.from().line==Ue&&!at)){v.scrollIntoView(z.from(),30),v.setSelection(z.from(),z.to()),Le=z.from(),Oe=!1;return}Oe=!0}function me(Ze){if(Ze&&Ze(),v.focus(),Le){v.setCursor(Le);var tt=v.state.vim;tt.exMode=!1,tt.lastHPos=tt.lastHSPos=Le.ch}Q&&Q()}function we(Ze,tt,wn){Fe.e_stop(Ze);var lt=H(Ze);switch(lt){case"y":se(),Ce();break;case"n":Ce();break;case"a":var Sn=Q;Q=void 0,v.operation(re),Q=Sn;break;case"l":se();case"q":case"<Esc>":case"<C-c>":case"<C-[>":me(wn)}return Oe&&me(wn),!0}v.state.vim.exMode=!0;var Oe=!1,Le,Ue,at;if(Ce(),Oe){Ut(v,"No matches for "+K.source);return}if(!T){re(),Q&&Q();return}_r(v,{prefix:oi("span","replace with ",oi("strong",Y)," (y/n/a/q/l)"),onKeyDown:we})}function Gr(v,T){var k=v.state.vim,D=Be.macroModeState,W=Be.registerController.getRegister("."),z=D.isPlaying,K=D.lastInsertModeChanges;z||(v.off("change",po),k.insertEnd&&k.insertEnd.clear(),k.insertEnd=null,Fe.off(v.getInputField(),"keydown",Ss)),!z&&k.insertModeRepeat>1&&(sa(v,k,k.insertModeRepeat-1,!0),k.lastEditInputState.repeatOverride=k.insertModeRepeat),delete k.insertModeRepeat,k.insertMode=!1,T||v.setCursor(v.getCursor().line,v.getCursor().ch-1),v.setOption("keyMap","vim"),v.setOption("disableInput",!0),v.toggleOverwrite(!1),W.setText(K.changes.join("")),Fe.signal(v,"vim-mode-change",{mode:"normal"}),D.isRecording&&sr(D)}function Wo(v){Mn.unshift(v)}function xs(v,T,k,D,W){var z={keys:v,type:T};z[T]=k,z[T+"Args"]=D;for(var K in W)z[K]=W[K];Wo(z)}function Cs(v,T,k,D){var W=Be.registerController.getRegister(D);if(D==":"){W.keyBuffer[0]&&vr.processCommand(v,W.keyBuffer[0]),k.isPlaying=!1;return}var z=W.keyBuffer,K=0;k.isPlaying=!0,k.replaySearchQueries=W.searchQueries.slice(0);for(var Y=0;Y<z.length;Y++)for(var Q=z[Y],re,se;Q;)if(re=/<\w+-.+?>|<\w+>|./.exec(Q),se=re[0],Q=Q.substring(re.index+se.length),Ct.handleKey(v,se,"macro"),T.insertMode){var ye=W.insertModeChanges[K++].changes;Be.macroModeState.lastInsertModeChanges.changes=ye,Uo(v,ye,1),Gr(v)}k.isPlaying=!1}function Bo(v,T){if(!v.isPlaying){var k=v.latestRegister,D=Be.registerController.getRegister(k);D&&D.pushText(T)}}function sr(v){if(!v.isPlaying){var T=v.latestRegister,k=Be.registerController.getRegister(T);k&&k.pushInsertModeChanges&&k.pushInsertModeChanges(v.lastInsertModeChanges)}}function ks(v,T){if(!v.isPlaying){var k=v.latestRegister,D=Be.registerController.getRegister(k);D&&D.pushSearchQuery&&D.pushSearchQuery(T)}}function po(v,T){var k=Be.macroModeState,D=k.lastInsertModeChanges;if(!k.isPlaying)for(var W=v.state.vim;T;){if(D.expectCursorActivityForChange=!0,D.ignoreCount>1)D.ignoreCount--;else if(T.origin=="+input"||T.origin=="paste"||T.origin===void 0){var z=v.listSelections().length;z>1&&(D.ignoreCount=z);var K=T.text.join(`
|
1404
|
+
`);if(D.maybeReset&&(D.changes=[],D.maybeReset=!1),K)if(v.state.overwrite&&!/\n/.test(K))D.changes.push([K]);else{if(K.length>1){var Y=W&&W.insertEnd&&W.insertEnd.find(),Q=v.getCursor();if(Y&&Y.line==Q.line){var re=Y.ch-Q.ch;re>0&&re<K.length&&(D.changes.push([K,re]),K="")}}K&&D.changes.push(K)}}T=T.next}}function zo(v){var T=v.state.vim;if(T.insertMode){var k=Be.macroModeState;if(k.isPlaying)return;var D=k.lastInsertModeChanges;D.expectCursorActivityForChange?D.expectCursorActivityForChange=!1:(D.maybeReset=!0,T.insertEnd&&T.insertEnd.clear(),T.insertEnd=v.setBookmark(v.getCursor(),{insertLeft:!0}))}else v.curOp.isVimOp||jo(v,T)}function jo(v,T,k){var D=v.getCursor("anchor"),W=v.getCursor("head");if(T.visualMode&&!v.somethingSelected()?St(v,!1):!T.visualMode&&!T.insertMode&&v.somethingSelected()&&(T.visualMode=!0,T.visualLine=!1,Fe.signal(v,"vim-mode-change",{mode:"visual"})),T.visualMode){var z=nt(W,D)?0:-1,K=nt(W,D)?-1:0;W=fe(W,0,z),D=fe(D,0,K),T.sel={anchor:D,head:W},ii(v,T,"<",pt(W,D)),ii(v,T,">",tn(W,D))}else!T.insertMode&&!k&&(T.lastHPos=v.getCursor().ch)}function Ji(v,T){this.keyName=v,this.key=T.key,this.ctrlKey=T.ctrlKey,this.altKey=T.altKey,this.metaKey=T.metaKey,this.shiftKey=T.shiftKey}function Ss(v){var T=Be.macroModeState,k=T.lastInsertModeChanges,D=Fe.keyName?Fe.keyName(v):v.key;D&&(D.indexOf("Delete")!=-1||D.indexOf("Backspace")!=-1)&&(k.maybeReset&&(k.changes=[],k.maybeReset=!1),k.changes.push(new Ji(D,v)))}function sa(v,T,k,D){function W(){Y?Dn.processAction(v,T,T.lastEditActionCommand):Dn.evalInput(v,T)}function z(se){if(K.lastInsertModeChanges.changes.length>0){se=T.lastEditActionCommand?se:1;var ye=K.lastInsertModeChanges;Uo(v,ye.changes,se)}}var K=Be.macroModeState;K.isPlaying=!0;var Y=!!T.lastEditActionCommand,Q=T.inputState;if(T.inputState=T.lastEditInputState,Y&&T.lastEditActionCommand.interlaceInsertRepeat)for(var re=0;re<k;re++)W(),z(1);else D||W(),z(k);T.inputState=Q,T.insertMode&&!D&&Gr(v),K.isPlaying=!1}function Ho(v,T){Fe.lookupKey(T,"vim-insert",function(k){return typeof k=="string"?Fe.commands[k](v):k(v),!0})}function Uo(v,T,k){var D=v.getCursor("head"),W=Be.macroModeState.lastInsertModeChanges.visualBlock;W&&(Qn(v,D,W+1),k=v.listSelections().length,v.setCursor(D));for(var z=0;z<k;z++){W&&v.setCursor(fe(D,z,0));for(var K=0;K<T.length;K++){var Y=T[K];if(Y instanceof Ji)Ho(v,Y.keyName);else if(typeof Y=="string")v.replaceSelection(Y);else{var Q=v.getCursor(),re=fe(Q,0,Y[0].length-(Y[1]||0));v.replaceRange(Y[0],Q,Y[1]?Q:re),v.setCursor(re)}}}W&&v.setCursor(fe(D,0,1))}function As(v,T,k,D){T.length>1&&T[0]=="n"&&(T=T.replace("numpad","")),T=$r[T]||T;var W="";if(k.ctrlKey&&(W+="C-"),k.altKey&&(W+="A-"),(W||T.length>1)&&k.shiftKey&&(W+="S-"),D&&!D.expectLiteralNext&&T.length==1){if(Vn.keymap&&T in Vn.keymap)(Vn.remapCtrl!==!1||!W)&&(T=Vn.keymap[T]);else if(T.charCodeAt(0)>255){var z=k.code&&k.code.slice(-1)||"";k.shiftKey||(z=z.toLowerCase()),z&&(T=z)}}return W+=T,W.length>1&&(W="<"+W+">"),W}function Vo(v){var T=new v.constructor;return Object.keys(v).forEach(function(k){if(k!="insertEnd"){var D=v[k];Array.isArray(D)?D=D.slice():D&&typeof D=="object"&&D.constructor!=Object&&(D=Vo(D)),T[k]=D}}),v.sel&&(T.sel={head:v.sel.head&&qe(v.sel.head),anchor:v.sel.anchor&&qe(v.sel.anchor)}),T}function go(v,T,k){var D=!1,W=Ct.maybeInitVimState_(v),z=W.visualBlock||W.wasInVisualBlock,K=v.ace.inMultiSelectMode;if(W.wasInVisualBlock&&!K?W.wasInVisualBlock=!1:K&&W.visualBlock&&(W.wasInVisualBlock=!0),T=="<Esc>"&&!W.insertMode&&!W.visualMode&&K)v.ace.exitMultiSelectMode();else if(z||!K||v.ace.inVirtualSelectionMode)D=Ct.handleKey(v,T,k);else{var Y=Vo(W),Q=W.inputState.changeQueueList||[];v.operation(function(){v.curOp.isVimOp=!0;var re=0;v.ace.forEachSelection(function(){var se=v.ace.selection;v.state.vim.lastHPos=se.$desiredColumn==null?se.lead.column:se.$desiredColumn,v.state.vim.inputState.changeQueue=Q[re];var ye=v.getCursor("head"),Ce=v.getCursor("anchor"),me=nt(ye,Ce)?0:-1,we=nt(ye,Ce)?-1:0;ye=fe(ye,0,me),Ce=fe(Ce,0,we),v.state.vim.sel.head=ye,v.state.vim.sel.anchor=Ce,D=ci(v,T,k),se.$desiredColumn=v.state.vim.lastHPos==-1?null:v.state.vim.lastHPos,v.ace.inVirtualSelectionMode&&(Q[re]=v.state.vim.inputState.changeQueue),v.virtualSelectionMode()&&(v.state.vim=Vo(Y)),re++}),v.curOp.cursorActivity&&!D&&(v.curOp.cursorActivity=!1),W.status=v.state.vim.status,v.state.vim=W,W.inputState.changeQueueList=Q,W.inputState.changeQueue=null},!0)}return D&&!W.visualMode&&!W.insert&&W.visualMode!=v.somethingSelected()&&jo(v,W,!0),D}function wi(v,T){T.off("beforeEndOperation",wi);var k=T.state.cm.vimCmd;k&&T.execCommand(k.exec?k:k.name,k.args),T.curOp=T.prevOp}var ar=e("../range").Range,eo=e("../lib/event_emitter").EventEmitter,zi=e("../lib/dom"),aa=e("../lib/oop"),qa=e("../lib/keys"),fo=e("../lib/event"),ji=e("../search").Search,mo=e("../lib/useragent"),Ko=e("../search_highlight").SearchHighlight,vo=e("../commands/multi_select_commands"),la=e("../mode/text").Mode.prototype.tokenRe,to=e("../ext/hardwrap").hardWrap;e("../multi_select");var Fe=function(v){this.ace=v,this.state={},this.marks={},this.options={},this.$uid=0,this.onChange=this.onChange.bind(this),this.onSelectionChange=this.onSelectionChange.bind(this),this.onBeforeEndOperation=this.onBeforeEndOperation.bind(this),this.ace.on("change",this.onChange),this.ace.on("changeSelection",this.onSelectionChange),this.ace.on("beforeEndOperation",this.onBeforeEndOperation)};Fe.Pos=function(v,T){if(!(this instanceof Ne))return new Ne(v,T);this.line=v,this.ch=T},Fe.defineOption=function(v,T,k){},Fe.commands={redo:function(v){v.ace.redo()},undo:function(v){v.ace.undo()},newlineAndIndent:function(v){v.ace.insert(`
|
1405
|
+
`)},goLineLeft:function(v){v.ace.selection.moveCursorLineStart()},goLineRight:function(v){v.ace.selection.moveCursorLineEnd()}},Fe.keyMap={},Fe.addClass=Fe.rmClass=function(){},Fe.e_stop=Fe.e_preventDefault=fo.stopEvent,Fe.keyName=function(v){var T=qa[v.keyCode]||v.key||"";return T.length==1&&(T=T.toUpperCase()),T=fo.getModifierString(v).replace(/(^|-)\w/g,function(k){return k.toUpperCase()})+T,T},Fe.keyMap.default=function(v){return function(T){var k=T.ace.commands.commandKeyBinding[v.toLowerCase()];return k&&T.ace.execCommand(k)!==!1}},Fe.lookupKey=function v(T,k,D){k||(k="default"),typeof k=="string"&&(k=Fe.keyMap[k]||Fe.keyMap.default);var W=typeof k=="function"?k(T):k[T];if(W===!1)return"nothing";if(W==="...")return"multi";if(W!=null&&D(W))return"handled";if(k.fallthrough){if(!Array.isArray(k.fallthrough))return v(T,k.fallthrough,D);for(var z=0;z<k.fallthrough.length;z++){var K=v(T,k.fallthrough[z],D);if(K)return K}}},Fe.findMatchingTag=function(v,T){return v.findMatchingTag(T)},Fe.findEnclosingTag=function(v,T){},Fe.signal=function(v,T,k){return v._signal(T,k)},Fe.on=fo.addListener,Fe.off=fo.removeListener,Fe.isWordChar=function(v){return v<""?/^\w$/.test(v):(la.lastIndex=0,la.test(v))},(function(){aa.implement(Fe.prototype,eo),this.destroy=function(){this.ace.off("change",this.onChange),this.ace.off("changeSelection",this.onSelectionChange),this.ace.off("beforeEndOperation",this.onBeforeEndOperation),this.removeOverlay()},this.virtualSelectionMode=function(){return this.ace.inVirtualSelectionMode&&this.ace.selection.index},this.onChange=function(k){this.$lineHandleChanges&&this.$lineHandleChanges.push(k);var D={text:k.action[0]=="i"?k.lines:[]},W=this.curOp=this.curOp||{};W.changeHandlers||(W.changeHandlers=this._eventRegistry.change&&this._eventRegistry.change.slice()),W.lastChange?W.lastChange.next=W.lastChange=D:W.lastChange=W.change=D,this.$updateMarkers(k)},this.onSelectionChange=function(){var k=this.curOp=this.curOp||{};k.cursorActivityHandlers||(k.cursorActivityHandlers=this._eventRegistry.cursorActivity&&this._eventRegistry.cursorActivity.slice()),this.curOp.cursorActivity=!0,this.ace.inMultiSelectMode&&this.ace.keyBinding.removeKeyboardHandler(vo.keyboardHandler)},this.operation=function(k,D){if(!D&&this.curOp||D&&this.curOp&&this.curOp.force)return k();if((D||!this.ace.curOp)&&this.curOp&&this.onBeforeEndOperation(),!this.ace.curOp){var W=this.ace.prevOp;this.ace.startOperation({command:{name:"vim",scrollIntoView:"cursor"}})}var z=this.curOp=this.curOp||{};this.curOp.force=D;var K=k();return this.ace.curOp&&this.ace.curOp.command.name=="vim"&&(this.state.dialog&&(this.ace.curOp.command.scrollIntoView=this.ace.curOp.vimDialogScroll),this.ace.endOperation(),!z.cursorActivity&&!z.lastChange&&W&&(this.ace.prevOp=W)),(D||!this.ace.curOp)&&this.curOp&&this.onBeforeEndOperation(),K},this.onBeforeEndOperation=function(){var k=this.curOp;k&&(k.change&&this.signal("change",k.change,k),k&&k.cursorActivity&&this.signal("cursorActivity",null,k),this.curOp=null)},this.signal=function(k,D,W){var z=W?W[k+"Handlers"]:(this._eventRegistry||{})[k];if(z){z=z.slice();for(var K=0;K<z.length;K++)z[K](this,D)}},this.firstLine=function(){return 0},this.lastLine=function(){return this.ace.session.getLength()-1},this.lineCount=function(){return this.ace.session.getLength()},this.setCursor=function(k,D){typeof k=="object"&&(D=k.ch,k=k.line);var W=!this.curOp&&!this.ace.inVirtualSelectionMode;this.ace.inVirtualSelectionMode||this.ace.exitMultiSelectMode(),this.ace.session.unfold({row:k,column:D}),this.ace.selection.moveTo(k,D),W&&(this.ace.renderer.scrollCursorIntoView(),this.ace.endOperation())},this.getCursor=function(k){var D=this.ace.selection,W=k=="anchor"?D.isEmpty()?D.lead:D.anchor:k=="head"||!k?D.lead:D.getRange()[k];return y(W)},this.listSelections=function(k){var D=this.ace.multiSelect.rangeList.ranges;return!D.length||this.ace.inVirtualSelectionMode?[{anchor:this.getCursor("anchor"),head:this.getCursor("head")}]:D.map(function(W){return{anchor:this.clipPos(y(W.cursor==W.end?W.start:W.end)),head:this.clipPos(y(W.cursor))}},this)},this.setSelections=function(k,D){var W=this.ace.multiSelect,z=k.map(function(re){var se=p(re.anchor),ye=p(re.head),Ce=ar.comparePoints(se,ye)<0?new ar.fromPoints(se,ye):new ar.fromPoints(ye,se);return Ce.cursor=ar.comparePoints(Ce.start,ye)?Ce.end:Ce.start,Ce});if(this.ace.inVirtualSelectionMode){this.ace.selection.fromOrientedRange(z[0]);return}D?z[D]&&z.push(z.splice(D,1)[0]):z=z.reverse(),W.toSingleRange(z[0].clone());for(var K=this.ace.session,Y=0;Y<z.length;Y++){var Q=K.$clipRangeToDocument(z[Y]);W.addRange(Q)}},this.setSelection=function(k,D,W){var z=this.ace.selection;z.moveTo(k.line,k.ch),z.selectTo(D.line,D.ch),W&&W.origin=="*mouse"&&this.onBeforeEndOperation()},this.somethingSelected=function(k){return!this.ace.selection.isEmpty()},this.clipPos=function(k){var D=this.ace.session.$clipPositionToDocument(k.line,k.ch);return y(D)},this.foldCode=function(k){this.ace.session.$toggleFoldWidget(k.line,{})},this.markText=function(k){return{clear:function(){},find:function(){}}},this.$updateMarkers=function(k){var D=k.action=="insert",W=k.start,z=k.end,K=(z.row-W.row)*(D?1:-1),Y=(z.column-W.column)*(D?1:-1);D&&(z=W);for(var Q in this.marks){var re=this.marks[Q],se=ar.comparePoints(re,W);if(!(se<0)){if(se===0&&D)if(!re.$insertRight)se=1;else{if(re.bias!=1){re.bias=-1;continue}se=1}var ye=D?se:ar.comparePoints(re,z);if(ye>0){re.row+=K,re.column+=re.row==z.row?Y:0;continue}!D&&ye<=0&&(re.row=W.row,re.column=W.column,ye===0&&(re.bias=1))}}};var v=function(k,D,W,z){this.cm=k,this.id=D,this.row=W,this.column=z,k.marks[this.id]=this};v.prototype.clear=function(){delete this.cm.marks[this.id]},v.prototype.find=function(){return y(this)},this.setBookmark=function(k,D){var W=new v(this,this.$uid++,k.line,k.ch);return(!D||!D.insertLeft)&&(W.$insertRight=!0),this.marks[W.id]=W,W},this.moveH=function(k,D){if(D=="char"){var W=this.ace.selection;W.clearSelection(),W.moveCursorBy(0,k)}},this.findPosV=function(k,D,W,z){if(W=="page"){var K=this.ace.renderer,Y=K.layerConfig;D*=Math.floor(Y.height/Y.lineHeight),W="line"}if(W=="line"){var Q=this.ace.session.documentToScreenPosition(k.line,k.ch);z!=null&&(Q.column=z),Q.row+=D,Q.row=Math.min(Math.max(0,Q.row),this.ace.session.getScreenLength()-1);var re=this.ace.session.screenToDocumentPosition(Q.row,Q.column);return y(re)}debugger},this.charCoords=function(k,D){if(D=="div"||!D){var W=this.ace.session.documentToScreenPosition(k.line,k.ch);return{left:W.column,top:W.row}}if(D=="local"){var z=this.ace.renderer,W=this.ace.session.documentToScreenPosition(k.line,k.ch),K=z.layerConfig.lineHeight,Y=z.layerConfig.characterWidth,Q=K*W.row;return{left:W.column*Y,top:Q,bottom:Q+K}}},this.coordsChar=function(k,D){var W=this.ace.renderer;if(D=="local"){var z=Math.max(0,Math.floor(k.top/W.lineHeight)),K=Math.max(0,Math.floor(k.left/W.characterWidth)),Y=W.session.screenToDocumentPosition(z,K);return y(Y)}if(D=="div")throw"not implemented"},this.getSearchCursor=function(k,D,W){var z=!1,K=!1;k instanceof RegExp&&!k.global&&(z=!k.ignoreCase,k=k.source,K=!0),k=="\\n"&&(k=`
|
1406
|
+
`,K=!1);var Y=new ji;D.ch==null&&(D.ch=Number.MAX_VALUE);var Q={row:D.line,column:D.ch},re=this,se=null;return{findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(ye){Y.setOptions({needle:k,caseSensitive:z,wrap:!1,backwards:ye,regExp:K,start:se||Q});var Ce=Y.find(re.ace.session);return se=Ce,se&&[!se.isEmpty()]},from:function(){return se&&y(se.start)},to:function(){return se&&y(se.end)},replace:function(ye){se&&(se.end=re.ace.session.doc.replace(se,ye))}}},this.scrollTo=function(k,D){var W=this.ace.renderer,z=W.layerConfig,K=z.maxHeight;K-=(W.$size.scrollerHeight-W.lineHeight)*W.$scrollPastEnd,D!=null&&this.ace.session.setScrollTop(Math.max(0,Math.min(D,K))),k!=null&&this.ace.session.setScrollLeft(Math.max(0,Math.min(k,z.width)))},this.scrollInfo=function(){return 0},this.scrollIntoView=function(k,D){if(k){var W=this.ace.renderer,z={top:0,bottom:D};W.scrollCursorIntoView(p(k),W.lineHeight*2/W.$size.scrollerHeight,z)}},this.getLine=function(k){return this.ace.session.getLine(k)},this.getRange=function(k,D){return this.ace.session.getTextRange(new ar(k.line,k.ch,D.line,D.ch))},this.replaceRange=function(k,D,W){W||(W=D);var z=new ar(D.line,D.ch,W.line,W.ch);return this.ace.session.$clipRangeToDocument(z),this.ace.session.replace(z,k)},this.replaceSelection=this.replaceSelections=function(k){var D=Array.isArray(k)&&k,W=this.ace.selection;if(this.ace.inVirtualSelectionMode){this.ace.session.replace(W.getRange(),D?k[0]||"":k);return}W.inVirtualSelectionMode=!0;var z=W.rangeList.ranges;z.length||(z=[this.ace.multiSelect.getRange()]);for(var K=z.length;K--;)this.ace.session.replace(z[K],D?k[K]||"":k);W.inVirtualSelectionMode=!1},this.getSelection=function(){return this.ace.getSelectedText()},this.getSelections=function(){return this.listSelections().map(function(k){return this.getRange(k.anchor,k.head)},this)},this.getInputField=function(){return this.ace.textInput.getElement()},this.getWrapperElement=function(){return this.ace.container};var T={indentWithTabs:"useSoftTabs",indentUnit:"tabSize",tabSize:"tabSize",firstLineNumber:"firstLineNumber",readOnly:"readOnly"};this.setOption=function(k,D){switch(this.state[k]=D,k){case"indentWithTabs":k=T[k],D=!D;break;case"keyMap":this.state.$keyMap=D;return;default:k=T[k]}k&&this.ace.setOption(k,D)},this.getOption=function(k){var D,W=T[k];switch(W&&(D=this.ace.getOption(W)),k){case"indentWithTabs":return k=T[k],!D;case"keyMap":return this.state.$keyMap||"vim"}return W?D:this.state[k]},this.toggleOverwrite=function(k){return this.state.overwrite=k,this.ace.setOverwrite(k)},this.addOverlay=function(k){if(!this.$searchHighlight||!this.$searchHighlight.session){var D=new Ko(null,"ace_highlight-marker","text"),W=this.ace.session.addDynamicMarker(D);D.id=W.id,D.session=this.ace.session,D.destroy=function(K){D.session.off("change",D.updateOnChange),D.session.off("changeEditor",D.destroy),D.session.removeMarker(D.id),D.session=null},D.updateOnChange=function(K){var Y=K.start.row;Y==K.end.row?D.cache[Y]=void 0:D.cache.splice(Y,D.cache.length)},D.session.on("changeEditor",D.destroy),D.session.on("change",D.updateOnChange)}var z=new RegExp(k.query.source,"gmi");this.$searchHighlight=k.highlight=D,this.$searchHighlight.setRegexp(z),this.ace.renderer.updateBackMarkers()},this.removeOverlay=function(k){this.$searchHighlight&&this.$searchHighlight.session&&this.$searchHighlight.destroy()},this.getScrollInfo=function(){var k=this.ace.renderer,D=k.layerConfig;return{left:k.scrollLeft,top:k.scrollTop,height:D.maxHeight,width:D.width,clientHeight:D.height,clientWidth:D.width}},this.getValue=function(){return this.ace.getValue()},this.setValue=function(k){return this.ace.setValue(k,-1)},this.getTokenTypeAt=function(k){var D=this.ace.session.getTokenAt(k.line,k.ch);return D&&/comment|string/.test(D.type)?"string":""},this.findMatchingBracket=function(k){var D=this.ace.session.findMatchingBracket(p(k));return{to:D&&y(D)}},this.findMatchingTag=function(k){var D=this.ace.session.getMatchingTags(p(k));if(D)return{open:{from:y(D.openTag.start),to:y(D.openTag.end)},close:{from:y(D.closeTag.start),to:y(D.closeTag.end)}}},this.indentLine=function(k,D){D===!0?this.ace.session.indentRows(k,k," "):D===!1&&this.ace.session.outdentRows(new ar(k,0,k,0))},this.indexFromPos=function(k){return this.ace.session.doc.positionToIndex(p(k))},this.posFromIndex=function(k){return y(this.ace.session.doc.indexToPosition(k))},this.focus=function(k){return this.ace.textInput.focus()},this.blur=function(k){return this.ace.blur()},this.defaultTextHeight=function(k){return this.ace.renderer.layerConfig.lineHeight},this.scanForBracket=function(k,D,W,z){var K=z.bracketRegex.source,Y=/paren|text|operator|tag/;if(D==1)var Q=this.ace.session.$findClosingBracket(K.slice(1,2),p(k),Y);else{var Q=this.ace.session.$findOpeningBracket(K.slice(-2,-1),{row:k.line,column:k.ch+1},Y);!Q&&z.bracketRegex&&z.bracketRegex.test(this.getLine(k.line)[k.ch-1])&&(Q={row:k.line,column:k.ch-1})}return Q&&{pos:y(Q)}},this.refresh=function(){return this.ace.resize(!0)},this.getMode=function(){return{name:this.getOption("mode")}},this.execCommand=function(k){if(Fe.commands.hasOwnProperty(k))return Fe.commands[k](this);if(k=="indentAuto")return this.ace.execCommand("autoindent");console.log(k+" is not implemented")},this.getLineNumber=function(k){var D=this.$lineHandleChanges;if(!D)return null;for(var W=k.row,z=0;z<D.length;z++){var K=D[z];if(K.start.row!=K.end.row){if(K.action[0]=="i")K.start.row<W&&(W+=K.end.row-K.start.row);else if(K.start.row<W){if(W<K.end.row||W==K.end.row&&K.start.column>0)return null;W-=K.end.row-K.start.row}}}return W},this.getLineHandle=function(k){return this.$lineHandleChanges||(this.$lineHandleChanges=[]),{text:this.ace.session.getLine(k),row:k}},this.releaseLineHandles=function(){this.$lineHandleChanges=void 0},this.getLastEditEnd=function(){var k=this.ace.session.$undoManager;if(k&&k.$lastDelta)return y(k.$lastDelta.end)}}).call(Fe.prototype);var ca=Fe.StringStream=function(v,T){this.pos=this.start=0,this.string=v,this.tabSize=T||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0};ca.prototype={eol:function(){return this.pos>=this.string.length},sol:function(){return this.pos==this.lineStart},peek:function(){return this.string.charAt(this.pos)||void 0},next:function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},eat:function(v){var T=this.string.charAt(this.pos);if(typeof v=="string")var k=T==v;else var k=T&&(v.test?v.test(T):v(T));if(k)return++this.pos,T},eatWhile:function(v){for(var T=this.pos;this.eat(v););return this.pos>T},eatSpace:function(){for(var v=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>v},skipToEnd:function(){this.pos=this.string.length},skipTo:function(v){var T=this.string.indexOf(v,this.pos);if(T>-1)return this.pos=T,!0},backUp:function(v){this.pos-=v},column:function(){throw"not implemented"},indentation:function(){throw"not implemented"},match:function(v,T,k){if(typeof v!="string"){var D=this.string.slice(this.pos).match(v);return D&&D.index>0?null:(D&&T!==!1&&(this.pos+=D[0].length),D)}var W=function(K){return k?K.toLowerCase():K},z=this.string.substr(this.pos,v.length);if(W(z)==W(v))return T!==!1&&(this.pos+=v.length),!0},current:function(){return this.string.slice(this.start,this.pos)},hideFirstChars:function(v,T){this.lineStart+=v;try{return T()}finally{this.lineStart-=v}}},Fe.defineExtension=function(v,T){Fe.prototype[v]=T},zi.importCssString(`.normal-mode .ace_cursor{
|
1407
1407
|
border: none;
|
1408
1408
|
background-color: rgba(255,0,0,0.5);
|
1409
1409
|
}
|
@@ -1436,38 +1436,38 @@ System.register(["vue","vue-router","single-spa","vuex","vuetify"],function(er,o
|
|
1436
1436
|
width: 20em;
|
1437
1437
|
color: inherit;
|
1438
1438
|
font-family: monospace;
|
1439
|
-
}`,"vimMode",!1),function(){function v(k,D,W){var z=k.ace.container,K;return K=z.appendChild(document.createElement("div")),W?K.className="ace_dialog ace_dialog-bottom":K.className="ace_dialog ace_dialog-top",typeof D=="string"?K.innerHTML=D:K.appendChild(D),K}function T(k,D){k.state.currentNotificationClose&&k.state.currentNotificationClose(),k.state.currentNotificationClose=D}Fe.defineExtension("openDialog",function(k,D,W){function z(ye){if(typeof ye=="string")re.value=ye;else{if(Y||ye&&ye.type=="blur"&&document.activeElement===re)return;Q.state.dialog==K&&(Q.state.dialog=null,Q.focus()),Y=!0,K.remove(),W.onClose&&W.onClose(K);var Ce=Q;Ce.state.vim&&(Ce.state.vim.status=null,Ce.ace._signal("changeStatus"),Ce.ace.renderer.$loop.schedule(Ce.ace.renderer.CHANGE_CURSOR))}}if(!this.virtualSelectionMode()){W||(W={}),T(this,null);var K=v(this,k,W.bottom),Y=!1,Q=this;this.state.dialog=K;var re=K.getElementsByTagName("input")[0],se;return re?(W.value&&(re.value=W.value,W.selectValueOnOpen!==!1&&re.select()),W.onInput&&Fe.on(re,"input",function(ye){W.onInput(ye,re.value,z)}),W.onKeyUp&&Fe.on(re,"keyup",function(ye){W.onKeyUp(ye,re.value,z)}),Fe.on(re,"keydown",function(ye){W&&W.onKeyDown&&W.onKeyDown(ye,re.value,z)||(ye.keyCode==13&&D(re.value),(ye.keyCode==27||W.closeOnEnter!==!1&&ye.keyCode==13)&&(Fe.e_stop(ye),z()))}),W.closeOnBlur!==!1&&Fe.on(re,"blur",z),re.focus()):(se=K.getElementsByTagName("button")[0])&&(Fe.on(se,"click",function(){z(),Q.focus()}),W.closeOnBlur!==!1&&Fe.on(se,"blur",z),se.focus()),z}}),Fe.defineExtension("openNotification",function(k,D){function W(){K||(K=!0,clearTimeout(Y),z.remove())}if(!this.virtualSelectionMode()){T(this,W);var z=v(this,k,D&&D.bottom),K=!1,Y,Q=D&&typeof D.duration<"u"?D.duration:5e3;return Fe.on(z,"click",function(re){Fe.e_preventDefault(re),W()}),Q&&(Y=setTimeout(W,Q)),W}})}();var Ne=Fe.Pos,$n=[{keys:"<Left>",type:"keyToKey",toKeys:"h"},{keys:"<Right>",type:"keyToKey",toKeys:"l"},{keys:"<Up>",type:"keyToKey",toKeys:"k"},{keys:"<Down>",type:"keyToKey",toKeys:"j"},{keys:"g<Up>",type:"keyToKey",toKeys:"gk"},{keys:"g<Down>",type:"keyToKey",toKeys:"gj"},{keys:"<Space>",type:"keyToKey",toKeys:"l"},{keys:"<BS>",type:"keyToKey",toKeys:"h"},{keys:"<Del>",type:"keyToKey",toKeys:"x"},{keys:"<C-Space>",type:"keyToKey",toKeys:"W"},{keys:"<C-BS>",type:"keyToKey",toKeys:"B"},{keys:"<S-Space>",type:"keyToKey",toKeys:"w"},{keys:"<S-BS>",type:"keyToKey",toKeys:"b"},{keys:"<C-n>",type:"keyToKey",toKeys:"j"},{keys:"<C-p>",type:"keyToKey",toKeys:"k"},{keys:"<C-[>",type:"keyToKey",toKeys:"<Esc>"},{keys:"<C-c>",type:"keyToKey",toKeys:"<Esc>"},{keys:"<C-[>",type:"keyToKey",toKeys:"<Esc>",context:"insert"},{keys:"<C-c>",type:"keyToKey",toKeys:"<Esc>",context:"insert"},{keys:"<C-Esc>",type:"keyToKey",toKeys:"<Esc>"},{keys:"<C-Esc>",type:"keyToKey",toKeys:"<Esc>",context:"insert"},{keys:"s",type:"keyToKey",toKeys:"cl",context:"normal"},{keys:"s",type:"keyToKey",toKeys:"c",context:"visual"},{keys:"S",type:"keyToKey",toKeys:"cc",context:"normal"},{keys:"S",type:"keyToKey",toKeys:"VdO",context:"visual"},{keys:"<Home>",type:"keyToKey",toKeys:"0"},{keys:"<End>",type:"keyToKey",toKeys:"$"},{keys:"<PageUp>",type:"keyToKey",toKeys:"<C-b>"},{keys:"<PageDown>",type:"keyToKey",toKeys:"<C-f>"},{keys:"<CR>",type:"keyToKey",toKeys:"j^",context:"normal"},{keys:"<Ins>",type:"keyToKey",toKeys:"i",context:"normal"},{keys:"<Ins>",type:"action",action:"toggleOverwrite",context:"insert"},{keys:"H",type:"motion",motion:"moveToTopLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"M",type:"motion",motion:"moveToMiddleLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"L",type:"motion",motion:"moveToBottomLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"h",type:"motion",motion:"moveByCharacters",motionArgs:{forward:!1}},{keys:"l",type:"motion",motion:"moveByCharacters",motionArgs:{forward:!0}},{keys:"j",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,linewise:!0}},{keys:"k",type:"motion",motion:"moveByLines",motionArgs:{forward:!1,linewise:!0}},{keys:"gj",type:"motion",motion:"moveByDisplayLines",motionArgs:{forward:!0}},{keys:"gk",type:"motion",motion:"moveByDisplayLines",motionArgs:{forward:!1}},{keys:"w",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!1}},{keys:"W",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!1,bigWord:!0}},{keys:"e",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!0,inclusive:!0}},{keys:"E",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!0,bigWord:!0,inclusive:!0}},{keys:"b",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1}},{keys:"B",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1,bigWord:!0}},{keys:"ge",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!0,inclusive:!0}},{keys:"gE",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!0,bigWord:!0,inclusive:!0}},{keys:"{",type:"motion",motion:"moveByParagraph",motionArgs:{forward:!1,toJumplist:!0}},{keys:"}",type:"motion",motion:"moveByParagraph",motionArgs:{forward:!0,toJumplist:!0}},{keys:"(",type:"motion",motion:"moveBySentence",motionArgs:{forward:!1}},{keys:")",type:"motion",motion:"moveBySentence",motionArgs:{forward:!0}},{keys:"<C-f>",type:"motion",motion:"moveByPage",motionArgs:{forward:!0}},{keys:"<C-b>",type:"motion",motion:"moveByPage",motionArgs:{forward:!1}},{keys:"<C-d>",type:"motion",motion:"moveByScroll",motionArgs:{forward:!0,explicitRepeat:!0}},{keys:"<C-u>",type:"motion",motion:"moveByScroll",motionArgs:{forward:!1,explicitRepeat:!0}},{keys:"gg",type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!1,explicitRepeat:!0,linewise:!0,toJumplist:!0}},{keys:"G",type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!0,explicitRepeat:!0,linewise:!0,toJumplist:!0}},{keys:"g$",type:"motion",motion:"moveToEndOfDisplayLine"},{keys:"g^",type:"motion",motion:"moveToStartOfDisplayLine"},{keys:"g0",type:"motion",motion:"moveToStartOfDisplayLine"},{keys:"0",type:"motion",motion:"moveToStartOfLine"},{keys:"^",type:"motion",motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"+",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,toFirstChar:!0}},{keys:"-",type:"motion",motion:"moveByLines",motionArgs:{forward:!1,toFirstChar:!0}},{keys:"_",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,toFirstChar:!0,repeatOffset:-1}},{keys:"$",type:"motion",motion:"moveToEol",motionArgs:{inclusive:!0}},{keys:"%",type:"motion",motion:"moveToMatchedSymbol",motionArgs:{inclusive:!0,toJumplist:!0}},{keys:"f<character>",type:"motion",motion:"moveToCharacter",motionArgs:{forward:!0,inclusive:!0}},{keys:"F<character>",type:"motion",motion:"moveToCharacter",motionArgs:{forward:!1}},{keys:"t<character>",type:"motion",motion:"moveTillCharacter",motionArgs:{forward:!0,inclusive:!0}},{keys:"T<character>",type:"motion",motion:"moveTillCharacter",motionArgs:{forward:!1}},{keys:";",type:"motion",motion:"repeatLastCharacterSearch",motionArgs:{forward:!0}},{keys:",",type:"motion",motion:"repeatLastCharacterSearch",motionArgs:{forward:!1}},{keys:"'<register>",type:"motion",motion:"goToMark",motionArgs:{toJumplist:!0,linewise:!0}},{keys:"`<register>",type:"motion",motion:"goToMark",motionArgs:{toJumplist:!0}},{keys:"]`",type:"motion",motion:"jumpToMark",motionArgs:{forward:!0}},{keys:"[`",type:"motion",motion:"jumpToMark",motionArgs:{forward:!1}},{keys:"]'",type:"motion",motion:"jumpToMark",motionArgs:{forward:!0,linewise:!0}},{keys:"['",type:"motion",motion:"jumpToMark",motionArgs:{forward:!1,linewise:!0}},{keys:"]p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!0,isEdit:!0,matchIndent:!0}},{keys:"[p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!1,isEdit:!0,matchIndent:!0}},{keys:"]<character>",type:"motion",motion:"moveToSymbol",motionArgs:{forward:!0,toJumplist:!0}},{keys:"[<character>",type:"motion",motion:"moveToSymbol",motionArgs:{forward:!1,toJumplist:!0}},{keys:"|",type:"motion",motion:"moveToColumn"},{keys:"o",type:"motion",motion:"moveToOtherHighlightedEnd",context:"visual"},{keys:"O",type:"motion",motion:"moveToOtherHighlightedEnd",motionArgs:{sameLine:!0},context:"visual"},{keys:"d",type:"operator",operator:"delete"},{keys:"y",type:"operator",operator:"yank"},{keys:"c",type:"operator",operator:"change"},{keys:"=",type:"operator",operator:"indentAuto"},{keys:">",type:"operator",operator:"indent",operatorArgs:{indentRight:!0}},{keys:"<",type:"operator",operator:"indent",operatorArgs:{indentRight:!1}},{keys:"g~",type:"operator",operator:"changeCase"},{keys:"gu",type:"operator",operator:"changeCase",operatorArgs:{toLower:!0},isEdit:!0},{keys:"gU",type:"operator",operator:"changeCase",operatorArgs:{toLower:!1},isEdit:!0},{keys:"n",type:"motion",motion:"findNext",motionArgs:{forward:!0,toJumplist:!0}},{keys:"N",type:"motion",motion:"findNext",motionArgs:{forward:!1,toJumplist:!0}},{keys:"gn",type:"motion",motion:"findAndSelectNextInclusive",motionArgs:{forward:!0}},{keys:"gN",type:"motion",motion:"findAndSelectNextInclusive",motionArgs:{forward:!1}},{keys:"gq",type:"operator",operator:"hardWrap"},{keys:"gw",type:"operator",operator:"hardWrap",operatorArgs:{keepCursor:!0}},{keys:"x",type:"operatorMotion",operator:"delete",motion:"moveByCharacters",motionArgs:{forward:!0},operatorMotionArgs:{visualLine:!1}},{keys:"X",type:"operatorMotion",operator:"delete",motion:"moveByCharacters",motionArgs:{forward:!1},operatorMotionArgs:{visualLine:!0}},{keys:"D",type:"operatorMotion",operator:"delete",motion:"moveToEol",motionArgs:{inclusive:!0},context:"normal"},{keys:"D",type:"operator",operator:"delete",operatorArgs:{linewise:!0},context:"visual"},{keys:"Y",type:"operatorMotion",operator:"yank",motion:"expandToLine",motionArgs:{linewise:!0},context:"normal"},{keys:"Y",type:"operator",operator:"yank",operatorArgs:{linewise:!0},context:"visual"},{keys:"C",type:"operatorMotion",operator:"change",motion:"moveToEol",motionArgs:{inclusive:!0},context:"normal"},{keys:"C",type:"operator",operator:"change",operatorArgs:{linewise:!0},context:"visual"},{keys:"~",type:"operatorMotion",operator:"changeCase",motion:"moveByCharacters",motionArgs:{forward:!0},operatorArgs:{shouldMoveCursor:!0},context:"normal"},{keys:"~",type:"operator",operator:"changeCase",context:"visual"},{keys:"<C-u>",type:"operatorMotion",operator:"delete",motion:"moveToStartOfLine",context:"insert"},{keys:"<C-w>",type:"operatorMotion",operator:"delete",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1},context:"insert"},{keys:"<C-w>",type:"idle",context:"normal"},{keys:"<C-i>",type:"action",action:"jumpListWalk",actionArgs:{forward:!0}},{keys:"<C-o>",type:"action",action:"jumpListWalk",actionArgs:{forward:!1}},{keys:"<C-e>",type:"action",action:"scroll",actionArgs:{forward:!0,linewise:!0}},{keys:"<C-y>",type:"action",action:"scroll",actionArgs:{forward:!1,linewise:!0}},{keys:"a",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"charAfter"},context:"normal"},{keys:"A",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"eol"},context:"normal"},{keys:"A",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"endOfSelectedArea"},context:"visual"},{keys:"i",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"inplace"},context:"normal"},{keys:"gi",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"lastEdit"},context:"normal"},{keys:"I",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"firstNonBlank"},context:"normal"},{keys:"gI",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"bol"},context:"normal"},{keys:"I",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"startOfSelectedArea"},context:"visual"},{keys:"o",type:"action",action:"newLineAndEnterInsertMode",isEdit:!0,interlaceInsertRepeat:!0,actionArgs:{after:!0},context:"normal"},{keys:"O",type:"action",action:"newLineAndEnterInsertMode",isEdit:!0,interlaceInsertRepeat:!0,actionArgs:{after:!1},context:"normal"},{keys:"v",type:"action",action:"toggleVisualMode"},{keys:"V",type:"action",action:"toggleVisualMode",actionArgs:{linewise:!0}},{keys:"<C-v>",type:"action",action:"toggleVisualMode",actionArgs:{blockwise:!0}},{keys:"<C-q>",type:"action",action:"toggleVisualMode",actionArgs:{blockwise:!0}},{keys:"gv",type:"action",action:"reselectLastSelection"},{keys:"J",type:"action",action:"joinLines",isEdit:!0},{keys:"gJ",type:"action",action:"joinLines",actionArgs:{keepSpaces:!0},isEdit:!0},{keys:"p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!0,isEdit:!0}},{keys:"P",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!1,isEdit:!0}},{keys:"r<character>",type:"action",action:"replace",isEdit:!0},{keys:"@<register>",type:"action",action:"replayMacro"},{keys:"q<register>",type:"action",action:"enterMacroRecordMode"},{keys:"R",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{replace:!0},context:"normal"},{keys:"R",type:"operator",operator:"change",operatorArgs:{linewise:!0,fullLine:!0},context:"visual",exitVisualBlock:!0},{keys:"u",type:"action",action:"undo",context:"normal"},{keys:"u",type:"operator",operator:"changeCase",operatorArgs:{toLower:!0},context:"visual",isEdit:!0},{keys:"U",type:"operator",operator:"changeCase",operatorArgs:{toLower:!1},context:"visual",isEdit:!0},{keys:"<C-r>",type:"action",action:"redo"},{keys:"m<register>",type:"action",action:"setMark"},{keys:'"<register>',type:"action",action:"setRegister"},{keys:"<C-r><register>",type:"action",action:"insertRegister",context:"insert",isEdit:!0},{keys:"<C-o>",type:"action",action:"oneNormalCommand",context:"insert"},{keys:"zz",type:"action",action:"scrollToCursor",actionArgs:{position:"center"}},{keys:"z.",type:"action",action:"scrollToCursor",actionArgs:{position:"center"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"zt",type:"action",action:"scrollToCursor",actionArgs:{position:"top"}},{keys:"z<CR>",type:"action",action:"scrollToCursor",actionArgs:{position:"top"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"zb",type:"action",action:"scrollToCursor",actionArgs:{position:"bottom"}},{keys:"z-",type:"action",action:"scrollToCursor",actionArgs:{position:"bottom"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:".",type:"action",action:"repeatLastEdit"},{keys:"<C-a>",type:"action",action:"incrementNumberToken",isEdit:!0,actionArgs:{increase:!0,backtrack:!1}},{keys:"<C-x>",type:"action",action:"incrementNumberToken",isEdit:!0,actionArgs:{increase:!1,backtrack:!1}},{keys:"<C-t>",type:"action",action:"indent",actionArgs:{indentRight:!0},context:"insert"},{keys:"<C-d>",type:"action",action:"indent",actionArgs:{indentRight:!1},context:"insert"},{keys:"a<register>",type:"motion",motion:"textObjectManipulation"},{keys:"i<register>",type:"motion",motion:"textObjectManipulation",motionArgs:{textObjectInner:!0}},{keys:"/",type:"search",searchArgs:{forward:!0,querySrc:"prompt",toJumplist:!0}},{keys:"?",type:"search",searchArgs:{forward:!1,querySrc:"prompt",toJumplist:!0}},{keys:"*",type:"search",searchArgs:{forward:!0,querySrc:"wordUnderCursor",wholeWordOnly:!0,toJumplist:!0}},{keys:"#",type:"search",searchArgs:{forward:!1,querySrc:"wordUnderCursor",wholeWordOnly:!0,toJumplist:!0}},{keys:"g*",type:"search",searchArgs:{forward:!0,querySrc:"wordUnderCursor",toJumplist:!0}},{keys:"g#",type:"search",searchArgs:{forward:!1,querySrc:"wordUnderCursor",toJumplist:!0}},{keys:":",type:"ex"}],yo=$n.length,si=[{name:"colorscheme",shortName:"colo"},{name:"map"},{name:"imap",shortName:"im"},{name:"nmap",shortName:"nm"},{name:"vmap",shortName:"vm"},{name:"omap",shortName:"om"},{name:"noremap",shortName:"no"},{name:"nnoremap",shortName:"nn"},{name:"vnoremap",shortName:"vn"},{name:"inoremap",shortName:"ino"},{name:"onoremap",shortName:"ono"},{name:"unmap"},{name:"mapclear",shortName:"mapc"},{name:"nmapclear",shortName:"nmapc"},{name:"vmapclear",shortName:"vmapc"},{name:"imapclear",shortName:"imapc"},{name:"omapclear",shortName:"omapc"},{name:"write",shortName:"w"},{name:"undo",shortName:"u"},{name:"redo",shortName:"red"},{name:"set",shortName:"se"},{name:"setlocal",shortName:"setl"},{name:"setglobal",shortName:"setg"},{name:"sort",shortName:"sor"},{name:"substitute",shortName:"s",possiblyAsync:!0},{name:"startinsert",shortName:"start"},{name:"nohlsearch",shortName:"noh"},{name:"yank",shortName:"y"},{name:"delmarks",shortName:"delm"},{name:"registers",shortName:"reg",excludeFromCommandHistory:!0},{name:"vglobal",shortName:"v"},{name:"delete",shortName:"d"},{name:"join",shortName:"j"},{name:"normal",shortName:"norm"},{name:"global",shortName:"g"}],Un=O(""),ua=/[\d]/,wo=[Fe.isWordChar,function(v){return v&&!Fe.isWordChar(v)&&!/\s/.test(v)}],bi=[function(v){return/\S/.test(v)}],no=["<",">"],nn=["-",'"',".",":","_","/","+"],Zt=/^\w$/,rn;try{rn=new RegExp("^[\\p{Lu}]$","u")}catch{rn=/^[A-Z]$/}var Vt={};E("filetype",void 0,"string",["ft"],function(v,T){if(T!==void 0){if(v===void 0){var k=T.getOption("mode");return k=="null"?"":k}var k=v==""?"null":v;T.setOption("mode",k)}}),E("textwidth",80,"number",["tw"],function(v,T){if(T!==void 0){if(v===void 0){var k=T.getOption("textwidth");return k}var D=Math.round(v);D>1&&T.setOption("textwidth",D)}});var xi=function(){function v(Q,re,se){function ye(Oe){var Le=++W%D,Ue=Y[Le];Ue&&Ue.clear(),Y[Le]=Q.setBookmark(Oe)}var Ce=W%D,me=Y[Ce];if(me){var we=me.find();we&&!dt(we,re)&&ye(re)}else ye(re);ye(se),z=W,K=W-D+1,K<0&&(K=0)}function T(Q,re){W+=re,W>z?W=z:W<K&&(W=K);var se=Y[(D+W)%D];if(se&&!se.find()){var ye=re>0?1:-1,Ce,me=Q.getCursor();do if(W+=ye,se=Y[(D+W)%D],se&&(Ce=se.find())&&!dt(me,Ce))break;while(W<z&&W>K)}return se}function k(Q,re){var se=W,ye=T(Q,re);return W=se,ye&&ye.find()}var D=100,W=-1,z=0,K=0,Y=new Array(D);return{cachedCursor:void 0,add:v,find:k,move:T}},On=function(v){return v?{changes:v.changes,expectCursorActivityForChange:v.expectCursorActivityForChange}:{changes:[],expectCursorActivityForChange:!1}};C.prototype={exitMacroRecordMode:function(){var v=Be.macroModeState;v.onRecordingDone&&v.onRecordingDone(),v.onRecordingDone=void 0,v.isRecording=!1},enterMacroRecordMode:function(v,T){var k=Be.registerController.getRegister(T);if(k){if(k.clear(),this.latestRegister=T,v.openDialog){var D=oi("span",{class:"cm-vim-message"},"recording @"+T);this.onRecordingDone=v.openDialog(D,null,{bottom:!0})}this.isRecording=!0}}};var Be,vn,Ct={enterVimMode:h,leaveVimMode:g,buildKeyMap:function(){},getRegisterController:function(){return Be.registerController},resetVimGlobalState_:L,getVimGlobalState_:function(){return Be},maybeInitVimState_:R,suppressErrorLogging:!1,InsertModeKey:Ji,map:function(v,T,k){vr.map(v,T,k)},unmap:function(v,T){return vr.unmap(v,T)},noremap:function(v,T,k){vr.map(v,T,k,!0)},mapclear:function(v){var T=$n.length,k=yo,D=$n.slice(0,T-k);if($n=$n.slice(T-k),v)for(var W=D.length-1;W>=0;W--){var z=D[W];if(v!==z.context)if(z.context)this._mapCommand(z);else{var K=["normal","insert","visual"];for(var Y in K)if(K[Y]!==v){var Q={};for(var re in z)Q[re]=z[re];Q.context=K[Y],this._mapCommand(Q)}}}},langmap:F,vimKeyFromEvent:H,setOption:$,getOption:S,defineOption:E,defineEx:function(v,T,k){if(!T)T=v;else if(v.indexOf(T)!==0)throw new Error('(Vim.defineEx) "'+T+'" is not a prefix of "'+v+'", command not registered');_s[v]=k,vr.commandMap_[T]={name:v,shortName:T,type:"api"}},handleKey:function(v,T,k){var D=this.findKey(v,T,k);if(typeof D=="function")return D()},multiSelectHandleKey:go,findKey:function(v,T,k){function D(){var re=Be.macroModeState;if(re.isRecording){if(T=="q")return re.exitMacroRecordMode(),A(v),!0;k!="mapping"&&Bo(re,T)}}function W(){if(T=="<Esc>"){if(Y.visualMode)St(v);else{if(!Y.insertMode)return;Gr(v)}return A(v),!0}}function z(){if(W())return!0;Y.inputState.keyBuffer.push(T);var re=Y.inputState.keyBuffer.join(""),se=T.length==1,ye=Nn.matchCommand(re,$n,Y.inputState,"insert"),Ce=Y.inputState.changeQueue;if(ye.type=="none")return A(v),!1;if(ye.type=="partial"){if(ye.expectLiteralNext&&(Y.expectLiteralNext=!0),vn&&window.clearTimeout(vn),vn=se&&window.setTimeout(function(){Y.insertMode&&Y.inputState.keyBuffer.length&&A(v)},S("insertModeEscKeysTimeout")),se){var me=v.listSelections();(!Ce||Ce.removed.length!=me.length)&&(Ce=Y.inputState.changeQueue=new N),Ce.inserted+=T;for(var we=0;we<me.length;we++){var Oe=pt(me[we].anchor,me[we].head),Le=tn(me[we].anchor,me[we].head),Ue=v.getRange(Oe,v.state.overwrite?fe(Le,0,1):Le);Ce.removed[we]=(Ce.removed[we]||"")+Ue}}return!se}if(Y.expectLiteralNext=!1,vn&&window.clearTimeout(vn),ye.command&&Ce){for(var me=v.listSelections(),we=0;we<me.length;we++){var at=me[we].head;v.replaceRange(Ce.removed[we]||"",fe(at,0,-Ce.inserted.length),at,"+input")}Be.macroModeState.lastInsertModeChanges.changes.pop()}return ye.command||A(v),ye.command}function K(){if(D()||W())return!0;Y.inputState.keyBuffer.push(T);var re=Y.inputState.keyBuffer.join("");if(/^[1-9]\d*$/.test(re))return!0;var se=/^(\d*)(.*)$/.exec(re);if(!se)return A(v),!1;var ye=Y.visualMode?"visual":"normal",Ce=se[2]||se[1];Y.inputState.operatorShortcut&&Y.inputState.operatorShortcut.slice(-1)==Ce&&(Ce=Y.inputState.operatorShortcut);var me=Nn.matchCommand(Ce,$n,Y.inputState,ye);return me.type=="none"?(A(v),!1):me.type=="partial"?(me.expectLiteralNext&&(Y.expectLiteralNext=!0),!0):me.type=="clear"?(A(v),!0):(Y.expectLiteralNext=!1,Y.inputState.keyBuffer.length=0,se=/^(\d*)(.*)$/.exec(re),se[1]&&se[1]!="0"&&Y.inputState.pushRepeatDigit(se[1]),me.command)}var Y=R(v),Q;return Y.insertMode?Q=z():Q=K(),Q===!1?!Y.insertMode&&T.length===1?function(){return!0}:void 0:Q===!0?function(){return!0}:function(){if(!((Q.operator||Q.isEdit)&&v.getOption("readOnly")))return v.operation(function(){v.curOp.isVimOp=!0;try{Q.type=="keyToKey"?I(v,Q.toKeys,Q):Nn.processCommand(v,Y,Q)}catch(re){throw v.state.vim=void 0,R(v),Ct.suppressErrorLogging||console.log(re),re}return!0})}},handleEx:function(v,T){vr.processCommand(v,T)},defineMotion:te,defineAction:ae,defineOperator:ne,mapCommand:xs,_mapCommand:Wo,defineRegister:U,exitVisualMode:St,exitInsertMode:Gr},Lr=[],cn=!1,bn,Qn={Return:"CR",Backspace:"BS",Delete:"Del",Escape:"Esc",Insert:"Ins",ArrowLeft:"Left",ArrowRight:"Right",ArrowUp:"Up",ArrowDown:"Down",Enter:"CR"," ":"Space"},Or={Shift:1,Alt:1,Command:1,Control:1,CapsLock:1,AltGraph:1,Dead:1,Unidentified:1},Ci={};"Left|Right|Up|Down|End|Home".split("|").concat(Object.keys(Qn)).forEach(function(v){Ci[(Qn[v]||"").toLowerCase()]=Ci[v.toLowerCase()]=v}),E("langmap",void 0,"string",["lmap"],function(v,T){if(v===void 0)return Un.string;F(v)}),_.prototype.pushRepeatDigit=function(v){this.operator?this.motionRepeat=this.motionRepeat.concat(v):this.prefixRepeat=this.prefixRepeat.concat(v)},_.prototype.getRepeat=function(){var v=0;return(this.prefixRepeat.length>0||this.motionRepeat.length>0)&&(v=1,this.prefixRepeat.length>0&&(v*=parseInt(this.prefixRepeat.join(""),10)),this.motionRepeat.length>0&&(v*=parseInt(this.motionRepeat.join(""),10))),v},B.prototype={setText:function(v,T,k){this.keyBuffer=[v||""],this.linewise=!!T,this.blockwise=!!k},pushText:function(v,T){T&&(this.linewise||this.keyBuffer.push(`
|
1440
|
-
`),this.linewise=!0),this.keyBuffer.push(v)},pushInsertModeChanges:function(v){this.insertModeChanges.push(
|
1439
|
+
}`,"vimMode",!1),function(){function v(k,D,W){var z=k.ace.container,K;return K=z.appendChild(document.createElement("div")),W?K.className="ace_dialog ace_dialog-bottom":K.className="ace_dialog ace_dialog-top",typeof D=="string"?K.innerHTML=D:K.appendChild(D),K}function T(k,D){k.state.currentNotificationClose&&k.state.currentNotificationClose(),k.state.currentNotificationClose=D}Fe.defineExtension("openDialog",function(k,D,W){function z(ye){if(typeof ye=="string")re.value=ye;else{if(Y||ye&&ye.type=="blur"&&document.activeElement===re)return;Q.state.dialog==K&&(Q.state.dialog=null,Q.focus()),Y=!0,K.remove(),W.onClose&&W.onClose(K);var Ce=Q;Ce.state.vim&&(Ce.state.vim.status=null,Ce.ace._signal("changeStatus"),Ce.ace.renderer.$loop.schedule(Ce.ace.renderer.CHANGE_CURSOR))}}if(!this.virtualSelectionMode()){W||(W={}),T(this,null);var K=v(this,k,W.bottom),Y=!1,Q=this;this.state.dialog=K;var re=K.getElementsByTagName("input")[0],se;return re?(W.value&&(re.value=W.value,W.selectValueOnOpen!==!1&&re.select()),W.onInput&&Fe.on(re,"input",function(ye){W.onInput(ye,re.value,z)}),W.onKeyUp&&Fe.on(re,"keyup",function(ye){W.onKeyUp(ye,re.value,z)}),Fe.on(re,"keydown",function(ye){W&&W.onKeyDown&&W.onKeyDown(ye,re.value,z)||(ye.keyCode==13&&D(re.value),(ye.keyCode==27||W.closeOnEnter!==!1&&ye.keyCode==13)&&(Fe.e_stop(ye),z()))}),W.closeOnBlur!==!1&&Fe.on(re,"blur",z),re.focus()):(se=K.getElementsByTagName("button")[0])&&(Fe.on(se,"click",function(){z(),Q.focus()}),W.closeOnBlur!==!1&&Fe.on(se,"blur",z),se.focus()),z}}),Fe.defineExtension("openNotification",function(k,D){function W(){K||(K=!0,clearTimeout(Y),z.remove())}if(!this.virtualSelectionMode()){T(this,W);var z=v(this,k,D&&D.bottom),K=!1,Y,Q=D&&typeof D.duration<"u"?D.duration:5e3;return Fe.on(z,"click",function(re){Fe.e_preventDefault(re),W()}),Q&&(Y=setTimeout(W,Q)),W}})}();var Ne=Fe.Pos,Mn=[{keys:"<Left>",type:"keyToKey",toKeys:"h"},{keys:"<Right>",type:"keyToKey",toKeys:"l"},{keys:"<Up>",type:"keyToKey",toKeys:"k"},{keys:"<Down>",type:"keyToKey",toKeys:"j"},{keys:"g<Up>",type:"keyToKey",toKeys:"gk"},{keys:"g<Down>",type:"keyToKey",toKeys:"gj"},{keys:"<Space>",type:"keyToKey",toKeys:"l"},{keys:"<BS>",type:"keyToKey",toKeys:"h"},{keys:"<Del>",type:"keyToKey",toKeys:"x"},{keys:"<C-Space>",type:"keyToKey",toKeys:"W"},{keys:"<C-BS>",type:"keyToKey",toKeys:"B"},{keys:"<S-Space>",type:"keyToKey",toKeys:"w"},{keys:"<S-BS>",type:"keyToKey",toKeys:"b"},{keys:"<C-n>",type:"keyToKey",toKeys:"j"},{keys:"<C-p>",type:"keyToKey",toKeys:"k"},{keys:"<C-[>",type:"keyToKey",toKeys:"<Esc>"},{keys:"<C-c>",type:"keyToKey",toKeys:"<Esc>"},{keys:"<C-[>",type:"keyToKey",toKeys:"<Esc>",context:"insert"},{keys:"<C-c>",type:"keyToKey",toKeys:"<Esc>",context:"insert"},{keys:"<C-Esc>",type:"keyToKey",toKeys:"<Esc>"},{keys:"<C-Esc>",type:"keyToKey",toKeys:"<Esc>",context:"insert"},{keys:"s",type:"keyToKey",toKeys:"cl",context:"normal"},{keys:"s",type:"keyToKey",toKeys:"c",context:"visual"},{keys:"S",type:"keyToKey",toKeys:"cc",context:"normal"},{keys:"S",type:"keyToKey",toKeys:"VdO",context:"visual"},{keys:"<Home>",type:"keyToKey",toKeys:"0"},{keys:"<End>",type:"keyToKey",toKeys:"$"},{keys:"<PageUp>",type:"keyToKey",toKeys:"<C-b>"},{keys:"<PageDown>",type:"keyToKey",toKeys:"<C-f>"},{keys:"<CR>",type:"keyToKey",toKeys:"j^",context:"normal"},{keys:"<Ins>",type:"keyToKey",toKeys:"i",context:"normal"},{keys:"<Ins>",type:"action",action:"toggleOverwrite",context:"insert"},{keys:"H",type:"motion",motion:"moveToTopLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"M",type:"motion",motion:"moveToMiddleLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"L",type:"motion",motion:"moveToBottomLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"h",type:"motion",motion:"moveByCharacters",motionArgs:{forward:!1}},{keys:"l",type:"motion",motion:"moveByCharacters",motionArgs:{forward:!0}},{keys:"j",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,linewise:!0}},{keys:"k",type:"motion",motion:"moveByLines",motionArgs:{forward:!1,linewise:!0}},{keys:"gj",type:"motion",motion:"moveByDisplayLines",motionArgs:{forward:!0}},{keys:"gk",type:"motion",motion:"moveByDisplayLines",motionArgs:{forward:!1}},{keys:"w",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!1}},{keys:"W",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!1,bigWord:!0}},{keys:"e",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!0,inclusive:!0}},{keys:"E",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!0,bigWord:!0,inclusive:!0}},{keys:"b",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1}},{keys:"B",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1,bigWord:!0}},{keys:"ge",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!0,inclusive:!0}},{keys:"gE",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!0,bigWord:!0,inclusive:!0}},{keys:"{",type:"motion",motion:"moveByParagraph",motionArgs:{forward:!1,toJumplist:!0}},{keys:"}",type:"motion",motion:"moveByParagraph",motionArgs:{forward:!0,toJumplist:!0}},{keys:"(",type:"motion",motion:"moveBySentence",motionArgs:{forward:!1}},{keys:")",type:"motion",motion:"moveBySentence",motionArgs:{forward:!0}},{keys:"<C-f>",type:"motion",motion:"moveByPage",motionArgs:{forward:!0}},{keys:"<C-b>",type:"motion",motion:"moveByPage",motionArgs:{forward:!1}},{keys:"<C-d>",type:"motion",motion:"moveByScroll",motionArgs:{forward:!0,explicitRepeat:!0}},{keys:"<C-u>",type:"motion",motion:"moveByScroll",motionArgs:{forward:!1,explicitRepeat:!0}},{keys:"gg",type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!1,explicitRepeat:!0,linewise:!0,toJumplist:!0}},{keys:"G",type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!0,explicitRepeat:!0,linewise:!0,toJumplist:!0}},{keys:"g$",type:"motion",motion:"moveToEndOfDisplayLine"},{keys:"g^",type:"motion",motion:"moveToStartOfDisplayLine"},{keys:"g0",type:"motion",motion:"moveToStartOfDisplayLine"},{keys:"0",type:"motion",motion:"moveToStartOfLine"},{keys:"^",type:"motion",motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"+",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,toFirstChar:!0}},{keys:"-",type:"motion",motion:"moveByLines",motionArgs:{forward:!1,toFirstChar:!0}},{keys:"_",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,toFirstChar:!0,repeatOffset:-1}},{keys:"$",type:"motion",motion:"moveToEol",motionArgs:{inclusive:!0}},{keys:"%",type:"motion",motion:"moveToMatchedSymbol",motionArgs:{inclusive:!0,toJumplist:!0}},{keys:"f<character>",type:"motion",motion:"moveToCharacter",motionArgs:{forward:!0,inclusive:!0}},{keys:"F<character>",type:"motion",motion:"moveToCharacter",motionArgs:{forward:!1}},{keys:"t<character>",type:"motion",motion:"moveTillCharacter",motionArgs:{forward:!0,inclusive:!0}},{keys:"T<character>",type:"motion",motion:"moveTillCharacter",motionArgs:{forward:!1}},{keys:";",type:"motion",motion:"repeatLastCharacterSearch",motionArgs:{forward:!0}},{keys:",",type:"motion",motion:"repeatLastCharacterSearch",motionArgs:{forward:!1}},{keys:"'<register>",type:"motion",motion:"goToMark",motionArgs:{toJumplist:!0,linewise:!0}},{keys:"`<register>",type:"motion",motion:"goToMark",motionArgs:{toJumplist:!0}},{keys:"]`",type:"motion",motion:"jumpToMark",motionArgs:{forward:!0}},{keys:"[`",type:"motion",motion:"jumpToMark",motionArgs:{forward:!1}},{keys:"]'",type:"motion",motion:"jumpToMark",motionArgs:{forward:!0,linewise:!0}},{keys:"['",type:"motion",motion:"jumpToMark",motionArgs:{forward:!1,linewise:!0}},{keys:"]p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!0,isEdit:!0,matchIndent:!0}},{keys:"[p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!1,isEdit:!0,matchIndent:!0}},{keys:"]<character>",type:"motion",motion:"moveToSymbol",motionArgs:{forward:!0,toJumplist:!0}},{keys:"[<character>",type:"motion",motion:"moveToSymbol",motionArgs:{forward:!1,toJumplist:!0}},{keys:"|",type:"motion",motion:"moveToColumn"},{keys:"o",type:"motion",motion:"moveToOtherHighlightedEnd",context:"visual"},{keys:"O",type:"motion",motion:"moveToOtherHighlightedEnd",motionArgs:{sameLine:!0},context:"visual"},{keys:"d",type:"operator",operator:"delete"},{keys:"y",type:"operator",operator:"yank"},{keys:"c",type:"operator",operator:"change"},{keys:"=",type:"operator",operator:"indentAuto"},{keys:">",type:"operator",operator:"indent",operatorArgs:{indentRight:!0}},{keys:"<",type:"operator",operator:"indent",operatorArgs:{indentRight:!1}},{keys:"g~",type:"operator",operator:"changeCase"},{keys:"gu",type:"operator",operator:"changeCase",operatorArgs:{toLower:!0},isEdit:!0},{keys:"gU",type:"operator",operator:"changeCase",operatorArgs:{toLower:!1},isEdit:!0},{keys:"n",type:"motion",motion:"findNext",motionArgs:{forward:!0,toJumplist:!0}},{keys:"N",type:"motion",motion:"findNext",motionArgs:{forward:!1,toJumplist:!0}},{keys:"gn",type:"motion",motion:"findAndSelectNextInclusive",motionArgs:{forward:!0}},{keys:"gN",type:"motion",motion:"findAndSelectNextInclusive",motionArgs:{forward:!1}},{keys:"gq",type:"operator",operator:"hardWrap"},{keys:"gw",type:"operator",operator:"hardWrap",operatorArgs:{keepCursor:!0}},{keys:"x",type:"operatorMotion",operator:"delete",motion:"moveByCharacters",motionArgs:{forward:!0},operatorMotionArgs:{visualLine:!1}},{keys:"X",type:"operatorMotion",operator:"delete",motion:"moveByCharacters",motionArgs:{forward:!1},operatorMotionArgs:{visualLine:!0}},{keys:"D",type:"operatorMotion",operator:"delete",motion:"moveToEol",motionArgs:{inclusive:!0},context:"normal"},{keys:"D",type:"operator",operator:"delete",operatorArgs:{linewise:!0},context:"visual"},{keys:"Y",type:"operatorMotion",operator:"yank",motion:"expandToLine",motionArgs:{linewise:!0},context:"normal"},{keys:"Y",type:"operator",operator:"yank",operatorArgs:{linewise:!0},context:"visual"},{keys:"C",type:"operatorMotion",operator:"change",motion:"moveToEol",motionArgs:{inclusive:!0},context:"normal"},{keys:"C",type:"operator",operator:"change",operatorArgs:{linewise:!0},context:"visual"},{keys:"~",type:"operatorMotion",operator:"changeCase",motion:"moveByCharacters",motionArgs:{forward:!0},operatorArgs:{shouldMoveCursor:!0},context:"normal"},{keys:"~",type:"operator",operator:"changeCase",context:"visual"},{keys:"<C-u>",type:"operatorMotion",operator:"delete",motion:"moveToStartOfLine",context:"insert"},{keys:"<C-w>",type:"operatorMotion",operator:"delete",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1},context:"insert"},{keys:"<C-w>",type:"idle",context:"normal"},{keys:"<C-i>",type:"action",action:"jumpListWalk",actionArgs:{forward:!0}},{keys:"<C-o>",type:"action",action:"jumpListWalk",actionArgs:{forward:!1}},{keys:"<C-e>",type:"action",action:"scroll",actionArgs:{forward:!0,linewise:!0}},{keys:"<C-y>",type:"action",action:"scroll",actionArgs:{forward:!1,linewise:!0}},{keys:"a",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"charAfter"},context:"normal"},{keys:"A",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"eol"},context:"normal"},{keys:"A",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"endOfSelectedArea"},context:"visual"},{keys:"i",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"inplace"},context:"normal"},{keys:"gi",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"lastEdit"},context:"normal"},{keys:"I",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"firstNonBlank"},context:"normal"},{keys:"gI",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"bol"},context:"normal"},{keys:"I",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"startOfSelectedArea"},context:"visual"},{keys:"o",type:"action",action:"newLineAndEnterInsertMode",isEdit:!0,interlaceInsertRepeat:!0,actionArgs:{after:!0},context:"normal"},{keys:"O",type:"action",action:"newLineAndEnterInsertMode",isEdit:!0,interlaceInsertRepeat:!0,actionArgs:{after:!1},context:"normal"},{keys:"v",type:"action",action:"toggleVisualMode"},{keys:"V",type:"action",action:"toggleVisualMode",actionArgs:{linewise:!0}},{keys:"<C-v>",type:"action",action:"toggleVisualMode",actionArgs:{blockwise:!0}},{keys:"<C-q>",type:"action",action:"toggleVisualMode",actionArgs:{blockwise:!0}},{keys:"gv",type:"action",action:"reselectLastSelection"},{keys:"J",type:"action",action:"joinLines",isEdit:!0},{keys:"gJ",type:"action",action:"joinLines",actionArgs:{keepSpaces:!0},isEdit:!0},{keys:"p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!0,isEdit:!0}},{keys:"P",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!1,isEdit:!0}},{keys:"r<character>",type:"action",action:"replace",isEdit:!0},{keys:"@<register>",type:"action",action:"replayMacro"},{keys:"q<register>",type:"action",action:"enterMacroRecordMode"},{keys:"R",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{replace:!0},context:"normal"},{keys:"R",type:"operator",operator:"change",operatorArgs:{linewise:!0,fullLine:!0},context:"visual",exitVisualBlock:!0},{keys:"u",type:"action",action:"undo",context:"normal"},{keys:"u",type:"operator",operator:"changeCase",operatorArgs:{toLower:!0},context:"visual",isEdit:!0},{keys:"U",type:"operator",operator:"changeCase",operatorArgs:{toLower:!1},context:"visual",isEdit:!0},{keys:"<C-r>",type:"action",action:"redo"},{keys:"m<register>",type:"action",action:"setMark"},{keys:'"<register>',type:"action",action:"setRegister"},{keys:"<C-r><register>",type:"action",action:"insertRegister",context:"insert",isEdit:!0},{keys:"<C-o>",type:"action",action:"oneNormalCommand",context:"insert"},{keys:"zz",type:"action",action:"scrollToCursor",actionArgs:{position:"center"}},{keys:"z.",type:"action",action:"scrollToCursor",actionArgs:{position:"center"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"zt",type:"action",action:"scrollToCursor",actionArgs:{position:"top"}},{keys:"z<CR>",type:"action",action:"scrollToCursor",actionArgs:{position:"top"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"zb",type:"action",action:"scrollToCursor",actionArgs:{position:"bottom"}},{keys:"z-",type:"action",action:"scrollToCursor",actionArgs:{position:"bottom"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:".",type:"action",action:"repeatLastEdit"},{keys:"<C-a>",type:"action",action:"incrementNumberToken",isEdit:!0,actionArgs:{increase:!0,backtrack:!1}},{keys:"<C-x>",type:"action",action:"incrementNumberToken",isEdit:!0,actionArgs:{increase:!1,backtrack:!1}},{keys:"<C-t>",type:"action",action:"indent",actionArgs:{indentRight:!0},context:"insert"},{keys:"<C-d>",type:"action",action:"indent",actionArgs:{indentRight:!1},context:"insert"},{keys:"a<register>",type:"motion",motion:"textObjectManipulation"},{keys:"i<register>",type:"motion",motion:"textObjectManipulation",motionArgs:{textObjectInner:!0}},{keys:"/",type:"search",searchArgs:{forward:!0,querySrc:"prompt",toJumplist:!0}},{keys:"?",type:"search",searchArgs:{forward:!1,querySrc:"prompt",toJumplist:!0}},{keys:"*",type:"search",searchArgs:{forward:!0,querySrc:"wordUnderCursor",wholeWordOnly:!0,toJumplist:!0}},{keys:"#",type:"search",searchArgs:{forward:!1,querySrc:"wordUnderCursor",wholeWordOnly:!0,toJumplist:!0}},{keys:"g*",type:"search",searchArgs:{forward:!0,querySrc:"wordUnderCursor",toJumplist:!0}},{keys:"g#",type:"search",searchArgs:{forward:!1,querySrc:"wordUnderCursor",toJumplist:!0}},{keys:":",type:"ex"}],yo=Mn.length,si=[{name:"colorscheme",shortName:"colo"},{name:"map"},{name:"imap",shortName:"im"},{name:"nmap",shortName:"nm"},{name:"vmap",shortName:"vm"},{name:"omap",shortName:"om"},{name:"noremap",shortName:"no"},{name:"nnoremap",shortName:"nn"},{name:"vnoremap",shortName:"vn"},{name:"inoremap",shortName:"ino"},{name:"onoremap",shortName:"ono"},{name:"unmap"},{name:"mapclear",shortName:"mapc"},{name:"nmapclear",shortName:"nmapc"},{name:"vmapclear",shortName:"vmapc"},{name:"imapclear",shortName:"imapc"},{name:"omapclear",shortName:"omapc"},{name:"write",shortName:"w"},{name:"undo",shortName:"u"},{name:"redo",shortName:"red"},{name:"set",shortName:"se"},{name:"setlocal",shortName:"setl"},{name:"setglobal",shortName:"setg"},{name:"sort",shortName:"sor"},{name:"substitute",shortName:"s",possiblyAsync:!0},{name:"startinsert",shortName:"start"},{name:"nohlsearch",shortName:"noh"},{name:"yank",shortName:"y"},{name:"delmarks",shortName:"delm"},{name:"registers",shortName:"reg",excludeFromCommandHistory:!0},{name:"vglobal",shortName:"v"},{name:"delete",shortName:"d"},{name:"join",shortName:"j"},{name:"normal",shortName:"norm"},{name:"global",shortName:"g"}],Vn=O(""),ua=/[\d]/,wo=[Fe.isWordChar,function(v){return v&&!Fe.isWordChar(v)&&!/\s/.test(v)}],bi=[function(v){return/\S/.test(v)}],no=["<",">"],nn=["-",'"',".",":","_","/","+"],Zt=/^\w$/,rn;try{rn=new RegExp("^[\\p{Lu}]$","u")}catch{rn=/^[A-Z]$/}var Vt={};E("filetype",void 0,"string",["ft"],function(v,T){if(T!==void 0){if(v===void 0){var k=T.getOption("mode");return k=="null"?"":k}var k=v==""?"null":v;T.setOption("mode",k)}}),E("textwidth",80,"number",["tw"],function(v,T){if(T!==void 0){if(v===void 0){var k=T.getOption("textwidth");return k}var D=Math.round(v);D>1&&T.setOption("textwidth",D)}});var xi=function(){function v(Q,re,se){function ye(Oe){var Le=++W%D,Ue=Y[Le];Ue&&Ue.clear(),Y[Le]=Q.setBookmark(Oe)}var Ce=W%D,me=Y[Ce];if(me){var we=me.find();we&&!dt(we,re)&&ye(re)}else ye(re);ye(se),z=W,K=W-D+1,K<0&&(K=0)}function T(Q,re){W+=re,W>z?W=z:W<K&&(W=K);var se=Y[(D+W)%D];if(se&&!se.find()){var ye=re>0?1:-1,Ce,me=Q.getCursor();do if(W+=ye,se=Y[(D+W)%D],se&&(Ce=se.find())&&!dt(me,Ce))break;while(W<z&&W>K)}return se}function k(Q,re){var se=W,ye=T(Q,re);return W=se,ye&&ye.find()}var D=100,W=-1,z=0,K=0,Y=new Array(D);return{cachedCursor:void 0,add:v,find:k,move:T}},Nn=function(v){return v?{changes:v.changes,expectCursorActivityForChange:v.expectCursorActivityForChange}:{changes:[],expectCursorActivityForChange:!1}};C.prototype={exitMacroRecordMode:function(){var v=Be.macroModeState;v.onRecordingDone&&v.onRecordingDone(),v.onRecordingDone=void 0,v.isRecording=!1},enterMacroRecordMode:function(v,T){var k=Be.registerController.getRegister(T);if(k){if(k.clear(),this.latestRegister=T,v.openDialog){var D=oi("span",{class:"cm-vim-message"},"recording @"+T);this.onRecordingDone=v.openDialog(D,null,{bottom:!0})}this.isRecording=!0}}};var Be,yn,Ct={enterVimMode:h,leaveVimMode:g,buildKeyMap:function(){},getRegisterController:function(){return Be.registerController},resetVimGlobalState_:L,getVimGlobalState_:function(){return Be},maybeInitVimState_:R,suppressErrorLogging:!1,InsertModeKey:Ji,map:function(v,T,k){vr.map(v,T,k)},unmap:function(v,T){return vr.unmap(v,T)},noremap:function(v,T,k){vr.map(v,T,k,!0)},mapclear:function(v){var T=Mn.length,k=yo,D=Mn.slice(0,T-k);if(Mn=Mn.slice(T-k),v)for(var W=D.length-1;W>=0;W--){var z=D[W];if(v!==z.context)if(z.context)this._mapCommand(z);else{var K=["normal","insert","visual"];for(var Y in K)if(K[Y]!==v){var Q={};for(var re in z)Q[re]=z[re];Q.context=K[Y],this._mapCommand(Q)}}}},langmap:F,vimKeyFromEvent:H,setOption:$,getOption:S,defineOption:E,defineEx:function(v,T,k){if(!T)T=v;else if(v.indexOf(T)!==0)throw new Error('(Vim.defineEx) "'+T+'" is not a prefix of "'+v+'", command not registered');_s[v]=k,vr.commandMap_[T]={name:v,shortName:T,type:"api"}},handleKey:function(v,T,k){var D=this.findKey(v,T,k);if(typeof D=="function")return D()},multiSelectHandleKey:go,findKey:function(v,T,k){function D(){var re=Be.macroModeState;if(re.isRecording){if(T=="q")return re.exitMacroRecordMode(),A(v),!0;k!="mapping"&&Bo(re,T)}}function W(){if(T=="<Esc>"){if(Y.visualMode)St(v);else{if(!Y.insertMode)return;Gr(v)}return A(v),!0}}function z(){if(W())return!0;Y.inputState.keyBuffer.push(T);var re=Y.inputState.keyBuffer.join(""),se=T.length==1,ye=Dn.matchCommand(re,Mn,Y.inputState,"insert"),Ce=Y.inputState.changeQueue;if(ye.type=="none")return A(v),!1;if(ye.type=="partial"){if(ye.expectLiteralNext&&(Y.expectLiteralNext=!0),yn&&window.clearTimeout(yn),yn=se&&window.setTimeout(function(){Y.insertMode&&Y.inputState.keyBuffer.length&&A(v)},S("insertModeEscKeysTimeout")),se){var me=v.listSelections();(!Ce||Ce.removed.length!=me.length)&&(Ce=Y.inputState.changeQueue=new N),Ce.inserted+=T;for(var we=0;we<me.length;we++){var Oe=pt(me[we].anchor,me[we].head),Le=tn(me[we].anchor,me[we].head),Ue=v.getRange(Oe,v.state.overwrite?fe(Le,0,1):Le);Ce.removed[we]=(Ce.removed[we]||"")+Ue}}return!se}if(Y.expectLiteralNext=!1,yn&&window.clearTimeout(yn),ye.command&&Ce){for(var me=v.listSelections(),we=0;we<me.length;we++){var at=me[we].head;v.replaceRange(Ce.removed[we]||"",fe(at,0,-Ce.inserted.length),at,"+input")}Be.macroModeState.lastInsertModeChanges.changes.pop()}return ye.command||A(v),ye.command}function K(){if(D()||W())return!0;Y.inputState.keyBuffer.push(T);var re=Y.inputState.keyBuffer.join("");if(/^[1-9]\d*$/.test(re))return!0;var se=/^(\d*)(.*)$/.exec(re);if(!se)return A(v),!1;var ye=Y.visualMode?"visual":"normal",Ce=se[2]||se[1];Y.inputState.operatorShortcut&&Y.inputState.operatorShortcut.slice(-1)==Ce&&(Ce=Y.inputState.operatorShortcut);var me=Dn.matchCommand(Ce,Mn,Y.inputState,ye);return me.type=="none"?(A(v),!1):me.type=="partial"?(me.expectLiteralNext&&(Y.expectLiteralNext=!0),!0):me.type=="clear"?(A(v),!0):(Y.expectLiteralNext=!1,Y.inputState.keyBuffer.length=0,se=/^(\d*)(.*)$/.exec(re),se[1]&&se[1]!="0"&&Y.inputState.pushRepeatDigit(se[1]),me.command)}var Y=R(v),Q;return Y.insertMode?Q=z():Q=K(),Q===!1?!Y.insertMode&&T.length===1?function(){return!0}:void 0:Q===!0?function(){return!0}:function(){if(!((Q.operator||Q.isEdit)&&v.getOption("readOnly")))return v.operation(function(){v.curOp.isVimOp=!0;try{Q.type=="keyToKey"?I(v,Q.toKeys,Q):Dn.processCommand(v,Y,Q)}catch(re){throw v.state.vim=void 0,R(v),Ct.suppressErrorLogging||console.log(re),re}return!0})}},handleEx:function(v,T){vr.processCommand(v,T)},defineMotion:te,defineAction:ae,defineOperator:ne,mapCommand:xs,_mapCommand:Wo,defineRegister:U,exitVisualMode:St,exitInsertMode:Gr},Lr=[],cn=!1,xn,Zn={Return:"CR",Backspace:"BS",Delete:"Del",Escape:"Esc",Insert:"Ins",ArrowLeft:"Left",ArrowRight:"Right",ArrowUp:"Up",ArrowDown:"Down",Enter:"CR"," ":"Space"},Or={Shift:1,Alt:1,Command:1,Control:1,CapsLock:1,AltGraph:1,Dead:1,Unidentified:1},Ci={};"Left|Right|Up|Down|End|Home".split("|").concat(Object.keys(Zn)).forEach(function(v){Ci[(Zn[v]||"").toLowerCase()]=Ci[v.toLowerCase()]=v}),E("langmap",void 0,"string",["lmap"],function(v,T){if(v===void 0)return Vn.string;F(v)}),_.prototype.pushRepeatDigit=function(v){this.operator?this.motionRepeat=this.motionRepeat.concat(v):this.prefixRepeat=this.prefixRepeat.concat(v)},_.prototype.getRepeat=function(){var v=0;return(this.prefixRepeat.length>0||this.motionRepeat.length>0)&&(v=1,this.prefixRepeat.length>0&&(v*=parseInt(this.prefixRepeat.join(""),10)),this.motionRepeat.length>0&&(v*=parseInt(this.motionRepeat.join(""),10))),v},B.prototype={setText:function(v,T,k){this.keyBuffer=[v||""],this.linewise=!!T,this.blockwise=!!k},pushText:function(v,T){T&&(this.linewise||this.keyBuffer.push(`
|
1440
|
+
`),this.linewise=!0),this.keyBuffer.push(v)},pushInsertModeChanges:function(v){this.insertModeChanges.push(Nn(v))},pushSearchQuery:function(v){this.searchQueries.push(v)},clear:function(){this.keyBuffer=[],this.insertModeChanges=[],this.searchQueries=[],this.linewise=!1},toString:function(){return this.keyBuffer.join("")}},q.prototype={pushText:function(v,T,k,D,W){if(v!=="_"){D&&k.charAt(k.length-1)!==`
|
1441
1441
|
`&&(k+=`
|
1442
1442
|
`);var z=this.isValidRegister(v)?this.getRegister(v):null;if(!z){switch(T){case"yank":this.registers[0]=new B(k,D,W);break;case"delete":case"change":k.indexOf(`
|
1443
|
-
`)==-1?this.registers["-"]=new B(k,D):(this.shiftNumericRegisters_(),this.registers[1]=new B(k,D))}this.unnamedRegister.setText(k,D,W);return}var K=c(v);K?z.pushText(k,D):z.setText(k,D,W),v==="+"&&typeof navigator<"u"&&typeof navigator.clipboard<"u"&&typeof navigator.clipboard.readText=="function"&&navigator.clipboard.writeText(k),this.unnamedRegister.setText(z.toString(),D)}},getRegister:function(v){return this.isValidRegister(v)?(v=v.toLowerCase(),this.registers[v]||(this.registers[v]=new B),this.registers[v]):this.unnamedRegister},isValidRegister:function(v){return v&&(x(v,nn)||Zt.test(v))},shiftNumericRegisters_:function(){for(var v=9;v>=2;v--)this.registers[v]=this.getRegister(""+(v-1))}},Z.prototype={nextMatch:function(v,T){var k=this.historyBuffer,D=T?-1:1;this.initialPrefix===null&&(this.initialPrefix=v);for(var W=this.iterator+D;T?W>=0:W<k.length;W+=D)for(var z=k[W],K=0;K<=z.length;K++)if(this.initialPrefix==z.substring(0,K))return this.iterator=W,z;if(W>=k.length)return this.iterator=k.length,this.initialPrefix;if(W<0)return v},pushInput:function(v){var T=this.historyBuffer.indexOf(v);T>-1&&this.historyBuffer.splice(T,1),v.length&&this.historyBuffer.push(v)},reset:function(){this.initialPrefix=null,this.iterator=this.historyBuffer.length}};var Nn={matchCommand:function(v,T,k,D){var W=Te(v,T,D,k);if(!W.full&&!W.partial)return{type:"none"};if(!W.full&&W.partial)return{type:"partial",expectLiteralNext:W.partial.length==1&&W.partial[0].keys.slice(-11)=="<character>"};for(var z,K=0;K<W.full.length;K++){var Y=W.full[K];z||(z=Y)}if(z.keys.slice(-11)=="<character>"||z.keys.slice(-10)=="<register>"){var Q=Ie(v);if(!Q||Q.length>1)return{type:"clear"};k.selectedCharacter=Q}return{type:"full",command:z}},processCommand:function(v,T,k){switch(T.inputState.repeatOverride=k.repeatOverride,k.type){case"motion":this.processMotion(v,T,k);break;case"operator":this.processOperator(v,T,k);break;case"operatorMotion":this.processOperatorMotion(v,T,k);break;case"action":this.processAction(v,T,k);break;case"search":this.processSearch(v,T,k);break;case"ex":case"keyToEx":this.processEx(v,T,k);break}},processMotion:function(v,T,k){T.inputState.motion=k.motion,T.inputState.motionArgs=ce(k.motionArgs),this.evalInput(v,T)},processOperator:function(v,T,k){var D=T.inputState;if(D.operator){if(D.operator==k.operator){D.motion="expandToLine",D.motionArgs={linewise:!0},this.evalInput(v,T);return}A(v)}D.operator=k.operator,D.operatorArgs=ce(k.operatorArgs),k.keys.length>1&&(D.operatorShortcut=k.keys),k.exitVisualBlock&&(T.visualBlock=!1,Xe(v)),T.visualMode&&this.evalInput(v,T)},processOperatorMotion:function(v,T,k){var D=T.visualMode,W=ce(k.operatorMotionArgs);W&&D&&W.visualLine&&(T.visualLine=!0),this.processOperator(v,T,k),D||this.processMotion(v,T,k)},processAction:function(v,T,k){var D=T.inputState,W=D.getRepeat(),z=!!W,K=ce(k.actionArgs)||{};D.selectedCharacter&&(K.selectedCharacter=D.selectedCharacter),k.operator&&this.processOperator(v,T,k),k.motion&&this.processMotion(v,T,k),(k.motion||k.operator)&&this.evalInput(v,T),K.repeat=W||1,K.repeatIsExplicit=z,K.registerName=D.registerName,A(v),T.lastMotion=null,k.isEdit&&this.recordLastEdit(T,D,k),Dn[k.action](v,K,T)},processSearch:function(v,T,k){function D(Le,Ue,at){Be.searchHistoryController.pushInput(Le),Be.searchHistoryController.reset();try{mn(v,Le,Ue,at)}catch{Ut(v,"Invalid regex: "+Le),A(v);return}Nn.processMotion(v,T,{type:"motion",motion:"findNext",motionArgs:{forward:!0,toJumplist:k.searchArgs.toJumplist}})}function W(Le){D(Le,!0,!0);var Ue=Be.macroModeState;Ue.isRecording&&ks(Ue,Le)}function z(Le,Ue,at){var Ze=H(Le),tt,yn;Ze=="<Up>"||Ze=="<Down>"?(tt=Ze=="<Up>",yn=Le.target?Le.target.selectionEnd:0,Ue=Be.searchHistoryController.nextMatch(Ue,tt)||"",at(Ue),yn&&Le.target&&(Le.target.selectionEnd=Le.target.selectionStart=Math.min(yn,Le.target.value.length))):Ze&&Ze!="<Left>"&&Ze!="<Right>"&&Be.searchHistoryController.reset();var lt;try{lt=mn(v,Ue,!0,!0)}catch{}lt?v.scrollIntoView(Tr(v,!Y,lt),30):(Po(v),v.scrollTo(ye.left,ye.top))}function K(Le,Ue,at){var Ze=H(Le);Ze=="<Esc>"||Ze=="<C-c>"||Ze=="<C-[>"||Ze=="<BS>"&&Ue==""?(Be.searchHistoryController.pushInput(Ue),Be.searchHistoryController.reset(),mn(v,se),Po(v),v.scrollTo(ye.left,ye.top),Fe.e_stop(Le),A(v),at(),v.focus()):Ze=="<Up>"||Ze=="<Down>"?Fe.e_stop(Le):Ze=="<C-u>"&&(Fe.e_stop(Le),at(""))}if(v.getSearchCursor){var Y=k.searchArgs.forward,Q=k.searchArgs.wholeWordOnly;Tn(v).setReversed(!Y);var re=Y?"/":"?",se=Tn(v).getQuery(),ye=v.getScrollInfo();switch(k.searchArgs.querySrc){case"prompt":var Ce=Be.macroModeState;if(Ce.isPlaying){var Oe=Ce.replaySearchQueries.shift();D(Oe,!0,!1)}else _r(v,{onClose:W,prefix:re,desc:"(JavaScript regexp)",onKeyUp:z,onKeyDown:K});break;case"wordUnderCursor":var me=xt(v,{noSymbol:!0}),we=!0;if(me||(me=xt(v,{noSymbol:!1}),we=!1),!me){Ut(v,"No word under cursor"),A(v);return}var Oe=v.getLine(me.start.line).substring(me.start.ch,me.end.ch);we&&Q?Oe="\\b"+Oe+"\\b":Oe=fn(Oe),Be.jumpList.cachedCursor=v.getCursor(),v.setCursor(me.start),D(Oe,!0,!1)}}},processEx:function(v,T,k){function D(z){Be.exCommandHistoryController.pushInput(z),Be.exCommandHistoryController.reset(),vr.processCommand(v,z),v.state.vim&&A(v)}function W(z,K,Y){var Q=H(z),re,se;(Q=="<Esc>"||Q=="<C-c>"||Q=="<C-[>"||Q=="<BS>"&&K=="")&&(Be.exCommandHistoryController.pushInput(K),Be.exCommandHistoryController.reset(),Fe.e_stop(z),A(v),Y(),v.focus()),Q=="<Up>"||Q=="<Down>"?(Fe.e_stop(z),re=Q=="<Up>",se=z.target?z.target.selectionEnd:0,K=Be.exCommandHistoryController.nextMatch(K,re)||"",Y(K),se&&z.target&&(z.target.selectionEnd=z.target.selectionStart=Math.min(se,z.target.value.length))):Q=="<C-u>"?(Fe.e_stop(z),Y("")):Q&&Q!="<Left>"&&Q!="<Right>"&&Be.exCommandHistoryController.reset()}k.type=="keyToEx"?vr.processCommand(v,k.exArgs.input):T.visualMode?_r(v,{onClose:D,prefix:":",value:"'<,'>",onKeyDown:W,selectValueOnOpen:!1}):_r(v,{onClose:D,prefix:":",onKeyDown:W})},evalInput:function(v,T){var k=T.inputState,D=k.motion,W=k.motionArgs||{},z=k.operator,K=k.operatorArgs||{},Y=k.registerName,Q=T.sel,re=qe(T.visualMode?ue(v,Q.head):v.getCursor("head")),se=qe(T.visualMode?ue(v,Q.anchor):v.getCursor("anchor")),ye=qe(re),Ce=qe(se),me,we,Oe;if(z&&this.recordLastEdit(T,k),k.repeatOverride!==void 0?Oe=k.repeatOverride:Oe=k.getRepeat(),Oe>0&&W.explicitRepeat?W.repeatIsExplicit=!0:(W.noRepeat||!W.explicitRepeat&&Oe===0)&&(Oe=1,W.repeatIsExplicit=!1),k.selectedCharacter&&(W.selectedCharacter=K.selectedCharacter=k.selectedCharacter),W.repeat=Oe,A(v),D){var Le=Yr[D](v,re,W,T,k);if(T.lastMotion=Yr[D],!Le)return;if(W.toJumplist){!z&&v.ace.curOp!=null&&(v.ace.curOp.command.scrollIntoView="center-animate");var Ue=Be.jumpList,at=Ue.cachedCursor;at?(kr(v,at,Le),delete Ue.cachedCursor):kr(v,re,Le)}Le instanceof Array?(we=Le[0],me=Le[1]):me=Le,me||(me=qe(re)),T.visualMode?((!T.visualBlock||me.ch!==1/0)&&(me=ue(v,me,ye)),we&&(we=ue(v,we)),we=we||Ce,Q.anchor=we,Q.head=me,Xe(v),ii(v,T,"<",nt(we,me)?we:me),ii(v,T,">",nt(we,me)?me:we)):z||(v.ace.curOp&&(v.ace.curOp.vimDialogScroll="center-animate"),me=ue(v,me,ye),v.setCursor(me.line,me.ch))}if(z){if(K.lastSel){we=Ce;var Ze=K.lastSel,tt=Math.abs(Ze.head.line-Ze.anchor.line),yn=Math.abs(Ze.head.ch-Ze.anchor.ch);Ze.visualLine?me=new Ne(Ce.line+tt,Ce.ch):Ze.visualBlock?me=new Ne(Ce.line+tt,Ce.ch+yn):Ze.head.line==Ze.anchor.line?me=new Ne(Ce.line,Ce.ch+yn):me=new Ne(Ce.line+tt,Ce.ch),T.visualMode=!0,T.visualLine=Ze.visualLine,T.visualBlock=Ze.visualBlock,Q=T.sel={anchor:we,head:me},Xe(v)}else T.visualMode&&(K.lastSel={anchor:qe(Q.anchor),head:qe(Q.head),visualBlock:T.visualBlock,visualLine:T.visualLine});var lt,kn,_t,Rt,Zn;if(T.visualMode){lt=pt(Q.head,Q.anchor),kn=tn(Q.head,Q.anchor),_t=T.visualLine||K.linewise,Rt=T.visualBlock?"block":_t?"line":"char";var ur=b(v,lt,kn);if(Zn=gt(v,{anchor:ur.start,head:ur.end},Rt),_t){var Sn=Zn.ranges;if(Rt=="block")for(var V=0;V<Sn.length;V++)Sn[V].head.ch=Yt(v,Sn[V].head.line);else Rt=="line"&&(Sn[0].head=new Ne(Sn[0].head.line+1,0))}}else{if(lt=qe(we||Ce),kn=qe(me||ye),nt(kn,lt)){var X=lt;lt=kn,kn=X}_t=W.linewise||K.linewise,_t?Ot(v,lt,kn):W.forward&&Dt(v,lt,kn),Rt="char";var ie=!W.inclusive||_t,ur=b(v,lt,kn);Zn=gt(v,{anchor:ur.start,head:ur.end},Rt,ie)}v.setSelections(Zn.ranges,Zn.primary),T.lastMotion=null,K.repeat=Oe,K.registerName=Y,K.linewise=_t;var oe=qo[z](v,K,Zn.ranges,Ce,me);T.visualMode&&St(v,oe!=null),oe&&v.setCursor(oe)}},recordLastEdit:function(v,T,k){var D=Be.macroModeState;D.isPlaying||(v.lastEditInputState=T,v.lastEditActionCommand=k,D.lastInsertModeChanges.changes=[],D.lastInsertModeChanges.expectCursorActivityForChange=!1,D.lastInsertModeChanges.visualBlock=v.visualBlock?v.sel.head.line-v.sel.anchor.line:0)}},Yr={moveToTopLine:function(v,T,k){var D=Zi(v).top+k.repeat-1;return new Ne(D,ut(v.getLine(D)))},moveToMiddleLine:function(v){var T=Zi(v),k=Math.floor((T.top+T.bottom)*.5);return new Ne(k,ut(v.getLine(k)))},moveToBottomLine:function(v,T,k){var D=Zi(v).bottom-k.repeat+1;return new Ne(D,ut(v.getLine(D)))},expandToLine:function(v,T,k){var D=T;return new Ne(D.line+k.repeat-1,1/0)},findNext:function(v,T,k){var D=Tn(v),W=D.getQuery();if(W){var z=!k.forward;return z=D.isReversed()?!z:z,vi(v,W),Tr(v,z,W,k.repeat)}},findAndSelectNextInclusive:function(v,T,k,D,W){var z=Tn(v),K=z.getQuery();if(K){var Y=!k.forward;Y=z.isReversed()?!Y:Y;var Q=yi(v,Y,K,k.repeat,D);if(Q){if(W.operator)return Q;var re=Q[0],se=new Ne(Q[1].line,Q[1].ch-1);if(D.visualMode){(D.visualLine||D.visualBlock)&&(D.visualLine=!1,D.visualBlock=!1,Fe.signal(v,"vim-mode-change",{mode:"visual",subMode:""}));var ye=D.sel.anchor;if(ye)return z.isReversed()?k.forward?[ye,re]:[ye,se]:k.forward?[ye,se]:[ye,re]}else D.visualMode=!0,D.visualLine=!1,D.visualBlock=!1,Fe.signal(v,"vim-mode-change",{mode:"visual",subMode:""});return Y?[se,re]:[re,se]}}},goToMark:function(v,T,k,D){var W=qr(v,D,k.selectedCharacter);return W?k.linewise?{line:W.line,ch:ut(v.getLine(W.line))}:W:null},moveToOtherHighlightedEnd:function(v,T,k,D){if(D.visualBlock&&k.sameLine){var W=D.sel;return[ue(v,new Ne(W.anchor.line,W.head.ch)),ue(v,new Ne(W.head.line,W.anchor.ch))]}return[D.sel.head,D.sel.anchor]},jumpToMark:function(v,T,k,D){for(var W=T,z=0;z<k.repeat;z++){var K=W;for(var Y in D.marks)if(u(Y)){var Q=D.marks[Y].find(),re=k.forward?nt(Q,K):nt(K,Q);if(!re&&!(k.linewise&&Q.line==K.line)){var se=dt(K,W),ye=k.forward?gn(K,Q,W):gn(W,Q,K);(se||ye)&&(W=Q)}}}return k.linewise&&(W=new Ne(W.line,ut(v.getLine(W.line)))),W},moveByCharacters:function(v,T,k){var D=T,W=k.repeat,z=k.forward?D.ch+W:D.ch-W;return new Ne(D.line,z)},moveByLines:function(v,T,k,D){var W=T,z=W.ch;switch(D.lastMotion){case this.moveByLines:case this.moveByDisplayLines:case this.moveByScroll:case this.moveToColumn:case this.moveToEol:z=D.lastHPos;break;default:D.lastHPos=z}var K=k.repeat+(k.repeatOffset||0),Y=k.forward?W.line+K:W.line-K,Q=v.firstLine(),re=v.lastLine();if(Y<Q&&W.line==Q)return this.moveToStartOfLine(v,T,k,D);if(Y>re&&W.line==re)return uo(v,T,k,D,!0);var se=v.ace.session.getFoldLine(Y);return se&&(k.forward?Y>se.start.row&&(Y=se.end.row+1):Y=se.start.row),k.toFirstChar&&(z=ut(v.getLine(Y)),D.lastHPos=z),D.lastHSPos=v.charCoords(new Ne(Y,z),"div").left,new Ne(Y,z)},moveByDisplayLines:function(v,T,k,D){var W=T;switch(D.lastMotion){case this.moveByDisplayLines:case this.moveByScroll:case this.moveByLines:case this.moveToColumn:case this.moveToEol:break;default:D.lastHSPos=v.charCoords(W,"div").left}var z=k.repeat,Q=v.findPosV(W,k.forward?z:-z,"line",D.lastHSPos);if(Q.hitSide)if(k.forward)var K=v.charCoords(Q,"div"),Y={top:K.top+8,left:D.lastHSPos},Q=v.coordsChar(Y,"div");else{var re=v.charCoords(new Ne(v.firstLine(),0),"div");re.left=D.lastHSPos,Q=v.coordsChar(re,"div")}return D.lastHPos=Q.ch,Q},moveByPage:function(v,T,k){var D=T,W=k.repeat;return v.findPosV(D,k.forward?W:-W,"page")},moveByParagraph:function(v,T,k){var D=k.forward?1:-1;return ys(v,T,k.repeat,D)},moveBySentence:function(v,T,k){var D=k.forward?1:-1;return Pi(v,T,k.repeat,D)},moveByScroll:function(v,T,k,D){var W=v.getScrollInfo(),z=null,K=k.repeat;K||(K=W.clientHeight/(2*v.defaultTextHeight()));var Y=v.charCoords(T,"local");if(k.repeat=K,z=Yr.moveByDisplayLines(v,T,k,D),!z)return null;var Q=v.charCoords(z,"local");return v.scrollTo(null,W.top+Q.top-Y.top),z},moveByWords:function(v,T,k){return fr(v,T,k.repeat,!!k.forward,!!k.wordEnd,!!k.bigWord)},moveTillCharacter:function(v,T,k){var D=k.repeat,W=Do(v,D,k.forward,k.selectedCharacter,T),z=k.forward?-1:1;return Kr(z,k),W?(W.ch+=z,W):null},moveToCharacter:function(v,T,k){var D=k.repeat;return Kr(0,k),Do(v,D,k.forward,k.selectedCharacter,T)||T},moveToSymbol:function(v,T,k){var D=k.repeat;return Di(v,D,k.forward,k.selectedCharacter)||T},moveToColumn:function(v,T,k,D){var W=k.repeat;return D.lastHPos=W-1,D.lastHSPos=v.charCoords(T,"div").left,Ha(v,W)},moveToEol:function(v,T,k,D){return uo(v,T,k,D,!1)},moveToFirstNonWhiteSpaceCharacter:function(v,T){var k=T;return new Ne(k.line,ut(v.getLine(k.line)))},moveToMatchedSymbol:function(v,T){for(var k=T,D=k.line,W=k.ch,z=v.getLine(D),K;W<z.length;W++)if(K=z.charAt(W),K&&a(K)){var Y=v.getTokenTypeAt(new Ne(D,W+1));if(Y!=="string"&&Y!=="comment")break}if(W<z.length){var Q=/[<>]/.test(z[W])?/[(){}[\]<>]/:/[(){}[\]]/,re=v.findMatchingBracket(new Ne(D,W+1),{bracketRegex:Q});return re.to}return k},moveToStartOfLine:function(v,T){return new Ne(T.line,0)},moveToLineOrEdgeOfDocument:function(v,T,k){var D=k.forward?v.lastLine():v.firstLine();return k.repeatIsExplicit&&(D=k.repeat-v.getOption("firstLineNumber")),new Ne(D,ut(v.getLine(D)))},moveToStartOfDisplayLine:function(v){return v.execCommand("goLineLeft"),v.getCursor()},moveToEndOfDisplayLine:function(v){v.execCommand("goLineRight");var T=v.getCursor();return T.sticky=="before"&&T.ch--,T},textObjectManipulation:function(v,T,k,D){var W={"(":")",")":"(","{":"}","}":"{","[":"]","]":"[","<":">",">":"<"},z={"'":!0,'"':!0,"`":!0},K=k.selectedCharacter;K=="b"?K="(":K=="B"&&(K="{");var Y=!k.textObjectInner,Q,re;if(W[K]){if(re=!0,Q=jn(v,T,K,Y),!Q){var se=v.getSearchCursor(new RegExp("\\"+K,"g"),T);se.find()&&(Q=jn(v,se.from(),K,Y))}}else if(z[K])re=!0,Q=Sr(v,T,K,Y);else if(K==="W"||K==="w")for(var ye=k.repeat||1;ye-- >0;){var Ce=xt(v,{inclusive:Y,innerWord:!Y,bigWord:K==="W",noSymbol:K==="W",multiline:!0},Q&&Q.end);Ce&&(Q||(Q=Ce),Q.end=Ce.end)}else if(K==="p")if(Q=ys(v,T,k.repeat,0,Y),k.linewise=!0,D.visualMode)D.visualLine||(D.visualLine=!0);else{var me=D.inputState.operatorArgs;me&&(me.linewise=!0),Q.end.line--}else if(K==="t")Q=Cn(v,T,Y);else if(K==="s"){var we=v.getLine(T.line);T.ch>0&&w(we[T.ch])&&(T.ch-=1);var Oe=ra(v,T,k.repeat,1,Y),Le=ra(v,T,k.repeat,-1,Y);d(v.getLine(Le.line)[Le.ch])&&d(v.getLine(Oe.line)[Oe.ch-1])&&(Le={line:Le.line,ch:Le.ch+1}),Q={start:Le,end:Oe}}return Q?v.state.vim.visualMode?ze(v,Q.start,Q.end,re):[Q.start,Q.end]:null},repeatLastCharacterSearch:function(v,T,k){var D=Be.lastCharacterSearch,W=k.repeat,z=k.forward===D.forward,K=(D.increment?1:0)*(z?-1:1);v.moveH(-K,"char"),k.inclusive=!!z;var Y=Do(v,W,z,D.selectedCharacter);return Y?(Y.ch+=K,Y):(v.moveH(K,"char"),T)}},qo={change:function(v,T,k){var D,W,z=v.state.vim,K=k[0].anchor,Y=k[0].head;if(z.visualMode)if(T.fullLine)Y.ch=Number.MAX_VALUE,Y.line--,v.setSelection(K,Y),W=v.getSelection(),v.replaceSelection(""),D=K;else{W=v.getSelection();var Q=he("",k.length);v.replaceSelections(Q),D=pt(k[0].head,k[0].anchor)}else{W=v.getRange(K,Y);var re=z.lastEditInputState||{};if(re.motion=="moveByWords"&&!d(W)){var se=/\s+$/.exec(W);se&&re.motionArgs&&re.motionArgs.forward&&(Y=fe(Y,0,-se[0].length),W=W.slice(0,-se[0].length))}T.linewise&&(K=new Ne(K.line,ut(v.getLine(K.line))),Y.line>K.line&&(Y=new Ne(Y.line-1,Number.MAX_VALUE))),v.replaceRange("",K,Y),D=K}Be.registerController.pushText(T.registerName,"change",W,T.linewise,k.length>1),Dn.enterInsertMode(v,{head:D},v.state.vim)},delete:function(v,T,k){var D,W,z=v.state.vim;if(z.visualBlock){W=v.getSelection();var K=he("",k.length);v.replaceSelections(K),D=pt(k[0].head,k[0].anchor)}else{var Y=k[0].anchor,Q=k[0].head;T.linewise&&Q.line!=v.firstLine()&&Y.line==v.lastLine()&&Y.line==Q.line-1&&(Y.line==v.firstLine()?Y.ch=0:Y=new Ne(Y.line-1,Yt(v,Y.line-1))),W=v.getRange(Y,Q),v.replaceRange("",Y,Q),D=Y,T.linewise&&(D=Yr.moveToFirstNonWhiteSpaceCharacter(v,Y))}return Be.registerController.pushText(T.registerName,"delete",W,T.linewise,z.visualBlock),ue(v,D)},indent:function(v,T,k){var D=v.state.vim,W=D.visualMode?T.repeat:1;if(D.visualBlock){for(var z=v.getOption("tabSize"),K=v.getOption("indentWithTabs")?" ":" ".repeat(z),Y,Q=k.length-1;Q>=0;Q--)if(Y=pt(k[Q].anchor,k[Q].head),T.indentRight)v.replaceRange(K.repeat(W),Y,Y);else{for(var re=v.getLine(Y.line),se=0,ye=0;ye<W;ye++){var Ce=re[Y.ch+se];if(Ce==" ")se++;else{if(Ce!=" ")break;se++;for(var me=1;me<K.length&&(Ce=re[Y.ch+se],Ce===" ");me++)se++}}v.replaceRange("",Y,fe(Y,0,se))}return Y}if(v.indentMore)for(var ye=0;ye<W;ye++)T.indentRight?v.indentMore():v.indentLess();else{var we=k[0].anchor.line,Oe=D.visualBlock?k[k.length-1].anchor.line:k[0].head.line;T.linewise&&Oe--;for(var Q=we;Q<=Oe;Q++)for(var ye=0;ye<W;ye++)v.indentLine(Q,T.indentRight)}return Yr.moveToFirstNonWhiteSpaceCharacter(v,k[0].anchor)},indentAuto:function(v,T,k){return v.execCommand("indentAuto"),Yr.moveToFirstNonWhiteSpaceCharacter(v,k[0].anchor)},hardWrap:function(v,T,k,D,W){if(v.hardWrap){var z=k[0].anchor.line,K=k[0].head.line;T.linewise&&K--;var Y=v.hardWrap({from:z,to:K});return Y>z&&T.linewise&&Y--,T.keepCursor?D:new Ne(Y,0)}},changeCase:function(v,T,k,D,W){for(var z=v.getSelections(),K=[],Y=T.toLower,Q=0;Q<z.length;Q++){var re=z[Q],se="";if(Y===!0)se=re.toLowerCase();else if(Y===!1)se=re.toUpperCase();else for(var ye=0;ye<re.length;ye++){var Ce=re.charAt(ye);se+=c(Ce)?Ce.toLowerCase():Ce.toUpperCase()}K.push(se)}return v.replaceSelections(K),T.shouldMoveCursor?W:!v.state.vim.visualMode&&T.linewise&&k[0].anchor.line+1==k[0].head.line?Yr.moveToFirstNonWhiteSpaceCharacter(v,D):T.linewise?D:pt(k[0].anchor,k[0].head)},yank:function(v,T,k,D){var W=v.state.vim,z=v.getSelection(),K=W.visualMode?pt(W.sel.anchor,W.sel.head,k[0].head,k[0].anchor):D;return Be.registerController.pushText(T.registerName,"yank",z,T.linewise,W.visualBlock),K}},Dn={jumpListWalk:function(v,T,k){if(!k.visualMode){var D=T.repeat,W=T.forward,z=Be.jumpList,K=z.move(v,W?D:-D),Y=K?K.find():void 0;Y=Y||v.getCursor(),v.setCursor(Y),v.ace.curOp.command.scrollIntoView="center-animate"}},scroll:function(v,T,k){if(!k.visualMode){var D=T.repeat||1,W=v.defaultTextHeight(),z=v.getScrollInfo().top,K=W*D,Y=T.forward?z+K:z-K,Q=qe(v.getCursor()),re=v.charCoords(Q,"local");if(T.forward)Y>re.top?(Q.line+=(Y-re.top)/W,Q.line=Math.ceil(Q.line),v.setCursor(Q),re=v.charCoords(Q,"local"),v.scrollTo(null,re.top)):v.scrollTo(null,Y);else{var se=Y+v.getScrollInfo().clientHeight;se<re.bottom?(Q.line-=(re.bottom-se)/W,Q.line=Math.floor(Q.line),v.setCursor(Q),re=v.charCoords(Q,"local"),v.scrollTo(null,re.bottom-v.getScrollInfo().clientHeight)):v.scrollTo(null,Y)}}},scrollToCursor:function(v,T){var k=v.getCursor().line,D=v.charCoords(new Ne(k,0),"local"),W=v.getScrollInfo().clientHeight,z=D.top;switch(T.position){case"center":z=D.bottom-W/2;break;case"bottom":var K=new Ne(k,v.getLine(k).length-1),Y=v.charCoords(K,"local"),Q=Y.bottom-z;z=z-W+Q}v.scrollTo(null,z)},replayMacro:function(v,T,k){var D=T.selectedCharacter,W=T.repeat,z=Be.macroModeState;for(D=="@"?D=z.latestRegister:z.latestRegister=D;W--;)Cs(v,k,z,D)},enterMacroRecordMode:function(v,T){var k=Be.macroModeState,D=T.selectedCharacter;Be.registerController.isValidRegister(D)&&k.enterMacroRecordMode(v,D)},toggleOverwrite:function(v){v.state.overwrite?(v.toggleOverwrite(!1),v.setOption("keyMap","vim-insert"),Fe.signal(v,"vim-mode-change",{mode:"insert"})):(v.toggleOverwrite(!0),v.setOption("keyMap","vim-replace"),Fe.signal(v,"vim-mode-change",{mode:"replace"}))},enterInsertMode:function(v,T,k){if(!v.getOption("readOnly")){k.insertMode=!0,k.insertModeRepeat=T&&T.repeat||1;var D=T?T.insertAt:null,W=k.sel,z=T.head||v.getCursor("head"),K=v.listSelections().length;if(D=="eol")z=new Ne(z.line,Yt(v,z.line));else if(D=="bol")z=new Ne(z.line,0);else if(D=="charAfter"){var Y=b(v,z,fe(z,0,1));z=Y.end}else if(D=="firstNonBlank"){var Y=b(v,z,Yr.moveToFirstNonWhiteSpaceCharacter(v,z));z=Y.end}else if(D=="startOfSelectedArea"){if(!k.visualMode)return;k.visualBlock?(z=new Ne(Math.min(W.head.line,W.anchor.line),Math.min(W.head.ch,W.anchor.ch)),K=Math.abs(W.head.line-W.anchor.line)+1):W.head.line<W.anchor.line?z=W.head:z=new Ne(W.anchor.line,0)}else if(D=="endOfSelectedArea"){if(!k.visualMode)return;k.visualBlock?(z=new Ne(Math.min(W.head.line,W.anchor.line),Math.max(W.head.ch,W.anchor.ch)+1),K=Math.abs(W.head.line-W.anchor.line)+1):W.head.line>=W.anchor.line?z=fe(W.head,0,1):z=new Ne(W.anchor.line,0)}else if(D=="inplace"){if(k.visualMode)return}else D=="lastEdit"&&(z=ho(v)||z);v.setOption("disableInput",!1),T&&T.replace?(v.toggleOverwrite(!0),v.setOption("keyMap","vim-replace"),Fe.signal(v,"vim-mode-change",{mode:"replace"})):(v.toggleOverwrite(!1),v.setOption("keyMap","vim-insert"),Fe.signal(v,"vim-mode-change",{mode:"insert"})),Be.macroModeState.isPlaying||(v.on("change",po),k.insertEnd&&k.insertEnd.clear(),k.insertEnd=v.setBookmark(z,{insertLeft:!0}),Fe.on(v.getInputField(),"keydown",Ss)),k.visualMode&&St(v),Xn(v,z,K)}},toggleVisualMode:function(v,T,k){var D=T.repeat,W=v.getCursor(),z;if(k.visualMode)k.visualLine^T.linewise||k.visualBlock^T.blockwise?(k.visualLine=!!T.linewise,k.visualBlock=!!T.blockwise,Fe.signal(v,"vim-mode-change",{mode:"visual",subMode:k.visualLine?"linewise":k.visualBlock?"blockwise":""}),Xe(v)):St(v);else{k.visualMode=!0,k.visualLine=!!T.linewise,k.visualBlock=!!T.blockwise,z=ue(v,new Ne(W.line,W.ch+D-1));var K=b(v,W,z);k.sel={anchor:K.start,head:K.end},Fe.signal(v,"vim-mode-change",{mode:"visual",subMode:k.visualLine?"linewise":k.visualBlock?"blockwise":""}),Xe(v),ii(v,k,"<",pt(W,z)),ii(v,k,">",tn(W,z))}},reselectLastSelection:function(v,T,k){var D=k.lastSelection;if(k.visualMode&&ke(v,k),D){var W=D.anchorMark.find(),z=D.headMark.find();if(!W||!z)return;k.sel={anchor:W,head:z},k.visualMode=!0,k.visualLine=D.visualLine,k.visualBlock=D.visualBlock,Xe(v),ii(v,k,"<",pt(W,z)),ii(v,k,">",tn(W,z)),Fe.signal(v,"vim-mode-change",{mode:"visual",subMode:k.visualLine?"linewise":k.visualBlock?"blockwise":""})}},joinLines:function(v,T,k){var D,W;if(k.visualMode){if(D=v.getCursor("anchor"),W=v.getCursor("head"),nt(W,D)){var z=W;W=D,D=z}W.ch=Yt(v,W.line)-1}else{var K=Math.max(T.repeat,2);D=v.getCursor(),W=ue(v,new Ne(D.line+K-1,1/0))}for(var Y=0,Q=D.line;Q<W.line;Q++){Y=Yt(v,D.line);var re="",se=0;if(!T.keepSpaces){var ye=v.getLine(D.line+1);se=ye.search(/\S/),se==-1?se=ye.length:re=" "}v.replaceRange(re,new Ne(D.line,Y),new Ne(D.line+1,se))}var Ce=ue(v,new Ne(D.line,Y));k.visualMode&&St(v,!1),v.setCursor(Ce)},newLineAndEnterInsertMode:function(v,T,k){k.insertMode=!0;var D=qe(v.getCursor());if(D.line===v.firstLine()&&!T.after)v.replaceRange(`
|
1444
|
-
`,new Ne(v.firstLine(),0)),v.setCursor(v.firstLine(),0);else{D.line=T.after?D.line:D.line-1,D.ch=Yt(v,D.line),v.setCursor(D);var W=Fe.commands.newlineAndIndentContinueComment||Fe.commands.newlineAndIndent;W(v)}this.enterInsertMode(v,{repeat:T.repeat},k)},paste:function(v,T,k){var D=this,W=Be.registerController.getRegister(T.registerName),z=function(){var K=W.toString();D.continuePaste(v,T,k,K,W)};T.registerName==="+"&&typeof navigator<"u"&&typeof navigator.clipboard<"u"&&typeof navigator.clipboard.readText=="function"?navigator.clipboard.readText().then(function(K){D.continuePaste(v,T,k,K,W)},function(){z()}):z()},continuePaste:function(v,T,k,D,W){var z=qe(v.getCursor());if(D){if(T.matchIndent){var K=v.getOption("tabSize"),Y=function(
|
1443
|
+
`)==-1?this.registers["-"]=new B(k,D):(this.shiftNumericRegisters_(),this.registers[1]=new B(k,D))}this.unnamedRegister.setText(k,D,W);return}var K=c(v);K?z.pushText(k,D):z.setText(k,D,W),v==="+"&&typeof navigator<"u"&&typeof navigator.clipboard<"u"&&typeof navigator.clipboard.readText=="function"&&navigator.clipboard.writeText(k),this.unnamedRegister.setText(z.toString(),D)}},getRegister:function(v){return this.isValidRegister(v)?(v=v.toLowerCase(),this.registers[v]||(this.registers[v]=new B),this.registers[v]):this.unnamedRegister},isValidRegister:function(v){return v&&(x(v,nn)||Zt.test(v))},shiftNumericRegisters_:function(){for(var v=9;v>=2;v--)this.registers[v]=this.getRegister(""+(v-1))}},Z.prototype={nextMatch:function(v,T){var k=this.historyBuffer,D=T?-1:1;this.initialPrefix===null&&(this.initialPrefix=v);for(var W=this.iterator+D;T?W>=0:W<k.length;W+=D)for(var z=k[W],K=0;K<=z.length;K++)if(this.initialPrefix==z.substring(0,K))return this.iterator=W,z;if(W>=k.length)return this.iterator=k.length,this.initialPrefix;if(W<0)return v},pushInput:function(v){var T=this.historyBuffer.indexOf(v);T>-1&&this.historyBuffer.splice(T,1),v.length&&this.historyBuffer.push(v)},reset:function(){this.initialPrefix=null,this.iterator=this.historyBuffer.length}};var Dn={matchCommand:function(v,T,k,D){var W=Te(v,T,D,k);if(!W.full&&!W.partial)return{type:"none"};if(!W.full&&W.partial)return{type:"partial",expectLiteralNext:W.partial.length==1&&W.partial[0].keys.slice(-11)=="<character>"};for(var z,K=0;K<W.full.length;K++){var Y=W.full[K];z||(z=Y)}if(z.keys.slice(-11)=="<character>"||z.keys.slice(-10)=="<register>"){var Q=Ie(v);if(!Q||Q.length>1)return{type:"clear"};k.selectedCharacter=Q}return{type:"full",command:z}},processCommand:function(v,T,k){switch(T.inputState.repeatOverride=k.repeatOverride,k.type){case"motion":this.processMotion(v,T,k);break;case"operator":this.processOperator(v,T,k);break;case"operatorMotion":this.processOperatorMotion(v,T,k);break;case"action":this.processAction(v,T,k);break;case"search":this.processSearch(v,T,k);break;case"ex":case"keyToEx":this.processEx(v,T,k);break}},processMotion:function(v,T,k){T.inputState.motion=k.motion,T.inputState.motionArgs=ce(k.motionArgs),this.evalInput(v,T)},processOperator:function(v,T,k){var D=T.inputState;if(D.operator){if(D.operator==k.operator){D.motion="expandToLine",D.motionArgs={linewise:!0},this.evalInput(v,T);return}A(v)}D.operator=k.operator,D.operatorArgs=ce(k.operatorArgs),k.keys.length>1&&(D.operatorShortcut=k.keys),k.exitVisualBlock&&(T.visualBlock=!1,Xe(v)),T.visualMode&&this.evalInput(v,T)},processOperatorMotion:function(v,T,k){var D=T.visualMode,W=ce(k.operatorMotionArgs);W&&D&&W.visualLine&&(T.visualLine=!0),this.processOperator(v,T,k),D||this.processMotion(v,T,k)},processAction:function(v,T,k){var D=T.inputState,W=D.getRepeat(),z=!!W,K=ce(k.actionArgs)||{};D.selectedCharacter&&(K.selectedCharacter=D.selectedCharacter),k.operator&&this.processOperator(v,T,k),k.motion&&this.processMotion(v,T,k),(k.motion||k.operator)&&this.evalInput(v,T),K.repeat=W||1,K.repeatIsExplicit=z,K.registerName=D.registerName,A(v),T.lastMotion=null,k.isEdit&&this.recordLastEdit(T,D,k),Pn[k.action](v,K,T)},processSearch:function(v,T,k){function D(Le,Ue,at){Be.searchHistoryController.pushInput(Le),Be.searchHistoryController.reset();try{vn(v,Le,Ue,at)}catch{Ut(v,"Invalid regex: "+Le),A(v);return}Dn.processMotion(v,T,{type:"motion",motion:"findNext",motionArgs:{forward:!0,toJumplist:k.searchArgs.toJumplist}})}function W(Le){D(Le,!0,!0);var Ue=Be.macroModeState;Ue.isRecording&&ks(Ue,Le)}function z(Le,Ue,at){var Ze=H(Le),tt,wn;Ze=="<Up>"||Ze=="<Down>"?(tt=Ze=="<Up>",wn=Le.target?Le.target.selectionEnd:0,Ue=Be.searchHistoryController.nextMatch(Ue,tt)||"",at(Ue),wn&&Le.target&&(Le.target.selectionEnd=Le.target.selectionStart=Math.min(wn,Le.target.value.length))):Ze&&Ze!="<Left>"&&Ze!="<Right>"&&Be.searchHistoryController.reset();var lt;try{lt=vn(v,Ue,!0,!0)}catch{}lt?v.scrollIntoView(Tr(v,!Y,lt),30):(Po(v),v.scrollTo(ye.left,ye.top))}function K(Le,Ue,at){var Ze=H(Le);Ze=="<Esc>"||Ze=="<C-c>"||Ze=="<C-[>"||Ze=="<BS>"&&Ue==""?(Be.searchHistoryController.pushInput(Ue),Be.searchHistoryController.reset(),vn(v,se),Po(v),v.scrollTo(ye.left,ye.top),Fe.e_stop(Le),A(v),at(),v.focus()):Ze=="<Up>"||Ze=="<Down>"?Fe.e_stop(Le):Ze=="<C-u>"&&(Fe.e_stop(Le),at(""))}if(v.getSearchCursor){var Y=k.searchArgs.forward,Q=k.searchArgs.wholeWordOnly;$n(v).setReversed(!Y);var re=Y?"/":"?",se=$n(v).getQuery(),ye=v.getScrollInfo();switch(k.searchArgs.querySrc){case"prompt":var Ce=Be.macroModeState;if(Ce.isPlaying){var Oe=Ce.replaySearchQueries.shift();D(Oe,!0,!1)}else _r(v,{onClose:W,prefix:re,desc:"(JavaScript regexp)",onKeyUp:z,onKeyDown:K});break;case"wordUnderCursor":var me=xt(v,{noSymbol:!0}),we=!0;if(me||(me=xt(v,{noSymbol:!1}),we=!1),!me){Ut(v,"No word under cursor"),A(v);return}var Oe=v.getLine(me.start.line).substring(me.start.ch,me.end.ch);we&&Q?Oe="\\b"+Oe+"\\b":Oe=mn(Oe),Be.jumpList.cachedCursor=v.getCursor(),v.setCursor(me.start),D(Oe,!0,!1)}}},processEx:function(v,T,k){function D(z){Be.exCommandHistoryController.pushInput(z),Be.exCommandHistoryController.reset(),vr.processCommand(v,z),v.state.vim&&A(v)}function W(z,K,Y){var Q=H(z),re,se;(Q=="<Esc>"||Q=="<C-c>"||Q=="<C-[>"||Q=="<BS>"&&K=="")&&(Be.exCommandHistoryController.pushInput(K),Be.exCommandHistoryController.reset(),Fe.e_stop(z),A(v),Y(),v.focus()),Q=="<Up>"||Q=="<Down>"?(Fe.e_stop(z),re=Q=="<Up>",se=z.target?z.target.selectionEnd:0,K=Be.exCommandHistoryController.nextMatch(K,re)||"",Y(K),se&&z.target&&(z.target.selectionEnd=z.target.selectionStart=Math.min(se,z.target.value.length))):Q=="<C-u>"?(Fe.e_stop(z),Y("")):Q&&Q!="<Left>"&&Q!="<Right>"&&Be.exCommandHistoryController.reset()}k.type=="keyToEx"?vr.processCommand(v,k.exArgs.input):T.visualMode?_r(v,{onClose:D,prefix:":",value:"'<,'>",onKeyDown:W,selectValueOnOpen:!1}):_r(v,{onClose:D,prefix:":",onKeyDown:W})},evalInput:function(v,T){var k=T.inputState,D=k.motion,W=k.motionArgs||{},z=k.operator,K=k.operatorArgs||{},Y=k.registerName,Q=T.sel,re=qe(T.visualMode?ue(v,Q.head):v.getCursor("head")),se=qe(T.visualMode?ue(v,Q.anchor):v.getCursor("anchor")),ye=qe(re),Ce=qe(se),me,we,Oe;if(z&&this.recordLastEdit(T,k),k.repeatOverride!==void 0?Oe=k.repeatOverride:Oe=k.getRepeat(),Oe>0&&W.explicitRepeat?W.repeatIsExplicit=!0:(W.noRepeat||!W.explicitRepeat&&Oe===0)&&(Oe=1,W.repeatIsExplicit=!1),k.selectedCharacter&&(W.selectedCharacter=K.selectedCharacter=k.selectedCharacter),W.repeat=Oe,A(v),D){var Le=Yr[D](v,re,W,T,k);if(T.lastMotion=Yr[D],!Le)return;if(W.toJumplist){!z&&v.ace.curOp!=null&&(v.ace.curOp.command.scrollIntoView="center-animate");var Ue=Be.jumpList,at=Ue.cachedCursor;at?(kr(v,at,Le),delete Ue.cachedCursor):kr(v,re,Le)}Le instanceof Array?(we=Le[0],me=Le[1]):me=Le,me||(me=qe(re)),T.visualMode?((!T.visualBlock||me.ch!==1/0)&&(me=ue(v,me,ye)),we&&(we=ue(v,we)),we=we||Ce,Q.anchor=we,Q.head=me,Xe(v),ii(v,T,"<",nt(we,me)?we:me),ii(v,T,">",nt(we,me)?me:we)):z||(v.ace.curOp&&(v.ace.curOp.vimDialogScroll="center-animate"),me=ue(v,me,ye),v.setCursor(me.line,me.ch))}if(z){if(K.lastSel){we=Ce;var Ze=K.lastSel,tt=Math.abs(Ze.head.line-Ze.anchor.line),wn=Math.abs(Ze.head.ch-Ze.anchor.ch);Ze.visualLine?me=new Ne(Ce.line+tt,Ce.ch):Ze.visualBlock?me=new Ne(Ce.line+tt,Ce.ch+wn):Ze.head.line==Ze.anchor.line?me=new Ne(Ce.line,Ce.ch+wn):me=new Ne(Ce.line+tt,Ce.ch),T.visualMode=!0,T.visualLine=Ze.visualLine,T.visualBlock=Ze.visualBlock,Q=T.sel={anchor:we,head:me},Xe(v)}else T.visualMode&&(K.lastSel={anchor:qe(Q.anchor),head:qe(Q.head),visualBlock:T.visualBlock,visualLine:T.visualLine});var lt,Sn,_t,Rt,Jn;if(T.visualMode){lt=pt(Q.head,Q.anchor),Sn=tn(Q.head,Q.anchor),_t=T.visualLine||K.linewise,Rt=T.visualBlock?"block":_t?"line":"char";var hr=b(v,lt,Sn);if(Jn=gt(v,{anchor:hr.start,head:hr.end},Rt),_t){var An=Jn.ranges;if(Rt=="block")for(var V=0;V<An.length;V++)An[V].head.ch=Yt(v,An[V].head.line);else Rt=="line"&&(An[0].head=new Ne(An[0].head.line+1,0))}}else{if(lt=qe(we||Ce),Sn=qe(me||ye),nt(Sn,lt)){var X=lt;lt=Sn,Sn=X}_t=W.linewise||K.linewise,_t?Ot(v,lt,Sn):W.forward&&Dt(v,lt,Sn),Rt="char";var ie=!W.inclusive||_t,hr=b(v,lt,Sn);Jn=gt(v,{anchor:hr.start,head:hr.end},Rt,ie)}v.setSelections(Jn.ranges,Jn.primary),T.lastMotion=null,K.repeat=Oe,K.registerName=Y,K.linewise=_t;var oe=qo[z](v,K,Jn.ranges,Ce,me);T.visualMode&&St(v,oe!=null),oe&&v.setCursor(oe)}},recordLastEdit:function(v,T,k){var D=Be.macroModeState;D.isPlaying||(v.lastEditInputState=T,v.lastEditActionCommand=k,D.lastInsertModeChanges.changes=[],D.lastInsertModeChanges.expectCursorActivityForChange=!1,D.lastInsertModeChanges.visualBlock=v.visualBlock?v.sel.head.line-v.sel.anchor.line:0)}},Yr={moveToTopLine:function(v,T,k){var D=Zi(v).top+k.repeat-1;return new Ne(D,ut(v.getLine(D)))},moveToMiddleLine:function(v){var T=Zi(v),k=Math.floor((T.top+T.bottom)*.5);return new Ne(k,ut(v.getLine(k)))},moveToBottomLine:function(v,T,k){var D=Zi(v).bottom-k.repeat+1;return new Ne(D,ut(v.getLine(D)))},expandToLine:function(v,T,k){var D=T;return new Ne(D.line+k.repeat-1,1/0)},findNext:function(v,T,k){var D=$n(v),W=D.getQuery();if(W){var z=!k.forward;return z=D.isReversed()?!z:z,vi(v,W),Tr(v,z,W,k.repeat)}},findAndSelectNextInclusive:function(v,T,k,D,W){var z=$n(v),K=z.getQuery();if(K){var Y=!k.forward;Y=z.isReversed()?!Y:Y;var Q=yi(v,Y,K,k.repeat,D);if(Q){if(W.operator)return Q;var re=Q[0],se=new Ne(Q[1].line,Q[1].ch-1);if(D.visualMode){(D.visualLine||D.visualBlock)&&(D.visualLine=!1,D.visualBlock=!1,Fe.signal(v,"vim-mode-change",{mode:"visual",subMode:""}));var ye=D.sel.anchor;if(ye)return z.isReversed()?k.forward?[ye,re]:[ye,se]:k.forward?[ye,se]:[ye,re]}else D.visualMode=!0,D.visualLine=!1,D.visualBlock=!1,Fe.signal(v,"vim-mode-change",{mode:"visual",subMode:""});return Y?[se,re]:[re,se]}}},goToMark:function(v,T,k,D){var W=qr(v,D,k.selectedCharacter);return W?k.linewise?{line:W.line,ch:ut(v.getLine(W.line))}:W:null},moveToOtherHighlightedEnd:function(v,T,k,D){if(D.visualBlock&&k.sameLine){var W=D.sel;return[ue(v,new Ne(W.anchor.line,W.head.ch)),ue(v,new Ne(W.head.line,W.anchor.ch))]}return[D.sel.head,D.sel.anchor]},jumpToMark:function(v,T,k,D){for(var W=T,z=0;z<k.repeat;z++){var K=W;for(var Y in D.marks)if(u(Y)){var Q=D.marks[Y].find(),re=k.forward?nt(Q,K):nt(K,Q);if(!re&&!(k.linewise&&Q.line==K.line)){var se=dt(K,W),ye=k.forward?fn(K,Q,W):fn(W,Q,K);(se||ye)&&(W=Q)}}}return k.linewise&&(W=new Ne(W.line,ut(v.getLine(W.line)))),W},moveByCharacters:function(v,T,k){var D=T,W=k.repeat,z=k.forward?D.ch+W:D.ch-W;return new Ne(D.line,z)},moveByLines:function(v,T,k,D){var W=T,z=W.ch;switch(D.lastMotion){case this.moveByLines:case this.moveByDisplayLines:case this.moveByScroll:case this.moveToColumn:case this.moveToEol:z=D.lastHPos;break;default:D.lastHPos=z}var K=k.repeat+(k.repeatOffset||0),Y=k.forward?W.line+K:W.line-K,Q=v.firstLine(),re=v.lastLine();if(Y<Q&&W.line==Q)return this.moveToStartOfLine(v,T,k,D);if(Y>re&&W.line==re)return uo(v,T,k,D,!0);var se=v.ace.session.getFoldLine(Y);return se&&(k.forward?Y>se.start.row&&(Y=se.end.row+1):Y=se.start.row),k.toFirstChar&&(z=ut(v.getLine(Y)),D.lastHPos=z),D.lastHSPos=v.charCoords(new Ne(Y,z),"div").left,new Ne(Y,z)},moveByDisplayLines:function(v,T,k,D){var W=T;switch(D.lastMotion){case this.moveByDisplayLines:case this.moveByScroll:case this.moveByLines:case this.moveToColumn:case this.moveToEol:break;default:D.lastHSPos=v.charCoords(W,"div").left}var z=k.repeat,Q=v.findPosV(W,k.forward?z:-z,"line",D.lastHSPos);if(Q.hitSide)if(k.forward)var K=v.charCoords(Q,"div"),Y={top:K.top+8,left:D.lastHSPos},Q=v.coordsChar(Y,"div");else{var re=v.charCoords(new Ne(v.firstLine(),0),"div");re.left=D.lastHSPos,Q=v.coordsChar(re,"div")}return D.lastHPos=Q.ch,Q},moveByPage:function(v,T,k){var D=T,W=k.repeat;return v.findPosV(D,k.forward?W:-W,"page")},moveByParagraph:function(v,T,k){var D=k.forward?1:-1;return ys(v,T,k.repeat,D)},moveBySentence:function(v,T,k){var D=k.forward?1:-1;return Pi(v,T,k.repeat,D)},moveByScroll:function(v,T,k,D){var W=v.getScrollInfo(),z=null,K=k.repeat;K||(K=W.clientHeight/(2*v.defaultTextHeight()));var Y=v.charCoords(T,"local");if(k.repeat=K,z=Yr.moveByDisplayLines(v,T,k,D),!z)return null;var Q=v.charCoords(z,"local");return v.scrollTo(null,W.top+Q.top-Y.top),z},moveByWords:function(v,T,k){return fr(v,T,k.repeat,!!k.forward,!!k.wordEnd,!!k.bigWord)},moveTillCharacter:function(v,T,k){var D=k.repeat,W=Do(v,D,k.forward,k.selectedCharacter,T),z=k.forward?-1:1;return Kr(z,k),W?(W.ch+=z,W):null},moveToCharacter:function(v,T,k){var D=k.repeat;return Kr(0,k),Do(v,D,k.forward,k.selectedCharacter,T)||T},moveToSymbol:function(v,T,k){var D=k.repeat;return Di(v,D,k.forward,k.selectedCharacter)||T},moveToColumn:function(v,T,k,D){var W=k.repeat;return D.lastHPos=W-1,D.lastHSPos=v.charCoords(T,"div").left,Ha(v,W)},moveToEol:function(v,T,k,D){return uo(v,T,k,D,!1)},moveToFirstNonWhiteSpaceCharacter:function(v,T){var k=T;return new Ne(k.line,ut(v.getLine(k.line)))},moveToMatchedSymbol:function(v,T){for(var k=T,D=k.line,W=k.ch,z=v.getLine(D),K;W<z.length;W++)if(K=z.charAt(W),K&&a(K)){var Y=v.getTokenTypeAt(new Ne(D,W+1));if(Y!=="string"&&Y!=="comment")break}if(W<z.length){var Q=/[<>]/.test(z[W])?/[(){}[\]<>]/:/[(){}[\]]/,re=v.findMatchingBracket(new Ne(D,W+1),{bracketRegex:Q});return re.to}return k},moveToStartOfLine:function(v,T){return new Ne(T.line,0)},moveToLineOrEdgeOfDocument:function(v,T,k){var D=k.forward?v.lastLine():v.firstLine();return k.repeatIsExplicit&&(D=k.repeat-v.getOption("firstLineNumber")),new Ne(D,ut(v.getLine(D)))},moveToStartOfDisplayLine:function(v){return v.execCommand("goLineLeft"),v.getCursor()},moveToEndOfDisplayLine:function(v){v.execCommand("goLineRight");var T=v.getCursor();return T.sticky=="before"&&T.ch--,T},textObjectManipulation:function(v,T,k,D){var W={"(":")",")":"(","{":"}","}":"{","[":"]","]":"[","<":">",">":"<"},z={"'":!0,'"':!0,"`":!0},K=k.selectedCharacter;K=="b"?K="(":K=="B"&&(K="{");var Y=!k.textObjectInner,Q,re;if(W[K]){if(re=!0,Q=Hn(v,T,K,Y),!Q){var se=v.getSearchCursor(new RegExp("\\"+K,"g"),T);se.find()&&(Q=Hn(v,se.from(),K,Y))}}else if(z[K])re=!0,Q=Sr(v,T,K,Y);else if(K==="W"||K==="w")for(var ye=k.repeat||1;ye-- >0;){var Ce=xt(v,{inclusive:Y,innerWord:!Y,bigWord:K==="W",noSymbol:K==="W",multiline:!0},Q&&Q.end);Ce&&(Q||(Q=Ce),Q.end=Ce.end)}else if(K==="p")if(Q=ys(v,T,k.repeat,0,Y),k.linewise=!0,D.visualMode)D.visualLine||(D.visualLine=!0);else{var me=D.inputState.operatorArgs;me&&(me.linewise=!0),Q.end.line--}else if(K==="t")Q=kn(v,T,Y);else if(K==="s"){var we=v.getLine(T.line);T.ch>0&&w(we[T.ch])&&(T.ch-=1);var Oe=ra(v,T,k.repeat,1,Y),Le=ra(v,T,k.repeat,-1,Y);d(v.getLine(Le.line)[Le.ch])&&d(v.getLine(Oe.line)[Oe.ch-1])&&(Le={line:Le.line,ch:Le.ch+1}),Q={start:Le,end:Oe}}return Q?v.state.vim.visualMode?ze(v,Q.start,Q.end,re):[Q.start,Q.end]:null},repeatLastCharacterSearch:function(v,T,k){var D=Be.lastCharacterSearch,W=k.repeat,z=k.forward===D.forward,K=(D.increment?1:0)*(z?-1:1);v.moveH(-K,"char"),k.inclusive=!!z;var Y=Do(v,W,z,D.selectedCharacter);return Y?(Y.ch+=K,Y):(v.moveH(K,"char"),T)}},qo={change:function(v,T,k){var D,W,z=v.state.vim,K=k[0].anchor,Y=k[0].head;if(z.visualMode)if(T.fullLine)Y.ch=Number.MAX_VALUE,Y.line--,v.setSelection(K,Y),W=v.getSelection(),v.replaceSelection(""),D=K;else{W=v.getSelection();var Q=he("",k.length);v.replaceSelections(Q),D=pt(k[0].head,k[0].anchor)}else{W=v.getRange(K,Y);var re=z.lastEditInputState||{};if(re.motion=="moveByWords"&&!d(W)){var se=/\s+$/.exec(W);se&&re.motionArgs&&re.motionArgs.forward&&(Y=fe(Y,0,-se[0].length),W=W.slice(0,-se[0].length))}T.linewise&&(K=new Ne(K.line,ut(v.getLine(K.line))),Y.line>K.line&&(Y=new Ne(Y.line-1,Number.MAX_VALUE))),v.replaceRange("",K,Y),D=K}Be.registerController.pushText(T.registerName,"change",W,T.linewise,k.length>1),Pn.enterInsertMode(v,{head:D},v.state.vim)},delete:function(v,T,k){var D,W,z=v.state.vim;if(z.visualBlock){W=v.getSelection();var K=he("",k.length);v.replaceSelections(K),D=pt(k[0].head,k[0].anchor)}else{var Y=k[0].anchor,Q=k[0].head;T.linewise&&Q.line!=v.firstLine()&&Y.line==v.lastLine()&&Y.line==Q.line-1&&(Y.line==v.firstLine()?Y.ch=0:Y=new Ne(Y.line-1,Yt(v,Y.line-1))),W=v.getRange(Y,Q),v.replaceRange("",Y,Q),D=Y,T.linewise&&(D=Yr.moveToFirstNonWhiteSpaceCharacter(v,Y))}return Be.registerController.pushText(T.registerName,"delete",W,T.linewise,z.visualBlock),ue(v,D)},indent:function(v,T,k){var D=v.state.vim,W=D.visualMode?T.repeat:1;if(D.visualBlock){for(var z=v.getOption("tabSize"),K=v.getOption("indentWithTabs")?" ":" ".repeat(z),Y,Q=k.length-1;Q>=0;Q--)if(Y=pt(k[Q].anchor,k[Q].head),T.indentRight)v.replaceRange(K.repeat(W),Y,Y);else{for(var re=v.getLine(Y.line),se=0,ye=0;ye<W;ye++){var Ce=re[Y.ch+se];if(Ce==" ")se++;else{if(Ce!=" ")break;se++;for(var me=1;me<K.length&&(Ce=re[Y.ch+se],Ce===" ");me++)se++}}v.replaceRange("",Y,fe(Y,0,se))}return Y}if(v.indentMore)for(var ye=0;ye<W;ye++)T.indentRight?v.indentMore():v.indentLess();else{var we=k[0].anchor.line,Oe=D.visualBlock?k[k.length-1].anchor.line:k[0].head.line;T.linewise&&Oe--;for(var Q=we;Q<=Oe;Q++)for(var ye=0;ye<W;ye++)v.indentLine(Q,T.indentRight)}return Yr.moveToFirstNonWhiteSpaceCharacter(v,k[0].anchor)},indentAuto:function(v,T,k){return v.execCommand("indentAuto"),Yr.moveToFirstNonWhiteSpaceCharacter(v,k[0].anchor)},hardWrap:function(v,T,k,D,W){if(v.hardWrap){var z=k[0].anchor.line,K=k[0].head.line;T.linewise&&K--;var Y=v.hardWrap({from:z,to:K});return Y>z&&T.linewise&&Y--,T.keepCursor?D:new Ne(Y,0)}},changeCase:function(v,T,k,D,W){for(var z=v.getSelections(),K=[],Y=T.toLower,Q=0;Q<z.length;Q++){var re=z[Q],se="";if(Y===!0)se=re.toLowerCase();else if(Y===!1)se=re.toUpperCase();else for(var ye=0;ye<re.length;ye++){var Ce=re.charAt(ye);se+=c(Ce)?Ce.toLowerCase():Ce.toUpperCase()}K.push(se)}return v.replaceSelections(K),T.shouldMoveCursor?W:!v.state.vim.visualMode&&T.linewise&&k[0].anchor.line+1==k[0].head.line?Yr.moveToFirstNonWhiteSpaceCharacter(v,D):T.linewise?D:pt(k[0].anchor,k[0].head)},yank:function(v,T,k,D){var W=v.state.vim,z=v.getSelection(),K=W.visualMode?pt(W.sel.anchor,W.sel.head,k[0].head,k[0].anchor):D;return Be.registerController.pushText(T.registerName,"yank",z,T.linewise,W.visualBlock),K}},Pn={jumpListWalk:function(v,T,k){if(!k.visualMode){var D=T.repeat,W=T.forward,z=Be.jumpList,K=z.move(v,W?D:-D),Y=K?K.find():void 0;Y=Y||v.getCursor(),v.setCursor(Y),v.ace.curOp.command.scrollIntoView="center-animate"}},scroll:function(v,T,k){if(!k.visualMode){var D=T.repeat||1,W=v.defaultTextHeight(),z=v.getScrollInfo().top,K=W*D,Y=T.forward?z+K:z-K,Q=qe(v.getCursor()),re=v.charCoords(Q,"local");if(T.forward)Y>re.top?(Q.line+=(Y-re.top)/W,Q.line=Math.ceil(Q.line),v.setCursor(Q),re=v.charCoords(Q,"local"),v.scrollTo(null,re.top)):v.scrollTo(null,Y);else{var se=Y+v.getScrollInfo().clientHeight;se<re.bottom?(Q.line-=(re.bottom-se)/W,Q.line=Math.floor(Q.line),v.setCursor(Q),re=v.charCoords(Q,"local"),v.scrollTo(null,re.bottom-v.getScrollInfo().clientHeight)):v.scrollTo(null,Y)}}},scrollToCursor:function(v,T){var k=v.getCursor().line,D=v.charCoords(new Ne(k,0),"local"),W=v.getScrollInfo().clientHeight,z=D.top;switch(T.position){case"center":z=D.bottom-W/2;break;case"bottom":var K=new Ne(k,v.getLine(k).length-1),Y=v.charCoords(K,"local"),Q=Y.bottom-z;z=z-W+Q}v.scrollTo(null,z)},replayMacro:function(v,T,k){var D=T.selectedCharacter,W=T.repeat,z=Be.macroModeState;for(D=="@"?D=z.latestRegister:z.latestRegister=D;W--;)Cs(v,k,z,D)},enterMacroRecordMode:function(v,T){var k=Be.macroModeState,D=T.selectedCharacter;Be.registerController.isValidRegister(D)&&k.enterMacroRecordMode(v,D)},toggleOverwrite:function(v){v.state.overwrite?(v.toggleOverwrite(!1),v.setOption("keyMap","vim-insert"),Fe.signal(v,"vim-mode-change",{mode:"insert"})):(v.toggleOverwrite(!0),v.setOption("keyMap","vim-replace"),Fe.signal(v,"vim-mode-change",{mode:"replace"}))},enterInsertMode:function(v,T,k){if(!v.getOption("readOnly")){k.insertMode=!0,k.insertModeRepeat=T&&T.repeat||1;var D=T?T.insertAt:null,W=k.sel,z=T.head||v.getCursor("head"),K=v.listSelections().length;if(D=="eol")z=new Ne(z.line,Yt(v,z.line));else if(D=="bol")z=new Ne(z.line,0);else if(D=="charAfter"){var Y=b(v,z,fe(z,0,1));z=Y.end}else if(D=="firstNonBlank"){var Y=b(v,z,Yr.moveToFirstNonWhiteSpaceCharacter(v,z));z=Y.end}else if(D=="startOfSelectedArea"){if(!k.visualMode)return;k.visualBlock?(z=new Ne(Math.min(W.head.line,W.anchor.line),Math.min(W.head.ch,W.anchor.ch)),K=Math.abs(W.head.line-W.anchor.line)+1):W.head.line<W.anchor.line?z=W.head:z=new Ne(W.anchor.line,0)}else if(D=="endOfSelectedArea"){if(!k.visualMode)return;k.visualBlock?(z=new Ne(Math.min(W.head.line,W.anchor.line),Math.max(W.head.ch,W.anchor.ch)+1),K=Math.abs(W.head.line-W.anchor.line)+1):W.head.line>=W.anchor.line?z=fe(W.head,0,1):z=new Ne(W.anchor.line,0)}else if(D=="inplace"){if(k.visualMode)return}else D=="lastEdit"&&(z=ho(v)||z);v.setOption("disableInput",!1),T&&T.replace?(v.toggleOverwrite(!0),v.setOption("keyMap","vim-replace"),Fe.signal(v,"vim-mode-change",{mode:"replace"})):(v.toggleOverwrite(!1),v.setOption("keyMap","vim-insert"),Fe.signal(v,"vim-mode-change",{mode:"insert"})),Be.macroModeState.isPlaying||(v.on("change",po),k.insertEnd&&k.insertEnd.clear(),k.insertEnd=v.setBookmark(z,{insertLeft:!0}),Fe.on(v.getInputField(),"keydown",Ss)),k.visualMode&&St(v),Qn(v,z,K)}},toggleVisualMode:function(v,T,k){var D=T.repeat,W=v.getCursor(),z;if(k.visualMode)k.visualLine^T.linewise||k.visualBlock^T.blockwise?(k.visualLine=!!T.linewise,k.visualBlock=!!T.blockwise,Fe.signal(v,"vim-mode-change",{mode:"visual",subMode:k.visualLine?"linewise":k.visualBlock?"blockwise":""}),Xe(v)):St(v);else{k.visualMode=!0,k.visualLine=!!T.linewise,k.visualBlock=!!T.blockwise,z=ue(v,new Ne(W.line,W.ch+D-1));var K=b(v,W,z);k.sel={anchor:K.start,head:K.end},Fe.signal(v,"vim-mode-change",{mode:"visual",subMode:k.visualLine?"linewise":k.visualBlock?"blockwise":""}),Xe(v),ii(v,k,"<",pt(W,z)),ii(v,k,">",tn(W,z))}},reselectLastSelection:function(v,T,k){var D=k.lastSelection;if(k.visualMode&&ke(v,k),D){var W=D.anchorMark.find(),z=D.headMark.find();if(!W||!z)return;k.sel={anchor:W,head:z},k.visualMode=!0,k.visualLine=D.visualLine,k.visualBlock=D.visualBlock,Xe(v),ii(v,k,"<",pt(W,z)),ii(v,k,">",tn(W,z)),Fe.signal(v,"vim-mode-change",{mode:"visual",subMode:k.visualLine?"linewise":k.visualBlock?"blockwise":""})}},joinLines:function(v,T,k){var D,W;if(k.visualMode){if(D=v.getCursor("anchor"),W=v.getCursor("head"),nt(W,D)){var z=W;W=D,D=z}W.ch=Yt(v,W.line)-1}else{var K=Math.max(T.repeat,2);D=v.getCursor(),W=ue(v,new Ne(D.line+K-1,1/0))}for(var Y=0,Q=D.line;Q<W.line;Q++){Y=Yt(v,D.line);var re="",se=0;if(!T.keepSpaces){var ye=v.getLine(D.line+1);se=ye.search(/\S/),se==-1?se=ye.length:re=" "}v.replaceRange(re,new Ne(D.line,Y),new Ne(D.line+1,se))}var Ce=ue(v,new Ne(D.line,Y));k.visualMode&&St(v,!1),v.setCursor(Ce)},newLineAndEnterInsertMode:function(v,T,k){k.insertMode=!0;var D=qe(v.getCursor());if(D.line===v.firstLine()&&!T.after)v.replaceRange(`
|
1444
|
+
`,new Ne(v.firstLine(),0)),v.setCursor(v.firstLine(),0);else{D.line=T.after?D.line:D.line-1,D.ch=Yt(v,D.line),v.setCursor(D);var W=Fe.commands.newlineAndIndentContinueComment||Fe.commands.newlineAndIndent;W(v)}this.enterInsertMode(v,{repeat:T.repeat},k)},paste:function(v,T,k){var D=this,W=Be.registerController.getRegister(T.registerName),z=function(){var K=W.toString();D.continuePaste(v,T,k,K,W)};T.registerName==="+"&&typeof navigator<"u"&&typeof navigator.clipboard<"u"&&typeof navigator.clipboard.readText=="function"?navigator.clipboard.readText().then(function(K){D.continuePaste(v,T,k,K,W)},function(){z()}):z()},continuePaste:function(v,T,k,D,W){var z=qe(v.getCursor());if(D){if(T.matchIndent){var K=v.getOption("tabSize"),Y=function(An){var V=An.split(" ").length-1,X=An.split(" ").length-1;return V*K+X*1},Q=v.getLine(v.getCursor().line),re=Y(Q.match(/^\s*/)[0]),se=D.replace(/\n$/,""),ye=D!==se,Ce=Y(D.match(/^\s*/)[0]),D=se.replace(/^\s*/gm,function(An){var V=re+(Y(An)-Ce);if(V<0)return"";if(v.getOption("indentWithTabs")){var X=Math.floor(V/K);return Array(X+1).join(" ")}return Array(V+1).join(" ")});D+=ye?`
|
1445
1445
|
`:""}if(T.repeat>1)var D=Array(T.repeat+1).join(D);var me=W.linewise,we=W.blockwise;if(we){D=D.split(`
|
1446
1446
|
`),me&&D.pop();for(var Oe=0;Oe<D.length;Oe++)D[Oe]=D[Oe]==""?" ":D[Oe];z.ch+=T.after?1:0,z.ch=Math.min(Yt(v,z.line),z.ch)}else me?k.visualMode?D=k.visualLine?D.slice(0,-1):`
|
1447
1447
|
`+D.slice(0,D.length-1)+`
|
1448
1448
|
`:T.after?(D=`
|
1449
|
-
`+D.slice(0,D.length-1),z.ch=Yt(v,z.line)):z.ch=0:z.ch+=T.after?1:0;var Le;if(k.visualMode){k.lastPastedText=D;var Ue,at=He(v,k),Ze=at[0],tt=at[1],
|
1450
|
-
`,new Ne(_t,0));var Rt=Yt(v,_t);Rt<z.ch&&
|
1449
|
+
`+D.slice(0,D.length-1),z.ch=Yt(v,z.line)):z.ch=0:z.ch+=T.after?1:0;var Le;if(k.visualMode){k.lastPastedText=D;var Ue,at=He(v,k),Ze=at[0],tt=at[1],wn=v.getSelection(),lt=v.listSelections(),Sn=new Array(lt.length).join("1").split("1");k.lastSelection&&(Ue=k.lastSelection.headMark.find()),Be.registerController.unnamedRegister.setText(wn),we?(v.replaceSelections(Sn),tt=new Ne(Ze.line+D.length-1,Ze.ch),v.setCursor(Ze),Ln(v,tt),v.replaceSelections(D),Le=Ze):k.visualBlock?(v.replaceSelections(Sn),v.setCursor(Ze),v.replaceRange(D,Ze,Ze),Le=Ze):(v.replaceRange(D,Ze,tt),Le=v.posFromIndex(v.indexFromPos(Ze)+D.length-1)),Ue&&(k.lastSelection.headMark=v.setBookmark(Ue)),me&&(Le.ch=0)}else if(we){v.setCursor(z);for(var Oe=0;Oe<D.length;Oe++){var _t=z.line+Oe;_t>v.lastLine()&&v.replaceRange(`
|
1450
|
+
`,new Ne(_t,0));var Rt=Yt(v,_t);Rt<z.ch&&Rn(v,_t,z.ch)}v.setCursor(z),Ln(v,new Ne(z.line+D.length-1,z.ch)),v.replaceSelections(D),Le=z}else if(v.replaceRange(D,z),me){var _t=T.after?z.line+1:z.line;Le=new Ne(_t,ut(v.getLine(_t)))}else Le=qe(z),/\n/.test(D)||(Le.ch+=D.length-(T.after?1:0));k.visualMode&&St(v,!1),v.setCursor(Le)}},undo:function(v,T){v.operation(function(){Ye(v,Fe.commands.undo,T.repeat)(),v.setCursor(ue(v,v.getCursor("start")))})},redo:function(v,T){Ye(v,Fe.commands.redo,T.repeat)()},setRegister:function(v,T,k){k.inputState.registerName=T.selectedCharacter},insertRegister:function(v,T,k){var D=T.selectedCharacter,W=Be.registerController.getRegister(D),z=W&&W.toString();z&&v.replaceSelection(z)},oneNormalCommand:function(v,T,k){Gr(v,!0),k.insertModeReturn=!0,Fe.on(v,"vim-command-done",function D(){k.visualMode||(k.insertModeReturn&&(k.insertModeReturn=!1,k.insertMode||Pn.enterInsertMode(v,{},k)),Fe.off(v,"vim-command-done",D))})},setMark:function(v,T,k){var D=T.selectedCharacter;ii(v,k,D,v.getCursor())},replace:function(v,T,k){var D=T.selectedCharacter,W=v.getCursor(),z,K,Y=v.listSelections();if(k.visualMode)W=v.getCursor("start"),K=v.getCursor("end");else{var Q=v.getLine(W.line);z=W.ch+T.repeat,z>Q.length&&(z=Q.length),K=new Ne(W.line,z)}var re=b(v,W,K);if(W=re.start,K=re.end,D==`
|
1451
1451
|
`)k.visualMode||v.replaceRange("",W,K),(Fe.commands.newlineAndIndentContinueComment||Fe.commands.newlineAndIndent)(v);else{var se=v.getRange(W,K);if(se=se.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,D),se=se.replace(/[^\n]/g,D),k.visualBlock){var ye=new Array(v.getOption("tabSize")+1).join(" ");se=v.getSelection(),se=se.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,D),se=se.replace(/\t/g,ye).replace(/[^\n]/g,D).split(`
|
1452
1452
|
`),v.replaceSelections(se)}else v.replaceRange(se,W,K);k.visualMode?(W=nt(Y[0].anchor,Y[0].head)?Y[0].anchor:Y[0].head,v.setCursor(W),St(v,!1)):v.setCursor(fe(K,0,-1))}},incrementNumberToken:function(v,T){for(var k=v.getCursor(),D=v.getLine(k.line),W=/(-?)(?:(0x)([\da-f]+)|(0b|0|)(\d+))/gi,z,K,Y,Q;(z=W.exec(D))!==null&&(K=z.index,Y=K+z[0].length,!(k.ch<Y)););if(!(!T.backtrack&&Y<=k.ch)&&z){var re=z[2]||z[4],se=z[3]||z[5],ye=T.increase?1:-1,Ce={"0b":2,0:8,"":10,"0x":16}[re.toLowerCase()],me=parseInt(z[1]+se,Ce)+ye*T.repeat;Q=me.toString(Ce);var we=re?new Array(se.length-Q.length+1+z[1].length).join("0"):"";Q.charAt(0)==="-"?Q="-"+re+we+Q.substr(1):Q=re+we+Q;var Oe=new Ne(k.line,K),Le=new Ne(k.line,Y);v.replaceRange(Q,Oe,Le),v.setCursor(new Ne(k.line,K+Q.length-1))}},repeatLastEdit:function(v,T,k){var D=k.lastEditInputState;if(D){var W=T.repeat;W&&T.repeatIsExplicit?k.lastEditInputState.repeatOverride=W:W=k.lastEditInputState.repeatOverride||W,sa(v,k,W,!1)}},indent:function(v,T){v.indentLine(v.getCursor().line,T.indentRight)},exitInsertMode:Gr},ai={"(":"bracket",")":"bracket","{":"bracket","}":"bracket","[":"section","]":"section","*":"comment","/":"comment",m:"method",M:"method","#":"preprocess"},li={bracket:{isComplete:function(v){if(v.nextCh===v.symb){if(v.depth++,v.depth>=1)return!0}else v.nextCh===v.reverseSymb&&v.depth--;return!1}},section:{init:function(v){v.curMoveThrough=!0,v.symb=(v.forward?"]":"[")===v.symb?"{":"}"},isComplete:function(v){return v.index===0&&v.nextCh===v.symb}},comment:{isComplete:function(v){var T=v.lastCh==="*"&&v.nextCh==="/";return v.lastCh=v.nextCh,T}},method:{init:function(v){v.symb=v.symb==="m"?"{":"}",v.reverseSymb=v.symb==="{"?"}":"{"},isComplete:function(v){return v.nextCh===v.symb}},preprocess:{init:function(v){v.index=0},isComplete:function(v){if(v.nextCh==="#"){var T=v.lineText.match(/^#(\w+)/)[1];if(T==="endif"){if(v.forward&&v.depth===0)return!0;v.depth++}else if(T==="if"){if(!v.forward&&v.depth===0)return!0;v.depth--}if(T==="else"&&v.depth===0)return!0}return!1}}};E("pcre",!0,"boolean"),Fi.prototype={getQuery:function(){return Be.query},setQuery:function(v){Be.query=v},getOverlay:function(){return this.searchOverlay},setOverlay:function(v){this.searchOverlay=v},isReversed:function(){return Be.isReversed},setReversed:function(v){Be.isReversed=v},getScrollbarAnnotate:function(){return this.annotate},setScrollbarAnnotate:function(v){this.annotate=v}};var ki={"\\n":`
|
1453
|
-
`,"\\r":"\r","\\t":" "},
|
1454
|
-
`,"\\r":"\r","\\t":" ","\\&":"&"},
|
1453
|
+
`,"\\r":"\r","\\t":" "},cr={"\\/":"/","\\\\":"\\","\\n":`
|
1454
|
+
`,"\\r":"\r","\\t":" ","\\&":"&"},ur=0,mr=function(){this.buildCommandMap_()};mr.prototype={processCommand:function(v,T,k){var D=this;v.operation(function(){v.curOp.isVimOp=!0,D._processCommand(v,T,k)})},_processCommand:function(v,T,k){var D=v.state.vim,W=Be.registerController.getRegister(":"),z=W.toString(),K=new Fe.StringStream(T);W.setText(T);var Y=k||{};Y.input=T;try{this.parseInput_(v,K,Y)}catch(se){throw Ut(v,se.toString()),se}D.visualMode&&St(v);var Q,re;if(!Y.commandName)Y.line!==void 0&&(re="move");else if(Q=this.matchCommand_(Y.commandName),Q){if(re=Q.name,Q.excludeFromCommandHistory&&W.setText(z),this.parseCommandArgs_(K,Y,Q),Q.type=="exToKey"){I(v,Q.toKeys,Q);return}if(Q.type=="exToEx"){this.processCommand(v,Q.toInput);return}}if(!re){Ut(v,'Not an editor command ":'+T+'"');return}try{_s[re](v,Y),(!Q||!Q.possiblyAsync)&&Y.callback&&Y.callback()}catch(se){throw Ut(v,se.toString()),se}},parseInput_:function(v,T,k){if(T.eatWhile(":"),T.eat("%")?(k.line=v.firstLine(),k.lineEnd=v.lastLine()):(k.line=this.parseLineSpec_(v,T),k.line!==void 0&&T.eat(",")&&(k.lineEnd=this.parseLineSpec_(v,T))),k.line==null)if(v.state.vim.visualMode){var D=qr(v,v.state.vim,"<");k.selectionLine=D&&D.line,D=qr(v,v.state.vim,">"),k.selectionLineEnd=D&&D.line}else k.selectionLine=v.getCursor().line;else k.selectionLine=k.line,k.selectionLineEnd=k.lineEnd;var W=T.match(/^(\w+|!!|@@|[!#&*<=>@~])/);return W?k.commandName=W[1]:k.commandName=T.match(/.*/)[0],k},parseLineSpec_:function(v,T){var k=T.match(/^(\d+)/);if(k)return parseInt(k[1],10)-1;switch(T.next()){case".":return this.parseLineSpecOffset_(T,v.getCursor().line);case"$":return this.parseLineSpecOffset_(T,v.lastLine());case"'":var D=T.next(),W=qr(v,v.state.vim,D);if(!W)throw new Error("Mark not set");return this.parseLineSpecOffset_(T,W.line);case"-":case"+":return T.backUp(1),this.parseLineSpecOffset_(T,v.getCursor().line);default:return T.backUp(1),void 0}},parseLineSpecOffset_:function(v,T){var k=v.match(/^([+-])?(\d+)/);if(k){var D=parseInt(k[2],10);k[1]=="-"?T-=D:T+=D}return T},parseCommandArgs_:function(v,T,k){if(!v.eol()){T.argString=v.match(/.*/)[0];var D=k.argDelimiter||/\s+/,W=gr(T.argString).split(D);W.length&&W[0]&&(T.args=W)}},matchCommand_:function(v){for(var T=v.length;T>0;T--){var k=v.substring(0,T);if(this.commandMap_[k]){var D=this.commandMap_[k];if(D.name.indexOf(v)===0)return D}}return null},buildCommandMap_:function(){this.commandMap_={};for(var v=0;v<si.length;v++){var T=si[v],k=T.shortName||T.name;this.commandMap_[k]=T}},map:function(v,T,k,D){if(v!=":"&&v.charAt(0)==":"){if(k)throw Error("Mode not supported for ex mappings");var W=v.substring(1);T!=":"&&T.charAt(0)==":"?this.commandMap_[W]={name:W,type:"exToEx",toInput:T.substring(1),user:!0}:this.commandMap_[W]={name:W,type:"exToKey",toKeys:T,user:!0}}else{var z={keys:v,type:"keyToKey",toKeys:T,noremap:!!D};k&&(z.context=k),Mn.unshift(z)}},unmap:function(v,T){if(v!=":"&&v.charAt(0)==":"){if(T)throw Error("Mode not supported for ex mappings");var k=v.substring(1);if(this.commandMap_[k]&&this.commandMap_[k].user)return delete this.commandMap_[k],!0}else for(var D=v,W=0;W<Mn.length;W++)if(D==Mn[W].keys&&Mn[W].context===T)return Mn.splice(W,1),!0}};var _s={colorscheme:function(v,T){if(!T.args||T.args.length<1){Ut(v,v.getOption("theme"));return}v.setOption("theme",T.args[0])},map:function(v,T,k,D){var W=T.args;if(!W||W.length<2){v&&Ut(v,"Invalid mapping: "+T.input);return}vr.map(W[0],W[1],k,D)},imap:function(v,T){this.map(v,T,"insert")},nmap:function(v,T){this.map(v,T,"normal")},vmap:function(v,T){this.map(v,T,"visual")},omap:function(v,T){this.map(v,T,"operatorPending")},noremap:function(v,T){this.map(v,T,void 0,!0)},inoremap:function(v,T){this.map(v,T,"insert",!0)},nnoremap:function(v,T){this.map(v,T,"normal",!0)},vnoremap:function(v,T){this.map(v,T,"visual",!0)},onoremap:function(v,T){this.map(v,T,"operatorPending",!0)},unmap:function(v,T,k){var D=T.args;(!D||D.length<1||!vr.unmap(D[0],k))&&v&&Ut(v,"No such mapping: "+T.input)},mapclear:function(v,T){Ct.mapclear()},imapclear:function(v,T){Ct.mapclear("insert")},nmapclear:function(v,T){Ct.mapclear("normal")},vmapclear:function(v,T){Ct.mapclear("visual")},omapclear:function(v,T){Ct.mapclear("operatorPending")},move:function(v,T){Dn.processCommand(v,v.state.vim,{type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!1,explicitRepeat:!0,linewise:!0},repeatOverride:T.line+1})},set:function(v,T){var k=T.args,D=T.setCfg||{};if(!k||k.length<1){v&&Ut(v,"Invalid mapping: "+T.input);return}var W=k[0].split("="),z=W[0],K=W[1],Y=!1,Q=!1;if(z.charAt(z.length-1)=="?"){if(K)throw Error("Trailing characters: "+T.argString);z=z.substring(0,z.length-1),Y=!0}else z.charAt(z.length-1)=="!"&&(z=z.substring(0,z.length-1),Q=!0);K===void 0&&z.substring(0,2)=="no"&&(z=z.substring(2),K=!1);var re=Vt[z]&&Vt[z].type=="boolean";if(re&&(Q?K=!S(z,v,D):K==null&&(K=!0)),!re&&K===void 0||Y){var se=S(z,v,D);se instanceof Error?Ut(v,se.message):se===!0||se===!1?Ut(v," "+(se?"":"no")+z):Ut(v," "+z+"="+se)}else{var ye=$(z,K,v,D);ye instanceof Error&&Ut(v,ye.message)}},setlocal:function(v,T){T.setCfg={scope:"local"},this.set(v,T)},setglobal:function(v,T){T.setCfg={scope:"global"},this.set(v,T)},registers:function(v,T){var k=T.args,D=Be.registerController.registers,W=`----------Registers----------
|
1455
1455
|
|
1456
1456
|
`;if(k){var z;k=k.join("");for(var K=0;K<k.length;K++)if(z=k.charAt(K),!!Be.registerController.isValidRegister(z)){var Y=D[z]||new B;W+='"'+z+" "+Y.toString()+`
|
1457
1457
|
`}}else for(var z in D){var Q=D[z].toString();Q.length&&(W+='"'+z+" "+Q+`
|
1458
|
-
`)}Ut(v,W)},sort:function(v,T){function k(){if(T.argString){var _t=new Fe.StringStream(T.argString);if(_t.eat("!")&&(z=!0),_t.eol())return;if(!_t.eatSpace())return"Invalid arguments";var Rt=_t.match(/([dinuox]+)?\s*(\/.+\/)?\s*/);if(!Rt&&!_t.eol())return"Invalid arguments";if(Rt[1]){K=Rt[1].indexOf("i")!=-1,Y=Rt[1].indexOf("u")!=-1;var
|
1459
|
-
`),Le=re||(Q=="decimal"?/(-?)([\d]+)/:Q=="hex"?/(-?)(?:0x)?([0-9a-f]+)/i:Q=="octal"?/([0-7]+)/:null),Ue=Q=="decimal"?10:Q=="hex"?16:Q=="octal"?8:null,at=[],Ze=[];if(Q||re)for(var tt=0;tt<Oe.length;tt++){var
|
1460
|
-
`),me,we)}},vglobal:function(v,T){this.global(v,T)},normal:function(v,T){var k=T.argString;if(k&&k[0]=="!"&&(k=k.slice(1),cn=!0),k=k.trimStart(),!k){Ut(v,"Argument is required.");return}var D=T.line;if(typeof D=="number")for(var W=isNaN(T.lineEnd)?D:T.lineEnd,z=D;z<=W;z++)v.setCursor(z,0),I(v,T.argString.trimStart()),v.state.vim.insertMode&&Gr(v,!0);else I(v,T.argString.trimStart()),v.state.vim.insertMode&&Gr(v,!0)},global:function(v,T){var k=T.argString;if(!k){Ut(v,"Regular Expression missing from global");return}var D=T.commandName[0]==="v";k[0]==="!"&&T.commandName[0]==="g"&&(D=!0,k=k.slice(1));var W=T.line!==void 0?T.line:v.firstLine(),z=T.lineEnd||T.line||v.lastLine(),K=Ar(k),Y=k,Q;if(K.length&&(Y=K[0],Q=K.slice(1,K.length).join("/")),Y)try{
|
1461
|
-
`));return}var we=0,Oe=function(){if(we<se.length){var Le=se[we++],Ue=v.getLineNumber(Le);if(Ue==null){Oe();return}var at=Ue+1+Q;vr.processCommand(v,at,{callback:Oe})}else v.releaseLineHandles&&v.releaseLineHandles()};Oe()},substitute:function(v,T){if(!v.getSearchCursor)throw new Error("Search feature not available. Requires searchcursor.js or any other getSearchCursor implementation.");var k=T.argString,D=k?Wi(k,k[0]):[],W,z="",K,Y,Q,re=!1,se=!1;if(D.length)W=D[0],S("pcre")&&W!==""&&(W=new RegExp(W).source),z=D[1],z!==void 0&&(S("pcre")?z=Ka(z.replace(/([^\\])&/g,"$1$$&")):z=Va(z),Be.lastSubstituteReplacePart=z),K=D[2]?D[2].split(" "):[];else if(k&&k.length){Ut(v,"Substitutions should be of the form :s/pattern/replace/");return}if(K&&(Y=K[0],Q=parseInt(K[1]),Y&&(Y.indexOf("c")!=-1&&(re=!0),Y.indexOf("g")!=-1&&(se=!0),S("pcre")?W=W+"/"+Y:W=W.replace(/\//g,"\\/")+"/"+Y)),W)try{
|
1458
|
+
`)}Ut(v,W)},sort:function(v,T){function k(){if(T.argString){var _t=new Fe.StringStream(T.argString);if(_t.eat("!")&&(z=!0),_t.eol())return;if(!_t.eatSpace())return"Invalid arguments";var Rt=_t.match(/([dinuox]+)?\s*(\/.+\/)?\s*/);if(!Rt&&!_t.eol())return"Invalid arguments";if(Rt[1]){K=Rt[1].indexOf("i")!=-1,Y=Rt[1].indexOf("u")!=-1;var Jn=Rt[1].indexOf("d")!=-1||Rt[1].indexOf("n")!=-1&&1,hr=Rt[1].indexOf("x")!=-1&&1,An=Rt[1].indexOf("o")!=-1&&1;if(Jn+hr+An>1)return"Invalid arguments";Q=Jn&&"decimal"||hr&&"hex"||An&&"octal"}Rt[2]&&(re=new RegExp(Rt[2].substr(1,Rt[2].length-2),K?"i":""))}}function D(_t,Rt){if(z){var Jn;Jn=_t,_t=Rt,Rt=Jn}K&&(_t=_t.toLowerCase(),Rt=Rt.toLowerCase());var hr=Q&&Le.exec(_t),An=Q&&Le.exec(Rt);return hr?(hr=parseInt((hr[1]+hr[2]).toLowerCase(),Ue),An=parseInt((An[1]+An[2]).toLowerCase(),Ue),hr-An):_t<Rt?-1:1}function W(_t,Rt){if(z){var Jn;Jn=_t,_t=Rt,Rt=Jn}return K&&(_t[0]=_t[0].toLowerCase(),Rt[0]=Rt[0].toLowerCase()),_t[0]<Rt[0]?-1:1}var z,K,Y,Q,re,se=k();if(se){Ut(v,se+": "+T.argString);return}var ye=T.line||v.firstLine(),Ce=T.lineEnd||T.line||v.lastLine();if(ye!=Ce){var me=new Ne(ye,0),we=new Ne(Ce,Yt(v,Ce)),Oe=v.getRange(me,we).split(`
|
1459
|
+
`),Le=re||(Q=="decimal"?/(-?)([\d]+)/:Q=="hex"?/(-?)(?:0x)?([0-9a-f]+)/i:Q=="octal"?/([0-7]+)/:null),Ue=Q=="decimal"?10:Q=="hex"?16:Q=="octal"?8:null,at=[],Ze=[];if(Q||re)for(var tt=0;tt<Oe.length;tt++){var wn=re?Oe[tt].match(re):null;wn&&wn[0]!=""?at.push(wn):!re&&Le.exec(Oe[tt])?at.push(Oe[tt]):Ze.push(Oe[tt])}else Ze=Oe;if(at.sort(re?W:D),re)for(var tt=0;tt<at.length;tt++)at[tt]=at[tt].input;else Q||Ze.sort(D);if(Oe=z?at.concat(Ze):Ze.concat(at),Y){var lt=Oe,Sn;Oe=[];for(var tt=0;tt<lt.length;tt++)lt[tt]!=Sn&&Oe.push(lt[tt]),Sn=lt[tt]}v.replaceRange(Oe.join(`
|
1460
|
+
`),me,we)}},vglobal:function(v,T){this.global(v,T)},normal:function(v,T){var k=T.argString;if(k&&k[0]=="!"&&(k=k.slice(1),cn=!0),k=k.trimStart(),!k){Ut(v,"Argument is required.");return}var D=T.line;if(typeof D=="number")for(var W=isNaN(T.lineEnd)?D:T.lineEnd,z=D;z<=W;z++)v.setCursor(z,0),I(v,T.argString.trimStart()),v.state.vim.insertMode&&Gr(v,!0);else I(v,T.argString.trimStart()),v.state.vim.insertMode&&Gr(v,!0)},global:function(v,T){var k=T.argString;if(!k){Ut(v,"Regular Expression missing from global");return}var D=T.commandName[0]==="v";k[0]==="!"&&T.commandName[0]==="g"&&(D=!0,k=k.slice(1));var W=T.line!==void 0?T.line:v.firstLine(),z=T.lineEnd||T.line||v.lastLine(),K=Ar(k),Y=k,Q;if(K.length&&(Y=K[0],Q=K.slice(1,K.length).join("/")),Y)try{vn(v,Y,!0,!0)}catch{Ut(v,"Invalid regex: "+Y);return}for(var re=$n(v).getQuery(),se=[],ye=W;ye<=z;ye++){var Ce=v.getLine(ye),me=re.test(Ce);me!==D&&se.push(Q?v.getLineHandle(ye):Ce)}if(!Q){Ut(v,se.join(`
|
1461
|
+
`));return}var we=0,Oe=function(){if(we<se.length){var Le=se[we++],Ue=v.getLineNumber(Le);if(Ue==null){Oe();return}var at=Ue+1+Q;vr.processCommand(v,at,{callback:Oe})}else v.releaseLineHandles&&v.releaseLineHandles()};Oe()},substitute:function(v,T){if(!v.getSearchCursor)throw new Error("Search feature not available. Requires searchcursor.js or any other getSearchCursor implementation.");var k=T.argString,D=k?Wi(k,k[0]):[],W,z="",K,Y,Q,re=!1,se=!1;if(D.length)W=D[0],S("pcre")&&W!==""&&(W=new RegExp(W).source),z=D[1],z!==void 0&&(S("pcre")?z=Ka(z.replace(/([^\\])&/g,"$1$$&")):z=Va(z),Be.lastSubstituteReplacePart=z),K=D[2]?D[2].split(" "):[];else if(k&&k.length){Ut(v,"Substitutions should be of the form :s/pattern/replace/");return}if(K&&(Y=K[0],Q=parseInt(K[1]),Y&&(Y.indexOf("c")!=-1&&(re=!0),Y.indexOf("g")!=-1&&(se=!0),S("pcre")?W=W+"/"+Y:W=W.replace(/\//g,"\\/")+"/"+Y)),W)try{vn(v,W,!0,!0)}catch{Ut(v,"Invalid regex: "+W);return}if(z=z||Be.lastSubstituteReplacePart,z===void 0){Ut(v,"No previous substitute regular expression");return}var ye=$n(v),Ce=ye.getQuery(),me=T.line!==void 0?T.line:v.getCursor().line,we=T.lineEnd||me;me==v.firstLine()&&we==v.lastLine()&&(we=1/0),Q&&(me=we,we=me+Q-1);var Oe=ue(v,new Ne(me,0)),Le=v.getSearchCursor(Ce,Oe);Fo(v,re,se,me,we,Le,Ce,z,T.callback)},startinsert:function(v,T){I(v,T.argString=="!"?"A":"i",{})},redo:Fe.commands.redo,undo:Fe.commands.undo,write:function(v){Fe.commands.save?Fe.commands.save(v):v.save&&v.save()},nohlsearch:function(v){Po(v)},yank:function(v){var T=qe(v.getCursor()),k=T.line,D=v.getLine(k);Be.registerController.pushText("0","yank",D,!0,!0)},delete:function(v,T){var k=T.selectionLine,D=isNaN(T.selectionLineEnd)?k:T.selectionLineEnd;qo.delete(v,{linewise:!0},[{anchor:new Ne(k,0),head:new Ne(D+1,0)}])},join:function(v,T){var k=T.selectionLine,D=isNaN(T.selectionLineEnd)?k:T.selectionLineEnd;v.setCursor(new Ne(k,0)),Pn.joinLines(v,{repeat:D-k},v.state.vim)},delmarks:function(v,T){if(!T.argString||!gr(T.argString)){Ut(v,"Argument required");return}for(var k=v.state.vim,D=new Fe.StringStream(gr(T.argString));!D.eol();){D.eatSpace();var W=D.pos;if(!D.match(/[a-zA-Z]/,!1)){Ut(v,"Invalid argument: "+T.argString.substring(W));return}var z=D.next();if(D.match("-",!0)){if(!D.match(/[a-zA-Z]/,!1)){Ut(v,"Invalid argument: "+T.argString.substring(W));return}var K=z,Y=D.next();if(!(u(K)&&u(Y)||c(K)&&c(Y))){Ut(v,"Invalid argument: "+K+"-");return}var Q=K.charCodeAt(0),re=Y.charCodeAt(0);if(Q>=re){Ut(v,"Invalid argument: "+T.argString.substring(W));return}for(var se=0;se<=re-Q;se++){var ye=String.fromCharCode(Q+se);delete k.marks[ye]}}else delete k.marks[z]}}},vr=new mr;E("insertModeEscKeysTimeout",200,"number"),Fe.Vim=Ct;var $r={return:"CR",backspace:"BS",delete:"Del",esc:"Esc",left:"Left",right:"Right",up:"Up",down:"Down",space:"Space",insert:"Ins",home:"Home",end:"End",pageup:"PageUp",pagedown:"PageDown",enter:"CR"},ci=Ct.handleKey.bind(Ct);Ct.handleKey=function(v,T,k){return v.operation(function(){return ci(v,T,k)},!0)},L(),r.CodeMirror=Fe;var ui=Ct.maybeInitVimState_;r.handler={$id:"ace/keyboard/vim",drawCursor:function(v,T,k,D,W){var z=this.state.vim||{},K=k.characterWidth,Y=k.lineHeight,Q=T.top,re=T.left;if(!z.insertMode){var se=D.cursor?ar.comparePoints(D.cursor,D.start)<=0:W.selection.isBackwards()||W.selection.isEmpty();!se&&re>K&&(re-=K)}!z.insertMode&&z.status&&(Y/=2,Q+=Y),zi.translate(v,re,Q),zi.setStyle(v.style,"width",K+"px"),zi.setStyle(v.style,"height",Y+"px")},$getDirectionForHighlight:function(v){var T=v.state.cm,k=ui(T);if(!k.insertMode)return v.session.selection.isBackwards()||v.session.selection.isEmpty()},handleKeyboard:function(v,T,k,D,W){var z=v.editor,K=z.state.cm,Y=ui(K);if(D!=-1){if(Y.insertMode||(T==-1?(k.charCodeAt(0)>255&&v.inputKey&&(k=v.inputKey,k&&v.inputHash==4&&(k=k.toUpperCase())),v.inputChar=k):T==4||T==0?v.inputKey==k&&v.inputHash==T&&v.inputChar?(k=v.inputChar,T=-1):(v.inputChar=null,v.inputKey=k,v.inputHash=T):v.inputChar=v.inputKey=null),K.state.overwrite&&Y.insertMode&&k=="backspace"&&T==0)return{command:"gotoleft"};if(k=="c"&&T==1&&!mo.isMac&&z.getCopyText())return z.once("copy",function(){Y.insertMode?z.selection.clearSelection():K.operation(function(){St(K)})}),{command:"null",passEvent:!0};if(k=="esc"&&!Y.insertMode&&!Y.visualMode&&!K.ace.inMultiSelectMode){var Q=$n(K),re=Q.getOverlay();re&&K.removeOverlay(re)}if(T==-1||T&1||T===0&&k.length>1){var se=Y.insertMode,ye=As(T,k,W||{},Y);Y.status==null&&(Y.status="");var Ce=go(K,ye,"user");return Y=ui(K),Ce&&Y.status!=null?Y.status+=ye:Y.status==null&&(Y.status=""),K._signal("changeStatus"),!Ce&&(T!=-1||se)?void 0:{command:"null",passEvent:!Ce}}}},attach:function(v){function T(){var D=ui(k).insertMode;k.ace.renderer.setStyle("normal-mode",!D),v.textInput.setCommandMode(!D),v.renderer.$keepTextAreaAtCursor=D,v.renderer.$blockCursor=!D}v.state||(v.state={});var k=new Fe(v);v.state.cm=k,v.$vimModeHandler=this,h(k),ui(k).status=null,k.on("vim-command-done",function(){k.virtualSelectionMode()||(ui(k).status=null,k.ace._signal("changeStatus"),k.ace.session.markUndoGroup())}),k.on("changeStatus",function(){k.ace.renderer.updateCursor(),k.ace._signal("changeStatus")}),k.on("vim-mode-change",function(){k.virtualSelectionMode()||(T(),k._signal("changeStatus"))}),T(),v.renderer.$cursorLayer.drawCursor=this.drawCursor.bind(k)},detach:function(v){var T=v.state.cm;g(T),T.destroy(),v.state.cm=null,v.$vimModeHandler=null,v.renderer.$cursorLayer.drawCursor=null,v.renderer.setStyle("normal-mode",!1),v.textInput.setCommandMode(!1),v.renderer.$keepTextAreaAtCursor=!0},getStatusText:function(v){var T=v.state.cm,k=ui(T);if(k.insertMode)return"INSERT";var D="";return k.visualMode&&(D+="VISUAL",k.visualLine&&(D+=" LINE"),k.visualBlock&&(D+=" BLOCK")),k.status&&(D+=(D?" ":"")+k.status),D}},Ct.defineOption({name:"wrap",set:function(v,T){T&&T.ace.setOption("wrap",v)},type:"boolean"},!1),Ct.defineEx("write","w",function(){console.log(":write is not implemented")}),Mn.push({keys:"zc",type:"action",action:"fold",actionArgs:{open:!1}},{keys:"zC",type:"action",action:"fold",actionArgs:{open:!1,all:!0}},{keys:"zo",type:"action",action:"fold",actionArgs:{open:!0}},{keys:"zO",type:"action",action:"fold",actionArgs:{open:!0,all:!0}},{keys:"za",type:"action",action:"fold",actionArgs:{toggle:!0}},{keys:"zA",type:"action",action:"fold",actionArgs:{toggle:!0,all:!0}},{keys:"zf",type:"action",action:"fold",actionArgs:{open:!0,all:!0}},{keys:"zd",type:"action",action:"fold",actionArgs:{open:!0,all:!0}},{keys:"<C-A-k>",type:"action",action:"aceCommand",actionArgs:{name:"addCursorAbove"}},{keys:"<C-A-j>",type:"action",action:"aceCommand",actionArgs:{name:"addCursorBelow"}},{keys:"<C-A-S-k>",type:"action",action:"aceCommand",actionArgs:{name:"addCursorAboveSkipCurrent"}},{keys:"<C-A-S-j>",type:"action",action:"aceCommand",actionArgs:{name:"addCursorBelowSkipCurrent"}},{keys:"<C-A-h>",type:"action",action:"aceCommand",actionArgs:{name:"selectMoreBefore"}},{keys:"<C-A-l>",type:"action",action:"aceCommand",actionArgs:{name:"selectMoreAfter"}},{keys:"<C-A-S-h>",type:"action",action:"aceCommand",actionArgs:{name:"selectNextBefore"}},{keys:"<C-A-S-l>",type:"action",action:"aceCommand",actionArgs:{name:"selectNextAfter"}}),Mn.push({keys:"gq",type:"operator",operator:"hardWrap"}),Ct.defineOperator("hardWrap",function(v,T,k,D,W){var z=k[0].anchor.line,K=k[0].head.line;return T.linewise&&K--,to(v.ace,{startRow:z,endRow:K}),Ne(K,0)}),E("textwidth",void 0,"number",["tw"],function(v,T){if(T!==void 0){if(v===void 0){var k=T.ace.getOption("printMarginColumn");return k}var D=Math.round(v);D>1&&T.ace.setOption("printMarginColumn",D)}}),Pn.aceCommand=function(v,T,k){v.vimCmd=T,v.ace.inVirtualSelectionMode?v.ace.on("beforeEndOperation",wi):wi(null,v.ace)},Pn.fold=function(v,T,k){v.ace.execCommand(["toggleFoldWidget","toggleFoldWidget","foldOther","unfoldall"][(T.all?2:0)+(T.open?1:0)])},yo=Mn.length,r.handler.defaultKeymap=Mn,r.handler.actions=Pn,r.Vim=Ct}),function(){ace.require(["ace/keyboard/vim"],function(e){n&&(n.exports=e)})}()}(ef)),ef.exports}WC();var Ll={exports:{}};/**
|
1462
1462
|
* @license
|
1463
1463
|
* Lodash <https://lodash.com/>
|
1464
1464
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
1465
1465
|
* Released under MIT license <https://lodash.com/license>
|
1466
1466
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
1467
1467
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
1468
|
-
*/var BC=Ll.exports,nf;function zC(){return nf||(nf=1,function(n,t){(function(){var e,r="4.17.21",f=200,p="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",y="Expected a function",b="Invalid `variable` option passed into `_.template`",h="__lodash_hash_undefined__",g=500,s="__lodash_placeholder__",l=1,u=2,a=4,o=1,c=2,d=1,w=2,x=4,E=8,$=16,S=32,C=64,R=128,L=256,P=512,I=30,H="...",F=800,O=16,_=1,A=2,N=3,B=1/0,U=9007199254740991,q=17976931348623157e292,Z=NaN,te=4294967295,he=te-1,ne=te>>>1,ae=[["ary",R],["bind",d],["bindKey",w],["curry",E],["curryRight",$],["flip",P],["partial",S],["partialRight",C],["rearg",L]],ue="[object Arguments]",ce="[object Array]",fe="[object AsyncFunction]",Te="[object Boolean]",$e="[object Date]",Ie="[object DOMException]",Ye="[object Error]",qe="[object Function]",dt="[object GeneratorFunction]",nt="[object Map]",pt="[object Number]",tn="[object Null]",gn="[object Object]",Yt="[object Promise]",gr="[object Proxy]",fn="[object RegExp]",En="[object Set]",Rn="[object String]",Xn="[object Symbol]",bt="[object Undefined]",He="[object WeakMap]",ke="[object WeakSet]",ze="[object ArrayBuffer]",Xe="[object DataView]",gt="[object Float32Array]",At="[object Float64Array]",St="[object Int8Array]",Dt="[object Int16Array]",Ot="[object Int32Array]",ut="[object Uint8Array]",xt="[object Uint8ClampedArray]",Cn="[object Uint16Array]",kr="[object Uint32Array]",Kr=/\b__p \+= '';/g,Di=/\b(__p \+=) '' \+/g,co=/(__e\(.*?\)|\b__t\)) \+\n'';/g,fr=/&(?:amp|lt|gt|quot|#39);/g,uo=/[&<>"']/g,Do=RegExp(fr.source),Ha=RegExp(uo.source),ii=/<%-([\s\S]+?)%>/g,Ua=/<%([\s\S]+?)%>/g,ys=/<%=([\s\S]+?)%>/g,ra=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Pi=/^\w*$/,jn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Sr=/[\\^$.*+?()[\]{}|]/g,Fi=RegExp(Sr.source),Tn=/^\s+/,Ar=/\s/,Qi=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Wi=/\{\n\/\* \[wrapped with (.+)\] \*/,ws=/,? & /,ia=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Va=/[()=,{}\[\]\/\s]/,Ka=/\\(\\)?/g,Bi=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,oi=/\w*$/,Ut=/^[-+]0x[0-9a-f]+$/i,oa=/^0b[01]+$/i,_r=/^\[object .+?Constructor\]$/,Hn=/^0o[0-7]+$/i,mn=/^(?:0|[1-9]\d*)$/,Ln=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,vi=/($^)/,Tr=/['\n\r\u2028\u2029\\]/g,yi="\\ud800-\\udfff",Po="\\u0300-\\u036f",bs="\\ufe20-\\ufe2f",Zi="\\u20d0-\\u20ff",qr=Po+bs+Zi,ho="\\u2700-\\u27bf",Fo="a-z\\xdf-\\xf6\\xf8-\\xff",Gr="\\xac\\xb1\\xd7\\xf7",Wo="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",xs="\\u2000-\\u206f",Cs=" \\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",Bo="A-Z\\xc0-\\xd6\\xd8-\\xde",or="\\ufe0e\\ufe0f",ks=Gr+Wo+xs+Cs,po="['’]",zo="["+yi+"]",jo="["+ks+"]",Ji="["+qr+"]",Ss="\\d+",sa="["+ho+"]",Ho="["+Fo+"]",Uo="[^"+yi+ks+Ss+ho+Fo+Bo+"]",As="\\ud83c[\\udffb-\\udfff]",Vo="(?:"+Ji+"|"+As+")",go="[^"+yi+"]",wi="(?:\\ud83c[\\udde6-\\uddff]){2}",sr="[\\ud800-\\udbff][\\udc00-\\udfff]",eo="["+Bo+"]",zi="\\u200d",aa="(?:"+Ho+"|"+Uo+")",qa="(?:"+eo+"|"+Uo+")",fo="(?:"+po+"(?:d|ll|m|re|s|t|ve))?",ji="(?:"+po+"(?:D|LL|M|RE|S|T|VE))?",mo=Vo+"?",Ko="["+or+"]?",vo="(?:"+zi+"(?:"+[go,wi,sr].join("|")+")"+Ko+mo+")*",la="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",to="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Fe=Ko+mo+vo,ca="(?:"+[sa,wi,sr].join("|")+")"+Fe,Ne="(?:"+[go+Ji+"?",Ji,wi,sr,zo].join("|")+")",$n=RegExp(po,"g"),yo=RegExp(Ji,"g"),si=RegExp(As+"(?="+As+")|"+Ne+Fe,"g"),Un=RegExp([eo+"?"+Ho+"+"+fo+"(?="+[jo,eo,"$"].join("|")+")",qa+"+"+ji+"(?="+[jo,eo+aa,"$"].join("|")+")",eo+"?"+aa+"+"+fo,eo+"+"+ji,to,la,Ss,ca].join("|"),"g"),ua=RegExp("["+zi+yi+qr+or+"]"),wo=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,bi=["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"],no=-1,nn={};nn[gt]=nn[At]=nn[St]=nn[Dt]=nn[Ot]=nn[ut]=nn[xt]=nn[Cn]=nn[kr]=!0,nn[ue]=nn[ce]=nn[ze]=nn[Te]=nn[Xe]=nn[$e]=nn[Ye]=nn[qe]=nn[nt]=nn[pt]=nn[gn]=nn[fn]=nn[En]=nn[Rn]=nn[He]=!1;var Zt={};Zt[ue]=Zt[ce]=Zt[ze]=Zt[Xe]=Zt[Te]=Zt[$e]=Zt[gt]=Zt[At]=Zt[St]=Zt[Dt]=Zt[Ot]=Zt[nt]=Zt[pt]=Zt[gn]=Zt[fn]=Zt[En]=Zt[Rn]=Zt[Xn]=Zt[ut]=Zt[xt]=Zt[Cn]=Zt[kr]=!0,Zt[Ye]=Zt[qe]=Zt[He]=!1;var rn={À:"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"},Vt={"&":"&","<":"<",">":">",'"':""","'":"'"},xi={"&":"&","<":"<",">":">",""":'"',"'":"'"},On={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Be=parseFloat,vn=parseInt,Ct=typeof Ro=="object"&&Ro&&Ro.Object===Object&&Ro,Lr=typeof self=="object"&&self&&self.Object===Object&&self,cn=Ct||Lr||Function("return this")(),bn=t&&!t.nodeType&&t,Qn=bn&&!0&&n&&!n.nodeType&&n,Or=Qn&&Qn.exports===bn,Ci=Or&&Ct.process,Nn=function(){try{var pe=Qn&&Qn.require&&Qn.require("util").types;return pe||Ci&&Ci.binding&&Ci.binding("util")}catch{}}(),Yr=Nn&&Nn.isArrayBuffer,qo=Nn&&Nn.isDate,Dn=Nn&&Nn.isMap,ai=Nn&&Nn.isRegExp,li=Nn&&Nn.isSet,ki=Nn&&Nn.isTypedArray;function lr(pe,Se,xe){switch(xe.length){case 0:return pe.call(Se);case 1:return pe.call(Se,xe[0]);case 2:return pe.call(Se,xe[0],xe[1]);case 3:return pe.call(Se,xe[0],xe[1],xe[2])}return pe.apply(Se,xe)}function cr(pe,Se,xe,je){for(var ct=-1,Lt=pe==null?0:pe.length;++ct<Lt;){var Xt=pe[ct];Se(je,Xt,xe(Xt),pe)}return je}function mr(pe,Se){for(var xe=-1,je=pe==null?0:pe.length;++xe<je&&Se(pe[xe],xe,pe)!==!1;);return pe}function _s(pe,Se){for(var xe=pe==null?0:pe.length;xe--&&Se(pe[xe],xe,pe)!==!1;);return pe}function vr(pe,Se){for(var xe=-1,je=pe==null?0:pe.length;++xe<je;)if(!Se(pe[xe],xe,pe))return!1;return!0}function $r(pe,Se){for(var xe=-1,je=pe==null?0:pe.length,ct=0,Lt=[];++xe<je;){var Xt=pe[xe];Se(Xt,xe,pe)&&(Lt[ct++]=Xt)}return Lt}function ci(pe,Se){var xe=pe==null?0:pe.length;return!!xe&&se(pe,Se,0)>-1}function ui(pe,Se,xe){for(var je=-1,ct=pe==null?0:pe.length;++je<ct;)if(xe(Se,pe[je]))return!0;return!1}function v(pe,Se){for(var xe=-1,je=pe==null?0:pe.length,ct=Array(je);++xe<je;)ct[xe]=Se(pe[xe],xe,pe);return ct}function T(pe,Se){for(var xe=-1,je=Se.length,ct=pe.length;++xe<je;)pe[ct+xe]=Se[xe];return pe}function k(pe,Se,xe,je){var ct=-1,Lt=pe==null?0:pe.length;for(je&&Lt&&(xe=pe[++ct]);++ct<Lt;)xe=Se(xe,pe[ct],ct,pe);return xe}function D(pe,Se,xe,je){var ct=pe==null?0:pe.length;for(je&&ct&&(xe=pe[--ct]);ct--;)xe=Se(xe,pe[ct],ct,pe);return xe}function W(pe,Se){for(var xe=-1,je=pe==null?0:pe.length;++xe<je;)if(Se(pe[xe],xe,pe))return!0;return!1}var z=we("length");function K(pe){return pe.split("")}function Y(pe){return pe.match(ia)||[]}function Q(pe,Se,xe){var je;return xe(pe,function(ct,Lt,Xt){if(Se(ct,Lt,Xt))return je=Lt,!1}),je}function re(pe,Se,xe,je){for(var ct=pe.length,Lt=xe+(je?1:-1);je?Lt--:++Lt<ct;)if(Se(pe[Lt],Lt,pe))return Lt;return-1}function se(pe,Se,xe){return Se===Se?Je(pe,Se,xe):re(pe,Ce,xe)}function ye(pe,Se,xe,je){for(var ct=xe-1,Lt=pe.length;++ct<Lt;)if(je(pe[ct],Se))return ct;return-1}function Ce(pe){return pe!==pe}function me(pe,Se){var xe=pe==null?0:pe.length;return xe?at(pe,Se)/xe:Z}function we(pe){return function(Se){return Se==null?e:Se[pe]}}function Oe(pe){return function(Se){return pe==null?e:pe[Se]}}function Le(pe,Se,xe,je,ct){return ct(pe,function(Lt,Xt,Pt){xe=je?(je=!1,Lt):Se(xe,Lt,Xt,Pt)}),xe}function Ue(pe,Se){var xe=pe.length;for(pe.sort(Se);xe--;)pe[xe]=pe[xe].value;return pe}function at(pe,Se){for(var xe,je=-1,ct=pe.length;++je<ct;){var Lt=Se(pe[je]);Lt!==e&&(xe=xe===e?Lt:xe+Lt)}return xe}function Ze(pe,Se){for(var xe=-1,je=Array(pe);++xe<pe;)je[xe]=Se(xe);return je}function tt(pe,Se){return v(Se,function(xe){return[xe,pe[xe]]})}function yn(pe){return pe&&pe.slice(0,Wt(pe)+1).replace(Tn,"")}function lt(pe){return function(Se){return pe(Se)}}function kn(pe,Se){return v(Se,function(xe){return pe[xe]})}function _t(pe,Se){return pe.has(Se)}function Rt(pe,Se){for(var xe=-1,je=pe.length;++xe<je&&se(Se,pe[xe],0)>-1;);return xe}function Zn(pe,Se){for(var xe=pe.length;xe--&&se(Se,pe[xe],0)>-1;);return xe}function ur(pe,Se){for(var xe=pe.length,je=0;xe--;)pe[xe]===Se&&++je;return je}var Sn=Oe(rn),V=Oe(Vt);function X(pe){return"\\"+On[pe]}function ie(pe,Se){return pe==null?e:pe[Se]}function oe(pe){return ua.test(pe)}function ge(pe){return wo.test(pe)}function be(pe){for(var Se,xe=[];!(Se=pe.next()).done;)xe.push(Se.value);return xe}function Me(pe){var Se=-1,xe=Array(pe.size);return pe.forEach(function(je,ct){xe[++Se]=[ct,je]}),xe}function Pe(pe,Se){return function(xe){return pe(Se(xe))}}function We(pe,Se){for(var xe=-1,je=pe.length,ct=0,Lt=[];++xe<je;){var Xt=pe[xe];(Xt===Se||Xt===s)&&(pe[xe]=s,Lt[ct++]=xe)}return Lt}function Ve(pe){var Se=-1,xe=Array(pe.size);return pe.forEach(function(je){xe[++Se]=je}),xe}function Qe(pe){var Se=-1,xe=Array(pe.size);return pe.forEach(function(je){xe[++Se]=[je,je]}),xe}function Je(pe,Se,xe){for(var je=xe-1,ct=pe.length;++je<ct;)if(pe[je]===Se)return je;return-1}function kt(pe,Se,xe){for(var je=xe+1;je--;)if(pe[je]===Se)return je;return je}function zt(pe){return oe(pe)?it(pe):z(pe)}function Tt(pe){return oe(pe)?pn(pe):K(pe)}function Wt(pe){for(var Se=pe.length;Se--&&Ar.test(pe.charAt(Se)););return Se}var ft=Oe(xi);function it(pe){for(var Se=si.lastIndex=0;si.test(pe);)++Se;return Se}function pn(pe){return pe.match(si)||[]}function An(pe){return pe.match(Un)||[]}var Jn=function pe(Se){Se=Se==null?cn:qt.defaults(cn.Object(),Se,qt.pick(cn,bi));var xe=Se.Array,je=Se.Date,ct=Se.Error,Lt=Se.Function,Xt=Se.Math,Pt=Se.Object,Nr=Se.RegExp,Si=Se.String,un=Se.TypeError,hr=xe.prototype,bo=Lt.prototype,Pn=Pt.prototype,Ts=Se["__core-js_shared__"],fc=bo.toString,ln=Pn.hasOwnProperty,BM=0,Iy=function(){var i=/[^.]+$/.exec(Ts&&Ts.keys&&Ts.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}(),mc=Pn.toString,zM=fc.call(Pt),jM=cn._,HM=Nr("^"+fc.call(ln).replace(Sr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),vc=Or?Se.Buffer:e,Go=Se.Symbol,yc=Se.Uint8Array,Ey=vc?vc.allocUnsafe:e,wc=Pe(Pt.getPrototypeOf,Pt),Ry=Pt.create,Ly=Pn.propertyIsEnumerable,bc=hr.splice,Oy=Go?Go.isConcatSpreadable:e,Ga=Go?Go.iterator:e,$s=Go?Go.toStringTag:e,xc=function(){try{var i=Ls(Pt,"defineProperty");return i({},"",{}),i}catch{}}(),UM=Se.clearTimeout!==cn.clearTimeout&&Se.clearTimeout,VM=je&&je.now!==cn.Date.now&&je.now,KM=Se.setTimeout!==cn.setTimeout&&Se.setTimeout,Cc=Xt.ceil,kc=Xt.floor,ld=Pt.getOwnPropertySymbols,qM=vc?vc.isBuffer:e,Ny=Se.isFinite,GM=hr.join,YM=Pe(Pt.keys,Pt),ar=Xt.max,Mr=Xt.min,XM=je.now,QM=Se.parseInt,Dy=Xt.random,ZM=hr.reverse,cd=Ls(Se,"DataView"),Ya=Ls(Se,"Map"),ud=Ls(Se,"Promise"),ha=Ls(Se,"Set"),Xa=Ls(Se,"WeakMap"),Qa=Ls(Pt,"create"),Sc=Xa&&new Xa,da={},JM=Os(cd),eI=Os(Ya),tI=Os(ud),nI=Os(ha),rI=Os(Xa),Ac=Go?Go.prototype:e,Za=Ac?Ac.valueOf:e,Py=Ac?Ac.toString:e;function J(i){if(Fn(i)&&!$t(i)&&!(i instanceof Kt)){if(i instanceof Ai)return i;if(ln.call(i,"__wrapped__"))return Fw(i)}return new Ai(i)}var pa=function(){function i(){}return function(m){if(!Mn(m))return{};if(Ry)return Ry(m);i.prototype=m;var M=new i;return i.prototype=e,M}}();function _c(){}function Ai(i,m){this.__wrapped__=i,this.__actions__=[],this.__chain__=!!m,this.__index__=0,this.__values__=e}J.templateSettings={escape:ii,evaluate:Ua,interpolate:ys,variable:"",imports:{_:J}},J.prototype=_c.prototype,J.prototype.constructor=J,Ai.prototype=pa(_c.prototype),Ai.prototype.constructor=Ai;function Kt(i){this.__wrapped__=i,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=te,this.__views__=[]}function iI(){var i=new Kt(this.__wrapped__);return i.__actions__=Xr(this.__actions__),i.__dir__=this.__dir__,i.__filtered__=this.__filtered__,i.__iteratees__=Xr(this.__iteratees__),i.__takeCount__=this.__takeCount__,i.__views__=Xr(this.__views__),i}function oI(){if(this.__filtered__){var i=new Kt(this);i.__dir__=-1,i.__filtered__=!0}else i=this.clone(),i.__dir__*=-1;return i}function sI(){var i=this.__wrapped__.value(),m=this.__dir__,M=$t(i),j=m<0,G=M?i.length:0,ee=yE(0,G,this.__views__),le=ee.start,de=ee.end,ve=de-le,Ee=j?de:le-1,Re=this.__iteratees__,De=Re.length,Ge=0,rt=Mr(ve,this.__takeCount__);if(!M||!j&&G==ve&&rt==ve)return aw(i,this.__actions__);var vt=[];e:for(;ve--&&Ge<rt;){Ee+=m;for(var Ft=-1,yt=i[Ee];++Ft<De;){var jt=Re[Ft],Gt=jt.iteratee,pi=jt.type,Fr=Gt(yt);if(pi==A)yt=Fr;else if(!Fr){if(pi==_)continue e;break e}}vt[Ge++]=yt}return vt}Kt.prototype=pa(_c.prototype),Kt.prototype.constructor=Kt;function Ms(i){var m=-1,M=i==null?0:i.length;for(this.clear();++m<M;){var j=i[m];this.set(j[0],j[1])}}function aI(){this.__data__=Qa?Qa(null):{},this.size=0}function lI(i){var m=this.has(i)&&delete this.__data__[i];return this.size-=m?1:0,m}function cI(i){var m=this.__data__;if(Qa){var M=m[i];return M===h?e:M}return ln.call(m,i)?m[i]:e}function uI(i){var m=this.__data__;return Qa?m[i]!==e:ln.call(m,i)}function hI(i,m){var M=this.__data__;return this.size+=this.has(i)?0:1,M[i]=Qa&&m===e?h:m,this}Ms.prototype.clear=aI,Ms.prototype.delete=lI,Ms.prototype.get=cI,Ms.prototype.has=uI,Ms.prototype.set=hI;function xo(i){var m=-1,M=i==null?0:i.length;for(this.clear();++m<M;){var j=i[m];this.set(j[0],j[1])}}function dI(){this.__data__=[],this.size=0}function pI(i){var m=this.__data__,M=Tc(m,i);if(M<0)return!1;var j=m.length-1;return M==j?m.pop():bc.call(m,M,1),--this.size,!0}function gI(i){var m=this.__data__,M=Tc(m,i);return M<0?e:m[M][1]}function fI(i){return Tc(this.__data__,i)>-1}function mI(i,m){var M=this.__data__,j=Tc(M,i);return j<0?(++this.size,M.push([i,m])):M[j][1]=m,this}xo.prototype.clear=dI,xo.prototype.delete=pI,xo.prototype.get=gI,xo.prototype.has=fI,xo.prototype.set=mI;function Co(i){var m=-1,M=i==null?0:i.length;for(this.clear();++m<M;){var j=i[m];this.set(j[0],j[1])}}function vI(){this.size=0,this.__data__={hash:new Ms,map:new(Ya||xo),string:new Ms}}function yI(i){var m=Wc(this,i).delete(i);return this.size-=m?1:0,m}function wI(i){return Wc(this,i).get(i)}function bI(i){return Wc(this,i).has(i)}function xI(i,m){var M=Wc(this,i),j=M.size;return M.set(i,m),this.size+=M.size==j?0:1,this}Co.prototype.clear=vI,Co.prototype.delete=yI,Co.prototype.get=wI,Co.prototype.has=bI,Co.prototype.set=xI;function Is(i){var m=-1,M=i==null?0:i.length;for(this.__data__=new Co;++m<M;)this.add(i[m])}function CI(i){return this.__data__.set(i,h),this}function kI(i){return this.__data__.has(i)}Is.prototype.add=Is.prototype.push=CI,Is.prototype.has=kI;function Hi(i){var m=this.__data__=new xo(i);this.size=m.size}function SI(){this.__data__=new xo,this.size=0}function AI(i){var m=this.__data__,M=m.delete(i);return this.size=m.size,M}function _I(i){return this.__data__.get(i)}function TI(i){return this.__data__.has(i)}function $I(i,m){var M=this.__data__;if(M instanceof xo){var j=M.__data__;if(!Ya||j.length<f-1)return j.push([i,m]),this.size=++M.size,this;M=this.__data__=new Co(j)}return M.set(i,m),this.size=M.size,this}Hi.prototype.clear=SI,Hi.prototype.delete=AI,Hi.prototype.get=_I,Hi.prototype.has=TI,Hi.prototype.set=$I;function Fy(i,m){var M=$t(i),j=!M&&Ns(i),G=!M&&!j&&Jo(i),ee=!M&&!j&&!G&&va(i),le=M||j||G||ee,de=le?Ze(i.length,Si):[],ve=de.length;for(var Ee in i)(m||ln.call(i,Ee))&&!(le&&(Ee=="length"||G&&(Ee=="offset"||Ee=="parent")||ee&&(Ee=="buffer"||Ee=="byteLength"||Ee=="byteOffset")||_o(Ee,ve)))&&de.push(Ee);return de}function Wy(i){var m=i.length;return m?i[xd(0,m-1)]:e}function MI(i,m){return Bc(Xr(i),Es(m,0,i.length))}function II(i){return Bc(Xr(i))}function hd(i,m,M){(M!==e&&!Ui(i[m],M)||M===e&&!(m in i))&&ko(i,m,M)}function Ja(i,m,M){var j=i[m];(!(ln.call(i,m)&&Ui(j,M))||M===e&&!(m in i))&&ko(i,m,M)}function Tc(i,m){for(var M=i.length;M--;)if(Ui(i[M][0],m))return M;return-1}function EI(i,m,M,j){return Yo(i,function(G,ee,le){m(j,G,M(G),le)}),j}function By(i,m){return i&&io(m,dr(m),i)}function RI(i,m){return i&&io(m,Zr(m),i)}function ko(i,m,M){m=="__proto__"&&xc?xc(i,m,{configurable:!0,enumerable:!0,value:M,writable:!0}):i[m]=M}function dd(i,m){for(var M=-1,j=m.length,G=xe(j),ee=i==null;++M<j;)G[M]=ee?e:Kd(i,m[M]);return G}function Es(i,m,M){return i===i&&(M!==e&&(i=i<=M?i:M),m!==e&&(i=i>=m?i:m)),i}function _i(i,m,M,j,G,ee){var le,de=m&l,ve=m&u,Ee=m&a;if(M&&(le=G?M(i,j,G,ee):M(i)),le!==e)return le;if(!Mn(i))return i;var Re=$t(i);if(Re){if(le=bE(i),!de)return Xr(i,le)}else{var De=Ir(i),Ge=De==qe||De==dt;if(Jo(i))return uw(i,de);if(De==gn||De==ue||Ge&&!G){if(le=ve||Ge?{}:Mw(i),!de)return ve?cE(i,RI(le,i)):lE(i,By(le,i))}else{if(!Zt[De])return G?i:{};le=xE(i,De,de)}}ee||(ee=new Hi);var rt=ee.get(i);if(rt)return rt;ee.set(i,le),ib(i)?i.forEach(function(yt){le.add(_i(yt,m,M,yt,i,ee))}):nb(i)&&i.forEach(function(yt,jt){le.set(jt,_i(yt,m,M,jt,i,ee))});var vt=Ee?ve?Rd:Ed:ve?Zr:dr,Ft=Re?e:vt(i);return mr(Ft||i,function(yt,jt){Ft&&(jt=yt,yt=i[jt]),Ja(le,jt,_i(yt,m,M,jt,i,ee))}),le}function LI(i){var m=dr(i);return function(M){return zy(M,i,m)}}function zy(i,m,M){var j=M.length;if(i==null)return!j;for(i=Pt(i);j--;){var G=M[j],ee=m[G],le=i[G];if(le===e&&!(G in i)||!ee(le))return!1}return!0}function jy(i,m,M){if(typeof i!="function")throw new un(y);return sl(function(){i.apply(e,M)},m)}function el(i,m,M,j){var G=-1,ee=ci,le=!0,de=i.length,ve=[],Ee=m.length;if(!de)return ve;M&&(m=v(m,lt(M))),j?(ee=ui,le=!1):m.length>=f&&(ee=_t,le=!1,m=new Is(m));e:for(;++G<de;){var Re=i[G],De=M==null?Re:M(Re);if(Re=j||Re!==0?Re:0,le&&De===De){for(var Ge=Ee;Ge--;)if(m[Ge]===De)continue e;ve.push(Re)}else ee(m,De,j)||ve.push(Re)}return ve}var Yo=fw(ro),Hy=fw(gd,!0);function OI(i,m){var M=!0;return Yo(i,function(j,G,ee){return M=!!m(j,G,ee),M}),M}function $c(i,m,M){for(var j=-1,G=i.length;++j<G;){var ee=i[j],le=m(ee);if(le!=null&&(de===e?le===le&&!di(le):M(le,de)))var de=le,ve=ee}return ve}function NI(i,m,M,j){var G=i.length;for(M=Nt(M),M<0&&(M=-M>G?0:G+M),j=j===e||j>G?G:Nt(j),j<0&&(j+=G),j=M>j?0:sb(j);M<j;)i[M++]=m;return i}function Uy(i,m){var M=[];return Yo(i,function(j,G,ee){m(j,G,ee)&&M.push(j)}),M}function yr(i,m,M,j,G){var ee=-1,le=i.length;for(M||(M=kE),G||(G=[]);++ee<le;){var de=i[ee];m>0&&M(de)?m>1?yr(de,m-1,M,j,G):T(G,de):j||(G[G.length]=de)}return G}var pd=mw(),Vy=mw(!0);function ro(i,m){return i&&pd(i,m,dr)}function gd(i,m){return i&&Vy(i,m,dr)}function Mc(i,m){return $r(m,function(M){return To(i[M])})}function Rs(i,m){m=Qo(m,i);for(var M=0,j=m.length;i!=null&&M<j;)i=i[oo(m[M++])];return M&&M==j?i:e}function Ky(i,m,M){var j=m(i);return $t(i)?j:T(j,M(i))}function Dr(i){return i==null?i===e?bt:tn:$s&&$s in Pt(i)?vE(i):IE(i)}function fd(i,m){return i>m}function DI(i,m){return i!=null&&ln.call(i,m)}function PI(i,m){return i!=null&&m in Pt(i)}function FI(i,m,M){return i>=Mr(m,M)&&i<ar(m,M)}function md(i,m,M){for(var j=M?ui:ci,G=i[0].length,ee=i.length,le=ee,de=xe(ee),ve=1/0,Ee=[];le--;){var Re=i[le];le&&m&&(Re=v(Re,lt(m))),ve=Mr(Re.length,ve),de[le]=!M&&(m||G>=120&&Re.length>=120)?new Is(le&&Re):e}Re=i[0];var De=-1,Ge=de[0];e:for(;++De<G&&Ee.length<ve;){var rt=Re[De],vt=m?m(rt):rt;if(rt=M||rt!==0?rt:0,!(Ge?_t(Ge,vt):j(Ee,vt,M))){for(le=ee;--le;){var Ft=de[le];if(!(Ft?_t(Ft,vt):j(i[le],vt,M)))continue e}Ge&&Ge.push(vt),Ee.push(rt)}}return Ee}function WI(i,m,M,j){return ro(i,function(G,ee,le){m(j,M(G),ee,le)}),j}function tl(i,m,M){m=Qo(m,i),i=Lw(i,m);var j=i==null?i:i[oo($i(m))];return j==null?e:lr(j,i,M)}function qy(i){return Fn(i)&&Dr(i)==ue}function BI(i){return Fn(i)&&Dr(i)==ze}function zI(i){return Fn(i)&&Dr(i)==$e}function nl(i,m,M,j,G){return i===m?!0:i==null||m==null||!Fn(i)&&!Fn(m)?i!==i&&m!==m:jI(i,m,M,j,nl,G)}function jI(i,m,M,j,G,ee){var le=$t(i),de=$t(m),ve=le?ce:Ir(i),Ee=de?ce:Ir(m);ve=ve==ue?gn:ve,Ee=Ee==ue?gn:Ee;var Re=ve==gn,De=Ee==gn,Ge=ve==Ee;if(Ge&&Jo(i)){if(!Jo(m))return!1;le=!0,Re=!1}if(Ge&&!Re)return ee||(ee=new Hi),le||va(i)?_w(i,m,M,j,G,ee):fE(i,m,ve,M,j,G,ee);if(!(M&o)){var rt=Re&&ln.call(i,"__wrapped__"),vt=De&&ln.call(m,"__wrapped__");if(rt||vt){var Ft=rt?i.value():i,yt=vt?m.value():m;return ee||(ee=new Hi),G(Ft,yt,M,j,ee)}}return Ge?(ee||(ee=new Hi),mE(i,m,M,j,G,ee)):!1}function HI(i){return Fn(i)&&Ir(i)==nt}function vd(i,m,M,j){var G=M.length,ee=G,le=!j;if(i==null)return!ee;for(i=Pt(i);G--;){var de=M[G];if(le&&de[2]?de[1]!==i[de[0]]:!(de[0]in i))return!1}for(;++G<ee;){de=M[G];var ve=de[0],Ee=i[ve],Re=de[1];if(le&&de[2]){if(Ee===e&&!(ve in i))return!1}else{var De=new Hi;if(j)var Ge=j(Ee,Re,ve,i,m,De);if(!(Ge===e?nl(Re,Ee,o|c,j,De):Ge))return!1}}return!0}function Gy(i){if(!Mn(i)||AE(i))return!1;var m=To(i)?HM:_r;return m.test(Os(i))}function UI(i){return Fn(i)&&Dr(i)==fn}function VI(i){return Fn(i)&&Ir(i)==En}function KI(i){return Fn(i)&&Kc(i.length)&&!!nn[Dr(i)]}function Yy(i){return typeof i=="function"?i:i==null?Jr:typeof i=="object"?$t(i)?Zy(i[0],i[1]):Qy(i):vb(i)}function yd(i){if(!ol(i))return YM(i);var m=[];for(var M in Pt(i))ln.call(i,M)&&M!="constructor"&&m.push(M);return m}function qI(i){if(!Mn(i))return ME(i);var m=ol(i),M=[];for(var j in i)j=="constructor"&&(m||!ln.call(i,j))||M.push(j);return M}function wd(i,m){return i<m}function Xy(i,m){var M=-1,j=Qr(i)?xe(i.length):[];return Yo(i,function(G,ee,le){j[++M]=m(G,ee,le)}),j}function Qy(i){var m=Od(i);return m.length==1&&m[0][2]?Ew(m[0][0],m[0][1]):function(M){return M===i||vd(M,i,m)}}function Zy(i,m){return Dd(i)&&Iw(m)?Ew(oo(i),m):function(M){var j=Kd(M,i);return j===e&&j===m?qd(M,i):nl(m,j,o|c)}}function Ic(i,m,M,j,G){i!==m&&pd(m,function(ee,le){if(G||(G=new Hi),Mn(ee))GI(i,m,le,M,Ic,j,G);else{var de=j?j(Fd(i,le),ee,le+"",i,m,G):e;de===e&&(de=ee),hd(i,le,de)}},Zr)}function GI(i,m,M,j,G,ee,le){var de=Fd(i,M),ve=Fd(m,M),Ee=le.get(ve);if(Ee){hd(i,M,Ee);return}var Re=ee?ee(de,ve,M+"",i,m,le):e,De=Re===e;if(De){var Ge=$t(ve),rt=!Ge&&Jo(ve),vt=!Ge&&!rt&&va(ve);Re=ve,Ge||rt||vt?$t(de)?Re=de:Vn(de)?Re=Xr(de):rt?(De=!1,Re=uw(ve,!0)):vt?(De=!1,Re=hw(ve,!0)):Re=[]:al(ve)||Ns(ve)?(Re=de,Ns(de)?Re=ab(de):(!Mn(de)||To(de))&&(Re=Mw(ve))):De=!1}De&&(le.set(ve,Re),G(Re,ve,j,ee,le),le.delete(ve)),hd(i,M,Re)}function Jy(i,m){var M=i.length;if(M)return m+=m<0?M:0,_o(m,M)?i[m]:e}function ew(i,m,M){m.length?m=v(m,function(ee){return $t(ee)?function(le){return Rs(le,ee.length===1?ee[0]:ee)}:ee}):m=[Jr];var j=-1;m=v(m,lt(mt()));var G=Xy(i,function(ee,le,de){var ve=v(m,function(Ee){return Ee(ee)});return{criteria:ve,index:++j,value:ee}});return Ue(G,function(ee,le){return aE(ee,le,M)})}function YI(i,m){return tw(i,m,function(M,j){return qd(i,j)})}function tw(i,m,M){for(var j=-1,G=m.length,ee={};++j<G;){var le=m[j],de=Rs(i,le);M(de,le)&&rl(ee,Qo(le,i),de)}return ee}function XI(i){return function(m){return Rs(m,i)}}function bd(i,m,M,j){var G=j?ye:se,ee=-1,le=m.length,de=i;for(i===m&&(m=Xr(m)),M&&(de=v(i,lt(M)));++ee<le;)for(var ve=0,Ee=m[ee],Re=M?M(Ee):Ee;(ve=G(de,Re,ve,j))>-1;)de!==i&&bc.call(de,ve,1),bc.call(i,ve,1);return i}function nw(i,m){for(var M=i?m.length:0,j=M-1;M--;){var G=m[M];if(M==j||G!==ee){var ee=G;_o(G)?bc.call(i,G,1):Sd(i,G)}}return i}function xd(i,m){return i+kc(Dy()*(m-i+1))}function QI(i,m,M,j){for(var G=-1,ee=ar(Cc((m-i)/(M||1)),0),le=xe(ee);ee--;)le[j?ee:++G]=i,i+=M;return le}function Cd(i,m){var M="";if(!i||m<1||m>U)return M;do m%2&&(M+=i),m=kc(m/2),m&&(i+=i);while(m);return M}function Bt(i,m){return Wd(Rw(i,m,Jr),i+"")}function ZI(i){return Wy(ya(i))}function JI(i,m){var M=ya(i);return Bc(M,Es(m,0,M.length))}function rl(i,m,M,j){if(!Mn(i))return i;m=Qo(m,i);for(var G=-1,ee=m.length,le=ee-1,de=i;de!=null&&++G<ee;){var ve=oo(m[G]),Ee=M;if(ve==="__proto__"||ve==="constructor"||ve==="prototype")return i;if(G!=le){var Re=de[ve];Ee=j?j(Re,ve,de):e,Ee===e&&(Ee=Mn(Re)?Re:_o(m[G+1])?[]:{})}Ja(de,ve,Ee),de=de[ve]}return i}var rw=Sc?function(i,m){return Sc.set(i,m),i}:Jr,eE=xc?function(i,m){return xc(i,"toString",{configurable:!0,enumerable:!1,value:Yd(m),writable:!0})}:Jr;function tE(i){return Bc(ya(i))}function Ti(i,m,M){var j=-1,G=i.length;m<0&&(m=-m>G?0:G+m),M=M>G?G:M,M<0&&(M+=G),G=m>M?0:M-m>>>0,m>>>=0;for(var ee=xe(G);++j<G;)ee[j]=i[j+m];return ee}function nE(i,m){var M;return Yo(i,function(j,G,ee){return M=m(j,G,ee),!M}),!!M}function Ec(i,m,M){var j=0,G=i==null?j:i.length;if(typeof m=="number"&&m===m&&G<=ne){for(;j<G;){var ee=j+G>>>1,le=i[ee];le!==null&&!di(le)&&(M?le<=m:le<m)?j=ee+1:G=ee}return G}return kd(i,m,Jr,M)}function kd(i,m,M,j){var G=0,ee=i==null?0:i.length;if(ee===0)return 0;m=M(m);for(var le=m!==m,de=m===null,ve=di(m),Ee=m===e;G<ee;){var Re=kc((G+ee)/2),De=M(i[Re]),Ge=De!==e,rt=De===null,vt=De===De,Ft=di(De);if(le)var yt=j||vt;else Ee?yt=vt&&(j||Ge):de?yt=vt&&Ge&&(j||!rt):ve?yt=vt&&Ge&&!rt&&(j||!Ft):rt||Ft?yt=!1:yt=j?De<=m:De<m;yt?G=Re+1:ee=Re}return Mr(ee,he)}function iw(i,m){for(var M=-1,j=i.length,G=0,ee=[];++M<j;){var le=i[M],de=m?m(le):le;if(!M||!Ui(de,ve)){var ve=de;ee[G++]=le===0?0:le}}return ee}function ow(i){return typeof i=="number"?i:di(i)?Z:+i}function hi(i){if(typeof i=="string")return i;if($t(i))return v(i,hi)+"";if(di(i))return Py?Py.call(i):"";var m=i+"";return m=="0"&&1/i==-1/0?"-0":m}function Xo(i,m,M){var j=-1,G=ci,ee=i.length,le=!0,de=[],ve=de;if(M)le=!1,G=ui;else if(ee>=f){var Ee=m?null:pE(i);if(Ee)return Ve(Ee);le=!1,G=_t,ve=new Is}else ve=m?[]:de;e:for(;++j<ee;){var Re=i[j],De=m?m(Re):Re;if(Re=M||Re!==0?Re:0,le&&De===De){for(var Ge=ve.length;Ge--;)if(ve[Ge]===De)continue e;m&&ve.push(De),de.push(Re)}else G(ve,De,M)||(ve!==de&&ve.push(De),de.push(Re))}return de}function Sd(i,m){return m=Qo(m,i),i=Lw(i,m),i==null||delete i[oo($i(m))]}function sw(i,m,M,j){return rl(i,m,M(Rs(i,m)),j)}function Rc(i,m,M,j){for(var G=i.length,ee=j?G:-1;(j?ee--:++ee<G)&&m(i[ee],ee,i););return M?Ti(i,j?0:ee,j?ee+1:G):Ti(i,j?ee+1:0,j?G:ee)}function aw(i,m){var M=i;return M instanceof Kt&&(M=M.value()),k(m,function(j,G){return G.func.apply(G.thisArg,T([j],G.args))},M)}function Ad(i,m,M){var j=i.length;if(j<2)return j?Xo(i[0]):[];for(var G=-1,ee=xe(j);++G<j;)for(var le=i[G],de=-1;++de<j;)de!=G&&(ee[G]=el(ee[G]||le,i[de],m,M));return Xo(yr(ee,1),m,M)}function lw(i,m,M){for(var j=-1,G=i.length,ee=m.length,le={};++j<G;){var de=j<ee?m[j]:e;M(le,i[j],de)}return le}function _d(i){return Vn(i)?i:[]}function Td(i){return typeof i=="function"?i:Jr}function Qo(i,m){return $t(i)?i:Dd(i,m)?[i]:Pw(sn(i))}var rE=Bt;function Zo(i,m,M){var j=i.length;return M=M===e?j:M,!m&&M>=j?i:Ti(i,m,M)}var cw=UM||function(i){return cn.clearTimeout(i)};function uw(i,m){if(m)return i.slice();var M=i.length,j=Ey?Ey(M):new i.constructor(M);return i.copy(j),j}function $d(i){var m=new i.constructor(i.byteLength);return new yc(m).set(new yc(i)),m}function iE(i,m){var M=m?$d(i.buffer):i.buffer;return new i.constructor(M,i.byteOffset,i.byteLength)}function oE(i){var m=new i.constructor(i.source,oi.exec(i));return m.lastIndex=i.lastIndex,m}function sE(i){return Za?Pt(Za.call(i)):{}}function hw(i,m){var M=m?$d(i.buffer):i.buffer;return new i.constructor(M,i.byteOffset,i.length)}function dw(i,m){if(i!==m){var M=i!==e,j=i===null,G=i===i,ee=di(i),le=m!==e,de=m===null,ve=m===m,Ee=di(m);if(!de&&!Ee&&!ee&&i>m||ee&&le&&ve&&!de&&!Ee||j&&le&&ve||!M&&ve||!G)return 1;if(!j&&!ee&&!Ee&&i<m||Ee&&M&&G&&!j&&!ee||de&&M&&G||!le&&G||!ve)return-1}return 0}function aE(i,m,M){for(var j=-1,G=i.criteria,ee=m.criteria,le=G.length,de=M.length;++j<le;){var ve=dw(G[j],ee[j]);if(ve){if(j>=de)return ve;var Ee=M[j];return ve*(Ee=="desc"?-1:1)}}return i.index-m.index}function pw(i,m,M,j){for(var G=-1,ee=i.length,le=M.length,de=-1,ve=m.length,Ee=ar(ee-le,0),Re=xe(ve+Ee),De=!j;++de<ve;)Re[de]=m[de];for(;++G<le;)(De||G<ee)&&(Re[M[G]]=i[G]);for(;Ee--;)Re[de++]=i[G++];return Re}function gw(i,m,M,j){for(var G=-1,ee=i.length,le=-1,de=M.length,ve=-1,Ee=m.length,Re=ar(ee-de,0),De=xe(Re+Ee),Ge=!j;++G<Re;)De[G]=i[G];for(var rt=G;++ve<Ee;)De[rt+ve]=m[ve];for(;++le<de;)(Ge||G<ee)&&(De[rt+M[le]]=i[G++]);return De}function Xr(i,m){var M=-1,j=i.length;for(m||(m=xe(j));++M<j;)m[M]=i[M];return m}function io(i,m,M,j){var G=!M;M||(M={});for(var ee=-1,le=m.length;++ee<le;){var de=m[ee],ve=j?j(M[de],i[de],de,M,i):e;ve===e&&(ve=i[de]),G?ko(M,de,ve):Ja(M,de,ve)}return M}function lE(i,m){return io(i,Nd(i),m)}function cE(i,m){return io(i,Tw(i),m)}function Lc(i,m){return function(M,j){var G=$t(M)?cr:EI,ee=m?m():{};return G(M,i,mt(j,2),ee)}}function ga(i){return Bt(function(m,M){var j=-1,G=M.length,ee=G>1?M[G-1]:e,le=G>2?M[2]:e;for(ee=i.length>3&&typeof ee=="function"?(G--,ee):e,le&&Pr(M[0],M[1],le)&&(ee=G<3?e:ee,G=1),m=Pt(m);++j<G;){var de=M[j];de&&i(m,de,j,ee)}return m})}function fw(i,m){return function(M,j){if(M==null)return M;if(!Qr(M))return i(M,j);for(var G=M.length,ee=m?G:-1,le=Pt(M);(m?ee--:++ee<G)&&j(le[ee],ee,le)!==!1;);return M}}function mw(i){return function(m,M,j){for(var G=-1,ee=Pt(m),le=j(m),de=le.length;de--;){var ve=le[i?de:++G];if(M(ee[ve],ve,ee)===!1)break}return m}}function uE(i,m,M){var j=m&d,G=il(i);function ee(){var le=this&&this!==cn&&this instanceof ee?G:i;return le.apply(j?M:this,arguments)}return ee}function vw(i){return function(m){m=sn(m);var M=oe(m)?Tt(m):e,j=M?M[0]:m.charAt(0),G=M?Zo(M,1).join(""):m.slice(1);return j[i]()+G}}function fa(i){return function(m){return k(fb(gb(m).replace($n,"")),i,"")}}function il(i){return function(){var m=arguments;switch(m.length){case 0:return new i;case 1:return new i(m[0]);case 2:return new i(m[0],m[1]);case 3:return new i(m[0],m[1],m[2]);case 4:return new i(m[0],m[1],m[2],m[3]);case 5:return new i(m[0],m[1],m[2],m[3],m[4]);case 6:return new i(m[0],m[1],m[2],m[3],m[4],m[5]);case 7:return new i(m[0],m[1],m[2],m[3],m[4],m[5],m[6])}var M=pa(i.prototype),j=i.apply(M,m);return Mn(j)?j:M}}function hE(i,m,M){var j=il(i);function G(){for(var ee=arguments.length,le=xe(ee),de=ee,ve=ma(G);de--;)le[de]=arguments[de];var Ee=ee<3&&le[0]!==ve&&le[ee-1]!==ve?[]:We(le,ve);if(ee-=Ee.length,ee<M)return Cw(i,m,Oc,G.placeholder,e,le,Ee,e,e,M-ee);var Re=this&&this!==cn&&this instanceof G?j:i;return lr(Re,this,le)}return G}function yw(i){return function(m,M,j){var G=Pt(m);if(!Qr(m)){var ee=mt(M,3);m=dr(m),M=function(de){return ee(G[de],de,G)}}var le=i(m,M,j);return le>-1?G[ee?m[le]:le]:e}}function ww(i){return Ao(function(m){var M=m.length,j=M,G=Ai.prototype.thru;for(i&&m.reverse();j--;){var ee=m[j];if(typeof ee!="function")throw new un(y);if(G&&!le&&Fc(ee)=="wrapper")var le=new Ai([],!0)}for(j=le?j:M;++j<M;){ee=m[j];var de=Fc(ee),ve=de=="wrapper"?Ld(ee):e;ve&&Pd(ve[0])&&ve[1]==(R|E|S|L)&&!ve[4].length&&ve[9]==1?le=le[Fc(ve[0])].apply(le,ve[3]):le=ee.length==1&&Pd(ee)?le[de]():le.thru(ee)}return function(){var Ee=arguments,Re=Ee[0];if(le&&Ee.length==1&&$t(Re))return le.plant(Re).value();for(var De=0,Ge=M?m[De].apply(this,Ee):Re;++De<M;)Ge=m[De].call(this,Ge);return Ge}})}function Oc(i,m,M,j,G,ee,le,de,ve,Ee){var Re=m&R,De=m&d,Ge=m&w,rt=m&(E|$),vt=m&P,Ft=Ge?e:il(i);function yt(){for(var jt=arguments.length,Gt=xe(jt),pi=jt;pi--;)Gt[pi]=arguments[pi];if(rt)var Fr=ma(yt),gi=ur(Gt,Fr);if(j&&(Gt=pw(Gt,j,G,rt)),ee&&(Gt=gw(Gt,ee,le,rt)),jt-=gi,rt&&jt<Ee){var Kn=We(Gt,Fr);return Cw(i,m,Oc,yt.placeholder,M,Gt,Kn,de,ve,Ee-jt)}var Vi=De?M:this,Mo=Ge?Vi[i]:i;return jt=Gt.length,de?Gt=EE(Gt,de):vt&&jt>1&&Gt.reverse(),Re&&ve<jt&&(Gt.length=ve),this&&this!==cn&&this instanceof yt&&(Mo=Ft||il(Mo)),Mo.apply(Vi,Gt)}return yt}function bw(i,m){return function(M,j){return WI(M,i,m(j),{})}}function Nc(i,m){return function(M,j){var G;if(M===e&&j===e)return m;if(M!==e&&(G=M),j!==e){if(G===e)return j;typeof M=="string"||typeof j=="string"?(M=hi(M),j=hi(j)):(M=ow(M),j=ow(j)),G=i(M,j)}return G}}function Md(i){return Ao(function(m){return m=v(m,lt(mt())),Bt(function(M){var j=this;return i(m,function(G){return lr(G,j,M)})})})}function Dc(i,m){m=m===e?" ":hi(m);var M=m.length;if(M<2)return M?Cd(m,i):m;var j=Cd(m,Cc(i/zt(m)));return oe(m)?Zo(Tt(j),0,i).join(""):j.slice(0,i)}function dE(i,m,M,j){var G=m&d,ee=il(i);function le(){for(var de=-1,ve=arguments.length,Ee=-1,Re=j.length,De=xe(Re+ve),Ge=this&&this!==cn&&this instanceof le?ee:i;++Ee<Re;)De[Ee]=j[Ee];for(;ve--;)De[Ee++]=arguments[++de];return lr(Ge,G?M:this,De)}return le}function xw(i){return function(m,M,j){return j&&typeof j!="number"&&Pr(m,M,j)&&(M=j=e),m=$o(m),M===e?(M=m,m=0):M=$o(M),j=j===e?m<M?1:-1:$o(j),QI(m,M,j,i)}}function Pc(i){return function(m,M){return typeof m=="string"&&typeof M=="string"||(m=Mi(m),M=Mi(M)),i(m,M)}}function Cw(i,m,M,j,G,ee,le,de,ve,Ee){var Re=m&E,De=Re?le:e,Ge=Re?e:le,rt=Re?ee:e,vt=Re?e:ee;m|=Re?S:C,m&=~(Re?C:S),m&x||(m&=-4);var Ft=[i,m,G,rt,De,vt,Ge,de,ve,Ee],yt=M.apply(e,Ft);return Pd(i)&&Ow(yt,Ft),yt.placeholder=j,Nw(yt,i,m)}function Id(i){var m=Xt[i];return function(M,j){if(M=Mi(M),j=j==null?0:Mr(Nt(j),292),j&&Ny(M)){var G=(sn(M)+"e").split("e"),ee=m(G[0]+"e"+(+G[1]+j));return G=(sn(ee)+"e").split("e"),+(G[0]+"e"+(+G[1]-j))}return m(M)}}var pE=ha&&1/Ve(new ha([,-0]))[1]==B?function(i){return new ha(i)}:Zd;function kw(i){return function(m){var M=Ir(m);return M==nt?Me(m):M==En?Qe(m):tt(m,i(m))}}function So(i,m,M,j,G,ee,le,de){var ve=m&w;if(!ve&&typeof i!="function")throw new un(y);var Ee=j?j.length:0;if(Ee||(m&=-97,j=G=e),le=le===e?le:ar(Nt(le),0),de=de===e?de:Nt(de),Ee-=G?G.length:0,m&C){var Re=j,De=G;j=G=e}var Ge=ve?e:Ld(i),rt=[i,m,M,j,G,Re,De,ee,le,de];if(Ge&&$E(rt,Ge),i=rt[0],m=rt[1],M=rt[2],j=rt[3],G=rt[4],de=rt[9]=rt[9]===e?ve?0:i.length:ar(rt[9]-Ee,0),!de&&m&(E|$)&&(m&=-25),!m||m==d)var vt=uE(i,m,M);else m==E||m==$?vt=hE(i,m,de):(m==S||m==(d|S))&&!G.length?vt=dE(i,m,M,j):vt=Oc.apply(e,rt);var Ft=Ge?rw:Ow;return Nw(Ft(vt,rt),i,m)}function Sw(i,m,M,j){return i===e||Ui(i,Pn[M])&&!ln.call(j,M)?m:i}function Aw(i,m,M,j,G,ee){return Mn(i)&&Mn(m)&&(ee.set(m,i),Ic(i,m,e,Aw,ee),ee.delete(m)),i}function gE(i){return al(i)?e:i}function _w(i,m,M,j,G,ee){var le=M&o,de=i.length,ve=m.length;if(de!=ve&&!(le&&ve>de))return!1;var Ee=ee.get(i),Re=ee.get(m);if(Ee&&Re)return Ee==m&&Re==i;var De=-1,Ge=!0,rt=M&c?new Is:e;for(ee.set(i,m),ee.set(m,i);++De<de;){var vt=i[De],Ft=m[De];if(j)var yt=le?j(Ft,vt,De,m,i,ee):j(vt,Ft,De,i,m,ee);if(yt!==e){if(yt)continue;Ge=!1;break}if(rt){if(!W(m,function(jt,Gt){if(!_t(rt,Gt)&&(vt===jt||G(vt,jt,M,j,ee)))return rt.push(Gt)})){Ge=!1;break}}else if(!(vt===Ft||G(vt,Ft,M,j,ee))){Ge=!1;break}}return ee.delete(i),ee.delete(m),Ge}function fE(i,m,M,j,G,ee,le){switch(M){case Xe:if(i.byteLength!=m.byteLength||i.byteOffset!=m.byteOffset)return!1;i=i.buffer,m=m.buffer;case ze:return!(i.byteLength!=m.byteLength||!ee(new yc(i),new yc(m)));case Te:case $e:case pt:return Ui(+i,+m);case Ye:return i.name==m.name&&i.message==m.message;case fn:case Rn:return i==m+"";case nt:var de=Me;case En:var ve=j&o;if(de||(de=Ve),i.size!=m.size&&!ve)return!1;var Ee=le.get(i);if(Ee)return Ee==m;j|=c,le.set(i,m);var Re=_w(de(i),de(m),j,G,ee,le);return le.delete(i),Re;case Xn:if(Za)return Za.call(i)==Za.call(m)}return!1}function mE(i,m,M,j,G,ee){var le=M&o,de=Ed(i),ve=de.length,Ee=Ed(m),Re=Ee.length;if(ve!=Re&&!le)return!1;for(var De=ve;De--;){var Ge=de[De];if(!(le?Ge in m:ln.call(m,Ge)))return!1}var rt=ee.get(i),vt=ee.get(m);if(rt&&vt)return rt==m&&vt==i;var Ft=!0;ee.set(i,m),ee.set(m,i);for(var yt=le;++De<ve;){Ge=de[De];var jt=i[Ge],Gt=m[Ge];if(j)var pi=le?j(Gt,jt,Ge,m,i,ee):j(jt,Gt,Ge,i,m,ee);if(!(pi===e?jt===Gt||G(jt,Gt,M,j,ee):pi)){Ft=!1;break}yt||(yt=Ge=="constructor")}if(Ft&&!yt){var Fr=i.constructor,gi=m.constructor;Fr!=gi&&"constructor"in i&&"constructor"in m&&!(typeof Fr=="function"&&Fr instanceof Fr&&typeof gi=="function"&&gi instanceof gi)&&(Ft=!1)}return ee.delete(i),ee.delete(m),Ft}function Ao(i){return Wd(Rw(i,e,zw),i+"")}function Ed(i){return Ky(i,dr,Nd)}function Rd(i){return Ky(i,Zr,Tw)}var Ld=Sc?function(i){return Sc.get(i)}:Zd;function Fc(i){for(var m=i.name+"",M=da[m],j=ln.call(da,m)?M.length:0;j--;){var G=M[j],ee=G.func;if(ee==null||ee==i)return G.name}return m}function ma(i){var m=ln.call(J,"placeholder")?J:i;return m.placeholder}function mt(){var i=J.iteratee||Xd;return i=i===Xd?Yy:i,arguments.length?i(arguments[0],arguments[1]):i}function Wc(i,m){var M=i.__data__;return SE(m)?M[typeof m=="string"?"string":"hash"]:M.map}function Od(i){for(var m=dr(i),M=m.length;M--;){var j=m[M],G=i[j];m[M]=[j,G,Iw(G)]}return m}function Ls(i,m){var M=ie(i,m);return Gy(M)?M:e}function vE(i){var m=ln.call(i,$s),M=i[$s];try{i[$s]=e;var j=!0}catch{}var G=mc.call(i);return j&&(m?i[$s]=M:delete i[$s]),G}var Nd=ld?function(i){return i==null?[]:(i=Pt(i),$r(ld(i),function(m){return Ly.call(i,m)}))}:Jd,Tw=ld?function(i){for(var m=[];i;)T(m,Nd(i)),i=wc(i);return m}:Jd,Ir=Dr;(cd&&Ir(new cd(new ArrayBuffer(1)))!=Xe||Ya&&Ir(new Ya)!=nt||ud&&Ir(ud.resolve())!=Yt||ha&&Ir(new ha)!=En||Xa&&Ir(new Xa)!=He)&&(Ir=function(i){var m=Dr(i),M=m==gn?i.constructor:e,j=M?Os(M):"";if(j)switch(j){case JM:return Xe;case eI:return nt;case tI:return Yt;case nI:return En;case rI:return He}return m});function yE(i,m,M){for(var j=-1,G=M.length;++j<G;){var ee=M[j],le=ee.size;switch(ee.type){case"drop":i+=le;break;case"dropRight":m-=le;break;case"take":m=Mr(m,i+le);break;case"takeRight":i=ar(i,m-le);break}}return{start:i,end:m}}function wE(i){var m=i.match(Wi);return m?m[1].split(ws):[]}function $w(i,m,M){m=Qo(m,i);for(var j=-1,G=m.length,ee=!1;++j<G;){var le=oo(m[j]);if(!(ee=i!=null&&M(i,le)))break;i=i[le]}return ee||++j!=G?ee:(G=i==null?0:i.length,!!G&&Kc(G)&&_o(le,G)&&($t(i)||Ns(i)))}function bE(i){var m=i.length,M=new i.constructor(m);return m&&typeof i[0]=="string"&&ln.call(i,"index")&&(M.index=i.index,M.input=i.input),M}function Mw(i){return typeof i.constructor=="function"&&!ol(i)?pa(wc(i)):{}}function xE(i,m,M){var j=i.constructor;switch(m){case ze:return $d(i);case Te:case $e:return new j(+i);case Xe:return iE(i,M);case gt:case At:case St:case Dt:case Ot:case ut:case xt:case Cn:case kr:return hw(i,M);case nt:return new j;case pt:case Rn:return new j(i);case fn:return oE(i);case En:return new j;case Xn:return sE(i)}}function CE(i,m){var M=m.length;if(!M)return i;var j=M-1;return m[j]=(M>1?"& ":"")+m[j],m=m.join(M>2?", ":" "),i.replace(Qi,`{
|
1468
|
+
*/var BC=Ll.exports,nf;function zC(){return nf||(nf=1,function(n,t){(function(){var e,r="4.17.21",f=200,p="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",y="Expected a function",b="Invalid `variable` option passed into `_.template`",h="__lodash_hash_undefined__",g=500,s="__lodash_placeholder__",l=1,u=2,a=4,o=1,c=2,d=1,w=2,x=4,E=8,$=16,S=32,C=64,R=128,L=256,P=512,I=30,H="...",F=800,O=16,_=1,A=2,N=3,B=1/0,U=9007199254740991,q=17976931348623157e292,Z=NaN,te=4294967295,he=te-1,ne=te>>>1,ae=[["ary",R],["bind",d],["bindKey",w],["curry",E],["curryRight",$],["flip",P],["partial",S],["partialRight",C],["rearg",L]],ue="[object Arguments]",ce="[object Array]",fe="[object AsyncFunction]",Te="[object Boolean]",$e="[object Date]",Ie="[object DOMException]",Ye="[object Error]",qe="[object Function]",dt="[object GeneratorFunction]",nt="[object Map]",pt="[object Number]",tn="[object Null]",fn="[object Object]",Yt="[object Promise]",gr="[object Proxy]",mn="[object RegExp]",Rn="[object Set]",Ln="[object String]",Qn="[object Symbol]",bt="[object Undefined]",He="[object WeakMap]",ke="[object WeakSet]",ze="[object ArrayBuffer]",Xe="[object DataView]",gt="[object Float32Array]",At="[object Float64Array]",St="[object Int8Array]",Dt="[object Int16Array]",Ot="[object Int32Array]",ut="[object Uint8Array]",xt="[object Uint8ClampedArray]",kn="[object Uint16Array]",kr="[object Uint32Array]",Kr=/\b__p \+= '';/g,Di=/\b(__p \+=) '' \+/g,co=/(__e\(.*?\)|\b__t\)) \+\n'';/g,fr=/&(?:amp|lt|gt|quot|#39);/g,uo=/[&<>"']/g,Do=RegExp(fr.source),Ha=RegExp(uo.source),ii=/<%-([\s\S]+?)%>/g,Ua=/<%([\s\S]+?)%>/g,ys=/<%=([\s\S]+?)%>/g,ra=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Pi=/^\w*$/,Hn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Sr=/[\\^$.*+?()[\]{}|]/g,Fi=RegExp(Sr.source),$n=/^\s+/,Ar=/\s/,Qi=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Wi=/\{\n\/\* \[wrapped with (.+)\] \*/,ws=/,? & /,ia=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Va=/[()=,{}\[\]\/\s]/,Ka=/\\(\\)?/g,Bi=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,oi=/\w*$/,Ut=/^[-+]0x[0-9a-f]+$/i,oa=/^0b[01]+$/i,_r=/^\[object .+?Constructor\]$/,Un=/^0o[0-7]+$/i,vn=/^(?:0|[1-9]\d*)$/,On=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,vi=/($^)/,Tr=/['\n\r\u2028\u2029\\]/g,yi="\\ud800-\\udfff",Po="\\u0300-\\u036f",bs="\\ufe20-\\ufe2f",Zi="\\u20d0-\\u20ff",qr=Po+bs+Zi,ho="\\u2700-\\u27bf",Fo="a-z\\xdf-\\xf6\\xf8-\\xff",Gr="\\xac\\xb1\\xd7\\xf7",Wo="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",xs="\\u2000-\\u206f",Cs=" \\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",Bo="A-Z\\xc0-\\xd6\\xd8-\\xde",sr="\\ufe0e\\ufe0f",ks=Gr+Wo+xs+Cs,po="['’]",zo="["+yi+"]",jo="["+ks+"]",Ji="["+qr+"]",Ss="\\d+",sa="["+ho+"]",Ho="["+Fo+"]",Uo="[^"+yi+ks+Ss+ho+Fo+Bo+"]",As="\\ud83c[\\udffb-\\udfff]",Vo="(?:"+Ji+"|"+As+")",go="[^"+yi+"]",wi="(?:\\ud83c[\\udde6-\\uddff]){2}",ar="[\\ud800-\\udbff][\\udc00-\\udfff]",eo="["+Bo+"]",zi="\\u200d",aa="(?:"+Ho+"|"+Uo+")",qa="(?:"+eo+"|"+Uo+")",fo="(?:"+po+"(?:d|ll|m|re|s|t|ve))?",ji="(?:"+po+"(?:D|LL|M|RE|S|T|VE))?",mo=Vo+"?",Ko="["+sr+"]?",vo="(?:"+zi+"(?:"+[go,wi,ar].join("|")+")"+Ko+mo+")*",la="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",to="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Fe=Ko+mo+vo,ca="(?:"+[sa,wi,ar].join("|")+")"+Fe,Ne="(?:"+[go+Ji+"?",Ji,wi,ar,zo].join("|")+")",Mn=RegExp(po,"g"),yo=RegExp(Ji,"g"),si=RegExp(As+"(?="+As+")|"+Ne+Fe,"g"),Vn=RegExp([eo+"?"+Ho+"+"+fo+"(?="+[jo,eo,"$"].join("|")+")",qa+"+"+ji+"(?="+[jo,eo+aa,"$"].join("|")+")",eo+"?"+aa+"+"+fo,eo+"+"+ji,to,la,Ss,ca].join("|"),"g"),ua=RegExp("["+zi+yi+qr+sr+"]"),wo=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,bi=["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"],no=-1,nn={};nn[gt]=nn[At]=nn[St]=nn[Dt]=nn[Ot]=nn[ut]=nn[xt]=nn[kn]=nn[kr]=!0,nn[ue]=nn[ce]=nn[ze]=nn[Te]=nn[Xe]=nn[$e]=nn[Ye]=nn[qe]=nn[nt]=nn[pt]=nn[fn]=nn[mn]=nn[Rn]=nn[Ln]=nn[He]=!1;var Zt={};Zt[ue]=Zt[ce]=Zt[ze]=Zt[Xe]=Zt[Te]=Zt[$e]=Zt[gt]=Zt[At]=Zt[St]=Zt[Dt]=Zt[Ot]=Zt[nt]=Zt[pt]=Zt[fn]=Zt[mn]=Zt[Rn]=Zt[Ln]=Zt[Qn]=Zt[ut]=Zt[xt]=Zt[kn]=Zt[kr]=!0,Zt[Ye]=Zt[qe]=Zt[He]=!1;var rn={À:"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"},Vt={"&":"&","<":"<",">":">",'"':""","'":"'"},xi={"&":"&","<":"<",">":">",""":'"',"'":"'"},Nn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Be=parseFloat,yn=parseInt,Ct=typeof Ro=="object"&&Ro&&Ro.Object===Object&&Ro,Lr=typeof self=="object"&&self&&self.Object===Object&&self,cn=Ct||Lr||Function("return this")(),xn=t&&!t.nodeType&&t,Zn=xn&&!0&&n&&!n.nodeType&&n,Or=Zn&&Zn.exports===xn,Ci=Or&&Ct.process,Dn=function(){try{var pe=Zn&&Zn.require&&Zn.require("util").types;return pe||Ci&&Ci.binding&&Ci.binding("util")}catch{}}(),Yr=Dn&&Dn.isArrayBuffer,qo=Dn&&Dn.isDate,Pn=Dn&&Dn.isMap,ai=Dn&&Dn.isRegExp,li=Dn&&Dn.isSet,ki=Dn&&Dn.isTypedArray;function cr(pe,Se,xe){switch(xe.length){case 0:return pe.call(Se);case 1:return pe.call(Se,xe[0]);case 2:return pe.call(Se,xe[0],xe[1]);case 3:return pe.call(Se,xe[0],xe[1],xe[2])}return pe.apply(Se,xe)}function ur(pe,Se,xe,je){for(var ct=-1,Lt=pe==null?0:pe.length;++ct<Lt;){var Xt=pe[ct];Se(je,Xt,xe(Xt),pe)}return je}function mr(pe,Se){for(var xe=-1,je=pe==null?0:pe.length;++xe<je&&Se(pe[xe],xe,pe)!==!1;);return pe}function _s(pe,Se){for(var xe=pe==null?0:pe.length;xe--&&Se(pe[xe],xe,pe)!==!1;);return pe}function vr(pe,Se){for(var xe=-1,je=pe==null?0:pe.length;++xe<je;)if(!Se(pe[xe],xe,pe))return!1;return!0}function $r(pe,Se){for(var xe=-1,je=pe==null?0:pe.length,ct=0,Lt=[];++xe<je;){var Xt=pe[xe];Se(Xt,xe,pe)&&(Lt[ct++]=Xt)}return Lt}function ci(pe,Se){var xe=pe==null?0:pe.length;return!!xe&&se(pe,Se,0)>-1}function ui(pe,Se,xe){for(var je=-1,ct=pe==null?0:pe.length;++je<ct;)if(xe(Se,pe[je]))return!0;return!1}function v(pe,Se){for(var xe=-1,je=pe==null?0:pe.length,ct=Array(je);++xe<je;)ct[xe]=Se(pe[xe],xe,pe);return ct}function T(pe,Se){for(var xe=-1,je=Se.length,ct=pe.length;++xe<je;)pe[ct+xe]=Se[xe];return pe}function k(pe,Se,xe,je){var ct=-1,Lt=pe==null?0:pe.length;for(je&&Lt&&(xe=pe[++ct]);++ct<Lt;)xe=Se(xe,pe[ct],ct,pe);return xe}function D(pe,Se,xe,je){var ct=pe==null?0:pe.length;for(je&&ct&&(xe=pe[--ct]);ct--;)xe=Se(xe,pe[ct],ct,pe);return xe}function W(pe,Se){for(var xe=-1,je=pe==null?0:pe.length;++xe<je;)if(Se(pe[xe],xe,pe))return!0;return!1}var z=we("length");function K(pe){return pe.split("")}function Y(pe){return pe.match(ia)||[]}function Q(pe,Se,xe){var je;return xe(pe,function(ct,Lt,Xt){if(Se(ct,Lt,Xt))return je=Lt,!1}),je}function re(pe,Se,xe,je){for(var ct=pe.length,Lt=xe+(je?1:-1);je?Lt--:++Lt<ct;)if(Se(pe[Lt],Lt,pe))return Lt;return-1}function se(pe,Se,xe){return Se===Se?Je(pe,Se,xe):re(pe,Ce,xe)}function ye(pe,Se,xe,je){for(var ct=xe-1,Lt=pe.length;++ct<Lt;)if(je(pe[ct],Se))return ct;return-1}function Ce(pe){return pe!==pe}function me(pe,Se){var xe=pe==null?0:pe.length;return xe?at(pe,Se)/xe:Z}function we(pe){return function(Se){return Se==null?e:Se[pe]}}function Oe(pe){return function(Se){return pe==null?e:pe[Se]}}function Le(pe,Se,xe,je,ct){return ct(pe,function(Lt,Xt,Pt){xe=je?(je=!1,Lt):Se(xe,Lt,Xt,Pt)}),xe}function Ue(pe,Se){var xe=pe.length;for(pe.sort(Se);xe--;)pe[xe]=pe[xe].value;return pe}function at(pe,Se){for(var xe,je=-1,ct=pe.length;++je<ct;){var Lt=Se(pe[je]);Lt!==e&&(xe=xe===e?Lt:xe+Lt)}return xe}function Ze(pe,Se){for(var xe=-1,je=Array(pe);++xe<pe;)je[xe]=Se(xe);return je}function tt(pe,Se){return v(Se,function(xe){return[xe,pe[xe]]})}function wn(pe){return pe&&pe.slice(0,Wt(pe)+1).replace($n,"")}function lt(pe){return function(Se){return pe(Se)}}function Sn(pe,Se){return v(Se,function(xe){return pe[xe]})}function _t(pe,Se){return pe.has(Se)}function Rt(pe,Se){for(var xe=-1,je=pe.length;++xe<je&&se(Se,pe[xe],0)>-1;);return xe}function Jn(pe,Se){for(var xe=pe.length;xe--&&se(Se,pe[xe],0)>-1;);return xe}function hr(pe,Se){for(var xe=pe.length,je=0;xe--;)pe[xe]===Se&&++je;return je}var An=Oe(rn),V=Oe(Vt);function X(pe){return"\\"+Nn[pe]}function ie(pe,Se){return pe==null?e:pe[Se]}function oe(pe){return ua.test(pe)}function ge(pe){return wo.test(pe)}function be(pe){for(var Se,xe=[];!(Se=pe.next()).done;)xe.push(Se.value);return xe}function Me(pe){var Se=-1,xe=Array(pe.size);return pe.forEach(function(je,ct){xe[++Se]=[ct,je]}),xe}function Pe(pe,Se){return function(xe){return pe(Se(xe))}}function We(pe,Se){for(var xe=-1,je=pe.length,ct=0,Lt=[];++xe<je;){var Xt=pe[xe];(Xt===Se||Xt===s)&&(pe[xe]=s,Lt[ct++]=xe)}return Lt}function Ve(pe){var Se=-1,xe=Array(pe.size);return pe.forEach(function(je){xe[++Se]=je}),xe}function Qe(pe){var Se=-1,xe=Array(pe.size);return pe.forEach(function(je){xe[++Se]=[je,je]}),xe}function Je(pe,Se,xe){for(var je=xe-1,ct=pe.length;++je<ct;)if(pe[je]===Se)return je;return-1}function kt(pe,Se,xe){for(var je=xe+1;je--;)if(pe[je]===Se)return je;return je}function zt(pe){return oe(pe)?it(pe):z(pe)}function Tt(pe){return oe(pe)?gn(pe):K(pe)}function Wt(pe){for(var Se=pe.length;Se--&&Ar.test(pe.charAt(Se)););return Se}var ft=Oe(xi);function it(pe){for(var Se=si.lastIndex=0;si.test(pe);)++Se;return Se}function gn(pe){return pe.match(si)||[]}function _n(pe){return pe.match(Vn)||[]}var er=function pe(Se){Se=Se==null?cn:qt.defaults(cn.Object(),Se,qt.pick(cn,bi));var xe=Se.Array,je=Se.Date,ct=Se.Error,Lt=Se.Function,Xt=Se.Math,Pt=Se.Object,Nr=Se.RegExp,Si=Se.String,un=Se.TypeError,dr=xe.prototype,bo=Lt.prototype,Fn=Pt.prototype,Ts=Se["__core-js_shared__"],fc=bo.toString,ln=Fn.hasOwnProperty,BM=0,Iy=function(){var i=/[^.]+$/.exec(Ts&&Ts.keys&&Ts.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}(),mc=Fn.toString,zM=fc.call(Pt),jM=cn._,HM=Nr("^"+fc.call(ln).replace(Sr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),vc=Or?Se.Buffer:e,Go=Se.Symbol,yc=Se.Uint8Array,Ey=vc?vc.allocUnsafe:e,wc=Pe(Pt.getPrototypeOf,Pt),Ry=Pt.create,Ly=Fn.propertyIsEnumerable,bc=dr.splice,Oy=Go?Go.isConcatSpreadable:e,Ga=Go?Go.iterator:e,$s=Go?Go.toStringTag:e,xc=function(){try{var i=Ls(Pt,"defineProperty");return i({},"",{}),i}catch{}}(),UM=Se.clearTimeout!==cn.clearTimeout&&Se.clearTimeout,VM=je&&je.now!==cn.Date.now&&je.now,KM=Se.setTimeout!==cn.setTimeout&&Se.setTimeout,Cc=Xt.ceil,kc=Xt.floor,ld=Pt.getOwnPropertySymbols,qM=vc?vc.isBuffer:e,Ny=Se.isFinite,GM=dr.join,YM=Pe(Pt.keys,Pt),lr=Xt.max,Mr=Xt.min,XM=je.now,QM=Se.parseInt,Dy=Xt.random,ZM=dr.reverse,cd=Ls(Se,"DataView"),Ya=Ls(Se,"Map"),ud=Ls(Se,"Promise"),ha=Ls(Se,"Set"),Xa=Ls(Se,"WeakMap"),Qa=Ls(Pt,"create"),Sc=Xa&&new Xa,da={},JM=Os(cd),eI=Os(Ya),tI=Os(ud),nI=Os(ha),rI=Os(Xa),Ac=Go?Go.prototype:e,Za=Ac?Ac.valueOf:e,Py=Ac?Ac.toString:e;function J(i){if(Wn(i)&&!$t(i)&&!(i instanceof Kt)){if(i instanceof Ai)return i;if(ln.call(i,"__wrapped__"))return Fw(i)}return new Ai(i)}var pa=function(){function i(){}return function(m){if(!In(m))return{};if(Ry)return Ry(m);i.prototype=m;var M=new i;return i.prototype=e,M}}();function _c(){}function Ai(i,m){this.__wrapped__=i,this.__actions__=[],this.__chain__=!!m,this.__index__=0,this.__values__=e}J.templateSettings={escape:ii,evaluate:Ua,interpolate:ys,variable:"",imports:{_:J}},J.prototype=_c.prototype,J.prototype.constructor=J,Ai.prototype=pa(_c.prototype),Ai.prototype.constructor=Ai;function Kt(i){this.__wrapped__=i,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=te,this.__views__=[]}function iI(){var i=new Kt(this.__wrapped__);return i.__actions__=Xr(this.__actions__),i.__dir__=this.__dir__,i.__filtered__=this.__filtered__,i.__iteratees__=Xr(this.__iteratees__),i.__takeCount__=this.__takeCount__,i.__views__=Xr(this.__views__),i}function oI(){if(this.__filtered__){var i=new Kt(this);i.__dir__=-1,i.__filtered__=!0}else i=this.clone(),i.__dir__*=-1;return i}function sI(){var i=this.__wrapped__.value(),m=this.__dir__,M=$t(i),j=m<0,G=M?i.length:0,ee=yE(0,G,this.__views__),le=ee.start,de=ee.end,ve=de-le,Ee=j?de:le-1,Re=this.__iteratees__,De=Re.length,Ge=0,rt=Mr(ve,this.__takeCount__);if(!M||!j&&G==ve&&rt==ve)return aw(i,this.__actions__);var vt=[];e:for(;ve--&&Ge<rt;){Ee+=m;for(var Ft=-1,yt=i[Ee];++Ft<De;){var jt=Re[Ft],Gt=jt.iteratee,pi=jt.type,Fr=Gt(yt);if(pi==A)yt=Fr;else if(!Fr){if(pi==_)continue e;break e}}vt[Ge++]=yt}return vt}Kt.prototype=pa(_c.prototype),Kt.prototype.constructor=Kt;function Ms(i){var m=-1,M=i==null?0:i.length;for(this.clear();++m<M;){var j=i[m];this.set(j[0],j[1])}}function aI(){this.__data__=Qa?Qa(null):{},this.size=0}function lI(i){var m=this.has(i)&&delete this.__data__[i];return this.size-=m?1:0,m}function cI(i){var m=this.__data__;if(Qa){var M=m[i];return M===h?e:M}return ln.call(m,i)?m[i]:e}function uI(i){var m=this.__data__;return Qa?m[i]!==e:ln.call(m,i)}function hI(i,m){var M=this.__data__;return this.size+=this.has(i)?0:1,M[i]=Qa&&m===e?h:m,this}Ms.prototype.clear=aI,Ms.prototype.delete=lI,Ms.prototype.get=cI,Ms.prototype.has=uI,Ms.prototype.set=hI;function xo(i){var m=-1,M=i==null?0:i.length;for(this.clear();++m<M;){var j=i[m];this.set(j[0],j[1])}}function dI(){this.__data__=[],this.size=0}function pI(i){var m=this.__data__,M=Tc(m,i);if(M<0)return!1;var j=m.length-1;return M==j?m.pop():bc.call(m,M,1),--this.size,!0}function gI(i){var m=this.__data__,M=Tc(m,i);return M<0?e:m[M][1]}function fI(i){return Tc(this.__data__,i)>-1}function mI(i,m){var M=this.__data__,j=Tc(M,i);return j<0?(++this.size,M.push([i,m])):M[j][1]=m,this}xo.prototype.clear=dI,xo.prototype.delete=pI,xo.prototype.get=gI,xo.prototype.has=fI,xo.prototype.set=mI;function Co(i){var m=-1,M=i==null?0:i.length;for(this.clear();++m<M;){var j=i[m];this.set(j[0],j[1])}}function vI(){this.size=0,this.__data__={hash:new Ms,map:new(Ya||xo),string:new Ms}}function yI(i){var m=Wc(this,i).delete(i);return this.size-=m?1:0,m}function wI(i){return Wc(this,i).get(i)}function bI(i){return Wc(this,i).has(i)}function xI(i,m){var M=Wc(this,i),j=M.size;return M.set(i,m),this.size+=M.size==j?0:1,this}Co.prototype.clear=vI,Co.prototype.delete=yI,Co.prototype.get=wI,Co.prototype.has=bI,Co.prototype.set=xI;function Is(i){var m=-1,M=i==null?0:i.length;for(this.__data__=new Co;++m<M;)this.add(i[m])}function CI(i){return this.__data__.set(i,h),this}function kI(i){return this.__data__.has(i)}Is.prototype.add=Is.prototype.push=CI,Is.prototype.has=kI;function Hi(i){var m=this.__data__=new xo(i);this.size=m.size}function SI(){this.__data__=new xo,this.size=0}function AI(i){var m=this.__data__,M=m.delete(i);return this.size=m.size,M}function _I(i){return this.__data__.get(i)}function TI(i){return this.__data__.has(i)}function $I(i,m){var M=this.__data__;if(M instanceof xo){var j=M.__data__;if(!Ya||j.length<f-1)return j.push([i,m]),this.size=++M.size,this;M=this.__data__=new Co(j)}return M.set(i,m),this.size=M.size,this}Hi.prototype.clear=SI,Hi.prototype.delete=AI,Hi.prototype.get=_I,Hi.prototype.has=TI,Hi.prototype.set=$I;function Fy(i,m){var M=$t(i),j=!M&&Ns(i),G=!M&&!j&&Jo(i),ee=!M&&!j&&!G&&va(i),le=M||j||G||ee,de=le?Ze(i.length,Si):[],ve=de.length;for(var Ee in i)(m||ln.call(i,Ee))&&!(le&&(Ee=="length"||G&&(Ee=="offset"||Ee=="parent")||ee&&(Ee=="buffer"||Ee=="byteLength"||Ee=="byteOffset")||_o(Ee,ve)))&&de.push(Ee);return de}function Wy(i){var m=i.length;return m?i[xd(0,m-1)]:e}function MI(i,m){return Bc(Xr(i),Es(m,0,i.length))}function II(i){return Bc(Xr(i))}function hd(i,m,M){(M!==e&&!Ui(i[m],M)||M===e&&!(m in i))&&ko(i,m,M)}function Ja(i,m,M){var j=i[m];(!(ln.call(i,m)&&Ui(j,M))||M===e&&!(m in i))&&ko(i,m,M)}function Tc(i,m){for(var M=i.length;M--;)if(Ui(i[M][0],m))return M;return-1}function EI(i,m,M,j){return Yo(i,function(G,ee,le){m(j,G,M(G),le)}),j}function By(i,m){return i&&io(m,pr(m),i)}function RI(i,m){return i&&io(m,Zr(m),i)}function ko(i,m,M){m=="__proto__"&&xc?xc(i,m,{configurable:!0,enumerable:!0,value:M,writable:!0}):i[m]=M}function dd(i,m){for(var M=-1,j=m.length,G=xe(j),ee=i==null;++M<j;)G[M]=ee?e:Kd(i,m[M]);return G}function Es(i,m,M){return i===i&&(M!==e&&(i=i<=M?i:M),m!==e&&(i=i>=m?i:m)),i}function _i(i,m,M,j,G,ee){var le,de=m&l,ve=m&u,Ee=m&a;if(M&&(le=G?M(i,j,G,ee):M(i)),le!==e)return le;if(!In(i))return i;var Re=$t(i);if(Re){if(le=bE(i),!de)return Xr(i,le)}else{var De=Ir(i),Ge=De==qe||De==dt;if(Jo(i))return uw(i,de);if(De==fn||De==ue||Ge&&!G){if(le=ve||Ge?{}:Mw(i),!de)return ve?cE(i,RI(le,i)):lE(i,By(le,i))}else{if(!Zt[De])return G?i:{};le=xE(i,De,de)}}ee||(ee=new Hi);var rt=ee.get(i);if(rt)return rt;ee.set(i,le),ib(i)?i.forEach(function(yt){le.add(_i(yt,m,M,yt,i,ee))}):nb(i)&&i.forEach(function(yt,jt){le.set(jt,_i(yt,m,M,jt,i,ee))});var vt=Ee?ve?Rd:Ed:ve?Zr:pr,Ft=Re?e:vt(i);return mr(Ft||i,function(yt,jt){Ft&&(jt=yt,yt=i[jt]),Ja(le,jt,_i(yt,m,M,jt,i,ee))}),le}function LI(i){var m=pr(i);return function(M){return zy(M,i,m)}}function zy(i,m,M){var j=M.length;if(i==null)return!j;for(i=Pt(i);j--;){var G=M[j],ee=m[G],le=i[G];if(le===e&&!(G in i)||!ee(le))return!1}return!0}function jy(i,m,M){if(typeof i!="function")throw new un(y);return sl(function(){i.apply(e,M)},m)}function el(i,m,M,j){var G=-1,ee=ci,le=!0,de=i.length,ve=[],Ee=m.length;if(!de)return ve;M&&(m=v(m,lt(M))),j?(ee=ui,le=!1):m.length>=f&&(ee=_t,le=!1,m=new Is(m));e:for(;++G<de;){var Re=i[G],De=M==null?Re:M(Re);if(Re=j||Re!==0?Re:0,le&&De===De){for(var Ge=Ee;Ge--;)if(m[Ge]===De)continue e;ve.push(Re)}else ee(m,De,j)||ve.push(Re)}return ve}var Yo=fw(ro),Hy=fw(gd,!0);function OI(i,m){var M=!0;return Yo(i,function(j,G,ee){return M=!!m(j,G,ee),M}),M}function $c(i,m,M){for(var j=-1,G=i.length;++j<G;){var ee=i[j],le=m(ee);if(le!=null&&(de===e?le===le&&!di(le):M(le,de)))var de=le,ve=ee}return ve}function NI(i,m,M,j){var G=i.length;for(M=Nt(M),M<0&&(M=-M>G?0:G+M),j=j===e||j>G?G:Nt(j),j<0&&(j+=G),j=M>j?0:sb(j);M<j;)i[M++]=m;return i}function Uy(i,m){var M=[];return Yo(i,function(j,G,ee){m(j,G,ee)&&M.push(j)}),M}function yr(i,m,M,j,G){var ee=-1,le=i.length;for(M||(M=kE),G||(G=[]);++ee<le;){var de=i[ee];m>0&&M(de)?m>1?yr(de,m-1,M,j,G):T(G,de):j||(G[G.length]=de)}return G}var pd=mw(),Vy=mw(!0);function ro(i,m){return i&&pd(i,m,pr)}function gd(i,m){return i&&Vy(i,m,pr)}function Mc(i,m){return $r(m,function(M){return To(i[M])})}function Rs(i,m){m=Qo(m,i);for(var M=0,j=m.length;i!=null&&M<j;)i=i[oo(m[M++])];return M&&M==j?i:e}function Ky(i,m,M){var j=m(i);return $t(i)?j:T(j,M(i))}function Dr(i){return i==null?i===e?bt:tn:$s&&$s in Pt(i)?vE(i):IE(i)}function fd(i,m){return i>m}function DI(i,m){return i!=null&&ln.call(i,m)}function PI(i,m){return i!=null&&m in Pt(i)}function FI(i,m,M){return i>=Mr(m,M)&&i<lr(m,M)}function md(i,m,M){for(var j=M?ui:ci,G=i[0].length,ee=i.length,le=ee,de=xe(ee),ve=1/0,Ee=[];le--;){var Re=i[le];le&&m&&(Re=v(Re,lt(m))),ve=Mr(Re.length,ve),de[le]=!M&&(m||G>=120&&Re.length>=120)?new Is(le&&Re):e}Re=i[0];var De=-1,Ge=de[0];e:for(;++De<G&&Ee.length<ve;){var rt=Re[De],vt=m?m(rt):rt;if(rt=M||rt!==0?rt:0,!(Ge?_t(Ge,vt):j(Ee,vt,M))){for(le=ee;--le;){var Ft=de[le];if(!(Ft?_t(Ft,vt):j(i[le],vt,M)))continue e}Ge&&Ge.push(vt),Ee.push(rt)}}return Ee}function WI(i,m,M,j){return ro(i,function(G,ee,le){m(j,M(G),ee,le)}),j}function tl(i,m,M){m=Qo(m,i),i=Lw(i,m);var j=i==null?i:i[oo($i(m))];return j==null?e:cr(j,i,M)}function qy(i){return Wn(i)&&Dr(i)==ue}function BI(i){return Wn(i)&&Dr(i)==ze}function zI(i){return Wn(i)&&Dr(i)==$e}function nl(i,m,M,j,G){return i===m?!0:i==null||m==null||!Wn(i)&&!Wn(m)?i!==i&&m!==m:jI(i,m,M,j,nl,G)}function jI(i,m,M,j,G,ee){var le=$t(i),de=$t(m),ve=le?ce:Ir(i),Ee=de?ce:Ir(m);ve=ve==ue?fn:ve,Ee=Ee==ue?fn:Ee;var Re=ve==fn,De=Ee==fn,Ge=ve==Ee;if(Ge&&Jo(i)){if(!Jo(m))return!1;le=!0,Re=!1}if(Ge&&!Re)return ee||(ee=new Hi),le||va(i)?_w(i,m,M,j,G,ee):fE(i,m,ve,M,j,G,ee);if(!(M&o)){var rt=Re&&ln.call(i,"__wrapped__"),vt=De&&ln.call(m,"__wrapped__");if(rt||vt){var Ft=rt?i.value():i,yt=vt?m.value():m;return ee||(ee=new Hi),G(Ft,yt,M,j,ee)}}return Ge?(ee||(ee=new Hi),mE(i,m,M,j,G,ee)):!1}function HI(i){return Wn(i)&&Ir(i)==nt}function vd(i,m,M,j){var G=M.length,ee=G,le=!j;if(i==null)return!ee;for(i=Pt(i);G--;){var de=M[G];if(le&&de[2]?de[1]!==i[de[0]]:!(de[0]in i))return!1}for(;++G<ee;){de=M[G];var ve=de[0],Ee=i[ve],Re=de[1];if(le&&de[2]){if(Ee===e&&!(ve in i))return!1}else{var De=new Hi;if(j)var Ge=j(Ee,Re,ve,i,m,De);if(!(Ge===e?nl(Re,Ee,o|c,j,De):Ge))return!1}}return!0}function Gy(i){if(!In(i)||AE(i))return!1;var m=To(i)?HM:_r;return m.test(Os(i))}function UI(i){return Wn(i)&&Dr(i)==mn}function VI(i){return Wn(i)&&Ir(i)==Rn}function KI(i){return Wn(i)&&Kc(i.length)&&!!nn[Dr(i)]}function Yy(i){return typeof i=="function"?i:i==null?Jr:typeof i=="object"?$t(i)?Zy(i[0],i[1]):Qy(i):vb(i)}function yd(i){if(!ol(i))return YM(i);var m=[];for(var M in Pt(i))ln.call(i,M)&&M!="constructor"&&m.push(M);return m}function qI(i){if(!In(i))return ME(i);var m=ol(i),M=[];for(var j in i)j=="constructor"&&(m||!ln.call(i,j))||M.push(j);return M}function wd(i,m){return i<m}function Xy(i,m){var M=-1,j=Qr(i)?xe(i.length):[];return Yo(i,function(G,ee,le){j[++M]=m(G,ee,le)}),j}function Qy(i){var m=Od(i);return m.length==1&&m[0][2]?Ew(m[0][0],m[0][1]):function(M){return M===i||vd(M,i,m)}}function Zy(i,m){return Dd(i)&&Iw(m)?Ew(oo(i),m):function(M){var j=Kd(M,i);return j===e&&j===m?qd(M,i):nl(m,j,o|c)}}function Ic(i,m,M,j,G){i!==m&&pd(m,function(ee,le){if(G||(G=new Hi),In(ee))GI(i,m,le,M,Ic,j,G);else{var de=j?j(Fd(i,le),ee,le+"",i,m,G):e;de===e&&(de=ee),hd(i,le,de)}},Zr)}function GI(i,m,M,j,G,ee,le){var de=Fd(i,M),ve=Fd(m,M),Ee=le.get(ve);if(Ee){hd(i,M,Ee);return}var Re=ee?ee(de,ve,M+"",i,m,le):e,De=Re===e;if(De){var Ge=$t(ve),rt=!Ge&&Jo(ve),vt=!Ge&&!rt&&va(ve);Re=ve,Ge||rt||vt?$t(de)?Re=de:Kn(de)?Re=Xr(de):rt?(De=!1,Re=uw(ve,!0)):vt?(De=!1,Re=hw(ve,!0)):Re=[]:al(ve)||Ns(ve)?(Re=de,Ns(de)?Re=ab(de):(!In(de)||To(de))&&(Re=Mw(ve))):De=!1}De&&(le.set(ve,Re),G(Re,ve,j,ee,le),le.delete(ve)),hd(i,M,Re)}function Jy(i,m){var M=i.length;if(M)return m+=m<0?M:0,_o(m,M)?i[m]:e}function ew(i,m,M){m.length?m=v(m,function(ee){return $t(ee)?function(le){return Rs(le,ee.length===1?ee[0]:ee)}:ee}):m=[Jr];var j=-1;m=v(m,lt(mt()));var G=Xy(i,function(ee,le,de){var ve=v(m,function(Ee){return Ee(ee)});return{criteria:ve,index:++j,value:ee}});return Ue(G,function(ee,le){return aE(ee,le,M)})}function YI(i,m){return tw(i,m,function(M,j){return qd(i,j)})}function tw(i,m,M){for(var j=-1,G=m.length,ee={};++j<G;){var le=m[j],de=Rs(i,le);M(de,le)&&rl(ee,Qo(le,i),de)}return ee}function XI(i){return function(m){return Rs(m,i)}}function bd(i,m,M,j){var G=j?ye:se,ee=-1,le=m.length,de=i;for(i===m&&(m=Xr(m)),M&&(de=v(i,lt(M)));++ee<le;)for(var ve=0,Ee=m[ee],Re=M?M(Ee):Ee;(ve=G(de,Re,ve,j))>-1;)de!==i&&bc.call(de,ve,1),bc.call(i,ve,1);return i}function nw(i,m){for(var M=i?m.length:0,j=M-1;M--;){var G=m[M];if(M==j||G!==ee){var ee=G;_o(G)?bc.call(i,G,1):Sd(i,G)}}return i}function xd(i,m){return i+kc(Dy()*(m-i+1))}function QI(i,m,M,j){for(var G=-1,ee=lr(Cc((m-i)/(M||1)),0),le=xe(ee);ee--;)le[j?ee:++G]=i,i+=M;return le}function Cd(i,m){var M="";if(!i||m<1||m>U)return M;do m%2&&(M+=i),m=kc(m/2),m&&(i+=i);while(m);return M}function Bt(i,m){return Wd(Rw(i,m,Jr),i+"")}function ZI(i){return Wy(ya(i))}function JI(i,m){var M=ya(i);return Bc(M,Es(m,0,M.length))}function rl(i,m,M,j){if(!In(i))return i;m=Qo(m,i);for(var G=-1,ee=m.length,le=ee-1,de=i;de!=null&&++G<ee;){var ve=oo(m[G]),Ee=M;if(ve==="__proto__"||ve==="constructor"||ve==="prototype")return i;if(G!=le){var Re=de[ve];Ee=j?j(Re,ve,de):e,Ee===e&&(Ee=In(Re)?Re:_o(m[G+1])?[]:{})}Ja(de,ve,Ee),de=de[ve]}return i}var rw=Sc?function(i,m){return Sc.set(i,m),i}:Jr,eE=xc?function(i,m){return xc(i,"toString",{configurable:!0,enumerable:!1,value:Yd(m),writable:!0})}:Jr;function tE(i){return Bc(ya(i))}function Ti(i,m,M){var j=-1,G=i.length;m<0&&(m=-m>G?0:G+m),M=M>G?G:M,M<0&&(M+=G),G=m>M?0:M-m>>>0,m>>>=0;for(var ee=xe(G);++j<G;)ee[j]=i[j+m];return ee}function nE(i,m){var M;return Yo(i,function(j,G,ee){return M=m(j,G,ee),!M}),!!M}function Ec(i,m,M){var j=0,G=i==null?j:i.length;if(typeof m=="number"&&m===m&&G<=ne){for(;j<G;){var ee=j+G>>>1,le=i[ee];le!==null&&!di(le)&&(M?le<=m:le<m)?j=ee+1:G=ee}return G}return kd(i,m,Jr,M)}function kd(i,m,M,j){var G=0,ee=i==null?0:i.length;if(ee===0)return 0;m=M(m);for(var le=m!==m,de=m===null,ve=di(m),Ee=m===e;G<ee;){var Re=kc((G+ee)/2),De=M(i[Re]),Ge=De!==e,rt=De===null,vt=De===De,Ft=di(De);if(le)var yt=j||vt;else Ee?yt=vt&&(j||Ge):de?yt=vt&&Ge&&(j||!rt):ve?yt=vt&&Ge&&!rt&&(j||!Ft):rt||Ft?yt=!1:yt=j?De<=m:De<m;yt?G=Re+1:ee=Re}return Mr(ee,he)}function iw(i,m){for(var M=-1,j=i.length,G=0,ee=[];++M<j;){var le=i[M],de=m?m(le):le;if(!M||!Ui(de,ve)){var ve=de;ee[G++]=le===0?0:le}}return ee}function ow(i){return typeof i=="number"?i:di(i)?Z:+i}function hi(i){if(typeof i=="string")return i;if($t(i))return v(i,hi)+"";if(di(i))return Py?Py.call(i):"";var m=i+"";return m=="0"&&1/i==-B?"-0":m}function Xo(i,m,M){var j=-1,G=ci,ee=i.length,le=!0,de=[],ve=de;if(M)le=!1,G=ui;else if(ee>=f){var Ee=m?null:pE(i);if(Ee)return Ve(Ee);le=!1,G=_t,ve=new Is}else ve=m?[]:de;e:for(;++j<ee;){var Re=i[j],De=m?m(Re):Re;if(Re=M||Re!==0?Re:0,le&&De===De){for(var Ge=ve.length;Ge--;)if(ve[Ge]===De)continue e;m&&ve.push(De),de.push(Re)}else G(ve,De,M)||(ve!==de&&ve.push(De),de.push(Re))}return de}function Sd(i,m){return m=Qo(m,i),i=Lw(i,m),i==null||delete i[oo($i(m))]}function sw(i,m,M,j){return rl(i,m,M(Rs(i,m)),j)}function Rc(i,m,M,j){for(var G=i.length,ee=j?G:-1;(j?ee--:++ee<G)&&m(i[ee],ee,i););return M?Ti(i,j?0:ee,j?ee+1:G):Ti(i,j?ee+1:0,j?G:ee)}function aw(i,m){var M=i;return M instanceof Kt&&(M=M.value()),k(m,function(j,G){return G.func.apply(G.thisArg,T([j],G.args))},M)}function Ad(i,m,M){var j=i.length;if(j<2)return j?Xo(i[0]):[];for(var G=-1,ee=xe(j);++G<j;)for(var le=i[G],de=-1;++de<j;)de!=G&&(ee[G]=el(ee[G]||le,i[de],m,M));return Xo(yr(ee,1),m,M)}function lw(i,m,M){for(var j=-1,G=i.length,ee=m.length,le={};++j<G;){var de=j<ee?m[j]:e;M(le,i[j],de)}return le}function _d(i){return Kn(i)?i:[]}function Td(i){return typeof i=="function"?i:Jr}function Qo(i,m){return $t(i)?i:Dd(i,m)?[i]:Pw(sn(i))}var rE=Bt;function Zo(i,m,M){var j=i.length;return M=M===e?j:M,!m&&M>=j?i:Ti(i,m,M)}var cw=UM||function(i){return cn.clearTimeout(i)};function uw(i,m){if(m)return i.slice();var M=i.length,j=Ey?Ey(M):new i.constructor(M);return i.copy(j),j}function $d(i){var m=new i.constructor(i.byteLength);return new yc(m).set(new yc(i)),m}function iE(i,m){var M=m?$d(i.buffer):i.buffer;return new i.constructor(M,i.byteOffset,i.byteLength)}function oE(i){var m=new i.constructor(i.source,oi.exec(i));return m.lastIndex=i.lastIndex,m}function sE(i){return Za?Pt(Za.call(i)):{}}function hw(i,m){var M=m?$d(i.buffer):i.buffer;return new i.constructor(M,i.byteOffset,i.length)}function dw(i,m){if(i!==m){var M=i!==e,j=i===null,G=i===i,ee=di(i),le=m!==e,de=m===null,ve=m===m,Ee=di(m);if(!de&&!Ee&&!ee&&i>m||ee&&le&&ve&&!de&&!Ee||j&&le&&ve||!M&&ve||!G)return 1;if(!j&&!ee&&!Ee&&i<m||Ee&&M&&G&&!j&&!ee||de&&M&&G||!le&&G||!ve)return-1}return 0}function aE(i,m,M){for(var j=-1,G=i.criteria,ee=m.criteria,le=G.length,de=M.length;++j<le;){var ve=dw(G[j],ee[j]);if(ve){if(j>=de)return ve;var Ee=M[j];return ve*(Ee=="desc"?-1:1)}}return i.index-m.index}function pw(i,m,M,j){for(var G=-1,ee=i.length,le=M.length,de=-1,ve=m.length,Ee=lr(ee-le,0),Re=xe(ve+Ee),De=!j;++de<ve;)Re[de]=m[de];for(;++G<le;)(De||G<ee)&&(Re[M[G]]=i[G]);for(;Ee--;)Re[de++]=i[G++];return Re}function gw(i,m,M,j){for(var G=-1,ee=i.length,le=-1,de=M.length,ve=-1,Ee=m.length,Re=lr(ee-de,0),De=xe(Re+Ee),Ge=!j;++G<Re;)De[G]=i[G];for(var rt=G;++ve<Ee;)De[rt+ve]=m[ve];for(;++le<de;)(Ge||G<ee)&&(De[rt+M[le]]=i[G++]);return De}function Xr(i,m){var M=-1,j=i.length;for(m||(m=xe(j));++M<j;)m[M]=i[M];return m}function io(i,m,M,j){var G=!M;M||(M={});for(var ee=-1,le=m.length;++ee<le;){var de=m[ee],ve=j?j(M[de],i[de],de,M,i):e;ve===e&&(ve=i[de]),G?ko(M,de,ve):Ja(M,de,ve)}return M}function lE(i,m){return io(i,Nd(i),m)}function cE(i,m){return io(i,Tw(i),m)}function Lc(i,m){return function(M,j){var G=$t(M)?ur:EI,ee=m?m():{};return G(M,i,mt(j,2),ee)}}function ga(i){return Bt(function(m,M){var j=-1,G=M.length,ee=G>1?M[G-1]:e,le=G>2?M[2]:e;for(ee=i.length>3&&typeof ee=="function"?(G--,ee):e,le&&Pr(M[0],M[1],le)&&(ee=G<3?e:ee,G=1),m=Pt(m);++j<G;){var de=M[j];de&&i(m,de,j,ee)}return m})}function fw(i,m){return function(M,j){if(M==null)return M;if(!Qr(M))return i(M,j);for(var G=M.length,ee=m?G:-1,le=Pt(M);(m?ee--:++ee<G)&&j(le[ee],ee,le)!==!1;);return M}}function mw(i){return function(m,M,j){for(var G=-1,ee=Pt(m),le=j(m),de=le.length;de--;){var ve=le[i?de:++G];if(M(ee[ve],ve,ee)===!1)break}return m}}function uE(i,m,M){var j=m&d,G=il(i);function ee(){var le=this&&this!==cn&&this instanceof ee?G:i;return le.apply(j?M:this,arguments)}return ee}function vw(i){return function(m){m=sn(m);var M=oe(m)?Tt(m):e,j=M?M[0]:m.charAt(0),G=M?Zo(M,1).join(""):m.slice(1);return j[i]()+G}}function fa(i){return function(m){return k(fb(gb(m).replace(Mn,"")),i,"")}}function il(i){return function(){var m=arguments;switch(m.length){case 0:return new i;case 1:return new i(m[0]);case 2:return new i(m[0],m[1]);case 3:return new i(m[0],m[1],m[2]);case 4:return new i(m[0],m[1],m[2],m[3]);case 5:return new i(m[0],m[1],m[2],m[3],m[4]);case 6:return new i(m[0],m[1],m[2],m[3],m[4],m[5]);case 7:return new i(m[0],m[1],m[2],m[3],m[4],m[5],m[6])}var M=pa(i.prototype),j=i.apply(M,m);return In(j)?j:M}}function hE(i,m,M){var j=il(i);function G(){for(var ee=arguments.length,le=xe(ee),de=ee,ve=ma(G);de--;)le[de]=arguments[de];var Ee=ee<3&&le[0]!==ve&&le[ee-1]!==ve?[]:We(le,ve);if(ee-=Ee.length,ee<M)return Cw(i,m,Oc,G.placeholder,e,le,Ee,e,e,M-ee);var Re=this&&this!==cn&&this instanceof G?j:i;return cr(Re,this,le)}return G}function yw(i){return function(m,M,j){var G=Pt(m);if(!Qr(m)){var ee=mt(M,3);m=pr(m),M=function(de){return ee(G[de],de,G)}}var le=i(m,M,j);return le>-1?G[ee?m[le]:le]:e}}function ww(i){return Ao(function(m){var M=m.length,j=M,G=Ai.prototype.thru;for(i&&m.reverse();j--;){var ee=m[j];if(typeof ee!="function")throw new un(y);if(G&&!le&&Fc(ee)=="wrapper")var le=new Ai([],!0)}for(j=le?j:M;++j<M;){ee=m[j];var de=Fc(ee),ve=de=="wrapper"?Ld(ee):e;ve&&Pd(ve[0])&&ve[1]==(R|E|S|L)&&!ve[4].length&&ve[9]==1?le=le[Fc(ve[0])].apply(le,ve[3]):le=ee.length==1&&Pd(ee)?le[de]():le.thru(ee)}return function(){var Ee=arguments,Re=Ee[0];if(le&&Ee.length==1&&$t(Re))return le.plant(Re).value();for(var De=0,Ge=M?m[De].apply(this,Ee):Re;++De<M;)Ge=m[De].call(this,Ge);return Ge}})}function Oc(i,m,M,j,G,ee,le,de,ve,Ee){var Re=m&R,De=m&d,Ge=m&w,rt=m&(E|$),vt=m&P,Ft=Ge?e:il(i);function yt(){for(var jt=arguments.length,Gt=xe(jt),pi=jt;pi--;)Gt[pi]=arguments[pi];if(rt)var Fr=ma(yt),gi=hr(Gt,Fr);if(j&&(Gt=pw(Gt,j,G,rt)),ee&&(Gt=gw(Gt,ee,le,rt)),jt-=gi,rt&&jt<Ee){var qn=We(Gt,Fr);return Cw(i,m,Oc,yt.placeholder,M,Gt,qn,de,ve,Ee-jt)}var Vi=De?M:this,Mo=Ge?Vi[i]:i;return jt=Gt.length,de?Gt=EE(Gt,de):vt&&jt>1&&Gt.reverse(),Re&&ve<jt&&(Gt.length=ve),this&&this!==cn&&this instanceof yt&&(Mo=Ft||il(Mo)),Mo.apply(Vi,Gt)}return yt}function bw(i,m){return function(M,j){return WI(M,i,m(j),{})}}function Nc(i,m){return function(M,j){var G;if(M===e&&j===e)return m;if(M!==e&&(G=M),j!==e){if(G===e)return j;typeof M=="string"||typeof j=="string"?(M=hi(M),j=hi(j)):(M=ow(M),j=ow(j)),G=i(M,j)}return G}}function Md(i){return Ao(function(m){return m=v(m,lt(mt())),Bt(function(M){var j=this;return i(m,function(G){return cr(G,j,M)})})})}function Dc(i,m){m=m===e?" ":hi(m);var M=m.length;if(M<2)return M?Cd(m,i):m;var j=Cd(m,Cc(i/zt(m)));return oe(m)?Zo(Tt(j),0,i).join(""):j.slice(0,i)}function dE(i,m,M,j){var G=m&d,ee=il(i);function le(){for(var de=-1,ve=arguments.length,Ee=-1,Re=j.length,De=xe(Re+ve),Ge=this&&this!==cn&&this instanceof le?ee:i;++Ee<Re;)De[Ee]=j[Ee];for(;ve--;)De[Ee++]=arguments[++de];return cr(Ge,G?M:this,De)}return le}function xw(i){return function(m,M,j){return j&&typeof j!="number"&&Pr(m,M,j)&&(M=j=e),m=$o(m),M===e?(M=m,m=0):M=$o(M),j=j===e?m<M?1:-1:$o(j),QI(m,M,j,i)}}function Pc(i){return function(m,M){return typeof m=="string"&&typeof M=="string"||(m=Mi(m),M=Mi(M)),i(m,M)}}function Cw(i,m,M,j,G,ee,le,de,ve,Ee){var Re=m&E,De=Re?le:e,Ge=Re?e:le,rt=Re?ee:e,vt=Re?e:ee;m|=Re?S:C,m&=~(Re?C:S),m&x||(m&=-4);var Ft=[i,m,G,rt,De,vt,Ge,de,ve,Ee],yt=M.apply(e,Ft);return Pd(i)&&Ow(yt,Ft),yt.placeholder=j,Nw(yt,i,m)}function Id(i){var m=Xt[i];return function(M,j){if(M=Mi(M),j=j==null?0:Mr(Nt(j),292),j&&Ny(M)){var G=(sn(M)+"e").split("e"),ee=m(G[0]+"e"+(+G[1]+j));return G=(sn(ee)+"e").split("e"),+(G[0]+"e"+(+G[1]-j))}return m(M)}}var pE=ha&&1/Ve(new ha([,-0]))[1]==B?function(i){return new ha(i)}:Zd;function kw(i){return function(m){var M=Ir(m);return M==nt?Me(m):M==Rn?Qe(m):tt(m,i(m))}}function So(i,m,M,j,G,ee,le,de){var ve=m&w;if(!ve&&typeof i!="function")throw new un(y);var Ee=j?j.length:0;if(Ee||(m&=-97,j=G=e),le=le===e?le:lr(Nt(le),0),de=de===e?de:Nt(de),Ee-=G?G.length:0,m&C){var Re=j,De=G;j=G=e}var Ge=ve?e:Ld(i),rt=[i,m,M,j,G,Re,De,ee,le,de];if(Ge&&$E(rt,Ge),i=rt[0],m=rt[1],M=rt[2],j=rt[3],G=rt[4],de=rt[9]=rt[9]===e?ve?0:i.length:lr(rt[9]-Ee,0),!de&&m&(E|$)&&(m&=-25),!m||m==d)var vt=uE(i,m,M);else m==E||m==$?vt=hE(i,m,de):(m==S||m==(d|S))&&!G.length?vt=dE(i,m,M,j):vt=Oc.apply(e,rt);var Ft=Ge?rw:Ow;return Nw(Ft(vt,rt),i,m)}function Sw(i,m,M,j){return i===e||Ui(i,Fn[M])&&!ln.call(j,M)?m:i}function Aw(i,m,M,j,G,ee){return In(i)&&In(m)&&(ee.set(m,i),Ic(i,m,e,Aw,ee),ee.delete(m)),i}function gE(i){return al(i)?e:i}function _w(i,m,M,j,G,ee){var le=M&o,de=i.length,ve=m.length;if(de!=ve&&!(le&&ve>de))return!1;var Ee=ee.get(i),Re=ee.get(m);if(Ee&&Re)return Ee==m&&Re==i;var De=-1,Ge=!0,rt=M&c?new Is:e;for(ee.set(i,m),ee.set(m,i);++De<de;){var vt=i[De],Ft=m[De];if(j)var yt=le?j(Ft,vt,De,m,i,ee):j(vt,Ft,De,i,m,ee);if(yt!==e){if(yt)continue;Ge=!1;break}if(rt){if(!W(m,function(jt,Gt){if(!_t(rt,Gt)&&(vt===jt||G(vt,jt,M,j,ee)))return rt.push(Gt)})){Ge=!1;break}}else if(!(vt===Ft||G(vt,Ft,M,j,ee))){Ge=!1;break}}return ee.delete(i),ee.delete(m),Ge}function fE(i,m,M,j,G,ee,le){switch(M){case Xe:if(i.byteLength!=m.byteLength||i.byteOffset!=m.byteOffset)return!1;i=i.buffer,m=m.buffer;case ze:return!(i.byteLength!=m.byteLength||!ee(new yc(i),new yc(m)));case Te:case $e:case pt:return Ui(+i,+m);case Ye:return i.name==m.name&&i.message==m.message;case mn:case Ln:return i==m+"";case nt:var de=Me;case Rn:var ve=j&o;if(de||(de=Ve),i.size!=m.size&&!ve)return!1;var Ee=le.get(i);if(Ee)return Ee==m;j|=c,le.set(i,m);var Re=_w(de(i),de(m),j,G,ee,le);return le.delete(i),Re;case Qn:if(Za)return Za.call(i)==Za.call(m)}return!1}function mE(i,m,M,j,G,ee){var le=M&o,de=Ed(i),ve=de.length,Ee=Ed(m),Re=Ee.length;if(ve!=Re&&!le)return!1;for(var De=ve;De--;){var Ge=de[De];if(!(le?Ge in m:ln.call(m,Ge)))return!1}var rt=ee.get(i),vt=ee.get(m);if(rt&&vt)return rt==m&&vt==i;var Ft=!0;ee.set(i,m),ee.set(m,i);for(var yt=le;++De<ve;){Ge=de[De];var jt=i[Ge],Gt=m[Ge];if(j)var pi=le?j(Gt,jt,Ge,m,i,ee):j(jt,Gt,Ge,i,m,ee);if(!(pi===e?jt===Gt||G(jt,Gt,M,j,ee):pi)){Ft=!1;break}yt||(yt=Ge=="constructor")}if(Ft&&!yt){var Fr=i.constructor,gi=m.constructor;Fr!=gi&&"constructor"in i&&"constructor"in m&&!(typeof Fr=="function"&&Fr instanceof Fr&&typeof gi=="function"&&gi instanceof gi)&&(Ft=!1)}return ee.delete(i),ee.delete(m),Ft}function Ao(i){return Wd(Rw(i,e,zw),i+"")}function Ed(i){return Ky(i,pr,Nd)}function Rd(i){return Ky(i,Zr,Tw)}var Ld=Sc?function(i){return Sc.get(i)}:Zd;function Fc(i){for(var m=i.name+"",M=da[m],j=ln.call(da,m)?M.length:0;j--;){var G=M[j],ee=G.func;if(ee==null||ee==i)return G.name}return m}function ma(i){var m=ln.call(J,"placeholder")?J:i;return m.placeholder}function mt(){var i=J.iteratee||Xd;return i=i===Xd?Yy:i,arguments.length?i(arguments[0],arguments[1]):i}function Wc(i,m){var M=i.__data__;return SE(m)?M[typeof m=="string"?"string":"hash"]:M.map}function Od(i){for(var m=pr(i),M=m.length;M--;){var j=m[M],G=i[j];m[M]=[j,G,Iw(G)]}return m}function Ls(i,m){var M=ie(i,m);return Gy(M)?M:e}function vE(i){var m=ln.call(i,$s),M=i[$s];try{i[$s]=e;var j=!0}catch{}var G=mc.call(i);return j&&(m?i[$s]=M:delete i[$s]),G}var Nd=ld?function(i){return i==null?[]:(i=Pt(i),$r(ld(i),function(m){return Ly.call(i,m)}))}:Jd,Tw=ld?function(i){for(var m=[];i;)T(m,Nd(i)),i=wc(i);return m}:Jd,Ir=Dr;(cd&&Ir(new cd(new ArrayBuffer(1)))!=Xe||Ya&&Ir(new Ya)!=nt||ud&&Ir(ud.resolve())!=Yt||ha&&Ir(new ha)!=Rn||Xa&&Ir(new Xa)!=He)&&(Ir=function(i){var m=Dr(i),M=m==fn?i.constructor:e,j=M?Os(M):"";if(j)switch(j){case JM:return Xe;case eI:return nt;case tI:return Yt;case nI:return Rn;case rI:return He}return m});function yE(i,m,M){for(var j=-1,G=M.length;++j<G;){var ee=M[j],le=ee.size;switch(ee.type){case"drop":i+=le;break;case"dropRight":m-=le;break;case"take":m=Mr(m,i+le);break;case"takeRight":i=lr(i,m-le);break}}return{start:i,end:m}}function wE(i){var m=i.match(Wi);return m?m[1].split(ws):[]}function $w(i,m,M){m=Qo(m,i);for(var j=-1,G=m.length,ee=!1;++j<G;){var le=oo(m[j]);if(!(ee=i!=null&&M(i,le)))break;i=i[le]}return ee||++j!=G?ee:(G=i==null?0:i.length,!!G&&Kc(G)&&_o(le,G)&&($t(i)||Ns(i)))}function bE(i){var m=i.length,M=new i.constructor(m);return m&&typeof i[0]=="string"&&ln.call(i,"index")&&(M.index=i.index,M.input=i.input),M}function Mw(i){return typeof i.constructor=="function"&&!ol(i)?pa(wc(i)):{}}function xE(i,m,M){var j=i.constructor;switch(m){case ze:return $d(i);case Te:case $e:return new j(+i);case Xe:return iE(i,M);case gt:case At:case St:case Dt:case Ot:case ut:case xt:case kn:case kr:return hw(i,M);case nt:return new j;case pt:case Ln:return new j(i);case mn:return oE(i);case Rn:return new j;case Qn:return sE(i)}}function CE(i,m){var M=m.length;if(!M)return i;var j=M-1;return m[j]=(M>1?"& ":"")+m[j],m=m.join(M>2?", ":" "),i.replace(Qi,`{
|
1469
1469
|
/* [wrapped with `+m+`] */
|
1470
|
-
`)}function kE(i){return $t(i)||Ns(i)||!!(Oy&&i&&i[Oy])}function _o(i,m){var M=typeof i;return m=m??U,!!m&&(M=="number"||M!="symbol"&&mn.test(i))&&i>-1&&i%1==0&&i<m}function Pr(i,m,M){if(!Mn(M))return!1;var j=typeof m;return(j=="number"?Qr(M)&&_o(m,M.length):j=="string"&&m in M)?Ui(M[m],i):!1}function Dd(i,m){if($t(i))return!1;var M=typeof i;return M=="number"||M=="symbol"||M=="boolean"||i==null||di(i)?!0:Pi.test(i)||!ra.test(i)||m!=null&&i in Pt(m)}function SE(i){var m=typeof i;return m=="string"||m=="number"||m=="symbol"||m=="boolean"?i!=="__proto__":i===null}function Pd(i){var m=Fc(i),M=J[m];if(typeof M!="function"||!(m in Kt.prototype))return!1;if(i===M)return!0;var j=Ld(M);return!!j&&i===j[0]}function AE(i){return!!Iy&&Iy in i}var _E=Ts?To:ep;function ol(i){var m=i&&i.constructor,M=typeof m=="function"&&m.prototype||Pn;return i===M}function Iw(i){return i===i&&!Mn(i)}function Ew(i,m){return function(M){return M==null?!1:M[i]===m&&(m!==e||i in Pt(M))}}function TE(i){var m=Uc(i,function(j){return M.size===g&&M.clear(),j}),M=m.cache;return m}function $E(i,m){var M=i[1],j=m[1],G=M|j,ee=G<(d|w|R),le=j==R&&M==E||j==R&&M==L&&i[7].length<=m[8]||j==(R|L)&&m[7].length<=m[8]&&M==E;if(!(ee||le))return i;j&d&&(i[2]=m[2],G|=M&d?0:x);var de=m[3];if(de){var ve=i[3];i[3]=ve?pw(ve,de,m[4]):de,i[4]=ve?We(i[3],s):m[4]}return de=m[5],de&&(ve=i[5],i[5]=ve?gw(ve,de,m[6]):de,i[6]=ve?We(i[5],s):m[6]),de=m[7],de&&(i[7]=de),j&R&&(i[8]=i[8]==null?m[8]:Mr(i[8],m[8])),i[9]==null&&(i[9]=m[9]),i[0]=m[0],i[1]=G,i}function ME(i){var m=[];if(i!=null)for(var M in Pt(i))m.push(M);return m}function IE(i){return mc.call(i)}function Rw(i,m,M){return m=ar(m===e?i.length-1:m,0),function(){for(var j=arguments,G=-1,ee=ar(j.length-m,0),le=xe(ee);++G<ee;)le[G]=j[m+G];G=-1;for(var de=xe(m+1);++G<m;)de[G]=j[G];return de[m]=M(le),lr(i,this,de)}}function Lw(i,m){return m.length<2?i:Rs(i,Ti(m,0,-1))}function EE(i,m){for(var M=i.length,j=Mr(m.length,M),G=Xr(i);j--;){var ee=m[j];i[j]=_o(ee,M)?G[ee]:e}return i}function Fd(i,m){if(!(m==="constructor"&&typeof i[m]=="function")&&m!="__proto__")return i[m]}var Ow=Dw(rw),sl=KM||function(i,m){return cn.setTimeout(i,m)},Wd=Dw(eE);function Nw(i,m,M){var j=m+"";return Wd(i,CE(j,RE(wE(j),M)))}function Dw(i){var m=0,M=0;return function(){var j=XM(),G=O-(j-M);if(M=j,G>0){if(++m>=F)return arguments[0]}else m=0;return i.apply(e,arguments)}}function Bc(i,m){var M=-1,j=i.length,G=j-1;for(m=m===e?j:m;++M<m;){var ee=xd(M,G),le=i[ee];i[ee]=i[M],i[M]=le}return i.length=m,i}var Pw=TE(function(i){var m=[];return i.charCodeAt(0)===46&&m.push(""),i.replace(jn,function(M,j,G,ee){m.push(G?ee.replace(Ka,"$1"):j||M)}),m});function oo(i){if(typeof i=="string"||di(i))return i;var m=i+"";return m=="0"&&1/i==-1/0?"-0":m}function Os(i){if(i!=null){try{return fc.call(i)}catch{}try{return i+""}catch{}}return""}function RE(i,m){return mr(ae,function(M){var j="_."+M[0];m&M[1]&&!ci(i,j)&&i.push(j)}),i.sort()}function Fw(i){if(i instanceof Kt)return i.clone();var m=new Ai(i.__wrapped__,i.__chain__);return m.__actions__=Xr(i.__actions__),m.__index__=i.__index__,m.__values__=i.__values__,m}function LE(i,m,M){(M?Pr(i,m,M):m===e)?m=1:m=ar(Nt(m),0);var j=i==null?0:i.length;if(!j||m<1)return[];for(var G=0,ee=0,le=xe(Cc(j/m));G<j;)le[ee++]=Ti(i,G,G+=m);return le}function OE(i){for(var m=-1,M=i==null?0:i.length,j=0,G=[];++m<M;){var ee=i[m];ee&&(G[j++]=ee)}return G}function NE(){var i=arguments.length;if(!i)return[];for(var m=xe(i-1),M=arguments[0],j=i;j--;)m[j-1]=arguments[j];return T($t(M)?Xr(M):[M],yr(m,1))}var DE=Bt(function(i,m){return Vn(i)?el(i,yr(m,1,Vn,!0)):[]}),PE=Bt(function(i,m){var M=$i(m);return Vn(M)&&(M=e),Vn(i)?el(i,yr(m,1,Vn,!0),mt(M,2)):[]}),FE=Bt(function(i,m){var M=$i(m);return Vn(M)&&(M=e),Vn(i)?el(i,yr(m,1,Vn,!0),e,M):[]});function WE(i,m,M){var j=i==null?0:i.length;return j?(m=M||m===e?1:Nt(m),Ti(i,m<0?0:m,j)):[]}function BE(i,m,M){var j=i==null?0:i.length;return j?(m=M||m===e?1:Nt(m),m=j-m,Ti(i,0,m<0?0:m)):[]}function zE(i,m){return i&&i.length?Rc(i,mt(m,3),!0,!0):[]}function jE(i,m){return i&&i.length?Rc(i,mt(m,3),!0):[]}function HE(i,m,M,j){var G=i==null?0:i.length;return G?(M&&typeof M!="number"&&Pr(i,m,M)&&(M=0,j=G),NI(i,m,M,j)):[]}function Ww(i,m,M){var j=i==null?0:i.length;if(!j)return-1;var G=M==null?0:Nt(M);return G<0&&(G=ar(j+G,0)),re(i,mt(m,3),G)}function Bw(i,m,M){var j=i==null?0:i.length;if(!j)return-1;var G=j-1;return M!==e&&(G=Nt(M),G=M<0?ar(j+G,0):Mr(G,j-1)),re(i,mt(m,3),G,!0)}function zw(i){var m=i==null?0:i.length;return m?yr(i,1):[]}function UE(i){var m=i==null?0:i.length;return m?yr(i,B):[]}function VE(i,m){var M=i==null?0:i.length;return M?(m=m===e?1:Nt(m),yr(i,m)):[]}function KE(i){for(var m=-1,M=i==null?0:i.length,j={};++m<M;){var G=i[m];j[G[0]]=G[1]}return j}function jw(i){return i&&i.length?i[0]:e}function qE(i,m,M){var j=i==null?0:i.length;if(!j)return-1;var G=M==null?0:Nt(M);return G<0&&(G=ar(j+G,0)),se(i,m,G)}function GE(i){var m=i==null?0:i.length;return m?Ti(i,0,-1):[]}var YE=Bt(function(i){var m=v(i,_d);return m.length&&m[0]===i[0]?md(m):[]}),XE=Bt(function(i){var m=$i(i),M=v(i,_d);return m===$i(M)?m=e:M.pop(),M.length&&M[0]===i[0]?md(M,mt(m,2)):[]}),QE=Bt(function(i){var m=$i(i),M=v(i,_d);return m=typeof m=="function"?m:e,m&&M.pop(),M.length&&M[0]===i[0]?md(M,e,m):[]});function ZE(i,m){return i==null?"":GM.call(i,m)}function $i(i){var m=i==null?0:i.length;return m?i[m-1]:e}function JE(i,m,M){var j=i==null?0:i.length;if(!j)return-1;var G=j;return M!==e&&(G=Nt(M),G=G<0?ar(j+G,0):Mr(G,j-1)),m===m?kt(i,m,G):re(i,Ce,G,!0)}function eR(i,m){return i&&i.length?Jy(i,Nt(m)):e}var tR=Bt(Hw);function Hw(i,m){return i&&i.length&&m&&m.length?bd(i,m):i}function nR(i,m,M){return i&&i.length&&m&&m.length?bd(i,m,mt(M,2)):i}function rR(i,m,M){return i&&i.length&&m&&m.length?bd(i,m,e,M):i}var iR=Ao(function(i,m){var M=i==null?0:i.length,j=dd(i,m);return nw(i,v(m,function(G){return _o(G,M)?+G:G}).sort(dw)),j});function oR(i,m){var M=[];if(!(i&&i.length))return M;var j=-1,G=[],ee=i.length;for(m=mt(m,3);++j<ee;){var le=i[j];m(le,j,i)&&(M.push(le),G.push(j))}return nw(i,G),M}function Bd(i){return i==null?i:ZM.call(i)}function sR(i,m,M){var j=i==null?0:i.length;return j?(M&&typeof M!="number"&&Pr(i,m,M)?(m=0,M=j):(m=m==null?0:Nt(m),M=M===e?j:Nt(M)),Ti(i,m,M)):[]}function aR(i,m){return Ec(i,m)}function lR(i,m,M){return kd(i,m,mt(M,2))}function cR(i,m){var M=i==null?0:i.length;if(M){var j=Ec(i,m);if(j<M&&Ui(i[j],m))return j}return-1}function uR(i,m){return Ec(i,m,!0)}function hR(i,m,M){return kd(i,m,mt(M,2),!0)}function dR(i,m){var M=i==null?0:i.length;if(M){var j=Ec(i,m,!0)-1;if(Ui(i[j],m))return j}return-1}function pR(i){return i&&i.length?iw(i):[]}function gR(i,m){return i&&i.length?iw(i,mt(m,2)):[]}function fR(i){var m=i==null?0:i.length;return m?Ti(i,1,m):[]}function mR(i,m,M){return i&&i.length?(m=M||m===e?1:Nt(m),Ti(i,0,m<0?0:m)):[]}function vR(i,m,M){var j=i==null?0:i.length;return j?(m=M||m===e?1:Nt(m),m=j-m,Ti(i,m<0?0:m,j)):[]}function yR(i,m){return i&&i.length?Rc(i,mt(m,3),!1,!0):[]}function wR(i,m){return i&&i.length?Rc(i,mt(m,3)):[]}var bR=Bt(function(i){return Xo(yr(i,1,Vn,!0))}),xR=Bt(function(i){var m=$i(i);return Vn(m)&&(m=e),Xo(yr(i,1,Vn,!0),mt(m,2))}),CR=Bt(function(i){var m=$i(i);return m=typeof m=="function"?m:e,Xo(yr(i,1,Vn,!0),e,m)});function kR(i){return i&&i.length?Xo(i):[]}function SR(i,m){return i&&i.length?Xo(i,mt(m,2)):[]}function AR(i,m){return m=typeof m=="function"?m:e,i&&i.length?Xo(i,e,m):[]}function zd(i){if(!(i&&i.length))return[];var m=0;return i=$r(i,function(M){if(Vn(M))return m=ar(M.length,m),!0}),Ze(m,function(M){return v(i,we(M))})}function Uw(i,m){if(!(i&&i.length))return[];var M=zd(i);return m==null?M:v(M,function(j){return lr(m,e,j)})}var _R=Bt(function(i,m){return Vn(i)?el(i,m):[]}),TR=Bt(function(i){return Ad($r(i,Vn))}),$R=Bt(function(i){var m=$i(i);return Vn(m)&&(m=e),Ad($r(i,Vn),mt(m,2))}),MR=Bt(function(i){var m=$i(i);return m=typeof m=="function"?m:e,Ad($r(i,Vn),e,m)}),IR=Bt(zd);function ER(i,m){return lw(i||[],m||[],Ja)}function RR(i,m){return lw(i||[],m||[],rl)}var LR=Bt(function(i){var m=i.length,M=m>1?i[m-1]:e;return M=typeof M=="function"?(i.pop(),M):e,Uw(i,M)});function Vw(i){var m=J(i);return m.__chain__=!0,m}function OR(i,m){return m(i),i}function zc(i,m){return m(i)}var NR=Ao(function(i){var m=i.length,M=m?i[0]:0,j=this.__wrapped__,G=function(ee){return dd(ee,i)};return m>1||this.__actions__.length||!(j instanceof Kt)||!_o(M)?this.thru(G):(j=j.slice(M,+M+(m?1:0)),j.__actions__.push({func:zc,args:[G],thisArg:e}),new Ai(j,this.__chain__).thru(function(ee){return m&&!ee.length&&ee.push(e),ee}))});function DR(){return Vw(this)}function PR(){return new Ai(this.value(),this.__chain__)}function FR(){this.__values__===e&&(this.__values__=ob(this.value()));var i=this.__index__>=this.__values__.length,m=i?e:this.__values__[this.__index__++];return{done:i,value:m}}function WR(){return this}function BR(i){for(var m,M=this;M instanceof _c;){var j=Fw(M);j.__index__=0,j.__values__=e,m?G.__wrapped__=j:m=j;var G=j;M=M.__wrapped__}return G.__wrapped__=i,m}function zR(){var i=this.__wrapped__;if(i instanceof Kt){var m=i;return this.__actions__.length&&(m=new Kt(this)),m=m.reverse(),m.__actions__.push({func:zc,args:[Bd],thisArg:e}),new Ai(m,this.__chain__)}return this.thru(Bd)}function jR(){return aw(this.__wrapped__,this.__actions__)}var HR=Lc(function(i,m,M){ln.call(i,M)?++i[M]:ko(i,M,1)});function UR(i,m,M){var j=$t(i)?vr:OI;return M&&Pr(i,m,M)&&(m=e),j(i,mt(m,3))}function VR(i,m){var M=$t(i)?$r:Uy;return M(i,mt(m,3))}var KR=yw(Ww),qR=yw(Bw);function GR(i,m){return yr(jc(i,m),1)}function YR(i,m){return yr(jc(i,m),B)}function XR(i,m,M){return M=M===e?1:Nt(M),yr(jc(i,m),M)}function Kw(i,m){var M=$t(i)?mr:Yo;return M(i,mt(m,3))}function qw(i,m){var M=$t(i)?_s:Hy;return M(i,mt(m,3))}var QR=Lc(function(i,m,M){ln.call(i,M)?i[M].push(m):ko(i,M,[m])});function ZR(i,m,M,j){i=Qr(i)?i:ya(i),M=M&&!j?Nt(M):0;var G=i.length;return M<0&&(M=ar(G+M,0)),qc(i)?M<=G&&i.indexOf(m,M)>-1:!!G&&se(i,m,M)>-1}var JR=Bt(function(i,m,M){var j=-1,G=typeof m=="function",ee=Qr(i)?xe(i.length):[];return Yo(i,function(le){ee[++j]=G?lr(m,le,M):tl(le,m,M)}),ee}),eL=Lc(function(i,m,M){ko(i,M,m)});function jc(i,m){var M=$t(i)?v:Xy;return M(i,mt(m,3))}function tL(i,m,M,j){return i==null?[]:($t(m)||(m=m==null?[]:[m]),M=j?e:M,$t(M)||(M=M==null?[]:[M]),ew(i,m,M))}var nL=Lc(function(i,m,M){i[M?0:1].push(m)},function(){return[[],[]]});function rL(i,m,M){var j=$t(i)?k:Le,G=arguments.length<3;return j(i,mt(m,4),M,G,Yo)}function iL(i,m,M){var j=$t(i)?D:Le,G=arguments.length<3;return j(i,mt(m,4),M,G,Hy)}function oL(i,m){var M=$t(i)?$r:Uy;return M(i,Vc(mt(m,3)))}function sL(i){var m=$t(i)?Wy:ZI;return m(i)}function aL(i,m,M){(M?Pr(i,m,M):m===e)?m=1:m=Nt(m);var j=$t(i)?MI:JI;return j(i,m)}function lL(i){var m=$t(i)?II:tE;return m(i)}function cL(i){if(i==null)return 0;if(Qr(i))return qc(i)?zt(i):i.length;var m=Ir(i);return m==nt||m==En?i.size:yd(i).length}function uL(i,m,M){var j=$t(i)?W:nE;return M&&Pr(i,m,M)&&(m=e),j(i,mt(m,3))}var hL=Bt(function(i,m){if(i==null)return[];var M=m.length;return M>1&&Pr(i,m[0],m[1])?m=[]:M>2&&Pr(m[0],m[1],m[2])&&(m=[m[0]]),ew(i,yr(m,1),[])}),Hc=VM||function(){return cn.Date.now()};function dL(i,m){if(typeof m!="function")throw new un(y);return i=Nt(i),function(){if(--i<1)return m.apply(this,arguments)}}function Gw(i,m,M){return m=M?e:m,m=i&&m==null?i.length:m,So(i,R,e,e,e,e,m)}function Yw(i,m){var M;if(typeof m!="function")throw new un(y);return i=Nt(i),function(){return--i>0&&(M=m.apply(this,arguments)),i<=1&&(m=e),M}}var jd=Bt(function(i,m,M){var j=d;if(M.length){var G=We(M,ma(jd));j|=S}return So(i,j,m,M,G)}),Xw=Bt(function(i,m,M){var j=d|w;if(M.length){var G=We(M,ma(Xw));j|=S}return So(m,j,i,M,G)});function Qw(i,m,M){m=M?e:m;var j=So(i,E,e,e,e,e,e,m);return j.placeholder=Qw.placeholder,j}function Zw(i,m,M){m=M?e:m;var j=So(i,$,e,e,e,e,e,m);return j.placeholder=Zw.placeholder,j}function Jw(i,m,M){var j,G,ee,le,de,ve,Ee=0,Re=!1,De=!1,Ge=!0;if(typeof i!="function")throw new un(y);m=Mi(m)||0,Mn(M)&&(Re=!!M.leading,De="maxWait"in M,ee=De?ar(Mi(M.maxWait)||0,m):ee,Ge="trailing"in M?!!M.trailing:Ge);function rt(Kn){var Vi=j,Mo=G;return j=G=e,Ee=Kn,le=i.apply(Mo,Vi),le}function vt(Kn){return Ee=Kn,de=sl(jt,m),Re?rt(Kn):le}function Ft(Kn){var Vi=Kn-ve,Mo=Kn-Ee,yb=m-Vi;return De?Mr(yb,ee-Mo):yb}function yt(Kn){var Vi=Kn-ve,Mo=Kn-Ee;return ve===e||Vi>=m||Vi<0||De&&Mo>=ee}function jt(){var Kn=Hc();if(yt(Kn))return Gt(Kn);de=sl(jt,Ft(Kn))}function Gt(Kn){return de=e,Ge&&j?rt(Kn):(j=G=e,le)}function pi(){de!==e&&cw(de),Ee=0,j=ve=G=de=e}function Fr(){return de===e?le:Gt(Hc())}function gi(){var Kn=Hc(),Vi=yt(Kn);if(j=arguments,G=this,ve=Kn,Vi){if(de===e)return vt(ve);if(De)return cw(de),de=sl(jt,m),rt(ve)}return de===e&&(de=sl(jt,m)),le}return gi.cancel=pi,gi.flush=Fr,gi}var pL=Bt(function(i,m){return jy(i,1,m)}),gL=Bt(function(i,m,M){return jy(i,Mi(m)||0,M)});function fL(i){return So(i,P)}function Uc(i,m){if(typeof i!="function"||m!=null&&typeof m!="function")throw new un(y);var M=function(){var j=arguments,G=m?m.apply(this,j):j[0],ee=M.cache;if(ee.has(G))return ee.get(G);var le=i.apply(this,j);return M.cache=ee.set(G,le)||ee,le};return M.cache=new(Uc.Cache||Co),M}Uc.Cache=Co;function Vc(i){if(typeof i!="function")throw new un(y);return function(){var m=arguments;switch(m.length){case 0:return!i.call(this);case 1:return!i.call(this,m[0]);case 2:return!i.call(this,m[0],m[1]);case 3:return!i.call(this,m[0],m[1],m[2])}return!i.apply(this,m)}}function mL(i){return Yw(2,i)}var vL=rE(function(i,m){m=m.length==1&&$t(m[0])?v(m[0],lt(mt())):v(yr(m,1),lt(mt()));var M=m.length;return Bt(function(j){for(var G=-1,ee=Mr(j.length,M);++G<ee;)j[G]=m[G].call(this,j[G]);return lr(i,this,j)})}),Hd=Bt(function(i,m){var M=We(m,ma(Hd));return So(i,S,e,m,M)}),eb=Bt(function(i,m){var M=We(m,ma(eb));return So(i,C,e,m,M)}),yL=Ao(function(i,m){return So(i,L,e,e,e,m)});function wL(i,m){if(typeof i!="function")throw new un(y);return m=m===e?m:Nt(m),Bt(i,m)}function bL(i,m){if(typeof i!="function")throw new un(y);return m=m==null?0:ar(Nt(m),0),Bt(function(M){var j=M[m],G=Zo(M,0,m);return j&&T(G,j),lr(i,this,G)})}function xL(i,m,M){var j=!0,G=!0;if(typeof i!="function")throw new un(y);return Mn(M)&&(j="leading"in M?!!M.leading:j,G="trailing"in M?!!M.trailing:G),Jw(i,m,{leading:j,maxWait:m,trailing:G})}function CL(i){return Gw(i,1)}function kL(i,m){return Hd(Td(m),i)}function SL(){if(!arguments.length)return[];var i=arguments[0];return $t(i)?i:[i]}function AL(i){return _i(i,a)}function _L(i,m){return m=typeof m=="function"?m:e,_i(i,a,m)}function TL(i){return _i(i,l|a)}function $L(i,m){return m=typeof m=="function"?m:e,_i(i,l|a,m)}function ML(i,m){return m==null||zy(i,m,dr(m))}function Ui(i,m){return i===m||i!==i&&m!==m}var IL=Pc(fd),EL=Pc(function(i,m){return i>=m}),Ns=qy(function(){return arguments}())?qy:function(i){return Fn(i)&&ln.call(i,"callee")&&!Ly.call(i,"callee")},$t=xe.isArray,RL=Yr?lt(Yr):BI;function Qr(i){return i!=null&&Kc(i.length)&&!To(i)}function Vn(i){return Fn(i)&&Qr(i)}function LL(i){return i===!0||i===!1||Fn(i)&&Dr(i)==Te}var Jo=qM||ep,OL=qo?lt(qo):zI;function NL(i){return Fn(i)&&i.nodeType===1&&!al(i)}function DL(i){if(i==null)return!0;if(Qr(i)&&($t(i)||typeof i=="string"||typeof i.splice=="function"||Jo(i)||va(i)||Ns(i)))return!i.length;var m=Ir(i);if(m==nt||m==En)return!i.size;if(ol(i))return!yd(i).length;for(var M in i)if(ln.call(i,M))return!1;return!0}function PL(i,m){return nl(i,m)}function FL(i,m,M){M=typeof M=="function"?M:e;var j=M?M(i,m):e;return j===e?nl(i,m,e,M):!!j}function Ud(i){if(!Fn(i))return!1;var m=Dr(i);return m==Ye||m==Ie||typeof i.message=="string"&&typeof i.name=="string"&&!al(i)}function WL(i){return typeof i=="number"&&Ny(i)}function To(i){if(!Mn(i))return!1;var m=Dr(i);return m==qe||m==dt||m==fe||m==gr}function tb(i){return typeof i=="number"&&i==Nt(i)}function Kc(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=U}function Mn(i){var m=typeof i;return i!=null&&(m=="object"||m=="function")}function Fn(i){return i!=null&&typeof i=="object"}var nb=Dn?lt(Dn):HI;function BL(i,m){return i===m||vd(i,m,Od(m))}function zL(i,m,M){return M=typeof M=="function"?M:e,vd(i,m,Od(m),M)}function jL(i){return rb(i)&&i!=+i}function HL(i){if(_E(i))throw new ct(p);return Gy(i)}function UL(i){return i===null}function VL(i){return i==null}function rb(i){return typeof i=="number"||Fn(i)&&Dr(i)==pt}function al(i){if(!Fn(i)||Dr(i)!=gn)return!1;var m=wc(i);if(m===null)return!0;var M=ln.call(m,"constructor")&&m.constructor;return typeof M=="function"&&M instanceof M&&fc.call(M)==zM}var Vd=ai?lt(ai):UI;function KL(i){return tb(i)&&i>=-9007199254740991&&i<=U}var ib=li?lt(li):VI;function qc(i){return typeof i=="string"||!$t(i)&&Fn(i)&&Dr(i)==Rn}function di(i){return typeof i=="symbol"||Fn(i)&&Dr(i)==Xn}var va=ki?lt(ki):KI;function qL(i){return i===e}function GL(i){return Fn(i)&&Ir(i)==He}function YL(i){return Fn(i)&&Dr(i)==ke}var XL=Pc(wd),QL=Pc(function(i,m){return i<=m});function ob(i){if(!i)return[];if(Qr(i))return qc(i)?Tt(i):Xr(i);if(Ga&&i[Ga])return be(i[Ga]());var m=Ir(i),M=m==nt?Me:m==En?Ve:ya;return M(i)}function $o(i){if(!i)return i===0?i:0;if(i=Mi(i),i===B||i===-1/0){var m=i<0?-1:1;return m*q}return i===i?i:0}function Nt(i){var m=$o(i),M=m%1;return m===m?M?m-M:m:0}function sb(i){return i?Es(Nt(i),0,te):0}function Mi(i){if(typeof i=="number")return i;if(di(i))return Z;if(Mn(i)){var m=typeof i.valueOf=="function"?i.valueOf():i;i=Mn(m)?m+"":m}if(typeof i!="string")return i===0?i:+i;i=yn(i);var M=oa.test(i);return M||Hn.test(i)?vn(i.slice(2),M?2:8):Ut.test(i)?Z:+i}function ab(i){return io(i,Zr(i))}function ZL(i){return i?Es(Nt(i),-9007199254740991,U):i===0?i:0}function sn(i){return i==null?"":hi(i)}var JL=ga(function(i,m){if(ol(m)||Qr(m)){io(m,dr(m),i);return}for(var M in m)ln.call(m,M)&&Ja(i,M,m[M])}),lb=ga(function(i,m){io(m,Zr(m),i)}),Gc=ga(function(i,m,M,j){io(m,Zr(m),i,j)}),eO=ga(function(i,m,M,j){io(m,dr(m),i,j)}),tO=Ao(dd);function nO(i,m){var M=pa(i);return m==null?M:By(M,m)}var rO=Bt(function(i,m){i=Pt(i);var M=-1,j=m.length,G=j>2?m[2]:e;for(G&&Pr(m[0],m[1],G)&&(j=1);++M<j;)for(var ee=m[M],le=Zr(ee),de=-1,ve=le.length;++de<ve;){var Ee=le[de],Re=i[Ee];(Re===e||Ui(Re,Pn[Ee])&&!ln.call(i,Ee))&&(i[Ee]=ee[Ee])}return i}),iO=Bt(function(i){return i.push(e,Aw),lr(cb,e,i)});function oO(i,m){return Q(i,mt(m,3),ro)}function sO(i,m){return Q(i,mt(m,3),gd)}function aO(i,m){return i==null?i:pd(i,mt(m,3),Zr)}function lO(i,m){return i==null?i:Vy(i,mt(m,3),Zr)}function cO(i,m){return i&&ro(i,mt(m,3))}function uO(i,m){return i&&gd(i,mt(m,3))}function hO(i){return i==null?[]:Mc(i,dr(i))}function dO(i){return i==null?[]:Mc(i,Zr(i))}function Kd(i,m,M){var j=i==null?e:Rs(i,m);return j===e?M:j}function pO(i,m){return i!=null&&$w(i,m,DI)}function qd(i,m){return i!=null&&$w(i,m,PI)}var gO=bw(function(i,m,M){m!=null&&typeof m.toString!="function"&&(m=mc.call(m)),i[m]=M},Yd(Jr)),fO=bw(function(i,m,M){m!=null&&typeof m.toString!="function"&&(m=mc.call(m)),ln.call(i,m)?i[m].push(M):i[m]=[M]},mt),mO=Bt(tl);function dr(i){return Qr(i)?Fy(i):yd(i)}function Zr(i){return Qr(i)?Fy(i,!0):qI(i)}function vO(i,m){var M={};return m=mt(m,3),ro(i,function(j,G,ee){ko(M,m(j,G,ee),j)}),M}function yO(i,m){var M={};return m=mt(m,3),ro(i,function(j,G,ee){ko(M,G,m(j,G,ee))}),M}var wO=ga(function(i,m,M){Ic(i,m,M)}),cb=ga(function(i,m,M,j){Ic(i,m,M,j)}),bO=Ao(function(i,m){var M={};if(i==null)return M;var j=!1;m=v(m,function(ee){return ee=Qo(ee,i),j||(j=ee.length>1),ee}),io(i,Rd(i),M),j&&(M=_i(M,l|u|a,gE));for(var G=m.length;G--;)Sd(M,m[G]);return M});function xO(i,m){return ub(i,Vc(mt(m)))}var CO=Ao(function(i,m){return i==null?{}:YI(i,m)});function ub(i,m){if(i==null)return{};var M=v(Rd(i),function(j){return[j]});return m=mt(m),tw(i,M,function(j,G){return m(j,G[0])})}function kO(i,m,M){m=Qo(m,i);var j=-1,G=m.length;for(G||(G=1,i=e);++j<G;){var ee=i==null?e:i[oo(m[j])];ee===e&&(j=G,ee=M),i=To(ee)?ee.call(i):ee}return i}function SO(i,m,M){return i==null?i:rl(i,m,M)}function AO(i,m,M,j){return j=typeof j=="function"?j:e,i==null?i:rl(i,m,M,j)}var hb=kw(dr),db=kw(Zr);function _O(i,m,M){var j=$t(i),G=j||Jo(i)||va(i);if(m=mt(m,4),M==null){var ee=i&&i.constructor;G?M=j?new ee:[]:Mn(i)?M=To(ee)?pa(wc(i)):{}:M={}}return(G?mr:ro)(i,function(le,de,ve){return m(M,le,de,ve)}),M}function TO(i,m){return i==null?!0:Sd(i,m)}function $O(i,m,M){return i==null?i:sw(i,m,Td(M))}function MO(i,m,M,j){return j=typeof j=="function"?j:e,i==null?i:sw(i,m,Td(M),j)}function ya(i){return i==null?[]:kn(i,dr(i))}function IO(i){return i==null?[]:kn(i,Zr(i))}function EO(i,m,M){return M===e&&(M=m,m=e),M!==e&&(M=Mi(M),M=M===M?M:0),m!==e&&(m=Mi(m),m=m===m?m:0),Es(Mi(i),m,M)}function RO(i,m,M){return m=$o(m),M===e?(M=m,m=0):M=$o(M),i=Mi(i),FI(i,m,M)}function LO(i,m,M){if(M&&typeof M!="boolean"&&Pr(i,m,M)&&(m=M=e),M===e&&(typeof m=="boolean"?(M=m,m=e):typeof i=="boolean"&&(M=i,i=e)),i===e&&m===e?(i=0,m=1):(i=$o(i),m===e?(m=i,i=0):m=$o(m)),i>m){var j=i;i=m,m=j}if(M||i%1||m%1){var G=Dy();return Mr(i+G*(m-i+Be("1e-"+((G+"").length-1))),m)}return xd(i,m)}var OO=fa(function(i,m,M){return m=m.toLowerCase(),i+(M?pb(m):m)});function pb(i){return Gd(sn(i).toLowerCase())}function gb(i){return i=sn(i),i&&i.replace(Ln,Sn).replace(yo,"")}function NO(i,m,M){i=sn(i),m=hi(m);var j=i.length;M=M===e?j:Es(Nt(M),0,j);var G=M;return M-=m.length,M>=0&&i.slice(M,G)==m}function DO(i){return i=sn(i),i&&Ha.test(i)?i.replace(uo,V):i}function PO(i){return i=sn(i),i&&Fi.test(i)?i.replace(Sr,"\\$&"):i}var FO=fa(function(i,m,M){return i+(M?"-":"")+m.toLowerCase()}),WO=fa(function(i,m,M){return i+(M?" ":"")+m.toLowerCase()}),BO=vw("toLowerCase");function zO(i,m,M){i=sn(i),m=Nt(m);var j=m?zt(i):0;if(!m||j>=m)return i;var G=(m-j)/2;return Dc(kc(G),M)+i+Dc(Cc(G),M)}function jO(i,m,M){i=sn(i),m=Nt(m);var j=m?zt(i):0;return m&&j<m?i+Dc(m-j,M):i}function HO(i,m,M){i=sn(i),m=Nt(m);var j=m?zt(i):0;return m&&j<m?Dc(m-j,M)+i:i}function UO(i,m,M){return M||m==null?m=0:m&&(m=+m),QM(sn(i).replace(Tn,""),m||0)}function VO(i,m,M){return(M?Pr(i,m,M):m===e)?m=1:m=Nt(m),Cd(sn(i),m)}function KO(){var i=arguments,m=sn(i[0]);return i.length<3?m:m.replace(i[1],i[2])}var qO=fa(function(i,m,M){return i+(M?"_":"")+m.toLowerCase()});function GO(i,m,M){return M&&typeof M!="number"&&Pr(i,m,M)&&(m=M=e),M=M===e?te:M>>>0,M?(i=sn(i),i&&(typeof m=="string"||m!=null&&!Vd(m))&&(m=hi(m),!m&&oe(i))?Zo(Tt(i),0,M):i.split(m,M)):[]}var YO=fa(function(i,m,M){return i+(M?" ":"")+Gd(m)});function XO(i,m,M){return i=sn(i),M=M==null?0:Es(Nt(M),0,i.length),m=hi(m),i.slice(M,M+m.length)==m}function QO(i,m,M){var j=J.templateSettings;M&&Pr(i,m,M)&&(m=e),i=sn(i),m=Gc({},m,j,Sw);var G=Gc({},m.imports,j.imports,Sw),ee=dr(G),le=kn(G,ee),de,ve,Ee=0,Re=m.interpolate||vi,De="__p += '",Ge=Nr((m.escape||vi).source+"|"+Re.source+"|"+(Re===ys?Bi:vi).source+"|"+(m.evaluate||vi).source+"|$","g"),rt="//# sourceURL="+(ln.call(m,"sourceURL")?(m.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++no+"]")+`
|
1470
|
+
`)}function kE(i){return $t(i)||Ns(i)||!!(Oy&&i&&i[Oy])}function _o(i,m){var M=typeof i;return m=m??U,!!m&&(M=="number"||M!="symbol"&&vn.test(i))&&i>-1&&i%1==0&&i<m}function Pr(i,m,M){if(!In(M))return!1;var j=typeof m;return(j=="number"?Qr(M)&&_o(m,M.length):j=="string"&&m in M)?Ui(M[m],i):!1}function Dd(i,m){if($t(i))return!1;var M=typeof i;return M=="number"||M=="symbol"||M=="boolean"||i==null||di(i)?!0:Pi.test(i)||!ra.test(i)||m!=null&&i in Pt(m)}function SE(i){var m=typeof i;return m=="string"||m=="number"||m=="symbol"||m=="boolean"?i!=="__proto__":i===null}function Pd(i){var m=Fc(i),M=J[m];if(typeof M!="function"||!(m in Kt.prototype))return!1;if(i===M)return!0;var j=Ld(M);return!!j&&i===j[0]}function AE(i){return!!Iy&&Iy in i}var _E=Ts?To:ep;function ol(i){var m=i&&i.constructor,M=typeof m=="function"&&m.prototype||Fn;return i===M}function Iw(i){return i===i&&!In(i)}function Ew(i,m){return function(M){return M==null?!1:M[i]===m&&(m!==e||i in Pt(M))}}function TE(i){var m=Uc(i,function(j){return M.size===g&&M.clear(),j}),M=m.cache;return m}function $E(i,m){var M=i[1],j=m[1],G=M|j,ee=G<(d|w|R),le=j==R&&M==E||j==R&&M==L&&i[7].length<=m[8]||j==(R|L)&&m[7].length<=m[8]&&M==E;if(!(ee||le))return i;j&d&&(i[2]=m[2],G|=M&d?0:x);var de=m[3];if(de){var ve=i[3];i[3]=ve?pw(ve,de,m[4]):de,i[4]=ve?We(i[3],s):m[4]}return de=m[5],de&&(ve=i[5],i[5]=ve?gw(ve,de,m[6]):de,i[6]=ve?We(i[5],s):m[6]),de=m[7],de&&(i[7]=de),j&R&&(i[8]=i[8]==null?m[8]:Mr(i[8],m[8])),i[9]==null&&(i[9]=m[9]),i[0]=m[0],i[1]=G,i}function ME(i){var m=[];if(i!=null)for(var M in Pt(i))m.push(M);return m}function IE(i){return mc.call(i)}function Rw(i,m,M){return m=lr(m===e?i.length-1:m,0),function(){for(var j=arguments,G=-1,ee=lr(j.length-m,0),le=xe(ee);++G<ee;)le[G]=j[m+G];G=-1;for(var de=xe(m+1);++G<m;)de[G]=j[G];return de[m]=M(le),cr(i,this,de)}}function Lw(i,m){return m.length<2?i:Rs(i,Ti(m,0,-1))}function EE(i,m){for(var M=i.length,j=Mr(m.length,M),G=Xr(i);j--;){var ee=m[j];i[j]=_o(ee,M)?G[ee]:e}return i}function Fd(i,m){if(!(m==="constructor"&&typeof i[m]=="function")&&m!="__proto__")return i[m]}var Ow=Dw(rw),sl=KM||function(i,m){return cn.setTimeout(i,m)},Wd=Dw(eE);function Nw(i,m,M){var j=m+"";return Wd(i,CE(j,RE(wE(j),M)))}function Dw(i){var m=0,M=0;return function(){var j=XM(),G=O-(j-M);if(M=j,G>0){if(++m>=F)return arguments[0]}else m=0;return i.apply(e,arguments)}}function Bc(i,m){var M=-1,j=i.length,G=j-1;for(m=m===e?j:m;++M<m;){var ee=xd(M,G),le=i[ee];i[ee]=i[M],i[M]=le}return i.length=m,i}var Pw=TE(function(i){var m=[];return i.charCodeAt(0)===46&&m.push(""),i.replace(Hn,function(M,j,G,ee){m.push(G?ee.replace(Ka,"$1"):j||M)}),m});function oo(i){if(typeof i=="string"||di(i))return i;var m=i+"";return m=="0"&&1/i==-B?"-0":m}function Os(i){if(i!=null){try{return fc.call(i)}catch{}try{return i+""}catch{}}return""}function RE(i,m){return mr(ae,function(M){var j="_."+M[0];m&M[1]&&!ci(i,j)&&i.push(j)}),i.sort()}function Fw(i){if(i instanceof Kt)return i.clone();var m=new Ai(i.__wrapped__,i.__chain__);return m.__actions__=Xr(i.__actions__),m.__index__=i.__index__,m.__values__=i.__values__,m}function LE(i,m,M){(M?Pr(i,m,M):m===e)?m=1:m=lr(Nt(m),0);var j=i==null?0:i.length;if(!j||m<1)return[];for(var G=0,ee=0,le=xe(Cc(j/m));G<j;)le[ee++]=Ti(i,G,G+=m);return le}function OE(i){for(var m=-1,M=i==null?0:i.length,j=0,G=[];++m<M;){var ee=i[m];ee&&(G[j++]=ee)}return G}function NE(){var i=arguments.length;if(!i)return[];for(var m=xe(i-1),M=arguments[0],j=i;j--;)m[j-1]=arguments[j];return T($t(M)?Xr(M):[M],yr(m,1))}var DE=Bt(function(i,m){return Kn(i)?el(i,yr(m,1,Kn,!0)):[]}),PE=Bt(function(i,m){var M=$i(m);return Kn(M)&&(M=e),Kn(i)?el(i,yr(m,1,Kn,!0),mt(M,2)):[]}),FE=Bt(function(i,m){var M=$i(m);return Kn(M)&&(M=e),Kn(i)?el(i,yr(m,1,Kn,!0),e,M):[]});function WE(i,m,M){var j=i==null?0:i.length;return j?(m=M||m===e?1:Nt(m),Ti(i,m<0?0:m,j)):[]}function BE(i,m,M){var j=i==null?0:i.length;return j?(m=M||m===e?1:Nt(m),m=j-m,Ti(i,0,m<0?0:m)):[]}function zE(i,m){return i&&i.length?Rc(i,mt(m,3),!0,!0):[]}function jE(i,m){return i&&i.length?Rc(i,mt(m,3),!0):[]}function HE(i,m,M,j){var G=i==null?0:i.length;return G?(M&&typeof M!="number"&&Pr(i,m,M)&&(M=0,j=G),NI(i,m,M,j)):[]}function Ww(i,m,M){var j=i==null?0:i.length;if(!j)return-1;var G=M==null?0:Nt(M);return G<0&&(G=lr(j+G,0)),re(i,mt(m,3),G)}function Bw(i,m,M){var j=i==null?0:i.length;if(!j)return-1;var G=j-1;return M!==e&&(G=Nt(M),G=M<0?lr(j+G,0):Mr(G,j-1)),re(i,mt(m,3),G,!0)}function zw(i){var m=i==null?0:i.length;return m?yr(i,1):[]}function UE(i){var m=i==null?0:i.length;return m?yr(i,B):[]}function VE(i,m){var M=i==null?0:i.length;return M?(m=m===e?1:Nt(m),yr(i,m)):[]}function KE(i){for(var m=-1,M=i==null?0:i.length,j={};++m<M;){var G=i[m];j[G[0]]=G[1]}return j}function jw(i){return i&&i.length?i[0]:e}function qE(i,m,M){var j=i==null?0:i.length;if(!j)return-1;var G=M==null?0:Nt(M);return G<0&&(G=lr(j+G,0)),se(i,m,G)}function GE(i){var m=i==null?0:i.length;return m?Ti(i,0,-1):[]}var YE=Bt(function(i){var m=v(i,_d);return m.length&&m[0]===i[0]?md(m):[]}),XE=Bt(function(i){var m=$i(i),M=v(i,_d);return m===$i(M)?m=e:M.pop(),M.length&&M[0]===i[0]?md(M,mt(m,2)):[]}),QE=Bt(function(i){var m=$i(i),M=v(i,_d);return m=typeof m=="function"?m:e,m&&M.pop(),M.length&&M[0]===i[0]?md(M,e,m):[]});function ZE(i,m){return i==null?"":GM.call(i,m)}function $i(i){var m=i==null?0:i.length;return m?i[m-1]:e}function JE(i,m,M){var j=i==null?0:i.length;if(!j)return-1;var G=j;return M!==e&&(G=Nt(M),G=G<0?lr(j+G,0):Mr(G,j-1)),m===m?kt(i,m,G):re(i,Ce,G,!0)}function eR(i,m){return i&&i.length?Jy(i,Nt(m)):e}var tR=Bt(Hw);function Hw(i,m){return i&&i.length&&m&&m.length?bd(i,m):i}function nR(i,m,M){return i&&i.length&&m&&m.length?bd(i,m,mt(M,2)):i}function rR(i,m,M){return i&&i.length&&m&&m.length?bd(i,m,e,M):i}var iR=Ao(function(i,m){var M=i==null?0:i.length,j=dd(i,m);return nw(i,v(m,function(G){return _o(G,M)?+G:G}).sort(dw)),j});function oR(i,m){var M=[];if(!(i&&i.length))return M;var j=-1,G=[],ee=i.length;for(m=mt(m,3);++j<ee;){var le=i[j];m(le,j,i)&&(M.push(le),G.push(j))}return nw(i,G),M}function Bd(i){return i==null?i:ZM.call(i)}function sR(i,m,M){var j=i==null?0:i.length;return j?(M&&typeof M!="number"&&Pr(i,m,M)?(m=0,M=j):(m=m==null?0:Nt(m),M=M===e?j:Nt(M)),Ti(i,m,M)):[]}function aR(i,m){return Ec(i,m)}function lR(i,m,M){return kd(i,m,mt(M,2))}function cR(i,m){var M=i==null?0:i.length;if(M){var j=Ec(i,m);if(j<M&&Ui(i[j],m))return j}return-1}function uR(i,m){return Ec(i,m,!0)}function hR(i,m,M){return kd(i,m,mt(M,2),!0)}function dR(i,m){var M=i==null?0:i.length;if(M){var j=Ec(i,m,!0)-1;if(Ui(i[j],m))return j}return-1}function pR(i){return i&&i.length?iw(i):[]}function gR(i,m){return i&&i.length?iw(i,mt(m,2)):[]}function fR(i){var m=i==null?0:i.length;return m?Ti(i,1,m):[]}function mR(i,m,M){return i&&i.length?(m=M||m===e?1:Nt(m),Ti(i,0,m<0?0:m)):[]}function vR(i,m,M){var j=i==null?0:i.length;return j?(m=M||m===e?1:Nt(m),m=j-m,Ti(i,m<0?0:m,j)):[]}function yR(i,m){return i&&i.length?Rc(i,mt(m,3),!1,!0):[]}function wR(i,m){return i&&i.length?Rc(i,mt(m,3)):[]}var bR=Bt(function(i){return Xo(yr(i,1,Kn,!0))}),xR=Bt(function(i){var m=$i(i);return Kn(m)&&(m=e),Xo(yr(i,1,Kn,!0),mt(m,2))}),CR=Bt(function(i){var m=$i(i);return m=typeof m=="function"?m:e,Xo(yr(i,1,Kn,!0),e,m)});function kR(i){return i&&i.length?Xo(i):[]}function SR(i,m){return i&&i.length?Xo(i,mt(m,2)):[]}function AR(i,m){return m=typeof m=="function"?m:e,i&&i.length?Xo(i,e,m):[]}function zd(i){if(!(i&&i.length))return[];var m=0;return i=$r(i,function(M){if(Kn(M))return m=lr(M.length,m),!0}),Ze(m,function(M){return v(i,we(M))})}function Uw(i,m){if(!(i&&i.length))return[];var M=zd(i);return m==null?M:v(M,function(j){return cr(m,e,j)})}var _R=Bt(function(i,m){return Kn(i)?el(i,m):[]}),TR=Bt(function(i){return Ad($r(i,Kn))}),$R=Bt(function(i){var m=$i(i);return Kn(m)&&(m=e),Ad($r(i,Kn),mt(m,2))}),MR=Bt(function(i){var m=$i(i);return m=typeof m=="function"?m:e,Ad($r(i,Kn),e,m)}),IR=Bt(zd);function ER(i,m){return lw(i||[],m||[],Ja)}function RR(i,m){return lw(i||[],m||[],rl)}var LR=Bt(function(i){var m=i.length,M=m>1?i[m-1]:e;return M=typeof M=="function"?(i.pop(),M):e,Uw(i,M)});function Vw(i){var m=J(i);return m.__chain__=!0,m}function OR(i,m){return m(i),i}function zc(i,m){return m(i)}var NR=Ao(function(i){var m=i.length,M=m?i[0]:0,j=this.__wrapped__,G=function(ee){return dd(ee,i)};return m>1||this.__actions__.length||!(j instanceof Kt)||!_o(M)?this.thru(G):(j=j.slice(M,+M+(m?1:0)),j.__actions__.push({func:zc,args:[G],thisArg:e}),new Ai(j,this.__chain__).thru(function(ee){return m&&!ee.length&&ee.push(e),ee}))});function DR(){return Vw(this)}function PR(){return new Ai(this.value(),this.__chain__)}function FR(){this.__values__===e&&(this.__values__=ob(this.value()));var i=this.__index__>=this.__values__.length,m=i?e:this.__values__[this.__index__++];return{done:i,value:m}}function WR(){return this}function BR(i){for(var m,M=this;M instanceof _c;){var j=Fw(M);j.__index__=0,j.__values__=e,m?G.__wrapped__=j:m=j;var G=j;M=M.__wrapped__}return G.__wrapped__=i,m}function zR(){var i=this.__wrapped__;if(i instanceof Kt){var m=i;return this.__actions__.length&&(m=new Kt(this)),m=m.reverse(),m.__actions__.push({func:zc,args:[Bd],thisArg:e}),new Ai(m,this.__chain__)}return this.thru(Bd)}function jR(){return aw(this.__wrapped__,this.__actions__)}var HR=Lc(function(i,m,M){ln.call(i,M)?++i[M]:ko(i,M,1)});function UR(i,m,M){var j=$t(i)?vr:OI;return M&&Pr(i,m,M)&&(m=e),j(i,mt(m,3))}function VR(i,m){var M=$t(i)?$r:Uy;return M(i,mt(m,3))}var KR=yw(Ww),qR=yw(Bw);function GR(i,m){return yr(jc(i,m),1)}function YR(i,m){return yr(jc(i,m),B)}function XR(i,m,M){return M=M===e?1:Nt(M),yr(jc(i,m),M)}function Kw(i,m){var M=$t(i)?mr:Yo;return M(i,mt(m,3))}function qw(i,m){var M=$t(i)?_s:Hy;return M(i,mt(m,3))}var QR=Lc(function(i,m,M){ln.call(i,M)?i[M].push(m):ko(i,M,[m])});function ZR(i,m,M,j){i=Qr(i)?i:ya(i),M=M&&!j?Nt(M):0;var G=i.length;return M<0&&(M=lr(G+M,0)),qc(i)?M<=G&&i.indexOf(m,M)>-1:!!G&&se(i,m,M)>-1}var JR=Bt(function(i,m,M){var j=-1,G=typeof m=="function",ee=Qr(i)?xe(i.length):[];return Yo(i,function(le){ee[++j]=G?cr(m,le,M):tl(le,m,M)}),ee}),eL=Lc(function(i,m,M){ko(i,M,m)});function jc(i,m){var M=$t(i)?v:Xy;return M(i,mt(m,3))}function tL(i,m,M,j){return i==null?[]:($t(m)||(m=m==null?[]:[m]),M=j?e:M,$t(M)||(M=M==null?[]:[M]),ew(i,m,M))}var nL=Lc(function(i,m,M){i[M?0:1].push(m)},function(){return[[],[]]});function rL(i,m,M){var j=$t(i)?k:Le,G=arguments.length<3;return j(i,mt(m,4),M,G,Yo)}function iL(i,m,M){var j=$t(i)?D:Le,G=arguments.length<3;return j(i,mt(m,4),M,G,Hy)}function oL(i,m){var M=$t(i)?$r:Uy;return M(i,Vc(mt(m,3)))}function sL(i){var m=$t(i)?Wy:ZI;return m(i)}function aL(i,m,M){(M?Pr(i,m,M):m===e)?m=1:m=Nt(m);var j=$t(i)?MI:JI;return j(i,m)}function lL(i){var m=$t(i)?II:tE;return m(i)}function cL(i){if(i==null)return 0;if(Qr(i))return qc(i)?zt(i):i.length;var m=Ir(i);return m==nt||m==Rn?i.size:yd(i).length}function uL(i,m,M){var j=$t(i)?W:nE;return M&&Pr(i,m,M)&&(m=e),j(i,mt(m,3))}var hL=Bt(function(i,m){if(i==null)return[];var M=m.length;return M>1&&Pr(i,m[0],m[1])?m=[]:M>2&&Pr(m[0],m[1],m[2])&&(m=[m[0]]),ew(i,yr(m,1),[])}),Hc=VM||function(){return cn.Date.now()};function dL(i,m){if(typeof m!="function")throw new un(y);return i=Nt(i),function(){if(--i<1)return m.apply(this,arguments)}}function Gw(i,m,M){return m=M?e:m,m=i&&m==null?i.length:m,So(i,R,e,e,e,e,m)}function Yw(i,m){var M;if(typeof m!="function")throw new un(y);return i=Nt(i),function(){return--i>0&&(M=m.apply(this,arguments)),i<=1&&(m=e),M}}var jd=Bt(function(i,m,M){var j=d;if(M.length){var G=We(M,ma(jd));j|=S}return So(i,j,m,M,G)}),Xw=Bt(function(i,m,M){var j=d|w;if(M.length){var G=We(M,ma(Xw));j|=S}return So(m,j,i,M,G)});function Qw(i,m,M){m=M?e:m;var j=So(i,E,e,e,e,e,e,m);return j.placeholder=Qw.placeholder,j}function Zw(i,m,M){m=M?e:m;var j=So(i,$,e,e,e,e,e,m);return j.placeholder=Zw.placeholder,j}function Jw(i,m,M){var j,G,ee,le,de,ve,Ee=0,Re=!1,De=!1,Ge=!0;if(typeof i!="function")throw new un(y);m=Mi(m)||0,In(M)&&(Re=!!M.leading,De="maxWait"in M,ee=De?lr(Mi(M.maxWait)||0,m):ee,Ge="trailing"in M?!!M.trailing:Ge);function rt(qn){var Vi=j,Mo=G;return j=G=e,Ee=qn,le=i.apply(Mo,Vi),le}function vt(qn){return Ee=qn,de=sl(jt,m),Re?rt(qn):le}function Ft(qn){var Vi=qn-ve,Mo=qn-Ee,yb=m-Vi;return De?Mr(yb,ee-Mo):yb}function yt(qn){var Vi=qn-ve,Mo=qn-Ee;return ve===e||Vi>=m||Vi<0||De&&Mo>=ee}function jt(){var qn=Hc();if(yt(qn))return Gt(qn);de=sl(jt,Ft(qn))}function Gt(qn){return de=e,Ge&&j?rt(qn):(j=G=e,le)}function pi(){de!==e&&cw(de),Ee=0,j=ve=G=de=e}function Fr(){return de===e?le:Gt(Hc())}function gi(){var qn=Hc(),Vi=yt(qn);if(j=arguments,G=this,ve=qn,Vi){if(de===e)return vt(ve);if(De)return cw(de),de=sl(jt,m),rt(ve)}return de===e&&(de=sl(jt,m)),le}return gi.cancel=pi,gi.flush=Fr,gi}var pL=Bt(function(i,m){return jy(i,1,m)}),gL=Bt(function(i,m,M){return jy(i,Mi(m)||0,M)});function fL(i){return So(i,P)}function Uc(i,m){if(typeof i!="function"||m!=null&&typeof m!="function")throw new un(y);var M=function(){var j=arguments,G=m?m.apply(this,j):j[0],ee=M.cache;if(ee.has(G))return ee.get(G);var le=i.apply(this,j);return M.cache=ee.set(G,le)||ee,le};return M.cache=new(Uc.Cache||Co),M}Uc.Cache=Co;function Vc(i){if(typeof i!="function")throw new un(y);return function(){var m=arguments;switch(m.length){case 0:return!i.call(this);case 1:return!i.call(this,m[0]);case 2:return!i.call(this,m[0],m[1]);case 3:return!i.call(this,m[0],m[1],m[2])}return!i.apply(this,m)}}function mL(i){return Yw(2,i)}var vL=rE(function(i,m){m=m.length==1&&$t(m[0])?v(m[0],lt(mt())):v(yr(m,1),lt(mt()));var M=m.length;return Bt(function(j){for(var G=-1,ee=Mr(j.length,M);++G<ee;)j[G]=m[G].call(this,j[G]);return cr(i,this,j)})}),Hd=Bt(function(i,m){var M=We(m,ma(Hd));return So(i,S,e,m,M)}),eb=Bt(function(i,m){var M=We(m,ma(eb));return So(i,C,e,m,M)}),yL=Ao(function(i,m){return So(i,L,e,e,e,m)});function wL(i,m){if(typeof i!="function")throw new un(y);return m=m===e?m:Nt(m),Bt(i,m)}function bL(i,m){if(typeof i!="function")throw new un(y);return m=m==null?0:lr(Nt(m),0),Bt(function(M){var j=M[m],G=Zo(M,0,m);return j&&T(G,j),cr(i,this,G)})}function xL(i,m,M){var j=!0,G=!0;if(typeof i!="function")throw new un(y);return In(M)&&(j="leading"in M?!!M.leading:j,G="trailing"in M?!!M.trailing:G),Jw(i,m,{leading:j,maxWait:m,trailing:G})}function CL(i){return Gw(i,1)}function kL(i,m){return Hd(Td(m),i)}function SL(){if(!arguments.length)return[];var i=arguments[0];return $t(i)?i:[i]}function AL(i){return _i(i,a)}function _L(i,m){return m=typeof m=="function"?m:e,_i(i,a,m)}function TL(i){return _i(i,l|a)}function $L(i,m){return m=typeof m=="function"?m:e,_i(i,l|a,m)}function ML(i,m){return m==null||zy(i,m,pr(m))}function Ui(i,m){return i===m||i!==i&&m!==m}var IL=Pc(fd),EL=Pc(function(i,m){return i>=m}),Ns=qy(function(){return arguments}())?qy:function(i){return Wn(i)&&ln.call(i,"callee")&&!Ly.call(i,"callee")},$t=xe.isArray,RL=Yr?lt(Yr):BI;function Qr(i){return i!=null&&Kc(i.length)&&!To(i)}function Kn(i){return Wn(i)&&Qr(i)}function LL(i){return i===!0||i===!1||Wn(i)&&Dr(i)==Te}var Jo=qM||ep,OL=qo?lt(qo):zI;function NL(i){return Wn(i)&&i.nodeType===1&&!al(i)}function DL(i){if(i==null)return!0;if(Qr(i)&&($t(i)||typeof i=="string"||typeof i.splice=="function"||Jo(i)||va(i)||Ns(i)))return!i.length;var m=Ir(i);if(m==nt||m==Rn)return!i.size;if(ol(i))return!yd(i).length;for(var M in i)if(ln.call(i,M))return!1;return!0}function PL(i,m){return nl(i,m)}function FL(i,m,M){M=typeof M=="function"?M:e;var j=M?M(i,m):e;return j===e?nl(i,m,e,M):!!j}function Ud(i){if(!Wn(i))return!1;var m=Dr(i);return m==Ye||m==Ie||typeof i.message=="string"&&typeof i.name=="string"&&!al(i)}function WL(i){return typeof i=="number"&&Ny(i)}function To(i){if(!In(i))return!1;var m=Dr(i);return m==qe||m==dt||m==fe||m==gr}function tb(i){return typeof i=="number"&&i==Nt(i)}function Kc(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=U}function In(i){var m=typeof i;return i!=null&&(m=="object"||m=="function")}function Wn(i){return i!=null&&typeof i=="object"}var nb=Pn?lt(Pn):HI;function BL(i,m){return i===m||vd(i,m,Od(m))}function zL(i,m,M){return M=typeof M=="function"?M:e,vd(i,m,Od(m),M)}function jL(i){return rb(i)&&i!=+i}function HL(i){if(_E(i))throw new ct(p);return Gy(i)}function UL(i){return i===null}function VL(i){return i==null}function rb(i){return typeof i=="number"||Wn(i)&&Dr(i)==pt}function al(i){if(!Wn(i)||Dr(i)!=fn)return!1;var m=wc(i);if(m===null)return!0;var M=ln.call(m,"constructor")&&m.constructor;return typeof M=="function"&&M instanceof M&&fc.call(M)==zM}var Vd=ai?lt(ai):UI;function KL(i){return tb(i)&&i>=-U&&i<=U}var ib=li?lt(li):VI;function qc(i){return typeof i=="string"||!$t(i)&&Wn(i)&&Dr(i)==Ln}function di(i){return typeof i=="symbol"||Wn(i)&&Dr(i)==Qn}var va=ki?lt(ki):KI;function qL(i){return i===e}function GL(i){return Wn(i)&&Ir(i)==He}function YL(i){return Wn(i)&&Dr(i)==ke}var XL=Pc(wd),QL=Pc(function(i,m){return i<=m});function ob(i){if(!i)return[];if(Qr(i))return qc(i)?Tt(i):Xr(i);if(Ga&&i[Ga])return be(i[Ga]());var m=Ir(i),M=m==nt?Me:m==Rn?Ve:ya;return M(i)}function $o(i){if(!i)return i===0?i:0;if(i=Mi(i),i===B||i===-B){var m=i<0?-1:1;return m*q}return i===i?i:0}function Nt(i){var m=$o(i),M=m%1;return m===m?M?m-M:m:0}function sb(i){return i?Es(Nt(i),0,te):0}function Mi(i){if(typeof i=="number")return i;if(di(i))return Z;if(In(i)){var m=typeof i.valueOf=="function"?i.valueOf():i;i=In(m)?m+"":m}if(typeof i!="string")return i===0?i:+i;i=wn(i);var M=oa.test(i);return M||Un.test(i)?yn(i.slice(2),M?2:8):Ut.test(i)?Z:+i}function ab(i){return io(i,Zr(i))}function ZL(i){return i?Es(Nt(i),-U,U):i===0?i:0}function sn(i){return i==null?"":hi(i)}var JL=ga(function(i,m){if(ol(m)||Qr(m)){io(m,pr(m),i);return}for(var M in m)ln.call(m,M)&&Ja(i,M,m[M])}),lb=ga(function(i,m){io(m,Zr(m),i)}),Gc=ga(function(i,m,M,j){io(m,Zr(m),i,j)}),eO=ga(function(i,m,M,j){io(m,pr(m),i,j)}),tO=Ao(dd);function nO(i,m){var M=pa(i);return m==null?M:By(M,m)}var rO=Bt(function(i,m){i=Pt(i);var M=-1,j=m.length,G=j>2?m[2]:e;for(G&&Pr(m[0],m[1],G)&&(j=1);++M<j;)for(var ee=m[M],le=Zr(ee),de=-1,ve=le.length;++de<ve;){var Ee=le[de],Re=i[Ee];(Re===e||Ui(Re,Fn[Ee])&&!ln.call(i,Ee))&&(i[Ee]=ee[Ee])}return i}),iO=Bt(function(i){return i.push(e,Aw),cr(cb,e,i)});function oO(i,m){return Q(i,mt(m,3),ro)}function sO(i,m){return Q(i,mt(m,3),gd)}function aO(i,m){return i==null?i:pd(i,mt(m,3),Zr)}function lO(i,m){return i==null?i:Vy(i,mt(m,3),Zr)}function cO(i,m){return i&&ro(i,mt(m,3))}function uO(i,m){return i&&gd(i,mt(m,3))}function hO(i){return i==null?[]:Mc(i,pr(i))}function dO(i){return i==null?[]:Mc(i,Zr(i))}function Kd(i,m,M){var j=i==null?e:Rs(i,m);return j===e?M:j}function pO(i,m){return i!=null&&$w(i,m,DI)}function qd(i,m){return i!=null&&$w(i,m,PI)}var gO=bw(function(i,m,M){m!=null&&typeof m.toString!="function"&&(m=mc.call(m)),i[m]=M},Yd(Jr)),fO=bw(function(i,m,M){m!=null&&typeof m.toString!="function"&&(m=mc.call(m)),ln.call(i,m)?i[m].push(M):i[m]=[M]},mt),mO=Bt(tl);function pr(i){return Qr(i)?Fy(i):yd(i)}function Zr(i){return Qr(i)?Fy(i,!0):qI(i)}function vO(i,m){var M={};return m=mt(m,3),ro(i,function(j,G,ee){ko(M,m(j,G,ee),j)}),M}function yO(i,m){var M={};return m=mt(m,3),ro(i,function(j,G,ee){ko(M,G,m(j,G,ee))}),M}var wO=ga(function(i,m,M){Ic(i,m,M)}),cb=ga(function(i,m,M,j){Ic(i,m,M,j)}),bO=Ao(function(i,m){var M={};if(i==null)return M;var j=!1;m=v(m,function(ee){return ee=Qo(ee,i),j||(j=ee.length>1),ee}),io(i,Rd(i),M),j&&(M=_i(M,l|u|a,gE));for(var G=m.length;G--;)Sd(M,m[G]);return M});function xO(i,m){return ub(i,Vc(mt(m)))}var CO=Ao(function(i,m){return i==null?{}:YI(i,m)});function ub(i,m){if(i==null)return{};var M=v(Rd(i),function(j){return[j]});return m=mt(m),tw(i,M,function(j,G){return m(j,G[0])})}function kO(i,m,M){m=Qo(m,i);var j=-1,G=m.length;for(G||(G=1,i=e);++j<G;){var ee=i==null?e:i[oo(m[j])];ee===e&&(j=G,ee=M),i=To(ee)?ee.call(i):ee}return i}function SO(i,m,M){return i==null?i:rl(i,m,M)}function AO(i,m,M,j){return j=typeof j=="function"?j:e,i==null?i:rl(i,m,M,j)}var hb=kw(pr),db=kw(Zr);function _O(i,m,M){var j=$t(i),G=j||Jo(i)||va(i);if(m=mt(m,4),M==null){var ee=i&&i.constructor;G?M=j?new ee:[]:In(i)?M=To(ee)?pa(wc(i)):{}:M={}}return(G?mr:ro)(i,function(le,de,ve){return m(M,le,de,ve)}),M}function TO(i,m){return i==null?!0:Sd(i,m)}function $O(i,m,M){return i==null?i:sw(i,m,Td(M))}function MO(i,m,M,j){return j=typeof j=="function"?j:e,i==null?i:sw(i,m,Td(M),j)}function ya(i){return i==null?[]:Sn(i,pr(i))}function IO(i){return i==null?[]:Sn(i,Zr(i))}function EO(i,m,M){return M===e&&(M=m,m=e),M!==e&&(M=Mi(M),M=M===M?M:0),m!==e&&(m=Mi(m),m=m===m?m:0),Es(Mi(i),m,M)}function RO(i,m,M){return m=$o(m),M===e?(M=m,m=0):M=$o(M),i=Mi(i),FI(i,m,M)}function LO(i,m,M){if(M&&typeof M!="boolean"&&Pr(i,m,M)&&(m=M=e),M===e&&(typeof m=="boolean"?(M=m,m=e):typeof i=="boolean"&&(M=i,i=e)),i===e&&m===e?(i=0,m=1):(i=$o(i),m===e?(m=i,i=0):m=$o(m)),i>m){var j=i;i=m,m=j}if(M||i%1||m%1){var G=Dy();return Mr(i+G*(m-i+Be("1e-"+((G+"").length-1))),m)}return xd(i,m)}var OO=fa(function(i,m,M){return m=m.toLowerCase(),i+(M?pb(m):m)});function pb(i){return Gd(sn(i).toLowerCase())}function gb(i){return i=sn(i),i&&i.replace(On,An).replace(yo,"")}function NO(i,m,M){i=sn(i),m=hi(m);var j=i.length;M=M===e?j:Es(Nt(M),0,j);var G=M;return M-=m.length,M>=0&&i.slice(M,G)==m}function DO(i){return i=sn(i),i&&Ha.test(i)?i.replace(uo,V):i}function PO(i){return i=sn(i),i&&Fi.test(i)?i.replace(Sr,"\\$&"):i}var FO=fa(function(i,m,M){return i+(M?"-":"")+m.toLowerCase()}),WO=fa(function(i,m,M){return i+(M?" ":"")+m.toLowerCase()}),BO=vw("toLowerCase");function zO(i,m,M){i=sn(i),m=Nt(m);var j=m?zt(i):0;if(!m||j>=m)return i;var G=(m-j)/2;return Dc(kc(G),M)+i+Dc(Cc(G),M)}function jO(i,m,M){i=sn(i),m=Nt(m);var j=m?zt(i):0;return m&&j<m?i+Dc(m-j,M):i}function HO(i,m,M){i=sn(i),m=Nt(m);var j=m?zt(i):0;return m&&j<m?Dc(m-j,M)+i:i}function UO(i,m,M){return M||m==null?m=0:m&&(m=+m),QM(sn(i).replace($n,""),m||0)}function VO(i,m,M){return(M?Pr(i,m,M):m===e)?m=1:m=Nt(m),Cd(sn(i),m)}function KO(){var i=arguments,m=sn(i[0]);return i.length<3?m:m.replace(i[1],i[2])}var qO=fa(function(i,m,M){return i+(M?"_":"")+m.toLowerCase()});function GO(i,m,M){return M&&typeof M!="number"&&Pr(i,m,M)&&(m=M=e),M=M===e?te:M>>>0,M?(i=sn(i),i&&(typeof m=="string"||m!=null&&!Vd(m))&&(m=hi(m),!m&&oe(i))?Zo(Tt(i),0,M):i.split(m,M)):[]}var YO=fa(function(i,m,M){return i+(M?" ":"")+Gd(m)});function XO(i,m,M){return i=sn(i),M=M==null?0:Es(Nt(M),0,i.length),m=hi(m),i.slice(M,M+m.length)==m}function QO(i,m,M){var j=J.templateSettings;M&&Pr(i,m,M)&&(m=e),i=sn(i),m=Gc({},m,j,Sw);var G=Gc({},m.imports,j.imports,Sw),ee=pr(G),le=Sn(G,ee),de,ve,Ee=0,Re=m.interpolate||vi,De="__p += '",Ge=Nr((m.escape||vi).source+"|"+Re.source+"|"+(Re===ys?Bi:vi).source+"|"+(m.evaluate||vi).source+"|$","g"),rt="//# sourceURL="+(ln.call(m,"sourceURL")?(m.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++no+"]")+`
|
1471
1471
|
`;i.replace(Ge,function(yt,jt,Gt,pi,Fr,gi){return Gt||(Gt=pi),De+=i.slice(Ee,gi).replace(Tr,X),jt&&(de=!0,De+=`' +
|
1472
1472
|
__e(`+jt+`) +
|
1473
1473
|
'`),Fr&&(ve=!0,De+=`';
|
@@ -1484,18 +1484,18 @@ __p += '`),Gt&&(De+=`' +
|
|
1484
1484
|
function print() { __p += __j.call(arguments, '') }
|
1485
1485
|
`:`;
|
1486
1486
|
`)+De+`return __p
|
1487
|
-
}`;var Ft=mb(function(){return Lt(ee,rt+"return "+De).apply(e,le)});if(Ft.source=De,Ud(Ft))throw Ft;return Ft}function ZO(i){return sn(i).toLowerCase()}function JO(i){return sn(i).toUpperCase()}function eN(i,m,M){if(i=sn(i),i&&(M||m===e))return yn(i);if(!i||!(m=hi(m)))return i;var j=Tt(i),G=Tt(m),ee=Rt(j,G),le=Zn(j,G)+1;return Zo(j,ee,le).join("")}function tN(i,m,M){if(i=sn(i),i&&(M||m===e))return i.slice(0,Wt(i)+1);if(!i||!(m=hi(m)))return i;var j=Tt(i),G=Zn(j,Tt(m))+1;return Zo(j,0,G).join("")}function nN(i,m,M){if(i=sn(i),i&&(M||m===e))return i.replace(Tn,"");if(!i||!(m=hi(m)))return i;var j=Tt(i),G=Rt(j,Tt(m));return Zo(j,G).join("")}function rN(i,m){var M=I,j=H;if(Mn(m)){var G="separator"in m?m.separator:G;M="length"in m?Nt(m.length):M,j="omission"in m?hi(m.omission):j}i=sn(i);var ee=i.length;if(oe(i)){var le=Tt(i);ee=le.length}if(M>=ee)return i;var de=M-zt(j);if(de<1)return j;var ve=le?Zo(le,0,de).join(""):i.slice(0,de);if(G===e)return ve+j;if(le&&(de+=ve.length-de),Vd(G)){if(i.slice(de).search(G)){var Ee,Re=ve;for(G.global||(G=Nr(G.source,sn(oi.exec(G))+"g")),G.lastIndex=0;Ee=G.exec(Re);)var De=Ee.index;ve=ve.slice(0,De===e?de:De)}}else if(i.indexOf(hi(G),de)!=de){var Ge=ve.lastIndexOf(G);Ge>-1&&(ve=ve.slice(0,Ge))}return ve+j}function iN(i){return i=sn(i),i&&Do.test(i)?i.replace(fr,ft):i}var oN=fa(function(i,m,M){return i+(M?" ":"")+m.toUpperCase()}),Gd=vw("toUpperCase");function fb(i,m,M){return i=sn(i),m=M?e:m,m===e?ge(i)?An(i):Y(i):i.match(m)||[]}var mb=Bt(function(i,m){try{return lr(i,e,m)}catch(M){return Ud(M)?M:new ct(M)}}),sN=Ao(function(i,m){return mr(m,function(M){M=oo(M),ko(i,M,jd(i[M],i))}),i});function aN(i){var m=i==null?0:i.length,M=mt();return i=m?v(i,function(j){if(typeof j[1]!="function")throw new un(y);return[M(j[0]),j[1]]}):[],Bt(function(j){for(var G=-1;++G<m;){var ee=i[G];if(lr(ee[0],this,j))return lr(ee[1],this,j)}})}function lN(i){return LI(_i(i,l))}function Yd(i){return function(){return i}}function cN(i,m){return i==null||i!==i?m:i}var uN=ww(),hN=ww(!0);function Jr(i){return i}function Xd(i){return Yy(typeof i=="function"?i:_i(i,l))}function dN(i){return Qy(_i(i,l))}function pN(i,m){return Zy(i,_i(m,l))}var gN=Bt(function(i,m){return function(M){return tl(M,i,m)}}),fN=Bt(function(i,m){return function(M){return tl(i,M,m)}});function Qd(i,m,M){var j=dr(m),G=Mc(m,j);M==null&&!(Mn(m)&&(G.length||!j.length))&&(M=m,m=i,i=this,G=Mc(m,dr(m)));var ee=!(Mn(M)&&"chain"in M)||!!M.chain,le=To(i);return mr(G,function(de){var ve=m[de];i[de]=ve,le&&(i.prototype[de]=function(){var Ee=this.__chain__;if(ee||Ee){var Re=i(this.__wrapped__),De=Re.__actions__=Xr(this.__actions__);return De.push({func:ve,args:arguments,thisArg:i}),Re.__chain__=Ee,Re}return ve.apply(i,T([this.value()],arguments))})}),i}function mN(){return cn._===this&&(cn._=jM),this}function Zd(){}function vN(i){return i=Nt(i),Bt(function(m){return Jy(m,i)})}var yN=Md(v),wN=Md(vr),bN=Md(W);function vb(i){return Dd(i)?we(oo(i)):XI(i)}function xN(i){return function(m){return i==null?e:Rs(i,m)}}var CN=xw(),kN=xw(!0);function Jd(){return[]}function ep(){return!1}function SN(){return{}}function AN(){return""}function _N(){return!0}function TN(i,m){if(i=Nt(i),i<1||i>U)return[];var M=te,j=Mr(i,te);m=mt(m),i-=te;for(var G=Ze(j,m);++M<i;)m(M);return G}function $N(i){return $t(i)?v(i,oo):di(i)?[i]:Xr(Pw(sn(i)))}function MN(i){var m=++BM;return sn(i)+m}var IN=Nc(function(i,m){return i+m},0),EN=Id("ceil"),RN=Nc(function(i,m){return i/m},1),LN=Id("floor");function ON(i){return i&&i.length?$c(i,Jr,fd):e}function NN(i,m){return i&&i.length?$c(i,mt(m,2),fd):e}function DN(i){return me(i,Jr)}function PN(i,m){return me(i,mt(m,2))}function FN(i){return i&&i.length?$c(i,Jr,wd):e}function WN(i,m){return i&&i.length?$c(i,mt(m,2),wd):e}var BN=Nc(function(i,m){return i*m},1),zN=Id("round"),jN=Nc(function(i,m){return i-m},0);function HN(i){return i&&i.length?at(i,Jr):0}function UN(i,m){return i&&i.length?at(i,mt(m,2)):0}return J.after=dL,J.ary=Gw,J.assign=JL,J.assignIn=lb,J.assignInWith=Gc,J.assignWith=eO,J.at=tO,J.before=Yw,J.bind=jd,J.bindAll=sN,J.bindKey=Xw,J.castArray=SL,J.chain=Vw,J.chunk=LE,J.compact=OE,J.concat=NE,J.cond=aN,J.conforms=lN,J.constant=Yd,J.countBy=HR,J.create=nO,J.curry=Qw,J.curryRight=Zw,J.debounce=Jw,J.defaults=rO,J.defaultsDeep=iO,J.defer=pL,J.delay=gL,J.difference=DE,J.differenceBy=PE,J.differenceWith=FE,J.drop=WE,J.dropRight=BE,J.dropRightWhile=zE,J.dropWhile=jE,J.fill=HE,J.filter=VR,J.flatMap=GR,J.flatMapDeep=YR,J.flatMapDepth=XR,J.flatten=zw,J.flattenDeep=UE,J.flattenDepth=VE,J.flip=fL,J.flow=uN,J.flowRight=hN,J.fromPairs=KE,J.functions=hO,J.functionsIn=dO,J.groupBy=QR,J.initial=GE,J.intersection=YE,J.intersectionBy=XE,J.intersectionWith=QE,J.invert=gO,J.invertBy=fO,J.invokeMap=JR,J.iteratee=Xd,J.keyBy=eL,J.keys=dr,J.keysIn=Zr,J.map=jc,J.mapKeys=vO,J.mapValues=yO,J.matches=dN,J.matchesProperty=pN,J.memoize=Uc,J.merge=wO,J.mergeWith=cb,J.method=gN,J.methodOf=fN,J.mixin=Qd,J.negate=Vc,J.nthArg=vN,J.omit=bO,J.omitBy=xO,J.once=mL,J.orderBy=tL,J.over=yN,J.overArgs=vL,J.overEvery=wN,J.overSome=bN,J.partial=Hd,J.partialRight=eb,J.partition=nL,J.pick=CO,J.pickBy=ub,J.property=vb,J.propertyOf=xN,J.pull=tR,J.pullAll=Hw,J.pullAllBy=nR,J.pullAllWith=rR,J.pullAt=iR,J.range=CN,J.rangeRight=kN,J.rearg=yL,J.reject=oL,J.remove=oR,J.rest=wL,J.reverse=Bd,J.sampleSize=aL,J.set=SO,J.setWith=AO,J.shuffle=lL,J.slice=sR,J.sortBy=hL,J.sortedUniq=pR,J.sortedUniqBy=gR,J.split=GO,J.spread=bL,J.tail=fR,J.take=mR,J.takeRight=vR,J.takeRightWhile=yR,J.takeWhile=wR,J.tap=OR,J.throttle=xL,J.thru=zc,J.toArray=ob,J.toPairs=hb,J.toPairsIn=db,J.toPath=$N,J.toPlainObject=ab,J.transform=_O,J.unary=CL,J.union=bR,J.unionBy=xR,J.unionWith=CR,J.uniq=kR,J.uniqBy=SR,J.uniqWith=AR,J.unset=TO,J.unzip=zd,J.unzipWith=Uw,J.update=$O,J.updateWith=MO,J.values=ya,J.valuesIn=IO,J.without=_R,J.words=fb,J.wrap=kL,J.xor=TR,J.xorBy=$R,J.xorWith=MR,J.zip=IR,J.zipObject=ER,J.zipObjectDeep=RR,J.zipWith=LR,J.entries=hb,J.entriesIn=db,J.extend=lb,J.extendWith=Gc,Qd(J,J),J.add=IN,J.attempt=mb,J.camelCase=OO,J.capitalize=pb,J.ceil=EN,J.clamp=EO,J.clone=AL,J.cloneDeep=TL,J.cloneDeepWith=$L,J.cloneWith=_L,J.conformsTo=ML,J.deburr=gb,J.defaultTo=cN,J.divide=RN,J.endsWith=NO,J.eq=Ui,J.escape=DO,J.escapeRegExp=PO,J.every=UR,J.find=KR,J.findIndex=Ww,J.findKey=oO,J.findLast=qR,J.findLastIndex=Bw,J.findLastKey=sO,J.floor=LN,J.forEach=Kw,J.forEachRight=qw,J.forIn=aO,J.forInRight=lO,J.forOwn=cO,J.forOwnRight=uO,J.get=Kd,J.gt=IL,J.gte=EL,J.has=pO,J.hasIn=qd,J.head=jw,J.identity=Jr,J.includes=ZR,J.indexOf=qE,J.inRange=RO,J.invoke=mO,J.isArguments=Ns,J.isArray=$t,J.isArrayBuffer=RL,J.isArrayLike=Qr,J.isArrayLikeObject=Vn,J.isBoolean=LL,J.isBuffer=Jo,J.isDate=OL,J.isElement=NL,J.isEmpty=DL,J.isEqual=PL,J.isEqualWith=FL,J.isError=Ud,J.isFinite=WL,J.isFunction=To,J.isInteger=tb,J.isLength=Kc,J.isMap=nb,J.isMatch=BL,J.isMatchWith=zL,J.isNaN=jL,J.isNative=HL,J.isNil=VL,J.isNull=UL,J.isNumber=rb,J.isObject=Mn,J.isObjectLike=Fn,J.isPlainObject=al,J.isRegExp=Vd,J.isSafeInteger=KL,J.isSet=ib,J.isString=qc,J.isSymbol=di,J.isTypedArray=va,J.isUndefined=qL,J.isWeakMap=GL,J.isWeakSet=YL,J.join=ZE,J.kebabCase=FO,J.last=$i,J.lastIndexOf=JE,J.lowerCase=WO,J.lowerFirst=BO,J.lt=XL,J.lte=QL,J.max=ON,J.maxBy=NN,J.mean=DN,J.meanBy=PN,J.min=FN,J.minBy=WN,J.stubArray=Jd,J.stubFalse=ep,J.stubObject=SN,J.stubString=AN,J.stubTrue=_N,J.multiply=BN,J.nth=eR,J.noConflict=mN,J.noop=Zd,J.now=Hc,J.pad=zO,J.padEnd=jO,J.padStart=HO,J.parseInt=UO,J.random=LO,J.reduce=rL,J.reduceRight=iL,J.repeat=VO,J.replace=KO,J.result=kO,J.round=zN,J.runInContext=pe,J.sample=sL,J.size=cL,J.snakeCase=qO,J.some=uL,J.sortedIndex=aR,J.sortedIndexBy=lR,J.sortedIndexOf=cR,J.sortedLastIndex=uR,J.sortedLastIndexBy=hR,J.sortedLastIndexOf=dR,J.startCase=YO,J.startsWith=XO,J.subtract=jN,J.sum=HN,J.sumBy=UN,J.template=QO,J.times=TN,J.toFinite=$o,J.toInteger=Nt,J.toLength=sb,J.toLower=ZO,J.toNumber=Mi,J.toSafeInteger=ZL,J.toString=sn,J.toUpper=JO,J.trim=eN,J.trimEnd=tN,J.trimStart=nN,J.truncate=rN,J.unescape=iN,J.uniqueId=MN,J.upperCase=oN,J.upperFirst=Gd,J.each=Kw,J.eachRight=qw,J.first=jw,Qd(J,function(){var i={};return ro(J,function(m,M){ln.call(J.prototype,M)||(i[M]=m)}),i}(),{chain:!1}),J.VERSION=r,mr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(i){J[i].placeholder=J}),mr(["drop","take"],function(i,m){Kt.prototype[i]=function(M){M=M===e?1:ar(Nt(M),0);var j=this.__filtered__&&!m?new Kt(this):this.clone();return j.__filtered__?j.__takeCount__=Mr(M,j.__takeCount__):j.__views__.push({size:Mr(M,te),type:i+(j.__dir__<0?"Right":"")}),j},Kt.prototype[i+"Right"]=function(M){return this.reverse()[i](M).reverse()}}),mr(["filter","map","takeWhile"],function(i,m){var M=m+1,j=M==_||M==N;Kt.prototype[i]=function(G){var ee=this.clone();return ee.__iteratees__.push({iteratee:mt(G,3),type:M}),ee.__filtered__=ee.__filtered__||j,ee}}),mr(["head","last"],function(i,m){var M="take"+(m?"Right":"");Kt.prototype[i]=function(){return this[M](1).value()[0]}}),mr(["initial","tail"],function(i,m){var M="drop"+(m?"":"Right");Kt.prototype[i]=function(){return this.__filtered__?new Kt(this):this[M](1)}}),Kt.prototype.compact=function(){return this.filter(Jr)},Kt.prototype.find=function(i){return this.filter(i).head()},Kt.prototype.findLast=function(i){return this.reverse().find(i)},Kt.prototype.invokeMap=Bt(function(i,m){return typeof i=="function"?new Kt(this):this.map(function(M){return tl(M,i,m)})}),Kt.prototype.reject=function(i){return this.filter(Vc(mt(i)))},Kt.prototype.slice=function(i,m){i=Nt(i);var M=this;return M.__filtered__&&(i>0||m<0)?new Kt(M):(i<0?M=M.takeRight(-i):i&&(M=M.drop(i)),m!==e&&(m=Nt(m),M=m<0?M.dropRight(-m):M.take(m-i)),M)},Kt.prototype.takeRightWhile=function(i){return this.reverse().takeWhile(i).reverse()},Kt.prototype.toArray=function(){return this.take(te)},ro(Kt.prototype,function(i,m){var M=/^(?:filter|find|map|reject)|While$/.test(m),j=/^(?:head|last)$/.test(m),G=J[j?"take"+(m=="last"?"Right":""):m],ee=j||/^find/.test(m);G&&(J.prototype[m]=function(){var le=this.__wrapped__,de=j?[1]:arguments,ve=le instanceof Kt,Ee=de[0],Re=ve||$t(le),De=function(jt){var Gt=G.apply(J,T([jt],de));return j&&Ge?Gt[0]:Gt};Re&&M&&typeof Ee=="function"&&Ee.length!=1&&(ve=Re=!1);var Ge=this.__chain__,rt=!!this.__actions__.length,vt=ee&&!Ge,Ft=ve&&!rt;if(!ee&&Re){le=Ft?le:new Kt(this);var yt=i.apply(le,de);return yt.__actions__.push({func:zc,args:[De],thisArg:e}),new Ai(yt,Ge)}return vt&&Ft?i.apply(this,de):(yt=this.thru(De),vt?j?yt.value()[0]:yt.value():yt)})}),mr(["pop","push","shift","sort","splice","unshift"],function(i){var m=hr[i],M=/^(?:push|sort|unshift)$/.test(i)?"tap":"thru",j=/^(?:pop|shift)$/.test(i);J.prototype[i]=function(){var G=arguments;if(j&&!this.__chain__){var ee=this.value();return m.apply($t(ee)?ee:[],G)}return this[M](function(le){return m.apply($t(le)?le:[],G)})}}),ro(Kt.prototype,function(i,m){var M=J[m];if(M){var j=M.name+"";ln.call(da,j)||(da[j]=[]),da[j].push({name:m,func:M})}}),da[Oc(e,w).name]=[{name:"wrapper",func:e}],Kt.prototype.clone=iI,Kt.prototype.reverse=oI,Kt.prototype.value=sI,J.prototype.at=NR,J.prototype.chain=DR,J.prototype.commit=PR,J.prototype.next=FR,J.prototype.plant=BR,J.prototype.reverse=zR,J.prototype.toJSON=J.prototype.valueOf=J.prototype.value=jR,J.prototype.first=J.prototype.head,Ga&&(J.prototype[Ga]=WR),J},qt=Jn();Qn?((Qn.exports=qt)._=qt,bn._=qt):cn._=qt}).call(BC)}(Ll,Ll.exports)),Ll.exports}var jC=zC();er("O",pl(jC)).debounce(function(){this.rebuildDisplayText()},300);var rf={exports:{}},of;function HC(){return of||(of=1,function(n,t){(function(){ace.require(["ace/mode/text"],function(e){n&&(n.exports=e)})})()}(rf)),rf.exports}HC();const UC=!0,nr="u-",VC="uplot",KC=nr+"hz",qC=nr+"vt",GC=nr+"title",YC=nr+"wrap",XC=nr+"under",QC=nr+"over",ZC=nr+"axis",cs=nr+"off",JC=nr+"select",ek=nr+"cursor-x",tk=nr+"cursor-y",nk=nr+"cursor-pt",rk=nr+"legend",ik=nr+"live",ok=nr+"inline",sk=nr+"series",ak=nr+"marker",sf=nr+"label",lk=nr+"value",Ma="width",Ia="height",Ea="top",af="bottom",Us="left",_u="right",Tu="#000",lf=Tu+"0",$u="mousemove",cf="mousedown",Mu="mouseup",uf="mouseenter",hf="mouseleave",df="dblclick",ck="resize",uk="scroll",pf="change",Ol="dppxchange",Iu="--",Vs=typeof window<"u",Eu=Vs?document:null,Ks=Vs?window:null,hk=Vs?navigator:null;let Jt,Nl;function Ru(){let n=devicePixelRatio;Jt!=n&&(Jt=n,Nl&&Nu(pf,Nl,Ru),Nl=matchMedia(`(min-resolution: ${Jt-.001}dppx) and (max-resolution: ${Jt+.001}dppx)`),us(pf,Nl,Ru),Ks.dispatchEvent(new CustomEvent(Ol)))}function ti(n,t){if(t!=null){let e=n.classList;!e.contains(t)&&e.add(t)}}function Lu(n,t){let e=n.classList;e.contains(t)&&e.remove(t)}function wn(n,t,e){n.style[t]=e+"px"}function Ri(n,t,e,r){let f=Eu.createElement(n);return t!=null&&ti(f,t),e!=null&&e.insertBefore(f,r),f}function fi(n,t){return Ri("div",n,t)}const gf=new WeakMap;function qi(n,t,e,r,f){let p="translate("+t+"px,"+e+"px)",y=gf.get(n);p!=y&&(n.style.transform=p,gf.set(n,p),t<0||e<0||t>r||e>f?ti(n,cs):Lu(n,cs))}const ff=new WeakMap;function mf(n,t,e){let r=t+e,f=ff.get(n);r!=f&&(ff.set(n,r),n.style.background=t,n.style.borderColor=e)}const vf=new WeakMap;function yf(n,t,e,r){let f=t+""+e,p=vf.get(n);f!=p&&(vf.set(n,f),n.style.height=e+"px",n.style.width=t+"px",n.style.marginLeft=r?-t/2+"px":0,n.style.marginTop=r?-e/2+"px":0)}const Ou={passive:!0},dk={...Ou,capture:!0};function us(n,t,e,r){t.addEventListener(n,e,r?dk:Ou)}function Nu(n,t,e,r){t.removeEventListener(n,e,Ou)}Vs&&Ru();function Li(n,t,e,r){let f;e=e||0,r=r||t.length-1;let p=r<=2147483647;for(;r-e>1;)f=p?e+r>>1:ri((e+r)/2),t[f]<n?e=f:r=f;return n-t[e]<=t[r]-n?e:r}function wf(n){return(t,e,r)=>{let f=-1,p=-1;for(let y=e;y<=r;y++)if(n(t[y])){f=y;break}for(let y=r;y>=e;y--)if(n(t[y])){p=y;break}return[f,p]}}const bf=n=>n!=null,xf=n=>n!=null&&n>0,Dl=wf(bf),pk=wf(xf);function gk(n,t,e,r=0,f=!1){let p=f?pk:Dl,y=f?xf:bf;[t,e]=p(n,t,e);let b=n[t],h=n[t];if(t>-1)if(r==1)b=n[t],h=n[e];else if(r==-1)b=n[e],h=n[t];else for(let g=t;g<=e;g++){let s=n[g];y(s)&&(s<b?b=s:s>h&&(h=s))}return[b??pr,h??-1/0]}function Pl(n,t,e,r){let f=Sf(n),p=Sf(t);n==t&&(f==-1?(n*=e,t/=e):(n/=e,t*=e));let y=e==10?ao:Af,b=f==1?ri:mi,h=p==1?mi:ri,g=b(y(rr(n))),s=h(y(rr(t))),l=qs(e,g),u=qs(e,s);return e==10&&(g<0&&(l=dn(l,-g)),s<0&&(u=dn(u,-s))),r||e==2?(n=l*f,t=u*p):(n=Rf(n,l),t=Bl(t,u)),[n,t]}function Du(n,t,e,r){let f=Pl(n,t,e,r);return n==0&&(f[0]=0),t==0&&(f[1]=0),f}const Pu=.1,Cf={mode:3,pad:Pu},Ra={pad:0,soft:null,mode:0},fk={min:Ra,max:Ra};function Fl(n,t,e,r){return zl(e)?kf(n,t,e):(Ra.pad=e,Ra.soft=r?0:null,Ra.mode=r?3:0,kf(n,t,fk))}function Qt(n,t){return n??t}function mk(n,t,e){for(t=Qt(t,0),e=Qt(e,n.length-1);t<=e;){if(n[t]!=null)return!0;t++}return!1}function kf(n,t,e){let r=e.min,f=e.max,p=Qt(r.pad,0),y=Qt(f.pad,0),b=Qt(r.hard,-1/0),h=Qt(f.hard,pr),g=Qt(r.soft,pr),s=Qt(f.soft,-1/0),l=Qt(r.mode,0),u=Qt(f.mode,0),a=t-n,o=ao(a),c=Er(rr(n),rr(t)),d=ao(c),w=rr(d-o);(a<1e-24||w>10)&&(a=0,(n==0||t==0)&&(a=1e-24,l==2&&g!=pr&&(p=0),u==2&&s!=-1/0&&(y=0)));let x=a||c||1e3,E=ao(x),$=qs(10,ri(E)),S=x*(a==0?n==0?.1:1:p),C=dn(Rf(n-S,$/10),24),R=n>=g&&(l==1||l==3&&C<=g||l==2&&C>=g)?g:pr,L=Er(b,C<R&&n>=R?R:Oi(R,C)),P=x*(a==0?t==0?.1:1:y),I=dn(Bl(t+P,$/10),24),H=t<=s&&(u==1||u==3&&I>=s||u==2&&I<=s)?s:-1/0,F=Oi(h,I>H&&t<=H?H:Er(H,I));return L==F&&L==0&&(F=100),[L,F]}const vk=new Intl.NumberFormat(Vs?hk.language:"en-US"),Fu=n=>vk.format(n),ni=Math,Wl=ni.PI,rr=ni.abs,ri=ni.floor,ir=ni.round,mi=ni.ceil,Oi=ni.min,Er=ni.max,qs=ni.pow,Sf=ni.sign,ao=ni.log10,Af=ni.log2,yk=(n,t=1)=>ni.sinh(n)*t,Wu=(n,t=1)=>ni.asinh(n/t),pr=1/0;function _f(n){return(ao((n^n>>31)-(n>>31))|0)+1}function Bu(n,t,e){return Oi(Er(n,t),e)}function Tf(n){return typeof n=="function"}function Ht(n){return Tf(n)?n:()=>n}const wk=()=>{},$f=n=>n,Mf=(n,t)=>t,bk=n=>null,If=n=>!0,Ef=(n,t)=>n==t,xk=/\.\d*?(?=9{6,}|0{6,})/gm,hs=n=>{if(Of(n)||Oo.has(n))return n;const t=`${n}`,e=t.match(xk);if(e==null)return n;let r=e[0].length-1;if(t.indexOf("e-")!=-1){let[f,p]=t.split("e");return+`${hs(f)}e${p}`}return dn(n,r)};function ds(n,t){return hs(dn(hs(n/t))*t)}function Bl(n,t){return hs(mi(hs(n/t))*t)}function Rf(n,t){return hs(ri(hs(n/t))*t)}function dn(n,t=0){if(Of(n))return n;let e=10**t,r=n*e*(1+Number.EPSILON);return ir(r)/e}const Oo=new Map;function Lf(n){return((""+n).split(".")[1]||"").length}function La(n,t,e,r){let f=[],p=r.map(Lf);for(let y=t;y<e;y++){let b=rr(y),h=dn(qs(n,y),b);for(let g=0;g<r.length;g++){let s=n==10?+`${r[g]}e${y}`:r[g]*h,l=(y>=0?0:b)+(y>=p[g]?0:p[g]),u=n==10?s:dn(s,l);f.push(u),Oo.set(u,l)}}return f}const Oa={},zu=[],Gs=[null,null],No=Array.isArray,Of=Number.isInteger,Ck=n=>n===void 0;function Nf(n){return typeof n=="string"}function zl(n){let t=!1;if(n!=null){let e=n.constructor;t=e==null||e==Object}return t}function kk(n){return n!=null&&typeof n=="object"}const Sk=Object.getPrototypeOf(Uint8Array),Df="__proto__";function Ys(n,t=zl){let e;if(No(n)){let r=n.find(f=>f!=null);if(No(r)||t(r)){e=Array(n.length);for(let f=0;f<n.length;f++)e[f]=Ys(n[f],t)}else e=n.slice()}else if(n instanceof Sk)e=n.slice();else if(t(n)){e={};for(let r in n)r!=Df&&(e[r]=Ys(n[r],t))}else e=n;return e}function Gn(n){let t=arguments;for(let e=1;e<t.length;e++){let r=t[e];for(let f in r)f!=Df&&(zl(n[f])?Gn(n[f],Ys(r[f])):n[f]=Ys(r[f]))}return n}const Ak=0,_k=1,Tk=2;function $k(n,t,e){for(let r=0,f,p=-1;r<t.length;r++){let y=t[r];if(y>p){for(f=y-1;f>=0&&n[f]==null;)n[f--]=null;for(f=y+1;f<e&&n[f]==null;)n[p=f++]=null}}}function Mk(n,t){if(Rk(n)){let y=n[0].slice();for(let b=1;b<n.length;b++)y.push(...n[b].slice(1));return Lk(y[0])||(y=Ek(y)),y}let e=new Set;for(let y=0;y<n.length;y++){let b=n[y][0],h=b.length;for(let g=0;g<h;g++)e.add(b[g])}let r=[Array.from(e).sort((y,b)=>y-b)],f=r[0].length,p=new Map;for(let y=0;y<f;y++)p.set(r[0][y],y);for(let y=0;y<n.length;y++){let b=n[y],h=b[0];for(let g=1;g<b.length;g++){let s=b[g],l=Array(f).fill(void 0),u=t?t[y][g]:_k,a=[];for(let o=0;o<s.length;o++){let c=s[o],d=p.get(h[o]);c===null?u!=Ak&&(l[d]=c,u==Tk&&a.push(d)):l[d]=c}$k(l,a,f),r.push(l)}}return r}const Ik=typeof queueMicrotask>"u"?n=>Promise.resolve().then(n):queueMicrotask;function Ek(n){let t=n[0],e=t.length,r=Array(e);for(let p=0;p<r.length;p++)r[p]=p;r.sort((p,y)=>t[p]-t[y]);let f=[];for(let p=0;p<n.length;p++){let y=n[p],b=Array(e);for(let h=0;h<e;h++)b[h]=y[r[h]];f.push(b)}return f}function Rk(n){let t=n[0][0],e=t.length;for(let r=1;r<n.length;r++){let f=n[r][0];if(f.length!=e)return!1;if(f!=t){for(let p=0;p<e;p++)if(f[p]!=t[p])return!1}}return!0}function Lk(n,t=100){const e=n.length;if(e<=1)return!0;let r=0,f=e-1;for(;r<=f&&n[r]==null;)r++;for(;f>=r&&n[f]==null;)f--;if(f<=r)return!0;const p=Er(1,ri((f-r+1)/t));for(let y=n[r],b=r+p;b<=f;b+=p){const h=n[b];if(h!=null){if(h<=y)return!1;y=h}}return!0}const Pf=["January","February","March","April","May","June","July","August","September","October","November","December"],Ff=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function Wf(n){return n.slice(0,3)}const Ok=Ff.map(Wf),Nk=Pf.map(Wf),Dk={MMMM:Pf,MMM:Nk,WWWW:Ff,WWW:Ok};function Na(n){return(n<10?"0":"")+n}function Pk(n){return(n<10?"00":n<100?"0":"")+n}const Fk={YYYY:n=>n.getFullYear(),YY:n=>(n.getFullYear()+"").slice(2),MMMM:(n,t)=>t.MMMM[n.getMonth()],MMM:(n,t)=>t.MMM[n.getMonth()],MM:n=>Na(n.getMonth()+1),M:n=>n.getMonth()+1,DD:n=>Na(n.getDate()),D:n=>n.getDate(),WWWW:(n,t)=>t.WWWW[n.getDay()],WWW:(n,t)=>t.WWW[n.getDay()],HH:n=>Na(n.getHours()),H:n=>n.getHours(),h:n=>{let t=n.getHours();return t==0?12:t>12?t-12:t},AA:n=>n.getHours()>=12?"PM":"AM",aa:n=>n.getHours()>=12?"pm":"am",a:n=>n.getHours()>=12?"p":"a",mm:n=>Na(n.getMinutes()),m:n=>n.getMinutes(),ss:n=>Na(n.getSeconds()),s:n=>n.getSeconds(),fff:n=>Pk(n.getMilliseconds())};function ju(n,t){t=t||Dk;let e=[],r=/\{([a-z]+)\}|[^{]+/gi,f;for(;f=r.exec(n);)e.push(f[0][0]=="{"?Fk[f[1]]:f[0]);return p=>{let y="";for(let b=0;b<e.length;b++)y+=typeof e[b]=="string"?e[b]:e[b](p,t);return y}}const Wk=new Intl.DateTimeFormat().resolvedOptions().timeZone;function Bk(n,t){let e;return t=="UTC"||t=="Etc/UTC"?e=new Date(+n+n.getTimezoneOffset()*6e4):t==Wk?e=n:(e=new Date(n.toLocaleString("en-US",{timeZone:t})),e.setMilliseconds(n.getMilliseconds())),e}const Bf=n=>n%1==0,jl=[1,2,2.5,5],zk=La(10,-32,0,jl),zf=La(10,0,32,jl),jk=zf.filter(Bf),ps=zk.concat(zf),Hu=`
|
1488
|
-
`,jf="{YYYY}",Hf=Hu+jf,Uf="{M}/{D}",Da=Hu+Uf,Hl=Da+"/{YY}",Vf="{aa}",Hk="{h}:{mm}",Xs=Hk+Vf,Kf=Hu+Xs,qf=":{ss}",on=null;function Gf(n){let t=n*1e3,e=t*60,r=e*60,f=r*24,p=f*30,y=f*365,b=(n==1?La(10,0,3,jl).filter(Bf):La(10,-3,0,jl)).concat([t,t*5,t*10,t*15,t*30,e,e*5,e*10,e*15,e*30,r,r*2,r*3,r*4,r*6,r*8,r*12,f,f*2,f*3,f*4,f*5,f*6,f*7,f*8,f*9,f*10,f*15,p,p*2,p*3,p*4,p*6,y,y*2,y*5,y*10,y*25,y*50,y*100]);const h=[[y,jf,on,on,on,on,on,on,1],[f*28,"{MMM}",Hf,on,on,on,on,on,1],[f,Uf,Hf,on,on,on,on,on,1],[r,"{h}"+Vf,Hl,on,Da,on,on,on,1],[e,Xs,Hl,on,Da,on,on,on,1],[t,qf,Hl+" "+Xs,on,Da+" "+Xs,on,Kf,on,1],[n,qf+".{fff}",Hl+" "+Xs,on,Da+" "+Xs,on,Kf,on,1]];function g(s){return(l,u,a,o,c,d)=>{let w=[],x=c>=y,E=c>=p&&c<y,$=s(a),S=dn($*n,3),C=Uu($.getFullYear(),x?0:$.getMonth(),E||x?1:$.getDate()),R=dn(C*n,3);if(E||x){let L=E?c/p:0,P=x?c/y:0,I=S==R?S:dn(Uu(C.getFullYear()+P,C.getMonth()+L,1)*n,3),H=new Date(ir(I/n)),F=H.getFullYear(),O=H.getMonth();for(let _=0;I<=o;_++){let A=Uu(F+P*_,O+L*_,1),N=A-s(dn(A*n,3));I=dn((+A+N)*n,3),I<=o&&w.push(I)}}else{let L=c>=f?f:c,P=ri(a)-ri(S),I=R+P+Bl(S-R,L);w.push(I);let H=s(I),F=H.getHours()+H.getMinutes()/e+H.getSeconds()/r,O=c/r,_=l.axes[u]._space,A=d/_;for(;I=dn(I+c,n==1?0:3),!(I>o);)if(O>1){let N=ri(dn(F+O,6))%24,B=s(I).getHours()-N;B>1&&(B=-1),I-=B*r,F=(F+O)%24;let U=w[w.length-1];dn((I-U)/c,3)*A>=.7&&w.push(I)}else w.push(I)}return w}}return[b,h,g]}const[Uk,Vk,Kk]=Gf(1),[qk,Gk,Yk]=Gf(.001);La(2,-53,53,[1]);function Yf(n,t){return n.map(e=>e.map((r,f)=>f==0||f==8||r==null?r:t(f==1||e[8]==0?r:e[1]+r)))}function Xf(n,t){return(e,r,f,p,y)=>{let b=t.find(o=>y>=o[0])||t[t.length-1],h,g,s,l,u,a;return r.map(o=>{let c=n(o),d=c.getFullYear(),w=c.getMonth(),x=c.getDate(),E=c.getHours(),$=c.getMinutes(),S=c.getSeconds(),C=d!=h&&b[2]||w!=g&&b[3]||x!=s&&b[4]||E!=l&&b[5]||$!=u&&b[6]||S!=a&&b[7]||b[1];return h=d,g=w,s=x,l=E,u=$,a=S,C(c)})}}function Xk(n,t){let e=ju(t);return(r,f,p,y,b)=>f.map(h=>e(n(h)))}function Uu(n,t,e){return new Date(n,t,e)}function Qf(n,t){return t(n)}const Qk="{YYYY}-{MM}-{DD} {h}:{mm}{aa}";function Zf(n,t){return(e,r,f,p)=>p==null?Iu:t(n(r))}function Zk(n,t){let e=n.series[t];return e.width?e.stroke(n,t):e.points.width?e.points.stroke(n,t):null}function Jk(n,t){return n.series[t].fill(n,t)}const eS={show:!0,live:!0,isolate:!1,mount:wk,markers:{show:!0,width:2,stroke:Zk,fill:Jk,dash:"solid"},idx:null,idxs:null,values:[]};function tS(n,t){let e=n.cursor.points,r=fi(),f=e.size(n,t);wn(r,Ma,f),wn(r,Ia,f);let p=f/-2;wn(r,"marginLeft",p),wn(r,"marginTop",p);let y=e.width(n,t,f);return y&&wn(r,"borderWidth",y),r}function nS(n,t){let e=n.series[t].points;return e._fill||e._stroke}function rS(n,t){let e=n.series[t].points;return e._stroke||e._fill}function iS(n,t){return n.series[t].points.size}const Vu=[0,0];function oS(n,t,e){return Vu[0]=t,Vu[1]=e,Vu}function Ul(n,t,e,r=!0){return f=>{f.button==0&&(!r||f.target==t)&&e(f)}}function Ku(n,t,e,r=!0){return f=>{(!r||f.target==t)&&e(f)}}const sS={show:!0,x:!0,y:!0,lock:!1,move:oS,points:{one:!1,show:tS,size:iS,width:0,stroke:rS,fill:nS},bind:{mousedown:Ul,mouseup:Ul,click:Ul,dblclick:Ul,mousemove:Ku,mouseleave:Ku,mouseenter:Ku},drag:{setScale:!0,x:!0,y:!1,dist:0,uni:null,click:(n,t)=>{t.stopPropagation(),t.stopImmediatePropagation()},_x:!1,_y:!1},focus:{dist:(n,t,e,r,f)=>r-f,prox:-1,bias:0},hover:{skip:[void 0],prox:null,bias:0},left:-10,top:-10,idx:null,dataIdx:null,idxs:null,event:null},Jf={show:!0,stroke:"rgba(0,0,0,0.07)",width:2},qu=Gn({},Jf,{filter:Mf}),em=Gn({},qu,{size:10}),tm=Gn({},Jf,{show:!1}),Gu='12px system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',nm="bold "+Gu,rm=1.5,im={show:!0,scale:"x",stroke:Tu,space:50,gap:5,alignTo:1,size:50,labelGap:0,labelSize:30,labelFont:nm,side:2,grid:qu,ticks:em,border:tm,font:Gu,lineGap:rm,rotate:0},aS="Value",lS="Time",om={show:!0,scale:"x",auto:!1,sorted:1,min:pr,max:-1/0,idxs:[]};function cS(n,t,e,r,f){return t.map(p=>p==null?"":Fu(p))}function uS(n,t,e,r,f,p,y){let b=[],h=Oo.get(f)||0;e=y?e:dn(Bl(e,f),h);for(let g=e;g<=r;g=dn(g+f,h))b.push(Object.is(g,-0)?0:g);return b}function Yu(n,t,e,r,f,p,y){const b=[],h=n.scales[n.axes[t].scale].log,g=h==10?ao:Af,s=ri(g(e));f=qs(h,s),h==10&&(f=ps[Li(f,ps)]);let l=e,u=f*h;h==10&&(u=ps[Li(u,ps)]);do b.push(l),l=l+f,h==10&&!Oo.has(l)&&(l=dn(l,Oo.get(f))),l>=u&&(f=l,u=f*h,h==10&&(u=ps[Li(u,ps)]));while(l<=r);return b}function hS(n,t,e,r,f,p,y){let b=n.scales[n.axes[t].scale].asinh,h=r>b?Yu(n,t,Er(b,e),r,f):[b],g=r>=0&&e<=0?[0]:[];return(e<-b?Yu(n,t,Er(b,-r),-e,f):[b]).reverse().map(s=>-s).concat(g,h)}const sm=/./,dS=/[12357]/,pS=/[125]/,am=/1/,Xu=(n,t,e,r)=>n.map((f,p)=>t==4&&f==0||p%r==0&&e.test(f.toExponential()[f<0?1:0])?f:null);function gS(n,t,e,r,f){let p=n.axes[e],y=p.scale,b=n.scales[y],h=n.valToPos,g=p._space,s=h(10,y),l=h(9,y)-s>=g?sm:h(7,y)-s>=g?dS:h(5,y)-s>=g?pS:am;if(l==am){let u=rr(h(1,y)-s);if(u<g)return Xu(t.slice().reverse(),b.distr,l,mi(g/u)).reverse()}return Xu(t,b.distr,l,1)}function fS(n,t,e,r,f){let p=n.axes[e],y=p.scale,b=p._space,h=n.valToPos,g=rr(h(1,y)-h(2,y));return g<b?Xu(t.slice().reverse(),3,sm,mi(b/g)).reverse():t}function mS(n,t,e,r){return r==null?Iu:t==null?"":Fu(t)}const lm={show:!0,scale:"y",stroke:Tu,space:30,gap:5,alignTo:1,size:50,labelGap:0,labelSize:30,labelFont:nm,side:3,grid:qu,ticks:em,border:tm,font:Gu,lineGap:rm,rotate:0};function vS(n,t){let e=3+(n||1)*2;return dn(e*t,3)}function yS(n,t){let{scale:e,idxs:r}=n.series[0],f=n._data[0],p=n.valToPos(f[r[0]],e,!0),y=n.valToPos(f[r[1]],e,!0),b=rr(y-p),h=n.series[t],g=b/(h.points.space*Jt);return r[1]-r[0]<=g}const cm={scale:null,auto:!0,sorted:0,min:pr,max:-1/0},um=(n,t,e,r,f)=>f,hm={show:!0,auto:!0,sorted:0,gaps:um,alpha:1,facets:[Gn({},cm,{scale:"x"}),Gn({},cm,{scale:"y"})]},dm={scale:"y",auto:!0,sorted:0,show:!0,spanGaps:!1,gaps:um,alpha:1,points:{show:yS,filter:null},values:null,min:pr,max:-1/0,idxs:[],path:null,clip:null};function wS(n,t,e,r,f){return e/10}const pm={time:UC,auto:!0,distr:1,log:10,asinh:1,min:null,max:null,dir:1,ori:0},bS=Gn({},pm,{time:!1,ori:1}),gm={};function fm(n,t){let e=gm[n];return e||(e={key:n,plots:[],sub(r){e.plots.push(r)},unsub(r){e.plots=e.plots.filter(f=>f!=r)},pub(r,f,p,y,b,h,g){for(let s=0;s<e.plots.length;s++)e.plots[s]!=f&&e.plots[s].pub(r,f,p,y,b,h,g)}},n!=null&&(gm[n]=e)),e}const Qs=1,Qu=2;function gs(n,t,e){const r=n.mode,f=n.series[t],p=r==2?n._data[t]:n._data,y=n.scales,b=n.bbox;let h=p[0],g=r==2?p[1]:p[t],s=r==2?y[f.facets[0].scale]:y[n.series[0].scale],l=r==2?y[f.facets[1].scale]:y[f.scale],u=b.left,a=b.top,o=b.width,c=b.height,d=n.valToPosH,w=n.valToPosV;return s.ori==0?e(f,h,g,s,l,d,w,u,a,o,c,Kl,Zs,Gl,ym,bm):e(f,h,g,s,l,w,d,a,u,c,o,ql,Js,eh,wm,xm)}function Zu(n,t){let e=0,r=0,f=Qt(n.bands,zu);for(let p=0;p<f.length;p++){let y=f[p];y.series[0]==t?e=y.dir:y.series[1]==t&&(y.dir==1?r|=1:r|=2)}return[e,r==1?-1:r==2?1:r==3?2:0]}function xS(n,t,e,r,f){let p=n.mode,y=n.series[t],b=p==2?y.facets[1].scale:y.scale,h=n.scales[b];return f==-1?h.min:f==1?h.max:h.distr==3?h.dir==1?h.min:h.max:0}function lo(n,t,e,r,f,p){return gs(n,t,(y,b,h,g,s,l,u,a,o,c,d)=>{let w=y.pxRound;const x=g.dir*(g.ori==0?1:-1),E=g.ori==0?Zs:Js;let $,S;x==1?($=e,S=r):($=r,S=e);let C=w(l(b[$],g,c,a)),R=w(u(h[$],s,d,o)),L=w(l(b[S],g,c,a)),P=w(u(p==1?s.max:s.min,s,d,o)),I=new Path2D(f);return E(I,L,P),E(I,C,P),E(I,C,R),I})}function Vl(n,t,e,r,f,p){let y=null;if(n.length>0){y=new Path2D;const b=t==0?Gl:eh;let h=e;for(let l=0;l<n.length;l++){let u=n[l];if(u[1]>u[0]){let a=u[0]-h;a>0&&b(y,h,r,a,r+p),h=u[1]}}let g=e+f-h,s=10;g>0&&b(y,h,r-s/2,g,r+p+s)}return y}function CS(n,t,e){let r=n[n.length-1];r&&r[0]==t?r[1]=e:n.push([t,e])}function Ju(n,t,e,r,f,p,y){let b=[],h=n.length;for(let g=f==1?e:r;g>=e&&g<=r;g+=f)if(t[g]===null){let s=g,l=g;if(f==1)for(;++g<=r&&t[g]===null;)l=g;else for(;--g>=e&&t[g]===null;)l=g;let u=p(n[s]),a=l==s?u:p(n[l]),o=s-f;u=y<=0&&o>=0&&o<h?p(n[o]):u;let c=l+f;a=y>=0&&c>=0&&c<h?p(n[c]):a,a>=u&&b.push([u,a])}return b}function mm(n){return n==0?$f:n==1?ir:t=>ds(t,n)}function vm(n){let t=n==0?Kl:ql,e=n==0?(f,p,y,b,h,g)=>{f.arcTo(p,y,b,h,g)}:(f,p,y,b,h,g)=>{f.arcTo(y,p,h,b,g)},r=n==0?(f,p,y,b,h)=>{f.rect(p,y,b,h)}:(f,p,y,b,h)=>{f.rect(y,p,h,b)};return(f,p,y,b,h,g=0,s=0)=>{g==0&&s==0?r(f,p,y,b,h):(g=Oi(g,b/2,h/2),s=Oi(s,b/2,h/2),t(f,p+g,y),e(f,p+b,y,p+b,y+h,g),e(f,p+b,y+h,p,y+h,s),e(f,p,y+h,p,y,s),e(f,p,y,p+b,y,g),f.closePath())}}const Kl=(n,t,e)=>{n.moveTo(t,e)},ql=(n,t,e)=>{n.moveTo(e,t)},Zs=(n,t,e)=>{n.lineTo(t,e)},Js=(n,t,e)=>{n.lineTo(e,t)},Gl=vm(0),eh=vm(1),ym=(n,t,e,r,f,p)=>{n.arc(t,e,r,f,p)},wm=(n,t,e,r,f,p)=>{n.arc(e,t,r,f,p)},bm=(n,t,e,r,f,p,y)=>{n.bezierCurveTo(t,e,r,f,p,y)},xm=(n,t,e,r,f,p,y)=>{n.bezierCurveTo(e,t,f,r,y,p)};function Cm(n){return(t,e,r,f,p)=>gs(t,e,(y,b,h,g,s,l,u,a,o,c,d)=>{let{pxRound:w,points:x}=y,E,$;g.ori==0?(E=Kl,$=ym):(E=ql,$=wm);const S=dn(x.width*Jt,3);let C=(x.size-x.width)/2*Jt,R=dn(C*2,3),L=new Path2D,P=new Path2D,{left:I,top:H,width:F,height:O}=t.bbox;Gl(P,I-R,H-R,F+R*2,O+R*2);const _=A=>{if(h[A]!=null){let N=w(l(b[A],g,c,a)),B=w(u(h[A],s,d,o));E(L,N+C,B),$(L,N,B,C,0,Wl*2)}};if(p)p.forEach(_);else for(let A=r;A<=f;A++)_(A);return{stroke:S>0?L:null,fill:L,clip:P,flags:Qs|Qu}})}function km(n){return(t,e,r,f,p,y)=>{r!=f&&(p!=r&&y!=r&&n(t,e,r),p!=f&&y!=f&&n(t,e,f),n(t,e,y))}}const kS=km(Zs),SS=km(Js);function Sm(n){const t=Qt(n==null?void 0:n.alignGaps,0);return(e,r,f,p)=>gs(e,r,(y,b,h,g,s,l,u,a,o,c,d)=>{[f,p]=Dl(h,f,p);let w=y.pxRound,x=F=>w(l(F,g,c,a)),E=F=>w(u(F,s,d,o)),$,S;g.ori==0?($=Zs,S=kS):($=Js,S=SS);const C=g.dir*(g.ori==0?1:-1),R={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:Qs},L=R.stroke;let P=!1;if(p-f>=c*4){let F=he=>e.posToVal(he,g.key,!0),O=null,_=null,A,N,B,U=x(b[C==1?f:p]),q=x(b[f]),Z=x(b[p]),te=F(C==1?q+1:Z-1);for(let he=C==1?f:p;he>=f&&he<=p;he+=C){let ne=b[he],ae=(C==1?ne<te:ne>te)?U:x(ne),ue=h[he];ae==U?ue!=null?(N=ue,O==null?($(L,ae,E(N)),A=O=_=N):N<O?O=N:N>_&&(_=N)):ue===null&&(P=!0):(O!=null&&S(L,U,E(O),E(_),E(A),E(N)),ue!=null?(N=ue,$(L,ae,E(N)),O=_=A=N):(O=_=null,ue===null&&(P=!0)),U=ae,te=F(U+C))}O!=null&&O!=_&&B!=U&&S(L,U,E(O),E(_),E(A),E(N))}else for(let F=C==1?f:p;F>=f&&F<=p;F+=C){let O=h[F];O===null?P=!0:O!=null&&$(L,x(b[F]),E(O))}let[I,H]=Zu(e,r);if(y.fill!=null||I!=0){let F=R.fill=new Path2D(L),O=y.fillTo(e,r,y.min,y.max,I),_=E(O),A=x(b[f]),N=x(b[p]);C==-1&&([N,A]=[A,N]),$(F,N,_),$(F,A,_)}if(!y.spanGaps){let F=[];P&&F.push(...Ju(b,h,f,p,C,x,t)),R.gaps=F=y.gaps(e,r,f,p,F),R.clip=Vl(F,g.ori,a,o,c,d)}return H!=0&&(R.band=H==2?[lo(e,r,f,p,L,-1),lo(e,r,f,p,L,1)]:lo(e,r,f,p,L,H)),R})}function AS(n){const t=Qt(n.align,1),e=Qt(n.ascDesc,!1),r=Qt(n.alignGaps,0),f=Qt(n.extend,!1);return(p,y,b,h)=>gs(p,y,(g,s,l,u,a,o,c,d,w,x,E)=>{[b,h]=Dl(l,b,h);let $=g.pxRound,{left:S,width:C}=p.bbox,R=Z=>$(o(Z,u,x,d)),L=Z=>$(c(Z,a,E,w)),P=u.ori==0?Zs:Js;const I={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:Qs},H=I.stroke,F=u.dir*(u.ori==0?1:-1);let O=L(l[F==1?b:h]),_=R(s[F==1?b:h]),A=_,N=_;f&&t==-1&&(N=S,P(H,N,O)),P(H,_,O);for(let Z=F==1?b:h;Z>=b&&Z<=h;Z+=F){let te=l[Z];if(te==null)continue;let he=R(s[Z]),ne=L(te);t==1?P(H,he,O):P(H,A,ne),P(H,he,ne),O=ne,A=he}let B=A;f&&t==1&&(B=S+C,P(H,B,O));let[U,q]=Zu(p,y);if(g.fill!=null||U!=0){let Z=I.fill=new Path2D(H),te=g.fillTo(p,y,g.min,g.max,U),he=L(te);P(Z,B,he),P(Z,N,he)}if(!g.spanGaps){let Z=[];Z.push(...Ju(s,l,b,h,F,R,r));let te=g.width*Jt/2,he=e||t==1?te:-te,ne=e||t==-1?-te:te;Z.forEach(ae=>{ae[0]+=he,ae[1]+=ne}),I.gaps=Z=g.gaps(p,y,b,h,Z),I.clip=Vl(Z,u.ori,d,w,x,E)}return q!=0&&(I.band=q==2?[lo(p,y,b,h,H,-1),lo(p,y,b,h,H,1)]:lo(p,y,b,h,H,q)),I})}function Am(n,t,e,r,f,p,y=pr){if(n.length>1){let b=null;for(let h=0,g=1/0;h<n.length;h++)if(t[h]!==void 0){if(b!=null){let s=rr(n[h]-n[b]);s<g&&(g=s,y=rr(e(n[h],r,f,p)-e(n[b],r,f,p)))}b=h}}return y}function _S(n){n=n||Oa;const t=Qt(n.size,[.6,pr,1]),e=n.align||0,r=n.gap||0;let f=n.radius;f=f==null?[0,0]:typeof f=="number"?[f,0]:f;const p=Ht(f),y=1-t[0],b=Qt(t[1],pr),h=Qt(t[2],1),g=Qt(n.disp,Oa),s=Qt(n.each,a=>{}),{fill:l,stroke:u}=g;return(a,o,c,d)=>gs(a,o,(w,x,E,$,S,C,R,L,P,I,H)=>{let F=w.pxRound,O=e,_=r*Jt,A=b*Jt,N=h*Jt,B,U;$.ori==0?[B,U]=p(a,o):[U,B]=p(a,o);const q=$.dir*($.ori==0?1:-1);let Z=$.ori==0?Gl:eh,te=$.ori==0?s:(He,ke,ze,Xe,gt,At,St)=>{s(He,ke,ze,gt,Xe,St,At)},he=Qt(a.bands,zu).find(He=>He.series[0]==o),ne=he!=null?he.dir:0,ae=w.fillTo(a,o,w.min,w.max,ne),ue=F(R(ae,S,H,P)),ce,fe,Te,$e=I,Ie=F(w.width*Jt),Ye=!1,qe=null,dt=null,nt=null,pt=null;l!=null&&(Ie==0||u!=null)&&(Ye=!0,qe=l.values(a,o,c,d),dt=new Map,new Set(qe).forEach(He=>{He!=null&&dt.set(He,new Path2D)}),Ie>0&&(nt=u.values(a,o,c,d),pt=new Map,new Set(nt).forEach(He=>{He!=null&&pt.set(He,new Path2D)})));let{x0:tn,size:gn}=g;if(tn!=null&&gn!=null){O=1,x=tn.values(a,o,c,d),tn.unit==2&&(x=x.map(ke=>a.posToVal(L+ke*I,$.key,!0)));let He=gn.values(a,o,c,d);gn.unit==2?fe=He[0]*I:fe=C(He[0],$,I,L)-C(0,$,I,L),$e=Am(x,E,C,$,I,L,$e),Te=$e-fe+_}else $e=Am(x,E,C,$,I,L,$e),Te=$e*y+_,fe=$e-Te;Te<1&&(Te=0),Ie>=fe/2&&(Ie=0),Te<5&&(F=$f);let Yt=Te>0,gr=$e-Te-(Yt?Ie:0);fe=F(Bu(gr,N,A)),ce=(O==0?fe/2:O==q?0:fe)-O*q*((O==0?_/2:0)+(Yt?Ie/2:0));const fn={stroke:null,fill:null,clip:null,band:null,gaps:null,flags:0},En=Ye?null:new Path2D;let Rn=null;if(he!=null)Rn=a.data[he.series[1]];else{let{y0:He,y1:ke}=g;He!=null&&ke!=null&&(E=ke.values(a,o,c,d),Rn=He.values(a,o,c,d))}let Xn=B*fe,bt=U*fe;for(let He=q==1?c:d;He>=c&&He<=d;He+=q){let ke=E[He];if(ke==null)continue;if(Rn!=null){let ut=Rn[He]??0;if(ke-ut==0)continue;ue=R(ut,S,H,P)}let ze=$.distr!=2||g!=null?x[He]:He,Xe=C(ze,$,I,L),gt=R(Qt(ke,ae),S,H,P),At=F(Xe-ce),St=F(Er(gt,ue)),Dt=F(Oi(gt,ue)),Ot=St-Dt;if(ke!=null){let ut=ke<0?bt:Xn,xt=ke<0?Xn:bt;Ye?(Ie>0&&nt[He]!=null&&Z(pt.get(nt[He]),At,Dt+ri(Ie/2),fe,Er(0,Ot-Ie),ut,xt),qe[He]!=null&&Z(dt.get(qe[He]),At,Dt+ri(Ie/2),fe,Er(0,Ot-Ie),ut,xt)):Z(En,At,Dt+ri(Ie/2),fe,Er(0,Ot-Ie),ut,xt),te(a,o,He,At-Ie/2,Dt,fe+Ie,Ot)}}return Ie>0?fn.stroke=Ye?pt:En:Ye||(fn._fill=w.width==0?w._fill:w._stroke??w._fill,fn.width=0),fn.fill=Ye?dt:En,fn})}function TS(n,t){const e=Qt(t==null?void 0:t.alignGaps,0);return(r,f,p,y)=>gs(r,f,(b,h,g,s,l,u,a,o,c,d,w)=>{[p,y]=Dl(g,p,y);let x=b.pxRound,E=B=>x(u(B,s,d,o)),$=B=>x(a(B,l,w,c)),S,C,R;s.ori==0?(S=Kl,R=Zs,C=bm):(S=ql,R=Js,C=xm);const L=s.dir*(s.ori==0?1:-1);let P=E(h[L==1?p:y]),I=P,H=[],F=[];for(let B=L==1?p:y;B>=p&&B<=y;B+=L)if(g[B]!=null){let U=h[B],q=E(U);H.push(I=q),F.push($(g[B]))}const O={stroke:n(H,F,S,R,C,x),fill:null,clip:null,band:null,gaps:null,flags:Qs},_=O.stroke;let[A,N]=Zu(r,f);if(b.fill!=null||A!=0){let B=O.fill=new Path2D(_),U=b.fillTo(r,f,b.min,b.max,A),q=$(U);R(B,I,q),R(B,P,q)}if(!b.spanGaps){let B=[];B.push(...Ju(h,g,p,y,L,E,e)),O.gaps=B=b.gaps(r,f,p,y,B),O.clip=Vl(B,s.ori,o,c,d,w)}return N!=0&&(O.band=N==2?[lo(r,f,p,y,_,-1),lo(r,f,p,y,_,1)]:lo(r,f,p,y,_,N)),O})}function $S(n){return TS(MS,n)}function MS(n,t,e,r,f,p){const y=n.length;if(y<2)return null;const b=new Path2D;if(e(b,n[0],t[0]),y==2)r(b,n[1],t[1]);else{let h=Array(y),g=Array(y-1),s=Array(y-1),l=Array(y-1);for(let u=0;u<y-1;u++)s[u]=t[u+1]-t[u],l[u]=n[u+1]-n[u],g[u]=s[u]/l[u];h[0]=g[0];for(let u=1;u<y-1;u++)g[u]===0||g[u-1]===0||g[u-1]>0!=g[u]>0?h[u]=0:(h[u]=3*(l[u-1]+l[u])/((2*l[u]+l[u-1])/g[u-1]+(l[u]+2*l[u-1])/g[u]),isFinite(h[u])||(h[u]=0));h[y-1]=g[y-2];for(let u=0;u<y-1;u++)f(b,n[u]+l[u]/3,t[u]+h[u]*l[u]/3,n[u+1]-l[u]/3,t[u+1]-h[u+1]*l[u]/3,n[u+1],t[u+1])}return b}const th=new Set;function _m(){for(let n of th)n.syncRect(!0)}Vs&&(us(ck,Ks,_m),us(uk,Ks,_m,!0),us(Ol,Ks,()=>{xr.pxRatio=Jt}));const IS=Sm(),ES=Cm();function Tm(n,t,e,r){return(r?[n[0],n[1]].concat(n.slice(2)):[n[0]].concat(n.slice(1))).map((f,p)=>nh(f,p,t,e))}function RS(n,t){return n.map((e,r)=>r==0?{}:Gn({},t,e))}function nh(n,t,e,r){return Gn({},t==0?e:r,n)}function $m(n,t,e){return t==null?Gs:[t,e]}const LS=$m;function OS(n,t,e){return t==null?Gs:Fl(t,e,Pu,!0)}function Mm(n,t,e,r){return t==null?Gs:Pl(t,e,n.scales[r].log,!1)}const NS=Mm;function Im(n,t,e,r){return t==null?Gs:Du(t,e,n.scales[r].log,!1)}const DS=Im;function PS(n,t,e,r,f){let p=Er(_f(n),_f(t)),y=t-n,b=Li(f/r*y,e);do{let h=e[b],g=r*h/y;if(g>=f&&p+(h<5?Oo.get(h):0)<=17)return[h,g]}while(++b<e.length);return[0,0]}function Em(n){let t,e;return n=n.replace(/(\d+)px/,(r,f)=>(t=ir((e=+f)*Jt))+"px"),[n,t,e]}function FS(n){n.show&&[n.font,n.labelFont].forEach(t=>{let e=dn(t[2]*Jt,1);t[0]=t[0].replace(/[0-9.]+px/,e+"px"),t[1]=e})}function xr(n,t,e){const r={mode:Qt(n.mode,1)},f=r.mode;function p(V,X,ie,oe){let ge=X.valToPct(V);return oe+ie*(X.dir==-1?1-ge:ge)}function y(V,X,ie,oe){let ge=X.valToPct(V);return oe+ie*(X.dir==-1?ge:1-ge)}function b(V,X,ie,oe){return X.ori==0?p(V,X,ie,oe):y(V,X,ie,oe)}r.valToPosH=p,r.valToPosV=y;let h=!1;r.status=0;const g=r.root=fi(VC);if(n.id!=null&&(g.id=n.id),ti(g,n.class),n.title){let V=fi(GC,g);V.textContent=n.title}const s=Ri("canvas"),l=r.ctx=s.getContext("2d"),u=fi(YC,g);us("click",u,V=>{V.target===o&&(rn!=bi||Vt!=no)&&On.click(r,V)},!0);const a=r.under=fi(XC,u);u.appendChild(s);const o=r.over=fi(QC,u);n=Ys(n);const c=+Qt(n.pxAlign,1),d=mm(c);(n.plugins||[]).forEach(V=>{V.opts&&(n=V.opts(r,n)||n)});const w=n.ms||.001,x=r.series=f==1?Tm(n.series||[],om,dm,!1):RS(n.series||[null],hm),E=r.axes=Tm(n.axes||[],im,lm,!0),$=r.scales={},S=r.bands=n.bands||[];S.forEach(V=>{V.fill=Ht(V.fill||null),V.dir=Qt(V.dir,-1)});const C=f==2?x[1].facets[0].scale:x[0].scale,R={axes:fo,series:sa},L=(n.drawOrder||["axes","series"]).map(V=>R[V]);function P(V){const X=V.distr==3?ie=>ao(ie>0?ie:V.clamp(r,ie,V.min,V.max,V.key)):V.distr==4?ie=>Wu(ie,V.asinh):V.distr==100?ie=>V.fwd(ie):ie=>ie;return ie=>{let oe=X(ie),{_min:ge,_max:be}=V,Me=be-ge;return(oe-ge)/Me}}function I(V){let X=$[V];if(X==null){let ie=(n.scales||Oa)[V]||Oa;if(ie.from!=null){I(ie.from);let oe=Gn({},$[ie.from],ie,{key:V});oe.valToPct=P(oe),$[V]=oe}else{X=$[V]=Gn({},V==C?pm:bS,ie),X.key=V;let oe=X.time,ge=X.range,be=No(ge);if((V!=C||f==2&&!oe)&&(be&&(ge[0]==null||ge[1]==null)&&(ge={min:ge[0]==null?Cf:{mode:1,hard:ge[0],soft:ge[0]},max:ge[1]==null?Cf:{mode:1,hard:ge[1],soft:ge[1]}},be=!1),!be&&zl(ge))){let Me=ge;ge=(Pe,We,Ve)=>We==null?Gs:Fl(We,Ve,Me)}X.range=Ht(ge||(oe?LS:V==C?X.distr==3?NS:X.distr==4?DS:$m:X.distr==3?Mm:X.distr==4?Im:OS)),X.auto=Ht(be?!1:X.auto),X.clamp=Ht(X.clamp||wS),X._min=X._max=null,X.valToPct=P(X)}}}I("x"),I("y"),f==1&&x.forEach(V=>{I(V.scale)}),E.forEach(V=>{I(V.scale)});for(let V in n.scales)I(V);const H=$[C],F=H.distr;let O,_;H.ori==0?(ti(g,KC),O=p,_=y):(ti(g,qC),O=y,_=p);const A={};for(let V in $){let X=$[V];(X.min!=null||X.max!=null)&&(A[V]={min:X.min,max:X.max},X.min=X.max=null)}const N=n.tzDate||(V=>new Date(ir(V/w))),B=n.fmtDate||ju,U=w==1?Kk(N):Yk(N),q=Xf(N,Yf(w==1?Vk:Gk,B)),Z=Zf(N,Qf(Qk,B)),te=[],he=r.legend=Gn({},eS,n.legend),ne=r.cursor=Gn({},sS,{drag:{y:f==2}},n.cursor),ae=he.show,ue=ne.show,ce=he.markers;he.idxs=te,ce.width=Ht(ce.width),ce.dash=Ht(ce.dash),ce.stroke=Ht(ce.stroke),ce.fill=Ht(ce.fill);let fe,Te,$e,Ie=[],Ye=[],qe,dt=!1,nt={};if(he.live){const V=x[1]?x[1].values:null;dt=V!=null,qe=dt?V(r,1,0):{_:0};for(let X in qe)nt[X]=Iu}if(ae)if(fe=Ri("table",rk,g),$e=Ri("tbody",null,fe),he.mount(r,fe),dt){Te=Ri("thead",null,fe,$e);let V=Ri("tr",null,Te);Ri("th",null,V);for(var pt in qe)Ri("th",sf,V).textContent=pt}else ti(fe,ok),he.live&&ti(fe,ik);const tn={show:!0},gn={show:!1};function Yt(V,X){if(X==0&&(dt||!he.live||f==2))return Gs;let ie=[],oe=Ri("tr",sk,$e,$e.childNodes[X]);ti(oe,V.class),V.show||ti(oe,cs);let ge=Ri("th",null,oe);if(ce.show){let Pe=fi(ak,ge);if(X>0){let We=ce.width(r,X);We&&(Pe.style.border=We+"px "+ce.dash(r,X)+" "+ce.stroke(r,X)),Pe.style.background=ce.fill(r,X)}}let be=fi(sf,ge);V.label instanceof HTMLElement?be.appendChild(V.label):be.textContent=V.label,X>0&&(ce.show||(be.style.color=V.width>0?ce.stroke(r,X):ce.fill(r,X)),fn("click",ge,Pe=>{if(ne._lock)return;Pi(Pe);let We=x.indexOf(V);if((Pe.ctrlKey||Pe.metaKey)!=he.isolate){let Ve=x.some((Qe,Je)=>Je>0&&Je!=We&&Qe.show);x.forEach((Qe,Je)=>{Je>0&&Or(Je,Ve?Je==We?tn:gn:tn,!0,lt.setSeries)})}else Or(We,{show:!V.show},!0,lt.setSeries)},!1),Fi&&fn(uf,ge,Pe=>{ne._lock||(Pi(Pe),Or(x.indexOf(V),ki,!0,lt.setSeries))},!1));for(var Me in qe){let Pe=Ri("td",lk,oe);Pe.textContent="--",ie.push(Pe)}return[oe,ie]}const gr=new Map;function fn(V,X,ie,oe=!0){const ge=gr.get(X)||{},be=ne.bind[V](r,X,ie,oe);be&&(us(V,X,ge[V]=be),gr.set(X,ge))}function En(V,X,ie){const oe=gr.get(X)||{};for(let ge in oe)(V==null||ge==V)&&(Nu(ge,X,oe[ge]),delete oe[ge]);V==null&&gr.delete(X)}let Rn=0,Xn=0,bt=0,He=0,ke=0,ze=0,Xe=ke,gt=ze,At=bt,St=He,Dt=0,Ot=0,ut=0,xt=0;r.bbox={};let Cn=!1,kr=!1,Kr=!1,Di=!1,co=!1,fr=!1;function uo(V,X,ie){(ie||V!=r.width||X!=r.height)&&Do(V,X),ji(!1),Kr=!0,kr=!0,to()}function Do(V,X){r.width=Rn=bt=V,r.height=Xn=He=X,ke=ze=0,ys(),ra();let ie=r.bbox;Dt=ie.left=ds(ke*Jt,.5),Ot=ie.top=ds(ze*Jt,.5),ut=ie.width=ds(bt*Jt,.5),xt=ie.height=ds(He*Jt,.5)}const Ha=3;function ii(){let V=!1,X=0;for(;!V;){X++;let ie=aa(X),oe=qa(X);V=X==Ha||ie&&oe,V||(Do(r.width,r.height),kr=!0)}}function Ua({width:V,height:X}){uo(V,X)}r.setSize=Ua;function ys(){let V=!1,X=!1,ie=!1,oe=!1;E.forEach((ge,be)=>{if(ge.show&&ge._show){let{side:Me,_size:Pe}=ge,We=Me%2,Ve=ge.label!=null?ge.labelSize:0,Qe=Pe+Ve;Qe>0&&(We?(bt-=Qe,Me==3?(ke+=Qe,oe=!0):ie=!0):(He-=Qe,Me==0?(ze+=Qe,V=!0):X=!0))}}),Bi[0]=V,Bi[1]=ie,Bi[2]=X,Bi[3]=oe,bt-=_r[1]+_r[3],ke+=_r[3],He-=_r[2]+_r[0],ze+=_r[0]}function ra(){let V=ke+bt,X=ze+He,ie=ke,oe=ze;function ge(be,Me){switch(be){case 1:return V+=Me,V-Me;case 2:return X+=Me,X-Me;case 3:return ie-=Me,ie+Me;case 0:return oe-=Me,oe+Me}}E.forEach((be,Me)=>{if(be.show&&be._show){let Pe=be.side;be._pos=ge(Pe,be._size),be.label!=null&&(be._lpos=ge(Pe,be.labelSize))}})}if(ne.dataIdx==null){let V=ne.hover,X=V.skip=new Set(V.skip??[]);X.add(void 0);let ie=V.prox=Ht(V.prox),oe=V.bias??(V.bias=0);ne.dataIdx=(ge,be,Me,Pe)=>{if(be==0)return Me;let We=Me,Ve=ie(ge,be,Me,Pe)??pr,Qe=Ve>=0&&Ve<pr,Je=H.ori==0?bt:He,kt=ne.left,zt=t[0],Tt=t[be];if(X.has(Tt[Me])){We=null;let Wt=null,ft=null,it;if(oe==0||oe==-1)for(it=Me;Wt==null&&it-- >0;)X.has(Tt[it])||(Wt=it);if(oe==0||oe==1)for(it=Me;ft==null&&it++<Tt.length;)X.has(Tt[it])||(ft=it);if(Wt!=null||ft!=null)if(Qe){let pn=Wt==null?-1/0:O(zt[Wt],H,Je,0),An=ft==null?1/0:O(zt[ft],H,Je,0),Jn=kt-pn,qt=An-kt;Jn<=qt?Jn<=Ve&&(We=Wt):qt<=Ve&&(We=ft)}else We=ft==null?Wt:Wt==null?ft:Me-Wt<=ft-Me?Wt:ft}else Qe&&rr(kt-O(zt[Me],H,Je,0))>Ve&&(We=null);return We}}const Pi=V=>{ne.event=V};ne.idxs=te,ne._lock=!1;let jn=ne.points;jn.show=Ht(jn.show),jn.size=Ht(jn.size),jn.stroke=Ht(jn.stroke),jn.width=Ht(jn.width),jn.fill=Ht(jn.fill);const Sr=r.focus=Gn({},n.focus||{alpha:.3},ne.focus),Fi=Sr.prox>=0,Tn=Fi&&jn.one;let Ar=[],Qi=[],Wi=[];function ws(V,X){let ie=jn.show(r,X);if(ie instanceof HTMLElement)return ti(ie,nk),ti(ie,V.class),qi(ie,-10,-10,bt,He),o.insertBefore(ie,Ar[X]),ie}function ia(V,X){if(f==1||X>0){let ie=f==1&&$[V.scale].time,oe=V.value;V.value=ie?Nf(oe)?Zf(N,Qf(oe,B)):oe||Z:oe||mS,V.label=V.label||(ie?lS:aS)}if(Tn||X>0){V.width=V.width==null?1:V.width,V.paths=V.paths||IS||bk,V.fillTo=Ht(V.fillTo||xS),V.pxAlign=+Qt(V.pxAlign,c),V.pxRound=mm(V.pxAlign),V.stroke=Ht(V.stroke||null),V.fill=Ht(V.fill||null),V._stroke=V._fill=V._paths=V._focus=null;let ie=vS(Er(1,V.width),1),oe=V.points=Gn({},{size:ie,width:Er(1,ie*.2),stroke:V.stroke,space:ie*2,paths:ES,_stroke:null,_fill:null},V.points);oe.show=Ht(oe.show),oe.filter=Ht(oe.filter),oe.fill=Ht(oe.fill),oe.stroke=Ht(oe.stroke),oe.paths=Ht(oe.paths),oe.pxAlign=V.pxAlign}if(ae){let ie=Yt(V,X);Ie.splice(X,0,ie[0]),Ye.splice(X,0,ie[1]),he.values.push(null)}if(ue){te.splice(X,0,null);let ie=null;Tn?X==0&&(ie=ws(V,X)):X>0&&(ie=ws(V,X)),Ar.splice(X,0,ie),Qi.splice(X,0,0),Wi.splice(X,0,0)}tt("addSeries",X)}function Va(V,X){X=X??x.length,V=f==1?nh(V,X,om,dm):nh(V,X,{},hm),x.splice(X,0,V),ia(x[X],X)}r.addSeries=Va;function Ka(V){if(x.splice(V,1),ae){he.values.splice(V,1),Ye.splice(V,1);let X=Ie.splice(V,1)[0];En(null,X.firstChild),X.remove()}ue&&(te.splice(V,1),Ar.splice(V,1)[0].remove(),Qi.splice(V,1),Wi.splice(V,1)),tt("delSeries",V)}r.delSeries=Ka;const Bi=[!1,!1,!1,!1];function oi(V,X){if(V._show=V.show,V.show){let ie=V.side%2,oe=$[V.scale];oe==null&&(V.scale=ie?x[1].scale:C,oe=$[V.scale]);let ge=oe.time;V.size=Ht(V.size),V.space=Ht(V.space),V.rotate=Ht(V.rotate),No(V.incrs)&&V.incrs.forEach(Me=>{!Oo.has(Me)&&Oo.set(Me,Lf(Me))}),V.incrs=Ht(V.incrs||(oe.distr==2?jk:ge?w==1?Uk:qk:ps)),V.splits=Ht(V.splits||(ge&&oe.distr==1?U:oe.distr==3?Yu:oe.distr==4?hS:uS)),V.stroke=Ht(V.stroke),V.grid.stroke=Ht(V.grid.stroke),V.ticks.stroke=Ht(V.ticks.stroke),V.border.stroke=Ht(V.border.stroke);let be=V.values;V.values=No(be)&&!No(be[0])?Ht(be):ge?No(be)?Xf(N,Yf(be,B)):Nf(be)?Xk(N,be):be||q:be||cS,V.filter=Ht(V.filter||(oe.distr>=3&&oe.log==10?gS:oe.distr==3&&oe.log==2?fS:Mf)),V.font=Em(V.font),V.labelFont=Em(V.labelFont),V._size=V.size(r,null,X,0),V._space=V._rotate=V._incrs=V._found=V._splits=V._values=null,V._size>0&&(Bi[X]=!0,V._el=fi(ZC,u))}}function Ut(V,X,ie,oe){let[ge,be,Me,Pe]=ie,We=X%2,Ve=0;return We==0&&(Pe||be)&&(Ve=X==0&&!ge||X==2&&!Me?ir(im.size/3):0),We==1&&(ge||Me)&&(Ve=X==1&&!be||X==3&&!Pe?ir(lm.size/2):0),Ve}const oa=r.padding=(n.padding||[Ut,Ut,Ut,Ut]).map(V=>Ht(Qt(V,Ut))),_r=r._padding=oa.map((V,X)=>V(r,X,Bi,0));let Hn,mn=null,Ln=null;const vi=f==1?x[0].idxs:null;let Tr=null,yi=!1;function Po(V,X){if(t=V??[],r.data=r._data=t,f==2){Hn=0;for(let ie=1;ie<x.length;ie++)Hn+=t[ie][0].length}else{t.length==0&&(r.data=r._data=t=[[]]),Tr=t[0],Hn=Tr.length;let ie=t;if(F==2){ie=t.slice();let oe=ie[0]=Array(Hn);for(let ge=0;ge<Hn;ge++)oe[ge]=ge}r._data=t=ie}if(ji(!0),tt("setData"),F==2&&(Kr=!0),X!==!1){let ie=H;ie.auto(r,yi)?bs():Qn(C,ie.min,ie.max),Di=Di||ne.left>=0,fr=!0,to()}}r.setData=Po;function bs(){yi=!0;let V,X;f==1&&(Hn>0?(mn=vi[0]=0,Ln=vi[1]=Hn-1,V=t[0][mn],X=t[0][Ln],F==2?(V=mn,X=Ln):V==X&&(F==3?[V,X]=Pl(V,V,H.log,!1):F==4?[V,X]=Du(V,V,H.log,!1):H.time?X=V+ir(86400/w):[V,X]=Fl(V,X,Pu,!0))):(mn=vi[0]=V=null,Ln=vi[1]=X=null)),Qn(C,V,X)}let Zi,qr,ho,Fo,Gr,Wo,xs,Cs,Bo,or;function ks(V,X,ie,oe,ge,be){V??(V=lf),ie??(ie=zu),oe??(oe="butt"),ge??(ge=lf),be??(be="round"),V!=Zi&&(l.strokeStyle=Zi=V),ge!=qr&&(l.fillStyle=qr=ge),X!=ho&&(l.lineWidth=ho=X),be!=Gr&&(l.lineJoin=Gr=be),oe!=Wo&&(l.lineCap=Wo=oe),ie!=Fo&&l.setLineDash(Fo=ie)}function po(V,X,ie,oe){X!=qr&&(l.fillStyle=qr=X),V!=xs&&(l.font=xs=V),ie!=Cs&&(l.textAlign=Cs=ie),oe!=Bo&&(l.textBaseline=Bo=oe)}function zo(V,X,ie,oe,ge=0){if(oe.length>0&&V.auto(r,yi)&&(X==null||X.min==null)){let be=Qt(mn,0),Me=Qt(Ln,oe.length-1),Pe=ie.min==null?gk(oe,be,Me,ge,V.distr==3):[ie.min,ie.max];V.min=Oi(V.min,ie.min=Pe[0]),V.max=Er(V.max,ie.max=Pe[1])}}const jo={min:null,max:null};function Ji(){for(let oe in $){let ge=$[oe];A[oe]==null&&(ge.min==null||A[C]!=null&&ge.auto(r,yi))&&(A[oe]=jo)}for(let oe in $){let ge=$[oe];A[oe]==null&&ge.from!=null&&A[ge.from]!=null&&(A[oe]=jo)}A[C]!=null&&ji(!0);let V={};for(let oe in A){let ge=A[oe];if(ge!=null){let be=V[oe]=Ys($[oe],kk);if(ge.min!=null)Gn(be,ge);else if(oe!=C||f==2)if(Hn==0&&be.from==null){let Me=be.range(r,null,null,oe);be.min=Me[0],be.max=Me[1]}else be.min=pr,be.max=-1/0}}if(Hn>0){x.forEach((oe,ge)=>{if(f==1){let be=oe.scale,Me=A[be];if(Me==null)return;let Pe=V[be];if(ge==0){let We=Pe.range(r,Pe.min,Pe.max,be);Pe.min=We[0],Pe.max=We[1],mn=Li(Pe.min,t[0]),Ln=Li(Pe.max,t[0]),Ln-mn>1&&(t[0][mn]<Pe.min&&mn++,t[0][Ln]>Pe.max&&Ln--),oe.min=Tr[mn],oe.max=Tr[Ln]}else oe.show&&oe.auto&&zo(Pe,Me,oe,t[ge],oe.sorted);oe.idxs[0]=mn,oe.idxs[1]=Ln}else if(ge>0&&oe.show&&oe.auto){let[be,Me]=oe.facets,Pe=be.scale,We=Me.scale,[Ve,Qe]=t[ge],Je=V[Pe],kt=V[We];Je!=null&&zo(Je,A[Pe],be,Ve,be.sorted),kt!=null&&zo(kt,A[We],Me,Qe,Me.sorted),oe.min=Me.min,oe.max=Me.max}});for(let oe in V){let ge=V[oe],be=A[oe];if(ge.from==null&&(be==null||be.min==null)){let Me=ge.range(r,ge.min==pr?null:ge.min,ge.max==-1/0?null:ge.max,oe);ge.min=Me[0],ge.max=Me[1]}}}for(let oe in V){let ge=V[oe];if(ge.from!=null){let be=V[ge.from];if(be.min==null)ge.min=ge.max=null;else{let Me=ge.range(r,be.min,be.max,oe);ge.min=Me[0],ge.max=Me[1]}}}let X={},ie=!1;for(let oe in V){let ge=V[oe],be=$[oe];if(be.min!=ge.min||be.max!=ge.max){be.min=ge.min,be.max=ge.max;let Me=be.distr;be._min=Me==3?ao(be.min):Me==4?Wu(be.min,be.asinh):Me==100?be.fwd(be.min):be.min,be._max=Me==3?ao(be.max):Me==4?Wu(be.max,be.asinh):Me==100?be.fwd(be.max):be.max,X[oe]=ie=!0}}if(ie){x.forEach((oe,ge)=>{f==2?ge>0&&X.y&&(oe._paths=null):X[oe.scale]&&(oe._paths=null)});for(let oe in X)Kr=!0,tt("setScale",oe);ue&&ne.left>=0&&(Di=fr=!0)}for(let oe in A)A[oe]=null}function Ss(V){let X=Bu(mn-1,0,Hn-1),ie=Bu(Ln+1,0,Hn-1);for(;V[X]==null&&X>0;)X--;for(;V[ie]==null&&ie<Hn-1;)ie++;return[X,ie]}function sa(){if(Hn>0){let V=x.some(X=>X._focus)&&or!=Sr.alpha;V&&(l.globalAlpha=or=Sr.alpha),x.forEach((X,ie)=>{if(ie>0&&X.show&&(Ho(ie,!1),Ho(ie,!0),X._paths==null)){let oe=or;or!=X.alpha&&(l.globalAlpha=or=X.alpha);let ge=f==2?[0,t[ie][0].length-1]:Ss(t[ie]);X._paths=X.paths(r,ie,ge[0],ge[1]),or!=oe&&(l.globalAlpha=or=oe)}}),x.forEach((X,ie)=>{if(ie>0&&X.show){let oe=or;or!=X.alpha&&(l.globalAlpha=or=X.alpha),X._paths!=null&&Uo(ie,!1);{let ge=X._paths!=null?X._paths.gaps:null,be=X.points.show(r,ie,mn,Ln,ge),Me=X.points.filter(r,ie,be,ge);(be||Me)&&(X.points._paths=X.points.paths(r,ie,mn,Ln,Me),Uo(ie,!0))}or!=oe&&(l.globalAlpha=or=oe),tt("drawSeries",ie)}}),V&&(l.globalAlpha=or=1)}}function Ho(V,X){let ie=X?x[V].points:x[V];ie._stroke=ie.stroke(r,V),ie._fill=ie.fill(r,V)}function Uo(V,X){let ie=X?x[V].points:x[V],{stroke:oe,fill:ge,clip:be,flags:Me,_stroke:Pe=ie._stroke,_fill:We=ie._fill,_width:Ve=ie.width}=ie._paths;Ve=dn(Ve*Jt,3);let Qe=null,Je=Ve%2/2;X&&We==null&&(We=Ve>0?"#fff":Pe);let kt=ie.pxAlign==1&&Je>0;if(kt&&l.translate(Je,Je),!X){let zt=Dt-Ve/2,Tt=Ot-Ve/2,Wt=ut+Ve,ft=xt+Ve;Qe=new Path2D,Qe.rect(zt,Tt,Wt,ft)}X?go(Pe,Ve,ie.dash,ie.cap,We,oe,ge,Me,be):As(V,Pe,Ve,ie.dash,ie.cap,We,oe,ge,Me,Qe,be),kt&&l.translate(-Je,-Je)}function As(V,X,ie,oe,ge,be,Me,Pe,We,Ve,Qe){let Je=!1;We!=0&&S.forEach((kt,zt)=>{if(kt.series[0]==V){let Tt=x[kt.series[1]],Wt=t[kt.series[1]],ft=(Tt._paths||Oa).band;No(ft)&&(ft=kt.dir==1?ft[0]:ft[1]);let it,pn=null;Tt.show&&ft&&mk(Wt,mn,Ln)?(pn=kt.fill(r,zt)||be,it=Tt._paths.clip):ft=null,go(X,ie,oe,ge,pn,Me,Pe,We,Ve,Qe,it,ft),Je=!0}}),Je||go(X,ie,oe,ge,be,Me,Pe,We,Ve,Qe)}const Vo=Qs|Qu;function go(V,X,ie,oe,ge,be,Me,Pe,We,Ve,Qe,Je){ks(V,X,ie,oe,ge),(We||Ve||Je)&&(l.save(),We&&l.clip(We),Ve&&l.clip(Ve)),Je?(Pe&Vo)==Vo?(l.clip(Je),Qe&&l.clip(Qe),sr(ge,Me),wi(V,be,X)):Pe&Qu?(sr(ge,Me),l.clip(Je),wi(V,be,X)):Pe&Qs&&(l.save(),l.clip(Je),Qe&&l.clip(Qe),sr(ge,Me),l.restore(),wi(V,be,X)):(sr(ge,Me),wi(V,be,X)),(We||Ve||Je)&&l.restore()}function wi(V,X,ie){ie>0&&(X instanceof Map?X.forEach((oe,ge)=>{l.strokeStyle=Zi=ge,l.stroke(oe)}):X!=null&&V&&l.stroke(X))}function sr(V,X){X instanceof Map?X.forEach((ie,oe)=>{l.fillStyle=qr=oe,l.fill(ie)}):X!=null&&V&&l.fill(X)}function eo(V,X,ie,oe){let ge=E[V],be;if(oe<=0)be=[0,0];else{let Me=ge._space=ge.space(r,V,X,ie,oe),Pe=ge._incrs=ge.incrs(r,V,X,ie,oe,Me);be=PS(X,ie,Pe,oe,Me)}return ge._found=be}function zi(V,X,ie,oe,ge,be,Me,Pe,We,Ve){let Qe=Me%2/2;c==1&&l.translate(Qe,Qe),ks(Pe,Me,We,Ve,Pe),l.beginPath();let Je,kt,zt,Tt,Wt=ge+(oe==0||oe==3?-be:be);ie==0?(kt=ge,Tt=Wt):(Je=ge,zt=Wt);for(let ft=0;ft<V.length;ft++)X[ft]!=null&&(ie==0?Je=zt=V[ft]:kt=Tt=V[ft],l.moveTo(Je,kt),l.lineTo(zt,Tt));l.stroke(),c==1&&l.translate(-Qe,-Qe)}function aa(V){let X=!0;return E.forEach((ie,oe)=>{if(!ie.show)return;let ge=$[ie.scale];if(ge.min==null){ie._show&&(X=!1,ie._show=!1,ji(!1));return}else ie._show||(X=!1,ie._show=!0,ji(!1));let be=ie.side,Me=be%2,{min:Pe,max:We}=ge,[Ve,Qe]=eo(oe,Pe,We,Me==0?bt:He);if(Qe==0)return;let Je=ge.distr==2,kt=ie._splits=ie.splits(r,oe,Pe,We,Ve,Qe,Je),zt=ge.distr==2?kt.map(it=>Tr[it]):kt,Tt=ge.distr==2?Tr[kt[1]]-Tr[kt[0]]:Ve,Wt=ie._values=ie.values(r,ie.filter(r,zt,oe,Qe,Tt),oe,Qe,Tt);ie._rotate=be==2?ie.rotate(r,Wt,oe,Qe):0;let ft=ie._size;ie._size=mi(ie.size(r,Wt,oe,V)),ft!=null&&ie._size!=ft&&(X=!1)}),X}function qa(V){let X=!0;return oa.forEach((ie,oe)=>{let ge=ie(r,oe,Bi,V);ge!=_r[oe]&&(X=!1),_r[oe]=ge}),X}function fo(){for(let V=0;V<E.length;V++){let X=E[V];if(!X.show||!X._show)continue;let ie=X.side,oe=ie%2,ge,be,Me=X.stroke(r,V),Pe=ie==0||ie==3?-1:1,[We,Ve]=X._found;if(X.label!=null){let un=X.labelGap*Pe,hr=ir((X._lpos+un)*Jt);po(X.labelFont[0],Me,"center",ie==2?Ea:af),l.save(),oe==1?(ge=be=0,l.translate(hr,ir(Ot+xt/2)),l.rotate((ie==3?-Wl:Wl)/2)):(ge=ir(Dt+ut/2),be=hr);let bo=Tf(X.label)?X.label(r,V,We,Ve):X.label;l.fillText(bo,ge,be),l.restore()}if(Ve==0)continue;let Qe=$[X.scale],Je=oe==0?ut:xt,kt=oe==0?Dt:Ot,zt=X._splits,Tt=Qe.distr==2?zt.map(un=>Tr[un]):zt,Wt=Qe.distr==2?Tr[zt[1]]-Tr[zt[0]]:We,ft=X.ticks,it=X.border,pn=ft.show?ft.size:0,An=ir(pn*Jt),Jn=ir((X.alignTo==2?X._size-pn-X.gap:X.gap)*Jt),qt=X._rotate*-Wl/180,pe=d(X._pos*Jt),Se=(An+Jn)*Pe,xe=pe+Se;be=oe==0?xe:0,ge=oe==1?xe:0;let je=X.font[0],ct=X.align==1?Us:X.align==2?_u:qt>0?Us:qt<0?_u:oe==0?"center":ie==3?_u:Us,Lt=qt||oe==1?"middle":ie==2?Ea:af;po(je,Me,ct,Lt);let Xt=X.font[1]*X.lineGap,Pt=zt.map(un=>d(b(un,Qe,Je,kt))),Nr=X._values;for(let un=0;un<Nr.length;un++){let hr=Nr[un];if(hr!=null){oe==0?ge=Pt[un]:be=Pt[un],hr=""+hr;let bo=hr.indexOf(`
|
1489
|
-
`)==-1?[hr]:hr.split(/\n/gm);for(let Pn=0;Pn<bo.length;Pn++){let Ts=bo[Pn];qt?(l.save(),l.translate(ge,be+Pn*Xt),l.rotate(qt),l.fillText(Ts,0,0),l.restore()):l.fillText(Ts,ge,be+Pn*Xt)}}}ft.show&&zi(Pt,ft.filter(r,Tt,V,Ve,Wt),oe,ie,pe,An,dn(ft.width*Jt,3),ft.stroke(r,V),ft.dash,ft.cap);let Si=X.grid;Si.show&&zi(Pt,Si.filter(r,Tt,V,Ve,Wt),oe,oe==0?2:1,oe==0?Ot:Dt,oe==0?xt:ut,dn(Si.width*Jt,3),Si.stroke(r,V),Si.dash,Si.cap),it.show&&zi([pe],[1],oe==0?1:0,oe==0?1:2,oe==1?Ot:Dt,oe==1?xt:ut,dn(it.width*Jt,3),it.stroke(r,V),it.dash,it.cap)}tt("drawAxes")}function ji(V){x.forEach((X,ie)=>{ie>0&&(X._paths=null,V&&(f==1?(X.min=null,X.max=null):X.facets.forEach(oe=>{oe.min=null,oe.max=null})))})}let mo=!1,Ko=!1,vo=[];function la(){Ko=!1;for(let V=0;V<vo.length;V++)tt(...vo[V]);vo.length=0}function to(){mo||(Ik(ca),mo=!0)}function Fe(V,X=!1){mo=!0,Ko=X,V(r),ca(),X&&vo.length>0&&queueMicrotask(la)}r.batch=Fe;function ca(){if(Cn&&(Ji(),Cn=!1),Kr&&(ii(),Kr=!1),kr){if(wn(a,Us,ke),wn(a,Ea,ze),wn(a,Ma,bt),wn(a,Ia,He),wn(o,Us,ke),wn(o,Ea,ze),wn(o,Ma,bt),wn(o,Ia,He),wn(u,Ma,Rn),wn(u,Ia,Xn),s.width=ir(Rn*Jt),s.height=ir(Xn*Jt),E.forEach(({_el:V,_show:X,_size:ie,_pos:oe,side:ge})=>{if(V!=null)if(X){let be=ge===3||ge===0?ie:0,Me=ge%2==1;wn(V,Me?"left":"top",oe-be),wn(V,Me?"width":"height",ie),wn(V,Me?"top":"left",Me?ze:ke),wn(V,Me?"height":"width",Me?He:bt),Lu(V,cs)}else ti(V,cs)}),Zi=qr=ho=Gr=Wo=xs=Cs=Bo=Fo=null,or=1,W(!0),ke!=Xe||ze!=gt||bt!=At||He!=St){ji(!1);let V=bt/At,X=He/St;if(ue&&!Di&&ne.left>=0){ne.left*=V,ne.top*=X,si&&qi(si,ir(ne.left),0,bt,He),Un&&qi(Un,0,ir(ne.top),bt,He);for(let ie=0;ie<Ar.length;ie++){let oe=Ar[ie];oe!=null&&(Qi[ie]*=V,Wi[ie]*=X,qi(oe,mi(Qi[ie]),mi(Wi[ie]),bt,He))}}if(Ct.show&&!co&&Ct.left>=0&&Ct.width>0){Ct.left*=V,Ct.width*=V,Ct.top*=X,Ct.height*=X;for(let ie in Y)wn(Lr,ie,Ct[ie])}Xe=ke,gt=ze,At=bt,St=He}tt("setSize"),kr=!1}Rn>0&&Xn>0&&(l.clearRect(0,0,s.width,s.height),tt("drawClear"),L.forEach(V=>V()),tt("draw")),Ct.show&&co&&(cn(Ct),co=!1),ue&&Di&&(k(null,!0,!1),Di=!1),he.show&&he.live&&fr&&(v(),fr=!1),h||(h=!0,r.status=1,tt("ready")),yi=!1,mo=!1}r.redraw=(V,X)=>{Kr=X||!1,V!==!1?Qn(C,H.min,H.max):to()};function Ne(V,X){let ie=$[V];if(ie.from==null){if(Hn==0){let oe=ie.range(r,X.min,X.max,V);X.min=oe[0],X.max=oe[1]}if(X.min>X.max){let oe=X.min;X.min=X.max,X.max=oe}if(Hn>1&&X.min!=null&&X.max!=null&&X.max-X.min<1e-16)return;V==C&&ie.distr==2&&Hn>0&&(X.min=Li(X.min,t[0]),X.max=Li(X.max,t[0]),X.min==X.max&&X.max++),A[V]=X,Cn=!0,to()}}r.setScale=Ne;let $n,yo,si,Un,ua,wo,bi,no,nn,Zt,rn,Vt,xi=!1;const On=ne.drag;let Be=On.x,vn=On.y;ue&&(ne.x&&($n=fi(ek,o)),ne.y&&(yo=fi(tk,o)),H.ori==0?(si=$n,Un=yo):(si=yo,Un=$n),rn=ne.left,Vt=ne.top);const Ct=r.select=Gn({show:!0,over:!0,left:0,width:0,top:0,height:0},n.select),Lr=Ct.show?fi(JC,Ct.over?o:a):null;function cn(V,X){if(Ct.show){for(let ie in V)Ct[ie]=V[ie],ie in Y&&wn(Lr,ie,V[ie]);X!==!1&&tt("setSelect")}}r.setSelect=cn;function bn(V){if(x[V].show)ae&&Lu(Ie[V],cs);else if(ae&&ti(Ie[V],cs),ue){let X=Tn?Ar[0]:Ar[V];X!=null&&qi(X,-10,-10,bt,He)}}function Qn(V,X,ie){Ne(V,{min:X,max:ie})}function Or(V,X,ie,oe){X.focus!=null&&lr(V),X.show!=null&&x.forEach((ge,be)=>{be>0&&(V==be||V==null)&&(ge.show=X.show,bn(be),f==2?(Qn(ge.facets[0].scale,null,null),Qn(ge.facets[1].scale,null,null)):Qn(ge.scale,null,null),to())}),ie!==!1&&tt("setSeries",V,X),oe&&Rt("setSeries",r,V,X)}r.setSeries=Or;function Ci(V,X){Gn(S[V],X)}function Nn(V,X){V.fill=Ht(V.fill||null),V.dir=Qt(V.dir,-1),X=X??S.length,S.splice(X,0,V)}function Yr(V){V==null?S.length=0:S.splice(V,1)}r.addBand=Nn,r.setBand=Ci,r.delBand=Yr;function qo(V,X){x[V].alpha=X,ue&&Ar[V]!=null&&(Ar[V].style.opacity=X),ae&&Ie[V]&&(Ie[V].style.opacity=X)}let Dn,ai,li;const ki={focus:!0};function lr(V){if(V!=li){let X=V==null,ie=Sr.alpha!=1;x.forEach((oe,ge)=>{if(f==1||ge>0){let be=X||ge==0||ge==V;oe._focus=X?null:be,ie&&qo(ge,be?1:Sr.alpha)}}),li=V,ie&&to()}}ae&&Fi&&fn(hf,fe,V=>{ne._lock||(Pi(V),li!=null&&Or(null,ki,!0,lt.setSeries))});function cr(V,X,ie){let oe=$[X];ie&&(V=V/Jt-(oe.ori==1?ze:ke));let ge=bt;oe.ori==1&&(ge=He,V=ge-V),oe.dir==-1&&(V=ge-V);let be=oe._min,Me=oe._max,Pe=V/ge,We=be+(Me-be)*Pe,Ve=oe.distr;return Ve==3?qs(10,We):Ve==4?yk(We,oe.asinh):Ve==100?oe.bwd(We):We}function mr(V,X){let ie=cr(V,C,X);return Li(ie,t[0],mn,Ln)}r.valToIdx=V=>Li(V,t[0]),r.posToIdx=mr,r.posToVal=cr,r.valToPos=(V,X,ie)=>$[X].ori==0?p(V,$[X],ie?ut:bt,ie?Dt:0):y(V,$[X],ie?xt:He,ie?Ot:0),r.setCursor=(V,X,ie)=>{rn=V.left,Vt=V.top,k(null,X,ie)};function _s(V,X){wn(Lr,Us,Ct.left=V),wn(Lr,Ma,Ct.width=X)}function vr(V,X){wn(Lr,Ea,Ct.top=V),wn(Lr,Ia,Ct.height=X)}let $r=H.ori==0?_s:vr,ci=H.ori==1?_s:vr;function ui(){if(ae&&he.live)for(let V=f==2?1:0;V<x.length;V++){if(V==0&&dt)continue;let X=he.values[V],ie=0;for(let oe in X)Ye[V][ie++].firstChild.nodeValue=X[oe]}}function v(V,X){if(V!=null&&(V.idxs?V.idxs.forEach((ie,oe)=>{te[oe]=ie}):Ck(V.idx)||te.fill(V.idx),he.idx=te[0]),ae&&he.live){for(let ie=0;ie<x.length;ie++)(ie>0||f==1&&!dt)&&T(ie,te[ie]);ui()}fr=!1,X!==!1&&tt("setLegend")}r.setLegend=v;function T(V,X){let ie=x[V],oe=V==0&&F==2?Tr:t[V],ge;dt?ge=ie.values(r,V,X)??nt:(ge=ie.value(r,X==null?null:oe[X],V,X),ge=ge==null?nt:{_:ge}),he.values[V]=ge}function k(V,X,ie){nn=rn,Zt=Vt,[rn,Vt]=ne.move(r,rn,Vt),ne.left=rn,ne.top=Vt,ue&&(si&&qi(si,ir(rn),0,bt,He),Un&&qi(Un,0,ir(Vt),bt,He));let oe,ge=mn>Ln;Dn=pr,ai=null;let be=H.ori==0?bt:He,Me=H.ori==1?bt:He;if(rn<0||Hn==0||ge){oe=ne.idx=null;for(let Pe=0;Pe<x.length;Pe++){let We=Ar[Pe];We!=null&&qi(We,-10,-10,bt,He)}Fi&&Or(null,ki,!0,V==null&<.setSeries),he.live&&(te.fill(oe),fr=!0)}else{let Pe,We,Ve;f==1&&(Pe=H.ori==0?rn:Vt,We=cr(Pe,C),oe=ne.idx=Li(We,t[0],mn,Ln),Ve=O(t[0][oe],H,be,0));let Qe=-10,Je=-10,kt=0,zt=0,Tt=!0,Wt="",ft="";for(let it=f==2?1:0;it<x.length;it++){let pn=x[it],An=te[it],Jn=An==null?null:f==1?t[it][An]:t[it][1][An],qt=ne.dataIdx(r,it,oe,We),pe=qt==null?null:f==1?t[it][qt]:t[it][1][qt];if(fr=fr||pe!=Jn||qt!=An,te[it]=qt,it>0&&pn.show){let Se=qt==null?-10:qt==oe?Ve:O(f==1?t[0][qt]:t[it][0][qt],H,be,0),xe=pe==null?-10:_(pe,f==1?$[pn.scale]:$[pn.facets[1].scale],Me,0);if(Fi&&pe!=null){let je=H.ori==1?rn:Vt,ct=rr(Sr.dist(r,it,qt,xe,je));if(ct<Dn){let Lt=Sr.bias;if(Lt!=0){let Xt=cr(je,pn.scale),Pt=pe>=0?1:-1,Nr=Xt>=0?1:-1;Nr==Pt&&(Nr==1?Lt==1?pe>=Xt:pe<=Xt:Lt==1?pe<=Xt:pe>=Xt)&&(Dn=ct,ai=it)}else Dn=ct,ai=it}}if(fr||Tn){let je,ct;H.ori==0?(je=Se,ct=xe):(je=xe,ct=Se);let Lt,Xt,Pt,Nr,Si,un,hr=!0,bo=jn.bbox;if(bo!=null){hr=!1;let Pn=bo(r,it);Pt=Pn.left,Nr=Pn.top,Lt=Pn.width,Xt=Pn.height}else Pt=je,Nr=ct,Lt=Xt=jn.size(r,it);if(un=jn.fill(r,it),Si=jn.stroke(r,it),Tn)it==ai&&Dn<=Sr.prox&&(Qe=Pt,Je=Nr,kt=Lt,zt=Xt,Tt=hr,Wt=un,ft=Si);else{let Pn=Ar[it];Pn!=null&&(Qi[it]=Pt,Wi[it]=Nr,yf(Pn,Lt,Xt,hr),mf(Pn,un,Si),qi(Pn,mi(Pt),mi(Nr),bt,He))}}}}if(Tn){let it=Sr.prox,pn=li==null?Dn<=it:Dn>it||ai!=li;if(fr||pn){let An=Ar[0];An!=null&&(Qi[0]=Qe,Wi[0]=Je,yf(An,kt,zt,Tt),mf(An,Wt,ft),qi(An,mi(Qe),mi(Je),bt,He))}}}if(Ct.show&&xi)if(V!=null){let[Pe,We]=lt.scales,[Ve,Qe]=lt.match,[Je,kt]=V.cursor.sync.scales,zt=V.cursor.drag;if(Be=zt._x,vn=zt._y,Be||vn){let{left:Tt,top:Wt,width:ft,height:it}=V.select,pn=V.scales[Je].ori,An=V.posToVal,Jn,qt,pe,Se,xe,je=Pe!=null&&Ve(Pe,Je),ct=We!=null&&Qe(We,kt);je&&Be?(pn==0?(Jn=Tt,qt=ft):(Jn=Wt,qt=it),pe=$[Pe],Se=O(An(Jn,Je),pe,be,0),xe=O(An(Jn+qt,Je),pe,be,0),$r(Oi(Se,xe),rr(xe-Se))):$r(0,be),ct&&vn?(pn==1?(Jn=Tt,qt=ft):(Jn=Wt,qt=it),pe=$[We],Se=_(An(Jn,kt),pe,Me,0),xe=_(An(Jn+qt,kt),pe,Me,0),ci(Oi(Se,xe),rr(xe-Se))):ci(0,Me)}else Q()}else{let Pe=rr(nn-ua),We=rr(Zt-wo);if(H.ori==1){let kt=Pe;Pe=We,We=kt}Be=On.x&&Pe>=On.dist,vn=On.y&&We>=On.dist;let Ve=On.uni;Ve!=null?Be&&vn&&(Be=Pe>=Ve,vn=We>=Ve,!Be&&!vn&&(We>Pe?vn=!0:Be=!0)):On.x&&On.y&&(Be||vn)&&(Be=vn=!0);let Qe,Je;Be&&(H.ori==0?(Qe=bi,Je=rn):(Qe=no,Je=Vt),$r(Oi(Qe,Je),rr(Je-Qe)),vn||ci(0,Me)),vn&&(H.ori==1?(Qe=bi,Je=rn):(Qe=no,Je=Vt),ci(Oi(Qe,Je),rr(Je-Qe)),Be||$r(0,be)),!Be&&!vn&&($r(0,0),ci(0,0))}if(On._x=Be,On._y=vn,V==null){if(ie){if(kn!=null){let[Pe,We]=lt.scales;lt.values[0]=Pe!=null?cr(H.ori==0?rn:Vt,Pe):null,lt.values[1]=We!=null?cr(H.ori==1?rn:Vt,We):null}Rt($u,r,rn,Vt,bt,He,oe)}if(Fi){let Pe=ie&<.setSeries,We=Sr.prox;li==null?Dn<=We&&Or(ai,ki,!0,Pe):Dn>We?Or(null,ki,!0,Pe):ai!=li&&Or(ai,ki,!0,Pe)}}fr&&(he.idx=oe,v()),X!==!1&&tt("setCursor")}let D=null;Object.defineProperty(r,"rect",{get(){return D==null&&W(!1),D}});function W(V=!1){V?D=null:(D=o.getBoundingClientRect(),tt("syncRect",D))}function z(V,X,ie,oe,ge,be,Me){ne._lock||xi&&V!=null&&V.movementX==0&&V.movementY==0||(K(V,X,ie,oe,ge,be,Me,!1,V!=null),V!=null?k(null,!0,!0):k(X,!0,!1))}function K(V,X,ie,oe,ge,be,Me,Pe,We){if(D==null&&W(!1),Pi(V),V!=null)ie=V.clientX-D.left,oe=V.clientY-D.top;else{if(ie<0||oe<0){rn=-10,Vt=-10;return}let[Ve,Qe]=lt.scales,Je=X.cursor.sync,[kt,zt]=Je.values,[Tt,Wt]=Je.scales,[ft,it]=lt.match,pn=X.axes[0].side%2==1,An=H.ori==0?bt:He,Jn=H.ori==1?bt:He,qt=pn?be:ge,pe=pn?ge:be,Se=pn?oe:ie,xe=pn?ie:oe;if(Tt!=null?ie=ft(Ve,Tt)?b(kt,$[Ve],An,0):-10:ie=An*(Se/qt),Wt!=null?oe=it(Qe,Wt)?b(zt,$[Qe],Jn,0):-10:oe=Jn*(xe/pe),H.ori==1){let je=ie;ie=oe,oe=je}}We&&(X==null||X.cursor.event.type==$u)&&((ie<=1||ie>=bt-1)&&(ie=ds(ie,bt)),(oe<=1||oe>=He-1)&&(oe=ds(oe,He))),Pe?(ua=ie,wo=oe,[bi,no]=ne.move(r,ie,oe)):(rn=ie,Vt=oe)}const Y={width:0,height:0,left:0,top:0};function Q(){cn(Y,!1)}let re,se,ye,Ce;function me(V,X,ie,oe,ge,be,Me){xi=!0,Be=vn=On._x=On._y=!1,K(V,X,ie,oe,ge,be,Me,!0,!1),V!=null&&(fn(Mu,Eu,we,!1),Rt(cf,r,bi,no,bt,He,null));let{left:Pe,top:We,width:Ve,height:Qe}=Ct;re=Pe,se=We,ye=Ve,Ce=Qe}function we(V,X,ie,oe,ge,be,Me){xi=On._x=On._y=!1,K(V,X,ie,oe,ge,be,Me,!1,!0);let{left:Pe,top:We,width:Ve,height:Qe}=Ct,Je=Ve>0||Qe>0,kt=re!=Pe||se!=We||ye!=Ve||Ce!=Qe;if(Je&&kt&&cn(Ct),On.setScale&&Je&&kt){let zt=Pe,Tt=Ve,Wt=We,ft=Qe;if(H.ori==1&&(zt=We,Tt=Qe,Wt=Pe,ft=Ve),Be&&Qn(C,cr(zt,C),cr(zt+Tt,C)),vn)for(let it in $){let pn=$[it];it!=C&&pn.from==null&&pn.min!=pr&&Qn(it,cr(Wt+ft,it),cr(Wt,it))}Q()}else ne.lock&&(ne._lock=!ne._lock,k(X,!0,V!=null));V!=null&&(En(Mu,Eu),Rt(Mu,r,rn,Vt,bt,He,null))}function Oe(V,X,ie,oe,ge,be,Me){if(ne._lock)return;Pi(V);let Pe=xi;if(xi){let We=!0,Ve=!0,Qe=10,Je,kt;H.ori==0?(Je=Be,kt=vn):(Je=vn,kt=Be),Je&&kt&&(We=rn<=Qe||rn>=bt-Qe,Ve=Vt<=Qe||Vt>=He-Qe),Je&&We&&(rn=rn<bi?0:bt),kt&&Ve&&(Vt=Vt<no?0:He),k(null,!0,!0),xi=!1}rn=-10,Vt=-10,te.fill(null),k(null,!0,!0),Pe&&(xi=Pe)}function Le(V,X,ie,oe,ge,be,Me){ne._lock||(Pi(V),bs(),Q(),V!=null&&Rt(df,r,rn,Vt,bt,He,null))}function Ue(){E.forEach(FS),uo(r.width,r.height,!0)}us(Ol,Ks,Ue);const at={};at.mousedown=me,at.mousemove=z,at.mouseup=we,at.dblclick=Le,at.setSeries=(V,X,ie,oe)=>{let ge=lt.match[2];ie=ge(r,X,ie),ie!=-1&&Or(ie,oe,!0,!1)},ue&&(fn(cf,o,me),fn($u,o,z),fn(uf,o,V=>{Pi(V),W(!1)}),fn(hf,o,Oe),fn(df,o,Le),th.add(r),r.syncRect=W);const Ze=r.hooks=n.hooks||{};function tt(V,X,ie){Ko?vo.push([V,X,ie]):V in Ze&&Ze[V].forEach(oe=>{oe.call(null,r,X,ie)})}(n.plugins||[]).forEach(V=>{for(let X in V.hooks)Ze[X]=(Ze[X]||[]).concat(V.hooks[X])});const yn=(V,X,ie)=>ie,lt=Gn({key:null,setSeries:!1,filters:{pub:If,sub:If},scales:[C,x[1]?x[1].scale:null],match:[Ef,Ef,yn],values:[null,null]},ne.sync);lt.match.length==2&<.match.push(yn),ne.sync=lt;const kn=lt.key,_t=fm(kn);function Rt(V,X,ie,oe,ge,be,Me){lt.filters.pub(V,X,ie,oe,ge,be,Me)&&_t.pub(V,X,ie,oe,ge,be,Me)}_t.sub(r);function Zn(V,X,ie,oe,ge,be,Me){lt.filters.sub(V,X,ie,oe,ge,be,Me)&&at[V](null,X,ie,oe,ge,be,Me)}r.pub=Zn;function ur(){_t.unsub(r),th.delete(r),gr.clear(),Nu(Ol,Ks,Ue),g.remove(),fe==null||fe.remove(),tt("destroy")}r.destroy=ur;function Sn(){tt("init",n,t),Po(t||n.data,!1),A[C]?Ne(C,A[C]):bs(),co=Ct.show&&(Ct.width>0||Ct.height>0),Di=fr=!0,uo(n.width,n.height)}return x.forEach(ia),E.forEach(oi),e?e instanceof HTMLElement?(e.appendChild(g),Sn()):e(r,Sn):Sn(),r}xr.assign=Gn,xr.fmtNum=Fu,xr.rangeNum=Fl,xr.rangeLog=Pl,xr.rangeAsinh=Du,xr.orient=gs,xr.pxRatio=Jt,xr.join=Mk,xr.fmtDate=ju,xr.tzDate=Bk,xr.sync=fm;{xr.addGap=CS,xr.clipGaps=Vl;let n=xr.paths={points:Cm};n.linear=Sm,n.stepped=AS,n.bars=_S,n.spline=$S}var Rm,Lm;function WS(){return Lm||(Lm=1,Rm=function(n,t,e,r,f){var p,y;if(r===void 0)r=0;else if(r=r|0,r<0||r>=n.length)throw new RangeError("invalid lower bound");if(f===void 0)f=n.length-1;else if(f=f|0,f<r||f>=n.length)throw new RangeError("invalid upper bound");for(;r<=f;)if(p=r+(f-r>>>1),y=+e(n[p],t,p,n),y<0)r=p+1;else if(y>0)f=p-1;else return p;return~r}),Rm}var BS=WS();const d2=er("e",pl(BS));var rh,Om;function zS(){if(Om)return rh;Om=1;function n(t,e,r){var f=-1,p=t.length;e<0&&(e=-e>p?0:p+e),r=r>p?p:r,r<0&&(r+=p),p=e>r?0:r-e>>>0,e>>>=0;for(var y=Array(p);++f<p;)y[f]=t[f+e];return y}return rh=n,rh}var ih,Nm;function jS(){if(Nm)return ih;Nm=1;var n=zS();function t(e,r,f){var p=e.length;return f=f===void 0?p:f,!r&&f>=p?e:n(e,r,f)}return ih=t,ih}var oh,Dm;function Pm(){if(Dm)return oh;Dm=1;var n="\\ud800-\\udfff",t="\\u0300-\\u036f",e="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",f=t+e+r,p="\\ufe0e\\ufe0f",y="\\u200d",b=RegExp("["+y+n+f+p+"]");function h(g){return b.test(g)}return oh=h,oh}var sh,Fm;function HS(){if(Fm)return sh;Fm=1;function n(t){return t.split("")}return sh=n,sh}var ah,Wm;function US(){if(Wm)return ah;Wm=1;var n="\\ud800-\\udfff",t="\\u0300-\\u036f",e="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",f=t+e+r,p="\\ufe0e\\ufe0f",y="["+n+"]",b="["+f+"]",h="\\ud83c[\\udffb-\\udfff]",g="(?:"+b+"|"+h+")",s="[^"+n+"]",l="(?:\\ud83c[\\udde6-\\uddff]){2}",u="[\\ud800-\\udbff][\\udc00-\\udfff]",a="\\u200d",o=g+"?",c="["+p+"]?",d="(?:"+a+"(?:"+[s,l,u].join("|")+")"+c+o+")*",w=c+o+d,x="(?:"+[s+b+"?",b,l,u,y].join("|")+")",E=RegExp(h+"(?="+h+")|"+x+w,"g");function $(S){return S.match(E)||[]}return ah=$,ah}var lh,Bm;function VS(){if(Bm)return lh;Bm=1;var n=HS(),t=Pm(),e=US();function r(f){return t(f)?e(f):n(f)}return lh=r,lh}var ch,zm;function KS(){if(zm)return ch;zm=1;var n=typeof Ro=="object"&&Ro&&Ro.Object===Object&&Ro;return ch=n,ch}var uh,jm;function qS(){if(jm)return uh;jm=1;var n=KS(),t=typeof self=="object"&&self&&self.Object===Object&&self,e=n||t||Function("return this")();return uh=e,uh}var hh,Hm;function dh(){if(Hm)return hh;Hm=1;var n=qS(),t=n.Symbol;return hh=t,hh}var ph,Um;function GS(){if(Um)return ph;Um=1;function n(t,e){for(var r=-1,f=t==null?0:t.length,p=Array(f);++r<f;)p[r]=e(t[r],r,t);return p}return ph=n,ph}var gh,Vm;function YS(){if(Vm)return gh;Vm=1;var n=Array.isArray;return gh=n,gh}var fh,Km;function XS(){if(Km)return fh;Km=1;var n=dh(),t=Object.prototype,e=t.hasOwnProperty,r=t.toString,f=n?n.toStringTag:void 0;function p(y){var b=e.call(y,f),h=y[f];try{y[f]=void 0;var g=!0}catch{}var s=r.call(y);return g&&(b?y[f]=h:delete y[f]),s}return fh=p,fh}var mh,qm;function QS(){if(qm)return mh;qm=1;var n=Object.prototype,t=n.toString;function e(r){return t.call(r)}return mh=e,mh}var vh,Gm;function ZS(){if(Gm)return vh;Gm=1;var n=dh(),t=XS(),e=QS(),r="[object Null]",f="[object Undefined]",p=n?n.toStringTag:void 0;function y(b){return b==null?b===void 0?f:r:p&&p in Object(b)?t(b):e(b)}return vh=y,vh}var yh,Ym;function JS(){if(Ym)return yh;Ym=1;function n(t){return t!=null&&typeof t=="object"}return yh=n,yh}var wh,Xm;function eA(){if(Xm)return wh;Xm=1;var n=ZS(),t=JS(),e="[object Symbol]";function r(f){return typeof f=="symbol"||t(f)&&n(f)==e}return wh=r,wh}var bh,Qm;function tA(){if(Qm)return bh;Qm=1;var n=dh(),t=GS(),e=YS(),r=eA(),f=n?n.prototype:void 0,p=f?f.toString:void 0;function y(b){if(typeof b=="string")return b;if(e(b))return t(b,y)+"";if(r(b))return p?p.call(b):"";var h=b+"";return h=="0"&&1/b==-1/0?"-0":h}return bh=y,bh}var xh,Zm;function Yl(){if(Zm)return xh;Zm=1;var n=tA();function t(e){return e==null?"":n(e)}return xh=t,xh}var Ch,Jm;function nA(){if(Jm)return Ch;Jm=1;var n=jS(),t=Pm(),e=VS(),r=Yl();function f(p){return function(y){y=r(y);var b=t(y)?e(y):void 0,h=b?b[0]:y.charAt(0),g=b?n(b,1).join(""):y.slice(1);return h[p]()+g}}return Ch=f,Ch}var kh,ev;function tv(){if(ev)return kh;ev=1;var n=nA(),t=n("toUpperCase");return kh=t,kh}var rA=tv();const iA=pl(rA);var Sh,nv;function oA(){if(nv)return Sh;nv=1;var n=Yl(),t=tv();function e(r){return t(n(r).toLowerCase())}return Sh=e,Sh}var Ah,rv;function sA(){if(rv)return Ah;rv=1;function n(t,e,r,f){var p=-1,y=t==null?0:t.length;for(f&&y&&(r=t[++p]);++p<y;)r=e(r,t[p],p,t);return r}return Ah=n,Ah}var _h,iv;function aA(){if(iv)return _h;iv=1;function n(t){return function(e){return t==null?void 0:t[e]}}return _h=n,_h}var Th,ov;function lA(){if(ov)return Th;ov=1;var n=aA(),t={À:"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"},e=n(t);return Th=e,Th}var $h,sv;function cA(){if(sv)return $h;sv=1;var n=lA(),t=Yl(),e=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,r="\\u0300-\\u036f",f="\\ufe20-\\ufe2f",p="\\u20d0-\\u20ff",y=r+f+p,b="["+y+"]",h=RegExp(b,"g");function g(s){return s=t(s),s&&s.replace(e,n).replace(h,"")}return $h=g,$h}var Mh,av;function uA(){if(av)return Mh;av=1;var n=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function t(e){return e.match(n)||[]}return Mh=t,Mh}var Ih,lv;function hA(){if(lv)return Ih;lv=1;var n=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function t(e){return n.test(e)}return Ih=t,Ih}var Eh,cv;function dA(){if(cv)return Eh;cv=1;var n="\\ud800-\\udfff",t="\\u0300-\\u036f",e="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",f=t+e+r,p="\\u2700-\\u27bf",y="a-z\\xdf-\\xf6\\xf8-\\xff",b="\\xac\\xb1\\xd7\\xf7",h="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",g="\\u2000-\\u206f",s=" \\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",l="A-Z\\xc0-\\xd6\\xd8-\\xde",u="\\ufe0e\\ufe0f",a=b+h+g+s,o="['’]",c="["+a+"]",d="["+f+"]",w="\\d+",x="["+p+"]",E="["+y+"]",$="[^"+n+a+w+p+y+l+"]",S="\\ud83c[\\udffb-\\udfff]",C="(?:"+d+"|"+S+")",R="[^"+n+"]",L="(?:\\ud83c[\\udde6-\\uddff]){2}",P="[\\ud800-\\udbff][\\udc00-\\udfff]",I="["+l+"]",H="\\u200d",F="(?:"+E+"|"+$+")",O="(?:"+I+"|"+$+")",_="(?:"+o+"(?:d|ll|m|re|s|t|ve))?",A="(?:"+o+"(?:D|LL|M|RE|S|T|VE))?",N=C+"?",B="["+u+"]?",U="(?:"+H+"(?:"+[R,L,P].join("|")+")"+B+N+")*",q="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Z="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",te=B+N+U,he="(?:"+[x,L,P].join("|")+")"+te,ne=RegExp([I+"?"+E+"+"+_+"(?="+[c,I,"$"].join("|")+")",O+"+"+A+"(?="+[c,I+F,"$"].join("|")+")",I+"?"+F+"+"+_,I+"+"+A,Z,q,w,he].join("|"),"g");function ae(ue){return ue.match(ne)||[]}return Eh=ae,Eh}var Rh,uv;function pA(){if(uv)return Rh;uv=1;var n=uA(),t=hA(),e=Yl(),r=dA();function f(p,y,b){return p=e(p),y=b?void 0:y,y===void 0?t(p)?r(p):n(p):p.match(y)||[]}return Rh=f,Rh}var Lh,hv;function gA(){if(hv)return Lh;hv=1;var n=sA(),t=cA(),e=pA(),r="['’]",f=RegExp(r,"g");function p(y){return function(b){return n(e(t(b).replace(f,"")),y,"")}}return Lh=p,Lh}var Oh,dv;function fA(){if(dv)return Oh;dv=1;var n=oA(),t=gA(),e=t(function(r,f,p){return f=f.toLowerCase(),r+(p?n(f):f)});return Oh=e,Oh}var mA=fA();const vA=pl(mA),yA=Object.assign({"./ArrayWidget.vue":()=>st(()=>ot.import("./ArrayWidget-D0fKsdTb-608ea1179bd135904d6b.js"),void 0),"./ArrayplotWidget.vue":()=>st(()=>ot.import("./ArrayplotWidget-BmRSuGhA-63908aecc5273b075096.js"),void 0),"./BlockWidget.vue":()=>st(()=>ot.import("./BlockWidget-Dpxbw455-149a4748813860884145.js"),void 0),"./ButtonWidget.vue":()=>st(()=>ot.import("./ButtonWidget-8iOpXmpp-f52902b1a53c36a358e3.js"),void 0),"./CanvasWidget.vue":()=>st(()=>ot.import("./CanvasWidget-B0iU38rA-fb2d91fdc6f2e21f4d2d.js"),void 0),"./CanvasdotWidget.vue":()=>st(()=>ot.import("./CanvasdotWidget-C9viSVBs-5a9e078e1c2710fb8f7a.js"),void 0),"./CanvasimageWidget.vue":()=>st(()=>ot.import("./CanvasimageWidget-CFiCpITu-8bbab3e74f0ac57f3670.js"),void 0),"./CanvasimagevalueWidget.vue":()=>st(()=>ot.import("./CanvasimagevalueWidget-fu6vbAY0-5106bd317c2f6beba7af.js"),void 0),"./CanvaslabelWidget.vue":()=>st(()=>ot.import("./CanvaslabelWidget-BVqHq3Vp-4eadee72c38d2199839c.js"),void 0),"./CanvaslabelvalueWidget.vue":()=>st(()=>ot.import("./CanvaslabelvalueWidget-BOFa8-NU-34bf6b4ec4632bec4fcd.js"),void 0),"./CanvaslineWidget.vue":()=>st(()=>ot.import("./CanvaslineWidget-l3ko0QXk-8f3d35e1c5742fbdffce.js"),void 0),"./CanvaslinevalueWidget.vue":()=>st(()=>ot.import("./CanvaslinevalueWidget-BCZoO-Z6-6e27e6157f15d7fa80f8.js"),void 0),"./CheckbuttonWidget.vue":()=>st(()=>ot.import("./CheckbuttonWidget-BN7e1d5b-bd01a570c597849e18be.js"),void 0),"./ComboboxWidget.vue":()=>st(()=>ot.import("./ComboboxWidget-Bb5RGXDB-2c5cc99200edcefd072d.js"),void 0),"./DateWidget.vue":()=>st(()=>ot.import("./DateWidget-Dggqab-F-8d0cdac01a65a5aed605.js"),void 0),"./DynamicWidget.vue":()=>st(()=>ot.import("./DynamicWidget-CfMtj7H8-db53e5b0cf329eb3a988.js"),void 0),"./FormatvalueWidget.vue":()=>st(()=>ot.import("./FormatvalueWidget-B9_PbzY2-a06ae9e29cb3ae4af6df.js"),void 0),"./HorizontalWidget.vue":()=>st(()=>ot.import("./HorizontalWidget-BWgZL_Oz-a1c75a7de491898f7f21.js"),void 0),"./HorizontalboxWidget.vue":()=>st(()=>ot.import("./HorizontalboxWidget-yMYUnNB8-183568379896295ac826.js"),void 0),"./HorizontallineWidget.vue":()=>st(()=>ot.import("./HorizontallineWidget-C4zMx7z2-e91608cbd592af522e59.js"),void 0),"./IframeWidget.vue":()=>st(()=>ot.import("./IframeWidget-DA4P_mJT-852aedb8aa312cbd8a75.js"),void 0),"./ImageviewerWidget.vue":()=>st(()=>ot.import("./ImageviewerWidget-B1wK0hK4-c9c316d80f28fc6c5022.js"),void 0),"./LabelWidget.vue":()=>st(()=>ot.import("./LabelWidget-CY0saBoK-f99deb00dd50e6f86496.js"),void 0),"./LabelledWidget.vue":()=>st(()=>ot.import("./LabelledWidget-B3ZOYaGy-ddfdfea1a2dae96e2641.js"),void 0),"./LabelprogressbarWidget.vue":()=>st(()=>ot.import("./LabelprogressbarWidget-CmXcESTg-5c4bfcaf078667fd175b.js"),void 0),"./LabelsparklineWidget.vue":()=>st(()=>ot.import("./LabelsparklineWidget-D_yrQrn6-a3c18977610ddd85d1ec.js"),void 0),"./LabelvalueWidget.vue":()=>st(()=>ot.import("./LabelvalueWidget-dNaNfsBE-7056094afe14c1feb838.js"),void 0),"./LabelvaluedescWidget.vue":()=>st(()=>ot.import("./LabelvaluedescWidget-3vNoH6Mc-f0bd629bd36008351fff.js"),void 0),"./LabelvaluelimitsbarWidget.vue":()=>st(()=>ot.import("./LabelvaluelimitsbarWidget-7VppYVIN-d1f00e26bb0cf6022249.js"),void 0),"./LabelvaluelimitscolumnWidget.vue":()=>st(()=>ot.import("./LabelvaluelimitscolumnWidget-BZ6nwifg-105ab6eabe210563ba54.js"),void 0),"./LabelvaluerangebarWidget.vue":()=>st(()=>ot.import("./LabelvaluerangebarWidget-IyuXLNsw-16a4e9105e9689699f2b.js"),void 0),"./LedWidget.vue":()=>st(()=>ot.import("./LedWidget-DSxpmIOK-4c45d10d3ed45f337e89.js"),void 0),"./LimitsbarWidget.vue":()=>st(()=>ot.import("./LimitsbarWidget-BoPTdVV5-975fd2a3405c0ffe831a.js"),void 0),"./LimitscolorWidget.vue":()=>st(()=>ot.import("./LimitscolorWidget-Bt3qOvrv-b1cfc027db3ff599a308.js"),void 0),"./LimitscolumnWidget.vue":()=>st(()=>ot.import("./LimitscolumnWidget-Ce6YnUBz-2c97f3c52e8a45bb5d4d.js"),void 0),"./LinegraphWidget.vue":()=>st(()=>ot.import("./LinegraphWidget-XAbg0jj2-73482bd06bd3d4cbc0a8.js"),void 0),"./MatrixbycolumnsWidget.vue":()=>st(()=>ot.import("./MatrixbycolumnsWidget-5MgJFZtz-80d57a9882a4406ecc2b.js"),void 0),"./ProgressbarWidget.vue":()=>st(()=>ot.import("./ProgressbarWidget-CDwDOFIy-9debc744db7e38eb5d41.js"),void 0),"./RadiobuttonWidget.vue":()=>st(()=>ot.import("./RadiobuttonWidget-cQ8V8LaD-80b2ceedfe044a3ea2c8.js"),void 0),"./RadiogroupWidget.vue":()=>st(()=>ot.import("./RadiogroupWidget-BvRnuGA2-7036429f70721982fbad.js"),void 0),"./RangebarWidget.vue":()=>st(()=>ot.import("./RangebarWidget-aHmgV0qs-1c885b41eb51fc89a4a8.js"),void 0),"./RollupWidget.vue":()=>st(()=>ot.import("./RollupWidget-D1jUPrUQ-7ada173fbe7ce66b08c8.js"),void 0),"./ScrollwindowWidget.vue":()=>st(()=>ot.import("./ScrollwindowWidget-Cn0o3b4E-592040bf66470c6bc644.js"),void 0),"./SignalWidget.vue":()=>st(()=>ot.import("./SignalWidget-BQBzqdU--c95cd62b2f6082514a7c.js"),void 0),"./SpacerWidget.vue":()=>st(()=>ot.import("./SpacerWidget-C0RmQY3t-b711fd94de5a76f959d0.js"),void 0),"./SparklineWidget.vue":()=>st(()=>ot.import("./SparklineWidget-BTH9rvcX-d3c6d812bbd952233c60.js"),void 0),"./TabbookWidget.vue":()=>st(()=>ot.import("./TabbookWidget-C-aDdEoD-87cb866b9075ffb79db4.js"),void 0),"./TextboxWidget.vue":()=>st(()=>ot.import("./TextboxWidget-Dd2ccpUQ-8c0ef41a0e77764d8e7e.js"),void 0),"./TextfieldWidget.vue":()=>st(()=>ot.import("./TextfieldWidget-DY3aFTnP-ff475464d7bb092dca4e.js"),void 0),"./TimeWidget.vue":()=>st(()=>ot.import("./TimeWidget-C_site21-ce4a279c314e918b2d8a.js"),void 0),"./TitleWidget.vue":()=>st(()=>ot.import("./TitleWidget-Bx81VfQD-6ed8a79f503f8dde5cf4.js"),void 0),"./ValueWidget.vue":()=>st(()=>ot.import("./ValueWidget-cbjxVV3B-b55ecae94a4970cc02b7.js"),void 0),"./ValuelimitsbarWidget.vue":()=>st(()=>ot.import("./ValuelimitsbarWidget-cQb2o_xH-3fce8514b55aedd01eb0.js"),void 0),"./ValuelimitscolumnWidget.vue":()=>st(()=>ot.import("./ValuelimitscolumnWidget-BBTuSCK9-f44ee894ccb209f76111.js"),void 0),"./ValuerangebarWidget.vue":()=>st(()=>ot.import("./ValuerangebarWidget-Ct7iGtu0-f9e152d9443bceb8216b.js"),void 0),"./VerticalWidget.vue":()=>st(()=>ot.import("./VerticalWidget-DJn02myf-52b3bdf0690336afdc4b.js"),void 0),"./VerticalboxWidget.vue":()=>st(()=>ot.import("./VerticalboxWidget-DHQMxtF3-e81b4eebe258076efa89.js"),void 0)}),wA=Object.entries(yA).reduce((n,[t,e])=>{t=t.split("/").pop();const r=iA(vA(t.replace(/\.\w+$/,"")));return{...n,[r]:np(e)}},{}),p2=er("U",{components:wA});function pv(n,t){return function(){return n.apply(t,arguments)}}const{toString:bA}=Object.prototype,{getPrototypeOf:Nh}=Object,{iterator:Xl,toStringTag:gv}=Symbol,Ql=(n=>t=>{const e=bA.call(t);return n[e]||(n[e]=e.slice(8,-1).toLowerCase())})(Object.create(null)),Ni=n=>(n=n.toLowerCase(),t=>Ql(t)===n),Zl=n=>t=>typeof t===n,{isArray:ea}=Array,Pa=Zl("undefined");function xA(n){return n!==null&&!Pa(n)&&n.constructor!==null&&!Pa(n.constructor)&&Ur(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const fv=Ni("ArrayBuffer");function CA(n){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(n):t=n&&n.buffer&&fv(n.buffer),t}const kA=Zl("string"),Ur=Zl("function"),mv=Zl("number"),Jl=n=>n!==null&&typeof n=="object",SA=n=>n===!0||n===!1,ec=n=>{if(Ql(n)!=="object")return!1;const t=Nh(n);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(gv in n)&&!(Xl in n)},AA=Ni("Date"),_A=Ni("File"),TA=Ni("Blob"),$A=Ni("FileList"),MA=n=>Jl(n)&&Ur(n.pipe),IA=n=>{let t;return n&&(typeof FormData=="function"&&n instanceof FormData||Ur(n.append)&&((t=Ql(n))==="formdata"||t==="object"&&Ur(n.toString)&&n.toString()==="[object FormData]"))},EA=Ni("URLSearchParams"),[RA,LA,OA,NA]=["ReadableStream","Request","Response","Headers"].map(Ni),DA=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Fa(n,t,{allOwnKeys:e=!1}={}){if(n===null||typeof n>"u")return;let r,f;if(typeof n!="object"&&(n=[n]),ea(n))for(r=0,f=n.length;r<f;r++)t.call(null,n[r],r,n);else{const p=e?Object.getOwnPropertyNames(n):Object.keys(n),y=p.length;let b;for(r=0;r<y;r++)b=p[r],t.call(null,n[b],b,n)}}function vv(n,t){t=t.toLowerCase();const e=Object.keys(n);let r=e.length,f;for(;r-- >0;)if(f=e[r],t===f.toLowerCase())return f;return null}const fs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,yv=n=>!Pa(n)&&n!==fs;function Dh(){const{caseless:n}=yv(this)&&this||{},t={},e=(r,f)=>{const p=n&&vv(t,f)||f;ec(t[p])&&ec(r)?t[p]=Dh(t[p],r):ec(r)?t[p]=Dh({},r):ea(r)?t[p]=r.slice():t[p]=r};for(let r=0,f=arguments.length;r<f;r++)arguments[r]&&Fa(arguments[r],e);return t}const PA=(n,t,e,{allOwnKeys:r}={})=>(Fa(t,(f,p)=>{e&&Ur(f)?n[p]=pv(f,e):n[p]=f},{allOwnKeys:r}),n),FA=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),WA=(n,t,e,r)=>{n.prototype=Object.create(t.prototype,r),n.prototype.constructor=n,Object.defineProperty(n,"super",{value:t.prototype}),e&&Object.assign(n.prototype,e)},BA=(n,t,e,r)=>{let f,p,y;const b={};if(t=t||{},n==null)return t;do{for(f=Object.getOwnPropertyNames(n),p=f.length;p-- >0;)y=f[p],(!r||r(y,n,t))&&!b[y]&&(t[y]=n[y],b[y]=!0);n=e!==!1&&Nh(n)}while(n&&(!e||e(n,t))&&n!==Object.prototype);return t},zA=(n,t,e)=>{n=String(n),(e===void 0||e>n.length)&&(e=n.length),e-=t.length;const r=n.indexOf(t,e);return r!==-1&&r===e},jA=n=>{if(!n)return null;if(ea(n))return n;let t=n.length;if(!mv(t))return null;const e=new Array(t);for(;t-- >0;)e[t]=n[t];return e},HA=(n=>t=>n&&t instanceof n)(typeof Uint8Array<"u"&&Nh(Uint8Array)),UA=(n,t)=>{const e=(n&&n[Xl]).call(n);let r;for(;(r=e.next())&&!r.done;){const f=r.value;t.call(n,f[0],f[1])}},VA=(n,t)=>{let e;const r=[];for(;(e=n.exec(t))!==null;)r.push(e);return r},KA=Ni("HTMLFormElement"),qA=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,e,r){return e.toUpperCase()+r}),wv=(({hasOwnProperty:n})=>(t,e)=>n.call(t,e))(Object.prototype),GA=Ni("RegExp"),bv=(n,t)=>{const e=Object.getOwnPropertyDescriptors(n),r={};Fa(e,(f,p)=>{let y;(y=t(f,p,n))!==!1&&(r[p]=y||f)}),Object.defineProperties(n,r)},YA=n=>{bv(n,(t,e)=>{if(Ur(n)&&["arguments","caller","callee"].indexOf(e)!==-1)return!1;const r=n[e];if(Ur(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+e+"'")})}})},XA=(n,t)=>{const e={},r=f=>{f.forEach(p=>{e[p]=!0})};return ea(n)?r(n):r(String(n).split(t)),e},QA=()=>{},ZA=(n,t)=>n!=null&&Number.isFinite(n=+n)?n:t;function JA(n){return!!(n&&Ur(n.append)&&n[gv]==="FormData"&&n[Xl])}const e_=n=>{const t=new Array(10),e=(r,f)=>{if(Jl(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[f]=r;const p=ea(r)?[]:{};return Fa(r,(y,b)=>{const h=e(y,f+1);!Pa(h)&&(p[b]=h)}),t[f]=void 0,p}}return r};return e(n,0)},t_=Ni("AsyncFunction"),n_=n=>n&&(Jl(n)||Ur(n))&&Ur(n.then)&&Ur(n.catch),xv=((n,t)=>n?setImmediate:t?((e,r)=>(fs.addEventListener("message",({source:f,data:p})=>{f===fs&&p===e&&r.length&&r.shift()()},!1),f=>{r.push(f),fs.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate=="function",Ur(fs.postMessage)),r_=typeof queueMicrotask<"u"?queueMicrotask.bind(fs):typeof process<"u"&&process.nextTick||xv,i_=n=>n!=null&&Ur(n[Xl]),_e={isArray:ea,isArrayBuffer:fv,isBuffer:xA,isFormData:IA,isArrayBufferView:CA,isString:kA,isNumber:mv,isBoolean:SA,isObject:Jl,isPlainObject:ec,isReadableStream:RA,isRequest:LA,isResponse:OA,isHeaders:NA,isUndefined:Pa,isDate:AA,isFile:_A,isBlob:TA,isRegExp:GA,isFunction:Ur,isStream:MA,isURLSearchParams:EA,isTypedArray:HA,isFileList:$A,forEach:Fa,merge:Dh,extend:PA,trim:DA,stripBOM:FA,inherits:WA,toFlatObject:BA,kindOf:Ql,kindOfTest:Ni,endsWith:zA,toArray:jA,forEachEntry:UA,matchAll:VA,isHTMLForm:KA,hasOwnProperty:wv,hasOwnProp:wv,reduceDescriptors:bv,freezeMethods:YA,toObjectSet:XA,toCamelCase:qA,noop:QA,toFiniteNumber:ZA,findKey:vv,global:fs,isContextDefined:yv,isSpecCompliantForm:JA,toJSONObject:e_,isAsyncFn:t_,isThenable:n_,setImmediate:xv,asap:r_,isIterable:i_};function Et(n,t,e,r,f){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=n,this.name="AxiosError",t&&(this.code=t),e&&(this.config=e),r&&(this.request=r),f&&(this.response=f,this.status=f.status?f.status:null)}_e.inherits(Et,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:_e.toJSONObject(this.config),code:this.code,status:this.status}}});const Cv=Et.prototype,kv={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(n=>{kv[n]={value:n}}),Object.defineProperties(Et,kv),Object.defineProperty(Cv,"isAxiosError",{value:!0}),Et.from=(n,t,e,r,f,p)=>{const y=Object.create(Cv);return _e.toFlatObject(n,y,function(b){return b!==Error.prototype},b=>b!=="isAxiosError"),Et.call(y,n.message,t,e,r,f),y.cause=n,y.name=n.name,p&&Object.assign(y,p),y};const o_=null;function Ph(n){return _e.isPlainObject(n)||_e.isArray(n)}function Sv(n){return _e.endsWith(n,"[]")?n.slice(0,-2):n}function Av(n,t,e){return n?n.concat(t).map(function(r,f){return r=Sv(r),!e&&f?"["+r+"]":r}).join(e?".":""):t}function s_(n){return _e.isArray(n)&&!n.some(Ph)}const a_=_e.toFlatObject(_e,{},null,function(n){return/^is[A-Z]/.test(n)});function tc(n,t,e){if(!_e.isObject(n))throw new TypeError("target must be an object");t=t||new FormData,e=_e.toFlatObject(e,{metaTokens:!0,dots:!1,indexes:!1},!1,function(a,o){return!_e.isUndefined(o[a])});const r=e.metaTokens,f=e.visitor||g,p=e.dots,y=e.indexes,b=(e.Blob||typeof Blob<"u"&&Blob)&&_e.isSpecCompliantForm(t);if(!_e.isFunction(f))throw new TypeError("visitor must be a function");function h(a){if(a===null)return"";if(_e.isDate(a))return a.toISOString();if(!b&&_e.isBlob(a))throw new Et("Blob is not supported. Use a Buffer instead.");return _e.isArrayBuffer(a)||_e.isTypedArray(a)?b&&typeof Blob=="function"?new Blob([a]):Buffer.from(a):a}function g(a,o,c){let d=a;if(a&&!c&&typeof a=="object"){if(_e.endsWith(o,"{}"))o=r?o:o.slice(0,-2),a=JSON.stringify(a);else if(_e.isArray(a)&&s_(a)||(_e.isFileList(a)||_e.endsWith(o,"[]"))&&(d=_e.toArray(a)))return o=Sv(o),d.forEach(function(w,x){!(_e.isUndefined(w)||w===null)&&t.append(y===!0?Av([o],x,p):y===null?o:o+"[]",h(w))}),!1}return Ph(a)?!0:(t.append(Av(c,o,p),h(a)),!1)}const s=[],l=Object.assign(a_,{defaultVisitor:g,convertValue:h,isVisitable:Ph});function u(a,o){if(!_e.isUndefined(a)){if(s.indexOf(a)!==-1)throw Error("Circular reference detected in "+o.join("."));s.push(a),_e.forEach(a,function(c,d){(!(_e.isUndefined(c)||c===null)&&f.call(t,c,_e.isString(d)?d.trim():d,o,l))===!0&&u(c,o?o.concat(d):[d])}),s.pop()}}if(!_e.isObject(n))throw new TypeError("data must be an object");return u(n),t}function _v(n){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function Fh(n,t){this._pairs=[],n&&tc(n,this,t)}const Tv=Fh.prototype;Tv.append=function(n,t){this._pairs.push([n,t])},Tv.toString=function(n){const t=n?function(e){return n.call(this,e,_v)}:_v;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};function l_(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function $v(n,t,e){if(!t)return n;const r=e&&e.encode||l_;_e.isFunction(e)&&(e={serialize:e});const f=e&&e.serialize;let p;if(f?p=f(t,e):p=_e.isURLSearchParams(t)?t.toString():new Fh(t,e).toString(r),p){const y=n.indexOf("#");y!==-1&&(n=n.slice(0,y)),n+=(n.indexOf("?")===-1?"?":"&")+p}return n}let Mv=class{constructor(){this.handlers=[]}use(t,e,r){return this.handlers.push({fulfilled:t,rejected:e,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){_e.forEach(this.handlers,function(e){e!==null&&t(e)})}};const Iv={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},c_=typeof URLSearchParams<"u"?URLSearchParams:Fh,u_=typeof FormData<"u"?FormData:null,h_=typeof Blob<"u"?Blob:null,d_={isBrowser:!0,classes:{URLSearchParams:c_,FormData:u_,Blob:h_},protocols:["http","https","file","blob","url","data"]},Wh=typeof window<"u"&&typeof document<"u",Bh=typeof navigator=="object"&&navigator||void 0,p_=Wh&&(!Bh||["ReactNative","NativeScript","NS"].indexOf(Bh.product)<0),g_=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",f_=Wh&&window.location.href||"http://localhost",m_=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Wh,hasStandardBrowserEnv:p_,hasStandardBrowserWebWorkerEnv:g_,navigator:Bh,origin:f_},Symbol.toStringTag,{value:"Module"})),Cr={...m_,...d_};function v_(n,t){return tc(n,new Cr.classes.URLSearchParams,Object.assign({visitor:function(e,r,f,p){return Cr.isNode&&_e.isBuffer(e)?(this.append(r,e.toString("base64")),!1):p.defaultVisitor.apply(this,arguments)}},t))}function y_(n){return _e.matchAll(/\w+|\[(\w*)]/g,n).map(t=>t[0]==="[]"?"":t[1]||t[0])}function w_(n){const t={},e=Object.keys(n);let r;const f=e.length;let p;for(r=0;r<f;r++)p=e[r],t[p]=n[p];return t}function Ev(n){function t(e,r,f,p){let y=e[p++];if(y==="__proto__")return!0;const b=Number.isFinite(+y),h=p>=e.length;return y=!y&&_e.isArray(f)?f.length:y,h?(_e.hasOwnProp(f,y)?f[y]=[f[y],r]:f[y]=r,!b):((!f[y]||!_e.isObject(f[y]))&&(f[y]=[]),t(e,r,f[y],p)&&_e.isArray(f[y])&&(f[y]=w_(f[y])),!b)}if(_e.isFormData(n)&&_e.isFunction(n.entries)){const e={};return _e.forEachEntry(n,(r,f)=>{t(y_(r),f,e,0)}),e}return null}function b_(n,t,e){if(_e.isString(n))try{return(t||JSON.parse)(n),_e.trim(n)}catch(r){if(r.name!=="SyntaxError")throw r}return(e||JSON.stringify)(n)}const Wa={transitional:Iv,adapter:["xhr","http","fetch"],transformRequest:[function(n,t){const e=t.getContentType()||"",r=e.indexOf("application/json")>-1,f=_e.isObject(n);if(f&&_e.isHTMLForm(n)&&(n=new FormData(n)),_e.isFormData(n))return r?JSON.stringify(Ev(n)):n;if(_e.isArrayBuffer(n)||_e.isBuffer(n)||_e.isStream(n)||_e.isFile(n)||_e.isBlob(n)||_e.isReadableStream(n))return n;if(_e.isArrayBufferView(n))return n.buffer;if(_e.isURLSearchParams(n))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),n.toString();let p;if(f){if(e.indexOf("application/x-www-form-urlencoded")>-1)return v_(n,this.formSerializer).toString();if((p=_e.isFileList(n))||e.indexOf("multipart/form-data")>-1){const y=this.env&&this.env.FormData;return tc(p?{"files[]":n}:n,y&&new y,this.formSerializer)}}return f||r?(t.setContentType("application/json",!1),b_(n)):n}],transformResponse:[function(n){const t=this.transitional||Wa.transitional,e=t&&t.forcedJSONParsing,r=this.responseType==="json";if(_e.isResponse(n)||_e.isReadableStream(n))return n;if(n&&_e.isString(n)&&(e&&!this.responseType||r)){const f=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(n)}catch(p){if(f)throw p.name==="SyntaxError"?Et.from(p,Et.ERR_BAD_RESPONSE,this,null,this.response):p}}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Cr.classes.FormData,Blob:Cr.classes.Blob},validateStatus:function(n){return n>=200&&n<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};_e.forEach(["delete","get","head","post","put","patch"],n=>{Wa.headers[n]={}});const x_=_e.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),C_=n=>{const t={};let e,r,f;return n&&n.split(`
|
1487
|
+
}`;var Ft=mb(function(){return Lt(ee,rt+"return "+De).apply(e,le)});if(Ft.source=De,Ud(Ft))throw Ft;return Ft}function ZO(i){return sn(i).toLowerCase()}function JO(i){return sn(i).toUpperCase()}function eN(i,m,M){if(i=sn(i),i&&(M||m===e))return wn(i);if(!i||!(m=hi(m)))return i;var j=Tt(i),G=Tt(m),ee=Rt(j,G),le=Jn(j,G)+1;return Zo(j,ee,le).join("")}function tN(i,m,M){if(i=sn(i),i&&(M||m===e))return i.slice(0,Wt(i)+1);if(!i||!(m=hi(m)))return i;var j=Tt(i),G=Jn(j,Tt(m))+1;return Zo(j,0,G).join("")}function nN(i,m,M){if(i=sn(i),i&&(M||m===e))return i.replace($n,"");if(!i||!(m=hi(m)))return i;var j=Tt(i),G=Rt(j,Tt(m));return Zo(j,G).join("")}function rN(i,m){var M=I,j=H;if(In(m)){var G="separator"in m?m.separator:G;M="length"in m?Nt(m.length):M,j="omission"in m?hi(m.omission):j}i=sn(i);var ee=i.length;if(oe(i)){var le=Tt(i);ee=le.length}if(M>=ee)return i;var de=M-zt(j);if(de<1)return j;var ve=le?Zo(le,0,de).join(""):i.slice(0,de);if(G===e)return ve+j;if(le&&(de+=ve.length-de),Vd(G)){if(i.slice(de).search(G)){var Ee,Re=ve;for(G.global||(G=Nr(G.source,sn(oi.exec(G))+"g")),G.lastIndex=0;Ee=G.exec(Re);)var De=Ee.index;ve=ve.slice(0,De===e?de:De)}}else if(i.indexOf(hi(G),de)!=de){var Ge=ve.lastIndexOf(G);Ge>-1&&(ve=ve.slice(0,Ge))}return ve+j}function iN(i){return i=sn(i),i&&Do.test(i)?i.replace(fr,ft):i}var oN=fa(function(i,m,M){return i+(M?" ":"")+m.toUpperCase()}),Gd=vw("toUpperCase");function fb(i,m,M){return i=sn(i),m=M?e:m,m===e?ge(i)?_n(i):Y(i):i.match(m)||[]}var mb=Bt(function(i,m){try{return cr(i,e,m)}catch(M){return Ud(M)?M:new ct(M)}}),sN=Ao(function(i,m){return mr(m,function(M){M=oo(M),ko(i,M,jd(i[M],i))}),i});function aN(i){var m=i==null?0:i.length,M=mt();return i=m?v(i,function(j){if(typeof j[1]!="function")throw new un(y);return[M(j[0]),j[1]]}):[],Bt(function(j){for(var G=-1;++G<m;){var ee=i[G];if(cr(ee[0],this,j))return cr(ee[1],this,j)}})}function lN(i){return LI(_i(i,l))}function Yd(i){return function(){return i}}function cN(i,m){return i==null||i!==i?m:i}var uN=ww(),hN=ww(!0);function Jr(i){return i}function Xd(i){return Yy(typeof i=="function"?i:_i(i,l))}function dN(i){return Qy(_i(i,l))}function pN(i,m){return Zy(i,_i(m,l))}var gN=Bt(function(i,m){return function(M){return tl(M,i,m)}}),fN=Bt(function(i,m){return function(M){return tl(i,M,m)}});function Qd(i,m,M){var j=pr(m),G=Mc(m,j);M==null&&!(In(m)&&(G.length||!j.length))&&(M=m,m=i,i=this,G=Mc(m,pr(m)));var ee=!(In(M)&&"chain"in M)||!!M.chain,le=To(i);return mr(G,function(de){var ve=m[de];i[de]=ve,le&&(i.prototype[de]=function(){var Ee=this.__chain__;if(ee||Ee){var Re=i(this.__wrapped__),De=Re.__actions__=Xr(this.__actions__);return De.push({func:ve,args:arguments,thisArg:i}),Re.__chain__=Ee,Re}return ve.apply(i,T([this.value()],arguments))})}),i}function mN(){return cn._===this&&(cn._=jM),this}function Zd(){}function vN(i){return i=Nt(i),Bt(function(m){return Jy(m,i)})}var yN=Md(v),wN=Md(vr),bN=Md(W);function vb(i){return Dd(i)?we(oo(i)):XI(i)}function xN(i){return function(m){return i==null?e:Rs(i,m)}}var CN=xw(),kN=xw(!0);function Jd(){return[]}function ep(){return!1}function SN(){return{}}function AN(){return""}function _N(){return!0}function TN(i,m){if(i=Nt(i),i<1||i>U)return[];var M=te,j=Mr(i,te);m=mt(m),i-=te;for(var G=Ze(j,m);++M<i;)m(M);return G}function $N(i){return $t(i)?v(i,oo):di(i)?[i]:Xr(Pw(sn(i)))}function MN(i){var m=++BM;return sn(i)+m}var IN=Nc(function(i,m){return i+m},0),EN=Id("ceil"),RN=Nc(function(i,m){return i/m},1),LN=Id("floor");function ON(i){return i&&i.length?$c(i,Jr,fd):e}function NN(i,m){return i&&i.length?$c(i,mt(m,2),fd):e}function DN(i){return me(i,Jr)}function PN(i,m){return me(i,mt(m,2))}function FN(i){return i&&i.length?$c(i,Jr,wd):e}function WN(i,m){return i&&i.length?$c(i,mt(m,2),wd):e}var BN=Nc(function(i,m){return i*m},1),zN=Id("round"),jN=Nc(function(i,m){return i-m},0);function HN(i){return i&&i.length?at(i,Jr):0}function UN(i,m){return i&&i.length?at(i,mt(m,2)):0}return J.after=dL,J.ary=Gw,J.assign=JL,J.assignIn=lb,J.assignInWith=Gc,J.assignWith=eO,J.at=tO,J.before=Yw,J.bind=jd,J.bindAll=sN,J.bindKey=Xw,J.castArray=SL,J.chain=Vw,J.chunk=LE,J.compact=OE,J.concat=NE,J.cond=aN,J.conforms=lN,J.constant=Yd,J.countBy=HR,J.create=nO,J.curry=Qw,J.curryRight=Zw,J.debounce=Jw,J.defaults=rO,J.defaultsDeep=iO,J.defer=pL,J.delay=gL,J.difference=DE,J.differenceBy=PE,J.differenceWith=FE,J.drop=WE,J.dropRight=BE,J.dropRightWhile=zE,J.dropWhile=jE,J.fill=HE,J.filter=VR,J.flatMap=GR,J.flatMapDeep=YR,J.flatMapDepth=XR,J.flatten=zw,J.flattenDeep=UE,J.flattenDepth=VE,J.flip=fL,J.flow=uN,J.flowRight=hN,J.fromPairs=KE,J.functions=hO,J.functionsIn=dO,J.groupBy=QR,J.initial=GE,J.intersection=YE,J.intersectionBy=XE,J.intersectionWith=QE,J.invert=gO,J.invertBy=fO,J.invokeMap=JR,J.iteratee=Xd,J.keyBy=eL,J.keys=pr,J.keysIn=Zr,J.map=jc,J.mapKeys=vO,J.mapValues=yO,J.matches=dN,J.matchesProperty=pN,J.memoize=Uc,J.merge=wO,J.mergeWith=cb,J.method=gN,J.methodOf=fN,J.mixin=Qd,J.negate=Vc,J.nthArg=vN,J.omit=bO,J.omitBy=xO,J.once=mL,J.orderBy=tL,J.over=yN,J.overArgs=vL,J.overEvery=wN,J.overSome=bN,J.partial=Hd,J.partialRight=eb,J.partition=nL,J.pick=CO,J.pickBy=ub,J.property=vb,J.propertyOf=xN,J.pull=tR,J.pullAll=Hw,J.pullAllBy=nR,J.pullAllWith=rR,J.pullAt=iR,J.range=CN,J.rangeRight=kN,J.rearg=yL,J.reject=oL,J.remove=oR,J.rest=wL,J.reverse=Bd,J.sampleSize=aL,J.set=SO,J.setWith=AO,J.shuffle=lL,J.slice=sR,J.sortBy=hL,J.sortedUniq=pR,J.sortedUniqBy=gR,J.split=GO,J.spread=bL,J.tail=fR,J.take=mR,J.takeRight=vR,J.takeRightWhile=yR,J.takeWhile=wR,J.tap=OR,J.throttle=xL,J.thru=zc,J.toArray=ob,J.toPairs=hb,J.toPairsIn=db,J.toPath=$N,J.toPlainObject=ab,J.transform=_O,J.unary=CL,J.union=bR,J.unionBy=xR,J.unionWith=CR,J.uniq=kR,J.uniqBy=SR,J.uniqWith=AR,J.unset=TO,J.unzip=zd,J.unzipWith=Uw,J.update=$O,J.updateWith=MO,J.values=ya,J.valuesIn=IO,J.without=_R,J.words=fb,J.wrap=kL,J.xor=TR,J.xorBy=$R,J.xorWith=MR,J.zip=IR,J.zipObject=ER,J.zipObjectDeep=RR,J.zipWith=LR,J.entries=hb,J.entriesIn=db,J.extend=lb,J.extendWith=Gc,Qd(J,J),J.add=IN,J.attempt=mb,J.camelCase=OO,J.capitalize=pb,J.ceil=EN,J.clamp=EO,J.clone=AL,J.cloneDeep=TL,J.cloneDeepWith=$L,J.cloneWith=_L,J.conformsTo=ML,J.deburr=gb,J.defaultTo=cN,J.divide=RN,J.endsWith=NO,J.eq=Ui,J.escape=DO,J.escapeRegExp=PO,J.every=UR,J.find=KR,J.findIndex=Ww,J.findKey=oO,J.findLast=qR,J.findLastIndex=Bw,J.findLastKey=sO,J.floor=LN,J.forEach=Kw,J.forEachRight=qw,J.forIn=aO,J.forInRight=lO,J.forOwn=cO,J.forOwnRight=uO,J.get=Kd,J.gt=IL,J.gte=EL,J.has=pO,J.hasIn=qd,J.head=jw,J.identity=Jr,J.includes=ZR,J.indexOf=qE,J.inRange=RO,J.invoke=mO,J.isArguments=Ns,J.isArray=$t,J.isArrayBuffer=RL,J.isArrayLike=Qr,J.isArrayLikeObject=Kn,J.isBoolean=LL,J.isBuffer=Jo,J.isDate=OL,J.isElement=NL,J.isEmpty=DL,J.isEqual=PL,J.isEqualWith=FL,J.isError=Ud,J.isFinite=WL,J.isFunction=To,J.isInteger=tb,J.isLength=Kc,J.isMap=nb,J.isMatch=BL,J.isMatchWith=zL,J.isNaN=jL,J.isNative=HL,J.isNil=VL,J.isNull=UL,J.isNumber=rb,J.isObject=In,J.isObjectLike=Wn,J.isPlainObject=al,J.isRegExp=Vd,J.isSafeInteger=KL,J.isSet=ib,J.isString=qc,J.isSymbol=di,J.isTypedArray=va,J.isUndefined=qL,J.isWeakMap=GL,J.isWeakSet=YL,J.join=ZE,J.kebabCase=FO,J.last=$i,J.lastIndexOf=JE,J.lowerCase=WO,J.lowerFirst=BO,J.lt=XL,J.lte=QL,J.max=ON,J.maxBy=NN,J.mean=DN,J.meanBy=PN,J.min=FN,J.minBy=WN,J.stubArray=Jd,J.stubFalse=ep,J.stubObject=SN,J.stubString=AN,J.stubTrue=_N,J.multiply=BN,J.nth=eR,J.noConflict=mN,J.noop=Zd,J.now=Hc,J.pad=zO,J.padEnd=jO,J.padStart=HO,J.parseInt=UO,J.random=LO,J.reduce=rL,J.reduceRight=iL,J.repeat=VO,J.replace=KO,J.result=kO,J.round=zN,J.runInContext=pe,J.sample=sL,J.size=cL,J.snakeCase=qO,J.some=uL,J.sortedIndex=aR,J.sortedIndexBy=lR,J.sortedIndexOf=cR,J.sortedLastIndex=uR,J.sortedLastIndexBy=hR,J.sortedLastIndexOf=dR,J.startCase=YO,J.startsWith=XO,J.subtract=jN,J.sum=HN,J.sumBy=UN,J.template=QO,J.times=TN,J.toFinite=$o,J.toInteger=Nt,J.toLength=sb,J.toLower=ZO,J.toNumber=Mi,J.toSafeInteger=ZL,J.toString=sn,J.toUpper=JO,J.trim=eN,J.trimEnd=tN,J.trimStart=nN,J.truncate=rN,J.unescape=iN,J.uniqueId=MN,J.upperCase=oN,J.upperFirst=Gd,J.each=Kw,J.eachRight=qw,J.first=jw,Qd(J,function(){var i={};return ro(J,function(m,M){ln.call(J.prototype,M)||(i[M]=m)}),i}(),{chain:!1}),J.VERSION=r,mr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(i){J[i].placeholder=J}),mr(["drop","take"],function(i,m){Kt.prototype[i]=function(M){M=M===e?1:lr(Nt(M),0);var j=this.__filtered__&&!m?new Kt(this):this.clone();return j.__filtered__?j.__takeCount__=Mr(M,j.__takeCount__):j.__views__.push({size:Mr(M,te),type:i+(j.__dir__<0?"Right":"")}),j},Kt.prototype[i+"Right"]=function(M){return this.reverse()[i](M).reverse()}}),mr(["filter","map","takeWhile"],function(i,m){var M=m+1,j=M==_||M==N;Kt.prototype[i]=function(G){var ee=this.clone();return ee.__iteratees__.push({iteratee:mt(G,3),type:M}),ee.__filtered__=ee.__filtered__||j,ee}}),mr(["head","last"],function(i,m){var M="take"+(m?"Right":"");Kt.prototype[i]=function(){return this[M](1).value()[0]}}),mr(["initial","tail"],function(i,m){var M="drop"+(m?"":"Right");Kt.prototype[i]=function(){return this.__filtered__?new Kt(this):this[M](1)}}),Kt.prototype.compact=function(){return this.filter(Jr)},Kt.prototype.find=function(i){return this.filter(i).head()},Kt.prototype.findLast=function(i){return this.reverse().find(i)},Kt.prototype.invokeMap=Bt(function(i,m){return typeof i=="function"?new Kt(this):this.map(function(M){return tl(M,i,m)})}),Kt.prototype.reject=function(i){return this.filter(Vc(mt(i)))},Kt.prototype.slice=function(i,m){i=Nt(i);var M=this;return M.__filtered__&&(i>0||m<0)?new Kt(M):(i<0?M=M.takeRight(-i):i&&(M=M.drop(i)),m!==e&&(m=Nt(m),M=m<0?M.dropRight(-m):M.take(m-i)),M)},Kt.prototype.takeRightWhile=function(i){return this.reverse().takeWhile(i).reverse()},Kt.prototype.toArray=function(){return this.take(te)},ro(Kt.prototype,function(i,m){var M=/^(?:filter|find|map|reject)|While$/.test(m),j=/^(?:head|last)$/.test(m),G=J[j?"take"+(m=="last"?"Right":""):m],ee=j||/^find/.test(m);G&&(J.prototype[m]=function(){var le=this.__wrapped__,de=j?[1]:arguments,ve=le instanceof Kt,Ee=de[0],Re=ve||$t(le),De=function(jt){var Gt=G.apply(J,T([jt],de));return j&&Ge?Gt[0]:Gt};Re&&M&&typeof Ee=="function"&&Ee.length!=1&&(ve=Re=!1);var Ge=this.__chain__,rt=!!this.__actions__.length,vt=ee&&!Ge,Ft=ve&&!rt;if(!ee&&Re){le=Ft?le:new Kt(this);var yt=i.apply(le,de);return yt.__actions__.push({func:zc,args:[De],thisArg:e}),new Ai(yt,Ge)}return vt&&Ft?i.apply(this,de):(yt=this.thru(De),vt?j?yt.value()[0]:yt.value():yt)})}),mr(["pop","push","shift","sort","splice","unshift"],function(i){var m=dr[i],M=/^(?:push|sort|unshift)$/.test(i)?"tap":"thru",j=/^(?:pop|shift)$/.test(i);J.prototype[i]=function(){var G=arguments;if(j&&!this.__chain__){var ee=this.value();return m.apply($t(ee)?ee:[],G)}return this[M](function(le){return m.apply($t(le)?le:[],G)})}}),ro(Kt.prototype,function(i,m){var M=J[m];if(M){var j=M.name+"";ln.call(da,j)||(da[j]=[]),da[j].push({name:m,func:M})}}),da[Oc(e,w).name]=[{name:"wrapper",func:e}],Kt.prototype.clone=iI,Kt.prototype.reverse=oI,Kt.prototype.value=sI,J.prototype.at=NR,J.prototype.chain=DR,J.prototype.commit=PR,J.prototype.next=FR,J.prototype.plant=BR,J.prototype.reverse=zR,J.prototype.toJSON=J.prototype.valueOf=J.prototype.value=jR,J.prototype.first=J.prototype.head,Ga&&(J.prototype[Ga]=WR),J},qt=er();Zn?((Zn.exports=qt)._=qt,xn._=qt):cn._=qt}).call(BC)}(Ll,Ll.exports)),Ll.exports}var jC=zC();tr("O",pl(jC)).debounce(function(){this.rebuildDisplayText()},300);var rf={exports:{}},of;function HC(){return of||(of=1,function(n,t){(function(){ace.require(["ace/mode/text"],function(e){n&&(n.exports=e)})})()}(rf)),rf.exports}HC();const UC=!0,rr="u-",VC="uplot",KC=rr+"hz",qC=rr+"vt",GC=rr+"title",YC=rr+"wrap",XC=rr+"under",QC=rr+"over",ZC=rr+"axis",cs=rr+"off",JC=rr+"select",ek=rr+"cursor-x",tk=rr+"cursor-y",nk=rr+"cursor-pt",rk=rr+"legend",ik=rr+"live",ok=rr+"inline",sk=rr+"series",ak=rr+"marker",sf=rr+"label",lk=rr+"value",Ma="width",Ia="height",Ea="top",af="bottom",Us="left",_u="right",Tu="#000",lf=Tu+"0",$u="mousemove",cf="mousedown",Mu="mouseup",uf="mouseenter",hf="mouseleave",df="dblclick",ck="resize",uk="scroll",pf="change",Ol="dppxchange",Iu="--",Vs=typeof window<"u",Eu=Vs?document:null,Ks=Vs?window:null,hk=Vs?navigator:null;let Jt,Nl;function Ru(){let n=devicePixelRatio;Jt!=n&&(Jt=n,Nl&&Nu(pf,Nl,Ru),Nl=matchMedia(`(min-resolution: ${Jt-.001}dppx) and (max-resolution: ${Jt+.001}dppx)`),us(pf,Nl,Ru),Ks.dispatchEvent(new CustomEvent(Ol)))}function ti(n,t){if(t!=null){let e=n.classList;!e.contains(t)&&e.add(t)}}function Lu(n,t){let e=n.classList;e.contains(t)&&e.remove(t)}function bn(n,t,e){n.style[t]=e+"px"}function Ri(n,t,e,r){let f=Eu.createElement(n);return t!=null&&ti(f,t),e!=null&&e.insertBefore(f,r),f}function fi(n,t){return Ri("div",n,t)}const gf=new WeakMap;function qi(n,t,e,r,f){let p="translate("+t+"px,"+e+"px)",y=gf.get(n);p!=y&&(n.style.transform=p,gf.set(n,p),t<0||e<0||t>r||e>f?ti(n,cs):Lu(n,cs))}const ff=new WeakMap;function mf(n,t,e){let r=t+e,f=ff.get(n);r!=f&&(ff.set(n,r),n.style.background=t,n.style.borderColor=e)}const vf=new WeakMap;function yf(n,t,e,r){let f=t+""+e,p=vf.get(n);f!=p&&(vf.set(n,f),n.style.height=e+"px",n.style.width=t+"px",n.style.marginLeft=r?-t/2+"px":0,n.style.marginTop=r?-e/2+"px":0)}const Ou={passive:!0},dk={...Ou,capture:!0};function us(n,t,e,r){t.addEventListener(n,e,r?dk:Ou)}function Nu(n,t,e,r){t.removeEventListener(n,e,Ou)}Vs&&Ru();function Li(n,t,e,r){let f;e=e||0,r=r||t.length-1;let p=r<=2147483647;for(;r-e>1;)f=p?e+r>>1:ri((e+r)/2),t[f]<n?e=f:r=f;return n-t[e]<=t[r]-n?e:r}function wf(n){return(t,e,r)=>{let f=-1,p=-1;for(let y=e;y<=r;y++)if(n(t[y])){f=y;break}for(let y=r;y>=e;y--)if(n(t[y])){p=y;break}return[f,p]}}const bf=n=>n!=null,xf=n=>n!=null&&n>0,Dl=wf(bf),pk=wf(xf);function gk(n,t,e,r=0,f=!1){let p=f?pk:Dl,y=f?xf:bf;[t,e]=p(n,t,e);let b=n[t],h=n[t];if(t>-1)if(r==1)b=n[t],h=n[e];else if(r==-1)b=n[e],h=n[t];else for(let g=t;g<=e;g++){let s=n[g];y(s)&&(s<b?b=s:s>h&&(h=s))}return[b??dn,h??-dn]}function Pl(n,t,e,r){let f=Sf(n),p=Sf(t);n==t&&(f==-1?(n*=e,t/=e):(n/=e,t*=e));let y=e==10?ao:Af,b=f==1?ri:mi,h=p==1?mi:ri,g=b(y(ir(n))),s=h(y(ir(t))),l=qs(e,g),u=qs(e,s);return e==10&&(g<0&&(l=pn(l,-g)),s<0&&(u=pn(u,-s))),r||e==2?(n=l*f,t=u*p):(n=Rf(n,l),t=Bl(t,u)),[n,t]}function Du(n,t,e,r){let f=Pl(n,t,e,r);return n==0&&(f[0]=0),t==0&&(f[1]=0),f}const Pu=.1,Cf={mode:3,pad:Pu},Ra={pad:0,soft:null,mode:0},fk={min:Ra,max:Ra};function Fl(n,t,e,r){return zl(e)?kf(n,t,e):(Ra.pad=e,Ra.soft=r?0:null,Ra.mode=r?3:0,kf(n,t,fk))}function Qt(n,t){return n??t}function mk(n,t,e){for(t=Qt(t,0),e=Qt(e,n.length-1);t<=e;){if(n[t]!=null)return!0;t++}return!1}function kf(n,t,e){let r=e.min,f=e.max,p=Qt(r.pad,0),y=Qt(f.pad,0),b=Qt(r.hard,-dn),h=Qt(f.hard,dn),g=Qt(r.soft,dn),s=Qt(f.soft,-dn),l=Qt(r.mode,0),u=Qt(f.mode,0),a=t-n,o=ao(a),c=Er(ir(n),ir(t)),d=ao(c),w=ir(d-o);(a<1e-24||w>10)&&(a=0,(n==0||t==0)&&(a=1e-24,l==2&&g!=dn&&(p=0),u==2&&s!=-dn&&(y=0)));let x=a||c||1e3,E=ao(x),$=qs(10,ri(E)),S=x*(a==0?n==0?.1:1:p),C=pn(Rf(n-S,$/10),24),R=n>=g&&(l==1||l==3&&C<=g||l==2&&C>=g)?g:dn,L=Er(b,C<R&&n>=R?R:Oi(R,C)),P=x*(a==0?t==0?.1:1:y),I=pn(Bl(t+P,$/10),24),H=t<=s&&(u==1||u==3&&I>=s||u==2&&I<=s)?s:-dn,F=Oi(h,I>H&&t<=H?H:Er(H,I));return L==F&&L==0&&(F=100),[L,F]}const vk=new Intl.NumberFormat(Vs?hk.language:"en-US"),Fu=n=>vk.format(n),ni=Math,Wl=ni.PI,ir=ni.abs,ri=ni.floor,or=ni.round,mi=ni.ceil,Oi=ni.min,Er=ni.max,qs=ni.pow,Sf=ni.sign,ao=ni.log10,Af=ni.log2,yk=(n,t=1)=>ni.sinh(n)*t,Wu=(n,t=1)=>ni.asinh(n/t),dn=1/0;function _f(n){return(ao((n^n>>31)-(n>>31))|0)+1}function Bu(n,t,e){return Oi(Er(n,t),e)}function Tf(n){return typeof n=="function"}function Ht(n){return Tf(n)?n:()=>n}const wk=()=>{},$f=n=>n,Mf=(n,t)=>t,bk=n=>null,If=n=>!0,Ef=(n,t)=>n==t,xk=/\.\d*?(?=9{6,}|0{6,})/gm,hs=n=>{if(Of(n)||Oo.has(n))return n;const t=`${n}`,e=t.match(xk);if(e==null)return n;let r=e[0].length-1;if(t.indexOf("e-")!=-1){let[f,p]=t.split("e");return+`${hs(f)}e${p}`}return pn(n,r)};function ds(n,t){return hs(pn(hs(n/t))*t)}function Bl(n,t){return hs(mi(hs(n/t))*t)}function Rf(n,t){return hs(ri(hs(n/t))*t)}function pn(n,t=0){if(Of(n))return n;let e=10**t,r=n*e*(1+Number.EPSILON);return or(r)/e}const Oo=new Map;function Lf(n){return((""+n).split(".")[1]||"").length}function La(n,t,e,r){let f=[],p=r.map(Lf);for(let y=t;y<e;y++){let b=ir(y),h=pn(qs(n,y),b);for(let g=0;g<r.length;g++){let s=n==10?+`${r[g]}e${y}`:r[g]*h,l=(y>=0?0:b)+(y>=p[g]?0:p[g]),u=n==10?s:pn(s,l);f.push(u),Oo.set(u,l)}}return f}const Oa={},zu=[],Gs=[null,null],No=Array.isArray,Of=Number.isInteger,Ck=n=>n===void 0;function Nf(n){return typeof n=="string"}function zl(n){let t=!1;if(n!=null){let e=n.constructor;t=e==null||e==Object}return t}function kk(n){return n!=null&&typeof n=="object"}const Sk=Object.getPrototypeOf(Uint8Array),Df="__proto__";function Ys(n,t=zl){let e;if(No(n)){let r=n.find(f=>f!=null);if(No(r)||t(r)){e=Array(n.length);for(let f=0;f<n.length;f++)e[f]=Ys(n[f],t)}else e=n.slice()}else if(n instanceof Sk)e=n.slice();else if(t(n)){e={};for(let r in n)r!=Df&&(e[r]=Ys(n[r],t))}else e=n;return e}function Yn(n){let t=arguments;for(let e=1;e<t.length;e++){let r=t[e];for(let f in r)f!=Df&&(zl(n[f])?Yn(n[f],Ys(r[f])):n[f]=Ys(r[f]))}return n}const Ak=0,_k=1,Tk=2;function $k(n,t,e){for(let r=0,f,p=-1;r<t.length;r++){let y=t[r];if(y>p){for(f=y-1;f>=0&&n[f]==null;)n[f--]=null;for(f=y+1;f<e&&n[f]==null;)n[p=f++]=null}}}function Mk(n,t){if(Rk(n)){let y=n[0].slice();for(let b=1;b<n.length;b++)y.push(...n[b].slice(1));return Lk(y[0])||(y=Ek(y)),y}let e=new Set;for(let y=0;y<n.length;y++){let b=n[y][0],h=b.length;for(let g=0;g<h;g++)e.add(b[g])}let r=[Array.from(e).sort((y,b)=>y-b)],f=r[0].length,p=new Map;for(let y=0;y<f;y++)p.set(r[0][y],y);for(let y=0;y<n.length;y++){let b=n[y],h=b[0];for(let g=1;g<b.length;g++){let s=b[g],l=Array(f).fill(void 0),u=t?t[y][g]:_k,a=[];for(let o=0;o<s.length;o++){let c=s[o],d=p.get(h[o]);c===null?u!=Ak&&(l[d]=c,u==Tk&&a.push(d)):l[d]=c}$k(l,a,f),r.push(l)}}return r}const Ik=typeof queueMicrotask>"u"?n=>Promise.resolve().then(n):queueMicrotask;function Ek(n){let t=n[0],e=t.length,r=Array(e);for(let p=0;p<r.length;p++)r[p]=p;r.sort((p,y)=>t[p]-t[y]);let f=[];for(let p=0;p<n.length;p++){let y=n[p],b=Array(e);for(let h=0;h<e;h++)b[h]=y[r[h]];f.push(b)}return f}function Rk(n){let t=n[0][0],e=t.length;for(let r=1;r<n.length;r++){let f=n[r][0];if(f.length!=e)return!1;if(f!=t){for(let p=0;p<e;p++)if(f[p]!=t[p])return!1}}return!0}function Lk(n,t=100){const e=n.length;if(e<=1)return!0;let r=0,f=e-1;for(;r<=f&&n[r]==null;)r++;for(;f>=r&&n[f]==null;)f--;if(f<=r)return!0;const p=Er(1,ri((f-r+1)/t));for(let y=n[r],b=r+p;b<=f;b+=p){const h=n[b];if(h!=null){if(h<=y)return!1;y=h}}return!0}const Pf=["January","February","March","April","May","June","July","August","September","October","November","December"],Ff=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function Wf(n){return n.slice(0,3)}const Ok=Ff.map(Wf),Nk=Pf.map(Wf),Dk={MMMM:Pf,MMM:Nk,WWWW:Ff,WWW:Ok};function Na(n){return(n<10?"0":"")+n}function Pk(n){return(n<10?"00":n<100?"0":"")+n}const Fk={YYYY:n=>n.getFullYear(),YY:n=>(n.getFullYear()+"").slice(2),MMMM:(n,t)=>t.MMMM[n.getMonth()],MMM:(n,t)=>t.MMM[n.getMonth()],MM:n=>Na(n.getMonth()+1),M:n=>n.getMonth()+1,DD:n=>Na(n.getDate()),D:n=>n.getDate(),WWWW:(n,t)=>t.WWWW[n.getDay()],WWW:(n,t)=>t.WWW[n.getDay()],HH:n=>Na(n.getHours()),H:n=>n.getHours(),h:n=>{let t=n.getHours();return t==0?12:t>12?t-12:t},AA:n=>n.getHours()>=12?"PM":"AM",aa:n=>n.getHours()>=12?"pm":"am",a:n=>n.getHours()>=12?"p":"a",mm:n=>Na(n.getMinutes()),m:n=>n.getMinutes(),ss:n=>Na(n.getSeconds()),s:n=>n.getSeconds(),fff:n=>Pk(n.getMilliseconds())};function ju(n,t){t=t||Dk;let e=[],r=/\{([a-z]+)\}|[^{]+/gi,f;for(;f=r.exec(n);)e.push(f[0][0]=="{"?Fk[f[1]]:f[0]);return p=>{let y="";for(let b=0;b<e.length;b++)y+=typeof e[b]=="string"?e[b]:e[b](p,t);return y}}const Wk=new Intl.DateTimeFormat().resolvedOptions().timeZone;function Bk(n,t){let e;return t=="UTC"||t=="Etc/UTC"?e=new Date(+n+n.getTimezoneOffset()*6e4):t==Wk?e=n:(e=new Date(n.toLocaleString("en-US",{timeZone:t})),e.setMilliseconds(n.getMilliseconds())),e}const Bf=n=>n%1==0,jl=[1,2,2.5,5],zk=La(10,-32,0,jl),zf=La(10,0,32,jl),jk=zf.filter(Bf),ps=zk.concat(zf),Hu=`
|
1488
|
+
`,jf="{YYYY}",Hf=Hu+jf,Uf="{M}/{D}",Da=Hu+Uf,Hl=Da+"/{YY}",Vf="{aa}",Hk="{h}:{mm}",Xs=Hk+Vf,Kf=Hu+Xs,qf=":{ss}",on=null;function Gf(n){let t=n*1e3,e=t*60,r=e*60,f=r*24,p=f*30,y=f*365,b=(n==1?La(10,0,3,jl).filter(Bf):La(10,-3,0,jl)).concat([t,t*5,t*10,t*15,t*30,e,e*5,e*10,e*15,e*30,r,r*2,r*3,r*4,r*6,r*8,r*12,f,f*2,f*3,f*4,f*5,f*6,f*7,f*8,f*9,f*10,f*15,p,p*2,p*3,p*4,p*6,y,y*2,y*5,y*10,y*25,y*50,y*100]);const h=[[y,jf,on,on,on,on,on,on,1],[f*28,"{MMM}",Hf,on,on,on,on,on,1],[f,Uf,Hf,on,on,on,on,on,1],[r,"{h}"+Vf,Hl,on,Da,on,on,on,1],[e,Xs,Hl,on,Da,on,on,on,1],[t,qf,Hl+" "+Xs,on,Da+" "+Xs,on,Kf,on,1],[n,qf+".{fff}",Hl+" "+Xs,on,Da+" "+Xs,on,Kf,on,1]];function g(s){return(l,u,a,o,c,d)=>{let w=[],x=c>=y,E=c>=p&&c<y,$=s(a),S=pn($*n,3),C=Uu($.getFullYear(),x?0:$.getMonth(),E||x?1:$.getDate()),R=pn(C*n,3);if(E||x){let L=E?c/p:0,P=x?c/y:0,I=S==R?S:pn(Uu(C.getFullYear()+P,C.getMonth()+L,1)*n,3),H=new Date(or(I/n)),F=H.getFullYear(),O=H.getMonth();for(let _=0;I<=o;_++){let A=Uu(F+P*_,O+L*_,1),N=A-s(pn(A*n,3));I=pn((+A+N)*n,3),I<=o&&w.push(I)}}else{let L=c>=f?f:c,P=ri(a)-ri(S),I=R+P+Bl(S-R,L);w.push(I);let H=s(I),F=H.getHours()+H.getMinutes()/e+H.getSeconds()/r,O=c/r,_=l.axes[u]._space,A=d/_;for(;I=pn(I+c,n==1?0:3),!(I>o);)if(O>1){let N=ri(pn(F+O,6))%24,B=s(I).getHours()-N;B>1&&(B=-1),I-=B*r,F=(F+O)%24;let U=w[w.length-1];pn((I-U)/c,3)*A>=.7&&w.push(I)}else w.push(I)}return w}}return[b,h,g]}const[Uk,Vk,Kk]=Gf(1),[qk,Gk,Yk]=Gf(.001);La(2,-53,53,[1]);function Yf(n,t){return n.map(e=>e.map((r,f)=>f==0||f==8||r==null?r:t(f==1||e[8]==0?r:e[1]+r)))}function Xf(n,t){return(e,r,f,p,y)=>{let b=t.find(o=>y>=o[0])||t[t.length-1],h,g,s,l,u,a;return r.map(o=>{let c=n(o),d=c.getFullYear(),w=c.getMonth(),x=c.getDate(),E=c.getHours(),$=c.getMinutes(),S=c.getSeconds(),C=d!=h&&b[2]||w!=g&&b[3]||x!=s&&b[4]||E!=l&&b[5]||$!=u&&b[6]||S!=a&&b[7]||b[1];return h=d,g=w,s=x,l=E,u=$,a=S,C(c)})}}function Xk(n,t){let e=ju(t);return(r,f,p,y,b)=>f.map(h=>e(n(h)))}function Uu(n,t,e){return new Date(n,t,e)}function Qf(n,t){return t(n)}const Qk="{YYYY}-{MM}-{DD} {h}:{mm}{aa}";function Zf(n,t){return(e,r,f,p)=>p==null?Iu:t(n(r))}function Zk(n,t){let e=n.series[t];return e.width?e.stroke(n,t):e.points.width?e.points.stroke(n,t):null}function Jk(n,t){return n.series[t].fill(n,t)}const eS={show:!0,live:!0,isolate:!1,mount:wk,markers:{show:!0,width:2,stroke:Zk,fill:Jk,dash:"solid"},idx:null,idxs:null,values:[]};function tS(n,t){let e=n.cursor.points,r=fi(),f=e.size(n,t);bn(r,Ma,f),bn(r,Ia,f);let p=f/-2;bn(r,"marginLeft",p),bn(r,"marginTop",p);let y=e.width(n,t,f);return y&&bn(r,"borderWidth",y),r}function nS(n,t){let e=n.series[t].points;return e._fill||e._stroke}function rS(n,t){let e=n.series[t].points;return e._stroke||e._fill}function iS(n,t){return n.series[t].points.size}const Vu=[0,0];function oS(n,t,e){return Vu[0]=t,Vu[1]=e,Vu}function Ul(n,t,e,r=!0){return f=>{f.button==0&&(!r||f.target==t)&&e(f)}}function Ku(n,t,e,r=!0){return f=>{(!r||f.target==t)&&e(f)}}const sS={show:!0,x:!0,y:!0,lock:!1,move:oS,points:{one:!1,show:tS,size:iS,width:0,stroke:rS,fill:nS},bind:{mousedown:Ul,mouseup:Ul,click:Ul,dblclick:Ul,mousemove:Ku,mouseleave:Ku,mouseenter:Ku},drag:{setScale:!0,x:!0,y:!1,dist:0,uni:null,click:(n,t)=>{t.stopPropagation(),t.stopImmediatePropagation()},_x:!1,_y:!1},focus:{dist:(n,t,e,r,f)=>r-f,prox:-1,bias:0},hover:{skip:[void 0],prox:null,bias:0},left:-10,top:-10,idx:null,dataIdx:null,idxs:null,event:null},Jf={show:!0,stroke:"rgba(0,0,0,0.07)",width:2},qu=Yn({},Jf,{filter:Mf}),em=Yn({},qu,{size:10}),tm=Yn({},Jf,{show:!1}),Gu='12px system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',nm="bold "+Gu,rm=1.5,im={show:!0,scale:"x",stroke:Tu,space:50,gap:5,alignTo:1,size:50,labelGap:0,labelSize:30,labelFont:nm,side:2,grid:qu,ticks:em,border:tm,font:Gu,lineGap:rm,rotate:0},aS="Value",lS="Time",om={show:!0,scale:"x",auto:!1,sorted:1,min:dn,max:-dn,idxs:[]};function cS(n,t,e,r,f){return t.map(p=>p==null?"":Fu(p))}function uS(n,t,e,r,f,p,y){let b=[],h=Oo.get(f)||0;e=y?e:pn(Bl(e,f),h);for(let g=e;g<=r;g=pn(g+f,h))b.push(Object.is(g,-0)?0:g);return b}function Yu(n,t,e,r,f,p,y){const b=[],h=n.scales[n.axes[t].scale].log,g=h==10?ao:Af,s=ri(g(e));f=qs(h,s),h==10&&(f=ps[Li(f,ps)]);let l=e,u=f*h;h==10&&(u=ps[Li(u,ps)]);do b.push(l),l=l+f,h==10&&!Oo.has(l)&&(l=pn(l,Oo.get(f))),l>=u&&(f=l,u=f*h,h==10&&(u=ps[Li(u,ps)]));while(l<=r);return b}function hS(n,t,e,r,f,p,y){let b=n.scales[n.axes[t].scale].asinh,h=r>b?Yu(n,t,Er(b,e),r,f):[b],g=r>=0&&e<=0?[0]:[];return(e<-b?Yu(n,t,Er(b,-r),-e,f):[b]).reverse().map(s=>-s).concat(g,h)}const sm=/./,dS=/[12357]/,pS=/[125]/,am=/1/,Xu=(n,t,e,r)=>n.map((f,p)=>t==4&&f==0||p%r==0&&e.test(f.toExponential()[f<0?1:0])?f:null);function gS(n,t,e,r,f){let p=n.axes[e],y=p.scale,b=n.scales[y],h=n.valToPos,g=p._space,s=h(10,y),l=h(9,y)-s>=g?sm:h(7,y)-s>=g?dS:h(5,y)-s>=g?pS:am;if(l==am){let u=ir(h(1,y)-s);if(u<g)return Xu(t.slice().reverse(),b.distr,l,mi(g/u)).reverse()}return Xu(t,b.distr,l,1)}function fS(n,t,e,r,f){let p=n.axes[e],y=p.scale,b=p._space,h=n.valToPos,g=ir(h(1,y)-h(2,y));return g<b?Xu(t.slice().reverse(),3,sm,mi(b/g)).reverse():t}function mS(n,t,e,r){return r==null?Iu:t==null?"":Fu(t)}const lm={show:!0,scale:"y",stroke:Tu,space:30,gap:5,alignTo:1,size:50,labelGap:0,labelSize:30,labelFont:nm,side:3,grid:qu,ticks:em,border:tm,font:Gu,lineGap:rm,rotate:0};function vS(n,t){let e=3+(n||1)*2;return pn(e*t,3)}function yS(n,t){let{scale:e,idxs:r}=n.series[0],f=n._data[0],p=n.valToPos(f[r[0]],e,!0),y=n.valToPos(f[r[1]],e,!0),b=ir(y-p),h=n.series[t],g=b/(h.points.space*Jt);return r[1]-r[0]<=g}const cm={scale:null,auto:!0,sorted:0,min:dn,max:-dn},um=(n,t,e,r,f)=>f,hm={show:!0,auto:!0,sorted:0,gaps:um,alpha:1,facets:[Yn({},cm,{scale:"x"}),Yn({},cm,{scale:"y"})]},dm={scale:"y",auto:!0,sorted:0,show:!0,spanGaps:!1,gaps:um,alpha:1,points:{show:yS,filter:null},values:null,min:dn,max:-dn,idxs:[],path:null,clip:null};function wS(n,t,e,r,f){return e/10}const pm={time:UC,auto:!0,distr:1,log:10,asinh:1,min:null,max:null,dir:1,ori:0},bS=Yn({},pm,{time:!1,ori:1}),gm={};function fm(n,t){let e=gm[n];return e||(e={key:n,plots:[],sub(r){e.plots.push(r)},unsub(r){e.plots=e.plots.filter(f=>f!=r)},pub(r,f,p,y,b,h,g){for(let s=0;s<e.plots.length;s++)e.plots[s]!=f&&e.plots[s].pub(r,f,p,y,b,h,g)}},n!=null&&(gm[n]=e)),e}const Qs=1,Qu=2;function gs(n,t,e){const r=n.mode,f=n.series[t],p=r==2?n._data[t]:n._data,y=n.scales,b=n.bbox;let h=p[0],g=r==2?p[1]:p[t],s=r==2?y[f.facets[0].scale]:y[n.series[0].scale],l=r==2?y[f.facets[1].scale]:y[f.scale],u=b.left,a=b.top,o=b.width,c=b.height,d=n.valToPosH,w=n.valToPosV;return s.ori==0?e(f,h,g,s,l,d,w,u,a,o,c,Kl,Zs,Gl,ym,bm):e(f,h,g,s,l,w,d,a,u,c,o,ql,Js,eh,wm,xm)}function Zu(n,t){let e=0,r=0,f=Qt(n.bands,zu);for(let p=0;p<f.length;p++){let y=f[p];y.series[0]==t?e=y.dir:y.series[1]==t&&(y.dir==1?r|=1:r|=2)}return[e,r==1?-1:r==2?1:r==3?2:0]}function xS(n,t,e,r,f){let p=n.mode,y=n.series[t],b=p==2?y.facets[1].scale:y.scale,h=n.scales[b];return f==-1?h.min:f==1?h.max:h.distr==3?h.dir==1?h.min:h.max:0}function lo(n,t,e,r,f,p){return gs(n,t,(y,b,h,g,s,l,u,a,o,c,d)=>{let w=y.pxRound;const x=g.dir*(g.ori==0?1:-1),E=g.ori==0?Zs:Js;let $,S;x==1?($=e,S=r):($=r,S=e);let C=w(l(b[$],g,c,a)),R=w(u(h[$],s,d,o)),L=w(l(b[S],g,c,a)),P=w(u(p==1?s.max:s.min,s,d,o)),I=new Path2D(f);return E(I,L,P),E(I,C,P),E(I,C,R),I})}function Vl(n,t,e,r,f,p){let y=null;if(n.length>0){y=new Path2D;const b=t==0?Gl:eh;let h=e;for(let l=0;l<n.length;l++){let u=n[l];if(u[1]>u[0]){let a=u[0]-h;a>0&&b(y,h,r,a,r+p),h=u[1]}}let g=e+f-h,s=10;g>0&&b(y,h,r-s/2,g,r+p+s)}return y}function CS(n,t,e){let r=n[n.length-1];r&&r[0]==t?r[1]=e:n.push([t,e])}function Ju(n,t,e,r,f,p,y){let b=[],h=n.length;for(let g=f==1?e:r;g>=e&&g<=r;g+=f)if(t[g]===null){let s=g,l=g;if(f==1)for(;++g<=r&&t[g]===null;)l=g;else for(;--g>=e&&t[g]===null;)l=g;let u=p(n[s]),a=l==s?u:p(n[l]),o=s-f;u=y<=0&&o>=0&&o<h?p(n[o]):u;let c=l+f;a=y>=0&&c>=0&&c<h?p(n[c]):a,a>=u&&b.push([u,a])}return b}function mm(n){return n==0?$f:n==1?or:t=>ds(t,n)}function vm(n){let t=n==0?Kl:ql,e=n==0?(f,p,y,b,h,g)=>{f.arcTo(p,y,b,h,g)}:(f,p,y,b,h,g)=>{f.arcTo(y,p,h,b,g)},r=n==0?(f,p,y,b,h)=>{f.rect(p,y,b,h)}:(f,p,y,b,h)=>{f.rect(y,p,h,b)};return(f,p,y,b,h,g=0,s=0)=>{g==0&&s==0?r(f,p,y,b,h):(g=Oi(g,b/2,h/2),s=Oi(s,b/2,h/2),t(f,p+g,y),e(f,p+b,y,p+b,y+h,g),e(f,p+b,y+h,p,y+h,s),e(f,p,y+h,p,y,s),e(f,p,y,p+b,y,g),f.closePath())}}const Kl=(n,t,e)=>{n.moveTo(t,e)},ql=(n,t,e)=>{n.moveTo(e,t)},Zs=(n,t,e)=>{n.lineTo(t,e)},Js=(n,t,e)=>{n.lineTo(e,t)},Gl=vm(0),eh=vm(1),ym=(n,t,e,r,f,p)=>{n.arc(t,e,r,f,p)},wm=(n,t,e,r,f,p)=>{n.arc(e,t,r,f,p)},bm=(n,t,e,r,f,p,y)=>{n.bezierCurveTo(t,e,r,f,p,y)},xm=(n,t,e,r,f,p,y)=>{n.bezierCurveTo(e,t,f,r,y,p)};function Cm(n){return(t,e,r,f,p)=>gs(t,e,(y,b,h,g,s,l,u,a,o,c,d)=>{let{pxRound:w,points:x}=y,E,$;g.ori==0?(E=Kl,$=ym):(E=ql,$=wm);const S=pn(x.width*Jt,3);let C=(x.size-x.width)/2*Jt,R=pn(C*2,3),L=new Path2D,P=new Path2D,{left:I,top:H,width:F,height:O}=t.bbox;Gl(P,I-R,H-R,F+R*2,O+R*2);const _=A=>{if(h[A]!=null){let N=w(l(b[A],g,c,a)),B=w(u(h[A],s,d,o));E(L,N+C,B),$(L,N,B,C,0,Wl*2)}};if(p)p.forEach(_);else for(let A=r;A<=f;A++)_(A);return{stroke:S>0?L:null,fill:L,clip:P,flags:Qs|Qu}})}function km(n){return(t,e,r,f,p,y)=>{r!=f&&(p!=r&&y!=r&&n(t,e,r),p!=f&&y!=f&&n(t,e,f),n(t,e,y))}}const kS=km(Zs),SS=km(Js);function Sm(n){const t=Qt(n==null?void 0:n.alignGaps,0);return(e,r,f,p)=>gs(e,r,(y,b,h,g,s,l,u,a,o,c,d)=>{[f,p]=Dl(h,f,p);let w=y.pxRound,x=F=>w(l(F,g,c,a)),E=F=>w(u(F,s,d,o)),$,S;g.ori==0?($=Zs,S=kS):($=Js,S=SS);const C=g.dir*(g.ori==0?1:-1),R={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:Qs},L=R.stroke;let P=!1;if(p-f>=c*4){let F=he=>e.posToVal(he,g.key,!0),O=null,_=null,A,N,B,U=x(b[C==1?f:p]),q=x(b[f]),Z=x(b[p]),te=F(C==1?q+1:Z-1);for(let he=C==1?f:p;he>=f&&he<=p;he+=C){let ne=b[he],ae=(C==1?ne<te:ne>te)?U:x(ne),ue=h[he];ae==U?ue!=null?(N=ue,O==null?($(L,ae,E(N)),A=O=_=N):N<O?O=N:N>_&&(_=N)):ue===null&&(P=!0):(O!=null&&S(L,U,E(O),E(_),E(A),E(N)),ue!=null?(N=ue,$(L,ae,E(N)),O=_=A=N):(O=_=null,ue===null&&(P=!0)),U=ae,te=F(U+C))}O!=null&&O!=_&&B!=U&&S(L,U,E(O),E(_),E(A),E(N))}else for(let F=C==1?f:p;F>=f&&F<=p;F+=C){let O=h[F];O===null?P=!0:O!=null&&$(L,x(b[F]),E(O))}let[I,H]=Zu(e,r);if(y.fill!=null||I!=0){let F=R.fill=new Path2D(L),O=y.fillTo(e,r,y.min,y.max,I),_=E(O),A=x(b[f]),N=x(b[p]);C==-1&&([N,A]=[A,N]),$(F,N,_),$(F,A,_)}if(!y.spanGaps){let F=[];P&&F.push(...Ju(b,h,f,p,C,x,t)),R.gaps=F=y.gaps(e,r,f,p,F),R.clip=Vl(F,g.ori,a,o,c,d)}return H!=0&&(R.band=H==2?[lo(e,r,f,p,L,-1),lo(e,r,f,p,L,1)]:lo(e,r,f,p,L,H)),R})}function AS(n){const t=Qt(n.align,1),e=Qt(n.ascDesc,!1),r=Qt(n.alignGaps,0),f=Qt(n.extend,!1);return(p,y,b,h)=>gs(p,y,(g,s,l,u,a,o,c,d,w,x,E)=>{[b,h]=Dl(l,b,h);let $=g.pxRound,{left:S,width:C}=p.bbox,R=Z=>$(o(Z,u,x,d)),L=Z=>$(c(Z,a,E,w)),P=u.ori==0?Zs:Js;const I={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:Qs},H=I.stroke,F=u.dir*(u.ori==0?1:-1);let O=L(l[F==1?b:h]),_=R(s[F==1?b:h]),A=_,N=_;f&&t==-1&&(N=S,P(H,N,O)),P(H,_,O);for(let Z=F==1?b:h;Z>=b&&Z<=h;Z+=F){let te=l[Z];if(te==null)continue;let he=R(s[Z]),ne=L(te);t==1?P(H,he,O):P(H,A,ne),P(H,he,ne),O=ne,A=he}let B=A;f&&t==1&&(B=S+C,P(H,B,O));let[U,q]=Zu(p,y);if(g.fill!=null||U!=0){let Z=I.fill=new Path2D(H),te=g.fillTo(p,y,g.min,g.max,U),he=L(te);P(Z,B,he),P(Z,N,he)}if(!g.spanGaps){let Z=[];Z.push(...Ju(s,l,b,h,F,R,r));let te=g.width*Jt/2,he=e||t==1?te:-te,ne=e||t==-1?-te:te;Z.forEach(ae=>{ae[0]+=he,ae[1]+=ne}),I.gaps=Z=g.gaps(p,y,b,h,Z),I.clip=Vl(Z,u.ori,d,w,x,E)}return q!=0&&(I.band=q==2?[lo(p,y,b,h,H,-1),lo(p,y,b,h,H,1)]:lo(p,y,b,h,H,q)),I})}function Am(n,t,e,r,f,p,y=dn){if(n.length>1){let b=null;for(let h=0,g=1/0;h<n.length;h++)if(t[h]!==void 0){if(b!=null){let s=ir(n[h]-n[b]);s<g&&(g=s,y=ir(e(n[h],r,f,p)-e(n[b],r,f,p)))}b=h}}return y}function _S(n){n=n||Oa;const t=Qt(n.size,[.6,dn,1]),e=n.align||0,r=n.gap||0;let f=n.radius;f=f==null?[0,0]:typeof f=="number"?[f,0]:f;const p=Ht(f),y=1-t[0],b=Qt(t[1],dn),h=Qt(t[2],1),g=Qt(n.disp,Oa),s=Qt(n.each,a=>{}),{fill:l,stroke:u}=g;return(a,o,c,d)=>gs(a,o,(w,x,E,$,S,C,R,L,P,I,H)=>{let F=w.pxRound,O=e,_=r*Jt,A=b*Jt,N=h*Jt,B,U;$.ori==0?[B,U]=p(a,o):[U,B]=p(a,o);const q=$.dir*($.ori==0?1:-1);let Z=$.ori==0?Gl:eh,te=$.ori==0?s:(He,ke,ze,Xe,gt,At,St)=>{s(He,ke,ze,gt,Xe,St,At)},he=Qt(a.bands,zu).find(He=>He.series[0]==o),ne=he!=null?he.dir:0,ae=w.fillTo(a,o,w.min,w.max,ne),ue=F(R(ae,S,H,P)),ce,fe,Te,$e=I,Ie=F(w.width*Jt),Ye=!1,qe=null,dt=null,nt=null,pt=null;l!=null&&(Ie==0||u!=null)&&(Ye=!0,qe=l.values(a,o,c,d),dt=new Map,new Set(qe).forEach(He=>{He!=null&&dt.set(He,new Path2D)}),Ie>0&&(nt=u.values(a,o,c,d),pt=new Map,new Set(nt).forEach(He=>{He!=null&&pt.set(He,new Path2D)})));let{x0:tn,size:fn}=g;if(tn!=null&&fn!=null){O=1,x=tn.values(a,o,c,d),tn.unit==2&&(x=x.map(ke=>a.posToVal(L+ke*I,$.key,!0)));let He=fn.values(a,o,c,d);fn.unit==2?fe=He[0]*I:fe=C(He[0],$,I,L)-C(0,$,I,L),$e=Am(x,E,C,$,I,L,$e),Te=$e-fe+_}else $e=Am(x,E,C,$,I,L,$e),Te=$e*y+_,fe=$e-Te;Te<1&&(Te=0),Ie>=fe/2&&(Ie=0),Te<5&&(F=$f);let Yt=Te>0,gr=$e-Te-(Yt?Ie:0);fe=F(Bu(gr,N,A)),ce=(O==0?fe/2:O==q?0:fe)-O*q*((O==0?_/2:0)+(Yt?Ie/2:0));const mn={stroke:null,fill:null,clip:null,band:null,gaps:null,flags:0},Rn=Ye?null:new Path2D;let Ln=null;if(he!=null)Ln=a.data[he.series[1]];else{let{y0:He,y1:ke}=g;He!=null&&ke!=null&&(E=ke.values(a,o,c,d),Ln=He.values(a,o,c,d))}let Qn=B*fe,bt=U*fe;for(let He=q==1?c:d;He>=c&&He<=d;He+=q){let ke=E[He];if(ke==null)continue;if(Ln!=null){let ut=Ln[He]??0;if(ke-ut==0)continue;ue=R(ut,S,H,P)}let ze=$.distr!=2||g!=null?x[He]:He,Xe=C(ze,$,I,L),gt=R(Qt(ke,ae),S,H,P),At=F(Xe-ce),St=F(Er(gt,ue)),Dt=F(Oi(gt,ue)),Ot=St-Dt;if(ke!=null){let ut=ke<0?bt:Qn,xt=ke<0?Qn:bt;Ye?(Ie>0&&nt[He]!=null&&Z(pt.get(nt[He]),At,Dt+ri(Ie/2),fe,Er(0,Ot-Ie),ut,xt),qe[He]!=null&&Z(dt.get(qe[He]),At,Dt+ri(Ie/2),fe,Er(0,Ot-Ie),ut,xt)):Z(Rn,At,Dt+ri(Ie/2),fe,Er(0,Ot-Ie),ut,xt),te(a,o,He,At-Ie/2,Dt,fe+Ie,Ot)}}return Ie>0?mn.stroke=Ye?pt:Rn:Ye||(mn._fill=w.width==0?w._fill:w._stroke??w._fill,mn.width=0),mn.fill=Ye?dt:Rn,mn})}function TS(n,t){const e=Qt(t==null?void 0:t.alignGaps,0);return(r,f,p,y)=>gs(r,f,(b,h,g,s,l,u,a,o,c,d,w)=>{[p,y]=Dl(g,p,y);let x=b.pxRound,E=B=>x(u(B,s,d,o)),$=B=>x(a(B,l,w,c)),S,C,R;s.ori==0?(S=Kl,R=Zs,C=bm):(S=ql,R=Js,C=xm);const L=s.dir*(s.ori==0?1:-1);let P=E(h[L==1?p:y]),I=P,H=[],F=[];for(let B=L==1?p:y;B>=p&&B<=y;B+=L)if(g[B]!=null){let U=h[B],q=E(U);H.push(I=q),F.push($(g[B]))}const O={stroke:n(H,F,S,R,C,x),fill:null,clip:null,band:null,gaps:null,flags:Qs},_=O.stroke;let[A,N]=Zu(r,f);if(b.fill!=null||A!=0){let B=O.fill=new Path2D(_),U=b.fillTo(r,f,b.min,b.max,A),q=$(U);R(B,I,q),R(B,P,q)}if(!b.spanGaps){let B=[];B.push(...Ju(h,g,p,y,L,E,e)),O.gaps=B=b.gaps(r,f,p,y,B),O.clip=Vl(B,s.ori,o,c,d,w)}return N!=0&&(O.band=N==2?[lo(r,f,p,y,_,-1),lo(r,f,p,y,_,1)]:lo(r,f,p,y,_,N)),O})}function $S(n){return TS(MS,n)}function MS(n,t,e,r,f,p){const y=n.length;if(y<2)return null;const b=new Path2D;if(e(b,n[0],t[0]),y==2)r(b,n[1],t[1]);else{let h=Array(y),g=Array(y-1),s=Array(y-1),l=Array(y-1);for(let u=0;u<y-1;u++)s[u]=t[u+1]-t[u],l[u]=n[u+1]-n[u],g[u]=s[u]/l[u];h[0]=g[0];for(let u=1;u<y-1;u++)g[u]===0||g[u-1]===0||g[u-1]>0!=g[u]>0?h[u]=0:(h[u]=3*(l[u-1]+l[u])/((2*l[u]+l[u-1])/g[u-1]+(l[u]+2*l[u-1])/g[u]),isFinite(h[u])||(h[u]=0));h[y-1]=g[y-2];for(let u=0;u<y-1;u++)f(b,n[u]+l[u]/3,t[u]+h[u]*l[u]/3,n[u+1]-l[u]/3,t[u+1]-h[u+1]*l[u]/3,n[u+1],t[u+1])}return b}const th=new Set;function _m(){for(let n of th)n.syncRect(!0)}Vs&&(us(ck,Ks,_m),us(uk,Ks,_m,!0),us(Ol,Ks,()=>{xr.pxRatio=Jt}));const IS=Sm(),ES=Cm();function Tm(n,t,e,r){return(r?[n[0],n[1]].concat(n.slice(2)):[n[0]].concat(n.slice(1))).map((f,p)=>nh(f,p,t,e))}function RS(n,t){return n.map((e,r)=>r==0?{}:Yn({},t,e))}function nh(n,t,e,r){return Yn({},t==0?e:r,n)}function $m(n,t,e){return t==null?Gs:[t,e]}const LS=$m;function OS(n,t,e){return t==null?Gs:Fl(t,e,Pu,!0)}function Mm(n,t,e,r){return t==null?Gs:Pl(t,e,n.scales[r].log,!1)}const NS=Mm;function Im(n,t,e,r){return t==null?Gs:Du(t,e,n.scales[r].log,!1)}const DS=Im;function PS(n,t,e,r,f){let p=Er(_f(n),_f(t)),y=t-n,b=Li(f/r*y,e);do{let h=e[b],g=r*h/y;if(g>=f&&p+(h<5?Oo.get(h):0)<=17)return[h,g]}while(++b<e.length);return[0,0]}function Em(n){let t,e;return n=n.replace(/(\d+)px/,(r,f)=>(t=or((e=+f)*Jt))+"px"),[n,t,e]}function FS(n){n.show&&[n.font,n.labelFont].forEach(t=>{let e=pn(t[2]*Jt,1);t[0]=t[0].replace(/[0-9.]+px/,e+"px"),t[1]=e})}function xr(n,t,e){const r={mode:Qt(n.mode,1)},f=r.mode;function p(V,X,ie,oe){let ge=X.valToPct(V);return oe+ie*(X.dir==-1?1-ge:ge)}function y(V,X,ie,oe){let ge=X.valToPct(V);return oe+ie*(X.dir==-1?ge:1-ge)}function b(V,X,ie,oe){return X.ori==0?p(V,X,ie,oe):y(V,X,ie,oe)}r.valToPosH=p,r.valToPosV=y;let h=!1;r.status=0;const g=r.root=fi(VC);if(n.id!=null&&(g.id=n.id),ti(g,n.class),n.title){let V=fi(GC,g);V.textContent=n.title}const s=Ri("canvas"),l=r.ctx=s.getContext("2d"),u=fi(YC,g);us("click",u,V=>{V.target===o&&(rn!=bi||Vt!=no)&&Nn.click(r,V)},!0);const a=r.under=fi(XC,u);u.appendChild(s);const o=r.over=fi(QC,u);n=Ys(n);const c=+Qt(n.pxAlign,1),d=mm(c);(n.plugins||[]).forEach(V=>{V.opts&&(n=V.opts(r,n)||n)});const w=n.ms||.001,x=r.series=f==1?Tm(n.series||[],om,dm,!1):RS(n.series||[null],hm),E=r.axes=Tm(n.axes||[],im,lm,!0),$=r.scales={},S=r.bands=n.bands||[];S.forEach(V=>{V.fill=Ht(V.fill||null),V.dir=Qt(V.dir,-1)});const C=f==2?x[1].facets[0].scale:x[0].scale,R={axes:fo,series:sa},L=(n.drawOrder||["axes","series"]).map(V=>R[V]);function P(V){const X=V.distr==3?ie=>ao(ie>0?ie:V.clamp(r,ie,V.min,V.max,V.key)):V.distr==4?ie=>Wu(ie,V.asinh):V.distr==100?ie=>V.fwd(ie):ie=>ie;return ie=>{let oe=X(ie),{_min:ge,_max:be}=V,Me=be-ge;return(oe-ge)/Me}}function I(V){let X=$[V];if(X==null){let ie=(n.scales||Oa)[V]||Oa;if(ie.from!=null){I(ie.from);let oe=Yn({},$[ie.from],ie,{key:V});oe.valToPct=P(oe),$[V]=oe}else{X=$[V]=Yn({},V==C?pm:bS,ie),X.key=V;let oe=X.time,ge=X.range,be=No(ge);if((V!=C||f==2&&!oe)&&(be&&(ge[0]==null||ge[1]==null)&&(ge={min:ge[0]==null?Cf:{mode:1,hard:ge[0],soft:ge[0]},max:ge[1]==null?Cf:{mode:1,hard:ge[1],soft:ge[1]}},be=!1),!be&&zl(ge))){let Me=ge;ge=(Pe,We,Ve)=>We==null?Gs:Fl(We,Ve,Me)}X.range=Ht(ge||(oe?LS:V==C?X.distr==3?NS:X.distr==4?DS:$m:X.distr==3?Mm:X.distr==4?Im:OS)),X.auto=Ht(be?!1:X.auto),X.clamp=Ht(X.clamp||wS),X._min=X._max=null,X.valToPct=P(X)}}}I("x"),I("y"),f==1&&x.forEach(V=>{I(V.scale)}),E.forEach(V=>{I(V.scale)});for(let V in n.scales)I(V);const H=$[C],F=H.distr;let O,_;H.ori==0?(ti(g,KC),O=p,_=y):(ti(g,qC),O=y,_=p);const A={};for(let V in $){let X=$[V];(X.min!=null||X.max!=null)&&(A[V]={min:X.min,max:X.max},X.min=X.max=null)}const N=n.tzDate||(V=>new Date(or(V/w))),B=n.fmtDate||ju,U=w==1?Kk(N):Yk(N),q=Xf(N,Yf(w==1?Vk:Gk,B)),Z=Zf(N,Qf(Qk,B)),te=[],he=r.legend=Yn({},eS,n.legend),ne=r.cursor=Yn({},sS,{drag:{y:f==2}},n.cursor),ae=he.show,ue=ne.show,ce=he.markers;he.idxs=te,ce.width=Ht(ce.width),ce.dash=Ht(ce.dash),ce.stroke=Ht(ce.stroke),ce.fill=Ht(ce.fill);let fe,Te,$e,Ie=[],Ye=[],qe,dt=!1,nt={};if(he.live){const V=x[1]?x[1].values:null;dt=V!=null,qe=dt?V(r,1,0):{_:0};for(let X in qe)nt[X]=Iu}if(ae)if(fe=Ri("table",rk,g),$e=Ri("tbody",null,fe),he.mount(r,fe),dt){Te=Ri("thead",null,fe,$e);let V=Ri("tr",null,Te);Ri("th",null,V);for(var pt in qe)Ri("th",sf,V).textContent=pt}else ti(fe,ok),he.live&&ti(fe,ik);const tn={show:!0},fn={show:!1};function Yt(V,X){if(X==0&&(dt||!he.live||f==2))return Gs;let ie=[],oe=Ri("tr",sk,$e,$e.childNodes[X]);ti(oe,V.class),V.show||ti(oe,cs);let ge=Ri("th",null,oe);if(ce.show){let Pe=fi(ak,ge);if(X>0){let We=ce.width(r,X);We&&(Pe.style.border=We+"px "+ce.dash(r,X)+" "+ce.stroke(r,X)),Pe.style.background=ce.fill(r,X)}}let be=fi(sf,ge);V.label instanceof HTMLElement?be.appendChild(V.label):be.textContent=V.label,X>0&&(ce.show||(be.style.color=V.width>0?ce.stroke(r,X):ce.fill(r,X)),mn("click",ge,Pe=>{if(ne._lock)return;Pi(Pe);let We=x.indexOf(V);if((Pe.ctrlKey||Pe.metaKey)!=he.isolate){let Ve=x.some((Qe,Je)=>Je>0&&Je!=We&&Qe.show);x.forEach((Qe,Je)=>{Je>0&&Or(Je,Ve?Je==We?tn:fn:tn,!0,lt.setSeries)})}else Or(We,{show:!V.show},!0,lt.setSeries)},!1),Fi&&mn(uf,ge,Pe=>{ne._lock||(Pi(Pe),Or(x.indexOf(V),ki,!0,lt.setSeries))},!1));for(var Me in qe){let Pe=Ri("td",lk,oe);Pe.textContent="--",ie.push(Pe)}return[oe,ie]}const gr=new Map;function mn(V,X,ie,oe=!0){const ge=gr.get(X)||{},be=ne.bind[V](r,X,ie,oe);be&&(us(V,X,ge[V]=be),gr.set(X,ge))}function Rn(V,X,ie){const oe=gr.get(X)||{};for(let ge in oe)(V==null||ge==V)&&(Nu(ge,X,oe[ge]),delete oe[ge]);V==null&&gr.delete(X)}let Ln=0,Qn=0,bt=0,He=0,ke=0,ze=0,Xe=ke,gt=ze,At=bt,St=He,Dt=0,Ot=0,ut=0,xt=0;r.bbox={};let kn=!1,kr=!1,Kr=!1,Di=!1,co=!1,fr=!1;function uo(V,X,ie){(ie||V!=r.width||X!=r.height)&&Do(V,X),ji(!1),Kr=!0,kr=!0,to()}function Do(V,X){r.width=Ln=bt=V,r.height=Qn=He=X,ke=ze=0,ys(),ra();let ie=r.bbox;Dt=ie.left=ds(ke*Jt,.5),Ot=ie.top=ds(ze*Jt,.5),ut=ie.width=ds(bt*Jt,.5),xt=ie.height=ds(He*Jt,.5)}const Ha=3;function ii(){let V=!1,X=0;for(;!V;){X++;let ie=aa(X),oe=qa(X);V=X==Ha||ie&&oe,V||(Do(r.width,r.height),kr=!0)}}function Ua({width:V,height:X}){uo(V,X)}r.setSize=Ua;function ys(){let V=!1,X=!1,ie=!1,oe=!1;E.forEach((ge,be)=>{if(ge.show&&ge._show){let{side:Me,_size:Pe}=ge,We=Me%2,Ve=ge.label!=null?ge.labelSize:0,Qe=Pe+Ve;Qe>0&&(We?(bt-=Qe,Me==3?(ke+=Qe,oe=!0):ie=!0):(He-=Qe,Me==0?(ze+=Qe,V=!0):X=!0))}}),Bi[0]=V,Bi[1]=ie,Bi[2]=X,Bi[3]=oe,bt-=_r[1]+_r[3],ke+=_r[3],He-=_r[2]+_r[0],ze+=_r[0]}function ra(){let V=ke+bt,X=ze+He,ie=ke,oe=ze;function ge(be,Me){switch(be){case 1:return V+=Me,V-Me;case 2:return X+=Me,X-Me;case 3:return ie-=Me,ie+Me;case 0:return oe-=Me,oe+Me}}E.forEach((be,Me)=>{if(be.show&&be._show){let Pe=be.side;be._pos=ge(Pe,be._size),be.label!=null&&(be._lpos=ge(Pe,be.labelSize))}})}if(ne.dataIdx==null){let V=ne.hover,X=V.skip=new Set(V.skip??[]);X.add(void 0);let ie=V.prox=Ht(V.prox),oe=V.bias??(V.bias=0);ne.dataIdx=(ge,be,Me,Pe)=>{if(be==0)return Me;let We=Me,Ve=ie(ge,be,Me,Pe)??dn,Qe=Ve>=0&&Ve<dn,Je=H.ori==0?bt:He,kt=ne.left,zt=t[0],Tt=t[be];if(X.has(Tt[Me])){We=null;let Wt=null,ft=null,it;if(oe==0||oe==-1)for(it=Me;Wt==null&&it-- >0;)X.has(Tt[it])||(Wt=it);if(oe==0||oe==1)for(it=Me;ft==null&&it++<Tt.length;)X.has(Tt[it])||(ft=it);if(Wt!=null||ft!=null)if(Qe){let gn=Wt==null?-1/0:O(zt[Wt],H,Je,0),_n=ft==null?1/0:O(zt[ft],H,Je,0),er=kt-gn,qt=_n-kt;er<=qt?er<=Ve&&(We=Wt):qt<=Ve&&(We=ft)}else We=ft==null?Wt:Wt==null?ft:Me-Wt<=ft-Me?Wt:ft}else Qe&&ir(kt-O(zt[Me],H,Je,0))>Ve&&(We=null);return We}}const Pi=V=>{ne.event=V};ne.idxs=te,ne._lock=!1;let Hn=ne.points;Hn.show=Ht(Hn.show),Hn.size=Ht(Hn.size),Hn.stroke=Ht(Hn.stroke),Hn.width=Ht(Hn.width),Hn.fill=Ht(Hn.fill);const Sr=r.focus=Yn({},n.focus||{alpha:.3},ne.focus),Fi=Sr.prox>=0,$n=Fi&&Hn.one;let Ar=[],Qi=[],Wi=[];function ws(V,X){let ie=Hn.show(r,X);if(ie instanceof HTMLElement)return ti(ie,nk),ti(ie,V.class),qi(ie,-10,-10,bt,He),o.insertBefore(ie,Ar[X]),ie}function ia(V,X){if(f==1||X>0){let ie=f==1&&$[V.scale].time,oe=V.value;V.value=ie?Nf(oe)?Zf(N,Qf(oe,B)):oe||Z:oe||mS,V.label=V.label||(ie?lS:aS)}if($n||X>0){V.width=V.width==null?1:V.width,V.paths=V.paths||IS||bk,V.fillTo=Ht(V.fillTo||xS),V.pxAlign=+Qt(V.pxAlign,c),V.pxRound=mm(V.pxAlign),V.stroke=Ht(V.stroke||null),V.fill=Ht(V.fill||null),V._stroke=V._fill=V._paths=V._focus=null;let ie=vS(Er(1,V.width),1),oe=V.points=Yn({},{size:ie,width:Er(1,ie*.2),stroke:V.stroke,space:ie*2,paths:ES,_stroke:null,_fill:null},V.points);oe.show=Ht(oe.show),oe.filter=Ht(oe.filter),oe.fill=Ht(oe.fill),oe.stroke=Ht(oe.stroke),oe.paths=Ht(oe.paths),oe.pxAlign=V.pxAlign}if(ae){let ie=Yt(V,X);Ie.splice(X,0,ie[0]),Ye.splice(X,0,ie[1]),he.values.push(null)}if(ue){te.splice(X,0,null);let ie=null;$n?X==0&&(ie=ws(V,X)):X>0&&(ie=ws(V,X)),Ar.splice(X,0,ie),Qi.splice(X,0,0),Wi.splice(X,0,0)}tt("addSeries",X)}function Va(V,X){X=X??x.length,V=f==1?nh(V,X,om,dm):nh(V,X,{},hm),x.splice(X,0,V),ia(x[X],X)}r.addSeries=Va;function Ka(V){if(x.splice(V,1),ae){he.values.splice(V,1),Ye.splice(V,1);let X=Ie.splice(V,1)[0];Rn(null,X.firstChild),X.remove()}ue&&(te.splice(V,1),Ar.splice(V,1)[0].remove(),Qi.splice(V,1),Wi.splice(V,1)),tt("delSeries",V)}r.delSeries=Ka;const Bi=[!1,!1,!1,!1];function oi(V,X){if(V._show=V.show,V.show){let ie=V.side%2,oe=$[V.scale];oe==null&&(V.scale=ie?x[1].scale:C,oe=$[V.scale]);let ge=oe.time;V.size=Ht(V.size),V.space=Ht(V.space),V.rotate=Ht(V.rotate),No(V.incrs)&&V.incrs.forEach(Me=>{!Oo.has(Me)&&Oo.set(Me,Lf(Me))}),V.incrs=Ht(V.incrs||(oe.distr==2?jk:ge?w==1?Uk:qk:ps)),V.splits=Ht(V.splits||(ge&&oe.distr==1?U:oe.distr==3?Yu:oe.distr==4?hS:uS)),V.stroke=Ht(V.stroke),V.grid.stroke=Ht(V.grid.stroke),V.ticks.stroke=Ht(V.ticks.stroke),V.border.stroke=Ht(V.border.stroke);let be=V.values;V.values=No(be)&&!No(be[0])?Ht(be):ge?No(be)?Xf(N,Yf(be,B)):Nf(be)?Xk(N,be):be||q:be||cS,V.filter=Ht(V.filter||(oe.distr>=3&&oe.log==10?gS:oe.distr==3&&oe.log==2?fS:Mf)),V.font=Em(V.font),V.labelFont=Em(V.labelFont),V._size=V.size(r,null,X,0),V._space=V._rotate=V._incrs=V._found=V._splits=V._values=null,V._size>0&&(Bi[X]=!0,V._el=fi(ZC,u))}}function Ut(V,X,ie,oe){let[ge,be,Me,Pe]=ie,We=X%2,Ve=0;return We==0&&(Pe||be)&&(Ve=X==0&&!ge||X==2&&!Me?or(im.size/3):0),We==1&&(ge||Me)&&(Ve=X==1&&!be||X==3&&!Pe?or(lm.size/2):0),Ve}const oa=r.padding=(n.padding||[Ut,Ut,Ut,Ut]).map(V=>Ht(Qt(V,Ut))),_r=r._padding=oa.map((V,X)=>V(r,X,Bi,0));let Un,vn=null,On=null;const vi=f==1?x[0].idxs:null;let Tr=null,yi=!1;function Po(V,X){if(t=V??[],r.data=r._data=t,f==2){Un=0;for(let ie=1;ie<x.length;ie++)Un+=t[ie][0].length}else{t.length==0&&(r.data=r._data=t=[[]]),Tr=t[0],Un=Tr.length;let ie=t;if(F==2){ie=t.slice();let oe=ie[0]=Array(Un);for(let ge=0;ge<Un;ge++)oe[ge]=ge}r._data=t=ie}if(ji(!0),tt("setData"),F==2&&(Kr=!0),X!==!1){let ie=H;ie.auto(r,yi)?bs():Zn(C,ie.min,ie.max),Di=Di||ne.left>=0,fr=!0,to()}}r.setData=Po;function bs(){yi=!0;let V,X;f==1&&(Un>0?(vn=vi[0]=0,On=vi[1]=Un-1,V=t[0][vn],X=t[0][On],F==2?(V=vn,X=On):V==X&&(F==3?[V,X]=Pl(V,V,H.log,!1):F==4?[V,X]=Du(V,V,H.log,!1):H.time?X=V+or(86400/w):[V,X]=Fl(V,X,Pu,!0))):(vn=vi[0]=V=null,On=vi[1]=X=null)),Zn(C,V,X)}let Zi,qr,ho,Fo,Gr,Wo,xs,Cs,Bo,sr;function ks(V,X,ie,oe,ge,be){V??(V=lf),ie??(ie=zu),oe??(oe="butt"),ge??(ge=lf),be??(be="round"),V!=Zi&&(l.strokeStyle=Zi=V),ge!=qr&&(l.fillStyle=qr=ge),X!=ho&&(l.lineWidth=ho=X),be!=Gr&&(l.lineJoin=Gr=be),oe!=Wo&&(l.lineCap=Wo=oe),ie!=Fo&&l.setLineDash(Fo=ie)}function po(V,X,ie,oe){X!=qr&&(l.fillStyle=qr=X),V!=xs&&(l.font=xs=V),ie!=Cs&&(l.textAlign=Cs=ie),oe!=Bo&&(l.textBaseline=Bo=oe)}function zo(V,X,ie,oe,ge=0){if(oe.length>0&&V.auto(r,yi)&&(X==null||X.min==null)){let be=Qt(vn,0),Me=Qt(On,oe.length-1),Pe=ie.min==null?gk(oe,be,Me,ge,V.distr==3):[ie.min,ie.max];V.min=Oi(V.min,ie.min=Pe[0]),V.max=Er(V.max,ie.max=Pe[1])}}const jo={min:null,max:null};function Ji(){for(let oe in $){let ge=$[oe];A[oe]==null&&(ge.min==null||A[C]!=null&&ge.auto(r,yi))&&(A[oe]=jo)}for(let oe in $){let ge=$[oe];A[oe]==null&&ge.from!=null&&A[ge.from]!=null&&(A[oe]=jo)}A[C]!=null&&ji(!0);let V={};for(let oe in A){let ge=A[oe];if(ge!=null){let be=V[oe]=Ys($[oe],kk);if(ge.min!=null)Yn(be,ge);else if(oe!=C||f==2)if(Un==0&&be.from==null){let Me=be.range(r,null,null,oe);be.min=Me[0],be.max=Me[1]}else be.min=dn,be.max=-dn}}if(Un>0){x.forEach((oe,ge)=>{if(f==1){let be=oe.scale,Me=A[be];if(Me==null)return;let Pe=V[be];if(ge==0){let We=Pe.range(r,Pe.min,Pe.max,be);Pe.min=We[0],Pe.max=We[1],vn=Li(Pe.min,t[0]),On=Li(Pe.max,t[0]),On-vn>1&&(t[0][vn]<Pe.min&&vn++,t[0][On]>Pe.max&&On--),oe.min=Tr[vn],oe.max=Tr[On]}else oe.show&&oe.auto&&zo(Pe,Me,oe,t[ge],oe.sorted);oe.idxs[0]=vn,oe.idxs[1]=On}else if(ge>0&&oe.show&&oe.auto){let[be,Me]=oe.facets,Pe=be.scale,We=Me.scale,[Ve,Qe]=t[ge],Je=V[Pe],kt=V[We];Je!=null&&zo(Je,A[Pe],be,Ve,be.sorted),kt!=null&&zo(kt,A[We],Me,Qe,Me.sorted),oe.min=Me.min,oe.max=Me.max}});for(let oe in V){let ge=V[oe],be=A[oe];if(ge.from==null&&(be==null||be.min==null)){let Me=ge.range(r,ge.min==dn?null:ge.min,ge.max==-dn?null:ge.max,oe);ge.min=Me[0],ge.max=Me[1]}}}for(let oe in V){let ge=V[oe];if(ge.from!=null){let be=V[ge.from];if(be.min==null)ge.min=ge.max=null;else{let Me=ge.range(r,be.min,be.max,oe);ge.min=Me[0],ge.max=Me[1]}}}let X={},ie=!1;for(let oe in V){let ge=V[oe],be=$[oe];if(be.min!=ge.min||be.max!=ge.max){be.min=ge.min,be.max=ge.max;let Me=be.distr;be._min=Me==3?ao(be.min):Me==4?Wu(be.min,be.asinh):Me==100?be.fwd(be.min):be.min,be._max=Me==3?ao(be.max):Me==4?Wu(be.max,be.asinh):Me==100?be.fwd(be.max):be.max,X[oe]=ie=!0}}if(ie){x.forEach((oe,ge)=>{f==2?ge>0&&X.y&&(oe._paths=null):X[oe.scale]&&(oe._paths=null)});for(let oe in X)Kr=!0,tt("setScale",oe);ue&&ne.left>=0&&(Di=fr=!0)}for(let oe in A)A[oe]=null}function Ss(V){let X=Bu(vn-1,0,Un-1),ie=Bu(On+1,0,Un-1);for(;V[X]==null&&X>0;)X--;for(;V[ie]==null&&ie<Un-1;)ie++;return[X,ie]}function sa(){if(Un>0){let V=x.some(X=>X._focus)&&sr!=Sr.alpha;V&&(l.globalAlpha=sr=Sr.alpha),x.forEach((X,ie)=>{if(ie>0&&X.show&&(Ho(ie,!1),Ho(ie,!0),X._paths==null)){let oe=sr;sr!=X.alpha&&(l.globalAlpha=sr=X.alpha);let ge=f==2?[0,t[ie][0].length-1]:Ss(t[ie]);X._paths=X.paths(r,ie,ge[0],ge[1]),sr!=oe&&(l.globalAlpha=sr=oe)}}),x.forEach((X,ie)=>{if(ie>0&&X.show){let oe=sr;sr!=X.alpha&&(l.globalAlpha=sr=X.alpha),X._paths!=null&&Uo(ie,!1);{let ge=X._paths!=null?X._paths.gaps:null,be=X.points.show(r,ie,vn,On,ge),Me=X.points.filter(r,ie,be,ge);(be||Me)&&(X.points._paths=X.points.paths(r,ie,vn,On,Me),Uo(ie,!0))}sr!=oe&&(l.globalAlpha=sr=oe),tt("drawSeries",ie)}}),V&&(l.globalAlpha=sr=1)}}function Ho(V,X){let ie=X?x[V].points:x[V];ie._stroke=ie.stroke(r,V),ie._fill=ie.fill(r,V)}function Uo(V,X){let ie=X?x[V].points:x[V],{stroke:oe,fill:ge,clip:be,flags:Me,_stroke:Pe=ie._stroke,_fill:We=ie._fill,_width:Ve=ie.width}=ie._paths;Ve=pn(Ve*Jt,3);let Qe=null,Je=Ve%2/2;X&&We==null&&(We=Ve>0?"#fff":Pe);let kt=ie.pxAlign==1&&Je>0;if(kt&&l.translate(Je,Je),!X){let zt=Dt-Ve/2,Tt=Ot-Ve/2,Wt=ut+Ve,ft=xt+Ve;Qe=new Path2D,Qe.rect(zt,Tt,Wt,ft)}X?go(Pe,Ve,ie.dash,ie.cap,We,oe,ge,Me,be):As(V,Pe,Ve,ie.dash,ie.cap,We,oe,ge,Me,Qe,be),kt&&l.translate(-Je,-Je)}function As(V,X,ie,oe,ge,be,Me,Pe,We,Ve,Qe){let Je=!1;We!=0&&S.forEach((kt,zt)=>{if(kt.series[0]==V){let Tt=x[kt.series[1]],Wt=t[kt.series[1]],ft=(Tt._paths||Oa).band;No(ft)&&(ft=kt.dir==1?ft[0]:ft[1]);let it,gn=null;Tt.show&&ft&&mk(Wt,vn,On)?(gn=kt.fill(r,zt)||be,it=Tt._paths.clip):ft=null,go(X,ie,oe,ge,gn,Me,Pe,We,Ve,Qe,it,ft),Je=!0}}),Je||go(X,ie,oe,ge,be,Me,Pe,We,Ve,Qe)}const Vo=Qs|Qu;function go(V,X,ie,oe,ge,be,Me,Pe,We,Ve,Qe,Je){ks(V,X,ie,oe,ge),(We||Ve||Je)&&(l.save(),We&&l.clip(We),Ve&&l.clip(Ve)),Je?(Pe&Vo)==Vo?(l.clip(Je),Qe&&l.clip(Qe),ar(ge,Me),wi(V,be,X)):Pe&Qu?(ar(ge,Me),l.clip(Je),wi(V,be,X)):Pe&Qs&&(l.save(),l.clip(Je),Qe&&l.clip(Qe),ar(ge,Me),l.restore(),wi(V,be,X)):(ar(ge,Me),wi(V,be,X)),(We||Ve||Je)&&l.restore()}function wi(V,X,ie){ie>0&&(X instanceof Map?X.forEach((oe,ge)=>{l.strokeStyle=Zi=ge,l.stroke(oe)}):X!=null&&V&&l.stroke(X))}function ar(V,X){X instanceof Map?X.forEach((ie,oe)=>{l.fillStyle=qr=oe,l.fill(ie)}):X!=null&&V&&l.fill(X)}function eo(V,X,ie,oe){let ge=E[V],be;if(oe<=0)be=[0,0];else{let Me=ge._space=ge.space(r,V,X,ie,oe),Pe=ge._incrs=ge.incrs(r,V,X,ie,oe,Me);be=PS(X,ie,Pe,oe,Me)}return ge._found=be}function zi(V,X,ie,oe,ge,be,Me,Pe,We,Ve){let Qe=Me%2/2;c==1&&l.translate(Qe,Qe),ks(Pe,Me,We,Ve,Pe),l.beginPath();let Je,kt,zt,Tt,Wt=ge+(oe==0||oe==3?-be:be);ie==0?(kt=ge,Tt=Wt):(Je=ge,zt=Wt);for(let ft=0;ft<V.length;ft++)X[ft]!=null&&(ie==0?Je=zt=V[ft]:kt=Tt=V[ft],l.moveTo(Je,kt),l.lineTo(zt,Tt));l.stroke(),c==1&&l.translate(-Qe,-Qe)}function aa(V){let X=!0;return E.forEach((ie,oe)=>{if(!ie.show)return;let ge=$[ie.scale];if(ge.min==null){ie._show&&(X=!1,ie._show=!1,ji(!1));return}else ie._show||(X=!1,ie._show=!0,ji(!1));let be=ie.side,Me=be%2,{min:Pe,max:We}=ge,[Ve,Qe]=eo(oe,Pe,We,Me==0?bt:He);if(Qe==0)return;let Je=ge.distr==2,kt=ie._splits=ie.splits(r,oe,Pe,We,Ve,Qe,Je),zt=ge.distr==2?kt.map(it=>Tr[it]):kt,Tt=ge.distr==2?Tr[kt[1]]-Tr[kt[0]]:Ve,Wt=ie._values=ie.values(r,ie.filter(r,zt,oe,Qe,Tt),oe,Qe,Tt);ie._rotate=be==2?ie.rotate(r,Wt,oe,Qe):0;let ft=ie._size;ie._size=mi(ie.size(r,Wt,oe,V)),ft!=null&&ie._size!=ft&&(X=!1)}),X}function qa(V){let X=!0;return oa.forEach((ie,oe)=>{let ge=ie(r,oe,Bi,V);ge!=_r[oe]&&(X=!1),_r[oe]=ge}),X}function fo(){for(let V=0;V<E.length;V++){let X=E[V];if(!X.show||!X._show)continue;let ie=X.side,oe=ie%2,ge,be,Me=X.stroke(r,V),Pe=ie==0||ie==3?-1:1,[We,Ve]=X._found;if(X.label!=null){let un=X.labelGap*Pe,dr=or((X._lpos+un)*Jt);po(X.labelFont[0],Me,"center",ie==2?Ea:af),l.save(),oe==1?(ge=be=0,l.translate(dr,or(Ot+xt/2)),l.rotate((ie==3?-Wl:Wl)/2)):(ge=or(Dt+ut/2),be=dr);let bo=Tf(X.label)?X.label(r,V,We,Ve):X.label;l.fillText(bo,ge,be),l.restore()}if(Ve==0)continue;let Qe=$[X.scale],Je=oe==0?ut:xt,kt=oe==0?Dt:Ot,zt=X._splits,Tt=Qe.distr==2?zt.map(un=>Tr[un]):zt,Wt=Qe.distr==2?Tr[zt[1]]-Tr[zt[0]]:We,ft=X.ticks,it=X.border,gn=ft.show?ft.size:0,_n=or(gn*Jt),er=or((X.alignTo==2?X._size-gn-X.gap:X.gap)*Jt),qt=X._rotate*-Wl/180,pe=d(X._pos*Jt),Se=(_n+er)*Pe,xe=pe+Se;be=oe==0?xe:0,ge=oe==1?xe:0;let je=X.font[0],ct=X.align==1?Us:X.align==2?_u:qt>0?Us:qt<0?_u:oe==0?"center":ie==3?_u:Us,Lt=qt||oe==1?"middle":ie==2?Ea:af;po(je,Me,ct,Lt);let Xt=X.font[1]*X.lineGap,Pt=zt.map(un=>d(b(un,Qe,Je,kt))),Nr=X._values;for(let un=0;un<Nr.length;un++){let dr=Nr[un];if(dr!=null){oe==0?ge=Pt[un]:be=Pt[un],dr=""+dr;let bo=dr.indexOf(`
|
1489
|
+
`)==-1?[dr]:dr.split(/\n/gm);for(let Fn=0;Fn<bo.length;Fn++){let Ts=bo[Fn];qt?(l.save(),l.translate(ge,be+Fn*Xt),l.rotate(qt),l.fillText(Ts,0,0),l.restore()):l.fillText(Ts,ge,be+Fn*Xt)}}}ft.show&&zi(Pt,ft.filter(r,Tt,V,Ve,Wt),oe,ie,pe,_n,pn(ft.width*Jt,3),ft.stroke(r,V),ft.dash,ft.cap);let Si=X.grid;Si.show&&zi(Pt,Si.filter(r,Tt,V,Ve,Wt),oe,oe==0?2:1,oe==0?Ot:Dt,oe==0?xt:ut,pn(Si.width*Jt,3),Si.stroke(r,V),Si.dash,Si.cap),it.show&&zi([pe],[1],oe==0?1:0,oe==0?1:2,oe==1?Ot:Dt,oe==1?xt:ut,pn(it.width*Jt,3),it.stroke(r,V),it.dash,it.cap)}tt("drawAxes")}function ji(V){x.forEach((X,ie)=>{ie>0&&(X._paths=null,V&&(f==1?(X.min=null,X.max=null):X.facets.forEach(oe=>{oe.min=null,oe.max=null})))})}let mo=!1,Ko=!1,vo=[];function la(){Ko=!1;for(let V=0;V<vo.length;V++)tt(...vo[V]);vo.length=0}function to(){mo||(Ik(ca),mo=!0)}function Fe(V,X=!1){mo=!0,Ko=X,V(r),ca(),X&&vo.length>0&&queueMicrotask(la)}r.batch=Fe;function ca(){if(kn&&(Ji(),kn=!1),Kr&&(ii(),Kr=!1),kr){if(bn(a,Us,ke),bn(a,Ea,ze),bn(a,Ma,bt),bn(a,Ia,He),bn(o,Us,ke),bn(o,Ea,ze),bn(o,Ma,bt),bn(o,Ia,He),bn(u,Ma,Ln),bn(u,Ia,Qn),s.width=or(Ln*Jt),s.height=or(Qn*Jt),E.forEach(({_el:V,_show:X,_size:ie,_pos:oe,side:ge})=>{if(V!=null)if(X){let be=ge===3||ge===0?ie:0,Me=ge%2==1;bn(V,Me?"left":"top",oe-be),bn(V,Me?"width":"height",ie),bn(V,Me?"top":"left",Me?ze:ke),bn(V,Me?"height":"width",Me?He:bt),Lu(V,cs)}else ti(V,cs)}),Zi=qr=ho=Gr=Wo=xs=Cs=Bo=Fo=null,sr=1,W(!0),ke!=Xe||ze!=gt||bt!=At||He!=St){ji(!1);let V=bt/At,X=He/St;if(ue&&!Di&&ne.left>=0){ne.left*=V,ne.top*=X,si&&qi(si,or(ne.left),0,bt,He),Vn&&qi(Vn,0,or(ne.top),bt,He);for(let ie=0;ie<Ar.length;ie++){let oe=Ar[ie];oe!=null&&(Qi[ie]*=V,Wi[ie]*=X,qi(oe,mi(Qi[ie]),mi(Wi[ie]),bt,He))}}if(Ct.show&&!co&&Ct.left>=0&&Ct.width>0){Ct.left*=V,Ct.width*=V,Ct.top*=X,Ct.height*=X;for(let ie in Y)bn(Lr,ie,Ct[ie])}Xe=ke,gt=ze,At=bt,St=He}tt("setSize"),kr=!1}Ln>0&&Qn>0&&(l.clearRect(0,0,s.width,s.height),tt("drawClear"),L.forEach(V=>V()),tt("draw")),Ct.show&&co&&(cn(Ct),co=!1),ue&&Di&&(k(null,!0,!1),Di=!1),he.show&&he.live&&fr&&(v(),fr=!1),h||(h=!0,r.status=1,tt("ready")),yi=!1,mo=!1}r.redraw=(V,X)=>{Kr=X||!1,V!==!1?Zn(C,H.min,H.max):to()};function Ne(V,X){let ie=$[V];if(ie.from==null){if(Un==0){let oe=ie.range(r,X.min,X.max,V);X.min=oe[0],X.max=oe[1]}if(X.min>X.max){let oe=X.min;X.min=X.max,X.max=oe}if(Un>1&&X.min!=null&&X.max!=null&&X.max-X.min<1e-16)return;V==C&&ie.distr==2&&Un>0&&(X.min=Li(X.min,t[0]),X.max=Li(X.max,t[0]),X.min==X.max&&X.max++),A[V]=X,kn=!0,to()}}r.setScale=Ne;let Mn,yo,si,Vn,ua,wo,bi,no,nn,Zt,rn,Vt,xi=!1;const Nn=ne.drag;let Be=Nn.x,yn=Nn.y;ue&&(ne.x&&(Mn=fi(ek,o)),ne.y&&(yo=fi(tk,o)),H.ori==0?(si=Mn,Vn=yo):(si=yo,Vn=Mn),rn=ne.left,Vt=ne.top);const Ct=r.select=Yn({show:!0,over:!0,left:0,width:0,top:0,height:0},n.select),Lr=Ct.show?fi(JC,Ct.over?o:a):null;function cn(V,X){if(Ct.show){for(let ie in V)Ct[ie]=V[ie],ie in Y&&bn(Lr,ie,V[ie]);X!==!1&&tt("setSelect")}}r.setSelect=cn;function xn(V){if(x[V].show)ae&&Lu(Ie[V],cs);else if(ae&&ti(Ie[V],cs),ue){let X=$n?Ar[0]:Ar[V];X!=null&&qi(X,-10,-10,bt,He)}}function Zn(V,X,ie){Ne(V,{min:X,max:ie})}function Or(V,X,ie,oe){X.focus!=null&&cr(V),X.show!=null&&x.forEach((ge,be)=>{be>0&&(V==be||V==null)&&(ge.show=X.show,xn(be),f==2?(Zn(ge.facets[0].scale,null,null),Zn(ge.facets[1].scale,null,null)):Zn(ge.scale,null,null),to())}),ie!==!1&&tt("setSeries",V,X),oe&&Rt("setSeries",r,V,X)}r.setSeries=Or;function Ci(V,X){Yn(S[V],X)}function Dn(V,X){V.fill=Ht(V.fill||null),V.dir=Qt(V.dir,-1),X=X??S.length,S.splice(X,0,V)}function Yr(V){V==null?S.length=0:S.splice(V,1)}r.addBand=Dn,r.setBand=Ci,r.delBand=Yr;function qo(V,X){x[V].alpha=X,ue&&Ar[V]!=null&&(Ar[V].style.opacity=X),ae&&Ie[V]&&(Ie[V].style.opacity=X)}let Pn,ai,li;const ki={focus:!0};function cr(V){if(V!=li){let X=V==null,ie=Sr.alpha!=1;x.forEach((oe,ge)=>{if(f==1||ge>0){let be=X||ge==0||ge==V;oe._focus=X?null:be,ie&&qo(ge,be?1:Sr.alpha)}}),li=V,ie&&to()}}ae&&Fi&&mn(hf,fe,V=>{ne._lock||(Pi(V),li!=null&&Or(null,ki,!0,lt.setSeries))});function ur(V,X,ie){let oe=$[X];ie&&(V=V/Jt-(oe.ori==1?ze:ke));let ge=bt;oe.ori==1&&(ge=He,V=ge-V),oe.dir==-1&&(V=ge-V);let be=oe._min,Me=oe._max,Pe=V/ge,We=be+(Me-be)*Pe,Ve=oe.distr;return Ve==3?qs(10,We):Ve==4?yk(We,oe.asinh):Ve==100?oe.bwd(We):We}function mr(V,X){let ie=ur(V,C,X);return Li(ie,t[0],vn,On)}r.valToIdx=V=>Li(V,t[0]),r.posToIdx=mr,r.posToVal=ur,r.valToPos=(V,X,ie)=>$[X].ori==0?p(V,$[X],ie?ut:bt,ie?Dt:0):y(V,$[X],ie?xt:He,ie?Ot:0),r.setCursor=(V,X,ie)=>{rn=V.left,Vt=V.top,k(null,X,ie)};function _s(V,X){bn(Lr,Us,Ct.left=V),bn(Lr,Ma,Ct.width=X)}function vr(V,X){bn(Lr,Ea,Ct.top=V),bn(Lr,Ia,Ct.height=X)}let $r=H.ori==0?_s:vr,ci=H.ori==1?_s:vr;function ui(){if(ae&&he.live)for(let V=f==2?1:0;V<x.length;V++){if(V==0&&dt)continue;let X=he.values[V],ie=0;for(let oe in X)Ye[V][ie++].firstChild.nodeValue=X[oe]}}function v(V,X){if(V!=null&&(V.idxs?V.idxs.forEach((ie,oe)=>{te[oe]=ie}):Ck(V.idx)||te.fill(V.idx),he.idx=te[0]),ae&&he.live){for(let ie=0;ie<x.length;ie++)(ie>0||f==1&&!dt)&&T(ie,te[ie]);ui()}fr=!1,X!==!1&&tt("setLegend")}r.setLegend=v;function T(V,X){let ie=x[V],oe=V==0&&F==2?Tr:t[V],ge;dt?ge=ie.values(r,V,X)??nt:(ge=ie.value(r,X==null?null:oe[X],V,X),ge=ge==null?nt:{_:ge}),he.values[V]=ge}function k(V,X,ie){nn=rn,Zt=Vt,[rn,Vt]=ne.move(r,rn,Vt),ne.left=rn,ne.top=Vt,ue&&(si&&qi(si,or(rn),0,bt,He),Vn&&qi(Vn,0,or(Vt),bt,He));let oe,ge=vn>On;Pn=dn,ai=null;let be=H.ori==0?bt:He,Me=H.ori==1?bt:He;if(rn<0||Un==0||ge){oe=ne.idx=null;for(let Pe=0;Pe<x.length;Pe++){let We=Ar[Pe];We!=null&&qi(We,-10,-10,bt,He)}Fi&&Or(null,ki,!0,V==null&<.setSeries),he.live&&(te.fill(oe),fr=!0)}else{let Pe,We,Ve;f==1&&(Pe=H.ori==0?rn:Vt,We=ur(Pe,C),oe=ne.idx=Li(We,t[0],vn,On),Ve=O(t[0][oe],H,be,0));let Qe=-10,Je=-10,kt=0,zt=0,Tt=!0,Wt="",ft="";for(let it=f==2?1:0;it<x.length;it++){let gn=x[it],_n=te[it],er=_n==null?null:f==1?t[it][_n]:t[it][1][_n],qt=ne.dataIdx(r,it,oe,We),pe=qt==null?null:f==1?t[it][qt]:t[it][1][qt];if(fr=fr||pe!=er||qt!=_n,te[it]=qt,it>0&&gn.show){let Se=qt==null?-10:qt==oe?Ve:O(f==1?t[0][qt]:t[it][0][qt],H,be,0),xe=pe==null?-10:_(pe,f==1?$[gn.scale]:$[gn.facets[1].scale],Me,0);if(Fi&&pe!=null){let je=H.ori==1?rn:Vt,ct=ir(Sr.dist(r,it,qt,xe,je));if(ct<Pn){let Lt=Sr.bias;if(Lt!=0){let Xt=ur(je,gn.scale),Pt=pe>=0?1:-1,Nr=Xt>=0?1:-1;Nr==Pt&&(Nr==1?Lt==1?pe>=Xt:pe<=Xt:Lt==1?pe<=Xt:pe>=Xt)&&(Pn=ct,ai=it)}else Pn=ct,ai=it}}if(fr||$n){let je,ct;H.ori==0?(je=Se,ct=xe):(je=xe,ct=Se);let Lt,Xt,Pt,Nr,Si,un,dr=!0,bo=Hn.bbox;if(bo!=null){dr=!1;let Fn=bo(r,it);Pt=Fn.left,Nr=Fn.top,Lt=Fn.width,Xt=Fn.height}else Pt=je,Nr=ct,Lt=Xt=Hn.size(r,it);if(un=Hn.fill(r,it),Si=Hn.stroke(r,it),$n)it==ai&&Pn<=Sr.prox&&(Qe=Pt,Je=Nr,kt=Lt,zt=Xt,Tt=dr,Wt=un,ft=Si);else{let Fn=Ar[it];Fn!=null&&(Qi[it]=Pt,Wi[it]=Nr,yf(Fn,Lt,Xt,dr),mf(Fn,un,Si),qi(Fn,mi(Pt),mi(Nr),bt,He))}}}}if($n){let it=Sr.prox,gn=li==null?Pn<=it:Pn>it||ai!=li;if(fr||gn){let _n=Ar[0];_n!=null&&(Qi[0]=Qe,Wi[0]=Je,yf(_n,kt,zt,Tt),mf(_n,Wt,ft),qi(_n,mi(Qe),mi(Je),bt,He))}}}if(Ct.show&&xi)if(V!=null){let[Pe,We]=lt.scales,[Ve,Qe]=lt.match,[Je,kt]=V.cursor.sync.scales,zt=V.cursor.drag;if(Be=zt._x,yn=zt._y,Be||yn){let{left:Tt,top:Wt,width:ft,height:it}=V.select,gn=V.scales[Je].ori,_n=V.posToVal,er,qt,pe,Se,xe,je=Pe!=null&&Ve(Pe,Je),ct=We!=null&&Qe(We,kt);je&&Be?(gn==0?(er=Tt,qt=ft):(er=Wt,qt=it),pe=$[Pe],Se=O(_n(er,Je),pe,be,0),xe=O(_n(er+qt,Je),pe,be,0),$r(Oi(Se,xe),ir(xe-Se))):$r(0,be),ct&&yn?(gn==1?(er=Tt,qt=ft):(er=Wt,qt=it),pe=$[We],Se=_(_n(er,kt),pe,Me,0),xe=_(_n(er+qt,kt),pe,Me,0),ci(Oi(Se,xe),ir(xe-Se))):ci(0,Me)}else Q()}else{let Pe=ir(nn-ua),We=ir(Zt-wo);if(H.ori==1){let kt=Pe;Pe=We,We=kt}Be=Nn.x&&Pe>=Nn.dist,yn=Nn.y&&We>=Nn.dist;let Ve=Nn.uni;Ve!=null?Be&&yn&&(Be=Pe>=Ve,yn=We>=Ve,!Be&&!yn&&(We>Pe?yn=!0:Be=!0)):Nn.x&&Nn.y&&(Be||yn)&&(Be=yn=!0);let Qe,Je;Be&&(H.ori==0?(Qe=bi,Je=rn):(Qe=no,Je=Vt),$r(Oi(Qe,Je),ir(Je-Qe)),yn||ci(0,Me)),yn&&(H.ori==1?(Qe=bi,Je=rn):(Qe=no,Je=Vt),ci(Oi(Qe,Je),ir(Je-Qe)),Be||$r(0,be)),!Be&&!yn&&($r(0,0),ci(0,0))}if(Nn._x=Be,Nn._y=yn,V==null){if(ie){if(Sn!=null){let[Pe,We]=lt.scales;lt.values[0]=Pe!=null?ur(H.ori==0?rn:Vt,Pe):null,lt.values[1]=We!=null?ur(H.ori==1?rn:Vt,We):null}Rt($u,r,rn,Vt,bt,He,oe)}if(Fi){let Pe=ie&<.setSeries,We=Sr.prox;li==null?Pn<=We&&Or(ai,ki,!0,Pe):Pn>We?Or(null,ki,!0,Pe):ai!=li&&Or(ai,ki,!0,Pe)}}fr&&(he.idx=oe,v()),X!==!1&&tt("setCursor")}let D=null;Object.defineProperty(r,"rect",{get(){return D==null&&W(!1),D}});function W(V=!1){V?D=null:(D=o.getBoundingClientRect(),tt("syncRect",D))}function z(V,X,ie,oe,ge,be,Me){ne._lock||xi&&V!=null&&V.movementX==0&&V.movementY==0||(K(V,X,ie,oe,ge,be,Me,!1,V!=null),V!=null?k(null,!0,!0):k(X,!0,!1))}function K(V,X,ie,oe,ge,be,Me,Pe,We){if(D==null&&W(!1),Pi(V),V!=null)ie=V.clientX-D.left,oe=V.clientY-D.top;else{if(ie<0||oe<0){rn=-10,Vt=-10;return}let[Ve,Qe]=lt.scales,Je=X.cursor.sync,[kt,zt]=Je.values,[Tt,Wt]=Je.scales,[ft,it]=lt.match,gn=X.axes[0].side%2==1,_n=H.ori==0?bt:He,er=H.ori==1?bt:He,qt=gn?be:ge,pe=gn?ge:be,Se=gn?oe:ie,xe=gn?ie:oe;if(Tt!=null?ie=ft(Ve,Tt)?b(kt,$[Ve],_n,0):-10:ie=_n*(Se/qt),Wt!=null?oe=it(Qe,Wt)?b(zt,$[Qe],er,0):-10:oe=er*(xe/pe),H.ori==1){let je=ie;ie=oe,oe=je}}We&&(X==null||X.cursor.event.type==$u)&&((ie<=1||ie>=bt-1)&&(ie=ds(ie,bt)),(oe<=1||oe>=He-1)&&(oe=ds(oe,He))),Pe?(ua=ie,wo=oe,[bi,no]=ne.move(r,ie,oe)):(rn=ie,Vt=oe)}const Y={width:0,height:0,left:0,top:0};function Q(){cn(Y,!1)}let re,se,ye,Ce;function me(V,X,ie,oe,ge,be,Me){xi=!0,Be=yn=Nn._x=Nn._y=!1,K(V,X,ie,oe,ge,be,Me,!0,!1),V!=null&&(mn(Mu,Eu,we,!1),Rt(cf,r,bi,no,bt,He,null));let{left:Pe,top:We,width:Ve,height:Qe}=Ct;re=Pe,se=We,ye=Ve,Ce=Qe}function we(V,X,ie,oe,ge,be,Me){xi=Nn._x=Nn._y=!1,K(V,X,ie,oe,ge,be,Me,!1,!0);let{left:Pe,top:We,width:Ve,height:Qe}=Ct,Je=Ve>0||Qe>0,kt=re!=Pe||se!=We||ye!=Ve||Ce!=Qe;if(Je&&kt&&cn(Ct),Nn.setScale&&Je&&kt){let zt=Pe,Tt=Ve,Wt=We,ft=Qe;if(H.ori==1&&(zt=We,Tt=Qe,Wt=Pe,ft=Ve),Be&&Zn(C,ur(zt,C),ur(zt+Tt,C)),yn)for(let it in $){let gn=$[it];it!=C&&gn.from==null&&gn.min!=dn&&Zn(it,ur(Wt+ft,it),ur(Wt,it))}Q()}else ne.lock&&(ne._lock=!ne._lock,k(X,!0,V!=null));V!=null&&(Rn(Mu,Eu),Rt(Mu,r,rn,Vt,bt,He,null))}function Oe(V,X,ie,oe,ge,be,Me){if(ne._lock)return;Pi(V);let Pe=xi;if(xi){let We=!0,Ve=!0,Qe=10,Je,kt;H.ori==0?(Je=Be,kt=yn):(Je=yn,kt=Be),Je&&kt&&(We=rn<=Qe||rn>=bt-Qe,Ve=Vt<=Qe||Vt>=He-Qe),Je&&We&&(rn=rn<bi?0:bt),kt&&Ve&&(Vt=Vt<no?0:He),k(null,!0,!0),xi=!1}rn=-10,Vt=-10,te.fill(null),k(null,!0,!0),Pe&&(xi=Pe)}function Le(V,X,ie,oe,ge,be,Me){ne._lock||(Pi(V),bs(),Q(),V!=null&&Rt(df,r,rn,Vt,bt,He,null))}function Ue(){E.forEach(FS),uo(r.width,r.height,!0)}us(Ol,Ks,Ue);const at={};at.mousedown=me,at.mousemove=z,at.mouseup=we,at.dblclick=Le,at.setSeries=(V,X,ie,oe)=>{let ge=lt.match[2];ie=ge(r,X,ie),ie!=-1&&Or(ie,oe,!0,!1)},ue&&(mn(cf,o,me),mn($u,o,z),mn(uf,o,V=>{Pi(V),W(!1)}),mn(hf,o,Oe),mn(df,o,Le),th.add(r),r.syncRect=W);const Ze=r.hooks=n.hooks||{};function tt(V,X,ie){Ko?vo.push([V,X,ie]):V in Ze&&Ze[V].forEach(oe=>{oe.call(null,r,X,ie)})}(n.plugins||[]).forEach(V=>{for(let X in V.hooks)Ze[X]=(Ze[X]||[]).concat(V.hooks[X])});const wn=(V,X,ie)=>ie,lt=Yn({key:null,setSeries:!1,filters:{pub:If,sub:If},scales:[C,x[1]?x[1].scale:null],match:[Ef,Ef,wn],values:[null,null]},ne.sync);lt.match.length==2&<.match.push(wn),ne.sync=lt;const Sn=lt.key,_t=fm(Sn);function Rt(V,X,ie,oe,ge,be,Me){lt.filters.pub(V,X,ie,oe,ge,be,Me)&&_t.pub(V,X,ie,oe,ge,be,Me)}_t.sub(r);function Jn(V,X,ie,oe,ge,be,Me){lt.filters.sub(V,X,ie,oe,ge,be,Me)&&at[V](null,X,ie,oe,ge,be,Me)}r.pub=Jn;function hr(){_t.unsub(r),th.delete(r),gr.clear(),Nu(Ol,Ks,Ue),g.remove(),fe==null||fe.remove(),tt("destroy")}r.destroy=hr;function An(){tt("init",n,t),Po(t||n.data,!1),A[C]?Ne(C,A[C]):bs(),co=Ct.show&&(Ct.width>0||Ct.height>0),Di=fr=!0,uo(n.width,n.height)}return x.forEach(ia),E.forEach(oi),e?e instanceof HTMLElement?(e.appendChild(g),An()):e(r,An):An(),r}xr.assign=Yn,xr.fmtNum=Fu,xr.rangeNum=Fl,xr.rangeLog=Pl,xr.rangeAsinh=Du,xr.orient=gs,xr.pxRatio=Jt,xr.join=Mk,xr.fmtDate=ju,xr.tzDate=Bk,xr.sync=fm;{xr.addGap=CS,xr.clipGaps=Vl;let n=xr.paths={points:Cm};n.linear=Sm,n.stepped=AS,n.bars=_S,n.spline=$S}var Rm,Lm;function WS(){return Lm||(Lm=1,Rm=function(n,t,e,r,f){var p,y;if(r===void 0)r=0;else if(r=r|0,r<0||r>=n.length)throw new RangeError("invalid lower bound");if(f===void 0)f=n.length-1;else if(f=f|0,f<r||f>=n.length)throw new RangeError("invalid upper bound");for(;r<=f;)if(p=r+(f-r>>>1),y=+e(n[p],t,p,n),y<0)r=p+1;else if(y>0)f=p-1;else return p;return~r}),Rm}var BS=WS();const d2=tr("e",pl(BS));var rh,Om;function zS(){if(Om)return rh;Om=1;function n(t,e,r){var f=-1,p=t.length;e<0&&(e=-e>p?0:p+e),r=r>p?p:r,r<0&&(r+=p),p=e>r?0:r-e>>>0,e>>>=0;for(var y=Array(p);++f<p;)y[f]=t[f+e];return y}return rh=n,rh}var ih,Nm;function jS(){if(Nm)return ih;Nm=1;var n=zS();function t(e,r,f){var p=e.length;return f=f===void 0?p:f,!r&&f>=p?e:n(e,r,f)}return ih=t,ih}var oh,Dm;function Pm(){if(Dm)return oh;Dm=1;var n="\\ud800-\\udfff",t="\\u0300-\\u036f",e="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",f=t+e+r,p="\\ufe0e\\ufe0f",y="\\u200d",b=RegExp("["+y+n+f+p+"]");function h(g){return b.test(g)}return oh=h,oh}var sh,Fm;function HS(){if(Fm)return sh;Fm=1;function n(t){return t.split("")}return sh=n,sh}var ah,Wm;function US(){if(Wm)return ah;Wm=1;var n="\\ud800-\\udfff",t="\\u0300-\\u036f",e="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",f=t+e+r,p="\\ufe0e\\ufe0f",y="["+n+"]",b="["+f+"]",h="\\ud83c[\\udffb-\\udfff]",g="(?:"+b+"|"+h+")",s="[^"+n+"]",l="(?:\\ud83c[\\udde6-\\uddff]){2}",u="[\\ud800-\\udbff][\\udc00-\\udfff]",a="\\u200d",o=g+"?",c="["+p+"]?",d="(?:"+a+"(?:"+[s,l,u].join("|")+")"+c+o+")*",w=c+o+d,x="(?:"+[s+b+"?",b,l,u,y].join("|")+")",E=RegExp(h+"(?="+h+")|"+x+w,"g");function $(S){return S.match(E)||[]}return ah=$,ah}var lh,Bm;function VS(){if(Bm)return lh;Bm=1;var n=HS(),t=Pm(),e=US();function r(f){return t(f)?e(f):n(f)}return lh=r,lh}var ch,zm;function KS(){if(zm)return ch;zm=1;var n=typeof Ro=="object"&&Ro&&Ro.Object===Object&&Ro;return ch=n,ch}var uh,jm;function qS(){if(jm)return uh;jm=1;var n=KS(),t=typeof self=="object"&&self&&self.Object===Object&&self,e=n||t||Function("return this")();return uh=e,uh}var hh,Hm;function dh(){if(Hm)return hh;Hm=1;var n=qS(),t=n.Symbol;return hh=t,hh}var ph,Um;function GS(){if(Um)return ph;Um=1;function n(t,e){for(var r=-1,f=t==null?0:t.length,p=Array(f);++r<f;)p[r]=e(t[r],r,t);return p}return ph=n,ph}var gh,Vm;function YS(){if(Vm)return gh;Vm=1;var n=Array.isArray;return gh=n,gh}var fh,Km;function XS(){if(Km)return fh;Km=1;var n=dh(),t=Object.prototype,e=t.hasOwnProperty,r=t.toString,f=n?n.toStringTag:void 0;function p(y){var b=e.call(y,f),h=y[f];try{y[f]=void 0;var g=!0}catch{}var s=r.call(y);return g&&(b?y[f]=h:delete y[f]),s}return fh=p,fh}var mh,qm;function QS(){if(qm)return mh;qm=1;var n=Object.prototype,t=n.toString;function e(r){return t.call(r)}return mh=e,mh}var vh,Gm;function ZS(){if(Gm)return vh;Gm=1;var n=dh(),t=XS(),e=QS(),r="[object Null]",f="[object Undefined]",p=n?n.toStringTag:void 0;function y(b){return b==null?b===void 0?f:r:p&&p in Object(b)?t(b):e(b)}return vh=y,vh}var yh,Ym;function JS(){if(Ym)return yh;Ym=1;function n(t){return t!=null&&typeof t=="object"}return yh=n,yh}var wh,Xm;function eA(){if(Xm)return wh;Xm=1;var n=ZS(),t=JS(),e="[object Symbol]";function r(f){return typeof f=="symbol"||t(f)&&n(f)==e}return wh=r,wh}var bh,Qm;function tA(){if(Qm)return bh;Qm=1;var n=dh(),t=GS(),e=YS(),r=eA(),f=n?n.prototype:void 0,p=f?f.toString:void 0;function y(b){if(typeof b=="string")return b;if(e(b))return t(b,y)+"";if(r(b))return p?p.call(b):"";var h=b+"";return h=="0"&&1/b==-1/0?"-0":h}return bh=y,bh}var xh,Zm;function Yl(){if(Zm)return xh;Zm=1;var n=tA();function t(e){return e==null?"":n(e)}return xh=t,xh}var Ch,Jm;function nA(){if(Jm)return Ch;Jm=1;var n=jS(),t=Pm(),e=VS(),r=Yl();function f(p){return function(y){y=r(y);var b=t(y)?e(y):void 0,h=b?b[0]:y.charAt(0),g=b?n(b,1).join(""):y.slice(1);return h[p]()+g}}return Ch=f,Ch}var kh,ev;function tv(){if(ev)return kh;ev=1;var n=nA(),t=n("toUpperCase");return kh=t,kh}var rA=tv();const iA=pl(rA);var Sh,nv;function oA(){if(nv)return Sh;nv=1;var n=Yl(),t=tv();function e(r){return t(n(r).toLowerCase())}return Sh=e,Sh}var Ah,rv;function sA(){if(rv)return Ah;rv=1;function n(t,e,r,f){var p=-1,y=t==null?0:t.length;for(f&&y&&(r=t[++p]);++p<y;)r=e(r,t[p],p,t);return r}return Ah=n,Ah}var _h,iv;function aA(){if(iv)return _h;iv=1;function n(t){return function(e){return t==null?void 0:t[e]}}return _h=n,_h}var Th,ov;function lA(){if(ov)return Th;ov=1;var n=aA(),t={À:"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"},e=n(t);return Th=e,Th}var $h,sv;function cA(){if(sv)return $h;sv=1;var n=lA(),t=Yl(),e=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,r="\\u0300-\\u036f",f="\\ufe20-\\ufe2f",p="\\u20d0-\\u20ff",y=r+f+p,b="["+y+"]",h=RegExp(b,"g");function g(s){return s=t(s),s&&s.replace(e,n).replace(h,"")}return $h=g,$h}var Mh,av;function uA(){if(av)return Mh;av=1;var n=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function t(e){return e.match(n)||[]}return Mh=t,Mh}var Ih,lv;function hA(){if(lv)return Ih;lv=1;var n=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function t(e){return n.test(e)}return Ih=t,Ih}var Eh,cv;function dA(){if(cv)return Eh;cv=1;var n="\\ud800-\\udfff",t="\\u0300-\\u036f",e="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",f=t+e+r,p="\\u2700-\\u27bf",y="a-z\\xdf-\\xf6\\xf8-\\xff",b="\\xac\\xb1\\xd7\\xf7",h="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",g="\\u2000-\\u206f",s=" \\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",l="A-Z\\xc0-\\xd6\\xd8-\\xde",u="\\ufe0e\\ufe0f",a=b+h+g+s,o="['’]",c="["+a+"]",d="["+f+"]",w="\\d+",x="["+p+"]",E="["+y+"]",$="[^"+n+a+w+p+y+l+"]",S="\\ud83c[\\udffb-\\udfff]",C="(?:"+d+"|"+S+")",R="[^"+n+"]",L="(?:\\ud83c[\\udde6-\\uddff]){2}",P="[\\ud800-\\udbff][\\udc00-\\udfff]",I="["+l+"]",H="\\u200d",F="(?:"+E+"|"+$+")",O="(?:"+I+"|"+$+")",_="(?:"+o+"(?:d|ll|m|re|s|t|ve))?",A="(?:"+o+"(?:D|LL|M|RE|S|T|VE))?",N=C+"?",B="["+u+"]?",U="(?:"+H+"(?:"+[R,L,P].join("|")+")"+B+N+")*",q="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Z="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",te=B+N+U,he="(?:"+[x,L,P].join("|")+")"+te,ne=RegExp([I+"?"+E+"+"+_+"(?="+[c,I,"$"].join("|")+")",O+"+"+A+"(?="+[c,I+F,"$"].join("|")+")",I+"?"+F+"+"+_,I+"+"+A,Z,q,w,he].join("|"),"g");function ae(ue){return ue.match(ne)||[]}return Eh=ae,Eh}var Rh,uv;function pA(){if(uv)return Rh;uv=1;var n=uA(),t=hA(),e=Yl(),r=dA();function f(p,y,b){return p=e(p),y=b?void 0:y,y===void 0?t(p)?r(p):n(p):p.match(y)||[]}return Rh=f,Rh}var Lh,hv;function gA(){if(hv)return Lh;hv=1;var n=sA(),t=cA(),e=pA(),r="['’]",f=RegExp(r,"g");function p(y){return function(b){return n(e(t(b).replace(f,"")),y,"")}}return Lh=p,Lh}var Oh,dv;function fA(){if(dv)return Oh;dv=1;var n=oA(),t=gA(),e=t(function(r,f,p){return f=f.toLowerCase(),r+(p?n(f):f)});return Oh=e,Oh}var mA=fA();const vA=pl(mA),yA=Object.assign({"./ArrayWidget.vue":()=>st(()=>ot.import("./ArrayWidget-CC3iwyQc-6d211eb4f93b77894040.js"),void 0),"./ArrayplotWidget.vue":()=>st(()=>ot.import("./ArrayplotWidget-CiQdsmVy-c1f832762bb8e7056d42.js"),void 0),"./BlockWidget.vue":()=>st(()=>ot.import("./BlockWidget-LLPHBYVU-2bddda3c3f4ea1e43b9c.js"),void 0),"./ButtonWidget.vue":()=>st(()=>ot.import("./ButtonWidget-Co0KMkIG-c2920cb4f5e10b0882ea.js"),void 0),"./CanvasWidget.vue":()=>st(()=>ot.import("./CanvasWidget-DPrxnI7M-e660091c4971b5870fa9.js"),void 0),"./CanvasdotWidget.vue":()=>st(()=>ot.import("./CanvasdotWidget-s1ALDR4k-6d4af482334bd5e9e9f1.js"),void 0),"./CanvasimageWidget.vue":()=>st(()=>ot.import("./CanvasimageWidget-Cs-KjdqK-1f62530ebfefa30f0301.js"),void 0),"./CanvasimagevalueWidget.vue":()=>st(()=>ot.import("./CanvasimagevalueWidget-B-wBQisl-de504a0d9c8c44f3c27e.js"),void 0),"./CanvaslabelWidget.vue":()=>st(()=>ot.import("./CanvaslabelWidget-CLBK52pP-422253956d4a601b44c6.js"),void 0),"./CanvaslabelvalueWidget.vue":()=>st(()=>ot.import("./CanvaslabelvalueWidget-CAa70y_o-a19743a8065a47f01786.js"),void 0),"./CanvaslineWidget.vue":()=>st(()=>ot.import("./CanvaslineWidget-PdwVJOQ5-c4c5f63518fef7d53a1e.js"),void 0),"./CanvaslinevalueWidget.vue":()=>st(()=>ot.import("./CanvaslinevalueWidget-CKrp1f3Z-45d689d0949bf18c678a.js"),void 0),"./CheckbuttonWidget.vue":()=>st(()=>ot.import("./CheckbuttonWidget-CTSfH4NN-f4c9735f257d7fe7b9d2.js"),void 0),"./ComboboxWidget.vue":()=>st(()=>ot.import("./ComboboxWidget-BQzv9zk5-fe97a4a2c971e1a28997.js"),void 0),"./DateWidget.vue":()=>st(()=>ot.import("./DateWidget-DKXxXT1g-2f6d4759ba53b17dcc16.js"),void 0),"./DynamicWidget.vue":()=>st(()=>ot.import("./DynamicWidget-CfMtj7H8-5a6d866c223cc04383f5.js"),void 0),"./FormatvalueWidget.vue":()=>st(()=>ot.import("./FormatvalueWidget-7Yp9jfgX-b941978415541ffe1aba.js"),void 0),"./HorizontalWidget.vue":()=>st(()=>ot.import("./HorizontalWidget-BFzi3rMl-498d4303a23127337740.js"),void 0),"./HorizontalboxWidget.vue":()=>st(()=>ot.import("./HorizontalboxWidget-DIagyace-cb2712b44de082988dbe.js"),void 0),"./HorizontallineWidget.vue":()=>st(()=>ot.import("./HorizontallineWidget-BOZNWM3a-18e681f5d3ffce1748a4.js"),void 0),"./IframeWidget.vue":()=>st(()=>ot.import("./IframeWidget-BU24bhc2-219fe1b2aad65c987cf6.js"),void 0),"./ImageviewerWidget.vue":()=>st(()=>ot.import("./ImageviewerWidget-YMA4CVsl-8f8bd27ef067c92e149b.js"),void 0),"./LabelWidget.vue":()=>st(()=>ot.import("./LabelWidget-2402SA18-f2329229331ef96f884f.js"),void 0),"./LabelledWidget.vue":()=>st(()=>ot.import("./LabelledWidget-Cbubzj_g-87f27a2500b35ca9a713.js"),void 0),"./LabelprogressbarWidget.vue":()=>st(()=>ot.import("./LabelprogressbarWidget-s8V7w6LJ-3651d167b62630ddcf3f.js"),void 0),"./LabelsparklineWidget.vue":()=>st(()=>ot.import("./LabelsparklineWidget-qbM_OXLh-c835717a9854da033dc9.js"),void 0),"./LabelvalueWidget.vue":()=>st(()=>ot.import("./LabelvalueWidget-B5Ihc2yP-fd4fddf05f74b0fcb50c.js"),void 0),"./LabelvaluedescWidget.vue":()=>st(()=>ot.import("./LabelvaluedescWidget-Cl3JHPGR-1e635c569b12306f2296.js"),void 0),"./LabelvaluelimitsbarWidget.vue":()=>st(()=>ot.import("./LabelvaluelimitsbarWidget-DnpfRyHl-94f76b6d799de882c1e4.js"),void 0),"./LabelvaluelimitscolumnWidget.vue":()=>st(()=>ot.import("./LabelvaluelimitscolumnWidget-D4L9L5oa-b0843775d8d268868ebd.js"),void 0),"./LabelvaluerangebarWidget.vue":()=>st(()=>ot.import("./LabelvaluerangebarWidget-BivnHCbE-ce75a2e627389cb96b46.js"),void 0),"./LedWidget.vue":()=>st(()=>ot.import("./LedWidget-DpdthKEd-adc4827e325c40a32462.js"),void 0),"./LimitsbarWidget.vue":()=>st(()=>ot.import("./LimitsbarWidget-CLyj3Kb--28b733af6cf0c9ff06e2.js"),void 0),"./LimitscolorWidget.vue":()=>st(()=>ot.import("./LimitscolorWidget-ChvzYoug-4dc9fd891cc95c6255cf.js"),void 0),"./LimitscolumnWidget.vue":()=>st(()=>ot.import("./LimitscolumnWidget-IOhsLFZ1-4b1e2ee1e9fdcc3929af.js"),void 0),"./LinegraphWidget.vue":()=>st(()=>ot.import("./LinegraphWidget-DZdqMqjw-3429c0022e181597abac.js"),void 0),"./MatrixbycolumnsWidget.vue":()=>st(()=>ot.import("./MatrixbycolumnsWidget-BzGYMhJ2-c1d936f99e2e1f4b3ac2.js"),void 0),"./ProgressbarWidget.vue":()=>st(()=>ot.import("./ProgressbarWidget-Bre-0zcS-4eaa094f07b5d27a63e9.js"),void 0),"./RadiobuttonWidget.vue":()=>st(()=>ot.import("./RadiobuttonWidget-CLbfhrkc-e1ec902a289f635109d9.js"),void 0),"./RadiogroupWidget.vue":()=>st(()=>ot.import("./RadiogroupWidget-DvRc70_Q-d22d145e6419d2f3bd4d.js"),void 0),"./RangebarWidget.vue":()=>st(()=>ot.import("./RangebarWidget-BvzVWcfZ-69b2294a00bb61ee8b39.js"),void 0),"./RollupWidget.vue":()=>st(()=>ot.import("./RollupWidget-KT243Ed8-27ccb88503e9f65259f3.js"),void 0),"./ScrollwindowWidget.vue":()=>st(()=>ot.import("./ScrollwindowWidget-DcpdXyrP-6df1e8103e020956a94e.js"),void 0),"./SignalWidget.vue":()=>st(()=>ot.import("./SignalWidget-CoTi0Uzy-e83c7c1a9f15300a1d32.js"),void 0),"./SpacerWidget.vue":()=>st(()=>ot.import("./SpacerWidget-CTekSgNO-907ea52a6082751581eb.js"),void 0),"./SparklineWidget.vue":()=>st(()=>ot.import("./SparklineWidget-BxwPKrIr-e421cc1d9b70e3a21b6f.js"),void 0),"./TabbookWidget.vue":()=>st(()=>ot.import("./TabbookWidget-B6Nx3Kmt-37b26d30d7dc9f22599d.js"),void 0),"./TextboxWidget.vue":()=>st(()=>ot.import("./TextboxWidget-DJgAfLFU-d1f4d63f7e04c6eb060d.js"),void 0),"./TextfieldWidget.vue":()=>st(()=>ot.import("./TextfieldWidget-Bc2xGs8v-2f364f135cd5f4c86d4e.js"),void 0),"./TimeWidget.vue":()=>st(()=>ot.import("./TimeWidget-DO6ZuMLO-26cb035fd43d39e3bfac.js"),void 0),"./TitleWidget.vue":()=>st(()=>ot.import("./TitleWidget-CkZhMme1-15a679fbc730291d2021.js"),void 0),"./ValueWidget.vue":()=>st(()=>ot.import("./ValueWidget-tieHz2H1-6fedd0ac12c4a01ff62a.js"),void 0),"./ValuelimitsbarWidget.vue":()=>st(()=>ot.import("./ValuelimitsbarWidget-oFqxZu0t-6ca20162697e76ebc287.js"),void 0),"./ValuelimitscolumnWidget.vue":()=>st(()=>ot.import("./ValuelimitscolumnWidget-DYBv8POg-d008fae8e1fd64e4ab8b.js"),void 0),"./ValuerangebarWidget.vue":()=>st(()=>ot.import("./ValuerangebarWidget-m3gFyG4v-d0db45ee5263f3169de0.js"),void 0),"./VerticalWidget.vue":()=>st(()=>ot.import("./VerticalWidget-CcdRZmQK-ad26da865104b86f7801.js"),void 0),"./VerticalboxWidget.vue":()=>st(()=>ot.import("./VerticalboxWidget-DfsCYhrX-23144363ec95d5766894.js"),void 0)}),wA=Object.entries(yA).reduce((n,[t,e])=>{t=t.split("/").pop();const r=iA(vA(t.replace(/\.\w+$/,"")));return{...n,[r]:np(e)}},{}),p2=tr("U",{components:wA});function pv(n,t){return function(){return n.apply(t,arguments)}}const{toString:bA}=Object.prototype,{getPrototypeOf:Nh}=Object,{iterator:Xl,toStringTag:gv}=Symbol,Ql=(n=>t=>{const e=bA.call(t);return n[e]||(n[e]=e.slice(8,-1).toLowerCase())})(Object.create(null)),Ni=n=>(n=n.toLowerCase(),t=>Ql(t)===n),Zl=n=>t=>typeof t===n,{isArray:ea}=Array,Pa=Zl("undefined");function xA(n){return n!==null&&!Pa(n)&&n.constructor!==null&&!Pa(n.constructor)&&Ur(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const fv=Ni("ArrayBuffer");function CA(n){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(n):t=n&&n.buffer&&fv(n.buffer),t}const kA=Zl("string"),Ur=Zl("function"),mv=Zl("number"),Jl=n=>n!==null&&typeof n=="object",SA=n=>n===!0||n===!1,ec=n=>{if(Ql(n)!=="object")return!1;const t=Nh(n);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(gv in n)&&!(Xl in n)},AA=Ni("Date"),_A=Ni("File"),TA=Ni("Blob"),$A=Ni("FileList"),MA=n=>Jl(n)&&Ur(n.pipe),IA=n=>{let t;return n&&(typeof FormData=="function"&&n instanceof FormData||Ur(n.append)&&((t=Ql(n))==="formdata"||t==="object"&&Ur(n.toString)&&n.toString()==="[object FormData]"))},EA=Ni("URLSearchParams"),[RA,LA,OA,NA]=["ReadableStream","Request","Response","Headers"].map(Ni),DA=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Fa(n,t,{allOwnKeys:e=!1}={}){if(n===null||typeof n>"u")return;let r,f;if(typeof n!="object"&&(n=[n]),ea(n))for(r=0,f=n.length;r<f;r++)t.call(null,n[r],r,n);else{const p=e?Object.getOwnPropertyNames(n):Object.keys(n),y=p.length;let b;for(r=0;r<y;r++)b=p[r],t.call(null,n[b],b,n)}}function vv(n,t){t=t.toLowerCase();const e=Object.keys(n);let r=e.length,f;for(;r-- >0;)if(f=e[r],t===f.toLowerCase())return f;return null}const fs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,yv=n=>!Pa(n)&&n!==fs;function Dh(){const{caseless:n}=yv(this)&&this||{},t={},e=(r,f)=>{const p=n&&vv(t,f)||f;ec(t[p])&&ec(r)?t[p]=Dh(t[p],r):ec(r)?t[p]=Dh({},r):ea(r)?t[p]=r.slice():t[p]=r};for(let r=0,f=arguments.length;r<f;r++)arguments[r]&&Fa(arguments[r],e);return t}const PA=(n,t,e,{allOwnKeys:r}={})=>(Fa(t,(f,p)=>{e&&Ur(f)?n[p]=pv(f,e):n[p]=f},{allOwnKeys:r}),n),FA=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),WA=(n,t,e,r)=>{n.prototype=Object.create(t.prototype,r),n.prototype.constructor=n,Object.defineProperty(n,"super",{value:t.prototype}),e&&Object.assign(n.prototype,e)},BA=(n,t,e,r)=>{let f,p,y;const b={};if(t=t||{},n==null)return t;do{for(f=Object.getOwnPropertyNames(n),p=f.length;p-- >0;)y=f[p],(!r||r(y,n,t))&&!b[y]&&(t[y]=n[y],b[y]=!0);n=e!==!1&&Nh(n)}while(n&&(!e||e(n,t))&&n!==Object.prototype);return t},zA=(n,t,e)=>{n=String(n),(e===void 0||e>n.length)&&(e=n.length),e-=t.length;const r=n.indexOf(t,e);return r!==-1&&r===e},jA=n=>{if(!n)return null;if(ea(n))return n;let t=n.length;if(!mv(t))return null;const e=new Array(t);for(;t-- >0;)e[t]=n[t];return e},HA=(n=>t=>n&&t instanceof n)(typeof Uint8Array<"u"&&Nh(Uint8Array)),UA=(n,t)=>{const e=(n&&n[Xl]).call(n);let r;for(;(r=e.next())&&!r.done;){const f=r.value;t.call(n,f[0],f[1])}},VA=(n,t)=>{let e;const r=[];for(;(e=n.exec(t))!==null;)r.push(e);return r},KA=Ni("HTMLFormElement"),qA=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,e,r){return e.toUpperCase()+r}),wv=(({hasOwnProperty:n})=>(t,e)=>n.call(t,e))(Object.prototype),GA=Ni("RegExp"),bv=(n,t)=>{const e=Object.getOwnPropertyDescriptors(n),r={};Fa(e,(f,p)=>{let y;(y=t(f,p,n))!==!1&&(r[p]=y||f)}),Object.defineProperties(n,r)},YA=n=>{bv(n,(t,e)=>{if(Ur(n)&&["arguments","caller","callee"].indexOf(e)!==-1)return!1;const r=n[e];if(Ur(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+e+"'")})}})},XA=(n,t)=>{const e={},r=f=>{f.forEach(p=>{e[p]=!0})};return ea(n)?r(n):r(String(n).split(t)),e},QA=()=>{},ZA=(n,t)=>n!=null&&Number.isFinite(n=+n)?n:t;function JA(n){return!!(n&&Ur(n.append)&&n[gv]==="FormData"&&n[Xl])}const e_=n=>{const t=new Array(10),e=(r,f)=>{if(Jl(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[f]=r;const p=ea(r)?[]:{};return Fa(r,(y,b)=>{const h=e(y,f+1);!Pa(h)&&(p[b]=h)}),t[f]=void 0,p}}return r};return e(n,0)},t_=Ni("AsyncFunction"),n_=n=>n&&(Jl(n)||Ur(n))&&Ur(n.then)&&Ur(n.catch),xv=((n,t)=>n?setImmediate:t?((e,r)=>(fs.addEventListener("message",({source:f,data:p})=>{f===fs&&p===e&&r.length&&r.shift()()},!1),f=>{r.push(f),fs.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate=="function",Ur(fs.postMessage)),r_=typeof queueMicrotask<"u"?queueMicrotask.bind(fs):typeof process<"u"&&process.nextTick||xv,i_=n=>n!=null&&Ur(n[Xl]),_e={isArray:ea,isArrayBuffer:fv,isBuffer:xA,isFormData:IA,isArrayBufferView:CA,isString:kA,isNumber:mv,isBoolean:SA,isObject:Jl,isPlainObject:ec,isReadableStream:RA,isRequest:LA,isResponse:OA,isHeaders:NA,isUndefined:Pa,isDate:AA,isFile:_A,isBlob:TA,isRegExp:GA,isFunction:Ur,isStream:MA,isURLSearchParams:EA,isTypedArray:HA,isFileList:$A,forEach:Fa,merge:Dh,extend:PA,trim:DA,stripBOM:FA,inherits:WA,toFlatObject:BA,kindOf:Ql,kindOfTest:Ni,endsWith:zA,toArray:jA,forEachEntry:UA,matchAll:VA,isHTMLForm:KA,hasOwnProperty:wv,hasOwnProp:wv,reduceDescriptors:bv,freezeMethods:YA,toObjectSet:XA,toCamelCase:qA,noop:QA,toFiniteNumber:ZA,findKey:vv,global:fs,isContextDefined:yv,isSpecCompliantForm:JA,toJSONObject:e_,isAsyncFn:t_,isThenable:n_,setImmediate:xv,asap:r_,isIterable:i_};function Et(n,t,e,r,f){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=n,this.name="AxiosError",t&&(this.code=t),e&&(this.config=e),r&&(this.request=r),f&&(this.response=f,this.status=f.status?f.status:null)}_e.inherits(Et,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:_e.toJSONObject(this.config),code:this.code,status:this.status}}});const Cv=Et.prototype,kv={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(n=>{kv[n]={value:n}}),Object.defineProperties(Et,kv),Object.defineProperty(Cv,"isAxiosError",{value:!0}),Et.from=(n,t,e,r,f,p)=>{const y=Object.create(Cv);return _e.toFlatObject(n,y,function(b){return b!==Error.prototype},b=>b!=="isAxiosError"),Et.call(y,n.message,t,e,r,f),y.cause=n,y.name=n.name,p&&Object.assign(y,p),y};const o_=null;function Ph(n){return _e.isPlainObject(n)||_e.isArray(n)}function Sv(n){return _e.endsWith(n,"[]")?n.slice(0,-2):n}function Av(n,t,e){return n?n.concat(t).map(function(r,f){return r=Sv(r),!e&&f?"["+r+"]":r}).join(e?".":""):t}function s_(n){return _e.isArray(n)&&!n.some(Ph)}const a_=_e.toFlatObject(_e,{},null,function(n){return/^is[A-Z]/.test(n)});function tc(n,t,e){if(!_e.isObject(n))throw new TypeError("target must be an object");t=t||new FormData,e=_e.toFlatObject(e,{metaTokens:!0,dots:!1,indexes:!1},!1,function(a,o){return!_e.isUndefined(o[a])});const r=e.metaTokens,f=e.visitor||g,p=e.dots,y=e.indexes,b=(e.Blob||typeof Blob<"u"&&Blob)&&_e.isSpecCompliantForm(t);if(!_e.isFunction(f))throw new TypeError("visitor must be a function");function h(a){if(a===null)return"";if(_e.isDate(a))return a.toISOString();if(!b&&_e.isBlob(a))throw new Et("Blob is not supported. Use a Buffer instead.");return _e.isArrayBuffer(a)||_e.isTypedArray(a)?b&&typeof Blob=="function"?new Blob([a]):Buffer.from(a):a}function g(a,o,c){let d=a;if(a&&!c&&typeof a=="object"){if(_e.endsWith(o,"{}"))o=r?o:o.slice(0,-2),a=JSON.stringify(a);else if(_e.isArray(a)&&s_(a)||(_e.isFileList(a)||_e.endsWith(o,"[]"))&&(d=_e.toArray(a)))return o=Sv(o),d.forEach(function(w,x){!(_e.isUndefined(w)||w===null)&&t.append(y===!0?Av([o],x,p):y===null?o:o+"[]",h(w))}),!1}return Ph(a)?!0:(t.append(Av(c,o,p),h(a)),!1)}const s=[],l=Object.assign(a_,{defaultVisitor:g,convertValue:h,isVisitable:Ph});function u(a,o){if(!_e.isUndefined(a)){if(s.indexOf(a)!==-1)throw Error("Circular reference detected in "+o.join("."));s.push(a),_e.forEach(a,function(c,d){(!(_e.isUndefined(c)||c===null)&&f.call(t,c,_e.isString(d)?d.trim():d,o,l))===!0&&u(c,o?o.concat(d):[d])}),s.pop()}}if(!_e.isObject(n))throw new TypeError("data must be an object");return u(n),t}function _v(n){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function Fh(n,t){this._pairs=[],n&&tc(n,this,t)}const Tv=Fh.prototype;Tv.append=function(n,t){this._pairs.push([n,t])},Tv.toString=function(n){const t=n?function(e){return n.call(this,e,_v)}:_v;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};function l_(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function $v(n,t,e){if(!t)return n;const r=e&&e.encode||l_;_e.isFunction(e)&&(e={serialize:e});const f=e&&e.serialize;let p;if(f?p=f(t,e):p=_e.isURLSearchParams(t)?t.toString():new Fh(t,e).toString(r),p){const y=n.indexOf("#");y!==-1&&(n=n.slice(0,y)),n+=(n.indexOf("?")===-1?"?":"&")+p}return n}let Mv=class{constructor(){this.handlers=[]}use(t,e,r){return this.handlers.push({fulfilled:t,rejected:e,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){_e.forEach(this.handlers,function(e){e!==null&&t(e)})}};const Iv={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},c_=typeof URLSearchParams<"u"?URLSearchParams:Fh,u_=typeof FormData<"u"?FormData:null,h_=typeof Blob<"u"?Blob:null,d_={isBrowser:!0,classes:{URLSearchParams:c_,FormData:u_,Blob:h_},protocols:["http","https","file","blob","url","data"]},Wh=typeof window<"u"&&typeof document<"u",Bh=typeof navigator=="object"&&navigator||void 0,p_=Wh&&(!Bh||["ReactNative","NativeScript","NS"].indexOf(Bh.product)<0),g_=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",f_=Wh&&window.location.href||"http://localhost",m_=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Wh,hasStandardBrowserEnv:p_,hasStandardBrowserWebWorkerEnv:g_,navigator:Bh,origin:f_},Symbol.toStringTag,{value:"Module"})),Cr={...m_,...d_};function v_(n,t){return tc(n,new Cr.classes.URLSearchParams,Object.assign({visitor:function(e,r,f,p){return Cr.isNode&&_e.isBuffer(e)?(this.append(r,e.toString("base64")),!1):p.defaultVisitor.apply(this,arguments)}},t))}function y_(n){return _e.matchAll(/\w+|\[(\w*)]/g,n).map(t=>t[0]==="[]"?"":t[1]||t[0])}function w_(n){const t={},e=Object.keys(n);let r;const f=e.length;let p;for(r=0;r<f;r++)p=e[r],t[p]=n[p];return t}function Ev(n){function t(e,r,f,p){let y=e[p++];if(y==="__proto__")return!0;const b=Number.isFinite(+y),h=p>=e.length;return y=!y&&_e.isArray(f)?f.length:y,h?(_e.hasOwnProp(f,y)?f[y]=[f[y],r]:f[y]=r,!b):((!f[y]||!_e.isObject(f[y]))&&(f[y]=[]),t(e,r,f[y],p)&&_e.isArray(f[y])&&(f[y]=w_(f[y])),!b)}if(_e.isFormData(n)&&_e.isFunction(n.entries)){const e={};return _e.forEachEntry(n,(r,f)=>{t(y_(r),f,e,0)}),e}return null}function b_(n,t,e){if(_e.isString(n))try{return(t||JSON.parse)(n),_e.trim(n)}catch(r){if(r.name!=="SyntaxError")throw r}return(e||JSON.stringify)(n)}const Wa={transitional:Iv,adapter:["xhr","http","fetch"],transformRequest:[function(n,t){const e=t.getContentType()||"",r=e.indexOf("application/json")>-1,f=_e.isObject(n);if(f&&_e.isHTMLForm(n)&&(n=new FormData(n)),_e.isFormData(n))return r?JSON.stringify(Ev(n)):n;if(_e.isArrayBuffer(n)||_e.isBuffer(n)||_e.isStream(n)||_e.isFile(n)||_e.isBlob(n)||_e.isReadableStream(n))return n;if(_e.isArrayBufferView(n))return n.buffer;if(_e.isURLSearchParams(n))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),n.toString();let p;if(f){if(e.indexOf("application/x-www-form-urlencoded")>-1)return v_(n,this.formSerializer).toString();if((p=_e.isFileList(n))||e.indexOf("multipart/form-data")>-1){const y=this.env&&this.env.FormData;return tc(p?{"files[]":n}:n,y&&new y,this.formSerializer)}}return f||r?(t.setContentType("application/json",!1),b_(n)):n}],transformResponse:[function(n){const t=this.transitional||Wa.transitional,e=t&&t.forcedJSONParsing,r=this.responseType==="json";if(_e.isResponse(n)||_e.isReadableStream(n))return n;if(n&&_e.isString(n)&&(e&&!this.responseType||r)){const f=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(n)}catch(p){if(f)throw p.name==="SyntaxError"?Et.from(p,Et.ERR_BAD_RESPONSE,this,null,this.response):p}}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Cr.classes.FormData,Blob:Cr.classes.Blob},validateStatus:function(n){return n>=200&&n<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};_e.forEach(["delete","get","head","post","put","patch"],n=>{Wa.headers[n]={}});const x_=_e.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),C_=n=>{const t={};let e,r,f;return n&&n.split(`
|
1490
1490
|
`).forEach(function(p){f=p.indexOf(":"),e=p.substring(0,f).trim().toLowerCase(),r=p.substring(f+1).trim(),!(!e||t[e]&&x_[e])&&(e==="set-cookie"?t[e]?t[e].push(r):t[e]=[r]:t[e]=t[e]?t[e]+", "+r:r)}),t},Rv=Symbol("internals");function Ba(n){return n&&String(n).trim().toLowerCase()}function nc(n){return n===!1||n==null?n:_e.isArray(n)?n.map(nc):String(n)}function k_(n){const t=Object.create(null),e=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=e.exec(n);)t[r[1]]=r[2];return t}const S_=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function zh(n,t,e,r,f){if(_e.isFunction(r))return r.call(this,t,e);if(f&&(t=e),!!_e.isString(t)){if(_e.isString(r))return t.indexOf(r)!==-1;if(_e.isRegExp(r))return r.test(t)}}function A_(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,e,r)=>e.toUpperCase()+r)}function __(n,t){const e=_e.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(n,r+e,{value:function(f,p,y){return this[r].call(this,t,f,p,y)},configurable:!0})})}let Vr=class{constructor(t){t&&this.set(t)}set(t,e,r){const f=this;function p(b,h,g){const s=Ba(h);if(!s)throw new Error("header name must be a non-empty string");const l=_e.findKey(f,s);(!l||f[l]===void 0||g===!0||g===void 0&&f[l]!==!1)&&(f[l||h]=nc(b))}const y=(b,h)=>_e.forEach(b,(g,s)=>p(g,s,h));if(_e.isPlainObject(t)||t instanceof this.constructor)y(t,e);else if(_e.isString(t)&&(t=t.trim())&&!S_(t))y(C_(t),e);else if(_e.isObject(t)&&_e.isIterable(t)){let b={},h,g;for(const s of t){if(!_e.isArray(s))throw TypeError("Object iterator must return a key-value pair");b[g=s[0]]=(h=b[g])?_e.isArray(h)?[...h,s[1]]:[h,s[1]]:s[1]}y(b,e)}else t!=null&&p(e,t,r);return this}get(t,e){if(t=Ba(t),t){const r=_e.findKey(this,t);if(r){const f=this[r];if(!e)return f;if(e===!0)return k_(f);if(_e.isFunction(e))return e.call(this,f,r);if(_e.isRegExp(e))return e.exec(f);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=Ba(t),t){const r=_e.findKey(this,t);return!!(r&&this[r]!==void 0&&(!e||zh(this,this[r],r,e)))}return!1}delete(t,e){const r=this;let f=!1;function p(y){if(y=Ba(y),y){const b=_e.findKey(r,y);b&&(!e||zh(r,r[b],b,e))&&(delete r[b],f=!0)}}return _e.isArray(t)?t.forEach(p):p(t),f}clear(t){const e=Object.keys(this);let r=e.length,f=!1;for(;r--;){const p=e[r];(!t||zh(this,this[p],p,t,!0))&&(delete this[p],f=!0)}return f}normalize(t){const e=this,r={};return _e.forEach(this,(f,p)=>{const y=_e.findKey(r,p);if(y){e[y]=nc(f),delete e[p];return}const b=t?A_(p):String(p).trim();b!==p&&delete e[p],e[b]=nc(f),r[b]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return _e.forEach(this,(r,f)=>{r!=null&&r!==!1&&(e[f]=t&&_e.isArray(r)?r.join(", "):r)}),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,e])=>t+": "+e).join(`
|
1491
1491
|
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const r=new this(t);return e.forEach(f=>r.set(f)),r}static accessor(t){const e=(this[Rv]=this[Rv]={accessors:{}}).accessors,r=this.prototype;function f(p){const y=Ba(p);e[y]||(__(r,p),e[y]=!0)}return _e.isArray(t)?t.forEach(f):f(t),this}};Vr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),_e.reduceDescriptors(Vr.prototype,({value:n},t)=>{let e=t[0].toUpperCase()+t.slice(1);return{get:()=>n,set(r){this[e]=r}}}),_e.freezeMethods(Vr);function jh(n,t){const e=this||Wa,r=t||e,f=Vr.from(r.headers);let p=r.data;return _e.forEach(n,function(y){p=y.call(e,p,f.normalize(),t?t.status:void 0)}),f.normalize(),p}function Lv(n){return!!(n&&n.__CANCEL__)}function ta(n,t,e){Et.call(this,n??"canceled",Et.ERR_CANCELED,t,e),this.name="CanceledError"}_e.inherits(ta,Et,{__CANCEL__:!0});function Ov(n,t,e){const r=e.config.validateStatus;!e.status||!r||r(e.status)?n(e):t(new Et("Request failed with status code "+e.status,[Et.ERR_BAD_REQUEST,Et.ERR_BAD_RESPONSE][Math.floor(e.status/100)-4],e.config,e.request,e))}function T_(n){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return t&&t[1]||""}function $_(n,t){n=n||10;const e=new Array(n),r=new Array(n);let f=0,p=0,y;return t=t!==void 0?t:1e3,function(b){const h=Date.now(),g=r[p];y||(y=h),e[f]=b,r[f]=h;let s=p,l=0;for(;s!==f;)l+=e[s++],s=s%n;if(f=(f+1)%n,f===p&&(p=(p+1)%n),h-y<t)return;const u=g&&h-g;return u?Math.round(l*1e3/u):void 0}}function M_(n,t){let e=0,r=1e3/t,f,p;const y=(b,h=Date.now())=>{e=h,f=null,p&&(clearTimeout(p),p=null),n.apply(null,b)};return[(...b)=>{const h=Date.now(),g=h-e;g>=r?y(b,h):(f=b,p||(p=setTimeout(()=>{p=null,y(f)},r-g)))},()=>f&&y(f)]}const rc=(n,t,e=3)=>{let r=0;const f=$_(50,250);return M_(p=>{const y=p.loaded,b=p.lengthComputable?p.total:void 0,h=y-r,g=f(h),s=y<=b;r=y;const l={loaded:y,total:b,progress:b?y/b:void 0,bytes:h,rate:g||void 0,estimated:g&&b&&s?(b-y)/g:void 0,event:p,lengthComputable:b!=null,[t?"download":"upload"]:!0};n(l)},e)},Nv=(n,t)=>{const e=n!=null;return[r=>t[0]({lengthComputable:e,total:n,loaded:r}),t[1]]},Dv=n=>(...t)=>_e.asap(()=>n(...t)),I_=Cr.hasStandardBrowserEnv?((n,t)=>e=>(e=new URL(e,Cr.origin),n.protocol===e.protocol&&n.host===e.host&&(t||n.port===e.port)))(new URL(Cr.origin),Cr.navigator&&/(msie|trident)/i.test(Cr.navigator.userAgent)):()=>!0,E_=Cr.hasStandardBrowserEnv?{write(n,t,e,r,f,p){const y=[n+"="+encodeURIComponent(t)];_e.isNumber(e)&&y.push("expires="+new Date(e).toGMTString()),_e.isString(r)&&y.push("path="+r),_e.isString(f)&&y.push("domain="+f),p===!0&&y.push("secure"),document.cookie=y.join("; ")},read(n){const t=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(n){this.write(n,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function R_(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function L_(n,t){return t?n.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):n}function Pv(n,t,e){let r=!R_(t);return n&&(r||e==!1)?L_(n,t):t}const Fv=n=>n instanceof Vr?{...n}:n;function ms(n,t){t=t||{};const e={};function r(g,s,l,u){return _e.isPlainObject(g)&&_e.isPlainObject(s)?_e.merge.call({caseless:u},g,s):_e.isPlainObject(s)?_e.merge({},s):_e.isArray(s)?s.slice():s}function f(g,s,l,u){if(_e.isUndefined(s)){if(!_e.isUndefined(g))return r(void 0,g,l,u)}else return r(g,s,l,u)}function p(g,s){if(!_e.isUndefined(s))return r(void 0,s)}function y(g,s){if(_e.isUndefined(s)){if(!_e.isUndefined(g))return r(void 0,g)}else return r(void 0,s)}function b(g,s,l){if(l in t)return r(g,s);if(l in n)return r(void 0,g)}const h={url:p,method:p,data:p,baseURL:y,transformRequest:y,transformResponse:y,paramsSerializer:y,timeout:y,timeoutMessage:y,withCredentials:y,withXSRFToken:y,adapter:y,responseType:y,xsrfCookieName:y,xsrfHeaderName:y,onUploadProgress:y,onDownloadProgress:y,decompress:y,maxContentLength:y,maxBodyLength:y,beforeRedirect:y,transport:y,httpAgent:y,httpsAgent:y,cancelToken:y,socketPath:y,responseEncoding:y,validateStatus:b,headers:(g,s,l)=>f(Fv(g),Fv(s),l,!0)};return _e.forEach(Object.keys(Object.assign({},n,t)),function(g){const s=h[g]||f,l=s(n[g],t[g],g);_e.isUndefined(l)&&s!==b||(e[g]=l)}),e}const Wv=n=>{const t=ms({},n);let{data:e,withXSRFToken:r,xsrfHeaderName:f,xsrfCookieName:p,headers:y,auth:b}=t;t.headers=y=Vr.from(y),t.url=$v(Pv(t.baseURL,t.url,t.allowAbsoluteUrls),n.params,n.paramsSerializer),b&&y.set("Authorization","Basic "+btoa((b.username||"")+":"+(b.password?unescape(encodeURIComponent(b.password)):"")));let h;if(_e.isFormData(e)){if(Cr.hasStandardBrowserEnv||Cr.hasStandardBrowserWebWorkerEnv)y.setContentType(void 0);else if((h=y.getContentType())!==!1){const[g,...s]=h?h.split(";").map(l=>l.trim()).filter(Boolean):[];y.setContentType([g||"multipart/form-data",...s].join("; "))}}if(Cr.hasStandardBrowserEnv&&(r&&_e.isFunction(r)&&(r=r(t)),r||r!==!1&&I_(t.url))){const g=f&&p&&E_.read(p);g&&y.set(f,g)}return t},O_=typeof XMLHttpRequest<"u",N_=O_&&function(n){return new Promise(function(t,e){const r=Wv(n);let f=r.data;const p=Vr.from(r.headers).normalize();let{responseType:y,onUploadProgress:b,onDownloadProgress:h}=r,g,s,l,u,a;function o(){u&&u(),a&&a(),r.cancelToken&&r.cancelToken.unsubscribe(g),r.signal&&r.signal.removeEventListener("abort",g)}let c=new XMLHttpRequest;c.open(r.method.toUpperCase(),r.url,!0),c.timeout=r.timeout;function d(){if(!c)return;const x=Vr.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),E={data:!y||y==="text"||y==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:x,config:n,request:c};Ov(function($){t($),o()},function($){e($),o()},E),c=null}"onloadend"in c?c.onloadend=d:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(d)},c.onabort=function(){c&&(e(new Et("Request aborted",Et.ECONNABORTED,n,c)),c=null)},c.onerror=function(){e(new Et("Network Error",Et.ERR_NETWORK,n,c)),c=null},c.ontimeout=function(){let x=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const E=r.transitional||Iv;r.timeoutErrorMessage&&(x=r.timeoutErrorMessage),e(new Et(x,E.clarifyTimeoutError?Et.ETIMEDOUT:Et.ECONNABORTED,n,c)),c=null},f===void 0&&p.setContentType(null),"setRequestHeader"in c&&_e.forEach(p.toJSON(),function(x,E){c.setRequestHeader(E,x)}),_e.isUndefined(r.withCredentials)||(c.withCredentials=!!r.withCredentials),y&&y!=="json"&&(c.responseType=r.responseType),h&&([l,a]=rc(h,!0),c.addEventListener("progress",l)),b&&c.upload&&([s,u]=rc(b),c.upload.addEventListener("progress",s),c.upload.addEventListener("loadend",u)),(r.cancelToken||r.signal)&&(g=x=>{c&&(e(!x||x.type?new ta(null,n,c):x),c.abort(),c=null)},r.cancelToken&&r.cancelToken.subscribe(g),r.signal&&(r.signal.aborted?g():r.signal.addEventListener("abort",g)));const w=T_(r.url);if(w&&Cr.protocols.indexOf(w)===-1){e(new Et("Unsupported protocol "+w+":",Et.ERR_BAD_REQUEST,n));return}c.send(f||null)})},D_=(n,t)=>{const{length:e}=n=n?n.filter(Boolean):[];if(t||e){let r=new AbortController,f;const p=function(g){if(!f){f=!0,b();const s=g instanceof Error?g:this.reason;r.abort(s instanceof Et?s:new ta(s instanceof Error?s.message:s))}};let y=t&&setTimeout(()=>{y=null,p(new Et(`timeout ${t} of ms exceeded`,Et.ETIMEDOUT))},t);const b=()=>{n&&(y&&clearTimeout(y),y=null,n.forEach(g=>{g.unsubscribe?g.unsubscribe(p):g.removeEventListener("abort",p)}),n=null)};n.forEach(g=>g.addEventListener("abort",p));const{signal:h}=r;return h.unsubscribe=()=>_e.asap(b),h}},P_=function*(n,t){let e=n.byteLength;if(e<t){yield n;return}let r=0,f;for(;r<e;)f=r+t,yield n.slice(r,f),r=f},F_=async function*(n,t){for await(const e of W_(n))yield*P_(e,t)},W_=async function*(n){if(n[Symbol.asyncIterator]){yield*n;return}const t=n.getReader();try{for(;;){const{done:e,value:r}=await t.read();if(e)break;yield r}}finally{await t.cancel()}},Bv=(n,t,e,r)=>{const f=F_(n,t);let p=0,y,b=h=>{y||(y=!0,r&&r(h))};return new ReadableStream({async pull(h){try{const{done:g,value:s}=await f.next();if(g){b(),h.close();return}let l=s.byteLength;if(e){let u=p+=l;e(u)}h.enqueue(new Uint8Array(s))}catch(g){throw b(g),g}},cancel(h){return b(h),f.return()}},{highWaterMark:2})},ic=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",zv=ic&&typeof ReadableStream=="function",B_=ic&&(typeof TextEncoder=="function"?(n=>t=>n.encode(t))(new TextEncoder):async n=>new Uint8Array(await new Response(n).arrayBuffer())),jv=(n,...t)=>{try{return!!n(...t)}catch{return!1}},z_=zv&&jv(()=>{let n=!1;const t=new Request(Cr.origin,{body:new ReadableStream,method:"POST",get duplex(){return n=!0,"half"}}).headers.has("Content-Type");return n&&!t}),Hv=64*1024,Hh=zv&&jv(()=>_e.isReadableStream(new Response("").body)),oc={stream:Hh&&(n=>n.body)};ic&&(n=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!oc[t]&&(oc[t]=_e.isFunction(n[t])?e=>e[t]():(e,r)=>{throw new Et(`Response type '${t}' is not supported`,Et.ERR_NOT_SUPPORT,r)})})})(new Response);const j_=async n=>{if(n==null)return 0;if(_e.isBlob(n))return n.size;if(_e.isSpecCompliantForm(n))return(await new Request(Cr.origin,{method:"POST",body:n}).arrayBuffer()).byteLength;if(_e.isArrayBufferView(n)||_e.isArrayBuffer(n))return n.byteLength;if(_e.isURLSearchParams(n)&&(n=n+""),_e.isString(n))return(await B_(n)).byteLength},H_=async(n,t)=>_e.toFiniteNumber(n.getContentLength())??j_(t),U_=ic&&(async n=>{let{url:t,method:e,data:r,signal:f,cancelToken:p,timeout:y,onDownloadProgress:b,onUploadProgress:h,responseType:g,headers:s,withCredentials:l="same-origin",fetchOptions:u}=Wv(n);g=g?(g+"").toLowerCase():"text";let a=D_([f,p&&p.toAbortSignal()],y),o;const c=a&&a.unsubscribe&&(()=>{a.unsubscribe()});let d;try{if(h&&z_&&e!=="get"&&e!=="head"&&(d=await H_(s,r))!==0){let S=new Request(t,{method:"POST",body:r,duplex:"half"}),C;if(_e.isFormData(r)&&(C=S.headers.get("content-type"))&&s.setContentType(C),S.body){const[R,L]=Nv(d,rc(Dv(h)));r=Bv(S.body,Hv,R,L)}}_e.isString(l)||(l=l?"include":"omit");const w="credentials"in Request.prototype;o=new Request(t,{...u,signal:a,method:e.toUpperCase(),headers:s.normalize().toJSON(),body:r,duplex:"half",credentials:w?l:void 0});let x=await fetch(o);const E=Hh&&(g==="stream"||g==="response");if(Hh&&(b||E&&c)){const S={};["status","statusText","headers"].forEach(P=>{S[P]=x[P]});const C=_e.toFiniteNumber(x.headers.get("content-length")),[R,L]=b&&Nv(C,rc(Dv(b),!0))||[];x=new Response(Bv(x.body,Hv,R,()=>{L&&L(),c&&c()}),S)}g=g||"text";let $=await oc[_e.findKey(oc,g)||"text"](x,n);return!E&&c&&c(),await new Promise((S,C)=>{Ov(S,C,{data:$,headers:Vr.from(x.headers),status:x.status,statusText:x.statusText,config:n,request:o})})}catch(w){throw c&&c(),w&&w.name==="TypeError"&&/Load failed|fetch/i.test(w.message)?Object.assign(new Et("Network Error",Et.ERR_NETWORK,n,o),{cause:w.cause||w}):Et.from(w,w&&w.code,n,o)}}),Uh={http:o_,xhr:N_,fetch:U_};_e.forEach(Uh,(n,t)=>{if(n){try{Object.defineProperty(n,"name",{value:t})}catch{}Object.defineProperty(n,"adapterName",{value:t})}});const Uv=n=>`- ${n}`,V_=n=>_e.isFunction(n)||n===null||n===!1,Vv={getAdapter:n=>{n=_e.isArray(n)?n:[n];const{length:t}=n;let e,r;const f={};for(let p=0;p<t;p++){e=n[p];let y;if(r=e,!V_(e)&&(r=Uh[(y=String(e)).toLowerCase()],r===void 0))throw new Et(`Unknown adapter '${y}'`);if(r)break;f[y||"#"+p]=r}if(!r){const p=Object.entries(f).map(([b,h])=>`adapter ${b} `+(h===!1?"is not supported by the environment":"is not available in the build"));let y=t?p.length>1?`since :
|
1492
1492
|
`+p.map(Uv).join(`
|
1493
1493
|
`):" "+Uv(p[0]):"as no adapter specified";throw new Et("There is no suitable adapter to dispatch the request "+y,"ERR_NOT_SUPPORT")}return r},adapters:Uh};function Vh(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new ta(null,n)}function Kv(n){return Vh(n),n.headers=Vr.from(n.headers),n.data=jh.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),Vv.getAdapter(n.adapter||Wa.adapter)(n).then(function(t){return Vh(n),t.data=jh.call(n,n.transformResponse,t),t.headers=Vr.from(t.headers),t},function(t){return Lv(t)||(Vh(n),t&&t.response&&(t.response.data=jh.call(n,n.transformResponse,t.response),t.response.headers=Vr.from(t.response.headers))),Promise.reject(t)})}const qv="1.9.0",sc={};["object","boolean","number","function","string","symbol"].forEach((n,t)=>{sc[n]=function(e){return typeof e===n||"a"+(t<1?"n ":" ")+n}});const Gv={};sc.transitional=function(n,t,e){function r(f,p){return"[Axios v"+qv+"] Transitional option '"+f+"'"+p+(e?". "+e:"")}return(f,p,y)=>{if(n===!1)throw new Et(r(p," has been removed"+(t?" in "+t:"")),Et.ERR_DEPRECATED);return t&&!Gv[p]&&(Gv[p]=!0,console.warn(r(p," has been deprecated since v"+t+" and will be removed in the near future"))),n?n(f,p,y):!0}},sc.spelling=function(n){return(t,e)=>(console.warn(`${e} is likely a misspelling of ${n}`),!0)};function K_(n,t,e){if(typeof n!="object")throw new Et("options must be an object",Et.ERR_BAD_OPTION_VALUE);const r=Object.keys(n);let f=r.length;for(;f-- >0;){const p=r[f],y=t[p];if(y){const b=n[p],h=b===void 0||y(b,p,n);if(h!==!0)throw new Et("option "+p+" must be "+h,Et.ERR_BAD_OPTION_VALUE);continue}if(e!==!0)throw new Et("Unknown option "+p,Et.ERR_BAD_OPTION)}}const ac={assertOptions:K_,validators:sc},Gi=ac.validators;let vs=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Mv,response:new Mv}}async request(t,e){try{return await this._request(t,e)}catch(r){if(r instanceof Error){let f={};Error.captureStackTrace?Error.captureStackTrace(f):f=new Error;const p=f.stack?f.stack.replace(/^.+\n/,""):"";try{r.stack?p&&!String(r.stack).endsWith(p.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
1494
|
-
`+p):r.stack=p}catch{}}throw r}}_request(t,e){typeof t=="string"?(e=e||{},e.url=t):e=t||{},e=ms(this.defaults,e);const{transitional:r,paramsSerializer:f,headers:p}=e;r!==void 0&&ac.assertOptions(r,{silentJSONParsing:Gi.transitional(Gi.boolean),forcedJSONParsing:Gi.transitional(Gi.boolean),clarifyTimeoutError:Gi.transitional(Gi.boolean)},!1),f!=null&&(_e.isFunction(f)?e.paramsSerializer={serialize:f}:ac.assertOptions(f,{encode:Gi.function,serialize:Gi.function},!0)),e.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?e.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:e.allowAbsoluteUrls=!0),ac.assertOptions(e,{baseUrl:Gi.spelling("baseURL"),withXsrfToken:Gi.spelling("withXSRFToken")},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase();let y=p&&_e.merge(p.common,p[e.method]);p&&_e.forEach(["delete","get","head","post","put","patch","common"],o=>{delete p[o]}),e.headers=Vr.concat(y,p);const b=[];let h=!0;this.interceptors.request.forEach(function(o){typeof o.runWhen=="function"&&o.runWhen(e)===!1||(h=h&&o.synchronous,b.unshift(o.fulfilled,o.rejected))});const g=[];this.interceptors.response.forEach(function(o){g.push(o.fulfilled,o.rejected)});let s,l=0,u;if(!h){const o=[Kv.bind(this),void 0];for(o.unshift.apply(o,b),o.push.apply(o,g),u=o.length,s=Promise.resolve(e);l<u;)s=s.then(o[l++],o[l++]);return s}u=b.length;let a=e;for(l=0;l<u;){const o=b[l++],c=b[l++];try{a=o(a)}catch(d){c.call(this,d);break}}try{s=Kv.call(this,a)}catch(o){return Promise.reject(o)}for(l=0,u=g.length;l<u;)s=s.then(g[l++],g[l++]);return s}getUri(t){t=ms(this.defaults,t);const e=Pv(t.baseURL,t.url,t.allowAbsoluteUrls);return $v(e,t.params,t.paramsSerializer)}};_e.forEach(["delete","get","head","options"],function(n){vs.prototype[n]=function(t,e){return this.request(ms(e||{},{method:n,url:t,data:(e||{}).data}))}}),_e.forEach(["post","put","patch"],function(n){function t(e){return function(r,f,p){return this.request(ms(p||{},{method:n,headers:e?{"Content-Type":"multipart/form-data"}:{},url:r,data:f}))}}vs.prototype[n]=t(),vs.prototype[n+"Form"]=t(!0)});let q_=class bb{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let e;this.promise=new Promise(function(f){e=f});const r=this;this.promise.then(f=>{if(!r._listeners)return;let p=r._listeners.length;for(;p-- >0;)r._listeners[p](f);r._listeners=null}),this.promise.then=f=>{let p;const y=new Promise(b=>{r.subscribe(b),p=b}).then(f);return y.cancel=function(){r.unsubscribe(p)},y},t(function(f,p,y){r.reason||(r.reason=new ta(f,p,y),e(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);e!==-1&&this._listeners.splice(e,1)}toAbortSignal(){const t=new AbortController,e=r=>{t.abort(r)};return this.subscribe(e),t.signal.unsubscribe=()=>this.unsubscribe(e),t.signal}static source(){let t;return{token:new bb(function(e){t=e}),cancel:t}}};function G_(n){return function(t){return n.apply(null,t)}}function Y_(n){return _e.isObject(n)&&n.isAxiosError===!0}const Kh={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Kh).forEach(([n,t])=>{Kh[t]=n});function Yv(n){const t=new vs(n),e=pv(vs.prototype.request,t);return _e.extend(e,vs.prototype,t,{allOwnKeys:!0}),_e.extend(e,t,null,{allOwnKeys:!0}),e.create=function(r){return Yv(ms(n,r))},e}const Yn=er("E",Yv(Wa));Yn.Axios=vs,Yn.CanceledError=ta,Yn.CancelToken=q_,Yn.isCancel=Lv,Yn.VERSION=qv,Yn.toFormData=tc,Yn.AxiosError=Et,Yn.Cancel=Yn.CanceledError,Yn.all=function(n){return Promise.all(n)},Yn.spread=G_,Yn.isAxiosError=Y_,Yn.mergeConfig=ms,Yn.AxiosHeaders=Vr,Yn.formToJSON=n=>Ev(_e.isHTMLForm(n)?new FormData(n):n),Yn.getAdapter=Vv.getAdapter,Yn.HttpStatusCode=Kh,Yn.default=Yn;const{Axios:g2,AxiosError:f2,CanceledError:m2,isCancel:v2,CancelToken:y2,VERSION:w2,all:b2,Cancel:x2,isAxiosError:C2,spread:k2,toFormData:S2,AxiosHeaders:A2,HttpStatusCode:_2,formToJSON:T2,getAdapter:$2,mergeConfig:M2}=Yn;function Xv(){return Object.assign({},Fs())}function X_(n,t,e){const r=xn(n,void 0);return r.setTime(r.getTime()+t*hl),r}function Q_(n,t){const e=()=>qn(void 0,NaN),r=tT(n);let f;if(r.date){const h=nT(r.date,2);f=rT(h.restDateString,h.year)}if(!f||isNaN(+f))return e();const p=+f;let y=0,b;if(r.time&&(y=iT(r.time),isNaN(y)))return e();if(r.timezone){if(b=oT(r.timezone),isNaN(b))return e()}else{const h=new Date(p+y),g=xn(0,void 0);return g.setFullYear(h.getUTCFullYear(),h.getUTCMonth(),h.getUTCDate()),g.setHours(h.getUTCHours(),h.getUTCMinutes(),h.getUTCSeconds(),h.getUTCMilliseconds()),g}return xn(p+y+b,void 0)}const lc={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Z_=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,J_=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,eT=/^([+-])(\d{2})(?::?(\d{2}))?$/;function tT(n){const t={},e=n.split(lc.dateTimeDelimiter);let r;if(e.length>2)return t;if(/:/.test(e[0])?r=e[0]:(t.date=e[0],r=e[1],lc.timeZoneDelimiter.test(t.date)&&(t.date=n.split(lc.timeZoneDelimiter)[0],r=n.substr(t.date.length,n.length))),r){const f=lc.timezone.exec(r);f?(t.time=r.replace(f[1],""),t.timezone=f[1]):t.time=r}return t}function nT(n,t){const e=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=n.match(e);if(!r)return{year:NaN,restDateString:""};const f=r[1]?parseInt(r[1]):null,p=r[2]?parseInt(r[2]):null;return{year:p===null?f:p*100,restDateString:n.slice((r[1]||r[2]).length)}}function rT(n,t){if(t===null)return new Date(NaN);const e=n.match(Z_);if(!e)return new Date(NaN);const r=!!e[4],f=za(e[1]),p=za(e[2])-1,y=za(e[3]),b=za(e[4]),h=za(e[5])-1;if(r)return uT(t,b,h)?sT(t,b,h):new Date(NaN);{const g=new Date(0);return!lT(t,p,y)||!cT(t,f)?new Date(NaN):(g.setUTCFullYear(t,p,Math.max(f,y)),g)}}function za(n){return n?parseInt(n):1}function iT(n){const t=n.match(J_);if(!t)return NaN;const e=qh(t[1]),r=qh(t[2]),f=qh(t[3]);return hT(e,r,f)?e*Jc+r*hl+f*1e3:NaN}function qh(n){return n&&parseFloat(n.replace(",","."))||0}function oT(n){if(n==="Z")return 0;const t=n.match(eT);if(!t)return 0;const e=t[1]==="+"?-1:1,r=parseInt(t[2]),f=t[3]&&parseInt(t[3])||0;return dT(r,f)?e*(r*Jc+f*hl):NaN}function sT(n,t,e){const r=new Date(0);r.setUTCFullYear(n,0,4);const f=r.getUTCDay()||7,p=(t-1)*7+e+1-f;return r.setUTCDate(r.getUTCDate()+p),r}const aT=[31,null,31,30,31,30,31,31,30,31,30,31];function Qv(n){return n%400===0||n%4===0&&n%100!==0}function lT(n,t,e){return t>=0&&t<=11&&e>=1&&e<=(aT[t]||(Qv(n)?29:28))}function cT(n,t){return t>=1&&t<=(Qv(n)?366:365)}function uT(n,t,e){return t>=1&&t<=53&&e>=0&&e<=6}function hT(n,t,e){return n===24?t===0&&e===0:e>=0&&e<60&&t>=0&&t<60&&n>=0&&n<25}function dT(n,t){return t>=0&&t<=59}function pT(n,t,e){return X_(n,-t)}function Zv(n,t,e){const r=Xv(),f=mT(n,e.timeZone,e.locale??r.locale);return"formatToParts"in f?gT(f,t):fT(f,t)}function gT(n,t){const e=n.formatToParts(t);for(let r=e.length-1;r>=0;--r)if(e[r].type==="timeZoneName")return e[r].value}function fT(n,t){const e=n.format(t).replace(/\u200E/g,""),r=/ [\w-+ ]+$/.exec(e);return r?r[0].substr(1):""}function mT(n,t,e){return new Intl.DateTimeFormat(e?[e.code,"en-US"]:void 0,{timeZone:t,timeZoneName:n})}function vT(n,t){const e=CT(t);return"formatToParts"in e?wT(e,n):bT(e,n)}const yT={year:0,month:1,day:2,hour:3,minute:4,second:5};function wT(n,t){try{const e=n.formatToParts(t),r=[];for(let f=0;f<e.length;f++){const p=yT[e[f].type];p!==void 0&&(r[p]=parseInt(e[f].value,10))}return r}catch(e){if(e instanceof RangeError)return[NaN];throw e}}function bT(n,t){const e=n.format(t),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(e);return[parseInt(r[3],10),parseInt(r[1],10),parseInt(r[2],10),parseInt(r[4],10),parseInt(r[5],10),parseInt(r[6],10)]}const Gh={},Jv=new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:"America/New_York",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),xT=Jv==="06/25/2014, 00:00:00"||Jv==="06/25/2014 00:00:00";function CT(n){return Gh[n]||(Gh[n]=xT?new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:n,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:n,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})),Gh[n]}function ey(n,t,e,r,f,p,y){const b=new Date(0);return b.setUTCFullYear(n,t,e),b.setUTCHours(r,f,p,y),b}const ty=36e5,kT=6e4,Yh={timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function Xh(n,t,e){if(!n)return 0;let r=Yh.timezoneZ.exec(n);if(r)return 0;let f,p;if(r=Yh.timezoneHH.exec(n),r)return f=parseInt(r[1],10),ny(f)?-(f*ty):NaN;if(r=Yh.timezoneHHMM.exec(n),r){f=parseInt(r[2],10);const y=parseInt(r[3],10);return ny(f,y)?(p=Math.abs(f)*ty+y*kT,r[1]==="+"?-p:p):NaN}if(_T(n)){t=new Date(t||Date.now());const y=e?t:ST(t),b=Qh(y,n);return-(e?b:AT(t,b,n))}return NaN}function ST(n){return ey(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds())}function Qh(n,t){const e=vT(n,t),r=ey(e[0],e[1]-1,e[2],e[3]%24,e[4],e[5],0).getTime();let f=n.getTime();const p=f%1e3;return f-=p>=0?p:1e3+p,r-f}function AT(n,t,e){let r=n.getTime()-t;const f=Qh(new Date(r),e);if(t===f)return t;r-=f-t;const p=Qh(new Date(r),e);return f===p?f:Math.max(f,p)}function ny(n,t){return-23<=n&&n<=23&&(t==null||0<=t&&t<=59)}const ry={};function _T(n){if(ry[n])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:n}),ry[n]=!0,!0}catch{return!1}}const TT=60*1e3,$T={X:function(n,t,e){const r=Zh(e.timeZone,n);if(r===0)return"Z";switch(t){case"X":return iy(r);case"XXXX":case"XX":return na(r);case"XXXXX":case"XXX":default:return na(r,":")}},x:function(n,t,e){const r=Zh(e.timeZone,n);switch(t){case"x":return iy(r);case"xxxx":case"xx":return na(r);case"xxxxx":case"xxx":default:return na(r,":")}},O:function(n,t,e){const r=Zh(e.timeZone,n);switch(t){case"O":case"OO":case"OOO":return"GMT"+MT(r,":");case"OOOO":default:return"GMT"+na(r,":")}},z:function(n,t,e){switch(t){case"z":case"zz":case"zzz":return Zv("short",n,e);case"zzzz":default:return Zv("long",n,e)}}};function Zh(n,t){const e=n?Xh(n,t,!0)/TT:(t==null?void 0:t.getTimezoneOffset())??0;if(Number.isNaN(e))throw new RangeError("Invalid time zone specified: "+n);return e}function cc(n,t){const e=n<0?"-":"";let r=Math.abs(n).toString();for(;r.length<t;)r="0"+r;return e+r}function na(n,t=""){const e=n>0?"-":"+",r=Math.abs(n),f=cc(Math.floor(r/60),2),p=cc(Math.floor(r%60),2);return e+f+t+p}function iy(n,t){return n%60===0?(n>0?"-":"+")+cc(Math.abs(n)/60,2):na(n,t)}function MT(n,t=""){const e=n>0?"-":"+",r=Math.abs(n),f=Math.floor(r/60),p=r%60;return p===0?e+String(f):e+String(f)+t+cc(p,2)}function oy(n){const t=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return t.setUTCFullYear(n.getFullYear()),+n-+t}const IT=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,Jh=36e5,sy=6e4,ET=2,Rr={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:IT};function ay(n,t={}){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(n===null)return new Date(NaN);const e=t.additionalDigits==null?ET:Number(t.additionalDigits);if(e!==2&&e!==1&&e!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(n instanceof Date||typeof n=="object"&&Object.prototype.toString.call(n)==="[object Date]")return new Date(n.getTime());if(typeof n=="number"||Object.prototype.toString.call(n)==="[object Number]")return new Date(n);if(Object.prototype.toString.call(n)!=="[object String]")return new Date(NaN);const r=RT(n),{year:f,restDateString:p}=LT(r.date,e),y=OT(p,f);if(y===null||isNaN(y.getTime()))return new Date(NaN);if(y){const b=y.getTime();let h=0,g;if(r.time&&(h=NT(r.time),h===null||isNaN(h)))return new Date(NaN);if(r.timeZone||t.timeZone){if(g=Xh(r.timeZone||t.timeZone,new Date(b+h)),isNaN(g))return new Date(NaN)}else g=oy(new Date(b+h)),g=oy(new Date(b+h+g));return new Date(b+h+g)}else return new Date(NaN)}function RT(n){const t={};let e=Rr.dateTimePattern.exec(n),r;if(e?(t.date=e[1],r=e[3]):(e=Rr.datePattern.exec(n),e?(t.date=e[1],r=e[2]):(t.date=null,r=n)),r){const f=Rr.timeZone.exec(r);f?(t.time=r.replace(f[1],""),t.timeZone=f[1].trim()):t.time=r}return t}function LT(n,t){if(n){const e=Rr.YYY[t],r=Rr.YYYYY[t];let f=Rr.YYYY.exec(n)||r.exec(n);if(f){const p=f[1];return{year:parseInt(p,10),restDateString:n.slice(p.length)}}if(f=Rr.YY.exec(n)||e.exec(n),f){const p=f[1];return{year:parseInt(p,10)*100,restDateString:n.slice(p.length)}}}return{year:null}}function OT(n,t){if(t===null)return null;let e,r,f;if(!n||!n.length)return e=new Date(0),e.setUTCFullYear(t),e;let p=Rr.MM.exec(n);if(p)return e=new Date(0),r=parseInt(p[1],10)-1,uy(t,r)?(e.setUTCFullYear(t,r),e):new Date(NaN);if(p=Rr.DDD.exec(n),p){e=new Date(0);const y=parseInt(p[1],10);return FT(t,y)?(e.setUTCFullYear(t,0,y),e):new Date(NaN)}if(p=Rr.MMDD.exec(n),p){e=new Date(0),r=parseInt(p[1],10)-1;const y=parseInt(p[2],10);return uy(t,r,y)?(e.setUTCFullYear(t,r,y),e):new Date(NaN)}if(p=Rr.Www.exec(n),p)return f=parseInt(p[1],10)-1,hy(f)?ly(t,f):new Date(NaN);if(p=Rr.WwwD.exec(n),p){f=parseInt(p[1],10)-1;const y=parseInt(p[2],10)-1;return hy(f,y)?ly(t,f,y):new Date(NaN)}return null}function NT(n){let t,e,r=Rr.HH.exec(n);if(r)return t=parseFloat(r[1].replace(",",".")),ed(t)?t%24*Jh:NaN;if(r=Rr.HHMM.exec(n),r)return t=parseInt(r[1],10),e=parseFloat(r[2].replace(",",".")),ed(t,e)?t%24*Jh+e*sy:NaN;if(r=Rr.HHMMSS.exec(n),r){t=parseInt(r[1],10),e=parseInt(r[2],10);const f=parseFloat(r[3].replace(",","."));return ed(t,e,f)?t%24*Jh+e*sy+f*1e3:NaN}return null}function ly(n,t,e){t=t||0,e=e||0;const r=new Date(0);r.setUTCFullYear(n,0,4);const f=r.getUTCDay()||7,p=t*7+e+1-f;return r.setUTCDate(r.getUTCDate()+p),r}const DT=[31,28,31,30,31,30,31,31,30,31,30,31],PT=[31,29,31,30,31,30,31,31,30,31,30,31];function cy(n){return n%400===0||n%4===0&&n%100!==0}function uy(n,t,e){if(t<0||t>11)return!1;if(e!=null){if(e<1)return!1;const r=cy(n);if(r&&e>PT[t]||!r&&e>DT[t])return!1}return!0}function FT(n,t){if(t<1)return!1;const e=cy(n);return!(e&&t>366||!e&&t>365)}function hy(n,t){return!(n<0||n>52||t!=null&&(t<0||t>6))}function ed(n,t,e){return!(n<0||n>=25||t!=null&&(t<0||t>=60)||e!=null&&(e<0||e>=60))}const WT=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function BT(n,t,e={}){t=String(t);const r=t.match(WT);if(r){const f=ay(e.originalDate||n,e);t=r.reduce(function(p,y){if(y[0]==="'")return p;const b=p.indexOf(y),h=p[b-1]==="'",g=p.replace(y,"'"+$T[y[0]](f,y,e)+"'");return h?g.substring(0,b-1)+g.substring(b+1):g},t)}return rs(n,t,e)}function zT(n,t,e){n=ay(n,e);const r=Xh(t,n,!0),f=new Date(n.getTime()-r),p=new Date(0);return p.setFullYear(f.getUTCFullYear(),f.getUTCMonth(),f.getUTCDate()),p.setHours(f.getUTCHours(),f.getUTCMinutes(),f.getUTCSeconds(),f.getUTCMilliseconds()),p}function uc(n,t,e,r){return r={...r,timeZone:t,originalDate:n},BT(zT(n,t,{timeZone:r.timeZone}),e,r)}const hc="yyyy-MM-dd",dy="HH:mm:ss.SSS",py="HH:mm:ss",dc=`${hc} ${dy}`,gy=`${hc} ${py}`,I2=er("R",{methods:{parseDateTime(n,t){return n.includes(" ")&&(n=n.replace(" ","T")),t&&t==="UTC"&&(n+="Z"),Date.parse(n)},formatUtcToLocal(n,t){return rs(!t||t==="local"?pT(n,n.getTimezoneOffset()):n,dc)},formatDateTime(n,t){return!t||t==="local"?rs(n,dc):uc(n,t,dc)},formatDateTimeHMS(n,t){return!t||t==="local"?rs(n,gy):uc(n,t,gy)},formatDate:function(n,t){return!t||t==="local"?rs(n,hc):uc(n,this.timeZone,hc)},formatTime:function(n,t,e=dy){return!t||t==="local"?rs(n,e):uc(n,this.timeZone,e)},formatTimeHMS:function(n,t){return this.formatTime(n,t,py)},formatTimestamp(n,t){return this.formatDateTime(Q_(n),t)},formatSeconds(n,t){return this.formatDateTime(new Date(n*1e3),t)},formatNanoseconds(n,t){return this.formatDateTime(new Date(parseInt(n)/1e6),t)}}});var jT=Object.defineProperty,HT=(n,t,e)=>t in n?jT(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,et=(n,t,e)=>HT(n,typeof t!="symbol"?t+"":t,e);function td(n,t,e){const r=xn(n,e==null?void 0:e.in);return isNaN(t)?qn((e==null?void 0:e.in)||n,NaN):(t&&r.setDate(r.getDate()+t),r)}function UT(n,t){const e=xn(n,void 0).getDay();return e===0?7:e}function VT(n,t){const e=KT(t)?new t(0):qn(t,0);return e.setFullYear(n.getFullYear(),n.getMonth(),n.getDate()),e.setHours(n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()),e}function KT(n){var t;return typeof n=="function"&&((t=n.prototype)==null?void 0:t.constructor)===n}const qT=10;let fy=class{constructor(){et(this,"subPriority",0)}validate(t,e){return!0}};class GT extends fy{constructor(t,e,r,f,p){super(),this.value=t,this.validateValue=e,this.setValue=r,this.priority=f,p&&(this.subPriority=p)}validate(t,e){return this.validateValue(t,this.value,e)}set(t,e,r){return this.setValue(t,e,this.value,r)}}class YT extends fy{constructor(t,e){super(),et(this,"priority",qT),et(this,"subPriority",-1),this.context=t||(r=>qn(e,r))}set(t,e){return e.timestampIsSet?t:qn(t,VT(t,this.context))}}class en{run(t,e,r,f){const p=this.parse(t,e,r,f);return p?{setter:new GT(p.value,this.validate,this.set,this.priority,this.subPriority),rest:p.rest}:null}validate(t,e,r){return!0}}class XT extends en{constructor(){super(...arguments),et(this,"priority",140),et(this,"incompatibleTokens",["R","u","t","T"])}parse(t,e,r){switch(e){case"G":case"GG":case"GGG":return r.era(t,{width:"abbreviated"})||r.era(t,{width:"narrow"});case"GGGGG":return r.era(t,{width:"narrow"});case"GGGG":default:return r.era(t,{width:"wide"})||r.era(t,{width:"abbreviated"})||r.era(t,{width:"narrow"})}}set(t,e,r){return e.era=r,t.setFullYear(r,0,1),t.setHours(0,0,0,0),t}}const Bn={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Yi={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function zn(n,t){return n&&{value:t(n.value),rest:n.rest}}function _n(n,t){const e=t.match(n);return e?{value:parseInt(e[0],10),rest:t.slice(e[0].length)}:null}function Xi(n,t){const e=t.match(n);if(!e)return null;if(e[0]==="Z")return{value:0,rest:t.slice(1)};const r=e[1]==="+"?1:-1,f=e[2]?parseInt(e[2],10):0,p=e[3]?parseInt(e[3],10):0,y=e[5]?parseInt(e[5],10):0;return{value:r*(f*Jc+p*hl+y*Fb),rest:t.slice(e[0].length)}}function my(n){return _n(Bn.anyDigitsSigned,n)}function In(n,t){switch(n){case 1:return _n(Bn.singleDigit,t);case 2:return _n(Bn.twoDigits,t);case 3:return _n(Bn.threeDigits,t);case 4:return _n(Bn.fourDigits,t);default:return _n(new RegExp("^\\d{1,"+n+"}"),t)}}function vy(n,t){switch(n){case 1:return _n(Bn.singleDigitSigned,t);case 2:return _n(Bn.twoDigitsSigned,t);case 3:return _n(Bn.threeDigitsSigned,t);case 4:return _n(Bn.fourDigitsSigned,t);default:return _n(new RegExp("^-?\\d{1,"+n+"}"),t)}}function nd(n){switch(n){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function yy(n,t){const e=t>0,r=e?t:1-t;let f;if(r<=50)f=n||100;else{const p=r+50,y=Math.trunc(p/100)*100,b=n>=p%100;f=n+y-(b?100:0)}return e?f:1-f}function wy(n){return n%400===0||n%4===0&&n%100!==0}class QT extends en{constructor(){super(...arguments),et(this,"priority",130),et(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(t,e,r){const f=p=>({year:p,isTwoDigitYear:e==="yy"});switch(e){case"y":return zn(In(4,t),f);case"yo":return zn(r.ordinalNumber(t,{unit:"year"}),f);default:return zn(In(e.length,t),f)}}validate(t,e){return e.isTwoDigitYear||e.year>0}set(t,e,r){const f=t.getFullYear();if(r.isTwoDigitYear){const y=yy(r.year,f);return t.setFullYear(y,0,1),t.setHours(0,0,0,0),t}const p=!("era"in e)||e.era===1?r.year:1-r.year;return t.setFullYear(p,0,1),t.setHours(0,0,0,0),t}}let ZT=class extends en{constructor(){super(...arguments),et(this,"priority",130),et(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(t,e,r){const f=p=>({year:p,isTwoDigitYear:e==="YY"});switch(e){case"Y":return zn(In(4,t),f);case"Yo":return zn(r.ordinalNumber(t,{unit:"year"}),f);default:return zn(In(e.length,t),f)}}validate(t,e){return e.isTwoDigitYear||e.year>0}set(t,e,r,f){const p=tu(t,f);if(r.isTwoDigitYear){const b=yy(r.year,p);return t.setFullYear(b,0,f.firstWeekContainsDate),t.setHours(0,0,0,0),Io(t,f)}const y=!("era"in e)||e.era===1?r.year:1-r.year;return t.setFullYear(y,0,f.firstWeekContainsDate),t.setHours(0,0,0,0),Io(t,f)}};class JT extends en{constructor(){super(...arguments),et(this,"priority",130),et(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(t,e){return vy(e==="R"?4:e.length,t)}set(t,e,r){const f=qn(t,0);return f.setFullYear(r,0,4),f.setHours(0,0,0,0),Ws(f)}}class e$ extends en{constructor(){super(...arguments),et(this,"priority",130),et(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(t,e){return vy(e==="u"?4:e.length,t)}set(t,e,r){return t.setFullYear(r,0,1),t.setHours(0,0,0,0),t}}class t$ extends en{constructor(){super(...arguments),et(this,"priority",120),et(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(t,e,r){switch(e){case"Q":case"QQ":return In(e.length,t);case"Qo":return r.ordinalNumber(t,{unit:"quarter"});case"QQQ":return r.quarter(t,{width:"abbreviated",context:"formatting"})||r.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return r.quarter(t,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(t,{width:"wide",context:"formatting"})||r.quarter(t,{width:"abbreviated",context:"formatting"})||r.quarter(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=1&&e<=4}set(t,e,r){return t.setMonth((r-1)*3,1),t.setHours(0,0,0,0),t}}class n$ extends en{constructor(){super(...arguments),et(this,"priority",120),et(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(t,e,r){switch(e){case"q":case"qq":return In(e.length,t);case"qo":return r.ordinalNumber(t,{unit:"quarter"});case"qqq":return r.quarter(t,{width:"abbreviated",context:"standalone"})||r.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return r.quarter(t,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(t,{width:"wide",context:"standalone"})||r.quarter(t,{width:"abbreviated",context:"standalone"})||r.quarter(t,{width:"narrow",context:"standalone"})}}validate(t,e){return e>=1&&e<=4}set(t,e,r){return t.setMonth((r-1)*3,1),t.setHours(0,0,0,0),t}}class r$ extends en{constructor(){super(...arguments),et(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),et(this,"priority",110)}parse(t,e,r){const f=p=>p-1;switch(e){case"M":return zn(_n(Bn.month,t),f);case"MM":return zn(In(2,t),f);case"Mo":return zn(r.ordinalNumber(t,{unit:"month"}),f);case"MMM":return r.month(t,{width:"abbreviated",context:"formatting"})||r.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return r.month(t,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(t,{width:"wide",context:"formatting"})||r.month(t,{width:"abbreviated",context:"formatting"})||r.month(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=0&&e<=11}set(t,e,r){return t.setMonth(r,1),t.setHours(0,0,0,0),t}}class i$ extends en{constructor(){super(...arguments),et(this,"priority",110),et(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(t,e,r){const f=p=>p-1;switch(e){case"L":return zn(_n(Bn.month,t),f);case"LL":return zn(In(2,t),f);case"Lo":return zn(r.ordinalNumber(t,{unit:"month"}),f);case"LLL":return r.month(t,{width:"abbreviated",context:"standalone"})||r.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return r.month(t,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(t,{width:"wide",context:"standalone"})||r.month(t,{width:"abbreviated",context:"standalone"})||r.month(t,{width:"narrow",context:"standalone"})}}validate(t,e){return e>=0&&e<=11}set(t,e,r){return t.setMonth(r,1),t.setHours(0,0,0,0),t}}function o$(n,t,e){const r=xn(n,e==null?void 0:e.in),f=$p(r,e)-t;return r.setDate(r.getDate()-f*7),xn(r,e==null?void 0:e.in)}class s$ extends en{constructor(){super(...arguments),et(this,"priority",100),et(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(t,e,r){switch(e){case"w":return _n(Bn.week,t);case"wo":return r.ordinalNumber(t,{unit:"week"});default:return In(e.length,t)}}validate(t,e){return e>=1&&e<=53}set(t,e,r,f){return Io(o$(t,r,f),f)}}function a$(n,t,e){const r=xn(n,void 0),f=Tp(r)-t;return r.setDate(r.getDate()-f*7),r}class l$ extends en{constructor(){super(...arguments),et(this,"priority",100),et(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(t,e,r){switch(e){case"I":return _n(Bn.week,t);case"Io":return r.ordinalNumber(t,{unit:"week"});default:return In(e.length,t)}}validate(t,e){return e>=1&&e<=53}set(t,e,r){return Ws(a$(t,r))}}const c$=[31,28,31,30,31,30,31,31,30,31,30,31],u$=[31,29,31,30,31,30,31,31,30,31,30,31];class h$ extends en{constructor(){super(...arguments),et(this,"priority",90),et(this,"subPriority",1),et(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(t,e,r){switch(e){case"d":return _n(Bn.date,t);case"do":return r.ordinalNumber(t,{unit:"date"});default:return In(e.length,t)}}validate(t,e){const r=t.getFullYear(),f=wy(r),p=t.getMonth();return f?e>=1&&e<=u$[p]:e>=1&&e<=c$[p]}set(t,e,r){return t.setDate(r),t.setHours(0,0,0,0),t}}class d$ extends en{constructor(){super(...arguments),et(this,"priority",90),et(this,"subpriority",1),et(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(t,e,r){switch(e){case"D":case"DD":return _n(Bn.dayOfYear,t);case"Do":return r.ordinalNumber(t,{unit:"date"});default:return In(e.length,t)}}validate(t,e){const r=t.getFullYear();return wy(r)?e>=1&&e<=366:e>=1&&e<=365}set(t,e,r){return t.setMonth(0,r),t.setHours(0,0,0,0),t}}function rd(n,t,e){var r,f,p,y;const b=Fs(),h=(e==null?void 0:e.weekStartsOn)??((f=(r=e==null?void 0:e.locale)==null?void 0:r.options)==null?void 0:f.weekStartsOn)??b.weekStartsOn??((y=(p=b.locale)==null?void 0:p.options)==null?void 0:y.weekStartsOn)??0,g=xn(n,e==null?void 0:e.in),s=g.getDay(),l=(t%7+7)%7,u=7-h,a=t<0||t>6?t-(s+u)%7:(l+u)%7-(s+u)%7;return td(g,a,e)}class p$ extends en{constructor(){super(...arguments),et(this,"priority",90),et(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(t,e,r){switch(e){case"E":case"EE":case"EEE":return r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return r.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});case"EEEE":default:return r.day(t,{width:"wide",context:"formatting"})||r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=0&&e<=6}set(t,e,r,f){return t=rd(t,r,f),t.setHours(0,0,0,0),t}}class g$ extends en{constructor(){super(...arguments),et(this,"priority",90),et(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(t,e,r,f){const p=y=>{const b=Math.floor((y-1)/7)*7;return(y+f.weekStartsOn+6)%7+b};switch(e){case"e":case"ee":return zn(In(e.length,t),p);case"eo":return zn(r.ordinalNumber(t,{unit:"day"}),p);case"eee":return r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});case"eeeee":return r.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});case"eeee":default:return r.day(t,{width:"wide",context:"formatting"})||r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=0&&e<=6}set(t,e,r,f){return t=rd(t,r,f),t.setHours(0,0,0,0),t}}let f$=class extends en{constructor(){super(...arguments),et(this,"priority",90),et(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(t,e,r,f){const p=y=>{const b=Math.floor((y-1)/7)*7;return(y+f.weekStartsOn+6)%7+b};switch(e){case"c":case"cc":return zn(In(e.length,t),p);case"co":return zn(r.ordinalNumber(t,{unit:"day"}),p);case"ccc":return r.day(t,{width:"abbreviated",context:"standalone"})||r.day(t,{width:"short",context:"standalone"})||r.day(t,{width:"narrow",context:"standalone"});case"ccccc":return r.day(t,{width:"narrow",context:"standalone"});case"cccccc":return r.day(t,{width:"short",context:"standalone"})||r.day(t,{width:"narrow",context:"standalone"});case"cccc":default:return r.day(t,{width:"wide",context:"standalone"})||r.day(t,{width:"abbreviated",context:"standalone"})||r.day(t,{width:"short",context:"standalone"})||r.day(t,{width:"narrow",context:"standalone"})}}validate(t,e){return e>=0&&e<=6}set(t,e,r,f){return t=rd(t,r,f),t.setHours(0,0,0,0),t}};function m$(n,t,e){const r=xn(n,void 0),f=UT(r),p=t-f;return td(r,p,e)}let v$=class extends en{constructor(){super(...arguments),et(this,"priority",90),et(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(t,e,r){const f=p=>p===0?7:p;switch(e){case"i":case"ii":return In(e.length,t);case"io":return r.ordinalNumber(t,{unit:"day"});case"iii":return zn(r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"}),f);case"iiiii":return zn(r.day(t,{width:"narrow",context:"formatting"}),f);case"iiiiii":return zn(r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"}),f);case"iiii":default:return zn(r.day(t,{width:"wide",context:"formatting"})||r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"}),f)}}validate(t,e){return e>=1&&e<=7}set(t,e,r){return t=m$(t,r),t.setHours(0,0,0,0),t}};class y$ extends en{constructor(){super(...arguments),et(this,"priority",80),et(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(t,e,r){switch(e){case"a":case"aa":case"aaa":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return r.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,r){return t.setHours(nd(r),0,0,0),t}}class w$ extends en{constructor(){super(...arguments),et(this,"priority",80),et(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(t,e,r){switch(e){case"b":case"bb":case"bbb":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return r.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,r){return t.setHours(nd(r),0,0,0),t}}class b$ extends en{constructor(){super(...arguments),et(this,"priority",80),et(this,"incompatibleTokens",["a","b","t","T"])}parse(t,e,r){switch(e){case"B":case"BB":case"BBB":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return r.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,r){return t.setHours(nd(r),0,0,0),t}}class x$ extends en{constructor(){super(...arguments),et(this,"priority",70),et(this,"incompatibleTokens",["H","K","k","t","T"])}parse(t,e,r){switch(e){case"h":return _n(Bn.hour12h,t);case"ho":return r.ordinalNumber(t,{unit:"hour"});default:return In(e.length,t)}}validate(t,e){return e>=1&&e<=12}set(t,e,r){const f=t.getHours()>=12;return f&&r<12?t.setHours(r+12,0,0,0):!f&&r===12?t.setHours(0,0,0,0):t.setHours(r,0,0,0),t}}class C$ extends en{constructor(){super(...arguments),et(this,"priority",70),et(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(t,e,r){switch(e){case"H":return _n(Bn.hour23h,t);case"Ho":return r.ordinalNumber(t,{unit:"hour"});default:return In(e.length,t)}}validate(t,e){return e>=0&&e<=23}set(t,e,r){return t.setHours(r,0,0,0),t}}class k$ extends en{constructor(){super(...arguments),et(this,"priority",70),et(this,"incompatibleTokens",["h","H","k","t","T"])}parse(t,e,r){switch(e){case"K":return _n(Bn.hour11h,t);case"Ko":return r.ordinalNumber(t,{unit:"hour"});default:return In(e.length,t)}}validate(t,e){return e>=0&&e<=11}set(t,e,r){return t.getHours()>=12&&r<12?t.setHours(r+12,0,0,0):t.setHours(r,0,0,0),t}}class S$ extends en{constructor(){super(...arguments),et(this,"priority",70),et(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(t,e,r){switch(e){case"k":return _n(Bn.hour24h,t);case"ko":return r.ordinalNumber(t,{unit:"hour"});default:return In(e.length,t)}}validate(t,e){return e>=1&&e<=24}set(t,e,r){const f=r<=24?r%24:r;return t.setHours(f,0,0,0),t}}class A$ extends en{constructor(){super(...arguments),et(this,"priority",60),et(this,"incompatibleTokens",["t","T"])}parse(t,e,r){switch(e){case"m":return _n(Bn.minute,t);case"mo":return r.ordinalNumber(t,{unit:"minute"});default:return In(e.length,t)}}validate(t,e){return e>=0&&e<=59}set(t,e,r){return t.setMinutes(r,0,0),t}}class _$ extends en{constructor(){super(...arguments),et(this,"priority",50),et(this,"incompatibleTokens",["t","T"])}parse(t,e,r){switch(e){case"s":return _n(Bn.second,t);case"so":return r.ordinalNumber(t,{unit:"second"});default:return In(e.length,t)}}validate(t,e){return e>=0&&e<=59}set(t,e,r){return t.setSeconds(r,0),t}}class T$ extends en{constructor(){super(...arguments),et(this,"priority",30),et(this,"incompatibleTokens",["t","T"])}parse(t,e){const r=f=>Math.trunc(f*Math.pow(10,-e.length+3));return zn(In(e.length,t),r)}set(t,e,r){return t.setMilliseconds(r),t}}class $$ extends en{constructor(){super(...arguments),et(this,"priority",10),et(this,"incompatibleTokens",["t","T","x"])}parse(t,e){switch(e){case"X":return Xi(Yi.basicOptionalMinutes,t);case"XX":return Xi(Yi.basic,t);case"XXXX":return Xi(Yi.basicOptionalSeconds,t);case"XXXXX":return Xi(Yi.extendedOptionalSeconds,t);case"XXX":default:return Xi(Yi.extended,t)}}set(t,e,r){return e.timestampIsSet?t:qn(t,t.getTime()-dl(t)-r)}}class M$ extends en{constructor(){super(...arguments),et(this,"priority",10),et(this,"incompatibleTokens",["t","T","X"])}parse(t,e){switch(e){case"x":return Xi(Yi.basicOptionalMinutes,t);case"xx":return Xi(Yi.basic,t);case"xxxx":return Xi(Yi.basicOptionalSeconds,t);case"xxxxx":return Xi(Yi.extendedOptionalSeconds,t);case"xxx":default:return Xi(Yi.extended,t)}}set(t,e,r){return e.timestampIsSet?t:qn(t,t.getTime()-dl(t)-r)}}class I$ extends en{constructor(){super(...arguments),et(this,"priority",40),et(this,"incompatibleTokens","*")}parse(t){return my(t)}set(t,e,r){return[qn(t,r*1e3),{timestampIsSet:!0}]}}class E$ extends en{constructor(){super(...arguments),et(this,"priority",20),et(this,"incompatibleTokens","*")}parse(t){return my(t)}set(t,e,r){return[qn(t,r),{timestampIsSet:!0}]}}const R$={G:new XT,y:new QT,Y:new ZT,R:new JT,u:new e$,Q:new t$,q:new n$,M:new r$,L:new i$,w:new s$,I:new l$,d:new h$,D:new d$,E:new p$,e:new g$,c:new f$,i:new v$,a:new y$,b:new w$,B:new b$,h:new x$,H:new C$,K:new k$,k:new S$,m:new A$,s:new _$,S:new T$,X:new $$,x:new M$,t:new I$,T:new E$},L$=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,O$=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,N$=/^'([^]*?)'?$/,D$=/''/g,P$=/\S/,F$=/[a-zA-Z]/;function W$(n,t,e,r){var f,p,y,b;const h=()=>qn(e,NaN),g=Xv(),s=g.locale??_p,l=g.firstWeekContainsDate??((p=(f=g.locale)==null?void 0:f.options)==null?void 0:p.firstWeekContainsDate)??1,u=g.weekStartsOn??((b=(y=g.locale)==null?void 0:y.options)==null?void 0:b.weekStartsOn)??0;if(!t)return n?h():xn(e,void 0);const a={firstWeekContainsDate:l,weekStartsOn:u,locale:s},o=[new YT(void 0,e)],c=t.match(O$).map($=>{const S=$[0];if(S in nu){const C=nu[S];return C($,s.formatLong)}return $}).join("").match(L$),d=[];for(let $ of c){Np($)&&ru($,t,n),Op($)&&ru($,t,n);const S=$[0],C=R$[S];if(C){const{incompatibleTokens:R}=C;if(Array.isArray(R)){const P=d.find(I=>R.includes(I.token)||I.token===S);if(P)throw new RangeError(`The format string mustn't contain \`${P.fullToken}\` and \`${$}\` at the same time`)}else if(C.incompatibleTokens==="*"&&d.length>0)throw new RangeError(`The format string mustn't contain \`${$}\` and any other token at the same time`);d.push({token:S,fullToken:$});const L=C.run(n,$,s.match,a);if(!L)return h();o.push(L.setter),n=L.rest}else{if(S.match(F$))throw new RangeError("Format string contains an unescaped latin alphabet character `"+S+"`");if($==="''"?$="'":S==="'"&&($=B$($)),n.indexOf($)===0)n=n.slice($.length);else return h()}}if(n.length>0&&P$.test(n))return h();const w=o.map($=>$.priority).sort(($,S)=>S-$).filter(($,S,C)=>C.indexOf($)===S).map($=>o.filter(S=>S.priority===$).sort((S,C)=>C.subPriority-S.subPriority)).map($=>$[0]);let x=xn(e,void 0);if(isNaN(+x))return h();const E={};for(const $ of w){if(!$.validate(x,a))return h();const S=$.set(x,E,a);Array.isArray(S)?(x=S[0],Object.assign(E,S[1])):x=S}return x}function B$(n){return n.match(N$)[1].replace(D$,"'")}const z$="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOAAAAAgCAYAAAALxXRVAAAAxHpUWHRSYXcgcHJvZmlsZSB0eXBlIGV4aWYAAHjabVDbDcMwCPxnio5gc8TB4zhtKnWDjl8IJEranmReh84Are/Xk24OrkIyzdp6a8UgXToPC7QExmZrkc1uWJOy/FIn3gm2EswjUm3Zv9frIRBuWDSdhPSexHIluqS+fgnlz/CJPH6kUE8hcBA1BUasVVrX+bzCcuyW0HjkRvQ69k8+2/Uek/0D5hUVxSwgMQD8gTAsaGYBb6zmhxFeEWiK2UH+3WkHfQAmGFlDwtBoyQAAAYVpQ0NQSUNDIHByb2ZpbGUAAHicfZE9SMNQFIVPW7UiFRE7iIhkqE7WQUUcaxWKUCHUCq06mLz0D5o0JCkujoJrwcGfxaqDi7OuDq6CIPgD4uripOgiJd6XFFrEeOHxPs675/DefYC/Xmaq2REDVM0yUom4kMmuCsFXdGEE/fBhQmKmPieKSXjW1z31Ud1FeZZ335/Vq+RMBvgE4hjTDYt4g3hm09I57xOHWVFSiM+Jxw26IPEj12WX3zgXHPbzzLCRTs0Th4mFQhvLbcyKhko8TRxRVI3y/RmXFc5bnNVylTXvyV8Yymkry1ynNYwEFrEEEQJkVFFCGRaitGukmEjRedzDP+T4RXLJ5CqBkWMBFaiQHD/4H/yerZmfmnSTQnGg88W2P0aB4C7QqNn297FtN06AwDNwpbX8lTow+0l6raVFjoC+beDiuqXJe8DlDjD4pEuG5EgBWv58Hng/o2/KAgO3QM+aO7fmOU4fgDTNKnkDHBwCYwXKXvd4d3f73P7tac7vB5UicrQ0WLbfAAANemlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4KPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNC40LjAtRXhpdjIiPgogPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iCiAgICB4bWxuczpzdEV2dD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlRXZlbnQjIgogICAgeG1sbnM6R0lNUD0iaHR0cDovL3d3dy5naW1wLm9yZy94bXAvIgogICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIgogICAgeG1sbnM6dGlmZj0iaHR0cDovL25zLmFkb2JlLmNvbS90aWZmLzEuMC8iCiAgICB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iCiAgIHhtcE1NOkRvY3VtZW50SUQ9ImdpbXA6ZG9jaWQ6Z2ltcDozYjNlMzQ0NC03YTU4LTQxYjItYTZjYi0wMzljNWI3NjRmN2IiCiAgIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MGUxZjUyNzQtNTMyNC00MzE5LWE3MjYtOGQyNjJlNjI1Y2YwIgogICB4bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ9InhtcC5kaWQ6ZDkzZGI3ODgtMmQwNi00NjdhLWI2OGItZWJlNmJiNGU1ODQ2IgogICBHSU1QOkFQST0iMi4wIgogICBHSU1QOlBsYXRmb3JtPSJNYWMgT1MiCiAgIEdJTVA6VGltZVN0YW1wPSIxNjg4MTUzMjA5MTAxNDUxIgogICBHSU1QOlZlcnNpb249IjIuMTAuMzQiCiAgIGRjOkZvcm1hdD0iaW1hZ2UvcG5nIgogICB0aWZmOk9yaWVudGF0aW9uPSIxIgogICB4bXA6Q3JlYXRvclRvb2w9IkdJTVAgMi4xMCIKICAgeG1wOk1ldGFkYXRhRGF0ZT0iMjAyMzowNjozMFQxMzoyNjo0OC0wNjowMCIKICAgeG1wOk1vZGlmeURhdGU9IjIwMjM6MDY6MzBUMTM6MjY6NDgtMDY6MDAiPgogICA8eG1wTU06SGlzdG9yeT4KICAgIDxyZGY6U2VxPgogICAgIDxyZGY6bGkKICAgICAgc3RFdnQ6YWN0aW9uPSJzYXZlZCIKICAgICAgc3RFdnQ6Y2hhbmdlZD0iLyIKICAgICAgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDozNWQ3MTYyZi0xYWQ1LTQwNWUtODAxOS03NmExMTI4MDI1YmYiCiAgICAgIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkdpbXAgMi4xMCAoTWFjIE9TKSIKICAgICAgc3RFdnQ6d2hlbj0iMjAyMy0wNi0zMFQxMzoyNjo0OS0wNjowMCIvPgogICAgPC9yZGY6U2VxPgogICA8L3htcE1NOkhpc3Rvcnk+CiAgPC9yZGY6RGVzY3JpcHRpb24+CiA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgCjw/eHBhY2tldCBlbmQ9InciPz5gv8dKAAAABmJLR0QA9QAHANj00CgxAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH5wYeExoxB4CzXgAAB65JREFUeNrtnF9sFNcVh78z6z8kEwgPTUVxTZqYh2lVbAKVKleuiuEJkGzIAzFSpEQukaoqQUUhiUiLSkRD2hQ1FYmqqnEtUqUK7UPBVozUBzBpUHkproGXrVqXAoKgKg/EZKFre+f0YcftFs967/zz7rrze5y999yd2fn2d8+9ZwZSpUqVKlWqVKmMpb9vcvT9zB90xF6RXo1UYWWllyAcfEzPjKL6ddy7oymEqcJKTBvmmrN7gR8bNt9v550fLG74KIUui3Vft2zN3Ywaf+bm1zTJ79+w4o8Stu/OO7ToNNsUtgJtqqwEEOEGMCEwIo2ceO9+rifx3TvGtdUt0CuwBaVNxRtfuYEwoXDSyjB0Ya1cW1QABoQvEoTa2XkG1W8kc7bygZw7tyFm+GKFsBYB3HmHFneKAyr0oxVmTYIryqDVxIG4QHxsTFcWXF5R2GV4Uw9kLL7/53Vyo+6noCHhAziYa85+L3CvTOZAYmcbIXYF+ACcxTgd7ZukpzBFVmFXRfgAFEthV2GKbN8kPVHHbx/TnhnXG9/0t4JdMy7Z9jHtqWsAI8AXGkI5e/YMIh8k4n5nz55JCL5FCWHfJ+x2lePAAyG6P+Aqx/s+YXfY8dec12fVZQhYGqL7UnUZWnNen61LAGOAL7wTJuGCIWMGgG9RQdg3SY8Lbxi53jxu6MIbYZywfUx7UN6MnrTzZi07oZSBbx9w6J7DN4BXgU7gyTLx3gXOAd+FYoJcopftvPNaVXLBkLlfCPgi54S1kAPuvENLYYpsSOfz06eZJhzTnPCxMV0545It43y3LTgsGYaXN/E3gFtTrNYCPS7sLdenwcKJIye8fPIpe3Sy90WBXkXbihDJhMJQ97Kh1x/Z8k4uEoBlnO8ysAX4C7AK+Caw3we+Q16bNmAUaAm7MKNdXRuYmRmN565r6A46/YwIX2gIawHAJ27xdpCcy3Rh5DfLecbI/f6kvuOLcFoyPF1ulbNjXFu1wFFVNvqNf/Er8kyUcxj87e82UtBB4OEyTa6Qkf7+HY+fjgKg3w1wyIPHzTVnLe9f5vkSCI8D+4C/em3EA/anwOrSQHbeMV6Fi8UFQ7hfTPCFgrDaAO68Q0thmquRpp7+d5qbaWRVJRfsGNdWd4arfvBdXC+bjAA+r6f8ILQaWBV2i8KD75RZuiObTCE0vciPAl/INWfFzjsuMAn8HPgOcB14ZRY+r/3ngM97brngeVuUGDHDV3c5oU6zLXb4vHxQp9lWqZlboNdvCikZnjZmvdj2tmFso2mn53xmKujg5ZNP2XEC2Af0z86v7byjwEcehF3ApVn4cs3Z5cCPvM+aIv1pRl0RDbjymQB8dQeht8letdhSnDnde5MeDuJcF9bKNQsOm8Q20ehk74vzTDv99LDXJzYA8RZWDuaas0tKIJwGrpbA91ngW/Ms0iysCwbomyB89QZhW1Vj69w2kmE48H+vXx8Nd25CcOc07RN0qrEb+FmuOdvkQeiWwLfEc8nX4vzFQrtg0H2/6cIvEoTvvxDqv16taQfUOavXCxp7trysVLOrnUHk18cvtplza1tSfcLM9RuBh8os6Ewn8suFccGgfWTJDiCb6N0t8uE/rCd3kypVSADfBfbYeee653rirYpi5527wCDF1dB479ugLhii6kW25m5i3dedGIRF+DYH3SdaaHmF1VWLLTq3za2p/11JN5FfH7/YZtNJmUiqTxAA9wHP23nn45JjnwEe9bYdAG4BR5OAMJCjhcwbE4OwTuDzNFHV2DK3jRaCV9L49pFw56YwlFQfUwB/CPzazjv/nD3g5Xw/AY4Aa7wtCrXzzk3gV8DmqrhghJrPRCCsL/gQGKlmbIWT9x5zYW/HuLaajtMxrq1eVUzF2CbqXjb0OnAlQJcrXp/YAPzQzjvXSuB7CHib4mrnZor7gF8tccKPKO4FLrwLxrB3GBuEdQYfgDRyAsFNgD5XGjlR8YbM+DrHUi1wNID7HcWnJK1M7Ip6ZMs7OTLSb36fSr/pb+4H4As+xwZzzdkvefDZFCtgSrcatgEvAV/2IFwNHPSJsz9RF4zofrFCWIfwAbx3P9dFGYydP2XQpBb0wlq5JjAwByplY/t5PTWfE3aMa2u5KhiBgSgP6vbvePw0GdlUwQmvBKmC8b7XXM1TjP1t4IuU32o4Afyd4sZ9pGLssv9u89WIhqj5rDjeiL0C9+4o4CwEfGkx9v95MXYJhHE9jgQxv6LCt0Y04tPusUEY0flq5Yn4vkl6XOV45LI0wbWE7ceWBdtMbx/THu9ZwOjua9F7cZ0MU4Mqe3HtvHO4zHS0qvCVzfMSfJLeeDpap9NOPx1bxrAFeyLlg4JrwZ6g8AFcXCfDCM/FkHs+V6vwVVyEiQHCRF7ONCcXjDH3Cw3hIoLvPxA+yBFL2A58GmbaaQnbjz3IkbDjX1ovb4lFLz6F1Qa6LRa9l9bLW7V8jStOLyJAmOyb0UodL8n3yJhAuAjhK3XCTBOOwICRGwquwECmCSeM8/k5YYPljW+eVw00WDi17HwVc8CIOeGCvJZQOzvPACSV+xnlhDHDl76WsLwW42sJ61ra1bVBu7o2VGXsEXuFvp/5pelzX6lSpUqVKlWqVKlSpUpVA/o34/Ptc3zCsREAAAAASUVORK5CYII=",j$={props:{status:{type:String,required:!0},large:{type:Boolean},small:{type:Boolean},scale:{type:Number}},computed:{icons:function(){return z$},scaleFactor:function(){return this.scale?this.scale:this.large?1:this.small?.3:.5},iconStyle:function(){const n=Y$.indexOf(by[this.status]),t=1-(n-1)*.05,e=224*this.scaleFactor*t,r=32*this.scaleFactor*t,f=32*this.scaleFactor*t;return[`background-image: url(${this.icons});`,`background-position-x: -${n*f}px;`,`background-size: ${e}px ${r}px;`,`height: ${f}px;`,`width: ${f}px;`,`padding-top: ${n-1}px;`].join("")}}};function H$(n,t,e,r,f,p){return hn(),Br("div",{style:wa(p.iconStyle)},null,4)}const U$=so(j$,[["render",H$]]),V$={props:{icon:{type:String},size:{type:String,default:"small"},color:{type:String,default:"white"}},computed:{colorStyle:function(){return{"--iconColor":this.color}}}};function K$(n,t,e,r,f,p){const y=wt("rux-icon");return hn(),Wr(y,{size:e.size,icon:e.icon,style:wa(p.colorStyle)},null,8,["size","icon","style"])}const q$=so(V$,[["render",K$],["__scopeId","data-v-9af48e85"]]),by={fatal:"critical",FATAL:"critical",error:"critical",ERROR:"critical",warn:"caution",WARN:"caution",info:"normal",INFO:"normal",debug:"off",DEBUG:"off",critical:"critical",CRITICAL:"critical",serious:"serious",SERIOUS:"serious",caution:"caution",CAUTION:"caution",normal:"normal",NORMAL:"normal",standby:"standby",STANDBY:"standby",off:"off",OFF:"OFF"},id={fatal:"#ff69B4",critical:"#ff3838",serious:"#ffb302",caution:"#fce83a",normal:"#56f000",standby:"#2dccff",off:"#a4abb6"},G$=function(n){const t="#000000",e="#ffffff",r=id[by[n]];if(r){const f=+`0x${r.slice(1,3)}`,p=+`0x${r.slice(3,5)}`,y=+`0x${r.slice(5,7)}`;if((f*299+p*587+y*114)/1e3>128)return t}return e},Y$=Object.keys(id),X$={astro:{component:n=>Ds(q$,{...n})},"astro-status":{component:n=>Ds(U$,{...n,status:n.icon})}},Q$={extras:{component:n=>Ds(Pb,{...n})}},E2=er("N",{data:{configKey:"",dontSaveDefaultConfig:!1},methods:{loadDefaultConfig:function(){return localStorage[`${this.configKey}__default`]?JSON.parse(localStorage[`${this.configKey}__default`]):{}},saveDefaultConfig:function(n){this.dontSaveDefaultConfig!==!0&&(localStorage[`${this.configKey}__default`]=JSON.stringify(n))},openConfigBase:function(n,t=!1,e=null){new Lo().load_config(this.configKey,n).then(r=>{r?(this.$notify.normal({title:"Loading configuration",body:n}),e&&e(JSON.parse(r)),t||this.$route.fullPath.includes(n)||this.$router.push({query:{config:n}})):this.$notify.caution({title:"Unknown configuration",body:n})}).catch(r=>{r&&this.$notify.serious({title:`Error opening configuration: ${n}`,body:r})})},saveConfigBase:function(n,t){new Lo().save_config(this.configKey,n,JSON.stringify(t)).then(()=>{this.$notify.normal({title:"Saved configuration",body:n})}).catch(e=>{e&&this.$notify.serious({title:`Error saving configuration: ${n}`,body:e})})},resetConfigBase:function(){localStorage.removeItem(`${this.configKey}__default`);const n={...this.$route.query};delete n.config,this.$router.replace({query:n})}}}),Z$={props:{configKey:String,modelValue:Boolean},data(){return{configs:[],headers:[{title:"Configuration",value:"config"},{title:"Actions",value:"actions",align:"end",sortable:!1}],search:null,selectedRows:[]}},computed:{selectedItem:function(){return this.selectedRows.length?this.configs.find(n=>n.configId===this.selectedRows[0]):null},error:function(){return this.selectedItem===""||this.selectedItem===null?"Must select a config":null},show:{get(){return this.modelValue},set(n){this.$emit("update:modelValue",n)}}},mounted(){let n=-1;new Lo().list_configs(this.configKey).then(t=>{this.configs=t.map(e=>(n+=1,{configId:n,config:e}))}).catch(t=>{this.$emit("warning",`Failed to connect to OpenC3. ${t}`)})},methods:{selectRow:function(n){this.selectedRows=[n.item.configId]},success:function(){this.selectedItem&&(this.$emit("success",this.selectedItem.config),this.show=!1,this.search=null,this.selectedRows=[])},cancel:function(){this.show=!1,this.search=null,this.selectedRows=[]},deleteConfig:function(n){this.$dialog.confirm(`Are you sure you want to delete: ${n.config}`,{okText:"Delete",cancelText:"Cancel"}).then(t=>{var e;((e=this.selectedItem)==null?void 0:e.config)===n.config&&(this.selectedRows=[]),this.configs.splice(this.configs.indexOf(n),1),new Lo().delete_config(this.configKey,n.config)}).catch(t=>{t!==!0&&this.$emit("warning",`Failed to delete config ${n.config} Error: ${t}`)})}}},J$={class:"mt-4 pa-3"},eM=["textContent"];function tM(n,t,e,r,f,p){const y=wt("v-spacer"),b=wt("v-toolbar"),h=wt("v-text-field"),g=wt("v-row"),s=wt("v-btn"),l=wt("v-data-table"),u=wt("v-card-text"),a=wt("v-card-actions"),o=wt("v-card"),c=wt("v-dialog");return hn(),Wr(c,{modelValue:p.show,"onUpdate:modelValue":t[4]||(t[4]=d=>p.show=d),width:"600",onKeydown:Yc(p.cancel,["esc"])},{default:ht(()=>[Ke(o,null,{default:ht(()=>[zr("form",{onSubmit:t[3]||(t[3]=Ps((...d)=>p.success&&p.success(...d),["prevent"]))},[Ke(b,{height:"24"},{default:ht(()=>[Ke(y),t[5]||(t[5]=zr("span",null,"Open Configuration",-1)),Ke(y)]),_:1}),Ke(u,null,{default:ht(()=>[zr("div",J$,[Ke(g,{dense:""},{default:ht(()=>[Ke(h,{modelValue:f.search,"onUpdate:modelValue":t[0]||(t[0]=d=>f.search=d),label:"search",type:"text","prepend-inner-icon":"mdi-magnify",clearable:"",variant:"outlined",density:"compact","clear-icon":"mdi-close-circle-outline",autofocus:"","single-line":"","hide-details":"","data-test":"search"},null,8,["modelValue"])]),_:1}),Ke(l,{modelValue:f.selectedRows,"onUpdate:modelValue":t[1]||(t[1]=d=>f.selectedRows=d),"show-select":"","select-strategy":"single","item-value":"configId",search:f.search,headers:f.headers,items:f.configs,"items-per-page":5,"items-per-page-options":[5],"onClick:row":t[2]||(t[2]=(d,w)=>p.selectRow(w))},{"item.actions":ht(({item:d})=>[Ke(s,{class:"mt-1",icon:"mdi-delete",variant:"text","data-test":"item-delete",onClick:w=>p.deleteConfig(d)},null,8,["onClick"])]),_:1},8,["modelValue","search","headers","items"]),Ke(g,{dense:""},{default:ht(()=>[ll(zr("span",{class:"ma-2 text-red",textContent:wr(p.error)},null,8,eM),[[cl,p.error]])]),_:1})])]),_:1}),Ke(a,{class:"px-2"},{default:ht(()=>[Ke(y),Ke(s,{variant:"outlined","data-test":"open-config-cancel-btn",onClick:p.cancel},{default:ht(()=>t[6]||(t[6]=[tr(" Cancel ")])),_:1},8,["onClick"]),Ke(s,{variant:"flat",type:"submit","data-test":"open-config-submit-btn",disabled:!!p.error,onClick:Ps(p.success,["prevent"])},{default:ht(()=>t[7]||(t[7]=[tr(" Ok ")])),_:1},8,["disabled","onClick"])]),_:1})],32)]),_:1})]),_:1},8,["modelValue","onKeydown"])}const R2=er("v",so(Z$,[["render",tM]])),nM={props:{configKey:String,modelValue:Boolean},data(){return{configName:"",configs:[],headers:[{title:"Configuration",value:"config"},{title:"Actions",value:"actions",align:"end",sortable:!1}],search:null,selectedRows:[]}},computed:{selectedItem:function(){return this.selectedRows.length?this.configs.find(n=>n.configId===this.selectedRows[0]):null},error:function(){return this.configName?null:"Config must have a name"},show:{get(){return this.modelValue},set(n){this.$emit("update:modelValue",n)}}},watch:{selectedItem:function(n){n&&(this.configName=n.config)}},mounted(){let n=-1;new Lo().list_configs(this.configKey).then(t=>{this.configs=t.map(e=>(n+=1,{configId:n,config:e}))}).catch(t=>{this.$emit("warning",`Failed to connect to OpenC3. ${t}`)})},methods:{selectRow:function(n){this.selectedRows=[n.item.configId]},success:function(){this.$emit("success",this.configName),this.show=!1,this.search=null,this.selectedRows=[],this.configName=""},cancel:function(){this.show=!1,this.search=null,this.selectedRows=[],this.configName=""},deleteConfig:function(n){this.$dialog.confirm(`Are you sure you want to delete: ${n.config}`,{okText:"Delete",cancelText:"Cancel"}).then(t=>{var e;((e=this.selectedItem)==null?void 0:e.config)===n.config&&(this.selectedRows=[],this.configName=""),this.configs.splice(this.configs.indexOf(n),1),new Lo().delete_config(this.configKey,n.config)}).catch(t=>{t!==!0&&this.$emit("warning",`Failed to delete config ${n.config} Error: ${t}`)})}}},rM={class:"mt-4 pa-3"},iM=["textContent"];function oM(n,t,e,r,f,p){const y=wt("v-spacer"),b=wt("v-toolbar"),h=wt("v-text-field"),g=wt("v-row"),s=wt("v-btn"),l=wt("v-data-table"),u=wt("v-card-text"),a=wt("v-card-actions"),o=wt("v-card"),c=wt("v-dialog");return hn(),Wr(c,{modelValue:p.show,"onUpdate:modelValue":t[5]||(t[5]=d=>p.show=d),width:"600",onKeydown:Yc(p.cancel,["esc"])},{default:ht(()=>[Ke(o,null,{default:ht(()=>[zr("form",{onSubmit:t[4]||(t[4]=Ps((...d)=>p.success&&p.success(...d),["prevent"]))},[Ke(b,{height:"24"},{default:ht(()=>[Ke(y),t[6]||(t[6]=zr("span",null,"Save Configuration",-1)),Ke(y)]),_:1}),Ke(u,null,{default:ht(()=>[zr("div",rM,[Ke(g,{dense:""},{default:ht(()=>[Ke(h,{modelValue:f.search,"onUpdate:modelValue":t[0]||(t[0]=d=>f.search=d),label:"search",type:"text","prepend-inner-icon":"mdi-magnify",clearable:"",variant:"outlined",density:"compact","clear-icon":"mdi-close-circle-outline","single-line":"","hide-details":"","data-test":"search"},null,8,["modelValue"])]),_:1}),Ke(l,{modelValue:f.selectedRows,"onUpdate:modelValue":t[1]||(t[1]=d=>f.selectedRows=d),"show-select":"","select-strategy":"single","item-value":"configId",search:f.search,headers:f.headers,items:f.configs,"items-per-page":5,"items-per-page-options":[5],"onClick:row":t[2]||(t[2]=(d,w)=>p.selectRow(w))},{"item.actions":ht(({item:d})=>[Ke(s,{class:"mt-1",icon:"mdi-delete",variant:"text","data-test":"item-delete",onClick:w=>p.deleteConfig(d)},null,8,["onClick"])]),_:1},8,["modelValue","search","headers","items"]),Ke(g,{dense:""},{default:ht(()=>[Ke(h,{modelValue:f.configName,"onUpdate:modelValue":t[3]||(t[3]=d=>f.configName=d),"hide-details":"",autofocus:"",disabled:!!p.selectedItem,label:"Configuration Name","data-test":"name-input-save-config-dialog"},null,8,["modelValue","disabled"])]),_:1}),Ke(g,{dense:""},{default:ht(()=>[ll(zr("span",{class:"ma-2 text-red",textContent:wr(p.error)},null,8,iM),[[cl,p.error]])]),_:1})])]),_:1}),Ke(a,{class:"px-2"},{default:ht(()=>[Ke(y),Ke(s,{variant:"outlined",onClick:p.cancel},{default:ht(()=>t[7]||(t[7]=[tr(" Cancel ")])),_:1},8,["onClick"]),Ke(s,{variant:"flat",type:"submit","data-test":"save-config-submit-btn",disabled:!!p.error,onClick:Ps(p.success,["prevent"])},{default:ht(()=>t[8]||(t[8]=[tr(" Ok ")])),_:1},8,["disabled","onClick"])]),_:1})],32)]),_:1})]),_:1},8,["modelValue","onKeydown"])}const L2=er("a",so(nM,[["render",oM]])),xy="single-spa:app-change",sM={data(){return{show:!1}},created(){window.addEventListener(xy,this.handleAppChange)},mounted(){setTimeout(()=>{this.show=fp().length===0},150)},unmounted(){window.removeEventListener(xy,this.handleAppChange)},methods:{handleAppChange:function(n){this.show=!n.detail.appsByNewStatus.MOUNTED}}},aM={class:"mx-1"};function lM(n,t,e,r,f,p){const y=wt("v-card-title"),b=wt("v-card-text"),h=wt("v-card");return f.show?(hn(),Wr(h,{key:0},{default:ht(()=>[Ke(y,null,{default:ht(()=>t[0]||(t[0]=[tr(" 404 Not Found ")])),_:1}),Ke(b,{class:"d-flex align-center mt-3"},{default:ht(()=>[t[1]||(t[1]=tr(" The requested URL ")),zr("code",aM,wr(n.$route.fullPath),1),t[2]||(t[2]=tr(" was not routable. ")),t[3]||(t[3]=zr("span",{class:"text-h3 mx-1"}," 🦄 ",-1))]),_:1})]),_:1})):ei("",!0)}const cM=so(sM,[["render",lM]]),uM={props:{allowAll:{type:Boolean,default:!1},allowAllTargets:{type:Boolean,default:!1},allowAllArrayIndex:{type:Boolean,default:!1},buttonText:{type:String,default:null},chooseItem:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},initialTargetName:{type:String,default:""},initialPacketName:{type:String,default:""},initialItemName:{type:String,default:""},selectTypes:{type:Boolean,default:!1},showLatest:{type:Boolean,default:!1},mode:{type:String,default:"tlm",validator:n=>["cmd","tlm"].includes(n)},unknown:{type:Boolean,default:!1},vertical:{type:Boolean,default:!1},hidden:{type:Boolean,default:!1}},emits:["on-set","addItem"],data(){var n,t,e;return{targetNames:[],selectedTargetName:(n=this.initialTargetName)==null?void 0:n.toUpperCase(),packetNames:[],selectedPacketName:(t=this.initialPacketName)==null?void 0:t.toUpperCase(),itemNames:[],selectedItemName:(e=this.initialItemName)==null?void 0:e.toUpperCase(),valueTypes:["CONVERTED","RAW"],selectedValueType:"CONVERTED",reductionModes:[{title:"NONE",value:"DECOM"},{title:"REDUCED_MINUTE",value:"REDUCED_MINUTE"},{title:"REDUCED_HOUR",value:"REDUCED_HOUR"},{title:"REDUCED_DAY",value:"REDUCED_DAY"}],selectedArrayIndex:null,selectedReduced:"DECOM",reducedTypes:["MIN","MAX","AVG","STDDEV"],selectedReducedType:"AVG",description:"",hazardous:!1,internalDisabled:!1,packetsDisabled:!1,itemsDisabled:!1,api:null,ALL:{label:"[ ALL ]",value:"ALL",description:"ALL"},UNKNOWN:{label:"[ UNKNOWN ]",value:"UNKNOWN",description:"UNKNOWN"}}},computed:{actualButtonText:function(){return this.selectedPacketName==="ALL"?"Add Target":this.selectedItemName==="ALL"?"Add Packet":this.buttonText},autocompleteDisabled:function(){return this.disabled||this.internalDisabled},buttonDisabled:function(){return this.disabled||this.internalDisabled||this.selectedTargetName===null||this.selectedPacketName===null||this.selectedItemNameWIndex===null},colSize:function(){return this.vertical?12:!1},selectedItemNameWIndex:function(){return this.itemIsArray&&this.selectedArrayIndex!==null&&this.selectedArrayIndex!==this.ALL.label?`${this.selectedItemName}[${this.selectedArrayIndex}]`:this.selectedItemName},includeLatestPacketInDropdown:function(){return this.showLatest&&this.mode==="tlm"},arrayIndexes:function(){let n=this.itemNames.findIndex(e=>e.value===this.selectedItemName),t=[...Array(this.itemNames[n].array).keys()];return(this.allowAll||this.allowAllArrayIndex)&&t.unshift(this.ALL.label),t},itemIsArray:function(){let n=this.itemNames.findIndex(t=>t.value===this.selectedItemName);return!(n===-1||isNaN(this.itemNames[n].array))}},watch:{initialTargetName:function(n){n&&(this.selectedTargetName=n.toUpperCase())},initialPacketName:function(n){n&&(this.selectedPacketName=n.toUpperCase())},initialItemName:function(n){n&&(this.selectedItemName=n.toUpperCase())},mode:function(n,t){this.selectedPacketName=null,this.selectedItemName=null,this.targetNameChanged(this.selectedTargetName)},chooseItem:function(n,t){n?this.updateItems():this.itemNames=[]},itemIsArray:function(n){n?this.selectedArrayIndex||(this.selectedArrayIndex=0):this.selectedArrayIndex=null}},created(){this.internalDisabled=!0,this.api=new Lo,this.api.get_target_names().then(n=>{this.targetNames=n.flatMap(t=>t=="UNKNOWN"?[]:{label:t,value:t}),this.allowAllTargets&&this.targetNames.unshift(this.ALL),this.selectedTargetName?this.updatePackets():(this.selectedTargetName=this.targetNames[0].value,this.targetNameChanged(this.selectedTargetName)),this.unknown&&this.targetNames.push(this.UNKNOWN)})},methods:{updatePackets:function(){if(this.selectedTargetName==="UNKNOWN"){this.packetNames=[this.UNKNOWN],this.selectedPacketName=this.packetNames[0].value,this.updatePacketDetails(this.UNKNOWN.value),this.description="UNKNOWN";return}if(this.selectedTargetName==="ALL"){this.packetNames=[this.ALL],this.selectedPacketName=this.packetNames[0].value,this.updatePacketDetails(this.ALL.value),this.description="ALL";return}this.internalDisabled=!0;const n=this.mode==="tlm"?"get_all_tlm_names":"get_all_cmd_names";this.api[n](this.selectedTargetName,this.hidden).then(t=>{this.packetNames=t.map(e=>({label:e,value:e})),this.allowAll&&this.packetNames.unshift(this.ALL),this.selectedPacketName||(this.selectedPacketName=this.packetNames[0].value),this.updatePacketDetails(this.selectedPacketName),this.packetNames.find(e=>e.value===this.selectedPacketName)&&this.chooseItem&&this.updateItems(),this.internalDisabled=!1})},updateItems:function(){if(this.selectedPacketName!=="ALL")if(this.internalDisabled=!0,this.selectedPacketName==="LATEST")this.api.get_all_tlm_item_names(this.selectedTargetName).then(n=>{this.itemNames=n.map(t=>({label:t,value:t,description:`LATEST ${t}`})),this.finishUpdateItems()});else{const n=this.mode==="tlm"?"get_tlm":"get_cmd";this.api[n](this.selectedTargetName,this.selectedPacketName).then(t=>{this.itemNames=t.items.map(e=>{let r=e.name;return e.data_type=="DERIVED"&&(r+=" *"),{label:r,value:e.name,description:e.description,array:e.array_size/e.bit_size}}),this.itemNames.sort((e,r)=>e.label>r.label?1:-1),this.finishUpdateItems()})}},finishUpdateItems:function(){this.allowAll&&this.itemNames.unshift(this.ALL),this.selectedItemName||(this.selectedItemName=this.itemNames[0].value),this.description=this.itemNames[0].description,this.$emit("on-set",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,itemName:this.selectedItemNameWIndex,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType}),this.internalDisabled=!1},targetNameChanged:function(n){this.selectedTargetName=n,this.selectedPacketName="",this.selectedItemName="",n!==null&&this.updatePackets()},packetNameChanged:function(n){this.selectedItemName="",n!==null&&this.updatePacketDetails(n)},updatePacketDetails:function(n){if(n==="ALL")this.itemsDisabled=!0,this.internalDisabled=!1;else if(n==="LATEST")this.itemsDisabled=!1,this.selectedPacketName="LATEST";else{this.itemsDisabled=!1;const t=this.packetNames.find(e=>n===e.value);if(t){this.selectedPacketName=t.value;const e=this.mode==="tlm"?"get_tlm":"get_cmd";this.api[e](this.selectedTargetName,this.selectedPacketName).then(r=>{this.description=r.description,this.hazardous=r.hazardous})}}this.chooseItem?this.updateItems():this.$emit("on-set",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,itemName:this.selectedItemNameWIndex,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType})},itemNameChanged:function(n){const t=this.itemNames.find(e=>n===e.value);t&&(this.selectedItemName=t.value,this.description=t.description,this.$emit("on-set",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,itemName:this.selectedItemNameWIndex,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType}))},indexChanged:function(n){this.$emit("on-set",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,itemName:this.selectedItemNameWIndex,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType})},buttonPressed:function(){this.selectedPacketName==="ALL"?this.allTargetPacketItems():this.selectedItemName==="ALL"?this.allPacketItems():this.chooseItem?this.$emit("addItem",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,itemName:this.selectedItemNameWIndex,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType}):this.$emit("addItem",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType})},allTargetPacketItems:function(){this.packetNames.forEach(n=>{if(n===this.ALL)return;const t=this.mode==="tlm"?"get_tlm":"get_cmd";this.api[t](this.selectedTargetName,n.value).then(e=>{e.items.forEach(r=>{this.$emit("addItem",{targetName:this.selectedTargetName,packetName:n.value,itemName:r.name,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType})})})})},allPacketItems:function(){this.itemNames.forEach(n=>{n!==this.ALL&&this.$emit("addItem",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,itemName:n.value,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType})})}}},hM={class:"pt-4 pb-4"};function dM(n,t,e,r,f,p){const y=wt("v-autocomplete"),b=wt("v-col"),h=wt("v-list-item"),g=wt("v-divider"),s=wt("v-combobox"),l=wt("v-btn"),u=wt("v-row");return hn(),Br("div",hM,[Ke(u,{"no-gutters":!e.vertical},{default:ht(()=>[Ke(b,{cols:p.colSize,class:"tpic-select pr-4","data-test":"select-target"},{default:ht(()=>[Ke(y,{modelValue:f.selectedTargetName,"onUpdate:modelValue":[t[0]||(t[0]=a=>f.selectedTargetName=a),p.targetNameChanged],label:"Select Target","hide-details":"",density:"compact",variant:"outlined",items:f.targetNames,"item-title":"label","item-value":"value"},null,8,["modelValue","items","onUpdate:modelValue"])]),_:1},8,["cols"]),Ke(b,{cols:p.colSize,class:"tpic-select pr-4","data-test":"select-packet"},{default:ht(()=>[Ke(y,{modelValue:f.selectedPacketName,"onUpdate:modelValue":[t[2]||(t[2]=a=>f.selectedPacketName=a),p.packetNameChanged],label:"Select Packet","hide-details":"",density:"compact",variant:"outlined",disabled:f.packetsDisabled||p.autocompleteDisabled,items:f.packetNames,"item-title":"label","item-value":"value"},rp({_:2},[p.includeLatestPacketInDropdown?{name:"prepend-item",fn:ht(()=>[Ke(h,{title:"LATEST",onClick:t[1]||(t[1]=a=>p.packetNameChanged("LATEST"))}),Ke(g)]),key:"0"}:void 0]),1032,["modelValue","disabled","items","onUpdate:modelValue"])]),_:1},8,["cols"]),e.chooseItem?(hn(),Wr(b,{key:0,cols:p.colSize,class:"tpic-select pr-4","data-test":"select-item"},{default:ht(()=>[Ke(y,{modelValue:f.selectedItemName,"onUpdate:modelValue":[t[3]||(t[3]=a=>f.selectedItemName=a),t[4]||(t[4]=a=>p.itemNameChanged(a))],label:"Select Item","hide-details":"",density:"compact",variant:"outlined",disabled:f.itemsDisabled||p.autocompleteDisabled,items:f.itemNames,"item-title":"label","item-value":"value"},null,8,["modelValue","disabled","items"])]),_:1},8,["cols"])):ei("",!0),e.chooseItem&&p.itemIsArray?(hn(),Wr(b,{key:1,cols:"1",class:"tpic-select pr-4","data-test":"array-index",style:{"min-width":"105px"}},{default:ht(()=>[Ke(s,{modelValue:f.selectedArrayIndex,"onUpdate:modelValue":[t[5]||(t[5]=a=>f.selectedArrayIndex=a),t[6]||(t[6]=a=>p.indexChanged(a))],label:"Index","hide-details":"",density:"compact",variant:"outlined",disabled:f.itemsDisabled||p.autocompleteDisabled,items:p.arrayIndexes,"item-title":"label","item-value":"value"},null,8,["modelValue","disabled","items"])]),_:1})):ei("",!0),e.buttonText?(hn(),Wr(b,{key:2,cols:p.colSize,style:{"max-width":"140px"}},{default:ht(()=>[Ke(l,{disabled:p.buttonDisabled,color:"primary","data-test":"select-send",onClick:p.buttonPressed},{default:ht(()=>[tr(wr(p.actualButtonText),1)]),_:1},8,["disabled","onClick"])]),_:1},8,["cols"])):ei("",!0)]),_:1},8,["no-gutters"]),e.selectTypes?(hn(),Wr(u,{key:0,class:"pt-6","no-gutters":""},{default:ht(()=>[Ke(b,{cols:p.colSize,class:"tpic-select pr-4","data-test":"data-type"},{default:ht(()=>[Ke(y,{modelValue:f.selectedValueType,"onUpdate:modelValue":t[7]||(t[7]=a=>f.selectedValueType=a),label:"Value Type","hide-details":"",density:"compact",variant:"outlined",items:f.valueTypes},null,8,["modelValue","items"])]),_:1},8,["cols"]),Ke(b,{cols:p.colSize,class:"tpic-select pr-4","data-test":"reduced"},{default:ht(()=>[Ke(y,{modelValue:f.selectedReduced,"onUpdate:modelValue":t[8]||(t[8]=a=>f.selectedReduced=a),label:"Reduced","hide-details":"",density:"compact",variant:"outlined",items:f.reductionModes},null,8,["modelValue","items"])]),_:1},8,["cols"]),Ke(b,{cols:p.colSize,class:"tpic-select pr-4","data-test":"reduced-type"},{default:ht(()=>[Ke(y,{modelValue:f.selectedReducedType,"onUpdate:modelValue":t[9]||(t[9]=a=>f.selectedReducedType=a),label:"Reduced Type","hide-details":"",density:"compact",variant:"outlined",disabled:f.selectedReduced==="DECOM",items:f.reducedTypes},null,8,["modelValue","disabled","items"])]),_:1},8,["cols"]),Ke(b,{cols:p.colSize,style:{"max-width":"140px"}},null,8,["cols"])]),_:1})):ei("",!0),Ke(u,{"no-gutters":"",class:"pa-3"},{default:ht(()=>[Ke(b,{cols:p.colSize,class:ip({"openc3-yellow":f.hazardous})},{default:ht(()=>[tr(" Description: "+wr(f.description)+" ",1),f.hazardous?(hn(),Br(ul,{key:0},[tr(" (HAZARDOUS) ")],64)):ei("",!0)]),_:1},8,["cols","class"])]),_:1})])}const O2=er("w",so(uM,[["render",dM],["__scopeId","data-v-75f74b75"]])),Cy=[{path:"/:target?/:packet?",name:"PackerViewer",component:()=>st(()=>ot.import("./PacketViewer-953652030ced8d10f41d.js"),void 0)},{path:"/:pathMatch(.*)*",name:"NotFound",component:cM}];Cy.forEach(wp);const pM=pp({history:gp(),routes:Cy}),gM={dark:!0,colors:{primary:"#005A8F",secondary:"#4DACFF",tertiary:"#BBC1C9","openc3-green":"#56f000","openc3-yellow":"#fce83a","openc3-red":"#ff3838","openc3-blue":"#2dccff","openc3-purple":"#c800c8","openc3-black":"#ffffff","openc3-white":"#ffffff"}},fM={data:function(){return{show:!1,params:{title:"Title",text:"The text that is displayed",okText:"Ok",okClass:"primary",validateText:"CONFIRM",cancelText:"Cancel",html:!1},resolve:null,reject:null,validationText:null,rules:{required:n=>!!n||"Required.",match:n=>n===this.params.validateText||"Value mismatch."}}},computed:{dataTestOk:function(){return`confirm-dialog-${this.params.okText.toLowerCase()}`},dataTestCancel:function(){return`confirm-dialog-${this.params.cancelText.toLowerCase()}`}},methods:{dialog:function(n,t,e){this.params=n,this.show=!0,this.resolve=t,this.reject=e},ok:function(){(!this.params.validateText||this.params.validateText===this.validationText)&&(this.show=!1,this.resolve(!0),this.refresh())},cancel:function(){this.show=!1,this.reject(!0),this.refresh()},refresh:function(){this.validationText=""}}},mM=["innerHTML"],vM={key:2},yM={key:3,class:"validate mt-4"};function wM(n,t,e,r,f,p){const y=wt("v-spacer"),b=wt("v-toolbar"),h=wt("v-icon"),g=wt("v-text-field"),s=wt("v-card-text"),l=wt("v-btn"),u=wt("v-card-actions"),a=wt("v-card"),o=wt("v-dialog"),c=wt("v-app");return hn(),Wr(c,null,{default:ht(()=>[Ke(o,{modelValue:n.show,"onUpdate:modelValue":t[1]||(t[1]=d=>n.show=d),width:"600"},{default:ht(()=>[Ke(a,null,{default:ht(()=>[Ke(b,{height:"24"},{default:ht(()=>[Ke(y),zr("span",null,wr(n.params.title),1),Ke(y)]),_:1}),Ke(s,{class:"mt-4 pa-3"},{default:ht(()=>[n.params.validateText?(hn(),Wr(h,{key:0,class:"mr-2"},{default:ht(()=>t[2]||(t[2]=[tr(" mdi-alert ")])),_:1})):ei("",!0),n.params.html?(hn(),Br("span",{key:1,innerHTML:n.params.text},null,8,mM)):(hn(),Br("span",vM,wr(n.params.text),1)),n.params.validateText?(hn(),Br("div",yM,[tr(" Enter "+wr(n.params.validateText)+" to confirm! ",1),Ke(g,{modelValue:n.validationText,"onUpdate:modelValue":t[0]||(t[0]=d=>n.validationText=d),variant:"solo",density:"compact","single-line":"",rules:[n.rules.required,n.rules.match],"data-test":"confirm-dialog-validate"},null,8,["modelValue","rules"])])):ei("",!0)]),_:1}),Ke(u,{class:"px-2"},{default:ht(()=>[Ke(y),n.params.cancelText?(hn(),Wr(l,{key:0,variant:"outlined","data-test":p.dataTestCancel,onClick:p.cancel},{default:ht(()=>[tr(wr(n.params.cancelText),1)]),_:1},8,["data-test","onClick"])):ei("",!0),Ke(l,{variant:"flat",color:n.params.okClass,"data-test":p.dataTestOk,onClick:p.ok},{default:ht(()=>[tr(wr(n.params.okText),1)]),_:1},8,["color","data-test","onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1})}const bM=so(fM,[["render",wM],["__scopeId","data-v-de532a0f"]]);class xM{constructor(){this.mounted=!1,this.$root=null}mount(){if(this.mounted)return;const t=window.Vue.createApp(bM);t.use(sd);const e=document.createElement("div");document.querySelector("#openc3-app-toolbar > div").appendChild(e),this.$root=t.mount(e),this.mounted=!0}open({title:t,text:e,okText:r,okClass:f,validateText:p,cancelText:y,html:b}){return this.mount(),new Promise((h,g)=>{this.$root.dialog({title:t,text:e,okText:r,okClass:f,validateText:p,cancelText:y,html:b},h,g)})}confirm(t,{okText:e="Ok",cancelText:r="Cancel",okClass:f="primary"}){return this.open({title:"Confirm",text:t,okText:e,okClass:f,validateText:null,cancelText:r,html:!1})}alert(t,{okText:e="Ok",html:r=!1,okClass:f="primary"}){return this.open({title:"Alert",text:t,okText:e,okClass:f,validateText:null,cancelText:null,html:r})}validate(t,{okText:e="Ok",validateText:r="CONFIRM",cancelText:f="Cancel",okClass:p="primary"}){return this.open({title:"Confirm",text:t,okText:e,okClass:p,validateText:r,cancelText:f,html:!1})}}const CM={install(n,t){const e=new xM;n.provide("dialog",e),n.config.globalProperties.hasOwnProperty("$dialog")||(n.config.globalProperties.$dialog=e)}},kM={data:function(){return{showToast:!1,expanded:!1,toastNotification:{title:"Title here",body:"This is the notification body",message:"Overall message here"},timeout:null,noToastPaths:["/login"]}},computed:{toastNotificationIcon:function(){switch(this.toastNotification.type){case"notification":return"mdi-bell";case"alert":default:return"mdi-alert-box"}},toastStyle:function(){return`
|
1494
|
+
`+p):r.stack=p}catch{}}throw r}}_request(t,e){typeof t=="string"?(e=e||{},e.url=t):e=t||{},e=ms(this.defaults,e);const{transitional:r,paramsSerializer:f,headers:p}=e;r!==void 0&&ac.assertOptions(r,{silentJSONParsing:Gi.transitional(Gi.boolean),forcedJSONParsing:Gi.transitional(Gi.boolean),clarifyTimeoutError:Gi.transitional(Gi.boolean)},!1),f!=null&&(_e.isFunction(f)?e.paramsSerializer={serialize:f}:ac.assertOptions(f,{encode:Gi.function,serialize:Gi.function},!0)),e.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?e.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:e.allowAbsoluteUrls=!0),ac.assertOptions(e,{baseUrl:Gi.spelling("baseURL"),withXsrfToken:Gi.spelling("withXSRFToken")},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase();let y=p&&_e.merge(p.common,p[e.method]);p&&_e.forEach(["delete","get","head","post","put","patch","common"],o=>{delete p[o]}),e.headers=Vr.concat(y,p);const b=[];let h=!0;this.interceptors.request.forEach(function(o){typeof o.runWhen=="function"&&o.runWhen(e)===!1||(h=h&&o.synchronous,b.unshift(o.fulfilled,o.rejected))});const g=[];this.interceptors.response.forEach(function(o){g.push(o.fulfilled,o.rejected)});let s,l=0,u;if(!h){const o=[Kv.bind(this),void 0];for(o.unshift.apply(o,b),o.push.apply(o,g),u=o.length,s=Promise.resolve(e);l<u;)s=s.then(o[l++],o[l++]);return s}u=b.length;let a=e;for(l=0;l<u;){const o=b[l++],c=b[l++];try{a=o(a)}catch(d){c.call(this,d);break}}try{s=Kv.call(this,a)}catch(o){return Promise.reject(o)}for(l=0,u=g.length;l<u;)s=s.then(g[l++],g[l++]);return s}getUri(t){t=ms(this.defaults,t);const e=Pv(t.baseURL,t.url,t.allowAbsoluteUrls);return $v(e,t.params,t.paramsSerializer)}};_e.forEach(["delete","get","head","options"],function(n){vs.prototype[n]=function(t,e){return this.request(ms(e||{},{method:n,url:t,data:(e||{}).data}))}}),_e.forEach(["post","put","patch"],function(n){function t(e){return function(r,f,p){return this.request(ms(p||{},{method:n,headers:e?{"Content-Type":"multipart/form-data"}:{},url:r,data:f}))}}vs.prototype[n]=t(),vs.prototype[n+"Form"]=t(!0)});let q_=class bb{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let e;this.promise=new Promise(function(f){e=f});const r=this;this.promise.then(f=>{if(!r._listeners)return;let p=r._listeners.length;for(;p-- >0;)r._listeners[p](f);r._listeners=null}),this.promise.then=f=>{let p;const y=new Promise(b=>{r.subscribe(b),p=b}).then(f);return y.cancel=function(){r.unsubscribe(p)},y},t(function(f,p,y){r.reason||(r.reason=new ta(f,p,y),e(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);e!==-1&&this._listeners.splice(e,1)}toAbortSignal(){const t=new AbortController,e=r=>{t.abort(r)};return this.subscribe(e),t.signal.unsubscribe=()=>this.unsubscribe(e),t.signal}static source(){let t;return{token:new bb(function(e){t=e}),cancel:t}}};function G_(n){return function(t){return n.apply(null,t)}}function Y_(n){return _e.isObject(n)&&n.isAxiosError===!0}const Kh={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Kh).forEach(([n,t])=>{Kh[t]=n});function Yv(n){const t=new vs(n),e=pv(vs.prototype.request,t);return _e.extend(e,vs.prototype,t,{allOwnKeys:!0}),_e.extend(e,t,null,{allOwnKeys:!0}),e.create=function(r){return Yv(ms(n,r))},e}const Xn=tr("E",Yv(Wa));Xn.Axios=vs,Xn.CanceledError=ta,Xn.CancelToken=q_,Xn.isCancel=Lv,Xn.VERSION=qv,Xn.toFormData=tc,Xn.AxiosError=Et,Xn.Cancel=Xn.CanceledError,Xn.all=function(n){return Promise.all(n)},Xn.spread=G_,Xn.isAxiosError=Y_,Xn.mergeConfig=ms,Xn.AxiosHeaders=Vr,Xn.formToJSON=n=>Ev(_e.isHTMLForm(n)?new FormData(n):n),Xn.getAdapter=Vv.getAdapter,Xn.HttpStatusCode=Kh,Xn.default=Xn;const{Axios:g2,AxiosError:f2,CanceledError:m2,isCancel:v2,CancelToken:y2,VERSION:w2,all:b2,Cancel:x2,isAxiosError:C2,spread:k2,toFormData:S2,AxiosHeaders:A2,HttpStatusCode:_2,formToJSON:T2,getAdapter:$2,mergeConfig:M2}=Xn;function Xv(){return Object.assign({},Fs())}function X_(n,t,e){const r=Cn(n,void 0);return r.setTime(r.getTime()+t*hl),r}function Q_(n,t){const e=()=>Gn(void 0,NaN),r=tT(n);let f;if(r.date){const h=nT(r.date,2);f=rT(h.restDateString,h.year)}if(!f||isNaN(+f))return e();const p=+f;let y=0,b;if(r.time&&(y=iT(r.time),isNaN(y)))return e();if(r.timezone){if(b=oT(r.timezone),isNaN(b))return e()}else{const h=new Date(p+y),g=Cn(0,void 0);return g.setFullYear(h.getUTCFullYear(),h.getUTCMonth(),h.getUTCDate()),g.setHours(h.getUTCHours(),h.getUTCMinutes(),h.getUTCSeconds(),h.getUTCMilliseconds()),g}return Cn(p+y+b,void 0)}const lc={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Z_=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,J_=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,eT=/^([+-])(\d{2})(?::?(\d{2}))?$/;function tT(n){const t={},e=n.split(lc.dateTimeDelimiter);let r;if(e.length>2)return t;if(/:/.test(e[0])?r=e[0]:(t.date=e[0],r=e[1],lc.timeZoneDelimiter.test(t.date)&&(t.date=n.split(lc.timeZoneDelimiter)[0],r=n.substr(t.date.length,n.length))),r){const f=lc.timezone.exec(r);f?(t.time=r.replace(f[1],""),t.timezone=f[1]):t.time=r}return t}function nT(n,t){const e=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=n.match(e);if(!r)return{year:NaN,restDateString:""};const f=r[1]?parseInt(r[1]):null,p=r[2]?parseInt(r[2]):null;return{year:p===null?f:p*100,restDateString:n.slice((r[1]||r[2]).length)}}function rT(n,t){if(t===null)return new Date(NaN);const e=n.match(Z_);if(!e)return new Date(NaN);const r=!!e[4],f=za(e[1]),p=za(e[2])-1,y=za(e[3]),b=za(e[4]),h=za(e[5])-1;if(r)return uT(t,b,h)?sT(t,b,h):new Date(NaN);{const g=new Date(0);return!lT(t,p,y)||!cT(t,f)?new Date(NaN):(g.setUTCFullYear(t,p,Math.max(f,y)),g)}}function za(n){return n?parseInt(n):1}function iT(n){const t=n.match(J_);if(!t)return NaN;const e=qh(t[1]),r=qh(t[2]),f=qh(t[3]);return hT(e,r,f)?e*Jc+r*hl+f*1e3:NaN}function qh(n){return n&&parseFloat(n.replace(",","."))||0}function oT(n){if(n==="Z")return 0;const t=n.match(eT);if(!t)return 0;const e=t[1]==="+"?-1:1,r=parseInt(t[2]),f=t[3]&&parseInt(t[3])||0;return dT(r,f)?e*(r*Jc+f*hl):NaN}function sT(n,t,e){const r=new Date(0);r.setUTCFullYear(n,0,4);const f=r.getUTCDay()||7,p=(t-1)*7+e+1-f;return r.setUTCDate(r.getUTCDate()+p),r}const aT=[31,null,31,30,31,30,31,31,30,31,30,31];function Qv(n){return n%400===0||n%4===0&&n%100!==0}function lT(n,t,e){return t>=0&&t<=11&&e>=1&&e<=(aT[t]||(Qv(n)?29:28))}function cT(n,t){return t>=1&&t<=(Qv(n)?366:365)}function uT(n,t,e){return t>=1&&t<=53&&e>=0&&e<=6}function hT(n,t,e){return n===24?t===0&&e===0:e>=0&&e<60&&t>=0&&t<60&&n>=0&&n<25}function dT(n,t){return t>=0&&t<=59}function pT(n,t,e){return X_(n,-t)}function Zv(n,t,e){const r=Xv(),f=mT(n,e.timeZone,e.locale??r.locale);return"formatToParts"in f?gT(f,t):fT(f,t)}function gT(n,t){const e=n.formatToParts(t);for(let r=e.length-1;r>=0;--r)if(e[r].type==="timeZoneName")return e[r].value}function fT(n,t){const e=n.format(t).replace(/\u200E/g,""),r=/ [\w-+ ]+$/.exec(e);return r?r[0].substr(1):""}function mT(n,t,e){return new Intl.DateTimeFormat(e?[e.code,"en-US"]:void 0,{timeZone:t,timeZoneName:n})}function vT(n,t){const e=CT(t);return"formatToParts"in e?wT(e,n):bT(e,n)}const yT={year:0,month:1,day:2,hour:3,minute:4,second:5};function wT(n,t){try{const e=n.formatToParts(t),r=[];for(let f=0;f<e.length;f++){const p=yT[e[f].type];p!==void 0&&(r[p]=parseInt(e[f].value,10))}return r}catch(e){if(e instanceof RangeError)return[NaN];throw e}}function bT(n,t){const e=n.format(t),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(e);return[parseInt(r[3],10),parseInt(r[1],10),parseInt(r[2],10),parseInt(r[4],10),parseInt(r[5],10),parseInt(r[6],10)]}const Gh={},Jv=new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:"America/New_York",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),xT=Jv==="06/25/2014, 00:00:00"||Jv==="06/25/2014 00:00:00";function CT(n){return Gh[n]||(Gh[n]=xT?new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:n,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:n,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})),Gh[n]}function ey(n,t,e,r,f,p,y){const b=new Date(0);return b.setUTCFullYear(n,t,e),b.setUTCHours(r,f,p,y),b}const ty=36e5,kT=6e4,Yh={timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function Xh(n,t,e){if(!n)return 0;let r=Yh.timezoneZ.exec(n);if(r)return 0;let f,p;if(r=Yh.timezoneHH.exec(n),r)return f=parseInt(r[1],10),ny(f)?-(f*ty):NaN;if(r=Yh.timezoneHHMM.exec(n),r){f=parseInt(r[2],10);const y=parseInt(r[3],10);return ny(f,y)?(p=Math.abs(f)*ty+y*kT,r[1]==="+"?-p:p):NaN}if(_T(n)){t=new Date(t||Date.now());const y=e?t:ST(t),b=Qh(y,n);return-(e?b:AT(t,b,n))}return NaN}function ST(n){return ey(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds())}function Qh(n,t){const e=vT(n,t),r=ey(e[0],e[1]-1,e[2],e[3]%24,e[4],e[5],0).getTime();let f=n.getTime();const p=f%1e3;return f-=p>=0?p:1e3+p,r-f}function AT(n,t,e){let r=n.getTime()-t;const f=Qh(new Date(r),e);if(t===f)return t;r-=f-t;const p=Qh(new Date(r),e);return f===p?f:Math.max(f,p)}function ny(n,t){return-23<=n&&n<=23&&(t==null||0<=t&&t<=59)}const ry={};function _T(n){if(ry[n])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:n}),ry[n]=!0,!0}catch{return!1}}const TT=60*1e3,$T={X:function(n,t,e){const r=Zh(e.timeZone,n);if(r===0)return"Z";switch(t){case"X":return iy(r);case"XXXX":case"XX":return na(r);case"XXXXX":case"XXX":default:return na(r,":")}},x:function(n,t,e){const r=Zh(e.timeZone,n);switch(t){case"x":return iy(r);case"xxxx":case"xx":return na(r);case"xxxxx":case"xxx":default:return na(r,":")}},O:function(n,t,e){const r=Zh(e.timeZone,n);switch(t){case"O":case"OO":case"OOO":return"GMT"+MT(r,":");case"OOOO":default:return"GMT"+na(r,":")}},z:function(n,t,e){switch(t){case"z":case"zz":case"zzz":return Zv("short",n,e);case"zzzz":default:return Zv("long",n,e)}}};function Zh(n,t){const e=n?Xh(n,t,!0)/TT:(t==null?void 0:t.getTimezoneOffset())??0;if(Number.isNaN(e))throw new RangeError("Invalid time zone specified: "+n);return e}function cc(n,t){const e=n<0?"-":"";let r=Math.abs(n).toString();for(;r.length<t;)r="0"+r;return e+r}function na(n,t=""){const e=n>0?"-":"+",r=Math.abs(n),f=cc(Math.floor(r/60),2),p=cc(Math.floor(r%60),2);return e+f+t+p}function iy(n,t){return n%60===0?(n>0?"-":"+")+cc(Math.abs(n)/60,2):na(n,t)}function MT(n,t=""){const e=n>0?"-":"+",r=Math.abs(n),f=Math.floor(r/60),p=r%60;return p===0?e+String(f):e+String(f)+t+cc(p,2)}function oy(n){const t=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return t.setUTCFullYear(n.getFullYear()),+n-+t}const IT=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,Jh=36e5,sy=6e4,ET=2,Rr={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:IT};function ay(n,t={}){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(n===null)return new Date(NaN);const e=t.additionalDigits==null?ET:Number(t.additionalDigits);if(e!==2&&e!==1&&e!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(n instanceof Date||typeof n=="object"&&Object.prototype.toString.call(n)==="[object Date]")return new Date(n.getTime());if(typeof n=="number"||Object.prototype.toString.call(n)==="[object Number]")return new Date(n);if(Object.prototype.toString.call(n)!=="[object String]")return new Date(NaN);const r=RT(n),{year:f,restDateString:p}=LT(r.date,e),y=OT(p,f);if(y===null||isNaN(y.getTime()))return new Date(NaN);if(y){const b=y.getTime();let h=0,g;if(r.time&&(h=NT(r.time),h===null||isNaN(h)))return new Date(NaN);if(r.timeZone||t.timeZone){if(g=Xh(r.timeZone||t.timeZone,new Date(b+h)),isNaN(g))return new Date(NaN)}else g=oy(new Date(b+h)),g=oy(new Date(b+h+g));return new Date(b+h+g)}else return new Date(NaN)}function RT(n){const t={};let e=Rr.dateTimePattern.exec(n),r;if(e?(t.date=e[1],r=e[3]):(e=Rr.datePattern.exec(n),e?(t.date=e[1],r=e[2]):(t.date=null,r=n)),r){const f=Rr.timeZone.exec(r);f?(t.time=r.replace(f[1],""),t.timeZone=f[1].trim()):t.time=r}return t}function LT(n,t){if(n){const e=Rr.YYY[t],r=Rr.YYYYY[t];let f=Rr.YYYY.exec(n)||r.exec(n);if(f){const p=f[1];return{year:parseInt(p,10),restDateString:n.slice(p.length)}}if(f=Rr.YY.exec(n)||e.exec(n),f){const p=f[1];return{year:parseInt(p,10)*100,restDateString:n.slice(p.length)}}}return{year:null}}function OT(n,t){if(t===null)return null;let e,r,f;if(!n||!n.length)return e=new Date(0),e.setUTCFullYear(t),e;let p=Rr.MM.exec(n);if(p)return e=new Date(0),r=parseInt(p[1],10)-1,uy(t,r)?(e.setUTCFullYear(t,r),e):new Date(NaN);if(p=Rr.DDD.exec(n),p){e=new Date(0);const y=parseInt(p[1],10);return FT(t,y)?(e.setUTCFullYear(t,0,y),e):new Date(NaN)}if(p=Rr.MMDD.exec(n),p){e=new Date(0),r=parseInt(p[1],10)-1;const y=parseInt(p[2],10);return uy(t,r,y)?(e.setUTCFullYear(t,r,y),e):new Date(NaN)}if(p=Rr.Www.exec(n),p)return f=parseInt(p[1],10)-1,hy(f)?ly(t,f):new Date(NaN);if(p=Rr.WwwD.exec(n),p){f=parseInt(p[1],10)-1;const y=parseInt(p[2],10)-1;return hy(f,y)?ly(t,f,y):new Date(NaN)}return null}function NT(n){let t,e,r=Rr.HH.exec(n);if(r)return t=parseFloat(r[1].replace(",",".")),ed(t)?t%24*Jh:NaN;if(r=Rr.HHMM.exec(n),r)return t=parseInt(r[1],10),e=parseFloat(r[2].replace(",",".")),ed(t,e)?t%24*Jh+e*sy:NaN;if(r=Rr.HHMMSS.exec(n),r){t=parseInt(r[1],10),e=parseInt(r[2],10);const f=parseFloat(r[3].replace(",","."));return ed(t,e,f)?t%24*Jh+e*sy+f*1e3:NaN}return null}function ly(n,t,e){t=t||0,e=e||0;const r=new Date(0);r.setUTCFullYear(n,0,4);const f=r.getUTCDay()||7,p=t*7+e+1-f;return r.setUTCDate(r.getUTCDate()+p),r}const DT=[31,28,31,30,31,30,31,31,30,31,30,31],PT=[31,29,31,30,31,30,31,31,30,31,30,31];function cy(n){return n%400===0||n%4===0&&n%100!==0}function uy(n,t,e){if(t<0||t>11)return!1;if(e!=null){if(e<1)return!1;const r=cy(n);if(r&&e>PT[t]||!r&&e>DT[t])return!1}return!0}function FT(n,t){if(t<1)return!1;const e=cy(n);return!(e&&t>366||!e&&t>365)}function hy(n,t){return!(n<0||n>52||t!=null&&(t<0||t>6))}function ed(n,t,e){return!(n<0||n>=25||t!=null&&(t<0||t>=60)||e!=null&&(e<0||e>=60))}const WT=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function BT(n,t,e={}){t=String(t);const r=t.match(WT);if(r){const f=ay(e.originalDate||n,e);t=r.reduce(function(p,y){if(y[0]==="'")return p;const b=p.indexOf(y),h=p[b-1]==="'",g=p.replace(y,"'"+$T[y[0]](f,y,e)+"'");return h?g.substring(0,b-1)+g.substring(b+1):g},t)}return rs(n,t,e)}function zT(n,t,e){n=ay(n,e);const r=Xh(t,n,!0),f=new Date(n.getTime()-r),p=new Date(0);return p.setFullYear(f.getUTCFullYear(),f.getUTCMonth(),f.getUTCDate()),p.setHours(f.getUTCHours(),f.getUTCMinutes(),f.getUTCSeconds(),f.getUTCMilliseconds()),p}function uc(n,t,e,r){return r={...r,timeZone:t,originalDate:n},BT(zT(n,t,{timeZone:r.timeZone}),e,r)}const hc="yyyy-MM-dd",dy="HH:mm:ss.SSS",py="HH:mm:ss",dc=`${hc} ${dy}`,gy=`${hc} ${py}`,I2=tr("R",{methods:{parseDateTime(n,t){return n.includes(" ")&&(n=n.replace(" ","T")),t&&t==="UTC"&&(n+="Z"),Date.parse(n)},formatUtcToLocal(n,t){return rs(!t||t==="local"?pT(n,n.getTimezoneOffset()):n,dc)},formatDateTime(n,t){return!t||t==="local"?rs(n,dc):uc(n,t,dc)},formatDateTimeHMS(n,t){return!t||t==="local"?rs(n,gy):uc(n,t,gy)},formatDate:function(n,t){return!t||t==="local"?rs(n,hc):uc(n,this.timeZone,hc)},formatTime:function(n,t,e=dy){return!t||t==="local"?rs(n,e):uc(n,this.timeZone,e)},formatTimeHMS:function(n,t){return this.formatTime(n,t,py)},formatTimestamp(n,t){return this.formatDateTime(Q_(n),t)},formatSeconds(n,t){return this.formatDateTime(new Date(n*1e3),t)},formatNanoseconds(n,t){return this.formatDateTime(new Date(parseInt(n)/1e6),t)}}});var jT=Object.defineProperty,HT=(n,t,e)=>t in n?jT(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,et=(n,t,e)=>HT(n,typeof t!="symbol"?t+"":t,e);function td(n,t,e){const r=Cn(n,e==null?void 0:e.in);return isNaN(t)?Gn((e==null?void 0:e.in)||n,NaN):(t&&r.setDate(r.getDate()+t),r)}function UT(n,t){const e=Cn(n,void 0).getDay();return e===0?7:e}function VT(n,t){const e=KT(t)?new t(0):Gn(t,0);return e.setFullYear(n.getFullYear(),n.getMonth(),n.getDate()),e.setHours(n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()),e}function KT(n){var t;return typeof n=="function"&&((t=n.prototype)==null?void 0:t.constructor)===n}const qT=10;let fy=class{constructor(){et(this,"subPriority",0)}validate(t,e){return!0}};class GT extends fy{constructor(t,e,r,f,p){super(),this.value=t,this.validateValue=e,this.setValue=r,this.priority=f,p&&(this.subPriority=p)}validate(t,e){return this.validateValue(t,this.value,e)}set(t,e,r){return this.setValue(t,e,this.value,r)}}class YT extends fy{constructor(t,e){super(),et(this,"priority",qT),et(this,"subPriority",-1),this.context=t||(r=>Gn(e,r))}set(t,e){return e.timestampIsSet?t:Gn(t,VT(t,this.context))}}class en{run(t,e,r,f){const p=this.parse(t,e,r,f);return p?{setter:new GT(p.value,this.validate,this.set,this.priority,this.subPriority),rest:p.rest}:null}validate(t,e,r){return!0}}class XT extends en{constructor(){super(...arguments),et(this,"priority",140),et(this,"incompatibleTokens",["R","u","t","T"])}parse(t,e,r){switch(e){case"G":case"GG":case"GGG":return r.era(t,{width:"abbreviated"})||r.era(t,{width:"narrow"});case"GGGGG":return r.era(t,{width:"narrow"});case"GGGG":default:return r.era(t,{width:"wide"})||r.era(t,{width:"abbreviated"})||r.era(t,{width:"narrow"})}}set(t,e,r){return e.era=r,t.setFullYear(r,0,1),t.setHours(0,0,0,0),t}}const zn={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Yi={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function jn(n,t){return n&&{value:t(n.value),rest:n.rest}}function Tn(n,t){const e=t.match(n);return e?{value:parseInt(e[0],10),rest:t.slice(e[0].length)}:null}function Xi(n,t){const e=t.match(n);if(!e)return null;if(e[0]==="Z")return{value:0,rest:t.slice(1)};const r=e[1]==="+"?1:-1,f=e[2]?parseInt(e[2],10):0,p=e[3]?parseInt(e[3],10):0,y=e[5]?parseInt(e[5],10):0;return{value:r*(f*Jc+p*hl+y*Fb),rest:t.slice(e[0].length)}}function my(n){return Tn(zn.anyDigitsSigned,n)}function En(n,t){switch(n){case 1:return Tn(zn.singleDigit,t);case 2:return Tn(zn.twoDigits,t);case 3:return Tn(zn.threeDigits,t);case 4:return Tn(zn.fourDigits,t);default:return Tn(new RegExp("^\\d{1,"+n+"}"),t)}}function vy(n,t){switch(n){case 1:return Tn(zn.singleDigitSigned,t);case 2:return Tn(zn.twoDigitsSigned,t);case 3:return Tn(zn.threeDigitsSigned,t);case 4:return Tn(zn.fourDigitsSigned,t);default:return Tn(new RegExp("^-?\\d{1,"+n+"}"),t)}}function nd(n){switch(n){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function yy(n,t){const e=t>0,r=e?t:1-t;let f;if(r<=50)f=n||100;else{const p=r+50,y=Math.trunc(p/100)*100,b=n>=p%100;f=n+y-(b?100:0)}return e?f:1-f}function wy(n){return n%400===0||n%4===0&&n%100!==0}class QT extends en{constructor(){super(...arguments),et(this,"priority",130),et(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(t,e,r){const f=p=>({year:p,isTwoDigitYear:e==="yy"});switch(e){case"y":return jn(En(4,t),f);case"yo":return jn(r.ordinalNumber(t,{unit:"year"}),f);default:return jn(En(e.length,t),f)}}validate(t,e){return e.isTwoDigitYear||e.year>0}set(t,e,r){const f=t.getFullYear();if(r.isTwoDigitYear){const y=yy(r.year,f);return t.setFullYear(y,0,1),t.setHours(0,0,0,0),t}const p=!("era"in e)||e.era===1?r.year:1-r.year;return t.setFullYear(p,0,1),t.setHours(0,0,0,0),t}}let ZT=class extends en{constructor(){super(...arguments),et(this,"priority",130),et(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(t,e,r){const f=p=>({year:p,isTwoDigitYear:e==="YY"});switch(e){case"Y":return jn(En(4,t),f);case"Yo":return jn(r.ordinalNumber(t,{unit:"year"}),f);default:return jn(En(e.length,t),f)}}validate(t,e){return e.isTwoDigitYear||e.year>0}set(t,e,r,f){const p=tu(t,f);if(r.isTwoDigitYear){const b=yy(r.year,p);return t.setFullYear(b,0,f.firstWeekContainsDate),t.setHours(0,0,0,0),Io(t,f)}const y=!("era"in e)||e.era===1?r.year:1-r.year;return t.setFullYear(y,0,f.firstWeekContainsDate),t.setHours(0,0,0,0),Io(t,f)}};class JT extends en{constructor(){super(...arguments),et(this,"priority",130),et(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(t,e){return vy(e==="R"?4:e.length,t)}set(t,e,r){const f=Gn(t,0);return f.setFullYear(r,0,4),f.setHours(0,0,0,0),Ws(f)}}class e$ extends en{constructor(){super(...arguments),et(this,"priority",130),et(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(t,e){return vy(e==="u"?4:e.length,t)}set(t,e,r){return t.setFullYear(r,0,1),t.setHours(0,0,0,0),t}}class t$ extends en{constructor(){super(...arguments),et(this,"priority",120),et(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(t,e,r){switch(e){case"Q":case"QQ":return En(e.length,t);case"Qo":return r.ordinalNumber(t,{unit:"quarter"});case"QQQ":return r.quarter(t,{width:"abbreviated",context:"formatting"})||r.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return r.quarter(t,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(t,{width:"wide",context:"formatting"})||r.quarter(t,{width:"abbreviated",context:"formatting"})||r.quarter(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=1&&e<=4}set(t,e,r){return t.setMonth((r-1)*3,1),t.setHours(0,0,0,0),t}}class n$ extends en{constructor(){super(...arguments),et(this,"priority",120),et(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(t,e,r){switch(e){case"q":case"qq":return En(e.length,t);case"qo":return r.ordinalNumber(t,{unit:"quarter"});case"qqq":return r.quarter(t,{width:"abbreviated",context:"standalone"})||r.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return r.quarter(t,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(t,{width:"wide",context:"standalone"})||r.quarter(t,{width:"abbreviated",context:"standalone"})||r.quarter(t,{width:"narrow",context:"standalone"})}}validate(t,e){return e>=1&&e<=4}set(t,e,r){return t.setMonth((r-1)*3,1),t.setHours(0,0,0,0),t}}class r$ extends en{constructor(){super(...arguments),et(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),et(this,"priority",110)}parse(t,e,r){const f=p=>p-1;switch(e){case"M":return jn(Tn(zn.month,t),f);case"MM":return jn(En(2,t),f);case"Mo":return jn(r.ordinalNumber(t,{unit:"month"}),f);case"MMM":return r.month(t,{width:"abbreviated",context:"formatting"})||r.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return r.month(t,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(t,{width:"wide",context:"formatting"})||r.month(t,{width:"abbreviated",context:"formatting"})||r.month(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=0&&e<=11}set(t,e,r){return t.setMonth(r,1),t.setHours(0,0,0,0),t}}class i$ extends en{constructor(){super(...arguments),et(this,"priority",110),et(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(t,e,r){const f=p=>p-1;switch(e){case"L":return jn(Tn(zn.month,t),f);case"LL":return jn(En(2,t),f);case"Lo":return jn(r.ordinalNumber(t,{unit:"month"}),f);case"LLL":return r.month(t,{width:"abbreviated",context:"standalone"})||r.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return r.month(t,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(t,{width:"wide",context:"standalone"})||r.month(t,{width:"abbreviated",context:"standalone"})||r.month(t,{width:"narrow",context:"standalone"})}}validate(t,e){return e>=0&&e<=11}set(t,e,r){return t.setMonth(r,1),t.setHours(0,0,0,0),t}}function o$(n,t,e){const r=Cn(n,e==null?void 0:e.in),f=$p(r,e)-t;return r.setDate(r.getDate()-f*7),Cn(r,e==null?void 0:e.in)}class s$ extends en{constructor(){super(...arguments),et(this,"priority",100),et(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(t,e,r){switch(e){case"w":return Tn(zn.week,t);case"wo":return r.ordinalNumber(t,{unit:"week"});default:return En(e.length,t)}}validate(t,e){return e>=1&&e<=53}set(t,e,r,f){return Io(o$(t,r,f),f)}}function a$(n,t,e){const r=Cn(n,void 0),f=Tp(r)-t;return r.setDate(r.getDate()-f*7),r}class l$ extends en{constructor(){super(...arguments),et(this,"priority",100),et(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(t,e,r){switch(e){case"I":return Tn(zn.week,t);case"Io":return r.ordinalNumber(t,{unit:"week"});default:return En(e.length,t)}}validate(t,e){return e>=1&&e<=53}set(t,e,r){return Ws(a$(t,r))}}const c$=[31,28,31,30,31,30,31,31,30,31,30,31],u$=[31,29,31,30,31,30,31,31,30,31,30,31];class h$ extends en{constructor(){super(...arguments),et(this,"priority",90),et(this,"subPriority",1),et(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(t,e,r){switch(e){case"d":return Tn(zn.date,t);case"do":return r.ordinalNumber(t,{unit:"date"});default:return En(e.length,t)}}validate(t,e){const r=t.getFullYear(),f=wy(r),p=t.getMonth();return f?e>=1&&e<=u$[p]:e>=1&&e<=c$[p]}set(t,e,r){return t.setDate(r),t.setHours(0,0,0,0),t}}class d$ extends en{constructor(){super(...arguments),et(this,"priority",90),et(this,"subpriority",1),et(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(t,e,r){switch(e){case"D":case"DD":return Tn(zn.dayOfYear,t);case"Do":return r.ordinalNumber(t,{unit:"date"});default:return En(e.length,t)}}validate(t,e){const r=t.getFullYear();return wy(r)?e>=1&&e<=366:e>=1&&e<=365}set(t,e,r){return t.setMonth(0,r),t.setHours(0,0,0,0),t}}function rd(n,t,e){var r,f,p,y;const b=Fs(),h=(e==null?void 0:e.weekStartsOn)??((f=(r=e==null?void 0:e.locale)==null?void 0:r.options)==null?void 0:f.weekStartsOn)??b.weekStartsOn??((y=(p=b.locale)==null?void 0:p.options)==null?void 0:y.weekStartsOn)??0,g=Cn(n,e==null?void 0:e.in),s=g.getDay(),l=(t%7+7)%7,u=7-h,a=t<0||t>6?t-(s+u)%7:(l+u)%7-(s+u)%7;return td(g,a,e)}class p$ extends en{constructor(){super(...arguments),et(this,"priority",90),et(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(t,e,r){switch(e){case"E":case"EE":case"EEE":return r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return r.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});case"EEEE":default:return r.day(t,{width:"wide",context:"formatting"})||r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=0&&e<=6}set(t,e,r,f){return t=rd(t,r,f),t.setHours(0,0,0,0),t}}class g$ extends en{constructor(){super(...arguments),et(this,"priority",90),et(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(t,e,r,f){const p=y=>{const b=Math.floor((y-1)/7)*7;return(y+f.weekStartsOn+6)%7+b};switch(e){case"e":case"ee":return jn(En(e.length,t),p);case"eo":return jn(r.ordinalNumber(t,{unit:"day"}),p);case"eee":return r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});case"eeeee":return r.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});case"eeee":default:return r.day(t,{width:"wide",context:"formatting"})||r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=0&&e<=6}set(t,e,r,f){return t=rd(t,r,f),t.setHours(0,0,0,0),t}}let f$=class extends en{constructor(){super(...arguments),et(this,"priority",90),et(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(t,e,r,f){const p=y=>{const b=Math.floor((y-1)/7)*7;return(y+f.weekStartsOn+6)%7+b};switch(e){case"c":case"cc":return jn(En(e.length,t),p);case"co":return jn(r.ordinalNumber(t,{unit:"day"}),p);case"ccc":return r.day(t,{width:"abbreviated",context:"standalone"})||r.day(t,{width:"short",context:"standalone"})||r.day(t,{width:"narrow",context:"standalone"});case"ccccc":return r.day(t,{width:"narrow",context:"standalone"});case"cccccc":return r.day(t,{width:"short",context:"standalone"})||r.day(t,{width:"narrow",context:"standalone"});case"cccc":default:return r.day(t,{width:"wide",context:"standalone"})||r.day(t,{width:"abbreviated",context:"standalone"})||r.day(t,{width:"short",context:"standalone"})||r.day(t,{width:"narrow",context:"standalone"})}}validate(t,e){return e>=0&&e<=6}set(t,e,r,f){return t=rd(t,r,f),t.setHours(0,0,0,0),t}};function m$(n,t,e){const r=Cn(n,void 0),f=UT(r),p=t-f;return td(r,p,e)}let v$=class extends en{constructor(){super(...arguments),et(this,"priority",90),et(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(t,e,r){const f=p=>p===0?7:p;switch(e){case"i":case"ii":return En(e.length,t);case"io":return r.ordinalNumber(t,{unit:"day"});case"iii":return jn(r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"}),f);case"iiiii":return jn(r.day(t,{width:"narrow",context:"formatting"}),f);case"iiiiii":return jn(r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"}),f);case"iiii":default:return jn(r.day(t,{width:"wide",context:"formatting"})||r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"}),f)}}validate(t,e){return e>=1&&e<=7}set(t,e,r){return t=m$(t,r),t.setHours(0,0,0,0),t}};class y$ extends en{constructor(){super(...arguments),et(this,"priority",80),et(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(t,e,r){switch(e){case"a":case"aa":case"aaa":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return r.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,r){return t.setHours(nd(r),0,0,0),t}}class w$ extends en{constructor(){super(...arguments),et(this,"priority",80),et(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(t,e,r){switch(e){case"b":case"bb":case"bbb":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return r.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,r){return t.setHours(nd(r),0,0,0),t}}class b$ extends en{constructor(){super(...arguments),et(this,"priority",80),et(this,"incompatibleTokens",["a","b","t","T"])}parse(t,e,r){switch(e){case"B":case"BB":case"BBB":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return r.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,r){return t.setHours(nd(r),0,0,0),t}}class x$ extends en{constructor(){super(...arguments),et(this,"priority",70),et(this,"incompatibleTokens",["H","K","k","t","T"])}parse(t,e,r){switch(e){case"h":return Tn(zn.hour12h,t);case"ho":return r.ordinalNumber(t,{unit:"hour"});default:return En(e.length,t)}}validate(t,e){return e>=1&&e<=12}set(t,e,r){const f=t.getHours()>=12;return f&&r<12?t.setHours(r+12,0,0,0):!f&&r===12?t.setHours(0,0,0,0):t.setHours(r,0,0,0),t}}class C$ extends en{constructor(){super(...arguments),et(this,"priority",70),et(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(t,e,r){switch(e){case"H":return Tn(zn.hour23h,t);case"Ho":return r.ordinalNumber(t,{unit:"hour"});default:return En(e.length,t)}}validate(t,e){return e>=0&&e<=23}set(t,e,r){return t.setHours(r,0,0,0),t}}class k$ extends en{constructor(){super(...arguments),et(this,"priority",70),et(this,"incompatibleTokens",["h","H","k","t","T"])}parse(t,e,r){switch(e){case"K":return Tn(zn.hour11h,t);case"Ko":return r.ordinalNumber(t,{unit:"hour"});default:return En(e.length,t)}}validate(t,e){return e>=0&&e<=11}set(t,e,r){return t.getHours()>=12&&r<12?t.setHours(r+12,0,0,0):t.setHours(r,0,0,0),t}}class S$ extends en{constructor(){super(...arguments),et(this,"priority",70),et(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(t,e,r){switch(e){case"k":return Tn(zn.hour24h,t);case"ko":return r.ordinalNumber(t,{unit:"hour"});default:return En(e.length,t)}}validate(t,e){return e>=1&&e<=24}set(t,e,r){const f=r<=24?r%24:r;return t.setHours(f,0,0,0),t}}class A$ extends en{constructor(){super(...arguments),et(this,"priority",60),et(this,"incompatibleTokens",["t","T"])}parse(t,e,r){switch(e){case"m":return Tn(zn.minute,t);case"mo":return r.ordinalNumber(t,{unit:"minute"});default:return En(e.length,t)}}validate(t,e){return e>=0&&e<=59}set(t,e,r){return t.setMinutes(r,0,0),t}}class _$ extends en{constructor(){super(...arguments),et(this,"priority",50),et(this,"incompatibleTokens",["t","T"])}parse(t,e,r){switch(e){case"s":return Tn(zn.second,t);case"so":return r.ordinalNumber(t,{unit:"second"});default:return En(e.length,t)}}validate(t,e){return e>=0&&e<=59}set(t,e,r){return t.setSeconds(r,0),t}}class T$ extends en{constructor(){super(...arguments),et(this,"priority",30),et(this,"incompatibleTokens",["t","T"])}parse(t,e){const r=f=>Math.trunc(f*Math.pow(10,-e.length+3));return jn(En(e.length,t),r)}set(t,e,r){return t.setMilliseconds(r),t}}class $$ extends en{constructor(){super(...arguments),et(this,"priority",10),et(this,"incompatibleTokens",["t","T","x"])}parse(t,e){switch(e){case"X":return Xi(Yi.basicOptionalMinutes,t);case"XX":return Xi(Yi.basic,t);case"XXXX":return Xi(Yi.basicOptionalSeconds,t);case"XXXXX":return Xi(Yi.extendedOptionalSeconds,t);case"XXX":default:return Xi(Yi.extended,t)}}set(t,e,r){return e.timestampIsSet?t:Gn(t,t.getTime()-dl(t)-r)}}class M$ extends en{constructor(){super(...arguments),et(this,"priority",10),et(this,"incompatibleTokens",["t","T","X"])}parse(t,e){switch(e){case"x":return Xi(Yi.basicOptionalMinutes,t);case"xx":return Xi(Yi.basic,t);case"xxxx":return Xi(Yi.basicOptionalSeconds,t);case"xxxxx":return Xi(Yi.extendedOptionalSeconds,t);case"xxx":default:return Xi(Yi.extended,t)}}set(t,e,r){return e.timestampIsSet?t:Gn(t,t.getTime()-dl(t)-r)}}class I$ extends en{constructor(){super(...arguments),et(this,"priority",40),et(this,"incompatibleTokens","*")}parse(t){return my(t)}set(t,e,r){return[Gn(t,r*1e3),{timestampIsSet:!0}]}}class E$ extends en{constructor(){super(...arguments),et(this,"priority",20),et(this,"incompatibleTokens","*")}parse(t){return my(t)}set(t,e,r){return[Gn(t,r),{timestampIsSet:!0}]}}const R$={G:new XT,y:new QT,Y:new ZT,R:new JT,u:new e$,Q:new t$,q:new n$,M:new r$,L:new i$,w:new s$,I:new l$,d:new h$,D:new d$,E:new p$,e:new g$,c:new f$,i:new v$,a:new y$,b:new w$,B:new b$,h:new x$,H:new C$,K:new k$,k:new S$,m:new A$,s:new _$,S:new T$,X:new $$,x:new M$,t:new I$,T:new E$},L$=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,O$=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,N$=/^'([^]*?)'?$/,D$=/''/g,P$=/\S/,F$=/[a-zA-Z]/;function W$(n,t,e,r){var f,p,y,b;const h=()=>Gn(e,NaN),g=Xv(),s=g.locale??_p,l=g.firstWeekContainsDate??((p=(f=g.locale)==null?void 0:f.options)==null?void 0:p.firstWeekContainsDate)??1,u=g.weekStartsOn??((b=(y=g.locale)==null?void 0:y.options)==null?void 0:b.weekStartsOn)??0;if(!t)return n?h():Cn(e,void 0);const a={firstWeekContainsDate:l,weekStartsOn:u,locale:s},o=[new YT(void 0,e)],c=t.match(O$).map($=>{const S=$[0];if(S in nu){const C=nu[S];return C($,s.formatLong)}return $}).join("").match(L$),d=[];for(let $ of c){Np($)&&ru($,t,n),Op($)&&ru($,t,n);const S=$[0],C=R$[S];if(C){const{incompatibleTokens:R}=C;if(Array.isArray(R)){const P=d.find(I=>R.includes(I.token)||I.token===S);if(P)throw new RangeError(`The format string mustn't contain \`${P.fullToken}\` and \`${$}\` at the same time`)}else if(C.incompatibleTokens==="*"&&d.length>0)throw new RangeError(`The format string mustn't contain \`${$}\` and any other token at the same time`);d.push({token:S,fullToken:$});const L=C.run(n,$,s.match,a);if(!L)return h();o.push(L.setter),n=L.rest}else{if(S.match(F$))throw new RangeError("Format string contains an unescaped latin alphabet character `"+S+"`");if($==="''"?$="'":S==="'"&&($=B$($)),n.indexOf($)===0)n=n.slice($.length);else return h()}}if(n.length>0&&P$.test(n))return h();const w=o.map($=>$.priority).sort(($,S)=>S-$).filter(($,S,C)=>C.indexOf($)===S).map($=>o.filter(S=>S.priority===$).sort((S,C)=>C.subPriority-S.subPriority)).map($=>$[0]);let x=Cn(e,void 0);if(isNaN(+x))return h();const E={};for(const $ of w){if(!$.validate(x,a))return h();const S=$.set(x,E,a);Array.isArray(S)?(x=S[0],Object.assign(E,S[1])):x=S}return x}function B$(n){return n.match(N$)[1].replace(D$,"'")}const z$="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOAAAAAgCAYAAAALxXRVAAAAxHpUWHRSYXcgcHJvZmlsZSB0eXBlIGV4aWYAAHjabVDbDcMwCPxnio5gc8TB4zhtKnWDjl8IJEranmReh84Are/Xk24OrkIyzdp6a8UgXToPC7QExmZrkc1uWJOy/FIn3gm2EswjUm3Zv9frIRBuWDSdhPSexHIluqS+fgnlz/CJPH6kUE8hcBA1BUasVVrX+bzCcuyW0HjkRvQ69k8+2/Uek/0D5hUVxSwgMQD8gTAsaGYBb6zmhxFeEWiK2UH+3WkHfQAmGFlDwtBoyQAAAYVpQ0NQSUNDIHByb2ZpbGUAAHicfZE9SMNQFIVPW7UiFRE7iIhkqE7WQUUcaxWKUCHUCq06mLz0D5o0JCkujoJrwcGfxaqDi7OuDq6CIPgD4uripOgiJd6XFFrEeOHxPs675/DefYC/Xmaq2REDVM0yUom4kMmuCsFXdGEE/fBhQmKmPieKSXjW1z31Ud1FeZZ335/Vq+RMBvgE4hjTDYt4g3hm09I57xOHWVFSiM+Jxw26IPEj12WX3zgXHPbzzLCRTs0Th4mFQhvLbcyKhko8TRxRVI3y/RmXFc5bnNVylTXvyV8Yymkry1ynNYwEFrEEEQJkVFFCGRaitGukmEjRedzDP+T4RXLJ5CqBkWMBFaiQHD/4H/yerZmfmnSTQnGg88W2P0aB4C7QqNn297FtN06AwDNwpbX8lTow+0l6raVFjoC+beDiuqXJe8DlDjD4pEuG5EgBWv58Hng/o2/KAgO3QM+aO7fmOU4fgDTNKnkDHBwCYwXKXvd4d3f73P7tac7vB5UicrQ0WLbfAAANemlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4KPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNC40LjAtRXhpdjIiPgogPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iCiAgICB4bWxuczpzdEV2dD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlRXZlbnQjIgogICAgeG1sbnM6R0lNUD0iaHR0cDovL3d3dy5naW1wLm9yZy94bXAvIgogICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIgogICAgeG1sbnM6dGlmZj0iaHR0cDovL25zLmFkb2JlLmNvbS90aWZmLzEuMC8iCiAgICB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iCiAgIHhtcE1NOkRvY3VtZW50SUQ9ImdpbXA6ZG9jaWQ6Z2ltcDozYjNlMzQ0NC03YTU4LTQxYjItYTZjYi0wMzljNWI3NjRmN2IiCiAgIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MGUxZjUyNzQtNTMyNC00MzE5LWE3MjYtOGQyNjJlNjI1Y2YwIgogICB4bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ9InhtcC5kaWQ6ZDkzZGI3ODgtMmQwNi00NjdhLWI2OGItZWJlNmJiNGU1ODQ2IgogICBHSU1QOkFQST0iMi4wIgogICBHSU1QOlBsYXRmb3JtPSJNYWMgT1MiCiAgIEdJTVA6VGltZVN0YW1wPSIxNjg4MTUzMjA5MTAxNDUxIgogICBHSU1QOlZlcnNpb249IjIuMTAuMzQiCiAgIGRjOkZvcm1hdD0iaW1hZ2UvcG5nIgogICB0aWZmOk9yaWVudGF0aW9uPSIxIgogICB4bXA6Q3JlYXRvclRvb2w9IkdJTVAgMi4xMCIKICAgeG1wOk1ldGFkYXRhRGF0ZT0iMjAyMzowNjozMFQxMzoyNjo0OC0wNjowMCIKICAgeG1wOk1vZGlmeURhdGU9IjIwMjM6MDY6MzBUMTM6MjY6NDgtMDY6MDAiPgogICA8eG1wTU06SGlzdG9yeT4KICAgIDxyZGY6U2VxPgogICAgIDxyZGY6bGkKICAgICAgc3RFdnQ6YWN0aW9uPSJzYXZlZCIKICAgICAgc3RFdnQ6Y2hhbmdlZD0iLyIKICAgICAgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDozNWQ3MTYyZi0xYWQ1LTQwNWUtODAxOS03NmExMTI4MDI1YmYiCiAgICAgIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkdpbXAgMi4xMCAoTWFjIE9TKSIKICAgICAgc3RFdnQ6d2hlbj0iMjAyMy0wNi0zMFQxMzoyNjo0OS0wNjowMCIvPgogICAgPC9yZGY6U2VxPgogICA8L3htcE1NOkhpc3Rvcnk+CiAgPC9yZGY6RGVzY3JpcHRpb24+CiA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgCjw/eHBhY2tldCBlbmQ9InciPz5gv8dKAAAABmJLR0QA9QAHANj00CgxAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH5wYeExoxB4CzXgAAB65JREFUeNrtnF9sFNcVh78z6z8kEwgPTUVxTZqYh2lVbAKVKleuiuEJkGzIAzFSpEQukaoqQUUhiUiLSkRD2hQ1FYmqqnEtUqUK7UPBVozUBzBpUHkproGXrVqXAoKgKg/EZKFre+f0YcftFs967/zz7rrze5y999yd2fn2d8+9ZwZSpUqVKlWqVKmMpb9vcvT9zB90xF6RXo1UYWWllyAcfEzPjKL6ddy7oymEqcJKTBvmmrN7gR8bNt9v550fLG74KIUui3Vft2zN3Ywaf+bm1zTJ79+w4o8Stu/OO7ToNNsUtgJtqqwEEOEGMCEwIo2ceO9+rifx3TvGtdUt0CuwBaVNxRtfuYEwoXDSyjB0Ya1cW1QABoQvEoTa2XkG1W8kc7bygZw7tyFm+GKFsBYB3HmHFneKAyr0oxVmTYIryqDVxIG4QHxsTFcWXF5R2GV4Uw9kLL7/53Vyo+6noCHhAziYa85+L3CvTOZAYmcbIXYF+ACcxTgd7ZukpzBFVmFXRfgAFEthV2GKbN8kPVHHbx/TnhnXG9/0t4JdMy7Z9jHtqWsAI8AXGkI5e/YMIh8k4n5nz55JCL5FCWHfJ+x2lePAAyG6P+Aqx/s+YXfY8dec12fVZQhYGqL7UnUZWnNen61LAGOAL7wTJuGCIWMGgG9RQdg3SY8Lbxi53jxu6MIbYZywfUx7UN6MnrTzZi07oZSBbx9w6J7DN4BXgU7gyTLx3gXOAd+FYoJcopftvPNaVXLBkLlfCPgi54S1kAPuvENLYYpsSOfz06eZJhzTnPCxMV0545It43y3LTgsGYaXN/E3gFtTrNYCPS7sLdenwcKJIye8fPIpe3Sy90WBXkXbihDJhMJQ97Kh1x/Z8k4uEoBlnO8ysAX4C7AK+Caw3we+Q16bNmAUaAm7MKNdXRuYmRmN565r6A46/YwIX2gIawHAJ27xdpCcy3Rh5DfLecbI/f6kvuOLcFoyPF1ulbNjXFu1wFFVNvqNf/Er8kyUcxj87e82UtBB4OEyTa6Qkf7+HY+fjgKg3w1wyIPHzTVnLe9f5vkSCI8D+4C/em3EA/anwOrSQHbeMV6Fi8UFQ7hfTPCFgrDaAO68Q0thmquRpp7+d5qbaWRVJRfsGNdWd4arfvBdXC+bjAA+r6f8ILQaWBV2i8KD75RZuiObTCE0vciPAl/INWfFzjsuMAn8HPgOcB14ZRY+r/3ngM97brngeVuUGDHDV3c5oU6zLXb4vHxQp9lWqZlboNdvCikZnjZmvdj2tmFso2mn53xmKujg5ZNP2XEC2Af0z86v7byjwEcehF3ApVn4cs3Z5cCPvM+aIv1pRl0RDbjymQB8dQeht8letdhSnDnde5MeDuJcF9bKNQsOm8Q20ehk74vzTDv99LDXJzYA8RZWDuaas0tKIJwGrpbA91ngW/Ms0iysCwbomyB89QZhW1Vj69w2kmE48H+vXx8Nd25CcOc07RN0qrEb+FmuOdvkQeiWwLfEc8nX4vzFQrtg0H2/6cIvEoTvvxDqv16taQfUOavXCxp7trysVLOrnUHk18cvtplza1tSfcLM9RuBh8os6Ewn8suFccGgfWTJDiCb6N0t8uE/rCd3kypVSADfBfbYeee653rirYpi5527wCDF1dB479ugLhii6kW25m5i3dedGIRF+DYH3SdaaHmF1VWLLTq3za2p/11JN5FfH7/YZtNJmUiqTxAA9wHP23nn45JjnwEe9bYdAG4BR5OAMJCjhcwbE4OwTuDzNFHV2DK3jRaCV9L49pFw56YwlFQfUwB/CPzazjv/nD3g5Xw/AY4Aa7wtCrXzzk3gV8DmqrhghJrPRCCsL/gQGKlmbIWT9x5zYW/HuLaajtMxrq1eVUzF2CbqXjb0OnAlQJcrXp/YAPzQzjvXSuB7CHib4mrnZor7gF8tccKPKO4FLrwLxrB3GBuEdQYfgDRyAsFNgD5XGjlR8YbM+DrHUi1wNID7HcWnJK1M7Ip6ZMs7OTLSb36fSr/pb+4H4As+xwZzzdkvefDZFCtgSrcatgEvAV/2IFwNHPSJsz9RF4zofrFCWIfwAbx3P9dFGYydP2XQpBb0wlq5JjAwByplY/t5PTWfE3aMa2u5KhiBgSgP6vbvePw0GdlUwQmvBKmC8b7XXM1TjP1t4IuU32o4Afyd4sZ9pGLssv9u89WIhqj5rDjeiL0C9+4o4CwEfGkx9v95MXYJhHE9jgQxv6LCt0Y04tPusUEY0flq5Yn4vkl6XOV45LI0wbWE7ceWBdtMbx/THu9ZwOjua9F7cZ0MU4Mqe3HtvHO4zHS0qvCVzfMSfJLeeDpap9NOPx1bxrAFeyLlg4JrwZ6g8AFcXCfDCM/FkHs+V6vwVVyEiQHCRF7ONCcXjDH3Cw3hIoLvPxA+yBFL2A58GmbaaQnbjz3IkbDjX1ovb4lFLz6F1Qa6LRa9l9bLW7V8jStOLyJAmOyb0UodL8n3yJhAuAjhK3XCTBOOwICRGwquwECmCSeM8/k5YYPljW+eVw00WDi17HwVc8CIOeGCvJZQOzvPACSV+xnlhDHDl76WsLwW42sJ61ra1bVBu7o2VGXsEXuFvp/5pelzX6lSpUqVKlWqVKlSpUpVA/o34/Ptc3zCsREAAAAASUVORK5CYII=",j$={props:{status:{type:String,required:!0},large:{type:Boolean},small:{type:Boolean},scale:{type:Number}},computed:{icons:function(){return z$},scaleFactor:function(){return this.scale?this.scale:this.large?1:this.small?.3:.5},iconStyle:function(){const n=Y$.indexOf(by[this.status]),t=1-(n-1)*.05,e=224*this.scaleFactor*t,r=32*this.scaleFactor*t,f=32*this.scaleFactor*t;return[`background-image: url(${this.icons});`,`background-position-x: -${n*f}px;`,`background-size: ${e}px ${r}px;`,`height: ${f}px;`,`width: ${f}px;`,`padding-top: ${n-1}px;`].join("")}}};function H$(n,t,e,r,f,p){return hn(),Br("div",{style:wa(p.iconStyle)},null,4)}const U$=so(j$,[["render",H$]]),V$={props:{icon:{type:String},size:{type:String,default:"small"},color:{type:String,default:"white"}},computed:{colorStyle:function(){return{"--iconColor":this.color}}}};function K$(n,t,e,r,f,p){const y=wt("rux-icon");return hn(),Wr(y,{size:e.size,icon:e.icon,style:wa(p.colorStyle)},null,8,["size","icon","style"])}const q$=so(V$,[["render",K$],["__scopeId","data-v-9af48e85"]]),by={fatal:"critical",FATAL:"critical",error:"critical",ERROR:"critical",warn:"caution",WARN:"caution",info:"normal",INFO:"normal",debug:"off",DEBUG:"off",critical:"critical",CRITICAL:"critical",serious:"serious",SERIOUS:"serious",caution:"caution",CAUTION:"caution",normal:"normal",NORMAL:"normal",standby:"standby",STANDBY:"standby",off:"off",OFF:"OFF"},id={fatal:"#ff69B4",critical:"#ff3838",serious:"#ffb302",caution:"#fce83a",normal:"#56f000",standby:"#2dccff",off:"#a4abb6"},G$=function(n){const t="#000000",e="#ffffff",r=id[by[n]];if(r){const f=+`0x${r.slice(1,3)}`,p=+`0x${r.slice(3,5)}`,y=+`0x${r.slice(5,7)}`;if((f*299+p*587+y*114)/1e3>128)return t}return e},Y$=Object.keys(id),X$={astro:{component:n=>Ds(q$,{...n})},"astro-status":{component:n=>Ds(U$,{...n,status:n.icon})}},Q$={extras:{component:n=>Ds(Pb,{...n})}},E2=tr("N",{data:{configKey:"",dontSaveDefaultConfig:!1},methods:{loadDefaultConfig:function(){return localStorage[`${this.configKey}__default`]?JSON.parse(localStorage[`${this.configKey}__default`]):{}},saveDefaultConfig:function(n){this.dontSaveDefaultConfig!==!0&&(localStorage[`${this.configKey}__default`]=JSON.stringify(n))},openConfigBase:function(n,t=!1,e=null){new Lo().load_config(this.configKey,n).then(r=>{r?(this.$notify.normal({title:"Loading configuration",body:n}),e&&e(JSON.parse(r)),t||this.$route.fullPath.includes(n)||this.$router.push({query:{config:n}})):this.$notify.caution({title:"Unknown configuration",body:n})}).catch(r=>{r&&this.$notify.serious({title:`Error opening configuration: ${n}`,body:r})})},saveConfigBase:function(n,t){new Lo().save_config(this.configKey,n,JSON.stringify(t)).then(()=>{this.$notify.normal({title:"Saved configuration",body:n})}).catch(e=>{e&&this.$notify.serious({title:`Error saving configuration: ${n}`,body:e})})},resetConfigBase:function(){localStorage.removeItem(`${this.configKey}__default`);const n={...this.$route.query};delete n.config,this.$router.replace({query:n})}}}),Z$={props:{configKey:String,modelValue:Boolean},data(){return{configs:[],headers:[{title:"Configuration",value:"config"},{title:"Actions",value:"actions",align:"end",sortable:!1}],search:null,selectedRows:[]}},computed:{selectedItem:function(){return this.selectedRows.length?this.configs.find(n=>n.configId===this.selectedRows[0]):null},error:function(){return this.selectedItem===""||this.selectedItem===null?"Must select a config":null},show:{get(){return this.modelValue},set(n){this.$emit("update:modelValue",n)}}},mounted(){let n=-1;new Lo().list_configs(this.configKey).then(t=>{this.configs=t.map(e=>(n+=1,{configId:n,config:e}))}).catch(t=>{this.$emit("warning",`Failed to connect to OpenC3. ${t}`)})},methods:{selectRow:function(n){this.selectedRows=[n.item.configId]},success:function(){this.selectedItem&&(this.$emit("success",this.selectedItem.config),this.show=!1,this.search=null,this.selectedRows=[])},cancel:function(){this.show=!1,this.search=null,this.selectedRows=[]},deleteConfig:function(n){this.$dialog.confirm(`Are you sure you want to delete: ${n.config}`,{okText:"Delete",cancelText:"Cancel"}).then(t=>{var e;((e=this.selectedItem)==null?void 0:e.config)===n.config&&(this.selectedRows=[]),this.configs.splice(this.configs.indexOf(n),1),new Lo().delete_config(this.configKey,n.config)}).catch(t=>{t!==!0&&this.$emit("warning",`Failed to delete config ${n.config} Error: ${t}`)})}}},J$={class:"mt-4 pa-3"},eM=["textContent"];function tM(n,t,e,r,f,p){const y=wt("v-spacer"),b=wt("v-toolbar"),h=wt("v-text-field"),g=wt("v-row"),s=wt("v-btn"),l=wt("v-data-table"),u=wt("v-card-text"),a=wt("v-card-actions"),o=wt("v-card"),c=wt("v-dialog");return hn(),Wr(c,{modelValue:p.show,"onUpdate:modelValue":t[4]||(t[4]=d=>p.show=d),width:"600",onKeydown:Yc(p.cancel,["esc"])},{default:ht(()=>[Ke(o,null,{default:ht(()=>[zr("form",{onSubmit:t[3]||(t[3]=Ps((...d)=>p.success&&p.success(...d),["prevent"]))},[Ke(b,{height:"24"},{default:ht(()=>[Ke(y),t[5]||(t[5]=zr("span",null,"Open Configuration",-1)),Ke(y)]),_:1}),Ke(u,null,{default:ht(()=>[zr("div",J$,[Ke(g,{dense:""},{default:ht(()=>[Ke(h,{modelValue:f.search,"onUpdate:modelValue":t[0]||(t[0]=d=>f.search=d),label:"search",type:"text","prepend-inner-icon":"mdi-magnify",clearable:"",variant:"outlined",density:"compact","clear-icon":"mdi-close-circle-outline",autofocus:"","single-line":"","hide-details":"","data-test":"search"},null,8,["modelValue"])]),_:1}),Ke(l,{modelValue:f.selectedRows,"onUpdate:modelValue":t[1]||(t[1]=d=>f.selectedRows=d),"show-select":"","select-strategy":"single","item-value":"configId",search:f.search,headers:f.headers,items:f.configs,"items-per-page":5,"items-per-page-options":[5],"onClick:row":t[2]||(t[2]=(d,w)=>p.selectRow(w))},{"item.actions":ht(({item:d})=>[Ke(s,{class:"mt-1",icon:"mdi-delete",variant:"text","data-test":"item-delete",onClick:w=>p.deleteConfig(d)},null,8,["onClick"])]),_:1},8,["modelValue","search","headers","items"]),Ke(g,{dense:""},{default:ht(()=>[ll(zr("span",{class:"ma-2 text-red",textContent:wr(p.error)},null,8,eM),[[cl,p.error]])]),_:1})])]),_:1}),Ke(a,{class:"px-2"},{default:ht(()=>[Ke(y),Ke(s,{variant:"outlined","data-test":"open-config-cancel-btn",onClick:p.cancel},{default:ht(()=>t[6]||(t[6]=[nr(" Cancel ")])),_:1},8,["onClick"]),Ke(s,{variant:"flat",type:"submit","data-test":"open-config-submit-btn",disabled:!!p.error,onClick:Ps(p.success,["prevent"])},{default:ht(()=>t[7]||(t[7]=[nr(" Ok ")])),_:1},8,["disabled","onClick"])]),_:1})],32)]),_:1})]),_:1},8,["modelValue","onKeydown"])}const R2=tr("v",so(Z$,[["render",tM]])),nM={props:{configKey:String,modelValue:Boolean},data(){return{configName:"",configs:[],headers:[{title:"Configuration",value:"config"},{title:"Actions",value:"actions",align:"end",sortable:!1}],search:null,selectedRows:[]}},computed:{selectedItem:function(){return this.selectedRows.length?this.configs.find(n=>n.configId===this.selectedRows[0]):null},error:function(){return this.configName?null:"Config must have a name"},show:{get(){return this.modelValue},set(n){this.$emit("update:modelValue",n)}}},watch:{selectedItem:function(n){n&&(this.configName=n.config)}},mounted(){let n=-1;new Lo().list_configs(this.configKey).then(t=>{this.configs=t.map(e=>(n+=1,{configId:n,config:e}))}).catch(t=>{this.$emit("warning",`Failed to connect to OpenC3. ${t}`)})},methods:{selectRow:function(n){this.selectedRows=[n.item.configId]},success:function(){this.$emit("success",this.configName),this.show=!1,this.search=null,this.selectedRows=[],this.configName=""},cancel:function(){this.show=!1,this.search=null,this.selectedRows=[],this.configName=""},deleteConfig:function(n){this.$dialog.confirm(`Are you sure you want to delete: ${n.config}`,{okText:"Delete",cancelText:"Cancel"}).then(t=>{var e;((e=this.selectedItem)==null?void 0:e.config)===n.config&&(this.selectedRows=[],this.configName=""),this.configs.splice(this.configs.indexOf(n),1),new Lo().delete_config(this.configKey,n.config)}).catch(t=>{t!==!0&&this.$emit("warning",`Failed to delete config ${n.config} Error: ${t}`)})}}},rM={class:"mt-4 pa-3"},iM=["textContent"];function oM(n,t,e,r,f,p){const y=wt("v-spacer"),b=wt("v-toolbar"),h=wt("v-text-field"),g=wt("v-row"),s=wt("v-btn"),l=wt("v-data-table"),u=wt("v-card-text"),a=wt("v-card-actions"),o=wt("v-card"),c=wt("v-dialog");return hn(),Wr(c,{modelValue:p.show,"onUpdate:modelValue":t[5]||(t[5]=d=>p.show=d),width:"600",onKeydown:Yc(p.cancel,["esc"])},{default:ht(()=>[Ke(o,null,{default:ht(()=>[zr("form",{onSubmit:t[4]||(t[4]=Ps((...d)=>p.success&&p.success(...d),["prevent"]))},[Ke(b,{height:"24"},{default:ht(()=>[Ke(y),t[6]||(t[6]=zr("span",null,"Save Configuration",-1)),Ke(y)]),_:1}),Ke(u,null,{default:ht(()=>[zr("div",rM,[Ke(g,{dense:""},{default:ht(()=>[Ke(h,{modelValue:f.search,"onUpdate:modelValue":t[0]||(t[0]=d=>f.search=d),label:"search",type:"text","prepend-inner-icon":"mdi-magnify",clearable:"",variant:"outlined",density:"compact","clear-icon":"mdi-close-circle-outline","single-line":"","hide-details":"","data-test":"search"},null,8,["modelValue"])]),_:1}),Ke(l,{modelValue:f.selectedRows,"onUpdate:modelValue":t[1]||(t[1]=d=>f.selectedRows=d),"show-select":"","select-strategy":"single","item-value":"configId",search:f.search,headers:f.headers,items:f.configs,"items-per-page":5,"items-per-page-options":[5],"onClick:row":t[2]||(t[2]=(d,w)=>p.selectRow(w))},{"item.actions":ht(({item:d})=>[Ke(s,{class:"mt-1",icon:"mdi-delete",variant:"text","data-test":"item-delete",onClick:w=>p.deleteConfig(d)},null,8,["onClick"])]),_:1},8,["modelValue","search","headers","items"]),Ke(g,{dense:""},{default:ht(()=>[Ke(h,{modelValue:f.configName,"onUpdate:modelValue":t[3]||(t[3]=d=>f.configName=d),"hide-details":"",autofocus:"",disabled:!!p.selectedItem,label:"Configuration Name","data-test":"name-input-save-config-dialog"},null,8,["modelValue","disabled"])]),_:1}),Ke(g,{dense:""},{default:ht(()=>[ll(zr("span",{class:"ma-2 text-red",textContent:wr(p.error)},null,8,iM),[[cl,p.error]])]),_:1})])]),_:1}),Ke(a,{class:"px-2"},{default:ht(()=>[Ke(y),Ke(s,{variant:"outlined",onClick:p.cancel},{default:ht(()=>t[7]||(t[7]=[nr(" Cancel ")])),_:1},8,["onClick"]),Ke(s,{variant:"flat",type:"submit","data-test":"save-config-submit-btn",disabled:!!p.error,onClick:Ps(p.success,["prevent"])},{default:ht(()=>t[8]||(t[8]=[nr(" Ok ")])),_:1},8,["disabled","onClick"])]),_:1})],32)]),_:1})]),_:1},8,["modelValue","onKeydown"])}const L2=tr("a",so(nM,[["render",oM]])),xy="single-spa:app-change",sM={data(){return{show:!1}},created(){window.addEventListener(xy,this.handleAppChange)},mounted(){setTimeout(()=>{this.show=fp().length===0},150)},unmounted(){window.removeEventListener(xy,this.handleAppChange)},methods:{handleAppChange:function(n){this.show=!n.detail.appsByNewStatus.MOUNTED}}},aM={class:"mx-1"};function lM(n,t,e,r,f,p){const y=wt("v-card-title"),b=wt("v-card-text"),h=wt("v-card");return f.show?(hn(),Wr(h,{key:0},{default:ht(()=>[Ke(y,null,{default:ht(()=>t[0]||(t[0]=[nr(" 404 Not Found ")])),_:1}),Ke(b,{class:"d-flex align-center mt-3"},{default:ht(()=>[t[1]||(t[1]=nr(" The requested URL ")),zr("code",aM,wr(n.$route.fullPath),1),t[2]||(t[2]=nr(" was not routable. ")),t[3]||(t[3]=zr("span",{class:"text-h3 mx-1"}," 🦄 ",-1))]),_:1})]),_:1})):ei("",!0)}const cM=so(sM,[["render",lM]]),uM={props:{allowAll:{type:Boolean,default:!1},allowAllTargets:{type:Boolean,default:!1},allowAllArrayIndex:{type:Boolean,default:!1},buttonText:{type:String,default:null},chooseItem:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},initialTargetName:{type:String,default:""},initialPacketName:{type:String,default:""},initialItemName:{type:String,default:""},selectTypes:{type:Boolean,default:!1},showLatest:{type:Boolean,default:!1},mode:{type:String,default:"tlm",validator:n=>["cmd","tlm"].includes(n)},unknown:{type:Boolean,default:!1},vertical:{type:Boolean,default:!1},hidden:{type:Boolean,default:!1}},emits:["on-set","addItem"],data(){var n,t,e;return{targetNames:[],selectedTargetName:(n=this.initialTargetName)==null?void 0:n.toUpperCase(),packetNames:[],selectedPacketName:(t=this.initialPacketName)==null?void 0:t.toUpperCase(),itemNames:[],selectedItemName:(e=this.initialItemName)==null?void 0:e.toUpperCase(),valueTypes:["CONVERTED","RAW"],selectedValueType:"CONVERTED",reductionModes:[{title:"NONE",value:"DECOM"},{title:"REDUCED_MINUTE",value:"REDUCED_MINUTE"},{title:"REDUCED_HOUR",value:"REDUCED_HOUR"},{title:"REDUCED_DAY",value:"REDUCED_DAY"}],selectedArrayIndex:null,selectedReduced:"DECOM",reducedTypes:["MIN","MAX","AVG","STDDEV"],selectedReducedType:"AVG",description:"",hazardous:!1,internalDisabled:!1,packetsDisabled:!1,itemsDisabled:!1,api:null,ALL:{label:"[ ALL ]",value:"ALL",description:"ALL"},UNKNOWN:{label:"[ UNKNOWN ]",value:"UNKNOWN",description:"UNKNOWN"}}},computed:{actualButtonText:function(){return this.selectedPacketName==="ALL"?"Add Target":this.selectedItemName==="ALL"?"Add Packet":this.buttonText},autocompleteDisabled:function(){return this.disabled||this.internalDisabled},buttonDisabled:function(){return this.disabled||this.internalDisabled||this.selectedTargetName===null||this.selectedPacketName===null||this.selectedItemNameWIndex===null},colSize:function(){return this.vertical?12:!1},selectedItemNameWIndex:function(){return this.itemIsArray&&this.selectedArrayIndex!==null&&this.selectedArrayIndex!==this.ALL.label?`${this.selectedItemName}[${this.selectedArrayIndex}]`:this.selectedItemName},includeLatestPacketInDropdown:function(){return this.showLatest&&this.mode==="tlm"},arrayIndexes:function(){let n=this.itemNames.findIndex(e=>e.value===this.selectedItemName),t=[...Array(this.itemNames[n].array).keys()];return(this.allowAll||this.allowAllArrayIndex)&&t.unshift(this.ALL.label),t},itemIsArray:function(){let n=this.itemNames.findIndex(t=>t.value===this.selectedItemName);return!(n===-1||isNaN(this.itemNames[n].array))}},watch:{initialTargetName:function(n){n&&(this.selectedTargetName=n.toUpperCase())},initialPacketName:function(n){n&&(this.selectedPacketName=n.toUpperCase())},initialItemName:function(n){n&&(this.selectedItemName=n.toUpperCase())},mode:function(n,t){this.selectedPacketName=null,this.selectedItemName=null,this.targetNameChanged(this.selectedTargetName)},chooseItem:function(n,t){n?this.updateItems():this.itemNames=[]},itemIsArray:function(n){n?this.selectedArrayIndex||(this.selectedArrayIndex=0):this.selectedArrayIndex=null}},created(){this.internalDisabled=!0,this.api=new Lo,this.api.get_target_names().then(n=>{this.targetNames=n.flatMap(t=>t=="UNKNOWN"?[]:{label:t,value:t}),this.allowAllTargets&&this.targetNames.unshift(this.ALL),this.selectedTargetName?this.updatePackets():(this.selectedTargetName=this.targetNames[0].value,this.targetNameChanged(this.selectedTargetName)),this.unknown&&this.targetNames.push(this.UNKNOWN)})},methods:{updatePackets:function(){if(this.selectedTargetName==="UNKNOWN"){this.packetNames=[this.UNKNOWN],this.selectedPacketName=this.packetNames[0].value,this.updatePacketDetails(this.UNKNOWN.value),this.description="UNKNOWN";return}if(this.selectedTargetName==="ALL"){this.packetNames=[this.ALL],this.selectedPacketName=this.packetNames[0].value,this.updatePacketDetails(this.ALL.value),this.description="ALL";return}this.internalDisabled=!0;const n=this.mode==="tlm"?"get_all_tlm_names":"get_all_cmd_names";this.api[n](this.selectedTargetName,this.hidden).then(t=>{this.packetNames=t.map(e=>({label:e,value:e})),this.allowAll&&this.packetNames.unshift(this.ALL),this.selectedPacketName||(this.selectedPacketName=this.packetNames[0].value),this.updatePacketDetails(this.selectedPacketName),this.packetNames.find(e=>e.value===this.selectedPacketName)&&this.chooseItem&&this.updateItems(),this.internalDisabled=!1})},updateItems:function(){if(this.selectedPacketName!=="ALL")if(this.internalDisabled=!0,this.selectedPacketName==="LATEST")this.api.get_all_tlm_item_names(this.selectedTargetName).then(n=>{this.itemNames=n.map(t=>({label:t,value:t,description:`LATEST ${t}`})),this.finishUpdateItems()});else{const n=this.mode==="tlm"?"get_tlm":"get_cmd";this.api[n](this.selectedTargetName,this.selectedPacketName).then(t=>{this.itemNames=t.items.map(e=>{let r=e.name;return e.data_type=="DERIVED"&&(r+=" *"),{label:r,value:e.name,description:e.description,array:e.array_size/e.bit_size}}),this.itemNames.sort((e,r)=>e.label>r.label?1:-1),this.finishUpdateItems()})}},finishUpdateItems:function(){this.allowAll&&this.itemNames.unshift(this.ALL),this.selectedItemName||(this.selectedItemName=this.itemNames[0].value),this.description=this.itemNames[0].description,this.$emit("on-set",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,itemName:this.selectedItemNameWIndex,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType}),this.internalDisabled=!1},targetNameChanged:function(n){this.selectedTargetName=n,this.selectedPacketName="",this.selectedItemName="",n!==null&&this.updatePackets()},packetNameChanged:function(n){this.selectedItemName="",n!==null&&this.updatePacketDetails(n)},updatePacketDetails:function(n){if(n==="ALL")this.itemsDisabled=!0,this.internalDisabled=!1;else if(n==="LATEST")this.itemsDisabled=!1,this.selectedPacketName="LATEST";else{this.itemsDisabled=!1;const t=this.packetNames.find(e=>n===e.value);if(t){this.selectedPacketName=t.value;const e=this.mode==="tlm"?"get_tlm":"get_cmd";this.api[e](this.selectedTargetName,this.selectedPacketName).then(r=>{this.description=r.description,this.hazardous=r.hazardous})}}this.chooseItem?this.updateItems():this.$emit("on-set",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,itemName:this.selectedItemNameWIndex,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType})},itemNameChanged:function(n){const t=this.itemNames.find(e=>n===e.value);t&&(this.selectedItemName=t.value,this.description=t.description,this.$emit("on-set",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,itemName:this.selectedItemNameWIndex,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType}))},indexChanged:function(n){this.$emit("on-set",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,itemName:this.selectedItemNameWIndex,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType})},buttonPressed:function(){this.selectedPacketName==="ALL"?this.allTargetPacketItems():this.selectedItemName==="ALL"?this.allPacketItems():this.chooseItem?this.$emit("addItem",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,itemName:this.selectedItemNameWIndex,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType}):this.$emit("addItem",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType})},allTargetPacketItems:function(){this.packetNames.forEach(n=>{if(n===this.ALL)return;const t=this.mode==="tlm"?"get_tlm":"get_cmd";this.api[t](this.selectedTargetName,n.value).then(e=>{e.items.forEach(r=>{this.$emit("addItem",{targetName:this.selectedTargetName,packetName:n.value,itemName:r.name,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType})})})})},allPacketItems:function(){this.itemNames.forEach(n=>{n!==this.ALL&&this.$emit("addItem",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,itemName:n.value,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType})})}}},hM={class:"pt-4 pb-4"};function dM(n,t,e,r,f,p){const y=wt("v-autocomplete"),b=wt("v-col"),h=wt("v-list-item"),g=wt("v-divider"),s=wt("v-combobox"),l=wt("v-btn"),u=wt("v-row");return hn(),Br("div",hM,[Ke(u,{"no-gutters":!e.vertical},{default:ht(()=>[Ke(b,{cols:p.colSize,class:"tpic-select pr-4","data-test":"select-target"},{default:ht(()=>[Ke(y,{modelValue:f.selectedTargetName,"onUpdate:modelValue":[t[0]||(t[0]=a=>f.selectedTargetName=a),p.targetNameChanged],label:"Select Target","hide-details":"",density:"compact",variant:"outlined",items:f.targetNames,"item-title":"label","item-value":"value"},null,8,["modelValue","items","onUpdate:modelValue"])]),_:1},8,["cols"]),Ke(b,{cols:p.colSize,class:"tpic-select pr-4","data-test":"select-packet"},{default:ht(()=>[Ke(y,{modelValue:f.selectedPacketName,"onUpdate:modelValue":[t[2]||(t[2]=a=>f.selectedPacketName=a),p.packetNameChanged],label:"Select Packet","hide-details":"",density:"compact",variant:"outlined",disabled:f.packetsDisabled||p.autocompleteDisabled,items:f.packetNames,"item-title":"label","item-value":"value"},rp({_:2},[p.includeLatestPacketInDropdown?{name:"prepend-item",fn:ht(()=>[Ke(h,{title:"LATEST",onClick:t[1]||(t[1]=a=>p.packetNameChanged("LATEST"))}),Ke(g)]),key:"0"}:void 0]),1032,["modelValue","disabled","items","onUpdate:modelValue"])]),_:1},8,["cols"]),e.chooseItem?(hn(),Wr(b,{key:0,cols:p.colSize,class:"tpic-select pr-4","data-test":"select-item"},{default:ht(()=>[Ke(y,{modelValue:f.selectedItemName,"onUpdate:modelValue":[t[3]||(t[3]=a=>f.selectedItemName=a),t[4]||(t[4]=a=>p.itemNameChanged(a))],label:"Select Item","hide-details":"",density:"compact",variant:"outlined",disabled:f.itemsDisabled||p.autocompleteDisabled,items:f.itemNames,"item-title":"label","item-value":"value"},null,8,["modelValue","disabled","items"])]),_:1},8,["cols"])):ei("",!0),e.chooseItem&&p.itemIsArray?(hn(),Wr(b,{key:1,cols:"1",class:"tpic-select pr-4","data-test":"array-index",style:{"min-width":"105px"}},{default:ht(()=>[Ke(s,{modelValue:f.selectedArrayIndex,"onUpdate:modelValue":[t[5]||(t[5]=a=>f.selectedArrayIndex=a),t[6]||(t[6]=a=>p.indexChanged(a))],label:"Index","hide-details":"",density:"compact",variant:"outlined",disabled:f.itemsDisabled||p.autocompleteDisabled,items:p.arrayIndexes,"item-title":"label","item-value":"value"},null,8,["modelValue","disabled","items"])]),_:1})):ei("",!0),e.buttonText?(hn(),Wr(b,{key:2,cols:p.colSize,style:{"max-width":"140px"}},{default:ht(()=>[Ke(l,{disabled:p.buttonDisabled,color:"primary","data-test":"select-send",onClick:p.buttonPressed},{default:ht(()=>[nr(wr(p.actualButtonText),1)]),_:1},8,["disabled","onClick"])]),_:1},8,["cols"])):ei("",!0)]),_:1},8,["no-gutters"]),e.selectTypes?(hn(),Wr(u,{key:0,class:"pt-6","no-gutters":""},{default:ht(()=>[Ke(b,{cols:p.colSize,class:"tpic-select pr-4","data-test":"data-type"},{default:ht(()=>[Ke(y,{modelValue:f.selectedValueType,"onUpdate:modelValue":t[7]||(t[7]=a=>f.selectedValueType=a),label:"Value Type","hide-details":"",density:"compact",variant:"outlined",items:f.valueTypes},null,8,["modelValue","items"])]),_:1},8,["cols"]),Ke(b,{cols:p.colSize,class:"tpic-select pr-4","data-test":"reduced"},{default:ht(()=>[Ke(y,{modelValue:f.selectedReduced,"onUpdate:modelValue":t[8]||(t[8]=a=>f.selectedReduced=a),label:"Reduced","hide-details":"",density:"compact",variant:"outlined",items:f.reductionModes},null,8,["modelValue","items"])]),_:1},8,["cols"]),Ke(b,{cols:p.colSize,class:"tpic-select pr-4","data-test":"reduced-type"},{default:ht(()=>[Ke(y,{modelValue:f.selectedReducedType,"onUpdate:modelValue":t[9]||(t[9]=a=>f.selectedReducedType=a),label:"Reduced Type","hide-details":"",density:"compact",variant:"outlined",disabled:f.selectedReduced==="DECOM",items:f.reducedTypes},null,8,["modelValue","disabled","items"])]),_:1},8,["cols"]),Ke(b,{cols:p.colSize,style:{"max-width":"140px"}},null,8,["cols"])]),_:1})):ei("",!0),Ke(u,{"no-gutters":"",class:"pa-3"},{default:ht(()=>[Ke(b,{cols:p.colSize,class:ip({"openc3-yellow":f.hazardous})},{default:ht(()=>[nr(" Description: "+wr(f.description)+" ",1),f.hazardous?(hn(),Br(ul,{key:0},[nr(" (HAZARDOUS) ")],64)):ei("",!0)]),_:1},8,["cols","class"])]),_:1})])}const O2=tr("w",so(uM,[["render",dM],["__scopeId","data-v-75f74b75"]])),Cy=[{path:"/:target?/:packet?",name:"PackerViewer",component:()=>st(()=>ot.import("./PacketViewer-9c0136faec72d0246abe.js"),void 0)},{path:"/:pathMatch(.*)*",name:"NotFound",component:cM}];Cy.forEach(wp);const pM=pp({history:gp(),routes:Cy}),gM={dark:!0,colors:{primary:"#005A8F",secondary:"#4DACFF",tertiary:"#BBC1C9","openc3-green":"#56f000","openc3-yellow":"#fce83a","openc3-red":"#ff3838","openc3-blue":"#2dccff","openc3-purple":"#c800c8","openc3-black":"#ffffff","openc3-white":"#ffffff"}},fM={data:function(){return{show:!1,params:{title:"Title",text:"The text that is displayed",okText:"Ok",okClass:"primary",validateText:"CONFIRM",cancelText:"Cancel",html:!1},resolve:null,reject:null,validationText:null,rules:{required:n=>!!n||"Required.",match:n=>n===this.params.validateText||"Value mismatch."}}},computed:{dataTestOk:function(){return`confirm-dialog-${this.params.okText.toLowerCase()}`},dataTestCancel:function(){return`confirm-dialog-${this.params.cancelText.toLowerCase()}`}},methods:{dialog:function(n,t,e){this.params=n,this.show=!0,this.resolve=t,this.reject=e},ok:function(){(!this.params.validateText||this.params.validateText===this.validationText)&&(this.show=!1,this.resolve(!0),this.refresh())},cancel:function(){this.show=!1,this.reject(!0),this.refresh()},refresh:function(){this.validationText=""}}},mM=["innerHTML"],vM={key:2},yM={key:3,class:"validate mt-4"};function wM(n,t,e,r,f,p){const y=wt("v-spacer"),b=wt("v-toolbar"),h=wt("v-icon"),g=wt("v-text-field"),s=wt("v-card-text"),l=wt("v-btn"),u=wt("v-card-actions"),a=wt("v-card"),o=wt("v-dialog"),c=wt("v-app");return hn(),Wr(c,null,{default:ht(()=>[Ke(o,{modelValue:n.show,"onUpdate:modelValue":t[1]||(t[1]=d=>n.show=d),width:"600"},{default:ht(()=>[Ke(a,null,{default:ht(()=>[Ke(b,{height:"24"},{default:ht(()=>[Ke(y),zr("span",null,wr(n.params.title),1),Ke(y)]),_:1}),Ke(s,{class:"mt-4 pa-3"},{default:ht(()=>[n.params.validateText?(hn(),Wr(h,{key:0,class:"mr-2"},{default:ht(()=>t[2]||(t[2]=[nr(" mdi-alert ")])),_:1})):ei("",!0),n.params.html?(hn(),Br("span",{key:1,innerHTML:n.params.text},null,8,mM)):(hn(),Br("span",vM,wr(n.params.text),1)),n.params.validateText?(hn(),Br("div",yM,[nr(" Enter "+wr(n.params.validateText)+" to confirm! ",1),Ke(g,{modelValue:n.validationText,"onUpdate:modelValue":t[0]||(t[0]=d=>n.validationText=d),variant:"solo",density:"compact","single-line":"",rules:[n.rules.required,n.rules.match],"data-test":"confirm-dialog-validate"},null,8,["modelValue","rules"])])):ei("",!0)]),_:1}),Ke(u,{class:"px-2"},{default:ht(()=>[Ke(y),n.params.cancelText?(hn(),Wr(l,{key:0,variant:"outlined","data-test":p.dataTestCancel,onClick:p.cancel},{default:ht(()=>[nr(wr(n.params.cancelText),1)]),_:1},8,["data-test","onClick"])):ei("",!0),Ke(l,{variant:"flat",color:n.params.okClass,"data-test":p.dataTestOk,onClick:p.ok},{default:ht(()=>[nr(wr(n.params.okText),1)]),_:1},8,["color","data-test","onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1})}const bM=so(fM,[["render",wM],["__scopeId","data-v-de532a0f"]]);class xM{constructor(){this.mounted=!1,this.$root=null}mount(){if(this.mounted)return;const t=window.Vue.createApp(bM);t.use(sd);const e=document.createElement("div");document.querySelector("#openc3-app-toolbar > div").appendChild(e),this.$root=t.mount(e),this.mounted=!0}open({title:t,text:e,okText:r,okClass:f,validateText:p,cancelText:y,html:b}){return this.mount(),new Promise((h,g)=>{this.$root.dialog({title:t,text:e,okText:r,okClass:f,validateText:p,cancelText:y,html:b},h,g)})}confirm(t,{okText:e="Ok",cancelText:r="Cancel",okClass:f="primary"}){return this.open({title:"Confirm",text:t,okText:e,okClass:f,validateText:null,cancelText:r,html:!1})}alert(t,{okText:e="Ok",html:r=!1,okClass:f="primary"}){return this.open({title:"Alert",text:t,okText:e,okClass:f,validateText:null,cancelText:null,html:r})}validate(t,{okText:e="Ok",validateText:r="CONFIRM",cancelText:f="Cancel",okClass:p="primary"}){return this.open({title:"Confirm",text:t,okText:e,okClass:p,validateText:r,cancelText:f,html:!1})}}const CM={install(n,t){const e=new xM;n.provide("dialog",e),n.config.globalProperties.hasOwnProperty("$dialog")||(n.config.globalProperties.$dialog=e)}},kM={data:function(){return{showToast:!1,expanded:!1,toastNotification:{title:"Title here",body:"This is the notification body",message:"Overall message here"},timeout:null,noToastPaths:["/login"]}},computed:{toastNotificationIcon:function(){switch(this.toastNotification.type){case"notification":return"mdi-bell";case"alert":default:return"mdi-alert-box"}},toastStyle:function(){return`
|
1495
1495
|
--toast-bg-color:${id[this.toastNotification.level]};
|
1496
1496
|
--toast-fg-color:${G$(this.toastNotification.level)};
|
1497
1497
|
`},contentStyle:function(){return`
|
1498
1498
|
white-space: ${this.expanded?"normal":"nowrap"};
|
1499
1499
|
overflow-x: ${this.expanded?"visible":"hidden"};
|
1500
1500
|
text-overflow: ${this.expanded?"unset":"ellipsis"};
|
1501
|
-
`}},methods:{toast:function(n,t){this.noToastPaths.includes(window.location.pathname)||(t===void 0&&(t=5e3),this.toastNotification=n,this.showToast=!0,this.cancelAutohide(),t&&(this.timeout=setTimeout(()=>{this.hide()},t)))},hide:function(){this.cancelAutohide(),this.showToast=!1},cancelAutohide:function(){this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},expand:function(){this.cancelAutohide(),this.expanded=!0}}},SM={key:0,class:"text-subtitle-1 mr-1 notification-text"},AM={key:1,class:"text-body-2 notification-text"},_M={key:2,class:"text-body-2 notification-text"};function TM(n,t,e,r,f,p){const y=wt("v-icon"),b=wt("v-spacer"),h=wt("v-btn"),g=wt("v-sheet"),s=wt("v-slide-y-transition");return hn(),Wr(s,null,{default:ht(()=>[ll(Ke(g,{style:wa(p.toastStyle),class:"toast-notification",onClick:p.expand},{default:ht(()=>[Ke(y,{class:"mr-1 notification-text"},{default:ht(()=>[
|
1501
|
+
`}},methods:{toast:function(n,t){this.noToastPaths.includes(window.location.pathname)||(t===void 0&&(t=5e3),this.toastNotification=n,this.showToast=!0,this.cancelAutohide(),t&&(this.timeout=setTimeout(()=>{this.hide()},t)))},hide:function(){this.cancelAutohide(),this.showToast=!1},cancelAutohide:function(){this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},expand:function(){this.cancelAutohide(),this.expanded=!0}}},SM={key:0,class:"text-subtitle-1 mr-1 notification-text"},AM={key:1,class:"text-body-2 notification-text"},_M={key:2,class:"text-body-2 notification-text"};function TM(n,t,e,r,f,p){const y=wt("v-icon"),b=wt("v-spacer"),h=wt("v-btn"),g=wt("v-sheet"),s=wt("v-slide-y-transition");return hn(),Wr(s,null,{default:ht(()=>[ll(Ke(g,{style:wa(p.toastStyle),class:"toast-notification",onClick:p.expand},{default:ht(()=>[Ke(y,{class:"mr-1 notification-text"},{default:ht(()=>[nr(wr(p.toastNotificationIcon),1)]),_:1}),zr("div",{class:"toast-content",style:wa(p.contentStyle)},[n.toastNotification.title?(hn(),Br("span",SM,[n.toastNotification.body||n.toastNotification.message?(hn(),Br(ul,{key:0},[nr(wr(n.toastNotification.title)+": ",1)],64)):(hn(),Br(ul,{key:1},[nr(wr(n.toastNotification.title),1)],64))])):ei("",!0),n.toastNotification.body?(hn(),Br("span",AM,wr(n.toastNotification.body),1)):ei("",!0),n.toastNotification.message?(hn(),Br("span",_M,wr(n.toastNotification.message),1)):ei("",!0)],4),Ke(b),Ke(h,{variant:"text",class:"notification-text",onClick:Ps(p.hide,["stop"])},{default:ht(()=>t[0]||(t[0]=[nr(" Dismiss ")])),_:1},8,["onClick"])]),_:1},8,["style","onClick"]),[[cl,n.showToast]])]),_:1})}const $M=so(kM,[["render",TM],["__scopeId","data-v-84833581"]]);class MM{constructor(t={}){var e;this.$store=t.store,this.mounted=!1,this.$root=null,(e=window.$cosmosNotify)!=null&&e.$root?(this.mounted=!0,this.$root=window.$cosmosNotify.$root):window.$cosmosNotify=this}mount(){if(this.mounted)return;const t=Qc($M);t.use(sd);const e=document.createElement("div");document.querySelector("#openc3-app-toolbar > div").appendChild(e),this.$root=t.mount(e),this.mounted=!0}open({method:t,title:e,body:r,message:f,level:p,duration:y,type:b="alert",logToConsole:h=!1,saveToHistory:g=!0}){this.mount(),h&&console.log(f?`${p.toUpperCase()} - ${f}`:`${p.toUpperCase()} - ${e}: ${r}`),g&&this.$store.commit("notifyAddHistory",{title:e,body:r,message:f,level:p}),this[t]({title:e,body:r,message:f,level:p,duration:y,type:b})}toast({title:t,body:e,message:r,level:f,duration:p,type:y}){this.$root.toast({title:t,body:e,message:r,level:f,type:y},p)}critical({title:t,body:e,message:r,type:f,duration:p,logToConsole:y,saveToHistory:b}){this.open({method:"toast",level:"critical",title:t,body:e,message:r,type:f,duration:p,logToConsole:y,saveToHistory:b})}FATAL(t){this.critical(t)}ERROR(t){this.critical(t)}serious({title:t,body:e,message:r,type:f,duration:p,logToConsole:y,saveToHistory:b}){this.open({method:"toast",level:"serious",title:t,body:e,message:r,type:f,duration:p,logToConsole:y,saveToHistory:b})}caution({title:t,body:e,message:r,type:f,duration:p,logToConsole:y,saveToHistory:b}){this.open({method:"toast",level:"caution",title:t,body:e,message:r,type:f,duration:p,logToConsole:y,saveToHistory:b})}WARN(t){this.caution(t)}normal({title:t,body:e,message:r,type:f,duration:p,logToConsole:y,saveToHistory:b}){this.open({method:"toast",level:"normal",title:t,body:e,message:r,type:f,duration:p,logToConsole:y,saveToHistory:b})}INFO(t){this.normal(t)}DEBUG(t){this.normal(t)}standby({title:t,body:e,message:r,type:f,duration:p,logToConsole:y,saveToHistory:b}){this.open({method:"toast",level:"standby",title:t,body:e,message:r,type:f,duration:p,logToConsole:y,saveToHistory:b})}off({title:t,body:e,message:r,type:f,duration:p,logToConsole:y,saveToHistory:b}){this.open({method:"toast",level:"off",title:t,body:e,message:r,type:f,duration:p,logToConsole:y,saveToHistory:b})}}const IM={install(n,t){const e=new MM(t);n.provide("notify",e),n.config.globalProperties.hasOwnProperty("$notify")||(n.config.globalProperties.$notify=e)}},ky=100,Sy=mp({state:{notifyHistory:[],namedWidgets:{}},getters:{namedWidget:n=>t=>n.namedWidgets[t]},mutations:{notifyAddHistory:(n,t)=>{n.notifyHistory.length>=ky&&(n.notifyHistory.length=ky-1),n.notifyHistory.unshift(t)},notifyClearHistory:n=>{n.notifyHistory=[]},setNamedWidget:(n,t)=>{Object.assign(n.namedWidgets,t)},clearNamedWidget:(n,t)=>{delete n.namedWidgets[t]}},modules:{}});function Ay(n){let t;return n!==null&&typeof n=="object"&&((t=Object.getPrototypeOf(n))===Object.prototype||t===null)}function EM(n,t){const e={};for(const r of t)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e}function _y(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=arguments.length>2?arguments[2]:void 0;const r={};for(const f in n)r[f]=n[f];for(const f in t){const p=n[f],y=t[f];if(Ay(p)&&Ay(y)){r[f]=_y(p,y,e);continue}if(e&&Array.isArray(p)&&Array.isArray(y)){r[f]=e(p,y);continue}r[f]=y}return r}function ja(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(ja.cache.has(n))return ja.cache.get(n);const t=n.replace(/[^a-z]/gi,"-").replace(/\B([A-Z])/g,"-$1").toLowerCase();return ja.cache.set(n,t),t}ja.cache=new Map;function RM(n){sp(`Vuetify: ${n}`)}function Ty(n,t){return e=>Object.keys(n).reduce((r,f)=>{const p=typeof n[f]=="object"&&n[f]!=null&&!Array.isArray(n[f])?n[f]:{type:n[f]};return e&&f in e?r[f]={...p,default:e[f]}:r[f]=p,t&&!r[f].source&&(r[f].source=t),r},{})}function $y(n,t){const e=up();if(!e)throw new Error(`[Vuetify] ${n} must be called from inside a setup function`);return e}function LM(n){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$y("injectSelf");const{provides:e}=t;if(e&&n in e)return e[n]}const od=Symbol.for("vuetify:defaults");function My(){const n=ap(od);if(!n)throw new Error("[Vuetify] Could not find defaults instance");return n}function OM(n,t){return n.props&&(typeof n.props[t]<"u"||typeof n.props[ja(t)]<"u")}function NM(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:My();const r=$y("useDefaults");if(t=t??r.type.name??r.type.__name,!t)throw new Error("[Vuetify] Could not determine component name");const f=Xc(()=>{var h;return(h=e.value)==null?void 0:h[n._as??t]}),p=new Proxy(n,{get(h,g){var s,l,u,a;const o=Reflect.get(h,g);if(g==="class"||g==="style")return[(s=f.value)==null?void 0:s[g],o].filter(w=>w!=null);if(OM(r.vnode,g))return o;const c=(l=f.value)==null?void 0:l[g];if(c!==void 0)return c;const d=(a=(u=e.value)==null?void 0:u.global)==null?void 0:a[g];return d!==void 0?d:o}}),y=lp();cp(()=>{if(f.value){const h=Object.entries(f.value).filter(g=>{let[s]=g;return s.startsWith(s[0].toUpperCase())});y.value=h.length?Object.fromEntries(h):void 0}else y.value=void 0});function b(){const h=LM(od,r);hp(od,Xc(()=>y.value?_y((h==null?void 0:h.value)??{},y.value):h==null?void 0:h.value))}return{props:p,provideSubDefaults:b}}function pc(n){if(n._setup=n._setup??n.setup,!n.name)return RM("The component is missing an explicit name, unable to generate default prop value"),n;if(n._setup){n.props=Ty(n.props??{},n.name)();const t=Object.keys(n.props).filter(e=>e!=="class"&&e!=="style");n.filterProps=function(e){return EM(e,t)},n.props._as=String,n.setup=function(e,r){const f=My();if(!f.value)return n._setup(e,r);const{props:p,provideSubDefaults:y}=NM(e,e._as??n.name,f),b=n._setup(p,r);return y(),b}}return n}function DM(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return t=>(n?pc:op)(t)}const PM=[String,Function,Object,Array],gc=Ty({icon:{type:PM},tag:{type:[String,Object,Function],required:!0}},"icon");DM()({name:"VComponentIcon",props:gc(),setup(n,t){let{slots:e}=t;return()=>{const r=n.icon;return Ke(n.tag,null,{default:()=>{var f;return[n.icon?Ke(r,null,null):(f=e.default)==null?void 0:f.call(e)]}})}}}),pc({name:"VSvgIcon",inheritAttrs:!1,props:gc(),setup(n,t){let{attrs:e}=t;return()=>Ke(n.tag,dp(e,{style:null}),{default:()=>[Ke("svg",{class:"v-icon__svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":"true"},[Array.isArray(n.icon)?n.icon.map(r=>Array.isArray(r)?Ke("path",{d:r[0],"fill-opacity":r[1]},null):Ke("path",{d:r},null)):Ke("path",{d:n.icon},null)])]})}}),pc({name:"VLigatureIcon",props:gc(),setup(n){return()=>Ke(n.tag,null,{default:()=>[n.icon]})}});const FM=pc({name:"VClassIcon",props:gc(),setup(n){return()=>Ke(n.tag,{class:n.icon},null)}}),WM={component:n=>Ds(FM,{...n,class:"mdi"})},sd=vp({theme:{defaultTheme:"cosmosDark",themes:{cosmosDark:gM}},icons:{defaultSet:"mdi",sets:{mdi:WM,...X$,...Q$}}}),ad=kb({createApp:Qc,appOptions:{render(){return Ds(Eb,{})},el:"#openc3-tool"},handleInstance:n=>{n.use(pM),n.use(Sy),n.use(sd),n.use(CM),n.use(IM,{store:Sy})}}),N2=tr("f",ad.bootstrap),D2=tr("g",ad.mount),P2=tr("u",ad.unmount)}}});
|