openc3-cosmos-tool-dataviewer 6.10.1 → 6.10.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-DQRQ7dPa-abda4fc8ba326f14b522.js → ArrayWidget-CR7Wpw3N-f22a9f699568fce7e606.js} +2 -2
  3. data/tools/dataviewer/{ArrayplotWidget-BeSfz3MR-40051974152b9c2b6aef.js → ArrayplotWidget-DDEd-jRJ-9c80900811dcd2101805.js} +1 -1
  4. data/tools/dataviewer/{BarColumn-BdIaQfOz-6991c29dd57c6f0870b3.js → BarColumn-XWs-3Cwb-e99e5c4e775035141c38.js} +1 -1
  5. data/tools/dataviewer/{BlockWidget-DSFKrUxl-fae4c8de1f4f42e8b197.js → BlockWidget-CfFgdNSv-4027618c79332fe1bbed.js} +2 -2
  6. data/tools/dataviewer/{ButtonWidget-CFbjdxSr-b9685b3cd166307426c7.js → ButtonWidget-BaSvtElA-7ca86b33171b73e96531.js} +2 -2
  7. data/tools/dataviewer/{CanvasWidget-BloYxuKE-f1e76e20de208bca565f.js → CanvasWidget-DcwDi5Zk-20f1bf9e5251c2abc4e8.js} +1 -1
  8. data/tools/dataviewer/{CanvasdotWidget-CZxUOPRd-2fd208be5deee19aab70.js → CanvasdotWidget--awMOWyz-b5a0e760c4a3105d39c9.js} +1 -1
  9. data/tools/dataviewer/{CanvasimageWidget-ULQq3nqZ-b448e3c7b7922e6e50f8.js → CanvasimageWidget-YP1pCtvb-20e62d550c2e88801610.js} +1 -1
  10. data/tools/dataviewer/{CanvasimagevalueWidget-jFCVXYhi-f8d8ff887f1183bbb98c.js → CanvasimagevalueWidget-CjVHb2uj-9923a9bf0030decb0138.js} +1 -1
  11. data/tools/dataviewer/{CanvaslabelWidget-DQhBI1vZ-7ebcbd5766c51531e5bf.js → CanvaslabelWidget-DoMplTTO-3fcbb043c5bc1d995861.js} +1 -1
  12. data/tools/dataviewer/{CanvaslabelvalueWidget-C4REgztL-687046e98a51384e5b26.js → CanvaslabelvalueWidget-Dyo_ogHn-ab82e85a21b2e45a0f36.js} +1 -1
  13. data/tools/dataviewer/{CanvaslineWidget-S4PCEvZM-397c2e2f01a4dd4076e8.js → CanvaslineWidget-D7W1TIxm-2fb910e9815c208e5506.js} +1 -1
  14. data/tools/dataviewer/{CanvaslinevalueWidget-597khOSA-a34855e3e6f93e321e3d.js → CanvaslinevalueWidget-BOZyJuLE-5e87f5927d3283ef8d56.js} +1 -1
  15. data/tools/dataviewer/CheckbuttonWidget-B1E4BC6v-e279ac2164105fe56a19.js +1 -0
  16. data/tools/dataviewer/{ComboboxWidget-BMcHS4g5-6d6fcbaf2aba82f889f9.js → ComboboxWidget-BExUBH57-3db8c3cf070a31029ac2.js} +1 -1
  17. data/tools/dataviewer/{DataViewer-6460ca37c141a368a5f1.js → DataViewer-98ab15c01c75c1840603.js} +14 -14
  18. data/tools/dataviewer/DateWidget-_ZmPsi2l-f95e41e793d6e72a0634.js +1 -0
  19. data/tools/dataviewer/{DetailsDialog-q9piPmHq-9b53f04884e8d5904388.js → DetailsDialog-Bq7SS7bc-6a4a919b3bf68fea6c8c.js} +1 -1
  20. data/tools/dataviewer/{DynamicWidget-DHL7pbgW-377e325200722e51563e.js → DynamicWidget-DHL7pbgW-beea4df4f035f75f59f2.js} +1 -1
  21. data/tools/dataviewer/{FormatvalueWidget-Cm-HmAmw-d1341375536836433f9d.js → FormatvalueWidget-4C0vrL2i-4b1a9047c6b4965c1ea3.js} +1 -1
  22. data/tools/dataviewer/{Graph-BEodMaxQ-a8e88e829d138c4e8111.js → Graph-B7KPo9Ul-e6a5dfb36092e6be1e0e.js} +1 -1
  23. data/tools/dataviewer/{GraphWidget-CAADBFV--f3f5b7ef3ecbef0c4be0.js → GraphWidget-BpkPpAbd-c2a519f382e648a0bdc5.js} +1 -1
  24. data/tools/dataviewer/{HorizontalWidget-NcXIXxh7-eb952afc7683264849ff.js → HorizontalWidget-DbEQYjFC-377ee930457206e14cea.js} +1 -1
  25. data/tools/dataviewer/HorizontalboxWidget-CTomf_Iy-df48292d3f0fc49b2abc.js +1 -0
  26. data/tools/dataviewer/HorizontallineWidget-B7xx7ofY-85615def0a97d89753da.js +1 -0
  27. data/tools/dataviewer/{IframeWidget-BBU3MkSq-7025dbd3128209152f0f.js → IframeWidget-DK7rbULe-2ed1dd67ce5939a0eb95.js} +1 -1
  28. data/tools/dataviewer/{ImageLoader-XAGgjKkq-7fb25d49c5cc9eea3ea2.js → ImageLoader-C9rN_pSY-2faa61c32bb02353c837.js} +1 -1
  29. data/tools/dataviewer/{ImageviewerWidget-UByjeO63-f005337afbce71919abc.js → ImageviewerWidget-6d6Kl3W_-da808b0ac4613595dbce.js} +1 -1
  30. data/tools/dataviewer/{LabelWidget-BsOpolUL-85db0f1b4aa64ff3b527.js → LabelWidget-D71FfOSw-9303f59bb9a129eedc2c.js} +1 -1
  31. data/tools/dataviewer/LabelledWidget-D2ir5kVU-10ff65a6573019711d83.js +1 -0
  32. data/tools/dataviewer/LabelprogressbarWidget-C4_YbROz-52e944a64ee8f9a4927c.js +1 -0
  33. data/tools/dataviewer/LabelsparklineWidget-CdZ_pM2B-96a51c57eec12159befd.js +1 -0
  34. data/tools/dataviewer/LabelvalueWidget-BS0EPY5h-235d12f90777a69b2c70.js +1 -0
  35. data/tools/dataviewer/{LabelvaluedescWidget-Cfu2vuja-7ed170d919a1b2f93517.js → LabelvaluedescWidget-Cpr8_Voq-def66a29c7a30e7733c7.js} +1 -1
  36. data/tools/dataviewer/{LabelvaluelimitsbarWidget-DYV68AJ_-262552fb614adfc47302.js → LabelvaluelimitsbarWidget-DTcYbEQS-e08ae7cbdb4c7360d31c.js} +1 -1
  37. data/tools/dataviewer/LabelvaluelimitscolumnWidget-D0ltQ9Ta-e6ab65ac8cb36f16cffa.js +1 -0
  38. data/tools/dataviewer/{LabelvaluerangebarWidget-3EaUB6E6-bb5a26950c46209e56ff.js → LabelvaluerangebarWidget-O8IHjvHs-3c869b5e2b5a06a06d3f.js} +1 -1
  39. data/tools/dataviewer/Layout-DW5yNlp7-2861f6d4ea9c6a4b67b9.js +1 -0
  40. data/tools/dataviewer/{LedWidget-Gi6GXtrW-4b66b5f91513d8d60af3.js → LedWidget-DUvJ2v8k-6de16c6bc1d6e3e4026f.js} +1 -1
  41. data/tools/dataviewer/{LimitsbarWidget-BTZQY9XQ-cb9ebac54a48bc302075.js → LimitsbarWidget-BehZv0-k-1c2fde94728b8bebb4d9.js} +1 -1
  42. data/tools/dataviewer/{LimitscolorWidget-CFnmvlrA-576d48298c891b3b4958.js → LimitscolorWidget-FXT0ZPPH-4209de2647be14679026.js} +1 -1
  43. data/tools/dataviewer/{LimitscolumnWidget-DSsz36tT-67abb5b67776d894f6fa.js → LimitscolumnWidget-CjBy-CCI-6d50b07a61d830cfa27f.js} +1 -1
  44. data/tools/dataviewer/{LinegraphWidget-CeBijgDo-ff089e4a41c296eb184d.js → LinegraphWidget-lmu_tFKd-f53f03989c0fba3746b2.js} +1 -1
  45. data/tools/dataviewer/{MatrixbycolumnsWidget-DX9uhjAv-2c918b6cb54a7e89bd01.js → MatrixbycolumnsWidget-CCF7rCkV-b679fcfae0792d2c203e.js} +1 -1
  46. data/tools/dataviewer/{ProgressbarWidget-DJepvOip-4cacb377de6981bbd19b.js → ProgressbarWidget-B5WN658S-640507015641954aa9e1.js} +1 -1
  47. data/tools/dataviewer/RadiobuttonWidget-B_3nys46-3bb03c5539a9b885603d.js +1 -0
  48. data/tools/dataviewer/{RadiogroupWidget-CUucj6aT-638aaf431c1dc3d53d4b.js → RadiogroupWidget-BiMIL9li-254845e6475ca6c9b3ed.js} +1 -1
  49. data/tools/dataviewer/{RangebarWidget-Bu4rqlrx-4669a1151305d1211129.js → RangebarWidget-Dn0GASdi-bd574c1a1418f8bb9586.js} +1 -1
  50. data/tools/dataviewer/{RollupWidget-ByLvEEau-9e7afd6e0737c84992d5.js → RollupWidget-b62qcG5K-3d29dc713583407904af.js} +1 -1
  51. data/tools/dataviewer/ScrollwindowWidget-Dn29gs-U-681e7c543c7b20963688.js +1 -0
  52. data/tools/dataviewer/{SignalWidget-qvL2YZJA-a2d0554f47e466ec0901.js → SignalWidget-CLi6qask-9cdf28f65bdbce6e9aeb.js} +1 -1
  53. data/tools/dataviewer/SpacerWidget-BCA3gdap-d335e55339d18ef8833b.js +1 -0
  54. data/tools/dataviewer/SparklineWidget-D8mb4zLt-ecdbe9d7db8bed037652.js +1 -0
  55. data/tools/dataviewer/TabbookWidget-Bkt4g02d-084d4a4f04d02c17a315.js +1 -0
  56. data/tools/dataviewer/{TargetPacketItemChooser-oSQHf8Ht-9ead693a7c381fa94c97.js → TargetPacketItemChooser-DGcXvdTX-e06bdf457f4cfbcef025.js} +1 -1
  57. data/tools/dataviewer/{TextboxWidget-DbwpPVGB-3cf46631271b6e327aa9.js → TextboxWidget-CR05wO-t-2868c23d70d9a454747e.js} +1 -1
  58. data/tools/dataviewer/{TextfieldWidget-DzMlTMYW-94bbcc4b43f6b088c84c.js → TextfieldWidget-Be_Pz2bF-65c09a4f60f8583018bf.js} +1 -1
  59. data/tools/dataviewer/{TimeWidget-BHybAfg8-667276e2a3a7acccbf9b.js → TimeWidget-Dy8zpkC6-f42ce3743b50f7b530ac.js} +1 -1
  60. data/tools/dataviewer/TitleWidget-BcmxUDzM-3fb3450c0c16acecb759.js +1 -0
  61. data/tools/dataviewer/{VWidget-D06LY-Yc-627f8a4984d2527a01d7.js → VWidget-CBmUpKSV-18122395eed9d679711d.js} +1 -1
  62. data/tools/dataviewer/{ValueWidget-CGT0LV_n-783c3fda6f8d1b0f8fb8.js → ValueWidget-BxWrHkYY-6ac5e4962179f2b8423b.js} +1 -1
  63. data/tools/dataviewer/ValuelimitsbarWidget-BdY02gqc-51bd59a383a8796666e4.js +1 -0
  64. data/tools/dataviewer/{ValuelimitscolumnWidget-jzxrQd-f-3ef02fccbcb5906bc34d.js → ValuelimitscolumnWidget-CuJ6rqtC-e042bcc801e84a2e2d58.js} +1 -1
  65. data/tools/dataviewer/{ValuerangebarWidget-C8ckuAeh-8b3ce5b90b8b7d9fc4f9.js → ValuerangebarWidget-C5rolGDi-6b9ef70160d9daf7f2c0.js} +1 -1
  66. data/tools/dataviewer/VerticalWidget-DsnEzKZ2-1cf387f8d7ea19ea27d5.js +1 -0
  67. data/tools/dataviewer/VerticalboxWidget-CzDgveBl-2c0f2bcec26ea8ee588c.js +1 -0
  68. data/tools/dataviewer/{Widget-DXvVFSH5-6b49a1d0d4d148541b82.js → Widget-VCl8Ts8s-95e69fd0fd473e355dd5.js} +1 -1
  69. data/tools/dataviewer/{main-bed55fa6feb2e3a26c17.js → main-1fe40fca73a5c0308021.js} +35 -35
  70. data/tools/dataviewer/main.js +1 -1
  71. metadata +69 -69
  72. data/tools/dataviewer/CheckbuttonWidget-BcblKat3-42d8988caff40903d0c8.js +0 -1
  73. data/tools/dataviewer/DateWidget-BpnMzSBn-ef53c67768c6083c6859.js +0 -1
  74. data/tools/dataviewer/HorizontalboxWidget-CW9XX4uH-e996df56a14a3bde4e91.js +0 -1
  75. data/tools/dataviewer/HorizontallineWidget-Cu2dDt7k-6281aa7b5de62e41bb00.js +0 -1
  76. data/tools/dataviewer/LabelledWidget-DVOGpgZ--51e71a070c573ad89a86.js +0 -1
  77. data/tools/dataviewer/LabelprogressbarWidget-BeE9fDs6-1bd3d4b34a3a6e14dce3.js +0 -1
  78. data/tools/dataviewer/LabelsparklineWidget-Bj7trKML-89434219b4c405b53a85.js +0 -1
  79. data/tools/dataviewer/LabelvalueWidget-Dwqsh5o2-4ba71daae0711c0e0dc1.js +0 -1
  80. data/tools/dataviewer/LabelvaluelimitscolumnWidget-CtaoTixt-6b8ba121153a42deb6ba.js +0 -1
  81. data/tools/dataviewer/Layout-DNR3xnku-33a889f1894d85493477.js +0 -1
  82. data/tools/dataviewer/RadiobuttonWidget-4e8ROIfg-ac038f08ba7cf73671f7.js +0 -1
  83. data/tools/dataviewer/ScrollwindowWidget-CXJ9QGN1-2915ed31dd6bac858705.js +0 -1
  84. data/tools/dataviewer/SpacerWidget-CaWx41K7-8047fa11f84bbc8a0f9a.js +0 -1
  85. data/tools/dataviewer/SparklineWidget-BkNSRypJ-8215633a3e70b791ab50.js +0 -1
  86. data/tools/dataviewer/TabbookWidget-MsrRG1vn-4a3ea445828f034600ce.js +0 -1
  87. data/tools/dataviewer/TitleWidget-DL_sE5YE-9167c8baf213f53b750d.js +0 -1
  88. data/tools/dataviewer/ValuelimitsbarWidget-CmpyPO-1-52d7cfe2d50354b9eb47.js +0 -1
  89. data/tools/dataviewer/VerticalWidget-qN82km_m-26a108a8f84c8ef173ac.js +0 -1
  90. data/tools/dataviewer/VerticalboxWidget-CiJZDlHJ-8a7c31a0c7b34be767bf.js +0 -1
@@ -1,4 +1,4 @@
1
- System.register(["vue","vue-router","single-spa","vuex","vuetify"],function(er,ot){"use strict";var ht,xi,pn,pt,Ve,Hr,tr,_p,$p,Tr,Ni,hu,du,Xs,Ra,Sl,ii,_l,Zs,$l,Tl,Tp,Mp,Ip,pu,Ep,Rp,Lp,Op,fu,Np,Dp,gu,Pp,Fp;return{setters:[Mt=>{ht=Mt.resolveComponent,xi=Mt.createBlock,pn=Mt.openBlock,pt=Mt.withCtx,Ve=Mt.createVNode,Hr=Mt.createElementBlock,tr=Mt.createElementVNode,_p=Mt.useCssVars,$p=Mt.defineAsyncComponent,Tr=Mt.createTextVNode,Ni=Mt.createCommentVNode,hu=Mt.mergeProps,du=Mt.normalizeClass,Xs=Mt.h,Ra=Mt.normalizeStyle,Sl=Mt.Fragment,ii=Mt.toDisplayString,_l=Mt.withKeys,Zs=Mt.withModifiers,$l=Mt.withDirectives,Tl=Mt.vShow,Tp=Mt.defineComponent,Mp=Mt.warn,Ip=Mt.inject,pu=Mt.computed,Ep=Mt.shallowRef,Rp=Mt.watchEffect,Lp=Mt.getCurrentInstance,Op=Mt.provide,fu=Mt.createApp},Mt=>{Np=Mt.createRouter,Dp=Mt.createWebHistory},Mt=>{gu=Mt.getMountedApps},Mt=>{Pp=Mt.createStore},Mt=>{Fp=Mt.createVuetify}],execute:function(){er({$:qp,c:$M,f:Or,l:_n,y:nr,z:vd});var Mt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Wp(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 ms(n){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?Wp(Object(e),!0).forEach(function(r){sw(n,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):Wp(Object(e)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(e,r))})}return n}function sw(n,t,e){return(t=function(r){var f=function(g,m){if(vs(g)!=="object"||g===null)return g;var w=g[Symbol.toPrimitive];if(w!==void 0){var h=w.call(g,m);if(vs(h)!=="object")return h;throw new TypeError("@@toPrimitive must return a primitive value.")}return(m==="string"?String:Number)(g)}(r,"string");return vs(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 vs(n){return vs=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},vs(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),g=f.length,m=-1,w="",h=f.charCodeAt(0);++m<g;)(r=f.charCodeAt(m))!=0?w+=r>=1&&r<=31||r==127||m==0&&r>=48&&r<=57||m==1&&r>=48&&r<=57&&h==45?"\\"+r.toString(16)+" ":m==0&&g==1&&r==45||!(r>=128||r==45||r==95||r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122)?"\\"+f.charAt(m):f.charAt(m):w+="�";return w};n.CSS||(n.CSS={}),n.CSS.escape=t})(Mt);var aw={appOptions:null,template:null,Vue:null,createApp:null,handleInstance:null};function lw(n){if(vs(n)!=="object")throw new Error("single-spa-vue requires a configuration object");var t=ms(ms({},aw),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(vs(t.appOptions.el)));t.createApp=t.createApp||t.Vue&&t.Vue.createApp;var e={};return{bootstrap:cw.bind(null,t,e),mount:uw.bind(null,t,e),unmount:dw.bind(null,t,e),update:hw.bind(null,t,e)}}function cw(n){return n.loadRootComponent?n.loadRootComponent().then(function(t){return n.rootComponent=t}):Promise.resolve()}function uw(n,t,e){var r={};return Promise.resolve().then(function(){return function(f,g){return typeof f.appOptions=="function"?f.appOptions(g):Promise.resolve(ms({},f.appOptions))}(n,e).then(function(f){var g;if(e.domElement&&!f.el&&(f.el=e.domElement),f.el)if(typeof f.el=="string"){if(!(g=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(g=f.el).id||(g.id="single-spa-application:".concat(e.name)),f.el="#".concat(CSS.escape(g.id));else{var m="single-spa-application:".concat(e.name);f.el="#".concat(CSS.escape(m)),(g=document.getElementById(m))||((g=document.createElement("div")).id=m,document.body.appendChild(g))}if(!n.replaceMode&&(f.el=f.el+" .single-spa-container",!g.querySelector(".single-spa-container"))){var w=document.createElement("div");w.className="single-spa-container",g.appendChild(w)}r.domEl=g,f.render||f.template||!n.rootComponent||(f.render=function(d){return d(n.rootComponent)}),f.data||(f.data={});var h=f.data;if(f.data=function(){return ms(ms({},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 hw(n,t,e){return Promise.resolve().then(function(){var r=t[e.name],f=ms(ms({},n.appOptions.data||{}),e),g=r.root||r.vueInstance;for(var m in f)g[m]=f[m]})}function dw(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 pw=er("_",(n,t)=>{const e=n.__vccOpts||n;for(const[r,f]of t)e[r]=f;return e}),fw={};function gw(n,t){const e=ht("router-view"),r=ht("v-app");return pn(),xi(r,{id:"innerapp"},{default:pt(()=>[Ve(e)]),_:1})}const mw=pw(fw,[["render",gw]]),eD="modulepreload",tD=function(n){return"/"+n},nD={},st=function(t,e,r){let f=Promise.resolve();function g(m){const w=new Event("vite:preloadError",{cancelable:!0});if(w.payload=m,window.dispatchEvent(w),!w.defaultPrevented)throw m}return f.then(m=>{for(const w of m||[])w.status==="rejected"&&g(w.reason);return t().catch(g)})},Bp=function(n){var t;!n.name!=="NotFound"&&(n.path=`/tools/dataviewer/${n.path.replace(/^\//,"")}`),(t=n.children)==null||t.forEach(Bp)},So=er("d",(n,t)=>{const e=n.__vccOpts||n;for(const[r,f]of t)e[r]=f;return e}),vw="/icons/customIcons.svg",mu={props:{icon:{type:String},size:{type:String,default:"small"},color:{type:String,default:"white"}},computed:{iconSrc:function(){return vw+"#"+this.icon}}},zp=()=>{_p(n=>({v259824e2:n.color}))},Hp=mu.setup;mu.setup=Hp?(n,t)=>(zp(),Hp(n,t)):zp;const yw={class:"cosmos-custom-icon"},bw={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",preserveAspectRatio:"xMidYMid meet",focusable:"false"},ww=["href"];function xw(n,t,e,r,f,g){return pn(),Hr("span",yw,[(pn(),Hr("svg",bw,[tr("use",{href:g.iconSrc},null,8,ww)]))])}const Cw=So(mu,[["render",xw],["__scopeId","data-v-4b6f1199"]]),Ml=6e4,vu=36e5,kw=1e3,jp=Symbol.for("constructDateFrom");function nr(n,t){return typeof n=="function"?n(t):n&&typeof n=="object"&&jp in n?n[jp](t):n instanceof Date?new n.constructor(t):new Date(t)}function _n(n,t){return nr(t||n,n)}let Aw={};function Qs(){return Aw}function Ko(n,t){var e,r,f,g;const m=Qs(),w=(t==null?void 0:t.weekStartsOn)??((r=(e=t==null?void 0:t.locale)==null?void 0:e.options)==null?void 0:r.weekStartsOn)??m.weekStartsOn??((g=(f=m.locale)==null?void 0:f.options)==null?void 0:g.weekStartsOn)??0,h=_n(n,t==null?void 0:t.in),d=h.getDay(),a=(d<w?7:0)+d-w;return h.setDate(h.getDate()-a),h.setHours(0,0,0,0),h}function Js(n,t){return Ko(n,{...t,weekStartsOn:1})}function Up(n,t){const e=_n(n,void 0),r=e.getFullYear(),f=nr(e,0);f.setFullYear(r+1,0,4),f.setHours(0,0,0,0);const g=Js(f),m=nr(e,0);m.setFullYear(r,0,4),m.setHours(0,0,0,0);const w=Js(m);return e.getTime()>=g.getTime()?r+1:e.getTime()>=w.getTime()?r:r-1}function Il(n){const t=_n(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 Sw(n,...t){const e=nr.bind(null,t.find(r=>typeof r=="object"));return t.map(e)}function Vp(n,t){const e=_n(n,void 0);return e.setHours(0,0,0,0),e}function _w(n,t,e){const[r,f]=Sw(void 0,n,t),g=Vp(r),m=Vp(f),w=+g-Il(g),h=+m-Il(m);return Math.round((w-h)/864e5)}function $w(n,t){const e=Up(n),r=nr(n,0);return r.setFullYear(e,0,4),r.setHours(0,0,0,0),Js(r)}function Tw(n){return n instanceof Date||typeof n=="object"&&Object.prototype.toString.call(n)==="[object Date]"}function qp(n){return!(!Tw(n)&&typeof n!="number"||isNaN(+_n(n)))}function Mw(n,t){const e=_n(n,void 0);return e.setFullYear(e.getFullYear(),0,1),e.setHours(0,0,0,0),e}const Iw={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"}},Ew=(n,t,e)=>{let r;const f=Iw[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 yu(n){return(t={})=>{const e=t.width?String(t.width):n.defaultWidth;return n.formats[e]||n.formats[n.defaultWidth]}}const Rw={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Lw={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Ow={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Nw={date:yu({formats:Rw,defaultWidth:"full"}),time:yu({formats:Lw,defaultWidth:"full"}),dateTime:yu({formats:Ow,defaultWidth:"full"})},Dw={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Pw=(n,t,e,r)=>Dw[n];function La(n){return(t,e)=>{const r=e!=null&&e.context?String(e.context):"standalone";let f;if(r==="formatting"&&n.formattingValues){const m=n.defaultFormattingWidth||n.defaultWidth,w=e!=null&&e.width?String(e.width):m;f=n.formattingValues[w]||n.formattingValues[m]}else{const m=n.defaultWidth,w=e!=null&&e.width?String(e.width):n.defaultWidth;f=n.values[w]||n.values[m]}const g=n.argumentCallback?n.argumentCallback(t):t;return f[g]}}const Fw={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Ww={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Bw={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"]},zw={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"]},Hw={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"}},jw={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"}},Uw=(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"},Vw={ordinalNumber:Uw,era:La({values:Fw,defaultWidth:"wide"}),quarter:La({values:Ww,defaultWidth:"wide",argumentCallback:n=>n-1}),month:La({values:Bw,defaultWidth:"wide"}),day:La({values:zw,defaultWidth:"wide"}),dayPeriod:La({values:Hw,defaultWidth:"wide",formattingValues:jw,defaultFormattingWidth:"wide"})};function Oa(n){return(t,e={})=>{const r=e.width,f=r&&n.matchPatterns[r]||n.matchPatterns[n.defaultMatchWidth],g=t.match(f);if(!g)return null;const m=g[0],w=r&&n.parsePatterns[r]||n.parsePatterns[n.defaultParseWidth],h=Array.isArray(w)?Kw(w,l=>l.test(m)):qw(w,l=>l.test(m));let d;d=n.valueCallback?n.valueCallback(h):h,d=e.valueCallback?e.valueCallback(d):d;const a=t.slice(m.length);return{value:d,rest:a}}}function qw(n,t){for(const e in n)if(Object.prototype.hasOwnProperty.call(n,e)&&t(n[e]))return e}function Kw(n,t){for(let e=0;e<n.length;e++)if(t(n[e]))return e}function Gw(n){return(t,e={})=>{const r=t.match(n.matchPattern);if(!r)return null;const f=r[0],g=t.match(n.parsePattern);if(!g)return null;let m=n.valueCallback?n.valueCallback(g[0]):g[0];m=e.valueCallback?e.valueCallback(m):m;const w=t.slice(f.length);return{value:m,rest:w}}}const Yw=/^(\d+)(th|st|nd|rd)?/i,Xw=/\d+/i,Zw={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},Qw={any:[/^b/i,/^(a|c)/i]},Jw={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},ex={any:[/1/i,/2/i,/3/i,/4/i]},tx={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},nx={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]},rx={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},ix={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]},ox={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},sx={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}},ax={ordinalNumber:Gw({matchPattern:Yw,parsePattern:Xw,valueCallback:n=>parseInt(n,10)}),era:Oa({matchPatterns:Zw,defaultMatchWidth:"wide",parsePatterns:Qw,defaultParseWidth:"any"}),quarter:Oa({matchPatterns:Jw,defaultMatchWidth:"wide",parsePatterns:ex,defaultParseWidth:"any",valueCallback:n=>n+1}),month:Oa({matchPatterns:tx,defaultMatchWidth:"wide",parsePatterns:nx,defaultParseWidth:"any"}),day:Oa({matchPatterns:rx,defaultMatchWidth:"wide",parsePatterns:ix,defaultParseWidth:"any"}),dayPeriod:Oa({matchPatterns:ox,defaultMatchWidth:"any",parsePatterns:sx,defaultParseWidth:"any"})},Kp={code:"en-US",formatDistance:Ew,formatLong:Nw,formatRelative:Pw,localize:Vw,match:ax,options:{weekStartsOn:0,firstWeekContainsDate:1}};function lx(n,t){const e=_n(n,void 0);return _w(e,Mw(e))+1}function Gp(n,t){const e=_n(n,void 0),r=+Js(e)-+$w(e);return Math.round(r/6048e5)+1}function bu(n,t){var e,r,f,g;const m=_n(n,t==null?void 0:t.in),w=m.getFullYear(),h=Qs(),d=(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??((g=(f=h.locale)==null?void 0:f.options)==null?void 0:g.firstWeekContainsDate)??1,a=nr((t==null?void 0:t.in)||n,0);a.setFullYear(w+1,0,d),a.setHours(0,0,0,0);const l=Ko(a,t),u=nr((t==null?void 0:t.in)||n,0);u.setFullYear(w,0,d),u.setHours(0,0,0,0);const c=Ko(u,t);return+m>=+l?w+1:+m>=+c?w:w-1}function cx(n,t){var e,r,f,g;const m=Qs(),w=(t==null?void 0:t.firstWeekContainsDate)??((r=(e=t==null?void 0:t.locale)==null?void 0:e.options)==null?void 0:r.firstWeekContainsDate)??m.firstWeekContainsDate??((g=(f=m.locale)==null?void 0:f.options)==null?void 0:g.firstWeekContainsDate)??1,h=bu(n,t),d=nr((t==null?void 0:t.in)||n,0);return d.setFullYear(h,0,w),d.setHours(0,0,0,0),Ko(d,t)}function Yp(n,t){const e=_n(n,t==null?void 0:t.in),r=+Ko(e,t)-+cx(e,t);return Math.round(r/6048e5)+1}function an(n,t){const e=n<0?"-":"",r=Math.abs(n).toString().padStart(t,"0");return e+r}const Go={y(n,t){const e=n.getFullYear(),r=e>0?e:1-e;return an(t==="yy"?r%100:r,t.length)},M(n,t){const e=n.getMonth();return t==="M"?String(e+1):an(e+1,2)},d(n,t){return an(n.getDate(),t.length)},a(n,t){const e=n.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return e.toUpperCase();case"aaa":return e;case"aaaaa":return e[0];case"aaaa":default:return e==="am"?"a.m.":"p.m."}},h(n,t){return an(n.getHours()%12||12,t.length)},H(n,t){return an(n.getHours(),t.length)},m(n,t){return an(n.getMinutes(),t.length)},s(n,t){return an(n.getSeconds(),t.length)},S(n,t){const e=t.length,r=n.getMilliseconds(),f=Math.trunc(r*Math.pow(10,e-3));return an(f,t.length)}},ea={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Xp={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 Go.y(n,t)},Y:function(n,t,e,r){const f=bu(n,r),g=f>0?f:1-f;if(t==="YY"){const m=g%100;return an(m,2)}return t==="Yo"?e.ordinalNumber(g,{unit:"year"}):an(g,t.length)},R:function(n,t){const e=Up(n);return an(e,t.length)},u:function(n,t){const e=n.getFullYear();return an(e,t.length)},Q:function(n,t,e){const r=Math.ceil((n.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return an(r,2);case"Qo":return e.ordinalNumber(r,{unit:"quarter"});case"QQQ":return e.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return e.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return e.quarter(r,{width:"wide",context:"formatting"})}},q:function(n,t,e){const r=Math.ceil((n.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return an(r,2);case"qo":return e.ordinalNumber(r,{unit:"quarter"});case"qqq":return e.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return e.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return e.quarter(r,{width:"wide",context:"standalone"})}},M:function(n,t,e){const r=n.getMonth();switch(t){case"M":case"MM":return Go.M(n,t);case"Mo":return e.ordinalNumber(r+1,{unit:"month"});case"MMM":return e.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return e.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return e.month(r,{width:"wide",context:"formatting"})}},L:function(n,t,e){const r=n.getMonth();switch(t){case"L":return String(r+1);case"LL":return an(r+1,2);case"Lo":return e.ordinalNumber(r+1,{unit:"month"});case"LLL":return e.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return e.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return e.month(r,{width:"wide",context:"standalone"})}},w:function(n,t,e,r){const f=Yp(n,r);return t==="wo"?e.ordinalNumber(f,{unit:"week"}):an(f,t.length)},I:function(n,t,e){const r=Gp(n);return t==="Io"?e.ordinalNumber(r,{unit:"week"}):an(r,t.length)},d:function(n,t,e){return t==="do"?e.ordinalNumber(n.getDate(),{unit:"date"}):Go.d(n,t)},D:function(n,t,e){const r=lx(n);return t==="Do"?e.ordinalNumber(r,{unit:"dayOfYear"}):an(r,t.length)},E:function(n,t,e){const r=n.getDay();switch(t){case"E":case"EE":case"EEE":return e.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return e.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return e.day(r,{width:"short",context:"formatting"});case"EEEE":default:return e.day(r,{width:"wide",context:"formatting"})}},e:function(n,t,e,r){const f=n.getDay(),g=(f-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(g);case"ee":return an(g,2);case"eo":return e.ordinalNumber(g,{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(),g=(f-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(g);case"cc":return an(g,t.length);case"co":return e.ordinalNumber(g,{unit:"day"});case"ccc":return e.day(f,{width:"abbreviated",context:"standalone"});case"ccccc":return e.day(f,{width:"narrow",context:"standalone"});case"cccccc":return e.day(f,{width:"short",context:"standalone"});case"cccc":default:return e.day(f,{width:"wide",context:"standalone"})}},i:function(n,t,e){const r=n.getDay(),f=r===0?7:r;switch(t){case"i":return String(f);case"ii":return an(f,t.length);case"io":return e.ordinalNumber(f,{unit:"day"});case"iii":return e.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return e.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return e.day(r,{width:"short",context:"formatting"});case"iiii":default:return e.day(r,{width:"wide",context:"formatting"})}},a:function(n,t,e){const r=n.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return e.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return e.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(n,t,e){const r=n.getHours();let f;switch(r===12?f=ea.noon:r===0?f=ea.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=ea.evening:r>=12?f=ea.afternoon:r>=4?f=ea.morning:f=ea.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 Go.h(n,t)},H:function(n,t,e){return t==="Ho"?e.ordinalNumber(n.getHours(),{unit:"hour"}):Go.H(n,t)},K:function(n,t,e){const r=n.getHours()%12;return t==="Ko"?e.ordinalNumber(r,{unit:"hour"}):an(r,t.length)},k:function(n,t,e){let r=n.getHours();return r===0&&(r=24),t==="ko"?e.ordinalNumber(r,{unit:"hour"}):an(r,t.length)},m:function(n,t,e){return t==="mo"?e.ordinalNumber(n.getMinutes(),{unit:"minute"}):Go.m(n,t)},s:function(n,t,e){return t==="so"?e.ordinalNumber(n.getSeconds(),{unit:"second"}):Go.s(n,t)},S:function(n,t){return Go.S(n,t)},X:function(n,t,e){const r=n.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return Qp(r);case"XXXX":case"XX":return ys(r);case"XXXXX":case"XXX":default:return ys(r,":")}},x:function(n,t,e){const r=n.getTimezoneOffset();switch(t){case"x":return Qp(r);case"xxxx":case"xx":return ys(r);case"xxxxx":case"xxx":default:return ys(r,":")}},O:function(n,t,e){const r=n.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Zp(r,":");case"OOOO":default:return"GMT"+ys(r,":")}},z:function(n,t,e){const r=n.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Zp(r,":");case"zzzz":default:return"GMT"+ys(r,":")}},t:function(n,t,e){const r=Math.trunc(+n/1e3);return an(r,t.length)},T:function(n,t,e){return an(+n,t.length)}};function Zp(n,t=""){const e=n>0?"-":"+",r=Math.abs(n),f=Math.trunc(r/60),g=r%60;return g===0?e+String(f):e+String(f)+t+an(g,2)}function Qp(n,t){return n%60===0?(n>0?"-":"+")+an(Math.abs(n)/60,2):ys(n,t)}function ys(n,t=""){const e=n>0?"-":"+",r=Math.abs(n),f=an(Math.trunc(r/60),2),g=an(r%60,2);return e+f+t+g}const Jp=(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"})}},ef=(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"})}},ux=(n,t)=>{const e=n.match(/(P+)(p+)?/)||[],r=e[1],f=e[2];if(!f)return Jp(n,t);let g;switch(r){case"P":g=t.dateTime({width:"short"});break;case"PP":g=t.dateTime({width:"medium"});break;case"PPP":g=t.dateTime({width:"long"});break;case"PPPP":default:g=t.dateTime({width:"full"});break}return g.replace("{{date}}",Jp(r,t)).replace("{{time}}",ef(f,t))},wu={p:ef,P:ux},hx=/^D+$/,dx=/^Y+$/,px=["D","DD","YY","YYYY"];function tf(n){return hx.test(n)}function nf(n){return dx.test(n)}function xu(n,t,e){const r=fx(n,t,e);if(console.warn(r),px.includes(n))throw new RangeError(r)}function fx(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 gx=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,mx=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,vx=/^'([^]*?)'?$/,yx=/''/g,bx=/[a-zA-Z]/;function Yo(n,t,e){var r,f,g,m,w,h,d,a;const l=Qs(),u=(e==null?void 0:e.locale)??l.locale??Kp,c=(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??((m=(g=l.locale)==null?void 0:g.options)==null?void 0:m.firstWeekContainsDate)??1,i=(e==null?void 0:e.weekStartsOn)??((h=(w=e==null?void 0:e.locale)==null?void 0:w.options)==null?void 0:h.weekStartsOn)??l.weekStartsOn??((a=(d=l.locale)==null?void 0:d.options)==null?void 0:a.weekStartsOn)??0,s=_n(n,e==null?void 0:e.in);if(!qp(s))throw new RangeError("Invalid time value");let p=t.match(mx).map(x=>{const I=x[0];if(I==="p"||I==="P"){const _=wu[I];return _(x,u.formatLong)}return x}).join("").match(gx).map(x=>{if(x==="''")return{isToken:!1,value:"'"};const I=x[0];if(I==="'")return{isToken:!1,value:wx(x)};if(Xp[I])return{isToken:!0,value:x};if(I.match(bx))throw new RangeError("Format string contains an unescaped latin alphabet character `"+I+"`");return{isToken:!1,value:x}});u.localize.preprocessor&&(p=u.localize.preprocessor(s,p));const b={firstWeekContainsDate:c,weekStartsOn:i,locale:u};return p.map(x=>{if(!x.isToken)return x.value;const I=x.value;(!(e!=null&&e.useAdditionalWeekYearTokens)&&nf(I)||!(e!=null&&e.useAdditionalDayOfYearTokens)&&tf(I))&&xu(I,t,String(n));const _=Xp[I[0]];return _(s,I,u.localize,b)}).join("")}function wx(n){const t=n.match(vx);return t?t[1].replace(yx,"'"):n}var Xo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function El(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var rf={exports:{}},of;function xx(){return of||(of=1,function(n,t){(function(){var e="ace",r=function(){return this}();!r&&typeof window<"u"&&(r=window);var f=function(a,l,u){if(typeof a!="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[a]||(f.payloads[a]=u,f.modules[a]=null)};f.modules={},f.payloads={};var g=function(a,l,u){if(typeof l=="string"){var c=h(a,l);if(c!=null)return u&&u(),c}else if(Object.prototype.toString.call(l)==="[object Array]"){for(var i=[],s=0,p=l.length;s<p;++s){var b=h(a,l[s]);if(b==null&&m.original)return;i.push(b)}return u&&u.apply(null,i)||!0}},m=function(a,l){var u=g("",a,l);return u==null&&m.original?m.original.apply(this,arguments):u},w=function(a,l){if(l.indexOf("!")!==-1){var u=l.split("!");return w(a,u[0])+"!"+w(a,u[1])}if(l.charAt(0)=="."){var c=a.split("/").slice(0,-1).join("/");for(l=c+"/"+l;l.indexOf(".")!==-1&&i!=l;){var i=l;l=l.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return l},h=function(a,l){l=w(a,l);var u=f.modules[l];if(!u){if(u=f.payloads[l],typeof u=="function"){var c={},i={id:l,uri:"",exports:c,packaged:!0},s=function(b,x){return g(l,b,x)},p=u(s,c,i);c=p||i.exports,f.modules[l]=c,delete f.payloads[l]}u=f.modules[l]=c||u}return u};function d(a){var l=r;r[a]||(r[a]={}),l=r[a],(!l.define||!l.define.packaged)&&(f.original=l.define,l.define=f,l.define.packaged=!0),(!l.require||!l.require.packaged)&&(m.original=l.require,l.require=m,l.require.packaged=!0)}d(e)})(),ace.define("ace/lib/es6-shim",["require","exports","module"],function(e,r,f){function g(m,w,h){Object.defineProperty(m,w,{value:h,enumerable:!1,writable:!0,configurable:!0})}String.prototype.startsWith||g(String.prototype,"startsWith",function(m,w){return w=w||0,this.lastIndexOf(m,w)===w}),String.prototype.endsWith||g(String.prototype,"endsWith",function(m,w){var h=this;(w===void 0||w>h.length)&&(w=h.length),w-=m.length;var d=h.indexOf(m,w);return d!==-1&&d===w}),String.prototype.repeat||g(String.prototype,"repeat",function(m){for(var w="",h=this;m>0;)m&1&&(w+=h),(m>>=1)&&(h+=h);return w}),String.prototype.includes||g(String.prototype,"includes",function(m,w){return this.indexOf(m,w)!=-1}),Object.assign||(Object.assign=function(m){if(m==null)throw new TypeError("Cannot convert undefined or null to object");for(var w=Object(m),h=1;h<arguments.length;h++){var d=arguments[h];d!=null&&Object.keys(d).forEach(function(a){w[a]=d[a]})}return w}),Object.values||(Object.values=function(m){return Object.keys(m).map(function(w){return m[w]})}),Array.prototype.find||g(Array.prototype,"find",function(m){for(var w=this.length,h=arguments[1],d=0;d<w;d++){var a=this[d];if(m.call(h,a,d,this))return a}}),Array.prototype.findIndex||g(Array.prototype,"findIndex",function(m){for(var w=this.length,h=arguments[1],d=0;d<w;d++){var a=this[d];if(m.call(h,a,d,this))return d}}),Array.prototype.includes||g(Array.prototype,"includes",function(m,w){return this.indexOf(m,w)!=-1}),Array.prototype.fill||g(Array.prototype,"fill",function(m){for(var w=this,h=w.length>>>0,d=arguments[1],a=d>>0,l=a<0?Math.max(h+a,0):Math.min(a,h),u=arguments[2],c=u===void 0?h:u>>0,i=c<0?Math.max(h+c,0):Math.min(c,h);l<i;)w[l]=m,l++;return w}),Array.of||g(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 g(m){if(typeof m!="object"||!m)return m;var w;if(Array.isArray(m)){w=[];for(var h=0;h<m.length;h++)w[h]=g(m[h]);return w}if(Object.prototype.toString.call(m)!=="[object Object]")return m;w={};for(var h in m)w[h]=g(m[h]);return w}}),ace.define("ace/lib/lang",["require","exports","module","ace/lib/deep_copy"],function(e,r,f){r.last=function(w){return w[w.length-1]},r.stringReverse=function(w){return w.split("").reverse().join("")},r.stringRepeat=function(w,h){for(var d="";h>0;)h&1&&(d+=w),(h>>=1)&&(w+=w);return d};var g=/^\s\s*/,m=/\s\s*$/;r.stringTrimLeft=function(w){return w.replace(g,"")},r.stringTrimRight=function(w){return w.replace(m,"")},r.copyObject=function(w){var h={};for(var d in w)h[d]=w[d];return h},r.copyArray=function(w){for(var h=[],d=0,a=w.length;d<a;d++)w[d]&&typeof w[d]=="object"?h[d]=this.copyObject(w[d]):h[d]=w[d];return h},r.deepCopy=e("./deep_copy").deepCopy,r.arrayToMap=function(w){for(var h={},d=0;d<w.length;d++)h[w[d]]=1;return h},r.createMap=function(w){var h=Object.create(null);for(var d in w)h[d]=w[d];return h},r.arrayRemove=function(w,h){for(var d=0;d<=w.length;d++)h===w[d]&&w.splice(d,1)},r.escapeRegExp=function(w){return w.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},r.escapeHTML=function(w){return(""+w).replace(/&/g,"&#38;").replace(/"/g,"&#34;").replace(/'/g,"&#39;").replace(/</g,"&#60;")},r.getMatchOffsets=function(w,h){var d=[];return w.replace(h,function(a){d.push({offset:arguments[arguments.length-2],length:a.length})}),d},r.deferredCall=function(w){var h=null,d=function(){h=null,w()},a=function(l){return a.cancel(),h=setTimeout(d,l||0),a};return a.schedule=a,a.call=function(){return this.cancel(),w(),a},a.cancel=function(){return clearTimeout(h),h=null,a},a.isPending=function(){return h},a},r.delayedCall=function(w,h){var d=null,a=function(){d=null,w()},l=function(u){d==null&&(d=setTimeout(a,u||h))};return l.delay=function(u){d&&clearTimeout(d),d=setTimeout(a,u||h)},l.schedule=l,l.call=function(){this.cancel(),w()},l.cancel=function(){d&&clearTimeout(d),d=null},l.isPending=function(){return d},l},r.supportsLookbehind=function(){try{new RegExp("(?<=.)")}catch{return!1}return!0},r.skipEmptyMatch=function(w,h,d){return d&&w.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 g=typeof navigator=="object"?navigator:{},m=(/mac|win|linux/i.exec(g.platform)||["other"])[0].toLowerCase(),w=g.userAgent||"",h=g.appName||"";r.isWin=m=="win",r.isMac=m=="mac",r.isLinux=m=="linux",r.isIE=h=="Microsoft Internet Explorer"||h.indexOf("MSAppHost")>=0?parseFloat((w.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((w.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),r.isOldIE=r.isIE&&r.isIE<9,r.isGecko=r.isMozilla=w.match(/ Gecko\/\d+/),r.isOpera=typeof opera=="object"&&Object.prototype.toString.call(window.opera)=="[object Opera]",r.isWebKit=parseFloat(w.split("WebKit/")[1])||void 0,r.isChrome=parseFloat(w.split(" Chrome/")[1])||void 0,r.isSafari=parseFloat(w.split(" Safari/")[1])&&!r.isChrome||void 0,r.isEdge=parseFloat(w.split(" Edge/")[1])||void 0,r.isAIR=w.indexOf("AdobeAIR")>=0,r.isAndroid=w.indexOf("Android")>=0,r.isChromeOS=w.indexOf(" CrOS ")>=0,r.isIOS=/iPad|iPhone|iPod/.test(w)&&!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 g=e("./useragent"),m="http://www.w3.org/1999/xhtml";r.buildDom=function u(c,i,s){if(typeof c=="string"&&c){var p=document.createTextNode(c);return i&&i.appendChild(p),p}if(!Array.isArray(c))return c&&c.appendChild&&i&&i.appendChild(c),c;if(typeof c[0]!="string"||!c[0]){for(var b=[],x=0;x<c.length;x++){var I=u(c[x],i,s);I&&b.push(I)}return b}var _=document.createElement(c[0]),k=c[1],C=1;k&&typeof k=="object"&&!Array.isArray(k)&&(C=2);for(var x=C;x<c.length;x++)u(c[x],_,s);return C==2&&Object.keys(k).forEach(function(L){var D=k[L];L==="class"?_.className=Array.isArray(D)?D.join(" "):D:typeof D=="function"||L=="value"||L[0]=="$"?_[L]=D:L==="ref"?s&&(s[D]=_):L==="style"?typeof D=="string"&&(_.style.cssText=D):D!=null&&_.setAttribute(L,D)}),i&&i.appendChild(_),_},r.getDocumentHead=function(u){return u||(u=document),u.head||u.getElementsByTagName("head")[0]||u.documentElement},r.createElement=function(u,c){return document.createElementNS?document.createElementNS(c||m,u):document.createElement(u)},r.removeChildren=function(u){u.innerHTML=""},r.createTextNode=function(u,c){var i=c?c.ownerDocument:document;return i.createTextNode(u)},r.createFragment=function(u){var c=u?u.ownerDocument:document;return c.createDocumentFragment()},r.hasCssClass=function(u,c){var i=(u.className+"").split(/\s+/g);return i.indexOf(c)!==-1},r.addCssClass=function(u,c){r.hasCssClass(u,c)||(u.className+=" "+c)},r.removeCssClass=function(u,c){for(var i=u.className.split(/\s+/g);;){var s=i.indexOf(c);if(s==-1)break;i.splice(s,1)}u.className=i.join(" ")},r.toggleCssClass=function(u,c){for(var i=u.className.split(/\s+/g),s=!0;;){var p=i.indexOf(c);if(p==-1)break;s=!1,i.splice(p,1)}return s&&i.push(c),u.className=i.join(" "),s},r.setCssClass=function(u,c,i){i?r.addCssClass(u,c):r.removeCssClass(u,c)},r.hasCssString=function(u,c){var i=0,s;if(c=c||document,s=c.querySelectorAll("style")){for(;i<s.length;)if(s[i++].id===u)return!0}},r.removeElementById=function(u,c){c=c||document,c.getElementById(u)&&c.getElementById(u).remove()};var w,h=[];r.useStrictCSP=function(u){w=u,u==!1?d():h||(h=[])};function d(){var u=h;h=null,u&&u.forEach(function(c){a(c[0],c[1])})}function a(u,c,i){if(!(typeof document>"u")){if(h){if(i)d();else if(i===!1)return h.push([u,c])}if(!w){var s=i;!i||!i.getRootNode?s=document:(s=i.getRootNode(),(!s||s==i)&&(s=document));var p=s.ownerDocument||s;if(c&&r.hasCssString(c,s))return null;c&&(u+=`
1
+ System.register(["vue","vue-router","single-spa","vuex","vuetify"],function(er,ot){"use strict";var ht,xi,pn,pt,Ve,Hr,tr,_p,$p,Tr,Ni,hu,du,Xs,Ra,Sl,ii,_l,Zs,$l,Tl,Tp,Mp,Ip,pu,Ep,Rp,Lp,Op,fu,Np,Dp,gu,Pp,Fp;return{setters:[Mt=>{ht=Mt.resolveComponent,xi=Mt.createBlock,pn=Mt.openBlock,pt=Mt.withCtx,Ve=Mt.createVNode,Hr=Mt.createElementBlock,tr=Mt.createElementVNode,_p=Mt.useCssVars,$p=Mt.defineAsyncComponent,Tr=Mt.createTextVNode,Ni=Mt.createCommentVNode,hu=Mt.mergeProps,du=Mt.normalizeClass,Xs=Mt.h,Ra=Mt.normalizeStyle,Sl=Mt.Fragment,ii=Mt.toDisplayString,_l=Mt.withKeys,Zs=Mt.withModifiers,$l=Mt.withDirectives,Tl=Mt.vShow,Tp=Mt.defineComponent,Mp=Mt.warn,Ip=Mt.inject,pu=Mt.computed,Ep=Mt.shallowRef,Rp=Mt.watchEffect,Lp=Mt.getCurrentInstance,Op=Mt.provide,fu=Mt.createApp},Mt=>{Np=Mt.createRouter,Dp=Mt.createWebHistory},Mt=>{gu=Mt.getMountedApps},Mt=>{Pp=Mt.createStore},Mt=>{Fp=Mt.createVuetify}],execute:function(){er({$:qp,c:$M,f:Or,l:$n,y:nr,z:vd});var Mt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Wp(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 ms(n){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?Wp(Object(e),!0).forEach(function(r){sw(n,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):Wp(Object(e)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(e,r))})}return n}function sw(n,t,e){return(t=function(r){var f=function(g,m){if(vs(g)!=="object"||g===null)return g;var w=g[Symbol.toPrimitive];if(w!==void 0){var h=w.call(g,m);if(vs(h)!=="object")return h;throw new TypeError("@@toPrimitive must return a primitive value.")}return(m==="string"?String:Number)(g)}(r,"string");return vs(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 vs(n){return vs=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},vs(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),g=f.length,m=-1,w="",h=f.charCodeAt(0);++m<g;)(r=f.charCodeAt(m))!=0?w+=r>=1&&r<=31||r==127||m==0&&r>=48&&r<=57||m==1&&r>=48&&r<=57&&h==45?"\\"+r.toString(16)+" ":m==0&&g==1&&r==45||!(r>=128||r==45||r==95||r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122)?"\\"+f.charAt(m):f.charAt(m):w+="�";return w};n.CSS||(n.CSS={}),n.CSS.escape=t})(Mt);var aw={appOptions:null,template:null,Vue:null,createApp:null,handleInstance:null};function lw(n){if(vs(n)!=="object")throw new Error("single-spa-vue requires a configuration object");var t=ms(ms({},aw),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(vs(t.appOptions.el)));t.createApp=t.createApp||t.Vue&&t.Vue.createApp;var e={};return{bootstrap:cw.bind(null,t,e),mount:uw.bind(null,t,e),unmount:dw.bind(null,t,e),update:hw.bind(null,t,e)}}function cw(n){return n.loadRootComponent?n.loadRootComponent().then(function(t){return n.rootComponent=t}):Promise.resolve()}function uw(n,t,e){var r={};return Promise.resolve().then(function(){return function(f,g){return typeof f.appOptions=="function"?f.appOptions(g):Promise.resolve(ms({},f.appOptions))}(n,e).then(function(f){var g;if(e.domElement&&!f.el&&(f.el=e.domElement),f.el)if(typeof f.el=="string"){if(!(g=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(g=f.el).id||(g.id="single-spa-application:".concat(e.name)),f.el="#".concat(CSS.escape(g.id));else{var m="single-spa-application:".concat(e.name);f.el="#".concat(CSS.escape(m)),(g=document.getElementById(m))||((g=document.createElement("div")).id=m,document.body.appendChild(g))}if(!n.replaceMode&&(f.el=f.el+" .single-spa-container",!g.querySelector(".single-spa-container"))){var w=document.createElement("div");w.className="single-spa-container",g.appendChild(w)}r.domEl=g,f.render||f.template||!n.rootComponent||(f.render=function(d){return d(n.rootComponent)}),f.data||(f.data={});var h=f.data;if(f.data=function(){return ms(ms({},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 hw(n,t,e){return Promise.resolve().then(function(){var r=t[e.name],f=ms(ms({},n.appOptions.data||{}),e),g=r.root||r.vueInstance;for(var m in f)g[m]=f[m]})}function dw(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 pw=er("_",(n,t)=>{const e=n.__vccOpts||n;for(const[r,f]of t)e[r]=f;return e}),fw={};function gw(n,t){const e=ht("router-view"),r=ht("v-app");return pn(),xi(r,{id:"innerapp"},{default:pt(()=>[Ve(e)]),_:1})}const mw=pw(fw,[["render",gw]]),eD="modulepreload",tD=function(n){return"/"+n},nD={},st=function(t,e,r){let f=Promise.resolve();function g(m){const w=new Event("vite:preloadError",{cancelable:!0});if(w.payload=m,window.dispatchEvent(w),!w.defaultPrevented)throw m}return f.then(m=>{for(const w of m||[])w.status==="rejected"&&g(w.reason);return t().catch(g)})},Bp=function(n){var t;!n.name!=="NotFound"&&(n.path=`/tools/dataviewer/${n.path.replace(/^\//,"")}`),(t=n.children)==null||t.forEach(Bp)},_o=er("d",(n,t)=>{const e=n.__vccOpts||n;for(const[r,f]of t)e[r]=f;return e}),vw="/icons/customIcons.svg",mu={props:{icon:{type:String},size:{type:String,default:"small"},color:{type:String,default:"white"}},computed:{iconSrc:function(){return vw+"#"+this.icon}}},zp=()=>{_p(n=>({v259824e2:n.color}))},Hp=mu.setup;mu.setup=Hp?(n,t)=>(zp(),Hp(n,t)):zp;const yw={class:"cosmos-custom-icon"},bw={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",preserveAspectRatio:"xMidYMid meet",focusable:"false"},ww=["href"];function xw(n,t,e,r,f,g){return pn(),Hr("span",yw,[(pn(),Hr("svg",bw,[tr("use",{href:g.iconSrc},null,8,ww)]))])}const Cw=_o(mu,[["render",xw],["__scopeId","data-v-4b6f1199"]]),Ml=6e4,vu=36e5,kw=1e3,jp=Symbol.for("constructDateFrom");function nr(n,t){return typeof n=="function"?n(t):n&&typeof n=="object"&&jp in n?n[jp](t):n instanceof Date?new n.constructor(t):new Date(t)}function $n(n,t){return nr(t||n,n)}let Aw={};function Qs(){return Aw}function Ko(n,t){var e,r,f,g;const m=Qs(),w=(t==null?void 0:t.weekStartsOn)??((r=(e=t==null?void 0:t.locale)==null?void 0:e.options)==null?void 0:r.weekStartsOn)??m.weekStartsOn??((g=(f=m.locale)==null?void 0:f.options)==null?void 0:g.weekStartsOn)??0,h=$n(n,t==null?void 0:t.in),d=h.getDay(),a=(d<w?7:0)+d-w;return h.setDate(h.getDate()-a),h.setHours(0,0,0,0),h}function Js(n,t){return Ko(n,{...t,weekStartsOn:1})}function Up(n,t){const e=$n(n,void 0),r=e.getFullYear(),f=nr(e,0);f.setFullYear(r+1,0,4),f.setHours(0,0,0,0);const g=Js(f),m=nr(e,0);m.setFullYear(r,0,4),m.setHours(0,0,0,0);const w=Js(m);return e.getTime()>=g.getTime()?r+1:e.getTime()>=w.getTime()?r:r-1}function Il(n){const t=$n(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 Sw(n,...t){const e=nr.bind(null,t.find(r=>typeof r=="object"));return t.map(e)}function Vp(n,t){const e=$n(n,void 0);return e.setHours(0,0,0,0),e}function _w(n,t,e){const[r,f]=Sw(void 0,n,t),g=Vp(r),m=Vp(f),w=+g-Il(g),h=+m-Il(m);return Math.round((w-h)/864e5)}function $w(n,t){const e=Up(n),r=nr(n,0);return r.setFullYear(e,0,4),r.setHours(0,0,0,0),Js(r)}function Tw(n){return n instanceof Date||typeof n=="object"&&Object.prototype.toString.call(n)==="[object Date]"}function qp(n){return!(!Tw(n)&&typeof n!="number"||isNaN(+$n(n)))}function Mw(n,t){const e=$n(n,void 0);return e.setFullYear(e.getFullYear(),0,1),e.setHours(0,0,0,0),e}const Iw={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"}},Ew=(n,t,e)=>{let r;const f=Iw[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 yu(n){return(t={})=>{const e=t.width?String(t.width):n.defaultWidth;return n.formats[e]||n.formats[n.defaultWidth]}}const Rw={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Lw={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Ow={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Nw={date:yu({formats:Rw,defaultWidth:"full"}),time:yu({formats:Lw,defaultWidth:"full"}),dateTime:yu({formats:Ow,defaultWidth:"full"})},Dw={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Pw=(n,t,e,r)=>Dw[n];function La(n){return(t,e)=>{const r=e!=null&&e.context?String(e.context):"standalone";let f;if(r==="formatting"&&n.formattingValues){const m=n.defaultFormattingWidth||n.defaultWidth,w=e!=null&&e.width?String(e.width):m;f=n.formattingValues[w]||n.formattingValues[m]}else{const m=n.defaultWidth,w=e!=null&&e.width?String(e.width):n.defaultWidth;f=n.values[w]||n.values[m]}const g=n.argumentCallback?n.argumentCallback(t):t;return f[g]}}const Fw={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Ww={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Bw={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"]},zw={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"]},Hw={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"}},jw={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"}},Uw=(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"},Vw={ordinalNumber:Uw,era:La({values:Fw,defaultWidth:"wide"}),quarter:La({values:Ww,defaultWidth:"wide",argumentCallback:n=>n-1}),month:La({values:Bw,defaultWidth:"wide"}),day:La({values:zw,defaultWidth:"wide"}),dayPeriod:La({values:Hw,defaultWidth:"wide",formattingValues:jw,defaultFormattingWidth:"wide"})};function Oa(n){return(t,e={})=>{const r=e.width,f=r&&n.matchPatterns[r]||n.matchPatterns[n.defaultMatchWidth],g=t.match(f);if(!g)return null;const m=g[0],w=r&&n.parsePatterns[r]||n.parsePatterns[n.defaultParseWidth],h=Array.isArray(w)?Kw(w,l=>l.test(m)):qw(w,l=>l.test(m));let d;d=n.valueCallback?n.valueCallback(h):h,d=e.valueCallback?e.valueCallback(d):d;const a=t.slice(m.length);return{value:d,rest:a}}}function qw(n,t){for(const e in n)if(Object.prototype.hasOwnProperty.call(n,e)&&t(n[e]))return e}function Kw(n,t){for(let e=0;e<n.length;e++)if(t(n[e]))return e}function Gw(n){return(t,e={})=>{const r=t.match(n.matchPattern);if(!r)return null;const f=r[0],g=t.match(n.parsePattern);if(!g)return null;let m=n.valueCallback?n.valueCallback(g[0]):g[0];m=e.valueCallback?e.valueCallback(m):m;const w=t.slice(f.length);return{value:m,rest:w}}}const Yw=/^(\d+)(th|st|nd|rd)?/i,Xw=/\d+/i,Zw={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},Qw={any:[/^b/i,/^(a|c)/i]},Jw={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},ex={any:[/1/i,/2/i,/3/i,/4/i]},tx={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},nx={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]},rx={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},ix={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]},ox={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},sx={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}},ax={ordinalNumber:Gw({matchPattern:Yw,parsePattern:Xw,valueCallback:n=>parseInt(n,10)}),era:Oa({matchPatterns:Zw,defaultMatchWidth:"wide",parsePatterns:Qw,defaultParseWidth:"any"}),quarter:Oa({matchPatterns:Jw,defaultMatchWidth:"wide",parsePatterns:ex,defaultParseWidth:"any",valueCallback:n=>n+1}),month:Oa({matchPatterns:tx,defaultMatchWidth:"wide",parsePatterns:nx,defaultParseWidth:"any"}),day:Oa({matchPatterns:rx,defaultMatchWidth:"wide",parsePatterns:ix,defaultParseWidth:"any"}),dayPeriod:Oa({matchPatterns:ox,defaultMatchWidth:"any",parsePatterns:sx,defaultParseWidth:"any"})},Kp={code:"en-US",formatDistance:Ew,formatLong:Nw,formatRelative:Pw,localize:Vw,match:ax,options:{weekStartsOn:0,firstWeekContainsDate:1}};function lx(n,t){const e=$n(n,void 0);return _w(e,Mw(e))+1}function Gp(n,t){const e=$n(n,void 0),r=+Js(e)-+$w(e);return Math.round(r/6048e5)+1}function bu(n,t){var e,r,f,g;const m=$n(n,t==null?void 0:t.in),w=m.getFullYear(),h=Qs(),d=(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??((g=(f=h.locale)==null?void 0:f.options)==null?void 0:g.firstWeekContainsDate)??1,a=nr((t==null?void 0:t.in)||n,0);a.setFullYear(w+1,0,d),a.setHours(0,0,0,0);const l=Ko(a,t),u=nr((t==null?void 0:t.in)||n,0);u.setFullYear(w,0,d),u.setHours(0,0,0,0);const c=Ko(u,t);return+m>=+l?w+1:+m>=+c?w:w-1}function cx(n,t){var e,r,f,g;const m=Qs(),w=(t==null?void 0:t.firstWeekContainsDate)??((r=(e=t==null?void 0:t.locale)==null?void 0:e.options)==null?void 0:r.firstWeekContainsDate)??m.firstWeekContainsDate??((g=(f=m.locale)==null?void 0:f.options)==null?void 0:g.firstWeekContainsDate)??1,h=bu(n,t),d=nr((t==null?void 0:t.in)||n,0);return d.setFullYear(h,0,w),d.setHours(0,0,0,0),Ko(d,t)}function Yp(n,t){const e=$n(n,t==null?void 0:t.in),r=+Ko(e,t)-+cx(e,t);return Math.round(r/6048e5)+1}function an(n,t){const e=n<0?"-":"",r=Math.abs(n).toString().padStart(t,"0");return e+r}const Go={y(n,t){const e=n.getFullYear(),r=e>0?e:1-e;return an(t==="yy"?r%100:r,t.length)},M(n,t){const e=n.getMonth();return t==="M"?String(e+1):an(e+1,2)},d(n,t){return an(n.getDate(),t.length)},a(n,t){const e=n.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return e.toUpperCase();case"aaa":return e;case"aaaaa":return e[0];case"aaaa":default:return e==="am"?"a.m.":"p.m."}},h(n,t){return an(n.getHours()%12||12,t.length)},H(n,t){return an(n.getHours(),t.length)},m(n,t){return an(n.getMinutes(),t.length)},s(n,t){return an(n.getSeconds(),t.length)},S(n,t){const e=t.length,r=n.getMilliseconds(),f=Math.trunc(r*Math.pow(10,e-3));return an(f,t.length)}},ea={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Xp={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 Go.y(n,t)},Y:function(n,t,e,r){const f=bu(n,r),g=f>0?f:1-f;if(t==="YY"){const m=g%100;return an(m,2)}return t==="Yo"?e.ordinalNumber(g,{unit:"year"}):an(g,t.length)},R:function(n,t){const e=Up(n);return an(e,t.length)},u:function(n,t){const e=n.getFullYear();return an(e,t.length)},Q:function(n,t,e){const r=Math.ceil((n.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return an(r,2);case"Qo":return e.ordinalNumber(r,{unit:"quarter"});case"QQQ":return e.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return e.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return e.quarter(r,{width:"wide",context:"formatting"})}},q:function(n,t,e){const r=Math.ceil((n.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return an(r,2);case"qo":return e.ordinalNumber(r,{unit:"quarter"});case"qqq":return e.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return e.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return e.quarter(r,{width:"wide",context:"standalone"})}},M:function(n,t,e){const r=n.getMonth();switch(t){case"M":case"MM":return Go.M(n,t);case"Mo":return e.ordinalNumber(r+1,{unit:"month"});case"MMM":return e.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return e.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return e.month(r,{width:"wide",context:"formatting"})}},L:function(n,t,e){const r=n.getMonth();switch(t){case"L":return String(r+1);case"LL":return an(r+1,2);case"Lo":return e.ordinalNumber(r+1,{unit:"month"});case"LLL":return e.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return e.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return e.month(r,{width:"wide",context:"standalone"})}},w:function(n,t,e,r){const f=Yp(n,r);return t==="wo"?e.ordinalNumber(f,{unit:"week"}):an(f,t.length)},I:function(n,t,e){const r=Gp(n);return t==="Io"?e.ordinalNumber(r,{unit:"week"}):an(r,t.length)},d:function(n,t,e){return t==="do"?e.ordinalNumber(n.getDate(),{unit:"date"}):Go.d(n,t)},D:function(n,t,e){const r=lx(n);return t==="Do"?e.ordinalNumber(r,{unit:"dayOfYear"}):an(r,t.length)},E:function(n,t,e){const r=n.getDay();switch(t){case"E":case"EE":case"EEE":return e.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return e.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return e.day(r,{width:"short",context:"formatting"});case"EEEE":default:return e.day(r,{width:"wide",context:"formatting"})}},e:function(n,t,e,r){const f=n.getDay(),g=(f-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(g);case"ee":return an(g,2);case"eo":return e.ordinalNumber(g,{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(),g=(f-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(g);case"cc":return an(g,t.length);case"co":return e.ordinalNumber(g,{unit:"day"});case"ccc":return e.day(f,{width:"abbreviated",context:"standalone"});case"ccccc":return e.day(f,{width:"narrow",context:"standalone"});case"cccccc":return e.day(f,{width:"short",context:"standalone"});case"cccc":default:return e.day(f,{width:"wide",context:"standalone"})}},i:function(n,t,e){const r=n.getDay(),f=r===0?7:r;switch(t){case"i":return String(f);case"ii":return an(f,t.length);case"io":return e.ordinalNumber(f,{unit:"day"});case"iii":return e.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return e.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return e.day(r,{width:"short",context:"formatting"});case"iiii":default:return e.day(r,{width:"wide",context:"formatting"})}},a:function(n,t,e){const r=n.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return e.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return e.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(n,t,e){const r=n.getHours();let f;switch(r===12?f=ea.noon:r===0?f=ea.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=ea.evening:r>=12?f=ea.afternoon:r>=4?f=ea.morning:f=ea.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 Go.h(n,t)},H:function(n,t,e){return t==="Ho"?e.ordinalNumber(n.getHours(),{unit:"hour"}):Go.H(n,t)},K:function(n,t,e){const r=n.getHours()%12;return t==="Ko"?e.ordinalNumber(r,{unit:"hour"}):an(r,t.length)},k:function(n,t,e){let r=n.getHours();return r===0&&(r=24),t==="ko"?e.ordinalNumber(r,{unit:"hour"}):an(r,t.length)},m:function(n,t,e){return t==="mo"?e.ordinalNumber(n.getMinutes(),{unit:"minute"}):Go.m(n,t)},s:function(n,t,e){return t==="so"?e.ordinalNumber(n.getSeconds(),{unit:"second"}):Go.s(n,t)},S:function(n,t){return Go.S(n,t)},X:function(n,t,e){const r=n.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return Qp(r);case"XXXX":case"XX":return ys(r);case"XXXXX":case"XXX":default:return ys(r,":")}},x:function(n,t,e){const r=n.getTimezoneOffset();switch(t){case"x":return Qp(r);case"xxxx":case"xx":return ys(r);case"xxxxx":case"xxx":default:return ys(r,":")}},O:function(n,t,e){const r=n.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Zp(r,":");case"OOOO":default:return"GMT"+ys(r,":")}},z:function(n,t,e){const r=n.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Zp(r,":");case"zzzz":default:return"GMT"+ys(r,":")}},t:function(n,t,e){const r=Math.trunc(+n/1e3);return an(r,t.length)},T:function(n,t,e){return an(+n,t.length)}};function Zp(n,t=""){const e=n>0?"-":"+",r=Math.abs(n),f=Math.trunc(r/60),g=r%60;return g===0?e+String(f):e+String(f)+t+an(g,2)}function Qp(n,t){return n%60===0?(n>0?"-":"+")+an(Math.abs(n)/60,2):ys(n,t)}function ys(n,t=""){const e=n>0?"-":"+",r=Math.abs(n),f=an(Math.trunc(r/60),2),g=an(r%60,2);return e+f+t+g}const Jp=(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"})}},ef=(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"})}},ux=(n,t)=>{const e=n.match(/(P+)(p+)?/)||[],r=e[1],f=e[2];if(!f)return Jp(n,t);let g;switch(r){case"P":g=t.dateTime({width:"short"});break;case"PP":g=t.dateTime({width:"medium"});break;case"PPP":g=t.dateTime({width:"long"});break;case"PPPP":default:g=t.dateTime({width:"full"});break}return g.replace("{{date}}",Jp(r,t)).replace("{{time}}",ef(f,t))},wu={p:ef,P:ux},hx=/^D+$/,dx=/^Y+$/,px=["D","DD","YY","YYYY"];function tf(n){return hx.test(n)}function nf(n){return dx.test(n)}function xu(n,t,e){const r=fx(n,t,e);if(console.warn(r),px.includes(n))throw new RangeError(r)}function fx(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 gx=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,mx=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,vx=/^'([^]*?)'?$/,yx=/''/g,bx=/[a-zA-Z]/;function Yo(n,t,e){var r,f,g,m,w,h,d,a;const l=Qs(),u=(e==null?void 0:e.locale)??l.locale??Kp,c=(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??((m=(g=l.locale)==null?void 0:g.options)==null?void 0:m.firstWeekContainsDate)??1,i=(e==null?void 0:e.weekStartsOn)??((h=(w=e==null?void 0:e.locale)==null?void 0:w.options)==null?void 0:h.weekStartsOn)??l.weekStartsOn??((a=(d=l.locale)==null?void 0:d.options)==null?void 0:a.weekStartsOn)??0,s=$n(n,e==null?void 0:e.in);if(!qp(s))throw new RangeError("Invalid time value");let p=t.match(mx).map(x=>{const I=x[0];if(I==="p"||I==="P"){const _=wu[I];return _(x,u.formatLong)}return x}).join("").match(gx).map(x=>{if(x==="''")return{isToken:!1,value:"'"};const I=x[0];if(I==="'")return{isToken:!1,value:wx(x)};if(Xp[I])return{isToken:!0,value:x};if(I.match(bx))throw new RangeError("Format string contains an unescaped latin alphabet character `"+I+"`");return{isToken:!1,value:x}});u.localize.preprocessor&&(p=u.localize.preprocessor(s,p));const b={firstWeekContainsDate:c,weekStartsOn:i,locale:u};return p.map(x=>{if(!x.isToken)return x.value;const I=x.value;(!(e!=null&&e.useAdditionalWeekYearTokens)&&nf(I)||!(e!=null&&e.useAdditionalDayOfYearTokens)&&tf(I))&&xu(I,t,String(n));const _=Xp[I[0]];return _(s,I,u.localize,b)}).join("")}function wx(n){const t=n.match(vx);return t?t[1].replace(yx,"'"):n}var Xo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function El(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var rf={exports:{}},of;function xx(){return of||(of=1,function(n,t){(function(){var e="ace",r=function(){return this}();!r&&typeof window<"u"&&(r=window);var f=function(a,l,u){if(typeof a!="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[a]||(f.payloads[a]=u,f.modules[a]=null)};f.modules={},f.payloads={};var g=function(a,l,u){if(typeof l=="string"){var c=h(a,l);if(c!=null)return u&&u(),c}else if(Object.prototype.toString.call(l)==="[object Array]"){for(var i=[],s=0,p=l.length;s<p;++s){var b=h(a,l[s]);if(b==null&&m.original)return;i.push(b)}return u&&u.apply(null,i)||!0}},m=function(a,l){var u=g("",a,l);return u==null&&m.original?m.original.apply(this,arguments):u},w=function(a,l){if(l.indexOf("!")!==-1){var u=l.split("!");return w(a,u[0])+"!"+w(a,u[1])}if(l.charAt(0)=="."){var c=a.split("/").slice(0,-1).join("/");for(l=c+"/"+l;l.indexOf(".")!==-1&&i!=l;){var i=l;l=l.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return l},h=function(a,l){l=w(a,l);var u=f.modules[l];if(!u){if(u=f.payloads[l],typeof u=="function"){var c={},i={id:l,uri:"",exports:c,packaged:!0},s=function(b,x){return g(l,b,x)},p=u(s,c,i);c=p||i.exports,f.modules[l]=c,delete f.payloads[l]}u=f.modules[l]=c||u}return u};function d(a){var l=r;r[a]||(r[a]={}),l=r[a],(!l.define||!l.define.packaged)&&(f.original=l.define,l.define=f,l.define.packaged=!0),(!l.require||!l.require.packaged)&&(m.original=l.require,l.require=m,l.require.packaged=!0)}d(e)})(),ace.define("ace/lib/es6-shim",["require","exports","module"],function(e,r,f){function g(m,w,h){Object.defineProperty(m,w,{value:h,enumerable:!1,writable:!0,configurable:!0})}String.prototype.startsWith||g(String.prototype,"startsWith",function(m,w){return w=w||0,this.lastIndexOf(m,w)===w}),String.prototype.endsWith||g(String.prototype,"endsWith",function(m,w){var h=this;(w===void 0||w>h.length)&&(w=h.length),w-=m.length;var d=h.indexOf(m,w);return d!==-1&&d===w}),String.prototype.repeat||g(String.prototype,"repeat",function(m){for(var w="",h=this;m>0;)m&1&&(w+=h),(m>>=1)&&(h+=h);return w}),String.prototype.includes||g(String.prototype,"includes",function(m,w){return this.indexOf(m,w)!=-1}),Object.assign||(Object.assign=function(m){if(m==null)throw new TypeError("Cannot convert undefined or null to object");for(var w=Object(m),h=1;h<arguments.length;h++){var d=arguments[h];d!=null&&Object.keys(d).forEach(function(a){w[a]=d[a]})}return w}),Object.values||(Object.values=function(m){return Object.keys(m).map(function(w){return m[w]})}),Array.prototype.find||g(Array.prototype,"find",function(m){for(var w=this.length,h=arguments[1],d=0;d<w;d++){var a=this[d];if(m.call(h,a,d,this))return a}}),Array.prototype.findIndex||g(Array.prototype,"findIndex",function(m){for(var w=this.length,h=arguments[1],d=0;d<w;d++){var a=this[d];if(m.call(h,a,d,this))return d}}),Array.prototype.includes||g(Array.prototype,"includes",function(m,w){return this.indexOf(m,w)!=-1}),Array.prototype.fill||g(Array.prototype,"fill",function(m){for(var w=this,h=w.length>>>0,d=arguments[1],a=d>>0,l=a<0?Math.max(h+a,0):Math.min(a,h),u=arguments[2],c=u===void 0?h:u>>0,i=c<0?Math.max(h+c,0):Math.min(c,h);l<i;)w[l]=m,l++;return w}),Array.of||g(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 g(m){if(typeof m!="object"||!m)return m;var w;if(Array.isArray(m)){w=[];for(var h=0;h<m.length;h++)w[h]=g(m[h]);return w}if(Object.prototype.toString.call(m)!=="[object Object]")return m;w={};for(var h in m)w[h]=g(m[h]);return w}}),ace.define("ace/lib/lang",["require","exports","module","ace/lib/deep_copy"],function(e,r,f){r.last=function(w){return w[w.length-1]},r.stringReverse=function(w){return w.split("").reverse().join("")},r.stringRepeat=function(w,h){for(var d="";h>0;)h&1&&(d+=w),(h>>=1)&&(w+=w);return d};var g=/^\s\s*/,m=/\s\s*$/;r.stringTrimLeft=function(w){return w.replace(g,"")},r.stringTrimRight=function(w){return w.replace(m,"")},r.copyObject=function(w){var h={};for(var d in w)h[d]=w[d];return h},r.copyArray=function(w){for(var h=[],d=0,a=w.length;d<a;d++)w[d]&&typeof w[d]=="object"?h[d]=this.copyObject(w[d]):h[d]=w[d];return h},r.deepCopy=e("./deep_copy").deepCopy,r.arrayToMap=function(w){for(var h={},d=0;d<w.length;d++)h[w[d]]=1;return h},r.createMap=function(w){var h=Object.create(null);for(var d in w)h[d]=w[d];return h},r.arrayRemove=function(w,h){for(var d=0;d<=w.length;d++)h===w[d]&&w.splice(d,1)},r.escapeRegExp=function(w){return w.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},r.escapeHTML=function(w){return(""+w).replace(/&/g,"&#38;").replace(/"/g,"&#34;").replace(/'/g,"&#39;").replace(/</g,"&#60;")},r.getMatchOffsets=function(w,h){var d=[];return w.replace(h,function(a){d.push({offset:arguments[arguments.length-2],length:a.length})}),d},r.deferredCall=function(w){var h=null,d=function(){h=null,w()},a=function(l){return a.cancel(),h=setTimeout(d,l||0),a};return a.schedule=a,a.call=function(){return this.cancel(),w(),a},a.cancel=function(){return clearTimeout(h),h=null,a},a.isPending=function(){return h},a},r.delayedCall=function(w,h){var d=null,a=function(){d=null,w()},l=function(u){d==null&&(d=setTimeout(a,u||h))};return l.delay=function(u){d&&clearTimeout(d),d=setTimeout(a,u||h)},l.schedule=l,l.call=function(){this.cancel(),w()},l.cancel=function(){d&&clearTimeout(d),d=null},l.isPending=function(){return d},l},r.supportsLookbehind=function(){try{new RegExp("(?<=.)")}catch{return!1}return!0},r.skipEmptyMatch=function(w,h,d){return d&&w.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 g=typeof navigator=="object"?navigator:{},m=(/mac|win|linux/i.exec(g.platform)||["other"])[0].toLowerCase(),w=g.userAgent||"",h=g.appName||"";r.isWin=m=="win",r.isMac=m=="mac",r.isLinux=m=="linux",r.isIE=h=="Microsoft Internet Explorer"||h.indexOf("MSAppHost")>=0?parseFloat((w.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((w.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),r.isOldIE=r.isIE&&r.isIE<9,r.isGecko=r.isMozilla=w.match(/ Gecko\/\d+/),r.isOpera=typeof opera=="object"&&Object.prototype.toString.call(window.opera)=="[object Opera]",r.isWebKit=parseFloat(w.split("WebKit/")[1])||void 0,r.isChrome=parseFloat(w.split(" Chrome/")[1])||void 0,r.isSafari=parseFloat(w.split(" Safari/")[1])&&!r.isChrome||void 0,r.isEdge=parseFloat(w.split(" Edge/")[1])||void 0,r.isAIR=w.indexOf("AdobeAIR")>=0,r.isAndroid=w.indexOf("Android")>=0,r.isChromeOS=w.indexOf(" CrOS ")>=0,r.isIOS=/iPad|iPhone|iPod/.test(w)&&!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 g=e("./useragent"),m="http://www.w3.org/1999/xhtml";r.buildDom=function u(c,i,s){if(typeof c=="string"&&c){var p=document.createTextNode(c);return i&&i.appendChild(p),p}if(!Array.isArray(c))return c&&c.appendChild&&i&&i.appendChild(c),c;if(typeof c[0]!="string"||!c[0]){for(var b=[],x=0;x<c.length;x++){var I=u(c[x],i,s);I&&b.push(I)}return b}var _=document.createElement(c[0]),k=c[1],C=1;k&&typeof k=="object"&&!Array.isArray(k)&&(C=2);for(var x=C;x<c.length;x++)u(c[x],_,s);return C==2&&Object.keys(k).forEach(function(L){var D=k[L];L==="class"?_.className=Array.isArray(D)?D.join(" "):D:typeof D=="function"||L=="value"||L[0]=="$"?_[L]=D:L==="ref"?s&&(s[D]=_):L==="style"?typeof D=="string"&&(_.style.cssText=D):D!=null&&_.setAttribute(L,D)}),i&&i.appendChild(_),_},r.getDocumentHead=function(u){return u||(u=document),u.head||u.getElementsByTagName("head")[0]||u.documentElement},r.createElement=function(u,c){return document.createElementNS?document.createElementNS(c||m,u):document.createElement(u)},r.removeChildren=function(u){u.innerHTML=""},r.createTextNode=function(u,c){var i=c?c.ownerDocument:document;return i.createTextNode(u)},r.createFragment=function(u){var c=u?u.ownerDocument:document;return c.createDocumentFragment()},r.hasCssClass=function(u,c){var i=(u.className+"").split(/\s+/g);return i.indexOf(c)!==-1},r.addCssClass=function(u,c){r.hasCssClass(u,c)||(u.className+=" "+c)},r.removeCssClass=function(u,c){for(var i=u.className.split(/\s+/g);;){var s=i.indexOf(c);if(s==-1)break;i.splice(s,1)}u.className=i.join(" ")},r.toggleCssClass=function(u,c){for(var i=u.className.split(/\s+/g),s=!0;;){var p=i.indexOf(c);if(p==-1)break;s=!1,i.splice(p,1)}return s&&i.push(c),u.className=i.join(" "),s},r.setCssClass=function(u,c,i){i?r.addCssClass(u,c):r.removeCssClass(u,c)},r.hasCssString=function(u,c){var i=0,s;if(c=c||document,s=c.querySelectorAll("style")){for(;i<s.length;)if(s[i++].id===u)return!0}},r.removeElementById=function(u,c){c=c||document,c.getElementById(u)&&c.getElementById(u).remove()};var w,h=[];r.useStrictCSP=function(u){w=u,u==!1?d():h||(h=[])};function d(){var u=h;h=null,u&&u.forEach(function(c){a(c[0],c[1])})}function a(u,c,i){if(!(typeof document>"u")){if(h){if(i)d();else if(i===!1)return h.push([u,c])}if(!w){var s=i;!i||!i.getRootNode?s=document:(s=i.getRootNode(),(!s||s==i)&&(s=document));var p=s.ownerDocument||s;if(c&&r.hasCssString(c,s))return null;c&&(u+=`
2
2
  /*# sourceURL=ace/css/`+c+" */");var b=r.createElement("style");b.appendChild(p.createTextNode(u)),c&&(b.id=c),s==p&&(s=r.getDocumentHead(p)),s.insertBefore(b,s.firstChild)}}}if(r.importCssString=a,r.importCssStylsheet=function(u,c){r.buildDom(["link",{rel:"stylesheet",href:u}],r.getDocumentHead(c))},r.$fixPositionBug=function(u){var c=u.getBoundingClientRect();if(u.style.left){var i=parseFloat(u.style.left),s=+c.left;Math.abs(i-s)>1&&(u.style.left=2*i-s+"px")}if(u.style.right){var i=parseFloat(u.style.right),s=window.innerWidth-c.right;Math.abs(i-s)>1&&(u.style.right=2*i-s+"px")}if(u.style.top){var i=parseFloat(u.style.top),s=+c.top;Math.abs(i-s)>1&&(u.style.top=2*i-s+"px")}if(u.style.bottom){var i=parseFloat(u.style.bottom),s=window.innerHeight-c.bottom;Math.abs(i-s)>1&&(u.style.bottom=2*i-s+"px")}},r.scrollbarWidth=function(u){var c=r.createElement("ace_inner");c.style.width="100%",c.style.minWidth="0px",c.style.height="200px",c.style.display="block";var i=r.createElement("ace_outer"),s=i.style;s.position="absolute",s.left="-10000px",s.overflow="hidden",s.width="200px",s.minWidth="0px",s.height="150px",s.display="block",i.appendChild(c);var p=u&&u.documentElement||document&&document.documentElement;if(!p)return 0;p.appendChild(i);var b=c.offsetWidth;s.overflow="scroll";var x=c.offsetWidth;return b===x&&(x=i.clientWidth),p.removeChild(i),b-x},r.computedStyle=function(u,c){return window.getComputedStyle(u,"")||{}},r.setStyle=function(u,c,i){u[c]!==i&&(u[c]=i)},r.HAS_CSS_ANIMATION=!1,r.HAS_CSS_TRANSFORMS=!1,r.HI_DPI=g.isWin?typeof window<"u"&&window.devicePixelRatio>=1.5:!0,g.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),!g.isEdge&&typeof l.style.animationName<"u"&&(r.HAS_CSS_ANIMATION=!0),l=null}r.HAS_CSS_TRANSFORMS?r.translate=function(u,c,i){u.style.transform="translate("+Math.round(c)+"px, "+Math.round(i)+"px)"}:r.translate=function(u,c,i){u.style.top=Math.round(i)+"px",u.style.left=Math.round(c)+"px"}}),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(e,r,f){/*
3
3
  * based on code from:
4
4
  *
@@ -163,7 +163,7 @@ System.register(["vue","vue-router","single-spa","vuex","vuetify"],function(er,o
163
163
  .ace-tm .ace_indent-guide-active {
164
164
  background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAZSURBVHjaYvj///9/hivKyv8BAAAA//8DACLqBhbvk+/eAAAAAElFTkSuQmCC") right repeat-y;
165
165
  }
166
- `}),ace.define("ace/theme/textmate",["require","exports","module","ace/theme/textmate-css","ace/lib/dom"],function(e,r,f){r.isDark=!1,r.cssClass="ace-tm",r.cssText=e("./textmate-css"),r.$id="ace/theme/textmate";var g=e("../lib/dom");g.importCssString(r.cssText,r.cssClass,!1)}),ace.define("ace/config",["require","exports","module","ace/lib/lang","ace/lib/net","ace/lib/dom","ace/lib/app_config","ace/theme/textmate"],function(e,r,f){"no use strict";var g=e("./lib/lang"),m=e("./lib/net"),w=e("./lib/dom"),h=e("./lib/app_config").AppConfig;f.exports=r=new h;var d={packaged:!1,workerPath:null,modePath:null,themePath:null,basePath:"",suffix:".js",$moduleUrls:{},loadWorkerFromBlob:!0,sharedPopups:!1,useStrictCSP:null};r.get=function(c){if(!d.hasOwnProperty(c))throw new Error("Unknown config key: "+c);return d[c]},r.set=function(c,i){if(d.hasOwnProperty(c))d[c]=i;else if(this.setDefaultValue("",c,i)==!1)throw new Error("Unknown config key: "+c);c=="useStrictCSP"&&w.useStrictCSP(i)},r.all=function(){return g.copyObject(d)},r.$modes={},r.moduleUrl=function(c,i){if(d.$moduleUrls[c])return d.$moduleUrls[c];var s=c.split("/");i=i||s[s.length-2]||"";var p=i=="snippets"?"/":"-",b=s[s.length-1];if(i=="worker"&&p=="-"){var x=new RegExp("^"+i+"[\\-_]|[\\-_]"+i+"$","g");b=b.replace(x,"")}(!b||b==i)&&s.length>1&&(b=s[s.length-2]);var I=d[i+"Path"];return I==null?I=d.basePath:p=="/"&&(i=p=""),I&&I.slice(-1)!="/"&&(I+="/"),I+i+p+b+this.get("suffix")},r.setModuleUrl=function(c,i){return d.$moduleUrls[c]=i};var a=function(c,i){if(c==="ace/theme/textmate"||c==="./theme/textmate")return i(null,e("./theme/textmate"));if(l)return l(c,i);console.error("loader is not configured")},l;r.setLoader=function(c){l=c},r.dynamicModules=Object.create(null),r.$loading={},r.$loaded={},r.loadModule=function(c,i){var s;if(Array.isArray(c))var p=c[0],b=c[1];else if(typeof c=="string")var b=c;var x=function(I){if(I&&!r.$loading[b])return i&&i(I);if(r.$loading[b]||(r.$loading[b]=[]),r.$loading[b].push(i),!(r.$loading[b].length>1)){var _=function(){a(b,function(k,C){C&&(r.$loaded[b]=C),r._emit("load.module",{name:b,module:C});var L=r.$loading[b];r.$loading[b]=null,L.forEach(function(D){D&&D(C)})})};if(!r.get("packaged"))return _();m.loadScript(r.moduleUrl(b,p),_),u()}};if(r.dynamicModules[b])r.dynamicModules[b]().then(function(I){I.default?x(I.default):x(I)});else{try{s=this.$require(b)}catch{}x(s||r.$loaded[b])}},r.$require=function(c){if(typeof f.require=="function"){var i="require";return f[i](c)}},r.setModuleLoader=function(c,i){r.dynamicModules[c]=i};var u=function(){!d.basePath&&!d.workerPath&&!d.modePath&&!d.themePath&&!Object.keys(d.$moduleUrls).length&&(console.error("Unable to infer path to ace from script src,","use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes","or with webpack use ace/webpack-resolver"),u=function(){})};r.version="1.43.4"}),ace.define("ace/loader_build",["require","exports","module","ace/lib/fixoldbrowsers","ace/config"],function(e,r,f){e("./lib/fixoldbrowsers");var g=e("./config");g.setLoader(function(d,a){e([d],function(l){a(null,l)})});var m=function(){return this||typeof window<"u"&&window}();f.exports=function(d){g.init=w,g.$require=e,d.require=e},w(!0);function w(d){if(!(!m||!m.document)){g.set("packaged",d||e.packaged||f.packaged||m.define&&(void 0).packaged);var a={},l="",u=document.currentScript||document._currentScript,c=u&&u.ownerDocument||document;u&&u.src&&(l=u.src.split(/[?#]/)[0].split("/").slice(0,-1).join("/")||"");for(var i=c.getElementsByTagName("script"),s=0;s<i.length;s++){var p=i[s],b=p.src||p.getAttribute("src");if(b){for(var x=p.attributes,I=0,_=x.length;I<_;I++){var k=x[I];k.name.indexOf("data-ace-")===0&&(a[h(k.name.replace(/^data-ace-/,""))]=k.value)}var C=b.match(/^(.*)\/ace([\-.]\w+)?\.js(\?|$)/);C&&(l=C[1])}}l&&(a.base=a.base||l,a.packaged=!0),a.basePath=a.base,a.workerPath=a.workerPath||a.base,a.modePath=a.modePath||a.base,a.themePath=a.themePath||a.base,delete a.base;for(var L in a)typeof a[L]<"u"&&g.set(L,a[L])}}function h(d){return d.replace(/-(.)/g,function(a,l){return l.toUpperCase()})}}),ace.define("ace/range",["require","exports","module"],function(e,r,f){var g=function(){function m(w,h,d,a){this.start={row:w,column:h},this.end={row:d,column:a}}return m.prototype.isEqual=function(w){return this.start.row===w.start.row&&this.end.row===w.end.row&&this.start.column===w.start.column&&this.end.column===w.end.column},m.prototype.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},m.prototype.contains=function(w,h){return this.compare(w,h)==0},m.prototype.compareRange=function(w){var h,d=w.end,a=w.start;return h=this.compare(d.row,d.column),h==1?(h=this.compare(a.row,a.column),h==1?2:h==0?1:0):h==-1?-2:(h=this.compare(a.row,a.column),h==-1?-1:h==1?42:0)},m.prototype.comparePoint=function(w){return this.compare(w.row,w.column)},m.prototype.containsRange=function(w){return this.comparePoint(w.start)==0&&this.comparePoint(w.end)==0},m.prototype.intersects=function(w){var h=this.compareRange(w);return h==-1||h==0||h==1},m.prototype.isEnd=function(w,h){return this.end.row==w&&this.end.column==h},m.prototype.isStart=function(w,h){return this.start.row==w&&this.start.column==h},m.prototype.setStart=function(w,h){typeof w=="object"?(this.start.column=w.column,this.start.row=w.row):(this.start.row=w,this.start.column=h)},m.prototype.setEnd=function(w,h){typeof w=="object"?(this.end.column=w.column,this.end.row=w.row):(this.end.row=w,this.end.column=h)},m.prototype.inside=function(w,h){return this.compare(w,h)==0?!(this.isEnd(w,h)||this.isStart(w,h)):!1},m.prototype.insideStart=function(w,h){return this.compare(w,h)==0?!this.isEnd(w,h):!1},m.prototype.insideEnd=function(w,h){return this.compare(w,h)==0?!this.isStart(w,h):!1},m.prototype.compare=function(w,h){return!this.isMultiLine()&&w===this.start.row?h<this.start.column?-1:h>this.end.column?1:0:w<this.start.row?-1:w>this.end.row?1:this.start.row===w?h>=this.start.column?0:-1:this.end.row===w?h<=this.end.column?0:1:0},m.prototype.compareStart=function(w,h){return this.start.row==w&&this.start.column==h?-1:this.compare(w,h)},m.prototype.compareEnd=function(w,h){return this.end.row==w&&this.end.column==h?1:this.compare(w,h)},m.prototype.compareInside=function(w,h){return this.end.row==w&&this.end.column==h?1:this.start.row==w&&this.start.column==h?-1:this.compare(w,h)},m.prototype.clipRows=function(w,h){if(this.end.row>h)var d={row:h+1,column:0};else if(this.end.row<w)var d={row:w,column:0};if(this.start.row>h)var a={row:h+1,column:0};else if(this.start.row<w)var a={row:w,column:0};return m.fromPoints(a||this.start,d||this.end)},m.prototype.extend=function(w,h){var d=this.compare(w,h);if(d==0)return this;if(d==-1)var a={row:w,column:h};else var l={row:w,column:h};return m.fromPoints(a||this.start,l||this.end)},m.prototype.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},m.prototype.isMultiLine=function(){return this.start.row!==this.end.row},m.prototype.clone=function(){return m.fromPoints(this.start,this.end)},m.prototype.collapseRows=function(){return this.end.column==0?new m(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new m(this.start.row,0,this.end.row,0)},m.prototype.toScreenRange=function(w){var h=w.documentToScreenPosition(this.start),d=w.documentToScreenPosition(this.end);return new m(h.row,h.column,d.row,d.column)},m.prototype.moveBy=function(w,h){this.start.row+=w,this.start.column+=h,this.end.row+=w,this.end.column+=h},m}();g.fromPoints=function(m,w){return new g(m.row,m.column,w.row,w.column)},g.comparePoints=function(m,w){return m.row-w.row||m.column-w.column},r.Range=g}),ace.define("ace/lib/keys",["require","exports","module","ace/lib/oop"],function(e,r,f){for(var g=e("./oop"),m={MODIFIER_KEYS:{16:"Shift",17:"Ctrl",18:"Alt",224:"Meta",91:"MetaLeft",92:"MetaRight",93:"ContextMenu"},KEY_MODS:{ctrl:1,alt:2,option:2,shift:4,super:8,meta:8,command:8,cmd:8,control:1},FUNCTION_KEYS:{8:"Backspace",9:"Tab",13:"Return",19:"Pause",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"Print",45:"Insert",46:"Delete","-13":"NumpadEnter",144:"Numlock",145:"Scrolllock"},PRINTABLE_KEYS:{32:" ",59:";",61:"=",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",111:"/",106:"*"}},w={Command:224,Backspace:8,Tab:9,Return:13,Enter:13,Pause:19,Escape:27,PageUp:33,PageDown:34,End:35,Home:36,Insert:45,Delete:46,ArrowLeft:37,ArrowUp:38,ArrowRight:39,ArrowDown:40,Backquote:192,Minus:189,Equal:187,BracketLeft:219,Backslash:220,BracketRight:221,Semicolon:186,Quote:222,Comma:188,Period:190,Slash:191,Space:32,NumpadAdd:107,NumpadDecimal:110,NumpadSubtract:109,NumpadDivide:111,NumpadMultiply:106},h=0;h<10;h++)w["Digit"+h]=48+h,w["Numpad"+h]=96+h,m.PRINTABLE_KEYS[48+h]=""+h,m.FUNCTION_KEYS[96+h]="Numpad"+h;for(var h=65;h<91;h++){var d=String.fromCharCode(h+32);w["Key"+d.toUpperCase()]=h,m.PRINTABLE_KEYS[h]=d}for(var h=1;h<13;h++)w["F"+h]=111+h,m.FUNCTION_KEYS[111+h]="F"+h;var a={Shift:16,Control:17,Alt:18,Meta:224};for(var l in a)w[l]=w[l+"Left"]=w[l+"Right"]=a[l];r.$codeToKeyCode=w,m.PRINTABLE_KEYS[173]="-";for(var u in m.FUNCTION_KEYS){var c=m.FUNCTION_KEYS[u].toLowerCase();m[c]=parseInt(u,10)}for(var u in m.PRINTABLE_KEYS){var c=m.PRINTABLE_KEYS[u].toLowerCase();m[c]=parseInt(u,10)}g.mixin(m,m.MODIFIER_KEYS),g.mixin(m,m.PRINTABLE_KEYS),g.mixin(m,m.FUNCTION_KEYS),m.enter=m.return,m.escape=m.esc,m.del=m.delete,function(){for(var i=["cmd","ctrl","alt","shift"],s=Math.pow(2,i.length);s--;)m.KEY_MODS[s]=i.filter(function(p){return s&m.KEY_MODS[p]}).join("-")+"-"}(),m.KEY_MODS[0]="",m.KEY_MODS[-1]="input-",g.mixin(r,m),r.default=r,r.keyCodeToString=function(i){var s=m[i];return typeof s!="string"&&(s=String.fromCharCode(i)),s.toLowerCase()}}),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(e,r,f){var g=e("./keys"),m=e("./useragent"),w=null,h=0,d;function a(){d=!1;try{document.createComment("").addEventListener("test",function(){},{get passive(){return d={passive:!1},!0}})}catch{}}function l(){return d==null&&a(),d}function u(I,_,k){this.elem=I,this.type=_,this.callback=k}u.prototype.destroy=function(){i(this.elem,this.type,this.callback),this.elem=this.type=this.callback=void 0};var c=r.addListener=function(I,_,k,C){I.addEventListener(_,k,l()),C&&C.$toDestroy.push(new u(I,_,k))},i=r.removeListener=function(I,_,k){I.removeEventListener(_,k,l())};r.stopEvent=function(I){return r.stopPropagation(I),r.preventDefault(I),!1},r.stopPropagation=function(I){I.stopPropagation&&I.stopPropagation()},r.preventDefault=function(I){I.preventDefault&&I.preventDefault()},r.getButton=function(I){return I.type=="dblclick"?0:I.type=="contextmenu"||m.isMac&&I.ctrlKey&&!I.altKey&&!I.shiftKey?2:I.button},r.capture=function(I,_,k){var C=I&&I.ownerDocument||document;function L(D){_&&_(D),k&&k(D),i(C,"mousemove",_),i(C,"mouseup",L),i(C,"dragstart",L)}return c(C,"mousemove",_),c(C,"mouseup",L),c(C,"dragstart",L),L},r.addMouseWheelListener=function(I,_,k){c(I,"wheel",function(C){var L=.15,D=C.deltaX||0,R=C.deltaY||0;switch(C.deltaMode){case C.DOM_DELTA_PIXEL:C.wheelX=D*L,C.wheelY=R*L;break;case C.DOM_DELTA_LINE:var E=15;C.wheelX=D*E,C.wheelY=R*E;break;case C.DOM_DELTA_PAGE:var z=150;C.wheelX=D*z,C.wheelY=R*z;break}_(C)},k)},r.addMultiMouseDownListener=function(I,_,k,C,L){var D=0,R,E,z,F={2:"dblclick",3:"tripleclick",4:"quadclick"};function O($){if(r.getButton($)!==0?D=0:$.detail>1?(D++,D>4&&(D=1)):D=1,m.isIE){var A=Math.abs($.clientX-R)>5||Math.abs($.clientY-E)>5;(!z||A)&&(D=1),z&&clearTimeout(z),z=setTimeout(function(){z=null},_[D-1]||600),D==1&&(R=$.clientX,E=$.clientY)}if($._clicks=D,k[C]("mousedown",$),D>4)D=0;else if(D>1)return k[C](F[D],$)}Array.isArray(I)||(I=[I]),I.forEach(function($){c($,"mousedown",O,L)})};function s(I){return 0|(I.ctrlKey?1:0)|(I.altKey?2:0)|(I.shiftKey?4:0)|(I.metaKey?8:0)}r.getModifierString=function(I){return g.KEY_MODS[s(I)]};function p(I,_,k){var C=s(_);if(!k&&_.code&&(k=g.$codeToKeyCode[_.code]||k),!m.isMac&&w){if(_.getModifierState&&(_.getModifierState("OS")||_.getModifierState("Win"))&&(C|=8),w.altGr)if((3&C)!=3)w.altGr=0;else return;if(k===18||k===17){var L=_.location;if(k===17&&L===1)w[k]==1&&(h=_.timeStamp);else if(k===18&&C===3&&L===2){var D=_.timeStamp-h;D<50&&(w.altGr=!0)}}}if(k in g.MODIFIER_KEYS&&(k=-1),!(!C&&k===13&&_.location===3&&(I(_,C,-k),_.defaultPrevented))){if(m.isChromeOS&&C&8){if(I(_,C,k),_.defaultPrevented)return;C&=-9}return!C&&!(k in g.FUNCTION_KEYS)&&!(k in g.PRINTABLE_KEYS)?!1:I(_,C,k)}}r.addCommandKeyListener=function(I,_,k){var C=null;c(I,"keydown",function(L){w[L.keyCode]=(w[L.keyCode]||0)+1;var D=p(_,L,L.keyCode);return C=L.defaultPrevented,D},k),c(I,"keypress",function(L){C&&(L.ctrlKey||L.altKey||L.shiftKey||L.metaKey)&&(r.stopEvent(L),C=null)},k),c(I,"keyup",function(L){w[L.keyCode]=null},k),w||(b(),c(window,"focus",b))};function b(){w=Object.create(null)}if(typeof window=="object"&&window.postMessage&&!m.isOldIE){var x=1;r.nextTick=function(I,_){_=_||window;var k="zero-timeout-message-"+x++,C=function(L){L.data==k&&(r.stopPropagation(L),i(_,"message",C),I())};c(_,"message",C),_.postMessage(k,"*")}}r.$idleBlocked=!1,r.onIdle=function(I,_){return setTimeout(function k(){r.$idleBlocked?setTimeout(k,100):I()},_)},r.$idleBlockId=null,r.blockIdle=function(I){r.$idleBlockId&&clearTimeout(r.$idleBlockId),r.$idleBlocked=!0,r.$idleBlockId=setTimeout(function(){r.$idleBlocked=!1},I||100)},r.nextFrame=typeof window=="object"&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),r.nextFrame?r.nextFrame=r.nextFrame.bind(window):r.nextFrame=function(I){setTimeout(I,17)}}),ace.define("ace/clipboard",["require","exports","module"],function(e,r,f){var g;f.exports={lineMode:!1,pasteCancelled:function(){return g&&g>Date.now()-50?!0:g=!1},cancel:function(){g=Date.now()}}}),ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/config","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/clipboard","ace/lib/keys"],function(e,r,f){var g=e("../lib/event"),m=e("../config").nls,w=e("../lib/useragent"),h=e("../lib/dom"),d=e("../lib/lang"),a=e("../clipboard"),l=w.isChrome<18,u=w.isIE,c=w.isChrome>63,i=400,s=e("../lib/keys"),p=s.KEY_MODS,b=w.isIOS,x=b?/\s/:/\n/,I=w.isMobile,_=function(){function k(C,L){var D=this;this.host=L,this.text=h.createElement("textarea"),this.text.className="ace_text-input",this.text.setAttribute("wrap","off"),this.text.setAttribute("autocomplete","off"),this.text.setAttribute("autocorrect","off"),this.text.setAttribute("autocapitalize","off"),this.text.setAttribute("spellcheck","false"),this.text.style.opacity="0",C.insertBefore(this.text,C.firstChild),this.copied=!1,this.pasted=!1,this.inComposition=!1,this.sendingText=!1,this.tempStyle="",I||(this.text.style.fontSize="1px"),this.commandMode=!1,this.ignoreFocusEvents=!1,this.lastValue="",this.lastSelectionStart=0,this.lastSelectionEnd=0,this.lastRestoreEnd=0,this.rowStart=Number.MAX_SAFE_INTEGER,this.rowEnd=Number.MIN_SAFE_INTEGER,this.numberOfExtraLines=0;try{this.$isFocused=document.activeElement===this.text}catch{}this.cancelComposition=this.cancelComposition.bind(this),this.setAriaOptions({role:"textbox"}),g.addListener(this.text,"blur",function(R){D.ignoreFocusEvents||(L.onBlur(R),D.$isFocused=!1)},L),g.addListener(this.text,"focus",function(R){if(!D.ignoreFocusEvents){if(D.$isFocused=!0,w.isEdge)try{if(!document.hasFocus())return}catch{}L.onFocus(R),w.isEdge?setTimeout(D.resetSelection.bind(D)):D.resetSelection()}},L),this.$focusScroll=!1,L.on("beforeEndOperation",function(){var R=L.curOp,E=R&&R.command&&R.command.name;if(E!="insertstring"){var z=E&&(R.docChanged||R.selectionChanged);D.inComposition&&z&&(D.lastValue=D.text.value="",D.onCompositionEnd()),D.resetSelection()}}),L.on("changeSelection",this.setAriaLabel.bind(this)),this.resetSelection=b?this.$resetSelectionIOS:this.$resetSelection,this.$isFocused&&L.onFocus(),this.inputHandler=null,this.afterContextMenu=!1,g.addCommandKeyListener(this.text,function(R,E,z){if(!D.inComposition)return L.onCommandKey(R,E,z)},L),g.addListener(this.text,"select",this.onSelect.bind(this),L),g.addListener(this.text,"input",this.onInput.bind(this),L),g.addListener(this.text,"cut",this.onCut.bind(this),L),g.addListener(this.text,"copy",this.onCopy.bind(this),L),g.addListener(this.text,"paste",this.onPaste.bind(this),L),(!("oncut"in this.text)||!("oncopy"in this.text)||!("onpaste"in this.text))&&g.addListener(C,"keydown",function(R){if(!(w.isMac&&!R.metaKey||!R.ctrlKey))switch(R.keyCode){case 67:D.onCopy(R);break;case 86:D.onPaste(R);break;case 88:D.onCut(R);break}},L),this.syncComposition=d.delayedCall(this.onCompositionUpdate.bind(this),50).schedule.bind(null,null),g.addListener(this.text,"compositionstart",this.onCompositionStart.bind(this),L),g.addListener(this.text,"compositionupdate",this.onCompositionUpdate.bind(this),L),g.addListener(this.text,"keyup",this.onKeyup.bind(this),L),g.addListener(this.text,"keydown",this.syncComposition.bind(this),L),g.addListener(this.text,"compositionend",this.onCompositionEnd.bind(this),L),this.closeTimeout,g.addListener(this.text,"mouseup",this.$onContextMenu.bind(this),L),g.addListener(this.text,"mousedown",function(R){R.preventDefault(),D.onContextMenuClose()},L),g.addListener(L.renderer.scroller,"contextmenu",this.$onContextMenu.bind(this),L),g.addListener(this.text,"contextmenu",this.$onContextMenu.bind(this),L),b&&this.addIosSelectionHandler(C,L,this.text)}return k.prototype.addIosSelectionHandler=function(C,L,D){var R=this,E=null,z=!1;D.addEventListener("keydown",function(O){E&&clearTimeout(E),z=!0},!0),D.addEventListener("keyup",function(O){E=setTimeout(function(){z=!1},100)},!0);var F=function(O){if(document.activeElement===D&&!(z||R.inComposition||L.$mouseHandler.isMousePressed)&&!R.copied){var $=D.selectionStart,A=D.selectionEnd,N=null,B=0;if($==0?N=s.up:$==1?N=s.home:A>R.lastSelectionEnd&&R.lastValue[A]==`
166
+ `}),ace.define("ace/theme/textmate",["require","exports","module","ace/theme/textmate-css","ace/lib/dom"],function(e,r,f){r.isDark=!1,r.cssClass="ace-tm",r.cssText=e("./textmate-css"),r.$id="ace/theme/textmate";var g=e("../lib/dom");g.importCssString(r.cssText,r.cssClass,!1)}),ace.define("ace/config",["require","exports","module","ace/lib/lang","ace/lib/net","ace/lib/dom","ace/lib/app_config","ace/theme/textmate"],function(e,r,f){"no use strict";var g=e("./lib/lang"),m=e("./lib/net"),w=e("./lib/dom"),h=e("./lib/app_config").AppConfig;f.exports=r=new h;var d={packaged:!1,workerPath:null,modePath:null,themePath:null,basePath:"",suffix:".js",$moduleUrls:{},loadWorkerFromBlob:!0,sharedPopups:!1,useStrictCSP:null};r.get=function(c){if(!d.hasOwnProperty(c))throw new Error("Unknown config key: "+c);return d[c]},r.set=function(c,i){if(d.hasOwnProperty(c))d[c]=i;else if(this.setDefaultValue("",c,i)==!1)throw new Error("Unknown config key: "+c);c=="useStrictCSP"&&w.useStrictCSP(i)},r.all=function(){return g.copyObject(d)},r.$modes={},r.moduleUrl=function(c,i){if(d.$moduleUrls[c])return d.$moduleUrls[c];var s=c.split("/");i=i||s[s.length-2]||"";var p=i=="snippets"?"/":"-",b=s[s.length-1];if(i=="worker"&&p=="-"){var x=new RegExp("^"+i+"[\\-_]|[\\-_]"+i+"$","g");b=b.replace(x,"")}(!b||b==i)&&s.length>1&&(b=s[s.length-2]);var I=d[i+"Path"];return I==null?I=d.basePath:p=="/"&&(i=p=""),I&&I.slice(-1)!="/"&&(I+="/"),I+i+p+b+this.get("suffix")},r.setModuleUrl=function(c,i){return d.$moduleUrls[c]=i};var a=function(c,i){if(c==="ace/theme/textmate"||c==="./theme/textmate")return i(null,e("./theme/textmate"));if(l)return l(c,i);console.error("loader is not configured")},l;r.setLoader=function(c){l=c},r.dynamicModules=Object.create(null),r.$loading={},r.$loaded={},r.loadModule=function(c,i){var s;if(Array.isArray(c))var p=c[0],b=c[1];else if(typeof c=="string")var b=c;var x=function(I){if(I&&!r.$loading[b])return i&&i(I);if(r.$loading[b]||(r.$loading[b]=[]),r.$loading[b].push(i),!(r.$loading[b].length>1)){var _=function(){a(b,function(k,C){C&&(r.$loaded[b]=C),r._emit("load.module",{name:b,module:C});var L=r.$loading[b];r.$loading[b]=null,L.forEach(function(D){D&&D(C)})})};if(!r.get("packaged"))return _();m.loadScript(r.moduleUrl(b,p),_),u()}};if(r.dynamicModules[b])r.dynamicModules[b]().then(function(I){I.default?x(I.default):x(I)});else{try{s=this.$require(b)}catch{}x(s||r.$loaded[b])}},r.$require=function(c){if(typeof f.require=="function"){var i="require";return f[i](c)}},r.setModuleLoader=function(c,i){r.dynamicModules[c]=i};var u=function(){!d.basePath&&!d.workerPath&&!d.modePath&&!d.themePath&&!Object.keys(d.$moduleUrls).length&&(console.error("Unable to infer path to ace from script src,","use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes","or with webpack use ace/webpack-resolver"),u=function(){})};r.version="1.43.5"}),ace.define("ace/loader_build",["require","exports","module","ace/lib/fixoldbrowsers","ace/config"],function(e,r,f){e("./lib/fixoldbrowsers");var g=e("./config");g.setLoader(function(d,a){e([d],function(l){a(null,l)})});var m=function(){return this||typeof window<"u"&&window}();f.exports=function(d){g.init=w,g.$require=e,d.require=e},w(!0);function w(d){if(!(!m||!m.document)){g.set("packaged",d||e.packaged||f.packaged||m.define&&(void 0).packaged);var a={},l="",u=document.currentScript||document._currentScript,c=u&&u.ownerDocument||document;u&&u.src&&(l=u.src.split(/[?#]/)[0].split("/").slice(0,-1).join("/")||"");for(var i=c.getElementsByTagName("script"),s=0;s<i.length;s++){var p=i[s],b=p.src||p.getAttribute("src");if(b){for(var x=p.attributes,I=0,_=x.length;I<_;I++){var k=x[I];k.name.indexOf("data-ace-")===0&&(a[h(k.name.replace(/^data-ace-/,""))]=k.value)}var C=b.match(/^(.*)\/ace([\-.]\w+)?\.js(\?|$)/);C&&(l=C[1])}}l&&(a.base=a.base||l,a.packaged=!0),a.basePath=a.base,a.workerPath=a.workerPath||a.base,a.modePath=a.modePath||a.base,a.themePath=a.themePath||a.base,delete a.base;for(var L in a)typeof a[L]<"u"&&g.set(L,a[L])}}function h(d){return d.replace(/-(.)/g,function(a,l){return l.toUpperCase()})}}),ace.define("ace/range",["require","exports","module"],function(e,r,f){var g=function(){function m(w,h,d,a){this.start={row:w,column:h},this.end={row:d,column:a}}return m.prototype.isEqual=function(w){return this.start.row===w.start.row&&this.end.row===w.end.row&&this.start.column===w.start.column&&this.end.column===w.end.column},m.prototype.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},m.prototype.contains=function(w,h){return this.compare(w,h)==0},m.prototype.compareRange=function(w){var h,d=w.end,a=w.start;return h=this.compare(d.row,d.column),h==1?(h=this.compare(a.row,a.column),h==1?2:h==0?1:0):h==-1?-2:(h=this.compare(a.row,a.column),h==-1?-1:h==1?42:0)},m.prototype.comparePoint=function(w){return this.compare(w.row,w.column)},m.prototype.containsRange=function(w){return this.comparePoint(w.start)==0&&this.comparePoint(w.end)==0},m.prototype.intersects=function(w){var h=this.compareRange(w);return h==-1||h==0||h==1},m.prototype.isEnd=function(w,h){return this.end.row==w&&this.end.column==h},m.prototype.isStart=function(w,h){return this.start.row==w&&this.start.column==h},m.prototype.setStart=function(w,h){typeof w=="object"?(this.start.column=w.column,this.start.row=w.row):(this.start.row=w,this.start.column=h)},m.prototype.setEnd=function(w,h){typeof w=="object"?(this.end.column=w.column,this.end.row=w.row):(this.end.row=w,this.end.column=h)},m.prototype.inside=function(w,h){return this.compare(w,h)==0?!(this.isEnd(w,h)||this.isStart(w,h)):!1},m.prototype.insideStart=function(w,h){return this.compare(w,h)==0?!this.isEnd(w,h):!1},m.prototype.insideEnd=function(w,h){return this.compare(w,h)==0?!this.isStart(w,h):!1},m.prototype.compare=function(w,h){return!this.isMultiLine()&&w===this.start.row?h<this.start.column?-1:h>this.end.column?1:0:w<this.start.row?-1:w>this.end.row?1:this.start.row===w?h>=this.start.column?0:-1:this.end.row===w?h<=this.end.column?0:1:0},m.prototype.compareStart=function(w,h){return this.start.row==w&&this.start.column==h?-1:this.compare(w,h)},m.prototype.compareEnd=function(w,h){return this.end.row==w&&this.end.column==h?1:this.compare(w,h)},m.prototype.compareInside=function(w,h){return this.end.row==w&&this.end.column==h?1:this.start.row==w&&this.start.column==h?-1:this.compare(w,h)},m.prototype.clipRows=function(w,h){if(this.end.row>h)var d={row:h+1,column:0};else if(this.end.row<w)var d={row:w,column:0};if(this.start.row>h)var a={row:h+1,column:0};else if(this.start.row<w)var a={row:w,column:0};return m.fromPoints(a||this.start,d||this.end)},m.prototype.extend=function(w,h){var d=this.compare(w,h);if(d==0)return this;if(d==-1)var a={row:w,column:h};else var l={row:w,column:h};return m.fromPoints(a||this.start,l||this.end)},m.prototype.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},m.prototype.isMultiLine=function(){return this.start.row!==this.end.row},m.prototype.clone=function(){return m.fromPoints(this.start,this.end)},m.prototype.collapseRows=function(){return this.end.column==0?new m(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new m(this.start.row,0,this.end.row,0)},m.prototype.toScreenRange=function(w){var h=w.documentToScreenPosition(this.start),d=w.documentToScreenPosition(this.end);return new m(h.row,h.column,d.row,d.column)},m.prototype.moveBy=function(w,h){this.start.row+=w,this.start.column+=h,this.end.row+=w,this.end.column+=h},m}();g.fromPoints=function(m,w){return new g(m.row,m.column,w.row,w.column)},g.comparePoints=function(m,w){return m.row-w.row||m.column-w.column},r.Range=g}),ace.define("ace/lib/keys",["require","exports","module","ace/lib/oop"],function(e,r,f){for(var g=e("./oop"),m={MODIFIER_KEYS:{16:"Shift",17:"Ctrl",18:"Alt",224:"Meta",91:"MetaLeft",92:"MetaRight",93:"ContextMenu"},KEY_MODS:{ctrl:1,alt:2,option:2,shift:4,super:8,meta:8,command:8,cmd:8,control:1},FUNCTION_KEYS:{8:"Backspace",9:"Tab",13:"Return",19:"Pause",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"Print",45:"Insert",46:"Delete","-13":"NumpadEnter",144:"Numlock",145:"Scrolllock"},PRINTABLE_KEYS:{32:" ",59:";",61:"=",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",111:"/",106:"*"}},w={Command:224,Backspace:8,Tab:9,Return:13,Enter:13,Pause:19,Escape:27,PageUp:33,PageDown:34,End:35,Home:36,Insert:45,Delete:46,ArrowLeft:37,ArrowUp:38,ArrowRight:39,ArrowDown:40,Backquote:192,Minus:189,Equal:187,BracketLeft:219,Backslash:220,BracketRight:221,Semicolon:186,Quote:222,Comma:188,Period:190,Slash:191,Space:32,NumpadAdd:107,NumpadDecimal:110,NumpadSubtract:109,NumpadDivide:111,NumpadMultiply:106},h=0;h<10;h++)w["Digit"+h]=48+h,w["Numpad"+h]=96+h,m.PRINTABLE_KEYS[48+h]=""+h,m.FUNCTION_KEYS[96+h]="Numpad"+h;for(var h=65;h<91;h++){var d=String.fromCharCode(h+32);w["Key"+d.toUpperCase()]=h,m.PRINTABLE_KEYS[h]=d}for(var h=1;h<13;h++)w["F"+h]=111+h,m.FUNCTION_KEYS[111+h]="F"+h;var a={Shift:16,Control:17,Alt:18,Meta:224};for(var l in a)w[l]=w[l+"Left"]=w[l+"Right"]=a[l];r.$codeToKeyCode=w,m.PRINTABLE_KEYS[173]="-";for(var u in m.FUNCTION_KEYS){var c=m.FUNCTION_KEYS[u].toLowerCase();m[c]=parseInt(u,10)}for(var u in m.PRINTABLE_KEYS){var c=m.PRINTABLE_KEYS[u].toLowerCase();m[c]=parseInt(u,10)}g.mixin(m,m.MODIFIER_KEYS),g.mixin(m,m.PRINTABLE_KEYS),g.mixin(m,m.FUNCTION_KEYS),m.enter=m.return,m.escape=m.esc,m.del=m.delete,function(){for(var i=["cmd","ctrl","alt","shift"],s=Math.pow(2,i.length);s--;)m.KEY_MODS[s]=i.filter(function(p){return s&m.KEY_MODS[p]}).join("-")+"-"}(),m.KEY_MODS[0]="",m.KEY_MODS[-1]="input-",g.mixin(r,m),r.default=r,r.keyCodeToString=function(i){var s=m[i];return typeof s!="string"&&(s=String.fromCharCode(i)),s.toLowerCase()}}),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(e,r,f){var g=e("./keys"),m=e("./useragent"),w=null,h=0,d;function a(){d=!1;try{document.createComment("").addEventListener("test",function(){},{get passive(){return d={passive:!1},!0}})}catch{}}function l(){return d==null&&a(),d}function u(I,_,k){this.elem=I,this.type=_,this.callback=k}u.prototype.destroy=function(){i(this.elem,this.type,this.callback),this.elem=this.type=this.callback=void 0};var c=r.addListener=function(I,_,k,C){I.addEventListener(_,k,l()),C&&C.$toDestroy.push(new u(I,_,k))},i=r.removeListener=function(I,_,k){I.removeEventListener(_,k,l())};r.stopEvent=function(I){return r.stopPropagation(I),r.preventDefault(I),!1},r.stopPropagation=function(I){I.stopPropagation&&I.stopPropagation()},r.preventDefault=function(I){I.preventDefault&&I.preventDefault()},r.getButton=function(I){return I.type=="dblclick"?0:I.type=="contextmenu"||m.isMac&&I.ctrlKey&&!I.altKey&&!I.shiftKey?2:I.button},r.capture=function(I,_,k){var C=I&&I.ownerDocument||document;function L(D){_&&_(D),k&&k(D),i(C,"mousemove",_),i(C,"mouseup",L),i(C,"dragstart",L)}return c(C,"mousemove",_),c(C,"mouseup",L),c(C,"dragstart",L),L},r.addMouseWheelListener=function(I,_,k){c(I,"wheel",function(C){var L=.15,D=C.deltaX||0,R=C.deltaY||0;switch(C.deltaMode){case C.DOM_DELTA_PIXEL:C.wheelX=D*L,C.wheelY=R*L;break;case C.DOM_DELTA_LINE:var E=15;C.wheelX=D*E,C.wheelY=R*E;break;case C.DOM_DELTA_PAGE:var z=150;C.wheelX=D*z,C.wheelY=R*z;break}_(C)},k)},r.addMultiMouseDownListener=function(I,_,k,C,L){var D=0,R,E,z,F={2:"dblclick",3:"tripleclick",4:"quadclick"};function O($){if(r.getButton($)!==0?D=0:$.detail>1?(D++,D>4&&(D=1)):D=1,m.isIE){var A=Math.abs($.clientX-R)>5||Math.abs($.clientY-E)>5;(!z||A)&&(D=1),z&&clearTimeout(z),z=setTimeout(function(){z=null},_[D-1]||600),D==1&&(R=$.clientX,E=$.clientY)}if($._clicks=D,k[C]("mousedown",$),D>4)D=0;else if(D>1)return k[C](F[D],$)}Array.isArray(I)||(I=[I]),I.forEach(function($){c($,"mousedown",O,L)})};function s(I){return 0|(I.ctrlKey?1:0)|(I.altKey?2:0)|(I.shiftKey?4:0)|(I.metaKey?8:0)}r.getModifierString=function(I){return g.KEY_MODS[s(I)]};function p(I,_,k){var C=s(_);if(!k&&_.code&&(k=g.$codeToKeyCode[_.code]||k),!m.isMac&&w){if(_.getModifierState&&(_.getModifierState("OS")||_.getModifierState("Win"))&&(C|=8),w.altGr)if((3&C)!=3)w.altGr=0;else return;if(k===18||k===17){var L=_.location;if(k===17&&L===1)w[k]==1&&(h=_.timeStamp);else if(k===18&&C===3&&L===2){var D=_.timeStamp-h;D<50&&(w.altGr=!0)}}}if(k in g.MODIFIER_KEYS&&(k=-1),!(!C&&k===13&&_.location===3&&(I(_,C,-k),_.defaultPrevented))){if(m.isChromeOS&&C&8){if(I(_,C,k),_.defaultPrevented)return;C&=-9}return!C&&!(k in g.FUNCTION_KEYS)&&!(k in g.PRINTABLE_KEYS)?!1:I(_,C,k)}}r.addCommandKeyListener=function(I,_,k){var C=null;c(I,"keydown",function(L){w[L.keyCode]=(w[L.keyCode]||0)+1;var D=p(_,L,L.keyCode);return C=L.defaultPrevented,D},k),c(I,"keypress",function(L){C&&(L.ctrlKey||L.altKey||L.shiftKey||L.metaKey)&&(r.stopEvent(L),C=null)},k),c(I,"keyup",function(L){w[L.keyCode]=null},k),w||(b(),c(window,"focus",b))};function b(){w=Object.create(null)}if(typeof window=="object"&&window.postMessage&&!m.isOldIE){var x=1;r.nextTick=function(I,_){_=_||window;var k="zero-timeout-message-"+x++,C=function(L){L.data==k&&(r.stopPropagation(L),i(_,"message",C),I())};c(_,"message",C),_.postMessage(k,"*")}}r.$idleBlocked=!1,r.onIdle=function(I,_){return setTimeout(function k(){r.$idleBlocked?setTimeout(k,100):I()},_)},r.$idleBlockId=null,r.blockIdle=function(I){r.$idleBlockId&&clearTimeout(r.$idleBlockId),r.$idleBlocked=!0,r.$idleBlockId=setTimeout(function(){r.$idleBlocked=!1},I||100)},r.nextFrame=typeof window=="object"&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),r.nextFrame?r.nextFrame=r.nextFrame.bind(window):r.nextFrame=function(I){setTimeout(I,17)}}),ace.define("ace/clipboard",["require","exports","module"],function(e,r,f){var g;f.exports={lineMode:!1,pasteCancelled:function(){return g&&g>Date.now()-50?!0:g=!1},cancel:function(){g=Date.now()}}}),ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/config","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/clipboard","ace/lib/keys"],function(e,r,f){var g=e("../lib/event"),m=e("../config").nls,w=e("../lib/useragent"),h=e("../lib/dom"),d=e("../lib/lang"),a=e("../clipboard"),l=w.isChrome<18,u=w.isIE,c=w.isChrome>63,i=400,s=e("../lib/keys"),p=s.KEY_MODS,b=w.isIOS,x=b?/\s/:/\n/,I=w.isMobile,_=function(){function k(C,L){var D=this;this.host=L,this.text=h.createElement("textarea"),this.text.className="ace_text-input",this.text.setAttribute("wrap","off"),this.text.setAttribute("autocomplete","off"),this.text.setAttribute("autocorrect","off"),this.text.setAttribute("autocapitalize","off"),this.text.setAttribute("spellcheck","false"),this.text.style.opacity="0",C.insertBefore(this.text,C.firstChild),this.copied=!1,this.pasted=!1,this.inComposition=!1,this.sendingText=!1,this.tempStyle="",I||(this.text.style.fontSize="1px"),this.commandMode=!1,this.ignoreFocusEvents=!1,this.lastValue="",this.lastSelectionStart=0,this.lastSelectionEnd=0,this.lastRestoreEnd=0,this.rowStart=Number.MAX_SAFE_INTEGER,this.rowEnd=Number.MIN_SAFE_INTEGER,this.numberOfExtraLines=0;try{this.$isFocused=document.activeElement===this.text}catch{}this.cancelComposition=this.cancelComposition.bind(this),this.setAriaOptions({role:"textbox"}),g.addListener(this.text,"blur",function(R){D.ignoreFocusEvents||(L.onBlur(R),D.$isFocused=!1)},L),g.addListener(this.text,"focus",function(R){if(!D.ignoreFocusEvents){if(D.$isFocused=!0,w.isEdge)try{if(!document.hasFocus())return}catch{}L.onFocus(R),w.isEdge?setTimeout(D.resetSelection.bind(D)):D.resetSelection()}},L),this.$focusScroll=!1,L.on("beforeEndOperation",function(){var R=L.curOp,E=R&&R.command&&R.command.name;if(E!="insertstring"){var z=E&&(R.docChanged||R.selectionChanged);D.inComposition&&z&&(D.lastValue=D.text.value="",D.onCompositionEnd()),D.resetSelection()}}),L.on("changeSelection",this.setAriaLabel.bind(this)),this.resetSelection=b?this.$resetSelectionIOS:this.$resetSelection,this.$isFocused&&L.onFocus(),this.inputHandler=null,this.afterContextMenu=!1,g.addCommandKeyListener(this.text,function(R,E,z){if(!D.inComposition)return L.onCommandKey(R,E,z)},L),g.addListener(this.text,"select",this.onSelect.bind(this),L),g.addListener(this.text,"input",this.onInput.bind(this),L),g.addListener(this.text,"cut",this.onCut.bind(this),L),g.addListener(this.text,"copy",this.onCopy.bind(this),L),g.addListener(this.text,"paste",this.onPaste.bind(this),L),(!("oncut"in this.text)||!("oncopy"in this.text)||!("onpaste"in this.text))&&g.addListener(C,"keydown",function(R){if(!(w.isMac&&!R.metaKey||!R.ctrlKey))switch(R.keyCode){case 67:D.onCopy(R);break;case 86:D.onPaste(R);break;case 88:D.onCut(R);break}},L),this.syncComposition=d.delayedCall(this.onCompositionUpdate.bind(this),50).schedule.bind(null,null),g.addListener(this.text,"compositionstart",this.onCompositionStart.bind(this),L),g.addListener(this.text,"compositionupdate",this.onCompositionUpdate.bind(this),L),g.addListener(this.text,"keyup",this.onKeyup.bind(this),L),g.addListener(this.text,"keydown",this.syncComposition.bind(this),L),g.addListener(this.text,"compositionend",this.onCompositionEnd.bind(this),L),this.closeTimeout,g.addListener(this.text,"mouseup",this.$onContextMenu.bind(this),L),g.addListener(this.text,"mousedown",function(R){R.preventDefault(),D.onContextMenuClose()},L),g.addListener(L.renderer.scroller,"contextmenu",this.$onContextMenu.bind(this),L),g.addListener(this.text,"contextmenu",this.$onContextMenu.bind(this),L),b&&this.addIosSelectionHandler(C,L,this.text)}return k.prototype.addIosSelectionHandler=function(C,L,D){var R=this,E=null,z=!1;D.addEventListener("keydown",function(O){E&&clearTimeout(E),z=!0},!0),D.addEventListener("keyup",function(O){E=setTimeout(function(){z=!1},100)},!0);var F=function(O){if(document.activeElement===D&&!(z||R.inComposition||L.$mouseHandler.isMousePressed)&&!R.copied){var $=D.selectionStart,A=D.selectionEnd,N=null,B=0;if($==0?N=s.up:$==1?N=s.home:A>R.lastSelectionEnd&&R.lastValue[A]==`
167
167
  `?N=s.end:$<R.lastSelectionStart&&R.lastValue[$-1]==" "?(N=s.left,B=p.option):$<R.lastSelectionStart||$==R.lastSelectionStart&&R.lastSelectionEnd!=R.lastSelectionStart&&$==A?N=s.left:A>R.lastSelectionEnd&&R.lastValue.slice(0,A).split(`
168
168
  `).length>2?N=s.down:A>R.lastSelectionEnd&&R.lastValue[A-1]==" "?(N=s.right,B=p.option):(A>R.lastSelectionEnd||A==R.lastSelectionEnd&&R.lastSelectionEnd!=R.lastSelectionStart&&$==A)&&(N=s.right),$!==A&&(B|=p.shift),N){var U=L.onCommandKey({},B,N);if(!U&&L.commands){N=s.keyCodeToString(N);var K=L.commands.findKeyCommand(B,N);K&&L.execCommand(K)}R.lastSelectionStart=$,R.lastSelectionEnd=A,R.resetSelection("")}}};document.addEventListener("selectionchange",F),L.on("destroy",function(){document.removeEventListener("selectionchange",F)})},k.prototype.onContextMenuClose=function(){var C=this;clearTimeout(this.closeTimeout),this.closeTimeout=setTimeout(function(){C.tempStyle&&(C.text.style.cssText=C.tempStyle,C.tempStyle=""),C.host.renderer.$isMousePressed=!1,C.host.renderer.$keepTextAreaAtCursor&&C.host.renderer.$moveTextAreaToCursor()},0)},k.prototype.$onContextMenu=function(C){this.host.textInput.onContextMenu(C),this.onContextMenuClose()},k.prototype.onKeyup=function(C){C.keyCode==27&&this.text.value.length<this.text.selectionStart&&(this.inComposition||(this.lastValue=this.text.value),this.lastSelectionStart=this.lastSelectionEnd=-1,this.resetSelection()),this.syncComposition()},k.prototype.cancelComposition=function(){this.ignoreFocusEvents=!0,this.text.blur(),this.text.focus(),this.ignoreFocusEvents=!1},k.prototype.onCompositionStart=function(C){if(!(this.inComposition||!this.host.onCompositionStart||this.host.$readOnly)&&(this.inComposition={},!this.commandMode)){C.data&&(this.inComposition.useTextareaForIME=!1),setTimeout(this.onCompositionUpdate.bind(this),0),this.host._signal("compositionStart"),this.host.on("mousedown",this.cancelComposition);var L=this.host.getSelectionRange();L.end.row=L.start.row,L.end.column=L.start.column,this.inComposition.markerRange=L,this.inComposition.selectionStart=this.lastSelectionStart,this.host.onCompositionStart(this.inComposition),this.inComposition.useTextareaForIME?(this.lastValue=this.text.value="",this.lastSelectionStart=0,this.lastSelectionEnd=0):(this.text.msGetInputContext&&(this.inComposition.context=this.text.msGetInputContext()),this.text.getInputContext&&(this.inComposition.context=this.text.getInputContext()))}},k.prototype.onCompositionUpdate=function(){if(!(!this.inComposition||!this.host.onCompositionUpdate||this.host.$readOnly)){if(this.commandMode)return this.cancelComposition();if(this.inComposition.useTextareaForIME)this.host.onCompositionUpdate(this.text.value);else{var C=this.text.value;this.sendText(C),this.inComposition.markerRange&&(this.inComposition.context&&(this.inComposition.markerRange.start.column=this.inComposition.selectionStart=this.inComposition.context.compositionStartOffset),this.inComposition.markerRange.end.column=this.inComposition.markerRange.start.column+this.lastSelectionEnd-this.inComposition.selectionStart+this.lastRestoreEnd)}}},k.prototype.onCompositionEnd=function(C){!this.host.onCompositionEnd||this.host.$readOnly||(this.inComposition=!1,this.host.onCompositionEnd(),this.host.off("mousedown",this.cancelComposition),C&&this.onInput())},k.prototype.onCut=function(C){this.doCopy(C,!0)},k.prototype.onCopy=function(C){this.doCopy(C,!1)},k.prototype.onPaste=function(C){var L=this.handleClipboardData(C);a.pasteCancelled()||(typeof L=="string"?(L&&this.host.onPaste(L,C),w.isIE&&setTimeout(this.resetSelection),g.preventDefault(C)):(this.text.value="",this.pasted=!0))},k.prototype.doCopy=function(C,L){var D=this,R=this.host.getCopyText();if(!R)return g.preventDefault(C);this.handleClipboardData(C,R)?(b&&(this.resetSelection(R),this.copied=R,setTimeout(function(){D.copied=!1},10)),L?this.host.onCut():this.host.onCopy(),g.preventDefault(C)):(this.copied=!0,this.text.value=R,this.text.select(),setTimeout(function(){D.copied=!1,D.resetSelection(),L?D.host.onCut():D.host.onCopy()}))},k.prototype.handleClipboardData=function(C,L,D){var R=C.clipboardData||window.clipboardData;if(!(!R||l)){var E=u||D?"Text":"text/plain";try{return L?R.setData(E,L)!==!1:R.getData(E)}catch(z){if(!D)return this.handleClipboardData(z,L,!0)}}},k.prototype.onInput=function(C){if(this.inComposition)return this.onCompositionUpdate();if(C&&C.inputType){if(C.inputType=="historyUndo")return this.host.execCommand("undo");if(C.inputType=="historyRedo")return this.host.execCommand("redo")}var L=this.text.value,D=this.sendText(L,!0);(L.length>i+100||x.test(D)||I&&this.lastSelectionStart<1&&this.lastSelectionStart==this.lastSelectionEnd)&&this.resetSelection()},k.prototype.sendText=function(C,L){if(this.afterContextMenu&&(this.afterContextMenu=!1),this.pasted)return this.resetSelection(),C&&this.host.onPaste(C),this.pasted=!1,"";for(var D=this.text.selectionStart,R=this.text.selectionEnd,E=this.lastSelectionStart,z=this.lastValue.length-this.lastSelectionEnd,F=C,O=C.length-D,$=C.length-R,A=0;E>0&&this.lastValue[A]==C[A];)A++,E--;for(F=F.slice(A),A=1;z>0&&this.lastValue.length-A>this.lastSelectionStart-1&&this.lastValue[this.lastValue.length-A]==C[C.length-A];)A++,z--;O-=A-1,$-=A-1;var N=F.length-A+1;if(N<0&&(E=-N,N=0),F=F.slice(0,N),!L&&!F&&!O&&!E&&!z&&!$)return"";this.sendingText=!0;var B=!1;return w.isAndroid&&F==". "&&(F=" ",B=!0),F&&!E&&!z&&!O&&!$||this.commandMode?this.host.onTextInput(F):this.host.onTextInput(F,{extendLeft:E,extendRight:z,restoreStart:O,restoreEnd:$}),this.sendingText=!1,this.lastValue=C,this.lastSelectionStart=D,this.lastSelectionEnd=R,this.lastRestoreEnd=$,B?`
169
169
  `:F},k.prototype.onSelect=function(C){var L=this;if(!this.inComposition){var D=function(R){return R.selectionStart===0&&R.selectionEnd>=L.lastValue.length&&R.value===L.lastValue&&L.lastValue&&R.selectionEnd!==L.lastSelectionEnd};this.copied?this.copied=!1:D(this.text)?(this.host.selectAll(),this.resetSelection()):I&&this.text.selectionStart!=this.lastSelectionStart&&this.resetSelection()}},k.prototype.$resetSelectionIOS=function(C){if(!(!this.$isFocused||this.copied&&!C||this.sendingText)){C||(C="");var L=`
@@ -175,7 +175,7 @@ System.register(["vue","vue-router","single-spa","vuex","vuetify"],function(er,o
175
175
  `+R,D+=1,L+=1);R.length>i&&(L<i&&D<i?R=R.slice(0,i):(R=`
176
176
  `,L==D?L=D=0:(L=0,D=1)));var U=R+`
177
177
 
178
- `;U!=this.lastValue&&(this.text.value=this.lastValue=U,this.lastSelectionStart=this.lastSelectionEnd=U.length)}if(this.afterContextMenu&&(this.lastSelectionStart=this.text.selectionStart,this.lastSelectionEnd=this.text.selectionEnd),this.lastSelectionEnd!=D||this.lastSelectionStart!=L||this.text.selectionEnd!=this.lastSelectionEnd)try{this.text.setSelectionRange(L,D),this.lastSelectionStart=L,this.lastSelectionEnd=D}catch{}this.inComposition=!1}},k.prototype.setHost=function(C){this.host=C},k.prototype.setNumberOfExtraLines=function(C){if(this.rowStart=Number.MAX_SAFE_INTEGER,this.rowEnd=Number.MIN_SAFE_INTEGER,C<0){this.numberOfExtraLines=0;return}this.numberOfExtraLines=C},k.prototype.setAriaLabel=function(){var C="";if(this.host.$textInputAriaLabel&&(C+="".concat(this.host.$textInputAriaLabel,", ")),this.host.session){var L=this.host.session.selection.cursor.row;C+=m("text-input.aria-label","Cursor at row $0",[L+1])}this.text.setAttribute("aria-label",C)},k.prototype.setAriaOptions=function(C){C.activeDescendant?(this.text.setAttribute("aria-haspopup","true"),this.text.setAttribute("aria-autocomplete",C.inline?"both":"list"),this.text.setAttribute("aria-activedescendant",C.activeDescendant)):(this.text.setAttribute("aria-haspopup","false"),this.text.setAttribute("aria-autocomplete","both"),this.text.removeAttribute("aria-activedescendant")),C.role&&this.text.setAttribute("role",C.role),C.setLabel&&(this.text.setAttribute("aria-roledescription",m("text-input.aria-roledescription","editor")),this.setAriaLabel())},k.prototype.focus=function(){var C=this;if(this.setAriaOptions({setLabel:this.host.renderer.enableKeyboardAccessibility}),this.tempStyle||c||this.$focusScroll=="browser")return this.text.focus({preventScroll:!0});var L=this.text.style.top;this.text.style.position="fixed",this.text.style.top="0px";try{var D=this.text.getBoundingClientRect().top!=0}catch{return}var R=[];if(D)for(var E=this.text.parentElement;E&&E.nodeType==1;)R.push(E),E.setAttribute("ace_nocontext","true"),!E.parentElement&&E.getRootNode?E=E.getRootNode().host:E=E.parentElement;this.text.focus({preventScroll:!0}),D&&R.forEach(function(z){z.removeAttribute("ace_nocontext")}),setTimeout(function(){C.text.style.position="",C.text.style.top=="0px"&&(C.text.style.top=L)},0)},k.prototype.blur=function(){this.text.blur()},k.prototype.isFocused=function(){return this.$isFocused},k.prototype.setInputHandler=function(C){this.inputHandler=C},k.prototype.getInputHandler=function(){return this.inputHandler},k.prototype.getElement=function(){return this.text},k.prototype.setCommandMode=function(C){this.commandMode=C,this.text.readOnly=!1},k.prototype.setReadOnly=function(C){this.commandMode||(this.text.readOnly=C)},k.prototype.setCopyWithEmptySelection=function(C){},k.prototype.onContextMenu=function(C){this.afterContextMenu=!0,this.resetSelection(),this.host._emit("nativecontextmenu",{target:this.host,domEvent:C}),this.moveToMouse(C,!0)},k.prototype.moveToMouse=function(C,L){var D=this;this.tempStyle||(this.tempStyle=this.text.style.cssText),this.text.style.cssText=(L?"z-index:100000;":"")+(w.isIE?"opacity:0.1;":"")+"text-indent: -"+(this.lastSelectionStart+this.lastSelectionEnd)*this.host.renderer.characterWidth*.5+"px;";var R=this.host.container.getBoundingClientRect(),E=h.computedStyle(this.host.container),z=R.top+(parseInt(E.borderTopWidth)||0),F=R.left+(parseInt(E.borderLeftWidth)||0),O=R.bottom-z-this.text.clientHeight-2,$=function(A){h.translate(D.text,A.clientX-F-2,Math.min(A.clientY-z-2,O))};$(C),C.type=="mousedown"&&(this.host.renderer.$isMousePressed=!0,clearTimeout(this.closeTimeout),w.isWin&&g.capture(this.host.container,$,this.onContextMenuClose.bind(this)))},k.prototype.destroy=function(){this.text.parentElement&&this.text.parentElement.removeChild(this.text)},k}();r.TextInput=_,r.$setUserAgentForTests=function(k,C){I=k,b=C}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(e,r,f){var g=e("../lib/useragent"),m=0,w=550,h=function(){function l(u){u.$clickSelection=null;var c=u.editor;c.setDefaultHandler("mousedown",this.onMouseDown.bind(u)),c.setDefaultHandler("dblclick",this.onDoubleClick.bind(u)),c.setDefaultHandler("tripleclick",this.onTripleClick.bind(u)),c.setDefaultHandler("quadclick",this.onQuadClick.bind(u)),c.setDefaultHandler("mousewheel",this.onMouseWheel.bind(u));var i=["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"];i.forEach(function(s){u[s]=this[s]},this),u.selectByLines=this.extendSelectionBy.bind(u,"getLineRange"),u.selectByWords=this.extendSelectionBy.bind(u,"getWordRange")}return l.prototype.onMouseDown=function(u){var c=u.inSelection(),i=u.getDocumentPosition();this.mousedownEvent=u;var s=this.editor,p=u.getButton();if(p!==0){var b=s.getSelectionRange(),x=b.isEmpty();(x||p==1)&&s.selection.moveToPosition(i),p==2&&(s.textInput.onContextMenu(u.domEvent),g.isMozilla||u.preventDefault());return}if(this.mousedownEvent.time=Date.now(),c&&!s.isFocused()&&(s.focus(),this.$focusTimeout&&!this.$clickSelection&&!s.inMultiSelectMode)){this.setState("focusWait"),this.captureMouse(u);return}return this.captureMouse(u),this.startSelect(i,u.domEvent._clicks>1),u.preventDefault()},l.prototype.startSelect=function(u,c){u=u||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var i=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?i.selection.selectToPosition(u):c||i.selection.moveToPosition(u),c||this.select(),i.setStyle("ace_selecting"),this.setState("select"))},l.prototype.select=function(){var u,c=this.editor,i=c.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var s=this.$clickSelection.comparePoint(i);if(s==-1)u=this.$clickSelection.end;else if(s==1)u=this.$clickSelection.start;else{var p=a(this.$clickSelection,i,c.session);i=p.cursor,u=p.anchor}c.selection.setSelectionAnchor(u.row,u.column)}c.selection.selectToPosition(i),c.renderer.scrollCursorIntoView()},l.prototype.extendSelectionBy=function(u){var c,i=this.editor,s=i.renderer.screenToTextCoordinates(this.x,this.y),p=i.selection[u](s.row,s.column);if(this.$clickSelection){var b=this.$clickSelection.comparePoint(p.start),x=this.$clickSelection.comparePoint(p.end);if(b==-1&&x<=0)c=this.$clickSelection.end,(p.end.row!=s.row||p.end.column!=s.column)&&(s=p.start);else if(x==1&&b>=0)c=this.$clickSelection.start,(p.start.row!=s.row||p.start.column!=s.column)&&(s=p.end);else if(b==-1&&x==1)s=p.end,c=p.start;else{var I=a(this.$clickSelection,s,i.session);s=I.cursor,c=I.anchor}i.selection.setSelectionAnchor(c.row,c.column)}i.selection.selectToPosition(s),i.renderer.scrollCursorIntoView()},l.prototype.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting")},l.prototype.focusWait=function(){var u=d(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),c=Date.now();(u>m||c-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},l.prototype.onDoubleClick=function(u){var c=u.getDocumentPosition(),i=this.editor,s=i.session,p=s.getBracketRange(c);p?(p.isEmpty()&&(p.start.column--,p.end.column++),this.setState("select")):(p=i.selection.getWordRange(c.row,c.column),this.setState("selectByWords")),this.$clickSelection=p,this.select()},l.prototype.onTripleClick=function(u){var c=u.getDocumentPosition(),i=this.editor;this.setState("selectByLines");var s=i.getSelectionRange();s.isMultiLine()&&s.contains(c.row,c.column)?(this.$clickSelection=i.selection.getLineRange(s.start.row),this.$clickSelection.end=i.selection.getLineRange(s.end.row).end):this.$clickSelection=i.selection.getLineRange(c.row),this.select()},l.prototype.onQuadClick=function(u){var c=this.editor;c.selectAll(),this.$clickSelection=c.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 c=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var i=this.$lastScroll,s=u.domEvent.timeStamp,p=s-i.t,b=p?u.wheelX/p:i.vx,x=p?u.wheelY/p:i.vy;p<w&&(b=(b+i.vx)/2,x=(x+i.vy)/2);var I=Math.abs(b/x),_=!1;if(I>=1&&c.renderer.isScrollableBy(u.wheelX*u.speed,0)&&(_=!0),I<=1&&c.renderer.isScrollableBy(0,u.wheelY*u.speed)&&(_=!0),_)i.allowed=s;else if(s-i.allowed<w){var k=Math.abs(b)<=1.5*Math.abs(i.vx)&&Math.abs(x)<=1.5*Math.abs(i.vy);k?(_=!0,i.allowed=s):i.allowed=0}if(i.t=s,i.vx=b,i.vy=x,_)return c.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 d(l,u,c,i){return Math.sqrt(Math.pow(c-l,2)+Math.pow(i-u,2))}function a(l,u,c){if(l.start.row==l.end.row)var i=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 i=3*u.column-2*c.getLine(l.start.row).length;else var i=2*u.row-l.start.row-l.end.row;return i<0?{cursor:l.start,anchor:l.end}:{cursor:l.end,anchor:l.start}}}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(e,r,f){var g=e("../lib/event"),m=e("../lib/useragent"),w=function(){function h(d,a){this.speed,this.wheelX,this.wheelY,this.domEvent=d,this.editor=a,this.x=this.clientX=d.clientX,this.y=this.clientY=d.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1}return h.prototype.stopPropagation=function(){g.stopPropagation(this.domEvent),this.propagationStopped=!0},h.prototype.preventDefault=function(){g.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 d=this.getDocumentPosition().row,a=this.editor.session.documentToScreenRow(d,0),l=this.editor.session.documentToScreenRow(this.editor.renderer.$gutterLayer.$lines.get(0).row,0);return a-l},h.prototype.inSelection=function(){if(this.$inSelection!==null)return this.$inSelection;var d=this.editor,a=d.getSelectionRange();if(a.isEmpty())this.$inSelection=!1;else{var l=this.getDocumentPosition();this.$inSelection=a.contains(l.row,l.column)}return this.$inSelection},h.prototype.getButton=function(){return g.getButton(this.domEvent)},h.prototype.getShiftKey=function(){return this.domEvent.shiftKey},h.prototype.getAccelKey=function(){return m.isMac?this.domEvent.metaKey:this.domEvent.ctrlKey},h}();r.MouseEvent=w}),ace.define("ace/lib/scroll",["require","exports","module"],function(e,r,f){r.preventParentScroll=function(g){g.stopPropagation();var m=g.currentTarget,w=m.scrollHeight>m.clientHeight;w||g.preventDefault()}}),ace.define("ace/tooltip",["require","exports","module","ace/lib/dom","ace/lib/event","ace/range","ace/lib/scroll"],function(e,r,f){var g=this&&this.__extends||function(){var s=function(p,b){return s=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[_])},s(p,b)};return function(p,b){if(typeof b!="function"&&b!==null)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");s(p,b);function x(){this.constructor=p}p.prototype=b===null?Object.create(b):(x.prototype=b.prototype,new x)}}(),m=this&&this.__values||function(s){var p=typeof Symbol=="function"&&Symbol.iterator,b=p&&s[p],x=0;if(b)return b.call(s);if(s&&typeof s.length=="number")return{next:function(){return s&&x>=s.length&&(s=void 0),{value:s&&s[x++],done:!s}}};throw new TypeError(p?"Object is not iterable.":"Symbol.iterator is not defined.")},w=e("./lib/dom");e("./lib/event");var h=e("./range").Range,d=e("./lib/scroll").preventParentScroll,a="ace_tooltip",l=function(){function s(p){this.isOpen=!1,this.$element=null,this.$parentNode=p}return s.prototype.$init=function(){return this.$element=w.createElement("div"),this.$element.className=a,this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},s.prototype.getElement=function(){return this.$element||this.$init()},s.prototype.setText=function(p){this.getElement().textContent=p},s.prototype.setHtml=function(p){this.getElement().innerHTML=p},s.prototype.setPosition=function(p,b){this.getElement().style.left=p+"px",this.getElement().style.top=b+"px"},s.prototype.setClassName=function(p){w.addCssClass(this.getElement(),p)},s.prototype.setTheme=function(p){this.theme&&(this.theme.isDark&&w.removeCssClass(this.getElement(),"ace_dark"),this.theme.cssClass&&w.removeCssClass(this.getElement(),this.theme.cssClass)),p.isDark&&w.addCssClass(this.getElement(),"ace_dark"),p.cssClass&&w.addCssClass(this.getElement(),p.cssClass),this.theme={isDark:p.isDark,cssClass:p.cssClass}},s.prototype.show=function(p,b,x){p!=null&&this.setText(p),b!=null&&x!=null&&this.setPosition(b,x),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},s.prototype.hide=function(p){this.isOpen&&(this.getElement().style.display="none",this.getElement().className=a,this.isOpen=!1)},s.prototype.getHeight=function(){return this.getElement().offsetHeight},s.prototype.getWidth=function(){return this.getElement().offsetWidth},s.prototype.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)},s}(),u=function(){function s(){this.popups=[]}return s.prototype.addPopup=function(p){this.popups.push(p),this.updatePopups()},s.prototype.removePopup=function(p){var b=this.popups.indexOf(p);b!==-1&&(this.popups.splice(b,1),this.updatePopups())},s.prototype.updatePopups=function(){var p,b,x,I;this.popups.sort(function(F,O){return O.priority-F.priority});var _=[];try{for(var k=m(this.popups),C=k.next();!C.done;C=k.next()){var L=C.value,D=!0;try{for(var R=(x=void 0,m(_)),E=R.next();!E.done;E=R.next()){var z=E.value;if(this.doPopupsOverlap(z,L)){D=!1;break}}}catch(F){x={error:F}}finally{try{E&&!E.done&&(I=R.return)&&I.call(R)}finally{if(x)throw x.error}}D?_.push(L):L.hide()}}catch(F){p={error:F}}finally{try{C&&!C.done&&(b=k.return)&&b.call(k)}finally{if(p)throw p.error}}},s.prototype.doPopupsOverlap=function(p,b){var x=p.getElement().getBoundingClientRect(),I=b.getElement().getBoundingClientRect();return x.left<I.right&&x.right>I.left&&x.top<I.bottom&&x.bottom>I.top},s}(),c=new u;r.popupManager=c,r.Tooltip=l;var i=function(s){g(p,s);function p(b){b===void 0&&(b=document.body);var x=s.call(this,b)||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",d),x}return p.prototype.addToEditor=function(b){b.on("mousemove",this.onMouseMove),b.on("mousedown",this.hide);var x=b.renderer.getMouseEventTarget();x&&typeof x.removeEventListener=="function"&&x.addEventListener("mouseout",this.onMouseOut,!0)},p.prototype.removeFromEditor=function(b){b.off("mousemove",this.onMouseMove),b.off("mousedown",this.hide);var x=b.renderer.getMouseEventTarget();x&&typeof x.removeEventListener=="function"&&x.removeEventListener("mouseout",this.onMouseOut,!0),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},p.prototype.onMouseMove=function(b,x){this.lastEvent=b,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=b,this.timeout=setTimeout(this.waitForHover,this.idleTime))},p.prototype.waitForHover=function(){this.timeout&&clearTimeout(this.timeout);var b=Date.now()-this.lastT;if(this.idleTime-b>10){this.timeout=setTimeout(this.waitForHover,this.idleTime-b);return}this.timeout=null,this.lastEvent&&!this.isOutsideOfText(this.lastEvent)&&this.$gatherData(this.lastEvent,this.lastEvent.editor)},p.prototype.isOutsideOfText=function(b){var x=b.editor,I=b.getDocumentPosition(),_=x.session.getLine(I.row);if(I.column==_.length){var k=x.renderer.pixelToScreenCoordinates(b.clientX,b.clientY),C=x.session.documentToScreenPosition(I.row,I.column);if(C.column!=k.column||C.row!=k.row)return!0}return!1},p.prototype.setDataProvider=function(b){this.$gatherData=b},p.prototype.showForRange=function(b,x,I,_){if(!(_&&_!=this.lastEvent)&&!(this.isOpen&&document.activeElement==this.getElement())){var k=b.renderer;this.isOpen||(c.addPopup(this),this.$registerCloseEvents(),this.setTheme(k.theme)),this.isOpen=!0,this.range=h.fromPoints(x.start,x.end);var C=k.textToScreenCoordinates(x.start.row,x.start.column),L=k.scroller.getBoundingClientRect();C.pageX<L.left&&(C.pageX=L.left);var D=this.getElement();D.innerHTML="",D.appendChild(I),D.style.maxHeight="",D.style.display="block",this.$setPosition(b,C,!0,x),w.$fixPositionBug(D)}},p.prototype.$setPosition=function(b,x,I,_){var k=10;I&&this.addMarker(_,b.session);var C=b.renderer,L=this.getElement(),D=L.offsetHeight,R=L.offsetWidth,E=x.pageY,z=x.pageX,F=window.innerHeight-E-C.lineHeight,O=this.$shouldPlaceAbove(D,E,F-k);L.style.maxHeight=(O?E:F)-k+"px",L.style.top=O?"":E+C.lineHeight+"px",L.style.bottom=O?window.innerHeight-E+"px":"",L.style.left=Math.min(z,window.innerWidth-R-k)+"px"},p.prototype.$shouldPlaceAbove=function(b,x,I){return!(x-b<0&&x<I)},p.prototype.addMarker=function(b,x){this.marker&&this.$markerSession.removeMarker(this.marker),this.$markerSession=x,this.marker=x&&x.addMarker(b,"ace_highlight-marker","text")},p.prototype.hide=function(b){b&&this.$fromKeyboard&&b.type=="keydown"&&b.code=="Escape"||!b&&document.activeElement==this.getElement()||b&&b.target&&(b.type!="keydown"||b.ctrlKey||b.metaKey)&&this.$element.contains(b.target)||(this.lastEvent=null,this.timeout&&clearTimeout(this.timeout),this.timeout=null,this.addMarker(null),this.isOpen&&(this.$fromKeyboard=!1,this.$removeCloseEvents(),this.getElement().style.display="none",this.isOpen=!1,c.removePopup(this)))},p.prototype.$registerCloseEvents=function(){window.addEventListener("keydown",this.hide,!0),window.addEventListener("wheel",this.hide,!0),window.addEventListener("mousedown",this.hide,!0)},p.prototype.$removeCloseEvents=function(){window.removeEventListener("keydown",this.hide,!0),window.removeEventListener("wheel",this.hide,!0),window.removeEventListener("mousedown",this.hide,!0)},p.prototype.onMouseOut=function(b){this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.lastEvent=null,this.isOpen&&(!b.relatedTarget||this.getElement().contains(b.relatedTarget)||b&&b.currentTarget.contains(b.relatedTarget)||b.relatedTarget.classList.contains("ace_content")||this.hide())},p}(l);r.HoverTooltip=i}),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/mouse/mouse_event","ace/tooltip","ace/config","ace/range"],function(e,r,f){var g=this&&this.__extends||function(){var i=function(s,p){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,x){b.__proto__=x}||function(b,x){for(var I in x)Object.prototype.hasOwnProperty.call(x,I)&&(b[I]=x[I])},i(s,p)};return function(s,p){if(typeof p!="function"&&p!==null)throw new TypeError("Class extends value "+String(p)+" is not a constructor or null");i(s,p);function b(){this.constructor=s}s.prototype=p===null?Object.create(p):(b.prototype=p.prototype,new b)}}(),m=this&&this.__values||function(i){var s=typeof Symbol=="function"&&Symbol.iterator,p=s&&i[s],b=0;if(p)return p.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&b>=i.length&&(i=void 0),{value:i&&i[b++],done:!i}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")},w=e("../lib/dom"),h=e("./mouse_event").MouseEvent,d=e("../tooltip").HoverTooltip,a=e("../config").nls,l=e("../range").Range;function u(i){var s=i.editor,p=s.renderer.$gutterLayer;i.$tooltip=new c(s),i.$tooltip.addToEditor(s),i.$tooltip.setDataProvider(function(b,x){var I=b.getDocumentPosition().row;i.$tooltip.showTooltip(I)}),i.editor.setDefaultHandler("guttermousedown",function(b){if(!(!s.isFocused()||b.getButton()!=0)){var x=p.getRegion(b);if(x!="foldWidgets"){var I=b.getDocumentPosition().row,_=s.session.selection;if(b.getShiftKey())_.selectTo(I,0);else{if(b.domEvent.detail==2)return s.selectAll(),b.preventDefault();i.$clickSelection=s.selection.getLineRange(I)}return i.setState("selectByLines"),i.captureMouse(b),b.preventDefault()}}})}r.GutterHandler=u;var c=function(i){g(s,i);function s(p){var b=i.call(this,p.container)||this;b.id="gt"+ ++s.$uid,b.editor=p,b.visibleTooltipRow;var x=b.getElement();return x.setAttribute("role","tooltip"),x.setAttribute("id",b.id),x.style.pointerEvents="auto",b.idleTime=50,b.onDomMouseMove=b.onDomMouseMove.bind(b),b.onDomMouseOut=b.onDomMouseOut.bind(b),b.setClassName("ace_gutter-tooltip"),b}return s.prototype.onDomMouseMove=function(p){var b=new h(p,this.editor);this.onMouseMove(b,this.editor)},s.prototype.onDomMouseOut=function(p){var b=new h(p,this.editor);this.onMouseOut(b)},s.prototype.addToEditor=function(p){var b=p.renderer.$gutter;b.addEventListener("mousemove",this.onDomMouseMove),b.addEventListener("mouseout",this.onDomMouseOut),i.prototype.addToEditor.call(this,p)},s.prototype.removeFromEditor=function(p){var b=p.renderer.$gutter;b.removeEventListener("mousemove",this.onDomMouseMove),b.removeEventListener("mouseout",this.onDomMouseOut),i.prototype.removeFromEditor.call(this,p)},s.prototype.destroy=function(){this.editor&&this.removeFromEditor(this.editor),i.prototype.destroy.call(this)},Object.defineProperty(s,"annotationLabels",{get:function(){return{error:{singular:a("gutter-tooltip.aria-label.error.singular","error"),plural:a("gutter-tooltip.aria-label.error.plural","errors")},security:{singular:a("gutter-tooltip.aria-label.security.singular","security finding"),plural:a("gutter-tooltip.aria-label.security.plural","security findings")},warning:{singular:a("gutter-tooltip.aria-label.warning.singular","warning"),plural:a("gutter-tooltip.aria-label.warning.plural","warnings")},info:{singular:a("gutter-tooltip.aria-label.info.singular","information message"),plural:a("gutter-tooltip.aria-label.info.plural","information messages")},hint:{singular:a("gutter-tooltip.aria-label.hint.singular","suggestion"),plural:a("gutter-tooltip.aria-label.hint.plural","suggestions")}}},enumerable:!1,configurable:!0}),s.prototype.showTooltip=function(p){var b,x=this.editor.renderer.$gutterLayer,I=x.$annotations[p],_;I?_={displayText:Array.from(I.displayText),type:Array.from(I.type)}:_={displayText:[],type:[]};var k=x.session.getFoldLine(p);if(k&&x.$showFoldedAnnotations){for(var C={error:[],security:[],warning:[],info:[],hint:[]},L={error:1,security:2,warning:3,info:4,hint:5},D,R=p+1;R<=k.end.row;R++)if(x.$annotations[R])for(var E=0;E<x.$annotations[R].text.length;E++){var z=x.$annotations[R].type[E];C[z].push(x.$annotations[R].text[E]),(!D||L[z]<L[D])&&(D=z)}if(["error","security","warning"].includes(D)){var F="".concat(s.annotationsToSummaryString(C)," in folded code.");_.displayText.push(F),_.type.push(D+"_fold")}}if(_.displayText.length===0)return this.hide();for(var O={error:[],security:[],warning:[],info:[],hint:[]},$=x.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",R=0;R<_.displayText.length;R++){var A=w.createElement("span"),N=w.createElement("span");(b=N.classList).add.apply(b,["ace_".concat(_.type[R]),$]),N.setAttribute("aria-label","".concat(s.annotationLabels[_.type[R].replace("_fold","")].singular)),N.setAttribute("role","img"),N.appendChild(w.createTextNode(" ")),A.appendChild(N),A.appendChild(w.createTextNode(_.displayText[R])),A.appendChild(w.createElement("br")),O[_.type[R].replace("_fold","")].push(A)}var B=w.createElement("span");O.error.forEach(function(Q){return B.appendChild(Q)}),O.security.forEach(function(Q){return B.appendChild(Q)}),O.warning.forEach(function(Q){return B.appendChild(Q)}),O.info.forEach(function(Q){return B.appendChild(Q)}),O.hint.forEach(function(Q){return B.appendChild(Q)}),B.setAttribute("aria-live","polite");var U=this.$findLinkedAnnotationNode(p);U&&U.setAttribute("aria-describedby",this.id);var K=l.fromPoints({row:p,column:0},{row:p,column:0});this.showForRange(this.editor,K,B),this.visibleTooltipRow=p,this.editor._signal("showGutterTooltip",this)},s.prototype.$setPosition=function(p,b,x,I){var _=this.$findCellByRow(I.start.row);if(_){var k=_&&_.element,C=k&&k.querySelector(".ace_gutter_annotation");if(C){var L=C.getBoundingClientRect();if(L){var D={pageX:L.right,pageY:L.top};return i.prototype.$setPosition.call(this,p,D,!1,I)}}}},s.prototype.$shouldPlaceAbove=function(p,b,x){return x<p},s.prototype.$findLinkedAnnotationNode=function(p){var b=this.$findCellByRow(p);if(b){var x=b.element;if(x.childNodes.length>2)return x.childNodes[2]}},s.prototype.$findCellByRow=function(p){return this.editor.renderer.$gutterLayer.$lines.cells.find(function(b){return b.row===p})},s.prototype.hide=function(p){if(this.isOpen){if(this.$element.removeAttribute("aria-live"),this.visibleTooltipRow!=null){var b=this.$findLinkedAnnotationNode(this.visibleTooltipRow);b&&b.removeAttribute("aria-describedby")}this.visibleTooltipRow=void 0,this.editor._signal("hideGutterTooltip",this),i.prototype.hide.call(this,p)}},s.annotationsToSummaryString=function(p){var b,x,I=[],_=["error","security","warning","info","hint"];try{for(var k=m(_),C=k.next();!C.done;C=k.next()){var L=C.value;if(p[L].length){var D=p[L].length===1?s.annotationLabels[L].singular:s.annotationLabels[L].plural;I.push("".concat(p[L].length," ").concat(D))}}}catch(R){b={error:R}}finally{try{C&&!C.done&&(x=k.return)&&x.call(k)}finally{if(b)throw b.error}}return I.join(", ")},s.prototype.isOutsideOfText=function(p){var b=p.editor,x=b.renderer.$gutter.getBoundingClientRect();return!(p.clientX>=x.left&&p.clientX<=x.right&&p.clientY>=x.top&&p.clientY<=x.bottom)},s}(d);c.$uid=0,r.GutterTooltip=c}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(e,r,f){var g=e("../lib/dom"),m=e("../lib/event"),w=e("../lib/useragent"),h=200,d=200,a=5;function l(c){var i=c.editor,s=g.createElement("div");s.style.cssText="top:-100px;position:absolute;z-index:2147483647;opacity:0.5",s.textContent=" ";var p=["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"];p.forEach(function(ne){c[ne]=this[ne]},this),i.on("mousedown",this.onMouseDown.bind(c));var b=i.container,x,I,_,k,C,L,D=0,R,E,z,F,O;this.onDragStart=function(ne){if(this.cancelDrag||!b.draggable){var le=this;return setTimeout(function(){le.startSelect(),le.captureMouse(ne)},0),ne.preventDefault()}C=i.getSelectionRange();var se=ne.dataTransfer;se.effectAllowed=i.getReadOnly()?"copy":"copyMove",i.container.appendChild(s),se.setDragImage&&se.setDragImage(s,0,0),setTimeout(function(){i.container.removeChild(s)}),se.clearData(),se.setData("Text",i.session.getTextRange()),E=!0,this.setState("drag")},this.onDragEnd=function(ne){if(b.draggable=!1,E=!1,this.setState(null),!i.getReadOnly()){var le=ne.dataTransfer.dropEffect;!R&&le=="move"&&i.session.remove(i.getSelectionRange()),i.$resetCursorStyle()}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(ne){if(!(i.getReadOnly()||!J(ne.dataTransfer)))return I=ne.clientX,_=ne.clientY,x||B(),D++,ne.dataTransfer.dropEffect=R=he(ne),m.preventDefault(ne)},this.onDragOver=function(ne){if(!(i.getReadOnly()||!J(ne.dataTransfer)))return I=ne.clientX,_=ne.clientY,x||(B(),D++),K!==null&&(K=null),ne.dataTransfer.dropEffect=R=he(ne),m.preventDefault(ne)},this.onDragLeave=function(ne){if(D--,D<=0&&x)return U(),R=null,m.preventDefault(ne)},this.onDrop=function(ne){if(L){var le=ne.dataTransfer;if(E)switch(R){case"move":C.contains(L.row,L.column)?C={start:L,end:L}:C=i.moveText(C,L);break;case"copy":C=i.moveText(C,L,!0);break}else{var se=le.getData("Text");C={start:L,end:i.session.insert(L,se)},i.focus(),R=null}return U(),m.preventDefault(ne)}},m.addListener(b,"dragstart",this.onDragStart.bind(c),i),m.addListener(b,"dragend",this.onDragEnd.bind(c),i),m.addListener(b,"dragenter",this.onDragEnter.bind(c),i),m.addListener(b,"dragover",this.onDragOver.bind(c),i),m.addListener(b,"dragleave",this.onDragLeave.bind(c),i),m.addListener(b,"drop",this.onDrop.bind(c),i);function $(ne,le){var se=Date.now(),de=!le||ne.row!=le.row,me=!le||ne.column!=le.column;if(!F||de||me)i.moveCursorToPosition(ne),F=se,O={x:I,y:_};else{var _e=u(O.x,O.y,I,_);_e>a?F=null:se-F>=d&&(i.renderer.scrollCursorIntoView(),F=null)}}function A(ne,le){var se=Date.now(),de=i.renderer.layerConfig.lineHeight,me=i.renderer.layerConfig.characterWidth,_e=i.renderer.scroller.getBoundingClientRect(),Te={x:{left:I-_e.left,right:_e.right-I},y:{top:_-_e.top,bottom:_e.bottom-_}},Me=Math.min(Te.x.left,Te.x.right),Ze=Math.min(Te.y.top,Te.y.bottom),Ge={row:ne.row,column:ne.column};Me/me<=2&&(Ge.column+=Te.x.left<Te.x.right?-3:2),Ze/de<=1&&(Ge.row+=Te.y.top<Te.y.bottom?-1:1);var lt=ne.row!=Ge.row,tt=ne.column!=Ge.column,ct=!le||ne.row!=le.row;lt||tt&&!ct?z?se-z>=h&&i.renderer.scrollCursorIntoView(Ge):z=se:z=null}function N(){var ne=L;L=i.renderer.screenToTextCoordinates(I,_),$(L,ne),A(L,ne)}function B(){C=i.selection.toOrientedRange(),x=i.session.addMarker(C,"ace_selection",i.getSelectionStyle()),i.clearSelection(),i.isFocused()&&i.renderer.$cursorLayer.setBlinking(!1),clearInterval(k),N(),k=setInterval(N,20),D=0,m.addListener(document,"mousemove",Q)}function U(){clearInterval(k),i.session.removeMarker(x),x=null,i.selection.fromOrientedRange(C),i.isFocused()&&!E&&i.$resetCursorStyle(),C=null,L=null,D=0,z=null,F=null,m.removeListener(document,"mousemove",Q)}var K=null;function Q(){K==null&&(K=setTimeout(function(){K!=null&&x&&U()},20))}function J(ne){var le=ne.types;return!le||Array.prototype.some.call(le,function(se){return se=="text/plain"||se=="Text"})}function he(ne){var le=["copy","copymove","all","uninitialized"],se=["move","copymove","linkmove","all","uninitialized"],de=w.isMac?ne.altKey:ne.ctrlKey,me="uninitialized";try{me=ne.dataTransfer.effectAllowed.toLowerCase()}catch{}var _e="none";return de&&le.indexOf(me)>=0?_e="copy":se.indexOf(me)>=0?_e="move":le.indexOf(me)>=0&&(_e="copy"),_e}}(function(){this.dragWait=function(){var c=Date.now()-this.mousedownEvent.time;c>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){var c=this.editor.container;c.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(c){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var c=this.editor,i=c.container;i.draggable=!0,c.renderer.$cursorLayer.setBlinking(!1),c.setStyle("ace_dragging");var s=w.isWin?"default":"move";c.renderer.setCursorStyle(s),this.setState("dragReady")},this.onMouseDrag=function(c){var i=this.editor.container;if(w.isIE&&this.state=="dragReady"){var s=u(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);s>3&&i.dragDrop()}if(this.state==="dragWait"){var s=u(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);s>0&&(i.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))}},this.onMouseDown=function(c){if(this.$dragEnabled){this.mousedownEvent=c;var i=this.editor,s=c.inSelection(),p=c.getButton(),b=c.domEvent.detail||1;if(b===1&&p===0&&s){if(c.editor.inMultiSelectMode&&(c.getAccelKey()||c.getShiftKey()))return;this.mousedownEvent.time=Date.now();var x=c.domEvent.target||c.domEvent.srcElement;if("unselectable"in x&&(x.unselectable="on"),i.getDragDelay()){if(w.isWebKit){this.cancelDrag=!0;var I=i.container;I.draggable=!0}this.setState("dragWait")}else this.startDrag();this.captureMouse(c,this.onMouseDrag.bind(this)),c.defaultPrevented=!0}}}}).call(l.prototype);function u(c,i,s,p){return Math.sqrt(Math.pow(s-c,2)+Math.pow(p-i,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 g=e("./mouse_event").MouseEvent,m=e("../lib/event"),w=e("../lib/dom");r.addTouchListeners=function(h,d){var a="scroll",l,u,c,i,s,p,b=0,x,I=0,_=0,k=0,C,L;function D(){var $=window.navigator&&window.navigator.clipboard,A=!1,N=function(){var K=d.getCopyText(),Q=d.session.getUndoManager().hasUndo();L.replaceChild(w.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"],Q&&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"]),L.firstChild)},B=function(K){return d.commands.canExecute(K,d)},U=function(K){var Q=K.target.getAttribute("action");if(Q=="more"||!A)return A=!A,N();Q=="paste"?$.readText().then(function(J){d.execCommand(Q,J)}):Q&&((Q=="cut"||Q=="copy")&&($?$.writeText(d.getCopyText()):document.execCommand("copy")),d.execCommand(Q)),L.firstChild.style.display="none",A=!1,Q!="openCommandPalette"&&d.focus()};L=w.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(K){a="menu",K.stopPropagation(),K.preventDefault(),d.textInput.focus()},ontouchend:function(K){K.stopPropagation(),K.preventDefault(),U(K)},onclick:U},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],d.container)}function R(){if(!d.getOption("enableMobileMenu")){L&&E();return}L||D();var $=d.selection.cursor,A=d.renderer.textToScreenCoordinates($.row,$.column),N=d.renderer.textToScreenCoordinates(0,0).pageX,B=d.renderer.scrollLeft,U=d.container.getBoundingClientRect();L.style.top=A.pageY-U.top-3+"px",A.pageX-U.left<U.width-70?(L.style.left="",L.style.right="10px"):(L.style.right="",L.style.left=N+B-U.left+"px"),L.style.display="",L.firstChild.style.display="none",d.on("input",E)}function E($){L&&(L.style.display="none"),d.off("input",E)}function z(){s=null,clearTimeout(s);var $=d.selection.getRange(),A=$.contains(x.row,x.column);($.isEmpty()||!A)&&(d.selection.moveToPosition(x),d.selection.selectWord()),a="wait",R()}function F(){s=null,clearTimeout(s),d.selection.moveToPosition(x);var $=I>=2?d.selection.getLineRange(x.row):d.session.getBracketRange(x);$&&!$.isEmpty()?d.selection.setRange($):d.selection.selectWord(),a="wait"}m.addListener(h,"contextmenu",function($){if(C){var A=d.textInput.getElement();A.focus()}},d),m.addListener(h,"touchstart",function($){var A=$.touches;if(s||A.length>1){clearTimeout(s),s=null,c=-1,a="zoom";return}C=d.$mouseHandler.isMousePressed=!0;var N=d.renderer.layerConfig.lineHeight,B=d.renderer.layerConfig.lineHeight,U=$.timeStamp;i=U;var K=A[0],Q=K.clientX,J=K.clientY;Math.abs(l-Q)+Math.abs(u-J)>N&&(c=-1),l=$.clientX=Q,u=$.clientY=J,_=k=0;var he=new g($,d);if(x=he.getDocumentPosition(),U-c<500&&A.length==1&&!b)I++,$.preventDefault(),$.button=0,F();else{I=0;var ne=d.selection.cursor,le=d.selection.isEmpty()?ne:d.selection.anchor,se=d.renderer.$cursorLayer.getPixelPosition(ne,!0),de=d.renderer.$cursorLayer.getPixelPosition(le,!0),me=d.renderer.scroller.getBoundingClientRect(),_e=d.renderer.layerConfig.offset,Te=d.renderer.scrollLeft,Me=function(lt,tt){return lt=lt/B,tt=tt/N-.75,lt*lt+tt*tt};if($.clientX<me.left){a="zoom";return}var Ze=Me($.clientX-me.left-se.left+Te,$.clientY-me.top-se.top+_e),Ge=Me($.clientX-me.left-de.left+Te,$.clientY-me.top-de.top+_e);Ze<3.5&&Ge<3.5&&(a=Ze>Ge?"cursor":"anchor"),Ge<3.5?a="anchor":Ze<3.5?a="cursor":a="scroll",s=setTimeout(z,450)}c=U},d),m.addListener(h,"touchend",function($){C=d.$mouseHandler.isMousePressed=!1,p&&clearInterval(p),a=="zoom"?(a="",b=0):s?(d.selection.moveToPosition(x),b=0,R()):a=="scroll"?(O(),E()):R(),clearTimeout(s),s=null},d),m.addListener(h,"touchmove",function($){s&&(clearTimeout(s),s=null);var A=$.touches;if(!(A.length>1||a=="zoom")){var N=A[0],B=l-N.clientX,U=u-N.clientY;if(a=="wait")if(B*B+U*U>4)a="cursor";else return $.preventDefault();l=N.clientX,u=N.clientY,$.clientX=N.clientX,$.clientY=N.clientY;var K=$.timeStamp,Q=K-i;if(i=K,a=="scroll"){var J=new g($,d);J.speed=1,J.wheelX=B,J.wheelY=U,10*Math.abs(B)<Math.abs(U)&&(B=0),10*Math.abs(U)<Math.abs(B)&&(U=0),Q!=0&&(_=B/Q,k=U/Q),d._emit("mousewheel",J),J.propagationStopped||(_=k=0)}else{var he=new g($,d),ne=he.getDocumentPosition();a=="cursor"?d.selection.moveCursorToPosition(ne):a=="anchor"&&d.selection.setSelectionAnchor(ne.row,ne.column),d.renderer.scrollCursorIntoView(ne),$.preventDefault()}}},d);function O(){b+=60,p=setInterval(function(){b--<=0&&(clearInterval(p),p=null),Math.abs(_)<.01&&(_=0),Math.abs(k)<.01&&(k=0),b<20&&(_=.9*_),b<20&&(k=.9*k);var $=d.session.getScrollTop();d.renderer.scrollBy(10*_,10*k),$==d.session.getScrollTop()&&(b=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 g=e("../lib/event"),m=e("../lib/useragent"),w=e("./default_handlers").DefaultHandlers,h=e("./default_gutter_handler").GutterHandler,d=e("./mouse_event").MouseEvent,a=e("./dragdrop_handler").DragdropHandler,l=e("./touch_handler").addTouchListeners,u=e("../config"),c=function(){function i(s){this.$dragDelay,this.$dragEnabled,this.$mouseMoved,this.mouseEvent,this.$focusTimeout;var p=this;this.editor=s,new w(this),new h(this),new a(this);var b=function(_){var k=!document.hasFocus||!document.hasFocus()||!s.isFocused()&&document.activeElement==(s.textInput&&s.textInput.getElement());k&&window.focus(),s.focus(),setTimeout(function(){s.isFocused()||s.focus()})},x=s.renderer.getMouseEventTarget();g.addListener(x,"click",this.onMouseEvent.bind(this,"click"),s),g.addListener(x,"mousemove",this.onMouseMove.bind(this,"mousemove"),s),g.addMultiMouseDownListener([x,s.renderer.scrollBarV&&s.renderer.scrollBarV.inner,s.renderer.scrollBarH&&s.renderer.scrollBarH.inner,s.textInput&&s.textInput.getElement()].filter(Boolean),[400,300,250],this,"onMouseEvent",s),g.addMouseWheelListener(s.container,this.onMouseWheel.bind(this,"mousewheel"),s),l(s.container,s);var I=s.renderer.$gutter;g.addListener(I,"mousedown",this.onMouseEvent.bind(this,"guttermousedown"),s),g.addListener(I,"click",this.onMouseEvent.bind(this,"gutterclick"),s),g.addListener(I,"dblclick",this.onMouseEvent.bind(this,"gutterdblclick"),s),g.addListener(I,"mousemove",this.onMouseEvent.bind(this,"guttermousemove"),s),g.addListener(x,"mousedown",b,s),g.addListener(I,"mousedown",b,s),m.isIE&&s.renderer.scrollBarV&&(g.addListener(s.renderer.scrollBarV.element,"mousedown",b,s),g.addListener(s.renderer.scrollBarH.element,"mousedown",b,s)),s.on("mousemove",function(_){if(!(p.state||p.$dragDelay||!p.$dragEnabled)){var k=s.renderer.screenToTextCoordinates(_.x,_.y),C=s.session.selection.getRange(),L=s.renderer;!C.isEmpty()&&C.insideStart(k.row,k.column)?L.setCursorStyle("default"):L.setCursorStyle("")}},s)}return i.prototype.onMouseEvent=function(s,p){this.editor.session&&this.editor._emit(s,new d(p,this.editor))},i.prototype.onMouseMove=function(s,p){var b=this.editor._eventRegistry&&this.editor._eventRegistry.mousemove;!b||!b.length||this.editor._emit(s,new d(p,this.editor))},i.prototype.onMouseWheel=function(s,p){var b=new d(p,this.editor);b.speed=this.$scrollSpeed*2,b.wheelX=p.wheelX,b.wheelY=p.wheelY,this.editor._emit(s,b)},i.prototype.setState=function(s){this.state=s},i.prototype.captureMouse=function(s,p){this.x=s.x,this.y=s.y,this.isMousePressed=!0;var b=this.editor,x=this.editor.renderer;x.$isMousePressed=!0;var I=this,_=!0,k=function(E){if(E){if(m.isWebKit&&!E.which&&I.releaseMouse)return I.releaseMouse();I.x=E.clientX,I.y=E.clientY,p&&p(E),I.mouseEvent=new d(E,I.editor),I.$mouseMoved=!0}},C=function(E){b.off("beforeEndOperation",R),_=!1,b.session&&L(),I[I.state+"End"]&&I[I.state+"End"](E),I.state="",I.isMousePressed=x.$isMousePressed=!1,x.$keepTextAreaAtCursor&&x.$moveTextAreaToCursor(),I.$onCaptureMouseMove=I.releaseMouse=null,E&&I.onMouseEvent("mouseup",E),b.endOperation()},L=function(){I[I.state]&&I[I.state](),I.$mouseMoved=!1},D=function(){_&&(L(),g.nextFrame(D))};if(m.isOldIE&&s.domEvent.type=="dblclick")return setTimeout(function(){C(s)});var R=function(E){I.releaseMouse&&b.curOp.command.name&&b.curOp.selectionChanged&&(I[I.state+"End"]&&I[I.state+"End"](),I.state="",I.releaseMouse())};b.on("beforeEndOperation",R),b.startOperation({command:{name:"mouse"}}),I.$onCaptureMouseMove=k,I.releaseMouse=g.capture(this.editor.container,k,C),D()},i.prototype.cancelContextMenu=function(){var s=(function(p){p&&p.domEvent&&p.domEvent.type!="contextmenu"||(this.editor.off("nativecontextmenu",s),p&&p.domEvent&&g.stopEvent(p.domEvent))}).bind(this);setTimeout(s,10),this.editor.on("nativecontextmenu",s)},i.prototype.destroy=function(){this.releaseMouse&&this.releaseMouse(),this.$tooltip&&this.$tooltip.destroy()},i}();c.prototype.releaseMouse=null,u.defineOptions(c.prototype,"mouseHandler",{scrollSpeed:{initialValue:2},dragDelay:{initialValue:m.isMac?150:0},dragEnabled:{initialValue:!0},focusTimeout:{initialValue:0}}),r.MouseHandler=c}),ace.define("ace/mouse/fold_handler",["require","exports","module","ace/lib/dom"],function(e,r,f){var g=e("../lib/dom"),m=function(){function w(h){h.on("click",function(d){var a=d.getDocumentPosition(),l=h.session,u=l.getFoldAt(a.row,a.column,1);u&&(d.getAccelKey()?l.removeFold(u):l.expandFold(u),d.stop());var c=d.domEvent&&d.domEvent.target;c&&g.hasCssClass(c,"ace_inline_button")&&g.hasCssClass(c,"ace_toggle_wrap")&&(l.setOption("wrap",!l.getUseWrapMode()),h.renderer.scrollCursorIntoView())}),h.on("gutterclick",function(d){var a=h.renderer.$gutterLayer.getRegion(d);if(a=="foldWidgets"){var l=d.getDocumentPosition().row,u=h.session;u.foldWidgets&&u.foldWidgets[l]&&h.session.onFoldWidgetClick(l,d),h.isFocused()||h.focus(),d.stop()}}),h.on("gutterdblclick",function(d){var a=h.renderer.$gutterLayer.getRegion(d);if(a=="foldWidgets"){var l=d.getDocumentPosition().row,u=h.session,c=u.getParentFoldRangeData(l,!0),i=c.range||c.firstRange;if(i){l=i.start.row;var s=u.getFoldAt(l,u.getLine(l).length,1);s?u.removeFold(s):(u.addFold("...",i),h.renderer.scrollCursorIntoView({row:i.start.row,column:0}))}d.stop()}})}return w}();r.FoldHandler=m}),ace.define("ace/keyboard/keybinding",["require","exports","module","ace/lib/keys","ace/lib/event"],function(e,r,f){var g=e("../lib/keys"),m=e("../lib/event"),w=function(){function h(d){this.$editor=d,this.$data={editor:d},this.$handlers=[],this.setDefaultHandler(d.commands)}return h.prototype.setDefaultHandler=function(d){this.removeKeyboardHandler(this.$defaultHandler),this.$defaultHandler=d,this.addKeyboardHandler(d,0)},h.prototype.setKeyboardHandler=function(d){var a=this.$handlers;if(a[a.length-1]!=d){for(;a[a.length-1]&&a[a.length-1]!=this.$defaultHandler;)this.removeKeyboardHandler(a[a.length-1]);this.addKeyboardHandler(d,1)}},h.prototype.addKeyboardHandler=function(d,a){if(d){typeof d=="function"&&!d.handleKeyboard&&(d.handleKeyboard=d);var l=this.$handlers.indexOf(d);l!=-1&&this.$handlers.splice(l,1),a==null?this.$handlers.push(d):this.$handlers.splice(a,0,d),l==-1&&d.attach&&d.attach(this.$editor)}},h.prototype.removeKeyboardHandler=function(d){var a=this.$handlers.indexOf(d);return a==-1?!1:(this.$handlers.splice(a,1),d.detach&&d.detach(this.$editor),!0)},h.prototype.getKeyboardHandler=function(){return this.$handlers[this.$handlers.length-1]},h.prototype.getStatusText=function(){var d=this.$data,a=d.editor;return this.$handlers.map(function(l){return l.getStatusText&&l.getStatusText(a,d)||""}).filter(Boolean).join(" ")},h.prototype.$callKeyboardHandlers=function(d,a,l,u){for(var c,i=!1,s=this.$editor.commands,p=this.$handlers.length;p--&&(c=this.$handlers[p].handleKeyboard(this.$data,d,a,l,u),!(!(!c||!c.command)&&(c.command=="null"?i=!0:i=s.exec(c.command,this.$editor,c.args,u),i&&u&&d!=-1&&c.passEvent!=!0&&c.command.passEvent!=!0&&m.stopEvent(u),i))););return!i&&d==-1&&(c={command:"insertstring"},i=s.exec("insertstring",this.$editor,a)),i&&this.$editor._signal&&this.$editor._signal("keyboardActivity",c),i},h.prototype.onCommandKey=function(d,a,l){var u=g.keyCodeToString(l);return this.$callKeyboardHandlers(a,u,l,d)},h.prototype.onTextInput=function(d){return this.$callKeyboardHandlers(-1,d)},h}();r.KeyBinding=w}),ace.define("ace/lib/bidiutil",["require","exports","module"],function(e,r,f){var g=0,m=0,w=!1,h=!1,d=!1,a=[[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,c=1,i=0,s=1,p=2,b=3,x=4,I=5,_=6,k=7,C=8,L=9,D=10,R=11,E=12,z=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,R,R,R,x,x,x,x,x,D,L,D,L,L,p,p,p,p,p,p,p,p,p,p,L,x,x,x,x,x,x,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,x,x,x,x,x,x,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,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,L,x,R,R,R,R,x,x,x,x,i,x,x,N,x,x,R,R,p,p,x,i,x,x,x,p,i,x,x,x,x,x],U=[C,C,C,C,C,C,C,C,C,C,C,N,N,N,i,s,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,z,F,O,$,A,L,R,R,R,R,R,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,L,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,le,se,de){var me=g?l:a,_e=null,Te=null,Me=null,Ze=0,Ge=null,lt=null,tt=-1,ct=null,Yt=null,Cn=[];if(!de)for(ct=0,de=[];ct<se;ct++)de[ct]=he(ne[ct]);for(m=g,w=!1,h=!1,d=!1,Yt=0;Yt<se;Yt++){if(_e=Ze,Cn[Yt]=Te=J(ne,de,Cn,Yt),Ze=me[_e][Te],Ge=Ze&240,Ze&=15,le[Yt]=Me=me[Ze][5],Ge>0)if(Ge==16){for(ct=tt;ct<Yt;ct++)le[ct]=1;tt=-1}else tt=-1;if(lt=me[Ze][6],lt)tt==-1&&(tt=Yt);else if(tt>-1){for(ct=tt;ct<Yt;ct++)le[ct]=Me;tt=-1}de[Yt]==I&&(le[Yt]=0),m|=Me}if(d){for(ct=0;ct<se;ct++)if(de[ct]==_){le[ct]=g;for(var Wt=ct-1;Wt>=0&&de[Wt]==C;Wt--)le[Wt]=g}}}function Q(ne,le,se){if(!(m<ne)){if(ne==1&&g==c&&!h){se.reverse();return}for(var de=se.length,me=0,_e,Te,Me,Ze;me<de;){if(le[me]>=ne){for(_e=me+1;_e<de&&le[_e]>=ne;)_e++;for(Te=me,Me=_e-1;Te<Me;Te++,Me--)Ze=se[Te],se[Te]=se[Me],se[Me]=Ze;me=_e}me++}}}function J(ne,le,se,de){var me=le[de],_e,Te,Me,Ze;switch(me){case i:case s:w=!1;case x:case b:return me;case p:return w?b:p;case k:return w=!0,s;case C:return x;case L:return de<1||de+1>=le.length||(_e=se[de-1])!=p&&_e!=b||(Te=le[de+1])!=p&&Te!=b?x:(w&&(Te=b),Te==_e?Te:x);case D:return _e=de>0?se[de-1]:I,_e==p&&de+1<le.length&&le[de+1]==p?p:x;case R:if(de>0&&se[de-1]==p)return p;if(w)return x;for(Ze=de+1,Me=le.length;Ze<Me&&le[Ze]==R;)Ze++;return Ze<Me&&le[Ze]==p?p:x;case E:for(Me=le.length,Ze=de+1;Ze<Me&&le[Ze]==E;)Ze++;if(Ze<Me){var Ge=ne[de],lt=Ge>=1425&&Ge<=2303||Ge==64286;if(_e=le[Ze],lt&&(_e==s||_e==k))return s}return de<1||(_e=le[de-1])==I?x:se[de-1];case I:return w=!1,h=!0,g;case _:return d=!0,x;case z:case F:case $:case A:case O:w=!1;case N:return x}}function he(ne){var le=ne.charCodeAt(0),se=le>>8;return se==0?le>191?i:B[le]:se==5?/[\u0591-\u05f4]/.test(ne)?s:i:se==6?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(ne)?E:/[\u0660-\u0669\u066b-\u066c]/.test(ne)?b:le==1642?R:/[\u06f0-\u06f9]/.test(ne)?p:k:se==32&&le<=8287?U[le&255]:se==254&&le>=65136?k:x}r.L=i,r.R=s,r.EN=p,r.ON_R=3,r.AN=4,r.R_H=5,r.B=6,r.RLE=7,r.DOT="·",r.doBidiReorder=function(ne,le,se){if(ne.length<2)return{};var de=ne.split(""),me=new Array(de.length),_e=new Array(de.length),Te=[];g=se?c:u,K(de,Te,de.length,le);for(var Me=0;Me<me.length;me[Me]=Me,Me++);Q(2,Te,me),Q(1,Te,me);for(var Me=0;Me<me.length-1;Me++)le[Me]===b?Te[Me]=r.AN:Te[Me]===s&&(le[Me]>k&&le[Me]<z||le[Me]===x||le[Me]===N)?Te[Me]=r.ON_R:Me>0&&de[Me-1]==="ل"&&/\u0622|\u0623|\u0625|\u0627/.test(de[Me])&&(Te[Me-1]=Te[Me]=r.R_H,Me++);de[de.length-1]===r.DOT&&(Te[de.length-1]=r.B),de[0]==="‫"&&(Te[0]=r.RLE);for(var Me=0;Me<me.length;Me++)_e[Me]=Te[me[Me]];return{logicalFromVisual:me,bidiLevels:_e}},r.hasBidiCharacters=function(ne,le){for(var se=!1,de=0;de<ne.length;de++)le[de]=he(ne.charAt(de)),!se&&(le[de]==s||le[de]==k||le[de]==b)&&(se=!0);return se},r.getVisualFromLogicalIdx=function(ne,le){for(var se=0;se<le.logicalFromVisual.length;se++)if(le.logicalFromVisual[se]==ne)return se;return 0}}),ace.define("ace/bidihandler",["require","exports","module","ace/lib/bidiutil","ace/lib/lang"],function(e,r,f){var g=e("./lib/bidiutil"),m=e("./lib/lang"),w=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\u202B]/,h=function(){function d(a){this.session=a,this.bidiMap={},this.currentRow=null,this.bidiUtil=g,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=w.test(a.getValue())}return d.prototype.isBidiRow=function(a,l,u){return this.seenBidi?(a!==this.currentRow&&(this.currentRow=a,this.updateRowLine(l,u),this.updateBidiMap()),this.bidiMap.bidiLevels):!1},d.prototype.onChange=function(a){this.seenBidi?this.currentRow=null:a.action=="insert"&&w.test(a.lines.join(`
178
+ `;U!=this.lastValue&&(this.text.value=this.lastValue=U,this.lastSelectionStart=this.lastSelectionEnd=U.length)}if(this.afterContextMenu&&(this.lastSelectionStart=this.text.selectionStart,this.lastSelectionEnd=this.text.selectionEnd),this.lastSelectionEnd!=D||this.lastSelectionStart!=L||this.text.selectionEnd!=this.lastSelectionEnd)try{this.text.setSelectionRange(L,D),this.lastSelectionStart=L,this.lastSelectionEnd=D}catch{}this.inComposition=!1}},k.prototype.setHost=function(C){this.host=C},k.prototype.setNumberOfExtraLines=function(C){if(this.rowStart=Number.MAX_SAFE_INTEGER,this.rowEnd=Number.MIN_SAFE_INTEGER,C<0){this.numberOfExtraLines=0;return}this.numberOfExtraLines=C},k.prototype.setAriaLabel=function(){var C="";if(this.host.$textInputAriaLabel&&(C+="".concat(this.host.$textInputAriaLabel,", ")),this.host.session){var L=this.host.session.selection.cursor.row;C+=m("text-input.aria-label","Cursor at row $0",[L+1])}this.text.setAttribute("aria-label",C)},k.prototype.setAriaOptions=function(C){C.activeDescendant?(this.text.setAttribute("aria-haspopup","true"),this.text.setAttribute("aria-autocomplete",C.inline?"both":"list"),this.text.setAttribute("aria-activedescendant",C.activeDescendant)):(this.text.setAttribute("aria-haspopup","false"),this.text.setAttribute("aria-autocomplete","both"),this.text.removeAttribute("aria-activedescendant")),C.role&&this.text.setAttribute("role",C.role),C.setLabel&&(this.text.setAttribute("aria-roledescription",m("text-input.aria-roledescription","editor")),this.setAriaLabel())},k.prototype.focus=function(){var C=this;if(this.setAriaOptions({setLabel:this.host.renderer.enableKeyboardAccessibility}),this.tempStyle||c||this.$focusScroll=="browser")return this.text.focus({preventScroll:!0});var L=this.text.style.top;this.text.style.position="fixed",this.text.style.top="0px";try{var D=this.text.getBoundingClientRect().top!=0}catch{return}var R=[];if(D)for(var E=this.text.parentElement;E&&E.nodeType==1;)R.push(E),E.setAttribute("ace_nocontext","true"),!E.parentElement&&E.getRootNode?E=E.getRootNode().host:E=E.parentElement;this.text.focus({preventScroll:!0}),D&&R.forEach(function(z){z.removeAttribute("ace_nocontext")}),setTimeout(function(){C.text.style.position="",C.text.style.top=="0px"&&(C.text.style.top=L)},0)},k.prototype.blur=function(){this.text.blur()},k.prototype.isFocused=function(){return this.$isFocused},k.prototype.setInputHandler=function(C){this.inputHandler=C},k.prototype.getInputHandler=function(){return this.inputHandler},k.prototype.getElement=function(){return this.text},k.prototype.setCommandMode=function(C){this.commandMode=C,this.text.readOnly=!1},k.prototype.setReadOnly=function(C){this.commandMode||(this.text.readOnly=C)},k.prototype.setCopyWithEmptySelection=function(C){},k.prototype.onContextMenu=function(C){this.afterContextMenu=!0,this.resetSelection(),this.host._emit("nativecontextmenu",{target:this.host,domEvent:C}),this.moveToMouse(C,!0)},k.prototype.moveToMouse=function(C,L){var D=this;this.tempStyle||(this.tempStyle=this.text.style.cssText),this.text.style.cssText=(L?"z-index:100000;":"")+(w.isIE?"opacity:0.1;":"")+"text-indent: -"+(this.lastSelectionStart+this.lastSelectionEnd)*this.host.renderer.characterWidth*.5+"px;";var R=this.host.container.getBoundingClientRect(),E=h.computedStyle(this.host.container),z=R.top+(parseInt(E.borderTopWidth)||0),F=R.left+(parseInt(E.borderLeftWidth)||0),O=R.bottom-z-this.text.clientHeight-2,$=function(A){h.translate(D.text,A.clientX-F-2,Math.min(A.clientY-z-2,O))};$(C),C.type=="mousedown"&&(this.host.renderer.$isMousePressed=!0,clearTimeout(this.closeTimeout),w.isWin&&g.capture(this.host.container,$,this.onContextMenuClose.bind(this)))},k.prototype.destroy=function(){this.text.parentElement&&this.text.parentElement.removeChild(this.text)},k}();r.TextInput=_,r.$setUserAgentForTests=function(k,C){I=k,b=C}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(e,r,f){var g=e("../lib/useragent"),m=0,w=550,h=function(){function l(u){u.$clickSelection=null;var c=u.editor;c.setDefaultHandler("mousedown",this.onMouseDown.bind(u)),c.setDefaultHandler("dblclick",this.onDoubleClick.bind(u)),c.setDefaultHandler("tripleclick",this.onTripleClick.bind(u)),c.setDefaultHandler("quadclick",this.onQuadClick.bind(u)),c.setDefaultHandler("mousewheel",this.onMouseWheel.bind(u));var i=["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"];i.forEach(function(s){u[s]=this[s]},this),u.selectByLines=this.extendSelectionBy.bind(u,"getLineRange"),u.selectByWords=this.extendSelectionBy.bind(u,"getWordRange")}return l.prototype.onMouseDown=function(u){var c=u.inSelection(),i=u.getDocumentPosition();this.mousedownEvent=u;var s=this.editor,p=u.getButton();if(p!==0){var b=s.getSelectionRange(),x=b.isEmpty();(x||p==1)&&s.selection.moveToPosition(i),p==2&&(s.textInput.onContextMenu(u.domEvent),g.isMozilla||u.preventDefault());return}if(this.mousedownEvent.time=Date.now(),c&&!s.isFocused()&&(s.focus(),this.$focusTimeout&&!this.$clickSelection&&!s.inMultiSelectMode)){this.setState("focusWait"),this.captureMouse(u);return}return this.captureMouse(u),this.startSelect(i,u.domEvent._clicks>1),u.preventDefault()},l.prototype.startSelect=function(u,c){u=u||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var i=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?i.selection.selectToPosition(u):c||i.selection.moveToPosition(u),c||this.select(),i.setStyle("ace_selecting"),this.setState("select"))},l.prototype.select=function(){var u,c=this.editor,i=c.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var s=this.$clickSelection.comparePoint(i);if(s==-1)u=this.$clickSelection.end;else if(s==1)u=this.$clickSelection.start;else{var p=a(this.$clickSelection,i,c.session);i=p.cursor,u=p.anchor}c.selection.setSelectionAnchor(u.row,u.column)}c.selection.selectToPosition(i),c.renderer.scrollCursorIntoView()},l.prototype.extendSelectionBy=function(u){var c,i=this.editor,s=i.renderer.screenToTextCoordinates(this.x,this.y),p=i.selection[u](s.row,s.column);if(this.$clickSelection){var b=this.$clickSelection.comparePoint(p.start),x=this.$clickSelection.comparePoint(p.end);if(b==-1&&x<=0)c=this.$clickSelection.end,(p.end.row!=s.row||p.end.column!=s.column)&&(s=p.start);else if(x==1&&b>=0)c=this.$clickSelection.start,(p.start.row!=s.row||p.start.column!=s.column)&&(s=p.end);else if(b==-1&&x==1)s=p.end,c=p.start;else{var I=a(this.$clickSelection,s,i.session);s=I.cursor,c=I.anchor}i.selection.setSelectionAnchor(c.row,c.column)}i.selection.selectToPosition(s),i.renderer.scrollCursorIntoView()},l.prototype.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting")},l.prototype.focusWait=function(){var u=d(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),c=Date.now();(u>m||c-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},l.prototype.onDoubleClick=function(u){var c=u.getDocumentPosition(),i=this.editor,s=i.session,p=s.getBracketRange(c);p?(p.isEmpty()&&(p.start.column--,p.end.column++),this.setState("select")):(p=i.selection.getWordRange(c.row,c.column),this.setState("selectByWords")),this.$clickSelection=p,this.select()},l.prototype.onTripleClick=function(u){var c=u.getDocumentPosition(),i=this.editor;this.setState("selectByLines");var s=i.getSelectionRange();s.isMultiLine()&&s.contains(c.row,c.column)?(this.$clickSelection=i.selection.getLineRange(s.start.row),this.$clickSelection.end=i.selection.getLineRange(s.end.row).end):this.$clickSelection=i.selection.getLineRange(c.row),this.select()},l.prototype.onQuadClick=function(u){var c=this.editor;c.selectAll(),this.$clickSelection=c.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 c=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var i=this.$lastScroll,s=u.domEvent.timeStamp,p=s-i.t,b=p?u.wheelX/p:i.vx,x=p?u.wheelY/p:i.vy;p<w&&(b=(b+i.vx)/2,x=(x+i.vy)/2);var I=Math.abs(b/x),_=!1;if(I>=1&&c.renderer.isScrollableBy(u.wheelX*u.speed,0)&&(_=!0),I<=1&&c.renderer.isScrollableBy(0,u.wheelY*u.speed)&&(_=!0),_)i.allowed=s;else if(s-i.allowed<w){var k=Math.abs(b)<=1.5*Math.abs(i.vx)&&Math.abs(x)<=1.5*Math.abs(i.vy);k?(_=!0,i.allowed=s):i.allowed=0}if(i.t=s,i.vx=b,i.vy=x,_)return c.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 d(l,u,c,i){return Math.sqrt(Math.pow(c-l,2)+Math.pow(i-u,2))}function a(l,u,c){if(l.start.row==l.end.row)var i=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 i=3*u.column-2*c.getLine(l.start.row).length;else var i=2*u.row-l.start.row-l.end.row;return i<0?{cursor:l.start,anchor:l.end}:{cursor:l.end,anchor:l.start}}}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(e,r,f){var g=e("../lib/event"),m=e("../lib/useragent"),w=function(){function h(d,a){this.speed,this.wheelX,this.wheelY,this.domEvent=d,this.editor=a,this.x=this.clientX=d.clientX,this.y=this.clientY=d.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1}return h.prototype.stopPropagation=function(){g.stopPropagation(this.domEvent),this.propagationStopped=!0},h.prototype.preventDefault=function(){g.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 d=this.getDocumentPosition().row,a=this.editor.session.documentToScreenRow(d,0),l=this.editor.session.documentToScreenRow(this.editor.renderer.$gutterLayer.$lines.get(0).row,0);return a-l},h.prototype.inSelection=function(){if(this.$inSelection!==null)return this.$inSelection;var d=this.editor,a=d.getSelectionRange();if(a.isEmpty())this.$inSelection=!1;else{var l=this.getDocumentPosition();this.$inSelection=a.contains(l.row,l.column)}return this.$inSelection},h.prototype.getButton=function(){return g.getButton(this.domEvent)},h.prototype.getShiftKey=function(){return this.domEvent.shiftKey},h.prototype.getAccelKey=function(){return m.isMac?this.domEvent.metaKey:this.domEvent.ctrlKey},h}();r.MouseEvent=w}),ace.define("ace/lib/scroll",["require","exports","module"],function(e,r,f){r.preventParentScroll=function(g){g.stopPropagation();var m=g.currentTarget,w=m.scrollHeight>m.clientHeight;w||g.preventDefault()}}),ace.define("ace/tooltip",["require","exports","module","ace/lib/dom","ace/lib/event","ace/range","ace/lib/scroll"],function(e,r,f){var g=this&&this.__extends||function(){var s=function(p,b){return s=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[_])},s(p,b)};return function(p,b){if(typeof b!="function"&&b!==null)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");s(p,b);function x(){this.constructor=p}p.prototype=b===null?Object.create(b):(x.prototype=b.prototype,new x)}}(),m=this&&this.__values||function(s){var p=typeof Symbol=="function"&&Symbol.iterator,b=p&&s[p],x=0;if(b)return b.call(s);if(s&&typeof s.length=="number")return{next:function(){return s&&x>=s.length&&(s=void 0),{value:s&&s[x++],done:!s}}};throw new TypeError(p?"Object is not iterable.":"Symbol.iterator is not defined.")},w=e("./lib/dom");e("./lib/event");var h=e("./range").Range,d=e("./lib/scroll").preventParentScroll,a="ace_tooltip",l=function(){function s(p){this.isOpen=!1,this.$element=null,this.$parentNode=p}return s.prototype.$init=function(){return this.$element=w.createElement("div"),this.$element.className=a,this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},s.prototype.getElement=function(){return this.$element||this.$init()},s.prototype.setText=function(p){this.getElement().textContent=p},s.prototype.setHtml=function(p){this.getElement().innerHTML=p},s.prototype.setPosition=function(p,b){this.getElement().style.left=p+"px",this.getElement().style.top=b+"px"},s.prototype.setClassName=function(p){w.addCssClass(this.getElement(),p)},s.prototype.setTheme=function(p){this.theme&&(this.theme.isDark&&w.removeCssClass(this.getElement(),"ace_dark"),this.theme.cssClass&&w.removeCssClass(this.getElement(),this.theme.cssClass)),p.isDark&&w.addCssClass(this.getElement(),"ace_dark"),p.cssClass&&w.addCssClass(this.getElement(),p.cssClass),this.theme={isDark:p.isDark,cssClass:p.cssClass}},s.prototype.show=function(p,b,x){p!=null&&this.setText(p),b!=null&&x!=null&&this.setPosition(b,x),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},s.prototype.hide=function(p){this.isOpen&&(this.getElement().style.display="none",this.getElement().className=a,this.isOpen=!1)},s.prototype.getHeight=function(){return this.getElement().offsetHeight},s.prototype.getWidth=function(){return this.getElement().offsetWidth},s.prototype.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)},s}(),u=function(){function s(){this.popups=[]}return s.prototype.addPopup=function(p){this.popups.push(p),this.updatePopups()},s.prototype.removePopup=function(p){var b=this.popups.indexOf(p);b!==-1&&(this.popups.splice(b,1),this.updatePopups())},s.prototype.updatePopups=function(){var p,b,x,I;this.popups.sort(function(F,O){return O.priority-F.priority});var _=[];try{for(var k=m(this.popups),C=k.next();!C.done;C=k.next()){var L=C.value,D=!0;try{for(var R=(x=void 0,m(_)),E=R.next();!E.done;E=R.next()){var z=E.value;if(this.doPopupsOverlap(z,L)){D=!1;break}}}catch(F){x={error:F}}finally{try{E&&!E.done&&(I=R.return)&&I.call(R)}finally{if(x)throw x.error}}D?_.push(L):L.hide()}}catch(F){p={error:F}}finally{try{C&&!C.done&&(b=k.return)&&b.call(k)}finally{if(p)throw p.error}}},s.prototype.doPopupsOverlap=function(p,b){var x=p.getElement().getBoundingClientRect(),I=b.getElement().getBoundingClientRect();return x.left<I.right&&x.right>I.left&&x.top<I.bottom&&x.bottom>I.top},s}(),c=new u;r.popupManager=c,r.Tooltip=l;var i=function(s){g(p,s);function p(b){b===void 0&&(b=document.body);var x=s.call(this,b)||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",d),x}return p.prototype.addToEditor=function(b){b.on("mousemove",this.onMouseMove),b.on("mousedown",this.hide);var x=b.renderer.getMouseEventTarget();x&&typeof x.removeEventListener=="function"&&x.addEventListener("mouseout",this.onMouseOut,!0)},p.prototype.removeFromEditor=function(b){b.off("mousemove",this.onMouseMove),b.off("mousedown",this.hide);var x=b.renderer.getMouseEventTarget();x&&typeof x.removeEventListener=="function"&&x.removeEventListener("mouseout",this.onMouseOut,!0),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},p.prototype.onMouseMove=function(b,x){this.lastEvent=b,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=b,this.timeout=setTimeout(this.waitForHover,this.idleTime))},p.prototype.waitForHover=function(){this.timeout&&clearTimeout(this.timeout);var b=Date.now()-this.lastT;if(this.idleTime-b>10){this.timeout=setTimeout(this.waitForHover,this.idleTime-b);return}this.timeout=null,this.lastEvent&&!this.isOutsideOfText(this.lastEvent)&&this.$gatherData(this.lastEvent,this.lastEvent.editor)},p.prototype.isOutsideOfText=function(b){var x=b.editor,I=b.getDocumentPosition(),_=x.session.getLine(I.row);if(I.column==_.length){var k=x.renderer.pixelToScreenCoordinates(b.clientX,b.clientY),C=x.session.documentToScreenPosition(I.row,I.column);if(C.column!=k.column||C.row!=k.row)return!0}return!1},p.prototype.setDataProvider=function(b){this.$gatherData=b},p.prototype.showForRange=function(b,x,I,_){if(!(_&&_!=this.lastEvent)&&!(this.isOpen&&document.activeElement==this.getElement())){var k=b.renderer;this.isOpen||(c.addPopup(this),this.$registerCloseEvents(),this.setTheme(k.theme)),this.isOpen=!0,this.range=h.fromPoints(x.start,x.end);var C=k.textToScreenCoordinates(x.start.row,x.start.column),L=k.scroller.getBoundingClientRect();C.pageX<L.left&&(C.pageX=L.left);var D=this.getElement();D.innerHTML="",D.appendChild(I),D.style.maxHeight="",D.style.display="block",this.$setPosition(b,C,!0,x),w.$fixPositionBug(D)}},p.prototype.$setPosition=function(b,x,I,_){var k=10;I&&this.addMarker(_,b.session);var C=b.renderer,L=this.getElement(),D=L.offsetHeight,R=L.offsetWidth,E=x.pageY,z=x.pageX,F=window.innerHeight-E-C.lineHeight,O=this.$shouldPlaceAbove(D,E,F-k);L.style.maxHeight=(O?E:F)-k+"px",L.style.top=O?"":E+C.lineHeight+"px",L.style.bottom=O?window.innerHeight-E+"px":"",L.style.left=Math.min(z,window.innerWidth-R-k)+"px"},p.prototype.$shouldPlaceAbove=function(b,x,I){return!(x-b<0&&x<I)},p.prototype.addMarker=function(b,x){this.marker&&this.$markerSession.removeMarker(this.marker),this.$markerSession=x,this.marker=x&&x.addMarker(b,"ace_highlight-marker","text")},p.prototype.hide=function(b){b&&this.$fromKeyboard&&b.type=="keydown"&&b.code=="Escape"||!b&&document.activeElement==this.getElement()||b&&b.target&&(b.type!="keydown"||b.ctrlKey||b.metaKey)&&this.$element.contains(b.target)||(this.lastEvent=null,this.timeout&&clearTimeout(this.timeout),this.timeout=null,this.addMarker(null),this.isOpen&&(this.$fromKeyboard=!1,this.$removeCloseEvents(),this.getElement().style.display="none",this.isOpen=!1,c.removePopup(this)))},p.prototype.$registerCloseEvents=function(){window.addEventListener("keydown",this.hide,!0),window.addEventListener("wheel",this.hide,!0),window.addEventListener("mousedown",this.hide,!0)},p.prototype.$removeCloseEvents=function(){window.removeEventListener("keydown",this.hide,!0),window.removeEventListener("wheel",this.hide,!0),window.removeEventListener("mousedown",this.hide,!0)},p.prototype.onMouseOut=function(b){this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.lastEvent=null,this.isOpen&&(!b.relatedTarget||this.getElement().contains(b.relatedTarget)||b&&b.currentTarget.contains(b.relatedTarget)||b.relatedTarget.classList.contains("ace_content")||this.hide())},p}(l);r.HoverTooltip=i}),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/mouse/mouse_event","ace/tooltip","ace/config","ace/range"],function(e,r,f){var g=this&&this.__extends||function(){var i=function(s,p){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,x){b.__proto__=x}||function(b,x){for(var I in x)Object.prototype.hasOwnProperty.call(x,I)&&(b[I]=x[I])},i(s,p)};return function(s,p){if(typeof p!="function"&&p!==null)throw new TypeError("Class extends value "+String(p)+" is not a constructor or null");i(s,p);function b(){this.constructor=s}s.prototype=p===null?Object.create(p):(b.prototype=p.prototype,new b)}}(),m=this&&this.__values||function(i){var s=typeof Symbol=="function"&&Symbol.iterator,p=s&&i[s],b=0;if(p)return p.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&b>=i.length&&(i=void 0),{value:i&&i[b++],done:!i}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")},w=e("../lib/dom"),h=e("./mouse_event").MouseEvent,d=e("../tooltip").HoverTooltip,a=e("../config").nls,l=e("../range").Range;function u(i){var s=i.editor,p=s.renderer.$gutterLayer;i.$tooltip=new c(s),i.$tooltip.addToEditor(s),i.$tooltip.setDataProvider(function(b,x){var I=b.getDocumentPosition().row;i.$tooltip.showTooltip(I)}),i.editor.setDefaultHandler("guttermousedown",function(b){if(!(!s.isFocused()||b.getButton()!=0)){var x=p.getRegion(b);if(x!="foldWidgets"){var I=b.getDocumentPosition().row,_=s.session.selection;if(b.getShiftKey())_.selectTo(I,0);else{if(b.domEvent.detail==2)return s.selectAll(),b.preventDefault();i.$clickSelection=s.selection.getLineRange(I)}return i.setState("selectByLines"),i.captureMouse(b),b.preventDefault()}}})}r.GutterHandler=u;var c=function(i){g(s,i);function s(p){var b=i.call(this,p.container)||this;b.id="gt"+ ++s.$uid,b.editor=p,b.visibleTooltipRow;var x=b.getElement();return x.setAttribute("role","tooltip"),x.setAttribute("id",b.id),x.style.pointerEvents="auto",b.idleTime=50,b.onDomMouseMove=b.onDomMouseMove.bind(b),b.onDomMouseOut=b.onDomMouseOut.bind(b),b.setClassName("ace_gutter-tooltip"),b}return s.prototype.onDomMouseMove=function(p){var b=new h(p,this.editor);this.onMouseMove(b,this.editor)},s.prototype.onDomMouseOut=function(p){var b=new h(p,this.editor);this.onMouseOut(b)},s.prototype.addToEditor=function(p){var b=p.renderer.$gutter;b.addEventListener("mousemove",this.onDomMouseMove),b.addEventListener("mouseout",this.onDomMouseOut),i.prototype.addToEditor.call(this,p)},s.prototype.removeFromEditor=function(p){var b=p.renderer.$gutter;b.removeEventListener("mousemove",this.onDomMouseMove),b.removeEventListener("mouseout",this.onDomMouseOut),i.prototype.removeFromEditor.call(this,p)},s.prototype.destroy=function(){this.editor&&this.removeFromEditor(this.editor),i.prototype.destroy.call(this)},Object.defineProperty(s,"annotationLabels",{get:function(){return{error:{singular:a("gutter-tooltip.aria-label.error.singular","error"),plural:a("gutter-tooltip.aria-label.error.plural","errors")},security:{singular:a("gutter-tooltip.aria-label.security.singular","security finding"),plural:a("gutter-tooltip.aria-label.security.plural","security findings")},warning:{singular:a("gutter-tooltip.aria-label.warning.singular","warning"),plural:a("gutter-tooltip.aria-label.warning.plural","warnings")},info:{singular:a("gutter-tooltip.aria-label.info.singular","information message"),plural:a("gutter-tooltip.aria-label.info.plural","information messages")},hint:{singular:a("gutter-tooltip.aria-label.hint.singular","suggestion"),plural:a("gutter-tooltip.aria-label.hint.plural","suggestions")}}},enumerable:!1,configurable:!0}),s.prototype.showTooltip=function(p){var b,x=this.editor.renderer.$gutterLayer,I=x.$annotations[p],_;I?_={displayText:Array.from(I.displayText),type:Array.from(I.type)}:_={displayText:[],type:[]};var k=x.session.getFoldLine(p);if(k&&x.$showFoldedAnnotations){for(var C={error:[],security:[],warning:[],info:[],hint:[]},L={error:1,security:2,warning:3,info:4,hint:5},D,R=p+1;R<=k.end.row;R++)if(x.$annotations[R])for(var E=0;E<x.$annotations[R].text.length;E++){var z=x.$annotations[R].type[E];C[z].push(x.$annotations[R].text[E]),(!D||L[z]<L[D])&&(D=z)}if(["error","security","warning"].includes(D)){var F="".concat(s.annotationsToSummaryString(C)," in folded code.");_.displayText.push(F),_.type.push(D+"_fold")}}if(_.displayText.length===0)return this.hide();for(var O={error:[],security:[],warning:[],info:[],hint:[]},$=x.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",R=0;R<_.displayText.length;R++){var A=w.createElement("span"),N=w.createElement("span");(b=N.classList).add.apply(b,["ace_".concat(_.type[R]),$]),N.setAttribute("aria-label","".concat(s.annotationLabels[_.type[R].replace("_fold","")].singular)),N.setAttribute("role","img"),N.appendChild(w.createTextNode(" ")),A.appendChild(N),A.appendChild(w.createTextNode(_.displayText[R])),A.appendChild(w.createElement("br")),O[_.type[R].replace("_fold","")].push(A)}var B=w.createElement("span");O.error.forEach(function(Q){return B.appendChild(Q)}),O.security.forEach(function(Q){return B.appendChild(Q)}),O.warning.forEach(function(Q){return B.appendChild(Q)}),O.info.forEach(function(Q){return B.appendChild(Q)}),O.hint.forEach(function(Q){return B.appendChild(Q)}),B.setAttribute("aria-live","polite");var U=this.$findLinkedAnnotationNode(p);U&&U.setAttribute("aria-describedby",this.id);var K=l.fromPoints({row:p,column:0},{row:p,column:0});this.showForRange(this.editor,K,B),this.visibleTooltipRow=p,this.editor._signal("showGutterTooltip",this)},s.prototype.$setPosition=function(p,b,x,I){var _=this.$findCellByRow(I.start.row);if(_){var k=_&&_.element,C=k&&k.querySelector(".ace_gutter_annotation");if(C){var L=C.getBoundingClientRect();if(L){var D={pageX:L.right,pageY:L.top};return i.prototype.$setPosition.call(this,p,D,!1,I)}}}},s.prototype.$shouldPlaceAbove=function(p,b,x){return x<p},s.prototype.$findLinkedAnnotationNode=function(p){var b=this.$findCellByRow(p);if(b){var x=b.element;if(x.childNodes.length>2)return x.childNodes[2]}},s.prototype.$findCellByRow=function(p){return this.editor.renderer.$gutterLayer.$lines.cells.find(function(b){return b.row===p})},s.prototype.hide=function(p){if(this.isOpen){if(this.$element.removeAttribute("aria-live"),this.visibleTooltipRow!=null){var b=this.$findLinkedAnnotationNode(this.visibleTooltipRow);b&&b.removeAttribute("aria-describedby")}this.visibleTooltipRow=void 0,this.editor._signal("hideGutterTooltip",this),i.prototype.hide.call(this,p)}},s.annotationsToSummaryString=function(p){var b,x,I=[],_=["error","security","warning","info","hint"];try{for(var k=m(_),C=k.next();!C.done;C=k.next()){var L=C.value;if(p[L].length){var D=p[L].length===1?s.annotationLabels[L].singular:s.annotationLabels[L].plural;I.push("".concat(p[L].length," ").concat(D))}}}catch(R){b={error:R}}finally{try{C&&!C.done&&(x=k.return)&&x.call(k)}finally{if(b)throw b.error}}return I.join(", ")},s.prototype.isOutsideOfText=function(p){var b=p.editor,x=b.renderer.$gutter.getBoundingClientRect();return!(p.clientX>=x.left&&p.clientX<=x.right&&p.clientY>=x.top&&p.clientY<=x.bottom)},s}(d);c.$uid=0,r.GutterTooltip=c}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(e,r,f){var g=e("../lib/dom"),m=e("../lib/event"),w=e("../lib/useragent"),h=200,d=200,a=5;function l(c){var i=c.editor,s=g.createElement("div");s.style.cssText="top:-100px;position:absolute;z-index:2147483647;opacity:0.5",s.textContent=" ";var p=["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"];p.forEach(function(ne){c[ne]=this[ne]},this),i.on("mousedown",this.onMouseDown.bind(c));var b=i.container,x,I,_,k,C,L,D=0,R,E,z,F,O;this.onDragStart=function(ne){if(this.cancelDrag||!b.draggable){var le=this;return setTimeout(function(){le.startSelect(),le.captureMouse(ne)},0),ne.preventDefault()}C=i.getSelectionRange();var se=ne.dataTransfer;se.effectAllowed=i.getReadOnly()?"copy":"copyMove",i.container.appendChild(s),se.setDragImage&&se.setDragImage(s,0,0),setTimeout(function(){i.container.removeChild(s)}),se.clearData(),se.setData("Text",i.session.getTextRange()),E=!0,this.setState("drag")},this.onDragEnd=function(ne){if(b.draggable=!1,E=!1,this.setState(null),!i.getReadOnly()){var le=ne.dataTransfer.dropEffect;!R&&le=="move"&&i.session.remove(i.getSelectionRange()),i.$resetCursorStyle()}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(ne){if(!(i.getReadOnly()||!J(ne.dataTransfer)))return I=ne.clientX,_=ne.clientY,x||B(),D++,ne.dataTransfer.dropEffect=R=he(ne),m.preventDefault(ne)},this.onDragOver=function(ne){if(!(i.getReadOnly()||!J(ne.dataTransfer)))return I=ne.clientX,_=ne.clientY,x||(B(),D++),K!==null&&(K=null),ne.dataTransfer.dropEffect=R=he(ne),m.preventDefault(ne)},this.onDragLeave=function(ne){if(D--,D<=0&&x)return U(),R=null,m.preventDefault(ne)},this.onDrop=function(ne){if(L){var le=ne.dataTransfer;if(E)switch(R){case"move":C.contains(L.row,L.column)?C={start:L,end:L}:C=i.moveText(C,L);break;case"copy":C=i.moveText(C,L,!0);break}else{var se=le.getData("Text");C={start:L,end:i.session.insert(L,se)},i.focus(),R=null}return U(),m.preventDefault(ne)}},m.addListener(b,"dragstart",this.onDragStart.bind(c),i),m.addListener(b,"dragend",this.onDragEnd.bind(c),i),m.addListener(b,"dragenter",this.onDragEnter.bind(c),i),m.addListener(b,"dragover",this.onDragOver.bind(c),i),m.addListener(b,"dragleave",this.onDragLeave.bind(c),i),m.addListener(b,"drop",this.onDrop.bind(c),i);function $(ne,le){var se=Date.now(),de=!le||ne.row!=le.row,me=!le||ne.column!=le.column;if(!F||de||me)i.moveCursorToPosition(ne),F=se,O={x:I,y:_};else{var _e=u(O.x,O.y,I,_);_e>a?F=null:se-F>=d&&(i.renderer.scrollCursorIntoView(),F=null)}}function A(ne,le){var se=Date.now(),de=i.renderer.layerConfig.lineHeight,me=i.renderer.layerConfig.characterWidth,_e=i.renderer.scroller.getBoundingClientRect(),Te={x:{left:I-_e.left,right:_e.right-I},y:{top:_-_e.top,bottom:_e.bottom-_}},Me=Math.min(Te.x.left,Te.x.right),Ze=Math.min(Te.y.top,Te.y.bottom),Ge={row:ne.row,column:ne.column};Me/me<=2&&(Ge.column+=Te.x.left<Te.x.right?-3:2),Ze/de<=1&&(Ge.row+=Te.y.top<Te.y.bottom?-1:1);var lt=ne.row!=Ge.row,tt=ne.column!=Ge.column,ct=!le||ne.row!=le.row;lt||tt&&!ct?z?se-z>=h&&i.renderer.scrollCursorIntoView(Ge):z=se:z=null}function N(){var ne=L;L=i.renderer.screenToTextCoordinates(I,_),$(L,ne),A(L,ne)}function B(){C=i.selection.toOrientedRange(),x=i.session.addMarker(C,"ace_selection",i.getSelectionStyle()),i.clearSelection(),i.isFocused()&&i.renderer.$cursorLayer.setBlinking(!1),clearInterval(k),N(),k=setInterval(N,20),D=0,m.addListener(document,"mousemove",Q)}function U(){clearInterval(k),i.session.removeMarker(x),x=null,i.selection.fromOrientedRange(C),i.isFocused()&&!E&&i.$resetCursorStyle(),C=null,L=null,D=0,z=null,F=null,m.removeListener(document,"mousemove",Q)}var K=null;function Q(){K==null&&(K=setTimeout(function(){K!=null&&x&&U()},20))}function J(ne){var le=ne.types;return!le||Array.prototype.some.call(le,function(se){return se=="text/plain"||se=="Text"})}function he(ne){var le=["copy","copymove","all","uninitialized"],se=["move","copymove","linkmove","all","uninitialized"],de=w.isMac?ne.altKey:ne.ctrlKey,me="uninitialized";try{me=ne.dataTransfer.effectAllowed.toLowerCase()}catch{}var _e="none";return de&&le.indexOf(me)>=0?_e="copy":se.indexOf(me)>=0?_e="move":le.indexOf(me)>=0&&(_e="copy"),_e}}(function(){this.dragWait=function(){var c=Date.now()-this.mousedownEvent.time;c>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){var c=this.editor.container;c.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(c){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var c=this.editor,i=c.container;i.draggable=!0,c.renderer.$cursorLayer.setBlinking(!1),c.setStyle("ace_dragging");var s=w.isWin?"default":"move";c.renderer.setCursorStyle(s),this.setState("dragReady")},this.onMouseDrag=function(c){var i=this.editor.container;if(w.isIE&&this.state=="dragReady"){var s=u(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);s>3&&i.dragDrop()}if(this.state==="dragWait"){var s=u(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);s>0&&(i.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))}},this.onMouseDown=function(c){if(this.$dragEnabled){this.mousedownEvent=c;var i=this.editor,s=c.inSelection(),p=c.getButton(),b=c.domEvent.detail||1;if(b===1&&p===0&&s){if(c.editor.inMultiSelectMode&&(c.getAccelKey()||c.getShiftKey()))return;this.mousedownEvent.time=Date.now();var x=c.domEvent.target||c.domEvent.srcElement;if("unselectable"in x&&(x.unselectable="on"),i.getDragDelay()){if(w.isWebKit){this.cancelDrag=!0;var I=i.container;I.draggable=!0}this.setState("dragWait")}else this.startDrag();this.captureMouse(c,this.onMouseDrag.bind(this)),c.defaultPrevented=!0}}}}).call(l.prototype);function u(c,i,s,p){return Math.sqrt(Math.pow(s-c,2)+Math.pow(p-i,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 g=e("./mouse_event").MouseEvent,m=e("../lib/event"),w=e("../lib/dom");r.addTouchListeners=function(h,d){var a="scroll",l,u,c,i,s,p,b=0,x,I=0,_=0,k=0,C,L;function D(){var $=window.navigator&&window.navigator.clipboard,A=!1,N=function(){var K=d.getCopyText(),Q=d.session.getUndoManager().hasUndo();L.replaceChild(w.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"],Q&&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"]),L.firstChild)},B=function(K){return d.commands.canExecute(K,d)},U=function(K){var Q=K.target.getAttribute("action");if(Q=="more"||!A)return A=!A,N();Q=="paste"?$.readText().then(function(J){d.execCommand(Q,J)}):Q&&((Q=="cut"||Q=="copy")&&($?$.writeText(d.getCopyText()):document.execCommand("copy")),d.execCommand(Q)),L.firstChild.style.display="none",A=!1,Q!="openCommandPalette"&&d.focus()};L=w.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(K){a="menu",K.stopPropagation(),K.preventDefault(),d.textInput.focus()},ontouchend:function(K){K.stopPropagation(),K.preventDefault(),U(K)},onclick:U},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],d.container)}function R(){if(!d.getOption("enableMobileMenu")){L&&E();return}L||D();var $=d.selection.cursor,A=d.renderer.textToScreenCoordinates($.row,$.column),N=d.renderer.textToScreenCoordinates(0,0).pageX,B=d.renderer.scrollLeft,U=d.container.getBoundingClientRect();L.style.top=A.pageY-U.top-3+"px",A.pageX-U.left<U.width-70?(L.style.left="",L.style.right="10px"):(L.style.right="",L.style.left=N+B-U.left+"px"),L.style.display="",L.firstChild.style.display="none",d.on("input",E)}function E($){L&&(L.style.display="none"),d.off("input",E)}function z(){s=null,clearTimeout(s);var $=d.selection.getRange(),A=$.contains(x.row,x.column);($.isEmpty()||!A)&&(d.selection.moveToPosition(x),d.selection.selectWord()),a="wait",R()}function F(){s=null,clearTimeout(s),d.selection.moveToPosition(x);var $=I>=2?d.selection.getLineRange(x.row):d.session.getBracketRange(x);$&&!$.isEmpty()?d.selection.setRange($):d.selection.selectWord(),a="wait"}m.addListener(h,"contextmenu",function($){if(C){var A=d.textInput.getElement();A.focus()}},d),m.addListener(h,"touchstart",function($){var A=$.touches;if(s||A.length>1){clearTimeout(s),s=null,c=-1,a="zoom";return}C=d.$mouseHandler.isMousePressed=!0;var N=d.renderer.layerConfig.lineHeight,B=d.renderer.layerConfig.lineHeight,U=$.timeStamp;i=U;var K=A[0],Q=K.clientX,J=K.clientY;Math.abs(l-Q)+Math.abs(u-J)>N&&(c=-1),l=$.clientX=Q,u=$.clientY=J,_=k=0;var he=new g($,d);if(x=he.getDocumentPosition(),U-c<500&&A.length==1&&!b)I++,$.preventDefault(),$.button=0,F();else{I=0;var ne=d.selection.cursor,le=d.selection.isEmpty()?ne:d.selection.anchor,se=d.renderer.$cursorLayer.getPixelPosition(ne,!0),de=d.renderer.$cursorLayer.getPixelPosition(le,!0),me=d.renderer.scroller.getBoundingClientRect(),_e=d.renderer.layerConfig.offset,Te=d.renderer.scrollLeft,Me=function(lt,tt){return lt=lt/B,tt=tt/N-.75,lt*lt+tt*tt};if($.clientX<me.left){a="zoom";return}var Ze=Me($.clientX-me.left-se.left+Te,$.clientY-me.top-se.top+_e),Ge=Me($.clientX-me.left-de.left+Te,$.clientY-me.top-de.top+_e);Ze<3.5&&Ge<3.5&&(a=Ze>Ge?"cursor":"anchor"),Ge<3.5?a="anchor":Ze<3.5?a="cursor":a="scroll",s=setTimeout(z,450)}c=U},d),m.addListener(h,"touchend",function($){C=d.$mouseHandler.isMousePressed=!1,p&&clearInterval(p),a=="zoom"?(a="",b=0):s?(d.selection.moveToPosition(x),b=0,R()):a=="scroll"?(O(),E()):R(),clearTimeout(s),s=null},d),m.addListener(h,"touchmove",function($){s&&(clearTimeout(s),s=null);var A=$.touches;if(!(A.length>1||a=="zoom")){var N=A[0],B=l-N.clientX,U=u-N.clientY;if(a=="wait")if(B*B+U*U>4)a="cursor";else return $.preventDefault();l=N.clientX,u=N.clientY,$.clientX=N.clientX,$.clientY=N.clientY;var K=$.timeStamp,Q=K-i;if(i=K,a=="scroll"){var J=new g($,d);J.speed=1,J.wheelX=B,J.wheelY=U,10*Math.abs(B)<Math.abs(U)&&(B=0),10*Math.abs(U)<Math.abs(B)&&(U=0),Q!=0&&(_=B/Q,k=U/Q),d._emit("mousewheel",J),J.propagationStopped||(_=k=0)}else{var he=new g($,d),ne=he.getDocumentPosition();a=="cursor"?d.selection.moveCursorToPosition(ne):a=="anchor"&&d.selection.setSelectionAnchor(ne.row,ne.column),d.renderer.scrollCursorIntoView(ne),$.preventDefault()}}},d);function O(){b+=60,p=setInterval(function(){b--<=0&&(clearInterval(p),p=null),Math.abs(_)<.01&&(_=0),Math.abs(k)<.01&&(k=0),b<20&&(_=.9*_),b<20&&(k=.9*k);var $=d.session.getScrollTop();d.renderer.scrollBy(10*_,10*k),$==d.session.getScrollTop()&&(b=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 g=e("../lib/event"),m=e("../lib/useragent"),w=e("./default_handlers").DefaultHandlers,h=e("./default_gutter_handler").GutterHandler,d=e("./mouse_event").MouseEvent,a=e("./dragdrop_handler").DragdropHandler,l=e("./touch_handler").addTouchListeners,u=e("../config"),c=function(){function i(s){this.$dragDelay,this.$dragEnabled,this.$mouseMoved,this.mouseEvent,this.$focusTimeout;var p=this;this.editor=s,new w(this),new h(this),new a(this);var b=function(_){var k=!document.hasFocus||!document.hasFocus()||!s.isFocused()&&document.activeElement==(s.textInput&&s.textInput.getElement());k&&window.focus(),s.focus(),setTimeout(function(){s.isFocused()||s.focus()})},x=s.renderer.getMouseEventTarget();g.addListener(x,"click",this.onMouseEvent.bind(this,"click"),s),g.addListener(x,"mousemove",this.onMouseMove.bind(this,"mousemove"),s),g.addMultiMouseDownListener([x,s.renderer.scrollBarV&&s.renderer.scrollBarV.inner,s.renderer.scrollBarH&&s.renderer.scrollBarH.inner,s.textInput&&s.textInput.getElement()].filter(Boolean),[400,300,250],this,"onMouseEvent",s),g.addMouseWheelListener(s.container,this.onMouseWheel.bind(this,"mousewheel"),s),l(s.container,s);var I=s.renderer.$gutter;g.addListener(I,"mousedown",this.onMouseEvent.bind(this,"guttermousedown"),s),g.addListener(I,"click",this.onMouseEvent.bind(this,"gutterclick"),s),g.addListener(I,"dblclick",this.onMouseEvent.bind(this,"gutterdblclick"),s),g.addListener(I,"mousemove",this.onMouseEvent.bind(this,"guttermousemove"),s),g.addListener(x,"mousedown",b,s),g.addListener(I,"mousedown",b,s),m.isIE&&s.renderer.scrollBarV&&(g.addListener(s.renderer.scrollBarV.element,"mousedown",b,s),g.addListener(s.renderer.scrollBarH.element,"mousedown",b,s)),s.on("mousemove",function(_){if(!(p.state||p.$dragDelay||!p.$dragEnabled)){var k=s.renderer.screenToTextCoordinates(_.x,_.y),C=s.session.selection.getRange(),L=s.renderer;!C.isEmpty()&&C.insideStart(k.row,k.column)?L.setCursorStyle("default"):L.setCursorStyle("")}},s)}return i.prototype.onMouseEvent=function(s,p){this.editor.session&&this.editor._emit(s,new d(p,this.editor))},i.prototype.onMouseMove=function(s,p){var b=this.editor._eventRegistry&&this.editor._eventRegistry.mousemove;!b||!b.length||this.editor._emit(s,new d(p,this.editor))},i.prototype.onMouseWheel=function(s,p){var b=new d(p,this.editor);b.speed=this.$scrollSpeed*2,b.wheelX=p.wheelX,b.wheelY=p.wheelY,this.editor._emit(s,b)},i.prototype.setState=function(s){this.state=s},i.prototype.captureMouse=function(s,p){this.x=s.x,this.y=s.y,this.isMousePressed=!0;var b=this.editor,x=this.editor.renderer;x.$isMousePressed=!0;var I=this,_=!0,k=function(E){if(E){if(m.isWebKit&&!E.which&&I.releaseMouse)return I.releaseMouse();I.x=E.clientX,I.y=E.clientY,p&&p(E),I.mouseEvent=new d(E,I.editor),I.$mouseMoved=!0}},C=function(E){b.off("beforeEndOperation",R),_=!1,b.session&&L(),I[I.state+"End"]&&I[I.state+"End"](E),I.state="",I.isMousePressed=x.$isMousePressed=!1,x.$keepTextAreaAtCursor&&x.$moveTextAreaToCursor(),I.$onCaptureMouseMove=I.releaseMouse=null,E&&I.onMouseEvent("mouseup",E),b.endOperation()},L=function(){I[I.state]&&I[I.state](),I.$mouseMoved=!1},D=function(){_&&(L(),g.nextFrame(D))};if(m.isOldIE&&s.domEvent.type=="dblclick")return setTimeout(function(){C(s)});var R=function(E){I.releaseMouse&&b.curOp.command.name&&b.curOp.selectionChanged&&(I[I.state+"End"]&&I[I.state+"End"](),I.state="",I.releaseMouse())};b.on("beforeEndOperation",R),b.startOperation({command:{name:"mouse"}}),I.$onCaptureMouseMove=k,I.releaseMouse=g.capture(this.editor.container,k,C),D()},i.prototype.cancelContextMenu=function(){var s=(function(p){p&&p.domEvent&&p.domEvent.type!="contextmenu"||(this.editor.off("nativecontextmenu",s),p&&p.domEvent&&g.stopEvent(p.domEvent))}).bind(this);setTimeout(s,10),this.editor.on("nativecontextmenu",s)},i.prototype.destroy=function(){this.releaseMouse&&this.releaseMouse(),this.$tooltip&&this.$tooltip.destroy()},i}();c.prototype.releaseMouse=null,u.defineOptions(c.prototype,"mouseHandler",{scrollSpeed:{initialValue:2},dragDelay:{initialValue:m.isMac?150:0},dragEnabled:{initialValue:!0},focusTimeout:{initialValue:0}}),r.MouseHandler=c}),ace.define("ace/mouse/fold_handler",["require","exports","module","ace/lib/dom"],function(e,r,f){var g=e("../lib/dom"),m=function(){function w(h){h.on("click",function(d){var a=d.getDocumentPosition(),l=h.session,u=l.getFoldAt(a.row,a.column,1);u&&(d.getAccelKey()?l.removeFold(u):l.expandFold(u),d.stop());var c=d.domEvent&&d.domEvent.target;c&&g.hasCssClass(c,"ace_inline_button")&&g.hasCssClass(c,"ace_toggle_wrap")&&(l.setOption("wrap",!l.getUseWrapMode()),h.renderer.scrollCursorIntoView())}),h.on("gutterclick",function(d){var a=h.renderer.$gutterLayer.getRegion(d);if(a=="foldWidgets"){var l=d.getDocumentPosition().row,u=h.session;u.foldWidgets&&u.foldWidgets[l]&&h.session.onFoldWidgetClick(l,d),h.isFocused()||h.focus(),d.stop()}}),h.on("gutterdblclick",function(d){var a=h.renderer.$gutterLayer.getRegion(d);if(a=="foldWidgets"){var l=d.getDocumentPosition().row,u=h.session,c=u.getParentFoldRangeData(l,!0),i=c.range||c.firstRange;if(i){l=i.start.row;var s=u.getFoldAt(l,u.getLine(l).length,1);s?u.removeFold(s):(u.addFold("...",i),h.renderer.scrollCursorIntoView({row:i.start.row,column:0}))}d.stop()}})}return w}();r.FoldHandler=m}),ace.define("ace/keyboard/keybinding",["require","exports","module","ace/lib/keys","ace/lib/event"],function(e,r,f){var g=e("../lib/keys"),m=e("../lib/event"),w=function(){function h(d){this.$editor=d,this.$data={editor:d},this.$handlers=[],this.setDefaultHandler(d.commands)}return h.prototype.setDefaultHandler=function(d){this.removeKeyboardHandler(this.$defaultHandler),this.$defaultHandler=d,this.addKeyboardHandler(d,0)},h.prototype.setKeyboardHandler=function(d){var a=this.$handlers;if(a[a.length-1]!=d){for(;a[a.length-1]&&a[a.length-1]!=this.$defaultHandler;)this.removeKeyboardHandler(a[a.length-1]);this.addKeyboardHandler(d,1)}},h.prototype.addKeyboardHandler=function(d,a){if(d){typeof d=="function"&&!d.handleKeyboard&&(d.handleKeyboard=d);var l=this.$handlers.indexOf(d);l!=-1&&this.$handlers.splice(l,1),a==null?this.$handlers.push(d):this.$handlers.splice(a,0,d),l==-1&&d.attach&&d.attach(this.$editor)}},h.prototype.removeKeyboardHandler=function(d){var a=this.$handlers.indexOf(d);return a==-1?!1:(this.$handlers.splice(a,1),d.detach&&d.detach(this.$editor),!0)},h.prototype.getKeyboardHandler=function(){return this.$handlers[this.$handlers.length-1]},h.prototype.getStatusText=function(){var d=this.$data,a=d.editor;return this.$handlers.map(function(l){return l.getStatusText&&l.getStatusText(a,d)||""}).filter(Boolean).join(" ")},h.prototype.$callKeyboardHandlers=function(d,a,l,u){for(var c,i=!1,s=this.$editor.commands,p=this.$handlers.length;p--&&(c=this.$handlers[p].handleKeyboard(this.$data,d,a,l,u),!(!(!c||!c.command)&&(c.command=="null"?i=!0:i=s.exec(c.command,this.$editor,c.args,u),i&&u&&d!=-1&&c.passEvent!=!0&&c.command.passEvent!=!0&&m.stopEvent(u),i))););return!i&&d==-1&&(c={command:"insertstring"},i=s.exec("insertstring",this.$editor,a)),i&&this.$editor._signal&&this.$editor._signal("keyboardActivity",c),i},h.prototype.onCommandKey=function(d,a,l){var u=g.keyCodeToString(l);return this.$callKeyboardHandlers(a,u,l,d)},h.prototype.onTextInput=function(d){return this.$callKeyboardHandlers(-1,d)},h}();r.KeyBinding=w}),ace.define("ace/lib/bidiutil",["require","exports","module"],function(e,r,f){var g=0,m=0,w=!1,h=!1,d=!1,a=[[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,c=1,i=0,s=1,p=2,b=3,x=4,I=5,_=6,k=7,C=8,L=9,D=10,R=11,E=12,z=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,R,R,R,x,x,x,x,x,D,L,D,L,L,p,p,p,p,p,p,p,p,p,p,L,x,x,x,x,x,x,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,x,x,x,x,x,x,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,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,L,x,R,R,R,R,x,x,x,x,i,x,x,N,x,x,R,R,p,p,x,i,x,x,x,p,i,x,x,x,x,x],U=[C,C,C,C,C,C,C,C,C,C,C,N,N,N,i,s,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,z,F,O,$,A,L,R,R,R,R,R,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,L,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,le,se,de){var me=g?l:a,_e=null,Te=null,Me=null,Ze=0,Ge=null,lt=null,tt=-1,ct=null,Xt=null,Cn=[];if(!de)for(ct=0,de=[];ct<se;ct++)de[ct]=he(ne[ct]);for(m=g,w=!1,h=!1,d=!1,Xt=0;Xt<se;Xt++){if(_e=Ze,Cn[Xt]=Te=J(ne,de,Cn,Xt),Ze=me[_e][Te],Ge=Ze&240,Ze&=15,le[Xt]=Me=me[Ze][5],Ge>0)if(Ge==16){for(ct=tt;ct<Xt;ct++)le[ct]=1;tt=-1}else tt=-1;if(lt=me[Ze][6],lt)tt==-1&&(tt=Xt);else if(tt>-1){for(ct=tt;ct<Xt;ct++)le[ct]=Me;tt=-1}de[Xt]==I&&(le[Xt]=0),m|=Me}if(d){for(ct=0;ct<se;ct++)if(de[ct]==_){le[ct]=g;for(var Wt=ct-1;Wt>=0&&de[Wt]==C;Wt--)le[Wt]=g}}}function Q(ne,le,se){if(!(m<ne)){if(ne==1&&g==c&&!h){se.reverse();return}for(var de=se.length,me=0,_e,Te,Me,Ze;me<de;){if(le[me]>=ne){for(_e=me+1;_e<de&&le[_e]>=ne;)_e++;for(Te=me,Me=_e-1;Te<Me;Te++,Me--)Ze=se[Te],se[Te]=se[Me],se[Me]=Ze;me=_e}me++}}}function J(ne,le,se,de){var me=le[de],_e,Te,Me,Ze;switch(me){case i:case s:w=!1;case x:case b:return me;case p:return w?b:p;case k:return w=!0,s;case C:return x;case L:return de<1||de+1>=le.length||(_e=se[de-1])!=p&&_e!=b||(Te=le[de+1])!=p&&Te!=b?x:(w&&(Te=b),Te==_e?Te:x);case D:return _e=de>0?se[de-1]:I,_e==p&&de+1<le.length&&le[de+1]==p?p:x;case R:if(de>0&&se[de-1]==p)return p;if(w)return x;for(Ze=de+1,Me=le.length;Ze<Me&&le[Ze]==R;)Ze++;return Ze<Me&&le[Ze]==p?p:x;case E:for(Me=le.length,Ze=de+1;Ze<Me&&le[Ze]==E;)Ze++;if(Ze<Me){var Ge=ne[de],lt=Ge>=1425&&Ge<=2303||Ge==64286;if(_e=le[Ze],lt&&(_e==s||_e==k))return s}return de<1||(_e=le[de-1])==I?x:se[de-1];case I:return w=!1,h=!0,g;case _:return d=!0,x;case z:case F:case $:case A:case O:w=!1;case N:return x}}function he(ne){var le=ne.charCodeAt(0),se=le>>8;return se==0?le>191?i:B[le]:se==5?/[\u0591-\u05f4]/.test(ne)?s:i:se==6?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(ne)?E:/[\u0660-\u0669\u066b-\u066c]/.test(ne)?b:le==1642?R:/[\u06f0-\u06f9]/.test(ne)?p:k:se==32&&le<=8287?U[le&255]:se==254&&le>=65136?k:x}r.L=i,r.R=s,r.EN=p,r.ON_R=3,r.AN=4,r.R_H=5,r.B=6,r.RLE=7,r.DOT="·",r.doBidiReorder=function(ne,le,se){if(ne.length<2)return{};var de=ne.split(""),me=new Array(de.length),_e=new Array(de.length),Te=[];g=se?c:u,K(de,Te,de.length,le);for(var Me=0;Me<me.length;me[Me]=Me,Me++);Q(2,Te,me),Q(1,Te,me);for(var Me=0;Me<me.length-1;Me++)le[Me]===b?Te[Me]=r.AN:Te[Me]===s&&(le[Me]>k&&le[Me]<z||le[Me]===x||le[Me]===N)?Te[Me]=r.ON_R:Me>0&&de[Me-1]==="ل"&&/\u0622|\u0623|\u0625|\u0627/.test(de[Me])&&(Te[Me-1]=Te[Me]=r.R_H,Me++);de[de.length-1]===r.DOT&&(Te[de.length-1]=r.B),de[0]==="‫"&&(Te[0]=r.RLE);for(var Me=0;Me<me.length;Me++)_e[Me]=Te[me[Me]];return{logicalFromVisual:me,bidiLevels:_e}},r.hasBidiCharacters=function(ne,le){for(var se=!1,de=0;de<ne.length;de++)le[de]=he(ne.charAt(de)),!se&&(le[de]==s||le[de]==k||le[de]==b)&&(se=!0);return se},r.getVisualFromLogicalIdx=function(ne,le){for(var se=0;se<le.logicalFromVisual.length;se++)if(le.logicalFromVisual[se]==ne)return se;return 0}}),ace.define("ace/bidihandler",["require","exports","module","ace/lib/bidiutil","ace/lib/lang"],function(e,r,f){var g=e("./lib/bidiutil"),m=e("./lib/lang"),w=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\u202B]/,h=function(){function d(a){this.session=a,this.bidiMap={},this.currentRow=null,this.bidiUtil=g,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=w.test(a.getValue())}return d.prototype.isBidiRow=function(a,l,u){return this.seenBidi?(a!==this.currentRow&&(this.currentRow=a,this.updateRowLine(l,u),this.updateBidiMap()),this.bidiMap.bidiLevels):!1},d.prototype.onChange=function(a){this.seenBidi?this.currentRow=null:a.action=="insert"&&w.test(a.lines.join(`
179
179
  `))&&(this.seenBidi=!0,this.currentRow=null)},d.prototype.getDocumentRow=function(){var a=0,l=this.session.$screenRowCache;if(l.length){var u=this.session.$getRowCacheIndex(l,this.currentRow);u>=0&&(a=this.session.$docRowCache[u])}return a},d.prototype.getSplitIndex=function(){var a=0,l=this.session.$screenRowCache;if(l.length)for(var u,c=this.session.$getRowCacheIndex(l,this.currentRow);this.currentRow-a>0&&(u=this.session.$getRowCacheIndex(l,this.currentRow-a-1),u===c);)c=u,a++;else a=this.currentRow;return a},d.prototype.updateRowLine=function(a,l){a===void 0&&(a=this.getDocumentRow());var u=a===this.session.getLength()-1,c=u?this.EOF:this.EOL;if(this.wrapIndent=0,this.line=this.session.getLine(a),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode){var i=this.session.$wrapData[a];i&&(l===void 0&&(l=this.getSplitIndex()),l>0&&i.length?(this.wrapIndent=i.indent,this.wrapOffset=this.wrapIndent*this.charWidths[g.L],this.line=l<i.length?this.line.substring(i[l-1],i[l]):this.line.substring(i[i.length-1])):this.line=this.line.substring(0,i[l]),l==i.length&&(this.line+=this.showInvisibles?c:g.DOT))}else this.line+=this.showInvisibles?c:g.DOT;var s=this.session,p=0,b;this.line=this.line.replace(/\t|[\u1100-\u2029, \u202F-\uFFE6]/g,function(x,I){return x===" "||s.isFullWidth(x.charCodeAt(0))?(b=x===" "?s.getScreenTabSize(I+p):2,p+=b-1,m.stringRepeat(g.DOT,b)):x}),this.isRtlDir&&(this.fontMetrics.$main.textContent=this.line.charAt(this.line.length-1)==g.DOT?this.line.substr(0,this.line.length-1):this.line,this.rtlLineOffset=this.contentWidth-this.fontMetrics.$main.getBoundingClientRect().width)},d.prototype.updateBidiMap=function(){var a=[];g.hasBidiCharacters(this.line,a)||this.isRtlDir?this.bidiMap=g.doBidiReorder(this.line,a,this.isRtlDir):this.bidiMap={}},d.prototype.markAsDirty=function(){this.currentRow=null},d.prototype.updateCharacterWidths=function(a){if(this.characterWidth!==a.$characterSize.width){this.fontMetrics=a;var l=this.characterWidth=a.$characterSize.width,u=a.$measureCharWidth("ה");this.charWidths[g.L]=this.charWidths[g.EN]=this.charWidths[g.ON_R]=l,this.charWidths[g.R]=this.charWidths[g.AN]=u,this.charWidths[g.R_H]=u*.45,this.charWidths[g.B]=this.charWidths[g.RLE]=0,this.currentRow=null}},d.prototype.setShowInvisibles=function(a){this.showInvisibles=a,this.currentRow=null},d.prototype.setEolChar=function(a){this.EOL=a},d.prototype.setContentWidth=function(a){this.contentWidth=a},d.prototype.isRtlLine=function(a){return this.$isRtl?!0:a!=null?this.session.getLine(a).charAt(0)==this.RLE:this.isRtlDir},d.prototype.setRtlDirection=function(a,l){for(var u=a.getCursorPosition(),c=a.selection.getSelectionAnchor().row;c<=u.row;c++)!l&&a.session.getLine(c).charAt(0)===a.session.$bidiHandler.RLE?a.session.doc.removeInLine(c,0,1):l&&a.session.getLine(c).charAt(0)!==a.session.$bidiHandler.RLE&&a.session.doc.insert({column:0,row:c},a.session.$bidiHandler.RLE)},d.prototype.getPosLeft=function(a){a-=this.wrapIndent;var l=this.line.charAt(0)===this.RLE?1:0,u=a>l?this.session.getOverwrite()?a:a-1:l,c=g.getVisualFromLogicalIdx(u,this.bidiMap),i=this.bidiMap.bidiLevels,s=0;!this.session.getOverwrite()&&a<=l&&i[c]%2!==0&&c++;for(var p=0;p<c;p++)s+=this.charWidths[i[p]];return!this.session.getOverwrite()&&a>l&&i[c]%2===0&&(s+=this.charWidths[i[c]]),this.wrapIndent&&(s+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(s+=this.rtlLineOffset),s},d.prototype.getSelections=function(a,l){var u=this.bidiMap,c=u.bidiLevels,i,s=[],p=0,b=Math.min(a,l)-this.wrapIndent,x=Math.max(a,l)-this.wrapIndent,I=!1,_=!1,k=0;this.wrapIndent&&(p+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var C,L=0;L<c.length;L++)C=u.logicalFromVisual[L],i=c[L],I=C>=b&&C<x,I&&!_?k=p:!I&&_&&s.push({left:k,width:p-k}),p+=this.charWidths[i],_=I;if(I&&L===c.length&&s.push({left:k,width:p-k}),this.isRtlDir)for(var D=0;D<s.length;D++)s[D].left+=this.rtlLineOffset;return s},d.prototype.offsetToCol=function(u){this.isRtlDir&&(u-=this.rtlLineOffset);var l=0,u=Math.max(u,0),c=0,i=0,s=this.bidiMap.bidiLevels,p=this.charWidths[s[i]];for(this.wrapIndent&&(u-=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);u>c+p/2;){if(c+=p,i===s.length-1){p=0;break}p=this.charWidths[s[++i]]}return i>0&&s[i-1]%2!==0&&s[i]%2===0?(u<c&&i--,l=this.bidiMap.logicalFromVisual[i]):i>0&&s[i-1]%2===0&&s[i]%2!==0?l=1+(u>c?this.bidiMap.logicalFromVisual[i]:this.bidiMap.logicalFromVisual[i-1]):this.isRtlDir&&i===s.length-1&&p===0&&s[i-1]%2===0||!this.isRtlDir&&i===0&&s[i]%2!==0?l=1+this.bidiMap.logicalFromVisual[i]:(i>0&&s[i-1]%2!==0&&p!==0&&i--,l=this.bidiMap.logicalFromVisual[i]),l===0&&this.isRtlDir&&l++,l+this.wrapIndent},d}();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 g=e("./lib/oop"),m=e("./lib/lang"),w=e("./lib/event_emitter").EventEmitter,h=e("./range").Range,d=function(){function a(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(c){u.$cursorChanged=!0,u.$silent||u._emit("changeCursor"),!u.$isEmpty&&!u.$silent&&u._emit("changeSelection"),!u.$keepDesiredColumnOnChange&&c.old.column!=c.value.column&&(u.$desiredColumn=null)}),this.anchor.on("change",function(){u.$anchorChanged=!0,!u.$isEmpty&&!u.$silent&&u._emit("changeSelection")})}return a.prototype.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},a.prototype.isMultiLine=function(){return!this.$isEmpty&&this.anchor.row!=this.cursor.row},a.prototype.getCursor=function(){return this.lead.getPosition()},a.prototype.setAnchor=function(l,u){this.$isEmpty=!1,this.anchor.setPosition(l,u)},a.prototype.getAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},a.prototype.getSelectionLead=function(){return this.lead.getPosition()},a.prototype.isBackwards=function(){var l=this.anchor,u=this.lead;return l.row>u.row||l.row==u.row&&l.column>u.column},a.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)},a.prototype.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},a.prototype.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},a.prototype.setRange=function(l,u){var c=u?l.end:l.start,i=u?l.start:l.end;this.$setSelection(c.row,c.column,i.row,i.column)},a.prototype.$setSelection=function(l,u,c,i){if(!this.$silent){var s=this.$isEmpty,p=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(l,u),this.cursor.setPosition(c,i),this.$isEmpty=!h.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||s!=this.$isEmpty||p)&&this._emit("changeSelection")}},a.prototype.$moveSelection=function(l){var u=this.lead;this.$isEmpty&&this.setSelectionAnchor(u.row,u.column),l.call(this)},a.prototype.selectTo=function(l,u){this.$moveSelection(function(){this.moveCursorTo(l,u)})},a.prototype.selectToPosition=function(l){this.$moveSelection(function(){this.moveCursorToPosition(l)})},a.prototype.moveTo=function(l,u){this.clearSelection(),this.moveCursorTo(l,u)},a.prototype.moveToPosition=function(l){this.clearSelection(),this.moveCursorToPosition(l)},a.prototype.selectUp=function(){this.$moveSelection(this.moveCursorUp)},a.prototype.selectDown=function(){this.$moveSelection(this.moveCursorDown)},a.prototype.selectRight=function(){this.$moveSelection(this.moveCursorRight)},a.prototype.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},a.prototype.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},a.prototype.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},a.prototype.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},a.prototype.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},a.prototype.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},a.prototype.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},a.prototype.getWordRange=function(l,u){if(typeof u>"u"){var c=l||this.lead;l=c.row,u=c.column}return this.session.getWordRange(l,u)},a.prototype.selectWord=function(){this.setSelectionRange(this.getWordRange())},a.prototype.selectAWord=function(){var l=this.getCursor(),u=this.session.getAWordRange(l.row,l.column);this.setSelectionRange(u)},a.prototype.getLineRange=function(l,u){var c=typeof l=="number"?l:this.lead.row,i,s=this.session.getFoldLine(c);return s?(c=s.start.row,i=s.end.row):i=c,u===!0?new h(c,0,i,this.session.getLine(i).length):new h(c,0,i+1,0)},a.prototype.selectLine=function(){this.setSelectionRange(this.getLineRange())},a.prototype.moveCursorUp=function(){this.moveCursorBy(-1,0)},a.prototype.moveCursorDown=function(){this.moveCursorBy(1,0)},a.prototype.wouldMoveIntoSoftTab=function(l,u,c){var i=l.column,s=l.column+u;return c<0&&(i=l.column-u,s=l.column),this.session.isTabStop(l)&&this.doc.getLine(l.row).slice(i,s).split(" ").length-1==u},a.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 c=this.session.getTabSize();this.wouldMoveIntoSoftTab(l,c,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-c):this.moveCursorBy(0,-1)}},a.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 c=this.session.getTabSize(),l=this.lead;this.wouldMoveIntoSoftTab(l,c,1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,c):this.moveCursorBy(0,1)}},a.prototype.moveCursorLineStart=function(){var l=this.lead.row,u=this.lead.column,c=this.session.documentToScreenRow(l,u),i=this.session.screenToDocumentPosition(c,0),s=this.session.getDisplayLine(l,null,i.row,i.column),p=s.match(/^\s*/);p[0].length!=u&&!this.session.$useEmacsStyleLineStart&&(i.column+=p[0].length),this.moveCursorToPosition(i)},a.prototype.moveCursorLineEnd=function(){var l=this.lead,u=this.session.getDocumentLastRowColumnPosition(l.row,l.column);if(this.lead.column==u.column){var c=this.session.getLine(u.row);if(u.column==c.length){var i=c.search(/\s+$/);i>0&&(u.column=i)}}this.moveCursorTo(u.row,u.column)},a.prototype.moveCursorFileEnd=function(){var l=this.doc.getLength()-1,u=this.doc.getLine(l).length;this.moveCursorTo(l,u)},a.prototype.moveCursorFileStart=function(){this.moveCursorTo(0,0)},a.prototype.moveCursorLongWordRight=function(){var l=this.lead.row,u=this.lead.column,c=this.doc.getLine(l),i=c.substring(u);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var s=this.session.getFoldAt(l,u,1);if(s){this.moveCursorTo(s.end.row,s.end.column);return}if(this.session.nonTokenRe.exec(i)&&(u+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,i=c.substring(u)),u>=c.length){this.moveCursorTo(l,c.length),this.moveCursorRight(),l<this.doc.getLength()-1&&this.moveCursorWordRight();return}this.session.tokenRe.exec(i)&&(u+=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(l,u)},a.prototype.moveCursorLongWordLeft=function(){var l=this.lead.row,u=this.lead.column,c;if(c=this.session.getFoldAt(l,u,-1)){this.moveCursorTo(c.start.row,c.start.column);return}var i=this.session.getFoldStringAt(l,u,-1);i==null&&(i=this.doc.getLine(l).substring(0,u));var s=m.stringReverse(i);if(this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0,this.session.nonTokenRe.exec(s)&&(u-=this.session.nonTokenRe.lastIndex,s=s.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(s)&&(u-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(l,u)},a.prototype.$shortWordEndIndex=function(l){var u=0,c,i=/\s/,s=this.session.tokenRe;if(s.lastIndex=0,this.session.tokenRe.exec(l))u=this.session.tokenRe.lastIndex;else{for(;(c=l[u])&&i.test(c);)u++;if(u<1){for(s.lastIndex=0;(c=l[u])&&!s.test(c);)if(s.lastIndex=0,u++,i.test(c))if(u>2){u--;break}else{for(;(c=l[u])&&i.test(c);)u++;if(u>2)break}}}return s.lastIndex=0,u},a.prototype.moveCursorShortWordRight=function(){var l=this.lead.row,u=this.lead.column,c=this.doc.getLine(l),i=c.substring(u),s=this.session.getFoldAt(l,u,1);if(s)return this.moveCursorTo(s.end.row,s.end.column);if(u==c.length){var p=this.doc.getLength();do l++,i=this.doc.getLine(l);while(l<p&&/^\s*$/.test(i));/^\s+/.test(i)||(i=""),u=0}var b=this.$shortWordEndIndex(i);this.moveCursorTo(l,u+b)},a.prototype.moveCursorShortWordLeft=function(){var l=this.lead.row,u=this.lead.column,c;if(c=this.session.getFoldAt(l,u,-1))return this.moveCursorTo(c.start.row,c.start.column);var i=this.session.getLine(l).substring(0,u);if(u===0){do l--,i=this.doc.getLine(l);while(l>0&&/^\s*$/.test(i));u=i.length,/\s+$/.test(i)||(i="")}var s=m.stringReverse(i),p=this.$shortWordEndIndex(s);return this.moveCursorTo(l,u-p)},a.prototype.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},a.prototype.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},a.prototype.moveCursorBy=function(l,u){var c=this.session.documentToScreenPosition(this.lead.row,this.lead.column),i;if(u===0&&(l!==0&&(this.session.$bidiHandler.isBidiRow(c.row,this.lead.row)?(i=this.session.$bidiHandler.getPosLeft(c.column),c.column=Math.round(i/this.session.$bidiHandler.charWidths[0])):i=c.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?c.column=this.$desiredColumn:this.$desiredColumn=c.column),l!=0&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]){var s=this.session.lineWidgets[this.lead.row];l<0?l-=s.rowsAbove||0:l>0&&(l+=s.rowCount-(s.rowsAbove||0))}var p=this.session.screenToDocumentPosition(c.row+l,c.column,i);l!==0&&u===0&&p.row===this.lead.row&&(p.column,this.lead.column),this.moveCursorTo(p.row,p.column+u,u===0)},a.prototype.moveCursorToPosition=function(l){this.moveCursorTo(l.row,l.column)},a.prototype.moveCursorTo=function(l,u,c){var i=this.session.getFoldAt(l,u,1);i&&(l=i.start.row,u=i.start.column),this.$keepDesiredColumnOnChange=!0;var s=this.session.getLine(l);/[\uDC00-\uDFFF]/.test(s.charAt(u))&&s.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,c||(this.$desiredColumn=null)},a.prototype.moveCursorToScreen=function(l,u,c){var i=this.session.screenToDocumentPosition(l,u);this.moveCursorTo(i.row,i.column,c)},a.prototype.detach=function(){this.lead.detach(),this.anchor.detach()},a.prototype.fromOrientedRange=function(l){this.setSelectionRange(l,l.cursor==l.start),this.$desiredColumn=l.desiredColumn||this.$desiredColumn},a.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},a.prototype.getRangeOfMovements=function(l){var u=this.getCursor();try{l(this);var c=this.getCursor();return h.fromPoints(u,c)}catch{return h.fromPoints(u,u)}finally{this.moveCursorToPosition(u)}},a.prototype.toJSON=function(){if(this.rangeCount)var l=this.ranges.map(function(u){var c=u.clone();return c.isBackwards=u.cursor==u.start,c});else{var l=this.getRange();l.isBackwards=this.isBackwards()}return l},a.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 c=h.fromPoints(l[u].start,l[u].end);l[u].isBackwards&&(c.cursor=c.start),this.addRange(c,!0)}return}else l=l[0];this.rangeList&&this.toSingleRange(l),this.setSelectionRange(l,l.isBackwards)},a.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},a}();d.prototype.setSelectionAnchor=d.prototype.setAnchor,d.prototype.getSelectionAnchor=d.prototype.getAnchor,d.prototype.setSelectionRange=d.prototype.setRange,g.implement(d.prototype,w),r.Selection=d}),ace.define("ace/tokenizer",["require","exports","module","ace/lib/report_error"],function(e,r,f){var g=e("./lib/report_error").reportError,m=2e3,w=function(){function h(d){this.splitRegex,this.states=d,this.regExps={},this.matchMappings={};for(var a in this.states){for(var l=this.states[a],u=[],c=0,i=this.matchMappings[a]={defaultToken:"text"},s="g",p=[],b=0;b<l.length;b++){var x=l[b];if(x.defaultToken&&(i.defaultToken=x.defaultToken),x.caseInsensitive&&s.indexOf("i")===-1&&(s+="i"),x.unicode&&s.indexOf("u")===-1&&(s+="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(k,C){return"\\"+(parseInt(C,10)+c+1)}):(_=1,I=this.removeCapturingGroups(x.regex)),!x.splitRegex&&typeof x.token!="string"&&p.push(x)),i[c]=b,c+=_,u.push(I),x.onMatch||(x.onMatch=null)}}u.length||(i[0]=0,u.push("$")),p.forEach(function(k){k.splitRegex=this.createSplitterRegexp(k.regex,s)},this),this.regExps[a]=new RegExp("("+u.join(")|(")+")|($)",s)}}return h.prototype.$setMaxTokenCount=function(d){m=d|0},h.prototype.$applyToken=function(d){var a=this.splitRegex.exec(d).slice(1),l=this.token.apply(this,a);if(typeof l=="string")return[{type:l,value:d}];for(var u=[],c=0,i=l.length;c<i;c++)a[c]&&(u[u.length]={type:l[c],value:a[c]});return u},h.prototype.$arrayTokens=function(d){if(!d)return[];var a=this.splitRegex.exec(d);if(!a)return"text";for(var l=[],u=this.tokenArray,c=0,i=u.length;c<i;c++)a[c+1]&&(l[l.length]={type:u[c],value:a[c+1]});return l},h.prototype.removeCapturingGroups=function(d){var a=d.replace(/\\.|\[(?:\\.|[^\\\]])*|\(\?[:=!<]|(\()/g,function(l,u){return u?"(?:":l});return a},h.prototype.createSplitterRegexp=function(d,a){if(d.indexOf("(?=")!=-1){var l=0,u=!1,c={};d.replace(/(\\.)|(\((?:\?[=!])?)|(\))|([\[\]])/g,function(i,s,p,b,x,I){return u?u=x!="]":x?u=!0:b?(l==c.stack&&(c.end=I+1,c.stack=-1),l--):p&&(l++,p.length!=1&&(c.stack=l,c.start=I)),i}),c.end!=null&&/^\)*$/.test(d.substr(c.end))&&(d=d.substring(0,c.start)+d.substr(c.end))}return d.charAt(0)!="^"&&(d="^"+d),d.charAt(d.length-1)!="$"&&(d+="$"),new RegExp(d,(a||"").replace("g",""))},h.prototype.getLineTokens=function(d,a){if(a&&typeof a!="string"){var l=a.slice(0);a=l[0],a==="#tmp"&&(l.shift(),a=l.shift())}else var l=[];var u=a||"start",c=this.states[u];c||(u="start",c=this.states[u]);var i=this.matchMappings[u],s=this.regExps[u];s.lastIndex=0;for(var p,b=[],x=0,I=0,_={type:null,value:""};p=s.exec(d);){var k=i.defaultToken,C=null,L=p[0],D=s.lastIndex;if(D-L.length>x){var R=d.substring(x,D-L.length);_.type==k?_.value+=R:(_.type&&b.push(_),_={type:k,value:R})}for(var E=0;E<p.length-2;E++)if(p[E+1]!==void 0){C=c[i[E]],C.onMatch?k=C.onMatch(L,u,l,d):k=C.token,C.next&&(typeof C.next=="string"?u=C.next:u=C.next(u,l),c=this.states[u],c||(this.reportError("state doesn't exist",u),u="start",c=this.states[u]),i=this.matchMappings[u],x=D,s=this.regExps[u],s.lastIndex=D),C.consumeLineEnd&&(x=D);break}if(L){if(typeof k=="string")(!C||C.merge!==!1)&&_.type===k?_.value+=L:(_.type&&b.push(_),_={type:k,value:L});else if(k){_.type&&b.push(_),_={type:null,value:""};for(var E=0;E<k.length;E++)b.push(k[E])}}if(x==d.length)break;if(x=D,I++>m){for(I>2*d.length&&this.reportError("infinite loop with in ace tokenizer",{startState:a,line:d});x<d.length;)_.type&&b.push(_),_={value:d.substring(x,x+=500),type:"overflow"};u="start",l=[];break}}return _.type&&b.push(_),l.length>1&&l[0]!==u&&l.unshift("#tmp",u),{tokens:b,state:l.length?l:u}},h}();w.prototype.reportError=g,r.Tokenizer=w}),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/deep_copy"],function(e,r,f){var g=e("../lib/deep_copy").deepCopy,m;m=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}},(function(){this.addRules=function(d,a){if(!a){for(var l in d)this.$rules[l]=d[l];return}for(var l in d){for(var u=d[l],c=0;c<u.length;c++){var i=u[c];(i.next||i.onMatch)&&(typeof i.next=="string"&&i.next.indexOf(a)!==0&&(i.next=a+i.next),i.nextState&&i.nextState.indexOf(a)!==0&&(i.nextState=a+i.nextState))}this.$rules[a+l]=u}},this.getRules=function(){return this.$rules},this.embedRules=function(d,a,l,u,c){var i=typeof d=="function"?new d().getRules():d;if(u)for(var s=0;s<u.length;s++)u[s]=a+u[s];else{u=[];for(var p in i)u.push(a+p)}if(this.addRules(i,a),l)for(var b=Array.prototype[c?"push":"unshift"],s=0;s<u.length;s++)b.apply(this.$rules[u[s]],g(l));this.$embeds||(this.$embeds=[]),this.$embeds.push(a)},this.getEmbeds=function(){return this.$embeds};var w=function(d,a){return(d!="start"||a.length)&&a.unshift(this.nextState,d),this.nextState},h=function(d,a){return a.shift(),a.shift()||"start"};this.normalizeRules=function(){var d=0,a=this.$rules;function l(u){var c=a[u];c.processed=!0;for(var i=0;i<c.length;i++){var s=c[i],p=null;Array.isArray(s)&&(p=s,s={}),!s.regex&&s.start&&(s.regex=s.start,s.next||(s.next=[]),s.next.push({defaultToken:s.token},{token:s.token+".end",regex:s.end||s.start,next:"pop"}),s.token=s.token+".start",s.push=!0);var b=s.next||s.push;if(b&&Array.isArray(b)){var x=s.stateName;x||(x=s.token,typeof x!="string"&&(x=x[0]||""),a[x]&&(x+=d++)),a[x]=b,s.next=x,l(x)}else b=="pop"&&(s.next=h);if(s.push&&(s.nextState=s.next||s.push,s.next=w,delete s.push),s.rules)for(var I in s.rules)a[I]?a[I].push&&a[I].push.apply(a[I],s.rules[I]):a[I]=s.rules[I];var _=typeof s=="string"?s:s.include;if(_&&(_==="$self"&&(_="start"),Array.isArray(_)?p=_.map(function(C){return a[C]}):p=a[_]),p){var k=[i,1].concat(p);s.noEscape&&(k=k.filter(function(C){return!C.next})),c.splice.apply(c,k),i--}s.keywordMap&&(s.token=this.createKeywordMapper(s.keywordMap,s.defaultToken||"text",s.caseInsensitive),delete s.defaultToken)}}Object.keys(a).forEach(l,this)},this.createKeywordMapper=function(d,a,l,u){var c=Object.create(null);return this.$keywordList=[],Object.keys(d).forEach(function(i){for(var s=d[i],p=s.split(u||"|"),b=p.length;b--;){var x=p[b];this.$keywordList.push(x),l&&(x=x.toLowerCase()),c[x]=i}},this),d=null,l?function(i){return c[i.toLowerCase()]||a}:function(i){return c[i]||a}},this.getKeywords=function(){return this.$keywords}}).call(m.prototype),r.TextHighlightRules=m}),ace.define("ace/mode/behaviour",["require","exports","module"],function(e,r,f){var g;g=function(){this.$behaviours={}},(function(){this.add=function(m,w,h){switch(void 0){case this.$behaviours:this.$behaviours={};case this.$behaviours[m]:this.$behaviours[m]={}}this.$behaviours[m][w]=h},this.addBehaviours=function(m){for(var w in m)for(var h in m[w])this.add(w,h,m[w][h])},this.remove=function(m){this.$behaviours&&this.$behaviours[m]&&delete this.$behaviours[m]},this.inherit=function(m,w){if(typeof m=="function")var h=new m().getBehaviours(w);else var h=m.getBehaviours(w);this.addBehaviours(h)},this.getBehaviours=function(m){if(m){for(var w={},h=0;h<m.length;h++)this.$behaviours[m[h]]&&(w[m[h]]=this.$behaviours[m[h]]);return w}else return this.$behaviours}}).call(g.prototype),r.Behaviour=g}),ace.define("ace/token_iterator",["require","exports","module","ace/range"],function(e,r,f){var g=e("./range").Range,m=function(){function w(h,d,a){this.$session=h,this.$row=d,this.$rowTokens=h.getTokens(d);var l=h.getTokenAt(d,a);this.$tokenIndex=l?l.index:-1}return w.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]},w.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]},w.prototype.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},w.prototype.getCurrentTokenRow=function(){return this.$row},w.prototype.getCurrentTokenColumn=function(){var h=this.$rowTokens,d=this.$tokenIndex,a=h[d].start;if(a!==void 0)return a;for(a=0;d>0;)d-=1,a+=h[d].value.length;return a},w.prototype.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},w.prototype.getCurrentTokenRange=function(){var h=this.$rowTokens[this.$tokenIndex],d=this.getCurrentTokenColumn();return new g(this.$row,d,this.$row,d+h.value.length)},w}();r.TokenIterator=m}),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 g=e("../../lib/oop"),m=e("../behaviour").Behaviour,w=e("../../token_iterator").TokenIterator,h=e("../../lib/lang"),d=["text","paren.rparen","rparen","paren","punctuation.operator"],a=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],l,u={},c={'"':'"',"'":"'"},i=function(b){var x=-1;if(b.multiSelect&&(x=b.selection.index,u.rangeCount!=b.multiSelect.rangeCount&&(u={rangeCount:b.multiSelect.rangeCount})),u[x])return l=u[x];l=u[x]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},s=function(b,x,I,_){var k=b.end.row-b.start.row;return{text:I+x+_,selection:[0,b.start.column+1,k,b.end.column+(k?0:1)]}},p;p=function(b){b=b||{},this.add("braces","insertion",function(x,I,_,k,C){var L=_.getCursorPosition(),D=k.doc.getLine(L.row);if(C=="{"){i(_);var R=_.getSelectionRange(),E=k.doc.getTextRange(R),z=k.getTokenAt(L.row,L.column);if(E!==""&&E!=="{"&&_.getWrapBehavioursEnabled())return s(R,E,"{","}");if(z&&/(?:string)\.quasi|\.xml/.test(z.type)){var F=[/tag\-(?:open|name)/,/attribute\-name/];return F.some(function(K){return K.test(z.type)})||/(string)\.quasi/.test(z.type)&&z.value[L.column-z.start-1]!=="$"?void 0:(p.recordAutoInsert(_,k,"}"),{text:"{}",selection:[1,1]})}else if(p.isSaneInsertion(_,k))return/[\]\}\)]/.test(D[L.column])||_.inMultiSelectMode||b.braces?(p.recordAutoInsert(_,k,"}"),{text:"{}",selection:[1,1]}):(p.recordMaybeInsert(_,k,"{"),{text:"{",selection:[1,1]})}else if(C=="}"){i(_);var O=D.substring(L.column,L.column+1);if(O=="}"){var $=k.$findOpeningBracket("}",{column:L.column+1,row:L.row});if($!==null&&p.isAutoInsertedClosing(L,D,C))return p.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}else if(C==`
180
180
  `||C==`\r
181
181
  `){i(_);var A="";p.isMaybeInsertedClosing(L,D)&&(A=h.stringRepeat("}",l.maybeInsertedBrackets),p.clearMaybeInsertedClosing());var O=D.substring(L.column,L.column+1);if(O==="}"){var N=k.findMatchingBracket({row:L.row,column:L.column+1},"}");if(!N)return null;var B=this.$getIndent(k.getLine(N.row))}else if(A)var B=this.$getIndent(D);else{p.clearMaybeInsertedClosing();return}var U=B+k.getTabString();return{text:`
@@ -1134,7 +1134,7 @@ System.register(["vue","vue-router","single-spa","vuex","vuetify"],function(er,o
1134
1134
  border: 1px dotted rgba(211, 208, 235, 0.62);
1135
1135
  position: absolute;
1136
1136
  }`,"snippets.css",!1),r.snippetManager=new p;var k=e("./editor").Editor;(function(){this.insertSnippet=function(C,L){return r.snippetManager.insertSnippet(this,C,L)},this.expandSnippet=function(C){return r.snippetManager.expandWithTab(this,C)}}).call(k.prototype)}),ace.define("ace/autocomplete/popup",["require","exports","module","ace/virtual_renderer","ace/editor","ace/range","ace/lib/event","ace/lib/lang","ace/lib/dom","ace/config","ace/lib/useragent"],function(e,r,f){var g=e("../virtual_renderer").VirtualRenderer,m=e("../editor").Editor,w=e("../range").Range,h=e("../lib/event"),d=e("../lib/lang"),a=e("../lib/dom"),l=e("../config").nls,u=e("./../lib/useragent"),c=function(I){return"suggest-aria-id:".concat(I)},i=u.isSafari?"menu":"listbox",s=u.isSafari?"menuitem":"option",p=u.isSafari?"aria-current":"aria-selected",b=function(I){var _=new g(I);_.$maxLines=4;var k=new m(_);return k.setHighlightActiveLine(!1),k.setShowPrintMargin(!1),k.renderer.setShowGutter(!1),k.renderer.setHighlightGutterLine(!1),k.$mouseHandler.$focusTimeout=0,k.$highlightTagPending=!0,k},x=function(){function I(_){var k=a.createElement("div"),C=b(k);_&&_.appendChild(k),k.style.display="none",C.renderer.content.style.cursor="default",C.renderer.setStyle("ace_autocomplete"),C.renderer.$textLayer.element.setAttribute("role",i),C.renderer.$textLayer.element.setAttribute("aria-roledescription",l("autocomplete.popup.aria-roledescription","Autocomplete suggestions")),C.renderer.$textLayer.element.setAttribute("aria-label",l("autocomplete.popup.aria-label","Autocomplete suggestions")),C.renderer.textarea.setAttribute("aria-hidden","true"),C.setOption("displayIndentGuides",!1),C.setOption("dragDelay",150);var L=function(){};C.focus=L,C.$isFocused=!0,C.renderer.$cursorLayer.restartTimer=L,C.renderer.$cursorLayer.element.style.opacity="0",C.renderer.$maxLines=8,C.renderer.$keepTextAreaAtCursor=!1,C.setHighlightActiveLine(!1),C.session.highlight(""),C.session.$searchHighlight.clazz="ace_highlight-marker",C.on("mousedown",function($){var A=$.getDocumentPosition();C.selection.moveToPosition(A),E.start.row=E.end.row=A.row,$.stop()});var D,R=new w(-1,0,-1,1/0),E=new w(-1,0,-1,1/0);E.id=C.session.addMarker(E,"ace_active-line","fullLine"),C.setSelectOnHover=function($){$?R.id&&(C.session.removeMarker(R.id),R.id=null):R.id=C.session.addMarker(R,"ace_line-hover","fullLine")},C.setSelectOnHover(!1),C.on("mousemove",function($){if(!D){D=$;return}if(!(D.x==$.x&&D.y==$.y)){D=$,D.scrollTop=C.renderer.scrollTop,C.isMouseOver=!0;var A=D.getDocumentPosition().row;R.start.row!=A&&(R.id||C.setRow(A),F(A))}}),C.renderer.on("beforeRender",function(){if(D&&R.start.row!=-1){D.$pos=null;var $=D.getDocumentPosition().row;R.id||C.setRow($),F($,!0)}}),C.renderer.on("afterRender",function(){for(var $=C.renderer.$textLayer,A=$.config.firstRow,N=$.config.lastRow;A<=N;A++){var B=$.element.childNodes[A-$.config.firstRow];B.setAttribute("role",s),B.setAttribute("aria-roledescription",l("autocomplete.popup.item.aria-roledescription","item")),B.setAttribute("aria-setsize",C.data.length),B.setAttribute("aria-describedby","doc-tooltip"),B.setAttribute("aria-posinset",A+1);var U=C.getData(A);if(U){var K="".concat(U.caption||U.value).concat(U.meta?", ".concat(U.meta):"");B.setAttribute("aria-label",K)}var Q=B.querySelectorAll(".ace_completion-highlight");Q.forEach(function(J){J.setAttribute("role","mark")})}}),C.renderer.on("afterRender",function(){var $=C.getRow(),A=C.renderer.$textLayer,N=A.element.childNodes[$-A.config.firstRow],B=document.activeElement;if(N!==C.selectedNode&&C.selectedNode&&(a.removeCssClass(C.selectedNode,"ace_selected"),C.selectedNode.removeAttribute(p),C.selectedNode.removeAttribute("id")),B.removeAttribute("aria-activedescendant"),C.selectedNode=N,N){var U=c($);a.addCssClass(N,"ace_selected"),N.id=U,A.element.setAttribute("aria-activedescendant",U),B.setAttribute("aria-activedescendant",U),N.setAttribute(p,"true")}});var z=function(){F(-1)},F=function($,A){$!==R.start.row&&(R.start.row=R.end.row=$,A||C.session._emit("changeBackMarker"),C._emit("changeHoverMarker"))};C.getHoveredRow=function(){return R.start.row},h.addListener(C.container,"mouseout",function(){C.isMouseOver=!1,z()}),C.on("hide",z),C.on("changeSelection",z),C.session.doc.getLength=function(){return C.data.length},C.session.doc.getLine=function($){var A=C.data[$];return typeof A=="string"?A:A&&A.value||""};var O=C.session.bgTokenizer;return O.$tokenizeRow=function($){function A(de,me){de&&B.push({type:(N.className||"")+(me||""),value:de})}var N=C.data[$],B=[];if(!N)return B;typeof N=="string"&&(N={value:N});for(var U=N.caption||N.value||N.name,K=U.toLowerCase(),Q=(C.filterText||"").toLowerCase(),J=0,he=0,ne=0;ne<=Q.length;ne++)if(ne!=he&&(N.matchMask&1<<ne||ne==Q.length)){var le=Q.slice(he,ne);he=ne;var se=K.indexOf(le,J);if(se==-1)continue;A(U.slice(J,se),""),J=se+le.length,A(U.slice(se,J),"completion-highlight")}return A(U.slice(J,U.length),""),B.push({type:"completion-spacer",value:" "}),N.meta&&B.push({type:"completion-meta",value:N.meta}),N.message&&B.push({type:"completion-message",value:N.message}),B},O.$updateOnChange=L,O.start=L,C.session.$computeWidth=function(){return this.screenWidth=0},C.isOpen=!1,C.isTopdown=!1,C.autoSelect=!0,C.filterText="",C.isMouseOver=!1,C.data=[],C.setData=function($,A){C.filterText=A||"",C.setValue(d.stringRepeat(`
1137
- `,$.length),-1),C.data=$||[],C.setRow(0)},C.getData=function($){return C.data[$]},C.getRow=function(){return E.start.row},C.setRow=function($){$=Math.max(this.autoSelect?0:-1,Math.min(this.data.length-1,$)),E.start.row!=$&&(C.selection.clearSelection(),E.start.row=E.end.row=$||0,C.session._emit("changeBackMarker"),C.moveCursorTo($||0,0),C.isOpen&&C._signal("select"))},C.on("changeSelection",function(){C.isOpen&&C.setRow(C.selection.lead.row),C.renderer.scrollCursorIntoView()}),C.hide=function(){this.container.style.display="none",C.anchorPos=null,C.anchor=null,C.isOpen&&(C.isOpen=!1,this._signal("hide"))},C.tryShow=function($,A,N,B){if(!B&&C.isOpen&&C.anchorPos&&C.anchor&&C.anchorPos.top===$.top&&C.anchorPos.left===$.left&&C.anchor===N)return!0;var U=this.container,K=this.renderer.scrollBar.width||10,Q=window.innerHeight-K,J=window.innerWidth-K,he=this.renderer,ne=he.$maxLines*A*1.4,le={top:0,bottom:0},se=Q-$.top-3*this.$borderSize-A,de=$.top-3*this.$borderSize;N||(de<=se||se>=ne?N="bottom":N="top"),N==="top"?(le.bottom=$.top-this.$borderSize,le.top=le.bottom-ne):N==="bottom"&&(le.top=$.top+A+this.$borderSize,le.bottom=le.top+ne);var me=le.top>=0&&le.bottom<=Q;if(!B&&!me)return!1;me?he.$maxPixelHeight=null:N==="top"?he.$maxPixelHeight=de:he.$maxPixelHeight=se,N==="top"?(U.style.top="",U.style.bottom=Q+K-le.bottom+"px",C.isTopdown=!1):(U.style.top=le.top+"px",U.style.bottom="",C.isTopdown=!0),U.style.display="";var _e=$.left;return _e+U.offsetWidth>J&&(_e=J-U.offsetWidth),U.style.left=_e+"px",U.style.right="",C.isOpen||(C.isOpen=!0,this._signal("show"),D=null),C.anchorPos=$,C.anchor=N,a.$fixPositionBug(U),!0},C.show=function($,A,N){this.tryShow($,A,N?"bottom":void 0,!0)},C.goTo=function($){var A=this.getRow(),N=this.session.getLength()-1;switch($){case"up":A=A<=0?N:A-1;break;case"down":A=A>=N?-1:A+1;break;case"start":A=0;break;case"end":A=N}this.setRow(A)},C.getTextLeftOffset=function(){return this.$borderSize+this.renderer.$padding+this.$imageSize},C.$imageSize=0,C.$borderSize=1,C}return I}();a.importCssString(`
1137
+ `,$.length),-1),C.data=$||[],C.setRow(0)},C.getData=function($){return C.data[$]},C.getRow=function(){return E.start.row},C.setRow=function($){$=Math.max(this.autoSelect?0:-1,Math.min(this.data.length-1,$)),E.start.row!=$&&(C.selection.clearSelection(),E.start.row=E.end.row=$||0,C.session._emit("changeBackMarker"),C.moveCursorTo($||0,0),C.isOpen&&C._signal("select"))},C.on("changeSelection",function(){C.isOpen&&C.setRow(C.selection.lead.row),C.renderer.scrollCursorIntoView()}),C.hide=function(){this.container.style.display="none",C.anchorPos=null,C.anchor=null,C.isOpen&&(C.isOpen=!1,this._signal("hide"))},C.tryShow=function($,A,N,B){if(!B&&C.isOpen&&C.anchorPos&&C.anchor&&C.anchorPos.top===$.top&&C.anchorPos.left===$.left&&C.anchor===N)return!0;var U=this.container,K=this.renderer.scrollBar.width||10,Q=window.innerHeight-K,J=window.innerWidth-K,he=this.renderer,ne=he.$maxLines*A*1.4,le={top:0,bottom:0},se=Q-$.top-3*this.$borderSize-A,de=$.top-3*this.$borderSize;N||(de<=se||se>=ne?N="bottom":N="top"),N==="top"?(le.bottom=$.top-this.$borderSize,le.top=le.bottom-ne):N==="bottom"&&(le.top=$.top+A+this.$borderSize,le.bottom=le.top+ne);var me=le.top>=0&&le.bottom<=Q;if(!B&&!me)return!1;me?he.$maxPixelHeight=null:N==="top"?he.$maxPixelHeight=de:he.$maxPixelHeight=se,N==="top"?(U.style.top="",U.style.bottom=Q+K-le.bottom+"px",C.isTopdown=!1):(U.style.top=le.top+"px",U.style.bottom="",C.isTopdown=!0),U.style.display="";var _e=$.left;return _e+U.offsetWidth>J&&(_e=J-U.offsetWidth),U.style.left=_e+"px",U.style.right="",a.$fixPositionBug(U),C.isOpen||(C.isOpen=!0,this._signal("show"),D=null),C.anchorPos=$,C.anchor=N,!0},C.show=function($,A,N){this.tryShow($,A,N?"bottom":void 0,!0)},C.goTo=function($){var A=this.getRow(),N=this.session.getLength()-1;switch($){case"up":A=A<=0?N:A-1;break;case"down":A=A>=N?-1:A+1;break;case"start":A=0;break;case"end":A=N}this.setRow(A)},C.getTextLeftOffset=function(){return this.$borderSize+this.renderer.$padding+this.$imageSize},C.$imageSize=0,C.$borderSize=1,C}return I}();a.importCssString(`
1138
1138
  .ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {
1139
1139
  background-color: #CAD6FA;
1140
1140
  z-index: 1;
@@ -1226,7 +1226,7 @@ System.register(["vue","vue-router","single-spa","vuex","vuetify"],function(er,o
1226
1226
  animation: none;
1227
1227
  }
1228
1228
  }
1229
- `,"autocompletion.css",!1),r.AcePopup=x,r.$singleLineEditor=b,r.getAriaId=c}),ace.define("ace/autocomplete/inline_screenreader",["require","exports","module"],function(e,r,f){var g=function(){function m(w){this.editor=w,this.screenReaderDiv=document.createElement("div"),this.screenReaderDiv.classList.add("ace_screenreader-only"),this.editor.container.appendChild(this.screenReaderDiv)}return m.prototype.setScreenReaderContent=function(w){for(!this.popup&&this.editor.completer&&this.editor.completer.popup&&(this.popup=this.editor.completer.popup,this.popup.renderer.on("afterRender",(function(){var d=this.popup.getRow(),a=this.popup.renderer.$textLayer,l=a.element.childNodes[d-a.config.firstRow];if(l){for(var u="doc-tooltip ",c=0;c<this._lines.length;c++)u+="ace-inline-screenreader-line-".concat(c," ");l.setAttribute("aria-describedby",u)}}).bind(this)));this.screenReaderDiv.firstChild;)this.screenReaderDiv.removeChild(this.screenReaderDiv.firstChild);this._lines=w.split(/\r\n|\r|\n/);var h=this.createCodeBlock();this.screenReaderDiv.appendChild(h)},m.prototype.destroy=function(){this.screenReaderDiv.remove()},m.prototype.createCodeBlock=function(){var w=document.createElement("pre");w.setAttribute("id","ace-inline-screenreader");for(var h=0;h<this._lines.length;h++){var d=document.createElement("code");d.setAttribute("id","ace-inline-screenreader-line-".concat(h));var a=document.createTextNode(this._lines[h]);d.appendChild(a),w.appendChild(d)}return w},m}();r.AceInlineScreenReader=g}),ace.define("ace/autocomplete/inline",["require","exports","module","ace/snippets","ace/autocomplete/inline_screenreader"],function(e,r,f){var g=e("../snippets").snippetManager,m=e("./inline_screenreader").AceInlineScreenReader,w=function(){function h(){this.editor=null}return h.prototype.show=function(d,a,l){if(l=l||"",d&&this.editor&&this.editor!==d&&(this.hide(),this.editor=null,this.inlineScreenReader=null),!d||!a)return!1;this.inlineScreenReader||(this.inlineScreenReader=new m(d));var u=a.snippet?g.getDisplayTextForSnippet(d,a.snippet):a.value;return a.hideInlinePreview||!u||!u.startsWith(l)?!1:(this.editor=d,this.inlineScreenReader.setScreenReaderContent(u),u=u.slice(l.length),u===""?d.removeGhostText():d.setGhostText(u),!0)},h.prototype.isOpen=function(){return this.editor?!!this.editor.renderer.$ghostText:!1},h.prototype.hide=function(){return this.editor?(this.editor.removeGhostText(),!0):!1},h.prototype.destroy=function(){this.hide(),this.editor=null,this.inlineScreenReader&&(this.inlineScreenReader.destroy(),this.inlineScreenReader=null)},h}();r.AceInline=w}),ace.define("ace/autocomplete/util",["require","exports","module"],function(e,r,f){r.parForEach=function(m,w,h){var d=0,a=m.length;a===0&&h();for(var l=0;l<a;l++)w(m[l],function(u,c){d++,d===a&&h(u,c)})};var g=/[a-zA-Z_0-9\$\-\u00A2-\u2000\u2070-\uFFFF]/;r.retrievePrecedingIdentifier=function(m,w,h){h=h||g;for(var d=[],a=w-1;a>=0&&h.test(m[a]);a--)d.push(m[a]);return d.reverse().join("")},r.retrieveFollowingIdentifier=function(m,w,h){h=h||g;for(var d=[],a=w;a<m.length&&h.test(m[a]);a++)d.push(m[a]);return d},r.getCompletionPrefix=function(m){var w=m.getCursorPosition(),h=m.session.getLine(w.row),d;return m.completers.forEach((function(a){a.identifierRegexps&&a.identifierRegexps.forEach((function(l){!d&&l&&(d=this.retrievePrecedingIdentifier(h,w.column,l))}).bind(this))}).bind(this)),d||this.retrievePrecedingIdentifier(h,w.column)},r.triggerAutocomplete=function(m,h){var h=h??m.session.getPrecedingCharacter();return m.completers.some(function(d){if(d.triggerCharacters&&Array.isArray(d.triggerCharacters))return d.triggerCharacters.includes(h)})}}),ace.define("ace/autocomplete",["require","exports","module","ace/keyboard/hash_handler","ace/autocomplete/popup","ace/autocomplete/inline","ace/autocomplete/popup","ace/autocomplete/util","ace/lib/lang","ace/lib/dom","ace/snippets","ace/config","ace/lib/event","ace/lib/scroll"],function(e,r,f){var g=e("./keyboard/hash_handler").HashHandler,m=e("./autocomplete/popup").AcePopup,w=e("./autocomplete/inline").AceInline,h=e("./autocomplete/popup").getAriaId,d=e("./autocomplete/util"),a=e("./lib/lang"),l=e("./lib/dom"),u=e("./snippets").snippetManager,c=e("./config"),i=e("./lib/event"),s=e("./lib/scroll").preventParentScroll,p=function(_,k){k.completer&&k.completer.destroy()},b=function(){function _(){this.autoInsert=!1,this.autoSelect=!0,this.autoShown=!1,this.exactMatch=!1,this.inlineEnabled=!1,this.keyboardHandler=new g,this.keyboardHandler.bindKeys(this.commands),this.parentNode=null,this.setSelectOnHover=!1,this.hasSeen=new Set,this.showLoadingState=!1,this.stickySelectionDelay=500,this.blurListener=this.blurListener.bind(this),this.changeListener=this.changeListener.bind(this),this.mousedownListener=this.mousedownListener.bind(this),this.mousewheelListener=this.mousewheelListener.bind(this),this.onLayoutChange=this.onLayoutChange.bind(this),this.changeTimer=a.delayedCall((function(){this.updateCompletions(!0)}).bind(this)),this.tooltipTimer=a.delayedCall(this.updateDocTooltip.bind(this),50),this.popupTimer=a.delayedCall(this.$updatePopupPosition.bind(this),50),this.stickySelectionTimer=a.delayedCall((function(){this.stickySelection=!0}).bind(this),this.stickySelectionDelay),this.$firstOpenTimer=a.delayedCall((function(){var k=this.completionProvider&&this.completionProvider.initialPosition;this.autoShown||this.popup&&this.popup.isOpen||!k||this.editor.completers.length===0||(this.completions=new I(_.completionsForLoading),this.openPopup(this.editor,k.prefix,!1),this.popup.renderer.setStyle("ace_loading",!0))}).bind(this),this.stickySelectionDelay)}return Object.defineProperty(_,"completionsForLoading",{get:function(){return[{caption:c.nls("autocomplete.loading","Loading..."),value:""}]},enumerable:!1,configurable:!0}),_.prototype.$init=function(){return this.popup=new m(this.parentNode||document.body||document.documentElement),this.popup.on("click",(function(k){this.insertMatch(),k.stop()}).bind(this)),this.popup.focus=this.editor.focus.bind(this.editor),this.popup.on("show",this.$onPopupShow.bind(this)),this.popup.on("hide",this.$onHidePopup.bind(this)),this.popup.on("select",this.$onPopupChange.bind(this)),i.addListener(this.popup.container,"mouseout",this.mouseOutListener.bind(this)),this.popup.on("changeHoverMarker",this.tooltipTimer.bind(null,null)),this.popup.renderer.on("afterRender",this.$onPopupRender.bind(this)),this.popup},_.prototype.$initInline=function(){if(!(!this.inlineEnabled||this.inlineRenderer))return this.inlineRenderer=new w,this.inlineRenderer},_.prototype.getPopup=function(){return this.popup||this.$init()},_.prototype.$onHidePopup=function(){this.inlineRenderer&&this.inlineRenderer.hide(),this.hideDocTooltip(),this.stickySelectionTimer.cancel(),this.popupTimer.cancel(),this.stickySelection=!1},_.prototype.$seen=function(k){!this.hasSeen.has(k)&&k&&k.completer&&k.completer.onSeen&&typeof k.completer.onSeen=="function"&&(k.completer.onSeen(this.editor,k),this.hasSeen.add(k))},_.prototype.$onPopupChange=function(k){if(this.inlineRenderer&&this.inlineEnabled){var C=k?null:this.popup.getData(this.popup.getRow());if(this.$updateGhostText(C),this.popup.isMouseOver&&this.setSelectOnHover){this.tooltipTimer.call(null,null);return}this.popupTimer.schedule(),this.tooltipTimer.schedule()}else this.popupTimer.call(null,null),this.tooltipTimer.call(null,null)},_.prototype.$updateGhostText=function(k){var C=this.base.row,L=this.base.column,D=this.editor.getCursorPosition().column,R=this.editor.session.getLine(C).slice(L,D);this.inlineRenderer.show(this.editor,k,R)?this.$seen(k):this.inlineRenderer.hide()},_.prototype.$onPopupRender=function(){var k=this.inlineRenderer&&this.inlineEnabled;if(this.completions&&this.completions.filtered&&this.completions.filtered.length>0)for(var C=this.popup.getFirstVisibleRow();C<=this.popup.getLastVisibleRow();C++){var L=this.popup.getData(C);L&&(!k||L.hideInlinePreview)&&this.$seen(L)}},_.prototype.$onPopupShow=function(k){this.$onPopupChange(k),this.stickySelection=!1,this.stickySelectionDelay>=0&&this.stickySelectionTimer.schedule(this.stickySelectionDelay)},_.prototype.observeLayoutChanges=function(){if(!(this.$elements||!this.editor)){window.addEventListener("resize",this.onLayoutChange,{passive:!0}),window.addEventListener("wheel",this.mousewheelListener);for(var k=this.editor.container.parentNode,C=[];k;)C.push(k),k.addEventListener("scroll",this.onLayoutChange,{passive:!0}),k=k.parentNode;this.$elements=C}},_.prototype.unObserveLayoutChanges=function(){var k=this;window.removeEventListener("resize",this.onLayoutChange,{passive:!0}),window.removeEventListener("wheel",this.mousewheelListener),this.$elements&&this.$elements.forEach(function(C){C.removeEventListener("scroll",k.onLayoutChange,{passive:!0})}),this.$elements=null},_.prototype.onLayoutChange=function(){if(!this.popup.isOpen)return this.unObserveLayoutChanges();this.$updatePopupPosition(),this.updateDocTooltip()},_.prototype.$updatePopupPosition=function(){var k=this.editor,C=k.renderer,L=C.layerConfig.lineHeight,D=C.$cursorLayer.getPixelPosition(this.base,!0);D.left-=this.popup.getTextLeftOffset();var R=k.container.getBoundingClientRect();D.top+=R.top-C.layerConfig.offset,D.left+=R.left-k.renderer.scrollLeft,D.left+=C.gutterWidth;var E={top:D.top,left:D.left};C.$ghostText&&C.$ghostTextWidget&&this.base.row===C.$ghostText.position.row&&(E.top+=C.$ghostTextWidget.el.offsetHeight);var z=k.container.getBoundingClientRect().bottom-L,F=z<E.top?{top:z,left:E.left}:E;this.popup.tryShow(F,L,"bottom")||this.popup.tryShow(D,L,"top")||this.popup.show(D,L)},_.prototype.openPopup=function(k,C,L){this.$firstOpenTimer.cancel(),this.popup||this.$init(),this.inlineEnabled&&!this.inlineRenderer&&this.$initInline(),this.popup.autoSelect=this.autoSelect,this.popup.setSelectOnHover(this.setSelectOnHover);var D=this.popup.getRow(),R=this.popup.data[D];this.popup.setData(this.completions.filtered,this.completions.filterText),this.editor.textInput.setAriaOptions&&this.editor.textInput.setAriaOptions({activeDescendant:h(this.popup.getRow()),inline:this.inlineEnabled}),k.keyBinding.addKeyboardHandler(this.keyboardHandler);var E;this.stickySelection&&(E=this.popup.data.indexOf(R)),(!E||E===-1)&&(E=0),this.popup.setRow(this.autoSelect?E:-1),E===D&&R!==this.completions.filtered[E]&&this.$onPopupChange();var z=this.inlineRenderer&&this.inlineEnabled;if(E===D&&z){var F=this.popup.getData(this.popup.getRow());this.$updateGhostText(F)}L||(this.popup.setTheme(k.getTheme()),this.popup.setFontSize(k.getFontSize()),this.$updatePopupPosition(),this.tooltipNode&&this.updateDocTooltip()),this.changeTimer.cancel(),this.observeLayoutChanges()},_.prototype.detach=function(){this.editor&&(this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.off("changeSelection",this.changeListener),this.editor.off("blur",this.blurListener),this.editor.off("mousedown",this.mousedownListener),this.editor.off("mousewheel",this.mousewheelListener)),this.$firstOpenTimer.cancel(),this.changeTimer.cancel(),this.hideDocTooltip(),this.completionProvider&&this.completionProvider.detach(),this.popup&&this.popup.isOpen&&this.popup.hide(),this.popup&&this.popup.renderer&&this.popup.renderer.off("afterRender",this.$onPopupRender),this.base&&this.base.detach(),this.activated=!1,this.completionProvider=this.completions=this.base=null,this.unObserveLayoutChanges()},_.prototype.changeListener=function(k){var C=this.editor.selection.lead;(C.row!=this.base.row||C.column<this.base.column)&&this.detach(),this.activated?this.changeTimer.schedule():this.detach()},_.prototype.blurListener=function(k){var C=document.activeElement,L=this.editor.textInput.getElement(),D=k.relatedTarget&&this.tooltipNode&&this.tooltipNode.contains(k.relatedTarget),R=this.popup&&this.popup.container;C!=L&&C.parentNode!=R&&!D&&C!=this.tooltipNode&&k.relatedTarget!=L&&this.detach()},_.prototype.mousedownListener=function(k){this.detach()},_.prototype.mousewheelListener=function(k){this.popup&&!this.popup.isMouseOver&&this.detach()},_.prototype.mouseOutListener=function(k){this.popup.isOpen&&this.$updatePopupPosition()},_.prototype.goTo=function(k){this.popup.goTo(k)},_.prototype.insertMatch=function(k,C){if(k||(k=this.popup.getData(this.popup.getRow())),!k)return!1;if(k.value==="")return this.detach();var L=this.completions,D=this.getCompletionProvider().insertMatch(this.editor,k,L.filterText,C);return this.completions==L&&this.detach(),D},_.prototype.showPopup=function(k,C){this.editor&&this.detach(),this.activated=!0,this.editor=k,k.completer!=this&&(k.completer&&k.completer.detach(),k.completer=this),k.on("changeSelection",this.changeListener),k.on("blur",this.blurListener),k.on("mousedown",this.mousedownListener),k.on("mousewheel",this.mousewheelListener),this.updateCompletions(!1,C)},_.prototype.getCompletionProvider=function(k){return this.completionProvider||(this.completionProvider=new x(k)),this.completionProvider},_.prototype.gatherCompletions=function(k,C){return this.getCompletionProvider().gatherCompletions(k,C)},_.prototype.updateCompletions=function(k,C){if(k&&this.base&&this.completions){var D=this.editor.getCursorPosition(),R=this.editor.session.getTextRange({start:this.base,end:D});if(R==this.completions.filterText)return;if(this.completions.setFilter(R),!this.completions.filtered.length)return this.detach();if(this.completions.filtered.length==1&&this.completions.filtered[0].value==R&&!this.completions.filtered[0].snippet)return this.detach();this.openPopup(this.editor,R,k);return}if(C&&C.matches){var D=this.editor.getSelectionRange().start;return this.base=this.editor.session.doc.createAnchor(D.row,D.column),this.base.$insertRight=!0,this.completions=new I(C.matches),this.getCompletionProvider().completions=this.completions,this.openPopup(this.editor,"",k)}var L=this.editor.getSession(),D=this.editor.getCursorPosition(),R=d.getCompletionPrefix(this.editor);this.base=L.doc.createAnchor(D.row,D.column-R.length),this.base.$insertRight=!0;var E={exactMatch:this.exactMatch,ignoreCaption:this.ignoreCaption};this.getCompletionProvider({prefix:R,pos:D}).provideCompletions(this.editor,E,(function(z,F,O){var $=F.filtered,A=d.getCompletionPrefix(this.editor);if(this.$firstOpenTimer.cancel(),O){if(!$.length){var N=!this.autoShown&&this.emptyMessage;if(typeof N=="function"&&(N=this.emptyMessage(A)),N){var B=[{caption:N,value:""}];this.completions=new I(B),this.openPopup(this.editor,A,k),this.popup.renderer.setStyle("ace_loading",!1),this.popup.renderer.setStyle("ace_empty-message",!0);return}return this.detach()}if($.length==1&&$[0].value==A&&!$[0].snippet)return this.detach();if(this.autoInsert&&!this.autoShown&&$.length==1)return this.insertMatch($[0])}this.completions=!O&&this.showLoadingState?new I(_.completionsForLoading.concat($),F.filterText):F,this.openPopup(this.editor,A,k),this.popup.renderer.setStyle("ace_empty-message",!1),this.popup.renderer.setStyle("ace_loading",!O)}).bind(this)),this.showLoadingState&&!this.autoShown&&(!this.popup||!this.popup.isOpen)&&this.$firstOpenTimer.delay(this.stickySelectionDelay/2)},_.prototype.cancelContextMenu=function(){this.editor.$mouseHandler.cancelContextMenu()},_.prototype.updateDocTooltip=function(){var k=this.popup,C=this.completions&&this.completions.filtered,L=C&&(C[k.getHoveredRow()]||C[k.getRow()]),D=null;if(!L||!this.editor||!this.popup.isOpen)return this.hideDocTooltip();for(var R=this.editor.completers.length,E=0;E<R;E++){var z=this.editor.completers[E];if(z.getDocTooltip&&L.completerId===z.id){D=z.getDocTooltip(L);break}}if(!D&&typeof L!="string"&&(D=L),typeof D=="string"&&(D={docText:D}),!D||!D.docHTML&&!D.docText)return this.hideDocTooltip();this.showDocTooltip(D)},_.prototype.showDocTooltip=function(k){this.tooltipNode||(this.tooltipNode=l.createElement("div"),this.tooltipNode.style.margin="0",this.tooltipNode.style.pointerEvents="auto",this.tooltipNode.style.overscrollBehavior="contain",this.tooltipNode.tabIndex=-1,this.tooltipNode.onblur=this.blurListener.bind(this),this.tooltipNode.onclick=this.onTooltipClick.bind(this),this.tooltipNode.id="doc-tooltip",this.tooltipNode.setAttribute("role","tooltip"),this.tooltipNode.addEventListener("wheel",s));var C=this.editor.renderer.theme;this.tooltipNode.className="ace_tooltip ace_doc-tooltip "+(C.isDark?"ace_dark ":"")+(C.cssClass||"");var L=this.tooltipNode;k.docHTML?L.innerHTML=k.docHTML:k.docText&&(L.textContent=k.docText),L.parentNode||this.popup.container.appendChild(this.tooltipNode);var D=this.popup,R=D.container.getBoundingClientRect(),E=400,z=300,F=D.renderer.scrollBar.width||10,O=R.left,$=window.innerWidth-R.right-F,A=D.isTopdown?R.top:window.innerHeight-F-R.bottom,N=[Math.min($/E,1),Math.min(O/E,1),Math.min(A/z*.9)],B=Math.max.apply(Math,N),U=L.style;U.display="block",B==N[0]?(U.left=R.right+1+"px",U.right="",U.maxWidth=E*B+"px",U.top=R.top+"px",U.bottom="",U.maxHeight=Math.min(window.innerHeight-F-R.top,z)+"px"):B==N[1]?(U.right=window.innerWidth-R.left+"px",U.left="",U.maxWidth=E*B+"px",U.top=R.top+"px",U.bottom="",U.maxHeight=Math.min(window.innerHeight-F-R.top,z)+"px"):B==N[2]&&(U.left=window.innerWidth-R.left+"px",U.maxWidth=Math.min(E,window.innerWidth)+"px",D.isTopdown?(U.top=R.bottom+"px",U.left=R.left+"px",U.right="",U.bottom="",U.maxHeight=Math.min(window.innerHeight-F-R.bottom,z)+"px"):(U.top=D.container.offsetTop-L.offsetHeight+"px",U.left=R.left+"px",U.right="",U.bottom="",U.maxHeight=Math.min(D.container.offsetTop,z)+"px"))},_.prototype.hideDocTooltip=function(){if(this.tooltipTimer.cancel(),!!this.tooltipNode){var k=this.tooltipNode;!this.editor.isFocused()&&document.activeElement==k&&this.editor.focus(),this.tooltipNode=null,k.parentNode&&k.parentNode.removeChild(k)}},_.prototype.onTooltipClick=function(k){for(var C=k.target;C&&C!=this.tooltipNode;){if(C.nodeName=="A"&&C.href){C.rel="noreferrer",C.target="_blank";break}C=C.parentNode}},_.prototype.destroy=function(){if(this.detach(),this.popup){this.popup.destroy();var k=this.popup.container;k&&k.parentNode&&k.parentNode.removeChild(k)}this.editor&&this.editor.completer==this&&(this.editor.off("destroy",p),this.editor.completer=null),this.inlineRenderer=this.popup=this.editor=null},_.for=function(k){return k.completer instanceof _||(k.completer&&(k.completer.destroy(),k.completer=null),c.get("sharedPopups")?(_.$sharedInstance||(_.$sharedInstance=new _),k.completer=_.$sharedInstance):(k.completer=new _,k.once("destroy",p))),k.completer},_}();b.prototype.commands={Up:function(_){_.completer.goTo("up")},Down:function(_){_.completer.goTo("down")},"Ctrl-Up|Ctrl-Home":function(_){_.completer.goTo("start")},"Ctrl-Down|Ctrl-End":function(_){_.completer.goTo("end")},Esc:function(_){_.completer.detach()},Return:function(_){return _.completer.insertMatch()},"Shift-Return":function(_){_.completer.insertMatch(null,{deleteSuffix:!0})},Tab:function(_){var k=_.completer.insertMatch();if(k||_.tabstopManager)return k;_.completer.goTo("down")},Backspace:function(_){_.execCommand("backspace");var k=d.getCompletionPrefix(_);!k&&_.completer&&_.completer.detach()},PageUp:function(_){_.completer.popup.gotoPageUp()},PageDown:function(_){_.completer.popup.gotoPageDown()}},b.startCommand={name:"startAutocomplete",exec:function(_,k){var C=b.for(_);C.autoInsert=!1,C.autoSelect=!0,C.autoShown=!1,C.showPopup(_,k),C.cancelContextMenu()},bindKey:"Ctrl-Space|Ctrl-Shift-Space|Alt-Space"};var x=function(){function _(k){this.initialPosition=k,this.active=!0}return _.prototype.insertByIndex=function(k,C,L){return!this.completions||!this.completions.filtered?!1:this.insertMatch(k,this.completions.filtered[C],L)},_.prototype.insertMatch=function(k,C,L){if(!C)return!1;if(k.startOperation({command:{name:"insertMatch"}}),C.completer&&C.completer.insertMatch)C.completer.insertMatch(k,C);else{if(!this.completions)return!1;var D=this.completions.filterText.length,R=0;if(C.range&&C.range.start.row===C.range.end.row&&(D-=this.initialPosition.prefix.length,D+=this.initialPosition.pos.column-C.range.start.column,R+=C.range.end.column-this.initialPosition.pos.column),D||R){var E;k.selection.getAllRanges?E=k.selection.getAllRanges():E=[k.getSelectionRange()];for(var z=0,F;F=E[z];z++)F.start.column-=D,F.end.column+=R,k.session.remove(F)}C.snippet?u.insertSnippet(k,C.snippet):this.$insertString(k,C),C.completer&&C.completer.onInsert&&typeof C.completer.onInsert=="function"&&C.completer.onInsert(k,C),C.command&&C.command==="startAutocomplete"&&k.execCommand(C.command)}return k.endOperation(),!0},_.prototype.$insertString=function(k,C){var L=C.value||C;k.execCommand("insertstring",L)},_.prototype.gatherCompletions=function(k,C){var L=k.getSession(),D=k.getCursorPosition(),R=d.getCompletionPrefix(k),E=[];this.completers=k.completers;var z=k.completers.length;return k.completers.forEach(function(F,O){F.getCompletions(k,L,D,R,function($,A){F.hideInlinePreview&&(A=A.map(function(N){return Object.assign(N,{hideInlinePreview:F.hideInlinePreview})})),!$&&A&&(E=E.concat(A)),C(null,{prefix:d.getCompletionPrefix(k),matches:E,finished:--z===0})})}),!0},_.prototype.provideCompletions=function(k,C,L){var D=(function(F){var O=F.prefix,$=F.matches;this.completions=new I($),C.exactMatch&&(this.completions.exactMatch=!0),C.ignoreCaption&&(this.completions.ignoreCaption=!0),this.completions.setFilter(O),(F.finished||this.completions.filtered.length)&&L(null,this.completions,F.finished)}).bind(this),R=!0,E=null;if(this.gatherCompletions(k,(function(F,O){if(this.active){F&&(L(F,[],!0),this.detach());var $=O.prefix;if($.indexOf(O.prefix)===0){if(R){E=O;return}D(O)}}}).bind(this)),R=!1,E){var z=E;E=null,D(z)}},_.prototype.detach=function(){this.active=!1,this.completers&&this.completers.forEach(function(k){typeof k.cancel=="function"&&k.cancel()})},_}(),I=function(){function _(k,C){this.all=k,this.filtered=k,this.filterText=C||"",this.exactMatch=!1,this.ignoreCaption=!1}return _.prototype.setFilter=function(k){if(k.length>this.filterText&&k.lastIndexOf(this.filterText,0)===0)var C=this.filtered;else var C=this.all;this.filterText=k,C=this.filterCompletions(C,this.filterText),C=C.sort(function(D,R){return R.exactMatch-D.exactMatch||R.$score-D.$score||(D.caption||D.value).localeCompare(R.caption||R.value)});var L=null;C=C.filter(function(D){var R=D.snippet||D.caption||D.value;return R===L?!1:(L=R,!0)}),this.filtered=C},_.prototype.filterCompletions=function(k,C){var L=[],D=C.toUpperCase(),R=C.toLowerCase();e:for(var E=0,z;z=k[E];E++){if(z.skipFilter){z.$score=z.score,L.push(z);continue}var F=!this.ignoreCaption&&z.caption||z.value||z.snippet;if(F){var O=-1,$=0,A=0,N,B;if(this.exactMatch){if(C!==F.substr(0,C.length))continue e}else{var U=F.toLowerCase().indexOf(R);if(U>-1)A=U;else for(var K=0;K<C.length;K++){var Q=F.indexOf(R[K],O+1),J=F.indexOf(D[K],O+1);if(N=Q>=0&&(J<0||Q<J)?Q:J,N<0)continue e;B=N-O-1,B>0&&(O===-1&&(A+=10),A+=B,$|=1<<K),O=N}}z.matchMask=$,z.exactMatch=A?0:1,z.$score=(z.score||0)-A,L.push(z)}}return L},_}();r.Autocomplete=b,r.CompletionProvider=x,r.FilteredList=I}),ace.define("ace/marker_group",["require","exports","module"],function(e,r,f){var g=function(){function m(w,h){h&&(this.markerType=h.markerType),this.markers=[],this.session=w,w.addDynamicMarker(this)}return m.prototype.getMarkerAtPosition=function(w){return this.markers.find(function(h){return h.range.contains(w.row,w.column)})},m.prototype.markersComparator=function(w,h){return w.range.start.row-h.range.start.row},m.prototype.setMarkers=function(w){this.markers=w.sort(this.markersComparator).slice(0,this.MAX_MARKERS),this.session._signal("changeBackMarker")},m.prototype.update=function(w,h,d,a){if(!(!this.markers||!this.markers.length))for(var l=a.firstRow,u=a.lastRow,c,i=0,s=0,p=0;p<this.markers.length;p++){var b=this.markers[p];if(!(b.range.end.row<l)&&!(b.range.start.row>u)&&(b.range.start.row===s?i++:(s=b.range.start.row,i=0),!(i>200))){var x=b.range.clipRows(l,u);if(!(x.start.row===x.end.row&&x.start.column===x.end.column)){var I=x.toScreenRange(d);if(I.isEmpty()){c=d.getNextFoldLine(x.end.row,c),c&&c.end.row>x.end.row&&(l=c.end.row);continue}this.markerType==="fullLine"?h.drawFullLineMarker(w,I,b.className,a):I.isMultiLine()?this.markerType==="line"?h.drawMultiLineMarker(w,I,b.className,a):h.drawTextMarker(w,I,b.className,a):h.drawSingleLineMarker(w,I,b.className+" ace_br15",a)}}}},m}();g.prototype.MAX_MARKERS=1e4,r.MarkerGroup=g}),ace.define("ace/autocomplete/text_completer",["require","exports","module","ace/range"],function(e,r,f){function g(d,a){var l=d.getTextRange(w.fromPoints({row:0,column:0},a));return l.split(h).length-1}function m(d,a){var l=g(d,a),u=d.getValue().split(h),c=Object.create(null),i=u[l];return u.forEach(function(s,p){if(!(!s||s===i)){var b=Math.abs(l-p),x=u.length-b;c[s]?c[s]=Math.max(x,c[s]):c[s]=x}}),c}var w=e("../range").Range,h=/[^a-zA-Z_0-9\$\-\u00C0-\u1FFF\u2C00-\uD7FF\w]+/;r.getCompletions=function(d,a,l,u,c){var i=m(a,l),s=Object.keys(i);c(null,s.map(function(p){return{caption:p,value:p,score:i[p],meta:"local"}}))}}),ace.define("ace/ext/language_tools",["require","exports","module","ace/snippets","ace/autocomplete","ace/config","ace/lib/lang","ace/autocomplete/util","ace/marker_group","ace/autocomplete/text_completer","ace/editor","ace/config"],function(e,r,f){var g=e("../snippets").snippetManager,m=e("../autocomplete").Autocomplete,w=e("../config"),h=e("../lib/lang"),d=e("../autocomplete/util"),a=e("../marker_group").MarkerGroup,l=e("../autocomplete/text_completer"),u={getCompletions:function(R,E,z,F,O){if(E.$mode.completer)return E.$mode.completer.getCompletions(R,E,z,F,O);var $=R.session.getState(z.row),A=E.$mode.getCompletions($,E,z,F);A=A.map(function(N){return N.completerId=u.id,N}),O(null,A)},id:"keywordCompleter"},c=function(R){var E={};return R.replace(/\${(\d+)(:(.*?))?}/g,function(z,F,O,$){return E[F]=$||""}).replace(/\$(\d+?)/g,function(z,F){return E[F]})},i={getCompletions:function(R,E,z,F,O){var $=[],A=E.getTokenAt(z.row,z.column);A&&A.type.match(/(tag-name|tag-open|tag-whitespace|attribute-name|attribute-value)\.xml$/)?$.push("html-tag"):$=g.getActiveScopes(R);var N=g.snippetMap,B=[];$.forEach(function(U){for(var K=N[U]||[],Q=K.length;Q--;){var J=K[Q],he=J.name||J.tabTrigger;he&&B.push({caption:he,snippet:J.content,meta:J.tabTrigger&&!J.name?J.tabTrigger+"⇥ ":"snippet",completerId:i.id})}},this),O(null,B)},getDocTooltip:function(R){R.snippet&&!R.docHTML&&(R.docHTML=["<b>",h.escapeHTML(R.caption),"</b>","<hr></hr>",h.escapeHTML(c(R.snippet))].join(""))},id:"snippetCompleter"},s=[i,l,u];r.setCompleters=function(R){s.length=0,R&&s.push.apply(s,R)},r.addCompleter=function(R){s.push(R)},r.textCompleter=l,r.keyWordCompleter=u,r.snippetCompleter=i;var p={name:"expandSnippet",exec:function(R){return g.expandWithTab(R)},bindKey:"Tab"},b=function(R,E){x(E.session.$mode)},x=function(R){typeof R=="string"&&(R=w.$modes[R]),R&&(g.files||(g.files={}),I(R.$id,R.snippetFileId),R.modes&&R.modes.forEach(x))},I=function(R,E){!E||!R||g.files[R]||(g.files[R]={},w.loadModule(E,function(z){z&&(g.files[R]=z,!z.snippets&&z.snippetText&&(z.snippets=g.parseSnippetFile(z.snippetText)),g.register(z.snippets||[],z.scope),z.includeScopes&&(g.snippetMap[z.scope].includeScopes=z.includeScopes,z.includeScopes.forEach(function(F){x("ace/mode/"+F)})))}))},_=function(R){var E=R.editor,z=E.completer&&E.completer.activated;if(R.command.name==="backspace")z&&!d.getCompletionPrefix(E)&&E.completer.detach();else if(R.command.name==="insertstring"&&!z){k=R;var F=R.editor.$liveAutocompletionDelay;F?C.delay(F):L(R)}},k,C=h.delayedCall(function(){L(k)},0),L=function(R){var E=R.editor,z=d.getCompletionPrefix(E),F=R.args,O=d.triggerAutocomplete(E,F);if(z&&z.length>=E.$liveAutocompletionThreshold||O){var $=m.for(E);$.autoShown=!0,$.showPopup(E)}},D=e("../editor").Editor;e("../config").defineOptions(D.prototype,"editor",{enableBasicAutocompletion:{set:function(R){R?(m.for(this),this.completers||(this.completers=Array.isArray(R)?R:s),this.commands.addCommand(m.startCommand)):this.commands.removeCommand(m.startCommand)},value:!1},enableLiveAutocompletion:{set:function(R){R?(this.completers||(this.completers=Array.isArray(R)?R:s),this.commands.on("afterExec",_)):this.commands.off("afterExec",_)},value:!1},liveAutocompletionDelay:{initialValue:0},liveAutocompletionThreshold:{initialValue:0},enableSnippets:{set:function(R){R?(this.commands.addCommand(p),this.on("changeMode",b),b(null,this)):(this.commands.removeCommand(p),this.off("changeMode",b))},value:!1}}),r.MarkerGroup=a}),function(){ace.require(["ace/ext/language_tools"],function(e){n&&(n.exports=e)})}()}(mf)),mf.exports}$x();var yf={exports:{}},bf;function Tx(){return bf||(bf=1,function(n,t){ace.define("ace/ext/searchbox-css",["require","exports","module"],function(e,r,f){f.exports=`
1229
+ `,"autocompletion.css",!1),r.AcePopup=x,r.$singleLineEditor=b,r.getAriaId=c}),ace.define("ace/autocomplete/inline_screenreader",["require","exports","module"],function(e,r,f){var g=function(){function m(w){this.editor=w,this.screenReaderDiv=document.createElement("div"),this.screenReaderDiv.classList.add("ace_screenreader-only"),this.editor.container.appendChild(this.screenReaderDiv)}return m.prototype.setScreenReaderContent=function(w){for(!this.popup&&this.editor.completer&&this.editor.completer.popup&&(this.popup=this.editor.completer.popup,this.popup.renderer.on("afterRender",(function(){var d=this.popup.getRow(),a=this.popup.renderer.$textLayer,l=a.element.childNodes[d-a.config.firstRow];if(l){for(var u="doc-tooltip ",c=0;c<this._lines.length;c++)u+="ace-inline-screenreader-line-".concat(c," ");l.setAttribute("aria-describedby",u)}}).bind(this)));this.screenReaderDiv.firstChild;)this.screenReaderDiv.removeChild(this.screenReaderDiv.firstChild);this._lines=w.split(/\r\n|\r|\n/);var h=this.createCodeBlock();this.screenReaderDiv.appendChild(h)},m.prototype.destroy=function(){this.screenReaderDiv.remove()},m.prototype.createCodeBlock=function(){var w=document.createElement("pre");w.setAttribute("id","ace-inline-screenreader");for(var h=0;h<this._lines.length;h++){var d=document.createElement("code");d.setAttribute("id","ace-inline-screenreader-line-".concat(h));var a=document.createTextNode(this._lines[h]);d.appendChild(a),w.appendChild(d)}return w},m}();r.AceInlineScreenReader=g}),ace.define("ace/autocomplete/inline",["require","exports","module","ace/snippets","ace/autocomplete/inline_screenreader"],function(e,r,f){var g=e("../snippets").snippetManager,m=e("./inline_screenreader").AceInlineScreenReader,w=function(){function h(){this.editor=null}return h.prototype.show=function(d,a,l){if(l=l||"",d&&this.editor&&this.editor!==d&&(this.hide(),this.editor=null,this.inlineScreenReader=null),!d||!a)return!1;this.inlineScreenReader||(this.inlineScreenReader=new m(d));var u=a.snippet?g.getDisplayTextForSnippet(d,a.snippet):a.value;return a.hideInlinePreview||!u||!u.startsWith(l)?!1:(this.editor=d,this.inlineScreenReader.setScreenReaderContent(u),u=u.slice(l.length),u===""?d.removeGhostText():d.setGhostText(u),!0)},h.prototype.isOpen=function(){return this.editor?!!this.editor.renderer.$ghostText:!1},h.prototype.hide=function(){return this.editor?(this.editor.removeGhostText(),!0):!1},h.prototype.destroy=function(){this.hide(),this.editor=null,this.inlineScreenReader&&(this.inlineScreenReader.destroy(),this.inlineScreenReader=null)},h}();r.AceInline=w}),ace.define("ace/autocomplete/util",["require","exports","module"],function(e,r,f){r.parForEach=function(m,w,h){var d=0,a=m.length;a===0&&h();for(var l=0;l<a;l++)w(m[l],function(u,c){d++,d===a&&h(u,c)})};var g=/[a-zA-Z_0-9\$\-\u00A2-\u2000\u2070-\uFFFF]/;r.retrievePrecedingIdentifier=function(m,w,h){h=h||g;for(var d=[],a=w-1;a>=0&&h.test(m[a]);a--)d.push(m[a]);return d.reverse().join("")},r.retrieveFollowingIdentifier=function(m,w,h){h=h||g;for(var d=[],a=w;a<m.length&&h.test(m[a]);a++)d.push(m[a]);return d},r.getCompletionPrefix=function(m){var w=m.getCursorPosition(),h=m.session.getLine(w.row),d;return m.completers.forEach((function(a){a.identifierRegexps&&a.identifierRegexps.forEach((function(l){!d&&l&&(d=this.retrievePrecedingIdentifier(h,w.column,l))}).bind(this))}).bind(this)),d||this.retrievePrecedingIdentifier(h,w.column)},r.triggerAutocomplete=function(m,h){var h=h??m.session.getPrecedingCharacter();return m.completers.some(function(d){if(d.triggerCharacters&&Array.isArray(d.triggerCharacters))return d.triggerCharacters.includes(h)})}}),ace.define("ace/autocomplete",["require","exports","module","ace/keyboard/hash_handler","ace/autocomplete/popup","ace/autocomplete/inline","ace/autocomplete/popup","ace/autocomplete/util","ace/lib/lang","ace/lib/dom","ace/snippets","ace/config","ace/lib/event","ace/lib/scroll"],function(e,r,f){var g=e("./keyboard/hash_handler").HashHandler,m=e("./autocomplete/popup").AcePopup,w=e("./autocomplete/inline").AceInline,h=e("./autocomplete/popup").getAriaId,d=e("./autocomplete/util"),a=e("./lib/lang"),l=e("./lib/dom"),u=e("./snippets").snippetManager,c=e("./config"),i=e("./lib/event"),s=e("./lib/scroll").preventParentScroll,p=function(_,k){k.completer&&k.completer.destroy()},b=function(){function _(){this.autoInsert=!1,this.autoSelect=!0,this.autoShown=!1,this.exactMatch=!1,this.inlineEnabled=!1,this.keyboardHandler=new g,this.keyboardHandler.bindKeys(this.commands),this.parentNode=null,this.setSelectOnHover=!1,this.hasSeen=new Set,this.showLoadingState=!1,this.stickySelectionDelay=500,this.blurListener=this.blurListener.bind(this),this.changeListener=this.changeListener.bind(this),this.mousedownListener=this.mousedownListener.bind(this),this.mousewheelListener=this.mousewheelListener.bind(this),this.onLayoutChange=this.onLayoutChange.bind(this),this.changeTimer=a.delayedCall((function(){this.updateCompletions(!0)}).bind(this)),this.tooltipTimer=a.delayedCall(this.updateDocTooltip.bind(this),50),this.popupTimer=a.delayedCall(this.$updatePopupPosition.bind(this),50),this.stickySelectionTimer=a.delayedCall((function(){this.stickySelection=!0}).bind(this),this.stickySelectionDelay),this.$firstOpenTimer=a.delayedCall((function(){var k=this.completionProvider&&this.completionProvider.initialPosition;this.autoShown||this.popup&&this.popup.isOpen||!k||this.editor.completers.length===0||(this.completions=new I(_.completionsForLoading),this.openPopup(this.editor,k.prefix,!1),this.popup.renderer.setStyle("ace_loading",!0))}).bind(this),this.stickySelectionDelay)}return Object.defineProperty(_,"completionsForLoading",{get:function(){return[{caption:c.nls("autocomplete.loading","Loading..."),value:""}]},enumerable:!1,configurable:!0}),_.prototype.$init=function(){return this.popup=new m(this.parentNode||document.body||document.documentElement),this.popup.on("click",(function(k){this.insertMatch(),k.stop()}).bind(this)),this.popup.focus=this.editor.focus.bind(this.editor),this.popup.on("show",this.$onPopupShow.bind(this)),this.popup.on("hide",this.$onHidePopup.bind(this)),this.popup.on("select",this.$onPopupChange.bind(this)),i.addListener(this.popup.container,"mouseout",this.mouseOutListener.bind(this)),this.popup.on("changeHoverMarker",this.tooltipTimer.bind(null,null)),this.popup.renderer.on("afterRender",this.$onPopupRender.bind(this)),this.popup},_.prototype.$initInline=function(){if(!(!this.inlineEnabled||this.inlineRenderer))return this.inlineRenderer=new w,this.inlineRenderer},_.prototype.getPopup=function(){return this.popup||this.$init()},_.prototype.$onHidePopup=function(){this.inlineRenderer&&this.inlineRenderer.hide(),this.hideDocTooltip(),this.stickySelectionTimer.cancel(),this.popupTimer.cancel(),this.stickySelection=!1},_.prototype.$seen=function(k){!this.hasSeen.has(k)&&k&&k.completer&&k.completer.onSeen&&typeof k.completer.onSeen=="function"&&(k.completer.onSeen(this.editor,k),this.hasSeen.add(k))},_.prototype.$onPopupChange=function(k){if(this.inlineRenderer&&this.inlineEnabled){var C=k?null:this.popup.getData(this.popup.getRow());if(this.$updateGhostText(C),this.popup.isMouseOver&&this.setSelectOnHover){this.tooltipTimer.call(null,null);return}this.popupTimer.schedule(),this.tooltipTimer.schedule()}else this.popupTimer.call(null,null),this.tooltipTimer.call(null,null)},_.prototype.$updateGhostText=function(k){var C=this.base.row,L=this.base.column,D=this.editor.getCursorPosition().column,R=this.editor.session.getLine(C).slice(L,D);this.inlineRenderer.show(this.editor,k,R)?this.$seen(k):this.inlineRenderer.hide()},_.prototype.$onPopupRender=function(){var k=this.inlineRenderer&&this.inlineEnabled;if(this.completions&&this.completions.filtered&&this.completions.filtered.length>0)for(var C=this.popup.getFirstVisibleRow();C<=this.popup.getLastVisibleRow();C++){var L=this.popup.getData(C);L&&(!k||L.hideInlinePreview)&&this.$seen(L)}},_.prototype.$onPopupShow=function(k){this.$onPopupChange(k),this.stickySelection=!1,this.stickySelectionDelay>=0&&this.stickySelectionTimer.schedule(this.stickySelectionDelay)},_.prototype.observeLayoutChanges=function(){if(!(this.$elements||!this.editor)){window.addEventListener("resize",this.onLayoutChange,{passive:!0}),window.addEventListener("wheel",this.mousewheelListener);for(var k=this.editor.container.parentNode,C=[];k;)C.push(k),k.addEventListener("scroll",this.onLayoutChange,{passive:!0}),k=k.parentNode;this.$elements=C}},_.prototype.unObserveLayoutChanges=function(){var k=this;window.removeEventListener("resize",this.onLayoutChange,{passive:!0}),window.removeEventListener("wheel",this.mousewheelListener),this.$elements&&this.$elements.forEach(function(C){C.removeEventListener("scroll",k.onLayoutChange,{passive:!0})}),this.$elements=null},_.prototype.onLayoutChange=function(){if(!this.popup.isOpen)return this.unObserveLayoutChanges();this.$updatePopupPosition(),this.updateDocTooltip()},_.prototype.$updatePopupPosition=function(){var k=this.editor,C=k.renderer,L=C.layerConfig.lineHeight,D=C.$cursorLayer.getPixelPosition(this.base,!0);D.left-=this.popup.getTextLeftOffset();var R=k.container.getBoundingClientRect();D.top+=R.top-C.layerConfig.offset,D.left+=R.left-k.renderer.scrollLeft,D.left+=C.gutterWidth;var E={top:D.top,left:D.left};C.$ghostText&&C.$ghostTextWidget&&this.base.row===C.$ghostText.position.row&&(E.top+=C.$ghostTextWidget.el.offsetHeight);var z=k.container.getBoundingClientRect().bottom-L,F=z<E.top?{top:z,left:E.left}:E;this.popup.tryShow(F,L,"bottom")||this.popup.tryShow(D,L,"top")||this.popup.show(D,L)},_.prototype.openPopup=function(k,C,L){this.$firstOpenTimer.cancel(),this.popup||this.$init(),this.inlineEnabled&&!this.inlineRenderer&&this.$initInline(),this.popup.autoSelect=this.autoSelect,this.popup.setSelectOnHover(this.setSelectOnHover);var D=this.popup.getRow(),R=this.popup.data[D];this.popup.setData(this.completions.filtered,this.completions.filterText),this.editor.textInput.setAriaOptions&&this.editor.textInput.setAriaOptions({activeDescendant:h(this.popup.getRow()),inline:this.inlineEnabled}),k.keyBinding.addKeyboardHandler(this.keyboardHandler);var E;this.stickySelection&&(E=this.popup.data.indexOf(R)),(!E||E===-1)&&(E=0),this.popup.setRow(this.autoSelect?E:-1),E===D&&R!==this.completions.filtered[E]&&this.$onPopupChange();var z=this.inlineRenderer&&this.inlineEnabled;if(E===D&&z){var F=this.popup.getData(this.popup.getRow());this.$updateGhostText(F)}L||(this.popup.setTheme(k.getTheme()),this.popup.setFontSize(k.getFontSize()),this.$updatePopupPosition(),this.tooltipNode&&this.updateDocTooltip()),this.changeTimer.cancel(),this.observeLayoutChanges()},_.prototype.detach=function(){this.editor&&(this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.off("changeSelection",this.changeListener),this.editor.off("blur",this.blurListener),this.editor.off("mousedown",this.mousedownListener),this.editor.off("mousewheel",this.mousewheelListener)),this.$firstOpenTimer.cancel(),this.changeTimer.cancel(),this.hideDocTooltip(),this.completionProvider&&this.completionProvider.detach(),this.popup&&this.popup.isOpen&&this.popup.hide(),this.popup&&this.popup.renderer&&this.popup.renderer.off("afterRender",this.$onPopupRender),this.base&&this.base.detach(),this.activated=!1,this.completionProvider=this.completions=this.base=null,this.unObserveLayoutChanges()},_.prototype.changeListener=function(k){var C=this.editor.selection.lead;(C.row!=this.base.row||C.column<this.base.column)&&this.detach(),this.activated?this.changeTimer.schedule():this.detach()},_.prototype.blurListener=function(k){var C=document.activeElement,L=this.editor.textInput.getElement(),D=k.relatedTarget&&this.tooltipNode&&this.tooltipNode.contains(k.relatedTarget),R=this.popup&&this.popup.container;C!=L&&C.parentNode!=R&&!D&&C!=this.tooltipNode&&k.relatedTarget!=L&&this.detach()},_.prototype.mousedownListener=function(k){this.detach()},_.prototype.mousewheelListener=function(k){this.popup&&!this.popup.isMouseOver&&this.detach()},_.prototype.mouseOutListener=function(k){this.popup.isOpen&&this.$updatePopupPosition()},_.prototype.goTo=function(k){this.popup.goTo(k)},_.prototype.insertMatch=function(k,C){if(k||(k=this.popup.getData(this.popup.getRow())),!k)return!1;if(k.value==="")return this.detach();var L=this.completions,D=this.getCompletionProvider().insertMatch(this.editor,k,L.filterText,C);return this.completions==L&&this.detach(),D},_.prototype.showPopup=function(k,C){this.editor&&this.detach(),this.activated=!0,this.editor=k,k.completer!=this&&(k.completer&&k.completer.detach(),k.completer=this),k.on("changeSelection",this.changeListener),k.on("blur",this.blurListener),k.on("mousedown",this.mousedownListener),k.on("mousewheel",this.mousewheelListener),this.updateCompletions(!1,C)},_.prototype.getCompletionProvider=function(k){return this.completionProvider||(this.completionProvider=new x(k)),this.completionProvider},_.prototype.gatherCompletions=function(k,C){return this.getCompletionProvider().gatherCompletions(k,C)},_.prototype.updateCompletions=function(k,C){if(k&&this.base&&this.completions){var D=this.editor.getCursorPosition(),R=this.editor.session.getTextRange({start:this.base,end:D});if(R==this.completions.filterText)return;if(this.completions.setFilter(R),!this.completions.filtered.length)return this.detach();if(this.completions.filtered.length==1&&this.completions.filtered[0].value==R&&!this.completions.filtered[0].snippet)return this.detach();this.openPopup(this.editor,R,k);return}if(C&&C.matches){var D=this.editor.getSelectionRange().start;return this.base=this.editor.session.doc.createAnchor(D.row,D.column),this.base.$insertRight=!0,this.completions=new I(C.matches),this.getCompletionProvider().completions=this.completions,this.openPopup(this.editor,"",k)}var L=this.editor.getSession(),D=this.editor.getCursorPosition(),R=d.getCompletionPrefix(this.editor);this.base=L.doc.createAnchor(D.row,D.column-R.length),this.base.$insertRight=!0;var E={exactMatch:this.exactMatch,ignoreCaption:this.ignoreCaption};this.getCompletionProvider({prefix:R,pos:D}).provideCompletions(this.editor,E,(function(z,F,O){var $=F.filtered,A=d.getCompletionPrefix(this.editor);if(this.$firstOpenTimer.cancel(),O){if(!$.length){var N=!this.autoShown&&this.emptyMessage;if(typeof N=="function"&&(N=this.emptyMessage(A)),N){var B=[{caption:N,value:""}];this.completions=new I(B),this.openPopup(this.editor,A,k),this.popup.renderer.setStyle("ace_loading",!1),this.popup.renderer.setStyle("ace_empty-message",!0);return}return this.detach()}if($.length==1&&$[0].value==A&&!$[0].snippet)return this.detach();if(this.autoInsert&&!this.autoShown&&$.length==1)return this.insertMatch($[0])}this.completions=!O&&this.showLoadingState?new I(_.completionsForLoading.concat($),F.filterText):F,this.openPopup(this.editor,A,k),this.popup.renderer.setStyle("ace_empty-message",!1),this.popup.renderer.setStyle("ace_loading",!O)}).bind(this)),this.showLoadingState&&!this.autoShown&&(!this.popup||!this.popup.isOpen)&&this.$firstOpenTimer.delay(this.stickySelectionDelay/2)},_.prototype.cancelContextMenu=function(){this.editor.$mouseHandler.cancelContextMenu()},_.prototype.updateDocTooltip=function(){var k=this.popup,C=this.completions&&this.completions.filtered,L=C&&(C[k.getHoveredRow()]||C[k.getRow()]),D=null;if(!L||!this.editor||!this.popup.isOpen)return this.hideDocTooltip();for(var R=this.editor.completers.length,E=0;E<R;E++){var z=this.editor.completers[E];if(z.getDocTooltip&&L.completerId===z.id){D=z.getDocTooltip(L);break}}if(!D&&typeof L!="string"&&(D=L),typeof D=="string"&&(D={docText:D}),!D||!D.docHTML&&!D.docText)return this.hideDocTooltip();this.showDocTooltip(D)},_.prototype.showDocTooltip=function(k){this.tooltipNode||(this.tooltipNode=l.createElement("div"),this.tooltipNode.style.margin="0",this.tooltipNode.style.pointerEvents="auto",this.tooltipNode.style.overscrollBehavior="contain",this.tooltipNode.tabIndex=-1,this.tooltipNode.onblur=this.blurListener.bind(this),this.tooltipNode.onclick=this.onTooltipClick.bind(this),this.tooltipNode.id="doc-tooltip",this.tooltipNode.setAttribute("role","tooltip"),this.tooltipNode.addEventListener("wheel",s));var C=this.editor.renderer.theme;this.tooltipNode.className="ace_tooltip ace_doc-tooltip "+(C.isDark?"ace_dark ":"")+(C.cssClass||"");var L=this.tooltipNode;k.docHTML?L.innerHTML=k.docHTML:k.docText&&(L.textContent=k.docText),L.parentNode||this.popup.container.appendChild(this.tooltipNode);var D=this.popup,R=D.container.getBoundingClientRect(),E=400,z=300,F=D.renderer.scrollBar.width||10,O=R.left,$=window.innerWidth-R.right-F,A=D.isTopdown?window.innerHeight-F-R.bottom:R.top,N=[Math.min($/E,1),Math.min(O/E,1),Math.min(A/z,1)*.9],B=Math.max.apply(Math,N),U=L.style;U.display="block",B==N[0]||N[0]>=1?(U.left=R.right+1+"px",U.right="",U.maxWidth=E*B+"px",U.top=R.top+"px",U.bottom="",U.maxHeight=Math.min(window.innerHeight-F-R.top,z)+"px"):B==N[1]||N[1]>=1?(U.right=window.innerWidth-R.left+"px",U.left="",U.maxWidth=E*B+"px",U.top=R.top+"px",U.bottom="",U.maxHeight=Math.min(window.innerHeight-F-R.top,z)+"px"):B==N[2]&&(U.left=R.left+"px",U.right="",U.maxWidth=Math.min(E,window.innerWidth-R.left)+"px",D.isTopdown?(U.top=R.bottom+"px",U.bottom="",U.maxHeight=Math.min(window.innerHeight-F-R.bottom,z)+"px"):(U.top="",U.bottom=window.innerHeight-R.top+"px",U.maxHeight=Math.min(R.top,z)+"px")),l.$fixPositionBug(L)},_.prototype.hideDocTooltip=function(){if(this.tooltipTimer.cancel(),!!this.tooltipNode){var k=this.tooltipNode;!this.editor.isFocused()&&document.activeElement==k&&this.editor.focus(),this.tooltipNode=null,k.parentNode&&k.parentNode.removeChild(k)}},_.prototype.onTooltipClick=function(k){for(var C=k.target;C&&C!=this.tooltipNode;){if(C.nodeName=="A"&&C.href){C.rel="noreferrer",C.target="_blank";break}C=C.parentNode}},_.prototype.destroy=function(){if(this.detach(),this.popup){this.popup.destroy();var k=this.popup.container;k&&k.parentNode&&k.parentNode.removeChild(k)}this.editor&&this.editor.completer==this&&(this.editor.off("destroy",p),this.editor.completer=null),this.inlineRenderer=this.popup=this.editor=null},_.for=function(k){return k.completer instanceof _||(k.completer&&(k.completer.destroy(),k.completer=null),c.get("sharedPopups")?(_.$sharedInstance||(_.$sharedInstance=new _),k.completer=_.$sharedInstance):(k.completer=new _,k.once("destroy",p))),k.completer},_}();b.prototype.commands={Up:function(_){_.completer.goTo("up")},Down:function(_){_.completer.goTo("down")},"Ctrl-Up|Ctrl-Home":function(_){_.completer.goTo("start")},"Ctrl-Down|Ctrl-End":function(_){_.completer.goTo("end")},Esc:function(_){_.completer.detach()},Return:function(_){return _.completer.insertMatch()},"Shift-Return":function(_){_.completer.insertMatch(null,{deleteSuffix:!0})},Tab:function(_){var k=_.completer.insertMatch();if(k||_.tabstopManager)return k;_.completer.goTo("down")},Backspace:function(_){_.execCommand("backspace");var k=d.getCompletionPrefix(_);!k&&_.completer&&_.completer.detach()},PageUp:function(_){_.completer.popup.gotoPageUp()},PageDown:function(_){_.completer.popup.gotoPageDown()}},b.startCommand={name:"startAutocomplete",exec:function(_,k){var C=b.for(_);C.autoInsert=!1,C.autoSelect=!0,C.autoShown=!1,C.showPopup(_,k),C.cancelContextMenu()},bindKey:"Ctrl-Space|Ctrl-Shift-Space|Alt-Space"};var x=function(){function _(k){this.initialPosition=k,this.active=!0}return _.prototype.insertByIndex=function(k,C,L){return!this.completions||!this.completions.filtered?!1:this.insertMatch(k,this.completions.filtered[C],L)},_.prototype.insertMatch=function(k,C,L){if(!C)return!1;if(k.startOperation({command:{name:"insertMatch"}}),C.completer&&C.completer.insertMatch)C.completer.insertMatch(k,C);else{if(!this.completions)return!1;var D=this.completions.filterText.length,R=0;if(C.range&&C.range.start.row===C.range.end.row&&(D-=this.initialPosition.prefix.length,D+=this.initialPosition.pos.column-C.range.start.column,R+=C.range.end.column-this.initialPosition.pos.column),D||R){var E;k.selection.getAllRanges?E=k.selection.getAllRanges():E=[k.getSelectionRange()];for(var z=0,F;F=E[z];z++)F.start.column-=D,F.end.column+=R,k.session.remove(F)}C.snippet?u.insertSnippet(k,C.snippet):this.$insertString(k,C),C.completer&&C.completer.onInsert&&typeof C.completer.onInsert=="function"&&C.completer.onInsert(k,C),C.command&&C.command==="startAutocomplete"&&k.execCommand(C.command)}return k.endOperation(),!0},_.prototype.$insertString=function(k,C){var L=C.value||C;k.execCommand("insertstring",L)},_.prototype.gatherCompletions=function(k,C){var L=k.getSession(),D=k.getCursorPosition(),R=d.getCompletionPrefix(k),E=[];this.completers=k.completers;var z=k.completers.length;return k.completers.forEach(function(F,O){F.getCompletions(k,L,D,R,function($,A){F.hideInlinePreview&&(A=A.map(function(N){return Object.assign(N,{hideInlinePreview:F.hideInlinePreview})})),!$&&A&&(E=E.concat(A)),C(null,{prefix:d.getCompletionPrefix(k),matches:E,finished:--z===0})})}),!0},_.prototype.provideCompletions=function(k,C,L){var D=(function(F){var O=F.prefix,$=F.matches;this.completions=new I($),C.exactMatch&&(this.completions.exactMatch=!0),C.ignoreCaption&&(this.completions.ignoreCaption=!0),this.completions.setFilter(O),(F.finished||this.completions.filtered.length)&&L(null,this.completions,F.finished)}).bind(this),R=!0,E=null;if(this.gatherCompletions(k,(function(F,O){if(this.active){F&&(L(F,[],!0),this.detach());var $=O.prefix;if($.indexOf(O.prefix)===0){if(R){E=O;return}D(O)}}}).bind(this)),R=!1,E){var z=E;E=null,D(z)}},_.prototype.detach=function(){this.active=!1,this.completers&&this.completers.forEach(function(k){typeof k.cancel=="function"&&k.cancel()})},_}(),I=function(){function _(k,C){this.all=k,this.filtered=k,this.filterText=C||"",this.exactMatch=!1,this.ignoreCaption=!1}return _.prototype.setFilter=function(k){if(k.length>this.filterText&&k.lastIndexOf(this.filterText,0)===0)var C=this.filtered;else var C=this.all;this.filterText=k,C=this.filterCompletions(C,this.filterText),C=C.sort(function(D,R){return R.exactMatch-D.exactMatch||R.$score-D.$score||(D.caption||D.value).localeCompare(R.caption||R.value)});var L=null;C=C.filter(function(D){var R=D.snippet||D.caption||D.value;return R===L?!1:(L=R,!0)}),this.filtered=C},_.prototype.filterCompletions=function(k,C){var L=[],D=C.toUpperCase(),R=C.toLowerCase();e:for(var E=0,z;z=k[E];E++){if(z.skipFilter){z.$score=z.score,L.push(z);continue}var F=!this.ignoreCaption&&z.caption||z.value||z.snippet;if(F){var O=-1,$=0,A=0,N,B;if(this.exactMatch){if(C!==F.substr(0,C.length))continue e}else{var U=F.toLowerCase().indexOf(R);if(U>-1)A=U;else for(var K=0;K<C.length;K++){var Q=F.indexOf(R[K],O+1),J=F.indexOf(D[K],O+1);if(N=Q>=0&&(J<0||Q<J)?Q:J,N<0)continue e;B=N-O-1,B>0&&(O===-1&&(A+=10),A+=B,$|=1<<K),O=N}}z.matchMask=$,z.exactMatch=A?0:1,z.$score=(z.score||0)-A,L.push(z)}}return L},_}();r.Autocomplete=b,r.CompletionProvider=x,r.FilteredList=I}),ace.define("ace/marker_group",["require","exports","module"],function(e,r,f){var g=function(){function m(w,h){h&&(this.markerType=h.markerType),this.markers=[],this.session=w,w.addDynamicMarker(this)}return m.prototype.getMarkerAtPosition=function(w){return this.markers.find(function(h){return h.range.contains(w.row,w.column)})},m.prototype.markersComparator=function(w,h){return w.range.start.row-h.range.start.row},m.prototype.setMarkers=function(w){this.markers=w.sort(this.markersComparator).slice(0,this.MAX_MARKERS),this.session._signal("changeBackMarker")},m.prototype.update=function(w,h,d,a){if(!(!this.markers||!this.markers.length))for(var l=a.firstRow,u=a.lastRow,c,i=0,s=0,p=0;p<this.markers.length;p++){var b=this.markers[p];if(!(b.range.end.row<l)&&!(b.range.start.row>u)&&(b.range.start.row===s?i++:(s=b.range.start.row,i=0),!(i>200))){var x=b.range.clipRows(l,u);if(!(x.start.row===x.end.row&&x.start.column===x.end.column)){var I=x.toScreenRange(d);if(I.isEmpty()){c=d.getNextFoldLine(x.end.row,c),c&&c.end.row>x.end.row&&(l=c.end.row);continue}this.markerType==="fullLine"?h.drawFullLineMarker(w,I,b.className,a):I.isMultiLine()?this.markerType==="line"?h.drawMultiLineMarker(w,I,b.className,a):h.drawTextMarker(w,I,b.className,a):h.drawSingleLineMarker(w,I,b.className+" ace_br15",a)}}}},m}();g.prototype.MAX_MARKERS=1e4,r.MarkerGroup=g}),ace.define("ace/autocomplete/text_completer",["require","exports","module","ace/range"],function(e,r,f){function g(d,a){var l=d.getTextRange(w.fromPoints({row:0,column:0},a));return l.split(h).length-1}function m(d,a){var l=g(d,a),u=d.getValue().split(h),c=Object.create(null),i=u[l];return u.forEach(function(s,p){if(!(!s||s===i)){var b=Math.abs(l-p),x=u.length-b;c[s]?c[s]=Math.max(x,c[s]):c[s]=x}}),c}var w=e("../range").Range,h=/[^a-zA-Z_0-9\$\-\u00C0-\u1FFF\u2C00-\uD7FF\w]+/;r.getCompletions=function(d,a,l,u,c){var i=m(a,l),s=Object.keys(i);c(null,s.map(function(p){return{caption:p,value:p,score:i[p],meta:"local"}}))}}),ace.define("ace/ext/language_tools",["require","exports","module","ace/snippets","ace/autocomplete","ace/config","ace/lib/lang","ace/autocomplete/util","ace/marker_group","ace/autocomplete/text_completer","ace/editor","ace/config"],function(e,r,f){var g=e("../snippets").snippetManager,m=e("../autocomplete").Autocomplete,w=e("../config"),h=e("../lib/lang"),d=e("../autocomplete/util"),a=e("../marker_group").MarkerGroup,l=e("../autocomplete/text_completer"),u={getCompletions:function(R,E,z,F,O){if(E.$mode.completer)return E.$mode.completer.getCompletions(R,E,z,F,O);var $=R.session.getState(z.row),A=E.$mode.getCompletions($,E,z,F);A=A.map(function(N){return N.completerId=u.id,N}),O(null,A)},id:"keywordCompleter"},c=function(R){var E={};return R.replace(/\${(\d+)(:(.*?))?}/g,function(z,F,O,$){return E[F]=$||""}).replace(/\$(\d+?)/g,function(z,F){return E[F]})},i={getCompletions:function(R,E,z,F,O){var $=[],A=E.getTokenAt(z.row,z.column);A&&A.type.match(/(tag-name|tag-open|tag-whitespace|attribute-name|attribute-value)\.xml$/)?$.push("html-tag"):$=g.getActiveScopes(R);var N=g.snippetMap,B=[];$.forEach(function(U){for(var K=N[U]||[],Q=K.length;Q--;){var J=K[Q],he=J.name||J.tabTrigger;he&&B.push({caption:he,snippet:J.content,meta:J.tabTrigger&&!J.name?J.tabTrigger+"⇥ ":"snippet",completerId:i.id})}},this),O(null,B)},getDocTooltip:function(R){R.snippet&&!R.docHTML&&(R.docHTML=["<b>",h.escapeHTML(R.caption),"</b>","<hr></hr>",h.escapeHTML(c(R.snippet))].join(""))},id:"snippetCompleter"},s=[i,l,u];r.setCompleters=function(R){s.length=0,R&&s.push.apply(s,R)},r.addCompleter=function(R){s.push(R)},r.textCompleter=l,r.keyWordCompleter=u,r.snippetCompleter=i;var p={name:"expandSnippet",exec:function(R){return g.expandWithTab(R)},bindKey:"Tab"},b=function(R,E){x(E.session.$mode)},x=function(R){typeof R=="string"&&(R=w.$modes[R]),R&&(g.files||(g.files={}),I(R.$id,R.snippetFileId),R.modes&&R.modes.forEach(x))},I=function(R,E){!E||!R||g.files[R]||(g.files[R]={},w.loadModule(E,function(z){z&&(g.files[R]=z,!z.snippets&&z.snippetText&&(z.snippets=g.parseSnippetFile(z.snippetText)),g.register(z.snippets||[],z.scope),z.includeScopes&&(g.snippetMap[z.scope].includeScopes=z.includeScopes,z.includeScopes.forEach(function(F){x("ace/mode/"+F)})))}))},_=function(R){var E=R.editor,z=E.completer&&E.completer.activated;if(R.command.name==="backspace")z&&!d.getCompletionPrefix(E)&&E.completer.detach();else if(R.command.name==="insertstring"&&!z){k=R;var F=R.editor.$liveAutocompletionDelay;F?C.delay(F):L(R)}},k,C=h.delayedCall(function(){L(k)},0),L=function(R){var E=R.editor,z=d.getCompletionPrefix(E),F=R.args,O=d.triggerAutocomplete(E,F);if(z&&z.length>=E.$liveAutocompletionThreshold||O){var $=m.for(E);$.autoShown=!0,$.showPopup(E)}},D=e("../editor").Editor;e("../config").defineOptions(D.prototype,"editor",{enableBasicAutocompletion:{set:function(R){R?(m.for(this),this.completers||(this.completers=Array.isArray(R)?R:s),this.commands.addCommand(m.startCommand)):this.commands.removeCommand(m.startCommand)},value:!1},enableLiveAutocompletion:{set:function(R){R?(this.completers||(this.completers=Array.isArray(R)?R:s),this.commands.on("afterExec",_)):this.commands.off("afterExec",_)},value:!1},liveAutocompletionDelay:{initialValue:0},liveAutocompletionThreshold:{initialValue:0},enableSnippets:{set:function(R){R?(this.commands.addCommand(p),this.on("changeMode",b),b(null,this)):(this.commands.removeCommand(p),this.off("changeMode",b))},value:!1}}),r.MarkerGroup=a}),function(){ace.require(["ace/ext/language_tools"],function(e){n&&(n.exports=e)})}()}(mf)),mf.exports}$x();var yf={exports:{}},bf;function Tx(){return bf||(bf=1,function(n,t){ace.define("ace/ext/searchbox-css",["require","exports","module"],function(e,r,f){f.exports=`
1230
1230
 
1231
1231
  /* ------------------------------------------------------------------------------------------
1232
1232
  * Editor Search Form
@@ -1396,14 +1396,14 @@ System.register(["vue","vue-router","single-spa","vuex","vuetify"],function(er,o
1396
1396
  `):" "+Jf(m[0]):"as no adapter specified";throw new At("There is no suitable adapter to dispatch the request "+w,"ERR_NOT_SUPPORT")}return f}const eg={getAdapter:tC,adapters:Iu};function Eu(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new ra(null,n)}function tg(n){return Eu(n),n.headers=si.from(n.headers),n.data=Mu.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),eg.getAdapter(n.adapter||Fa.adapter,n)(n).then(function(t){return Eu(n),t.data=Mu.call(n,n.transformResponse,t),t.headers=si.from(t.headers),t},function(t){return Bf(t)||(Eu(n),t&&t.response&&(t.response.data=Mu.call(n,n.transformResponse,t.response),t.response.headers=si.from(t.response.headers))),Promise.reject(t)})}const ng="1.13.2",zl={};["object","boolean","number","function","string","symbol"].forEach((n,t)=>{zl[n]=function(e){return typeof e===n||"a"+(t<1?"n ":" ")+n}});const rg={};zl.transitional=function(n,t,e){function r(f,g){return"[Axios v"+ng+"] Transitional option '"+f+"'"+g+(e?". "+e:"")}return(f,g,m)=>{if(n===!1)throw new At(r(g," has been removed"+(t?" in "+t:"")),At.ERR_DEPRECATED);return t&&!rg[g]&&(rg[g]=!0,console.warn(r(g," has been deprecated since v"+t+" and will be removed in the near future"))),n?n(f,g,m):!0}},zl.spelling=function(n){return(t,e)=>(console.warn(`${e} is likely a misspelling of ${n}`),!0)};function nC(n,t,e){if(typeof n!="object")throw new At("options must be an object",At.ERR_BAD_OPTION_VALUE);const r=Object.keys(n);let f=r.length;for(;f-- >0;){const g=r[f],m=t[g];if(m){const w=n[g],h=w===void 0||m(w,g,n);if(h!==!0)throw new At("option "+g+" must be "+h,At.ERR_BAD_OPTION_VALUE);continue}if(e!==!0)throw new At("Unknown option "+g,At.ERR_BAD_OPTION)}}const Hl={assertOptions:nC,validators:zl},uo=Hl.validators;let xs=class{constructor(n){this.defaults=n||{},this.interceptors={request:new Df,response:new Df}}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+=`
1397
1397
  `+f):e.stack=f}catch{}}throw e}}_request(n,t){typeof n=="string"?(t=t||{},t.url=n):t=n||{},t=ws(this.defaults,t);const{transitional:e,paramsSerializer:r,headers:f}=t;e!==void 0&&Hl.assertOptions(e,{silentJSONParsing:uo.transitional(uo.boolean),forcedJSONParsing:uo.transitional(uo.boolean),clarifyTimeoutError:uo.transitional(uo.boolean)},!1),r!=null&&(Ae.isFunction(r)?t.paramsSerializer={serialize:r}:Hl.assertOptions(r,{encode:uo.function,serialize:uo.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Hl.assertOptions(t,{baseUrl:uo.spelling("baseURL"),withXsrfToken:uo.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let g=f&&Ae.merge(f.common,f[t.method]);f&&Ae.forEach(["delete","get","head","post","put","patch","common"],c=>{delete f[c]}),t.headers=si.concat(g,f);const m=[];let w=!0;this.interceptors.request.forEach(function(c){typeof c.runWhen=="function"&&c.runWhen(t)===!1||(w=w&&c.synchronous,m.unshift(c.fulfilled,c.rejected))});const h=[];this.interceptors.response.forEach(function(c){h.push(c.fulfilled,c.rejected)});let d,a=0,l;if(!w){const c=[tg.bind(this),void 0];for(c.unshift(...m),c.push(...h),l=c.length,d=Promise.resolve(t);a<l;)d=d.then(c[a++],c[a++]);return d}l=m.length;let u=t;for(;a<l;){const c=m[a++],i=m[a++];try{u=c(u)}catch(s){i.call(this,s);break}}try{d=tg.call(this,u)}catch(c){return Promise.reject(c)}for(a=0,l=h.length;a<l;)d=d.then(h[a++],h[a++]);return d}getUri(n){n=ws(this.defaults,n);const t=Uf(n.baseURL,n.url,n.allowAbsoluteUrls);return Nf(t,n.params,n.paramsSerializer)}};Ae.forEach(["delete","get","head","options"],function(n){xs.prototype[n]=function(t,e){return this.request(ws(e||{},{method:n,url:t,data:(e||{}).data}))}}),Ae.forEach(["post","put","patch"],function(n){function t(e){return function(r,f,g){return this.request(ws(g||{},{method:n,headers:e?{"Content-Type":"multipart/form-data"}:{},url:r,data:f}))}}xs.prototype[n]=t(),xs.prototype[n+"Form"]=t(!0)});let rC=class iw{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 g=r._listeners.length;for(;g-- >0;)r._listeners[g](f);r._listeners=null}),this.promise.then=f=>{let g;const m=new Promise(w=>{r.subscribe(w),g=w}).then(f);return m.cancel=function(){r.unsubscribe(g)},m},t(function(f,g,m){r.reason||(r.reason=new ra(f,g,m),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 iw(function(e){t=e}),cancel:t}}};function iC(n){return function(t){return n.apply(null,t)}}function oC(n){return Ae.isObject(n)&&n.isAxiosError===!0}const Ru={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Ru).forEach(([n,t])=>{Ru[t]=n});function ig(n){const t=new xs(n),e=wf(xs.prototype.request,t);return Ae.extend(e,xs.prototype,t,{allOwnKeys:!0}),Ae.extend(e,t,null,{allOwnKeys:!0}),e.create=function(r){return ig(ws(n,r))},e}const Kn=ig(Fa);Kn.Axios=xs,Kn.CanceledError=ra,Kn.CancelToken=rC,Kn.isCancel=Bf,Kn.VERSION=ng,Kn.toFormData=Pl,Kn.AxiosError=At,Kn.Cancel=Kn.CanceledError,Kn.all=function(n){return Promise.all(n)},Kn.spread=iC,Kn.isAxiosError=oC,Kn.mergeConfig=ws,Kn.AxiosHeaders=si,Kn.formToJSON=n=>Ff(Ae.isHTMLForm(n)?new FormData(n):n),Kn.getAdapter=eg.getAdapter,Kn.HttpStatusCode=Ru,Kn.default=Kn;const{Axios:rD,AxiosError:iD,CanceledError:oD,isCancel:sD,CancelToken:aD,VERSION:lD,all:cD,Cancel:uD,isAxiosError:hD,spread:dD,toFormData:pD,AxiosHeaders:fD,HttpStatusCode:gD,formToJSON:mD,getAdapter:vD,mergeConfig:yD}=Kn,Lu=Kn.create({baseURL:location.origin,timeout:6e4,params:{}});Lu.interceptors.response.use(n=>n,n=>{var t,e,r,f,g,m,w,h,d,a,l;if(n.response){if(n.response.status===401&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0).then(function(i){i&&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} `),(g=(f=n.response)==null?void 0:f.data)!=null&&g.message?u+=`${n.response.data.message}`:(w=(m=n.response)==null?void 0:m.data)!=null&&w.exception?u+=`${n.response.data.exception}`:(a=(d=(h=n.response)==null?void 0:h.data)==null?void 0:d.error)!=null&&a.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:c}=window;throw c&&c.serious({title:"Network error",body:u}),n}else throw n});const jl=async function(n,t,{data:e,params:r={},headers:f,noAuth:g=!1,noScope:m=!1,onUploadProgress:w=!1}={}){if(!g){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch{OpenC3Auth.login()}f.Authorization=localStorage.openc3Token}return f.manual=!0,!m&&!r.scope&&(r.scope=window.openc3Scope),Lu({method:n,url:t,data:e,params:r,headers:f,onUploadProgress:w})},Ou={Accept:"application/json"},og={...Ou,"Content-Type":"application/json"},bD=er("F",{get:function(n,{params:t,headers:e=Ou,noScope:r,noAuth:f,onUploadProgress:g}={}){return jl("get",n,{params:t,headers:e,noScope:r,noAuth:f,onUploadProgress:g})},put:function(n,{data:t,params:e,headers:r=og,noScope:f,noAuth:g,onUploadProgress:m}={}){return jl("put",n,{data:t,params:e,headers:r,noScope:f,noAuth:g,onUploadProgress:m})},post:function(n,{data:t,params:e,headers:r=og,noScope:f,noAuth:g,onUploadProgress:m}={}){return jl("post",n,{data:t,params:e,headers:r,noScope:f,noAuth:g,onUploadProgress:m})},delete:function(n,{params:t,headers:e=Ou,noScope:r,noAuth:f,onUploadProgress:g}={}){return jl("delete",n,{params:t,headers:e,noScope:r,noAuth:f,onUploadProgress:g})}});let Ul=()=>({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 Ba extends Error{constructor(t,e){t instanceof Error?(super(t.message),this.cause=t):super(t),this.reason=e,this.name="ReasonError"}}class Nu extends Ba{constructor(t){super("Rejected",t),this.name="SubscriptionRejectedError"}}class sC extends Ba{constructor(t){super(t||"Timed out to receive subscription ack"),this.name="SubscriptionTimeoutError"}}class Zi extends Ba{constructor(t,e){e?super(t,e):super("Disconnected",t),this.name="DisconnectedError"}}class aC extends Zi{constructor(t){super(t,"stale_connection"),this.name="StaleConnectionError"}}function sg(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 lC{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 Cs=Symbol("state");class ag{constructor(t={}){this.emitter=Ul(),this.params=Object.freeze(t),this.presence=new lC(this),this.initialConnect=!0,this[Cs]="idle"}get identifier(){return this._identifier?this._identifier:(this._identifier=sg({channel:this.channelId,...this.params}),this._identifier)}get channelId(){return this.constructor.identifier}get state(){return this[Cs]}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[Cs]="connecting"}connected(){if(this.state==="connected"||this.state==="closed")return;this[Cs]="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[Cs]="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[Cs]="disconnected",this.presence.reset(),this.emit("disconnect",t))}closed(t){this.state!=="closed"&&(this[Cs]="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(g=>g()),e(f||new Ba("Channel was disconnected before subscribing","canceled"))}))}),this._pendingSubscribe)}}class cC{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(g=>{e=g}),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 uC{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 hC{constructor(t){t.concurrentSubscribes===!1&&(this.glv=new uC),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 cC(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 dC{constructor(t={}){this.subscriptions=new hC(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 g=this.subscriptions.get(f);g&&g.channels.forEach(m=>{m.receive(e,r)})}notify(t,e,r){let f=this._remoteToLocal[t];if(!f)return;let g=this.subscriptions.get(f);g&&g.channels.forEach(m=>m.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 lg={debug:0,info:1,warn:2,error:3};class cg{constructor(t){this.level=t||"warn"}log(t,e,r){lg[t]<lg[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 za extends cg{writeLogEntry(){}}class pC{encode(t){return JSON.stringify(t)}decode(t){try{return JSON.parse(t)}catch{}}}let fC=0;class ug{constructor(t={}){let{logger:e}=t;this.logger=e||new za,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=sg(r);if(this.pendingUnsubscriptions[f]){let m=this.subscribeCooldownInterval*1.5;return this.logger.debug(`unsubscribed recently, cooldown for ${m}`,f),new Promise(w=>{setTimeout(()=>{w(this.subscribe(t,e))},m)})}if(this.pendingSubscriptions[f])return this.logger.warn("subscription is already pending, skipping",f),Promise.reject(Error("Already subscribing"));let g=this.subscribeRetryInterval;return new Promise((m,w)=>{let h=++fC;this.pendingSubscriptions[f]={resolve:m,reject:w,id:h},this.cable.send(this.buildSubscribeRequest(f)),this.maybeRetrySubscribe(h,f,g)})}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 sC(`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:g,reconnect:m}=t;if(e==="ping")return this.cable.keepalive(t.message);if(this.cable.keepalive(),e==="welcome"){let w=t.sid;return w&&this.cable.setSessionId(w),this.cable.connected()}if(e==="disconnect"){let w=new Zi(g);this.reset(w),m===!1?this.cable.closed(w):this.cable.disconnected(w);return}if(e==="confirm_subscription"){let w=this.pendingSubscriptions[r];if(!w){this.logger.error("subscription not found, unsubscribing",{type:e,identifier:r}),this.unsubscribe(r);return}return delete this.pendingSubscriptions[r],w.resolve(r)}if(e==="reject_subscription"){let w=this.pendingSubscriptions[r];return w?(delete this.pendingSubscriptions[r],w.reject(new Nu)):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 hg=()=>Date.now()/1e3|0;class gC extends ug{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=hg()),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=hg()),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 g=t.restored_ids||Object.keys(this.subscriptionStreams);for(let m of g)this.cable.send({identifier:m,command:"history",history:this.historyRequestFor(m)}),this.presenceInfo[m]&&this.cable.send({identifier:m,command:"join",presence:this.presenceInfo[m]});return this.cable.restored(g)}return this.cable.connected(this.sessionId)}if(e==="presence"){let g=f.type;if(g==="info"){let m=this.pendingPresence[r];m&&(delete this.pendingPresence[r],m.resolve(f))}else if(g==="error"){let m=this.pendingPresence[r];m&&(delete this.pendingPresence[r],m.reject(new Error("failed to retrieve presence")))}return{type:e,identifier:r,message:f}}if(f){let g=this.trackStreamPosition(r,t.stream_id,t.epoch,t.offset);return{identifier:r,message:f,meta:g}}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 g=this.streamsPositions[f];g&&(r=!0,e[f]=g)}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 mC extends Ba{constructor(){super("No connection","closed"),this.name="NoConnectionError"}}class Du extends ag{constructor(t,e){super(e),this.channelId=t}set channelId(t){this._channelId=t}get channelId(){return this._channelId}}Rl(Du,"identifier","__ghost__");const vC="$pubsub";class Pu extends ag{async perform(t,e){if(t.startsWith("$"))return super.perform(t,e);throw Error("not implemented")}}Rl(Pu,"identifier",vC);const ks=Symbol("state");let yC=class{constructor({transport:n,protocol:t,encoder:e,logger:r,lazy:f,hubOptions:g,performFailures:m,transportConfigurator:w}){this.emitter=Ul(),this.transport=n,this.encoder=e,this.logger=r||new za,this.protocol=t,this.performFailures=m||"throw",this.protocol.attached(this),this.hub=new dC(g||{}),this[ks]="idle",this.handleClose=this.handleClose.bind(this),this.handleIncoming=this.handleIncoming.bind(this),this.transportConfigurator=w,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[ks]}async connect(){if(this.state==="connected")return Promise.resolve();if(this.state==="connecting")return this.pendingConnect();let n=this.state==="idle";this[ks]="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[ks]="connected",this.recovering&&this.hub.subscriptions.all().forEach(t=>t.notify("disconnected",new Zi("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[ks]="connected",this.hub.subscriptions.all().forEach(r=>{n&&r.remoteId&&n.includes(r.remoteId)?r.notify("restored"):(r.notify("disconnected",new Zi("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 Zi(n,"transport_closed"))}disconnected(n){(this.state==="connected"||this.state==="connecting")&&(this.logger.info("disconnected",{reason:n}),this[ks]="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 Zi?n:new Zi(n,void 0)),this.logger.info("closed",{reason:n||"user"}),this[ks]="closed";let e=t||new Zi("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:g,meta:m}=e;r?this.hub.notify(f,r,g):this.hub.transmit(f,g,m)}}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 Pu({stream_name:n});return this.subscribe(t)}streamFromSigned(n){let t=new Pu({signed_stream_name:n});return this.subscribe(t)}subscribeTo(n,t){let e,r;return typeof n=="string"&&(r=n,n=Du),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 g={identifier:t,params:e};this.logger.debug("subscribing",g);try{let m=await this.protocol.subscribe(t,e);this.hub.subscribe(r,m),this.logger.debug("subscribed",{...g,remoteId:m}),n.notify("connected")}catch(m){if(m){if(m instanceof Nu&&this.logger.warn("rejected",g),m instanceof Zi){this.logger.debug("disconnected during subscription; will retry on connect",g),f.release();return}this.logger.error("failed to subscribe",{error:m,...g})}n.close(m),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 Zi?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 mC;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,g={id:f,action:t,payload:e};this.logger.debug("perform",g);try{let m=await this.protocol.perform(f,t,e);return m&&this.logger.debug("perform result",{message:m,request:g}),m}catch(m){throw this.logger.error("perform failed",{error:m,request:g}),m}}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 bC={maxMissingPings:2,maxReconnectAttempts:1/0},ia=()=>Date.now(),dg=(n,t)=>{t=t||{};let{backoffRate:e,jitterRatio:r,maxInterval:f}=t;return e=e||2,r===void 0&&(r=.5),g=>{let m=n*e**g,w=m*e,h=m+(w-m)*Math.random(),d=2*(Math.random()-.5)*r;return h=h*(1+d),f&&f<h&&(h=f),h}};let pg=class{constructor({pingInterval:n,...t}){if(this.pingInterval=n,!this.pingInterval)throw Error(`Incorrect pingInterval is provided: ${n}`);if(t=Object.assign({},bC,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 za,this.state="pending_connect",this.attempts=0,this.disconnectedAt=ia()}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=ia(),this.state="connected",this.cancelReconnect(),this.startPolling()})),this.unbind.push(this.target.on("disconnect",()=>{this.disconnectedAt=ia(),this.state="disconnected",this.stopPolling(),this.scheduleReconnect()})),this.unbind.push(this.target.on("close",()=>{this.disconnectedAt=ia(),this.state="closed",this.cancelReconnect(),this.stopPolling()})),this.unbind.push(this.target.on("keepalive",()=>{this.pingedAt=ia()})),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=ia()-this.pingedAt;n>this.maxMissingPings*this.pingInterval&&(this.logger.warn(`Stale connection: ${n}ms without pings`),this.state="pending_disconnect",this.target.disconnected(new aC))}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 wC{constructor(t,e={}){this.transports=t,this.transport=null,this.emitter=Ul(),this.unbind=[],this.logger=e.logger||new za}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 xC{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=Ul();let{format:f,subprotocol:g,authStrategy:m}=e;this.format=f||"text",this.connectionOptions=e.websocketOptions,this.authStrategy=m||"param",this.authProtocol="",this.subprotocol=g}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(g=>g()),e()})),f.push(this.once("close",()=>{f.forEach(g=>g()),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 fg={protocol:"actioncable-v1-json",pingInterval:3e3,maxReconnectAttempts:1/0,maxMissingPings:2,logLevel:"warn",lazy:!0};function CC(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({},fg,t);let{protocol:e,websocketImplementation:r,websocketFormat:f,websocketOptions:g,websocketAuthStrategy:m,fallbacks:w,logLevel:h,logger:d,transport:a,encoder:l,lazy:u,monitor:c,pingInterval:i,reconnectStrategy:s,maxMissingPings:p,maxReconnectAttempts:b,subprotocol:x,tokenRefresher:I,historyTimestamp:_,protocolOptions:k,concurrentSubscribes:C,performFailures:L,transportConfigurator:D,auth:R}=t;if(d=d||new za(h),typeof e=="string"){x=x||e;let F=e.substring(0,e.lastIndexOf("-")),O=e.substring(e.lastIndexOf("-")+1);if(k=k||{},F==="actioncable-v1")e=new ug({logger:d,...k});else if(F==="actioncable-v1-ext")e=new gC({logger:d,historyTimestamp:_,...k});else throw Error(`Protocol is not supported yet: ${e}`);if(O==="json")l=l||new pC,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");a=a||new xC(n,{websocketImplementation:r,websocketOptions:g,subprotocol:x,authStrategy:m,format:f}),w&&(a=new wC([a,...w],{logger:d})),R&&R.token&&a.setToken(R.token,R.param||"jid"),s=s||dg(i),c!==!1&&(c=c||new pg({pingInterval:i,reconnectStrategy:s,maxMissingPings:p,maxReconnectAttempts:b,logger:d}));let E={concurrentSubscribes:C},z=new yC({protocol:e,transport:a,encoder:l,logger:d,lazy:u,hubOptions:E,performFailures:L,transportConfigurator:D});return c&&(c.watch(z),z.monitor=c),I&&kC(z,async()=>{try{await I(a)}catch(F){return d.error("Failed to refresh authentication token: "+F),!1}return z.connect().catch(()=>{}),!0}),z}function kC(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 AC{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 SC extends Du{constructor(t,e,r){super(t,e),this.subscription=new AC(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 Nu?this.subscription.notify("rejected"):this.subscription.notify("disconnected",{allowReconnect:!1})})}}class _C{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 g=new SC(r,f,e);return g.subscription.notify("initialized"),this.cable.subscribe(g),g.subscription}findAll(t){return this.cable.hub.channels.filter(e=>e.identifier===t).map(e=>e.subscription)}}class $C{constructor(t){this.cable=t,this.subscriptions=new _C(t)}}class TC extends cg{writeLogEntry(t,e,r){r?console[t](e,r):console[t](e)}}class MC extends pg{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 Zi("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 IC=["cable","action-cable"],EC="/cable",Vl=(n,t)=>{for(let e of IC){let r=n.head.querySelector(`meta[name='${e}-${t}']`);if(r)return r.getAttribute("content")}},gg=n=>n.match(/wss?:\/\//)?n:typeof window<"u"?`${window.location.protocol.replace("http","ws")}//${window.location.host}${n}`:n,RC=()=>{if(typeof document<"u"&&document.head){let n=Vl(document,"url");if(n)return gg(n)}return gg(EC)},LC=()=>{if(typeof document<"u"&&document.head){let n=Vl(document,"history-timestamp");if(n)return n|0}},OC=()=>{if(typeof document<"u"&&document.head)return Vl(document,"token")},NC=()=>{if(typeof document<"u"&&document.head)return Vl(document,"token-param")};function DC(n,t){typeof n=="object"&&typeof t>"u"&&(t=n,n=void 0),n=n||RC(),t=t||{},t.historyTimestamp||(t.historyTimestamp=LC());let e=OC();if(e){let d=NC();t.auth=Object.assign({token:e,param:d},t.auth||{})}t=Object.assign({},fg,t);let{logLevel:r,logger:f,pingInterval:g,reconnectStrategy:m,maxMissingPings:w,maxReconnectAttempts:h}=t;return f=t.logger=t.logger||new TC(r),m=t.reconnectStrategy=t.reconnectStrategy||dg(g),t.monitor!==!1&&(t.monitor=t.monitor||new MC({pingInterval:g,reconnectStrategy:m,maxMissingPings:w,maxReconnectAttempts:h,logger:f})),CC(n,t)}function PC(n,t){let e=DC(n,t);return new $C(e)}class FC{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(g=>{if(g&&OpenC3Auth.setTokens(),this._cable==null){let m=this._url+"?scope="+encodeURIComponent(e)+"&authorization="+encodeURIComponent(localStorage.openc3Token);m=new URL(m,document.baseURI).href,this._cable=PC(m)}return this._cable.subscriptions.create({channel:t,...f},r)})}recordPing(){}}er("P",FC);class WC{constructor(t,e,r="",f=""){this.keyword=t.keyword,this.parameters=t.parameters,this.filename=t.filename,this.line=t.line,this.lineNumber=t.lineNumber,this.message=e,this.usage=r,this.url=f}}er("k",WC);function Ha(n){return BC.test(n)}const BC=/^-?[0-9]+$/;function mg(n){return zC.test(n)}const zC=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$/;function vg(n,t){if(Ha(n))return Number.isSafeInteger(Number.parseInt(n,10));const e=Number.parseFloat(n),r=String(e);if(n===r)return!0;const f=yg(n),g=yg(r);return!!(f===g||(t==null?void 0:t.approx)===!0&&!Ha(n)&&g.length>=14&&f.startsWith(g.substring(0,14)))}let ja=function(n){return n.underflow="underflow",n.overflow="overflow",n.truncate_integer="truncate_integer",n.truncate_float="truncate_float",n}({});function HC(n){if(vg(n,{approx:!1}))return;if(Ha(n))return ja.truncate_integer;const t=Number.parseFloat(n);return Number.isFinite(t)?t===0?ja.underflow:ja.truncate_float:ja.overflow}function yg(n){const{start:t,end:e}=jC(n),r=n.substring(t,e),f=r.indexOf(".");return f===-1?r:r.substring(0,f)+r.substring(f+1)}function jC(n){let t=0;for(n[0]==="-"&&t++;n[t]==="0"||n[t]===".";)t++;let e=n.lastIndexOf("e");for(e===-1&&(e=n.lastIndexOf("E")),e===-1&&(e=n.length);(n[e-1]==="0"||n[e-1]===".")&&e>t;)e--;return{start:t,end:e}}class UC{constructor(t){if(Rl(this,"isLosslessNumber",!0),!mg(t))throw new Error(`Invalid number (value: "${t}")`);this.value=t}valueOf(){const t=HC(this.value);if(t===void 0||t===ja.truncate_float)return Number.parseFloat(this.value);if(Ha(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 VC(n){return n&&typeof n=="object"&&n.isLosslessNumber||!1}function qC(n){return new UC(n)}function KC(n,t){return Fu({"":n},"",n,t)}function Fu(n,t,e,r){return Array.isArray(e)?r.call(n,t,YC(e,r)):e&&typeof e=="object"&&!VC(e)?r.call(n,t,GC(e,r)):r.call(n,t,e)}function GC(n,t){for(const e of Object.keys(n)){const r=Fu(n,e,n[e],t);r!==void 0?n[e]=r:delete n[e]}return n}function YC(n,t){for(let e=0;e<n.length;e++)n[e]=Fu(n,String(e),n[e],t);return n}function XC(n,t,e){const r=typeof e=="function"?{parseNumber:e}:e,f=(r==null?void 0:r.parseNumber)??qC,g=(r==null?void 0:r.onDuplicateKey)??L;let m=0;const w=a();return b(w),I(),t?KC(w,t):w;function h(){if(n.charCodeAt(m)===nk){m++,u();const B={};let U=!0;for(;m<n.length&&n.charCodeAt(m)!==wg;){U?U=!1:(s(),u());const K=m,Q=c();if(Q===void 0){C();return}u(),p();const J=a();if(J===void 0){F();return}if(Object.prototype.hasOwnProperty.call(B,Q)&&!Wu(J,B[Q])){const he=g({key:Q,position:K+1,oldValue:B[Q],newValue:J});he!==void 0&&(B[Q]=he)}else B[Q]=J}return n.charCodeAt(m)!==wg&&D(),m++,B}}function d(){if(n.charCodeAt(m)===rk){m++,u();const B=[];let U=!0;for(;m<n.length&&n.charCodeAt(m)!==xg;){U?U=!1:s();const K=a();x(K),B.push(K)}return n.charCodeAt(m)!==xg&&R(),m++,B}}function a(){u();const B=c()??i()??h()??d()??l("true",!0)??l("false",!1)??l("null",null);return u(),B}function l(B,U){if(n.slice(m,m+B.length)===B)return m+=B.length,U}function u(){for(;ZC(n.charCodeAt(m));)m++}function c(){if(n.charCodeAt(m)===Bu){m++;let B="";for(;m<n.length&&n.charCodeAt(m)!==Bu;){if(n.charCodeAt(m)===tk){const U=n[m+1],K=ek[U];K!==void 0?(B+=K,m++):U==="u"?ql(n.charCodeAt(m+2))&&ql(n.charCodeAt(m+3))&&ql(n.charCodeAt(m+4))&&ql(n.charCodeAt(m+5))?(B+=String.fromCharCode(Number.parseInt(n.slice(m+2,m+6),16)),m+=5):O(m):z(m)}else JC(n.charCodeAt(m))?B+=n[m]:E(n[m]);m++}return k(),m++,B}}function i(){const B=m;if(n.charCodeAt(m)===Cg&&(m++,_(B)),n.charCodeAt(m)===zu)m++;else if(QC(n.charCodeAt(m)))for(m++;Kl(n.charCodeAt(m));)m++;if(n.charCodeAt(m)===hk)for(m++,_(B);Kl(n.charCodeAt(m));)m++;if(n.charCodeAt(m)===mk||n.charCodeAt(m)===gk)for(m++,(n.charCodeAt(m)===Cg||n.charCodeAt(m)===lk)&&m++,_(B);Kl(n.charCodeAt(m));)m++;if(m>B)return f(n.slice(B,m))}function s(){if(n.charCodeAt(m)!==uk)throw new SyntaxError(`Comma ',' expected after value ${N()}`);m++}function p(){if(n.charCodeAt(m)!==dk)throw new SyntaxError(`Colon ':' expected after property name ${N()}`);m++}function b(B){if(B===void 0)throw new SyntaxError(`JSON value expected ${N()}`)}function x(B){if(B===void 0)throw new SyntaxError(`Array item expected ${N()}`)}function I(){if(m<n.length)throw new SyntaxError(`Expected end of input ${N()}`)}function _(B){if(!Kl(n.charCodeAt(m))){const U=n.slice(B,m);throw new SyntaxError(`Invalid number '${U}', expecting a digit ${N()}`)}}function k(){if(n.charCodeAt(m)!==Bu)throw new SyntaxError(`End of string '"' expected ${N()}`)}function C(){throw new SyntaxError(`Quoted object key expected ${N()}`)}function L(B){let{key:U,position:K}=B;throw new SyntaxError(`Duplicate key '${U}' encountered at position ${K}`)}function D(){throw new SyntaxError(`Quoted object key or end of object '}' expected ${N()}`)}function R(){throw new SyntaxError(`Array item or end of array ']' expected ${N()}`)}function E(B){throw new SyntaxError(`Invalid character '${B}' ${$()}`)}function z(B){const U=n.slice(B,B+2);throw new SyntaxError(`Invalid escape character '${U}' ${$()}`)}function F(){throw new SyntaxError(`Object value expected after ':' ${$()}`)}function O(B){const U=n.slice(B,B+6);throw new SyntaxError(`Invalid unicode character '${U}' ${$()}`)}function $(){return`at position ${m}`}function A(){return m<n.length?`but got '${n[m]}'`:"but reached end of input"}function N(){return`${A()} ${$()}`}}function ZC(n){return n===ik||n===ok||n===sk||n===ak}function ql(n){return n>=zu&&n<=Hu||n>=pk&&n<=vk||n>=fk&&n<=yk}function Kl(n){return n>=zu&&n<=Hu}function QC(n){return n>=ck&&n<=Hu}function JC(n){return n>=32&&n<=1114111}function Wu(n,t){return n===t?!0:Array.isArray(n)&&Array.isArray(t)?n.length===t.length&&n.every((e,r)=>Wu(e,t[r])):bg(n)&&bg(t)?[...new Set([...Object.keys(n),...Object.keys(t)])].every(e=>Wu(n[e],t[e])):!1}function bg(n){return typeof n=="object"&&n!==null}const ek={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
1398
1398
  `,r:"\r",t:" "},tk=92,nk=123,wg=125,rk=91,xg=93,ik=32,ok=10,sk=9,ak=13,Bu=34,lk=43,Cg=45,zu=48,ck=49,Hu=57,uk=44,hk=46,dk=58,pk=65,fk=97,gk=69,mk=101,vk=70,yk=102;function kg(n,t,e,r){return f(n);function f(h,d){if(Array.isArray(r)){const a=r.find(l=>l.test(h));if(a){const l=a.stringify(h);if(typeof l!="string"||!mg(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 g(h);if(h&&typeof h=="object")return m(h)}function g(h,d){if(h.length===0)return"[]";let a="[";for(let l=0;l<h.length;l++){const u=h[l];typeof u<"u"&&typeof u!="function"?a+=f(u):a+="null",l<h.length-1&&(a+=",")}return a+="]",a}function m(h,d){if(typeof h.toJSON=="function")return kg(h.toJSON(),t,e,void 0);const a=Array.isArray(t)?t.map(String):Object.keys(h);if(a.length===0)return"{}";let l=!0,u="{";for(const c of a){const i=h[c];if(w(c,i)){l?l=!1:u+=",";const s=JSON.stringify(c);u+=`${s}:`,u+=f(i)}}return u+="}",u}function w(h,d){return typeof d<"u"&&typeof d!="function"&&typeof d!="symbol"}}function bk(n){return Ha(n)&&!vg(n)?BigInt(n):parseFloat(n)}class As{constructor(){Rl(this,"id",1)}async exec(t,e,r={},f={},g=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 Lu.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:g,transformRequest:[(m,w)=>kg(m)],transformResponse:[m=>XC(m,void 0,bk)]})).data.result}catch(m){let w=new Error;throw m.response?(w.name=m.response.data.error.data.class,w.message=m.response.data.error.data.message,w.object=m.response.data.error):m.request?(w.name="Request error",w.message="Request error, no response received"):w=m,w}}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,r,f,g){return this.exec("map_target_to_interface",[t,e],{cmd_only:r,tlm_only:f,unmap_old:g})}unmap_target_from_interface(t,e,r,f){return this.exec("unmap_target_from_interface",[t,e],{cmd_only:r,tlm_only:f})}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])}interface_target_enable(t,e,r=!1,f=!1){return this.exec("interface_target_enable",[t,e],{cmd_only:r,tlm_only:f})}interface_target_disable(t,e,r=!1,f=!1){return this.exec("interface_target_disable",[t,e],{cmd_only:r,tlm_only:f})}interface_details(t){return this.exec("interface_details",[t])}get_all_router_info(){return this.exec("get_all_router_info",[])}map_target_to_router(t,e,r,f,g){return this.exec("map_target_to_router",[t,e],{cmd_only:r,tlm_only:f,unmap_old:g})}unmap_target_from_router(t,e,r,f){return this.exec("unmap_target_from_router",[t,e],{cmd_only:r,tlm_only:f})}connect_router(t){return this.exec("connect_router",[t])}disconnect_router(t){return this.exec("disconnect_router",[t])}router_target_enable(t,e,r=!1,f=!1){return this.exec("router_target_enable",[t,e],{cmd_only:r,tlm_only:f})}router_target_disable(t,e,r=!1,f=!1){return this.exec("router_target_disable",[t,e],{cmd_only:r,tlm_only:f})}router_details(t){return this.exec("router_details",[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 g=await this.exec("get_tlm_packet",[t,e],{type:r,stale_time:f});if(g!=null){let m=g.length,w=null;for(let h=0;h<m;h++)w=this.decode_openc3_type(g[h][1]),w!==null&&(g[h][1]=w)}return g}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])}get_tlm_available(t){return this.exec("get_tlm_available",[t])}async get_tlm_values(t,e=30,r=null,f=null,g=null){let m={stale_time:e};r!==null&&(m.cache_timeout=r),f!==null&&(m.start_time=f.toISOString()),g!==null&&(m.end_time=g.toISOString());const w=await this.exec("get_tlm_values",[t],m,{},1e4);if(w&&w.length>0){let h=w.length,d=null;for(let a=0;a<h;a++)d=this.decode_openc3_type(w[a][0]),d!==null&&(w[a][0]=d)}return w}get_limits(t,e,r){return this.exec("get_limits",[t,e,r])}async tlm(t,e,r,f="CONVERTED"){let g=null;if(e===void 0)g=await this.exec("tlm",[t]);else if(r===void 0)if(["RAW","CONVERTED","FORMATTED","WITH_UNITS"].includes(e))g=await this.exec("tlm",[t],{type:e});else{let w=new Error;throw w.name="TypeError",w.message=`Invalid data type ${e}. Valid options are RAW, CONVERTED, FORMATTED, and WITH_UNITS.`,w}else g=await this.exec("tlm",[t,e,r],{type:f});let m=this.decode_openc3_type(g);return m!==null&&(g=m),g}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,g,m={}){let w=null;for(let h in f)Object.prototype.hasOwnProperty.call(f,h)&&(w=this.encode_openc3_type(f[h]),w!==null&&(f[h]=w));return this.exec(t,[e,r,f],m,g)}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={},g={}){return e===void 0?this.exec("cmd",t,g,f):this._cmd("cmd",t,e,r,f,g)}cmd_no_range_check(t,e,r,f={},g={}){return e===void 0?this.exec("cmd_no_range_check",t,g,f):this._cmd("cmd_no_range_check",t,e,r,f,g)}cmd_raw(t,e,r,f={},g={}){return e===void 0?this.exec("cmd_raw",t,g,f):this._cmd("cmd_raw",t,e,r,f,g)}cmd_raw_no_range_check(t,e,r,f={},g={}){return e===void 0?this.exec("cmd_raw_no_range_check",t,g,f):this._cmd("cmd_raw_no_range_check",t,e,r,f,g)}cmd_no_hazardous_check(t,e,r,f={},g={}){return e===void 0?this.exec("cmd_no_hazardous_check",t,g,f):this._cmd("cmd_no_hazardous_check",t,e,r,f,g)}cmd_no_checks(t,e,r,f={},g={}){return e===void 0?this.exec("cmd_no_checks",t,g,f):this._cmd("cmd_no_checks",t,e,r,f,g)}cmd_raw_no_hazardous_check(t,e,r,f={},g={}){return e===void 0?this.exec("cmd_raw_no_hazardous_check",t,g,f):this._cmd("cmd_raw_no_hazardous_check",t,e,r,f,g)}cmd_raw_no_checks(t,e,r,f={},g={}){return e===void 0?this.exec("cmd_raw_no_checks",t,g,f):this._cmd("cmd_raw_no_checks",t,e,r,f,g)}build_cmd(t,e,r,f={},g={}){return e===void 0?this.exec("build_cmd",t,g,f):this._cmd("build_cmd",t,e,r,f,g)}build_command(t,e,r,f={},g={}){return e===void 0?this.exec("build_cmd",t,g,f):this._cmd("build_cmd",t,e,r,f,g)}get_interface_names(){return this.exec("get_interface_names",[])}get_router_names(){return this.exec("get_router_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,e){return this.exec("get_setting",[t],e)}get_settings(t,e){return this.exec("get_settings",t,e)}set_setting(t,e){return this.exec("set_setting",[t,e])}update_news(){return this.exec("update_news",[])}update_plugin_store(){return this.exec("update_plugin_store",[])}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(g=>g.toString(16).padStart(2,"0")).join("")}}}er("B",As);var Ag={exports:{}},Sg;function wk(){return Sg||(Sg=1,function(n,t){ace.define("ace/ext/hardwrap",["require","exports","module","ace/range","ace/editor","ace/config"],function(e,r,f){function g(d,a){function l(R,E,z){if(!(R.length<E)){var F=R.slice(0,E),O=R.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>z)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=a.column||d.getOption("printMarginColumn"),c=a.allowMerge!=0,i=Math.min(a.startRow,a.endRow),s=Math.max(a.startRow,a.endRow),p=d.session;i<=s;){var b=p.getLine(i);if(b.length>u){var x=l(b,u,5);if(x){var I=/^\s*/.exec(b)[0];p.replace(new w(i,x.start,i,x.end),`
1399
- `+I)}s++}else if(c&&/\S/.test(b)&&i!=s){var _=p.getLine(i+1);if(_&&/\S/.test(_)){var k=b.replace(/\s+$/,""),C=_.replace(/^\s+/,""),L=k+" "+C,x=l(L,u,5);if(x&&x.start>k.length||L.length<u){var D=new w(i,k.length,i+1,_.length-C.length);p.replace(D," "),i--,s--}else k.length<b.length&&p.remove(new w(i,k.length,i,b.length))}}i++}}function m(d){if(d.command.name=="insertstring"&&/\S/.test(d.args)){var a=d.editor,l=a.selection.cursor;if(l.column<=a.renderer.$printMarginColumn)return;var u=a.session.$undoManager.$lastDelta;g(a,{startRow:l.row,endRow:l.row,allowMerge:!1}),u!=a.session.$undoManager.$lastDelta&&a.session.markUndoGroup()}}var w=e("../range").Range,h=e("../editor").Editor;e("../config").defineOptions(h.prototype,"editor",{hardWrap:{set:function(d){d?this.commands.on("afterExec",m):this.commands.off("afterExec",m)},value:!1}}),r.hardWrap=g}),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 g(y){return{row:y.line,column:y.ch}}function m(y){return new Ne(y.row,y.column)}function w(y,T,S){if(T.line===S.line&&T.ch>=S.ch-1){var P=y.getLine(T.line),W=P.charCodeAt(T.ch);55296<=W&&W<=55551&&(S.ch+=1)}return{start:T,end:S}}function h(y){y.setOption("disableInput",!0),y.setOption("showCursorWhenSelecting",!1),We.signal(y,"vim-mode-change",{mode:"normal"}),y.on("cursorActivity",rs),L(y),We.on(y.getInputField(),"paste",a(y))}function d(y){y.setOption("disableInput",!1),y.off("cursorActivity",rs),We.off(y.getInputField(),"paste",a(y)),y.state.vim=null,Ar&&clearTimeout(Ar)}function a(y){var T=y.state.vim;return T.onPasteFn||(T.onPasteFn=function(){T.insertMode||(y.setCursor(me(y.getCursor(),0,1)),Un.enterInsertMode(y,{},T))}),T.onPasteFn}function l(y,T){return T>=y.firstLine()&&T<=y.lastLine()}function u(y){return/^[a-z]$/.test(y)}function c(y){return"()[]{}".indexOf(y)!=-1}function i(y){return ka.test(y)}function s(y){return rn.test(y)}function p(y){return/^\s*$/.test(y)}function b(y){return".?!".indexOf(y)!=-1}function x(y,T){for(var S=0;S<T.length;S++)if(T[S]==y)return!0;return!1}function I(y,T,S,P,W){if(T===void 0&&!W)throw Error("defaultValue is required unless callback is provided");if(S||(S="string"),jt[y]={type:S,defaultValue:T,callback:W},P)for(var H=0;H<P.length;H++)jt[P[H]]=jt[y];T&&_(y,T)}function _(y,T,S,P){var W=jt[y];P=P||{};var H=P.scope;if(!W)return new Error("Unknown option: "+y);if(W.type=="boolean"){if(T&&T!==!0)return new Error("Invalid argument: "+y+"="+T);T!==!1&&(T=!0)}W.callback?(H!=="local"&&W.callback(T,void 0),H!=="global"&&S&&W.callback(T,S)):(H!=="local"&&(W.value=W.type=="boolean"?!!T:T),H!=="global"&&S&&(S.state.vim.options[y]={value:T}))}function k(y,T,S){var P=jt[y];S=S||{};var W=S.scope;if(!P)return new Error("Unknown option: "+y);if(P.callback){var H=T&&P.callback(void 0,T);return W!=="global"&&H!==void 0?H:W!=="local"?P.callback():void 0}var H=W!=="global"&&T&&T.state.vim.options[y];return(H||W!=="local"&&P||{}).value}function C(){this.latestRegister=void 0,this.isPlaying=!1,this.isRecording=!1,this.replaySearchQueries=[],this.onRecordingDone=void 0,this.lastInsertModeChanges=Hn()}function L(y){return y.state.vim||(y.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}),y.state.vim}function D(){He={searchQuery:null,searchIsReversed:!1,lastSubstituteReplacePart:void 0,jumpList:zi(),macroModeState:new C,lastCharacterSearch:{increment:0,forward:!0,selectedCharacter:""},registerController:new K({}),searchHistoryController:new Q,exCommandHistoryController:new Q};for(var y in jt){var T=jt[y];T.value=T.defaultValue}}function R(y){function T(Y){typeof Y=="string"?Sn.value=Y:Sn=null}if(y[0]=="<"){var S=y.toLowerCase().slice(1,-1),P=S.split("-");if(S=P.pop()||"",S=="lt")y="<";else if(S=="space")y=" ";else if(S=="cr")y=`
1400
- `;else if(Hi[S]){var W=Sn.value,H={key:Hi[S],target:{value:W,selectionEnd:W.length,selectionStart:W.length}};Sn.onKeyDown&&Sn.onKeyDown(H,Sn.value,T),Sn&&Sn.onKeyUp&&Sn.onKeyUp(H,Sn.value,T);return}}if(y==`
1401
- `){var q=Sn;Sn=null,q.onClose&&q.onClose(q.value)}else Sn.value=(Sn.value||"")+y}function E(y,T,S){var P=hn;if(S){if(Qr.indexOf(S)!=-1)return;Qr.push(S),hn=S.noremap!=0}try{for(var W=L(y),H=/<(?:[CSMA]-)*\w+>|./gi,q;q=H.exec(T);){var Y=q[0],Z=W.insertMode;if(Sn){R(Y);continue}var re=bt.handleKey(y,Y,"mapping");if(!re&&Z&&W.insertMode){if(Y[0]=="<"){var ae=Y.toLowerCase().slice(1,-1),be=ae.split("-");if(ae=be.pop()||"",ae=="lt")Y="<";else if(ae=="space")Y=" ";else if(ae=="cr")Y=`
1402
- `;else{if(Hi.hasOwnProperty(ae)){Y=Hi[ae],os(y,Y);continue}Y=Y[0],H.lastIndex=q.index+1}}y.replaceSelection(Y)}}}finally{if(Qr.pop(),hn=Qr.length?P:!1,!Qr.length&&Sn){var ke=Sn;Sn=null,wr(y,ke)}}}function z(y,T){var S=y.key;if(!Jr[S]){S.length>1&&S[0]=="n"&&(S=S.replace("Numpad","")),S=or[S]||S;var P="";if(y.ctrlKey&&(P+="C-"),y.altKey&&(P+="A-"),y.metaKey&&(P+="M-"),We.isMac&&y.altKey&&!y.metaKey&&!y.ctrlKey&&(P=P.slice(2)),(P||S.length>1)&&y.shiftKey&&(P+="S-"),T&&!T.expectLiteralNext&&S.length==1){if(Zn.keymap&&S in Zn.keymap)(Zn.remapCtrl!=0||!P)&&(S=Zn.keymap[S]);else if(S.charCodeAt(0)>255){var W=y.code&&y.code.slice(-1)||"";y.shiftKey||(W=W.toLowerCase()),W&&(S=W)}}return P+=S,P.length>1&&(P="<"+P+">"),P}}function F(y,T){Zn.string!==y&&(Zn=O(y)),Zn.remapCtrl=T}function O(y){function T(P){return P.split(/\\?(.)/).filter(Boolean)}var S={};return y?(y.split(/((?:[^\\,]|\\.)+),/).map(function(P){if(P){var W=P.split(/((?:[^\\;]|\\.)+);/);if(W.length==3){var H=T(W[1]),q=T(W[2]);if(H.length!==q.length)return;for(var Y=0;Y<H.length;++Y)S[H[Y]]=q[Y]}else if(W.length==1){var Z=T(P);if(Z.length%2!==0)return;for(var Y=0;Y<Z.length;Y+=2)S[Z[Y]]=Z[Y+1]}}}),{keymap:S,string:y}):{keymap:S,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(y,T){y.state.vim.inputState=new $,y.state.vim.expectLiteralNext=!1,We.signal(y,"vim-command-done",T)}function N(){this.removed=[],this.inserted=""}function B(y,T,S){this.clear(),this.keyBuffer=[y||""],this.insertModeChanges=[],this.searchQueries=[],this.linewise=!!T,this.blockwise=!!S}function U(y,T){var S=He.registerController.registers;if(!y||y.length!=1)throw Error("Register name must be 1 character");S[y]=T,nn.push(y)}function K(y){this.registers=y,this.unnamedRegister=y['"']=new B,y["."]=new B,y[":"]=new B,y["/"]=new B,y["+"]=new B}function Q(){this.historyBuffer=[],this.iterator=0,this.initialPrefix=null}function J(y,T){mi[y]=T}function he(y,T){for(var S=[],P=0;P<T;P++)S.push(y);return S}function ne(y,T){cs[y]=T}function le(y,T){Un[y]=T}function se(y,T,S){var P=y.state.vim,W=P.insertMode||P.visualMode,H=Math.min(Math.max(y.firstLine(),T.line),y.lastLine()),q=y.getLine(H),Y=q.length-1+ +!!W,Z=Math.min(Math.max(0,T.ch),Y),re=q.charCodeAt(Z);if(56320<=re&&re<=57343){var ae=1;S&&S.line==H&&S.ch>Z&&(ae=-1),Z+=ae,Z>Y&&(Z-=2)}return new Ne(H,Z)}function de(y){var T={};for(var S in y)y.hasOwnProperty(S)&&(T[S]=y[S]);return T}function me(y,T,S){return typeof T=="object"&&(S=T.ch,T=T.line),new Ne(y.line+T,y.ch+S)}function _e(y,T,S,P){P.operator&&(S="operatorPending");for(var W,H=[],q=[],Y=hn?T.length-No:0,Z=Y;Z<T.length;Z++){var re=T[Z];S=="insert"&&re.context!="insert"||re.context&&re.context!=S||P.operator&&re.type=="action"||!(W=Te(y,re.keys))||(W=="partial"&&H.push(re),W=="full"&&q.push(re))}return{partial:H.length&&H,full:q.length&&q}}function Te(y,T){var S=T.slice(-11)=="<character>",P=T.slice(-10)=="<register>";if(S||P){var W=T.length-(S?11:10),H=y.slice(0,W),q=T.slice(0,W);return H==q&&y.length>W?"full":q.indexOf(H)==0?"partial":!1}return y==T?"full":T.indexOf(y)==0?"partial":!1}function Me(y){var T=/^.*(<[^>]+>)$/.exec(y),S=T?T[1]:y.slice(-1);if(S.length>1)switch(S){case"<CR>":S=`
1403
- `;break;case"<Space>":S=" ";break;default:S=""}return S}function Ze(y,T,S){return function(){for(var P=0;P<S;P++)T(y)}}function Ge(y){return new Ne(y.line,y.ch)}function lt(y,T){return y.ch==T.ch&&y.line==T.line}function tt(y,T){return y.line<T.line?!0:y.line==T.line&&y.ch<T.ch}function ct(y,T){return arguments.length>2&&(T=ct.apply(void 0,Array.prototype.slice.call(arguments,1))),tt(y,T)?y:T}function Yt(y,T){return arguments.length>2&&(T=Yt.apply(void 0,Array.prototype.slice.call(arguments,1))),tt(y,T)?T:y}function Cn(y,T,S){var P=tt(y,T),W=tt(T,S);return P&&W}function Wt(y,T){return y.getLine(T).length}function vr(y){return y.trim?y.trim():y.replace(/^\s+|\s+$/g,"")}function un(y){return y.replace(/([.?*+$\[\]\/\\(){}|\-])/g,"\\$1")}function Ln(y,T,S){var P=Wt(y,T),W=new Array(S-P+1).join(" ");y.setCursor(new Ne(T,P)),y.replaceRange(W,y.getCursor())}function Xn(y,T){var S=[],P=y.listSelections(),W=Ge(y.clipPos(T)),H=!lt(T,W),q=y.getCursor("head"),Y=yt(P,q),Z=lt(P[Y].head,P[Y].anchor),re=P.length-1,ae=re-Y>Y?re:0,be=P[ae].anchor,ke=Math.min(be.line,W.line),ve=Math.max(be.line,W.line),we=be.ch,Oe=W.ch,Le=P[ae].head.ch-we,qe=Oe-we;Le>0&&qe<=0?(we++,H||Oe--):Le<0&&qe>=0?(we--,Z||Oe++):Le<0&&qe==-1&&(we--,Oe++);for(var at=ke;at<=ve;at++){var Qe={anchor:new Ne(at,we),head:new Ne(at,Oe)};S.push(Qe)}return y.setSelections(S),T.ch=Oe,be.ch=we,be}function Mr(y,T,S){for(var P=[],W=0;W<S;W++){var H=me(T,W,0);P.push({anchor:H,head:H})}y.setSelections(P,0)}function yt(y,T,S){for(var P=0;P<y.length;P++){var W=lt(y[P].anchor,T),H=lt(y[P].head,T);if(W||H)return P}return-1}function je(y,T){var S=T.lastSelection,P=function(){var H=y.listSelections(),q=H[0],Y=H[H.length-1],Z=tt(q.anchor,q.head)?q.anchor:q.head,re=tt(Y.anchor,Y.head)?Y.head:Y.anchor;return[Z,re]},W=function(){var H=y.getCursor(),q=y.getCursor(),Y=S.visualBlock;if(Y){var Z=Y.width,re=Y.height;q=new Ne(H.line+re,H.ch+Z);for(var ae=[],be=H.line;be<q.line;be++){var ke=new Ne(be,H.ch),ve=new Ne(be,q.ch),we={anchor:ke,head:ve};ae.push(we)}y.setSelections(ae)}else{var Oe=S.anchorMark.find(),Le=S.headMark.find(),qe=Le.line-Oe.line,at=Le.ch-Oe.ch;q={line:q.line+qe,ch:qe?q.ch:at+q.ch},S.visualLine&&(H=new Ne(H.line,0),q=new Ne(q.line,Wt(y,q.line))),y.setSelection(H,q)}return[H,q]};return T.visualMode?P():W()}function Lt(y,T){var S=T.sel.anchor,P=T.sel.head;T.lastPastedText&&(P=y.posFromIndex(y.indexFromPos(S)+T.lastPastedText.length),T.lastPastedText=null),T.lastSelection={anchorMark:y.setBookmark(S),headMark:y.setBookmark(P),anchor:Ge(S),head:Ge(P),visualMode:T.visualMode,visualLine:T.visualLine,visualBlock:T.visualBlock}}function Qt(y,T,S,P){var W=y.state.vim.sel,H=P?T:W.head,q=P?T:W.anchor,Y;return tt(S,T)&&(Y=S,S=T,T=Y),tt(H,q)?(H=ct(T,H),q=Yt(q,S)):(q=ct(T,q),H=Yt(H,S),H=me(H,0,-1),H.ch==-1&&H.line!=y.firstLine()&&(H=new Ne(H.line-1,Wt(y,H.line-1)))),[q,H]}function On(y,T,W){var P=y.state.vim;T=T||P.sel;var W=W||P.visualLine?"line":P.visualBlock?"block":"char",H=yr(y,T,W);y.setSelections(H.ranges,H.primary)}function yr(y,T,S,P){var W=Ge(T.head),H=Ge(T.anchor);if(S=="char"){var q=!P&&!tt(T.head,T.anchor)?1:0,Y=tt(T.head,T.anchor)?1:0;return W=me(T.head,0,q),H=me(T.anchor,0,Y),{ranges:[{anchor:H,head:W}],primary:0}}if(S=="line"){if(tt(T.head,T.anchor))W.ch=0,H.ch=Wt(y,H.line);else{H.ch=0;var Z=y.lastLine();W.line>Z&&(W.line=Z),W.ch=Wt(y,W.line)}return{ranges:[{anchor:H,head:W}],primary:0}}if(S=="block"){var re=Math.min(H.line,W.line),ae=H.ch,be=Math.max(H.line,W.line),ke=W.ch;ae<ke?ke+=1:ae+=1;for(var ve=be-re+1,we=W.line==re?0:ve-1,Oe=[],Le=0;Le<ve;Le++)Oe.push({anchor:new Ne(re+Le,ae),head:new Ne(re+Le,ke)});return{ranges:Oe,primary:we}}}function hr(y){var T=y.getCursor("head");return y.getSelection().length==1&&(T=ct(T,y.getCursor("anchor"))),T}function mn(y,T){var S=y.state.vim;T!==!1&&y.setCursor(se(y,S.sel.head)),Lt(y,S),S.visualMode=!1,S.visualLine=!1,S.visualBlock=!1,S.insertMode||We.signal(y,"vim-mode-change",{mode:"normal"})}function Wn(y,T,S){var P=y.getRange(T,S);if(/\n\s*$/.test(P)){var W=P.split(`
1404
- `);W.pop();for(var H,H=W.pop();W.length>0&&H&&p(H);H=W.pop())S.line--,S.ch=0;H?(S.line--,S.ch=Wt(y,S.line)):S.ch=0}}function Nn(y,T,S){T.ch=0,S.ch=0,S.line++}function Kt(y){if(!y)return 0;var T=y.search(/\S/);return T==-1?y.length:T}function ln(y,T,S){var P=T.inclusive,W=T.innerWord,H=T.bigWord,q=T.noSymbol,Y=T.multiline,Z=S||hr(y),re=y.getLine(Z.line),ae=re,be=Z.line,ke=be,ve=Z.ch,we,Oe=q?Do[0]:Bi[0];if(W&&/\s/.test(re.charAt(ve)))Oe=function(wn){return/\s/.test(wn)};else{for(;!Oe(re.charAt(ve));)if(ve++,ve>=re.length){if(!Y)return null;ve--,we=ci(y,Z,!0,H,!0);break}H?Oe=Bi[0]:(Oe=Do[0],Oe(re.charAt(ve))||(Oe=Do[1]))}for(var Le=ve,qe=ve;Oe(re.charAt(qe))&&qe>=0;)qe--;if(qe++,we)Le=we.to,ke=we.line,ae=y.getLine(ke),!ae&&Le==0&&Le++;else for(;Oe(re.charAt(Le))&&Le<re.length;)Le++;if(P){var at=Le,Qe=Z.ch<=qe&&/\s/.test(re.charAt(Z.ch));if(!Qe)for(;/\s/.test(ae.charAt(Le))&&Le<ae.length;)Le++;if(at==Le||Qe){for(var nt=qe;/\s/.test(re.charAt(qe-1))&&qe>0;)qe--;!qe&&!Qe&&(qe=nt)}}return{start:new Ne(be,qe),end:new Ne(ke,Le)}}function Dr(y,T,S){var P=T;if(!We.findMatchingTag||!We.findEnclosingTag)return{start:P,end:P};var W=We.findMatchingTag(y,T)||We.findEnclosingTag(y,T);return!W||!W.open||!W.close?{start:P,end:P}:S?{start:W.open.from,end:W.close.to}:{start:W.open.to,end:W.close.from}}function Gr(y,T,S){lt(T,S)||He.jumpList.add(y,T,S)}function Yr(y,T){He.lastCharacterSearch.increment=y,He.lastCharacterSearch.forward=T.forward,He.lastCharacterSearch.selectedCharacter=T.selectedCharacter}function Si(y,T,S,P){var W=Ge(y.getCursor()),H=S?1:-1,q=S?y.lineCount():-1,Y=W.ch,Z=W.line,re=y.getLine(Z),ae={lineText:re,nextCh:re.charAt(Y),lastCh:null,index:Y,symb:P,reverseSymb:(S?{")":"(","}":"{"}:{"(":")","{":"}"})[P],forward:S,depth:0,curMoveThrough:!1},be=$i[P];if(!be)return W;var ke=Ti[be].init,ve=Ti[be].isComplete;for(ke&&ke(ae);Z!==q&&T;){if(ae.index+=H,ae.nextCh=ae.lineText.charAt(ae.index),!ae.nextCh){if(Z+=H,ae.lineText=y.getLine(Z)||"",H>0)ae.index=0;else{var we=ae.lineText.length;ae.index=we>0?we-1:0}ae.nextCh=ae.lineText.charAt(ae.index)}ve(ae)&&(W.line=Z,W.ch=ae.index,T--)}return ae.nextCh||ae.curMoveThrough?new Ne(Z,ae.index):W}function ci(y,T,S,P,W){var H=T.line,q=T.ch,Y=y.getLine(H),Z=S?1:-1,re=P?Bi:Do;if(W&&Y==""){if(H+=Z,Y=y.getLine(H),!l(y,H))return null;q=S?0:Y.length}for(;;){if(W&&Y=="")return{from:0,to:0,line:H};for(var ae=Z>0?Y.length:-1,be=ae,ke=ae;q!=ae;){for(var ve=!1,we=0;we<re.length&&!ve;++we)if(re[we](Y.charAt(q))){for(be=q;q!=ae&&re[we](Y.charAt(q));)q+=Z;if(ke=q,ve=be!=ke,be==T.ch&&H==T.line&&ke==be+Z)continue;return{from:Math.min(be,ke+1),to:Math.max(be,ke),line:H}}ve||(q+=Z)}if(H+=Z,!l(y,H))return null;Y=y.getLine(H),q=Z>0?0:Y.length}}function Bn(y,T,S,P,W,H){var q=Ge(T),Y=[];(P&&!W||!P&&W)&&S++;for(var Z=!P||!W,re=0;re<S;re++){var ae=ci(y,T,P,H,Z);if(!ae){var be=Wt(y,y.lastLine());Y.push(P?{line:y.lastLine(),from:be,to:be}:{line:0,from:0,to:0});break}Y.push(ae),T=new Ne(ae.line,P?ae.to-1:ae.from)}var ke=Y.length!=S,ve=Y[0],we=Y.pop();return P&&!W?(!ke&&(ve.from!=q.ch||ve.line!=q.line)&&(we=Y.pop()),new Ne(we.line,we.from)):P&&W?new Ne(we.line,we.to-1):!P&&W?(!ke&&(ve.to!=q.ch||ve.line!=q.line)&&(we=Y.pop()),new Ne(we.line,we.to)):new Ne(we.line,we.from)}function ro(y,T,S,P,W){var H=T,q=new Ne(H.line+S.repeat-1,1/0),Y=y.clipPos(q);return Y.ch--,W||(P.lastHPos=1/0,P.lastHSPos=y.charCoords(Y,"div").left),q}function ui(y,T,S,P,W){for(var H=W||y.getCursor(),q=H.ch,Y,Z=0;Z<T;Z++){var re=y.getLine(H.line);if(Y=$n(q,re,P,S),Y==-1)return null;q=Y}return new Ne(y.getCursor().line,Y)}function Os(y,T){var S=y.getCursor().line;return se(y,new Ne(S,T-1))}function Xr(y,T,S,P){!x(S,xo)&&!Jt.test(S)||(T.marks[S]&&T.marks[S].clear(),T.marks[S]=y.setBookmark(P))}function $n(y,T,S,P,W){var H;return P?(H=T.indexOf(S,y+1),H!=-1):(H=T.lastIndexOf(S,y-1),H!=-1),H}function hi(y,T,S,P,W){function H(qe){return!/\S/.test(y.getLine(qe))}function q(qe,at,Qe){return Qe?H(qe)!=H(qe+at):!H(qe)&&H(qe+at)}function Y(qe){P=P>0?1:-1;var at=y.ace.session.getFoldLine(qe);at&&qe+P>at.start.row&&qe+P<at.end.row&&(P=(P>0?at.end.row:at.start.row)-qe)}var Z=T.line,re=y.firstLine(),ae=y.lastLine(),be,ke,ve=Z;if(P){for(;re<=ve&&ve<=ae&&S>0;)Y(ve),q(ve,P)&&S--,ve+=P;return new Ne(ve,0)}var we=y.state.vim;if(we.visualLine&&q(Z,1,!0)){var Oe=we.sel.anchor;q(Oe.line,-1,!0)&&(!W||Oe.line!=Z)&&(Z+=1)}var Le=H(Z);for(ve=Z;ve<=ae&&S;ve++)q(ve,1,!0)&&(!W||H(ve)!=Le)&&S--;for(ke=new Ne(ve,0),ve>ae&&!Le?Le=!0:W=!1,ve=Z;ve>re&&!((!W||H(ve)==Le||ve==Z)&&q(ve,-1,!0));ve--);return be=new Ne(ve,0),{start:be,end:ke}}function Jo(y,T,S,P,W){function H(re){re.pos+re.dir<0||re.pos+re.dir>=re.line.length?re.line=null:re.pos+=re.dir}function q(re,ae,be,ke){var ve=re.getLine(ae),we={line:ve,ln:ae,pos:be,dir:ke};if(we.line==="")return{ln:we.ln,pos:we.pos};var Oe=we.pos;for(H(we);we.line!==null;){if(Oe=we.pos,b(we.line[we.pos])){if(!W)return{ln:we.ln,pos:we.pos+1};for(H(we);we.line!==null&&p(we.line[we.pos]);)Oe=we.pos,H(we);return{ln:we.ln,pos:Oe+1}}H(we)}return{ln:we.ln,pos:Oe+1}}function Y(re,ae,be,ke){var ve=re.getLine(ae),we={line:ve,ln:ae,pos:be,dir:ke};if(we.line==="")return{ln:we.ln,pos:we.pos};var Oe=we.pos;for(H(we);we.line!==null;){if(!p(we.line[we.pos])&&!b(we.line[we.pos]))Oe=we.pos;else if(b(we.line[we.pos]))return W?p(we.line[we.pos+1])?{ln:we.ln,pos:we.pos+1}:{ln:we.ln,pos:Oe}:{ln:we.ln,pos:Oe};H(we)}return we.line=ve,W&&p(we.line[we.pos])?{ln:we.ln,pos:we.pos}:{ln:we.ln,pos:Oe}}for(var Z={ln:T.line,pos:T.ch};S>0;)P<0?Z=Y(y,Z.ln,Z.pos,P):Z=q(y,Z.ln,Z.pos,P),S--;return new Ne(Z.ln,Z.pos)}function di(y,T,S,P){function W(Z,re){if(re.pos+re.dir<0||re.pos+re.dir>=re.line.length){if(re.ln+=re.dir,!l(Z,re.ln)){re.line=null,re.ln=null,re.pos=null;return}re.line=Z.getLine(re.ln),re.pos=re.dir>0?0:re.line.length-1}else re.pos+=re.dir}function H(Z,re,ae,be){var Le=Z.getLine(re),ke=Le==="",ve={line:Le,ln:re,pos:ae,dir:be},we={ln:ve.ln,pos:ve.pos},Oe=ve.line==="";for(W(Z,ve);ve.line!==null;){if(we.ln=ve.ln,we.pos=ve.pos,ve.line===""&&!Oe)return{ln:ve.ln,pos:ve.pos};if(ke&&ve.line!==""&&!p(ve.line[ve.pos]))return{ln:ve.ln,pos:ve.pos};b(ve.line[ve.pos])&&!ke&&(ve.pos===ve.line.length-1||p(ve.line[ve.pos+1]))&&(ke=!0),W(Z,ve)}var Le=Z.getLine(we.ln);we.pos=0;for(var qe=Le.length-1;qe>=0;--qe)if(!p(Le[qe])){we.pos=qe;break}return we}function q(Z,re,ae,be){var Oe=Z.getLine(re),ke={line:Oe,ln:re,pos:ae,dir:be},ve={ln:ke.ln,pos:null},we=ke.line==="";for(W(Z,ke);ke.line!==null;){if(ke.line===""&&!we)return ve.pos!==null?ve:{ln:ke.ln,pos:ke.pos};if(!(!b(ke.line[ke.pos])||ve.pos===null||ke.ln===ve.ln&&ke.pos+1===ve.pos))return ve;ke.line!==""&&!p(ke.line[ke.pos])&&(we=!1,ve={ln:ke.ln,pos:ke.pos}),W(Z,ke)}var Oe=Z.getLine(ve.ln);ve.pos=0;for(var Le=0;Le<Oe.length;++Le)if(!p(Oe[Le])){ve.pos=Le;break}return ve}for(var Y={ln:T.line,pos:T.ch};S>0;)P<0?Y=q(y,Y.ln,Y.pos,P):Y=H(y,Y.ln,Y.pos,P),S--;return new Ne(Y.ln,Y.pos)}function kn(y,T,S,P){var W=T,H,q,Y={"(":/[()]/,")":/[()]/,"[":/[[\]]/,"]":/[[\]]/,"{":/[{}]/,"}":/[{}]/,"<":/[<>]/,">":/[<>]/}[S],Z={"(":"(",")":"(","[":"[","]":"[","{":"{","}":"{","<":"<",">":"<"}[S],re=y.getLine(W.line).charAt(W.ch),ae=re===Z?1:0;if(H=y.scanForBracket(new Ne(W.line,W.ch+ae),-1,void 0,{bracketRegex:Y}),q=y.scanForBracket(new Ne(W.line,W.ch+ae),1,void 0,{bracketRegex:Y}),!H||!q)return null;if(H=H.pos,q=q.pos,H.line==q.line&&H.ch>q.ch||H.line>q.line){var be=H;H=q,q=be}return P?q.ch+=1:H.ch+=1,{start:H,end:q}}function dr(y,T,S,P){var W=Ge(T),H=y.getLine(W.line),q=H.split(""),Y,Z,re,ae,be=q.indexOf(S);if(W.ch<be)W.ch=be;else if(be<W.ch&&q[W.ch]==S){var ke=/string/.test(y.getTokenTypeAt(me(T,0,1))),ve=/string/.test(y.getTokenTypeAt(T)),we=ke&&!ve;we||(Z=W.ch,--W.ch)}if(q[W.ch]==S&&!Z)Y=W.ch+1;else for(re=W.ch;re>-1&&!Y;re--)q[re]==S&&(Y=re+1);if(Y&&!Z)for(re=Y,ae=q.length;re<ae&&!Z;re++)q[re]==S&&(Z=re);return!Y||!Z?{start:W,end:W}:(P&&(--Y,++Z),{start:new Ne(W.line,Y),end:new Ne(W.line,Z)})}function pi(){}function An(y){var T=y.state.vim;return T.searchState_||(T.searchState_=new pi)}function Tn(y){return fi(y,"/")}function br(y){return mo(y,"/")}function fi(y,T){var S=mo(y,T)||[];if(!S.length)return[];var P=[];if(S[0]===0){for(var W=0;W<S.length;W++)typeof S[W]=="number"&&P.push(y.substring(S[W]+1,S[W+1]));return P}}function mo(y,T){T||(T="/");for(var S=!1,P=[],W=0;W<y.length;W++){var H=y.charAt(W);!S&&H==T&&P.push(W),S=!S&&H=="\\"}return P}function vo(y){for(var T="|(){",S="}",P=!1,W=[],H=-1;H<y.length;H++){var q=y.charAt(H)||"",Y=y.charAt(H+1)||"",Z=Y&&T.indexOf(Y)!=-1;P?((q!=="\\"||!Z)&&W.push(q),P=!1):q==="\\"?(P=!0,Y&&S.indexOf(Y)!=-1&&(Z=!0),(!Z||Y==="\\")&&W.push(q)):(W.push(q),Z&&Y!=="\\"&&W.push("\\"))}return W.join("")}function es(y){for(var T=!1,S=[],P=-1;P<y.length;P++){var W=y.charAt(P)||"",H=y.charAt(P+1)||"";ji[W+H]?(S.push(ji[W+H]),P++):T?(S.push(W),T=!1):W==="\\"?(T=!0,i(H)||H==="$"?S.push("$"):H!=="/"&&H!=="\\"&&S.push("\\")):(W==="$"&&S.push("$"),S.push(W),H==="/"&&S.push("\\"))}return S.join("")}function Zr(y){for(var T=new We.StringStream(y),S=[];!T.eol();){for(;T.peek()&&T.peek()!="\\";)S.push(T.next());var P=!1;for(var W in kr)if(T.match(W,!0)){P=!0,S.push(kr[W]);break}P||S.push(T.next())}return S.join("")}function gi(y,T,S){var P=He.registerController.getRegister("/");if(P.setText(y),y instanceof RegExp)return y;var W=br(y),H,q;if(!W.length)H=y;else{H=y.substring(0,W[0]);var Y=y.substring(W[0]);q=Y.indexOf("i")!=-1}if(!H)return null;k("pcre")||(H=vo(H)),S&&(T=/^[^A-Z]*$/.test(H));var Z=new RegExp(H,T||q?"im":"m");return Z}function Pr(y){typeof y=="string"&&(y=document.createElement(y));for(var T,S=1;S<arguments.length;S++)if(T=arguments[S])if(typeof T!="object"&&(T=document.createTextNode(T)),T.nodeType)y.appendChild(T);else for(var P in T)Object.prototype.hasOwnProperty.call(T,P)&&(P[0]==="$"?y.style[P.slice(1)]=T[P]:y.setAttribute(P,T[P]));return y}function Ot(y,T){var S=Pr("div",{$color:"red",$whiteSpace:"pre",class:"cm-vim-message"},T);y.openNotification?y.openNotification(S,{bottom:!0,duration:5e3}):alert(S.innerText)}function Mo(y,T){return Pr("div",{$display:"flex"},Pr("span",{$fontFamily:"monospace",$whiteSpace:"pre",$flex:1},y,Pr("input",{type:"text",autocorrect:"off",autocapitalize:"off",spellcheck:"false",$width:"100%"})),T&&Pr("span",{$color:"#888"},T))}function wr(y,T){if(Qr.length){T.value||(T.value=""),Sn=T;return}var S=Mo(T.prefix,T.desc);if(y.openDialog)y.openDialog(S,T.onClose,{onKeyDown:T.onKeyDown,onKeyUp:T.onKeyUp,bottom:!0,selectValueOnOpen:!1,value:T.value});else{var P="";typeof T.prefix!="string"&&T.prefix&&(P+=T.prefix.textContent),T.desc&&(P+=" "+T.desc),T.onClose(prompt(P,""))}}function ce(y,T){if(y instanceof RegExp&&T instanceof RegExp){for(var S=["global","multiline","ignoreCase","source"],P=0;P<S.length;P++){var W=S[P];if(y[W]!==T[W])return!1}return!0}return!1}function ze(y,T,S,P){if(T){var W=An(y),H=gi(T,!!S,!!P);if(H)return _t(y,H),ce(H,W.getQuery())||W.setQuery(H),H}}function Pe(y){if(y.source.charAt(0)=="^")var T=!0;return{token:function(S){if(T&&!S.sol()){S.skipToEnd();return}var P=S.match(y,!1);if(P)return P[0].length==0?(S.next(),"searching"):!S.sol()&&(S.backUp(1),!y.exec(S.next()+P[0]))?(S.next(),null):(S.match(y),"searching");for(;!S.eol()&&(S.next(),!S.match(y,!1)););},query:y}}function _t(y,T){clearTimeout(Ar);var S=An(y);S.highlightTimeout=Ar,Ar=setTimeout(function(){if(y.state.vim){var P=An(y);P.highlightTimeout=null;var W=P.getOverlay();(!W||T!=W.query)&&(W&&y.removeOverlay(W),W=Pe(T),y.addOverlay(W),y.showMatchesOnScrollbar&&(P.getScrollbarAnnotate()&&P.getScrollbarAnnotate().clear(),P.setScrollbarAnnotate(y.showMatchesOnScrollbar(T))),P.setOverlay(W))}},50)}function Gt(y,T,S,P){return P===void 0&&(P=1),y.operation(function(){for(var W=y.getCursor(),H=y.getSearchCursor(S,W),q=0;q<P;q++){var Y=H.find(T);if(q==0&&Y&&lt(H.from(),W)){var Z=T?H.from():H.to();Y=H.find(T),Y&&!Y[0]&&lt(H.from(),Z)&&y.getLine(Z.line).length==Z.ch&&(Y=H.find(T))}if(!Y&&(H=y.getSearchCursor(S,T?new Ne(y.lastLine()):new Ne(y.firstLine(),0)),!H.find(T)))return}return H.from()})}function Ht(y,T,S,P,W){return P===void 0&&(P=1),y.operation(function(){var H=y.getCursor(),q=y.getSearchCursor(S,H),Y=q.find(!T);!W.visualMode&&Y&&lt(q.from(),H)&&q.find(!T);for(var Z=0;Z<P;Z++)if(Y=q.find(T),!Y&&(q=y.getSearchCursor(S,T?new Ne(y.lastLine()):new Ne(y.firstLine(),0)),!q.find(T)))return;return[q.from(),q.to()]})}function xr(y){var T=An(y);T.highlightTimeout&&(clearTimeout(T.highlightTimeout),T.highlightTimeout=null),y.removeOverlay(An(y).getOverlay()),T.setOverlay(null),T.getScrollbarAnnotate()&&(T.getScrollbarAnnotate().clear(),T.setScrollbarAnnotate(null))}function pr(y,T,S){return typeof y!="number"&&(y=y.line),T instanceof Array?x(y,T):typeof S=="number"?y>=T&&y<=S:y==T}function zn(y){var T=y.ace.renderer;return{top:T.getFirstFullyVisibleRow(),bottom:T.getLastFullyVisibleRow()}}function Cr(y,T,S){if(S=="'"||S=="`")return He.jumpList.find(y,-1)||new Ne(0,0);if(S==".")return vn(y);var P=T.marks[S];return P&&P.find()}function vn(y){if(y.getLastEditEnd)return y.getLastEditEnd();for(var T=y.doc.history.done,S=T.length;S--;)if(T[S].changes)return Ge(T[S].changes[0].to)}function io(y,T,S,P,W,H,q,Y,Z){function re(){y.operation(function(){for(;!Oe;)ae(),ke();ve()})}function ae(){var Qe=y.getRange(H.from(),H.to()),nt=Qe.replace(q,Y),wn=H.to().line;H.replace(nt),qe=H.to().line,W+=qe-wn,at=qe<wn}function be(){var Qe=Le&&Ge(H.to()),nt=H.findNext();return nt&&!nt[0]&&Qe&&lt(H.from(),Qe)&&(nt=H.findNext()),nt}function ke(){for(;be()&&pr(H.from(),P,W);)if(!(!S&&H.from().line==qe&&!at)){y.scrollIntoView(H.from(),30),y.setSelection(H.from(),H.to()),Le=H.from(),Oe=!1;return}Oe=!0}function ve(Qe){if(Qe&&Qe(),y.focus(),Le){y.setCursor(Le);var nt=y.state.vim;nt.exMode=!1,nt.lastHPos=nt.lastHSPos=Le.ch}Z&&Z()}function we(Qe,nt,wn){We.e_stop(Qe);var ut=z(Qe);switch(ut){case"y":ae(),ke();break;case"n":ke();break;case"a":var Mn=Z;Z=void 0,y.operation(re),Z=Mn;break;case"l":ae();case"q":case"<Esc>":case"<C-c>":case"<C-[>":ve(wn)}return Oe&&ve(wn),!0}y.state.vim.exMode=!0;var Oe=!1,Le,qe,at;if(ke(),Oe){Ot(y,"No matches for "+q.source);return}if(!T){re(),Z&&Z();return}wr(y,{prefix:Pr("span","replace with ",Pr("strong",Y)," (y/n/a/q/l)"),onKeyDown:we})}function Fr(y,T){var S=y.state.vim,P=He.macroModeState,W=He.registerController.getRegister("."),H=P.isPlaying,q=P.lastInsertModeChanges;H||(y.off("change",Io),S.insertEnd&&S.insertEnd.clear(),S.insertEnd=null,We.off(y.getInputField(),"keydown",Fs)),!H&&S.insertModeRepeat>1&&(ba(y,S,S.insertModeRepeat-1,!0),S.lastEditInputState.repeatOverride=S.insertModeRepeat),delete S.insertModeRepeat,S.insertMode=!1,T||y.setCursor(y.getCursor().line,y.getCursor().ch-1),y.setOption("keyMap","vim"),y.setOption("disableInput",!0),y.toggleOverwrite(!1),W.setText(q.changes.join("")),We.signal(y,"vim-mode-change",{mode:"normal"}),P.isRecording&&fr(P)}function ts(y){Dn.unshift(y)}function Ns(y,T,S,P,W){var H={keys:y,type:T};H[T]=S,H[T+"Args"]=P;for(var q in W)H[q]=W[q];ts(H)}function Ds(y,T,S,P){var W=He.registerController.getRegister(P);if(P==":"){W.keyBuffer[0]&&Er.processCommand(y,W.keyBuffer[0]),S.isPlaying=!1;return}var H=W.keyBuffer,q=0;S.isPlaying=!0,S.replaySearchQueries=W.searchQueries.slice(0);for(var Y=0;Y<H.length;Y++)for(var Z=H[Y],re,ae;Z;)if(re=/<\w+-.+?>|<\w+>|./.exec(Z),ae=re[0],Z=Z.substring(re.index+ae.length),bt.handleKey(y,ae,"macro"),T.insertMode){var be=W.insertModeChanges[q++].changes;He.macroModeState.lastInsertModeChanges.changes=be,ss(y,be,1),Fr(y)}S.isPlaying=!1}function ns(y,T){if(!y.isPlaying){var S=y.latestRegister,P=He.registerController.getRegister(S);P&&P.pushText(T)}}function fr(y){if(!y.isPlaying){var T=y.latestRegister,S=He.registerController.getRegister(T);S&&S.pushInsertModeChanges&&S.pushInsertModeChanges(y.lastInsertModeChanges)}}function Ps(y,T){if(!y.isPlaying){var S=y.latestRegister,P=He.registerController.getRegister(S);P&&P.pushSearchQuery&&P.pushSearchQuery(T)}}function Io(y,T){var S=He.macroModeState,P=S.lastInsertModeChanges;if(!S.isPlaying)for(var W=y.state.vim;T;){if(P.expectCursorActivityForChange=!0,P.ignoreCount>1)P.ignoreCount--;else if(T.origin=="+input"||T.origin=="paste"||T.origin===void 0){var H=y.listSelections().length;H>1&&(P.ignoreCount=H);var q=T.text.join(`
1405
- `);if(P.maybeReset&&(P.changes=[],P.maybeReset=!1),q)if(y.state.overwrite&&!/\n/.test(q))P.changes.push([q]);else{if(q.length>1){var Y=W&&W.insertEnd&&W.insertEnd.find(),Z=y.getCursor();if(Y&&Y.line==Z.line){var re=Y.ch-Z.ch;re>0&&re<q.length&&(P.changes.push([q,re]),q="")}}q&&P.changes.push(q)}}T=T.next}}function rs(y){var T=y.state.vim;if(T.insertMode){var S=He.macroModeState;if(S.isPlaying)return;var P=S.lastInsertModeChanges;P.expectCursorActivityForChange?P.expectCursorActivityForChange=!1:(P.maybeReset=!0,T.insertEnd&&T.insertEnd.clear(),T.insertEnd=y.setBookmark(y.getCursor(),{insertLeft:!0}))}else y.curOp.isVimOp||is(y,T)}function is(y,T,S){var P=y.getCursor("anchor"),W=y.getCursor("head");if(T.visualMode&&!y.somethingSelected()?mn(y,!1):!T.visualMode&&!T.insertMode&&y.somethingSelected()&&(T.visualMode=!0,T.visualLine=!1,We.signal(y,"vim-mode-change",{mode:"visual"})),T.visualMode){var H=tt(W,P)?0:-1,q=tt(W,P)?-1:0;W=me(W,0,H),P=me(P,0,q),T.sel={anchor:P,head:W},Xr(y,T,"<",ct(W,P)),Xr(y,T,">",Yt(W,P))}else!T.insertMode&&!S&&(T.lastHPos=y.getCursor().ch)}function yo(y,T){this.keyName=y,this.key=T.key,this.ctrlKey=T.ctrlKey,this.altKey=T.altKey,this.metaKey=T.metaKey,this.shiftKey=T.shiftKey}function Fs(y){var T=He.macroModeState,S=T.lastInsertModeChanges,P=We.keyName?We.keyName(y):y.key;P&&(P.indexOf("Delete")!=-1||P.indexOf("Backspace")!=-1)&&(S.maybeReset&&(S.changes=[],S.maybeReset=!1),S.changes.push(new yo(P,y)))}function ba(y,T,S,P){function W(){Y?jn.processAction(y,T,T.lastEditActionCommand):jn.evalInput(y,T)}function H(ae){if(q.lastInsertModeChanges.changes.length>0){ae=T.lastEditActionCommand?ae:1;var be=q.lastInsertModeChanges;ss(y,be.changes,ae)}}var q=He.macroModeState;q.isPlaying=!0;var Y=!!T.lastEditActionCommand,Z=T.inputState;if(T.inputState=T.lastEditInputState,Y&&T.lastEditActionCommand.interlaceInsertRepeat)for(var re=0;re<S;re++)W(),H(1);else P||W(),H(S);T.inputState=Z,T.insertMode&&!P&&Fr(y),q.isPlaying=!1}function os(y,T){We.lookupKey(T,"vim-insert",function(S){return typeof S=="string"?We.commands[S](y):S(y),!0})}function ss(y,T,S){var P=y.getCursor("head"),W=He.macroModeState.lastInsertModeChanges.visualBlock;W&&(Mr(y,P,W+1),S=y.listSelections().length,y.setCursor(P));for(var H=0;H<S;H++){W&&y.setCursor(me(P,H,0));for(var q=0;q<T.length;q++){var Y=T[q];if(Y instanceof yo)os(y,Y.keyName);else if(typeof Y=="string")y.replaceSelection(Y);else{var Z=y.getCursor(),re=me(Z,0,Y[0].length-(Y[1]||0));y.replaceRange(Y[0],Z,Y[1]?Z:re),y.setCursor(re)}}}W&&y.setCursor(me(P,0,1))}function Ws(y,T,S,P){T.length>1&&T[0]=="n"&&(T=T.replace("numpad","")),T=Wr[T]||T;var W="";if(S.ctrlKey&&(W+="C-"),S.altKey&&(W+="A-"),(W||T.length>1)&&S.shiftKey&&(W+="S-"),P&&!P.expectLiteralNext&&T.length==1){if(Zn.keymap&&T in Zn.keymap)(Zn.remapCtrl!==!1||!W)&&(T=Zn.keymap[T]);else if(T.charCodeAt(0)>255){var H=S.code&&S.code.slice(-1)||"";S.shiftKey||(H=H.toLowerCase()),H&&(T=H)}}return W+=T,W.length>1&&(W="<"+W+">"),W}function as(y){var T=new y.constructor;return Object.keys(y).forEach(function(S){if(S!="insertEnd"){var P=y[S];Array.isArray(P)?P=P.slice():P&&typeof P=="object"&&P.constructor!=Object&&(P=as(P)),T[S]=P}}),y.sel&&(T.sel={head:y.sel.head&&Ge(y.sel.head),anchor:y.sel.anchor&&Ge(y.sel.anchor)}),T}function Eo(y,T,S){var P=!1,W=bt.maybeInitVimState_(y),H=W.visualBlock||W.wasInVisualBlock,q=y.ace.inMultiSelectMode;if(W.wasInVisualBlock&&!q?W.wasInVisualBlock=!1:q&&W.visualBlock&&(W.wasInVisualBlock=!0),T=="<Esc>"&&!W.insertMode&&!W.visualMode&&q)y.ace.exitMultiSelectMode();else if(H||!q||y.ace.inVirtualSelectionMode)P=bt.handleKey(y,T,S);else{var Y=as(W),Z=W.inputState.changeQueueList||[];y.operation(function(){y.curOp.isVimOp=!0;var re=0;y.ace.forEachSelection(function(){var ae=y.ace.selection;y.state.vim.lastHPos=ae.$desiredColumn==null?ae.lead.column:ae.$desiredColumn,y.state.vim.inputState.changeQueue=Z[re];var be=y.getCursor("head"),ke=y.getCursor("anchor"),ve=tt(be,ke)?0:-1,we=tt(be,ke)?-1:0;be=me(be,0,ve),ke=me(ke,0,we),y.state.vim.sel.head=be,y.state.vim.sel.anchor=ke,P=Mi(y,T,S),ae.$desiredColumn=y.state.vim.lastHPos==-1?null:y.state.vim.lastHPos,y.ace.inVirtualSelectionMode&&(Z[re]=y.state.vim.inputState.changeQueue),y.virtualSelectionMode()&&(y.state.vim=as(Y)),re++}),y.curOp.cursorActivity&&!P&&(y.curOp.cursorActivity=!1),W.status=y.state.vim.status,y.state.vim=W,W.inputState.changeQueueList=Z,W.inputState.changeQueue=null},!0)}return P&&!W.visualMode&&!W.insert&&W.visualMode!=y.somethingSelected()&&is(y,W,!0),P}function Wi(y,T){T.off("beforeEndOperation",Wi);var S=T.state.cm.vimCmd;S&&T.execCommand(S.exec?S:S.name,S.args),T.curOp=T.prevOp}var gr=e("../range").Range,bo=e("../lib/event_emitter").EventEmitter,oo=e("../lib/dom"),wa=e("../lib/oop"),ul=e("../lib/keys"),Ro=e("../lib/event"),so=e("../search").Search,Lo=e("../lib/useragent"),ls=e("../search_highlight").SearchHighlight,Oo=e("../commands/multi_select_commands"),xa=e("../mode/text").Mode.prototype.tokenRe,wo=e("../ext/hardwrap").hardWrap;e("../multi_select");var We=function(y){this.ace=y,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(y,T){if(!(this instanceof Ne))return new Ne(y,T);this.line=y,this.ch=T},We.defineOption=function(y,T,S){},We.commands={redo:function(y){y.ace.redo()},undo:function(y){y.ace.undo()},newlineAndIndent:function(y){y.ace.insert(`
1406
- `)},goLineLeft:function(y){y.ace.selection.moveCursorLineStart()},goLineRight:function(y){y.ace.selection.moveCursorLineEnd()}},We.keyMap={},We.addClass=We.rmClass=function(){},We.e_stop=We.e_preventDefault=Ro.stopEvent,We.keyName=function(y){var T=ul[y.keyCode]||y.key||"";return T.length==1&&(T=T.toUpperCase()),T=Ro.getModifierString(y).replace(/(^|-)\w/g,function(S){return S.toUpperCase()})+T,T},We.keyMap.default=function(y){return function(T){var S=T.ace.commands.commandKeyBinding[y.toLowerCase()];return S&&T.ace.execCommand(S)!==!1}},We.lookupKey=function y(T,S,P){S||(S="default"),typeof S=="string"&&(S=We.keyMap[S]||We.keyMap.default);var W=typeof S=="function"?S(T):S[T];if(W===!1)return"nothing";if(W==="...")return"multi";if(W!=null&&P(W))return"handled";if(S.fallthrough){if(!Array.isArray(S.fallthrough))return y(T,S.fallthrough,P);for(var H=0;H<S.fallthrough.length;H++){var q=y(T,S.fallthrough[H],P);if(q)return q}}},We.findMatchingTag=function(y,T){return y.findMatchingTag(T)},We.findEnclosingTag=function(y,T){},We.signal=function(y,T,S){return y._signal(T,S)},We.on=Ro.addListener,We.off=Ro.removeListener,We.isWordChar=function(y){return y<""?/^\w$/.test(y):(xa.lastIndex=0,xa.test(y))},(function(){wa.implement(We.prototype,bo),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(S){this.$lineHandleChanges&&this.$lineHandleChanges.push(S);var P={text:S.action[0]=="i"?S.lines:[]},W=this.curOp=this.curOp||{};W.changeHandlers||(W.changeHandlers=this._eventRegistry.change&&this._eventRegistry.change.slice()),W.lastChange?W.lastChange.next=W.lastChange=P:W.lastChange=W.change=P,this.$updateMarkers(S)},this.onSelectionChange=function(){var S=this.curOp=this.curOp||{};S.cursorActivityHandlers||(S.cursorActivityHandlers=this._eventRegistry.cursorActivity&&this._eventRegistry.cursorActivity.slice()),this.curOp.cursorActivity=!0,this.ace.inMultiSelectMode&&this.ace.keyBinding.removeKeyboardHandler(Oo.keyboardHandler)},this.operation=function(S,P){if(!P&&this.curOp||P&&this.curOp&&this.curOp.force)return S();if((P||!this.ace.curOp)&&this.curOp&&this.onBeforeEndOperation(),!this.ace.curOp){var W=this.ace.prevOp;this.ace.startOperation({command:{name:"vim",scrollIntoView:"cursor"}})}var H=this.curOp=this.curOp||{};this.curOp.force=P;var q=S();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(),!H.cursorActivity&&!H.lastChange&&W&&(this.ace.prevOp=W)),(P||!this.ace.curOp)&&this.curOp&&this.onBeforeEndOperation(),q},this.onBeforeEndOperation=function(){var S=this.curOp;S&&(S.change&&this.signal("change",S.change,S),S&&S.cursorActivity&&this.signal("cursorActivity",null,S),this.curOp=null)},this.signal=function(S,P,W){var H=W?W[S+"Handlers"]:(this._eventRegistry||{})[S];if(H){H=H.slice();for(var q=0;q<H.length;q++)H[q](this,P)}},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(S,P){typeof S=="object"&&(P=S.ch,S=S.line);var W=!this.curOp&&!this.ace.inVirtualSelectionMode;this.ace.inVirtualSelectionMode||this.ace.exitMultiSelectMode(),this.ace.session.unfold({row:S,column:P}),this.ace.selection.moveTo(S,P),W&&(this.ace.renderer.scrollCursorIntoView(),this.ace.endOperation())},this.getCursor=function(S){var P=this.ace.selection,W=S=="anchor"?P.isEmpty()?P.lead:P.anchor:S=="head"||!S?P.lead:P.getRange()[S];return m(W)},this.listSelections=function(S){var P=this.ace.multiSelect.rangeList.ranges;return!P.length||this.ace.inVirtualSelectionMode?[{anchor:this.getCursor("anchor"),head:this.getCursor("head")}]:P.map(function(W){return{anchor:this.clipPos(m(W.cursor==W.end?W.start:W.end)),head:this.clipPos(m(W.cursor))}},this)},this.setSelections=function(S,P){var W=this.ace.multiSelect,H=S.map(function(re){var ae=g(re.anchor),be=g(re.head),ke=gr.comparePoints(ae,be)<0?new gr.fromPoints(ae,be):new gr.fromPoints(be,ae);return ke.cursor=gr.comparePoints(ke.start,be)?ke.end:ke.start,ke});if(this.ace.inVirtualSelectionMode){this.ace.selection.fromOrientedRange(H[0]);return}P?H[P]&&H.push(H.splice(P,1)[0]):H=H.reverse(),W.toSingleRange(H[0].clone());for(var q=this.ace.session,Y=0;Y<H.length;Y++){var Z=q.$clipRangeToDocument(H[Y]);W.addRange(Z)}},this.setSelection=function(S,P,W){var H=this.ace.selection;H.moveTo(S.line,S.ch),H.selectTo(P.line,P.ch),W&&W.origin=="*mouse"&&this.onBeforeEndOperation()},this.somethingSelected=function(S){return!this.ace.selection.isEmpty()},this.clipPos=function(S){var P=this.ace.session.$clipPositionToDocument(S.line,S.ch);return m(P)},this.foldCode=function(S){this.ace.session.$toggleFoldWidget(S.line,{})},this.markText=function(S){return{clear:function(){},find:function(){}}},this.$updateMarkers=function(S){var P=S.action=="insert",W=S.start,H=S.end,q=(H.row-W.row)*(P?1:-1),Y=(H.column-W.column)*(P?1:-1);P&&(H=W);for(var Z in this.marks){var re=this.marks[Z],ae=gr.comparePoints(re,W);if(!(ae<0)){if(ae===0&&P)if(!re.$insertRight)ae=1;else{if(re.bias!=1){re.bias=-1;continue}ae=1}var be=P?ae:gr.comparePoints(re,H);if(be>0){re.row+=q,re.column+=re.row==H.row?Y:0;continue}!P&&be<=0&&(re.row=W.row,re.column=W.column,be===0&&(re.bias=1))}}};var y=function(S,P,W,H){this.cm=S,this.id=P,this.row=W,this.column=H,S.marks[this.id]=this};y.prototype.clear=function(){delete this.cm.marks[this.id]},y.prototype.find=function(){return m(this)},this.setBookmark=function(S,P){var W=new y(this,this.$uid++,S.line,S.ch);return(!P||!P.insertLeft)&&(W.$insertRight=!0),this.marks[W.id]=W,W},this.moveH=function(S,P){if(P=="char"){var W=this.ace.selection;W.clearSelection(),W.moveCursorBy(0,S)}},this.findPosV=function(S,P,W,H){if(W=="page"){var q=this.ace.renderer,Y=q.layerConfig;P*=Math.floor(Y.height/Y.lineHeight),W="line"}if(W=="line"){var Z=this.ace.session.documentToScreenPosition(S.line,S.ch);H!=null&&(Z.column=H),Z.row+=P,Z.row=Math.min(Math.max(0,Z.row),this.ace.session.getScreenLength()-1);var re=this.ace.session.screenToDocumentPosition(Z.row,Z.column);return m(re)}debugger},this.charCoords=function(S,P){if(P=="div"||!P){var W=this.ace.session.documentToScreenPosition(S.line,S.ch);return{left:W.column,top:W.row}}if(P=="local"){var H=this.ace.renderer,W=this.ace.session.documentToScreenPosition(S.line,S.ch),q=H.layerConfig.lineHeight,Y=H.layerConfig.characterWidth,Z=q*W.row;return{left:W.column*Y,top:Z,bottom:Z+q}}},this.coordsChar=function(S,P){var W=this.ace.renderer;if(P=="local"){var H=Math.max(0,Math.floor(S.top/W.lineHeight)),q=Math.max(0,Math.floor(S.left/W.characterWidth)),Y=W.session.screenToDocumentPosition(H,q);return m(Y)}if(P=="div")throw"not implemented"},this.getSearchCursor=function(S,P,W){var H=!1,q=!1;S instanceof RegExp&&!S.global&&(H=!S.ignoreCase,S=S.source,q=!0),S=="\\n"&&(S=`
1399
+ `+I)}s++}else if(c&&/\S/.test(b)&&i!=s){var _=p.getLine(i+1);if(_&&/\S/.test(_)){var k=b.replace(/\s+$/,""),C=_.replace(/^\s+/,""),L=k+" "+C,x=l(L,u,5);if(x&&x.start>k.length||L.length<u){var D=new w(i,k.length,i+1,_.length-C.length);p.replace(D," "),i--,s--}else k.length<b.length&&p.remove(new w(i,k.length,i,b.length))}}i++}}function m(d){if(d.command.name=="insertstring"&&/\S/.test(d.args)){var a=d.editor,l=a.selection.cursor;if(l.column<=a.renderer.$printMarginColumn)return;var u=a.session.$undoManager.$lastDelta;g(a,{startRow:l.row,endRow:l.row,allowMerge:!1}),u!=a.session.$undoManager.$lastDelta&&a.session.markUndoGroup()}}var w=e("../range").Range,h=e("../editor").Editor;e("../config").defineOptions(h.prototype,"editor",{hardWrap:{set:function(d){d?this.commands.on("afterExec",m):this.commands.off("afterExec",m)},value:!1}}),r.hardWrap=g}),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 g(y){return{row:y.line,column:y.ch}}function m(y){return new Ne(y.row,y.column)}function w(y,T,S){if(T.line===S.line&&T.ch>=S.ch-1){var P=y.getLine(T.line),W=P.charCodeAt(T.ch);55296<=W&&W<=55551&&(S.ch+=1)}return{start:T,end:S}}function h(y){y.setOption("disableInput",!0),y.setOption("showCursorWhenSelecting",!1),We.signal(y,"vim-mode-change",{mode:"normal"}),y.on("cursorActivity",rs),L(y),We.on(y.getInputField(),"paste",a(y))}function d(y){y.setOption("disableInput",!1),y.off("cursorActivity",rs),We.off(y.getInputField(),"paste",a(y)),y.state.vim=null,Ar&&clearTimeout(Ar)}function a(y){var T=y.state.vim;return T.onPasteFn||(T.onPasteFn=function(){T.insertMode||(y.setCursor(me(y.getCursor(),0,1)),Un.enterInsertMode(y,{},T))}),T.onPasteFn}function l(y,T){return T>=y.firstLine()&&T<=y.lastLine()}function u(y){return/^[a-z]$/.test(y)}function c(y){return"()[]{}".indexOf(y)!=-1}function i(y){return ka.test(y)}function s(y){return rn.test(y)}function p(y){return/^\s*$/.test(y)}function b(y){return".?!".indexOf(y)!=-1}function x(y,T){for(var S=0;S<T.length;S++)if(T[S]==y)return!0;return!1}function I(y,T,S,P,W){if(T===void 0&&!W)throw Error("defaultValue is required unless callback is provided");if(S||(S="string"),Ut[y]={type:S,defaultValue:T,callback:W},P)for(var H=0;H<P.length;H++)Ut[P[H]]=Ut[y];T&&_(y,T)}function _(y,T,S,P){var W=Ut[y];P=P||{};var H=P.scope;if(!W)return new Error("Unknown option: "+y);if(W.type=="boolean"){if(T&&T!==!0)return new Error("Invalid argument: "+y+"="+T);T!==!1&&(T=!0)}W.callback?(H!=="local"&&W.callback(T,void 0),H!=="global"&&S&&W.callback(T,S)):(H!=="local"&&(W.value=W.type=="boolean"?!!T:T),H!=="global"&&S&&(S.state.vim.options[y]={value:T}))}function k(y,T,S){var P=Ut[y];S=S||{};var W=S.scope;if(!P)return new Error("Unknown option: "+y);if(P.callback){var H=T&&P.callback(void 0,T);return W!=="global"&&H!==void 0?H:W!=="local"?P.callback():void 0}var H=W!=="global"&&T&&T.state.vim.options[y];return(H||W!=="local"&&P||{}).value}function C(){this.latestRegister=void 0,this.isPlaying=!1,this.isRecording=!1,this.replaySearchQueries=[],this.onRecordingDone=void 0,this.lastInsertModeChanges=Hn()}function L(y){return y.state.vim||(y.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}),y.state.vim}function D(){He={searchQuery:null,searchIsReversed:!1,lastSubstituteReplacePart:void 0,jumpList:zi(),macroModeState:new C,lastCharacterSearch:{increment:0,forward:!0,selectedCharacter:""},registerController:new K({}),searchHistoryController:new Q,exCommandHistoryController:new Q};for(var y in Ut){var T=Ut[y];T.value=T.defaultValue}}function R(y){function T(Y){typeof Y=="string"?_n.value=Y:_n=null}if(y[0]=="<"){var S=y.toLowerCase().slice(1,-1),P=S.split("-");if(S=P.pop()||"",S=="lt")y="<";else if(S=="space")y=" ";else if(S=="cr")y=`
1400
+ `;else if(Hi[S]){var W=_n.value,H={key:Hi[S],target:{value:W,selectionEnd:W.length,selectionStart:W.length}};_n.onKeyDown&&_n.onKeyDown(H,_n.value,T),_n&&_n.onKeyUp&&_n.onKeyUp(H,_n.value,T);return}}if(y==`
1401
+ `){var q=_n;_n=null,q.onClose&&q.onClose(q.value)}else _n.value=(_n.value||"")+y}function E(y,T,S){var P=hn;if(S){if(Qr.indexOf(S)!=-1)return;Qr.push(S),hn=S.noremap!=0}try{for(var W=L(y),H=/<(?:[CSMA]-)*\w+>|./gi,q;q=H.exec(T);){var Y=q[0],Z=W.insertMode;if(_n){R(Y);continue}var re=bt.handleKey(y,Y,"mapping");if(!re&&Z&&W.insertMode){if(Y[0]=="<"){var ae=Y.toLowerCase().slice(1,-1),be=ae.split("-");if(ae=be.pop()||"",ae=="lt")Y="<";else if(ae=="space")Y=" ";else if(ae=="cr")Y=`
1402
+ `;else{if(Hi.hasOwnProperty(ae)){Y=Hi[ae],os(y,Y);continue}Y=Y[0],H.lastIndex=q.index+1}}y.replaceSelection(Y)}}}finally{if(Qr.pop(),hn=Qr.length?P:!1,!Qr.length&&_n){var ke=_n;_n=null,wr(y,ke)}}}function z(y,T){var S=y.key;if(!Jr[S]){S.length>1&&S[0]=="n"&&(S=S.replace("Numpad","")),S=or[S]||S;var P="";if(y.ctrlKey&&(P+="C-"),y.altKey&&(P+="A-"),y.metaKey&&(P+="M-"),We.isMac&&y.altKey&&!y.metaKey&&!y.ctrlKey&&(P=P.slice(2)),(P||S.length>1)&&y.shiftKey&&(P+="S-"),T&&!T.expectLiteralNext&&S.length==1){if(Zn.keymap&&S in Zn.keymap)(Zn.remapCtrl!=0||!P)&&(S=Zn.keymap[S]);else if(S.charCodeAt(0)>255){var W=y.code&&y.code.slice(-1)||"";y.shiftKey||(W=W.toLowerCase()),W&&(S=W)}}return P+=S,P.length>1&&(P="<"+P+">"),P}}function F(y,T){Zn.string!==y&&(Zn=O(y)),Zn.remapCtrl=T}function O(y){function T(P){return P.split(/\\?(.)/).filter(Boolean)}var S={};return y?(y.split(/((?:[^\\,]|\\.)+),/).map(function(P){if(P){var W=P.split(/((?:[^\\;]|\\.)+);/);if(W.length==3){var H=T(W[1]),q=T(W[2]);if(H.length!==q.length)return;for(var Y=0;Y<H.length;++Y)S[H[Y]]=q[Y]}else if(W.length==1){var Z=T(P);if(Z.length%2!==0)return;for(var Y=0;Y<Z.length;Y+=2)S[Z[Y]]=Z[Y+1]}}}),{keymap:S,string:y}):{keymap:S,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(y,T){y.state.vim.inputState=new $,y.state.vim.expectLiteralNext=!1,We.signal(y,"vim-command-done",T)}function N(){this.removed=[],this.inserted=""}function B(y,T,S){this.clear(),this.keyBuffer=[y||""],this.insertModeChanges=[],this.searchQueries=[],this.linewise=!!T,this.blockwise=!!S}function U(y,T){var S=He.registerController.registers;if(!y||y.length!=1)throw Error("Register name must be 1 character");S[y]=T,nn.push(y)}function K(y){this.registers=y,this.unnamedRegister=y['"']=new B,y["."]=new B,y[":"]=new B,y["/"]=new B,y["+"]=new B}function Q(){this.historyBuffer=[],this.iterator=0,this.initialPrefix=null}function J(y,T){mi[y]=T}function he(y,T){for(var S=[],P=0;P<T;P++)S.push(y);return S}function ne(y,T){cs[y]=T}function le(y,T){Un[y]=T}function se(y,T,S){var P=y.state.vim,W=P.insertMode||P.visualMode,H=Math.min(Math.max(y.firstLine(),T.line),y.lastLine()),q=y.getLine(H),Y=q.length-1+ +!!W,Z=Math.min(Math.max(0,T.ch),Y),re=q.charCodeAt(Z);if(56320<=re&&re<=57343){var ae=1;S&&S.line==H&&S.ch>Z&&(ae=-1),Z+=ae,Z>Y&&(Z-=2)}return new Ne(H,Z)}function de(y){var T={};for(var S in y)y.hasOwnProperty(S)&&(T[S]=y[S]);return T}function me(y,T,S){return typeof T=="object"&&(S=T.ch,T=T.line),new Ne(y.line+T,y.ch+S)}function _e(y,T,S,P){P.operator&&(S="operatorPending");for(var W,H=[],q=[],Y=hn?T.length-No:0,Z=Y;Z<T.length;Z++){var re=T[Z];S=="insert"&&re.context!="insert"||re.context&&re.context!=S||P.operator&&re.type=="action"||!(W=Te(y,re.keys))||(W=="partial"&&H.push(re),W=="full"&&q.push(re))}return{partial:H.length&&H,full:q.length&&q}}function Te(y,T){var S=T.slice(-11)=="<character>",P=T.slice(-10)=="<register>";if(S||P){var W=T.length-(S?11:10),H=y.slice(0,W),q=T.slice(0,W);return H==q&&y.length>W?"full":q.indexOf(H)==0?"partial":!1}return y==T?"full":T.indexOf(y)==0?"partial":!1}function Me(y){var T=/^.*(<[^>]+>)$/.exec(y),S=T?T[1]:y.slice(-1);if(S.length>1)switch(S){case"<CR>":S=`
1403
+ `;break;case"<Space>":S=" ";break;default:S=""}return S}function Ze(y,T,S){return function(){for(var P=0;P<S;P++)T(y)}}function Ge(y){return new Ne(y.line,y.ch)}function lt(y,T){return y.ch==T.ch&&y.line==T.line}function tt(y,T){return y.line<T.line?!0:y.line==T.line&&y.ch<T.ch}function ct(y,T){return arguments.length>2&&(T=ct.apply(void 0,Array.prototype.slice.call(arguments,1))),tt(y,T)?y:T}function Xt(y,T){return arguments.length>2&&(T=Xt.apply(void 0,Array.prototype.slice.call(arguments,1))),tt(y,T)?T:y}function Cn(y,T,S){var P=tt(y,T),W=tt(T,S);return P&&W}function Wt(y,T){return y.getLine(T).length}function vr(y){return y.trim?y.trim():y.replace(/^\s+|\s+$/g,"")}function un(y){return y.replace(/([.?*+$\[\]\/\\(){}|\-])/g,"\\$1")}function On(y,T,S){var P=Wt(y,T),W=new Array(S-P+1).join(" ");y.setCursor(new Ne(T,P)),y.replaceRange(W,y.getCursor())}function Xn(y,T){var S=[],P=y.listSelections(),W=Ge(y.clipPos(T)),H=!lt(T,W),q=y.getCursor("head"),Y=yt(P,q),Z=lt(P[Y].head,P[Y].anchor),re=P.length-1,ae=re-Y>Y?re:0,be=P[ae].anchor,ke=Math.min(be.line,W.line),ve=Math.max(be.line,W.line),we=be.ch,Oe=W.ch,Le=P[ae].head.ch-we,qe=Oe-we;Le>0&&qe<=0?(we++,H||Oe--):Le<0&&qe>=0?(we--,Z||Oe++):Le<0&&qe==-1&&(we--,Oe++);for(var at=ke;at<=ve;at++){var Qe={anchor:new Ne(at,we),head:new Ne(at,Oe)};S.push(Qe)}return y.setSelections(S),T.ch=Oe,be.ch=we,be}function Mr(y,T,S){for(var P=[],W=0;W<S;W++){var H=me(T,W,0);P.push({anchor:H,head:H})}y.setSelections(P,0)}function yt(y,T,S){for(var P=0;P<y.length;P++){var W=lt(y[P].anchor,T),H=lt(y[P].head,T);if(W||H)return P}return-1}function je(y,T){var S=T.lastSelection,P=function(){var H=y.listSelections(),q=H[0],Y=H[H.length-1],Z=tt(q.anchor,q.head)?q.anchor:q.head,re=tt(Y.anchor,Y.head)?Y.head:Y.anchor;return[Z,re]},W=function(){var H=y.getCursor(),q=y.getCursor(),Y=S.visualBlock;if(Y){var Z=Y.width,re=Y.height;q=new Ne(H.line+re,H.ch+Z);for(var ae=[],be=H.line;be<q.line;be++){var ke=new Ne(be,H.ch),ve=new Ne(be,q.ch),we={anchor:ke,head:ve};ae.push(we)}y.setSelections(ae)}else{var Oe=S.anchorMark.find(),Le=S.headMark.find(),qe=Le.line-Oe.line,at=Le.ch-Oe.ch;q={line:q.line+qe,ch:qe?q.ch:at+q.ch},S.visualLine&&(H=new Ne(H.line,0),q=new Ne(q.line,Wt(y,q.line))),y.setSelection(H,q)}return[H,q]};return T.visualMode?P():W()}function Lt(y,T){var S=T.sel.anchor,P=T.sel.head;T.lastPastedText&&(P=y.posFromIndex(y.indexFromPos(S)+T.lastPastedText.length),T.lastPastedText=null),T.lastSelection={anchorMark:y.setBookmark(S),headMark:y.setBookmark(P),anchor:Ge(S),head:Ge(P),visualMode:T.visualMode,visualLine:T.visualLine,visualBlock:T.visualBlock}}function Ht(y,T,S,P){var W=y.state.vim.sel,H=P?T:W.head,q=P?T:W.anchor,Y;return tt(S,T)&&(Y=S,S=T,T=Y),tt(H,q)?(H=ct(T,H),q=Xt(q,S)):(q=ct(T,q),H=Xt(H,S),H=me(H,0,-1),H.ch==-1&&H.line!=y.firstLine()&&(H=new Ne(H.line-1,Wt(y,H.line-1)))),[q,H]}function Tn(y,T,W){var P=y.state.vim;T=T||P.sel;var W=W||P.visualLine?"line":P.visualBlock?"block":"char",H=yr(y,T,W);y.setSelections(H.ranges,H.primary)}function yr(y,T,S,P){var W=Ge(T.head),H=Ge(T.anchor);if(S=="char"){var q=!P&&!tt(T.head,T.anchor)?1:0,Y=tt(T.head,T.anchor)?1:0;return W=me(T.head,0,q),H=me(T.anchor,0,Y),{ranges:[{anchor:H,head:W}],primary:0}}if(S=="line"){if(tt(T.head,T.anchor))W.ch=0,H.ch=Wt(y,H.line);else{H.ch=0;var Z=y.lastLine();W.line>Z&&(W.line=Z),W.ch=Wt(y,W.line)}return{ranges:[{anchor:H,head:W}],primary:0}}if(S=="block"){var re=Math.min(H.line,W.line),ae=H.ch,be=Math.max(H.line,W.line),ke=W.ch;ae<ke?ke+=1:ae+=1;for(var ve=be-re+1,we=W.line==re?0:ve-1,Oe=[],Le=0;Le<ve;Le++)Oe.push({anchor:new Ne(re+Le,ae),head:new Ne(re+Le,ke)});return{ranges:Oe,primary:we}}}function hr(y){var T=y.getCursor("head");return y.getSelection().length==1&&(T=ct(T,y.getCursor("anchor"))),T}function mn(y,T){var S=y.state.vim;T!==!1&&y.setCursor(se(y,S.sel.head)),Lt(y,S),S.visualMode=!1,S.visualLine=!1,S.visualBlock=!1,S.insertMode||We.signal(y,"vim-mode-change",{mode:"normal"})}function Wn(y,T,S){var P=y.getRange(T,S);if(/\n\s*$/.test(P)){var W=P.split(`
1404
+ `);W.pop();for(var H,H=W.pop();W.length>0&&H&&p(H);H=W.pop())S.line--,S.ch=0;H?(S.line--,S.ch=Wt(y,S.line)):S.ch=0}}function Nn(y,T,S){T.ch=0,S.ch=0,S.line++}function Gt(y){if(!y)return 0;var T=y.search(/\S/);return T==-1?y.length:T}function ln(y,T,S){var P=T.inclusive,W=T.innerWord,H=T.bigWord,q=T.noSymbol,Y=T.multiline,Z=S||hr(y),re=y.getLine(Z.line),ae=re,be=Z.line,ke=be,ve=Z.ch,we,Oe=q?Do[0]:Bi[0];if(W&&/\s/.test(re.charAt(ve)))Oe=function(wn){return/\s/.test(wn)};else{for(;!Oe(re.charAt(ve));)if(ve++,ve>=re.length){if(!Y)return null;ve--,we=ci(y,Z,!0,H,!0);break}H?Oe=Bi[0]:(Oe=Do[0],Oe(re.charAt(ve))||(Oe=Do[1]))}for(var Le=ve,qe=ve;Oe(re.charAt(qe))&&qe>=0;)qe--;if(qe++,we)Le=we.to,ke=we.line,ae=y.getLine(ke),!ae&&Le==0&&Le++;else for(;Oe(re.charAt(Le))&&Le<re.length;)Le++;if(P){var at=Le,Qe=Z.ch<=qe&&/\s/.test(re.charAt(Z.ch));if(!Qe)for(;/\s/.test(ae.charAt(Le))&&Le<ae.length;)Le++;if(at==Le||Qe){for(var nt=qe;/\s/.test(re.charAt(qe-1))&&qe>0;)qe--;!qe&&!Qe&&(qe=nt)}}return{start:new Ne(be,qe),end:new Ne(ke,Le)}}function Dr(y,T,S){var P=T;if(!We.findMatchingTag||!We.findEnclosingTag)return{start:P,end:P};var W=We.findMatchingTag(y,T)||We.findEnclosingTag(y,T);return!W||!W.open||!W.close?{start:P,end:P}:S?{start:W.open.from,end:W.close.to}:{start:W.open.to,end:W.close.from}}function Gr(y,T,S){lt(T,S)||He.jumpList.add(y,T,S)}function Yr(y,T){He.lastCharacterSearch.increment=y,He.lastCharacterSearch.forward=T.forward,He.lastCharacterSearch.selectedCharacter=T.selectedCharacter}function Si(y,T,S,P){var W=Ge(y.getCursor()),H=S?1:-1,q=S?y.lineCount():-1,Y=W.ch,Z=W.line,re=y.getLine(Z),ae={lineText:re,nextCh:re.charAt(Y),lastCh:null,index:Y,symb:P,reverseSymb:(S?{")":"(","}":"{"}:{"(":")","{":"}"})[P],forward:S,depth:0,curMoveThrough:!1},be=$i[P];if(!be)return W;var ke=Ti[be].init,ve=Ti[be].isComplete;for(ke&&ke(ae);Z!==q&&T;){if(ae.index+=H,ae.nextCh=ae.lineText.charAt(ae.index),!ae.nextCh){if(Z+=H,ae.lineText=y.getLine(Z)||"",H>0)ae.index=0;else{var we=ae.lineText.length;ae.index=we>0?we-1:0}ae.nextCh=ae.lineText.charAt(ae.index)}ve(ae)&&(W.line=Z,W.ch=ae.index,T--)}return ae.nextCh||ae.curMoveThrough?new Ne(Z,ae.index):W}function ci(y,T,S,P,W){var H=T.line,q=T.ch,Y=y.getLine(H),Z=S?1:-1,re=P?Bi:Do;if(W&&Y==""){if(H+=Z,Y=y.getLine(H),!l(y,H))return null;q=S?0:Y.length}for(;;){if(W&&Y=="")return{from:0,to:0,line:H};for(var ae=Z>0?Y.length:-1,be=ae,ke=ae;q!=ae;){for(var ve=!1,we=0;we<re.length&&!ve;++we)if(re[we](Y.charAt(q))){for(be=q;q!=ae&&re[we](Y.charAt(q));)q+=Z;if(ke=q,ve=be!=ke,be==T.ch&&H==T.line&&ke==be+Z)continue;return{from:Math.min(be,ke+1),to:Math.max(be,ke),line:H}}ve||(q+=Z)}if(H+=Z,!l(y,H))return null;Y=y.getLine(H),q=Z>0?0:Y.length}}function Bn(y,T,S,P,W,H){var q=Ge(T),Y=[];(P&&!W||!P&&W)&&S++;for(var Z=!P||!W,re=0;re<S;re++){var ae=ci(y,T,P,H,Z);if(!ae){var be=Wt(y,y.lastLine());Y.push(P?{line:y.lastLine(),from:be,to:be}:{line:0,from:0,to:0});break}Y.push(ae),T=new Ne(ae.line,P?ae.to-1:ae.from)}var ke=Y.length!=S,ve=Y[0],we=Y.pop();return P&&!W?(!ke&&(ve.from!=q.ch||ve.line!=q.line)&&(we=Y.pop()),new Ne(we.line,we.from)):P&&W?new Ne(we.line,we.to-1):!P&&W?(!ke&&(ve.to!=q.ch||ve.line!=q.line)&&(we=Y.pop()),new Ne(we.line,we.to)):new Ne(we.line,we.from)}function ro(y,T,S,P,W){var H=T,q=new Ne(H.line+S.repeat-1,1/0),Y=y.clipPos(q);return Y.ch--,W||(P.lastHPos=1/0,P.lastHSPos=y.charCoords(Y,"div").left),q}function ui(y,T,S,P,W){for(var H=W||y.getCursor(),q=H.ch,Y,Z=0;Z<T;Z++){var re=y.getLine(H.line);if(Y=kn(q,re,P,S),Y==-1)return null;q=Y}return new Ne(y.getCursor().line,Y)}function Os(y,T){var S=y.getCursor().line;return se(y,new Ne(S,T-1))}function Xr(y,T,S,P){!x(S,Co)&&!Jt.test(S)||(T.marks[S]&&T.marks[S].clear(),T.marks[S]=y.setBookmark(P))}function kn(y,T,S,P,W){var H;return P?(H=T.indexOf(S,y+1),H!=-1):(H=T.lastIndexOf(S,y-1),H!=-1),H}function hi(y,T,S,P,W){function H(qe){return!/\S/.test(y.getLine(qe))}function q(qe,at,Qe){return Qe?H(qe)!=H(qe+at):!H(qe)&&H(qe+at)}function Y(qe){P=P>0?1:-1;var at=y.ace.session.getFoldLine(qe);at&&qe+P>at.start.row&&qe+P<at.end.row&&(P=(P>0?at.end.row:at.start.row)-qe)}var Z=T.line,re=y.firstLine(),ae=y.lastLine(),be,ke,ve=Z;if(P){for(;re<=ve&&ve<=ae&&S>0;)Y(ve),q(ve,P)&&S--,ve+=P;return new Ne(ve,0)}var we=y.state.vim;if(we.visualLine&&q(Z,1,!0)){var Oe=we.sel.anchor;q(Oe.line,-1,!0)&&(!W||Oe.line!=Z)&&(Z+=1)}var Le=H(Z);for(ve=Z;ve<=ae&&S;ve++)q(ve,1,!0)&&(!W||H(ve)!=Le)&&S--;for(ke=new Ne(ve,0),ve>ae&&!Le?Le=!0:W=!1,ve=Z;ve>re&&!((!W||H(ve)==Le||ve==Z)&&q(ve,-1,!0));ve--);return be=new Ne(ve,0),{start:be,end:ke}}function Jo(y,T,S,P,W){function H(re){re.pos+re.dir<0||re.pos+re.dir>=re.line.length?re.line=null:re.pos+=re.dir}function q(re,ae,be,ke){var ve=re.getLine(ae),we={line:ve,ln:ae,pos:be,dir:ke};if(we.line==="")return{ln:we.ln,pos:we.pos};var Oe=we.pos;for(H(we);we.line!==null;){if(Oe=we.pos,b(we.line[we.pos])){if(!W)return{ln:we.ln,pos:we.pos+1};for(H(we);we.line!==null&&p(we.line[we.pos]);)Oe=we.pos,H(we);return{ln:we.ln,pos:Oe+1}}H(we)}return{ln:we.ln,pos:Oe+1}}function Y(re,ae,be,ke){var ve=re.getLine(ae),we={line:ve,ln:ae,pos:be,dir:ke};if(we.line==="")return{ln:we.ln,pos:we.pos};var Oe=we.pos;for(H(we);we.line!==null;){if(!p(we.line[we.pos])&&!b(we.line[we.pos]))Oe=we.pos;else if(b(we.line[we.pos]))return W?p(we.line[we.pos+1])?{ln:we.ln,pos:we.pos+1}:{ln:we.ln,pos:Oe}:{ln:we.ln,pos:Oe};H(we)}return we.line=ve,W&&p(we.line[we.pos])?{ln:we.ln,pos:we.pos}:{ln:we.ln,pos:Oe}}for(var Z={ln:T.line,pos:T.ch};S>0;)P<0?Z=Y(y,Z.ln,Z.pos,P):Z=q(y,Z.ln,Z.pos,P),S--;return new Ne(Z.ln,Z.pos)}function di(y,T,S,P){function W(Z,re){if(re.pos+re.dir<0||re.pos+re.dir>=re.line.length){if(re.ln+=re.dir,!l(Z,re.ln)){re.line=null,re.ln=null,re.pos=null;return}re.line=Z.getLine(re.ln),re.pos=re.dir>0?0:re.line.length-1}else re.pos+=re.dir}function H(Z,re,ae,be){var Le=Z.getLine(re),ke=Le==="",ve={line:Le,ln:re,pos:ae,dir:be},we={ln:ve.ln,pos:ve.pos},Oe=ve.line==="";for(W(Z,ve);ve.line!==null;){if(we.ln=ve.ln,we.pos=ve.pos,ve.line===""&&!Oe)return{ln:ve.ln,pos:ve.pos};if(ke&&ve.line!==""&&!p(ve.line[ve.pos]))return{ln:ve.ln,pos:ve.pos};b(ve.line[ve.pos])&&!ke&&(ve.pos===ve.line.length-1||p(ve.line[ve.pos+1]))&&(ke=!0),W(Z,ve)}var Le=Z.getLine(we.ln);we.pos=0;for(var qe=Le.length-1;qe>=0;--qe)if(!p(Le[qe])){we.pos=qe;break}return we}function q(Z,re,ae,be){var Oe=Z.getLine(re),ke={line:Oe,ln:re,pos:ae,dir:be},ve={ln:ke.ln,pos:null},we=ke.line==="";for(W(Z,ke);ke.line!==null;){if(ke.line===""&&!we)return ve.pos!==null?ve:{ln:ke.ln,pos:ke.pos};if(!(!b(ke.line[ke.pos])||ve.pos===null||ke.ln===ve.ln&&ke.pos+1===ve.pos))return ve;ke.line!==""&&!p(ke.line[ke.pos])&&(we=!1,ve={ln:ke.ln,pos:ke.pos}),W(Z,ke)}var Oe=Z.getLine(ve.ln);ve.pos=0;for(var Le=0;Le<Oe.length;++Le)if(!p(Oe[Le])){ve.pos=Le;break}return ve}for(var Y={ln:T.line,pos:T.ch};S>0;)P<0?Y=q(y,Y.ln,Y.pos,P):Y=H(y,Y.ln,Y.pos,P),S--;return new Ne(Y.ln,Y.pos)}function An(y,T,S,P){var W=T,H,q,Y={"(":/[()]/,")":/[()]/,"[":/[[\]]/,"]":/[[\]]/,"{":/[{}]/,"}":/[{}]/,"<":/[<>]/,">":/[<>]/}[S],Z={"(":"(",")":"(","[":"[","]":"[","{":"{","}":"{","<":"<",">":"<"}[S],re=y.getLine(W.line).charAt(W.ch),ae=re===Z?1:0;if(H=y.scanForBracket(new Ne(W.line,W.ch+ae),-1,void 0,{bracketRegex:Y}),q=y.scanForBracket(new Ne(W.line,W.ch+ae),1,void 0,{bracketRegex:Y}),!H||!q)return null;if(H=H.pos,q=q.pos,H.line==q.line&&H.ch>q.ch||H.line>q.line){var be=H;H=q,q=be}return P?q.ch+=1:H.ch+=1,{start:H,end:q}}function dr(y,T,S,P){var W=Ge(T),H=y.getLine(W.line),q=H.split(""),Y,Z,re,ae,be=q.indexOf(S);if(W.ch<be)W.ch=be;else if(be<W.ch&&q[W.ch]==S){var ke=/string/.test(y.getTokenTypeAt(me(T,0,1))),ve=/string/.test(y.getTokenTypeAt(T)),we=ke&&!ve;we||(Z=W.ch,--W.ch)}if(q[W.ch]==S&&!Z)Y=W.ch+1;else for(re=W.ch;re>-1&&!Y;re--)q[re]==S&&(Y=re+1);if(Y&&!Z)for(re=Y,ae=q.length;re<ae&&!Z;re++)q[re]==S&&(Z=re);return!Y||!Z?{start:W,end:W}:(P&&(--Y,++Z),{start:new Ne(W.line,Y),end:new Ne(W.line,Z)})}function pi(){}function Sn(y){var T=y.state.vim;return T.searchState_||(T.searchState_=new pi)}function Mn(y){return fi(y,"/")}function br(y){return vo(y,"/")}function fi(y,T){var S=vo(y,T)||[];if(!S.length)return[];var P=[];if(S[0]===0){for(var W=0;W<S.length;W++)typeof S[W]=="number"&&P.push(y.substring(S[W]+1,S[W+1]));return P}}function vo(y,T){T||(T="/");for(var S=!1,P=[],W=0;W<y.length;W++){var H=y.charAt(W);!S&&H==T&&P.push(W),S=!S&&H=="\\"}return P}function yo(y){for(var T="|(){",S="}",P=!1,W=[],H=-1;H<y.length;H++){var q=y.charAt(H)||"",Y=y.charAt(H+1)||"",Z=Y&&T.indexOf(Y)!=-1;P?((q!=="\\"||!Z)&&W.push(q),P=!1):q==="\\"?(P=!0,Y&&S.indexOf(Y)!=-1&&(Z=!0),(!Z||Y==="\\")&&W.push(q)):(W.push(q),Z&&Y!=="\\"&&W.push("\\"))}return W.join("")}function es(y){for(var T=!1,S=[],P=-1;P<y.length;P++){var W=y.charAt(P)||"",H=y.charAt(P+1)||"";ji[W+H]?(S.push(ji[W+H]),P++):T?(S.push(W),T=!1):W==="\\"?(T=!0,i(H)||H==="$"?S.push("$"):H!=="/"&&H!=="\\"&&S.push("\\")):(W==="$"&&S.push("$"),S.push(W),H==="/"&&S.push("\\"))}return S.join("")}function Zr(y){for(var T=new We.StringStream(y),S=[];!T.eol();){for(;T.peek()&&T.peek()!="\\";)S.push(T.next());var P=!1;for(var W in kr)if(T.match(W,!0)){P=!0,S.push(kr[W]);break}P||S.push(T.next())}return S.join("")}function gi(y,T,S){var P=He.registerController.getRegister("/");if(P.setText(y),y instanceof RegExp)return y;var W=br(y),H,q;if(!W.length)H=y;else{H=y.substring(0,W[0]);var Y=y.substring(W[0]);q=Y.indexOf("i")!=-1}if(!H)return null;k("pcre")||(H=yo(H)),S&&(T=/^[^A-Z]*$/.test(H));var Z=new RegExp(H,T||q?"im":"m");return Z}function Pr(y){typeof y=="string"&&(y=document.createElement(y));for(var T,S=1;S<arguments.length;S++)if(T=arguments[S])if(typeof T!="object"&&(T=document.createTextNode(T)),T.nodeType)y.appendChild(T);else for(var P in T)Object.prototype.hasOwnProperty.call(T,P)&&(P[0]==="$"?y.style[P.slice(1)]=T[P]:y.setAttribute(P,T[P]));return y}function Ot(y,T){var S=Pr("div",{$color:"red",$whiteSpace:"pre",class:"cm-vim-message"},T);y.openNotification?y.openNotification(S,{bottom:!0,duration:5e3}):alert(S.innerText)}function Mo(y,T){return Pr("div",{$display:"flex"},Pr("span",{$fontFamily:"monospace",$whiteSpace:"pre",$flex:1},y,Pr("input",{type:"text",autocorrect:"off",autocapitalize:"off",spellcheck:"false",$width:"100%"})),T&&Pr("span",{$color:"#888"},T))}function wr(y,T){if(Qr.length){T.value||(T.value=""),_n=T;return}var S=Mo(T.prefix,T.desc);if(y.openDialog)y.openDialog(S,T.onClose,{onKeyDown:T.onKeyDown,onKeyUp:T.onKeyUp,bottom:!0,selectValueOnOpen:!1,value:T.value});else{var P="";typeof T.prefix!="string"&&T.prefix&&(P+=T.prefix.textContent),T.desc&&(P+=" "+T.desc),T.onClose(prompt(P,""))}}function ce(y,T){if(y instanceof RegExp&&T instanceof RegExp){for(var S=["global","multiline","ignoreCase","source"],P=0;P<S.length;P++){var W=S[P];if(y[W]!==T[W])return!1}return!0}return!1}function ze(y,T,S,P){if(T){var W=Sn(y),H=gi(T,!!S,!!P);if(H)return _t(y,H),ce(H,W.getQuery())||W.setQuery(H),H}}function Pe(y){if(y.source.charAt(0)=="^")var T=!0;return{token:function(S){if(T&&!S.sol()){S.skipToEnd();return}var P=S.match(y,!1);if(P)return P[0].length==0?(S.next(),"searching"):!S.sol()&&(S.backUp(1),!y.exec(S.next()+P[0]))?(S.next(),null):(S.match(y),"searching");for(;!S.eol()&&(S.next(),!S.match(y,!1)););},query:y}}function _t(y,T){clearTimeout(Ar);var S=Sn(y);S.highlightTimeout=Ar,Ar=setTimeout(function(){if(y.state.vim){var P=Sn(y);P.highlightTimeout=null;var W=P.getOverlay();(!W||T!=W.query)&&(W&&y.removeOverlay(W),W=Pe(T),y.addOverlay(W),y.showMatchesOnScrollbar&&(P.getScrollbarAnnotate()&&P.getScrollbarAnnotate().clear(),P.setScrollbarAnnotate(y.showMatchesOnScrollbar(T))),P.setOverlay(W))}},50)}function Yt(y,T,S,P){return P===void 0&&(P=1),y.operation(function(){for(var W=y.getCursor(),H=y.getSearchCursor(S,W),q=0;q<P;q++){var Y=H.find(T);if(q==0&&Y&&lt(H.from(),W)){var Z=T?H.from():H.to();Y=H.find(T),Y&&!Y[0]&&lt(H.from(),Z)&&y.getLine(Z.line).length==Z.ch&&(Y=H.find(T))}if(!Y&&(H=y.getSearchCursor(S,T?new Ne(y.lastLine()):new Ne(y.firstLine(),0)),!H.find(T)))return}return H.from()})}function jt(y,T,S,P,W){return P===void 0&&(P=1),y.operation(function(){var H=y.getCursor(),q=y.getSearchCursor(S,H),Y=q.find(!T);!W.visualMode&&Y&&lt(q.from(),H)&&q.find(!T);for(var Z=0;Z<P;Z++)if(Y=q.find(T),!Y&&(q=y.getSearchCursor(S,T?new Ne(y.lastLine()):new Ne(y.firstLine(),0)),!q.find(T)))return;return[q.from(),q.to()]})}function xr(y){var T=Sn(y);T.highlightTimeout&&(clearTimeout(T.highlightTimeout),T.highlightTimeout=null),y.removeOverlay(Sn(y).getOverlay()),T.setOverlay(null),T.getScrollbarAnnotate()&&(T.getScrollbarAnnotate().clear(),T.setScrollbarAnnotate(null))}function pr(y,T,S){return typeof y!="number"&&(y=y.line),T instanceof Array?x(y,T):typeof S=="number"?y>=T&&y<=S:y==T}function zn(y){var T=y.ace.renderer;return{top:T.getFirstFullyVisibleRow(),bottom:T.getLastFullyVisibleRow()}}function Cr(y,T,S){if(S=="'"||S=="`")return He.jumpList.find(y,-1)||new Ne(0,0);if(S==".")return vn(y);var P=T.marks[S];return P&&P.find()}function vn(y){if(y.getLastEditEnd)return y.getLastEditEnd();for(var T=y.doc.history.done,S=T.length;S--;)if(T[S].changes)return Ge(T[S].changes[0].to)}function io(y,T,S,P,W,H,q,Y,Z){function re(){y.operation(function(){for(;!Oe;)ae(),ke();ve()})}function ae(){var Qe=y.getRange(H.from(),H.to()),nt=Qe.replace(q,Y),wn=H.to().line;H.replace(nt),qe=H.to().line,W+=qe-wn,at=qe<wn}function be(){var Qe=Le&&Ge(H.to()),nt=H.findNext();return nt&&!nt[0]&&Qe&&lt(H.from(),Qe)&&(nt=H.findNext()),nt}function ke(){for(;be()&&pr(H.from(),P,W);)if(!(!S&&H.from().line==qe&&!at)){y.scrollIntoView(H.from(),30),y.setSelection(H.from(),H.to()),Le=H.from(),Oe=!1;return}Oe=!0}function ve(Qe){if(Qe&&Qe(),y.focus(),Le){y.setCursor(Le);var nt=y.state.vim;nt.exMode=!1,nt.lastHPos=nt.lastHSPos=Le.ch}Z&&Z()}function we(Qe,nt,wn){We.e_stop(Qe);var ut=z(Qe);switch(ut){case"y":ae(),ke();break;case"n":ke();break;case"a":var In=Z;Z=void 0,y.operation(re),Z=In;break;case"l":ae();case"q":case"<Esc>":case"<C-c>":case"<C-[>":ve(wn)}return Oe&&ve(wn),!0}y.state.vim.exMode=!0;var Oe=!1,Le,qe,at;if(ke(),Oe){Ot(y,"No matches for "+q.source);return}if(!T){re(),Z&&Z();return}wr(y,{prefix:Pr("span","replace with ",Pr("strong",Y)," (y/n/a/q/l)"),onKeyDown:we})}function Fr(y,T){var S=y.state.vim,P=He.macroModeState,W=He.registerController.getRegister("."),H=P.isPlaying,q=P.lastInsertModeChanges;H||(y.off("change",Io),S.insertEnd&&S.insertEnd.clear(),S.insertEnd=null,We.off(y.getInputField(),"keydown",Fs)),!H&&S.insertModeRepeat>1&&(ba(y,S,S.insertModeRepeat-1,!0),S.lastEditInputState.repeatOverride=S.insertModeRepeat),delete S.insertModeRepeat,S.insertMode=!1,T||y.setCursor(y.getCursor().line,y.getCursor().ch-1),y.setOption("keyMap","vim"),y.setOption("disableInput",!0),y.toggleOverwrite(!1),W.setText(q.changes.join("")),We.signal(y,"vim-mode-change",{mode:"normal"}),P.isRecording&&fr(P)}function ts(y){Dn.unshift(y)}function Ns(y,T,S,P,W){var H={keys:y,type:T};H[T]=S,H[T+"Args"]=P;for(var q in W)H[q]=W[q];ts(H)}function Ds(y,T,S,P){var W=He.registerController.getRegister(P);if(P==":"){W.keyBuffer[0]&&Er.processCommand(y,W.keyBuffer[0]),S.isPlaying=!1;return}var H=W.keyBuffer,q=0;S.isPlaying=!0,S.replaySearchQueries=W.searchQueries.slice(0);for(var Y=0;Y<H.length;Y++)for(var Z=H[Y],re,ae;Z;)if(re=/<\w+-.+?>|<\w+>|./.exec(Z),ae=re[0],Z=Z.substring(re.index+ae.length),bt.handleKey(y,ae,"macro"),T.insertMode){var be=W.insertModeChanges[q++].changes;He.macroModeState.lastInsertModeChanges.changes=be,ss(y,be,1),Fr(y)}S.isPlaying=!1}function ns(y,T){if(!y.isPlaying){var S=y.latestRegister,P=He.registerController.getRegister(S);P&&P.pushText(T)}}function fr(y){if(!y.isPlaying){var T=y.latestRegister,S=He.registerController.getRegister(T);S&&S.pushInsertModeChanges&&S.pushInsertModeChanges(y.lastInsertModeChanges)}}function Ps(y,T){if(!y.isPlaying){var S=y.latestRegister,P=He.registerController.getRegister(S);P&&P.pushSearchQuery&&P.pushSearchQuery(T)}}function Io(y,T){var S=He.macroModeState,P=S.lastInsertModeChanges;if(!S.isPlaying)for(var W=y.state.vim;T;){if(P.expectCursorActivityForChange=!0,P.ignoreCount>1)P.ignoreCount--;else if(T.origin=="+input"||T.origin=="paste"||T.origin===void 0){var H=y.listSelections().length;H>1&&(P.ignoreCount=H);var q=T.text.join(`
1405
+ `);if(P.maybeReset&&(P.changes=[],P.maybeReset=!1),q)if(y.state.overwrite&&!/\n/.test(q))P.changes.push([q]);else{if(q.length>1){var Y=W&&W.insertEnd&&W.insertEnd.find(),Z=y.getCursor();if(Y&&Y.line==Z.line){var re=Y.ch-Z.ch;re>0&&re<q.length&&(P.changes.push([q,re]),q="")}}q&&P.changes.push(q)}}T=T.next}}function rs(y){var T=y.state.vim;if(T.insertMode){var S=He.macroModeState;if(S.isPlaying)return;var P=S.lastInsertModeChanges;P.expectCursorActivityForChange?P.expectCursorActivityForChange=!1:(P.maybeReset=!0,T.insertEnd&&T.insertEnd.clear(),T.insertEnd=y.setBookmark(y.getCursor(),{insertLeft:!0}))}else y.curOp.isVimOp||is(y,T)}function is(y,T,S){var P=y.getCursor("anchor"),W=y.getCursor("head");if(T.visualMode&&!y.somethingSelected()?mn(y,!1):!T.visualMode&&!T.insertMode&&y.somethingSelected()&&(T.visualMode=!0,T.visualLine=!1,We.signal(y,"vim-mode-change",{mode:"visual"})),T.visualMode){var H=tt(W,P)?0:-1,q=tt(W,P)?-1:0;W=me(W,0,H),P=me(P,0,q),T.sel={anchor:P,head:W},Xr(y,T,"<",ct(W,P)),Xr(y,T,">",Xt(W,P))}else!T.insertMode&&!S&&(T.lastHPos=y.getCursor().ch)}function bo(y,T){this.keyName=y,this.key=T.key,this.ctrlKey=T.ctrlKey,this.altKey=T.altKey,this.metaKey=T.metaKey,this.shiftKey=T.shiftKey}function Fs(y){var T=He.macroModeState,S=T.lastInsertModeChanges,P=We.keyName?We.keyName(y):y.key;P&&(P.indexOf("Delete")!=-1||P.indexOf("Backspace")!=-1)&&(S.maybeReset&&(S.changes=[],S.maybeReset=!1),S.changes.push(new bo(P,y)))}function ba(y,T,S,P){function W(){Y?jn.processAction(y,T,T.lastEditActionCommand):jn.evalInput(y,T)}function H(ae){if(q.lastInsertModeChanges.changes.length>0){ae=T.lastEditActionCommand?ae:1;var be=q.lastInsertModeChanges;ss(y,be.changes,ae)}}var q=He.macroModeState;q.isPlaying=!0;var Y=!!T.lastEditActionCommand,Z=T.inputState;if(T.inputState=T.lastEditInputState,Y&&T.lastEditActionCommand.interlaceInsertRepeat)for(var re=0;re<S;re++)W(),H(1);else P||W(),H(S);T.inputState=Z,T.insertMode&&!P&&Fr(y),q.isPlaying=!1}function os(y,T){We.lookupKey(T,"vim-insert",function(S){return typeof S=="string"?We.commands[S](y):S(y),!0})}function ss(y,T,S){var P=y.getCursor("head"),W=He.macroModeState.lastInsertModeChanges.visualBlock;W&&(Mr(y,P,W+1),S=y.listSelections().length,y.setCursor(P));for(var H=0;H<S;H++){W&&y.setCursor(me(P,H,0));for(var q=0;q<T.length;q++){var Y=T[q];if(Y instanceof bo)os(y,Y.keyName);else if(typeof Y=="string")y.replaceSelection(Y);else{var Z=y.getCursor(),re=me(Z,0,Y[0].length-(Y[1]||0));y.replaceRange(Y[0],Z,Y[1]?Z:re),y.setCursor(re)}}}W&&y.setCursor(me(P,0,1))}function Ws(y,T,S,P){T.length>1&&T[0]=="n"&&(T=T.replace("numpad","")),T=Wr[T]||T;var W="";if(S.ctrlKey&&(W+="C-"),S.altKey&&(W+="A-"),(W||T.length>1)&&S.shiftKey&&(W+="S-"),P&&!P.expectLiteralNext&&T.length==1){if(Zn.keymap&&T in Zn.keymap)(Zn.remapCtrl!==!1||!W)&&(T=Zn.keymap[T]);else if(T.charCodeAt(0)>255){var H=S.code&&S.code.slice(-1)||"";S.shiftKey||(H=H.toLowerCase()),H&&(T=H)}}return W+=T,W.length>1&&(W="<"+W+">"),W}function as(y){var T=new y.constructor;return Object.keys(y).forEach(function(S){if(S!="insertEnd"){var P=y[S];Array.isArray(P)?P=P.slice():P&&typeof P=="object"&&P.constructor!=Object&&(P=as(P)),T[S]=P}}),y.sel&&(T.sel={head:y.sel.head&&Ge(y.sel.head),anchor:y.sel.anchor&&Ge(y.sel.anchor)}),T}function Eo(y,T,S){var P=!1,W=bt.maybeInitVimState_(y),H=W.visualBlock||W.wasInVisualBlock,q=y.ace.inMultiSelectMode;if(W.wasInVisualBlock&&!q?W.wasInVisualBlock=!1:q&&W.visualBlock&&(W.wasInVisualBlock=!0),T=="<Esc>"&&!W.insertMode&&!W.visualMode&&q)y.ace.exitMultiSelectMode();else if(H||!q||y.ace.inVirtualSelectionMode)P=bt.handleKey(y,T,S);else{var Y=as(W),Z=W.inputState.changeQueueList||[];y.operation(function(){y.curOp.isVimOp=!0;var re=0;y.ace.forEachSelection(function(){var ae=y.ace.selection;y.state.vim.lastHPos=ae.$desiredColumn==null?ae.lead.column:ae.$desiredColumn,y.state.vim.inputState.changeQueue=Z[re];var be=y.getCursor("head"),ke=y.getCursor("anchor"),ve=tt(be,ke)?0:-1,we=tt(be,ke)?-1:0;be=me(be,0,ve),ke=me(ke,0,we),y.state.vim.sel.head=be,y.state.vim.sel.anchor=ke,P=Mi(y,T,S),ae.$desiredColumn=y.state.vim.lastHPos==-1?null:y.state.vim.lastHPos,y.ace.inVirtualSelectionMode&&(Z[re]=y.state.vim.inputState.changeQueue),y.virtualSelectionMode()&&(y.state.vim=as(Y)),re++}),y.curOp.cursorActivity&&!P&&(y.curOp.cursorActivity=!1),W.status=y.state.vim.status,y.state.vim=W,W.inputState.changeQueueList=Z,W.inputState.changeQueue=null},!0)}return P&&!W.visualMode&&!W.insert&&W.visualMode!=y.somethingSelected()&&is(y,W,!0),P}function Wi(y,T){T.off("beforeEndOperation",Wi);var S=T.state.cm.vimCmd;S&&T.execCommand(S.exec?S:S.name,S.args),T.curOp=T.prevOp}var gr=e("../range").Range,wo=e("../lib/event_emitter").EventEmitter,oo=e("../lib/dom"),wa=e("../lib/oop"),ul=e("../lib/keys"),Ro=e("../lib/event"),so=e("../search").Search,Lo=e("../lib/useragent"),ls=e("../search_highlight").SearchHighlight,Oo=e("../commands/multi_select_commands"),xa=e("../mode/text").Mode.prototype.tokenRe,xo=e("../ext/hardwrap").hardWrap;e("../multi_select");var We=function(y){this.ace=y,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(y,T){if(!(this instanceof Ne))return new Ne(y,T);this.line=y,this.ch=T},We.defineOption=function(y,T,S){},We.commands={redo:function(y){y.ace.redo()},undo:function(y){y.ace.undo()},newlineAndIndent:function(y){y.ace.insert(`
1406
+ `)},goLineLeft:function(y){y.ace.selection.moveCursorLineStart()},goLineRight:function(y){y.ace.selection.moveCursorLineEnd()}},We.keyMap={},We.addClass=We.rmClass=function(){},We.e_stop=We.e_preventDefault=Ro.stopEvent,We.keyName=function(y){var T=ul[y.keyCode]||y.key||"";return T.length==1&&(T=T.toUpperCase()),T=Ro.getModifierString(y).replace(/(^|-)\w/g,function(S){return S.toUpperCase()})+T,T},We.keyMap.default=function(y){return function(T){var S=T.ace.commands.commandKeyBinding[y.toLowerCase()];return S&&T.ace.execCommand(S)!==!1}},We.lookupKey=function y(T,S,P){S||(S="default"),typeof S=="string"&&(S=We.keyMap[S]||We.keyMap.default);var W=typeof S=="function"?S(T):S[T];if(W===!1)return"nothing";if(W==="...")return"multi";if(W!=null&&P(W))return"handled";if(S.fallthrough){if(!Array.isArray(S.fallthrough))return y(T,S.fallthrough,P);for(var H=0;H<S.fallthrough.length;H++){var q=y(T,S.fallthrough[H],P);if(q)return q}}},We.findMatchingTag=function(y,T){return y.findMatchingTag(T)},We.findEnclosingTag=function(y,T){},We.signal=function(y,T,S){return y._signal(T,S)},We.on=Ro.addListener,We.off=Ro.removeListener,We.isWordChar=function(y){return y<""?/^\w$/.test(y):(xa.lastIndex=0,xa.test(y))},(function(){wa.implement(We.prototype,wo),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(S){this.$lineHandleChanges&&this.$lineHandleChanges.push(S);var P={text:S.action[0]=="i"?S.lines:[]},W=this.curOp=this.curOp||{};W.changeHandlers||(W.changeHandlers=this._eventRegistry.change&&this._eventRegistry.change.slice()),W.lastChange?W.lastChange.next=W.lastChange=P:W.lastChange=W.change=P,this.$updateMarkers(S)},this.onSelectionChange=function(){var S=this.curOp=this.curOp||{};S.cursorActivityHandlers||(S.cursorActivityHandlers=this._eventRegistry.cursorActivity&&this._eventRegistry.cursorActivity.slice()),this.curOp.cursorActivity=!0,this.ace.inMultiSelectMode&&this.ace.keyBinding.removeKeyboardHandler(Oo.keyboardHandler)},this.operation=function(S,P){if(!P&&this.curOp||P&&this.curOp&&this.curOp.force)return S();if((P||!this.ace.curOp)&&this.curOp&&this.onBeforeEndOperation(),!this.ace.curOp){var W=this.ace.prevOp;this.ace.startOperation({command:{name:"vim",scrollIntoView:"cursor"}})}var H=this.curOp=this.curOp||{};this.curOp.force=P;var q=S();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(),!H.cursorActivity&&!H.lastChange&&W&&(this.ace.prevOp=W)),(P||!this.ace.curOp)&&this.curOp&&this.onBeforeEndOperation(),q},this.onBeforeEndOperation=function(){var S=this.curOp;S&&(S.change&&this.signal("change",S.change,S),S&&S.cursorActivity&&this.signal("cursorActivity",null,S),this.curOp=null)},this.signal=function(S,P,W){var H=W?W[S+"Handlers"]:(this._eventRegistry||{})[S];if(H){H=H.slice();for(var q=0;q<H.length;q++)H[q](this,P)}},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(S,P){typeof S=="object"&&(P=S.ch,S=S.line);var W=!this.curOp&&!this.ace.inVirtualSelectionMode;this.ace.inVirtualSelectionMode||this.ace.exitMultiSelectMode(),this.ace.session.unfold({row:S,column:P}),this.ace.selection.moveTo(S,P),W&&(this.ace.renderer.scrollCursorIntoView(),this.ace.endOperation())},this.getCursor=function(S){var P=this.ace.selection,W=S=="anchor"?P.isEmpty()?P.lead:P.anchor:S=="head"||!S?P.lead:P.getRange()[S];return m(W)},this.listSelections=function(S){var P=this.ace.multiSelect.rangeList.ranges;return!P.length||this.ace.inVirtualSelectionMode?[{anchor:this.getCursor("anchor"),head:this.getCursor("head")}]:P.map(function(W){return{anchor:this.clipPos(m(W.cursor==W.end?W.start:W.end)),head:this.clipPos(m(W.cursor))}},this)},this.setSelections=function(S,P){var W=this.ace.multiSelect,H=S.map(function(re){var ae=g(re.anchor),be=g(re.head),ke=gr.comparePoints(ae,be)<0?new gr.fromPoints(ae,be):new gr.fromPoints(be,ae);return ke.cursor=gr.comparePoints(ke.start,be)?ke.end:ke.start,ke});if(this.ace.inVirtualSelectionMode){this.ace.selection.fromOrientedRange(H[0]);return}P?H[P]&&H.push(H.splice(P,1)[0]):H=H.reverse(),W.toSingleRange(H[0].clone());for(var q=this.ace.session,Y=0;Y<H.length;Y++){var Z=q.$clipRangeToDocument(H[Y]);W.addRange(Z)}},this.setSelection=function(S,P,W){var H=this.ace.selection;H.moveTo(S.line,S.ch),H.selectTo(P.line,P.ch),W&&W.origin=="*mouse"&&this.onBeforeEndOperation()},this.somethingSelected=function(S){return!this.ace.selection.isEmpty()},this.clipPos=function(S){var P=this.ace.session.$clipPositionToDocument(S.line,S.ch);return m(P)},this.foldCode=function(S){this.ace.session.$toggleFoldWidget(S.line,{})},this.markText=function(S){return{clear:function(){},find:function(){}}},this.$updateMarkers=function(S){var P=S.action=="insert",W=S.start,H=S.end,q=(H.row-W.row)*(P?1:-1),Y=(H.column-W.column)*(P?1:-1);P&&(H=W);for(var Z in this.marks){var re=this.marks[Z],ae=gr.comparePoints(re,W);if(!(ae<0)){if(ae===0&&P)if(!re.$insertRight)ae=1;else{if(re.bias!=1){re.bias=-1;continue}ae=1}var be=P?ae:gr.comparePoints(re,H);if(be>0){re.row+=q,re.column+=re.row==H.row?Y:0;continue}!P&&be<=0&&(re.row=W.row,re.column=W.column,be===0&&(re.bias=1))}}};var y=function(S,P,W,H){this.cm=S,this.id=P,this.row=W,this.column=H,S.marks[this.id]=this};y.prototype.clear=function(){delete this.cm.marks[this.id]},y.prototype.find=function(){return m(this)},this.setBookmark=function(S,P){var W=new y(this,this.$uid++,S.line,S.ch);return(!P||!P.insertLeft)&&(W.$insertRight=!0),this.marks[W.id]=W,W},this.moveH=function(S,P){if(P=="char"){var W=this.ace.selection;W.clearSelection(),W.moveCursorBy(0,S)}},this.findPosV=function(S,P,W,H){if(W=="page"){var q=this.ace.renderer,Y=q.layerConfig;P*=Math.floor(Y.height/Y.lineHeight),W="line"}if(W=="line"){var Z=this.ace.session.documentToScreenPosition(S.line,S.ch);H!=null&&(Z.column=H),Z.row+=P,Z.row=Math.min(Math.max(0,Z.row),this.ace.session.getScreenLength()-1);var re=this.ace.session.screenToDocumentPosition(Z.row,Z.column);return m(re)}debugger},this.charCoords=function(S,P){if(P=="div"||!P){var W=this.ace.session.documentToScreenPosition(S.line,S.ch);return{left:W.column,top:W.row}}if(P=="local"){var H=this.ace.renderer,W=this.ace.session.documentToScreenPosition(S.line,S.ch),q=H.layerConfig.lineHeight,Y=H.layerConfig.characterWidth,Z=q*W.row;return{left:W.column*Y,top:Z,bottom:Z+q}}},this.coordsChar=function(S,P){var W=this.ace.renderer;if(P=="local"){var H=Math.max(0,Math.floor(S.top/W.lineHeight)),q=Math.max(0,Math.floor(S.left/W.characterWidth)),Y=W.session.screenToDocumentPosition(H,q);return m(Y)}if(P=="div")throw"not implemented"},this.getSearchCursor=function(S,P,W){var H=!1,q=!1;S instanceof RegExp&&!S.global&&(H=!S.ignoreCase,S=S.source,q=!0),S=="\\n"&&(S=`
1407
1407
  `,q=!1);var Y=new so;P.ch==null&&(P.ch=Number.MAX_VALUE);var Z={row:P.line,column:P.ch},re=this,ae=null;return{findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(be){Y.setOptions({needle:S,caseSensitive:H,wrap:!1,backwards:be,regExp:q,start:ae||Z});var ke=Y.find(re.ace.session);return ae=ke,ae&&[!ae.isEmpty()]},from:function(){return ae&&m(ae.start)},to:function(){return ae&&m(ae.end)},replace:function(be){ae&&(ae.end=re.ace.session.doc.replace(ae,be))}}},this.scrollTo=function(S,P){var W=this.ace.renderer,H=W.layerConfig,q=H.maxHeight;q-=(W.$size.scrollerHeight-W.lineHeight)*W.$scrollPastEnd,P!=null&&this.ace.session.setScrollTop(Math.max(0,Math.min(P,q))),S!=null&&this.ace.session.setScrollLeft(Math.max(0,Math.min(S,H.width)))},this.scrollInfo=function(){return 0},this.scrollIntoView=function(S,P){if(S){var W=this.ace.renderer,H={top:0,bottom:P};W.scrollCursorIntoView(g(S),W.lineHeight*2/W.$size.scrollerHeight,H)}},this.getLine=function(S){return this.ace.session.getLine(S)},this.getRange=function(S,P){return this.ace.session.getTextRange(new gr(S.line,S.ch,P.line,P.ch))},this.replaceRange=function(S,P,W){W||(W=P);var H=new gr(P.line,P.ch,W.line,W.ch);return this.ace.session.$clipRangeToDocument(H),this.ace.session.replace(H,S)},this.replaceSelection=this.replaceSelections=function(S){var P=Array.isArray(S)&&S,W=this.ace.selection;if(this.ace.inVirtualSelectionMode){this.ace.session.replace(W.getRange(),P?S[0]||"":S);return}W.inVirtualSelectionMode=!0;var H=W.rangeList.ranges;H.length||(H=[this.ace.multiSelect.getRange()]);for(var q=H.length;q--;)this.ace.session.replace(H[q],P?S[q]||"":S);W.inVirtualSelectionMode=!1},this.getSelection=function(){return this.ace.getSelectedText()},this.getSelections=function(){return this.listSelections().map(function(S){return this.getRange(S.anchor,S.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(S,P){switch(this.state[S]=P,S){case"indentWithTabs":S=T[S],P=!P;break;case"keyMap":this.state.$keyMap=P;return;default:S=T[S]}S&&this.ace.setOption(S,P)},this.getOption=function(S){var P,W=T[S];switch(W&&(P=this.ace.getOption(W)),S){case"indentWithTabs":return S=T[S],!P;case"keyMap":return this.state.$keyMap||"vim"}return W?P:this.state[S]},this.toggleOverwrite=function(S){return this.state.overwrite=S,this.ace.setOverwrite(S)},this.addOverlay=function(S){if(!this.$searchHighlight||!this.$searchHighlight.session){var P=new ls(null,"ace_highlight-marker","text"),W=this.ace.session.addDynamicMarker(P);P.id=W.id,P.session=this.ace.session,P.destroy=function(q){P.session.off("change",P.updateOnChange),P.session.off("changeEditor",P.destroy),P.session.removeMarker(P.id),P.session=null},P.updateOnChange=function(q){var Y=q.start.row;Y==q.end.row?P.cache[Y]=void 0:P.cache.splice(Y,P.cache.length)},P.session.on("changeEditor",P.destroy),P.session.on("change",P.updateOnChange)}var H=new RegExp(S.query.source,"gmi");this.$searchHighlight=S.highlight=P,this.$searchHighlight.setRegexp(H),this.ace.renderer.updateBackMarkers()},this.removeOverlay=function(S){this.$searchHighlight&&this.$searchHighlight.session&&this.$searchHighlight.destroy()},this.getScrollInfo=function(){var S=this.ace.renderer,P=S.layerConfig;return{left:S.scrollLeft,top:S.scrollTop,height:P.maxHeight,width:P.width,clientHeight:P.height,clientWidth:P.width}},this.getValue=function(){return this.ace.getValue()},this.setValue=function(S){return this.ace.setValue(S,-1)},this.getTokenTypeAt=function(S){var P=this.ace.session.getTokenAt(S.line,S.ch);return P&&/comment|string/.test(P.type)?"string":""},this.findMatchingBracket=function(S){var P=this.ace.session.findMatchingBracket(g(S));return{to:P&&m(P)}},this.findMatchingTag=function(S){var P=this.ace.session.getMatchingTags(g(S));if(P)return{open:{from:m(P.openTag.start),to:m(P.openTag.end)},close:{from:m(P.closeTag.start),to:m(P.closeTag.end)}}},this.indentLine=function(S,P){P===!0?this.ace.session.indentRows(S,S," "):P===!1&&this.ace.session.outdentRows(new gr(S,0,S,0))},this.indexFromPos=function(S){return this.ace.session.doc.positionToIndex(g(S))},this.posFromIndex=function(S){return m(this.ace.session.doc.indexToPosition(S))},this.focus=function(S){return this.ace.textInput.focus()},this.blur=function(S){return this.ace.blur()},this.defaultTextHeight=function(S){return this.ace.renderer.layerConfig.lineHeight},this.scanForBracket=function(S,P,W,H){var q=H.bracketRegex.source,Y=/paren|text|operator|tag/;if(P==1)var Z=this.ace.session.$findClosingBracket(q.slice(1,2),g(S),Y);else{var Z=this.ace.session.$findOpeningBracket(q.slice(-2,-1),{row:S.line,column:S.ch+1},Y);!Z&&H.bracketRegex&&H.bracketRegex.test(this.getLine(S.line)[S.ch-1])&&(Z={row:S.line,column:S.ch-1})}return Z&&{pos:m(Z)}},this.refresh=function(){return this.ace.resize(!0)},this.getMode=function(){return{name:this.getOption("mode")}},this.execCommand=function(S){if(We.commands.hasOwnProperty(S))return We.commands[S](this);if(S=="indentAuto")return this.ace.execCommand("autoindent");console.log(S+" is not implemented")},this.getLineNumber=function(S){var P=this.$lineHandleChanges;if(!P)return null;for(var W=S.row,H=0;H<P.length;H++){var q=P[H];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(S){return this.$lineHandleChanges||(this.$lineHandleChanges=[]),{text:this.ace.session.getLine(S),row:S}},this.releaseLineHandles=function(){this.$lineHandleChanges=void 0},this.getLastEditEnd=function(){var S=this.ace.session.$undoManager;if(S&&S.$lastDelta)return m(S.$lastDelta.end)}}).call(We.prototype);var Ca=We.StringStream=function(y,T){this.pos=this.start=0,this.string=y,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(y){var T=this.string.charAt(this.pos);if(typeof y=="string")var S=T==y;else var S=T&&(y.test?y.test(T):y(T));if(S)return++this.pos,T},eatWhile:function(y){for(var T=this.pos;this.eat(y););return this.pos>T},eatSpace:function(){for(var y=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>y},skipToEnd:function(){this.pos=this.string.length},skipTo:function(y){var T=this.string.indexOf(y,this.pos);if(T>-1)return this.pos=T,!0},backUp:function(y){this.pos-=y},column:function(){throw"not implemented"},indentation:function(){throw"not implemented"},match:function(y,T,S){if(typeof y!="string"){var P=this.string.slice(this.pos).match(y);return P&&P.index>0?null:(P&&T!==!1&&(this.pos+=P[0].length),P)}var W=function(q){return S?q.toLowerCase():q},H=this.string.substr(this.pos,y.length);if(W(H)==W(y))return T!==!1&&(this.pos+=y.length),!0},current:function(){return this.string.slice(this.start,this.pos)},hideFirstChars:function(y,T){this.lineStart+=y;try{return T()}finally{this.lineStart-=y}}},We.defineExtension=function(y,T){We.prototype[y]=T},oo.importCssString(`.normal-mode .ace_cursor{
1408
1408
  border: none;
1409
1409
  background-color: rgba(255,0,0,0.5);
@@ -1437,44 +1437,44 @@ System.register(["vue","vue-router","single-spa","vuex","vuetify"],function(er,o
1437
1437
  width: 20em;
1438
1438
  color: inherit;
1439
1439
  font-family: monospace;
1440
- }`,"vimMode",!1),function(){function y(S,P,W){var H=S.ace.container,q;return q=H.appendChild(document.createElement("div")),W?q.className="ace_dialog ace_dialog-bottom":q.className="ace_dialog ace_dialog-top",typeof P=="string"?q.innerHTML=P:q.appendChild(P),q}function T(S,P){S.state.currentNotificationClose&&S.state.currentNotificationClose(),S.state.currentNotificationClose=P}We.defineExtension("openDialog",function(S,P,W){function H(be){if(typeof be=="string")re.value=be;else{if(Y||be&&be.type=="blur"&&document.activeElement===re)return;Z.state.dialog==q&&(Z.state.dialog=null,Z.focus()),Y=!0,q.remove(),W.onClose&&W.onClose(q);var ke=Z;ke.state.vim&&(ke.state.vim.status=null,ke.ace._signal("changeStatus"),ke.ace.renderer.$loop.schedule(ke.ace.renderer.CHANGE_CURSOR))}}if(!this.virtualSelectionMode()){W||(W={}),T(this,null);var q=y(this,S,W.bottom),Y=!1,Z=this;this.state.dialog=q;var re=q.getElementsByTagName("input")[0],ae;return re?(W.value&&(re.value=W.value,W.selectValueOnOpen!==!1&&re.select()),W.onInput&&We.on(re,"input",function(be){W.onInput(be,re.value,H)}),W.onKeyUp&&We.on(re,"keyup",function(be){W.onKeyUp(be,re.value,H)}),We.on(re,"keydown",function(be){W&&W.onKeyDown&&W.onKeyDown(be,re.value,H)||(be.keyCode==13&&P(re.value),(be.keyCode==27||W.closeOnEnter!==!1&&be.keyCode==13)&&(We.e_stop(be),H()))}),W.closeOnBlur!==!1&&We.on(re,"blur",H),re.focus()):(ae=q.getElementsByTagName("button")[0])&&(We.on(ae,"click",function(){H(),Z.focus()}),W.closeOnBlur!==!1&&We.on(ae,"blur",H),ae.focus()),H}}),We.defineExtension("openNotification",function(S,P){function W(){q||(q=!0,clearTimeout(Y),H.remove())}if(!this.virtualSelectionMode()){T(this,W);var H=y(this,S,P&&P.bottom),q=!1,Y,Z=P&&typeof P.duration<"u"?P.duration:5e3;return We.on(H,"click",function(re){We.e_preventDefault(re),W()}),Z&&(Y=setTimeout(W,Z)),W}})}();var Ne=We.Pos,Dn=[{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"}],No=Dn.length,_i=[{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"}],Zn=O(""),ka=/[\d]/,Do=[We.isWordChar,function(y){return y&&!We.isWordChar(y)&&!/\s/.test(y)}],Bi=[function(y){return/\S/.test(y)}],xo=["<",">"],nn=["-",'"',".",":","_","/","+"],Jt=/^\w$/,rn;try{rn=new RegExp("^[\\p{Lu}]$","u")}catch{rn=/^[A-Z]$/}var jt={};I("filetype",void 0,"string",["ft"],function(y,T){if(T!==void 0){if(y===void 0){var S=T.getOption("mode");return S=="null"?"":S}var S=y==""?"null":y;T.setOption("mode",S)}}),I("textwidth",80,"number",["tw"],function(y,T){if(T!==void 0){if(y===void 0){var S=T.getOption("textwidth");return S}var P=Math.round(y);P>1&&T.setOption("textwidth",P)}});var zi=function(){function y(Z,re,ae){function be(Oe){var Le=++W%P,qe=Y[Le];qe&&qe.clear(),Y[Le]=Z.setBookmark(Oe)}var ke=W%P,ve=Y[ke];if(ve){var we=ve.find();we&&!lt(we,re)&&be(re)}else be(re);be(ae),H=W,q=W-P+1,q<0&&(q=0)}function T(Z,re){W+=re,W>H?W=H:W<q&&(W=q);var ae=Y[(P+W)%P];if(ae&&!ae.find()){var be=re>0?1:-1,ke,ve=Z.getCursor();do if(W+=be,ae=Y[(P+W)%P],ae&&(ke=ae.find())&&!lt(ve,ke))break;while(W<H&&W>q)}return ae}function S(Z,re){var ae=W,be=T(Z,re);return W=ae,be&&be.find()}var P=100,W=-1,H=0,q=0,Y=new Array(P);return{cachedCursor:void 0,add:y,find:S,move:T}},Hn=function(y){return y?{changes:y.changes,expectCursorActivityForChange:y.expectCursorActivityForChange}:{changes:[],expectCursorActivityForChange:!1}};C.prototype={exitMacroRecordMode:function(){var y=He.macroModeState;y.onRecordingDone&&y.onRecordingDone(),y.onRecordingDone=void 0,y.isRecording=!1},enterMacroRecordMode:function(y,T){var S=He.registerController.getRegister(T);if(S){if(S.clear(),this.latestRegister=T,y.openDialog){var P=Pr("span",{class:"cm-vim-message"},"recording @"+T);this.onRecordingDone=y.openDialog(P,null,{bottom:!0})}this.isRecording=!0}}};var He,bn,bt={enterVimMode:h,leaveVimMode:d,buildKeyMap:function(){},getRegisterController:function(){return He.registerController},resetVimGlobalState_:D,getVimGlobalState_:function(){return He},maybeInitVimState_:L,suppressErrorLogging:!1,InsertModeKey:yo,map:function(y,T,S){Er.map(y,T,S)},unmap:function(y,T){return Er.unmap(y,T)},noremap:function(y,T,S){Er.map(y,T,S,!0)},mapclear:function(y){var T=Dn.length,S=No,P=Dn.slice(0,T-S);if(Dn=Dn.slice(T-S),y)for(var W=P.length-1;W>=0;W--){var H=P[W];if(y!==H.context)if(H.context)this._mapCommand(H);else{var q=["normal","insert","visual"];for(var Y in q)if(q[Y]!==y){var Z={};for(var re in H)Z[re]=H[re];Z.context=q[Y],this._mapCommand(Z)}}}},langmap:F,vimKeyFromEvent:z,setOption:_,getOption:k,defineOption:I,defineEx:function(y,T,S){if(!T)T=y;else if(y.indexOf(T)!==0)throw new Error('(Vim.defineEx) "'+T+'" is not a prefix of "'+y+'", command not registered');Bs[y]=S,Er.commandMap_[T]={name:y,shortName:T,type:"api"}},handleKey:function(y,T,S){var P=this.findKey(y,T,S);if(typeof P=="function")return P()},multiSelectHandleKey:Eo,findKey:function(y,T,S){function P(){var re=He.macroModeState;if(re.isRecording){if(T=="q")return re.exitMacroRecordMode(),A(y),!0;S!="mapping"&&ns(re,T)}}function W(){if(T=="<Esc>"){if(Y.visualMode)mn(y);else{if(!Y.insertMode)return;Fr(y)}return A(y),!0}}function H(){if(W())return!0;Y.inputState.keyBuffer.push(T);var re=Y.inputState.keyBuffer.join(""),ae=T.length==1,be=jn.matchCommand(re,Dn,Y.inputState,"insert"),ke=Y.inputState.changeQueue;if(be.type=="none")return A(y),!1;if(be.type=="partial"){if(be.expectLiteralNext&&(Y.expectLiteralNext=!0),bn&&window.clearTimeout(bn),bn=ae&&window.setTimeout(function(){Y.insertMode&&Y.inputState.keyBuffer.length&&A(y)},k("insertModeEscKeysTimeout")),ae){var ve=y.listSelections();(!ke||ke.removed.length!=ve.length)&&(ke=Y.inputState.changeQueue=new N),ke.inserted+=T;for(var we=0;we<ve.length;we++){var Oe=ct(ve[we].anchor,ve[we].head),Le=Yt(ve[we].anchor,ve[we].head),qe=y.getRange(Oe,y.state.overwrite?me(Le,0,1):Le);ke.removed[we]=(ke.removed[we]||"")+qe}}return!ae}if(Y.expectLiteralNext=!1,bn&&window.clearTimeout(bn),be.command&&ke){for(var ve=y.listSelections(),we=0;we<ve.length;we++){var at=ve[we].head;y.replaceRange(ke.removed[we]||"",me(at,0,-ke.inserted.length),at,"+input")}He.macroModeState.lastInsertModeChanges.changes.pop()}return be.command||A(y),be.command}function q(){if(P()||W())return!0;Y.inputState.keyBuffer.push(T);var re=Y.inputState.keyBuffer.join("");if(/^[1-9]\d*$/.test(re))return!0;var ae=/^(\d*)(.*)$/.exec(re);if(!ae)return A(y),!1;var be=Y.visualMode?"visual":"normal",ke=ae[2]||ae[1];Y.inputState.operatorShortcut&&Y.inputState.operatorShortcut.slice(-1)==ke&&(ke=Y.inputState.operatorShortcut);var ve=jn.matchCommand(ke,Dn,Y.inputState,be);return ve.type=="none"?(A(y),!1):ve.type=="partial"?(ve.expectLiteralNext&&(Y.expectLiteralNext=!0),!0):ve.type=="clear"?(A(y),!0):(Y.expectLiteralNext=!1,Y.inputState.keyBuffer.length=0,ae=/^(\d*)(.*)$/.exec(re),ae[1]&&ae[1]!="0"&&Y.inputState.pushRepeatDigit(ae[1]),ve.command)}var Y=L(y),Z;return Y.insertMode?Z=H():Z=q(),Z===!1?!Y.insertMode&&T.length===1?function(){return!0}:void 0:Z===!0?function(){return!0}:function(){if(!((Z.operator||Z.isEdit)&&y.getOption("readOnly")))return y.operation(function(){y.curOp.isVimOp=!0;try{Z.type=="keyToKey"?E(y,Z.toKeys,Z):jn.processCommand(y,Y,Z)}catch(re){throw y.state.vim=void 0,L(y),bt.suppressErrorLogging||console.log(re),re}return!0})}},handleEx:function(y,T){Er.processCommand(y,T)},defineMotion:J,defineAction:le,defineOperator:ne,mapCommand:Ns,_mapCommand:ts,defineRegister:U,exitVisualMode:mn,exitInsertMode:Fr},Qr=[],hn=!1,Sn,or={Return:"CR",Backspace:"BS",Delete:"Del",Escape:"Esc",Insert:"Ins",ArrowLeft:"Left",ArrowRight:"Right",ArrowUp:"Up",ArrowDown:"Down",Enter:"CR"," ":"Space"},Jr={Shift:1,Alt:1,Command:1,Control:1,CapsLock:1,AltGraph:1,Dead:1,Unidentified:1},Hi={};"Left|Right|Up|Down|End|Home".split("|").concat(Object.keys(or)).forEach(function(y){Hi[(or[y]||"").toLowerCase()]=Hi[y.toLowerCase()]=y}),I("langmap",void 0,"string",["lmap"],function(y,T){if(y===void 0)return Zn.string;F(y)}),$.prototype.pushRepeatDigit=function(y){this.operator?this.motionRepeat=this.motionRepeat.concat(y):this.prefixRepeat=this.prefixRepeat.concat(y)},$.prototype.getRepeat=function(){var y=0;return(this.prefixRepeat.length>0||this.motionRepeat.length>0)&&(y=1,this.prefixRepeat.length>0&&(y*=parseInt(this.prefixRepeat.join(""),10)),this.motionRepeat.length>0&&(y*=parseInt(this.motionRepeat.join(""),10))),y},B.prototype={setText:function(y,T,S){this.keyBuffer=[y||""],this.linewise=!!T,this.blockwise=!!S},pushText:function(y,T){T&&(this.linewise||this.keyBuffer.push(`
1440
+ }`,"vimMode",!1),function(){function y(S,P,W){var H=S.ace.container,q;return q=H.appendChild(document.createElement("div")),W?q.className="ace_dialog ace_dialog-bottom":q.className="ace_dialog ace_dialog-top",typeof P=="string"?q.innerHTML=P:q.appendChild(P),q}function T(S,P){S.state.currentNotificationClose&&S.state.currentNotificationClose(),S.state.currentNotificationClose=P}We.defineExtension("openDialog",function(S,P,W){function H(be){if(typeof be=="string")re.value=be;else{if(Y||be&&be.type=="blur"&&document.activeElement===re)return;Z.state.dialog==q&&(Z.state.dialog=null,Z.focus()),Y=!0,q.remove(),W.onClose&&W.onClose(q);var ke=Z;ke.state.vim&&(ke.state.vim.status=null,ke.ace._signal("changeStatus"),ke.ace.renderer.$loop.schedule(ke.ace.renderer.CHANGE_CURSOR))}}if(!this.virtualSelectionMode()){W||(W={}),T(this,null);var q=y(this,S,W.bottom),Y=!1,Z=this;this.state.dialog=q;var re=q.getElementsByTagName("input")[0],ae;return re?(W.value&&(re.value=W.value,W.selectValueOnOpen!==!1&&re.select()),W.onInput&&We.on(re,"input",function(be){W.onInput(be,re.value,H)}),W.onKeyUp&&We.on(re,"keyup",function(be){W.onKeyUp(be,re.value,H)}),We.on(re,"keydown",function(be){W&&W.onKeyDown&&W.onKeyDown(be,re.value,H)||(be.keyCode==13&&P(re.value),(be.keyCode==27||W.closeOnEnter!==!1&&be.keyCode==13)&&(We.e_stop(be),H()))}),W.closeOnBlur!==!1&&We.on(re,"blur",H),re.focus()):(ae=q.getElementsByTagName("button")[0])&&(We.on(ae,"click",function(){H(),Z.focus()}),W.closeOnBlur!==!1&&We.on(ae,"blur",H),ae.focus()),H}}),We.defineExtension("openNotification",function(S,P){function W(){q||(q=!0,clearTimeout(Y),H.remove())}if(!this.virtualSelectionMode()){T(this,W);var H=y(this,S,P&&P.bottom),q=!1,Y,Z=P&&typeof P.duration<"u"?P.duration:5e3;return We.on(H,"click",function(re){We.e_preventDefault(re),W()}),Z&&(Y=setTimeout(W,Z)),W}})}();var Ne=We.Pos,Dn=[{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"}],No=Dn.length,_i=[{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"}],Zn=O(""),ka=/[\d]/,Do=[We.isWordChar,function(y){return y&&!We.isWordChar(y)&&!/\s/.test(y)}],Bi=[function(y){return/\S/.test(y)}],Co=["<",">"],nn=["-",'"',".",":","_","/","+"],Jt=/^\w$/,rn;try{rn=new RegExp("^[\\p{Lu}]$","u")}catch{rn=/^[A-Z]$/}var Ut={};I("filetype",void 0,"string",["ft"],function(y,T){if(T!==void 0){if(y===void 0){var S=T.getOption("mode");return S=="null"?"":S}var S=y==""?"null":y;T.setOption("mode",S)}}),I("textwidth",80,"number",["tw"],function(y,T){if(T!==void 0){if(y===void 0){var S=T.getOption("textwidth");return S}var P=Math.round(y);P>1&&T.setOption("textwidth",P)}});var zi=function(){function y(Z,re,ae){function be(Oe){var Le=++W%P,qe=Y[Le];qe&&qe.clear(),Y[Le]=Z.setBookmark(Oe)}var ke=W%P,ve=Y[ke];if(ve){var we=ve.find();we&&!lt(we,re)&&be(re)}else be(re);be(ae),H=W,q=W-P+1,q<0&&(q=0)}function T(Z,re){W+=re,W>H?W=H:W<q&&(W=q);var ae=Y[(P+W)%P];if(ae&&!ae.find()){var be=re>0?1:-1,ke,ve=Z.getCursor();do if(W+=be,ae=Y[(P+W)%P],ae&&(ke=ae.find())&&!lt(ve,ke))break;while(W<H&&W>q)}return ae}function S(Z,re){var ae=W,be=T(Z,re);return W=ae,be&&be.find()}var P=100,W=-1,H=0,q=0,Y=new Array(P);return{cachedCursor:void 0,add:y,find:S,move:T}},Hn=function(y){return y?{changes:y.changes,expectCursorActivityForChange:y.expectCursorActivityForChange}:{changes:[],expectCursorActivityForChange:!1}};C.prototype={exitMacroRecordMode:function(){var y=He.macroModeState;y.onRecordingDone&&y.onRecordingDone(),y.onRecordingDone=void 0,y.isRecording=!1},enterMacroRecordMode:function(y,T){var S=He.registerController.getRegister(T);if(S){if(S.clear(),this.latestRegister=T,y.openDialog){var P=Pr("span",{class:"cm-vim-message"},"recording @"+T);this.onRecordingDone=y.openDialog(P,null,{bottom:!0})}this.isRecording=!0}}};var He,bn,bt={enterVimMode:h,leaveVimMode:d,buildKeyMap:function(){},getRegisterController:function(){return He.registerController},resetVimGlobalState_:D,getVimGlobalState_:function(){return He},maybeInitVimState_:L,suppressErrorLogging:!1,InsertModeKey:bo,map:function(y,T,S){Er.map(y,T,S)},unmap:function(y,T){return Er.unmap(y,T)},noremap:function(y,T,S){Er.map(y,T,S,!0)},mapclear:function(y){var T=Dn.length,S=No,P=Dn.slice(0,T-S);if(Dn=Dn.slice(T-S),y)for(var W=P.length-1;W>=0;W--){var H=P[W];if(y!==H.context)if(H.context)this._mapCommand(H);else{var q=["normal","insert","visual"];for(var Y in q)if(q[Y]!==y){var Z={};for(var re in H)Z[re]=H[re];Z.context=q[Y],this._mapCommand(Z)}}}},langmap:F,vimKeyFromEvent:z,setOption:_,getOption:k,defineOption:I,defineEx:function(y,T,S){if(!T)T=y;else if(y.indexOf(T)!==0)throw new Error('(Vim.defineEx) "'+T+'" is not a prefix of "'+y+'", command not registered');Bs[y]=S,Er.commandMap_[T]={name:y,shortName:T,type:"api"}},handleKey:function(y,T,S){var P=this.findKey(y,T,S);if(typeof P=="function")return P()},multiSelectHandleKey:Eo,findKey:function(y,T,S){function P(){var re=He.macroModeState;if(re.isRecording){if(T=="q")return re.exitMacroRecordMode(),A(y),!0;S!="mapping"&&ns(re,T)}}function W(){if(T=="<Esc>"){if(Y.visualMode)mn(y);else{if(!Y.insertMode)return;Fr(y)}return A(y),!0}}function H(){if(W())return!0;Y.inputState.keyBuffer.push(T);var re=Y.inputState.keyBuffer.join(""),ae=T.length==1,be=jn.matchCommand(re,Dn,Y.inputState,"insert"),ke=Y.inputState.changeQueue;if(be.type=="none")return A(y),!1;if(be.type=="partial"){if(be.expectLiteralNext&&(Y.expectLiteralNext=!0),bn&&window.clearTimeout(bn),bn=ae&&window.setTimeout(function(){Y.insertMode&&Y.inputState.keyBuffer.length&&A(y)},k("insertModeEscKeysTimeout")),ae){var ve=y.listSelections();(!ke||ke.removed.length!=ve.length)&&(ke=Y.inputState.changeQueue=new N),ke.inserted+=T;for(var we=0;we<ve.length;we++){var Oe=ct(ve[we].anchor,ve[we].head),Le=Xt(ve[we].anchor,ve[we].head),qe=y.getRange(Oe,y.state.overwrite?me(Le,0,1):Le);ke.removed[we]=(ke.removed[we]||"")+qe}}return!ae}if(Y.expectLiteralNext=!1,bn&&window.clearTimeout(bn),be.command&&ke){for(var ve=y.listSelections(),we=0;we<ve.length;we++){var at=ve[we].head;y.replaceRange(ke.removed[we]||"",me(at,0,-ke.inserted.length),at,"+input")}He.macroModeState.lastInsertModeChanges.changes.pop()}return be.command||A(y),be.command}function q(){if(P()||W())return!0;Y.inputState.keyBuffer.push(T);var re=Y.inputState.keyBuffer.join("");if(/^[1-9]\d*$/.test(re))return!0;var ae=/^(\d*)(.*)$/.exec(re);if(!ae)return A(y),!1;var be=Y.visualMode?"visual":"normal",ke=ae[2]||ae[1];Y.inputState.operatorShortcut&&Y.inputState.operatorShortcut.slice(-1)==ke&&(ke=Y.inputState.operatorShortcut);var ve=jn.matchCommand(ke,Dn,Y.inputState,be);return ve.type=="none"?(A(y),!1):ve.type=="partial"?(ve.expectLiteralNext&&(Y.expectLiteralNext=!0),!0):ve.type=="clear"?(A(y),!0):(Y.expectLiteralNext=!1,Y.inputState.keyBuffer.length=0,ae=/^(\d*)(.*)$/.exec(re),ae[1]&&ae[1]!="0"&&Y.inputState.pushRepeatDigit(ae[1]),ve.command)}var Y=L(y),Z;return Y.insertMode?Z=H():Z=q(),Z===!1?!Y.insertMode&&T.length===1?function(){return!0}:void 0:Z===!0?function(){return!0}:function(){if(!((Z.operator||Z.isEdit)&&y.getOption("readOnly")))return y.operation(function(){y.curOp.isVimOp=!0;try{Z.type=="keyToKey"?E(y,Z.toKeys,Z):jn.processCommand(y,Y,Z)}catch(re){throw y.state.vim=void 0,L(y),bt.suppressErrorLogging||console.log(re),re}return!0})}},handleEx:function(y,T){Er.processCommand(y,T)},defineMotion:J,defineAction:le,defineOperator:ne,mapCommand:Ns,_mapCommand:ts,defineRegister:U,exitVisualMode:mn,exitInsertMode:Fr},Qr=[],hn=!1,_n,or={Return:"CR",Backspace:"BS",Delete:"Del",Escape:"Esc",Insert:"Ins",ArrowLeft:"Left",ArrowRight:"Right",ArrowUp:"Up",ArrowDown:"Down",Enter:"CR"," ":"Space"},Jr={Shift:1,Alt:1,Command:1,Control:1,CapsLock:1,AltGraph:1,Dead:1,Unidentified:1},Hi={};"Left|Right|Up|Down|End|Home".split("|").concat(Object.keys(or)).forEach(function(y){Hi[(or[y]||"").toLowerCase()]=Hi[y.toLowerCase()]=y}),I("langmap",void 0,"string",["lmap"],function(y,T){if(y===void 0)return Zn.string;F(y)}),$.prototype.pushRepeatDigit=function(y){this.operator?this.motionRepeat=this.motionRepeat.concat(y):this.prefixRepeat=this.prefixRepeat.concat(y)},$.prototype.getRepeat=function(){var y=0;return(this.prefixRepeat.length>0||this.motionRepeat.length>0)&&(y=1,this.prefixRepeat.length>0&&(y*=parseInt(this.prefixRepeat.join(""),10)),this.motionRepeat.length>0&&(y*=parseInt(this.motionRepeat.join(""),10))),y},B.prototype={setText:function(y,T,S){this.keyBuffer=[y||""],this.linewise=!!T,this.blockwise=!!S},pushText:function(y,T){T&&(this.linewise||this.keyBuffer.push(`
1441
1441
  `),this.linewise=!0),this.keyBuffer.push(y)},pushInsertModeChanges:function(y){this.insertModeChanges.push(Hn(y))},pushSearchQuery:function(y){this.searchQueries.push(y)},clear:function(){this.keyBuffer=[],this.insertModeChanges=[],this.searchQueries=[],this.linewise=!1},toString:function(){return this.keyBuffer.join("")}},K.prototype={pushText:function(y,T,S,P,W){if(y!=="_"){P&&S.charAt(S.length-1)!==`
1442
1442
  `&&(S+=`
1443
1443
  `);var H=this.isValidRegister(y)?this.getRegister(y):null;if(!H){switch(T){case"yank":this.registers[0]=new B(S,P,W);break;case"delete":case"change":S.indexOf(`
1444
- `)==-1?this.registers["-"]=new B(S,P):(this.shiftNumericRegisters_(),this.registers[1]=new B(S,P))}this.unnamedRegister.setText(S,P,W);return}var q=s(y);q?H.pushText(S,P):H.setText(S,P,W),y==="+"&&typeof navigator<"u"&&typeof navigator.clipboard<"u"&&typeof navigator.clipboard.readText=="function"&&navigator.clipboard.writeText(S),this.unnamedRegister.setText(H.toString(),P)}},getRegister:function(y){return this.isValidRegister(y)?(y=y.toLowerCase(),this.registers[y]||(this.registers[y]=new B),this.registers[y]):this.unnamedRegister},isValidRegister:function(y){return y&&(x(y,nn)||Jt.test(y))},shiftNumericRegisters_:function(){for(var y=9;y>=2;y--)this.registers[y]=this.getRegister(""+(y-1))}},Q.prototype={nextMatch:function(y,T){var S=this.historyBuffer,P=T?-1:1;this.initialPrefix===null&&(this.initialPrefix=y);for(var W=this.iterator+P;T?W>=0:W<S.length;W+=P)for(var H=S[W],q=0;q<=H.length;q++)if(this.initialPrefix==H.substring(0,q))return this.iterator=W,H;if(W>=S.length)return this.iterator=S.length,this.initialPrefix;if(W<0)return y},pushInput:function(y){var T=this.historyBuffer.indexOf(y);T>-1&&this.historyBuffer.splice(T,1),y.length&&this.historyBuffer.push(y)},reset:function(){this.initialPrefix=null,this.iterator=this.historyBuffer.length}};var jn={matchCommand:function(y,T,S,P){var W=_e(y,T,P,S);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 H,q=0;q<W.full.length;q++){var Y=W.full[q];H||(H=Y)}if(H.keys.slice(-11)=="<character>"||H.keys.slice(-10)=="<register>"){var Z=Me(y);if(!Z||Z.length>1)return{type:"clear"};S.selectedCharacter=Z}return{type:"full",command:H}},processCommand:function(y,T,S){switch(T.inputState.repeatOverride=S.repeatOverride,S.type){case"motion":this.processMotion(y,T,S);break;case"operator":this.processOperator(y,T,S);break;case"operatorMotion":this.processOperatorMotion(y,T,S);break;case"action":this.processAction(y,T,S);break;case"search":this.processSearch(y,T,S);break;case"ex":case"keyToEx":this.processEx(y,T,S);break}},processMotion:function(y,T,S){T.inputState.motion=S.motion,T.inputState.motionArgs=de(S.motionArgs),this.evalInput(y,T)},processOperator:function(y,T,S){var P=T.inputState;if(P.operator){if(P.operator==S.operator){P.motion="expandToLine",P.motionArgs={linewise:!0},this.evalInput(y,T);return}A(y)}P.operator=S.operator,P.operatorArgs=de(S.operatorArgs),S.keys.length>1&&(P.operatorShortcut=S.keys),S.exitVisualBlock&&(T.visualBlock=!1,On(y)),T.visualMode&&this.evalInput(y,T)},processOperatorMotion:function(y,T,S){var P=T.visualMode,W=de(S.operatorMotionArgs);W&&P&&W.visualLine&&(T.visualLine=!0),this.processOperator(y,T,S),P||this.processMotion(y,T,S)},processAction:function(y,T,S){var P=T.inputState,W=P.getRepeat(),H=!!W,q=de(S.actionArgs)||{};P.selectedCharacter&&(q.selectedCharacter=P.selectedCharacter),S.operator&&this.processOperator(y,T,S),S.motion&&this.processMotion(y,T,S),(S.motion||S.operator)&&this.evalInput(y,T),q.repeat=W||1,q.repeatIsExplicit=H,q.registerName=P.registerName,A(y),T.lastMotion=null,S.isEdit&&this.recordLastEdit(T,P,S),Un[S.action](y,q,T)},processSearch:function(y,T,S){function P(Le,qe,at){He.searchHistoryController.pushInput(Le),He.searchHistoryController.reset();try{ze(y,Le,qe,at)}catch{Ot(y,"Invalid regex: "+Le),A(y);return}jn.processMotion(y,T,{type:"motion",motion:"findNext",motionArgs:{forward:!0,toJumplist:S.searchArgs.toJumplist}})}function W(Le){P(Le,!0,!0);var qe=He.macroModeState;qe.isRecording&&Ps(qe,Le)}function H(Le,qe,at){var Qe=z(Le),nt,wn;Qe=="<Up>"||Qe=="<Down>"?(nt=Qe=="<Up>",wn=Le.target?Le.target.selectionEnd:0,qe=He.searchHistoryController.nextMatch(qe,nt)||"",at(qe),wn&&Le.target&&(Le.target.selectionEnd=Le.target.selectionStart=Math.min(wn,Le.target.value.length))):Qe&&Qe!="<Left>"&&Qe!="<Right>"&&He.searchHistoryController.reset();var ut;try{ut=ze(y,qe,!0,!0)}catch{}ut?y.scrollIntoView(Gt(y,!Y,ut),30):(xr(y),y.scrollTo(be.left,be.top))}function q(Le,qe,at){var Qe=z(Le);Qe=="<Esc>"||Qe=="<C-c>"||Qe=="<C-[>"||Qe=="<BS>"&&qe==""?(He.searchHistoryController.pushInput(qe),He.searchHistoryController.reset(),ze(y,ae),xr(y),y.scrollTo(be.left,be.top),We.e_stop(Le),A(y),at(),y.focus()):Qe=="<Up>"||Qe=="<Down>"?We.e_stop(Le):Qe=="<C-u>"&&(We.e_stop(Le),at(""))}if(y.getSearchCursor){var Y=S.searchArgs.forward,Z=S.searchArgs.wholeWordOnly;An(y).setReversed(!Y);var re=Y?"/":"?",ae=An(y).getQuery(),be=y.getScrollInfo();switch(S.searchArgs.querySrc){case"prompt":var ke=He.macroModeState;if(ke.isPlaying){var Oe=ke.replaySearchQueries.shift();P(Oe,!0,!1)}else wr(y,{onClose:W,prefix:re,desc:"(JavaScript regexp)",onKeyUp:H,onKeyDown:q});break;case"wordUnderCursor":var ve=ln(y,{noSymbol:!0}),we=!0;if(ve||(ve=ln(y,{noSymbol:!1}),we=!1),!ve){Ot(y,"No word under cursor"),A(y);return}var Oe=y.getLine(ve.start.line).substring(ve.start.ch,ve.end.ch);we&&Z?Oe="\\b"+Oe+"\\b":Oe=un(Oe),He.jumpList.cachedCursor=y.getCursor(),y.setCursor(ve.start),P(Oe,!0,!1)}}},processEx:function(y,T,S){function P(H){He.exCommandHistoryController.pushInput(H),He.exCommandHistoryController.reset(),Er.processCommand(y,H),y.state.vim&&A(y)}function W(H,q,Y){var Z=z(H),re,ae;(Z=="<Esc>"||Z=="<C-c>"||Z=="<C-[>"||Z=="<BS>"&&q=="")&&(He.exCommandHistoryController.pushInput(q),He.exCommandHistoryController.reset(),We.e_stop(H),A(y),Y(),y.focus()),Z=="<Up>"||Z=="<Down>"?(We.e_stop(H),re=Z=="<Up>",ae=H.target?H.target.selectionEnd:0,q=He.exCommandHistoryController.nextMatch(q,re)||"",Y(q),ae&&H.target&&(H.target.selectionEnd=H.target.selectionStart=Math.min(ae,H.target.value.length))):Z=="<C-u>"?(We.e_stop(H),Y("")):Z&&Z!="<Left>"&&Z!="<Right>"&&He.exCommandHistoryController.reset()}S.type=="keyToEx"?Er.processCommand(y,S.exArgs.input):T.visualMode?wr(y,{onClose:P,prefix:":",value:"'<,'>",onKeyDown:W,selectValueOnOpen:!1}):wr(y,{onClose:P,prefix:":",onKeyDown:W})},evalInput:function(y,T){var S=T.inputState,P=S.motion,W=S.motionArgs||{},H=S.operator,q=S.operatorArgs||{},Y=S.registerName,Z=T.sel,re=Ge(T.visualMode?se(y,Z.head):y.getCursor("head")),ae=Ge(T.visualMode?se(y,Z.anchor):y.getCursor("anchor")),be=Ge(re),ke=Ge(ae),ve,we,Oe;if(H&&this.recordLastEdit(T,S),S.repeatOverride!==void 0?Oe=S.repeatOverride:Oe=S.getRepeat(),Oe>0&&W.explicitRepeat?W.repeatIsExplicit=!0:(W.noRepeat||!W.explicitRepeat&&Oe===0)&&(Oe=1,W.repeatIsExplicit=!1),S.selectedCharacter&&(W.selectedCharacter=q.selectedCharacter=S.selectedCharacter),W.repeat=Oe,A(y),P){var Le=mi[P](y,re,W,T,S);if(T.lastMotion=mi[P],!Le)return;if(W.toJumplist){!H&&y.ace.curOp!=null&&(y.ace.curOp.command.scrollIntoView="center-animate");var qe=He.jumpList,at=qe.cachedCursor;at?(Gr(y,at,Le),delete qe.cachedCursor):Gr(y,re,Le)}Le instanceof Array?(we=Le[0],ve=Le[1]):ve=Le,ve||(ve=Ge(re)),T.visualMode?((!T.visualBlock||ve.ch!==1/0)&&(ve=se(y,ve,be)),we&&(we=se(y,we)),we=we||ke,Z.anchor=we,Z.head=ve,On(y),Xr(y,T,"<",tt(we,ve)?we:ve),Xr(y,T,">",tt(we,ve)?ve:we)):H||(y.ace.curOp&&(y.ace.curOp.vimDialogScroll="center-animate"),ve=se(y,ve,be),y.setCursor(ve.line,ve.ch))}if(H){if(q.lastSel){we=ke;var Qe=q.lastSel,nt=Math.abs(Qe.head.line-Qe.anchor.line),wn=Math.abs(Qe.head.ch-Qe.anchor.ch);Qe.visualLine?ve=new Ne(ke.line+nt,ke.ch):Qe.visualBlock?ve=new Ne(ke.line+nt,ke.ch+wn):Qe.head.line==Qe.anchor.line?ve=new Ne(ke.line,ke.ch+wn):ve=new Ne(ke.line+nt,ke.ch),T.visualMode=!0,T.visualLine=Qe.visualLine,T.visualBlock=Qe.visualBlock,Z=T.sel={anchor:we,head:ve},On(y)}else T.visualMode&&(q.lastSel={anchor:Ge(Z.anchor),head:Ge(Z.head),visualBlock:T.visualBlock,visualLine:T.visualLine});var ut,Mn,xt,$t,sr;if(T.visualMode){ut=ct(Z.head,Z.anchor),Mn=Yt(Z.head,Z.anchor),xt=T.visualLine||q.linewise,$t=T.visualBlock?"block":xt?"line":"char";var Sr=w(y,ut,Mn);if(sr=yr(y,{anchor:Sr.start,head:Sr.end},$t),xt){var In=sr.ranges;if($t=="block")for(var V=0;V<In.length;V++)In[V].head.ch=Wt(y,In[V].head.line);else $t=="line"&&(In[0].head=new Ne(In[0].head.line+1,0))}}else{if(ut=Ge(we||ke),Mn=Ge(ve||be),tt(Mn,ut)){var X=ut;ut=Mn,Mn=X}xt=W.linewise||q.linewise,xt?Nn(y,ut,Mn):W.forward&&Wn(y,ut,Mn),$t="char";var ie=!W.inclusive||xt,Sr=w(y,ut,Mn);sr=yr(y,{anchor:Sr.start,head:Sr.end},$t,ie)}y.setSelections(sr.ranges,sr.primary),T.lastMotion=null,q.repeat=Oe,q.registerName=Y,q.linewise=xt;var oe=cs[H](y,q,sr.ranges,ke,ve);T.visualMode&&mn(y,oe!=null),oe&&y.setCursor(oe)}},recordLastEdit:function(y,T,S){var P=He.macroModeState;P.isPlaying||(y.lastEditInputState=T,y.lastEditActionCommand=S,P.lastInsertModeChanges.changes=[],P.lastInsertModeChanges.expectCursorActivityForChange=!1,P.lastInsertModeChanges.visualBlock=y.visualBlock?y.sel.head.line-y.sel.anchor.line:0)}},mi={moveToTopLine:function(y,T,S){var P=zn(y).top+S.repeat-1;return new Ne(P,Kt(y.getLine(P)))},moveToMiddleLine:function(y){var T=zn(y),S=Math.floor((T.top+T.bottom)*.5);return new Ne(S,Kt(y.getLine(S)))},moveToBottomLine:function(y,T,S){var P=zn(y).bottom-S.repeat+1;return new Ne(P,Kt(y.getLine(P)))},expandToLine:function(y,T,S){var P=T;return new Ne(P.line+S.repeat-1,1/0)},findNext:function(y,T,S){var P=An(y),W=P.getQuery();if(W){var H=!S.forward;return H=P.isReversed()?!H:H,_t(y,W),Gt(y,H,W,S.repeat)}},findAndSelectNextInclusive:function(y,T,S,P,W){var H=An(y),q=H.getQuery();if(q){var Y=!S.forward;Y=H.isReversed()?!Y:Y;var Z=Ht(y,Y,q,S.repeat,P);if(Z){if(W.operator)return Z;var re=Z[0],ae=new Ne(Z[1].line,Z[1].ch-1);if(P.visualMode){(P.visualLine||P.visualBlock)&&(P.visualLine=!1,P.visualBlock=!1,We.signal(y,"vim-mode-change",{mode:"visual",subMode:""}));var be=P.sel.anchor;if(be)return H.isReversed()?S.forward?[be,re]:[be,ae]:S.forward?[be,ae]:[be,re]}else P.visualMode=!0,P.visualLine=!1,P.visualBlock=!1,We.signal(y,"vim-mode-change",{mode:"visual",subMode:""});return Y?[ae,re]:[re,ae]}}},goToMark:function(y,T,S,P){var W=Cr(y,P,S.selectedCharacter);return W?S.linewise?{line:W.line,ch:Kt(y.getLine(W.line))}:W:null},moveToOtherHighlightedEnd:function(y,T,S,P){if(P.visualBlock&&S.sameLine){var W=P.sel;return[se(y,new Ne(W.anchor.line,W.head.ch)),se(y,new Ne(W.head.line,W.anchor.ch))]}return[P.sel.head,P.sel.anchor]},jumpToMark:function(y,T,S,P){for(var W=T,H=0;H<S.repeat;H++){var q=W;for(var Y in P.marks)if(u(Y)){var Z=P.marks[Y].find(),re=S.forward?tt(Z,q):tt(q,Z);if(!re&&!(S.linewise&&Z.line==q.line)){var ae=lt(q,W),be=S.forward?Cn(q,Z,W):Cn(W,Z,q);(ae||be)&&(W=Z)}}}return S.linewise&&(W=new Ne(W.line,Kt(y.getLine(W.line)))),W},moveByCharacters:function(y,T,S){var P=T,W=S.repeat,H=S.forward?P.ch+W:P.ch-W;return new Ne(P.line,H)},moveByLines:function(y,T,S,P){var W=T,H=W.ch;switch(P.lastMotion){case this.moveByLines:case this.moveByDisplayLines:case this.moveByScroll:case this.moveToColumn:case this.moveToEol:H=P.lastHPos;break;default:P.lastHPos=H}var q=S.repeat+(S.repeatOffset||0),Y=S.forward?W.line+q:W.line-q,Z=y.firstLine(),re=y.lastLine();if(Y<Z&&W.line==Z)return this.moveToStartOfLine(y,T,S,P);if(Y>re&&W.line==re)return ro(y,T,S,P,!0);var ae=y.ace.session.getFoldLine(Y);return ae&&(S.forward?Y>ae.start.row&&(Y=ae.end.row+1):Y=ae.start.row),S.toFirstChar&&(H=Kt(y.getLine(Y)),P.lastHPos=H),P.lastHSPos=y.charCoords(new Ne(Y,H),"div").left,new Ne(Y,H)},moveByDisplayLines:function(y,T,S,P){var W=T;switch(P.lastMotion){case this.moveByDisplayLines:case this.moveByScroll:case this.moveByLines:case this.moveToColumn:case this.moveToEol:break;default:P.lastHSPos=y.charCoords(W,"div").left}var H=S.repeat,Z=y.findPosV(W,S.forward?H:-H,"line",P.lastHSPos);if(Z.hitSide)if(S.forward)var q=y.charCoords(Z,"div"),Y={top:q.top+8,left:P.lastHSPos},Z=y.coordsChar(Y,"div");else{var re=y.charCoords(new Ne(y.firstLine(),0),"div");re.left=P.lastHSPos,Z=y.coordsChar(re,"div")}return P.lastHPos=Z.ch,Z},moveByPage:function(y,T,S){var P=T,W=S.repeat;return y.findPosV(P,S.forward?W:-W,"page")},moveByParagraph:function(y,T,S){var P=S.forward?1:-1;return hi(y,T,S.repeat,P)},moveBySentence:function(y,T,S){var P=S.forward?1:-1;return di(y,T,S.repeat,P)},moveByScroll:function(y,T,S,P){var W=y.getScrollInfo(),H=null,q=S.repeat;q||(q=W.clientHeight/(2*y.defaultTextHeight()));var Y=y.charCoords(T,"local");if(S.repeat=q,H=mi.moveByDisplayLines(y,T,S,P),!H)return null;var Z=y.charCoords(H,"local");return y.scrollTo(null,W.top+Z.top-Y.top),H},moveByWords:function(y,T,S){return Bn(y,T,S.repeat,!!S.forward,!!S.wordEnd,!!S.bigWord)},moveTillCharacter:function(y,T,S){var P=S.repeat,W=ui(y,P,S.forward,S.selectedCharacter,T),H=S.forward?-1:1;return Yr(H,S),W?(W.ch+=H,W):null},moveToCharacter:function(y,T,S){var P=S.repeat;return Yr(0,S),ui(y,P,S.forward,S.selectedCharacter,T)||T},moveToSymbol:function(y,T,S){var P=S.repeat;return Si(y,P,S.forward,S.selectedCharacter)||T},moveToColumn:function(y,T,S,P){var W=S.repeat;return P.lastHPos=W-1,P.lastHSPos=y.charCoords(T,"div").left,Os(y,W)},moveToEol:function(y,T,S,P){return ro(y,T,S,P,!1)},moveToFirstNonWhiteSpaceCharacter:function(y,T){var S=T;return new Ne(S.line,Kt(y.getLine(S.line)))},moveToMatchedSymbol:function(y,T){for(var S=T,P=S.line,W=S.ch,H=y.getLine(P),q;W<H.length;W++)if(q=H.charAt(W),q&&c(q)){var Y=y.getTokenTypeAt(new Ne(P,W+1));if(Y!=="string"&&Y!=="comment")break}if(W<H.length){var Z=/[<>]/.test(H[W])?/[(){}[\]<>]/:/[(){}[\]]/,re=y.findMatchingBracket(new Ne(P,W+1),{bracketRegex:Z});return re.to}return S},moveToStartOfLine:function(y,T){return new Ne(T.line,0)},moveToLineOrEdgeOfDocument:function(y,T,S){var P=S.forward?y.lastLine():y.firstLine();return S.repeatIsExplicit&&(P=S.repeat-y.getOption("firstLineNumber")),new Ne(P,Kt(y.getLine(P)))},moveToStartOfDisplayLine:function(y){return y.execCommand("goLineLeft"),y.getCursor()},moveToEndOfDisplayLine:function(y){y.execCommand("goLineRight");var T=y.getCursor();return T.sticky=="before"&&T.ch--,T},textObjectManipulation:function(y,T,S,P){var W={"(":")",")":"(","{":"}","}":"{","[":"]","]":"[","<":">",">":"<"},H={"'":!0,'"':!0,"`":!0},q=S.selectedCharacter;q=="b"?q="(":q=="B"&&(q="{");var Y=!S.textObjectInner,Z,re;if(W[q]){if(re=!0,Z=kn(y,T,q,Y),!Z){var ae=y.getSearchCursor(new RegExp("\\"+q,"g"),T);ae.find()&&(Z=kn(y,ae.from(),q,Y))}}else if(H[q])re=!0,Z=dr(y,T,q,Y);else if(q==="W"||q==="w")for(var be=S.repeat||1;be-- >0;){var ke=ln(y,{inclusive:Y,innerWord:!Y,bigWord:q==="W",noSymbol:q==="W",multiline:!0},Z&&Z.end);ke&&(Z||(Z=ke),Z.end=ke.end)}else if(q==="p")if(Z=hi(y,T,S.repeat,0,Y),S.linewise=!0,P.visualMode)P.visualLine||(P.visualLine=!0);else{var ve=P.inputState.operatorArgs;ve&&(ve.linewise=!0),Z.end.line--}else if(q==="t")Z=Dr(y,T,Y);else if(q==="s"){var we=y.getLine(T.line);T.ch>0&&b(we[T.ch])&&(T.ch-=1);var Oe=Jo(y,T,S.repeat,1,Y),Le=Jo(y,T,S.repeat,-1,Y);p(y.getLine(Le.line)[Le.ch])&&p(y.getLine(Oe.line)[Oe.ch-1])&&(Le={line:Le.line,ch:Le.ch+1}),Z={start:Le,end:Oe}}return Z?y.state.vim.visualMode?Qt(y,Z.start,Z.end,re):[Z.start,Z.end]:null},repeatLastCharacterSearch:function(y,T,S){var P=He.lastCharacterSearch,W=S.repeat,H=S.forward===P.forward,q=(P.increment?1:0)*(H?-1:1);y.moveH(-q,"char"),S.inclusive=!!H;var Y=ui(y,W,H,P.selectedCharacter);return Y?(Y.ch+=q,Y):(y.moveH(q,"char"),T)}},cs={change:function(y,T,S){var P,W,H=y.state.vim,q=S[0].anchor,Y=S[0].head;if(H.visualMode)if(T.fullLine)Y.ch=Number.MAX_VALUE,Y.line--,y.setSelection(q,Y),W=y.getSelection(),y.replaceSelection(""),P=q;else{W=y.getSelection();var Z=he("",S.length);y.replaceSelections(Z),P=ct(S[0].head,S[0].anchor)}else{W=y.getRange(q,Y);var re=H.lastEditInputState||{};if(re.motion=="moveByWords"&&!p(W)){var ae=/\s+$/.exec(W);ae&&re.motionArgs&&re.motionArgs.forward&&(Y=me(Y,0,-ae[0].length),W=W.slice(0,-ae[0].length))}T.linewise&&(q=new Ne(q.line,Kt(y.getLine(q.line))),Y.line>q.line&&(Y=new Ne(Y.line-1,Number.MAX_VALUE))),y.replaceRange("",q,Y),P=q}He.registerController.pushText(T.registerName,"change",W,T.linewise,S.length>1),Un.enterInsertMode(y,{head:P},y.state.vim)},delete:function(y,T,S){var P,W,H=y.state.vim;if(H.visualBlock){W=y.getSelection();var q=he("",S.length);y.replaceSelections(q),P=ct(S[0].head,S[0].anchor)}else{var Y=S[0].anchor,Z=S[0].head;T.linewise&&Z.line!=y.firstLine()&&Y.line==y.lastLine()&&Y.line==Z.line-1&&(Y.line==y.firstLine()?Y.ch=0:Y=new Ne(Y.line-1,Wt(y,Y.line-1))),W=y.getRange(Y,Z),y.replaceRange("",Y,Z),P=Y,T.linewise&&(P=mi.moveToFirstNonWhiteSpaceCharacter(y,Y))}return He.registerController.pushText(T.registerName,"delete",W,T.linewise,H.visualBlock),se(y,P)},indent:function(y,T,S){var P=y.state.vim,W=P.visualMode?T.repeat:1;if(P.visualBlock){for(var H=y.getOption("tabSize"),q=y.getOption("indentWithTabs")?" ":" ".repeat(H),Y,Z=S.length-1;Z>=0;Z--)if(Y=ct(S[Z].anchor,S[Z].head),T.indentRight)y.replaceRange(q.repeat(W),Y,Y);else{for(var re=y.getLine(Y.line),ae=0,be=0;be<W;be++){var ke=re[Y.ch+ae];if(ke==" ")ae++;else{if(ke!=" ")break;ae++;for(var ve=1;ve<q.length&&(ke=re[Y.ch+ae],ke===" ");ve++)ae++}}y.replaceRange("",Y,me(Y,0,ae))}return Y}if(y.indentMore)for(var be=0;be<W;be++)T.indentRight?y.indentMore():y.indentLess();else{var we=S[0].anchor.line,Oe=P.visualBlock?S[S.length-1].anchor.line:S[0].head.line;T.linewise&&Oe--;for(var Z=we;Z<=Oe;Z++)for(var be=0;be<W;be++)y.indentLine(Z,T.indentRight)}return mi.moveToFirstNonWhiteSpaceCharacter(y,S[0].anchor)},indentAuto:function(y,T,S){return y.execCommand("indentAuto"),mi.moveToFirstNonWhiteSpaceCharacter(y,S[0].anchor)},hardWrap:function(y,T,S,P,W){if(y.hardWrap){var H=S[0].anchor.line,q=S[0].head.line;T.linewise&&q--;var Y=y.hardWrap({from:H,to:q});return Y>H&&T.linewise&&Y--,T.keepCursor?P:new Ne(Y,0)}},changeCase:function(y,T,S,P,W){for(var H=y.getSelections(),q=[],Y=T.toLower,Z=0;Z<H.length;Z++){var re=H[Z],ae="";if(Y===!0)ae=re.toLowerCase();else if(Y===!1)ae=re.toUpperCase();else for(var be=0;be<re.length;be++){var ke=re.charAt(be);ae+=s(ke)?ke.toLowerCase():ke.toUpperCase()}q.push(ae)}return y.replaceSelections(q),T.shouldMoveCursor?W:!y.state.vim.visualMode&&T.linewise&&S[0].anchor.line+1==S[0].head.line?mi.moveToFirstNonWhiteSpaceCharacter(y,P):T.linewise?P:ct(S[0].anchor,S[0].head)},yank:function(y,T,S,P){var W=y.state.vim,H=y.getSelection(),q=W.visualMode?ct(W.sel.anchor,W.sel.head,S[0].head,S[0].anchor):P;return He.registerController.pushText(T.registerName,"yank",H,T.linewise,W.visualBlock),q}},Un={jumpListWalk:function(y,T,S){if(!S.visualMode){var P=T.repeat,W=T.forward,H=He.jumpList,q=H.move(y,W?P:-P),Y=q?q.find():void 0;Y=Y||y.getCursor(),y.setCursor(Y),y.ace.curOp.command.scrollIntoView="center-animate"}},scroll:function(y,T,S){if(!S.visualMode){var P=T.repeat||1,W=y.defaultTextHeight(),H=y.getScrollInfo().top,q=W*P,Y=T.forward?H+q:H-q,Z=Ge(y.getCursor()),re=y.charCoords(Z,"local");if(T.forward)Y>re.top?(Z.line+=(Y-re.top)/W,Z.line=Math.ceil(Z.line),y.setCursor(Z),re=y.charCoords(Z,"local"),y.scrollTo(null,re.top)):y.scrollTo(null,Y);else{var ae=Y+y.getScrollInfo().clientHeight;ae<re.bottom?(Z.line-=(re.bottom-ae)/W,Z.line=Math.floor(Z.line),y.setCursor(Z),re=y.charCoords(Z,"local"),y.scrollTo(null,re.bottom-y.getScrollInfo().clientHeight)):y.scrollTo(null,Y)}}},scrollToCursor:function(y,T){var S=y.getCursor().line,P=y.charCoords(new Ne(S,0),"local"),W=y.getScrollInfo().clientHeight,H=P.top;switch(T.position){case"center":H=P.bottom-W/2;break;case"bottom":var q=new Ne(S,y.getLine(S).length-1),Y=y.charCoords(q,"local"),Z=Y.bottom-H;H=H-W+Z}y.scrollTo(null,H)},replayMacro:function(y,T,S){var P=T.selectedCharacter,W=T.repeat,H=He.macroModeState;for(P=="@"?P=H.latestRegister:H.latestRegister=P;W--;)Ds(y,S,H,P)},enterMacroRecordMode:function(y,T){var S=He.macroModeState,P=T.selectedCharacter;He.registerController.isValidRegister(P)&&S.enterMacroRecordMode(y,P)},toggleOverwrite:function(y){y.state.overwrite?(y.toggleOverwrite(!1),y.setOption("keyMap","vim-insert"),We.signal(y,"vim-mode-change",{mode:"insert"})):(y.toggleOverwrite(!0),y.setOption("keyMap","vim-replace"),We.signal(y,"vim-mode-change",{mode:"replace"}))},enterInsertMode:function(y,T,S){if(!y.getOption("readOnly")){S.insertMode=!0,S.insertModeRepeat=T&&T.repeat||1;var P=T?T.insertAt:null,W=S.sel,H=T.head||y.getCursor("head"),q=y.listSelections().length;if(P=="eol")H=new Ne(H.line,Wt(y,H.line));else if(P=="bol")H=new Ne(H.line,0);else if(P=="charAfter"){var Y=w(y,H,me(H,0,1));H=Y.end}else if(P=="firstNonBlank"){var Y=w(y,H,mi.moveToFirstNonWhiteSpaceCharacter(y,H));H=Y.end}else if(P=="startOfSelectedArea"){if(!S.visualMode)return;S.visualBlock?(H=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?H=W.head:H=new Ne(W.anchor.line,0)}else if(P=="endOfSelectedArea"){if(!S.visualMode)return;S.visualBlock?(H=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?H=me(W.head,0,1):H=new Ne(W.anchor.line,0)}else if(P=="inplace"){if(S.visualMode)return}else P=="lastEdit"&&(H=vn(y)||H);y.setOption("disableInput",!1),T&&T.replace?(y.toggleOverwrite(!0),y.setOption("keyMap","vim-replace"),We.signal(y,"vim-mode-change",{mode:"replace"})):(y.toggleOverwrite(!1),y.setOption("keyMap","vim-insert"),We.signal(y,"vim-mode-change",{mode:"insert"})),He.macroModeState.isPlaying||(y.on("change",Io),S.insertEnd&&S.insertEnd.clear(),S.insertEnd=y.setBookmark(H,{insertLeft:!0}),We.on(y.getInputField(),"keydown",Fs)),S.visualMode&&mn(y),Mr(y,H,q)}},toggleVisualMode:function(y,T,S){var P=T.repeat,W=y.getCursor(),H;if(S.visualMode)S.visualLine^T.linewise||S.visualBlock^T.blockwise?(S.visualLine=!!T.linewise,S.visualBlock=!!T.blockwise,We.signal(y,"vim-mode-change",{mode:"visual",subMode:S.visualLine?"linewise":S.visualBlock?"blockwise":""}),On(y)):mn(y);else{S.visualMode=!0,S.visualLine=!!T.linewise,S.visualBlock=!!T.blockwise,H=se(y,new Ne(W.line,W.ch+P-1));var q=w(y,W,H);S.sel={anchor:q.start,head:q.end},We.signal(y,"vim-mode-change",{mode:"visual",subMode:S.visualLine?"linewise":S.visualBlock?"blockwise":""}),On(y),Xr(y,S,"<",ct(W,H)),Xr(y,S,">",Yt(W,H))}},reselectLastSelection:function(y,T,S){var P=S.lastSelection;if(S.visualMode&&Lt(y,S),P){var W=P.anchorMark.find(),H=P.headMark.find();if(!W||!H)return;S.sel={anchor:W,head:H},S.visualMode=!0,S.visualLine=P.visualLine,S.visualBlock=P.visualBlock,On(y),Xr(y,S,"<",ct(W,H)),Xr(y,S,">",Yt(W,H)),We.signal(y,"vim-mode-change",{mode:"visual",subMode:S.visualLine?"linewise":S.visualBlock?"blockwise":""})}},joinLines:function(y,T,S){var P,W;if(S.visualMode){if(P=y.getCursor("anchor"),W=y.getCursor("head"),tt(W,P)){var H=W;W=P,P=H}W.ch=Wt(y,W.line)-1}else{var q=Math.max(T.repeat,2);P=y.getCursor(),W=se(y,new Ne(P.line+q-1,1/0))}for(var Y=0,Z=P.line;Z<W.line;Z++){Y=Wt(y,P.line);var re="",ae=0;if(!T.keepSpaces){var be=y.getLine(P.line+1);ae=be.search(/\S/),ae==-1?ae=be.length:re=" "}y.replaceRange(re,new Ne(P.line,Y),new Ne(P.line+1,ae))}var ke=se(y,new Ne(P.line,Y));S.visualMode&&mn(y,!1),y.setCursor(ke)},newLineAndEnterInsertMode:function(y,T,S){S.insertMode=!0;var P=Ge(y.getCursor());if(P.line===y.firstLine()&&!T.after)y.replaceRange(`
1445
- `,new Ne(y.firstLine(),0)),y.setCursor(y.firstLine(),0);else{P.line=T.after?P.line:P.line-1,P.ch=Wt(y,P.line),y.setCursor(P);var W=We.commands.newlineAndIndentContinueComment||We.commands.newlineAndIndent;W(y)}this.enterInsertMode(y,{repeat:T.repeat},S)},paste:function(y,T,S){var P=this,W=He.registerController.getRegister(T.registerName),H=function(){var q=W.toString();P.continuePaste(y,T,S,q,W)};T.registerName==="+"&&typeof navigator<"u"&&typeof navigator.clipboard<"u"&&typeof navigator.clipboard.readText=="function"?navigator.clipboard.readText().then(function(q){P.continuePaste(y,T,S,q,W)},function(){H()}):H()},continuePaste:function(y,T,S,P,W){var H=Ge(y.getCursor());if(P){if(T.matchIndent){var q=y.getOption("tabSize"),Y=function(In){var V=In.split(" ").length-1,X=In.split(" ").length-1;return V*q+X*1},Z=y.getLine(y.getCursor().line),re=Y(Z.match(/^\s*/)[0]),ae=P.replace(/\n$/,""),be=P!==ae,ke=Y(P.match(/^\s*/)[0]),P=ae.replace(/^\s*/gm,function(In){var V=re+(Y(In)-ke);if(V<0)return"";if(y.getOption("indentWithTabs")){var X=Math.floor(V/q);return Array(X+1).join(" ")}return Array(V+1).join(" ")});P+=be?`
1444
+ `)==-1?this.registers["-"]=new B(S,P):(this.shiftNumericRegisters_(),this.registers[1]=new B(S,P))}this.unnamedRegister.setText(S,P,W);return}var q=s(y);q?H.pushText(S,P):H.setText(S,P,W),y==="+"&&typeof navigator<"u"&&typeof navigator.clipboard<"u"&&typeof navigator.clipboard.readText=="function"&&navigator.clipboard.writeText(S),this.unnamedRegister.setText(H.toString(),P)}},getRegister:function(y){return this.isValidRegister(y)?(y=y.toLowerCase(),this.registers[y]||(this.registers[y]=new B),this.registers[y]):this.unnamedRegister},isValidRegister:function(y){return y&&(x(y,nn)||Jt.test(y))},shiftNumericRegisters_:function(){for(var y=9;y>=2;y--)this.registers[y]=this.getRegister(""+(y-1))}},Q.prototype={nextMatch:function(y,T){var S=this.historyBuffer,P=T?-1:1;this.initialPrefix===null&&(this.initialPrefix=y);for(var W=this.iterator+P;T?W>=0:W<S.length;W+=P)for(var H=S[W],q=0;q<=H.length;q++)if(this.initialPrefix==H.substring(0,q))return this.iterator=W,H;if(W>=S.length)return this.iterator=S.length,this.initialPrefix;if(W<0)return y},pushInput:function(y){var T=this.historyBuffer.indexOf(y);T>-1&&this.historyBuffer.splice(T,1),y.length&&this.historyBuffer.push(y)},reset:function(){this.initialPrefix=null,this.iterator=this.historyBuffer.length}};var jn={matchCommand:function(y,T,S,P){var W=_e(y,T,P,S);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 H,q=0;q<W.full.length;q++){var Y=W.full[q];H||(H=Y)}if(H.keys.slice(-11)=="<character>"||H.keys.slice(-10)=="<register>"){var Z=Me(y);if(!Z||Z.length>1)return{type:"clear"};S.selectedCharacter=Z}return{type:"full",command:H}},processCommand:function(y,T,S){switch(T.inputState.repeatOverride=S.repeatOverride,S.type){case"motion":this.processMotion(y,T,S);break;case"operator":this.processOperator(y,T,S);break;case"operatorMotion":this.processOperatorMotion(y,T,S);break;case"action":this.processAction(y,T,S);break;case"search":this.processSearch(y,T,S);break;case"ex":case"keyToEx":this.processEx(y,T,S);break}},processMotion:function(y,T,S){T.inputState.motion=S.motion,T.inputState.motionArgs=de(S.motionArgs),this.evalInput(y,T)},processOperator:function(y,T,S){var P=T.inputState;if(P.operator){if(P.operator==S.operator){P.motion="expandToLine",P.motionArgs={linewise:!0},this.evalInput(y,T);return}A(y)}P.operator=S.operator,P.operatorArgs=de(S.operatorArgs),S.keys.length>1&&(P.operatorShortcut=S.keys),S.exitVisualBlock&&(T.visualBlock=!1,Tn(y)),T.visualMode&&this.evalInput(y,T)},processOperatorMotion:function(y,T,S){var P=T.visualMode,W=de(S.operatorMotionArgs);W&&P&&W.visualLine&&(T.visualLine=!0),this.processOperator(y,T,S),P||this.processMotion(y,T,S)},processAction:function(y,T,S){var P=T.inputState,W=P.getRepeat(),H=!!W,q=de(S.actionArgs)||{};P.selectedCharacter&&(q.selectedCharacter=P.selectedCharacter),S.operator&&this.processOperator(y,T,S),S.motion&&this.processMotion(y,T,S),(S.motion||S.operator)&&this.evalInput(y,T),q.repeat=W||1,q.repeatIsExplicit=H,q.registerName=P.registerName,A(y),T.lastMotion=null,S.isEdit&&this.recordLastEdit(T,P,S),Un[S.action](y,q,T)},processSearch:function(y,T,S){function P(Le,qe,at){He.searchHistoryController.pushInput(Le),He.searchHistoryController.reset();try{ze(y,Le,qe,at)}catch{Ot(y,"Invalid regex: "+Le),A(y);return}jn.processMotion(y,T,{type:"motion",motion:"findNext",motionArgs:{forward:!0,toJumplist:S.searchArgs.toJumplist}})}function W(Le){P(Le,!0,!0);var qe=He.macroModeState;qe.isRecording&&Ps(qe,Le)}function H(Le,qe,at){var Qe=z(Le),nt,wn;Qe=="<Up>"||Qe=="<Down>"?(nt=Qe=="<Up>",wn=Le.target?Le.target.selectionEnd:0,qe=He.searchHistoryController.nextMatch(qe,nt)||"",at(qe),wn&&Le.target&&(Le.target.selectionEnd=Le.target.selectionStart=Math.min(wn,Le.target.value.length))):Qe&&Qe!="<Left>"&&Qe!="<Right>"&&He.searchHistoryController.reset();var ut;try{ut=ze(y,qe,!0,!0)}catch{}ut?y.scrollIntoView(Yt(y,!Y,ut),30):(xr(y),y.scrollTo(be.left,be.top))}function q(Le,qe,at){var Qe=z(Le);Qe=="<Esc>"||Qe=="<C-c>"||Qe=="<C-[>"||Qe=="<BS>"&&qe==""?(He.searchHistoryController.pushInput(qe),He.searchHistoryController.reset(),ze(y,ae),xr(y),y.scrollTo(be.left,be.top),We.e_stop(Le),A(y),at(),y.focus()):Qe=="<Up>"||Qe=="<Down>"?We.e_stop(Le):Qe=="<C-u>"&&(We.e_stop(Le),at(""))}if(y.getSearchCursor){var Y=S.searchArgs.forward,Z=S.searchArgs.wholeWordOnly;Sn(y).setReversed(!Y);var re=Y?"/":"?",ae=Sn(y).getQuery(),be=y.getScrollInfo();switch(S.searchArgs.querySrc){case"prompt":var ke=He.macroModeState;if(ke.isPlaying){var Oe=ke.replaySearchQueries.shift();P(Oe,!0,!1)}else wr(y,{onClose:W,prefix:re,desc:"(JavaScript regexp)",onKeyUp:H,onKeyDown:q});break;case"wordUnderCursor":var ve=ln(y,{noSymbol:!0}),we=!0;if(ve||(ve=ln(y,{noSymbol:!1}),we=!1),!ve){Ot(y,"No word under cursor"),A(y);return}var Oe=y.getLine(ve.start.line).substring(ve.start.ch,ve.end.ch);we&&Z?Oe="\\b"+Oe+"\\b":Oe=un(Oe),He.jumpList.cachedCursor=y.getCursor(),y.setCursor(ve.start),P(Oe,!0,!1)}}},processEx:function(y,T,S){function P(H){He.exCommandHistoryController.pushInput(H),He.exCommandHistoryController.reset(),Er.processCommand(y,H),y.state.vim&&A(y)}function W(H,q,Y){var Z=z(H),re,ae;(Z=="<Esc>"||Z=="<C-c>"||Z=="<C-[>"||Z=="<BS>"&&q=="")&&(He.exCommandHistoryController.pushInput(q),He.exCommandHistoryController.reset(),We.e_stop(H),A(y),Y(),y.focus()),Z=="<Up>"||Z=="<Down>"?(We.e_stop(H),re=Z=="<Up>",ae=H.target?H.target.selectionEnd:0,q=He.exCommandHistoryController.nextMatch(q,re)||"",Y(q),ae&&H.target&&(H.target.selectionEnd=H.target.selectionStart=Math.min(ae,H.target.value.length))):Z=="<C-u>"?(We.e_stop(H),Y("")):Z&&Z!="<Left>"&&Z!="<Right>"&&He.exCommandHistoryController.reset()}S.type=="keyToEx"?Er.processCommand(y,S.exArgs.input):T.visualMode?wr(y,{onClose:P,prefix:":",value:"'<,'>",onKeyDown:W,selectValueOnOpen:!1}):wr(y,{onClose:P,prefix:":",onKeyDown:W})},evalInput:function(y,T){var S=T.inputState,P=S.motion,W=S.motionArgs||{},H=S.operator,q=S.operatorArgs||{},Y=S.registerName,Z=T.sel,re=Ge(T.visualMode?se(y,Z.head):y.getCursor("head")),ae=Ge(T.visualMode?se(y,Z.anchor):y.getCursor("anchor")),be=Ge(re),ke=Ge(ae),ve,we,Oe;if(H&&this.recordLastEdit(T,S),S.repeatOverride!==void 0?Oe=S.repeatOverride:Oe=S.getRepeat(),Oe>0&&W.explicitRepeat?W.repeatIsExplicit=!0:(W.noRepeat||!W.explicitRepeat&&Oe===0)&&(Oe=1,W.repeatIsExplicit=!1),S.selectedCharacter&&(W.selectedCharacter=q.selectedCharacter=S.selectedCharacter),W.repeat=Oe,A(y),P){var Le=mi[P](y,re,W,T,S);if(T.lastMotion=mi[P],!Le)return;if(W.toJumplist){!H&&y.ace.curOp!=null&&(y.ace.curOp.command.scrollIntoView="center-animate");var qe=He.jumpList,at=qe.cachedCursor;at?(Gr(y,at,Le),delete qe.cachedCursor):Gr(y,re,Le)}Le instanceof Array?(we=Le[0],ve=Le[1]):ve=Le,ve||(ve=Ge(re)),T.visualMode?((!T.visualBlock||ve.ch!==1/0)&&(ve=se(y,ve,be)),we&&(we=se(y,we)),we=we||ke,Z.anchor=we,Z.head=ve,Tn(y),Xr(y,T,"<",tt(we,ve)?we:ve),Xr(y,T,">",tt(we,ve)?ve:we)):H||(y.ace.curOp&&(y.ace.curOp.vimDialogScroll="center-animate"),ve=se(y,ve,be),y.setCursor(ve.line,ve.ch))}if(H){if(q.lastSel){we=ke;var Qe=q.lastSel,nt=Math.abs(Qe.head.line-Qe.anchor.line),wn=Math.abs(Qe.head.ch-Qe.anchor.ch);Qe.visualLine?ve=new Ne(ke.line+nt,ke.ch):Qe.visualBlock?ve=new Ne(ke.line+nt,ke.ch+wn):Qe.head.line==Qe.anchor.line?ve=new Ne(ke.line,ke.ch+wn):ve=new Ne(ke.line+nt,ke.ch),T.visualMode=!0,T.visualLine=Qe.visualLine,T.visualBlock=Qe.visualBlock,Z=T.sel={anchor:we,head:ve},Tn(y)}else T.visualMode&&(q.lastSel={anchor:Ge(Z.anchor),head:Ge(Z.head),visualBlock:T.visualBlock,visualLine:T.visualLine});var ut,In,xt,$t,sr;if(T.visualMode){ut=ct(Z.head,Z.anchor),In=Xt(Z.head,Z.anchor),xt=T.visualLine||q.linewise,$t=T.visualBlock?"block":xt?"line":"char";var Sr=w(y,ut,In);if(sr=yr(y,{anchor:Sr.start,head:Sr.end},$t),xt){var En=sr.ranges;if($t=="block")for(var V=0;V<En.length;V++)En[V].head.ch=Wt(y,En[V].head.line);else $t=="line"&&(En[0].head=new Ne(En[0].head.line+1,0))}}else{if(ut=Ge(we||ke),In=Ge(ve||be),tt(In,ut)){var X=ut;ut=In,In=X}xt=W.linewise||q.linewise,xt?Nn(y,ut,In):W.forward&&Wn(y,ut,In),$t="char";var ie=!W.inclusive||xt,Sr=w(y,ut,In);sr=yr(y,{anchor:Sr.start,head:Sr.end},$t,ie)}y.setSelections(sr.ranges,sr.primary),T.lastMotion=null,q.repeat=Oe,q.registerName=Y,q.linewise=xt;var oe=cs[H](y,q,sr.ranges,ke,ve);T.visualMode&&mn(y,oe!=null),oe&&y.setCursor(oe)}},recordLastEdit:function(y,T,S){var P=He.macroModeState;P.isPlaying||(y.lastEditInputState=T,y.lastEditActionCommand=S,P.lastInsertModeChanges.changes=[],P.lastInsertModeChanges.expectCursorActivityForChange=!1,P.lastInsertModeChanges.visualBlock=y.visualBlock?y.sel.head.line-y.sel.anchor.line:0)}},mi={moveToTopLine:function(y,T,S){var P=zn(y).top+S.repeat-1;return new Ne(P,Gt(y.getLine(P)))},moveToMiddleLine:function(y){var T=zn(y),S=Math.floor((T.top+T.bottom)*.5);return new Ne(S,Gt(y.getLine(S)))},moveToBottomLine:function(y,T,S){var P=zn(y).bottom-S.repeat+1;return new Ne(P,Gt(y.getLine(P)))},expandToLine:function(y,T,S){var P=T;return new Ne(P.line+S.repeat-1,1/0)},findNext:function(y,T,S){var P=Sn(y),W=P.getQuery();if(W){var H=!S.forward;return H=P.isReversed()?!H:H,_t(y,W),Yt(y,H,W,S.repeat)}},findAndSelectNextInclusive:function(y,T,S,P,W){var H=Sn(y),q=H.getQuery();if(q){var Y=!S.forward;Y=H.isReversed()?!Y:Y;var Z=jt(y,Y,q,S.repeat,P);if(Z){if(W.operator)return Z;var re=Z[0],ae=new Ne(Z[1].line,Z[1].ch-1);if(P.visualMode){(P.visualLine||P.visualBlock)&&(P.visualLine=!1,P.visualBlock=!1,We.signal(y,"vim-mode-change",{mode:"visual",subMode:""}));var be=P.sel.anchor;if(be)return H.isReversed()?S.forward?[be,re]:[be,ae]:S.forward?[be,ae]:[be,re]}else P.visualMode=!0,P.visualLine=!1,P.visualBlock=!1,We.signal(y,"vim-mode-change",{mode:"visual",subMode:""});return Y?[ae,re]:[re,ae]}}},goToMark:function(y,T,S,P){var W=Cr(y,P,S.selectedCharacter);return W?S.linewise?{line:W.line,ch:Gt(y.getLine(W.line))}:W:null},moveToOtherHighlightedEnd:function(y,T,S,P){if(P.visualBlock&&S.sameLine){var W=P.sel;return[se(y,new Ne(W.anchor.line,W.head.ch)),se(y,new Ne(W.head.line,W.anchor.ch))]}return[P.sel.head,P.sel.anchor]},jumpToMark:function(y,T,S,P){for(var W=T,H=0;H<S.repeat;H++){var q=W;for(var Y in P.marks)if(u(Y)){var Z=P.marks[Y].find(),re=S.forward?tt(Z,q):tt(q,Z);if(!re&&!(S.linewise&&Z.line==q.line)){var ae=lt(q,W),be=S.forward?Cn(q,Z,W):Cn(W,Z,q);(ae||be)&&(W=Z)}}}return S.linewise&&(W=new Ne(W.line,Gt(y.getLine(W.line)))),W},moveByCharacters:function(y,T,S){var P=T,W=S.repeat,H=S.forward?P.ch+W:P.ch-W;return new Ne(P.line,H)},moveByLines:function(y,T,S,P){var W=T,H=W.ch;switch(P.lastMotion){case this.moveByLines:case this.moveByDisplayLines:case this.moveByScroll:case this.moveToColumn:case this.moveToEol:H=P.lastHPos;break;default:P.lastHPos=H}var q=S.repeat+(S.repeatOffset||0),Y=S.forward?W.line+q:W.line-q,Z=y.firstLine(),re=y.lastLine();if(Y<Z&&W.line==Z)return this.moveToStartOfLine(y,T,S,P);if(Y>re&&W.line==re)return ro(y,T,S,P,!0);var ae=y.ace.session.getFoldLine(Y);return ae&&(S.forward?Y>ae.start.row&&(Y=ae.end.row+1):Y=ae.start.row),S.toFirstChar&&(H=Gt(y.getLine(Y)),P.lastHPos=H),P.lastHSPos=y.charCoords(new Ne(Y,H),"div").left,new Ne(Y,H)},moveByDisplayLines:function(y,T,S,P){var W=T;switch(P.lastMotion){case this.moveByDisplayLines:case this.moveByScroll:case this.moveByLines:case this.moveToColumn:case this.moveToEol:break;default:P.lastHSPos=y.charCoords(W,"div").left}var H=S.repeat,Z=y.findPosV(W,S.forward?H:-H,"line",P.lastHSPos);if(Z.hitSide)if(S.forward)var q=y.charCoords(Z,"div"),Y={top:q.top+8,left:P.lastHSPos},Z=y.coordsChar(Y,"div");else{var re=y.charCoords(new Ne(y.firstLine(),0),"div");re.left=P.lastHSPos,Z=y.coordsChar(re,"div")}return P.lastHPos=Z.ch,Z},moveByPage:function(y,T,S){var P=T,W=S.repeat;return y.findPosV(P,S.forward?W:-W,"page")},moveByParagraph:function(y,T,S){var P=S.forward?1:-1;return hi(y,T,S.repeat,P)},moveBySentence:function(y,T,S){var P=S.forward?1:-1;return di(y,T,S.repeat,P)},moveByScroll:function(y,T,S,P){var W=y.getScrollInfo(),H=null,q=S.repeat;q||(q=W.clientHeight/(2*y.defaultTextHeight()));var Y=y.charCoords(T,"local");if(S.repeat=q,H=mi.moveByDisplayLines(y,T,S,P),!H)return null;var Z=y.charCoords(H,"local");return y.scrollTo(null,W.top+Z.top-Y.top),H},moveByWords:function(y,T,S){return Bn(y,T,S.repeat,!!S.forward,!!S.wordEnd,!!S.bigWord)},moveTillCharacter:function(y,T,S){var P=S.repeat,W=ui(y,P,S.forward,S.selectedCharacter,T),H=S.forward?-1:1;return Yr(H,S),W?(W.ch+=H,W):null},moveToCharacter:function(y,T,S){var P=S.repeat;return Yr(0,S),ui(y,P,S.forward,S.selectedCharacter,T)||T},moveToSymbol:function(y,T,S){var P=S.repeat;return Si(y,P,S.forward,S.selectedCharacter)||T},moveToColumn:function(y,T,S,P){var W=S.repeat;return P.lastHPos=W-1,P.lastHSPos=y.charCoords(T,"div").left,Os(y,W)},moveToEol:function(y,T,S,P){return ro(y,T,S,P,!1)},moveToFirstNonWhiteSpaceCharacter:function(y,T){var S=T;return new Ne(S.line,Gt(y.getLine(S.line)))},moveToMatchedSymbol:function(y,T){for(var S=T,P=S.line,W=S.ch,H=y.getLine(P),q;W<H.length;W++)if(q=H.charAt(W),q&&c(q)){var Y=y.getTokenTypeAt(new Ne(P,W+1));if(Y!=="string"&&Y!=="comment")break}if(W<H.length){var Z=/[<>]/.test(H[W])?/[(){}[\]<>]/:/[(){}[\]]/,re=y.findMatchingBracket(new Ne(P,W+1),{bracketRegex:Z});return re.to}return S},moveToStartOfLine:function(y,T){return new Ne(T.line,0)},moveToLineOrEdgeOfDocument:function(y,T,S){var P=S.forward?y.lastLine():y.firstLine();return S.repeatIsExplicit&&(P=S.repeat-y.getOption("firstLineNumber")),new Ne(P,Gt(y.getLine(P)))},moveToStartOfDisplayLine:function(y){return y.execCommand("goLineLeft"),y.getCursor()},moveToEndOfDisplayLine:function(y){y.execCommand("goLineRight");var T=y.getCursor();return T.sticky=="before"&&T.ch--,T},textObjectManipulation:function(y,T,S,P){var W={"(":")",")":"(","{":"}","}":"{","[":"]","]":"[","<":">",">":"<"},H={"'":!0,'"':!0,"`":!0},q=S.selectedCharacter;q=="b"?q="(":q=="B"&&(q="{");var Y=!S.textObjectInner,Z,re;if(W[q]){if(re=!0,Z=An(y,T,q,Y),!Z){var ae=y.getSearchCursor(new RegExp("\\"+q,"g"),T);ae.find()&&(Z=An(y,ae.from(),q,Y))}}else if(H[q])re=!0,Z=dr(y,T,q,Y);else if(q==="W"||q==="w")for(var be=S.repeat||1;be-- >0;){var ke=ln(y,{inclusive:Y,innerWord:!Y,bigWord:q==="W",noSymbol:q==="W",multiline:!0},Z&&Z.end);ke&&(Z||(Z=ke),Z.end=ke.end)}else if(q==="p")if(Z=hi(y,T,S.repeat,0,Y),S.linewise=!0,P.visualMode)P.visualLine||(P.visualLine=!0);else{var ve=P.inputState.operatorArgs;ve&&(ve.linewise=!0),Z.end.line--}else if(q==="t")Z=Dr(y,T,Y);else if(q==="s"){var we=y.getLine(T.line);T.ch>0&&b(we[T.ch])&&(T.ch-=1);var Oe=Jo(y,T,S.repeat,1,Y),Le=Jo(y,T,S.repeat,-1,Y);p(y.getLine(Le.line)[Le.ch])&&p(y.getLine(Oe.line)[Oe.ch-1])&&(Le={line:Le.line,ch:Le.ch+1}),Z={start:Le,end:Oe}}return Z?y.state.vim.visualMode?Ht(y,Z.start,Z.end,re):[Z.start,Z.end]:null},repeatLastCharacterSearch:function(y,T,S){var P=He.lastCharacterSearch,W=S.repeat,H=S.forward===P.forward,q=(P.increment?1:0)*(H?-1:1);y.moveH(-q,"char"),S.inclusive=!!H;var Y=ui(y,W,H,P.selectedCharacter);return Y?(Y.ch+=q,Y):(y.moveH(q,"char"),T)}},cs={change:function(y,T,S){var P,W,H=y.state.vim,q=S[0].anchor,Y=S[0].head;if(H.visualMode)if(T.fullLine)Y.ch=Number.MAX_VALUE,Y.line--,y.setSelection(q,Y),W=y.getSelection(),y.replaceSelection(""),P=q;else{W=y.getSelection();var Z=he("",S.length);y.replaceSelections(Z),P=ct(S[0].head,S[0].anchor)}else{W=y.getRange(q,Y);var re=H.lastEditInputState||{};if(re.motion=="moveByWords"&&!p(W)){var ae=/\s+$/.exec(W);ae&&re.motionArgs&&re.motionArgs.forward&&(Y=me(Y,0,-ae[0].length),W=W.slice(0,-ae[0].length))}T.linewise&&(q=new Ne(q.line,Gt(y.getLine(q.line))),Y.line>q.line&&(Y=new Ne(Y.line-1,Number.MAX_VALUE))),y.replaceRange("",q,Y),P=q}He.registerController.pushText(T.registerName,"change",W,T.linewise,S.length>1),Un.enterInsertMode(y,{head:P},y.state.vim)},delete:function(y,T,S){var P,W,H=y.state.vim;if(H.visualBlock){W=y.getSelection();var q=he("",S.length);y.replaceSelections(q),P=ct(S[0].head,S[0].anchor)}else{var Y=S[0].anchor,Z=S[0].head;T.linewise&&Z.line!=y.firstLine()&&Y.line==y.lastLine()&&Y.line==Z.line-1&&(Y.line==y.firstLine()?Y.ch=0:Y=new Ne(Y.line-1,Wt(y,Y.line-1))),W=y.getRange(Y,Z),y.replaceRange("",Y,Z),P=Y,T.linewise&&(P=mi.moveToFirstNonWhiteSpaceCharacter(y,Y))}return He.registerController.pushText(T.registerName,"delete",W,T.linewise,H.visualBlock),se(y,P)},indent:function(y,T,S){var P=y.state.vim,W=P.visualMode?T.repeat:1;if(P.visualBlock){for(var H=y.getOption("tabSize"),q=y.getOption("indentWithTabs")?" ":" ".repeat(H),Y,Z=S.length-1;Z>=0;Z--)if(Y=ct(S[Z].anchor,S[Z].head),T.indentRight)y.replaceRange(q.repeat(W),Y,Y);else{for(var re=y.getLine(Y.line),ae=0,be=0;be<W;be++){var ke=re[Y.ch+ae];if(ke==" ")ae++;else{if(ke!=" ")break;ae++;for(var ve=1;ve<q.length&&(ke=re[Y.ch+ae],ke===" ");ve++)ae++}}y.replaceRange("",Y,me(Y,0,ae))}return Y}if(y.indentMore)for(var be=0;be<W;be++)T.indentRight?y.indentMore():y.indentLess();else{var we=S[0].anchor.line,Oe=P.visualBlock?S[S.length-1].anchor.line:S[0].head.line;T.linewise&&Oe--;for(var Z=we;Z<=Oe;Z++)for(var be=0;be<W;be++)y.indentLine(Z,T.indentRight)}return mi.moveToFirstNonWhiteSpaceCharacter(y,S[0].anchor)},indentAuto:function(y,T,S){return y.execCommand("indentAuto"),mi.moveToFirstNonWhiteSpaceCharacter(y,S[0].anchor)},hardWrap:function(y,T,S,P,W){if(y.hardWrap){var H=S[0].anchor.line,q=S[0].head.line;T.linewise&&q--;var Y=y.hardWrap({from:H,to:q});return Y>H&&T.linewise&&Y--,T.keepCursor?P:new Ne(Y,0)}},changeCase:function(y,T,S,P,W){for(var H=y.getSelections(),q=[],Y=T.toLower,Z=0;Z<H.length;Z++){var re=H[Z],ae="";if(Y===!0)ae=re.toLowerCase();else if(Y===!1)ae=re.toUpperCase();else for(var be=0;be<re.length;be++){var ke=re.charAt(be);ae+=s(ke)?ke.toLowerCase():ke.toUpperCase()}q.push(ae)}return y.replaceSelections(q),T.shouldMoveCursor?W:!y.state.vim.visualMode&&T.linewise&&S[0].anchor.line+1==S[0].head.line?mi.moveToFirstNonWhiteSpaceCharacter(y,P):T.linewise?P:ct(S[0].anchor,S[0].head)},yank:function(y,T,S,P){var W=y.state.vim,H=y.getSelection(),q=W.visualMode?ct(W.sel.anchor,W.sel.head,S[0].head,S[0].anchor):P;return He.registerController.pushText(T.registerName,"yank",H,T.linewise,W.visualBlock),q}},Un={jumpListWalk:function(y,T,S){if(!S.visualMode){var P=T.repeat,W=T.forward,H=He.jumpList,q=H.move(y,W?P:-P),Y=q?q.find():void 0;Y=Y||y.getCursor(),y.setCursor(Y),y.ace.curOp.command.scrollIntoView="center-animate"}},scroll:function(y,T,S){if(!S.visualMode){var P=T.repeat||1,W=y.defaultTextHeight(),H=y.getScrollInfo().top,q=W*P,Y=T.forward?H+q:H-q,Z=Ge(y.getCursor()),re=y.charCoords(Z,"local");if(T.forward)Y>re.top?(Z.line+=(Y-re.top)/W,Z.line=Math.ceil(Z.line),y.setCursor(Z),re=y.charCoords(Z,"local"),y.scrollTo(null,re.top)):y.scrollTo(null,Y);else{var ae=Y+y.getScrollInfo().clientHeight;ae<re.bottom?(Z.line-=(re.bottom-ae)/W,Z.line=Math.floor(Z.line),y.setCursor(Z),re=y.charCoords(Z,"local"),y.scrollTo(null,re.bottom-y.getScrollInfo().clientHeight)):y.scrollTo(null,Y)}}},scrollToCursor:function(y,T){var S=y.getCursor().line,P=y.charCoords(new Ne(S,0),"local"),W=y.getScrollInfo().clientHeight,H=P.top;switch(T.position){case"center":H=P.bottom-W/2;break;case"bottom":var q=new Ne(S,y.getLine(S).length-1),Y=y.charCoords(q,"local"),Z=Y.bottom-H;H=H-W+Z}y.scrollTo(null,H)},replayMacro:function(y,T,S){var P=T.selectedCharacter,W=T.repeat,H=He.macroModeState;for(P=="@"?P=H.latestRegister:H.latestRegister=P;W--;)Ds(y,S,H,P)},enterMacroRecordMode:function(y,T){var S=He.macroModeState,P=T.selectedCharacter;He.registerController.isValidRegister(P)&&S.enterMacroRecordMode(y,P)},toggleOverwrite:function(y){y.state.overwrite?(y.toggleOverwrite(!1),y.setOption("keyMap","vim-insert"),We.signal(y,"vim-mode-change",{mode:"insert"})):(y.toggleOverwrite(!0),y.setOption("keyMap","vim-replace"),We.signal(y,"vim-mode-change",{mode:"replace"}))},enterInsertMode:function(y,T,S){if(!y.getOption("readOnly")){S.insertMode=!0,S.insertModeRepeat=T&&T.repeat||1;var P=T?T.insertAt:null,W=S.sel,H=T.head||y.getCursor("head"),q=y.listSelections().length;if(P=="eol")H=new Ne(H.line,Wt(y,H.line));else if(P=="bol")H=new Ne(H.line,0);else if(P=="charAfter"){var Y=w(y,H,me(H,0,1));H=Y.end}else if(P=="firstNonBlank"){var Y=w(y,H,mi.moveToFirstNonWhiteSpaceCharacter(y,H));H=Y.end}else if(P=="startOfSelectedArea"){if(!S.visualMode)return;S.visualBlock?(H=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?H=W.head:H=new Ne(W.anchor.line,0)}else if(P=="endOfSelectedArea"){if(!S.visualMode)return;S.visualBlock?(H=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?H=me(W.head,0,1):H=new Ne(W.anchor.line,0)}else if(P=="inplace"){if(S.visualMode)return}else P=="lastEdit"&&(H=vn(y)||H);y.setOption("disableInput",!1),T&&T.replace?(y.toggleOverwrite(!0),y.setOption("keyMap","vim-replace"),We.signal(y,"vim-mode-change",{mode:"replace"})):(y.toggleOverwrite(!1),y.setOption("keyMap","vim-insert"),We.signal(y,"vim-mode-change",{mode:"insert"})),He.macroModeState.isPlaying||(y.on("change",Io),S.insertEnd&&S.insertEnd.clear(),S.insertEnd=y.setBookmark(H,{insertLeft:!0}),We.on(y.getInputField(),"keydown",Fs)),S.visualMode&&mn(y),Mr(y,H,q)}},toggleVisualMode:function(y,T,S){var P=T.repeat,W=y.getCursor(),H;if(S.visualMode)S.visualLine^T.linewise||S.visualBlock^T.blockwise?(S.visualLine=!!T.linewise,S.visualBlock=!!T.blockwise,We.signal(y,"vim-mode-change",{mode:"visual",subMode:S.visualLine?"linewise":S.visualBlock?"blockwise":""}),Tn(y)):mn(y);else{S.visualMode=!0,S.visualLine=!!T.linewise,S.visualBlock=!!T.blockwise,H=se(y,new Ne(W.line,W.ch+P-1));var q=w(y,W,H);S.sel={anchor:q.start,head:q.end},We.signal(y,"vim-mode-change",{mode:"visual",subMode:S.visualLine?"linewise":S.visualBlock?"blockwise":""}),Tn(y),Xr(y,S,"<",ct(W,H)),Xr(y,S,">",Xt(W,H))}},reselectLastSelection:function(y,T,S){var P=S.lastSelection;if(S.visualMode&&Lt(y,S),P){var W=P.anchorMark.find(),H=P.headMark.find();if(!W||!H)return;S.sel={anchor:W,head:H},S.visualMode=!0,S.visualLine=P.visualLine,S.visualBlock=P.visualBlock,Tn(y),Xr(y,S,"<",ct(W,H)),Xr(y,S,">",Xt(W,H)),We.signal(y,"vim-mode-change",{mode:"visual",subMode:S.visualLine?"linewise":S.visualBlock?"blockwise":""})}},joinLines:function(y,T,S){var P,W;if(S.visualMode){if(P=y.getCursor("anchor"),W=y.getCursor("head"),tt(W,P)){var H=W;W=P,P=H}W.ch=Wt(y,W.line)-1}else{var q=Math.max(T.repeat,2);P=y.getCursor(),W=se(y,new Ne(P.line+q-1,1/0))}for(var Y=0,Z=P.line;Z<W.line;Z++){Y=Wt(y,P.line);var re="",ae=0;if(!T.keepSpaces){var be=y.getLine(P.line+1);ae=be.search(/\S/),ae==-1?ae=be.length:re=" "}y.replaceRange(re,new Ne(P.line,Y),new Ne(P.line+1,ae))}var ke=se(y,new Ne(P.line,Y));S.visualMode&&mn(y,!1),y.setCursor(ke)},newLineAndEnterInsertMode:function(y,T,S){S.insertMode=!0;var P=Ge(y.getCursor());if(P.line===y.firstLine()&&!T.after)y.replaceRange(`
1445
+ `,new Ne(y.firstLine(),0)),y.setCursor(y.firstLine(),0);else{P.line=T.after?P.line:P.line-1,P.ch=Wt(y,P.line),y.setCursor(P);var W=We.commands.newlineAndIndentContinueComment||We.commands.newlineAndIndent;W(y)}this.enterInsertMode(y,{repeat:T.repeat},S)},paste:function(y,T,S){var P=this,W=He.registerController.getRegister(T.registerName),H=function(){var q=W.toString();P.continuePaste(y,T,S,q,W)};T.registerName==="+"&&typeof navigator<"u"&&typeof navigator.clipboard<"u"&&typeof navigator.clipboard.readText=="function"?navigator.clipboard.readText().then(function(q){P.continuePaste(y,T,S,q,W)},function(){H()}):H()},continuePaste:function(y,T,S,P,W){var H=Ge(y.getCursor());if(P){if(T.matchIndent){var q=y.getOption("tabSize"),Y=function(En){var V=En.split(" ").length-1,X=En.split(" ").length-1;return V*q+X*1},Z=y.getLine(y.getCursor().line),re=Y(Z.match(/^\s*/)[0]),ae=P.replace(/\n$/,""),be=P!==ae,ke=Y(P.match(/^\s*/)[0]),P=ae.replace(/^\s*/gm,function(En){var V=re+(Y(En)-ke);if(V<0)return"";if(y.getOption("indentWithTabs")){var X=Math.floor(V/q);return Array(X+1).join(" ")}return Array(V+1).join(" ")});P+=be?`
1446
1446
  `:""}if(T.repeat>1)var P=Array(T.repeat+1).join(P);var ve=W.linewise,we=W.blockwise;if(we){P=P.split(`
1447
1447
  `),ve&&P.pop();for(var Oe=0;Oe<P.length;Oe++)P[Oe]=P[Oe]==""?" ":P[Oe];H.ch+=T.after?1:0,H.ch=Math.min(Wt(y,H.line),H.ch)}else ve?S.visualMode?P=S.visualLine?P.slice(0,-1):`
1448
1448
  `+P.slice(0,P.length-1)+`
1449
1449
  `:T.after?(P=`
1450
- `+P.slice(0,P.length-1),H.ch=Wt(y,H.line)):H.ch=0:H.ch+=T.after?1:0;var Le;if(S.visualMode){S.lastPastedText=P;var qe,at=je(y,S),Qe=at[0],nt=at[1],wn=y.getSelection(),ut=y.listSelections(),Mn=new Array(ut.length).join("1").split("1");S.lastSelection&&(qe=S.lastSelection.headMark.find()),He.registerController.unnamedRegister.setText(wn),we?(y.replaceSelections(Mn),nt=new Ne(Qe.line+P.length-1,Qe.ch),y.setCursor(Qe),Xn(y,nt),y.replaceSelections(P),Le=Qe):S.visualBlock?(y.replaceSelections(Mn),y.setCursor(Qe),y.replaceRange(P,Qe,Qe),Le=Qe):(y.replaceRange(P,Qe,nt),Le=y.posFromIndex(y.indexFromPos(Qe)+P.length-1)),qe&&(S.lastSelection.headMark=y.setBookmark(qe)),ve&&(Le.ch=0)}else if(we){y.setCursor(H);for(var Oe=0;Oe<P.length;Oe++){var xt=H.line+Oe;xt>y.lastLine()&&y.replaceRange(`
1451
- `,new Ne(xt,0));var $t=Wt(y,xt);$t<H.ch&&Ln(y,xt,H.ch)}y.setCursor(H),Xn(y,new Ne(H.line+P.length-1,H.ch)),y.replaceSelections(P),Le=H}else if(y.replaceRange(P,H),ve){var xt=T.after?H.line+1:H.line;Le=new Ne(xt,Kt(y.getLine(xt)))}else Le=Ge(H),/\n/.test(P)||(Le.ch+=P.length-(T.after?1:0));S.visualMode&&mn(y,!1),y.setCursor(Le)}},undo:function(y,T){y.operation(function(){Ze(y,We.commands.undo,T.repeat)(),y.setCursor(se(y,y.getCursor("start")))})},redo:function(y,T){Ze(y,We.commands.redo,T.repeat)()},setRegister:function(y,T,S){S.inputState.registerName=T.selectedCharacter},insertRegister:function(y,T,S){var P=T.selectedCharacter,W=He.registerController.getRegister(P),H=W&&W.toString();H&&y.replaceSelection(H)},oneNormalCommand:function(y,T,S){Fr(y,!0),S.insertModeReturn=!0,We.on(y,"vim-command-done",function P(){S.visualMode||(S.insertModeReturn&&(S.insertModeReturn=!1,S.insertMode||Un.enterInsertMode(y,{},S)),We.off(y,"vim-command-done",P))})},setMark:function(y,T,S){var P=T.selectedCharacter;Xr(y,S,P,y.getCursor())},replace:function(y,T,S){var P=T.selectedCharacter,W=y.getCursor(),H,q,Y=y.listSelections();if(S.visualMode)W=y.getCursor("start"),q=y.getCursor("end");else{var Z=y.getLine(W.line);H=W.ch+T.repeat,H>Z.length&&(H=Z.length),q=new Ne(W.line,H)}var re=w(y,W,q);if(W=re.start,q=re.end,P==`
1450
+ `+P.slice(0,P.length-1),H.ch=Wt(y,H.line)):H.ch=0:H.ch+=T.after?1:0;var Le;if(S.visualMode){S.lastPastedText=P;var qe,at=je(y,S),Qe=at[0],nt=at[1],wn=y.getSelection(),ut=y.listSelections(),In=new Array(ut.length).join("1").split("1");S.lastSelection&&(qe=S.lastSelection.headMark.find()),He.registerController.unnamedRegister.setText(wn),we?(y.replaceSelections(In),nt=new Ne(Qe.line+P.length-1,Qe.ch),y.setCursor(Qe),Xn(y,nt),y.replaceSelections(P),Le=Qe):S.visualBlock?(y.replaceSelections(In),y.setCursor(Qe),y.replaceRange(P,Qe,Qe),Le=Qe):(y.replaceRange(P,Qe,nt),Le=y.posFromIndex(y.indexFromPos(Qe)+P.length-1)),qe&&(S.lastSelection.headMark=y.setBookmark(qe)),ve&&(Le.ch=0)}else if(we){y.setCursor(H);for(var Oe=0;Oe<P.length;Oe++){var xt=H.line+Oe;xt>y.lastLine()&&y.replaceRange(`
1451
+ `,new Ne(xt,0));var $t=Wt(y,xt);$t<H.ch&&On(y,xt,H.ch)}y.setCursor(H),Xn(y,new Ne(H.line+P.length-1,H.ch)),y.replaceSelections(P),Le=H}else if(y.replaceRange(P,H),ve){var xt=T.after?H.line+1:H.line;Le=new Ne(xt,Gt(y.getLine(xt)))}else Le=Ge(H),/\n/.test(P)||(Le.ch+=P.length-(T.after?1:0));S.visualMode&&mn(y,!1),y.setCursor(Le)}},undo:function(y,T){y.operation(function(){Ze(y,We.commands.undo,T.repeat)(),y.setCursor(se(y,y.getCursor("start")))})},redo:function(y,T){Ze(y,We.commands.redo,T.repeat)()},setRegister:function(y,T,S){S.inputState.registerName=T.selectedCharacter},insertRegister:function(y,T,S){var P=T.selectedCharacter,W=He.registerController.getRegister(P),H=W&&W.toString();H&&y.replaceSelection(H)},oneNormalCommand:function(y,T,S){Fr(y,!0),S.insertModeReturn=!0,We.on(y,"vim-command-done",function P(){S.visualMode||(S.insertModeReturn&&(S.insertModeReturn=!1,S.insertMode||Un.enterInsertMode(y,{},S)),We.off(y,"vim-command-done",P))})},setMark:function(y,T,S){var P=T.selectedCharacter;Xr(y,S,P,y.getCursor())},replace:function(y,T,S){var P=T.selectedCharacter,W=y.getCursor(),H,q,Y=y.listSelections();if(S.visualMode)W=y.getCursor("start"),q=y.getCursor("end");else{var Z=y.getLine(W.line);H=W.ch+T.repeat,H>Z.length&&(H=Z.length),q=new Ne(W.line,H)}var re=w(y,W,q);if(W=re.start,q=re.end,P==`
1452
1452
  `)S.visualMode||y.replaceRange("",W,q),(We.commands.newlineAndIndentContinueComment||We.commands.newlineAndIndent)(y);else{var ae=y.getRange(W,q);if(ae=ae.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,P),ae=ae.replace(/[^\n]/g,P),S.visualBlock){var be=new Array(y.getOption("tabSize")+1).join(" ");ae=y.getSelection(),ae=ae.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,P),ae=ae.replace(/\t/g,be).replace(/[^\n]/g,P).split(`
1453
1453
  `),y.replaceSelections(ae)}else y.replaceRange(ae,W,q);S.visualMode?(W=tt(Y[0].anchor,Y[0].head)?Y[0].anchor:Y[0].head,y.setCursor(W),mn(y,!1)):y.setCursor(me(q,0,-1))}},incrementNumberToken:function(y,T){for(var S=y.getCursor(),P=y.getLine(S.line),W=/(-?)(?:(0x)([\da-f]+)|(0b|0|)(\d+))/gi,H,q,Y,Z;(H=W.exec(P))!==null&&(q=H.index,Y=q+H[0].length,!(S.ch<Y)););if(!(!T.backtrack&&Y<=S.ch)&&H){var re=H[2]||H[4],ae=H[3]||H[5],be=T.increase?1:-1,ke={"0b":2,0:8,"":10,"0x":16}[re.toLowerCase()],ve=parseInt(H[1]+ae,ke)+be*T.repeat;Z=ve.toString(ke);var we=re?new Array(ae.length-Z.length+1+H[1].length).join("0"):"";Z.charAt(0)==="-"?Z="-"+re+we+Z.substr(1):Z=re+we+Z;var Oe=new Ne(S.line,q),Le=new Ne(S.line,Y);y.replaceRange(Z,Oe,Le),y.setCursor(new Ne(S.line,q+Z.length-1))}},repeatLastEdit:function(y,T,S){var P=S.lastEditInputState;if(P){var W=T.repeat;W&&T.repeatIsExplicit?S.lastEditInputState.repeatOverride=W:W=S.lastEditInputState.repeatOverride||W,ba(y,S,W,!1)}},indent:function(y,T){y.indentLine(y.getCursor().line,T.indentRight)},exitInsertMode:Fr},$i={"(":"bracket",")":"bracket","{":"bracket","}":"bracket","[":"section","]":"section","*":"comment","/":"comment",m:"method",M:"method","#":"preprocess"},Ti={bracket:{isComplete:function(y){if(y.nextCh===y.symb){if(y.depth++,y.depth>=1)return!0}else y.nextCh===y.reverseSymb&&y.depth--;return!1}},section:{init:function(y){y.curMoveThrough=!0,y.symb=(y.forward?"]":"[")===y.symb?"{":"}"},isComplete:function(y){return y.index===0&&y.nextCh===y.symb}},comment:{isComplete:function(y){var T=y.lastCh==="*"&&y.nextCh==="/";return y.lastCh=y.nextCh,T}},method:{init:function(y){y.symb=y.symb==="m"?"{":"}",y.reverseSymb=y.symb==="{"?"}":"{"},isComplete:function(y){return y.nextCh===y.symb}},preprocess:{init:function(y){y.index=0},isComplete:function(y){if(y.nextCh==="#"){var T=y.lineText.match(/^#(\w+)/)[1];if(T==="endif"){if(y.forward&&y.depth===0)return!0;y.depth++}else if(T==="if"){if(!y.forward&&y.depth===0)return!0;y.depth--}if(T==="else"&&y.depth===0)return!0}return!1}}};I("pcre",!0,"boolean"),pi.prototype={getQuery:function(){return He.query},setQuery:function(y){He.query=y},getOverlay:function(){return this.searchOverlay},setOverlay:function(y){this.searchOverlay=y},isReversed:function(){return He.isReversed},setReversed:function(y){He.isReversed=y},getScrollbarAnnotate:function(){return this.annotate},setScrollbarAnnotate:function(y){this.annotate=y}};var ji={"\\n":`
1454
1454
  `,"\\r":"\r","\\t":" "},kr={"\\/":"/","\\\\":"\\","\\n":`
1455
- `,"\\r":"\r","\\t":" ","\\&":"&"},Ar=0,Ir=function(){this.buildCommandMap_()};Ir.prototype={processCommand:function(y,T,S){var P=this;y.operation(function(){y.curOp.isVimOp=!0,P._processCommand(y,T,S)})},_processCommand:function(y,T,S){var P=y.state.vim,W=He.registerController.getRegister(":"),H=W.toString(),q=new We.StringStream(T);W.setText(T);var Y=S||{};Y.input=T;try{this.parseInput_(y,q,Y)}catch(ae){throw Ot(y,ae.toString()),ae}P.visualMode&&mn(y);var Z,re;if(!Y.commandName)Y.line!==void 0&&(re="move");else if(Z=this.matchCommand_(Y.commandName),Z){if(re=Z.name,Z.excludeFromCommandHistory&&W.setText(H),this.parseCommandArgs_(q,Y,Z),Z.type=="exToKey"){E(y,Z.toKeys,Z);return}if(Z.type=="exToEx"){this.processCommand(y,Z.toInput);return}}if(!re){Ot(y,'Not an editor command ":'+T+'"');return}try{Bs[re](y,Y),(!Z||!Z.possiblyAsync)&&Y.callback&&Y.callback()}catch(ae){throw Ot(y,ae.toString()),ae}},parseInput_:function(y,T,S){if(T.eatWhile(":"),T.eat("%")?(S.line=y.firstLine(),S.lineEnd=y.lastLine()):(S.line=this.parseLineSpec_(y,T),S.line!==void 0&&T.eat(",")&&(S.lineEnd=this.parseLineSpec_(y,T))),S.line==null)if(y.state.vim.visualMode){var P=Cr(y,y.state.vim,"<");S.selectionLine=P&&P.line,P=Cr(y,y.state.vim,">"),S.selectionLineEnd=P&&P.line}else S.selectionLine=y.getCursor().line;else S.selectionLine=S.line,S.selectionLineEnd=S.lineEnd;var W=T.match(/^(\w+|!!|@@|[!#&*<=>@~])/);return W?S.commandName=W[1]:S.commandName=T.match(/.*/)[0],S},parseLineSpec_:function(y,T){var S=T.match(/^(\d+)/);if(S)return parseInt(S[1],10)-1;switch(T.next()){case".":return this.parseLineSpecOffset_(T,y.getCursor().line);case"$":return this.parseLineSpecOffset_(T,y.lastLine());case"'":var P=T.next(),W=Cr(y,y.state.vim,P);if(!W)throw new Error("Mark not set");return this.parseLineSpecOffset_(T,W.line);case"-":case"+":return T.backUp(1),this.parseLineSpecOffset_(T,y.getCursor().line);default:return T.backUp(1),void 0}},parseLineSpecOffset_:function(y,T){var S=y.match(/^([+-])?(\d+)/);if(S){var P=parseInt(S[2],10);S[1]=="-"?T-=P:T+=P}return T},parseCommandArgs_:function(y,T,S){if(!y.eol()){T.argString=y.match(/.*/)[0];var P=S.argDelimiter||/\s+/,W=vr(T.argString).split(P);W.length&&W[0]&&(T.args=W)}},matchCommand_:function(y){for(var T=y.length;T>0;T--){var S=y.substring(0,T);if(this.commandMap_[S]){var P=this.commandMap_[S];if(P.name.indexOf(y)===0)return P}}return null},buildCommandMap_:function(){this.commandMap_={};for(var y=0;y<_i.length;y++){var T=_i[y],S=T.shortName||T.name;this.commandMap_[S]=T}},map:function(y,T,S,P){if(y!=":"&&y.charAt(0)==":"){if(S)throw Error("Mode not supported for ex mappings");var W=y.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 H={keys:y,type:"keyToKey",toKeys:T,noremap:!!P};S&&(H.context=S),Dn.unshift(H)}},unmap:function(y,T){if(y!=":"&&y.charAt(0)==":"){if(T)throw Error("Mode not supported for ex mappings");var S=y.substring(1);if(this.commandMap_[S]&&this.commandMap_[S].user)return delete this.commandMap_[S],!0}else for(var P=y,W=0;W<Dn.length;W++)if(P==Dn[W].keys&&Dn[W].context===T)return Dn.splice(W,1),!0}};var Bs={colorscheme:function(y,T){if(!T.args||T.args.length<1){Ot(y,y.getOption("theme"));return}y.setOption("theme",T.args[0])},map:function(y,T,S,P){var W=T.args;if(!W||W.length<2){y&&Ot(y,"Invalid mapping: "+T.input);return}Er.map(W[0],W[1],S,P)},imap:function(y,T){this.map(y,T,"insert")},nmap:function(y,T){this.map(y,T,"normal")},vmap:function(y,T){this.map(y,T,"visual")},omap:function(y,T){this.map(y,T,"operatorPending")},noremap:function(y,T){this.map(y,T,void 0,!0)},inoremap:function(y,T){this.map(y,T,"insert",!0)},nnoremap:function(y,T){this.map(y,T,"normal",!0)},vnoremap:function(y,T){this.map(y,T,"visual",!0)},onoremap:function(y,T){this.map(y,T,"operatorPending",!0)},unmap:function(y,T,S){var P=T.args;(!P||P.length<1||!Er.unmap(P[0],S))&&y&&Ot(y,"No such mapping: "+T.input)},mapclear:function(y,T){bt.mapclear()},imapclear:function(y,T){bt.mapclear("insert")},nmapclear:function(y,T){bt.mapclear("normal")},vmapclear:function(y,T){bt.mapclear("visual")},omapclear:function(y,T){bt.mapclear("operatorPending")},move:function(y,T){jn.processCommand(y,y.state.vim,{type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!1,explicitRepeat:!0,linewise:!0},repeatOverride:T.line+1})},set:function(y,T){var S=T.args,P=T.setCfg||{};if(!S||S.length<1){y&&Ot(y,"Invalid mapping: "+T.input);return}var W=S[0].split("="),H=W[0],q=W[1],Y=!1,Z=!1;if(H.charAt(H.length-1)=="?"){if(q)throw Error("Trailing characters: "+T.argString);H=H.substring(0,H.length-1),Y=!0}else H.charAt(H.length-1)=="!"&&(H=H.substring(0,H.length-1),Z=!0);q===void 0&&H.substring(0,2)=="no"&&(H=H.substring(2),q=!1);var re=jt[H]&&jt[H].type=="boolean";if(re&&(Z?q=!k(H,y,P):q==null&&(q=!0)),!re&&q===void 0||Y){var ae=k(H,y,P);ae instanceof Error?Ot(y,ae.message):ae===!0||ae===!1?Ot(y," "+(ae?"":"no")+H):Ot(y," "+H+"="+ae)}else{var be=_(H,q,y,P);be instanceof Error&&Ot(y,be.message)}},setlocal:function(y,T){T.setCfg={scope:"local"},this.set(y,T)},setglobal:function(y,T){T.setCfg={scope:"global"},this.set(y,T)},registers:function(y,T){var S=T.args,P=He.registerController.registers,W=`----------Registers----------
1455
+ `,"\\r":"\r","\\t":" ","\\&":"&"},Ar=0,Ir=function(){this.buildCommandMap_()};Ir.prototype={processCommand:function(y,T,S){var P=this;y.operation(function(){y.curOp.isVimOp=!0,P._processCommand(y,T,S)})},_processCommand:function(y,T,S){var P=y.state.vim,W=He.registerController.getRegister(":"),H=W.toString(),q=new We.StringStream(T);W.setText(T);var Y=S||{};Y.input=T;try{this.parseInput_(y,q,Y)}catch(ae){throw Ot(y,ae.toString()),ae}P.visualMode&&mn(y);var Z,re;if(!Y.commandName)Y.line!==void 0&&(re="move");else if(Z=this.matchCommand_(Y.commandName),Z){if(re=Z.name,Z.excludeFromCommandHistory&&W.setText(H),this.parseCommandArgs_(q,Y,Z),Z.type=="exToKey"){E(y,Z.toKeys,Z);return}if(Z.type=="exToEx"){this.processCommand(y,Z.toInput);return}}if(!re){Ot(y,'Not an editor command ":'+T+'"');return}try{Bs[re](y,Y),(!Z||!Z.possiblyAsync)&&Y.callback&&Y.callback()}catch(ae){throw Ot(y,ae.toString()),ae}},parseInput_:function(y,T,S){if(T.eatWhile(":"),T.eat("%")?(S.line=y.firstLine(),S.lineEnd=y.lastLine()):(S.line=this.parseLineSpec_(y,T),S.line!==void 0&&T.eat(",")&&(S.lineEnd=this.parseLineSpec_(y,T))),S.line==null)if(y.state.vim.visualMode){var P=Cr(y,y.state.vim,"<");S.selectionLine=P&&P.line,P=Cr(y,y.state.vim,">"),S.selectionLineEnd=P&&P.line}else S.selectionLine=y.getCursor().line;else S.selectionLine=S.line,S.selectionLineEnd=S.lineEnd;var W=T.match(/^(\w+|!!|@@|[!#&*<=>@~])/);return W?S.commandName=W[1]:S.commandName=T.match(/.*/)[0],S},parseLineSpec_:function(y,T){var S=T.match(/^(\d+)/);if(S)return parseInt(S[1],10)-1;switch(T.next()){case".":return this.parseLineSpecOffset_(T,y.getCursor().line);case"$":return this.parseLineSpecOffset_(T,y.lastLine());case"'":var P=T.next(),W=Cr(y,y.state.vim,P);if(!W)throw new Error("Mark not set");return this.parseLineSpecOffset_(T,W.line);case"-":case"+":return T.backUp(1),this.parseLineSpecOffset_(T,y.getCursor().line);default:return T.backUp(1),void 0}},parseLineSpecOffset_:function(y,T){var S=y.match(/^([+-])?(\d+)/);if(S){var P=parseInt(S[2],10);S[1]=="-"?T-=P:T+=P}return T},parseCommandArgs_:function(y,T,S){if(!y.eol()){T.argString=y.match(/.*/)[0];var P=S.argDelimiter||/\s+/,W=vr(T.argString).split(P);W.length&&W[0]&&(T.args=W)}},matchCommand_:function(y){for(var T=y.length;T>0;T--){var S=y.substring(0,T);if(this.commandMap_[S]){var P=this.commandMap_[S];if(P.name.indexOf(y)===0)return P}}return null},buildCommandMap_:function(){this.commandMap_={};for(var y=0;y<_i.length;y++){var T=_i[y],S=T.shortName||T.name;this.commandMap_[S]=T}},map:function(y,T,S,P){if(y!=":"&&y.charAt(0)==":"){if(S)throw Error("Mode not supported for ex mappings");var W=y.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 H={keys:y,type:"keyToKey",toKeys:T,noremap:!!P};S&&(H.context=S),Dn.unshift(H)}},unmap:function(y,T){if(y!=":"&&y.charAt(0)==":"){if(T)throw Error("Mode not supported for ex mappings");var S=y.substring(1);if(this.commandMap_[S]&&this.commandMap_[S].user)return delete this.commandMap_[S],!0}else for(var P=y,W=0;W<Dn.length;W++)if(P==Dn[W].keys&&Dn[W].context===T)return Dn.splice(W,1),!0}};var Bs={colorscheme:function(y,T){if(!T.args||T.args.length<1){Ot(y,y.getOption("theme"));return}y.setOption("theme",T.args[0])},map:function(y,T,S,P){var W=T.args;if(!W||W.length<2){y&&Ot(y,"Invalid mapping: "+T.input);return}Er.map(W[0],W[1],S,P)},imap:function(y,T){this.map(y,T,"insert")},nmap:function(y,T){this.map(y,T,"normal")},vmap:function(y,T){this.map(y,T,"visual")},omap:function(y,T){this.map(y,T,"operatorPending")},noremap:function(y,T){this.map(y,T,void 0,!0)},inoremap:function(y,T){this.map(y,T,"insert",!0)},nnoremap:function(y,T){this.map(y,T,"normal",!0)},vnoremap:function(y,T){this.map(y,T,"visual",!0)},onoremap:function(y,T){this.map(y,T,"operatorPending",!0)},unmap:function(y,T,S){var P=T.args;(!P||P.length<1||!Er.unmap(P[0],S))&&y&&Ot(y,"No such mapping: "+T.input)},mapclear:function(y,T){bt.mapclear()},imapclear:function(y,T){bt.mapclear("insert")},nmapclear:function(y,T){bt.mapclear("normal")},vmapclear:function(y,T){bt.mapclear("visual")},omapclear:function(y,T){bt.mapclear("operatorPending")},move:function(y,T){jn.processCommand(y,y.state.vim,{type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!1,explicitRepeat:!0,linewise:!0},repeatOverride:T.line+1})},set:function(y,T){var S=T.args,P=T.setCfg||{};if(!S||S.length<1){y&&Ot(y,"Invalid mapping: "+T.input);return}var W=S[0].split("="),H=W[0],q=W[1],Y=!1,Z=!1;if(H.charAt(H.length-1)=="?"){if(q)throw Error("Trailing characters: "+T.argString);H=H.substring(0,H.length-1),Y=!0}else H.charAt(H.length-1)=="!"&&(H=H.substring(0,H.length-1),Z=!0);q===void 0&&H.substring(0,2)=="no"&&(H=H.substring(2),q=!1);var re=Ut[H]&&Ut[H].type=="boolean";if(re&&(Z?q=!k(H,y,P):q==null&&(q=!0)),!re&&q===void 0||Y){var ae=k(H,y,P);ae instanceof Error?Ot(y,ae.message):ae===!0||ae===!1?Ot(y," "+(ae?"":"no")+H):Ot(y," "+H+"="+ae)}else{var be=_(H,q,y,P);be instanceof Error&&Ot(y,be.message)}},setlocal:function(y,T){T.setCfg={scope:"local"},this.set(y,T)},setglobal:function(y,T){T.setCfg={scope:"global"},this.set(y,T)},registers:function(y,T){var S=T.args,P=He.registerController.registers,W=`----------Registers----------
1456
1456
 
1457
1457
  `;if(S){var H;S=S.join("");for(var q=0;q<S.length;q++)if(H=S.charAt(q),!!He.registerController.isValidRegister(H)){var Y=P[H]||new B;W+='"'+H+" "+Y.toString()+`
1458
1458
  `}}else for(var H in P){var Z=P[H].toString();Z.length&&(W+='"'+H+" "+Z+`
1459
- `)}Ot(y,W)},sort:function(y,T){function S(){if(T.argString){var xt=new We.StringStream(T.argString);if(xt.eat("!")&&(H=!0),xt.eol())return;if(!xt.eatSpace())return"Invalid arguments";var $t=xt.match(/([dinuox]+)?\s*(\/.+\/)?\s*/);if(!$t&&!xt.eol())return"Invalid arguments";if($t[1]){q=$t[1].indexOf("i")!=-1,Y=$t[1].indexOf("u")!=-1;var sr=$t[1].indexOf("d")!=-1||$t[1].indexOf("n")!=-1&&1,Sr=$t[1].indexOf("x")!=-1&&1,In=$t[1].indexOf("o")!=-1&&1;if(sr+Sr+In>1)return"Invalid arguments";Z=sr&&"decimal"||Sr&&"hex"||In&&"octal"}$t[2]&&(re=new RegExp($t[2].substr(1,$t[2].length-2),q?"i":""))}}function P(xt,$t){if(H){var sr;sr=xt,xt=$t,$t=sr}q&&(xt=xt.toLowerCase(),$t=$t.toLowerCase());var Sr=Z&&Le.exec(xt),In=Z&&Le.exec($t);return Sr?(Sr=parseInt((Sr[1]+Sr[2]).toLowerCase(),qe),In=parseInt((In[1]+In[2]).toLowerCase(),qe),Sr-In):xt<$t?-1:1}function W(xt,$t){if(H){var sr;sr=xt,xt=$t,$t=sr}return q&&(xt[0]=xt[0].toLowerCase(),$t[0]=$t[0].toLowerCase()),xt[0]<$t[0]?-1:1}var H,q,Y,Z,re,ae=S();if(ae){Ot(y,ae+": "+T.argString);return}var be=T.line||y.firstLine(),ke=T.lineEnd||T.line||y.lastLine();if(be!=ke){var ve=new Ne(be,0),we=new Ne(ke,Wt(y,ke)),Oe=y.getRange(ve,we).split(`
1460
- `),Le=re||(Z=="decimal"?/(-?)([\d]+)/:Z=="hex"?/(-?)(?:0x)?([0-9a-f]+)/i:Z=="octal"?/([0-7]+)/:null),qe=Z=="decimal"?10:Z=="hex"?16:Z=="octal"?8:null,at=[],Qe=[];if(Z||re)for(var nt=0;nt<Oe.length;nt++){var wn=re?Oe[nt].match(re):null;wn&&wn[0]!=""?at.push(wn):!re&&Le.exec(Oe[nt])?at.push(Oe[nt]):Qe.push(Oe[nt])}else Qe=Oe;if(at.sort(re?W:P),re)for(var nt=0;nt<at.length;nt++)at[nt]=at[nt].input;else Z||Qe.sort(P);if(Oe=H?at.concat(Qe):Qe.concat(at),Y){var ut=Oe,Mn;Oe=[];for(var nt=0;nt<ut.length;nt++)ut[nt]!=Mn&&Oe.push(ut[nt]),Mn=ut[nt]}y.replaceRange(Oe.join(`
1461
- `),ve,we)}},vglobal:function(y,T){this.global(y,T)},normal:function(y,T){var S=T.argString;if(S&&S[0]=="!"&&(S=S.slice(1),hn=!0),S=S.trimStart(),!S){Ot(y,"Argument is required.");return}var P=T.line;if(typeof P=="number")for(var W=isNaN(T.lineEnd)?P:T.lineEnd,H=P;H<=W;H++)y.setCursor(H,0),E(y,T.argString.trimStart()),y.state.vim.insertMode&&Fr(y,!0);else E(y,T.argString.trimStart()),y.state.vim.insertMode&&Fr(y,!0)},global:function(y,T){var S=T.argString;if(!S){Ot(y,"Regular Expression missing from global");return}var P=T.commandName[0]==="v";S[0]==="!"&&T.commandName[0]==="g"&&(P=!0,S=S.slice(1));var W=T.line!==void 0?T.line:y.firstLine(),H=T.lineEnd||T.line||y.lastLine(),q=Tn(S),Y=S,Z;if(q.length&&(Y=q[0],Z=q.slice(1,q.length).join("/")),Y)try{ze(y,Y,!0,!0)}catch{Ot(y,"Invalid regex: "+Y);return}for(var re=An(y).getQuery(),ae=[],be=W;be<=H;be++){var ke=y.getLine(be),ve=re.test(ke);ve!==P&&ae.push(Z?y.getLineHandle(be):ke)}if(!Z){Ot(y,ae.join(`
1462
- `));return}var we=0,Oe=function(){if(we<ae.length){var Le=ae[we++],qe=y.getLineNumber(Le);if(qe==null){Oe();return}var at=qe+1+Z;Er.processCommand(y,at,{callback:Oe})}else y.releaseLineHandles&&y.releaseLineHandles()};Oe()},substitute:function(y,T){if(!y.getSearchCursor)throw new Error("Search feature not available. Requires searchcursor.js or any other getSearchCursor implementation.");var S=T.argString,P=S?fi(S,S[0]):[],W,H="",q,Y,Z,re=!1,ae=!1;if(P.length)W=P[0],k("pcre")&&W!==""&&(W=new RegExp(W).source),H=P[1],H!==void 0&&(k("pcre")?H=Zr(H.replace(/([^\\])&/g,"$1$$&")):H=es(H),He.lastSubstituteReplacePart=H),q=P[2]?P[2].split(" "):[];else if(S&&S.length){Ot(y,"Substitutions should be of the form :s/pattern/replace/");return}if(q&&(Y=q[0],Z=parseInt(q[1]),Y&&(Y.indexOf("c")!=-1&&(re=!0),Y.indexOf("g")!=-1&&(ae=!0),k("pcre")?W=W+"/"+Y:W=W.replace(/\//g,"\\/")+"/"+Y)),W)try{ze(y,W,!0,!0)}catch{Ot(y,"Invalid regex: "+W);return}if(H=H||He.lastSubstituteReplacePart,H===void 0){Ot(y,"No previous substitute regular expression");return}var be=An(y),ke=be.getQuery(),ve=T.line!==void 0?T.line:y.getCursor().line,we=T.lineEnd||ve;ve==y.firstLine()&&we==y.lastLine()&&(we=1/0),Z&&(ve=we,we=ve+Z-1);var Oe=se(y,new Ne(ve,0)),Le=y.getSearchCursor(ke,Oe);io(y,re,ae,ve,we,Le,ke,H,T.callback)},startinsert:function(y,T){E(y,T.argString=="!"?"A":"i",{})},redo:We.commands.redo,undo:We.commands.undo,write:function(y){We.commands.save?We.commands.save(y):y.save&&y.save()},nohlsearch:function(y){xr(y)},yank:function(y){var T=Ge(y.getCursor()),S=T.line,P=y.getLine(S);He.registerController.pushText("0","yank",P,!0,!0)},delete:function(y,T){var S=T.selectionLine,P=isNaN(T.selectionLineEnd)?S:T.selectionLineEnd;cs.delete(y,{linewise:!0},[{anchor:new Ne(S,0),head:new Ne(P+1,0)}])},join:function(y,T){var S=T.selectionLine,P=isNaN(T.selectionLineEnd)?S:T.selectionLineEnd;y.setCursor(new Ne(S,0)),Un.joinLines(y,{repeat:P-S},y.state.vim)},delmarks:function(y,T){if(!T.argString||!vr(T.argString)){Ot(y,"Argument required");return}for(var S=y.state.vim,P=new We.StringStream(vr(T.argString));!P.eol();){P.eatSpace();var W=P.pos;if(!P.match(/[a-zA-Z]/,!1)){Ot(y,"Invalid argument: "+T.argString.substring(W));return}var H=P.next();if(P.match("-",!0)){if(!P.match(/[a-zA-Z]/,!1)){Ot(y,"Invalid argument: "+T.argString.substring(W));return}var q=H,Y=P.next();if(!(u(q)&&u(Y)||s(q)&&s(Y))){Ot(y,"Invalid argument: "+q+"-");return}var Z=q.charCodeAt(0),re=Y.charCodeAt(0);if(Z>=re){Ot(y,"Invalid argument: "+T.argString.substring(W));return}for(var ae=0;ae<=re-Z;ae++){var be=String.fromCharCode(Z+ae);delete S.marks[be]}}else delete S.marks[H]}}},Er=new Ir;I("insertModeEscKeysTimeout",200,"number"),We.Vim=bt;var Wr={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"},Mi=bt.handleKey.bind(bt);bt.handleKey=function(y,T,S){return y.operation(function(){return Mi(y,T,S)},!0)},D(),r.CodeMirror=We;var Ii=bt.maybeInitVimState_;r.handler={$id:"ace/keyboard/vim",drawCursor:function(y,T,S,P,W){var H=this.state.vim||{},q=S.characterWidth,Y=S.lineHeight,Z=T.top,re=T.left;if(!H.insertMode){var ae=P.cursor?gr.comparePoints(P.cursor,P.start)<=0:W.selection.isBackwards()||W.selection.isEmpty();!ae&&re>q&&(re-=q)}!H.insertMode&&H.status&&(Y/=2,Z+=Y),oo.translate(y,re,Z),oo.setStyle(y.style,"width",q+"px"),oo.setStyle(y.style,"height",Y+"px")},$getDirectionForHighlight:function(y){var T=y.state.cm,S=Ii(T);if(!S.insertMode)return y.session.selection.isBackwards()||y.session.selection.isEmpty()},handleKeyboard:function(y,T,S,P,W){var H=y.editor,q=H.state.cm,Y=Ii(q);if(P!=-1){if(Y.insertMode||(T==-1?(S.charCodeAt(0)>255&&y.inputKey&&(S=y.inputKey,S&&y.inputHash==4&&(S=S.toUpperCase())),y.inputChar=S):T==4||T==0?y.inputKey==S&&y.inputHash==T&&y.inputChar?(S=y.inputChar,T=-1):(y.inputChar=null,y.inputKey=S,y.inputHash=T):y.inputChar=y.inputKey=null),q.state.overwrite&&Y.insertMode&&S=="backspace"&&T==0)return{command:"gotoleft"};if(S=="c"&&T==1&&!Lo.isMac&&H.getCopyText())return H.once("copy",function(){Y.insertMode?H.selection.clearSelection():q.operation(function(){mn(q)})}),{command:"null",passEvent:!0};if(S=="esc"&&!Y.insertMode&&!Y.visualMode&&!q.ace.inMultiSelectMode){var Z=An(q),re=Z.getOverlay();re&&q.removeOverlay(re)}if(T==-1||T&1||T===0&&S.length>1){var ae=Y.insertMode,be=Ws(T,S,W||{},Y);Y.status==null&&(Y.status="");var ke=Eo(q,be,"user");return Y=Ii(q),ke&&Y.status!=null?Y.status+=be:Y.status==null&&(Y.status=""),q._signal("changeStatus"),!ke&&(T!=-1||ae)?void 0:{command:"null",passEvent:!ke}}}},attach:function(y){function T(){var P=Ii(S).insertMode;S.ace.renderer.setStyle("normal-mode",!P),y.textInput.setCommandMode(!P),y.renderer.$keepTextAreaAtCursor=P,y.renderer.$blockCursor=!P}y.state||(y.state={});var S=new We(y);y.state.cm=S,y.$vimModeHandler=this,h(S),Ii(S).status=null,S.on("vim-command-done",function(){S.virtualSelectionMode()||(Ii(S).status=null,S.ace._signal("changeStatus"),S.ace.session.markUndoGroup())}),S.on("changeStatus",function(){S.ace.renderer.updateCursor(),S.ace._signal("changeStatus")}),S.on("vim-mode-change",function(){S.virtualSelectionMode()||(T(),S._signal("changeStatus"))}),T(),y.renderer.$cursorLayer.drawCursor=this.drawCursor.bind(S)},detach:function(y){var T=y.state.cm;d(T),T.destroy(),y.state.cm=null,y.$vimModeHandler=null,y.renderer.$cursorLayer.drawCursor=null,y.renderer.setStyle("normal-mode",!1),y.textInput.setCommandMode(!1),y.renderer.$keepTextAreaAtCursor=!0},getStatusText:function(y){var T=y.state.cm,S=Ii(T);if(S.insertMode)return"INSERT";var P="";return S.visualMode&&(P+="VISUAL",S.visualLine&&(P+=" LINE"),S.visualBlock&&(P+=" BLOCK")),S.status&&(P+=(P?" ":"")+S.status),P}},bt.defineOption({name:"wrap",set:function(y,T){T&&T.ace.setOption("wrap",y)},type:"boolean"},!1),bt.defineEx("write","w",function(){console.log(":write is not implemented")}),Dn.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"}}),Dn.push({keys:"gq",type:"operator",operator:"hardWrap"}),bt.defineOperator("hardWrap",function(y,T,S,P,W){var H=S[0].anchor.line,q=S[0].head.line;return T.linewise&&q--,wo(y.ace,{startRow:H,endRow:q}),Ne(q,0)}),I("textwidth",void 0,"number",["tw"],function(y,T){if(T!==void 0){if(y===void 0){var S=T.ace.getOption("printMarginColumn");return S}var P=Math.round(y);P>1&&T.ace.setOption("printMarginColumn",P)}}),Un.aceCommand=function(y,T,S){y.vimCmd=T,y.ace.inVirtualSelectionMode?y.ace.on("beforeEndOperation",Wi):Wi(null,y.ace)},Un.fold=function(y,T,S){y.ace.execCommand(["toggleFoldWidget","toggleFoldWidget","foldOther","unfoldall"][(T.all?2:0)+(T.open?1:0)])},No=Dn.length,r.handler.defaultKeymap=Dn,r.handler.actions=Un,r.Vim=bt}),function(){ace.require(["ace/keyboard/vim"],function(e){n&&(n.exports=e)})}()}(Ag)),Ag.exports}wk();var _g={},$g;function xk(){return $g||($g=1,function(n){(function(){var t={not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function e(w){return f(m(w),arguments)}function r(w,h){return e.apply(null,[w].concat(h||[]))}function f(w,h){var d=1,a=w.length,l,u="",c,i,s,p,b,x,I,_;for(c=0;c<a;c++)if(typeof w[c]=="string")u+=w[c];else if(typeof w[c]=="object"){if(s=w[c],s.keys)for(l=h[d],i=0;i<s.keys.length;i++){if(l==null)throw new Error(e('[sprintf] Cannot access property "%s" of undefined value "%s"',s.keys[i],s.keys[i-1]));l=l[s.keys[i]]}else s.param_no?l=h[s.param_no]:l=h[d++];if(t.not_type.test(s.type)&&t.not_primitive.test(s.type)&&l instanceof Function&&(l=l()),t.numeric_arg.test(s.type)&&typeof l!="number"&&isNaN(l))throw new TypeError(e("[sprintf] expecting number but found %T",l));switch(t.number.test(s.type)&&(I=l>=0),s.type){case"b":l=parseInt(l,10).toString(2);break;case"c":l=String.fromCharCode(parseInt(l,10));break;case"d":case"i":l=parseInt(l,10);break;case"j":l=JSON.stringify(l,null,s.width?parseInt(s.width):0);break;case"e":l=s.precision?parseFloat(l).toExponential(s.precision):parseFloat(l).toExponential();break;case"f":l=s.precision?parseFloat(l).toFixed(s.precision):parseFloat(l);break;case"g":l=s.precision?String(Number(l.toPrecision(s.precision))):parseFloat(l);break;case"o":l=(parseInt(l,10)>>>0).toString(8);break;case"s":l=String(l),l=s.precision?l.substring(0,s.precision):l;break;case"t":l=String(!!l),l=s.precision?l.substring(0,s.precision):l;break;case"T":l=Object.prototype.toString.call(l).slice(8,-1).toLowerCase(),l=s.precision?l.substring(0,s.precision):l;break;case"u":l=parseInt(l,10)>>>0;break;case"v":l=l.valueOf(),l=s.precision?l.substring(0,s.precision):l;break;case"x":l=(parseInt(l,10)>>>0).toString(16);break;case"X":l=(parseInt(l,10)>>>0).toString(16).toUpperCase();break}t.json.test(s.type)?u+=l:(t.number.test(s.type)&&(!I||s.sign)?(_=I?"+":"-",l=l.toString().replace(t.sign,"")):_="",b=s.pad_char?s.pad_char==="0"?"0":s.pad_char.charAt(1):" ",x=s.width-(_+l).length,p=s.width&&x>0?b.repeat(x):"",u+=s.align?_+l+p:b==="0"?_+p+l:p+_+l)}return u}var g=Object.create(null);function m(w){if(g[w])return g[w];for(var h=w,d,a=[],l=0;h;){if((d=t.text.exec(h))!==null)a.push(d[0]);else if((d=t.modulo.exec(h))!==null)a.push("%");else if((d=t.placeholder.exec(h))!==null){if(d[2]){l|=1;var u=[],c=d[2],i=[];if((i=t.key.exec(c))!==null)for(u.push(i[1]);(c=c.substring(i[0].length))!=="";)if((i=t.key_access.exec(c))!==null)u.push(i[1]);else if((i=t.index_access.exec(c))!==null)u.push(i[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key");else throw new SyntaxError("[sprintf] failed to parse named argument key");d[2]=u}else l|=2;if(l===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");a.push({placeholder:d[0],param_no:d[1],keys:d[2],sign:d[3],pad_char:d[4],align:d[5],width:d[6],precision:d[7],type:d[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");h=h.substring(d[0].length)}return g[w]=a}n.sprintf=e,n.vsprintf=r,typeof window<"u"&&(window.sprintf=e,window.vsprintf=r)})()}(_g)),_g}xk();const Ck=er("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 Gl={exports:{}};/**
1459
+ `)}Ot(y,W)},sort:function(y,T){function S(){if(T.argString){var xt=new We.StringStream(T.argString);if(xt.eat("!")&&(H=!0),xt.eol())return;if(!xt.eatSpace())return"Invalid arguments";var $t=xt.match(/([dinuox]+)?\s*(\/.+\/)?\s*/);if(!$t&&!xt.eol())return"Invalid arguments";if($t[1]){q=$t[1].indexOf("i")!=-1,Y=$t[1].indexOf("u")!=-1;var sr=$t[1].indexOf("d")!=-1||$t[1].indexOf("n")!=-1&&1,Sr=$t[1].indexOf("x")!=-1&&1,En=$t[1].indexOf("o")!=-1&&1;if(sr+Sr+En>1)return"Invalid arguments";Z=sr&&"decimal"||Sr&&"hex"||En&&"octal"}$t[2]&&(re=new RegExp($t[2].substr(1,$t[2].length-2),q?"i":""))}}function P(xt,$t){if(H){var sr;sr=xt,xt=$t,$t=sr}q&&(xt=xt.toLowerCase(),$t=$t.toLowerCase());var Sr=Z&&Le.exec(xt),En=Z&&Le.exec($t);return Sr?(Sr=parseInt((Sr[1]+Sr[2]).toLowerCase(),qe),En=parseInt((En[1]+En[2]).toLowerCase(),qe),Sr-En):xt<$t?-1:1}function W(xt,$t){if(H){var sr;sr=xt,xt=$t,$t=sr}return q&&(xt[0]=xt[0].toLowerCase(),$t[0]=$t[0].toLowerCase()),xt[0]<$t[0]?-1:1}var H,q,Y,Z,re,ae=S();if(ae){Ot(y,ae+": "+T.argString);return}var be=T.line||y.firstLine(),ke=T.lineEnd||T.line||y.lastLine();if(be!=ke){var ve=new Ne(be,0),we=new Ne(ke,Wt(y,ke)),Oe=y.getRange(ve,we).split(`
1460
+ `),Le=re||(Z=="decimal"?/(-?)([\d]+)/:Z=="hex"?/(-?)(?:0x)?([0-9a-f]+)/i:Z=="octal"?/([0-7]+)/:null),qe=Z=="decimal"?10:Z=="hex"?16:Z=="octal"?8:null,at=[],Qe=[];if(Z||re)for(var nt=0;nt<Oe.length;nt++){var wn=re?Oe[nt].match(re):null;wn&&wn[0]!=""?at.push(wn):!re&&Le.exec(Oe[nt])?at.push(Oe[nt]):Qe.push(Oe[nt])}else Qe=Oe;if(at.sort(re?W:P),re)for(var nt=0;nt<at.length;nt++)at[nt]=at[nt].input;else Z||Qe.sort(P);if(Oe=H?at.concat(Qe):Qe.concat(at),Y){var ut=Oe,In;Oe=[];for(var nt=0;nt<ut.length;nt++)ut[nt]!=In&&Oe.push(ut[nt]),In=ut[nt]}y.replaceRange(Oe.join(`
1461
+ `),ve,we)}},vglobal:function(y,T){this.global(y,T)},normal:function(y,T){var S=T.argString;if(S&&S[0]=="!"&&(S=S.slice(1),hn=!0),S=S.trimStart(),!S){Ot(y,"Argument is required.");return}var P=T.line;if(typeof P=="number")for(var W=isNaN(T.lineEnd)?P:T.lineEnd,H=P;H<=W;H++)y.setCursor(H,0),E(y,T.argString.trimStart()),y.state.vim.insertMode&&Fr(y,!0);else E(y,T.argString.trimStart()),y.state.vim.insertMode&&Fr(y,!0)},global:function(y,T){var S=T.argString;if(!S){Ot(y,"Regular Expression missing from global");return}var P=T.commandName[0]==="v";S[0]==="!"&&T.commandName[0]==="g"&&(P=!0,S=S.slice(1));var W=T.line!==void 0?T.line:y.firstLine(),H=T.lineEnd||T.line||y.lastLine(),q=Mn(S),Y=S,Z;if(q.length&&(Y=q[0],Z=q.slice(1,q.length).join("/")),Y)try{ze(y,Y,!0,!0)}catch{Ot(y,"Invalid regex: "+Y);return}for(var re=Sn(y).getQuery(),ae=[],be=W;be<=H;be++){var ke=y.getLine(be),ve=re.test(ke);ve!==P&&ae.push(Z?y.getLineHandle(be):ke)}if(!Z){Ot(y,ae.join(`
1462
+ `));return}var we=0,Oe=function(){if(we<ae.length){var Le=ae[we++],qe=y.getLineNumber(Le);if(qe==null){Oe();return}var at=qe+1+Z;Er.processCommand(y,at,{callback:Oe})}else y.releaseLineHandles&&y.releaseLineHandles()};Oe()},substitute:function(y,T){if(!y.getSearchCursor)throw new Error("Search feature not available. Requires searchcursor.js or any other getSearchCursor implementation.");var S=T.argString,P=S?fi(S,S[0]):[],W,H="",q,Y,Z,re=!1,ae=!1;if(P.length)W=P[0],k("pcre")&&W!==""&&(W=new RegExp(W).source),H=P[1],H!==void 0&&(k("pcre")?H=Zr(H.replace(/([^\\])&/g,"$1$$&")):H=es(H),He.lastSubstituteReplacePart=H),q=P[2]?P[2].split(" "):[];else if(S&&S.length){Ot(y,"Substitutions should be of the form :s/pattern/replace/");return}if(q&&(Y=q[0],Z=parseInt(q[1]),Y&&(Y.indexOf("c")!=-1&&(re=!0),Y.indexOf("g")!=-1&&(ae=!0),k("pcre")?W=W+"/"+Y:W=W.replace(/\//g,"\\/")+"/"+Y)),W)try{ze(y,W,!0,!0)}catch{Ot(y,"Invalid regex: "+W);return}if(H=H||He.lastSubstituteReplacePart,H===void 0){Ot(y,"No previous substitute regular expression");return}var be=Sn(y),ke=be.getQuery(),ve=T.line!==void 0?T.line:y.getCursor().line,we=T.lineEnd||ve;ve==y.firstLine()&&we==y.lastLine()&&(we=1/0),Z&&(ve=we,we=ve+Z-1);var Oe=se(y,new Ne(ve,0)),Le=y.getSearchCursor(ke,Oe);io(y,re,ae,ve,we,Le,ke,H,T.callback)},startinsert:function(y,T){E(y,T.argString=="!"?"A":"i",{})},redo:We.commands.redo,undo:We.commands.undo,write:function(y){We.commands.save?We.commands.save(y):y.save&&y.save()},nohlsearch:function(y){xr(y)},yank:function(y){var T=Ge(y.getCursor()),S=T.line,P=y.getLine(S);He.registerController.pushText("0","yank",P,!0,!0)},delete:function(y,T){var S=T.selectionLine,P=isNaN(T.selectionLineEnd)?S:T.selectionLineEnd;cs.delete(y,{linewise:!0},[{anchor:new Ne(S,0),head:new Ne(P+1,0)}])},join:function(y,T){var S=T.selectionLine,P=isNaN(T.selectionLineEnd)?S:T.selectionLineEnd;y.setCursor(new Ne(S,0)),Un.joinLines(y,{repeat:P-S},y.state.vim)},delmarks:function(y,T){if(!T.argString||!vr(T.argString)){Ot(y,"Argument required");return}for(var S=y.state.vim,P=new We.StringStream(vr(T.argString));!P.eol();){P.eatSpace();var W=P.pos;if(!P.match(/[a-zA-Z]/,!1)){Ot(y,"Invalid argument: "+T.argString.substring(W));return}var H=P.next();if(P.match("-",!0)){if(!P.match(/[a-zA-Z]/,!1)){Ot(y,"Invalid argument: "+T.argString.substring(W));return}var q=H,Y=P.next();if(!(u(q)&&u(Y)||s(q)&&s(Y))){Ot(y,"Invalid argument: "+q+"-");return}var Z=q.charCodeAt(0),re=Y.charCodeAt(0);if(Z>=re){Ot(y,"Invalid argument: "+T.argString.substring(W));return}for(var ae=0;ae<=re-Z;ae++){var be=String.fromCharCode(Z+ae);delete S.marks[be]}}else delete S.marks[H]}}},Er=new Ir;I("insertModeEscKeysTimeout",200,"number"),We.Vim=bt;var Wr={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"},Mi=bt.handleKey.bind(bt);bt.handleKey=function(y,T,S){return y.operation(function(){return Mi(y,T,S)},!0)},D(),r.CodeMirror=We;var Ii=bt.maybeInitVimState_;r.handler={$id:"ace/keyboard/vim",drawCursor:function(y,T,S,P,W){var H=this.state.vim||{},q=S.characterWidth,Y=S.lineHeight,Z=T.top,re=T.left;if(!H.insertMode){var ae=P.cursor?gr.comparePoints(P.cursor,P.start)<=0:W.selection.isBackwards()||W.selection.isEmpty();!ae&&re>q&&(re-=q)}!H.insertMode&&H.status&&(Y/=2,Z+=Y),oo.translate(y,re,Z),oo.setStyle(y.style,"width",q+"px"),oo.setStyle(y.style,"height",Y+"px")},$getDirectionForHighlight:function(y){var T=y.state.cm,S=Ii(T);if(!S.insertMode)return y.session.selection.isBackwards()||y.session.selection.isEmpty()},handleKeyboard:function(y,T,S,P,W){var H=y.editor,q=H.state.cm,Y=Ii(q);if(P!=-1){if(Y.insertMode||(T==-1?(S.charCodeAt(0)>255&&y.inputKey&&(S=y.inputKey,S&&y.inputHash==4&&(S=S.toUpperCase())),y.inputChar=S):T==4||T==0?y.inputKey==S&&y.inputHash==T&&y.inputChar?(S=y.inputChar,T=-1):(y.inputChar=null,y.inputKey=S,y.inputHash=T):y.inputChar=y.inputKey=null),q.state.overwrite&&Y.insertMode&&S=="backspace"&&T==0)return{command:"gotoleft"};if(S=="c"&&T==1&&!Lo.isMac&&H.getCopyText())return H.once("copy",function(){Y.insertMode?H.selection.clearSelection():q.operation(function(){mn(q)})}),{command:"null",passEvent:!0};if(S=="esc"&&!Y.insertMode&&!Y.visualMode&&!q.ace.inMultiSelectMode){var Z=Sn(q),re=Z.getOverlay();re&&q.removeOverlay(re)}if(T==-1||T&1||T===0&&S.length>1){var ae=Y.insertMode,be=Ws(T,S,W||{},Y);Y.status==null&&(Y.status="");var ke=Eo(q,be,"user");return Y=Ii(q),ke&&Y.status!=null?Y.status+=be:Y.status==null&&(Y.status=""),q._signal("changeStatus"),!ke&&(T!=-1||ae)?void 0:{command:"null",passEvent:!ke}}}},attach:function(y){function T(){var P=Ii(S).insertMode;S.ace.renderer.setStyle("normal-mode",!P),y.textInput.setCommandMode(!P),y.renderer.$keepTextAreaAtCursor=P,y.renderer.$blockCursor=!P}y.state||(y.state={});var S=new We(y);y.state.cm=S,y.$vimModeHandler=this,h(S),Ii(S).status=null,S.on("vim-command-done",function(){S.virtualSelectionMode()||(Ii(S).status=null,S.ace._signal("changeStatus"),S.ace.session.markUndoGroup())}),S.on("changeStatus",function(){S.ace.renderer.updateCursor(),S.ace._signal("changeStatus")}),S.on("vim-mode-change",function(){S.virtualSelectionMode()||(T(),S._signal("changeStatus"))}),T(),y.renderer.$cursorLayer.drawCursor=this.drawCursor.bind(S)},detach:function(y){var T=y.state.cm;d(T),T.destroy(),y.state.cm=null,y.$vimModeHandler=null,y.renderer.$cursorLayer.drawCursor=null,y.renderer.setStyle("normal-mode",!1),y.textInput.setCommandMode(!1),y.renderer.$keepTextAreaAtCursor=!0},getStatusText:function(y){var T=y.state.cm,S=Ii(T);if(S.insertMode)return"INSERT";var P="";return S.visualMode&&(P+="VISUAL",S.visualLine&&(P+=" LINE"),S.visualBlock&&(P+=" BLOCK")),S.status&&(P+=(P?" ":"")+S.status),P}},bt.defineOption({name:"wrap",set:function(y,T){T&&T.ace.setOption("wrap",y)},type:"boolean"},!1),bt.defineEx("write","w",function(){console.log(":write is not implemented")}),Dn.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"}}),Dn.push({keys:"gq",type:"operator",operator:"hardWrap"}),bt.defineOperator("hardWrap",function(y,T,S,P,W){var H=S[0].anchor.line,q=S[0].head.line;return T.linewise&&q--,xo(y.ace,{startRow:H,endRow:q}),Ne(q,0)}),I("textwidth",void 0,"number",["tw"],function(y,T){if(T!==void 0){if(y===void 0){var S=T.ace.getOption("printMarginColumn");return S}var P=Math.round(y);P>1&&T.ace.setOption("printMarginColumn",P)}}),Un.aceCommand=function(y,T,S){y.vimCmd=T,y.ace.inVirtualSelectionMode?y.ace.on("beforeEndOperation",Wi):Wi(null,y.ace)},Un.fold=function(y,T,S){y.ace.execCommand(["toggleFoldWidget","toggleFoldWidget","foldOther","unfoldall"][(T.all?2:0)+(T.open?1:0)])},No=Dn.length,r.handler.defaultKeymap=Dn,r.handler.actions=Un,r.Vim=bt}),function(){ace.require(["ace/keyboard/vim"],function(e){n&&(n.exports=e)})}()}(Ag)),Ag.exports}wk();var _g={},$g;function xk(){return $g||($g=1,function(n){(function(){var t={not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function e(w){return f(m(w),arguments)}function r(w,h){return e.apply(null,[w].concat(h||[]))}function f(w,h){var d=1,a=w.length,l,u="",c,i,s,p,b,x,I,_;for(c=0;c<a;c++)if(typeof w[c]=="string")u+=w[c];else if(typeof w[c]=="object"){if(s=w[c],s.keys)for(l=h[d],i=0;i<s.keys.length;i++){if(l==null)throw new Error(e('[sprintf] Cannot access property "%s" of undefined value "%s"',s.keys[i],s.keys[i-1]));l=l[s.keys[i]]}else s.param_no?l=h[s.param_no]:l=h[d++];if(t.not_type.test(s.type)&&t.not_primitive.test(s.type)&&l instanceof Function&&(l=l()),t.numeric_arg.test(s.type)&&typeof l!="number"&&isNaN(l))throw new TypeError(e("[sprintf] expecting number but found %T",l));switch(t.number.test(s.type)&&(I=l>=0),s.type){case"b":l=parseInt(l,10).toString(2);break;case"c":l=String.fromCharCode(parseInt(l,10));break;case"d":case"i":l=parseInt(l,10);break;case"j":l=JSON.stringify(l,null,s.width?parseInt(s.width):0);break;case"e":l=s.precision?parseFloat(l).toExponential(s.precision):parseFloat(l).toExponential();break;case"f":l=s.precision?parseFloat(l).toFixed(s.precision):parseFloat(l);break;case"g":l=s.precision?String(Number(l.toPrecision(s.precision))):parseFloat(l);break;case"o":l=(parseInt(l,10)>>>0).toString(8);break;case"s":l=String(l),l=s.precision?l.substring(0,s.precision):l;break;case"t":l=String(!!l),l=s.precision?l.substring(0,s.precision):l;break;case"T":l=Object.prototype.toString.call(l).slice(8,-1).toLowerCase(),l=s.precision?l.substring(0,s.precision):l;break;case"u":l=parseInt(l,10)>>>0;break;case"v":l=l.valueOf(),l=s.precision?l.substring(0,s.precision):l;break;case"x":l=(parseInt(l,10)>>>0).toString(16);break;case"X":l=(parseInt(l,10)>>>0).toString(16).toUpperCase();break}t.json.test(s.type)?u+=l:(t.number.test(s.type)&&(!I||s.sign)?(_=I?"+":"-",l=l.toString().replace(t.sign,"")):_="",b=s.pad_char?s.pad_char==="0"?"0":s.pad_char.charAt(1):" ",x=s.width-(_+l).length,p=s.width&&x>0?b.repeat(x):"",u+=s.align?_+l+p:b==="0"?_+p+l:p+_+l)}return u}var g=Object.create(null);function m(w){if(g[w])return g[w];for(var h=w,d,a=[],l=0;h;){if((d=t.text.exec(h))!==null)a.push(d[0]);else if((d=t.modulo.exec(h))!==null)a.push("%");else if((d=t.placeholder.exec(h))!==null){if(d[2]){l|=1;var u=[],c=d[2],i=[];if((i=t.key.exec(c))!==null)for(u.push(i[1]);(c=c.substring(i[0].length))!=="";)if((i=t.key_access.exec(c))!==null)u.push(i[1]);else if((i=t.index_access.exec(c))!==null)u.push(i[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key");else throw new SyntaxError("[sprintf] failed to parse named argument key");d[2]=u}else l|=2;if(l===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");a.push({placeholder:d[0],param_no:d[1],keys:d[2],sign:d[3],pad_char:d[4],align:d[5],width:d[6],precision:d[7],type:d[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");h=h.substring(d[0].length)}return g[w]=a}n.sprintf=e,n.vsprintf=r,typeof window<"u"&&(window.sprintf=e,window.vsprintf=r)})()}(_g)),_g}xk();const Ck=er("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 Gl={exports:{}};/**
1463
1463
  * @license
1464
1464
  * Lodash <https://lodash.com/>
1465
1465
  * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
1466
1466
  * Released under MIT license <https://lodash.com/license>
1467
1467
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
1468
1468
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
1469
- */var kk=Gl.exports,Tg;function Ak(){return Tg||(Tg=1,function(n,t){(function(){var e,r="4.17.21",f=200,g="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",m="Expected a function",w="Invalid `variable` option passed into `_.template`",h="__lodash_hash_undefined__",d=500,a="__lodash_placeholder__",l=1,u=2,c=4,i=1,s=2,p=1,b=2,x=4,I=8,_=16,k=32,C=64,L=128,D=256,R=512,E=30,z="...",F=800,O=16,$=1,A=2,N=3,B=1/0,U=9007199254740991,K=17976931348623157e292,Q=NaN,J=4294967295,he=J-1,ne=J>>>1,le=[["ary",L],["bind",p],["bindKey",b],["curry",I],["curryRight",_],["flip",R],["partial",k],["partialRight",C],["rearg",D]],se="[object Arguments]",de="[object Array]",me="[object AsyncFunction]",_e="[object Boolean]",Te="[object Date]",Me="[object DOMException]",Ze="[object Error]",Ge="[object Function]",lt="[object GeneratorFunction]",tt="[object Map]",ct="[object Number]",Yt="[object Null]",Cn="[object Object]",Wt="[object Promise]",vr="[object Proxy]",un="[object RegExp]",Ln="[object Set]",Xn="[object String]",Mr="[object Symbol]",yt="[object Undefined]",je="[object WeakMap]",Lt="[object WeakSet]",Qt="[object ArrayBuffer]",On="[object DataView]",yr="[object Float32Array]",hr="[object Float64Array]",mn="[object Int8Array]",Wn="[object Int16Array]",Nn="[object Int32Array]",Kt="[object Uint8Array]",ln="[object Uint8ClampedArray]",Dr="[object Uint16Array]",Gr="[object Uint32Array]",Yr=/\b__p \+= '';/g,Si=/\b(__p \+=) '' \+/g,ci=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Bn=/&(?:amp|lt|gt|quot|#39);/g,ro=/[&<>"']/g,ui=RegExp(Bn.source),Os=RegExp(ro.source),Xr=/<%-([\s\S]+?)%>/g,$n=/<%([\s\S]+?)%>/g,hi=/<%=([\s\S]+?)%>/g,Jo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,di=/^\w*$/,kn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,dr=/[\\^$.*+?()[\]{}|]/g,pi=RegExp(dr.source),An=/^\s+/,Tn=/\s/,br=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,fi=/\{\n\/\* \[wrapped with (.+)\] \*/,mo=/,? & /,vo=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,es=/[()=,{}\[\]\/\s]/,Zr=/\\(\\)?/g,gi=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Pr=/\w*$/,Ot=/^[-+]0x[0-9a-f]+$/i,Mo=/^0b[01]+$/i,wr=/^\[object .+?Constructor\]$/,ce=/^0o[0-7]+$/i,ze=/^(?:0|[1-9]\d*)$/,Pe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_t=/($^)/,Gt=/['\n\r\u2028\u2029\\]/g,Ht="\\ud800-\\udfff",xr="\\u0300-\\u036f",pr="\\ufe20-\\ufe2f",zn="\\u20d0-\\u20ff",Cr=xr+pr+zn,vn="\\u2700-\\u27bf",io="a-z\\xdf-\\xf6\\xf8-\\xff",Fr="\\xac\\xb1\\xd7\\xf7",ts="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Ns="\\u2000-\\u206f",Ds=" \\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",ns="A-Z\\xc0-\\xd6\\xd8-\\xde",fr="\\ufe0e\\ufe0f",Ps=Fr+ts+Ns+Ds,Io="['’]",rs="["+Ht+"]",is="["+Ps+"]",yo="["+Cr+"]",Fs="\\d+",ba="["+vn+"]",os="["+io+"]",ss="[^"+Ht+Ps+Fs+vn+io+ns+"]",Ws="\\ud83c[\\udffb-\\udfff]",as="(?:"+yo+"|"+Ws+")",Eo="[^"+Ht+"]",Wi="(?:\\ud83c[\\udde6-\\uddff]){2}",gr="[\\ud800-\\udbff][\\udc00-\\udfff]",bo="["+ns+"]",oo="\\u200d",wa="(?:"+os+"|"+ss+")",ul="(?:"+bo+"|"+ss+")",Ro="(?:"+Io+"(?:d|ll|m|re|s|t|ve))?",so="(?:"+Io+"(?:D|LL|M|RE|S|T|VE))?",Lo=as+"?",ls="["+fr+"]?",Oo="(?:"+oo+"(?:"+[Eo,Wi,gr].join("|")+")"+ls+Lo+")*",xa="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",wo="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",We=ls+Lo+Oo,Ca="(?:"+[ba,Wi,gr].join("|")+")"+We,Ne="(?:"+[Eo+yo+"?",yo,Wi,gr,rs].join("|")+")",Dn=RegExp(Io,"g"),No=RegExp(yo,"g"),_i=RegExp(Ws+"(?="+Ws+")|"+Ne+We,"g"),Zn=RegExp([bo+"?"+os+"+"+Ro+"(?="+[is,bo,"$"].join("|")+")",ul+"+"+so+"(?="+[is,bo+wa,"$"].join("|")+")",bo+"?"+wa+"+"+Ro,bo+"+"+so,wo,xa,Fs,Ca].join("|"),"g"),ka=RegExp("["+oo+Ht+Cr+fr+"]"),Do=/[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"],xo=-1,nn={};nn[yr]=nn[hr]=nn[mn]=nn[Wn]=nn[Nn]=nn[Kt]=nn[ln]=nn[Dr]=nn[Gr]=!0,nn[se]=nn[de]=nn[Qt]=nn[_e]=nn[On]=nn[Te]=nn[Ze]=nn[Ge]=nn[tt]=nn[ct]=nn[Cn]=nn[un]=nn[Ln]=nn[Xn]=nn[je]=!1;var Jt={};Jt[se]=Jt[de]=Jt[Qt]=Jt[On]=Jt[_e]=Jt[Te]=Jt[yr]=Jt[hr]=Jt[mn]=Jt[Wn]=Jt[Nn]=Jt[tt]=Jt[ct]=Jt[Cn]=Jt[un]=Jt[Ln]=Jt[Xn]=Jt[Mr]=Jt[Kt]=Jt[ln]=Jt[Dr]=Jt[Gr]=!0,Jt[Ze]=Jt[Ge]=Jt[je]=!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"},jt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},zi={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Hn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},He=parseFloat,bn=parseInt,bt=typeof Xo=="object"&&Xo&&Xo.Object===Object&&Xo,Qr=typeof self=="object"&&self&&self.Object===Object&&self,hn=bt||Qr||Function("return this")(),Sn=t&&!t.nodeType&&t,or=Sn&&!0&&n&&!n.nodeType&&n,Jr=or&&or.exports===Sn,Hi=Jr&&bt.process,jn=function(){try{var fe=or&&or.require&&or.require("util").types;return fe||Hi&&Hi.binding&&Hi.binding("util")}catch{}}(),mi=jn&&jn.isArrayBuffer,cs=jn&&jn.isDate,Un=jn&&jn.isMap,$i=jn&&jn.isRegExp,Ti=jn&&jn.isSet,ji=jn&&jn.isTypedArray;function kr(fe,$e,Ce){switch(Ce.length){case 0:return fe.call($e);case 1:return fe.call($e,Ce[0]);case 2:return fe.call($e,Ce[0],Ce[1]);case 3:return fe.call($e,Ce[0],Ce[1],Ce[2])}return fe.apply($e,Ce)}function Ar(fe,$e,Ce,Ue){for(var dt=-1,Tt=fe==null?0:fe.length;++dt<Tt;){var Xt=fe[dt];$e(Ue,Xt,Ce(Xt),fe)}return Ue}function Ir(fe,$e){for(var Ce=-1,Ue=fe==null?0:fe.length;++Ce<Ue&&$e(fe[Ce],Ce,fe)!==!1;);return fe}function Bs(fe,$e){for(var Ce=fe==null?0:fe.length;Ce--&&$e(fe[Ce],Ce,fe)!==!1;);return fe}function Er(fe,$e){for(var Ce=-1,Ue=fe==null?0:fe.length;++Ce<Ue;)if(!$e(fe[Ce],Ce,fe))return!1;return!0}function Wr(fe,$e){for(var Ce=-1,Ue=fe==null?0:fe.length,dt=0,Tt=[];++Ce<Ue;){var Xt=fe[Ce];$e(Xt,Ce,fe)&&(Tt[dt++]=Xt)}return Tt}function Mi(fe,$e){var Ce=fe==null?0:fe.length;return!!Ce&&ae(fe,$e,0)>-1}function Ii(fe,$e,Ce){for(var Ue=-1,dt=fe==null?0:fe.length;++Ue<dt;)if(Ce($e,fe[Ue]))return!0;return!1}function y(fe,$e){for(var Ce=-1,Ue=fe==null?0:fe.length,dt=Array(Ue);++Ce<Ue;)dt[Ce]=$e(fe[Ce],Ce,fe);return dt}function T(fe,$e){for(var Ce=-1,Ue=$e.length,dt=fe.length;++Ce<Ue;)fe[dt+Ce]=$e[Ce];return fe}function S(fe,$e,Ce,Ue){var dt=-1,Tt=fe==null?0:fe.length;for(Ue&&Tt&&(Ce=fe[++dt]);++dt<Tt;)Ce=$e(Ce,fe[dt],dt,fe);return Ce}function P(fe,$e,Ce,Ue){var dt=fe==null?0:fe.length;for(Ue&&dt&&(Ce=fe[--dt]);dt--;)Ce=$e(Ce,fe[dt],dt,fe);return Ce}function W(fe,$e){for(var Ce=-1,Ue=fe==null?0:fe.length;++Ce<Ue;)if($e(fe[Ce],Ce,fe))return!0;return!1}var H=we("length");function q(fe){return fe.split("")}function Y(fe){return fe.match(vo)||[]}function Z(fe,$e,Ce){var Ue;return Ce(fe,function(dt,Tt,Xt){if($e(dt,Tt,Xt))return Ue=Tt,!1}),Ue}function re(fe,$e,Ce,Ue){for(var dt=fe.length,Tt=Ce+(Ue?1:-1);Ue?Tt--:++Tt<dt;)if($e(fe[Tt],Tt,fe))return Tt;return-1}function ae(fe,$e,Ce){return $e===$e?Je(fe,$e,Ce):re(fe,ke,Ce)}function be(fe,$e,Ce,Ue){for(var dt=Ce-1,Tt=fe.length;++dt<Tt;)if(Ue(fe[dt],$e))return dt;return-1}function ke(fe){return fe!==fe}function ve(fe,$e){var Ce=fe==null?0:fe.length;return Ce?at(fe,$e)/Ce:Q}function we(fe){return function($e){return $e==null?e:$e[fe]}}function Oe(fe){return function($e){return fe==null?e:fe[$e]}}function Le(fe,$e,Ce,Ue,dt){return dt(fe,function(Tt,Xt,Et){Ce=Ue?(Ue=!1,Tt):$e(Ce,Tt,Xt,Et)}),Ce}function qe(fe,$e){var Ce=fe.length;for(fe.sort($e);Ce--;)fe[Ce]=fe[Ce].value;return fe}function at(fe,$e){for(var Ce,Ue=-1,dt=fe.length;++Ue<dt;){var Tt=$e(fe[Ue]);Tt!==e&&(Ce=Ce===e?Tt:Ce+Tt)}return Ce}function Qe(fe,$e){for(var Ce=-1,Ue=Array(fe);++Ce<fe;)Ue[Ce]=$e(Ce);return Ue}function nt(fe,$e){return y($e,function(Ce){return[Ce,fe[Ce]]})}function wn(fe){return fe&&fe.slice(0,Nt(fe)+1).replace(An,"")}function ut(fe){return function($e){return fe($e)}}function Mn(fe,$e){return y($e,function(Ce){return fe[Ce]})}function xt(fe,$e){return fe.has($e)}function $t(fe,$e){for(var Ce=-1,Ue=fe.length;++Ce<Ue&&ae($e,fe[Ce],0)>-1;);return Ce}function sr(fe,$e){for(var Ce=fe.length;Ce--&&ae($e,fe[Ce],0)>-1;);return Ce}function Sr(fe,$e){for(var Ce=fe.length,Ue=0;Ce--;)fe[Ce]===$e&&++Ue;return Ue}var In=Oe(rn),V=Oe(jt);function X(fe){return"\\"+Hn[fe]}function ie(fe,$e){return fe==null?e:fe[$e]}function oe(fe){return ka.test(fe)}function ge(fe){return Do.test(fe)}function xe(fe){for(var $e,Ce=[];!($e=fe.next()).done;)Ce.push($e.value);return Ce}function Ie(fe){var $e=-1,Ce=Array(fe.size);return fe.forEach(function(Ue,dt){Ce[++$e]=[dt,Ue]}),Ce}function Fe(fe,$e){return function(Ce){return fe($e(Ce))}}function Be(fe,$e){for(var Ce=-1,Ue=fe.length,dt=0,Tt=[];++Ce<Ue;){var Xt=fe[Ce];(Xt===$e||Xt===a)&&(fe[Ce]=a,Tt[dt++]=Ce)}return Tt}function Ke(fe){var $e=-1,Ce=Array(fe.size);return fe.forEach(function(Ue){Ce[++$e]=Ue}),Ce}function Xe(fe){var $e=-1,Ce=Array(fe.size);return fe.forEach(function(Ue){Ce[++$e]=[Ue,Ue]}),Ce}function Je(fe,$e,Ce){for(var Ue=Ce-1,dt=fe.length;++Ue<dt;)if(fe[Ue]===$e)return Ue;return-1}function wt(fe,$e,Ce){for(var Ue=Ce+1;Ue--;)if(fe[Ue]===$e)return Ue;return Ue}function Pt(fe){return oe(fe)?it(fe):H(fe)}function Ct(fe){return oe(fe)?yn(fe):q(fe)}function Nt(fe){for(var $e=fe.length;$e--&&Tn.test(fe.charAt($e)););return $e}var ft=Oe(zi);function it(fe){for(var $e=_i.lastIndex=0;_i.test(fe);)++$e;return $e}function yn(fe){return fe.match(_i)||[]}function En(fe){return fe.match(Zn)||[]}var ar=function fe($e){$e=$e==null?hn:Vt.defaults(hn.Object(),$e,Vt.pick(hn,Bi));var Ce=$e.Array,Ue=$e.Date,dt=$e.Error,Tt=$e.Function,Xt=$e.Math,Et=$e.Object,ei=$e.RegExp,Ui=$e.String,dn=$e.TypeError,_r=Ce.prototype,Po=Tt.prototype,Vn=Et.prototype,zs=$e["__core-js_shared__"],Ec=Po.toString,cn=Vn.hasOwnProperty,YI=0,gb=function(){var o=/[^.]+$/.exec(zs&&zs.keys&&zs.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""}(),Rc=Vn.toString,XI=Ec.call(Et),ZI=hn._,QI=ei("^"+Ec.call(cn).replace(dr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Lc=Jr?$e.Buffer:e,us=$e.Symbol,Oc=$e.Uint8Array,mb=Lc?Lc.allocUnsafe:e,Nc=Fe(Et.getPrototypeOf,Et),vb=Et.create,yb=Vn.propertyIsEnumerable,Dc=_r.splice,bb=us?us.isConcatSpreadable:e,hl=us?us.iterator:e,Hs=us?us.toStringTag:e,Pc=function(){try{var o=Ks(Et,"defineProperty");return o({},"",{}),o}catch{}}(),JI=$e.clearTimeout!==hn.clearTimeout&&$e.clearTimeout,eE=Ue&&Ue.now!==hn.Date.now&&Ue.now,tE=$e.setTimeout!==hn.setTimeout&&$e.setTimeout,Fc=Xt.ceil,Wc=Xt.floor,Ld=Et.getOwnPropertySymbols,nE=Lc?Lc.isBuffer:e,wb=$e.isFinite,rE=_r.join,iE=Fe(Et.keys,Et),mr=Xt.max,Br=Xt.min,oE=Ue.now,sE=$e.parseInt,xb=Xt.random,aE=_r.reverse,Od=Ks($e,"DataView"),dl=Ks($e,"Map"),Nd=Ks($e,"Promise"),Aa=Ks($e,"Set"),pl=Ks($e,"WeakMap"),fl=Ks(Et,"create"),Bc=pl&&new pl,Sa={},lE=Gs(Od),cE=Gs(dl),uE=Gs(Nd),hE=Gs(Aa),dE=Gs(pl),zc=us?us.prototype:e,gl=zc?zc.valueOf:e,Cb=zc?zc.toString:e;function ee(o){if(qn(o)&&!kt(o)&&!(o instanceof Ut)){if(o instanceof Vi)return o;if(cn.call(o,"__wrapped__"))return k0(o)}return new Vi(o)}var _a=function(){function o(){}return function(v){if(!Pn(v))return{};if(vb)return vb(v);o.prototype=v;var M=new o;return o.prototype=e,M}}();function Hc(){}function Vi(o,v){this.__wrapped__=o,this.__actions__=[],this.__chain__=!!v,this.__index__=0,this.__values__=e}ee.templateSettings={escape:Xr,evaluate:$n,interpolate:hi,variable:"",imports:{_:ee}},ee.prototype=Hc.prototype,ee.prototype.constructor=ee,Vi.prototype=_a(Hc.prototype),Vi.prototype.constructor=Vi;function Ut(o){this.__wrapped__=o,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=J,this.__views__=[]}function pE(){var o=new Ut(this.__wrapped__);return o.__actions__=vi(this.__actions__),o.__dir__=this.__dir__,o.__filtered__=this.__filtered__,o.__iteratees__=vi(this.__iteratees__),o.__takeCount__=this.__takeCount__,o.__views__=vi(this.__views__),o}function fE(){if(this.__filtered__){var o=new Ut(this);o.__dir__=-1,o.__filtered__=!0}else o=this.clone(),o.__dir__*=-1;return o}function gE(){var o=this.__wrapped__.value(),v=this.__dir__,M=kt(o),j=v<0,G=M?o.length:0,te=$R(0,G,this.__views__),ue=te.start,pe=te.end,ye=pe-ue,Ee=j?pe:ue-1,Re=this.__iteratees__,De=Re.length,Ye=0,rt=Br(ye,this.__takeCount__);if(!M||!j&&G==ye&&rt==ye)return qb(o,this.__actions__);var mt=[];e:for(;ye--&&Ye<rt;){Ee+=v;for(var Rt=-1,vt=o[Ee];++Rt<De;){var Bt=Re[Rt],qt=Bt.iteratee,Li=Bt.type,ri=qt(vt);if(Li==A)vt=ri;else if(!ri){if(Li==$)continue e;break e}}mt[Ye++]=vt}return mt}Ut.prototype=_a(Hc.prototype),Ut.prototype.constructor=Ut;function js(o){var v=-1,M=o==null?0:o.length;for(this.clear();++v<M;){var j=o[v];this.set(j[0],j[1])}}function mE(){this.__data__=fl?fl(null):{},this.size=0}function vE(o){var v=this.has(o)&&delete this.__data__[o];return this.size-=v?1:0,v}function yE(o){var v=this.__data__;if(fl){var M=v[o];return M===h?e:M}return cn.call(v,o)?v[o]:e}function bE(o){var v=this.__data__;return fl?v[o]!==e:cn.call(v,o)}function wE(o,v){var M=this.__data__;return this.size+=this.has(o)?0:1,M[o]=fl&&v===e?h:v,this}js.prototype.clear=mE,js.prototype.delete=vE,js.prototype.get=yE,js.prototype.has=bE,js.prototype.set=wE;function Fo(o){var v=-1,M=o==null?0:o.length;for(this.clear();++v<M;){var j=o[v];this.set(j[0],j[1])}}function xE(){this.__data__=[],this.size=0}function CE(o){var v=this.__data__,M=jc(v,o);if(M<0)return!1;var j=v.length-1;return M==j?v.pop():Dc.call(v,M,1),--this.size,!0}function kE(o){var v=this.__data__,M=jc(v,o);return M<0?e:v[M][1]}function AE(o){return jc(this.__data__,o)>-1}function SE(o,v){var M=this.__data__,j=jc(M,o);return j<0?(++this.size,M.push([o,v])):M[j][1]=v,this}Fo.prototype.clear=xE,Fo.prototype.delete=CE,Fo.prototype.get=kE,Fo.prototype.has=AE,Fo.prototype.set=SE;function Wo(o){var v=-1,M=o==null?0:o.length;for(this.clear();++v<M;){var j=o[v];this.set(j[0],j[1])}}function _E(){this.size=0,this.__data__={hash:new js,map:new(dl||Fo),string:new js}}function $E(o){var v=tu(this,o).delete(o);return this.size-=v?1:0,v}function TE(o){return tu(this,o).get(o)}function ME(o){return tu(this,o).has(o)}function IE(o,v){var M=tu(this,o),j=M.size;return M.set(o,v),this.size+=M.size==j?0:1,this}Wo.prototype.clear=_E,Wo.prototype.delete=$E,Wo.prototype.get=TE,Wo.prototype.has=ME,Wo.prototype.set=IE;function Us(o){var v=-1,M=o==null?0:o.length;for(this.__data__=new Wo;++v<M;)this.add(o[v])}function EE(o){return this.__data__.set(o,h),this}function RE(o){return this.__data__.has(o)}Us.prototype.add=Us.prototype.push=EE,Us.prototype.has=RE;function ao(o){var v=this.__data__=new Fo(o);this.size=v.size}function LE(){this.__data__=new Fo,this.size=0}function OE(o){var v=this.__data__,M=v.delete(o);return this.size=v.size,M}function NE(o){return this.__data__.get(o)}function DE(o){return this.__data__.has(o)}function PE(o,v){var M=this.__data__;if(M instanceof Fo){var j=M.__data__;if(!dl||j.length<f-1)return j.push([o,v]),this.size=++M.size,this;M=this.__data__=new Wo(j)}return M.set(o,v),this.size=M.size,this}ao.prototype.clear=LE,ao.prototype.delete=OE,ao.prototype.get=NE,ao.prototype.has=DE,ao.prototype.set=PE;function kb(o,v){var M=kt(o),j=!M&&Ys(o),G=!M&&!j&&gs(o),te=!M&&!j&&!G&&Ia(o),ue=M||j||G||te,pe=ue?Qe(o.length,Ui):[],ye=pe.length;for(var Ee in o)(v||cn.call(o,Ee))&&!(ue&&(Ee=="length"||G&&(Ee=="offset"||Ee=="parent")||te&&(Ee=="buffer"||Ee=="byteLength"||Ee=="byteOffset")||jo(Ee,ye)))&&pe.push(Ee);return pe}function Ab(o){var v=o.length;return v?o[qd(0,v-1)]:e}function FE(o,v){return nu(vi(o),Vs(v,0,o.length))}function WE(o){return nu(vi(o))}function Dd(o,v,M){(M!==e&&!lo(o[v],M)||M===e&&!(v in o))&&Bo(o,v,M)}function ml(o,v,M){var j=o[v];(!(cn.call(o,v)&&lo(j,M))||M===e&&!(v in o))&&Bo(o,v,M)}function jc(o,v){for(var M=o.length;M--;)if(lo(o[M][0],v))return M;return-1}function BE(o,v,M,j){return hs(o,function(G,te,ue){v(j,G,M(G),ue)}),j}function Sb(o,v){return o&&ko(v,$r(v),o)}function zE(o,v){return o&&ko(v,bi(v),o)}function Bo(o,v,M){v=="__proto__"&&Pc?Pc(o,v,{configurable:!0,enumerable:!0,value:M,writable:!0}):o[v]=M}function Pd(o,v){for(var M=-1,j=v.length,G=Ce(j),te=o==null;++M<j;)G[M]=te?e:vp(o,v[M]);return G}function Vs(o,v,M){return o===o&&(M!==e&&(o=o<=M?o:M),v!==e&&(o=o>=v?o:v)),o}function qi(o,v,M,j,G,te){var ue,pe=v&l,ye=v&u,Ee=v&c;if(M&&(ue=G?M(o,j,G,te):M(o)),ue!==e)return ue;if(!Pn(o))return o;var Re=kt(o);if(Re){if(ue=MR(o),!pe)return vi(o,ue)}else{var De=zr(o),Ye=De==Ge||De==lt;if(gs(o))return Yb(o,pe);if(De==Cn||De==se||Ye&&!G){if(ue=ye||Ye?{}:f0(o),!pe)return ye?yR(o,zE(ue,o)):vR(o,Sb(ue,o))}else{if(!Jt[De])return G?o:{};ue=IR(o,De,pe)}}te||(te=new ao);var rt=te.get(o);if(rt)return rt;te.set(o,ue),j0(o)?o.forEach(function(vt){ue.add(qi(vt,v,M,vt,o,te))}):z0(o)&&o.forEach(function(vt,Bt){ue.set(Bt,qi(vt,v,M,Bt,o,te))});var mt=Ee?ye?rp:np:ye?bi:$r,Rt=Re?e:mt(o);return Ir(Rt||o,function(vt,Bt){Rt&&(Bt=vt,vt=o[Bt]),ml(ue,Bt,qi(vt,v,M,Bt,o,te))}),ue}function HE(o){var v=$r(o);return function(M){return _b(M,o,v)}}function _b(o,v,M){var j=M.length;if(o==null)return!j;for(o=Et(o);j--;){var G=M[j],te=v[G],ue=o[G];if(ue===e&&!(G in o)||!te(ue))return!1}return!0}function $b(o,v,M){if(typeof o!="function")throw new dn(m);return kl(function(){o.apply(e,M)},v)}function vl(o,v,M,j){var G=-1,te=Mi,ue=!0,pe=o.length,ye=[],Ee=v.length;if(!pe)return ye;M&&(v=y(v,ut(M))),j?(te=Ii,ue=!1):v.length>=f&&(te=xt,ue=!1,v=new Us(v));e:for(;++G<pe;){var Re=o[G],De=M==null?Re:M(Re);if(Re=j||Re!==0?Re:0,ue&&De===De){for(var Ye=Ee;Ye--;)if(v[Ye]===De)continue e;ye.push(Re)}else te(v,De,j)||ye.push(Re)}return ye}var hs=e0(Co),Tb=e0(Wd,!0);function jE(o,v){var M=!0;return hs(o,function(j,G,te){return M=!!v(j,G,te),M}),M}function Uc(o,v,M){for(var j=-1,G=o.length;++j<G;){var te=o[j],ue=v(te);if(ue!=null&&(pe===e?ue===ue&&!Ri(ue):M(ue,pe)))var pe=ue,ye=te}return ye}function UE(o,v,M,j){var G=o.length;for(M=It(M),M<0&&(M=-M>G?0:G+M),j=j===e||j>G?G:It(j),j<0&&(j+=G),j=M>j?0:V0(j);M<j;)o[M++]=v;return o}function Mb(o,v){var M=[];return hs(o,function(j,G,te){v(j,G,te)&&M.push(j)}),M}function Rr(o,v,M,j,G){var te=-1,ue=o.length;for(M||(M=RR),G||(G=[]);++te<ue;){var pe=o[te];v>0&&M(pe)?v>1?Rr(pe,v-1,M,j,G):T(G,pe):j||(G[G.length]=pe)}return G}var Fd=t0(),Ib=t0(!0);function Co(o,v){return o&&Fd(o,v,$r)}function Wd(o,v){return o&&Ib(o,v,$r)}function Vc(o,v){return Wr(v,function(M){return Uo(o[M])})}function qs(o,v){v=ps(v,o);for(var M=0,j=v.length;o!=null&&M<j;)o=o[Ao(v[M++])];return M&&M==j?o:e}function Eb(o,v,M){var j=v(o);return kt(o)?j:T(j,M(o))}function ti(o){return o==null?o===e?yt:Yt:Hs&&Hs in Et(o)?_R(o):WR(o)}function Bd(o,v){return o>v}function VE(o,v){return o!=null&&cn.call(o,v)}function qE(o,v){return o!=null&&v in Et(o)}function KE(o,v,M){return o>=Br(v,M)&&o<mr(v,M)}function zd(o,v,M){for(var j=M?Ii:Mi,G=o[0].length,te=o.length,ue=te,pe=Ce(te),ye=1/0,Ee=[];ue--;){var Re=o[ue];ue&&v&&(Re=y(Re,ut(v))),ye=Br(Re.length,ye),pe[ue]=!M&&(v||G>=120&&Re.length>=120)?new Us(ue&&Re):e}Re=o[0];var De=-1,Ye=pe[0];e:for(;++De<G&&Ee.length<ye;){var rt=Re[De],mt=v?v(rt):rt;if(rt=M||rt!==0?rt:0,!(Ye?xt(Ye,mt):j(Ee,mt,M))){for(ue=te;--ue;){var Rt=pe[ue];if(!(Rt?xt(Rt,mt):j(o[ue],mt,M)))continue e}Ye&&Ye.push(mt),Ee.push(rt)}}return Ee}function GE(o,v,M,j){return Co(o,function(G,te,ue){v(j,M(G),te,ue)}),j}function yl(o,v,M){v=ps(v,o),o=y0(o,v);var j=o==null?o:o[Ao(Gi(v))];return j==null?e:kr(j,o,M)}function Rb(o){return qn(o)&&ti(o)==se}function YE(o){return qn(o)&&ti(o)==Qt}function XE(o){return qn(o)&&ti(o)==Te}function bl(o,v,M,j,G){return o===v?!0:o==null||v==null||!qn(o)&&!qn(v)?o!==o&&v!==v:ZE(o,v,M,j,bl,G)}function ZE(o,v,M,j,G,te){var ue=kt(o),pe=kt(v),ye=ue?de:zr(o),Ee=pe?de:zr(v);ye=ye==se?Cn:ye,Ee=Ee==se?Cn:Ee;var Re=ye==Cn,De=Ee==Cn,Ye=ye==Ee;if(Ye&&gs(o)){if(!gs(v))return!1;ue=!0,Re=!1}if(Ye&&!Re)return te||(te=new ao),ue||Ia(o)?h0(o,v,M,j,G,te):AR(o,v,ye,M,j,G,te);if(!(M&i)){var rt=Re&&cn.call(o,"__wrapped__"),mt=De&&cn.call(v,"__wrapped__");if(rt||mt){var Rt=rt?o.value():o,vt=mt?v.value():v;return te||(te=new ao),G(Rt,vt,M,j,te)}}return Ye?(te||(te=new ao),SR(o,v,M,j,G,te)):!1}function QE(o){return qn(o)&&zr(o)==tt}function Hd(o,v,M,j){var G=M.length,te=G,ue=!j;if(o==null)return!te;for(o=Et(o);G--;){var pe=M[G];if(ue&&pe[2]?pe[1]!==o[pe[0]]:!(pe[0]in o))return!1}for(;++G<te;){pe=M[G];var ye=pe[0],Ee=o[ye],Re=pe[1];if(ue&&pe[2]){if(Ee===e&&!(ye in o))return!1}else{var De=new ao;if(j)var Ye=j(Ee,Re,ye,o,v,De);if(!(Ye===e?bl(Re,Ee,i|s,j,De):Ye))return!1}}return!0}function Lb(o){if(!Pn(o)||OR(o))return!1;var v=Uo(o)?QI:wr;return v.test(Gs(o))}function JE(o){return qn(o)&&ti(o)==un}function eR(o){return qn(o)&&zr(o)==Ln}function tR(o){return qn(o)&&lu(o.length)&&!!nn[ti(o)]}function Ob(o){return typeof o=="function"?o:o==null?wi:typeof o=="object"?kt(o)?Pb(o[0],o[1]):Db(o):nw(o)}function jd(o){if(!Cl(o))return iE(o);var v=[];for(var M in Et(o))cn.call(o,M)&&M!="constructor"&&v.push(M);return v}function nR(o){if(!Pn(o))return FR(o);var v=Cl(o),M=[];for(var j in o)j=="constructor"&&(v||!cn.call(o,j))||M.push(j);return M}function Ud(o,v){return o<v}function Nb(o,v){var M=-1,j=yi(o)?Ce(o.length):[];return hs(o,function(G,te,ue){j[++M]=v(G,te,ue)}),j}function Db(o){var v=op(o);return v.length==1&&v[0][2]?m0(v[0][0],v[0][1]):function(M){return M===o||Hd(M,o,v)}}function Pb(o,v){return ap(o)&&g0(v)?m0(Ao(o),v):function(M){var j=vp(M,o);return j===e&&j===v?yp(M,o):bl(v,j,i|s)}}function qc(o,v,M,j,G){o!==v&&Fd(v,function(te,ue){if(G||(G=new ao),Pn(te))rR(o,v,ue,M,qc,j,G);else{var pe=j?j(cp(o,ue),te,ue+"",o,v,G):e;pe===e&&(pe=te),Dd(o,ue,pe)}},bi)}function rR(o,v,M,j,G,te,ue){var pe=cp(o,M),ye=cp(v,M),Ee=ue.get(ye);if(Ee){Dd(o,M,Ee);return}var Re=te?te(pe,ye,M+"",o,v,ue):e,De=Re===e;if(De){var Ye=kt(ye),rt=!Ye&&gs(ye),mt=!Ye&&!rt&&Ia(ye);Re=ye,Ye||rt||mt?kt(pe)?Re=pe:Qn(pe)?Re=vi(pe):rt?(De=!1,Re=Yb(ye,!0)):mt?(De=!1,Re=Xb(ye,!0)):Re=[]:Al(ye)||Ys(ye)?(Re=pe,Ys(pe)?Re=q0(pe):(!Pn(pe)||Uo(pe))&&(Re=f0(ye))):De=!1}De&&(ue.set(ye,Re),G(Re,ye,j,te,ue),ue.delete(ye)),Dd(o,M,Re)}function Fb(o,v){var M=o.length;if(M)return v+=v<0?M:0,jo(v,M)?o[v]:e}function Wb(o,v,M){v.length?v=y(v,function(te){return kt(te)?function(ue){return qs(ue,te.length===1?te[0]:te)}:te}):v=[wi];var j=-1;v=y(v,ut(gt()));var G=Nb(o,function(te,ue,pe){var ye=y(v,function(Ee){return Ee(te)});return{criteria:ye,index:++j,value:te}});return qe(G,function(te,ue){return mR(te,ue,M)})}function iR(o,v){return Bb(o,v,function(M,j){return yp(o,j)})}function Bb(o,v,M){for(var j=-1,G=v.length,te={};++j<G;){var ue=v[j],pe=qs(o,ue);M(pe,ue)&&wl(te,ps(ue,o),pe)}return te}function oR(o){return function(v){return qs(v,o)}}function Vd(o,v,M,j){var G=j?be:ae,te=-1,ue=v.length,pe=o;for(o===v&&(v=vi(v)),M&&(pe=y(o,ut(M)));++te<ue;)for(var ye=0,Ee=v[te],Re=M?M(Ee):Ee;(ye=G(pe,Re,ye,j))>-1;)pe!==o&&Dc.call(pe,ye,1),Dc.call(o,ye,1);return o}function zb(o,v){for(var M=o?v.length:0,j=M-1;M--;){var G=v[M];if(M==j||G!==te){var te=G;jo(G)?Dc.call(o,G,1):Yd(o,G)}}return o}function qd(o,v){return o+Wc(xb()*(v-o+1))}function sR(o,v,M,j){for(var G=-1,te=mr(Fc((v-o)/(M||1)),0),ue=Ce(te);te--;)ue[j?te:++G]=o,o+=M;return ue}function Kd(o,v){var M="";if(!o||v<1||v>U)return M;do v%2&&(M+=o),v=Wc(v/2),v&&(o+=o);while(v);return M}function Dt(o,v){return up(v0(o,v,wi),o+"")}function aR(o){return Ab(Ea(o))}function lR(o,v){var M=Ea(o);return nu(M,Vs(v,0,M.length))}function wl(o,v,M,j){if(!Pn(o))return o;v=ps(v,o);for(var G=-1,te=v.length,ue=te-1,pe=o;pe!=null&&++G<te;){var ye=Ao(v[G]),Ee=M;if(ye==="__proto__"||ye==="constructor"||ye==="prototype")return o;if(G!=ue){var Re=pe[ye];Ee=j?j(Re,ye,pe):e,Ee===e&&(Ee=Pn(Re)?Re:jo(v[G+1])?[]:{})}ml(pe,ye,Ee),pe=pe[ye]}return o}var Hb=Bc?function(o,v){return Bc.set(o,v),o}:wi,cR=Pc?function(o,v){return Pc(o,"toString",{configurable:!0,enumerable:!1,value:wp(v),writable:!0})}:wi;function uR(o){return nu(Ea(o))}function Ki(o,v,M){var j=-1,G=o.length;v<0&&(v=-v>G?0:G+v),M=M>G?G:M,M<0&&(M+=G),G=v>M?0:M-v>>>0,v>>>=0;for(var te=Ce(G);++j<G;)te[j]=o[j+v];return te}function hR(o,v){var M;return hs(o,function(j,G,te){return M=v(j,G,te),!M}),!!M}function Kc(o,v,M){var j=0,G=o==null?j:o.length;if(typeof v=="number"&&v===v&&G<=ne){for(;j<G;){var te=j+G>>>1,ue=o[te];ue!==null&&!Ri(ue)&&(M?ue<=v:ue<v)?j=te+1:G=te}return G}return Gd(o,v,wi,M)}function Gd(o,v,M,j){var G=0,te=o==null?0:o.length;if(te===0)return 0;v=M(v);for(var ue=v!==v,pe=v===null,ye=Ri(v),Ee=v===e;G<te;){var Re=Wc((G+te)/2),De=M(o[Re]),Ye=De!==e,rt=De===null,mt=De===De,Rt=Ri(De);if(ue)var vt=j||mt;else Ee?vt=mt&&(j||Ye):pe?vt=mt&&Ye&&(j||!rt):ye?vt=mt&&Ye&&!rt&&(j||!Rt):rt||Rt?vt=!1:vt=j?De<=v:De<v;vt?G=Re+1:te=Re}return Br(te,he)}function jb(o,v){for(var M=-1,j=o.length,G=0,te=[];++M<j;){var ue=o[M],pe=v?v(ue):ue;if(!M||!lo(pe,ye)){var ye=pe;te[G++]=ue===0?0:ue}}return te}function Ub(o){return typeof o=="number"?o:Ri(o)?Q:+o}function Ei(o){if(typeof o=="string")return o;if(kt(o))return y(o,Ei)+"";if(Ri(o))return Cb?Cb.call(o):"";var v=o+"";return v=="0"&&1/o==-B?"-0":v}function ds(o,v,M){var j=-1,G=Mi,te=o.length,ue=!0,pe=[],ye=pe;if(M)ue=!1,G=Ii;else if(te>=f){var Ee=v?null:CR(o);if(Ee)return Ke(Ee);ue=!1,G=xt,ye=new Us}else ye=v?[]:pe;e:for(;++j<te;){var Re=o[j],De=v?v(Re):Re;if(Re=M||Re!==0?Re:0,ue&&De===De){for(var Ye=ye.length;Ye--;)if(ye[Ye]===De)continue e;v&&ye.push(De),pe.push(Re)}else G(ye,De,M)||(ye!==pe&&ye.push(De),pe.push(Re))}return pe}function Yd(o,v){return v=ps(v,o),o=y0(o,v),o==null||delete o[Ao(Gi(v))]}function Vb(o,v,M,j){return wl(o,v,M(qs(o,v)),j)}function Gc(o,v,M,j){for(var G=o.length,te=j?G:-1;(j?te--:++te<G)&&v(o[te],te,o););return M?Ki(o,j?0:te,j?te+1:G):Ki(o,j?te+1:0,j?G:te)}function qb(o,v){var M=o;return M instanceof Ut&&(M=M.value()),S(v,function(j,G){return G.func.apply(G.thisArg,T([j],G.args))},M)}function Xd(o,v,M){var j=o.length;if(j<2)return j?ds(o[0]):[];for(var G=-1,te=Ce(j);++G<j;)for(var ue=o[G],pe=-1;++pe<j;)pe!=G&&(te[G]=vl(te[G]||ue,o[pe],v,M));return ds(Rr(te,1),v,M)}function Kb(o,v,M){for(var j=-1,G=o.length,te=v.length,ue={};++j<G;){var pe=j<te?v[j]:e;M(ue,o[j],pe)}return ue}function Zd(o){return Qn(o)?o:[]}function Qd(o){return typeof o=="function"?o:wi}function ps(o,v){return kt(o)?o:ap(o,v)?[o]:C0(sn(o))}var dR=Dt;function fs(o,v,M){var j=o.length;return M=M===e?j:M,!v&&M>=j?o:Ki(o,v,M)}var Gb=JI||function(o){return hn.clearTimeout(o)};function Yb(o,v){if(v)return o.slice();var M=o.length,j=mb?mb(M):new o.constructor(M);return o.copy(j),j}function Jd(o){var v=new o.constructor(o.byteLength);return new Oc(v).set(new Oc(o)),v}function pR(o,v){var M=v?Jd(o.buffer):o.buffer;return new o.constructor(M,o.byteOffset,o.byteLength)}function fR(o){var v=new o.constructor(o.source,Pr.exec(o));return v.lastIndex=o.lastIndex,v}function gR(o){return gl?Et(gl.call(o)):{}}function Xb(o,v){var M=v?Jd(o.buffer):o.buffer;return new o.constructor(M,o.byteOffset,o.length)}function Zb(o,v){if(o!==v){var M=o!==e,j=o===null,G=o===o,te=Ri(o),ue=v!==e,pe=v===null,ye=v===v,Ee=Ri(v);if(!pe&&!Ee&&!te&&o>v||te&&ue&&ye&&!pe&&!Ee||j&&ue&&ye||!M&&ye||!G)return 1;if(!j&&!te&&!Ee&&o<v||Ee&&M&&G&&!j&&!te||pe&&M&&G||!ue&&G||!ye)return-1}return 0}function mR(o,v,M){for(var j=-1,G=o.criteria,te=v.criteria,ue=G.length,pe=M.length;++j<ue;){var ye=Zb(G[j],te[j]);if(ye){if(j>=pe)return ye;var Ee=M[j];return ye*(Ee=="desc"?-1:1)}}return o.index-v.index}function Qb(o,v,M,j){for(var G=-1,te=o.length,ue=M.length,pe=-1,ye=v.length,Ee=mr(te-ue,0),Re=Ce(ye+Ee),De=!j;++pe<ye;)Re[pe]=v[pe];for(;++G<ue;)(De||G<te)&&(Re[M[G]]=o[G]);for(;Ee--;)Re[pe++]=o[G++];return Re}function Jb(o,v,M,j){for(var G=-1,te=o.length,ue=-1,pe=M.length,ye=-1,Ee=v.length,Re=mr(te-pe,0),De=Ce(Re+Ee),Ye=!j;++G<Re;)De[G]=o[G];for(var rt=G;++ye<Ee;)De[rt+ye]=v[ye];for(;++ue<pe;)(Ye||G<te)&&(De[rt+M[ue]]=o[G++]);return De}function vi(o,v){var M=-1,j=o.length;for(v||(v=Ce(j));++M<j;)v[M]=o[M];return v}function ko(o,v,M,j){var G=!M;M||(M={});for(var te=-1,ue=v.length;++te<ue;){var pe=v[te],ye=j?j(M[pe],o[pe],pe,M,o):e;ye===e&&(ye=o[pe]),G?Bo(M,pe,ye):ml(M,pe,ye)}return M}function vR(o,v){return ko(o,sp(o),v)}function yR(o,v){return ko(o,d0(o),v)}function Yc(o,v){return function(M,j){var G=kt(M)?Ar:BE,te=v?v():{};return G(M,o,gt(j,2),te)}}function $a(o){return Dt(function(v,M){var j=-1,G=M.length,te=G>1?M[G-1]:e,ue=G>2?M[2]:e;for(te=o.length>3&&typeof te=="function"?(G--,te):e,ue&&ni(M[0],M[1],ue)&&(te=G<3?e:te,G=1),v=Et(v);++j<G;){var pe=M[j];pe&&o(v,pe,j,te)}return v})}function e0(o,v){return function(M,j){if(M==null)return M;if(!yi(M))return o(M,j);for(var G=M.length,te=v?G:-1,ue=Et(M);(v?te--:++te<G)&&j(ue[te],te,ue)!==!1;);return M}}function t0(o){return function(v,M,j){for(var G=-1,te=Et(v),ue=j(v),pe=ue.length;pe--;){var ye=ue[o?pe:++G];if(M(te[ye],ye,te)===!1)break}return v}}function bR(o,v,M){var j=v&p,G=xl(o);function te(){var ue=this&&this!==hn&&this instanceof te?G:o;return ue.apply(j?M:this,arguments)}return te}function n0(o){return function(v){v=sn(v);var M=oe(v)?Ct(v):e,j=M?M[0]:v.charAt(0),G=M?fs(M,1).join(""):v.slice(1);return j[o]()+G}}function Ta(o){return function(v){return S(ew(J0(v).replace(Dn,"")),o,"")}}function xl(o){return function(){var v=arguments;switch(v.length){case 0:return new o;case 1:return new o(v[0]);case 2:return new o(v[0],v[1]);case 3:return new o(v[0],v[1],v[2]);case 4:return new o(v[0],v[1],v[2],v[3]);case 5:return new o(v[0],v[1],v[2],v[3],v[4]);case 6:return new o(v[0],v[1],v[2],v[3],v[4],v[5]);case 7:return new o(v[0],v[1],v[2],v[3],v[4],v[5],v[6])}var M=_a(o.prototype),j=o.apply(M,v);return Pn(j)?j:M}}function wR(o,v,M){var j=xl(o);function G(){for(var te=arguments.length,ue=Ce(te),pe=te,ye=Ma(G);pe--;)ue[pe]=arguments[pe];var Ee=te<3&&ue[0]!==ye&&ue[te-1]!==ye?[]:Be(ue,ye);if(te-=Ee.length,te<M)return a0(o,v,Xc,G.placeholder,e,ue,Ee,e,e,M-te);var Re=this&&this!==hn&&this instanceof G?j:o;return kr(Re,this,ue)}return G}function r0(o){return function(v,M,j){var G=Et(v);if(!yi(v)){var te=gt(M,3);v=$r(v),M=function(pe){return te(G[pe],pe,G)}}var ue=o(v,M,j);return ue>-1?G[te?v[ue]:ue]:e}}function i0(o){return Ho(function(v){var M=v.length,j=M,G=Vi.prototype.thru;for(o&&v.reverse();j--;){var te=v[j];if(typeof te!="function")throw new dn(m);if(G&&!ue&&eu(te)=="wrapper")var ue=new Vi([],!0)}for(j=ue?j:M;++j<M;){te=v[j];var pe=eu(te),ye=pe=="wrapper"?ip(te):e;ye&&lp(ye[0])&&ye[1]==(L|I|k|D)&&!ye[4].length&&ye[9]==1?ue=ue[eu(ye[0])].apply(ue,ye[3]):ue=te.length==1&&lp(te)?ue[pe]():ue.thru(te)}return function(){var Ee=arguments,Re=Ee[0];if(ue&&Ee.length==1&&kt(Re))return ue.plant(Re).value();for(var De=0,Ye=M?v[De].apply(this,Ee):Re;++De<M;)Ye=v[De].call(this,Ye);return Ye}})}function Xc(o,v,M,j,G,te,ue,pe,ye,Ee){var Re=v&L,De=v&p,Ye=v&b,rt=v&(I|_),mt=v&R,Rt=Ye?e:xl(o);function vt(){for(var Bt=arguments.length,qt=Ce(Bt),Li=Bt;Li--;)qt[Li]=arguments[Li];if(rt)var ri=Ma(vt),Oi=Sr(qt,ri);if(j&&(qt=Qb(qt,j,G,rt)),te&&(qt=Jb(qt,te,ue,rt)),Bt-=Oi,rt&&Bt<Ee){var Jn=Be(qt,ri);return a0(o,v,Xc,vt.placeholder,M,qt,Jn,pe,ye,Ee-Bt)}var co=De?M:this,qo=Ye?co[o]:o;return Bt=qt.length,pe?qt=BR(qt,pe):mt&&Bt>1&&qt.reverse(),Re&&ye<Bt&&(qt.length=ye),this&&this!==hn&&this instanceof vt&&(qo=Rt||xl(qo)),qo.apply(co,qt)}return vt}function o0(o,v){return function(M,j){return GE(M,o,v(j),{})}}function Zc(o,v){return function(M,j){var G;if(M===e&&j===e)return v;if(M!==e&&(G=M),j!==e){if(G===e)return j;typeof M=="string"||typeof j=="string"?(M=Ei(M),j=Ei(j)):(M=Ub(M),j=Ub(j)),G=o(M,j)}return G}}function ep(o){return Ho(function(v){return v=y(v,ut(gt())),Dt(function(M){var j=this;return o(v,function(G){return kr(G,j,M)})})})}function Qc(o,v){v=v===e?" ":Ei(v);var M=v.length;if(M<2)return M?Kd(v,o):v;var j=Kd(v,Fc(o/Pt(v)));return oe(v)?fs(Ct(j),0,o).join(""):j.slice(0,o)}function xR(o,v,M,j){var G=v&p,te=xl(o);function ue(){for(var pe=-1,ye=arguments.length,Ee=-1,Re=j.length,De=Ce(Re+ye),Ye=this&&this!==hn&&this instanceof ue?te:o;++Ee<Re;)De[Ee]=j[Ee];for(;ye--;)De[Ee++]=arguments[++pe];return kr(Ye,G?M:this,De)}return ue}function s0(o){return function(v,M,j){return j&&typeof j!="number"&&ni(v,M,j)&&(M=j=e),v=Vo(v),M===e?(M=v,v=0):M=Vo(M),j=j===e?v<M?1:-1:Vo(j),sR(v,M,j,o)}}function Jc(o){return function(v,M){return typeof v=="string"&&typeof M=="string"||(v=Yi(v),M=Yi(M)),o(v,M)}}function a0(o,v,M,j,G,te,ue,pe,ye,Ee){var Re=v&I,De=Re?ue:e,Ye=Re?e:ue,rt=Re?te:e,mt=Re?e:te;v|=Re?k:C,v&=~(Re?C:k),v&x||(v&=-4);var Rt=[o,v,G,rt,De,mt,Ye,pe,ye,Ee],vt=M.apply(e,Rt);return lp(o)&&b0(vt,Rt),vt.placeholder=j,w0(vt,o,v)}function tp(o){var v=Xt[o];return function(M,j){if(M=Yi(M),j=j==null?0:Br(It(j),292),j&&wb(M)){var G=(sn(M)+"e").split("e"),te=v(G[0]+"e"+(+G[1]+j));return G=(sn(te)+"e").split("e"),+(G[0]+"e"+(+G[1]-j))}return v(M)}}var CR=Aa&&1/Ke(new Aa([,-0]))[1]==B?function(o){return new Aa(o)}:kp;function l0(o){return function(v){var M=zr(v);return M==tt?Ie(v):M==Ln?Xe(v):nt(v,o(v))}}function zo(o,v,M,j,G,te,ue,pe){var ye=v&b;if(!ye&&typeof o!="function")throw new dn(m);var Ee=j?j.length:0;if(Ee||(v&=-97,j=G=e),ue=ue===e?ue:mr(It(ue),0),pe=pe===e?pe:It(pe),Ee-=G?G.length:0,v&C){var Re=j,De=G;j=G=e}var Ye=ye?e:ip(o),rt=[o,v,M,j,G,Re,De,te,ue,pe];if(Ye&&PR(rt,Ye),o=rt[0],v=rt[1],M=rt[2],j=rt[3],G=rt[4],pe=rt[9]=rt[9]===e?ye?0:o.length:mr(rt[9]-Ee,0),!pe&&v&(I|_)&&(v&=-25),!v||v==p)var mt=bR(o,v,M);else v==I||v==_?mt=wR(o,v,pe):(v==k||v==(p|k))&&!G.length?mt=xR(o,v,M,j):mt=Xc.apply(e,rt);var Rt=Ye?Hb:b0;return w0(Rt(mt,rt),o,v)}function c0(o,v,M,j){return o===e||lo(o,Vn[M])&&!cn.call(j,M)?v:o}function u0(o,v,M,j,G,te){return Pn(o)&&Pn(v)&&(te.set(v,o),qc(o,v,e,u0,te),te.delete(v)),o}function kR(o){return Al(o)?e:o}function h0(o,v,M,j,G,te){var ue=M&i,pe=o.length,ye=v.length;if(pe!=ye&&!(ue&&ye>pe))return!1;var Ee=te.get(o),Re=te.get(v);if(Ee&&Re)return Ee==v&&Re==o;var De=-1,Ye=!0,rt=M&s?new Us:e;for(te.set(o,v),te.set(v,o);++De<pe;){var mt=o[De],Rt=v[De];if(j)var vt=ue?j(Rt,mt,De,v,o,te):j(mt,Rt,De,o,v,te);if(vt!==e){if(vt)continue;Ye=!1;break}if(rt){if(!W(v,function(Bt,qt){if(!xt(rt,qt)&&(mt===Bt||G(mt,Bt,M,j,te)))return rt.push(qt)})){Ye=!1;break}}else if(!(mt===Rt||G(mt,Rt,M,j,te))){Ye=!1;break}}return te.delete(o),te.delete(v),Ye}function AR(o,v,M,j,G,te,ue){switch(M){case On:if(o.byteLength!=v.byteLength||o.byteOffset!=v.byteOffset)return!1;o=o.buffer,v=v.buffer;case Qt:return!(o.byteLength!=v.byteLength||!te(new Oc(o),new Oc(v)));case _e:case Te:case ct:return lo(+o,+v);case Ze:return o.name==v.name&&o.message==v.message;case un:case Xn:return o==v+"";case tt:var pe=Ie;case Ln:var ye=j&i;if(pe||(pe=Ke),o.size!=v.size&&!ye)return!1;var Ee=ue.get(o);if(Ee)return Ee==v;j|=s,ue.set(o,v);var Re=h0(pe(o),pe(v),j,G,te,ue);return ue.delete(o),Re;case Mr:if(gl)return gl.call(o)==gl.call(v)}return!1}function SR(o,v,M,j,G,te){var ue=M&i,pe=np(o),ye=pe.length,Ee=np(v),Re=Ee.length;if(ye!=Re&&!ue)return!1;for(var De=ye;De--;){var Ye=pe[De];if(!(ue?Ye in v:cn.call(v,Ye)))return!1}var rt=te.get(o),mt=te.get(v);if(rt&&mt)return rt==v&&mt==o;var Rt=!0;te.set(o,v),te.set(v,o);for(var vt=ue;++De<ye;){Ye=pe[De];var Bt=o[Ye],qt=v[Ye];if(j)var Li=ue?j(qt,Bt,Ye,v,o,te):j(Bt,qt,Ye,o,v,te);if(!(Li===e?Bt===qt||G(Bt,qt,M,j,te):Li)){Rt=!1;break}vt||(vt=Ye=="constructor")}if(Rt&&!vt){var ri=o.constructor,Oi=v.constructor;ri!=Oi&&"constructor"in o&&"constructor"in v&&!(typeof ri=="function"&&ri instanceof ri&&typeof Oi=="function"&&Oi instanceof Oi)&&(Rt=!1)}return te.delete(o),te.delete(v),Rt}function Ho(o){return up(v0(o,e,_0),o+"")}function np(o){return Eb(o,$r,sp)}function rp(o){return Eb(o,bi,d0)}var ip=Bc?function(o){return Bc.get(o)}:kp;function eu(o){for(var v=o.name+"",M=Sa[v],j=cn.call(Sa,v)?M.length:0;j--;){var G=M[j],te=G.func;if(te==null||te==o)return G.name}return v}function Ma(o){var v=cn.call(ee,"placeholder")?ee:o;return v.placeholder}function gt(){var o=ee.iteratee||xp;return o=o===xp?Ob:o,arguments.length?o(arguments[0],arguments[1]):o}function tu(o,v){var M=o.__data__;return LR(v)?M[typeof v=="string"?"string":"hash"]:M.map}function op(o){for(var v=$r(o),M=v.length;M--;){var j=v[M],G=o[j];v[M]=[j,G,g0(G)]}return v}function Ks(o,v){var M=ie(o,v);return Lb(M)?M:e}function _R(o){var v=cn.call(o,Hs),M=o[Hs];try{o[Hs]=e;var j=!0}catch{}var G=Rc.call(o);return j&&(v?o[Hs]=M:delete o[Hs]),G}var sp=Ld?function(o){return o==null?[]:(o=Et(o),Wr(Ld(o),function(v){return yb.call(o,v)}))}:Ap,d0=Ld?function(o){for(var v=[];o;)T(v,sp(o)),o=Nc(o);return v}:Ap,zr=ti;(Od&&zr(new Od(new ArrayBuffer(1)))!=On||dl&&zr(new dl)!=tt||Nd&&zr(Nd.resolve())!=Wt||Aa&&zr(new Aa)!=Ln||pl&&zr(new pl)!=je)&&(zr=function(o){var v=ti(o),M=v==Cn?o.constructor:e,j=M?Gs(M):"";if(j)switch(j){case lE:return On;case cE:return tt;case uE:return Wt;case hE:return Ln;case dE:return je}return v});function $R(o,v,M){for(var j=-1,G=M.length;++j<G;){var te=M[j],ue=te.size;switch(te.type){case"drop":o+=ue;break;case"dropRight":v-=ue;break;case"take":v=Br(v,o+ue);break;case"takeRight":o=mr(o,v-ue);break}}return{start:o,end:v}}function TR(o){var v=o.match(fi);return v?v[1].split(mo):[]}function p0(o,v,M){v=ps(v,o);for(var j=-1,G=v.length,te=!1;++j<G;){var ue=Ao(v[j]);if(!(te=o!=null&&M(o,ue)))break;o=o[ue]}return te||++j!=G?te:(G=o==null?0:o.length,!!G&&lu(G)&&jo(ue,G)&&(kt(o)||Ys(o)))}function MR(o){var v=o.length,M=new o.constructor(v);return v&&typeof o[0]=="string"&&cn.call(o,"index")&&(M.index=o.index,M.input=o.input),M}function f0(o){return typeof o.constructor=="function"&&!Cl(o)?_a(Nc(o)):{}}function IR(o,v,M){var j=o.constructor;switch(v){case Qt:return Jd(o);case _e:case Te:return new j(+o);case On:return pR(o,M);case yr:case hr:case mn:case Wn:case Nn:case Kt:case ln:case Dr:case Gr:return Xb(o,M);case tt:return new j;case ct:case Xn:return new j(o);case un:return fR(o);case Ln:return new j;case Mr:return gR(o)}}function ER(o,v){var M=v.length;if(!M)return o;var j=M-1;return v[j]=(M>1?"& ":"")+v[j],v=v.join(M>2?", ":" "),o.replace(br,`{
1469
+ */var kk=Gl.exports,Tg;function Ak(){return Tg||(Tg=1,function(n,t){(function(){var e,r="4.17.21",f=200,g="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",m="Expected a function",w="Invalid `variable` option passed into `_.template`",h="__lodash_hash_undefined__",d=500,a="__lodash_placeholder__",l=1,u=2,c=4,i=1,s=2,p=1,b=2,x=4,I=8,_=16,k=32,C=64,L=128,D=256,R=512,E=30,z="...",F=800,O=16,$=1,A=2,N=3,B=1/0,U=9007199254740991,K=17976931348623157e292,Q=NaN,J=4294967295,he=J-1,ne=J>>>1,le=[["ary",L],["bind",p],["bindKey",b],["curry",I],["curryRight",_],["flip",R],["partial",k],["partialRight",C],["rearg",D]],se="[object Arguments]",de="[object Array]",me="[object AsyncFunction]",_e="[object Boolean]",Te="[object Date]",Me="[object DOMException]",Ze="[object Error]",Ge="[object Function]",lt="[object GeneratorFunction]",tt="[object Map]",ct="[object Number]",Xt="[object Null]",Cn="[object Object]",Wt="[object Promise]",vr="[object Proxy]",un="[object RegExp]",On="[object Set]",Xn="[object String]",Mr="[object Symbol]",yt="[object Undefined]",je="[object WeakMap]",Lt="[object WeakSet]",Ht="[object ArrayBuffer]",Tn="[object DataView]",yr="[object Float32Array]",hr="[object Float64Array]",mn="[object Int8Array]",Wn="[object Int16Array]",Nn="[object Int32Array]",Gt="[object Uint8Array]",ln="[object Uint8ClampedArray]",Dr="[object Uint16Array]",Gr="[object Uint32Array]",Yr=/\b__p \+= '';/g,Si=/\b(__p \+=) '' \+/g,ci=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Bn=/&(?:amp|lt|gt|quot|#39);/g,ro=/[&<>"']/g,ui=RegExp(Bn.source),Os=RegExp(ro.source),Xr=/<%-([\s\S]+?)%>/g,kn=/<%([\s\S]+?)%>/g,hi=/<%=([\s\S]+?)%>/g,Jo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,di=/^\w*$/,An=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,dr=/[\\^$.*+?()[\]{}|]/g,pi=RegExp(dr.source),Sn=/^\s+/,Mn=/\s/,br=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,fi=/\{\n\/\* \[wrapped with (.+)\] \*/,vo=/,? & /,yo=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,es=/[()=,{}\[\]\/\s]/,Zr=/\\(\\)?/g,gi=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Pr=/\w*$/,Ot=/^[-+]0x[0-9a-f]+$/i,Mo=/^0b[01]+$/i,wr=/^\[object .+?Constructor\]$/,ce=/^0o[0-7]+$/i,ze=/^(?:0|[1-9]\d*)$/,Pe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_t=/($^)/,Yt=/['\n\r\u2028\u2029\\]/g,jt="\\ud800-\\udfff",xr="\\u0300-\\u036f",pr="\\ufe20-\\ufe2f",zn="\\u20d0-\\u20ff",Cr=xr+pr+zn,vn="\\u2700-\\u27bf",io="a-z\\xdf-\\xf6\\xf8-\\xff",Fr="\\xac\\xb1\\xd7\\xf7",ts="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Ns="\\u2000-\\u206f",Ds=" \\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",ns="A-Z\\xc0-\\xd6\\xd8-\\xde",fr="\\ufe0e\\ufe0f",Ps=Fr+ts+Ns+Ds,Io="['’]",rs="["+jt+"]",is="["+Ps+"]",bo="["+Cr+"]",Fs="\\d+",ba="["+vn+"]",os="["+io+"]",ss="[^"+jt+Ps+Fs+vn+io+ns+"]",Ws="\\ud83c[\\udffb-\\udfff]",as="(?:"+bo+"|"+Ws+")",Eo="[^"+jt+"]",Wi="(?:\\ud83c[\\udde6-\\uddff]){2}",gr="[\\ud800-\\udbff][\\udc00-\\udfff]",wo="["+ns+"]",oo="\\u200d",wa="(?:"+os+"|"+ss+")",ul="(?:"+wo+"|"+ss+")",Ro="(?:"+Io+"(?:d|ll|m|re|s|t|ve))?",so="(?:"+Io+"(?:D|LL|M|RE|S|T|VE))?",Lo=as+"?",ls="["+fr+"]?",Oo="(?:"+oo+"(?:"+[Eo,Wi,gr].join("|")+")"+ls+Lo+")*",xa="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",xo="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",We=ls+Lo+Oo,Ca="(?:"+[ba,Wi,gr].join("|")+")"+We,Ne="(?:"+[Eo+bo+"?",bo,Wi,gr,rs].join("|")+")",Dn=RegExp(Io,"g"),No=RegExp(bo,"g"),_i=RegExp(Ws+"(?="+Ws+")|"+Ne+We,"g"),Zn=RegExp([wo+"?"+os+"+"+Ro+"(?="+[is,wo,"$"].join("|")+")",ul+"+"+so+"(?="+[is,wo+wa,"$"].join("|")+")",wo+"?"+wa+"+"+Ro,wo+"+"+so,xo,xa,Fs,Ca].join("|"),"g"),ka=RegExp("["+oo+jt+Cr+fr+"]"),Do=/[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"],Co=-1,nn={};nn[yr]=nn[hr]=nn[mn]=nn[Wn]=nn[Nn]=nn[Gt]=nn[ln]=nn[Dr]=nn[Gr]=!0,nn[se]=nn[de]=nn[Ht]=nn[_e]=nn[Tn]=nn[Te]=nn[Ze]=nn[Ge]=nn[tt]=nn[ct]=nn[Cn]=nn[un]=nn[On]=nn[Xn]=nn[je]=!1;var Jt={};Jt[se]=Jt[de]=Jt[Ht]=Jt[Tn]=Jt[_e]=Jt[Te]=Jt[yr]=Jt[hr]=Jt[mn]=Jt[Wn]=Jt[Nn]=Jt[tt]=Jt[ct]=Jt[Cn]=Jt[un]=Jt[On]=Jt[Xn]=Jt[Mr]=Jt[Gt]=Jt[ln]=Jt[Dr]=Jt[Gr]=!0,Jt[Ze]=Jt[Ge]=Jt[je]=!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"},Ut={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},zi={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Hn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},He=parseFloat,bn=parseInt,bt=typeof Xo=="object"&&Xo&&Xo.Object===Object&&Xo,Qr=typeof self=="object"&&self&&self.Object===Object&&self,hn=bt||Qr||Function("return this")(),_n=t&&!t.nodeType&&t,or=_n&&!0&&n&&!n.nodeType&&n,Jr=or&&or.exports===_n,Hi=Jr&&bt.process,jn=function(){try{var fe=or&&or.require&&or.require("util").types;return fe||Hi&&Hi.binding&&Hi.binding("util")}catch{}}(),mi=jn&&jn.isArrayBuffer,cs=jn&&jn.isDate,Un=jn&&jn.isMap,$i=jn&&jn.isRegExp,Ti=jn&&jn.isSet,ji=jn&&jn.isTypedArray;function kr(fe,$e,Ce){switch(Ce.length){case 0:return fe.call($e);case 1:return fe.call($e,Ce[0]);case 2:return fe.call($e,Ce[0],Ce[1]);case 3:return fe.call($e,Ce[0],Ce[1],Ce[2])}return fe.apply($e,Ce)}function Ar(fe,$e,Ce,Ue){for(var dt=-1,Tt=fe==null?0:fe.length;++dt<Tt;){var Zt=fe[dt];$e(Ue,Zt,Ce(Zt),fe)}return Ue}function Ir(fe,$e){for(var Ce=-1,Ue=fe==null?0:fe.length;++Ce<Ue&&$e(fe[Ce],Ce,fe)!==!1;);return fe}function Bs(fe,$e){for(var Ce=fe==null?0:fe.length;Ce--&&$e(fe[Ce],Ce,fe)!==!1;);return fe}function Er(fe,$e){for(var Ce=-1,Ue=fe==null?0:fe.length;++Ce<Ue;)if(!$e(fe[Ce],Ce,fe))return!1;return!0}function Wr(fe,$e){for(var Ce=-1,Ue=fe==null?0:fe.length,dt=0,Tt=[];++Ce<Ue;){var Zt=fe[Ce];$e(Zt,Ce,fe)&&(Tt[dt++]=Zt)}return Tt}function Mi(fe,$e){var Ce=fe==null?0:fe.length;return!!Ce&&ae(fe,$e,0)>-1}function Ii(fe,$e,Ce){for(var Ue=-1,dt=fe==null?0:fe.length;++Ue<dt;)if(Ce($e,fe[Ue]))return!0;return!1}function y(fe,$e){for(var Ce=-1,Ue=fe==null?0:fe.length,dt=Array(Ue);++Ce<Ue;)dt[Ce]=$e(fe[Ce],Ce,fe);return dt}function T(fe,$e){for(var Ce=-1,Ue=$e.length,dt=fe.length;++Ce<Ue;)fe[dt+Ce]=$e[Ce];return fe}function S(fe,$e,Ce,Ue){var dt=-1,Tt=fe==null?0:fe.length;for(Ue&&Tt&&(Ce=fe[++dt]);++dt<Tt;)Ce=$e(Ce,fe[dt],dt,fe);return Ce}function P(fe,$e,Ce,Ue){var dt=fe==null?0:fe.length;for(Ue&&dt&&(Ce=fe[--dt]);dt--;)Ce=$e(Ce,fe[dt],dt,fe);return Ce}function W(fe,$e){for(var Ce=-1,Ue=fe==null?0:fe.length;++Ce<Ue;)if($e(fe[Ce],Ce,fe))return!0;return!1}var H=we("length");function q(fe){return fe.split("")}function Y(fe){return fe.match(yo)||[]}function Z(fe,$e,Ce){var Ue;return Ce(fe,function(dt,Tt,Zt){if($e(dt,Tt,Zt))return Ue=Tt,!1}),Ue}function re(fe,$e,Ce,Ue){for(var dt=fe.length,Tt=Ce+(Ue?1:-1);Ue?Tt--:++Tt<dt;)if($e(fe[Tt],Tt,fe))return Tt;return-1}function ae(fe,$e,Ce){return $e===$e?Je(fe,$e,Ce):re(fe,ke,Ce)}function be(fe,$e,Ce,Ue){for(var dt=Ce-1,Tt=fe.length;++dt<Tt;)if(Ue(fe[dt],$e))return dt;return-1}function ke(fe){return fe!==fe}function ve(fe,$e){var Ce=fe==null?0:fe.length;return Ce?at(fe,$e)/Ce:Q}function we(fe){return function($e){return $e==null?e:$e[fe]}}function Oe(fe){return function($e){return fe==null?e:fe[$e]}}function Le(fe,$e,Ce,Ue,dt){return dt(fe,function(Tt,Zt,Et){Ce=Ue?(Ue=!1,Tt):$e(Ce,Tt,Zt,Et)}),Ce}function qe(fe,$e){var Ce=fe.length;for(fe.sort($e);Ce--;)fe[Ce]=fe[Ce].value;return fe}function at(fe,$e){for(var Ce,Ue=-1,dt=fe.length;++Ue<dt;){var Tt=$e(fe[Ue]);Tt!==e&&(Ce=Ce===e?Tt:Ce+Tt)}return Ce}function Qe(fe,$e){for(var Ce=-1,Ue=Array(fe);++Ce<fe;)Ue[Ce]=$e(Ce);return Ue}function nt(fe,$e){return y($e,function(Ce){return[Ce,fe[Ce]]})}function wn(fe){return fe&&fe.slice(0,Nt(fe)+1).replace(Sn,"")}function ut(fe){return function($e){return fe($e)}}function In(fe,$e){return y($e,function(Ce){return fe[Ce]})}function xt(fe,$e){return fe.has($e)}function $t(fe,$e){for(var Ce=-1,Ue=fe.length;++Ce<Ue&&ae($e,fe[Ce],0)>-1;);return Ce}function sr(fe,$e){for(var Ce=fe.length;Ce--&&ae($e,fe[Ce],0)>-1;);return Ce}function Sr(fe,$e){for(var Ce=fe.length,Ue=0;Ce--;)fe[Ce]===$e&&++Ue;return Ue}var En=Oe(rn),V=Oe(Ut);function X(fe){return"\\"+Hn[fe]}function ie(fe,$e){return fe==null?e:fe[$e]}function oe(fe){return ka.test(fe)}function ge(fe){return Do.test(fe)}function xe(fe){for(var $e,Ce=[];!($e=fe.next()).done;)Ce.push($e.value);return Ce}function Ie(fe){var $e=-1,Ce=Array(fe.size);return fe.forEach(function(Ue,dt){Ce[++$e]=[dt,Ue]}),Ce}function Fe(fe,$e){return function(Ce){return fe($e(Ce))}}function Be(fe,$e){for(var Ce=-1,Ue=fe.length,dt=0,Tt=[];++Ce<Ue;){var Zt=fe[Ce];(Zt===$e||Zt===a)&&(fe[Ce]=a,Tt[dt++]=Ce)}return Tt}function Ke(fe){var $e=-1,Ce=Array(fe.size);return fe.forEach(function(Ue){Ce[++$e]=Ue}),Ce}function Xe(fe){var $e=-1,Ce=Array(fe.size);return fe.forEach(function(Ue){Ce[++$e]=[Ue,Ue]}),Ce}function Je(fe,$e,Ce){for(var Ue=Ce-1,dt=fe.length;++Ue<dt;)if(fe[Ue]===$e)return Ue;return-1}function wt(fe,$e,Ce){for(var Ue=Ce+1;Ue--;)if(fe[Ue]===$e)return Ue;return Ue}function Ft(fe){return oe(fe)?it(fe):H(fe)}function Ct(fe){return oe(fe)?yn(fe):q(fe)}function Nt(fe){for(var $e=fe.length;$e--&&Mn.test(fe.charAt($e)););return $e}var ft=Oe(zi);function it(fe){for(var $e=_i.lastIndex=0;_i.test(fe);)++$e;return $e}function yn(fe){return fe.match(_i)||[]}function Rn(fe){return fe.match(Zn)||[]}var ar=function fe($e){$e=$e==null?hn:qt.defaults(hn.Object(),$e,qt.pick(hn,Bi));var Ce=$e.Array,Ue=$e.Date,dt=$e.Error,Tt=$e.Function,Zt=$e.Math,Et=$e.Object,ei=$e.RegExp,Ui=$e.String,dn=$e.TypeError,_r=Ce.prototype,Po=Tt.prototype,Vn=Et.prototype,zs=$e["__core-js_shared__"],Ec=Po.toString,cn=Vn.hasOwnProperty,YI=0,gb=function(){var o=/[^.]+$/.exec(zs&&zs.keys&&zs.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""}(),Rc=Vn.toString,XI=Ec.call(Et),ZI=hn._,QI=ei("^"+Ec.call(cn).replace(dr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Lc=Jr?$e.Buffer:e,us=$e.Symbol,Oc=$e.Uint8Array,mb=Lc?Lc.allocUnsafe:e,Nc=Fe(Et.getPrototypeOf,Et),vb=Et.create,yb=Vn.propertyIsEnumerable,Dc=_r.splice,bb=us?us.isConcatSpreadable:e,hl=us?us.iterator:e,Hs=us?us.toStringTag:e,Pc=function(){try{var o=Ks(Et,"defineProperty");return o({},"",{}),o}catch{}}(),JI=$e.clearTimeout!==hn.clearTimeout&&$e.clearTimeout,eE=Ue&&Ue.now!==hn.Date.now&&Ue.now,tE=$e.setTimeout!==hn.setTimeout&&$e.setTimeout,Fc=Zt.ceil,Wc=Zt.floor,Ld=Et.getOwnPropertySymbols,nE=Lc?Lc.isBuffer:e,wb=$e.isFinite,rE=_r.join,iE=Fe(Et.keys,Et),mr=Zt.max,Br=Zt.min,oE=Ue.now,sE=$e.parseInt,xb=Zt.random,aE=_r.reverse,Od=Ks($e,"DataView"),dl=Ks($e,"Map"),Nd=Ks($e,"Promise"),Aa=Ks($e,"Set"),pl=Ks($e,"WeakMap"),fl=Ks(Et,"create"),Bc=pl&&new pl,Sa={},lE=Gs(Od),cE=Gs(dl),uE=Gs(Nd),hE=Gs(Aa),dE=Gs(pl),zc=us?us.prototype:e,gl=zc?zc.valueOf:e,Cb=zc?zc.toString:e;function ee(o){if(qn(o)&&!kt(o)&&!(o instanceof Vt)){if(o instanceof Vi)return o;if(cn.call(o,"__wrapped__"))return k0(o)}return new Vi(o)}var _a=function(){function o(){}return function(v){if(!Pn(v))return{};if(vb)return vb(v);o.prototype=v;var M=new o;return o.prototype=e,M}}();function Hc(){}function Vi(o,v){this.__wrapped__=o,this.__actions__=[],this.__chain__=!!v,this.__index__=0,this.__values__=e}ee.templateSettings={escape:Xr,evaluate:kn,interpolate:hi,variable:"",imports:{_:ee}},ee.prototype=Hc.prototype,ee.prototype.constructor=ee,Vi.prototype=_a(Hc.prototype),Vi.prototype.constructor=Vi;function Vt(o){this.__wrapped__=o,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=J,this.__views__=[]}function pE(){var o=new Vt(this.__wrapped__);return o.__actions__=vi(this.__actions__),o.__dir__=this.__dir__,o.__filtered__=this.__filtered__,o.__iteratees__=vi(this.__iteratees__),o.__takeCount__=this.__takeCount__,o.__views__=vi(this.__views__),o}function fE(){if(this.__filtered__){var o=new Vt(this);o.__dir__=-1,o.__filtered__=!0}else o=this.clone(),o.__dir__*=-1;return o}function gE(){var o=this.__wrapped__.value(),v=this.__dir__,M=kt(o),j=v<0,G=M?o.length:0,te=$R(0,G,this.__views__),ue=te.start,pe=te.end,ye=pe-ue,Ee=j?pe:ue-1,Re=this.__iteratees__,De=Re.length,Ye=0,rt=Br(ye,this.__takeCount__);if(!M||!j&&G==ye&&rt==ye)return qb(o,this.__actions__);var mt=[];e:for(;ye--&&Ye<rt;){Ee+=v;for(var Rt=-1,vt=o[Ee];++Rt<De;){var Bt=Re[Rt],Kt=Bt.iteratee,Li=Bt.type,ri=Kt(vt);if(Li==A)vt=ri;else if(!ri){if(Li==$)continue e;break e}}mt[Ye++]=vt}return mt}Vt.prototype=_a(Hc.prototype),Vt.prototype.constructor=Vt;function js(o){var v=-1,M=o==null?0:o.length;for(this.clear();++v<M;){var j=o[v];this.set(j[0],j[1])}}function mE(){this.__data__=fl?fl(null):{},this.size=0}function vE(o){var v=this.has(o)&&delete this.__data__[o];return this.size-=v?1:0,v}function yE(o){var v=this.__data__;if(fl){var M=v[o];return M===h?e:M}return cn.call(v,o)?v[o]:e}function bE(o){var v=this.__data__;return fl?v[o]!==e:cn.call(v,o)}function wE(o,v){var M=this.__data__;return this.size+=this.has(o)?0:1,M[o]=fl&&v===e?h:v,this}js.prototype.clear=mE,js.prototype.delete=vE,js.prototype.get=yE,js.prototype.has=bE,js.prototype.set=wE;function Fo(o){var v=-1,M=o==null?0:o.length;for(this.clear();++v<M;){var j=o[v];this.set(j[0],j[1])}}function xE(){this.__data__=[],this.size=0}function CE(o){var v=this.__data__,M=jc(v,o);if(M<0)return!1;var j=v.length-1;return M==j?v.pop():Dc.call(v,M,1),--this.size,!0}function kE(o){var v=this.__data__,M=jc(v,o);return M<0?e:v[M][1]}function AE(o){return jc(this.__data__,o)>-1}function SE(o,v){var M=this.__data__,j=jc(M,o);return j<0?(++this.size,M.push([o,v])):M[j][1]=v,this}Fo.prototype.clear=xE,Fo.prototype.delete=CE,Fo.prototype.get=kE,Fo.prototype.has=AE,Fo.prototype.set=SE;function Wo(o){var v=-1,M=o==null?0:o.length;for(this.clear();++v<M;){var j=o[v];this.set(j[0],j[1])}}function _E(){this.size=0,this.__data__={hash:new js,map:new(dl||Fo),string:new js}}function $E(o){var v=tu(this,o).delete(o);return this.size-=v?1:0,v}function TE(o){return tu(this,o).get(o)}function ME(o){return tu(this,o).has(o)}function IE(o,v){var M=tu(this,o),j=M.size;return M.set(o,v),this.size+=M.size==j?0:1,this}Wo.prototype.clear=_E,Wo.prototype.delete=$E,Wo.prototype.get=TE,Wo.prototype.has=ME,Wo.prototype.set=IE;function Us(o){var v=-1,M=o==null?0:o.length;for(this.__data__=new Wo;++v<M;)this.add(o[v])}function EE(o){return this.__data__.set(o,h),this}function RE(o){return this.__data__.has(o)}Us.prototype.add=Us.prototype.push=EE,Us.prototype.has=RE;function ao(o){var v=this.__data__=new Fo(o);this.size=v.size}function LE(){this.__data__=new Fo,this.size=0}function OE(o){var v=this.__data__,M=v.delete(o);return this.size=v.size,M}function NE(o){return this.__data__.get(o)}function DE(o){return this.__data__.has(o)}function PE(o,v){var M=this.__data__;if(M instanceof Fo){var j=M.__data__;if(!dl||j.length<f-1)return j.push([o,v]),this.size=++M.size,this;M=this.__data__=new Wo(j)}return M.set(o,v),this.size=M.size,this}ao.prototype.clear=LE,ao.prototype.delete=OE,ao.prototype.get=NE,ao.prototype.has=DE,ao.prototype.set=PE;function kb(o,v){var M=kt(o),j=!M&&Ys(o),G=!M&&!j&&gs(o),te=!M&&!j&&!G&&Ia(o),ue=M||j||G||te,pe=ue?Qe(o.length,Ui):[],ye=pe.length;for(var Ee in o)(v||cn.call(o,Ee))&&!(ue&&(Ee=="length"||G&&(Ee=="offset"||Ee=="parent")||te&&(Ee=="buffer"||Ee=="byteLength"||Ee=="byteOffset")||jo(Ee,ye)))&&pe.push(Ee);return pe}function Ab(o){var v=o.length;return v?o[qd(0,v-1)]:e}function FE(o,v){return nu(vi(o),Vs(v,0,o.length))}function WE(o){return nu(vi(o))}function Dd(o,v,M){(M!==e&&!lo(o[v],M)||M===e&&!(v in o))&&Bo(o,v,M)}function ml(o,v,M){var j=o[v];(!(cn.call(o,v)&&lo(j,M))||M===e&&!(v in o))&&Bo(o,v,M)}function jc(o,v){for(var M=o.length;M--;)if(lo(o[M][0],v))return M;return-1}function BE(o,v,M,j){return hs(o,function(G,te,ue){v(j,G,M(G),ue)}),j}function Sb(o,v){return o&&Ao(v,$r(v),o)}function zE(o,v){return o&&Ao(v,bi(v),o)}function Bo(o,v,M){v=="__proto__"&&Pc?Pc(o,v,{configurable:!0,enumerable:!0,value:M,writable:!0}):o[v]=M}function Pd(o,v){for(var M=-1,j=v.length,G=Ce(j),te=o==null;++M<j;)G[M]=te?e:vp(o,v[M]);return G}function Vs(o,v,M){return o===o&&(M!==e&&(o=o<=M?o:M),v!==e&&(o=o>=v?o:v)),o}function qi(o,v,M,j,G,te){var ue,pe=v&l,ye=v&u,Ee=v&c;if(M&&(ue=G?M(o,j,G,te):M(o)),ue!==e)return ue;if(!Pn(o))return o;var Re=kt(o);if(Re){if(ue=MR(o),!pe)return vi(o,ue)}else{var De=zr(o),Ye=De==Ge||De==lt;if(gs(o))return Yb(o,pe);if(De==Cn||De==se||Ye&&!G){if(ue=ye||Ye?{}:f0(o),!pe)return ye?yR(o,zE(ue,o)):vR(o,Sb(ue,o))}else{if(!Jt[De])return G?o:{};ue=IR(o,De,pe)}}te||(te=new ao);var rt=te.get(o);if(rt)return rt;te.set(o,ue),j0(o)?o.forEach(function(vt){ue.add(qi(vt,v,M,vt,o,te))}):z0(o)&&o.forEach(function(vt,Bt){ue.set(Bt,qi(vt,v,M,Bt,o,te))});var mt=Ee?ye?rp:np:ye?bi:$r,Rt=Re?e:mt(o);return Ir(Rt||o,function(vt,Bt){Rt&&(Bt=vt,vt=o[Bt]),ml(ue,Bt,qi(vt,v,M,Bt,o,te))}),ue}function HE(o){var v=$r(o);return function(M){return _b(M,o,v)}}function _b(o,v,M){var j=M.length;if(o==null)return!j;for(o=Et(o);j--;){var G=M[j],te=v[G],ue=o[G];if(ue===e&&!(G in o)||!te(ue))return!1}return!0}function $b(o,v,M){if(typeof o!="function")throw new dn(m);return kl(function(){o.apply(e,M)},v)}function vl(o,v,M,j){var G=-1,te=Mi,ue=!0,pe=o.length,ye=[],Ee=v.length;if(!pe)return ye;M&&(v=y(v,ut(M))),j?(te=Ii,ue=!1):v.length>=f&&(te=xt,ue=!1,v=new Us(v));e:for(;++G<pe;){var Re=o[G],De=M==null?Re:M(Re);if(Re=j||Re!==0?Re:0,ue&&De===De){for(var Ye=Ee;Ye--;)if(v[Ye]===De)continue e;ye.push(Re)}else te(v,De,j)||ye.push(Re)}return ye}var hs=e0(ko),Tb=e0(Wd,!0);function jE(o,v){var M=!0;return hs(o,function(j,G,te){return M=!!v(j,G,te),M}),M}function Uc(o,v,M){for(var j=-1,G=o.length;++j<G;){var te=o[j],ue=v(te);if(ue!=null&&(pe===e?ue===ue&&!Ri(ue):M(ue,pe)))var pe=ue,ye=te}return ye}function UE(o,v,M,j){var G=o.length;for(M=It(M),M<0&&(M=-M>G?0:G+M),j=j===e||j>G?G:It(j),j<0&&(j+=G),j=M>j?0:V0(j);M<j;)o[M++]=v;return o}function Mb(o,v){var M=[];return hs(o,function(j,G,te){v(j,G,te)&&M.push(j)}),M}function Rr(o,v,M,j,G){var te=-1,ue=o.length;for(M||(M=RR),G||(G=[]);++te<ue;){var pe=o[te];v>0&&M(pe)?v>1?Rr(pe,v-1,M,j,G):T(G,pe):j||(G[G.length]=pe)}return G}var Fd=t0(),Ib=t0(!0);function ko(o,v){return o&&Fd(o,v,$r)}function Wd(o,v){return o&&Ib(o,v,$r)}function Vc(o,v){return Wr(v,function(M){return Uo(o[M])})}function qs(o,v){v=ps(v,o);for(var M=0,j=v.length;o!=null&&M<j;)o=o[So(v[M++])];return M&&M==j?o:e}function Eb(o,v,M){var j=v(o);return kt(o)?j:T(j,M(o))}function ti(o){return o==null?o===e?yt:Xt:Hs&&Hs in Et(o)?_R(o):WR(o)}function Bd(o,v){return o>v}function VE(o,v){return o!=null&&cn.call(o,v)}function qE(o,v){return o!=null&&v in Et(o)}function KE(o,v,M){return o>=Br(v,M)&&o<mr(v,M)}function zd(o,v,M){for(var j=M?Ii:Mi,G=o[0].length,te=o.length,ue=te,pe=Ce(te),ye=1/0,Ee=[];ue--;){var Re=o[ue];ue&&v&&(Re=y(Re,ut(v))),ye=Br(Re.length,ye),pe[ue]=!M&&(v||G>=120&&Re.length>=120)?new Us(ue&&Re):e}Re=o[0];var De=-1,Ye=pe[0];e:for(;++De<G&&Ee.length<ye;){var rt=Re[De],mt=v?v(rt):rt;if(rt=M||rt!==0?rt:0,!(Ye?xt(Ye,mt):j(Ee,mt,M))){for(ue=te;--ue;){var Rt=pe[ue];if(!(Rt?xt(Rt,mt):j(o[ue],mt,M)))continue e}Ye&&Ye.push(mt),Ee.push(rt)}}return Ee}function GE(o,v,M,j){return ko(o,function(G,te,ue){v(j,M(G),te,ue)}),j}function yl(o,v,M){v=ps(v,o),o=y0(o,v);var j=o==null?o:o[So(Gi(v))];return j==null?e:kr(j,o,M)}function Rb(o){return qn(o)&&ti(o)==se}function YE(o){return qn(o)&&ti(o)==Ht}function XE(o){return qn(o)&&ti(o)==Te}function bl(o,v,M,j,G){return o===v?!0:o==null||v==null||!qn(o)&&!qn(v)?o!==o&&v!==v:ZE(o,v,M,j,bl,G)}function ZE(o,v,M,j,G,te){var ue=kt(o),pe=kt(v),ye=ue?de:zr(o),Ee=pe?de:zr(v);ye=ye==se?Cn:ye,Ee=Ee==se?Cn:Ee;var Re=ye==Cn,De=Ee==Cn,Ye=ye==Ee;if(Ye&&gs(o)){if(!gs(v))return!1;ue=!0,Re=!1}if(Ye&&!Re)return te||(te=new ao),ue||Ia(o)?h0(o,v,M,j,G,te):AR(o,v,ye,M,j,G,te);if(!(M&i)){var rt=Re&&cn.call(o,"__wrapped__"),mt=De&&cn.call(v,"__wrapped__");if(rt||mt){var Rt=rt?o.value():o,vt=mt?v.value():v;return te||(te=new ao),G(Rt,vt,M,j,te)}}return Ye?(te||(te=new ao),SR(o,v,M,j,G,te)):!1}function QE(o){return qn(o)&&zr(o)==tt}function Hd(o,v,M,j){var G=M.length,te=G,ue=!j;if(o==null)return!te;for(o=Et(o);G--;){var pe=M[G];if(ue&&pe[2]?pe[1]!==o[pe[0]]:!(pe[0]in o))return!1}for(;++G<te;){pe=M[G];var ye=pe[0],Ee=o[ye],Re=pe[1];if(ue&&pe[2]){if(Ee===e&&!(ye in o))return!1}else{var De=new ao;if(j)var Ye=j(Ee,Re,ye,o,v,De);if(!(Ye===e?bl(Re,Ee,i|s,j,De):Ye))return!1}}return!0}function Lb(o){if(!Pn(o)||OR(o))return!1;var v=Uo(o)?QI:wr;return v.test(Gs(o))}function JE(o){return qn(o)&&ti(o)==un}function eR(o){return qn(o)&&zr(o)==On}function tR(o){return qn(o)&&lu(o.length)&&!!nn[ti(o)]}function Ob(o){return typeof o=="function"?o:o==null?wi:typeof o=="object"?kt(o)?Pb(o[0],o[1]):Db(o):nw(o)}function jd(o){if(!Cl(o))return iE(o);var v=[];for(var M in Et(o))cn.call(o,M)&&M!="constructor"&&v.push(M);return v}function nR(o){if(!Pn(o))return FR(o);var v=Cl(o),M=[];for(var j in o)j=="constructor"&&(v||!cn.call(o,j))||M.push(j);return M}function Ud(o,v){return o<v}function Nb(o,v){var M=-1,j=yi(o)?Ce(o.length):[];return hs(o,function(G,te,ue){j[++M]=v(G,te,ue)}),j}function Db(o){var v=op(o);return v.length==1&&v[0][2]?m0(v[0][0],v[0][1]):function(M){return M===o||Hd(M,o,v)}}function Pb(o,v){return ap(o)&&g0(v)?m0(So(o),v):function(M){var j=vp(M,o);return j===e&&j===v?yp(M,o):bl(v,j,i|s)}}function qc(o,v,M,j,G){o!==v&&Fd(v,function(te,ue){if(G||(G=new ao),Pn(te))rR(o,v,ue,M,qc,j,G);else{var pe=j?j(cp(o,ue),te,ue+"",o,v,G):e;pe===e&&(pe=te),Dd(o,ue,pe)}},bi)}function rR(o,v,M,j,G,te,ue){var pe=cp(o,M),ye=cp(v,M),Ee=ue.get(ye);if(Ee){Dd(o,M,Ee);return}var Re=te?te(pe,ye,M+"",o,v,ue):e,De=Re===e;if(De){var Ye=kt(ye),rt=!Ye&&gs(ye),mt=!Ye&&!rt&&Ia(ye);Re=ye,Ye||rt||mt?kt(pe)?Re=pe:Qn(pe)?Re=vi(pe):rt?(De=!1,Re=Yb(ye,!0)):mt?(De=!1,Re=Xb(ye,!0)):Re=[]:Al(ye)||Ys(ye)?(Re=pe,Ys(pe)?Re=q0(pe):(!Pn(pe)||Uo(pe))&&(Re=f0(ye))):De=!1}De&&(ue.set(ye,Re),G(Re,ye,j,te,ue),ue.delete(ye)),Dd(o,M,Re)}function Fb(o,v){var M=o.length;if(M)return v+=v<0?M:0,jo(v,M)?o[v]:e}function Wb(o,v,M){v.length?v=y(v,function(te){return kt(te)?function(ue){return qs(ue,te.length===1?te[0]:te)}:te}):v=[wi];var j=-1;v=y(v,ut(gt()));var G=Nb(o,function(te,ue,pe){var ye=y(v,function(Ee){return Ee(te)});return{criteria:ye,index:++j,value:te}});return qe(G,function(te,ue){return mR(te,ue,M)})}function iR(o,v){return Bb(o,v,function(M,j){return yp(o,j)})}function Bb(o,v,M){for(var j=-1,G=v.length,te={};++j<G;){var ue=v[j],pe=qs(o,ue);M(pe,ue)&&wl(te,ps(ue,o),pe)}return te}function oR(o){return function(v){return qs(v,o)}}function Vd(o,v,M,j){var G=j?be:ae,te=-1,ue=v.length,pe=o;for(o===v&&(v=vi(v)),M&&(pe=y(o,ut(M)));++te<ue;)for(var ye=0,Ee=v[te],Re=M?M(Ee):Ee;(ye=G(pe,Re,ye,j))>-1;)pe!==o&&Dc.call(pe,ye,1),Dc.call(o,ye,1);return o}function zb(o,v){for(var M=o?v.length:0,j=M-1;M--;){var G=v[M];if(M==j||G!==te){var te=G;jo(G)?Dc.call(o,G,1):Yd(o,G)}}return o}function qd(o,v){return o+Wc(xb()*(v-o+1))}function sR(o,v,M,j){for(var G=-1,te=mr(Fc((v-o)/(M||1)),0),ue=Ce(te);te--;)ue[j?te:++G]=o,o+=M;return ue}function Kd(o,v){var M="";if(!o||v<1||v>U)return M;do v%2&&(M+=o),v=Wc(v/2),v&&(o+=o);while(v);return M}function Dt(o,v){return up(v0(o,v,wi),o+"")}function aR(o){return Ab(Ea(o))}function lR(o,v){var M=Ea(o);return nu(M,Vs(v,0,M.length))}function wl(o,v,M,j){if(!Pn(o))return o;v=ps(v,o);for(var G=-1,te=v.length,ue=te-1,pe=o;pe!=null&&++G<te;){var ye=So(v[G]),Ee=M;if(ye==="__proto__"||ye==="constructor"||ye==="prototype")return o;if(G!=ue){var Re=pe[ye];Ee=j?j(Re,ye,pe):e,Ee===e&&(Ee=Pn(Re)?Re:jo(v[G+1])?[]:{})}ml(pe,ye,Ee),pe=pe[ye]}return o}var Hb=Bc?function(o,v){return Bc.set(o,v),o}:wi,cR=Pc?function(o,v){return Pc(o,"toString",{configurable:!0,enumerable:!1,value:wp(v),writable:!0})}:wi;function uR(o){return nu(Ea(o))}function Ki(o,v,M){var j=-1,G=o.length;v<0&&(v=-v>G?0:G+v),M=M>G?G:M,M<0&&(M+=G),G=v>M?0:M-v>>>0,v>>>=0;for(var te=Ce(G);++j<G;)te[j]=o[j+v];return te}function hR(o,v){var M;return hs(o,function(j,G,te){return M=v(j,G,te),!M}),!!M}function Kc(o,v,M){var j=0,G=o==null?j:o.length;if(typeof v=="number"&&v===v&&G<=ne){for(;j<G;){var te=j+G>>>1,ue=o[te];ue!==null&&!Ri(ue)&&(M?ue<=v:ue<v)?j=te+1:G=te}return G}return Gd(o,v,wi,M)}function Gd(o,v,M,j){var G=0,te=o==null?0:o.length;if(te===0)return 0;v=M(v);for(var ue=v!==v,pe=v===null,ye=Ri(v),Ee=v===e;G<te;){var Re=Wc((G+te)/2),De=M(o[Re]),Ye=De!==e,rt=De===null,mt=De===De,Rt=Ri(De);if(ue)var vt=j||mt;else Ee?vt=mt&&(j||Ye):pe?vt=mt&&Ye&&(j||!rt):ye?vt=mt&&Ye&&!rt&&(j||!Rt):rt||Rt?vt=!1:vt=j?De<=v:De<v;vt?G=Re+1:te=Re}return Br(te,he)}function jb(o,v){for(var M=-1,j=o.length,G=0,te=[];++M<j;){var ue=o[M],pe=v?v(ue):ue;if(!M||!lo(pe,ye)){var ye=pe;te[G++]=ue===0?0:ue}}return te}function Ub(o){return typeof o=="number"?o:Ri(o)?Q:+o}function Ei(o){if(typeof o=="string")return o;if(kt(o))return y(o,Ei)+"";if(Ri(o))return Cb?Cb.call(o):"";var v=o+"";return v=="0"&&1/o==-B?"-0":v}function ds(o,v,M){var j=-1,G=Mi,te=o.length,ue=!0,pe=[],ye=pe;if(M)ue=!1,G=Ii;else if(te>=f){var Ee=v?null:CR(o);if(Ee)return Ke(Ee);ue=!1,G=xt,ye=new Us}else ye=v?[]:pe;e:for(;++j<te;){var Re=o[j],De=v?v(Re):Re;if(Re=M||Re!==0?Re:0,ue&&De===De){for(var Ye=ye.length;Ye--;)if(ye[Ye]===De)continue e;v&&ye.push(De),pe.push(Re)}else G(ye,De,M)||(ye!==pe&&ye.push(De),pe.push(Re))}return pe}function Yd(o,v){return v=ps(v,o),o=y0(o,v),o==null||delete o[So(Gi(v))]}function Vb(o,v,M,j){return wl(o,v,M(qs(o,v)),j)}function Gc(o,v,M,j){for(var G=o.length,te=j?G:-1;(j?te--:++te<G)&&v(o[te],te,o););return M?Ki(o,j?0:te,j?te+1:G):Ki(o,j?te+1:0,j?G:te)}function qb(o,v){var M=o;return M instanceof Vt&&(M=M.value()),S(v,function(j,G){return G.func.apply(G.thisArg,T([j],G.args))},M)}function Xd(o,v,M){var j=o.length;if(j<2)return j?ds(o[0]):[];for(var G=-1,te=Ce(j);++G<j;)for(var ue=o[G],pe=-1;++pe<j;)pe!=G&&(te[G]=vl(te[G]||ue,o[pe],v,M));return ds(Rr(te,1),v,M)}function Kb(o,v,M){for(var j=-1,G=o.length,te=v.length,ue={};++j<G;){var pe=j<te?v[j]:e;M(ue,o[j],pe)}return ue}function Zd(o){return Qn(o)?o:[]}function Qd(o){return typeof o=="function"?o:wi}function ps(o,v){return kt(o)?o:ap(o,v)?[o]:C0(sn(o))}var dR=Dt;function fs(o,v,M){var j=o.length;return M=M===e?j:M,!v&&M>=j?o:Ki(o,v,M)}var Gb=JI||function(o){return hn.clearTimeout(o)};function Yb(o,v){if(v)return o.slice();var M=o.length,j=mb?mb(M):new o.constructor(M);return o.copy(j),j}function Jd(o){var v=new o.constructor(o.byteLength);return new Oc(v).set(new Oc(o)),v}function pR(o,v){var M=v?Jd(o.buffer):o.buffer;return new o.constructor(M,o.byteOffset,o.byteLength)}function fR(o){var v=new o.constructor(o.source,Pr.exec(o));return v.lastIndex=o.lastIndex,v}function gR(o){return gl?Et(gl.call(o)):{}}function Xb(o,v){var M=v?Jd(o.buffer):o.buffer;return new o.constructor(M,o.byteOffset,o.length)}function Zb(o,v){if(o!==v){var M=o!==e,j=o===null,G=o===o,te=Ri(o),ue=v!==e,pe=v===null,ye=v===v,Ee=Ri(v);if(!pe&&!Ee&&!te&&o>v||te&&ue&&ye&&!pe&&!Ee||j&&ue&&ye||!M&&ye||!G)return 1;if(!j&&!te&&!Ee&&o<v||Ee&&M&&G&&!j&&!te||pe&&M&&G||!ue&&G||!ye)return-1}return 0}function mR(o,v,M){for(var j=-1,G=o.criteria,te=v.criteria,ue=G.length,pe=M.length;++j<ue;){var ye=Zb(G[j],te[j]);if(ye){if(j>=pe)return ye;var Ee=M[j];return ye*(Ee=="desc"?-1:1)}}return o.index-v.index}function Qb(o,v,M,j){for(var G=-1,te=o.length,ue=M.length,pe=-1,ye=v.length,Ee=mr(te-ue,0),Re=Ce(ye+Ee),De=!j;++pe<ye;)Re[pe]=v[pe];for(;++G<ue;)(De||G<te)&&(Re[M[G]]=o[G]);for(;Ee--;)Re[pe++]=o[G++];return Re}function Jb(o,v,M,j){for(var G=-1,te=o.length,ue=-1,pe=M.length,ye=-1,Ee=v.length,Re=mr(te-pe,0),De=Ce(Re+Ee),Ye=!j;++G<Re;)De[G]=o[G];for(var rt=G;++ye<Ee;)De[rt+ye]=v[ye];for(;++ue<pe;)(Ye||G<te)&&(De[rt+M[ue]]=o[G++]);return De}function vi(o,v){var M=-1,j=o.length;for(v||(v=Ce(j));++M<j;)v[M]=o[M];return v}function Ao(o,v,M,j){var G=!M;M||(M={});for(var te=-1,ue=v.length;++te<ue;){var pe=v[te],ye=j?j(M[pe],o[pe],pe,M,o):e;ye===e&&(ye=o[pe]),G?Bo(M,pe,ye):ml(M,pe,ye)}return M}function vR(o,v){return Ao(o,sp(o),v)}function yR(o,v){return Ao(o,d0(o),v)}function Yc(o,v){return function(M,j){var G=kt(M)?Ar:BE,te=v?v():{};return G(M,o,gt(j,2),te)}}function $a(o){return Dt(function(v,M){var j=-1,G=M.length,te=G>1?M[G-1]:e,ue=G>2?M[2]:e;for(te=o.length>3&&typeof te=="function"?(G--,te):e,ue&&ni(M[0],M[1],ue)&&(te=G<3?e:te,G=1),v=Et(v);++j<G;){var pe=M[j];pe&&o(v,pe,j,te)}return v})}function e0(o,v){return function(M,j){if(M==null)return M;if(!yi(M))return o(M,j);for(var G=M.length,te=v?G:-1,ue=Et(M);(v?te--:++te<G)&&j(ue[te],te,ue)!==!1;);return M}}function t0(o){return function(v,M,j){for(var G=-1,te=Et(v),ue=j(v),pe=ue.length;pe--;){var ye=ue[o?pe:++G];if(M(te[ye],ye,te)===!1)break}return v}}function bR(o,v,M){var j=v&p,G=xl(o);function te(){var ue=this&&this!==hn&&this instanceof te?G:o;return ue.apply(j?M:this,arguments)}return te}function n0(o){return function(v){v=sn(v);var M=oe(v)?Ct(v):e,j=M?M[0]:v.charAt(0),G=M?fs(M,1).join(""):v.slice(1);return j[o]()+G}}function Ta(o){return function(v){return S(ew(J0(v).replace(Dn,"")),o,"")}}function xl(o){return function(){var v=arguments;switch(v.length){case 0:return new o;case 1:return new o(v[0]);case 2:return new o(v[0],v[1]);case 3:return new o(v[0],v[1],v[2]);case 4:return new o(v[0],v[1],v[2],v[3]);case 5:return new o(v[0],v[1],v[2],v[3],v[4]);case 6:return new o(v[0],v[1],v[2],v[3],v[4],v[5]);case 7:return new o(v[0],v[1],v[2],v[3],v[4],v[5],v[6])}var M=_a(o.prototype),j=o.apply(M,v);return Pn(j)?j:M}}function wR(o,v,M){var j=xl(o);function G(){for(var te=arguments.length,ue=Ce(te),pe=te,ye=Ma(G);pe--;)ue[pe]=arguments[pe];var Ee=te<3&&ue[0]!==ye&&ue[te-1]!==ye?[]:Be(ue,ye);if(te-=Ee.length,te<M)return a0(o,v,Xc,G.placeholder,e,ue,Ee,e,e,M-te);var Re=this&&this!==hn&&this instanceof G?j:o;return kr(Re,this,ue)}return G}function r0(o){return function(v,M,j){var G=Et(v);if(!yi(v)){var te=gt(M,3);v=$r(v),M=function(pe){return te(G[pe],pe,G)}}var ue=o(v,M,j);return ue>-1?G[te?v[ue]:ue]:e}}function i0(o){return Ho(function(v){var M=v.length,j=M,G=Vi.prototype.thru;for(o&&v.reverse();j--;){var te=v[j];if(typeof te!="function")throw new dn(m);if(G&&!ue&&eu(te)=="wrapper")var ue=new Vi([],!0)}for(j=ue?j:M;++j<M;){te=v[j];var pe=eu(te),ye=pe=="wrapper"?ip(te):e;ye&&lp(ye[0])&&ye[1]==(L|I|k|D)&&!ye[4].length&&ye[9]==1?ue=ue[eu(ye[0])].apply(ue,ye[3]):ue=te.length==1&&lp(te)?ue[pe]():ue.thru(te)}return function(){var Ee=arguments,Re=Ee[0];if(ue&&Ee.length==1&&kt(Re))return ue.plant(Re).value();for(var De=0,Ye=M?v[De].apply(this,Ee):Re;++De<M;)Ye=v[De].call(this,Ye);return Ye}})}function Xc(o,v,M,j,G,te,ue,pe,ye,Ee){var Re=v&L,De=v&p,Ye=v&b,rt=v&(I|_),mt=v&R,Rt=Ye?e:xl(o);function vt(){for(var Bt=arguments.length,Kt=Ce(Bt),Li=Bt;Li--;)Kt[Li]=arguments[Li];if(rt)var ri=Ma(vt),Oi=Sr(Kt,ri);if(j&&(Kt=Qb(Kt,j,G,rt)),te&&(Kt=Jb(Kt,te,ue,rt)),Bt-=Oi,rt&&Bt<Ee){var Jn=Be(Kt,ri);return a0(o,v,Xc,vt.placeholder,M,Kt,Jn,pe,ye,Ee-Bt)}var co=De?M:this,qo=Ye?co[o]:o;return Bt=Kt.length,pe?Kt=BR(Kt,pe):mt&&Bt>1&&Kt.reverse(),Re&&ye<Bt&&(Kt.length=ye),this&&this!==hn&&this instanceof vt&&(qo=Rt||xl(qo)),qo.apply(co,Kt)}return vt}function o0(o,v){return function(M,j){return GE(M,o,v(j),{})}}function Zc(o,v){return function(M,j){var G;if(M===e&&j===e)return v;if(M!==e&&(G=M),j!==e){if(G===e)return j;typeof M=="string"||typeof j=="string"?(M=Ei(M),j=Ei(j)):(M=Ub(M),j=Ub(j)),G=o(M,j)}return G}}function ep(o){return Ho(function(v){return v=y(v,ut(gt())),Dt(function(M){var j=this;return o(v,function(G){return kr(G,j,M)})})})}function Qc(o,v){v=v===e?" ":Ei(v);var M=v.length;if(M<2)return M?Kd(v,o):v;var j=Kd(v,Fc(o/Ft(v)));return oe(v)?fs(Ct(j),0,o).join(""):j.slice(0,o)}function xR(o,v,M,j){var G=v&p,te=xl(o);function ue(){for(var pe=-1,ye=arguments.length,Ee=-1,Re=j.length,De=Ce(Re+ye),Ye=this&&this!==hn&&this instanceof ue?te:o;++Ee<Re;)De[Ee]=j[Ee];for(;ye--;)De[Ee++]=arguments[++pe];return kr(Ye,G?M:this,De)}return ue}function s0(o){return function(v,M,j){return j&&typeof j!="number"&&ni(v,M,j)&&(M=j=e),v=Vo(v),M===e?(M=v,v=0):M=Vo(M),j=j===e?v<M?1:-1:Vo(j),sR(v,M,j,o)}}function Jc(o){return function(v,M){return typeof v=="string"&&typeof M=="string"||(v=Yi(v),M=Yi(M)),o(v,M)}}function a0(o,v,M,j,G,te,ue,pe,ye,Ee){var Re=v&I,De=Re?ue:e,Ye=Re?e:ue,rt=Re?te:e,mt=Re?e:te;v|=Re?k:C,v&=~(Re?C:k),v&x||(v&=-4);var Rt=[o,v,G,rt,De,mt,Ye,pe,ye,Ee],vt=M.apply(e,Rt);return lp(o)&&b0(vt,Rt),vt.placeholder=j,w0(vt,o,v)}function tp(o){var v=Zt[o];return function(M,j){if(M=Yi(M),j=j==null?0:Br(It(j),292),j&&wb(M)){var G=(sn(M)+"e").split("e"),te=v(G[0]+"e"+(+G[1]+j));return G=(sn(te)+"e").split("e"),+(G[0]+"e"+(+G[1]-j))}return v(M)}}var CR=Aa&&1/Ke(new Aa([,-0]))[1]==B?function(o){return new Aa(o)}:kp;function l0(o){return function(v){var M=zr(v);return M==tt?Ie(v):M==On?Xe(v):nt(v,o(v))}}function zo(o,v,M,j,G,te,ue,pe){var ye=v&b;if(!ye&&typeof o!="function")throw new dn(m);var Ee=j?j.length:0;if(Ee||(v&=-97,j=G=e),ue=ue===e?ue:mr(It(ue),0),pe=pe===e?pe:It(pe),Ee-=G?G.length:0,v&C){var Re=j,De=G;j=G=e}var Ye=ye?e:ip(o),rt=[o,v,M,j,G,Re,De,te,ue,pe];if(Ye&&PR(rt,Ye),o=rt[0],v=rt[1],M=rt[2],j=rt[3],G=rt[4],pe=rt[9]=rt[9]===e?ye?0:o.length:mr(rt[9]-Ee,0),!pe&&v&(I|_)&&(v&=-25),!v||v==p)var mt=bR(o,v,M);else v==I||v==_?mt=wR(o,v,pe):(v==k||v==(p|k))&&!G.length?mt=xR(o,v,M,j):mt=Xc.apply(e,rt);var Rt=Ye?Hb:b0;return w0(Rt(mt,rt),o,v)}function c0(o,v,M,j){return o===e||lo(o,Vn[M])&&!cn.call(j,M)?v:o}function u0(o,v,M,j,G,te){return Pn(o)&&Pn(v)&&(te.set(v,o),qc(o,v,e,u0,te),te.delete(v)),o}function kR(o){return Al(o)?e:o}function h0(o,v,M,j,G,te){var ue=M&i,pe=o.length,ye=v.length;if(pe!=ye&&!(ue&&ye>pe))return!1;var Ee=te.get(o),Re=te.get(v);if(Ee&&Re)return Ee==v&&Re==o;var De=-1,Ye=!0,rt=M&s?new Us:e;for(te.set(o,v),te.set(v,o);++De<pe;){var mt=o[De],Rt=v[De];if(j)var vt=ue?j(Rt,mt,De,v,o,te):j(mt,Rt,De,o,v,te);if(vt!==e){if(vt)continue;Ye=!1;break}if(rt){if(!W(v,function(Bt,Kt){if(!xt(rt,Kt)&&(mt===Bt||G(mt,Bt,M,j,te)))return rt.push(Kt)})){Ye=!1;break}}else if(!(mt===Rt||G(mt,Rt,M,j,te))){Ye=!1;break}}return te.delete(o),te.delete(v),Ye}function AR(o,v,M,j,G,te,ue){switch(M){case Tn:if(o.byteLength!=v.byteLength||o.byteOffset!=v.byteOffset)return!1;o=o.buffer,v=v.buffer;case Ht:return!(o.byteLength!=v.byteLength||!te(new Oc(o),new Oc(v)));case _e:case Te:case ct:return lo(+o,+v);case Ze:return o.name==v.name&&o.message==v.message;case un:case Xn:return o==v+"";case tt:var pe=Ie;case On:var ye=j&i;if(pe||(pe=Ke),o.size!=v.size&&!ye)return!1;var Ee=ue.get(o);if(Ee)return Ee==v;j|=s,ue.set(o,v);var Re=h0(pe(o),pe(v),j,G,te,ue);return ue.delete(o),Re;case Mr:if(gl)return gl.call(o)==gl.call(v)}return!1}function SR(o,v,M,j,G,te){var ue=M&i,pe=np(o),ye=pe.length,Ee=np(v),Re=Ee.length;if(ye!=Re&&!ue)return!1;for(var De=ye;De--;){var Ye=pe[De];if(!(ue?Ye in v:cn.call(v,Ye)))return!1}var rt=te.get(o),mt=te.get(v);if(rt&&mt)return rt==v&&mt==o;var Rt=!0;te.set(o,v),te.set(v,o);for(var vt=ue;++De<ye;){Ye=pe[De];var Bt=o[Ye],Kt=v[Ye];if(j)var Li=ue?j(Kt,Bt,Ye,v,o,te):j(Bt,Kt,Ye,o,v,te);if(!(Li===e?Bt===Kt||G(Bt,Kt,M,j,te):Li)){Rt=!1;break}vt||(vt=Ye=="constructor")}if(Rt&&!vt){var ri=o.constructor,Oi=v.constructor;ri!=Oi&&"constructor"in o&&"constructor"in v&&!(typeof ri=="function"&&ri instanceof ri&&typeof Oi=="function"&&Oi instanceof Oi)&&(Rt=!1)}return te.delete(o),te.delete(v),Rt}function Ho(o){return up(v0(o,e,_0),o+"")}function np(o){return Eb(o,$r,sp)}function rp(o){return Eb(o,bi,d0)}var ip=Bc?function(o){return Bc.get(o)}:kp;function eu(o){for(var v=o.name+"",M=Sa[v],j=cn.call(Sa,v)?M.length:0;j--;){var G=M[j],te=G.func;if(te==null||te==o)return G.name}return v}function Ma(o){var v=cn.call(ee,"placeholder")?ee:o;return v.placeholder}function gt(){var o=ee.iteratee||xp;return o=o===xp?Ob:o,arguments.length?o(arguments[0],arguments[1]):o}function tu(o,v){var M=o.__data__;return LR(v)?M[typeof v=="string"?"string":"hash"]:M.map}function op(o){for(var v=$r(o),M=v.length;M--;){var j=v[M],G=o[j];v[M]=[j,G,g0(G)]}return v}function Ks(o,v){var M=ie(o,v);return Lb(M)?M:e}function _R(o){var v=cn.call(o,Hs),M=o[Hs];try{o[Hs]=e;var j=!0}catch{}var G=Rc.call(o);return j&&(v?o[Hs]=M:delete o[Hs]),G}var sp=Ld?function(o){return o==null?[]:(o=Et(o),Wr(Ld(o),function(v){return yb.call(o,v)}))}:Ap,d0=Ld?function(o){for(var v=[];o;)T(v,sp(o)),o=Nc(o);return v}:Ap,zr=ti;(Od&&zr(new Od(new ArrayBuffer(1)))!=Tn||dl&&zr(new dl)!=tt||Nd&&zr(Nd.resolve())!=Wt||Aa&&zr(new Aa)!=On||pl&&zr(new pl)!=je)&&(zr=function(o){var v=ti(o),M=v==Cn?o.constructor:e,j=M?Gs(M):"";if(j)switch(j){case lE:return Tn;case cE:return tt;case uE:return Wt;case hE:return On;case dE:return je}return v});function $R(o,v,M){for(var j=-1,G=M.length;++j<G;){var te=M[j],ue=te.size;switch(te.type){case"drop":o+=ue;break;case"dropRight":v-=ue;break;case"take":v=Br(v,o+ue);break;case"takeRight":o=mr(o,v-ue);break}}return{start:o,end:v}}function TR(o){var v=o.match(fi);return v?v[1].split(vo):[]}function p0(o,v,M){v=ps(v,o);for(var j=-1,G=v.length,te=!1;++j<G;){var ue=So(v[j]);if(!(te=o!=null&&M(o,ue)))break;o=o[ue]}return te||++j!=G?te:(G=o==null?0:o.length,!!G&&lu(G)&&jo(ue,G)&&(kt(o)||Ys(o)))}function MR(o){var v=o.length,M=new o.constructor(v);return v&&typeof o[0]=="string"&&cn.call(o,"index")&&(M.index=o.index,M.input=o.input),M}function f0(o){return typeof o.constructor=="function"&&!Cl(o)?_a(Nc(o)):{}}function IR(o,v,M){var j=o.constructor;switch(v){case Ht:return Jd(o);case _e:case Te:return new j(+o);case Tn:return pR(o,M);case yr:case hr:case mn:case Wn:case Nn:case Gt:case ln:case Dr:case Gr:return Xb(o,M);case tt:return new j;case ct:case Xn:return new j(o);case un:return fR(o);case On:return new j;case Mr:return gR(o)}}function ER(o,v){var M=v.length;if(!M)return o;var j=M-1;return v[j]=(M>1?"& ":"")+v[j],v=v.join(M>2?", ":" "),o.replace(br,`{
1470
1470
  /* [wrapped with `+v+`] */
1471
- `)}function RR(o){return kt(o)||Ys(o)||!!(bb&&o&&o[bb])}function jo(o,v){var M=typeof o;return v=v??U,!!v&&(M=="number"||M!="symbol"&&ze.test(o))&&o>-1&&o%1==0&&o<v}function ni(o,v,M){if(!Pn(M))return!1;var j=typeof v;return(j=="number"?yi(M)&&jo(v,M.length):j=="string"&&v in M)?lo(M[v],o):!1}function ap(o,v){if(kt(o))return!1;var M=typeof o;return M=="number"||M=="symbol"||M=="boolean"||o==null||Ri(o)?!0:di.test(o)||!Jo.test(o)||v!=null&&o in Et(v)}function LR(o){var v=typeof o;return v=="string"||v=="number"||v=="symbol"||v=="boolean"?o!=="__proto__":o===null}function lp(o){var v=eu(o),M=ee[v];if(typeof M!="function"||!(v in Ut.prototype))return!1;if(o===M)return!0;var j=ip(M);return!!j&&o===j[0]}function OR(o){return!!gb&&gb in o}var NR=zs?Uo:Sp;function Cl(o){var v=o&&o.constructor,M=typeof v=="function"&&v.prototype||Vn;return o===M}function g0(o){return o===o&&!Pn(o)}function m0(o,v){return function(M){return M==null?!1:M[o]===v&&(v!==e||o in Et(M))}}function DR(o){var v=su(o,function(j){return M.size===d&&M.clear(),j}),M=v.cache;return v}function PR(o,v){var M=o[1],j=v[1],G=M|j,te=G<(p|b|L),ue=j==L&&M==I||j==L&&M==D&&o[7].length<=v[8]||j==(L|D)&&v[7].length<=v[8]&&M==I;if(!(te||ue))return o;j&p&&(o[2]=v[2],G|=M&p?0:x);var pe=v[3];if(pe){var ye=o[3];o[3]=ye?Qb(ye,pe,v[4]):pe,o[4]=ye?Be(o[3],a):v[4]}return pe=v[5],pe&&(ye=o[5],o[5]=ye?Jb(ye,pe,v[6]):pe,o[6]=ye?Be(o[5],a):v[6]),pe=v[7],pe&&(o[7]=pe),j&L&&(o[8]=o[8]==null?v[8]:Br(o[8],v[8])),o[9]==null&&(o[9]=v[9]),o[0]=v[0],o[1]=G,o}function FR(o){var v=[];if(o!=null)for(var M in Et(o))v.push(M);return v}function WR(o){return Rc.call(o)}function v0(o,v,M){return v=mr(v===e?o.length-1:v,0),function(){for(var j=arguments,G=-1,te=mr(j.length-v,0),ue=Ce(te);++G<te;)ue[G]=j[v+G];G=-1;for(var pe=Ce(v+1);++G<v;)pe[G]=j[G];return pe[v]=M(ue),kr(o,this,pe)}}function y0(o,v){return v.length<2?o:qs(o,Ki(v,0,-1))}function BR(o,v){for(var M=o.length,j=Br(v.length,M),G=vi(o);j--;){var te=v[j];o[j]=jo(te,M)?G[te]:e}return o}function cp(o,v){if(!(v==="constructor"&&typeof o[v]=="function")&&v!="__proto__")return o[v]}var b0=x0(Hb),kl=tE||function(o,v){return hn.setTimeout(o,v)},up=x0(cR);function w0(o,v,M){var j=v+"";return up(o,ER(j,zR(TR(j),M)))}function x0(o){var v=0,M=0;return function(){var j=oE(),G=O-(j-M);if(M=j,G>0){if(++v>=F)return arguments[0]}else v=0;return o.apply(e,arguments)}}function nu(o,v){var M=-1,j=o.length,G=j-1;for(v=v===e?j:v;++M<v;){var te=qd(M,G),ue=o[te];o[te]=o[M],o[M]=ue}return o.length=v,o}var C0=DR(function(o){var v=[];return o.charCodeAt(0)===46&&v.push(""),o.replace(kn,function(M,j,G,te){v.push(G?te.replace(Zr,"$1"):j||M)}),v});function Ao(o){if(typeof o=="string"||Ri(o))return o;var v=o+"";return v=="0"&&1/o==-B?"-0":v}function Gs(o){if(o!=null){try{return Ec.call(o)}catch{}try{return o+""}catch{}}return""}function zR(o,v){return Ir(le,function(M){var j="_."+M[0];v&M[1]&&!Mi(o,j)&&o.push(j)}),o.sort()}function k0(o){if(o instanceof Ut)return o.clone();var v=new Vi(o.__wrapped__,o.__chain__);return v.__actions__=vi(o.__actions__),v.__index__=o.__index__,v.__values__=o.__values__,v}function HR(o,v,M){(M?ni(o,v,M):v===e)?v=1:v=mr(It(v),0);var j=o==null?0:o.length;if(!j||v<1)return[];for(var G=0,te=0,ue=Ce(Fc(j/v));G<j;)ue[te++]=Ki(o,G,G+=v);return ue}function jR(o){for(var v=-1,M=o==null?0:o.length,j=0,G=[];++v<M;){var te=o[v];te&&(G[j++]=te)}return G}function UR(){var o=arguments.length;if(!o)return[];for(var v=Ce(o-1),M=arguments[0],j=o;j--;)v[j-1]=arguments[j];return T(kt(M)?vi(M):[M],Rr(v,1))}var VR=Dt(function(o,v){return Qn(o)?vl(o,Rr(v,1,Qn,!0)):[]}),qR=Dt(function(o,v){var M=Gi(v);return Qn(M)&&(M=e),Qn(o)?vl(o,Rr(v,1,Qn,!0),gt(M,2)):[]}),KR=Dt(function(o,v){var M=Gi(v);return Qn(M)&&(M=e),Qn(o)?vl(o,Rr(v,1,Qn,!0),e,M):[]});function GR(o,v,M){var j=o==null?0:o.length;return j?(v=M||v===e?1:It(v),Ki(o,v<0?0:v,j)):[]}function YR(o,v,M){var j=o==null?0:o.length;return j?(v=M||v===e?1:It(v),v=j-v,Ki(o,0,v<0?0:v)):[]}function XR(o,v){return o&&o.length?Gc(o,gt(v,3),!0,!0):[]}function ZR(o,v){return o&&o.length?Gc(o,gt(v,3),!0):[]}function QR(o,v,M,j){var G=o==null?0:o.length;return G?(M&&typeof M!="number"&&ni(o,v,M)&&(M=0,j=G),UE(o,v,M,j)):[]}function A0(o,v,M){var j=o==null?0:o.length;if(!j)return-1;var G=M==null?0:It(M);return G<0&&(G=mr(j+G,0)),re(o,gt(v,3),G)}function S0(o,v,M){var j=o==null?0:o.length;if(!j)return-1;var G=j-1;return M!==e&&(G=It(M),G=M<0?mr(j+G,0):Br(G,j-1)),re(o,gt(v,3),G,!0)}function _0(o){var v=o==null?0:o.length;return v?Rr(o,1):[]}function JR(o){var v=o==null?0:o.length;return v?Rr(o,B):[]}function eL(o,v){var M=o==null?0:o.length;return M?(v=v===e?1:It(v),Rr(o,v)):[]}function tL(o){for(var v=-1,M=o==null?0:o.length,j={};++v<M;){var G=o[v];j[G[0]]=G[1]}return j}function $0(o){return o&&o.length?o[0]:e}function nL(o,v,M){var j=o==null?0:o.length;if(!j)return-1;var G=M==null?0:It(M);return G<0&&(G=mr(j+G,0)),ae(o,v,G)}function rL(o){var v=o==null?0:o.length;return v?Ki(o,0,-1):[]}var iL=Dt(function(o){var v=y(o,Zd);return v.length&&v[0]===o[0]?zd(v):[]}),oL=Dt(function(o){var v=Gi(o),M=y(o,Zd);return v===Gi(M)?v=e:M.pop(),M.length&&M[0]===o[0]?zd(M,gt(v,2)):[]}),sL=Dt(function(o){var v=Gi(o),M=y(o,Zd);return v=typeof v=="function"?v:e,v&&M.pop(),M.length&&M[0]===o[0]?zd(M,e,v):[]});function aL(o,v){return o==null?"":rE.call(o,v)}function Gi(o){var v=o==null?0:o.length;return v?o[v-1]:e}function lL(o,v,M){var j=o==null?0:o.length;if(!j)return-1;var G=j;return M!==e&&(G=It(M),G=G<0?mr(j+G,0):Br(G,j-1)),v===v?wt(o,v,G):re(o,ke,G,!0)}function cL(o,v){return o&&o.length?Fb(o,It(v)):e}var uL=Dt(T0);function T0(o,v){return o&&o.length&&v&&v.length?Vd(o,v):o}function hL(o,v,M){return o&&o.length&&v&&v.length?Vd(o,v,gt(M,2)):o}function dL(o,v,M){return o&&o.length&&v&&v.length?Vd(o,v,e,M):o}var pL=Ho(function(o,v){var M=o==null?0:o.length,j=Pd(o,v);return zb(o,y(v,function(G){return jo(G,M)?+G:G}).sort(Zb)),j});function fL(o,v){var M=[];if(!(o&&o.length))return M;var j=-1,G=[],te=o.length;for(v=gt(v,3);++j<te;){var ue=o[j];v(ue,j,o)&&(M.push(ue),G.push(j))}return zb(o,G),M}function hp(o){return o==null?o:aE.call(o)}function gL(o,v,M){var j=o==null?0:o.length;return j?(M&&typeof M!="number"&&ni(o,v,M)?(v=0,M=j):(v=v==null?0:It(v),M=M===e?j:It(M)),Ki(o,v,M)):[]}function mL(o,v){return Kc(o,v)}function vL(o,v,M){return Gd(o,v,gt(M,2))}function yL(o,v){var M=o==null?0:o.length;if(M){var j=Kc(o,v);if(j<M&&lo(o[j],v))return j}return-1}function bL(o,v){return Kc(o,v,!0)}function wL(o,v,M){return Gd(o,v,gt(M,2),!0)}function xL(o,v){var M=o==null?0:o.length;if(M){var j=Kc(o,v,!0)-1;if(lo(o[j],v))return j}return-1}function CL(o){return o&&o.length?jb(o):[]}function kL(o,v){return o&&o.length?jb(o,gt(v,2)):[]}function AL(o){var v=o==null?0:o.length;return v?Ki(o,1,v):[]}function SL(o,v,M){return o&&o.length?(v=M||v===e?1:It(v),Ki(o,0,v<0?0:v)):[]}function _L(o,v,M){var j=o==null?0:o.length;return j?(v=M||v===e?1:It(v),v=j-v,Ki(o,v<0?0:v,j)):[]}function $L(o,v){return o&&o.length?Gc(o,gt(v,3),!1,!0):[]}function TL(o,v){return o&&o.length?Gc(o,gt(v,3)):[]}var ML=Dt(function(o){return ds(Rr(o,1,Qn,!0))}),IL=Dt(function(o){var v=Gi(o);return Qn(v)&&(v=e),ds(Rr(o,1,Qn,!0),gt(v,2))}),EL=Dt(function(o){var v=Gi(o);return v=typeof v=="function"?v:e,ds(Rr(o,1,Qn,!0),e,v)});function RL(o){return o&&o.length?ds(o):[]}function LL(o,v){return o&&o.length?ds(o,gt(v,2)):[]}function OL(o,v){return v=typeof v=="function"?v:e,o&&o.length?ds(o,e,v):[]}function dp(o){if(!(o&&o.length))return[];var v=0;return o=Wr(o,function(M){if(Qn(M))return v=mr(M.length,v),!0}),Qe(v,function(M){return y(o,we(M))})}function M0(o,v){if(!(o&&o.length))return[];var M=dp(o);return v==null?M:y(M,function(j){return kr(v,e,j)})}var NL=Dt(function(o,v){return Qn(o)?vl(o,v):[]}),DL=Dt(function(o){return Xd(Wr(o,Qn))}),PL=Dt(function(o){var v=Gi(o);return Qn(v)&&(v=e),Xd(Wr(o,Qn),gt(v,2))}),FL=Dt(function(o){var v=Gi(o);return v=typeof v=="function"?v:e,Xd(Wr(o,Qn),e,v)}),WL=Dt(dp);function BL(o,v){return Kb(o||[],v||[],ml)}function zL(o,v){return Kb(o||[],v||[],wl)}var HL=Dt(function(o){var v=o.length,M=v>1?o[v-1]:e;return M=typeof M=="function"?(o.pop(),M):e,M0(o,M)});function I0(o){var v=ee(o);return v.__chain__=!0,v}function jL(o,v){return v(o),o}function ru(o,v){return v(o)}var UL=Ho(function(o){var v=o.length,M=v?o[0]:0,j=this.__wrapped__,G=function(te){return Pd(te,o)};return v>1||this.__actions__.length||!(j instanceof Ut)||!jo(M)?this.thru(G):(j=j.slice(M,+M+(v?1:0)),j.__actions__.push({func:ru,args:[G],thisArg:e}),new Vi(j,this.__chain__).thru(function(te){return v&&!te.length&&te.push(e),te}))});function VL(){return I0(this)}function qL(){return new Vi(this.value(),this.__chain__)}function KL(){this.__values__===e&&(this.__values__=U0(this.value()));var o=this.__index__>=this.__values__.length,v=o?e:this.__values__[this.__index__++];return{done:o,value:v}}function GL(){return this}function YL(o){for(var v,M=this;M instanceof Hc;){var j=k0(M);j.__index__=0,j.__values__=e,v?G.__wrapped__=j:v=j;var G=j;M=M.__wrapped__}return G.__wrapped__=o,v}function XL(){var o=this.__wrapped__;if(o instanceof Ut){var v=o;return this.__actions__.length&&(v=new Ut(this)),v=v.reverse(),v.__actions__.push({func:ru,args:[hp],thisArg:e}),new Vi(v,this.__chain__)}return this.thru(hp)}function ZL(){return qb(this.__wrapped__,this.__actions__)}var QL=Yc(function(o,v,M){cn.call(o,M)?++o[M]:Bo(o,M,1)});function JL(o,v,M){var j=kt(o)?Er:jE;return M&&ni(o,v,M)&&(v=e),j(o,gt(v,3))}function eO(o,v){var M=kt(o)?Wr:Mb;return M(o,gt(v,3))}var tO=r0(A0),nO=r0(S0);function rO(o,v){return Rr(iu(o,v),1)}function iO(o,v){return Rr(iu(o,v),B)}function oO(o,v,M){return M=M===e?1:It(M),Rr(iu(o,v),M)}function E0(o,v){var M=kt(o)?Ir:hs;return M(o,gt(v,3))}function R0(o,v){var M=kt(o)?Bs:Tb;return M(o,gt(v,3))}var sO=Yc(function(o,v,M){cn.call(o,M)?o[M].push(v):Bo(o,M,[v])});function aO(o,v,M,j){o=yi(o)?o:Ea(o),M=M&&!j?It(M):0;var G=o.length;return M<0&&(M=mr(G+M,0)),cu(o)?M<=G&&o.indexOf(v,M)>-1:!!G&&ae(o,v,M)>-1}var lO=Dt(function(o,v,M){var j=-1,G=typeof v=="function",te=yi(o)?Ce(o.length):[];return hs(o,function(ue){te[++j]=G?kr(v,ue,M):yl(ue,v,M)}),te}),cO=Yc(function(o,v,M){Bo(o,M,v)});function iu(o,v){var M=kt(o)?y:Nb;return M(o,gt(v,3))}function uO(o,v,M,j){return o==null?[]:(kt(v)||(v=v==null?[]:[v]),M=j?e:M,kt(M)||(M=M==null?[]:[M]),Wb(o,v,M))}var hO=Yc(function(o,v,M){o[M?0:1].push(v)},function(){return[[],[]]});function dO(o,v,M){var j=kt(o)?S:Le,G=arguments.length<3;return j(o,gt(v,4),M,G,hs)}function pO(o,v,M){var j=kt(o)?P:Le,G=arguments.length<3;return j(o,gt(v,4),M,G,Tb)}function fO(o,v){var M=kt(o)?Wr:Mb;return M(o,au(gt(v,3)))}function gO(o){var v=kt(o)?Ab:aR;return v(o)}function mO(o,v,M){(M?ni(o,v,M):v===e)?v=1:v=It(v);var j=kt(o)?FE:lR;return j(o,v)}function vO(o){var v=kt(o)?WE:uR;return v(o)}function yO(o){if(o==null)return 0;if(yi(o))return cu(o)?Pt(o):o.length;var v=zr(o);return v==tt||v==Ln?o.size:jd(o).length}function bO(o,v,M){var j=kt(o)?W:hR;return M&&ni(o,v,M)&&(v=e),j(o,gt(v,3))}var wO=Dt(function(o,v){if(o==null)return[];var M=v.length;return M>1&&ni(o,v[0],v[1])?v=[]:M>2&&ni(v[0],v[1],v[2])&&(v=[v[0]]),Wb(o,Rr(v,1),[])}),ou=eE||function(){return hn.Date.now()};function xO(o,v){if(typeof v!="function")throw new dn(m);return o=It(o),function(){if(--o<1)return v.apply(this,arguments)}}function L0(o,v,M){return v=M?e:v,v=o&&v==null?o.length:v,zo(o,L,e,e,e,e,v)}function O0(o,v){var M;if(typeof v!="function")throw new dn(m);return o=It(o),function(){return--o>0&&(M=v.apply(this,arguments)),o<=1&&(v=e),M}}var pp=Dt(function(o,v,M){var j=p;if(M.length){var G=Be(M,Ma(pp));j|=k}return zo(o,j,v,M,G)}),N0=Dt(function(o,v,M){var j=p|b;if(M.length){var G=Be(M,Ma(N0));j|=k}return zo(v,j,o,M,G)});function D0(o,v,M){v=M?e:v;var j=zo(o,I,e,e,e,e,e,v);return j.placeholder=D0.placeholder,j}function P0(o,v,M){v=M?e:v;var j=zo(o,_,e,e,e,e,e,v);return j.placeholder=P0.placeholder,j}function F0(o,v,M){var j,G,te,ue,pe,ye,Ee=0,Re=!1,De=!1,Ye=!0;if(typeof o!="function")throw new dn(m);v=Yi(v)||0,Pn(M)&&(Re=!!M.leading,De="maxWait"in M,te=De?mr(Yi(M.maxWait)||0,v):te,Ye="trailing"in M?!!M.trailing:Ye);function rt(Jn){var co=j,qo=G;return j=G=e,Ee=Jn,ue=o.apply(qo,co),ue}function mt(Jn){return Ee=Jn,pe=kl(Bt,v),Re?rt(Jn):ue}function Rt(Jn){var co=Jn-ye,qo=Jn-Ee,rw=v-co;return De?Br(rw,te-qo):rw}function vt(Jn){var co=Jn-ye,qo=Jn-Ee;return ye===e||co>=v||co<0||De&&qo>=te}function Bt(){var Jn=ou();if(vt(Jn))return qt(Jn);pe=kl(Bt,Rt(Jn))}function qt(Jn){return pe=e,Ye&&j?rt(Jn):(j=G=e,ue)}function Li(){pe!==e&&Gb(pe),Ee=0,j=ye=G=pe=e}function ri(){return pe===e?ue:qt(ou())}function Oi(){var Jn=ou(),co=vt(Jn);if(j=arguments,G=this,ye=Jn,co){if(pe===e)return mt(ye);if(De)return Gb(pe),pe=kl(Bt,v),rt(ye)}return pe===e&&(pe=kl(Bt,v)),ue}return Oi.cancel=Li,Oi.flush=ri,Oi}var CO=Dt(function(o,v){return $b(o,1,v)}),kO=Dt(function(o,v,M){return $b(o,Yi(v)||0,M)});function AO(o){return zo(o,R)}function su(o,v){if(typeof o!="function"||v!=null&&typeof v!="function")throw new dn(m);var M=function(){var j=arguments,G=v?v.apply(this,j):j[0],te=M.cache;if(te.has(G))return te.get(G);var ue=o.apply(this,j);return M.cache=te.set(G,ue)||te,ue};return M.cache=new(su.Cache||Wo),M}su.Cache=Wo;function au(o){if(typeof o!="function")throw new dn(m);return function(){var v=arguments;switch(v.length){case 0:return!o.call(this);case 1:return!o.call(this,v[0]);case 2:return!o.call(this,v[0],v[1]);case 3:return!o.call(this,v[0],v[1],v[2])}return!o.apply(this,v)}}function SO(o){return O0(2,o)}var _O=dR(function(o,v){v=v.length==1&&kt(v[0])?y(v[0],ut(gt())):y(Rr(v,1),ut(gt()));var M=v.length;return Dt(function(j){for(var G=-1,te=Br(j.length,M);++G<te;)j[G]=v[G].call(this,j[G]);return kr(o,this,j)})}),fp=Dt(function(o,v){var M=Be(v,Ma(fp));return zo(o,k,e,v,M)}),W0=Dt(function(o,v){var M=Be(v,Ma(W0));return zo(o,C,e,v,M)}),$O=Ho(function(o,v){return zo(o,D,e,e,e,v)});function TO(o,v){if(typeof o!="function")throw new dn(m);return v=v===e?v:It(v),Dt(o,v)}function MO(o,v){if(typeof o!="function")throw new dn(m);return v=v==null?0:mr(It(v),0),Dt(function(M){var j=M[v],G=fs(M,0,v);return j&&T(G,j),kr(o,this,G)})}function IO(o,v,M){var j=!0,G=!0;if(typeof o!="function")throw new dn(m);return Pn(M)&&(j="leading"in M?!!M.leading:j,G="trailing"in M?!!M.trailing:G),F0(o,v,{leading:j,maxWait:v,trailing:G})}function EO(o){return L0(o,1)}function RO(o,v){return fp(Qd(v),o)}function LO(){if(!arguments.length)return[];var o=arguments[0];return kt(o)?o:[o]}function OO(o){return qi(o,c)}function NO(o,v){return v=typeof v=="function"?v:e,qi(o,c,v)}function DO(o){return qi(o,l|c)}function PO(o,v){return v=typeof v=="function"?v:e,qi(o,l|c,v)}function FO(o,v){return v==null||_b(o,v,$r(v))}function lo(o,v){return o===v||o!==o&&v!==v}var WO=Jc(Bd),BO=Jc(function(o,v){return o>=v}),Ys=Rb(function(){return arguments}())?Rb:function(o){return qn(o)&&cn.call(o,"callee")&&!yb.call(o,"callee")},kt=Ce.isArray,zO=mi?ut(mi):YE;function yi(o){return o!=null&&lu(o.length)&&!Uo(o)}function Qn(o){return qn(o)&&yi(o)}function HO(o){return o===!0||o===!1||qn(o)&&ti(o)==_e}var gs=nE||Sp,jO=cs?ut(cs):XE;function UO(o){return qn(o)&&o.nodeType===1&&!Al(o)}function VO(o){if(o==null)return!0;if(yi(o)&&(kt(o)||typeof o=="string"||typeof o.splice=="function"||gs(o)||Ia(o)||Ys(o)))return!o.length;var v=zr(o);if(v==tt||v==Ln)return!o.size;if(Cl(o))return!jd(o).length;for(var M in o)if(cn.call(o,M))return!1;return!0}function qO(o,v){return bl(o,v)}function KO(o,v,M){M=typeof M=="function"?M:e;var j=M?M(o,v):e;return j===e?bl(o,v,e,M):!!j}function gp(o){if(!qn(o))return!1;var v=ti(o);return v==Ze||v==Me||typeof o.message=="string"&&typeof o.name=="string"&&!Al(o)}function GO(o){return typeof o=="number"&&wb(o)}function Uo(o){if(!Pn(o))return!1;var v=ti(o);return v==Ge||v==lt||v==me||v==vr}function B0(o){return typeof o=="number"&&o==It(o)}function lu(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=U}function Pn(o){var v=typeof o;return o!=null&&(v=="object"||v=="function")}function qn(o){return o!=null&&typeof o=="object"}var z0=Un?ut(Un):QE;function YO(o,v){return o===v||Hd(o,v,op(v))}function XO(o,v,M){return M=typeof M=="function"?M:e,Hd(o,v,op(v),M)}function ZO(o){return H0(o)&&o!=+o}function QO(o){if(NR(o))throw new dt(g);return Lb(o)}function JO(o){return o===null}function e2(o){return o==null}function H0(o){return typeof o=="number"||qn(o)&&ti(o)==ct}function Al(o){if(!qn(o)||ti(o)!=Cn)return!1;var v=Nc(o);if(v===null)return!0;var M=cn.call(v,"constructor")&&v.constructor;return typeof M=="function"&&M instanceof M&&Ec.call(M)==XI}var mp=$i?ut($i):JE;function t2(o){return B0(o)&&o>=-U&&o<=U}var j0=Ti?ut(Ti):eR;function cu(o){return typeof o=="string"||!kt(o)&&qn(o)&&ti(o)==Xn}function Ri(o){return typeof o=="symbol"||qn(o)&&ti(o)==Mr}var Ia=ji?ut(ji):tR;function n2(o){return o===e}function r2(o){return qn(o)&&zr(o)==je}function i2(o){return qn(o)&&ti(o)==Lt}var o2=Jc(Ud),s2=Jc(function(o,v){return o<=v});function U0(o){if(!o)return[];if(yi(o))return cu(o)?Ct(o):vi(o);if(hl&&o[hl])return xe(o[hl]());var v=zr(o),M=v==tt?Ie:v==Ln?Ke:Ea;return M(o)}function Vo(o){if(!o)return o===0?o:0;if(o=Yi(o),o===B||o===-B){var v=o<0?-1:1;return v*K}return o===o?o:0}function It(o){var v=Vo(o),M=v%1;return v===v?M?v-M:v:0}function V0(o){return o?Vs(It(o),0,J):0}function Yi(o){if(typeof o=="number")return o;if(Ri(o))return Q;if(Pn(o)){var v=typeof o.valueOf=="function"?o.valueOf():o;o=Pn(v)?v+"":v}if(typeof o!="string")return o===0?o:+o;o=wn(o);var M=Mo.test(o);return M||ce.test(o)?bn(o.slice(2),M?2:8):Ot.test(o)?Q:+o}function q0(o){return ko(o,bi(o))}function a2(o){return o?Vs(It(o),-U,U):o===0?o:0}function sn(o){return o==null?"":Ei(o)}var l2=$a(function(o,v){if(Cl(v)||yi(v)){ko(v,$r(v),o);return}for(var M in v)cn.call(v,M)&&ml(o,M,v[M])}),K0=$a(function(o,v){ko(v,bi(v),o)}),uu=$a(function(o,v,M,j){ko(v,bi(v),o,j)}),c2=$a(function(o,v,M,j){ko(v,$r(v),o,j)}),u2=Ho(Pd);function h2(o,v){var M=_a(o);return v==null?M:Sb(M,v)}var d2=Dt(function(o,v){o=Et(o);var M=-1,j=v.length,G=j>2?v[2]:e;for(G&&ni(v[0],v[1],G)&&(j=1);++M<j;)for(var te=v[M],ue=bi(te),pe=-1,ye=ue.length;++pe<ye;){var Ee=ue[pe],Re=o[Ee];(Re===e||lo(Re,Vn[Ee])&&!cn.call(o,Ee))&&(o[Ee]=te[Ee])}return o}),p2=Dt(function(o){return o.push(e,u0),kr(G0,e,o)});function f2(o,v){return Z(o,gt(v,3),Co)}function g2(o,v){return Z(o,gt(v,3),Wd)}function m2(o,v){return o==null?o:Fd(o,gt(v,3),bi)}function v2(o,v){return o==null?o:Ib(o,gt(v,3),bi)}function y2(o,v){return o&&Co(o,gt(v,3))}function b2(o,v){return o&&Wd(o,gt(v,3))}function w2(o){return o==null?[]:Vc(o,$r(o))}function x2(o){return o==null?[]:Vc(o,bi(o))}function vp(o,v,M){var j=o==null?e:qs(o,v);return j===e?M:j}function C2(o,v){return o!=null&&p0(o,v,VE)}function yp(o,v){return o!=null&&p0(o,v,qE)}var k2=o0(function(o,v,M){v!=null&&typeof v.toString!="function"&&(v=Rc.call(v)),o[v]=M},wp(wi)),A2=o0(function(o,v,M){v!=null&&typeof v.toString!="function"&&(v=Rc.call(v)),cn.call(o,v)?o[v].push(M):o[v]=[M]},gt),S2=Dt(yl);function $r(o){return yi(o)?kb(o):jd(o)}function bi(o){return yi(o)?kb(o,!0):nR(o)}function _2(o,v){var M={};return v=gt(v,3),Co(o,function(j,G,te){Bo(M,v(j,G,te),j)}),M}function $2(o,v){var M={};return v=gt(v,3),Co(o,function(j,G,te){Bo(M,G,v(j,G,te))}),M}var T2=$a(function(o,v,M){qc(o,v,M)}),G0=$a(function(o,v,M,j){qc(o,v,M,j)}),M2=Ho(function(o,v){var M={};if(o==null)return M;var j=!1;v=y(v,function(te){return te=ps(te,o),j||(j=te.length>1),te}),ko(o,rp(o),M),j&&(M=qi(M,l|u|c,kR));for(var G=v.length;G--;)Yd(M,v[G]);return M});function I2(o,v){return Y0(o,au(gt(v)))}var E2=Ho(function(o,v){return o==null?{}:iR(o,v)});function Y0(o,v){if(o==null)return{};var M=y(rp(o),function(j){return[j]});return v=gt(v),Bb(o,M,function(j,G){return v(j,G[0])})}function R2(o,v,M){v=ps(v,o);var j=-1,G=v.length;for(G||(G=1,o=e);++j<G;){var te=o==null?e:o[Ao(v[j])];te===e&&(j=G,te=M),o=Uo(te)?te.call(o):te}return o}function L2(o,v,M){return o==null?o:wl(o,v,M)}function O2(o,v,M,j){return j=typeof j=="function"?j:e,o==null?o:wl(o,v,M,j)}var X0=l0($r),Z0=l0(bi);function N2(o,v,M){var j=kt(o),G=j||gs(o)||Ia(o);if(v=gt(v,4),M==null){var te=o&&o.constructor;G?M=j?new te:[]:Pn(o)?M=Uo(te)?_a(Nc(o)):{}:M={}}return(G?Ir:Co)(o,function(ue,pe,ye){return v(M,ue,pe,ye)}),M}function D2(o,v){return o==null?!0:Yd(o,v)}function P2(o,v,M){return o==null?o:Vb(o,v,Qd(M))}function F2(o,v,M,j){return j=typeof j=="function"?j:e,o==null?o:Vb(o,v,Qd(M),j)}function Ea(o){return o==null?[]:Mn(o,$r(o))}function W2(o){return o==null?[]:Mn(o,bi(o))}function B2(o,v,M){return M===e&&(M=v,v=e),M!==e&&(M=Yi(M),M=M===M?M:0),v!==e&&(v=Yi(v),v=v===v?v:0),Vs(Yi(o),v,M)}function z2(o,v,M){return v=Vo(v),M===e?(M=v,v=0):M=Vo(M),o=Yi(o),KE(o,v,M)}function H2(o,v,M){if(M&&typeof M!="boolean"&&ni(o,v,M)&&(v=M=e),M===e&&(typeof v=="boolean"?(M=v,v=e):typeof o=="boolean"&&(M=o,o=e)),o===e&&v===e?(o=0,v=1):(o=Vo(o),v===e?(v=o,o=0):v=Vo(v)),o>v){var j=o;o=v,v=j}if(M||o%1||v%1){var G=xb();return Br(o+G*(v-o+He("1e-"+((G+"").length-1))),v)}return qd(o,v)}var j2=Ta(function(o,v,M){return v=v.toLowerCase(),o+(M?Q0(v):v)});function Q0(o){return bp(sn(o).toLowerCase())}function J0(o){return o=sn(o),o&&o.replace(Pe,In).replace(No,"")}function U2(o,v,M){o=sn(o),v=Ei(v);var j=o.length;M=M===e?j:Vs(It(M),0,j);var G=M;return M-=v.length,M>=0&&o.slice(M,G)==v}function V2(o){return o=sn(o),o&&Os.test(o)?o.replace(ro,V):o}function q2(o){return o=sn(o),o&&pi.test(o)?o.replace(dr,"\\$&"):o}var K2=Ta(function(o,v,M){return o+(M?"-":"")+v.toLowerCase()}),G2=Ta(function(o,v,M){return o+(M?" ":"")+v.toLowerCase()}),Y2=n0("toLowerCase");function X2(o,v,M){o=sn(o),v=It(v);var j=v?Pt(o):0;if(!v||j>=v)return o;var G=(v-j)/2;return Qc(Wc(G),M)+o+Qc(Fc(G),M)}function Z2(o,v,M){o=sn(o),v=It(v);var j=v?Pt(o):0;return v&&j<v?o+Qc(v-j,M):o}function Q2(o,v,M){o=sn(o),v=It(v);var j=v?Pt(o):0;return v&&j<v?Qc(v-j,M)+o:o}function J2(o,v,M){return M||v==null?v=0:v&&(v=+v),sE(sn(o).replace(An,""),v||0)}function eN(o,v,M){return(M?ni(o,v,M):v===e)?v=1:v=It(v),Kd(sn(o),v)}function tN(){var o=arguments,v=sn(o[0]);return o.length<3?v:v.replace(o[1],o[2])}var nN=Ta(function(o,v,M){return o+(M?"_":"")+v.toLowerCase()});function rN(o,v,M){return M&&typeof M!="number"&&ni(o,v,M)&&(v=M=e),M=M===e?J:M>>>0,M?(o=sn(o),o&&(typeof v=="string"||v!=null&&!mp(v))&&(v=Ei(v),!v&&oe(o))?fs(Ct(o),0,M):o.split(v,M)):[]}var iN=Ta(function(o,v,M){return o+(M?" ":"")+bp(v)});function oN(o,v,M){return o=sn(o),M=M==null?0:Vs(It(M),0,o.length),v=Ei(v),o.slice(M,M+v.length)==v}function sN(o,v,M){var j=ee.templateSettings;M&&ni(o,v,M)&&(v=e),o=sn(o),v=uu({},v,j,c0);var G=uu({},v.imports,j.imports,c0),te=$r(G),ue=Mn(G,te),pe,ye,Ee=0,Re=v.interpolate||_t,De="__p += '",Ye=ei((v.escape||_t).source+"|"+Re.source+"|"+(Re===hi?gi:_t).source+"|"+(v.evaluate||_t).source+"|$","g"),rt="//# sourceURL="+(cn.call(v,"sourceURL")?(v.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++xo+"]")+`
1472
- `;o.replace(Ye,function(vt,Bt,qt,Li,ri,Oi){return qt||(qt=Li),De+=o.slice(Ee,Oi).replace(Gt,X),Bt&&(pe=!0,De+=`' +
1471
+ `)}function RR(o){return kt(o)||Ys(o)||!!(bb&&o&&o[bb])}function jo(o,v){var M=typeof o;return v=v??U,!!v&&(M=="number"||M!="symbol"&&ze.test(o))&&o>-1&&o%1==0&&o<v}function ni(o,v,M){if(!Pn(M))return!1;var j=typeof v;return(j=="number"?yi(M)&&jo(v,M.length):j=="string"&&v in M)?lo(M[v],o):!1}function ap(o,v){if(kt(o))return!1;var M=typeof o;return M=="number"||M=="symbol"||M=="boolean"||o==null||Ri(o)?!0:di.test(o)||!Jo.test(o)||v!=null&&o in Et(v)}function LR(o){var v=typeof o;return v=="string"||v=="number"||v=="symbol"||v=="boolean"?o!=="__proto__":o===null}function lp(o){var v=eu(o),M=ee[v];if(typeof M!="function"||!(v in Vt.prototype))return!1;if(o===M)return!0;var j=ip(M);return!!j&&o===j[0]}function OR(o){return!!gb&&gb in o}var NR=zs?Uo:Sp;function Cl(o){var v=o&&o.constructor,M=typeof v=="function"&&v.prototype||Vn;return o===M}function g0(o){return o===o&&!Pn(o)}function m0(o,v){return function(M){return M==null?!1:M[o]===v&&(v!==e||o in Et(M))}}function DR(o){var v=su(o,function(j){return M.size===d&&M.clear(),j}),M=v.cache;return v}function PR(o,v){var M=o[1],j=v[1],G=M|j,te=G<(p|b|L),ue=j==L&&M==I||j==L&&M==D&&o[7].length<=v[8]||j==(L|D)&&v[7].length<=v[8]&&M==I;if(!(te||ue))return o;j&p&&(o[2]=v[2],G|=M&p?0:x);var pe=v[3];if(pe){var ye=o[3];o[3]=ye?Qb(ye,pe,v[4]):pe,o[4]=ye?Be(o[3],a):v[4]}return pe=v[5],pe&&(ye=o[5],o[5]=ye?Jb(ye,pe,v[6]):pe,o[6]=ye?Be(o[5],a):v[6]),pe=v[7],pe&&(o[7]=pe),j&L&&(o[8]=o[8]==null?v[8]:Br(o[8],v[8])),o[9]==null&&(o[9]=v[9]),o[0]=v[0],o[1]=G,o}function FR(o){var v=[];if(o!=null)for(var M in Et(o))v.push(M);return v}function WR(o){return Rc.call(o)}function v0(o,v,M){return v=mr(v===e?o.length-1:v,0),function(){for(var j=arguments,G=-1,te=mr(j.length-v,0),ue=Ce(te);++G<te;)ue[G]=j[v+G];G=-1;for(var pe=Ce(v+1);++G<v;)pe[G]=j[G];return pe[v]=M(ue),kr(o,this,pe)}}function y0(o,v){return v.length<2?o:qs(o,Ki(v,0,-1))}function BR(o,v){for(var M=o.length,j=Br(v.length,M),G=vi(o);j--;){var te=v[j];o[j]=jo(te,M)?G[te]:e}return o}function cp(o,v){if(!(v==="constructor"&&typeof o[v]=="function")&&v!="__proto__")return o[v]}var b0=x0(Hb),kl=tE||function(o,v){return hn.setTimeout(o,v)},up=x0(cR);function w0(o,v,M){var j=v+"";return up(o,ER(j,zR(TR(j),M)))}function x0(o){var v=0,M=0;return function(){var j=oE(),G=O-(j-M);if(M=j,G>0){if(++v>=F)return arguments[0]}else v=0;return o.apply(e,arguments)}}function nu(o,v){var M=-1,j=o.length,G=j-1;for(v=v===e?j:v;++M<v;){var te=qd(M,G),ue=o[te];o[te]=o[M],o[M]=ue}return o.length=v,o}var C0=DR(function(o){var v=[];return o.charCodeAt(0)===46&&v.push(""),o.replace(An,function(M,j,G,te){v.push(G?te.replace(Zr,"$1"):j||M)}),v});function So(o){if(typeof o=="string"||Ri(o))return o;var v=o+"";return v=="0"&&1/o==-B?"-0":v}function Gs(o){if(o!=null){try{return Ec.call(o)}catch{}try{return o+""}catch{}}return""}function zR(o,v){return Ir(le,function(M){var j="_."+M[0];v&M[1]&&!Mi(o,j)&&o.push(j)}),o.sort()}function k0(o){if(o instanceof Vt)return o.clone();var v=new Vi(o.__wrapped__,o.__chain__);return v.__actions__=vi(o.__actions__),v.__index__=o.__index__,v.__values__=o.__values__,v}function HR(o,v,M){(M?ni(o,v,M):v===e)?v=1:v=mr(It(v),0);var j=o==null?0:o.length;if(!j||v<1)return[];for(var G=0,te=0,ue=Ce(Fc(j/v));G<j;)ue[te++]=Ki(o,G,G+=v);return ue}function jR(o){for(var v=-1,M=o==null?0:o.length,j=0,G=[];++v<M;){var te=o[v];te&&(G[j++]=te)}return G}function UR(){var o=arguments.length;if(!o)return[];for(var v=Ce(o-1),M=arguments[0],j=o;j--;)v[j-1]=arguments[j];return T(kt(M)?vi(M):[M],Rr(v,1))}var VR=Dt(function(o,v){return Qn(o)?vl(o,Rr(v,1,Qn,!0)):[]}),qR=Dt(function(o,v){var M=Gi(v);return Qn(M)&&(M=e),Qn(o)?vl(o,Rr(v,1,Qn,!0),gt(M,2)):[]}),KR=Dt(function(o,v){var M=Gi(v);return Qn(M)&&(M=e),Qn(o)?vl(o,Rr(v,1,Qn,!0),e,M):[]});function GR(o,v,M){var j=o==null?0:o.length;return j?(v=M||v===e?1:It(v),Ki(o,v<0?0:v,j)):[]}function YR(o,v,M){var j=o==null?0:o.length;return j?(v=M||v===e?1:It(v),v=j-v,Ki(o,0,v<0?0:v)):[]}function XR(o,v){return o&&o.length?Gc(o,gt(v,3),!0,!0):[]}function ZR(o,v){return o&&o.length?Gc(o,gt(v,3),!0):[]}function QR(o,v,M,j){var G=o==null?0:o.length;return G?(M&&typeof M!="number"&&ni(o,v,M)&&(M=0,j=G),UE(o,v,M,j)):[]}function A0(o,v,M){var j=o==null?0:o.length;if(!j)return-1;var G=M==null?0:It(M);return G<0&&(G=mr(j+G,0)),re(o,gt(v,3),G)}function S0(o,v,M){var j=o==null?0:o.length;if(!j)return-1;var G=j-1;return M!==e&&(G=It(M),G=M<0?mr(j+G,0):Br(G,j-1)),re(o,gt(v,3),G,!0)}function _0(o){var v=o==null?0:o.length;return v?Rr(o,1):[]}function JR(o){var v=o==null?0:o.length;return v?Rr(o,B):[]}function eL(o,v){var M=o==null?0:o.length;return M?(v=v===e?1:It(v),Rr(o,v)):[]}function tL(o){for(var v=-1,M=o==null?0:o.length,j={};++v<M;){var G=o[v];j[G[0]]=G[1]}return j}function $0(o){return o&&o.length?o[0]:e}function nL(o,v,M){var j=o==null?0:o.length;if(!j)return-1;var G=M==null?0:It(M);return G<0&&(G=mr(j+G,0)),ae(o,v,G)}function rL(o){var v=o==null?0:o.length;return v?Ki(o,0,-1):[]}var iL=Dt(function(o){var v=y(o,Zd);return v.length&&v[0]===o[0]?zd(v):[]}),oL=Dt(function(o){var v=Gi(o),M=y(o,Zd);return v===Gi(M)?v=e:M.pop(),M.length&&M[0]===o[0]?zd(M,gt(v,2)):[]}),sL=Dt(function(o){var v=Gi(o),M=y(o,Zd);return v=typeof v=="function"?v:e,v&&M.pop(),M.length&&M[0]===o[0]?zd(M,e,v):[]});function aL(o,v){return o==null?"":rE.call(o,v)}function Gi(o){var v=o==null?0:o.length;return v?o[v-1]:e}function lL(o,v,M){var j=o==null?0:o.length;if(!j)return-1;var G=j;return M!==e&&(G=It(M),G=G<0?mr(j+G,0):Br(G,j-1)),v===v?wt(o,v,G):re(o,ke,G,!0)}function cL(o,v){return o&&o.length?Fb(o,It(v)):e}var uL=Dt(T0);function T0(o,v){return o&&o.length&&v&&v.length?Vd(o,v):o}function hL(o,v,M){return o&&o.length&&v&&v.length?Vd(o,v,gt(M,2)):o}function dL(o,v,M){return o&&o.length&&v&&v.length?Vd(o,v,e,M):o}var pL=Ho(function(o,v){var M=o==null?0:o.length,j=Pd(o,v);return zb(o,y(v,function(G){return jo(G,M)?+G:G}).sort(Zb)),j});function fL(o,v){var M=[];if(!(o&&o.length))return M;var j=-1,G=[],te=o.length;for(v=gt(v,3);++j<te;){var ue=o[j];v(ue,j,o)&&(M.push(ue),G.push(j))}return zb(o,G),M}function hp(o){return o==null?o:aE.call(o)}function gL(o,v,M){var j=o==null?0:o.length;return j?(M&&typeof M!="number"&&ni(o,v,M)?(v=0,M=j):(v=v==null?0:It(v),M=M===e?j:It(M)),Ki(o,v,M)):[]}function mL(o,v){return Kc(o,v)}function vL(o,v,M){return Gd(o,v,gt(M,2))}function yL(o,v){var M=o==null?0:o.length;if(M){var j=Kc(o,v);if(j<M&&lo(o[j],v))return j}return-1}function bL(o,v){return Kc(o,v,!0)}function wL(o,v,M){return Gd(o,v,gt(M,2),!0)}function xL(o,v){var M=o==null?0:o.length;if(M){var j=Kc(o,v,!0)-1;if(lo(o[j],v))return j}return-1}function CL(o){return o&&o.length?jb(o):[]}function kL(o,v){return o&&o.length?jb(o,gt(v,2)):[]}function AL(o){var v=o==null?0:o.length;return v?Ki(o,1,v):[]}function SL(o,v,M){return o&&o.length?(v=M||v===e?1:It(v),Ki(o,0,v<0?0:v)):[]}function _L(o,v,M){var j=o==null?0:o.length;return j?(v=M||v===e?1:It(v),v=j-v,Ki(o,v<0?0:v,j)):[]}function $L(o,v){return o&&o.length?Gc(o,gt(v,3),!1,!0):[]}function TL(o,v){return o&&o.length?Gc(o,gt(v,3)):[]}var ML=Dt(function(o){return ds(Rr(o,1,Qn,!0))}),IL=Dt(function(o){var v=Gi(o);return Qn(v)&&(v=e),ds(Rr(o,1,Qn,!0),gt(v,2))}),EL=Dt(function(o){var v=Gi(o);return v=typeof v=="function"?v:e,ds(Rr(o,1,Qn,!0),e,v)});function RL(o){return o&&o.length?ds(o):[]}function LL(o,v){return o&&o.length?ds(o,gt(v,2)):[]}function OL(o,v){return v=typeof v=="function"?v:e,o&&o.length?ds(o,e,v):[]}function dp(o){if(!(o&&o.length))return[];var v=0;return o=Wr(o,function(M){if(Qn(M))return v=mr(M.length,v),!0}),Qe(v,function(M){return y(o,we(M))})}function M0(o,v){if(!(o&&o.length))return[];var M=dp(o);return v==null?M:y(M,function(j){return kr(v,e,j)})}var NL=Dt(function(o,v){return Qn(o)?vl(o,v):[]}),DL=Dt(function(o){return Xd(Wr(o,Qn))}),PL=Dt(function(o){var v=Gi(o);return Qn(v)&&(v=e),Xd(Wr(o,Qn),gt(v,2))}),FL=Dt(function(o){var v=Gi(o);return v=typeof v=="function"?v:e,Xd(Wr(o,Qn),e,v)}),WL=Dt(dp);function BL(o,v){return Kb(o||[],v||[],ml)}function zL(o,v){return Kb(o||[],v||[],wl)}var HL=Dt(function(o){var v=o.length,M=v>1?o[v-1]:e;return M=typeof M=="function"?(o.pop(),M):e,M0(o,M)});function I0(o){var v=ee(o);return v.__chain__=!0,v}function jL(o,v){return v(o),o}function ru(o,v){return v(o)}var UL=Ho(function(o){var v=o.length,M=v?o[0]:0,j=this.__wrapped__,G=function(te){return Pd(te,o)};return v>1||this.__actions__.length||!(j instanceof Vt)||!jo(M)?this.thru(G):(j=j.slice(M,+M+(v?1:0)),j.__actions__.push({func:ru,args:[G],thisArg:e}),new Vi(j,this.__chain__).thru(function(te){return v&&!te.length&&te.push(e),te}))});function VL(){return I0(this)}function qL(){return new Vi(this.value(),this.__chain__)}function KL(){this.__values__===e&&(this.__values__=U0(this.value()));var o=this.__index__>=this.__values__.length,v=o?e:this.__values__[this.__index__++];return{done:o,value:v}}function GL(){return this}function YL(o){for(var v,M=this;M instanceof Hc;){var j=k0(M);j.__index__=0,j.__values__=e,v?G.__wrapped__=j:v=j;var G=j;M=M.__wrapped__}return G.__wrapped__=o,v}function XL(){var o=this.__wrapped__;if(o instanceof Vt){var v=o;return this.__actions__.length&&(v=new Vt(this)),v=v.reverse(),v.__actions__.push({func:ru,args:[hp],thisArg:e}),new Vi(v,this.__chain__)}return this.thru(hp)}function ZL(){return qb(this.__wrapped__,this.__actions__)}var QL=Yc(function(o,v,M){cn.call(o,M)?++o[M]:Bo(o,M,1)});function JL(o,v,M){var j=kt(o)?Er:jE;return M&&ni(o,v,M)&&(v=e),j(o,gt(v,3))}function eO(o,v){var M=kt(o)?Wr:Mb;return M(o,gt(v,3))}var tO=r0(A0),nO=r0(S0);function rO(o,v){return Rr(iu(o,v),1)}function iO(o,v){return Rr(iu(o,v),B)}function oO(o,v,M){return M=M===e?1:It(M),Rr(iu(o,v),M)}function E0(o,v){var M=kt(o)?Ir:hs;return M(o,gt(v,3))}function R0(o,v){var M=kt(o)?Bs:Tb;return M(o,gt(v,3))}var sO=Yc(function(o,v,M){cn.call(o,M)?o[M].push(v):Bo(o,M,[v])});function aO(o,v,M,j){o=yi(o)?o:Ea(o),M=M&&!j?It(M):0;var G=o.length;return M<0&&(M=mr(G+M,0)),cu(o)?M<=G&&o.indexOf(v,M)>-1:!!G&&ae(o,v,M)>-1}var lO=Dt(function(o,v,M){var j=-1,G=typeof v=="function",te=yi(o)?Ce(o.length):[];return hs(o,function(ue){te[++j]=G?kr(v,ue,M):yl(ue,v,M)}),te}),cO=Yc(function(o,v,M){Bo(o,M,v)});function iu(o,v){var M=kt(o)?y:Nb;return M(o,gt(v,3))}function uO(o,v,M,j){return o==null?[]:(kt(v)||(v=v==null?[]:[v]),M=j?e:M,kt(M)||(M=M==null?[]:[M]),Wb(o,v,M))}var hO=Yc(function(o,v,M){o[M?0:1].push(v)},function(){return[[],[]]});function dO(o,v,M){var j=kt(o)?S:Le,G=arguments.length<3;return j(o,gt(v,4),M,G,hs)}function pO(o,v,M){var j=kt(o)?P:Le,G=arguments.length<3;return j(o,gt(v,4),M,G,Tb)}function fO(o,v){var M=kt(o)?Wr:Mb;return M(o,au(gt(v,3)))}function gO(o){var v=kt(o)?Ab:aR;return v(o)}function mO(o,v,M){(M?ni(o,v,M):v===e)?v=1:v=It(v);var j=kt(o)?FE:lR;return j(o,v)}function vO(o){var v=kt(o)?WE:uR;return v(o)}function yO(o){if(o==null)return 0;if(yi(o))return cu(o)?Ft(o):o.length;var v=zr(o);return v==tt||v==On?o.size:jd(o).length}function bO(o,v,M){var j=kt(o)?W:hR;return M&&ni(o,v,M)&&(v=e),j(o,gt(v,3))}var wO=Dt(function(o,v){if(o==null)return[];var M=v.length;return M>1&&ni(o,v[0],v[1])?v=[]:M>2&&ni(v[0],v[1],v[2])&&(v=[v[0]]),Wb(o,Rr(v,1),[])}),ou=eE||function(){return hn.Date.now()};function xO(o,v){if(typeof v!="function")throw new dn(m);return o=It(o),function(){if(--o<1)return v.apply(this,arguments)}}function L0(o,v,M){return v=M?e:v,v=o&&v==null?o.length:v,zo(o,L,e,e,e,e,v)}function O0(o,v){var M;if(typeof v!="function")throw new dn(m);return o=It(o),function(){return--o>0&&(M=v.apply(this,arguments)),o<=1&&(v=e),M}}var pp=Dt(function(o,v,M){var j=p;if(M.length){var G=Be(M,Ma(pp));j|=k}return zo(o,j,v,M,G)}),N0=Dt(function(o,v,M){var j=p|b;if(M.length){var G=Be(M,Ma(N0));j|=k}return zo(v,j,o,M,G)});function D0(o,v,M){v=M?e:v;var j=zo(o,I,e,e,e,e,e,v);return j.placeholder=D0.placeholder,j}function P0(o,v,M){v=M?e:v;var j=zo(o,_,e,e,e,e,e,v);return j.placeholder=P0.placeholder,j}function F0(o,v,M){var j,G,te,ue,pe,ye,Ee=0,Re=!1,De=!1,Ye=!0;if(typeof o!="function")throw new dn(m);v=Yi(v)||0,Pn(M)&&(Re=!!M.leading,De="maxWait"in M,te=De?mr(Yi(M.maxWait)||0,v):te,Ye="trailing"in M?!!M.trailing:Ye);function rt(Jn){var co=j,qo=G;return j=G=e,Ee=Jn,ue=o.apply(qo,co),ue}function mt(Jn){return Ee=Jn,pe=kl(Bt,v),Re?rt(Jn):ue}function Rt(Jn){var co=Jn-ye,qo=Jn-Ee,rw=v-co;return De?Br(rw,te-qo):rw}function vt(Jn){var co=Jn-ye,qo=Jn-Ee;return ye===e||co>=v||co<0||De&&qo>=te}function Bt(){var Jn=ou();if(vt(Jn))return Kt(Jn);pe=kl(Bt,Rt(Jn))}function Kt(Jn){return pe=e,Ye&&j?rt(Jn):(j=G=e,ue)}function Li(){pe!==e&&Gb(pe),Ee=0,j=ye=G=pe=e}function ri(){return pe===e?ue:Kt(ou())}function Oi(){var Jn=ou(),co=vt(Jn);if(j=arguments,G=this,ye=Jn,co){if(pe===e)return mt(ye);if(De)return Gb(pe),pe=kl(Bt,v),rt(ye)}return pe===e&&(pe=kl(Bt,v)),ue}return Oi.cancel=Li,Oi.flush=ri,Oi}var CO=Dt(function(o,v){return $b(o,1,v)}),kO=Dt(function(o,v,M){return $b(o,Yi(v)||0,M)});function AO(o){return zo(o,R)}function su(o,v){if(typeof o!="function"||v!=null&&typeof v!="function")throw new dn(m);var M=function(){var j=arguments,G=v?v.apply(this,j):j[0],te=M.cache;if(te.has(G))return te.get(G);var ue=o.apply(this,j);return M.cache=te.set(G,ue)||te,ue};return M.cache=new(su.Cache||Wo),M}su.Cache=Wo;function au(o){if(typeof o!="function")throw new dn(m);return function(){var v=arguments;switch(v.length){case 0:return!o.call(this);case 1:return!o.call(this,v[0]);case 2:return!o.call(this,v[0],v[1]);case 3:return!o.call(this,v[0],v[1],v[2])}return!o.apply(this,v)}}function SO(o){return O0(2,o)}var _O=dR(function(o,v){v=v.length==1&&kt(v[0])?y(v[0],ut(gt())):y(Rr(v,1),ut(gt()));var M=v.length;return Dt(function(j){for(var G=-1,te=Br(j.length,M);++G<te;)j[G]=v[G].call(this,j[G]);return kr(o,this,j)})}),fp=Dt(function(o,v){var M=Be(v,Ma(fp));return zo(o,k,e,v,M)}),W0=Dt(function(o,v){var M=Be(v,Ma(W0));return zo(o,C,e,v,M)}),$O=Ho(function(o,v){return zo(o,D,e,e,e,v)});function TO(o,v){if(typeof o!="function")throw new dn(m);return v=v===e?v:It(v),Dt(o,v)}function MO(o,v){if(typeof o!="function")throw new dn(m);return v=v==null?0:mr(It(v),0),Dt(function(M){var j=M[v],G=fs(M,0,v);return j&&T(G,j),kr(o,this,G)})}function IO(o,v,M){var j=!0,G=!0;if(typeof o!="function")throw new dn(m);return Pn(M)&&(j="leading"in M?!!M.leading:j,G="trailing"in M?!!M.trailing:G),F0(o,v,{leading:j,maxWait:v,trailing:G})}function EO(o){return L0(o,1)}function RO(o,v){return fp(Qd(v),o)}function LO(){if(!arguments.length)return[];var o=arguments[0];return kt(o)?o:[o]}function OO(o){return qi(o,c)}function NO(o,v){return v=typeof v=="function"?v:e,qi(o,c,v)}function DO(o){return qi(o,l|c)}function PO(o,v){return v=typeof v=="function"?v:e,qi(o,l|c,v)}function FO(o,v){return v==null||_b(o,v,$r(v))}function lo(o,v){return o===v||o!==o&&v!==v}var WO=Jc(Bd),BO=Jc(function(o,v){return o>=v}),Ys=Rb(function(){return arguments}())?Rb:function(o){return qn(o)&&cn.call(o,"callee")&&!yb.call(o,"callee")},kt=Ce.isArray,zO=mi?ut(mi):YE;function yi(o){return o!=null&&lu(o.length)&&!Uo(o)}function Qn(o){return qn(o)&&yi(o)}function HO(o){return o===!0||o===!1||qn(o)&&ti(o)==_e}var gs=nE||Sp,jO=cs?ut(cs):XE;function UO(o){return qn(o)&&o.nodeType===1&&!Al(o)}function VO(o){if(o==null)return!0;if(yi(o)&&(kt(o)||typeof o=="string"||typeof o.splice=="function"||gs(o)||Ia(o)||Ys(o)))return!o.length;var v=zr(o);if(v==tt||v==On)return!o.size;if(Cl(o))return!jd(o).length;for(var M in o)if(cn.call(o,M))return!1;return!0}function qO(o,v){return bl(o,v)}function KO(o,v,M){M=typeof M=="function"?M:e;var j=M?M(o,v):e;return j===e?bl(o,v,e,M):!!j}function gp(o){if(!qn(o))return!1;var v=ti(o);return v==Ze||v==Me||typeof o.message=="string"&&typeof o.name=="string"&&!Al(o)}function GO(o){return typeof o=="number"&&wb(o)}function Uo(o){if(!Pn(o))return!1;var v=ti(o);return v==Ge||v==lt||v==me||v==vr}function B0(o){return typeof o=="number"&&o==It(o)}function lu(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=U}function Pn(o){var v=typeof o;return o!=null&&(v=="object"||v=="function")}function qn(o){return o!=null&&typeof o=="object"}var z0=Un?ut(Un):QE;function YO(o,v){return o===v||Hd(o,v,op(v))}function XO(o,v,M){return M=typeof M=="function"?M:e,Hd(o,v,op(v),M)}function ZO(o){return H0(o)&&o!=+o}function QO(o){if(NR(o))throw new dt(g);return Lb(o)}function JO(o){return o===null}function e2(o){return o==null}function H0(o){return typeof o=="number"||qn(o)&&ti(o)==ct}function Al(o){if(!qn(o)||ti(o)!=Cn)return!1;var v=Nc(o);if(v===null)return!0;var M=cn.call(v,"constructor")&&v.constructor;return typeof M=="function"&&M instanceof M&&Ec.call(M)==XI}var mp=$i?ut($i):JE;function t2(o){return B0(o)&&o>=-U&&o<=U}var j0=Ti?ut(Ti):eR;function cu(o){return typeof o=="string"||!kt(o)&&qn(o)&&ti(o)==Xn}function Ri(o){return typeof o=="symbol"||qn(o)&&ti(o)==Mr}var Ia=ji?ut(ji):tR;function n2(o){return o===e}function r2(o){return qn(o)&&zr(o)==je}function i2(o){return qn(o)&&ti(o)==Lt}var o2=Jc(Ud),s2=Jc(function(o,v){return o<=v});function U0(o){if(!o)return[];if(yi(o))return cu(o)?Ct(o):vi(o);if(hl&&o[hl])return xe(o[hl]());var v=zr(o),M=v==tt?Ie:v==On?Ke:Ea;return M(o)}function Vo(o){if(!o)return o===0?o:0;if(o=Yi(o),o===B||o===-B){var v=o<0?-1:1;return v*K}return o===o?o:0}function It(o){var v=Vo(o),M=v%1;return v===v?M?v-M:v:0}function V0(o){return o?Vs(It(o),0,J):0}function Yi(o){if(typeof o=="number")return o;if(Ri(o))return Q;if(Pn(o)){var v=typeof o.valueOf=="function"?o.valueOf():o;o=Pn(v)?v+"":v}if(typeof o!="string")return o===0?o:+o;o=wn(o);var M=Mo.test(o);return M||ce.test(o)?bn(o.slice(2),M?2:8):Ot.test(o)?Q:+o}function q0(o){return Ao(o,bi(o))}function a2(o){return o?Vs(It(o),-U,U):o===0?o:0}function sn(o){return o==null?"":Ei(o)}var l2=$a(function(o,v){if(Cl(v)||yi(v)){Ao(v,$r(v),o);return}for(var M in v)cn.call(v,M)&&ml(o,M,v[M])}),K0=$a(function(o,v){Ao(v,bi(v),o)}),uu=$a(function(o,v,M,j){Ao(v,bi(v),o,j)}),c2=$a(function(o,v,M,j){Ao(v,$r(v),o,j)}),u2=Ho(Pd);function h2(o,v){var M=_a(o);return v==null?M:Sb(M,v)}var d2=Dt(function(o,v){o=Et(o);var M=-1,j=v.length,G=j>2?v[2]:e;for(G&&ni(v[0],v[1],G)&&(j=1);++M<j;)for(var te=v[M],ue=bi(te),pe=-1,ye=ue.length;++pe<ye;){var Ee=ue[pe],Re=o[Ee];(Re===e||lo(Re,Vn[Ee])&&!cn.call(o,Ee))&&(o[Ee]=te[Ee])}return o}),p2=Dt(function(o){return o.push(e,u0),kr(G0,e,o)});function f2(o,v){return Z(o,gt(v,3),ko)}function g2(o,v){return Z(o,gt(v,3),Wd)}function m2(o,v){return o==null?o:Fd(o,gt(v,3),bi)}function v2(o,v){return o==null?o:Ib(o,gt(v,3),bi)}function y2(o,v){return o&&ko(o,gt(v,3))}function b2(o,v){return o&&Wd(o,gt(v,3))}function w2(o){return o==null?[]:Vc(o,$r(o))}function x2(o){return o==null?[]:Vc(o,bi(o))}function vp(o,v,M){var j=o==null?e:qs(o,v);return j===e?M:j}function C2(o,v){return o!=null&&p0(o,v,VE)}function yp(o,v){return o!=null&&p0(o,v,qE)}var k2=o0(function(o,v,M){v!=null&&typeof v.toString!="function"&&(v=Rc.call(v)),o[v]=M},wp(wi)),A2=o0(function(o,v,M){v!=null&&typeof v.toString!="function"&&(v=Rc.call(v)),cn.call(o,v)?o[v].push(M):o[v]=[M]},gt),S2=Dt(yl);function $r(o){return yi(o)?kb(o):jd(o)}function bi(o){return yi(o)?kb(o,!0):nR(o)}function _2(o,v){var M={};return v=gt(v,3),ko(o,function(j,G,te){Bo(M,v(j,G,te),j)}),M}function $2(o,v){var M={};return v=gt(v,3),ko(o,function(j,G,te){Bo(M,G,v(j,G,te))}),M}var T2=$a(function(o,v,M){qc(o,v,M)}),G0=$a(function(o,v,M,j){qc(o,v,M,j)}),M2=Ho(function(o,v){var M={};if(o==null)return M;var j=!1;v=y(v,function(te){return te=ps(te,o),j||(j=te.length>1),te}),Ao(o,rp(o),M),j&&(M=qi(M,l|u|c,kR));for(var G=v.length;G--;)Yd(M,v[G]);return M});function I2(o,v){return Y0(o,au(gt(v)))}var E2=Ho(function(o,v){return o==null?{}:iR(o,v)});function Y0(o,v){if(o==null)return{};var M=y(rp(o),function(j){return[j]});return v=gt(v),Bb(o,M,function(j,G){return v(j,G[0])})}function R2(o,v,M){v=ps(v,o);var j=-1,G=v.length;for(G||(G=1,o=e);++j<G;){var te=o==null?e:o[So(v[j])];te===e&&(j=G,te=M),o=Uo(te)?te.call(o):te}return o}function L2(o,v,M){return o==null?o:wl(o,v,M)}function O2(o,v,M,j){return j=typeof j=="function"?j:e,o==null?o:wl(o,v,M,j)}var X0=l0($r),Z0=l0(bi);function N2(o,v,M){var j=kt(o),G=j||gs(o)||Ia(o);if(v=gt(v,4),M==null){var te=o&&o.constructor;G?M=j?new te:[]:Pn(o)?M=Uo(te)?_a(Nc(o)):{}:M={}}return(G?Ir:ko)(o,function(ue,pe,ye){return v(M,ue,pe,ye)}),M}function D2(o,v){return o==null?!0:Yd(o,v)}function P2(o,v,M){return o==null?o:Vb(o,v,Qd(M))}function F2(o,v,M,j){return j=typeof j=="function"?j:e,o==null?o:Vb(o,v,Qd(M),j)}function Ea(o){return o==null?[]:In(o,$r(o))}function W2(o){return o==null?[]:In(o,bi(o))}function B2(o,v,M){return M===e&&(M=v,v=e),M!==e&&(M=Yi(M),M=M===M?M:0),v!==e&&(v=Yi(v),v=v===v?v:0),Vs(Yi(o),v,M)}function z2(o,v,M){return v=Vo(v),M===e?(M=v,v=0):M=Vo(M),o=Yi(o),KE(o,v,M)}function H2(o,v,M){if(M&&typeof M!="boolean"&&ni(o,v,M)&&(v=M=e),M===e&&(typeof v=="boolean"?(M=v,v=e):typeof o=="boolean"&&(M=o,o=e)),o===e&&v===e?(o=0,v=1):(o=Vo(o),v===e?(v=o,o=0):v=Vo(v)),o>v){var j=o;o=v,v=j}if(M||o%1||v%1){var G=xb();return Br(o+G*(v-o+He("1e-"+((G+"").length-1))),v)}return qd(o,v)}var j2=Ta(function(o,v,M){return v=v.toLowerCase(),o+(M?Q0(v):v)});function Q0(o){return bp(sn(o).toLowerCase())}function J0(o){return o=sn(o),o&&o.replace(Pe,En).replace(No,"")}function U2(o,v,M){o=sn(o),v=Ei(v);var j=o.length;M=M===e?j:Vs(It(M),0,j);var G=M;return M-=v.length,M>=0&&o.slice(M,G)==v}function V2(o){return o=sn(o),o&&Os.test(o)?o.replace(ro,V):o}function q2(o){return o=sn(o),o&&pi.test(o)?o.replace(dr,"\\$&"):o}var K2=Ta(function(o,v,M){return o+(M?"-":"")+v.toLowerCase()}),G2=Ta(function(o,v,M){return o+(M?" ":"")+v.toLowerCase()}),Y2=n0("toLowerCase");function X2(o,v,M){o=sn(o),v=It(v);var j=v?Ft(o):0;if(!v||j>=v)return o;var G=(v-j)/2;return Qc(Wc(G),M)+o+Qc(Fc(G),M)}function Z2(o,v,M){o=sn(o),v=It(v);var j=v?Ft(o):0;return v&&j<v?o+Qc(v-j,M):o}function Q2(o,v,M){o=sn(o),v=It(v);var j=v?Ft(o):0;return v&&j<v?Qc(v-j,M)+o:o}function J2(o,v,M){return M||v==null?v=0:v&&(v=+v),sE(sn(o).replace(Sn,""),v||0)}function eN(o,v,M){return(M?ni(o,v,M):v===e)?v=1:v=It(v),Kd(sn(o),v)}function tN(){var o=arguments,v=sn(o[0]);return o.length<3?v:v.replace(o[1],o[2])}var nN=Ta(function(o,v,M){return o+(M?"_":"")+v.toLowerCase()});function rN(o,v,M){return M&&typeof M!="number"&&ni(o,v,M)&&(v=M=e),M=M===e?J:M>>>0,M?(o=sn(o),o&&(typeof v=="string"||v!=null&&!mp(v))&&(v=Ei(v),!v&&oe(o))?fs(Ct(o),0,M):o.split(v,M)):[]}var iN=Ta(function(o,v,M){return o+(M?" ":"")+bp(v)});function oN(o,v,M){return o=sn(o),M=M==null?0:Vs(It(M),0,o.length),v=Ei(v),o.slice(M,M+v.length)==v}function sN(o,v,M){var j=ee.templateSettings;M&&ni(o,v,M)&&(v=e),o=sn(o),v=uu({},v,j,c0);var G=uu({},v.imports,j.imports,c0),te=$r(G),ue=In(G,te),pe,ye,Ee=0,Re=v.interpolate||_t,De="__p += '",Ye=ei((v.escape||_t).source+"|"+Re.source+"|"+(Re===hi?gi:_t).source+"|"+(v.evaluate||_t).source+"|$","g"),rt="//# sourceURL="+(cn.call(v,"sourceURL")?(v.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Co+"]")+`
1472
+ `;o.replace(Ye,function(vt,Bt,Kt,Li,ri,Oi){return Kt||(Kt=Li),De+=o.slice(Ee,Oi).replace(Yt,X),Bt&&(pe=!0,De+=`' +
1473
1473
  __e(`+Bt+`) +
1474
1474
  '`),ri&&(ye=!0,De+=`';
1475
1475
  `+ri+`;
1476
- __p += '`),qt&&(De+=`' +
1477
- ((__t = (`+qt+`)) == null ? '' : __t) +
1476
+ __p += '`),Kt&&(De+=`' +
1477
+ ((__t = (`+Kt+`)) == null ? '' : __t) +
1478
1478
  '`),Ee=Oi+vt.length,vt}),De+=`';
1479
1479
  `;var mt=cn.call(v,"variable")&&v.variable;if(!mt)De=`with (obj) {
1480
1480
  `+De+`
@@ -1485,24 +1485,24 @@ __p += '`),qt&&(De+=`' +
1485
1485
  function print() { __p += __j.call(arguments, '') }
1486
1486
  `:`;
1487
1487
  `)+De+`return __p
1488
- }`;var Rt=tw(function(){return Tt(te,rt+"return "+De).apply(e,ue)});if(Rt.source=De,gp(Rt))throw Rt;return Rt}function aN(o){return sn(o).toLowerCase()}function lN(o){return sn(o).toUpperCase()}function cN(o,v,M){if(o=sn(o),o&&(M||v===e))return wn(o);if(!o||!(v=Ei(v)))return o;var j=Ct(o),G=Ct(v),te=$t(j,G),ue=sr(j,G)+1;return fs(j,te,ue).join("")}function uN(o,v,M){if(o=sn(o),o&&(M||v===e))return o.slice(0,Nt(o)+1);if(!o||!(v=Ei(v)))return o;var j=Ct(o),G=sr(j,Ct(v))+1;return fs(j,0,G).join("")}function hN(o,v,M){if(o=sn(o),o&&(M||v===e))return o.replace(An,"");if(!o||!(v=Ei(v)))return o;var j=Ct(o),G=$t(j,Ct(v));return fs(j,G).join("")}function dN(o,v){var M=E,j=z;if(Pn(v)){var G="separator"in v?v.separator:G;M="length"in v?It(v.length):M,j="omission"in v?Ei(v.omission):j}o=sn(o);var te=o.length;if(oe(o)){var ue=Ct(o);te=ue.length}if(M>=te)return o;var pe=M-Pt(j);if(pe<1)return j;var ye=ue?fs(ue,0,pe).join(""):o.slice(0,pe);if(G===e)return ye+j;if(ue&&(pe+=ye.length-pe),mp(G)){if(o.slice(pe).search(G)){var Ee,Re=ye;for(G.global||(G=ei(G.source,sn(Pr.exec(G))+"g")),G.lastIndex=0;Ee=G.exec(Re);)var De=Ee.index;ye=ye.slice(0,De===e?pe:De)}}else if(o.indexOf(Ei(G),pe)!=pe){var Ye=ye.lastIndexOf(G);Ye>-1&&(ye=ye.slice(0,Ye))}return ye+j}function pN(o){return o=sn(o),o&&ui.test(o)?o.replace(Bn,ft):o}var fN=Ta(function(o,v,M){return o+(M?" ":"")+v.toUpperCase()}),bp=n0("toUpperCase");function ew(o,v,M){return o=sn(o),v=M?e:v,v===e?ge(o)?En(o):Y(o):o.match(v)||[]}var tw=Dt(function(o,v){try{return kr(o,e,v)}catch(M){return gp(M)?M:new dt(M)}}),gN=Ho(function(o,v){return Ir(v,function(M){M=Ao(M),Bo(o,M,pp(o[M],o))}),o});function mN(o){var v=o==null?0:o.length,M=gt();return o=v?y(o,function(j){if(typeof j[1]!="function")throw new dn(m);return[M(j[0]),j[1]]}):[],Dt(function(j){for(var G=-1;++G<v;){var te=o[G];if(kr(te[0],this,j))return kr(te[1],this,j)}})}function vN(o){return HE(qi(o,l))}function wp(o){return function(){return o}}function yN(o,v){return o==null||o!==o?v:o}var bN=i0(),wN=i0(!0);function wi(o){return o}function xp(o){return Ob(typeof o=="function"?o:qi(o,l))}function xN(o){return Db(qi(o,l))}function CN(o,v){return Pb(o,qi(v,l))}var kN=Dt(function(o,v){return function(M){return yl(M,o,v)}}),AN=Dt(function(o,v){return function(M){return yl(o,M,v)}});function Cp(o,v,M){var j=$r(v),G=Vc(v,j);M==null&&!(Pn(v)&&(G.length||!j.length))&&(M=v,v=o,o=this,G=Vc(v,$r(v)));var te=!(Pn(M)&&"chain"in M)||!!M.chain,ue=Uo(o);return Ir(G,function(pe){var ye=v[pe];o[pe]=ye,ue&&(o.prototype[pe]=function(){var Ee=this.__chain__;if(te||Ee){var Re=o(this.__wrapped__),De=Re.__actions__=vi(this.__actions__);return De.push({func:ye,args:arguments,thisArg:o}),Re.__chain__=Ee,Re}return ye.apply(o,T([this.value()],arguments))})}),o}function SN(){return hn._===this&&(hn._=ZI),this}function kp(){}function _N(o){return o=It(o),Dt(function(v){return Fb(v,o)})}var $N=ep(y),TN=ep(Er),MN=ep(W);function nw(o){return ap(o)?we(Ao(o)):oR(o)}function IN(o){return function(v){return o==null?e:qs(o,v)}}var EN=s0(),RN=s0(!0);function Ap(){return[]}function Sp(){return!1}function LN(){return{}}function ON(){return""}function NN(){return!0}function DN(o,v){if(o=It(o),o<1||o>U)return[];var M=J,j=Br(o,J);v=gt(v),o-=J;for(var G=Qe(j,v);++M<o;)v(M);return G}function PN(o){return kt(o)?y(o,Ao):Ri(o)?[o]:vi(C0(sn(o)))}function FN(o){var v=++YI;return sn(o)+v}var WN=Zc(function(o,v){return o+v},0),BN=tp("ceil"),zN=Zc(function(o,v){return o/v},1),HN=tp("floor");function jN(o){return o&&o.length?Uc(o,wi,Bd):e}function UN(o,v){return o&&o.length?Uc(o,gt(v,2),Bd):e}function VN(o){return ve(o,wi)}function qN(o,v){return ve(o,gt(v,2))}function KN(o){return o&&o.length?Uc(o,wi,Ud):e}function GN(o,v){return o&&o.length?Uc(o,gt(v,2),Ud):e}var YN=Zc(function(o,v){return o*v},1),XN=tp("round"),ZN=Zc(function(o,v){return o-v},0);function QN(o){return o&&o.length?at(o,wi):0}function JN(o,v){return o&&o.length?at(o,gt(v,2)):0}return ee.after=xO,ee.ary=L0,ee.assign=l2,ee.assignIn=K0,ee.assignInWith=uu,ee.assignWith=c2,ee.at=u2,ee.before=O0,ee.bind=pp,ee.bindAll=gN,ee.bindKey=N0,ee.castArray=LO,ee.chain=I0,ee.chunk=HR,ee.compact=jR,ee.concat=UR,ee.cond=mN,ee.conforms=vN,ee.constant=wp,ee.countBy=QL,ee.create=h2,ee.curry=D0,ee.curryRight=P0,ee.debounce=F0,ee.defaults=d2,ee.defaultsDeep=p2,ee.defer=CO,ee.delay=kO,ee.difference=VR,ee.differenceBy=qR,ee.differenceWith=KR,ee.drop=GR,ee.dropRight=YR,ee.dropRightWhile=XR,ee.dropWhile=ZR,ee.fill=QR,ee.filter=eO,ee.flatMap=rO,ee.flatMapDeep=iO,ee.flatMapDepth=oO,ee.flatten=_0,ee.flattenDeep=JR,ee.flattenDepth=eL,ee.flip=AO,ee.flow=bN,ee.flowRight=wN,ee.fromPairs=tL,ee.functions=w2,ee.functionsIn=x2,ee.groupBy=sO,ee.initial=rL,ee.intersection=iL,ee.intersectionBy=oL,ee.intersectionWith=sL,ee.invert=k2,ee.invertBy=A2,ee.invokeMap=lO,ee.iteratee=xp,ee.keyBy=cO,ee.keys=$r,ee.keysIn=bi,ee.map=iu,ee.mapKeys=_2,ee.mapValues=$2,ee.matches=xN,ee.matchesProperty=CN,ee.memoize=su,ee.merge=T2,ee.mergeWith=G0,ee.method=kN,ee.methodOf=AN,ee.mixin=Cp,ee.negate=au,ee.nthArg=_N,ee.omit=M2,ee.omitBy=I2,ee.once=SO,ee.orderBy=uO,ee.over=$N,ee.overArgs=_O,ee.overEvery=TN,ee.overSome=MN,ee.partial=fp,ee.partialRight=W0,ee.partition=hO,ee.pick=E2,ee.pickBy=Y0,ee.property=nw,ee.propertyOf=IN,ee.pull=uL,ee.pullAll=T0,ee.pullAllBy=hL,ee.pullAllWith=dL,ee.pullAt=pL,ee.range=EN,ee.rangeRight=RN,ee.rearg=$O,ee.reject=fO,ee.remove=fL,ee.rest=TO,ee.reverse=hp,ee.sampleSize=mO,ee.set=L2,ee.setWith=O2,ee.shuffle=vO,ee.slice=gL,ee.sortBy=wO,ee.sortedUniq=CL,ee.sortedUniqBy=kL,ee.split=rN,ee.spread=MO,ee.tail=AL,ee.take=SL,ee.takeRight=_L,ee.takeRightWhile=$L,ee.takeWhile=TL,ee.tap=jL,ee.throttle=IO,ee.thru=ru,ee.toArray=U0,ee.toPairs=X0,ee.toPairsIn=Z0,ee.toPath=PN,ee.toPlainObject=q0,ee.transform=N2,ee.unary=EO,ee.union=ML,ee.unionBy=IL,ee.unionWith=EL,ee.uniq=RL,ee.uniqBy=LL,ee.uniqWith=OL,ee.unset=D2,ee.unzip=dp,ee.unzipWith=M0,ee.update=P2,ee.updateWith=F2,ee.values=Ea,ee.valuesIn=W2,ee.without=NL,ee.words=ew,ee.wrap=RO,ee.xor=DL,ee.xorBy=PL,ee.xorWith=FL,ee.zip=WL,ee.zipObject=BL,ee.zipObjectDeep=zL,ee.zipWith=HL,ee.entries=X0,ee.entriesIn=Z0,ee.extend=K0,ee.extendWith=uu,Cp(ee,ee),ee.add=WN,ee.attempt=tw,ee.camelCase=j2,ee.capitalize=Q0,ee.ceil=BN,ee.clamp=B2,ee.clone=OO,ee.cloneDeep=DO,ee.cloneDeepWith=PO,ee.cloneWith=NO,ee.conformsTo=FO,ee.deburr=J0,ee.defaultTo=yN,ee.divide=zN,ee.endsWith=U2,ee.eq=lo,ee.escape=V2,ee.escapeRegExp=q2,ee.every=JL,ee.find=tO,ee.findIndex=A0,ee.findKey=f2,ee.findLast=nO,ee.findLastIndex=S0,ee.findLastKey=g2,ee.floor=HN,ee.forEach=E0,ee.forEachRight=R0,ee.forIn=m2,ee.forInRight=v2,ee.forOwn=y2,ee.forOwnRight=b2,ee.get=vp,ee.gt=WO,ee.gte=BO,ee.has=C2,ee.hasIn=yp,ee.head=$0,ee.identity=wi,ee.includes=aO,ee.indexOf=nL,ee.inRange=z2,ee.invoke=S2,ee.isArguments=Ys,ee.isArray=kt,ee.isArrayBuffer=zO,ee.isArrayLike=yi,ee.isArrayLikeObject=Qn,ee.isBoolean=HO,ee.isBuffer=gs,ee.isDate=jO,ee.isElement=UO,ee.isEmpty=VO,ee.isEqual=qO,ee.isEqualWith=KO,ee.isError=gp,ee.isFinite=GO,ee.isFunction=Uo,ee.isInteger=B0,ee.isLength=lu,ee.isMap=z0,ee.isMatch=YO,ee.isMatchWith=XO,ee.isNaN=ZO,ee.isNative=QO,ee.isNil=e2,ee.isNull=JO,ee.isNumber=H0,ee.isObject=Pn,ee.isObjectLike=qn,ee.isPlainObject=Al,ee.isRegExp=mp,ee.isSafeInteger=t2,ee.isSet=j0,ee.isString=cu,ee.isSymbol=Ri,ee.isTypedArray=Ia,ee.isUndefined=n2,ee.isWeakMap=r2,ee.isWeakSet=i2,ee.join=aL,ee.kebabCase=K2,ee.last=Gi,ee.lastIndexOf=lL,ee.lowerCase=G2,ee.lowerFirst=Y2,ee.lt=o2,ee.lte=s2,ee.max=jN,ee.maxBy=UN,ee.mean=VN,ee.meanBy=qN,ee.min=KN,ee.minBy=GN,ee.stubArray=Ap,ee.stubFalse=Sp,ee.stubObject=LN,ee.stubString=ON,ee.stubTrue=NN,ee.multiply=YN,ee.nth=cL,ee.noConflict=SN,ee.noop=kp,ee.now=ou,ee.pad=X2,ee.padEnd=Z2,ee.padStart=Q2,ee.parseInt=J2,ee.random=H2,ee.reduce=dO,ee.reduceRight=pO,ee.repeat=eN,ee.replace=tN,ee.result=R2,ee.round=XN,ee.runInContext=fe,ee.sample=gO,ee.size=yO,ee.snakeCase=nN,ee.some=bO,ee.sortedIndex=mL,ee.sortedIndexBy=vL,ee.sortedIndexOf=yL,ee.sortedLastIndex=bL,ee.sortedLastIndexBy=wL,ee.sortedLastIndexOf=xL,ee.startCase=iN,ee.startsWith=oN,ee.subtract=ZN,ee.sum=QN,ee.sumBy=JN,ee.template=sN,ee.times=DN,ee.toFinite=Vo,ee.toInteger=It,ee.toLength=V0,ee.toLower=aN,ee.toNumber=Yi,ee.toSafeInteger=a2,ee.toString=sn,ee.toUpper=lN,ee.trim=cN,ee.trimEnd=uN,ee.trimStart=hN,ee.truncate=dN,ee.unescape=pN,ee.uniqueId=FN,ee.upperCase=fN,ee.upperFirst=bp,ee.each=E0,ee.eachRight=R0,ee.first=$0,Cp(ee,function(){var o={};return Co(ee,function(v,M){cn.call(ee.prototype,M)||(o[M]=v)}),o}(),{chain:!1}),ee.VERSION=r,Ir(["bind","bindKey","curry","curryRight","partial","partialRight"],function(o){ee[o].placeholder=ee}),Ir(["drop","take"],function(o,v){Ut.prototype[o]=function(M){M=M===e?1:mr(It(M),0);var j=this.__filtered__&&!v?new Ut(this):this.clone();return j.__filtered__?j.__takeCount__=Br(M,j.__takeCount__):j.__views__.push({size:Br(M,J),type:o+(j.__dir__<0?"Right":"")}),j},Ut.prototype[o+"Right"]=function(M){return this.reverse()[o](M).reverse()}}),Ir(["filter","map","takeWhile"],function(o,v){var M=v+1,j=M==$||M==N;Ut.prototype[o]=function(G){var te=this.clone();return te.__iteratees__.push({iteratee:gt(G,3),type:M}),te.__filtered__=te.__filtered__||j,te}}),Ir(["head","last"],function(o,v){var M="take"+(v?"Right":"");Ut.prototype[o]=function(){return this[M](1).value()[0]}}),Ir(["initial","tail"],function(o,v){var M="drop"+(v?"":"Right");Ut.prototype[o]=function(){return this.__filtered__?new Ut(this):this[M](1)}}),Ut.prototype.compact=function(){return this.filter(wi)},Ut.prototype.find=function(o){return this.filter(o).head()},Ut.prototype.findLast=function(o){return this.reverse().find(o)},Ut.prototype.invokeMap=Dt(function(o,v){return typeof o=="function"?new Ut(this):this.map(function(M){return yl(M,o,v)})}),Ut.prototype.reject=function(o){return this.filter(au(gt(o)))},Ut.prototype.slice=function(o,v){o=It(o);var M=this;return M.__filtered__&&(o>0||v<0)?new Ut(M):(o<0?M=M.takeRight(-o):o&&(M=M.drop(o)),v!==e&&(v=It(v),M=v<0?M.dropRight(-v):M.take(v-o)),M)},Ut.prototype.takeRightWhile=function(o){return this.reverse().takeWhile(o).reverse()},Ut.prototype.toArray=function(){return this.take(J)},Co(Ut.prototype,function(o,v){var M=/^(?:filter|find|map|reject)|While$/.test(v),j=/^(?:head|last)$/.test(v),G=ee[j?"take"+(v=="last"?"Right":""):v],te=j||/^find/.test(v);G&&(ee.prototype[v]=function(){var ue=this.__wrapped__,pe=j?[1]:arguments,ye=ue instanceof Ut,Ee=pe[0],Re=ye||kt(ue),De=function(Bt){var qt=G.apply(ee,T([Bt],pe));return j&&Ye?qt[0]:qt};Re&&M&&typeof Ee=="function"&&Ee.length!=1&&(ye=Re=!1);var Ye=this.__chain__,rt=!!this.__actions__.length,mt=te&&!Ye,Rt=ye&&!rt;if(!te&&Re){ue=Rt?ue:new Ut(this);var vt=o.apply(ue,pe);return vt.__actions__.push({func:ru,args:[De],thisArg:e}),new Vi(vt,Ye)}return mt&&Rt?o.apply(this,pe):(vt=this.thru(De),mt?j?vt.value()[0]:vt.value():vt)})}),Ir(["pop","push","shift","sort","splice","unshift"],function(o){var v=_r[o],M=/^(?:push|sort|unshift)$/.test(o)?"tap":"thru",j=/^(?:pop|shift)$/.test(o);ee.prototype[o]=function(){var G=arguments;if(j&&!this.__chain__){var te=this.value();return v.apply(kt(te)?te:[],G)}return this[M](function(ue){return v.apply(kt(ue)?ue:[],G)})}}),Co(Ut.prototype,function(o,v){var M=ee[v];if(M){var j=M.name+"";cn.call(Sa,j)||(Sa[j]=[]),Sa[j].push({name:v,func:M})}}),Sa[Xc(e,b).name]=[{name:"wrapper",func:e}],Ut.prototype.clone=pE,Ut.prototype.reverse=fE,Ut.prototype.value=gE,ee.prototype.at=UL,ee.prototype.chain=VL,ee.prototype.commit=qL,ee.prototype.next=KL,ee.prototype.plant=YL,ee.prototype.reverse=XL,ee.prototype.toJSON=ee.prototype.valueOf=ee.prototype.value=ZL,ee.prototype.first=ee.prototype.head,hl&&(ee.prototype[hl]=GL),ee},Vt=ar();or?((or.exports=Vt)._=Vt,Sn._=Vt):hn._=Vt}).call(kk)}(Gl,Gl.exports)),Gl.exports}var Sk=Ak();const _k=er("O",El(Sk)),$k={mixins:[Ck],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:_k.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
+ }`;var Rt=tw(function(){return Tt(te,rt+"return "+De).apply(e,ue)});if(Rt.source=De,gp(Rt))throw Rt;return Rt}function aN(o){return sn(o).toLowerCase()}function lN(o){return sn(o).toUpperCase()}function cN(o,v,M){if(o=sn(o),o&&(M||v===e))return wn(o);if(!o||!(v=Ei(v)))return o;var j=Ct(o),G=Ct(v),te=$t(j,G),ue=sr(j,G)+1;return fs(j,te,ue).join("")}function uN(o,v,M){if(o=sn(o),o&&(M||v===e))return o.slice(0,Nt(o)+1);if(!o||!(v=Ei(v)))return o;var j=Ct(o),G=sr(j,Ct(v))+1;return fs(j,0,G).join("")}function hN(o,v,M){if(o=sn(o),o&&(M||v===e))return o.replace(Sn,"");if(!o||!(v=Ei(v)))return o;var j=Ct(o),G=$t(j,Ct(v));return fs(j,G).join("")}function dN(o,v){var M=E,j=z;if(Pn(v)){var G="separator"in v?v.separator:G;M="length"in v?It(v.length):M,j="omission"in v?Ei(v.omission):j}o=sn(o);var te=o.length;if(oe(o)){var ue=Ct(o);te=ue.length}if(M>=te)return o;var pe=M-Ft(j);if(pe<1)return j;var ye=ue?fs(ue,0,pe).join(""):o.slice(0,pe);if(G===e)return ye+j;if(ue&&(pe+=ye.length-pe),mp(G)){if(o.slice(pe).search(G)){var Ee,Re=ye;for(G.global||(G=ei(G.source,sn(Pr.exec(G))+"g")),G.lastIndex=0;Ee=G.exec(Re);)var De=Ee.index;ye=ye.slice(0,De===e?pe:De)}}else if(o.indexOf(Ei(G),pe)!=pe){var Ye=ye.lastIndexOf(G);Ye>-1&&(ye=ye.slice(0,Ye))}return ye+j}function pN(o){return o=sn(o),o&&ui.test(o)?o.replace(Bn,ft):o}var fN=Ta(function(o,v,M){return o+(M?" ":"")+v.toUpperCase()}),bp=n0("toUpperCase");function ew(o,v,M){return o=sn(o),v=M?e:v,v===e?ge(o)?Rn(o):Y(o):o.match(v)||[]}var tw=Dt(function(o,v){try{return kr(o,e,v)}catch(M){return gp(M)?M:new dt(M)}}),gN=Ho(function(o,v){return Ir(v,function(M){M=So(M),Bo(o,M,pp(o[M],o))}),o});function mN(o){var v=o==null?0:o.length,M=gt();return o=v?y(o,function(j){if(typeof j[1]!="function")throw new dn(m);return[M(j[0]),j[1]]}):[],Dt(function(j){for(var G=-1;++G<v;){var te=o[G];if(kr(te[0],this,j))return kr(te[1],this,j)}})}function vN(o){return HE(qi(o,l))}function wp(o){return function(){return o}}function yN(o,v){return o==null||o!==o?v:o}var bN=i0(),wN=i0(!0);function wi(o){return o}function xp(o){return Ob(typeof o=="function"?o:qi(o,l))}function xN(o){return Db(qi(o,l))}function CN(o,v){return Pb(o,qi(v,l))}var kN=Dt(function(o,v){return function(M){return yl(M,o,v)}}),AN=Dt(function(o,v){return function(M){return yl(o,M,v)}});function Cp(o,v,M){var j=$r(v),G=Vc(v,j);M==null&&!(Pn(v)&&(G.length||!j.length))&&(M=v,v=o,o=this,G=Vc(v,$r(v)));var te=!(Pn(M)&&"chain"in M)||!!M.chain,ue=Uo(o);return Ir(G,function(pe){var ye=v[pe];o[pe]=ye,ue&&(o.prototype[pe]=function(){var Ee=this.__chain__;if(te||Ee){var Re=o(this.__wrapped__),De=Re.__actions__=vi(this.__actions__);return De.push({func:ye,args:arguments,thisArg:o}),Re.__chain__=Ee,Re}return ye.apply(o,T([this.value()],arguments))})}),o}function SN(){return hn._===this&&(hn._=ZI),this}function kp(){}function _N(o){return o=It(o),Dt(function(v){return Fb(v,o)})}var $N=ep(y),TN=ep(Er),MN=ep(W);function nw(o){return ap(o)?we(So(o)):oR(o)}function IN(o){return function(v){return o==null?e:qs(o,v)}}var EN=s0(),RN=s0(!0);function Ap(){return[]}function Sp(){return!1}function LN(){return{}}function ON(){return""}function NN(){return!0}function DN(o,v){if(o=It(o),o<1||o>U)return[];var M=J,j=Br(o,J);v=gt(v),o-=J;for(var G=Qe(j,v);++M<o;)v(M);return G}function PN(o){return kt(o)?y(o,So):Ri(o)?[o]:vi(C0(sn(o)))}function FN(o){var v=++YI;return sn(o)+v}var WN=Zc(function(o,v){return o+v},0),BN=tp("ceil"),zN=Zc(function(o,v){return o/v},1),HN=tp("floor");function jN(o){return o&&o.length?Uc(o,wi,Bd):e}function UN(o,v){return o&&o.length?Uc(o,gt(v,2),Bd):e}function VN(o){return ve(o,wi)}function qN(o,v){return ve(o,gt(v,2))}function KN(o){return o&&o.length?Uc(o,wi,Ud):e}function GN(o,v){return o&&o.length?Uc(o,gt(v,2),Ud):e}var YN=Zc(function(o,v){return o*v},1),XN=tp("round"),ZN=Zc(function(o,v){return o-v},0);function QN(o){return o&&o.length?at(o,wi):0}function JN(o,v){return o&&o.length?at(o,gt(v,2)):0}return ee.after=xO,ee.ary=L0,ee.assign=l2,ee.assignIn=K0,ee.assignInWith=uu,ee.assignWith=c2,ee.at=u2,ee.before=O0,ee.bind=pp,ee.bindAll=gN,ee.bindKey=N0,ee.castArray=LO,ee.chain=I0,ee.chunk=HR,ee.compact=jR,ee.concat=UR,ee.cond=mN,ee.conforms=vN,ee.constant=wp,ee.countBy=QL,ee.create=h2,ee.curry=D0,ee.curryRight=P0,ee.debounce=F0,ee.defaults=d2,ee.defaultsDeep=p2,ee.defer=CO,ee.delay=kO,ee.difference=VR,ee.differenceBy=qR,ee.differenceWith=KR,ee.drop=GR,ee.dropRight=YR,ee.dropRightWhile=XR,ee.dropWhile=ZR,ee.fill=QR,ee.filter=eO,ee.flatMap=rO,ee.flatMapDeep=iO,ee.flatMapDepth=oO,ee.flatten=_0,ee.flattenDeep=JR,ee.flattenDepth=eL,ee.flip=AO,ee.flow=bN,ee.flowRight=wN,ee.fromPairs=tL,ee.functions=w2,ee.functionsIn=x2,ee.groupBy=sO,ee.initial=rL,ee.intersection=iL,ee.intersectionBy=oL,ee.intersectionWith=sL,ee.invert=k2,ee.invertBy=A2,ee.invokeMap=lO,ee.iteratee=xp,ee.keyBy=cO,ee.keys=$r,ee.keysIn=bi,ee.map=iu,ee.mapKeys=_2,ee.mapValues=$2,ee.matches=xN,ee.matchesProperty=CN,ee.memoize=su,ee.merge=T2,ee.mergeWith=G0,ee.method=kN,ee.methodOf=AN,ee.mixin=Cp,ee.negate=au,ee.nthArg=_N,ee.omit=M2,ee.omitBy=I2,ee.once=SO,ee.orderBy=uO,ee.over=$N,ee.overArgs=_O,ee.overEvery=TN,ee.overSome=MN,ee.partial=fp,ee.partialRight=W0,ee.partition=hO,ee.pick=E2,ee.pickBy=Y0,ee.property=nw,ee.propertyOf=IN,ee.pull=uL,ee.pullAll=T0,ee.pullAllBy=hL,ee.pullAllWith=dL,ee.pullAt=pL,ee.range=EN,ee.rangeRight=RN,ee.rearg=$O,ee.reject=fO,ee.remove=fL,ee.rest=TO,ee.reverse=hp,ee.sampleSize=mO,ee.set=L2,ee.setWith=O2,ee.shuffle=vO,ee.slice=gL,ee.sortBy=wO,ee.sortedUniq=CL,ee.sortedUniqBy=kL,ee.split=rN,ee.spread=MO,ee.tail=AL,ee.take=SL,ee.takeRight=_L,ee.takeRightWhile=$L,ee.takeWhile=TL,ee.tap=jL,ee.throttle=IO,ee.thru=ru,ee.toArray=U0,ee.toPairs=X0,ee.toPairsIn=Z0,ee.toPath=PN,ee.toPlainObject=q0,ee.transform=N2,ee.unary=EO,ee.union=ML,ee.unionBy=IL,ee.unionWith=EL,ee.uniq=RL,ee.uniqBy=LL,ee.uniqWith=OL,ee.unset=D2,ee.unzip=dp,ee.unzipWith=M0,ee.update=P2,ee.updateWith=F2,ee.values=Ea,ee.valuesIn=W2,ee.without=NL,ee.words=ew,ee.wrap=RO,ee.xor=DL,ee.xorBy=PL,ee.xorWith=FL,ee.zip=WL,ee.zipObject=BL,ee.zipObjectDeep=zL,ee.zipWith=HL,ee.entries=X0,ee.entriesIn=Z0,ee.extend=K0,ee.extendWith=uu,Cp(ee,ee),ee.add=WN,ee.attempt=tw,ee.camelCase=j2,ee.capitalize=Q0,ee.ceil=BN,ee.clamp=B2,ee.clone=OO,ee.cloneDeep=DO,ee.cloneDeepWith=PO,ee.cloneWith=NO,ee.conformsTo=FO,ee.deburr=J0,ee.defaultTo=yN,ee.divide=zN,ee.endsWith=U2,ee.eq=lo,ee.escape=V2,ee.escapeRegExp=q2,ee.every=JL,ee.find=tO,ee.findIndex=A0,ee.findKey=f2,ee.findLast=nO,ee.findLastIndex=S0,ee.findLastKey=g2,ee.floor=HN,ee.forEach=E0,ee.forEachRight=R0,ee.forIn=m2,ee.forInRight=v2,ee.forOwn=y2,ee.forOwnRight=b2,ee.get=vp,ee.gt=WO,ee.gte=BO,ee.has=C2,ee.hasIn=yp,ee.head=$0,ee.identity=wi,ee.includes=aO,ee.indexOf=nL,ee.inRange=z2,ee.invoke=S2,ee.isArguments=Ys,ee.isArray=kt,ee.isArrayBuffer=zO,ee.isArrayLike=yi,ee.isArrayLikeObject=Qn,ee.isBoolean=HO,ee.isBuffer=gs,ee.isDate=jO,ee.isElement=UO,ee.isEmpty=VO,ee.isEqual=qO,ee.isEqualWith=KO,ee.isError=gp,ee.isFinite=GO,ee.isFunction=Uo,ee.isInteger=B0,ee.isLength=lu,ee.isMap=z0,ee.isMatch=YO,ee.isMatchWith=XO,ee.isNaN=ZO,ee.isNative=QO,ee.isNil=e2,ee.isNull=JO,ee.isNumber=H0,ee.isObject=Pn,ee.isObjectLike=qn,ee.isPlainObject=Al,ee.isRegExp=mp,ee.isSafeInteger=t2,ee.isSet=j0,ee.isString=cu,ee.isSymbol=Ri,ee.isTypedArray=Ia,ee.isUndefined=n2,ee.isWeakMap=r2,ee.isWeakSet=i2,ee.join=aL,ee.kebabCase=K2,ee.last=Gi,ee.lastIndexOf=lL,ee.lowerCase=G2,ee.lowerFirst=Y2,ee.lt=o2,ee.lte=s2,ee.max=jN,ee.maxBy=UN,ee.mean=VN,ee.meanBy=qN,ee.min=KN,ee.minBy=GN,ee.stubArray=Ap,ee.stubFalse=Sp,ee.stubObject=LN,ee.stubString=ON,ee.stubTrue=NN,ee.multiply=YN,ee.nth=cL,ee.noConflict=SN,ee.noop=kp,ee.now=ou,ee.pad=X2,ee.padEnd=Z2,ee.padStart=Q2,ee.parseInt=J2,ee.random=H2,ee.reduce=dO,ee.reduceRight=pO,ee.repeat=eN,ee.replace=tN,ee.result=R2,ee.round=XN,ee.runInContext=fe,ee.sample=gO,ee.size=yO,ee.snakeCase=nN,ee.some=bO,ee.sortedIndex=mL,ee.sortedIndexBy=vL,ee.sortedIndexOf=yL,ee.sortedLastIndex=bL,ee.sortedLastIndexBy=wL,ee.sortedLastIndexOf=xL,ee.startCase=iN,ee.startsWith=oN,ee.subtract=ZN,ee.sum=QN,ee.sumBy=JN,ee.template=sN,ee.times=DN,ee.toFinite=Vo,ee.toInteger=It,ee.toLength=V0,ee.toLower=aN,ee.toNumber=Yi,ee.toSafeInteger=a2,ee.toString=sn,ee.toUpper=lN,ee.trim=cN,ee.trimEnd=uN,ee.trimStart=hN,ee.truncate=dN,ee.unescape=pN,ee.uniqueId=FN,ee.upperCase=fN,ee.upperFirst=bp,ee.each=E0,ee.eachRight=R0,ee.first=$0,Cp(ee,function(){var o={};return ko(ee,function(v,M){cn.call(ee.prototype,M)||(o[M]=v)}),o}(),{chain:!1}),ee.VERSION=r,Ir(["bind","bindKey","curry","curryRight","partial","partialRight"],function(o){ee[o].placeholder=ee}),Ir(["drop","take"],function(o,v){Vt.prototype[o]=function(M){M=M===e?1:mr(It(M),0);var j=this.__filtered__&&!v?new Vt(this):this.clone();return j.__filtered__?j.__takeCount__=Br(M,j.__takeCount__):j.__views__.push({size:Br(M,J),type:o+(j.__dir__<0?"Right":"")}),j},Vt.prototype[o+"Right"]=function(M){return this.reverse()[o](M).reverse()}}),Ir(["filter","map","takeWhile"],function(o,v){var M=v+1,j=M==$||M==N;Vt.prototype[o]=function(G){var te=this.clone();return te.__iteratees__.push({iteratee:gt(G,3),type:M}),te.__filtered__=te.__filtered__||j,te}}),Ir(["head","last"],function(o,v){var M="take"+(v?"Right":"");Vt.prototype[o]=function(){return this[M](1).value()[0]}}),Ir(["initial","tail"],function(o,v){var M="drop"+(v?"":"Right");Vt.prototype[o]=function(){return this.__filtered__?new Vt(this):this[M](1)}}),Vt.prototype.compact=function(){return this.filter(wi)},Vt.prototype.find=function(o){return this.filter(o).head()},Vt.prototype.findLast=function(o){return this.reverse().find(o)},Vt.prototype.invokeMap=Dt(function(o,v){return typeof o=="function"?new Vt(this):this.map(function(M){return yl(M,o,v)})}),Vt.prototype.reject=function(o){return this.filter(au(gt(o)))},Vt.prototype.slice=function(o,v){o=It(o);var M=this;return M.__filtered__&&(o>0||v<0)?new Vt(M):(o<0?M=M.takeRight(-o):o&&(M=M.drop(o)),v!==e&&(v=It(v),M=v<0?M.dropRight(-v):M.take(v-o)),M)},Vt.prototype.takeRightWhile=function(o){return this.reverse().takeWhile(o).reverse()},Vt.prototype.toArray=function(){return this.take(J)},ko(Vt.prototype,function(o,v){var M=/^(?:filter|find|map|reject)|While$/.test(v),j=/^(?:head|last)$/.test(v),G=ee[j?"take"+(v=="last"?"Right":""):v],te=j||/^find/.test(v);G&&(ee.prototype[v]=function(){var ue=this.__wrapped__,pe=j?[1]:arguments,ye=ue instanceof Vt,Ee=pe[0],Re=ye||kt(ue),De=function(Bt){var Kt=G.apply(ee,T([Bt],pe));return j&&Ye?Kt[0]:Kt};Re&&M&&typeof Ee=="function"&&Ee.length!=1&&(ye=Re=!1);var Ye=this.__chain__,rt=!!this.__actions__.length,mt=te&&!Ye,Rt=ye&&!rt;if(!te&&Re){ue=Rt?ue:new Vt(this);var vt=o.apply(ue,pe);return vt.__actions__.push({func:ru,args:[De],thisArg:e}),new Vi(vt,Ye)}return mt&&Rt?o.apply(this,pe):(vt=this.thru(De),mt?j?vt.value()[0]:vt.value():vt)})}),Ir(["pop","push","shift","sort","splice","unshift"],function(o){var v=_r[o],M=/^(?:push|sort|unshift)$/.test(o)?"tap":"thru",j=/^(?:pop|shift)$/.test(o);ee.prototype[o]=function(){var G=arguments;if(j&&!this.__chain__){var te=this.value();return v.apply(kt(te)?te:[],G)}return this[M](function(ue){return v.apply(kt(ue)?ue:[],G)})}}),ko(Vt.prototype,function(o,v){var M=ee[v];if(M){var j=M.name+"";cn.call(Sa,j)||(Sa[j]=[]),Sa[j].push({name:v,func:M})}}),Sa[Xc(e,b).name]=[{name:"wrapper",func:e}],Vt.prototype.clone=pE,Vt.prototype.reverse=fE,Vt.prototype.value=gE,ee.prototype.at=UL,ee.prototype.chain=VL,ee.prototype.commit=qL,ee.prototype.next=KL,ee.prototype.plant=YL,ee.prototype.reverse=XL,ee.prototype.toJSON=ee.prototype.valueOf=ee.prototype.value=ZL,ee.prototype.first=ee.prototype.head,hl&&(ee.prototype[hl]=GL),ee},qt=ar();or?((or.exports=qt)._=qt,_n._=qt):hn._=qt}).call(kk)}(Gl,Gl.exports)),Gl.exports}var Sk=Ak();const _k=er("O",El(Sk)),$k={mixins:[Ck],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:_k.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=`
1489
1489
  `;this.filterText!==null&&(r+=`
1490
1490
  `),this.displayText=n.join(r),this.rows=this.displayText.split(`
1491
1491
  `).length},matchesSearch:function(n){return this.filterText===null?n:n.split(`
1492
1492
  `).filter(t=>t.toLowerCase().includes(this.filterText.toLowerCase())).join(`
1493
- `)},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",`${Yo(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++}}},Tk={class:"pa-2"},Mk={class:"text-area-container"},Ik={class:"floating-buttons"};function Ek(n,t,e,r,f,g){const m=ht("v-text-field"),w=ht("v-col"),h=ht("v-slider"),d=ht("v-row"),a=ht("v-textarea"),l=ht("v-btn"),u=ht("v-card-title"),c=ht("v-switch"),i=ht("v-radio"),s=ht("v-radio-group"),p=ht("v-card-text"),b=ht("v-card"),x=ht("v-menu");return pn(),Hr("div",Tk,[Ve(d,{dense:"",class:"mb-2"},{default:pt(()=>[Ve(w,{cols:"4"},{default:pt(()=>[Ve(m,{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}),Ve(w,{cols:"8",class:"mt-1"},{default:pt(()=>[Ve(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:g.pause,"onClick:prepend":g.stepBackward,"onClick:append":g.stepForward},null,8,["modelValue","min","onMousedown","onClick:prepend","onClick:append"])]),_:1})]),_:1}),Ve(d,{dense:"","no-gutters":""},{default:pt(()=>[Ve(w,null,{default:pt(()=>[tr("div",Mk,[Ve(a,{"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"]),tr("div",Ik,[Ve(x,{"close-on-content-click":!1,"min-width":700},{activator:pt(({props:I})=>[Ve(l,hu({class:"ml-2",color:"secondary"},I,{icon:"astro:settings",size:"small","aria-label":"Settings","data-test":"history-component-open-settings"}),null,16)]),default:pt(()=>[Ve(b,null,{default:pt(()=>[Ve(u,{"data-test":"display-settings-card"},{default:pt(()=>[...t[9]||(t[9]=[Tr(" Display settings ",-1)])]),_:1}),Ve(p,null,{default:pt(()=>[Ve(d,null,{default:pt(()=>[Ve(w,null,{default:pt(()=>[Ve(c,{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?(pn(),xi(c,{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"])):Ni("",!0),n.hasRaw?(pn(),xi(c,{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"])):Ni("",!0)]),_:1}),Ve(w,null,{default:pt(()=>[Ve(s,{modelValue:n.currentConfig.newestAtTop,"onUpdate:modelValue":t[5]||(t[5]=I=>n.currentConfig.newestAtTop=I),label:"Print newest to the"},{default:pt(()=>[Ve(i,{label:"Top",value:!0,"data-test":"history-component-settings-newest-top"}),Ve(i,{label:"Bottom",value:!1,"data-test":"history-component-settings-newest-bottom"})]),_:1},8,["modelValue"])]),_:1}),Ve(w,null,{default:pt(()=>[Ve(m,{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?(pn(),xi(m,{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"])):Ni("",!0),Ve(m,{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}),Ve(l,{class:"ml-2",color:"secondary",icon:"mdi-file-download",size:"small","aria-label":"Download","data-test":"history-component-download",onClick:g.download},null,8,["onClick"]),Ve(l,{class:du(["ml-2",{blink: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:g.togglePlayPause},null,8,["class","icon","aria-label","onClick"])])])]),_:1})]),_:1})])}const wD=er("H",So($k,[["render",Ek],["__scopeId","data-v-3c27986d"]]));var Mg={exports:{}},Ig;function Rk(){return Ig||(Ig=1,function(n,t){(function(){ace.require(["ace/mode/text"],function(e){n&&(n.exports=e)})})()}(Mg)),Mg.exports}Rk();const Lk=!0,lr="u-",Ok="uplot",Nk=lr+"hz",Dk=lr+"vt",Pk=lr+"title",Fk=lr+"wrap",Wk=lr+"under",Bk=lr+"over",zk=lr+"axis",Ss=lr+"off",Hk=lr+"select",jk=lr+"cursor-x",Uk=lr+"cursor-y",Vk=lr+"cursor-pt",qk=lr+"legend",Kk=lr+"live",Gk=lr+"inline",Yk=lr+"series",Xk=lr+"marker",Eg=lr+"label",Zk=lr+"value",Ua="width",Va="height",qa="top",Rg="bottom",oa="left",ju="right",Uu="#000",Lg=Uu+"0",Vu="mousemove",Og="mousedown",qu="mouseup",Ng="mouseenter",Dg="mouseleave",Pg="dblclick",Qk="resize",Jk="scroll",Fg="change",Yl="dppxchange",Ku="--",sa=typeof window<"u",Gu=sa?document:null,aa=sa?window:null,eA=sa?navigator:null;let en,Xl;function Yu(){let n=devicePixelRatio;en!=n&&(en=n,Xl&&Qu(Fg,Xl,Yu),Xl=matchMedia(`(min-resolution: ${en-.001}dppx) and (max-resolution: ${en+.001}dppx)`),_s(Fg,Xl,Yu),aa.dispatchEvent(new CustomEvent(Yl)))}function Ci(n,t){if(t!=null){let e=n.classList;!e.contains(t)&&e.add(t)}}function Xu(n,t){let e=n.classList;e.contains(t)&&e.remove(t)}function xn(n,t,e){n.style[t]=e+"px"}function Qi(n,t,e,r){let f=Gu.createElement(n);return t!=null&&Ci(f,t),e!=null&&e.insertBefore(f,r),f}function Di(n,t){return Qi("div",n,t)}const Wg=new WeakMap;function ho(n,t,e,r,f){let g="translate("+t+"px,"+e+"px)",m=Wg.get(n);g!=m&&(n.style.transform=g,Wg.set(n,g),t<0||e<0||t>r||e>f?Ci(n,Ss):Xu(n,Ss))}const Bg=new WeakMap;function zg(n,t,e){let r=t+e,f=Bg.get(n);r!=f&&(Bg.set(n,r),n.style.background=t,n.style.borderColor=e)}const Hg=new WeakMap;function jg(n,t,e,r){let f=t+""+e,g=Hg.get(n);f!=g&&(Hg.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 Zu={passive:!0},tA={...Zu,capture:!0};function _s(n,t,e,r){t.addEventListener(n,e,r?tA:Zu)}function Qu(n,t,e,r){t.removeEventListener(n,e,Zu)}sa&&Yu();function Ji(n,t,e,r){let f;e=e||0,r=r||t.length-1;let g=r<=2147483647;for(;r-e>1;)f=g?e+r>>1:Ai((e+r)/2),t[f]<n?e=f:r=f;return n-t[e]<=t[r]-n?e:r}function Ug(n){return(t,e,r)=>{let f=-1,g=-1;for(let m=e;m<=r;m++)if(n(t[m])){f=m;break}for(let m=r;m>=e;m--)if(n(t[m])){g=m;break}return[f,g]}}const Vg=n=>n!=null,qg=n=>n!=null&&n>0,Zl=Ug(Vg),nA=Ug(qg);function rA(n,t,e,r=0,f=!1){let g=f?nA:Zl,m=f?qg:Vg;[t,e]=g(n,t,e);let w=n[t],h=n[t];if(t>-1)if(r==1)w=n[t],h=n[e];else if(r==-1)w=n[e],h=n[t];else for(let d=t;d<=e;d++){let a=n[d];m(a)&&(a<w?w=a:a>h&&(h=a))}return[w??fn,h??-fn]}function Ql(n,t,e,r){let f=Yg(n),g=Yg(t);n==t&&(f==-1?(n*=e,t/=e):(n/=e,t*=e));let m=e==10?_o:Xg,w=f==1?Ai:Pi,h=g==1?Pi:Ai,d=w(m(cr(n))),a=h(m(cr(t))),l=la(e,d),u=la(e,a);return e==10&&(d<0&&(l=gn(l,-d)),a<0&&(u=gn(u,-a))),r||e==2?(n=l*f,t=u*g):(n=rm(n,l),t=tc(t,u)),[n,t]}function Ju(n,t,e,r){let f=Ql(n,t,e,r);return n==0&&(f[0]=0),t==0&&(f[1]=0),f}const eh=.1,Kg={mode:3,pad:eh},Ka={pad:0,soft:null,mode:0},iA={min:Ka,max:Ka};function Jl(n,t,e,r){return nc(e)?Gg(n,t,e):(Ka.pad=e,Ka.soft=r?0:null,Ka.mode=r?3:0,Gg(n,t,iA))}function Zt(n,t){return n??t}function oA(n,t,e){for(t=Zt(t,0),e=Zt(e,n.length-1);t<=e;){if(n[t]!=null)return!0;t++}return!1}function Gg(n,t,e){let r=e.min,f=e.max,g=Zt(r.pad,0),m=Zt(f.pad,0),w=Zt(r.hard,-fn),h=Zt(f.hard,fn),d=Zt(r.soft,fn),a=Zt(f.soft,-fn),l=Zt(r.mode,0),u=Zt(f.mode,0),c=t-n,i=_o(c),s=jr(cr(n),cr(t)),p=_o(s),b=cr(p-i);(c<1e-24||b>10)&&(c=0,(n==0||t==0)&&(c=1e-24,l==2&&d!=fn&&(g=0),u==2&&a!=-fn&&(m=0)));let x=c||s||1e3,I=_o(x),_=la(10,Ai(I)),k=x*(c==0?n==0?.1:1:g),C=gn(rm(n-k,_/10),24),L=n>=d&&(l==1||l==3&&C<=d||l==2&&C>=d)?d:fn,D=jr(w,C<L&&n>=L?L:eo(L,C)),R=x*(c==0?t==0?.1:1:m),E=gn(tc(t+R,_/10),24),z=t<=a&&(u==1||u==3&&E>=a||u==2&&E<=a)?a:-fn,F=eo(h,E>z&&t<=z?z:jr(z,E));return D==F&&D==0&&(F=100),[D,F]}const sA=new Intl.NumberFormat(sa?eA.language:"en-US"),th=n=>sA.format(n),ki=Math,ec=ki.PI,cr=ki.abs,Ai=ki.floor,ur=ki.round,Pi=ki.ceil,eo=ki.min,jr=ki.max,la=ki.pow,Yg=ki.sign,_o=ki.log10,Xg=ki.log2,aA=(n,t=1)=>ki.sinh(n)*t,nh=(n,t=1)=>ki.asinh(n/t),fn=1/0;function Zg(n){return(_o((n^n>>31)-(n>>31))|0)+1}function rh(n,t,e){return eo(jr(n,t),e)}function Qg(n){return typeof n=="function"}function zt(n){return Qg(n)?n:()=>n}const lA=()=>{},Jg=n=>n,em=(n,t)=>t,cA=n=>null,tm=n=>!0,nm=(n,t)=>n==t,uA=/\.\d*?(?=9{6,}|0{6,})/gm,$s=n=>{if(om(n)||Zo.has(n))return n;const t=`${n}`,e=t.match(uA);if(e==null)return n;let r=e[0].length-1;if(t.indexOf("e-")!=-1){let[f,g]=t.split("e");return+`${$s(f)}e${g}`}return gn(n,r)};function Ts(n,t){return $s(gn($s(n/t))*t)}function tc(n,t){return $s(Pi($s(n/t))*t)}function rm(n,t){return $s(Ai($s(n/t))*t)}function gn(n,t=0){if(om(n))return n;let e=10**t,r=n*e*(1+Number.EPSILON);return ur(r)/e}const Zo=new Map;function im(n){return((""+n).split(".")[1]||"").length}function Ga(n,t,e,r){let f=[],g=r.map(im);for(let m=t;m<e;m++){let w=cr(m),h=gn(la(n,m),w);for(let d=0;d<r.length;d++){let a=n==10?+`${r[d]}e${m}`:r[d]*h,l=(m>=0?0:w)+(m>=g[d]?0:g[d]),u=n==10?a:gn(a,l);f.push(u),Zo.set(u,l)}}return f}const Ya={},ih=[],ca=[null,null],Qo=Array.isArray,om=Number.isInteger,hA=n=>n===void 0;function sm(n){return typeof n=="string"}function nc(n){let t=!1;if(n!=null){let e=n.constructor;t=e==null||e==Object}return t}function dA(n){return n!=null&&typeof n=="object"}const pA=Object.getPrototypeOf(Uint8Array),am="__proto__";function ua(n,t=nc){let e;if(Qo(n)){let r=n.find(f=>f!=null);if(Qo(r)||t(r)){e=Array(n.length);for(let f=0;f<n.length;f++)e[f]=ua(n[f],t)}else e=n.slice()}else if(n instanceof pA)e=n.slice();else if(t(n)){e={};for(let r in n)r!=am&&(e[r]=ua(n[r],t))}else e=n;return e}function rr(n){let t=arguments;for(let e=1;e<t.length;e++){let r=t[e];for(let f in r)f!=am&&(nc(n[f])?rr(n[f],ua(r[f])):n[f]=ua(r[f]))}return n}const fA=0,gA=1,mA=2;function vA(n,t,e){for(let r=0,f,g=-1;r<t.length;r++){let m=t[r];if(m>g){for(f=m-1;f>=0&&n[f]==null;)n[f--]=null;for(f=m+1;f<e&&n[f]==null;)n[g=f++]=null}}}function yA(n,t){if(xA(n)){let m=n[0].slice();for(let w=1;w<n.length;w++)m.push(...n[w].slice(1));return CA(m[0])||(m=wA(m)),m}let e=new Set;for(let m=0;m<n.length;m++){let w=n[m][0],h=w.length;for(let d=0;d<h;d++)e.add(w[d])}let r=[Array.from(e).sort((m,w)=>m-w)],f=r[0].length,g=new Map;for(let m=0;m<f;m++)g.set(r[0][m],m);for(let m=0;m<n.length;m++){let w=n[m],h=w[0];for(let d=1;d<w.length;d++){let a=w[d],l=Array(f).fill(void 0),u=t?t[m][d]:gA,c=[];for(let i=0;i<a.length;i++){let s=a[i],p=g.get(h[i]);s===null?u!=fA&&(l[p]=s,u==mA&&c.push(p)):l[p]=s}vA(l,c,f),r.push(l)}}return r}const bA=typeof queueMicrotask>"u"?n=>Promise.resolve().then(n):queueMicrotask;function wA(n){let t=n[0],e=t.length,r=Array(e);for(let g=0;g<r.length;g++)r[g]=g;r.sort((g,m)=>t[g]-t[m]);let f=[];for(let g=0;g<n.length;g++){let m=n[g],w=Array(e);for(let h=0;h<e;h++)w[h]=m[r[h]];f.push(w)}return f}function xA(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 g=0;g<e;g++)if(f[g]!=t[g])return!1}}return!0}function CA(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 g=jr(1,Ai((f-r+1)/t));for(let m=n[r],w=r+g;w<=f;w+=g){const h=n[w];if(h!=null){if(h<=m)return!1;m=h}}return!0}const lm=["January","February","March","April","May","June","July","August","September","October","November","December"],cm=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function um(n){return n.slice(0,3)}const kA=cm.map(um),AA=lm.map(um),SA={MMMM:lm,MMM:AA,WWWW:cm,WWW:kA};function Xa(n){return(n<10?"0":"")+n}function _A(n){return(n<10?"00":n<100?"0":"")+n}const $A={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=>Xa(n.getMonth()+1),M:n=>n.getMonth()+1,DD:n=>Xa(n.getDate()),D:n=>n.getDate(),WWWW:(n,t)=>t.WWWW[n.getDay()],WWW:(n,t)=>t.WWW[n.getDay()],HH:n=>Xa(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=>Xa(n.getMinutes()),m:n=>n.getMinutes(),ss:n=>Xa(n.getSeconds()),s:n=>n.getSeconds(),fff:n=>_A(n.getMilliseconds())};function oh(n,t){t=t||SA;let e=[],r=/\{([a-z]+)\}|[^{]+/gi,f;for(;f=r.exec(n);)e.push(f[0][0]=="{"?$A[f[1]]:f[0]);return g=>{let m="";for(let w=0;w<e.length;w++)m+=typeof e[w]=="string"?e[w]:e[w](g,t);return m}}const TA=new Intl.DateTimeFormat().resolvedOptions().timeZone;function MA(n,t){let e;return t=="UTC"||t=="Etc/UTC"?e=new Date(+n+n.getTimezoneOffset()*6e4):t==TA?e=n:(e=new Date(n.toLocaleString("en-US",{timeZone:t})),e.setMilliseconds(n.getMilliseconds())),e}const hm=n=>n%1==0,rc=[1,2,2.5,5],IA=Ga(10,-32,0,rc),dm=Ga(10,0,32,rc),EA=dm.filter(hm),Ms=IA.concat(dm),sh=`
1494
- `,pm="{YYYY}",fm=sh+pm,gm="{M}/{D}",Za=sh+gm,ic=Za+"/{YY}",mm="{aa}",RA="{h}:{mm}",ha=RA+mm,vm=sh+ha,ym=":{ss}",on=null;function bm(n){let t=n*1e3,e=t*60,r=e*60,f=r*24,g=f*30,m=f*365,w=(n==1?Ga(10,0,3,rc).filter(hm):Ga(10,-3,0,rc)).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,g,g*2,g*3,g*4,g*6,m,m*2,m*5,m*10,m*25,m*50,m*100]);const h=[[m,pm,on,on,on,on,on,on,1],[f*28,"{MMM}",fm,on,on,on,on,on,1],[f,gm,fm,on,on,on,on,on,1],[r,"{h}"+mm,ic,on,Za,on,on,on,1],[e,ha,ic,on,Za,on,on,on,1],[t,ym,ic+" "+ha,on,Za+" "+ha,on,vm,on,1],[n,ym+".{fff}",ic+" "+ha,on,Za+" "+ha,on,vm,on,1]];function d(a){return(l,u,c,i,s,p)=>{let b=[],x=s>=m,I=s>=g&&s<m,_=a(c),k=gn(_*n,3),C=ah(_.getFullYear(),x?0:_.getMonth(),I||x?1:_.getDate()),L=gn(C*n,3);if(I||x){let D=I?s/g:0,R=x?s/m:0,E=k==L?k:gn(ah(C.getFullYear()+R,C.getMonth()+D,1)*n,3),z=new Date(ur(E/n)),F=z.getFullYear(),O=z.getMonth();for(let $=0;E<=i;$++){let A=ah(F+R*$,O+D*$,1),N=A-a(gn(A*n,3));E=gn((+A+N)*n,3),E<=i&&b.push(E)}}else{let D=s>=f?f:s,R=Ai(c)-Ai(k),E=L+R+tc(k-L,D);b.push(E);let z=a(E),F=z.getHours()+z.getMinutes()/e+z.getSeconds()/r,O=s/r,$=l.axes[u]._space,A=p/$;for(;E=gn(E+s,n==1?0:3),!(E>i);)if(O>1){let N=Ai(gn(F+O,6))%24,B=a(E).getHours()-N;B>1&&(B=-1),E-=B*r,F=(F+O)%24;let U=b[b.length-1];gn((E-U)/s,3)*A>=.7&&b.push(E)}else b.push(E)}return b}}return[w,h,d]}const[LA,OA,NA]=bm(1),[DA,PA,FA]=bm(.001);Ga(2,-53,53,[1]);function wm(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 xm(n,t){return(e,r,f,g,m)=>{let w=t.find(i=>m>=i[0])||t[t.length-1],h,d,a,l,u,c;return r.map(i=>{let s=n(i),p=s.getFullYear(),b=s.getMonth(),x=s.getDate(),I=s.getHours(),_=s.getMinutes(),k=s.getSeconds(),C=p!=h&&w[2]||b!=d&&w[3]||x!=a&&w[4]||I!=l&&w[5]||_!=u&&w[6]||k!=c&&w[7]||w[1];return h=p,d=b,a=x,l=I,u=_,c=k,C(s)})}}function WA(n,t){let e=oh(t);return(r,f,g,m,w)=>f.map(h=>e(n(h)))}function ah(n,t,e){return new Date(n,t,e)}function Cm(n,t){return t(n)}const BA="{YYYY}-{MM}-{DD} {h}:{mm}{aa}";function km(n,t){return(e,r,f,g)=>g==null?Ku:t(n(r))}function zA(n,t){let e=n.series[t];return e.width?e.stroke(n,t):e.points.width?e.points.stroke(n,t):null}function HA(n,t){return n.series[t].fill(n,t)}const jA={show:!0,live:!0,isolate:!1,mount:lA,markers:{show:!0,width:2,stroke:zA,fill:HA,dash:"solid"},idx:null,idxs:null,values:[]};function UA(n,t){let e=n.cursor.points,r=Di(),f=e.size(n,t);xn(r,Ua,f),xn(r,Va,f);let g=f/-2;xn(r,"marginLeft",g),xn(r,"marginTop",g);let m=e.width(n,t,f);return m&&xn(r,"borderWidth",m),r}function VA(n,t){let e=n.series[t].points;return e._fill||e._stroke}function qA(n,t){let e=n.series[t].points;return e._stroke||e._fill}function KA(n,t){return n.series[t].points.size}const lh=[0,0];function GA(n,t,e){return lh[0]=t,lh[1]=e,lh}function oc(n,t,e,r=!0){return f=>{f.button==0&&(!r||f.target==t)&&e(f)}}function ch(n,t,e,r=!0){return f=>{(!r||f.target==t)&&e(f)}}const YA={show:!0,x:!0,y:!0,lock:!1,move:GA,points:{one:!1,show:UA,size:KA,width:0,stroke:qA,fill:VA},bind:{mousedown:oc,mouseup:oc,click:oc,dblclick:oc,mousemove:ch,mouseleave:ch,mouseenter:ch},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},Am={show:!0,stroke:"rgba(0,0,0,0.07)",width:2},uh=rr({},Am,{filter:em}),Sm=rr({},uh,{size:10}),_m=rr({},Am,{show:!1}),hh='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"',$m="bold "+hh,Tm=1.5,Mm={show:!0,scale:"x",stroke:Uu,space:50,gap:5,alignTo:1,size:50,labelGap:0,labelSize:30,labelFont:$m,side:2,grid:uh,ticks:Sm,border:_m,font:hh,lineGap:Tm,rotate:0},XA="Value",ZA="Time",Im={show:!0,scale:"x",auto:!1,sorted:1,min:fn,max:-fn,idxs:[]};function QA(n,t,e,r,f){return t.map(g=>g==null?"":th(g))}function JA(n,t,e,r,f,g,m){let w=[],h=Zo.get(f)||0;e=m?e:gn(tc(e,f),h);for(let d=e;d<=r;d=gn(d+f,h))w.push(Object.is(d,-0)?0:d);return w}function dh(n,t,e,r,f,g,m){const w=[],h=n.scales[n.axes[t].scale].log,d=h==10?_o:Xg,a=Ai(d(e));f=la(h,a),h==10&&(f=Ms[Ji(f,Ms)]);let l=e,u=f*h;h==10&&(u=Ms[Ji(u,Ms)]);do w.push(l),l=l+f,h==10&&!Zo.has(l)&&(l=gn(l,Zo.get(f))),l>=u&&(f=l,u=f*h,h==10&&(u=Ms[Ji(u,Ms)]));while(l<=r);return w}function eS(n,t,e,r,f,g,m){let w=n.scales[n.axes[t].scale].asinh,h=r>w?dh(n,t,jr(w,e),r,f):[w],d=r>=0&&e<=0?[0]:[];return(e<-w?dh(n,t,jr(w,-r),-e,f):[w]).reverse().map(a=>-a).concat(d,h)}const Em=/./,tS=/[12357]/,nS=/[125]/,Rm=/1/,ph=(n,t,e,r)=>n.map((f,g)=>t==4&&f==0||g%r==0&&e.test(f.toExponential()[f<0?1:0])?f:null);function rS(n,t,e,r,f){let g=n.axes[e],m=g.scale,w=n.scales[m],h=n.valToPos,d=g._space,a=h(10,m),l=h(9,m)-a>=d?Em:h(7,m)-a>=d?tS:h(5,m)-a>=d?nS:Rm;if(l==Rm){let u=cr(h(1,m)-a);if(u<d)return ph(t.slice().reverse(),w.distr,l,Pi(d/u)).reverse()}return ph(t,w.distr,l,1)}function iS(n,t,e,r,f){let g=n.axes[e],m=g.scale,w=g._space,h=n.valToPos,d=cr(h(1,m)-h(2,m));return d<w?ph(t.slice().reverse(),3,Em,Pi(w/d)).reverse():t}function oS(n,t,e,r){return r==null?Ku:t==null?"":th(t)}const Lm={show:!0,scale:"y",stroke:Uu,space:30,gap:5,alignTo:1,size:50,labelGap:0,labelSize:30,labelFont:$m,side:3,grid:uh,ticks:Sm,border:_m,font:hh,lineGap:Tm,rotate:0};function sS(n,t){let e=3+(n||1)*2;return gn(e*t,3)}function aS(n,t){let{scale:e,idxs:r}=n.series[0],f=n._data[0],g=n.valToPos(f[r[0]],e,!0),m=n.valToPos(f[r[1]],e,!0),w=cr(m-g),h=n.series[t],d=w/(h.points.space*en);return r[1]-r[0]<=d}const Om={scale:null,auto:!0,sorted:0,min:fn,max:-fn},Nm=(n,t,e,r,f)=>f,Dm={show:!0,auto:!0,sorted:0,gaps:Nm,alpha:1,facets:[rr({},Om,{scale:"x"}),rr({},Om,{scale:"y"})]},Pm={scale:"y",auto:!0,sorted:0,show:!0,spanGaps:!1,gaps:Nm,alpha:1,points:{show:aS,filter:null},values:null,min:fn,max:-fn,idxs:[],path:null,clip:null};function lS(n,t,e,r,f){return e/10}const Fm={time:Lk,auto:!0,distr:1,log:10,asinh:1,min:null,max:null,dir:1,ori:0},cS=rr({},Fm,{time:!1,ori:1}),Wm={};function Bm(n,t){let e=Wm[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,g,m,w,h,d){for(let a=0;a<e.plots.length;a++)e.plots[a]!=f&&e.plots[a].pub(r,f,g,m,w,h,d)}},n!=null&&(Wm[n]=e)),e}const da=1,fh=2;function Is(n,t,e){const r=n.mode,f=n.series[t],g=r==2?n._data[t]:n._data,m=n.scales,w=n.bbox;let h=g[0],d=r==2?g[1]:g[t],a=r==2?m[f.facets[0].scale]:m[n.series[0].scale],l=r==2?m[f.facets[1].scale]:m[f.scale],u=w.left,c=w.top,i=w.width,s=w.height,p=n.valToPosH,b=n.valToPosV;return a.ori==0?e(f,h,d,a,l,p,b,u,c,i,s,ac,pa,cc,jm,Vm):e(f,h,d,a,l,b,p,c,u,s,i,lc,fa,vh,Um,qm)}function gh(n,t){let e=0,r=0,f=Zt(n.bands,ih);for(let g=0;g<f.length;g++){let m=f[g];m.series[0]==t?e=m.dir:m.series[1]==t&&(m.dir==1?r|=1:r|=2)}return[e,r==1?-1:r==2?1:r==3?2:0]}function uS(n,t,e,r,f){let g=n.mode,m=n.series[t],w=g==2?m.facets[1].scale:m.scale,h=n.scales[w];return f==-1?h.min:f==1?h.max:h.distr==3?h.dir==1?h.min:h.max:0}function $o(n,t,e,r,f,g){return Is(n,t,(m,w,h,d,a,l,u,c,i,s,p)=>{let b=m.pxRound;const x=d.dir*(d.ori==0?1:-1),I=d.ori==0?pa:fa;let _,k;x==1?(_=e,k=r):(_=r,k=e);let C=b(l(w[_],d,s,c)),L=b(u(h[_],a,p,i)),D=b(l(w[k],d,s,c)),R=b(u(g==1?a.max:a.min,a,p,i)),E=new Path2D(f);return I(E,D,R),I(E,C,R),I(E,C,L),E})}function sc(n,t,e,r,f,g){let m=null;if(n.length>0){m=new Path2D;const w=t==0?cc:vh;let h=e;for(let l=0;l<n.length;l++){let u=n[l];if(u[1]>u[0]){let c=u[0]-h;c>0&&w(m,h,r,c,r+g),h=u[1]}}let d=e+f-h,a=10;d>0&&w(m,h,r-a/2,d,r+g+a)}return m}function hS(n,t,e){let r=n[n.length-1];r&&r[0]==t?r[1]=e:n.push([t,e])}function mh(n,t,e,r,f,g,m){let w=[],h=n.length;for(let d=f==1?e:r;d>=e&&d<=r;d+=f)if(t[d]===null){let a=d,l=d;if(f==1)for(;++d<=r&&t[d]===null;)l=d;else for(;--d>=e&&t[d]===null;)l=d;let u=g(n[a]),c=l==a?u:g(n[l]),i=a-f;u=m<=0&&i>=0&&i<h?g(n[i]):u;let s=l+f;c=m>=0&&s>=0&&s<h?g(n[s]):c,c>=u&&w.push([u,c])}return w}function zm(n){return n==0?Jg:n==1?ur:t=>Ts(t,n)}function Hm(n){let t=n==0?ac:lc,e=n==0?(f,g,m,w,h,d)=>{f.arcTo(g,m,w,h,d)}:(f,g,m,w,h,d)=>{f.arcTo(m,g,h,w,d)},r=n==0?(f,g,m,w,h)=>{f.rect(g,m,w,h)}:(f,g,m,w,h)=>{f.rect(m,g,h,w)};return(f,g,m,w,h,d=0,a=0)=>{d==0&&a==0?r(f,g,m,w,h):(d=eo(d,w/2,h/2),a=eo(a,w/2,h/2),t(f,g+d,m),e(f,g+w,m,g+w,m+h,d),e(f,g+w,m+h,g,m+h,a),e(f,g,m+h,g,m,a),e(f,g,m,g+w,m,d),f.closePath())}}const ac=(n,t,e)=>{n.moveTo(t,e)},lc=(n,t,e)=>{n.moveTo(e,t)},pa=(n,t,e)=>{n.lineTo(t,e)},fa=(n,t,e)=>{n.lineTo(e,t)},cc=Hm(0),vh=Hm(1),jm=(n,t,e,r,f,g)=>{n.arc(t,e,r,f,g)},Um=(n,t,e,r,f,g)=>{n.arc(e,t,r,f,g)},Vm=(n,t,e,r,f,g,m)=>{n.bezierCurveTo(t,e,r,f,g,m)},qm=(n,t,e,r,f,g,m)=>{n.bezierCurveTo(e,t,f,r,m,g)};function Km(n){return(t,e,r,f,g)=>Is(t,e,(m,w,h,d,a,l,u,c,i,s,p)=>{let{pxRound:b,points:x}=m,I,_;d.ori==0?(I=ac,_=jm):(I=lc,_=Um);const k=gn(x.width*en,3);let C=(x.size-x.width)/2*en,L=gn(C*2,3),D=new Path2D,R=new Path2D,{left:E,top:z,width:F,height:O}=t.bbox;cc(R,E-L,z-L,F+L*2,O+L*2);const $=A=>{if(h[A]!=null){let N=b(l(w[A],d,s,c)),B=b(u(h[A],a,p,i));I(D,N+C,B),_(D,N,B,C,0,ec*2)}};if(g)g.forEach($);else for(let A=r;A<=f;A++)$(A);return{stroke:k>0?D:null,fill:D,clip:R,flags:da|fh}})}function Gm(n){return(t,e,r,f,g,m)=>{r!=f&&(g!=r&&m!=r&&n(t,e,r),g!=f&&m!=f&&n(t,e,f),n(t,e,m))}}const dS=Gm(pa),pS=Gm(fa);function Ym(n){const t=Zt(n==null?void 0:n.alignGaps,0);return(e,r,f,g)=>Is(e,r,(m,w,h,d,a,l,u,c,i,s,p)=>{[f,g]=Zl(h,f,g);let b=m.pxRound,x=F=>b(l(F,d,s,c)),I=F=>b(u(F,a,p,i)),_,k;d.ori==0?(_=pa,k=dS):(_=fa,k=pS);const C=d.dir*(d.ori==0?1:-1),L={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:da},D=L.stroke;let R=!1;if(g-f>=s*4){let F=he=>e.posToVal(he,d.key,!0),O=null,$=null,A,N,B,U=x(w[C==1?f:g]),K=x(w[f]),Q=x(w[g]),J=F(C==1?K+1:Q-1);for(let he=C==1?f:g;he>=f&&he<=g;he+=C){let ne=w[he],le=(C==1?ne<J:ne>J)?U:x(ne),se=h[he];le==U?se!=null?(N=se,O==null?(_(D,le,I(N)),A=O=$=N):N<O?O=N:N>$&&($=N)):se===null&&(R=!0):(O!=null&&k(D,U,I(O),I($),I(A),I(N)),se!=null?(N=se,_(D,le,I(N)),O=$=A=N):(O=$=null,se===null&&(R=!0)),U=le,J=F(U+C))}O!=null&&O!=$&&B!=U&&k(D,U,I(O),I($),I(A),I(N))}else for(let F=C==1?f:g;F>=f&&F<=g;F+=C){let O=h[F];O===null?R=!0:O!=null&&_(D,x(w[F]),I(O))}let[E,z]=gh(e,r);if(m.fill!=null||E!=0){let F=L.fill=new Path2D(D),O=m.fillTo(e,r,m.min,m.max,E),$=I(O),A=x(w[f]),N=x(w[g]);C==-1&&([N,A]=[A,N]),_(F,N,$),_(F,A,$)}if(!m.spanGaps){let F=[];R&&F.push(...mh(w,h,f,g,C,x,t)),L.gaps=F=m.gaps(e,r,f,g,F),L.clip=sc(F,d.ori,c,i,s,p)}return z!=0&&(L.band=z==2?[$o(e,r,f,g,D,-1),$o(e,r,f,g,D,1)]:$o(e,r,f,g,D,z)),L})}function fS(n){const t=Zt(n.align,1),e=Zt(n.ascDesc,!1),r=Zt(n.alignGaps,0),f=Zt(n.extend,!1);return(g,m,w,h)=>Is(g,m,(d,a,l,u,c,i,s,p,b,x,I)=>{[w,h]=Zl(l,w,h);let _=d.pxRound,{left:k,width:C}=g.bbox,L=Q=>_(i(Q,u,x,p)),D=Q=>_(s(Q,c,I,b)),R=u.ori==0?pa:fa;const E={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:da},z=E.stroke,F=u.dir*(u.ori==0?1:-1);let O=D(l[F==1?w:h]),$=L(a[F==1?w:h]),A=$,N=$;f&&t==-1&&(N=k,R(z,N,O)),R(z,$,O);for(let Q=F==1?w:h;Q>=w&&Q<=h;Q+=F){let J=l[Q];if(J==null)continue;let he=L(a[Q]),ne=D(J);t==1?R(z,he,O):R(z,A,ne),R(z,he,ne),O=ne,A=he}let B=A;f&&t==1&&(B=k+C,R(z,B,O));let[U,K]=gh(g,m);if(d.fill!=null||U!=0){let Q=E.fill=new Path2D(z),J=d.fillTo(g,m,d.min,d.max,U),he=D(J);R(Q,B,he),R(Q,N,he)}if(!d.spanGaps){let Q=[];Q.push(...mh(a,l,w,h,F,L,r));let J=d.width*en/2,he=e||t==1?J:-J,ne=e||t==-1?-J:J;Q.forEach(le=>{le[0]+=he,le[1]+=ne}),E.gaps=Q=d.gaps(g,m,w,h,Q),E.clip=sc(Q,u.ori,p,b,x,I)}return K!=0&&(E.band=K==2?[$o(g,m,w,h,z,-1),$o(g,m,w,h,z,1)]:$o(g,m,w,h,z,K)),E})}function Xm(n,t,e,r,f,g,m=fn){if(n.length>1){let w=null;for(let h=0,d=1/0;h<n.length;h++)if(t[h]!==void 0){if(w!=null){let a=cr(n[h]-n[w]);a<d&&(d=a,m=cr(e(n[h],r,f,g)-e(n[w],r,f,g)))}w=h}}return m}function gS(n){n=n||Ya;const t=Zt(n.size,[.6,fn,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 g=zt(f),m=1-t[0],w=Zt(t[1],fn),h=Zt(t[2],1),d=Zt(n.disp,Ya),a=Zt(n.each,c=>{}),{fill:l,stroke:u}=d;return(c,i,s,p)=>Is(c,i,(b,x,I,_,k,C,L,D,R,E,z)=>{let F=b.pxRound,O=e,$=r*en,A=w*en,N=h*en,B,U;_.ori==0?[B,U]=g(c,i):[U,B]=g(c,i);const K=_.dir*(_.ori==0?1:-1);let Q=_.ori==0?cc:vh,J=_.ori==0?a:(je,Lt,Qt,On,yr,hr,mn)=>{a(je,Lt,Qt,yr,On,mn,hr)},he=Zt(c.bands,ih).find(je=>je.series[0]==i),ne=he!=null?he.dir:0,le=b.fillTo(c,i,b.min,b.max,ne),se=F(L(le,k,z,R)),de,me,_e,Te=E,Me=F(b.width*en),Ze=!1,Ge=null,lt=null,tt=null,ct=null;l!=null&&(Me==0||u!=null)&&(Ze=!0,Ge=l.values(c,i,s,p),lt=new Map,new Set(Ge).forEach(je=>{je!=null&&lt.set(je,new Path2D)}),Me>0&&(tt=u.values(c,i,s,p),ct=new Map,new Set(tt).forEach(je=>{je!=null&&ct.set(je,new Path2D)})));let{x0:Yt,size:Cn}=d;if(Yt!=null&&Cn!=null){O=1,x=Yt.values(c,i,s,p),Yt.unit==2&&(x=x.map(Lt=>c.posToVal(D+Lt*E,_.key,!0)));let je=Cn.values(c,i,s,p);Cn.unit==2?me=je[0]*E:me=C(je[0],_,E,D)-C(0,_,E,D),Te=Xm(x,I,C,_,E,D,Te),_e=Te-me+$}else Te=Xm(x,I,C,_,E,D,Te),_e=Te*m+$,me=Te-_e;_e<1&&(_e=0),Me>=me/2&&(Me=0),_e<5&&(F=Jg);let Wt=_e>0,vr=Te-_e-(Wt?Me:0);me=F(rh(vr,N,A)),de=(O==0?me/2:O==K?0:me)-O*K*((O==0?$/2:0)+(Wt?Me/2:0));const un={stroke:null,fill:null,clip:null,band:null,gaps:null,flags:0},Ln=Ze?null:new Path2D;let Xn=null;if(he!=null)Xn=c.data[he.series[1]];else{let{y0:je,y1:Lt}=d;je!=null&&Lt!=null&&(I=Lt.values(c,i,s,p),Xn=je.values(c,i,s,p))}let Mr=B*me,yt=U*me;for(let je=K==1?s:p;je>=s&&je<=p;je+=K){let Lt=I[je];if(Lt==null)continue;if(Xn!=null){let Kt=Xn[je]??0;if(Lt-Kt==0)continue;se=L(Kt,k,z,R)}let Qt=_.distr!=2||d!=null?x[je]:je,On=C(Qt,_,E,D),yr=L(Zt(Lt,le),k,z,R),hr=F(On-de),mn=F(jr(yr,se)),Wn=F(eo(yr,se)),Nn=mn-Wn;if(Lt!=null){let Kt=Lt<0?yt:Mr,ln=Lt<0?Mr:yt;Ze?(Me>0&&tt[je]!=null&&Q(ct.get(tt[je]),hr,Wn+Ai(Me/2),me,jr(0,Nn-Me),Kt,ln),Ge[je]!=null&&Q(lt.get(Ge[je]),hr,Wn+Ai(Me/2),me,jr(0,Nn-Me),Kt,ln)):Q(Ln,hr,Wn+Ai(Me/2),me,jr(0,Nn-Me),Kt,ln),J(c,i,je,hr-Me/2,Wn,me+Me,Nn)}}return Me>0?un.stroke=Ze?ct:Ln:Ze||(un._fill=b.width==0?b._fill:b._stroke??b._fill,un.width=0),un.fill=Ze?lt:Ln,un})}function mS(n,t){const e=Zt(t==null?void 0:t.alignGaps,0);return(r,f,g,m)=>Is(r,f,(w,h,d,a,l,u,c,i,s,p,b)=>{[g,m]=Zl(d,g,m);let x=w.pxRound,I=B=>x(u(B,a,p,i)),_=B=>x(c(B,l,b,s)),k,C,L;a.ori==0?(k=ac,L=pa,C=Vm):(k=lc,L=fa,C=qm);const D=a.dir*(a.ori==0?1:-1);let R=I(h[D==1?g:m]),E=R,z=[],F=[];for(let B=D==1?g:m;B>=g&&B<=m;B+=D)if(d[B]!=null){let U=h[B],K=I(U);z.push(E=K),F.push(_(d[B]))}const O={stroke:n(z,F,k,L,C,x),fill:null,clip:null,band:null,gaps:null,flags:da},$=O.stroke;let[A,N]=gh(r,f);if(w.fill!=null||A!=0){let B=O.fill=new Path2D($),U=w.fillTo(r,f,w.min,w.max,A),K=_(U);L(B,E,K),L(B,R,K)}if(!w.spanGaps){let B=[];B.push(...mh(h,d,g,m,D,I,e)),O.gaps=B=w.gaps(r,f,g,m,B),O.clip=sc(B,a.ori,i,s,p,b)}return N!=0&&(O.band=N==2?[$o(r,f,g,m,$,-1),$o(r,f,g,m,$,1)]:$o(r,f,g,m,$,N)),O})}function vS(n){return mS(yS,n)}function yS(n,t,e,r,f,g){const m=n.length;if(m<2)return null;const w=new Path2D;if(e(w,n[0],t[0]),m==2)r(w,n[1],t[1]);else{let h=Array(m),d=Array(m-1),a=Array(m-1),l=Array(m-1);for(let u=0;u<m-1;u++)a[u]=t[u+1]-t[u],l[u]=n[u+1]-n[u],d[u]=a[u]/l[u];h[0]=d[0];for(let u=1;u<m-1;u++)d[u]===0||d[u-1]===0||d[u-1]>0!=d[u]>0?h[u]=0:(h[u]=3*(l[u-1]+l[u])/((2*l[u]+l[u-1])/d[u-1]+(l[u]+2*l[u-1])/d[u]),isFinite(h[u])||(h[u]=0));h[m-1]=d[m-2];for(let u=0;u<m-1;u++)f(w,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 w}const yh=new Set;function Zm(){for(let n of yh)n.syncRect(!0)}sa&&(_s(Qk,aa,Zm),_s(Jk,aa,Zm,!0),_s(Yl,aa,()=>{Or.pxRatio=en}));const bS=Ym(),wS=Km();function Qm(n,t,e,r){return(r?[n[0],n[1]].concat(n.slice(2)):[n[0]].concat(n.slice(1))).map((f,g)=>bh(f,g,t,e))}function xS(n,t){return n.map((e,r)=>r==0?{}:rr({},t,e))}function bh(n,t,e,r){return rr({},t==0?e:r,n)}function Jm(n,t,e){return t==null?ca:[t,e]}const CS=Jm;function kS(n,t,e){return t==null?ca:Jl(t,e,eh,!0)}function ev(n,t,e,r){return t==null?ca:Ql(t,e,n.scales[r].log,!1)}const AS=ev;function tv(n,t,e,r){return t==null?ca:Ju(t,e,n.scales[r].log,!1)}const SS=tv;function _S(n,t,e,r,f){let g=jr(Zg(n),Zg(t)),m=t-n,w=Ji(f/r*m,e);do{let h=e[w],d=r*h/m;if(d>=f&&g+(h<5?Zo.get(h):0)<=17)return[h,d]}while(++w<e.length);return[0,0]}function nv(n){let t,e;return n=n.replace(/(\d+)px/,(r,f)=>(t=ur((e=+f)*en))+"px"),[n,t,e]}function $S(n){n.show&&[n.font,n.labelFont].forEach(t=>{let e=gn(t[2]*en,1);t[0]=t[0].replace(/[0-9.]+px/,e+"px"),t[1]=e})}function Or(n,t,e){const r={mode:Zt(n.mode,1)},f=r.mode;function g(V,X,ie,oe){let ge=X.valToPct(V);return oe+ie*(X.dir==-1?1-ge:ge)}function m(V,X,ie,oe){let ge=X.valToPct(V);return oe+ie*(X.dir==-1?ge:1-ge)}function w(V,X,ie,oe){return X.ori==0?g(V,X,ie,oe):m(V,X,ie,oe)}r.valToPosH=g,r.valToPosV=m;let h=!1;r.status=0;const d=r.root=Di(Ok);if(n.id!=null&&(d.id=n.id),Ci(d,n.class),n.title){let V=Di(Pk,d);V.textContent=n.title}const a=Qi("canvas"),l=r.ctx=a.getContext("2d"),u=Di(Fk,d);_s("click",u,V=>{V.target===i&&(rn!=Bi||jt!=xo)&&Hn.click(r,V)},!0);const c=r.under=Di(Wk,u);u.appendChild(a);const i=r.over=Di(Bk,u);n=ua(n);const s=+Zt(n.pxAlign,1),p=zm(s);(n.plugins||[]).forEach(V=>{V.opts&&(n=V.opts(r,n)||n)});const b=n.ms||.001,x=r.series=f==1?Qm(n.series||[],Im,Pm,!1):xS(n.series||[null],Dm),I=r.axes=Qm(n.axes||[],Mm,Lm,!0),_=r.scales={},k=r.bands=n.bands||[];k.forEach(V=>{V.fill=zt(V.fill||null),V.dir=Zt(V.dir,-1)});const C=f==2?x[1].facets[0].scale:x[0].scale,L={axes:Ro,series:ba},D=(n.drawOrder||["axes","series"]).map(V=>L[V]);function R(V){const X=V.distr==3?ie=>_o(ie>0?ie:V.clamp(r,ie,V.min,V.max,V.key)):V.distr==4?ie=>nh(ie,V.asinh):V.distr==100?ie=>V.fwd(ie):ie=>ie;return ie=>{let oe=X(ie),{_min:ge,_max:xe}=V,Ie=xe-ge;return(oe-ge)/Ie}}function E(V){let X=_[V];if(X==null){let ie=(n.scales||Ya)[V]||Ya;if(ie.from!=null){E(ie.from);let oe=rr({},_[ie.from],ie,{key:V});oe.valToPct=R(oe),_[V]=oe}else{X=_[V]=rr({},V==C?Fm:cS,ie),X.key=V;let oe=X.time,ge=X.range,xe=Qo(ge);if((V!=C||f==2&&!oe)&&(xe&&(ge[0]==null||ge[1]==null)&&(ge={min:ge[0]==null?Kg:{mode:1,hard:ge[0],soft:ge[0]},max:ge[1]==null?Kg:{mode:1,hard:ge[1],soft:ge[1]}},xe=!1),!xe&&nc(ge))){let Ie=ge;ge=(Fe,Be,Ke)=>Be==null?ca:Jl(Be,Ke,Ie)}X.range=zt(ge||(oe?CS:V==C?X.distr==3?AS:X.distr==4?SS:Jm:X.distr==3?ev:X.distr==4?tv:kS)),X.auto=zt(xe?!1:X.auto),X.clamp=zt(X.clamp||lS),X._min=X._max=null,X.valToPct=R(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 z=_[C],F=z.distr;let O,$;z.ori==0?(Ci(d,Nk),O=g,$=m):(Ci(d,Dk),O=m,$=g);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(ur(V/b))),B=n.fmtDate||oh,U=b==1?NA(N):FA(N),K=xm(N,wm(b==1?OA:PA,B)),Q=km(N,Cm(BA,B)),J=[],he=r.legend=rr({},jA,n.legend),ne=r.cursor=rr({},YA,{drag:{y:f==2}},n.cursor),le=he.show,se=ne.show,de=he.markers;he.idxs=J,de.width=zt(de.width),de.dash=zt(de.dash),de.stroke=zt(de.stroke),de.fill=zt(de.fill);let me,_e,Te,Me=[],Ze=[],Ge,lt=!1,tt={};if(he.live){const V=x[1]?x[1].values:null;lt=V!=null,Ge=lt?V(r,1,0):{_:0};for(let X in Ge)tt[X]=Ku}if(le)if(me=Qi("table",qk,d),Te=Qi("tbody",null,me),he.mount(r,me),lt){_e=Qi("thead",null,me,Te);let V=Qi("tr",null,_e);Qi("th",null,V);for(var ct in Ge)Qi("th",Eg,V).textContent=ct}else Ci(me,Gk),he.live&&Ci(me,Kk);const Yt={show:!0},Cn={show:!1};function Wt(V,X){if(X==0&&(lt||!he.live||f==2))return ca;let ie=[],oe=Qi("tr",Yk,Te,Te.childNodes[X]);Ci(oe,V.class),V.show||Ci(oe,Ss);let ge=Qi("th",null,oe);if(de.show){let Fe=Di(Xk,ge);if(X>0){let Be=de.width(r,X);Be&&(Fe.style.border=Be+"px "+de.dash(r,X)+" "+de.stroke(r,X)),Fe.style.background=de.fill(r,X)}}let xe=Di(Eg,ge);V.label instanceof HTMLElement?xe.appendChild(V.label):xe.textContent=V.label,X>0&&(de.show||(xe.style.color=V.width>0?de.stroke(r,X):de.fill(r,X)),un("click",ge,Fe=>{if(ne._lock)return;di(Fe);let Be=x.indexOf(V);if((Fe.ctrlKey||Fe.metaKey)!=he.isolate){let Ke=x.some((Xe,Je)=>Je>0&&Je!=Be&&Xe.show);x.forEach((Xe,Je)=>{Je>0&&Jr(Je,Ke?Je==Be?Yt:Cn:Yt,!0,ut.setSeries)})}else Jr(Be,{show:!V.show},!0,ut.setSeries)},!1),pi&&un(Ng,ge,Fe=>{ne._lock||(di(Fe),Jr(x.indexOf(V),ji,!0,ut.setSeries))},!1));for(var Ie in Ge){let Fe=Qi("td",Zk,oe);Fe.textContent="--",ie.push(Fe)}return[oe,ie]}const vr=new Map;function un(V,X,ie,oe=!0){const ge=vr.get(X)||{},xe=ne.bind[V](r,X,ie,oe);xe&&(_s(V,X,ge[V]=xe),vr.set(X,ge))}function Ln(V,X,ie){const oe=vr.get(X)||{};for(let ge in oe)(V==null||ge==V)&&(Qu(ge,X,oe[ge]),delete oe[ge]);V==null&&vr.delete(X)}let Xn=0,Mr=0,yt=0,je=0,Lt=0,Qt=0,On=Lt,yr=Qt,hr=yt,mn=je,Wn=0,Nn=0,Kt=0,ln=0;r.bbox={};let Dr=!1,Gr=!1,Yr=!1,Si=!1,ci=!1,Bn=!1;function ro(V,X,ie){(ie||V!=r.width||X!=r.height)&&ui(V,X),so(!1),Yr=!0,Gr=!0,wo()}function ui(V,X){r.width=Xn=yt=V,r.height=Mr=je=X,Lt=Qt=0,hi(),Jo();let ie=r.bbox;Wn=ie.left=Ts(Lt*en,.5),Nn=ie.top=Ts(Qt*en,.5),Kt=ie.width=Ts(yt*en,.5),ln=ie.height=Ts(je*en,.5)}const Os=3;function Xr(){let V=!1,X=0;for(;!V;){X++;let ie=wa(X),oe=ul(X);V=X==Os||ie&&oe,V||(ui(r.width,r.height),Gr=!0)}}function $n({width:V,height:X}){ro(V,X)}r.setSize=$n;function hi(){let V=!1,X=!1,ie=!1,oe=!1;I.forEach((ge,xe)=>{if(ge.show&&ge._show){let{side:Ie,_size:Fe}=ge,Be=Ie%2,Ke=ge.label!=null?ge.labelSize:0,Xe=Fe+Ke;Xe>0&&(Be?(yt-=Xe,Ie==3?(Lt+=Xe,oe=!0):ie=!0):(je-=Xe,Ie==0?(Qt+=Xe,V=!0):X=!0))}}),gi[0]=V,gi[1]=ie,gi[2]=X,gi[3]=oe,yt-=wr[1]+wr[3],Lt+=wr[3],je-=wr[2]+wr[0],Qt+=wr[0]}function Jo(){let V=Lt+yt,X=Qt+je,ie=Lt,oe=Qt;function ge(xe,Ie){switch(xe){case 1:return V+=Ie,V-Ie;case 2:return X+=Ie,X-Ie;case 3:return ie-=Ie,ie+Ie;case 0:return oe-=Ie,oe+Ie}}I.forEach((xe,Ie)=>{if(xe.show&&xe._show){let Fe=xe.side;xe._pos=ge(Fe,xe._size),xe.label!=null&&(xe._lpos=ge(Fe,xe.labelSize))}})}if(ne.dataIdx==null){let V=ne.hover,X=V.skip=new Set(V.skip??[]);X.add(void 0);let ie=V.prox=zt(V.prox),oe=V.bias??(V.bias=0);ne.dataIdx=(ge,xe,Ie,Fe)=>{if(xe==0)return Ie;let Be=Ie,Ke=ie(ge,xe,Ie,Fe)??fn,Xe=Ke>=0&&Ke<fn,Je=z.ori==0?yt:je,wt=ne.left,Pt=t[0],Ct=t[xe];if(X.has(Ct[Ie])){Be=null;let Nt=null,ft=null,it;if(oe==0||oe==-1)for(it=Ie;Nt==null&&it-- >0;)X.has(Ct[it])||(Nt=it);if(oe==0||oe==1)for(it=Ie;ft==null&&it++<Ct.length;)X.has(Ct[it])||(ft=it);if(Nt!=null||ft!=null)if(Xe){let yn=Nt==null?-1/0:O(Pt[Nt],z,Je,0),En=ft==null?1/0:O(Pt[ft],z,Je,0),ar=wt-yn,Vt=En-wt;ar<=Vt?ar<=Ke&&(Be=Nt):Vt<=Ke&&(Be=ft)}else Be=ft==null?Nt:Nt==null?ft:Ie-Nt<=ft-Ie?Nt:ft}else Xe&&cr(wt-O(Pt[Ie],z,Je,0))>Ke&&(Be=null);return Be}}const di=V=>{ne.event=V};ne.idxs=J,ne._lock=!1;let kn=ne.points;kn.show=zt(kn.show),kn.size=zt(kn.size),kn.stroke=zt(kn.stroke),kn.width=zt(kn.width),kn.fill=zt(kn.fill);const dr=r.focus=rr({},n.focus||{alpha:.3},ne.focus),pi=dr.prox>=0,An=pi&&kn.one;let Tn=[],br=[],fi=[];function mo(V,X){let ie=kn.show(r,X);if(ie instanceof HTMLElement)return Ci(ie,Vk),Ci(ie,V.class),ho(ie,-10,-10,yt,je),i.insertBefore(ie,Tn[X]),ie}function vo(V,X){if(f==1||X>0){let ie=f==1&&_[V.scale].time,oe=V.value;V.value=ie?sm(oe)?km(N,Cm(oe,B)):oe||Q:oe||oS,V.label=V.label||(ie?ZA:XA)}if(An||X>0){V.width=V.width==null?1:V.width,V.paths=V.paths||bS||cA,V.fillTo=zt(V.fillTo||uS),V.pxAlign=+Zt(V.pxAlign,s),V.pxRound=zm(V.pxAlign),V.stroke=zt(V.stroke||null),V.fill=zt(V.fill||null),V._stroke=V._fill=V._paths=V._focus=null;let ie=sS(jr(1,V.width),1),oe=V.points=rr({},{size:ie,width:jr(1,ie*.2),stroke:V.stroke,space:ie*2,paths:wS,_stroke:null,_fill:null},V.points);oe.show=zt(oe.show),oe.filter=zt(oe.filter),oe.fill=zt(oe.fill),oe.stroke=zt(oe.stroke),oe.paths=zt(oe.paths),oe.pxAlign=V.pxAlign}if(le){let ie=Wt(V,X);Me.splice(X,0,ie[0]),Ze.splice(X,0,ie[1]),he.values.push(null)}if(se){J.splice(X,0,null);let ie=null;An?X==0&&(ie=mo(V,X)):X>0&&(ie=mo(V,X)),Tn.splice(X,0,ie),br.splice(X,0,0),fi.splice(X,0,0)}nt("addSeries",X)}function es(V,X){X=X??x.length,V=f==1?bh(V,X,Im,Pm):bh(V,X,{},Dm),x.splice(X,0,V),vo(x[X],X)}r.addSeries=es;function Zr(V){if(x.splice(V,1),le){he.values.splice(V,1),Ze.splice(V,1);let X=Me.splice(V,1)[0];Ln(null,X.firstChild),X.remove()}se&&(J.splice(V,1),Tn.splice(V,1)[0].remove(),br.splice(V,1),fi.splice(V,1)),nt("delSeries",V)}r.delSeries=Zr;const gi=[!1,!1,!1,!1];function Pr(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=zt(V.size),V.space=zt(V.space),V.rotate=zt(V.rotate),Qo(V.incrs)&&V.incrs.forEach(Ie=>{!Zo.has(Ie)&&Zo.set(Ie,im(Ie))}),V.incrs=zt(V.incrs||(oe.distr==2?EA:ge?b==1?LA:DA:Ms)),V.splits=zt(V.splits||(ge&&oe.distr==1?U:oe.distr==3?dh:oe.distr==4?eS:JA)),V.stroke=zt(V.stroke),V.grid.stroke=zt(V.grid.stroke),V.ticks.stroke=zt(V.ticks.stroke),V.border.stroke=zt(V.border.stroke);let xe=V.values;V.values=Qo(xe)&&!Qo(xe[0])?zt(xe):ge?Qo(xe)?xm(N,wm(xe,B)):sm(xe)?WA(N,xe):xe||K:xe||QA,V.filter=zt(V.filter||(oe.distr>=3&&oe.log==10?rS:oe.distr==3&&oe.log==2?iS:em)),V.font=nv(V.font),V.labelFont=nv(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&&(gi[X]=!0,V._el=Di(zk,u))}}function Ot(V,X,ie,oe){let[ge,xe,Ie,Fe]=ie,Be=X%2,Ke=0;return Be==0&&(Fe||xe)&&(Ke=X==0&&!ge||X==2&&!Ie?ur(Mm.size/3):0),Be==1&&(ge||Ie)&&(Ke=X==1&&!xe||X==3&&!Fe?ur(Lm.size/2):0),Ke}const Mo=r.padding=(n.padding||[Ot,Ot,Ot,Ot]).map(V=>zt(Zt(V,Ot))),wr=r._padding=Mo.map((V,X)=>V(r,X,gi,0));let ce,ze=null,Pe=null;const _t=f==1?x[0].idxs:null;let Gt=null,Ht=!1;function xr(V,X){if(t=V??[],r.data=r._data=t,f==2){ce=0;for(let ie=1;ie<x.length;ie++)ce+=t[ie][0].length}else{t.length==0&&(r.data=r._data=t=[[]]),Gt=t[0],ce=Gt.length;let ie=t;if(F==2){ie=t.slice();let oe=ie[0]=Array(ce);for(let ge=0;ge<ce;ge++)oe[ge]=ge}r._data=t=ie}if(so(!0),nt("setData"),F==2&&(Yr=!0),X!==!1){let ie=z;ie.auto(r,Ht)?pr():or(C,ie.min,ie.max),Si=Si||ne.left>=0,Bn=!0,wo()}}r.setData=xr;function pr(){Ht=!0;let V,X;f==1&&(ce>0?(ze=_t[0]=0,Pe=_t[1]=ce-1,V=t[0][ze],X=t[0][Pe],F==2?(V=ze,X=Pe):V==X&&(F==3?[V,X]=Ql(V,V,z.log,!1):F==4?[V,X]=Ju(V,V,z.log,!1):z.time?X=V+ur(86400/b):[V,X]=Jl(V,X,eh,!0))):(ze=_t[0]=V=null,Pe=_t[1]=X=null)),or(C,V,X)}let zn,Cr,vn,io,Fr,ts,Ns,Ds,ns,fr;function Ps(V,X,ie,oe,ge,xe){V??(V=Lg),ie??(ie=ih),oe??(oe="butt"),ge??(ge=Lg),xe??(xe="round"),V!=zn&&(l.strokeStyle=zn=V),ge!=Cr&&(l.fillStyle=Cr=ge),X!=vn&&(l.lineWidth=vn=X),xe!=Fr&&(l.lineJoin=Fr=xe),oe!=ts&&(l.lineCap=ts=oe),ie!=io&&l.setLineDash(io=ie)}function Io(V,X,ie,oe){X!=Cr&&(l.fillStyle=Cr=X),V!=Ns&&(l.font=Ns=V),ie!=Ds&&(l.textAlign=Ds=ie),oe!=ns&&(l.textBaseline=ns=oe)}function rs(V,X,ie,oe,ge=0){if(oe.length>0&&V.auto(r,Ht)&&(X==null||X.min==null)){let xe=Zt(ze,0),Ie=Zt(Pe,oe.length-1),Fe=ie.min==null?rA(oe,xe,Ie,ge,V.distr==3):[ie.min,ie.max];V.min=eo(V.min,ie.min=Fe[0]),V.max=jr(V.max,ie.max=Fe[1])}}const is={min:null,max:null};function yo(){for(let oe in _){let ge=_[oe];A[oe]==null&&(ge.min==null||A[C]!=null&&ge.auto(r,Ht))&&(A[oe]=is)}for(let oe in _){let ge=_[oe];A[oe]==null&&ge.from!=null&&A[ge.from]!=null&&(A[oe]=is)}A[C]!=null&&so(!0);let V={};for(let oe in A){let ge=A[oe];if(ge!=null){let xe=V[oe]=ua(_[oe],dA);if(ge.min!=null)rr(xe,ge);else if(oe!=C||f==2)if(ce==0&&xe.from==null){let Ie=xe.range(r,null,null,oe);xe.min=Ie[0],xe.max=Ie[1]}else xe.min=fn,xe.max=-fn}}if(ce>0){x.forEach((oe,ge)=>{if(f==1){let xe=oe.scale,Ie=A[xe];if(Ie==null)return;let Fe=V[xe];if(ge==0){let Be=Fe.range(r,Fe.min,Fe.max,xe);Fe.min=Be[0],Fe.max=Be[1],ze=Ji(Fe.min,t[0]),Pe=Ji(Fe.max,t[0]),Pe-ze>1&&(t[0][ze]<Fe.min&&ze++,t[0][Pe]>Fe.max&&Pe--),oe.min=Gt[ze],oe.max=Gt[Pe]}else oe.show&&oe.auto&&rs(Fe,Ie,oe,t[ge],oe.sorted);oe.idxs[0]=ze,oe.idxs[1]=Pe}else if(ge>0&&oe.show&&oe.auto){let[xe,Ie]=oe.facets,Fe=xe.scale,Be=Ie.scale,[Ke,Xe]=t[ge],Je=V[Fe],wt=V[Be];Je!=null&&rs(Je,A[Fe],xe,Ke,xe.sorted),wt!=null&&rs(wt,A[Be],Ie,Xe,Ie.sorted),oe.min=Ie.min,oe.max=Ie.max}});for(let oe in V){let ge=V[oe],xe=A[oe];if(ge.from==null&&(xe==null||xe.min==null)){let Ie=ge.range(r,ge.min==fn?null:ge.min,ge.max==-fn?null:ge.max,oe);ge.min=Ie[0],ge.max=Ie[1]}}}for(let oe in V){let ge=V[oe];if(ge.from!=null){let xe=V[ge.from];if(xe.min==null)ge.min=ge.max=null;else{let Ie=ge.range(r,xe.min,xe.max,oe);ge.min=Ie[0],ge.max=Ie[1]}}}let X={},ie=!1;for(let oe in V){let ge=V[oe],xe=_[oe];if(xe.min!=ge.min||xe.max!=ge.max){xe.min=ge.min,xe.max=ge.max;let Ie=xe.distr;xe._min=Ie==3?_o(xe.min):Ie==4?nh(xe.min,xe.asinh):Ie==100?xe.fwd(xe.min):xe.min,xe._max=Ie==3?_o(xe.max):Ie==4?nh(xe.max,xe.asinh):Ie==100?xe.fwd(xe.max):xe.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)Yr=!0,nt("setScale",oe);se&&ne.left>=0&&(Si=Bn=!0)}for(let oe in A)A[oe]=null}function Fs(V){let X=rh(ze-1,0,ce-1),ie=rh(Pe+1,0,ce-1);for(;V[X]==null&&X>0;)X--;for(;V[ie]==null&&ie<ce-1;)ie++;return[X,ie]}function ba(){if(ce>0){let V=x.some(X=>X._focus)&&fr!=dr.alpha;V&&(l.globalAlpha=fr=dr.alpha),x.forEach((X,ie)=>{if(ie>0&&X.show&&(os(ie,!1),os(ie,!0),X._paths==null)){let oe=fr;fr!=X.alpha&&(l.globalAlpha=fr=X.alpha);let ge=f==2?[0,t[ie][0].length-1]:Fs(t[ie]);X._paths=X.paths(r,ie,ge[0],ge[1]),fr!=oe&&(l.globalAlpha=fr=oe)}}),x.forEach((X,ie)=>{if(ie>0&&X.show){let oe=fr;fr!=X.alpha&&(l.globalAlpha=fr=X.alpha),X._paths!=null&&ss(ie,!1);{let ge=X._paths!=null?X._paths.gaps:null,xe=X.points.show(r,ie,ze,Pe,ge),Ie=X.points.filter(r,ie,xe,ge);(xe||Ie)&&(X.points._paths=X.points.paths(r,ie,ze,Pe,Ie),ss(ie,!0))}fr!=oe&&(l.globalAlpha=fr=oe),nt("drawSeries",ie)}}),V&&(l.globalAlpha=fr=1)}}function os(V,X){let ie=X?x[V].points:x[V];ie._stroke=ie.stroke(r,V),ie._fill=ie.fill(r,V)}function ss(V,X){let ie=X?x[V].points:x[V],{stroke:oe,fill:ge,clip:xe,flags:Ie,_stroke:Fe=ie._stroke,_fill:Be=ie._fill,_width:Ke=ie.width}=ie._paths;Ke=gn(Ke*en,3);let Xe=null,Je=Ke%2/2;X&&Be==null&&(Be=Ke>0?"#fff":Fe);let wt=ie.pxAlign==1&&Je>0;if(wt&&l.translate(Je,Je),!X){let Pt=Wn-Ke/2,Ct=Nn-Ke/2,Nt=Kt+Ke,ft=ln+Ke;Xe=new Path2D,Xe.rect(Pt,Ct,Nt,ft)}X?Eo(Fe,Ke,ie.dash,ie.cap,Be,oe,ge,Ie,xe):Ws(V,Fe,Ke,ie.dash,ie.cap,Be,oe,ge,Ie,Xe,xe),wt&&l.translate(-Je,-Je)}function Ws(V,X,ie,oe,ge,xe,Ie,Fe,Be,Ke,Xe){let Je=!1;Be!=0&&k.forEach((wt,Pt)=>{if(wt.series[0]==V){let Ct=x[wt.series[1]],Nt=t[wt.series[1]],ft=(Ct._paths||Ya).band;Qo(ft)&&(ft=wt.dir==1?ft[0]:ft[1]);let it,yn=null;Ct.show&&ft&&oA(Nt,ze,Pe)?(yn=wt.fill(r,Pt)||xe,it=Ct._paths.clip):ft=null,Eo(X,ie,oe,ge,yn,Ie,Fe,Be,Ke,Xe,it,ft),Je=!0}}),Je||Eo(X,ie,oe,ge,xe,Ie,Fe,Be,Ke,Xe)}const as=da|fh;function Eo(V,X,ie,oe,ge,xe,Ie,Fe,Be,Ke,Xe,Je){Ps(V,X,ie,oe,ge),(Be||Ke||Je)&&(l.save(),Be&&l.clip(Be),Ke&&l.clip(Ke)),Je?(Fe&as)==as?(l.clip(Je),Xe&&l.clip(Xe),gr(ge,Ie),Wi(V,xe,X)):Fe&fh?(gr(ge,Ie),l.clip(Je),Wi(V,xe,X)):Fe&da&&(l.save(),l.clip(Je),Xe&&l.clip(Xe),gr(ge,Ie),l.restore(),Wi(V,xe,X)):(gr(ge,Ie),Wi(V,xe,X)),(Be||Ke||Je)&&l.restore()}function Wi(V,X,ie){ie>0&&(X instanceof Map?X.forEach((oe,ge)=>{l.strokeStyle=zn=ge,l.stroke(oe)}):X!=null&&V&&l.stroke(X))}function gr(V,X){X instanceof Map?X.forEach((ie,oe)=>{l.fillStyle=Cr=oe,l.fill(ie)}):X!=null&&V&&l.fill(X)}function bo(V,X,ie,oe){let ge=I[V],xe;if(oe<=0)xe=[0,0];else{let Ie=ge._space=ge.space(r,V,X,ie,oe),Fe=ge._incrs=ge.incrs(r,V,X,ie,oe,Ie);xe=_S(X,ie,Fe,oe,Ie)}return ge._found=xe}function oo(V,X,ie,oe,ge,xe,Ie,Fe,Be,Ke){let Xe=Ie%2/2;s==1&&l.translate(Xe,Xe),Ps(Fe,Ie,Be,Ke,Fe),l.beginPath();let Je,wt,Pt,Ct,Nt=ge+(oe==0||oe==3?-xe:xe);ie==0?(wt=ge,Ct=Nt):(Je=ge,Pt=Nt);for(let ft=0;ft<V.length;ft++)X[ft]!=null&&(ie==0?Je=Pt=V[ft]:wt=Ct=V[ft],l.moveTo(Je,wt),l.lineTo(Pt,Ct));l.stroke(),s==1&&l.translate(-Xe,-Xe)}function wa(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,so(!1));return}else ie._show||(X=!1,ie._show=!0,so(!1));let xe=ie.side,Ie=xe%2,{min:Fe,max:Be}=ge,[Ke,Xe]=bo(oe,Fe,Be,Ie==0?yt:je);if(Xe==0)return;let Je=ge.distr==2,wt=ie._splits=ie.splits(r,oe,Fe,Be,Ke,Xe,Je),Pt=ge.distr==2?wt.map(it=>Gt[it]):wt,Ct=ge.distr==2?Gt[wt[1]]-Gt[wt[0]]:Ke,Nt=ie._values=ie.values(r,ie.filter(r,Pt,oe,Xe,Ct),oe,Xe,Ct);ie._rotate=xe==2?ie.rotate(r,Nt,oe,Xe):0;let ft=ie._size;ie._size=Pi(ie.size(r,Nt,oe,V)),ft!=null&&ie._size!=ft&&(X=!1)}),X}function ul(V){let X=!0;return Mo.forEach((ie,oe)=>{let ge=ie(r,oe,gi,V);ge!=wr[oe]&&(X=!1),wr[oe]=ge}),X}function Ro(){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,xe,Ie=X.stroke(r,V),Fe=ie==0||ie==3?-1:1,[Be,Ke]=X._found;if(X.label!=null){let dn=X.labelGap*Fe,_r=ur((X._lpos+dn)*en);Io(X.labelFont[0],Ie,"center",ie==2?qa:Rg),l.save(),oe==1?(ge=xe=0,l.translate(_r,ur(Nn+ln/2)),l.rotate((ie==3?-ec:ec)/2)):(ge=ur(Wn+Kt/2),xe=_r);let Po=Qg(X.label)?X.label(r,V,Be,Ke):X.label;l.fillText(Po,ge,xe),l.restore()}if(Ke==0)continue;let Xe=_[X.scale],Je=oe==0?Kt:ln,wt=oe==0?Wn:Nn,Pt=X._splits,Ct=Xe.distr==2?Pt.map(dn=>Gt[dn]):Pt,Nt=Xe.distr==2?Gt[Pt[1]]-Gt[Pt[0]]:Be,ft=X.ticks,it=X.border,yn=ft.show?ft.size:0,En=ur(yn*en),ar=ur((X.alignTo==2?X._size-yn-X.gap:X.gap)*en),Vt=X._rotate*-ec/180,fe=p(X._pos*en),$e=(En+ar)*Fe,Ce=fe+$e;xe=oe==0?Ce:0,ge=oe==1?Ce:0;let Ue=X.font[0],dt=X.align==1?oa:X.align==2?ju:Vt>0?oa:Vt<0?ju:oe==0?"center":ie==3?ju:oa,Tt=Vt||oe==1?"middle":ie==2?qa:Rg;Io(Ue,Ie,dt,Tt);let Xt=X.font[1]*X.lineGap,Et=Pt.map(dn=>p(w(dn,Xe,Je,wt))),ei=X._values;for(let dn=0;dn<ei.length;dn++){let _r=ei[dn];if(_r!=null){oe==0?ge=Et[dn]:xe=Et[dn],_r=""+_r;let Po=_r.indexOf(`
1495
- `)==-1?[_r]:_r.split(/\n/gm);for(let Vn=0;Vn<Po.length;Vn++){let zs=Po[Vn];Vt?(l.save(),l.translate(ge,xe+Vn*Xt),l.rotate(Vt),l.fillText(zs,0,0),l.restore()):l.fillText(zs,ge,xe+Vn*Xt)}}}ft.show&&oo(Et,ft.filter(r,Ct,V,Ke,Nt),oe,ie,fe,En,gn(ft.width*en,3),ft.stroke(r,V),ft.dash,ft.cap);let Ui=X.grid;Ui.show&&oo(Et,Ui.filter(r,Ct,V,Ke,Nt),oe,oe==0?2:1,oe==0?Nn:Wn,oe==0?ln:Kt,gn(Ui.width*en,3),Ui.stroke(r,V),Ui.dash,Ui.cap),it.show&&oo([fe],[1],oe==0?1:0,oe==0?1:2,oe==1?Nn:Wn,oe==1?ln:Kt,gn(it.width*en,3),it.stroke(r,V),it.dash,it.cap)}nt("drawAxes")}function so(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 Lo=!1,ls=!1,Oo=[];function xa(){ls=!1;for(let V=0;V<Oo.length;V++)nt(...Oo[V]);Oo.length=0}function wo(){Lo||(bA(Ca),Lo=!0)}function We(V,X=!1){Lo=!0,ls=X,V(r),Ca(),X&&Oo.length>0&&queueMicrotask(xa)}r.batch=We;function Ca(){if(Dr&&(yo(),Dr=!1),Yr&&(Xr(),Yr=!1),Gr){if(xn(c,oa,Lt),xn(c,qa,Qt),xn(c,Ua,yt),xn(c,Va,je),xn(i,oa,Lt),xn(i,qa,Qt),xn(i,Ua,yt),xn(i,Va,je),xn(u,Ua,Xn),xn(u,Va,Mr),a.width=ur(Xn*en),a.height=ur(Mr*en),I.forEach(({_el:V,_show:X,_size:ie,_pos:oe,side:ge})=>{if(V!=null)if(X){let xe=ge===3||ge===0?ie:0,Ie=ge%2==1;xn(V,Ie?"left":"top",oe-xe),xn(V,Ie?"width":"height",ie),xn(V,Ie?"top":"left",Ie?Qt:Lt),xn(V,Ie?"height":"width",Ie?je:yt),Xu(V,Ss)}else Ci(V,Ss)}),zn=Cr=vn=Fr=ts=Ns=Ds=ns=io=null,fr=1,W(!0),Lt!=On||Qt!=yr||yt!=hr||je!=mn){so(!1);let V=yt/hr,X=je/mn;if(se&&!Si&&ne.left>=0){ne.left*=V,ne.top*=X,_i&&ho(_i,ur(ne.left),0,yt,je),Zn&&ho(Zn,0,ur(ne.top),yt,je);for(let ie=0;ie<Tn.length;ie++){let oe=Tn[ie];oe!=null&&(br[ie]*=V,fi[ie]*=X,ho(oe,Pi(br[ie]),Pi(fi[ie]),yt,je))}}if(bt.show&&!ci&&bt.left>=0&&bt.width>0){bt.left*=V,bt.width*=V,bt.top*=X,bt.height*=X;for(let ie in Y)xn(Qr,ie,bt[ie])}On=Lt,yr=Qt,hr=yt,mn=je}nt("setSize"),Gr=!1}Xn>0&&Mr>0&&(l.clearRect(0,0,a.width,a.height),nt("drawClear"),D.forEach(V=>V()),nt("draw")),bt.show&&ci&&(hn(bt),ci=!1),se&&Si&&(S(null,!0,!1),Si=!1),he.show&&he.live&&Bn&&(y(),Bn=!1),h||(h=!0,r.status=1,nt("ready")),Ht=!1,Lo=!1}r.redraw=(V,X)=>{Yr=X||!1,V!==!1?or(C,z.min,z.max):wo()};function Ne(V,X){let ie=_[V];if(ie.from==null){if(ce==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(ce>1&&X.min!=null&&X.max!=null&&X.max-X.min<1e-16)return;V==C&&ie.distr==2&&ce>0&&(X.min=Ji(X.min,t[0]),X.max=Ji(X.max,t[0]),X.min==X.max&&X.max++),A[V]=X,Dr=!0,wo()}}r.setScale=Ne;let Dn,No,_i,Zn,ka,Do,Bi,xo,nn,Jt,rn,jt,zi=!1;const Hn=ne.drag;let He=Hn.x,bn=Hn.y;se&&(ne.x&&(Dn=Di(jk,i)),ne.y&&(No=Di(Uk,i)),z.ori==0?(_i=Dn,Zn=No):(_i=No,Zn=Dn),rn=ne.left,jt=ne.top);const bt=r.select=rr({show:!0,over:!0,left:0,width:0,top:0,height:0},n.select),Qr=bt.show?Di(Hk,bt.over?i:c):null;function hn(V,X){if(bt.show){for(let ie in V)bt[ie]=V[ie],ie in Y&&xn(Qr,ie,V[ie]);X!==!1&&nt("setSelect")}}r.setSelect=hn;function Sn(V){if(x[V].show)le&&Xu(Me[V],Ss);else if(le&&Ci(Me[V],Ss),se){let X=An?Tn[0]:Tn[V];X!=null&&ho(X,-10,-10,yt,je)}}function or(V,X,ie){Ne(V,{min:X,max:ie})}function Jr(V,X,ie,oe){X.focus!=null&&kr(V),X.show!=null&&x.forEach((ge,xe)=>{xe>0&&(V==xe||V==null)&&(ge.show=X.show,Sn(xe),f==2?(or(ge.facets[0].scale,null,null),or(ge.facets[1].scale,null,null)):or(ge.scale,null,null),wo())}),ie!==!1&&nt("setSeries",V,X),oe&&$t("setSeries",r,V,X)}r.setSeries=Jr;function Hi(V,X){rr(k[V],X)}function jn(V,X){V.fill=zt(V.fill||null),V.dir=Zt(V.dir,-1),X=X??k.length,k.splice(X,0,V)}function mi(V){V==null?k.length=0:k.splice(V,1)}r.addBand=jn,r.setBand=Hi,r.delBand=mi;function cs(V,X){x[V].alpha=X,se&&Tn[V]!=null&&(Tn[V].style.opacity=X),le&&Me[V]&&(Me[V].style.opacity=X)}let Un,$i,Ti;const ji={focus:!0};function kr(V){if(V!=Ti){let X=V==null,ie=dr.alpha!=1;x.forEach((oe,ge)=>{if(f==1||ge>0){let xe=X||ge==0||ge==V;oe._focus=X?null:xe,ie&&cs(ge,xe?1:dr.alpha)}}),Ti=V,ie&&wo()}}le&&pi&&un(Dg,me,V=>{ne._lock||(di(V),Ti!=null&&Jr(null,ji,!0,ut.setSeries))});function Ar(V,X,ie){let oe=_[X];ie&&(V=V/en-(oe.ori==1?Qt:Lt));let ge=yt;oe.ori==1&&(ge=je,V=ge-V),oe.dir==-1&&(V=ge-V);let xe=oe._min,Ie=oe._max,Fe=V/ge,Be=xe+(Ie-xe)*Fe,Ke=oe.distr;return Ke==3?la(10,Be):Ke==4?aA(Be,oe.asinh):Ke==100?oe.bwd(Be):Be}function Ir(V,X){let ie=Ar(V,C,X);return Ji(ie,t[0],ze,Pe)}r.valToIdx=V=>Ji(V,t[0]),r.posToIdx=Ir,r.posToVal=Ar,r.valToPos=(V,X,ie)=>_[X].ori==0?g(V,_[X],ie?Kt:yt,ie?Wn:0):m(V,_[X],ie?ln:je,ie?Nn:0),r.setCursor=(V,X,ie)=>{rn=V.left,jt=V.top,S(null,X,ie)};function Bs(V,X){xn(Qr,oa,bt.left=V),xn(Qr,Ua,bt.width=X)}function Er(V,X){xn(Qr,qa,bt.top=V),xn(Qr,Va,bt.height=X)}let Wr=z.ori==0?Bs:Er,Mi=z.ori==1?Bs:Er;function Ii(){if(le&&he.live)for(let V=f==2?1:0;V<x.length;V++){if(V==0&&lt)continue;let X=he.values[V],ie=0;for(let oe in X)Ze[V][ie++].firstChild.nodeValue=X[oe]}}function y(V,X){if(V!=null&&(V.idxs?V.idxs.forEach((ie,oe)=>{J[oe]=ie}):hA(V.idx)||J.fill(V.idx),he.idx=J[0]),le&&he.live){for(let ie=0;ie<x.length;ie++)(ie>0||f==1&&!lt)&&T(ie,J[ie]);Ii()}Bn=!1,X!==!1&&nt("setLegend")}r.setLegend=y;function T(V,X){let ie=x[V],oe=V==0&&F==2?Gt:t[V],ge;lt?ge=ie.values(r,V,X)??tt:(ge=ie.value(r,X==null?null:oe[X],V,X),ge=ge==null?tt:{_:ge}),he.values[V]=ge}function S(V,X,ie){nn=rn,Jt=jt,[rn,jt]=ne.move(r,rn,jt),ne.left=rn,ne.top=jt,se&&(_i&&ho(_i,ur(rn),0,yt,je),Zn&&ho(Zn,0,ur(jt),yt,je));let oe,ge=ze>Pe;Un=fn,$i=null;let xe=z.ori==0?yt:je,Ie=z.ori==1?yt:je;if(rn<0||ce==0||ge){oe=ne.idx=null;for(let Fe=0;Fe<x.length;Fe++){let Be=Tn[Fe];Be!=null&&ho(Be,-10,-10,yt,je)}pi&&Jr(null,ji,!0,V==null&&ut.setSeries),he.live&&(J.fill(oe),Bn=!0)}else{let Fe,Be,Ke;f==1&&(Fe=z.ori==0?rn:jt,Be=Ar(Fe,C),oe=ne.idx=Ji(Be,t[0],ze,Pe),Ke=O(t[0][oe],z,xe,0));let Xe=-10,Je=-10,wt=0,Pt=0,Ct=!0,Nt="",ft="";for(let it=f==2?1:0;it<x.length;it++){let yn=x[it],En=J[it],ar=En==null?null:f==1?t[it][En]:t[it][1][En],Vt=ne.dataIdx(r,it,oe,Be),fe=Vt==null?null:f==1?t[it][Vt]:t[it][1][Vt];if(Bn=Bn||fe!=ar||Vt!=En,J[it]=Vt,it>0&&yn.show){let $e=Vt==null?-10:Vt==oe?Ke:O(f==1?t[0][Vt]:t[it][0][Vt],z,xe,0),Ce=fe==null?-10:$(fe,f==1?_[yn.scale]:_[yn.facets[1].scale],Ie,0);if(pi&&fe!=null){let Ue=z.ori==1?rn:jt,dt=cr(dr.dist(r,it,Vt,Ce,Ue));if(dt<Un){let Tt=dr.bias;if(Tt!=0){let Xt=Ar(Ue,yn.scale),Et=fe>=0?1:-1,ei=Xt>=0?1:-1;ei==Et&&(ei==1?Tt==1?fe>=Xt:fe<=Xt:Tt==1?fe<=Xt:fe>=Xt)&&(Un=dt,$i=it)}else Un=dt,$i=it}}if(Bn||An){let Ue,dt;z.ori==0?(Ue=$e,dt=Ce):(Ue=Ce,dt=$e);let Tt,Xt,Et,ei,Ui,dn,_r=!0,Po=kn.bbox;if(Po!=null){_r=!1;let Vn=Po(r,it);Et=Vn.left,ei=Vn.top,Tt=Vn.width,Xt=Vn.height}else Et=Ue,ei=dt,Tt=Xt=kn.size(r,it);if(dn=kn.fill(r,it),Ui=kn.stroke(r,it),An)it==$i&&Un<=dr.prox&&(Xe=Et,Je=ei,wt=Tt,Pt=Xt,Ct=_r,Nt=dn,ft=Ui);else{let Vn=Tn[it];Vn!=null&&(br[it]=Et,fi[it]=ei,jg(Vn,Tt,Xt,_r),zg(Vn,dn,Ui),ho(Vn,Pi(Et),Pi(ei),yt,je))}}}}if(An){let it=dr.prox,yn=Ti==null?Un<=it:Un>it||$i!=Ti;if(Bn||yn){let En=Tn[0];En!=null&&(br[0]=Xe,fi[0]=Je,jg(En,wt,Pt,Ct),zg(En,Nt,ft),ho(En,Pi(Xe),Pi(Je),yt,je))}}}if(bt.show&&zi)if(V!=null){let[Fe,Be]=ut.scales,[Ke,Xe]=ut.match,[Je,wt]=V.cursor.sync.scales,Pt=V.cursor.drag;if(He=Pt._x,bn=Pt._y,He||bn){let{left:Ct,top:Nt,width:ft,height:it}=V.select,yn=V.scales[Je].ori,En=V.posToVal,ar,Vt,fe,$e,Ce,Ue=Fe!=null&&Ke(Fe,Je),dt=Be!=null&&Xe(Be,wt);Ue&&He?(yn==0?(ar=Ct,Vt=ft):(ar=Nt,Vt=it),fe=_[Fe],$e=O(En(ar,Je),fe,xe,0),Ce=O(En(ar+Vt,Je),fe,xe,0),Wr(eo($e,Ce),cr(Ce-$e))):Wr(0,xe),dt&&bn?(yn==1?(ar=Ct,Vt=ft):(ar=Nt,Vt=it),fe=_[Be],$e=$(En(ar,wt),fe,Ie,0),Ce=$(En(ar+Vt,wt),fe,Ie,0),Mi(eo($e,Ce),cr(Ce-$e))):Mi(0,Ie)}else Z()}else{let Fe=cr(nn-ka),Be=cr(Jt-Do);if(z.ori==1){let wt=Fe;Fe=Be,Be=wt}He=Hn.x&&Fe>=Hn.dist,bn=Hn.y&&Be>=Hn.dist;let Ke=Hn.uni;Ke!=null?He&&bn&&(He=Fe>=Ke,bn=Be>=Ke,!He&&!bn&&(Be>Fe?bn=!0:He=!0)):Hn.x&&Hn.y&&(He||bn)&&(He=bn=!0);let Xe,Je;He&&(z.ori==0?(Xe=Bi,Je=rn):(Xe=xo,Je=jt),Wr(eo(Xe,Je),cr(Je-Xe)),bn||Mi(0,Ie)),bn&&(z.ori==1?(Xe=Bi,Je=rn):(Xe=xo,Je=jt),Mi(eo(Xe,Je),cr(Je-Xe)),He||Wr(0,xe)),!He&&!bn&&(Wr(0,0),Mi(0,0))}if(Hn._x=He,Hn._y=bn,V==null){if(ie){if(Mn!=null){let[Fe,Be]=ut.scales;ut.values[0]=Fe!=null?Ar(z.ori==0?rn:jt,Fe):null,ut.values[1]=Be!=null?Ar(z.ori==1?rn:jt,Be):null}$t(Vu,r,rn,jt,yt,je,oe)}if(pi){let Fe=ie&&ut.setSeries,Be=dr.prox;Ti==null?Un<=Be&&Jr($i,ji,!0,Fe):Un>Be?Jr(null,ji,!0,Fe):$i!=Ti&&Jr($i,ji,!0,Fe)}}Bn&&(he.idx=oe,y()),X!==!1&&nt("setCursor")}let P=null;Object.defineProperty(r,"rect",{get(){return P==null&&W(!1),P}});function W(V=!1){V?P=null:(P=i.getBoundingClientRect(),nt("syncRect",P))}function H(V,X,ie,oe,ge,xe,Ie){ne._lock||zi&&V!=null&&V.movementX==0&&V.movementY==0||(q(V,X,ie,oe,ge,xe,Ie,!1,V!=null),V!=null?S(null,!0,!0):S(X,!0,!1))}function q(V,X,ie,oe,ge,xe,Ie,Fe,Be){if(P==null&&W(!1),di(V),V!=null)ie=V.clientX-P.left,oe=V.clientY-P.top;else{if(ie<0||oe<0){rn=-10,jt=-10;return}let[Ke,Xe]=ut.scales,Je=X.cursor.sync,[wt,Pt]=Je.values,[Ct,Nt]=Je.scales,[ft,it]=ut.match,yn=X.axes[0].side%2==1,En=z.ori==0?yt:je,ar=z.ori==1?yt:je,Vt=yn?xe:ge,fe=yn?ge:xe,$e=yn?oe:ie,Ce=yn?ie:oe;if(Ct!=null?ie=ft(Ke,Ct)?w(wt,_[Ke],En,0):-10:ie=En*($e/Vt),Nt!=null?oe=it(Xe,Nt)?w(Pt,_[Xe],ar,0):-10:oe=ar*(Ce/fe),z.ori==1){let Ue=ie;ie=oe,oe=Ue}}Be&&(X==null||X.cursor.event.type==Vu)&&((ie<=1||ie>=yt-1)&&(ie=Ts(ie,yt)),(oe<=1||oe>=je-1)&&(oe=Ts(oe,je))),Fe?(ka=ie,Do=oe,[Bi,xo]=ne.move(r,ie,oe)):(rn=ie,jt=oe)}const Y={width:0,height:0,left:0,top:0};function Z(){hn(Y,!1)}let re,ae,be,ke;function ve(V,X,ie,oe,ge,xe,Ie){zi=!0,He=bn=Hn._x=Hn._y=!1,q(V,X,ie,oe,ge,xe,Ie,!0,!1),V!=null&&(un(qu,Gu,we,!1),$t(Og,r,Bi,xo,yt,je,null));let{left:Fe,top:Be,width:Ke,height:Xe}=bt;re=Fe,ae=Be,be=Ke,ke=Xe}function we(V,X,ie,oe,ge,xe,Ie){zi=Hn._x=Hn._y=!1,q(V,X,ie,oe,ge,xe,Ie,!1,!0);let{left:Fe,top:Be,width:Ke,height:Xe}=bt,Je=Ke>0||Xe>0,wt=re!=Fe||ae!=Be||be!=Ke||ke!=Xe;if(Je&&wt&&hn(bt),Hn.setScale&&Je&&wt){let Pt=Fe,Ct=Ke,Nt=Be,ft=Xe;if(z.ori==1&&(Pt=Be,Ct=Xe,Nt=Fe,ft=Ke),He&&or(C,Ar(Pt,C),Ar(Pt+Ct,C)),bn)for(let it in _){let yn=_[it];it!=C&&yn.from==null&&yn.min!=fn&&or(it,Ar(Nt+ft,it),Ar(Nt,it))}Z()}else ne.lock&&(ne._lock=!ne._lock,S(X,!0,V!=null));V!=null&&(Ln(qu,Gu),$t(qu,r,rn,jt,yt,je,null))}function Oe(V,X,ie,oe,ge,xe,Ie){if(ne._lock)return;di(V);let Fe=zi;if(zi){let Be=!0,Ke=!0,Xe=10,Je,wt;z.ori==0?(Je=He,wt=bn):(Je=bn,wt=He),Je&&wt&&(Be=rn<=Xe||rn>=yt-Xe,Ke=jt<=Xe||jt>=je-Xe),Je&&Be&&(rn=rn<Bi?0:yt),wt&&Ke&&(jt=jt<xo?0:je),S(null,!0,!0),zi=!1}rn=-10,jt=-10,J.fill(null),S(null,!0,!0),Fe&&(zi=Fe)}function Le(V,X,ie,oe,ge,xe,Ie){ne._lock||(di(V),pr(),Z(),V!=null&&$t(Pg,r,rn,jt,yt,je,null))}function qe(){I.forEach($S),ro(r.width,r.height,!0)}_s(Yl,aa,qe);const at={};at.mousedown=ve,at.mousemove=H,at.mouseup=we,at.dblclick=Le,at.setSeries=(V,X,ie,oe)=>{let ge=ut.match[2];ie=ge(r,X,ie),ie!=-1&&Jr(ie,oe,!0,!1)},se&&(un(Og,i,ve),un(Vu,i,H),un(Ng,i,V=>{di(V),W(!1)}),un(Dg,i,Oe),un(Pg,i,Le),yh.add(r),r.syncRect=W);const Qe=r.hooks=n.hooks||{};function nt(V,X,ie){ls?Oo.push([V,X,ie]):V in Qe&&Qe[V].forEach(oe=>{oe.call(null,r,X,ie)})}(n.plugins||[]).forEach(V=>{for(let X in V.hooks)Qe[X]=(Qe[X]||[]).concat(V.hooks[X])});const wn=(V,X,ie)=>ie,ut=rr({key:null,setSeries:!1,filters:{pub:tm,sub:tm},scales:[C,x[1]?x[1].scale:null],match:[nm,nm,wn],values:[null,null]},ne.sync);ut.match.length==2&&ut.match.push(wn),ne.sync=ut;const Mn=ut.key,xt=Bm(Mn);function $t(V,X,ie,oe,ge,xe,Ie){ut.filters.pub(V,X,ie,oe,ge,xe,Ie)&&xt.pub(V,X,ie,oe,ge,xe,Ie)}xt.sub(r);function sr(V,X,ie,oe,ge,xe,Ie){ut.filters.sub(V,X,ie,oe,ge,xe,Ie)&&at[V](null,X,ie,oe,ge,xe,Ie)}r.pub=sr;function Sr(){xt.unsub(r),yh.delete(r),vr.clear(),Qu(Yl,aa,qe),d.remove(),me==null||me.remove(),nt("destroy")}r.destroy=Sr;function In(){nt("init",n,t),xr(t||n.data,!1),A[C]?Ne(C,A[C]):pr(),ci=bt.show&&(bt.width>0||bt.height>0),Si=Bn=!0,ro(n.width,n.height)}return x.forEach(vo),I.forEach(Pr),e?e instanceof HTMLElement?(e.appendChild(d),In()):e(r,In):In(),r}Or.assign=rr,Or.fmtNum=th,Or.rangeNum=Jl,Or.rangeLog=Ql,Or.rangeAsinh=Ju,Or.orient=Is,Or.pxRatio=en,Or.join=yA,Or.fmtDate=oh,Or.tzDate=MA,Or.sync=Bm;{Or.addGap=hS,Or.clipGaps=sc;let n=Or.paths={points:Km};n.linear=Ym,n.stepped=fS,n.bars=gS,n.spline=vS}var rv,iv;function TS(){return iv||(iv=1,rv=function(n,t,e,r,f){var g,m;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(g=r+(f-r>>>1),m=+e(n[g],t,g,n),m<0)r=g+1;else if(m>0)f=g-1;else return g;return~r}),rv}var MS=TS();const xD=er("b",El(MS));var wh,ov;function IS(){if(ov)return wh;ov=1;function n(t,e,r){var f=-1,g=t.length;e<0&&(e=-e>g?0:g+e),r=r>g?g:r,r<0&&(r+=g),g=e>r?0:r-e>>>0,e>>>=0;for(var m=Array(g);++f<g;)m[f]=t[f+e];return m}return wh=n,wh}var xh,sv;function ES(){if(sv)return xh;sv=1;var n=IS();function t(e,r,f){var g=e.length;return f=f===void 0?g:f,!r&&f>=g?e:n(e,r,f)}return xh=t,xh}var Ch,av;function lv(){if(av)return Ch;av=1;var n="\\ud800-\\udfff",t="\\u0300-\\u036f",e="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",f=t+e+r,g="\\ufe0e\\ufe0f",m="\\u200d",w=RegExp("["+m+n+f+g+"]");function h(d){return w.test(d)}return Ch=h,Ch}var kh,cv;function RS(){if(cv)return kh;cv=1;function n(t){return t.split("")}return kh=n,kh}var Ah,uv;function LS(){if(uv)return Ah;uv=1;var n="\\ud800-\\udfff",t="\\u0300-\\u036f",e="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",f=t+e+r,g="\\ufe0e\\ufe0f",m="["+n+"]",w="["+f+"]",h="\\ud83c[\\udffb-\\udfff]",d="(?:"+w+"|"+h+")",a="[^"+n+"]",l="(?:\\ud83c[\\udde6-\\uddff]){2}",u="[\\ud800-\\udbff][\\udc00-\\udfff]",c="\\u200d",i=d+"?",s="["+g+"]?",p="(?:"+c+"(?:"+[a,l,u].join("|")+")"+s+i+")*",b=s+i+p,x="(?:"+[a+w+"?",w,l,u,m].join("|")+")",I=RegExp(h+"(?="+h+")|"+x+b,"g");function _(k){return k.match(I)||[]}return Ah=_,Ah}var Sh,hv;function OS(){if(hv)return Sh;hv=1;var n=RS(),t=lv(),e=LS();function r(f){return t(f)?e(f):n(f)}return Sh=r,Sh}var _h,dv;function NS(){if(dv)return _h;dv=1;var n=typeof Xo=="object"&&Xo&&Xo.Object===Object&&Xo;return _h=n,_h}var $h,pv;function DS(){if(pv)return $h;pv=1;var n=NS(),t=typeof self=="object"&&self&&self.Object===Object&&self,e=n||t||Function("return this")();return $h=e,$h}var Th,fv;function Mh(){if(fv)return Th;fv=1;var n=DS(),t=n.Symbol;return Th=t,Th}var Ih,gv;function PS(){if(gv)return Ih;gv=1;function n(t,e){for(var r=-1,f=t==null?0:t.length,g=Array(f);++r<f;)g[r]=e(t[r],r,t);return g}return Ih=n,Ih}var Eh,mv;function FS(){if(mv)return Eh;mv=1;var n=Array.isArray;return Eh=n,Eh}var Rh,vv;function WS(){if(vv)return Rh;vv=1;var n=Mh(),t=Object.prototype,e=t.hasOwnProperty,r=t.toString,f=n?n.toStringTag:void 0;function g(m){var w=e.call(m,f),h=m[f];try{m[f]=void 0;var d=!0}catch{}var a=r.call(m);return d&&(w?m[f]=h:delete m[f]),a}return Rh=g,Rh}var Lh,yv;function BS(){if(yv)return Lh;yv=1;var n=Object.prototype,t=n.toString;function e(r){return t.call(r)}return Lh=e,Lh}var Oh,bv;function zS(){if(bv)return Oh;bv=1;var n=Mh(),t=WS(),e=BS(),r="[object Null]",f="[object Undefined]",g=n?n.toStringTag:void 0;function m(w){return w==null?w===void 0?f:r:g&&g in Object(w)?t(w):e(w)}return Oh=m,Oh}var Nh,wv;function HS(){if(wv)return Nh;wv=1;function n(t){return t!=null&&typeof t=="object"}return Nh=n,Nh}var Dh,xv;function jS(){if(xv)return Dh;xv=1;var n=zS(),t=HS(),e="[object Symbol]";function r(f){return typeof f=="symbol"||t(f)&&n(f)==e}return Dh=r,Dh}var Ph,Cv;function US(){if(Cv)return Ph;Cv=1;var n=Mh(),t=PS(),e=FS(),r=jS(),f=n?n.prototype:void 0,g=f?f.toString:void 0;function m(w){if(typeof w=="string")return w;if(e(w))return t(w,m)+"";if(r(w))return g?g.call(w):"";var h=w+"";return h=="0"&&1/w==-1/0?"-0":h}return Ph=m,Ph}var Fh,kv;function uc(){if(kv)return Fh;kv=1;var n=US();function t(e){return e==null?"":n(e)}return Fh=t,Fh}var Wh,Av;function VS(){if(Av)return Wh;Av=1;var n=ES(),t=lv(),e=OS(),r=uc();function f(g){return function(m){m=r(m);var w=t(m)?e(m):void 0,h=w?w[0]:m.charAt(0),d=w?n(w,1).join(""):m.slice(1);return h[g]()+d}}return Wh=f,Wh}var Bh,Sv;function _v(){if(Sv)return Bh;Sv=1;var n=VS(),t=n("toUpperCase");return Bh=t,Bh}var qS=_v();const KS=El(qS);var zh,$v;function GS(){if($v)return zh;$v=1;var n=uc(),t=_v();function e(r){return t(n(r).toLowerCase())}return zh=e,zh}var Hh,Tv;function YS(){if(Tv)return Hh;Tv=1;function n(t,e,r,f){var g=-1,m=t==null?0:t.length;for(f&&m&&(r=t[++g]);++g<m;)r=e(r,t[g],g,t);return r}return Hh=n,Hh}var jh,Mv;function XS(){if(Mv)return jh;Mv=1;function n(t){return function(e){return t==null?void 0:t[e]}}return jh=n,jh}var Uh,Iv;function ZS(){if(Iv)return Uh;Iv=1;var n=XS(),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 Uh=e,Uh}var Vh,Ev;function QS(){if(Ev)return Vh;Ev=1;var n=ZS(),t=uc(),e=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,r="\\u0300-\\u036f",f="\\ufe20-\\ufe2f",g="\\u20d0-\\u20ff",m=r+f+g,w="["+m+"]",h=RegExp(w,"g");function d(a){return a=t(a),a&&a.replace(e,n).replace(h,"")}return Vh=d,Vh}var qh,Rv;function JS(){if(Rv)return qh;Rv=1;var n=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function t(e){return e.match(n)||[]}return qh=t,qh}var Kh,Lv;function e_(){if(Lv)return Kh;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 Kh=t,Kh}var Gh,Ov;function t_(){if(Ov)return Gh;Ov=1;var n="\\ud800-\\udfff",t="\\u0300-\\u036f",e="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",f=t+e+r,g="\\u2700-\\u27bf",m="a-z\\xdf-\\xf6\\xf8-\\xff",w="\\xac\\xb1\\xd7\\xf7",h="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",d="\\u2000-\\u206f",a=" \\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",c=w+h+d+a,i="['’]",s="["+c+"]",p="["+f+"]",b="\\d+",x="["+g+"]",I="["+m+"]",_="[^"+n+c+b+g+m+l+"]",k="\\ud83c[\\udffb-\\udfff]",C="(?:"+p+"|"+k+")",L="[^"+n+"]",D="(?:\\ud83c[\\udde6-\\uddff]){2}",R="[\\ud800-\\udbff][\\udc00-\\udfff]",E="["+l+"]",z="\\u200d",F="(?:"+I+"|"+_+")",O="(?:"+E+"|"+_+")",$="(?:"+i+"(?:d|ll|m|re|s|t|ve))?",A="(?:"+i+"(?:D|LL|M|RE|S|T|VE))?",N=C+"?",B="["+u+"]?",U="(?:"+z+"(?:"+[L,D,R].join("|")+")"+B+N+")*",K="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Q="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",J=B+N+U,he="(?:"+[x,D,R].join("|")+")"+J,ne=RegExp([E+"?"+I+"+"+$+"(?="+[s,E,"$"].join("|")+")",O+"+"+A+"(?="+[s,E+F,"$"].join("|")+")",E+"?"+F+"+"+$,E+"+"+A,Q,K,b,he].join("|"),"g");function le(se){return se.match(ne)||[]}return Gh=le,Gh}var Yh,Nv;function n_(){if(Nv)return Yh;Nv=1;var n=JS(),t=e_(),e=uc(),r=t_();function f(g,m,w){return g=e(g),m=w?void 0:m,m===void 0?t(g)?r(g):n(g):g.match(m)||[]}return Yh=f,Yh}var Xh,Dv;function r_(){if(Dv)return Xh;Dv=1;var n=YS(),t=QS(),e=n_(),r="['’]",f=RegExp(r,"g");function g(m){return function(w){return n(e(t(w).replace(f,"")),m,"")}}return Xh=g,Xh}var Zh,Pv;function i_(){if(Pv)return Zh;Pv=1;var n=GS(),t=r_(),e=t(function(r,f,g){return f=f.toLowerCase(),r+(g?n(f):f)});return Zh=e,Zh}var o_=i_();const s_=El(o_),a_=Object.assign({"./ArrayWidget.vue":()=>st(()=>ot.import("./ArrayWidget-DQRQ7dPa-abda4fc8ba326f14b522.js"),void 0),"./ArrayplotWidget.vue":()=>st(()=>ot.import("./ArrayplotWidget-BeSfz3MR-40051974152b9c2b6aef.js"),void 0),"./BlockWidget.vue":()=>st(()=>ot.import("./BlockWidget-DSFKrUxl-fae4c8de1f4f42e8b197.js"),void 0),"./ButtonWidget.vue":()=>st(()=>ot.import("./ButtonWidget-CFbjdxSr-b9685b3cd166307426c7.js"),void 0),"./CanvasWidget.vue":()=>st(()=>ot.import("./CanvasWidget-BloYxuKE-f1e76e20de208bca565f.js"),void 0),"./CanvasdotWidget.vue":()=>st(()=>ot.import("./CanvasdotWidget-CZxUOPRd-2fd208be5deee19aab70.js"),void 0),"./CanvasimageWidget.vue":()=>st(()=>ot.import("./CanvasimageWidget-ULQq3nqZ-b448e3c7b7922e6e50f8.js"),void 0),"./CanvasimagevalueWidget.vue":()=>st(()=>ot.import("./CanvasimagevalueWidget-jFCVXYhi-f8d8ff887f1183bbb98c.js"),void 0),"./CanvaslabelWidget.vue":()=>st(()=>ot.import("./CanvaslabelWidget-DQhBI1vZ-7ebcbd5766c51531e5bf.js"),void 0),"./CanvaslabelvalueWidget.vue":()=>st(()=>ot.import("./CanvaslabelvalueWidget-C4REgztL-687046e98a51384e5b26.js"),void 0),"./CanvaslineWidget.vue":()=>st(()=>ot.import("./CanvaslineWidget-S4PCEvZM-397c2e2f01a4dd4076e8.js"),void 0),"./CanvaslinevalueWidget.vue":()=>st(()=>ot.import("./CanvaslinevalueWidget-597khOSA-a34855e3e6f93e321e3d.js"),void 0),"./CheckbuttonWidget.vue":()=>st(()=>ot.import("./CheckbuttonWidget-BcblKat3-42d8988caff40903d0c8.js"),void 0),"./ComboboxWidget.vue":()=>st(()=>ot.import("./ComboboxWidget-BMcHS4g5-6d6fcbaf2aba82f889f9.js"),void 0),"./DateWidget.vue":()=>st(()=>ot.import("./DateWidget-BpnMzSBn-ef53c67768c6083c6859.js"),void 0),"./DynamicWidget.vue":()=>st(()=>ot.import("./DynamicWidget-DHL7pbgW-377e325200722e51563e.js"),void 0),"./FormatvalueWidget.vue":()=>st(()=>ot.import("./FormatvalueWidget-Cm-HmAmw-d1341375536836433f9d.js"),void 0),"./HorizontalWidget.vue":()=>st(()=>ot.import("./HorizontalWidget-NcXIXxh7-eb952afc7683264849ff.js"),void 0),"./HorizontalboxWidget.vue":()=>st(()=>ot.import("./HorizontalboxWidget-CW9XX4uH-e996df56a14a3bde4e91.js"),void 0),"./HorizontallineWidget.vue":()=>st(()=>ot.import("./HorizontallineWidget-Cu2dDt7k-6281aa7b5de62e41bb00.js"),void 0),"./IframeWidget.vue":()=>st(()=>ot.import("./IframeWidget-BBU3MkSq-7025dbd3128209152f0f.js"),void 0),"./ImageviewerWidget.vue":()=>st(()=>ot.import("./ImageviewerWidget-UByjeO63-f005337afbce71919abc.js"),void 0),"./LabelWidget.vue":()=>st(()=>ot.import("./LabelWidget-BsOpolUL-85db0f1b4aa64ff3b527.js"),void 0),"./LabelledWidget.vue":()=>st(()=>ot.import("./LabelledWidget-DVOGpgZ--51e71a070c573ad89a86.js"),void 0),"./LabelprogressbarWidget.vue":()=>st(()=>ot.import("./LabelprogressbarWidget-BeE9fDs6-1bd3d4b34a3a6e14dce3.js"),void 0),"./LabelsparklineWidget.vue":()=>st(()=>ot.import("./LabelsparklineWidget-Bj7trKML-89434219b4c405b53a85.js"),void 0),"./LabelvalueWidget.vue":()=>st(()=>ot.import("./LabelvalueWidget-Dwqsh5o2-4ba71daae0711c0e0dc1.js"),void 0),"./LabelvaluedescWidget.vue":()=>st(()=>ot.import("./LabelvaluedescWidget-Cfu2vuja-7ed170d919a1b2f93517.js"),void 0),"./LabelvaluelimitsbarWidget.vue":()=>st(()=>ot.import("./LabelvaluelimitsbarWidget-DYV68AJ_-262552fb614adfc47302.js"),void 0),"./LabelvaluelimitscolumnWidget.vue":()=>st(()=>ot.import("./LabelvaluelimitscolumnWidget-CtaoTixt-6b8ba121153a42deb6ba.js"),void 0),"./LabelvaluerangebarWidget.vue":()=>st(()=>ot.import("./LabelvaluerangebarWidget-3EaUB6E6-bb5a26950c46209e56ff.js"),void 0),"./LedWidget.vue":()=>st(()=>ot.import("./LedWidget-Gi6GXtrW-4b66b5f91513d8d60af3.js"),void 0),"./LimitsbarWidget.vue":()=>st(()=>ot.import("./LimitsbarWidget-BTZQY9XQ-cb9ebac54a48bc302075.js"),void 0),"./LimitscolorWidget.vue":()=>st(()=>ot.import("./LimitscolorWidget-CFnmvlrA-576d48298c891b3b4958.js"),void 0),"./LimitscolumnWidget.vue":()=>st(()=>ot.import("./LimitscolumnWidget-DSsz36tT-67abb5b67776d894f6fa.js"),void 0),"./LinegraphWidget.vue":()=>st(()=>ot.import("./LinegraphWidget-CeBijgDo-ff089e4a41c296eb184d.js"),void 0),"./MatrixbycolumnsWidget.vue":()=>st(()=>ot.import("./MatrixbycolumnsWidget-DX9uhjAv-2c918b6cb54a7e89bd01.js"),void 0),"./ProgressbarWidget.vue":()=>st(()=>ot.import("./ProgressbarWidget-DJepvOip-4cacb377de6981bbd19b.js"),void 0),"./RadiobuttonWidget.vue":()=>st(()=>ot.import("./RadiobuttonWidget-4e8ROIfg-ac038f08ba7cf73671f7.js"),void 0),"./RadiogroupWidget.vue":()=>st(()=>ot.import("./RadiogroupWidget-CUucj6aT-638aaf431c1dc3d53d4b.js"),void 0),"./RangebarWidget.vue":()=>st(()=>ot.import("./RangebarWidget-Bu4rqlrx-4669a1151305d1211129.js"),void 0),"./RollupWidget.vue":()=>st(()=>ot.import("./RollupWidget-ByLvEEau-9e7afd6e0737c84992d5.js"),void 0),"./ScrollwindowWidget.vue":()=>st(()=>ot.import("./ScrollwindowWidget-CXJ9QGN1-2915ed31dd6bac858705.js"),void 0),"./SignalWidget.vue":()=>st(()=>ot.import("./SignalWidget-qvL2YZJA-a2d0554f47e466ec0901.js"),void 0),"./SpacerWidget.vue":()=>st(()=>ot.import("./SpacerWidget-CaWx41K7-8047fa11f84bbc8a0f9a.js"),void 0),"./SparklineWidget.vue":()=>st(()=>ot.import("./SparklineWidget-BkNSRypJ-8215633a3e70b791ab50.js"),void 0),"./TabbookWidget.vue":()=>st(()=>ot.import("./TabbookWidget-MsrRG1vn-4a3ea445828f034600ce.js"),void 0),"./TextboxWidget.vue":()=>st(()=>ot.import("./TextboxWidget-DbwpPVGB-3cf46631271b6e327aa9.js"),void 0),"./TextfieldWidget.vue":()=>st(()=>ot.import("./TextfieldWidget-DzMlTMYW-94bbcc4b43f6b088c84c.js"),void 0),"./TimeWidget.vue":()=>st(()=>ot.import("./TimeWidget-BHybAfg8-667276e2a3a7acccbf9b.js"),void 0),"./TitleWidget.vue":()=>st(()=>ot.import("./TitleWidget-DL_sE5YE-9167c8baf213f53b750d.js"),void 0),"./ValueWidget.vue":()=>st(()=>ot.import("./ValueWidget-CGT0LV_n-783c3fda6f8d1b0f8fb8.js"),void 0),"./ValuelimitsbarWidget.vue":()=>st(()=>ot.import("./ValuelimitsbarWidget-CmpyPO-1-52d7cfe2d50354b9eb47.js"),void 0),"./ValuelimitscolumnWidget.vue":()=>st(()=>ot.import("./ValuelimitscolumnWidget-jzxrQd-f-3ef02fccbcb5906bc34d.js"),void 0),"./ValuerangebarWidget.vue":()=>st(()=>ot.import("./ValuerangebarWidget-C8ckuAeh-8b3ce5b90b8b7d9fc4f9.js"),void 0),"./VerticalWidget.vue":()=>st(()=>ot.import("./VerticalWidget-qN82km_m-26a108a8f84c8ef173ac.js"),void 0),"./VerticalboxWidget.vue":()=>st(()=>ot.import("./VerticalboxWidget-CiJZDlHJ-8a7c31a0c7b34be767bf.js"),void 0)}),l_=Object.entries(a_).reduce((n,[t,e])=>{t=t.split("/").pop();const r=KS(s_(t.replace(/\.\w+$/,"")));return{...n,[r]:$p(e)}},{}),CD=er("U",{components:l_});function Fv(n,t){return function(){return n.apply(t,arguments)}}const{toString:c_}=Object.prototype,{getPrototypeOf:Qh}=Object,{iterator:hc,toStringTag:Wv}=Symbol,dc=(n=>t=>{const e=c_.call(t);return n[e]||(n[e]=e.slice(8,-1).toLowerCase())})(Object.create(null)),to=n=>(n=n.toLowerCase(),t=>dc(t)===n),pc=n=>t=>typeof t===n,{isArray:ga}=Array,ma=pc("undefined");function Qa(n){return n!==null&&!ma(n)&&n.constructor!==null&&!ma(n.constructor)&&ai(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const Bv=to("ArrayBuffer");function u_(n){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(n):t=n&&n.buffer&&Bv(n.buffer),t}const h_=pc("string"),ai=pc("function"),zv=pc("number"),Ja=n=>n!==null&&typeof n=="object",d_=n=>n===!0||n===!1,fc=n=>{if(dc(n)!=="object")return!1;const t=Qh(n);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Wv in n)&&!(hc in n)},p_=n=>{if(!Ja(n)||Qa(n))return!1;try{return Object.keys(n).length===0&&Object.getPrototypeOf(n)===Object.prototype}catch{return!1}},f_=to("Date"),g_=to("File"),m_=to("Blob"),v_=to("FileList"),y_=n=>Ja(n)&&ai(n.pipe),b_=n=>{let t;return n&&(typeof FormData=="function"&&n instanceof FormData||ai(n.append)&&((t=dc(n))==="formdata"||t==="object"&&ai(n.toString)&&n.toString()==="[object FormData]"))},w_=to("URLSearchParams"),[x_,C_,k_,A_]=["ReadableStream","Request","Response","Headers"].map(to),S_=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function el(n,t,{allOwnKeys:e=!1}={}){if(n===null||typeof n>"u")return;let r,f;if(typeof n!="object"&&(n=[n]),ga(n))for(r=0,f=n.length;r<f;r++)t.call(null,n[r],r,n);else{if(Qa(n))return;const g=e?Object.getOwnPropertyNames(n):Object.keys(n),m=g.length;let w;for(r=0;r<m;r++)w=g[r],t.call(null,n[w],w,n)}}function Hv(n,t){if(Qa(n))return null;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 Es=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,jv=n=>!ma(n)&&n!==Es;function Jh(){const{caseless:n,skipUndefined:t}=jv(this)&&this||{},e={},r=(f,g)=>{const m=n&&Hv(e,g)||g;fc(e[m])&&fc(f)?e[m]=Jh(e[m],f):fc(f)?e[m]=Jh({},f):ga(f)?e[m]=f.slice():(!t||!ma(f))&&(e[m]=f)};for(let f=0,g=arguments.length;f<g;f++)arguments[f]&&el(arguments[f],r);return e}const __=(n,t,e,{allOwnKeys:r}={})=>(el(t,(f,g)=>{e&&ai(f)?n[g]=Fv(f,e):n[g]=f},{allOwnKeys:r}),n),$_=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),T_=(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)},M_=(n,t,e,r)=>{let f,g,m;const w={};if(t=t||{},n==null)return t;do{for(f=Object.getOwnPropertyNames(n),g=f.length;g-- >0;)m=f[g],(!r||r(m,n,t))&&!w[m]&&(t[m]=n[m],w[m]=!0);n=e!==!1&&Qh(n)}while(n&&(!e||e(n,t))&&n!==Object.prototype);return t},I_=(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},E_=n=>{if(!n)return null;if(ga(n))return n;let t=n.length;if(!zv(t))return null;const e=new Array(t);for(;t-- >0;)e[t]=n[t];return e},R_=(n=>t=>n&&t instanceof n)(typeof Uint8Array<"u"&&Qh(Uint8Array)),L_=(n,t)=>{const e=(n&&n[hc]).call(n);let r;for(;(r=e.next())&&!r.done;){const f=r.value;t.call(n,f[0],f[1])}},O_=(n,t)=>{let e;const r=[];for(;(e=n.exec(t))!==null;)r.push(e);return r},N_=to("HTMLFormElement"),D_=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,e,r){return e.toUpperCase()+r}),Uv=(({hasOwnProperty:n})=>(t,e)=>n.call(t,e))(Object.prototype),P_=to("RegExp"),Vv=(n,t)=>{const e=Object.getOwnPropertyDescriptors(n),r={};el(e,(f,g)=>{let m;(m=t(f,g,n))!==!1&&(r[g]=m||f)}),Object.defineProperties(n,r)},F_=n=>{Vv(n,(t,e)=>{if(ai(n)&&["arguments","caller","callee"].indexOf(e)!==-1)return!1;const r=n[e];if(ai(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+"'")})}})},W_=(n,t)=>{const e={},r=f=>{f.forEach(g=>{e[g]=!0})};return ga(n)?r(n):r(String(n).split(t)),e},B_=()=>{},z_=(n,t)=>n!=null&&Number.isFinite(n=+n)?n:t;function H_(n){return!!(n&&ai(n.append)&&n[Wv]==="FormData"&&n[hc])}const j_=n=>{const t=new Array(10),e=(r,f)=>{if(Ja(r)){if(t.indexOf(r)>=0)return;if(Qa(r))return r;if(!("toJSON"in r)){t[f]=r;const g=ga(r)?[]:{};return el(r,(m,w)=>{const h=e(m,f+1);!ma(h)&&(g[w]=h)}),t[f]=void 0,g}}return r};return e(n,0)},U_=to("AsyncFunction"),V_=n=>n&&(Ja(n)||ai(n))&&ai(n.then)&&ai(n.catch),qv=((n,t)=>n?setImmediate:t?((e,r)=>(Es.addEventListener("message",({source:f,data:g})=>{f===Es&&g===e&&r.length&&r.shift()()},!1),f=>{r.push(f),Es.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate=="function",ai(Es.postMessage)),q_=typeof queueMicrotask<"u"?queueMicrotask.bind(Es):typeof process<"u"&&process.nextTick||qv,K_=n=>n!=null&&ai(n[hc]),Se={isArray:ga,isArrayBuffer:Bv,isBuffer:Qa,isFormData:b_,isArrayBufferView:u_,isString:h_,isNumber:zv,isBoolean:d_,isObject:Ja,isPlainObject:fc,isEmptyObject:p_,isReadableStream:x_,isRequest:C_,isResponse:k_,isHeaders:A_,isUndefined:ma,isDate:f_,isFile:g_,isBlob:m_,isRegExp:P_,isFunction:ai,isStream:y_,isURLSearchParams:w_,isTypedArray:R_,isFileList:v_,forEach:el,merge:Jh,extend:__,trim:S_,stripBOM:$_,inherits:T_,toFlatObject:M_,kindOf:dc,kindOfTest:to,endsWith:I_,toArray:E_,forEachEntry:L_,matchAll:O_,isHTMLForm:N_,hasOwnProperty:Uv,hasOwnProp:Uv,reduceDescriptors:Vv,freezeMethods:F_,toObjectSet:W_,toCamelCase:D_,noop:B_,toFiniteNumber:z_,findKey:Hv,global:Es,isContextDefined:jv,isSpecCompliantForm:H_,toJSONObject:j_,isAsyncFn:U_,isThenable:V_,setImmediate:qv,asap:q_,isIterable:K_};function St(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)}Se.inherits(St,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:Se.toJSONObject(this.config),code:this.code,status:this.status}}});const Kv=St.prototype,Gv={};["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=>{Gv[n]={value:n}}),Object.defineProperties(St,Gv),Object.defineProperty(Kv,"isAxiosError",{value:!0}),St.from=(n,t,e,r,f,g)=>{const m=Object.create(Kv);Se.toFlatObject(n,m,function(d){return d!==Error.prototype},d=>d!=="isAxiosError");const w=n&&n.message?n.message:"Error",h=t==null&&n?n.code:t;return St.call(m,w,h,e,r,f),n&&m.cause==null&&Object.defineProperty(m,"cause",{value:n,configurable:!0}),m.name=n&&n.name||"Error",g&&Object.assign(m,g),m};const G_=null;function ed(n){return Se.isPlainObject(n)||Se.isArray(n)}function Yv(n){return Se.endsWith(n,"[]")?n.slice(0,-2):n}function Xv(n,t,e){return n?n.concat(t).map(function(r,f){return r=Yv(r),!e&&f?"["+r+"]":r}).join(e?".":""):t}function Y_(n){return Se.isArray(n)&&!n.some(ed)}const X_=Se.toFlatObject(Se,{},null,function(n){return/^is[A-Z]/.test(n)});function gc(n,t,e){if(!Se.isObject(n))throw new TypeError("target must be an object");t=t||new FormData,e=Se.toFlatObject(e,{metaTokens:!0,dots:!1,indexes:!1},!1,function(c,i){return!Se.isUndefined(i[c])});const r=e.metaTokens,f=e.visitor||d,g=e.dots,m=e.indexes,w=(e.Blob||typeof Blob<"u"&&Blob)&&Se.isSpecCompliantForm(t);if(!Se.isFunction(f))throw new TypeError("visitor must be a function");function h(c){if(c===null)return"";if(Se.isDate(c))return c.toISOString();if(Se.isBoolean(c))return c.toString();if(!w&&Se.isBlob(c))throw new St("Blob is not supported. Use a Buffer instead.");return Se.isArrayBuffer(c)||Se.isTypedArray(c)?w&&typeof Blob=="function"?new Blob([c]):Buffer.from(c):c}function d(c,i,s){let p=c;if(c&&!s&&typeof c=="object"){if(Se.endsWith(i,"{}"))i=r?i:i.slice(0,-2),c=JSON.stringify(c);else if(Se.isArray(c)&&Y_(c)||(Se.isFileList(c)||Se.endsWith(i,"[]"))&&(p=Se.toArray(c)))return i=Yv(i),p.forEach(function(b,x){!(Se.isUndefined(b)||b===null)&&t.append(m===!0?Xv([i],x,g):m===null?i:i+"[]",h(b))}),!1}return ed(c)?!0:(t.append(Xv(s,i,g),h(c)),!1)}const a=[],l=Object.assign(X_,{defaultVisitor:d,convertValue:h,isVisitable:ed});function u(c,i){if(!Se.isUndefined(c)){if(a.indexOf(c)!==-1)throw Error("Circular reference detected in "+i.join("."));a.push(c),Se.forEach(c,function(s,p){(!(Se.isUndefined(s)||s===null)&&f.call(t,s,Se.isString(p)?p.trim():p,i,l))===!0&&u(s,i?i.concat(p):[p])}),a.pop()}}if(!Se.isObject(n))throw new TypeError("data must be an object");return u(n),t}function Zv(n){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function td(n,t){this._pairs=[],n&&gc(n,this,t)}const Qv=td.prototype;Qv.append=function(n,t){this._pairs.push([n,t])},Qv.toString=function(n){const t=n?function(e){return n.call(this,e,Zv)}:Zv;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};function Z_(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Jv(n,t,e){if(!t)return n;const r=e&&e.encode||Z_;Se.isFunction(e)&&(e={serialize:e});const f=e&&e.serialize;let g;if(f?g=f(t,e):g=Se.isURLSearchParams(t)?t.toString():new td(t,e).toString(r),g){const m=n.indexOf("#");m!==-1&&(n=n.slice(0,m)),n+=(n.indexOf("?")===-1?"?":"&")+g}return n}let ey=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){Se.forEach(this.handlers,function(e){e!==null&&t(e)})}};const ty={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Q_=typeof URLSearchParams<"u"?URLSearchParams:td,J_=typeof FormData<"u"?FormData:null,e$=typeof Blob<"u"?Blob:null,t$={isBrowser:!0,classes:{URLSearchParams:Q_,FormData:J_,Blob:e$},protocols:["http","https","file","blob","url","data"]},nd=typeof window<"u"&&typeof document<"u",rd=typeof navigator=="object"&&navigator||void 0,n$=nd&&(!rd||["ReactNative","NativeScript","NS"].indexOf(rd.product)<0),r$=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",i$=nd&&window.location.href||"http://localhost",o$=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:nd,hasStandardBrowserEnv:n$,hasStandardBrowserWebWorkerEnv:r$,navigator:rd,origin:i$},Symbol.toStringTag,{value:"Module"})),Nr={...o$,...t$};function s$(n,t){return gc(n,new Nr.classes.URLSearchParams,{visitor:function(e,r,f,g){return Nr.isNode&&Se.isBuffer(e)?(this.append(r,e.toString("base64")),!1):g.defaultVisitor.apply(this,arguments)},...t})}function a$(n){return Se.matchAll(/\w+|\[(\w*)]/g,n).map(t=>t[0]==="[]"?"":t[1]||t[0])}function l$(n){const t={},e=Object.keys(n);let r;const f=e.length;let g;for(r=0;r<f;r++)g=e[r],t[g]=n[g];return t}function ny(n){function t(e,r,f,g){let m=e[g++];if(m==="__proto__")return!0;const w=Number.isFinite(+m),h=g>=e.length;return m=!m&&Se.isArray(f)?f.length:m,h?(Se.hasOwnProp(f,m)?f[m]=[f[m],r]:f[m]=r,!w):((!f[m]||!Se.isObject(f[m]))&&(f[m]=[]),t(e,r,f[m],g)&&Se.isArray(f[m])&&(f[m]=l$(f[m])),!w)}if(Se.isFormData(n)&&Se.isFunction(n.entries)){const e={};return Se.forEachEntry(n,(r,f)=>{t(a$(r),f,e,0)}),e}return null}function c$(n,t,e){if(Se.isString(n))try{return(t||JSON.parse)(n),Se.trim(n)}catch(r){if(r.name!=="SyntaxError")throw r}return(e||JSON.stringify)(n)}const tl={transitional:ty,adapter:["xhr","http","fetch"],transformRequest:[function(n,t){const e=t.getContentType()||"",r=e.indexOf("application/json")>-1,f=Se.isObject(n);if(f&&Se.isHTMLForm(n)&&(n=new FormData(n)),Se.isFormData(n))return r?JSON.stringify(ny(n)):n;if(Se.isArrayBuffer(n)||Se.isBuffer(n)||Se.isStream(n)||Se.isFile(n)||Se.isBlob(n)||Se.isReadableStream(n))return n;if(Se.isArrayBufferView(n))return n.buffer;if(Se.isURLSearchParams(n))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),n.toString();let g;if(f){if(e.indexOf("application/x-www-form-urlencoded")>-1)return s$(n,this.formSerializer).toString();if((g=Se.isFileList(n))||e.indexOf("multipart/form-data")>-1){const m=this.env&&this.env.FormData;return gc(g?{"files[]":n}:n,m&&new m,this.formSerializer)}}return f||r?(t.setContentType("application/json",!1),c$(n)):n}],transformResponse:[function(n){const t=this.transitional||tl.transitional,e=t&&t.forcedJSONParsing,r=this.responseType==="json";if(Se.isResponse(n)||Se.isReadableStream(n))return n;if(n&&Se.isString(n)&&(e&&!this.responseType||r)){const f=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(n,this.parseReviver)}catch(g){if(f)throw g.name==="SyntaxError"?St.from(g,St.ERR_BAD_RESPONSE,this,null,this.response):g}}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Nr.classes.FormData,Blob:Nr.classes.Blob},validateStatus:function(n){return n>=200&&n<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Se.forEach(["delete","get","head","post","put","patch"],n=>{tl.headers[n]={}});const u$=Se.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"]),h$=n=>{const t={};let e,r,f;return n&&n.split(`
1493
+ `)},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",`${Yo(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++}}},Tk={class:"pa-2"},Mk={class:"text-area-container"},Ik={class:"floating-buttons"};function Ek(n,t,e,r,f,g){const m=ht("v-text-field"),w=ht("v-col"),h=ht("v-slider"),d=ht("v-row"),a=ht("v-textarea"),l=ht("v-btn"),u=ht("v-card-title"),c=ht("v-switch"),i=ht("v-radio"),s=ht("v-radio-group"),p=ht("v-card-text"),b=ht("v-card"),x=ht("v-menu");return pn(),Hr("div",Tk,[Ve(d,{dense:"",class:"mb-2"},{default:pt(()=>[Ve(w,{cols:"4"},{default:pt(()=>[Ve(m,{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}),Ve(w,{cols:"8",class:"mt-1"},{default:pt(()=>[Ve(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:g.pause,"onClick:prepend":g.stepBackward,"onClick:append":g.stepForward},null,8,["modelValue","min","onMousedown","onClick:prepend","onClick:append"])]),_:1})]),_:1}),Ve(d,{dense:"","no-gutters":""},{default:pt(()=>[Ve(w,null,{default:pt(()=>[tr("div",Mk,[Ve(a,{"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"]),tr("div",Ik,[Ve(x,{"close-on-content-click":!1,"min-width":700},{activator:pt(({props:I})=>[Ve(l,hu({class:"ml-2",color:"secondary"},I,{icon:"astro:settings",size:"small","aria-label":"Settings","data-test":"history-component-open-settings"}),null,16)]),default:pt(()=>[Ve(b,null,{default:pt(()=>[Ve(u,{"data-test":"display-settings-card"},{default:pt(()=>[...t[9]||(t[9]=[Tr(" Display settings ",-1)])]),_:1}),Ve(p,null,{default:pt(()=>[Ve(d,null,{default:pt(()=>[Ve(w,null,{default:pt(()=>[Ve(c,{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?(pn(),xi(c,{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"])):Ni("",!0),n.hasRaw?(pn(),xi(c,{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"])):Ni("",!0)]),_:1}),Ve(w,null,{default:pt(()=>[Ve(s,{modelValue:n.currentConfig.newestAtTop,"onUpdate:modelValue":t[5]||(t[5]=I=>n.currentConfig.newestAtTop=I),label:"Print newest to the"},{default:pt(()=>[Ve(i,{label:"Top",value:!0,"data-test":"history-component-settings-newest-top"}),Ve(i,{label:"Bottom",value:!1,"data-test":"history-component-settings-newest-bottom"})]),_:1},8,["modelValue"])]),_:1}),Ve(w,null,{default:pt(()=>[Ve(m,{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?(pn(),xi(m,{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"])):Ni("",!0),Ve(m,{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}),Ve(l,{class:"ml-2",color:"secondary",icon:"mdi-file-download",size:"small","aria-label":"Download","data-test":"history-component-download",onClick:g.download},null,8,["onClick"]),Ve(l,{class:du(["ml-2",{blink: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:g.togglePlayPause},null,8,["class","icon","aria-label","onClick"])])])]),_:1})]),_:1})])}const wD=er("H",_o($k,[["render",Ek],["__scopeId","data-v-3c27986d"]]));var Mg={exports:{}},Ig;function Rk(){return Ig||(Ig=1,function(n,t){(function(){ace.require(["ace/mode/text"],function(e){n&&(n.exports=e)})})()}(Mg)),Mg.exports}Rk();const Lk=!0,lr="u-",Ok="uplot",Nk=lr+"hz",Dk=lr+"vt",Pk=lr+"title",Fk=lr+"wrap",Wk=lr+"under",Bk=lr+"over",zk=lr+"axis",Ss=lr+"off",Hk=lr+"select",jk=lr+"cursor-x",Uk=lr+"cursor-y",Vk=lr+"cursor-pt",qk=lr+"legend",Kk=lr+"live",Gk=lr+"inline",Yk=lr+"series",Xk=lr+"marker",Eg=lr+"label",Zk=lr+"value",Ua="width",Va="height",qa="top",Rg="bottom",oa="left",ju="right",Uu="#000",Lg=Uu+"0",Vu="mousemove",Og="mousedown",qu="mouseup",Ng="mouseenter",Dg="mouseleave",Pg="dblclick",Qk="resize",Jk="scroll",Fg="change",Yl="dppxchange",Ku="--",sa=typeof window<"u",Gu=sa?document:null,aa=sa?window:null,eA=sa?navigator:null;let en,Xl;function Yu(){let n=devicePixelRatio;en!=n&&(en=n,Xl&&Qu(Fg,Xl,Yu),Xl=matchMedia(`(min-resolution: ${en-.001}dppx) and (max-resolution: ${en+.001}dppx)`),_s(Fg,Xl,Yu),aa.dispatchEvent(new CustomEvent(Yl)))}function Ci(n,t){if(t!=null){let e=n.classList;!e.contains(t)&&e.add(t)}}function Xu(n,t){let e=n.classList;e.contains(t)&&e.remove(t)}function xn(n,t,e){n.style[t]=e+"px"}function Qi(n,t,e,r){let f=Gu.createElement(n);return t!=null&&Ci(f,t),e!=null&&e.insertBefore(f,r),f}function Di(n,t){return Qi("div",n,t)}const Wg=new WeakMap;function ho(n,t,e,r,f){let g="translate("+t+"px,"+e+"px)",m=Wg.get(n);g!=m&&(n.style.transform=g,Wg.set(n,g),t<0||e<0||t>r||e>f?Ci(n,Ss):Xu(n,Ss))}const Bg=new WeakMap;function zg(n,t,e){let r=t+e,f=Bg.get(n);r!=f&&(Bg.set(n,r),n.style.background=t,n.style.borderColor=e)}const Hg=new WeakMap;function jg(n,t,e,r){let f=t+""+e,g=Hg.get(n);f!=g&&(Hg.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 Zu={passive:!0},tA={...Zu,capture:!0};function _s(n,t,e,r){t.addEventListener(n,e,r?tA:Zu)}function Qu(n,t,e,r){t.removeEventListener(n,e,Zu)}sa&&Yu();function Ji(n,t,e,r){let f;e=e||0,r=r||t.length-1;let g=r<=2147483647;for(;r-e>1;)f=g?e+r>>1:Ai((e+r)/2),t[f]<n?e=f:r=f;return n-t[e]<=t[r]-n?e:r}function Ug(n){return(t,e,r)=>{let f=-1,g=-1;for(let m=e;m<=r;m++)if(n(t[m])){f=m;break}for(let m=r;m>=e;m--)if(n(t[m])){g=m;break}return[f,g]}}const Vg=n=>n!=null,qg=n=>n!=null&&n>0,Zl=Ug(Vg),nA=Ug(qg);function rA(n,t,e,r=0,f=!1){let g=f?nA:Zl,m=f?qg:Vg;[t,e]=g(n,t,e);let w=n[t],h=n[t];if(t>-1)if(r==1)w=n[t],h=n[e];else if(r==-1)w=n[e],h=n[t];else for(let d=t;d<=e;d++){let a=n[d];m(a)&&(a<w?w=a:a>h&&(h=a))}return[w??fn,h??-fn]}function Ql(n,t,e,r){let f=Yg(n),g=Yg(t);n==t&&(f==-1?(n*=e,t/=e):(n/=e,t*=e));let m=e==10?$o:Xg,w=f==1?Ai:Pi,h=g==1?Pi:Ai,d=w(m(cr(n))),a=h(m(cr(t))),l=la(e,d),u=la(e,a);return e==10&&(d<0&&(l=gn(l,-d)),a<0&&(u=gn(u,-a))),r||e==2?(n=l*f,t=u*g):(n=rm(n,l),t=tc(t,u)),[n,t]}function Ju(n,t,e,r){let f=Ql(n,t,e,r);return n==0&&(f[0]=0),t==0&&(f[1]=0),f}const eh=.1,Kg={mode:3,pad:eh},Ka={pad:0,soft:null,mode:0},iA={min:Ka,max:Ka};function Jl(n,t,e,r){return nc(e)?Gg(n,t,e):(Ka.pad=e,Ka.soft=r?0:null,Ka.mode=r?3:0,Gg(n,t,iA))}function Qt(n,t){return n??t}function oA(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 Gg(n,t,e){let r=e.min,f=e.max,g=Qt(r.pad,0),m=Qt(f.pad,0),w=Qt(r.hard,-fn),h=Qt(f.hard,fn),d=Qt(r.soft,fn),a=Qt(f.soft,-fn),l=Qt(r.mode,0),u=Qt(f.mode,0),c=t-n,i=$o(c),s=jr(cr(n),cr(t)),p=$o(s),b=cr(p-i);(c<1e-24||b>10)&&(c=0,(n==0||t==0)&&(c=1e-24,l==2&&d!=fn&&(g=0),u==2&&a!=-fn&&(m=0)));let x=c||s||1e3,I=$o(x),_=la(10,Ai(I)),k=x*(c==0?n==0?.1:1:g),C=gn(rm(n-k,_/10),24),L=n>=d&&(l==1||l==3&&C<=d||l==2&&C>=d)?d:fn,D=jr(w,C<L&&n>=L?L:eo(L,C)),R=x*(c==0?t==0?.1:1:m),E=gn(tc(t+R,_/10),24),z=t<=a&&(u==1||u==3&&E>=a||u==2&&E<=a)?a:-fn,F=eo(h,E>z&&t<=z?z:jr(z,E));return D==F&&D==0&&(F=100),[D,F]}const sA=new Intl.NumberFormat(sa?eA.language:"en-US"),th=n=>sA.format(n),ki=Math,ec=ki.PI,cr=ki.abs,Ai=ki.floor,ur=ki.round,Pi=ki.ceil,eo=ki.min,jr=ki.max,la=ki.pow,Yg=ki.sign,$o=ki.log10,Xg=ki.log2,aA=(n,t=1)=>ki.sinh(n)*t,nh=(n,t=1)=>ki.asinh(n/t),fn=1/0;function Zg(n){return($o((n^n>>31)-(n>>31))|0)+1}function rh(n,t,e){return eo(jr(n,t),e)}function Qg(n){return typeof n=="function"}function zt(n){return Qg(n)?n:()=>n}const lA=()=>{},Jg=n=>n,em=(n,t)=>t,cA=n=>null,tm=n=>!0,nm=(n,t)=>n==t,uA=/\.\d*?(?=9{6,}|0{6,})/gm,$s=n=>{if(om(n)||Zo.has(n))return n;const t=`${n}`,e=t.match(uA);if(e==null)return n;let r=e[0].length-1;if(t.indexOf("e-")!=-1){let[f,g]=t.split("e");return+`${$s(f)}e${g}`}return gn(n,r)};function Ts(n,t){return $s(gn($s(n/t))*t)}function tc(n,t){return $s(Pi($s(n/t))*t)}function rm(n,t){return $s(Ai($s(n/t))*t)}function gn(n,t=0){if(om(n))return n;let e=10**t,r=n*e*(1+Number.EPSILON);return ur(r)/e}const Zo=new Map;function im(n){return((""+n).split(".")[1]||"").length}function Ga(n,t,e,r){let f=[],g=r.map(im);for(let m=t;m<e;m++){let w=cr(m),h=gn(la(n,m),w);for(let d=0;d<r.length;d++){let a=n==10?+`${r[d]}e${m}`:r[d]*h,l=(m>=0?0:w)+(m>=g[d]?0:g[d]),u=n==10?a:gn(a,l);f.push(u),Zo.set(u,l)}}return f}const Ya={},ih=[],ca=[null,null],Qo=Array.isArray,om=Number.isInteger,hA=n=>n===void 0;function sm(n){return typeof n=="string"}function nc(n){let t=!1;if(n!=null){let e=n.constructor;t=e==null||e==Object}return t}function dA(n){return n!=null&&typeof n=="object"}const pA=Object.getPrototypeOf(Uint8Array),am="__proto__";function ua(n,t=nc){let e;if(Qo(n)){let r=n.find(f=>f!=null);if(Qo(r)||t(r)){e=Array(n.length);for(let f=0;f<n.length;f++)e[f]=ua(n[f],t)}else e=n.slice()}else if(n instanceof pA)e=n.slice();else if(t(n)){e={};for(let r in n)r!=am&&(e[r]=ua(n[r],t))}else e=n;return e}function rr(n){let t=arguments;for(let e=1;e<t.length;e++){let r=t[e];for(let f in r)f!=am&&(nc(n[f])?rr(n[f],ua(r[f])):n[f]=ua(r[f]))}return n}const fA=0,gA=1,mA=2;function vA(n,t,e){for(let r=0,f,g=-1;r<t.length;r++){let m=t[r];if(m>g){for(f=m-1;f>=0&&n[f]==null;)n[f--]=null;for(f=m+1;f<e&&n[f]==null;)n[g=f++]=null}}}function yA(n,t){if(xA(n)){let m=n[0].slice();for(let w=1;w<n.length;w++)m.push(...n[w].slice(1));return CA(m[0])||(m=wA(m)),m}let e=new Set;for(let m=0;m<n.length;m++){let w=n[m][0],h=w.length;for(let d=0;d<h;d++)e.add(w[d])}let r=[Array.from(e).sort((m,w)=>m-w)],f=r[0].length,g=new Map;for(let m=0;m<f;m++)g.set(r[0][m],m);for(let m=0;m<n.length;m++){let w=n[m],h=w[0];for(let d=1;d<w.length;d++){let a=w[d],l=Array(f).fill(void 0),u=t?t[m][d]:gA,c=[];for(let i=0;i<a.length;i++){let s=a[i],p=g.get(h[i]);s===null?u!=fA&&(l[p]=s,u==mA&&c.push(p)):l[p]=s}vA(l,c,f),r.push(l)}}return r}const bA=typeof queueMicrotask>"u"?n=>Promise.resolve().then(n):queueMicrotask;function wA(n){let t=n[0],e=t.length,r=Array(e);for(let g=0;g<r.length;g++)r[g]=g;r.sort((g,m)=>t[g]-t[m]);let f=[];for(let g=0;g<n.length;g++){let m=n[g],w=Array(e);for(let h=0;h<e;h++)w[h]=m[r[h]];f.push(w)}return f}function xA(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 g=0;g<e;g++)if(f[g]!=t[g])return!1}}return!0}function CA(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 g=jr(1,Ai((f-r+1)/t));for(let m=n[r],w=r+g;w<=f;w+=g){const h=n[w];if(h!=null){if(h<=m)return!1;m=h}}return!0}const lm=["January","February","March","April","May","June","July","August","September","October","November","December"],cm=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function um(n){return n.slice(0,3)}const kA=cm.map(um),AA=lm.map(um),SA={MMMM:lm,MMM:AA,WWWW:cm,WWW:kA};function Xa(n){return(n<10?"0":"")+n}function _A(n){return(n<10?"00":n<100?"0":"")+n}const $A={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=>Xa(n.getMonth()+1),M:n=>n.getMonth()+1,DD:n=>Xa(n.getDate()),D:n=>n.getDate(),WWWW:(n,t)=>t.WWWW[n.getDay()],WWW:(n,t)=>t.WWW[n.getDay()],HH:n=>Xa(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=>Xa(n.getMinutes()),m:n=>n.getMinutes(),ss:n=>Xa(n.getSeconds()),s:n=>n.getSeconds(),fff:n=>_A(n.getMilliseconds())};function oh(n,t){t=t||SA;let e=[],r=/\{([a-z]+)\}|[^{]+/gi,f;for(;f=r.exec(n);)e.push(f[0][0]=="{"?$A[f[1]]:f[0]);return g=>{let m="";for(let w=0;w<e.length;w++)m+=typeof e[w]=="string"?e[w]:e[w](g,t);return m}}const TA=new Intl.DateTimeFormat().resolvedOptions().timeZone;function MA(n,t){let e;return t=="UTC"||t=="Etc/UTC"?e=new Date(+n+n.getTimezoneOffset()*6e4):t==TA?e=n:(e=new Date(n.toLocaleString("en-US",{timeZone:t})),e.setMilliseconds(n.getMilliseconds())),e}const hm=n=>n%1==0,rc=[1,2,2.5,5],IA=Ga(10,-32,0,rc),dm=Ga(10,0,32,rc),EA=dm.filter(hm),Ms=IA.concat(dm),sh=`
1494
+ `,pm="{YYYY}",fm=sh+pm,gm="{M}/{D}",Za=sh+gm,ic=Za+"/{YY}",mm="{aa}",RA="{h}:{mm}",ha=RA+mm,vm=sh+ha,ym=":{ss}",on=null;function bm(n){let t=n*1e3,e=t*60,r=e*60,f=r*24,g=f*30,m=f*365,w=(n==1?Ga(10,0,3,rc).filter(hm):Ga(10,-3,0,rc)).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,g,g*2,g*3,g*4,g*6,m,m*2,m*5,m*10,m*25,m*50,m*100]);const h=[[m,pm,on,on,on,on,on,on,1],[f*28,"{MMM}",fm,on,on,on,on,on,1],[f,gm,fm,on,on,on,on,on,1],[r,"{h}"+mm,ic,on,Za,on,on,on,1],[e,ha,ic,on,Za,on,on,on,1],[t,ym,ic+" "+ha,on,Za+" "+ha,on,vm,on,1],[n,ym+".{fff}",ic+" "+ha,on,Za+" "+ha,on,vm,on,1]];function d(a){return(l,u,c,i,s,p)=>{let b=[],x=s>=m,I=s>=g&&s<m,_=a(c),k=gn(_*n,3),C=ah(_.getFullYear(),x?0:_.getMonth(),I||x?1:_.getDate()),L=gn(C*n,3);if(I||x){let D=I?s/g:0,R=x?s/m:0,E=k==L?k:gn(ah(C.getFullYear()+R,C.getMonth()+D,1)*n,3),z=new Date(ur(E/n)),F=z.getFullYear(),O=z.getMonth();for(let $=0;E<=i;$++){let A=ah(F+R*$,O+D*$,1),N=A-a(gn(A*n,3));E=gn((+A+N)*n,3),E<=i&&b.push(E)}}else{let D=s>=f?f:s,R=Ai(c)-Ai(k),E=L+R+tc(k-L,D);b.push(E);let z=a(E),F=z.getHours()+z.getMinutes()/e+z.getSeconds()/r,O=s/r,$=l.axes[u]._space,A=p/$;for(;E=gn(E+s,n==1?0:3),!(E>i);)if(O>1){let N=Ai(gn(F+O,6))%24,B=a(E).getHours()-N;B>1&&(B=-1),E-=B*r,F=(F+O)%24;let U=b[b.length-1];gn((E-U)/s,3)*A>=.7&&b.push(E)}else b.push(E)}return b}}return[w,h,d]}const[LA,OA,NA]=bm(1),[DA,PA,FA]=bm(.001);Ga(2,-53,53,[1]);function wm(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 xm(n,t){return(e,r,f,g,m)=>{let w=t.find(i=>m>=i[0])||t[t.length-1],h,d,a,l,u,c;return r.map(i=>{let s=n(i),p=s.getFullYear(),b=s.getMonth(),x=s.getDate(),I=s.getHours(),_=s.getMinutes(),k=s.getSeconds(),C=p!=h&&w[2]||b!=d&&w[3]||x!=a&&w[4]||I!=l&&w[5]||_!=u&&w[6]||k!=c&&w[7]||w[1];return h=p,d=b,a=x,l=I,u=_,c=k,C(s)})}}function WA(n,t){let e=oh(t);return(r,f,g,m,w)=>f.map(h=>e(n(h)))}function ah(n,t,e){return new Date(n,t,e)}function Cm(n,t){return t(n)}const BA="{YYYY}-{MM}-{DD} {h}:{mm}{aa}";function km(n,t){return(e,r,f,g)=>g==null?Ku:t(n(r))}function zA(n,t){let e=n.series[t];return e.width?e.stroke(n,t):e.points.width?e.points.stroke(n,t):null}function HA(n,t){return n.series[t].fill(n,t)}const jA={show:!0,live:!0,isolate:!1,mount:lA,markers:{show:!0,width:2,stroke:zA,fill:HA,dash:"solid"},idx:null,idxs:null,values:[]};function UA(n,t){let e=n.cursor.points,r=Di(),f=e.size(n,t);xn(r,Ua,f),xn(r,Va,f);let g=f/-2;xn(r,"marginLeft",g),xn(r,"marginTop",g);let m=e.width(n,t,f);return m&&xn(r,"borderWidth",m),r}function VA(n,t){let e=n.series[t].points;return e._fill||e._stroke}function qA(n,t){let e=n.series[t].points;return e._stroke||e._fill}function KA(n,t){return n.series[t].points.size}const lh=[0,0];function GA(n,t,e){return lh[0]=t,lh[1]=e,lh}function oc(n,t,e,r=!0){return f=>{f.button==0&&(!r||f.target==t)&&e(f)}}function ch(n,t,e,r=!0){return f=>{(!r||f.target==t)&&e(f)}}const YA={show:!0,x:!0,y:!0,lock:!1,move:GA,points:{one:!1,show:UA,size:KA,width:0,stroke:qA,fill:VA},bind:{mousedown:oc,mouseup:oc,click:oc,dblclick:oc,mousemove:ch,mouseleave:ch,mouseenter:ch},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},Am={show:!0,stroke:"rgba(0,0,0,0.07)",width:2},uh=rr({},Am,{filter:em}),Sm=rr({},uh,{size:10}),_m=rr({},Am,{show:!1}),hh='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"',$m="bold "+hh,Tm=1.5,Mm={show:!0,scale:"x",stroke:Uu,space:50,gap:5,alignTo:1,size:50,labelGap:0,labelSize:30,labelFont:$m,side:2,grid:uh,ticks:Sm,border:_m,font:hh,lineGap:Tm,rotate:0},XA="Value",ZA="Time",Im={show:!0,scale:"x",auto:!1,sorted:1,min:fn,max:-fn,idxs:[]};function QA(n,t,e,r,f){return t.map(g=>g==null?"":th(g))}function JA(n,t,e,r,f,g,m){let w=[],h=Zo.get(f)||0;e=m?e:gn(tc(e,f),h);for(let d=e;d<=r;d=gn(d+f,h))w.push(Object.is(d,-0)?0:d);return w}function dh(n,t,e,r,f,g,m){const w=[],h=n.scales[n.axes[t].scale].log,d=h==10?$o:Xg,a=Ai(d(e));f=la(h,a),h==10&&(f=Ms[Ji(f,Ms)]);let l=e,u=f*h;h==10&&(u=Ms[Ji(u,Ms)]);do w.push(l),l=l+f,h==10&&!Zo.has(l)&&(l=gn(l,Zo.get(f))),l>=u&&(f=l,u=f*h,h==10&&(u=Ms[Ji(u,Ms)]));while(l<=r);return w}function eS(n,t,e,r,f,g,m){let w=n.scales[n.axes[t].scale].asinh,h=r>w?dh(n,t,jr(w,e),r,f):[w],d=r>=0&&e<=0?[0]:[];return(e<-w?dh(n,t,jr(w,-r),-e,f):[w]).reverse().map(a=>-a).concat(d,h)}const Em=/./,tS=/[12357]/,nS=/[125]/,Rm=/1/,ph=(n,t,e,r)=>n.map((f,g)=>t==4&&f==0||g%r==0&&e.test(f.toExponential()[f<0?1:0])?f:null);function rS(n,t,e,r,f){let g=n.axes[e],m=g.scale,w=n.scales[m],h=n.valToPos,d=g._space,a=h(10,m),l=h(9,m)-a>=d?Em:h(7,m)-a>=d?tS:h(5,m)-a>=d?nS:Rm;if(l==Rm){let u=cr(h(1,m)-a);if(u<d)return ph(t.slice().reverse(),w.distr,l,Pi(d/u)).reverse()}return ph(t,w.distr,l,1)}function iS(n,t,e,r,f){let g=n.axes[e],m=g.scale,w=g._space,h=n.valToPos,d=cr(h(1,m)-h(2,m));return d<w?ph(t.slice().reverse(),3,Em,Pi(w/d)).reverse():t}function oS(n,t,e,r){return r==null?Ku:t==null?"":th(t)}const Lm={show:!0,scale:"y",stroke:Uu,space:30,gap:5,alignTo:1,size:50,labelGap:0,labelSize:30,labelFont:$m,side:3,grid:uh,ticks:Sm,border:_m,font:hh,lineGap:Tm,rotate:0};function sS(n,t){let e=3+(n||1)*2;return gn(e*t,3)}function aS(n,t){let{scale:e,idxs:r}=n.series[0],f=n._data[0],g=n.valToPos(f[r[0]],e,!0),m=n.valToPos(f[r[1]],e,!0),w=cr(m-g),h=n.series[t],d=w/(h.points.space*en);return r[1]-r[0]<=d}const Om={scale:null,auto:!0,sorted:0,min:fn,max:-fn},Nm=(n,t,e,r,f)=>f,Dm={show:!0,auto:!0,sorted:0,gaps:Nm,alpha:1,facets:[rr({},Om,{scale:"x"}),rr({},Om,{scale:"y"})]},Pm={scale:"y",auto:!0,sorted:0,show:!0,spanGaps:!1,gaps:Nm,alpha:1,points:{show:aS,filter:null},values:null,min:fn,max:-fn,idxs:[],path:null,clip:null};function lS(n,t,e,r,f){return e/10}const Fm={time:Lk,auto:!0,distr:1,log:10,asinh:1,min:null,max:null,dir:1,ori:0},cS=rr({},Fm,{time:!1,ori:1}),Wm={};function Bm(n,t){let e=Wm[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,g,m,w,h,d){for(let a=0;a<e.plots.length;a++)e.plots[a]!=f&&e.plots[a].pub(r,f,g,m,w,h,d)}},n!=null&&(Wm[n]=e)),e}const da=1,fh=2;function Is(n,t,e){const r=n.mode,f=n.series[t],g=r==2?n._data[t]:n._data,m=n.scales,w=n.bbox;let h=g[0],d=r==2?g[1]:g[t],a=r==2?m[f.facets[0].scale]:m[n.series[0].scale],l=r==2?m[f.facets[1].scale]:m[f.scale],u=w.left,c=w.top,i=w.width,s=w.height,p=n.valToPosH,b=n.valToPosV;return a.ori==0?e(f,h,d,a,l,p,b,u,c,i,s,ac,pa,cc,jm,Vm):e(f,h,d,a,l,b,p,c,u,s,i,lc,fa,vh,Um,qm)}function gh(n,t){let e=0,r=0,f=Qt(n.bands,ih);for(let g=0;g<f.length;g++){let m=f[g];m.series[0]==t?e=m.dir:m.series[1]==t&&(m.dir==1?r|=1:r|=2)}return[e,r==1?-1:r==2?1:r==3?2:0]}function uS(n,t,e,r,f){let g=n.mode,m=n.series[t],w=g==2?m.facets[1].scale:m.scale,h=n.scales[w];return f==-1?h.min:f==1?h.max:h.distr==3?h.dir==1?h.min:h.max:0}function To(n,t,e,r,f,g){return Is(n,t,(m,w,h,d,a,l,u,c,i,s,p)=>{let b=m.pxRound;const x=d.dir*(d.ori==0?1:-1),I=d.ori==0?pa:fa;let _,k;x==1?(_=e,k=r):(_=r,k=e);let C=b(l(w[_],d,s,c)),L=b(u(h[_],a,p,i)),D=b(l(w[k],d,s,c)),R=b(u(g==1?a.max:a.min,a,p,i)),E=new Path2D(f);return I(E,D,R),I(E,C,R),I(E,C,L),E})}function sc(n,t,e,r,f,g){let m=null;if(n.length>0){m=new Path2D;const w=t==0?cc:vh;let h=e;for(let l=0;l<n.length;l++){let u=n[l];if(u[1]>u[0]){let c=u[0]-h;c>0&&w(m,h,r,c,r+g),h=u[1]}}let d=e+f-h,a=10;d>0&&w(m,h,r-a/2,d,r+g+a)}return m}function hS(n,t,e){let r=n[n.length-1];r&&r[0]==t?r[1]=e:n.push([t,e])}function mh(n,t,e,r,f,g,m){let w=[],h=n.length;for(let d=f==1?e:r;d>=e&&d<=r;d+=f)if(t[d]===null){let a=d,l=d;if(f==1)for(;++d<=r&&t[d]===null;)l=d;else for(;--d>=e&&t[d]===null;)l=d;let u=g(n[a]),c=l==a?u:g(n[l]),i=a-f;u=m<=0&&i>=0&&i<h?g(n[i]):u;let s=l+f;c=m>=0&&s>=0&&s<h?g(n[s]):c,c>=u&&w.push([u,c])}return w}function zm(n){return n==0?Jg:n==1?ur:t=>Ts(t,n)}function Hm(n){let t=n==0?ac:lc,e=n==0?(f,g,m,w,h,d)=>{f.arcTo(g,m,w,h,d)}:(f,g,m,w,h,d)=>{f.arcTo(m,g,h,w,d)},r=n==0?(f,g,m,w,h)=>{f.rect(g,m,w,h)}:(f,g,m,w,h)=>{f.rect(m,g,h,w)};return(f,g,m,w,h,d=0,a=0)=>{d==0&&a==0?r(f,g,m,w,h):(d=eo(d,w/2,h/2),a=eo(a,w/2,h/2),t(f,g+d,m),e(f,g+w,m,g+w,m+h,d),e(f,g+w,m+h,g,m+h,a),e(f,g,m+h,g,m,a),e(f,g,m,g+w,m,d),f.closePath())}}const ac=(n,t,e)=>{n.moveTo(t,e)},lc=(n,t,e)=>{n.moveTo(e,t)},pa=(n,t,e)=>{n.lineTo(t,e)},fa=(n,t,e)=>{n.lineTo(e,t)},cc=Hm(0),vh=Hm(1),jm=(n,t,e,r,f,g)=>{n.arc(t,e,r,f,g)},Um=(n,t,e,r,f,g)=>{n.arc(e,t,r,f,g)},Vm=(n,t,e,r,f,g,m)=>{n.bezierCurveTo(t,e,r,f,g,m)},qm=(n,t,e,r,f,g,m)=>{n.bezierCurveTo(e,t,f,r,m,g)};function Km(n){return(t,e,r,f,g)=>Is(t,e,(m,w,h,d,a,l,u,c,i,s,p)=>{let{pxRound:b,points:x}=m,I,_;d.ori==0?(I=ac,_=jm):(I=lc,_=Um);const k=gn(x.width*en,3);let C=(x.size-x.width)/2*en,L=gn(C*2,3),D=new Path2D,R=new Path2D,{left:E,top:z,width:F,height:O}=t.bbox;cc(R,E-L,z-L,F+L*2,O+L*2);const $=A=>{if(h[A]!=null){let N=b(l(w[A],d,s,c)),B=b(u(h[A],a,p,i));I(D,N+C,B),_(D,N,B,C,0,ec*2)}};if(g)g.forEach($);else for(let A=r;A<=f;A++)$(A);return{stroke:k>0?D:null,fill:D,clip:R,flags:da|fh}})}function Gm(n){return(t,e,r,f,g,m)=>{r!=f&&(g!=r&&m!=r&&n(t,e,r),g!=f&&m!=f&&n(t,e,f),n(t,e,m))}}const dS=Gm(pa),pS=Gm(fa);function Ym(n){const t=Qt(n==null?void 0:n.alignGaps,0);return(e,r,f,g)=>Is(e,r,(m,w,h,d,a,l,u,c,i,s,p)=>{[f,g]=Zl(h,f,g);let b=m.pxRound,x=F=>b(l(F,d,s,c)),I=F=>b(u(F,a,p,i)),_,k;d.ori==0?(_=pa,k=dS):(_=fa,k=pS);const C=d.dir*(d.ori==0?1:-1),L={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:da},D=L.stroke;let R=!1;if(g-f>=s*4){let F=he=>e.posToVal(he,d.key,!0),O=null,$=null,A,N,B,U=x(w[C==1?f:g]),K=x(w[f]),Q=x(w[g]),J=F(C==1?K+1:Q-1);for(let he=C==1?f:g;he>=f&&he<=g;he+=C){let ne=w[he],le=(C==1?ne<J:ne>J)?U:x(ne),se=h[he];le==U?se!=null?(N=se,O==null?(_(D,le,I(N)),A=O=$=N):N<O?O=N:N>$&&($=N)):se===null&&(R=!0):(O!=null&&k(D,U,I(O),I($),I(A),I(N)),se!=null?(N=se,_(D,le,I(N)),O=$=A=N):(O=$=null,se===null&&(R=!0)),U=le,J=F(U+C))}O!=null&&O!=$&&B!=U&&k(D,U,I(O),I($),I(A),I(N))}else for(let F=C==1?f:g;F>=f&&F<=g;F+=C){let O=h[F];O===null?R=!0:O!=null&&_(D,x(w[F]),I(O))}let[E,z]=gh(e,r);if(m.fill!=null||E!=0){let F=L.fill=new Path2D(D),O=m.fillTo(e,r,m.min,m.max,E),$=I(O),A=x(w[f]),N=x(w[g]);C==-1&&([N,A]=[A,N]),_(F,N,$),_(F,A,$)}if(!m.spanGaps){let F=[];R&&F.push(...mh(w,h,f,g,C,x,t)),L.gaps=F=m.gaps(e,r,f,g,F),L.clip=sc(F,d.ori,c,i,s,p)}return z!=0&&(L.band=z==2?[To(e,r,f,g,D,-1),To(e,r,f,g,D,1)]:To(e,r,f,g,D,z)),L})}function fS(n){const t=Qt(n.align,1),e=Qt(n.ascDesc,!1),r=Qt(n.alignGaps,0),f=Qt(n.extend,!1);return(g,m,w,h)=>Is(g,m,(d,a,l,u,c,i,s,p,b,x,I)=>{[w,h]=Zl(l,w,h);let _=d.pxRound,{left:k,width:C}=g.bbox,L=Q=>_(i(Q,u,x,p)),D=Q=>_(s(Q,c,I,b)),R=u.ori==0?pa:fa;const E={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:da},z=E.stroke,F=u.dir*(u.ori==0?1:-1);let O=D(l[F==1?w:h]),$=L(a[F==1?w:h]),A=$,N=$;f&&t==-1&&(N=k,R(z,N,O)),R(z,$,O);for(let Q=F==1?w:h;Q>=w&&Q<=h;Q+=F){let J=l[Q];if(J==null)continue;let he=L(a[Q]),ne=D(J);t==1?R(z,he,O):R(z,A,ne),R(z,he,ne),O=ne,A=he}let B=A;f&&t==1&&(B=k+C,R(z,B,O));let[U,K]=gh(g,m);if(d.fill!=null||U!=0){let Q=E.fill=new Path2D(z),J=d.fillTo(g,m,d.min,d.max,U),he=D(J);R(Q,B,he),R(Q,N,he)}if(!d.spanGaps){let Q=[];Q.push(...mh(a,l,w,h,F,L,r));let J=d.width*en/2,he=e||t==1?J:-J,ne=e||t==-1?-J:J;Q.forEach(le=>{le[0]+=he,le[1]+=ne}),E.gaps=Q=d.gaps(g,m,w,h,Q),E.clip=sc(Q,u.ori,p,b,x,I)}return K!=0&&(E.band=K==2?[To(g,m,w,h,z,-1),To(g,m,w,h,z,1)]:To(g,m,w,h,z,K)),E})}function Xm(n,t,e,r,f,g,m=fn){if(n.length>1){let w=null;for(let h=0,d=1/0;h<n.length;h++)if(t[h]!==void 0){if(w!=null){let a=cr(n[h]-n[w]);a<d&&(d=a,m=cr(e(n[h],r,f,g)-e(n[w],r,f,g)))}w=h}}return m}function gS(n){n=n||Ya;const t=Qt(n.size,[.6,fn,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 g=zt(f),m=1-t[0],w=Qt(t[1],fn),h=Qt(t[2],1),d=Qt(n.disp,Ya),a=Qt(n.each,c=>{}),{fill:l,stroke:u}=d;return(c,i,s,p)=>Is(c,i,(b,x,I,_,k,C,L,D,R,E,z)=>{let F=b.pxRound,O=e,$=r*en,A=w*en,N=h*en,B,U;_.ori==0?[B,U]=g(c,i):[U,B]=g(c,i);const K=_.dir*(_.ori==0?1:-1);let Q=_.ori==0?cc:vh,J=_.ori==0?a:(je,Lt,Ht,Tn,yr,hr,mn)=>{a(je,Lt,Ht,yr,Tn,mn,hr)},he=Qt(c.bands,ih).find(je=>je.series[0]==i),ne=he!=null?he.dir:0,le=b.fillTo(c,i,b.min,b.max,ne),se=F(L(le,k,z,R)),de,me,_e,Te=E,Me=F(b.width*en),Ze=!1,Ge=null,lt=null,tt=null,ct=null;l!=null&&(Me==0||u!=null)&&(Ze=!0,Ge=l.values(c,i,s,p),lt=new Map,new Set(Ge).forEach(je=>{je!=null&&lt.set(je,new Path2D)}),Me>0&&(tt=u.values(c,i,s,p),ct=new Map,new Set(tt).forEach(je=>{je!=null&&ct.set(je,new Path2D)})));let{x0:Xt,size:Cn}=d;if(Xt!=null&&Cn!=null){O=1,x=Xt.values(c,i,s,p),Xt.unit==2&&(x=x.map(Lt=>c.posToVal(D+Lt*E,_.key,!0)));let je=Cn.values(c,i,s,p);Cn.unit==2?me=je[0]*E:me=C(je[0],_,E,D)-C(0,_,E,D),Te=Xm(x,I,C,_,E,D,Te),_e=Te-me+$}else Te=Xm(x,I,C,_,E,D,Te),_e=Te*m+$,me=Te-_e;_e<1&&(_e=0),Me>=me/2&&(Me=0),_e<5&&(F=Jg);let Wt=_e>0,vr=Te-_e-(Wt?Me:0);me=F(rh(vr,N,A)),de=(O==0?me/2:O==K?0:me)-O*K*((O==0?$/2:0)+(Wt?Me/2:0));const un={stroke:null,fill:null,clip:null,band:null,gaps:null,flags:0},On=Ze?null:new Path2D;let Xn=null;if(he!=null)Xn=c.data[he.series[1]];else{let{y0:je,y1:Lt}=d;je!=null&&Lt!=null&&(I=Lt.values(c,i,s,p),Xn=je.values(c,i,s,p))}let Mr=B*me,yt=U*me;for(let je=K==1?s:p;je>=s&&je<=p;je+=K){let Lt=I[je];if(Lt==null)continue;if(Xn!=null){let Gt=Xn[je]??0;if(Lt-Gt==0)continue;se=L(Gt,k,z,R)}let Ht=_.distr!=2||d!=null?x[je]:je,Tn=C(Ht,_,E,D),yr=L(Qt(Lt,le),k,z,R),hr=F(Tn-de),mn=F(jr(yr,se)),Wn=F(eo(yr,se)),Nn=mn-Wn;if(Lt!=null){let Gt=Lt<0?yt:Mr,ln=Lt<0?Mr:yt;Ze?(Me>0&&tt[je]!=null&&Q(ct.get(tt[je]),hr,Wn+Ai(Me/2),me,jr(0,Nn-Me),Gt,ln),Ge[je]!=null&&Q(lt.get(Ge[je]),hr,Wn+Ai(Me/2),me,jr(0,Nn-Me),Gt,ln)):Q(On,hr,Wn+Ai(Me/2),me,jr(0,Nn-Me),Gt,ln),J(c,i,je,hr-Me/2,Wn,me+Me,Nn)}}return Me>0?un.stroke=Ze?ct:On:Ze||(un._fill=b.width==0?b._fill:b._stroke??b._fill,un.width=0),un.fill=Ze?lt:On,un})}function mS(n,t){const e=Qt(t==null?void 0:t.alignGaps,0);return(r,f,g,m)=>Is(r,f,(w,h,d,a,l,u,c,i,s,p,b)=>{[g,m]=Zl(d,g,m);let x=w.pxRound,I=B=>x(u(B,a,p,i)),_=B=>x(c(B,l,b,s)),k,C,L;a.ori==0?(k=ac,L=pa,C=Vm):(k=lc,L=fa,C=qm);const D=a.dir*(a.ori==0?1:-1);let R=I(h[D==1?g:m]),E=R,z=[],F=[];for(let B=D==1?g:m;B>=g&&B<=m;B+=D)if(d[B]!=null){let U=h[B],K=I(U);z.push(E=K),F.push(_(d[B]))}const O={stroke:n(z,F,k,L,C,x),fill:null,clip:null,band:null,gaps:null,flags:da},$=O.stroke;let[A,N]=gh(r,f);if(w.fill!=null||A!=0){let B=O.fill=new Path2D($),U=w.fillTo(r,f,w.min,w.max,A),K=_(U);L(B,E,K),L(B,R,K)}if(!w.spanGaps){let B=[];B.push(...mh(h,d,g,m,D,I,e)),O.gaps=B=w.gaps(r,f,g,m,B),O.clip=sc(B,a.ori,i,s,p,b)}return N!=0&&(O.band=N==2?[To(r,f,g,m,$,-1),To(r,f,g,m,$,1)]:To(r,f,g,m,$,N)),O})}function vS(n){return mS(yS,n)}function yS(n,t,e,r,f,g){const m=n.length;if(m<2)return null;const w=new Path2D;if(e(w,n[0],t[0]),m==2)r(w,n[1],t[1]);else{let h=Array(m),d=Array(m-1),a=Array(m-1),l=Array(m-1);for(let u=0;u<m-1;u++)a[u]=t[u+1]-t[u],l[u]=n[u+1]-n[u],d[u]=a[u]/l[u];h[0]=d[0];for(let u=1;u<m-1;u++)d[u]===0||d[u-1]===0||d[u-1]>0!=d[u]>0?h[u]=0:(h[u]=3*(l[u-1]+l[u])/((2*l[u]+l[u-1])/d[u-1]+(l[u]+2*l[u-1])/d[u]),isFinite(h[u])||(h[u]=0));h[m-1]=d[m-2];for(let u=0;u<m-1;u++)f(w,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 w}const yh=new Set;function Zm(){for(let n of yh)n.syncRect(!0)}sa&&(_s(Qk,aa,Zm),_s(Jk,aa,Zm,!0),_s(Yl,aa,()=>{Or.pxRatio=en}));const bS=Ym(),wS=Km();function Qm(n,t,e,r){return(r?[n[0],n[1]].concat(n.slice(2)):[n[0]].concat(n.slice(1))).map((f,g)=>bh(f,g,t,e))}function xS(n,t){return n.map((e,r)=>r==0?{}:rr({},t,e))}function bh(n,t,e,r){return rr({},t==0?e:r,n)}function Jm(n,t,e){return t==null?ca:[t,e]}const CS=Jm;function kS(n,t,e){return t==null?ca:Jl(t,e,eh,!0)}function ev(n,t,e,r){return t==null?ca:Ql(t,e,n.scales[r].log,!1)}const AS=ev;function tv(n,t,e,r){return t==null?ca:Ju(t,e,n.scales[r].log,!1)}const SS=tv;function _S(n,t,e,r,f){let g=jr(Zg(n),Zg(t)),m=t-n,w=Ji(f/r*m,e);do{let h=e[w],d=r*h/m;if(d>=f&&g+(h<5?Zo.get(h):0)<=17)return[h,d]}while(++w<e.length);return[0,0]}function nv(n){let t,e;return n=n.replace(/(\d+)px/,(r,f)=>(t=ur((e=+f)*en))+"px"),[n,t,e]}function $S(n){n.show&&[n.font,n.labelFont].forEach(t=>{let e=gn(t[2]*en,1);t[0]=t[0].replace(/[0-9.]+px/,e+"px"),t[1]=e})}function Or(n,t,e){const r={mode:Qt(n.mode,1)},f=r.mode;function g(V,X,ie,oe){let ge=X.valToPct(V);return oe+ie*(X.dir==-1?1-ge:ge)}function m(V,X,ie,oe){let ge=X.valToPct(V);return oe+ie*(X.dir==-1?ge:1-ge)}function w(V,X,ie,oe){return X.ori==0?g(V,X,ie,oe):m(V,X,ie,oe)}r.valToPosH=g,r.valToPosV=m;let h=!1;r.status=0;const d=r.root=Di(Ok);if(n.id!=null&&(d.id=n.id),Ci(d,n.class),n.title){let V=Di(Pk,d);V.textContent=n.title}const a=Qi("canvas"),l=r.ctx=a.getContext("2d"),u=Di(Fk,d);_s("click",u,V=>{V.target===i&&(rn!=Bi||Ut!=Co)&&Hn.click(r,V)},!0);const c=r.under=Di(Wk,u);u.appendChild(a);const i=r.over=Di(Bk,u);n=ua(n);const s=+Qt(n.pxAlign,1),p=zm(s);(n.plugins||[]).forEach(V=>{V.opts&&(n=V.opts(r,n)||n)});const b=n.ms||.001,x=r.series=f==1?Qm(n.series||[],Im,Pm,!1):xS(n.series||[null],Dm),I=r.axes=Qm(n.axes||[],Mm,Lm,!0),_=r.scales={},k=r.bands=n.bands||[];k.forEach(V=>{V.fill=zt(V.fill||null),V.dir=Qt(V.dir,-1)});const C=f==2?x[1].facets[0].scale:x[0].scale,L={axes:Ro,series:ba},D=(n.drawOrder||["axes","series"]).map(V=>L[V]);function R(V){const X=V.distr==3?ie=>$o(ie>0?ie:V.clamp(r,ie,V.min,V.max,V.key)):V.distr==4?ie=>nh(ie,V.asinh):V.distr==100?ie=>V.fwd(ie):ie=>ie;return ie=>{let oe=X(ie),{_min:ge,_max:xe}=V,Ie=xe-ge;return(oe-ge)/Ie}}function E(V){let X=_[V];if(X==null){let ie=(n.scales||Ya)[V]||Ya;if(ie.from!=null){E(ie.from);let oe=rr({},_[ie.from],ie,{key:V});oe.valToPct=R(oe),_[V]=oe}else{X=_[V]=rr({},V==C?Fm:cS,ie),X.key=V;let oe=X.time,ge=X.range,xe=Qo(ge);if((V!=C||f==2&&!oe)&&(xe&&(ge[0]==null||ge[1]==null)&&(ge={min:ge[0]==null?Kg:{mode:1,hard:ge[0],soft:ge[0]},max:ge[1]==null?Kg:{mode:1,hard:ge[1],soft:ge[1]}},xe=!1),!xe&&nc(ge))){let Ie=ge;ge=(Fe,Be,Ke)=>Be==null?ca:Jl(Be,Ke,Ie)}X.range=zt(ge||(oe?CS:V==C?X.distr==3?AS:X.distr==4?SS:Jm:X.distr==3?ev:X.distr==4?tv:kS)),X.auto=zt(xe?!1:X.auto),X.clamp=zt(X.clamp||lS),X._min=X._max=null,X.valToPct=R(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 z=_[C],F=z.distr;let O,$;z.ori==0?(Ci(d,Nk),O=g,$=m):(Ci(d,Dk),O=m,$=g);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(ur(V/b))),B=n.fmtDate||oh,U=b==1?NA(N):FA(N),K=xm(N,wm(b==1?OA:PA,B)),Q=km(N,Cm(BA,B)),J=[],he=r.legend=rr({},jA,n.legend),ne=r.cursor=rr({},YA,{drag:{y:f==2}},n.cursor),le=he.show,se=ne.show,de=he.markers;he.idxs=J,de.width=zt(de.width),de.dash=zt(de.dash),de.stroke=zt(de.stroke),de.fill=zt(de.fill);let me,_e,Te,Me=[],Ze=[],Ge,lt=!1,tt={};if(he.live){const V=x[1]?x[1].values:null;lt=V!=null,Ge=lt?V(r,1,0):{_:0};for(let X in Ge)tt[X]=Ku}if(le)if(me=Qi("table",qk,d),Te=Qi("tbody",null,me),he.mount(r,me),lt){_e=Qi("thead",null,me,Te);let V=Qi("tr",null,_e);Qi("th",null,V);for(var ct in Ge)Qi("th",Eg,V).textContent=ct}else Ci(me,Gk),he.live&&Ci(me,Kk);const Xt={show:!0},Cn={show:!1};function Wt(V,X){if(X==0&&(lt||!he.live||f==2))return ca;let ie=[],oe=Qi("tr",Yk,Te,Te.childNodes[X]);Ci(oe,V.class),V.show||Ci(oe,Ss);let ge=Qi("th",null,oe);if(de.show){let Fe=Di(Xk,ge);if(X>0){let Be=de.width(r,X);Be&&(Fe.style.border=Be+"px "+de.dash(r,X)+" "+de.stroke(r,X)),Fe.style.background=de.fill(r,X)}}let xe=Di(Eg,ge);V.label instanceof HTMLElement?xe.appendChild(V.label):xe.textContent=V.label,X>0&&(de.show||(xe.style.color=V.width>0?de.stroke(r,X):de.fill(r,X)),un("click",ge,Fe=>{if(ne._lock)return;di(Fe);let Be=x.indexOf(V);if((Fe.ctrlKey||Fe.metaKey)!=he.isolate){let Ke=x.some((Xe,Je)=>Je>0&&Je!=Be&&Xe.show);x.forEach((Xe,Je)=>{Je>0&&Jr(Je,Ke?Je==Be?Xt:Cn:Xt,!0,ut.setSeries)})}else Jr(Be,{show:!V.show},!0,ut.setSeries)},!1),pi&&un(Ng,ge,Fe=>{ne._lock||(di(Fe),Jr(x.indexOf(V),ji,!0,ut.setSeries))},!1));for(var Ie in Ge){let Fe=Qi("td",Zk,oe);Fe.textContent="--",ie.push(Fe)}return[oe,ie]}const vr=new Map;function un(V,X,ie,oe=!0){const ge=vr.get(X)||{},xe=ne.bind[V](r,X,ie,oe);xe&&(_s(V,X,ge[V]=xe),vr.set(X,ge))}function On(V,X,ie){const oe=vr.get(X)||{};for(let ge in oe)(V==null||ge==V)&&(Qu(ge,X,oe[ge]),delete oe[ge]);V==null&&vr.delete(X)}let Xn=0,Mr=0,yt=0,je=0,Lt=0,Ht=0,Tn=Lt,yr=Ht,hr=yt,mn=je,Wn=0,Nn=0,Gt=0,ln=0;r.bbox={};let Dr=!1,Gr=!1,Yr=!1,Si=!1,ci=!1,Bn=!1;function ro(V,X,ie){(ie||V!=r.width||X!=r.height)&&ui(V,X),so(!1),Yr=!0,Gr=!0,xo()}function ui(V,X){r.width=Xn=yt=V,r.height=Mr=je=X,Lt=Ht=0,hi(),Jo();let ie=r.bbox;Wn=ie.left=Ts(Lt*en,.5),Nn=ie.top=Ts(Ht*en,.5),Gt=ie.width=Ts(yt*en,.5),ln=ie.height=Ts(je*en,.5)}const Os=3;function Xr(){let V=!1,X=0;for(;!V;){X++;let ie=wa(X),oe=ul(X);V=X==Os||ie&&oe,V||(ui(r.width,r.height),Gr=!0)}}function kn({width:V,height:X}){ro(V,X)}r.setSize=kn;function hi(){let V=!1,X=!1,ie=!1,oe=!1;I.forEach((ge,xe)=>{if(ge.show&&ge._show){let{side:Ie,_size:Fe}=ge,Be=Ie%2,Ke=ge.label!=null?ge.labelSize:0,Xe=Fe+Ke;Xe>0&&(Be?(yt-=Xe,Ie==3?(Lt+=Xe,oe=!0):ie=!0):(je-=Xe,Ie==0?(Ht+=Xe,V=!0):X=!0))}}),gi[0]=V,gi[1]=ie,gi[2]=X,gi[3]=oe,yt-=wr[1]+wr[3],Lt+=wr[3],je-=wr[2]+wr[0],Ht+=wr[0]}function Jo(){let V=Lt+yt,X=Ht+je,ie=Lt,oe=Ht;function ge(xe,Ie){switch(xe){case 1:return V+=Ie,V-Ie;case 2:return X+=Ie,X-Ie;case 3:return ie-=Ie,ie+Ie;case 0:return oe-=Ie,oe+Ie}}I.forEach((xe,Ie)=>{if(xe.show&&xe._show){let Fe=xe.side;xe._pos=ge(Fe,xe._size),xe.label!=null&&(xe._lpos=ge(Fe,xe.labelSize))}})}if(ne.dataIdx==null){let V=ne.hover,X=V.skip=new Set(V.skip??[]);X.add(void 0);let ie=V.prox=zt(V.prox),oe=V.bias??(V.bias=0);ne.dataIdx=(ge,xe,Ie,Fe)=>{if(xe==0)return Ie;let Be=Ie,Ke=ie(ge,xe,Ie,Fe)??fn,Xe=Ke>=0&&Ke<fn,Je=z.ori==0?yt:je,wt=ne.left,Ft=t[0],Ct=t[xe];if(X.has(Ct[Ie])){Be=null;let Nt=null,ft=null,it;if(oe==0||oe==-1)for(it=Ie;Nt==null&&it-- >0;)X.has(Ct[it])||(Nt=it);if(oe==0||oe==1)for(it=Ie;ft==null&&it++<Ct.length;)X.has(Ct[it])||(ft=it);if(Nt!=null||ft!=null)if(Xe){let yn=Nt==null?-1/0:O(Ft[Nt],z,Je,0),Rn=ft==null?1/0:O(Ft[ft],z,Je,0),ar=wt-yn,qt=Rn-wt;ar<=qt?ar<=Ke&&(Be=Nt):qt<=Ke&&(Be=ft)}else Be=ft==null?Nt:Nt==null?ft:Ie-Nt<=ft-Ie?Nt:ft}else Xe&&cr(wt-O(Ft[Ie],z,Je,0))>Ke&&(Be=null);return Be}}const di=V=>{ne.event=V};ne.idxs=J,ne._lock=!1;let An=ne.points;An.show=zt(An.show),An.size=zt(An.size),An.stroke=zt(An.stroke),An.width=zt(An.width),An.fill=zt(An.fill);const dr=r.focus=rr({},n.focus||{alpha:.3},ne.focus),pi=dr.prox>=0,Sn=pi&&An.one;let Mn=[],br=[],fi=[];function vo(V,X){let ie=An.show(r,X);if(ie instanceof HTMLElement)return Ci(ie,Vk),Ci(ie,V.class),ho(ie,-10,-10,yt,je),i.insertBefore(ie,Mn[X]),ie}function yo(V,X){if(f==1||X>0){let ie=f==1&&_[V.scale].time,oe=V.value;V.value=ie?sm(oe)?km(N,Cm(oe,B)):oe||Q:oe||oS,V.label=V.label||(ie?ZA:XA)}if(Sn||X>0){V.width=V.width==null?1:V.width,V.paths=V.paths||bS||cA,V.fillTo=zt(V.fillTo||uS),V.pxAlign=+Qt(V.pxAlign,s),V.pxRound=zm(V.pxAlign),V.stroke=zt(V.stroke||null),V.fill=zt(V.fill||null),V._stroke=V._fill=V._paths=V._focus=null;let ie=sS(jr(1,V.width),1),oe=V.points=rr({},{size:ie,width:jr(1,ie*.2),stroke:V.stroke,space:ie*2,paths:wS,_stroke:null,_fill:null},V.points);oe.show=zt(oe.show),oe.filter=zt(oe.filter),oe.fill=zt(oe.fill),oe.stroke=zt(oe.stroke),oe.paths=zt(oe.paths),oe.pxAlign=V.pxAlign}if(le){let ie=Wt(V,X);Me.splice(X,0,ie[0]),Ze.splice(X,0,ie[1]),he.values.push(null)}if(se){J.splice(X,0,null);let ie=null;Sn?X==0&&(ie=vo(V,X)):X>0&&(ie=vo(V,X)),Mn.splice(X,0,ie),br.splice(X,0,0),fi.splice(X,0,0)}nt("addSeries",X)}function es(V,X){X=X??x.length,V=f==1?bh(V,X,Im,Pm):bh(V,X,{},Dm),x.splice(X,0,V),yo(x[X],X)}r.addSeries=es;function Zr(V){if(x.splice(V,1),le){he.values.splice(V,1),Ze.splice(V,1);let X=Me.splice(V,1)[0];On(null,X.firstChild),X.remove()}se&&(J.splice(V,1),Mn.splice(V,1)[0].remove(),br.splice(V,1),fi.splice(V,1)),nt("delSeries",V)}r.delSeries=Zr;const gi=[!1,!1,!1,!1];function Pr(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=zt(V.size),V.space=zt(V.space),V.rotate=zt(V.rotate),Qo(V.incrs)&&V.incrs.forEach(Ie=>{!Zo.has(Ie)&&Zo.set(Ie,im(Ie))}),V.incrs=zt(V.incrs||(oe.distr==2?EA:ge?b==1?LA:DA:Ms)),V.splits=zt(V.splits||(ge&&oe.distr==1?U:oe.distr==3?dh:oe.distr==4?eS:JA)),V.stroke=zt(V.stroke),V.grid.stroke=zt(V.grid.stroke),V.ticks.stroke=zt(V.ticks.stroke),V.border.stroke=zt(V.border.stroke);let xe=V.values;V.values=Qo(xe)&&!Qo(xe[0])?zt(xe):ge?Qo(xe)?xm(N,wm(xe,B)):sm(xe)?WA(N,xe):xe||K:xe||QA,V.filter=zt(V.filter||(oe.distr>=3&&oe.log==10?rS:oe.distr==3&&oe.log==2?iS:em)),V.font=nv(V.font),V.labelFont=nv(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&&(gi[X]=!0,V._el=Di(zk,u))}}function Ot(V,X,ie,oe){let[ge,xe,Ie,Fe]=ie,Be=X%2,Ke=0;return Be==0&&(Fe||xe)&&(Ke=X==0&&!ge||X==2&&!Ie?ur(Mm.size/3):0),Be==1&&(ge||Ie)&&(Ke=X==1&&!xe||X==3&&!Fe?ur(Lm.size/2):0),Ke}const Mo=r.padding=(n.padding||[Ot,Ot,Ot,Ot]).map(V=>zt(Qt(V,Ot))),wr=r._padding=Mo.map((V,X)=>V(r,X,gi,0));let ce,ze=null,Pe=null;const _t=f==1?x[0].idxs:null;let Yt=null,jt=!1;function xr(V,X){if(t=V??[],r.data=r._data=t,f==2){ce=0;for(let ie=1;ie<x.length;ie++)ce+=t[ie][0].length}else{t.length==0&&(r.data=r._data=t=[[]]),Yt=t[0],ce=Yt.length;let ie=t;if(F==2){ie=t.slice();let oe=ie[0]=Array(ce);for(let ge=0;ge<ce;ge++)oe[ge]=ge}r._data=t=ie}if(so(!0),nt("setData"),F==2&&(Yr=!0),X!==!1){let ie=z;ie.auto(r,jt)?pr():or(C,ie.min,ie.max),Si=Si||ne.left>=0,Bn=!0,xo()}}r.setData=xr;function pr(){jt=!0;let V,X;f==1&&(ce>0?(ze=_t[0]=0,Pe=_t[1]=ce-1,V=t[0][ze],X=t[0][Pe],F==2?(V=ze,X=Pe):V==X&&(F==3?[V,X]=Ql(V,V,z.log,!1):F==4?[V,X]=Ju(V,V,z.log,!1):z.time?X=V+ur(86400/b):[V,X]=Jl(V,X,eh,!0))):(ze=_t[0]=V=null,Pe=_t[1]=X=null)),or(C,V,X)}let zn,Cr,vn,io,Fr,ts,Ns,Ds,ns,fr;function Ps(V,X,ie,oe,ge,xe){V??(V=Lg),ie??(ie=ih),oe??(oe="butt"),ge??(ge=Lg),xe??(xe="round"),V!=zn&&(l.strokeStyle=zn=V),ge!=Cr&&(l.fillStyle=Cr=ge),X!=vn&&(l.lineWidth=vn=X),xe!=Fr&&(l.lineJoin=Fr=xe),oe!=ts&&(l.lineCap=ts=oe),ie!=io&&l.setLineDash(io=ie)}function Io(V,X,ie,oe){X!=Cr&&(l.fillStyle=Cr=X),V!=Ns&&(l.font=Ns=V),ie!=Ds&&(l.textAlign=Ds=ie),oe!=ns&&(l.textBaseline=ns=oe)}function rs(V,X,ie,oe,ge=0){if(oe.length>0&&V.auto(r,jt)&&(X==null||X.min==null)){let xe=Qt(ze,0),Ie=Qt(Pe,oe.length-1),Fe=ie.min==null?rA(oe,xe,Ie,ge,V.distr==3):[ie.min,ie.max];V.min=eo(V.min,ie.min=Fe[0]),V.max=jr(V.max,ie.max=Fe[1])}}const is={min:null,max:null};function bo(){for(let oe in _){let ge=_[oe];A[oe]==null&&(ge.min==null||A[C]!=null&&ge.auto(r,jt))&&(A[oe]=is)}for(let oe in _){let ge=_[oe];A[oe]==null&&ge.from!=null&&A[ge.from]!=null&&(A[oe]=is)}A[C]!=null&&so(!0);let V={};for(let oe in A){let ge=A[oe];if(ge!=null){let xe=V[oe]=ua(_[oe],dA);if(ge.min!=null)rr(xe,ge);else if(oe!=C||f==2)if(ce==0&&xe.from==null){let Ie=xe.range(r,null,null,oe);xe.min=Ie[0],xe.max=Ie[1]}else xe.min=fn,xe.max=-fn}}if(ce>0){x.forEach((oe,ge)=>{if(f==1){let xe=oe.scale,Ie=A[xe];if(Ie==null)return;let Fe=V[xe];if(ge==0){let Be=Fe.range(r,Fe.min,Fe.max,xe);Fe.min=Be[0],Fe.max=Be[1],ze=Ji(Fe.min,t[0]),Pe=Ji(Fe.max,t[0]),Pe-ze>1&&(t[0][ze]<Fe.min&&ze++,t[0][Pe]>Fe.max&&Pe--),oe.min=Yt[ze],oe.max=Yt[Pe]}else oe.show&&oe.auto&&rs(Fe,Ie,oe,t[ge],oe.sorted);oe.idxs[0]=ze,oe.idxs[1]=Pe}else if(ge>0&&oe.show&&oe.auto){let[xe,Ie]=oe.facets,Fe=xe.scale,Be=Ie.scale,[Ke,Xe]=t[ge],Je=V[Fe],wt=V[Be];Je!=null&&rs(Je,A[Fe],xe,Ke,xe.sorted),wt!=null&&rs(wt,A[Be],Ie,Xe,Ie.sorted),oe.min=Ie.min,oe.max=Ie.max}});for(let oe in V){let ge=V[oe],xe=A[oe];if(ge.from==null&&(xe==null||xe.min==null)){let Ie=ge.range(r,ge.min==fn?null:ge.min,ge.max==-fn?null:ge.max,oe);ge.min=Ie[0],ge.max=Ie[1]}}}for(let oe in V){let ge=V[oe];if(ge.from!=null){let xe=V[ge.from];if(xe.min==null)ge.min=ge.max=null;else{let Ie=ge.range(r,xe.min,xe.max,oe);ge.min=Ie[0],ge.max=Ie[1]}}}let X={},ie=!1;for(let oe in V){let ge=V[oe],xe=_[oe];if(xe.min!=ge.min||xe.max!=ge.max){xe.min=ge.min,xe.max=ge.max;let Ie=xe.distr;xe._min=Ie==3?$o(xe.min):Ie==4?nh(xe.min,xe.asinh):Ie==100?xe.fwd(xe.min):xe.min,xe._max=Ie==3?$o(xe.max):Ie==4?nh(xe.max,xe.asinh):Ie==100?xe.fwd(xe.max):xe.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)Yr=!0,nt("setScale",oe);se&&ne.left>=0&&(Si=Bn=!0)}for(let oe in A)A[oe]=null}function Fs(V){let X=rh(ze-1,0,ce-1),ie=rh(Pe+1,0,ce-1);for(;V[X]==null&&X>0;)X--;for(;V[ie]==null&&ie<ce-1;)ie++;return[X,ie]}function ba(){if(ce>0){let V=x.some(X=>X._focus)&&fr!=dr.alpha;V&&(l.globalAlpha=fr=dr.alpha),x.forEach((X,ie)=>{if(ie>0&&X.show&&(os(ie,!1),os(ie,!0),X._paths==null)){let oe=fr;fr!=X.alpha&&(l.globalAlpha=fr=X.alpha);let ge=f==2?[0,t[ie][0].length-1]:Fs(t[ie]);X._paths=X.paths(r,ie,ge[0],ge[1]),fr!=oe&&(l.globalAlpha=fr=oe)}}),x.forEach((X,ie)=>{if(ie>0&&X.show){let oe=fr;fr!=X.alpha&&(l.globalAlpha=fr=X.alpha),X._paths!=null&&ss(ie,!1);{let ge=X._paths!=null?X._paths.gaps:null,xe=X.points.show(r,ie,ze,Pe,ge),Ie=X.points.filter(r,ie,xe,ge);(xe||Ie)&&(X.points._paths=X.points.paths(r,ie,ze,Pe,Ie),ss(ie,!0))}fr!=oe&&(l.globalAlpha=fr=oe),nt("drawSeries",ie)}}),V&&(l.globalAlpha=fr=1)}}function os(V,X){let ie=X?x[V].points:x[V];ie._stroke=ie.stroke(r,V),ie._fill=ie.fill(r,V)}function ss(V,X){let ie=X?x[V].points:x[V],{stroke:oe,fill:ge,clip:xe,flags:Ie,_stroke:Fe=ie._stroke,_fill:Be=ie._fill,_width:Ke=ie.width}=ie._paths;Ke=gn(Ke*en,3);let Xe=null,Je=Ke%2/2;X&&Be==null&&(Be=Ke>0?"#fff":Fe);let wt=ie.pxAlign==1&&Je>0;if(wt&&l.translate(Je,Je),!X){let Ft=Wn-Ke/2,Ct=Nn-Ke/2,Nt=Gt+Ke,ft=ln+Ke;Xe=new Path2D,Xe.rect(Ft,Ct,Nt,ft)}X?Eo(Fe,Ke,ie.dash,ie.cap,Be,oe,ge,Ie,xe):Ws(V,Fe,Ke,ie.dash,ie.cap,Be,oe,ge,Ie,Xe,xe),wt&&l.translate(-Je,-Je)}function Ws(V,X,ie,oe,ge,xe,Ie,Fe,Be,Ke,Xe){let Je=!1;Be!=0&&k.forEach((wt,Ft)=>{if(wt.series[0]==V){let Ct=x[wt.series[1]],Nt=t[wt.series[1]],ft=(Ct._paths||Ya).band;Qo(ft)&&(ft=wt.dir==1?ft[0]:ft[1]);let it,yn=null;Ct.show&&ft&&oA(Nt,ze,Pe)?(yn=wt.fill(r,Ft)||xe,it=Ct._paths.clip):ft=null,Eo(X,ie,oe,ge,yn,Ie,Fe,Be,Ke,Xe,it,ft),Je=!0}}),Je||Eo(X,ie,oe,ge,xe,Ie,Fe,Be,Ke,Xe)}const as=da|fh;function Eo(V,X,ie,oe,ge,xe,Ie,Fe,Be,Ke,Xe,Je){Ps(V,X,ie,oe,ge),(Be||Ke||Je)&&(l.save(),Be&&l.clip(Be),Ke&&l.clip(Ke)),Je?(Fe&as)==as?(l.clip(Je),Xe&&l.clip(Xe),gr(ge,Ie),Wi(V,xe,X)):Fe&fh?(gr(ge,Ie),l.clip(Je),Wi(V,xe,X)):Fe&da&&(l.save(),l.clip(Je),Xe&&l.clip(Xe),gr(ge,Ie),l.restore(),Wi(V,xe,X)):(gr(ge,Ie),Wi(V,xe,X)),(Be||Ke||Je)&&l.restore()}function Wi(V,X,ie){ie>0&&(X instanceof Map?X.forEach((oe,ge)=>{l.strokeStyle=zn=ge,l.stroke(oe)}):X!=null&&V&&l.stroke(X))}function gr(V,X){X instanceof Map?X.forEach((ie,oe)=>{l.fillStyle=Cr=oe,l.fill(ie)}):X!=null&&V&&l.fill(X)}function wo(V,X,ie,oe){let ge=I[V],xe;if(oe<=0)xe=[0,0];else{let Ie=ge._space=ge.space(r,V,X,ie,oe),Fe=ge._incrs=ge.incrs(r,V,X,ie,oe,Ie);xe=_S(X,ie,Fe,oe,Ie)}return ge._found=xe}function oo(V,X,ie,oe,ge,xe,Ie,Fe,Be,Ke){let Xe=Ie%2/2;s==1&&l.translate(Xe,Xe),Ps(Fe,Ie,Be,Ke,Fe),l.beginPath();let Je,wt,Ft,Ct,Nt=ge+(oe==0||oe==3?-xe:xe);ie==0?(wt=ge,Ct=Nt):(Je=ge,Ft=Nt);for(let ft=0;ft<V.length;ft++)X[ft]!=null&&(ie==0?Je=Ft=V[ft]:wt=Ct=V[ft],l.moveTo(Je,wt),l.lineTo(Ft,Ct));l.stroke(),s==1&&l.translate(-Xe,-Xe)}function wa(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,so(!1));return}else ie._show||(X=!1,ie._show=!0,so(!1));let xe=ie.side,Ie=xe%2,{min:Fe,max:Be}=ge,[Ke,Xe]=wo(oe,Fe,Be,Ie==0?yt:je);if(Xe==0)return;let Je=ge.distr==2,wt=ie._splits=ie.splits(r,oe,Fe,Be,Ke,Xe,Je),Ft=ge.distr==2?wt.map(it=>Yt[it]):wt,Ct=ge.distr==2?Yt[wt[1]]-Yt[wt[0]]:Ke,Nt=ie._values=ie.values(r,ie.filter(r,Ft,oe,Xe,Ct),oe,Xe,Ct);ie._rotate=xe==2?ie.rotate(r,Nt,oe,Xe):0;let ft=ie._size;ie._size=Pi(ie.size(r,Nt,oe,V)),ft!=null&&ie._size!=ft&&(X=!1)}),X}function ul(V){let X=!0;return Mo.forEach((ie,oe)=>{let ge=ie(r,oe,gi,V);ge!=wr[oe]&&(X=!1),wr[oe]=ge}),X}function Ro(){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,xe,Ie=X.stroke(r,V),Fe=ie==0||ie==3?-1:1,[Be,Ke]=X._found;if(X.label!=null){let dn=X.labelGap*Fe,_r=ur((X._lpos+dn)*en);Io(X.labelFont[0],Ie,"center",ie==2?qa:Rg),l.save(),oe==1?(ge=xe=0,l.translate(_r,ur(Nn+ln/2)),l.rotate((ie==3?-ec:ec)/2)):(ge=ur(Wn+Gt/2),xe=_r);let Po=Qg(X.label)?X.label(r,V,Be,Ke):X.label;l.fillText(Po,ge,xe),l.restore()}if(Ke==0)continue;let Xe=_[X.scale],Je=oe==0?Gt:ln,wt=oe==0?Wn:Nn,Ft=X._splits,Ct=Xe.distr==2?Ft.map(dn=>Yt[dn]):Ft,Nt=Xe.distr==2?Yt[Ft[1]]-Yt[Ft[0]]:Be,ft=X.ticks,it=X.border,yn=ft.show?ft.size:0,Rn=ur(yn*en),ar=ur((X.alignTo==2?X._size-yn-X.gap:X.gap)*en),qt=X._rotate*-ec/180,fe=p(X._pos*en),$e=(Rn+ar)*Fe,Ce=fe+$e;xe=oe==0?Ce:0,ge=oe==1?Ce:0;let Ue=X.font[0],dt=X.align==1?oa:X.align==2?ju:qt>0?oa:qt<0?ju:oe==0?"center":ie==3?ju:oa,Tt=qt||oe==1?"middle":ie==2?qa:Rg;Io(Ue,Ie,dt,Tt);let Zt=X.font[1]*X.lineGap,Et=Ft.map(dn=>p(w(dn,Xe,Je,wt))),ei=X._values;for(let dn=0;dn<ei.length;dn++){let _r=ei[dn];if(_r!=null){oe==0?ge=Et[dn]:xe=Et[dn],_r=""+_r;let Po=_r.indexOf(`
1495
+ `)==-1?[_r]:_r.split(/\n/gm);for(let Vn=0;Vn<Po.length;Vn++){let zs=Po[Vn];qt?(l.save(),l.translate(ge,xe+Vn*Zt),l.rotate(qt),l.fillText(zs,0,0),l.restore()):l.fillText(zs,ge,xe+Vn*Zt)}}}ft.show&&oo(Et,ft.filter(r,Ct,V,Ke,Nt),oe,ie,fe,Rn,gn(ft.width*en,3),ft.stroke(r,V),ft.dash,ft.cap);let Ui=X.grid;Ui.show&&oo(Et,Ui.filter(r,Ct,V,Ke,Nt),oe,oe==0?2:1,oe==0?Nn:Wn,oe==0?ln:Gt,gn(Ui.width*en,3),Ui.stroke(r,V),Ui.dash,Ui.cap),it.show&&oo([fe],[1],oe==0?1:0,oe==0?1:2,oe==1?Nn:Wn,oe==1?ln:Gt,gn(it.width*en,3),it.stroke(r,V),it.dash,it.cap)}nt("drawAxes")}function so(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 Lo=!1,ls=!1,Oo=[];function xa(){ls=!1;for(let V=0;V<Oo.length;V++)nt(...Oo[V]);Oo.length=0}function xo(){Lo||(bA(Ca),Lo=!0)}function We(V,X=!1){Lo=!0,ls=X,V(r),Ca(),X&&Oo.length>0&&queueMicrotask(xa)}r.batch=We;function Ca(){if(Dr&&(bo(),Dr=!1),Yr&&(Xr(),Yr=!1),Gr){if(xn(c,oa,Lt),xn(c,qa,Ht),xn(c,Ua,yt),xn(c,Va,je),xn(i,oa,Lt),xn(i,qa,Ht),xn(i,Ua,yt),xn(i,Va,je),xn(u,Ua,Xn),xn(u,Va,Mr),a.width=ur(Xn*en),a.height=ur(Mr*en),I.forEach(({_el:V,_show:X,_size:ie,_pos:oe,side:ge})=>{if(V!=null)if(X){let xe=ge===3||ge===0?ie:0,Ie=ge%2==1;xn(V,Ie?"left":"top",oe-xe),xn(V,Ie?"width":"height",ie),xn(V,Ie?"top":"left",Ie?Ht:Lt),xn(V,Ie?"height":"width",Ie?je:yt),Xu(V,Ss)}else Ci(V,Ss)}),zn=Cr=vn=Fr=ts=Ns=Ds=ns=io=null,fr=1,W(!0),Lt!=Tn||Ht!=yr||yt!=hr||je!=mn){so(!1);let V=yt/hr,X=je/mn;if(se&&!Si&&ne.left>=0){ne.left*=V,ne.top*=X,_i&&ho(_i,ur(ne.left),0,yt,je),Zn&&ho(Zn,0,ur(ne.top),yt,je);for(let ie=0;ie<Mn.length;ie++){let oe=Mn[ie];oe!=null&&(br[ie]*=V,fi[ie]*=X,ho(oe,Pi(br[ie]),Pi(fi[ie]),yt,je))}}if(bt.show&&!ci&&bt.left>=0&&bt.width>0){bt.left*=V,bt.width*=V,bt.top*=X,bt.height*=X;for(let ie in Y)xn(Qr,ie,bt[ie])}Tn=Lt,yr=Ht,hr=yt,mn=je}nt("setSize"),Gr=!1}Xn>0&&Mr>0&&(l.clearRect(0,0,a.width,a.height),nt("drawClear"),D.forEach(V=>V()),nt("draw")),bt.show&&ci&&(hn(bt),ci=!1),se&&Si&&(S(null,!0,!1),Si=!1),he.show&&he.live&&Bn&&(y(),Bn=!1),h||(h=!0,r.status=1,nt("ready")),jt=!1,Lo=!1}r.redraw=(V,X)=>{Yr=X||!1,V!==!1?or(C,z.min,z.max):xo()};function Ne(V,X){let ie=_[V];if(ie.from==null){if(ce==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(ce>1&&X.min!=null&&X.max!=null&&X.max-X.min<1e-16)return;V==C&&ie.distr==2&&ce>0&&(X.min=Ji(X.min,t[0]),X.max=Ji(X.max,t[0]),X.min==X.max&&X.max++),A[V]=X,Dr=!0,xo()}}r.setScale=Ne;let Dn,No,_i,Zn,ka,Do,Bi,Co,nn,Jt,rn,Ut,zi=!1;const Hn=ne.drag;let He=Hn.x,bn=Hn.y;se&&(ne.x&&(Dn=Di(jk,i)),ne.y&&(No=Di(Uk,i)),z.ori==0?(_i=Dn,Zn=No):(_i=No,Zn=Dn),rn=ne.left,Ut=ne.top);const bt=r.select=rr({show:!0,over:!0,left:0,width:0,top:0,height:0},n.select),Qr=bt.show?Di(Hk,bt.over?i:c):null;function hn(V,X){if(bt.show){for(let ie in V)bt[ie]=V[ie],ie in Y&&xn(Qr,ie,V[ie]);X!==!1&&nt("setSelect")}}r.setSelect=hn;function _n(V){if(x[V].show)le&&Xu(Me[V],Ss);else if(le&&Ci(Me[V],Ss),se){let X=Sn?Mn[0]:Mn[V];X!=null&&ho(X,-10,-10,yt,je)}}function or(V,X,ie){Ne(V,{min:X,max:ie})}function Jr(V,X,ie,oe){X.focus!=null&&kr(V),X.show!=null&&x.forEach((ge,xe)=>{xe>0&&(V==xe||V==null)&&(ge.show=X.show,_n(xe),f==2?(or(ge.facets[0].scale,null,null),or(ge.facets[1].scale,null,null)):or(ge.scale,null,null),xo())}),ie!==!1&&nt("setSeries",V,X),oe&&$t("setSeries",r,V,X)}r.setSeries=Jr;function Hi(V,X){rr(k[V],X)}function jn(V,X){V.fill=zt(V.fill||null),V.dir=Qt(V.dir,-1),X=X??k.length,k.splice(X,0,V)}function mi(V){V==null?k.length=0:k.splice(V,1)}r.addBand=jn,r.setBand=Hi,r.delBand=mi;function cs(V,X){x[V].alpha=X,se&&Mn[V]!=null&&(Mn[V].style.opacity=X),le&&Me[V]&&(Me[V].style.opacity=X)}let Un,$i,Ti;const ji={focus:!0};function kr(V){if(V!=Ti){let X=V==null,ie=dr.alpha!=1;x.forEach((oe,ge)=>{if(f==1||ge>0){let xe=X||ge==0||ge==V;oe._focus=X?null:xe,ie&&cs(ge,xe?1:dr.alpha)}}),Ti=V,ie&&xo()}}le&&pi&&un(Dg,me,V=>{ne._lock||(di(V),Ti!=null&&Jr(null,ji,!0,ut.setSeries))});function Ar(V,X,ie){let oe=_[X];ie&&(V=V/en-(oe.ori==1?Ht:Lt));let ge=yt;oe.ori==1&&(ge=je,V=ge-V),oe.dir==-1&&(V=ge-V);let xe=oe._min,Ie=oe._max,Fe=V/ge,Be=xe+(Ie-xe)*Fe,Ke=oe.distr;return Ke==3?la(10,Be):Ke==4?aA(Be,oe.asinh):Ke==100?oe.bwd(Be):Be}function Ir(V,X){let ie=Ar(V,C,X);return Ji(ie,t[0],ze,Pe)}r.valToIdx=V=>Ji(V,t[0]),r.posToIdx=Ir,r.posToVal=Ar,r.valToPos=(V,X,ie)=>_[X].ori==0?g(V,_[X],ie?Gt:yt,ie?Wn:0):m(V,_[X],ie?ln:je,ie?Nn:0),r.setCursor=(V,X,ie)=>{rn=V.left,Ut=V.top,S(null,X,ie)};function Bs(V,X){xn(Qr,oa,bt.left=V),xn(Qr,Ua,bt.width=X)}function Er(V,X){xn(Qr,qa,bt.top=V),xn(Qr,Va,bt.height=X)}let Wr=z.ori==0?Bs:Er,Mi=z.ori==1?Bs:Er;function Ii(){if(le&&he.live)for(let V=f==2?1:0;V<x.length;V++){if(V==0&&lt)continue;let X=he.values[V],ie=0;for(let oe in X)Ze[V][ie++].firstChild.nodeValue=X[oe]}}function y(V,X){if(V!=null&&(V.idxs?V.idxs.forEach((ie,oe)=>{J[oe]=ie}):hA(V.idx)||J.fill(V.idx),he.idx=J[0]),le&&he.live){for(let ie=0;ie<x.length;ie++)(ie>0||f==1&&!lt)&&T(ie,J[ie]);Ii()}Bn=!1,X!==!1&&nt("setLegend")}r.setLegend=y;function T(V,X){let ie=x[V],oe=V==0&&F==2?Yt:t[V],ge;lt?ge=ie.values(r,V,X)??tt:(ge=ie.value(r,X==null?null:oe[X],V,X),ge=ge==null?tt:{_:ge}),he.values[V]=ge}function S(V,X,ie){nn=rn,Jt=Ut,[rn,Ut]=ne.move(r,rn,Ut),ne.left=rn,ne.top=Ut,se&&(_i&&ho(_i,ur(rn),0,yt,je),Zn&&ho(Zn,0,ur(Ut),yt,je));let oe,ge=ze>Pe;Un=fn,$i=null;let xe=z.ori==0?yt:je,Ie=z.ori==1?yt:je;if(rn<0||ce==0||ge){oe=ne.idx=null;for(let Fe=0;Fe<x.length;Fe++){let Be=Mn[Fe];Be!=null&&ho(Be,-10,-10,yt,je)}pi&&Jr(null,ji,!0,V==null&&ut.setSeries),he.live&&(J.fill(oe),Bn=!0)}else{let Fe,Be,Ke;f==1&&(Fe=z.ori==0?rn:Ut,Be=Ar(Fe,C),oe=ne.idx=Ji(Be,t[0],ze,Pe),Ke=O(t[0][oe],z,xe,0));let Xe=-10,Je=-10,wt=0,Ft=0,Ct=!0,Nt="",ft="";for(let it=f==2?1:0;it<x.length;it++){let yn=x[it],Rn=J[it],ar=Rn==null?null:f==1?t[it][Rn]:t[it][1][Rn],qt=ne.dataIdx(r,it,oe,Be),fe=qt==null?null:f==1?t[it][qt]:t[it][1][qt];if(Bn=Bn||fe!=ar||qt!=Rn,J[it]=qt,it>0&&yn.show){let $e=qt==null?-10:qt==oe?Ke:O(f==1?t[0][qt]:t[it][0][qt],z,xe,0),Ce=fe==null?-10:$(fe,f==1?_[yn.scale]:_[yn.facets[1].scale],Ie,0);if(pi&&fe!=null){let Ue=z.ori==1?rn:Ut,dt=cr(dr.dist(r,it,qt,Ce,Ue));if(dt<Un){let Tt=dr.bias;if(Tt!=0){let Zt=Ar(Ue,yn.scale),Et=fe>=0?1:-1,ei=Zt>=0?1:-1;ei==Et&&(ei==1?Tt==1?fe>=Zt:fe<=Zt:Tt==1?fe<=Zt:fe>=Zt)&&(Un=dt,$i=it)}else Un=dt,$i=it}}if(Bn||Sn){let Ue,dt;z.ori==0?(Ue=$e,dt=Ce):(Ue=Ce,dt=$e);let Tt,Zt,Et,ei,Ui,dn,_r=!0,Po=An.bbox;if(Po!=null){_r=!1;let Vn=Po(r,it);Et=Vn.left,ei=Vn.top,Tt=Vn.width,Zt=Vn.height}else Et=Ue,ei=dt,Tt=Zt=An.size(r,it);if(dn=An.fill(r,it),Ui=An.stroke(r,it),Sn)it==$i&&Un<=dr.prox&&(Xe=Et,Je=ei,wt=Tt,Ft=Zt,Ct=_r,Nt=dn,ft=Ui);else{let Vn=Mn[it];Vn!=null&&(br[it]=Et,fi[it]=ei,jg(Vn,Tt,Zt,_r),zg(Vn,dn,Ui),ho(Vn,Pi(Et),Pi(ei),yt,je))}}}}if(Sn){let it=dr.prox,yn=Ti==null?Un<=it:Un>it||$i!=Ti;if(Bn||yn){let Rn=Mn[0];Rn!=null&&(br[0]=Xe,fi[0]=Je,jg(Rn,wt,Ft,Ct),zg(Rn,Nt,ft),ho(Rn,Pi(Xe),Pi(Je),yt,je))}}}if(bt.show&&zi)if(V!=null){let[Fe,Be]=ut.scales,[Ke,Xe]=ut.match,[Je,wt]=V.cursor.sync.scales,Ft=V.cursor.drag;if(He=Ft._x,bn=Ft._y,He||bn){let{left:Ct,top:Nt,width:ft,height:it}=V.select,yn=V.scales[Je].ori,Rn=V.posToVal,ar,qt,fe,$e,Ce,Ue=Fe!=null&&Ke(Fe,Je),dt=Be!=null&&Xe(Be,wt);Ue&&He?(yn==0?(ar=Ct,qt=ft):(ar=Nt,qt=it),fe=_[Fe],$e=O(Rn(ar,Je),fe,xe,0),Ce=O(Rn(ar+qt,Je),fe,xe,0),Wr(eo($e,Ce),cr(Ce-$e))):Wr(0,xe),dt&&bn?(yn==1?(ar=Ct,qt=ft):(ar=Nt,qt=it),fe=_[Be],$e=$(Rn(ar,wt),fe,Ie,0),Ce=$(Rn(ar+qt,wt),fe,Ie,0),Mi(eo($e,Ce),cr(Ce-$e))):Mi(0,Ie)}else Z()}else{let Fe=cr(nn-ka),Be=cr(Jt-Do);if(z.ori==1){let wt=Fe;Fe=Be,Be=wt}He=Hn.x&&Fe>=Hn.dist,bn=Hn.y&&Be>=Hn.dist;let Ke=Hn.uni;Ke!=null?He&&bn&&(He=Fe>=Ke,bn=Be>=Ke,!He&&!bn&&(Be>Fe?bn=!0:He=!0)):Hn.x&&Hn.y&&(He||bn)&&(He=bn=!0);let Xe,Je;He&&(z.ori==0?(Xe=Bi,Je=rn):(Xe=Co,Je=Ut),Wr(eo(Xe,Je),cr(Je-Xe)),bn||Mi(0,Ie)),bn&&(z.ori==1?(Xe=Bi,Je=rn):(Xe=Co,Je=Ut),Mi(eo(Xe,Je),cr(Je-Xe)),He||Wr(0,xe)),!He&&!bn&&(Wr(0,0),Mi(0,0))}if(Hn._x=He,Hn._y=bn,V==null){if(ie){if(In!=null){let[Fe,Be]=ut.scales;ut.values[0]=Fe!=null?Ar(z.ori==0?rn:Ut,Fe):null,ut.values[1]=Be!=null?Ar(z.ori==1?rn:Ut,Be):null}$t(Vu,r,rn,Ut,yt,je,oe)}if(pi){let Fe=ie&&ut.setSeries,Be=dr.prox;Ti==null?Un<=Be&&Jr($i,ji,!0,Fe):Un>Be?Jr(null,ji,!0,Fe):$i!=Ti&&Jr($i,ji,!0,Fe)}}Bn&&(he.idx=oe,y()),X!==!1&&nt("setCursor")}let P=null;Object.defineProperty(r,"rect",{get(){return P==null&&W(!1),P}});function W(V=!1){V?P=null:(P=i.getBoundingClientRect(),nt("syncRect",P))}function H(V,X,ie,oe,ge,xe,Ie){ne._lock||zi&&V!=null&&V.movementX==0&&V.movementY==0||(q(V,X,ie,oe,ge,xe,Ie,!1,V!=null),V!=null?S(null,!0,!0):S(X,!0,!1))}function q(V,X,ie,oe,ge,xe,Ie,Fe,Be){if(P==null&&W(!1),di(V),V!=null)ie=V.clientX-P.left,oe=V.clientY-P.top;else{if(ie<0||oe<0){rn=-10,Ut=-10;return}let[Ke,Xe]=ut.scales,Je=X.cursor.sync,[wt,Ft]=Je.values,[Ct,Nt]=Je.scales,[ft,it]=ut.match,yn=X.axes[0].side%2==1,Rn=z.ori==0?yt:je,ar=z.ori==1?yt:je,qt=yn?xe:ge,fe=yn?ge:xe,$e=yn?oe:ie,Ce=yn?ie:oe;if(Ct!=null?ie=ft(Ke,Ct)?w(wt,_[Ke],Rn,0):-10:ie=Rn*($e/qt),Nt!=null?oe=it(Xe,Nt)?w(Ft,_[Xe],ar,0):-10:oe=ar*(Ce/fe),z.ori==1){let Ue=ie;ie=oe,oe=Ue}}Be&&(X==null||X.cursor.event.type==Vu)&&((ie<=1||ie>=yt-1)&&(ie=Ts(ie,yt)),(oe<=1||oe>=je-1)&&(oe=Ts(oe,je))),Fe?(ka=ie,Do=oe,[Bi,Co]=ne.move(r,ie,oe)):(rn=ie,Ut=oe)}const Y={width:0,height:0,left:0,top:0};function Z(){hn(Y,!1)}let re,ae,be,ke;function ve(V,X,ie,oe,ge,xe,Ie){zi=!0,He=bn=Hn._x=Hn._y=!1,q(V,X,ie,oe,ge,xe,Ie,!0,!1),V!=null&&(un(qu,Gu,we,!1),$t(Og,r,Bi,Co,yt,je,null));let{left:Fe,top:Be,width:Ke,height:Xe}=bt;re=Fe,ae=Be,be=Ke,ke=Xe}function we(V,X,ie,oe,ge,xe,Ie){zi=Hn._x=Hn._y=!1,q(V,X,ie,oe,ge,xe,Ie,!1,!0);let{left:Fe,top:Be,width:Ke,height:Xe}=bt,Je=Ke>0||Xe>0,wt=re!=Fe||ae!=Be||be!=Ke||ke!=Xe;if(Je&&wt&&hn(bt),Hn.setScale&&Je&&wt){let Ft=Fe,Ct=Ke,Nt=Be,ft=Xe;if(z.ori==1&&(Ft=Be,Ct=Xe,Nt=Fe,ft=Ke),He&&or(C,Ar(Ft,C),Ar(Ft+Ct,C)),bn)for(let it in _){let yn=_[it];it!=C&&yn.from==null&&yn.min!=fn&&or(it,Ar(Nt+ft,it),Ar(Nt,it))}Z()}else ne.lock&&(ne._lock=!ne._lock,S(X,!0,V!=null));V!=null&&(On(qu,Gu),$t(qu,r,rn,Ut,yt,je,null))}function Oe(V,X,ie,oe,ge,xe,Ie){if(ne._lock)return;di(V);let Fe=zi;if(zi){let Be=!0,Ke=!0,Xe=10,Je,wt;z.ori==0?(Je=He,wt=bn):(Je=bn,wt=He),Je&&wt&&(Be=rn<=Xe||rn>=yt-Xe,Ke=Ut<=Xe||Ut>=je-Xe),Je&&Be&&(rn=rn<Bi?0:yt),wt&&Ke&&(Ut=Ut<Co?0:je),S(null,!0,!0),zi=!1}rn=-10,Ut=-10,J.fill(null),S(null,!0,!0),Fe&&(zi=Fe)}function Le(V,X,ie,oe,ge,xe,Ie){ne._lock||(di(V),pr(),Z(),V!=null&&$t(Pg,r,rn,Ut,yt,je,null))}function qe(){I.forEach($S),ro(r.width,r.height,!0)}_s(Yl,aa,qe);const at={};at.mousedown=ve,at.mousemove=H,at.mouseup=we,at.dblclick=Le,at.setSeries=(V,X,ie,oe)=>{let ge=ut.match[2];ie=ge(r,X,ie),ie!=-1&&Jr(ie,oe,!0,!1)},se&&(un(Og,i,ve),un(Vu,i,H),un(Ng,i,V=>{di(V),W(!1)}),un(Dg,i,Oe),un(Pg,i,Le),yh.add(r),r.syncRect=W);const Qe=r.hooks=n.hooks||{};function nt(V,X,ie){ls?Oo.push([V,X,ie]):V in Qe&&Qe[V].forEach(oe=>{oe.call(null,r,X,ie)})}(n.plugins||[]).forEach(V=>{for(let X in V.hooks)Qe[X]=(Qe[X]||[]).concat(V.hooks[X])});const wn=(V,X,ie)=>ie,ut=rr({key:null,setSeries:!1,filters:{pub:tm,sub:tm},scales:[C,x[1]?x[1].scale:null],match:[nm,nm,wn],values:[null,null]},ne.sync);ut.match.length==2&&ut.match.push(wn),ne.sync=ut;const In=ut.key,xt=Bm(In);function $t(V,X,ie,oe,ge,xe,Ie){ut.filters.pub(V,X,ie,oe,ge,xe,Ie)&&xt.pub(V,X,ie,oe,ge,xe,Ie)}xt.sub(r);function sr(V,X,ie,oe,ge,xe,Ie){ut.filters.sub(V,X,ie,oe,ge,xe,Ie)&&at[V](null,X,ie,oe,ge,xe,Ie)}r.pub=sr;function Sr(){xt.unsub(r),yh.delete(r),vr.clear(),Qu(Yl,aa,qe),d.remove(),me==null||me.remove(),nt("destroy")}r.destroy=Sr;function En(){nt("init",n,t),xr(t||n.data,!1),A[C]?Ne(C,A[C]):pr(),ci=bt.show&&(bt.width>0||bt.height>0),Si=Bn=!0,ro(n.width,n.height)}return x.forEach(yo),I.forEach(Pr),e?e instanceof HTMLElement?(e.appendChild(d),En()):e(r,En):En(),r}Or.assign=rr,Or.fmtNum=th,Or.rangeNum=Jl,Or.rangeLog=Ql,Or.rangeAsinh=Ju,Or.orient=Is,Or.pxRatio=en,Or.join=yA,Or.fmtDate=oh,Or.tzDate=MA,Or.sync=Bm;{Or.addGap=hS,Or.clipGaps=sc;let n=Or.paths={points:Km};n.linear=Ym,n.stepped=fS,n.bars=gS,n.spline=vS}var rv,iv;function TS(){return iv||(iv=1,rv=function(n,t,e,r,f){var g,m;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(g=r+(f-r>>>1),m=+e(n[g],t,g,n),m<0)r=g+1;else if(m>0)f=g-1;else return g;return~r}),rv}var MS=TS();const xD=er("b",El(MS));var wh,ov;function IS(){if(ov)return wh;ov=1;function n(t,e,r){var f=-1,g=t.length;e<0&&(e=-e>g?0:g+e),r=r>g?g:r,r<0&&(r+=g),g=e>r?0:r-e>>>0,e>>>=0;for(var m=Array(g);++f<g;)m[f]=t[f+e];return m}return wh=n,wh}var xh,sv;function ES(){if(sv)return xh;sv=1;var n=IS();function t(e,r,f){var g=e.length;return f=f===void 0?g:f,!r&&f>=g?e:n(e,r,f)}return xh=t,xh}var Ch,av;function lv(){if(av)return Ch;av=1;var n="\\ud800-\\udfff",t="\\u0300-\\u036f",e="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",f=t+e+r,g="\\ufe0e\\ufe0f",m="\\u200d",w=RegExp("["+m+n+f+g+"]");function h(d){return w.test(d)}return Ch=h,Ch}var kh,cv;function RS(){if(cv)return kh;cv=1;function n(t){return t.split("")}return kh=n,kh}var Ah,uv;function LS(){if(uv)return Ah;uv=1;var n="\\ud800-\\udfff",t="\\u0300-\\u036f",e="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",f=t+e+r,g="\\ufe0e\\ufe0f",m="["+n+"]",w="["+f+"]",h="\\ud83c[\\udffb-\\udfff]",d="(?:"+w+"|"+h+")",a="[^"+n+"]",l="(?:\\ud83c[\\udde6-\\uddff]){2}",u="[\\ud800-\\udbff][\\udc00-\\udfff]",c="\\u200d",i=d+"?",s="["+g+"]?",p="(?:"+c+"(?:"+[a,l,u].join("|")+")"+s+i+")*",b=s+i+p,x="(?:"+[a+w+"?",w,l,u,m].join("|")+")",I=RegExp(h+"(?="+h+")|"+x+b,"g");function _(k){return k.match(I)||[]}return Ah=_,Ah}var Sh,hv;function OS(){if(hv)return Sh;hv=1;var n=RS(),t=lv(),e=LS();function r(f){return t(f)?e(f):n(f)}return Sh=r,Sh}var _h,dv;function NS(){if(dv)return _h;dv=1;var n=typeof Xo=="object"&&Xo&&Xo.Object===Object&&Xo;return _h=n,_h}var $h,pv;function DS(){if(pv)return $h;pv=1;var n=NS(),t=typeof self=="object"&&self&&self.Object===Object&&self,e=n||t||Function("return this")();return $h=e,$h}var Th,fv;function Mh(){if(fv)return Th;fv=1;var n=DS(),t=n.Symbol;return Th=t,Th}var Ih,gv;function PS(){if(gv)return Ih;gv=1;function n(t,e){for(var r=-1,f=t==null?0:t.length,g=Array(f);++r<f;)g[r]=e(t[r],r,t);return g}return Ih=n,Ih}var Eh,mv;function FS(){if(mv)return Eh;mv=1;var n=Array.isArray;return Eh=n,Eh}var Rh,vv;function WS(){if(vv)return Rh;vv=1;var n=Mh(),t=Object.prototype,e=t.hasOwnProperty,r=t.toString,f=n?n.toStringTag:void 0;function g(m){var w=e.call(m,f),h=m[f];try{m[f]=void 0;var d=!0}catch{}var a=r.call(m);return d&&(w?m[f]=h:delete m[f]),a}return Rh=g,Rh}var Lh,yv;function BS(){if(yv)return Lh;yv=1;var n=Object.prototype,t=n.toString;function e(r){return t.call(r)}return Lh=e,Lh}var Oh,bv;function zS(){if(bv)return Oh;bv=1;var n=Mh(),t=WS(),e=BS(),r="[object Null]",f="[object Undefined]",g=n?n.toStringTag:void 0;function m(w){return w==null?w===void 0?f:r:g&&g in Object(w)?t(w):e(w)}return Oh=m,Oh}var Nh,wv;function HS(){if(wv)return Nh;wv=1;function n(t){return t!=null&&typeof t=="object"}return Nh=n,Nh}var Dh,xv;function jS(){if(xv)return Dh;xv=1;var n=zS(),t=HS(),e="[object Symbol]";function r(f){return typeof f=="symbol"||t(f)&&n(f)==e}return Dh=r,Dh}var Ph,Cv;function US(){if(Cv)return Ph;Cv=1;var n=Mh(),t=PS(),e=FS(),r=jS(),f=n?n.prototype:void 0,g=f?f.toString:void 0;function m(w){if(typeof w=="string")return w;if(e(w))return t(w,m)+"";if(r(w))return g?g.call(w):"";var h=w+"";return h=="0"&&1/w==-1/0?"-0":h}return Ph=m,Ph}var Fh,kv;function uc(){if(kv)return Fh;kv=1;var n=US();function t(e){return e==null?"":n(e)}return Fh=t,Fh}var Wh,Av;function VS(){if(Av)return Wh;Av=1;var n=ES(),t=lv(),e=OS(),r=uc();function f(g){return function(m){m=r(m);var w=t(m)?e(m):void 0,h=w?w[0]:m.charAt(0),d=w?n(w,1).join(""):m.slice(1);return h[g]()+d}}return Wh=f,Wh}var Bh,Sv;function _v(){if(Sv)return Bh;Sv=1;var n=VS(),t=n("toUpperCase");return Bh=t,Bh}var qS=_v();const KS=El(qS);var zh,$v;function GS(){if($v)return zh;$v=1;var n=uc(),t=_v();function e(r){return t(n(r).toLowerCase())}return zh=e,zh}var Hh,Tv;function YS(){if(Tv)return Hh;Tv=1;function n(t,e,r,f){var g=-1,m=t==null?0:t.length;for(f&&m&&(r=t[++g]);++g<m;)r=e(r,t[g],g,t);return r}return Hh=n,Hh}var jh,Mv;function XS(){if(Mv)return jh;Mv=1;function n(t){return function(e){return t==null?void 0:t[e]}}return jh=n,jh}var Uh,Iv;function ZS(){if(Iv)return Uh;Iv=1;var n=XS(),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 Uh=e,Uh}var Vh,Ev;function QS(){if(Ev)return Vh;Ev=1;var n=ZS(),t=uc(),e=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,r="\\u0300-\\u036f",f="\\ufe20-\\ufe2f",g="\\u20d0-\\u20ff",m=r+f+g,w="["+m+"]",h=RegExp(w,"g");function d(a){return a=t(a),a&&a.replace(e,n).replace(h,"")}return Vh=d,Vh}var qh,Rv;function JS(){if(Rv)return qh;Rv=1;var n=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function t(e){return e.match(n)||[]}return qh=t,qh}var Kh,Lv;function e_(){if(Lv)return Kh;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 Kh=t,Kh}var Gh,Ov;function t_(){if(Ov)return Gh;Ov=1;var n="\\ud800-\\udfff",t="\\u0300-\\u036f",e="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",f=t+e+r,g="\\u2700-\\u27bf",m="a-z\\xdf-\\xf6\\xf8-\\xff",w="\\xac\\xb1\\xd7\\xf7",h="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",d="\\u2000-\\u206f",a=" \\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",c=w+h+d+a,i="['’]",s="["+c+"]",p="["+f+"]",b="\\d+",x="["+g+"]",I="["+m+"]",_="[^"+n+c+b+g+m+l+"]",k="\\ud83c[\\udffb-\\udfff]",C="(?:"+p+"|"+k+")",L="[^"+n+"]",D="(?:\\ud83c[\\udde6-\\uddff]){2}",R="[\\ud800-\\udbff][\\udc00-\\udfff]",E="["+l+"]",z="\\u200d",F="(?:"+I+"|"+_+")",O="(?:"+E+"|"+_+")",$="(?:"+i+"(?:d|ll|m|re|s|t|ve))?",A="(?:"+i+"(?:D|LL|M|RE|S|T|VE))?",N=C+"?",B="["+u+"]?",U="(?:"+z+"(?:"+[L,D,R].join("|")+")"+B+N+")*",K="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Q="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",J=B+N+U,he="(?:"+[x,D,R].join("|")+")"+J,ne=RegExp([E+"?"+I+"+"+$+"(?="+[s,E,"$"].join("|")+")",O+"+"+A+"(?="+[s,E+F,"$"].join("|")+")",E+"?"+F+"+"+$,E+"+"+A,Q,K,b,he].join("|"),"g");function le(se){return se.match(ne)||[]}return Gh=le,Gh}var Yh,Nv;function n_(){if(Nv)return Yh;Nv=1;var n=JS(),t=e_(),e=uc(),r=t_();function f(g,m,w){return g=e(g),m=w?void 0:m,m===void 0?t(g)?r(g):n(g):g.match(m)||[]}return Yh=f,Yh}var Xh,Dv;function r_(){if(Dv)return Xh;Dv=1;var n=YS(),t=QS(),e=n_(),r="['’]",f=RegExp(r,"g");function g(m){return function(w){return n(e(t(w).replace(f,"")),m,"")}}return Xh=g,Xh}var Zh,Pv;function i_(){if(Pv)return Zh;Pv=1;var n=GS(),t=r_(),e=t(function(r,f,g){return f=f.toLowerCase(),r+(g?n(f):f)});return Zh=e,Zh}var o_=i_();const s_=El(o_),a_=Object.assign({"./ArrayWidget.vue":()=>st(()=>ot.import("./ArrayWidget-CR7Wpw3N-f22a9f699568fce7e606.js"),void 0),"./ArrayplotWidget.vue":()=>st(()=>ot.import("./ArrayplotWidget-DDEd-jRJ-9c80900811dcd2101805.js"),void 0),"./BlockWidget.vue":()=>st(()=>ot.import("./BlockWidget-CfFgdNSv-4027618c79332fe1bbed.js"),void 0),"./ButtonWidget.vue":()=>st(()=>ot.import("./ButtonWidget-BaSvtElA-7ca86b33171b73e96531.js"),void 0),"./CanvasWidget.vue":()=>st(()=>ot.import("./CanvasWidget-DcwDi5Zk-20f1bf9e5251c2abc4e8.js"),void 0),"./CanvasdotWidget.vue":()=>st(()=>ot.import("./CanvasdotWidget--awMOWyz-b5a0e760c4a3105d39c9.js"),void 0),"./CanvasimageWidget.vue":()=>st(()=>ot.import("./CanvasimageWidget-YP1pCtvb-20e62d550c2e88801610.js"),void 0),"./CanvasimagevalueWidget.vue":()=>st(()=>ot.import("./CanvasimagevalueWidget-CjVHb2uj-9923a9bf0030decb0138.js"),void 0),"./CanvaslabelWidget.vue":()=>st(()=>ot.import("./CanvaslabelWidget-DoMplTTO-3fcbb043c5bc1d995861.js"),void 0),"./CanvaslabelvalueWidget.vue":()=>st(()=>ot.import("./CanvaslabelvalueWidget-Dyo_ogHn-ab82e85a21b2e45a0f36.js"),void 0),"./CanvaslineWidget.vue":()=>st(()=>ot.import("./CanvaslineWidget-D7W1TIxm-2fb910e9815c208e5506.js"),void 0),"./CanvaslinevalueWidget.vue":()=>st(()=>ot.import("./CanvaslinevalueWidget-BOZyJuLE-5e87f5927d3283ef8d56.js"),void 0),"./CheckbuttonWidget.vue":()=>st(()=>ot.import("./CheckbuttonWidget-B1E4BC6v-e279ac2164105fe56a19.js"),void 0),"./ComboboxWidget.vue":()=>st(()=>ot.import("./ComboboxWidget-BExUBH57-3db8c3cf070a31029ac2.js"),void 0),"./DateWidget.vue":()=>st(()=>ot.import("./DateWidget-_ZmPsi2l-f95e41e793d6e72a0634.js"),void 0),"./DynamicWidget.vue":()=>st(()=>ot.import("./DynamicWidget-DHL7pbgW-beea4df4f035f75f59f2.js"),void 0),"./FormatvalueWidget.vue":()=>st(()=>ot.import("./FormatvalueWidget-4C0vrL2i-4b1a9047c6b4965c1ea3.js"),void 0),"./HorizontalWidget.vue":()=>st(()=>ot.import("./HorizontalWidget-DbEQYjFC-377ee930457206e14cea.js"),void 0),"./HorizontalboxWidget.vue":()=>st(()=>ot.import("./HorizontalboxWidget-CTomf_Iy-df48292d3f0fc49b2abc.js"),void 0),"./HorizontallineWidget.vue":()=>st(()=>ot.import("./HorizontallineWidget-B7xx7ofY-85615def0a97d89753da.js"),void 0),"./IframeWidget.vue":()=>st(()=>ot.import("./IframeWidget-DK7rbULe-2ed1dd67ce5939a0eb95.js"),void 0),"./ImageviewerWidget.vue":()=>st(()=>ot.import("./ImageviewerWidget-6d6Kl3W_-da808b0ac4613595dbce.js"),void 0),"./LabelWidget.vue":()=>st(()=>ot.import("./LabelWidget-D71FfOSw-9303f59bb9a129eedc2c.js"),void 0),"./LabelledWidget.vue":()=>st(()=>ot.import("./LabelledWidget-D2ir5kVU-10ff65a6573019711d83.js"),void 0),"./LabelprogressbarWidget.vue":()=>st(()=>ot.import("./LabelprogressbarWidget-C4_YbROz-52e944a64ee8f9a4927c.js"),void 0),"./LabelsparklineWidget.vue":()=>st(()=>ot.import("./LabelsparklineWidget-CdZ_pM2B-96a51c57eec12159befd.js"),void 0),"./LabelvalueWidget.vue":()=>st(()=>ot.import("./LabelvalueWidget-BS0EPY5h-235d12f90777a69b2c70.js"),void 0),"./LabelvaluedescWidget.vue":()=>st(()=>ot.import("./LabelvaluedescWidget-Cpr8_Voq-def66a29c7a30e7733c7.js"),void 0),"./LabelvaluelimitsbarWidget.vue":()=>st(()=>ot.import("./LabelvaluelimitsbarWidget-DTcYbEQS-e08ae7cbdb4c7360d31c.js"),void 0),"./LabelvaluelimitscolumnWidget.vue":()=>st(()=>ot.import("./LabelvaluelimitscolumnWidget-D0ltQ9Ta-e6ab65ac8cb36f16cffa.js"),void 0),"./LabelvaluerangebarWidget.vue":()=>st(()=>ot.import("./LabelvaluerangebarWidget-O8IHjvHs-3c869b5e2b5a06a06d3f.js"),void 0),"./LedWidget.vue":()=>st(()=>ot.import("./LedWidget-DUvJ2v8k-6de16c6bc1d6e3e4026f.js"),void 0),"./LimitsbarWidget.vue":()=>st(()=>ot.import("./LimitsbarWidget-BehZv0-k-1c2fde94728b8bebb4d9.js"),void 0),"./LimitscolorWidget.vue":()=>st(()=>ot.import("./LimitscolorWidget-FXT0ZPPH-4209de2647be14679026.js"),void 0),"./LimitscolumnWidget.vue":()=>st(()=>ot.import("./LimitscolumnWidget-CjBy-CCI-6d50b07a61d830cfa27f.js"),void 0),"./LinegraphWidget.vue":()=>st(()=>ot.import("./LinegraphWidget-lmu_tFKd-f53f03989c0fba3746b2.js"),void 0),"./MatrixbycolumnsWidget.vue":()=>st(()=>ot.import("./MatrixbycolumnsWidget-CCF7rCkV-b679fcfae0792d2c203e.js"),void 0),"./ProgressbarWidget.vue":()=>st(()=>ot.import("./ProgressbarWidget-B5WN658S-640507015641954aa9e1.js"),void 0),"./RadiobuttonWidget.vue":()=>st(()=>ot.import("./RadiobuttonWidget-B_3nys46-3bb03c5539a9b885603d.js"),void 0),"./RadiogroupWidget.vue":()=>st(()=>ot.import("./RadiogroupWidget-BiMIL9li-254845e6475ca6c9b3ed.js"),void 0),"./RangebarWidget.vue":()=>st(()=>ot.import("./RangebarWidget-Dn0GASdi-bd574c1a1418f8bb9586.js"),void 0),"./RollupWidget.vue":()=>st(()=>ot.import("./RollupWidget-b62qcG5K-3d29dc713583407904af.js"),void 0),"./ScrollwindowWidget.vue":()=>st(()=>ot.import("./ScrollwindowWidget-Dn29gs-U-681e7c543c7b20963688.js"),void 0),"./SignalWidget.vue":()=>st(()=>ot.import("./SignalWidget-CLi6qask-9cdf28f65bdbce6e9aeb.js"),void 0),"./SpacerWidget.vue":()=>st(()=>ot.import("./SpacerWidget-BCA3gdap-d335e55339d18ef8833b.js"),void 0),"./SparklineWidget.vue":()=>st(()=>ot.import("./SparklineWidget-D8mb4zLt-ecdbe9d7db8bed037652.js"),void 0),"./TabbookWidget.vue":()=>st(()=>ot.import("./TabbookWidget-Bkt4g02d-084d4a4f04d02c17a315.js"),void 0),"./TextboxWidget.vue":()=>st(()=>ot.import("./TextboxWidget-CR05wO-t-2868c23d70d9a454747e.js"),void 0),"./TextfieldWidget.vue":()=>st(()=>ot.import("./TextfieldWidget-Be_Pz2bF-65c09a4f60f8583018bf.js"),void 0),"./TimeWidget.vue":()=>st(()=>ot.import("./TimeWidget-Dy8zpkC6-f42ce3743b50f7b530ac.js"),void 0),"./TitleWidget.vue":()=>st(()=>ot.import("./TitleWidget-BcmxUDzM-3fb3450c0c16acecb759.js"),void 0),"./ValueWidget.vue":()=>st(()=>ot.import("./ValueWidget-BxWrHkYY-6ac5e4962179f2b8423b.js"),void 0),"./ValuelimitsbarWidget.vue":()=>st(()=>ot.import("./ValuelimitsbarWidget-BdY02gqc-51bd59a383a8796666e4.js"),void 0),"./ValuelimitscolumnWidget.vue":()=>st(()=>ot.import("./ValuelimitscolumnWidget-CuJ6rqtC-e042bcc801e84a2e2d58.js"),void 0),"./ValuerangebarWidget.vue":()=>st(()=>ot.import("./ValuerangebarWidget-C5rolGDi-6b9ef70160d9daf7f2c0.js"),void 0),"./VerticalWidget.vue":()=>st(()=>ot.import("./VerticalWidget-DsnEzKZ2-1cf387f8d7ea19ea27d5.js"),void 0),"./VerticalboxWidget.vue":()=>st(()=>ot.import("./VerticalboxWidget-CzDgveBl-2c0f2bcec26ea8ee588c.js"),void 0)}),l_=Object.entries(a_).reduce((n,[t,e])=>{t=t.split("/").pop();const r=KS(s_(t.replace(/\.\w+$/,"")));return{...n,[r]:$p(e)}},{}),CD=er("U",{components:l_});function Fv(n,t){return function(){return n.apply(t,arguments)}}const{toString:c_}=Object.prototype,{getPrototypeOf:Qh}=Object,{iterator:hc,toStringTag:Wv}=Symbol,dc=(n=>t=>{const e=c_.call(t);return n[e]||(n[e]=e.slice(8,-1).toLowerCase())})(Object.create(null)),to=n=>(n=n.toLowerCase(),t=>dc(t)===n),pc=n=>t=>typeof t===n,{isArray:ga}=Array,ma=pc("undefined");function Qa(n){return n!==null&&!ma(n)&&n.constructor!==null&&!ma(n.constructor)&&ai(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const Bv=to("ArrayBuffer");function u_(n){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(n):t=n&&n.buffer&&Bv(n.buffer),t}const h_=pc("string"),ai=pc("function"),zv=pc("number"),Ja=n=>n!==null&&typeof n=="object",d_=n=>n===!0||n===!1,fc=n=>{if(dc(n)!=="object")return!1;const t=Qh(n);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Wv in n)&&!(hc in n)},p_=n=>{if(!Ja(n)||Qa(n))return!1;try{return Object.keys(n).length===0&&Object.getPrototypeOf(n)===Object.prototype}catch{return!1}},f_=to("Date"),g_=to("File"),m_=to("Blob"),v_=to("FileList"),y_=n=>Ja(n)&&ai(n.pipe),b_=n=>{let t;return n&&(typeof FormData=="function"&&n instanceof FormData||ai(n.append)&&((t=dc(n))==="formdata"||t==="object"&&ai(n.toString)&&n.toString()==="[object FormData]"))},w_=to("URLSearchParams"),[x_,C_,k_,A_]=["ReadableStream","Request","Response","Headers"].map(to),S_=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function el(n,t,{allOwnKeys:e=!1}={}){if(n===null||typeof n>"u")return;let r,f;if(typeof n!="object"&&(n=[n]),ga(n))for(r=0,f=n.length;r<f;r++)t.call(null,n[r],r,n);else{if(Qa(n))return;const g=e?Object.getOwnPropertyNames(n):Object.keys(n),m=g.length;let w;for(r=0;r<m;r++)w=g[r],t.call(null,n[w],w,n)}}function Hv(n,t){if(Qa(n))return null;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 Es=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,jv=n=>!ma(n)&&n!==Es;function Jh(){const{caseless:n,skipUndefined:t}=jv(this)&&this||{},e={},r=(f,g)=>{const m=n&&Hv(e,g)||g;fc(e[m])&&fc(f)?e[m]=Jh(e[m],f):fc(f)?e[m]=Jh({},f):ga(f)?e[m]=f.slice():(!t||!ma(f))&&(e[m]=f)};for(let f=0,g=arguments.length;f<g;f++)arguments[f]&&el(arguments[f],r);return e}const __=(n,t,e,{allOwnKeys:r}={})=>(el(t,(f,g)=>{e&&ai(f)?n[g]=Fv(f,e):n[g]=f},{allOwnKeys:r}),n),$_=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),T_=(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)},M_=(n,t,e,r)=>{let f,g,m;const w={};if(t=t||{},n==null)return t;do{for(f=Object.getOwnPropertyNames(n),g=f.length;g-- >0;)m=f[g],(!r||r(m,n,t))&&!w[m]&&(t[m]=n[m],w[m]=!0);n=e!==!1&&Qh(n)}while(n&&(!e||e(n,t))&&n!==Object.prototype);return t},I_=(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},E_=n=>{if(!n)return null;if(ga(n))return n;let t=n.length;if(!zv(t))return null;const e=new Array(t);for(;t-- >0;)e[t]=n[t];return e},R_=(n=>t=>n&&t instanceof n)(typeof Uint8Array<"u"&&Qh(Uint8Array)),L_=(n,t)=>{const e=(n&&n[hc]).call(n);let r;for(;(r=e.next())&&!r.done;){const f=r.value;t.call(n,f[0],f[1])}},O_=(n,t)=>{let e;const r=[];for(;(e=n.exec(t))!==null;)r.push(e);return r},N_=to("HTMLFormElement"),D_=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,e,r){return e.toUpperCase()+r}),Uv=(({hasOwnProperty:n})=>(t,e)=>n.call(t,e))(Object.prototype),P_=to("RegExp"),Vv=(n,t)=>{const e=Object.getOwnPropertyDescriptors(n),r={};el(e,(f,g)=>{let m;(m=t(f,g,n))!==!1&&(r[g]=m||f)}),Object.defineProperties(n,r)},F_=n=>{Vv(n,(t,e)=>{if(ai(n)&&["arguments","caller","callee"].indexOf(e)!==-1)return!1;const r=n[e];if(ai(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+"'")})}})},W_=(n,t)=>{const e={},r=f=>{f.forEach(g=>{e[g]=!0})};return ga(n)?r(n):r(String(n).split(t)),e},B_=()=>{},z_=(n,t)=>n!=null&&Number.isFinite(n=+n)?n:t;function H_(n){return!!(n&&ai(n.append)&&n[Wv]==="FormData"&&n[hc])}const j_=n=>{const t=new Array(10),e=(r,f)=>{if(Ja(r)){if(t.indexOf(r)>=0)return;if(Qa(r))return r;if(!("toJSON"in r)){t[f]=r;const g=ga(r)?[]:{};return el(r,(m,w)=>{const h=e(m,f+1);!ma(h)&&(g[w]=h)}),t[f]=void 0,g}}return r};return e(n,0)},U_=to("AsyncFunction"),V_=n=>n&&(Ja(n)||ai(n))&&ai(n.then)&&ai(n.catch),qv=((n,t)=>n?setImmediate:t?((e,r)=>(Es.addEventListener("message",({source:f,data:g})=>{f===Es&&g===e&&r.length&&r.shift()()},!1),f=>{r.push(f),Es.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate=="function",ai(Es.postMessage)),q_=typeof queueMicrotask<"u"?queueMicrotask.bind(Es):typeof process<"u"&&process.nextTick||qv,K_=n=>n!=null&&ai(n[hc]),Se={isArray:ga,isArrayBuffer:Bv,isBuffer:Qa,isFormData:b_,isArrayBufferView:u_,isString:h_,isNumber:zv,isBoolean:d_,isObject:Ja,isPlainObject:fc,isEmptyObject:p_,isReadableStream:x_,isRequest:C_,isResponse:k_,isHeaders:A_,isUndefined:ma,isDate:f_,isFile:g_,isBlob:m_,isRegExp:P_,isFunction:ai,isStream:y_,isURLSearchParams:w_,isTypedArray:R_,isFileList:v_,forEach:el,merge:Jh,extend:__,trim:S_,stripBOM:$_,inherits:T_,toFlatObject:M_,kindOf:dc,kindOfTest:to,endsWith:I_,toArray:E_,forEachEntry:L_,matchAll:O_,isHTMLForm:N_,hasOwnProperty:Uv,hasOwnProp:Uv,reduceDescriptors:Vv,freezeMethods:F_,toObjectSet:W_,toCamelCase:D_,noop:B_,toFiniteNumber:z_,findKey:Hv,global:Es,isContextDefined:jv,isSpecCompliantForm:H_,toJSONObject:j_,isAsyncFn:U_,isThenable:V_,setImmediate:qv,asap:q_,isIterable:K_};function St(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)}Se.inherits(St,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:Se.toJSONObject(this.config),code:this.code,status:this.status}}});const Kv=St.prototype,Gv={};["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=>{Gv[n]={value:n}}),Object.defineProperties(St,Gv),Object.defineProperty(Kv,"isAxiosError",{value:!0}),St.from=(n,t,e,r,f,g)=>{const m=Object.create(Kv);Se.toFlatObject(n,m,function(d){return d!==Error.prototype},d=>d!=="isAxiosError");const w=n&&n.message?n.message:"Error",h=t==null&&n?n.code:t;return St.call(m,w,h,e,r,f),n&&m.cause==null&&Object.defineProperty(m,"cause",{value:n,configurable:!0}),m.name=n&&n.name||"Error",g&&Object.assign(m,g),m};const G_=null;function ed(n){return Se.isPlainObject(n)||Se.isArray(n)}function Yv(n){return Se.endsWith(n,"[]")?n.slice(0,-2):n}function Xv(n,t,e){return n?n.concat(t).map(function(r,f){return r=Yv(r),!e&&f?"["+r+"]":r}).join(e?".":""):t}function Y_(n){return Se.isArray(n)&&!n.some(ed)}const X_=Se.toFlatObject(Se,{},null,function(n){return/^is[A-Z]/.test(n)});function gc(n,t,e){if(!Se.isObject(n))throw new TypeError("target must be an object");t=t||new FormData,e=Se.toFlatObject(e,{metaTokens:!0,dots:!1,indexes:!1},!1,function(c,i){return!Se.isUndefined(i[c])});const r=e.metaTokens,f=e.visitor||d,g=e.dots,m=e.indexes,w=(e.Blob||typeof Blob<"u"&&Blob)&&Se.isSpecCompliantForm(t);if(!Se.isFunction(f))throw new TypeError("visitor must be a function");function h(c){if(c===null)return"";if(Se.isDate(c))return c.toISOString();if(Se.isBoolean(c))return c.toString();if(!w&&Se.isBlob(c))throw new St("Blob is not supported. Use a Buffer instead.");return Se.isArrayBuffer(c)||Se.isTypedArray(c)?w&&typeof Blob=="function"?new Blob([c]):Buffer.from(c):c}function d(c,i,s){let p=c;if(c&&!s&&typeof c=="object"){if(Se.endsWith(i,"{}"))i=r?i:i.slice(0,-2),c=JSON.stringify(c);else if(Se.isArray(c)&&Y_(c)||(Se.isFileList(c)||Se.endsWith(i,"[]"))&&(p=Se.toArray(c)))return i=Yv(i),p.forEach(function(b,x){!(Se.isUndefined(b)||b===null)&&t.append(m===!0?Xv([i],x,g):m===null?i:i+"[]",h(b))}),!1}return ed(c)?!0:(t.append(Xv(s,i,g),h(c)),!1)}const a=[],l=Object.assign(X_,{defaultVisitor:d,convertValue:h,isVisitable:ed});function u(c,i){if(!Se.isUndefined(c)){if(a.indexOf(c)!==-1)throw Error("Circular reference detected in "+i.join("."));a.push(c),Se.forEach(c,function(s,p){(!(Se.isUndefined(s)||s===null)&&f.call(t,s,Se.isString(p)?p.trim():p,i,l))===!0&&u(s,i?i.concat(p):[p])}),a.pop()}}if(!Se.isObject(n))throw new TypeError("data must be an object");return u(n),t}function Zv(n){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function td(n,t){this._pairs=[],n&&gc(n,this,t)}const Qv=td.prototype;Qv.append=function(n,t){this._pairs.push([n,t])},Qv.toString=function(n){const t=n?function(e){return n.call(this,e,Zv)}:Zv;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};function Z_(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Jv(n,t,e){if(!t)return n;const r=e&&e.encode||Z_;Se.isFunction(e)&&(e={serialize:e});const f=e&&e.serialize;let g;if(f?g=f(t,e):g=Se.isURLSearchParams(t)?t.toString():new td(t,e).toString(r),g){const m=n.indexOf("#");m!==-1&&(n=n.slice(0,m)),n+=(n.indexOf("?")===-1?"?":"&")+g}return n}let ey=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){Se.forEach(this.handlers,function(e){e!==null&&t(e)})}};const ty={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Q_=typeof URLSearchParams<"u"?URLSearchParams:td,J_=typeof FormData<"u"?FormData:null,e$=typeof Blob<"u"?Blob:null,t$={isBrowser:!0,classes:{URLSearchParams:Q_,FormData:J_,Blob:e$},protocols:["http","https","file","blob","url","data"]},nd=typeof window<"u"&&typeof document<"u",rd=typeof navigator=="object"&&navigator||void 0,n$=nd&&(!rd||["ReactNative","NativeScript","NS"].indexOf(rd.product)<0),r$=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",i$=nd&&window.location.href||"http://localhost",o$=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:nd,hasStandardBrowserEnv:n$,hasStandardBrowserWebWorkerEnv:r$,navigator:rd,origin:i$},Symbol.toStringTag,{value:"Module"})),Nr={...o$,...t$};function s$(n,t){return gc(n,new Nr.classes.URLSearchParams,{visitor:function(e,r,f,g){return Nr.isNode&&Se.isBuffer(e)?(this.append(r,e.toString("base64")),!1):g.defaultVisitor.apply(this,arguments)},...t})}function a$(n){return Se.matchAll(/\w+|\[(\w*)]/g,n).map(t=>t[0]==="[]"?"":t[1]||t[0])}function l$(n){const t={},e=Object.keys(n);let r;const f=e.length;let g;for(r=0;r<f;r++)g=e[r],t[g]=n[g];return t}function ny(n){function t(e,r,f,g){let m=e[g++];if(m==="__proto__")return!0;const w=Number.isFinite(+m),h=g>=e.length;return m=!m&&Se.isArray(f)?f.length:m,h?(Se.hasOwnProp(f,m)?f[m]=[f[m],r]:f[m]=r,!w):((!f[m]||!Se.isObject(f[m]))&&(f[m]=[]),t(e,r,f[m],g)&&Se.isArray(f[m])&&(f[m]=l$(f[m])),!w)}if(Se.isFormData(n)&&Se.isFunction(n.entries)){const e={};return Se.forEachEntry(n,(r,f)=>{t(a$(r),f,e,0)}),e}return null}function c$(n,t,e){if(Se.isString(n))try{return(t||JSON.parse)(n),Se.trim(n)}catch(r){if(r.name!=="SyntaxError")throw r}return(e||JSON.stringify)(n)}const tl={transitional:ty,adapter:["xhr","http","fetch"],transformRequest:[function(n,t){const e=t.getContentType()||"",r=e.indexOf("application/json")>-1,f=Se.isObject(n);if(f&&Se.isHTMLForm(n)&&(n=new FormData(n)),Se.isFormData(n))return r?JSON.stringify(ny(n)):n;if(Se.isArrayBuffer(n)||Se.isBuffer(n)||Se.isStream(n)||Se.isFile(n)||Se.isBlob(n)||Se.isReadableStream(n))return n;if(Se.isArrayBufferView(n))return n.buffer;if(Se.isURLSearchParams(n))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),n.toString();let g;if(f){if(e.indexOf("application/x-www-form-urlencoded")>-1)return s$(n,this.formSerializer).toString();if((g=Se.isFileList(n))||e.indexOf("multipart/form-data")>-1){const m=this.env&&this.env.FormData;return gc(g?{"files[]":n}:n,m&&new m,this.formSerializer)}}return f||r?(t.setContentType("application/json",!1),c$(n)):n}],transformResponse:[function(n){const t=this.transitional||tl.transitional,e=t&&t.forcedJSONParsing,r=this.responseType==="json";if(Se.isResponse(n)||Se.isReadableStream(n))return n;if(n&&Se.isString(n)&&(e&&!this.responseType||r)){const f=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(n,this.parseReviver)}catch(g){if(f)throw g.name==="SyntaxError"?St.from(g,St.ERR_BAD_RESPONSE,this,null,this.response):g}}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Nr.classes.FormData,Blob:Nr.classes.Blob},validateStatus:function(n){return n>=200&&n<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Se.forEach(["delete","get","head","post","put","patch"],n=>{tl.headers[n]={}});const u$=Se.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"]),h$=n=>{const t={};let e,r,f;return n&&n.split(`
1496
1496
  `).forEach(function(g){f=g.indexOf(":"),e=g.substring(0,f).trim().toLowerCase(),r=g.substring(f+1).trim(),!(!e||t[e]&&u$[e])&&(e==="set-cookie"?t[e]?t[e].push(r):t[e]=[r]:t[e]=t[e]?t[e]+", "+r:r)}),t},ry=Symbol("internals");function nl(n){return n&&String(n).trim().toLowerCase()}function mc(n){return n===!1||n==null?n:Se.isArray(n)?n.map(mc):String(n)}function d$(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 p$=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function id(n,t,e,r,f){if(Se.isFunction(r))return r.call(this,t,e);if(f&&(t=e),!!Se.isString(t)){if(Se.isString(r))return t.indexOf(r)!==-1;if(Se.isRegExp(r))return r.test(t)}}function f$(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,e,r)=>e.toUpperCase()+r)}function g$(n,t){const e=Se.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(n,r+e,{value:function(f,g,m){return this[r].call(this,t,f,g,m)},configurable:!0})})}let li=class{constructor(t){t&&this.set(t)}set(t,e,r){const f=this;function g(w,h,d){const a=nl(h);if(!a)throw new Error("header name must be a non-empty string");const l=Se.findKey(f,a);(!l||f[l]===void 0||d===!0||d===void 0&&f[l]!==!1)&&(f[l||h]=mc(w))}const m=(w,h)=>Se.forEach(w,(d,a)=>g(d,a,h));if(Se.isPlainObject(t)||t instanceof this.constructor)m(t,e);else if(Se.isString(t)&&(t=t.trim())&&!p$(t))m(h$(t),e);else if(Se.isObject(t)&&Se.isIterable(t)){let w={},h,d;for(const a of t){if(!Se.isArray(a))throw TypeError("Object iterator must return a key-value pair");w[d=a[0]]=(h=w[d])?Se.isArray(h)?[...h,a[1]]:[h,a[1]]:a[1]}m(w,e)}else t!=null&&g(e,t,r);return this}get(t,e){if(t=nl(t),t){const r=Se.findKey(this,t);if(r){const f=this[r];if(!e)return f;if(e===!0)return d$(f);if(Se.isFunction(e))return e.call(this,f,r);if(Se.isRegExp(e))return e.exec(f);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=nl(t),t){const r=Se.findKey(this,t);return!!(r&&this[r]!==void 0&&(!e||id(this,this[r],r,e)))}return!1}delete(t,e){const r=this;let f=!1;function g(m){if(m=nl(m),m){const w=Se.findKey(r,m);w&&(!e||id(r,r[w],w,e))&&(delete r[w],f=!0)}}return Se.isArray(t)?t.forEach(g):g(t),f}clear(t){const e=Object.keys(this);let r=e.length,f=!1;for(;r--;){const g=e[r];(!t||id(this,this[g],g,t,!0))&&(delete this[g],f=!0)}return f}normalize(t){const e=this,r={};return Se.forEach(this,(f,g)=>{const m=Se.findKey(r,g);if(m){e[m]=mc(f),delete e[g];return}const w=t?f$(g):String(g).trim();w!==g&&delete e[g],e[w]=mc(f),r[w]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return Se.forEach(this,(r,f)=>{r!=null&&r!==!1&&(e[f]=t&&Se.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(`
1497
1497
  `)}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[ry]=this[ry]={accessors:{}}).accessors,r=this.prototype;function f(g){const m=nl(g);e[m]||(g$(r,g),e[m]=!0)}return Se.isArray(t)?t.forEach(f):f(t),this}};li.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Se.reduceDescriptors(li.prototype,({value:n},t)=>{let e=t[0].toUpperCase()+t.slice(1);return{get:()=>n,set(r){this[e]=r}}}),Se.freezeMethods(li);function od(n,t){const e=this||tl,r=t||e,f=li.from(r.headers);let g=r.data;return Se.forEach(n,function(m){g=m.call(e,g,f.normalize(),t?t.status:void 0)}),f.normalize(),g}function iy(n){return!!(n&&n.__CANCEL__)}function va(n,t,e){St.call(this,n??"canceled",St.ERR_CANCELED,t,e),this.name="CanceledError"}Se.inherits(va,St,{__CANCEL__:!0});function oy(n,t,e){const r=e.config.validateStatus;!e.status||!r||r(e.status)?n(e):t(new St("Request failed with status code "+e.status,[St.ERR_BAD_REQUEST,St.ERR_BAD_RESPONSE][Math.floor(e.status/100)-4],e.config,e.request,e))}function m$(n){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return t&&t[1]||""}function v$(n,t){n=n||10;const e=new Array(n),r=new Array(n);let f=0,g=0,m;return t=t!==void 0?t:1e3,function(w){const h=Date.now(),d=r[g];m||(m=h),e[f]=w,r[f]=h;let a=g,l=0;for(;a!==f;)l+=e[a++],a=a%n;if(f=(f+1)%n,f===g&&(g=(g+1)%n),h-m<t)return;const u=d&&h-d;return u?Math.round(l*1e3/u):void 0}}function y$(n,t){let e=0,r=1e3/t,f,g;const m=(w,h=Date.now())=>{e=h,f=null,g&&(clearTimeout(g),g=null),n(...w)};return[(...w)=>{const h=Date.now(),d=h-e;d>=r?m(w,h):(f=w,g||(g=setTimeout(()=>{g=null,m(f)},r-d)))},()=>f&&m(f)]}const vc=(n,t,e=3)=>{let r=0;const f=v$(50,250);return y$(g=>{const m=g.loaded,w=g.lengthComputable?g.total:void 0,h=m-r,d=f(h),a=m<=w;r=m;const l={loaded:m,total:w,progress:w?m/w:void 0,bytes:h,rate:d||void 0,estimated:d&&w&&a?(w-m)/d:void 0,event:g,lengthComputable:w!=null,[t?"download":"upload"]:!0};n(l)},e)},sy=(n,t)=>{const e=n!=null;return[r=>t[0]({lengthComputable:e,total:n,loaded:r}),t[1]]},ay=n=>(...t)=>Se.asap(()=>n(...t)),b$=Nr.hasStandardBrowserEnv?((n,t)=>e=>(e=new URL(e,Nr.origin),n.protocol===e.protocol&&n.host===e.host&&(t||n.port===e.port)))(new URL(Nr.origin),Nr.navigator&&/(msie|trident)/i.test(Nr.navigator.userAgent)):()=>!0,w$=Nr.hasStandardBrowserEnv?{write(n,t,e,r,f,g,m){if(typeof document>"u")return;const w=[`${n}=${encodeURIComponent(t)}`];Se.isNumber(e)&&w.push(`expires=${new Date(e).toUTCString()}`),Se.isString(r)&&w.push(`path=${r}`),Se.isString(f)&&w.push(`domain=${f}`),g===!0&&w.push("secure"),Se.isString(m)&&w.push(`SameSite=${m}`),document.cookie=w.join("; ")},read(n){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+n+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(n){this.write(n,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function x$(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function C$(n,t){return t?n.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):n}function ly(n,t,e){let r=!x$(t);return n&&(r||e==!1)?C$(n,t):t}const cy=n=>n instanceof li?{...n}:n;function Rs(n,t){t=t||{};const e={};function r(d,a,l,u){return Se.isPlainObject(d)&&Se.isPlainObject(a)?Se.merge.call({caseless:u},d,a):Se.isPlainObject(a)?Se.merge({},a):Se.isArray(a)?a.slice():a}function f(d,a,l,u){if(Se.isUndefined(a)){if(!Se.isUndefined(d))return r(void 0,d,l,u)}else return r(d,a,l,u)}function g(d,a){if(!Se.isUndefined(a))return r(void 0,a)}function m(d,a){if(Se.isUndefined(a)){if(!Se.isUndefined(d))return r(void 0,d)}else return r(void 0,a)}function w(d,a,l){if(l in t)return r(d,a);if(l in n)return r(void 0,d)}const h={url:g,method:g,data:g,baseURL:m,transformRequest:m,transformResponse:m,paramsSerializer:m,timeout:m,timeoutMessage:m,withCredentials:m,withXSRFToken:m,adapter:m,responseType:m,xsrfCookieName:m,xsrfHeaderName:m,onUploadProgress:m,onDownloadProgress:m,decompress:m,maxContentLength:m,maxBodyLength:m,beforeRedirect:m,transport:m,httpAgent:m,httpsAgent:m,cancelToken:m,socketPath:m,responseEncoding:m,validateStatus:w,headers:(d,a,l)=>f(cy(d),cy(a),l,!0)};return Se.forEach(Object.keys({...n,...t}),function(d){const a=h[d]||f,l=a(n[d],t[d],d);Se.isUndefined(l)&&a!==w||(e[d]=l)}),e}const uy=n=>{const t=Rs({},n);let{data:e,withXSRFToken:r,xsrfHeaderName:f,xsrfCookieName:g,headers:m,auth:w}=t;if(t.headers=m=li.from(m),t.url=Jv(ly(t.baseURL,t.url,t.allowAbsoluteUrls),n.params,n.paramsSerializer),w&&m.set("Authorization","Basic "+btoa((w.username||"")+":"+(w.password?unescape(encodeURIComponent(w.password)):""))),Se.isFormData(e)){if(Nr.hasStandardBrowserEnv||Nr.hasStandardBrowserWebWorkerEnv)m.setContentType(void 0);else if(Se.isFunction(e.getHeaders)){const h=e.getHeaders(),d=["content-type","content-length"];Object.entries(h).forEach(([a,l])=>{d.includes(a.toLowerCase())&&m.set(a,l)})}}if(Nr.hasStandardBrowserEnv&&(r&&Se.isFunction(r)&&(r=r(t)),r||r!==!1&&b$(t.url))){const h=f&&g&&w$.read(g);h&&m.set(f,h)}return t},k$=typeof XMLHttpRequest<"u",A$=k$&&function(n){return new Promise(function(t,e){const r=uy(n);let f=r.data;const g=li.from(r.headers).normalize();let{responseType:m,onUploadProgress:w,onDownloadProgress:h}=r,d,a,l,u,c;function i(){u&&u(),c&&c(),r.cancelToken&&r.cancelToken.unsubscribe(d),r.signal&&r.signal.removeEventListener("abort",d)}let s=new XMLHttpRequest;s.open(r.method.toUpperCase(),r.url,!0),s.timeout=r.timeout;function p(){if(!s)return;const x=li.from("getAllResponseHeaders"in s&&s.getAllResponseHeaders()),I={data:!m||m==="text"||m==="json"?s.responseText:s.response,status:s.status,statusText:s.statusText,headers:x,config:n,request:s};oy(function(_){t(_),i()},function(_){e(_),i()},I),s=null}"onloadend"in s?s.onloadend=p:s.onreadystatechange=function(){!s||s.readyState!==4||s.status===0&&!(s.responseURL&&s.responseURL.indexOf("file:")===0)||setTimeout(p)},s.onabort=function(){s&&(e(new St("Request aborted",St.ECONNABORTED,n,s)),s=null)},s.onerror=function(x){const I=x&&x.message?x.message:"Network Error",_=new St(I,St.ERR_NETWORK,n,s);_.event=x||null,e(_),s=null},s.ontimeout=function(){let x=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const I=r.transitional||ty;r.timeoutErrorMessage&&(x=r.timeoutErrorMessage),e(new St(x,I.clarifyTimeoutError?St.ETIMEDOUT:St.ECONNABORTED,n,s)),s=null},f===void 0&&g.setContentType(null),"setRequestHeader"in s&&Se.forEach(g.toJSON(),function(x,I){s.setRequestHeader(I,x)}),Se.isUndefined(r.withCredentials)||(s.withCredentials=!!r.withCredentials),m&&m!=="json"&&(s.responseType=r.responseType),h&&([l,c]=vc(h,!0),s.addEventListener("progress",l)),w&&s.upload&&([a,u]=vc(w),s.upload.addEventListener("progress",a),s.upload.addEventListener("loadend",u)),(r.cancelToken||r.signal)&&(d=x=>{s&&(e(!x||x.type?new va(null,n,s):x),s.abort(),s=null)},r.cancelToken&&r.cancelToken.subscribe(d),r.signal&&(r.signal.aborted?d():r.signal.addEventListener("abort",d)));const b=m$(r.url);if(b&&Nr.protocols.indexOf(b)===-1){e(new St("Unsupported protocol "+b+":",St.ERR_BAD_REQUEST,n));return}s.send(f||null)})},S$=(n,t)=>{const{length:e}=n=n?n.filter(Boolean):[];if(t||e){let r=new AbortController,f;const g=function(d){if(!f){f=!0,w();const a=d instanceof Error?d:this.reason;r.abort(a instanceof St?a:new va(a instanceof Error?a.message:a))}};let m=t&&setTimeout(()=>{m=null,g(new St(`timeout ${t} of ms exceeded`,St.ETIMEDOUT))},t);const w=()=>{n&&(m&&clearTimeout(m),m=null,n.forEach(d=>{d.unsubscribe?d.unsubscribe(g):d.removeEventListener("abort",g)}),n=null)};n.forEach(d=>d.addEventListener("abort",g));const{signal:h}=r;return h.unsubscribe=()=>Se.asap(w),h}},_$=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},$$=async function*(n,t){for await(const e of T$(n))yield*_$(e,t)},T$=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()}},hy=(n,t,e,r)=>{const f=$$(n,t);let g=0,m,w=h=>{m||(m=!0,r&&r(h))};return new ReadableStream({async pull(h){try{const{done:d,value:a}=await f.next();if(d){w(),h.close();return}let l=a.byteLength;if(e){let u=g+=l;e(u)}h.enqueue(new Uint8Array(a))}catch(d){throw w(d),d}},cancel(h){return w(h),f.return()}},{highWaterMark:2})},dy=64*1024,{isFunction:yc}=Se,M$=(({Request:n,Response:t})=>({Request:n,Response:t}))(Se.global),{ReadableStream:py,TextEncoder:fy}=Se.global,gy=(n,...t)=>{try{return!!n(...t)}catch{return!1}},I$=n=>{n=Se.merge.call({skipUndefined:!0},M$,n);const{fetch:t,Request:e,Response:r}=n,f=t?yc(t):typeof fetch=="function",g=yc(e),m=yc(r);if(!f)return!1;const w=f&&yc(py),h=f&&(typeof fy=="function"?(i=>s=>i.encode(s))(new fy):async i=>new Uint8Array(await new e(i).arrayBuffer())),d=g&&w&&gy(()=>{let i=!1;const s=new e(Nr.origin,{body:new py,method:"POST",get duplex(){return i=!0,"half"}}).headers.has("Content-Type");return i&&!s}),a=m&&w&&gy(()=>Se.isReadableStream(new r("").body)),l={stream:a&&(i=>i.body)};f&&["text","arrayBuffer","blob","formData","stream"].forEach(i=>{!l[i]&&(l[i]=(s,p)=>{let b=s&&s[i];if(b)return b.call(s);throw new St(`Response type '${i}' is not supported`,St.ERR_NOT_SUPPORT,p)})});const u=async i=>{if(i==null)return 0;if(Se.isBlob(i))return i.size;if(Se.isSpecCompliantForm(i))return(await new e(Nr.origin,{method:"POST",body:i}).arrayBuffer()).byteLength;if(Se.isArrayBufferView(i)||Se.isArrayBuffer(i))return i.byteLength;if(Se.isURLSearchParams(i)&&(i=i+""),Se.isString(i))return(await h(i)).byteLength},c=async(i,s)=>Se.toFiniteNumber(i.getContentLength())??u(s);return async i=>{let{url:s,method:p,data:b,signal:x,cancelToken:I,timeout:_,onDownloadProgress:k,onUploadProgress:C,responseType:L,headers:D,withCredentials:R="same-origin",fetchOptions:E}=uy(i),z=t||fetch;L=L?(L+"").toLowerCase():"text";let F=S$([x,I&&I.toAbortSignal()],_),O=null;const $=F&&F.unsubscribe&&(()=>{F.unsubscribe()});let A;try{if(C&&d&&p!=="get"&&p!=="head"&&(A=await c(D,b))!==0){let J=new e(s,{method:"POST",body:b,duplex:"half"}),he;if(Se.isFormData(b)&&(he=J.headers.get("content-type"))&&D.setContentType(he),J.body){const[ne,le]=sy(A,vc(ay(C)));b=hy(J.body,dy,ne,le)}}Se.isString(R)||(R=R?"include":"omit");const N=g&&"credentials"in e.prototype,B={...E,signal:F,method:p.toUpperCase(),headers:D.normalize().toJSON(),body:b,duplex:"half",credentials:N?R:void 0};O=g&&new e(s,B);let U=await(g?z(O,E):z(s,B));const K=a&&(L==="stream"||L==="response");if(a&&(k||K&&$)){const J={};["status","statusText","headers"].forEach(se=>{J[se]=U[se]});const he=Se.toFiniteNumber(U.headers.get("content-length")),[ne,le]=k&&sy(he,vc(ay(k),!0))||[];U=new r(hy(U.body,dy,ne,()=>{le&&le(),$&&$()}),J)}L=L||"text";let Q=await l[Se.findKey(l,L)||"text"](U,i);return!K&&$&&$(),await new Promise((J,he)=>{oy(J,he,{data:Q,headers:li.from(U.headers),status:U.status,statusText:U.statusText,config:i,request:O})})}catch(N){throw $&&$(),N&&N.name==="TypeError"&&/Load failed|fetch/i.test(N.message)?Object.assign(new St("Network Error",St.ERR_NETWORK,i,O),{cause:N.cause||N}):St.from(N,N&&N.code,i,O)}}},E$=new Map,my=n=>{let t=n&&n.env||{};const{fetch:e,Request:r,Response:f}=t,g=[r,f,e];let m=g.length,w=m,h,d,a=E$;for(;w--;)h=g[w],d=a.get(h),d===void 0&&a.set(h,d=w?new Map:I$(t)),a=d;return d};my();const sd={http:G_,xhr:A$,fetch:{get:my}};Se.forEach(sd,(n,t)=>{if(n){try{Object.defineProperty(n,"name",{value:t})}catch{}Object.defineProperty(n,"adapterName",{value:t})}});const vy=n=>`- ${n}`,R$=n=>Se.isFunction(n)||n===null||n===!1;function L$(n,t){n=Se.isArray(n)?n:[n];const{length:e}=n;let r,f;const g={};for(let m=0;m<e;m++){r=n[m];let w;if(f=r,!R$(r)&&(f=sd[(w=String(r)).toLowerCase()],f===void 0))throw new St(`Unknown adapter '${w}'`);if(f&&(Se.isFunction(f)||(f=f.get(t))))break;g[w||"#"+m]=f}if(!f){const m=Object.entries(g).map(([h,d])=>`adapter ${h} `+(d===!1?"is not supported by the environment":"is not available in the build"));let w=e?m.length>1?`since :
1498
1498
  `+m.map(vy).join(`
1499
1499
  `):" "+vy(m[0]):"as no adapter specified";throw new St("There is no suitable adapter to dispatch the request "+w,"ERR_NOT_SUPPORT")}return f}const yy={getAdapter:L$,adapters:sd};function ad(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new va(null,n)}function by(n){return ad(n),n.headers=li.from(n.headers),n.data=od.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),yy.getAdapter(n.adapter||tl.adapter,n)(n).then(function(t){return ad(n),t.data=od.call(n,n.transformResponse,t),t.headers=li.from(t.headers),t},function(t){return iy(t)||(ad(n),t&&t.response&&(t.response.data=od.call(n,n.transformResponse,t.response),t.response.headers=li.from(t.response.headers))),Promise.reject(t)})}const wy="1.13.2",bc={};["object","boolean","number","function","string","symbol"].forEach((n,t)=>{bc[n]=function(e){return typeof e===n||"a"+(t<1?"n ":" ")+n}});const xy={};bc.transitional=function(n,t,e){function r(f,g){return"[Axios v"+wy+"] Transitional option '"+f+"'"+g+(e?". "+e:"")}return(f,g,m)=>{if(n===!1)throw new St(r(g," has been removed"+(t?" in "+t:"")),St.ERR_DEPRECATED);return t&&!xy[g]&&(xy[g]=!0,console.warn(r(g," has been deprecated since v"+t+" and will be removed in the near future"))),n?n(f,g,m):!0}},bc.spelling=function(n){return(t,e)=>(console.warn(`${e} is likely a misspelling of ${n}`),!0)};function O$(n,t,e){if(typeof n!="object")throw new St("options must be an object",St.ERR_BAD_OPTION_VALUE);const r=Object.keys(n);let f=r.length;for(;f-- >0;){const g=r[f],m=t[g];if(m){const w=n[g],h=w===void 0||m(w,g,n);if(h!==!0)throw new St("option "+g+" must be "+h,St.ERR_BAD_OPTION_VALUE);continue}if(e!==!0)throw new St("Unknown option "+g,St.ERR_BAD_OPTION)}}const wc={assertOptions:O$,validators:bc},po=wc.validators;let Ls=class{constructor(t){this.defaults=t||{},this.interceptors={request:new ey,response:new ey}}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 g=f.stack?f.stack.replace(/^.+\n/,""):"";try{r.stack?g&&!String(r.stack).endsWith(g.replace(/^.+\n.+\n/,""))&&(r.stack+=`
1500
- `+g):r.stack=g}catch{}}throw r}}_request(t,e){typeof t=="string"?(e=e||{},e.url=t):e=t||{},e=Rs(this.defaults,e);const{transitional:r,paramsSerializer:f,headers:g}=e;r!==void 0&&wc.assertOptions(r,{silentJSONParsing:po.transitional(po.boolean),forcedJSONParsing:po.transitional(po.boolean),clarifyTimeoutError:po.transitional(po.boolean)},!1),f!=null&&(Se.isFunction(f)?e.paramsSerializer={serialize:f}:wc.assertOptions(f,{encode:po.function,serialize:po.function},!0)),e.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?e.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:e.allowAbsoluteUrls=!0),wc.assertOptions(e,{baseUrl:po.spelling("baseURL"),withXsrfToken:po.spelling("withXSRFToken")},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase();let m=g&&Se.merge(g.common,g[e.method]);g&&Se.forEach(["delete","get","head","post","put","patch","common"],i=>{delete g[i]}),e.headers=li.concat(m,g);const w=[];let h=!0;this.interceptors.request.forEach(function(i){typeof i.runWhen=="function"&&i.runWhen(e)===!1||(h=h&&i.synchronous,w.unshift(i.fulfilled,i.rejected))});const d=[];this.interceptors.response.forEach(function(i){d.push(i.fulfilled,i.rejected)});let a,l=0,u;if(!h){const i=[by.bind(this),void 0];for(i.unshift(...w),i.push(...d),u=i.length,a=Promise.resolve(e);l<u;)a=a.then(i[l++],i[l++]);return a}u=w.length;let c=e;for(;l<u;){const i=w[l++],s=w[l++];try{c=i(c)}catch(p){s.call(this,p);break}}try{a=by.call(this,c)}catch(i){return Promise.reject(i)}for(l=0,u=d.length;l<u;)a=a.then(d[l++],d[l++]);return a}getUri(t){t=Rs(this.defaults,t);const e=ly(t.baseURL,t.url,t.allowAbsoluteUrls);return Jv(e,t.params,t.paramsSerializer)}};Se.forEach(["delete","get","head","options"],function(n){Ls.prototype[n]=function(t,e){return this.request(Rs(e||{},{method:n,url:t,data:(e||{}).data}))}}),Se.forEach(["post","put","patch"],function(n){function t(e){return function(r,f,g){return this.request(Rs(g||{},{method:n,headers:e?{"Content-Type":"multipart/form-data"}:{},url:r,data:f}))}}Ls.prototype[n]=t(),Ls.prototype[n+"Form"]=t(!0)});let N$=class ow{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 g=r._listeners.length;for(;g-- >0;)r._listeners[g](f);r._listeners=null}),this.promise.then=f=>{let g;const m=new Promise(w=>{r.subscribe(w),g=w}).then(f);return m.cancel=function(){r.unsubscribe(g)},m},t(function(f,g,m){r.reason||(r.reason=new va(f,g,m),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 ow(function(e){t=e}),cancel:t}}};function D$(n){return function(t){return n.apply(null,t)}}function P$(n){return Se.isObject(n)&&n.isAxiosError===!0}const ld={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(ld).forEach(([n,t])=>{ld[t]=n});function Cy(n){const t=new Ls(n),e=Fv(Ls.prototype.request,t);return Se.extend(e,Ls.prototype,t,{allOwnKeys:!0}),Se.extend(e,t,null,{allOwnKeys:!0}),e.create=function(r){return Cy(Rs(n,r))},e}const ir=er("w",Cy(tl));ir.Axios=Ls,ir.CanceledError=va,ir.CancelToken=N$,ir.isCancel=iy,ir.VERSION=wy,ir.toFormData=gc,ir.AxiosError=St,ir.Cancel=ir.CanceledError,ir.all=function(n){return Promise.all(n)},ir.spread=D$,ir.isAxiosError=P$,ir.mergeConfig=Rs,ir.AxiosHeaders=li,ir.formToJSON=n=>ny(Se.isHTMLForm(n)?new FormData(n):n),ir.getAdapter=yy.getAdapter,ir.HttpStatusCode=ld,ir.default=ir;const{Axios:kD,AxiosError:AD,CanceledError:SD,isCancel:_D,CancelToken:$D,VERSION:TD,all:MD,Cancel:ID,isAxiosError:ED,spread:RD,toFormData:LD,AxiosHeaders:OD,HttpStatusCode:ND,formToJSON:DD,getAdapter:PD,mergeConfig:FD}=ir;function ky(){return Object.assign({},Qs())}function F$(n,t,e){const r=_n(n,void 0);return r.setTime(r.getTime()+t*Ml),r}function W$(n,t){const e=()=>nr(void 0,NaN),r=j$(n);let f;if(r.date){const h=U$(r.date,2);f=V$(h.restDateString,h.year)}if(!f||isNaN(+f))return e();const g=+f;let m=0,w;if(r.time&&(m=q$(r.time),isNaN(m)))return e();if(r.timezone){if(w=K$(r.timezone),isNaN(w))return e()}else{const h=new Date(g+m),d=_n(0,void 0);return d.setFullYear(h.getUTCFullYear(),h.getUTCMonth(),h.getUTCDate()),d.setHours(h.getUTCHours(),h.getUTCMinutes(),h.getUTCSeconds(),h.getUTCMilliseconds()),d}return _n(g+m+w,void 0)}const xc={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},B$=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,z$=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,H$=/^([+-])(\d{2})(?::?(\d{2}))?$/;function j$(n){const t={},e=n.split(xc.dateTimeDelimiter);let r;if(e.length>2)return t;if(/:/.test(e[0])?r=e[0]:(t.date=e[0],r=e[1],xc.timeZoneDelimiter.test(t.date)&&(t.date=n.split(xc.timeZoneDelimiter)[0],r=n.substr(t.date.length,n.length))),r){const f=xc.timezone.exec(r);f?(t.time=r.replace(f[1],""),t.timezone=f[1]):t.time=r}return t}function U$(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,g=r[2]?parseInt(r[2]):null;return{year:g===null?f:g*100,restDateString:n.slice((r[1]||r[2]).length)}}function V$(n,t){if(t===null)return new Date(NaN);const e=n.match(B$);if(!e)return new Date(NaN);const r=!!e[4],f=rl(e[1]),g=rl(e[2])-1,m=rl(e[3]),w=rl(e[4]),h=rl(e[5])-1;if(r)return Q$(t,w,h)?G$(t,w,h):new Date(NaN);{const d=new Date(0);return!X$(t,g,m)||!Z$(t,f)?new Date(NaN):(d.setUTCFullYear(t,g,Math.max(f,m)),d)}}function rl(n){return n?parseInt(n):1}function q$(n){const t=n.match(z$);if(!t)return NaN;const e=cd(t[1]),r=cd(t[2]),f=cd(t[3]);return J$(e,r,f)?e*vu+r*Ml+f*1e3:NaN}function cd(n){return n&&parseFloat(n.replace(",","."))||0}function K$(n){if(n==="Z")return 0;const t=n.match(H$);if(!t)return 0;const e=t[1]==="+"?-1:1,r=parseInt(t[2]),f=t[3]&&parseInt(t[3])||0;return eT(r,f)?e*(r*vu+f*Ml):NaN}function G$(n,t,e){const r=new Date(0);r.setUTCFullYear(n,0,4);const f=r.getUTCDay()||7,g=(t-1)*7+e+1-f;return r.setUTCDate(r.getUTCDate()+g),r}const Y$=[31,null,31,30,31,30,31,31,30,31,30,31];function Ay(n){return n%400===0||n%4===0&&n%100!==0}function X$(n,t,e){return t>=0&&t<=11&&e>=1&&e<=(Y$[t]||(Ay(n)?29:28))}function Z$(n,t){return t>=1&&t<=(Ay(n)?366:365)}function Q$(n,t,e){return t>=1&&t<=53&&e>=0&&e<=6}function J$(n,t,e){return n===24?t===0&&e===0:e>=0&&e<60&&t>=0&&t<60&&n>=0&&n<25}function eT(n,t){return t>=0&&t<=59}function tT(n,t,e){return F$(n,-t)}function Sy(n,t,e){const r=ky(),f=iT(n,e.timeZone,e.locale??r.locale);return"formatToParts"in f?nT(f,t):rT(f,t)}function nT(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 rT(n,t){const e=n.format(t).replace(/\u200E/g,""),r=/ [\w-+ ]+$/.exec(e);return r?r[0].substr(1):""}function iT(n,t,e){return new Intl.DateTimeFormat(e?[e.code,"en-US"]:void 0,{timeZone:t,timeZoneName:n})}function oT(n,t){const e=uT(t);return"formatToParts"in e?aT(e,n):lT(e,n)}const sT={year:0,month:1,day:2,hour:3,minute:4,second:5};function aT(n,t){try{const e=n.formatToParts(t),r=[];for(let f=0;f<e.length;f++){const g=sT[e[f].type];g!==void 0&&(r[g]=parseInt(e[f].value,10))}return r}catch(e){if(e instanceof RangeError)return[NaN];throw e}}function lT(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 ud={},_y=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")),cT=_y==="06/25/2014, 00:00:00"||_y==="‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00";function uT(n){return ud[n]||(ud[n]=cT?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"})),ud[n]}function $y(n,t,e,r,f,g,m){const w=new Date(0);return w.setUTCFullYear(n,t,e),w.setUTCHours(r,f,g,m),w}const Ty=36e5,hT=6e4,hd={timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function dd(n,t,e){if(!n)return 0;let r=hd.timezoneZ.exec(n);if(r)return 0;let f,g;if(r=hd.timezoneHH.exec(n),r)return f=parseInt(r[1],10),My(f)?-(f*Ty):NaN;if(r=hd.timezoneHHMM.exec(n),r){f=parseInt(r[2],10);const m=parseInt(r[3],10);return My(f,m)?(g=Math.abs(f)*Ty+m*hT,r[1]==="+"?-g:g):NaN}if(fT(n)){t=new Date(t||Date.now());const m=e?t:dT(t),w=pd(m,n);return-(e?w:pT(t,w,n))}return NaN}function dT(n){return $y(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds())}function pd(n,t){const e=oT(n,t),r=$y(e[0],e[1]-1,e[2],e[3]%24,e[4],e[5],0).getTime();let f=n.getTime();const g=f%1e3;return f-=g>=0?g:1e3+g,r-f}function pT(n,t,e){let r=n.getTime()-t;const f=pd(new Date(r),e);if(t===f)return t;r-=f-t;const g=pd(new Date(r),e);return f===g?f:Math.max(f,g)}function My(n,t){return-23<=n&&n<=23&&(t==null||0<=t&&t<=59)}const Iy={};function fT(n){if(Iy[n])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:n}),Iy[n]=!0,!0}catch{return!1}}const gT=60*1e3,mT={X:function(n,t,e){const r=fd(e.timeZone,n);if(r===0)return"Z";switch(t){case"X":return Ey(r);case"XXXX":case"XX":return ya(r);case"XXXXX":case"XXX":default:return ya(r,":")}},x:function(n,t,e){const r=fd(e.timeZone,n);switch(t){case"x":return Ey(r);case"xxxx":case"xx":return ya(r);case"xxxxx":case"xxx":default:return ya(r,":")}},O:function(n,t,e){const r=fd(e.timeZone,n);switch(t){case"O":case"OO":case"OOO":return"GMT"+vT(r,":");case"OOOO":default:return"GMT"+ya(r,":")}},z:function(n,t,e){switch(t){case"z":case"zz":case"zzz":return Sy("short",n,e);case"zzzz":default:return Sy("long",n,e)}}};function fd(n,t){const e=n?dd(n,t,!0)/gT:(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 ya(n,t=""){const e=n>0?"-":"+",r=Math.abs(n),f=Cc(Math.floor(r/60),2),g=Cc(Math.floor(r%60),2);return e+f+t+g}function Ey(n,t){return n%60===0?(n>0?"-":"+")+Cc(Math.abs(n)/60,2):ya(n,t)}function vT(n,t=""){const e=n>0?"-":"+",r=Math.abs(n),f=Math.floor(r/60),g=r%60;return g===0?e+String(f):e+String(f)+t+Cc(g,2)}function Ry(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 yT=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,gd=36e5,Ly=6e4,bT=2,Ur={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:yT};function Oy(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?bT: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:g}=xT(r.date,e),m=CT(g,f);if(m===null||isNaN(m.getTime()))return new Date(NaN);if(m){const w=m.getTime();let h=0,d;if(r.time&&(h=kT(r.time),h===null||isNaN(h)))return new Date(NaN);if(r.timeZone||t.timeZone){if(d=dd(r.timeZone||t.timeZone,new Date(w+h)),isNaN(d))return new Date(NaN)}else d=Ry(new Date(w+h)),d=Ry(new Date(w+h+d));return new Date(w+h+d)}else return new Date(NaN)}function wT(n){const t={};let e=Ur.dateTimePattern.exec(n),r;if(e?(t.date=e[1],r=e[3]):(e=Ur.datePattern.exec(n),e?(t.date=e[1],r=e[2]):(t.date=null,r=n)),r){const f=Ur.timeZone.exec(r);f?(t.time=r.replace(f[1],""),t.timeZone=f[1].trim()):t.time=r}return t}function xT(n,t){if(n){const e=Ur.YYY[t],r=Ur.YYYYY[t];let f=Ur.YYYY.exec(n)||r.exec(n);if(f){const g=f[1];return{year:parseInt(g,10),restDateString:n.slice(g.length)}}if(f=Ur.YY.exec(n)||e.exec(n),f){const g=f[1];return{year:parseInt(g,10)*100,restDateString:n.slice(g.length)}}}return{year:null}}function CT(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 g=Ur.MM.exec(n);if(g)return e=new Date(0),r=parseInt(g[1],10)-1,Py(t,r)?(e.setUTCFullYear(t,r),e):new Date(NaN);if(g=Ur.DDD.exec(n),g){e=new Date(0);const m=parseInt(g[1],10);return _T(t,m)?(e.setUTCFullYear(t,0,m),e):new Date(NaN)}if(g=Ur.MMDD.exec(n),g){e=new Date(0),r=parseInt(g[1],10)-1;const m=parseInt(g[2],10);return Py(t,r,m)?(e.setUTCFullYear(t,r,m),e):new Date(NaN)}if(g=Ur.Www.exec(n),g)return f=parseInt(g[1],10)-1,Fy(f)?Ny(t,f):new Date(NaN);if(g=Ur.WwwD.exec(n),g){f=parseInt(g[1],10)-1;const m=parseInt(g[2],10)-1;return Fy(f,m)?Ny(t,f,m):new Date(NaN)}return null}function kT(n){let t,e,r=Ur.HH.exec(n);if(r)return t=parseFloat(r[1].replace(",",".")),md(t)?t%24*gd:NaN;if(r=Ur.HHMM.exec(n),r)return t=parseInt(r[1],10),e=parseFloat(r[2].replace(",",".")),md(t,e)?t%24*gd+e*Ly:NaN;if(r=Ur.HHMMSS.exec(n),r){t=parseInt(r[1],10),e=parseInt(r[2],10);const f=parseFloat(r[3].replace(",","."));return md(t,e,f)?t%24*gd+e*Ly+f*1e3:NaN}return null}function Ny(n,t,e){t=t||0,e=e||0;const r=new Date(0);r.setUTCFullYear(n,0,4);const f=r.getUTCDay()||7,g=t*7+e+1-f;return r.setUTCDate(r.getUTCDate()+g),r}const AT=[31,28,31,30,31,30,31,31,30,31,30,31],ST=[31,29,31,30,31,30,31,31,30,31,30,31];function Dy(n){return n%400===0||n%4===0&&n%100!==0}function Py(n,t,e){if(t<0||t>11)return!1;if(e!=null){if(e<1)return!1;const r=Dy(n);if(r&&e>ST[t]||!r&&e>AT[t])return!1}return!0}function _T(n,t){if(t<1)return!1;const e=Dy(n);return!(e&&t>366||!e&&t>365)}function Fy(n,t){return!(n<0||n>52||t!=null&&(t<0||t>6))}function md(n,t,e){return!(n<0||n>=25||t!=null&&(t<0||t>=60)||e!=null&&(e<0||e>=60))}const $T=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function TT(n,t,e={}){t=String(t);const r=t.match($T);if(r){const f=Oy(e.originalDate||n,e);t=r.reduce(function(g,m){if(m[0]==="'")return g;const w=g.indexOf(m),h=g[w-1]==="'",d=g.replace(m,"'"+mT[m[0]](f,m,e)+"'");return h?d.substring(0,w-1)+d.substring(w+1):d},t)}return Yo(n,t,e)}function MT(n,t,e){n=Oy(n,e);const r=dd(t,n,!0),f=new Date(n.getTime()-r),g=new Date(0);return g.setFullYear(f.getUTCFullYear(),f.getUTCMonth(),f.getUTCDate()),g.setHours(f.getUTCHours(),f.getUTCMinutes(),f.getUTCSeconds(),f.getUTCMilliseconds()),g}function kc(n,t,e,r){return r={...r,timeZone:t,originalDate:n},TT(MT(n,t,{timeZone:r.timeZone}),e,r)}const Ac="yyyy-MM-dd",Wy="HH:mm:ss.SSS",By="HH:mm:ss",Sc=`${Ac} ${Wy}`,zy=`${Ac} ${By}`,WD=er("R",{methods:{parseDateTime(n,t){return n.includes(" ")&&(n=n.replace(" ","T")),t&&t==="UTC"&&(n+="Z"),Date.parse(n)},formatUtcToLocal(n,t){return Yo(!t||t==="local"?tT(n,n.getTimezoneOffset()):n,Sc)},formatDateTime(n,t){return!t||t==="local"?Yo(n,Sc):kc(n,t,Sc)},formatDateTimeHMS(n,t){return!t||t==="local"?Yo(n,zy):kc(n,t,zy)},formatDate:function(n,t){return!t||t==="local"?Yo(n,Ac):kc(n,this.timeZone,Ac)},formatTime:function(n,t,e=Wy){return!t||t==="local"?Yo(n,e):kc(n,this.timeZone,e)},formatTimeHMS:function(n,t){return this.formatTime(n,t,By)},formatTimestamp(n,t){return this.formatDateTime(W$(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 IT=Object.defineProperty,ET=(n,t,e)=>t in n?IT(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,et=(n,t,e)=>ET(n,typeof t!="symbol"?t+"":t,e);function vd(n,t,e){const r=_n(n,e==null?void 0:e.in);return isNaN(t)?nr((e==null?void 0:e.in)||n,NaN):(t&&r.setDate(r.getDate()+t),r)}function RT(n,t){const e=_n(n,void 0).getDay();return e===0?7:e}function LT(n,t){const e=OT(t)?new t(0):nr(t,0);return e.setFullYear(n.getFullYear(),n.getMonth(),n.getDate()),e.setHours(n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()),e}function OT(n){var t;return typeof n=="function"&&((t=n.prototype)==null?void 0:t.constructor)===n}const NT=10;let Hy=class{constructor(){et(this,"subPriority",0)}validate(t,e){return!0}},DT=class extends Hy{constructor(t,e,r,f,g){super(),this.value=t,this.validateValue=e,this.setValue=r,this.priority=f,g&&(this.subPriority=g)}validate(t,e){return this.validateValue(t,this.value,e)}set(t,e,r){return this.setValue(t,e,this.value,r)}};class PT extends Hy{constructor(t,e){super(),et(this,"priority",NT),et(this,"subPriority",-1),this.context=t||(r=>nr(e,r))}set(t,e){return e.timestampIsSet?t:nr(t,LT(t,this.context))}}class tn{run(t,e,r,f){const g=this.parse(t,e,r,f);return g?{setter:new DT(g.value,this.validate,this.set,this.priority,this.subPriority),rest:g.rest}:null}validate(t,e,r){return!0}}class FT extends tn{constructor(){super(...arguments),et(this,"priority",140),et(this,"incompatibleTokens",["R","u","t","T"])}parse(t,e,r){switch(e){case"G":case"GG":case"GGG":return r.era(t,{width:"abbreviated"})||r.era(t,{width:"narrow"});case"GGGGG":return r.era(t,{width:"narrow"});case"GGGG":default:return r.era(t,{width:"wide"})||r.era(t,{width:"abbreviated"})||r.era(t,{width:"narrow"})}}set(t,e,r){return e.era=r,t.setFullYear(r,0,1),t.setHours(0,0,0,0),t}}const Gn={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}/},fo={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 Yn(n,t){return n&&{value:t(n.value),rest:n.rest}}function Rn(n,t){const e=t.match(n);return e?{value:parseInt(e[0],10),rest:t.slice(e[0].length)}:null}function go(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,g=e[3]?parseInt(e[3],10):0,m=e[5]?parseInt(e[5],10):0;return{value:r*(f*vu+g*Ml+m*kw),rest:t.slice(e[0].length)}}function jy(n){return Rn(Gn.anyDigitsSigned,n)}function Fn(n,t){switch(n){case 1:return Rn(Gn.singleDigit,t);case 2:return Rn(Gn.twoDigits,t);case 3:return Rn(Gn.threeDigits,t);case 4:return Rn(Gn.fourDigits,t);default:return Rn(new RegExp("^\\d{1,"+n+"}"),t)}}function Uy(n,t){switch(n){case 1:return Rn(Gn.singleDigitSigned,t);case 2:return Rn(Gn.twoDigitsSigned,t);case 3:return Rn(Gn.threeDigitsSigned,t);case 4:return Rn(Gn.fourDigitsSigned,t);default:return Rn(new RegExp("^-?\\d{1,"+n+"}"),t)}}function yd(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 Vy(n,t){const e=t>0,r=e?t:1-t;let f;if(r<=50)f=n||100;else{const g=r+50,m=Math.trunc(g/100)*100,w=n>=g%100;f=n+m-(w?100:0)}return e?f:1-f}function qy(n){return n%400===0||n%4===0&&n%100!==0}let WT=class extends tn{constructor(){super(...arguments),et(this,"priority",130),et(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(t,e,r){const f=g=>({year:g,isTwoDigitYear:e==="yy"});switch(e){case"y":return Yn(Fn(4,t),f);case"yo":return Yn(r.ordinalNumber(t,{unit:"year"}),f);default:return Yn(Fn(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 m=Vy(r.year,f);return t.setFullYear(m,0,1),t.setHours(0,0,0,0),t}const g=!("era"in e)||e.era===1?r.year:1-r.year;return t.setFullYear(g,0,1),t.setHours(0,0,0,0),t}};class BT extends tn{constructor(){super(...arguments),et(this,"priority",130),et(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(t,e,r){const f=g=>({year:g,isTwoDigitYear:e==="YY"});switch(e){case"Y":return Yn(Fn(4,t),f);case"Yo":return Yn(r.ordinalNumber(t,{unit:"year"}),f);default:return Yn(Fn(e.length,t),f)}}validate(t,e){return e.isTwoDigitYear||e.year>0}set(t,e,r,f){const g=bu(t,f);if(r.isTwoDigitYear){const w=Vy(r.year,g);return t.setFullYear(w,0,f.firstWeekContainsDate),t.setHours(0,0,0,0),Ko(t,f)}const m=!("era"in e)||e.era===1?r.year:1-r.year;return t.setFullYear(m,0,f.firstWeekContainsDate),t.setHours(0,0,0,0),Ko(t,f)}}class zT extends tn{constructor(){super(...arguments),et(this,"priority",130),et(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(t,e){return Uy(e==="R"?4:e.length,t)}set(t,e,r){const f=nr(t,0);return f.setFullYear(r,0,4),f.setHours(0,0,0,0),Js(f)}}let HT=class extends tn{constructor(){super(...arguments),et(this,"priority",130),et(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(t,e){return Uy(e==="u"?4:e.length,t)}set(t,e,r){return t.setFullYear(r,0,1),t.setHours(0,0,0,0),t}};class jT extends tn{constructor(){super(...arguments),et(this,"priority",120),et(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(t,e,r){switch(e){case"Q":case"QQ":return Fn(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 UT extends tn{constructor(){super(...arguments),et(this,"priority",120),et(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(t,e,r){switch(e){case"q":case"qq":return Fn(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}}let VT=class extends tn{constructor(){super(...arguments),et(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),et(this,"priority",110)}parse(t,e,r){const f=g=>g-1;switch(e){case"M":return Yn(Rn(Gn.month,t),f);case"MM":return Yn(Fn(2,t),f);case"Mo":return Yn(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}},qT=class extends tn{constructor(){super(...arguments),et(this,"priority",110),et(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(t,e,r){const f=g=>g-1;switch(e){case"L":return Yn(Rn(Gn.month,t),f);case"LL":return Yn(Fn(2,t),f);case"Lo":return Yn(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 KT(n,t,e){const r=_n(n,e==null?void 0:e.in),f=Yp(r,e)-t;return r.setDate(r.getDate()-f*7),_n(r,e==null?void 0:e.in)}let GT=class extends tn{constructor(){super(...arguments),et(this,"priority",100),et(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(t,e,r){switch(e){case"w":return Rn(Gn.week,t);case"wo":return r.ordinalNumber(t,{unit:"week"});default:return Fn(e.length,t)}}validate(t,e){return e>=1&&e<=53}set(t,e,r,f){return Ko(KT(t,r,f),f)}};function YT(n,t,e){const r=_n(n,void 0),f=Gp(r)-t;return r.setDate(r.getDate()-f*7),r}class XT extends tn{constructor(){super(...arguments),et(this,"priority",100),et(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(t,e,r){switch(e){case"I":return Rn(Gn.week,t);case"Io":return r.ordinalNumber(t,{unit:"week"});default:return Fn(e.length,t)}}validate(t,e){return e>=1&&e<=53}set(t,e,r){return Js(YT(t,r))}}const ZT=[31,28,31,30,31,30,31,31,30,31,30,31],QT=[31,29,31,30,31,30,31,31,30,31,30,31];class JT extends tn{constructor(){super(...arguments),et(this,"priority",90),et(this,"subPriority",1),et(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(t,e,r){switch(e){case"d":return Rn(Gn.date,t);case"do":return r.ordinalNumber(t,{unit:"date"});default:return Fn(e.length,t)}}validate(t,e){const r=t.getFullYear(),f=qy(r),g=t.getMonth();return f?e>=1&&e<=QT[g]:e>=1&&e<=ZT[g]}set(t,e,r){return t.setDate(r),t.setHours(0,0,0,0),t}}let eM=class extends tn{constructor(){super(...arguments),et(this,"priority",90),et(this,"subpriority",1),et(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(t,e,r){switch(e){case"D":case"DD":return Rn(Gn.dayOfYear,t);case"Do":return r.ordinalNumber(t,{unit:"date"});default:return Fn(e.length,t)}}validate(t,e){const r=t.getFullYear();return qy(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 bd(n,t,e){var r,f,g,m;const w=Qs(),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)??w.weekStartsOn??((m=(g=w.locale)==null?void 0:g.options)==null?void 0:m.weekStartsOn)??0,d=_n(n,e==null?void 0:e.in),a=d.getDay(),l=(t%7+7)%7,u=7-h,c=t<0||t>6?t-(a+u)%7:(l+u)%7-(a+u)%7;return vd(d,c,e)}class tM extends tn{constructor(){super(...arguments),et(this,"priority",90),et(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(t,e,r){switch(e){case"E":case"EE":case"EEE":return r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return r.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});case"EEEE":default:return r.day(t,{width:"wide",context:"formatting"})||r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=0&&e<=6}set(t,e,r,f){return t=bd(t,r,f),t.setHours(0,0,0,0),t}}class nM extends tn{constructor(){super(...arguments),et(this,"priority",90),et(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(t,e,r,f){const g=m=>{const w=Math.floor((m-1)/7)*7;return(m+f.weekStartsOn+6)%7+w};switch(e){case"e":case"ee":return Yn(Fn(e.length,t),g);case"eo":return Yn(r.ordinalNumber(t,{unit:"day"}),g);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=bd(t,r,f),t.setHours(0,0,0,0),t}}let rM=class extends tn{constructor(){super(...arguments),et(this,"priority",90),et(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(t,e,r,f){const g=m=>{const w=Math.floor((m-1)/7)*7;return(m+f.weekStartsOn+6)%7+w};switch(e){case"c":case"cc":return Yn(Fn(e.length,t),g);case"co":return Yn(r.ordinalNumber(t,{unit:"day"}),g);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=bd(t,r,f),t.setHours(0,0,0,0),t}};function iM(n,t,e){const r=_n(n,void 0),f=RT(r),g=t-f;return vd(r,g,e)}let oM=class extends tn{constructor(){super(...arguments),et(this,"priority",90),et(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(t,e,r){const f=g=>g===0?7:g;switch(e){case"i":case"ii":return Fn(e.length,t);case"io":return r.ordinalNumber(t,{unit:"day"});case"iii":return Yn(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 Yn(r.day(t,{width:"narrow",context:"formatting"}),f);case"iiiiii":return Yn(r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"}),f);case"iiii":default:return Yn(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=iM(t,r),t.setHours(0,0,0,0),t}};class sM extends tn{constructor(){super(...arguments),et(this,"priority",80),et(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(t,e,r){switch(e){case"a":case"aa":case"aaa":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return r.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,r){return t.setHours(yd(r),0,0,0),t}}class aM extends tn{constructor(){super(...arguments),et(this,"priority",80),et(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(t,e,r){switch(e){case"b":case"bb":case"bbb":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return r.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,r){return t.setHours(yd(r),0,0,0),t}}let lM=class extends tn{constructor(){super(...arguments),et(this,"priority",80),et(this,"incompatibleTokens",["a","b","t","T"])}parse(t,e,r){switch(e){case"B":case"BB":case"BBB":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return r.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,r){return t.setHours(yd(r),0,0,0),t}};class cM extends tn{constructor(){super(...arguments),et(this,"priority",70),et(this,"incompatibleTokens",["H","K","k","t","T"])}parse(t,e,r){switch(e){case"h":return Rn(Gn.hour12h,t);case"ho":return r.ordinalNumber(t,{unit:"hour"});default:return Fn(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 uM extends tn{constructor(){super(...arguments),et(this,"priority",70),et(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(t,e,r){switch(e){case"H":return Rn(Gn.hour23h,t);case"Ho":return r.ordinalNumber(t,{unit:"hour"});default:return Fn(e.length,t)}}validate(t,e){return e>=0&&e<=23}set(t,e,r){return t.setHours(r,0,0,0),t}}class hM extends tn{constructor(){super(...arguments),et(this,"priority",70),et(this,"incompatibleTokens",["h","H","k","t","T"])}parse(t,e,r){switch(e){case"K":return Rn(Gn.hour11h,t);case"Ko":return r.ordinalNumber(t,{unit:"hour"});default:return Fn(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 dM extends tn{constructor(){super(...arguments),et(this,"priority",70),et(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(t,e,r){switch(e){case"k":return Rn(Gn.hour24h,t);case"ko":return r.ordinalNumber(t,{unit:"hour"});default:return Fn(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 pM extends tn{constructor(){super(...arguments),et(this,"priority",60),et(this,"incompatibleTokens",["t","T"])}parse(t,e,r){switch(e){case"m":return Rn(Gn.minute,t);case"mo":return r.ordinalNumber(t,{unit:"minute"});default:return Fn(e.length,t)}}validate(t,e){return e>=0&&e<=59}set(t,e,r){return t.setMinutes(r,0,0),t}}class fM extends tn{constructor(){super(...arguments),et(this,"priority",50),et(this,"incompatibleTokens",["t","T"])}parse(t,e,r){switch(e){case"s":return Rn(Gn.second,t);case"so":return r.ordinalNumber(t,{unit:"second"});default:return Fn(e.length,t)}}validate(t,e){return e>=0&&e<=59}set(t,e,r){return t.setSeconds(r,0),t}}class gM extends tn{constructor(){super(...arguments),et(this,"priority",30),et(this,"incompatibleTokens",["t","T"])}parse(t,e){const r=f=>Math.trunc(f*Math.pow(10,-e.length+3));return Yn(Fn(e.length,t),r)}set(t,e,r){return t.setMilliseconds(r),t}}class mM extends tn{constructor(){super(...arguments),et(this,"priority",10),et(this,"incompatibleTokens",["t","T","x"])}parse(t,e){switch(e){case"X":return go(fo.basicOptionalMinutes,t);case"XX":return go(fo.basic,t);case"XXXX":return go(fo.basicOptionalSeconds,t);case"XXXXX":return go(fo.extendedOptionalSeconds,t);case"XXX":default:return go(fo.extended,t)}}set(t,e,r){return e.timestampIsSet?t:nr(t,t.getTime()-Il(t)-r)}}class vM extends tn{constructor(){super(...arguments),et(this,"priority",10),et(this,"incompatibleTokens",["t","T","X"])}parse(t,e){switch(e){case"x":return go(fo.basicOptionalMinutes,t);case"xx":return go(fo.basic,t);case"xxxx":return go(fo.basicOptionalSeconds,t);case"xxxxx":return go(fo.extendedOptionalSeconds,t);case"xxx":default:return go(fo.extended,t)}}set(t,e,r){return e.timestampIsSet?t:nr(t,t.getTime()-Il(t)-r)}}class yM extends tn{constructor(){super(...arguments),et(this,"priority",40),et(this,"incompatibleTokens","*")}parse(t){return jy(t)}set(t,e,r){return[nr(t,r*1e3),{timestampIsSet:!0}]}}class bM extends tn{constructor(){super(...arguments),et(this,"priority",20),et(this,"incompatibleTokens","*")}parse(t){return jy(t)}set(t,e,r){return[nr(t,r),{timestampIsSet:!0}]}}const wM={G:new FT,y:new WT,Y:new BT,R:new zT,u:new HT,Q:new jT,q:new UT,M:new VT,L:new qT,w:new GT,I:new XT,d:new JT,D:new eM,E:new tM,e:new nM,c:new rM,i:new oM,a:new sM,b:new aM,B:new lM,h:new cM,H:new uM,K:new hM,k:new dM,m:new pM,s:new fM,S:new gM,X:new mM,x:new vM,t:new yM,T:new bM},xM=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,CM=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,kM=/^'([^]*?)'?$/,AM=/''/g,SM=/\S/,_M=/[a-zA-Z]/;function $M(n,t,e,r){var f,g,m,w;const h=()=>nr(e,NaN),d=ky(),a=d.locale??Kp,l=d.firstWeekContainsDate??((g=(f=d.locale)==null?void 0:f.options)==null?void 0:g.firstWeekContainsDate)??1,u=d.weekStartsOn??((w=(m=d.locale)==null?void 0:m.options)==null?void 0:w.weekStartsOn)??0;if(!t)return n?h():_n(e,void 0);const c={firstWeekContainsDate:l,weekStartsOn:u,locale:a},i=[new PT(void 0,e)],s=t.match(CM).map(_=>{const k=_[0];if(k in wu){const C=wu[k];return C(_,a.formatLong)}return _}).join("").match(xM),p=[];for(let _ of s){nf(_)&&xu(_,t,n),tf(_)&&xu(_,t,n);const k=_[0],C=wM[k];if(C){const{incompatibleTokens:L}=C;if(Array.isArray(L)){const R=p.find(E=>L.includes(E.token)||E.token===k);if(R)throw new RangeError(`The format string mustn't contain \`${R.fullToken}\` and \`${_}\` at the same time`)}else if(C.incompatibleTokens==="*"&&p.length>0)throw new RangeError(`The format string mustn't contain \`${_}\` and any other token at the same time`);p.push({token:k,fullToken:_});const D=C.run(n,_,a.match,c);if(!D)return h();i.push(D.setter),n=D.rest}else{if(k.match(_M))throw new RangeError("Format string contains an unescaped latin alphabet character `"+k+"`");if(_==="''"?_="'":k==="'"&&(_=TM(_)),n.indexOf(_)===0)n=n.slice(_.length);else return h()}}if(n.length>0&&SM.test(n))return h();const b=i.map(_=>_.priority).sort((_,k)=>k-_).filter((_,k,C)=>C.indexOf(_)===k).map(_=>i.filter(k=>k.priority===_).sort((k,C)=>C.subPriority-k.subPriority)).map(_=>_[0]);let x=_n(e,void 0);if(isNaN(+x))return h();const I={};for(const _ of b){if(!_.validate(x,c))return h();const k=_.set(x,I,c);Array.isArray(k)?(x=k[0],Object.assign(I,k[1])):x=k}return x}function TM(n){return n.match(kM)[1].replace(AM,"'")}const MM="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=",IM={props:{status:{type:String,required:!0},large:{type:Boolean},small:{type:Boolean},scale:{type:Number}},computed:{icons:function(){return MM},scaleFactor:function(){return this.scale?this.scale:this.large?1:this.small?.3:.5},iconStyle:function(){const n=PM.indexOf(Ky[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 EM(n,t,e,r,f,g){return pn(),Hr("div",{style:Ra(g.iconStyle)},null,4)}const RM=So(IM,[["render",EM]]),LM={props:{icon:{type:String},size:{type:String,default:"small"},color:{type:String,default:"white"}},computed:{colorStyle:function(){return{"--iconColor":this.color}}}};function OM(n,t,e,r,f,g){const m=ht("rux-icon");return pn(),xi(m,{size:e.size,icon:e.icon,style:Ra(g.colorStyle)},null,8,["size","icon","style"])}const NM=So(LM,[["render",OM],["__scopeId","data-v-9af48e85"]]),Ky={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"},wd={fatal:"#ff69B4",critical:"#ff3838",serious:"#ffb302",caution:"#fce83a",normal:"#56f000",standby:"#2dccff",off:"#a4abb6"},DM=function(n){const t="#000000",e="#ffffff",r=wd[Ky[n]];if(r){const f=+`0x${r.slice(1,3)}`,g=+`0x${r.slice(3,5)}`,m=+`0x${r.slice(5,7)}`;if((f*299+g*587+m*114)/1e3>128)return t}return e},PM=Object.keys(wd),FM={astro:{component:n=>Xs(NM,{...n})},"astro-status":{component:n=>Xs(RM,{...n,status:n.icon})}},WM={extras:{component:n=>Xs(Cw,{...n})}},BD=er("p",{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 As().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 As().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})}}}),BM={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 As().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 As().delete_config(this.configKey,n.config)}).catch(t=>{t!==!0&&this.$emit("warning",`Failed to delete config ${n.config} Error: ${t}`)})}}},zM={class:"mt-4 pa-3"},HM=["textContent"];function jM(n,t,e,r,f,g){const m=ht("v-spacer"),w=ht("v-toolbar"),h=ht("v-text-field"),d=ht("v-row"),a=ht("v-btn"),l=ht("v-data-table"),u=ht("v-card-text"),c=ht("v-card-actions"),i=ht("v-card"),s=ht("v-dialog");return pn(),xi(s,{modelValue:g.show,"onUpdate:modelValue":t[4]||(t[4]=p=>g.show=p),persistent:"",width:"600",onKeydown:_l(g.cancel,["esc"])},{default:pt(()=>[Ve(i,null,{default:pt(()=>[tr("form",{onSubmit:t[3]||(t[3]=Zs((...p)=>g.success&&g.success(...p),["prevent"]))},[Ve(w,{height:"24"},{default:pt(()=>[Ve(m),t[5]||(t[5]=tr("span",null,"Open Configuration",-1)),Ve(m)]),_:1}),Ve(u,null,{default:pt(()=>[tr("div",zM,[Ve(d,{dense:""},{default:pt(()=>[Ve(h,{modelValue:f.search,"onUpdate:modelValue":t[0]||(t[0]=p=>f.search=p),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}),Ve(l,{modelValue:f.selectedRows,"onUpdate:modelValue":t[1]||(t[1]=p=>f.selectedRows=p),"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]=(p,b)=>g.selectRow(b))},{"item.actions":pt(({item:p})=>[Ve(a,{class:"mt-1",icon:"mdi-delete",variant:"text","data-test":"item-delete",onClick:b=>g.deleteConfig(p)},null,8,["onClick"])]),_:1},8,["modelValue","search","headers","items"]),Ve(d,{dense:""},{default:pt(()=>[$l(tr("span",{class:"ma-2 text-red",textContent:ii(g.error)},null,8,HM),[[Tl,g.error]])]),_:1})])]),_:1}),Ve(c,{class:"px-2"},{default:pt(()=>[Ve(m),Ve(a,{variant:"outlined","data-test":"open-config-cancel-btn",onClick:g.cancel},{default:pt(()=>[...t[6]||(t[6]=[Tr(" Cancel ",-1)])]),_:1},8,["onClick"]),Ve(a,{variant:"flat",type:"submit","data-test":"open-config-submit-btn",disabled:!!g.error,onClick:Zs(g.success,["prevent"])},{default:pt(()=>[...t[7]||(t[7]=[Tr(" Ok ",-1)])]),_:1},8,["disabled","onClick"])]),_:1})],32)]),_:1})]),_:1},8,["modelValue","onKeydown"])}const zD=er("g",So(BM,[["render",jM]])),UM={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 As().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 As().delete_config(this.configKey,n.config)}).catch(t=>{t!==!0&&this.$emit("warning",`Failed to delete config ${n.config} Error: ${t}`)})}}},VM={class:"mt-4 pa-3"},qM=["textContent"];function KM(n,t,e,r,f,g){const m=ht("v-spacer"),w=ht("v-toolbar"),h=ht("v-text-field"),d=ht("v-row"),a=ht("v-btn"),l=ht("v-data-table"),u=ht("v-card-text"),c=ht("v-card-actions"),i=ht("v-card"),s=ht("v-dialog");return pn(),xi(s,{modelValue:g.show,"onUpdate:modelValue":t[5]||(t[5]=p=>g.show=p),persistent:"",width:"600",onKeydown:_l(g.cancel,["esc"])},{default:pt(()=>[Ve(i,null,{default:pt(()=>[tr("form",{onSubmit:t[4]||(t[4]=Zs((...p)=>g.success&&g.success(...p),["prevent"]))},[Ve(w,{height:"24"},{default:pt(()=>[Ve(m),t[6]||(t[6]=tr("span",null,"Save Configuration",-1)),Ve(m)]),_:1}),Ve(u,null,{default:pt(()=>[tr("div",VM,[Ve(d,{dense:""},{default:pt(()=>[Ve(h,{modelValue:f.search,"onUpdate:modelValue":t[0]||(t[0]=p=>f.search=p),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}),Ve(l,{modelValue:f.selectedRows,"onUpdate:modelValue":t[1]||(t[1]=p=>f.selectedRows=p),"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]=(p,b)=>g.selectRow(b))},{"item.actions":pt(({item:p})=>[Ve(a,{class:"mt-1",icon:"mdi-delete",variant:"text","data-test":"item-delete",onClick:b=>g.deleteConfig(p)},null,8,["onClick"])]),_:1},8,["modelValue","search","headers","items"]),Ve(d,{dense:""},{default:pt(()=>[Ve(h,{modelValue:f.configName,"onUpdate:modelValue":t[3]||(t[3]=p=>f.configName=p),"hide-details":"",autofocus:"",disabled:!!g.selectedItem,label:"Configuration Name","data-test":"name-input-save-config-dialog"},null,8,["modelValue","disabled"])]),_:1}),Ve(d,{dense:""},{default:pt(()=>[$l(tr("span",{class:"ma-2 text-red",textContent:ii(g.error)},null,8,qM),[[Tl,g.error]])]),_:1})])]),_:1}),Ve(c,{class:"px-2"},{default:pt(()=>[Ve(m),Ve(a,{variant:"outlined",onClick:g.cancel},{default:pt(()=>[...t[7]||(t[7]=[Tr(" Cancel ",-1)])]),_:1},8,["onClick"]),Ve(a,{variant:"flat",type:"submit","data-test":"save-config-submit-btn",disabled:!!g.error,onClick:Zs(g.success,["prevent"])},{default:pt(()=>[...t[8]||(t[8]=[Tr(" Ok ",-1)])]),_:1},8,["disabled","onClick"])]),_:1})],32)]),_:1})]),_:1},8,["modelValue","onKeydown"])}const HD=er("a",So(UM,[["render",KM]])),GM=50,YM=2e3,Gy="single-spa:app-change",XM={data(){return{appsMounted:!1,show:!1,hideSpinner:!1,pollInterval:null}},computed:{showSpinner:function(){return!this.hideSpinner&&!this.show}},created(){window.addEventListener(Gy,this.handleAppChange)},mounted(){this.pollForMountedApps(),setTimeout(()=>{this.appsMounted||(this.show=!0,this.pollInterval&&clearInterval(this.pollInterval))},YM)},unmounted(){window.removeEventListener(Gy,this.handleAppChange),this.pollInterval&&clearInterval(this.pollInterval)},methods:{handleAppChange:function(n){this.show=!n.detail.appsByNewStatus.MOUNTED,this.hideSpinner=!0},pollForMountedApps:function(){this.pollInterval=setInterval(()=>{this.appsMounted=gu().length>0,gu().length>0&&(this.hideSpinner=!0,clearInterval(this.pollInterval))},GM)}}},ZM={class:"mx-1"},QM={key:1,class:"d-flex justify-center align-center"};function JM(n,t,e,r,f,g){const m=ht("v-card-title"),w=ht("v-card-text"),h=ht("v-card"),d=ht("v-progress-circular");return pn(),Hr(Sl,null,[f.show?(pn(),xi(h,{key:0},{default:pt(()=>[Ve(m,null,{default:pt(()=>[...t[0]||(t[0]=[Tr(" 404 Not Found ",-1)])]),_:1}),Ve(w,{class:"d-flex align-center mt-3"},{default:pt(()=>[t[1]||(t[1]=Tr(" The requested URL ",-1)),tr("code",ZM,ii(n.$route.fullPath),1),t[2]||(t[2]=Tr(" was not routable. ",-1)),t[3]||(t[3]=tr("span",{class:"text-h3 mx-1"}," 🦄 ",-1))]),_:1})]),_:1})):Ni("",!0),g.showSpinner?(pn(),Hr("div",QM,[Ve(d,{indeterminate:""})])):Ni("",!0)],64)}const Yy=[{path:"/",name:"DataViewer",component:()=>st(()=>ot.import("./DataViewer-6460ca37c141a368a5f1.js"),void 0)},{path:"/:pathMatch(.*)*",name:"NotFound",component:So(XM,[["render",JM]])}];Yy.forEach(Bp);const eI=Np({history:Dp(),routes:Yy});/*! @license DOMPurify 3.3.0 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.0/LICENSE */const{entries:Xy,setPrototypeOf:Zy,isFrozen:tI,getPrototypeOf:nI,getOwnPropertyDescriptor:rI}=Object;let{freeze:Vr,seal:Fi,create:xd}=Object,{apply:Cd,construct:kd}=typeof Reflect<"u"&&Reflect;Vr||(Vr=function(n){return n}),Fi||(Fi=function(n){return n}),Cd||(Cd=function(n,t){for(var e=arguments.length,r=new Array(e>2?e-2:0),f=2;f<e;f++)r[f-2]=arguments[f];return n.apply(t,r)}),kd||(kd=function(n){for(var t=arguments.length,e=new Array(t>1?t-1:0),r=1;r<t;r++)e[r-1]=arguments[r];return new n(...e)});const _c=Kr(Array.prototype.forEach),iI=Kr(Array.prototype.lastIndexOf),Qy=Kr(Array.prototype.pop),il=Kr(Array.prototype.push),oI=Kr(Array.prototype.splice),$c=Kr(String.prototype.toLowerCase),Ad=Kr(String.prototype.toString),Sd=Kr(String.prototype.match),ol=Kr(String.prototype.replace),sI=Kr(String.prototype.indexOf),aI=Kr(String.prototype.trim),no=Kr(Object.prototype.hasOwnProperty),qr=Kr(RegExp.prototype.test),sl=lI(TypeError);function Kr(n){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var e=arguments.length,r=new Array(e>1?e-1:0),f=1;f<e;f++)r[f-1]=arguments[f];return Cd(n,t,r)}}function lI(n){return function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return kd(n,e)}}function Ft(n,t){let e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:$c;Zy&&Zy(n,null);let r=t.length;for(;r--;){let f=t[r];if(typeof f=="string"){const g=e(f);g!==f&&(tI(t)||(t[r]=g),f=g)}n[f]=!0}return n}function cI(n){for(let t=0;t<n.length;t++)no(n,t)||(n[t]=null);return n}function To(n){const t=xd(null);for(const[e,r]of Xy(n))no(n,e)&&(Array.isArray(r)?t[e]=cI(r):r&&typeof r=="object"&&r.constructor===Object?t[e]=To(r):t[e]=r);return t}function al(n,t){for(;n!==null;){const r=rI(n,t);if(r){if(r.get)return Kr(r.get);if(typeof r.value=="function")return Kr(r.value)}n=nI(n)}function e(){return null}return e}const Jy=Vr(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),_d=Vr(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),$d=Vr(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),uI=Vr(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Td=Vr(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),hI=Vr(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),eb=Vr(["#text"]),tb=Vr(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Md=Vr(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),nb=Vr(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Tc=Vr(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),dI=Fi(/\{\{[\w\W]*|[\w\W]*\}\}/gm),pI=Fi(/<%[\w\W]*|[\w\W]*%>/gm),fI=Fi(/\$\{[\w\W]*/gm),gI=Fi(/^data-[\-\w.\u00B7-\uFFFF]+$/),mI=Fi(/^aria-[\-\w]+$/),rb=Fi(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),vI=Fi(/^(?:\w+script|data):/i),yI=Fi(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ib=Fi(/^html$/i),bI=Fi(/^[a-z][.\w]*(-[.\w]+)+$/i);var ob=Object.freeze({__proto__:null,ARIA_ATTR:mI,ATTR_WHITESPACE:yI,CUSTOM_ELEMENT:bI,DATA_ATTR:gI,DOCTYPE_NAME:ib,ERB_EXPR:pI,IS_ALLOWED_URI:rb,IS_SCRIPT_OR_DATA:vI,MUSTACHE_EXPR:dI,TMPLIT_EXPR:fI});const ll={element:1,text:3,progressingInstruction:7,comment:8,document:9},wI=function(){return typeof window>"u"?null:window},xI=function(n,t){if(typeof n!="object"||typeof n.createPolicy!="function")return null;let e=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(e=t.getAttribute(r));const f="dompurify"+(e?"#"+e:"");try{return n.createPolicy(f,{createHTML(g){return g},createScriptURL(g){return g}})}catch{return console.warn("TrustedTypes policy "+f+" could not be created."),null}},sb=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function ab(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:wI();const t=ce=>ab(ce);if(t.version="3.3.0",t.removed=[],!n||!n.document||n.document.nodeType!==ll.document||!n.Element)return t.isSupported=!1,t;let{document:e}=n;const r=e,f=r.currentScript,{DocumentFragment:g,HTMLTemplateElement:m,Node:w,Element:h,NodeFilter:d,NamedNodeMap:a=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:l,DOMParser:u,trustedTypes:c}=n,i=h.prototype,s=al(i,"cloneNode"),p=al(i,"remove"),b=al(i,"nextSibling"),x=al(i,"childNodes"),I=al(i,"parentNode");if(typeof m=="function"){const ce=e.createElement("template");ce.content&&ce.content.ownerDocument&&(e=ce.content.ownerDocument)}let _,k="";const{implementation:C,createNodeIterator:L,createDocumentFragment:D,getElementsByTagName:R}=e,{importNode:E}=r;let z=sb();t.isSupported=typeof Xy=="function"&&typeof I=="function"&&C&&C.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:F,ERB_EXPR:O,TMPLIT_EXPR:$,DATA_ATTR:A,ARIA_ATTR:N,IS_SCRIPT_OR_DATA:B,ATTR_WHITESPACE:U,CUSTOM_ELEMENT:K}=ob;let{IS_ALLOWED_URI:Q}=ob,J=null;const he=Ft({},[...Jy,..._d,...$d,...Td,...eb]);let ne=null;const le=Ft({},[...tb,...Md,...nb,...Tc]);let se=Object.seal(xd(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),de=null,me=null;const _e=Object.seal(xd(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Te=!0,Me=!0,Ze=!1,Ge=!0,lt=!1,tt=!0,ct=!1,Yt=!1,Cn=!1,Wt=!1,vr=!1,un=!1,Ln=!0,Xn=!1;const Mr="user-content-";let yt=!0,je=!1,Lt={},Qt=null;const On=Ft({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let yr=null;const hr=Ft({},["audio","video","img","source","image","track"]);let mn=null;const Wn=Ft({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Nn="http://www.w3.org/1998/Math/MathML",Kt="http://www.w3.org/2000/svg",ln="http://www.w3.org/1999/xhtml";let Dr=ln,Gr=!1,Yr=null;const Si=Ft({},[Nn,Kt,ln],Ad);let ci=Ft({},["mi","mo","mn","ms","mtext"]),Bn=Ft({},["annotation-xml"]);const ro=Ft({},["title","style","font","a","script"]);let ui=null;const Os=["application/xhtml+xml","text/html"],Xr="text/html";let $n=null,hi=null;const Jo=e.createElement("form"),di=function(ce){return ce instanceof RegExp||ce instanceof Function},kn=function(){let ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(hi&&hi===ce)){if((!ce||typeof ce!="object")&&(ce={}),ce=To(ce),ui=Os.indexOf(ce.PARSER_MEDIA_TYPE)===-1?Xr:ce.PARSER_MEDIA_TYPE,$n=ui==="application/xhtml+xml"?Ad:$c,J=no(ce,"ALLOWED_TAGS")?Ft({},ce.ALLOWED_TAGS,$n):he,ne=no(ce,"ALLOWED_ATTR")?Ft({},ce.ALLOWED_ATTR,$n):le,Yr=no(ce,"ALLOWED_NAMESPACES")?Ft({},ce.ALLOWED_NAMESPACES,Ad):Si,mn=no(ce,"ADD_URI_SAFE_ATTR")?Ft(To(Wn),ce.ADD_URI_SAFE_ATTR,$n):Wn,yr=no(ce,"ADD_DATA_URI_TAGS")?Ft(To(hr),ce.ADD_DATA_URI_TAGS,$n):hr,Qt=no(ce,"FORBID_CONTENTS")?Ft({},ce.FORBID_CONTENTS,$n):On,de=no(ce,"FORBID_TAGS")?Ft({},ce.FORBID_TAGS,$n):To({}),me=no(ce,"FORBID_ATTR")?Ft({},ce.FORBID_ATTR,$n):To({}),Lt=no(ce,"USE_PROFILES")?ce.USE_PROFILES:!1,Te=ce.ALLOW_ARIA_ATTR!==!1,Me=ce.ALLOW_DATA_ATTR!==!1,Ze=ce.ALLOW_UNKNOWN_PROTOCOLS||!1,Ge=ce.ALLOW_SELF_CLOSE_IN_ATTR!==!1,lt=ce.SAFE_FOR_TEMPLATES||!1,tt=ce.SAFE_FOR_XML!==!1,ct=ce.WHOLE_DOCUMENT||!1,Wt=ce.RETURN_DOM||!1,vr=ce.RETURN_DOM_FRAGMENT||!1,un=ce.RETURN_TRUSTED_TYPE||!1,Cn=ce.FORCE_BODY||!1,Ln=ce.SANITIZE_DOM!==!1,Xn=ce.SANITIZE_NAMED_PROPS||!1,yt=ce.KEEP_CONTENT!==!1,je=ce.IN_PLACE||!1,Q=ce.ALLOWED_URI_REGEXP||rb,Dr=ce.NAMESPACE||ln,ci=ce.MATHML_TEXT_INTEGRATION_POINTS||ci,Bn=ce.HTML_INTEGRATION_POINTS||Bn,se=ce.CUSTOM_ELEMENT_HANDLING||{},ce.CUSTOM_ELEMENT_HANDLING&&di(ce.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(se.tagNameCheck=ce.CUSTOM_ELEMENT_HANDLING.tagNameCheck),ce.CUSTOM_ELEMENT_HANDLING&&di(ce.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(se.attributeNameCheck=ce.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),ce.CUSTOM_ELEMENT_HANDLING&&typeof ce.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(se.allowCustomizedBuiltInElements=ce.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),lt&&(Me=!1),vr&&(Wt=!0),Lt&&(J=Ft({},eb),ne=[],Lt.html===!0&&(Ft(J,Jy),Ft(ne,tb)),Lt.svg===!0&&(Ft(J,_d),Ft(ne,Md),Ft(ne,Tc)),Lt.svgFilters===!0&&(Ft(J,$d),Ft(ne,Md),Ft(ne,Tc)),Lt.mathMl===!0&&(Ft(J,Td),Ft(ne,nb),Ft(ne,Tc))),ce.ADD_TAGS&&(typeof ce.ADD_TAGS=="function"?_e.tagCheck=ce.ADD_TAGS:(J===he&&(J=To(J)),Ft(J,ce.ADD_TAGS,$n))),ce.ADD_ATTR&&(typeof ce.ADD_ATTR=="function"?_e.attributeCheck=ce.ADD_ATTR:(ne===le&&(ne=To(ne)),Ft(ne,ce.ADD_ATTR,$n))),ce.ADD_URI_SAFE_ATTR&&Ft(mn,ce.ADD_URI_SAFE_ATTR,$n),ce.FORBID_CONTENTS&&(Qt===On&&(Qt=To(Qt)),Ft(Qt,ce.FORBID_CONTENTS,$n)),yt&&(J["#text"]=!0),ct&&Ft(J,["html","head","body"]),J.table&&(Ft(J,["tbody"]),delete de.tbody),ce.TRUSTED_TYPES_POLICY){if(typeof ce.TRUSTED_TYPES_POLICY.createHTML!="function")throw sl('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof ce.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw sl('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');_=ce.TRUSTED_TYPES_POLICY,k=_.createHTML("")}else _===void 0&&(_=xI(c,f)),_!==null&&typeof k=="string"&&(k=_.createHTML(""));Vr&&Vr(ce),hi=ce}},dr=Ft({},[..._d,...$d,...uI]),pi=Ft({},[...Td,...hI]),An=function(ce){let ze=I(ce);(!ze||!ze.tagName)&&(ze={namespaceURI:Dr,tagName:"template"});const Pe=$c(ce.tagName),_t=$c(ze.tagName);return Yr[ce.namespaceURI]?ce.namespaceURI===Kt?ze.namespaceURI===ln?Pe==="svg":ze.namespaceURI===Nn?Pe==="svg"&&(_t==="annotation-xml"||ci[_t]):!!dr[Pe]:ce.namespaceURI===Nn?ze.namespaceURI===ln?Pe==="math":ze.namespaceURI===Kt?Pe==="math"&&Bn[_t]:!!pi[Pe]:ce.namespaceURI===ln?ze.namespaceURI===Kt&&!Bn[_t]||ze.namespaceURI===Nn&&!ci[_t]?!1:!pi[Pe]&&(ro[Pe]||!dr[Pe]):!!(ui==="application/xhtml+xml"&&Yr[ce.namespaceURI]):!1},Tn=function(ce){il(t.removed,{element:ce});try{I(ce).removeChild(ce)}catch{p(ce)}},br=function(ce,ze){try{il(t.removed,{attribute:ze.getAttributeNode(ce),from:ze})}catch{il(t.removed,{attribute:null,from:ze})}if(ze.removeAttribute(ce),ce==="is")if(Wt||vr)try{Tn(ze)}catch{}else try{ze.setAttribute(ce,"")}catch{}},fi=function(ce){let ze=null,Pe=null;if(Cn)ce="<remove></remove>"+ce;else{const Ht=Sd(ce,/^[\r\n\t ]+/);Pe=Ht&&Ht[0]}ui==="application/xhtml+xml"&&Dr===ln&&(ce='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+ce+"</body></html>");const _t=_?_.createHTML(ce):ce;if(Dr===ln)try{ze=new u().parseFromString(_t,ui)}catch{}if(!ze||!ze.documentElement){ze=C.createDocument(Dr,"template",null);try{ze.documentElement.innerHTML=Gr?k:_t}catch{}}const Gt=ze.body||ze.documentElement;return ce&&Pe&&Gt.insertBefore(e.createTextNode(Pe),Gt.childNodes[0]||null),Dr===ln?R.call(ze,ct?"html":"body")[0]:ct?ze.documentElement:Gt},mo=function(ce){return L.call(ce.ownerDocument||ce,ce,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},vo=function(ce){return ce instanceof l&&(typeof ce.nodeName!="string"||typeof ce.textContent!="string"||typeof ce.removeChild!="function"||!(ce.attributes instanceof a)||typeof ce.removeAttribute!="function"||typeof ce.setAttribute!="function"||typeof ce.namespaceURI!="string"||typeof ce.insertBefore!="function"||typeof ce.hasChildNodes!="function")},es=function(ce){return typeof w=="function"&&ce instanceof w};function Zr(ce,ze,Pe){_c(ce,_t=>{_t.call(t,ze,Pe,hi)})}const gi=function(ce){let ze=null;if(Zr(z.beforeSanitizeElements,ce,null),vo(ce))return Tn(ce),!0;const Pe=$n(ce.nodeName);if(Zr(z.uponSanitizeElement,ce,{tagName:Pe,allowedTags:J}),tt&&ce.hasChildNodes()&&!es(ce.firstElementChild)&&qr(/<[/\w!]/g,ce.innerHTML)&&qr(/<[/\w!]/g,ce.textContent)||ce.nodeType===ll.progressingInstruction||tt&&ce.nodeType===ll.comment&&qr(/<[/\w]/g,ce.data))return Tn(ce),!0;if(!(_e.tagCheck instanceof Function&&_e.tagCheck(Pe))&&(!J[Pe]||de[Pe])){if(!de[Pe]&&Ot(Pe)&&(se.tagNameCheck instanceof RegExp&&qr(se.tagNameCheck,Pe)||se.tagNameCheck instanceof Function&&se.tagNameCheck(Pe)))return!1;if(yt&&!Qt[Pe]){const _t=I(ce)||ce.parentNode,Gt=x(ce)||ce.childNodes;if(Gt&&_t){const Ht=Gt.length;for(let xr=Ht-1;xr>=0;--xr){const pr=s(Gt[xr],!0);pr.__removalCount=(ce.__removalCount||0)+1,_t.insertBefore(pr,b(ce))}}}return Tn(ce),!0}return ce instanceof h&&!An(ce)||(Pe==="noscript"||Pe==="noembed"||Pe==="noframes")&&qr(/<\/no(script|embed|frames)/i,ce.innerHTML)?(Tn(ce),!0):(lt&&ce.nodeType===ll.text&&(ze=ce.textContent,_c([F,O,$],_t=>{ze=ol(ze,_t," ")}),ce.textContent!==ze&&(il(t.removed,{element:ce.cloneNode()}),ce.textContent=ze)),Zr(z.afterSanitizeElements,ce,null),!1)},Pr=function(ce,ze,Pe){if(Ln&&(ze==="id"||ze==="name")&&(Pe in e||Pe in Jo))return!1;if(!(Me&&!me[ze]&&qr(A,ze))&&!(Te&&qr(N,ze))&&!(_e.attributeCheck instanceof Function&&_e.attributeCheck(ze,ce))){if(!ne[ze]||me[ze]){if(!(Ot(ce)&&(se.tagNameCheck instanceof RegExp&&qr(se.tagNameCheck,ce)||se.tagNameCheck instanceof Function&&se.tagNameCheck(ce))&&(se.attributeNameCheck instanceof RegExp&&qr(se.attributeNameCheck,ze)||se.attributeNameCheck instanceof Function&&se.attributeNameCheck(ze,ce))||ze==="is"&&se.allowCustomizedBuiltInElements&&(se.tagNameCheck instanceof RegExp&&qr(se.tagNameCheck,Pe)||se.tagNameCheck instanceof Function&&se.tagNameCheck(Pe))))return!1}else if(!mn[ze]&&!qr(Q,ol(Pe,U,""))&&!((ze==="src"||ze==="xlink:href"||ze==="href")&&ce!=="script"&&sI(Pe,"data:")===0&&yr[ce])&&!(Ze&&!qr(B,ol(Pe,U,"")))&&Pe)return!1}return!0},Ot=function(ce){return ce!=="annotation-xml"&&Sd(ce,K)},Mo=function(ce){Zr(z.beforeSanitizeAttributes,ce,null);const{attributes:ze}=ce;if(!ze||vo(ce))return;const Pe={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ne,forceKeepAttr:void 0};let _t=ze.length;for(;_t--;){const Gt=ze[_t],{name:Ht,namespaceURI:xr,value:pr}=Gt,zn=$n(Ht),Cr=pr;let vn=Ht==="value"?Cr:aI(Cr);if(Pe.attrName=zn,Pe.attrValue=vn,Pe.keepAttr=!0,Pe.forceKeepAttr=void 0,Zr(z.uponSanitizeAttribute,ce,Pe),vn=Pe.attrValue,Xn&&(zn==="id"||zn==="name")&&(br(Ht,ce),vn=Mr+vn),tt&&qr(/((--!?|])>)|<\/(style|title|textarea)/i,vn)){br(Ht,ce);continue}if(zn==="attributename"&&Sd(vn,"href")){br(Ht,ce);continue}if(Pe.forceKeepAttr)continue;if(!Pe.keepAttr){br(Ht,ce);continue}if(!Ge&&qr(/\/>/i,vn)){br(Ht,ce);continue}lt&&_c([F,O,$],Fr=>{vn=ol(vn,Fr," ")});const io=$n(ce.nodeName);if(!Pr(io,zn,vn)){br(Ht,ce);continue}if(_&&typeof c=="object"&&typeof c.getAttributeType=="function"&&!xr)switch(c.getAttributeType(io,zn)){case"TrustedHTML":{vn=_.createHTML(vn);break}case"TrustedScriptURL":{vn=_.createScriptURL(vn);break}}if(vn!==Cr)try{xr?ce.setAttributeNS(xr,Ht,vn):ce.setAttribute(Ht,vn),vo(ce)?Tn(ce):Qy(t.removed)}catch{br(Ht,ce)}}Zr(z.afterSanitizeAttributes,ce,null)},wr=function ce(ze){let Pe=null;const _t=mo(ze);for(Zr(z.beforeSanitizeShadowDOM,ze,null);Pe=_t.nextNode();)Zr(z.uponSanitizeShadowNode,Pe,null),gi(Pe),Mo(Pe),Pe.content instanceof g&&ce(Pe.content);Zr(z.afterSanitizeShadowDOM,ze,null)};return t.sanitize=function(ce){let ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Pe=null,_t=null,Gt=null,Ht=null;if(Gr=!ce,Gr&&(ce="<!-->"),typeof ce!="string"&&!es(ce))if(typeof ce.toString=="function"){if(ce=ce.toString(),typeof ce!="string")throw sl("dirty is not a string, aborting")}else throw sl("toString is not a function");if(!t.isSupported)return ce;if(Yt||kn(ze),t.removed=[],typeof ce=="string"&&(je=!1),je){if(ce.nodeName){const zn=$n(ce.nodeName);if(!J[zn]||de[zn])throw sl("root node is forbidden and cannot be sanitized in-place")}}else if(ce instanceof w)Pe=fi("<!---->"),_t=Pe.ownerDocument.importNode(ce,!0),_t.nodeType===ll.element&&_t.nodeName==="BODY"||_t.nodeName==="HTML"?Pe=_t:Pe.appendChild(_t);else{if(!Wt&&!lt&&!ct&&ce.indexOf("<")===-1)return _&&un?_.createHTML(ce):ce;if(Pe=fi(ce),!Pe)return Wt?null:un?k:""}Pe&&Cn&&Tn(Pe.firstChild);const xr=mo(je?ce:Pe);for(;Gt=xr.nextNode();)gi(Gt),Mo(Gt),Gt.content instanceof g&&wr(Gt.content);if(je)return ce;if(Wt){if(vr)for(Ht=D.call(Pe.ownerDocument);Pe.firstChild;)Ht.appendChild(Pe.firstChild);else Ht=Pe;return(ne.shadowroot||ne.shadowrootmode)&&(Ht=E.call(r,Ht,!0)),Ht}let pr=ct?Pe.outerHTML:Pe.innerHTML;return ct&&J["!doctype"]&&Pe.ownerDocument&&Pe.ownerDocument.doctype&&Pe.ownerDocument.doctype.name&&qr(ib,Pe.ownerDocument.doctype.name)&&(pr="<!DOCTYPE "+Pe.ownerDocument.doctype.name+`>
1501
- `+pr),lt&&_c([F,O,$],zn=>{pr=ol(pr,zn," ")}),_&&un?_.createHTML(pr):pr},t.setConfig=function(){let ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};kn(ce),Yt=!0},t.clearConfig=function(){hi=null,Yt=!1},t.isValidAttribute=function(ce,ze,Pe){hi||kn({});const _t=$n(ce),Gt=$n(ze);return Pr(_t,Gt,Pe)},t.addHook=function(ce,ze){typeof ze=="function"&&il(z[ce],ze)},t.removeHook=function(ce,ze){if(ze!==void 0){const Pe=iI(z[ce],ze);return Pe===-1?void 0:oI(z[ce],Pe,1)[0]}return Qy(z[ce])},t.removeHooks=function(ce){z[ce]=[]},t.removeAllHooks=function(){z=sb()},t}var CI=ab();const kI={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"}},AI={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()}`},sanitizedText:function(){return CI.sanitize(this.params.text)}},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=""}}},SI=["innerHTML"],_I={key:2},$I={key:3,class:"validate mt-4"};function TI(n,t,e,r,f,g){const m=ht("v-spacer"),w=ht("v-toolbar"),h=ht("v-icon"),d=ht("v-text-field"),a=ht("v-card-text"),l=ht("v-btn"),u=ht("v-card-actions"),c=ht("v-card"),i=ht("v-dialog"),s=ht("v-app");return pn(),xi(s,null,{default:pt(()=>[Ve(i,{modelValue:n.show,"onUpdate:modelValue":t[1]||(t[1]=p=>n.show=p),persistent:"",width:"600",onKeydown:_l(g.cancel,["esc"])},{default:pt(()=>[Ve(c,null,{default:pt(()=>[Ve(w,{height:"24"},{default:pt(()=>[Ve(m),tr("span",null,ii(n.params.title),1),Ve(m)]),_:1}),Ve(a,{class:"mt-4 pa-3"},{default:pt(()=>[n.params.validateText?(pn(),xi(h,{key:0,class:"mr-2"},{default:pt(()=>[...t[2]||(t[2]=[Tr(" mdi-alert ",-1)])]),_:1})):Ni("",!0),n.params.html?(pn(),Hr("span",{key:1,innerHTML:g.sanitizedText},null,8,SI)):(pn(),Hr("span",_I,ii(g.sanitizedText),1)),n.params.validateText?(pn(),Hr("div",$I,[Tr(" Enter "+ii(n.params.validateText)+" to confirm! ",1),Ve(d,{modelValue:n.validationText,"onUpdate:modelValue":t[0]||(t[0]=p=>n.validationText=p),variant:"solo",density:"compact","single-line":"",rules:[n.rules.required,n.rules.match],"data-test":"confirm-dialog-validate"},null,8,["modelValue","rules"])])):Ni("",!0)]),_:1}),Ve(u,{class:"px-2"},{default:pt(()=>[Ve(m),n.params.cancelText?(pn(),xi(l,{key:0,variant:"outlined","data-test":g.dataTestCancel,onClick:g.cancel},{default:pt(()=>[Tr(ii(n.params.cancelText),1)]),_:1},8,["data-test","onClick"])):Ni("",!0),Ve(l,{variant:"flat",color:n.params.okClass,"data-test":g.dataTestOk,onClick:g.ok},{default:pt(()=>[Tr(ii(n.params.okText),1)]),_:1},8,["color","data-test","onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue","onKeydown"])]),_:1})}const MI=So(AI,[["render",TI],["__scopeId","data-v-016d2acf"]]);class II{constructor(){this.mounted=!1,this.$root=null}mount(){if(this.mounted)return;const t=window.Vue.createApp(MI);t.use(Ed);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:g,cancelText:m,html:w}){return this.mount(),new Promise((h,d)=>{this.$root.dialog({title:t,text:e,okText:r,okClass:f,validateText:g,cancelText:m,html:w},h,d)})}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:g="primary"}){return this.open({title:"Confirm",text:t,okText:e,okClass:g,validateText:r,cancelText:f,html:!1})}}const EI={install(n,t){const e=new II;n.provide("dialog",e),n.config.globalProperties.hasOwnProperty("$dialog")||(n.config.globalProperties.$dialog=e)}},RI={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
+ `+g):r.stack=g}catch{}}throw r}}_request(t,e){typeof t=="string"?(e=e||{},e.url=t):e=t||{},e=Rs(this.defaults,e);const{transitional:r,paramsSerializer:f,headers:g}=e;r!==void 0&&wc.assertOptions(r,{silentJSONParsing:po.transitional(po.boolean),forcedJSONParsing:po.transitional(po.boolean),clarifyTimeoutError:po.transitional(po.boolean)},!1),f!=null&&(Se.isFunction(f)?e.paramsSerializer={serialize:f}:wc.assertOptions(f,{encode:po.function,serialize:po.function},!0)),e.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?e.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:e.allowAbsoluteUrls=!0),wc.assertOptions(e,{baseUrl:po.spelling("baseURL"),withXsrfToken:po.spelling("withXSRFToken")},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase();let m=g&&Se.merge(g.common,g[e.method]);g&&Se.forEach(["delete","get","head","post","put","patch","common"],i=>{delete g[i]}),e.headers=li.concat(m,g);const w=[];let h=!0;this.interceptors.request.forEach(function(i){typeof i.runWhen=="function"&&i.runWhen(e)===!1||(h=h&&i.synchronous,w.unshift(i.fulfilled,i.rejected))});const d=[];this.interceptors.response.forEach(function(i){d.push(i.fulfilled,i.rejected)});let a,l=0,u;if(!h){const i=[by.bind(this),void 0];for(i.unshift(...w),i.push(...d),u=i.length,a=Promise.resolve(e);l<u;)a=a.then(i[l++],i[l++]);return a}u=w.length;let c=e;for(;l<u;){const i=w[l++],s=w[l++];try{c=i(c)}catch(p){s.call(this,p);break}}try{a=by.call(this,c)}catch(i){return Promise.reject(i)}for(l=0,u=d.length;l<u;)a=a.then(d[l++],d[l++]);return a}getUri(t){t=Rs(this.defaults,t);const e=ly(t.baseURL,t.url,t.allowAbsoluteUrls);return Jv(e,t.params,t.paramsSerializer)}};Se.forEach(["delete","get","head","options"],function(n){Ls.prototype[n]=function(t,e){return this.request(Rs(e||{},{method:n,url:t,data:(e||{}).data}))}}),Se.forEach(["post","put","patch"],function(n){function t(e){return function(r,f,g){return this.request(Rs(g||{},{method:n,headers:e?{"Content-Type":"multipart/form-data"}:{},url:r,data:f}))}}Ls.prototype[n]=t(),Ls.prototype[n+"Form"]=t(!0)});let N$=class ow{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 g=r._listeners.length;for(;g-- >0;)r._listeners[g](f);r._listeners=null}),this.promise.then=f=>{let g;const m=new Promise(w=>{r.subscribe(w),g=w}).then(f);return m.cancel=function(){r.unsubscribe(g)},m},t(function(f,g,m){r.reason||(r.reason=new va(f,g,m),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 ow(function(e){t=e}),cancel:t}}};function D$(n){return function(t){return n.apply(null,t)}}function P$(n){return Se.isObject(n)&&n.isAxiosError===!0}const ld={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(ld).forEach(([n,t])=>{ld[t]=n});function Cy(n){const t=new Ls(n),e=Fv(Ls.prototype.request,t);return Se.extend(e,Ls.prototype,t,{allOwnKeys:!0}),Se.extend(e,t,null,{allOwnKeys:!0}),e.create=function(r){return Cy(Rs(n,r))},e}const ir=er("w",Cy(tl));ir.Axios=Ls,ir.CanceledError=va,ir.CancelToken=N$,ir.isCancel=iy,ir.VERSION=wy,ir.toFormData=gc,ir.AxiosError=St,ir.Cancel=ir.CanceledError,ir.all=function(n){return Promise.all(n)},ir.spread=D$,ir.isAxiosError=P$,ir.mergeConfig=Rs,ir.AxiosHeaders=li,ir.formToJSON=n=>ny(Se.isHTMLForm(n)?new FormData(n):n),ir.getAdapter=yy.getAdapter,ir.HttpStatusCode=ld,ir.default=ir;const{Axios:kD,AxiosError:AD,CanceledError:SD,isCancel:_D,CancelToken:$D,VERSION:TD,all:MD,Cancel:ID,isAxiosError:ED,spread:RD,toFormData:LD,AxiosHeaders:OD,HttpStatusCode:ND,formToJSON:DD,getAdapter:PD,mergeConfig:FD}=ir;function ky(){return Object.assign({},Qs())}function F$(n,t,e){const r=$n(n,void 0);return r.setTime(r.getTime()+t*Ml),r}function W$(n,t){const e=()=>nr(void 0,NaN),r=j$(n);let f;if(r.date){const h=U$(r.date,2);f=V$(h.restDateString,h.year)}if(!f||isNaN(+f))return e();const g=+f;let m=0,w;if(r.time&&(m=q$(r.time),isNaN(m)))return e();if(r.timezone){if(w=K$(r.timezone),isNaN(w))return e()}else{const h=new Date(g+m),d=$n(0,void 0);return d.setFullYear(h.getUTCFullYear(),h.getUTCMonth(),h.getUTCDate()),d.setHours(h.getUTCHours(),h.getUTCMinutes(),h.getUTCSeconds(),h.getUTCMilliseconds()),d}return $n(g+m+w,void 0)}const xc={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},B$=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,z$=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,H$=/^([+-])(\d{2})(?::?(\d{2}))?$/;function j$(n){const t={},e=n.split(xc.dateTimeDelimiter);let r;if(e.length>2)return t;if(/:/.test(e[0])?r=e[0]:(t.date=e[0],r=e[1],xc.timeZoneDelimiter.test(t.date)&&(t.date=n.split(xc.timeZoneDelimiter)[0],r=n.substr(t.date.length,n.length))),r){const f=xc.timezone.exec(r);f?(t.time=r.replace(f[1],""),t.timezone=f[1]):t.time=r}return t}function U$(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,g=r[2]?parseInt(r[2]):null;return{year:g===null?f:g*100,restDateString:n.slice((r[1]||r[2]).length)}}function V$(n,t){if(t===null)return new Date(NaN);const e=n.match(B$);if(!e)return new Date(NaN);const r=!!e[4],f=rl(e[1]),g=rl(e[2])-1,m=rl(e[3]),w=rl(e[4]),h=rl(e[5])-1;if(r)return Q$(t,w,h)?G$(t,w,h):new Date(NaN);{const d=new Date(0);return!X$(t,g,m)||!Z$(t,f)?new Date(NaN):(d.setUTCFullYear(t,g,Math.max(f,m)),d)}}function rl(n){return n?parseInt(n):1}function q$(n){const t=n.match(z$);if(!t)return NaN;const e=cd(t[1]),r=cd(t[2]),f=cd(t[3]);return J$(e,r,f)?e*vu+r*Ml+f*1e3:NaN}function cd(n){return n&&parseFloat(n.replace(",","."))||0}function K$(n){if(n==="Z")return 0;const t=n.match(H$);if(!t)return 0;const e=t[1]==="+"?-1:1,r=parseInt(t[2]),f=t[3]&&parseInt(t[3])||0;return eT(r,f)?e*(r*vu+f*Ml):NaN}function G$(n,t,e){const r=new Date(0);r.setUTCFullYear(n,0,4);const f=r.getUTCDay()||7,g=(t-1)*7+e+1-f;return r.setUTCDate(r.getUTCDate()+g),r}const Y$=[31,null,31,30,31,30,31,31,30,31,30,31];function Ay(n){return n%400===0||n%4===0&&n%100!==0}function X$(n,t,e){return t>=0&&t<=11&&e>=1&&e<=(Y$[t]||(Ay(n)?29:28))}function Z$(n,t){return t>=1&&t<=(Ay(n)?366:365)}function Q$(n,t,e){return t>=1&&t<=53&&e>=0&&e<=6}function J$(n,t,e){return n===24?t===0&&e===0:e>=0&&e<60&&t>=0&&t<60&&n>=0&&n<25}function eT(n,t){return t>=0&&t<=59}function tT(n,t,e){return F$(n,-t)}function Sy(n,t,e){const r=ky(),f=iT(n,e.timeZone,e.locale??r.locale);return"formatToParts"in f?nT(f,t):rT(f,t)}function nT(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 rT(n,t){const e=n.format(t).replace(/\u200E/g,""),r=/ [\w-+ ]+$/.exec(e);return r?r[0].substr(1):""}function iT(n,t,e){return new Intl.DateTimeFormat(e?[e.code,"en-US"]:void 0,{timeZone:t,timeZoneName:n})}function oT(n,t){const e=uT(t);return"formatToParts"in e?aT(e,n):lT(e,n)}const sT={year:0,month:1,day:2,hour:3,minute:4,second:5};function aT(n,t){try{const e=n.formatToParts(t),r=[];for(let f=0;f<e.length;f++){const g=sT[e[f].type];g!==void 0&&(r[g]=parseInt(e[f].value,10))}return r}catch(e){if(e instanceof RangeError)return[NaN];throw e}}function lT(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 ud={},_y=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")),cT=_y==="06/25/2014, 00:00:00"||_y==="‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00";function uT(n){return ud[n]||(ud[n]=cT?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"})),ud[n]}function $y(n,t,e,r,f,g,m){const w=new Date(0);return w.setUTCFullYear(n,t,e),w.setUTCHours(r,f,g,m),w}const Ty=36e5,hT=6e4,hd={timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function dd(n,t,e){if(!n)return 0;let r=hd.timezoneZ.exec(n);if(r)return 0;let f,g;if(r=hd.timezoneHH.exec(n),r)return f=parseInt(r[1],10),My(f)?-(f*Ty):NaN;if(r=hd.timezoneHHMM.exec(n),r){f=parseInt(r[2],10);const m=parseInt(r[3],10);return My(f,m)?(g=Math.abs(f)*Ty+m*hT,r[1]==="+"?-g:g):NaN}if(fT(n)){t=new Date(t||Date.now());const m=e?t:dT(t),w=pd(m,n);return-(e?w:pT(t,w,n))}return NaN}function dT(n){return $y(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds())}function pd(n,t){const e=oT(n,t),r=$y(e[0],e[1]-1,e[2],e[3]%24,e[4],e[5],0).getTime();let f=n.getTime();const g=f%1e3;return f-=g>=0?g:1e3+g,r-f}function pT(n,t,e){let r=n.getTime()-t;const f=pd(new Date(r),e);if(t===f)return t;r-=f-t;const g=pd(new Date(r),e);return f===g?f:Math.max(f,g)}function My(n,t){return-23<=n&&n<=23&&(t==null||0<=t&&t<=59)}const Iy={};function fT(n){if(Iy[n])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:n}),Iy[n]=!0,!0}catch{return!1}}const gT=60*1e3,mT={X:function(n,t,e){const r=fd(e.timeZone,n);if(r===0)return"Z";switch(t){case"X":return Ey(r);case"XXXX":case"XX":return ya(r);case"XXXXX":case"XXX":default:return ya(r,":")}},x:function(n,t,e){const r=fd(e.timeZone,n);switch(t){case"x":return Ey(r);case"xxxx":case"xx":return ya(r);case"xxxxx":case"xxx":default:return ya(r,":")}},O:function(n,t,e){const r=fd(e.timeZone,n);switch(t){case"O":case"OO":case"OOO":return"GMT"+vT(r,":");case"OOOO":default:return"GMT"+ya(r,":")}},z:function(n,t,e){switch(t){case"z":case"zz":case"zzz":return Sy("short",n,e);case"zzzz":default:return Sy("long",n,e)}}};function fd(n,t){const e=n?dd(n,t,!0)/gT:(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 ya(n,t=""){const e=n>0?"-":"+",r=Math.abs(n),f=Cc(Math.floor(r/60),2),g=Cc(Math.floor(r%60),2);return e+f+t+g}function Ey(n,t){return n%60===0?(n>0?"-":"+")+Cc(Math.abs(n)/60,2):ya(n,t)}function vT(n,t=""){const e=n>0?"-":"+",r=Math.abs(n),f=Math.floor(r/60),g=r%60;return g===0?e+String(f):e+String(f)+t+Cc(g,2)}function Ry(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 yT=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,gd=36e5,Ly=6e4,bT=2,Ur={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:yT};function Oy(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?bT: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:g}=xT(r.date,e),m=CT(g,f);if(m===null||isNaN(m.getTime()))return new Date(NaN);if(m){const w=m.getTime();let h=0,d;if(r.time&&(h=kT(r.time),h===null||isNaN(h)))return new Date(NaN);if(r.timeZone||t.timeZone){if(d=dd(r.timeZone||t.timeZone,new Date(w+h)),isNaN(d))return new Date(NaN)}else d=Ry(new Date(w+h)),d=Ry(new Date(w+h+d));return new Date(w+h+d)}else return new Date(NaN)}function wT(n){const t={};let e=Ur.dateTimePattern.exec(n),r;if(e?(t.date=e[1],r=e[3]):(e=Ur.datePattern.exec(n),e?(t.date=e[1],r=e[2]):(t.date=null,r=n)),r){const f=Ur.timeZone.exec(r);f?(t.time=r.replace(f[1],""),t.timeZone=f[1].trim()):t.time=r}return t}function xT(n,t){if(n){const e=Ur.YYY[t],r=Ur.YYYYY[t];let f=Ur.YYYY.exec(n)||r.exec(n);if(f){const g=f[1];return{year:parseInt(g,10),restDateString:n.slice(g.length)}}if(f=Ur.YY.exec(n)||e.exec(n),f){const g=f[1];return{year:parseInt(g,10)*100,restDateString:n.slice(g.length)}}}return{year:null}}function CT(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 g=Ur.MM.exec(n);if(g)return e=new Date(0),r=parseInt(g[1],10)-1,Py(t,r)?(e.setUTCFullYear(t,r),e):new Date(NaN);if(g=Ur.DDD.exec(n),g){e=new Date(0);const m=parseInt(g[1],10);return _T(t,m)?(e.setUTCFullYear(t,0,m),e):new Date(NaN)}if(g=Ur.MMDD.exec(n),g){e=new Date(0),r=parseInt(g[1],10)-1;const m=parseInt(g[2],10);return Py(t,r,m)?(e.setUTCFullYear(t,r,m),e):new Date(NaN)}if(g=Ur.Www.exec(n),g)return f=parseInt(g[1],10)-1,Fy(f)?Ny(t,f):new Date(NaN);if(g=Ur.WwwD.exec(n),g){f=parseInt(g[1],10)-1;const m=parseInt(g[2],10)-1;return Fy(f,m)?Ny(t,f,m):new Date(NaN)}return null}function kT(n){let t,e,r=Ur.HH.exec(n);if(r)return t=parseFloat(r[1].replace(",",".")),md(t)?t%24*gd:NaN;if(r=Ur.HHMM.exec(n),r)return t=parseInt(r[1],10),e=parseFloat(r[2].replace(",",".")),md(t,e)?t%24*gd+e*Ly:NaN;if(r=Ur.HHMMSS.exec(n),r){t=parseInt(r[1],10),e=parseInt(r[2],10);const f=parseFloat(r[3].replace(",","."));return md(t,e,f)?t%24*gd+e*Ly+f*1e3:NaN}return null}function Ny(n,t,e){t=t||0,e=e||0;const r=new Date(0);r.setUTCFullYear(n,0,4);const f=r.getUTCDay()||7,g=t*7+e+1-f;return r.setUTCDate(r.getUTCDate()+g),r}const AT=[31,28,31,30,31,30,31,31,30,31,30,31],ST=[31,29,31,30,31,30,31,31,30,31,30,31];function Dy(n){return n%400===0||n%4===0&&n%100!==0}function Py(n,t,e){if(t<0||t>11)return!1;if(e!=null){if(e<1)return!1;const r=Dy(n);if(r&&e>ST[t]||!r&&e>AT[t])return!1}return!0}function _T(n,t){if(t<1)return!1;const e=Dy(n);return!(e&&t>366||!e&&t>365)}function Fy(n,t){return!(n<0||n>52||t!=null&&(t<0||t>6))}function md(n,t,e){return!(n<0||n>=25||t!=null&&(t<0||t>=60)||e!=null&&(e<0||e>=60))}const $T=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function TT(n,t,e={}){t=String(t);const r=t.match($T);if(r){const f=Oy(e.originalDate||n,e);t=r.reduce(function(g,m){if(m[0]==="'")return g;const w=g.indexOf(m),h=g[w-1]==="'",d=g.replace(m,"'"+mT[m[0]](f,m,e)+"'");return h?d.substring(0,w-1)+d.substring(w+1):d},t)}return Yo(n,t,e)}function MT(n,t,e){n=Oy(n,e);const r=dd(t,n,!0),f=new Date(n.getTime()-r),g=new Date(0);return g.setFullYear(f.getUTCFullYear(),f.getUTCMonth(),f.getUTCDate()),g.setHours(f.getUTCHours(),f.getUTCMinutes(),f.getUTCSeconds(),f.getUTCMilliseconds()),g}function kc(n,t,e,r){return r={...r,timeZone:t,originalDate:n},TT(MT(n,t,{timeZone:r.timeZone}),e,r)}const Ac="yyyy-MM-dd",Wy="HH:mm:ss.SSS",By="HH:mm:ss",Sc=`${Ac} ${Wy}`,zy=`${Ac} ${By}`,WD=er("R",{methods:{parseDateTime(n,t){return n.includes(" ")&&(n=n.replace(" ","T")),t&&t==="UTC"&&(n+="Z"),Date.parse(n)},formatUtcToLocal(n,t){return Yo(!t||t==="local"?tT(n,n.getTimezoneOffset()):n,Sc)},formatDateTime(n,t){return!t||t==="local"?Yo(n,Sc):kc(n,t,Sc)},formatDateTimeHMS(n,t){return!t||t==="local"?Yo(n,zy):kc(n,t,zy)},formatDate:function(n,t){return!t||t==="local"?Yo(n,Ac):kc(n,this.timeZone,Ac)},formatTime:function(n,t,e=Wy){return!t||t==="local"?Yo(n,e):kc(n,this.timeZone,e)},formatTimeHMS:function(n,t){return this.formatTime(n,t,By)},formatTimestamp(n,t){return this.formatDateTime(W$(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 IT=Object.defineProperty,ET=(n,t,e)=>t in n?IT(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,et=(n,t,e)=>ET(n,typeof t!="symbol"?t+"":t,e);function vd(n,t,e){const r=$n(n,e==null?void 0:e.in);return isNaN(t)?nr((e==null?void 0:e.in)||n,NaN):(t&&r.setDate(r.getDate()+t),r)}function RT(n,t){const e=$n(n,void 0).getDay();return e===0?7:e}function LT(n,t){const e=OT(t)?new t(0):nr(t,0);return e.setFullYear(n.getFullYear(),n.getMonth(),n.getDate()),e.setHours(n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()),e}function OT(n){var t;return typeof n=="function"&&((t=n.prototype)==null?void 0:t.constructor)===n}const NT=10;let Hy=class{constructor(){et(this,"subPriority",0)}validate(t,e){return!0}},DT=class extends Hy{constructor(t,e,r,f,g){super(),this.value=t,this.validateValue=e,this.setValue=r,this.priority=f,g&&(this.subPriority=g)}validate(t,e){return this.validateValue(t,this.value,e)}set(t,e,r){return this.setValue(t,e,this.value,r)}};class PT extends Hy{constructor(t,e){super(),et(this,"priority",NT),et(this,"subPriority",-1),this.context=t||(r=>nr(e,r))}set(t,e){return e.timestampIsSet?t:nr(t,LT(t,this.context))}}class tn{run(t,e,r,f){const g=this.parse(t,e,r,f);return g?{setter:new DT(g.value,this.validate,this.set,this.priority,this.subPriority),rest:g.rest}:null}validate(t,e,r){return!0}}class FT extends tn{constructor(){super(...arguments),et(this,"priority",140),et(this,"incompatibleTokens",["R","u","t","T"])}parse(t,e,r){switch(e){case"G":case"GG":case"GGG":return r.era(t,{width:"abbreviated"})||r.era(t,{width:"narrow"});case"GGGGG":return r.era(t,{width:"narrow"});case"GGGG":default:return r.era(t,{width:"wide"})||r.era(t,{width:"abbreviated"})||r.era(t,{width:"narrow"})}}set(t,e,r){return e.era=r,t.setFullYear(r,0,1),t.setHours(0,0,0,0),t}}const Gn={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}/},fo={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 Yn(n,t){return n&&{value:t(n.value),rest:n.rest}}function Ln(n,t){const e=t.match(n);return e?{value:parseInt(e[0],10),rest:t.slice(e[0].length)}:null}function go(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,g=e[3]?parseInt(e[3],10):0,m=e[5]?parseInt(e[5],10):0;return{value:r*(f*vu+g*Ml+m*kw),rest:t.slice(e[0].length)}}function jy(n){return Ln(Gn.anyDigitsSigned,n)}function Fn(n,t){switch(n){case 1:return Ln(Gn.singleDigit,t);case 2:return Ln(Gn.twoDigits,t);case 3:return Ln(Gn.threeDigits,t);case 4:return Ln(Gn.fourDigits,t);default:return Ln(new RegExp("^\\d{1,"+n+"}"),t)}}function Uy(n,t){switch(n){case 1:return Ln(Gn.singleDigitSigned,t);case 2:return Ln(Gn.twoDigitsSigned,t);case 3:return Ln(Gn.threeDigitsSigned,t);case 4:return Ln(Gn.fourDigitsSigned,t);default:return Ln(new RegExp("^-?\\d{1,"+n+"}"),t)}}function yd(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 Vy(n,t){const e=t>0,r=e?t:1-t;let f;if(r<=50)f=n||100;else{const g=r+50,m=Math.trunc(g/100)*100,w=n>=g%100;f=n+m-(w?100:0)}return e?f:1-f}function qy(n){return n%400===0||n%4===0&&n%100!==0}let WT=class extends tn{constructor(){super(...arguments),et(this,"priority",130),et(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(t,e,r){const f=g=>({year:g,isTwoDigitYear:e==="yy"});switch(e){case"y":return Yn(Fn(4,t),f);case"yo":return Yn(r.ordinalNumber(t,{unit:"year"}),f);default:return Yn(Fn(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 m=Vy(r.year,f);return t.setFullYear(m,0,1),t.setHours(0,0,0,0),t}const g=!("era"in e)||e.era===1?r.year:1-r.year;return t.setFullYear(g,0,1),t.setHours(0,0,0,0),t}};class BT extends tn{constructor(){super(...arguments),et(this,"priority",130),et(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(t,e,r){const f=g=>({year:g,isTwoDigitYear:e==="YY"});switch(e){case"Y":return Yn(Fn(4,t),f);case"Yo":return Yn(r.ordinalNumber(t,{unit:"year"}),f);default:return Yn(Fn(e.length,t),f)}}validate(t,e){return e.isTwoDigitYear||e.year>0}set(t,e,r,f){const g=bu(t,f);if(r.isTwoDigitYear){const w=Vy(r.year,g);return t.setFullYear(w,0,f.firstWeekContainsDate),t.setHours(0,0,0,0),Ko(t,f)}const m=!("era"in e)||e.era===1?r.year:1-r.year;return t.setFullYear(m,0,f.firstWeekContainsDate),t.setHours(0,0,0,0),Ko(t,f)}}class zT extends tn{constructor(){super(...arguments),et(this,"priority",130),et(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(t,e){return Uy(e==="R"?4:e.length,t)}set(t,e,r){const f=nr(t,0);return f.setFullYear(r,0,4),f.setHours(0,0,0,0),Js(f)}}let HT=class extends tn{constructor(){super(...arguments),et(this,"priority",130),et(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(t,e){return Uy(e==="u"?4:e.length,t)}set(t,e,r){return t.setFullYear(r,0,1),t.setHours(0,0,0,0),t}};class jT extends tn{constructor(){super(...arguments),et(this,"priority",120),et(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(t,e,r){switch(e){case"Q":case"QQ":return Fn(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 UT extends tn{constructor(){super(...arguments),et(this,"priority",120),et(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(t,e,r){switch(e){case"q":case"qq":return Fn(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}}let VT=class extends tn{constructor(){super(...arguments),et(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),et(this,"priority",110)}parse(t,e,r){const f=g=>g-1;switch(e){case"M":return Yn(Ln(Gn.month,t),f);case"MM":return Yn(Fn(2,t),f);case"Mo":return Yn(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}},qT=class extends tn{constructor(){super(...arguments),et(this,"priority",110),et(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(t,e,r){const f=g=>g-1;switch(e){case"L":return Yn(Ln(Gn.month,t),f);case"LL":return Yn(Fn(2,t),f);case"Lo":return Yn(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 KT(n,t,e){const r=$n(n,e==null?void 0:e.in),f=Yp(r,e)-t;return r.setDate(r.getDate()-f*7),$n(r,e==null?void 0:e.in)}let GT=class extends tn{constructor(){super(...arguments),et(this,"priority",100),et(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(t,e,r){switch(e){case"w":return Ln(Gn.week,t);case"wo":return r.ordinalNumber(t,{unit:"week"});default:return Fn(e.length,t)}}validate(t,e){return e>=1&&e<=53}set(t,e,r,f){return Ko(KT(t,r,f),f)}};function YT(n,t,e){const r=$n(n,void 0),f=Gp(r)-t;return r.setDate(r.getDate()-f*7),r}class XT extends tn{constructor(){super(...arguments),et(this,"priority",100),et(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(t,e,r){switch(e){case"I":return Ln(Gn.week,t);case"Io":return r.ordinalNumber(t,{unit:"week"});default:return Fn(e.length,t)}}validate(t,e){return e>=1&&e<=53}set(t,e,r){return Js(YT(t,r))}}const ZT=[31,28,31,30,31,30,31,31,30,31,30,31],QT=[31,29,31,30,31,30,31,31,30,31,30,31];class JT extends tn{constructor(){super(...arguments),et(this,"priority",90),et(this,"subPriority",1),et(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(t,e,r){switch(e){case"d":return Ln(Gn.date,t);case"do":return r.ordinalNumber(t,{unit:"date"});default:return Fn(e.length,t)}}validate(t,e){const r=t.getFullYear(),f=qy(r),g=t.getMonth();return f?e>=1&&e<=QT[g]:e>=1&&e<=ZT[g]}set(t,e,r){return t.setDate(r),t.setHours(0,0,0,0),t}}let eM=class extends tn{constructor(){super(...arguments),et(this,"priority",90),et(this,"subpriority",1),et(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(t,e,r){switch(e){case"D":case"DD":return Ln(Gn.dayOfYear,t);case"Do":return r.ordinalNumber(t,{unit:"date"});default:return Fn(e.length,t)}}validate(t,e){const r=t.getFullYear();return qy(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 bd(n,t,e){var r,f,g,m;const w=Qs(),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)??w.weekStartsOn??((m=(g=w.locale)==null?void 0:g.options)==null?void 0:m.weekStartsOn)??0,d=$n(n,e==null?void 0:e.in),a=d.getDay(),l=(t%7+7)%7,u=7-h,c=t<0||t>6?t-(a+u)%7:(l+u)%7-(a+u)%7;return vd(d,c,e)}class tM extends tn{constructor(){super(...arguments),et(this,"priority",90),et(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(t,e,r){switch(e){case"E":case"EE":case"EEE":return r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return r.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});case"EEEE":default:return r.day(t,{width:"wide",context:"formatting"})||r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=0&&e<=6}set(t,e,r,f){return t=bd(t,r,f),t.setHours(0,0,0,0),t}}class nM extends tn{constructor(){super(...arguments),et(this,"priority",90),et(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(t,e,r,f){const g=m=>{const w=Math.floor((m-1)/7)*7;return(m+f.weekStartsOn+6)%7+w};switch(e){case"e":case"ee":return Yn(Fn(e.length,t),g);case"eo":return Yn(r.ordinalNumber(t,{unit:"day"}),g);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=bd(t,r,f),t.setHours(0,0,0,0),t}}class rM extends tn{constructor(){super(...arguments),et(this,"priority",90),et(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(t,e,r,f){const g=m=>{const w=Math.floor((m-1)/7)*7;return(m+f.weekStartsOn+6)%7+w};switch(e){case"c":case"cc":return Yn(Fn(e.length,t),g);case"co":return Yn(r.ordinalNumber(t,{unit:"day"}),g);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=bd(t,r,f),t.setHours(0,0,0,0),t}}function iM(n,t,e){const r=$n(n,void 0),f=RT(r),g=t-f;return vd(r,g,e)}let oM=class extends tn{constructor(){super(...arguments),et(this,"priority",90),et(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(t,e,r){const f=g=>g===0?7:g;switch(e){case"i":case"ii":return Fn(e.length,t);case"io":return r.ordinalNumber(t,{unit:"day"});case"iii":return Yn(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 Yn(r.day(t,{width:"narrow",context:"formatting"}),f);case"iiiiii":return Yn(r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"}),f);case"iiii":default:return Yn(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=iM(t,r),t.setHours(0,0,0,0),t}};class sM extends tn{constructor(){super(...arguments),et(this,"priority",80),et(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(t,e,r){switch(e){case"a":case"aa":case"aaa":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return r.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,r){return t.setHours(yd(r),0,0,0),t}}class aM extends tn{constructor(){super(...arguments),et(this,"priority",80),et(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(t,e,r){switch(e){case"b":case"bb":case"bbb":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return r.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,r){return t.setHours(yd(r),0,0,0),t}}let lM=class extends tn{constructor(){super(...arguments),et(this,"priority",80),et(this,"incompatibleTokens",["a","b","t","T"])}parse(t,e,r){switch(e){case"B":case"BB":case"BBB":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return r.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,r){return t.setHours(yd(r),0,0,0),t}};class cM extends tn{constructor(){super(...arguments),et(this,"priority",70),et(this,"incompatibleTokens",["H","K","k","t","T"])}parse(t,e,r){switch(e){case"h":return Ln(Gn.hour12h,t);case"ho":return r.ordinalNumber(t,{unit:"hour"});default:return Fn(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 uM extends tn{constructor(){super(...arguments),et(this,"priority",70),et(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(t,e,r){switch(e){case"H":return Ln(Gn.hour23h,t);case"Ho":return r.ordinalNumber(t,{unit:"hour"});default:return Fn(e.length,t)}}validate(t,e){return e>=0&&e<=23}set(t,e,r){return t.setHours(r,0,0,0),t}}class hM extends tn{constructor(){super(...arguments),et(this,"priority",70),et(this,"incompatibleTokens",["h","H","k","t","T"])}parse(t,e,r){switch(e){case"K":return Ln(Gn.hour11h,t);case"Ko":return r.ordinalNumber(t,{unit:"hour"});default:return Fn(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 dM extends tn{constructor(){super(...arguments),et(this,"priority",70),et(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(t,e,r){switch(e){case"k":return Ln(Gn.hour24h,t);case"ko":return r.ordinalNumber(t,{unit:"hour"});default:return Fn(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 pM extends tn{constructor(){super(...arguments),et(this,"priority",60),et(this,"incompatibleTokens",["t","T"])}parse(t,e,r){switch(e){case"m":return Ln(Gn.minute,t);case"mo":return r.ordinalNumber(t,{unit:"minute"});default:return Fn(e.length,t)}}validate(t,e){return e>=0&&e<=59}set(t,e,r){return t.setMinutes(r,0,0),t}}class fM extends tn{constructor(){super(...arguments),et(this,"priority",50),et(this,"incompatibleTokens",["t","T"])}parse(t,e,r){switch(e){case"s":return Ln(Gn.second,t);case"so":return r.ordinalNumber(t,{unit:"second"});default:return Fn(e.length,t)}}validate(t,e){return e>=0&&e<=59}set(t,e,r){return t.setSeconds(r,0),t}}class gM extends tn{constructor(){super(...arguments),et(this,"priority",30),et(this,"incompatibleTokens",["t","T"])}parse(t,e){const r=f=>Math.trunc(f*Math.pow(10,-e.length+3));return Yn(Fn(e.length,t),r)}set(t,e,r){return t.setMilliseconds(r),t}}class mM extends tn{constructor(){super(...arguments),et(this,"priority",10),et(this,"incompatibleTokens",["t","T","x"])}parse(t,e){switch(e){case"X":return go(fo.basicOptionalMinutes,t);case"XX":return go(fo.basic,t);case"XXXX":return go(fo.basicOptionalSeconds,t);case"XXXXX":return go(fo.extendedOptionalSeconds,t);case"XXX":default:return go(fo.extended,t)}}set(t,e,r){return e.timestampIsSet?t:nr(t,t.getTime()-Il(t)-r)}}class vM extends tn{constructor(){super(...arguments),et(this,"priority",10),et(this,"incompatibleTokens",["t","T","X"])}parse(t,e){switch(e){case"x":return go(fo.basicOptionalMinutes,t);case"xx":return go(fo.basic,t);case"xxxx":return go(fo.basicOptionalSeconds,t);case"xxxxx":return go(fo.extendedOptionalSeconds,t);case"xxx":default:return go(fo.extended,t)}}set(t,e,r){return e.timestampIsSet?t:nr(t,t.getTime()-Il(t)-r)}}class yM extends tn{constructor(){super(...arguments),et(this,"priority",40),et(this,"incompatibleTokens","*")}parse(t){return jy(t)}set(t,e,r){return[nr(t,r*1e3),{timestampIsSet:!0}]}}class bM extends tn{constructor(){super(...arguments),et(this,"priority",20),et(this,"incompatibleTokens","*")}parse(t){return jy(t)}set(t,e,r){return[nr(t,r),{timestampIsSet:!0}]}}const wM={G:new FT,y:new WT,Y:new BT,R:new zT,u:new HT,Q:new jT,q:new UT,M:new VT,L:new qT,w:new GT,I:new XT,d:new JT,D:new eM,E:new tM,e:new nM,c:new rM,i:new oM,a:new sM,b:new aM,B:new lM,h:new cM,H:new uM,K:new hM,k:new dM,m:new pM,s:new fM,S:new gM,X:new mM,x:new vM,t:new yM,T:new bM},xM=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,CM=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,kM=/^'([^]*?)'?$/,AM=/''/g,SM=/\S/,_M=/[a-zA-Z]/;function $M(n,t,e,r){var f,g,m,w;const h=()=>nr(e,NaN),d=ky(),a=d.locale??Kp,l=d.firstWeekContainsDate??((g=(f=d.locale)==null?void 0:f.options)==null?void 0:g.firstWeekContainsDate)??1,u=d.weekStartsOn??((w=(m=d.locale)==null?void 0:m.options)==null?void 0:w.weekStartsOn)??0;if(!t)return n?h():$n(e,void 0);const c={firstWeekContainsDate:l,weekStartsOn:u,locale:a},i=[new PT(void 0,e)],s=t.match(CM).map(_=>{const k=_[0];if(k in wu){const C=wu[k];return C(_,a.formatLong)}return _}).join("").match(xM),p=[];for(let _ of s){nf(_)&&xu(_,t,n),tf(_)&&xu(_,t,n);const k=_[0],C=wM[k];if(C){const{incompatibleTokens:L}=C;if(Array.isArray(L)){const R=p.find(E=>L.includes(E.token)||E.token===k);if(R)throw new RangeError(`The format string mustn't contain \`${R.fullToken}\` and \`${_}\` at the same time`)}else if(C.incompatibleTokens==="*"&&p.length>0)throw new RangeError(`The format string mustn't contain \`${_}\` and any other token at the same time`);p.push({token:k,fullToken:_});const D=C.run(n,_,a.match,c);if(!D)return h();i.push(D.setter),n=D.rest}else{if(k.match(_M))throw new RangeError("Format string contains an unescaped latin alphabet character `"+k+"`");if(_==="''"?_="'":k==="'"&&(_=TM(_)),n.indexOf(_)===0)n=n.slice(_.length);else return h()}}if(n.length>0&&SM.test(n))return h();const b=i.map(_=>_.priority).sort((_,k)=>k-_).filter((_,k,C)=>C.indexOf(_)===k).map(_=>i.filter(k=>k.priority===_).sort((k,C)=>C.subPriority-k.subPriority)).map(_=>_[0]);let x=$n(e,void 0);if(isNaN(+x))return h();const I={};for(const _ of b){if(!_.validate(x,c))return h();const k=_.set(x,I,c);Array.isArray(k)?(x=k[0],Object.assign(I,k[1])):x=k}return x}function TM(n){return n.match(kM)[1].replace(AM,"'")}const MM="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=",IM={props:{status:{type:String,required:!0},large:{type:Boolean},small:{type:Boolean},scale:{type:Number}},computed:{icons:function(){return MM},scaleFactor:function(){return this.scale?this.scale:this.large?1:this.small?.3:.5},iconStyle:function(){const n=PM.indexOf(Ky[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 EM(n,t,e,r,f,g){return pn(),Hr("div",{style:Ra(g.iconStyle)},null,4)}const RM=_o(IM,[["render",EM]]),LM={props:{icon:{type:String},size:{type:String,default:"small"},color:{type:String,default:"white"}},computed:{colorStyle:function(){return{"--iconColor":this.color}}}};function OM(n,t,e,r,f,g){const m=ht("rux-icon");return pn(),xi(m,{size:e.size,icon:e.icon,style:Ra(g.colorStyle)},null,8,["size","icon","style"])}const NM=_o(LM,[["render",OM],["__scopeId","data-v-9af48e85"]]),Ky={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"},wd={fatal:"#ff69B4",critical:"#ff3838",serious:"#ffb302",caution:"#fce83a",normal:"#56f000",standby:"#2dccff",off:"#a4abb6"},DM=function(n){const t="#000000",e="#ffffff",r=wd[Ky[n]];if(r){const f=+`0x${r.slice(1,3)}`,g=+`0x${r.slice(3,5)}`,m=+`0x${r.slice(5,7)}`;if((f*299+g*587+m*114)/1e3>128)return t}return e},PM=Object.keys(wd),FM={astro:{component:n=>Xs(NM,{...n})},"astro-status":{component:n=>Xs(RM,{...n,status:n.icon})}},WM={extras:{component:n=>Xs(Cw,{...n})}},BD=er("p",{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 As().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 As().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})}}}),BM={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 As().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 As().delete_config(this.configKey,n.config)}).catch(t=>{t!==!0&&this.$emit("warning",`Failed to delete config ${n.config} Error: ${t}`)})}}},zM={class:"mt-4 pa-3"},HM=["textContent"];function jM(n,t,e,r,f,g){const m=ht("v-spacer"),w=ht("v-toolbar"),h=ht("v-text-field"),d=ht("v-row"),a=ht("v-btn"),l=ht("v-data-table"),u=ht("v-card-text"),c=ht("v-card-actions"),i=ht("v-card"),s=ht("v-dialog");return pn(),xi(s,{modelValue:g.show,"onUpdate:modelValue":t[4]||(t[4]=p=>g.show=p),persistent:"",width:"600",onKeydown:_l(g.cancel,["esc"])},{default:pt(()=>[Ve(i,null,{default:pt(()=>[tr("form",{onSubmit:t[3]||(t[3]=Zs((...p)=>g.success&&g.success(...p),["prevent"]))},[Ve(w,{height:"24"},{default:pt(()=>[Ve(m),t[5]||(t[5]=tr("span",null,"Open Configuration",-1)),Ve(m)]),_:1}),Ve(u,null,{default:pt(()=>[tr("div",zM,[Ve(d,{dense:""},{default:pt(()=>[Ve(h,{modelValue:f.search,"onUpdate:modelValue":t[0]||(t[0]=p=>f.search=p),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}),Ve(l,{modelValue:f.selectedRows,"onUpdate:modelValue":t[1]||(t[1]=p=>f.selectedRows=p),"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]=(p,b)=>g.selectRow(b))},{"item.actions":pt(({item:p})=>[Ve(a,{class:"mt-1",icon:"mdi-delete",variant:"text","data-test":"item-delete",onClick:b=>g.deleteConfig(p)},null,8,["onClick"])]),_:1},8,["modelValue","search","headers","items"]),Ve(d,{dense:""},{default:pt(()=>[$l(tr("span",{class:"ma-2 text-red",textContent:ii(g.error)},null,8,HM),[[Tl,g.error]])]),_:1})])]),_:1}),Ve(c,{class:"px-2"},{default:pt(()=>[Ve(m),Ve(a,{variant:"outlined","data-test":"open-config-cancel-btn",onClick:g.cancel},{default:pt(()=>[...t[6]||(t[6]=[Tr(" Cancel ",-1)])]),_:1},8,["onClick"]),Ve(a,{variant:"flat",type:"submit","data-test":"open-config-submit-btn",disabled:!!g.error,onClick:Zs(g.success,["prevent"])},{default:pt(()=>[...t[7]||(t[7]=[Tr(" Ok ",-1)])]),_:1},8,["disabled","onClick"])]),_:1})],32)]),_:1})]),_:1},8,["modelValue","onKeydown"])}const zD=er("g",_o(BM,[["render",jM]])),UM={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 As().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 As().delete_config(this.configKey,n.config)}).catch(t=>{t!==!0&&this.$emit("warning",`Failed to delete config ${n.config} Error: ${t}`)})}}},VM={class:"mt-4 pa-3"},qM=["textContent"];function KM(n,t,e,r,f,g){const m=ht("v-spacer"),w=ht("v-toolbar"),h=ht("v-text-field"),d=ht("v-row"),a=ht("v-btn"),l=ht("v-data-table"),u=ht("v-card-text"),c=ht("v-card-actions"),i=ht("v-card"),s=ht("v-dialog");return pn(),xi(s,{modelValue:g.show,"onUpdate:modelValue":t[5]||(t[5]=p=>g.show=p),persistent:"",width:"600",onKeydown:_l(g.cancel,["esc"])},{default:pt(()=>[Ve(i,null,{default:pt(()=>[tr("form",{onSubmit:t[4]||(t[4]=Zs((...p)=>g.success&&g.success(...p),["prevent"]))},[Ve(w,{height:"24"},{default:pt(()=>[Ve(m),t[6]||(t[6]=tr("span",null,"Save Configuration",-1)),Ve(m)]),_:1}),Ve(u,null,{default:pt(()=>[tr("div",VM,[Ve(d,{dense:""},{default:pt(()=>[Ve(h,{modelValue:f.search,"onUpdate:modelValue":t[0]||(t[0]=p=>f.search=p),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}),Ve(l,{modelValue:f.selectedRows,"onUpdate:modelValue":t[1]||(t[1]=p=>f.selectedRows=p),"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]=(p,b)=>g.selectRow(b))},{"item.actions":pt(({item:p})=>[Ve(a,{class:"mt-1",icon:"mdi-delete",variant:"text","data-test":"item-delete",onClick:b=>g.deleteConfig(p)},null,8,["onClick"])]),_:1},8,["modelValue","search","headers","items"]),Ve(d,{dense:""},{default:pt(()=>[Ve(h,{modelValue:f.configName,"onUpdate:modelValue":t[3]||(t[3]=p=>f.configName=p),"hide-details":"",autofocus:"",disabled:!!g.selectedItem,label:"Configuration Name","data-test":"name-input-save-config-dialog"},null,8,["modelValue","disabled"])]),_:1}),Ve(d,{dense:""},{default:pt(()=>[$l(tr("span",{class:"ma-2 text-red",textContent:ii(g.error)},null,8,qM),[[Tl,g.error]])]),_:1})])]),_:1}),Ve(c,{class:"px-2"},{default:pt(()=>[Ve(m),Ve(a,{variant:"outlined",onClick:g.cancel},{default:pt(()=>[...t[7]||(t[7]=[Tr(" Cancel ",-1)])]),_:1},8,["onClick"]),Ve(a,{variant:"flat",type:"submit","data-test":"save-config-submit-btn",disabled:!!g.error,onClick:Zs(g.success,["prevent"])},{default:pt(()=>[...t[8]||(t[8]=[Tr(" Ok ",-1)])]),_:1},8,["disabled","onClick"])]),_:1})],32)]),_:1})]),_:1},8,["modelValue","onKeydown"])}const HD=er("a",_o(UM,[["render",KM]])),GM=50,YM=2e3,Gy="single-spa:app-change",XM={data(){return{appsMounted:!1,show:!1,hideSpinner:!1,pollInterval:null}},computed:{showSpinner:function(){return!this.hideSpinner&&!this.show}},created(){window.addEventListener(Gy,this.handleAppChange)},mounted(){this.pollForMountedApps(),setTimeout(()=>{this.appsMounted||(this.show=!0,this.pollInterval&&clearInterval(this.pollInterval))},YM)},unmounted(){window.removeEventListener(Gy,this.handleAppChange),this.pollInterval&&clearInterval(this.pollInterval)},methods:{handleAppChange:function(n){this.show=!n.detail.appsByNewStatus.MOUNTED,this.hideSpinner=!0},pollForMountedApps:function(){this.pollInterval=setInterval(()=>{this.appsMounted=gu().length>0,gu().length>0&&(this.hideSpinner=!0,clearInterval(this.pollInterval))},GM)}}},ZM={class:"mx-1"},QM={key:1,class:"d-flex justify-center align-center"};function JM(n,t,e,r,f,g){const m=ht("v-card-title"),w=ht("v-card-text"),h=ht("v-card"),d=ht("v-progress-circular");return pn(),Hr(Sl,null,[f.show?(pn(),xi(h,{key:0},{default:pt(()=>[Ve(m,null,{default:pt(()=>[...t[0]||(t[0]=[Tr(" 404 Not Found ",-1)])]),_:1}),Ve(w,{class:"d-flex align-center mt-3"},{default:pt(()=>[t[1]||(t[1]=Tr(" The requested URL ",-1)),tr("code",ZM,ii(n.$route.fullPath),1),t[2]||(t[2]=Tr(" was not routable. ",-1)),t[3]||(t[3]=tr("span",{class:"text-h3 mx-1"}," 🦄 ",-1))]),_:1})]),_:1})):Ni("",!0),g.showSpinner?(pn(),Hr("div",QM,[Ve(d,{indeterminate:""})])):Ni("",!0)],64)}const Yy=[{path:"/",name:"DataViewer",component:()=>st(()=>ot.import("./DataViewer-98ab15c01c75c1840603.js"),void 0)},{path:"/:pathMatch(.*)*",name:"NotFound",component:_o(XM,[["render",JM]])}];Yy.forEach(Bp);const eI=Np({history:Dp(),routes:Yy});/*! @license DOMPurify 3.3.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.1/LICENSE */const{entries:Xy,setPrototypeOf:Zy,isFrozen:tI,getPrototypeOf:nI,getOwnPropertyDescriptor:rI}=Object;let{freeze:Vr,seal:Fi,create:xd}=Object,{apply:Cd,construct:kd}=typeof Reflect<"u"&&Reflect;Vr||(Vr=function(n){return n}),Fi||(Fi=function(n){return n}),Cd||(Cd=function(n,t){for(var e=arguments.length,r=new Array(e>2?e-2:0),f=2;f<e;f++)r[f-2]=arguments[f];return n.apply(t,r)}),kd||(kd=function(n){for(var t=arguments.length,e=new Array(t>1?t-1:0),r=1;r<t;r++)e[r-1]=arguments[r];return new n(...e)});const _c=Kr(Array.prototype.forEach),iI=Kr(Array.prototype.lastIndexOf),Qy=Kr(Array.prototype.pop),il=Kr(Array.prototype.push),oI=Kr(Array.prototype.splice),$c=Kr(String.prototype.toLowerCase),Ad=Kr(String.prototype.toString),Sd=Kr(String.prototype.match),ol=Kr(String.prototype.replace),sI=Kr(String.prototype.indexOf),aI=Kr(String.prototype.trim),no=Kr(Object.prototype.hasOwnProperty),qr=Kr(RegExp.prototype.test),sl=lI(TypeError);function Kr(n){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var e=arguments.length,r=new Array(e>1?e-1:0),f=1;f<e;f++)r[f-1]=arguments[f];return Cd(n,t,r)}}function lI(n){return function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return kd(n,e)}}function Pt(n,t){let e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:$c;Zy&&Zy(n,null);let r=t.length;for(;r--;){let f=t[r];if(typeof f=="string"){const g=e(f);g!==f&&(tI(t)||(t[r]=g),f=g)}n[f]=!0}return n}function cI(n){for(let t=0;t<n.length;t++)no(n,t)||(n[t]=null);return n}function mo(n){const t=xd(null);for(const[e,r]of Xy(n))no(n,e)&&(Array.isArray(r)?t[e]=cI(r):r&&typeof r=="object"&&r.constructor===Object?t[e]=mo(r):t[e]=r);return t}function al(n,t){for(;n!==null;){const r=rI(n,t);if(r){if(r.get)return Kr(r.get);if(typeof r.value=="function")return Kr(r.value)}n=nI(n)}function e(){return null}return e}const Jy=Vr(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),_d=Vr(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),$d=Vr(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),uI=Vr(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Td=Vr(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),hI=Vr(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),eb=Vr(["#text"]),tb=Vr(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Md=Vr(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),nb=Vr(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Tc=Vr(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),dI=Fi(/\{\{[\w\W]*|[\w\W]*\}\}/gm),pI=Fi(/<%[\w\W]*|[\w\W]*%>/gm),fI=Fi(/\$\{[\w\W]*/gm),gI=Fi(/^data-[\-\w.\u00B7-\uFFFF]+$/),mI=Fi(/^aria-[\-\w]+$/),rb=Fi(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),vI=Fi(/^(?:\w+script|data):/i),yI=Fi(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ib=Fi(/^html$/i),bI=Fi(/^[a-z][.\w]*(-[.\w]+)+$/i);var ob=Object.freeze({__proto__:null,ARIA_ATTR:mI,ATTR_WHITESPACE:yI,CUSTOM_ELEMENT:bI,DATA_ATTR:gI,DOCTYPE_NAME:ib,ERB_EXPR:pI,IS_ALLOWED_URI:rb,IS_SCRIPT_OR_DATA:vI,MUSTACHE_EXPR:dI,TMPLIT_EXPR:fI});const ll={element:1,text:3,progressingInstruction:7,comment:8,document:9},wI=function(){return typeof window>"u"?null:window},xI=function(n,t){if(typeof n!="object"||typeof n.createPolicy!="function")return null;let e=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(e=t.getAttribute(r));const f="dompurify"+(e?"#"+e:"");try{return n.createPolicy(f,{createHTML(g){return g},createScriptURL(g){return g}})}catch{return console.warn("TrustedTypes policy "+f+" could not be created."),null}},sb=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function ab(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:wI();const t=ce=>ab(ce);if(t.version="3.3.1",t.removed=[],!n||!n.document||n.document.nodeType!==ll.document||!n.Element)return t.isSupported=!1,t;let{document:e}=n;const r=e,f=r.currentScript,{DocumentFragment:g,HTMLTemplateElement:m,Node:w,Element:h,NodeFilter:d,NamedNodeMap:a=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:l,DOMParser:u,trustedTypes:c}=n,i=h.prototype,s=al(i,"cloneNode"),p=al(i,"remove"),b=al(i,"nextSibling"),x=al(i,"childNodes"),I=al(i,"parentNode");if(typeof m=="function"){const ce=e.createElement("template");ce.content&&ce.content.ownerDocument&&(e=ce.content.ownerDocument)}let _,k="";const{implementation:C,createNodeIterator:L,createDocumentFragment:D,getElementsByTagName:R}=e,{importNode:E}=r;let z=sb();t.isSupported=typeof Xy=="function"&&typeof I=="function"&&C&&C.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:F,ERB_EXPR:O,TMPLIT_EXPR:$,DATA_ATTR:A,ARIA_ATTR:N,IS_SCRIPT_OR_DATA:B,ATTR_WHITESPACE:U,CUSTOM_ELEMENT:K}=ob;let{IS_ALLOWED_URI:Q}=ob,J=null;const he=Pt({},[...Jy,..._d,...$d,...Td,...eb]);let ne=null;const le=Pt({},[...tb,...Md,...nb,...Tc]);let se=Object.seal(xd(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),de=null,me=null;const _e=Object.seal(xd(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Te=!0,Me=!0,Ze=!1,Ge=!0,lt=!1,tt=!0,ct=!1,Xt=!1,Cn=!1,Wt=!1,vr=!1,un=!1,On=!0,Xn=!1;const Mr="user-content-";let yt=!0,je=!1,Lt={},Ht=null;const Tn=Pt({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let yr=null;const hr=Pt({},["audio","video","img","source","image","track"]);let mn=null;const Wn=Pt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Nn="http://www.w3.org/1998/Math/MathML",Gt="http://www.w3.org/2000/svg",ln="http://www.w3.org/1999/xhtml";let Dr=ln,Gr=!1,Yr=null;const Si=Pt({},[Nn,Gt,ln],Ad);let ci=Pt({},["mi","mo","mn","ms","mtext"]),Bn=Pt({},["annotation-xml"]);const ro=Pt({},["title","style","font","a","script"]);let ui=null;const Os=["application/xhtml+xml","text/html"],Xr="text/html";let kn=null,hi=null;const Jo=e.createElement("form"),di=function(ce){return ce instanceof RegExp||ce instanceof Function},An=function(){let ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(hi&&hi===ce)){if((!ce||typeof ce!="object")&&(ce={}),ce=mo(ce),ui=Os.indexOf(ce.PARSER_MEDIA_TYPE)===-1?Xr:ce.PARSER_MEDIA_TYPE,kn=ui==="application/xhtml+xml"?Ad:$c,J=no(ce,"ALLOWED_TAGS")?Pt({},ce.ALLOWED_TAGS,kn):he,ne=no(ce,"ALLOWED_ATTR")?Pt({},ce.ALLOWED_ATTR,kn):le,Yr=no(ce,"ALLOWED_NAMESPACES")?Pt({},ce.ALLOWED_NAMESPACES,Ad):Si,mn=no(ce,"ADD_URI_SAFE_ATTR")?Pt(mo(Wn),ce.ADD_URI_SAFE_ATTR,kn):Wn,yr=no(ce,"ADD_DATA_URI_TAGS")?Pt(mo(hr),ce.ADD_DATA_URI_TAGS,kn):hr,Ht=no(ce,"FORBID_CONTENTS")?Pt({},ce.FORBID_CONTENTS,kn):Tn,de=no(ce,"FORBID_TAGS")?Pt({},ce.FORBID_TAGS,kn):mo({}),me=no(ce,"FORBID_ATTR")?Pt({},ce.FORBID_ATTR,kn):mo({}),Lt=no(ce,"USE_PROFILES")?ce.USE_PROFILES:!1,Te=ce.ALLOW_ARIA_ATTR!==!1,Me=ce.ALLOW_DATA_ATTR!==!1,Ze=ce.ALLOW_UNKNOWN_PROTOCOLS||!1,Ge=ce.ALLOW_SELF_CLOSE_IN_ATTR!==!1,lt=ce.SAFE_FOR_TEMPLATES||!1,tt=ce.SAFE_FOR_XML!==!1,ct=ce.WHOLE_DOCUMENT||!1,Wt=ce.RETURN_DOM||!1,vr=ce.RETURN_DOM_FRAGMENT||!1,un=ce.RETURN_TRUSTED_TYPE||!1,Cn=ce.FORCE_BODY||!1,On=ce.SANITIZE_DOM!==!1,Xn=ce.SANITIZE_NAMED_PROPS||!1,yt=ce.KEEP_CONTENT!==!1,je=ce.IN_PLACE||!1,Q=ce.ALLOWED_URI_REGEXP||rb,Dr=ce.NAMESPACE||ln,ci=ce.MATHML_TEXT_INTEGRATION_POINTS||ci,Bn=ce.HTML_INTEGRATION_POINTS||Bn,se=ce.CUSTOM_ELEMENT_HANDLING||{},ce.CUSTOM_ELEMENT_HANDLING&&di(ce.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(se.tagNameCheck=ce.CUSTOM_ELEMENT_HANDLING.tagNameCheck),ce.CUSTOM_ELEMENT_HANDLING&&di(ce.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(se.attributeNameCheck=ce.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),ce.CUSTOM_ELEMENT_HANDLING&&typeof ce.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(se.allowCustomizedBuiltInElements=ce.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),lt&&(Me=!1),vr&&(Wt=!0),Lt&&(J=Pt({},eb),ne=[],Lt.html===!0&&(Pt(J,Jy),Pt(ne,tb)),Lt.svg===!0&&(Pt(J,_d),Pt(ne,Md),Pt(ne,Tc)),Lt.svgFilters===!0&&(Pt(J,$d),Pt(ne,Md),Pt(ne,Tc)),Lt.mathMl===!0&&(Pt(J,Td),Pt(ne,nb),Pt(ne,Tc))),ce.ADD_TAGS&&(typeof ce.ADD_TAGS=="function"?_e.tagCheck=ce.ADD_TAGS:(J===he&&(J=mo(J)),Pt(J,ce.ADD_TAGS,kn))),ce.ADD_ATTR&&(typeof ce.ADD_ATTR=="function"?_e.attributeCheck=ce.ADD_ATTR:(ne===le&&(ne=mo(ne)),Pt(ne,ce.ADD_ATTR,kn))),ce.ADD_URI_SAFE_ATTR&&Pt(mn,ce.ADD_URI_SAFE_ATTR,kn),ce.FORBID_CONTENTS&&(Ht===Tn&&(Ht=mo(Ht)),Pt(Ht,ce.FORBID_CONTENTS,kn)),ce.ADD_FORBID_CONTENTS&&(Ht===Tn&&(Ht=mo(Ht)),Pt(Ht,ce.ADD_FORBID_CONTENTS,kn)),yt&&(J["#text"]=!0),ct&&Pt(J,["html","head","body"]),J.table&&(Pt(J,["tbody"]),delete de.tbody),ce.TRUSTED_TYPES_POLICY){if(typeof ce.TRUSTED_TYPES_POLICY.createHTML!="function")throw sl('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof ce.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw sl('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');_=ce.TRUSTED_TYPES_POLICY,k=_.createHTML("")}else _===void 0&&(_=xI(c,f)),_!==null&&typeof k=="string"&&(k=_.createHTML(""));Vr&&Vr(ce),hi=ce}},dr=Pt({},[..._d,...$d,...uI]),pi=Pt({},[...Td,...hI]),Sn=function(ce){let ze=I(ce);(!ze||!ze.tagName)&&(ze={namespaceURI:Dr,tagName:"template"});const Pe=$c(ce.tagName),_t=$c(ze.tagName);return Yr[ce.namespaceURI]?ce.namespaceURI===Gt?ze.namespaceURI===ln?Pe==="svg":ze.namespaceURI===Nn?Pe==="svg"&&(_t==="annotation-xml"||ci[_t]):!!dr[Pe]:ce.namespaceURI===Nn?ze.namespaceURI===ln?Pe==="math":ze.namespaceURI===Gt?Pe==="math"&&Bn[_t]:!!pi[Pe]:ce.namespaceURI===ln?ze.namespaceURI===Gt&&!Bn[_t]||ze.namespaceURI===Nn&&!ci[_t]?!1:!pi[Pe]&&(ro[Pe]||!dr[Pe]):!!(ui==="application/xhtml+xml"&&Yr[ce.namespaceURI]):!1},Mn=function(ce){il(t.removed,{element:ce});try{I(ce).removeChild(ce)}catch{p(ce)}},br=function(ce,ze){try{il(t.removed,{attribute:ze.getAttributeNode(ce),from:ze})}catch{il(t.removed,{attribute:null,from:ze})}if(ze.removeAttribute(ce),ce==="is")if(Wt||vr)try{Mn(ze)}catch{}else try{ze.setAttribute(ce,"")}catch{}},fi=function(ce){let ze=null,Pe=null;if(Cn)ce="<remove></remove>"+ce;else{const jt=Sd(ce,/^[\r\n\t ]+/);Pe=jt&&jt[0]}ui==="application/xhtml+xml"&&Dr===ln&&(ce='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+ce+"</body></html>");const _t=_?_.createHTML(ce):ce;if(Dr===ln)try{ze=new u().parseFromString(_t,ui)}catch{}if(!ze||!ze.documentElement){ze=C.createDocument(Dr,"template",null);try{ze.documentElement.innerHTML=Gr?k:_t}catch{}}const Yt=ze.body||ze.documentElement;return ce&&Pe&&Yt.insertBefore(e.createTextNode(Pe),Yt.childNodes[0]||null),Dr===ln?R.call(ze,ct?"html":"body")[0]:ct?ze.documentElement:Yt},vo=function(ce){return L.call(ce.ownerDocument||ce,ce,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},yo=function(ce){return ce instanceof l&&(typeof ce.nodeName!="string"||typeof ce.textContent!="string"||typeof ce.removeChild!="function"||!(ce.attributes instanceof a)||typeof ce.removeAttribute!="function"||typeof ce.setAttribute!="function"||typeof ce.namespaceURI!="string"||typeof ce.insertBefore!="function"||typeof ce.hasChildNodes!="function")},es=function(ce){return typeof w=="function"&&ce instanceof w};function Zr(ce,ze,Pe){_c(ce,_t=>{_t.call(t,ze,Pe,hi)})}const gi=function(ce){let ze=null;if(Zr(z.beforeSanitizeElements,ce,null),yo(ce))return Mn(ce),!0;const Pe=kn(ce.nodeName);if(Zr(z.uponSanitizeElement,ce,{tagName:Pe,allowedTags:J}),tt&&ce.hasChildNodes()&&!es(ce.firstElementChild)&&qr(/<[/\w!]/g,ce.innerHTML)&&qr(/<[/\w!]/g,ce.textContent)||ce.nodeType===ll.progressingInstruction||tt&&ce.nodeType===ll.comment&&qr(/<[/\w]/g,ce.data))return Mn(ce),!0;if(!(_e.tagCheck instanceof Function&&_e.tagCheck(Pe))&&(!J[Pe]||de[Pe])){if(!de[Pe]&&Ot(Pe)&&(se.tagNameCheck instanceof RegExp&&qr(se.tagNameCheck,Pe)||se.tagNameCheck instanceof Function&&se.tagNameCheck(Pe)))return!1;if(yt&&!Ht[Pe]){const _t=I(ce)||ce.parentNode,Yt=x(ce)||ce.childNodes;if(Yt&&_t){const jt=Yt.length;for(let xr=jt-1;xr>=0;--xr){const pr=s(Yt[xr],!0);pr.__removalCount=(ce.__removalCount||0)+1,_t.insertBefore(pr,b(ce))}}}return Mn(ce),!0}return ce instanceof h&&!Sn(ce)||(Pe==="noscript"||Pe==="noembed"||Pe==="noframes")&&qr(/<\/no(script|embed|frames)/i,ce.innerHTML)?(Mn(ce),!0):(lt&&ce.nodeType===ll.text&&(ze=ce.textContent,_c([F,O,$],_t=>{ze=ol(ze,_t," ")}),ce.textContent!==ze&&(il(t.removed,{element:ce.cloneNode()}),ce.textContent=ze)),Zr(z.afterSanitizeElements,ce,null),!1)},Pr=function(ce,ze,Pe){if(On&&(ze==="id"||ze==="name")&&(Pe in e||Pe in Jo))return!1;if(!(Me&&!me[ze]&&qr(A,ze))&&!(Te&&qr(N,ze))&&!(_e.attributeCheck instanceof Function&&_e.attributeCheck(ze,ce))){if(!ne[ze]||me[ze]){if(!(Ot(ce)&&(se.tagNameCheck instanceof RegExp&&qr(se.tagNameCheck,ce)||se.tagNameCheck instanceof Function&&se.tagNameCheck(ce))&&(se.attributeNameCheck instanceof RegExp&&qr(se.attributeNameCheck,ze)||se.attributeNameCheck instanceof Function&&se.attributeNameCheck(ze,ce))||ze==="is"&&se.allowCustomizedBuiltInElements&&(se.tagNameCheck instanceof RegExp&&qr(se.tagNameCheck,Pe)||se.tagNameCheck instanceof Function&&se.tagNameCheck(Pe))))return!1}else if(!mn[ze]&&!qr(Q,ol(Pe,U,""))&&!((ze==="src"||ze==="xlink:href"||ze==="href")&&ce!=="script"&&sI(Pe,"data:")===0&&yr[ce])&&!(Ze&&!qr(B,ol(Pe,U,"")))&&Pe)return!1}return!0},Ot=function(ce){return ce!=="annotation-xml"&&Sd(ce,K)},Mo=function(ce){Zr(z.beforeSanitizeAttributes,ce,null);const{attributes:ze}=ce;if(!ze||yo(ce))return;const Pe={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ne,forceKeepAttr:void 0};let _t=ze.length;for(;_t--;){const Yt=ze[_t],{name:jt,namespaceURI:xr,value:pr}=Yt,zn=kn(jt),Cr=pr;let vn=jt==="value"?Cr:aI(Cr);if(Pe.attrName=zn,Pe.attrValue=vn,Pe.keepAttr=!0,Pe.forceKeepAttr=void 0,Zr(z.uponSanitizeAttribute,ce,Pe),vn=Pe.attrValue,Xn&&(zn==="id"||zn==="name")&&(br(jt,ce),vn=Mr+vn),tt&&qr(/((--!?|])>)|<\/(style|title|textarea)/i,vn)){br(jt,ce);continue}if(zn==="attributename"&&Sd(vn,"href")){br(jt,ce);continue}if(Pe.forceKeepAttr)continue;if(!Pe.keepAttr){br(jt,ce);continue}if(!Ge&&qr(/\/>/i,vn)){br(jt,ce);continue}lt&&_c([F,O,$],Fr=>{vn=ol(vn,Fr," ")});const io=kn(ce.nodeName);if(!Pr(io,zn,vn)){br(jt,ce);continue}if(_&&typeof c=="object"&&typeof c.getAttributeType=="function"&&!xr)switch(c.getAttributeType(io,zn)){case"TrustedHTML":{vn=_.createHTML(vn);break}case"TrustedScriptURL":{vn=_.createScriptURL(vn);break}}if(vn!==Cr)try{xr?ce.setAttributeNS(xr,jt,vn):ce.setAttribute(jt,vn),yo(ce)?Mn(ce):Qy(t.removed)}catch{br(jt,ce)}}Zr(z.afterSanitizeAttributes,ce,null)},wr=function ce(ze){let Pe=null;const _t=vo(ze);for(Zr(z.beforeSanitizeShadowDOM,ze,null);Pe=_t.nextNode();)Zr(z.uponSanitizeShadowNode,Pe,null),gi(Pe),Mo(Pe),Pe.content instanceof g&&ce(Pe.content);Zr(z.afterSanitizeShadowDOM,ze,null)};return t.sanitize=function(ce){let ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Pe=null,_t=null,Yt=null,jt=null;if(Gr=!ce,Gr&&(ce="<!-->"),typeof ce!="string"&&!es(ce))if(typeof ce.toString=="function"){if(ce=ce.toString(),typeof ce!="string")throw sl("dirty is not a string, aborting")}else throw sl("toString is not a function");if(!t.isSupported)return ce;if(Xt||An(ze),t.removed=[],typeof ce=="string"&&(je=!1),je){if(ce.nodeName){const zn=kn(ce.nodeName);if(!J[zn]||de[zn])throw sl("root node is forbidden and cannot be sanitized in-place")}}else if(ce instanceof w)Pe=fi("<!---->"),_t=Pe.ownerDocument.importNode(ce,!0),_t.nodeType===ll.element&&_t.nodeName==="BODY"||_t.nodeName==="HTML"?Pe=_t:Pe.appendChild(_t);else{if(!Wt&&!lt&&!ct&&ce.indexOf("<")===-1)return _&&un?_.createHTML(ce):ce;if(Pe=fi(ce),!Pe)return Wt?null:un?k:""}Pe&&Cn&&Mn(Pe.firstChild);const xr=vo(je?ce:Pe);for(;Yt=xr.nextNode();)gi(Yt),Mo(Yt),Yt.content instanceof g&&wr(Yt.content);if(je)return ce;if(Wt){if(vr)for(jt=D.call(Pe.ownerDocument);Pe.firstChild;)jt.appendChild(Pe.firstChild);else jt=Pe;return(ne.shadowroot||ne.shadowrootmode)&&(jt=E.call(r,jt,!0)),jt}let pr=ct?Pe.outerHTML:Pe.innerHTML;return ct&&J["!doctype"]&&Pe.ownerDocument&&Pe.ownerDocument.doctype&&Pe.ownerDocument.doctype.name&&qr(ib,Pe.ownerDocument.doctype.name)&&(pr="<!DOCTYPE "+Pe.ownerDocument.doctype.name+`>
1501
+ `+pr),lt&&_c([F,O,$],zn=>{pr=ol(pr,zn," ")}),_&&un?_.createHTML(pr):pr},t.setConfig=function(){let ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};An(ce),Xt=!0},t.clearConfig=function(){hi=null,Xt=!1},t.isValidAttribute=function(ce,ze,Pe){hi||An({});const _t=kn(ce),Yt=kn(ze);return Pr(_t,Yt,Pe)},t.addHook=function(ce,ze){typeof ze=="function"&&il(z[ce],ze)},t.removeHook=function(ce,ze){if(ze!==void 0){const Pe=iI(z[ce],ze);return Pe===-1?void 0:oI(z[ce],Pe,1)[0]}return Qy(z[ce])},t.removeHooks=function(ce){z[ce]=[]},t.removeAllHooks=function(){z=sb()},t}var CI=ab();const kI={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"}},AI={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()}`},sanitizedText:function(){return CI.sanitize(this.params.text)}},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=""}}},SI=["innerHTML"],_I={key:2},$I={key:3,class:"validate mt-4"};function TI(n,t,e,r,f,g){const m=ht("v-spacer"),w=ht("v-toolbar"),h=ht("v-icon"),d=ht("v-text-field"),a=ht("v-card-text"),l=ht("v-btn"),u=ht("v-card-actions"),c=ht("v-card"),i=ht("v-dialog"),s=ht("v-app");return pn(),xi(s,null,{default:pt(()=>[Ve(i,{modelValue:n.show,"onUpdate:modelValue":t[1]||(t[1]=p=>n.show=p),persistent:"",width:"600",onKeydown:_l(g.cancel,["esc"])},{default:pt(()=>[Ve(c,null,{default:pt(()=>[Ve(w,{height:"24"},{default:pt(()=>[Ve(m),tr("span",null,ii(n.params.title),1),Ve(m)]),_:1}),Ve(a,{class:"mt-4 pa-3"},{default:pt(()=>[n.params.validateText?(pn(),xi(h,{key:0,class:"mr-2"},{default:pt(()=>[...t[2]||(t[2]=[Tr(" mdi-alert ",-1)])]),_:1})):Ni("",!0),n.params.html?(pn(),Hr("span",{key:1,innerHTML:g.sanitizedText},null,8,SI)):(pn(),Hr("span",_I,ii(g.sanitizedText),1)),n.params.validateText?(pn(),Hr("div",$I,[Tr(" Enter "+ii(n.params.validateText)+" to confirm! ",1),Ve(d,{modelValue:n.validationText,"onUpdate:modelValue":t[0]||(t[0]=p=>n.validationText=p),variant:"solo",density:"compact","single-line":"",rules:[n.rules.required,n.rules.match],"data-test":"confirm-dialog-validate"},null,8,["modelValue","rules"])])):Ni("",!0)]),_:1}),Ve(u,{class:"px-2"},{default:pt(()=>[Ve(m),n.params.cancelText?(pn(),xi(l,{key:0,variant:"outlined","data-test":g.dataTestCancel,onClick:g.cancel},{default:pt(()=>[Tr(ii(n.params.cancelText),1)]),_:1},8,["data-test","onClick"])):Ni("",!0),Ve(l,{variant:"flat",color:n.params.okClass,"data-test":g.dataTestOk,onClick:g.ok},{default:pt(()=>[Tr(ii(n.params.okText),1)]),_:1},8,["color","data-test","onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue","onKeydown"])]),_:1})}const MI=_o(AI,[["render",TI],["__scopeId","data-v-016d2acf"]]);class II{constructor(){this.mounted=!1,this.$root=null}mount(){if(this.mounted)return;const t=window.Vue.createApp(MI);t.use(Ed);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:g,cancelText:m,html:w}){return this.mount(),new Promise((h,d)=>{this.$root.dialog({title:t,text:e,okText:r,okClass:f,validateText:g,cancelText:m,html:w},h,d)})}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:g="primary"}){return this.open({title:"Confirm",text:t,okText:e,okClass:g,validateText:r,cancelText:f,html:!1})}}const EI={install(n,t){const e=new II;n.provide("dialog",e),n.config.globalProperties.hasOwnProperty("$dialog")||(n.config.globalProperties.$dialog=e)}},RI={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`
1502
1502
  --toast-bg-color:${wd[this.toastNotification.level]};
1503
1503
  --toast-fg-color:${DM(this.toastNotification.level)};
1504
1504
  `},contentStyle:function(){return`
1505
1505
  white-space: ${this.expanded?"normal":"nowrap"};
1506
1506
  overflow-x: ${this.expanded?"visible":"hidden"};
1507
1507
  text-overflow: ${this.expanded?"unset":"ellipsis"};
1508
- `}},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}}},LI={key:0,class:"text-subtitle-1 mr-1 notification-text"},OI={key:1,class:"text-body-2 notification-text"},NI={key:2,class:"text-body-2 notification-text"};function DI(n,t,e,r,f,g){const m=ht("v-icon"),w=ht("v-spacer"),h=ht("v-btn"),d=ht("v-sheet"),a=ht("v-slide-y-transition");return pn(),xi(a,null,{default:pt(()=>[$l(Ve(d,{style:Ra(g.toastStyle),class:"toast-notification",onClick:g.expand},{default:pt(()=>[Ve(m,{class:"mr-1 notification-text"},{default:pt(()=>[Tr(ii(g.toastNotificationIcon),1)]),_:1}),tr("div",{class:"toast-content",style:Ra(g.contentStyle)},[n.toastNotification.title?(pn(),Hr("span",LI,[n.toastNotification.body||n.toastNotification.message?(pn(),Hr(Sl,{key:0},[Tr(ii(n.toastNotification.title)+": ",1)],64)):(pn(),Hr(Sl,{key:1},[Tr(ii(n.toastNotification.title),1)],64))])):Ni("",!0),n.toastNotification.body?(pn(),Hr("span",OI,ii(n.toastNotification.body),1)):Ni("",!0),n.toastNotification.message?(pn(),Hr("span",NI,ii(n.toastNotification.message),1)):Ni("",!0)],4),Ve(w),Ve(h,{variant:"text",class:"notification-text",onClick:Zs(g.hide,["stop"])},{default:pt(()=>[...t[0]||(t[0]=[Tr(" Dismiss ",-1)])]),_:1},8,["onClick"])]),_:1},8,["style","onClick"]),[[Tl,n.showToast]])]),_:1})}const PI=So(RI,[["render",DI],["__scopeId","data-v-84833581"]]);class FI{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=fu(PI);t.use(Ed);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:g,duration:m,type:w="alert",logToConsole:h=!1,saveToHistory:d=!0}){this.mount(),h&&console.log(f?`${g.toUpperCase()} - ${f}`:`${g.toUpperCase()} - ${e}: ${r}`),d&&this.$store.commit("notifyAddHistory",{title:e,body:r,message:f,level:g}),this[t]({title:e,body:r,message:f,level:g,duration:m,type:w})}toast({title:t,body:e,message:r,level:f,duration:g,type:m}){this.$root.toast({title:t,body:e,message:r,level:f,type:m},g)}critical({title:t,body:e,message:r,type:f,duration:g,logToConsole:m,saveToHistory:w}){this.open({method:"toast",level:"critical",title:t,body:e,message:r,type:f,duration:g,logToConsole:m,saveToHistory:w})}FATAL(t){this.critical(t)}ERROR(t){this.critical(t)}serious({title:t,body:e,message:r,type:f,duration:g,logToConsole:m,saveToHistory:w}){this.open({method:"toast",level:"serious",title:t,body:e,message:r,type:f,duration:g,logToConsole:m,saveToHistory:w})}caution({title:t,body:e,message:r,type:f,duration:g,logToConsole:m,saveToHistory:w}){this.open({method:"toast",level:"caution",title:t,body:e,message:r,type:f,duration:g,logToConsole:m,saveToHistory:w})}WARN(t){this.caution(t)}normal({title:t,body:e,message:r,type:f,duration:g,logToConsole:m,saveToHistory:w}){this.open({method:"toast",level:"normal",title:t,body:e,message:r,type:f,duration:g,logToConsole:m,saveToHistory:w})}INFO(t){this.normal(t)}DEBUG(t){this.normal(t)}standby({title:t,body:e,message:r,type:f,duration:g,logToConsole:m,saveToHistory:w}){this.open({method:"toast",level:"standby",title:t,body:e,message:r,type:f,duration:g,logToConsole:m,saveToHistory:w})}off({title:t,body:e,message:r,type:f,duration:g,logToConsole:m,saveToHistory:w}){this.open({method:"toast",level:"off",title:t,body:e,message:r,type:f,duration:g,logToConsole:m,saveToHistory:w})}}const WI={install(n,t){const e=new FI(t);n.provide("notify",e),n.config.globalProperties.hasOwnProperty("$notify")||(n.config.globalProperties.$notify=e)}},lb=100,cb=Pp({state(){return{notifyHistory:[],namedWidgets:{},playback:{playbackMode:null,playbackDateTime:null,playbackStep:1}}},getters:{namedWidget:n=>t=>n.namedWidgets[t]},mutations:{notifyAddHistory(n,t){n.notifyHistory.length>=lb&&(n.notifyHistory.length=lb-1),n.notifyHistory.unshift(t)},notifyClearHistory(n){n.notifyHistory=[]},setNamedWidget(n,t){Object.assign(n.namedWidgets,t)},clearNamedWidget(n,t){delete n.namedWidgets[t]},playback(n,t){Object.assign(n.playback,t)}},modules:{}});function BI(n){Mp(`Vuetify: ${n}`)}function ub(n){let t;return n!==null&&typeof n=="object"&&((t=Object.getPrototypeOf(n))===Object.prototype||t===null)}function zI(n,t){const e={};for(const r of t)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e}function hb(){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 g=n[f],m=t[f];if(ub(g)&&ub(m)){r[f]=hb(g,m,e);continue}if(e&&Array.isArray(g)&&Array.isArray(m)){r[f]=e(g,m);continue}r[f]=m}return r}function cl(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(cl.cache.has(n))return cl.cache.get(n);const t=n.replace(/[^a-z]/gi,"-").replace(/\B([A-Z])/g,"-$1").toLowerCase();return cl.cache.set(n,t),t}cl.cache=new Map;function db(n,t){return e=>Object.keys(n).reduce((r,f)=>{const g=typeof n[f]=="object"&&n[f]!=null&&!Array.isArray(n[f])?n[f]:{type:n[f]};return e&&f in e?r[f]={...g,default:e[f]}:r[f]=g,t&&!r[f].source&&(r[f].source=t),r},{})}function pb(n,t){const e=Lp();if(!e)throw new Error(`[Vuetify] ${n} must be called from inside a setup function`);return e}function HI(n){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:pb("injectSelf");const{provides:e}=t;if(e&&n in e)return e[n]}const Id=Symbol.for("vuetify:defaults");function fb(){const n=Ip(Id);if(!n)throw new Error("[Vuetify] Could not find defaults instance");return n}function jI(n,t){return n.props&&(typeof n.props[t]<"u"||typeof n.props[cl(t)]<"u")}function UI(){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]:fb();const r=pb("useDefaults");if(t=t??r.type.name??r.type.__name,!t)throw new Error("[Vuetify] Could not determine component name");const f=pu(()=>{var h;return(h=e.value)==null?void 0:h[n._as??t]}),g=new Proxy(n,{get(h,d){var a,l,u,c;const i=Reflect.get(h,d);if(d==="class"||d==="style")return[(a=f.value)==null?void 0:a[d],i].filter(b=>b!=null);if(jI(r.vnode,d))return i;const s=(l=f.value)==null?void 0:l[d];if(s!==void 0)return s;const p=(c=(u=e.value)==null?void 0:u.global)==null?void 0:c[d];return p!==void 0?p:i}}),m=Ep();Rp(()=>{if(f.value){const h=Object.entries(f.value).filter(d=>{let[a]=d;return a.startsWith(a[0].toUpperCase())});m.value=h.length?Object.fromEntries(h):void 0}else m.value=void 0});function w(){const h=HI(Id,r);Op(Id,pu(()=>m.value?hb((h==null?void 0:h.value)??{},m.value):h==null?void 0:h.value))}return{props:g,provideSubDefaults:w}}function Mc(n){if(n._setup=n._setup??n.setup,!n.name)return BI("The component is missing an explicit name, unable to generate default prop value"),n;if(n._setup){n.props=db(n.props??{},n.name)();const t=Object.keys(n.props).filter(e=>e!=="class"&&e!=="style");n.filterProps=function(e){return zI(e,t)},n.props._as=String,n.setup=function(e,r){const f=fb();if(!f.value)return n._setup(e,r);const{props:g,provideSubDefaults:m}=UI(e,e._as??n.name,f),w=n._setup(g,r);return m(),w}}return n}function VI(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return t=>(n?Mc:Tp)(t)}const qI=[String,Function,Object,Array],Ic=db({icon:{type:qI},tag:{type:[String,Object,Function],required:!0}},"icon");VI()({name:"VComponentIcon",props:Ic(),setup(n,t){let{slots:e}=t;return()=>{const r=n.icon;return Ve(n.tag,null,{default:()=>{var f;return[n.icon?Ve(r,null,null):(f=e.default)==null?void 0:f.call(e)]}})}}}),Mc({name:"VSvgIcon",inheritAttrs:!1,props:Ic(),setup(n,t){let{attrs:e}=t;return()=>Ve(n.tag,hu(e,{style:null}),{default:()=>[tr("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)?tr("path",{d:r[0],"fill-opacity":r[1]},null):tr("path",{d:r},null)):tr("path",{d:n.icon},null)])]})}}),Mc({name:"VLigatureIcon",props:Ic(),setup(n){return()=>Ve(n.tag,null,{default:()=>[n.icon]})}});const KI=Mc({name:"VClassIcon",props:Ic(),setup(n){return()=>Ve(n.tag,{class:du(n.icon)},null)}}),GI={component:n=>Xs(KI,{...n,class:"mdi"})},Ed=Fp({theme:{defaultTheme:"cosmosDark",themes:{cosmosDark:kI}},icons:{defaultSet:"mdi",sets:{mdi:GI,...FM,...WM}}}),Rd=lw({createApp:fu,appOptions:{render(){return Xs(mw,{})},el:"#openc3-tool"},handleInstance:n=>{n.use(eI),n.use(cb),n.use(Ed),n.use(EI),n.use(WI,{store:cb})}}),UD=er("e",Rd.bootstrap),VD=er("m",Rd.mount),qD=er("u",Rd.unmount)}}});
1508
+ `}},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}}},LI={key:0,class:"text-subtitle-1 mr-1 notification-text"},OI={key:1,class:"text-body-2 notification-text"},NI={key:2,class:"text-body-2 notification-text"};function DI(n,t,e,r,f,g){const m=ht("v-icon"),w=ht("v-spacer"),h=ht("v-btn"),d=ht("v-sheet"),a=ht("v-slide-y-transition");return pn(),xi(a,null,{default:pt(()=>[$l(Ve(d,{style:Ra(g.toastStyle),class:"toast-notification",onClick:g.expand},{default:pt(()=>[Ve(m,{class:"mr-1 notification-text"},{default:pt(()=>[Tr(ii(g.toastNotificationIcon),1)]),_:1}),tr("div",{class:"toast-content",style:Ra(g.contentStyle)},[n.toastNotification.title?(pn(),Hr("span",LI,[n.toastNotification.body||n.toastNotification.message?(pn(),Hr(Sl,{key:0},[Tr(ii(n.toastNotification.title)+": ",1)],64)):(pn(),Hr(Sl,{key:1},[Tr(ii(n.toastNotification.title),1)],64))])):Ni("",!0),n.toastNotification.body?(pn(),Hr("span",OI,ii(n.toastNotification.body),1)):Ni("",!0),n.toastNotification.message?(pn(),Hr("span",NI,ii(n.toastNotification.message),1)):Ni("",!0)],4),Ve(w),Ve(h,{variant:"text",class:"notification-text",onClick:Zs(g.hide,["stop"])},{default:pt(()=>[...t[0]||(t[0]=[Tr(" Dismiss ",-1)])]),_:1},8,["onClick"])]),_:1},8,["style","onClick"]),[[Tl,n.showToast]])]),_:1})}const PI=_o(RI,[["render",DI],["__scopeId","data-v-84833581"]]);class FI{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=fu(PI);t.use(Ed);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:g,duration:m,type:w="alert",logToConsole:h=!1,saveToHistory:d=!0}){this.mount(),h&&console.log(f?`${g.toUpperCase()} - ${f}`:`${g.toUpperCase()} - ${e}: ${r}`),d&&this.$store.commit("notifyAddHistory",{title:e,body:r,message:f,level:g}),this[t]({title:e,body:r,message:f,level:g,duration:m,type:w})}toast({title:t,body:e,message:r,level:f,duration:g,type:m}){this.$root.toast({title:t,body:e,message:r,level:f,type:m},g)}critical({title:t,body:e,message:r,type:f,duration:g,logToConsole:m,saveToHistory:w}){this.open({method:"toast",level:"critical",title:t,body:e,message:r,type:f,duration:g,logToConsole:m,saveToHistory:w})}FATAL(t){this.critical(t)}ERROR(t){this.critical(t)}serious({title:t,body:e,message:r,type:f,duration:g,logToConsole:m,saveToHistory:w}){this.open({method:"toast",level:"serious",title:t,body:e,message:r,type:f,duration:g,logToConsole:m,saveToHistory:w})}caution({title:t,body:e,message:r,type:f,duration:g,logToConsole:m,saveToHistory:w}){this.open({method:"toast",level:"caution",title:t,body:e,message:r,type:f,duration:g,logToConsole:m,saveToHistory:w})}WARN(t){this.caution(t)}normal({title:t,body:e,message:r,type:f,duration:g,logToConsole:m,saveToHistory:w}){this.open({method:"toast",level:"normal",title:t,body:e,message:r,type:f,duration:g,logToConsole:m,saveToHistory:w})}INFO(t){this.normal(t)}DEBUG(t){this.normal(t)}standby({title:t,body:e,message:r,type:f,duration:g,logToConsole:m,saveToHistory:w}){this.open({method:"toast",level:"standby",title:t,body:e,message:r,type:f,duration:g,logToConsole:m,saveToHistory:w})}off({title:t,body:e,message:r,type:f,duration:g,logToConsole:m,saveToHistory:w}){this.open({method:"toast",level:"off",title:t,body:e,message:r,type:f,duration:g,logToConsole:m,saveToHistory:w})}}const WI={install(n,t){const e=new FI(t);n.provide("notify",e),n.config.globalProperties.hasOwnProperty("$notify")||(n.config.globalProperties.$notify=e)}},lb=100,cb=Pp({state(){return{notifyHistory:[],namedWidgets:{},playback:{playbackMode:null,playbackDateTime:null,playbackStep:1}}},getters:{namedWidget:n=>t=>n.namedWidgets[t]},mutations:{notifyAddHistory(n,t){n.notifyHistory.length>=lb&&(n.notifyHistory.length=lb-1),n.notifyHistory.unshift(t)},notifyClearHistory(n){n.notifyHistory=[]},setNamedWidget(n,t){Object.assign(n.namedWidgets,t)},clearNamedWidget(n,t){delete n.namedWidgets[t]},playback(n,t){Object.assign(n.playback,t)}},modules:{}});function BI(n){Mp(`Vuetify: ${n}`)}function ub(n){let t;return n!==null&&typeof n=="object"&&((t=Object.getPrototypeOf(n))===Object.prototype||t===null)}function zI(n,t){const e={};for(const r of t)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e}function hb(){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 g=n[f],m=t[f];if(ub(g)&&ub(m)){r[f]=hb(g,m,e);continue}if(e&&Array.isArray(g)&&Array.isArray(m)){r[f]=e(g,m);continue}r[f]=m}return r}function cl(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(cl.cache.has(n))return cl.cache.get(n);const t=n.replace(/[^a-z]/gi,"-").replace(/\B([A-Z])/g,"-$1").toLowerCase();return cl.cache.set(n,t),t}cl.cache=new Map;function db(n,t){return e=>Object.keys(n).reduce((r,f)=>{const g=typeof n[f]=="object"&&n[f]!=null&&!Array.isArray(n[f])?n[f]:{type:n[f]};return e&&f in e?r[f]={...g,default:e[f]}:r[f]=g,t&&!r[f].source&&(r[f].source=t),r},{})}function pb(n,t){const e=Lp();if(!e)throw new Error(`[Vuetify] ${n} must be called from inside a setup function`);return e}function HI(n){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:pb("injectSelf");const{provides:e}=t;if(e&&n in e)return e[n]}const Id=Symbol.for("vuetify:defaults");function fb(){const n=Ip(Id);if(!n)throw new Error("[Vuetify] Could not find defaults instance");return n}function jI(n,t){return n.props&&(typeof n.props[t]<"u"||typeof n.props[cl(t)]<"u")}function UI(){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]:fb();const r=pb("useDefaults");if(t=t??r.type.name??r.type.__name,!t)throw new Error("[Vuetify] Could not determine component name");const f=pu(()=>{var h;return(h=e.value)==null?void 0:h[n._as??t]}),g=new Proxy(n,{get(h,d){var a,l,u,c;const i=Reflect.get(h,d);if(d==="class"||d==="style")return[(a=f.value)==null?void 0:a[d],i].filter(b=>b!=null);if(jI(r.vnode,d))return i;const s=(l=f.value)==null?void 0:l[d];if(s!==void 0)return s;const p=(c=(u=e.value)==null?void 0:u.global)==null?void 0:c[d];return p!==void 0?p:i}}),m=Ep();Rp(()=>{if(f.value){const h=Object.entries(f.value).filter(d=>{let[a]=d;return a.startsWith(a[0].toUpperCase())});m.value=h.length?Object.fromEntries(h):void 0}else m.value=void 0});function w(){const h=HI(Id,r);Op(Id,pu(()=>m.value?hb((h==null?void 0:h.value)??{},m.value):h==null?void 0:h.value))}return{props:g,provideSubDefaults:w}}function Mc(n){if(n._setup=n._setup??n.setup,!n.name)return BI("The component is missing an explicit name, unable to generate default prop value"),n;if(n._setup){n.props=db(n.props??{},n.name)();const t=Object.keys(n.props).filter(e=>e!=="class"&&e!=="style");n.filterProps=function(e){return zI(e,t)},n.props._as=String,n.setup=function(e,r){const f=fb();if(!f.value)return n._setup(e,r);const{props:g,provideSubDefaults:m}=UI(e,e._as??n.name,f),w=n._setup(g,r);return m(),w}}return n}function VI(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return t=>(n?Mc:Tp)(t)}const qI=[String,Function,Object,Array],Ic=db({icon:{type:qI},tag:{type:[String,Object,Function],required:!0}},"icon");VI()({name:"VComponentIcon",props:Ic(),setup(n,t){let{slots:e}=t;return()=>{const r=n.icon;return Ve(n.tag,null,{default:()=>{var f;return[n.icon?Ve(r,null,null):(f=e.default)==null?void 0:f.call(e)]}})}}}),Mc({name:"VSvgIcon",inheritAttrs:!1,props:Ic(),setup(n,t){let{attrs:e}=t;return()=>Ve(n.tag,hu(e,{style:null}),{default:()=>[tr("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)?tr("path",{d:r[0],"fill-opacity":r[1]},null):tr("path",{d:r},null)):tr("path",{d:n.icon},null)])]})}}),Mc({name:"VLigatureIcon",props:Ic(),setup(n){return()=>Ve(n.tag,null,{default:()=>[n.icon]})}});const KI=Mc({name:"VClassIcon",props:Ic(),setup(n){return()=>Ve(n.tag,{class:du(n.icon)},null)}}),GI={component:n=>Xs(KI,{...n,class:"mdi"})},Ed=Fp({theme:{defaultTheme:"cosmosDark",themes:{cosmosDark:kI}},icons:{defaultSet:"mdi",sets:{mdi:GI,...FM,...WM}}}),Rd=lw({createApp:fu,appOptions:{render(){return Xs(mw,{})},el:"#openc3-tool"},handleInstance:n=>{n.use(eI),n.use(cb),n.use(Ed),n.use(EI),n.use(WI,{store:cb})}}),UD=er("e",Rd.bootstrap),VD=er("m",Rd.mount),qD=er("u",Rd.unmount)}}});