openc3-cosmos-tool-dataviewer 6.4.1 → 6.4.2

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.
Files changed (90) hide show
  1. checksums.yaml +4 -4
  2. data/tools/dataviewer/{ArrayWidget-CeyoPOhk-41b640ac14707280f256.js → ArrayWidget-D0fKsdTb-fcb521681ec439ffcb2d.js} +2 -2
  3. data/tools/dataviewer/{ArrayplotWidget-BEw4fJPY-e70c9f75508196afa908.js → ArrayplotWidget-BmRSuGhA-d6ad1dc1cf3a3548f9c4.js} +1 -1
  4. data/tools/dataviewer/{BarColumn-CIWppEH6-a824b0f1feace078ceb8.js → BarColumn-DtYw6Gmq-cec4eb258fa105e21083.js} +1 -1
  5. data/tools/dataviewer/{BlockWidget-DRtBkPat-7a54d4f7d95a0f872ee3.js → BlockWidget-Dpxbw455-6ee5fc1361a29d6cdee8.js} +2 -2
  6. data/tools/dataviewer/{ButtonWidget-4GORf9BG-5d2ac70022ca0eb6a8f2.js → ButtonWidget-8iOpXmpp-645dbdc41939fde28f3d.js} +1 -1
  7. data/tools/dataviewer/CanvasWidget-B0iU38rA-406c38d8e5bdefc655f6.js +1 -0
  8. data/tools/dataviewer/{CanvasdotWidget-unc83V9l-9ec01392c2af3a2b3047.js → CanvasdotWidget-C9viSVBs-7902f24158585c967688.js} +1 -1
  9. data/tools/dataviewer/{CanvasimageWidget-CNPV5Ale-ba5d5875eddbaa51480c.js → CanvasimageWidget-CFiCpITu-d6403c9808cd5f53b775.js} +1 -1
  10. data/tools/dataviewer/{CanvasimagevalueWidget-DsQbSZt_-4314a243757ec3dbfce2.js → CanvasimagevalueWidget-fu6vbAY0-72a405535e013c172c55.js} +1 -1
  11. data/tools/dataviewer/CanvaslabelWidget-BVqHq3Vp-1ffeae580900e78a308a.js +1 -0
  12. data/tools/dataviewer/{CanvaslabelvalueWidget-DX-b_55r-756cf5d94de74aa17517.js → CanvaslabelvalueWidget-BOFa8-NU-b7b58a1fc1f74daf8339.js} +1 -1
  13. data/tools/dataviewer/{CanvaslineWidget-DiNWzbpu-48f372f46308370d3682.js → CanvaslineWidget-l3ko0QXk-af18ed22fc3b4321d64c.js} +1 -1
  14. data/tools/dataviewer/{CanvaslinevalueWidget-Du9pwAN7-6c827d51a7b6dcb6d713.js → CanvaslinevalueWidget-BCZoO-Z6-d4183d4ef7b8b2a76dc3.js} +1 -1
  15. data/tools/dataviewer/CheckbuttonWidget-BN7e1d5b-119ba644576c3cc6db57.js +1 -0
  16. data/tools/dataviewer/ComboboxWidget-Bb5RGXDB-c6776469d2f3b61d4f5c.js +1 -0
  17. data/tools/dataviewer/{DataViewer-9697158bf620210e5ae5.js → DataViewer-7813521d396545dc0f0c.js} +15 -13
  18. data/tools/dataviewer/{DateWidget-BCmQNavZ-f10c396c899c02a1a885.js → DateWidget-Dggqab-F-1de828cb6e86df331c44.js} +1 -1
  19. data/tools/dataviewer/{DetailsDialog-OMd7LWdZ-81a409d39d4000a1992c.js → DetailsDialog-BhSAQDSK-c7392f9dceba893ab4bd.js} +1 -1
  20. data/tools/dataviewer/{DynamicWidget-CfMtj7H8-fcedd9fa8e848e5f3498.js → DynamicWidget-CfMtj7H8-62cd4fc7b25a10fca194.js} +1 -1
  21. data/tools/dataviewer/{FormatvalueWidget-CPn5mDHY-bb599362f1ed64740f4e.js → FormatvalueWidget-B9_PbzY2-d2724e238d77e34c38f2.js} +1 -1
  22. data/tools/dataviewer/{Graph-vUcIyyTp-ba9628935db896cb34d1.js → Graph-B29y4d5A-7e6ec6ac94f0c48f7c56.js} +1 -1
  23. data/tools/dataviewer/{GraphWidget-Cl97QQYm-dfafdf32f2327b60f231.js → GraphWidget-oBxPa3EB-9c5f062064338c8cef5e.js} +1 -1
  24. data/tools/dataviewer/{HorizontalWidget-CtTkQHl--1a8c519bdff073d75f0d.js → HorizontalWidget-BWgZL_Oz-19e2fb797fb5dd2467af.js} +1 -1
  25. data/tools/dataviewer/HorizontalboxWidget-yMYUnNB8-adfaf4de843bc913ac18.js +1 -0
  26. data/tools/dataviewer/HorizontallineWidget-C4zMx7z2-2d23bd1197d1ce55c0de.js +1 -0
  27. data/tools/dataviewer/{IframeWidget-BmZOip3U-69f881f78947cc7650bd.js → IframeWidget-DA4P_mJT-831749edba853810e316.js} +1 -1
  28. data/tools/dataviewer/{ImageLoader-wYNaGuuz-66da5be96b18b9552282.js → ImageLoader-rvd9t-mk-b7cd59ccffbb387a262e.js} +1 -1
  29. data/tools/dataviewer/{ImageviewerWidget-ByuTqBHq-70efd6614ceccb708095.js → ImageviewerWidget-B1wK0hK4-c75df06546b80809c423.js} +1 -1
  30. data/tools/dataviewer/{LabelWidget-Dmb5F5j--369f952faab0bcbb50f6.js → LabelWidget-CY0saBoK-cb041090322656166ec0.js} +1 -1
  31. data/tools/dataviewer/LabelledWidget-B3ZOYaGy-a6936a0f2282faecc4f7.js +1 -0
  32. data/tools/dataviewer/LabelprogressbarWidget-CmXcESTg-c4c2296969ec54dec6aa.js +1 -0
  33. data/tools/dataviewer/{LabelsparklineWidget-BaoIdd7s-d9f3c42be0cdce4e21da.js → LabelsparklineWidget-D_yrQrn6-9fd29970acbaeb40dbad.js} +1 -1
  34. data/tools/dataviewer/LabelvalueWidget-dNaNfsBE-f28c054c1c3a3eb4d690.js +1 -0
  35. data/tools/dataviewer/{LabelvaluedescWidget-BBHwqvj4-f79e249268eacc053d31.js → LabelvaluedescWidget-3vNoH6Mc-4d15e29362c87f231e87.js} +1 -1
  36. data/tools/dataviewer/LabelvaluelimitsbarWidget-7VppYVIN-ec46787c737359860769.js +1 -0
  37. data/tools/dataviewer/LabelvaluelimitscolumnWidget-BZ6nwifg-9b98a17f5b18dd59ece7.js +1 -0
  38. data/tools/dataviewer/{LabelvaluerangebarWidget-B83Jj5Q1-54fea90dd4ed5c1540ad.js → LabelvaluerangebarWidget-IyuXLNsw-1e3da783126ecc186dee.js} +1 -1
  39. data/tools/dataviewer/Layout-BqMhhhws-9f480646ab0d0864f1ff.js +1 -0
  40. data/tools/dataviewer/{LedWidget-Cccb8YTk-e68c45d783192e419b5f.js → LedWidget-DSxpmIOK-c219b5b95ef382d88ee7.js} +1 -1
  41. data/tools/dataviewer/{LimitsbarWidget-D1EBBwX1-7b5616e98bc0f575e10d.js → LimitsbarWidget-BoPTdVV5-984af2e0b122e91a4359.js} +1 -1
  42. data/tools/dataviewer/{LimitscolorWidget--1aPSNVB-33cf53b5e23330924fbb.js → LimitscolorWidget-Bt3qOvrv-326bef34ebea3df45d5d.js} +1 -1
  43. data/tools/dataviewer/{LimitscolumnWidget-swnMNApm-610d91293df407e86ed3.js → LimitscolumnWidget-Ce6YnUBz-6203f2238842ff3cea20.js} +1 -1
  44. data/tools/dataviewer/{LinegraphWidget-BbI-wOnq-d8a048cd356dd509b619.js → LinegraphWidget-XAbg0jj2-1ad9dd74a44d16be5730.js} +1 -1
  45. data/tools/dataviewer/MatrixbycolumnsWidget-5MgJFZtz-d7b059f8bef7348512c5.js +1 -0
  46. data/tools/dataviewer/{ProgressbarWidget-7rJeuX6H-80213dfc96bb7afa138d.js → ProgressbarWidget-CDwDOFIy-91a6bcfe780b3df86cdd.js} +1 -1
  47. data/tools/dataviewer/{RadiobuttonWidget-DsEw3JiU-87cd627172ab3568329d.js → RadiobuttonWidget-cQ8V8LaD-4bd16f6cf0ebd80ee558.js} +1 -1
  48. data/tools/dataviewer/RadiogroupWidget-BvRnuGA2-800f58556e3349f1df99.js +1 -0
  49. data/tools/dataviewer/{RangebarWidget-BEGvSL_K-5644204183c85b84331c.js → RangebarWidget-aHmgV0qs-b1d50192f63d8ef9004b.js} +1 -1
  50. data/tools/dataviewer/{RollupWidget-BZhspgWd-eecfd63fb3c0da2d3084.js → RollupWidget-D1jUPrUQ-458fab2a13b13b495212.js} +1 -1
  51. data/tools/dataviewer/{ScrollwindowWidget-qZ3nhhVU-5853d87bc2c6ba419ca7.js → ScrollwindowWidget-Cn0o3b4E-596407de04688998905d.js} +1 -1
  52. data/tools/dataviewer/{SignalWidget-Bh14Zrch-a975f8d21310d7cca838.js → SignalWidget-BQBzqdU--c8e0e6f6e60a64862d90.js} +1 -1
  53. data/tools/dataviewer/{SpacerWidget-D_NE46jZ-2b01622b7d6b0b08441b.js → SpacerWidget-C0RmQY3t-4fc8eb08808b2dff5de9.js} +1 -1
  54. data/tools/dataviewer/{SparklineWidget-CJEEJdZ--d3ccd8c8622cbb0b3086.js → SparklineWidget-BTH9rvcX-4bf263b70090695edca7.js} +1 -1
  55. data/tools/dataviewer/TabbookWidget-C-aDdEoD-7f2cb15acf2e6f60afb3.js +1 -0
  56. data/tools/dataviewer/TextboxWidget-Dd2ccpUQ-998ea7942421db83cd13.js +1 -0
  57. data/tools/dataviewer/TextfieldWidget-DY3aFTnP-8a0ae4ffd21607b4783d.js +1 -0
  58. data/tools/dataviewer/{TimeWidget-AFOTVB4w-325dfd4c6cf5d08eca18.js → TimeWidget-C_site21-1639fb32344e51409f12.js} +1 -1
  59. data/tools/dataviewer/{TitleWidget-CbS_wrQw-c0804bc6e5824b0122fd.js → TitleWidget-Bx81VfQD-67d4e6bccf07a99c8580.js} +1 -1
  60. data/tools/dataviewer/{VWidget-BlF_o-7Z-bb57bcbacf57e9f9f7e8.js → VWidget-DuUens7G-69093f988de64cb007e0.js} +1 -1
  61. data/tools/dataviewer/ValueWidget-cbjxVV3B-52b4d89b3adf691b6bbc.js +1 -0
  62. data/tools/dataviewer/ValuelimitsbarWidget-cQb2o_xH-3d143a673bda5ad73a08.js +1 -0
  63. data/tools/dataviewer/{ValuelimitscolumnWidget-Bs91VFLz-5b75061d611ae3f1ff75.js → ValuelimitscolumnWidget-BBTuSCK9-13c98044f20182b5a07a.js} +1 -1
  64. data/tools/dataviewer/{ValuerangebarWidget-C7WHyR2h-8dfd39adc55f68bb4d68.js → ValuerangebarWidget-Ct7iGtu0-da1f8ec90ba886f3707f.js} +1 -1
  65. data/tools/dataviewer/{VerticalWidget-COP5oVCK-f7fa63cf7050b325cb3b.js → VerticalWidget-DJn02myf-87642ddb3b6f8ff59061.js} +1 -1
  66. data/tools/dataviewer/VerticalboxWidget-DHQMxtF3-20d17f28bc6268b4ed53.js +1 -0
  67. data/tools/dataviewer/{Widget-cmJ76_g1-19fc554d0f8917f79f5c.js → Widget-CP2CtyUr-5712850268c1e2f69cb0.js} +1 -1
  68. data/tools/dataviewer/{main-82f0607dae4d0381cd4b.js → main-955877208d00014baf6f.js} +42 -42
  69. data/tools/dataviewer/main.js +1 -1
  70. metadata +68 -68
  71. data/tools/dataviewer/CanvasWidget-VW1uHIU0-b4cdb963c64217cd5549.js +0 -1
  72. data/tools/dataviewer/CanvaslabelWidget-B-5KAkZr-5ecc669636d2a3e62ab9.js +0 -1
  73. data/tools/dataviewer/CheckbuttonWidget--QM-segm-2eea3a18f96fa4bec584.js +0 -1
  74. data/tools/dataviewer/ComboboxWidget-BDpHIcCo-e4d70d0b403c0a917e53.js +0 -1
  75. data/tools/dataviewer/HorizontalboxWidget-Dn9zVn4r-75b51e310c45ad028878.js +0 -1
  76. data/tools/dataviewer/HorizontallineWidget-BBvYWaP7-7a9090b65e69b8a79101.js +0 -1
  77. data/tools/dataviewer/LabelledWidget-DV1IbbPS-f7136a38e84ef3c9fc53.js +0 -1
  78. data/tools/dataviewer/LabelprogressbarWidget-BHBDYVZp-ef6b8fc6a9eb87300a9b.js +0 -1
  79. data/tools/dataviewer/LabelvalueWidget-wuW55zQP-ed6bc7e7c4604ae2733d.js +0 -1
  80. data/tools/dataviewer/LabelvaluelimitsbarWidget-77Rc3lCf-648425fcc99f1b3b1278.js +0 -1
  81. data/tools/dataviewer/LabelvaluelimitscolumnWidget-nounrACl-bde94f839135a7744043.js +0 -1
  82. data/tools/dataviewer/Layout-ByQC7nQ3-50887f911b50ae67964d.js +0 -1
  83. data/tools/dataviewer/MatrixbycolumnsWidget-Bx2qMr8P-ca9ecf6febd8ef4d30c1.js +0 -1
  84. data/tools/dataviewer/RadiogroupWidget-DhfbTvQ8-c39fb53c9cdb78d8baae.js +0 -1
  85. data/tools/dataviewer/TabbookWidget-C-SU65IF-d0b2fcc64e5528eab099.js +0 -1
  86. data/tools/dataviewer/TextboxWidget-Dn1Ds-b0-fa2ee3c57b079569f3d1.js +0 -1
  87. data/tools/dataviewer/TextfieldWidget-C0C7NL53-58163faf6c3959a73130.js +0 -1
  88. data/tools/dataviewer/ValueWidget-DFUfM5tw-28992b5efaf8a6789b9c.js +0 -1
  89. data/tools/dataviewer/ValuelimitsbarWidget-CALgABsT-52c35fcc64212f123a8c.js +0 -1
  90. data/tools/dataviewer/VerticalboxWidget-CDPoOx4C-461cb61d0a553f798eb6.js +0 -1
@@ -1,4 +1,4 @@
1
- System.register(["vue","vue-router","single-spa","vuex","vuetify"],function(Wn,at){"use strict";var rt,pr,an,Je,Pe,ei,br,np,rp,ar,xr,Gc,Yc,Ds,wa,Lr,Xc,Ps,ll,cl,ip,op,sp,ap,lp,Qc,cp,up,hp,dp,Zc,pp,gp,fp,mp,vp;return{setters:[Mt=>{rt=Mt.resolveComponent,pr=Mt.createBlock,an=Mt.openBlock,Je=Mt.withCtx,Pe=Mt.createVNode,ei=Mt.createElementBlock,br=Mt.createElementVNode,np=Mt.useCssVars,rp=Mt.defineAsyncComponent,ar=Mt.createTextVNode,xr=Mt.createCommentVNode,Gc=Mt.mergeProps,Yc=Mt.normalizeClass,Ds=Mt.h,wa=Mt.normalizeStyle,Lr=Mt.toDisplayString,Xc=Mt.withKeys,Ps=Mt.withModifiers,ll=Mt.withDirectives,cl=Mt.vShow,ip=Mt.createSlots,op=Mt.Fragment,sp=Mt.defineComponent,ap=Mt.warn,lp=Mt.inject,Qc=Mt.computed,cp=Mt.shallowRef,up=Mt.watchEffect,hp=Mt.getCurrentInstance,dp=Mt.provide,Zc=Mt.createApp},Mt=>{pp=Mt.createRouter,gp=Mt.createWebHistory},Mt=>{fp=Mt.getMountedApps},Mt=>{mp=Mt.createStore},Mt=>{vp=Mt.createVuetify}],execute:function(){Wn({$:Ap,c:q$,l:xn,m:kr,y:Gn,z:nd});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 ts(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(ns(p)!=="object"||p===null)return p;var b=p[Symbol.toPrimitive];if(b!==void 0){var h=b.call(p,y);if(ns(h)!=="object")return h;throw new TypeError("@@toPrimitive must return a primitive value.")}return(y==="string"?String:Number)(p)}(r,"string");return ns(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 ns(n){return ns=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},ns(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(ns(n)!=="object")throw new Error("single-spa-vue requires a configuration object");var t=ts(ts({},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(ns(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(ts({},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 ts(ts({},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=ts(ts({},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=Wn("_",(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=rt("router-view"),r=rt("v-app");return an(),pr(r,{id:"innerapp"},{default:Je(()=>[Pe(e)]),_:1})}const Eb=$b(Mb,[["render",Ib]]),ZN="modulepreload",JN=function(n){return"/"+n},e2={},lt=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/dataviewer/${n.path.replace(/^\//,"")}`),(t=n.children)==null||t.forEach(wp)},qi=Wn("d",(n,t)=>{const e=n.__vccOpts||n;for(const[r,f]of t)e[r]=f;return e}),Rb="/icons/customIcons.svg",Jc={props:{icon:{type:String},size:{type:String,default:"small"},color:{type:String,default:"white"}},computed:{iconSrc:function(){return Rb+"#"+this.icon}}},bp=()=>{np(n=>({"259824e2":n.color}))},xp=Jc.setup;Jc.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 an(),ei("span",Lb,[(an(),ei("svg",Ob,[br("use",{href:p.iconSrc},null,8,Nb)]))])}const Pb=qi(Jc,[["render",Db],["__scopeId","data-v-4b6f1199"]]),ul=6e4,eu=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 xn(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=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=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 hl(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=Gn.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-hl(p),h=+y-hl(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(+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"}},qb=(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 tu(n){return(t={})=>{const e=t.width?String(t.width):n.defaultWidth;return n.formats[e]||n.formats[n.defaultWidth]}}const Kb={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:tu({formats:Kb,defaultWidth:"full"}),time:tu({formats:Gb,defaultWidth:"full"}),dateTime:tu({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:qb,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 nu(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=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=nu(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=xn(n,t==null?void 0:t.in),r=+Io(e,t)-+S0(e,t);return Math.round(r/6048e5)+1}function ln(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 ln(t==="yy"?r%100:r,t.length)},M(n,t){const e=n.getMonth();return t==="M"?String(e+1):ln(e+1,2)},d(n,t){return ln(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 ln(n.getHours()%12||12,t.length)},H(n,t){return ln(n.getHours(),t.length)},m(n,t){return ln(n.getMinutes(),t.length)},s(n,t){return ln(n.getSeconds(),t.length)},S(n,t){const e=t.length,r=n.getMilliseconds(),f=Math.trunc(r*Math.pow(10,e-3));return ln(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=nu(n,r),p=f>0?f:1-f;if(t==="YY"){const y=p%100;return ln(y,2)}return t==="Yo"?e.ordinalNumber(p,{unit:"year"}):ln(p,t.length)},R:function(n,t){const e=kp(n);return ln(e,t.length)},u:function(n,t){const e=n.getFullYear();return ln(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 ln(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 ln(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 ln(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"}):ln(f,t.length)},I:function(n,t,e){const r=Tp(n);return t==="Io"?e.ordinalNumber(r,{unit:"week"}):ln(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"}):ln(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 ln(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 ln(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 ln(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"}):ln(r,t.length)},k:function(n,t,e){let r=n.getHours();return r===0&&(r=24),t==="ko"?e.ordinalNumber(r,{unit:"hour"}):ln(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 rs(r);case"XXXXX":case"XXX":default:return rs(r,":")}},x:function(n,t,e){const r=n.getTimezoneOffset();switch(t){case"x":return Ep(r);case"xxxx":case"xx":return rs(r);case"xxxxx":case"xxx":default:return rs(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"+rs(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"+rs(r,":")}},t:function(n,t,e){const r=Math.trunc(+n/1e3);return ln(r,t.length)},T:function(n,t,e){return ln(+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+ln(p,2)}function Ep(n,t){return n%60===0?(n>0?"-":"+")+ln(Math.abs(n)/60,2):rs(n,t)}function rs(n,t=""){const e=n>0?"-":"+",r=Math.abs(n),f=ln(Math.trunc(r/60),2),p=ln(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))},ru={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 iu(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 Ro(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 I=x[0];if(I==="p"||I==="P"){const $=ru[I];return $(x,u.formatLong)}return x}).join("").match(I0).map(x=>{if(x==="''")return{isToken:!1,value:"'"};const I=x[0];if(I==="'")return{isToken:!1,value:N0(x)};if(Mp[I])return{isToken:!0,value:x};if(I.match(O0))throw new RangeError("Format string contains an unescaped latin alphabet character `"+I+"`");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 I=x.value;(!(e!=null&&e.useAdditionalWeekYearTokens)&&Np(I)||!(e!=null&&e.useAdditionalDayOfYearTokens)&&Op(I))&&iu(I,t,String(n));const $=Mp[I[0]];return $(c,I,u.localize,w)}).join("")}function N0(n){const t=n.match(R0);return t?t[1].replace(L0,"'"):n}var Lo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function dl(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,"&#38;").replace(/"/g,"&#34;").replace(/'/g,"&#39;").replace(/</g,"&#60;")},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 I=u(a[x],o,c);I&&w.push(I)}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(Wn,at){"use strict";var rt,pr,Jt,Je,Pe,Or,br,rp,ip,Gn,xr,Yc,Xc,Ds,wa,Cr,Qc,Ps,ll,cl,op,ul,sp,ap,lp,Zc,cp,up,hp,dp,Jc,pp,gp,fp,mp,vp;return{setters:[Mt=>{rt=Mt.resolveComponent,pr=Mt.createBlock,Jt=Mt.openBlock,Je=Mt.withCtx,Pe=Mt.createVNode,Or=Mt.createElementBlock,br=Mt.createElementVNode,rp=Mt.useCssVars,ip=Mt.defineAsyncComponent,Gn=Mt.createTextVNode,xr=Mt.createCommentVNode,Yc=Mt.mergeProps,Xc=Mt.normalizeClass,Ds=Mt.h,wa=Mt.normalizeStyle,Cr=Mt.toDisplayString,Qc=Mt.withKeys,Ps=Mt.withModifiers,ll=Mt.withDirectives,cl=Mt.vShow,op=Mt.createSlots,ul=Mt.Fragment,sp=Mt.defineComponent,ap=Mt.warn,lp=Mt.inject,Zc=Mt.computed,cp=Mt.shallowRef,up=Mt.watchEffect,hp=Mt.getCurrentInstance,dp=Mt.provide,Jc=Mt.createApp},Mt=>{pp=Mt.createRouter,gp=Mt.createWebHistory},Mt=>{fp=Mt.getMountedApps},Mt=>{mp=Mt.createStore},Mt=>{vp=Mt.createVuetify}],execute:function(){Wn({$:Ap,c:q$,l:xn,m:Sr,y:Yn,z:rd});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 ts(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(ns(p)!=="object"||p===null)return p;var b=p[Symbol.toPrimitive];if(b!==void 0){var h=b.call(p,y);if(ns(h)!=="object")return h;throw new TypeError("@@toPrimitive must return a primitive value.")}return(y==="string"?String:Number)(p)}(r,"string");return ns(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 ns(n){return ns=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},ns(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(ns(n)!=="object")throw new Error("single-spa-vue requires a configuration object");var t=ts(ts({},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(ns(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(ts({},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 ts(ts({},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=ts(ts({},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=Wn("_",(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=rt("router-view"),r=rt("v-app");return Jt(),pr(r,{id:"innerapp"},{default:Je(()=>[Pe(e)]),_:1})}const Eb=$b(Mb,[["render",Ib]]),ZN="modulepreload",JN=function(n){return"/"+n},e2={},lt=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/dataviewer/${n.path.replace(/^\//,"")}`),(t=n.children)==null||t.forEach(wp)},qi=Wn("d",(n,t)=>{const e=n.__vccOpts||n;for(const[r,f]of t)e[r]=f;return e}),Rb="/icons/customIcons.svg",eu={props:{icon:{type:String},size:{type:String,default:"small"},color:{type:String,default:"white"}},computed:{iconSrc:function(){return Rb+"#"+this.icon}}},bp=()=>{rp(n=>({"259824e2":n.color}))},xp=eu.setup;eu.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 Jt(),Or("span",Lb,[(Jt(),Or("svg",Ob,[br("use",{href:p.iconSrc},null,8,Nb)]))])}const Pb=qi(eu,[["render",Db],["__scopeId","data-v-4b6f1199"]]),hl=6e4,tu=36e5,Fb=1e3,Cp=Symbol.for("constructDateFrom");function Yn(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 Yn(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=Yn(e,0);f.setFullYear(r+1,0,4),f.setHours(0,0,0,0);const p=Ws(f),y=Yn(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=Yn.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=Yn(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"}},qb=(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 nu(n){return(t={})=>{const e=t.width?String(t.width):n.defaultWidth;return n.formats[e]||n.formats[n.defaultWidth]}}const Kb={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:nu({formats:Kb,defaultWidth:"full"}),time:nu({formats:Gb,defaultWidth:"full"}),dateTime:nu({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:qb,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 ru(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=Yn((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=Yn((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=ru(n,t),g=Yn((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 ln(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 ln(t==="yy"?r%100:r,t.length)},M(n,t){const e=n.getMonth();return t==="M"?String(e+1):ln(e+1,2)},d(n,t){return ln(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 ln(n.getHours()%12||12,t.length)},H(n,t){return ln(n.getHours(),t.length)},m(n,t){return ln(n.getMinutes(),t.length)},s(n,t){return ln(n.getSeconds(),t.length)},S(n,t){const e=t.length,r=n.getMilliseconds(),f=Math.trunc(r*Math.pow(10,e-3));return ln(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=ru(n,r),p=f>0?f:1-f;if(t==="YY"){const y=p%100;return ln(y,2)}return t==="Yo"?e.ordinalNumber(p,{unit:"year"}):ln(p,t.length)},R:function(n,t){const e=kp(n);return ln(e,t.length)},u:function(n,t){const e=n.getFullYear();return ln(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 ln(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 ln(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 ln(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"}):ln(f,t.length)},I:function(n,t,e){const r=Tp(n);return t==="Io"?e.ordinalNumber(r,{unit:"week"}):ln(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"}):ln(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 ln(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 ln(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 ln(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"}):ln(r,t.length)},k:function(n,t,e){let r=n.getHours();return r===0&&(r=24),t==="ko"?e.ordinalNumber(r,{unit:"hour"}):ln(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 rs(r);case"XXXXX":case"XXX":default:return rs(r,":")}},x:function(n,t,e){const r=n.getTimezoneOffset();switch(t){case"x":return Ep(r);case"xxxx":case"xx":return rs(r);case"xxxxx":case"xxx":default:return rs(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"+rs(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"+rs(r,":")}},t:function(n,t,e){const r=Math.trunc(+n/1e3);return ln(r,t.length)},T:function(n,t,e){return ln(+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+ln(p,2)}function Ep(n,t){return n%60===0?(n>0?"-":"+")+ln(Math.abs(n)/60,2):rs(n,t)}function rs(n,t=""){const e=n>0?"-":"+",r=Math.abs(n),f=ln(Math.trunc(r/60),2),p=ln(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))},iu={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 ou(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 Ro(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 I=x[0];if(I==="p"||I==="P"){const $=iu[I];return $(x,u.formatLong)}return x}).join("").match(I0).map(x=>{if(x==="''")return{isToken:!1,value:"'"};const I=x[0];if(I==="'")return{isToken:!1,value:N0(x)};if(Mp[I])return{isToken:!0,value:x};if(I.match(O0))throw new RangeError("Format string contains an unescaped latin alphabet character `"+I+"`");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 I=x.value;(!(e!=null&&e.useAdditionalWeekYearTokens)&&Np(I)||!(e!=null&&e.useAdditionalDayOfYearTokens)&&Op(I))&&ou(I,t,String(n));const $=Mp[I[0]];return $(c,I,u.localize,w)}).join("")}function N0(n){const t=n.match(R0);return t?t[1].replace(L0,"'"):n}var Lo=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,"&#38;").replace(/"/g,"&#34;").replace(/'/g,"&#39;").replace(/</g,"&#60;")},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 I=u(a[x],o,c);I&&w.push(I)}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
  *
@@ -172,10 +172,10 @@ System.register(["vue","vue-router","single-spa","vuex","vuetify"],function(Wn,a
172
172
  `+Xe,je+=1,ke+=1);Xe.length>o&&(ke<o&&je<o?Xe=Xe.slice(0,o):(Xe=`
173
173
  `,ke==je?ke=je=0:(ke=0,je=1)));var Cn=Xe+`
174
174
 
175
- `;Cn!=A&&(R.value=A=Cn,N=B=Cn.length)}if(Te&&(N=R.selectionStart,B=R.selectionEnd),B!=je||N!=ke||R.selectionEnd!=B)try{R.setSelectionRange(ke,je),N=ke,B=je}catch{}E=!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){E||(L?L=!1:ue(R)?(C.selectAll(),ae()):I&&R.selectionStart!=N&&ae())},fe=null;this.setInputHandler=function(ke){fe=ke},this.getInputHandler=function(){return fe};var Te=!1,$e=function(ke,je){if(Te&&(Te=!1),P)return ae(),ke&&C.onPaste(ke),P=!1,"";for(var Xe=R.selectionStart,ft=R.selectionEnd,At=N,St=A.length-B,Dt=ke,Ot=ke.length-Xe,dt=ke.length-ft,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,dt-=xt-1;var Cn=Dt.length-xt+1;if(Cn<0&&(At=-Cn,Cn=0),Dt=Dt.slice(0,Cn),!je&&!Dt&&!Ot&&!At&&!St&&!dt)return"";H=!0;var Ar=!1;return b.isAndroid&&Dt==". "&&(Dt=" ",Ar=!0),Dt&&!At&&!St&&!Ot&&!dt||O?C.onTextInput(Dt):C.onTextInput(Dt,{extendLeft:At,extendRight:St,restoreStart:Ot,restoreEnd:dt}),H=!1,A=ke,N=Xe,B=ft,U=dt,Ar?`
176
- `:Dt},Ie=function(ke){if(E)return gn();if(ke&&ke.inputType){if(ke.inputType=="historyUndo")return C.execCommand("undo");if(ke.inputType=="historyRedo")return C.execCommand("redo")}var je=R.value,Xe=$e(je,!0);(je.length>o+100||x.test(Xe)||I&&N<1&&N==B)&&ae()},Ye=function(ke,je,Xe){var ft=ke.clipboardData||window.clipboardData;if(!(!ft||l)){var At=u||Xe?"Text":"text/plain";try{return je?ft.setData(At,je)!==!1:ft.getData(At)}catch(St){if(!Xe)return Ye(St,je,!0)}}},Ke=function(ke,je){var Xe=C.getCopyText();if(!Xe)return p.preventDefault(ke);Ye(ke,Xe)?(w&&(ae(Xe),L=Xe,setTimeout(function(){L=!1},10)),je?C.onCut():C.onCopy(),p.preventDefault(ke)):(L=!0,R.value=Xe,R.select(),setTimeout(function(){L=!1,ae(),je?C.onCut():C.onCopy()}))},pt=function(ke){Ke(ke,!0)},it=function(ke){Ke(ke,!1)},gt=function(ke){var je=Ye(ke);s.pasteCancelled()||(typeof je=="string"?(je&&C.onPaste(je,ke),b.isIE&&setTimeout(ae),p.preventDefault(ke)):(R.value="",P=!0))};p.addCommandKeyListener(R,function(ke,je,Xe){if(!E)return C.onCommandKey(ke,je,Xe)},C),p.addListener(R,"select",ce,C),p.addListener(R,"input",Ie,C),p.addListener(R,"cut",pt,C),p.addListener(R,"copy",it,C),p.addListener(R,"paste",gt,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:it(ke);break;case 86:gt(ke);break;case 88:pt(ke);break}},C);var tn=function(ke){if(!(E||!C.onCompositionStart||C.$readOnly)&&(E={},!O)){ke.data&&(E.useTextareaForIME=!1),setTimeout(gn,0),C._signal("compositionStart"),C.on("mousedown",fr);var je=C.getSelectionRange();je.end.row=je.start.row,je.end.column=je.start.column,E.markerRange=je,E.selectionStart=N,C.onCompositionStart(E),E.useTextareaForIME?(A=R.value="",N=0,B=0):(R.msGetInputContext&&(E.context=R.msGetInputContext()),R.getInputContext&&(E.context=R.getInputContext()))}},gn=function(){if(!(!E||!C.onCompositionUpdate||C.$readOnly)){if(O)return fr();if(E.useTextareaForIME)C.onCompositionUpdate(R.value);else{var ke=R.value;$e(ke),E.markerRange&&(E.context&&(E.markerRange.start.column=E.selectionStart=E.context.compositionStartOffset),E.markerRange.end.column=E.markerRange.start.column+B-E.selectionStart+U)}}},Yt=function(ke){!C.onCompositionEnd||C.$readOnly||(E=!1,C.onCompositionEnd(),C.off("mousedown",fr),ke&&Ie())};function fr(){_=!0,R.blur(),R.focus(),_=!1}var fn=g.delayedCall(gn,50).schedule.bind(null,null);function En(ke){ke.keyCode==27&&R.value.length<R.selectionStart&&(E||(A=R.value),N=B=-1,ae()),fn()}p.addListener(R,"compositionstart",tn,C),p.addListener(R,"compositionupdate",gn,C),p.addListener(R,"keyup",En,C),p.addListener(R,"keydown",fn,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,je){F||(F=R.style.cssText),R.style.cssText=(je?"z-index:100000;":"")+(b.isIE?"opacity:0.1;":"")+"text-indent: -"+(N+B)*C.renderer.characterWidth*.5+"px;";var Xe=C.container.getBoundingClientRect(),ft=h.computedStyle(C.container),At=Xe.top+(parseInt(ft.borderTopWidth)||0),St=Xe.left+(parseInt(ft.borderLeftWidth)||0),Dt=Xe.bottom-At-R.clientHeight-2,Ot=function(dt){h.translate(R,dt.clientX-St-2,Math.min(dt.clientY-At-2,Dt))};Ot(ke),ke.type=="mousedown"&&(C.renderer.$isMousePressed=!0,clearTimeout(Rn),b.isWin&&p.capture(C.container,Ot,Qn))},this.onContextMenuClose=Qn;var Rn;function Qn(){clearTimeout(Rn),Rn=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&&Ue(S,C,R);function Ue(ke,je,Xe){var ft=null,At=!1;Xe.addEventListener("keydown",function(Dt){ft&&clearTimeout(ft),At=!0},!0),Xe.addEventListener("keyup",function(Dt){ft=setTimeout(function(){At=!1},100)},!0);var St=function(Dt){if(document.activeElement===Xe&&!(At||E||je.$mouseHandler.isMousePressed)&&!L){var Ot=Xe.selectionStart,dt=Xe.selectionEnd,xt=null,Cn=0;if(Ot==0?xt=c.up:Ot==1?xt=c.home:dt>B&&A[dt]==`
175
+ `;Cn!=A&&(R.value=A=Cn,N=B=Cn.length)}if(Te&&(N=R.selectionStart,B=R.selectionEnd),B!=je||N!=ke||R.selectionEnd!=B)try{R.setSelectionRange(ke,je),N=ke,B=je}catch{}E=!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){E||(L?L=!1:ue(R)?(C.selectAll(),ae()):I&&R.selectionStart!=N&&ae())},fe=null;this.setInputHandler=function(ke){fe=ke},this.getInputHandler=function(){return fe};var Te=!1,$e=function(ke,je){if(Te&&(Te=!1),P)return ae(),ke&&C.onPaste(ke),P=!1,"";for(var Xe=R.selectionStart,ft=R.selectionEnd,At=N,St=A.length-B,Dt=ke,Ot=ke.length-Xe,dt=ke.length-ft,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,dt-=xt-1;var Cn=Dt.length-xt+1;if(Cn<0&&(At=-Cn,Cn=0),Dt=Dt.slice(0,Cn),!je&&!Dt&&!Ot&&!At&&!St&&!dt)return"";H=!0;var _r=!1;return b.isAndroid&&Dt==". "&&(Dt=" ",_r=!0),Dt&&!At&&!St&&!Ot&&!dt||O?C.onTextInput(Dt):C.onTextInput(Dt,{extendLeft:At,extendRight:St,restoreStart:Ot,restoreEnd:dt}),H=!1,A=ke,N=Xe,B=ft,U=dt,_r?`
176
+ `:Dt},Ie=function(ke){if(E)return gn();if(ke&&ke.inputType){if(ke.inputType=="historyUndo")return C.execCommand("undo");if(ke.inputType=="historyRedo")return C.execCommand("redo")}var je=R.value,Xe=$e(je,!0);(je.length>o+100||x.test(Xe)||I&&N<1&&N==B)&&ae()},Ye=function(ke,je,Xe){var ft=ke.clipboardData||window.clipboardData;if(!(!ft||l)){var At=u||Xe?"Text":"text/plain";try{return je?ft.setData(At,je)!==!1:ft.getData(At)}catch(St){if(!Xe)return Ye(St,je,!0)}}},Ke=function(ke,je){var Xe=C.getCopyText();if(!Xe)return p.preventDefault(ke);Ye(ke,Xe)?(w&&(ae(Xe),L=Xe,setTimeout(function(){L=!1},10)),je?C.onCut():C.onCopy(),p.preventDefault(ke)):(L=!0,R.value=Xe,R.select(),setTimeout(function(){L=!1,ae(),je?C.onCut():C.onCopy()}))},pt=function(ke){Ke(ke,!0)},it=function(ke){Ke(ke,!1)},gt=function(ke){var je=Ye(ke);s.pasteCancelled()||(typeof je=="string"?(je&&C.onPaste(je,ke),b.isIE&&setTimeout(ae),p.preventDefault(ke)):(R.value="",P=!0))};p.addCommandKeyListener(R,function(ke,je,Xe){if(!E)return C.onCommandKey(ke,je,Xe)},C),p.addListener(R,"select",ce,C),p.addListener(R,"input",Ie,C),p.addListener(R,"cut",pt,C),p.addListener(R,"copy",it,C),p.addListener(R,"paste",gt,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:it(ke);break;case 86:gt(ke);break;case 88:pt(ke);break}},C);var nn=function(ke){if(!(E||!C.onCompositionStart||C.$readOnly)&&(E={},!O)){ke.data&&(E.useTextareaForIME=!1),setTimeout(gn,0),C._signal("compositionStart"),C.on("mousedown",fr);var je=C.getSelectionRange();je.end.row=je.start.row,je.end.column=je.start.column,E.markerRange=je,E.selectionStart=N,C.onCompositionStart(E),E.useTextareaForIME?(A=R.value="",N=0,B=0):(R.msGetInputContext&&(E.context=R.msGetInputContext()),R.getInputContext&&(E.context=R.getInputContext()))}},gn=function(){if(!(!E||!C.onCompositionUpdate||C.$readOnly)){if(O)return fr();if(E.useTextareaForIME)C.onCompositionUpdate(R.value);else{var ke=R.value;$e(ke),E.markerRange&&(E.context&&(E.markerRange.start.column=E.selectionStart=E.context.compositionStartOffset),E.markerRange.end.column=E.markerRange.start.column+B-E.selectionStart+U)}}},Yt=function(ke){!C.onCompositionEnd||C.$readOnly||(E=!1,C.onCompositionEnd(),C.off("mousedown",fr),ke&&Ie())};function fr(){_=!0,R.blur(),R.focus(),_=!1}var fn=g.delayedCall(gn,50).schedule.bind(null,null);function En(ke){ke.keyCode==27&&R.value.length<R.selectionStart&&(E||(A=R.value),N=B=-1,ae()),fn()}p.addListener(R,"compositionstart",nn,C),p.addListener(R,"compositionupdate",gn,C),p.addListener(R,"keyup",En,C),p.addListener(R,"keydown",fn,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,je){F||(F=R.style.cssText),R.style.cssText=(je?"z-index:100000;":"")+(b.isIE?"opacity:0.1;":"")+"text-indent: -"+(N+B)*C.renderer.characterWidth*.5+"px;";var Xe=C.container.getBoundingClientRect(),ft=h.computedStyle(C.container),At=Xe.top+(parseInt(ft.borderTopWidth)||0),St=Xe.left+(parseInt(ft.borderLeftWidth)||0),Dt=Xe.bottom-At-R.clientHeight-2,Ot=function(dt){h.translate(R,dt.clientX-St-2,Math.min(dt.clientY-At-2,Dt))};Ot(ke),ke.type=="mousedown"&&(C.renderer.$isMousePressed=!0,clearTimeout(Rn),b.isWin&&p.capture(C.container,Ot,Zn))},this.onContextMenuClose=Zn;var Rn;function Zn(){clearTimeout(Rn),Rn=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),Zn()};p.addListener(R,"mouseup",bt,C),p.addListener(R,"mousedown",function(ke){ke.preventDefault(),Zn()},C),p.addListener(C.renderer.scroller,"contextmenu",bt,C),p.addListener(R,"contextmenu",bt,C),w&&Ue(S,C,R);function Ue(ke,je,Xe){var ft=null,At=!1;Xe.addEventListener("keydown",function(Dt){ft&&clearTimeout(ft),At=!0},!0),Xe.addEventListener("keyup",function(Dt){ft=setTimeout(function(){At=!1},100)},!0);var St=function(Dt){if(document.activeElement===Xe&&!(At||E||je.$mouseHandler.isMousePressed)&&!L){var Ot=Xe.selectionStart,dt=Xe.selectionEnd,xt=null,Cn=0;if(Ot==0?xt=c.up:Ot==1?xt=c.home:dt>B&&A[dt]==`
177
177
  `?xt=c.end:Ot<N&&A[Ot-1]==" "?(xt=c.left,Cn=d.option):Ot<N||Ot==N&&B!=N&&Ot==dt?xt=c.left:dt>B&&A.slice(0,dt).split(`
178
- `).length>2?xt=c.down:dt>B&&A[dt-1]==" "?(xt=c.right,Cn=d.option):(dt>B||dt==B&&B!=N&&Ot==dt)&&(xt=c.right),Ot!==dt&&(Cn|=d.shift),xt){var Ar=je.onCommandKey({},Cn,xt);if(!Ar&&je.commands){xt=c.keyCodeToString(xt);var qr=je.commands.findKeyCommand(Cn,xt);qr&&je.execCommand(qr)}N=Ot,B=dt,ae("")}}};document.addEventListener("selectionchange",St),je.on("destroy",function(){document.removeEventListener("selectionchange",St)})}this.destroy=function(){R.parentElement&&R.parentElement.removeChild(R)}},r.TextInput=$,r.$setUserAgentForTests=function(S,C){I=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 I=s(this.$clickSelection,c);c=I.cursor,a=I.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 I=Math.abs(w/x),$=!1;if(I>=1&&a.renderer.isScrollableBy(u.wheelX*u.speed,0)&&($=!0),I<=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,I){x.__proto__=I}||function(x,I){for(var $ in I)Object.prototype.hasOwnProperty.call(I,$)&&(x[$]=I[$])},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,I;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($)),E=P.next();!E.done;E=P.next()){var H=E.value;if(this.doPopupsOverlap(H,R)){L=!1;break}}}catch(F){x={error:F}}finally{try{E&&!E.done&&(I=P.return)&&I.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(),I=w.getElement().getBoundingClientRect();return x.left<I.right&&x.right>I.left&&x.top<I.bottom&&x.bottom>I.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 I=x.getElement();return I.style.whiteSpace="pre-wrap",I.style.pointerEvents="auto",I.addEventListener("mouseout",x.onMouseOut),I.tabIndex=-1,I.addEventListener("blur",(function(){I.contains(document.activeElement)||this.hide()}).bind(x)),I.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 I=x.$mouseHandler.isMousePressed;if(this.isOpen){var $=this.lastEvent&&this.lastEvent.getDocumentPosition();(!this.range||!this.range.contains($.row,$.column)||I||this.isOutsideOfText(this.lastEvent))&&this.hide()}this.timeout||I||(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,I=w.getDocumentPosition(),$=x.session.getLine(I.row);if(I.column==$.length){var S=x.renderer.pixelToScreenCoordinates(w.clientX,w.clientY),C=x.session.documentToScreenPosition(I.row,I.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,I,$){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(I),P.style.maxHeight="",P.style.display="block";var E=P.clientHeight,H=P.clientWidth,F=window.innerHeight-R.pageY-C.lineHeight,O=!0;R.pageY-E<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,I){x.__proto__=I}||function(x,I){for(var $ in I)Object.prototype.hasOwnProperty.call(I,$)&&(x[$]=I[$])},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 E=L.getDocumentPosition().row,H=d.session.selection;if(L.getShiftKey())H.selectTo(E,0);else{if(L.domEvent.detail==2)return d.selectAll(),L.preventDefault();c.$clickSelection=d.selection.getLineRange(E)}return c.setState("selectByLines"),c.captureMouse(L),L.preventDefault()}}});var I,$;function S(){var L=$.getDocumentPosition().row,P=d.session.getLength();if(L==P){var E=d.renderer.pixelToScreenCoordinates(0,$.y).row,H=$.$pos;if(E>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))||(I&&(I=clearTimeout(I)),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,!I&&(I=setTimeout(function(){I=null,$&&!c.isMousePressed&&S()},50))}),h.addListener(d.renderer.$gutter,"mouseout",function(L){$=null,x.isOpen&&(I=setTimeout(function(){I=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 I=c.call(this,w.container)||this;I.editor=w,I.visibleTooltipRow;var $=I.getElement();return $.setAttribute("role","tooltip"),$.style.pointerEvents="auto",x&&(I.onMouseOut=I.onMouseOut.bind(I),$.addEventListener("mouseout",I.onMouseOut)),I}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 I=window.innerWidth||document.documentElement.clientWidth,$=window.innerHeight||document.documentElement.clientHeight,S=this.getWidth(),C=this.getHeight();w+=15,x+=15,w+S>I&&(w-=w+S-I),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,I=this.editor.renderer.$gutterLayer,$=I.$annotations[w],S;$?S={displayText:Array.from($.displayText),type:Array.from($.type)}:S={displayText:[],type:[]};var C=I.session.getFoldLine(w);if(C&&I.$showFoldedAnnotations){for(var R={error:[],security:[],warning:[],info:[],hint:[]},L={error:1,security:2,warning:3,info:4,hint:5},P,E=w+1;E<=C.end.row;E++)if(I.$annotations[E])for(var H=0;H<I.$annotations[E].text.length;H++){var F=I.$annotations[E].type[H];R[F].push(I.$annotations[E].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=I.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",E=0;E<S.displayText.length;E++){var N=b.createElement("span"),B=b.createElement("span");(x=B.classList).add.apply(x,["ace_".concat(S.type[E]),A]),B.setAttribute("aria-label","".concat(d.annotationLabels[S.type[E].replace("_fold","")].singular)),B.setAttribute("role","img"),B.appendChild(b.createTextNode(" ")),N.appendChild(B),N.appendChild(b.createTextNode(S.displayText[E])),N.appendChild(b.createElement("br")),_[S.type[E].replace("_fold","")].push(N)}var U=this.getElement();b.removeChildren(U),_.error.forEach(function(K){return U.appendChild(K)}),_.security.forEach(function(K){return U.appendChild(K)}),_.warning.forEach(function(K){return U.appendChild(K)}),_.info.forEach(function(K){return U.appendChild(K)}),_.hint.forEach(function(K){return U.appendChild(K)}),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,I,$=[],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(E){x={error:E}}finally{try{R&&!R.done&&(I=C.return)&&I.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,I,$,S,C,R,L=0,P,E,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()),E=!0,this.setState("drag")},this.onDragEnd=function(ne){if(w.draggable=!1,E=!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 I=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 I=ne.clientX,$=ne.clientY,x||(B(),L++),K!==null&&(K=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(E)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:I,y:$};else{var Te=u(O.x,O.y,I,$);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:I-Te.left,right:Te.right-I},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),Ke={row:ne.row,column:ne.column};Ie/fe<=2&&(Ke.column+=$e.x.left<$e.x.right?-3:2),Ye/ce<=1&&(Ke.row+=$e.y.top<$e.y.bottom?-1:1);var pt=ne.row!=Ke.row,it=ne.column!=Ke.column,gt=!ae||ne.row!=ae.row;pt||it&&!gt?H?ue-H>=h&&o.renderer.scrollCursorIntoView(Ke):H=ue:H=null}function N(){var ne=R;R=o.renderer.screenToTextCoordinates(I,$),_(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()&&!E&&o.$resetCursorStyle(),C=null,R=null,L=0,H=null,F=null,y.removeListener(document,"mousemove",Z)}var K=null;function Z(){K==null&&(K=setTimeout(function(){K!=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 I=o.container;I.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,I=0,$=0,S=0,C,R;function L(){var _=window.navigator&&window.navigator.clipboard,A=!1,N=function(){var K=g.getCopyText(),Z=g.session.getUndoManager().hasUndo();R.replaceChild(b.buildDom(A?["span",!K&&B("selectall")&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],K&&B("copy")&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],K&&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(K){return g.commands.canExecute(K,g)},U=function(K){var Z=K.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(K){s="menu",K.stopPropagation(),K.preventDefault(),g.textInput.focus()},ontouchend:function(K){K.stopPropagation(),K.preventDefault(),U(K)},onclick:U},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],g.container)}function P(){if(!g.getOption("enableMobileMenu")){R&&E();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",E)}function E(_){R&&(R.style.display="none"),g.off("input",E)}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 _=I>=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 K=A[0],Z=K.clientX,te=K.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)I++,_.preventDefault(),_.button=0,F();else{I=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(pt,it){return pt=pt/B,it=it/N-.75,pt*pt+it*it};if(_.clientX<fe.left){s="zoom";return}var Ye=Ie(_.clientX-fe.left-ue.left+$e,_.clientY-fe.top-ue.top+Te),Ke=Ie(_.clientX-fe.left-ce.left+$e,_.clientY-fe.top-ce.top+Te);Ye<3.5&&Ke<3.5&&(s=Ye>Ke?"cursor":"anchor"),Ke<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(),E()):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 K=_.timeStamp,Z=K-o;if(o=K,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 I=c.renderer.$gutter;p.addListener(I,"mousedown",this.onMouseEvent.bind(this,"guttermousedown"),c),p.addListener(I,"click",this.onMouseEvent.bind(this,"gutterclick"),c),p.addListener(I,"dblclick",this.onMouseEvent.bind(this,"gutterdblclick"),c),p.addListener(I,"mousemove",this.onMouseEvent.bind(this,"guttermousemove"),c),p.addListener(x,"mousedown",w,c),p.addListener(I,"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 I=this,$=function(P){if(P){if(y.isWebKit&&!P.which&&I.releaseMouse)return I.releaseMouse();I.x=P.clientX,I.y=P.clientY,d&&d(P),I.mouseEvent=new g(P,I.editor),I.$mouseMoved=!0}},S=function(P){w.off("beforeEndOperation",R),clearInterval(L),w.session&&C(),I[I.state+"End"]&&I[I.state+"End"](P),I.state="",I.isMousePressed=x.$isMousePressed=!1,x.$keepTextAreaAtCursor&&x.$moveTextAreaToCursor(),I.$onCaptureMouseMove=I.releaseMouse=null,P&&I.onMouseEvent("mouseup",P),w.endOperation()},C=function(){I[I.state]&&I[I.state](),I.$mouseMoved=!1};if(y.isOldIE&&c.domEvent.type=="dblclick")return setTimeout(function(){S(c)});var R=function(P){I.releaseMouse&&w.curOp.command.name&&w.curOp.selectionChanged&&(I[I.state+"End"]&&I[I.state+"End"](),I.state="",I.releaseMouse())};w.on("beforeEndOperation",R),w.startOperation({command:{name:"mouse"}}),I.$onCaptureMouseMove=$,I.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,I=5,$=6,S=7,C=8,R=9,L=10,P=11,E=12,H=13,F=14,O=15,_=16,A=17,N=18,B=[N,N,N,N,N,N,N,N,N,$,I,$,C,I,N,N,N,N,N,N,N,N,N,N,N,N,N,N,I,I,I,$,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,I,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,I,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 K(ne,ae,ue,ce){var fe=p?l:s,Te=null,$e=null,Ie=null,Ye=0,Ke=null,pt=null,it=-1,gt=null,tn=null,gn=[];if(!ce)for(gt=0,ce=[];gt<ue;gt++)ce[gt]=he(ne[gt]);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],Ke=Ye&240,Ye&=15,ae[tn]=Ie=fe[Ye][5],Ke>0)if(Ke==16){for(gt=it;gt<tn;gt++)ae[gt]=1;it=-1}else it=-1;if(pt=fe[Ye][6],pt)it==-1&&(it=tn);else if(it>-1){for(gt=it;gt<tn;gt++)ae[gt]=Ie;it=-1}ce[tn]==I&&(ae[tn]=0),y|=Ie}if(g){for(gt=0;gt<ue;gt++)if(ce[gt]==$){ae[gt]=p;for(var Yt=gt-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]:I,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 E:for(Ie=ae.length,Ye=ce+1;Ye<Ie&&ae[Ye]==E;)Ye++;if(Ye<Ie){var Ke=ne[ce],pt=Ke>=1425&&Ke<=2303||Ke==64286;if(Te=ae[Ye],pt&&(Te==c||Te==S))return c}return ce<1||(Te=ae[ce-1])==I?x:ue[ce-1];case I: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)?E:/[\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,K(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(`
178
+ `).length>2?xt=c.down:dt>B&&A[dt-1]==" "?(xt=c.right,Cn=d.option):(dt>B||dt==B&&B!=N&&Ot==dt)&&(xt=c.right),Ot!==dt&&(Cn|=d.shift),xt){var _r=je.onCommandKey({},Cn,xt);if(!_r&&je.commands){xt=c.keyCodeToString(xt);var Kr=je.commands.findKeyCommand(Cn,xt);Kr&&je.execCommand(Kr)}N=Ot,B=dt,ae("")}}};document.addEventListener("selectionchange",St),je.on("destroy",function(){document.removeEventListener("selectionchange",St)})}this.destroy=function(){R.parentElement&&R.parentElement.removeChild(R)}},r.TextInput=$,r.$setUserAgentForTests=function(S,C){I=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 I=s(this.$clickSelection,c);c=I.cursor,a=I.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 I=Math.abs(w/x),$=!1;if(I>=1&&a.renderer.isScrollableBy(u.wheelX*u.speed,0)&&($=!0),I<=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,I){x.__proto__=I}||function(x,I){for(var $ in I)Object.prototype.hasOwnProperty.call(I,$)&&(x[$]=I[$])},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,I;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($)),E=P.next();!E.done;E=P.next()){var H=E.value;if(this.doPopupsOverlap(H,R)){L=!1;break}}}catch(F){x={error:F}}finally{try{E&&!E.done&&(I=P.return)&&I.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(),I=w.getElement().getBoundingClientRect();return x.left<I.right&&x.right>I.left&&x.top<I.bottom&&x.bottom>I.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 I=x.getElement();return I.style.whiteSpace="pre-wrap",I.style.pointerEvents="auto",I.addEventListener("mouseout",x.onMouseOut),I.tabIndex=-1,I.addEventListener("blur",(function(){I.contains(document.activeElement)||this.hide()}).bind(x)),I.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 I=x.$mouseHandler.isMousePressed;if(this.isOpen){var $=this.lastEvent&&this.lastEvent.getDocumentPosition();(!this.range||!this.range.contains($.row,$.column)||I||this.isOutsideOfText(this.lastEvent))&&this.hide()}this.timeout||I||(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,I=w.getDocumentPosition(),$=x.session.getLine(I.row);if(I.column==$.length){var S=x.renderer.pixelToScreenCoordinates(w.clientX,w.clientY),C=x.session.documentToScreenPosition(I.row,I.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,I,$){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(I),P.style.maxHeight="",P.style.display="block";var E=P.clientHeight,H=P.clientWidth,F=window.innerHeight-R.pageY-C.lineHeight,O=!0;R.pageY-E<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,I){x.__proto__=I}||function(x,I){for(var $ in I)Object.prototype.hasOwnProperty.call(I,$)&&(x[$]=I[$])},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 E=L.getDocumentPosition().row,H=d.session.selection;if(L.getShiftKey())H.selectTo(E,0);else{if(L.domEvent.detail==2)return d.selectAll(),L.preventDefault();c.$clickSelection=d.selection.getLineRange(E)}return c.setState("selectByLines"),c.captureMouse(L),L.preventDefault()}}});var I,$;function S(){var L=$.getDocumentPosition().row,P=d.session.getLength();if(L==P){var E=d.renderer.pixelToScreenCoordinates(0,$.y).row,H=$.$pos;if(E>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))||(I&&(I=clearTimeout(I)),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,!I&&(I=setTimeout(function(){I=null,$&&!c.isMousePressed&&S()},50))}),h.addListener(d.renderer.$gutter,"mouseout",function(L){$=null,x.isOpen&&(I=setTimeout(function(){I=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 I=c.call(this,w.container)||this;I.editor=w,I.visibleTooltipRow;var $=I.getElement();return $.setAttribute("role","tooltip"),$.style.pointerEvents="auto",x&&(I.onMouseOut=I.onMouseOut.bind(I),$.addEventListener("mouseout",I.onMouseOut)),I}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 I=window.innerWidth||document.documentElement.clientWidth,$=window.innerHeight||document.documentElement.clientHeight,S=this.getWidth(),C=this.getHeight();w+=15,x+=15,w+S>I&&(w-=w+S-I),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,I=this.editor.renderer.$gutterLayer,$=I.$annotations[w],S;$?S={displayText:Array.from($.displayText),type:Array.from($.type)}:S={displayText:[],type:[]};var C=I.session.getFoldLine(w);if(C&&I.$showFoldedAnnotations){for(var R={error:[],security:[],warning:[],info:[],hint:[]},L={error:1,security:2,warning:3,info:4,hint:5},P,E=w+1;E<=C.end.row;E++)if(I.$annotations[E])for(var H=0;H<I.$annotations[E].text.length;H++){var F=I.$annotations[E].type[H];R[F].push(I.$annotations[E].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=I.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",E=0;E<S.displayText.length;E++){var N=b.createElement("span"),B=b.createElement("span");(x=B.classList).add.apply(x,["ace_".concat(S.type[E]),A]),B.setAttribute("aria-label","".concat(d.annotationLabels[S.type[E].replace("_fold","")].singular)),B.setAttribute("role","img"),B.appendChild(b.createTextNode(" ")),N.appendChild(B),N.appendChild(b.createTextNode(S.displayText[E])),N.appendChild(b.createElement("br")),_[S.type[E].replace("_fold","")].push(N)}var U=this.getElement();b.removeChildren(U),_.error.forEach(function(K){return U.appendChild(K)}),_.security.forEach(function(K){return U.appendChild(K)}),_.warning.forEach(function(K){return U.appendChild(K)}),_.info.forEach(function(K){return U.appendChild(K)}),_.hint.forEach(function(K){return U.appendChild(K)}),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,I,$=[],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(E){x={error:E}}finally{try{R&&!R.done&&(I=C.return)&&I.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,I,$,S,C,R,L=0,P,E,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()),E=!0,this.setState("drag")},this.onDragEnd=function(ne){if(w.draggable=!1,E=!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 I=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 I=ne.clientX,$=ne.clientY,x||(B(),L++),K!==null&&(K=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(E)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:I,y:$};else{var Te=u(O.x,O.y,I,$);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:I-Te.left,right:Te.right-I},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),Ke={row:ne.row,column:ne.column};Ie/fe<=2&&(Ke.column+=$e.x.left<$e.x.right?-3:2),Ye/ce<=1&&(Ke.row+=$e.y.top<$e.y.bottom?-1:1);var pt=ne.row!=Ke.row,it=ne.column!=Ke.column,gt=!ae||ne.row!=ae.row;pt||it&&!gt?H?ue-H>=h&&o.renderer.scrollCursorIntoView(Ke):H=ue:H=null}function N(){var ne=R;R=o.renderer.screenToTextCoordinates(I,$),_(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()&&!E&&o.$resetCursorStyle(),C=null,R=null,L=0,H=null,F=null,y.removeListener(document,"mousemove",Z)}var K=null;function Z(){K==null&&(K=setTimeout(function(){K!=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 I=o.container;I.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,I=0,$=0,S=0,C,R;function L(){var _=window.navigator&&window.navigator.clipboard,A=!1,N=function(){var K=g.getCopyText(),Z=g.session.getUndoManager().hasUndo();R.replaceChild(b.buildDom(A?["span",!K&&B("selectall")&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],K&&B("copy")&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],K&&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(K){return g.commands.canExecute(K,g)},U=function(K){var Z=K.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(K){s="menu",K.stopPropagation(),K.preventDefault(),g.textInput.focus()},ontouchend:function(K){K.stopPropagation(),K.preventDefault(),U(K)},onclick:U},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],g.container)}function P(){if(!g.getOption("enableMobileMenu")){R&&E();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",E)}function E(_){R&&(R.style.display="none"),g.off("input",E)}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 _=I>=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 K=A[0],Z=K.clientX,te=K.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)I++,_.preventDefault(),_.button=0,F();else{I=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(pt,it){return pt=pt/B,it=it/N-.75,pt*pt+it*it};if(_.clientX<fe.left){s="zoom";return}var Ye=Ie(_.clientX-fe.left-ue.left+$e,_.clientY-fe.top-ue.top+Te),Ke=Ie(_.clientX-fe.left-ce.left+$e,_.clientY-fe.top-ce.top+Te);Ye<3.5&&Ke<3.5&&(s=Ye>Ke?"cursor":"anchor"),Ke<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(),E()):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 K=_.timeStamp,Z=K-o;if(o=K,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 I=c.renderer.$gutter;p.addListener(I,"mousedown",this.onMouseEvent.bind(this,"guttermousedown"),c),p.addListener(I,"click",this.onMouseEvent.bind(this,"gutterclick"),c),p.addListener(I,"dblclick",this.onMouseEvent.bind(this,"gutterdblclick"),c),p.addListener(I,"mousemove",this.onMouseEvent.bind(this,"guttermousemove"),c),p.addListener(x,"mousedown",w,c),p.addListener(I,"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 I=this,$=function(P){if(P){if(y.isWebKit&&!P.which&&I.releaseMouse)return I.releaseMouse();I.x=P.clientX,I.y=P.clientY,d&&d(P),I.mouseEvent=new g(P,I.editor),I.$mouseMoved=!0}},S=function(P){w.off("beforeEndOperation",R),clearInterval(L),w.session&&C(),I[I.state+"End"]&&I[I.state+"End"](P),I.state="",I.isMousePressed=x.$isMousePressed=!1,x.$keepTextAreaAtCursor&&x.$moveTextAreaToCursor(),I.$onCaptureMouseMove=I.releaseMouse=null,P&&I.onMouseEvent("mouseup",P),w.endOperation()},C=function(){I[I.state]&&I[I.state](),I.$mouseMoved=!1};if(y.isOldIE&&c.domEvent.type=="dblclick")return setTimeout(function(){S(c)});var R=function(P){I.releaseMouse&&w.curOp.command.name&&w.curOp.selectionChanged&&(I[I.state+"End"]&&I[I.state+"End"](),I.state="",I.releaseMouse())};w.on("beforeEndOperation",R),w.startOperation({command:{name:"mouse"}}),I.$onCaptureMouseMove=$,I.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,I=5,$=6,S=7,C=8,R=9,L=10,P=11,E=12,H=13,F=14,O=15,_=16,A=17,N=18,B=[N,N,N,N,N,N,N,N,N,$,I,$,C,I,N,N,N,N,N,N,N,N,N,N,N,N,N,N,I,I,I,$,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,I,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,I,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 K(ne,ae,ue,ce){var fe=p?l:s,Te=null,$e=null,Ie=null,Ye=0,Ke=null,pt=null,it=-1,gt=null,nn=null,gn=[];if(!ce)for(gt=0,ce=[];gt<ue;gt++)ce[gt]=he(ne[gt]);for(y=p,b=!1,h=!1,g=!1,nn=0;nn<ue;nn++){if(Te=Ye,gn[nn]=$e=te(ne,ce,gn,nn),Ye=fe[Te][$e],Ke=Ye&240,Ye&=15,ae[nn]=Ie=fe[Ye][5],Ke>0)if(Ke==16){for(gt=it;gt<nn;gt++)ae[gt]=1;it=-1}else it=-1;if(pt=fe[Ye][6],pt)it==-1&&(it=nn);else if(it>-1){for(gt=it;gt<nn;gt++)ae[gt]=Ie;it=-1}ce[nn]==I&&(ae[nn]=0),y|=Ie}if(g){for(gt=0;gt<ue;gt++)if(ce[gt]==$){ae[gt]=p;for(var Yt=gt-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]:I,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 E:for(Ie=ae.length,Ye=ce+1;Ye<Ie&&ae[Ye]==E;)Ye++;if(Ye<Ie){var Ke=ne[ce],pt=Ke>=1425&&Ke<=2303||Ke==64286;if(Te=ae[Ye],pt&&(Te==c||Te==S))return c}return ce<1||(Te=ae[ce-1])==I?x:ue[ce-1];case I: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)?E:/[\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,K(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,I){return x===" "||c.isFullWidth(x.charCodeAt(0))?(w=x===" "?c.getScreenTabSize(I+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,I=!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],I=C>=w&&C<x,I&&!$?S=d:!I&&$&&c.push({left:S,width:d-S}),d+=this.charWidths[o],$=I;if(I&&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 I=x.regex,$=new RegExp("(?:("+I+")|(.))").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)?I=x.regex.replace(/\\([0-9]+)/g,function(S,C){return"\\"+(parseInt(C,10)+a+1)}):($=1,I=this.removeCapturingGroups(x.regex)),!x.splitRegex&&typeof x.token!="string"&&d.push(x)),o[a]=w,a+=$,u.push(I),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,I){return u?u=x!="]":x?u=!0:w?(l==a.stack&&(a.end=I+1,a.stack=-1),l--):d&&(l++,d.length!=1&&(a.stack=l,a.start=I)),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,I=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 E=0;E<d.length-2;E++)if(d[E+1]!==void 0){C=a[o[E]],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 E=0;E<S.length;E++)w.push(S[E])}}if(x==g.length)break;if(x=L,I++>y){for(I>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 I in c.rules)s[I]?s[I].push&&s[I].push.apply(s[I],c.rules[I]):s[I]=c.rules[I];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,I,$){var S=w.end.row-w.start.row;return{text:I+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,I,$,S,C){var R=$.getCursorPosition(),L=S.doc.getLine(R.row);if(C=="{"){o($);var P=$.getSelectionRange(),E=S.doc.getTextRange(P),H=S.getTokenAt(R.row,R.column);if(E!==""&&E!=="{"&&$.getWrapBehavioursEnabled())return c(P,E,"{","}");if(H&&/(?:string)\.quasi|\.xml/.test(H.type)){var F=[/tag\-(?:open|name)/,/attribute\-name/];return F.some(function(K){return K.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:`
@@ -1388,22 +1388,22 @@ System.register(["vue","vue-router","single-spa","vuex","vuetify"],function(Wn,a
1388
1388
  padding: 0 8px;
1389
1389
  }`}),ace.define("ace/ext/searchbox",["require","exports","module","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/ext/searchbox-css","ace/keyboard/hash_handler","ace/lib/keys","ace/config"],function(e,r,f){var p=e("../lib/dom"),y=e("../lib/lang"),b=e("../lib/event"),h=e("./searchbox-css"),g=e("../keyboard/hash_handler").HashHandler,s=e("../lib/keys"),l=e("../config").nls,u=999;p.importCssString(h,"ace_searchbox",!1);var a=function(){function d(w,x,I){this.activeInput,this.element=p.buildDom(["div",{class:"ace_search right"},["span",{action:"hide",class:"ace_searchbtn_close"}],["div",{class:"ace_search_form"},["input",{class:"ace_search_field",placeholder:l("search-box.find.placeholder","Search for"),spellcheck:"false"}],["span",{action:"findPrev",class:"ace_searchbtn prev"},"​"],["span",{action:"findNext",class:"ace_searchbtn next"},"​"],["span",{action:"findAll",class:"ace_searchbtn",title:"Alt-Enter"},l("search-box.find-all.text","All")]],["div",{class:"ace_replace_form"},["input",{class:"ace_search_field",placeholder:l("search-box.replace.placeholder","Replace with"),spellcheck:"false"}],["span",{action:"replaceAndFindNext",class:"ace_searchbtn"},l("search-box.replace-next.text","Replace")],["span",{action:"replaceAll",class:"ace_searchbtn"},l("search-box.replace-all.text","All")]],["div",{class:"ace_search_options"},["span",{action:"toggleReplace",class:"ace_button",title:l("search-box.toggle-replace.title","Toggle Replace mode"),style:"float:left;margin-top:-2px;padding:0 5px;"},"+"],["span",{class:"ace_search_counter"}],["span",{action:"toggleRegexpMode",class:"ace_button",title:l("search-box.toggle-regexp.title","RegExp Search")},".*"],["span",{action:"toggleCaseSensitive",class:"ace_button",title:l("search-box.toggle-case.title","CaseSensitive Search")},"Aa"],["span",{action:"toggleWholeWords",class:"ace_button",title:l("search-box.toggle-whole-word.title","Whole Word Search")},"\\b"],["span",{action:"searchInSelection",class:"ace_button",title:l("search-box.toggle-in-selection.title","Search In Selection")},"S"]]]),this.setSession=this.setSession.bind(this),this.$onEditorInput=this.onEditorInput.bind(this),this.$init(),this.setEditor(w),p.importCssString(h,"ace_searchbox",w.container),b.addListener(this.element,"touchstart",function($){$.stopPropagation()},w)}return d.prototype.setEditor=function(w){w.searchBox=this,w.renderer.scroller.appendChild(this.element),this.editor=w},d.prototype.setSession=function(w){this.searchRange=null,this.$syncOptions(!0)},d.prototype.onEditorInput=function(){this.find(!1,!1,!0)},d.prototype.$initElements=function(w){this.searchBox=w.querySelector(".ace_search_form"),this.replaceBox=w.querySelector(".ace_replace_form"),this.searchOption=w.querySelector("[action=searchInSelection]"),this.replaceOption=w.querySelector("[action=toggleReplace]"),this.regExpOption=w.querySelector("[action=toggleRegexpMode]"),this.caseSensitiveOption=w.querySelector("[action=toggleCaseSensitive]"),this.wholeWordOption=w.querySelector("[action=toggleWholeWords]"),this.searchInput=this.searchBox.querySelector(".ace_search_field"),this.replaceInput=this.replaceBox.querySelector(".ace_search_field"),this.searchCounter=w.querySelector(".ace_search_counter")},d.prototype.$init=function(){var w=this.element;this.$initElements(w);var x=this;b.addListener(w,"mousedown",function(I){setTimeout(function(){x.activeInput.focus()},0),b.stopPropagation(I)}),b.addListener(w,"click",function(I){var $=I.target||I.srcElement,S=$.getAttribute("action");S&&x[S]?x[S]():x.$searchBarKb.commands[S]&&x.$searchBarKb.commands[S].exec(x),b.stopPropagation(I)}),b.addCommandKeyListener(w,function(I,$,S){var C=s.keyCodeToString(S),R=x.$searchBarKb.findKeyCommand($,C);R&&R.exec&&(R.exec(x),b.stopEvent(I))}),this.$onChange=y.delayedCall(function(){x.find(!1,!1)}),b.addListener(this.searchInput,"input",function(){x.$onChange.schedule(20)}),b.addListener(this.searchInput,"focus",function(){x.activeInput=x.searchInput,x.searchInput.value&&x.highlight()}),b.addListener(this.replaceInput,"focus",function(){x.activeInput=x.replaceInput,x.searchInput.value&&x.highlight()})},d.prototype.setSearchRange=function(w){this.searchRange=w,w?this.searchRangeMarker=this.editor.session.addMarker(w,"ace_active-line"):this.searchRangeMarker&&(this.editor.session.removeMarker(this.searchRangeMarker),this.searchRangeMarker=null)},d.prototype.$syncOptions=function(w){p.setCssClass(this.replaceOption,"checked",this.searchRange),p.setCssClass(this.searchOption,"checked",this.searchOption.checked),this.replaceOption.textContent=this.replaceOption.checked?"-":"+",p.setCssClass(this.regExpOption,"checked",this.regExpOption.checked),p.setCssClass(this.wholeWordOption,"checked",this.wholeWordOption.checked),p.setCssClass(this.caseSensitiveOption,"checked",this.caseSensitiveOption.checked);var x=this.editor.getReadOnly();this.replaceOption.style.display=x?"none":"",this.replaceBox.style.display=this.replaceOption.checked&&!x?"":"none",this.find(!1,!1,w)},d.prototype.highlight=function(w){this.editor.session.highlight(w||this.editor.$search.$options.re),this.editor.renderer.updateBackMarkers()},d.prototype.find=function(w,x,I){var $=this.editor.find(this.searchInput.value,{skipCurrent:w,backwards:x,wrap:!0,regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked,preventScroll:I,range:this.searchRange}),S=!$&&this.searchInput.value;p.setCssClass(this.searchBox,"ace_nomatch",S),this.editor._emit("findSearchBox",{match:!S}),this.highlight(),this.updateCounter()},d.prototype.updateCounter=function(){var w=this.editor,x=w.$search.$options.re,I=x.unicode,$=0,S=0;if(x){var C=this.searchRange?w.session.getTextRange(this.searchRange):w.getValue();w.$search.$isMultilineSearch(w.getLastSearchOptions())&&(C=C.replace(/\r\n|\r|\n/g,`
1390
1390
  `),w.session.doc.$autoNewLine=`
1391
- `);var R=w.session.doc.positionToIndex(w.selection.anchor);this.searchRange&&(R-=w.session.doc.positionToIndex(this.searchRange.start));for(var L=x.lastIndex=0,P;(P=x.exec(C))&&($++,L=P.index,L<=R&&S++,!($>u||!P[0]&&(x.lastIndex=L+=y.skipEmptyMatch(C,L,I),L>=C.length))););}this.searchCounter.textContent=l("search-box.search-counter","$0 of $1",[S,$>u?u+"+":$])},d.prototype.findNext=function(){this.find(!0,!1)},d.prototype.findPrev=function(){this.find(!0,!0)},d.prototype.findAll=function(){var w=this.editor.findAll(this.searchInput.value,{regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked}),x=!w&&this.searchInput.value;p.setCssClass(this.searchBox,"ace_nomatch",x),this.editor._emit("findSearchBox",{match:!x}),this.highlight(),this.hide()},d.prototype.replace=function(){this.editor.getReadOnly()||this.editor.replace(this.replaceInput.value)},d.prototype.replaceAndFindNext=function(){this.editor.getReadOnly()||(this.editor.replace(this.replaceInput.value),this.findNext())},d.prototype.replaceAll=function(){this.editor.getReadOnly()||this.editor.replaceAll(this.replaceInput.value)},d.prototype.hide=function(){this.active=!1,this.setSearchRange(null),this.editor.off("changeSession",this.setSession),this.editor.off("input",this.$onEditorInput),this.element.style.display="none",this.editor.keyBinding.removeKeyboardHandler(this.$closeSearchBarKb),this.editor.focus()},d.prototype.show=function(w,x){this.active=!0,this.editor.on("changeSession",this.setSession),this.editor.on("input",this.$onEditorInput),this.element.style.display="",this.replaceOption.checked=x,this.editor.$search.$options.regExp&&(w=y.escapeRegExp(w)),w&&(this.searchInput.value=w),this.searchInput.focus(),this.searchInput.select(),this.editor.keyBinding.addKeyboardHandler(this.$closeSearchBarKb),this.$syncOptions(!0)},d.prototype.isFocused=function(){var w=document.activeElement;return w==this.searchInput||w==this.replaceInput},d}(),o=new g;o.bindKeys({"Ctrl-f|Command-f":function(d){var w=d.isReplace=!d.isReplace;d.replaceBox.style.display=w?"":"none",d.replaceOption.checked=!1,d.$syncOptions(),d.searchInput.focus()},"Ctrl-H|Command-Option-F":function(d){d.editor.getReadOnly()||(d.replaceOption.checked=!0,d.$syncOptions(),d.replaceInput.focus())},"Ctrl-G|Command-G":function(d){d.findNext()},"Ctrl-Shift-G|Command-Shift-G":function(d){d.findPrev()},esc:function(d){setTimeout(function(){d.hide()})},Return:function(d){d.activeInput==d.replaceInput&&d.replace(),d.findNext()},"Shift-Return":function(d){d.activeInput==d.replaceInput&&d.replace(),d.findPrev()},"Alt-Return":function(d){d.activeInput==d.replaceInput&&d.replaceAll(),d.findAll()},Tab:function(d){(d.activeInput==d.replaceInput?d.searchInput:d.replaceInput).focus()}}),o.addCommands([{name:"toggleRegexpMode",bindKey:{win:"Alt-R|Alt-/",mac:"Ctrl-Alt-R|Ctrl-Alt-/"},exec:function(d){d.regExpOption.checked=!d.regExpOption.checked,d.$syncOptions()}},{name:"toggleCaseSensitive",bindKey:{win:"Alt-C|Alt-I",mac:"Ctrl-Alt-R|Ctrl-Alt-I"},exec:function(d){d.caseSensitiveOption.checked=!d.caseSensitiveOption.checked,d.$syncOptions()}},{name:"toggleWholeWords",bindKey:{win:"Alt-B|Alt-W",mac:"Ctrl-Alt-B|Ctrl-Alt-W"},exec:function(d){d.wholeWordOption.checked=!d.wholeWordOption.checked,d.$syncOptions()}},{name:"toggleReplace",exec:function(d){d.replaceOption.checked=!d.replaceOption.checked,d.$syncOptions()}},{name:"searchInSelection",exec:function(d){d.searchOption.checked=!d.searchRange,d.setSearchRange(d.searchOption.checked&&d.editor.getSelectionRange()),d.$syncOptions()}}]);var c=new g([{bindKey:"Esc",name:"closeSearchBar",exec:function(d){d.searchBox.hide()}}]);a.prototype.$searchBarKb=o,a.prototype.$closeSearchBarKb=c,r.SearchBox=a,r.Search=function(d,w){var x=d.searchBox||new a(d);x.show(d.session.getTextRange(),w)}}),function(){ace.require(["ace/ext/searchbox"],function(e){n&&(n.exports=e)})}()}(Xp)),Xp.exports}H0();var U0=Object.defineProperty,V0=(n,t,e)=>t in n?U0(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,pl=(n,t,e)=>V0(n,typeof t!="symbol"?t+"":t,e);function Zp(n,t){return function(){return n.apply(t,arguments)}}const{toString:q0}=Object.prototype,{getPrototypeOf:ou}=Object,{iterator:gl,toStringTag:Jp}=Symbol,fl=(n=>t=>{const e=q0.call(t);return n[e]||(n[e]=e.slice(8,-1).toLowerCase())})(Object.create(null)),Ii=n=>(n=n.toLowerCase(),t=>fl(t)===n),ml=n=>t=>typeof t===n,{isArray:zs}=Array,Ca=ml("undefined");function K0(n){return n!==null&&!Ca(n)&&n.constructor!==null&&!Ca(n.constructor)&&jr(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const eg=Ii("ArrayBuffer");function G0(n){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(n):t=n&&n.buffer&&eg(n.buffer),t}const Y0=ml("string"),jr=ml("function"),tg=ml("number"),vl=n=>n!==null&&typeof n=="object",X0=n=>n===!0||n===!1,yl=n=>{if(fl(n)!=="object")return!1;const t=ou(n);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Jp in n)&&!(gl in n)},Q0=Ii("Date"),Z0=Ii("File"),J0=Ii("Blob"),ex=Ii("FileList"),tx=n=>vl(n)&&jr(n.pipe),nx=n=>{let t;return n&&(typeof FormData=="function"&&n instanceof FormData||jr(n.append)&&((t=fl(n))==="formdata"||t==="object"&&jr(n.toString)&&n.toString()==="[object FormData]"))},rx=Ii("URLSearchParams"),[ix,ox,sx,ax]=["ReadableStream","Request","Response","Headers"].map(Ii),lx=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ka(n,t,{allOwnKeys:e=!1}={}){if(n===null||typeof n>"u")return;let r,f;if(typeof n!="object"&&(n=[n]),zs(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 ng(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 is=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,rg=n=>!Ca(n)&&n!==is;function su(){const{caseless:n}=rg(this)&&this||{},t={},e=(r,f)=>{const p=n&&ng(t,f)||f;yl(t[p])&&yl(r)?t[p]=su(t[p],r):yl(r)?t[p]=su({},r):zs(r)?t[p]=r.slice():t[p]=r};for(let r=0,f=arguments.length;r<f;r++)arguments[r]&&ka(arguments[r],e);return t}const cx=(n,t,e,{allOwnKeys:r}={})=>(ka(t,(f,p)=>{e&&jr(f)?n[p]=Zp(f,e):n[p]=f},{allOwnKeys:r}),n),ux=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),hx=(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)},dx=(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&&ou(n)}while(n&&(!e||e(n,t))&&n!==Object.prototype);return t},px=(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},gx=n=>{if(!n)return null;if(zs(n))return n;let t=n.length;if(!tg(t))return null;const e=new Array(t);for(;t-- >0;)e[t]=n[t];return e},fx=(n=>t=>n&&t instanceof n)(typeof Uint8Array<"u"&&ou(Uint8Array)),mx=(n,t)=>{const e=(n&&n[gl]).call(n);let r;for(;(r=e.next())&&!r.done;){const f=r.value;t.call(n,f[0],f[1])}},vx=(n,t)=>{let e;const r=[];for(;(e=n.exec(t))!==null;)r.push(e);return r},yx=Ii("HTMLFormElement"),wx=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,e,r){return e.toUpperCase()+r}),ig=(({hasOwnProperty:n})=>(t,e)=>n.call(t,e))(Object.prototype),bx=Ii("RegExp"),og=(n,t)=>{const e=Object.getOwnPropertyDescriptors(n),r={};ka(e,(f,p)=>{let y;(y=t(f,p,n))!==!1&&(r[p]=y||f)}),Object.defineProperties(n,r)},xx=n=>{og(n,(t,e)=>{if(jr(n)&&["arguments","caller","callee"].indexOf(e)!==-1)return!1;const r=n[e];if(jr(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+"'")})}})},Cx=(n,t)=>{const e={},r=f=>{f.forEach(p=>{e[p]=!0})};return zs(n)?r(n):r(String(n).split(t)),e},kx=()=>{},Sx=(n,t)=>n!=null&&Number.isFinite(n=+n)?n:t;function Ax(n){return!!(n&&jr(n.append)&&n[Jp]==="FormData"&&n[gl])}const _x=n=>{const t=new Array(10),e=(r,f)=>{if(vl(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[f]=r;const p=zs(r)?[]:{};return ka(r,(y,b)=>{const h=e(y,f+1);!Ca(h)&&(p[b]=h)}),t[f]=void 0,p}}return r};return e(n,0)},Tx=Ii("AsyncFunction"),$x=n=>n&&(vl(n)||jr(n))&&jr(n.then)&&jr(n.catch),sg=((n,t)=>n?setImmediate:t?((e,r)=>(is.addEventListener("message",({source:f,data:p})=>{f===is&&p===e&&r.length&&r.shift()()},!1),f=>{r.push(f),is.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate=="function",jr(is.postMessage)),Mx=typeof queueMicrotask<"u"?queueMicrotask.bind(is):typeof process<"u"&&process.nextTick||sg,Ix=n=>n!=null&&jr(n[gl]),Ae={isArray:zs,isArrayBuffer:eg,isBuffer:K0,isFormData:nx,isArrayBufferView:G0,isString:Y0,isNumber:tg,isBoolean:X0,isObject:vl,isPlainObject:yl,isReadableStream:ix,isRequest:ox,isResponse:sx,isHeaders:ax,isUndefined:Ca,isDate:Q0,isFile:Z0,isBlob:J0,isRegExp:bx,isFunction:jr,isStream:tx,isURLSearchParams:rx,isTypedArray:fx,isFileList:ex,forEach:ka,merge:su,extend:cx,trim:lx,stripBOM:ux,inherits:hx,toFlatObject:dx,kindOf:fl,kindOfTest:Ii,endsWith:px,toArray:gx,forEachEntry:mx,matchAll:vx,isHTMLForm:yx,hasOwnProperty:ig,hasOwnProp:ig,reduceDescriptors:og,freezeMethods:xx,toObjectSet:Cx,toCamelCase:wx,noop:kx,toFiniteNumber:Sx,findKey:ng,global:is,isContextDefined:rg,isSpecCompliantForm:Ax,toJSONObject:_x,isAsyncFn:Tx,isThenable:$x,setImmediate:sg,asap:Mx,isIterable:Ix};function It(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)}Ae.inherits(It,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:Ae.toJSONObject(this.config),code:this.code,status:this.status}}});const ag=It.prototype,lg={};["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=>{lg[n]={value:n}}),Object.defineProperties(It,lg),Object.defineProperty(ag,"isAxiosError",{value:!0}),It.from=(n,t,e,r,f,p)=>{const y=Object.create(ag);return Ae.toFlatObject(n,y,function(b){return b!==Error.prototype},b=>b!=="isAxiosError"),It.call(y,n.message,t,e,r,f),y.cause=n,y.name=n.name,p&&Object.assign(y,p),y};const Ex=null;function au(n){return Ae.isPlainObject(n)||Ae.isArray(n)}function cg(n){return Ae.endsWith(n,"[]")?n.slice(0,-2):n}function ug(n,t,e){return n?n.concat(t).map(function(r,f){return r=cg(r),!e&&f?"["+r+"]":r}).join(e?".":""):t}function Rx(n){return Ae.isArray(n)&&!n.some(au)}const Lx=Ae.toFlatObject(Ae,{},null,function(n){return/^is[A-Z]/.test(n)});function wl(n,t,e){if(!Ae.isObject(n))throw new TypeError("target must be an object");t=t||new FormData,e=Ae.toFlatObject(e,{metaTokens:!0,dots:!1,indexes:!1},!1,function(a,o){return!Ae.isUndefined(o[a])});const r=e.metaTokens,f=e.visitor||g,p=e.dots,y=e.indexes,b=(e.Blob||typeof Blob<"u"&&Blob)&&Ae.isSpecCompliantForm(t);if(!Ae.isFunction(f))throw new TypeError("visitor must be a function");function h(a){if(a===null)return"";if(Ae.isDate(a))return a.toISOString();if(!b&&Ae.isBlob(a))throw new It("Blob is not supported. Use a Buffer instead.");return Ae.isArrayBuffer(a)||Ae.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(Ae.endsWith(o,"{}"))o=r?o:o.slice(0,-2),a=JSON.stringify(a);else if(Ae.isArray(a)&&Rx(a)||(Ae.isFileList(a)||Ae.endsWith(o,"[]"))&&(d=Ae.toArray(a)))return o=cg(o),d.forEach(function(w,x){!(Ae.isUndefined(w)||w===null)&&t.append(y===!0?ug([o],x,p):y===null?o:o+"[]",h(w))}),!1}return au(a)?!0:(t.append(ug(c,o,p),h(a)),!1)}const s=[],l=Object.assign(Lx,{defaultVisitor:g,convertValue:h,isVisitable:au});function u(a,o){if(!Ae.isUndefined(a)){if(s.indexOf(a)!==-1)throw Error("Circular reference detected in "+o.join("."));s.push(a),Ae.forEach(a,function(c,d){(!(Ae.isUndefined(c)||c===null)&&f.call(t,c,Ae.isString(d)?d.trim():d,o,l))===!0&&u(c,o?o.concat(d):[d])}),s.pop()}}if(!Ae.isObject(n))throw new TypeError("data must be an object");return u(n),t}function hg(n){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function lu(n,t){this._pairs=[],n&&wl(n,this,t)}const dg=lu.prototype;dg.append=function(n,t){this._pairs.push([n,t])},dg.toString=function(n){const t=n?function(e){return n.call(this,e,hg)}:hg;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};function Ox(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function pg(n,t,e){if(!t)return n;const r=e&&e.encode||Ox;Ae.isFunction(e)&&(e={serialize:e});const f=e&&e.serialize;let p;if(f?p=f(t,e):p=Ae.isURLSearchParams(t)?t.toString():new lu(t,e).toString(r),p){const y=n.indexOf("#");y!==-1&&(n=n.slice(0,y)),n+=(n.indexOf("?")===-1?"?":"&")+p}return n}class gg{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){Ae.forEach(this.handlers,function(e){e!==null&&t(e)})}}const fg={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Nx=typeof URLSearchParams<"u"?URLSearchParams:lu,Dx=typeof FormData<"u"?FormData:null,Px=typeof Blob<"u"?Blob:null,Fx={isBrowser:!0,classes:{URLSearchParams:Nx,FormData:Dx,Blob:Px},protocols:["http","https","file","blob","url","data"]},cu=typeof window<"u"&&typeof document<"u",uu=typeof navigator=="object"&&navigator||void 0,Wx=cu&&(!uu||["ReactNative","NativeScript","NS"].indexOf(uu.product)<0),Bx=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",zx=cu&&window.location.href||"http://localhost",jx=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:cu,hasStandardBrowserEnv:Wx,hasStandardBrowserWebWorkerEnv:Bx,navigator:uu,origin:zx},Symbol.toStringTag,{value:"Module"})),Cr={...jx,...Fx};function Hx(n,t){return wl(n,new Cr.classes.URLSearchParams,Object.assign({visitor:function(e,r,f,p){return Cr.isNode&&Ae.isBuffer(e)?(this.append(r,e.toString("base64")),!1):p.defaultVisitor.apply(this,arguments)}},t))}function Ux(n){return Ae.matchAll(/\w+|\[(\w*)]/g,n).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Vx(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 mg(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&&Ae.isArray(f)?f.length:y,h?(Ae.hasOwnProp(f,y)?f[y]=[f[y],r]:f[y]=r,!b):((!f[y]||!Ae.isObject(f[y]))&&(f[y]=[]),t(e,r,f[y],p)&&Ae.isArray(f[y])&&(f[y]=Vx(f[y])),!b)}if(Ae.isFormData(n)&&Ae.isFunction(n.entries)){const e={};return Ae.forEachEntry(n,(r,f)=>{t(Ux(r),f,e,0)}),e}return null}function qx(n,t,e){if(Ae.isString(n))try{return(t||JSON.parse)(n),Ae.trim(n)}catch(r){if(r.name!=="SyntaxError")throw r}return(e||JSON.stringify)(n)}const Sa={transitional:fg,adapter:["xhr","http","fetch"],transformRequest:[function(n,t){const e=t.getContentType()||"",r=e.indexOf("application/json")>-1,f=Ae.isObject(n);if(f&&Ae.isHTMLForm(n)&&(n=new FormData(n)),Ae.isFormData(n))return r?JSON.stringify(mg(n)):n;if(Ae.isArrayBuffer(n)||Ae.isBuffer(n)||Ae.isStream(n)||Ae.isFile(n)||Ae.isBlob(n)||Ae.isReadableStream(n))return n;if(Ae.isArrayBufferView(n))return n.buffer;if(Ae.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 Hx(n,this.formSerializer).toString();if((p=Ae.isFileList(n))||e.indexOf("multipart/form-data")>-1){const y=this.env&&this.env.FormData;return wl(p?{"files[]":n}:n,y&&new y,this.formSerializer)}}return f||r?(t.setContentType("application/json",!1),qx(n)):n}],transformResponse:[function(n){const t=this.transitional||Sa.transitional,e=t&&t.forcedJSONParsing,r=this.responseType==="json";if(Ae.isResponse(n)||Ae.isReadableStream(n))return n;if(n&&Ae.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"?It.from(p,It.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}}};Ae.forEach(["delete","get","head","post","put","patch"],n=>{Sa.headers[n]={}});const Kx=Ae.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"]),Gx=n=>{const t={};let e,r,f;return n&&n.split(`
1392
- `).forEach(function(p){f=p.indexOf(":"),e=p.substring(0,f).trim().toLowerCase(),r=p.substring(f+1).trim(),!(!e||t[e]&&Kx[e])&&(e==="set-cookie"?t[e]?t[e].push(r):t[e]=[r]:t[e]=t[e]?t[e]+", "+r:r)}),t},vg=Symbol("internals");function Aa(n){return n&&String(n).trim().toLowerCase()}function bl(n){return n===!1||n==null?n:Ae.isArray(n)?n.map(bl):String(n)}function Yx(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 Xx=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function hu(n,t,e,r,f){if(Ae.isFunction(r))return r.call(this,t,e);if(f&&(t=e),!!Ae.isString(t)){if(Ae.isString(r))return t.indexOf(r)!==-1;if(Ae.isRegExp(r))return r.test(t)}}function Qx(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,e,r)=>e.toUpperCase()+r)}function Zx(n,t){const e=Ae.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 Hr=class{constructor(n){n&&this.set(n)}set(n,t,e){const r=this;function f(y,b,h){const g=Aa(b);if(!g)throw new Error("header name must be a non-empty string");const s=Ae.findKey(r,g);(!s||r[s]===void 0||h===!0||h===void 0&&r[s]!==!1)&&(r[s||b]=bl(y))}const p=(y,b)=>Ae.forEach(y,(h,g)=>f(h,g,b));if(Ae.isPlainObject(n)||n instanceof this.constructor)p(n,t);else if(Ae.isString(n)&&(n=n.trim())&&!Xx(n))p(Gx(n),t);else if(Ae.isObject(n)&&Ae.isIterable(n)){let y={},b,h;for(const g of n){if(!Ae.isArray(g))throw TypeError("Object iterator must return a key-value pair");y[h=g[0]]=(b=y[h])?Ae.isArray(b)?[...b,g[1]]:[b,g[1]]:g[1]}p(y,t)}else n!=null&&f(t,n,e);return this}get(n,t){if(n=Aa(n),n){const e=Ae.findKey(this,n);if(e){const r=this[e];if(!t)return r;if(t===!0)return Yx(r);if(Ae.isFunction(t))return t.call(this,r,e);if(Ae.isRegExp(t))return t.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(n,t){if(n=Aa(n),n){const e=Ae.findKey(this,n);return!!(e&&this[e]!==void 0&&(!t||hu(this,this[e],e,t)))}return!1}delete(n,t){const e=this;let r=!1;function f(p){if(p=Aa(p),p){const y=Ae.findKey(e,p);y&&(!t||hu(e,e[y],y,t))&&(delete e[y],r=!0)}}return Ae.isArray(n)?n.forEach(f):f(n),r}clear(n){const t=Object.keys(this);let e=t.length,r=!1;for(;e--;){const f=t[e];(!n||hu(this,this[f],f,n,!0))&&(delete this[f],r=!0)}return r}normalize(n){const t=this,e={};return Ae.forEach(this,(r,f)=>{const p=Ae.findKey(e,f);if(p){t[p]=bl(r),delete t[f];return}const y=n?Qx(f):String(f).trim();y!==f&&delete t[f],t[y]=bl(r),e[y]=!0}),this}concat(...n){return this.constructor.concat(this,...n)}toJSON(n){const t=Object.create(null);return Ae.forEach(this,(e,r)=>{e!=null&&e!==!1&&(t[r]=n&&Ae.isArray(e)?e.join(", "):e)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([n,t])=>n+": "+t).join(`
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 du(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 xl=(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=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,r1=Cr.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(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&&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()),I={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()},I),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 I=r.transitional||fg;r.timeoutErrorMessage&&(x=r.timeoutErrorMessage),e(new It(x,I.clarifyTimeoutError?It.ETIMEDOUT:It.ECONNABORTED,n,c)),c=null},f===void 0&&p.setContentType(null),"setRequestHeader"in c&&Ae.forEach(p.toJSON(),function(x,I){c.setRequestHeader(I,x)}),Ae.isUndefined(r.withCredentials)||(c.withCredentials=!!r.withCredentials),y&&y!=="json"&&(c.responseType=r.responseType),h&&([l,a]=xl(h,!0),c.addEventListener("progress",l)),b&&c.upload&&([s,u]=xl(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&&Cr.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})},Cl=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",_g=Cl&&typeof ReadableStream=="function",d1=Cl&&(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(Cr.origin,{body:new ReadableStream,method:"POST",get duplex(){return n=!0,"half"}}).headers.has("Content-Type");return n&&!t}),$g=64*1024,pu=_g&&Tg(()=>Ae.isReadableStream(new Response("").body)),kl={stream:pu&&(n=>n.body)};Cl&&(n=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!kl[t]&&(kl[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(Cr.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=Cl&&(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,xl(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 I=pu&&(g==="stream"||g==="response");if(pu&&(b||I&&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,xl(xg(b),!0))||[];x=new Response(Ag(x.body,$g,R,()=>{L&&L(),c&&c()}),S)}g=g||"text";let $=await kl[Ae.findKey(kl,g)||"text"](x,n);return!I&&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)}}),gu={http:Ex,xhr:a1,fetch:m1};Ae.forEach(gu,(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=gu[(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 :
1391
+ `);var R=w.session.doc.positionToIndex(w.selection.anchor);this.searchRange&&(R-=w.session.doc.positionToIndex(this.searchRange.start));for(var L=x.lastIndex=0,P;(P=x.exec(C))&&($++,L=P.index,L<=R&&S++,!($>u||!P[0]&&(x.lastIndex=L+=y.skipEmptyMatch(C,L,I),L>=C.length))););}this.searchCounter.textContent=l("search-box.search-counter","$0 of $1",[S,$>u?u+"+":$])},d.prototype.findNext=function(){this.find(!0,!1)},d.prototype.findPrev=function(){this.find(!0,!0)},d.prototype.findAll=function(){var w=this.editor.findAll(this.searchInput.value,{regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked}),x=!w&&this.searchInput.value;p.setCssClass(this.searchBox,"ace_nomatch",x),this.editor._emit("findSearchBox",{match:!x}),this.highlight(),this.hide()},d.prototype.replace=function(){this.editor.getReadOnly()||this.editor.replace(this.replaceInput.value)},d.prototype.replaceAndFindNext=function(){this.editor.getReadOnly()||(this.editor.replace(this.replaceInput.value),this.findNext())},d.prototype.replaceAll=function(){this.editor.getReadOnly()||this.editor.replaceAll(this.replaceInput.value)},d.prototype.hide=function(){this.active=!1,this.setSearchRange(null),this.editor.off("changeSession",this.setSession),this.editor.off("input",this.$onEditorInput),this.element.style.display="none",this.editor.keyBinding.removeKeyboardHandler(this.$closeSearchBarKb),this.editor.focus()},d.prototype.show=function(w,x){this.active=!0,this.editor.on("changeSession",this.setSession),this.editor.on("input",this.$onEditorInput),this.element.style.display="",this.replaceOption.checked=x,this.editor.$search.$options.regExp&&(w=y.escapeRegExp(w)),w&&(this.searchInput.value=w),this.searchInput.focus(),this.searchInput.select(),this.editor.keyBinding.addKeyboardHandler(this.$closeSearchBarKb),this.$syncOptions(!0)},d.prototype.isFocused=function(){var w=document.activeElement;return w==this.searchInput||w==this.replaceInput},d}(),o=new g;o.bindKeys({"Ctrl-f|Command-f":function(d){var w=d.isReplace=!d.isReplace;d.replaceBox.style.display=w?"":"none",d.replaceOption.checked=!1,d.$syncOptions(),d.searchInput.focus()},"Ctrl-H|Command-Option-F":function(d){d.editor.getReadOnly()||(d.replaceOption.checked=!0,d.$syncOptions(),d.replaceInput.focus())},"Ctrl-G|Command-G":function(d){d.findNext()},"Ctrl-Shift-G|Command-Shift-G":function(d){d.findPrev()},esc:function(d){setTimeout(function(){d.hide()})},Return:function(d){d.activeInput==d.replaceInput&&d.replace(),d.findNext()},"Shift-Return":function(d){d.activeInput==d.replaceInput&&d.replace(),d.findPrev()},"Alt-Return":function(d){d.activeInput==d.replaceInput&&d.replaceAll(),d.findAll()},Tab:function(d){(d.activeInput==d.replaceInput?d.searchInput:d.replaceInput).focus()}}),o.addCommands([{name:"toggleRegexpMode",bindKey:{win:"Alt-R|Alt-/",mac:"Ctrl-Alt-R|Ctrl-Alt-/"},exec:function(d){d.regExpOption.checked=!d.regExpOption.checked,d.$syncOptions()}},{name:"toggleCaseSensitive",bindKey:{win:"Alt-C|Alt-I",mac:"Ctrl-Alt-R|Ctrl-Alt-I"},exec:function(d){d.caseSensitiveOption.checked=!d.caseSensitiveOption.checked,d.$syncOptions()}},{name:"toggleWholeWords",bindKey:{win:"Alt-B|Alt-W",mac:"Ctrl-Alt-B|Ctrl-Alt-W"},exec:function(d){d.wholeWordOption.checked=!d.wholeWordOption.checked,d.$syncOptions()}},{name:"toggleReplace",exec:function(d){d.replaceOption.checked=!d.replaceOption.checked,d.$syncOptions()}},{name:"searchInSelection",exec:function(d){d.searchOption.checked=!d.searchRange,d.setSearchRange(d.searchOption.checked&&d.editor.getSelectionRange()),d.$syncOptions()}}]);var c=new g([{bindKey:"Esc",name:"closeSearchBar",exec:function(d){d.searchBox.hide()}}]);a.prototype.$searchBarKb=o,a.prototype.$closeSearchBarKb=c,r.SearchBox=a,r.Search=function(d,w){var x=d.searchBox||new a(d);x.show(d.session.getTextRange(),w)}}),function(){ace.require(["ace/ext/searchbox"],function(e){n&&(n.exports=e)})}()}(Xp)),Xp.exports}H0();var U0=Object.defineProperty,V0=(n,t,e)=>t in n?U0(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,gl=(n,t,e)=>V0(n,typeof t!="symbol"?t+"":t,e);function Zp(n,t){return function(){return n.apply(t,arguments)}}const{toString:q0}=Object.prototype,{getPrototypeOf:su}=Object,{iterator:fl,toStringTag:Jp}=Symbol,ml=(n=>t=>{const e=q0.call(t);return n[e]||(n[e]=e.slice(8,-1).toLowerCase())})(Object.create(null)),Ii=n=>(n=n.toLowerCase(),t=>ml(t)===n),vl=n=>t=>typeof t===n,{isArray:zs}=Array,Ca=vl("undefined");function K0(n){return n!==null&&!Ca(n)&&n.constructor!==null&&!Ca(n.constructor)&&Hr(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const eg=Ii("ArrayBuffer");function G0(n){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(n):t=n&&n.buffer&&eg(n.buffer),t}const Y0=vl("string"),Hr=vl("function"),tg=vl("number"),yl=n=>n!==null&&typeof n=="object",X0=n=>n===!0||n===!1,wl=n=>{if(ml(n)!=="object")return!1;const t=su(n);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Jp in n)&&!(fl in n)},Q0=Ii("Date"),Z0=Ii("File"),J0=Ii("Blob"),ex=Ii("FileList"),tx=n=>yl(n)&&Hr(n.pipe),nx=n=>{let t;return n&&(typeof FormData=="function"&&n instanceof FormData||Hr(n.append)&&((t=ml(n))==="formdata"||t==="object"&&Hr(n.toString)&&n.toString()==="[object FormData]"))},rx=Ii("URLSearchParams"),[ix,ox,sx,ax]=["ReadableStream","Request","Response","Headers"].map(Ii),lx=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ka(n,t,{allOwnKeys:e=!1}={}){if(n===null||typeof n>"u")return;let r,f;if(typeof n!="object"&&(n=[n]),zs(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 ng(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 is=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,rg=n=>!Ca(n)&&n!==is;function au(){const{caseless:n}=rg(this)&&this||{},t={},e=(r,f)=>{const p=n&&ng(t,f)||f;wl(t[p])&&wl(r)?t[p]=au(t[p],r):wl(r)?t[p]=au({},r):zs(r)?t[p]=r.slice():t[p]=r};for(let r=0,f=arguments.length;r<f;r++)arguments[r]&&ka(arguments[r],e);return t}const cx=(n,t,e,{allOwnKeys:r}={})=>(ka(t,(f,p)=>{e&&Hr(f)?n[p]=Zp(f,e):n[p]=f},{allOwnKeys:r}),n),ux=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),hx=(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)},dx=(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&&su(n)}while(n&&(!e||e(n,t))&&n!==Object.prototype);return t},px=(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},gx=n=>{if(!n)return null;if(zs(n))return n;let t=n.length;if(!tg(t))return null;const e=new Array(t);for(;t-- >0;)e[t]=n[t];return e},fx=(n=>t=>n&&t instanceof n)(typeof Uint8Array<"u"&&su(Uint8Array)),mx=(n,t)=>{const e=(n&&n[fl]).call(n);let r;for(;(r=e.next())&&!r.done;){const f=r.value;t.call(n,f[0],f[1])}},vx=(n,t)=>{let e;const r=[];for(;(e=n.exec(t))!==null;)r.push(e);return r},yx=Ii("HTMLFormElement"),wx=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,e,r){return e.toUpperCase()+r}),ig=(({hasOwnProperty:n})=>(t,e)=>n.call(t,e))(Object.prototype),bx=Ii("RegExp"),og=(n,t)=>{const e=Object.getOwnPropertyDescriptors(n),r={};ka(e,(f,p)=>{let y;(y=t(f,p,n))!==!1&&(r[p]=y||f)}),Object.defineProperties(n,r)},xx=n=>{og(n,(t,e)=>{if(Hr(n)&&["arguments","caller","callee"].indexOf(e)!==-1)return!1;const r=n[e];if(Hr(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+"'")})}})},Cx=(n,t)=>{const e={},r=f=>{f.forEach(p=>{e[p]=!0})};return zs(n)?r(n):r(String(n).split(t)),e},kx=()=>{},Sx=(n,t)=>n!=null&&Number.isFinite(n=+n)?n:t;function Ax(n){return!!(n&&Hr(n.append)&&n[Jp]==="FormData"&&n[fl])}const _x=n=>{const t=new Array(10),e=(r,f)=>{if(yl(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[f]=r;const p=zs(r)?[]:{};return ka(r,(y,b)=>{const h=e(y,f+1);!Ca(h)&&(p[b]=h)}),t[f]=void 0,p}}return r};return e(n,0)},Tx=Ii("AsyncFunction"),$x=n=>n&&(yl(n)||Hr(n))&&Hr(n.then)&&Hr(n.catch),sg=((n,t)=>n?setImmediate:t?((e,r)=>(is.addEventListener("message",({source:f,data:p})=>{f===is&&p===e&&r.length&&r.shift()()},!1),f=>{r.push(f),is.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate=="function",Hr(is.postMessage)),Mx=typeof queueMicrotask<"u"?queueMicrotask.bind(is):typeof process<"u"&&process.nextTick||sg,Ix=n=>n!=null&&Hr(n[fl]),Ae={isArray:zs,isArrayBuffer:eg,isBuffer:K0,isFormData:nx,isArrayBufferView:G0,isString:Y0,isNumber:tg,isBoolean:X0,isObject:yl,isPlainObject:wl,isReadableStream:ix,isRequest:ox,isResponse:sx,isHeaders:ax,isUndefined:Ca,isDate:Q0,isFile:Z0,isBlob:J0,isRegExp:bx,isFunction:Hr,isStream:tx,isURLSearchParams:rx,isTypedArray:fx,isFileList:ex,forEach:ka,merge:au,extend:cx,trim:lx,stripBOM:ux,inherits:hx,toFlatObject:dx,kindOf:ml,kindOfTest:Ii,endsWith:px,toArray:gx,forEachEntry:mx,matchAll:vx,isHTMLForm:yx,hasOwnProperty:ig,hasOwnProp:ig,reduceDescriptors:og,freezeMethods:xx,toObjectSet:Cx,toCamelCase:wx,noop:kx,toFiniteNumber:Sx,findKey:ng,global:is,isContextDefined:rg,isSpecCompliantForm:Ax,toJSONObject:_x,isAsyncFn:Tx,isThenable:$x,setImmediate:sg,asap:Mx,isIterable:Ix};function It(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)}Ae.inherits(It,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:Ae.toJSONObject(this.config),code:this.code,status:this.status}}});const ag=It.prototype,lg={};["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=>{lg[n]={value:n}}),Object.defineProperties(It,lg),Object.defineProperty(ag,"isAxiosError",{value:!0}),It.from=(n,t,e,r,f,p)=>{const y=Object.create(ag);return Ae.toFlatObject(n,y,function(b){return b!==Error.prototype},b=>b!=="isAxiosError"),It.call(y,n.message,t,e,r,f),y.cause=n,y.name=n.name,p&&Object.assign(y,p),y};const Ex=null;function lu(n){return Ae.isPlainObject(n)||Ae.isArray(n)}function cg(n){return Ae.endsWith(n,"[]")?n.slice(0,-2):n}function ug(n,t,e){return n?n.concat(t).map(function(r,f){return r=cg(r),!e&&f?"["+r+"]":r}).join(e?".":""):t}function Rx(n){return Ae.isArray(n)&&!n.some(lu)}const Lx=Ae.toFlatObject(Ae,{},null,function(n){return/^is[A-Z]/.test(n)});function bl(n,t,e){if(!Ae.isObject(n))throw new TypeError("target must be an object");t=t||new FormData,e=Ae.toFlatObject(e,{metaTokens:!0,dots:!1,indexes:!1},!1,function(a,o){return!Ae.isUndefined(o[a])});const r=e.metaTokens,f=e.visitor||g,p=e.dots,y=e.indexes,b=(e.Blob||typeof Blob<"u"&&Blob)&&Ae.isSpecCompliantForm(t);if(!Ae.isFunction(f))throw new TypeError("visitor must be a function");function h(a){if(a===null)return"";if(Ae.isDate(a))return a.toISOString();if(!b&&Ae.isBlob(a))throw new It("Blob is not supported. Use a Buffer instead.");return Ae.isArrayBuffer(a)||Ae.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(Ae.endsWith(o,"{}"))o=r?o:o.slice(0,-2),a=JSON.stringify(a);else if(Ae.isArray(a)&&Rx(a)||(Ae.isFileList(a)||Ae.endsWith(o,"[]"))&&(d=Ae.toArray(a)))return o=cg(o),d.forEach(function(w,x){!(Ae.isUndefined(w)||w===null)&&t.append(y===!0?ug([o],x,p):y===null?o:o+"[]",h(w))}),!1}return lu(a)?!0:(t.append(ug(c,o,p),h(a)),!1)}const s=[],l=Object.assign(Lx,{defaultVisitor:g,convertValue:h,isVisitable:lu});function u(a,o){if(!Ae.isUndefined(a)){if(s.indexOf(a)!==-1)throw Error("Circular reference detected in "+o.join("."));s.push(a),Ae.forEach(a,function(c,d){(!(Ae.isUndefined(c)||c===null)&&f.call(t,c,Ae.isString(d)?d.trim():d,o,l))===!0&&u(c,o?o.concat(d):[d])}),s.pop()}}if(!Ae.isObject(n))throw new TypeError("data must be an object");return u(n),t}function hg(n){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function cu(n,t){this._pairs=[],n&&bl(n,this,t)}const dg=cu.prototype;dg.append=function(n,t){this._pairs.push([n,t])},dg.toString=function(n){const t=n?function(e){return n.call(this,e,hg)}:hg;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};function Ox(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function pg(n,t,e){if(!t)return n;const r=e&&e.encode||Ox;Ae.isFunction(e)&&(e={serialize:e});const f=e&&e.serialize;let p;if(f?p=f(t,e):p=Ae.isURLSearchParams(t)?t.toString():new cu(t,e).toString(r),p){const y=n.indexOf("#");y!==-1&&(n=n.slice(0,y)),n+=(n.indexOf("?")===-1?"?":"&")+p}return n}class gg{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){Ae.forEach(this.handlers,function(e){e!==null&&t(e)})}}const fg={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Nx=typeof URLSearchParams<"u"?URLSearchParams:cu,Dx=typeof FormData<"u"?FormData:null,Px=typeof Blob<"u"?Blob:null,Fx={isBrowser:!0,classes:{URLSearchParams:Nx,FormData:Dx,Blob:Px},protocols:["http","https","file","blob","url","data"]},uu=typeof window<"u"&&typeof document<"u",hu=typeof navigator=="object"&&navigator||void 0,Wx=uu&&(!hu||["ReactNative","NativeScript","NS"].indexOf(hu.product)<0),Bx=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",zx=uu&&window.location.href||"http://localhost",jx=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:uu,hasStandardBrowserEnv:Wx,hasStandardBrowserWebWorkerEnv:Bx,navigator:hu,origin:zx},Symbol.toStringTag,{value:"Module"})),kr={...jx,...Fx};function Hx(n,t){return bl(n,new kr.classes.URLSearchParams,Object.assign({visitor:function(e,r,f,p){return kr.isNode&&Ae.isBuffer(e)?(this.append(r,e.toString("base64")),!1):p.defaultVisitor.apply(this,arguments)}},t))}function Ux(n){return Ae.matchAll(/\w+|\[(\w*)]/g,n).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Vx(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 mg(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&&Ae.isArray(f)?f.length:y,h?(Ae.hasOwnProp(f,y)?f[y]=[f[y],r]:f[y]=r,!b):((!f[y]||!Ae.isObject(f[y]))&&(f[y]=[]),t(e,r,f[y],p)&&Ae.isArray(f[y])&&(f[y]=Vx(f[y])),!b)}if(Ae.isFormData(n)&&Ae.isFunction(n.entries)){const e={};return Ae.forEachEntry(n,(r,f)=>{t(Ux(r),f,e,0)}),e}return null}function qx(n,t,e){if(Ae.isString(n))try{return(t||JSON.parse)(n),Ae.trim(n)}catch(r){if(r.name!=="SyntaxError")throw r}return(e||JSON.stringify)(n)}const Sa={transitional:fg,adapter:["xhr","http","fetch"],transformRequest:[function(n,t){const e=t.getContentType()||"",r=e.indexOf("application/json")>-1,f=Ae.isObject(n);if(f&&Ae.isHTMLForm(n)&&(n=new FormData(n)),Ae.isFormData(n))return r?JSON.stringify(mg(n)):n;if(Ae.isArrayBuffer(n)||Ae.isBuffer(n)||Ae.isStream(n)||Ae.isFile(n)||Ae.isBlob(n)||Ae.isReadableStream(n))return n;if(Ae.isArrayBufferView(n))return n.buffer;if(Ae.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 Hx(n,this.formSerializer).toString();if((p=Ae.isFileList(n))||e.indexOf("multipart/form-data")>-1){const y=this.env&&this.env.FormData;return bl(p?{"files[]":n}:n,y&&new y,this.formSerializer)}}return f||r?(t.setContentType("application/json",!1),qx(n)):n}],transformResponse:[function(n){const t=this.transitional||Sa.transitional,e=t&&t.forcedJSONParsing,r=this.responseType==="json";if(Ae.isResponse(n)||Ae.isReadableStream(n))return n;if(n&&Ae.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"?It.from(p,It.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:kr.classes.FormData,Blob:kr.classes.Blob},validateStatus:function(n){return n>=200&&n<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ae.forEach(["delete","get","head","post","put","patch"],n=>{Sa.headers[n]={}});const Kx=Ae.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"]),Gx=n=>{const t={};let e,r,f;return n&&n.split(`
1392
+ `).forEach(function(p){f=p.indexOf(":"),e=p.substring(0,f).trim().toLowerCase(),r=p.substring(f+1).trim(),!(!e||t[e]&&Kx[e])&&(e==="set-cookie"?t[e]?t[e].push(r):t[e]=[r]:t[e]=t[e]?t[e]+", "+r:r)}),t},vg=Symbol("internals");function Aa(n){return n&&String(n).trim().toLowerCase()}function xl(n){return n===!1||n==null?n:Ae.isArray(n)?n.map(xl):String(n)}function Yx(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 Xx=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function du(n,t,e,r,f){if(Ae.isFunction(r))return r.call(this,t,e);if(f&&(t=e),!!Ae.isString(t)){if(Ae.isString(r))return t.indexOf(r)!==-1;if(Ae.isRegExp(r))return r.test(t)}}function Qx(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,e,r)=>e.toUpperCase()+r)}function Zx(n,t){const e=Ae.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 Ur=class{constructor(n){n&&this.set(n)}set(n,t,e){const r=this;function f(y,b,h){const g=Aa(b);if(!g)throw new Error("header name must be a non-empty string");const s=Ae.findKey(r,g);(!s||r[s]===void 0||h===!0||h===void 0&&r[s]!==!1)&&(r[s||b]=xl(y))}const p=(y,b)=>Ae.forEach(y,(h,g)=>f(h,g,b));if(Ae.isPlainObject(n)||n instanceof this.constructor)p(n,t);else if(Ae.isString(n)&&(n=n.trim())&&!Xx(n))p(Gx(n),t);else if(Ae.isObject(n)&&Ae.isIterable(n)){let y={},b,h;for(const g of n){if(!Ae.isArray(g))throw TypeError("Object iterator must return a key-value pair");y[h=g[0]]=(b=y[h])?Ae.isArray(b)?[...b,g[1]]:[b,g[1]]:g[1]}p(y,t)}else n!=null&&f(t,n,e);return this}get(n,t){if(n=Aa(n),n){const e=Ae.findKey(this,n);if(e){const r=this[e];if(!t)return r;if(t===!0)return Yx(r);if(Ae.isFunction(t))return t.call(this,r,e);if(Ae.isRegExp(t))return t.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(n,t){if(n=Aa(n),n){const e=Ae.findKey(this,n);return!!(e&&this[e]!==void 0&&(!t||du(this,this[e],e,t)))}return!1}delete(n,t){const e=this;let r=!1;function f(p){if(p=Aa(p),p){const y=Ae.findKey(e,p);y&&(!t||du(e,e[y],y,t))&&(delete e[y],r=!0)}}return Ae.isArray(n)?n.forEach(f):f(n),r}clear(n){const t=Object.keys(this);let e=t.length,r=!1;for(;e--;){const f=t[e];(!n||du(this,this[f],f,n,!0))&&(delete this[f],r=!0)}return r}normalize(n){const t=this,e={};return Ae.forEach(this,(r,f)=>{const p=Ae.findKey(e,f);if(p){t[p]=xl(r),delete t[f];return}const y=n?Qx(f):String(f).trim();y!==f&&delete t[f],t[y]=xl(r),e[y]=!0}),this}concat(...n){return this.constructor.concat(this,...n)}toJSON(n){const t=Object.create(null);return Ae.forEach(this,(e,r)=>{e!=null&&e!==!1&&(t[r]=n&&Ae.isArray(e)?e.join(", "):e)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([n,t])=>n+": "+t).join(`
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}};Ur.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Ae.reduceDescriptors(Ur.prototype,({value:n},t)=>{let e=t[0].toUpperCase()+t.slice(1);return{get:()=>n,set(r){this[e]=r}}}),Ae.freezeMethods(Ur);function pu(n,t){const e=this||Sa,r=t||e,f=Ur.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=kr.hasStandardBrowserEnv?((n,t)=>e=>(e=new URL(e,kr.origin),n.protocol===e.protocol&&n.host===e.host&&(t||n.port===e.port)))(new URL(kr.origin),kr.navigator&&/(msie|trident)/i.test(kr.navigator.userAgent)):()=>!0,r1=kr.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 Ur?{...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=Ur.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(kr.hasStandardBrowserEnv||kr.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(kr.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=Ur.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=Ur.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),I={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()},I),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 I=r.transitional||fg;r.timeoutErrorMessage&&(x=r.timeoutErrorMessage),e(new It(x,I.clarifyTimeoutError?It.ETIMEDOUT:It.ECONNABORTED,n,c)),c=null},f===void 0&&p.setContentType(null),"setRequestHeader"in c&&Ae.forEach(p.toJSON(),function(x,I){c.setRequestHeader(I,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&&kr.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(kr.origin,{body:new ReadableStream,method:"POST",get duplex(){return n=!0,"half"}}).headers.has("Content-Type");return n&&!t}),$g=64*1024,gu=_g&&Tg(()=>Ae.isReadableStream(new Response("").body)),Sl={stream:gu&&(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(kr.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 I=gu&&(g==="stream"||g==="response");if(gu&&(b||I&&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!I&&c&&c(),await new Promise((S,C)=>{wg(S,C,{data:$,headers:Ur.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)}}),fu={http:Ex,xhr:a1,fetch:m1};Ae.forEach(fu,(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=fu[(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
- `):" "+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:gu};function fu(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new js(null,n)}function Eg(n){return fu(n),n.headers=Hr.from(n.headers),n.data=du.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 fu(n),t.data=du.call(n,n.transformResponse,t),t.headers=Hr.from(t.headers),t},function(t){return yg(t)||(fu(n),t&&t.response&&(t.response.data=du.call(n,n.transformResponse,t.response),t.response.headers=Hr.from(t.response.headers))),Promise.reject(t)})}const Rg="1.9.0",Sl={};["object","boolean","number","function","string","symbol"].forEach((n,t)=>{Sl[n]=function(e){return typeof e===n||"a"+(t<1?"n ":" ")+n}});const Lg={};Sl.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}},Sl.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 Al={assertOptions:y1,validators:Sl},Ki=Al.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&&Al.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}:Al.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),Al.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 mu={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(mu).forEach(([n,t])=>{mu[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=wl,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=mu,Bn.default=Bn;const{Axios:t2,AxiosError:n2,CanceledError:r2,isCancel:i2,CancelToken:o2,VERSION:s2,all:a2,Cancel:l2,isAxiosError:c2,spread:u2,toFormData:h2,AxiosHeaders:d2,HttpStatusCode:p2,formToJSON:g2,getAdapter:f2,mergeConfig:m2}=Bn,vu=Bn.create({baseURL:location.origin,timeout:6e4,params:{}});vu.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 _l=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),vu({method:n,url:t,data:e,params:r,headers:f,onUploadProgress:b})},yu={Accept:"application/json"},Ng={...yu,"Content-Type":"application/json"},v2=Wn("F",{get:function(n,{params:t,headers:e=yu,noScope:r,noAuth:f,onUploadProgress:p}={}){return _l("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 _l("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 _l("post",n,{data:t,params:e,headers:r,noScope:f,noAuth:p,onUploadProgress:y})},delete:function(n,{params:t,headers:e=yu,noScope:r,noAuth:f,onUploadProgress:p}={}){return _l("delete",n,{params:t,headers:e,noScope:r,noAuth:f,onUploadProgress:p})}});let Tl=()=>({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 wu 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=Tl(),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 wu)):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 bu extends Pg{constructor(t,e){super(e),this.channelId=t}set channelId(t){this._channelId=t}get channelId(){return this._channelId}}pl(bu,"identifier","__ghost__");const L1="$pubsub";class xu extends Pg{async perform(t,e){if(t.startsWith("$"))return super.perform(t,e);throw Error("not implemented")}}pl(xu,"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=Tl(),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 xu({stream_name:n});return this.subscribe(t)}streamFromSigned(n){let t=new xu({signed_stream_name:n});return this.subscribe(t)}subscribeTo(n,t){let e,r;return typeof n=="string"&&(r=n,n=bu),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 wu&&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=Tl(),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=Tl();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:I,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 E={concurrentSubscribes:C},H=new O1({protocol:e,transport:s,encoder:l,logger:g,lazy:u,hubOptions:E,performFailures:R,transportConfigurator:L});return a&&(a.watch(H),H.monitor=a),I&&W1(H,async()=>{try{await I(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 bu{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 wu?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 q1=["cable","action-cable"],K1="/cable",$l=(n,t)=>{for(let e of q1){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=$l(document,"url");if(n)return Vg(n)}return Vg(K1)},Y1=()=>{if(typeof document<"u"&&document.head){let n=$l(document,"history-timestamp");if(n)return n|0}},X1=()=>{if(typeof document<"u"&&document.head)return $l(document,"token")},Q1=()=>{if(typeof document<"u"&&document.head)return $l(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(){}}Wn("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}}Wn("b",tC);function Ml(n){return nC.test(n)}const nC=/^-?[0-9]+$/;function qg(n){return rC.test(n)}const rC=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$/;function Kg(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&&!Ml(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(Kg(n,{approx:!1}))return;if(Ml(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(pl(this,"isLosslessNumber",!0),!qg(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(Ml(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 Cu({"":n},"",n,t)}function Cu(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=Cu(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]=Cu(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){I();return}g(),a();const U=b();if(U===void 0){P();return}Object.prototype.hasOwnProperty.call(_,B)&&!ku(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)===Su){r++;let _="";for(;r<n.length&&n.charCodeAt(r)!==Su;){if(n.charCodeAt(r)===bC){const A=n[r+1],N=wC[A];N!==void 0?(_+=N,r++):A==="u"?Il(n.charCodeAt(r+2))&&Il(n.charCodeAt(r+3))&&Il(n.charCodeAt(r+4))&&Il(n.charCodeAt(r+5))?(_+=String.fromCharCode(Number.parseInt(n.slice(r+2,r+6),16)),r+=5):E(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)===Au)r++;else if(vC(n.charCodeAt(r)))for(r++;El(n.charCodeAt(r));)r++;if(n.charCodeAt(r)===IC)for(r++,w(_);El(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(_);El(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(!El(n.charCodeAt(r))){const A=n.slice(_,r);throw new SyntaxError(`Invalid number '${A}', expecting a digit ${O()}`)}}function x(){if(n.charCodeAt(r)!==Su)throw new SyntaxError(`End of string '"' expected ${O()}`)}function I(){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 E(_){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 Il(n){return n>=Au&&n<=_u||n>=RC&&n<=DC||n>=LC&&n<=PC}function El(n){return n>=Au&&n<=_u}function vC(n){return n>=$C&&n<=_u}function yC(n){return n>=32&&n<=1114111}function ku(n,t){return n===t?!0:Array.isArray(n)&&Array.isArray(t)?n.length===t.length&&n.every((e,r)=>ku(e,t[r])):Yg(n)&&Yg(t)?[...new Set([...Object.keys(n),...Object.keys(t)])].every(e=>ku(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,Su=34,TC=43,Zg=45,Au=48,$C=49,_u=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"||!qg(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 Ml(n)&&!Kg(n)?BigInt(n):parseFloat(n)}class Oo{constructor(){pl(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 vu.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("")}}}Wn("B",Oo);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,E,H){if(!(P.length<E)){var F=P.slice(0,E),O=P.slice(E),_=/^(?:(\s+)|(\S+)(\s+))/.exec(O),A=/(?:(\s+)|(\s+)(\S+))$/.exec(F),N=0,B=0;if(A&&!A[2]&&(N=E-A[1].length,B=E),_&&!_[2]&&(N||(N=E),B=E+_[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=E+_[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 I=/^\s*/.exec(w)[0];d.replace(new b(o,x.start,o,x.end),`
1398
- `+I)}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),We.signal(v,"vim-mode-change",{mode:"normal"}),v.on("cursorActivity",jo),R(v),We.on(v.getInputField(),"paste",s(v))}function g(v){v.setOption("disableInput",!1),v.off("cursorActivity",jo),We.off(v.getInputField(),"paste",s(v)),v.state.vim=null,cr&&clearTimeout(cr)}function s(v){var T=v.state.vim;return T.onPasteFn||(T.onPasteFn=function(){T.insertMode||(v.setCursor(fe(v.getCursor(),0,1)),Dn.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 I(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=On()}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(){ze={searchQuery:null,searchIsReversed:!1,lastSubstituteReplacePart:void 0,jumpList:xi(),macroModeState:new C,lastCharacterSearch:{increment:0,forward:!0,selectedCharacter:""},registerController:new K({}),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"?bn.value=Y:bn=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=`
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:fu};function mu(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new js(null,n)}function Eg(n){return mu(n),n.headers=Ur.from(n.headers),n.data=pu.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 mu(n),t.data=pu.call(n,n.transformResponse,t),t.headers=Ur.from(t.headers),t},function(t){return yg(t)||(mu(n),t&&t.response&&(t.response.data=pu.call(n,n.transformResponse,t.response),t.response.headers=Ur.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=Ur.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 vu={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(vu).forEach(([n,t])=>{vu[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=Ur,Bn.formToJSON=n=>mg(Ae.isHTMLForm(n)?new FormData(n):n),Bn.getAdapter=Ig.getAdapter,Bn.HttpStatusCode=vu,Bn.default=Bn;const{Axios:t2,AxiosError:n2,CanceledError:r2,isCancel:i2,CancelToken:o2,VERSION:s2,all:a2,Cancel:l2,isAxiosError:c2,spread:u2,toFormData:h2,AxiosHeaders:d2,HttpStatusCode:p2,formToJSON:g2,getAdapter:f2,mergeConfig:m2}=Bn,yu=Bn.create({baseURL:location.origin,timeout:6e4,params:{}});yu.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),yu({method:n,url:t,data:e,params:r,headers:f,onUploadProgress:b})},wu={Accept:"application/json"},Ng={...wu,"Content-Type":"application/json"},v2=Wn("F",{get:function(n,{params:t,headers:e=wu,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=wu,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 bu 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 bu)):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 xu extends Pg{constructor(t,e){super(e),this.channelId=t}set channelId(t){this._channelId=t}get channelId(){return this._channelId}}gl(xu,"identifier","__ghost__");const L1="$pubsub";class Cu extends Pg{async perform(t,e){if(t.startsWith("$"))return super.perform(t,e);throw Error("not implemented")}}gl(Cu,"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 Cu({stream_name:n});return this.subscribe(t)}streamFromSigned(n){let t=new Cu({signed_stream_name:n});return this.subscribe(t)}subscribeTo(n,t){let e,r;return typeof n=="string"&&(r=n,n=xu),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 bu&&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:I,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 E={concurrentSubscribes:C},H=new O1({protocol:e,transport:s,encoder:l,logger:g,lazy:u,hubOptions:E,performFailures:R,transportConfigurator:L});return a&&(a.watch(H),H.monitor=a),I&&W1(H,async()=>{try{await I(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 xu{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 bu?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 q1=["cable","action-cable"],K1="/cable",Ml=(n,t)=>{for(let e of q1){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(K1)},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(){}}Wn("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}}Wn("b",tC);function Il(n){return nC.test(n)}const nC=/^-?[0-9]+$/;function qg(n){return rC.test(n)}const rC=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$/;function Kg(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(Kg(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),!qg(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 ku({"":n},"",n,t)}function ku(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=ku(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]=ku(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){I();return}g(),a();const U=b();if(U===void 0){P();return}Object.prototype.hasOwnProperty.call(_,B)&&!Su(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)===Au){r++;let _="";for(;r<n.length&&n.charCodeAt(r)!==Au;){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):E(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)===_u)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)!==Au)throw new SyntaxError(`End of string '"' expected ${O()}`)}function I(){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 E(_){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>=_u&&n<=Tu||n>=RC&&n<=DC||n>=LC&&n<=PC}function Rl(n){return n>=_u&&n<=Tu}function vC(n){return n>=$C&&n<=Tu}function yC(n){return n>=32&&n<=1114111}function Su(n,t){return n===t?!0:Array.isArray(n)&&Array.isArray(t)?n.length===t.length&&n.every((e,r)=>Su(e,t[r])):Yg(n)&&Yg(t)?[...new Set([...Object.keys(n),...Object.keys(t)])].every(e=>Su(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,Au=34,TC=43,Zg=45,_u=48,$C=49,Tu=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"||!qg(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)&&!Kg(n)?BigInt(n):parseFloat(n)}class Oo{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 yu.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("")}}}Wn("B",Oo);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,E,H){if(!(P.length<E)){var F=P.slice(0,E),O=P.slice(E),_=/^(?:(\s+)|(\S+)(\s+))/.exec(O),A=/(?:(\s+)|(\s+)(\S+))$/.exec(F),N=0,B=0;if(A&&!A[2]&&(N=E-A[1].length,B=E),_&&!_[2]&&(N||(N=E),B=E+_[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=E+_[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 I=/^\s*/.exec(w)[0];d.replace(new b(o,x.start,o,x.end),`
1398
+ `+I)}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),We.signal(v,"vim-mode-change",{mode:"normal"}),v.on("cursorActivity",jo),R(v),We.on(v.getInputField(),"paste",s(v))}function g(v){v.setOption("disableInput",!1),v.off("cursorActivity",jo),We.off(v.getInputField(),"paste",s(v)),v.state.vim=null,cr&&clearTimeout(cr)}function s(v){var T=v.state.vim;return T.onPasteFn||(T.onPasteFn=function(){T.insertMode||(v.setCursor(fe(v.getCursor(),0,1)),Dn.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 on.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 I(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=On()}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(){ze={searchQuery:null,searchIsReversed:!1,lastSubstituteReplacePart:void 0,jumpList:xi(),macroModeState:new C,lastCharacterSearch:{increment:0,forward:!0,selectedCharacter:""},registerController:new K({}),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"?bn.value=Y:bn=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
1399
  `;else if(Ci[k]){var W=bn.value,z={key:Ci[k],target:{value:W,selectionEnd:W.length,selectionStart:W.length}};bn.onKeyDown&&bn.onKeyDown(z,bn.value,T),bn&&bn.onKeyUp&&bn.onKeyUp(z,bn.value,T);return}}if(v==`
1400
- `){var q=bn;bn=null,q.onClose&&q.onClose(q.value)}else bn.value=(bn.value||"")+v}function E(v,T,k){var D=un;if(k){if(Dr.indexOf(k)!=-1)return;Dr.push(k),un=k.noremap!=0}try{for(var W=R(v),z=/<(?:[CSMA]-)*\w+>|./gi,q;q=z.exec(T);){var Y=q[0],Q=W.insertMode;if(bn){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],Uo(v,Y);continue}Y=Y[0],z.lastIndex=q.index+1}}v.replaceSelection(Y)}}}finally{if(Dr.pop(),un=Dr.length?D:!1,!Dr.length&&bn){var Ce=bn;bn=null,$r(v,Ce)}}}function H(v,T){var k=v.key;if(!Pr[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-"),We.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]),q=T(W[2]);if(z.length!==q.length)return;for(var Y=0;Y<z.length;++Y)k[z[Y]]=q[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,We.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=ze.registerController.registers;if(!v||v.length!=1)throw Error("Register name must be 1 character");k[v]=T,nn.push(v)}function K(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){Go[v]=T}function ae(v,T){Dn[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()),q=v.getLine(z),Y=q.length-1+ +!!W,Q=Math.min(Math.max(0,T.ch),Y),re=q.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=[],q=[],Y=un?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"&&q.push(re))}return{partial:z.length&&z,full:q.length&&q}}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),q=T.slice(0,W);return z==q&&v.length>W?"full":q.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 Ke(v){return new Ne(v.line,v.ch)}function pt(v,T){return v.ch==T.ch&&v.line==T.line}function it(v,T){return v.line<T.line?!0:v.line==T.line&&v.ch<T.ch}function gt(v,T){return arguments.length>2&&(T=gt.apply(void 0,Array.prototype.slice.call(arguments,1))),it(v,T)?v:T}function tn(v,T){return arguments.length>2&&(T=tn.apply(void 0,Array.prototype.slice.call(arguments,1))),it(v,T)?T:v}function gn(v,T,k){var D=it(v,T),W=it(T,k);return D&&W}function Yt(v,T){return v.getLine(T).length}function fr(v){return v.trim?v.trim():v.replace(/^\s+|\s+$/g,"")}function fn(v){return v.replace(/([.?*+$\[\]\/\\(){}|\-])/g,"\\$1")}function En(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 Rn(v,T){var k=[],D=v.listSelections(),W=Ke(v.clipPos(T)),z=!pt(T,W),q=v.getCursor("head"),Y=bt(D,q),Q=pt(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,Ve=Oe-we;Le>0&&Ve<=0?(we++,z||Oe--):Le<0&&Ve>=0?(we--,Q||Oe++):Le<0&&Ve==-1&&(we--,Oe++);for(var ct=Ce;ct<=me;ct++){var Ze={anchor:new Ne(ct,we),head:new Ne(ct,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=pt(v[D].anchor,T),z=pt(v[D].head,T);if(W||z)return D}return-1}function Ue(v,T){var k=T.lastSelection,D=function(){var z=v.listSelections(),q=z[0],Y=z[z.length-1],Q=it(q.anchor,q.head)?q.anchor:q.head,re=it(Y.anchor,Y.head)?Y.head:Y.anchor;return[Q,re]},W=function(){var z=v.getCursor(),q=v.getCursor(),Y=k.visualBlock;if(Y){var Q=Y.width,re=Y.height;q=new Ne(z.line+re,z.ch+Q);for(var se=[],ye=z.line;ye<q.line;ye++){var Ce=new Ne(ye,z.ch),me=new Ne(ye,q.ch),we={anchor:Ce,head:me};se.push(we)}v.setSelections(se)}else{var Oe=k.anchorMark.find(),Le=k.headMark.find(),Ve=Le.line-Oe.line,ct=Le.ch-Oe.ch;q={line:q.line+Ve,ch:Ve?q.ch:ct+q.ch},k.visualLine&&(z=new Ne(z.line,0),q=new Ne(q.line,Yt(v,q.line))),v.setSelection(z,q)}return[z,q]};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:Ke(k),head:Ke(D),visualMode:T.visualMode,visualLine:T.visualLine,visualBlock:T.visualBlock}}function je(v,T,k,D){var W=v.state.vim.sel,z=D?T:W.head,q=D?T:W.anchor,Y;return it(k,T)&&(Y=k,k=T,T=Y),it(z,q)?(z=gt(T,z),q=tn(q,k)):(q=gt(T,q),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)))),[q,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=ft(v,T,W);v.setSelections(z.ranges,z.primary)}function ft(v,T,k,D){var W=Ke(T.head),z=Ke(T.anchor);if(k=="char"){var q=!D&&!it(T.head,T.anchor)?1:0,Y=it(T.head,T.anchor)?1:0;return W=fe(T.head,0,q),z=fe(T.anchor,0,Y),{ranges:[{anchor:z,head:W}],primary:0}}if(k=="line"){if(it(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=gt(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||We.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 dt(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,q=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=q?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,Ve=me;Oe(re.charAt(Ve))&&Ve>=0;)Ve--;if(Ve++,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 ct=Le,Ze=Q.ch<=Ve&&/\s/.test(re.charAt(Q.ch));if(!Ze)for(;/\s/.test(se.charAt(Le))&&Le<se.length;)Le++;if(ct==Le||Ze){for(var nt=Ve;/\s/.test(re.charAt(Ve-1))&&Ve>0;)Ve--;!Ve&&!Ze&&(Ve=nt)}}return{start:new Ne(ye,Ve),end:new Ne(Ce,Le)}}function Cn(v,T,k){var D=T;if(!We.findMatchingTag||!We.findEnclosingTag)return{start:D,end:D};var W=We.findMatchingTag(v,T)||We.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 Ar(v,T,k){pt(T,k)||ze.jumpList.add(v,T,k)}function qr(v,T){ze.lastCharacterSearch.increment=v,ze.lastCharacterSearch.forward=T.forward,ze.lastCharacterSearch.selectedCharacter=T.selectedCharacter}function Di(v,T,k,D){var W=Ke(v.getCursor()),z=k?1:-1,q=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!==q&&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,q=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;q=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;q!=se;){for(var me=!1,we=0;we<re.length&&!me;++we)if(re[we](Y.charAt(q))){for(ye=q;q!=se&&re[we](Y.charAt(q));)q+=Q;if(Ce=q,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||(q+=Q)}if(z+=Q,!l(v,z))return null;Y=v.getLine(z),q=Q>0?0:Y.length}}function mr(v,T,k,D,W,z){var q=Ke(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!=q.ch||me.line!=q.line)&&(we=Y.pop()),new Ne(we.line,we.from)):D&&W?new Ne(we.line,we.to-1):!D&&W?(!Ce&&(me.to!=q.ch||me.line!=q.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,q=new Ne(z.line+k.repeat-1,1/0),Y=v.clipPos(q);return Y.ch--,W||(D.lastHPos=1/0,D.lastHSPos=v.charCoords(Y,"div").left),q}function Po(v,T,k,D,W){for(var z=W||v.getCursor(),q=z.ch,Y,Q=0;Q<T;Q++){var re=v.getLine(z.line);if(Y=Ua(q,re,D,k),Y==-1)return null;q=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,ro)&&!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(Ve){return!/\S/.test(v.getLine(Ve))}function q(Ve,ct,Ze){return Ze?z(Ve)!=z(Ve+ct):!z(Ve)&&z(Ve+ct)}function Y(Ve){D=D>0?1:-1;var ct=v.ace.session.getFoldLine(Ve);ct&&Ve+D>ct.start.row&&Ve+D<ct.end.row&&(D=(D>0?ct.end.row:ct.start.row)-Ve)}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),q(me,D)&&k--,me+=D;return new Ne(me,0)}var we=v.state.vim;if(we.visualLine&&q(Q,1,!0)){var Oe=we.sel.anchor;q(Oe.line,-1,!0)&&(!W||Oe.line!=Q)&&(Q+=1)}var Le=z(Q);for(me=Q;me<=se&&k;me++)q(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)&&q(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 q(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=q(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 Ve=Le.length-1;Ve>=0;--Ve)if(!d(Le[Ve])){we.pos=Ve;break}return we}function q(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=q(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,q,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}),q=v.scanForBracket(new Ne(W.line,W.ch+se),1,void 0,{bracketRegex:Y}),!z||!q)return null;if(z=z.pos,q=q.pos,z.line==q.line&&z.ch>q.ch||z.line>q.line){var ye=z;z=q,q=ye}return D?q.ch+=1:z.ch+=1,{start:z,end:q}}function _r(v,T,k,D){var W=Ke(T),z=v.getLine(W.line),q=z.split(""),Y,Q,re,se,ye=q.indexOf(k);if(W.ch<ye)W.ch=ye;else if(ye<W.ch&&q[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(q[W.ch]==k&&!Q)Y=W.ch+1;else for(re=W.ch;re>-1&&!Y;re--)q[re]==k&&(Y=re+1);if(Y&&!Q)for(re=Y,se=q.length;re<se&&!Q;re++)q[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 Tr(v){return Wi(v,"/")}function Zi(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 q=v.charAt(z)||"",Y=v.charAt(z+1)||"",Q=Y&&T.indexOf(Y)!=-1;D?((q!=="\\"||!Q)&&W.push(q),D=!1):q==="\\"?(D=!0,Y&&k.indexOf(Y)!=-1&&(Q=!0),(!Q||Y==="\\")&&W.push(q)):(W.push(q),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 qa(v){for(var T=new We.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=ze.registerController.getRegister("/");if(D.setText(v),v instanceof RegExp)return v;var W=Zi(v),z,q;if(!W.length)z=v;else{z=v.substring(0,W[0]);var Y=v.substring(W[0]);q=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||q?"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(Dr.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 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 mn(v,T,k,D){if(T){var W=Tn(v),z=Bi(T,!!k,!!D);if(z)return vi(v,z),Un(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 Mr(v,T,k,D){return D===void 0&&(D=1),v.operation(function(){for(var W=v.getCursor(),z=v.getSearchCursor(k,W),q=0;q<D;q++){var Y=z.find(T);if(q==0&&Y&&pt(z.from(),W)){var Q=T?z.from():z.to();Y=z.find(T),Y&&!Y[0]&&pt(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(),q=v.getSearchCursor(k,z),Y=q.find(!T);!W.visualMode&&Y&&pt(q.from(),z)&&q.find(!T);for(var Q=0;Q<D;Q++)if(Y=q.find(T),!Y&&(q=v.getSearchCursor(k,T?new Ne(v.lastLine()):new Ne(v.firstLine(),0)),!q.find(T)))return;return[q.from(),q.to()]})}function Fo(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 Ji(v){var T=v.ace.renderer;return{top:T.getFirstFullyVisibleRow(),bottom:T.getLastFullyVisibleRow()}}function Kr(v,T,k){if(k=="'"||k=="`")return ze.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 Ke(T[k].changes[0].to)}function Wo(v,T,k,D,W,z,q,Y,Q){function re(){v.operation(function(){for(;!Oe;)se(),Ce();me()})}function se(){var Ze=v.getRange(z.from(),z.to()),nt=Ze.replace(q,Y),yn=z.to().line;z.replace(nt),Ve=z.to().line,W+=Ve-yn,ct=Ve<yn}function ye(){var Ze=Le&&Ke(z.to()),nt=z.findNext();return nt&&!nt[0]&&Ze&&pt(z.from(),Ze)&&(nt=z.findNext()),nt}function Ce(){for(;ye()&&bs(z.from(),D,W);)if(!(!k&&z.from().line==Ve&&!ct)){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 nt=v.state.vim;nt.exMode=!1,nt.lastHPos=nt.lastHSPos=Le.ch}Q&&Q()}function we(Ze,nt,yn){We.e_stop(Ze);var ut=H(Ze);switch(ut){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,Ve,ct;if(Ce(),Oe){Ut(v,"No matches for "+q.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=ze.macroModeState,W=ze.registerController.getRegister("."),z=D.isPlaying,q=D.lastInsertModeChanges;z||(v.off("change",po),k.insertEnd&&k.insertEnd.clear(),k.insertEnd=null,We.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(q.changes.join("")),We.signal(v,"vim-mode-change",{mode:"normal"}),D.isRecording&&ir(D)}function Bo(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 q in W)z[q]=W[q];Bo(z)}function Cs(v,T,k,D){var W=ze.registerController.getRegister(D);if(D==":"){W.keyBuffer[0]&&yr.processCommand(v,W.keyBuffer[0]),k.isPlaying=!1;return}var z=W.keyBuffer,q=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[q++].changes;ze.macroModeState.lastInsertModeChanges.changes=ye,Vo(v,ye,1),Gr(v)}k.isPlaying=!1}function zo(v,T){if(!v.isPlaying){var k=v.latestRegister,D=ze.registerController.getRegister(k);D&&D.pushText(T)}}function ir(v){if(!v.isPlaying){var T=v.latestRegister,k=ze.registerController.getRegister(T);k&&k.pushInsertModeChanges&&k.pushInsertModeChanges(v.lastInsertModeChanges)}}function ks(v,T){if(!v.isPlaying){var k=v.latestRegister,D=ze.registerController.getRegister(k);D&&D.pushSearchQuery&&D.pushSearchQuery(T)}}function po(v,T){var k=ze.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 q=T.text.join(`
1404
- `);if(D.maybeReset&&(D.changes=[],D.maybeReset=!1),q)if(v.state.overwrite&&!/\n/.test(q))D.changes.push([q]);else{if(q.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<q.length&&(D.changes.push([q,re]),q="")}}q&&D.changes.push(q)}}T=T.next}}function jo(v){var T=v.state.vim;if(T.insertMode){var k=ze.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||Ho(v,T)}function Ho(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,We.signal(v,"vim-mode-change",{mode:"visual"})),T.visualMode){var z=it(W,D)?0:-1,q=it(W,D)?-1:0;W=fe(W,0,z),D=fe(D,0,q),T.sel={anchor:D,head:W},ii(v,T,"<",gt(W,D)),ii(v,T,">",tn(W,D))}else!T.insertMode&&!k&&(T.lastHPos=v.getCursor().ch)}function eo(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=ze.macroModeState,k=T.lastInsertModeChanges,D=We.keyName?We.keyName(v):v.key;D&&(D.indexOf("Delete")!=-1||D.indexOf("Backspace")!=-1)&&(k.maybeReset&&(k.changes=[],k.maybeReset=!1),k.changes.push(new eo(D,v)))}function sa(v,T,k,D){function W(){Y?Nn.processAction(v,T,T.lastEditActionCommand):Nn.evalInput(v,T)}function z(se){if(q.lastInsertModeChanges.changes.length>0){se=T.lastEditActionCommand?se:1;var ye=q.lastInsertModeChanges;Vo(v,ye.changes,se)}}var q=ze.macroModeState;q.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),q.isPlaying=!1}function Uo(v,T){We.lookupKey(T,"vim-insert",function(k){return typeof k=="string"?We.commands[k](v):k(v),!0})}function Vo(v,T,k){var D=v.getCursor("head"),W=ze.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 q=0;q<T.length;q++){var Y=T[q];if(Y instanceof eo)Uo(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=Ir[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 qo(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=qo(D)),T[k]=D}}),v.sel&&(T.sel={head:v.sel.head&&Ke(v.sel.head),anchor:v.sel.anchor&&Ke(v.sel.anchor)}),T}function go(v,T,k){var D=!1,W=Ct.maybeInitVimState_(v),z=W.visualBlock||W.wasInVisualBlock,q=v.ace.inMultiSelectMode;if(W.wasInVisualBlock&&!q?W.wasInVisualBlock=!1:q&&W.visualBlock&&(W.wasInVisualBlock=!0),T=="<Esc>"&&!W.insertMode&&!W.visualMode&&q)v.ace.exitMultiSelectMode();else if(z||!q||v.ace.inVirtualSelectionMode)D=Ct.handleKey(v,T,k);else{var Y=qo(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=it(ye,Ce)?0:-1,we=it(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=qo(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()&&Ho(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 or=e("../range").Range,to=e("../lib/event_emitter").EventEmitter,zi=e("../lib/dom"),aa=e("../lib/oop"),Ka=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,no=e("../ext/hardwrap").hardWrap;e("../multi_select");var We=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)};We.Pos=function(v,T){if(!(this instanceof Ne))return new Ne(v,T);this.line=v,this.ch=T},We.defineOption=function(v,T,k){},We.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()}},We.keyMap={},We.addClass=We.rmClass=function(){},We.e_stop=We.e_preventDefault=fo.stopEvent,We.keyName=function(v){var T=Ka[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},We.keyMap.default=function(v){return function(T){var k=T.ace.commands.commandKeyBinding[v.toLowerCase()];return k&&T.ace.execCommand(k)!==!1}},We.lookupKey=function v(T,k,D){k||(k="default"),typeof k=="string"&&(k=We.keyMap[k]||We.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 q=v(T,k.fallthrough[z],D);if(q)return q}}},We.findMatchingTag=function(v,T){return v.findMatchingTag(T)},We.findEnclosingTag=function(v,T){},We.signal=function(v,T,k){return v._signal(T,k)},We.on=fo.addListener,We.off=fo.removeListener,We.isWordChar=function(v){return v<""?/^\w$/.test(v):(la.lastIndex=0,la.test(v))},(function(){aa.implement(We.prototype,to),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 q=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(),q},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 q=0;q<z.length;q++)z[q](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=or.comparePoints(se,ye)<0?new or.fromPoints(se,ye):new or.fromPoints(ye,se);return Ce.cursor=or.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 q=this.ace.session,Y=0;Y<z.length;Y++){var Q=q.$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,q=(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=or.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:or.comparePoints(re,z);if(ye>0){re.row+=q,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 q=this.ace.renderer,Y=q.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),q=z.layerConfig.lineHeight,Y=z.layerConfig.characterWidth,Q=q*W.row;return{left:W.column*Y,top:Q,bottom:Q+q}}},this.coordsChar=function(k,D){var W=this.ace.renderer;if(D=="local"){var z=Math.max(0,Math.floor(k.top/W.lineHeight)),q=Math.max(0,Math.floor(k.left/W.characterWidth)),Y=W.session.screenToDocumentPosition(z,q);return y(Y)}if(D=="div")throw"not implemented"},this.getSearchCursor=function(k,D,W){var z=!1,q=!1;k instanceof RegExp&&!k.global&&(z=!k.ignoreCase,k=k.source,q=!0),k=="\\n"&&(k=`
1406
- `,q=!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:q,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,q=z.maxHeight;q-=(W.$size.scrollerHeight-W.lineHeight)*W.$scrollPastEnd,D!=null&&this.ace.session.setScrollTop(Math.max(0,Math.min(D,q))),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 or(k.line,k.ch,D.line,D.ch))},this.replaceRange=function(k,D,W){W||(W=D);var z=new or(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 q=z.length;q--;)this.ace.session.replace(z[q],D?k[q]||"":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(q){D.session.off("change",D.updateOnChange),D.session.off("changeEditor",D.destroy),D.session.removeMarker(D.id),D.session=null},D.updateOnChange=function(q){var Y=q.start.row;Y==q.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 or(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 q=z.bracketRegex.source,Y=/paren|text|operator|tag/;if(D==1)var Q=this.ace.session.$findClosingBracket(q.slice(1,2),p(k),Y);else{var Q=this.ace.session.$findOpeningBracket(q.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(We.commands.hasOwnProperty(k))return We.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 q=D[z];if(q.start.row!=q.end.row){if(q.action[0]=="i")q.start.row<W&&(W+=q.end.row-q.start.row);else if(q.start.row<W){if(W<q.end.row||W==q.end.row&&q.start.column>0)return null;W-=q.end.row-q.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(We.prototype);var ca=We.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(q){return k?q.toLowerCase():q},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}}},We.defineExtension=function(v,T){We.prototype[v]=T},zi.importCssString(`.normal-mode .ace_cursor{
1400
+ `){var q=bn;bn=null,q.onClose&&q.onClose(q.value)}else bn.value=(bn.value||"")+v}function E(v,T,k){var D=un;if(k){if(Pr.indexOf(k)!=-1)return;Pr.push(k),un=k.noremap!=0}try{for(var W=R(v),z=/<(?:[CSMA]-)*\w+>|./gi,q;q=z.exec(T);){var Y=q[0],Q=W.insertMode;if(bn){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],Uo(v,Y);continue}Y=Y[0],z.lastIndex=q.index+1}}v.replaceSelection(Y)}}}finally{if(Pr.pop(),un=Pr.length?D:!1,!Pr.length&&bn){var Ce=bn;bn=null,Mr(v,Ce)}}}function H(v,T){var k=v.key;if(!Fr[k]){k.length>1&&k[0]=="n"&&(k=k.replace("Numpad","")),k=Jn[k]||k;var D="";if(v.ctrlKey&&(D+="C-"),v.altKey&&(D+="A-"),v.metaKey&&(D+="M-"),We.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]),q=T(W[2]);if(z.length!==q.length)return;for(var Y=0;Y<z.length;++Y)k[z[Y]]=q[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,We.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=ze.registerController.registers;if(!v||v.length!=1)throw Error("Register name must be 1 character");k[v]=T,rn.push(v)}function K(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){Xr[v]=T}function he(v,T){for(var k=[],D=0;D<T;D++)k.push(v);return k}function ne(v,T){Go[v]=T}function ae(v,T){Dn[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()),q=v.getLine(z),Y=q.length-1+ +!!W,Q=Math.min(Math.max(0,T.ch),Y),re=q.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=[],q=[],Y=un?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"&&q.push(re))}return{partial:z.length&&z,full:q.length&&q}}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),q=T.slice(0,W);return z==q&&v.length>W?"full":q.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 Ke(v){return new Ne(v.line,v.ch)}function pt(v,T){return v.ch==T.ch&&v.line==T.line}function it(v,T){return v.line<T.line?!0:v.line==T.line&&v.ch<T.ch}function gt(v,T){return arguments.length>2&&(T=gt.apply(void 0,Array.prototype.slice.call(arguments,1))),it(v,T)?v:T}function nn(v,T){return arguments.length>2&&(T=nn.apply(void 0,Array.prototype.slice.call(arguments,1))),it(v,T)?T:v}function gn(v,T,k){var D=it(v,T),W=it(T,k);return D&&W}function Yt(v,T){return v.getLine(T).length}function fr(v){return v.trim?v.trim():v.replace(/^\s+|\s+$/g,"")}function fn(v){return v.replace(/([.?*+$\[\]\/\\(){}|\-])/g,"\\$1")}function En(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 Rn(v,T){var k=[],D=v.listSelections(),W=Ke(v.clipPos(T)),z=!pt(T,W),q=v.getCursor("head"),Y=bt(D,q),Q=pt(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,Ve=Oe-we;Le>0&&Ve<=0?(we++,z||Oe--):Le<0&&Ve>=0?(we--,Q||Oe++):Le<0&&Ve==-1&&(we--,Oe++);for(var ct=Ce;ct<=me;ct++){var Ze={anchor:new Ne(ct,we),head:new Ne(ct,Oe)};k.push(Ze)}return v.setSelections(k),T.ch=Oe,ye.ch=we,ye}function Zn(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=pt(v[D].anchor,T),z=pt(v[D].head,T);if(W||z)return D}return-1}function Ue(v,T){var k=T.lastSelection,D=function(){var z=v.listSelections(),q=z[0],Y=z[z.length-1],Q=it(q.anchor,q.head)?q.anchor:q.head,re=it(Y.anchor,Y.head)?Y.head:Y.anchor;return[Q,re]},W=function(){var z=v.getCursor(),q=v.getCursor(),Y=k.visualBlock;if(Y){var Q=Y.width,re=Y.height;q=new Ne(z.line+re,z.ch+Q);for(var se=[],ye=z.line;ye<q.line;ye++){var Ce=new Ne(ye,z.ch),me=new Ne(ye,q.ch),we={anchor:Ce,head:me};se.push(we)}v.setSelections(se)}else{var Oe=k.anchorMark.find(),Le=k.headMark.find(),Ve=Le.line-Oe.line,ct=Le.ch-Oe.ch;q={line:q.line+Ve,ch:Ve?q.ch:ct+q.ch},k.visualLine&&(z=new Ne(z.line,0),q=new Ne(q.line,Yt(v,q.line))),v.setSelection(z,q)}return[z,q]};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:Ke(k),head:Ke(D),visualMode:T.visualMode,visualLine:T.visualLine,visualBlock:T.visualBlock}}function je(v,T,k,D){var W=v.state.vim.sel,z=D?T:W.head,q=D?T:W.anchor,Y;return it(k,T)&&(Y=k,k=T,T=Y),it(z,q)?(z=gt(T,z),q=nn(q,k)):(q=gt(T,q),z=nn(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)))),[q,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=ft(v,T,W);v.setSelections(z.ranges,z.primary)}function ft(v,T,k,D){var W=Ke(T.head),z=Ke(T.anchor);if(k=="char"){var q=!D&&!it(T.head,T.anchor)?1:0,Y=it(T.head,T.anchor)?1:0;return W=fe(T.head,0,q),z=fe(T.anchor,0,Y),{ranges:[{anchor:z,head:W}],primary:0}}if(k=="line"){if(it(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=gt(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||We.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 dt(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,q=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=q?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,Ve=me;Oe(re.charAt(Ve))&&Ve>=0;)Ve--;if(Ve++,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 ct=Le,Ze=Q.ch<=Ve&&/\s/.test(re.charAt(Q.ch));if(!Ze)for(;/\s/.test(se.charAt(Le))&&Le<se.length;)Le++;if(ct==Le||Ze){for(var nt=Ve;/\s/.test(re.charAt(Ve-1))&&Ve>0;)Ve--;!Ve&&!Ze&&(Ve=nt)}}return{start:new Ne(ye,Ve),end:new Ne(Ce,Le)}}function Cn(v,T,k){var D=T;if(!We.findMatchingTag||!We.findEnclosingTag)return{start:D,end:D};var W=We.findMatchingTag(v,T)||We.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 _r(v,T,k){pt(T,k)||ze.jumpList.add(v,T,k)}function Kr(v,T){ze.lastCharacterSearch.increment=v,ze.lastCharacterSearch.forward=T.forward,ze.lastCharacterSearch.selectedCharacter=T.selectedCharacter}function Di(v,T,k,D){var W=Ke(v.getCursor()),z=k?1:-1,q=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!==q&&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,q=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;q=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;q!=se;){for(var me=!1,we=0;we<re.length&&!me;++we)if(re[we](Y.charAt(q))){for(ye=q;q!=se&&re[we](Y.charAt(q));)q+=Q;if(Ce=q,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||(q+=Q)}if(z+=Q,!l(v,z))return null;Y=v.getLine(z),q=Q>0?0:Y.length}}function mr(v,T,k,D,W,z){var q=Ke(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!=q.ch||me.line!=q.line)&&(we=Y.pop()),new Ne(we.line,we.from)):D&&W?new Ne(we.line,we.to-1):!D&&W?(!Ce&&(me.to!=q.ch||me.line!=q.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,q=new Ne(z.line+k.repeat-1,1/0),Y=v.clipPos(q);return Y.ch--,W||(D.lastHPos=1/0,D.lastHSPos=v.charCoords(Y,"div").left),q}function Po(v,T,k,D,W){for(var z=W||v.getCursor(),q=z.ch,Y,Q=0;Q<T;Q++){var re=v.getLine(z.line);if(Y=Ua(q,re,D,k),Y==-1)return null;q=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,ro)&&!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(Ve){return!/\S/.test(v.getLine(Ve))}function q(Ve,ct,Ze){return Ze?z(Ve)!=z(Ve+ct):!z(Ve)&&z(Ve+ct)}function Y(Ve){D=D>0?1:-1;var ct=v.ace.session.getFoldLine(Ve);ct&&Ve+D>ct.start.row&&Ve+D<ct.end.row&&(D=(D>0?ct.end.row:ct.start.row)-Ve)}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),q(me,D)&&k--,me+=D;return new Ne(me,0)}var we=v.state.vim;if(we.visualLine&&q(Q,1,!0)){var Oe=we.sel.anchor;q(Oe.line,-1,!0)&&(!W||Oe.line!=Q)&&(Q+=1)}var Le=z(Q);for(me=Q;me<=se&&k;me++)q(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)&&q(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 q(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=q(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 Ve=Le.length-1;Ve>=0;--Ve)if(!d(Le[Ve])){we.pos=Ve;break}return we}function q(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=q(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,q,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}),q=v.scanForBracket(new Ne(W.line,W.ch+se),1,void 0,{bracketRegex:Y}),!z||!q)return null;if(z=z.pos,q=q.pos,z.line==q.line&&z.ch>q.ch||z.line>q.line){var ye=z;z=q,q=ye}return D?q.ch+=1:z.ch+=1,{start:z,end:q}}function Tr(v,T,k,D){var W=Ke(T),z=v.getLine(W.line),q=z.split(""),Y,Q,re,se,ye=q.indexOf(k);if(W.ch<ye)W.ch=ye;else if(ye<W.ch&&q[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(q[W.ch]==k&&!Q)Y=W.ch+1;else for(re=W.ch;re>-1&&!Y;re--)q[re]==k&&(Y=re+1);if(Y&&!Q)for(re=Y,se=q.length;re<se&&!Q;re++)q[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 $r(v){return Wi(v,"/")}function Zi(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 q=v.charAt(z)||"",Y=v.charAt(z+1)||"",Q=Y&&T.indexOf(Y)!=-1;D?((q!=="\\"||!Q)&&W.push(q),D=!1):q==="\\"?(D=!0,Y&&k.indexOf(Y)!=-1&&(Q=!0),(!Q||Y==="\\")&&W.push(q)):(W.push(q),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 qa(v){for(var T=new We.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=ze.registerController.getRegister("/");if(D.setText(v),v instanceof RegExp)return v;var W=Zi(v),z,q;if(!W.length)z=v;else{z=v.substring(0,W[0]);var Y=v.substring(W[0]);q=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||q?"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 Mr(v,T){if(Pr.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 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 mn(v,T,k,D){if(T){var W=Tn(v),z=Bi(T,!!k,!!D);if(z)return vi(v,z),Un(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 Ir(v,T,k,D){return D===void 0&&(D=1),v.operation(function(){for(var W=v.getCursor(),z=v.getSearchCursor(k,W),q=0;q<D;q++){var Y=z.find(T);if(q==0&&Y&&pt(z.from(),W)){var Q=T?z.from():z.to();Y=z.find(T),Y&&!Y[0]&&pt(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(),q=v.getSearchCursor(k,z),Y=q.find(!T);!W.visualMode&&Y&&pt(q.from(),z)&&q.find(!T);for(var Q=0;Q<D;Q++)if(Y=q.find(T),!Y&&(q=v.getSearchCursor(k,T?new Ne(v.lastLine()):new Ne(v.firstLine(),0)),!q.find(T)))return;return[q.from(),q.to()]})}function Fo(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 Ji(v){var T=v.ace.renderer;return{top:T.getFirstFullyVisibleRow(),bottom:T.getLastFullyVisibleRow()}}function Gr(v,T,k){if(k=="'"||k=="`")return ze.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 Ke(T[k].changes[0].to)}function Wo(v,T,k,D,W,z,q,Y,Q){function re(){v.operation(function(){for(;!Oe;)se(),Ce();me()})}function se(){var Ze=v.getRange(z.from(),z.to()),nt=Ze.replace(q,Y),yn=z.to().line;z.replace(nt),Ve=z.to().line,W+=Ve-yn,ct=Ve<yn}function ye(){var Ze=Le&&Ke(z.to()),nt=z.findNext();return nt&&!nt[0]&&Ze&&pt(z.from(),Ze)&&(nt=z.findNext()),nt}function Ce(){for(;ye()&&bs(z.from(),D,W);)if(!(!k&&z.from().line==Ve&&!ct)){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 nt=v.state.vim;nt.exMode=!1,nt.lastHPos=nt.lastHSPos=Le.ch}Q&&Q()}function we(Ze,nt,yn){We.e_stop(Ze);var ut=H(Ze);switch(ut){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,Ve,ct;if(Ce(),Oe){Ut(v,"No matches for "+q.source);return}if(!T){re(),Q&&Q();return}Mr(v,{prefix:oi("span","replace with ",oi("strong",Y)," (y/n/a/q/l)"),onKeyDown:we})}function Yr(v,T){var k=v.state.vim,D=ze.macroModeState,W=ze.registerController.getRegister("."),z=D.isPlaying,q=D.lastInsertModeChanges;z||(v.off("change",po),k.insertEnd&&k.insertEnd.clear(),k.insertEnd=null,We.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(q.changes.join("")),We.signal(v,"vim-mode-change",{mode:"normal"}),D.isRecording&&or(D)}function Bo(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 q in W)z[q]=W[q];Bo(z)}function Cs(v,T,k,D){var W=ze.registerController.getRegister(D);if(D==":"){W.keyBuffer[0]&&yr.processCommand(v,W.keyBuffer[0]),k.isPlaying=!1;return}var z=W.keyBuffer,q=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[q++].changes;ze.macroModeState.lastInsertModeChanges.changes=ye,Vo(v,ye,1),Yr(v)}k.isPlaying=!1}function zo(v,T){if(!v.isPlaying){var k=v.latestRegister,D=ze.registerController.getRegister(k);D&&D.pushText(T)}}function or(v){if(!v.isPlaying){var T=v.latestRegister,k=ze.registerController.getRegister(T);k&&k.pushInsertModeChanges&&k.pushInsertModeChanges(v.lastInsertModeChanges)}}function ks(v,T){if(!v.isPlaying){var k=v.latestRegister,D=ze.registerController.getRegister(k);D&&D.pushSearchQuery&&D.pushSearchQuery(T)}}function po(v,T){var k=ze.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 q=T.text.join(`
1404
+ `);if(D.maybeReset&&(D.changes=[],D.maybeReset=!1),q)if(v.state.overwrite&&!/\n/.test(q))D.changes.push([q]);else{if(q.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<q.length&&(D.changes.push([q,re]),q="")}}q&&D.changes.push(q)}}T=T.next}}function jo(v){var T=v.state.vim;if(T.insertMode){var k=ze.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||Ho(v,T)}function Ho(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,We.signal(v,"vim-mode-change",{mode:"visual"})),T.visualMode){var z=it(W,D)?0:-1,q=it(W,D)?-1:0;W=fe(W,0,z),D=fe(D,0,q),T.sel={anchor:D,head:W},ii(v,T,"<",gt(W,D)),ii(v,T,">",nn(W,D))}else!T.insertMode&&!k&&(T.lastHPos=v.getCursor().ch)}function eo(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=ze.macroModeState,k=T.lastInsertModeChanges,D=We.keyName?We.keyName(v):v.key;D&&(D.indexOf("Delete")!=-1||D.indexOf("Backspace")!=-1)&&(k.maybeReset&&(k.changes=[],k.maybeReset=!1),k.changes.push(new eo(D,v)))}function sa(v,T,k,D){function W(){Y?Nn.processAction(v,T,T.lastEditActionCommand):Nn.evalInput(v,T)}function z(se){if(q.lastInsertModeChanges.changes.length>0){se=T.lastEditActionCommand?se:1;var ye=q.lastInsertModeChanges;Vo(v,ye.changes,se)}}var q=ze.macroModeState;q.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&&Yr(v),q.isPlaying=!1}function Uo(v,T){We.lookupKey(T,"vim-insert",function(k){return typeof k=="string"?We.commands[k](v):k(v),!0})}function Vo(v,T,k){var D=v.getCursor("head"),W=ze.macroModeState.lastInsertModeChanges.visualBlock;W&&(Zn(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 q=0;q<T.length;q++){var Y=T[q];if(Y instanceof eo)Uo(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=Er[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 qo(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=qo(D)),T[k]=D}}),v.sel&&(T.sel={head:v.sel.head&&Ke(v.sel.head),anchor:v.sel.anchor&&Ke(v.sel.anchor)}),T}function go(v,T,k){var D=!1,W=Ct.maybeInitVimState_(v),z=W.visualBlock||W.wasInVisualBlock,q=v.ace.inMultiSelectMode;if(W.wasInVisualBlock&&!q?W.wasInVisualBlock=!1:q&&W.visualBlock&&(W.wasInVisualBlock=!0),T=="<Esc>"&&!W.insertMode&&!W.visualMode&&q)v.ace.exitMultiSelectMode();else if(z||!q||v.ace.inVirtualSelectionMode)D=Ct.handleKey(v,T,k);else{var Y=qo(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=it(ye,Ce)?0:-1,we=it(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=qo(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()&&Ho(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 sr=e("../range").Range,to=e("../lib/event_emitter").EventEmitter,zi=e("../lib/dom"),aa=e("../lib/oop"),Ka=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,no=e("../ext/hardwrap").hardWrap;e("../multi_select");var We=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)};We.Pos=function(v,T){if(!(this instanceof Ne))return new Ne(v,T);this.line=v,this.ch=T},We.defineOption=function(v,T,k){},We.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()}},We.keyMap={},We.addClass=We.rmClass=function(){},We.e_stop=We.e_preventDefault=fo.stopEvent,We.keyName=function(v){var T=Ka[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},We.keyMap.default=function(v){return function(T){var k=T.ace.commands.commandKeyBinding[v.toLowerCase()];return k&&T.ace.execCommand(k)!==!1}},We.lookupKey=function v(T,k,D){k||(k="default"),typeof k=="string"&&(k=We.keyMap[k]||We.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 q=v(T,k.fallthrough[z],D);if(q)return q}}},We.findMatchingTag=function(v,T){return v.findMatchingTag(T)},We.findEnclosingTag=function(v,T){},We.signal=function(v,T,k){return v._signal(T,k)},We.on=fo.addListener,We.off=fo.removeListener,We.isWordChar=function(v){return v<""?/^\w$/.test(v):(la.lastIndex=0,la.test(v))},(function(){aa.implement(We.prototype,to),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 q=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(),q},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 q=0;q<z.length;q++)z[q](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=sr.comparePoints(se,ye)<0?new sr.fromPoints(se,ye):new sr.fromPoints(ye,se);return Ce.cursor=sr.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 q=this.ace.session,Y=0;Y<z.length;Y++){var Q=q.$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,q=(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=sr.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:sr.comparePoints(re,z);if(ye>0){re.row+=q,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 q=this.ace.renderer,Y=q.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),q=z.layerConfig.lineHeight,Y=z.layerConfig.characterWidth,Q=q*W.row;return{left:W.column*Y,top:Q,bottom:Q+q}}},this.coordsChar=function(k,D){var W=this.ace.renderer;if(D=="local"){var z=Math.max(0,Math.floor(k.top/W.lineHeight)),q=Math.max(0,Math.floor(k.left/W.characterWidth)),Y=W.session.screenToDocumentPosition(z,q);return y(Y)}if(D=="div")throw"not implemented"},this.getSearchCursor=function(k,D,W){var z=!1,q=!1;k instanceof RegExp&&!k.global&&(z=!k.ignoreCase,k=k.source,q=!0),k=="\\n"&&(k=`
1406
+ `,q=!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:q,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,q=z.maxHeight;q-=(W.$size.scrollerHeight-W.lineHeight)*W.$scrollPastEnd,D!=null&&this.ace.session.setScrollTop(Math.max(0,Math.min(D,q))),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 sr(k.line,k.ch,D.line,D.ch))},this.replaceRange=function(k,D,W){W||(W=D);var z=new sr(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 q=z.length;q--;)this.ace.session.replace(z[q],D?k[q]||"":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(q){D.session.off("change",D.updateOnChange),D.session.off("changeEditor",D.destroy),D.session.removeMarker(D.id),D.session=null},D.updateOnChange=function(q){var Y=q.start.row;Y==q.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 sr(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 q=z.bracketRegex.source,Y=/paren|text|operator|tag/;if(D==1)var Q=this.ace.session.$findClosingBracket(q.slice(1,2),p(k),Y);else{var Q=this.ace.session.$findOpeningBracket(q.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(We.commands.hasOwnProperty(k))return We.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 q=D[z];if(q.start.row!=q.end.row){if(q.action[0]=="i")q.start.row<W&&(W+=q.end.row-q.start.row);else if(q.start.row<W){if(W<q.end.row||W==q.end.row&&q.start.column>0)return null;W-=q.end.row-q.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(We.prototype);var ca=We.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(q){return k?q.toLowerCase():q},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}}},We.defineExtension=function(v,T){We.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,71 +1436,71 @@ System.register(["vue","vue-router","single-spa","vuex","vuetify"],function(Wn,a
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,q;return q=z.appendChild(document.createElement("div")),W?q.className="ace_dialog ace_dialog-bottom":q.className="ace_dialog ace_dialog-top",typeof D=="string"?q.innerHTML=D:q.appendChild(D),q}function T(k,D){k.state.currentNotificationClose&&k.state.currentNotificationClose(),k.state.currentNotificationClose=D}We.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==q&&(Q.state.dialog=null,Q.focus()),Y=!0,q.remove(),W.onClose&&W.onClose(q);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 q=v(this,k,W.bottom),Y=!1,Q=this;this.state.dialog=q;var re=q.getElementsByTagName("input")[0],se;return re?(W.value&&(re.value=W.value,W.selectValueOnOpen!==!1&&re.select()),W.onInput&&We.on(re,"input",function(ye){W.onInput(ye,re.value,z)}),W.onKeyUp&&We.on(re,"keyup",function(ye){W.onKeyUp(ye,re.value,z)}),We.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)&&(We.e_stop(ye),z()))}),W.closeOnBlur!==!1&&We.on(re,"blur",z),re.focus()):(se=q.getElementsByTagName("button")[0])&&(We.on(se,"click",function(){z(),Q.focus()}),W.closeOnBlur!==!1&&We.on(se,"blur",z),se.focus()),z}}),We.defineExtension("openNotification",function(k,D){function W(){q||(q=!0,clearTimeout(Y),z.remove())}if(!this.virtualSelectionMode()){T(this,W);var z=v(this,k,D&&D.bottom),q=!1,Y,Q=D&&typeof D.duration<"u"?D.duration:5e3;return We.on(z,"click",function(re){We.e_preventDefault(re),W()}),Q&&(Y=setTimeout(W,Q)),W}})}();var Ne=We.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"}],Vn=O(""),ua=/[\d]/,wo=[We.isWordChar,function(v){return v&&!We.isWordChar(v)&&!/\s/.test(v)}],bi=[function(v){return/\S/.test(v)}],ro=["<",">"],nn=["-",'"',".",":","_","/","+"],Zt=/^\w$/,rn;try{rn=new RegExp("^[\\p{Lu}]$","u")}catch{rn=/^[A-Z]$/}var Vt={};I("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)}}),I("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,Ve=Y[Le];Ve&&Ve.clear(),Y[Le]=Q.setBookmark(Oe)}var Ce=W%D,me=Y[Ce];if(me){var we=me.find();we&&!pt(we,re)&&ye(re)}else ye(re);ye(se),z=W,q=W-D+1,q<0&&(q=0)}function T(Q,re){W+=re,W>z?W=z:W<q&&(W=q);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())&&!pt(me,Ce))break;while(W<z&&W>q)}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,q=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=ze.macroModeState;v.onRecordingDone&&v.onRecordingDone(),v.onRecordingDone=void 0,v.isRecording=!1},enterMacroRecordMode:function(v,T){var k=ze.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 ze,vn,Ct={enterVimMode:h,leaveVimMode:g,buildKeyMap:function(){},getRegisterController:function(){return ze.registerController},resetVimGlobalState_:L,getVimGlobalState_:function(){return ze},maybeInitVimState_:R,suppressErrorLogging:!1,InsertModeKey:eo,map:function(v,T,k){yr.map(v,T,k)},unmap:function(v,T){return yr.unmap(v,T)},noremap:function(v,T,k){yr.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 q=["normal","insert","visual"];for(var Y in q)if(q[Y]!==v){var Q={};for(var re in z)Q[re]=z[re];Q.context=q[Y],this._mapCommand(Q)}}}},langmap:F,vimKeyFromEvent:H,setOption:$,getOption:S,defineOption:I,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,yr.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=ze.macroModeState;if(re.isRecording){if(T=="q")return re.exitMacroRecordMode(),A(v),!0;k!="mapping"&&zo(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=gt(me[we].anchor,me[we].head),Le=tn(me[we].anchor,me[we].head),Ve=v.getRange(Oe,v.state.overwrite?fe(Le,0,1):Le);Ce.removed[we]=(Ce.removed[we]||"")+Ve}}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 ct=me[we].head;v.replaceRange(Ce.removed[we]||"",fe(ct,0,-Ce.inserted.length),ct,"+input")}ze.macroModeState.lastInsertModeChanges.changes.pop()}return ye.command||A(v),ye.command}function q(){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=q(),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"?E(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){yr.processCommand(v,T)},defineMotion:te,defineAction:ae,defineOperator:ne,mapCommand:xs,_mapCommand:Bo,defineRegister:U,exitVisualMode:St,exitInsertMode:Gr},Dr=[],un=!1,bn,Zn={Return:"CR",Backspace:"BS",Delete:"Del",Escape:"Esc",Insert:"Ins",ArrowLeft:"Left",ArrowRight:"Right",ArrowUp:"Up",ArrowDown:"Down",Enter:"CR"," ":"Space"},Pr={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}),I("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(`
1439
+ }`,"vimMode",!1),function(){function v(k,D,W){var z=k.ace.container,q;return q=z.appendChild(document.createElement("div")),W?q.className="ace_dialog ace_dialog-bottom":q.className="ace_dialog ace_dialog-top",typeof D=="string"?q.innerHTML=D:q.appendChild(D),q}function T(k,D){k.state.currentNotificationClose&&k.state.currentNotificationClose(),k.state.currentNotificationClose=D}We.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==q&&(Q.state.dialog=null,Q.focus()),Y=!0,q.remove(),W.onClose&&W.onClose(q);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 q=v(this,k,W.bottom),Y=!1,Q=this;this.state.dialog=q;var re=q.getElementsByTagName("input")[0],se;return re?(W.value&&(re.value=W.value,W.selectValueOnOpen!==!1&&re.select()),W.onInput&&We.on(re,"input",function(ye){W.onInput(ye,re.value,z)}),W.onKeyUp&&We.on(re,"keyup",function(ye){W.onKeyUp(ye,re.value,z)}),We.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)&&(We.e_stop(ye),z()))}),W.closeOnBlur!==!1&&We.on(re,"blur",z),re.focus()):(se=q.getElementsByTagName("button")[0])&&(We.on(se,"click",function(){z(),Q.focus()}),W.closeOnBlur!==!1&&We.on(se,"blur",z),se.focus()),z}}),We.defineExtension("openNotification",function(k,D){function W(){q||(q=!0,clearTimeout(Y),z.remove())}if(!this.virtualSelectionMode()){T(this,W);var z=v(this,k,D&&D.bottom),q=!1,Y,Q=D&&typeof D.duration<"u"?D.duration:5e3;return We.on(z,"click",function(re){We.e_preventDefault(re),W()}),Q&&(Y=setTimeout(W,Q)),W}})}();var Ne=We.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"}],Vn=O(""),ua=/[\d]/,wo=[We.isWordChar,function(v){return v&&!We.isWordChar(v)&&!/\s/.test(v)}],bi=[function(v){return/\S/.test(v)}],ro=["<",">"],rn=["-",'"',".",":","_","/","+"],Zt=/^\w$/,on;try{on=new RegExp("^[\\p{Lu}]$","u")}catch{on=/^[A-Z]$/}var Vt={};I("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)}}),I("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,Ve=Y[Le];Ve&&Ve.clear(),Y[Le]=Q.setBookmark(Oe)}var Ce=W%D,me=Y[Ce];if(me){var we=me.find();we&&!pt(we,re)&&ye(re)}else ye(re);ye(se),z=W,q=W-D+1,q<0&&(q=0)}function T(Q,re){W+=re,W>z?W=z:W<q&&(W=q);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())&&!pt(me,Ce))break;while(W<z&&W>q)}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,q=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=ze.macroModeState;v.onRecordingDone&&v.onRecordingDone(),v.onRecordingDone=void 0,v.isRecording=!1},enterMacroRecordMode:function(v,T){var k=ze.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 ze,vn,Ct={enterVimMode:h,leaveVimMode:g,buildKeyMap:function(){},getRegisterController:function(){return ze.registerController},resetVimGlobalState_:L,getVimGlobalState_:function(){return ze},maybeInitVimState_:R,suppressErrorLogging:!1,InsertModeKey:eo,map:function(v,T,k){yr.map(v,T,k)},unmap:function(v,T){return yr.unmap(v,T)},noremap:function(v,T,k){yr.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 q=["normal","insert","visual"];for(var Y in q)if(q[Y]!==v){var Q={};for(var re in z)Q[re]=z[re];Q.context=q[Y],this._mapCommand(Q)}}}},langmap:F,vimKeyFromEvent:H,setOption:$,getOption:S,defineOption:I,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,yr.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=ze.macroModeState;if(re.isRecording){if(T=="q")return re.exitMacroRecordMode(),A(v),!0;k!="mapping"&&zo(re,T)}}function W(){if(T=="<Esc>"){if(Y.visualMode)St(v);else{if(!Y.insertMode)return;Yr(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=gt(me[we].anchor,me[we].head),Le=nn(me[we].anchor,me[we].head),Ve=v.getRange(Oe,v.state.overwrite?fe(Le,0,1):Le);Ce.removed[we]=(Ce.removed[we]||"")+Ve}}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 ct=me[we].head;v.replaceRange(Ce.removed[we]||"",fe(ct,0,-Ce.inserted.length),ct,"+input")}ze.macroModeState.lastInsertModeChanges.changes.pop()}return ye.command||A(v),ye.command}function q(){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=q(),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"?E(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){yr.processCommand(v,T)},defineMotion:te,defineAction:ae,defineOperator:ne,mapCommand:xs,_mapCommand:Bo,defineRegister:U,exitVisualMode:St,exitInsertMode:Yr},Pr=[],un=!1,bn,Jn={Return:"CR",Backspace:"BS",Delete:"Del",Escape:"Esc",Insert:"Ins",ArrowLeft:"Left",ArrowRight:"Right",ArrowUp:"Up",ArrowDown:"Down",Enter:"CR"," ":"Space"},Fr={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(Jn)).forEach(function(v){Ci[(Jn[v]||"").toLowerCase()]=Ci[v.toLowerCase()]=v}),I("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
1440
  `),this.linewise=!0),this.keyBuffer.push(v)},pushInsertModeChanges:function(v){this.insertModeChanges.push(On(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("")}},K.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 q=c(v);q?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],q=0;q<=z.length;q++)if(this.initialPrefix==z.substring(0,q))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,q=0;q<W.full.length;q++){var Y=W.full[q];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,q=ce(k.actionArgs)||{};D.selectedCharacter&&(q.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),q.repeat=W||1,q.repeatIsExplicit=z,q.registerName=D.registerName,A(v),T.lastMotion=null,k.isEdit&&this.recordLastEdit(T,D,k),Dn[k.action](v,q,T)},processSearch:function(v,T,k){function D(Le,Ve,ct){ze.searchHistoryController.pushInput(Le),ze.searchHistoryController.reset();try{mn(v,Le,Ve,ct)}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 Ve=ze.macroModeState;Ve.isRecording&&ks(Ve,Le)}function z(Le,Ve,ct){var Ze=H(Le),nt,yn;Ze=="<Up>"||Ze=="<Down>"?(nt=Ze=="<Up>",yn=Le.target?Le.target.selectionEnd:0,Ve=ze.searchHistoryController.nextMatch(Ve,nt)||"",ct(Ve),yn&&Le.target&&(Le.target.selectionEnd=Le.target.selectionStart=Math.min(yn,Le.target.value.length))):Ze&&Ze!="<Left>"&&Ze!="<Right>"&&ze.searchHistoryController.reset();var ut;try{ut=mn(v,Ve,!0,!0)}catch{}ut?v.scrollIntoView(Mr(v,!Y,ut),30):(Fo(v),v.scrollTo(ye.left,ye.top))}function q(Le,Ve,ct){var Ze=H(Le);Ze=="<Esc>"||Ze=="<C-c>"||Ze=="<C-[>"||Ze=="<BS>"&&Ve==""?(ze.searchHistoryController.pushInput(Ve),ze.searchHistoryController.reset(),mn(v,se),Fo(v),v.scrollTo(ye.left,ye.top),We.e_stop(Le),A(v),ct(),v.focus()):Ze=="<Up>"||Ze=="<Down>"?We.e_stop(Le):Ze=="<C-u>"&&(We.e_stop(Le),ct(""))}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=ze.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:q});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),ze.jumpList.cachedCursor=v.getCursor(),v.setCursor(me.start),D(Oe,!0,!1)}}},processEx:function(v,T,k){function D(z){ze.exCommandHistoryController.pushInput(z),ze.exCommandHistoryController.reset(),yr.processCommand(v,z),v.state.vim&&A(v)}function W(z,q,Y){var Q=H(z),re,se;(Q=="<Esc>"||Q=="<C-c>"||Q=="<C-[>"||Q=="<BS>"&&q=="")&&(ze.exCommandHistoryController.pushInput(q),ze.exCommandHistoryController.reset(),We.e_stop(z),A(v),Y(),v.focus()),Q=="<Up>"||Q=="<Down>"?(We.e_stop(z),re=Q=="<Up>",se=z.target?z.target.selectionEnd:0,q=ze.exCommandHistoryController.nextMatch(q,re)||"",Y(q),se&&z.target&&(z.target.selectionEnd=z.target.selectionStart=Math.min(se,z.target.value.length))):Q=="<C-u>"?(We.e_stop(z),Y("")):Q&&Q!="<Left>"&&Q!="<Right>"&&ze.exCommandHistoryController.reset()}k.type=="keyToEx"?yr.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,q=k.operatorArgs||{},Y=k.registerName,Q=T.sel,re=Ke(T.visualMode?ue(v,Q.head):v.getCursor("head")),se=Ke(T.visualMode?ue(v,Q.anchor):v.getCursor("anchor")),ye=Ke(re),Ce=Ke(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=q.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 Ve=ze.jumpList,ct=Ve.cachedCursor;ct?(Ar(v,ct,Le),delete Ve.cachedCursor):Ar(v,re,Le)}Le instanceof Array?(we=Le[0],me=Le[1]):me=Le,me||(me=Ke(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,"<",it(we,me)?we:me),ii(v,T,">",it(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(q.lastSel){we=Ce;var Ze=q.lastSel,nt=Math.abs(Ze.head.line-Ze.anchor.line),yn=Math.abs(Ze.head.ch-Ze.anchor.ch);Ze.visualLine?me=new Ne(Ce.line+nt,Ce.ch):Ze.visualBlock?me=new Ne(Ce.line+nt,Ce.ch+yn):Ze.head.line==Ze.anchor.line?me=new Ne(Ce.line,Ce.ch+yn):me=new Ne(Ce.line+nt,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&&(q.lastSel={anchor:Ke(Q.anchor),head:Ke(Q.head),visualBlock:T.visualBlock,visualLine:T.visualLine});var ut,kn,_t,Rt,Jn;if(T.visualMode){ut=gt(Q.head,Q.anchor),kn=tn(Q.head,Q.anchor),_t=T.visualLine||q.linewise,Rt=T.visualBlock?"block":_t?"line":"char";var ur=b(v,ut,kn);if(Jn=ft(v,{anchor:ur.start,head:ur.end},Rt),_t){var Sn=Jn.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(ut=Ke(we||Ce),kn=Ke(me||ye),it(kn,ut)){var X=ut;ut=kn,kn=X}_t=W.linewise||q.linewise,_t?Ot(v,ut,kn):W.forward&&Dt(v,ut,kn),Rt="char";var ie=!W.inclusive||_t,ur=b(v,ut,kn);Jn=ft(v,{anchor:ur.start,head:ur.end},Rt,ie)}v.setSelections(Jn.ranges,Jn.primary),T.lastMotion=null,q.repeat=Oe,q.registerName=Y,q.linewise=_t;var oe=Go[z](v,q,Jn.ranges,Ce,me);T.visualMode&&St(v,oe!=null),oe&&v.setCursor(oe)}},recordLastEdit:function(v,T,k){var D=ze.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=Ji(v).top+k.repeat-1;return new Ne(D,dt(v.getLine(D)))},moveToMiddleLine:function(v){var T=Ji(v),k=Math.floor((T.top+T.bottom)*.5);return new Ne(k,dt(v.getLine(k)))},moveToBottomLine:function(v,T,k){var D=Ji(v).bottom-k.repeat+1;return new Ne(D,dt(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),Mr(v,z,W,k.repeat)}},findAndSelectNextInclusive:function(v,T,k,D,W){var z=Tn(v),q=z.getQuery();if(q){var Y=!k.forward;Y=z.isReversed()?!Y:Y;var Q=yi(v,Y,q,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,We.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,We.signal(v,"vim-mode-change",{mode:"visual",subMode:""});return Y?[se,re]:[re,se]}}},goToMark:function(v,T,k,D){var W=Kr(v,D,k.selectedCharacter);return W?k.linewise?{line:W.line,ch:dt(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 q=W;for(var Y in D.marks)if(u(Y)){var Q=D.marks[Y].find(),re=k.forward?it(Q,q):it(q,Q);if(!re&&!(k.linewise&&Q.line==q.line)){var se=pt(q,W),ye=k.forward?gn(q,Q,W):gn(W,Q,q);(se||ye)&&(W=Q)}}}return k.linewise&&(W=new Ne(W.line,dt(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 q=k.repeat+(k.repeatOffset||0),Y=k.forward?W.line+q:W.line-q,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=dt(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 q=v.charCoords(Q,"div"),Y={top:q.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,q=k.repeat;q||(q=W.clientHeight/(2*v.defaultTextHeight()));var Y=v.charCoords(T,"local");if(k.repeat=q,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 mr(v,T,k.repeat,!!k.forward,!!k.wordEnd,!!k.bigWord)},moveTillCharacter:function(v,T,k){var D=k.repeat,W=Po(v,D,k.forward,k.selectedCharacter,T),z=k.forward?-1:1;return qr(z,k),W?(W.ch+=z,W):null},moveToCharacter:function(v,T,k){var D=k.repeat;return qr(0,k),Po(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,dt(v.getLine(k.line)))},moveToMatchedSymbol:function(v,T){for(var k=T,D=k.line,W=k.ch,z=v.getLine(D),q;W<z.length;W++)if(q=z.charAt(W),q&&a(q)){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,dt(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},q=k.selectedCharacter;q=="b"?q="(":q=="B"&&(q="{");var Y=!k.textObjectInner,Q,re;if(W[q]){if(re=!0,Q=Hn(v,T,q,Y),!Q){var se=v.getSearchCursor(new RegExp("\\"+q,"g"),T);se.find()&&(Q=Hn(v,se.from(),q,Y))}}else if(z[q])re=!0,Q=_r(v,T,q,Y);else if(q==="W"||q==="w")for(var ye=k.repeat||1;ye-- >0;){var Ce=xt(v,{inclusive:Y,innerWord:!Y,bigWord:q==="W",noSymbol:q==="W",multiline:!0},Q&&Q.end);Ce&&(Q||(Q=Ce),Q.end=Ce.end)}else if(q==="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(q==="t")Q=Cn(v,T,Y);else if(q==="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?je(v,Q.start,Q.end,re):[Q.start,Q.end]:null},repeatLastCharacterSearch:function(v,T,k){var D=ze.lastCharacterSearch,W=k.repeat,z=k.forward===D.forward,q=(D.increment?1:0)*(z?-1:1);v.moveH(-q,"char"),k.inclusive=!!z;var Y=Po(v,W,z,D.selectedCharacter);return Y?(Y.ch+=q,Y):(v.moveH(q,"char"),T)}},Go={change:function(v,T,k){var D,W,z=v.state.vim,q=k[0].anchor,Y=k[0].head;if(z.visualMode)if(T.fullLine)Y.ch=Number.MAX_VALUE,Y.line--,v.setSelection(q,Y),W=v.getSelection(),v.replaceSelection(""),D=q;else{W=v.getSelection();var Q=he("",k.length);v.replaceSelections(Q),D=gt(k[0].head,k[0].anchor)}else{W=v.getRange(q,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&&(q=new Ne(q.line,dt(v.getLine(q.line))),Y.line>q.line&&(Y=new Ne(Y.line-1,Number.MAX_VALUE))),v.replaceRange("",q,Y),D=q}ze.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 q=he("",k.length);v.replaceSelections(q),D=gt(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 ze.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"),q=v.getOption("indentWithTabs")?" ":" ".repeat(z),Y,Q=k.length-1;Q>=0;Q--)if(Y=gt(k[Q].anchor,k[Q].head),T.indentRight)v.replaceRange(q.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<q.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,q=k[0].head.line;T.linewise&&q--;var Y=v.hardWrap({from:z,to:q});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(),q=[],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()}q.push(se)}return v.replaceSelections(q),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:gt(k[0].anchor,k[0].head)},yank:function(v,T,k,D){var W=v.state.vim,z=v.getSelection(),q=W.visualMode?gt(W.sel.anchor,W.sel.head,k[0].head,k[0].anchor):D;return ze.registerController.pushText(T.registerName,"yank",z,T.linewise,W.visualBlock),q}},Dn={jumpListWalk:function(v,T,k){if(!k.visualMode){var D=T.repeat,W=T.forward,z=ze.jumpList,q=z.move(v,W?D:-D),Y=q?q.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,q=W*D,Y=T.forward?z+q:z-q,Q=Ke(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 q=new Ne(k,v.getLine(k).length-1),Y=v.charCoords(q,"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=ze.macroModeState;for(D=="@"?D=z.latestRegister:z.latestRegister=D;W--;)Cs(v,k,z,D)},enterMacroRecordMode:function(v,T){var k=ze.macroModeState,D=T.selectedCharacter;ze.registerController.isValidRegister(D)&&k.enterMacroRecordMode(v,D)},toggleOverwrite:function(v){v.state.overwrite?(v.toggleOverwrite(!1),v.setOption("keyMap","vim-insert"),We.signal(v,"vim-mode-change",{mode:"insert"})):(v.toggleOverwrite(!0),v.setOption("keyMap","vim-replace"),We.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"),q=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)),q=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),q=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"),We.signal(v,"vim-mode-change",{mode:"replace"})):(v.toggleOverwrite(!1),v.setOption("keyMap","vim-insert"),We.signal(v,"vim-mode-change",{mode:"insert"})),ze.macroModeState.isPlaying||(v.on("change",po),k.insertEnd&&k.insertEnd.clear(),k.insertEnd=v.setBookmark(z,{insertLeft:!0}),We.on(v.getInputField(),"keydown",Ss)),k.visualMode&&St(v),Qn(v,z,q)}},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,We.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 q=b(v,W,z);k.sel={anchor:q.start,head:q.end},We.signal(v,"vim-mode-change",{mode:"visual",subMode:k.visualLine?"linewise":k.visualBlock?"blockwise":""}),Xe(v),ii(v,k,"<",gt(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,"<",gt(W,z)),ii(v,k,">",tn(W,z)),We.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"),it(W,D)){var z=W;W=D,D=z}W.ch=Yt(v,W.line)-1}else{var q=Math.max(T.repeat,2);D=v.getCursor(),W=ue(v,new Ne(D.line+q-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=Ke(v.getCursor());if(D.line===v.firstLine()&&!T.after)v.replaceRange(`
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 q=c(v);q?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,rn)||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],q=0;q<=z.length;q++)if(this.initialPrefix==z.substring(0,q))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,q=0;q<W.full.length;q++){var Y=W.full[q];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,q=ce(k.actionArgs)||{};D.selectedCharacter&&(q.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),q.repeat=W||1,q.repeatIsExplicit=z,q.registerName=D.registerName,A(v),T.lastMotion=null,k.isEdit&&this.recordLastEdit(T,D,k),Dn[k.action](v,q,T)},processSearch:function(v,T,k){function D(Le,Ve,ct){ze.searchHistoryController.pushInput(Le),ze.searchHistoryController.reset();try{mn(v,Le,Ve,ct)}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 Ve=ze.macroModeState;Ve.isRecording&&ks(Ve,Le)}function z(Le,Ve,ct){var Ze=H(Le),nt,yn;Ze=="<Up>"||Ze=="<Down>"?(nt=Ze=="<Up>",yn=Le.target?Le.target.selectionEnd:0,Ve=ze.searchHistoryController.nextMatch(Ve,nt)||"",ct(Ve),yn&&Le.target&&(Le.target.selectionEnd=Le.target.selectionStart=Math.min(yn,Le.target.value.length))):Ze&&Ze!="<Left>"&&Ze!="<Right>"&&ze.searchHistoryController.reset();var ut;try{ut=mn(v,Ve,!0,!0)}catch{}ut?v.scrollIntoView(Ir(v,!Y,ut),30):(Fo(v),v.scrollTo(ye.left,ye.top))}function q(Le,Ve,ct){var Ze=H(Le);Ze=="<Esc>"||Ze=="<C-c>"||Ze=="<C-[>"||Ze=="<BS>"&&Ve==""?(ze.searchHistoryController.pushInput(Ve),ze.searchHistoryController.reset(),mn(v,se),Fo(v),v.scrollTo(ye.left,ye.top),We.e_stop(Le),A(v),ct(),v.focus()):Ze=="<Up>"||Ze=="<Down>"?We.e_stop(Le):Ze=="<C-u>"&&(We.e_stop(Le),ct(""))}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=ze.macroModeState;if(Ce.isPlaying){var Oe=Ce.replaySearchQueries.shift();D(Oe,!0,!1)}else Mr(v,{onClose:W,prefix:re,desc:"(JavaScript regexp)",onKeyUp:z,onKeyDown:q});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),ze.jumpList.cachedCursor=v.getCursor(),v.setCursor(me.start),D(Oe,!0,!1)}}},processEx:function(v,T,k){function D(z){ze.exCommandHistoryController.pushInput(z),ze.exCommandHistoryController.reset(),yr.processCommand(v,z),v.state.vim&&A(v)}function W(z,q,Y){var Q=H(z),re,se;(Q=="<Esc>"||Q=="<C-c>"||Q=="<C-[>"||Q=="<BS>"&&q=="")&&(ze.exCommandHistoryController.pushInput(q),ze.exCommandHistoryController.reset(),We.e_stop(z),A(v),Y(),v.focus()),Q=="<Up>"||Q=="<Down>"?(We.e_stop(z),re=Q=="<Up>",se=z.target?z.target.selectionEnd:0,q=ze.exCommandHistoryController.nextMatch(q,re)||"",Y(q),se&&z.target&&(z.target.selectionEnd=z.target.selectionStart=Math.min(se,z.target.value.length))):Q=="<C-u>"?(We.e_stop(z),Y("")):Q&&Q!="<Left>"&&Q!="<Right>"&&ze.exCommandHistoryController.reset()}k.type=="keyToEx"?yr.processCommand(v,k.exArgs.input):T.visualMode?Mr(v,{onClose:D,prefix:":",value:"'<,'>",onKeyDown:W,selectValueOnOpen:!1}):Mr(v,{onClose:D,prefix:":",onKeyDown:W})},evalInput:function(v,T){var k=T.inputState,D=k.motion,W=k.motionArgs||{},z=k.operator,q=k.operatorArgs||{},Y=k.registerName,Q=T.sel,re=Ke(T.visualMode?ue(v,Q.head):v.getCursor("head")),se=Ke(T.visualMode?ue(v,Q.anchor):v.getCursor("anchor")),ye=Ke(re),Ce=Ke(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=q.selectedCharacter=k.selectedCharacter),W.repeat=Oe,A(v),D){var Le=Xr[D](v,re,W,T,k);if(T.lastMotion=Xr[D],!Le)return;if(W.toJumplist){!z&&v.ace.curOp!=null&&(v.ace.curOp.command.scrollIntoView="center-animate");var Ve=ze.jumpList,ct=Ve.cachedCursor;ct?(_r(v,ct,Le),delete Ve.cachedCursor):_r(v,re,Le)}Le instanceof Array?(we=Le[0],me=Le[1]):me=Le,me||(me=Ke(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,"<",it(we,me)?we:me),ii(v,T,">",it(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(q.lastSel){we=Ce;var Ze=q.lastSel,nt=Math.abs(Ze.head.line-Ze.anchor.line),yn=Math.abs(Ze.head.ch-Ze.anchor.ch);Ze.visualLine?me=new Ne(Ce.line+nt,Ce.ch):Ze.visualBlock?me=new Ne(Ce.line+nt,Ce.ch+yn):Ze.head.line==Ze.anchor.line?me=new Ne(Ce.line,Ce.ch+yn):me=new Ne(Ce.line+nt,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&&(q.lastSel={anchor:Ke(Q.anchor),head:Ke(Q.head),visualBlock:T.visualBlock,visualLine:T.visualLine});var ut,kn,_t,Rt,er;if(T.visualMode){ut=gt(Q.head,Q.anchor),kn=nn(Q.head,Q.anchor),_t=T.visualLine||q.linewise,Rt=T.visualBlock?"block":_t?"line":"char";var ur=b(v,ut,kn);if(er=ft(v,{anchor:ur.start,head:ur.end},Rt),_t){var Sn=er.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(ut=Ke(we||Ce),kn=Ke(me||ye),it(kn,ut)){var X=ut;ut=kn,kn=X}_t=W.linewise||q.linewise,_t?Ot(v,ut,kn):W.forward&&Dt(v,ut,kn),Rt="char";var ie=!W.inclusive||_t,ur=b(v,ut,kn);er=ft(v,{anchor:ur.start,head:ur.end},Rt,ie)}v.setSelections(er.ranges,er.primary),T.lastMotion=null,q.repeat=Oe,q.registerName=Y,q.linewise=_t;var oe=Go[z](v,q,er.ranges,Ce,me);T.visualMode&&St(v,oe!=null),oe&&v.setCursor(oe)}},recordLastEdit:function(v,T,k){var D=ze.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)}},Xr={moveToTopLine:function(v,T,k){var D=Ji(v).top+k.repeat-1;return new Ne(D,dt(v.getLine(D)))},moveToMiddleLine:function(v){var T=Ji(v),k=Math.floor((T.top+T.bottom)*.5);return new Ne(k,dt(v.getLine(k)))},moveToBottomLine:function(v,T,k){var D=Ji(v).bottom-k.repeat+1;return new Ne(D,dt(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),Ir(v,z,W,k.repeat)}},findAndSelectNextInclusive:function(v,T,k,D,W){var z=Tn(v),q=z.getQuery();if(q){var Y=!k.forward;Y=z.isReversed()?!Y:Y;var Q=yi(v,Y,q,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,We.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,We.signal(v,"vim-mode-change",{mode:"visual",subMode:""});return Y?[se,re]:[re,se]}}},goToMark:function(v,T,k,D){var W=Gr(v,D,k.selectedCharacter);return W?k.linewise?{line:W.line,ch:dt(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 q=W;for(var Y in D.marks)if(u(Y)){var Q=D.marks[Y].find(),re=k.forward?it(Q,q):it(q,Q);if(!re&&!(k.linewise&&Q.line==q.line)){var se=pt(q,W),ye=k.forward?gn(q,Q,W):gn(W,Q,q);(se||ye)&&(W=Q)}}}return k.linewise&&(W=new Ne(W.line,dt(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 q=k.repeat+(k.repeatOffset||0),Y=k.forward?W.line+q:W.line-q,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=dt(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 q=v.charCoords(Q,"div"),Y={top:q.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,q=k.repeat;q||(q=W.clientHeight/(2*v.defaultTextHeight()));var Y=v.charCoords(T,"local");if(k.repeat=q,z=Xr.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 mr(v,T,k.repeat,!!k.forward,!!k.wordEnd,!!k.bigWord)},moveTillCharacter:function(v,T,k){var D=k.repeat,W=Po(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),Po(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,dt(v.getLine(k.line)))},moveToMatchedSymbol:function(v,T){for(var k=T,D=k.line,W=k.ch,z=v.getLine(D),q;W<z.length;W++)if(q=z.charAt(W),q&&a(q)){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,dt(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},q=k.selectedCharacter;q=="b"?q="(":q=="B"&&(q="{");var Y=!k.textObjectInner,Q,re;if(W[q]){if(re=!0,Q=Hn(v,T,q,Y),!Q){var se=v.getSearchCursor(new RegExp("\\"+q,"g"),T);se.find()&&(Q=Hn(v,se.from(),q,Y))}}else if(z[q])re=!0,Q=Tr(v,T,q,Y);else if(q==="W"||q==="w")for(var ye=k.repeat||1;ye-- >0;){var Ce=xt(v,{inclusive:Y,innerWord:!Y,bigWord:q==="W",noSymbol:q==="W",multiline:!0},Q&&Q.end);Ce&&(Q||(Q=Ce),Q.end=Ce.end)}else if(q==="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(q==="t")Q=Cn(v,T,Y);else if(q==="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?je(v,Q.start,Q.end,re):[Q.start,Q.end]:null},repeatLastCharacterSearch:function(v,T,k){var D=ze.lastCharacterSearch,W=k.repeat,z=k.forward===D.forward,q=(D.increment?1:0)*(z?-1:1);v.moveH(-q,"char"),k.inclusive=!!z;var Y=Po(v,W,z,D.selectedCharacter);return Y?(Y.ch+=q,Y):(v.moveH(q,"char"),T)}},Go={change:function(v,T,k){var D,W,z=v.state.vim,q=k[0].anchor,Y=k[0].head;if(z.visualMode)if(T.fullLine)Y.ch=Number.MAX_VALUE,Y.line--,v.setSelection(q,Y),W=v.getSelection(),v.replaceSelection(""),D=q;else{W=v.getSelection();var Q=he("",k.length);v.replaceSelections(Q),D=gt(k[0].head,k[0].anchor)}else{W=v.getRange(q,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&&(q=new Ne(q.line,dt(v.getLine(q.line))),Y.line>q.line&&(Y=new Ne(Y.line-1,Number.MAX_VALUE))),v.replaceRange("",q,Y),D=q}ze.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 q=he("",k.length);v.replaceSelections(q),D=gt(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=Xr.moveToFirstNonWhiteSpaceCharacter(v,Y))}return ze.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"),q=v.getOption("indentWithTabs")?" ":" ".repeat(z),Y,Q=k.length-1;Q>=0;Q--)if(Y=gt(k[Q].anchor,k[Q].head),T.indentRight)v.replaceRange(q.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<q.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 Xr.moveToFirstNonWhiteSpaceCharacter(v,k[0].anchor)},indentAuto:function(v,T,k){return v.execCommand("indentAuto"),Xr.moveToFirstNonWhiteSpaceCharacter(v,k[0].anchor)},hardWrap:function(v,T,k,D,W){if(v.hardWrap){var z=k[0].anchor.line,q=k[0].head.line;T.linewise&&q--;var Y=v.hardWrap({from:z,to:q});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(),q=[],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()}q.push(se)}return v.replaceSelections(q),T.shouldMoveCursor?W:!v.state.vim.visualMode&&T.linewise&&k[0].anchor.line+1==k[0].head.line?Xr.moveToFirstNonWhiteSpaceCharacter(v,D):T.linewise?D:gt(k[0].anchor,k[0].head)},yank:function(v,T,k,D){var W=v.state.vim,z=v.getSelection(),q=W.visualMode?gt(W.sel.anchor,W.sel.head,k[0].head,k[0].anchor):D;return ze.registerController.pushText(T.registerName,"yank",z,T.linewise,W.visualBlock),q}},Dn={jumpListWalk:function(v,T,k){if(!k.visualMode){var D=T.repeat,W=T.forward,z=ze.jumpList,q=z.move(v,W?D:-D),Y=q?q.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,q=W*D,Y=T.forward?z+q:z-q,Q=Ke(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 q=new Ne(k,v.getLine(k).length-1),Y=v.charCoords(q,"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=ze.macroModeState;for(D=="@"?D=z.latestRegister:z.latestRegister=D;W--;)Cs(v,k,z,D)},enterMacroRecordMode:function(v,T){var k=ze.macroModeState,D=T.selectedCharacter;ze.registerController.isValidRegister(D)&&k.enterMacroRecordMode(v,D)},toggleOverwrite:function(v){v.state.overwrite?(v.toggleOverwrite(!1),v.setOption("keyMap","vim-insert"),We.signal(v,"vim-mode-change",{mode:"insert"})):(v.toggleOverwrite(!0),v.setOption("keyMap","vim-replace"),We.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"),q=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,Xr.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)),q=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),q=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"),We.signal(v,"vim-mode-change",{mode:"replace"})):(v.toggleOverwrite(!1),v.setOption("keyMap","vim-insert"),We.signal(v,"vim-mode-change",{mode:"insert"})),ze.macroModeState.isPlaying||(v.on("change",po),k.insertEnd&&k.insertEnd.clear(),k.insertEnd=v.setBookmark(z,{insertLeft:!0}),We.on(v.getInputField(),"keydown",Ss)),k.visualMode&&St(v),Zn(v,z,q)}},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,We.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 q=b(v,W,z);k.sel={anchor:q.start,head:q.end},We.signal(v,"vim-mode-change",{mode:"visual",subMode:k.visualLine?"linewise":k.visualBlock?"blockwise":""}),Xe(v),ii(v,k,"<",gt(W,z)),ii(v,k,">",nn(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,"<",gt(W,z)),ii(v,k,">",nn(W,z)),We.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"),it(W,D)){var z=W;W=D,D=z}W.ch=Yt(v,W.line)-1}else{var q=Math.max(T.repeat,2);D=v.getCursor(),W=ue(v,new Ne(D.line+q-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=Ke(v.getCursor());if(D.line===v.firstLine()&&!T.after)v.replaceRange(`
1444
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=We.commands.newlineAndIndentContinueComment||We.commands.newlineAndIndent;W(v)}this.enterInsertMode(v,{repeat:T.repeat},k)},paste:function(v,T,k){var D=this,W=ze.registerController.getRegister(T.registerName),z=function(){var q=W.toString();D.continuePaste(v,T,k,q,W)};T.registerName==="+"&&typeof navigator<"u"&&typeof navigator.clipboard<"u"&&typeof navigator.clipboard.readText=="function"?navigator.clipboard.readText().then(function(q){D.continuePaste(v,T,k,q,W)},function(){z()}):z()},continuePaste:function(v,T,k,D,W){var z=Ke(v.getCursor());if(D){if(T.matchIndent){var q=v.getOption("tabSize"),Y=function(Sn){var V=Sn.split(" ").length-1,X=Sn.split(" ").length-1;return V*q+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(Sn){var V=re+(Y(Sn)-Ce);if(V<0)return"";if(v.getOption("indentWithTabs")){var X=Math.floor(V/q);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
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 Ve,ct=Ue(v,k),Ze=ct[0],nt=ct[1],yn=v.getSelection(),ut=v.listSelections(),kn=new Array(ut.length).join("1").split("1");k.lastSelection&&(Ve=k.lastSelection.headMark.find()),ze.registerController.unnamedRegister.setText(yn),we?(v.replaceSelections(kn),nt=new Ne(Ze.line+D.length-1,Ze.ch),v.setCursor(Ze),Rn(v,nt),v.replaceSelections(D),Le=Ze):k.visualBlock?(v.replaceSelections(kn),v.setCursor(Ze),v.replaceRange(D,Ze,Ze),Le=Ze):(v.replaceRange(D,Ze,nt),Le=v.posFromIndex(v.indexFromPos(Ze)+D.length-1)),Ve&&(k.lastSelection.headMark=v.setBookmark(Ve)),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&&En(v,_t,z.ch)}v.setCursor(z),Rn(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,dt(v.getLine(_t)))}else Le=Ke(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,We.commands.undo,T.repeat)(),v.setCursor(ue(v,v.getCursor("start")))})},redo:function(v,T){Ye(v,We.commands.redo,T.repeat)()},setRegister:function(v,T,k){k.inputState.registerName=T.selectedCharacter},insertRegister:function(v,T,k){var D=T.selectedCharacter,W=ze.registerController.getRegister(D),z=W&&W.toString();z&&v.replaceSelection(z)},oneNormalCommand:function(v,T,k){Gr(v,!0),k.insertModeReturn=!0,We.on(v,"vim-command-done",function D(){k.visualMode||(k.insertModeReturn&&(k.insertModeReturn=!1,k.insertMode||Dn.enterInsertMode(v,{},k)),We.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,q,Y=v.listSelections();if(k.visualMode)W=v.getCursor("start"),q=v.getCursor("end");else{var Q=v.getLine(W.line);z=W.ch+T.repeat,z>Q.length&&(z=Q.length),q=new Ne(W.line,z)}var re=b(v,W,q);if(W=re.start,q=re.end,D==`
1450
+ `,new Ne(_t,0));var Rt=Yt(v,_t);Rt<z.ch&&En(v,_t,z.ch)}v.setCursor(z),Rn(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,dt(v.getLine(_t)))}else Le=Ke(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,We.commands.undo,T.repeat)(),v.setCursor(ue(v,v.getCursor("start")))})},redo:function(v,T){Ye(v,We.commands.redo,T.repeat)()},setRegister:function(v,T,k){k.inputState.registerName=T.selectedCharacter},insertRegister:function(v,T,k){var D=T.selectedCharacter,W=ze.registerController.getRegister(D),z=W&&W.toString();z&&v.replaceSelection(z)},oneNormalCommand:function(v,T,k){Yr(v,!0),k.insertModeReturn=!0,We.on(v,"vim-command-done",function D(){k.visualMode||(k.insertModeReturn&&(k.insertModeReturn=!1,k.insertMode||Dn.enterInsertMode(v,{},k)),We.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,q,Y=v.listSelections();if(k.visualMode)W=v.getCursor("start"),q=v.getCursor("end");else{var Q=v.getLine(W.line);z=W.ch+T.repeat,z>Q.length&&(z=Q.length),q=new Ne(W.line,z)}var re=b(v,W,q);if(W=re.start,q=re.end,D==`
1451
1451
  `)k.visualMode||v.replaceRange("",W,q),(We.commands.newlineAndIndentContinueComment||We.commands.newlineAndIndent)(v);else{var se=v.getRange(W,q);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
- `),v.replaceSelections(se)}else v.replaceRange(se,W,q);k.visualMode?(W=it(Y[0].anchor,Y[0].head)?Y[0].anchor:Y[0].head,v.setCursor(W),St(v,!1)):v.setCursor(fe(q,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,q,Y,Q;(z=W.exec(D))!==null&&(q=z.index,Y=q+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,q),Le=new Ne(k.line,Y);v.replaceRange(Q,Oe,Le),v.setCursor(new Ne(k.line,q+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}}};I("pcre",!0,"boolean"),Fi.prototype={getQuery:function(){return ze.query},setQuery:function(v){ze.query=v},getOverlay:function(){return this.searchOverlay},setOverlay:function(v){this.searchOverlay=v},isReversed:function(){return ze.isReversed},setReversed:function(v){ze.isReversed=v},getScrollbarAnnotate:function(){return this.annotate},setScrollbarAnnotate:function(v){this.annotate=v}};var ki={"\\n":`
1452
+ `),v.replaceSelections(se)}else v.replaceRange(se,W,q);k.visualMode?(W=it(Y[0].anchor,Y[0].head)?Y[0].anchor:Y[0].head,v.setCursor(W),St(v,!1)):v.setCursor(fe(q,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,q,Y,Q;(z=W.exec(D))!==null&&(q=z.index,Y=q+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,q),Le=new Ne(k.line,Y);v.replaceRange(Q,Oe,Le),v.setCursor(new Ne(k.line,q+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:Yr},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}}};I("pcre",!0,"boolean"),Fi.prototype={getQuery:function(){return ze.query},setQuery:function(v){ze.query=v},getOverlay:function(){return this.searchOverlay},setOverlay:function(v){this.searchOverlay=v},isReversed:function(){return ze.isReversed},setReversed:function(v){ze.isReversed=v},getScrollbarAnnotate:function(){return this.annotate},setScrollbarAnnotate:function(v){this.annotate=v}};var ki={"\\n":`
1453
1453
  `,"\\r":"\r","\\t":" "},lr={"\\/":"/","\\\\":"\\","\\n":`
1454
- `,"\\r":"\r","\\t":" ","\\&":"&"},cr=0,vr=function(){this.buildCommandMap_()};vr.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=ze.registerController.getRegister(":"),z=W.toString(),q=new We.StringStream(T);W.setText(T);var Y=k||{};Y.input=T;try{this.parseInput_(v,q,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_(q,Y,Q),Q.type=="exToKey"){E(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=Kr(v,v.state.vim,"<");k.selectionLine=D&&D.line,D=Kr(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=Kr(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=fr(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),$n.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<$n.length;W++)if(D==$n[W].keys&&$n[W].context===T)return $n.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}yr.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||!yr.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){Nn.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],q=W[1],Y=!1,Q=!1;if(z.charAt(z.length-1)=="?"){if(q)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);q===void 0&&z.substring(0,2)=="no"&&(z=z.substring(2),q=!1);var re=Vt[z]&&Vt[z].type=="boolean";if(re&&(Q?q=!S(z,v,D):q==null&&(q=!0)),!re&&q===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,q,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=ze.registerController.registers,W=`----------Registers----------
1454
+ `,"\\r":"\r","\\t":" ","\\&":"&"},cr=0,vr=function(){this.buildCommandMap_()};vr.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=ze.registerController.getRegister(":"),z=W.toString(),q=new We.StringStream(T);W.setText(T);var Y=k||{};Y.input=T;try{this.parseInput_(v,q,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_(q,Y,Q),Q.type=="exToKey"){E(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=Gr(v,v.state.vim,"<");k.selectionLine=D&&D.line,D=Gr(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=Gr(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=fr(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),$n.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<$n.length;W++)if(D==$n[W].keys&&$n[W].context===T)return $n.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}yr.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||!yr.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){Nn.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],q=W[1],Y=!1,Q=!1;if(z.charAt(z.length-1)=="?"){if(q)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);q===void 0&&z.substring(0,2)=="no"&&(z=z.substring(2),q=!1);var re=Vt[z]&&Vt[z].type=="boolean";if(re&&(Q?q=!S(z,v,D):q==null&&(q=!0)),!re&&q===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,q,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=ze.registerController.registers,W=`----------Registers----------
1455
1455
 
1456
1456
  `;if(k){var z;k=k.join("");for(var q=0;q<k.length;q++)if(z=k.charAt(q),!!ze.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 We.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]){q=Rt[1].indexOf("i")!=-1,Y=Rt[1].indexOf("u")!=-1;var Jn=Rt[1].indexOf("d")!=-1||Rt[1].indexOf("n")!=-1&&1,ur=Rt[1].indexOf("x")!=-1&&1,Sn=Rt[1].indexOf("o")!=-1&&1;if(Jn+ur+Sn>1)return"Invalid arguments";Q=Jn&&"decimal"||ur&&"hex"||Sn&&"octal"}Rt[2]&&(re=new RegExp(Rt[2].substr(1,Rt[2].length-2),q?"i":""))}}function D(_t,Rt){if(z){var Jn;Jn=_t,_t=Rt,Rt=Jn}q&&(_t=_t.toLowerCase(),Rt=Rt.toLowerCase());var ur=Q&&Le.exec(_t),Sn=Q&&Le.exec(Rt);return ur?(ur=parseInt((ur[1]+ur[2]).toLowerCase(),Ve),Sn=parseInt((Sn[1]+Sn[2]).toLowerCase(),Ve),ur-Sn):_t<Rt?-1:1}function W(_t,Rt){if(z){var Jn;Jn=_t,_t=Rt,Rt=Jn}return q&&(_t[0]=_t[0].toLowerCase(),Rt[0]=Rt[0].toLowerCase()),_t[0]<Rt[0]?-1:1}var z,q,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(`
1458
+ `)}Ut(v,W)},sort:function(v,T){function k(){if(T.argString){var _t=new We.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]){q=Rt[1].indexOf("i")!=-1,Y=Rt[1].indexOf("u")!=-1;var er=Rt[1].indexOf("d")!=-1||Rt[1].indexOf("n")!=-1&&1,ur=Rt[1].indexOf("x")!=-1&&1,Sn=Rt[1].indexOf("o")!=-1&&1;if(er+ur+Sn>1)return"Invalid arguments";Q=er&&"decimal"||ur&&"hex"||Sn&&"octal"}Rt[2]&&(re=new RegExp(Rt[2].substr(1,Rt[2].length-2),q?"i":""))}}function D(_t,Rt){if(z){var er;er=_t,_t=Rt,Rt=er}q&&(_t=_t.toLowerCase(),Rt=Rt.toLowerCase());var ur=Q&&Le.exec(_t),Sn=Q&&Le.exec(Rt);return ur?(ur=parseInt((ur[1]+ur[2]).toLowerCase(),Ve),Sn=parseInt((Sn[1]+Sn[2]).toLowerCase(),Ve),ur-Sn):_t<Rt?-1:1}function W(_t,Rt){if(z){var er;er=_t,_t=Rt,Rt=er}return q&&(_t[0]=_t[0].toLowerCase(),Rt[0]=Rt[0].toLowerCase()),_t[0]<Rt[0]?-1:1}var z,q,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
1459
  `),Le=re||(Q=="decimal"?/(-?)([\d]+)/:Q=="hex"?/(-?)(?:0x)?([0-9a-f]+)/i:Q=="octal"?/([0-7]+)/:null),Ve=Q=="decimal"?10:Q=="hex"?16:Q=="octal"?8:null,ct=[],Ze=[];if(Q||re)for(var nt=0;nt<Oe.length;nt++){var yn=re?Oe[nt].match(re):null;yn&&yn[0]!=""?ct.push(yn):!re&&Le.exec(Oe[nt])?ct.push(Oe[nt]):Ze.push(Oe[nt])}else Ze=Oe;if(ct.sort(re?W:D),re)for(var nt=0;nt<ct.length;nt++)ct[nt]=ct[nt].input;else Q||Ze.sort(D);if(Oe=z?ct.concat(Ze):Ze.concat(ct),Y){var ut=Oe,kn;Oe=[];for(var nt=0;nt<ut.length;nt++)ut[nt]!=kn&&Oe.push(ut[nt]),kn=ut[nt]}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),un=!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),E(v,T.argString.trimStart()),v.state.vim.insertMode&&Gr(v,!0);else E(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(),q=Tr(k),Y=k,Q;if(q.length&&(Y=q[0],Q=q.slice(1,q.length).join("/")),Y)try{mn(v,Y,!0,!0)}catch{Ut(v,"Invalid regex: "+Y);return}for(var re=Tn(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++],Ve=v.getLineNumber(Le);if(Ve==null){Oe();return}var ct=Ve+1+Q;yr.processCommand(v,ct,{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="",q,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=qa(z.replace(/([^\\])&/g,"$1$$&")):z=Va(z),ze.lastSubstituteReplacePart=z),q=D[2]?D[2].split(" "):[];else if(k&&k.length){Ut(v,"Substitutions should be of the form :s/pattern/replace/");return}if(q&&(Y=q[0],Q=parseInt(q[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{mn(v,W,!0,!0)}catch{Ut(v,"Invalid regex: "+W);return}if(z=z||ze.lastSubstituteReplacePart,z===void 0){Ut(v,"No previous substitute regular expression");return}var ye=Tn(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);Wo(v,re,se,me,we,Le,Ce,z,T.callback)},startinsert:function(v,T){E(v,T.argString=="!"?"A":"i",{})},redo:We.commands.redo,undo:We.commands.undo,write:function(v){We.commands.save?We.commands.save(v):v.save&&v.save()},nohlsearch:function(v){Fo(v)},yank:function(v){var T=Ke(v.getCursor()),k=T.line,D=v.getLine(k);ze.registerController.pushText("0","yank",D,!0,!0)},delete:function(v,T){var k=T.selectionLine,D=isNaN(T.selectionLineEnd)?k:T.selectionLineEnd;Go.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)),Dn.joinLines(v,{repeat:D-k},v.state.vim)},delmarks:function(v,T){if(!T.argString||!fr(T.argString)){Ut(v,"Argument required");return}for(var k=v.state.vim,D=new We.StringStream(fr(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 q=z,Y=D.next();if(!(u(q)&&u(Y)||c(q)&&c(Y))){Ut(v,"Invalid argument: "+q+"-");return}var Q=q.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]}}},yr=new vr;I("insertModeEscKeysTimeout",200,"number"),We.Vim=Ct;var Ir={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=We;var ui=Ct.maybeInitVimState_;r.handler={$id:"ace/keyboard/vim",drawCursor:function(v,T,k,D,W){var z=this.state.vim||{},q=k.characterWidth,Y=k.lineHeight,Q=T.top,re=T.left;if(!z.insertMode){var se=D.cursor?or.comparePoints(D.cursor,D.start)<=0:W.selection.isBackwards()||W.selection.isEmpty();!se&&re>q&&(re-=q)}!z.insertMode&&z.status&&(Y/=2,Q+=Y),zi.translate(v,re,Q),zi.setStyle(v.style,"width",q+"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,q=z.state.cm,Y=ui(q);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),q.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():q.operation(function(){St(q)})}),{command:"null",passEvent:!0};if(k=="esc"&&!Y.insertMode&&!Y.visualMode&&!q.ace.inMultiSelectMode){var Q=Tn(q),re=Q.getOverlay();re&&q.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(q,ye,"user");return Y=ui(q),Ce&&Y.status!=null?Y.status+=ye:Y.status==null&&(Y.status=""),q._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 We(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")}),$n.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"}}),$n.push({keys:"gq",type:"operator",operator:"hardWrap"}),Ct.defineOperator("hardWrap",function(v,T,k,D,W){var z=k[0].anchor.line,q=k[0].head.line;return T.linewise&&q--,no(v.ace,{startRow:z,endRow:q}),Ne(q,0)}),I("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)}}),Dn.aceCommand=function(v,T,k){v.vimCmd=T,v.ace.inVirtualSelectionMode?v.ace.on("beforeEndOperation",wi):wi(null,v.ace)},Dn.fold=function(v,T,k){v.ace.execCommand(["toggleFoldWidget","toggleFoldWidget","foldOther","unfoldall"][(T.all?2:0)+(T.open?1:0)])},yo=$n.length,r.handler.defaultKeymap=$n,r.handler.actions=Dn,r.Vim=Ct}),function(){ace.require(["ace/keyboard/vim"],function(e){n&&(n.exports=e)})}()}(ef)),ef.exports}WC();const BC=Wn("L",{props:{config:{type:Object},packets:{type:Array}},data:function(){return{currentConfig:{},currentPackets:[],latestData:null}},computed:{hasRaw:function(){for(let n=0;n<this.currentPackets.length;n++)if(this.currentPackets[n].mode==="RAW")return!0;return!1},hasDecom:function(){for(let n=0;n<this.currentPackets.length;n++)if(this.currentPackets[n].mode==="DECOM")return!0;return!1}},watch:{currentConfig:{deep:!0,handler:function(n){this.$emit("config",n)}}},created:function(){this.config&&(this.currentConfig={...this.config}),this.packets&&(this.currentPackets=[...this.packets])},methods:{receive:function(n){this.latestData=n}}});var Rl={exports:{}};/**
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),un=!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),E(v,T.argString.trimStart()),v.state.vim.insertMode&&Yr(v,!0);else E(v,T.argString.trimStart()),v.state.vim.insertMode&&Yr(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(),q=$r(k),Y=k,Q;if(q.length&&(Y=q[0],Q=q.slice(1,q.length).join("/")),Y)try{mn(v,Y,!0,!0)}catch{Ut(v,"Invalid regex: "+Y);return}for(var re=Tn(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++],Ve=v.getLineNumber(Le);if(Ve==null){Oe();return}var ct=Ve+1+Q;yr.processCommand(v,ct,{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="",q,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=qa(z.replace(/([^\\])&/g,"$1$$&")):z=Va(z),ze.lastSubstituteReplacePart=z),q=D[2]?D[2].split(" "):[];else if(k&&k.length){Ut(v,"Substitutions should be of the form :s/pattern/replace/");return}if(q&&(Y=q[0],Q=parseInt(q[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{mn(v,W,!0,!0)}catch{Ut(v,"Invalid regex: "+W);return}if(z=z||ze.lastSubstituteReplacePart,z===void 0){Ut(v,"No previous substitute regular expression");return}var ye=Tn(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);Wo(v,re,se,me,we,Le,Ce,z,T.callback)},startinsert:function(v,T){E(v,T.argString=="!"?"A":"i",{})},redo:We.commands.redo,undo:We.commands.undo,write:function(v){We.commands.save?We.commands.save(v):v.save&&v.save()},nohlsearch:function(v){Fo(v)},yank:function(v){var T=Ke(v.getCursor()),k=T.line,D=v.getLine(k);ze.registerController.pushText("0","yank",D,!0,!0)},delete:function(v,T){var k=T.selectionLine,D=isNaN(T.selectionLineEnd)?k:T.selectionLineEnd;Go.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)),Dn.joinLines(v,{repeat:D-k},v.state.vim)},delmarks:function(v,T){if(!T.argString||!fr(T.argString)){Ut(v,"Argument required");return}for(var k=v.state.vim,D=new We.StringStream(fr(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 q=z,Y=D.next();if(!(u(q)&&u(Y)||c(q)&&c(Y))){Ut(v,"Invalid argument: "+q+"-");return}var Q=q.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]}}},yr=new vr;I("insertModeEscKeysTimeout",200,"number"),We.Vim=Ct;var Er={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=We;var ui=Ct.maybeInitVimState_;r.handler={$id:"ace/keyboard/vim",drawCursor:function(v,T,k,D,W){var z=this.state.vim||{},q=k.characterWidth,Y=k.lineHeight,Q=T.top,re=T.left;if(!z.insertMode){var se=D.cursor?sr.comparePoints(D.cursor,D.start)<=0:W.selection.isBackwards()||W.selection.isEmpty();!se&&re>q&&(re-=q)}!z.insertMode&&z.status&&(Y/=2,Q+=Y),zi.translate(v,re,Q),zi.setStyle(v.style,"width",q+"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,q=z.state.cm,Y=ui(q);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),q.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():q.operation(function(){St(q)})}),{command:"null",passEvent:!0};if(k=="esc"&&!Y.insertMode&&!Y.visualMode&&!q.ace.inMultiSelectMode){var Q=Tn(q),re=Q.getOverlay();re&&q.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(q,ye,"user");return Y=ui(q),Ce&&Y.status!=null?Y.status+=ye:Y.status==null&&(Y.status=""),q._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 We(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")}),$n.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"}}),$n.push({keys:"gq",type:"operator",operator:"hardWrap"}),Ct.defineOperator("hardWrap",function(v,T,k,D,W){var z=k[0].anchor.line,q=k[0].head.line;return T.linewise&&q--,no(v.ace,{startRow:z,endRow:q}),Ne(q,0)}),I("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)}}),Dn.aceCommand=function(v,T,k){v.vimCmd=T,v.ace.inVirtualSelectionMode?v.ace.on("beforeEndOperation",wi):wi(null,v.ace)},Dn.fold=function(v,T,k){v.ace.execCommand(["toggleFoldWidget","toggleFoldWidget","foldOther","unfoldall"][(T.all?2:0)+(T.open?1:0)])},yo=$n.length,r.handler.defaultKeymap=$n,r.handler.actions=Dn,r.Vim=Ct}),function(){ace.require(["ace/keyboard/vim"],function(e){n&&(n.exports=e)})}()}(ef)),ef.exports}WC();const BC=Wn("L",{props:{config:{type:Object},packets:{type:Array}},data:function(){return{currentConfig:{},currentPackets:[],latestData:null}},computed:{hasRaw:function(){for(let n=0;n<this.currentPackets.length;n++)if(this.currentPackets[n].mode==="RAW")return!0;return!1},hasDecom:function(){for(let n=0;n<this.currentPackets.length;n++)if(this.currentPackets[n].mode==="DECOM")return!0;return!1}},watch:{currentConfig:{deep:!0,handler:function(n){this.$emit("config",n)}}},created:function(){this.config&&(this.currentConfig={...this.config}),this.packets&&(this.currentPackets=[...this.packets])},methods:{receive:function(n){this.latestData=n}}});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 zC=Rl.exports,nf;function jC(){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,I=8,$=16,S=32,C=64,R=128,L=256,P=512,E=30,H="...",F=800,O=16,_=1,A=2,N=3,B=1/0,U=9007199254740991,K=17976931348623157e292,Z=NaN,te=4294967295,he=te-1,ne=te>>>1,ae=[["ary",R],["bind",d],["bindKey",w],["curry",I],["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]",Ke="[object Function]",pt="[object GeneratorFunction]",it="[object Map]",gt="[object Number]",tn="[object Null]",gn="[object Object]",Yt="[object Promise]",fr="[object Proxy]",fn="[object RegExp]",En="[object Set]",Rn="[object String]",Qn="[object Symbol]",bt="[object Undefined]",Ue="[object WeakMap]",ke="[object WeakSet]",je="[object ArrayBuffer]",Xe="[object DataView]",ft="[object Float32Array]",At="[object Float64Array]",St="[object Int8Array]",Dt="[object Int16Array]",Ot="[object Int32Array]",dt="[object Uint8Array]",xt="[object Uint8ClampedArray]",Cn="[object Uint16Array]",Ar="[object Uint32Array]",qr=/\b__p \+= '';/g,Di=/\b(__p \+=) '' \+/g,co=/(__e\(.*?\)|\b__t\)) \+\n'';/g,mr=/&(?:amp|lt|gt|quot|#39);/g,uo=/[&<>"']/g,Po=RegExp(mr.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,_r=/[\\^$.*+?()[\]{}|]/g,Fi=RegExp(_r.source),Tn=/^\s+/,Tr=/\s/,Zi=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Wi=/\{\n\/\* \[wrapped with (.+)\] \*/,ws=/,? & /,ia=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Va=/[()=,{}\[\]\/\s]/,qa=/\\(\\)?/g,Bi=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,oi=/\w*$/,Ut=/^[-+]0x[0-9a-f]+$/i,oa=/^0b[01]+$/i,$r=/^\[object .+?Constructor\]$/,Un=/^0o[0-7]+$/i,mn=/^(?:0|[1-9]\d*)$/,Ln=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,vi=/($^)/,Mr=/['\n\r\u2028\u2029\\]/g,yi="\\ud800-\\udfff",Fo="\\u0300-\\u036f",bs="\\ufe20-\\ufe2f",Ji="\\u20d0-\\u20ff",Kr=Fo+bs+Ji,ho="\\u2700-\\u27bf",Wo="a-z\\xdf-\\xf6\\xf8-\\xff",Gr="\\xac\\xb1\\xd7\\xf7",Bo="\\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",zo="A-Z\\xc0-\\xd6\\xd8-\\xde",ir="\\ufe0e\\ufe0f",ks=Gr+Bo+xs+Cs,po="['’]",jo="["+yi+"]",Ho="["+ks+"]",eo="["+Kr+"]",Ss="\\d+",sa="["+ho+"]",Uo="["+Wo+"]",Vo="[^"+yi+ks+Ss+ho+Wo+zo+"]",As="\\ud83c[\\udffb-\\udfff]",qo="(?:"+eo+"|"+As+")",go="[^"+yi+"]",wi="(?:\\ud83c[\\udde6-\\uddff]){2}",or="[\\ud800-\\udbff][\\udc00-\\udfff]",to="["+zo+"]",zi="\\u200d",aa="(?:"+Uo+"|"+Vo+")",Ka="(?:"+to+"|"+Vo+")",fo="(?:"+po+"(?:d|ll|m|re|s|t|ve))?",ji="(?:"+po+"(?:D|LL|M|RE|S|T|VE))?",mo=qo+"?",Ko="["+ir+"]?",vo="(?:"+zi+"(?:"+[go,wi,or].join("|")+")"+Ko+mo+")*",la="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",no="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",We=Ko+mo+vo,ca="(?:"+[sa,wi,or].join("|")+")"+We,Ne="(?:"+[go+eo+"?",eo,wi,or,jo].join("|")+")",$n=RegExp(po,"g"),yo=RegExp(eo,"g"),si=RegExp(As+"(?="+As+")|"+Ne+We,"g"),Vn=RegExp([to+"?"+Uo+"+"+fo+"(?="+[Ho,to,"$"].join("|")+")",Ka+"+"+ji+"(?="+[Ho,to+aa,"$"].join("|")+")",to+"?"+aa+"+"+fo,to+"+"+ji,no,la,Ss,ca].join("|"),"g"),ua=RegExp("["+zi+yi+Kr+ir+"]"),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"],ro=-1,nn={};nn[ft]=nn[At]=nn[St]=nn[Dt]=nn[Ot]=nn[dt]=nn[xt]=nn[Cn]=nn[Ar]=!0,nn[ue]=nn[ce]=nn[je]=nn[Te]=nn[Xe]=nn[$e]=nn[Ye]=nn[Ke]=nn[it]=nn[gt]=nn[gn]=nn[fn]=nn[En]=nn[Rn]=nn[Ue]=!1;var Zt={};Zt[ue]=Zt[ce]=Zt[je]=Zt[Xe]=Zt[Te]=Zt[$e]=Zt[ft]=Zt[At]=Zt[St]=Zt[Dt]=Zt[Ot]=Zt[it]=Zt[gt]=Zt[gn]=Zt[fn]=Zt[En]=Zt[Rn]=Zt[Qn]=Zt[dt]=Zt[xt]=Zt[Cn]=Zt[Ar]=!0,Zt[Ye]=Zt[Ke]=Zt[Ue]=!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={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},xi={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},On={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ze=parseFloat,vn=parseInt,Ct=typeof Lo=="object"&&Lo&&Lo.Object===Object&&Lo,Dr=typeof self=="object"&&self&&self.Object===Object&&self,un=Ct||Dr||Function("return this")(),bn=t&&!t.nodeType&&t,Zn=bn&&!0&&n&&!n.nodeType&&n,Pr=Zn&&Zn.exports===bn,Ci=Pr&&Ct.process,Nn=function(){try{var pe=Zn&&Zn.require&&Zn.require("util").types;return pe||Ci&&Ci.binding&&Ci.binding("util")}catch{}}(),Yr=Nn&&Nn.isArrayBuffer,Go=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,He){for(var ht=-1,Lt=pe==null?0:pe.length;++ht<Lt;){var Xt=pe[ht];Se(He,Xt,xe(Xt),pe)}return He}function vr(pe,Se){for(var xe=-1,He=pe==null?0:pe.length;++xe<He&&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 yr(pe,Se){for(var xe=-1,He=pe==null?0:pe.length;++xe<He;)if(!Se(pe[xe],xe,pe))return!1;return!0}function Ir(pe,Se){for(var xe=-1,He=pe==null?0:pe.length,ht=0,Lt=[];++xe<He;){var Xt=pe[xe];Se(Xt,xe,pe)&&(Lt[ht++]=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 He=-1,ht=pe==null?0:pe.length;++He<ht;)if(xe(Se,pe[He]))return!0;return!1}function v(pe,Se){for(var xe=-1,He=pe==null?0:pe.length,ht=Array(He);++xe<He;)ht[xe]=Se(pe[xe],xe,pe);return ht}function T(pe,Se){for(var xe=-1,He=Se.length,ht=pe.length;++xe<He;)pe[ht+xe]=Se[xe];return pe}function k(pe,Se,xe,He){var ht=-1,Lt=pe==null?0:pe.length;for(He&&Lt&&(xe=pe[++ht]);++ht<Lt;)xe=Se(xe,pe[ht],ht,pe);return xe}function D(pe,Se,xe,He){var ht=pe==null?0:pe.length;for(He&&ht&&(xe=pe[--ht]);ht--;)xe=Se(xe,pe[ht],ht,pe);return xe}function W(pe,Se){for(var xe=-1,He=pe==null?0:pe.length;++xe<He;)if(Se(pe[xe],xe,pe))return!0;return!1}var z=we("length");function q(pe){return pe.split("")}function Y(pe){return pe.match(ia)||[]}function Q(pe,Se,xe){var He;return xe(pe,function(ht,Lt,Xt){if(Se(ht,Lt,Xt))return He=Lt,!1}),He}function re(pe,Se,xe,He){for(var ht=pe.length,Lt=xe+(He?1:-1);He?Lt--:++Lt<ht;)if(Se(pe[Lt],Lt,pe))return Lt;return-1}function se(pe,Se,xe){return Se===Se?et(pe,Se,xe):re(pe,Ce,xe)}function ye(pe,Se,xe,He){for(var ht=xe-1,Lt=pe.length;++ht<Lt;)if(He(pe[ht],Se))return ht;return-1}function Ce(pe){return pe!==pe}function me(pe,Se){var xe=pe==null?0:pe.length;return xe?ct(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,He,ht){return ht(pe,function(Lt,Xt,Pt){xe=He?(He=!1,Lt):Se(xe,Lt,Xt,Pt)}),xe}function Ve(pe,Se){var xe=pe.length;for(pe.sort(Se);xe--;)pe[xe]=pe[xe].value;return pe}function ct(pe,Se){for(var xe,He=-1,ht=pe.length;++He<ht;){var Lt=Se(pe[He]);Lt!==e&&(xe=xe===e?Lt:xe+Lt)}return xe}function Ze(pe,Se){for(var xe=-1,He=Array(pe);++xe<pe;)He[xe]=Se(xe);return He}function nt(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 ut(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,He=pe.length;++xe<He&&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 ur(pe,Se){for(var xe=pe.length,He=0;xe--;)pe[xe]===Se&&++He;return He}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(He,ht){xe[++Se]=[ht,He]}),xe}function Fe(pe,Se){return function(xe){return pe(Se(xe))}}function Be(pe,Se){for(var xe=-1,He=pe.length,ht=0,Lt=[];++xe<He;){var Xt=pe[xe];(Xt===Se||Xt===s)&&(pe[xe]=s,Lt[ht++]=xe)}return Lt}function qe(pe){var Se=-1,xe=Array(pe.size);return pe.forEach(function(He){xe[++Se]=He}),xe}function Qe(pe){var Se=-1,xe=Array(pe.size);return pe.forEach(function(He){xe[++Se]=[He,He]}),xe}function et(pe,Se,xe){for(var He=xe-1,ht=pe.length;++He<ht;)if(pe[He]===Se)return He;return-1}function kt(pe,Se,xe){for(var He=xe+1;He--;)if(pe[He]===Se)return He;return He}function zt(pe){return oe(pe)?st(pe):z(pe)}function Tt(pe){return oe(pe)?pn(pe):q(pe)}function Wt(pe){for(var Se=pe.length;Se--&&Tr.test(pe.charAt(Se)););return Se}var mt=Oe(xi);function st(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(Vn)||[]}var er=function pe(Se){Se=Se==null?un:Kt.defaults(un.Object(),Se,Kt.pick(un,bi));var xe=Se.Array,He=Se.Date,ht=Se.Error,Lt=Se.Function,Xt=Se.Math,Pt=Se.Object,Fr=Se.RegExp,Si=Se.String,hn=Se.TypeError,hr=xe.prototype,bo=Lt.prototype,Pn=Pt.prototype,Ts=Se["__core-js_shared__"],gc=bo.toString,cn=Pn.hasOwnProperty,KM=0,Iy=function(){var i=/[^.]+$/.exec(Ts&&Ts.keys&&Ts.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}(),fc=Pn.toString,GM=gc.call(Pt),YM=un._,XM=Fr("^"+gc.call(cn).replace(_r,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),mc=Pr?Se.Buffer:e,Yo=Se.Symbol,vc=Se.Uint8Array,Ey=mc?mc.allocUnsafe:e,yc=Fe(Pt.getPrototypeOf,Pt),Ry=Pt.create,Ly=Pn.propertyIsEnumerable,wc=hr.splice,Oy=Yo?Yo.isConcatSpreadable:e,Ga=Yo?Yo.iterator:e,$s=Yo?Yo.toStringTag:e,bc=function(){try{var i=Ls(Pt,"defineProperty");return i({},"",{}),i}catch{}}(),QM=Se.clearTimeout!==un.clearTimeout&&Se.clearTimeout,ZM=He&&He.now!==un.Date.now&&He.now,JM=Se.setTimeout!==un.setTimeout&&Se.setTimeout,xc=Xt.ceil,Cc=Xt.floor,cd=Pt.getOwnPropertySymbols,eI=mc?mc.isBuffer:e,Ny=Se.isFinite,tI=hr.join,nI=Fe(Pt.keys,Pt),sr=Xt.max,Er=Xt.min,rI=He.now,iI=Se.parseInt,Dy=Xt.random,oI=hr.reverse,ud=Ls(Se,"DataView"),Ya=Ls(Se,"Map"),hd=Ls(Se,"Promise"),ha=Ls(Se,"Set"),Xa=Ls(Se,"WeakMap"),Qa=Ls(Pt,"create"),kc=Xa&&new Xa,da={},sI=Os(ud),aI=Os(Ya),lI=Os(hd),cI=Os(ha),uI=Os(Xa),Sc=Yo?Yo.prototype:e,Za=Sc?Sc.valueOf:e,Py=Sc?Sc.toString:e;function J(i){if(Fn(i)&&!$t(i)&&!(i instanceof qt)){if(i instanceof Ai)return i;if(cn.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 Ac(){}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=Ac.prototype,J.prototype.constructor=J,Ai.prototype=pa(Ac.prototype),Ai.prototype.constructor=Ai;function qt(i){this.__wrapped__=i,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=te,this.__views__=[]}function hI(){var i=new qt(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 dI(){if(this.__filtered__){var i=new qt(this);i.__dir__=-1,i.__filtered__=!0}else i=this.clone(),i.__dir__*=-1;return i}function pI(){var i=this.__wrapped__.value(),m=this.__dir__,M=$t(i),j=m<0,G=M?i.length:0,ee=AE(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,ot=Er(ve,this.__takeCount__);if(!M||!j&&G==ve&&ot==ve)return aw(i,this.__actions__);var yt=[];e:for(;ve--&&Ge<ot;){Ee+=m;for(var Ft=-1,wt=i[Ee];++Ft<De;){var jt=Re[Ft],Gt=jt.iteratee,pi=jt.type,zr=Gt(wt);if(pi==A)wt=zr;else if(!zr){if(pi==_)continue e;break e}}yt[Ge++]=wt}return yt}qt.prototype=pa(Ac.prototype),qt.prototype.constructor=qt;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 gI(){this.__data__=Qa?Qa(null):{},this.size=0}function fI(i){var m=this.has(i)&&delete this.__data__[i];return this.size-=m?1:0,m}function mI(i){var m=this.__data__;if(Qa){var M=m[i];return M===h?e:M}return cn.call(m,i)?m[i]:e}function vI(i){var m=this.__data__;return Qa?m[i]!==e:cn.call(m,i)}function yI(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=gI,Ms.prototype.delete=fI,Ms.prototype.get=mI,Ms.prototype.has=vI,Ms.prototype.set=yI;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 wI(){this.__data__=[],this.size=0}function bI(i){var m=this.__data__,M=_c(m,i);if(M<0)return!1;var j=m.length-1;return M==j?m.pop():wc.call(m,M,1),--this.size,!0}function xI(i){var m=this.__data__,M=_c(m,i);return M<0?e:m[M][1]}function CI(i){return _c(this.__data__,i)>-1}function kI(i,m){var M=this.__data__,j=_c(M,i);return j<0?(++this.size,M.push([i,m])):M[j][1]=m,this}xo.prototype.clear=wI,xo.prototype.delete=bI,xo.prototype.get=xI,xo.prototype.has=CI,xo.prototype.set=kI;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 SI(){this.size=0,this.__data__={hash:new Ms,map:new(Ya||xo),string:new Ms}}function AI(i){var m=Fc(this,i).delete(i);return this.size-=m?1:0,m}function _I(i){return Fc(this,i).get(i)}function TI(i){return Fc(this,i).has(i)}function $I(i,m){var M=Fc(this,i),j=M.size;return M.set(i,m),this.size+=M.size==j?0:1,this}Co.prototype.clear=SI,Co.prototype.delete=AI,Co.prototype.get=_I,Co.prototype.has=TI,Co.prototype.set=$I;function Is(i){var m=-1,M=i==null?0:i.length;for(this.__data__=new Co;++m<M;)this.add(i[m])}function MI(i){return this.__data__.set(i,h),this}function II(i){return this.__data__.has(i)}Is.prototype.add=Is.prototype.push=MI,Is.prototype.has=II;function Hi(i){var m=this.__data__=new xo(i);this.size=m.size}function EI(){this.__data__=new xo,this.size=0}function RI(i){var m=this.__data__,M=m.delete(i);return this.size=m.size,M}function LI(i){return this.__data__.get(i)}function OI(i){return this.__data__.has(i)}function NI(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=EI,Hi.prototype.delete=RI,Hi.prototype.get=LI,Hi.prototype.has=OI,Hi.prototype.set=NI;function Fy(i,m){var M=$t(i),j=!M&&Ns(i),G=!M&&!j&&es(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||cn.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[Cd(0,m-1)]:e}function DI(i,m){return Wc(Xr(i),Es(m,0,i.length))}function PI(i){return Wc(Xr(i))}function dd(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];(!(cn.call(i,m)&&Ui(j,M))||M===e&&!(m in i))&&ko(i,m,M)}function _c(i,m){for(var M=i.length;M--;)if(Ui(i[M][0],m))return M;return-1}function FI(i,m,M,j){return Xo(i,function(G,ee,le){m(j,G,M(G),le)}),j}function By(i,m){return i&&oo(m,dr(m),i)}function WI(i,m){return i&&oo(m,Zr(m),i)}function ko(i,m,M){m=="__proto__"&&bc?bc(i,m,{configurable:!0,enumerable:!0,value:M,writable:!0}):i[m]=M}function pd(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=TE(i),!de)return Xr(i,le)}else{var De=Rr(i),Ge=De==Ke||De==pt;if(es(i))return uw(i,de);if(De==gn||De==ue||Ge&&!G){if(le=ve||Ge?{}:Mw(i),!de)return ve?mE(i,WI(le,i)):fE(i,By(le,i))}else{if(!Zt[De])return G?i:{};le=$E(i,De,de)}}ee||(ee=new Hi);var ot=ee.get(i);if(ot)return ot;ee.set(i,le),ib(i)?i.forEach(function(wt){le.add(_i(wt,m,M,wt,i,ee))}):nb(i)&&i.forEach(function(wt,jt){le.set(jt,_i(wt,m,M,jt,i,ee))});var yt=Ee?ve?Ld:Rd:ve?Zr:dr,Ft=Re?e:yt(i);return vr(Ft||i,function(wt,jt){Ft&&(jt=wt,wt=i[jt]),Ja(le,jt,_i(wt,m,M,jt,i,ee))}),le}function BI(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 hn(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,ut(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 Xo=fw(io),Hy=fw(fd,!0);function zI(i,m){var M=!0;return Xo(i,function(j,G,ee){return M=!!m(j,G,ee),M}),M}function Tc(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 jI(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 Xo(i,function(j,G,ee){m(j,G,ee)&&M.push(j)}),M}function wr(i,m,M,j,G){var ee=-1,le=i.length;for(M||(M=IE),G||(G=[]);++ee<le;){var de=i[ee];m>0&&M(de)?m>1?wr(de,m-1,M,j,G):T(G,de):j||(G[G.length]=de)}return G}var gd=mw(),Vy=mw(!0);function io(i,m){return i&&gd(i,m,dr)}function fd(i,m){return i&&Vy(i,m,dr)}function $c(i,m){return Ir(m,function(M){return To(i[M])})}function Rs(i,m){m=Zo(m,i);for(var M=0,j=m.length;i!=null&&M<j;)i=i[so(m[M++])];return M&&M==j?i:e}function qy(i,m,M){var j=m(i);return $t(i)?j:T(j,M(i))}function Wr(i){return i==null?i===e?bt:tn:$s&&$s in Pt(i)?SE(i):PE(i)}function md(i,m){return i>m}function HI(i,m){return i!=null&&cn.call(i,m)}function UI(i,m){return i!=null&&m in Pt(i)}function VI(i,m,M){return i>=Er(m,M)&&i<sr(m,M)}function vd(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,ut(m))),ve=Er(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 ot=Re[De],yt=m?m(ot):ot;if(ot=M||ot!==0?ot:0,!(Ge?_t(Ge,yt):j(Ee,yt,M))){for(le=ee;--le;){var Ft=de[le];if(!(Ft?_t(Ft,yt):j(i[le],yt,M)))continue e}Ge&&Ge.push(yt),Ee.push(ot)}}return Ee}function qI(i,m,M,j){return io(i,function(G,ee,le){m(j,M(G),ee,le)}),j}function tl(i,m,M){m=Zo(m,i),i=Lw(i,m);var j=i==null?i:i[so($i(m))];return j==null?e:lr(j,i,M)}function Ky(i){return Fn(i)&&Wr(i)==ue}function KI(i){return Fn(i)&&Wr(i)==je}function GI(i){return Fn(i)&&Wr(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:YI(i,m,M,j,nl,G)}function YI(i,m,M,j,G,ee){var le=$t(i),de=$t(m),ve=le?ce:Rr(i),Ee=de?ce:Rr(m);ve=ve==ue?gn:ve,Ee=Ee==ue?gn:Ee;var Re=ve==gn,De=Ee==gn,Ge=ve==Ee;if(Ge&&es(i)){if(!es(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):CE(i,m,ve,M,j,G,ee);if(!(M&o)){var ot=Re&&cn.call(i,"__wrapped__"),yt=De&&cn.call(m,"__wrapped__");if(ot||yt){var Ft=ot?i.value():i,wt=yt?m.value():m;return ee||(ee=new Hi),G(Ft,wt,M,j,ee)}}return Ge?(ee||(ee=new Hi),kE(i,m,M,j,G,ee)):!1}function XI(i){return Fn(i)&&Rr(i)==it}function yd(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)||RE(i))return!1;var m=To(i)?XM:$r;return m.test(Os(i))}function QI(i){return Fn(i)&&Wr(i)==fn}function ZI(i){return Fn(i)&&Rr(i)==En}function JI(i){return Fn(i)&&Vc(i.length)&&!!nn[Wr(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 wd(i){if(!ol(i))return nI(i);var m=[];for(var M in Pt(i))cn.call(i,M)&&M!="constructor"&&m.push(M);return m}function eE(i){if(!Mn(i))return DE(i);var m=ol(i),M=[];for(var j in i)j=="constructor"&&(m||!cn.call(i,j))||M.push(j);return M}function bd(i,m){return i<m}function Xy(i,m){var M=-1,j=Qr(i)?xe(i.length):[];return Xo(i,function(G,ee,le){j[++M]=m(G,ee,le)}),j}function Qy(i){var m=Nd(i);return m.length==1&&m[0][2]?Ew(m[0][0],m[0][1]):function(M){return M===i||yd(M,i,m)}}function Zy(i,m){return Pd(i)&&Iw(m)?Ew(so(i),m):function(M){var j=Kd(M,i);return j===e&&j===m?Gd(M,i):nl(m,j,o|c)}}function Mc(i,m,M,j,G){i!==m&&gd(m,function(ee,le){if(G||(G=new Hi),Mn(ee))tE(i,m,le,M,Mc,j,G);else{var de=j?j(Wd(i,le),ee,le+"",i,m,G):e;de===e&&(de=ee),dd(i,le,de)}},Zr)}function tE(i,m,M,j,G,ee,le){var de=Wd(i,M),ve=Wd(m,M),Ee=le.get(ve);if(Ee){dd(i,M,Ee);return}var Re=ee?ee(de,ve,M+"",i,m,le):e,De=Re===e;if(De){var Ge=$t(ve),ot=!Ge&&es(ve),yt=!Ge&&!ot&&va(ve);Re=ve,Ge||ot||yt?$t(de)?Re=de:qn(de)?Re=Xr(de):ot?(De=!1,Re=uw(ve,!0)):yt?(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)),dd(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,ut(vt()));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 Ve(G,function(ee,le){return gE(ee,le,M)})}function nE(i,m){return tw(i,m,function(M,j){return Gd(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,Zo(le,i),de)}return ee}function rE(i){return function(m){return Rs(m,i)}}function xd(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,ut(M)));++ee<le;)for(var ve=0,Ee=m[ee],Re=M?M(Ee):Ee;(ve=G(de,Re,ve,j))>-1;)de!==i&&wc.call(de,ve,1),wc.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)?wc.call(i,G,1):Ad(i,G)}}return i}function Cd(i,m){return i+Cc(Dy()*(m-i+1))}function iE(i,m,M,j){for(var G=-1,ee=sr(xc((m-i)/(M||1)),0),le=xe(ee);ee--;)le[j?ee:++G]=i,i+=M;return le}function kd(i,m){var M="";if(!i||m<1||m>U)return M;do m%2&&(M+=i),m=Cc(m/2),m&&(i+=i);while(m);return M}function Bt(i,m){return Bd(Rw(i,m,Jr),i+"")}function oE(i){return Wy(ya(i))}function sE(i,m){var M=ya(i);return Wc(M,Es(m,0,M.length))}function rl(i,m,M,j){if(!Mn(i))return i;m=Zo(m,i);for(var G=-1,ee=m.length,le=ee-1,de=i;de!=null&&++G<ee;){var ve=so(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=kc?function(i,m){return kc.set(i,m),i}:Jr,aE=bc?function(i,m){return bc(i,"toString",{configurable:!0,enumerable:!1,value:Xd(m),writable:!0})}:Jr;function lE(i){return Wc(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 cE(i,m){var M;return Xo(i,function(j,G,ee){return M=m(j,G,ee),!M}),!!M}function Ic(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 Sd(i,m,Jr,M)}function Sd(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=Cc((G+ee)/2),De=M(i[Re]),Ge=De!==e,ot=De===null,yt=De===De,Ft=di(De);if(le)var wt=j||yt;else Ee?wt=yt&&(j||Ge):de?wt=yt&&Ge&&(j||!ot):ve?wt=yt&&Ge&&!ot&&(j||!Ft):ot||Ft?wt=!1:wt=j?De<=m:De<m;wt?G=Re+1:ee=Re}return Er(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 Qo(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:bE(i);if(Ee)return qe(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 Ad(i,m){return m=Zo(m,i),i=Lw(i,m),i==null||delete i[so($i(m))]}function sw(i,m,M,j){return rl(i,m,M(Rs(i,m)),j)}function Ec(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 qt&&(M=M.value()),k(m,function(j,G){return G.func.apply(G.thisArg,T([j],G.args))},M)}function _d(i,m,M){var j=i.length;if(j<2)return j?Qo(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 Qo(wr(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 Td(i){return qn(i)?i:[]}function $d(i){return typeof i=="function"?i:Jr}function Zo(i,m){return $t(i)?i:Pd(i,m)?[i]:Pw(sn(i))}var uE=Bt;function Jo(i,m,M){var j=i.length;return M=M===e?j:M,!m&&M>=j?i:Ti(i,m,M)}var cw=QM||function(i){return un.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 Md(i){var m=new i.constructor(i.byteLength);return new vc(m).set(new vc(i)),m}function hE(i,m){var M=m?Md(i.buffer):i.buffer;return new i.constructor(M,i.byteOffset,i.byteLength)}function dE(i){var m=new i.constructor(i.source,oi.exec(i));return m.lastIndex=i.lastIndex,m}function pE(i){return Za?Pt(Za.call(i)):{}}function hw(i,m){var M=m?Md(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 gE(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=sr(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=sr(ee-de,0),De=xe(Re+Ee),Ge=!j;++G<Re;)De[G]=i[G];for(var ot=G;++ve<Ee;)De[ot+ve]=m[ve];for(;++le<de;)(Ge||G<ee)&&(De[ot+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 oo(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 fE(i,m){return oo(i,Dd(i),m)}function mE(i,m){return oo(i,Tw(i),m)}function Rc(i,m){return function(M,j){var G=$t(M)?cr:FI,ee=m?m():{};return G(M,i,vt(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&&Br(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 vE(i,m,M){var j=m&d,G=il(i);function ee(){var le=this&&this!==un&&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?Jo(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 yE(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?[]:Be(le,ve);if(ee-=Ee.length,ee<M)return Cw(i,m,Lc,G.placeholder,e,le,Ee,e,e,M-ee);var Re=this&&this!==un&&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=vt(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 hn(y);if(G&&!le&&Pc(ee)=="wrapper")var le=new Ai([],!0)}for(j=le?j:M;++j<M;){ee=m[j];var de=Pc(ee),ve=de=="wrapper"?Od(ee):e;ve&&Fd(ve[0])&&ve[1]==(R|I|S|L)&&!ve[4].length&&ve[9]==1?le=le[Pc(ve[0])].apply(le,ve[3]):le=ee.length==1&&Fd(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 Lc(i,m,M,j,G,ee,le,de,ve,Ee){var Re=m&R,De=m&d,Ge=m&w,ot=m&(I|$),yt=m&P,Ft=Ge?e:il(i);function wt(){for(var jt=arguments.length,Gt=xe(jt),pi=jt;pi--;)Gt[pi]=arguments[pi];if(ot)var zr=ma(wt),gi=ur(Gt,zr);if(j&&(Gt=pw(Gt,j,G,ot)),ee&&(Gt=gw(Gt,ee,le,ot)),jt-=gi,ot&&jt<Ee){var Kn=Be(Gt,zr);return Cw(i,m,Lc,wt.placeholder,M,Gt,Kn,de,ve,Ee-jt)}var Vi=De?M:this,Mo=Ge?Vi[i]:i;return jt=Gt.length,de?Gt=FE(Gt,de):yt&&jt>1&&Gt.reverse(),Re&&ve<jt&&(Gt.length=ve),this&&this!==un&&this instanceof wt&&(Mo=Ft||il(Mo)),Mo.apply(Vi,Gt)}return wt}function bw(i,m){return function(M,j){return qI(M,i,m(j),{})}}function Oc(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 Id(i){return Ao(function(m){return m=v(m,ut(vt())),Bt(function(M){var j=this;return i(m,function(G){return lr(G,j,M)})})})}function Nc(i,m){m=m===e?" ":hi(m);var M=m.length;if(M<2)return M?kd(m,i):m;var j=kd(m,xc(i/zt(m)));return oe(m)?Jo(Tt(j),0,i).join(""):j.slice(0,i)}function wE(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!==un&&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"&&Br(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),iE(m,M,j,i)}}function Dc(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&I,De=Re?le:e,Ge=Re?e:le,ot=Re?ee:e,yt=Re?e:ee;m|=Re?S:C,m&=~(Re?C:S),m&x||(m&=-4);var Ft=[i,m,G,ot,De,yt,Ge,de,ve,Ee],wt=M.apply(e,Ft);return Fd(i)&&Ow(wt,Ft),wt.placeholder=j,Nw(wt,i,m)}function Ed(i){var m=Xt[i];return function(M,j){if(M=Mi(M),j=j==null?0:Er(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 bE=ha&&1/qe(new ha([,-0]))[1]==B?function(i){return new ha(i)}:Jd;function kw(i){return function(m){var M=Rr(m);return M==it?Me(m):M==En?Qe(m):nt(m,i(m))}}function So(i,m,M,j,G,ee,le,de){var ve=m&w;if(!ve&&typeof i!="function")throw new hn(y);var Ee=j?j.length:0;if(Ee||(m&=-97,j=G=e),le=le===e?le:sr(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:Od(i),ot=[i,m,M,j,G,Re,De,ee,le,de];if(Ge&&NE(ot,Ge),i=ot[0],m=ot[1],M=ot[2],j=ot[3],G=ot[4],de=ot[9]=ot[9]===e?ve?0:i.length:sr(ot[9]-Ee,0),!de&&m&(I|$)&&(m&=-25),!m||m==d)var yt=vE(i,m,M);else m==I||m==$?yt=yE(i,m,de):(m==S||m==(d|S))&&!G.length?yt=wE(i,m,M,j):yt=Lc.apply(e,ot);var Ft=Ge?rw:Ow;return Nw(Ft(yt,ot),i,m)}function Sw(i,m,M,j){return i===e||Ui(i,Pn[M])&&!cn.call(j,M)?m:i}function Aw(i,m,M,j,G,ee){return Mn(i)&&Mn(m)&&(ee.set(m,i),Mc(i,m,e,Aw,ee),ee.delete(m)),i}function xE(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,ot=M&c?new Is:e;for(ee.set(i,m),ee.set(m,i);++De<de;){var yt=i[De],Ft=m[De];if(j)var wt=le?j(Ft,yt,De,m,i,ee):j(yt,Ft,De,i,m,ee);if(wt!==e){if(wt)continue;Ge=!1;break}if(ot){if(!W(m,function(jt,Gt){if(!_t(ot,Gt)&&(yt===jt||G(yt,jt,M,j,ee)))return ot.push(Gt)})){Ge=!1;break}}else if(!(yt===Ft||G(yt,Ft,M,j,ee))){Ge=!1;break}}return ee.delete(i),ee.delete(m),Ge}function CE(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 je:return!(i.byteLength!=m.byteLength||!ee(new vc(i),new vc(m)));case Te:case $e:case gt:return Ui(+i,+m);case Ye:return i.name==m.name&&i.message==m.message;case fn:case Rn:return i==m+"";case it:var de=Me;case En:var ve=j&o;if(de||(de=qe),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 kE(i,m,M,j,G,ee){var le=M&o,de=Rd(i),ve=de.length,Ee=Rd(m),Re=Ee.length;if(ve!=Re&&!le)return!1;for(var De=ve;De--;){var Ge=de[De];if(!(le?Ge in m:cn.call(m,Ge)))return!1}var ot=ee.get(i),yt=ee.get(m);if(ot&&yt)return ot==m&&yt==i;var Ft=!0;ee.set(i,m),ee.set(m,i);for(var wt=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}wt||(wt=Ge=="constructor")}if(Ft&&!wt){var zr=i.constructor,gi=m.constructor;zr!=gi&&"constructor"in i&&"constructor"in m&&!(typeof zr=="function"&&zr instanceof zr&&typeof gi=="function"&&gi instanceof gi)&&(Ft=!1)}return ee.delete(i),ee.delete(m),Ft}function Ao(i){return Bd(Rw(i,e,zw),i+"")}function Rd(i){return qy(i,dr,Dd)}function Ld(i){return qy(i,Zr,Tw)}var Od=kc?function(i){return kc.get(i)}:Jd;function Pc(i){for(var m=i.name+"",M=da[m],j=cn.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=cn.call(J,"placeholder")?J:i;return m.placeholder}function vt(){var i=J.iteratee||Qd;return i=i===Qd?Yy:i,arguments.length?i(arguments[0],arguments[1]):i}function Fc(i,m){var M=i.__data__;return EE(m)?M[typeof m=="string"?"string":"hash"]:M.map}function Nd(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 SE(i){var m=cn.call(i,$s),M=i[$s];try{i[$s]=e;var j=!0}catch{}var G=fc.call(i);return j&&(m?i[$s]=M:delete i[$s]),G}var Dd=cd?function(i){return i==null?[]:(i=Pt(i),Ir(cd(i),function(m){return Ly.call(i,m)}))}:ep,Tw=cd?function(i){for(var m=[];i;)T(m,Dd(i)),i=yc(i);return m}:ep,Rr=Wr;(ud&&Rr(new ud(new ArrayBuffer(1)))!=Xe||Ya&&Rr(new Ya)!=it||hd&&Rr(hd.resolve())!=Yt||ha&&Rr(new ha)!=En||Xa&&Rr(new Xa)!=Ue)&&(Rr=function(i){var m=Wr(i),M=m==gn?i.constructor:e,j=M?Os(M):"";if(j)switch(j){case sI:return Xe;case aI:return it;case lI:return Yt;case cI:return En;case uI:return Ue}return m});function AE(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=Er(m,i+le);break;case"takeRight":i=sr(i,m-le);break}}return{start:i,end:m}}function _E(i){var m=i.match(Wi);return m?m[1].split(ws):[]}function $w(i,m,M){m=Zo(m,i);for(var j=-1,G=m.length,ee=!1;++j<G;){var le=so(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&&Vc(G)&&_o(le,G)&&($t(i)||Ns(i)))}function TE(i){var m=i.length,M=new i.constructor(m);return m&&typeof i[0]=="string"&&cn.call(i,"index")&&(M.index=i.index,M.input=i.input),M}function Mw(i){return typeof i.constructor=="function"&&!ol(i)?pa(yc(i)):{}}function $E(i,m,M){var j=i.constructor;switch(m){case je:return Md(i);case Te:case $e:return new j(+i);case Xe:return hE(i,M);case ft:case At:case St:case Dt:case Ot:case dt:case xt:case Cn:case Ar:return hw(i,M);case it:return new j;case gt:case Rn:return new j(i);case fn:return dE(i);case En:return new j;case Qn:return pE(i)}}function ME(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(Zi,`{
1468
+ */var zC=Ll.exports,nf;function jC(){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,I=8,$=16,S=32,C=64,R=128,L=256,P=512,E=30,H="...",F=800,O=16,_=1,A=2,N=3,B=1/0,U=9007199254740991,K=17976931348623157e292,Z=NaN,te=4294967295,he=te-1,ne=te>>>1,ae=[["ary",R],["bind",d],["bindKey",w],["curry",I],["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]",Ke="[object Function]",pt="[object GeneratorFunction]",it="[object Map]",gt="[object Number]",nn="[object Null]",gn="[object Object]",Yt="[object Promise]",fr="[object Proxy]",fn="[object RegExp]",En="[object Set]",Rn="[object String]",Zn="[object Symbol]",bt="[object Undefined]",Ue="[object WeakMap]",ke="[object WeakSet]",je="[object ArrayBuffer]",Xe="[object DataView]",ft="[object Float32Array]",At="[object Float64Array]",St="[object Int8Array]",Dt="[object Int16Array]",Ot="[object Int32Array]",dt="[object Uint8Array]",xt="[object Uint8ClampedArray]",Cn="[object Uint16Array]",_r="[object Uint32Array]",Kr=/\b__p \+= '';/g,Di=/\b(__p \+=) '' \+/g,co=/(__e\(.*?\)|\b__t\)) \+\n'';/g,mr=/&(?:amp|lt|gt|quot|#39);/g,uo=/[&<>"']/g,Po=RegExp(mr.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,Tr=/[\\^$.*+?()[\]{}|]/g,Fi=RegExp(Tr.source),Tn=/^\s+/,$r=/\s/,Zi=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Wi=/\{\n\/\* \[wrapped with (.+)\] \*/,ws=/,? & /,ia=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Va=/[()=,{}\[\]\/\s]/,qa=/\\(\\)?/g,Bi=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,oi=/\w*$/,Ut=/^[-+]0x[0-9a-f]+$/i,oa=/^0b[01]+$/i,Mr=/^\[object .+?Constructor\]$/,Un=/^0o[0-7]+$/i,mn=/^(?:0|[1-9]\d*)$/,Ln=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,vi=/($^)/,Ir=/['\n\r\u2028\u2029\\]/g,yi="\\ud800-\\udfff",Fo="\\u0300-\\u036f",bs="\\ufe20-\\ufe2f",Ji="\\u20d0-\\u20ff",Gr=Fo+bs+Ji,ho="\\u2700-\\u27bf",Wo="a-z\\xdf-\\xf6\\xf8-\\xff",Yr="\\xac\\xb1\\xd7\\xf7",Bo="\\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",zo="A-Z\\xc0-\\xd6\\xd8-\\xde",or="\\ufe0e\\ufe0f",ks=Yr+Bo+xs+Cs,po="['’]",jo="["+yi+"]",Ho="["+ks+"]",eo="["+Gr+"]",Ss="\\d+",sa="["+ho+"]",Uo="["+Wo+"]",Vo="[^"+yi+ks+Ss+ho+Wo+zo+"]",As="\\ud83c[\\udffb-\\udfff]",qo="(?:"+eo+"|"+As+")",go="[^"+yi+"]",wi="(?:\\ud83c[\\udde6-\\uddff]){2}",sr="[\\ud800-\\udbff][\\udc00-\\udfff]",to="["+zo+"]",zi="\\u200d",aa="(?:"+Uo+"|"+Vo+")",Ka="(?:"+to+"|"+Vo+")",fo="(?:"+po+"(?:d|ll|m|re|s|t|ve))?",ji="(?:"+po+"(?:D|LL|M|RE|S|T|VE))?",mo=qo+"?",Ko="["+or+"]?",vo="(?:"+zi+"(?:"+[go,wi,sr].join("|")+")"+Ko+mo+")*",la="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",no="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",We=Ko+mo+vo,ca="(?:"+[sa,wi,sr].join("|")+")"+We,Ne="(?:"+[go+eo+"?",eo,wi,sr,jo].join("|")+")",$n=RegExp(po,"g"),yo=RegExp(eo,"g"),si=RegExp(As+"(?="+As+")|"+Ne+We,"g"),Vn=RegExp([to+"?"+Uo+"+"+fo+"(?="+[Ho,to,"$"].join("|")+")",Ka+"+"+ji+"(?="+[Ho,to+aa,"$"].join("|")+")",to+"?"+aa+"+"+fo,to+"+"+ji,no,la,Ss,ca].join("|"),"g"),ua=RegExp("["+zi+yi+Gr+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"],ro=-1,rn={};rn[ft]=rn[At]=rn[St]=rn[Dt]=rn[Ot]=rn[dt]=rn[xt]=rn[Cn]=rn[_r]=!0,rn[ue]=rn[ce]=rn[je]=rn[Te]=rn[Xe]=rn[$e]=rn[Ye]=rn[Ke]=rn[it]=rn[gt]=rn[gn]=rn[fn]=rn[En]=rn[Rn]=rn[Ue]=!1;var Zt={};Zt[ue]=Zt[ce]=Zt[je]=Zt[Xe]=Zt[Te]=Zt[$e]=Zt[ft]=Zt[At]=Zt[St]=Zt[Dt]=Zt[Ot]=Zt[it]=Zt[gt]=Zt[gn]=Zt[fn]=Zt[En]=Zt[Rn]=Zt[Zn]=Zt[dt]=Zt[xt]=Zt[Cn]=Zt[_r]=!0,Zt[Ye]=Zt[Ke]=Zt[Ue]=!1;var on={À:"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={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},xi={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},On={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ze=parseFloat,vn=parseInt,Ct=typeof Lo=="object"&&Lo&&Lo.Object===Object&&Lo,Pr=typeof self=="object"&&self&&self.Object===Object&&self,un=Ct||Pr||Function("return this")(),bn=t&&!t.nodeType&&t,Jn=bn&&!0&&n&&!n.nodeType&&n,Fr=Jn&&Jn.exports===bn,Ci=Fr&&Ct.process,Nn=function(){try{var pe=Jn&&Jn.require&&Jn.require("util").types;return pe||Ci&&Ci.binding&&Ci.binding("util")}catch{}}(),Xr=Nn&&Nn.isArrayBuffer,Go=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,He){for(var ht=-1,Lt=pe==null?0:pe.length;++ht<Lt;){var Xt=pe[ht];Se(He,Xt,xe(Xt),pe)}return He}function vr(pe,Se){for(var xe=-1,He=pe==null?0:pe.length;++xe<He&&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 yr(pe,Se){for(var xe=-1,He=pe==null?0:pe.length;++xe<He;)if(!Se(pe[xe],xe,pe))return!1;return!0}function Er(pe,Se){for(var xe=-1,He=pe==null?0:pe.length,ht=0,Lt=[];++xe<He;){var Xt=pe[xe];Se(Xt,xe,pe)&&(Lt[ht++]=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 He=-1,ht=pe==null?0:pe.length;++He<ht;)if(xe(Se,pe[He]))return!0;return!1}function v(pe,Se){for(var xe=-1,He=pe==null?0:pe.length,ht=Array(He);++xe<He;)ht[xe]=Se(pe[xe],xe,pe);return ht}function T(pe,Se){for(var xe=-1,He=Se.length,ht=pe.length;++xe<He;)pe[ht+xe]=Se[xe];return pe}function k(pe,Se,xe,He){var ht=-1,Lt=pe==null?0:pe.length;for(He&&Lt&&(xe=pe[++ht]);++ht<Lt;)xe=Se(xe,pe[ht],ht,pe);return xe}function D(pe,Se,xe,He){var ht=pe==null?0:pe.length;for(He&&ht&&(xe=pe[--ht]);ht--;)xe=Se(xe,pe[ht],ht,pe);return xe}function W(pe,Se){for(var xe=-1,He=pe==null?0:pe.length;++xe<He;)if(Se(pe[xe],xe,pe))return!0;return!1}var z=we("length");function q(pe){return pe.split("")}function Y(pe){return pe.match(ia)||[]}function Q(pe,Se,xe){var He;return xe(pe,function(ht,Lt,Xt){if(Se(ht,Lt,Xt))return He=Lt,!1}),He}function re(pe,Se,xe,He){for(var ht=pe.length,Lt=xe+(He?1:-1);He?Lt--:++Lt<ht;)if(Se(pe[Lt],Lt,pe))return Lt;return-1}function se(pe,Se,xe){return Se===Se?et(pe,Se,xe):re(pe,Ce,xe)}function ye(pe,Se,xe,He){for(var ht=xe-1,Lt=pe.length;++ht<Lt;)if(He(pe[ht],Se))return ht;return-1}function Ce(pe){return pe!==pe}function me(pe,Se){var xe=pe==null?0:pe.length;return xe?ct(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,He,ht){return ht(pe,function(Lt,Xt,Pt){xe=He?(He=!1,Lt):Se(xe,Lt,Xt,Pt)}),xe}function Ve(pe,Se){var xe=pe.length;for(pe.sort(Se);xe--;)pe[xe]=pe[xe].value;return pe}function ct(pe,Se){for(var xe,He=-1,ht=pe.length;++He<ht;){var Lt=Se(pe[He]);Lt!==e&&(xe=xe===e?Lt:xe+Lt)}return xe}function Ze(pe,Se){for(var xe=-1,He=Array(pe);++xe<pe;)He[xe]=Se(xe);return He}function nt(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 ut(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,He=pe.length;++xe<He&&se(Se,pe[xe],0)>-1;);return xe}function er(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,He=0;xe--;)pe[xe]===Se&&++He;return He}var Sn=Oe(on),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(He,ht){xe[++Se]=[ht,He]}),xe}function Fe(pe,Se){return function(xe){return pe(Se(xe))}}function Be(pe,Se){for(var xe=-1,He=pe.length,ht=0,Lt=[];++xe<He;){var Xt=pe[xe];(Xt===Se||Xt===s)&&(pe[xe]=s,Lt[ht++]=xe)}return Lt}function qe(pe){var Se=-1,xe=Array(pe.size);return pe.forEach(function(He){xe[++Se]=He}),xe}function Qe(pe){var Se=-1,xe=Array(pe.size);return pe.forEach(function(He){xe[++Se]=[He,He]}),xe}function et(pe,Se,xe){for(var He=xe-1,ht=pe.length;++He<ht;)if(pe[He]===Se)return He;return-1}function kt(pe,Se,xe){for(var He=xe+1;He--;)if(pe[He]===Se)return He;return He}function zt(pe){return oe(pe)?st(pe):z(pe)}function Tt(pe){return oe(pe)?pn(pe):q(pe)}function Wt(pe){for(var Se=pe.length;Se--&&$r.test(pe.charAt(Se)););return Se}var mt=Oe(xi);function st(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(Vn)||[]}var tr=function pe(Se){Se=Se==null?un:Kt.defaults(un.Object(),Se,Kt.pick(un,bi));var xe=Se.Array,He=Se.Date,ht=Se.Error,Lt=Se.Function,Xt=Se.Math,Pt=Se.Object,Wr=Se.RegExp,Si=Se.String,hn=Se.TypeError,hr=xe.prototype,bo=Lt.prototype,Pn=Pt.prototype,Ts=Se["__core-js_shared__"],fc=bo.toString,cn=Pn.hasOwnProperty,KM=0,Iy=function(){var i=/[^.]+$/.exec(Ts&&Ts.keys&&Ts.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}(),mc=Pn.toString,GM=fc.call(Pt),YM=un._,XM=Wr("^"+fc.call(cn).replace(Tr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),vc=Fr?Se.Buffer:e,Yo=Se.Symbol,yc=Se.Uint8Array,Ey=vc?vc.allocUnsafe:e,wc=Fe(Pt.getPrototypeOf,Pt),Ry=Pt.create,Ly=Pn.propertyIsEnumerable,bc=hr.splice,Oy=Yo?Yo.isConcatSpreadable:e,Ga=Yo?Yo.iterator:e,$s=Yo?Yo.toStringTag:e,xc=function(){try{var i=Ls(Pt,"defineProperty");return i({},"",{}),i}catch{}}(),QM=Se.clearTimeout!==un.clearTimeout&&Se.clearTimeout,ZM=He&&He.now!==un.Date.now&&He.now,JM=Se.setTimeout!==un.setTimeout&&Se.setTimeout,Cc=Xt.ceil,kc=Xt.floor,ud=Pt.getOwnPropertySymbols,eI=vc?vc.isBuffer:e,Ny=Se.isFinite,tI=hr.join,nI=Fe(Pt.keys,Pt),ar=Xt.max,Rr=Xt.min,rI=He.now,iI=Se.parseInt,Dy=Xt.random,oI=hr.reverse,hd=Ls(Se,"DataView"),Ya=Ls(Se,"Map"),dd=Ls(Se,"Promise"),ha=Ls(Se,"Set"),Xa=Ls(Se,"WeakMap"),Qa=Ls(Pt,"create"),Sc=Xa&&new Xa,da={},sI=Os(hd),aI=Os(Ya),lI=Os(dd),cI=Os(ha),uI=Os(Xa),Ac=Yo?Yo.prototype:e,Za=Ac?Ac.valueOf:e,Py=Ac?Ac.toString:e;function J(i){if(Fn(i)&&!$t(i)&&!(i instanceof qt)){if(i instanceof Ai)return i;if(cn.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 qt(i){this.__wrapped__=i,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=te,this.__views__=[]}function hI(){var i=new qt(this.__wrapped__);return i.__actions__=Qr(this.__actions__),i.__dir__=this.__dir__,i.__filtered__=this.__filtered__,i.__iteratees__=Qr(this.__iteratees__),i.__takeCount__=this.__takeCount__,i.__views__=Qr(this.__views__),i}function dI(){if(this.__filtered__){var i=new qt(this);i.__dir__=-1,i.__filtered__=!0}else i=this.clone(),i.__dir__*=-1;return i}function pI(){var i=this.__wrapped__.value(),m=this.__dir__,M=$t(i),j=m<0,G=M?i.length:0,ee=AE(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,ot=Rr(ve,this.__takeCount__);if(!M||!j&&G==ve&&ot==ve)return aw(i,this.__actions__);var yt=[];e:for(;ve--&&Ge<ot;){Ee+=m;for(var Ft=-1,wt=i[Ee];++Ft<De;){var jt=Re[Ft],Gt=jt.iteratee,pi=jt.type,jr=Gt(wt);if(pi==A)wt=jr;else if(!jr){if(pi==_)continue e;break e}}yt[Ge++]=wt}return yt}qt.prototype=pa(_c.prototype),qt.prototype.constructor=qt;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 gI(){this.__data__=Qa?Qa(null):{},this.size=0}function fI(i){var m=this.has(i)&&delete this.__data__[i];return this.size-=m?1:0,m}function mI(i){var m=this.__data__;if(Qa){var M=m[i];return M===h?e:M}return cn.call(m,i)?m[i]:e}function vI(i){var m=this.__data__;return Qa?m[i]!==e:cn.call(m,i)}function yI(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=gI,Ms.prototype.delete=fI,Ms.prototype.get=mI,Ms.prototype.has=vI,Ms.prototype.set=yI;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 wI(){this.__data__=[],this.size=0}function bI(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 xI(i){var m=this.__data__,M=Tc(m,i);return M<0?e:m[M][1]}function CI(i){return Tc(this.__data__,i)>-1}function kI(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=wI,xo.prototype.delete=bI,xo.prototype.get=xI,xo.prototype.has=CI,xo.prototype.set=kI;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 SI(){this.size=0,this.__data__={hash:new Ms,map:new(Ya||xo),string:new Ms}}function AI(i){var m=Wc(this,i).delete(i);return this.size-=m?1:0,m}function _I(i){return Wc(this,i).get(i)}function TI(i){return Wc(this,i).has(i)}function $I(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=SI,Co.prototype.delete=AI,Co.prototype.get=_I,Co.prototype.has=TI,Co.prototype.set=$I;function Is(i){var m=-1,M=i==null?0:i.length;for(this.__data__=new Co;++m<M;)this.add(i[m])}function MI(i){return this.__data__.set(i,h),this}function II(i){return this.__data__.has(i)}Is.prototype.add=Is.prototype.push=MI,Is.prototype.has=II;function Hi(i){var m=this.__data__=new xo(i);this.size=m.size}function EI(){this.__data__=new xo,this.size=0}function RI(i){var m=this.__data__,M=m.delete(i);return this.size=m.size,M}function LI(i){return this.__data__.get(i)}function OI(i){return this.__data__.has(i)}function NI(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=EI,Hi.prototype.delete=RI,Hi.prototype.get=LI,Hi.prototype.has=OI,Hi.prototype.set=NI;function Fy(i,m){var M=$t(i),j=!M&&Ns(i),G=!M&&!j&&es(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||cn.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[kd(0,m-1)]:e}function DI(i,m){return Bc(Qr(i),Es(m,0,i.length))}function PI(i){return Bc(Qr(i))}function pd(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];(!(cn.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 FI(i,m,M,j){return Xo(i,function(G,ee,le){m(j,G,M(G),le)}),j}function By(i,m){return i&&oo(m,dr(m),i)}function WI(i,m){return i&&oo(m,Jr(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 gd(i,m){for(var M=-1,j=m.length,G=xe(j),ee=i==null;++M<j;)G[M]=ee?e:Gd(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=TE(i),!de)return Qr(i,le)}else{var De=Lr(i),Ge=De==Ke||De==pt;if(es(i))return uw(i,de);if(De==gn||De==ue||Ge&&!G){if(le=ve||Ge?{}:Mw(i),!de)return ve?mE(i,WI(le,i)):fE(i,By(le,i))}else{if(!Zt[De])return G?i:{};le=$E(i,De,de)}}ee||(ee=new Hi);var ot=ee.get(i);if(ot)return ot;ee.set(i,le),ib(i)?i.forEach(function(wt){le.add(_i(wt,m,M,wt,i,ee))}):nb(i)&&i.forEach(function(wt,jt){le.set(jt,_i(wt,m,M,jt,i,ee))});var yt=Ee?ve?Od:Ld:ve?Jr:dr,Ft=Re?e:yt(i);return vr(Ft||i,function(wt,jt){Ft&&(jt=wt,wt=i[jt]),Ja(le,jt,_i(wt,m,M,jt,i,ee))}),le}function BI(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 hn(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,ut(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 Xo=fw(io),Hy=fw(md,!0);function zI(i,m){var M=!0;return Xo(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 jI(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 Xo(i,function(j,G,ee){m(j,G,ee)&&M.push(j)}),M}function wr(i,m,M,j,G){var ee=-1,le=i.length;for(M||(M=IE),G||(G=[]);++ee<le;){var de=i[ee];m>0&&M(de)?m>1?wr(de,m-1,M,j,G):T(G,de):j||(G[G.length]=de)}return G}var fd=mw(),Vy=mw(!0);function io(i,m){return i&&fd(i,m,dr)}function md(i,m){return i&&Vy(i,m,dr)}function Mc(i,m){return Er(m,function(M){return To(i[M])})}function Rs(i,m){m=Zo(m,i);for(var M=0,j=m.length;i!=null&&M<j;)i=i[so(m[M++])];return M&&M==j?i:e}function qy(i,m,M){var j=m(i);return $t(i)?j:T(j,M(i))}function Br(i){return i==null?i===e?bt:nn:$s&&$s in Pt(i)?SE(i):PE(i)}function vd(i,m){return i>m}function HI(i,m){return i!=null&&cn.call(i,m)}function UI(i,m){return i!=null&&m in Pt(i)}function VI(i,m,M){return i>=Rr(m,M)&&i<ar(m,M)}function yd(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,ut(m))),ve=Rr(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 ot=Re[De],yt=m?m(ot):ot;if(ot=M||ot!==0?ot:0,!(Ge?_t(Ge,yt):j(Ee,yt,M))){for(le=ee;--le;){var Ft=de[le];if(!(Ft?_t(Ft,yt):j(i[le],yt,M)))continue e}Ge&&Ge.push(yt),Ee.push(ot)}}return Ee}function qI(i,m,M,j){return io(i,function(G,ee,le){m(j,M(G),ee,le)}),j}function tl(i,m,M){m=Zo(m,i),i=Lw(i,m);var j=i==null?i:i[so($i(m))];return j==null?e:lr(j,i,M)}function Ky(i){return Fn(i)&&Br(i)==ue}function KI(i){return Fn(i)&&Br(i)==je}function GI(i){return Fn(i)&&Br(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:YI(i,m,M,j,nl,G)}function YI(i,m,M,j,G,ee){var le=$t(i),de=$t(m),ve=le?ce:Lr(i),Ee=de?ce:Lr(m);ve=ve==ue?gn:ve,Ee=Ee==ue?gn:Ee;var Re=ve==gn,De=Ee==gn,Ge=ve==Ee;if(Ge&&es(i)){if(!es(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):CE(i,m,ve,M,j,G,ee);if(!(M&o)){var ot=Re&&cn.call(i,"__wrapped__"),yt=De&&cn.call(m,"__wrapped__");if(ot||yt){var Ft=ot?i.value():i,wt=yt?m.value():m;return ee||(ee=new Hi),G(Ft,wt,M,j,ee)}}return Ge?(ee||(ee=new Hi),kE(i,m,M,j,G,ee)):!1}function XI(i){return Fn(i)&&Lr(i)==it}function wd(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)||RE(i))return!1;var m=To(i)?XM:Mr;return m.test(Os(i))}function QI(i){return Fn(i)&&Br(i)==fn}function ZI(i){return Fn(i)&&Lr(i)==En}function JI(i){return Fn(i)&&qc(i.length)&&!!rn[Br(i)]}function Yy(i){return typeof i=="function"?i:i==null?ei:typeof i=="object"?$t(i)?Zy(i[0],i[1]):Qy(i):vb(i)}function bd(i){if(!ol(i))return nI(i);var m=[];for(var M in Pt(i))cn.call(i,M)&&M!="constructor"&&m.push(M);return m}function eE(i){if(!Mn(i))return DE(i);var m=ol(i),M=[];for(var j in i)j=="constructor"&&(m||!cn.call(i,j))||M.push(j);return M}function xd(i,m){return i<m}function Xy(i,m){var M=-1,j=Zr(i)?xe(i.length):[];return Xo(i,function(G,ee,le){j[++M]=m(G,ee,le)}),j}function Qy(i){var m=Dd(i);return m.length==1&&m[0][2]?Ew(m[0][0],m[0][1]):function(M){return M===i||wd(M,i,m)}}function Zy(i,m){return Fd(i)&&Iw(m)?Ew(so(i),m):function(M){var j=Gd(M,i);return j===e&&j===m?Yd(M,i):nl(m,j,o|c)}}function Ic(i,m,M,j,G){i!==m&&fd(m,function(ee,le){if(G||(G=new Hi),Mn(ee))tE(i,m,le,M,Ic,j,G);else{var de=j?j(Bd(i,le),ee,le+"",i,m,G):e;de===e&&(de=ee),pd(i,le,de)}},Jr)}function tE(i,m,M,j,G,ee,le){var de=Bd(i,M),ve=Bd(m,M),Ee=le.get(ve);if(Ee){pd(i,M,Ee);return}var Re=ee?ee(de,ve,M+"",i,m,le):e,De=Re===e;if(De){var Ge=$t(ve),ot=!Ge&&es(ve),yt=!Ge&&!ot&&va(ve);Re=ve,Ge||ot||yt?$t(de)?Re=de:qn(de)?Re=Qr(de):ot?(De=!1,Re=uw(ve,!0)):yt?(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)),pd(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=[ei];var j=-1;m=v(m,ut(vt()));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 Ve(G,function(ee,le){return gE(ee,le,M)})}function nE(i,m){return tw(i,m,function(M,j){return Yd(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,Zo(le,i),de)}return ee}function rE(i){return function(m){return Rs(m,i)}}function Cd(i,m,M,j){var G=j?ye:se,ee=-1,le=m.length,de=i;for(i===m&&(m=Qr(m)),M&&(de=v(i,ut(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):_d(i,G)}}return i}function kd(i,m){return i+kc(Dy()*(m-i+1))}function iE(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 Sd(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 zd(Rw(i,m,ei),i+"")}function oE(i){return Wy(ya(i))}function sE(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=Zo(m,i);for(var G=-1,ee=m.length,le=ee-1,de=i;de!=null&&++G<ee;){var ve=so(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}:ei,aE=xc?function(i,m){return xc(i,"toString",{configurable:!0,enumerable:!1,value:Qd(m),writable:!0})}:ei;function lE(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 cE(i,m){var M;return Xo(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 Ad(i,m,ei,M)}function Ad(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,ot=De===null,yt=De===De,Ft=di(De);if(le)var wt=j||yt;else Ee?wt=yt&&(j||Ge):de?wt=yt&&Ge&&(j||!ot):ve?wt=yt&&Ge&&!ot&&(j||!Ft):ot||Ft?wt=!1:wt=j?De<=m:De<m;wt?G=Re+1:ee=Re}return Rr(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 Qo(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:bE(i);if(Ee)return qe(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 _d(i,m){return m=Zo(m,i),i=Lw(i,m),i==null||delete i[so($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 qt&&(M=M.value()),k(m,function(j,G){return G.func.apply(G.thisArg,T([j],G.args))},M)}function Td(i,m,M){var j=i.length;if(j<2)return j?Qo(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 Qo(wr(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 qn(i)?i:[]}function Md(i){return typeof i=="function"?i:ei}function Zo(i,m){return $t(i)?i:Fd(i,m)?[i]:Pw(an(i))}var uE=Bt;function Jo(i,m,M){var j=i.length;return M=M===e?j:M,!m&&M>=j?i:Ti(i,m,M)}var cw=QM||function(i){return un.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 Id(i){var m=new i.constructor(i.byteLength);return new yc(m).set(new yc(i)),m}function hE(i,m){var M=m?Id(i.buffer):i.buffer;return new i.constructor(M,i.byteOffset,i.byteLength)}function dE(i){var m=new i.constructor(i.source,oi.exec(i));return m.lastIndex=i.lastIndex,m}function pE(i){return Za?Pt(Za.call(i)):{}}function hw(i,m){var M=m?Id(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 gE(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 ot=G;++ve<Ee;)De[ot+ve]=m[ve];for(;++le<de;)(Ge||G<ee)&&(De[ot+M[le]]=i[G++]);return De}function Qr(i,m){var M=-1,j=i.length;for(m||(m=xe(j));++M<j;)m[M]=i[M];return m}function oo(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 fE(i,m){return oo(i,Pd(i),m)}function mE(i,m){return oo(i,Tw(i),m)}function Lc(i,m){return function(M,j){var G=$t(M)?cr:FI,ee=m?m():{};return G(M,i,vt(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&&zr(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(!Zr(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 vE(i,m,M){var j=m&d,G=il(i);function ee(){var le=this&&this!==un&&this instanceof ee?G:i;return le.apply(j?M:this,arguments)}return ee}function vw(i){return function(m){m=an(m);var M=oe(m)?Tt(m):e,j=M?M[0]:m.charAt(0),G=M?Jo(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 yE(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?[]:Be(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!==un&&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(!Zr(m)){var ee=vt(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 hn(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"?Nd(ee):e;ve&&Wd(ve[0])&&ve[1]==(R|I|S|L)&&!ve[4].length&&ve[9]==1?le=le[Fc(ve[0])].apply(le,ve[3]):le=ee.length==1&&Wd(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,ot=m&(I|$),yt=m&P,Ft=Ge?e:il(i);function wt(){for(var jt=arguments.length,Gt=xe(jt),pi=jt;pi--;)Gt[pi]=arguments[pi];if(ot)var jr=ma(wt),gi=ur(Gt,jr);if(j&&(Gt=pw(Gt,j,G,ot)),ee&&(Gt=gw(Gt,ee,le,ot)),jt-=gi,ot&&jt<Ee){var Kn=Be(Gt,jr);return Cw(i,m,Oc,wt.placeholder,M,Gt,Kn,de,ve,Ee-jt)}var Vi=De?M:this,Mo=Ge?Vi[i]:i;return jt=Gt.length,de?Gt=FE(Gt,de):yt&&jt>1&&Gt.reverse(),Re&&ve<jt&&(Gt.length=ve),this&&this!==un&&this instanceof wt&&(Mo=Ft||il(Mo)),Mo.apply(Vi,Gt)}return wt}function bw(i,m){return function(M,j){return qI(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 Ed(i){return Ao(function(m){return m=v(m,ut(vt())),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?Sd(m,i):m;var j=Sd(m,Cc(i/zt(m)));return oe(m)?Jo(Tt(j),0,i).join(""):j.slice(0,i)}function wE(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!==un&&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"&&zr(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),iE(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&I,De=Re?le:e,Ge=Re?e:le,ot=Re?ee:e,yt=Re?e:ee;m|=Re?S:C,m&=~(Re?C:S),m&x||(m&=-4);var Ft=[i,m,G,ot,De,yt,Ge,de,ve,Ee],wt=M.apply(e,Ft);return Wd(i)&&Ow(wt,Ft),wt.placeholder=j,Nw(wt,i,m)}function Rd(i){var m=Xt[i];return function(M,j){if(M=Mi(M),j=j==null?0:Rr(Nt(j),292),j&&Ny(M)){var G=(an(M)+"e").split("e"),ee=m(G[0]+"e"+(+G[1]+j));return G=(an(ee)+"e").split("e"),+(G[0]+"e"+(+G[1]-j))}return m(M)}}var bE=ha&&1/qe(new ha([,-0]))[1]==B?function(i){return new ha(i)}:ep;function kw(i){return function(m){var M=Lr(m);return M==it?Me(m):M==En?Qe(m):nt(m,i(m))}}function So(i,m,M,j,G,ee,le,de){var ve=m&w;if(!ve&&typeof i!="function")throw new hn(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:Nd(i),ot=[i,m,M,j,G,Re,De,ee,le,de];if(Ge&&NE(ot,Ge),i=ot[0],m=ot[1],M=ot[2],j=ot[3],G=ot[4],de=ot[9]=ot[9]===e?ve?0:i.length:ar(ot[9]-Ee,0),!de&&m&(I|$)&&(m&=-25),!m||m==d)var yt=vE(i,m,M);else m==I||m==$?yt=yE(i,m,de):(m==S||m==(d|S))&&!G.length?yt=wE(i,m,M,j):yt=Oc.apply(e,ot);var Ft=Ge?rw:Ow;return Nw(Ft(yt,ot),i,m)}function Sw(i,m,M,j){return i===e||Ui(i,Pn[M])&&!cn.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 xE(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,ot=M&c?new Is:e;for(ee.set(i,m),ee.set(m,i);++De<de;){var yt=i[De],Ft=m[De];if(j)var wt=le?j(Ft,yt,De,m,i,ee):j(yt,Ft,De,i,m,ee);if(wt!==e){if(wt)continue;Ge=!1;break}if(ot){if(!W(m,function(jt,Gt){if(!_t(ot,Gt)&&(yt===jt||G(yt,jt,M,j,ee)))return ot.push(Gt)})){Ge=!1;break}}else if(!(yt===Ft||G(yt,Ft,M,j,ee))){Ge=!1;break}}return ee.delete(i),ee.delete(m),Ge}function CE(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 je:return!(i.byteLength!=m.byteLength||!ee(new yc(i),new yc(m)));case Te:case $e:case gt:return Ui(+i,+m);case Ye:return i.name==m.name&&i.message==m.message;case fn:case Rn:return i==m+"";case it:var de=Me;case En:var ve=j&o;if(de||(de=qe),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 Zn:if(Za)return Za.call(i)==Za.call(m)}return!1}function kE(i,m,M,j,G,ee){var le=M&o,de=Ld(i),ve=de.length,Ee=Ld(m),Re=Ee.length;if(ve!=Re&&!le)return!1;for(var De=ve;De--;){var Ge=de[De];if(!(le?Ge in m:cn.call(m,Ge)))return!1}var ot=ee.get(i),yt=ee.get(m);if(ot&&yt)return ot==m&&yt==i;var Ft=!0;ee.set(i,m),ee.set(m,i);for(var wt=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}wt||(wt=Ge=="constructor")}if(Ft&&!wt){var jr=i.constructor,gi=m.constructor;jr!=gi&&"constructor"in i&&"constructor"in m&&!(typeof jr=="function"&&jr instanceof jr&&typeof gi=="function"&&gi instanceof gi)&&(Ft=!1)}return ee.delete(i),ee.delete(m),Ft}function Ao(i){return zd(Rw(i,e,zw),i+"")}function Ld(i){return qy(i,dr,Pd)}function Od(i){return qy(i,Jr,Tw)}var Nd=Sc?function(i){return Sc.get(i)}:ep;function Fc(i){for(var m=i.name+"",M=da[m],j=cn.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=cn.call(J,"placeholder")?J:i;return m.placeholder}function vt(){var i=J.iteratee||Zd;return i=i===Zd?Yy:i,arguments.length?i(arguments[0],arguments[1]):i}function Wc(i,m){var M=i.__data__;return EE(m)?M[typeof m=="string"?"string":"hash"]:M.map}function Dd(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 SE(i){var m=cn.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 Pd=ud?function(i){return i==null?[]:(i=Pt(i),Er(ud(i),function(m){return Ly.call(i,m)}))}:tp,Tw=ud?function(i){for(var m=[];i;)T(m,Pd(i)),i=wc(i);return m}:tp,Lr=Br;(hd&&Lr(new hd(new ArrayBuffer(1)))!=Xe||Ya&&Lr(new Ya)!=it||dd&&Lr(dd.resolve())!=Yt||ha&&Lr(new ha)!=En||Xa&&Lr(new Xa)!=Ue)&&(Lr=function(i){var m=Br(i),M=m==gn?i.constructor:e,j=M?Os(M):"";if(j)switch(j){case sI:return Xe;case aI:return it;case lI:return Yt;case cI:return En;case uI:return Ue}return m});function AE(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=Rr(m,i+le);break;case"takeRight":i=ar(i,m-le);break}}return{start:i,end:m}}function _E(i){var m=i.match(Wi);return m?m[1].split(ws):[]}function $w(i,m,M){m=Zo(m,i);for(var j=-1,G=m.length,ee=!1;++j<G;){var le=so(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&&qc(G)&&_o(le,G)&&($t(i)||Ns(i)))}function TE(i){var m=i.length,M=new i.constructor(m);return m&&typeof i[0]=="string"&&cn.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 $E(i,m,M){var j=i.constructor;switch(m){case je:return Id(i);case Te:case $e:return new j(+i);case Xe:return hE(i,M);case ft:case At:case St:case Dt:case Ot:case dt:case xt:case Cn:case _r:return hw(i,M);case it:return new j;case gt:case Rn:return new j(i);case fn:return dE(i);case En:return new j;case Zn:return pE(i)}}function ME(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(Zi,`{
1469
1469
  /* [wrapped with `+m+`] */
1470
- `)}function IE(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 Br(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 Pd(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 EE(i){var m=typeof i;return m=="string"||m=="number"||m=="symbol"||m=="boolean"?i!=="__proto__":i===null}function Fd(i){var m=Pc(i),M=J[m];if(typeof M!="function"||!(m in qt.prototype))return!1;if(i===M)return!0;var j=Od(M);return!!j&&i===j[0]}function RE(i){return!!Iy&&Iy in i}var LE=Ts?To:tp;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 OE(i){var m=Hc(i,function(j){return M.size===g&&M.clear(),j}),M=m.cache;return m}function NE(i,m){var M=i[1],j=m[1],G=M|j,ee=G<(d|w|R),le=j==R&&M==I||j==R&&M==L&&i[7].length<=m[8]||j==(R|L)&&m[7].length<=m[8]&&M==I;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?Be(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?Be(i[5],s):m[6]),de=m[7],de&&(i[7]=de),j&R&&(i[8]=i[8]==null?m[8]:Er(i[8],m[8])),i[9]==null&&(i[9]=m[9]),i[0]=m[0],i[1]=G,i}function DE(i){var m=[];if(i!=null)for(var M in Pt(i))m.push(M);return m}function PE(i){return fc.call(i)}function Rw(i,m,M){return m=sr(m===e?i.length-1:m,0),function(){for(var j=arguments,G=-1,ee=sr(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 FE(i,m){for(var M=i.length,j=Er(m.length,M),G=Xr(i);j--;){var ee=m[j];i[j]=_o(ee,M)?G[ee]:e}return i}function Wd(i,m){if(!(m==="constructor"&&typeof i[m]=="function")&&m!="__proto__")return i[m]}var Ow=Dw(rw),sl=JM||function(i,m){return un.setTimeout(i,m)},Bd=Dw(aE);function Nw(i,m,M){var j=m+"";return Bd(i,ME(j,WE(_E(j),M)))}function Dw(i){var m=0,M=0;return function(){var j=rI(),G=O-(j-M);if(M=j,G>0){if(++m>=F)return arguments[0]}else m=0;return i.apply(e,arguments)}}function Wc(i,m){var M=-1,j=i.length,G=j-1;for(m=m===e?j:m;++M<m;){var ee=Cd(M,G),le=i[ee];i[ee]=i[M],i[M]=le}return i.length=m,i}var Pw=OE(function(i){var m=[];return i.charCodeAt(0)===46&&m.push(""),i.replace(Hn,function(M,j,G,ee){m.push(G?ee.replace(qa,"$1"):j||M)}),m});function so(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 gc.call(i)}catch{}try{return i+""}catch{}}return""}function WE(i,m){return vr(ae,function(M){var j="_."+M[0];m&M[1]&&!ci(i,j)&&i.push(j)}),i.sort()}function Fw(i){if(i instanceof qt)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 BE(i,m,M){(M?Br(i,m,M):m===e)?m=1:m=sr(Nt(m),0);var j=i==null?0:i.length;if(!j||m<1)return[];for(var G=0,ee=0,le=xe(xc(j/m));G<j;)le[ee++]=Ti(i,G,G+=m);return le}function zE(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 jE(){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],wr(m,1))}var HE=Bt(function(i,m){return qn(i)?el(i,wr(m,1,qn,!0)):[]}),UE=Bt(function(i,m){var M=$i(m);return qn(M)&&(M=e),qn(i)?el(i,wr(m,1,qn,!0),vt(M,2)):[]}),VE=Bt(function(i,m){var M=$i(m);return qn(M)&&(M=e),qn(i)?el(i,wr(m,1,qn,!0),e,M):[]});function qE(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 KE(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 GE(i,m){return i&&i.length?Ec(i,vt(m,3),!0,!0):[]}function YE(i,m){return i&&i.length?Ec(i,vt(m,3),!0):[]}function XE(i,m,M,j){var G=i==null?0:i.length;return G?(M&&typeof M!="number"&&Br(i,m,M)&&(M=0,j=G),jI(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=sr(j+G,0)),re(i,vt(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?sr(j+G,0):Er(G,j-1)),re(i,vt(m,3),G,!0)}function zw(i){var m=i==null?0:i.length;return m?wr(i,1):[]}function QE(i){var m=i==null?0:i.length;return m?wr(i,B):[]}function ZE(i,m){var M=i==null?0:i.length;return M?(m=m===e?1:Nt(m),wr(i,m)):[]}function JE(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 eR(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=sr(j+G,0)),se(i,m,G)}function tR(i){var m=i==null?0:i.length;return m?Ti(i,0,-1):[]}var nR=Bt(function(i){var m=v(i,Td);return m.length&&m[0]===i[0]?vd(m):[]}),rR=Bt(function(i){var m=$i(i),M=v(i,Td);return m===$i(M)?m=e:M.pop(),M.length&&M[0]===i[0]?vd(M,vt(m,2)):[]}),iR=Bt(function(i){var m=$i(i),M=v(i,Td);return m=typeof m=="function"?m:e,m&&M.pop(),M.length&&M[0]===i[0]?vd(M,e,m):[]});function oR(i,m){return i==null?"":tI.call(i,m)}function $i(i){var m=i==null?0:i.length;return m?i[m-1]:e}function sR(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?sr(j+G,0):Er(G,j-1)),m===m?kt(i,m,G):re(i,Ce,G,!0)}function aR(i,m){return i&&i.length?Jy(i,Nt(m)):e}var lR=Bt(Hw);function Hw(i,m){return i&&i.length&&m&&m.length?xd(i,m):i}function cR(i,m,M){return i&&i.length&&m&&m.length?xd(i,m,vt(M,2)):i}function uR(i,m,M){return i&&i.length&&m&&m.length?xd(i,m,e,M):i}var hR=Ao(function(i,m){var M=i==null?0:i.length,j=pd(i,m);return nw(i,v(m,function(G){return _o(G,M)?+G:G}).sort(dw)),j});function dR(i,m){var M=[];if(!(i&&i.length))return M;var j=-1,G=[],ee=i.length;for(m=vt(m,3);++j<ee;){var le=i[j];m(le,j,i)&&(M.push(le),G.push(j))}return nw(i,G),M}function zd(i){return i==null?i:oI.call(i)}function pR(i,m,M){var j=i==null?0:i.length;return j?(M&&typeof M!="number"&&Br(i,m,M)?(m=0,M=j):(m=m==null?0:Nt(m),M=M===e?j:Nt(M)),Ti(i,m,M)):[]}function gR(i,m){return Ic(i,m)}function fR(i,m,M){return Sd(i,m,vt(M,2))}function mR(i,m){var M=i==null?0:i.length;if(M){var j=Ic(i,m);if(j<M&&Ui(i[j],m))return j}return-1}function vR(i,m){return Ic(i,m,!0)}function yR(i,m,M){return Sd(i,m,vt(M,2),!0)}function wR(i,m){var M=i==null?0:i.length;if(M){var j=Ic(i,m,!0)-1;if(Ui(i[j],m))return j}return-1}function bR(i){return i&&i.length?iw(i):[]}function xR(i,m){return i&&i.length?iw(i,vt(m,2)):[]}function CR(i){var m=i==null?0:i.length;return m?Ti(i,1,m):[]}function kR(i,m,M){return i&&i.length?(m=M||m===e?1:Nt(m),Ti(i,0,m<0?0:m)):[]}function SR(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 AR(i,m){return i&&i.length?Ec(i,vt(m,3),!1,!0):[]}function _R(i,m){return i&&i.length?Ec(i,vt(m,3)):[]}var TR=Bt(function(i){return Qo(wr(i,1,qn,!0))}),$R=Bt(function(i){var m=$i(i);return qn(m)&&(m=e),Qo(wr(i,1,qn,!0),vt(m,2))}),MR=Bt(function(i){var m=$i(i);return m=typeof m=="function"?m:e,Qo(wr(i,1,qn,!0),e,m)});function IR(i){return i&&i.length?Qo(i):[]}function ER(i,m){return i&&i.length?Qo(i,vt(m,2)):[]}function RR(i,m){return m=typeof m=="function"?m:e,i&&i.length?Qo(i,e,m):[]}function jd(i){if(!(i&&i.length))return[];var m=0;return i=Ir(i,function(M){if(qn(M))return m=sr(M.length,m),!0}),Ze(m,function(M){return v(i,we(M))})}function Uw(i,m){if(!(i&&i.length))return[];var M=jd(i);return m==null?M:v(M,function(j){return lr(m,e,j)})}var LR=Bt(function(i,m){return qn(i)?el(i,m):[]}),OR=Bt(function(i){return _d(Ir(i,qn))}),NR=Bt(function(i){var m=$i(i);return qn(m)&&(m=e),_d(Ir(i,qn),vt(m,2))}),DR=Bt(function(i){var m=$i(i);return m=typeof m=="function"?m:e,_d(Ir(i,qn),e,m)}),PR=Bt(jd);function FR(i,m){return lw(i||[],m||[],Ja)}function WR(i,m){return lw(i||[],m||[],rl)}var BR=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 zR(i,m){return m(i),i}function Bc(i,m){return m(i)}var jR=Ao(function(i){var m=i.length,M=m?i[0]:0,j=this.__wrapped__,G=function(ee){return pd(ee,i)};return m>1||this.__actions__.length||!(j instanceof qt)||!_o(M)?this.thru(G):(j=j.slice(M,+M+(m?1:0)),j.__actions__.push({func:Bc,args:[G],thisArg:e}),new Ai(j,this.__chain__).thru(function(ee){return m&&!ee.length&&ee.push(e),ee}))});function HR(){return Vw(this)}function UR(){return new Ai(this.value(),this.__chain__)}function VR(){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 qR(){return this}function KR(i){for(var m,M=this;M instanceof Ac;){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 GR(){var i=this.__wrapped__;if(i instanceof qt){var m=i;return this.__actions__.length&&(m=new qt(this)),m=m.reverse(),m.__actions__.push({func:Bc,args:[zd],thisArg:e}),new Ai(m,this.__chain__)}return this.thru(zd)}function YR(){return aw(this.__wrapped__,this.__actions__)}var XR=Rc(function(i,m,M){cn.call(i,M)?++i[M]:ko(i,M,1)});function QR(i,m,M){var j=$t(i)?yr:zI;return M&&Br(i,m,M)&&(m=e),j(i,vt(m,3))}function ZR(i,m){var M=$t(i)?Ir:Uy;return M(i,vt(m,3))}var JR=yw(Ww),eL=yw(Bw);function tL(i,m){return wr(zc(i,m),1)}function nL(i,m){return wr(zc(i,m),B)}function rL(i,m,M){return M=M===e?1:Nt(M),wr(zc(i,m),M)}function qw(i,m){var M=$t(i)?vr:Xo;return M(i,vt(m,3))}function Kw(i,m){var M=$t(i)?_s:Hy;return M(i,vt(m,3))}var iL=Rc(function(i,m,M){cn.call(i,M)?i[M].push(m):ko(i,M,[m])});function oL(i,m,M,j){i=Qr(i)?i:ya(i),M=M&&!j?Nt(M):0;var G=i.length;return M<0&&(M=sr(G+M,0)),qc(i)?M<=G&&i.indexOf(m,M)>-1:!!G&&se(i,m,M)>-1}var sL=Bt(function(i,m,M){var j=-1,G=typeof m=="function",ee=Qr(i)?xe(i.length):[];return Xo(i,function(le){ee[++j]=G?lr(m,le,M):tl(le,m,M)}),ee}),aL=Rc(function(i,m,M){ko(i,M,m)});function zc(i,m){var M=$t(i)?v:Xy;return M(i,vt(m,3))}function lL(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 cL=Rc(function(i,m,M){i[M?0:1].push(m)},function(){return[[],[]]});function uL(i,m,M){var j=$t(i)?k:Le,G=arguments.length<3;return j(i,vt(m,4),M,G,Xo)}function hL(i,m,M){var j=$t(i)?D:Le,G=arguments.length<3;return j(i,vt(m,4),M,G,Hy)}function dL(i,m){var M=$t(i)?Ir:Uy;return M(i,Uc(vt(m,3)))}function pL(i){var m=$t(i)?Wy:oE;return m(i)}function gL(i,m,M){(M?Br(i,m,M):m===e)?m=1:m=Nt(m);var j=$t(i)?DI:sE;return j(i,m)}function fL(i){var m=$t(i)?PI:lE;return m(i)}function mL(i){if(i==null)return 0;if(Qr(i))return qc(i)?zt(i):i.length;var m=Rr(i);return m==it||m==En?i.size:wd(i).length}function vL(i,m,M){var j=$t(i)?W:cE;return M&&Br(i,m,M)&&(m=e),j(i,vt(m,3))}var yL=Bt(function(i,m){if(i==null)return[];var M=m.length;return M>1&&Br(i,m[0],m[1])?m=[]:M>2&&Br(m[0],m[1],m[2])&&(m=[m[0]]),ew(i,wr(m,1),[])}),jc=ZM||function(){return un.Date.now()};function wL(i,m){if(typeof m!="function")throw new hn(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 hn(y);return i=Nt(i),function(){return--i>0&&(M=m.apply(this,arguments)),i<=1&&(m=e),M}}var Hd=Bt(function(i,m,M){var j=d;if(M.length){var G=Be(M,ma(Hd));j|=S}return So(i,j,m,M,G)}),Xw=Bt(function(i,m,M){var j=d|w;if(M.length){var G=Be(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,I,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 hn(y);m=Mi(m)||0,Mn(M)&&(Re=!!M.leading,De="maxWait"in M,ee=De?sr(Mi(M.maxWait)||0,m):ee,Ge="trailing"in M?!!M.trailing:Ge);function ot(Kn){var Vi=j,Mo=G;return j=G=e,Ee=Kn,le=i.apply(Mo,Vi),le}function yt(Kn){return Ee=Kn,de=sl(jt,m),Re?ot(Kn):le}function Ft(Kn){var Vi=Kn-ve,Mo=Kn-Ee,yb=m-Vi;return De?Er(yb,ee-Mo):yb}function wt(Kn){var Vi=Kn-ve,Mo=Kn-Ee;return ve===e||Vi>=m||Vi<0||De&&Mo>=ee}function jt(){var Kn=jc();if(wt(Kn))return Gt(Kn);de=sl(jt,Ft(Kn))}function Gt(Kn){return de=e,Ge&&j?ot(Kn):(j=G=e,le)}function pi(){de!==e&&cw(de),Ee=0,j=ve=G=de=e}function zr(){return de===e?le:Gt(jc())}function gi(){var Kn=jc(),Vi=wt(Kn);if(j=arguments,G=this,ve=Kn,Vi){if(de===e)return yt(ve);if(De)return cw(de),de=sl(jt,m),ot(ve)}return de===e&&(de=sl(jt,m)),le}return gi.cancel=pi,gi.flush=zr,gi}var bL=Bt(function(i,m){return jy(i,1,m)}),xL=Bt(function(i,m,M){return jy(i,Mi(m)||0,M)});function CL(i){return So(i,P)}function Hc(i,m){if(typeof i!="function"||m!=null&&typeof m!="function")throw new hn(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(Hc.Cache||Co),M}Hc.Cache=Co;function Uc(i){if(typeof i!="function")throw new hn(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 kL(i){return Yw(2,i)}var SL=uE(function(i,m){m=m.length==1&&$t(m[0])?v(m[0],ut(vt())):v(wr(m,1),ut(vt()));var M=m.length;return Bt(function(j){for(var G=-1,ee=Er(j.length,M);++G<ee;)j[G]=m[G].call(this,j[G]);return lr(i,this,j)})}),Ud=Bt(function(i,m){var M=Be(m,ma(Ud));return So(i,S,e,m,M)}),eb=Bt(function(i,m){var M=Be(m,ma(eb));return So(i,C,e,m,M)}),AL=Ao(function(i,m){return So(i,L,e,e,e,m)});function _L(i,m){if(typeof i!="function")throw new hn(y);return m=m===e?m:Nt(m),Bt(i,m)}function TL(i,m){if(typeof i!="function")throw new hn(y);return m=m==null?0:sr(Nt(m),0),Bt(function(M){var j=M[m],G=Jo(M,0,m);return j&&T(G,j),lr(i,this,G)})}function $L(i,m,M){var j=!0,G=!0;if(typeof i!="function")throw new hn(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 ML(i){return Gw(i,1)}function IL(i,m){return Ud($d(m),i)}function EL(){if(!arguments.length)return[];var i=arguments[0];return $t(i)?i:[i]}function RL(i){return _i(i,a)}function LL(i,m){return m=typeof m=="function"?m:e,_i(i,a,m)}function OL(i){return _i(i,l|a)}function NL(i,m){return m=typeof m=="function"?m:e,_i(i,l|a,m)}function DL(i,m){return m==null||zy(i,m,dr(m))}function Ui(i,m){return i===m||i!==i&&m!==m}var PL=Dc(md),FL=Dc(function(i,m){return i>=m}),Ns=Ky(function(){return arguments}())?Ky:function(i){return Fn(i)&&cn.call(i,"callee")&&!Ly.call(i,"callee")},$t=xe.isArray,WL=Yr?ut(Yr):KI;function Qr(i){return i!=null&&Vc(i.length)&&!To(i)}function qn(i){return Fn(i)&&Qr(i)}function BL(i){return i===!0||i===!1||Fn(i)&&Wr(i)==Te}var es=eI||tp,zL=Go?ut(Go):GI;function jL(i){return Fn(i)&&i.nodeType===1&&!al(i)}function HL(i){if(i==null)return!0;if(Qr(i)&&($t(i)||typeof i=="string"||typeof i.splice=="function"||es(i)||va(i)||Ns(i)))return!i.length;var m=Rr(i);if(m==it||m==En)return!i.size;if(ol(i))return!wd(i).length;for(var M in i)if(cn.call(i,M))return!1;return!0}function UL(i,m){return nl(i,m)}function VL(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 Vd(i){if(!Fn(i))return!1;var m=Wr(i);return m==Ye||m==Ie||typeof i.message=="string"&&typeof i.name=="string"&&!al(i)}function qL(i){return typeof i=="number"&&Ny(i)}function To(i){if(!Mn(i))return!1;var m=Wr(i);return m==Ke||m==pt||m==fe||m==fr}function tb(i){return typeof i=="number"&&i==Nt(i)}function Vc(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?ut(Dn):XI;function KL(i,m){return i===m||yd(i,m,Nd(m))}function GL(i,m,M){return M=typeof M=="function"?M:e,yd(i,m,Nd(m),M)}function YL(i){return rb(i)&&i!=+i}function XL(i){if(LE(i))throw new ht(p);return Gy(i)}function QL(i){return i===null}function ZL(i){return i==null}function rb(i){return typeof i=="number"||Fn(i)&&Wr(i)==gt}function al(i){if(!Fn(i)||Wr(i)!=gn)return!1;var m=yc(i);if(m===null)return!0;var M=cn.call(m,"constructor")&&m.constructor;return typeof M=="function"&&M instanceof M&&gc.call(M)==GM}var qd=ai?ut(ai):QI;function JL(i){return tb(i)&&i>=-9007199254740991&&i<=U}var ib=li?ut(li):ZI;function qc(i){return typeof i=="string"||!$t(i)&&Fn(i)&&Wr(i)==Rn}function di(i){return typeof i=="symbol"||Fn(i)&&Wr(i)==Qn}var va=ki?ut(ki):JI;function eO(i){return i===e}function tO(i){return Fn(i)&&Rr(i)==Ue}function nO(i){return Fn(i)&&Wr(i)==ke}var rO=Dc(bd),iO=Dc(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=Rr(i),M=m==it?Me:m==En?qe: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*K}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||Un.test(i)?vn(i.slice(2),M?2:8):Ut.test(i)?Z:+i}function ab(i){return oo(i,Zr(i))}function oO(i){return i?Es(Nt(i),-9007199254740991,U):i===0?i:0}function sn(i){return i==null?"":hi(i)}var sO=ga(function(i,m){if(ol(m)||Qr(m)){oo(m,dr(m),i);return}for(var M in m)cn.call(m,M)&&Ja(i,M,m[M])}),lb=ga(function(i,m){oo(m,Zr(m),i)}),Kc=ga(function(i,m,M,j){oo(m,Zr(m),i,j)}),aO=ga(function(i,m,M,j){oo(m,dr(m),i,j)}),lO=Ao(pd);function cO(i,m){var M=pa(i);return m==null?M:By(M,m)}var uO=Bt(function(i,m){i=Pt(i);var M=-1,j=m.length,G=j>2?m[2]:e;for(G&&Br(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])&&!cn.call(i,Ee))&&(i[Ee]=ee[Ee])}return i}),hO=Bt(function(i){return i.push(e,Aw),lr(cb,e,i)});function dO(i,m){return Q(i,vt(m,3),io)}function pO(i,m){return Q(i,vt(m,3),fd)}function gO(i,m){return i==null?i:gd(i,vt(m,3),Zr)}function fO(i,m){return i==null?i:Vy(i,vt(m,3),Zr)}function mO(i,m){return i&&io(i,vt(m,3))}function vO(i,m){return i&&fd(i,vt(m,3))}function yO(i){return i==null?[]:$c(i,dr(i))}function wO(i){return i==null?[]:$c(i,Zr(i))}function Kd(i,m,M){var j=i==null?e:Rs(i,m);return j===e?M:j}function bO(i,m){return i!=null&&$w(i,m,HI)}function Gd(i,m){return i!=null&&$w(i,m,UI)}var xO=bw(function(i,m,M){m!=null&&typeof m.toString!="function"&&(m=fc.call(m)),i[m]=M},Xd(Jr)),CO=bw(function(i,m,M){m!=null&&typeof m.toString!="function"&&(m=fc.call(m)),cn.call(i,m)?i[m].push(M):i[m]=[M]},vt),kO=Bt(tl);function dr(i){return Qr(i)?Fy(i):wd(i)}function Zr(i){return Qr(i)?Fy(i,!0):eE(i)}function SO(i,m){var M={};return m=vt(m,3),io(i,function(j,G,ee){ko(M,m(j,G,ee),j)}),M}function AO(i,m){var M={};return m=vt(m,3),io(i,function(j,G,ee){ko(M,G,m(j,G,ee))}),M}var _O=ga(function(i,m,M){Mc(i,m,M)}),cb=ga(function(i,m,M,j){Mc(i,m,M,j)}),TO=Ao(function(i,m){var M={};if(i==null)return M;var j=!1;m=v(m,function(ee){return ee=Zo(ee,i),j||(j=ee.length>1),ee}),oo(i,Ld(i),M),j&&(M=_i(M,l|u|a,xE));for(var G=m.length;G--;)Ad(M,m[G]);return M});function $O(i,m){return ub(i,Uc(vt(m)))}var MO=Ao(function(i,m){return i==null?{}:nE(i,m)});function ub(i,m){if(i==null)return{};var M=v(Ld(i),function(j){return[j]});return m=vt(m),tw(i,M,function(j,G){return m(j,G[0])})}function IO(i,m,M){m=Zo(m,i);var j=-1,G=m.length;for(G||(G=1,i=e);++j<G;){var ee=i==null?e:i[so(m[j])];ee===e&&(j=G,ee=M),i=To(ee)?ee.call(i):ee}return i}function EO(i,m,M){return i==null?i:rl(i,m,M)}function RO(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 LO(i,m,M){var j=$t(i),G=j||es(i)||va(i);if(m=vt(m,4),M==null){var ee=i&&i.constructor;G?M=j?new ee:[]:Mn(i)?M=To(ee)?pa(yc(i)):{}:M={}}return(G?vr:io)(i,function(le,de,ve){return m(M,le,de,ve)}),M}function OO(i,m){return i==null?!0:Ad(i,m)}function NO(i,m,M){return i==null?i:sw(i,m,$d(M))}function DO(i,m,M,j){return j=typeof j=="function"?j:e,i==null?i:sw(i,m,$d(M),j)}function ya(i){return i==null?[]:kn(i,dr(i))}function PO(i){return i==null?[]:kn(i,Zr(i))}function FO(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 WO(i,m,M){return m=$o(m),M===e?(M=m,m=0):M=$o(M),i=Mi(i),VI(i,m,M)}function BO(i,m,M){if(M&&typeof M!="boolean"&&Br(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 Er(i+G*(m-i+ze("1e-"+((G+"").length-1))),m)}return Cd(i,m)}var zO=fa(function(i,m,M){return m=m.toLowerCase(),i+(M?pb(m):m)});function pb(i){return Yd(sn(i).toLowerCase())}function gb(i){return i=sn(i),i&&i.replace(Ln,Sn).replace(yo,"")}function jO(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 HO(i){return i=sn(i),i&&Ha.test(i)?i.replace(uo,V):i}function UO(i){return i=sn(i),i&&Fi.test(i)?i.replace(_r,"\\$&"):i}var VO=fa(function(i,m,M){return i+(M?"-":"")+m.toLowerCase()}),qO=fa(function(i,m,M){return i+(M?" ":"")+m.toLowerCase()}),KO=vw("toLowerCase");function GO(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 Nc(Cc(G),M)+i+Nc(xc(G),M)}function YO(i,m,M){i=sn(i),m=Nt(m);var j=m?zt(i):0;return m&&j<m?i+Nc(m-j,M):i}function XO(i,m,M){i=sn(i),m=Nt(m);var j=m?zt(i):0;return m&&j<m?Nc(m-j,M)+i:i}function QO(i,m,M){return M||m==null?m=0:m&&(m=+m),iI(sn(i).replace(Tn,""),m||0)}function ZO(i,m,M){return(M?Br(i,m,M):m===e)?m=1:m=Nt(m),kd(sn(i),m)}function JO(){var i=arguments,m=sn(i[0]);return i.length<3?m:m.replace(i[1],i[2])}var eN=fa(function(i,m,M){return i+(M?"_":"")+m.toLowerCase()});function tN(i,m,M){return M&&typeof M!="number"&&Br(i,m,M)&&(m=M=e),M=M===e?te:M>>>0,M?(i=sn(i),i&&(typeof m=="string"||m!=null&&!qd(m))&&(m=hi(m),!m&&oe(i))?Jo(Tt(i),0,M):i.split(m,M)):[]}var nN=fa(function(i,m,M){return i+(M?" ":"")+Yd(m)});function rN(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 iN(i,m,M){var j=J.templateSettings;M&&Br(i,m,M)&&(m=e),i=sn(i),m=Kc({},m,j,Sw);var G=Kc({},m.imports,j.imports,Sw),ee=dr(G),le=kn(G,ee),de,ve,Ee=0,Re=m.interpolate||vi,De="__p += '",Ge=Fr((m.escape||vi).source+"|"+Re.source+"|"+(Re===ys?Bi:vi).source+"|"+(m.evaluate||vi).source+"|$","g"),ot="//# sourceURL="+(cn.call(m,"sourceURL")?(m.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ro+"]")+`
1471
- `;i.replace(Ge,function(wt,jt,Gt,pi,zr,gi){return Gt||(Gt=pi),De+=i.slice(Ee,gi).replace(Mr,X),jt&&(de=!0,De+=`' +
1470
+ `)}function IE(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 zr(i,m,M){if(!Mn(M))return!1;var j=typeof m;return(j=="number"?Zr(M)&&_o(m,M.length):j=="string"&&m in M)?Ui(M[m],i):!1}function Fd(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 EE(i){var m=typeof i;return m=="string"||m=="number"||m=="symbol"||m=="boolean"?i!=="__proto__":i===null}function Wd(i){var m=Fc(i),M=J[m];if(typeof M!="function"||!(m in qt.prototype))return!1;if(i===M)return!0;var j=Nd(M);return!!j&&i===j[0]}function RE(i){return!!Iy&&Iy in i}var LE=Ts?To:np;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 OE(i){var m=Uc(i,function(j){return M.size===g&&M.clear(),j}),M=m.cache;return m}function NE(i,m){var M=i[1],j=m[1],G=M|j,ee=G<(d|w|R),le=j==R&&M==I||j==R&&M==L&&i[7].length<=m[8]||j==(R|L)&&m[7].length<=m[8]&&M==I;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?Be(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?Be(i[5],s):m[6]),de=m[7],de&&(i[7]=de),j&R&&(i[8]=i[8]==null?m[8]:Rr(i[8],m[8])),i[9]==null&&(i[9]=m[9]),i[0]=m[0],i[1]=G,i}function DE(i){var m=[];if(i!=null)for(var M in Pt(i))m.push(M);return m}function PE(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 FE(i,m){for(var M=i.length,j=Rr(m.length,M),G=Qr(i);j--;){var ee=m[j];i[j]=_o(ee,M)?G[ee]:e}return i}function Bd(i,m){if(!(m==="constructor"&&typeof i[m]=="function")&&m!="__proto__")return i[m]}var Ow=Dw(rw),sl=JM||function(i,m){return un.setTimeout(i,m)},zd=Dw(aE);function Nw(i,m,M){var j=m+"";return zd(i,ME(j,WE(_E(j),M)))}function Dw(i){var m=0,M=0;return function(){var j=rI(),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=kd(M,G),le=i[ee];i[ee]=i[M],i[M]=le}return i.length=m,i}var Pw=OE(function(i){var m=[];return i.charCodeAt(0)===46&&m.push(""),i.replace(Hn,function(M,j,G,ee){m.push(G?ee.replace(qa,"$1"):j||M)}),m});function so(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 WE(i,m){return vr(ae,function(M){var j="_."+M[0];m&M[1]&&!ci(i,j)&&i.push(j)}),i.sort()}function Fw(i){if(i instanceof qt)return i.clone();var m=new Ai(i.__wrapped__,i.__chain__);return m.__actions__=Qr(i.__actions__),m.__index__=i.__index__,m.__values__=i.__values__,m}function BE(i,m,M){(M?zr(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 zE(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 jE(){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)?Qr(M):[M],wr(m,1))}var HE=Bt(function(i,m){return qn(i)?el(i,wr(m,1,qn,!0)):[]}),UE=Bt(function(i,m){var M=$i(m);return qn(M)&&(M=e),qn(i)?el(i,wr(m,1,qn,!0),vt(M,2)):[]}),VE=Bt(function(i,m){var M=$i(m);return qn(M)&&(M=e),qn(i)?el(i,wr(m,1,qn,!0),e,M):[]});function qE(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 KE(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 GE(i,m){return i&&i.length?Rc(i,vt(m,3),!0,!0):[]}function YE(i,m){return i&&i.length?Rc(i,vt(m,3),!0):[]}function XE(i,m,M,j){var G=i==null?0:i.length;return G?(M&&typeof M!="number"&&zr(i,m,M)&&(M=0,j=G),jI(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,vt(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):Rr(G,j-1)),re(i,vt(m,3),G,!0)}function zw(i){var m=i==null?0:i.length;return m?wr(i,1):[]}function QE(i){var m=i==null?0:i.length;return m?wr(i,B):[]}function ZE(i,m){var M=i==null?0:i.length;return M?(m=m===e?1:Nt(m),wr(i,m)):[]}function JE(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 eR(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 tR(i){var m=i==null?0:i.length;return m?Ti(i,0,-1):[]}var nR=Bt(function(i){var m=v(i,$d);return m.length&&m[0]===i[0]?yd(m):[]}),rR=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]?yd(M,vt(m,2)):[]}),iR=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]?yd(M,e,m):[]});function oR(i,m){return i==null?"":tI.call(i,m)}function $i(i){var m=i==null?0:i.length;return m?i[m-1]:e}function sR(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):Rr(G,j-1)),m===m?kt(i,m,G):re(i,Ce,G,!0)}function aR(i,m){return i&&i.length?Jy(i,Nt(m)):e}var lR=Bt(Hw);function Hw(i,m){return i&&i.length&&m&&m.length?Cd(i,m):i}function cR(i,m,M){return i&&i.length&&m&&m.length?Cd(i,m,vt(M,2)):i}function uR(i,m,M){return i&&i.length&&m&&m.length?Cd(i,m,e,M):i}var hR=Ao(function(i,m){var M=i==null?0:i.length,j=gd(i,m);return nw(i,v(m,function(G){return _o(G,M)?+G:G}).sort(dw)),j});function dR(i,m){var M=[];if(!(i&&i.length))return M;var j=-1,G=[],ee=i.length;for(m=vt(m,3);++j<ee;){var le=i[j];m(le,j,i)&&(M.push(le),G.push(j))}return nw(i,G),M}function jd(i){return i==null?i:oI.call(i)}function pR(i,m,M){var j=i==null?0:i.length;return j?(M&&typeof M!="number"&&zr(i,m,M)?(m=0,M=j):(m=m==null?0:Nt(m),M=M===e?j:Nt(M)),Ti(i,m,M)):[]}function gR(i,m){return Ec(i,m)}function fR(i,m,M){return Ad(i,m,vt(M,2))}function mR(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 vR(i,m){return Ec(i,m,!0)}function yR(i,m,M){return Ad(i,m,vt(M,2),!0)}function wR(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 bR(i){return i&&i.length?iw(i):[]}function xR(i,m){return i&&i.length?iw(i,vt(m,2)):[]}function CR(i){var m=i==null?0:i.length;return m?Ti(i,1,m):[]}function kR(i,m,M){return i&&i.length?(m=M||m===e?1:Nt(m),Ti(i,0,m<0?0:m)):[]}function SR(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 AR(i,m){return i&&i.length?Rc(i,vt(m,3),!1,!0):[]}function _R(i,m){return i&&i.length?Rc(i,vt(m,3)):[]}var TR=Bt(function(i){return Qo(wr(i,1,qn,!0))}),$R=Bt(function(i){var m=$i(i);return qn(m)&&(m=e),Qo(wr(i,1,qn,!0),vt(m,2))}),MR=Bt(function(i){var m=$i(i);return m=typeof m=="function"?m:e,Qo(wr(i,1,qn,!0),e,m)});function IR(i){return i&&i.length?Qo(i):[]}function ER(i,m){return i&&i.length?Qo(i,vt(m,2)):[]}function RR(i,m){return m=typeof m=="function"?m:e,i&&i.length?Qo(i,e,m):[]}function Hd(i){if(!(i&&i.length))return[];var m=0;return i=Er(i,function(M){if(qn(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=Hd(i);return m==null?M:v(M,function(j){return lr(m,e,j)})}var LR=Bt(function(i,m){return qn(i)?el(i,m):[]}),OR=Bt(function(i){return Td(Er(i,qn))}),NR=Bt(function(i){var m=$i(i);return qn(m)&&(m=e),Td(Er(i,qn),vt(m,2))}),DR=Bt(function(i){var m=$i(i);return m=typeof m=="function"?m:e,Td(Er(i,qn),e,m)}),PR=Bt(Hd);function FR(i,m){return lw(i||[],m||[],Ja)}function WR(i,m){return lw(i||[],m||[],rl)}var BR=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 zR(i,m){return m(i),i}function zc(i,m){return m(i)}var jR=Ao(function(i){var m=i.length,M=m?i[0]:0,j=this.__wrapped__,G=function(ee){return gd(ee,i)};return m>1||this.__actions__.length||!(j instanceof qt)||!_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 HR(){return Vw(this)}function UR(){return new Ai(this.value(),this.__chain__)}function VR(){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 qR(){return this}function KR(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 GR(){var i=this.__wrapped__;if(i instanceof qt){var m=i;return this.__actions__.length&&(m=new qt(this)),m=m.reverse(),m.__actions__.push({func:zc,args:[jd],thisArg:e}),new Ai(m,this.__chain__)}return this.thru(jd)}function YR(){return aw(this.__wrapped__,this.__actions__)}var XR=Lc(function(i,m,M){cn.call(i,M)?++i[M]:ko(i,M,1)});function QR(i,m,M){var j=$t(i)?yr:zI;return M&&zr(i,m,M)&&(m=e),j(i,vt(m,3))}function ZR(i,m){var M=$t(i)?Er:Uy;return M(i,vt(m,3))}var JR=yw(Ww),eL=yw(Bw);function tL(i,m){return wr(jc(i,m),1)}function nL(i,m){return wr(jc(i,m),B)}function rL(i,m,M){return M=M===e?1:Nt(M),wr(jc(i,m),M)}function qw(i,m){var M=$t(i)?vr:Xo;return M(i,vt(m,3))}function Kw(i,m){var M=$t(i)?_s:Hy;return M(i,vt(m,3))}var iL=Lc(function(i,m,M){cn.call(i,M)?i[M].push(m):ko(i,M,[m])});function oL(i,m,M,j){i=Zr(i)?i:ya(i),M=M&&!j?Nt(M):0;var G=i.length;return M<0&&(M=ar(G+M,0)),Kc(i)?M<=G&&i.indexOf(m,M)>-1:!!G&&se(i,m,M)>-1}var sL=Bt(function(i,m,M){var j=-1,G=typeof m=="function",ee=Zr(i)?xe(i.length):[];return Xo(i,function(le){ee[++j]=G?lr(m,le,M):tl(le,m,M)}),ee}),aL=Lc(function(i,m,M){ko(i,M,m)});function jc(i,m){var M=$t(i)?v:Xy;return M(i,vt(m,3))}function lL(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 cL=Lc(function(i,m,M){i[M?0:1].push(m)},function(){return[[],[]]});function uL(i,m,M){var j=$t(i)?k:Le,G=arguments.length<3;return j(i,vt(m,4),M,G,Xo)}function hL(i,m,M){var j=$t(i)?D:Le,G=arguments.length<3;return j(i,vt(m,4),M,G,Hy)}function dL(i,m){var M=$t(i)?Er:Uy;return M(i,Vc(vt(m,3)))}function pL(i){var m=$t(i)?Wy:oE;return m(i)}function gL(i,m,M){(M?zr(i,m,M):m===e)?m=1:m=Nt(m);var j=$t(i)?DI:sE;return j(i,m)}function fL(i){var m=$t(i)?PI:lE;return m(i)}function mL(i){if(i==null)return 0;if(Zr(i))return Kc(i)?zt(i):i.length;var m=Lr(i);return m==it||m==En?i.size:bd(i).length}function vL(i,m,M){var j=$t(i)?W:cE;return M&&zr(i,m,M)&&(m=e),j(i,vt(m,3))}var yL=Bt(function(i,m){if(i==null)return[];var M=m.length;return M>1&&zr(i,m[0],m[1])?m=[]:M>2&&zr(m[0],m[1],m[2])&&(m=[m[0]]),ew(i,wr(m,1),[])}),Hc=ZM||function(){return un.Date.now()};function wL(i,m){if(typeof m!="function")throw new hn(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 hn(y);return i=Nt(i),function(){return--i>0&&(M=m.apply(this,arguments)),i<=1&&(m=e),M}}var Ud=Bt(function(i,m,M){var j=d;if(M.length){var G=Be(M,ma(Ud));j|=S}return So(i,j,m,M,G)}),Xw=Bt(function(i,m,M){var j=d|w;if(M.length){var G=Be(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,I,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 hn(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 ot(Kn){var Vi=j,Mo=G;return j=G=e,Ee=Kn,le=i.apply(Mo,Vi),le}function yt(Kn){return Ee=Kn,de=sl(jt,m),Re?ot(Kn):le}function Ft(Kn){var Vi=Kn-ve,Mo=Kn-Ee,yb=m-Vi;return De?Rr(yb,ee-Mo):yb}function wt(Kn){var Vi=Kn-ve,Mo=Kn-Ee;return ve===e||Vi>=m||Vi<0||De&&Mo>=ee}function jt(){var Kn=Hc();if(wt(Kn))return Gt(Kn);de=sl(jt,Ft(Kn))}function Gt(Kn){return de=e,Ge&&j?ot(Kn):(j=G=e,le)}function pi(){de!==e&&cw(de),Ee=0,j=ve=G=de=e}function jr(){return de===e?le:Gt(Hc())}function gi(){var Kn=Hc(),Vi=wt(Kn);if(j=arguments,G=this,ve=Kn,Vi){if(de===e)return yt(ve);if(De)return cw(de),de=sl(jt,m),ot(ve)}return de===e&&(de=sl(jt,m)),le}return gi.cancel=pi,gi.flush=jr,gi}var bL=Bt(function(i,m){return jy(i,1,m)}),xL=Bt(function(i,m,M){return jy(i,Mi(m)||0,M)});function CL(i){return So(i,P)}function Uc(i,m){if(typeof i!="function"||m!=null&&typeof m!="function")throw new hn(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 hn(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 kL(i){return Yw(2,i)}var SL=uE(function(i,m){m=m.length==1&&$t(m[0])?v(m[0],ut(vt())):v(wr(m,1),ut(vt()));var M=m.length;return Bt(function(j){for(var G=-1,ee=Rr(j.length,M);++G<ee;)j[G]=m[G].call(this,j[G]);return lr(i,this,j)})}),Vd=Bt(function(i,m){var M=Be(m,ma(Vd));return So(i,S,e,m,M)}),eb=Bt(function(i,m){var M=Be(m,ma(eb));return So(i,C,e,m,M)}),AL=Ao(function(i,m){return So(i,L,e,e,e,m)});function _L(i,m){if(typeof i!="function")throw new hn(y);return m=m===e?m:Nt(m),Bt(i,m)}function TL(i,m){if(typeof i!="function")throw new hn(y);return m=m==null?0:ar(Nt(m),0),Bt(function(M){var j=M[m],G=Jo(M,0,m);return j&&T(G,j),lr(i,this,G)})}function $L(i,m,M){var j=!0,G=!0;if(typeof i!="function")throw new hn(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 ML(i){return Gw(i,1)}function IL(i,m){return Vd(Md(m),i)}function EL(){if(!arguments.length)return[];var i=arguments[0];return $t(i)?i:[i]}function RL(i){return _i(i,a)}function LL(i,m){return m=typeof m=="function"?m:e,_i(i,a,m)}function OL(i){return _i(i,l|a)}function NL(i,m){return m=typeof m=="function"?m:e,_i(i,l|a,m)}function DL(i,m){return m==null||zy(i,m,dr(m))}function Ui(i,m){return i===m||i!==i&&m!==m}var PL=Pc(vd),FL=Pc(function(i,m){return i>=m}),Ns=Ky(function(){return arguments}())?Ky:function(i){return Fn(i)&&cn.call(i,"callee")&&!Ly.call(i,"callee")},$t=xe.isArray,WL=Xr?ut(Xr):KI;function Zr(i){return i!=null&&qc(i.length)&&!To(i)}function qn(i){return Fn(i)&&Zr(i)}function BL(i){return i===!0||i===!1||Fn(i)&&Br(i)==Te}var es=eI||np,zL=Go?ut(Go):GI;function jL(i){return Fn(i)&&i.nodeType===1&&!al(i)}function HL(i){if(i==null)return!0;if(Zr(i)&&($t(i)||typeof i=="string"||typeof i.splice=="function"||es(i)||va(i)||Ns(i)))return!i.length;var m=Lr(i);if(m==it||m==En)return!i.size;if(ol(i))return!bd(i).length;for(var M in i)if(cn.call(i,M))return!1;return!0}function UL(i,m){return nl(i,m)}function VL(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 qd(i){if(!Fn(i))return!1;var m=Br(i);return m==Ye||m==Ie||typeof i.message=="string"&&typeof i.name=="string"&&!al(i)}function qL(i){return typeof i=="number"&&Ny(i)}function To(i){if(!Mn(i))return!1;var m=Br(i);return m==Ke||m==pt||m==fe||m==fr}function tb(i){return typeof i=="number"&&i==Nt(i)}function qc(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?ut(Dn):XI;function KL(i,m){return i===m||wd(i,m,Dd(m))}function GL(i,m,M){return M=typeof M=="function"?M:e,wd(i,m,Dd(m),M)}function YL(i){return rb(i)&&i!=+i}function XL(i){if(LE(i))throw new ht(p);return Gy(i)}function QL(i){return i===null}function ZL(i){return i==null}function rb(i){return typeof i=="number"||Fn(i)&&Br(i)==gt}function al(i){if(!Fn(i)||Br(i)!=gn)return!1;var m=wc(i);if(m===null)return!0;var M=cn.call(m,"constructor")&&m.constructor;return typeof M=="function"&&M instanceof M&&fc.call(M)==GM}var Kd=ai?ut(ai):QI;function JL(i){return tb(i)&&i>=-9007199254740991&&i<=U}var ib=li?ut(li):ZI;function Kc(i){return typeof i=="string"||!$t(i)&&Fn(i)&&Br(i)==Rn}function di(i){return typeof i=="symbol"||Fn(i)&&Br(i)==Zn}var va=ki?ut(ki):JI;function eO(i){return i===e}function tO(i){return Fn(i)&&Lr(i)==Ue}function nO(i){return Fn(i)&&Br(i)==ke}var rO=Pc(xd),iO=Pc(function(i,m){return i<=m});function ob(i){if(!i)return[];if(Zr(i))return Kc(i)?Tt(i):Qr(i);if(Ga&&i[Ga])return be(i[Ga]());var m=Lr(i),M=m==it?Me:m==En?qe: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*K}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||Un.test(i)?vn(i.slice(2),M?2:8):Ut.test(i)?Z:+i}function ab(i){return oo(i,Jr(i))}function oO(i){return i?Es(Nt(i),-9007199254740991,U):i===0?i:0}function an(i){return i==null?"":hi(i)}var sO=ga(function(i,m){if(ol(m)||Zr(m)){oo(m,dr(m),i);return}for(var M in m)cn.call(m,M)&&Ja(i,M,m[M])}),lb=ga(function(i,m){oo(m,Jr(m),i)}),Gc=ga(function(i,m,M,j){oo(m,Jr(m),i,j)}),aO=ga(function(i,m,M,j){oo(m,dr(m),i,j)}),lO=Ao(gd);function cO(i,m){var M=pa(i);return m==null?M:By(M,m)}var uO=Bt(function(i,m){i=Pt(i);var M=-1,j=m.length,G=j>2?m[2]:e;for(G&&zr(m[0],m[1],G)&&(j=1);++M<j;)for(var ee=m[M],le=Jr(ee),de=-1,ve=le.length;++de<ve;){var Ee=le[de],Re=i[Ee];(Re===e||Ui(Re,Pn[Ee])&&!cn.call(i,Ee))&&(i[Ee]=ee[Ee])}return i}),hO=Bt(function(i){return i.push(e,Aw),lr(cb,e,i)});function dO(i,m){return Q(i,vt(m,3),io)}function pO(i,m){return Q(i,vt(m,3),md)}function gO(i,m){return i==null?i:fd(i,vt(m,3),Jr)}function fO(i,m){return i==null?i:Vy(i,vt(m,3),Jr)}function mO(i,m){return i&&io(i,vt(m,3))}function vO(i,m){return i&&md(i,vt(m,3))}function yO(i){return i==null?[]:Mc(i,dr(i))}function wO(i){return i==null?[]:Mc(i,Jr(i))}function Gd(i,m,M){var j=i==null?e:Rs(i,m);return j===e?M:j}function bO(i,m){return i!=null&&$w(i,m,HI)}function Yd(i,m){return i!=null&&$w(i,m,UI)}var xO=bw(function(i,m,M){m!=null&&typeof m.toString!="function"&&(m=mc.call(m)),i[m]=M},Qd(ei)),CO=bw(function(i,m,M){m!=null&&typeof m.toString!="function"&&(m=mc.call(m)),cn.call(i,m)?i[m].push(M):i[m]=[M]},vt),kO=Bt(tl);function dr(i){return Zr(i)?Fy(i):bd(i)}function Jr(i){return Zr(i)?Fy(i,!0):eE(i)}function SO(i,m){var M={};return m=vt(m,3),io(i,function(j,G,ee){ko(M,m(j,G,ee),j)}),M}function AO(i,m){var M={};return m=vt(m,3),io(i,function(j,G,ee){ko(M,G,m(j,G,ee))}),M}var _O=ga(function(i,m,M){Ic(i,m,M)}),cb=ga(function(i,m,M,j){Ic(i,m,M,j)}),TO=Ao(function(i,m){var M={};if(i==null)return M;var j=!1;m=v(m,function(ee){return ee=Zo(ee,i),j||(j=ee.length>1),ee}),oo(i,Od(i),M),j&&(M=_i(M,l|u|a,xE));for(var G=m.length;G--;)_d(M,m[G]);return M});function $O(i,m){return ub(i,Vc(vt(m)))}var MO=Ao(function(i,m){return i==null?{}:nE(i,m)});function ub(i,m){if(i==null)return{};var M=v(Od(i),function(j){return[j]});return m=vt(m),tw(i,M,function(j,G){return m(j,G[0])})}function IO(i,m,M){m=Zo(m,i);var j=-1,G=m.length;for(G||(G=1,i=e);++j<G;){var ee=i==null?e:i[so(m[j])];ee===e&&(j=G,ee=M),i=To(ee)?ee.call(i):ee}return i}function EO(i,m,M){return i==null?i:rl(i,m,M)}function RO(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(Jr);function LO(i,m,M){var j=$t(i),G=j||es(i)||va(i);if(m=vt(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?vr:io)(i,function(le,de,ve){return m(M,le,de,ve)}),M}function OO(i,m){return i==null?!0:_d(i,m)}function NO(i,m,M){return i==null?i:sw(i,m,Md(M))}function DO(i,m,M,j){return j=typeof j=="function"?j:e,i==null?i:sw(i,m,Md(M),j)}function ya(i){return i==null?[]:kn(i,dr(i))}function PO(i){return i==null?[]:kn(i,Jr(i))}function FO(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 WO(i,m,M){return m=$o(m),M===e?(M=m,m=0):M=$o(M),i=Mi(i),VI(i,m,M)}function BO(i,m,M){if(M&&typeof M!="boolean"&&zr(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 Rr(i+G*(m-i+ze("1e-"+((G+"").length-1))),m)}return kd(i,m)}var zO=fa(function(i,m,M){return m=m.toLowerCase(),i+(M?pb(m):m)});function pb(i){return Xd(an(i).toLowerCase())}function gb(i){return i=an(i),i&&i.replace(Ln,Sn).replace(yo,"")}function jO(i,m,M){i=an(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 HO(i){return i=an(i),i&&Ha.test(i)?i.replace(uo,V):i}function UO(i){return i=an(i),i&&Fi.test(i)?i.replace(Tr,"\\$&"):i}var VO=fa(function(i,m,M){return i+(M?"-":"")+m.toLowerCase()}),qO=fa(function(i,m,M){return i+(M?" ":"")+m.toLowerCase()}),KO=vw("toLowerCase");function GO(i,m,M){i=an(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 YO(i,m,M){i=an(i),m=Nt(m);var j=m?zt(i):0;return m&&j<m?i+Dc(m-j,M):i}function XO(i,m,M){i=an(i),m=Nt(m);var j=m?zt(i):0;return m&&j<m?Dc(m-j,M)+i:i}function QO(i,m,M){return M||m==null?m=0:m&&(m=+m),iI(an(i).replace(Tn,""),m||0)}function ZO(i,m,M){return(M?zr(i,m,M):m===e)?m=1:m=Nt(m),Sd(an(i),m)}function JO(){var i=arguments,m=an(i[0]);return i.length<3?m:m.replace(i[1],i[2])}var eN=fa(function(i,m,M){return i+(M?"_":"")+m.toLowerCase()});function tN(i,m,M){return M&&typeof M!="number"&&zr(i,m,M)&&(m=M=e),M=M===e?te:M>>>0,M?(i=an(i),i&&(typeof m=="string"||m!=null&&!Kd(m))&&(m=hi(m),!m&&oe(i))?Jo(Tt(i),0,M):i.split(m,M)):[]}var nN=fa(function(i,m,M){return i+(M?" ":"")+Xd(m)});function rN(i,m,M){return i=an(i),M=M==null?0:Es(Nt(M),0,i.length),m=hi(m),i.slice(M,M+m.length)==m}function iN(i,m,M){var j=J.templateSettings;M&&zr(i,m,M)&&(m=e),i=an(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=Wr((m.escape||vi).source+"|"+Re.source+"|"+(Re===ys?Bi:vi).source+"|"+(m.evaluate||vi).source+"|$","g"),ot="//# sourceURL="+(cn.call(m,"sourceURL")?(m.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ro+"]")+`
1471
+ `;i.replace(Ge,function(wt,jt,Gt,pi,jr,gi){return Gt||(Gt=pi),De+=i.slice(Ee,gi).replace(Ir,X),jt&&(de=!0,De+=`' +
1472
1472
  __e(`+jt+`) +
1473
- '`),zr&&(ve=!0,De+=`';
1474
- `+zr+`;
1473
+ '`),jr&&(ve=!0,De+=`';
1474
+ `+jr+`;
1475
1475
  __p += '`),Gt&&(De+=`' +
1476
1476
  ((__t = (`+Gt+`)) == null ? '' : __t) +
1477
1477
  '`),Ee=gi+wt.length,wt}),De+=`';
1478
1478
  `;var yt=cn.call(m,"variable")&&m.variable;if(!yt)De=`with (obj) {
1479
1479
  `+De+`
1480
1480
  }
1481
- `;else if(Va.test(yt))throw new ht(b);De=(ve?De.replace(qr,""):De).replace(Di,"$1").replace(co,"$1;"),De="function("+(yt||"obj")+`) {
1481
+ `;else if(Va.test(yt))throw new ht(b);De=(ve?De.replace(Kr,""):De).replace(Di,"$1").replace(co,"$1;"),De="function("+(yt||"obj")+`) {
1482
1482
  `+(yt?"":`obj || (obj = {});
1483
1483
  `)+"var __t, __p = ''"+(de?", __e = _.escape":"")+(ve?`, __j = Array.prototype.join;
1484
1484
  function print() { __p += __j.call(arguments, '') }
1485
1485
  `:`;
1486
1486
  `)+De+`return __p
1487
- }`;var Ft=mb(function(){return Lt(ee,ot+"return "+De).apply(e,le)});if(Ft.source=De,Vd(Ft))throw Ft;return Ft}function oN(i){return sn(i).toLowerCase()}function sN(i){return sn(i).toUpperCase()}function aN(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=Jn(j,G)+1;return Jo(j,ee,le).join("")}function lN(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 Jo(j,0,G).join("")}function cN(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 Jo(j,G).join("")}function uN(i,m){var M=E,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?Jo(le,0,de).join(""):i.slice(0,de);if(G===e)return ve+j;if(le&&(de+=ve.length-de),qd(G)){if(i.slice(de).search(G)){var Ee,Re=ve;for(G.global||(G=Fr(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 hN(i){return i=sn(i),i&&Po.test(i)?i.replace(mr,mt):i}var dN=fa(function(i,m,M){return i+(M?" ":"")+m.toUpperCase()}),Yd=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 Vd(M)?M:new ht(M)}}),pN=Ao(function(i,m){return vr(m,function(M){M=so(M),ko(i,M,Hd(i[M],i))}),i});function gN(i){var m=i==null?0:i.length,M=vt();return i=m?v(i,function(j){if(typeof j[1]!="function")throw new hn(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 fN(i){return BI(_i(i,l))}function Xd(i){return function(){return i}}function mN(i,m){return i==null||i!==i?m:i}var vN=ww(),yN=ww(!0);function Jr(i){return i}function Qd(i){return Yy(typeof i=="function"?i:_i(i,l))}function wN(i){return Qy(_i(i,l))}function bN(i,m){return Zy(i,_i(m,l))}var xN=Bt(function(i,m){return function(M){return tl(M,i,m)}}),CN=Bt(function(i,m){return function(M){return tl(i,M,m)}});function Zd(i,m,M){var j=dr(m),G=$c(m,j);M==null&&!(Mn(m)&&(G.length||!j.length))&&(M=m,m=i,i=this,G=$c(m,dr(m)));var ee=!(Mn(M)&&"chain"in M)||!!M.chain,le=To(i);return vr(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 kN(){return un._===this&&(un._=YM),this}function Jd(){}function SN(i){return i=Nt(i),Bt(function(m){return Jy(m,i)})}var AN=Id(v),_N=Id(yr),TN=Id(W);function vb(i){return Pd(i)?we(so(i)):rE(i)}function $N(i){return function(m){return i==null?e:Rs(i,m)}}var MN=xw(),IN=xw(!0);function ep(){return[]}function tp(){return!1}function EN(){return{}}function RN(){return""}function LN(){return!0}function ON(i,m){if(i=Nt(i),i<1||i>U)return[];var M=te,j=Er(i,te);m=vt(m),i-=te;for(var G=Ze(j,m);++M<i;)m(M);return G}function NN(i){return $t(i)?v(i,so):di(i)?[i]:Xr(Pw(sn(i)))}function DN(i){var m=++KM;return sn(i)+m}var PN=Oc(function(i,m){return i+m},0),FN=Ed("ceil"),WN=Oc(function(i,m){return i/m},1),BN=Ed("floor");function zN(i){return i&&i.length?Tc(i,Jr,md):e}function jN(i,m){return i&&i.length?Tc(i,vt(m,2),md):e}function HN(i){return me(i,Jr)}function UN(i,m){return me(i,vt(m,2))}function VN(i){return i&&i.length?Tc(i,Jr,bd):e}function qN(i,m){return i&&i.length?Tc(i,vt(m,2),bd):e}var KN=Oc(function(i,m){return i*m},1),GN=Ed("round"),YN=Oc(function(i,m){return i-m},0);function XN(i){return i&&i.length?ct(i,Jr):0}function QN(i,m){return i&&i.length?ct(i,vt(m,2)):0}return J.after=wL,J.ary=Gw,J.assign=sO,J.assignIn=lb,J.assignInWith=Kc,J.assignWith=aO,J.at=lO,J.before=Yw,J.bind=Hd,J.bindAll=pN,J.bindKey=Xw,J.castArray=EL,J.chain=Vw,J.chunk=BE,J.compact=zE,J.concat=jE,J.cond=gN,J.conforms=fN,J.constant=Xd,J.countBy=XR,J.create=cO,J.curry=Qw,J.curryRight=Zw,J.debounce=Jw,J.defaults=uO,J.defaultsDeep=hO,J.defer=bL,J.delay=xL,J.difference=HE,J.differenceBy=UE,J.differenceWith=VE,J.drop=qE,J.dropRight=KE,J.dropRightWhile=GE,J.dropWhile=YE,J.fill=XE,J.filter=ZR,J.flatMap=tL,J.flatMapDeep=nL,J.flatMapDepth=rL,J.flatten=zw,J.flattenDeep=QE,J.flattenDepth=ZE,J.flip=CL,J.flow=vN,J.flowRight=yN,J.fromPairs=JE,J.functions=yO,J.functionsIn=wO,J.groupBy=iL,J.initial=tR,J.intersection=nR,J.intersectionBy=rR,J.intersectionWith=iR,J.invert=xO,J.invertBy=CO,J.invokeMap=sL,J.iteratee=Qd,J.keyBy=aL,J.keys=dr,J.keysIn=Zr,J.map=zc,J.mapKeys=SO,J.mapValues=AO,J.matches=wN,J.matchesProperty=bN,J.memoize=Hc,J.merge=_O,J.mergeWith=cb,J.method=xN,J.methodOf=CN,J.mixin=Zd,J.negate=Uc,J.nthArg=SN,J.omit=TO,J.omitBy=$O,J.once=kL,J.orderBy=lL,J.over=AN,J.overArgs=SL,J.overEvery=_N,J.overSome=TN,J.partial=Ud,J.partialRight=eb,J.partition=cL,J.pick=MO,J.pickBy=ub,J.property=vb,J.propertyOf=$N,J.pull=lR,J.pullAll=Hw,J.pullAllBy=cR,J.pullAllWith=uR,J.pullAt=hR,J.range=MN,J.rangeRight=IN,J.rearg=AL,J.reject=dL,J.remove=dR,J.rest=_L,J.reverse=zd,J.sampleSize=gL,J.set=EO,J.setWith=RO,J.shuffle=fL,J.slice=pR,J.sortBy=yL,J.sortedUniq=bR,J.sortedUniqBy=xR,J.split=tN,J.spread=TL,J.tail=CR,J.take=kR,J.takeRight=SR,J.takeRightWhile=AR,J.takeWhile=_R,J.tap=zR,J.throttle=$L,J.thru=Bc,J.toArray=ob,J.toPairs=hb,J.toPairsIn=db,J.toPath=NN,J.toPlainObject=ab,J.transform=LO,J.unary=ML,J.union=TR,J.unionBy=$R,J.unionWith=MR,J.uniq=IR,J.uniqBy=ER,J.uniqWith=RR,J.unset=OO,J.unzip=jd,J.unzipWith=Uw,J.update=NO,J.updateWith=DO,J.values=ya,J.valuesIn=PO,J.without=LR,J.words=fb,J.wrap=IL,J.xor=OR,J.xorBy=NR,J.xorWith=DR,J.zip=PR,J.zipObject=FR,J.zipObjectDeep=WR,J.zipWith=BR,J.entries=hb,J.entriesIn=db,J.extend=lb,J.extendWith=Kc,Zd(J,J),J.add=PN,J.attempt=mb,J.camelCase=zO,J.capitalize=pb,J.ceil=FN,J.clamp=FO,J.clone=RL,J.cloneDeep=OL,J.cloneDeepWith=NL,J.cloneWith=LL,J.conformsTo=DL,J.deburr=gb,J.defaultTo=mN,J.divide=WN,J.endsWith=jO,J.eq=Ui,J.escape=HO,J.escapeRegExp=UO,J.every=QR,J.find=JR,J.findIndex=Ww,J.findKey=dO,J.findLast=eL,J.findLastIndex=Bw,J.findLastKey=pO,J.floor=BN,J.forEach=qw,J.forEachRight=Kw,J.forIn=gO,J.forInRight=fO,J.forOwn=mO,J.forOwnRight=vO,J.get=Kd,J.gt=PL,J.gte=FL,J.has=bO,J.hasIn=Gd,J.head=jw,J.identity=Jr,J.includes=oL,J.indexOf=eR,J.inRange=WO,J.invoke=kO,J.isArguments=Ns,J.isArray=$t,J.isArrayBuffer=WL,J.isArrayLike=Qr,J.isArrayLikeObject=qn,J.isBoolean=BL,J.isBuffer=es,J.isDate=zL,J.isElement=jL,J.isEmpty=HL,J.isEqual=UL,J.isEqualWith=VL,J.isError=Vd,J.isFinite=qL,J.isFunction=To,J.isInteger=tb,J.isLength=Vc,J.isMap=nb,J.isMatch=KL,J.isMatchWith=GL,J.isNaN=YL,J.isNative=XL,J.isNil=ZL,J.isNull=QL,J.isNumber=rb,J.isObject=Mn,J.isObjectLike=Fn,J.isPlainObject=al,J.isRegExp=qd,J.isSafeInteger=JL,J.isSet=ib,J.isString=qc,J.isSymbol=di,J.isTypedArray=va,J.isUndefined=eO,J.isWeakMap=tO,J.isWeakSet=nO,J.join=oR,J.kebabCase=VO,J.last=$i,J.lastIndexOf=sR,J.lowerCase=qO,J.lowerFirst=KO,J.lt=rO,J.lte=iO,J.max=zN,J.maxBy=jN,J.mean=HN,J.meanBy=UN,J.min=VN,J.minBy=qN,J.stubArray=ep,J.stubFalse=tp,J.stubObject=EN,J.stubString=RN,J.stubTrue=LN,J.multiply=KN,J.nth=aR,J.noConflict=kN,J.noop=Jd,J.now=jc,J.pad=GO,J.padEnd=YO,J.padStart=XO,J.parseInt=QO,J.random=BO,J.reduce=uL,J.reduceRight=hL,J.repeat=ZO,J.replace=JO,J.result=IO,J.round=GN,J.runInContext=pe,J.sample=pL,J.size=mL,J.snakeCase=eN,J.some=vL,J.sortedIndex=gR,J.sortedIndexBy=fR,J.sortedIndexOf=mR,J.sortedLastIndex=vR,J.sortedLastIndexBy=yR,J.sortedLastIndexOf=wR,J.startCase=nN,J.startsWith=rN,J.subtract=YN,J.sum=XN,J.sumBy=QN,J.template=iN,J.times=ON,J.toFinite=$o,J.toInteger=Nt,J.toLength=sb,J.toLower=oN,J.toNumber=Mi,J.toSafeInteger=oO,J.toString=sn,J.toUpper=sN,J.trim=aN,J.trimEnd=lN,J.trimStart=cN,J.truncate=uN,J.unescape=hN,J.uniqueId=DN,J.upperCase=dN,J.upperFirst=Yd,J.each=qw,J.eachRight=Kw,J.first=jw,Zd(J,function(){var i={};return io(J,function(m,M){cn.call(J.prototype,M)||(i[M]=m)}),i}(),{chain:!1}),J.VERSION=r,vr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(i){J[i].placeholder=J}),vr(["drop","take"],function(i,m){qt.prototype[i]=function(M){M=M===e?1:sr(Nt(M),0);var j=this.__filtered__&&!m?new qt(this):this.clone();return j.__filtered__?j.__takeCount__=Er(M,j.__takeCount__):j.__views__.push({size:Er(M,te),type:i+(j.__dir__<0?"Right":"")}),j},qt.prototype[i+"Right"]=function(M){return this.reverse()[i](M).reverse()}}),vr(["filter","map","takeWhile"],function(i,m){var M=m+1,j=M==_||M==N;qt.prototype[i]=function(G){var ee=this.clone();return ee.__iteratees__.push({iteratee:vt(G,3),type:M}),ee.__filtered__=ee.__filtered__||j,ee}}),vr(["head","last"],function(i,m){var M="take"+(m?"Right":"");qt.prototype[i]=function(){return this[M](1).value()[0]}}),vr(["initial","tail"],function(i,m){var M="drop"+(m?"":"Right");qt.prototype[i]=function(){return this.__filtered__?new qt(this):this[M](1)}}),qt.prototype.compact=function(){return this.filter(Jr)},qt.prototype.find=function(i){return this.filter(i).head()},qt.prototype.findLast=function(i){return this.reverse().find(i)},qt.prototype.invokeMap=Bt(function(i,m){return typeof i=="function"?new qt(this):this.map(function(M){return tl(M,i,m)})}),qt.prototype.reject=function(i){return this.filter(Uc(vt(i)))},qt.prototype.slice=function(i,m){i=Nt(i);var M=this;return M.__filtered__&&(i>0||m<0)?new qt(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)},qt.prototype.takeRightWhile=function(i){return this.reverse().takeWhile(i).reverse()},qt.prototype.toArray=function(){return this.take(te)},io(qt.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 qt,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__,ot=!!this.__actions__.length,yt=ee&&!Ge,Ft=ve&&!ot;if(!ee&&Re){le=Ft?le:new qt(this);var wt=i.apply(le,de);return wt.__actions__.push({func:Bc,args:[De],thisArg:e}),new Ai(wt,Ge)}return yt&&Ft?i.apply(this,de):(wt=this.thru(De),yt?j?wt.value()[0]:wt.value():wt)})}),vr(["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)})}}),io(qt.prototype,function(i,m){var M=J[m];if(M){var j=M.name+"";cn.call(da,j)||(da[j]=[]),da[j].push({name:m,func:M})}}),da[Lc(e,w).name]=[{name:"wrapper",func:e}],qt.prototype.clone=hI,qt.prototype.reverse=dI,qt.prototype.value=pI,J.prototype.at=jR,J.prototype.chain=HR,J.prototype.commit=UR,J.prototype.next=VR,J.prototype.plant=KR,J.prototype.reverse=GR,J.prototype.toJSON=J.prototype.valueOf=J.prototype.value=YR,J.prototype.first=J.prototype.head,Ga&&(J.prototype[Ga]=qR),J},Kt=er();Zn?((Zn.exports=Kt)._=Kt,bn._=Kt):un._=Kt}).call(zC)}(Rl,Rl.exports)),Rl.exports}var HC=jC();const UC=Wn("O",dl(HC)),VC={mixins:[BC],props:["calculatePacketText"],data:function(){return{history:[],historyPointer:-1,filterText:null,paused:!1,pausedAt:0,pauseOffset:0,pausedHistory:[],rows:1,textarea:null,displayText:"",rules:{required:n=>!!n||"Required.",min:n=>n>=1||"Minimum: 1",max:n=>parseInt(n)<=this.currentConfig.history||`Maximum: ${this.currentConfig.history}`}}},computed:{allInstantSettings:function(){return`${this.currentConfig.showLineAddress}|${this.currentConfig.showTimestamp}|${this.currentConfig.showAscii}|${this.currentConfig.newestAtTop}|${this.pauseOffset}`},allDebouncedSettings:function(){return`${this.currentConfig.bytesPerLine}|${this.currentConfig.packetsToShow}|${this.filterText}`}},watch:{latestData:function(n){n.forEach(t=>{"buffer"in t&&(t.buffer=atob(t.buffer)),this.historyPointer=++this.historyPointer%this.currentConfig.history,isNaN(this.historyPointer)&&(this.historyPointer=0),this.history[this.historyPointer]=t,this.paused||this.rebuildDisplayText()})},paused:function(n){n?(this.pausedAt=this.historyPointer,this.pausedHistory=this.history.slice()):(this.pauseOffset=0,this.rebuildDisplayText())},allInstantSettings:function(){this.rebuildDisplayText()},allDebouncedSettings:UC.debounce(function(){this.rebuildDisplayText()},300)},created:function(){const n={history:300,showTimestamp:!0,showAscii:!0,showLineAddress:!0,packetsToShow:1,bytesPerLine:16,newestAtTop:!0};this.currentConfig={...n,...this.currentConfig}},methods:{rebuildDisplayText:function(){let n=this.paused?this.pausedHistory:this.history;const t=this.paused?this.pausedAt:this.historyPointer;if(n=n.filter(f=>f).slice(t+1,this.currentConfig.history).concat(n.slice(0,t+1)).map(this.calculatePacketText).map(this.matchesSearch),this.paused){const f=Math.max(n.length+this.pauseOffset,1);n=n.slice(0,f)}const e=Math.max(this.currentConfig.packetsToShow,1);n=n.slice(-e),this.currentConfig.newestAtTop&&(n=n.reverse());let r=`
1487
+ }`;var Ft=mb(function(){return Lt(ee,ot+"return "+De).apply(e,le)});if(Ft.source=De,qd(Ft))throw Ft;return Ft}function oN(i){return an(i).toLowerCase()}function sN(i){return an(i).toUpperCase()}function aN(i,m,M){if(i=an(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=er(j,G)+1;return Jo(j,ee,le).join("")}function lN(i,m,M){if(i=an(i),i&&(M||m===e))return i.slice(0,Wt(i)+1);if(!i||!(m=hi(m)))return i;var j=Tt(i),G=er(j,Tt(m))+1;return Jo(j,0,G).join("")}function cN(i,m,M){if(i=an(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 Jo(j,G).join("")}function uN(i,m){var M=E,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=an(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?Jo(le,0,de).join(""):i.slice(0,de);if(G===e)return ve+j;if(le&&(de+=ve.length-de),Kd(G)){if(i.slice(de).search(G)){var Ee,Re=ve;for(G.global||(G=Wr(G.source,an(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 hN(i){return i=an(i),i&&Po.test(i)?i.replace(mr,mt):i}var dN=fa(function(i,m,M){return i+(M?" ":"")+m.toUpperCase()}),Xd=vw("toUpperCase");function fb(i,m,M){return i=an(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 qd(M)?M:new ht(M)}}),pN=Ao(function(i,m){return vr(m,function(M){M=so(M),ko(i,M,Ud(i[M],i))}),i});function gN(i){var m=i==null?0:i.length,M=vt();return i=m?v(i,function(j){if(typeof j[1]!="function")throw new hn(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 fN(i){return BI(_i(i,l))}function Qd(i){return function(){return i}}function mN(i,m){return i==null||i!==i?m:i}var vN=ww(),yN=ww(!0);function ei(i){return i}function Zd(i){return Yy(typeof i=="function"?i:_i(i,l))}function wN(i){return Qy(_i(i,l))}function bN(i,m){return Zy(i,_i(m,l))}var xN=Bt(function(i,m){return function(M){return tl(M,i,m)}}),CN=Bt(function(i,m){return function(M){return tl(i,M,m)}});function Jd(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 vr(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__=Qr(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 kN(){return un._===this&&(un._=YM),this}function ep(){}function SN(i){return i=Nt(i),Bt(function(m){return Jy(m,i)})}var AN=Ed(v),_N=Ed(yr),TN=Ed(W);function vb(i){return Fd(i)?we(so(i)):rE(i)}function $N(i){return function(m){return i==null?e:Rs(i,m)}}var MN=xw(),IN=xw(!0);function tp(){return[]}function np(){return!1}function EN(){return{}}function RN(){return""}function LN(){return!0}function ON(i,m){if(i=Nt(i),i<1||i>U)return[];var M=te,j=Rr(i,te);m=vt(m),i-=te;for(var G=Ze(j,m);++M<i;)m(M);return G}function NN(i){return $t(i)?v(i,so):di(i)?[i]:Qr(Pw(an(i)))}function DN(i){var m=++KM;return an(i)+m}var PN=Nc(function(i,m){return i+m},0),FN=Rd("ceil"),WN=Nc(function(i,m){return i/m},1),BN=Rd("floor");function zN(i){return i&&i.length?$c(i,ei,vd):e}function jN(i,m){return i&&i.length?$c(i,vt(m,2),vd):e}function HN(i){return me(i,ei)}function UN(i,m){return me(i,vt(m,2))}function VN(i){return i&&i.length?$c(i,ei,xd):e}function qN(i,m){return i&&i.length?$c(i,vt(m,2),xd):e}var KN=Nc(function(i,m){return i*m},1),GN=Rd("round"),YN=Nc(function(i,m){return i-m},0);function XN(i){return i&&i.length?ct(i,ei):0}function QN(i,m){return i&&i.length?ct(i,vt(m,2)):0}return J.after=wL,J.ary=Gw,J.assign=sO,J.assignIn=lb,J.assignInWith=Gc,J.assignWith=aO,J.at=lO,J.before=Yw,J.bind=Ud,J.bindAll=pN,J.bindKey=Xw,J.castArray=EL,J.chain=Vw,J.chunk=BE,J.compact=zE,J.concat=jE,J.cond=gN,J.conforms=fN,J.constant=Qd,J.countBy=XR,J.create=cO,J.curry=Qw,J.curryRight=Zw,J.debounce=Jw,J.defaults=uO,J.defaultsDeep=hO,J.defer=bL,J.delay=xL,J.difference=HE,J.differenceBy=UE,J.differenceWith=VE,J.drop=qE,J.dropRight=KE,J.dropRightWhile=GE,J.dropWhile=YE,J.fill=XE,J.filter=ZR,J.flatMap=tL,J.flatMapDeep=nL,J.flatMapDepth=rL,J.flatten=zw,J.flattenDeep=QE,J.flattenDepth=ZE,J.flip=CL,J.flow=vN,J.flowRight=yN,J.fromPairs=JE,J.functions=yO,J.functionsIn=wO,J.groupBy=iL,J.initial=tR,J.intersection=nR,J.intersectionBy=rR,J.intersectionWith=iR,J.invert=xO,J.invertBy=CO,J.invokeMap=sL,J.iteratee=Zd,J.keyBy=aL,J.keys=dr,J.keysIn=Jr,J.map=jc,J.mapKeys=SO,J.mapValues=AO,J.matches=wN,J.matchesProperty=bN,J.memoize=Uc,J.merge=_O,J.mergeWith=cb,J.method=xN,J.methodOf=CN,J.mixin=Jd,J.negate=Vc,J.nthArg=SN,J.omit=TO,J.omitBy=$O,J.once=kL,J.orderBy=lL,J.over=AN,J.overArgs=SL,J.overEvery=_N,J.overSome=TN,J.partial=Vd,J.partialRight=eb,J.partition=cL,J.pick=MO,J.pickBy=ub,J.property=vb,J.propertyOf=$N,J.pull=lR,J.pullAll=Hw,J.pullAllBy=cR,J.pullAllWith=uR,J.pullAt=hR,J.range=MN,J.rangeRight=IN,J.rearg=AL,J.reject=dL,J.remove=dR,J.rest=_L,J.reverse=jd,J.sampleSize=gL,J.set=EO,J.setWith=RO,J.shuffle=fL,J.slice=pR,J.sortBy=yL,J.sortedUniq=bR,J.sortedUniqBy=xR,J.split=tN,J.spread=TL,J.tail=CR,J.take=kR,J.takeRight=SR,J.takeRightWhile=AR,J.takeWhile=_R,J.tap=zR,J.throttle=$L,J.thru=zc,J.toArray=ob,J.toPairs=hb,J.toPairsIn=db,J.toPath=NN,J.toPlainObject=ab,J.transform=LO,J.unary=ML,J.union=TR,J.unionBy=$R,J.unionWith=MR,J.uniq=IR,J.uniqBy=ER,J.uniqWith=RR,J.unset=OO,J.unzip=Hd,J.unzipWith=Uw,J.update=NO,J.updateWith=DO,J.values=ya,J.valuesIn=PO,J.without=LR,J.words=fb,J.wrap=IL,J.xor=OR,J.xorBy=NR,J.xorWith=DR,J.zip=PR,J.zipObject=FR,J.zipObjectDeep=WR,J.zipWith=BR,J.entries=hb,J.entriesIn=db,J.extend=lb,J.extendWith=Gc,Jd(J,J),J.add=PN,J.attempt=mb,J.camelCase=zO,J.capitalize=pb,J.ceil=FN,J.clamp=FO,J.clone=RL,J.cloneDeep=OL,J.cloneDeepWith=NL,J.cloneWith=LL,J.conformsTo=DL,J.deburr=gb,J.defaultTo=mN,J.divide=WN,J.endsWith=jO,J.eq=Ui,J.escape=HO,J.escapeRegExp=UO,J.every=QR,J.find=JR,J.findIndex=Ww,J.findKey=dO,J.findLast=eL,J.findLastIndex=Bw,J.findLastKey=pO,J.floor=BN,J.forEach=qw,J.forEachRight=Kw,J.forIn=gO,J.forInRight=fO,J.forOwn=mO,J.forOwnRight=vO,J.get=Gd,J.gt=PL,J.gte=FL,J.has=bO,J.hasIn=Yd,J.head=jw,J.identity=ei,J.includes=oL,J.indexOf=eR,J.inRange=WO,J.invoke=kO,J.isArguments=Ns,J.isArray=$t,J.isArrayBuffer=WL,J.isArrayLike=Zr,J.isArrayLikeObject=qn,J.isBoolean=BL,J.isBuffer=es,J.isDate=zL,J.isElement=jL,J.isEmpty=HL,J.isEqual=UL,J.isEqualWith=VL,J.isError=qd,J.isFinite=qL,J.isFunction=To,J.isInteger=tb,J.isLength=qc,J.isMap=nb,J.isMatch=KL,J.isMatchWith=GL,J.isNaN=YL,J.isNative=XL,J.isNil=ZL,J.isNull=QL,J.isNumber=rb,J.isObject=Mn,J.isObjectLike=Fn,J.isPlainObject=al,J.isRegExp=Kd,J.isSafeInteger=JL,J.isSet=ib,J.isString=Kc,J.isSymbol=di,J.isTypedArray=va,J.isUndefined=eO,J.isWeakMap=tO,J.isWeakSet=nO,J.join=oR,J.kebabCase=VO,J.last=$i,J.lastIndexOf=sR,J.lowerCase=qO,J.lowerFirst=KO,J.lt=rO,J.lte=iO,J.max=zN,J.maxBy=jN,J.mean=HN,J.meanBy=UN,J.min=VN,J.minBy=qN,J.stubArray=tp,J.stubFalse=np,J.stubObject=EN,J.stubString=RN,J.stubTrue=LN,J.multiply=KN,J.nth=aR,J.noConflict=kN,J.noop=ep,J.now=Hc,J.pad=GO,J.padEnd=YO,J.padStart=XO,J.parseInt=QO,J.random=BO,J.reduce=uL,J.reduceRight=hL,J.repeat=ZO,J.replace=JO,J.result=IO,J.round=GN,J.runInContext=pe,J.sample=pL,J.size=mL,J.snakeCase=eN,J.some=vL,J.sortedIndex=gR,J.sortedIndexBy=fR,J.sortedIndexOf=mR,J.sortedLastIndex=vR,J.sortedLastIndexBy=yR,J.sortedLastIndexOf=wR,J.startCase=nN,J.startsWith=rN,J.subtract=YN,J.sum=XN,J.sumBy=QN,J.template=iN,J.times=ON,J.toFinite=$o,J.toInteger=Nt,J.toLength=sb,J.toLower=oN,J.toNumber=Mi,J.toSafeInteger=oO,J.toString=an,J.toUpper=sN,J.trim=aN,J.trimEnd=lN,J.trimStart=cN,J.truncate=uN,J.unescape=hN,J.uniqueId=DN,J.upperCase=dN,J.upperFirst=Xd,J.each=qw,J.eachRight=Kw,J.first=jw,Jd(J,function(){var i={};return io(J,function(m,M){cn.call(J.prototype,M)||(i[M]=m)}),i}(),{chain:!1}),J.VERSION=r,vr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(i){J[i].placeholder=J}),vr(["drop","take"],function(i,m){qt.prototype[i]=function(M){M=M===e?1:ar(Nt(M),0);var j=this.__filtered__&&!m?new qt(this):this.clone();return j.__filtered__?j.__takeCount__=Rr(M,j.__takeCount__):j.__views__.push({size:Rr(M,te),type:i+(j.__dir__<0?"Right":"")}),j},qt.prototype[i+"Right"]=function(M){return this.reverse()[i](M).reverse()}}),vr(["filter","map","takeWhile"],function(i,m){var M=m+1,j=M==_||M==N;qt.prototype[i]=function(G){var ee=this.clone();return ee.__iteratees__.push({iteratee:vt(G,3),type:M}),ee.__filtered__=ee.__filtered__||j,ee}}),vr(["head","last"],function(i,m){var M="take"+(m?"Right":"");qt.prototype[i]=function(){return this[M](1).value()[0]}}),vr(["initial","tail"],function(i,m){var M="drop"+(m?"":"Right");qt.prototype[i]=function(){return this.__filtered__?new qt(this):this[M](1)}}),qt.prototype.compact=function(){return this.filter(ei)},qt.prototype.find=function(i){return this.filter(i).head()},qt.prototype.findLast=function(i){return this.reverse().find(i)},qt.prototype.invokeMap=Bt(function(i,m){return typeof i=="function"?new qt(this):this.map(function(M){return tl(M,i,m)})}),qt.prototype.reject=function(i){return this.filter(Vc(vt(i)))},qt.prototype.slice=function(i,m){i=Nt(i);var M=this;return M.__filtered__&&(i>0||m<0)?new qt(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)},qt.prototype.takeRightWhile=function(i){return this.reverse().takeWhile(i).reverse()},qt.prototype.toArray=function(){return this.take(te)},io(qt.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 qt,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__,ot=!!this.__actions__.length,yt=ee&&!Ge,Ft=ve&&!ot;if(!ee&&Re){le=Ft?le:new qt(this);var wt=i.apply(le,de);return wt.__actions__.push({func:zc,args:[De],thisArg:e}),new Ai(wt,Ge)}return yt&&Ft?i.apply(this,de):(wt=this.thru(De),yt?j?wt.value()[0]:wt.value():wt)})}),vr(["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)})}}),io(qt.prototype,function(i,m){var M=J[m];if(M){var j=M.name+"";cn.call(da,j)||(da[j]=[]),da[j].push({name:m,func:M})}}),da[Oc(e,w).name]=[{name:"wrapper",func:e}],qt.prototype.clone=hI,qt.prototype.reverse=dI,qt.prototype.value=pI,J.prototype.at=jR,J.prototype.chain=HR,J.prototype.commit=UR,J.prototype.next=VR,J.prototype.plant=KR,J.prototype.reverse=GR,J.prototype.toJSON=J.prototype.valueOf=J.prototype.value=YR,J.prototype.first=J.prototype.head,Ga&&(J.prototype[Ga]=qR),J},Kt=tr();Jn?((Jn.exports=Kt)._=Kt,bn._=Kt):un._=Kt}).call(zC)}(Ll,Ll.exports)),Ll.exports}var HC=jC();const UC=Wn("O",pl(HC)),VC={mixins:[BC],props:{calculatePacketText:{type:Function,default:n=>`${n}`}},data:function(){return{history:[],historyPointer:-1,filterText:null,paused:!1,pausedAt:0,pauseOffset:0,pausedHistory:[],rows:1,textarea:null,displayText:"",rules:{required:n=>!!n||"Required.",min:n=>n>=1||"Minimum: 1",max:n=>parseInt(n)<=this.currentConfig.history||`Maximum: ${this.currentConfig.history}`}}},computed:{allInstantSettings:function(){return`${this.currentConfig.showLineAddress}|${this.currentConfig.showTimestamp}|${this.currentConfig.showAscii}|${this.currentConfig.newestAtTop}|${this.pauseOffset}`},allDebouncedSettings:function(){return`${this.currentConfig.bytesPerLine}|${this.currentConfig.packetsToShow}|${this.filterText}`}},watch:{latestData:function(n){n.forEach(t=>{"buffer"in t&&(t.buffer=atob(t.buffer)),this.historyPointer=++this.historyPointer%this.currentConfig.history,isNaN(this.historyPointer)&&(this.historyPointer=0),this.history[this.historyPointer]=t,this.paused||this.rebuildDisplayText()})},paused:function(n){n?(this.pausedAt=this.historyPointer,this.pausedHistory=this.history.slice()):(this.pauseOffset=0,this.rebuildDisplayText())},allInstantSettings:function(){this.rebuildDisplayText()},allDebouncedSettings:UC.debounce(function(){this.rebuildDisplayText()},300)},created:function(){const n={history:300,showTimestamp:!0,showAscii:!0,showLineAddress:!0,packetsToShow:1,bytesPerLine:16,newestAtTop:!0};this.currentConfig={...n,...this.currentConfig}},methods:{rebuildDisplayText:function(){let n=this.paused?this.pausedHistory:this.history;const t=this.paused?this.pausedAt:this.historyPointer;if(n=n.filter(f=>f).slice(t+1,this.currentConfig.history).concat(n.slice(0,t+1)).map(this.calculatePacketText).map(this.matchesSearch),this.paused){const f=Math.max(n.length+this.pauseOffset,1);n=n.slice(0,f)}const e=Math.max(this.currentConfig.packetsToShow,1);n=n.slice(-e),this.currentConfig.newestAtTop&&(n=n.reverse());let r=`
1488
1488
  `;this.filterText!==null&&(r+=`
1489
1489
  `),this.displayText=n.join(r),this.rows=this.displayText.split(`
1490
1490
  `).length},matchesSearch:function(n){return this.filterText===null?n:n.split(`
1491
1491
  `).filter(t=>t.toLowerCase().includes(this.filterText.toLowerCase())).join(`
1492
- `)},download:function(){const n=new Blob([this.displayText],{type:"text/plain"}),t=document.createElement("a");let e=URL.createObjectURL(n);t.href=e,t.setAttribute("download",`${Ro(new Date,"yyyy_MM_dd_HH_mm_ss")}.txt`),t.click(),window.URL.revokeObjectURL(e)},pause:function(){this.paused=!0},togglePlayPause:function(){this.paused=!this.paused},stepBackward:function(){this.pause(),this.pauseOffset--},stepForward:function(){this.pause(),this.pauseOffset++}}},qC={class:"pa-2"},KC={class:"text-area-container"},GC={class:"floating-buttons"};function YC(n,t,e,r,f,p){const y=rt("v-text-field"),b=rt("v-col"),h=rt("v-slider"),g=rt("v-row"),s=rt("v-textarea"),l=rt("v-btn"),u=rt("v-card-title"),a=rt("v-switch"),o=rt("v-radio"),c=rt("v-radio-group"),d=rt("v-card-text"),w=rt("v-card"),x=rt("v-menu");return an(),ei("div",qC,[Pe(g,{dense:"",class:"mb-2"},{default:Je(()=>[Pe(b,{cols:"4"},{default:Je(()=>[Pe(y,{modelValue:n.filterText,"onUpdate:modelValue":t[0]||(t[0]=I=>n.filterText=I),label:"Search",class:"search","prepend-inner-icon":"mdi-magnify",clearable:"",variant:"outlined",density:"compact","single-line":"","hide-details":"","data-test":"history-component-search"},null,8,["modelValue"])]),_:1}),Pe(b,{cols:"8",class:"mt-1"},{default:Je(()=>[Pe(h,{modelValue:n.pauseOffset,"onUpdate:modelValue":t[1]||(t[1]=I=>n.pauseOffset=I),"prepend-icon":"mdi-step-backward","append-icon":"mdi-step-forward",min:1-n.currentConfig.history,max:0,"hide-details":"",onMousedown:p.pause,"onClick:prepend":p.stepBackward,"onClick:append":p.stepForward},null,8,["modelValue","min","onMousedown","onClick:prepend","onClick:append"])]),_:1})]),_:1}),Pe(g,{dense:"","no-gutters":""},{default:Je(()=>[Pe(b,null,{default:Je(()=>[br("div",KC,[Pe(s,{"model-value":n.displayText,rows:n.rows,"no-resize":"",readonly:"",variant:"solo",flat:"","hide-details":"","data-test":"history-component-text-area"},null,8,["model-value","rows"]),br("div",GC,[Pe(x,{"close-on-content-click":!1,"min-width":700},{activator:Je(({props:I})=>[Pe(l,Gc({class:"ml-2",color:"secondary"},I,{icon:"astro:settings",size:"small","aria-label":"Settings","data-test":"history-component-open-settings"}),null,16)]),default:Je(()=>[Pe(w,null,{default:Je(()=>[Pe(u,{"data-test":"display-settings-card"},{default:Je(()=>t[9]||(t[9]=[ar(" Display settings ")])),_:1}),Pe(d,null,{default:Je(()=>[Pe(g,null,{default:Je(()=>[Pe(b,null,{default:Je(()=>[Pe(a,{modelValue:n.currentConfig.showTimestamp,"onUpdate:modelValue":t[2]||(t[2]=I=>n.currentConfig.showTimestamp=I),label:"Show timestamp",density:"compact",color:"primary","hide-details":"","data-test":"history-component-settings-show-timestamp"},null,8,["modelValue"]),n.hasRaw?(an(),pr(a,{key:0,modelValue:n.currentConfig.showAscii,"onUpdate:modelValue":t[3]||(t[3]=I=>n.currentConfig.showAscii=I),label:"Show ASCII",density:"compact",color:"primary","hide-details":"","data-test":"history-component-settings-show-ascii"},null,8,["modelValue"])):xr("",!0),n.hasRaw?(an(),pr(a,{key:1,modelValue:n.currentConfig.showLineAddress,"onUpdate:modelValue":t[4]||(t[4]=I=>n.currentConfig.showLineAddress=I),label:"Show line address",density:"compact",color:"primary","hide-details":"","data-test":"history-component-settings-show-address"},null,8,["modelValue"])):xr("",!0)]),_:1}),Pe(b,null,{default:Je(()=>[Pe(c,{modelValue:n.currentConfig.newestAtTop,"onUpdate:modelValue":t[5]||(t[5]=I=>n.currentConfig.newestAtTop=I),label:"Print newest to the"},{default:Je(()=>[Pe(o,{label:"Top",value:!0,"data-test":"history-component-settings-newest-top"}),Pe(o,{label:"Bottom",value:!1,"data-test":"history-component-settings-newest-bottom"})]),_:1},8,["modelValue"])]),_:1}),Pe(b,null,{default:Je(()=>[Pe(y,{modelValue:n.currentConfig.history,"onUpdate:modelValue":t[6]||(t[6]=I=>n.currentConfig.history=I),label:"History Buffer",type:"number",min:"1","persistent-hint":"",rules:[n.rules.required,n.rules.min],"data-test":"history-component-settings-history"},null,8,["modelValue","rules"]),n.hasRaw?(an(),pr(y,{key:0,modelValue:n.currentConfig.bytesPerLine,"onUpdate:modelValue":t[7]||(t[7]=I=>n.currentConfig.bytesPerLine=I),label:"Bytes per line",type:"number",min:"1",rules:[n.rules.required,n.rules.min],"data-test":"history-component-settings-num-bytes"},null,8,["modelValue","rules"])):xr("",!0),Pe(y,{modelValue:n.currentConfig.packetsToShow,"onUpdate:modelValue":t[8]||(t[8]=I=>n.currentConfig.packetsToShow=I),label:"Entries to show",type:"number",min:"1",hint:`Maximum: ${n.currentConfig.history}`,"persistent-hint":"",rules:[n.rules.required,n.rules.min,n.rules.max],"data-test":"history-component-settings-num-packets"},null,8,["modelValue","hint","rules"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}),Pe(l,{class:"ml-2",color:"secondary",icon:"mdi-file-download",size:"small","aria-label":"Download","data-test":"history-component-download",onClick:p.download},null,8,["onClick"]),Pe(l,{class:Yc(["ml-2",{pulse:n.paused}]),color:"primary",icon:n.paused?"mdi-play":"mdi-pause",size:"large","aria-label":n.paused?"Play":"Pause","data-test":"history-component-play-pause",onClick:p.togglePlayPause},null,8,["class","icon","aria-label","onClick"])])])]),_:1})]),_:1})])}const y2=Wn("H",qi(VC,[["render",YC],["__scopeId","data-v-1c33df47"]]));var rf={exports:{}},of;function XC(){return of||(of=1,function(n,t){(function(){ace.require(["ace/mode/text"],function(e){n&&(n.exports=e)})})()}(rf)),rf.exports}XC();const QC=!0,tr="u-",ZC="uplot",JC=tr+"hz",ek=tr+"vt",tk=tr+"title",nk=tr+"wrap",rk=tr+"under",ik=tr+"over",ok=tr+"axis",cs=tr+"off",sk=tr+"select",ak=tr+"cursor-x",lk=tr+"cursor-y",ck=tr+"cursor-pt",uk=tr+"legend",hk=tr+"live",dk=tr+"inline",pk=tr+"series",gk=tr+"marker",sf=tr+"label",fk=tr+"value",Ma="width",Ia="height",Ea="top",af="bottom",Us="left",Tu="right",$u="#000",lf=$u+"0",Mu="mousemove",cf="mousedown",Iu="mouseup",uf="mouseenter",hf="mouseleave",df="dblclick",mk="resize",vk="scroll",pf="change",Ll="dppxchange",Eu="--",Vs=typeof window<"u",Ru=Vs?document:null,qs=Vs?window:null,yk=Vs?navigator:null;let Jt,Ol;function Lu(){let n=devicePixelRatio;Jt!=n&&(Jt=n,Ol&&Du(pf,Ol,Lu),Ol=matchMedia(`(min-resolution: ${Jt-.001}dppx) and (max-resolution: ${Jt+.001}dppx)`),us(pf,Ol,Lu),qs.dispatchEvent(new CustomEvent(Ll)))}function ti(n,t){if(t!=null){let e=n.classList;!e.contains(t)&&e.add(t)}}function Ou(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=Ru.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 Gi(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):Ou(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 Nu={passive:!0},wk={...Nu,capture:!0};function us(n,t,e,r){t.addEventListener(n,e,r?wk:Nu)}function Du(n,t,e,r){t.removeEventListener(n,e,Nu)}Vs&&Lu();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,Nl=wf(bf),bk=wf(xf);function xk(n,t,e,r=0,f=!1){let p=f?bk:Nl,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??gr,h??-1/0]}function Dl(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(nr(n))),s=h(y(nr(t))),l=Ks(e,g),u=Ks(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=Wl(t,u)),[n,t]}function Pu(n,t,e,r){let f=Dl(n,t,e,r);return n==0&&(f[0]=0),t==0&&(f[1]=0),f}const Fu=.1,Cf={mode:3,pad:Fu},Ra={pad:0,soft:null,mode:0},Ck={min:Ra,max:Ra};function Pl(n,t,e,r){return Bl(e)?kf(n,t,e):(Ra.pad=e,Ra.soft=r?0:null,Ra.mode=r?3:0,kf(n,t,Ck))}function Qt(n,t){return n??t}function kk(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,gr),g=Qt(r.soft,gr),s=Qt(f.soft,-1/0),l=Qt(r.mode,0),u=Qt(f.mode,0),a=t-n,o=ao(a),c=Or(nr(n),nr(t)),d=ao(c),w=nr(d-o);(a<1e-24||w>10)&&(a=0,(n==0||t==0)&&(a=1e-24,l==2&&g!=gr&&(p=0),u==2&&s!=-1/0&&(y=0)));let x=a||c||1e3,I=ao(x),$=Ks(10,ri(I)),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:gr,L=Or(b,C<R&&n>=R?R:Oi(R,C)),P=x*(a==0?t==0?.1:1:y),E=dn(Wl(t+P,$/10),24),H=t<=s&&(u==1||u==3&&E>=s||u==2&&E<=s)?s:-1/0,F=Oi(h,E>H&&t<=H?H:Or(H,E));return L==F&&L==0&&(F=100),[L,F]}const Sk=new Intl.NumberFormat(Vs?yk.language:"en-US"),Wu=n=>Sk.format(n),ni=Math,Fl=ni.PI,nr=ni.abs,ri=ni.floor,rr=ni.round,mi=ni.ceil,Oi=ni.min,Or=ni.max,Ks=ni.pow,Sf=ni.sign,ao=ni.log10,Af=ni.log2,Ak=(n,t=1)=>ni.sinh(n)*t,Bu=(n,t=1)=>ni.asinh(n/t),gr=1/0;function _f(n){return(ao((n^n>>31)-(n>>31))|0)+1}function zu(n,t,e){return Oi(Or(n,t),e)}function Tf(n){return typeof n=="function"}function Ht(n){return Tf(n)?n:()=>n}const _k=()=>{},$f=n=>n,Mf=(n,t)=>t,Tk=n=>null,If=n=>!0,Ef=(n,t)=>n==t,$k=/\.\d*?(?=9{6,}|0{6,})/gm,hs=n=>{if(Of(n)||No.has(n))return n;const t=`${n}`,e=t.match($k);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 Wl(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 rr(r)/e}const No=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=nr(y),h=dn(Ks(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),No.set(u,l)}}return f}const Oa={},ju=[],Gs=[null,null],Do=Array.isArray,Of=Number.isInteger,Mk=n=>n===void 0;function Nf(n){return typeof n=="string"}function Bl(n){let t=!1;if(n!=null){let e=n.constructor;t=e==null||e==Object}return t}function Ik(n){return n!=null&&typeof n=="object"}const Ek=Object.getPrototypeOf(Uint8Array),Df="__proto__";function Ys(n,t=Bl){let e;if(Do(n)){let r=n.find(f=>f!=null);if(Do(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 Ek)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&&(Bl(n[f])?Yn(n[f],Ys(r[f])):n[f]=Ys(r[f]))}return n}const Rk=0,Lk=1,Ok=2;function Nk(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 Dk(n,t){if(Wk(n)){let y=n[0].slice();for(let b=1;b<n.length;b++)y.push(...n[b].slice(1));return Bk(y[0])||(y=Fk(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]:Lk,a=[];for(let o=0;o<s.length;o++){let c=s[o],d=p.get(h[o]);c===null?u!=Rk&&(l[d]=c,u==Ok&&a.push(d)):l[d]=c}Nk(l,a,f),r.push(l)}}return r}const Pk=typeof queueMicrotask>"u"?n=>Promise.resolve().then(n):queueMicrotask;function Fk(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 Wk(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 Bk(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=Or(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 zk=Ff.map(Wf),jk=Pf.map(Wf),Hk={MMMM:Pf,MMM:jk,WWWW:Ff,WWW:zk};function Na(n){return(n<10?"0":"")+n}function Uk(n){return(n<10?"00":n<100?"0":"")+n}const Vk={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=>Uk(n.getMilliseconds())};function Hu(n,t){t=t||Hk;let e=[],r=/\{([a-z]+)\}|[^{]+/gi,f;for(;f=r.exec(n);)e.push(f[0][0]=="{"?Vk[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 qk=new Intl.DateTimeFormat().resolvedOptions().timeZone;function Kk(n,t){let e;return t=="UTC"||t=="Etc/UTC"?e=new Date(+n+n.getTimezoneOffset()*6e4):t==qk?e=n:(e=new Date(n.toLocaleString("en-US",{timeZone:t})),e.setMilliseconds(n.getMilliseconds())),e}const Bf=n=>n%1==0,zl=[1,2,2.5,5],Gk=La(10,-32,0,zl),zf=La(10,0,32,zl),Yk=zf.filter(Bf),ps=Gk.concat(zf),Uu=`
1493
- `,jf="{YYYY}",Hf=Uu+jf,Uf="{M}/{D}",Da=Uu+Uf,jl=Da+"/{YY}",Vf="{aa}",Xk="{h}:{mm}",Xs=Xk+Vf,qf=Uu+Xs,Kf=":{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,zl).filter(Bf):La(10,-3,0,zl)).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,jl,on,Da,on,on,on,1],[e,Xs,jl,on,Da,on,on,on,1],[t,Kf,jl+" "+Xs,on,Da+" "+Xs,on,qf,on,1],[n,Kf+".{fff}",jl+" "+Xs,on,Da+" "+Xs,on,qf,on,1]];function g(s){return(l,u,a,o,c,d)=>{let w=[],x=c>=y,I=c>=p&&c<y,$=s(a),S=dn($*n,3),C=Vu($.getFullYear(),x?0:$.getMonth(),I||x?1:$.getDate()),R=dn(C*n,3);if(I||x){let L=I?c/p:0,P=x?c/y:0,E=S==R?S:dn(Vu(C.getFullYear()+P,C.getMonth()+L,1)*n,3),H=new Date(rr(E/n)),F=H.getFullYear(),O=H.getMonth();for(let _=0;E<=o;_++){let A=Vu(F+P*_,O+L*_,1),N=A-s(dn(A*n,3));E=dn((+A+N)*n,3),E<=o&&w.push(E)}}else{let L=c>=f?f:c,P=ri(a)-ri(S),E=R+P+Wl(S-R,L);w.push(E);let H=s(E),F=H.getHours()+H.getMinutes()/e+H.getSeconds()/r,O=c/r,_=l.axes[u]._space,A=d/_;for(;E=dn(E+c,n==1?0:3),!(E>o);)if(O>1){let N=ri(dn(F+O,6))%24,B=s(E).getHours()-N;B>1&&(B=-1),E-=B*r,F=(F+O)%24;let U=w[w.length-1];dn((E-U)/c,3)*A>=.7&&w.push(E)}else w.push(E)}return w}}return[b,h,g]}const[Qk,Zk,Jk]=Gf(1),[eS,tS,nS]=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(),I=c.getHours(),$=c.getMinutes(),S=c.getSeconds(),C=d!=h&&b[2]||w!=g&&b[3]||x!=s&&b[4]||I!=l&&b[5]||$!=u&&b[6]||S!=a&&b[7]||b[1];return h=d,g=w,s=x,l=I,u=$,a=S,C(c)})}}function rS(n,t){let e=Hu(t);return(r,f,p,y,b)=>f.map(h=>e(n(h)))}function Vu(n,t,e){return new Date(n,t,e)}function Qf(n,t){return t(n)}const iS="{YYYY}-{MM}-{DD} {h}:{mm}{aa}";function Zf(n,t){return(e,r,f,p)=>p==null?Eu:t(n(r))}function oS(n,t){let e=n.series[t];return e.width?e.stroke(n,t):e.points.width?e.points.stroke(n,t):null}function sS(n,t){return n.series[t].fill(n,t)}const aS={show:!0,live:!0,isolate:!1,mount:_k,markers:{show:!0,width:2,stroke:oS,fill:sS,dash:"solid"},idx:null,idxs:null,values:[]};function lS(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 cS(n,t){let e=n.series[t].points;return e._fill||e._stroke}function uS(n,t){let e=n.series[t].points;return e._stroke||e._fill}function hS(n,t){return n.series[t].points.size}const qu=[0,0];function dS(n,t,e){return qu[0]=t,qu[1]=e,qu}function Hl(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 pS={show:!0,x:!0,y:!0,lock:!1,move:dS,points:{one:!1,show:lS,size:hS,width:0,stroke:uS,fill:cS},bind:{mousedown:Hl,mouseup:Hl,click:Hl,dblclick:Hl,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},Gu=Yn({},Jf,{filter:Mf}),em=Yn({},Gu,{size:10}),tm=Yn({},Jf,{show:!1}),Yu='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 "+Yu,rm=1.5,im={show:!0,scale:"x",stroke:$u,space:50,gap:5,alignTo:1,size:50,labelGap:0,labelSize:30,labelFont:nm,side:2,grid:Gu,ticks:em,border:tm,font:Yu,lineGap:rm,rotate:0},gS="Value",fS="Time",om={show:!0,scale:"x",auto:!1,sorted:1,min:gr,max:-1/0,idxs:[]};function mS(n,t,e,r,f){return t.map(p=>p==null?"":Wu(p))}function vS(n,t,e,r,f,p,y){let b=[],h=No.get(f)||0;e=y?e:dn(Wl(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 Xu(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=Ks(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&&!No.has(l)&&(l=dn(l,No.get(f))),l>=u&&(f=l,u=f*h,h==10&&(u=ps[Li(u,ps)]));while(l<=r);return b}function yS(n,t,e,r,f,p,y){let b=n.scales[n.axes[t].scale].asinh,h=r>b?Xu(n,t,Or(b,e),r,f):[b],g=r>=0&&e<=0?[0]:[];return(e<-b?Xu(n,t,Or(b,-r),-e,f):[b]).reverse().map(s=>-s).concat(g,h)}const sm=/./,wS=/[12357]/,bS=/[125]/,am=/1/,Qu=(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 xS(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?wS:h(5,y)-s>=g?bS:am;if(l==am){let u=nr(h(1,y)-s);if(u<g)return Qu(t.slice().reverse(),b.distr,l,mi(g/u)).reverse()}return Qu(t,b.distr,l,1)}function CS(n,t,e,r,f){let p=n.axes[e],y=p.scale,b=p._space,h=n.valToPos,g=nr(h(1,y)-h(2,y));return g<b?Qu(t.slice().reverse(),3,sm,mi(b/g)).reverse():t}function kS(n,t,e,r){return r==null?Eu:t==null?"":Wu(t)}const lm={show:!0,scale:"y",stroke:$u,space:30,gap:5,alignTo:1,size:50,labelGap:0,labelSize:30,labelFont:nm,side:3,grid:Gu,ticks:em,border:tm,font:Yu,lineGap:rm,rotate:0};function SS(n,t){let e=3+(n||1)*2;return dn(e*t,3)}function AS(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=nr(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:gr,max:-1/0},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:AS,filter:null},values:null,min:gr,max:-1/0,idxs:[],path:null,clip:null};function _S(n,t,e,r,f){return e/10}const pm={time:QC,auto:!0,distr:1,log:10,asinh:1,min:null,max:null,dir:1,ori:0},TS=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,Zu=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,Vl,Zs,Kl,ym,bm):e(f,h,g,s,l,w,d,a,u,c,o,ql,Js,th,wm,xm)}function Ju(n,t){let e=0,r=0,f=Qt(n.bands,ju);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 $S(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),I=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)),E=new Path2D(f);return I(E,L,P),I(E,C,P),I(E,C,R),E})}function Ul(n,t,e,r,f,p){let y=null;if(n.length>0){y=new Path2D;const b=t==0?Kl:th;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 MS(n,t,e){let r=n[n.length-1];r&&r[0]==t?r[1]=e:n.push([t,e])}function eh(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?rr:t=>ds(t,n)}function vm(n){let t=n==0?Vl: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 Vl=(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)},Kl=vm(0),th=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,I,$;g.ori==0?(I=Vl,$=ym):(I=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:E,top:H,width:F,height:O}=t.bbox;Kl(P,E-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));I(L,N+C,B),$(L,N,B,C,0,Fl*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|Zu}})}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 IS=km(Zs),ES=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]=Nl(h,f,p);let w=y.pxRound,x=F=>w(l(F,g,c,a)),I=F=>w(u(F,s,d,o)),$,S;g.ori==0?($=Zs,S=IS):($=Js,S=ES);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]),K=x(b[f]),Z=x(b[p]),te=F(C==1?K+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,I(N)),A=O=_=N):N<O?O=N:N>_&&(_=N)):ue===null&&(P=!0):(O!=null&&S(L,U,I(O),I(_),I(A),I(N)),ue!=null?(N=ue,$(L,ae,I(N)),O=_=A=N):(O=_=null,ue===null&&(P=!0)),U=ae,te=F(U+C))}O!=null&&O!=_&&B!=U&&S(L,U,I(O),I(_),I(A),I(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]),I(O))}let[E,H]=Ju(e,r);if(y.fill!=null||E!=0){let F=R.fill=new Path2D(L),O=y.fillTo(e,r,y.min,y.max,E),_=I(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(...eh(b,h,f,p,C,x,t)),R.gaps=F=y.gaps(e,r,f,p,F),R.clip=Ul(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 RS(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,I)=>{[b,h]=Nl(l,b,h);let $=g.pxRound,{left:S,width:C}=p.bbox,R=Z=>$(o(Z,u,x,d)),L=Z=>$(c(Z,a,I,w)),P=u.ori==0?Zs:Js;const E={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:Qs},H=E.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,K]=Ju(p,y);if(g.fill!=null||U!=0){let Z=E.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(...eh(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}),E.gaps=Z=g.gaps(p,y,b,h,Z),E.clip=Ul(Z,u.ori,d,w,x,I)}return K!=0&&(E.band=K==2?[lo(p,y,b,h,H,-1),lo(p,y,b,h,H,1)]:lo(p,y,b,h,H,K)),E})}function Am(n,t,e,r,f,p,y=gr){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=nr(n[h]-n[b]);s<g&&(g=s,y=nr(e(n[h],r,f,p)-e(n[b],r,f,p)))}b=h}}return y}function LS(n){n=n||Oa;const t=Qt(n.size,[.6,gr,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],gr),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,I,$,S,C,R,L,P,E,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 K=$.dir*($.ori==0?1:-1);let Z=$.ori==0?Kl:th,te=$.ori==0?s:(Ue,ke,je,Xe,ft,At,St)=>{s(Ue,ke,je,ft,Xe,St,At)},he=Qt(a.bands,ju).find(Ue=>Ue.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=E,Ie=F(w.width*Jt),Ye=!1,Ke=null,pt=null,it=null,gt=null;l!=null&&(Ie==0||u!=null)&&(Ye=!0,Ke=l.values(a,o,c,d),pt=new Map,new Set(Ke).forEach(Ue=>{Ue!=null&&pt.set(Ue,new Path2D)}),Ie>0&&(it=u.values(a,o,c,d),gt=new Map,new Set(it).forEach(Ue=>{Ue!=null&&gt.set(Ue,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*E,$.key,!0)));let Ue=gn.values(a,o,c,d);gn.unit==2?fe=Ue[0]*E:fe=C(Ue[0],$,E,L)-C(0,$,E,L),$e=Am(x,I,C,$,E,L,$e),Te=$e-fe+_}else $e=Am(x,I,C,$,E,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,fr=$e-Te-(Yt?Ie:0);fe=F(zu(fr,N,A)),ce=(O==0?fe/2:O==K?0:fe)-O*K*((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:Ue,y1:ke}=g;Ue!=null&&ke!=null&&(I=ke.values(a,o,c,d),Rn=Ue.values(a,o,c,d))}let Qn=B*fe,bt=U*fe;for(let Ue=K==1?c:d;Ue>=c&&Ue<=d;Ue+=K){let ke=I[Ue];if(ke==null)continue;if(Rn!=null){let dt=Rn[Ue]??0;if(ke-dt==0)continue;ue=R(dt,S,H,P)}let je=$.distr!=2||g!=null?x[Ue]:Ue,Xe=C(je,$,E,L),ft=R(Qt(ke,ae),S,H,P),At=F(Xe-ce),St=F(Or(ft,ue)),Dt=F(Oi(ft,ue)),Ot=St-Dt;if(ke!=null){let dt=ke<0?bt:Qn,xt=ke<0?Qn:bt;Ye?(Ie>0&&it[Ue]!=null&&Z(gt.get(it[Ue]),At,Dt+ri(Ie/2),fe,Or(0,Ot-Ie),dt,xt),Ke[Ue]!=null&&Z(pt.get(Ke[Ue]),At,Dt+ri(Ie/2),fe,Or(0,Ot-Ie),dt,xt)):Z(En,At,Dt+ri(Ie/2),fe,Or(0,Ot-Ie),dt,xt),te(a,o,Ue,At-Ie/2,Dt,fe+Ie,Ot)}}return Ie>0?fn.stroke=Ye?gt:En:Ye||(fn._fill=w.width==0?w._fill:w._stroke??w._fill,fn.width=0),fn.fill=Ye?pt:En,fn})}function OS(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]=Nl(g,p,y);let x=b.pxRound,I=B=>x(u(B,s,d,o)),$=B=>x(a(B,l,w,c)),S,C,R;s.ori==0?(S=Vl,R=Zs,C=bm):(S=ql,R=Js,C=xm);const L=s.dir*(s.ori==0?1:-1);let P=I(h[L==1?p:y]),E=P,H=[],F=[];for(let B=L==1?p:y;B>=p&&B<=y;B+=L)if(g[B]!=null){let U=h[B],K=I(U);H.push(E=K),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]=Ju(r,f);if(b.fill!=null||A!=0){let B=O.fill=new Path2D(_),U=b.fillTo(r,f,b.min,b.max,A),K=$(U);R(B,E,K),R(B,P,K)}if(!b.spanGaps){let B=[];B.push(...eh(h,g,p,y,L,I,e)),O.gaps=B=b.gaps(r,f,p,y,B),O.clip=Ul(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 NS(n){return OS(DS,n)}function DS(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 nh=new Set;function _m(){for(let n of nh)n.syncRect(!0)}Vs&&(us(mk,qs,_m),us(vk,qs,_m,!0),us(Ll,qs,()=>{kr.pxRatio=Jt}));const PS=Sm(),FS=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)=>rh(f,p,t,e))}function WS(n,t){return n.map((e,r)=>r==0?{}:Yn({},t,e))}function rh(n,t,e,r){return Yn({},t==0?e:r,n)}function $m(n,t,e){return t==null?Gs:[t,e]}const BS=$m;function zS(n,t,e){return t==null?Gs:Pl(t,e,Fu,!0)}function Mm(n,t,e,r){return t==null?Gs:Dl(t,e,n.scales[r].log,!1)}const jS=Mm;function Im(n,t,e,r){return t==null?Gs:Pu(t,e,n.scales[r].log,!1)}const HS=Im;function US(n,t,e,r,f){let p=Or(_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?No.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=rr((e=+f)*Jt))+"px"),[n,t,e]}function VS(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 kr(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(ZC);if(n.id!=null&&(g.id=n.id),ti(g,n.class),n.title){let V=fi(tk,g);V.textContent=n.title}const s=Ri("canvas"),l=r.ctx=s.getContext("2d"),u=fi(nk,g);us("click",u,V=>{V.target===o&&(rn!=bi||Vt!=ro)&&On.click(r,V)},!0);const a=r.under=fi(rk,u);u.appendChild(s);const o=r.over=fi(ik,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):WS(n.series||[null],hm),I=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=>Bu(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 E(V){let X=$[V];if(X==null){let ie=(n.scales||Oa)[V]||Oa;if(ie.from!=null){E(ie.from);let oe=Yn({},$[ie.from],ie,{key:V});oe.valToPct=P(oe),$[V]=oe}else{X=$[V]=Yn({},V==C?pm:TS,ie),X.key=V;let oe=X.time,ge=X.range,be=Do(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&&Bl(ge))){let Me=ge;ge=(Fe,Be,qe)=>Be==null?Gs:Pl(Be,qe,Me)}X.range=Ht(ge||(oe?BS:V==C?X.distr==3?jS:X.distr==4?HS:$m:X.distr==3?Mm:X.distr==4?Im:zS)),X.auto=Ht(be?!1:X.auto),X.clamp=Ht(X.clamp||_S),X._min=X._max=null,X.valToPct=P(X)}}}E("x"),E("y"),f==1&&x.forEach(V=>{E(V.scale)}),I.forEach(V=>{E(V.scale)});for(let V in n.scales)E(V);const H=$[C],F=H.distr;let O,_;H.ori==0?(ti(g,JC),O=p,_=y):(ti(g,ek),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(rr(V/w))),B=n.fmtDate||Hu,U=w==1?Jk(N):nS(N),K=Xf(N,Yf(w==1?Zk:tS,B)),Z=Zf(N,Qf(iS,B)),te=[],he=r.legend=Yn({},aS,n.legend),ne=r.cursor=Yn({},pS,{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=[],Ke,pt=!1,it={};if(he.live){const V=x[1]?x[1].values:null;pt=V!=null,Ke=pt?V(r,1,0):{_:0};for(let X in Ke)it[X]=Eu}if(ae)if(fe=Ri("table",uk,g),$e=Ri("tbody",null,fe),he.mount(r,fe),pt){Te=Ri("thead",null,fe,$e);let V=Ri("tr",null,Te);Ri("th",null,V);for(var gt in Ke)Ri("th",sf,V).textContent=gt}else ti(fe,dk),he.live&&ti(fe,hk);const tn={show:!0},gn={show:!1};function Yt(V,X){if(X==0&&(pt||!he.live||f==2))return Gs;let ie=[],oe=Ri("tr",pk,$e,$e.childNodes[X]);ti(oe,V.class),V.show||ti(oe,cs);let ge=Ri("th",null,oe);if(ce.show){let Fe=fi(gk,ge);if(X>0){let Be=ce.width(r,X);Be&&(Fe.style.border=Be+"px "+ce.dash(r,X)+" "+ce.stroke(r,X)),Fe.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,Fe=>{if(ne._lock)return;Pi(Fe);let Be=x.indexOf(V);if((Fe.ctrlKey||Fe.metaKey)!=he.isolate){let qe=x.some((Qe,et)=>et>0&&et!=Be&&Qe.show);x.forEach((Qe,et)=>{et>0&&Pr(et,qe?et==Be?tn:gn:tn,!0,ut.setSeries)})}else Pr(Be,{show:!V.show},!0,ut.setSeries)},!1),Fi&&fn(uf,ge,Fe=>{ne._lock||(Pi(Fe),Pr(x.indexOf(V),ki,!0,ut.setSeries))},!1));for(var Me in Ke){let Fe=Ri("td",fk,oe);Fe.textContent="--",ie.push(Fe)}return[oe,ie]}const fr=new Map;function fn(V,X,ie,oe=!0){const ge=fr.get(X)||{},be=ne.bind[V](r,X,ie,oe);be&&(us(V,X,ge[V]=be),fr.set(X,ge))}function En(V,X,ie){const oe=fr.get(X)||{};for(let ge in oe)(V==null||ge==V)&&(Du(ge,X,oe[ge]),delete oe[ge]);V==null&&fr.delete(X)}let Rn=0,Qn=0,bt=0,Ue=0,ke=0,je=0,Xe=ke,ft=je,At=bt,St=Ue,Dt=0,Ot=0,dt=0,xt=0;r.bbox={};let Cn=!1,Ar=!1,qr=!1,Di=!1,co=!1,mr=!1;function uo(V,X,ie){(ie||V!=r.width||X!=r.height)&&Po(V,X),ji(!1),qr=!0,Ar=!0,no()}function Po(V,X){r.width=Rn=bt=V,r.height=Qn=Ue=X,ke=je=0,ys(),ra();let ie=r.bbox;Dt=ie.left=ds(ke*Jt,.5),Ot=ie.top=ds(je*Jt,.5),dt=ie.width=ds(bt*Jt,.5),xt=ie.height=ds(Ue*Jt,.5)}const Ha=3;function ii(){let V=!1,X=0;for(;!V;){X++;let ie=aa(X),oe=Ka(X);V=X==Ha||ie&&oe,V||(Po(r.width,r.height),Ar=!0)}}function Ua({width:V,height:X}){uo(V,X)}r.setSize=Ua;function ys(){let V=!1,X=!1,ie=!1,oe=!1;I.forEach((ge,be)=>{if(ge.show&&ge._show){let{side:Me,_size:Fe}=ge,Be=Me%2,qe=ge.label!=null?ge.labelSize:0,Qe=Fe+qe;Qe>0&&(Be?(bt-=Qe,Me==3?(ke+=Qe,oe=!0):ie=!0):(Ue-=Qe,Me==0?(je+=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],Ue-=$r[2]+$r[0],je+=$r[0]}function ra(){let V=ke+bt,X=je+Ue,ie=ke,oe=je;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}}I.forEach((be,Me)=>{if(be.show&&be._show){let Fe=be.side;be._pos=ge(Fe,be._size),be.label!=null&&(be._lpos=ge(Fe,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,Fe)=>{if(be==0)return Me;let Be=Me,qe=ie(ge,be,Me,Fe)??gr,Qe=qe>=0&&qe<gr,et=H.ori==0?bt:Ue,kt=ne.left,zt=t[0],Tt=t[be];if(X.has(Tt[Me])){Be=null;let Wt=null,mt=null,st;if(oe==0||oe==-1)for(st=Me;Wt==null&&st-- >0;)X.has(Tt[st])||(Wt=st);if(oe==0||oe==1)for(st=Me;mt==null&&st++<Tt.length;)X.has(Tt[st])||(mt=st);if(Wt!=null||mt!=null)if(Qe){let pn=Wt==null?-1/0:O(zt[Wt],H,et,0),An=mt==null?1/0:O(zt[mt],H,et,0),er=kt-pn,Kt=An-kt;er<=Kt?er<=qe&&(Be=Wt):Kt<=qe&&(Be=mt)}else Be=mt==null?Wt:Wt==null?mt:Me-Wt<=mt-Me?Wt:mt}else Qe&&nr(kt-O(zt[Me],H,et,0))>qe&&(Be=null);return Be}}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 _r=r.focus=Yn({},n.focus||{alpha:.3},ne.focus),Fi=_r.prox>=0,Tn=Fi&&Hn.one;let Tr=[],Zi=[],Wi=[];function ws(V,X){let ie=Hn.show(r,X);if(ie instanceof HTMLElement)return ti(ie,ck),ti(ie,V.class),Gi(ie,-10,-10,bt,Ue),o.insertBefore(ie,Tr[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||kS,V.label=V.label||(ie?fS:gS)}if(Tn||X>0){V.width=V.width==null?1:V.width,V.paths=V.paths||PS||Tk,V.fillTo=Ht(V.fillTo||$S),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=SS(Or(1,V.width),1),oe=V.points=Yn({},{size:ie,width:Or(1,ie*.2),stroke:V.stroke,space:ie*2,paths:FS,_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)),Tr.splice(X,0,ie),Zi.splice(X,0,0),Wi.splice(X,0,0)}nt("addSeries",X)}function Va(V,X){X=X??x.length,V=f==1?rh(V,X,om,dm):rh(V,X,{},hm),x.splice(X,0,V),ia(x[X],X)}r.addSeries=Va;function qa(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),Tr.splice(V,1)[0].remove(),Zi.splice(V,1),Wi.splice(V,1)),nt("delSeries",V)}r.delSeries=qa;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),Do(V.incrs)&&V.incrs.forEach(Me=>{!No.has(Me)&&No.set(Me,Lf(Me))}),V.incrs=Ht(V.incrs||(oe.distr==2?Yk:ge?w==1?Qk:eS:ps)),V.splits=Ht(V.splits||(ge&&oe.distr==1?U:oe.distr==3?Xu:oe.distr==4?yS:vS)),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=Do(be)&&!Do(be[0])?Ht(be):ge?Do(be)?Xf(N,Yf(be,B)):Nf(be)?rS(N,be):be||K:be||mS,V.filter=Ht(V.filter||(oe.distr>=3&&oe.log==10?xS:oe.distr==3&&oe.log==2?CS: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(ok,u))}}function Ut(V,X,ie,oe){let[ge,be,Me,Fe]=ie,Be=X%2,qe=0;return Be==0&&(Fe||be)&&(qe=X==0&&!ge||X==2&&!Me?rr(im.size/3):0),Be==1&&(ge||Me)&&(qe=X==1&&!be||X==3&&!Fe?rr(lm.size/2):0),qe}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,mn=null,Ln=null;const vi=f==1?x[0].idxs:null;let Mr=null,yi=!1;function Fo(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=[[]]),Mr=t[0],Un=Mr.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),nt("setData"),F==2&&(qr=!0),X!==!1){let ie=H;ie.auto(r,yi)?bs():Zn(C,ie.min,ie.max),Di=Di||ne.left>=0,mr=!0,no()}}r.setData=Fo;function bs(){yi=!0;let V,X;f==1&&(Un>0?(mn=vi[0]=0,Ln=vi[1]=Un-1,V=t[0][mn],X=t[0][Ln],F==2?(V=mn,X=Ln):V==X&&(F==3?[V,X]=Dl(V,V,H.log,!1):F==4?[V,X]=Pu(V,V,H.log,!1):H.time?X=V+rr(86400/w):[V,X]=Pl(V,X,Fu,!0))):(mn=vi[0]=V=null,Ln=vi[1]=X=null)),Zn(C,V,X)}let Ji,Kr,ho,Wo,Gr,Bo,xs,Cs,zo,ir;function ks(V,X,ie,oe,ge,be){V??(V=lf),ie??(ie=ju),oe??(oe="butt"),ge??(ge=lf),be??(be="round"),V!=Ji&&(l.strokeStyle=Ji=V),ge!=Kr&&(l.fillStyle=Kr=ge),X!=ho&&(l.lineWidth=ho=X),be!=Gr&&(l.lineJoin=Gr=be),oe!=Bo&&(l.lineCap=Bo=oe),ie!=Wo&&l.setLineDash(Wo=ie)}function po(V,X,ie,oe){X!=Kr&&(l.fillStyle=Kr=X),V!=xs&&(l.font=xs=V),ie!=Cs&&(l.textAlign=Cs=ie),oe!=zo&&(l.textBaseline=zo=oe)}function jo(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),Fe=ie.min==null?xk(oe,be,Me,ge,V.distr==3):[ie.min,ie.max];V.min=Oi(V.min,ie.min=Fe[0]),V.max=Or(V.max,ie.max=Fe[1])}}const Ho={min:null,max:null};function eo(){for(let oe in $){let ge=$[oe];A[oe]==null&&(ge.min==null||A[C]!=null&&ge.auto(r,yi))&&(A[oe]=Ho)}for(let oe in $){let ge=$[oe];A[oe]==null&&ge.from!=null&&A[ge.from]!=null&&(A[oe]=Ho)}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],Ik);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=gr,be.max=-1/0}}if(Un>0){x.forEach((oe,ge)=>{if(f==1){let be=oe.scale,Me=A[be];if(Me==null)return;let Fe=V[be];if(ge==0){let Be=Fe.range(r,Fe.min,Fe.max,be);Fe.min=Be[0],Fe.max=Be[1],mn=Li(Fe.min,t[0]),Ln=Li(Fe.max,t[0]),Ln-mn>1&&(t[0][mn]<Fe.min&&mn++,t[0][Ln]>Fe.max&&Ln--),oe.min=Mr[mn],oe.max=Mr[Ln]}else oe.show&&oe.auto&&jo(Fe,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,Fe=be.scale,Be=Me.scale,[qe,Qe]=t[ge],et=V[Fe],kt=V[Be];et!=null&&jo(et,A[Fe],be,qe,be.sorted),kt!=null&&jo(kt,A[Be],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==gr?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?Bu(be.min,be.asinh):Me==100?be.fwd(be.min):be.min,be._max=Me==3?ao(be.max):Me==4?Bu(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)qr=!0,nt("setScale",oe);ue&&ne.left>=0&&(Di=mr=!0)}for(let oe in A)A[oe]=null}function Ss(V){let X=zu(mn-1,0,Un-1),ie=zu(Ln+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)&&ir!=_r.alpha;V&&(l.globalAlpha=ir=_r.alpha),x.forEach((X,ie)=>{if(ie>0&&X.show&&(Uo(ie,!1),Uo(ie,!0),X._paths==null)){let oe=ir;ir!=X.alpha&&(l.globalAlpha=ir=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]),ir!=oe&&(l.globalAlpha=ir=oe)}}),x.forEach((X,ie)=>{if(ie>0&&X.show){let oe=ir;ir!=X.alpha&&(l.globalAlpha=ir=X.alpha),X._paths!=null&&Vo(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),Vo(ie,!0))}ir!=oe&&(l.globalAlpha=ir=oe),nt("drawSeries",ie)}}),V&&(l.globalAlpha=ir=1)}}function Uo(V,X){let ie=X?x[V].points:x[V];ie._stroke=ie.stroke(r,V),ie._fill=ie.fill(r,V)}function Vo(V,X){let ie=X?x[V].points:x[V],{stroke:oe,fill:ge,clip:be,flags:Me,_stroke:Fe=ie._stroke,_fill:Be=ie._fill,_width:qe=ie.width}=ie._paths;qe=dn(qe*Jt,3);let Qe=null,et=qe%2/2;X&&Be==null&&(Be=qe>0?"#fff":Fe);let kt=ie.pxAlign==1&&et>0;if(kt&&l.translate(et,et),!X){let zt=Dt-qe/2,Tt=Ot-qe/2,Wt=dt+qe,mt=xt+qe;Qe=new Path2D,Qe.rect(zt,Tt,Wt,mt)}X?go(Fe,qe,ie.dash,ie.cap,Be,oe,ge,Me,be):As(V,Fe,qe,ie.dash,ie.cap,Be,oe,ge,Me,Qe,be),kt&&l.translate(-et,-et)}function As(V,X,ie,oe,ge,be,Me,Fe,Be,qe,Qe){let et=!1;Be!=0&&S.forEach((kt,zt)=>{if(kt.series[0]==V){let Tt=x[kt.series[1]],Wt=t[kt.series[1]],mt=(Tt._paths||Oa).band;Do(mt)&&(mt=kt.dir==1?mt[0]:mt[1]);let st,pn=null;Tt.show&&mt&&kk(Wt,mn,Ln)?(pn=kt.fill(r,zt)||be,st=Tt._paths.clip):mt=null,go(X,ie,oe,ge,pn,Me,Fe,Be,qe,Qe,st,mt),et=!0}}),et||go(X,ie,oe,ge,be,Me,Fe,Be,qe,Qe)}const qo=Qs|Zu;function go(V,X,ie,oe,ge,be,Me,Fe,Be,qe,Qe,et){ks(V,X,ie,oe,ge),(Be||qe||et)&&(l.save(),Be&&l.clip(Be),qe&&l.clip(qe)),et?(Fe&qo)==qo?(l.clip(et),Qe&&l.clip(Qe),or(ge,Me),wi(V,be,X)):Fe&Zu?(or(ge,Me),l.clip(et),wi(V,be,X)):Fe&Qs&&(l.save(),l.clip(et),Qe&&l.clip(Qe),or(ge,Me),l.restore(),wi(V,be,X)):(or(ge,Me),wi(V,be,X)),(Be||qe||et)&&l.restore()}function wi(V,X,ie){ie>0&&(X instanceof Map?X.forEach((oe,ge)=>{l.strokeStyle=Ji=ge,l.stroke(oe)}):X!=null&&V&&l.stroke(X))}function or(V,X){X instanceof Map?X.forEach((ie,oe)=>{l.fillStyle=Kr=oe,l.fill(ie)}):X!=null&&V&&l.fill(X)}function to(V,X,ie,oe){let ge=I[V],be;if(oe<=0)be=[0,0];else{let Me=ge._space=ge.space(r,V,X,ie,oe),Fe=ge._incrs=ge.incrs(r,V,X,ie,oe,Me);be=US(X,ie,Fe,oe,Me)}return ge._found=be}function zi(V,X,ie,oe,ge,be,Me,Fe,Be,qe){let Qe=Me%2/2;c==1&&l.translate(Qe,Qe),ks(Fe,Me,Be,qe,Fe),l.beginPath();let et,kt,zt,Tt,Wt=ge+(oe==0||oe==3?-be:be);ie==0?(kt=ge,Tt=Wt):(et=ge,zt=Wt);for(let mt=0;mt<V.length;mt++)X[mt]!=null&&(ie==0?et=zt=V[mt]:kt=Tt=V[mt],l.moveTo(et,kt),l.lineTo(zt,Tt));l.stroke(),c==1&&l.translate(-Qe,-Qe)}function aa(V){let X=!0;return I.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:Fe,max:Be}=ge,[qe,Qe]=to(oe,Fe,Be,Me==0?bt:Ue);if(Qe==0)return;let et=ge.distr==2,kt=ie._splits=ie.splits(r,oe,Fe,Be,qe,Qe,et),zt=ge.distr==2?kt.map(st=>Mr[st]):kt,Tt=ge.distr==2?Mr[kt[1]]-Mr[kt[0]]:qe,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 mt=ie._size;ie._size=mi(ie.size(r,Wt,oe,V)),mt!=null&&ie._size!=mt&&(X=!1)}),X}function Ka(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<I.length;V++){let X=I[V];if(!X.show||!X._show)continue;let ie=X.side,oe=ie%2,ge,be,Me=X.stroke(r,V),Fe=ie==0||ie==3?-1:1,[Be,qe]=X._found;if(X.label!=null){let hn=X.labelGap*Fe,hr=rr((X._lpos+hn)*Jt);po(X.labelFont[0],Me,"center",ie==2?Ea:af),l.save(),oe==1?(ge=be=0,l.translate(hr,rr(Ot+xt/2)),l.rotate((ie==3?-Fl:Fl)/2)):(ge=rr(Dt+dt/2),be=hr);let bo=Tf(X.label)?X.label(r,V,Be,qe):X.label;l.fillText(bo,ge,be),l.restore()}if(qe==0)continue;let Qe=$[X.scale],et=oe==0?dt:xt,kt=oe==0?Dt:Ot,zt=X._splits,Tt=Qe.distr==2?zt.map(hn=>Mr[hn]):zt,Wt=Qe.distr==2?Mr[zt[1]]-Mr[zt[0]]:Be,mt=X.ticks,st=X.border,pn=mt.show?mt.size:0,An=rr(pn*Jt),er=rr((X.alignTo==2?X._size-pn-X.gap:X.gap)*Jt),Kt=X._rotate*-Fl/180,pe=d(X._pos*Jt),Se=(An+er)*Fe,xe=pe+Se;be=oe==0?xe:0,ge=oe==1?xe:0;let He=X.font[0],ht=X.align==1?Us:X.align==2?Tu:Kt>0?Us:Kt<0?Tu:oe==0?"center":ie==3?Tu:Us,Lt=Kt||oe==1?"middle":ie==2?Ea:af;po(He,Me,ht,Lt);let Xt=X.font[1]*X.lineGap,Pt=zt.map(hn=>d(b(hn,Qe,et,kt))),Fr=X._values;for(let hn=0;hn<Fr.length;hn++){let hr=Fr[hn];if(hr!=null){oe==0?ge=Pt[hn]:be=Pt[hn],hr=""+hr;let bo=hr.indexOf(`
1494
- `)==-1?[hr]:hr.split(/\n/gm);for(let Pn=0;Pn<bo.length;Pn++){let Ts=bo[Pn];Kt?(l.save(),l.translate(ge,be+Pn*Xt),l.rotate(Kt),l.fillText(Ts,0,0),l.restore()):l.fillText(Ts,ge,be+Pn*Xt)}}}mt.show&&zi(Pt,mt.filter(r,Tt,V,qe,Wt),oe,ie,pe,An,dn(mt.width*Jt,3),mt.stroke(r,V),mt.dash,mt.cap);let Si=X.grid;Si.show&&zi(Pt,Si.filter(r,Tt,V,qe,Wt),oe,oe==0?2:1,oe==0?Ot:Dt,oe==0?xt:dt,dn(Si.width*Jt,3),Si.stroke(r,V),Si.dash,Si.cap),st.show&&zi([pe],[1],oe==0?1:0,oe==0?1:2,oe==1?Ot:Dt,oe==1?xt:dt,dn(st.width*Jt,3),st.stroke(r,V),st.dash,st.cap)}nt("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++)nt(...vo[V]);vo.length=0}function no(){mo||(Pk(ca),mo=!0)}function We(V,X=!1){mo=!0,Ko=X,V(r),ca(),X&&vo.length>0&&queueMicrotask(la)}r.batch=We;function ca(){if(Cn&&(eo(),Cn=!1),qr&&(ii(),qr=!1),Ar){if(wn(a,Us,ke),wn(a,Ea,je),wn(a,Ma,bt),wn(a,Ia,Ue),wn(o,Us,ke),wn(o,Ea,je),wn(o,Ma,bt),wn(o,Ia,Ue),wn(u,Ma,Rn),wn(u,Ia,Qn),s.width=rr(Rn*Jt),s.height=rr(Qn*Jt),I.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?je:ke),wn(V,Me?"height":"width",Me?Ue:bt),Ou(V,cs)}else ti(V,cs)}),Ji=Kr=ho=Gr=Bo=xs=Cs=zo=Wo=null,ir=1,W(!0),ke!=Xe||je!=ft||bt!=At||Ue!=St){ji(!1);let V=bt/At,X=Ue/St;if(ue&&!Di&&ne.left>=0){ne.left*=V,ne.top*=X,si&&Gi(si,rr(ne.left),0,bt,Ue),Vn&&Gi(Vn,0,rr(ne.top),bt,Ue);for(let ie=0;ie<Tr.length;ie++){let oe=Tr[ie];oe!=null&&(Zi[ie]*=V,Wi[ie]*=X,Gi(oe,mi(Zi[ie]),mi(Wi[ie]),bt,Ue))}}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(Dr,ie,Ct[ie])}Xe=ke,ft=je,At=bt,St=Ue}nt("setSize"),Ar=!1}Rn>0&&Qn>0&&(l.clearRect(0,0,s.width,s.height),nt("drawClear"),L.forEach(V=>V()),nt("draw")),Ct.show&&co&&(un(Ct),co=!1),ue&&Di&&(k(null,!0,!1),Di=!1),he.show&&he.live&&mr&&(v(),mr=!1),h||(h=!0,r.status=1,nt("ready")),yi=!1,mo=!1}r.redraw=(V,X)=>{qr=X||!1,V!==!1?Zn(C,H.min,H.max):no()};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,Cn=!0,no()}}r.setScale=Ne;let $n,yo,si,Vn,ua,wo,bi,ro,nn,Zt,rn,Vt,xi=!1;const On=ne.drag;let ze=On.x,vn=On.y;ue&&(ne.x&&($n=fi(ak,o)),ne.y&&(yo=fi(lk,o)),H.ori==0?(si=$n,Vn=yo):(si=yo,Vn=$n),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),Dr=Ct.show?fi(sk,Ct.over?o:a):null;function un(V,X){if(Ct.show){for(let ie in V)Ct[ie]=V[ie],ie in Y&&wn(Dr,ie,V[ie]);X!==!1&&nt("setSelect")}}r.setSelect=un;function bn(V){if(x[V].show)ae&&Ou(Ie[V],cs);else if(ae&&ti(Ie[V],cs),ue){let X=Tn?Tr[0]:Tr[V];X!=null&&Gi(X,-10,-10,bt,Ue)}}function Zn(V,X,ie){Ne(V,{min:X,max:ie})}function Pr(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?(Zn(ge.facets[0].scale,null,null),Zn(ge.facets[1].scale,null,null)):Zn(ge.scale,null,null),no())}),ie!==!1&&nt("setSeries",V,X),oe&&Rt("setSeries",r,V,X)}r.setSeries=Pr;function Ci(V,X){Yn(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 Go(V,X){x[V].alpha=X,ue&&Tr[V]!=null&&(Tr[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=_r.alpha!=1;x.forEach((oe,ge)=>{if(f==1||ge>0){let be=X||ge==0||ge==V;oe._focus=X?null:be,ie&&Go(ge,be?1:_r.alpha)}}),li=V,ie&&no()}}ae&&Fi&&fn(hf,fe,V=>{ne._lock||(Pi(V),li!=null&&Pr(null,ki,!0,ut.setSeries))});function cr(V,X,ie){let oe=$[X];ie&&(V=V/Jt-(oe.ori==1?je:ke));let ge=bt;oe.ori==1&&(ge=Ue,V=ge-V),oe.dir==-1&&(V=ge-V);let be=oe._min,Me=oe._max,Fe=V/ge,Be=be+(Me-be)*Fe,qe=oe.distr;return qe==3?Ks(10,Be):qe==4?Ak(Be,oe.asinh):qe==100?oe.bwd(Be):Be}function vr(V,X){let ie=cr(V,C,X);return Li(ie,t[0],mn,Ln)}r.valToIdx=V=>Li(V,t[0]),r.posToIdx=vr,r.posToVal=cr,r.valToPos=(V,X,ie)=>$[X].ori==0?p(V,$[X],ie?dt:bt,ie?Dt:0):y(V,$[X],ie?xt:Ue,ie?Ot:0),r.setCursor=(V,X,ie)=>{rn=V.left,Vt=V.top,k(null,X,ie)};function _s(V,X){wn(Dr,Us,Ct.left=V),wn(Dr,Ma,Ct.width=X)}function yr(V,X){wn(Dr,Ea,Ct.top=V),wn(Dr,Ia,Ct.height=X)}let Ir=H.ori==0?_s:yr,ci=H.ori==1?_s:yr;function ui(){if(ae&&he.live)for(let V=f==2?1:0;V<x.length;V++){if(V==0&&pt)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}):Mk(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&&!pt)&&T(ie,te[ie]);ui()}mr=!1,X!==!1&&nt("setLegend")}r.setLegend=v;function T(V,X){let ie=x[V],oe=V==0&&F==2?Mr:t[V],ge;pt?ge=ie.values(r,V,X)??it:(ge=ie.value(r,X==null?null:oe[X],V,X),ge=ge==null?it:{_: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&&Gi(si,rr(rn),0,bt,Ue),Vn&&Gi(Vn,0,rr(Vt),bt,Ue));let oe,ge=mn>Ln;Dn=gr,ai=null;let be=H.ori==0?bt:Ue,Me=H.ori==1?bt:Ue;if(rn<0||Un==0||ge){oe=ne.idx=null;for(let Fe=0;Fe<x.length;Fe++){let Be=Tr[Fe];Be!=null&&Gi(Be,-10,-10,bt,Ue)}Fi&&Pr(null,ki,!0,V==null&&ut.setSeries),he.live&&(te.fill(oe),mr=!0)}else{let Fe,Be,qe;f==1&&(Fe=H.ori==0?rn:Vt,Be=cr(Fe,C),oe=ne.idx=Li(Be,t[0],mn,Ln),qe=O(t[0][oe],H,be,0));let Qe=-10,et=-10,kt=0,zt=0,Tt=!0,Wt="",mt="";for(let st=f==2?1:0;st<x.length;st++){let pn=x[st],An=te[st],er=An==null?null:f==1?t[st][An]:t[st][1][An],Kt=ne.dataIdx(r,st,oe,Be),pe=Kt==null?null:f==1?t[st][Kt]:t[st][1][Kt];if(mr=mr||pe!=er||Kt!=An,te[st]=Kt,st>0&&pn.show){let Se=Kt==null?-10:Kt==oe?qe:O(f==1?t[0][Kt]:t[st][0][Kt],H,be,0),xe=pe==null?-10:_(pe,f==1?$[pn.scale]:$[pn.facets[1].scale],Me,0);if(Fi&&pe!=null){let He=H.ori==1?rn:Vt,ht=nr(_r.dist(r,st,Kt,xe,He));if(ht<Dn){let Lt=_r.bias;if(Lt!=0){let Xt=cr(He,pn.scale),Pt=pe>=0?1:-1,Fr=Xt>=0?1:-1;Fr==Pt&&(Fr==1?Lt==1?pe>=Xt:pe<=Xt:Lt==1?pe<=Xt:pe>=Xt)&&(Dn=ht,ai=st)}else Dn=ht,ai=st}}if(mr||Tn){let He,ht;H.ori==0?(He=Se,ht=xe):(He=xe,ht=Se);let Lt,Xt,Pt,Fr,Si,hn,hr=!0,bo=Hn.bbox;if(bo!=null){hr=!1;let Pn=bo(r,st);Pt=Pn.left,Fr=Pn.top,Lt=Pn.width,Xt=Pn.height}else Pt=He,Fr=ht,Lt=Xt=Hn.size(r,st);if(hn=Hn.fill(r,st),Si=Hn.stroke(r,st),Tn)st==ai&&Dn<=_r.prox&&(Qe=Pt,et=Fr,kt=Lt,zt=Xt,Tt=hr,Wt=hn,mt=Si);else{let Pn=Tr[st];Pn!=null&&(Zi[st]=Pt,Wi[st]=Fr,yf(Pn,Lt,Xt,hr),mf(Pn,hn,Si),Gi(Pn,mi(Pt),mi(Fr),bt,Ue))}}}}if(Tn){let st=_r.prox,pn=li==null?Dn<=st:Dn>st||ai!=li;if(mr||pn){let An=Tr[0];An!=null&&(Zi[0]=Qe,Wi[0]=et,yf(An,kt,zt,Tt),mf(An,Wt,mt),Gi(An,mi(Qe),mi(et),bt,Ue))}}}if(Ct.show&&xi)if(V!=null){let[Fe,Be]=ut.scales,[qe,Qe]=ut.match,[et,kt]=V.cursor.sync.scales,zt=V.cursor.drag;if(ze=zt._x,vn=zt._y,ze||vn){let{left:Tt,top:Wt,width:mt,height:st}=V.select,pn=V.scales[et].ori,An=V.posToVal,er,Kt,pe,Se,xe,He=Fe!=null&&qe(Fe,et),ht=Be!=null&&Qe(Be,kt);He&&ze?(pn==0?(er=Tt,Kt=mt):(er=Wt,Kt=st),pe=$[Fe],Se=O(An(er,et),pe,be,0),xe=O(An(er+Kt,et),pe,be,0),Ir(Oi(Se,xe),nr(xe-Se))):Ir(0,be),ht&&vn?(pn==1?(er=Tt,Kt=mt):(er=Wt,Kt=st),pe=$[Be],Se=_(An(er,kt),pe,Me,0),xe=_(An(er+Kt,kt),pe,Me,0),ci(Oi(Se,xe),nr(xe-Se))):ci(0,Me)}else Q()}else{let Fe=nr(nn-ua),Be=nr(Zt-wo);if(H.ori==1){let kt=Fe;Fe=Be,Be=kt}ze=On.x&&Fe>=On.dist,vn=On.y&&Be>=On.dist;let qe=On.uni;qe!=null?ze&&vn&&(ze=Fe>=qe,vn=Be>=qe,!ze&&!vn&&(Be>Fe?vn=!0:ze=!0)):On.x&&On.y&&(ze||vn)&&(ze=vn=!0);let Qe,et;ze&&(H.ori==0?(Qe=bi,et=rn):(Qe=ro,et=Vt),Ir(Oi(Qe,et),nr(et-Qe)),vn||ci(0,Me)),vn&&(H.ori==1?(Qe=bi,et=rn):(Qe=ro,et=Vt),ci(Oi(Qe,et),nr(et-Qe)),ze||Ir(0,be)),!ze&&!vn&&(Ir(0,0),ci(0,0))}if(On._x=ze,On._y=vn,V==null){if(ie){if(kn!=null){let[Fe,Be]=ut.scales;ut.values[0]=Fe!=null?cr(H.ori==0?rn:Vt,Fe):null,ut.values[1]=Be!=null?cr(H.ori==1?rn:Vt,Be):null}Rt(Mu,r,rn,Vt,bt,Ue,oe)}if(Fi){let Fe=ie&&ut.setSeries,Be=_r.prox;li==null?Dn<=Be&&Pr(ai,ki,!0,Fe):Dn>Be?Pr(null,ki,!0,Fe):ai!=li&&Pr(ai,ki,!0,Fe)}}mr&&(he.idx=oe,v()),X!==!1&&nt("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(),nt("syncRect",D))}function z(V,X,ie,oe,ge,be,Me){ne._lock||xi&&V!=null&&V.movementX==0&&V.movementY==0||(q(V,X,ie,oe,ge,be,Me,!1,V!=null),V!=null?k(null,!0,!0):k(X,!0,!1))}function q(V,X,ie,oe,ge,be,Me,Fe,Be){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[qe,Qe]=ut.scales,et=X.cursor.sync,[kt,zt]=et.values,[Tt,Wt]=et.scales,[mt,st]=ut.match,pn=X.axes[0].side%2==1,An=H.ori==0?bt:Ue,er=H.ori==1?bt:Ue,Kt=pn?be:ge,pe=pn?ge:be,Se=pn?oe:ie,xe=pn?ie:oe;if(Tt!=null?ie=mt(qe,Tt)?b(kt,$[qe],An,0):-10:ie=An*(Se/Kt),Wt!=null?oe=st(Qe,Wt)?b(zt,$[Qe],er,0):-10:oe=er*(xe/pe),H.ori==1){let He=ie;ie=oe,oe=He}}Be&&(X==null||X.cursor.event.type==Mu)&&((ie<=1||ie>=bt-1)&&(ie=ds(ie,bt)),(oe<=1||oe>=Ue-1)&&(oe=ds(oe,Ue))),Fe?(ua=ie,wo=oe,[bi,ro]=ne.move(r,ie,oe)):(rn=ie,Vt=oe)}const Y={width:0,height:0,left:0,top:0};function Q(){un(Y,!1)}let re,se,ye,Ce;function me(V,X,ie,oe,ge,be,Me){xi=!0,ze=vn=On._x=On._y=!1,q(V,X,ie,oe,ge,be,Me,!0,!1),V!=null&&(fn(Iu,Ru,we,!1),Rt(cf,r,bi,ro,bt,Ue,null));let{left:Fe,top:Be,width:qe,height:Qe}=Ct;re=Fe,se=Be,ye=qe,Ce=Qe}function we(V,X,ie,oe,ge,be,Me){xi=On._x=On._y=!1,q(V,X,ie,oe,ge,be,Me,!1,!0);let{left:Fe,top:Be,width:qe,height:Qe}=Ct,et=qe>0||Qe>0,kt=re!=Fe||se!=Be||ye!=qe||Ce!=Qe;if(et&&kt&&un(Ct),On.setScale&&et&&kt){let zt=Fe,Tt=qe,Wt=Be,mt=Qe;if(H.ori==1&&(zt=Be,Tt=Qe,Wt=Fe,mt=qe),ze&&Zn(C,cr(zt,C),cr(zt+Tt,C)),vn)for(let st in $){let pn=$[st];st!=C&&pn.from==null&&pn.min!=gr&&Zn(st,cr(Wt+mt,st),cr(Wt,st))}Q()}else ne.lock&&(ne._lock=!ne._lock,k(X,!0,V!=null));V!=null&&(En(Iu,Ru),Rt(Iu,r,rn,Vt,bt,Ue,null))}function Oe(V,X,ie,oe,ge,be,Me){if(ne._lock)return;Pi(V);let Fe=xi;if(xi){let Be=!0,qe=!0,Qe=10,et,kt;H.ori==0?(et=ze,kt=vn):(et=vn,kt=ze),et&&kt&&(Be=rn<=Qe||rn>=bt-Qe,qe=Vt<=Qe||Vt>=Ue-Qe),et&&Be&&(rn=rn<bi?0:bt),kt&&qe&&(Vt=Vt<ro?0:Ue),k(null,!0,!0),xi=!1}rn=-10,Vt=-10,te.fill(null),k(null,!0,!0),Fe&&(xi=Fe)}function Le(V,X,ie,oe,ge,be,Me){ne._lock||(Pi(V),bs(),Q(),V!=null&&Rt(df,r,rn,Vt,bt,Ue,null))}function Ve(){I.forEach(VS),uo(r.width,r.height,!0)}us(Ll,qs,Ve);const ct={};ct.mousedown=me,ct.mousemove=z,ct.mouseup=we,ct.dblclick=Le,ct.setSeries=(V,X,ie,oe)=>{let ge=ut.match[2];ie=ge(r,X,ie),ie!=-1&&Pr(ie,oe,!0,!1)},ue&&(fn(cf,o,me),fn(Mu,o,z),fn(uf,o,V=>{Pi(V),W(!1)}),fn(hf,o,Oe),fn(df,o,Le),nh.add(r),r.syncRect=W);const Ze=r.hooks=n.hooks||{};function nt(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,ut=Yn({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);ut.match.length==2&&ut.match.push(yn),ne.sync=ut;const kn=ut.key,_t=fm(kn);function Rt(V,X,ie,oe,ge,be,Me){ut.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){ut.filters.sub(V,X,ie,oe,ge,be,Me)&&ct[V](null,X,ie,oe,ge,be,Me)}r.pub=Jn;function ur(){_t.unsub(r),nh.delete(r),fr.clear(),Du(Ll,qs,Ve),g.remove(),fe==null||fe.remove(),nt("destroy")}r.destroy=ur;function Sn(){nt("init",n,t),Fo(t||n.data,!1),A[C]?Ne(C,A[C]):bs(),co=Ct.show&&(Ct.width>0||Ct.height>0),Di=mr=!0,uo(n.width,n.height)}return x.forEach(ia),I.forEach(oi),e?e instanceof HTMLElement?(e.appendChild(g),Sn()):e(r,Sn):Sn(),r}kr.assign=Yn,kr.fmtNum=Wu,kr.rangeNum=Pl,kr.rangeLog=Dl,kr.rangeAsinh=Pu,kr.orient=gs,kr.pxRatio=Jt,kr.join=Dk,kr.fmtDate=Hu,kr.tzDate=Kk,kr.sync=fm;{kr.addGap=MS,kr.clipGaps=Ul;let n=kr.paths={points:Cm};n.linear=Sm,n.stepped=RS,n.bars=LS,n.spline=NS}var Rm,Lm;function qS(){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 KS=qS();const w2=Wn("e",dl(KS));var ih,Om;function GS(){if(Om)return ih;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 ih=n,ih}var oh,Nm;function YS(){if(Nm)return oh;Nm=1;var n=GS();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 oh=t,oh}var sh,Dm;function Pm(){if(Dm)return sh;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 sh=h,sh}var ah,Fm;function XS(){if(Fm)return ah;Fm=1;function n(t){return t.split("")}return ah=n,ah}var lh,Wm;function QS(){if(Wm)return lh;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("|")+")",I=RegExp(h+"(?="+h+")|"+x+w,"g");function $(S){return S.match(I)||[]}return lh=$,lh}var ch,Bm;function ZS(){if(Bm)return ch;Bm=1;var n=XS(),t=Pm(),e=QS();function r(f){return t(f)?e(f):n(f)}return ch=r,ch}var uh,zm;function JS(){if(zm)return uh;zm=1;var n=typeof Lo=="object"&&Lo&&Lo.Object===Object&&Lo;return uh=n,uh}var hh,jm;function eA(){if(jm)return hh;jm=1;var n=JS(),t=typeof self=="object"&&self&&self.Object===Object&&self,e=n||t||Function("return this")();return hh=e,hh}var dh,Hm;function ph(){if(Hm)return dh;Hm=1;var n=eA(),t=n.Symbol;return dh=t,dh}var gh,Um;function tA(){if(Um)return gh;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 gh=n,gh}var fh,Vm;function nA(){if(Vm)return fh;Vm=1;var n=Array.isArray;return fh=n,fh}var mh,qm;function rA(){if(qm)return mh;qm=1;var n=ph(),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 mh=p,mh}var vh,Km;function iA(){if(Km)return vh;Km=1;var n=Object.prototype,t=n.toString;function e(r){return t.call(r)}return vh=e,vh}var yh,Gm;function oA(){if(Gm)return yh;Gm=1;var n=ph(),t=rA(),e=iA(),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 yh=y,yh}var wh,Ym;function sA(){if(Ym)return wh;Ym=1;function n(t){return t!=null&&typeof t=="object"}return wh=n,wh}var bh,Xm;function aA(){if(Xm)return bh;Xm=1;var n=oA(),t=sA(),e="[object Symbol]";function r(f){return typeof f=="symbol"||t(f)&&n(f)==e}return bh=r,bh}var xh,Qm;function lA(){if(Qm)return xh;Qm=1;var n=ph(),t=tA(),e=nA(),r=aA(),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 xh=y,xh}var Ch,Zm;function Gl(){if(Zm)return Ch;Zm=1;var n=lA();function t(e){return e==null?"":n(e)}return Ch=t,Ch}var kh,Jm;function cA(){if(Jm)return kh;Jm=1;var n=YS(),t=Pm(),e=ZS(),r=Gl();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 kh=f,kh}var Sh,ev;function tv(){if(ev)return Sh;ev=1;var n=cA(),t=n("toUpperCase");return Sh=t,Sh}var uA=tv();const hA=dl(uA);var Ah,nv;function dA(){if(nv)return Ah;nv=1;var n=Gl(),t=tv();function e(r){return t(n(r).toLowerCase())}return Ah=e,Ah}var _h,rv;function pA(){if(rv)return _h;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 _h=n,_h}var Th,iv;function gA(){if(iv)return Th;iv=1;function n(t){return function(e){return t==null?void 0:t[e]}}return Th=n,Th}var $h,ov;function fA(){if(ov)return $h;ov=1;var n=gA(),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 $h=e,$h}var Mh,sv;function mA(){if(sv)return Mh;sv=1;var n=fA(),t=Gl(),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 Mh=g,Mh}var Ih,av;function vA(){if(av)return Ih;av=1;var n=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function t(e){return e.match(n)||[]}return Ih=t,Ih}var Eh,lv;function yA(){if(lv)return Eh;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 Eh=t,Eh}var Rh,cv;function wA(){if(cv)return Rh;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+"]",I="["+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]",E="["+l+"]",H="\\u200d",F="(?:"+I+"|"+$+")",O="(?:"+E+"|"+$+")",_="(?:"+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+")*",K="\\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([E+"?"+I+"+"+_+"(?="+[c,E,"$"].join("|")+")",O+"+"+A+"(?="+[c,E+F,"$"].join("|")+")",E+"?"+F+"+"+_,E+"+"+A,Z,K,w,he].join("|"),"g");function ae(ue){return ue.match(ne)||[]}return Rh=ae,Rh}var Lh,uv;function bA(){if(uv)return Lh;uv=1;var n=vA(),t=yA(),e=Gl(),r=wA();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 Lh=f,Lh}var Oh,hv;function xA(){if(hv)return Oh;hv=1;var n=pA(),t=mA(),e=bA(),r="['’]",f=RegExp(r,"g");function p(y){return function(b){return n(e(t(b).replace(f,"")),y,"")}}return Oh=p,Oh}var Nh,dv;function CA(){if(dv)return Nh;dv=1;var n=dA(),t=xA(),e=t(function(r,f,p){return f=f.toLowerCase(),r+(p?n(f):f)});return Nh=e,Nh}var kA=CA();const SA=dl(kA),AA=Object.assign({"./ArrayWidget.vue":()=>lt(()=>at.import("./ArrayWidget-CeyoPOhk-41b640ac14707280f256.js"),void 0),"./ArrayplotWidget.vue":()=>lt(()=>at.import("./ArrayplotWidget-BEw4fJPY-e70c9f75508196afa908.js"),void 0),"./BlockWidget.vue":()=>lt(()=>at.import("./BlockWidget-DRtBkPat-7a54d4f7d95a0f872ee3.js"),void 0),"./ButtonWidget.vue":()=>lt(()=>at.import("./ButtonWidget-4GORf9BG-5d2ac70022ca0eb6a8f2.js"),void 0),"./CanvasWidget.vue":()=>lt(()=>at.import("./CanvasWidget-VW1uHIU0-b4cdb963c64217cd5549.js"),void 0),"./CanvasdotWidget.vue":()=>lt(()=>at.import("./CanvasdotWidget-unc83V9l-9ec01392c2af3a2b3047.js"),void 0),"./CanvasimageWidget.vue":()=>lt(()=>at.import("./CanvasimageWidget-CNPV5Ale-ba5d5875eddbaa51480c.js"),void 0),"./CanvasimagevalueWidget.vue":()=>lt(()=>at.import("./CanvasimagevalueWidget-DsQbSZt_-4314a243757ec3dbfce2.js"),void 0),"./CanvaslabelWidget.vue":()=>lt(()=>at.import("./CanvaslabelWidget-B-5KAkZr-5ecc669636d2a3e62ab9.js"),void 0),"./CanvaslabelvalueWidget.vue":()=>lt(()=>at.import("./CanvaslabelvalueWidget-DX-b_55r-756cf5d94de74aa17517.js"),void 0),"./CanvaslineWidget.vue":()=>lt(()=>at.import("./CanvaslineWidget-DiNWzbpu-48f372f46308370d3682.js"),void 0),"./CanvaslinevalueWidget.vue":()=>lt(()=>at.import("./CanvaslinevalueWidget-Du9pwAN7-6c827d51a7b6dcb6d713.js"),void 0),"./CheckbuttonWidget.vue":()=>lt(()=>at.import("./CheckbuttonWidget--QM-segm-2eea3a18f96fa4bec584.js"),void 0),"./ComboboxWidget.vue":()=>lt(()=>at.import("./ComboboxWidget-BDpHIcCo-e4d70d0b403c0a917e53.js"),void 0),"./DateWidget.vue":()=>lt(()=>at.import("./DateWidget-BCmQNavZ-f10c396c899c02a1a885.js"),void 0),"./DynamicWidget.vue":()=>lt(()=>at.import("./DynamicWidget-CfMtj7H8-fcedd9fa8e848e5f3498.js"),void 0),"./FormatvalueWidget.vue":()=>lt(()=>at.import("./FormatvalueWidget-CPn5mDHY-bb599362f1ed64740f4e.js"),void 0),"./HorizontalWidget.vue":()=>lt(()=>at.import("./HorizontalWidget-CtTkQHl--1a8c519bdff073d75f0d.js"),void 0),"./HorizontalboxWidget.vue":()=>lt(()=>at.import("./HorizontalboxWidget-Dn9zVn4r-75b51e310c45ad028878.js"),void 0),"./HorizontallineWidget.vue":()=>lt(()=>at.import("./HorizontallineWidget-BBvYWaP7-7a9090b65e69b8a79101.js"),void 0),"./IframeWidget.vue":()=>lt(()=>at.import("./IframeWidget-BmZOip3U-69f881f78947cc7650bd.js"),void 0),"./ImageviewerWidget.vue":()=>lt(()=>at.import("./ImageviewerWidget-ByuTqBHq-70efd6614ceccb708095.js"),void 0),"./LabelWidget.vue":()=>lt(()=>at.import("./LabelWidget-Dmb5F5j--369f952faab0bcbb50f6.js"),void 0),"./LabelledWidget.vue":()=>lt(()=>at.import("./LabelledWidget-DV1IbbPS-f7136a38e84ef3c9fc53.js"),void 0),"./LabelprogressbarWidget.vue":()=>lt(()=>at.import("./LabelprogressbarWidget-BHBDYVZp-ef6b8fc6a9eb87300a9b.js"),void 0),"./LabelsparklineWidget.vue":()=>lt(()=>at.import("./LabelsparklineWidget-BaoIdd7s-d9f3c42be0cdce4e21da.js"),void 0),"./LabelvalueWidget.vue":()=>lt(()=>at.import("./LabelvalueWidget-wuW55zQP-ed6bc7e7c4604ae2733d.js"),void 0),"./LabelvaluedescWidget.vue":()=>lt(()=>at.import("./LabelvaluedescWidget-BBHwqvj4-f79e249268eacc053d31.js"),void 0),"./LabelvaluelimitsbarWidget.vue":()=>lt(()=>at.import("./LabelvaluelimitsbarWidget-77Rc3lCf-648425fcc99f1b3b1278.js"),void 0),"./LabelvaluelimitscolumnWidget.vue":()=>lt(()=>at.import("./LabelvaluelimitscolumnWidget-nounrACl-bde94f839135a7744043.js"),void 0),"./LabelvaluerangebarWidget.vue":()=>lt(()=>at.import("./LabelvaluerangebarWidget-B83Jj5Q1-54fea90dd4ed5c1540ad.js"),void 0),"./LedWidget.vue":()=>lt(()=>at.import("./LedWidget-Cccb8YTk-e68c45d783192e419b5f.js"),void 0),"./LimitsbarWidget.vue":()=>lt(()=>at.import("./LimitsbarWidget-D1EBBwX1-7b5616e98bc0f575e10d.js"),void 0),"./LimitscolorWidget.vue":()=>lt(()=>at.import("./LimitscolorWidget--1aPSNVB-33cf53b5e23330924fbb.js"),void 0),"./LimitscolumnWidget.vue":()=>lt(()=>at.import("./LimitscolumnWidget-swnMNApm-610d91293df407e86ed3.js"),void 0),"./LinegraphWidget.vue":()=>lt(()=>at.import("./LinegraphWidget-BbI-wOnq-d8a048cd356dd509b619.js"),void 0),"./MatrixbycolumnsWidget.vue":()=>lt(()=>at.import("./MatrixbycolumnsWidget-Bx2qMr8P-ca9ecf6febd8ef4d30c1.js"),void 0),"./ProgressbarWidget.vue":()=>lt(()=>at.import("./ProgressbarWidget-7rJeuX6H-80213dfc96bb7afa138d.js"),void 0),"./RadiobuttonWidget.vue":()=>lt(()=>at.import("./RadiobuttonWidget-DsEw3JiU-87cd627172ab3568329d.js"),void 0),"./RadiogroupWidget.vue":()=>lt(()=>at.import("./RadiogroupWidget-DhfbTvQ8-c39fb53c9cdb78d8baae.js"),void 0),"./RangebarWidget.vue":()=>lt(()=>at.import("./RangebarWidget-BEGvSL_K-5644204183c85b84331c.js"),void 0),"./RollupWidget.vue":()=>lt(()=>at.import("./RollupWidget-BZhspgWd-eecfd63fb3c0da2d3084.js"),void 0),"./ScrollwindowWidget.vue":()=>lt(()=>at.import("./ScrollwindowWidget-qZ3nhhVU-5853d87bc2c6ba419ca7.js"),void 0),"./SignalWidget.vue":()=>lt(()=>at.import("./SignalWidget-Bh14Zrch-a975f8d21310d7cca838.js"),void 0),"./SpacerWidget.vue":()=>lt(()=>at.import("./SpacerWidget-D_NE46jZ-2b01622b7d6b0b08441b.js"),void 0),"./SparklineWidget.vue":()=>lt(()=>at.import("./SparklineWidget-CJEEJdZ--d3ccd8c8622cbb0b3086.js"),void 0),"./TabbookWidget.vue":()=>lt(()=>at.import("./TabbookWidget-C-SU65IF-d0b2fcc64e5528eab099.js"),void 0),"./TextboxWidget.vue":()=>lt(()=>at.import("./TextboxWidget-Dn1Ds-b0-fa2ee3c57b079569f3d1.js"),void 0),"./TextfieldWidget.vue":()=>lt(()=>at.import("./TextfieldWidget-C0C7NL53-58163faf6c3959a73130.js"),void 0),"./TimeWidget.vue":()=>lt(()=>at.import("./TimeWidget-AFOTVB4w-325dfd4c6cf5d08eca18.js"),void 0),"./TitleWidget.vue":()=>lt(()=>at.import("./TitleWidget-CbS_wrQw-c0804bc6e5824b0122fd.js"),void 0),"./ValueWidget.vue":()=>lt(()=>at.import("./ValueWidget-DFUfM5tw-28992b5efaf8a6789b9c.js"),void 0),"./ValuelimitsbarWidget.vue":()=>lt(()=>at.import("./ValuelimitsbarWidget-CALgABsT-52c35fcc64212f123a8c.js"),void 0),"./ValuelimitscolumnWidget.vue":()=>lt(()=>at.import("./ValuelimitscolumnWidget-Bs91VFLz-5b75061d611ae3f1ff75.js"),void 0),"./ValuerangebarWidget.vue":()=>lt(()=>at.import("./ValuerangebarWidget-C7WHyR2h-8dfd39adc55f68bb4d68.js"),void 0),"./VerticalWidget.vue":()=>lt(()=>at.import("./VerticalWidget-COP5oVCK-f7fa63cf7050b325cb3b.js"),void 0),"./VerticalboxWidget.vue":()=>lt(()=>at.import("./VerticalboxWidget-CDPoOx4C-461cb61d0a553f798eb6.js"),void 0)}),_A=Object.entries(AA).reduce((n,[t,e])=>{t=t.split("/").pop();const r=hA(SA(t.replace(/\.\w+$/,"")));return{...n,[r]:rp(e)}},{}),b2=Wn("U",{components:_A});function pv(n,t){return function(){return n.apply(t,arguments)}}const{toString:TA}=Object.prototype,{getPrototypeOf:Dh}=Object,{iterator:Yl,toStringTag:gv}=Symbol,Xl=(n=>t=>{const e=TA.call(t);return n[e]||(n[e]=e.slice(8,-1).toLowerCase())})(Object.create(null)),Ni=n=>(n=n.toLowerCase(),t=>Xl(t)===n),Ql=n=>t=>typeof t===n,{isArray:ea}=Array,Pa=Ql("undefined");function $A(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 MA(n){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(n):t=n&&n.buffer&&fv(n.buffer),t}const IA=Ql("string"),Ur=Ql("function"),mv=Ql("number"),Zl=n=>n!==null&&typeof n=="object",EA=n=>n===!0||n===!1,Jl=n=>{if(Xl(n)!=="object")return!1;const t=Dh(n);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(gv in n)&&!(Yl in n)},RA=Ni("Date"),LA=Ni("File"),OA=Ni("Blob"),NA=Ni("FileList"),DA=n=>Zl(n)&&Ur(n.pipe),PA=n=>{let t;return n&&(typeof FormData=="function"&&n instanceof FormData||Ur(n.append)&&((t=Xl(n))==="formdata"||t==="object"&&Ur(n.toString)&&n.toString()==="[object FormData]"))},FA=Ni("URLSearchParams"),[WA,BA,zA,jA]=["ReadableStream","Request","Response","Headers"].map(Ni),HA=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 Ph(){const{caseless:n}=yv(this)&&this||{},t={},e=(r,f)=>{const p=n&&vv(t,f)||f;Jl(t[p])&&Jl(r)?t[p]=Ph(t[p],r):Jl(r)?t[p]=Ph({},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 UA=(n,t,e,{allOwnKeys:r}={})=>(Fa(t,(f,p)=>{e&&Ur(f)?n[p]=pv(f,e):n[p]=f},{allOwnKeys:r}),n),VA=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),qA=(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)},KA=(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&&Dh(n)}while(n&&(!e||e(n,t))&&n!==Object.prototype);return t},GA=(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},YA=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},XA=(n=>t=>n&&t instanceof n)(typeof Uint8Array<"u"&&Dh(Uint8Array)),QA=(n,t)=>{const e=(n&&n[Yl]).call(n);let r;for(;(r=e.next())&&!r.done;){const f=r.value;t.call(n,f[0],f[1])}},ZA=(n,t)=>{let e;const r=[];for(;(e=n.exec(t))!==null;)r.push(e);return r},JA=Ni("HTMLFormElement"),e_=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),t_=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)},n_=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+"'")})}})},r_=(n,t)=>{const e={},r=f=>{f.forEach(p=>{e[p]=!0})};return ea(n)?r(n):r(String(n).split(t)),e},i_=()=>{},o_=(n,t)=>n!=null&&Number.isFinite(n=+n)?n:t;function s_(n){return!!(n&&Ur(n.append)&&n[gv]==="FormData"&&n[Yl])}const a_=n=>{const t=new Array(10),e=(r,f)=>{if(Zl(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)},l_=Ni("AsyncFunction"),c_=n=>n&&(Zl(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)),u_=typeof queueMicrotask<"u"?queueMicrotask.bind(fs):typeof process<"u"&&process.nextTick||xv,h_=n=>n!=null&&Ur(n[Yl]),_e={isArray:ea,isArrayBuffer:fv,isBuffer:$A,isFormData:PA,isArrayBufferView:MA,isString:IA,isNumber:mv,isBoolean:EA,isObject:Zl,isPlainObject:Jl,isReadableStream:WA,isRequest:BA,isResponse:zA,isHeaders:jA,isUndefined:Pa,isDate:RA,isFile:LA,isBlob:OA,isRegExp:t_,isFunction:Ur,isStream:DA,isURLSearchParams:FA,isTypedArray:XA,isFileList:NA,forEach:Fa,merge:Ph,extend:UA,trim:HA,stripBOM:VA,inherits:qA,toFlatObject:KA,kindOf:Xl,kindOfTest:Ni,endsWith:GA,toArray:YA,forEachEntry:QA,matchAll:ZA,isHTMLForm:JA,hasOwnProperty:wv,hasOwnProp:wv,reduceDescriptors:bv,freezeMethods:n_,toObjectSet:r_,toCamelCase:e_,noop:i_,toFiniteNumber:o_,findKey:vv,global:fs,isContextDefined:yv,isSpecCompliantForm:s_,toJSONObject:a_,isAsyncFn:l_,isThenable:c_,setImmediate:xv,asap:u_,isIterable:h_};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 d_=null;function Fh(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 p_(n){return _e.isArray(n)&&!n.some(Fh)}const g_=_e.toFlatObject(_e,{},null,function(n){return/^is[A-Z]/.test(n)});function ec(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)&&p_(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 Fh(a)?!0:(t.append(Av(c,o,p),h(a)),!1)}const s=[],l=Object.assign(g_,{defaultVisitor:g,convertValue:h,isVisitable:Fh});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 Wh(n,t){this._pairs=[],n&&ec(n,this,t)}const Tv=Wh.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 f_(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||f_;_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 Wh(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},m_=typeof URLSearchParams<"u"?URLSearchParams:Wh,v_=typeof FormData<"u"?FormData:null,y_=typeof Blob<"u"?Blob:null,w_={isBrowser:!0,classes:{URLSearchParams:m_,FormData:v_,Blob:y_},protocols:["http","https","file","blob","url","data"]},Bh=typeof window<"u"&&typeof document<"u",zh=typeof navigator=="object"&&navigator||void 0,b_=Bh&&(!zh||["ReactNative","NativeScript","NS"].indexOf(zh.product)<0),x_=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",C_=Bh&&window.location.href||"http://localhost",k_=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Bh,hasStandardBrowserEnv:b_,hasStandardBrowserWebWorkerEnv:x_,navigator:zh,origin:C_},Symbol.toStringTag,{value:"Module"})),Sr={...k_,...w_};function S_(n,t){return ec(n,new Sr.classes.URLSearchParams,Object.assign({visitor:function(e,r,f,p){return Sr.isNode&&_e.isBuffer(e)?(this.append(r,e.toString("base64")),!1):p.defaultVisitor.apply(this,arguments)}},t))}function A_(n){return _e.matchAll(/\w+|\[(\w*)]/g,n).map(t=>t[0]==="[]"?"":t[1]||t[0])}function __(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]=__(f[y])),!b)}if(_e.isFormData(n)&&_e.isFunction(n.entries)){const e={};return _e.forEachEntry(n,(r,f)=>{t(A_(r),f,e,0)}),e}return null}function T_(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 S_(n,this.formSerializer).toString();if((p=_e.isFileList(n))||e.indexOf("multipart/form-data")>-1){const y=this.env&&this.env.FormData;return ec(p?{"files[]":n}:n,y&&new y,this.formSerializer)}}return f||r?(t.setContentType("application/json",!1),T_(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:Sr.classes.FormData,Blob:Sr.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 $_=_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"]),M_=n=>{const t={};let e,r,f;return n&&n.split(`
1495
- `).forEach(function(p){f=p.indexOf(":"),e=p.substring(0,f).trim().toLowerCase(),r=p.substring(f+1).trim(),!(!e||t[e]&&$_[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 tc(n){return n===!1||n==null?n:_e.isArray(n)?n.map(tc):String(n)}function I_(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 E_=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function jh(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 R_(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,e,r)=>e.toUpperCase()+r)}function L_(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]=tc(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())&&!E_(t))y(M_(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 I_(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||jh(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||jh(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||jh(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]=tc(f),delete e[p];return}const b=t?R_(p):String(p).trim();b!==p&&delete e[p],e[b]=tc(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(`
1496
- `)}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]||(L_(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 Hh(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 O_(n){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return t&&t[1]||""}function N_(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 D_(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 nc=(n,t,e=3)=>{let r=0;const f=N_(50,250);return D_(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)),P_=Sr.hasStandardBrowserEnv?((n,t)=>e=>(e=new URL(e,Sr.origin),n.protocol===e.protocol&&n.host===e.host&&(t||n.port===e.port)))(new URL(Sr.origin),Sr.navigator&&/(msie|trident)/i.test(Sr.navigator.userAgent)):()=>!0,F_=Sr.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 W_(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function B_(n,t){return t?n.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):n}function Pv(n,t,e){let r=!W_(t);return n&&(r||e==!1)?B_(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(Sr.hasStandardBrowserEnv||Sr.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(Sr.hasStandardBrowserEnv&&(r&&_e.isFunction(r)&&(r=r(t)),r||r!==!1&&P_(t.url))){const g=f&&p&&F_.read(p);g&&y.set(f,g)}return t},z_=typeof XMLHttpRequest<"u",j_=z_&&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()),I={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()},I),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 I=r.transitional||Iv;r.timeoutErrorMessage&&(x=r.timeoutErrorMessage),e(new Et(x,I.clarifyTimeoutError?Et.ETIMEDOUT:Et.ECONNABORTED,n,c)),c=null},f===void 0&&p.setContentType(null),"setRequestHeader"in c&&_e.forEach(p.toJSON(),function(x,I){c.setRequestHeader(I,x)}),_e.isUndefined(r.withCredentials)||(c.withCredentials=!!r.withCredentials),y&&y!=="json"&&(c.responseType=r.responseType),h&&([l,a]=nc(h,!0),c.addEventListener("progress",l)),b&&c.upload&&([s,u]=nc(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=O_(r.url);if(w&&Sr.protocols.indexOf(w)===-1){e(new Et("Unsupported protocol "+w+":",Et.ERR_BAD_REQUEST,n));return}c.send(f||null)})},H_=(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}},U_=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},V_=async function*(n,t){for await(const e of q_(n))yield*U_(e,t)},q_=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=V_(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})},rc=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",zv=rc&&typeof ReadableStream=="function",K_=rc&&(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}},G_=zv&&jv(()=>{let n=!1;const t=new Request(Sr.origin,{body:new ReadableStream,method:"POST",get duplex(){return n=!0,"half"}}).headers.has("Content-Type");return n&&!t}),Hv=64*1024,Uh=zv&&jv(()=>_e.isReadableStream(new Response("").body)),ic={stream:Uh&&(n=>n.body)};rc&&(n=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!ic[t]&&(ic[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 Y_=async n=>{if(n==null)return 0;if(_e.isBlob(n))return n.size;if(_e.isSpecCompliantForm(n))return(await new Request(Sr.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 K_(n)).byteLength},X_=async(n,t)=>_e.toFiniteNumber(n.getContentLength())??Y_(t),Q_=rc&&(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=H_([f,p&&p.toAbortSignal()],y),o;const c=a&&a.unsubscribe&&(()=>{a.unsubscribe()});let d;try{if(h&&G_&&e!=="get"&&e!=="head"&&(d=await X_(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,nc(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 I=Uh&&(g==="stream"||g==="response");if(Uh&&(b||I&&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,nc(Dv(b),!0))||[];x=new Response(Bv(x.body,Hv,R,()=>{L&&L(),c&&c()}),S)}g=g||"text";let $=await ic[_e.findKey(ic,g)||"text"](x,n);return!I&&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)}}),Vh={http:d_,xhr:j_,fetch:Q_};_e.forEach(Vh,(n,t)=>{if(n){try{Object.defineProperty(n,"name",{value:t})}catch{}Object.defineProperty(n,"adapterName",{value:t})}});const Uv=n=>`- ${n}`,Z_=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,!Z_(e)&&(r=Vh[(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
+ `)},download:function(){const n=new Blob([this.displayText],{type:"text/plain"}),t=document.createElement("a");let e=URL.createObjectURL(n);t.href=e,t.setAttribute("download",`${Ro(new Date,"yyyy_MM_dd_HH_mm_ss")}.txt`),t.click(),window.URL.revokeObjectURL(e)},pause:function(){this.paused=!0},togglePlayPause:function(){this.paused=!this.paused},stepBackward:function(){this.pause(),this.pauseOffset--},stepForward:function(){this.pause(),this.pauseOffset++}}},qC={class:"pa-2"},KC={class:"text-area-container"},GC={class:"floating-buttons"};function YC(n,t,e,r,f,p){const y=rt("v-text-field"),b=rt("v-col"),h=rt("v-slider"),g=rt("v-row"),s=rt("v-textarea"),l=rt("v-btn"),u=rt("v-card-title"),a=rt("v-switch"),o=rt("v-radio"),c=rt("v-radio-group"),d=rt("v-card-text"),w=rt("v-card"),x=rt("v-menu");return Jt(),Or("div",qC,[Pe(g,{dense:"",class:"mb-2"},{default:Je(()=>[Pe(b,{cols:"4"},{default:Je(()=>[Pe(y,{modelValue:n.filterText,"onUpdate:modelValue":t[0]||(t[0]=I=>n.filterText=I),label:"Search",class:"search","prepend-inner-icon":"mdi-magnify",clearable:"",variant:"outlined",density:"compact","single-line":"","hide-details":"","data-test":"history-component-search"},null,8,["modelValue"])]),_:1}),Pe(b,{cols:"8",class:"mt-1"},{default:Je(()=>[Pe(h,{modelValue:n.pauseOffset,"onUpdate:modelValue":t[1]||(t[1]=I=>n.pauseOffset=I),"prepend-icon":"mdi-step-backward","append-icon":"mdi-step-forward",min:1-n.currentConfig.history,max:0,"hide-details":"",onMousedown:p.pause,"onClick:prepend":p.stepBackward,"onClick:append":p.stepForward},null,8,["modelValue","min","onMousedown","onClick:prepend","onClick:append"])]),_:1})]),_:1}),Pe(g,{dense:"","no-gutters":""},{default:Je(()=>[Pe(b,null,{default:Je(()=>[br("div",KC,[Pe(s,{"model-value":n.displayText,rows:n.rows,"no-resize":"",readonly:"",variant:"solo",flat:"","hide-details":"","data-test":"history-component-text-area"},null,8,["model-value","rows"]),br("div",GC,[Pe(x,{"close-on-content-click":!1,"min-width":700},{activator:Je(({props:I})=>[Pe(l,Yc({class:"ml-2",color:"secondary"},I,{icon:"astro:settings",size:"small","aria-label":"Settings","data-test":"history-component-open-settings"}),null,16)]),default:Je(()=>[Pe(w,null,{default:Je(()=>[Pe(u,{"data-test":"display-settings-card"},{default:Je(()=>t[9]||(t[9]=[Gn(" Display settings ")])),_:1}),Pe(d,null,{default:Je(()=>[Pe(g,null,{default:Je(()=>[Pe(b,null,{default:Je(()=>[Pe(a,{modelValue:n.currentConfig.showTimestamp,"onUpdate:modelValue":t[2]||(t[2]=I=>n.currentConfig.showTimestamp=I),label:"Show timestamp",density:"compact",color:"primary","hide-details":"","data-test":"history-component-settings-show-timestamp"},null,8,["modelValue"]),n.hasRaw?(Jt(),pr(a,{key:0,modelValue:n.currentConfig.showAscii,"onUpdate:modelValue":t[3]||(t[3]=I=>n.currentConfig.showAscii=I),label:"Show ASCII",density:"compact",color:"primary","hide-details":"","data-test":"history-component-settings-show-ascii"},null,8,["modelValue"])):xr("",!0),n.hasRaw?(Jt(),pr(a,{key:1,modelValue:n.currentConfig.showLineAddress,"onUpdate:modelValue":t[4]||(t[4]=I=>n.currentConfig.showLineAddress=I),label:"Show line address",density:"compact",color:"primary","hide-details":"","data-test":"history-component-settings-show-address"},null,8,["modelValue"])):xr("",!0)]),_:1}),Pe(b,null,{default:Je(()=>[Pe(c,{modelValue:n.currentConfig.newestAtTop,"onUpdate:modelValue":t[5]||(t[5]=I=>n.currentConfig.newestAtTop=I),label:"Print newest to the"},{default:Je(()=>[Pe(o,{label:"Top",value:!0,"data-test":"history-component-settings-newest-top"}),Pe(o,{label:"Bottom",value:!1,"data-test":"history-component-settings-newest-bottom"})]),_:1},8,["modelValue"])]),_:1}),Pe(b,null,{default:Je(()=>[Pe(y,{modelValue:n.currentConfig.history,"onUpdate:modelValue":t[6]||(t[6]=I=>n.currentConfig.history=I),label:"History Buffer",type:"number",min:"1","persistent-hint":"",rules:[n.rules.required,n.rules.min],"data-test":"history-component-settings-history"},null,8,["modelValue","rules"]),n.hasRaw?(Jt(),pr(y,{key:0,modelValue:n.currentConfig.bytesPerLine,"onUpdate:modelValue":t[7]||(t[7]=I=>n.currentConfig.bytesPerLine=I),label:"Bytes per line",type:"number",min:"1",rules:[n.rules.required,n.rules.min],"data-test":"history-component-settings-num-bytes"},null,8,["modelValue","rules"])):xr("",!0),Pe(y,{modelValue:n.currentConfig.packetsToShow,"onUpdate:modelValue":t[8]||(t[8]=I=>n.currentConfig.packetsToShow=I),label:"Entries to show",type:"number",min:"1",hint:`Maximum: ${n.currentConfig.history}`,"persistent-hint":"",rules:[n.rules.required,n.rules.min,n.rules.max],"data-test":"history-component-settings-num-packets"},null,8,["modelValue","hint","rules"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}),Pe(l,{class:"ml-2",color:"secondary",icon:"mdi-file-download",size:"small","aria-label":"Download","data-test":"history-component-download",onClick:p.download},null,8,["onClick"]),Pe(l,{class:Xc(["ml-2",{pulse:n.paused}]),color:"primary",icon:n.paused?"mdi-play":"mdi-pause",size:"large","aria-label":n.paused?"Play":"Pause","data-test":"history-component-play-pause",onClick:p.togglePlayPause},null,8,["class","icon","aria-label","onClick"])])])]),_:1})]),_:1})])}const y2=Wn("H",qi(VC,[["render",YC],["__scopeId","data-v-f8fb06ca"]]));var rf={exports:{}},of;function XC(){return of||(of=1,function(n,t){(function(){ace.require(["ace/mode/text"],function(e){n&&(n.exports=e)})})()}(rf)),rf.exports}XC();const QC=!0,nr="u-",ZC="uplot",JC=nr+"hz",ek=nr+"vt",tk=nr+"title",nk=nr+"wrap",rk=nr+"under",ik=nr+"over",ok=nr+"axis",cs=nr+"off",sk=nr+"select",ak=nr+"cursor-x",lk=nr+"cursor-y",ck=nr+"cursor-pt",uk=nr+"legend",hk=nr+"live",dk=nr+"inline",pk=nr+"series",gk=nr+"marker",sf=nr+"label",fk=nr+"value",Ma="width",Ia="height",Ea="top",af="bottom",Us="left",$u="right",Mu="#000",lf=Mu+"0",Iu="mousemove",cf="mousedown",Eu="mouseup",uf="mouseenter",hf="mouseleave",df="dblclick",mk="resize",vk="scroll",pf="change",Ol="dppxchange",Ru="--",Vs=typeof window<"u",Lu=Vs?document:null,qs=Vs?window:null,yk=Vs?navigator:null;let en,Nl;function Ou(){let n=devicePixelRatio;en!=n&&(en=n,Nl&&Pu(pf,Nl,Ou),Nl=matchMedia(`(min-resolution: ${en-.001}dppx) and (max-resolution: ${en+.001}dppx)`),us(pf,Nl,Ou),qs.dispatchEvent(new CustomEvent(Ol)))}function ti(n,t){if(t!=null){let e=n.classList;!e.contains(t)&&e.add(t)}}function Nu(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=Lu.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 Gi(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):Nu(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 Du={passive:!0},wk={...Du,capture:!0};function us(n,t,e,r){t.addEventListener(n,e,r?wk:Du)}function Pu(n,t,e,r){t.removeEventListener(n,e,Du)}Vs&&Ou();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),bk=wf(xf);function xk(n,t,e,r=0,f=!1){let p=f?bk: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??gr,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=Ks(e,g),u=Ks(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 Fu(n,t,e,r){let f=Pl(n,t,e,r);return n==0&&(f[0]=0),t==0&&(f[1]=0),f}const Wu=.1,Cf={mode:3,pad:Wu},Ra={pad:0,soft:null,mode:0},Ck={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,Ck))}function Qt(n,t){return n??t}function kk(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,gr),g=Qt(r.soft,gr),s=Qt(f.soft,-1/0),l=Qt(r.mode,0),u=Qt(f.mode,0),a=t-n,o=ao(a),c=Nr(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!=gr&&(p=0),u==2&&s!=-1/0&&(y=0)));let x=a||c||1e3,I=ao(x),$=Ks(10,ri(I)),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:gr,L=Nr(b,C<R&&n>=R?R:Oi(R,C)),P=x*(a==0?t==0?.1:1:y),E=dn(Bl(t+P,$/10),24),H=t<=s&&(u==1||u==3&&E>=s||u==2&&E<=s)?s:-1/0,F=Oi(h,E>H&&t<=H?H:Nr(H,E));return L==F&&L==0&&(F=100),[L,F]}const Sk=new Intl.NumberFormat(Vs?yk.language:"en-US"),Bu=n=>Sk.format(n),ni=Math,Wl=ni.PI,rr=ni.abs,ri=ni.floor,ir=ni.round,mi=ni.ceil,Oi=ni.min,Nr=ni.max,Ks=ni.pow,Sf=ni.sign,ao=ni.log10,Af=ni.log2,Ak=(n,t=1)=>ni.sinh(n)*t,zu=(n,t=1)=>ni.asinh(n/t),gr=1/0;function _f(n){return(ao((n^n>>31)-(n>>31))|0)+1}function ju(n,t,e){return Oi(Nr(n,t),e)}function Tf(n){return typeof n=="function"}function Ht(n){return Tf(n)?n:()=>n}const _k=()=>{},$f=n=>n,Mf=(n,t)=>t,Tk=n=>null,If=n=>!0,Ef=(n,t)=>n==t,$k=/\.\d*?(?=9{6,}|0{6,})/gm,hs=n=>{if(Of(n)||No.has(n))return n;const t=`${n}`,e=t.match($k);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 No=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(Ks(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),No.set(u,l)}}return f}const Oa={},Hu=[],Gs=[null,null],Do=Array.isArray,Of=Number.isInteger,Mk=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 Ik(n){return n!=null&&typeof n=="object"}const Ek=Object.getPrototypeOf(Uint8Array),Df="__proto__";function Ys(n,t=zl){let e;if(Do(n)){let r=n.find(f=>f!=null);if(Do(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 Ek)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 Xn(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])?Xn(n[f],Ys(r[f])):n[f]=Ys(r[f]))}return n}const Rk=0,Lk=1,Ok=2;function Nk(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 Dk(n,t){if(Wk(n)){let y=n[0].slice();for(let b=1;b<n.length;b++)y.push(...n[b].slice(1));return Bk(y[0])||(y=Fk(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]:Lk,a=[];for(let o=0;o<s.length;o++){let c=s[o],d=p.get(h[o]);c===null?u!=Rk&&(l[d]=c,u==Ok&&a.push(d)):l[d]=c}Nk(l,a,f),r.push(l)}}return r}const Pk=typeof queueMicrotask>"u"?n=>Promise.resolve().then(n):queueMicrotask;function Fk(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 Wk(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 Bk(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=Nr(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 zk=Ff.map(Wf),jk=Pf.map(Wf),Hk={MMMM:Pf,MMM:jk,WWWW:Ff,WWW:zk};function Na(n){return(n<10?"0":"")+n}function Uk(n){return(n<10?"00":n<100?"0":"")+n}const Vk={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=>Uk(n.getMilliseconds())};function Uu(n,t){t=t||Hk;let e=[],r=/\{([a-z]+)\}|[^{]+/gi,f;for(;f=r.exec(n);)e.push(f[0][0]=="{"?Vk[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 qk=new Intl.DateTimeFormat().resolvedOptions().timeZone;function Kk(n,t){let e;return t=="UTC"||t=="Etc/UTC"?e=new Date(+n+n.getTimezoneOffset()*6e4):t==qk?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],Gk=La(10,-32,0,jl),zf=La(10,0,32,jl),Yk=zf.filter(Bf),ps=Gk.concat(zf),Vu=`
1493
+ `,jf="{YYYY}",Hf=Vu+jf,Uf="{M}/{D}",Da=Vu+Uf,Hl=Da+"/{YY}",Vf="{aa}",Xk="{h}:{mm}",Xs=Xk+Vf,qf=Vu+Xs,Kf=":{ss}",sn=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,sn,sn,sn,sn,sn,sn,1],[f*28,"{MMM}",Hf,sn,sn,sn,sn,sn,1],[f,Uf,Hf,sn,sn,sn,sn,sn,1],[r,"{h}"+Vf,Hl,sn,Da,sn,sn,sn,1],[e,Xs,Hl,sn,Da,sn,sn,sn,1],[t,Kf,Hl+" "+Xs,sn,Da+" "+Xs,sn,qf,sn,1],[n,Kf+".{fff}",Hl+" "+Xs,sn,Da+" "+Xs,sn,qf,sn,1]];function g(s){return(l,u,a,o,c,d)=>{let w=[],x=c>=y,I=c>=p&&c<y,$=s(a),S=dn($*n,3),C=qu($.getFullYear(),x?0:$.getMonth(),I||x?1:$.getDate()),R=dn(C*n,3);if(I||x){let L=I?c/p:0,P=x?c/y:0,E=S==R?S:dn(qu(C.getFullYear()+P,C.getMonth()+L,1)*n,3),H=new Date(ir(E/n)),F=H.getFullYear(),O=H.getMonth();for(let _=0;E<=o;_++){let A=qu(F+P*_,O+L*_,1),N=A-s(dn(A*n,3));E=dn((+A+N)*n,3),E<=o&&w.push(E)}}else{let L=c>=f?f:c,P=ri(a)-ri(S),E=R+P+Bl(S-R,L);w.push(E);let H=s(E),F=H.getHours()+H.getMinutes()/e+H.getSeconds()/r,O=c/r,_=l.axes[u]._space,A=d/_;for(;E=dn(E+c,n==1?0:3),!(E>o);)if(O>1){let N=ri(dn(F+O,6))%24,B=s(E).getHours()-N;B>1&&(B=-1),E-=B*r,F=(F+O)%24;let U=w[w.length-1];dn((E-U)/c,3)*A>=.7&&w.push(E)}else w.push(E)}return w}}return[b,h,g]}const[Qk,Zk,Jk]=Gf(1),[eS,tS,nS]=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(),I=c.getHours(),$=c.getMinutes(),S=c.getSeconds(),C=d!=h&&b[2]||w!=g&&b[3]||x!=s&&b[4]||I!=l&&b[5]||$!=u&&b[6]||S!=a&&b[7]||b[1];return h=d,g=w,s=x,l=I,u=$,a=S,C(c)})}}function rS(n,t){let e=Uu(t);return(r,f,p,y,b)=>f.map(h=>e(n(h)))}function qu(n,t,e){return new Date(n,t,e)}function Qf(n,t){return t(n)}const iS="{YYYY}-{MM}-{DD} {h}:{mm}{aa}";function Zf(n,t){return(e,r,f,p)=>p==null?Ru:t(n(r))}function oS(n,t){let e=n.series[t];return e.width?e.stroke(n,t):e.points.width?e.points.stroke(n,t):null}function sS(n,t){return n.series[t].fill(n,t)}const aS={show:!0,live:!0,isolate:!1,mount:_k,markers:{show:!0,width:2,stroke:oS,fill:sS,dash:"solid"},idx:null,idxs:null,values:[]};function lS(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 cS(n,t){let e=n.series[t].points;return e._fill||e._stroke}function uS(n,t){let e=n.series[t].points;return e._stroke||e._fill}function hS(n,t){return n.series[t].points.size}const Ku=[0,0];function dS(n,t,e){return Ku[0]=t,Ku[1]=e,Ku}function Ul(n,t,e,r=!0){return f=>{f.button==0&&(!r||f.target==t)&&e(f)}}function Gu(n,t,e,r=!0){return f=>{(!r||f.target==t)&&e(f)}}const pS={show:!0,x:!0,y:!0,lock:!1,move:dS,points:{one:!1,show:lS,size:hS,width:0,stroke:uS,fill:cS},bind:{mousedown:Ul,mouseup:Ul,click:Ul,dblclick:Ul,mousemove:Gu,mouseleave:Gu,mouseenter:Gu},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},Yu=Xn({},Jf,{filter:Mf}),em=Xn({},Yu,{size:10}),tm=Xn({},Jf,{show:!1}),Xu='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 "+Xu,rm=1.5,im={show:!0,scale:"x",stroke:Mu,space:50,gap:5,alignTo:1,size:50,labelGap:0,labelSize:30,labelFont:nm,side:2,grid:Yu,ticks:em,border:tm,font:Xu,lineGap:rm,rotate:0},gS="Value",fS="Time",om={show:!0,scale:"x",auto:!1,sorted:1,min:gr,max:-1/0,idxs:[]};function mS(n,t,e,r,f){return t.map(p=>p==null?"":Bu(p))}function vS(n,t,e,r,f,p,y){let b=[],h=No.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 Qu(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=Ks(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&&!No.has(l)&&(l=dn(l,No.get(f))),l>=u&&(f=l,u=f*h,h==10&&(u=ps[Li(u,ps)]));while(l<=r);return b}function yS(n,t,e,r,f,p,y){let b=n.scales[n.axes[t].scale].asinh,h=r>b?Qu(n,t,Nr(b,e),r,f):[b],g=r>=0&&e<=0?[0]:[];return(e<-b?Qu(n,t,Nr(b,-r),-e,f):[b]).reverse().map(s=>-s).concat(g,h)}const sm=/./,wS=/[12357]/,bS=/[125]/,am=/1/,Zu=(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 xS(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?wS:h(5,y)-s>=g?bS:am;if(l==am){let u=rr(h(1,y)-s);if(u<g)return Zu(t.slice().reverse(),b.distr,l,mi(g/u)).reverse()}return Zu(t,b.distr,l,1)}function CS(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?Zu(t.slice().reverse(),3,sm,mi(b/g)).reverse():t}function kS(n,t,e,r){return r==null?Ru:t==null?"":Bu(t)}const lm={show:!0,scale:"y",stroke:Mu,space:30,gap:5,alignTo:1,size:50,labelGap:0,labelSize:30,labelFont:nm,side:3,grid:Yu,ticks:em,border:tm,font:Xu,lineGap:rm,rotate:0};function SS(n,t){let e=3+(n||1)*2;return dn(e*t,3)}function AS(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*en);return r[1]-r[0]<=g}const cm={scale:null,auto:!0,sorted:0,min:gr,max:-1/0},um=(n,t,e,r,f)=>f,hm={show:!0,auto:!0,sorted:0,gaps:um,alpha:1,facets:[Xn({},cm,{scale:"x"}),Xn({},cm,{scale:"y"})]},dm={scale:"y",auto:!0,sorted:0,show:!0,spanGaps:!1,gaps:um,alpha:1,points:{show:AS,filter:null},values:null,min:gr,max:-1/0,idxs:[],path:null,clip:null};function _S(n,t,e,r,f){return e/10}const pm={time:QC,auto:!0,distr:1,log:10,asinh:1,min:null,max:null,dir:1,ori:0},TS=Xn({},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,Ju=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,ql,Zs,Gl,ym,bm):e(f,h,g,s,l,w,d,a,u,c,o,Kl,Js,nh,wm,xm)}function eh(n,t){let e=0,r=0,f=Qt(n.bands,Hu);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 $S(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),I=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)),E=new Path2D(f);return I(E,L,P),I(E,C,P),I(E,C,R),E})}function Vl(n,t,e,r,f,p){let y=null;if(n.length>0){y=new Path2D;const b=t==0?Gl:nh;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 MS(n,t,e){let r=n[n.length-1];r&&r[0]==t?r[1]=e:n.push([t,e])}function th(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?ql:Kl,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 ql=(n,t,e)=>{n.moveTo(t,e)},Kl=(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),nh=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,I,$;g.ori==0?(I=ql,$=ym):(I=Kl,$=wm);const S=dn(x.width*en,3);let C=(x.size-x.width)/2*en,R=dn(C*2,3),L=new Path2D,P=new Path2D,{left:E,top:H,width:F,height:O}=t.bbox;Gl(P,E-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));I(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|Ju}})}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 IS=km(Zs),ES=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)),I=F=>w(u(F,s,d,o)),$,S;g.ori==0?($=Zs,S=IS):($=Js,S=ES);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]),K=x(b[f]),Z=x(b[p]),te=F(C==1?K+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,I(N)),A=O=_=N):N<O?O=N:N>_&&(_=N)):ue===null&&(P=!0):(O!=null&&S(L,U,I(O),I(_),I(A),I(N)),ue!=null?(N=ue,$(L,ae,I(N)),O=_=A=N):(O=_=null,ue===null&&(P=!0)),U=ae,te=F(U+C))}O!=null&&O!=_&&B!=U&&S(L,U,I(O),I(_),I(A),I(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]),I(O))}let[E,H]=eh(e,r);if(y.fill!=null||E!=0){let F=R.fill=new Path2D(L),O=y.fillTo(e,r,y.min,y.max,E),_=I(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(...th(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 RS(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,I)=>{[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,I,w)),P=u.ori==0?Zs:Js;const E={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:Qs},H=E.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,K]=eh(p,y);if(g.fill!=null||U!=0){let Z=E.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(...th(s,l,b,h,F,R,r));let te=g.width*en/2,he=e||t==1?te:-te,ne=e||t==-1?-te:te;Z.forEach(ae=>{ae[0]+=he,ae[1]+=ne}),E.gaps=Z=g.gaps(p,y,b,h,Z),E.clip=Vl(Z,u.ori,d,w,x,I)}return K!=0&&(E.band=K==2?[lo(p,y,b,h,H,-1),lo(p,y,b,h,H,1)]:lo(p,y,b,h,H,K)),E})}function Am(n,t,e,r,f,p,y=gr){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 LS(n){n=n||Oa;const t=Qt(n.size,[.6,gr,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],gr),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,I,$,S,C,R,L,P,E,H)=>{let F=w.pxRound,O=e,_=r*en,A=b*en,N=h*en,B,U;$.ori==0?[B,U]=p(a,o):[U,B]=p(a,o);const K=$.dir*($.ori==0?1:-1);let Z=$.ori==0?Gl:nh,te=$.ori==0?s:(Ue,ke,je,Xe,ft,At,St)=>{s(Ue,ke,je,ft,Xe,St,At)},he=Qt(a.bands,Hu).find(Ue=>Ue.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=E,Ie=F(w.width*en),Ye=!1,Ke=null,pt=null,it=null,gt=null;l!=null&&(Ie==0||u!=null)&&(Ye=!0,Ke=l.values(a,o,c,d),pt=new Map,new Set(Ke).forEach(Ue=>{Ue!=null&&pt.set(Ue,new Path2D)}),Ie>0&&(it=u.values(a,o,c,d),gt=new Map,new Set(it).forEach(Ue=>{Ue!=null&&gt.set(Ue,new Path2D)})));let{x0:nn,size:gn}=g;if(nn!=null&&gn!=null){O=1,x=nn.values(a,o,c,d),nn.unit==2&&(x=x.map(ke=>a.posToVal(L+ke*E,$.key,!0)));let Ue=gn.values(a,o,c,d);gn.unit==2?fe=Ue[0]*E:fe=C(Ue[0],$,E,L)-C(0,$,E,L),$e=Am(x,I,C,$,E,L,$e),Te=$e-fe+_}else $e=Am(x,I,C,$,E,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,fr=$e-Te-(Yt?Ie:0);fe=F(ju(fr,N,A)),ce=(O==0?fe/2:O==K?0:fe)-O*K*((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:Ue,y1:ke}=g;Ue!=null&&ke!=null&&(I=ke.values(a,o,c,d),Rn=Ue.values(a,o,c,d))}let Zn=B*fe,bt=U*fe;for(let Ue=K==1?c:d;Ue>=c&&Ue<=d;Ue+=K){let ke=I[Ue];if(ke==null)continue;if(Rn!=null){let dt=Rn[Ue]??0;if(ke-dt==0)continue;ue=R(dt,S,H,P)}let je=$.distr!=2||g!=null?x[Ue]:Ue,Xe=C(je,$,E,L),ft=R(Qt(ke,ae),S,H,P),At=F(Xe-ce),St=F(Nr(ft,ue)),Dt=F(Oi(ft,ue)),Ot=St-Dt;if(ke!=null){let dt=ke<0?bt:Zn,xt=ke<0?Zn:bt;Ye?(Ie>0&&it[Ue]!=null&&Z(gt.get(it[Ue]),At,Dt+ri(Ie/2),fe,Nr(0,Ot-Ie),dt,xt),Ke[Ue]!=null&&Z(pt.get(Ke[Ue]),At,Dt+ri(Ie/2),fe,Nr(0,Ot-Ie),dt,xt)):Z(En,At,Dt+ri(Ie/2),fe,Nr(0,Ot-Ie),dt,xt),te(a,o,Ue,At-Ie/2,Dt,fe+Ie,Ot)}}return Ie>0?fn.stroke=Ye?gt:En:Ye||(fn._fill=w.width==0?w._fill:w._stroke??w._fill,fn.width=0),fn.fill=Ye?pt:En,fn})}function OS(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,I=B=>x(u(B,s,d,o)),$=B=>x(a(B,l,w,c)),S,C,R;s.ori==0?(S=ql,R=Zs,C=bm):(S=Kl,R=Js,C=xm);const L=s.dir*(s.ori==0?1:-1);let P=I(h[L==1?p:y]),E=P,H=[],F=[];for(let B=L==1?p:y;B>=p&&B<=y;B+=L)if(g[B]!=null){let U=h[B],K=I(U);H.push(E=K),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]=eh(r,f);if(b.fill!=null||A!=0){let B=O.fill=new Path2D(_),U=b.fillTo(r,f,b.min,b.max,A),K=$(U);R(B,E,K),R(B,P,K)}if(!b.spanGaps){let B=[];B.push(...th(h,g,p,y,L,I,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 NS(n){return OS(DS,n)}function DS(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 rh=new Set;function _m(){for(let n of rh)n.syncRect(!0)}Vs&&(us(mk,qs,_m),us(vk,qs,_m,!0),us(Ol,qs,()=>{Sr.pxRatio=en}));const PS=Sm(),FS=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)=>ih(f,p,t,e))}function WS(n,t){return n.map((e,r)=>r==0?{}:Xn({},t,e))}function ih(n,t,e,r){return Xn({},t==0?e:r,n)}function $m(n,t,e){return t==null?Gs:[t,e]}const BS=$m;function zS(n,t,e){return t==null?Gs:Fl(t,e,Wu,!0)}function Mm(n,t,e,r){return t==null?Gs:Pl(t,e,n.scales[r].log,!1)}const jS=Mm;function Im(n,t,e,r){return t==null?Gs:Fu(t,e,n.scales[r].log,!1)}const HS=Im;function US(n,t,e,r,f){let p=Nr(_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?No.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)*en))+"px"),[n,t,e]}function VS(n){n.show&&[n.font,n.labelFont].forEach(t=>{let e=dn(t[2]*en,1);t[0]=t[0].replace(/[0-9.]+px/,e+"px"),t[1]=e})}function Sr(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(ZC);if(n.id!=null&&(g.id=n.id),ti(g,n.class),n.title){let V=fi(tk,g);V.textContent=n.title}const s=Ri("canvas"),l=r.ctx=s.getContext("2d"),u=fi(nk,g);us("click",u,V=>{V.target===o&&(on!=bi||Vt!=ro)&&On.click(r,V)},!0);const a=r.under=fi(rk,u);u.appendChild(s);const o=r.over=fi(ik,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):WS(n.series||[null],hm),I=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=>zu(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 E(V){let X=$[V];if(X==null){let ie=(n.scales||Oa)[V]||Oa;if(ie.from!=null){E(ie.from);let oe=Xn({},$[ie.from],ie,{key:V});oe.valToPct=P(oe),$[V]=oe}else{X=$[V]=Xn({},V==C?pm:TS,ie),X.key=V;let oe=X.time,ge=X.range,be=Do(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=(Fe,Be,qe)=>Be==null?Gs:Fl(Be,qe,Me)}X.range=Ht(ge||(oe?BS:V==C?X.distr==3?jS:X.distr==4?HS:$m:X.distr==3?Mm:X.distr==4?Im:zS)),X.auto=Ht(be?!1:X.auto),X.clamp=Ht(X.clamp||_S),X._min=X._max=null,X.valToPct=P(X)}}}E("x"),E("y"),f==1&&x.forEach(V=>{E(V.scale)}),I.forEach(V=>{E(V.scale)});for(let V in n.scales)E(V);const H=$[C],F=H.distr;let O,_;H.ori==0?(ti(g,JC),O=p,_=y):(ti(g,ek),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||Uu,U=w==1?Jk(N):nS(N),K=Xf(N,Yf(w==1?Zk:tS,B)),Z=Zf(N,Qf(iS,B)),te=[],he=r.legend=Xn({},aS,n.legend),ne=r.cursor=Xn({},pS,{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=[],Ke,pt=!1,it={};if(he.live){const V=x[1]?x[1].values:null;pt=V!=null,Ke=pt?V(r,1,0):{_:0};for(let X in Ke)it[X]=Ru}if(ae)if(fe=Ri("table",uk,g),$e=Ri("tbody",null,fe),he.mount(r,fe),pt){Te=Ri("thead",null,fe,$e);let V=Ri("tr",null,Te);Ri("th",null,V);for(var gt in Ke)Ri("th",sf,V).textContent=gt}else ti(fe,dk),he.live&&ti(fe,hk);const nn={show:!0},gn={show:!1};function Yt(V,X){if(X==0&&(pt||!he.live||f==2))return Gs;let ie=[],oe=Ri("tr",pk,$e,$e.childNodes[X]);ti(oe,V.class),V.show||ti(oe,cs);let ge=Ri("th",null,oe);if(ce.show){let Fe=fi(gk,ge);if(X>0){let Be=ce.width(r,X);Be&&(Fe.style.border=Be+"px "+ce.dash(r,X)+" "+ce.stroke(r,X)),Fe.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,Fe=>{if(ne._lock)return;Pi(Fe);let Be=x.indexOf(V);if((Fe.ctrlKey||Fe.metaKey)!=he.isolate){let qe=x.some((Qe,et)=>et>0&&et!=Be&&Qe.show);x.forEach((Qe,et)=>{et>0&&Fr(et,qe?et==Be?nn:gn:nn,!0,ut.setSeries)})}else Fr(Be,{show:!V.show},!0,ut.setSeries)},!1),Fi&&fn(uf,ge,Fe=>{ne._lock||(Pi(Fe),Fr(x.indexOf(V),ki,!0,ut.setSeries))},!1));for(var Me in Ke){let Fe=Ri("td",fk,oe);Fe.textContent="--",ie.push(Fe)}return[oe,ie]}const fr=new Map;function fn(V,X,ie,oe=!0){const ge=fr.get(X)||{},be=ne.bind[V](r,X,ie,oe);be&&(us(V,X,ge[V]=be),fr.set(X,ge))}function En(V,X,ie){const oe=fr.get(X)||{};for(let ge in oe)(V==null||ge==V)&&(Pu(ge,X,oe[ge]),delete oe[ge]);V==null&&fr.delete(X)}let Rn=0,Zn=0,bt=0,Ue=0,ke=0,je=0,Xe=ke,ft=je,At=bt,St=Ue,Dt=0,Ot=0,dt=0,xt=0;r.bbox={};let Cn=!1,_r=!1,Kr=!1,Di=!1,co=!1,mr=!1;function uo(V,X,ie){(ie||V!=r.width||X!=r.height)&&Po(V,X),ji(!1),Kr=!0,_r=!0,no()}function Po(V,X){r.width=Rn=bt=V,r.height=Zn=Ue=X,ke=je=0,ys(),ra();let ie=r.bbox;Dt=ie.left=ds(ke*en,.5),Ot=ie.top=ds(je*en,.5),dt=ie.width=ds(bt*en,.5),xt=ie.height=ds(Ue*en,.5)}const Ha=3;function ii(){let V=!1,X=0;for(;!V;){X++;let ie=aa(X),oe=Ka(X);V=X==Ha||ie&&oe,V||(Po(r.width,r.height),_r=!0)}}function Ua({width:V,height:X}){uo(V,X)}r.setSize=Ua;function ys(){let V=!1,X=!1,ie=!1,oe=!1;I.forEach((ge,be)=>{if(ge.show&&ge._show){let{side:Me,_size:Fe}=ge,Be=Me%2,qe=ge.label!=null?ge.labelSize:0,Qe=Fe+qe;Qe>0&&(Be?(bt-=Qe,Me==3?(ke+=Qe,oe=!0):ie=!0):(Ue-=Qe,Me==0?(je+=Qe,V=!0):X=!0))}}),Bi[0]=V,Bi[1]=ie,Bi[2]=X,Bi[3]=oe,bt-=Mr[1]+Mr[3],ke+=Mr[3],Ue-=Mr[2]+Mr[0],je+=Mr[0]}function ra(){let V=ke+bt,X=je+Ue,ie=ke,oe=je;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}}I.forEach((be,Me)=>{if(be.show&&be._show){let Fe=be.side;be._pos=ge(Fe,be._size),be.label!=null&&(be._lpos=ge(Fe,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,Fe)=>{if(be==0)return Me;let Be=Me,qe=ie(ge,be,Me,Fe)??gr,Qe=qe>=0&&qe<gr,et=H.ori==0?bt:Ue,kt=ne.left,zt=t[0],Tt=t[be];if(X.has(Tt[Me])){Be=null;let Wt=null,mt=null,st;if(oe==0||oe==-1)for(st=Me;Wt==null&&st-- >0;)X.has(Tt[st])||(Wt=st);if(oe==0||oe==1)for(st=Me;mt==null&&st++<Tt.length;)X.has(Tt[st])||(mt=st);if(Wt!=null||mt!=null)if(Qe){let pn=Wt==null?-1/0:O(zt[Wt],H,et,0),An=mt==null?1/0:O(zt[mt],H,et,0),tr=kt-pn,Kt=An-kt;tr<=Kt?tr<=qe&&(Be=Wt):Kt<=qe&&(Be=mt)}else Be=mt==null?Wt:Wt==null?mt:Me-Wt<=mt-Me?Wt:mt}else Qe&&rr(kt-O(zt[Me],H,et,0))>qe&&(Be=null);return Be}}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 Tr=r.focus=Xn({},n.focus||{alpha:.3},ne.focus),Fi=Tr.prox>=0,Tn=Fi&&Hn.one;let $r=[],Zi=[],Wi=[];function ws(V,X){let ie=Hn.show(r,X);if(ie instanceof HTMLElement)return ti(ie,ck),ti(ie,V.class),Gi(ie,-10,-10,bt,Ue),o.insertBefore(ie,$r[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||kS,V.label=V.label||(ie?fS:gS)}if(Tn||X>0){V.width=V.width==null?1:V.width,V.paths=V.paths||PS||Tk,V.fillTo=Ht(V.fillTo||$S),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=SS(Nr(1,V.width),1),oe=V.points=Xn({},{size:ie,width:Nr(1,ie*.2),stroke:V.stroke,space:ie*2,paths:FS,_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)),$r.splice(X,0,ie),Zi.splice(X,0,0),Wi.splice(X,0,0)}nt("addSeries",X)}function Va(V,X){X=X??x.length,V=f==1?ih(V,X,om,dm):ih(V,X,{},hm),x.splice(X,0,V),ia(x[X],X)}r.addSeries=Va;function qa(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),$r.splice(V,1)[0].remove(),Zi.splice(V,1),Wi.splice(V,1)),nt("delSeries",V)}r.delSeries=qa;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),Do(V.incrs)&&V.incrs.forEach(Me=>{!No.has(Me)&&No.set(Me,Lf(Me))}),V.incrs=Ht(V.incrs||(oe.distr==2?Yk:ge?w==1?Qk:eS:ps)),V.splits=Ht(V.splits||(ge&&oe.distr==1?U:oe.distr==3?Qu:oe.distr==4?yS:vS)),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=Do(be)&&!Do(be[0])?Ht(be):ge?Do(be)?Xf(N,Yf(be,B)):Nf(be)?rS(N,be):be||K:be||mS,V.filter=Ht(V.filter||(oe.distr>=3&&oe.log==10?xS:oe.distr==3&&oe.log==2?CS: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(ok,u))}}function Ut(V,X,ie,oe){let[ge,be,Me,Fe]=ie,Be=X%2,qe=0;return Be==0&&(Fe||be)&&(qe=X==0&&!ge||X==2&&!Me?ir(im.size/3):0),Be==1&&(ge||Me)&&(qe=X==1&&!be||X==3&&!Fe?ir(lm.size/2):0),qe}const oa=r.padding=(n.padding||[Ut,Ut,Ut,Ut]).map(V=>Ht(Qt(V,Ut))),Mr=r._padding=oa.map((V,X)=>V(r,X,Bi,0));let Un,mn=null,Ln=null;const vi=f==1?x[0].idxs:null;let Ir=null,yi=!1;function Fo(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=[[]]),Ir=t[0],Un=Ir.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),nt("setData"),F==2&&(Kr=!0),X!==!1){let ie=H;ie.auto(r,yi)?bs():Jn(C,ie.min,ie.max),Di=Di||ne.left>=0,mr=!0,no()}}r.setData=Fo;function bs(){yi=!0;let V,X;f==1&&(Un>0?(mn=vi[0]=0,Ln=vi[1]=Un-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]=Fu(V,V,H.log,!1):H.time?X=V+ir(86400/w):[V,X]=Fl(V,X,Wu,!0))):(mn=vi[0]=V=null,Ln=vi[1]=X=null)),Jn(C,V,X)}let Ji,Gr,ho,Wo,Yr,Bo,xs,Cs,zo,or;function ks(V,X,ie,oe,ge,be){V??(V=lf),ie??(ie=Hu),oe??(oe="butt"),ge??(ge=lf),be??(be="round"),V!=Ji&&(l.strokeStyle=Ji=V),ge!=Gr&&(l.fillStyle=Gr=ge),X!=ho&&(l.lineWidth=ho=X),be!=Yr&&(l.lineJoin=Yr=be),oe!=Bo&&(l.lineCap=Bo=oe),ie!=Wo&&l.setLineDash(Wo=ie)}function po(V,X,ie,oe){X!=Gr&&(l.fillStyle=Gr=X),V!=xs&&(l.font=xs=V),ie!=Cs&&(l.textAlign=Cs=ie),oe!=zo&&(l.textBaseline=zo=oe)}function jo(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),Fe=ie.min==null?xk(oe,be,Me,ge,V.distr==3):[ie.min,ie.max];V.min=Oi(V.min,ie.min=Fe[0]),V.max=Nr(V.max,ie.max=Fe[1])}}const Ho={min:null,max:null};function eo(){for(let oe in $){let ge=$[oe];A[oe]==null&&(ge.min==null||A[C]!=null&&ge.auto(r,yi))&&(A[oe]=Ho)}for(let oe in $){let ge=$[oe];A[oe]==null&&ge.from!=null&&A[ge.from]!=null&&(A[oe]=Ho)}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],Ik);if(ge.min!=null)Xn(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=gr,be.max=-1/0}}if(Un>0){x.forEach((oe,ge)=>{if(f==1){let be=oe.scale,Me=A[be];if(Me==null)return;let Fe=V[be];if(ge==0){let Be=Fe.range(r,Fe.min,Fe.max,be);Fe.min=Be[0],Fe.max=Be[1],mn=Li(Fe.min,t[0]),Ln=Li(Fe.max,t[0]),Ln-mn>1&&(t[0][mn]<Fe.min&&mn++,t[0][Ln]>Fe.max&&Ln--),oe.min=Ir[mn],oe.max=Ir[Ln]}else oe.show&&oe.auto&&jo(Fe,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,Fe=be.scale,Be=Me.scale,[qe,Qe]=t[ge],et=V[Fe],kt=V[Be];et!=null&&jo(et,A[Fe],be,qe,be.sorted),kt!=null&&jo(kt,A[Be],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==gr?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?zu(be.min,be.asinh):Me==100?be.fwd(be.min):be.min,be._max=Me==3?ao(be.max):Me==4?zu(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,nt("setScale",oe);ue&&ne.left>=0&&(Di=mr=!0)}for(let oe in A)A[oe]=null}function Ss(V){let X=ju(mn-1,0,Un-1),ie=ju(Ln+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)&&or!=Tr.alpha;V&&(l.globalAlpha=or=Tr.alpha),x.forEach((X,ie)=>{if(ie>0&&X.show&&(Uo(ie,!1),Uo(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&&Vo(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),Vo(ie,!0))}or!=oe&&(l.globalAlpha=or=oe),nt("drawSeries",ie)}}),V&&(l.globalAlpha=or=1)}}function Uo(V,X){let ie=X?x[V].points:x[V];ie._stroke=ie.stroke(r,V),ie._fill=ie.fill(r,V)}function Vo(V,X){let ie=X?x[V].points:x[V],{stroke:oe,fill:ge,clip:be,flags:Me,_stroke:Fe=ie._stroke,_fill:Be=ie._fill,_width:qe=ie.width}=ie._paths;qe=dn(qe*en,3);let Qe=null,et=qe%2/2;X&&Be==null&&(Be=qe>0?"#fff":Fe);let kt=ie.pxAlign==1&&et>0;if(kt&&l.translate(et,et),!X){let zt=Dt-qe/2,Tt=Ot-qe/2,Wt=dt+qe,mt=xt+qe;Qe=new Path2D,Qe.rect(zt,Tt,Wt,mt)}X?go(Fe,qe,ie.dash,ie.cap,Be,oe,ge,Me,be):As(V,Fe,qe,ie.dash,ie.cap,Be,oe,ge,Me,Qe,be),kt&&l.translate(-et,-et)}function As(V,X,ie,oe,ge,be,Me,Fe,Be,qe,Qe){let et=!1;Be!=0&&S.forEach((kt,zt)=>{if(kt.series[0]==V){let Tt=x[kt.series[1]],Wt=t[kt.series[1]],mt=(Tt._paths||Oa).band;Do(mt)&&(mt=kt.dir==1?mt[0]:mt[1]);let st,pn=null;Tt.show&&mt&&kk(Wt,mn,Ln)?(pn=kt.fill(r,zt)||be,st=Tt._paths.clip):mt=null,go(X,ie,oe,ge,pn,Me,Fe,Be,qe,Qe,st,mt),et=!0}}),et||go(X,ie,oe,ge,be,Me,Fe,Be,qe,Qe)}const qo=Qs|Ju;function go(V,X,ie,oe,ge,be,Me,Fe,Be,qe,Qe,et){ks(V,X,ie,oe,ge),(Be||qe||et)&&(l.save(),Be&&l.clip(Be),qe&&l.clip(qe)),et?(Fe&qo)==qo?(l.clip(et),Qe&&l.clip(Qe),sr(ge,Me),wi(V,be,X)):Fe&Ju?(sr(ge,Me),l.clip(et),wi(V,be,X)):Fe&Qs&&(l.save(),l.clip(et),Qe&&l.clip(Qe),sr(ge,Me),l.restore(),wi(V,be,X)):(sr(ge,Me),wi(V,be,X)),(Be||qe||et)&&l.restore()}function wi(V,X,ie){ie>0&&(X instanceof Map?X.forEach((oe,ge)=>{l.strokeStyle=Ji=ge,l.stroke(oe)}):X!=null&&V&&l.stroke(X))}function sr(V,X){X instanceof Map?X.forEach((ie,oe)=>{l.fillStyle=Gr=oe,l.fill(ie)}):X!=null&&V&&l.fill(X)}function to(V,X,ie,oe){let ge=I[V],be;if(oe<=0)be=[0,0];else{let Me=ge._space=ge.space(r,V,X,ie,oe),Fe=ge._incrs=ge.incrs(r,V,X,ie,oe,Me);be=US(X,ie,Fe,oe,Me)}return ge._found=be}function zi(V,X,ie,oe,ge,be,Me,Fe,Be,qe){let Qe=Me%2/2;c==1&&l.translate(Qe,Qe),ks(Fe,Me,Be,qe,Fe),l.beginPath();let et,kt,zt,Tt,Wt=ge+(oe==0||oe==3?-be:be);ie==0?(kt=ge,Tt=Wt):(et=ge,zt=Wt);for(let mt=0;mt<V.length;mt++)X[mt]!=null&&(ie==0?et=zt=V[mt]:kt=Tt=V[mt],l.moveTo(et,kt),l.lineTo(zt,Tt));l.stroke(),c==1&&l.translate(-Qe,-Qe)}function aa(V){let X=!0;return I.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:Fe,max:Be}=ge,[qe,Qe]=to(oe,Fe,Be,Me==0?bt:Ue);if(Qe==0)return;let et=ge.distr==2,kt=ie._splits=ie.splits(r,oe,Fe,Be,qe,Qe,et),zt=ge.distr==2?kt.map(st=>Ir[st]):kt,Tt=ge.distr==2?Ir[kt[1]]-Ir[kt[0]]:qe,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 mt=ie._size;ie._size=mi(ie.size(r,Wt,oe,V)),mt!=null&&ie._size!=mt&&(X=!1)}),X}function Ka(V){let X=!0;return oa.forEach((ie,oe)=>{let ge=ie(r,oe,Bi,V);ge!=Mr[oe]&&(X=!1),Mr[oe]=ge}),X}function fo(){for(let V=0;V<I.length;V++){let X=I[V];if(!X.show||!X._show)continue;let ie=X.side,oe=ie%2,ge,be,Me=X.stroke(r,V),Fe=ie==0||ie==3?-1:1,[Be,qe]=X._found;if(X.label!=null){let hn=X.labelGap*Fe,hr=ir((X._lpos+hn)*en);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+dt/2),be=hr);let bo=Tf(X.label)?X.label(r,V,Be,qe):X.label;l.fillText(bo,ge,be),l.restore()}if(qe==0)continue;let Qe=$[X.scale],et=oe==0?dt:xt,kt=oe==0?Dt:Ot,zt=X._splits,Tt=Qe.distr==2?zt.map(hn=>Ir[hn]):zt,Wt=Qe.distr==2?Ir[zt[1]]-Ir[zt[0]]:Be,mt=X.ticks,st=X.border,pn=mt.show?mt.size:0,An=ir(pn*en),tr=ir((X.alignTo==2?X._size-pn-X.gap:X.gap)*en),Kt=X._rotate*-Wl/180,pe=d(X._pos*en),Se=(An+tr)*Fe,xe=pe+Se;be=oe==0?xe:0,ge=oe==1?xe:0;let He=X.font[0],ht=X.align==1?Us:X.align==2?$u:Kt>0?Us:Kt<0?$u:oe==0?"center":ie==3?$u:Us,Lt=Kt||oe==1?"middle":ie==2?Ea:af;po(He,Me,ht,Lt);let Xt=X.font[1]*X.lineGap,Pt=zt.map(hn=>d(b(hn,Qe,et,kt))),Wr=X._values;for(let hn=0;hn<Wr.length;hn++){let hr=Wr[hn];if(hr!=null){oe==0?ge=Pt[hn]:be=Pt[hn],hr=""+hr;let bo=hr.indexOf(`
1494
+ `)==-1?[hr]:hr.split(/\n/gm);for(let Pn=0;Pn<bo.length;Pn++){let Ts=bo[Pn];Kt?(l.save(),l.translate(ge,be+Pn*Xt),l.rotate(Kt),l.fillText(Ts,0,0),l.restore()):l.fillText(Ts,ge,be+Pn*Xt)}}}mt.show&&zi(Pt,mt.filter(r,Tt,V,qe,Wt),oe,ie,pe,An,dn(mt.width*en,3),mt.stroke(r,V),mt.dash,mt.cap);let Si=X.grid;Si.show&&zi(Pt,Si.filter(r,Tt,V,qe,Wt),oe,oe==0?2:1,oe==0?Ot:Dt,oe==0?xt:dt,dn(Si.width*en,3),Si.stroke(r,V),Si.dash,Si.cap),st.show&&zi([pe],[1],oe==0?1:0,oe==0?1:2,oe==1?Ot:Dt,oe==1?xt:dt,dn(st.width*en,3),st.stroke(r,V),st.dash,st.cap)}nt("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++)nt(...vo[V]);vo.length=0}function no(){mo||(Pk(ca),mo=!0)}function We(V,X=!1){mo=!0,Ko=X,V(r),ca(),X&&vo.length>0&&queueMicrotask(la)}r.batch=We;function ca(){if(Cn&&(eo(),Cn=!1),Kr&&(ii(),Kr=!1),_r){if(wn(a,Us,ke),wn(a,Ea,je),wn(a,Ma,bt),wn(a,Ia,Ue),wn(o,Us,ke),wn(o,Ea,je),wn(o,Ma,bt),wn(o,Ia,Ue),wn(u,Ma,Rn),wn(u,Ia,Zn),s.width=ir(Rn*en),s.height=ir(Zn*en),I.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?je:ke),wn(V,Me?"height":"width",Me?Ue:bt),Nu(V,cs)}else ti(V,cs)}),Ji=Gr=ho=Yr=Bo=xs=Cs=zo=Wo=null,or=1,W(!0),ke!=Xe||je!=ft||bt!=At||Ue!=St){ji(!1);let V=bt/At,X=Ue/St;if(ue&&!Di&&ne.left>=0){ne.left*=V,ne.top*=X,si&&Gi(si,ir(ne.left),0,bt,Ue),Vn&&Gi(Vn,0,ir(ne.top),bt,Ue);for(let ie=0;ie<$r.length;ie++){let oe=$r[ie];oe!=null&&(Zi[ie]*=V,Wi[ie]*=X,Gi(oe,mi(Zi[ie]),mi(Wi[ie]),bt,Ue))}}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(Pr,ie,Ct[ie])}Xe=ke,ft=je,At=bt,St=Ue}nt("setSize"),_r=!1}Rn>0&&Zn>0&&(l.clearRect(0,0,s.width,s.height),nt("drawClear"),L.forEach(V=>V()),nt("draw")),Ct.show&&co&&(un(Ct),co=!1),ue&&Di&&(k(null,!0,!1),Di=!1),he.show&&he.live&&mr&&(v(),mr=!1),h||(h=!0,r.status=1,nt("ready")),yi=!1,mo=!1}r.redraw=(V,X)=>{Kr=X||!1,V!==!1?Jn(C,H.min,H.max):no()};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,Cn=!0,no()}}r.setScale=Ne;let $n,yo,si,Vn,ua,wo,bi,ro,rn,Zt,on,Vt,xi=!1;const On=ne.drag;let ze=On.x,vn=On.y;ue&&(ne.x&&($n=fi(ak,o)),ne.y&&(yo=fi(lk,o)),H.ori==0?(si=$n,Vn=yo):(si=yo,Vn=$n),on=ne.left,Vt=ne.top);const Ct=r.select=Xn({show:!0,over:!0,left:0,width:0,top:0,height:0},n.select),Pr=Ct.show?fi(sk,Ct.over?o:a):null;function un(V,X){if(Ct.show){for(let ie in V)Ct[ie]=V[ie],ie in Y&&wn(Pr,ie,V[ie]);X!==!1&&nt("setSelect")}}r.setSelect=un;function bn(V){if(x[V].show)ae&&Nu(Ie[V],cs);else if(ae&&ti(Ie[V],cs),ue){let X=Tn?$r[0]:$r[V];X!=null&&Gi(X,-10,-10,bt,Ue)}}function Jn(V,X,ie){Ne(V,{min:X,max:ie})}function Fr(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?(Jn(ge.facets[0].scale,null,null),Jn(ge.facets[1].scale,null,null)):Jn(ge.scale,null,null),no())}),ie!==!1&&nt("setSeries",V,X),oe&&Rt("setSeries",r,V,X)}r.setSeries=Fr;function Ci(V,X){Xn(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 Xr(V){V==null?S.length=0:S.splice(V,1)}r.addBand=Nn,r.setBand=Ci,r.delBand=Xr;function Go(V,X){x[V].alpha=X,ue&&$r[V]!=null&&($r[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=Tr.alpha!=1;x.forEach((oe,ge)=>{if(f==1||ge>0){let be=X||ge==0||ge==V;oe._focus=X?null:be,ie&&Go(ge,be?1:Tr.alpha)}}),li=V,ie&&no()}}ae&&Fi&&fn(hf,fe,V=>{ne._lock||(Pi(V),li!=null&&Fr(null,ki,!0,ut.setSeries))});function cr(V,X,ie){let oe=$[X];ie&&(V=V/en-(oe.ori==1?je:ke));let ge=bt;oe.ori==1&&(ge=Ue,V=ge-V),oe.dir==-1&&(V=ge-V);let be=oe._min,Me=oe._max,Fe=V/ge,Be=be+(Me-be)*Fe,qe=oe.distr;return qe==3?Ks(10,Be):qe==4?Ak(Be,oe.asinh):qe==100?oe.bwd(Be):Be}function vr(V,X){let ie=cr(V,C,X);return Li(ie,t[0],mn,Ln)}r.valToIdx=V=>Li(V,t[0]),r.posToIdx=vr,r.posToVal=cr,r.valToPos=(V,X,ie)=>$[X].ori==0?p(V,$[X],ie?dt:bt,ie?Dt:0):y(V,$[X],ie?xt:Ue,ie?Ot:0),r.setCursor=(V,X,ie)=>{on=V.left,Vt=V.top,k(null,X,ie)};function _s(V,X){wn(Pr,Us,Ct.left=V),wn(Pr,Ma,Ct.width=X)}function yr(V,X){wn(Pr,Ea,Ct.top=V),wn(Pr,Ia,Ct.height=X)}let Er=H.ori==0?_s:yr,ci=H.ori==1?_s:yr;function ui(){if(ae&&he.live)for(let V=f==2?1:0;V<x.length;V++){if(V==0&&pt)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}):Mk(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&&!pt)&&T(ie,te[ie]);ui()}mr=!1,X!==!1&&nt("setLegend")}r.setLegend=v;function T(V,X){let ie=x[V],oe=V==0&&F==2?Ir:t[V],ge;pt?ge=ie.values(r,V,X)??it:(ge=ie.value(r,X==null?null:oe[X],V,X),ge=ge==null?it:{_:ge}),he.values[V]=ge}function k(V,X,ie){rn=on,Zt=Vt,[on,Vt]=ne.move(r,on,Vt),ne.left=on,ne.top=Vt,ue&&(si&&Gi(si,ir(on),0,bt,Ue),Vn&&Gi(Vn,0,ir(Vt),bt,Ue));let oe,ge=mn>Ln;Dn=gr,ai=null;let be=H.ori==0?bt:Ue,Me=H.ori==1?bt:Ue;if(on<0||Un==0||ge){oe=ne.idx=null;for(let Fe=0;Fe<x.length;Fe++){let Be=$r[Fe];Be!=null&&Gi(Be,-10,-10,bt,Ue)}Fi&&Fr(null,ki,!0,V==null&&ut.setSeries),he.live&&(te.fill(oe),mr=!0)}else{let Fe,Be,qe;f==1&&(Fe=H.ori==0?on:Vt,Be=cr(Fe,C),oe=ne.idx=Li(Be,t[0],mn,Ln),qe=O(t[0][oe],H,be,0));let Qe=-10,et=-10,kt=0,zt=0,Tt=!0,Wt="",mt="";for(let st=f==2?1:0;st<x.length;st++){let pn=x[st],An=te[st],tr=An==null?null:f==1?t[st][An]:t[st][1][An],Kt=ne.dataIdx(r,st,oe,Be),pe=Kt==null?null:f==1?t[st][Kt]:t[st][1][Kt];if(mr=mr||pe!=tr||Kt!=An,te[st]=Kt,st>0&&pn.show){let Se=Kt==null?-10:Kt==oe?qe:O(f==1?t[0][Kt]:t[st][0][Kt],H,be,0),xe=pe==null?-10:_(pe,f==1?$[pn.scale]:$[pn.facets[1].scale],Me,0);if(Fi&&pe!=null){let He=H.ori==1?on:Vt,ht=rr(Tr.dist(r,st,Kt,xe,He));if(ht<Dn){let Lt=Tr.bias;if(Lt!=0){let Xt=cr(He,pn.scale),Pt=pe>=0?1:-1,Wr=Xt>=0?1:-1;Wr==Pt&&(Wr==1?Lt==1?pe>=Xt:pe<=Xt:Lt==1?pe<=Xt:pe>=Xt)&&(Dn=ht,ai=st)}else Dn=ht,ai=st}}if(mr||Tn){let He,ht;H.ori==0?(He=Se,ht=xe):(He=xe,ht=Se);let Lt,Xt,Pt,Wr,Si,hn,hr=!0,bo=Hn.bbox;if(bo!=null){hr=!1;let Pn=bo(r,st);Pt=Pn.left,Wr=Pn.top,Lt=Pn.width,Xt=Pn.height}else Pt=He,Wr=ht,Lt=Xt=Hn.size(r,st);if(hn=Hn.fill(r,st),Si=Hn.stroke(r,st),Tn)st==ai&&Dn<=Tr.prox&&(Qe=Pt,et=Wr,kt=Lt,zt=Xt,Tt=hr,Wt=hn,mt=Si);else{let Pn=$r[st];Pn!=null&&(Zi[st]=Pt,Wi[st]=Wr,yf(Pn,Lt,Xt,hr),mf(Pn,hn,Si),Gi(Pn,mi(Pt),mi(Wr),bt,Ue))}}}}if(Tn){let st=Tr.prox,pn=li==null?Dn<=st:Dn>st||ai!=li;if(mr||pn){let An=$r[0];An!=null&&(Zi[0]=Qe,Wi[0]=et,yf(An,kt,zt,Tt),mf(An,Wt,mt),Gi(An,mi(Qe),mi(et),bt,Ue))}}}if(Ct.show&&xi)if(V!=null){let[Fe,Be]=ut.scales,[qe,Qe]=ut.match,[et,kt]=V.cursor.sync.scales,zt=V.cursor.drag;if(ze=zt._x,vn=zt._y,ze||vn){let{left:Tt,top:Wt,width:mt,height:st}=V.select,pn=V.scales[et].ori,An=V.posToVal,tr,Kt,pe,Se,xe,He=Fe!=null&&qe(Fe,et),ht=Be!=null&&Qe(Be,kt);He&&ze?(pn==0?(tr=Tt,Kt=mt):(tr=Wt,Kt=st),pe=$[Fe],Se=O(An(tr,et),pe,be,0),xe=O(An(tr+Kt,et),pe,be,0),Er(Oi(Se,xe),rr(xe-Se))):Er(0,be),ht&&vn?(pn==1?(tr=Tt,Kt=mt):(tr=Wt,Kt=st),pe=$[Be],Se=_(An(tr,kt),pe,Me,0),xe=_(An(tr+Kt,kt),pe,Me,0),ci(Oi(Se,xe),rr(xe-Se))):ci(0,Me)}else Q()}else{let Fe=rr(rn-ua),Be=rr(Zt-wo);if(H.ori==1){let kt=Fe;Fe=Be,Be=kt}ze=On.x&&Fe>=On.dist,vn=On.y&&Be>=On.dist;let qe=On.uni;qe!=null?ze&&vn&&(ze=Fe>=qe,vn=Be>=qe,!ze&&!vn&&(Be>Fe?vn=!0:ze=!0)):On.x&&On.y&&(ze||vn)&&(ze=vn=!0);let Qe,et;ze&&(H.ori==0?(Qe=bi,et=on):(Qe=ro,et=Vt),Er(Oi(Qe,et),rr(et-Qe)),vn||ci(0,Me)),vn&&(H.ori==1?(Qe=bi,et=on):(Qe=ro,et=Vt),ci(Oi(Qe,et),rr(et-Qe)),ze||Er(0,be)),!ze&&!vn&&(Er(0,0),ci(0,0))}if(On._x=ze,On._y=vn,V==null){if(ie){if(kn!=null){let[Fe,Be]=ut.scales;ut.values[0]=Fe!=null?cr(H.ori==0?on:Vt,Fe):null,ut.values[1]=Be!=null?cr(H.ori==1?on:Vt,Be):null}Rt(Iu,r,on,Vt,bt,Ue,oe)}if(Fi){let Fe=ie&&ut.setSeries,Be=Tr.prox;li==null?Dn<=Be&&Fr(ai,ki,!0,Fe):Dn>Be?Fr(null,ki,!0,Fe):ai!=li&&Fr(ai,ki,!0,Fe)}}mr&&(he.idx=oe,v()),X!==!1&&nt("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(),nt("syncRect",D))}function z(V,X,ie,oe,ge,be,Me){ne._lock||xi&&V!=null&&V.movementX==0&&V.movementY==0||(q(V,X,ie,oe,ge,be,Me,!1,V!=null),V!=null?k(null,!0,!0):k(X,!0,!1))}function q(V,X,ie,oe,ge,be,Me,Fe,Be){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){on=-10,Vt=-10;return}let[qe,Qe]=ut.scales,et=X.cursor.sync,[kt,zt]=et.values,[Tt,Wt]=et.scales,[mt,st]=ut.match,pn=X.axes[0].side%2==1,An=H.ori==0?bt:Ue,tr=H.ori==1?bt:Ue,Kt=pn?be:ge,pe=pn?ge:be,Se=pn?oe:ie,xe=pn?ie:oe;if(Tt!=null?ie=mt(qe,Tt)?b(kt,$[qe],An,0):-10:ie=An*(Se/Kt),Wt!=null?oe=st(Qe,Wt)?b(zt,$[Qe],tr,0):-10:oe=tr*(xe/pe),H.ori==1){let He=ie;ie=oe,oe=He}}Be&&(X==null||X.cursor.event.type==Iu)&&((ie<=1||ie>=bt-1)&&(ie=ds(ie,bt)),(oe<=1||oe>=Ue-1)&&(oe=ds(oe,Ue))),Fe?(ua=ie,wo=oe,[bi,ro]=ne.move(r,ie,oe)):(on=ie,Vt=oe)}const Y={width:0,height:0,left:0,top:0};function Q(){un(Y,!1)}let re,se,ye,Ce;function me(V,X,ie,oe,ge,be,Me){xi=!0,ze=vn=On._x=On._y=!1,q(V,X,ie,oe,ge,be,Me,!0,!1),V!=null&&(fn(Eu,Lu,we,!1),Rt(cf,r,bi,ro,bt,Ue,null));let{left:Fe,top:Be,width:qe,height:Qe}=Ct;re=Fe,se=Be,ye=qe,Ce=Qe}function we(V,X,ie,oe,ge,be,Me){xi=On._x=On._y=!1,q(V,X,ie,oe,ge,be,Me,!1,!0);let{left:Fe,top:Be,width:qe,height:Qe}=Ct,et=qe>0||Qe>0,kt=re!=Fe||se!=Be||ye!=qe||Ce!=Qe;if(et&&kt&&un(Ct),On.setScale&&et&&kt){let zt=Fe,Tt=qe,Wt=Be,mt=Qe;if(H.ori==1&&(zt=Be,Tt=Qe,Wt=Fe,mt=qe),ze&&Jn(C,cr(zt,C),cr(zt+Tt,C)),vn)for(let st in $){let pn=$[st];st!=C&&pn.from==null&&pn.min!=gr&&Jn(st,cr(Wt+mt,st),cr(Wt,st))}Q()}else ne.lock&&(ne._lock=!ne._lock,k(X,!0,V!=null));V!=null&&(En(Eu,Lu),Rt(Eu,r,on,Vt,bt,Ue,null))}function Oe(V,X,ie,oe,ge,be,Me){if(ne._lock)return;Pi(V);let Fe=xi;if(xi){let Be=!0,qe=!0,Qe=10,et,kt;H.ori==0?(et=ze,kt=vn):(et=vn,kt=ze),et&&kt&&(Be=on<=Qe||on>=bt-Qe,qe=Vt<=Qe||Vt>=Ue-Qe),et&&Be&&(on=on<bi?0:bt),kt&&qe&&(Vt=Vt<ro?0:Ue),k(null,!0,!0),xi=!1}on=-10,Vt=-10,te.fill(null),k(null,!0,!0),Fe&&(xi=Fe)}function Le(V,X,ie,oe,ge,be,Me){ne._lock||(Pi(V),bs(),Q(),V!=null&&Rt(df,r,on,Vt,bt,Ue,null))}function Ve(){I.forEach(VS),uo(r.width,r.height,!0)}us(Ol,qs,Ve);const ct={};ct.mousedown=me,ct.mousemove=z,ct.mouseup=we,ct.dblclick=Le,ct.setSeries=(V,X,ie,oe)=>{let ge=ut.match[2];ie=ge(r,X,ie),ie!=-1&&Fr(ie,oe,!0,!1)},ue&&(fn(cf,o,me),fn(Iu,o,z),fn(uf,o,V=>{Pi(V),W(!1)}),fn(hf,o,Oe),fn(df,o,Le),rh.add(r),r.syncRect=W);const Ze=r.hooks=n.hooks||{};function nt(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,ut=Xn({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);ut.match.length==2&&ut.match.push(yn),ne.sync=ut;const kn=ut.key,_t=fm(kn);function Rt(V,X,ie,oe,ge,be,Me){ut.filters.pub(V,X,ie,oe,ge,be,Me)&&_t.pub(V,X,ie,oe,ge,be,Me)}_t.sub(r);function er(V,X,ie,oe,ge,be,Me){ut.filters.sub(V,X,ie,oe,ge,be,Me)&&ct[V](null,X,ie,oe,ge,be,Me)}r.pub=er;function ur(){_t.unsub(r),rh.delete(r),fr.clear(),Pu(Ol,qs,Ve),g.remove(),fe==null||fe.remove(),nt("destroy")}r.destroy=ur;function Sn(){nt("init",n,t),Fo(t||n.data,!1),A[C]?Ne(C,A[C]):bs(),co=Ct.show&&(Ct.width>0||Ct.height>0),Di=mr=!0,uo(n.width,n.height)}return x.forEach(ia),I.forEach(oi),e?e instanceof HTMLElement?(e.appendChild(g),Sn()):e(r,Sn):Sn(),r}Sr.assign=Xn,Sr.fmtNum=Bu,Sr.rangeNum=Fl,Sr.rangeLog=Pl,Sr.rangeAsinh=Fu,Sr.orient=gs,Sr.pxRatio=en,Sr.join=Dk,Sr.fmtDate=Uu,Sr.tzDate=Kk,Sr.sync=fm;{Sr.addGap=MS,Sr.clipGaps=Vl;let n=Sr.paths={points:Cm};n.linear=Sm,n.stepped=RS,n.bars=LS,n.spline=NS}var Rm,Lm;function qS(){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 KS=qS();const w2=Wn("e",pl(KS));var oh,Om;function GS(){if(Om)return oh;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 oh=n,oh}var sh,Nm;function YS(){if(Nm)return sh;Nm=1;var n=GS();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 sh=t,sh}var ah,Dm;function Pm(){if(Dm)return ah;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 ah=h,ah}var lh,Fm;function XS(){if(Fm)return lh;Fm=1;function n(t){return t.split("")}return lh=n,lh}var ch,Wm;function QS(){if(Wm)return ch;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("|")+")",I=RegExp(h+"(?="+h+")|"+x+w,"g");function $(S){return S.match(I)||[]}return ch=$,ch}var uh,Bm;function ZS(){if(Bm)return uh;Bm=1;var n=XS(),t=Pm(),e=QS();function r(f){return t(f)?e(f):n(f)}return uh=r,uh}var hh,zm;function JS(){if(zm)return hh;zm=1;var n=typeof Lo=="object"&&Lo&&Lo.Object===Object&&Lo;return hh=n,hh}var dh,jm;function eA(){if(jm)return dh;jm=1;var n=JS(),t=typeof self=="object"&&self&&self.Object===Object&&self,e=n||t||Function("return this")();return dh=e,dh}var ph,Hm;function gh(){if(Hm)return ph;Hm=1;var n=eA(),t=n.Symbol;return ph=t,ph}var fh,Um;function tA(){if(Um)return fh;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 fh=n,fh}var mh,Vm;function nA(){if(Vm)return mh;Vm=1;var n=Array.isArray;return mh=n,mh}var vh,qm;function rA(){if(qm)return vh;qm=1;var n=gh(),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 vh=p,vh}var yh,Km;function iA(){if(Km)return yh;Km=1;var n=Object.prototype,t=n.toString;function e(r){return t.call(r)}return yh=e,yh}var wh,Gm;function oA(){if(Gm)return wh;Gm=1;var n=gh(),t=rA(),e=iA(),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 wh=y,wh}var bh,Ym;function sA(){if(Ym)return bh;Ym=1;function n(t){return t!=null&&typeof t=="object"}return bh=n,bh}var xh,Xm;function aA(){if(Xm)return xh;Xm=1;var n=oA(),t=sA(),e="[object Symbol]";function r(f){return typeof f=="symbol"||t(f)&&n(f)==e}return xh=r,xh}var Ch,Qm;function lA(){if(Qm)return Ch;Qm=1;var n=gh(),t=tA(),e=nA(),r=aA(),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 Ch=y,Ch}var kh,Zm;function Yl(){if(Zm)return kh;Zm=1;var n=lA();function t(e){return e==null?"":n(e)}return kh=t,kh}var Sh,Jm;function cA(){if(Jm)return Sh;Jm=1;var n=YS(),t=Pm(),e=ZS(),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 Sh=f,Sh}var Ah,ev;function tv(){if(ev)return Ah;ev=1;var n=cA(),t=n("toUpperCase");return Ah=t,Ah}var uA=tv();const hA=pl(uA);var _h,nv;function dA(){if(nv)return _h;nv=1;var n=Yl(),t=tv();function e(r){return t(n(r).toLowerCase())}return _h=e,_h}var Th,rv;function pA(){if(rv)return Th;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 Th=n,Th}var $h,iv;function gA(){if(iv)return $h;iv=1;function n(t){return function(e){return t==null?void 0:t[e]}}return $h=n,$h}var Mh,ov;function fA(){if(ov)return Mh;ov=1;var n=gA(),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 Mh=e,Mh}var Ih,sv;function mA(){if(sv)return Ih;sv=1;var n=fA(),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 Ih=g,Ih}var Eh,av;function vA(){if(av)return Eh;av=1;var n=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function t(e){return e.match(n)||[]}return Eh=t,Eh}var Rh,lv;function yA(){if(lv)return Rh;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 Rh=t,Rh}var Lh,cv;function wA(){if(cv)return Lh;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+"]",I="["+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]",E="["+l+"]",H="\\u200d",F="(?:"+I+"|"+$+")",O="(?:"+E+"|"+$+")",_="(?:"+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+")*",K="\\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([E+"?"+I+"+"+_+"(?="+[c,E,"$"].join("|")+")",O+"+"+A+"(?="+[c,E+F,"$"].join("|")+")",E+"?"+F+"+"+_,E+"+"+A,Z,K,w,he].join("|"),"g");function ae(ue){return ue.match(ne)||[]}return Lh=ae,Lh}var Oh,uv;function bA(){if(uv)return Oh;uv=1;var n=vA(),t=yA(),e=Yl(),r=wA();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 Oh=f,Oh}var Nh,hv;function xA(){if(hv)return Nh;hv=1;var n=pA(),t=mA(),e=bA(),r="['’]",f=RegExp(r,"g");function p(y){return function(b){return n(e(t(b).replace(f,"")),y,"")}}return Nh=p,Nh}var Dh,dv;function CA(){if(dv)return Dh;dv=1;var n=dA(),t=xA(),e=t(function(r,f,p){return f=f.toLowerCase(),r+(p?n(f):f)});return Dh=e,Dh}var kA=CA();const SA=pl(kA),AA=Object.assign({"./ArrayWidget.vue":()=>lt(()=>at.import("./ArrayWidget-D0fKsdTb-fcb521681ec439ffcb2d.js"),void 0),"./ArrayplotWidget.vue":()=>lt(()=>at.import("./ArrayplotWidget-BmRSuGhA-d6ad1dc1cf3a3548f9c4.js"),void 0),"./BlockWidget.vue":()=>lt(()=>at.import("./BlockWidget-Dpxbw455-6ee5fc1361a29d6cdee8.js"),void 0),"./ButtonWidget.vue":()=>lt(()=>at.import("./ButtonWidget-8iOpXmpp-645dbdc41939fde28f3d.js"),void 0),"./CanvasWidget.vue":()=>lt(()=>at.import("./CanvasWidget-B0iU38rA-406c38d8e5bdefc655f6.js"),void 0),"./CanvasdotWidget.vue":()=>lt(()=>at.import("./CanvasdotWidget-C9viSVBs-7902f24158585c967688.js"),void 0),"./CanvasimageWidget.vue":()=>lt(()=>at.import("./CanvasimageWidget-CFiCpITu-d6403c9808cd5f53b775.js"),void 0),"./CanvasimagevalueWidget.vue":()=>lt(()=>at.import("./CanvasimagevalueWidget-fu6vbAY0-72a405535e013c172c55.js"),void 0),"./CanvaslabelWidget.vue":()=>lt(()=>at.import("./CanvaslabelWidget-BVqHq3Vp-1ffeae580900e78a308a.js"),void 0),"./CanvaslabelvalueWidget.vue":()=>lt(()=>at.import("./CanvaslabelvalueWidget-BOFa8-NU-b7b58a1fc1f74daf8339.js"),void 0),"./CanvaslineWidget.vue":()=>lt(()=>at.import("./CanvaslineWidget-l3ko0QXk-af18ed22fc3b4321d64c.js"),void 0),"./CanvaslinevalueWidget.vue":()=>lt(()=>at.import("./CanvaslinevalueWidget-BCZoO-Z6-d4183d4ef7b8b2a76dc3.js"),void 0),"./CheckbuttonWidget.vue":()=>lt(()=>at.import("./CheckbuttonWidget-BN7e1d5b-119ba644576c3cc6db57.js"),void 0),"./ComboboxWidget.vue":()=>lt(()=>at.import("./ComboboxWidget-Bb5RGXDB-c6776469d2f3b61d4f5c.js"),void 0),"./DateWidget.vue":()=>lt(()=>at.import("./DateWidget-Dggqab-F-1de828cb6e86df331c44.js"),void 0),"./DynamicWidget.vue":()=>lt(()=>at.import("./DynamicWidget-CfMtj7H8-62cd4fc7b25a10fca194.js"),void 0),"./FormatvalueWidget.vue":()=>lt(()=>at.import("./FormatvalueWidget-B9_PbzY2-d2724e238d77e34c38f2.js"),void 0),"./HorizontalWidget.vue":()=>lt(()=>at.import("./HorizontalWidget-BWgZL_Oz-19e2fb797fb5dd2467af.js"),void 0),"./HorizontalboxWidget.vue":()=>lt(()=>at.import("./HorizontalboxWidget-yMYUnNB8-adfaf4de843bc913ac18.js"),void 0),"./HorizontallineWidget.vue":()=>lt(()=>at.import("./HorizontallineWidget-C4zMx7z2-2d23bd1197d1ce55c0de.js"),void 0),"./IframeWidget.vue":()=>lt(()=>at.import("./IframeWidget-DA4P_mJT-831749edba853810e316.js"),void 0),"./ImageviewerWidget.vue":()=>lt(()=>at.import("./ImageviewerWidget-B1wK0hK4-c75df06546b80809c423.js"),void 0),"./LabelWidget.vue":()=>lt(()=>at.import("./LabelWidget-CY0saBoK-cb041090322656166ec0.js"),void 0),"./LabelledWidget.vue":()=>lt(()=>at.import("./LabelledWidget-B3ZOYaGy-a6936a0f2282faecc4f7.js"),void 0),"./LabelprogressbarWidget.vue":()=>lt(()=>at.import("./LabelprogressbarWidget-CmXcESTg-c4c2296969ec54dec6aa.js"),void 0),"./LabelsparklineWidget.vue":()=>lt(()=>at.import("./LabelsparklineWidget-D_yrQrn6-9fd29970acbaeb40dbad.js"),void 0),"./LabelvalueWidget.vue":()=>lt(()=>at.import("./LabelvalueWidget-dNaNfsBE-f28c054c1c3a3eb4d690.js"),void 0),"./LabelvaluedescWidget.vue":()=>lt(()=>at.import("./LabelvaluedescWidget-3vNoH6Mc-4d15e29362c87f231e87.js"),void 0),"./LabelvaluelimitsbarWidget.vue":()=>lt(()=>at.import("./LabelvaluelimitsbarWidget-7VppYVIN-ec46787c737359860769.js"),void 0),"./LabelvaluelimitscolumnWidget.vue":()=>lt(()=>at.import("./LabelvaluelimitscolumnWidget-BZ6nwifg-9b98a17f5b18dd59ece7.js"),void 0),"./LabelvaluerangebarWidget.vue":()=>lt(()=>at.import("./LabelvaluerangebarWidget-IyuXLNsw-1e3da783126ecc186dee.js"),void 0),"./LedWidget.vue":()=>lt(()=>at.import("./LedWidget-DSxpmIOK-c219b5b95ef382d88ee7.js"),void 0),"./LimitsbarWidget.vue":()=>lt(()=>at.import("./LimitsbarWidget-BoPTdVV5-984af2e0b122e91a4359.js"),void 0),"./LimitscolorWidget.vue":()=>lt(()=>at.import("./LimitscolorWidget-Bt3qOvrv-326bef34ebea3df45d5d.js"),void 0),"./LimitscolumnWidget.vue":()=>lt(()=>at.import("./LimitscolumnWidget-Ce6YnUBz-6203f2238842ff3cea20.js"),void 0),"./LinegraphWidget.vue":()=>lt(()=>at.import("./LinegraphWidget-XAbg0jj2-1ad9dd74a44d16be5730.js"),void 0),"./MatrixbycolumnsWidget.vue":()=>lt(()=>at.import("./MatrixbycolumnsWidget-5MgJFZtz-d7b059f8bef7348512c5.js"),void 0),"./ProgressbarWidget.vue":()=>lt(()=>at.import("./ProgressbarWidget-CDwDOFIy-91a6bcfe780b3df86cdd.js"),void 0),"./RadiobuttonWidget.vue":()=>lt(()=>at.import("./RadiobuttonWidget-cQ8V8LaD-4bd16f6cf0ebd80ee558.js"),void 0),"./RadiogroupWidget.vue":()=>lt(()=>at.import("./RadiogroupWidget-BvRnuGA2-800f58556e3349f1df99.js"),void 0),"./RangebarWidget.vue":()=>lt(()=>at.import("./RangebarWidget-aHmgV0qs-b1d50192f63d8ef9004b.js"),void 0),"./RollupWidget.vue":()=>lt(()=>at.import("./RollupWidget-D1jUPrUQ-458fab2a13b13b495212.js"),void 0),"./ScrollwindowWidget.vue":()=>lt(()=>at.import("./ScrollwindowWidget-Cn0o3b4E-596407de04688998905d.js"),void 0),"./SignalWidget.vue":()=>lt(()=>at.import("./SignalWidget-BQBzqdU--c8e0e6f6e60a64862d90.js"),void 0),"./SpacerWidget.vue":()=>lt(()=>at.import("./SpacerWidget-C0RmQY3t-4fc8eb08808b2dff5de9.js"),void 0),"./SparklineWidget.vue":()=>lt(()=>at.import("./SparklineWidget-BTH9rvcX-4bf263b70090695edca7.js"),void 0),"./TabbookWidget.vue":()=>lt(()=>at.import("./TabbookWidget-C-aDdEoD-7f2cb15acf2e6f60afb3.js"),void 0),"./TextboxWidget.vue":()=>lt(()=>at.import("./TextboxWidget-Dd2ccpUQ-998ea7942421db83cd13.js"),void 0),"./TextfieldWidget.vue":()=>lt(()=>at.import("./TextfieldWidget-DY3aFTnP-8a0ae4ffd21607b4783d.js"),void 0),"./TimeWidget.vue":()=>lt(()=>at.import("./TimeWidget-C_site21-1639fb32344e51409f12.js"),void 0),"./TitleWidget.vue":()=>lt(()=>at.import("./TitleWidget-Bx81VfQD-67d4e6bccf07a99c8580.js"),void 0),"./ValueWidget.vue":()=>lt(()=>at.import("./ValueWidget-cbjxVV3B-52b4d89b3adf691b6bbc.js"),void 0),"./ValuelimitsbarWidget.vue":()=>lt(()=>at.import("./ValuelimitsbarWidget-cQb2o_xH-3d143a673bda5ad73a08.js"),void 0),"./ValuelimitscolumnWidget.vue":()=>lt(()=>at.import("./ValuelimitscolumnWidget-BBTuSCK9-13c98044f20182b5a07a.js"),void 0),"./ValuerangebarWidget.vue":()=>lt(()=>at.import("./ValuerangebarWidget-Ct7iGtu0-da1f8ec90ba886f3707f.js"),void 0),"./VerticalWidget.vue":()=>lt(()=>at.import("./VerticalWidget-DJn02myf-87642ddb3b6f8ff59061.js"),void 0),"./VerticalboxWidget.vue":()=>lt(()=>at.import("./VerticalboxWidget-DHQMxtF3-20d17f28bc6268b4ed53.js"),void 0)}),_A=Object.entries(AA).reduce((n,[t,e])=>{t=t.split("/").pop();const r=hA(SA(t.replace(/\.\w+$/,"")));return{...n,[r]:ip(e)}},{}),b2=Wn("U",{components:_A});function pv(n,t){return function(){return n.apply(t,arguments)}}const{toString:TA}=Object.prototype,{getPrototypeOf:Ph}=Object,{iterator:Xl,toStringTag:gv}=Symbol,Ql=(n=>t=>{const e=TA.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 $A(n){return n!==null&&!Pa(n)&&n.constructor!==null&&!Pa(n.constructor)&&Vr(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const fv=Ni("ArrayBuffer");function MA(n){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(n):t=n&&n.buffer&&fv(n.buffer),t}const IA=Zl("string"),Vr=Zl("function"),mv=Zl("number"),Jl=n=>n!==null&&typeof n=="object",EA=n=>n===!0||n===!1,ec=n=>{if(Ql(n)!=="object")return!1;const t=Ph(n);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(gv in n)&&!(Xl in n)},RA=Ni("Date"),LA=Ni("File"),OA=Ni("Blob"),NA=Ni("FileList"),DA=n=>Jl(n)&&Vr(n.pipe),PA=n=>{let t;return n&&(typeof FormData=="function"&&n instanceof FormData||Vr(n.append)&&((t=Ql(n))==="formdata"||t==="object"&&Vr(n.toString)&&n.toString()==="[object FormData]"))},FA=Ni("URLSearchParams"),[WA,BA,zA,jA]=["ReadableStream","Request","Response","Headers"].map(Ni),HA=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 Fh(){const{caseless:n}=yv(this)&&this||{},t={},e=(r,f)=>{const p=n&&vv(t,f)||f;ec(t[p])&&ec(r)?t[p]=Fh(t[p],r):ec(r)?t[p]=Fh({},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 UA=(n,t,e,{allOwnKeys:r}={})=>(Fa(t,(f,p)=>{e&&Vr(f)?n[p]=pv(f,e):n[p]=f},{allOwnKeys:r}),n),VA=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),qA=(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)},KA=(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&&Ph(n)}while(n&&(!e||e(n,t))&&n!==Object.prototype);return t},GA=(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},YA=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},XA=(n=>t=>n&&t instanceof n)(typeof Uint8Array<"u"&&Ph(Uint8Array)),QA=(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])}},ZA=(n,t)=>{let e;const r=[];for(;(e=n.exec(t))!==null;)r.push(e);return r},JA=Ni("HTMLFormElement"),e_=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),t_=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)},n_=n=>{bv(n,(t,e)=>{if(Vr(n)&&["arguments","caller","callee"].indexOf(e)!==-1)return!1;const r=n[e];if(Vr(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+"'")})}})},r_=(n,t)=>{const e={},r=f=>{f.forEach(p=>{e[p]=!0})};return ea(n)?r(n):r(String(n).split(t)),e},i_=()=>{},o_=(n,t)=>n!=null&&Number.isFinite(n=+n)?n:t;function s_(n){return!!(n&&Vr(n.append)&&n[gv]==="FormData"&&n[Xl])}const a_=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)},l_=Ni("AsyncFunction"),c_=n=>n&&(Jl(n)||Vr(n))&&Vr(n.then)&&Vr(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",Vr(fs.postMessage)),u_=typeof queueMicrotask<"u"?queueMicrotask.bind(fs):typeof process<"u"&&process.nextTick||xv,h_=n=>n!=null&&Vr(n[Xl]),_e={isArray:ea,isArrayBuffer:fv,isBuffer:$A,isFormData:PA,isArrayBufferView:MA,isString:IA,isNumber:mv,isBoolean:EA,isObject:Jl,isPlainObject:ec,isReadableStream:WA,isRequest:BA,isResponse:zA,isHeaders:jA,isUndefined:Pa,isDate:RA,isFile:LA,isBlob:OA,isRegExp:t_,isFunction:Vr,isStream:DA,isURLSearchParams:FA,isTypedArray:XA,isFileList:NA,forEach:Fa,merge:Fh,extend:UA,trim:HA,stripBOM:VA,inherits:qA,toFlatObject:KA,kindOf:Ql,kindOfTest:Ni,endsWith:GA,toArray:YA,forEachEntry:QA,matchAll:ZA,isHTMLForm:JA,hasOwnProperty:wv,hasOwnProp:wv,reduceDescriptors:bv,freezeMethods:n_,toObjectSet:r_,toCamelCase:e_,noop:i_,toFiniteNumber:o_,findKey:vv,global:fs,isContextDefined:yv,isSpecCompliantForm:s_,toJSONObject:a_,isAsyncFn:l_,isThenable:c_,setImmediate:xv,asap:u_,isIterable:h_};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 d_=null;function Wh(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 p_(n){return _e.isArray(n)&&!n.some(Wh)}const g_=_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)&&p_(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 Wh(a)?!0:(t.append(Av(c,o,p),h(a)),!1)}const s=[],l=Object.assign(g_,{defaultVisitor:g,convertValue:h,isVisitable:Wh});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 Bh(n,t){this._pairs=[],n&&tc(n,this,t)}const Tv=Bh.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 f_(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||f_;_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 Bh(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},m_=typeof URLSearchParams<"u"?URLSearchParams:Bh,v_=typeof FormData<"u"?FormData:null,y_=typeof Blob<"u"?Blob:null,w_={isBrowser:!0,classes:{URLSearchParams:m_,FormData:v_,Blob:y_},protocols:["http","https","file","blob","url","data"]},zh=typeof window<"u"&&typeof document<"u",jh=typeof navigator=="object"&&navigator||void 0,b_=zh&&(!jh||["ReactNative","NativeScript","NS"].indexOf(jh.product)<0),x_=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",C_=zh&&window.location.href||"http://localhost",k_=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:zh,hasStandardBrowserEnv:b_,hasStandardBrowserWebWorkerEnv:x_,navigator:jh,origin:C_},Symbol.toStringTag,{value:"Module"})),Ar={...k_,...w_};function S_(n,t){return tc(n,new Ar.classes.URLSearchParams,Object.assign({visitor:function(e,r,f,p){return Ar.isNode&&_e.isBuffer(e)?(this.append(r,e.toString("base64")),!1):p.defaultVisitor.apply(this,arguments)}},t))}function A_(n){return _e.matchAll(/\w+|\[(\w*)]/g,n).map(t=>t[0]==="[]"?"":t[1]||t[0])}function __(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]=__(f[y])),!b)}if(_e.isFormData(n)&&_e.isFunction(n.entries)){const e={};return _e.forEachEntry(n,(r,f)=>{t(A_(r),f,e,0)}),e}return null}function T_(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 S_(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),T_(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:Ar.classes.FormData,Blob:Ar.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 $_=_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"]),M_=n=>{const t={};let e,r,f;return n&&n.split(`
1495
+ `).forEach(function(p){f=p.indexOf(":"),e=p.substring(0,f).trim().toLowerCase(),r=p.substring(f+1).trim(),!(!e||t[e]&&$_[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 I_(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 E_=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function Hh(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 R_(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,e,r)=>e.toUpperCase()+r)}function L_(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 qr=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())&&!E_(t))y(M_(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 I_(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||Hh(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||Hh(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||Hh(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?R_(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(`
1496
+ `)}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]||(L_(r,p),e[y]=!0)}return _e.isArray(t)?t.forEach(f):f(t),this}};qr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),_e.reduceDescriptors(qr.prototype,({value:n},t)=>{let e=t[0].toUpperCase()+t.slice(1);return{get:()=>n,set(r){this[e]=r}}}),_e.freezeMethods(qr);function Uh(n,t){const e=this||Wa,r=t||e,f=qr.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 O_(n){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return t&&t[1]||""}function N_(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 D_(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=N_(50,250);return D_(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)),P_=Ar.hasStandardBrowserEnv?((n,t)=>e=>(e=new URL(e,Ar.origin),n.protocol===e.protocol&&n.host===e.host&&(t||n.port===e.port)))(new URL(Ar.origin),Ar.navigator&&/(msie|trident)/i.test(Ar.navigator.userAgent)):()=>!0,F_=Ar.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 W_(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function B_(n,t){return t?n.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):n}function Pv(n,t,e){let r=!W_(t);return n&&(r||e==!1)?B_(n,t):t}const Fv=n=>n instanceof qr?{...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=qr.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(Ar.hasStandardBrowserEnv||Ar.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(Ar.hasStandardBrowserEnv&&(r&&_e.isFunction(r)&&(r=r(t)),r||r!==!1&&P_(t.url))){const g=f&&p&&F_.read(p);g&&y.set(f,g)}return t},z_=typeof XMLHttpRequest<"u",j_=z_&&function(n){return new Promise(function(t,e){const r=Wv(n);let f=r.data;const p=qr.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=qr.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),I={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()},I),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 I=r.transitional||Iv;r.timeoutErrorMessage&&(x=r.timeoutErrorMessage),e(new Et(x,I.clarifyTimeoutError?Et.ETIMEDOUT:Et.ECONNABORTED,n,c)),c=null},f===void 0&&p.setContentType(null),"setRequestHeader"in c&&_e.forEach(p.toJSON(),function(x,I){c.setRequestHeader(I,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=O_(r.url);if(w&&Ar.protocols.indexOf(w)===-1){e(new Et("Unsupported protocol "+w+":",Et.ERR_BAD_REQUEST,n));return}c.send(f||null)})},H_=(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}},U_=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},V_=async function*(n,t){for await(const e of q_(n))yield*U_(e,t)},q_=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=V_(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",K_=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}},G_=zv&&jv(()=>{let n=!1;const t=new Request(Ar.origin,{body:new ReadableStream,method:"POST",get duplex(){return n=!0,"half"}}).headers.has("Content-Type");return n&&!t}),Hv=64*1024,Vh=zv&&jv(()=>_e.isReadableStream(new Response("").body)),oc={stream:Vh&&(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 Y_=async n=>{if(n==null)return 0;if(_e.isBlob(n))return n.size;if(_e.isSpecCompliantForm(n))return(await new Request(Ar.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 K_(n)).byteLength},X_=async(n,t)=>_e.toFiniteNumber(n.getContentLength())??Y_(t),Q_=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=H_([f,p&&p.toAbortSignal()],y),o;const c=a&&a.unsubscribe&&(()=>{a.unsubscribe()});let d;try{if(h&&G_&&e!=="get"&&e!=="head"&&(d=await X_(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 I=Vh&&(g==="stream"||g==="response");if(Vh&&(b||I&&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!I&&c&&c(),await new Promise((S,C)=>{Ov(S,C,{data:$,headers:qr.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)}}),qh={http:d_,xhr:j_,fetch:Q_};_e.forEach(qh,(n,t)=>{if(n){try{Object.defineProperty(n,"name",{value:t})}catch{}Object.defineProperty(n,"adapterName",{value:t})}});const Uv=n=>`- ${n}`,Z_=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,!Z_(e)&&(r=qh[(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 :
1497
1497
  `+p.map(Uv).join(`
1498
- `):" "+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:Vh};function qh(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new ta(null,n)}function qv(n){return qh(n),n.headers=Vr.from(n.headers),n.data=Hh.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 qh(n),t.data=Hh.call(n,n.transformResponse,t),t.headers=Vr.from(t.headers),t},function(t){return Lv(t)||(qh(n),t&&t.response&&(t.response.data=Hh.call(n,n.transformResponse,t.response),t.response.headers=Vr.from(t.response.headers))),Promise.reject(t)})}const Kv="1.9.0",oc={};["object","boolean","number","function","string","symbol"].forEach((n,t)=>{oc[n]=function(e){return typeof e===n||"a"+(t<1?"n ":" ")+n}});const Gv={};oc.transitional=function(n,t,e){function r(f,p){return"[Axios v"+Kv+"] 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}},oc.spelling=function(n){return(t,e)=>(console.warn(`${e} is likely a misspelling of ${n}`),!0)};function J_(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 sc={assertOptions:J_,validators:oc},Yi=sc.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+=`
1499
- `+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&&sc.assertOptions(r,{silentJSONParsing:Yi.transitional(Yi.boolean),forcedJSONParsing:Yi.transitional(Yi.boolean),clarifyTimeoutError:Yi.transitional(Yi.boolean)},!1),f!=null&&(_e.isFunction(f)?e.paramsSerializer={serialize:f}:sc.assertOptions(f,{encode:Yi.function,serialize:Yi.function},!0)),e.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?e.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:e.allowAbsoluteUrls=!0),sc.assertOptions(e,{baseUrl:Yi.spelling("baseURL"),withXsrfToken:Yi.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=[qv.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=qv.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 eT=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 tT(n){return function(t){return n.apply(null,t)}}function nT(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=Wn("E",Yv(Wa));Xn.Axios=vs,Xn.CanceledError=ta,Xn.CancelToken=eT,Xn.isCancel=Lv,Xn.VERSION=Kv,Xn.toFormData=ec,Xn.AxiosError=Et,Xn.Cancel=Xn.CanceledError,Xn.all=function(n){return Promise.all(n)},Xn.spread=tT,Xn.isAxiosError=nT,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:x2,AxiosError:C2,CanceledError:k2,isCancel:S2,CancelToken:A2,VERSION:_2,all:T2,Cancel:$2,isAxiosError:M2,spread:I2,toFormData:E2,AxiosHeaders:R2,HttpStatusCode:L2,formToJSON:O2,getAdapter:N2,mergeConfig:D2}=Xn;function Xv(){return Object.assign({},Fs())}function rT(n,t,e){const r=xn(n,void 0);return r.setTime(r.getTime()+t*ul),r}function iT(n,t){const e=()=>Gn(void 0,NaN),r=lT(n);let f;if(r.date){const h=cT(r.date,2);f=uT(h.restDateString,h.year)}if(!f||isNaN(+f))return e();const p=+f;let y=0,b;if(r.time&&(y=hT(r.time),isNaN(y)))return e();if(r.timezone){if(b=dT(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 ac={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},oT=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,sT=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,aT=/^([+-])(\d{2})(?::?(\d{2}))?$/;function lT(n){const t={},e=n.split(ac.dateTimeDelimiter);let r;if(e.length>2)return t;if(/:/.test(e[0])?r=e[0]:(t.date=e[0],r=e[1],ac.timeZoneDelimiter.test(t.date)&&(t.date=n.split(ac.timeZoneDelimiter)[0],r=n.substr(t.date.length,n.length))),r){const f=ac.timezone.exec(r);f?(t.time=r.replace(f[1],""),t.timezone=f[1]):t.time=r}return t}function cT(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 uT(n,t){if(t===null)return new Date(NaN);const e=n.match(oT);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 vT(t,b,h)?pT(t,b,h):new Date(NaN);{const g=new Date(0);return!fT(t,p,y)||!mT(t,f)?new Date(NaN):(g.setUTCFullYear(t,p,Math.max(f,y)),g)}}function za(n){return n?parseInt(n):1}function hT(n){const t=n.match(sT);if(!t)return NaN;const e=Gh(t[1]),r=Gh(t[2]),f=Gh(t[3]);return yT(e,r,f)?e*eu+r*ul+f*1e3:NaN}function Gh(n){return n&&parseFloat(n.replace(",","."))||0}function dT(n){if(n==="Z")return 0;const t=n.match(aT);if(!t)return 0;const e=t[1]==="+"?-1:1,r=parseInt(t[2]),f=t[3]&&parseInt(t[3])||0;return wT(r,f)?e*(r*eu+f*ul):NaN}function pT(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 gT=[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 fT(n,t,e){return t>=0&&t<=11&&e>=1&&e<=(gT[t]||(Qv(n)?29:28))}function mT(n,t){return t>=1&&t<=(Qv(n)?366:365)}function vT(n,t,e){return t>=1&&t<=53&&e>=0&&e<=6}function yT(n,t,e){return n===24?t===0&&e===0:e>=0&&e<60&&t>=0&&t<60&&n>=0&&n<25}function wT(n,t){return t>=0&&t<=59}function bT(n,t,e){return rT(n,-t)}function Zv(n,t,e){const r=Xv(),f=kT(n,e.timeZone,e.locale??r.locale);return"formatToParts"in f?xT(f,t):CT(f,t)}function xT(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 CT(n,t){const e=n.format(t).replace(/\u200E/g,""),r=/ [\w-+ ]+$/.exec(e);return r?r[0].substr(1):""}function kT(n,t,e){return new Intl.DateTimeFormat(e?[e.code,"en-US"]:void 0,{timeZone:t,timeZoneName:n})}function ST(n,t){const e=MT(t);return"formatToParts"in e?_T(e,n):TT(e,n)}const AT={year:0,month:1,day:2,hour:3,minute:4,second:5};function _T(n,t){try{const e=n.formatToParts(t),r=[];for(let f=0;f<e.length;f++){const p=AT[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 TT(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 Yh={},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")),$T=Jv==="06/25/2014, 00:00:00"||Jv==="‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00";function MT(n){return Yh[n]||(Yh[n]=$T?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"})),Yh[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,IT=6e4,Xh={timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function Qh(n,t,e){if(!n)return 0;let r=Xh.timezoneZ.exec(n);if(r)return 0;let f,p;if(r=Xh.timezoneHH.exec(n),r)return f=parseInt(r[1],10),ny(f)?-(f*ty):NaN;if(r=Xh.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*IT,r[1]==="+"?-p:p):NaN}if(LT(n)){t=new Date(t||Date.now());const y=e?t:ET(t),b=Zh(y,n);return-(e?b:RT(t,b,n))}return NaN}function ET(n){return ey(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds())}function Zh(n,t){const e=ST(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 RT(n,t,e){let r=n.getTime()-t;const f=Zh(new Date(r),e);if(t===f)return t;r-=f-t;const p=Zh(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 LT(n){if(ry[n])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:n}),ry[n]=!0,!0}catch{return!1}}const OT=60*1e3,NT={X:function(n,t,e){const r=Jh(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=Jh(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=Jh(e.timeZone,n);switch(t){case"O":case"OO":case"OOO":return"GMT"+DT(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 Jh(n,t){const e=n?Qh(n,t,!0)/OT:(t==null?void 0:t.getTimezoneOffset())??0;if(Number.isNaN(e))throw new RangeError("Invalid time zone specified: "+n);return e}function lc(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=lc(Math.floor(r/60),2),p=lc(Math.floor(r%60),2);return e+f+t+p}function iy(n,t){return n%60===0?(n>0?"-":"+")+lc(Math.abs(n)/60,2):na(n,t)}function DT(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+lc(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 PT=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,ed=36e5,sy=6e4,FT=2,Nr={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:PT};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?FT: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=WT(n),{year:f,restDateString:p}=BT(r.date,e),y=zT(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=jT(r.time),h===null||isNaN(h)))return new Date(NaN);if(r.timeZone||t.timeZone){if(g=Qh(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 WT(n){const t={};let e=Nr.dateTimePattern.exec(n),r;if(e?(t.date=e[1],r=e[3]):(e=Nr.datePattern.exec(n),e?(t.date=e[1],r=e[2]):(t.date=null,r=n)),r){const f=Nr.timeZone.exec(r);f?(t.time=r.replace(f[1],""),t.timeZone=f[1].trim()):t.time=r}return t}function BT(n,t){if(n){const e=Nr.YYY[t],r=Nr.YYYYY[t];let f=Nr.YYYY.exec(n)||r.exec(n);if(f){const p=f[1];return{year:parseInt(p,10),restDateString:n.slice(p.length)}}if(f=Nr.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 zT(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=Nr.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=Nr.DDD.exec(n),p){e=new Date(0);const y=parseInt(p[1],10);return VT(t,y)?(e.setUTCFullYear(t,0,y),e):new Date(NaN)}if(p=Nr.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=Nr.Www.exec(n),p)return f=parseInt(p[1],10)-1,hy(f)?ly(t,f):new Date(NaN);if(p=Nr.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 jT(n){let t,e,r=Nr.HH.exec(n);if(r)return t=parseFloat(r[1].replace(",",".")),td(t)?t%24*ed:NaN;if(r=Nr.HHMM.exec(n),r)return t=parseInt(r[1],10),e=parseFloat(r[2].replace(",",".")),td(t,e)?t%24*ed+e*sy:NaN;if(r=Nr.HHMMSS.exec(n),r){t=parseInt(r[1],10),e=parseInt(r[2],10);const f=parseFloat(r[3].replace(",","."));return td(t,e,f)?t%24*ed+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 HT=[31,28,31,30,31,30,31,31,30,31,30,31],UT=[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>UT[t]||!r&&e>HT[t])return!1}return!0}function VT(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 td(n,t,e){return!(n<0||n>=25||t!=null&&(t<0||t>=60)||e!=null&&(e<0||e>=60))}const qT=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function KT(n,t,e={}){t=String(t);const r=t.match(qT);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,"'"+NT[y[0]](f,y,e)+"'");return h?g.substring(0,b-1)+g.substring(b+1):g},t)}return Ro(n,t,e)}function GT(n,t,e){n=ay(n,e);const r=Qh(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 cc(n,t,e,r){return r={...r,timeZone:t,originalDate:n},KT(GT(n,t,{timeZone:r.timeZone}),e,r)}const uc="yyyy-MM-dd",dy="HH:mm:ss.SSS",py="HH:mm:ss",hc=`${uc} ${dy}`,gy=`${uc} ${py}`,P2=Wn("R",{methods:{parseDateTime(n,t){return n.includes(" ")&&(n=n.replace(" ","T")),t&&t==="UTC"&&(n+="Z"),Date.parse(n)},formatUtcToLocal(n,t){return Ro(!t||t==="local"?bT(n,n.getTimezoneOffset()):n,hc)},formatDateTime(n,t){return!t||t==="local"?Ro(n,hc):cc(n,t,hc)},formatDateTimeHMS(n,t){return!t||t==="local"?Ro(n,gy):cc(n,t,gy)},formatDate:function(n,t){return!t||t==="local"?Ro(n,uc):cc(n,this.timeZone,uc)},formatTime:function(n,t,e=dy){return!t||t==="local"?Ro(n,e):cc(n,this.timeZone,e)},formatTimeHMS:function(n,t){return this.formatTime(n,t,py)},formatTimestamp(n,t){return this.formatDateTime(iT(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 YT=Object.defineProperty,XT=(n,t,e)=>t in n?YT(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,tt=(n,t,e)=>XT(n,typeof t!="symbol"?t+"":t,e);function nd(n,t,e){const r=xn(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 QT(n,t){const e=xn(n,void 0).getDay();return e===0?7:e}function ZT(n,t){const e=JT(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 JT(n){var t;return typeof n=="function"&&((t=n.prototype)==null?void 0:t.constructor)===n}const e$=10;let fy=class{constructor(){tt(this,"subPriority",0)}validate(t,e){return!0}};class t$ 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 n$ extends fy{constructor(t,e){super(),tt(this,"priority",e$),tt(this,"subPriority",-1),this.context=t||(r=>Gn(e,r))}set(t,e){return e.timestampIsSet?t:Gn(t,ZT(t,this.context))}}class en{run(t,e,r,f){const p=this.parse(t,e,r,f);return p?{setter:new t$(p.value,this.validate,this.set,this.priority,this.subPriority),rest:p.rest}:null}validate(t,e,r){return!0}}class r$ extends en{constructor(){super(...arguments),tt(this,"priority",140),tt(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}/},Xi={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 _n(n,t){const e=t.match(n);return e?{value:parseInt(e[0],10),rest:t.slice(e[0].length)}:null}function Qi(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*eu+p*ul+y*Fb),rest:t.slice(e[0].length)}}function my(n){return _n(zn.anyDigitsSigned,n)}function In(n,t){switch(n){case 1:return _n(zn.singleDigit,t);case 2:return _n(zn.twoDigits,t);case 3:return _n(zn.threeDigits,t);case 4:return _n(zn.fourDigits,t);default:return _n(new RegExp("^\\d{1,"+n+"}"),t)}}function vy(n,t){switch(n){case 1:return _n(zn.singleDigitSigned,t);case 2:return _n(zn.twoDigitsSigned,t);case 3:return _n(zn.threeDigitsSigned,t);case 4:return _n(zn.fourDigitsSigned,t);default:return _n(new RegExp("^-?\\d{1,"+n+"}"),t)}}function rd(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 i$ extends en{constructor(){super(...arguments),tt(this,"priority",130),tt(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(In(4,t),f);case"yo":return jn(r.ordinalNumber(t,{unit:"year"}),f);default:return jn(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 o$=class extends en{constructor(){super(...arguments),tt(this,"priority",130),tt(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(In(4,t),f);case"Yo":return jn(r.ordinalNumber(t,{unit:"year"}),f);default:return jn(In(e.length,t),f)}}validate(t,e){return e.isTwoDigitYear||e.year>0}set(t,e,r,f){const p=nu(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 s$ extends en{constructor(){super(...arguments),tt(this,"priority",130),tt(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 a$ extends en{constructor(){super(...arguments),tt(this,"priority",130),tt(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 l$ extends en{constructor(){super(...arguments),tt(this,"priority",120),tt(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 c$ extends en{constructor(){super(...arguments),tt(this,"priority",120),tt(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 u$ extends en{constructor(){super(...arguments),tt(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),tt(this,"priority",110)}parse(t,e,r){const f=p=>p-1;switch(e){case"M":return jn(_n(zn.month,t),f);case"MM":return jn(In(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 h$ extends en{constructor(){super(...arguments),tt(this,"priority",110),tt(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(_n(zn.month,t),f);case"LL":return jn(In(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 d$(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 p$ extends en{constructor(){super(...arguments),tt(this,"priority",100),tt(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(zn.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(d$(t,r,f),f)}}function g$(n,t,e){const r=xn(n,void 0),f=Tp(r)-t;return r.setDate(r.getDate()-f*7),r}class f$ extends en{constructor(){super(...arguments),tt(this,"priority",100),tt(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(zn.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(g$(t,r))}}const m$=[31,28,31,30,31,30,31,31,30,31,30,31],v$=[31,29,31,30,31,30,31,31,30,31,30,31];class y$ extends en{constructor(){super(...arguments),tt(this,"priority",90),tt(this,"subPriority",1),tt(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(t,e,r){switch(e){case"d":return _n(zn.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<=v$[p]:e>=1&&e<=m$[p]}set(t,e,r){return t.setDate(r),t.setHours(0,0,0,0),t}}class w$ extends en{constructor(){super(...arguments),tt(this,"priority",90),tt(this,"subpriority",1),tt(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(zn.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 id(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 nd(g,a,e)}class b$ extends en{constructor(){super(...arguments),tt(this,"priority",90),tt(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=id(t,r,f),t.setHours(0,0,0,0),t}}class x$ extends en{constructor(){super(...arguments),tt(this,"priority",90),tt(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(In(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=id(t,r,f),t.setHours(0,0,0,0),t}}let C$=class extends en{constructor(){super(...arguments),tt(this,"priority",90),tt(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(In(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=id(t,r,f),t.setHours(0,0,0,0),t}};function k$(n,t,e){const r=xn(n,void 0),f=QT(r),p=t-f;return nd(r,p,e)}let S$=class extends en{constructor(){super(...arguments),tt(this,"priority",90),tt(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 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=k$(t,r),t.setHours(0,0,0,0),t}};class A$ extends en{constructor(){super(...arguments),tt(this,"priority",80),tt(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(rd(r),0,0,0),t}}class _$ extends en{constructor(){super(...arguments),tt(this,"priority",80),tt(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(rd(r),0,0,0),t}}class T$ extends en{constructor(){super(...arguments),tt(this,"priority",80),tt(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(rd(r),0,0,0),t}}class $$ extends en{constructor(){super(...arguments),tt(this,"priority",70),tt(this,"incompatibleTokens",["H","K","k","t","T"])}parse(t,e,r){switch(e){case"h":return _n(zn.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 M$ extends en{constructor(){super(...arguments),tt(this,"priority",70),tt(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(t,e,r){switch(e){case"H":return _n(zn.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 I$ extends en{constructor(){super(...arguments),tt(this,"priority",70),tt(this,"incompatibleTokens",["h","H","k","t","T"])}parse(t,e,r){switch(e){case"K":return _n(zn.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 E$ extends en{constructor(){super(...arguments),tt(this,"priority",70),tt(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(t,e,r){switch(e){case"k":return _n(zn.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 R$ extends en{constructor(){super(...arguments),tt(this,"priority",60),tt(this,"incompatibleTokens",["t","T"])}parse(t,e,r){switch(e){case"m":return _n(zn.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 L$ extends en{constructor(){super(...arguments),tt(this,"priority",50),tt(this,"incompatibleTokens",["t","T"])}parse(t,e,r){switch(e){case"s":return _n(zn.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 O$ extends en{constructor(){super(...arguments),tt(this,"priority",30),tt(this,"incompatibleTokens",["t","T"])}parse(t,e){const r=f=>Math.trunc(f*Math.pow(10,-e.length+3));return jn(In(e.length,t),r)}set(t,e,r){return t.setMilliseconds(r),t}}class N$ extends en{constructor(){super(...arguments),tt(this,"priority",10),tt(this,"incompatibleTokens",["t","T","x"])}parse(t,e){switch(e){case"X":return Qi(Xi.basicOptionalMinutes,t);case"XX":return Qi(Xi.basic,t);case"XXXX":return Qi(Xi.basicOptionalSeconds,t);case"XXXXX":return Qi(Xi.extendedOptionalSeconds,t);case"XXX":default:return Qi(Xi.extended,t)}}set(t,e,r){return e.timestampIsSet?t:Gn(t,t.getTime()-hl(t)-r)}}class D$ extends en{constructor(){super(...arguments),tt(this,"priority",10),tt(this,"incompatibleTokens",["t","T","X"])}parse(t,e){switch(e){case"x":return Qi(Xi.basicOptionalMinutes,t);case"xx":return Qi(Xi.basic,t);case"xxxx":return Qi(Xi.basicOptionalSeconds,t);case"xxxxx":return Qi(Xi.extendedOptionalSeconds,t);case"xxx":default:return Qi(Xi.extended,t)}}set(t,e,r){return e.timestampIsSet?t:Gn(t,t.getTime()-hl(t)-r)}}class P$ extends en{constructor(){super(...arguments),tt(this,"priority",40),tt(this,"incompatibleTokens","*")}parse(t){return my(t)}set(t,e,r){return[Gn(t,r*1e3),{timestampIsSet:!0}]}}class F$ extends en{constructor(){super(...arguments),tt(this,"priority",20),tt(this,"incompatibleTokens","*")}parse(t){return my(t)}set(t,e,r){return[Gn(t,r),{timestampIsSet:!0}]}}const W$={G:new r$,y:new i$,Y:new o$,R:new s$,u:new a$,Q:new l$,q:new c$,M:new u$,L:new h$,w:new p$,I:new f$,d:new y$,D:new w$,E:new b$,e:new x$,c:new C$,i:new S$,a:new A$,b:new _$,B:new T$,h:new $$,H:new M$,K:new I$,k:new E$,m:new R$,s:new L$,S:new O$,X:new N$,x:new D$,t:new P$,T:new F$},B$=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,z$=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,j$=/^'([^]*?)'?$/,H$=/''/g,U$=/\S/,V$=/[a-zA-Z]/;function q$(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():xn(e,void 0);const a={firstWeekContainsDate:l,weekStartsOn:u,locale:s},o=[new n$(void 0,e)],c=t.match(z$).map($=>{const S=$[0];if(S in ru){const C=ru[S];return C($,s.formatLong)}return $}).join("").match(B$),d=[];for(let $ of c){Np($)&&iu($,t,n),Op($)&&iu($,t,n);const S=$[0],C=W$[S];if(C){const{incompatibleTokens:R}=C;if(Array.isArray(R)){const P=d.find(E=>R.includes(E.token)||E.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(V$))throw new RangeError("Format string contains an unescaped latin alphabet character `"+S+"`");if($==="''"?$="'":S==="'"&&($=K$($)),n.indexOf($)===0)n=n.slice($.length);else return h()}}if(n.length>0&&U$.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 I={};for(const $ of w){if(!$.validate(x,a))return h();const S=$.set(x,I,a);Array.isArray(S)?(x=S[0],Object.assign(I,S[1])):x=S}return x}function K$(n){return n.match(j$)[1].replace(H$,"'")}const G$="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=",Y$={props:{status:{type:String,required:!0},large:{type:Boolean},small:{type:Boolean},scale:{type:Number}},computed:{icons:function(){return G$},scaleFactor:function(){return this.scale?this.scale:this.large?1:this.small?.3:.5},iconStyle:function(){const n=nM.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 X$(n,t,e,r,f,p){return an(),ei("div",{style:wa(p.iconStyle)},null,4)}const Q$=qi(Y$,[["render",X$]]),Z$={props:{icon:{type:String},size:{type:String,default:"small"},color:{type:String,default:"white"}},computed:{colorStyle:function(){return{"--iconColor":this.color}}}};function J$(n,t,e,r,f,p){const y=rt("rux-icon");return an(),pr(y,{size:e.size,icon:e.icon,style:wa(p.colorStyle)},null,8,["size","icon","style"])}const eM=qi(Z$,[["render",J$],["__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"},od={fatal:"#ff69B4",critical:"#ff3838",serious:"#ffb302",caution:"#fce83a",normal:"#56f000",standby:"#2dccff",off:"#a4abb6"},tM=function(n){const t="#000000",e="#ffffff",r=od[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},nM=Object.keys(od),rM={astro:{component:n=>Ds(eM,{...n})},"astro-status":{component:n=>Ds(Q$,{...n,status:n.icon})}},iM={extras:{component:n=>Ds(Pb,{...n})}},F2=Wn("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 Oo().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 Oo().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})}}}),oM={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 Oo().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 Oo().delete_config(this.configKey,n.config)}).catch(t=>{t!==!0&&this.$emit("warning",`Failed to delete config ${n.config} Error: ${t}`)})}}},sM={class:"mt-4 pa-3"},aM=["textContent"];function lM(n,t,e,r,f,p){const y=rt("v-spacer"),b=rt("v-toolbar"),h=rt("v-text-field"),g=rt("v-row"),s=rt("v-btn"),l=rt("v-data-table"),u=rt("v-card-text"),a=rt("v-card-actions"),o=rt("v-card"),c=rt("v-dialog");return an(),pr(c,{modelValue:p.show,"onUpdate:modelValue":t[4]||(t[4]=d=>p.show=d),width:"600",onKeydown:Xc(p.cancel,["esc"])},{default:Je(()=>[Pe(o,null,{default:Je(()=>[br("form",{onSubmit:t[3]||(t[3]=Ps((...d)=>p.success&&p.success(...d),["prevent"]))},[Pe(b,{height:"24"},{default:Je(()=>[Pe(y),t[5]||(t[5]=br("span",null,"Open Configuration",-1)),Pe(y)]),_:1}),Pe(u,null,{default:Je(()=>[br("div",sM,[Pe(g,{dense:""},{default:Je(()=>[Pe(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}),Pe(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":Je(({item:d})=>[Pe(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"]),Pe(g,{dense:""},{default:Je(()=>[ll(br("span",{class:"ma-2 text-red",textContent:Lr(p.error)},null,8,aM),[[cl,p.error]])]),_:1})])]),_:1}),Pe(a,{class:"px-2"},{default:Je(()=>[Pe(y),Pe(s,{variant:"outlined","data-test":"open-config-cancel-btn",onClick:p.cancel},{default:Je(()=>t[6]||(t[6]=[ar(" Cancel ")])),_:1},8,["onClick"]),Pe(s,{variant:"flat",type:"submit","data-test":"open-config-submit-btn",disabled:!!p.error,onClick:Ps(p.success,["prevent"])},{default:Je(()=>t[7]||(t[7]=[ar(" Ok ")])),_:1},8,["disabled","onClick"])]),_:1})],32)]),_:1})]),_:1},8,["modelValue","onKeydown"])}const W2=Wn("v",qi(oM,[["render",lM]])),cM={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 Oo().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 Oo().delete_config(this.configKey,n.config)}).catch(t=>{t!==!0&&this.$emit("warning",`Failed to delete config ${n.config} Error: ${t}`)})}}},uM={class:"mt-4 pa-3"},hM=["textContent"];function dM(n,t,e,r,f,p){const y=rt("v-spacer"),b=rt("v-toolbar"),h=rt("v-text-field"),g=rt("v-row"),s=rt("v-btn"),l=rt("v-data-table"),u=rt("v-card-text"),a=rt("v-card-actions"),o=rt("v-card"),c=rt("v-dialog");return an(),pr(c,{modelValue:p.show,"onUpdate:modelValue":t[5]||(t[5]=d=>p.show=d),width:"600",onKeydown:Xc(p.cancel,["esc"])},{default:Je(()=>[Pe(o,null,{default:Je(()=>[br("form",{onSubmit:t[4]||(t[4]=Ps((...d)=>p.success&&p.success(...d),["prevent"]))},[Pe(b,{height:"24"},{default:Je(()=>[Pe(y),t[6]||(t[6]=br("span",null,"Save Configuration",-1)),Pe(y)]),_:1}),Pe(u,null,{default:Je(()=>[br("div",uM,[Pe(g,{dense:""},{default:Je(()=>[Pe(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}),Pe(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":Je(({item:d})=>[Pe(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"]),Pe(g,{dense:""},{default:Je(()=>[Pe(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}),Pe(g,{dense:""},{default:Je(()=>[ll(br("span",{class:"ma-2 text-red",textContent:Lr(p.error)},null,8,hM),[[cl,p.error]])]),_:1})])]),_:1}),Pe(a,{class:"px-2"},{default:Je(()=>[Pe(y),Pe(s,{variant:"outlined",onClick:p.cancel},{default:Je(()=>t[7]||(t[7]=[ar(" Cancel ")])),_:1},8,["onClick"]),Pe(s,{variant:"flat",type:"submit","data-test":"save-config-submit-btn",disabled:!!p.error,onClick:Ps(p.success,["prevent"])},{default:Je(()=>t[8]||(t[8]=[ar(" Ok ")])),_:1},8,["disabled","onClick"])]),_:1})],32)]),_:1})]),_:1},8,["modelValue","onKeydown"])}const B2=Wn("a",qi(cM,[["render",dM]])),xy="single-spa:app-change",pM={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}}},gM={class:"mx-1"};function fM(n,t,e,r,f,p){const y=rt("v-card-title"),b=rt("v-card-text"),h=rt("v-card");return f.show?(an(),pr(h,{key:0},{default:Je(()=>[Pe(y,null,{default:Je(()=>t[0]||(t[0]=[ar(" 404 Not Found ")])),_:1}),Pe(b,{class:"d-flex align-center mt-3"},{default:Je(()=>[t[1]||(t[1]=ar(" The requested URL ")),br("code",gM,Lr(n.$route.fullPath),1),t[2]||(t[2]=ar(" was not routable. ")),t[3]||(t[3]=br("span",{class:"text-h3 mx-1"}," 🦄 ",-1))]),_:1})]),_:1})):xr("",!0)}const mM=qi(pM,[["render",fM]]),vM={props:{allowAll:{type:Boolean,default:!1},allowAllTargets:{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}},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"}}},created(){this.internalDisabled=!0,this.api=new Oo,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)})},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"}},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=[]}},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.itemIsArray(),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},itemIsArray:function(){let n=this.itemNames.findIndex(t=>t.value===this.selectedItemName);return n===-1?(this.selectedArrayIndex=null,!1):isNaN(this.itemNames[n].array)?(this.selectedArrayIndex=null,!1):(this.selectedArrayIndex===null&&(this.selectedArrayIndex=0),!0)},arrayIndexes:function(){let n=this.itemNames.findIndex(e=>e.value===this.selectedItemName),t=[...Array(this.itemNames[n].array).keys()];return this.allowAll&&t.unshift(this.ALL.label),t},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.itemIsArray(),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})})}}},yM={class:"pt-4 pb-4"};function wM(n,t,e,r,f,p){const y=rt("v-autocomplete"),b=rt("v-col"),h=rt("v-list-item"),g=rt("v-divider"),s=rt("v-combobox"),l=rt("v-btn"),u=rt("v-row");return an(),ei("div",yM,[Pe(u,{"no-gutters":!e.vertical},{default:Je(()=>[Pe(b,{cols:p.colSize,class:"tpic-select pr-4","data-test":"select-target"},{default:Je(()=>[Pe(y,{label:"Select Target","hide-details":"",density:"compact",variant:"outlined","onUpdate:modelValue":[p.targetNameChanged,t[0]||(t[0]=a=>f.selectedTargetName=a)],items:f.targetNames,"item-title":"label","item-value":"value",modelValue:f.selectedTargetName},null,8,["onUpdate:modelValue","items","modelValue"])]),_:1},8,["cols"]),Pe(b,{cols:p.colSize,class:"tpic-select pr-4","data-test":"select-packet"},{default:Je(()=>[Pe(y,{label:"Select Packet","hide-details":"",density:"compact",variant:"outlined","onUpdate:modelValue":[p.packetNameChanged,t[2]||(t[2]=a=>f.selectedPacketName=a)],disabled:f.packetsDisabled||p.autocompleteDisabled,items:f.packetNames,"item-title":"label","item-value":"value",modelValue:f.selectedPacketName},ip({_:2},[p.includeLatestPacketInDropdown?{name:"prepend-item",fn:Je(()=>[Pe(h,{title:"LATEST",onClick:t[1]||(t[1]=a=>p.packetNameChanged("LATEST"))}),Pe(g)]),key:"0"}:void 0]),1032,["onUpdate:modelValue","disabled","items","modelValue"])]),_:1},8,["cols"]),e.chooseItem?(an(),pr(b,{key:0,cols:p.colSize,class:"tpic-select pr-4","data-test":"select-item"},{default:Je(()=>[Pe(y,{label:"Select Item","hide-details":"",density:"compact",variant:"outlined","onUpdate:modelValue":[t[3]||(t[3]=a=>p.itemNameChanged(a)),t[4]||(t[4]=a=>f.selectedItemName=a)],disabled:f.itemsDisabled||p.autocompleteDisabled,items:f.itemNames,"item-title":"label","item-value":"value",modelValue:f.selectedItemName},null,8,["disabled","items","modelValue"])]),_:1},8,["cols"])):xr("",!0),e.chooseItem&&p.itemIsArray()?(an(),pr(b,{key:1,cols:"1",class:"tpic-select pr-4","data-test":"array-index",style:{"min-width":"105px"}},{default:Je(()=>[Pe(s,{label:"Index","hide-details":"",density:"compact",variant:"outlined","onUpdate:modelValue":[t[5]||(t[5]=a=>p.indexChanged(a)),t[6]||(t[6]=a=>f.selectedArrayIndex=a)],disabled:f.itemsDisabled||p.autocompleteDisabled,items:p.arrayIndexes(),"item-title":"label","item-value":"value",modelValue:f.selectedArrayIndex},null,8,["disabled","items","modelValue"])]),_:1})):xr("",!0),e.buttonText?(an(),pr(b,{key:2,cols:p.colSize,style:{"max-width":"140px"}},{default:Je(()=>[Pe(l,{disabled:p.buttonDisabled,color:"primary","data-test":"select-send",onClick:p.buttonPressed},{default:Je(()=>[ar(Lr(p.actualButtonText),1)]),_:1},8,["disabled","onClick"])]),_:1},8,["cols"])):xr("",!0)]),_:1},8,["no-gutters"]),e.selectTypes?(an(),pr(u,{key:0,"no-gutters":"",class:"pt-6"},{default:Je(()=>[Pe(b,{cols:p.colSize,class:"tpic-select pr-4","data-test":"data-type"},{default:Je(()=>[Pe(y,{label:"Value Type","hide-details":"",density:"compact",variant:"outlined",items:f.valueTypes,modelValue:f.selectedValueType,"onUpdate:modelValue":t[7]||(t[7]=a=>f.selectedValueType=a)},null,8,["items","modelValue"])]),_:1},8,["cols"]),Pe(b,{cols:p.colSize,class:"tpic-select pr-4","data-test":"reduced"},{default:Je(()=>[Pe(y,{label:"Reduced","hide-details":"",density:"compact",variant:"outlined",items:f.reductionModes,modelValue:f.selectedReduced,"onUpdate:modelValue":t[8]||(t[8]=a=>f.selectedReduced=a)},null,8,["items","modelValue"])]),_:1},8,["cols"]),Pe(b,{cols:p.colSize,class:"tpic-select pr-4","data-test":"reduced-type"},{default:Je(()=>[Pe(y,{label:"Reduced Type","hide-details":"",density:"compact",variant:"outlined",disabled:f.selectedReduced==="DECOM",items:f.reducedTypes,modelValue:f.selectedReducedType,"onUpdate:modelValue":t[9]||(t[9]=a=>f.selectedReducedType=a)},null,8,["disabled","items","modelValue"])]),_:1},8,["cols"]),Pe(b,{cols:p.colSize,style:{"max-width":"140px"}},null,8,["cols"])]),_:1})):xr("",!0),Pe(u,{"no-gutters":"",class:"pa-3"},{default:Je(()=>[Pe(b,{cols:p.colSize,class:Yc({"openc3-yellow":f.hazardous})},{default:Je(()=>[ar(" Description: "+Lr(f.description)+" ",1),f.hazardous?(an(),ei(op,{key:0},[ar(" (HAZARDOUS) ")],64)):xr("",!0)]),_:1},8,["cols","class"])]),_:1})])}const z2=Wn("w",qi(vM,[["render",wM],["__scopeId","data-v-17a5870b"]])),Cy=[{path:"/",name:"DataViewer",component:()=>lt(()=>at.import("./DataViewer-9697158bf620210e5ae5.js"),void 0)},{path:"/:pathMatch(.*)*",name:"NotFound",component:mM}];Cy.forEach(wp);const bM=pp({history:gp(),routes:Cy}),xM={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"}},CM={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=""}}},kM=["innerHTML"],SM={key:2},AM={key:3,class:"validate mt-4"};function _M(n,t,e,r,f,p){const y=rt("v-spacer"),b=rt("v-toolbar"),h=rt("v-icon"),g=rt("v-text-field"),s=rt("v-card-text"),l=rt("v-btn"),u=rt("v-card-actions"),a=rt("v-card"),o=rt("v-dialog"),c=rt("v-app");return an(),pr(c,null,{default:Je(()=>[Pe(o,{modelValue:n.show,"onUpdate:modelValue":t[1]||(t[1]=d=>n.show=d),width:"600"},{default:Je(()=>[Pe(a,null,{default:Je(()=>[Pe(b,{height:"24"},{default:Je(()=>[Pe(y),br("span",null,Lr(n.params.title),1),Pe(y)]),_:1}),Pe(s,{class:"mt-4 pa-3"},{default:Je(()=>[n.params.validateText?(an(),pr(h,{key:0,class:"mr-2"},{default:Je(()=>t[2]||(t[2]=[ar(" mdi-alert ")])),_:1})):xr("",!0),n.params.html?(an(),ei("span",{key:1,innerHTML:n.params.text},null,8,kM)):(an(),ei("span",SM,Lr(n.params.text),1)),n.params.validateText?(an(),ei("div",AM,[ar(" Enter "+Lr(n.params.validateText)+" to confirm! ",1),Pe(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"])])):xr("",!0)]),_:1}),Pe(u,{class:"px-2"},{default:Je(()=>[Pe(y),n.params.cancelText?(an(),pr(l,{key:0,variant:"outlined","data-test":p.dataTestCancel,onClick:p.cancel},{default:Je(()=>[ar(Lr(n.params.cancelText),1)]),_:1},8,["data-test","onClick"])):xr("",!0),Pe(l,{variant:"flat",color:n.params.okClass,"data-test":p.dataTestOk,onClick:p.ok},{default:Je(()=>[ar(Lr(n.params.okText),1)]),_:1},8,["color","data-test","onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1})}const TM=qi(CM,[["render",_M],["__scopeId","data-v-de532a0f"]]);class $M{constructor(){this.mounted=!1,this.$root=null}mount(){if(this.mounted)return;const t=window.Vue.createApp(TM);t.use(ad);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 MM={install(n,t){const e=new $M;n.provide("dialog",e),n.config.globalProperties.hasOwnProperty("$dialog")||(n.config.globalProperties.$dialog=e)}},IM={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`
1500
- --toast-bg-color:${od[this.toastNotification.level]};
1498
+ `):" "+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:qh};function Kh(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new ta(null,n)}function qv(n){return Kh(n),n.headers=qr.from(n.headers),n.data=Uh.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 Kh(n),t.data=Uh.call(n,n.transformResponse,t),t.headers=qr.from(t.headers),t},function(t){return Lv(t)||(Kh(n),t&&t.response&&(t.response.data=Uh.call(n,n.transformResponse,t.response),t.response.headers=qr.from(t.response.headers))),Promise.reject(t)})}const Kv="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"+Kv+"] 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 J_(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:J_,validators:sc},Yi=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+=`
1499
+ `+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:Yi.transitional(Yi.boolean),forcedJSONParsing:Yi.transitional(Yi.boolean),clarifyTimeoutError:Yi.transitional(Yi.boolean)},!1),f!=null&&(_e.isFunction(f)?e.paramsSerializer={serialize:f}:ac.assertOptions(f,{encode:Yi.function,serialize:Yi.function},!0)),e.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?e.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:e.allowAbsoluteUrls=!0),ac.assertOptions(e,{baseUrl:Yi.spelling("baseURL"),withXsrfToken:Yi.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=qr.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=[qv.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=qv.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 eT=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 tT(n){return function(t){return n.apply(null,t)}}function nT(n){return _e.isObject(n)&&n.isAxiosError===!0}const Gh={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(Gh).forEach(([n,t])=>{Gh[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 Qn=Wn("E",Yv(Wa));Qn.Axios=vs,Qn.CanceledError=ta,Qn.CancelToken=eT,Qn.isCancel=Lv,Qn.VERSION=Kv,Qn.toFormData=tc,Qn.AxiosError=Et,Qn.Cancel=Qn.CanceledError,Qn.all=function(n){return Promise.all(n)},Qn.spread=tT,Qn.isAxiosError=nT,Qn.mergeConfig=ms,Qn.AxiosHeaders=qr,Qn.formToJSON=n=>Ev(_e.isHTMLForm(n)?new FormData(n):n),Qn.getAdapter=Vv.getAdapter,Qn.HttpStatusCode=Gh,Qn.default=Qn;const{Axios:x2,AxiosError:C2,CanceledError:k2,isCancel:S2,CancelToken:A2,VERSION:_2,all:T2,Cancel:$2,isAxiosError:M2,spread:I2,toFormData:E2,AxiosHeaders:R2,HttpStatusCode:L2,formToJSON:O2,getAdapter:N2,mergeConfig:D2}=Qn;function Xv(){return Object.assign({},Fs())}function rT(n,t,e){const r=xn(n,void 0);return r.setTime(r.getTime()+t*hl),r}function iT(n,t){const e=()=>Yn(void 0,NaN),r=lT(n);let f;if(r.date){const h=cT(r.date,2);f=uT(h.restDateString,h.year)}if(!f||isNaN(+f))return e();const p=+f;let y=0,b;if(r.time&&(y=hT(r.time),isNaN(y)))return e();if(r.timezone){if(b=dT(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+-].*)$/},oT=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,sT=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,aT=/^([+-])(\d{2})(?::?(\d{2}))?$/;function lT(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 cT(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 uT(n,t){if(t===null)return new Date(NaN);const e=n.match(oT);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 vT(t,b,h)?pT(t,b,h):new Date(NaN);{const g=new Date(0);return!fT(t,p,y)||!mT(t,f)?new Date(NaN):(g.setUTCFullYear(t,p,Math.max(f,y)),g)}}function za(n){return n?parseInt(n):1}function hT(n){const t=n.match(sT);if(!t)return NaN;const e=Yh(t[1]),r=Yh(t[2]),f=Yh(t[3]);return yT(e,r,f)?e*tu+r*hl+f*1e3:NaN}function Yh(n){return n&&parseFloat(n.replace(",","."))||0}function dT(n){if(n==="Z")return 0;const t=n.match(aT);if(!t)return 0;const e=t[1]==="+"?-1:1,r=parseInt(t[2]),f=t[3]&&parseInt(t[3])||0;return wT(r,f)?e*(r*tu+f*hl):NaN}function pT(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 gT=[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 fT(n,t,e){return t>=0&&t<=11&&e>=1&&e<=(gT[t]||(Qv(n)?29:28))}function mT(n,t){return t>=1&&t<=(Qv(n)?366:365)}function vT(n,t,e){return t>=1&&t<=53&&e>=0&&e<=6}function yT(n,t,e){return n===24?t===0&&e===0:e>=0&&e<60&&t>=0&&t<60&&n>=0&&n<25}function wT(n,t){return t>=0&&t<=59}function bT(n,t,e){return rT(n,-t)}function Zv(n,t,e){const r=Xv(),f=kT(n,e.timeZone,e.locale??r.locale);return"formatToParts"in f?xT(f,t):CT(f,t)}function xT(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 CT(n,t){const e=n.format(t).replace(/\u200E/g,""),r=/ [\w-+ ]+$/.exec(e);return r?r[0].substr(1):""}function kT(n,t,e){return new Intl.DateTimeFormat(e?[e.code,"en-US"]:void 0,{timeZone:t,timeZoneName:n})}function ST(n,t){const e=MT(t);return"formatToParts"in e?_T(e,n):TT(e,n)}const AT={year:0,month:1,day:2,hour:3,minute:4,second:5};function _T(n,t){try{const e=n.formatToParts(t),r=[];for(let f=0;f<e.length;f++){const p=AT[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 TT(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 Xh={},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")),$T=Jv==="06/25/2014, 00:00:00"||Jv==="‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00";function MT(n){return Xh[n]||(Xh[n]=$T?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"})),Xh[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,IT=6e4,Qh={timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function Zh(n,t,e){if(!n)return 0;let r=Qh.timezoneZ.exec(n);if(r)return 0;let f,p;if(r=Qh.timezoneHH.exec(n),r)return f=parseInt(r[1],10),ny(f)?-(f*ty):NaN;if(r=Qh.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*IT,r[1]==="+"?-p:p):NaN}if(LT(n)){t=new Date(t||Date.now());const y=e?t:ET(t),b=Jh(y,n);return-(e?b:RT(t,b,n))}return NaN}function ET(n){return ey(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds())}function Jh(n,t){const e=ST(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 RT(n,t,e){let r=n.getTime()-t;const f=Jh(new Date(r),e);if(t===f)return t;r-=f-t;const p=Jh(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 LT(n){if(ry[n])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:n}),ry[n]=!0,!0}catch{return!1}}const OT=60*1e3,NT={X:function(n,t,e){const r=ed(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=ed(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=ed(e.timeZone,n);switch(t){case"O":case"OO":case"OOO":return"GMT"+DT(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 ed(n,t){const e=n?Zh(n,t,!0)/OT:(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 DT(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 PT=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,td=36e5,sy=6e4,FT=2,Dr={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:PT};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?FT: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=WT(n),{year:f,restDateString:p}=BT(r.date,e),y=zT(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=jT(r.time),h===null||isNaN(h)))return new Date(NaN);if(r.timeZone||t.timeZone){if(g=Zh(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 WT(n){const t={};let e=Dr.dateTimePattern.exec(n),r;if(e?(t.date=e[1],r=e[3]):(e=Dr.datePattern.exec(n),e?(t.date=e[1],r=e[2]):(t.date=null,r=n)),r){const f=Dr.timeZone.exec(r);f?(t.time=r.replace(f[1],""),t.timeZone=f[1].trim()):t.time=r}return t}function BT(n,t){if(n){const e=Dr.YYY[t],r=Dr.YYYYY[t];let f=Dr.YYYY.exec(n)||r.exec(n);if(f){const p=f[1];return{year:parseInt(p,10),restDateString:n.slice(p.length)}}if(f=Dr.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 zT(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=Dr.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=Dr.DDD.exec(n),p){e=new Date(0);const y=parseInt(p[1],10);return VT(t,y)?(e.setUTCFullYear(t,0,y),e):new Date(NaN)}if(p=Dr.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=Dr.Www.exec(n),p)return f=parseInt(p[1],10)-1,hy(f)?ly(t,f):new Date(NaN);if(p=Dr.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 jT(n){let t,e,r=Dr.HH.exec(n);if(r)return t=parseFloat(r[1].replace(",",".")),nd(t)?t%24*td:NaN;if(r=Dr.HHMM.exec(n),r)return t=parseInt(r[1],10),e=parseFloat(r[2].replace(",",".")),nd(t,e)?t%24*td+e*sy:NaN;if(r=Dr.HHMMSS.exec(n),r){t=parseInt(r[1],10),e=parseInt(r[2],10);const f=parseFloat(r[3].replace(",","."));return nd(t,e,f)?t%24*td+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 HT=[31,28,31,30,31,30,31,31,30,31,30,31],UT=[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>UT[t]||!r&&e>HT[t])return!1}return!0}function VT(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 nd(n,t,e){return!(n<0||n>=25||t!=null&&(t<0||t>=60)||e!=null&&(e<0||e>=60))}const qT=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function KT(n,t,e={}){t=String(t);const r=t.match(qT);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,"'"+NT[y[0]](f,y,e)+"'");return h?g.substring(0,b-1)+g.substring(b+1):g},t)}return Ro(n,t,e)}function GT(n,t,e){n=ay(n,e);const r=Zh(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},KT(GT(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}`,P2=Wn("R",{methods:{parseDateTime(n,t){return n.includes(" ")&&(n=n.replace(" ","T")),t&&t==="UTC"&&(n+="Z"),Date.parse(n)},formatUtcToLocal(n,t){return Ro(!t||t==="local"?bT(n,n.getTimezoneOffset()):n,dc)},formatDateTime(n,t){return!t||t==="local"?Ro(n,dc):uc(n,t,dc)},formatDateTimeHMS(n,t){return!t||t==="local"?Ro(n,gy):uc(n,t,gy)},formatDate:function(n,t){return!t||t==="local"?Ro(n,hc):uc(n,this.timeZone,hc)},formatTime:function(n,t,e=dy){return!t||t==="local"?Ro(n,e):uc(n,this.timeZone,e)},formatTimeHMS:function(n,t){return this.formatTime(n,t,py)},formatTimestamp(n,t){return this.formatDateTime(iT(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 YT=Object.defineProperty,XT=(n,t,e)=>t in n?YT(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,tt=(n,t,e)=>XT(n,typeof t!="symbol"?t+"":t,e);function rd(n,t,e){const r=xn(n,e==null?void 0:e.in);return isNaN(t)?Yn((e==null?void 0:e.in)||n,NaN):(t&&r.setDate(r.getDate()+t),r)}function QT(n,t){const e=xn(n,void 0).getDay();return e===0?7:e}function ZT(n,t){const e=JT(t)?new t(0):Yn(t,0);return e.setFullYear(n.getFullYear(),n.getMonth(),n.getDate()),e.setHours(n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()),e}function JT(n){var t;return typeof n=="function"&&((t=n.prototype)==null?void 0:t.constructor)===n}const e$=10;let fy=class{constructor(){tt(this,"subPriority",0)}validate(t,e){return!0}};class t$ 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 n$ extends fy{constructor(t,e){super(),tt(this,"priority",e$),tt(this,"subPriority",-1),this.context=t||(r=>Yn(e,r))}set(t,e){return e.timestampIsSet?t:Yn(t,ZT(t,this.context))}}class tn{run(t,e,r,f){const p=this.parse(t,e,r,f);return p?{setter:new t$(p.value,this.validate,this.set,this.priority,this.subPriority),rest:p.rest}:null}validate(t,e,r){return!0}}class r$ extends tn{constructor(){super(...arguments),tt(this,"priority",140),tt(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}/},Xi={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 _n(n,t){const e=t.match(n);return e?{value:parseInt(e[0],10),rest:t.slice(e[0].length)}:null}function Qi(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*tu+p*hl+y*Fb),rest:t.slice(e[0].length)}}function my(n){return _n(zn.anyDigitsSigned,n)}function In(n,t){switch(n){case 1:return _n(zn.singleDigit,t);case 2:return _n(zn.twoDigits,t);case 3:return _n(zn.threeDigits,t);case 4:return _n(zn.fourDigits,t);default:return _n(new RegExp("^\\d{1,"+n+"}"),t)}}function vy(n,t){switch(n){case 1:return _n(zn.singleDigitSigned,t);case 2:return _n(zn.twoDigitsSigned,t);case 3:return _n(zn.threeDigitsSigned,t);case 4:return _n(zn.fourDigitsSigned,t);default:return _n(new RegExp("^-?\\d{1,"+n+"}"),t)}}function id(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 i$ extends tn{constructor(){super(...arguments),tt(this,"priority",130),tt(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(In(4,t),f);case"yo":return jn(r.ordinalNumber(t,{unit:"year"}),f);default:return jn(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 o$=class extends tn{constructor(){super(...arguments),tt(this,"priority",130),tt(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(In(4,t),f);case"Yo":return jn(r.ordinalNumber(t,{unit:"year"}),f);default:return jn(In(e.length,t),f)}}validate(t,e){return e.isTwoDigitYear||e.year>0}set(t,e,r,f){const p=ru(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 s$ extends tn{constructor(){super(...arguments),tt(this,"priority",130),tt(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=Yn(t,0);return f.setFullYear(r,0,4),f.setHours(0,0,0,0),Ws(f)}}class a$ extends tn{constructor(){super(...arguments),tt(this,"priority",130),tt(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 l$ extends tn{constructor(){super(...arguments),tt(this,"priority",120),tt(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 c$ extends tn{constructor(){super(...arguments),tt(this,"priority",120),tt(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 u$ extends tn{constructor(){super(...arguments),tt(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),tt(this,"priority",110)}parse(t,e,r){const f=p=>p-1;switch(e){case"M":return jn(_n(zn.month,t),f);case"MM":return jn(In(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 h$ extends tn{constructor(){super(...arguments),tt(this,"priority",110),tt(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(_n(zn.month,t),f);case"LL":return jn(In(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 d$(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 p$ extends tn{constructor(){super(...arguments),tt(this,"priority",100),tt(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(zn.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(d$(t,r,f),f)}}function g$(n,t,e){const r=xn(n,void 0),f=Tp(r)-t;return r.setDate(r.getDate()-f*7),r}class f$ extends tn{constructor(){super(...arguments),tt(this,"priority",100),tt(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(zn.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(g$(t,r))}}const m$=[31,28,31,30,31,30,31,31,30,31,30,31],v$=[31,29,31,30,31,30,31,31,30,31,30,31];class y$ extends tn{constructor(){super(...arguments),tt(this,"priority",90),tt(this,"subPriority",1),tt(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(t,e,r){switch(e){case"d":return _n(zn.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<=v$[p]:e>=1&&e<=m$[p]}set(t,e,r){return t.setDate(r),t.setHours(0,0,0,0),t}}class w$ extends tn{constructor(){super(...arguments),tt(this,"priority",90),tt(this,"subpriority",1),tt(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(zn.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 od(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 rd(g,a,e)}class b$ extends tn{constructor(){super(...arguments),tt(this,"priority",90),tt(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=od(t,r,f),t.setHours(0,0,0,0),t}}class x$ extends tn{constructor(){super(...arguments),tt(this,"priority",90),tt(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(In(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=od(t,r,f),t.setHours(0,0,0,0),t}}let C$=class extends tn{constructor(){super(...arguments),tt(this,"priority",90),tt(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(In(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=od(t,r,f),t.setHours(0,0,0,0),t}};function k$(n,t,e){const r=xn(n,void 0),f=QT(r),p=t-f;return rd(r,p,e)}let S$=class extends tn{constructor(){super(...arguments),tt(this,"priority",90),tt(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 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=k$(t,r),t.setHours(0,0,0,0),t}};class A$ extends tn{constructor(){super(...arguments),tt(this,"priority",80),tt(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(id(r),0,0,0),t}}class _$ extends tn{constructor(){super(...arguments),tt(this,"priority",80),tt(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(id(r),0,0,0),t}}class T$ extends tn{constructor(){super(...arguments),tt(this,"priority",80),tt(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(id(r),0,0,0),t}}class $$ extends tn{constructor(){super(...arguments),tt(this,"priority",70),tt(this,"incompatibleTokens",["H","K","k","t","T"])}parse(t,e,r){switch(e){case"h":return _n(zn.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 M$ extends tn{constructor(){super(...arguments),tt(this,"priority",70),tt(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(t,e,r){switch(e){case"H":return _n(zn.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 I$ extends tn{constructor(){super(...arguments),tt(this,"priority",70),tt(this,"incompatibleTokens",["h","H","k","t","T"])}parse(t,e,r){switch(e){case"K":return _n(zn.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 E$ extends tn{constructor(){super(...arguments),tt(this,"priority",70),tt(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(t,e,r){switch(e){case"k":return _n(zn.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 R$ extends tn{constructor(){super(...arguments),tt(this,"priority",60),tt(this,"incompatibleTokens",["t","T"])}parse(t,e,r){switch(e){case"m":return _n(zn.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 L$ extends tn{constructor(){super(...arguments),tt(this,"priority",50),tt(this,"incompatibleTokens",["t","T"])}parse(t,e,r){switch(e){case"s":return _n(zn.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 O$ extends tn{constructor(){super(...arguments),tt(this,"priority",30),tt(this,"incompatibleTokens",["t","T"])}parse(t,e){const r=f=>Math.trunc(f*Math.pow(10,-e.length+3));return jn(In(e.length,t),r)}set(t,e,r){return t.setMilliseconds(r),t}}class N$ extends tn{constructor(){super(...arguments),tt(this,"priority",10),tt(this,"incompatibleTokens",["t","T","x"])}parse(t,e){switch(e){case"X":return Qi(Xi.basicOptionalMinutes,t);case"XX":return Qi(Xi.basic,t);case"XXXX":return Qi(Xi.basicOptionalSeconds,t);case"XXXXX":return Qi(Xi.extendedOptionalSeconds,t);case"XXX":default:return Qi(Xi.extended,t)}}set(t,e,r){return e.timestampIsSet?t:Yn(t,t.getTime()-dl(t)-r)}}class D$ extends tn{constructor(){super(...arguments),tt(this,"priority",10),tt(this,"incompatibleTokens",["t","T","X"])}parse(t,e){switch(e){case"x":return Qi(Xi.basicOptionalMinutes,t);case"xx":return Qi(Xi.basic,t);case"xxxx":return Qi(Xi.basicOptionalSeconds,t);case"xxxxx":return Qi(Xi.extendedOptionalSeconds,t);case"xxx":default:return Qi(Xi.extended,t)}}set(t,e,r){return e.timestampIsSet?t:Yn(t,t.getTime()-dl(t)-r)}}class P$ extends tn{constructor(){super(...arguments),tt(this,"priority",40),tt(this,"incompatibleTokens","*")}parse(t){return my(t)}set(t,e,r){return[Yn(t,r*1e3),{timestampIsSet:!0}]}}class F$ extends tn{constructor(){super(...arguments),tt(this,"priority",20),tt(this,"incompatibleTokens","*")}parse(t){return my(t)}set(t,e,r){return[Yn(t,r),{timestampIsSet:!0}]}}const W$={G:new r$,y:new i$,Y:new o$,R:new s$,u:new a$,Q:new l$,q:new c$,M:new u$,L:new h$,w:new p$,I:new f$,d:new y$,D:new w$,E:new b$,e:new x$,c:new C$,i:new S$,a:new A$,b:new _$,B:new T$,h:new $$,H:new M$,K:new I$,k:new E$,m:new R$,s:new L$,S:new O$,X:new N$,x:new D$,t:new P$,T:new F$},B$=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,z$=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,j$=/^'([^]*?)'?$/,H$=/''/g,U$=/\S/,V$=/[a-zA-Z]/;function q$(n,t,e,r){var f,p,y,b;const h=()=>Yn(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 n$(void 0,e)],c=t.match(z$).map($=>{const S=$[0];if(S in iu){const C=iu[S];return C($,s.formatLong)}return $}).join("").match(B$),d=[];for(let $ of c){Np($)&&ou($,t,n),Op($)&&ou($,t,n);const S=$[0],C=W$[S];if(C){const{incompatibleTokens:R}=C;if(Array.isArray(R)){const P=d.find(E=>R.includes(E.token)||E.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(V$))throw new RangeError("Format string contains an unescaped latin alphabet character `"+S+"`");if($==="''"?$="'":S==="'"&&($=K$($)),n.indexOf($)===0)n=n.slice($.length);else return h()}}if(n.length>0&&U$.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 I={};for(const $ of w){if(!$.validate(x,a))return h();const S=$.set(x,I,a);Array.isArray(S)?(x=S[0],Object.assign(I,S[1])):x=S}return x}function K$(n){return n.match(j$)[1].replace(H$,"'")}const G$="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=",Y$={props:{status:{type:String,required:!0},large:{type:Boolean},small:{type:Boolean},scale:{type:Number}},computed:{icons:function(){return G$},scaleFactor:function(){return this.scale?this.scale:this.large?1:this.small?.3:.5},iconStyle:function(){const n=nM.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 X$(n,t,e,r,f,p){return Jt(),Or("div",{style:wa(p.iconStyle)},null,4)}const Q$=qi(Y$,[["render",X$]]),Z$={props:{icon:{type:String},size:{type:String,default:"small"},color:{type:String,default:"white"}},computed:{colorStyle:function(){return{"--iconColor":this.color}}}};function J$(n,t,e,r,f,p){const y=rt("rux-icon");return Jt(),pr(y,{size:e.size,icon:e.icon,style:wa(p.colorStyle)},null,8,["size","icon","style"])}const eM=qi(Z$,[["render",J$],["__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"},sd={fatal:"#ff69B4",critical:"#ff3838",serious:"#ffb302",caution:"#fce83a",normal:"#56f000",standby:"#2dccff",off:"#a4abb6"},tM=function(n){const t="#000000",e="#ffffff",r=sd[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},nM=Object.keys(sd),rM={astro:{component:n=>Ds(eM,{...n})},"astro-status":{component:n=>Ds(Q$,{...n,status:n.icon})}},iM={extras:{component:n=>Ds(Pb,{...n})}},F2=Wn("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 Oo().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 Oo().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})}}}),oM={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 Oo().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 Oo().delete_config(this.configKey,n.config)}).catch(t=>{t!==!0&&this.$emit("warning",`Failed to delete config ${n.config} Error: ${t}`)})}}},sM={class:"mt-4 pa-3"},aM=["textContent"];function lM(n,t,e,r,f,p){const y=rt("v-spacer"),b=rt("v-toolbar"),h=rt("v-text-field"),g=rt("v-row"),s=rt("v-btn"),l=rt("v-data-table"),u=rt("v-card-text"),a=rt("v-card-actions"),o=rt("v-card"),c=rt("v-dialog");return Jt(),pr(c,{modelValue:p.show,"onUpdate:modelValue":t[4]||(t[4]=d=>p.show=d),width:"600",onKeydown:Qc(p.cancel,["esc"])},{default:Je(()=>[Pe(o,null,{default:Je(()=>[br("form",{onSubmit:t[3]||(t[3]=Ps((...d)=>p.success&&p.success(...d),["prevent"]))},[Pe(b,{height:"24"},{default:Je(()=>[Pe(y),t[5]||(t[5]=br("span",null,"Open Configuration",-1)),Pe(y)]),_:1}),Pe(u,null,{default:Je(()=>[br("div",sM,[Pe(g,{dense:""},{default:Je(()=>[Pe(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}),Pe(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":Je(({item:d})=>[Pe(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"]),Pe(g,{dense:""},{default:Je(()=>[ll(br("span",{class:"ma-2 text-red",textContent:Cr(p.error)},null,8,aM),[[cl,p.error]])]),_:1})])]),_:1}),Pe(a,{class:"px-2"},{default:Je(()=>[Pe(y),Pe(s,{variant:"outlined","data-test":"open-config-cancel-btn",onClick:p.cancel},{default:Je(()=>t[6]||(t[6]=[Gn(" Cancel ")])),_:1},8,["onClick"]),Pe(s,{variant:"flat",type:"submit","data-test":"open-config-submit-btn",disabled:!!p.error,onClick:Ps(p.success,["prevent"])},{default:Je(()=>t[7]||(t[7]=[Gn(" Ok ")])),_:1},8,["disabled","onClick"])]),_:1})],32)]),_:1})]),_:1},8,["modelValue","onKeydown"])}const W2=Wn("v",qi(oM,[["render",lM]])),cM={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 Oo().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 Oo().delete_config(this.configKey,n.config)}).catch(t=>{t!==!0&&this.$emit("warning",`Failed to delete config ${n.config} Error: ${t}`)})}}},uM={class:"mt-4 pa-3"},hM=["textContent"];function dM(n,t,e,r,f,p){const y=rt("v-spacer"),b=rt("v-toolbar"),h=rt("v-text-field"),g=rt("v-row"),s=rt("v-btn"),l=rt("v-data-table"),u=rt("v-card-text"),a=rt("v-card-actions"),o=rt("v-card"),c=rt("v-dialog");return Jt(),pr(c,{modelValue:p.show,"onUpdate:modelValue":t[5]||(t[5]=d=>p.show=d),width:"600",onKeydown:Qc(p.cancel,["esc"])},{default:Je(()=>[Pe(o,null,{default:Je(()=>[br("form",{onSubmit:t[4]||(t[4]=Ps((...d)=>p.success&&p.success(...d),["prevent"]))},[Pe(b,{height:"24"},{default:Je(()=>[Pe(y),t[6]||(t[6]=br("span",null,"Save Configuration",-1)),Pe(y)]),_:1}),Pe(u,null,{default:Je(()=>[br("div",uM,[Pe(g,{dense:""},{default:Je(()=>[Pe(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}),Pe(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":Je(({item:d})=>[Pe(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"]),Pe(g,{dense:""},{default:Je(()=>[Pe(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}),Pe(g,{dense:""},{default:Je(()=>[ll(br("span",{class:"ma-2 text-red",textContent:Cr(p.error)},null,8,hM),[[cl,p.error]])]),_:1})])]),_:1}),Pe(a,{class:"px-2"},{default:Je(()=>[Pe(y),Pe(s,{variant:"outlined",onClick:p.cancel},{default:Je(()=>t[7]||(t[7]=[Gn(" Cancel ")])),_:1},8,["onClick"]),Pe(s,{variant:"flat",type:"submit","data-test":"save-config-submit-btn",disabled:!!p.error,onClick:Ps(p.success,["prevent"])},{default:Je(()=>t[8]||(t[8]=[Gn(" Ok ")])),_:1},8,["disabled","onClick"])]),_:1})],32)]),_:1})]),_:1},8,["modelValue","onKeydown"])}const B2=Wn("a",qi(cM,[["render",dM]])),xy="single-spa:app-change",pM={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}}},gM={class:"mx-1"};function fM(n,t,e,r,f,p){const y=rt("v-card-title"),b=rt("v-card-text"),h=rt("v-card");return f.show?(Jt(),pr(h,{key:0},{default:Je(()=>[Pe(y,null,{default:Je(()=>t[0]||(t[0]=[Gn(" 404 Not Found ")])),_:1}),Pe(b,{class:"d-flex align-center mt-3"},{default:Je(()=>[t[1]||(t[1]=Gn(" The requested URL ")),br("code",gM,Cr(n.$route.fullPath),1),t[2]||(t[2]=Gn(" was not routable. ")),t[3]||(t[3]=br("span",{class:"text-h3 mx-1"}," 🦄 ",-1))]),_:1})]),_:1})):xr("",!0)}const mM=qi(pM,[["render",fM]]),vM={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 Oo,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})})}}},yM={class:"pt-4 pb-4"};function wM(n,t,e,r,f,p){const y=rt("v-autocomplete"),b=rt("v-col"),h=rt("v-list-item"),g=rt("v-divider"),s=rt("v-combobox"),l=rt("v-btn"),u=rt("v-row");return Jt(),Or("div",yM,[Pe(u,{"no-gutters":!e.vertical},{default:Je(()=>[Pe(b,{cols:p.colSize,class:"tpic-select pr-4","data-test":"select-target"},{default:Je(()=>[Pe(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"]),Pe(b,{cols:p.colSize,class:"tpic-select pr-4","data-test":"select-packet"},{default:Je(()=>[Pe(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"},op({_:2},[p.includeLatestPacketInDropdown?{name:"prepend-item",fn:Je(()=>[Pe(h,{title:"LATEST",onClick:t[1]||(t[1]=a=>p.packetNameChanged("LATEST"))}),Pe(g)]),key:"0"}:void 0]),1032,["modelValue","disabled","items","onUpdate:modelValue"])]),_:1},8,["cols"]),e.chooseItem?(Jt(),pr(b,{key:0,cols:p.colSize,class:"tpic-select pr-4","data-test":"select-item"},{default:Je(()=>[Pe(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"])):xr("",!0),e.chooseItem&&p.itemIsArray?(Jt(),pr(b,{key:1,cols:"1",class:"tpic-select pr-4","data-test":"array-index",style:{"min-width":"105px"}},{default:Je(()=>[Pe(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})):xr("",!0),e.buttonText?(Jt(),pr(b,{key:2,cols:p.colSize,style:{"max-width":"140px"}},{default:Je(()=>[Pe(l,{disabled:p.buttonDisabled,color:"primary","data-test":"select-send",onClick:p.buttonPressed},{default:Je(()=>[Gn(Cr(p.actualButtonText),1)]),_:1},8,["disabled","onClick"])]),_:1},8,["cols"])):xr("",!0)]),_:1},8,["no-gutters"]),e.selectTypes?(Jt(),pr(u,{key:0,class:"pt-6","no-gutters":""},{default:Je(()=>[Pe(b,{cols:p.colSize,class:"tpic-select pr-4","data-test":"data-type"},{default:Je(()=>[Pe(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"]),Pe(b,{cols:p.colSize,class:"tpic-select pr-4","data-test":"reduced"},{default:Je(()=>[Pe(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"]),Pe(b,{cols:p.colSize,class:"tpic-select pr-4","data-test":"reduced-type"},{default:Je(()=>[Pe(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"]),Pe(b,{cols:p.colSize,style:{"max-width":"140px"}},null,8,["cols"])]),_:1})):xr("",!0),Pe(u,{"no-gutters":"",class:"pa-3"},{default:Je(()=>[Pe(b,{cols:p.colSize,class:Xc({"openc3-yellow":f.hazardous})},{default:Je(()=>[Gn(" Description: "+Cr(f.description)+" ",1),f.hazardous?(Jt(),Or(ul,{key:0},[Gn(" (HAZARDOUS) ")],64)):xr("",!0)]),_:1},8,["cols","class"])]),_:1})])}const z2=Wn("w",qi(vM,[["render",wM],["__scopeId","data-v-75f74b75"]])),Cy=[{path:"/",name:"DataViewer",component:()=>lt(()=>at.import("./DataViewer-7813521d396545dc0f0c.js"),void 0)},{path:"/:pathMatch(.*)*",name:"NotFound",component:mM}];Cy.forEach(wp);const bM=pp({history:gp(),routes:Cy}),xM={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"}},CM={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=""}}},kM=["innerHTML"],SM={key:2},AM={key:3,class:"validate mt-4"};function _M(n,t,e,r,f,p){const y=rt("v-spacer"),b=rt("v-toolbar"),h=rt("v-icon"),g=rt("v-text-field"),s=rt("v-card-text"),l=rt("v-btn"),u=rt("v-card-actions"),a=rt("v-card"),o=rt("v-dialog"),c=rt("v-app");return Jt(),pr(c,null,{default:Je(()=>[Pe(o,{modelValue:n.show,"onUpdate:modelValue":t[1]||(t[1]=d=>n.show=d),width:"600"},{default:Je(()=>[Pe(a,null,{default:Je(()=>[Pe(b,{height:"24"},{default:Je(()=>[Pe(y),br("span",null,Cr(n.params.title),1),Pe(y)]),_:1}),Pe(s,{class:"mt-4 pa-3"},{default:Je(()=>[n.params.validateText?(Jt(),pr(h,{key:0,class:"mr-2"},{default:Je(()=>t[2]||(t[2]=[Gn(" mdi-alert ")])),_:1})):xr("",!0),n.params.html?(Jt(),Or("span",{key:1,innerHTML:n.params.text},null,8,kM)):(Jt(),Or("span",SM,Cr(n.params.text),1)),n.params.validateText?(Jt(),Or("div",AM,[Gn(" Enter "+Cr(n.params.validateText)+" to confirm! ",1),Pe(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"])])):xr("",!0)]),_:1}),Pe(u,{class:"px-2"},{default:Je(()=>[Pe(y),n.params.cancelText?(Jt(),pr(l,{key:0,variant:"outlined","data-test":p.dataTestCancel,onClick:p.cancel},{default:Je(()=>[Gn(Cr(n.params.cancelText),1)]),_:1},8,["data-test","onClick"])):xr("",!0),Pe(l,{variant:"flat",color:n.params.okClass,"data-test":p.dataTestOk,onClick:p.ok},{default:Je(()=>[Gn(Cr(n.params.okText),1)]),_:1},8,["color","data-test","onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1})}const TM=qi(CM,[["render",_M],["__scopeId","data-v-de532a0f"]]);class $M{constructor(){this.mounted=!1,this.$root=null}mount(){if(this.mounted)return;const t=window.Vue.createApp(TM);t.use(ld);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 MM={install(n,t){const e=new $M;n.provide("dialog",e),n.config.globalProperties.hasOwnProperty("$dialog")||(n.config.globalProperties.$dialog=e)}},IM={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`
1500
+ --toast-bg-color:${sd[this.toastNotification.level]};
1501
1501
  --toast-fg-color:${tM(this.toastNotification.level)};
1502
1502
  `},contentStyle:function(){return`
1503
1503
  white-space: ${this.expanded?"normal":"nowrap"};
1504
1504
  overflow-x: ${this.expanded?"visible":"hidden"};
1505
1505
  text-overflow: ${this.expanded?"unset":"ellipsis"};
1506
- `}},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}}},EM={key:0,class:"text-subtitle-1 mr-1 notification-text"},RM={key:1,class:"text-body-2 notification-text"},LM={key:2,class:"text-body-2 notification-text"};function OM(n,t,e,r,f,p){const y=rt("v-icon"),b=rt("v-spacer"),h=rt("v-btn"),g=rt("v-sheet"),s=rt("v-slide-y-transition");return an(),pr(s,null,{default:Je(()=>[ll(Pe(g,{style:wa(p.toastStyle),class:"toast-notification",onClick:p.expand},{default:Je(()=>[Pe(y,{class:"mr-1 notification-text"},{default:Je(()=>[ar(Lr(p.toastNotificationIcon),1)]),_:1}),br("div",{class:"toast-content",style:wa(p.contentStyle)},[n.toastNotification.title?(an(),ei("span",EM,Lr(n.toastNotification.title)+": ",1)):xr("",!0),n.toastNotification.body?(an(),ei("span",RM,Lr(n.toastNotification.body),1)):xr("",!0),n.toastNotification.message?(an(),ei("span",LM,Lr(n.toastNotification.message),1)):xr("",!0)],4),Pe(b),Pe(h,{variant:"text",onClick:Ps(p.hide,["stop"]),class:"notification-text"},{default:Je(()=>t[0]||(t[0]=[ar(" Dismiss ")])),_:1},8,["onClick"])]),_:1},8,["style","onClick"]),[[cl,n.showToast]])]),_:1})}const NM=qi(IM,[["render",OM],["__scopeId","data-v-b0459ba8"]]);class DM{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=Zc(NM);t.use(ad);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 PM={install(n,t){const e=new DM(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 FM(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 WM(n){ap(`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=hp();if(!e)throw new Error(`[Vuetify] ${n} must be called from inside a setup function`);return e}function BM(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 sd=Symbol.for("vuetify:defaults");function My(){const n=lp(sd);if(!n)throw new Error("[Vuetify] Could not find defaults instance");return n}function zM(n,t){return n.props&&(typeof n.props[t]<"u"||typeof n.props[ja(t)]<"u")}function jM(){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=Qc(()=>{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(zM(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=cp();up(()=>{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=BM(sd,r);dp(sd,Qc(()=>y.value?_y((h==null?void 0:h.value)??{},y.value):h==null?void 0:h.value))}return{props:p,provideSubDefaults:b}}function dc(n){if(n._setup=n._setup??n.setup,!n.name)return WM("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 FM(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}=jM(e,e._as??n.name,f),b=n._setup(p,r);return y(),b}}return n}function HM(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return t=>(n?dc:sp)(t)}const UM=[String,Function,Object,Array],pc=Ty({icon:{type:UM},tag:{type:[String,Object,Function],required:!0}},"icon");HM()({name:"VComponentIcon",props:pc(),setup(n,t){let{slots:e}=t;return()=>{const r=n.icon;return Pe(n.tag,null,{default:()=>{var f;return[n.icon?Pe(r,null,null):(f=e.default)==null?void 0:f.call(e)]}})}}}),dc({name:"VSvgIcon",inheritAttrs:!1,props:pc(),setup(n,t){let{attrs:e}=t;return()=>Pe(n.tag,Gc(e,{style:null}),{default:()=>[Pe("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)?Pe("path",{d:r[0],"fill-opacity":r[1]},null):Pe("path",{d:r},null)):Pe("path",{d:n.icon},null)])]})}}),dc({name:"VLigatureIcon",props:pc(),setup(n){return()=>Pe(n.tag,null,{default:()=>[n.icon]})}});const VM=dc({name:"VClassIcon",props:pc(),setup(n){return()=>Pe(n.tag,{class:n.icon},null)}}),qM={component:n=>Ds(VM,{...n,class:"mdi"})},ad=vp({theme:{defaultTheme:"cosmosDark",themes:{cosmosDark:xM}},icons:{defaultSet:"mdi",sets:{mdi:qM,...rM,...iM}}}),ld=kb({createApp:Zc,appOptions:{render(){return Ds(Eb,{})},el:"#openc3-tool"},handleInstance:n=>{n.use(bM),n.use(Sy),n.use(ad),n.use(MM),n.use(PM,{store:Sy})}}),j2=Wn("f",ld.bootstrap),H2=Wn("g",ld.mount),U2=Wn("u",ld.unmount)}}});
1506
+ `}},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}}},EM={key:0,class:"text-subtitle-1 mr-1 notification-text"},RM={key:1,class:"text-body-2 notification-text"},LM={key:2,class:"text-body-2 notification-text"};function OM(n,t,e,r,f,p){const y=rt("v-icon"),b=rt("v-spacer"),h=rt("v-btn"),g=rt("v-sheet"),s=rt("v-slide-y-transition");return Jt(),pr(s,null,{default:Je(()=>[ll(Pe(g,{style:wa(p.toastStyle),class:"toast-notification",onClick:p.expand},{default:Je(()=>[Pe(y,{class:"mr-1 notification-text"},{default:Je(()=>[Gn(Cr(p.toastNotificationIcon),1)]),_:1}),br("div",{class:"toast-content",style:wa(p.contentStyle)},[n.toastNotification.title?(Jt(),Or("span",EM,[n.toastNotification.body||n.toastNotification.message?(Jt(),Or(ul,{key:0},[Gn(Cr(n.toastNotification.title)+": ",1)],64)):(Jt(),Or(ul,{key:1},[Gn(Cr(n.toastNotification.title),1)],64))])):xr("",!0),n.toastNotification.body?(Jt(),Or("span",RM,Cr(n.toastNotification.body),1)):xr("",!0),n.toastNotification.message?(Jt(),Or("span",LM,Cr(n.toastNotification.message),1)):xr("",!0)],4),Pe(b),Pe(h,{variant:"text",class:"notification-text",onClick:Ps(p.hide,["stop"])},{default:Je(()=>t[0]||(t[0]=[Gn(" Dismiss ")])),_:1},8,["onClick"])]),_:1},8,["style","onClick"]),[[cl,n.showToast]])]),_:1})}const NM=qi(IM,[["render",OM],["__scopeId","data-v-84833581"]]);class DM{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=Jc(NM);t.use(ld);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 PM={install(n,t){const e=new DM(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 FM(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 WM(n){ap(`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=hp();if(!e)throw new Error(`[Vuetify] ${n} must be called from inside a setup function`);return e}function BM(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 ad=Symbol.for("vuetify:defaults");function My(){const n=lp(ad);if(!n)throw new Error("[Vuetify] Could not find defaults instance");return n}function zM(n,t){return n.props&&(typeof n.props[t]<"u"||typeof n.props[ja(t)]<"u")}function jM(){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=Zc(()=>{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(zM(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=cp();up(()=>{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=BM(ad,r);dp(ad,Zc(()=>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 WM("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 FM(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}=jM(e,e._as??n.name,f),b=n._setup(p,r);return y(),b}}return n}function HM(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return t=>(n?pc:sp)(t)}const UM=[String,Function,Object,Array],gc=Ty({icon:{type:UM},tag:{type:[String,Object,Function],required:!0}},"icon");HM()({name:"VComponentIcon",props:gc(),setup(n,t){let{slots:e}=t;return()=>{const r=n.icon;return Pe(n.tag,null,{default:()=>{var f;return[n.icon?Pe(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()=>Pe(n.tag,Yc(e,{style:null}),{default:()=>[Pe("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)?Pe("path",{d:r[0],"fill-opacity":r[1]},null):Pe("path",{d:r},null)):Pe("path",{d:n.icon},null)])]})}}),pc({name:"VLigatureIcon",props:gc(),setup(n){return()=>Pe(n.tag,null,{default:()=>[n.icon]})}});const VM=pc({name:"VClassIcon",props:gc(),setup(n){return()=>Pe(n.tag,{class:n.icon},null)}}),qM={component:n=>Ds(VM,{...n,class:"mdi"})},ld=vp({theme:{defaultTheme:"cosmosDark",themes:{cosmosDark:xM}},icons:{defaultSet:"mdi",sets:{mdi:qM,...rM,...iM}}}),cd=kb({createApp:Jc,appOptions:{render(){return Ds(Eb,{})},el:"#openc3-tool"},handleInstance:n=>{n.use(bM),n.use(Sy),n.use(ld),n.use(MM),n.use(PM,{store:Sy})}}),j2=Wn("f",cd.bootstrap),H2=Wn("g",cd.mount),U2=Wn("u",cd.unmount)}}});