@aquera/nile-elements 0.1.25 → 0.1.27

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 (198) hide show
  1. package/README.md +12 -0
  2. package/demo/filenames.txt +1 -1
  3. package/demo/index.html +0 -2
  4. package/demo/variables.css +1 -0
  5. package/demo/variables_v2.css +1 -0
  6. package/dist/index.cjs.js +1 -1
  7. package/dist/index.esm.js +1 -1
  8. package/dist/lit-element-9e4e16c6.cjs.js +18 -0
  9. package/dist/lit-element-9e4e16c6.cjs.js.map +1 -0
  10. package/dist/lit-element-a5a64515.esm.js +23 -0
  11. package/dist/nile-avatar/nile-avatar.test.cjs.js +1 -1
  12. package/dist/nile-avatar/nile-avatar.test.cjs.js.map +1 -1
  13. package/dist/nile-avatar/nile-avatar.test.esm.js +1 -1
  14. package/dist/nile-badge/index.cjs.js +1 -1
  15. package/dist/nile-badge/index.esm.js +1 -1
  16. package/dist/nile-badge/nile-badge.cjs.js +1 -1
  17. package/dist/nile-badge/nile-badge.cjs.js.map +1 -1
  18. package/dist/nile-badge/nile-badge.esm.js +1 -1
  19. package/dist/nile-badge/nile-badge.test.cjs.js +1 -1
  20. package/dist/nile-badge/nile-badge.test.cjs.js.map +1 -1
  21. package/dist/nile-badge/nile-badge.test.esm.js +1 -1
  22. package/dist/nile-button/index.cjs.js +1 -1
  23. package/dist/nile-button/index.esm.js +1 -1
  24. package/dist/nile-button/nile-button.cjs.js +1 -1
  25. package/dist/nile-button/nile-button.cjs.js.map +1 -1
  26. package/dist/nile-button/nile-button.esm.js +1 -1
  27. package/dist/nile-button/nile-button.test.cjs.js +1 -1
  28. package/dist/nile-button/nile-button.test.cjs.js.map +1 -1
  29. package/dist/nile-button/nile-button.test.esm.js +1 -1
  30. package/dist/nile-calendar/nile-calendar.test.cjs.js +1 -1
  31. package/dist/nile-calendar/nile-calendar.test.cjs.js.map +1 -1
  32. package/dist/nile-calendar/nile-calendar.test.esm.js +1 -1
  33. package/dist/nile-chip/nile-chip.test.cjs.js +1 -1
  34. package/dist/nile-chip/nile-chip.test.cjs.js.map +1 -1
  35. package/dist/nile-chip/nile-chip.test.esm.js +1 -1
  36. package/dist/nile-dialog/index.cjs.js +1 -1
  37. package/dist/nile-dialog/index.esm.js +1 -1
  38. package/dist/nile-dialog/nile-dialog.cjs.js +1 -1
  39. package/dist/nile-dialog/nile-dialog.cjs.js.map +1 -1
  40. package/dist/nile-dialog/nile-dialog.esm.js +1 -1
  41. package/dist/nile-dialog/nile-dialog.test.cjs.js +1 -1
  42. package/dist/nile-dialog/nile-dialog.test.cjs.js.map +1 -1
  43. package/dist/nile-dialog/nile-dialog.test.esm.js +1 -1
  44. package/dist/nile-drawer/index.cjs.js +1 -1
  45. package/dist/nile-drawer/index.esm.js +1 -1
  46. package/dist/nile-drawer/nile-drawer.cjs.js +1 -1
  47. package/dist/nile-drawer/nile-drawer.cjs.js.map +1 -1
  48. package/dist/nile-drawer/nile-drawer.esm.js +1 -1
  49. package/dist/nile-drawer/nile-drawer.test.cjs.js +1 -1
  50. package/dist/nile-drawer/nile-drawer.test.cjs.js.map +1 -1
  51. package/dist/nile-drawer/nile-drawer.test.esm.js +1 -1
  52. package/dist/nile-highlighter/index.cjs.js +1 -1
  53. package/dist/nile-highlighter/index.esm.js +1 -1
  54. package/dist/nile-highlighter/nile-highlighter.cjs.js +1 -1
  55. package/dist/nile-highlighter/nile-highlighter.esm.js +1 -1
  56. package/dist/nile-icon/icons/svg/comment.cjs.js +2 -0
  57. package/dist/nile-icon/icons/svg/comment.cjs.js.map +1 -0
  58. package/dist/nile-icon/icons/svg/comment.esm.js +1 -0
  59. package/dist/nile-icon/icons/svg/index.cjs.js +1 -1
  60. package/dist/nile-icon/icons/svg/index.esm.js +1 -1
  61. package/dist/nile-icon/icons/svg/returnvalue.cjs.js +1 -1
  62. package/dist/nile-icon/icons/svg/returnvalue.cjs.js.map +1 -1
  63. package/dist/nile-icon/icons/svg/returnvalue.esm.js +1 -1
  64. package/dist/nile-icon/index.cjs.js +1 -1
  65. package/dist/nile-icon/index.cjs.js.map +1 -1
  66. package/dist/nile-icon/index.esm.js +1 -1
  67. package/dist/nile-icon/nile-icon.test.cjs.js +1 -1
  68. package/dist/nile-icon/nile-icon.test.cjs.js.map +1 -1
  69. package/dist/nile-icon/nile-icon.test.esm.js +1 -1
  70. package/dist/nile-icon-button/index.cjs.js +1 -1
  71. package/dist/nile-icon-button/index.esm.js +1 -1
  72. package/dist/nile-icon-button/nile-icon-button.cjs.js +1 -1
  73. package/dist/nile-icon-button/nile-icon-button.cjs.js.map +1 -1
  74. package/dist/nile-icon-button/nile-icon-button.esm.js +1 -1
  75. package/dist/nile-input/index.cjs.js +1 -1
  76. package/dist/nile-input/index.esm.js +1 -1
  77. package/dist/nile-input/nile-input.cjs.js +1 -1
  78. package/dist/nile-input/nile-input.cjs.js.map +1 -1
  79. package/dist/nile-input/nile-input.esm.js +1 -1
  80. package/dist/nile-input/nile-input.test.cjs.js +1 -1
  81. package/dist/nile-input/nile-input.test.cjs.js.map +1 -1
  82. package/dist/nile-input/nile-input.test.esm.js +1 -1
  83. package/dist/nile-menu-item/index.cjs.js +1 -1
  84. package/dist/nile-menu-item/index.esm.js +1 -1
  85. package/dist/nile-menu-item/nile-menu-item.cjs.js +1 -1
  86. package/dist/nile-menu-item/nile-menu-item.cjs.js.map +1 -1
  87. package/dist/nile-menu-item/nile-menu-item.esm.js +1 -1
  88. package/dist/nile-option/index.cjs.js +1 -1
  89. package/dist/nile-option/index.esm.js +1 -1
  90. package/dist/nile-option/nile-option.cjs.js +1 -1
  91. package/dist/nile-option/nile-option.cjs.js.map +1 -1
  92. package/dist/nile-option/nile-option.esm.js +1 -1
  93. package/dist/nile-popover/index.cjs.js +1 -1
  94. package/dist/nile-popover/index.esm.js +1 -1
  95. package/dist/nile-popover/nile-popover.cjs.js +1 -1
  96. package/dist/nile-popover/nile-popover.esm.js +1 -1
  97. package/dist/nile-popover/nile-popover.test.cjs.js +1 -1
  98. package/dist/nile-popover/nile-popover.test.esm.js +1 -1
  99. package/dist/nile-select/index.cjs.js +1 -1
  100. package/dist/nile-select/index.esm.js +1 -1
  101. package/dist/nile-select/nile-select.cjs.js +1 -1
  102. package/dist/nile-select/nile-select.cjs.js.map +1 -1
  103. package/dist/nile-select/nile-select.esm.js +1 -1
  104. package/dist/nile-select/nile-select.test.cjs.js +1 -1
  105. package/dist/nile-select/nile-select.test.cjs.js.map +1 -1
  106. package/dist/nile-select/nile-select.test.esm.js +1 -1
  107. package/dist/nile-slide-toggle/nile-slide-toggle.cjs.js +1 -1
  108. package/dist/nile-slide-toggle/nile-slide-toggle.cjs.js.map +1 -1
  109. package/dist/nile-slide-toggle/nile-slide-toggle.esm.js +2 -2
  110. package/dist/nile-slide-toggle/nile-slide-toggle.test.cjs.js +1 -1
  111. package/dist/nile-slide-toggle/nile-slide-toggle.test.cjs.js.map +1 -1
  112. package/dist/nile-slide-toggle/nile-slide-toggle.test.esm.js +1 -1
  113. package/dist/nile-tab/index.cjs.js +1 -1
  114. package/dist/nile-tab/index.esm.js +1 -1
  115. package/dist/nile-tab/nile-tab.cjs.js +1 -1
  116. package/dist/nile-tab/nile-tab.cjs.js.map +1 -1
  117. package/dist/nile-tab/nile-tab.esm.js +1 -1
  118. package/dist/nile-tab-group/index.cjs.js +1 -1
  119. package/dist/nile-tab-group/index.esm.js +1 -1
  120. package/dist/nile-tab-group/nile-tab-group.cjs.js +1 -1
  121. package/dist/nile-tab-group/nile-tab-group.cjs.js.map +1 -1
  122. package/dist/nile-tab-group/nile-tab-group.css.cjs.js +1 -1
  123. package/dist/nile-tab-group/nile-tab-group.css.cjs.js.map +1 -1
  124. package/dist/nile-tab-group/nile-tab-group.css.esm.js +2 -2
  125. package/dist/nile-tab-group/nile-tab-group.esm.js +1 -1
  126. package/dist/nile-tab-group/nile-tab-group.test.cjs.js +1 -1
  127. package/dist/nile-tab-group/nile-tab-group.test.cjs.js.map +1 -1
  128. package/dist/nile-tab-group/nile-tab-group.test.esm.js +1 -1
  129. package/dist/nile-tag/index.cjs.js +1 -1
  130. package/dist/nile-tag/index.esm.js +1 -1
  131. package/dist/nile-tag/nile-tag.cjs.js +1 -1
  132. package/dist/nile-tag/nile-tag.cjs.js.map +1 -1
  133. package/dist/nile-tag/nile-tag.esm.js +1 -1
  134. package/dist/nile-toast/index.cjs.js +1 -1
  135. package/dist/nile-toast/index.esm.js +1 -1
  136. package/dist/nile-toast/nile-toast.cjs.js +1 -1
  137. package/dist/nile-toast/nile-toast.cjs.js.map +1 -1
  138. package/dist/nile-toast/nile-toast.esm.js +2 -2
  139. package/dist/nile-tree/index.cjs.js +1 -1
  140. package/dist/nile-tree/index.esm.js +1 -1
  141. package/dist/nile-tree/nile-tree.cjs.js +1 -1
  142. package/dist/nile-tree/nile-tree.cjs.js.map +1 -1
  143. package/dist/nile-tree/nile-tree.esm.js +1 -1
  144. package/dist/nile-tree-item/index.cjs.js +1 -1
  145. package/dist/nile-tree-item/index.esm.js +1 -1
  146. package/dist/nile-tree-item/nile-tree-item.cjs.js +1 -1
  147. package/dist/nile-tree-item/nile-tree-item.cjs.js.map +1 -1
  148. package/dist/nile-tree-item/nile-tree-item.esm.js +1 -1
  149. package/dist/src/index.d.ts +0 -1
  150. package/dist/src/index.js +0 -1
  151. package/dist/src/index.js.map +1 -1
  152. package/dist/src/nile-icon/icons/svg/comment.d.ts +5 -0
  153. package/dist/src/nile-icon/icons/svg/comment.js +5 -0
  154. package/dist/src/nile-icon/icons/svg/comment.js.map +1 -0
  155. package/dist/src/nile-icon/icons/svg/index.d.ts +1 -1
  156. package/dist/src/nile-icon/icons/svg/index.js +1 -1
  157. package/dist/src/nile-icon/icons/svg/index.js.map +1 -1
  158. package/dist/src/nile-slide-toggle/nile-slide-toggle.js +2 -2
  159. package/dist/src/nile-slide-toggle/nile-slide-toggle.js.map +1 -1
  160. package/dist/src/nile-slide-toggle/nile-slide-toggle.test.js +2 -2
  161. package/dist/src/nile-slide-toggle/nile-slide-toggle.test.js.map +1 -1
  162. package/dist/src/nile-tab-group/nile-tab-group.css.js +2 -2
  163. package/dist/src/nile-tab-group/nile-tab-group.css.js.map +1 -1
  164. package/dist/src/nile-tab-group/nile-tab-group.js.map +1 -1
  165. package/dist/tsconfig.tsbuildinfo +1 -1
  166. package/package.json +3 -4
  167. package/src/index.ts +1 -2
  168. package/src/nile-icon/icons/svg/comment.ts +5 -0
  169. package/src/nile-icon/icons/svg/index.ts +1 -1
  170. package/src/nile-slide-toggle/nile-slide-toggle.test.ts +2 -2
  171. package/src/nile-slide-toggle/nile-slide-toggle.ts +2 -2
  172. package/src/nile-tab-group/nile-tab-group.css.ts +2 -2
  173. package/src/nile-tab-group/nile-tab-group.ts +1 -1
  174. package/vscode-html-custom-data.json +0 -20
  175. package/dist/lit-element-3b4aa6c6.esm.js +0 -23
  176. package/dist/lit-element-b510b02d.cjs.js +0 -14
  177. package/dist/lit-element-b510b02d.cjs.js.map +0 -1
  178. package/dist/nile-tour/index.cjs.js +0 -2
  179. package/dist/nile-tour/index.cjs.js.map +0 -1
  180. package/dist/nile-tour/index.esm.js +0 -1
  181. package/dist/nile-tour/nile-tour.cjs.js +0 -10
  182. package/dist/nile-tour/nile-tour.cjs.js.map +0 -1
  183. package/dist/nile-tour/nile-tour.css.cjs.js +0 -2
  184. package/dist/nile-tour/nile-tour.css.cjs.js.map +0 -1
  185. package/dist/nile-tour/nile-tour.css.esm.js +0 -233
  186. package/dist/nile-tour/nile-tour.esm.js +0 -24
  187. package/dist/src/nile-tour/index.d.ts +0 -1
  188. package/dist/src/nile-tour/index.js +0 -2
  189. package/dist/src/nile-tour/index.js.map +0 -1
  190. package/dist/src/nile-tour/nile-tour.css.d.ts +0 -12
  191. package/dist/src/nile-tour/nile-tour.css.js +0 -245
  192. package/dist/src/nile-tour/nile-tour.css.js.map +0 -1
  193. package/dist/src/nile-tour/nile-tour.d.ts +0 -36
  194. package/dist/src/nile-tour/nile-tour.js +0 -180
  195. package/dist/src/nile-tour/nile-tour.js.map +0 -1
  196. package/src/nile-tour/index.ts +0 -1
  197. package/src/nile-tour/nile-tour.css.ts +0 -247
  198. package/src/nile-tour/nile-tour.ts +0 -199
@@ -1,2 +1,2 @@
1
- System.register(["tslib","../lit-element-b510b02d.cjs.js","lit/decorators.js","./nile-highlighter.css.cjs.js","../internal/nile-element.cjs.js","lit"],function(_export,_context){"use strict";var t,e,n,i,r,s,o,_excluded,_t48,_t62,_templateObject,l,a,c,u,m,p,d,g,j,y,b,_w,k,v,S,O,P,R,_$,B,G,q,z,F,H,U,W,V,Y,Q,Z,tt,st,ot,lt,at,ct,mt,pt,ht,dt,ft,gt,jt,yt,bt,wt,kt,vt,St,xt,Ct,At,Pt,_t,$t,Bt,It,Gt,qt,zt,Ft,Ht,Ut,Jt,Kt,Xt,Yt,Qt,Zt,te,ee,ne,re,se,oe,ae,ue,me,de,fe,ge,je,ye,be,we,Se,xe,Ce,Ae,Le,Te,Me,Oe,Ne,De,Ee,_e,Re,$e,Be,Ie,Ge,Fe,He,Ue,Ke,Qe,Ze,tn,nn,sn,cn,un,pn,dn,fn,gn,jn,Pn,Nn,_n,In,qn,zn,Wn,si,oi,li,ai,ci,hi,di,fi,bi,wi;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function _superPropGet(t,o,e,r){var p=_get(_getPrototypeOf(1&r?t.prototype:t),o,e);return 2&r&&"function"==typeof p?function(t){return p.apply(e,t);}:p;}function _get(){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var p=_superPropBase(e,t);if(p){var n=Object.getOwnPropertyDescriptor(p,t);return n.get?n.get.call(arguments.length<3?e:r):n.value;}},_get.apply(null,arguments);}function _superPropBase(t,o){for(;!{}.hasOwnProperty.call(t,o)&&null!==(t=_getPrototypeOf(t)););return t;}function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=_objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)o=n[r],-1===t.indexOf(o)&&{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o]);}return i;}function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(-1!==e.indexOf(n))continue;t[n]=r[n];}return t;}function _toConsumableArray(r){return _arrayWithoutHoles(r)||_iterableToArray(r)||_unsupportedIterableToArray(r)||_nonIterableSpread();}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _iterableToArray(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r);}function _arrayWithoutHoles(r){if(Array.isArray(r))return _arrayLikeToArray(r);}function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t["return"]&&(u=t["return"](),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(r){if(Array.isArray(r))return r;}function _createForOfIteratorHelper(r,e){var t="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=_unsupportedIterableToArray(r))||e&&r&&"number"==typeof r.length){t&&(r=t);var n=0,F=function F(){};return{s:F,n:function(_n35){function n(){return _n35.apply(this,arguments);}n.toString=function(){return _n35.toString();};return n;}(function(){return n>=r.length?{done:!0}:{done:!1,value:r[n++]};}),e:function e(r){throw r;},f:F};}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var o,a=!0,u=!1;return{s:function s(){t=t.call(r);},n:function n(){var r=t.next();return a=r.done,r;},e:function e(r){u=!0,o=r;},f:function f(){try{a||null==t["return"]||t["return"]();}finally{if(u)throw o;}}};}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return e;};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value;},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e];}try{define({},"");}catch(t){define=function define(t,e,r){return t[e]=r;};}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a;}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)};}catch(t){return{type:"throw",arg:t};}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,function(){return this;});var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach(function(e){define(t,e,function(t){return this._invoke(e,t);});});}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then(function(t){invoke("next",t,i,a);},function(t){invoke("throw",t,i,a);}):e.resolve(h).then(function(t){u.value=t,i(u);},function(t){return invoke("throw",t,i,a);});}a(c.arg);}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e(function(e,r){invoke(t,n,e,r);});}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0};}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u;}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg);}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done};}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg);}};}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator["return"]&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y);}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e);}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e;}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0);}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next;};return i.next=i;}}throw new TypeError(_typeof(e)+" is not iterable");}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(g,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name));},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t;},e.awrap=function(t){return{__await:t};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,function(){return this;}),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next();});},defineIteratorMethods(g),define(g,u,"Generator"),define(g,a,function(){return this;}),define(g,"toString",function(){return"[object Generator]";}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next;}return next.done=!0,next;};},e.values=values,Context.prototype={constructor:Context,reset:function reset(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t);},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval;},dispatchException:function dispatchException(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o;}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}}}},abrupt:function abrupt(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break;}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a);},complete:function complete(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y;},finish:function finish(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y;}},"catch":function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r);}return o;}}throw Error("illegal catch attempt");},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y;}},e;}function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}function asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value;}catch(n){return void e(n);}i.done?t(u):Promise.resolve(u).then(r,o);}function _asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise(function(r,o){var a=n.apply(t,e);function _next(n){asyncGeneratorStep(a,r,o,_next,_throw,"next",n);}function _throw(n){asyncGeneratorStep(a,r,o,_next,_throw,"throw",n);}_next(void 0);});};}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _wrapNativeSuper(t){var r="function"==typeof Map?new Map():void 0;return _wrapNativeSuper=function _wrapNativeSuper(t){if(null===t||!_isNativeFunction(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(t))return r.get(t);r.set(t,Wrapper);}function Wrapper(){return _construct(t,arguments,_getPrototypeOf(this).constructor);}return Wrapper.prototype=Object.create(t.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(Wrapper,t);},_wrapNativeSuper(t);}function _construct(t,e,r){if(_isNativeReflectConstruct())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,e);var p=new(t.bind.apply(t,o))();return r&&_setPrototypeOf(p,r.prototype),p;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _isNativeFunction(t){try{return-1!==Function.toString.call(t).indexOf("[native code]");}catch(n){return"function"==typeof t;}}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable;})),t.push.apply(t,o);}return t;}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach(function(r){_defineProperty(e,r,t[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));});}return e;}function _defineProperty(e,r,t){return(r=_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function h(){return"undefined"!=typeof performance?performance.now():Date.now();}function f(_x){return _f.apply(this,arguments);}function _f(){_f=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee9(t){var e,n,i,r,s,o,l,a;return _regeneratorRuntime().wrap(function _callee9$(_context10){while(1)switch(_context10.prev=_context10.next){case 0:l=function _l9(t,e){return t?function(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:1024;var i=e+n;var r=e;for(;t[r]&&!(r>=i);)++r;if(r-e>16&&t.buffer&&o)return o.decode(t.subarray(e,r));var s="";for(;e<r;){var _n51=t[e++];if(!(128&_n51)){s+=String.fromCharCode(_n51);continue;}var _i26=63&t[e++];if(192==(224&_n51)){s+=String.fromCharCode((31&_n51)<<6|_i26);continue;}var _r30=63&t[e++];if(_n51=224==(240&_n51)?(15&_n51)<<12|_i26<<6|_r30:(7&_n51)<<18|_i26<<12|_r30<<6|63&t[e++],_n51<65536)s+=String.fromCharCode(_n51);else{var _t109=_n51-65536;s+=String.fromCharCode(55296|_t109>>10,56320|1023&_t109);}}return s;}(i.HEAPU8,t,e):"";};s=function _s24(t){try{return e.grow(t-n.byteLength+65535>>>16),r(e.buffer),1;}catch(_unused){}};r=function _r32(t){n=t,i.HEAPU8=new Uint8Array(t),i.HEAPU32=new Uint32Array(t);};i={};o="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;a={emscripten_get_now:h,emscripten_memcpy_big:function emscripten_memcpy_big(t,e,n){i.HEAPU8.copyWithin(t,e,e+n);},emscripten_resize_heap:function emscripten_resize_heap(t){var e=i.HEAPU8.length,n=2147483648;if((t>>>=0)>n)return!1;for(var _i27=1;_i27<=4;_i27*=2){var _r31=e*(1+.2/_i27);_r31=Math.min(_r31,t+100663296);if(s(Math.min(n,d(Math.max(t,_r31),65536))))return!0;}return!1;},fd_write:function fd_write(){return 0;}};_context10.next=8;return _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8(){var n,s;return _regeneratorRuntime().wrap(function _callee8$(_context9){while(1)switch(_context9.prev=_context9.next){case 0:n={env:a,wasi_snapshot_preview1:a};_context9.next=3;return t(n);case 3:s=_context9.sent;e=s.memory,r(e.buffer),Object.assign(i,s),i.UTF8ToString=l;case 5:case"end":return _context9.stop();}},_callee8);}))();case 8:return _context10.abrupt("return",i);case 9:case"end":return _context10.stop();}},_callee9);}));return _f.apply(this,arguments);}function x(t){if(k)return k;return k=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(){return _regeneratorRuntime().wrap(function _callee3$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:_context4.next=2;return f(/*#__PURE__*/function(){var _ref2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(e){var n,i;return _regeneratorRuntime().wrap(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:n=t;_context3.next=3;return n;case 3:n=_context3.sent;_context3.t0="function"==typeof n;if(!_context3.t0){_context3.next=9;break;}_context3.next=8;return n(e);case 8:n=_context3.sent;case 9:_context3.t1="function"==typeof n;if(!_context3.t1){_context3.next=14;break;}_context3.next=13;return n(e);case 13:n=_context3.sent;case 14:if(!("function"==typeof n.instantiator)){_context3.next=20;break;}_context3.next=17;return n.instantiator(e);case 17:n=_context3.sent;_context3.next=57;break;case 20:if(function(t){return"function"==typeof t["default"];}(n)){_context3.next=54;break;}(function(t){return void 0!==t.data;})(n)&&(n=n.data);if(function(t){return"undefined"!=typeof Response&&t instanceof Response;}(n)){_context3.next=42;break;}if(function(t,_Buffer$isBuffer,_Buffer){return"undefined"!=typeof ArrayBuffer&&(t instanceof ArrayBuffer||ArrayBuffer.isView(t))||"undefined"!=typeof Buffer&&((_Buffer$isBuffer=(_Buffer=Buffer).isBuffer)===null||_Buffer$isBuffer===void 0?void 0:_Buffer$isBuffer.call(_Buffer,t))||"undefined"!=typeof SharedArrayBuffer&&t instanceof SharedArrayBuffer||"undefined"!=typeof Uint32Array&&t instanceof Uint32Array;}(n)){_context3.next=37;break;}if(!(n instanceof WebAssembly.Module)){_context3.next=30;break;}_context3.next=27;return C(n)(e);case 27:n=_context3.sent;_context3.next=35;break;case 30:_context3.t2="default"in n&&n["default"]instanceof WebAssembly.Module;if(!_context3.t2){_context3.next=35;break;}_context3.next=34;return C(n["default"])(e);case 34:n=_context3.sent;case 35:_context3.next=40;break;case 37:_context3.next=39;return C(n)(e);case 39:n=_context3.sent;case 40:_context3.next=52;break;case 42:if(!("function"==typeof WebAssembly.instantiateStreaming)){_context3.next=48;break;}_context3.next=45;return(i=n,function(t){return WebAssembly.instantiateStreaming(i,t);})(e);case 45:_context3.t3=_context3.sent;_context3.next=51;break;case 48:_context3.next=50;return function(t){return/*#__PURE__*/function(){var _ref3=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(e){var n;return _regeneratorRuntime().wrap(function _callee$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_context2.next=2;return t.arrayBuffer();case 2:n=_context2.sent;return _context2.abrupt("return",WebAssembly.instantiate(n,e));case 4:case"end":return _context2.stop();}},_callee);}));return function(_x3){return _ref3.apply(this,arguments);};}();}(n)(e);case 50:_context3.t3=_context3.sent;case 51:n=_context3.t3;case 52:_context3.next=57;break;case 54:_context3.next=56;return n["default"](e);case 56:n=_context3.sent;case 57:"instance"in n&&(n=n.instance);"exports"in n&&(n=n.exports);return _context3.abrupt("return",n);case 60:case"end":return _context3.stop();}},_callee2);}));return function(_x2){return _ref2.apply(this,arguments);};}());case 2:y=_context4.sent;case 3:case"end":return _context4.stop();}},_callee3);}))(),k;}function C(t){return function(e){return WebAssembly.instantiate(t,e);};}function A(_x4){return _A.apply(this,arguments);}function _A(){_A=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee10(t){return _regeneratorRuntime().wrap(function _callee10$(_context11){while(1)switch(_context11.prev=_context11.next){case 0:_context11.t0=t;if(!_context11.t0){_context11.next=4;break;}_context11.next=4;return x(t);case 4:return _context11.abrupt("return",{createScanner:function createScanner(t){return new S(t.map(function(t){return"string"==typeof t?t:t.source;}));},createString:function createString(t){return new v(t);}});case 5:case"end":return _context11.stop();}},_callee10);}));return _A.apply(this,arguments);}function L(t){return Array.isArray(t)?function(t){var e=[];for(var _n7=0,i=t.length;_n7<i;_n7++)e[_n7]=L(t[_n7]);return e;}(t):t instanceof RegExp?t:"object"==_typeof(t)?function(t){var e={};for(var _n8 in t)e[_n8]=L(t[_n8]);return e;}(t):t;}function T(t){for(var _len=arguments.length,e=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++){e[_key-1]=arguments[_key];}return e.forEach(function(e){for(var _n9 in e)t[_n9]=e[_n9];}),t;}function M(t){var e=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===e?t:~e==t.length-1?M(t.substring(0,t.length-1)):t.substr(1+~e);}function N(t,e){return t<e?-1:t>e?1:0;}function D(t,e){if(null===t&&null===e)return 0;if(!t)return-1;if(!e)return 1;var n=t.length,i=e.length;if(n===i){for(var _i5=0;_i5<n;_i5++){var _n10=N(t[_i5],e[_i5]);if(0!==_n10)return _n10;}return 0;}return n-i;}function E(t){return!!/^#[0-9a-f]{6}$/i.test(t)||!!/^#[0-9a-f]{8}$/i.test(t)||!!/^#[0-9a-f]{3}$/i.test(t)||!!/^#[0-9a-f]{4}$/i.test(t);}function _(t){return t.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&");}function I(t,e){return e===t||t.startsWith(e)&&"."===t[e.length];}function J(t,e){var n=[],i=function(t){var e=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=e.exec(t);return{next:function next(){if(!n)return null;var i=n[0];return n=e.exec(t),i;}};}(t);var r=i.next();for(;null!==r;){var _t27=0;if(2===r.length&&":"===r.charAt(1)){switch(r.charAt(0)){case"R":_t27=1;break;case"L":_t27=-1;break;default:console.log("Unknown priority ".concat(r," in scope selector"));}r=i.next();}var _e10=o();if(n.push({matcher:_e10,priority:_t27}),","!==r)break;r=i.next();}return n;function s(){if("-"===r){r=i.next();var _t28=s();return function(e){return!!_t28&&!_t28(e);};}if("("===r){r=i.next();var _t29=function(){var t=[];var e=o();for(;e&&(t.push(e),"|"===r||","===r);){do{r=i.next();}while("|"===r||","===r);e=o();}return function(e){return t.some(function(t){return t(e);});};}();return")"===r&&(r=i.next()),_t29;}if(K(r)){var _t30=[];do{_t30.push(r),r=i.next();}while(K(r));return function(n){return e(_t30,n);};}return null;}function o(){var t=[];var e=s();for(;e;)t.push(e),e=s();return function(e){return t.every(function(t){return t(e);});};}}function K(t){return!!t&&!!t.match(/[\w\.:]+/);}function X(t){"function"==typeof t.dispose&&t.dispose();}function et(t,e,n,i){var r=n.lookup(t.scopeName);if(!r){if(t.scopeName===e)throw new Error("No grammar provided for <".concat(e,">"));return;}var s=n.lookup(e);t instanceof Y?it({baseGrammar:s,selfGrammar:r},i):nt(t.ruleName,{baseGrammar:s,selfGrammar:r,repository:r.repository},i);var o=n.injections(t.scopeName);if(o){var _iterator4=_createForOfIteratorHelper(o),_step4;try{for(_iterator4.s();!(_step4=_iterator4.n()).done;){var _t32=_step4.value;i.add(new Y(_t32));}}catch(err){_iterator4.e(err);}finally{_iterator4.f();}}}function nt(t,e,n){if(e.repository&&e.repository[t]){rt([e.repository[t]],e,n);}}function it(t,e){t.selfGrammar.patterns&&Array.isArray(t.selfGrammar.patterns)&&rt(t.selfGrammar.patterns,_objectSpread(_objectSpread({},t),{},{repository:t.selfGrammar.repository}),e),t.selfGrammar.injections&&rt(Object.values(t.selfGrammar.injections),_objectSpread(_objectSpread({},t),{},{repository:t.selfGrammar.repository}),e);}function rt(t,e,n){var _iterator5=_createForOfIteratorHelper(t),_step5;try{for(_iterator5.s();!(_step5=_iterator5.n()).done;){var i=_step5.value;if(n.visitedRule.has(i))continue;n.visitedRule.add(i);var _t33=i.repository?T({},e.repository,i.repository):e.repository;Array.isArray(i.patterns)&&rt(i.patterns,_objectSpread(_objectSpread({},e),{},{repository:_t33}),n);var _r8=i.include;if(!_r8)continue;var _s6=ut(_r8);switch(_s6.kind){case 0:it(_objectSpread(_objectSpread({},e),{},{selfGrammar:e.baseGrammar}),n);break;case 1:it(e,n);break;case 2:nt(_s6.ruleName,_objectSpread(_objectSpread({},e),{},{repository:_t33}),n);break;case 3:case 4:var _i6=_s6.scopeName===e.selfGrammar.scopeName?e.selfGrammar:_s6.scopeName===e.baseGrammar.scopeName?e.baseGrammar:void 0;if(_i6){var _r9={baseGrammar:e.baseGrammar,selfGrammar:_i6,repository:_t33};4===_s6.kind?nt(_s6.ruleName,_r9,n):it(_r9,n);}else 4===_s6.kind?n.add(new Q(_s6.scopeName,_s6.ruleName)):n.add(new Y(_s6.scopeName));}}}catch(err){_iterator5.e(err);}finally{_iterator5.f();}}function ut(t){if("$base"===t)return new st();if("$self"===t)return new ot();var e=t.indexOf("#");if(-1===e)return new at(t);if(0===e)return new lt(t.substring(1));{var _n19=t.substring(0,e),i=t.substring(e+1);return new ct(_n19,i);}}function Lt(t,e,n,i,r,s,o,l){var a=e.content.length;var c=!1,u=-1;if(o){var _o8=function(t,e,n,i,r,s){var o=r.beginRuleCapturedEOL?0:-1;var l=[];for(var _e23=r;_e23;_e23=_e23.pop()){var _n23=_e23.getRule(t);_n23 instanceof yt&&l.push({rule:_n23,stack:_e23});}for(var _a4=l.pop();_a4;_a4=l.pop()){var _Mt=Mt(_a4.rule,t,_a4.stack.endRule,n,i===o),_l4=_Mt.ruleScanner,_c4=_Mt.findOptions,_u3=_l4.findNextMatchSync(e,i,_c4);if(!_u3){r=_a4.stack.pop();break;}if(-2!==_u3.ruleId){r=_a4.stack.pop();break;}_u3.captureIndices&&_u3.captureIndices.length&&(s.produce(_a4.stack,_u3.captureIndices[0].start),Ot(t,e,n,_a4.stack,s,_a4.rule.whileCaptures,_u3.captureIndices),s.produce(_a4.stack,_u3.captureIndices[0].end),o=_u3.captureIndices[0].end,_u3.captureIndices[0].end>i&&(i=_u3.captureIndices[0].end,n=!1));}return{stack:r,linePos:i,anchorPosition:o,isFirstLine:n};}(t,e,n,i,r,s);r=_o8.stack,i=_o8.linePos,n=_o8.isFirstLine,u=_o8.anchorPosition;}var m=Date.now();for(;!c;){if(0!==l){if(Date.now()-m>l)return new At(r,!0);}p();}return new At(r,!1);function p(){var o=function(t,e,n,i,r,s){var o=function(t,e,n,i,r,s){var o=r.getRule(t),_Tt=Tt(o,t,r.endRule,n,i===s),l=_Tt.ruleScanner,a=_Tt.findOptions,c=l.findNextMatchSync(e,i,a);if(c)return{captureIndices:c.captureIndices,matchedRuleId:c.ruleId};return null;}(t,e,n,i,r,s),l=t.getInjections();if(0===l.length)return o;var a=function(t,e,n,i,r,s,o){var l,a=Number.MAX_VALUE,c=null,u=0;var m=s.contentNameScopesList.getScopeNames();for(var _s12=0,_p=t.length;_s12<_p;_s12++){var _p2=t[_s12];if(!_p2.matcher(m))continue;var _h=e.getRule(_p2.ruleId),_Tt2=Tt(_h,e,null,i,r===o),_d=_Tt2.ruleScanner,_f2=_Tt2.findOptions,_g=_d.findNextMatchSync(n,r,_f2);if(!_g)continue;var _j=_g.captureIndices[0].start;if(!(_j>=a)&&(a=_j,c=_g.captureIndices,l=_g.ruleId,u=_p2.priority,a===r))break;}if(c)return{priorityMatch:-1===u,captureIndices:c,matchedRuleId:l};return null;}(l,t,e,n,i,r,s);if(!a)return o;if(!o)return a;var c=o.captureIndices[0].start,u=a.captureIndices[0].start;if(u<c||a.priorityMatch&&u===c)return a;return o;}(t,e,n,i,r,u);if(!o)return s.produce(r,a),void(c=!0);var l=o.captureIndices,m=o.matchedRuleId,p=!!(l&&l.length>0)&&l[0].end>i;if(-1===m){var _o9=r.getRule(t);s.produce(r,l[0].start),r=r.withContentNameScopesList(r.nameScopesList),Ot(t,e,n,r,s,_o9.endCaptures,l),s.produce(r,l[0].end);var _m=r;if(r=r.parent,u=_m.getAnchorPos(),!p&&_m.getEnterPos()===i)return r=_m,s.produce(r,a),void(c=!0);}else{var _o10=t.getRule(m);s.produce(r,l[0].start);var _h2=r,_d2=_o10.getName(e.content,l),_f3=r.contentNameScopesList.pushAttributed(_d2,t);if(r=r.push(m,i,u,l[0].end===a,null,_f3,_f3),_o10 instanceof jt){var _i7=_o10;Ot(t,e,n,r,s,_i7.beginCaptures,l),s.produce(r,l[0].end),u=l[0].end;var _m2=_i7.getContentName(e.content,l),_d3=_f3.pushAttributed(_m2,t);if(r=r.withContentNameScopesList(_d3),_i7.endHasBackReferences&&(r=r.withEndRule(_i7.getEndWithResolvedBackReferences(e.content,l))),!p&&_h2.hasSameRuleAs(r))return r=r.pop(),s.produce(r,a),void(c=!0);}else if(_o10 instanceof yt){var _i8=_o10;Ot(t,e,n,r,s,_i8.beginCaptures,l),s.produce(r,l[0].end),u=l[0].end;var _m3=_i8.getContentName(e.content,l),_d4=_f3.pushAttributed(_m3,t);if(r=r.withContentNameScopesList(_d4),_i8.whileHasBackReferences&&(r=r.withEndRule(_i8.getWhileWithResolvedBackReferences(e.content,l))),!p&&_h2.hasSameRuleAs(r))return r=r.pop(),s.produce(r,a),void(c=!0);}else{if(Ot(t,e,n,r,s,_o10.captures,l),s.produce(r,l[0].end),r=r.pop(),!p)return r=r.safePop(),s.produce(r,a),void(c=!0);}}l[0].end>i&&(i=l[0].end,n=!1);}}function Tt(t,e,n,i,r){return{ruleScanner:t.compileAG(e,n,i,r),findOptions:0};}function Mt(t,e,n,i,r){return{ruleScanner:t.compileWhileAG(e,n,i,r),findOptions:0};}function Ot(t,e,n,i,r,s,o){if(0===s.length)return;var l=e.content,a=Math.min(s.length,o.length),c=[],u=o[0].end;for(var _e24=0;_e24<a;_e24++){var _a5=s[_e24];if(null===_a5)continue;var _m4=o[_e24];if(0===_m4.length)continue;if(_m4.start>u)break;for(;c.length>0&&c[c.length-1].endPos<=_m4.start;)r.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop();if(c.length>0?r.produceFromScopes(c[c.length-1].scopes,_m4.start):r.produce(i,_m4.start),_a5.retokenizeCapturedWithRuleId){var _e25=_a5.getName(l,o),_s13=i.contentNameScopesList.pushAttributed(_e25,t),_c5=_a5.getContentName(l,o),_u4=_s13.pushAttributed(_c5,t),_p3=i.push(_a5.retokenizeCapturedWithRuleId,_m4.start,-1,!1,null,_s13,_u4),_h3=t.createOnigString(l.substring(0,_m4.end));Lt(t,_h3,n&&0===_m4.start,_m4.start,_p3,r,!1,0),X(_h3);continue;}var _p4=_a5.getName(l,o);if(null!==_p4){var _e26=(c.length>0?c[c.length-1].scopes:i.contentNameScopesList).pushAttributed(_p4,t);c.push(new Pt(_e26,_m4.end));}}for(;c.length>0;)r.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop();}function Nt(t,e,n,i,r){var s=J(e,Dt),o=bt.getCompiledRuleId(n,i,r.repository);var _iterator9=_createForOfIteratorHelper(s),_step9;try{for(_iterator9.s();!(_step9=_iterator9.n()).done;){var _n24=_step9.value;t.push({debugSelector:e,matcher:_n24.matcher,ruleId:o,grammar:r,priority:_n24.priority});}}catch(err){_iterator9.e(err);}finally{_iterator9.f();}}function Dt(t,e){if(e.length<t.length)return!1;var n=0;return t.every(function(t){for(var i=n;i<e.length;i++)if(Et(e[i],t))return n=i+1,!0;return!1;});}function Et(t,e){if(!t)return!1;if(t===e)return!0;var n=e.length;return t.length>n&&t.substr(0,n)===e&&"."===t[n];}function Rt(t,e){return(t=L(t)).repository=t.repository||{},t.repository.$self={$vscodeTextmateLocation:t.$vscodeTextmateLocation,patterns:t.patterns,name:t.scopeName},t.repository.$base=e||t.repository.$self,t;}function Wt(t,e){var n={},i={};var r=-1;for(;++r<t.length;)Object.assign(n,t[r].property),Object.assign(i,t[r].normal);return new Ut(n,i,e);}function Vt(t){return t.toLowerCase();}function ie(){return Math.pow(2,++Kt);}function le(t,e,n){n&&(t[e]=n);}function ce(t){var e={},n={};var i;for(i in t.properties)if(ae.call(t.properties,i)){var _r14=t.properties[i],_s16=new oe(i,t.transform(t.attributes||{},i),_r14,t.space);t.mustUseProperty&&t.mustUseProperty.includes(i)&&(_s16.mustUseProperty=!0),e[i]=_s16,n[Vt(i)]=i,n[Vt(_s16.attribute)]=i;}return new Ut(e,n,t.space);}function pe(t,e){return e in t?t[e]:e;}function he(t,e){return pe(t,e.toLowerCase());}function ke(t){return"-"+t.toLowerCase();}function ve(t){return t.charAt(1).toUpperCase();}function Pe(t,e){return t=t.replace(e.subset?function(t){var e=Oe.get(t);e||(e=function(t){var e=[];var n=-1;for(;++n<t.length;)e.push(t[n].replace(Me,"\\$&"));return new RegExp("(?:"+e.join("|")+")","g");}(t),Oe.set(t,e));return e;}(e.subset):Ae,n),e.subset||e.escapeOnly?t:t.replace(Le,function(t,n,i){return e.format(1024*(t.charCodeAt(0)-55296)+t.charCodeAt(1)-56320+65536,i.charCodeAt(n+2),e);}).replace(Te,n);function n(t,n,i){return e.format(t.charCodeAt(0),i.charCodeAt(n+1),e);}}function qe(t,e,n){var i,r=function(t,e,n){var i="&#x"+t.toString(16).toUpperCase();return n&&e&&!Ne.test(String.fromCharCode(e))?i:i+";";}(t,e,n.omitOptionalSemicolons);if((n.useNamedReferences||n.useShortestReferences)&&(i=function(t,e,n,i){var r=String.fromCharCode(t);if($e.call(Be,r)){var _t76=Be[r],_s17="&"+_t76;return n&&Ee.includes(_t76)&&!Re.includes(_t76)&&(!i||e&&61!==e&&Ge.test(String.fromCharCode(e)))?_s17:_s17+";";}return"";}(t,e,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!i)&&n.useShortestReferences){var _i11=function(t,e,n){var i="&#"+String(t);return n&&e&&!De.test(String.fromCharCode(e))?i:i+";";}(t,e,n.omitOptionalSemicolons);_i11.length<r.length&&(r=_i11);}return i&&(!n.useShortestReferences||i.length<r.length)?i:r;}function ze(t,e){return Pe(t,Object.assign({format:qe},e));}function We(t,e){var n=String(t);if("string"!=typeof e)throw new TypeError("Expected character");var i=0,r=n.indexOf(e);for(;-1!==r;)i++,r=n.indexOf(e,r+e.length);return i;}function Ve(t,e){var n=e||{};return(""===t[t.length-1]?[].concat(_toConsumableArray(t),[""]):t).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim();}function Je(t){return t.join(" ").trim();}function Xe(t){return"object"==_typeof(t)?"text"===t.type&&Ye(t.value):Ye(t);}function Ye(t){return""===t.replace(Ke,"");}function en(t){return function(e,n,i){var r=e?e.children:tn;var s=(n||0)+t,o=r[s];if(!i)for(;o&&Xe(o);)s+=t,o=r[s];return o;};}function rn(t){return function(e,n,i){return nn.call(t,e.tagName)&&t[e.tagName](e,n,i);};}function on(t,e,n){var i=Qe(n,e,!0);return!i||"comment"!==i.type&&!("text"===i.type&&Xe(i.value.charAt(0)));}function ln(t,e,n){var i=Qe(n,e);return!i||"element"===i.type&&("rp"===i.tagName||"rt"===i.tagName);}function an(t,e,n){var i=Qe(n,e);return!i||"element"===i.type&&("td"===i.tagName||"th"===i.tagName);}function mn(t,e,n){var i=function(t,e){var n=Vt(e);var i=e,r=Jt;if(n in t.normal)return t.property[t.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&ye.test(e)){if("-"===e.charAt(4)){var _t77=e.slice(5).replace(be,ve);i="data"+_t77.charAt(0).toUpperCase()+_t77.slice(1);}else{var _t78=e.slice(4);if(!be.test(_t78)){var _n32=_t78.replace(we,ke);"-"!==_n32.charAt(0)&&(_n32="-"+_n32),e="data"+_n32;}}r=oe;}return new r(i,e);}(t.schema,e),r=t.settings.allowParseErrors&&"html"===t.schema.space?0:1,s=t.settings.allowDangerousCharacters?0:1;var o,l=t.quote;if(!i.overloadedBoolean||n!==i.attribute&&""!==n?!i["boolean"]&&!i.overloadedBoolean||"string"==typeof n&&n!==i.attribute&&""!==n||(n=Boolean(n)):n=!0,null==n||!1===n||"number"==typeof n&&Number.isNaN(n))return"";var a=ze(i.attribute,Object.assign({},t.settings.characterReferences,{subset:un.name[r][s]}));return!0===n?a:(n=Array.isArray(n)?(i.commaSeparated?Ve:Je)(n,{padLeft:!t.settings.tightCommaSeparatedLists}):String(n),t.settings.collapseEmptyAttributes&&!n?a:(t.settings.preferUnquoted&&(o=ze(n,Object.assign({},t.settings.characterReferences,{attribute:!0,subset:un.unquoted[r][s]}))),o!==n&&(t.settings.quoteSmart&&We(n,l)>We(n,t.alternative)&&(l=t.alternative),o=l+ze(n,Object.assign({},t.settings.characterReferences,{subset:("'"===l?un.single:un["double"])[r][s],attribute:!0}))+l),a+(o?"="+o:o)));}function hn(t,e,n,i){return!n||"element"!==n.type||"script"!==n.tagName&&"style"!==n.tagName?ze(t.value,Object.assign({},i.settings.characterReferences,{subset:pn})):t.value;}function yn(t,e,n){return dn(t,e,n,this);}function bn(t){var e=[],n=t&&t.children||jn;var i=-1;for(;++i<n.length;)e[i]=this.one(n[i],i,t);return e.join("");}function wn(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:!1;var n=t.split(/(\r?\n)/g);var i=0;var r=[];for(var _t79=0;_t79<n.length;_t79+=2){var _n34;var _s18=e?n[_t79]+(n[_t79+1]||""):n[_t79];r.push([_s18,i]),i+=n[_t79].length,i+=((_n34=n[_t79+1])===null||_n34===void 0?void 0:_n34.length)||0;}return r;}function kn(t){return!t||["plaintext","txt","text","plain"].includes(t);}function vn(t){return"ansi"===t||kn(t);}function Sn(t){return"none"===t;}function xn(t){return Sn(t);}function Cn(t,e){var _t$properties;if(!e)return t;t.properties||(t.properties={}),(_t$properties=t.properties)["class"]||(_t$properties["class"]=[]),"string"==typeof t.properties["class"]&&(t.properties["class"]=t.properties["class"].split(/\s+/g)),Array.isArray(t.properties["class"])||(t.properties["class"]=[]);var n=Array.isArray(e)?e:e.split(/\s+/g);var _iterator19=_createForOfIteratorHelper(n),_step19;try{for(_iterator19.s();!(_step19=_iterator19.n()).done;){var _e35=_step19.value;_e35&&!t.properties["class"].includes(_e35)&&t.properties["class"].push(_e35);}}catch(err){_iterator19.e(err);}finally{_iterator19.f();}return t;}function An(_x5){return _An.apply(this,arguments);}function _An(){_An=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee11(t){return _regeneratorRuntime().wrap(function _callee11$(_context12){while(1)switch(_context12.prev=_context12.next){case 0:return _context12.abrupt("return",Promise.resolve("function"==typeof t?t():t).then(function(t){return t["default"]||t;}));case 1:case"end":return _context12.stop();}},_callee11);}));return _An.apply(this,arguments);}function Ln(t,e){var n="string"==typeof t?{}:_objectSpread({},t.colorReplacements),i="string"==typeof t?t:t.name;for(var _i12=0,_Object$entries=Object.entries((e===null||e===void 0?void 0:e.colorReplacements)||{});_i12<_Object$entries.length;_i12++){var _Object$entries$_i=_slicedToArray(_Object$entries[_i12],2),_t80=_Object$entries$_i[0],_r17=_Object$entries$_i[1];"string"==typeof _r17?n[_t80]=_r17:_t80===i&&Object.assign(n,_r17);}return n;}function Tn(t,e){return t&&(e===null||e===void 0?void 0:e[t===null||t===void 0?void 0:t.toLowerCase()])||t;}function Mn(t){var e={};return t.color&&(e.color=t.color),t.bgColor&&(e["background-color"]=t.bgColor),t.fontStyle&&(t.fontStyle&z.Italic&&(e["font-style"]="italic"),t.fontStyle&z.Bold&&(e["font-weight"]="bold"),t.fontStyle&z.Underline&&(e["text-decoration"]="underline")),e;}function On(t){return"string"==typeof t?t:Object.entries(t).map(function(_ref6){var _ref7=_slicedToArray(_ref6,2),t=_ref7[0],e=_ref7[1];return"".concat(t,":").concat(e);}).join(";");}function Dn(t,e){Nn.set(t,e);}function En(t){return Nn.get(t);}function Rn(t){var e=[],n=new Set();return function t(i,_i$nameScopesList){if(n.has(i))return;n.add(i);var r=i===null||i===void 0||(_i$nameScopesList=i.nameScopesList)===null||_i$nameScopesList===void 0?void 0:_i$nameScopesList.scopeName;r&&e.push(r),i.parent&&t(i.parent);}(t),e;}function $n(){var t=new WeakMap();function e(e){if(!t.has(e.meta)){var _n38=function _n38(t){if("number"==typeof t){if(t<0||t>e.source.length)throw new Pn("Invalid decoration offset: ".concat(t,". Code length: ").concat(e.source.length));return _objectSpread(_objectSpread({},i.indexToPos(t)),{},{offset:t});}{var _e38=i.lines[t.line];if(void 0===_e38)throw new Pn("Invalid decoration position ".concat(JSON.stringify(t),". Lines length: ").concat(i.lines.length));if(t.character<0||t.character>_e38.length)throw new Pn("Invalid decoration position ".concat(JSON.stringify(t),". Line ").concat(t.line," length: ").concat(_e38.length));return _objectSpread(_objectSpread({},t),{},{offset:i.posToIndex(t.line,t.character)});}};var i=function(t){var e=wn(t,!0).map(function(_ref8){var _ref9=_slicedToArray(_ref8,1),t=_ref9[0];return t;});return{lines:e,indexToPos:function indexToPos(n){if(n===t.length)return{line:e.length-1,character:e[e.length-1].length};var i=n,r=0;var _iterator20=_createForOfIteratorHelper(e),_step20;try{for(_iterator20.s();!(_step20=_iterator20.n()).done;){var _t81=_step20.value;if(i<_t81.length)break;i-=_t81.length,r++;}}catch(err){_iterator20.e(err);}finally{_iterator20.f();}return{line:r,character:i};},posToIndex:function posToIndex(t,n){var i=0;for(var _n39=0;_n39<t;_n39++)i+=e[_n39].length;return i+=n,i;}};}(e.source),_r18=(e.options.decorations||[]).map(function(t){return _objectSpread(_objectSpread({},t),{},{start:_n38(t.start),end:_n38(t.end)});});!function(t){for(var _e39=0;_e39<t.length;_e39++){var _n40=t[_e39];if(_n40.start.offset>_n40.end.offset)throw new Pn("Invalid decoration range: ".concat(JSON.stringify(_n40.start)," - ").concat(JSON.stringify(_n40.end)));for(var _i13=_e39+1;_i13<t.length;_i13++){var _e40=t[_i13],_r19=_n40.start.offset<_e40.start.offset&&_e40.start.offset<_n40.end.offset,_s19=_n40.start.offset<_e40.end.offset&&_e40.end.offset<_n40.end.offset,_o12=_e40.start.offset<_n40.start.offset&&_n40.start.offset<_e40.end.offset,_l5=_e40.start.offset<_n40.end.offset&&_n40.end.offset<_e40.end.offset;if(_r19||_s19||_o12||_l5){if(_s19&&_s19)continue;if(_o12&&_l5)continue;throw new Pn("Decorations ".concat(JSON.stringify(_n40.start)," and ").concat(JSON.stringify(_e40.start)," intersect."));}}}}(_r18),t.set(e.meta,{decorations:_r18,converter:i,source:e.source});}return t.get(e.meta);}return{name:"shiki:decorations",tokens:function tokens(t){var _this$options$decorat;if(!((_this$options$decorat=this.options.decorations)!==null&&_this$options$decorat!==void 0&&_this$options$decorat.length))return;var n=function(t,e){var n=Array.from(e instanceof Set?e:new Set(e)).sort(function(t,e){return t-e;});return n.length?t.map(function(t){return t.flatMap(function(t){var e=n.filter(function(e){return t.offset<e&&e<t.offset+t.content.length;}).map(function(e){return e-t.offset;}).sort(function(t,e){return t-e;});return e.length?function(t,e){var n=0;var i=[];var _iterator21=_createForOfIteratorHelper(e),_step21;try{for(_iterator21.s();!(_step21=_iterator21.n()).done;){var _r20=_step21.value;_r20>n&&i.push(_objectSpread(_objectSpread({},t),{},{content:t.content.slice(n,_r20),offset:t.offset+n})),n=_r20;}}catch(err){_iterator21.e(err);}finally{_iterator21.f();}return n<t.content.length&&i.push(_objectSpread(_objectSpread({},t),{},{content:t.content.slice(n),offset:t.offset+n})),i;}(t,e):t;});}):t;}(t,e(this).decorations.flatMap(function(t){return[t.start.offset,t.end.offset];}));return n;},code:function code(t){var _this$options$decorat2;if(!((_this$options$decorat2=this.options.decorations)!==null&&_this$options$decorat2!==void 0&&_this$options$decorat2.length))return;var n=e(this),i=Array.from(t.children).filter(function(t){return"element"===t.type&&"span"===t.tagName;});if(i.length!==n.converter.lines.length)throw new Pn("Number of lines in code element (".concat(i.length,") does not match the number of lines in the source (").concat(n.converter.lines.length,"). Failed to apply decorations."));function r(t,e,n,r){var s=i[t];var l="",a=-1,c=-1;if(0===e&&(a=0),0===n&&(c=0),n===Number.POSITIVE_INFINITY&&(c=s.children.length),-1===a||-1===c)for(var _t82=0;_t82<s.children.length;_t82++)l+=Bn(s.children[_t82]),-1===a&&l.length===e&&(a=_t82+1),-1===c&&l.length===n&&(c=_t82+1);if(-1===a)throw new Pn("Failed to find start index for decoration ".concat(JSON.stringify(r.start)));if(-1===c)throw new Pn("Failed to find end index for decoration ".concat(JSON.stringify(r.end)));var u=s.children.slice(a,c);if(r.alwaysWrap||u.length!==s.children.length){if(r.alwaysWrap||1!==u.length||"element"!==u[0].type){var _t83={type:"element",tagName:"span",properties:{},children:u};o(_t83,r,"wrapper"),s.children.splice(a,u.length,_t83);}else o(u[0],r,"token");}else o(s,r,"line");}function s(t,e){i[t]=o(i[t],e,"line");}function o(t,e,n){var _e$properties;var i=e.properties||{},r=e.transform||function(t){return t;};return t.tagName=e.tagName||"span",t.properties=_objectSpread(_objectSpread(_objectSpread({},t.properties),i),{},{"class":t.properties["class"]}),(_e$properties=e.properties)!==null&&_e$properties!==void 0&&_e$properties["class"]&&Cn(t,e.properties["class"]),t=r(t,n)||t;}var l=[],a=n.decorations.sort(function(t,e){return e.start.offset-t.start.offset;});var _iterator22=_createForOfIteratorHelper(a),_step22;try{var _loop=function _loop(){var t=_step22.value;var e=t.start,n=t.end;if(e.line===n.line)r(e.line,e.character,n.character,t);else if(e.line<n.line){r(e.line,e.character,Number.POSITIVE_INFINITY,t);var _loop2=function _loop2(_i14){l.unshift(function(){return s(_i14,t);});};for(var _i14=e.line+1;_i14<n.line;_i14++){_loop2(_i14);}r(n.line,0,n.character,t);}};for(_iterator22.s();!(_step22=_iterator22.n()).done;){_loop();}}catch(err){_iterator22.e(err);}finally{_iterator22.f();}l.forEach(function(t){return t();});}};}function Bn(t){return"text"===t.type?t.value:"element"===t.type?t.children.map(Bn).join(""):"";}function Gn(t){return[].concat(_toConsumableArray(t.transformers||[]),In);}function Fn(t,e){var n=t.indexOf("[",e);if(-1!==n){var _e41=t.indexOf("m",n);return{sequence:t.substring(n+2,_e41).split(";"),startPosition:n,position:_e41+1};}return{position:t.length};}function Hn(t,e){var n=1;var i=t[e+n++];var r;if("2"===i){var _i15=[t[e+n++],t[e+n++],t[e+n]].map(function(t){return Number.parseInt(t);});3!==_i15.length||_i15.some(function(t){return Number.isNaN(t);})||(r={type:"rgb",rgb:_i15});}else if("5"===i){var _i16=Number.parseInt(t[e+n]);Number.isNaN(_i16)||(r={type:"table",index:Number(_i16)});}return[n,r];}function Un(t){var e=[];for(var _n41=0;_n41<t.length;_n41++){var i=t[_n41],_r21=Number.parseInt(i);if(!Number.isNaN(_r21))if(0===_r21)e.push({type:"resetAll"});else if(_r21<=9){zn[_r21]&&e.push({type:"setDecoration",value:zn[_r21]});}else if(_r21<=29){var _t84=zn[_r21-20];_t84&&e.push({type:"resetDecoration",value:_t84});}else if(_r21<=37)e.push({type:"setForegroundColor",value:{type:"named",name:qn[_r21-30]}});else if(38===_r21){var _Hn=Hn(t,_n41),_Hn2=_slicedToArray(_Hn,2),_i17=_Hn2[0],_r22=_Hn2[1];_r22&&e.push({type:"setForegroundColor",value:_r22}),_n41+=_i17;}else if(39===_r21)e.push({type:"resetForegroundColor"});else if(_r21<=47)e.push({type:"setBackgroundColor",value:{type:"named",name:qn[_r21-40]}});else if(48===_r21){var _Hn3=Hn(t,_n41),_Hn4=_slicedToArray(_Hn3,2),_i18=_Hn4[0],_r23=_Hn4[1];_r23&&e.push({type:"setBackgroundColor",value:_r23}),_n41+=_i18;}else 49===_r21?e.push({type:"resetBackgroundColor"}):_r21>=90&&_r21<=97?e.push({type:"setForegroundColor",value:{type:"named",name:qn[_r21-90+8]}}):_r21>=100&&_r21<=107&&e.push({type:"setBackgroundColor",value:{type:"named",name:qn[_r21-100+8]}});}return e;}function Vn(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:Wn;function e(e){return t[e];}function n(t){return"#".concat(t.map(function(t){return Math.max(0,Math.min(t,255)).toString(16).padStart(2,"0");}).join(""));}var i;function r(t){return function(){if(i)return i;i=[];for(var _t85=0;_t85<qn.length;_t85++)i.push(e(qn[_t85]));var t=[0,95,135,175,215,255];for(var _e42=0;_e42<6;_e42++)for(var _r24=0;_r24<6;_r24++)for(var _s20=0;_s20<6;_s20++)i.push(n([t[_e42],t[_r24],t[_s20]]));var r=8;for(var _t86=0;_t86<24;_t86++,r+=10)i.push(n([r,r,r]));return i;}()[t];}return{value:function value(t){switch(t.type){case"named":return e(t.name);case"rgb":return n(t.rgb);case"table":return r(t.index);}}};}function Jn(t,e,n){var i=Ln(t,n),r=wn(e),s=Vn(Object.fromEntries(qn.map(function(e){var _t$colors;return[e,(_t$colors=t.colors)===null||_t$colors===void 0?void 0:_t$colors["terminal.ansi".concat(e[0].toUpperCase()).concat(e.substring(1))]];}))),o=function(){var t=null,e=null,n=new Set();return{parse:function parse(i){var r=[];var s=0;do{var _o13=Fn(i,s),_l6=_o13.sequence?i.substring(s,_o13.startPosition):i.substring(s);if(_l6.length>0&&r.push({value:_l6,foreground:t,background:e,decorations:new Set(n)}),_o13.sequence){var _i19=Un(_o13.sequence);var _iterator23=_createForOfIteratorHelper(_i19),_step23;try{for(_iterator23.s();!(_step23=_iterator23.n()).done;){var _r25=_step23.value;"resetAll"===_r25.type?(t=null,e=null,n.clear()):"resetForegroundColor"===_r25.type?t=null:"resetBackgroundColor"===_r25.type?e=null:"resetDecoration"===_r25.type&&n["delete"](_r25.value);}}catch(err){_iterator23.e(err);}finally{_iterator23.f();}var _iterator24=_createForOfIteratorHelper(_i19),_step24;try{for(_iterator24.s();!(_step24=_iterator24.n()).done;){var _r26=_step24.value;"setForegroundColor"===_r26.type?t=_r26.value:"setBackgroundColor"===_r26.type?e=_r26.value:"setDecoration"===_r26.type&&n.add(_r26.value);}}catch(err){_iterator24.e(err);}finally{_iterator24.f();}}s=_o13.position;}while(s<i.length);return r;}};}();return r.map(function(e){return o.parse(e[0]).map(function(n){var r,o;n.decorations.has("reverse")?(r=n.background?s.value(n.background):t.bg,o=n.foreground?s.value(n.foreground):t.fg):(r=n.foreground?s.value(n.foreground):t.fg,o=n.background?s.value(n.background):void 0),r=Tn(r,i),o=Tn(o,i),n.decorations.has("dim")&&(r=function(t){var e=t.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(e){if(e[3]){var _t87=Math.round(Number.parseInt(e[3],16)/2).toString(16).padStart(2,"0");return"#".concat(e[1]).concat(e[2]).concat(_t87);}return e[2]?"#".concat(e[1]).concat(e[2],"80"):"#".concat(Array.from(e[1]).map(function(t){return"".concat(t).concat(t);}).join(""),"80");}var n=t.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?"var(".concat(n[1],"-dim)"):t;}(r));var l=z.None;return n.decorations.has("bold")&&(l|=z.Bold),n.decorations.has("italic")&&(l|=z.Italic),n.decorations.has("underline")&&(l|=z.Underline),{content:n.value,offset:e[1],color:r,bgColor:o,fontStyle:l};});});}function Kn(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var _n$lang=n.lang,i=_n$lang===void 0?"text":_n$lang,_n$theme=n.theme,r=_n$theme===void 0?t.getLoadedThemes()[0]:_n$theme;if(kn(i)||Sn(r))return wn(e).map(function(t){return[{content:t[0],offset:t[1]}];});var _t$setTheme=t.setTheme(r),s=_t$setTheme.theme,o=_t$setTheme.colorMap;if("ansi"===i)return Jn(s,e,n);var l=t.getLanguage(i);if(n.grammarState){if(n.grammarState.lang!==l.name)throw new m("Grammar state language \"".concat(n.grammarState.lang,"\" does not match highlight language \"").concat(l.name,"\""));if(!n.grammarState.themes.includes(s.name))throw new m("Grammar state themes \"".concat(n.grammarState.themes,"\" do not contain highlight theme \"").concat(s.name,"\""));}return function(t,e,n,i,r){var s=Xn(t,e,n,i,r),o=new _n(Xn(t,e,n,i,r).stateStack,e.name,n.name);return Dn(s.tokens,o),s.tokens;}(e,l,s,o,n);}function Xn(t,e,n,i,r){var _ref10;var s=Ln(n,r),_r$tokenizeMaxLineLen=r.tokenizeMaxLineLength,o=_r$tokenizeMaxLineLen===void 0?0:_r$tokenizeMaxLineLen,_r$tokenizeTimeLimit=r.tokenizeTimeLimit,l=_r$tokenizeTimeLimit===void 0?500:_r$tokenizeTimeLimit,a=wn(t);var c=r.grammarState?(_ref10=function(t,e){if(!(t instanceof _n))throw new Pn("Invalid grammar state");return t.getInternalStack(e);}(r.grammarState,n.name))!==null&&_ref10!==void 0?_ref10:Ft:null!=r.grammarContextCode?Xn(r.grammarContextCode,e,n,i,_objectSpread(_objectSpread({},r),{},{grammarState:void 0,grammarContextCode:void 0})).stateStack:Ft,u=[];var m=[];for(var _t88=0,_h4=a.length;_t88<_h4;_t88++){var _a$_t=_slicedToArray(a[_t88],2),_h5=_a$_t[0],_d5=_a$_t[1];if(""===_h5){u=[],m.push([]);continue;}if(o>0&&_h5.length>=o){u=[],m.push([{content:_h5,offset:_d5,color:"",fontStyle:0}]);continue;}var _f4=void 0,_g2=void 0,_j2=void 0;r.includeExplanation&&(_f4=e.tokenizeLine(_h5,c),_g2=_f4.tokens,_j2=0);var _y=e.tokenizeLine2(_h5,c,l),_b=_y.tokens.length/2;for(var _t89=0;_t89<_b;_t89++){var _e43=_y.tokens[2*_t89],_o14=_t89+1<_b?_y.tokens[2*_t89+2]:_h5.length;if(_e43===_o14)continue;var _l7=_y.tokens[2*_t89+1],_a6=Tn(i[V.getForeground(_l7)],s),_c6=V.getFontStyle(_l7),_m5={content:_h5.substring(_e43,_o14),offset:_d5+_e43,color:_a6,fontStyle:_c6};if(r.includeExplanation){var _t90=[];if("scopeName"!==r.includeExplanation){var _iterator25=_createForOfIteratorHelper(n.settings),_step25;try{for(_iterator25.s();!(_step25=_iterator25.n()).done;){var _e44=_step25.value;var _n42=void 0;switch(_typeof(_e44.scope)){case"string":_n42=_e44.scope.split(/,/).map(function(t){return t.trim();});break;case"object":_n42=_e44.scope;break;default:continue;}_t90.push({settings:_e44,selectors:_n42.map(function(t){return t.split(/ /);})});}}catch(err){_iterator25.e(err);}finally{_iterator25.f();}}_m5.explanation=[];var _i20=0;for(;_e43+_i20<_o14;){var _e45=_g2[_j2],_n43=_h5.substring(_e45.startIndex,_e45.endIndex);_i20+=_n43.length,_m5.explanation.push({content:_n43,scopes:"scopeName"===r.includeExplanation?(p=_e45.scopes,p.map(function(t){return{scopeName:t};})):Yn(_t90,_e45.scopes)}),_j2+=1;}}u.push(_m5);}m.push(u),u=[],c=_y.ruleStack;}var p;return{tokens:m,stateStack:c};}function Yn(t,e){var n=[];for(var i=0,_r27=e.length;i<_r27;i++){var _r28=e[i];n[i]={scopeName:_r28,themeMatches:ti(t,_r28,e.slice(0,i))};}return n;}function Qn(t,e){return t===e||e.substring(0,t.length)===t&&"."===e[t.length];}function Zn(t,e,n){if(!Qn(t[t.length-1],e))return!1;var i=t.length-2,r=n.length-1;for(;i>=0&&r>=0;)Qn(t[i],n[r])&&(i-=1),r-=1;return-1===i;}function ti(t,e,n){var i=[];var _iterator26=_createForOfIteratorHelper(t),_step26;try{for(_iterator26.s();!(_step26=_iterator26.n()).done;){var _step26$value=_step26.value,_r29=_step26$value.selectors,_s21=_step26$value.settings;var _iterator27=_createForOfIteratorHelper(_r29),_step27;try{for(_iterator27.s();!(_step27=_iterator27.n()).done;){var _t91=_step27.value;if(Zn(_t91,e,n)){i.push(_s21);break;}}}catch(err){_iterator27.e(err);}finally{_iterator27.f();}}}catch(err){_iterator26.e(err);}finally{_iterator26.f();}return i;}function ei(t,e,n){var i=Object.entries(n.themes).filter(function(t){return t[1];}).map(function(t){return{color:t[0],theme:t[1]};}),r=i.map(function(i){var r=Kn(t,e,_objectSpread(_objectSpread({},n),{},{theme:i.theme}));return{tokens:r,state:En(r),theme:"string"==typeof i.theme?i.theme:i.theme.name};}),s=function(){for(var _len4=arguments.length,t=new Array(_len4),_key4=0;_key4<_len4;_key4++){t[_key4]=arguments[_key4];}var e=t.map(function(){return[];}),n=t.length;var _loop3=function _loop3(_i21){var r=t.map(function(t){return t[_i21];}),s=e.map(function(){return[];});e.forEach(function(t,e){return t.push(s[e]);});var o=r.map(function(){return 0;}),l=r.map(function(t){return t[0];});for(;l.every(function(t){return t;});){var _t92=Math.min.apply(Math,_toConsumableArray(l.map(function(t){return t.content.length;})));for(var _e46=0;_e46<n;_e46++){var _n44=l[_e46];_n44.content.length===_t92?(s[_e46].push(_n44),o[_e46]+=1,l[_e46]=r[_e46][o[_e46]]):(s[_e46].push(_objectSpread(_objectSpread({},_n44),{},{content:_n44.content.slice(0,_t92)})),l[_e46]=_objectSpread(_objectSpread({},_n44),{},{content:_n44.content.slice(_t92),offset:_n44.offset+_t92}));}}};for(var _i21=0;_i21<t[0].length;_i21++){_loop3(_i21);}return e;}.apply(void 0,_toConsumableArray(r.map(function(t){return t.tokens;}))),o=s[0].map(function(t,e){return t.map(function(t,r){var o={content:t.content,variants:{},offset:t.offset};return"includeExplanation"in n&&n.includeExplanation&&(o.explanation=t.explanation),s.forEach(function(t,n){var _t$e$r=t[e][r],s=_t$e$r.content,l=_t$e$r.explanation,a=_t$e$r.offset,c=_objectWithoutProperties(_t$e$r,_excluded);o.variants[i[n].color]=c;}),o;});}),l=r[0].state?new _n(Object.fromEntries(r.map(function(t){var _t$state;return[t.theme,(_t$state=t.state)===null||_t$state===void 0?void 0:_t$state.getInternalStack(t.theme)];})),r[0].state.lang):void 0;return l&&Dn(o,l),o;}function ni(t,e,n){var i,r,s,o,l,a;if("themes"in n){var _n$defaultColor=n.defaultColor,_c7=_n$defaultColor===void 0?"light":_n$defaultColor,_n$cssVariablePrefix=n.cssVariablePrefix,_u5=_n$cssVariablePrefix===void 0?"--shiki-":_n$cssVariablePrefix,_p5=Object.entries(n.themes).filter(function(t){return t[1];}).map(function(t){return{color:t[0],theme:t[1]};}).sort(function(t,e){return t.color===_c7?-1:e.color===_c7?1:0;});if(0===_p5.length)throw new m("`themes` option must not be empty");var _h6=ei(t,e,n);if(a=En(_h6),_c7&&!_p5.find(function(t){return t.color===_c7;}))throw new m("`themes` option must contain the defaultColor key `".concat(_c7,"`"));var _d6=_p5.map(function(e){return t.getTheme(e.theme);}),_f5=_p5.map(function(t){return t.color;});s=_h6.map(function(t){return t.map(function(t){return function(t,e,n,i){var r={content:t.content,explanation:t.explanation,offset:t.offset},s=e.map(function(e){return Mn(t.variants[e]);}),o=new Set(s.flatMap(function(t){return Object.keys(t);})),l={};return s.forEach(function(t,r){var _iterator28=_createForOfIteratorHelper(o),_step28;try{for(_iterator28.s();!(_step28=_iterator28.n()).done;){var _s22=_step28.value;var _o15=t[_s22]||"inherit";if(0===r&&i)l[_s22]=_o15;else{var _t93="color"===_s22?"":"background-color"===_s22?"-bg":"-".concat(_s22),_i22=n+e[r]+("color"===_s22?"":_t93);l[_i22]=_o15;}}}catch(err){_iterator28.e(err);}finally{_iterator28.f();}}),r.htmlStyle=l,r;}(t,_f5,_u5,_c7);});}),a&&Dn(s,a);var _g3=_p5.map(function(t){return Ln(t.theme,n);});r=_p5.map(function(t,e){return(0===e&&_c7?"":"".concat(_u5+t.color,":"))+(Tn(_d6[e].fg,_g3[e])||"inherit");}).join(";"),i=_p5.map(function(t,e){return(0===e&&_c7?"":"".concat(_u5+t.color,"-bg:"))+(Tn(_d6[e].bg,_g3[e])||"inherit");}).join(";"),o="shiki-themes ".concat(_d6.map(function(t){return t.name;}).join(" ")),l=_c7?void 0:[r,i].join(";");}else{if(!("theme"in n))throw new m("Invalid options, either `theme` or `themes` must be provided");{var _l8=Ln(n.theme,n);s=Kn(t,e,n);var _c8=t.getTheme(n.theme);i=Tn(_c8.bg,_l8),r=Tn(_c8.fg,_l8),o=_c8.name,a=En(s);}}return{tokens:s,fg:r,bg:i,themeName:o,rootStyle:l,grammarState:a};}function ii(t,e,n){var i=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{meta:{},options:n,codeToHast:function codeToHast(e,n){return ii(t,e,n);},codeToTokens:function codeToTokens(e,n){return ni(t,e,n);}};var r=e;var _iterator29=_createForOfIteratorHelper(Gn(n)),_step29;try{for(_iterator29.s();!(_step29=_iterator29.n()).done;){var _t99$preprocess;var _t99=_step29.value;r=((_t99$preprocess=_t99.preprocess)===null||_t99$preprocess===void 0?void 0:_t99$preprocess.call(i,r,n))||r;}}catch(err){_iterator29.e(err);}finally{_iterator29.f();}var _ni=ni(t,r,n),s=_ni.tokens,o=_ni.fg,l=_ni.bg,a=_ni.themeName,c=_ni.rootStyle,u=_ni.grammarState;var _n$mergeWhitespaces=n.mergeWhitespaces,m=_n$mergeWhitespaces===void 0?!0:_n$mergeWhitespaces;!0===m?s=function(t){return t.map(function(t){var e=[];var n="",i=0;return t.forEach(function(r,s){var o=!(r.fontStyle&&r.fontStyle&z.Underline);o&&r.content.match(/^\s+$/)&&t[s+1]?(i||(i=r.offset),n+=r.content):n?(o?e.push(_objectSpread(_objectSpread({},r),{},{offset:i,content:n+r.content})):e.push({content:n,offset:i},r),i=0,n=""):e.push(r);}),e;});}(s):"never"===m&&(s=function(t){return t.map(function(t){return t.flatMap(function(t){if(t.content.match(/^\s+$/))return t;var e=t.content.match(/^(\s*)(.*?)(\s*)$/);if(!e)return t;var _e47=_slicedToArray(e,4),n=_e47[1],i=_e47[2],r=_e47[3];if(!n&&!r)return t;var s=[_objectSpread(_objectSpread({},t),{},{offset:t.offset+n.length,content:i})];return n&&s.unshift({content:n,offset:t.offset}),r&&s.push({content:r,offset:t.offset+n.length+i.length}),s;});});}(s));var p=_objectSpread(_objectSpread({},i),{},{get source(){return r;}});var _iterator30=_createForOfIteratorHelper(Gn(n)),_step30;try{for(_iterator30.s();!(_step30=_iterator30.n()).done;){var _t100$tokens;var _t100=_step30.value;s=((_t100$tokens=_t100.tokens)===null||_t100$tokens===void 0?void 0:_t100$tokens.call(p,s))||s;}}catch(err){_iterator30.e(err);}finally{_iterator30.f();}return function(t,e,n){var i=arguments.length>3&&arguments[3]!==undefined?arguments[3]:En(t);var r=Gn(e),s=[],o={type:"root",children:[]},_e$structure=e.structure,l=_e$structure===void 0?"classic":_e$structure,_e$tabindex=e.tabindex,a=_e$tabindex===void 0?"0":_e$tabindex;var c={type:"element",tagName:"pre",properties:_objectSpread(_objectSpread({"class":"shiki ".concat(e.themeName||""),style:e.rootStyle||"background-color:".concat(e.bg,";color:").concat(e.fg)},!1!==a&&null!=a?{tabindex:a.toString()}:{}),Object.fromEntries(Array.from(Object.entries(e.meta||{})).filter(function(_ref11){var _ref12=_slicedToArray(_ref11,1),t=_ref12[0];return!t.startsWith("_");}))),children:[]},u={type:"element",tagName:"code",properties:{},children:s};var m=[],p=_objectSpread(_objectSpread({},n),{},{structure:l,addClassToHast:Cn,get source(){return n.source;},get tokens(){return t;},get options(){return e;},get root(){return o;},get pre(){return c;},get code(){return u;},get lines(){return m;}});if(t.forEach(function(t,e){e&&("inline"===l?o.children.push({type:"element",tagName:"br",properties:{},children:[]}):"classic"===l&&s.push({type:"text",value:"\n"}));var n={type:"element",tagName:"span",properties:{"class":"line"},children:[]},i=0;var _iterator31=_createForOfIteratorHelper(t),_step31;try{for(_iterator31.s();!(_step31=_iterator31.n()).done;){var _s23=_step31.value;var _t95={type:"element",tagName:"span",properties:_objectSpread({},_s23.htmlAttrs),children:[{type:"text",value:_s23.content}]};_s23.htmlStyle;var _a7=On(_s23.htmlStyle||Mn(_s23));_a7&&(_t95.properties.style=_a7);var _iterator33=_createForOfIteratorHelper(r),_step33;try{for(_iterator33.s();!(_step33=_iterator33.n()).done;){var _o16$span;var _o16=_step33.value;_t95=(_o16===null||_o16===void 0||(_o16$span=_o16.span)===null||_o16$span===void 0?void 0:_o16$span.call(p,_t95,e+1,i,n,_s23))||_t95;}}catch(err){_iterator33.e(err);}finally{_iterator33.f();}"inline"===l?o.children.push(_t95):"classic"===l&&n.children.push(_t95),i+=_s23.content.length;}}catch(err){_iterator31.e(err);}finally{_iterator31.f();}if("classic"===l){var _iterator32=_createForOfIteratorHelper(r),_step32;try{for(_iterator32.s();!(_step32=_iterator32.n()).done;){var _t94$line;var _t94=_step32.value;n=(_t94===null||_t94===void 0||(_t94$line=_t94.line)===null||_t94$line===void 0?void 0:_t94$line.call(p,n,e+1))||n;}}catch(err){_iterator32.e(err);}finally{_iterator32.f();}m.push(n),s.push(n);}}),"classic"===l){var _iterator34=_createForOfIteratorHelper(r),_step34;try{for(_iterator34.s();!(_step34=_iterator34.n()).done;){var _t96$code;var _t96=_step34.value;u=(_t96===null||_t96===void 0||(_t96$code=_t96.code)===null||_t96$code===void 0?void 0:_t96$code.call(p,u))||u;}}catch(err){_iterator34.e(err);}finally{_iterator34.f();}c.children.push(u);var _iterator35=_createForOfIteratorHelper(r),_step35;try{for(_iterator35.s();!(_step35=_iterator35.n()).done;){var _t97$pre;var _t97=_step35.value;c=(_t97===null||_t97===void 0||(_t97$pre=_t97.pre)===null||_t97$pre===void 0?void 0:_t97$pre.call(p,c))||c;}}catch(err){_iterator35.e(err);}finally{_iterator35.f();}o.children.push(c);}var h=o;var _iterator36=_createForOfIteratorHelper(r),_step36;try{for(_iterator36.s();!(_step36=_iterator36.n()).done;){var _t98$root;var _t98=_step36.value;h=(_t98===null||_t98===void 0||(_t98$root=_t98.root)===null||_t98$root===void 0?void 0:_t98$root.call(p,h))||h;}}catch(err){_iterator36.e(err);}finally{_iterator36.f();}i&&Dn(h,i);return h;}(s,_objectSpread(_objectSpread({},n),{},{fg:o,bg:l,themeName:a,rootStyle:c}),p,u);}function ri(t,e,n){var i={meta:{},options:n,codeToHast:function codeToHast(e,n){return ii(t,e,n);},codeToTokens:function codeToTokens(e,n){return ni(t,e,n);}};var r=function(t,e){var n=e||fn,i=n.quote||'"',r='"'===i?"'":'"';if('"'!==i&&"'"!==i)throw new Error("Invalid quote `"+i+"`, expected `'` or `\"`");return{one:yn,all:bn,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||Ht,characterReferences:n.characterReferences||gn,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:"svg"===n.space?xe:Se,quote:i,alternative:r}.one(Array.isArray(t)?{type:"root",children:t}:t,void 0,void 0);}(ii(t,e,n,i));var _iterator37=_createForOfIteratorHelper(Gn(n)),_step37;try{for(_iterator37.s();!(_step37=_iterator37.n()).done;){var _t101$postprocess;var _t101=_step37.value;r=((_t101$postprocess=_t101.postprocess)===null||_t101$postprocess===void 0?void 0:_t101$postprocess.call(i,r,n))||r;}}catch(err){_iterator37.e(err);}finally{_iterator37.f();}return r;}function ui(t){if(t!==null&&t!==void 0&&t[ci])return t;var e=_objectSpread({},t);e.tokenColors&&!e.settings&&(e.settings=e.tokenColors,delete e.tokenColors),e.type||(e.type="dark"),e.colorReplacements=_objectSpread({},e.colorReplacements),e.settings||(e.settings=[]);var n=e.bg,i=e.fg;if(!n||!i){var _t102$settings,_t102$settings2,_e$colors,_e$colors2;var _t102=e.settings?e.settings.find(function(t){return!t.name&&!t.scope;}):void 0;_t102!==null&&_t102!==void 0&&(_t102$settings=_t102.settings)!==null&&_t102$settings!==void 0&&_t102$settings.foreground&&(i=_t102.settings.foreground),_t102!==null&&_t102!==void 0&&(_t102$settings2=_t102.settings)!==null&&_t102$settings2!==void 0&&_t102$settings2.background&&(n=_t102.settings.background),!i&&e!==null&&e!==void 0&&(_e$colors=e.colors)!==null&&_e$colors!==void 0&&_e$colors["editor.foreground"]&&(i=e.colors["editor.foreground"]),!n&&e!==null&&e!==void 0&&(_e$colors2=e.colors)!==null&&_e$colors2!==void 0&&_e$colors2["editor.background"]&&(n=e.colors["editor.background"]),i||(i="light"===e.type?si:oi),n||(n="light"===e.type?li:ai),e.fg=i,e.bg=n;}e.settings[0]&&e.settings[0].settings&&!e.settings[0].scope||e.settings.unshift({settings:{foreground:e.fg,background:e.bg}});var r=0;var s=new Map();function o(t){var _e$colorReplacements;if(s.has(t))return s.get(t);r+=1;var n="#".concat(r.toString(16).padStart(8,"0").toLowerCase());return(_e$colorReplacements=e.colorReplacements)!==null&&_e$colorReplacements!==void 0&&_e$colorReplacements["#".concat(n)]?o(t):(s.set(t,n),n);}e.settings=e.settings.map(function(t){var _t$settings,_t$settings2;var n=((_t$settings=t.settings)===null||_t$settings===void 0?void 0:_t$settings.foreground)&&!t.settings.foreground.startsWith("#"),i=((_t$settings2=t.settings)===null||_t$settings2===void 0?void 0:_t$settings2.background)&&!t.settings.background.startsWith("#");if(!n&&!i)return t;var r=_objectSpread(_objectSpread({},t),{},{settings:_objectSpread({},t.settings)});if(n){var _n45=o(t.settings.foreground);e.colorReplacements[_n45]=t.settings.foreground,r.settings.foreground=_n45;}if(i){var _n46=o(t.settings.background);e.colorReplacements[_n46]=t.settings.background,r.settings.background=_n46;}return r;});for(var _i23=0,_Object$keys2=Object.keys(e.colors||{});_i23<_Object$keys2.length;_i23++){var _e$colors$_t;var _t103=_Object$keys2[_i23];if(("editor.foreground"===_t103||"editor.background"===_t103||_t103.startsWith("terminal.ansi"))&&!((_e$colors$_t=e.colors[_t103])!==null&&_e$colors$_t!==void 0&&_e$colors$_t.startsWith("#"))){var _n47=o(e.colors[_t103]);e.colorReplacements[_n47]=e.colors[_t103],e.colors[_t103]=_n47;}}return Object.defineProperty(e,ci,{enumerable:!1,writable:!1,value:!0}),e;}function mi(_x6){return _mi.apply(this,arguments);}function _mi(){_mi=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee13(t){return _regeneratorRuntime().wrap(function _callee13$(_context14){while(1)switch(_context14.prev=_context14.next){case 0:_context14.t0=Array;_context14.t1=Set;_context14.next=4;return Promise.all(t.filter(function(t){return!vn(t);}).map(/*#__PURE__*/function(){var _ref25=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee12(t){return _regeneratorRuntime().wrap(function _callee12$(_context13){while(1)switch(_context13.prev=_context13.next){case 0:_context13.next=2;return An(t).then(function(t){return Array.isArray(t)?t:[t];});case 2:return _context13.abrupt("return",_context13.sent);case 3:case"end":return _context13.stop();}},_callee12);}));return function(_x10){return _ref25.apply(this,arguments);};}()));case 4:_context14.t2=_context14.sent.flat();_context14.t3=new _context14.t1(_context14.t2);return _context14.abrupt("return",_context14.t0.from.call(_context14.t0,_context14.t3));case 7:case"end":return _context14.stop();}},_callee13);}));return _mi.apply(this,arguments);}function pi(_x7){return _pi.apply(this,arguments);}function _pi(){_pi=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee15(t){return _regeneratorRuntime().wrap(function _callee15$(_context16){while(1)switch(_context16.prev=_context16.next){case 0:_context16.next=2;return Promise.all(t.map(/*#__PURE__*/function(){var _ref26=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee14(t){return _regeneratorRuntime().wrap(function _callee14$(_context15){while(1)switch(_context15.prev=_context15.next){case 0:if(!xn(t)){_context15.next=4;break;}_context15.t0=null;_context15.next=9;break;case 4:_context15.t1=ui;_context15.next=7;return An(t);case 7:_context15.t2=_context15.sent;_context15.t0=(0,_context15.t1)(_context15.t2);case 9:return _context15.abrupt("return",_context15.t0);case 10:case"end":return _context15.stop();}},_callee14);}));return function(_x11){return _ref26.apply(this,arguments);};}()));case 2:return _context16.abrupt("return",_context16.sent.filter(function(t){return!!t;}));case 3:case"end":return _context16.stop();}},_callee15);}));return _pi.apply(this,arguments);}function gi(){return _gi.apply(this,arguments);}function _gi(){_gi=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee18(){var t,_yield$Promise$all,_yield$Promise$all2,e,n,i,_args18=arguments;return _regeneratorRuntime().wrap(function _callee18$(_context19){while(1)switch(_context19.prev=_context19.next){case 0:t=_args18.length>0&&_args18[0]!==undefined?_args18[0]:{};t.loadWasm;_context19.next=4;return Promise.all([pi(t.themes||[]),mi(t.langs||[]),t.engine||A(t.loadWasm||void 0)]);case 4:_yield$Promise$all=_context19.sent;_yield$Promise$all2=_slicedToArray(_yield$Promise$all,3);e=_yield$Promise$all2[0];n=_yield$Promise$all2[1];i=_yield$Promise$all2[2];return _context19.abrupt("return",function(t){fi+=1,!1!==t.warnings&&fi>=10&&fi%10==0&&console.warn("[Shiki] ".concat(fi," instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call `highlighter.dispose()` to release unused instances."));var e=!1;if(!t.engine)throw new Pn("`engine` option is required for synchronous mode");var n=(t.langs||[]).flat(1),i=(t.themes||[]).flat(1).map(ui),r=new di(t.engine,n),s=new hi(r,i,n,t.langAlias);var o;function l(t){if("none"===t)return{bg:"",fg:"",name:"none",settings:[],type:"dark"};u();var e=s.getTheme(t);if(!e)throw new Pn("Theme `".concat(t,"` not found, you may need to load it first"));return e;}function a(){for(var _len7=arguments.length,t=new Array(_len7),_key7=0;_key7<_len7;_key7++){t[_key7]=arguments[_key7];}u(),s.loadLanguages(t.flat(1));}function c(){u();for(var _len8=arguments.length,t=new Array(_len8),_key8=0;_key8<_len8;_key8++){t[_key8]=arguments[_key8];}var _iterator41=_createForOfIteratorHelper(t.flat(1)),_step41;try{for(_iterator41.s();!(_step41=_iterator41.n()).done;){var _e57=_step41.value;s.loadTheme(_e57);}}catch(err){_iterator41.e(err);}finally{_iterator41.f();}}function u(){if(e)throw new Pn("Shiki instance has been disposed");}function m(){e||(e=!0,s.dispose(),fi-=1);}return _defineProperty({setTheme:function setTheme(t){u();var e=l(t);return o!==t&&(s.setTheme(e),o=t),{theme:e,colorMap:s.getColorMap()};},getTheme:l,getLanguage:function getLanguage(t){u();var e=s.getGrammar("string"==typeof t?t:t.name);if(!e)throw new Pn("Language `".concat(t,"` not found, you may need to load it first"));return e;},getLoadedThemes:function getLoadedThemes(){return u(),s.getLoadedThemes();},getLoadedLanguages:function getLoadedLanguages(){return u(),s.getLoadedLanguages();},loadLanguage:function(){var _loadLanguage=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee16(){var _len9,t,_key9,_args16=arguments;return _regeneratorRuntime().wrap(function _callee16$(_context17){while(1)switch(_context17.prev=_context17.next){case 0:for(_len9=_args16.length,t=new Array(_len9),_key9=0;_key9<_len9;_key9++){t[_key9]=_args16[_key9];}_context17.t0=a;_context17.next=4;return mi(t);case 4:_context17.t1=_context17.sent;return _context17.abrupt("return",(0,_context17.t0)(_context17.t1));case 6:case"end":return _context17.stop();}},_callee16);}));function loadLanguage(){return _loadLanguage.apply(this,arguments);}return loadLanguage;}(),loadLanguageSync:a,loadTheme:function(){var _loadTheme=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee17(){var _len10,t,_key10,_args17=arguments;return _regeneratorRuntime().wrap(function _callee17$(_context18){while(1)switch(_context18.prev=_context18.next){case 0:for(_len10=_args17.length,t=new Array(_len10),_key10=0;_key10<_len10;_key10++){t[_key10]=_args17[_key10];}u();_context18.t0=c;_context18.next=5;return pi(t);case 5:_context18.t1=_context18.sent;return _context18.abrupt("return",(0,_context18.t0)(_context18.t1));case 7:case"end":return _context18.stop();}},_callee17);}));function loadTheme(){return _loadTheme.apply(this,arguments);}return loadTheme;}(),loadThemeSync:c,dispose:m},Symbol.dispose,m);}(_objectSpread(_objectSpread({},t),{},{loadWasm:void 0,themes:e,langs:n,engine:i})));case 10:case"end":return _context19.stop();}},_callee18);}));return _gi.apply(this,arguments);}function ji(){return _ji.apply(this,arguments);}function _ji(){_ji=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee19(){var t,e,_args19=arguments;return _regeneratorRuntime().wrap(function _callee19$(_context20){while(1)switch(_context20.prev=_context20.next){case 0:t=_args19.length>0&&_args19[0]!==undefined?_args19[0]:{};_context20.next=3;return gi(t);case 3:e=_context20.sent;return _context20.abrupt("return",_objectSpread(_objectSpread({getLastGrammarState:function getLastGrammarState(){for(var _len11=arguments.length,t=new Array(_len11),_key11=0;_key11<_len11;_key11++){t[_key11]=arguments[_key11];}return function(){for(var _len12=arguments.length,t=new Array(_len12),_key12=0;_key12<_len12;_key12++){t[_key12]=arguments[_key12];}if(2===t.length)return En(t[1]);var e=t[0],n=t[1],_t$=t[2],i=_t$===void 0?{}:_t$,_i$lang=i.lang,r=_i$lang===void 0?"text":_i$lang,_i$theme=i.theme,s=_i$theme===void 0?e.getLoadedThemes()[0]:_i$theme;if(kn(r)||Sn(s))throw new m("Plain language does not have grammar state");if("ansi"===r)throw new m("ANSI language does not have grammar state");var _e$setTheme=e.setTheme(s),o=_e$setTheme.theme,l=_e$setTheme.colorMap,a=e.getLanguage(r);return new _n(Xn(n,a,o,l,i).stateStack,a.name,o.name);}.apply(void 0,[e].concat(t));},codeToTokensBase:function codeToTokensBase(t,n){return Kn(e,t,n);},codeToTokensWithThemes:function codeToTokensWithThemes(t,n){return ei(e,t,n);},codeToTokens:function codeToTokens(t,n){return ni(e,t,n);},codeToHast:function codeToHast(t,n){return ii(e,t,n);},codeToHtml:function codeToHtml(t,n){return ri(e,t,n);}},e),{},{getInternalContext:function getInternalContext(){return e;}}));case 5:case"end":return _context20.stop();}},_callee19);}));return _ji.apply(this,arguments);}function yi(t,e,n){var i,r,s;if(e)i=t,r=e,s=function s(){return A(n);};else{var _e53=t;i=_e53.langs,r=_e53.themes,s=_e53.engine;}return/*#__PURE__*/function(){var _ref23=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(t){var _t$themes,_t$langs,_t$engine;var e,n,o,l,a;return _regeneratorRuntime().wrap(function _callee4$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:n=function _n50(t){if(xn(t))return"none";if("string"==typeof t){var _e55=r[t];if(!_e55)throw new m("Theme `".concat(t,"` is not included in this bundle. You may want to load it from external source."));return _e55;}return t;};e=function _e56(t){if("string"==typeof t){if(vn(t))return[];var _e54=i[t];if(!_e54)throw new m("Language `".concat(t,"` is not included in this bundle. You may want to load it from external source."));return _e54;}return t;};o=((_t$themes=t.themes)!==null&&_t$themes!==void 0?_t$themes:[]).map(function(t){return n(t);});l=((_t$langs=t.langs)!==null&&_t$langs!==void 0?_t$langs:[]).map(function(t){return e(t);});_context5.next=6;return ji(_objectSpread(_objectSpread({engine:(_t$engine=t.engine)!==null&&_t$engine!==void 0?_t$engine:s()},t),{},{themes:o,langs:l}));case 6:a=_context5.sent;return _context5.abrupt("return",_objectSpread(_objectSpread({},a),{},{loadLanguage:function loadLanguage(){for(var _len5=arguments.length,t=new Array(_len5),_key5=0;_key5<_len5;_key5++){t[_key5]=arguments[_key5];}return a.loadLanguage.apply(a,_toConsumableArray(t.map(e)));},loadTheme:function loadTheme(){for(var _len6=arguments.length,t=new Array(_len6),_key6=0;_key6<_len6;_key6++){t[_key6]=arguments[_key6];}return a.loadTheme.apply(a,_toConsumableArray(t.map(n)));}}));case 8:case"end":return _context5.stop();}},_callee4);}));return function(_x8){return _ref23.apply(this,arguments);};}();}return{setters:[function(_tslib){t=_tslib.__decorate;},function(_litElement001CjsJs){e=_litElement001CjsJs.x;},function(_litDecoratorsJs){n=_litDecoratorsJs.property;i=_litDecoratorsJs.state;r=_litDecoratorsJs.customElement;},function(_nileHighlighterCssCjsJs){s=_nileHighlighterCssCjsJs.s;},function(_internalNileElementCjsJs){o=_internalNileElementCjsJs.N;},function(_lit){}],execute:function execute(){_excluded=["content","explanation","offset"];l=[{id:"abap",name:"ABAP","import":function _import(){return _context["import"]("../abap-e6d39538.cjs.js");}},{id:"actionscript-3",name:"ActionScript","import":function _import(){return _context["import"]("../actionscript-3-86fdc0d1.cjs.js");}},{id:"ada",name:"Ada","import":function _import(){return _context["import"]("../ada-c5585104.cjs.js");}},{id:"angular-html",name:"Angular HTML","import":function _import(){return _context["import"]("../angular-html-a7e93a5f.cjs.js").then(function(t){return t.f;});}},{id:"angular-ts",name:"Angular TypeScript","import":function _import(){return _context["import"]("../angular-ts-5f927069.cjs.js");}},{id:"apache",name:"Apache Conf","import":function _import(){return _context["import"]("../apache-8c723a80.cjs.js");}},{id:"apex",name:"Apex","import":function _import(){return _context["import"]("../apex-c1fa7afe.cjs.js");}},{id:"apl",name:"APL","import":function _import(){return _context["import"]("../apl-649c952a.cjs.js");}},{id:"applescript",name:"AppleScript","import":function _import(){return _context["import"]("../applescript-bdd5c54c.cjs.js");}},{id:"ara",name:"Ara","import":function _import(){return _context["import"]("../ara-955743a9.cjs.js");}},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],"import":function _import(){return _context["import"]("../asciidoc-d0d048c7.cjs.js");}},{id:"asm",name:"Assembly","import":function _import(){return _context["import"]("../asm-307a1fb8.cjs.js");}},{id:"astro",name:"Astro","import":function _import(){return _context["import"]("../astro-795e1648.cjs.js");}},{id:"awk",name:"AWK","import":function _import(){return _context["import"]("../awk-55ee1110.cjs.js");}},{id:"ballerina",name:"Ballerina","import":function _import(){return _context["import"]("../ballerina-476de225.cjs.js");}},{id:"bat",name:"Batch File",aliases:["batch"],"import":function _import(){return _context["import"]("../bat-8e274826.cjs.js");}},{id:"beancount",name:"Beancount","import":function _import(){return _context["import"]("../beancount-92d16d2b.cjs.js");}},{id:"berry",name:"Berry",aliases:["be"],"import":function _import(){return _context["import"]("../berry-09a1314b.cjs.js");}},{id:"bibtex",name:"BibTeX","import":function _import(){return _context["import"]("../bibtex-2ad2cf23.cjs.js");}},{id:"bicep",name:"Bicep","import":function _import(){return _context["import"]("../bicep-62e57cc7.cjs.js");}},{id:"blade",name:"Blade","import":function _import(){return _context["import"]("../blade-9e3e15d0.cjs.js");}},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],"import":function _import(){return _context["import"]("../bsl-53efa08d.cjs.js");}},{id:"c",name:"C","import":function _import(){return _context["import"]("../c-2d060856.cjs.js");}},{id:"cadence",name:"Cadence",aliases:["cdc"],"import":function _import(){return _context["import"]("../cadence-91f6e555.cjs.js");}},{id:"cairo",name:"Cairo","import":function _import(){return _context["import"]("../cairo-8245cd37.cjs.js");}},{id:"clarity",name:"Clarity","import":function _import(){return _context["import"]("../clarity-1615b9d4.cjs.js");}},{id:"clojure",name:"Clojure",aliases:["clj"],"import":function _import(){return _context["import"]("../clojure-bb7f85ce.cjs.js");}},{id:"cmake",name:"CMake","import":function _import(){return _context["import"]("../cmake-ef9020c2.cjs.js");}},{id:"cobol",name:"COBOL","import":function _import(){return _context["import"]("../cobol-4c41c477.cjs.js");}},{id:"codeowners",name:"CODEOWNERS","import":function _import(){return _context["import"]("../codeowners-e245640f.cjs.js");}},{id:"codeql",name:"CodeQL",aliases:["ql"],"import":function _import(){return _context["import"]("../codeql-c192035f.cjs.js");}},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],"import":function _import(){return _context["import"]("../coffee-e18883ea.cjs.js");}},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],"import":function _import(){return _context["import"]("../common-lisp-e3601446.cjs.js");}},{id:"coq",name:"Coq","import":function _import(){return _context["import"]("../coq-9ab86dab.cjs.js");}},{id:"cpp",name:"C++",aliases:["c++"],"import":function _import(){return _context["import"]("../cpp-81aa1654.cjs.js");}},{id:"crystal",name:"Crystal","import":function _import(){return _context["import"]("../crystal-ef4ff962.cjs.js");}},{id:"csharp",name:"C#",aliases:["c#","cs"],"import":function _import(){return _context["import"]("../csharp-475b50e6.cjs.js");}},{id:"css",name:"CSS","import":function _import(){return _context["import"]("../css-10d65ea0.cjs.js");}},{id:"csv",name:"CSV","import":function _import(){return _context["import"]("../csv-4de81c4f.cjs.js");}},{id:"cue",name:"CUE","import":function _import(){return _context["import"]("../cue-a71b5b3c.cjs.js");}},{id:"cypher",name:"Cypher",aliases:["cql"],"import":function _import(){return _context["import"]("../cypher-9a5260ef.cjs.js");}},{id:"d",name:"D","import":function _import(){return _context["import"]("../d-d1c4bd1b.cjs.js");}},{id:"dart",name:"Dart","import":function _import(){return _context["import"]("../dart-6d443d87.cjs.js");}},{id:"dax",name:"DAX","import":function _import(){return _context["import"]("../dax-0798a3c6.cjs.js");}},{id:"desktop",name:"Desktop","import":function _import(){return _context["import"]("../desktop-a8217439.cjs.js");}},{id:"diff",name:"Diff","import":function _import(){return _context["import"]("../diff-fbc7ce0a.cjs.js");}},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],"import":function _import(){return _context["import"]("../docker-00364840.cjs.js");}},{id:"dotenv",name:"dotEnv","import":function _import(){return _context["import"]("../dotenv-6b773cdd.cjs.js");}},{id:"dream-maker",name:"Dream Maker","import":function _import(){return _context["import"]("../dream-maker-903974b5.cjs.js");}},{id:"edge",name:"Edge","import":function _import(){return _context["import"]("../edge-c1c84fc2.cjs.js");}},{id:"elixir",name:"Elixir","import":function _import(){return _context["import"]("../elixir-f9a6be1d.cjs.js");}},{id:"elm",name:"Elm","import":function _import(){return _context["import"]("../elm-0807e5d4.cjs.js");}},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],"import":function _import(){return _context["import"]("../emacs-lisp-6cd6a7ea.cjs.js");}},{id:"erb",name:"ERB","import":function _import(){return _context["import"]("../erb-b5691aab.cjs.js");}},{id:"erlang",name:"Erlang",aliases:["erl"],"import":function _import(){return _context["import"]("../erlang-505c5056.cjs.js");}},{id:"fennel",name:"Fennel","import":function _import(){return _context["import"]("../fennel-e87fed56.cjs.js");}},{id:"fish",name:"Fish","import":function _import(){return _context["import"]("../fish-d436438e.cjs.js");}},{id:"fluent",name:"Fluent",aliases:["ftl"],"import":function _import(){return _context["import"]("../fluent-c07eac4f.cjs.js");}},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],"import":function _import(){return _context["import"]("../fortran-fixed-form-836a29c2.cjs.js");}},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],"import":function _import(){return _context["import"]("../fortran-free-form-19ab0abd.cjs.js");}},{id:"fsharp",name:"F#",aliases:["f#","fs"],"import":function _import(){return _context["import"]("../fsharp-3c1bd44f.cjs.js");}},{id:"gdresource",name:"GDResource","import":function _import(){return _context["import"]("../gdresource-7b2739db.cjs.js");}},{id:"gdscript",name:"GDScript","import":function _import(){return _context["import"]("../gdscript-090a80dc.cjs.js");}},{id:"gdshader",name:"GDShader","import":function _import(){return _context["import"]("../gdshader-9701e8f6.cjs.js");}},{id:"genie",name:"Genie","import":function _import(){return _context["import"]("../genie-795c632c.cjs.js");}},{id:"gherkin",name:"Gherkin","import":function _import(){return _context["import"]("../gherkin-e7d3b8bf.cjs.js");}},{id:"git-commit",name:"Git Commit Message","import":function _import(){return _context["import"]("../git-commit-e4bbc19e.cjs.js");}},{id:"git-rebase",name:"Git Rebase Message","import":function _import(){return _context["import"]("../git-rebase-44577a1e.cjs.js");}},{id:"gleam",name:"Gleam","import":function _import(){return _context["import"]("../gleam-8975e629.cjs.js");}},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],"import":function _import(){return _context["import"]("../glimmer-js-6832e29a.cjs.js");}},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],"import":function _import(){return _context["import"]("../glimmer-ts-b5b8eb28.cjs.js");}},{id:"glsl",name:"GLSL","import":function _import(){return _context["import"]("../glsl-38db2bca.cjs.js");}},{id:"gnuplot",name:"Gnuplot","import":function _import(){return _context["import"]("../gnuplot-ad18511d.cjs.js");}},{id:"go",name:"Go","import":function _import(){return _context["import"]("../go-53035773.cjs.js");}},{id:"graphql",name:"GraphQL",aliases:["gql"],"import":function _import(){return _context["import"]("../graphql-e745e574.cjs.js");}},{id:"groovy",name:"Groovy","import":function _import(){return _context["import"]("../groovy-1e8286c2.cjs.js");}},{id:"hack",name:"Hack","import":function _import(){return _context["import"]("../hack-6b62229d.cjs.js");}},{id:"haml",name:"Ruby Haml","import":function _import(){return _context["import"]("../haml-50c7c74a.cjs.js");}},{id:"handlebars",name:"Handlebars",aliases:["hbs"],"import":function _import(){return _context["import"]("../handlebars-b64c27d5.cjs.js");}},{id:"haskell",name:"Haskell",aliases:["hs"],"import":function _import(){return _context["import"]("../haskell-24f230a2.cjs.js");}},{id:"haxe",name:"Haxe","import":function _import(){return _context["import"]("../haxe-20268231.cjs.js");}},{id:"hcl",name:"HashiCorp HCL","import":function _import(){return _context["import"]("../hcl-d4b98f7f.cjs.js");}},{id:"hjson",name:"Hjson","import":function _import(){return _context["import"]("../hjson-c5e2bc0a.cjs.js");}},{id:"hlsl",name:"HLSL","import":function _import(){return _context["import"]("../hlsl-8f48c699.cjs.js");}},{id:"html",name:"HTML","import":function _import(){return _context["import"]("../html-35d28649.cjs.js");}},{id:"html-derivative",name:"HTML (Derivative)","import":function _import(){return _context["import"]("../html-derivative-7e53bf58.cjs.js");}},{id:"http",name:"HTTP","import":function _import(){return _context["import"]("../http-a8ff72a2.cjs.js");}},{id:"hxml",name:"HXML","import":function _import(){return _context["import"]("../hxml-e14c68ce.cjs.js");}},{id:"hy",name:"Hy","import":function _import(){return _context["import"]("../hy-1589dae5.cjs.js");}},{id:"imba",name:"Imba","import":function _import(){return _context["import"]("../imba-d9cc71eb.cjs.js");}},{id:"ini",name:"INI",aliases:["properties"],"import":function _import(){return _context["import"]("../ini-ad09f667.cjs.js");}},{id:"java",name:"Java","import":function _import(){return _context["import"]("../java-2f24b586.cjs.js");}},{id:"javascript",name:"JavaScript",aliases:["js"],"import":function _import(){return _context["import"]("../javascript-e8fd5514.cjs.js");}},{id:"jinja",name:"Jinja","import":function _import(){return _context["import"]("../jinja-531bcd2b.cjs.js");}},{id:"jison",name:"Jison","import":function _import(){return _context["import"]("../jison-51bc20b4.cjs.js");}},{id:"json",name:"JSON","import":function _import(){return _context["import"]("../json-18fd93ae.cjs.js");}},{id:"json5",name:"JSON5","import":function _import(){return _context["import"]("../json5-d6d496a7.cjs.js");}},{id:"jsonc",name:"JSON with Comments","import":function _import(){return _context["import"]("../jsonc-3a30fe49.cjs.js");}},{id:"jsonl",name:"JSON Lines","import":function _import(){return _context["import"]("../jsonl-0099d308.cjs.js");}},{id:"jsonnet",name:"Jsonnet","import":function _import(){return _context["import"]("../jsonnet-d499c1c0.cjs.js");}},{id:"jssm",name:"JSSM",aliases:["fsl"],"import":function _import(){return _context["import"]("../jssm-040874c2.cjs.js");}},{id:"jsx",name:"JSX","import":function _import(){return _context["import"]("../jsx-60031136.cjs.js");}},{id:"julia",name:"Julia",aliases:["jl"],"import":function _import(){return _context["import"]("../julia-8e62cca5.cjs.js");}},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],"import":function _import(){return _context["import"]("../kotlin-13a37220.cjs.js");}},{id:"kusto",name:"Kusto",aliases:["kql"],"import":function _import(){return _context["import"]("../kusto-dd2f9354.cjs.js");}},{id:"latex",name:"LaTeX","import":function _import(){return _context["import"]("../latex-628e6b4c.cjs.js");}},{id:"lean",name:"Lean 4",aliases:["lean4"],"import":function _import(){return _context["import"]("../lean-022d35a5.cjs.js");}},{id:"less",name:"Less","import":function _import(){return _context["import"]("../less-3f3e1b70.cjs.js");}},{id:"liquid",name:"Liquid","import":function _import(){return _context["import"]("../liquid-7d2c2efd.cjs.js");}},{id:"log",name:"Log file","import":function _import(){return _context["import"]("../log-db120166.cjs.js");}},{id:"logo",name:"Logo","import":function _import(){return _context["import"]("../logo-b8e970c1.cjs.js");}},{id:"lua",name:"Lua","import":function _import(){return _context["import"]("../lua-2e24172f.cjs.js");}},{id:"luau",name:"Luau","import":function _import(){return _context["import"]("../luau-98cb1103.cjs.js");}},{id:"make",name:"Makefile",aliases:["makefile"],"import":function _import(){return _context["import"]("../make-d46cc9b0.cjs.js");}},{id:"markdown",name:"Markdown",aliases:["md"],"import":function _import(){return _context["import"]("../markdown-689adede.cjs.js");}},{id:"marko",name:"Marko","import":function _import(){return _context["import"]("../marko-04618592.cjs.js");}},{id:"matlab",name:"MATLAB","import":function _import(){return _context["import"]("../matlab-e2c2ae0f.cjs.js");}},{id:"mdc",name:"MDC","import":function _import(){return _context["import"]("../mdc-04cf5395.cjs.js");}},{id:"mdx",name:"MDX","import":function _import(){return _context["import"]("../mdx-cfcec5a0.cjs.js");}},{id:"mermaid",name:"Mermaid",aliases:["mmd"],"import":function _import(){return _context["import"]("../mermaid-c03c4440.cjs.js");}},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],"import":function _import(){return _context["import"]("../mipsasm-bbb4ba7a.cjs.js");}},{id:"mojo",name:"Mojo","import":function _import(){return _context["import"]("../mojo-3903d67b.cjs.js");}},{id:"move",name:"Move","import":function _import(){return _context["import"]("../move-4f9f1021.cjs.js");}},{id:"narrat",name:"Narrat Language",aliases:["nar"],"import":function _import(){return _context["import"]("../narrat-222e74f7.cjs.js");}},{id:"nextflow",name:"Nextflow",aliases:["nf"],"import":function _import(){return _context["import"]("../nextflow-ddee4a1c.cjs.js");}},{id:"nginx",name:"Nginx","import":function _import(){return _context["import"]("../nginx-2381ebc8.cjs.js");}},{id:"nim",name:"Nim","import":function _import(){return _context["import"]("../nim-3e33acdd.cjs.js");}},{id:"nix",name:"Nix","import":function _import(){return _context["import"]("../nix-e2081fe5.cjs.js");}},{id:"nushell",name:"nushell",aliases:["nu"],"import":function _import(){return _context["import"]("../nushell-805549e9.cjs.js");}},{id:"objective-c",name:"Objective-C",aliases:["objc"],"import":function _import(){return _context["import"]("../objective-c-009b832a.cjs.js");}},{id:"objective-cpp",name:"Objective-C++","import":function _import(){return _context["import"]("../objective-cpp-71098514.cjs.js");}},{id:"ocaml",name:"OCaml","import":function _import(){return _context["import"]("../ocaml-8846040d.cjs.js");}},{id:"pascal",name:"Pascal","import":function _import(){return _context["import"]("../pascal-0e4492b8.cjs.js");}},{id:"perl",name:"Perl","import":function _import(){return _context["import"]("../perl-a5634193.cjs.js");}},{id:"php",name:"PHP","import":function _import(){return _context["import"]("../php-d5bab442.cjs.js");}},{id:"plsql",name:"PL/SQL","import":function _import(){return _context["import"]("../plsql-9c8ee386.cjs.js");}},{id:"po",name:"Gettext PO",aliases:["pot","potx"],"import":function _import(){return _context["import"]("../po-24d97211.cjs.js");}},{id:"polar",name:"Polar","import":function _import(){return _context["import"]("../polar-921304c6.cjs.js");}},{id:"postcss",name:"PostCSS","import":function _import(){return _context["import"]("../postcss-1b84fc0d.cjs.js");}},{id:"powerquery",name:"PowerQuery","import":function _import(){return _context["import"]("../powerquery-fb52d5d9.cjs.js");}},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],"import":function _import(){return _context["import"]("../powershell-5aefc8e3.cjs.js");}},{id:"prisma",name:"Prisma","import":function _import(){return _context["import"]("../prisma-9f564802.cjs.js");}},{id:"prolog",name:"Prolog","import":function _import(){return _context["import"]("../prolog-5e9ffbd6.cjs.js");}},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],"import":function _import(){return _context["import"]("../proto-c1a3bf62.cjs.js");}},{id:"pug",name:"Pug",aliases:["jade"],"import":function _import(){return _context["import"]("../pug-88eaea02.cjs.js");}},{id:"puppet",name:"Puppet","import":function _import(){return _context["import"]("../puppet-9ef0f18b.cjs.js");}},{id:"purescript",name:"PureScript","import":function _import(){return _context["import"]("../purescript-18e6882d.cjs.js");}},{id:"python",name:"Python",aliases:["py"],"import":function _import(){return _context["import"]("../python-1d2fd791.cjs.js");}},{id:"qml",name:"QML","import":function _import(){return _context["import"]("../qml-cf82e0f6.cjs.js");}},{id:"qmldir",name:"QML Directory","import":function _import(){return _context["import"]("../qmldir-de94058a.cjs.js");}},{id:"qss",name:"Qt Style Sheets","import":function _import(){return _context["import"]("../qss-b5aebc0c.cjs.js");}},{id:"r",name:"R","import":function _import(){return _context["import"]("../r-fdd0413b.cjs.js");}},{id:"racket",name:"Racket","import":function _import(){return _context["import"]("../racket-c068f3bc.cjs.js");}},{id:"raku",name:"Raku",aliases:["perl6"],"import":function _import(){return _context["import"]("../raku-b48b46a6.cjs.js");}},{id:"razor",name:"ASP.NET Razor","import":function _import(){return _context["import"]("../razor-f5e18e24.cjs.js");}},{id:"reg",name:"Windows Registry Script","import":function _import(){return _context["import"]("../reg-68d16dfb.cjs.js");}},{id:"regexp",name:"RegExp",aliases:["regex"],"import":function _import(){return _context["import"]("../regexp-44c586a9.cjs.js");}},{id:"rel",name:"Rel","import":function _import(){return _context["import"]("../rel-9900a7f6.cjs.js");}},{id:"riscv",name:"RISC-V","import":function _import(){return _context["import"]("../riscv-3ac788ca.cjs.js");}},{id:"rst",name:"reStructuredText","import":function _import(){return _context["import"]("../rst-966ef0cd.cjs.js");}},{id:"ruby",name:"Ruby",aliases:["rb"],"import":function _import(){return _context["import"]("../ruby-5385e2a7.cjs.js");}},{id:"rust",name:"Rust",aliases:["rs"],"import":function _import(){return _context["import"]("../rust-6fb94e35.cjs.js");}},{id:"sas",name:"SAS","import":function _import(){return _context["import"]("../sas-a513f9ca.cjs.js");}},{id:"sass",name:"Sass","import":function _import(){return _context["import"]("../sass-4220748f.cjs.js");}},{id:"scala",name:"Scala","import":function _import(){return _context["import"]("../scala-aa0de218.cjs.js");}},{id:"scheme",name:"Scheme","import":function _import(){return _context["import"]("../scheme-06289ec9.cjs.js");}},{id:"scss",name:"SCSS","import":function _import(){return _context["import"]("../scss-54e688d0.cjs.js");}},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],"import":function _import(){return _context["import"]("../sdbl-a2730c67.cjs.js");}},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],"import":function _import(){return _context["import"]("../shaderlab-853762f0.cjs.js");}},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],"import":function _import(){return _context["import"]("../shellscript-73ad6e44.cjs.js");}},{id:"shellsession",name:"Shell Session",aliases:["console"],"import":function _import(){return _context["import"]("../shellsession-654b28c9.cjs.js");}},{id:"smalltalk",name:"Smalltalk","import":function _import(){return _context["import"]("../smalltalk-ace12703.cjs.js");}},{id:"solidity",name:"Solidity","import":function _import(){return _context["import"]("../solidity-9d6e575f.cjs.js");}},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],"import":function _import(){return _context["import"]("../soy-d3591001.cjs.js");}},{id:"sparql",name:"SPARQL","import":function _import(){return _context["import"]("../sparql-8ed73595.cjs.js");}},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],"import":function _import(){return _context["import"]("../splunk-ef1cc8d4.cjs.js");}},{id:"sql",name:"SQL","import":function _import(){return _context["import"]("../sql-86ed6f13.cjs.js");}},{id:"ssh-config",name:"SSH Config","import":function _import(){return _context["import"]("../ssh-config-30310dc2.cjs.js");}},{id:"stata",name:"Stata","import":function _import(){return _context["import"]("../stata-fba958a6.cjs.js");}},{id:"stylus",name:"Stylus",aliases:["styl"],"import":function _import(){return _context["import"]("../stylus-e8eef6dc.cjs.js");}},{id:"svelte",name:"Svelte","import":function _import(){return _context["import"]("../svelte-5d540b6f.cjs.js");}},{id:"swift",name:"Swift","import":function _import(){return _context["import"]("../swift-c0a720cf.cjs.js");}},{id:"system-verilog",name:"SystemVerilog","import":function _import(){return _context["import"]("../system-verilog-471aafe2.cjs.js");}},{id:"systemd",name:"Systemd Units","import":function _import(){return _context["import"]("../systemd-4d840026.cjs.js");}},{id:"talonscript",name:"TalonScript",aliases:["talon"],"import":function _import(){return _context["import"]("../talonscript-8f04619f.cjs.js");}},{id:"tasl",name:"Tasl","import":function _import(){return _context["import"]("../tasl-dd3832d4.cjs.js");}},{id:"tcl",name:"Tcl","import":function _import(){return _context["import"]("../tcl-d383bf5e.cjs.js");}},{id:"templ",name:"Templ","import":function _import(){return _context["import"]("../templ-cfbbef67.cjs.js");}},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],"import":function _import(){return _context["import"]("../terraform-6fb6f21f.cjs.js");}},{id:"tex",name:"TeX","import":function _import(){return _context["import"]("../tex-0eda14ad.cjs.js");}},{id:"toml",name:"TOML","import":function _import(){return _context["import"]("../toml-edb0ff22.cjs.js");}},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],"import":function _import(){return _context["import"]("../ts-tags-d38c362f.cjs.js");}},{id:"tsv",name:"TSV","import":function _import(){return _context["import"]("../tsv-b349f4f0.cjs.js");}},{id:"tsx",name:"TSX","import":function _import(){return _context["import"]("../tsx-6a03ea0b.cjs.js");}},{id:"turtle",name:"Turtle","import":function _import(){return _context["import"]("../turtle-d9b78f78.cjs.js");}},{id:"twig",name:"Twig","import":function _import(){return _context["import"]("../twig-e24552b5.cjs.js");}},{id:"typescript",name:"TypeScript",aliases:["ts"],"import":function _import(){return _context["import"]("../typescript-7588ff0c.cjs.js");}},{id:"typespec",name:"TypeSpec",aliases:["tsp"],"import":function _import(){return _context["import"]("../typespec-7248274e.cjs.js");}},{id:"typst",name:"Typst",aliases:["typ"],"import":function _import(){return _context["import"]("../typst-a57a6d8b.cjs.js");}},{id:"v",name:"V","import":function _import(){return _context["import"]("../v-387e67b5.cjs.js");}},{id:"vala",name:"Vala","import":function _import(){return _context["import"]("../vala-e2481469.cjs.js");}},{id:"vb",name:"Visual Basic",aliases:["cmd"],"import":function _import(){return _context["import"]("../vb-2847a701.cjs.js");}},{id:"verilog",name:"Verilog","import":function _import(){return _context["import"]("../verilog-a78444d1.cjs.js");}},{id:"vhdl",name:"VHDL","import":function _import(){return _context["import"]("../vhdl-9516dcfa.cjs.js");}},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],"import":function _import(){return _context["import"]("../viml-66d0a14d.cjs.js");}},{id:"vue",name:"Vue","import":function _import(){return _context["import"]("../vue-57992d1c.cjs.js");}},{id:"vue-html",name:"Vue HTML","import":function _import(){return _context["import"]("../vue-html-f9d23379.cjs.js");}},{id:"vyper",name:"Vyper",aliases:["vy"],"import":function _import(){return _context["import"]("../vyper-796df9fb.cjs.js");}},{id:"wasm",name:"WebAssembly","import":function _import(){return _context["import"]("../wasm-495cfa3b.cjs.js");}},{id:"wenyan",name:"Wenyan",aliases:["文言"],"import":function _import(){return _context["import"]("../wenyan-e2731fa1.cjs.js");}},{id:"wgsl",name:"WGSL","import":function _import(){return _context["import"]("../wgsl-6445afc9.cjs.js");}},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],"import":function _import(){return _context["import"]("../wikitext-6acdb3c2.cjs.js");}},{id:"wolfram",name:"Wolfram",aliases:["wl"],"import":function _import(){return _context["import"]("../wolfram-7911b09a.cjs.js");}},{id:"xml",name:"XML","import":function _import(){return _context["import"]("../xml-f6634314.cjs.js");}},{id:"xsl",name:"XSL","import":function _import(){return _context["import"]("../xsl-89d7edf0.cjs.js");}},{id:"yaml",name:"YAML",aliases:["yml"],"import":function _import(){return _context["import"]("../yaml-d13758b5.cjs.js");}},{id:"zenscript",name:"ZenScript","import":function _import(){return _context["import"]("../zenscript-dabf05e2.cjs.js");}},{id:"zig",name:"Zig","import":function _import(){return _context["import"]("../zig-182218b6.cjs.js");}}],a=_objectSpread(_objectSpread({},Object.fromEntries(l.map(function(t){return[t.id,t["import"]];}))),Object.fromEntries(l.flatMap(function(t){var _t$aliases;return((_t$aliases=t.aliases)===null||_t$aliases===void 0?void 0:_t$aliases.map(function(e){return[e,t["import"]];}))||[];}))),c=[{id:"andromeeda",displayName:"Andromeeda",type:"dark","import":function _import(){return _context["import"]("../andromeeda-e75bca18.cjs.js");}},{id:"aurora-x",displayName:"Aurora X",type:"dark","import":function _import(){return _context["import"]("../aurora-x-38d2b9f7.cjs.js");}},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark","import":function _import(){return _context["import"]("../ayu-dark-67b69907.cjs.js");}},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark","import":function _import(){return _context["import"]("../catppuccin-frappe-52a52bb1.cjs.js");}},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light","import":function _import(){return _context["import"]("../catppuccin-latte-d8a0f6a8.cjs.js");}},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark","import":function _import(){return _context["import"]("../catppuccin-macchiato-19a7795e.cjs.js");}},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark","import":function _import(){return _context["import"]("../catppuccin-mocha-9f9ec5f6.cjs.js");}},{id:"dark-plus",displayName:"Dark Plus",type:"dark","import":function _import(){return _context["import"]("../dark-plus-c4bf2744.cjs.js");}},{id:"dracula",displayName:"Dracula Theme",type:"dark","import":function _import(){return _context["import"]("../dracula-194d4cbb.cjs.js");}},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark","import":function _import(){return _context["import"]("../dracula-soft-72e9ff7e.cjs.js");}},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark","import":function _import(){return _context["import"]("../everforest-dark-c1192a3d.cjs.js");}},{id:"everforest-light",displayName:"Everforest Light",type:"light","import":function _import(){return _context["import"]("../everforest-light-479f9dab.cjs.js");}},{id:"github-dark",displayName:"GitHub Dark",type:"dark","import":function _import(){return _context["import"]("../github-dark-f22dbc3f.cjs.js");}},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark","import":function _import(){return _context["import"]("../github-dark-default-450c7c01.cjs.js");}},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark","import":function _import(){return _context["import"]("../github-dark-dimmed-ef1406bd.cjs.js");}},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark","import":function _import(){return _context["import"]("../github-dark-high-contrast-60f6edfa.cjs.js");}},{id:"github-light",displayName:"GitHub Light",type:"light","import":function _import(){return _context["import"]("../github-light-9fcd2de8.cjs.js");}},{id:"github-light-default",displayName:"GitHub Light Default",type:"light","import":function _import(){return _context["import"]("../github-light-default-cf60a983.cjs.js");}},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light","import":function _import(){return _context["import"]("../github-light-high-contrast-ab424680.cjs.js");}},{id:"houston",displayName:"Houston",type:"dark","import":function _import(){return _context["import"]("../houston-c5fd415a.cjs.js");}},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark","import":function _import(){return _context["import"]("../kanagawa-dragon-578047a3.cjs.js");}},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light","import":function _import(){return _context["import"]("../kanagawa-lotus-02d65cee.cjs.js");}},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark","import":function _import(){return _context["import"]("../kanagawa-wave-15ed6072.cjs.js");}},{id:"laserwave",displayName:"LaserWave",type:"dark","import":function _import(){return _context["import"]("../laserwave-00235336.cjs.js");}},{id:"light-plus",displayName:"Light Plus",type:"light","import":function _import(){return _context["import"]("../light-plus-ddb182bb.cjs.js");}},{id:"material-theme",displayName:"Material Theme",type:"dark","import":function _import(){return _context["import"]("../material-theme-6bd1a4ce.cjs.js");}},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark","import":function _import(){return _context["import"]("../material-theme-darker-ad11633a.cjs.js");}},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light","import":function _import(){return _context["import"]("../material-theme-lighter-d07fe9fc.cjs.js");}},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark","import":function _import(){return _context["import"]("../material-theme-ocean-6d08ece3.cjs.js");}},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark","import":function _import(){return _context["import"]("../material-theme-palenight-44924eac.cjs.js");}},{id:"min-dark",displayName:"Min Dark",type:"dark","import":function _import(){return _context["import"]("../min-dark-b1451b85.cjs.js");}},{id:"min-light",displayName:"Min Light",type:"light","import":function _import(){return _context["import"]("../min-light-415eaf98.cjs.js");}},{id:"monokai",displayName:"Monokai",type:"dark","import":function _import(){return _context["import"]("../monokai-c21b0aa1.cjs.js");}},{id:"night-owl",displayName:"Night Owl",type:"dark","import":function _import(){return _context["import"]("../night-owl-406f7a69.cjs.js");}},{id:"nord",displayName:"Nord",type:"dark","import":function _import(){return _context["import"]("../nord-da5137c0.cjs.js");}},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark","import":function _import(){return _context["import"]("../one-dark-pro-3bcc58f7.cjs.js");}},{id:"one-light",displayName:"One Light",type:"light","import":function _import(){return _context["import"]("../one-light-a7b00541.cjs.js");}},{id:"plastic",displayName:"Plastic",type:"dark","import":function _import(){return _context["import"]("../plastic-bf752d9d.cjs.js");}},{id:"poimandres",displayName:"Poimandres",type:"dark","import":function _import(){return _context["import"]("../poimandres-14854837.cjs.js");}},{id:"red",displayName:"Red",type:"dark","import":function _import(){return _context["import"]("../red-d4f18aeb.cjs.js");}},{id:"rose-pine",displayName:"Rosé Pine",type:"dark","import":function _import(){return _context["import"]("../rose-pine-28d31893.cjs.js");}},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light","import":function _import(){return _context["import"]("../rose-pine-dawn-cc878631.cjs.js");}},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark","import":function _import(){return _context["import"]("../rose-pine-moon-ab197653.cjs.js");}},{id:"slack-dark",displayName:"Slack Dark",type:"dark","import":function _import(){return _context["import"]("../slack-dark-9441e826.cjs.js");}},{id:"slack-ochin",displayName:"Slack Ochin",type:"light","import":function _import(){return _context["import"]("../slack-ochin-6028b180.cjs.js");}},{id:"snazzy-light",displayName:"Snazzy Light",type:"light","import":function _import(){return _context["import"]("../snazzy-light-b71cee57.cjs.js");}},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark","import":function _import(){return _context["import"]("../solarized-dark-d963acfe.cjs.js");}},{id:"solarized-light",displayName:"Solarized Light",type:"light","import":function _import(){return _context["import"]("../solarized-light-1b49343e.cjs.js");}},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark","import":function _import(){return _context["import"]("../synthwave-84-d04f7cff.cjs.js");}},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark","import":function _import(){return _context["import"]("../tokyo-night-041a0b32.cjs.js");}},{id:"vesper",displayName:"Vesper",type:"dark","import":function _import(){return _context["import"]("../vesper-e992e238.cjs.js");}},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark","import":function _import(){return _context["import"]("../vitesse-black-5bf0580d.cjs.js");}},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark","import":function _import(){return _context["import"]("../vitesse-dark-05d3e2a3.cjs.js");}},{id:"vitesse-light",displayName:"Vitesse Light",type:"light","import":function _import(){return _context["import"]("../vitesse-light-357ec0ca.cjs.js");}}],u=Object.fromEntries(c.map(function(t){return[t.id,t["import"]];}));m=/*#__PURE__*/function(_Error){function m(t){var _this;_classCallCheck(this,m);_this=_callSuper(this,m,[t]),_this.name="ShikiError";return _this;}_inherits(m,_Error);return _createClass(m);}(/*#__PURE__*/_wrapNativeSuper(Error)),p=/*#__PURE__*/function(_Error2){function p(t){var _this2;_classCallCheck(this,p);_this2=_callSuper(this,p,[t]),_this2.name="ShikiError";return _this2;}_inherits(p,_Error2);return _createClass(p);}(/*#__PURE__*/_wrapNativeSuper(Error));d=function d(t,e){return t+(e-t%e)%e;};g=Object.defineProperty,j=function j(t,e,n){return function(t,e,n){e in t?g(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;}(t,"symbol"!=_typeof(e)?e+"":e,n),n;};y=null;b=/*#__PURE__*/function(){function b(t){_classCallCheck(this,b);j(this,"utf16Length"),j(this,"utf8Length"),j(this,"utf16Value"),j(this,"utf8Value"),j(this,"utf16OffsetToUtf8"),j(this,"utf8OffsetToUtf16");var e=t.length,n=b._utf8ByteLength(t),i=n!==e,r=i?new Uint32Array(e+1):null;i&&(r[e]=n);var s=i?new Uint32Array(n+1):null;i&&(s[n]=e);var o=new Uint8Array(n);var l=0;for(var _n2=0;_n2<e;_n2++){var _a=t.charCodeAt(_n2);var _c=_a,_u=!1;if(_a>=55296&&_a<=56319&&_n2+1<e){var _e2=t.charCodeAt(_n2+1);_e2>=56320&&_e2<=57343&&(_c=65536+(_a-55296<<10)|_e2-56320,_u=!0);}i&&(r[_n2]=l,_u&&(r[_n2+1]=l),_c<=127?s[l+0]=_n2:_c<=2047?(s[l+0]=_n2,s[l+1]=_n2):_c<=65535?(s[l+0]=_n2,s[l+1]=_n2,s[l+2]=_n2):(s[l+0]=_n2,s[l+1]=_n2,s[l+2]=_n2,s[l+3]=_n2)),_c<=127?o[l++]=_c:_c<=2047?(o[l++]=192|(1984&_c)>>>6,o[l++]=128|(63&_c)>>>0):_c<=65535?(o[l++]=224|(61440&_c)>>>12,o[l++]=128|(4032&_c)>>>6,o[l++]=128|(63&_c)>>>0):(o[l++]=240|(1835008&_c)>>>18,o[l++]=128|(258048&_c)>>>12,o[l++]=128|(4032&_c)>>>6,o[l++]=128|(63&_c)>>>0),_u&&_n2++;}this.utf16Length=e,this.utf8Length=n,this.utf16Value=t,this.utf8Value=o,this.utf16OffsetToUtf8=r,this.utf8OffsetToUtf16=s;}return _createClass(b,[{key:"createString",value:function createString(t){var e=t.omalloc(this.utf8Length);return t.HEAPU8.set(this.utf8Value,e),e;}}],[{key:"_utf8ByteLength",value:function _utf8ByteLength(t){var e=0;for(var _n3=0,_i=t.length;_n3<_i;_n3++){var _r=t.charCodeAt(_n3);var _s=_r,_o=!1;if(_r>=55296&&_r<=56319&&_n3+1<_i){var _e3=t.charCodeAt(_n3+1);_e3>=56320&&_e3<=57343&&(_s=65536+(_r-55296<<10)|_e3-56320,_o=!0);}e+=_s<=127?1:_s<=2047?2:_s<=65535?3:4,_o&&_n3++;}return e;}}]);}();_w=/*#__PURE__*/function(){function w(t){_classCallCheck(this,w);if(j(this,"id",++_w.LAST_ID),j(this,"_onigBinding"),j(this,"content"),j(this,"utf16Length"),j(this,"utf8Length"),j(this,"utf16OffsetToUtf8"),j(this,"utf8OffsetToUtf16"),j(this,"ptr"),!y)throw new p("Must invoke loadWasm first.");this._onigBinding=y,this.content=t;var e=new b(t);this.utf16Length=e.utf16Length,this.utf8Length=e.utf8Length,this.utf16OffsetToUtf8=e.utf16OffsetToUtf8,this.utf8OffsetToUtf16=e.utf8OffsetToUtf16,this.utf8Length<1e4&&!_w._sharedPtrInUse?(_w._sharedPtr||(_w._sharedPtr=y.omalloc(1e4)),_w._sharedPtrInUse=!0,y.HEAPU8.set(e.utf8Value,_w._sharedPtr),this.ptr=_w._sharedPtr):this.ptr=e.createString(y);}return _createClass(w,[{key:"convertUtf8OffsetToUtf16",value:function convertUtf8OffsetToUtf16(t){return this.utf8OffsetToUtf16?t<0?0:t>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[t]:t;}},{key:"convertUtf16OffsetToUtf8",value:function convertUtf16OffsetToUtf8(t){return this.utf16OffsetToUtf8?t<0?0:t>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[t]:t;}},{key:"dispose",value:function dispose(){this.ptr===_w._sharedPtr?_w._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr);}}]);}();v=_w;j(v,"LAST_ID",0),j(v,"_sharedPtr",0),j(v,"_sharedPtrInUse",!1);S=/*#__PURE__*/function(){function S(t){_classCallCheck(this,S);if(j(this,"_onigBinding"),j(this,"_ptr"),!y)throw new p("Must invoke loadWasm first.");var e=[],n=[];for(var _i2=0,_r2=t.length;_i2<_r2;_i2++){var _r3=new b(t[_i2]);e[_i2]=_r3.createString(y),n[_i2]=_r3.utf8Length;}var i=y.omalloc(4*t.length);y.HEAPU32.set(e,i/4);var r=y.omalloc(4*t.length);y.HEAPU32.set(n,r/4);var s=y.createOnigScanner(i,r,t.length);for(var _n4=0,_i3=t.length;_n4<_i3;_n4++)y.ofree(e[_n4]);y.ofree(r),y.ofree(i),0===s&&function(t){throw new p(t.UTF8ToString(t.getLastOnigError()));}(y),this._onigBinding=y,this._ptr=s;}return _createClass(S,[{key:"dispose",value:function dispose(){this._onigBinding.freeOnigScanner(this._ptr);}},{key:"findNextMatchSync",value:function findNextMatchSync(t,e,n){var i=0;if("number"==typeof n&&(i=n),"string"==typeof t){t=new v(t);var _n5=this._findNextMatchSync(t,e,!1,i);return t.dispose(),_n5;}return this._findNextMatchSync(t,e,!1,i);}},{key:"_findNextMatchSync",value:function _findNextMatchSync(t,e,n,i){var r=this._onigBinding,s=r.findNextOnigScannerMatch(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(e),i);if(0===s)return null;var o=r.HEAPU32;var l=s/4;var a=o[l++],c=o[l++],u=[];for(var _e4=0;_e4<c;_e4++){var _n6=t.convertUtf8OffsetToUtf16(o[l++]),_i4=t.convertUtf8OffsetToUtf16(o[l++]);u[_e4]={start:_n6,end:_i4,length:_i4-_n6};}return{index:a,captureIndices:u};}}]);}();O=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,P=/*#__PURE__*/function(){function P(){_classCallCheck(this,P);}return _createClass(P,null,[{key:"hasCaptures",value:function hasCaptures(t){return null!==t&&(O.lastIndex=0,O.test(t));}},{key:"replaceCaptures",value:function replaceCaptures(t,e,n){return t.replace(O,function(t,i,r,s){var o=n[parseInt(i||r,10)];if(!o)return t;{var _t2=e.substring(o.start,o.end);for(;"."===_t2[0];)_t2=_t2.substring(1);switch(s){case"downcase":return _t2.toLowerCase();case"upcase":return _t2.toUpperCase();default:return _t2;}}});}}]);}();R=/*#__PURE__*/function(){function R(t){_classCallCheck(this,R);_defineProperty(this,"cache",new Map());this.fn=t;}return _createClass(R,[{key:"get",value:function get(t){if(this.cache.has(t))return this.cache.get(t);var e=this.fn(t);return this.cache.set(t,e),e;}}]);}(),_$=/*#__PURE__*/function(){function $(_t3,e,n){var _this3=this;_classCallCheck(this,$);_defineProperty(this,"_cachedMatchRoot",new R(function(t){return _this3._root.match(t);}));this._colorMap=_t3,this._defaults=e,this._root=n;}return _createClass($,[{key:"getColorMap",value:function getColorMap(){return this._colorMap.getColorMap();}},{key:"getDefaults",value:function getDefaults(){return this._defaults;}},{key:"match",value:function match(t){if(null===t)return this._defaults;var e=t.scopeName,n=this._cachedMatchRoot.get(e).find(function(e){return function(t,e){if(0===e.length)return!0;for(var _n11=0;_n11<e.length;_n11++){var i=e[_n11],_r4=!1;if(">"===i){if(_n11===e.length-1)return!1;i=e[++_n11],_r4=!0;}for(;t&&!I(t.scopeName,i);){if(_r4)return!1;t=t.parent;}if(!t)return!1;t=t.parent;}return!0;}(t.parent,e.parentScopes);});return n?new G(n.fontStyle,n.foreground,n.background):null;}}],[{key:"createFromRawTheme",value:function createFromRawTheme(t,e){return this.createFromParsedTheme(function(t){if(!t)return[];if(!t.settings||!Array.isArray(t.settings))return[];var e=t.settings,n=[],i=0;for(var _t4=0,_r5=e.length;_t4<_r5;_t4++){var _r6=void 0,_s2=e[_t4];if(!_s2.settings)continue;if("string"==typeof _s2.scope){var _t5=_s2.scope;_t5=_t5.replace(/^[,]+/,""),_t5=_t5.replace(/[,]+$/,""),_r6=_t5.split(",");}else _r6=Array.isArray(_s2.scope)?_s2.scope:[""];var _o2=-1;if("string"==typeof _s2.settings.fontStyle){_o2=0;var _t6=_s2.settings.fontStyle.split(" ");for(var _e5=0,_n12=_t6.length;_e5<_n12;_e5++){switch(_t6[_e5]){case"italic":_o2|=1;break;case"bold":_o2|=2;break;case"underline":_o2|=4;break;case"strikethrough":_o2|=8;}}}var _l=null;"string"==typeof _s2.settings.foreground&&E(_s2.settings.foreground)&&(_l=_s2.settings.foreground);var _a2=null;"string"==typeof _s2.settings.background&&E(_s2.settings.background)&&(_a2=_s2.settings.background);for(var _e6=0,_s3=_r6.length;_e6<_s3;_e6++){var _s4=_r6[_e6].trim().split(" "),_c2=_s4[_s4.length-1],_u2=null;_s4.length>1&&(_u2=_s4.slice(0,_s4.length-1),_u2.reverse()),n[i++]=new q(_c2,_u2,_t4,_o2,_l,_a2);}}return n;}(t),e);}},{key:"createFromParsedTheme",value:function createFromParsedTheme(t,e){return function(t,e){t.sort(function(t,e){var n=N(t.scope,e.scope);return 0!==n?n:(n=D(t.parentScopes,e.parentScopes),0!==n?n:t.index-e.index);});var n=0,i="#000000",r="#ffffff";for(;t.length>=1&&""===t[0].scope;){var _e7=t.shift();-1!==_e7.fontStyle&&(n=_e7.fontStyle),null!==_e7.foreground&&(i=_e7.foreground),null!==_e7.background&&(r=_e7.background);}var s=new F(e),o=new G(n,s.getId(i),s.getId(r)),l=new W(new U(0,null,-1,0,0),[]);for(var _e8=0,_n13=t.length;_e8<_n13;_e8++){var _n14=t[_e8];l.insert(0,_n14.scope,_n14.parentScopes,_n14.fontStyle,s.getId(_n14.foreground),s.getId(_n14.background));}return new _$(s,o,l);}(t,e);}}]);}(),B=/*#__PURE__*/function(){function t(_t7,e){_classCallCheck(this,t);this.parent=_t7,this.scopeName=e;}return _createClass(t,[{key:"push",value:function push(e){return new t(this,e);}},{key:"getSegments",value:function getSegments(){var _t8=this;var e=[];for(;_t8;)e.push(_t8.scopeName),_t8=_t8.parent;return e.reverse(),e;}},{key:"toString",value:function toString(){return this.getSegments().join(" ");}},{key:"extends",value:function _extends(_t9){return this===_t9||null!==this.parent&&this.parent["extends"](_t9);}},{key:"getExtensionIfDefined",value:function getExtensionIfDefined(_t10){var e=[];var n=this;for(;n&&n!==_t10;)e.push(n.scopeName),n=n.parent;return n===_t10?e.reverse():void 0;}}],[{key:"push",value:function push(e,n){var _iterator=_createForOfIteratorHelper(n),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var i=_step.value;e=new t(e,i);}}catch(err){_iterator.e(err);}finally{_iterator.f();}return e;}},{key:"from",value:function from(){var n=null;for(var i=0;i<arguments.length;i++)n=new t(n,i<0||arguments.length<=i?undefined:arguments[i]);return n;}}]);}();G=/*#__PURE__*/_createClass(function G(t,e,n){_classCallCheck(this,G);this.fontStyle=t,this.foregroundId=e,this.backgroundId=n;});q=/*#__PURE__*/_createClass(function q(t,e,n,i,r,s){_classCallCheck(this,q);this.scope=t,this.parentScopes=e,this.index=n,this.fontStyle=i,this.foreground=r,this.background=s;}),z=function(t){return t[t.NotSet=-1]="NotSet",t[t.None=0]="None",t[t.Italic=1]="Italic",t[t.Bold=2]="Bold",t[t.Underline=4]="Underline",t[t.Strikethrough=8]="Strikethrough",t;}(z||{});F=/*#__PURE__*/function(){function F(t){_classCallCheck(this,F);_defineProperty(this,"_isFrozen",void 0);_defineProperty(this,"_lastColorId",void 0);_defineProperty(this,"_id2color",void 0);_defineProperty(this,"_color2id",void 0);if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(t)){this._isFrozen=!0;for(var _e9=0,_n15=t.length;_e9<_n15;_e9++)this._color2id[t[_e9]]=_e9,this._id2color[_e9]=t[_e9];}else this._isFrozen=!1;}return _createClass(F,[{key:"getId",value:function getId(t){if(null===t)return 0;t=t.toUpperCase();var e=this._color2id[t];if(e)return e;if(this._isFrozen)throw new Error("Missing color in color map - ".concat(t));return e=++this._lastColorId,this._color2id[t]=e,this._id2color[e]=t,e;}},{key:"getColorMap",value:function getColorMap(){return this._id2color.slice(0);}}]);}(),H=Object.freeze([]),U=/*#__PURE__*/function(){function t(_t12,e,n,i,r){_classCallCheck(this,t);_defineProperty(this,"scopeDepth",void 0);_defineProperty(this,"parentScopes",void 0);_defineProperty(this,"fontStyle",void 0);_defineProperty(this,"foreground",void 0);_defineProperty(this,"background",void 0);this.scopeDepth=_t12,this.parentScopes=e||H,this.fontStyle=n,this.foreground=i,this.background=r;}return _createClass(t,[{key:"clone",value:function clone(){return new t(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background);}},{key:"acceptOverwrite",value:function acceptOverwrite(_t14,e,n,i){this.scopeDepth>_t14?console.log("how did this happen?"):this.scopeDepth=_t14,-1!==e&&(this.fontStyle=e),0!==n&&(this.foreground=n),0!==i&&(this.background=i);}}],[{key:"cloneArr",value:function cloneArr(_t13){var e=[];for(var _n16=0,i=_t13.length;_n16<i;_n16++)e[_n16]=_t13[_n16].clone();return e;}}]);}(),W=/*#__PURE__*/function(){function t(_t16){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[];var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};_classCallCheck(this,t);_defineProperty(this,"_rulesWithParentScopes",void 0);this._mainRule=_t16,this._children=n,this._rulesWithParentScopes=e;}return _createClass(t,[{key:"match",value:function match(e){if(""!==e){var _t18,_n17,i=e.indexOf(".");if(-1===i?(_t18=e,_n17=""):(_t18=e.substring(0,i),_n17=e.substring(i+1)),this._children.hasOwnProperty(_t18))return this._children[_t18].match(_n17);}var n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(t._cmpBySpecificity),n;}},{key:"insert",value:function insert(e,n,i,r,s,o){if(""===n)return void this._doInsertHere(e,i,r,s,o);var l,a,c,u=n.indexOf(".");-1===u?(l=n,a=""):(l=n.substring(0,u),a=n.substring(u+1)),this._children.hasOwnProperty(l)?c=this._children[l]:(c=new t(this._mainRule.clone(),U.cloneArr(this._rulesWithParentScopes)),this._children[l]=c),c.insert(e+1,a,i,r,s,o);}},{key:"_doInsertHere",value:function _doInsertHere(_t19,e,n,i,r){if(null!==e){for(var _s5=0,_o3=this._rulesWithParentScopes.length;_s5<_o3;_s5++){var _o4=this._rulesWithParentScopes[_s5];if(0===D(_o4.parentScopes,e))return void _o4.acceptOverwrite(_t19,n,i,r);}-1===n&&(n=this._mainRule.fontStyle),0===i&&(i=this._mainRule.foreground),0===r&&(r=this._mainRule.background),this._rulesWithParentScopes.push(new U(_t19,e,n,i,r));}else this._mainRule.acceptOverwrite(_t19,n,i,r);}}],[{key:"_cmpBySpecificity",value:function _cmpBySpecificity(_t17,e){if(_t17.scopeDepth!==e.scopeDepth)return e.scopeDepth-_t17.scopeDepth;var n=0,i=0;for(;">"===_t17.parentScopes[n]&&n++,">"===e.parentScopes[i]&&i++,!(n>=_t17.parentScopes.length||i>=e.parentScopes.length);){var _r7=e.parentScopes[i].length-_t17.parentScopes[n].length;if(0!==_r7)return _r7;n++,i++;}return e.parentScopes.length-_t17.parentScopes.length;}}]);}(),V=/*#__PURE__*/function(){function t(){_classCallCheck(this,t);}return _createClass(t,null,[{key:"toBinaryStr",value:function toBinaryStr(_t20){return _t20.toString(2).padStart(32,"0");}},{key:"print",value:function print(e){var n=t.getLanguageId(e),i=t.getTokenType(e),r=t.getFontStyle(e),s=t.getForeground(e),o=t.getBackground(e);console.log({languageId:n,tokenType:i,fontStyle:r,foreground:s,background:o});}},{key:"getLanguageId",value:function getLanguageId(_t21){return(255&_t21)>>>0;}},{key:"getTokenType",value:function getTokenType(_t22){return(768&_t22)>>>8;}},{key:"containsBalancedBrackets",value:function containsBalancedBrackets(_t23){return!!(1024&_t23);}},{key:"getFontStyle",value:function getFontStyle(_t24){return(30720&_t24)>>>11;}},{key:"getForeground",value:function getForeground(_t25){return(16744448&_t25)>>>15;}},{key:"getBackground",value:function getBackground(_t26){return(4278190080&_t26)>>>24;}},{key:"set",value:function set(e,n,i,r,s,o,l){var a=t.getLanguageId(e),c=t.getTokenType(e),u=t.containsBalancedBrackets(e)?1:0,m=t.getFontStyle(e),p=t.getForeground(e),h=t.getBackground(e);return 0!==n&&(a=n),8!==i&&(c=i),null!==r&&(u=r?1:0),-1!==s&&(m=s),0!==o&&(p=o),0!==l&&(h=l),(a|c<<8|u<<10|m<<11|p<<15|h<<24)>>>0;}}]);}();Y=/*#__PURE__*/function(){function Y(t){_classCallCheck(this,Y);this.scopeName=t;}return _createClass(Y,[{key:"toKey",value:function toKey(){return this.scopeName;}}]);}(),Q=/*#__PURE__*/function(){function Q(t,e){_classCallCheck(this,Q);this.scopeName=t,this.ruleName=e;}return _createClass(Q,[{key:"toKey",value:function toKey(){return"".concat(this.scopeName,"#").concat(this.ruleName);}}]);}(),Z=/*#__PURE__*/function(){function Z(){_classCallCheck(this,Z);_defineProperty(this,"_references",[]);_defineProperty(this,"_seenReferenceKeys",new Set());_defineProperty(this,"visitedRule",new Set());}return _createClass(Z,[{key:"references",get:function get(){return this._references;}},{key:"add",value:function add(t){var e=t.toKey();this._seenReferenceKeys.has(e)||(this._seenReferenceKeys.add(e),this._references.push(t));}}]);}(),tt=/*#__PURE__*/function(){function tt(t,e){_classCallCheck(this,tt);_defineProperty(this,"seenFullScopeRequests",new Set());_defineProperty(this,"seenPartialScopeRequests",new Set());_defineProperty(this,"Q",void 0);this.repo=t,this.initialScopeName=e,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Y(this.initialScopeName)];}return _createClass(tt,[{key:"processQueue",value:function processQueue(){var t=this.Q;this.Q=[];var e=new Z();var _iterator2=_createForOfIteratorHelper(t),_step2;try{for(_iterator2.s();!(_step2=_iterator2.n()).done;){var _n18=_step2.value;et(_n18,this.initialScopeName,this.repo,e);}}catch(err){_iterator2.e(err);}finally{_iterator2.f();}var _iterator3=_createForOfIteratorHelper(e.references),_step3;try{for(_iterator3.s();!(_step3=_iterator3.n()).done;){var _t31=_step3.value;if(_t31 instanceof Y){if(this.seenFullScopeRequests.has(_t31.scopeName))continue;this.seenFullScopeRequests.add(_t31.scopeName),this.Q.push(_t31);}else{if(this.seenFullScopeRequests.has(_t31.scopeName))continue;if(this.seenPartialScopeRequests.has(_t31.toKey()))continue;this.seenPartialScopeRequests.add(_t31.toKey()),this.Q.push(_t31);}}}catch(err){_iterator3.e(err);}finally{_iterator3.f();}}}]);}();st=/*#__PURE__*/_createClass(function st(){_classCallCheck(this,st);_defineProperty(this,"kind",0);}),ot=/*#__PURE__*/_createClass(function ot(){_classCallCheck(this,ot);_defineProperty(this,"kind",1);}),lt=/*#__PURE__*/_createClass(function lt(t){_classCallCheck(this,lt);_defineProperty(this,"kind",2);this.ruleName=t;}),at=/*#__PURE__*/_createClass(function at(t){_classCallCheck(this,at);_defineProperty(this,"kind",3);this.scopeName=t;}),ct=/*#__PURE__*/_createClass(function ct(t,e){_classCallCheck(this,ct);_defineProperty(this,"kind",4);this.scopeName=t,this.ruleName=e;});mt=/\\(\d+)/,pt=/\\(\d+)/g;ht=/*#__PURE__*/function(){function ht(t,e,n,i){_classCallCheck(this,ht);_defineProperty(this,"$location",void 0);_defineProperty(this,"id",void 0);_defineProperty(this,"_nameIsCapturing",void 0);_defineProperty(this,"_name",void 0);_defineProperty(this,"_contentNameIsCapturing",void 0);_defineProperty(this,"_contentName",void 0);this.$location=t,this.id=e,this._name=n||null,this._nameIsCapturing=P.hasCaptures(this._name),this._contentName=i||null,this._contentNameIsCapturing=P.hasCaptures(this._contentName);}return _createClass(ht,[{key:"debugName",get:function get(){var t=this.$location?"".concat(M(this.$location.filename),":").concat(this.$location.line):"unknown";return"".concat(this.constructor.name,"#").concat(this.id," @ ").concat(t);}},{key:"getName",value:function getName(t,e){return this._nameIsCapturing&&null!==this._name&&null!==t&&null!==e?P.replaceCaptures(this._name,t,e):this._name;}},{key:"getContentName",value:function getContentName(t,e){return this._contentNameIsCapturing&&null!==this._contentName?P.replaceCaptures(this._contentName,t,e):this._contentName;}}]);}(),dt=/*#__PURE__*/function(_ht){function dt(t,e,n,i,r){var _this4;_classCallCheck(this,dt);_this4=_callSuper(this,dt,[t,e,n,i]),_defineProperty(_assertThisInitialized(_this4),"retokenizeCapturedWithRuleId",void 0),_this4.retokenizeCapturedWithRuleId=r;return _this4;}_inherits(dt,_ht);return _createClass(dt,[{key:"dispose",value:function dispose(){}},{key:"collectPatterns",value:function collectPatterns(t,e){throw new Error("Not supported!");}},{key:"compile",value:function compile(t,e){throw new Error("Not supported!");}},{key:"compileAG",value:function compileAG(t,e,n,i){throw new Error("Not supported!");}}]);}(ht),ft=/*#__PURE__*/function(_ht2){function ft(t,e,n,i,r){var _this5;_classCallCheck(this,ft);_this5=_callSuper(this,ft,[t,e,n,null]),_defineProperty(_assertThisInitialized(_this5),"_match",void 0),_defineProperty(_assertThisInitialized(_this5),"captures",void 0),_defineProperty(_assertThisInitialized(_this5),"_cachedCompiledPatterns",void 0),_this5._match=new wt(i,_this5.id),_this5.captures=r,_this5._cachedCompiledPatterns=null;return _this5;}_inherits(ft,_ht2);return _createClass(ft,[{key:"dispose",value:function dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null);}},{key:"debugMatchRegExp",get:function get(){return"".concat(this._match.source);}},{key:"collectPatterns",value:function collectPatterns(t,e){e.push(this._match);}},{key:"compile",value:function compile(t,e){return this._getCachedCompiledPatterns(t).compile(t);}},{key:"compileAG",value:function compileAG(t,e,n,i){return this._getCachedCompiledPatterns(t).compileAG(t,n,i);}},{key:"_getCachedCompiledPatterns",value:function _getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new kt(),this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns;}}]);}(ht),gt=/*#__PURE__*/function(_ht3){function gt(t,e,n,i,r){var _this6;_classCallCheck(this,gt);_this6=_callSuper(this,gt,[t,e,n,i]),_defineProperty(_assertThisInitialized(_this6),"hasMissingPatterns",void 0),_defineProperty(_assertThisInitialized(_this6),"patterns",void 0),_defineProperty(_assertThisInitialized(_this6),"_cachedCompiledPatterns",void 0),_this6.patterns=r.patterns,_this6.hasMissingPatterns=r.hasMissingPatterns,_this6._cachedCompiledPatterns=null;return _this6;}_inherits(gt,_ht3);return _createClass(gt,[{key:"dispose",value:function dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null);}},{key:"collectPatterns",value:function collectPatterns(t,e){var _iterator6=_createForOfIteratorHelper(this.patterns),_step6;try{for(_iterator6.s();!(_step6=_iterator6.n()).done;){var _n20=_step6.value;t.getRule(_n20).collectPatterns(t,e);}}catch(err){_iterator6.e(err);}finally{_iterator6.f();}}},{key:"compile",value:function compile(t,e){return this._getCachedCompiledPatterns(t).compile(t);}},{key:"compileAG",value:function compileAG(t,e,n,i){return this._getCachedCompiledPatterns(t).compileAG(t,n,i);}},{key:"_getCachedCompiledPatterns",value:function _getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new kt(),this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns;}}]);}(ht),jt=/*#__PURE__*/function(_ht4){function jt(t,e,n,i,r,s,o,l,a,c){var _this7;_classCallCheck(this,jt);_this7=_callSuper(this,jt,[t,e,n,i]),_defineProperty(_assertThisInitialized(_this7),"_begin",void 0),_defineProperty(_assertThisInitialized(_this7),"beginCaptures",void 0),_defineProperty(_assertThisInitialized(_this7),"_end",void 0),_defineProperty(_assertThisInitialized(_this7),"endHasBackReferences",void 0),_defineProperty(_assertThisInitialized(_this7),"endCaptures",void 0),_defineProperty(_assertThisInitialized(_this7),"applyEndPatternLast",void 0),_defineProperty(_assertThisInitialized(_this7),"hasMissingPatterns",void 0),_defineProperty(_assertThisInitialized(_this7),"patterns",void 0),_defineProperty(_assertThisInitialized(_this7),"_cachedCompiledPatterns",void 0),_this7._begin=new wt(r,_this7.id),_this7.beginCaptures=s,_this7._end=new wt(o||"￿",-1),_this7.endHasBackReferences=_this7._end.hasBackReferences,_this7.endCaptures=l,_this7.applyEndPatternLast=a||!1,_this7.patterns=c.patterns,_this7.hasMissingPatterns=c.hasMissingPatterns,_this7._cachedCompiledPatterns=null;return _this7;}_inherits(jt,_ht4);return _createClass(jt,[{key:"dispose",value:function dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null);}},{key:"debugBeginRegExp",get:function get(){return"".concat(this._begin.source);}},{key:"debugEndRegExp",get:function get(){return"".concat(this._end.source);}},{key:"getEndWithResolvedBackReferences",value:function getEndWithResolvedBackReferences(t,e){return this._end.resolveBackReferences(t,e);}},{key:"collectPatterns",value:function collectPatterns(t,e){e.push(this._begin);}},{key:"compile",value:function compile(t,e){return this._getCachedCompiledPatterns(t,e).compile(t);}},{key:"compileAG",value:function compileAG(t,e,n,i){return this._getCachedCompiledPatterns(t,e).compileAG(t,n,i);}},{key:"_getCachedCompiledPatterns",value:function _getCachedCompiledPatterns(t,e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new kt();var _iterator7=_createForOfIteratorHelper(this.patterns),_step7;try{for(_iterator7.s();!(_step7=_iterator7.n()).done;){var _e11=_step7.value;t.getRule(_e11).collectPatterns(t,this._cachedCompiledPatterns);}}catch(err){_iterator7.e(err);}finally{_iterator7.f();}this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end);}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,e):this._cachedCompiledPatterns.setSource(0,e)),this._cachedCompiledPatterns;}}]);}(ht),yt=/*#__PURE__*/function(_ht5){function yt(t,e,n,i,r,s,o,l,a){var _this8;_classCallCheck(this,yt);_this8=_callSuper(this,yt,[t,e,n,i]),_defineProperty(_assertThisInitialized(_this8),"_begin",void 0),_defineProperty(_assertThisInitialized(_this8),"beginCaptures",void 0),_defineProperty(_assertThisInitialized(_this8),"whileCaptures",void 0),_defineProperty(_assertThisInitialized(_this8),"_while",void 0),_defineProperty(_assertThisInitialized(_this8),"whileHasBackReferences",void 0),_defineProperty(_assertThisInitialized(_this8),"hasMissingPatterns",void 0),_defineProperty(_assertThisInitialized(_this8),"patterns",void 0),_defineProperty(_assertThisInitialized(_this8),"_cachedCompiledPatterns",void 0),_defineProperty(_assertThisInitialized(_this8),"_cachedCompiledWhilePatterns",void 0),_this8._begin=new wt(r,_this8.id),_this8.beginCaptures=s,_this8.whileCaptures=l,_this8._while=new wt(o,-2),_this8.whileHasBackReferences=_this8._while.hasBackReferences,_this8.patterns=a.patterns,_this8.hasMissingPatterns=a.hasMissingPatterns,_this8._cachedCompiledPatterns=null,_this8._cachedCompiledWhilePatterns=null;return _this8;}_inherits(yt,_ht5);return _createClass(yt,[{key:"dispose",value:function dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null);}},{key:"debugBeginRegExp",get:function get(){return"".concat(this._begin.source);}},{key:"debugWhileRegExp",get:function get(){return"".concat(this._while.source);}},{key:"getWhileWithResolvedBackReferences",value:function getWhileWithResolvedBackReferences(t,e){return this._while.resolveBackReferences(t,e);}},{key:"collectPatterns",value:function collectPatterns(t,e){e.push(this._begin);}},{key:"compile",value:function compile(t,e){return this._getCachedCompiledPatterns(t).compile(t);}},{key:"compileAG",value:function compileAG(t,e,n,i){return this._getCachedCompiledPatterns(t).compileAG(t,n,i);}},{key:"_getCachedCompiledPatterns",value:function _getCachedCompiledPatterns(t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new kt();var _iterator8=_createForOfIteratorHelper(this.patterns),_step8;try{for(_iterator8.s();!(_step8=_iterator8.n()).done;){var _e12=_step8.value;t.getRule(_e12).collectPatterns(t,this._cachedCompiledPatterns);}}catch(err){_iterator8.e(err);}finally{_iterator8.f();}}return this._cachedCompiledPatterns;}},{key:"compileWhile",value:function compileWhile(t,e){return this._getCachedCompiledWhilePatterns(t,e).compile(t);}},{key:"compileWhileAG",value:function compileWhileAG(t,e,n,i){return this._getCachedCompiledWhilePatterns(t,e).compileAG(t,n,i);}},{key:"_getCachedCompiledWhilePatterns",value:function _getCachedCompiledWhilePatterns(t,e){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new kt(),this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,e||"￿"),this._cachedCompiledWhilePatterns;}}]);}(ht),bt=/*#__PURE__*/function(){function t(){_classCallCheck(this,t);}return _createClass(t,null,[{key:"createCaptureRule",value:function createCaptureRule(_t34,e,n,i,r){return _t34.registerRule(function(_t35){return new dt(e,_t35,n,i,r);});}},{key:"getCompiledRuleId",value:function getCompiledRuleId(e,n,i){return e.id||n.registerRule(function(r){if(e.id=r,e.match)return new ft(e.$vscodeTextmateLocation,e.id,e.name,e.match,t._compileCaptures(e.captures,n,i));if(void 0===e.begin){e.repository&&(i=T({},i,e.repository));var _r10=e.patterns;return void 0===_r10&&e.include&&(_r10=[{include:e.include}]),new gt(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,t._compilePatterns(_r10,n,i));}return e["while"]?new yt(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,t._compileCaptures(e.beginCaptures||e.captures,n,i),e["while"],t._compileCaptures(e.whileCaptures||e.captures,n,i),t._compilePatterns(e.patterns,n,i)):new jt(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,t._compileCaptures(e.beginCaptures||e.captures,n,i),e.end,t._compileCaptures(e.endCaptures||e.captures,n,i),e.applyEndPatternLast,t._compilePatterns(e.patterns,n,i));}),e.id;}},{key:"_compileCaptures",value:function _compileCaptures(e,n,i){var r=[];if(e){var _s7=0;for(var _t39 in e){if("$vscodeTextmateLocation"===_t39)continue;var _e13=parseInt(_t39,10);_e13>_s7&&(_s7=_e13);}for(var _t40=0;_t40<=_s7;_t40++)r[_t40]=null;for(var _s8 in e){if("$vscodeTextmateLocation"===_s8)continue;var _o5=parseInt(_s8,10);var _l2=0;e[_s8].patterns&&(_l2=t.getCompiledRuleId(e[_s8],n,i)),r[_o5]=t.createCaptureRule(n,e[_s8].$vscodeTextmateLocation,e[_s8].name,e[_s8].contentName,_l2);}}return r;}},{key:"_compilePatterns",value:function _compilePatterns(e,n,i){var r=[];if(e)for(var _s9=0,_o6=e.length;_s9<_o6;_s9++){var _o7=e[_s9];var _l3=-1;if(_o7.include){var _e14=ut(_o7.include);switch(_e14.kind){case 0:case 1:_l3=t.getCompiledRuleId(i[_o7.include],n,i);break;case 2:var _r11=i[_e14.ruleName];_r11&&(_l3=t.getCompiledRuleId(_r11,n,i));break;case 3:case 4:var _s10=_e14.scopeName,_a3=4===_e14.kind?_e14.ruleName:null,_c3=n.getExternalGrammar(_s10,i);if(_c3)if(_a3){var _e15=_c3.repository[_a3];_e15&&(_l3=t.getCompiledRuleId(_e15,n,_c3.repository));}else _l3=t.getCompiledRuleId(_c3.repository.$self,n,_c3.repository);}}else _l3=t.getCompiledRuleId(_o7,n,i);if(-1!==_l3){var _t38=n.getRule(_l3);var _e16=!1;if((_t38 instanceof gt||_t38 instanceof jt||_t38 instanceof yt)&&_t38.hasMissingPatterns&&0===_t38.patterns.length&&(_e16=!0),_e16)continue;r.push(_l3);}}return{patterns:r,hasMissingPatterns:(e?e.length:0)!==r.length};}}]);}(),wt=/*#__PURE__*/function(){function t(_t42,e){_classCallCheck(this,t);_defineProperty(this,"source",void 0);_defineProperty(this,"ruleId",void 0);_defineProperty(this,"hasAnchor",void 0);_defineProperty(this,"hasBackReferences",void 0);_defineProperty(this,"_anchorCache",void 0);if(_t42&&"string"==typeof _t42){var _e17=_t42.length;var _n21=0,i=[],_r12=!1;for(var _s11=0;_s11<_e17;_s11++){if("\\"===_t42.charAt(_s11)&&_s11+1<_e17){var _e18=_t42.charAt(_s11+1);"z"===_e18?(i.push(_t42.substring(_n21,_s11)),i.push("$(?!\\n)(?<!\\n)"),_n21=_s11+2):"A"!==_e18&&"G"!==_e18||(_r12=!0),_s11++;}}this.hasAnchor=_r12,0===_n21?this.source=_t42:(i.push(_t42.substring(_n21,_e17)),this.source=i.join(""));}else this.hasAnchor=!1,this.source=_t42;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=e,"string"==typeof this.source?this.hasBackReferences=mt.test(this.source):this.hasBackReferences=!1;}return _createClass(t,[{key:"clone",value:function clone(){return new t(this.source,this.ruleId);}},{key:"setSource",value:function setSource(_t43){this.source!==_t43&&(this.source=_t43,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()));}},{key:"resolveBackReferences",value:function resolveBackReferences(_t44,e){if("string"!=typeof this.source)throw new Error("This method should only be called if the source is a string");var n=e.map(function(e){return _t44.substring(e.start,e.end);});return pt.lastIndex=0,this.source.replace(pt,function(_t45,e){return _(n[parseInt(e,10)]||"");});}},{key:"_buildAnchorCache",value:function _buildAnchorCache(){if("string"!=typeof this.source)throw new Error("This method should only be called if the source is a string");var _t46,e,n,i,r=[],s=[],o=[],l=[];for(_t46=0,e=this.source.length;_t46<e;_t46++)n=this.source.charAt(_t46),r[_t46]=n,s[_t46]=n,o[_t46]=n,l[_t46]=n,"\\"===n&&_t46+1<e&&(i=this.source.charAt(_t46+1),"A"===i?(r[_t46+1]="￿",s[_t46+1]="￿",o[_t46+1]="A",l[_t46+1]="A"):"G"===i?(r[_t46+1]="￿",s[_t46+1]="G",o[_t46+1]="￿",l[_t46+1]="G"):(r[_t46+1]=i,s[_t46+1]=i,o[_t46+1]=i,l[_t46+1]=i),_t46++);return{A0_G0:r.join(""),A0_G1:s.join(""),A1_G0:o.join(""),A1_G1:l.join("")};}},{key:"resolveAnchors",value:function resolveAnchors(_t47,e){return this.hasAnchor&&this._anchorCache&&"string"==typeof this.source?_t47?e?this._anchorCache.A1_G1:this._anchorCache.A1_G0:e?this._anchorCache.A0_G1:this._anchorCache.A0_G0:this.source;}}]);}(),kt=/*#__PURE__*/function(){function kt(){_classCallCheck(this,kt);_defineProperty(this,"_items",void 0);_defineProperty(this,"_hasAnchors",void 0);_defineProperty(this,"_cached",void 0);_defineProperty(this,"_anchorCache",void 0);this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null};}return _createClass(kt,[{key:"dispose",value:function dispose(){this._disposeCaches();}},{key:"_disposeCaches",value:function _disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null);}},{key:"push",value:function push(t){this._items.push(t),this._hasAnchors=this._hasAnchors||t.hasAnchor;}},{key:"unshift",value:function unshift(t){this._items.unshift(t),this._hasAnchors=this._hasAnchors||t.hasAnchor;}},{key:"length",value:function length(){return this._items.length;}},{key:"setSource",value:function setSource(t,e){this._items[t].source!==e&&(this._disposeCaches(),this._items[t].setSource(e));}},{key:"compile",value:function compile(t){if(!this._cached){var _e19=this._items.map(function(t){return t.source;});this._cached=new vt(t,_e19,this._items.map(function(t){return t.ruleId;}));}return this._cached;}},{key:"compileAG",value:function compileAG(t,e,n){return this._hasAnchors?e?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(t,e,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(t,e,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(t,e,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(t,e,n)),this._anchorCache.A0_G0):this.compile(t);}},{key:"_resolveAnchors",value:function _resolveAnchors(t,e,n){var i=this._items.map(function(t){return t.resolveAnchors(e,n);});return new vt(t,i,this._items.map(function(t){return t.ruleId;}));}}]);}(),vt=/*#__PURE__*/function(){function vt(t,e,n){_classCallCheck(this,vt);_defineProperty(this,"scanner",void 0);this.regExps=e,this.rules=n,this.scanner=t.createOnigScanner(e);}return _createClass(vt,[{key:"dispose",value:function dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose();}},{key:"toString",value:function toString(){var t=[];for(var _e20=0,_n22=this.rules.length;_e20<_n22;_e20++)t.push(" - "+this.rules[_e20]+": "+this.regExps[_e20]);return t.join("\n");}},{key:"findNextMatchSync",value:function findNextMatchSync(t,e,n){var i=this.scanner.findNextMatchSync(t,e,n);return i?{ruleId:this.rules[i.index],captureIndices:i.captureIndices}:null;}}]);}(),St=/*#__PURE__*/_createClass(function St(t,e){_classCallCheck(this,St);this.languageId=t,this.tokenType=e;}),xt=(_t48=/*#__PURE__*/function(){function t(_t49,_e21){var _this9=this;_classCallCheck(this,t);_defineProperty(this,"_defaultAttributes",void 0);_defineProperty(this,"_embeddedLanguagesMatcher",void 0);_defineProperty(this,"_getBasicScopeAttributes",new R(function(_t50){var e=_this9._scopeToLanguage(_t50),n=_this9._toStandardTokenType(_t50);return new St(e,n);}));this._defaultAttributes=new St(_t49,8),this._embeddedLanguagesMatcher=new Ct(Object.entries(_e21||{}));}return _createClass(t,[{key:"getDefaultAttributes",value:function getDefaultAttributes(){return this._defaultAttributes;}},{key:"getBasicScopeAttributes",value:function getBasicScopeAttributes(e){return null===e?t._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e);}},{key:"_scopeToLanguage",value:function _scopeToLanguage(_t51){return this._embeddedLanguagesMatcher.match(_t51)||0;}},{key:"_toStandardTokenType",value:function _toStandardTokenType(e){var n=e.match(t.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0;}throw new Error("Unexpected match for standard token type!");}}]);}(),_defineProperty(_t48,"_NULL_SCOPE_METADATA",new St(0,0)),_defineProperty(_t48,"STANDARD_TOKEN_TYPE_REGEXP",/\b(comment|string|regex|meta\.embedded)\b/),_t48),Ct=/*#__PURE__*/function(){function Ct(t){_classCallCheck(this,Ct);_defineProperty(this,"values",void 0);_defineProperty(this,"scopesRegExp",void 0);if(0===t.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(t);var _e22=t.map(function(_ref4){var _ref5=_slicedToArray(_ref4,2),t=_ref5[0],e=_ref5[1];return _(t);});_e22.sort(),_e22.reverse(),this.scopesRegExp=new RegExp("^((".concat(_e22.join(")|("),"))($|\\.)"),"");}}return _createClass(Ct,[{key:"match",value:function match(t){if(!this.scopesRegExp)return;var e=t.match(this.scopesRegExp);return e?this.values.get(e[1]):void 0;}}]);}();"undefined"!=typeof process&&process.env.VSCODE_TEXTMATE_DEBUG;At=/*#__PURE__*/_createClass(function At(t,e){_classCallCheck(this,At);this.stack=t,this.stoppedEarly=e;});Pt=/*#__PURE__*/_createClass(function Pt(t,e){_classCallCheck(this,Pt);_defineProperty(this,"scopes",void 0);_defineProperty(this,"endPos",void 0);this.scopes=t,this.endPos=e;});_t=/*#__PURE__*/function(){function _t(t,e,n,i,r,s,o,l){_classCallCheck(this,_t);_defineProperty(this,"_rootId",void 0);_defineProperty(this,"_lastRuleId",void 0);_defineProperty(this,"_ruleId2desc",void 0);_defineProperty(this,"_includedGrammars",void 0);_defineProperty(this,"_grammarRepository",void 0);_defineProperty(this,"_grammar",void 0);_defineProperty(this,"_injections",void 0);_defineProperty(this,"_basicScopeAttributesProvider",void 0);_defineProperty(this,"_tokenTypeMatchers",void 0);if(this._rootScopeName=t,this.balancedBracketSelectors=s,this._onigLib=l,this._basicScopeAttributesProvider=new xt(n,i),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=o,this._grammar=Rt(e,null),this._injections=null,this._tokenTypeMatchers=[],r)for(var _i9=0,_Object$keys=Object.keys(r);_i9<_Object$keys.length;_i9++){var _t52=_Object$keys[_i9];var _e27=J(_t52,Dt);var _iterator10=_createForOfIteratorHelper(_e27),_step10;try{for(_iterator10.s();!(_step10=_iterator10.n()).done;){var _n25=_step10.value;this._tokenTypeMatchers.push({matcher:_n25.matcher,type:r[_t52]});}}catch(err){_iterator10.e(err);}finally{_iterator10.f();}}}return _createClass(_t,[{key:"themeProvider",get:function get(){return this._grammarRepository;}},{key:"dispose",value:function dispose(){var _iterator11=_createForOfIteratorHelper(this._ruleId2desc),_step11;try{for(_iterator11.s();!(_step11=_iterator11.n()).done;){var _t53=_step11.value;_t53&&_t53.dispose();}}catch(err){_iterator11.e(err);}finally{_iterator11.f();}}},{key:"createOnigScanner",value:function createOnigScanner(t){return this._onigLib.createOnigScanner(t);}},{key:"createOnigString",value:function createOnigString(t){return this._onigLib.createOnigString(t);}},{key:"getMetadataForScope",value:function getMetadataForScope(t){return this._basicScopeAttributesProvider.getBasicScopeAttributes(t);}},{key:"_collectInjections",value:function _collectInjections(){var _this10=this;var t=function t(_t54){return _t54===_this10._rootScopeName?_this10._grammar:_this10.getExternalGrammar(_t54);},e=[],n=this._rootScopeName,i=t(n);if(i){var _t55=i.injections;if(_t55)for(var _n26 in _t55)Nt(e,_n26,_t55[_n26],this,i);var _r13=this._grammarRepository.injections(n);_r13&&_r13.forEach(function(t){var n=_this10.getExternalGrammar(t);if(n){var _t56=n.injectionSelector;_t56&&Nt(e,_t56,n,_this10,n);}});}return e.sort(function(t,e){return t.priority-e.priority;}),e;}},{key:"getInjections",value:function getInjections(){return null===this._injections&&(this._injections=this._collectInjections()),this._injections;}},{key:"registerRule",value:function registerRule(t){var e=++this._lastRuleId,n=t(e);return this._ruleId2desc[e]=n,n;}},{key:"getRule",value:function getRule(t){return this._ruleId2desc[t];}},{key:"getExternalGrammar",value:function getExternalGrammar(t,e){if(this._includedGrammars[t])return this._includedGrammars[t];if(this._grammarRepository){var _n27=this._grammarRepository.lookup(t);if(_n27)return this._includedGrammars[t]=Rt(_n27,e&&e.$base),this._includedGrammars[t];}}},{key:"tokenizeLine",value:function tokenizeLine(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:0;var i=this._tokenize(t,e,!1,n);return{tokens:i.lineTokens.getResult(i.ruleStack,i.lineLength),ruleStack:i.ruleStack,stoppedEarly:i.stoppedEarly};}},{key:"tokenizeLine2",value:function tokenizeLine2(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:0;var i=this._tokenize(t,e,!0,n);return{tokens:i.lineTokens.getBinaryResult(i.ruleStack,i.lineLength),ruleStack:i.ruleStack,stoppedEarly:i.stoppedEarly};}},{key:"_tokenize",value:function _tokenize(t,e,n,i){var r;if(-1===this._rootId&&(this._rootId=bt.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections()),e&&e!==Bt.NULL)r=!1,e.reset();else{r=!0;var _t57=this._basicScopeAttributesProvider.getDefaultAttributes(),_n28=this.themeProvider.getDefaults(),_i10=V.set(0,_t57.languageId,_t57.tokenType,null,_n28.fontStyle,_n28.foregroundId,_n28.backgroundId),_s14=this.getRule(this._rootId).getName(null,null);var _o11;_o11=_s14?$t.createRootAndLookUpScopeName(_s14,_i10,this):$t.createRoot("unknown",_i10),e=new Bt(null,this._rootId,-1,-1,!1,null,_o11,_o11);}t+="\n";var s=this.createOnigString(t),o=s.content.length,l=new Gt(n,t,this._tokenTypeMatchers,this.balancedBracketSelectors),a=Lt(this,s,r,0,e,l,!0,i);return X(s),{lineLength:o,lineTokens:l,ruleStack:a.stack,stoppedEarly:a.stoppedEarly};}}]);}();$t=/*#__PURE__*/function(){function t(_t58,e,n){_classCallCheck(this,t);this.parent=_t58,this.scopePath=e,this.tokenAttributes=n;}return _createClass(t,[{key:"scopeName",get:function get(){return this.scopePath.scopeName;}},{key:"toString",value:function toString(){return this.getScopeNames().join(" ");}},{key:"equals",value:function equals(e){return t.equals(this,e);}},{key:"pushAttributed",value:function pushAttributed(e,n){if(null===e)return this;if(-1===e.indexOf(" "))return t._pushAttributed(this,e,n);var i=e.split(/ /g);var r=this;var _iterator12=_createForOfIteratorHelper(i),_step12;try{for(_iterator12.s();!(_step12=_iterator12.n()).done;){var _e28=_step12.value;r=t._pushAttributed(r,_e28,n);}}catch(err){_iterator12.e(err);}finally{_iterator12.f();}return r;}},{key:"getScopeNames",value:function getScopeNames(){return this.scopePath.getSegments();}},{key:"getExtensionIfDefined",value:function getExtensionIfDefined(_t61){var e=[];var n=this;for(;n&&n!==_t61;){var _n$parent$scopePath,_n$parent;e.push({encodedTokenAttributes:n.tokenAttributes,scopeNames:n.scopePath.getExtensionIfDefined((_n$parent$scopePath=(_n$parent=n.parent)===null||_n$parent===void 0?void 0:_n$parent.scopePath)!==null&&_n$parent$scopePath!==void 0?_n$parent$scopePath:null)}),n=n.parent;}return n===_t61?e.reverse():void 0;}}],[{key:"fromExtension",value:function fromExtension(e,n){var _e$scopePath;var i=e,r=(_e$scopePath=e===null||e===void 0?void 0:e.scopePath)!==null&&_e$scopePath!==void 0?_e$scopePath:null;var _iterator13=_createForOfIteratorHelper(n),_step13;try{for(_iterator13.s();!(_step13=_iterator13.n()).done;){var _e29=_step13.value;r=B.push(r,_e29.scopeNames),i=new t(i,r,_e29.encodedTokenAttributes);}}catch(err){_iterator13.e(err);}finally{_iterator13.f();}return i;}},{key:"createRoot",value:function createRoot(e,n){return new t(null,new B(null,e),n);}},{key:"createRootAndLookUpScopeName",value:function createRootAndLookUpScopeName(e,n,i){var r=i.getMetadataForScope(e),s=new B(null,e),o=i.themeProvider.themeMatch(s),l=t.mergeAttributes(n,r,o);return new t(null,s,l);}},{key:"equals",value:function equals(_t59,e){for(;;){if(_t59===e)return!0;if(!_t59&&!e)return!0;if(!_t59||!e)return!1;if(_t59.scopeName!==e.scopeName||_t59.tokenAttributes!==e.tokenAttributes)return!1;_t59=_t59.parent,e=e.parent;}}},{key:"mergeAttributes",value:function mergeAttributes(_t60,e,n){var i=-1,r=0,s=0;return null!==n&&(i=n.fontStyle,r=n.foregroundId,s=n.backgroundId),V.set(_t60,e.languageId,e.tokenType,null,i,r,s);}},{key:"_pushAttributed",value:function _pushAttributed(e,n,i){var r=i.getMetadataForScope(n),s=e.scopePath.push(n),o=i.themeProvider.themeMatch(s),l=t.mergeAttributes(e.tokenAttributes,r,o);return new t(e,s,l);}}]);}(),Bt=(_t62=/*#__PURE__*/function(){function t(_t63,e,n,i,r,s,o,l){_classCallCheck(this,t);_defineProperty(this,"_stackElementBrand",void 0);_defineProperty(this,"_enterPos",void 0);_defineProperty(this,"_anchorPos",void 0);_defineProperty(this,"depth",void 0);this.parent=_t63,this.ruleId=e,this.beginRuleCapturedEOL=r,this.endRule=s,this.nameScopesList=o,this.contentNameScopesList=l,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=i;}return _createClass(t,[{key:"equals",value:function equals(e){return null!==e&&t._equals(this,e);}},{key:"clone",value:function clone(){return this;}},{key:"reset",value:function reset(){t._reset(this);}},{key:"pop",value:function pop(){return this.parent;}},{key:"safePop",value:function safePop(){return this.parent?this.parent:this;}},{key:"push",value:function push(e,n,i,r,s,o,l){return new t(this,e,n,i,r,s,o,l);}},{key:"getEnterPos",value:function getEnterPos(){return this._enterPos;}},{key:"getAnchorPos",value:function getAnchorPos(){return this._anchorPos;}},{key:"getRule",value:function getRule(_t67){return _t67.getRule(this.ruleId);}},{key:"toString",value:function toString(){var _t68=[];return this._writeString(_t68,0),"["+_t68.join(",")+"]";}},{key:"_writeString",value:function _writeString(_t69,e){var _this$nameScopesList,_this$contentNameScop;return this.parent&&(e=this.parent._writeString(_t69,e)),_t69[e++]="(".concat(this.ruleId,", ").concat((_this$nameScopesList=this.nameScopesList)===null||_this$nameScopesList===void 0?void 0:_this$nameScopesList.toString(),", ").concat((_this$contentNameScop=this.contentNameScopesList)===null||_this$contentNameScop===void 0?void 0:_this$contentNameScop.toString(),")"),e;}},{key:"withContentNameScopesList",value:function withContentNameScopesList(_t70){return this.contentNameScopesList===_t70?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,_t70);}},{key:"withEndRule",value:function withEndRule(e){return this.endRule===e?this:new t(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList);}},{key:"hasSameRuleAs",value:function hasSameRuleAs(_t71){var e=this;for(;e&&e._enterPos===_t71._enterPos;){if(e.ruleId===_t71.ruleId)return!0;e=e.parent;}return!1;}},{key:"toStateStackFrame",value:function toStateStackFrame(){var _this$nameScopesList$,_this$nameScopesList2,_this$parent$nameScop,_this$parent,_this$contentNameScop2,_this$contentNameScop3;return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:(_this$nameScopesList$=(_this$nameScopesList2=this.nameScopesList)===null||_this$nameScopesList2===void 0?void 0:_this$nameScopesList2.getExtensionIfDefined((_this$parent$nameScop=(_this$parent=this.parent)===null||_this$parent===void 0?void 0:_this$parent.nameScopesList)!==null&&_this$parent$nameScop!==void 0?_this$parent$nameScop:null))!==null&&_this$nameScopesList$!==void 0?_this$nameScopesList$:[],contentNameScopesList:(_this$contentNameScop2=(_this$contentNameScop3=this.contentNameScopesList)===null||_this$contentNameScop3===void 0?void 0:_this$contentNameScop3.getExtensionIfDefined(this.nameScopesList))!==null&&_this$contentNameScop2!==void 0?_this$contentNameScop2:[]};}}],[{key:"_equals",value:function _equals(_t64,e){return _t64===e||!!this._structuralEquals(_t64,e)&&$t.equals(_t64.contentNameScopesList,e.contentNameScopesList);}},{key:"_structuralEquals",value:function _structuralEquals(_t65,e){for(;;){if(_t65===e)return!0;if(!_t65&&!e)return!0;if(!_t65||!e)return!1;if(_t65.depth!==e.depth||_t65.ruleId!==e.ruleId||_t65.endRule!==e.endRule)return!1;_t65=_t65.parent,e=e.parent;}}},{key:"_reset",value:function _reset(_t66){for(;_t66;)_t66._enterPos=-1,_t66._anchorPos=-1,_t66=_t66.parent;}},{key:"pushFrame",value:function pushFrame(e,n){var _e$nameScopesList,_n$enterPos,_n$anchorPos;var i=$t.fromExtension((_e$nameScopesList=e===null||e===void 0?void 0:e.nameScopesList)!==null&&_e$nameScopesList!==void 0?_e$nameScopesList:null,n.nameScopesList);return new t(e,n.ruleId,(_n$enterPos=n.enterPos)!==null&&_n$enterPos!==void 0?_n$enterPos:-1,(_n$anchorPos=n.anchorPos)!==null&&_n$anchorPos!==void 0?_n$anchorPos:-1,n.beginRuleCapturedEOL,n.endRule,i,$t.fromExtension(i,n.contentNameScopesList));}}]);}(),_defineProperty(_t62,"NULL",new _t62(null,0,0,0,!1,null,null,null)),_t62),It=/*#__PURE__*/function(){function It(t,e){var _this11=this;_classCallCheck(this,It);_defineProperty(this,"balancedBracketScopes",void 0);_defineProperty(this,"unbalancedBracketScopes",void 0);_defineProperty(this,"allowAny",!1);this.balancedBracketScopes=t.flatMap(function(t){return"*"===t?(_this11.allowAny=!0,[]):J(t,Dt).map(function(t){return t.matcher;});}),this.unbalancedBracketScopes=e.flatMap(function(t){return J(t,Dt).map(function(t){return t.matcher;});});}return _createClass(It,[{key:"matchesAlways",get:function get(){return this.allowAny&&0===this.unbalancedBracketScopes.length;}},{key:"matchesNever",get:function get(){return 0===this.balancedBracketScopes.length&&!this.allowAny;}},{key:"match",value:function match(t){var _iterator14=_createForOfIteratorHelper(this.unbalancedBracketScopes),_step14;try{for(_iterator14.s();!(_step14=_iterator14.n()).done;){var _e30=_step14.value;if(_e30(t))return!1;}}catch(err){_iterator14.e(err);}finally{_iterator14.f();}var _iterator15=_createForOfIteratorHelper(this.balancedBracketScopes),_step15;try{for(_iterator15.s();!(_step15=_iterator15.n()).done;){var _e31=_step15.value;if(_e31(t))return!0;}}catch(err){_iterator15.e(err);}finally{_iterator15.f();}return this.allowAny;}}]);}(),Gt=/*#__PURE__*/function(){function Gt(t,e,n,i){_classCallCheck(this,Gt);_defineProperty(this,"_emitBinaryTokens",void 0);_defineProperty(this,"_lineText",void 0);_defineProperty(this,"_tokens",void 0);_defineProperty(this,"_binaryTokens",void 0);_defineProperty(this,"_lastTokenEndIndex",void 0);_defineProperty(this,"_tokenTypeOverrides",void 0);this.balancedBracketSelectors=i,this._emitBinaryTokens=t,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0;}return _createClass(Gt,[{key:"produce",value:function produce(t,e){this.produceFromScopes(t.contentNameScopesList,e);}},{key:"produceFromScopes",value:function produceFromScopes(t,e){var _t$getScopeNames2;if(this._lastTokenEndIndex>=e)return;if(this._emitBinaryTokens){var _t$tokenAttributes,_this$balancedBracket;var _n29=(_t$tokenAttributes=t===null||t===void 0?void 0:t.tokenAttributes)!==null&&_t$tokenAttributes!==void 0?_t$tokenAttributes:0,i=!1;if((_this$balancedBracket=this.balancedBracketSelectors)!==null&&_this$balancedBracket!==void 0&&_this$balancedBracket.matchesAlways&&(i=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){var _t$getScopeNames;var _e32=(_t$getScopeNames=t===null||t===void 0?void 0:t.getScopeNames())!==null&&_t$getScopeNames!==void 0?_t$getScopeNames:[];var _iterator16=_createForOfIteratorHelper(this._tokenTypeOverrides),_step16;try{for(_iterator16.s();!(_step16=_iterator16.n()).done;){var _t72=_step16.value;_t72.matcher(_e32)&&(_n29=V.set(_n29,0,_t72.type,null,-1,0,0));}}catch(err){_iterator16.e(err);}finally{_iterator16.f();}this.balancedBracketSelectors&&(i=this.balancedBracketSelectors.match(_e32));}return i&&(_n29=V.set(_n29,0,8,i,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===_n29?void(this._lastTokenEndIndex=e):(this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(_n29),void(this._lastTokenEndIndex=e));}var n=(_t$getScopeNames2=t===null||t===void 0?void 0:t.getScopeNames())!==null&&_t$getScopeNames2!==void 0?_t$getScopeNames2:[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:e,scopes:n}),this._lastTokenEndIndex=e;}},{key:"getResult",value:function getResult(t,e){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===e-1&&this._tokens.pop(),0===this._tokens.length&&(this._lastTokenEndIndex=-1,this.produce(t,e),this._tokens[this._tokens.length-1].startIndex=0),this._tokens;}},{key:"getBinaryResult",value:function getBinaryResult(t,e){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===e-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),0===this._binaryTokens.length&&(this._lastTokenEndIndex=-1,this.produce(t,e),this._binaryTokens[this._binaryTokens.length-2]=0);var n=new Uint32Array(this._binaryTokens.length);for(var _t73=0,_e33=this._binaryTokens.length;_t73<_e33;_t73++)n[_t73]=this._binaryTokens[_t73];return n;}}]);}(),qt=/*#__PURE__*/function(){function qt(t,e){_classCallCheck(this,qt);_defineProperty(this,"_grammars",new Map());_defineProperty(this,"_rawGrammars",new Map());_defineProperty(this,"_injectionGrammars",new Map());_defineProperty(this,"_theme",void 0);this._onigLib=e,this._theme=t;}return _createClass(qt,[{key:"dispose",value:function dispose(){var _iterator17=_createForOfIteratorHelper(this._grammars.values()),_step17;try{for(_iterator17.s();!(_step17=_iterator17.n()).done;){var _t74=_step17.value;_t74.dispose();}}catch(err){_iterator17.e(err);}finally{_iterator17.f();}}},{key:"setTheme",value:function setTheme(t){this._theme=t;}},{key:"getColorMap",value:function getColorMap(){return this._theme.getColorMap();}},{key:"addGrammar",value:function addGrammar(t,e){this._rawGrammars.set(t.scopeName,t),e&&this._injectionGrammars.set(t.scopeName,e);}},{key:"lookup",value:function lookup(t){return this._rawGrammars.get(t);}},{key:"injections",value:function injections(t){return this._injectionGrammars.get(t);}},{key:"getDefaults",value:function getDefaults(){return this._theme.getDefaults();}},{key:"themeMatch",value:function themeMatch(t){return this._theme.match(t);}},{key:"grammarForScopeName",value:function grammarForScopeName(t,e,n,i,r){if(!this._grammars.has(t)){var _s15=this._rawGrammars.get(t);if(!_s15)return null;this._grammars.set(t,function(t,e,n,i,r,s,o,l){return new _t(t,e,n,i,r,s,o,l);}(t,_s15,e,n,i,r,this,this._onigLib));}return this._grammars.get(t);}}]);}(),zt=/*#__PURE__*/function(){function zt(t){_classCallCheck(this,zt);_defineProperty(this,"_options",void 0);_defineProperty(this,"_syncRegistry",void 0);_defineProperty(this,"_ensureGrammarCache",void 0);this._options=t,this._syncRegistry=new qt(_$.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map();}return _createClass(zt,[{key:"dispose",value:function dispose(){this._syncRegistry.dispose();}},{key:"setTheme",value:function setTheme(t,e){this._syncRegistry.setTheme(_$.createFromRawTheme(t,e));}},{key:"getColorMap",value:function getColorMap(){return this._syncRegistry.getColorMap();}},{key:"loadGrammarWithEmbeddedLanguages",value:function loadGrammarWithEmbeddedLanguages(t,e,n){return this.loadGrammarWithConfiguration(t,e,{embeddedLanguages:n});}},{key:"loadGrammarWithConfiguration",value:function loadGrammarWithConfiguration(t,e,n){return this._loadGrammar(t,e,n.embeddedLanguages,n.tokenTypes,new It(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]));}},{key:"loadGrammar",value:function loadGrammar(t){return this._loadGrammar(t,0,null,null,null);}},{key:"_loadGrammar",value:function _loadGrammar(t,e,n,i,r){var _this12=this;var s=new tt(this._syncRegistry,t);for(;s.Q.length>0;)s.Q.map(function(t){return _this12._loadSingleGrammar(t.scopeName);}),s.processQueue();return this._grammarForScopeName(t,e,n,i,r);}},{key:"_loadSingleGrammar",value:function _loadSingleGrammar(t){this._ensureGrammarCache.has(t)||(this._doLoadSingleGrammar(t),this._ensureGrammarCache.set(t,!0));}},{key:"_doLoadSingleGrammar",value:function _doLoadSingleGrammar(t){var e=this._options.loadGrammar(t);if(e){var _n30="function"==typeof this._options.getInjections?this._options.getInjections(t):void 0;this._syncRegistry.addGrammar(e,_n30);}}},{key:"addGrammar",value:function addGrammar(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[];var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:0;var i=arguments.length>3&&arguments[3]!==undefined?arguments[3]:null;return this._syncRegistry.addGrammar(t,e),this._grammarForScopeName(t.scopeName,n,i);}},{key:"_grammarForScopeName",value:function _grammarForScopeName(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:null;var i=arguments.length>3&&arguments[3]!==undefined?arguments[3]:null;var r=arguments.length>4&&arguments[4]!==undefined?arguments[4]:null;return this._syncRegistry.grammarForScopeName(t,e,n,i,r);}}]);}(),Ft=Bt.NULL;Ht=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];Ut=/*#__PURE__*/_createClass(function Ut(t,e,n){_classCallCheck(this,Ut);this.property=t,this.normal=e,n&&(this.space=n);});Ut.prototype.property={},Ut.prototype.normal={},Ut.prototype.space=null;Jt=/*#__PURE__*/_createClass(function Jt(t,e){_classCallCheck(this,Jt);this.property=t,this.attribute=e;});Jt.prototype.space=null,Jt.prototype["boolean"]=!1,Jt.prototype.booleanish=!1,Jt.prototype.overloadedBoolean=!1,Jt.prototype.number=!1,Jt.prototype.commaSeparated=!1,Jt.prototype.spaceSeparated=!1,Jt.prototype.commaOrSpaceSeparated=!1,Jt.prototype.mustUseProperty=!1,Jt.prototype.defined=!1;Kt=0;Xt=ie(),Yt=ie(),Qt=ie(),Zt=ie(),te=ie(),ee=ie(),ne=ie();re=Object.freeze({__proto__:null,"boolean":Xt,booleanish:Yt,commaOrSpaceSeparated:ne,commaSeparated:ee,number:Zt,overloadedBoolean:Qt,spaceSeparated:te});se=Object.keys(re);oe=/*#__PURE__*/function(_Jt){function oe(t,e,n,i){var _this13;_classCallCheck(this,oe);var r=-1;if(_this13=_callSuper(this,oe,[t,e]),le(_assertThisInitialized(_this13),"space",i),"number"==typeof n)for(;++r<se.length;){var _t75=se[r];le(_assertThisInitialized(_this13),se[r],(n&re[_t75])===re[_t75]);}return _this13;}_inherits(oe,_Jt);return _createClass(oe);}(Jt);oe.prototype.defined=!0;ae={}.hasOwnProperty;ue=ce({space:"xlink",transform:function transform(t,e){return"xlink:"+e.slice(5).toLowerCase();},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),me=ce({space:"xml",transform:function transform(t,e){return"xml:"+e.slice(3).toLowerCase();},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});de=ce({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:he,properties:{xmlns:null,xmlnsXLink:null}}),fe=ce({transform:function transform(t,e){return"role"===e?e:"aria-"+e.slice(4).toLowerCase();},properties:{ariaActiveDescendant:null,ariaAtomic:Yt,ariaAutoComplete:null,ariaBusy:Yt,ariaChecked:Yt,ariaColCount:Zt,ariaColIndex:Zt,ariaColSpan:Zt,ariaControls:te,ariaCurrent:null,ariaDescribedBy:te,ariaDetails:null,ariaDisabled:Yt,ariaDropEffect:te,ariaErrorMessage:null,ariaExpanded:Yt,ariaFlowTo:te,ariaGrabbed:Yt,ariaHasPopup:null,ariaHidden:Yt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:te,ariaLevel:Zt,ariaLive:null,ariaModal:Yt,ariaMultiLine:Yt,ariaMultiSelectable:Yt,ariaOrientation:null,ariaOwns:te,ariaPlaceholder:null,ariaPosInSet:Zt,ariaPressed:Yt,ariaReadOnly:Yt,ariaRelevant:null,ariaRequired:Yt,ariaRoleDescription:te,ariaRowCount:Zt,ariaRowIndex:Zt,ariaRowSpan:Zt,ariaSelected:Yt,ariaSetSize:Zt,ariaSort:null,ariaValueMax:Zt,ariaValueMin:Zt,ariaValueNow:Zt,ariaValueText:null,role:null}}),ge=ce({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:he,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ee,acceptCharset:te,accessKey:te,action:null,allow:null,allowFullScreen:Xt,allowPaymentRequest:Xt,allowUserMedia:Xt,alt:null,as:null,async:Xt,autoCapitalize:null,autoComplete:te,autoFocus:Xt,autoPlay:Xt,blocking:te,capture:null,charSet:null,checked:Xt,cite:null,className:te,cols:Zt,colSpan:null,content:null,contentEditable:Yt,controls:Xt,controlsList:te,coords:Zt|ee,crossOrigin:null,data:null,dateTime:null,decoding:null,"default":Xt,defer:Xt,dir:null,dirName:null,disabled:Xt,download:Qt,draggable:Yt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Xt,formTarget:null,headers:te,height:Zt,hidden:Xt,high:Zt,href:null,hrefLang:null,htmlFor:te,httpEquiv:te,id:null,imageSizes:null,imageSrcSet:null,inert:Xt,inputMode:null,integrity:null,is:null,isMap:Xt,itemId:null,itemProp:te,itemRef:te,itemScope:Xt,itemType:te,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Xt,low:Zt,manifest:null,max:null,maxLength:Zt,media:null,method:null,min:null,minLength:Zt,multiple:Xt,muted:Xt,name:null,nonce:null,noModule:Xt,noValidate:Xt,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Xt,optimum:Zt,pattern:null,ping:te,placeholder:null,playsInline:Xt,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Xt,referrerPolicy:null,rel:te,required:Xt,reversed:Xt,rows:Zt,rowSpan:Zt,sandbox:te,scope:null,scoped:Xt,seamless:Xt,selected:Xt,shadowRootClonable:Xt,shadowRootDelegatesFocus:Xt,shadowRootMode:null,shape:null,size:Zt,sizes:null,slot:null,span:Zt,spellCheck:Yt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Zt,step:null,style:null,tabIndex:Zt,target:null,title:null,translate:null,type:null,typeMustMatch:Xt,useMap:null,value:Yt,width:Zt,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:te,axis:null,background:null,bgColor:null,border:Zt,borderColor:null,bottomMargin:Zt,cellPadding:null,cellSpacing:null,"char":null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Xt,declare:Xt,event:null,face:null,frame:null,frameBorder:null,hSpace:Zt,leftMargin:Zt,link:null,longDesc:null,lowSrc:null,marginHeight:Zt,marginWidth:Zt,noResize:Xt,noHref:Xt,noShade:Xt,noWrap:Xt,object:null,profile:null,prompt:null,rev:null,rightMargin:Zt,rules:null,scheme:null,scrolling:Yt,standby:null,summary:null,text:null,topMargin:Zt,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Zt,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Xt,disableRemotePlayback:Xt,prefix:null,property:null,results:Zt,security:null,unselectable:null}}),je=ce({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:pe,properties:{about:ne,accentHeight:Zt,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Zt,amplitude:Zt,arabicForm:null,ascent:Zt,attributeName:null,attributeType:null,azimuth:Zt,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Zt,by:null,calcMode:null,capHeight:Zt,className:te,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Zt,diffuseConstant:Zt,direction:null,display:null,dur:null,divisor:Zt,dominantBaseline:null,download:Xt,dx:null,dy:null,edgeMode:null,editable:null,elevation:Zt,enableBackground:null,end:null,event:null,exponent:Zt,externalResourcesRequired:null,fill:null,fillOpacity:Zt,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:ee,g2:ee,glyphName:ee,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Zt,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Zt,horizOriginX:Zt,horizOriginY:Zt,id:null,ideographic:Zt,imageRendering:null,initialVisibility:null,"in":null,in2:null,intercept:Zt,k:Zt,k1:Zt,k2:Zt,k3:Zt,k4:Zt,kernelMatrix:ne,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Zt,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Zt,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Zt,overlineThickness:Zt,paintOrder:null,panose1:null,path:null,pathLength:Zt,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:te,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Zt,pointsAtY:Zt,pointsAtZ:Zt,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ne,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ne,rev:ne,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ne,requiredFeatures:ne,requiredFonts:ne,requiredFormats:ne,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Zt,specularExponent:Zt,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Zt,strikethroughThickness:Zt,string:null,stroke:null,strokeDashArray:ne,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Zt,strokeOpacity:Zt,strokeWidth:null,style:null,surfaceScale:Zt,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ne,tabIndex:Zt,tableValues:null,target:null,targetX:Zt,targetY:Zt,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ne,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Zt,underlineThickness:Zt,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Zt,values:null,vAlphabetic:Zt,vMathematical:Zt,vectorEffect:null,vHanging:Zt,vIdeographic:Zt,version:null,vertAdvY:Zt,vertOriginX:Zt,vertOriginY:Zt,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Zt,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),ye=/^data[-\w.:]+$/i,be=/-[a-z]/g,we=/[A-Z]/g;Se=Wt([me,ue,de,fe,ge],"html"),xe=Wt([me,ue,de,fe,je],"svg"),Ce={}.hasOwnProperty;Ae=/["&'<>`]/g,Le=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Te=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,Me=/[|\\{}()[\]^$+*?.]/g,Oe=new WeakMap();Ne=/[\dA-Fa-f]/;De=/\d/;Ee=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],_e={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪","int":"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},Re=["cent","copy","divide","gt","lt","not","para","times"],$e={}.hasOwnProperty,Be={};for(Ie in _e)$e.call(_e,Ie)&&(Be[_e[Ie]]=Ie);Ge=/[^\dA-Za-z]/;Fe=/^>|^->|<!--|-->|--!>|<!-$/g,He=[">"],Ue=["<",">"];Ke=/[ \t\n\f\r]/g;Qe=en(1),Ze=en(-1),tn=[];nn={}.hasOwnProperty;sn=rn({body:function body(t,e,n){var i=Qe(n,e);return!i||"comment"!==i.type;},caption:on,colgroup:on,dd:function dd(t,e,n){var i=Qe(n,e);return!i||"element"===i.type&&("dt"===i.tagName||"dd"===i.tagName);},dt:function dt(t,e,n){var i=Qe(n,e);return Boolean(i&&"element"===i.type&&("dt"===i.tagName||"dd"===i.tagName));},head:on,html:function html(t,e,n){var i=Qe(n,e);return!i||"comment"!==i.type;},li:function li(t,e,n){var i=Qe(n,e);return!i||"element"===i.type&&"li"===i.tagName;},optgroup:function optgroup(t,e,n){var i=Qe(n,e);return!i||"element"===i.type&&"optgroup"===i.tagName;},option:function option(t,e,n){var i=Qe(n,e);return!i||"element"===i.type&&("option"===i.tagName||"optgroup"===i.tagName);},p:function p(t,e,n){var i=Qe(n,e);return i?"element"===i.type&&("address"===i.tagName||"article"===i.tagName||"aside"===i.tagName||"blockquote"===i.tagName||"details"===i.tagName||"div"===i.tagName||"dl"===i.tagName||"fieldset"===i.tagName||"figcaption"===i.tagName||"figure"===i.tagName||"footer"===i.tagName||"form"===i.tagName||"h1"===i.tagName||"h2"===i.tagName||"h3"===i.tagName||"h4"===i.tagName||"h5"===i.tagName||"h6"===i.tagName||"header"===i.tagName||"hgroup"===i.tagName||"hr"===i.tagName||"main"===i.tagName||"menu"===i.tagName||"nav"===i.tagName||"ol"===i.tagName||"p"===i.tagName||"pre"===i.tagName||"section"===i.tagName||"table"===i.tagName||"ul"===i.tagName):!n||!("element"===n.type&&("a"===n.tagName||"audio"===n.tagName||"del"===n.tagName||"ins"===n.tagName||"map"===n.tagName||"noscript"===n.tagName||"video"===n.tagName));},rp:ln,rt:ln,tbody:function tbody(t,e,n){var i=Qe(n,e);return!i||"element"===i.type&&("tbody"===i.tagName||"tfoot"===i.tagName);},td:an,tfoot:function tfoot(t,e,n){return!Qe(n,e);},th:an,thead:function thead(t,e,n){var i=Qe(n,e);return Boolean(i&&"element"===i.type&&("tbody"===i.tagName||"tfoot"===i.tagName));},tr:function tr(t,e,n){var i=Qe(n,e);return!i||"element"===i.type&&"tr"===i.tagName;}});cn=rn({body:function body(t){var e=Qe(t,-1,!0);return!(e&&("comment"===e.type||"text"===e.type&&Xe(e.value.charAt(0))||"element"===e.type&&("meta"===e.tagName||"link"===e.tagName||"script"===e.tagName||"style"===e.tagName||"template"===e.tagName)));},colgroup:function colgroup(t,e,n){var i=Ze(n,e),r=Qe(t,-1,!0);if(n&&i&&"element"===i.type&&"colgroup"===i.tagName&&sn(i,n.children.indexOf(i),n))return!1;return Boolean(r&&"element"===r.type&&"col"===r.tagName);},head:function head(t){var e=new Set();var _iterator18=_createForOfIteratorHelper(t.children),_step18;try{for(_iterator18.s();!(_step18=_iterator18.n()).done;){var _n31=_step18.value;if("element"===_n31.type&&("base"===_n31.tagName||"title"===_n31.tagName)){if(e.has(_n31.tagName))return!1;e.add(_n31.tagName);}}}catch(err){_iterator18.e(err);}finally{_iterator18.f();}var n=t.children[0];return!n||"element"===n.type;},html:function html(t){var e=Qe(t,-1);return!e||"comment"!==e.type;},tbody:function tbody(t,e,n){var i=Ze(n,e),r=Qe(t,-1);if(n&&i&&"element"===i.type&&("thead"===i.tagName||"tbody"===i.tagName)&&sn(i,n.children.indexOf(i),n))return!1;return Boolean(r&&"element"===r.type&&"tr"===r.tagName);}});un={name:[["\t\n\f\r &/=>".split(""),"\t\n\f\r \"&'/=>`".split("")],["\0\t\n\f\r \"&'/<=>".split(""),"\0\t\n\f\r \"&'/<=>`".split("")]],unquoted:[["\t\n\f\r &>".split(""),"\0\t\n\f\r \"&'<=>`".split("")],["\0\t\n\f\r \"&'<=>`".split(""),"\0\t\n\f\r \"&'<=>`".split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],"double":[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};pn=["<","&"];dn=function(t,e){var n=e||{};function i(e){var _r15;var r=i.invalid;var s=i.handlers;if(e&&Ce.call(e,t)){var _n33=String(e[t]);r=Ce.call(s,_n33)?s[_n33]:i.unknown;}for(var _len2=arguments.length,n=new Array(_len2>1?_len2-1:0),_key2=1;_key2<_len2;_key2++){n[_key2-1]=arguments[_key2];}if(r)return(_r15=r).call.apply(_r15,[this,e].concat(n));}return i.handlers=n.handlers||{},i.invalid=n.invalid,i.unknown=n.unknown,i;}("type",{invalid:function invalid(t){throw new Error("Expected node, not `"+t+"`");},unknown:function unknown(t){throw new Error("Cannot compile unknown node `"+t.type+"`");},handlers:{comment:function comment(t,e,n,i){return i.settings.bogusComments?"<?"+ze(t.value,Object.assign({},i.settings.characterReferences,{subset:He}))+">":"\x3c!--"+t.value.replace(Fe,function(t){return ze(t,Object.assign({},i.settings.characterReferences,{subset:Ue}));})+"--\x3e";},doctype:function doctype(t,e,n,i){return"<!"+(i.settings.upperDoctype?"DOCTYPE":"doctype")+(i.settings.tightDoctype?"":" ")+"html>";},element:function element(t,e,n,i){var r=i.schema,s="svg"!==r.space&&i.settings.omitOptionalTags;var o="svg"===r.space?i.settings.closeEmptyElements:i.settings.voids.includes(t.tagName.toLowerCase());var l=[];var a;"html"===r.space&&"svg"===t.tagName&&(i.schema=xe);var c=function(t,e){var n=[];var i,r=-1;if(e)for(i in e)if(null!==e[i]&&void 0!==e[i]){var _r16=mn(t,i,e[i]);_r16&&n.push(_r16);}for(;++r<n.length;){var _e34=t.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&'"'!==_e34&&"'"!==_e34&&(n[r]+=" ");}return n.join("");}(i,t.properties),u=i.all("html"===r.space&&"template"===t.tagName?t.content:t);return i.schema=r,u&&(o=!1),!c&&s&&cn(t,e,n)||(l.push("<",t.tagName,c?" "+c:""),o&&("svg"===r.space||i.settings.closeSelfClosing)&&(a=c.charAt(c.length-1),(!i.settings.tightSelfClosing||"/"===a||a&&'"'!==a&&"'"!==a)&&l.push(" "),l.push("/")),l.push(">")),l.push(u),o||s&&sn(t,e,n)||l.push("</"+t.tagName+">"),l.join("");},raw:function raw(t,e,n,i){return i.settings.allowDangerousHtml?t.value:hn(t,0,n,i);},root:function root(t,e,n,i){return i.all(t);},text:hn}});fn={},gn={},jn=[];Pn=/*#__PURE__*/function(_Error3){function Pn(t){var _this14;_classCallCheck(this,Pn);_this14=_callSuper(this,Pn,[t]),_this14.name="ShikiError";return _this14;}_inherits(Pn,_Error3);return _createClass(Pn);}(/*#__PURE__*/_wrapNativeSuper(Error));Nn=new WeakMap();_n=/*#__PURE__*/function(){function _n(){_classCallCheck(this,_n);_defineProperty(this,"_stacks",{});_defineProperty(this,"lang",void 0);for(var _len3=arguments.length,t=new Array(_len3),_key3=0;_key3<_len3;_key3++){t[_key3]=arguments[_key3];}if(2===t.length){var _e36=t[0],_n36=t[1];this.lang=_n36,this._stacks=_e36;}else{var _e37=t[0],_n37=t[1],i=t[2];this.lang=_n37,this._stacks=_defineProperty({},i,_e37);}}return _createClass(_n,[{key:"themes",get:function get(){return Object.keys(this._stacks);}},{key:"theme",get:function get(){return this.themes[0];}},{key:"_stack",get:function get(){return this._stacks[this.theme];}},{key:"getInternalStack",value:function getInternalStack(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:this.theme;return this._stacks[t];}},{key:"scopes",get:function get(){return Rn(this._stacks[this.theme]);}},{key:"getScopes",value:function getScopes(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:this.theme;return Rn(this._stacks[t]);}},{key:"toJSON",value:function toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.scopes};}}],[{key:"initial",value:function initial(t,e){return new _n(Object.fromEntries(function(t){return Array.isArray(t)?t:[t];}(e).map(function(t){return[t,Ft];})),t);}}]);}();In=[$n()];qn=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],zn={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};Wn={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};si="#333333",oi="#bbbbbb",li="#fffffe",ai="#1e1e1e",ci="__shiki_resolved";hi=/*#__PURE__*/function(_zt){function hi(t,e,n){var _this15;var i=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};_classCallCheck(this,hi);_this15=_callSuper(this,hi,[t]),_defineProperty(_assertThisInitialized(_this15),"_resolvedThemes",new Map()),_defineProperty(_assertThisInitialized(_this15),"_resolvedGrammars",new Map()),_defineProperty(_assertThisInitialized(_this15),"_langMap",new Map()),_defineProperty(_assertThisInitialized(_this15),"_langGraph",new Map()),_defineProperty(_assertThisInitialized(_this15),"_textmateThemeCache",new WeakMap()),_defineProperty(_assertThisInitialized(_this15),"_loadedThemesCache",null),_defineProperty(_assertThisInitialized(_this15),"_loadedLanguagesCache",null),_this15._resolver=t,_this15._themes=e,_this15._langs=n,_this15._alias=i,_this15._themes.map(function(t){return _this15.loadTheme(t);}),_this15.loadLanguages(_this15._langs);return _this15;}_inherits(hi,_zt);return _createClass(hi,[{key:"getTheme",value:function getTheme(t){return"string"==typeof t?this._resolvedThemes.get(t):this.loadTheme(t);}},{key:"loadTheme",value:function loadTheme(t){var e=ui(t);return e.name&&(this._resolvedThemes.set(e.name,e),this._loadedThemesCache=null),e;}},{key:"getLoadedThemes",value:function getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=_toConsumableArray(this._resolvedThemes.keys())),this._loadedThemesCache;}},{key:"setTheme",value:function setTheme(t){var e=this._textmateThemeCache.get(t);e||(e=_$.createFromRawTheme(t),this._textmateThemeCache.set(t,e)),this._syncRegistry.setTheme(e);}},{key:"getGrammar",value:function getGrammar(t){if(this._alias[t]){var _e48=new Set([t]);for(;this._alias[t];){if(t=this._alias[t],_e48.has(t))throw new Pn("Circular alias `".concat(Array.from(_e48).join(" -> ")," -> ").concat(t,"`"));_e48.add(t);}}return this._resolvedGrammars.get(t);}},{key:"loadLanguage",value:function loadLanguage(t){var _this16=this;if(this.getGrammar(t.name))return;var e=new Set(_toConsumableArray(this._langMap.values()).filter(function(e){var _e$embeddedLangsLazy;return(_e$embeddedLangsLazy=e.embeddedLangsLazy)===null||_e$embeddedLangsLazy===void 0?void 0:_e$embeddedLangsLazy.includes(t.name);}));this._resolver.addLanguage(t);var n={balancedBracketSelectors:t.balancedBracketSelectors||["*"],unbalancedBracketSelectors:t.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(t.scopeName,t);var i=this.loadGrammarWithConfiguration(t.scopeName,1,n);if(i.name=t.name,this._resolvedGrammars.set(t.name,i),t.aliases&&t.aliases.forEach(function(e){_this16._alias[e]=t.name;}),this._loadedLanguagesCache=null,e.size){var _iterator38=_createForOfIteratorHelper(e),_step38;try{for(_iterator38.s();!(_step38=_iterator38.n()).done;){var _this$_syncRegistry,_this$_syncRegistry2;var _t104=_step38.value;this._resolvedGrammars["delete"](_t104.name),this._loadedLanguagesCache=null,(_this$_syncRegistry=this._syncRegistry)!==null&&_this$_syncRegistry!==void 0&&(_this$_syncRegistry=_this$_syncRegistry._injectionGrammars)!==null&&_this$_syncRegistry!==void 0&&_this$_syncRegistry["delete"](_t104.scopeName),(_this$_syncRegistry2=this._syncRegistry)!==null&&_this$_syncRegistry2!==void 0&&(_this$_syncRegistry2=_this$_syncRegistry2._grammars)!==null&&_this$_syncRegistry2!==void 0&&_this$_syncRegistry2["delete"](_t104.scopeName),this.loadLanguage(this._langMap.get(_t104.name));}}catch(err){_iterator38.e(err);}finally{_iterator38.f();}}}},{key:"dispose",value:function dispose(){_superPropGet(hi,"dispose",this,3)([]),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null;}},{key:"loadLanguages",value:function loadLanguages(t){var _iterator39=_createForOfIteratorHelper(t),_step39;try{for(_iterator39.s();!(_step39=_iterator39.n()).done;){var _e51=_step39.value;this.resolveEmbeddedLanguages(_e51);}}catch(err){_iterator39.e(err);}finally{_iterator39.f();}var e=Array.from(this._langGraph.entries()),n=e.filter(function(_ref13){var _ref14=_slicedToArray(_ref13,2),t=_ref14[0],e=_ref14[1];return!e;});if(n.length){var _t105=e.filter(function(_ref15){var _e$embeddedLangs;var _ref16=_slicedToArray(_ref15,2),t=_ref16[0],e=_ref16[1];return e&&((_e$embeddedLangs=e.embeddedLangs)===null||_e$embeddedLangs===void 0?void 0:_e$embeddedLangs.some(function(t){return n.map(function(_ref17){var _ref18=_slicedToArray(_ref17,1),t=_ref18[0];return t;}).includes(t);}));}).filter(function(t){return!n.includes(t);});throw new Pn("Missing languages ".concat(n.map(function(_ref19){var _ref20=_slicedToArray(_ref19,1),t=_ref20[0];return"`".concat(t,"`");}).join(", "),", required by ").concat(_t105.map(function(_ref21){var _ref22=_slicedToArray(_ref21,1),t=_ref22[0];return"`".concat(t,"`");}).join(", ")));}for(var _i24=0,_e49=e;_i24<_e49.length;_i24++){var _e49$_i=_slicedToArray(_e49[_i24],2),_t106=_e49$_i[0],_n48=_e49$_i[1];this._resolver.addLanguage(_n48);}for(var _i25=0,_e50=e;_i25<_e50.length;_i25++){var _e50$_i=_slicedToArray(_e50[_i25],2),_t107=_e50$_i[0],_n49=_e50$_i[1];this.loadLanguage(_n49);}}},{key:"getLoadedLanguages",value:function getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=_toConsumableArray(new Set([].concat(_toConsumableArray(this._resolvedGrammars.keys()),_toConsumableArray(Object.keys(this._alias)))))),this._loadedLanguagesCache;}},{key:"resolveEmbeddedLanguages",value:function resolveEmbeddedLanguages(t){if(this._langMap.set(t.name,t),this._langGraph.set(t.name,t),t.embeddedLangs){var _iterator40=_createForOfIteratorHelper(t.embeddedLangs),_step40;try{for(_iterator40.s();!(_step40=_iterator40.n()).done;){var _e52=_step40.value;this._langGraph.set(_e52,this._langMap.get(_e52));}}catch(err){_iterator40.e(err);}finally{_iterator40.f();}}}}]);}(zt);di=/*#__PURE__*/function(){function di(t,e){var _this17=this;_classCallCheck(this,di);_defineProperty(this,"_langs",new Map());_defineProperty(this,"_scopeToLang",new Map());_defineProperty(this,"_injections",new Map());_defineProperty(this,"_onigLib",void 0);this._onigLib={createOnigScanner:function createOnigScanner(e){return t.createScanner(e);},createOnigString:function createOnigString(e){return t.createString(e);}},e.forEach(function(t){return _this17.addLanguage(t);});}return _createClass(di,[{key:"onigLib",get:function get(){return this._onigLib;}},{key:"getLangRegistration",value:function getLangRegistration(t){return this._langs.get(t);}},{key:"loadGrammar",value:function loadGrammar(t){return this._scopeToLang.get(t);}},{key:"addLanguage",value:function addLanguage(t){var _this18=this;this._langs.set(t.name,t),t.aliases&&t.aliases.forEach(function(e){_this18._langs.set(e,t);}),this._scopeToLang.set(t.scopeName,t),t.injectTo&&t.injectTo.forEach(function(e){_this18._injections.get(e)||_this18._injections.set(e,[]),_this18._injections.get(e).push(t.scopeName);});}},{key:"getInjections",value:function getInjections(t){var e=t.split(".");var n=[];for(var _t108=1;_t108<=e.length;_t108++){var i=e.slice(0,_t108).join(".");n=[].concat(_toConsumableArray(n),_toConsumableArray(this._injections.get(i)||[]));}return n;}}]);}();fi=0;bi=yi({langs:a,themes:u,engine:function engine(){return A(_context["import"]("../wasm-f0b3e061.cjs.js"));}});_export("N",wi=/*#__PURE__*/function(_o17){function wi(){var _this19;_classCallCheck(this,wi);_this19=_callSuper(this,wi,arguments),_this19.code="",_this19.language="javascript",_this19.theme="min-light",_this19.highlightedCode="";return _this19;}_inherits(wi,_o17);return _createClass(wi,[{key:"updated",value:function(){var _updated=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(t){return _regeneratorRuntime().wrap(function _callee5$(_context6){while(1)switch(_context6.prev=_context6.next){case 0:_context6.t0=t.has("language")||t.has("theme");if(!_context6.t0){_context6.next=4;break;}_context6.next=4;return this.updateHighlighter();case 4:_context6.t1=t.has("code")||t.has("language")||t.has("theme");if(!_context6.t1){_context6.next=8;break;}_context6.next=8;return this.updateHighlightedCode();case 8:case"end":return _context6.stop();}},_callee5,this);}));function updated(_x9){return _updated.apply(this,arguments);}return updated;}()},{key:"render",value:function render(){return e(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n\t\t\t\t<div class=\"code-container\" .innerHTML=","></div>\n\t\t\t"])),this.highlightedCode);}},{key:"updateHighlighter",value:function(){var _updateHighlighter=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(){return _regeneratorRuntime().wrap(function _callee6$(_context7){while(1)switch(_context7.prev=_context7.next){case 0:_context7.next=2;return bi({themes:[this.theme],langs:[this.language]});case 2:this.highlighter=_context7.sent;case 3:case"end":return _context7.stop();}},_callee6,this);}));function updateHighlighter(){return _updateHighlighter.apply(this,arguments);}return updateHighlighter;}()},{key:"updateHighlightedCode",value:function(){var _updateHighlightedCode=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(){return _regeneratorRuntime().wrap(function _callee7$(_context8){while(1)switch(_context8.prev=_context8.next){case 0:_context8.next=2;return this.highlighter.codeToHtml(this.code,{lang:this.language,theme:this.theme});case 2:this.highlightedCode=_context8.sent;case 3:case"end":return _context8.stop();}},_callee7,this);}));function updateHighlightedCode(){return _updateHighlightedCode.apply(this,arguments);}return updateHighlightedCode;}()}],[{key:"styles",get:function get(){return[s];}}]);}(o));t([n({type:String})],wi.prototype,"code",void 0),t([n({type:String,reflect:!0})],wi.prototype,"language",void 0),t([n({type:String,reflect:!0})],wi.prototype,"theme",void 0),t([i()],wi.prototype,"highlightedCode",void 0),_export("N",wi=t([r("nile-highlighter")],wi));}};});
1
+ System.register(["tslib","../lit-element-9e4e16c6.cjs.js","lit/decorators.js","./nile-highlighter.css.cjs.js","../internal/nile-element.cjs.js","lit"],function(_export,_context){"use strict";var t,e,n,i,r,s,o,_excluded,_t48,_t62,_templateObject,l,a,c,u,m,p,d,g,j,y,b,_w,k,v,S,O,P,R,_$,B,G,q,z,F,H,U,W,V,Y,Q,Z,tt,st,ot,lt,at,ct,mt,pt,ht,dt,ft,gt,jt,yt,bt,wt,kt,vt,St,xt,Ct,At,Pt,_t,$t,Bt,It,Gt,qt,zt,Ft,Ht,Ut,Jt,Kt,Xt,Yt,Qt,Zt,te,ee,ne,re,se,oe,ae,ue,me,de,fe,ge,je,ye,be,we,Se,xe,Ce,Ae,Le,Te,Me,Oe,Ne,De,Ee,_e,Re,$e,Be,Ie,Ge,Fe,He,Ue,Ke,Qe,Ze,tn,nn,sn,cn,un,pn,dn,fn,gn,jn,Pn,Nn,_n,In,qn,zn,Wn,si,oi,li,ai,ci,hi,di,fi,bi,wi;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function _superPropGet(t,o,e,r){var p=_get(_getPrototypeOf(1&r?t.prototype:t),o,e);return 2&r&&"function"==typeof p?function(t){return p.apply(e,t);}:p;}function _get(){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var p=_superPropBase(e,t);if(p){var n=Object.getOwnPropertyDescriptor(p,t);return n.get?n.get.call(arguments.length<3?e:r):n.value;}},_get.apply(null,arguments);}function _superPropBase(t,o){for(;!{}.hasOwnProperty.call(t,o)&&null!==(t=_getPrototypeOf(t)););return t;}function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=_objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)o=n[r],-1===t.indexOf(o)&&{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o]);}return i;}function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(-1!==e.indexOf(n))continue;t[n]=r[n];}return t;}function _toConsumableArray(r){return _arrayWithoutHoles(r)||_iterableToArray(r)||_unsupportedIterableToArray(r)||_nonIterableSpread();}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _iterableToArray(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r);}function _arrayWithoutHoles(r){if(Array.isArray(r))return _arrayLikeToArray(r);}function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t["return"]&&(u=t["return"](),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(r){if(Array.isArray(r))return r;}function _createForOfIteratorHelper(r,e){var t="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=_unsupportedIterableToArray(r))||e&&r&&"number"==typeof r.length){t&&(r=t);var n=0,F=function F(){};return{s:F,n:function(_n35){function n(){return _n35.apply(this,arguments);}n.toString=function(){return _n35.toString();};return n;}(function(){return n>=r.length?{done:!0}:{done:!1,value:r[n++]};}),e:function e(r){throw r;},f:F};}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var o,a=!0,u=!1;return{s:function s(){t=t.call(r);},n:function n(){var r=t.next();return a=r.done,r;},e:function e(r){u=!0,o=r;},f:function f(){try{a||null==t["return"]||t["return"]();}finally{if(u)throw o;}}};}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return e;};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value;},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e];}try{define({},"");}catch(t){define=function define(t,e,r){return t[e]=r;};}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a;}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)};}catch(t){return{type:"throw",arg:t};}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,function(){return this;});var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach(function(e){define(t,e,function(t){return this._invoke(e,t);});});}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then(function(t){invoke("next",t,i,a);},function(t){invoke("throw",t,i,a);}):e.resolve(h).then(function(t){u.value=t,i(u);},function(t){return invoke("throw",t,i,a);});}a(c.arg);}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e(function(e,r){invoke(t,n,e,r);});}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0};}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u;}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg);}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done};}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg);}};}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator["return"]&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y);}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e);}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e;}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0);}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next;};return i.next=i;}}throw new TypeError(_typeof(e)+" is not iterable");}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(g,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name));},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t;},e.awrap=function(t){return{__await:t};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,function(){return this;}),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next();});},defineIteratorMethods(g),define(g,u,"Generator"),define(g,a,function(){return this;}),define(g,"toString",function(){return"[object Generator]";}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next;}return next.done=!0,next;};},e.values=values,Context.prototype={constructor:Context,reset:function reset(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t);},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval;},dispatchException:function dispatchException(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o;}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}}}},abrupt:function abrupt(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break;}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a);},complete:function complete(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y;},finish:function finish(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y;}},"catch":function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r);}return o;}}throw Error("illegal catch attempt");},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y;}},e;}function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}function asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value;}catch(n){return void e(n);}i.done?t(u):Promise.resolve(u).then(r,o);}function _asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise(function(r,o){var a=n.apply(t,e);function _next(n){asyncGeneratorStep(a,r,o,_next,_throw,"next",n);}function _throw(n){asyncGeneratorStep(a,r,o,_next,_throw,"throw",n);}_next(void 0);});};}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _wrapNativeSuper(t){var r="function"==typeof Map?new Map():void 0;return _wrapNativeSuper=function _wrapNativeSuper(t){if(null===t||!_isNativeFunction(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(t))return r.get(t);r.set(t,Wrapper);}function Wrapper(){return _construct(t,arguments,_getPrototypeOf(this).constructor);}return Wrapper.prototype=Object.create(t.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(Wrapper,t);},_wrapNativeSuper(t);}function _construct(t,e,r){if(_isNativeReflectConstruct())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,e);var p=new(t.bind.apply(t,o))();return r&&_setPrototypeOf(p,r.prototype),p;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _isNativeFunction(t){try{return-1!==Function.toString.call(t).indexOf("[native code]");}catch(n){return"function"==typeof t;}}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable;})),t.push.apply(t,o);}return t;}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach(function(r){_defineProperty(e,r,t[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));});}return e;}function _defineProperty(e,r,t){return(r=_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function h(){return"undefined"!=typeof performance?performance.now():Date.now();}function f(_x){return _f.apply(this,arguments);}function _f(){_f=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee9(t){var e,n,i,r,s,o,l,a;return _regeneratorRuntime().wrap(function _callee9$(_context10){while(1)switch(_context10.prev=_context10.next){case 0:l=function _l9(t,e){return t?function(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:1024;var i=e+n;var r=e;for(;t[r]&&!(r>=i);)++r;if(r-e>16&&t.buffer&&o)return o.decode(t.subarray(e,r));var s="";for(;e<r;){var _n51=t[e++];if(!(128&_n51)){s+=String.fromCharCode(_n51);continue;}var _i26=63&t[e++];if(192==(224&_n51)){s+=String.fromCharCode((31&_n51)<<6|_i26);continue;}var _r30=63&t[e++];if(_n51=224==(240&_n51)?(15&_n51)<<12|_i26<<6|_r30:(7&_n51)<<18|_i26<<12|_r30<<6|63&t[e++],_n51<65536)s+=String.fromCharCode(_n51);else{var _t109=_n51-65536;s+=String.fromCharCode(55296|_t109>>10,56320|1023&_t109);}}return s;}(i.HEAPU8,t,e):"";};s=function _s24(t){try{return e.grow(t-n.byteLength+65535>>>16),r(e.buffer),1;}catch(_unused){}};r=function _r32(t){n=t,i.HEAPU8=new Uint8Array(t),i.HEAPU32=new Uint32Array(t);};i={};o="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;a={emscripten_get_now:h,emscripten_memcpy_big:function emscripten_memcpy_big(t,e,n){i.HEAPU8.copyWithin(t,e,e+n);},emscripten_resize_heap:function emscripten_resize_heap(t){var e=i.HEAPU8.length,n=2147483648;if((t>>>=0)>n)return!1;for(var _i27=1;_i27<=4;_i27*=2){var _r31=e*(1+.2/_i27);_r31=Math.min(_r31,t+100663296);if(s(Math.min(n,d(Math.max(t,_r31),65536))))return!0;}return!1;},fd_write:function fd_write(){return 0;}};_context10.next=8;return _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8(){var n,s;return _regeneratorRuntime().wrap(function _callee8$(_context9){while(1)switch(_context9.prev=_context9.next){case 0:n={env:a,wasi_snapshot_preview1:a};_context9.next=3;return t(n);case 3:s=_context9.sent;e=s.memory,r(e.buffer),Object.assign(i,s),i.UTF8ToString=l;case 5:case"end":return _context9.stop();}},_callee8);}))();case 8:return _context10.abrupt("return",i);case 9:case"end":return _context10.stop();}},_callee9);}));return _f.apply(this,arguments);}function x(t){if(k)return k;return k=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(){return _regeneratorRuntime().wrap(function _callee3$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:_context4.next=2;return f(/*#__PURE__*/function(){var _ref2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(e){var n,i;return _regeneratorRuntime().wrap(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:n=t;_context3.next=3;return n;case 3:n=_context3.sent;_context3.t0="function"==typeof n;if(!_context3.t0){_context3.next=9;break;}_context3.next=8;return n(e);case 8:n=_context3.sent;case 9:_context3.t1="function"==typeof n;if(!_context3.t1){_context3.next=14;break;}_context3.next=13;return n(e);case 13:n=_context3.sent;case 14:if(!("function"==typeof n.instantiator)){_context3.next=20;break;}_context3.next=17;return n.instantiator(e);case 17:n=_context3.sent;_context3.next=57;break;case 20:if(function(t){return"function"==typeof t["default"];}(n)){_context3.next=54;break;}(function(t){return void 0!==t.data;})(n)&&(n=n.data);if(function(t){return"undefined"!=typeof Response&&t instanceof Response;}(n)){_context3.next=42;break;}if(function(t,_Buffer$isBuffer,_Buffer){return"undefined"!=typeof ArrayBuffer&&(t instanceof ArrayBuffer||ArrayBuffer.isView(t))||"undefined"!=typeof Buffer&&((_Buffer$isBuffer=(_Buffer=Buffer).isBuffer)===null||_Buffer$isBuffer===void 0?void 0:_Buffer$isBuffer.call(_Buffer,t))||"undefined"!=typeof SharedArrayBuffer&&t instanceof SharedArrayBuffer||"undefined"!=typeof Uint32Array&&t instanceof Uint32Array;}(n)){_context3.next=37;break;}if(!(n instanceof WebAssembly.Module)){_context3.next=30;break;}_context3.next=27;return C(n)(e);case 27:n=_context3.sent;_context3.next=35;break;case 30:_context3.t2="default"in n&&n["default"]instanceof WebAssembly.Module;if(!_context3.t2){_context3.next=35;break;}_context3.next=34;return C(n["default"])(e);case 34:n=_context3.sent;case 35:_context3.next=40;break;case 37:_context3.next=39;return C(n)(e);case 39:n=_context3.sent;case 40:_context3.next=52;break;case 42:if(!("function"==typeof WebAssembly.instantiateStreaming)){_context3.next=48;break;}_context3.next=45;return(i=n,function(t){return WebAssembly.instantiateStreaming(i,t);})(e);case 45:_context3.t3=_context3.sent;_context3.next=51;break;case 48:_context3.next=50;return function(t){return/*#__PURE__*/function(){var _ref3=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(e){var n;return _regeneratorRuntime().wrap(function _callee$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_context2.next=2;return t.arrayBuffer();case 2:n=_context2.sent;return _context2.abrupt("return",WebAssembly.instantiate(n,e));case 4:case"end":return _context2.stop();}},_callee);}));return function(_x3){return _ref3.apply(this,arguments);};}();}(n)(e);case 50:_context3.t3=_context3.sent;case 51:n=_context3.t3;case 52:_context3.next=57;break;case 54:_context3.next=56;return n["default"](e);case 56:n=_context3.sent;case 57:"instance"in n&&(n=n.instance);"exports"in n&&(n=n.exports);return _context3.abrupt("return",n);case 60:case"end":return _context3.stop();}},_callee2);}));return function(_x2){return _ref2.apply(this,arguments);};}());case 2:y=_context4.sent;case 3:case"end":return _context4.stop();}},_callee3);}))(),k;}function C(t){return function(e){return WebAssembly.instantiate(t,e);};}function A(_x4){return _A.apply(this,arguments);}function _A(){_A=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee10(t){return _regeneratorRuntime().wrap(function _callee10$(_context11){while(1)switch(_context11.prev=_context11.next){case 0:_context11.t0=t;if(!_context11.t0){_context11.next=4;break;}_context11.next=4;return x(t);case 4:return _context11.abrupt("return",{createScanner:function createScanner(t){return new S(t.map(function(t){return"string"==typeof t?t:t.source;}));},createString:function createString(t){return new v(t);}});case 5:case"end":return _context11.stop();}},_callee10);}));return _A.apply(this,arguments);}function L(t){return Array.isArray(t)?function(t){var e=[];for(var _n7=0,i=t.length;_n7<i;_n7++)e[_n7]=L(t[_n7]);return e;}(t):t instanceof RegExp?t:"object"==_typeof(t)?function(t){var e={};for(var _n8 in t)e[_n8]=L(t[_n8]);return e;}(t):t;}function T(t){for(var _len=arguments.length,e=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++){e[_key-1]=arguments[_key];}return e.forEach(function(e){for(var _n9 in e)t[_n9]=e[_n9];}),t;}function M(t){var e=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===e?t:~e==t.length-1?M(t.substring(0,t.length-1)):t.substr(1+~e);}function N(t,e){return t<e?-1:t>e?1:0;}function D(t,e){if(null===t&&null===e)return 0;if(!t)return-1;if(!e)return 1;var n=t.length,i=e.length;if(n===i){for(var _i5=0;_i5<n;_i5++){var _n10=N(t[_i5],e[_i5]);if(0!==_n10)return _n10;}return 0;}return n-i;}function E(t){return!!/^#[0-9a-f]{6}$/i.test(t)||!!/^#[0-9a-f]{8}$/i.test(t)||!!/^#[0-9a-f]{3}$/i.test(t)||!!/^#[0-9a-f]{4}$/i.test(t);}function _(t){return t.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&");}function I(t,e){return e===t||t.startsWith(e)&&"."===t[e.length];}function J(t,e){var n=[],i=function(t){var e=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=e.exec(t);return{next:function next(){if(!n)return null;var i=n[0];return n=e.exec(t),i;}};}(t);var r=i.next();for(;null!==r;){var _t27=0;if(2===r.length&&":"===r.charAt(1)){switch(r.charAt(0)){case"R":_t27=1;break;case"L":_t27=-1;break;default:console.log("Unknown priority ".concat(r," in scope selector"));}r=i.next();}var _e10=o();if(n.push({matcher:_e10,priority:_t27}),","!==r)break;r=i.next();}return n;function s(){if("-"===r){r=i.next();var _t28=s();return function(e){return!!_t28&&!_t28(e);};}if("("===r){r=i.next();var _t29=function(){var t=[];var e=o();for(;e&&(t.push(e),"|"===r||","===r);){do{r=i.next();}while("|"===r||","===r);e=o();}return function(e){return t.some(function(t){return t(e);});};}();return")"===r&&(r=i.next()),_t29;}if(K(r)){var _t30=[];do{_t30.push(r),r=i.next();}while(K(r));return function(n){return e(_t30,n);};}return null;}function o(){var t=[];var e=s();for(;e;)t.push(e),e=s();return function(e){return t.every(function(t){return t(e);});};}}function K(t){return!!t&&!!t.match(/[\w\.:]+/);}function X(t){"function"==typeof t.dispose&&t.dispose();}function et(t,e,n,i){var r=n.lookup(t.scopeName);if(!r){if(t.scopeName===e)throw new Error("No grammar provided for <".concat(e,">"));return;}var s=n.lookup(e);t instanceof Y?it({baseGrammar:s,selfGrammar:r},i):nt(t.ruleName,{baseGrammar:s,selfGrammar:r,repository:r.repository},i);var o=n.injections(t.scopeName);if(o){var _iterator4=_createForOfIteratorHelper(o),_step4;try{for(_iterator4.s();!(_step4=_iterator4.n()).done;){var _t32=_step4.value;i.add(new Y(_t32));}}catch(err){_iterator4.e(err);}finally{_iterator4.f();}}}function nt(t,e,n){if(e.repository&&e.repository[t]){rt([e.repository[t]],e,n);}}function it(t,e){t.selfGrammar.patterns&&Array.isArray(t.selfGrammar.patterns)&&rt(t.selfGrammar.patterns,_objectSpread(_objectSpread({},t),{},{repository:t.selfGrammar.repository}),e),t.selfGrammar.injections&&rt(Object.values(t.selfGrammar.injections),_objectSpread(_objectSpread({},t),{},{repository:t.selfGrammar.repository}),e);}function rt(t,e,n){var _iterator5=_createForOfIteratorHelper(t),_step5;try{for(_iterator5.s();!(_step5=_iterator5.n()).done;){var i=_step5.value;if(n.visitedRule.has(i))continue;n.visitedRule.add(i);var _t33=i.repository?T({},e.repository,i.repository):e.repository;Array.isArray(i.patterns)&&rt(i.patterns,_objectSpread(_objectSpread({},e),{},{repository:_t33}),n);var _r8=i.include;if(!_r8)continue;var _s6=ut(_r8);switch(_s6.kind){case 0:it(_objectSpread(_objectSpread({},e),{},{selfGrammar:e.baseGrammar}),n);break;case 1:it(e,n);break;case 2:nt(_s6.ruleName,_objectSpread(_objectSpread({},e),{},{repository:_t33}),n);break;case 3:case 4:var _i6=_s6.scopeName===e.selfGrammar.scopeName?e.selfGrammar:_s6.scopeName===e.baseGrammar.scopeName?e.baseGrammar:void 0;if(_i6){var _r9={baseGrammar:e.baseGrammar,selfGrammar:_i6,repository:_t33};4===_s6.kind?nt(_s6.ruleName,_r9,n):it(_r9,n);}else 4===_s6.kind?n.add(new Q(_s6.scopeName,_s6.ruleName)):n.add(new Y(_s6.scopeName));}}}catch(err){_iterator5.e(err);}finally{_iterator5.f();}}function ut(t){if("$base"===t)return new st();if("$self"===t)return new ot();var e=t.indexOf("#");if(-1===e)return new at(t);if(0===e)return new lt(t.substring(1));{var _n19=t.substring(0,e),i=t.substring(e+1);return new ct(_n19,i);}}function Lt(t,e,n,i,r,s,o,l){var a=e.content.length;var c=!1,u=-1;if(o){var _o8=function(t,e,n,i,r,s){var o=r.beginRuleCapturedEOL?0:-1;var l=[];for(var _e23=r;_e23;_e23=_e23.pop()){var _n23=_e23.getRule(t);_n23 instanceof yt&&l.push({rule:_n23,stack:_e23});}for(var _a4=l.pop();_a4;_a4=l.pop()){var _Mt=Mt(_a4.rule,t,_a4.stack.endRule,n,i===o),_l4=_Mt.ruleScanner,_c4=_Mt.findOptions,_u3=_l4.findNextMatchSync(e,i,_c4);if(!_u3){r=_a4.stack.pop();break;}if(-2!==_u3.ruleId){r=_a4.stack.pop();break;}_u3.captureIndices&&_u3.captureIndices.length&&(s.produce(_a4.stack,_u3.captureIndices[0].start),Ot(t,e,n,_a4.stack,s,_a4.rule.whileCaptures,_u3.captureIndices),s.produce(_a4.stack,_u3.captureIndices[0].end),o=_u3.captureIndices[0].end,_u3.captureIndices[0].end>i&&(i=_u3.captureIndices[0].end,n=!1));}return{stack:r,linePos:i,anchorPosition:o,isFirstLine:n};}(t,e,n,i,r,s);r=_o8.stack,i=_o8.linePos,n=_o8.isFirstLine,u=_o8.anchorPosition;}var m=Date.now();for(;!c;){if(0!==l){if(Date.now()-m>l)return new At(r,!0);}p();}return new At(r,!1);function p(){var o=function(t,e,n,i,r,s){var o=function(t,e,n,i,r,s){var o=r.getRule(t),_Tt=Tt(o,t,r.endRule,n,i===s),l=_Tt.ruleScanner,a=_Tt.findOptions,c=l.findNextMatchSync(e,i,a);if(c)return{captureIndices:c.captureIndices,matchedRuleId:c.ruleId};return null;}(t,e,n,i,r,s),l=t.getInjections();if(0===l.length)return o;var a=function(t,e,n,i,r,s,o){var l,a=Number.MAX_VALUE,c=null,u=0;var m=s.contentNameScopesList.getScopeNames();for(var _s12=0,_p=t.length;_s12<_p;_s12++){var _p2=t[_s12];if(!_p2.matcher(m))continue;var _h=e.getRule(_p2.ruleId),_Tt2=Tt(_h,e,null,i,r===o),_d=_Tt2.ruleScanner,_f2=_Tt2.findOptions,_g=_d.findNextMatchSync(n,r,_f2);if(!_g)continue;var _j=_g.captureIndices[0].start;if(!(_j>=a)&&(a=_j,c=_g.captureIndices,l=_g.ruleId,u=_p2.priority,a===r))break;}if(c)return{priorityMatch:-1===u,captureIndices:c,matchedRuleId:l};return null;}(l,t,e,n,i,r,s);if(!a)return o;if(!o)return a;var c=o.captureIndices[0].start,u=a.captureIndices[0].start;if(u<c||a.priorityMatch&&u===c)return a;return o;}(t,e,n,i,r,u);if(!o)return s.produce(r,a),void(c=!0);var l=o.captureIndices,m=o.matchedRuleId,p=!!(l&&l.length>0)&&l[0].end>i;if(-1===m){var _o9=r.getRule(t);s.produce(r,l[0].start),r=r.withContentNameScopesList(r.nameScopesList),Ot(t,e,n,r,s,_o9.endCaptures,l),s.produce(r,l[0].end);var _m=r;if(r=r.parent,u=_m.getAnchorPos(),!p&&_m.getEnterPos()===i)return r=_m,s.produce(r,a),void(c=!0);}else{var _o10=t.getRule(m);s.produce(r,l[0].start);var _h2=r,_d2=_o10.getName(e.content,l),_f3=r.contentNameScopesList.pushAttributed(_d2,t);if(r=r.push(m,i,u,l[0].end===a,null,_f3,_f3),_o10 instanceof jt){var _i7=_o10;Ot(t,e,n,r,s,_i7.beginCaptures,l),s.produce(r,l[0].end),u=l[0].end;var _m2=_i7.getContentName(e.content,l),_d3=_f3.pushAttributed(_m2,t);if(r=r.withContentNameScopesList(_d3),_i7.endHasBackReferences&&(r=r.withEndRule(_i7.getEndWithResolvedBackReferences(e.content,l))),!p&&_h2.hasSameRuleAs(r))return r=r.pop(),s.produce(r,a),void(c=!0);}else if(_o10 instanceof yt){var _i8=_o10;Ot(t,e,n,r,s,_i8.beginCaptures,l),s.produce(r,l[0].end),u=l[0].end;var _m3=_i8.getContentName(e.content,l),_d4=_f3.pushAttributed(_m3,t);if(r=r.withContentNameScopesList(_d4),_i8.whileHasBackReferences&&(r=r.withEndRule(_i8.getWhileWithResolvedBackReferences(e.content,l))),!p&&_h2.hasSameRuleAs(r))return r=r.pop(),s.produce(r,a),void(c=!0);}else{if(Ot(t,e,n,r,s,_o10.captures,l),s.produce(r,l[0].end),r=r.pop(),!p)return r=r.safePop(),s.produce(r,a),void(c=!0);}}l[0].end>i&&(i=l[0].end,n=!1);}}function Tt(t,e,n,i,r){return{ruleScanner:t.compileAG(e,n,i,r),findOptions:0};}function Mt(t,e,n,i,r){return{ruleScanner:t.compileWhileAG(e,n,i,r),findOptions:0};}function Ot(t,e,n,i,r,s,o){if(0===s.length)return;var l=e.content,a=Math.min(s.length,o.length),c=[],u=o[0].end;for(var _e24=0;_e24<a;_e24++){var _a5=s[_e24];if(null===_a5)continue;var _m4=o[_e24];if(0===_m4.length)continue;if(_m4.start>u)break;for(;c.length>0&&c[c.length-1].endPos<=_m4.start;)r.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop();if(c.length>0?r.produceFromScopes(c[c.length-1].scopes,_m4.start):r.produce(i,_m4.start),_a5.retokenizeCapturedWithRuleId){var _e25=_a5.getName(l,o),_s13=i.contentNameScopesList.pushAttributed(_e25,t),_c5=_a5.getContentName(l,o),_u4=_s13.pushAttributed(_c5,t),_p3=i.push(_a5.retokenizeCapturedWithRuleId,_m4.start,-1,!1,null,_s13,_u4),_h3=t.createOnigString(l.substring(0,_m4.end));Lt(t,_h3,n&&0===_m4.start,_m4.start,_p3,r,!1,0),X(_h3);continue;}var _p4=_a5.getName(l,o);if(null!==_p4){var _e26=(c.length>0?c[c.length-1].scopes:i.contentNameScopesList).pushAttributed(_p4,t);c.push(new Pt(_e26,_m4.end));}}for(;c.length>0;)r.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop();}function Nt(t,e,n,i,r){var s=J(e,Dt),o=bt.getCompiledRuleId(n,i,r.repository);var _iterator9=_createForOfIteratorHelper(s),_step9;try{for(_iterator9.s();!(_step9=_iterator9.n()).done;){var _n24=_step9.value;t.push({debugSelector:e,matcher:_n24.matcher,ruleId:o,grammar:r,priority:_n24.priority});}}catch(err){_iterator9.e(err);}finally{_iterator9.f();}}function Dt(t,e){if(e.length<t.length)return!1;var n=0;return t.every(function(t){for(var i=n;i<e.length;i++)if(Et(e[i],t))return n=i+1,!0;return!1;});}function Et(t,e){if(!t)return!1;if(t===e)return!0;var n=e.length;return t.length>n&&t.substr(0,n)===e&&"."===t[n];}function Rt(t,e){return(t=L(t)).repository=t.repository||{},t.repository.$self={$vscodeTextmateLocation:t.$vscodeTextmateLocation,patterns:t.patterns,name:t.scopeName},t.repository.$base=e||t.repository.$self,t;}function Wt(t,e){var n={},i={};var r=-1;for(;++r<t.length;)Object.assign(n,t[r].property),Object.assign(i,t[r].normal);return new Ut(n,i,e);}function Vt(t){return t.toLowerCase();}function ie(){return Math.pow(2,++Kt);}function le(t,e,n){n&&(t[e]=n);}function ce(t){var e={},n={};var i;for(i in t.properties)if(ae.call(t.properties,i)){var _r14=t.properties[i],_s16=new oe(i,t.transform(t.attributes||{},i),_r14,t.space);t.mustUseProperty&&t.mustUseProperty.includes(i)&&(_s16.mustUseProperty=!0),e[i]=_s16,n[Vt(i)]=i,n[Vt(_s16.attribute)]=i;}return new Ut(e,n,t.space);}function pe(t,e){return e in t?t[e]:e;}function he(t,e){return pe(t,e.toLowerCase());}function ke(t){return"-"+t.toLowerCase();}function ve(t){return t.charAt(1).toUpperCase();}function Pe(t,e){return t=t.replace(e.subset?function(t){var e=Oe.get(t);e||(e=function(t){var e=[];var n=-1;for(;++n<t.length;)e.push(t[n].replace(Me,"\\$&"));return new RegExp("(?:"+e.join("|")+")","g");}(t),Oe.set(t,e));return e;}(e.subset):Ae,n),e.subset||e.escapeOnly?t:t.replace(Le,function(t,n,i){return e.format(1024*(t.charCodeAt(0)-55296)+t.charCodeAt(1)-56320+65536,i.charCodeAt(n+2),e);}).replace(Te,n);function n(t,n,i){return e.format(t.charCodeAt(0),i.charCodeAt(n+1),e);}}function qe(t,e,n){var i,r=function(t,e,n){var i="&#x"+t.toString(16).toUpperCase();return n&&e&&!Ne.test(String.fromCharCode(e))?i:i+";";}(t,e,n.omitOptionalSemicolons);if((n.useNamedReferences||n.useShortestReferences)&&(i=function(t,e,n,i){var r=String.fromCharCode(t);if($e.call(Be,r)){var _t76=Be[r],_s17="&"+_t76;return n&&Ee.includes(_t76)&&!Re.includes(_t76)&&(!i||e&&61!==e&&Ge.test(String.fromCharCode(e)))?_s17:_s17+";";}return"";}(t,e,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!i)&&n.useShortestReferences){var _i11=function(t,e,n){var i="&#"+String(t);return n&&e&&!De.test(String.fromCharCode(e))?i:i+";";}(t,e,n.omitOptionalSemicolons);_i11.length<r.length&&(r=_i11);}return i&&(!n.useShortestReferences||i.length<r.length)?i:r;}function ze(t,e){return Pe(t,Object.assign({format:qe},e));}function We(t,e){var n=String(t);if("string"!=typeof e)throw new TypeError("Expected character");var i=0,r=n.indexOf(e);for(;-1!==r;)i++,r=n.indexOf(e,r+e.length);return i;}function Ve(t,e){var n=e||{};return(""===t[t.length-1]?[].concat(_toConsumableArray(t),[""]):t).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim();}function Je(t){return t.join(" ").trim();}function Xe(t){return"object"==_typeof(t)?"text"===t.type&&Ye(t.value):Ye(t);}function Ye(t){return""===t.replace(Ke,"");}function en(t){return function(e,n,i){var r=e?e.children:tn;var s=(n||0)+t,o=r[s];if(!i)for(;o&&Xe(o);)s+=t,o=r[s];return o;};}function rn(t){return function(e,n,i){return nn.call(t,e.tagName)&&t[e.tagName](e,n,i);};}function on(t,e,n){var i=Qe(n,e,!0);return!i||"comment"!==i.type&&!("text"===i.type&&Xe(i.value.charAt(0)));}function ln(t,e,n){var i=Qe(n,e);return!i||"element"===i.type&&("rp"===i.tagName||"rt"===i.tagName);}function an(t,e,n){var i=Qe(n,e);return!i||"element"===i.type&&("td"===i.tagName||"th"===i.tagName);}function mn(t,e,n){var i=function(t,e){var n=Vt(e);var i=e,r=Jt;if(n in t.normal)return t.property[t.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&ye.test(e)){if("-"===e.charAt(4)){var _t77=e.slice(5).replace(be,ve);i="data"+_t77.charAt(0).toUpperCase()+_t77.slice(1);}else{var _t78=e.slice(4);if(!be.test(_t78)){var _n32=_t78.replace(we,ke);"-"!==_n32.charAt(0)&&(_n32="-"+_n32),e="data"+_n32;}}r=oe;}return new r(i,e);}(t.schema,e),r=t.settings.allowParseErrors&&"html"===t.schema.space?0:1,s=t.settings.allowDangerousCharacters?0:1;var o,l=t.quote;if(!i.overloadedBoolean||n!==i.attribute&&""!==n?!i["boolean"]&&!i.overloadedBoolean||"string"==typeof n&&n!==i.attribute&&""!==n||(n=Boolean(n)):n=!0,null==n||!1===n||"number"==typeof n&&Number.isNaN(n))return"";var a=ze(i.attribute,Object.assign({},t.settings.characterReferences,{subset:un.name[r][s]}));return!0===n?a:(n=Array.isArray(n)?(i.commaSeparated?Ve:Je)(n,{padLeft:!t.settings.tightCommaSeparatedLists}):String(n),t.settings.collapseEmptyAttributes&&!n?a:(t.settings.preferUnquoted&&(o=ze(n,Object.assign({},t.settings.characterReferences,{attribute:!0,subset:un.unquoted[r][s]}))),o!==n&&(t.settings.quoteSmart&&We(n,l)>We(n,t.alternative)&&(l=t.alternative),o=l+ze(n,Object.assign({},t.settings.characterReferences,{subset:("'"===l?un.single:un["double"])[r][s],attribute:!0}))+l),a+(o?"="+o:o)));}function hn(t,e,n,i){return!n||"element"!==n.type||"script"!==n.tagName&&"style"!==n.tagName?ze(t.value,Object.assign({},i.settings.characterReferences,{subset:pn})):t.value;}function yn(t,e,n){return dn(t,e,n,this);}function bn(t){var e=[],n=t&&t.children||jn;var i=-1;for(;++i<n.length;)e[i]=this.one(n[i],i,t);return e.join("");}function wn(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:!1;var n=t.split(/(\r?\n)/g);var i=0;var r=[];for(var _t79=0;_t79<n.length;_t79+=2){var _n34;var _s18=e?n[_t79]+(n[_t79+1]||""):n[_t79];r.push([_s18,i]),i+=n[_t79].length,i+=((_n34=n[_t79+1])===null||_n34===void 0?void 0:_n34.length)||0;}return r;}function kn(t){return!t||["plaintext","txt","text","plain"].includes(t);}function vn(t){return"ansi"===t||kn(t);}function Sn(t){return"none"===t;}function xn(t){return Sn(t);}function Cn(t,e){var _t$properties;if(!e)return t;t.properties||(t.properties={}),(_t$properties=t.properties)["class"]||(_t$properties["class"]=[]),"string"==typeof t.properties["class"]&&(t.properties["class"]=t.properties["class"].split(/\s+/g)),Array.isArray(t.properties["class"])||(t.properties["class"]=[]);var n=Array.isArray(e)?e:e.split(/\s+/g);var _iterator19=_createForOfIteratorHelper(n),_step19;try{for(_iterator19.s();!(_step19=_iterator19.n()).done;){var _e35=_step19.value;_e35&&!t.properties["class"].includes(_e35)&&t.properties["class"].push(_e35);}}catch(err){_iterator19.e(err);}finally{_iterator19.f();}return t;}function An(_x5){return _An.apply(this,arguments);}function _An(){_An=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee11(t){return _regeneratorRuntime().wrap(function _callee11$(_context12){while(1)switch(_context12.prev=_context12.next){case 0:return _context12.abrupt("return",Promise.resolve("function"==typeof t?t():t).then(function(t){return t["default"]||t;}));case 1:case"end":return _context12.stop();}},_callee11);}));return _An.apply(this,arguments);}function Ln(t,e){var n="string"==typeof t?{}:_objectSpread({},t.colorReplacements),i="string"==typeof t?t:t.name;for(var _i12=0,_Object$entries=Object.entries((e===null||e===void 0?void 0:e.colorReplacements)||{});_i12<_Object$entries.length;_i12++){var _Object$entries$_i=_slicedToArray(_Object$entries[_i12],2),_t80=_Object$entries$_i[0],_r17=_Object$entries$_i[1];"string"==typeof _r17?n[_t80]=_r17:_t80===i&&Object.assign(n,_r17);}return n;}function Tn(t,e){return t&&(e===null||e===void 0?void 0:e[t===null||t===void 0?void 0:t.toLowerCase()])||t;}function Mn(t){var e={};return t.color&&(e.color=t.color),t.bgColor&&(e["background-color"]=t.bgColor),t.fontStyle&&(t.fontStyle&z.Italic&&(e["font-style"]="italic"),t.fontStyle&z.Bold&&(e["font-weight"]="bold"),t.fontStyle&z.Underline&&(e["text-decoration"]="underline")),e;}function On(t){return"string"==typeof t?t:Object.entries(t).map(function(_ref6){var _ref7=_slicedToArray(_ref6,2),t=_ref7[0],e=_ref7[1];return"".concat(t,":").concat(e);}).join(";");}function Dn(t,e){Nn.set(t,e);}function En(t){return Nn.get(t);}function Rn(t){var e=[],n=new Set();return function t(i,_i$nameScopesList){if(n.has(i))return;n.add(i);var r=i===null||i===void 0||(_i$nameScopesList=i.nameScopesList)===null||_i$nameScopesList===void 0?void 0:_i$nameScopesList.scopeName;r&&e.push(r),i.parent&&t(i.parent);}(t),e;}function $n(){var t=new WeakMap();function e(e){if(!t.has(e.meta)){var _n38=function _n38(t){if("number"==typeof t){if(t<0||t>e.source.length)throw new Pn("Invalid decoration offset: ".concat(t,". Code length: ").concat(e.source.length));return _objectSpread(_objectSpread({},i.indexToPos(t)),{},{offset:t});}{var _e38=i.lines[t.line];if(void 0===_e38)throw new Pn("Invalid decoration position ".concat(JSON.stringify(t),". Lines length: ").concat(i.lines.length));if(t.character<0||t.character>_e38.length)throw new Pn("Invalid decoration position ".concat(JSON.stringify(t),". Line ").concat(t.line," length: ").concat(_e38.length));return _objectSpread(_objectSpread({},t),{},{offset:i.posToIndex(t.line,t.character)});}};var i=function(t){var e=wn(t,!0).map(function(_ref8){var _ref9=_slicedToArray(_ref8,1),t=_ref9[0];return t;});return{lines:e,indexToPos:function indexToPos(n){if(n===t.length)return{line:e.length-1,character:e[e.length-1].length};var i=n,r=0;var _iterator20=_createForOfIteratorHelper(e),_step20;try{for(_iterator20.s();!(_step20=_iterator20.n()).done;){var _t81=_step20.value;if(i<_t81.length)break;i-=_t81.length,r++;}}catch(err){_iterator20.e(err);}finally{_iterator20.f();}return{line:r,character:i};},posToIndex:function posToIndex(t,n){var i=0;for(var _n39=0;_n39<t;_n39++)i+=e[_n39].length;return i+=n,i;}};}(e.source),_r18=(e.options.decorations||[]).map(function(t){return _objectSpread(_objectSpread({},t),{},{start:_n38(t.start),end:_n38(t.end)});});!function(t){for(var _e39=0;_e39<t.length;_e39++){var _n40=t[_e39];if(_n40.start.offset>_n40.end.offset)throw new Pn("Invalid decoration range: ".concat(JSON.stringify(_n40.start)," - ").concat(JSON.stringify(_n40.end)));for(var _i13=_e39+1;_i13<t.length;_i13++){var _e40=t[_i13],_r19=_n40.start.offset<_e40.start.offset&&_e40.start.offset<_n40.end.offset,_s19=_n40.start.offset<_e40.end.offset&&_e40.end.offset<_n40.end.offset,_o12=_e40.start.offset<_n40.start.offset&&_n40.start.offset<_e40.end.offset,_l5=_e40.start.offset<_n40.end.offset&&_n40.end.offset<_e40.end.offset;if(_r19||_s19||_o12||_l5){if(_s19&&_s19)continue;if(_o12&&_l5)continue;throw new Pn("Decorations ".concat(JSON.stringify(_n40.start)," and ").concat(JSON.stringify(_e40.start)," intersect."));}}}}(_r18),t.set(e.meta,{decorations:_r18,converter:i,source:e.source});}return t.get(e.meta);}return{name:"shiki:decorations",tokens:function tokens(t){var _this$options$decorat;if(!((_this$options$decorat=this.options.decorations)!==null&&_this$options$decorat!==void 0&&_this$options$decorat.length))return;var n=function(t,e){var n=Array.from(e instanceof Set?e:new Set(e)).sort(function(t,e){return t-e;});return n.length?t.map(function(t){return t.flatMap(function(t){var e=n.filter(function(e){return t.offset<e&&e<t.offset+t.content.length;}).map(function(e){return e-t.offset;}).sort(function(t,e){return t-e;});return e.length?function(t,e){var n=0;var i=[];var _iterator21=_createForOfIteratorHelper(e),_step21;try{for(_iterator21.s();!(_step21=_iterator21.n()).done;){var _r20=_step21.value;_r20>n&&i.push(_objectSpread(_objectSpread({},t),{},{content:t.content.slice(n,_r20),offset:t.offset+n})),n=_r20;}}catch(err){_iterator21.e(err);}finally{_iterator21.f();}return n<t.content.length&&i.push(_objectSpread(_objectSpread({},t),{},{content:t.content.slice(n),offset:t.offset+n})),i;}(t,e):t;});}):t;}(t,e(this).decorations.flatMap(function(t){return[t.start.offset,t.end.offset];}));return n;},code:function code(t){var _this$options$decorat2;if(!((_this$options$decorat2=this.options.decorations)!==null&&_this$options$decorat2!==void 0&&_this$options$decorat2.length))return;var n=e(this),i=Array.from(t.children).filter(function(t){return"element"===t.type&&"span"===t.tagName;});if(i.length!==n.converter.lines.length)throw new Pn("Number of lines in code element (".concat(i.length,") does not match the number of lines in the source (").concat(n.converter.lines.length,"). Failed to apply decorations."));function r(t,e,n,r){var s=i[t];var l="",a=-1,c=-1;if(0===e&&(a=0),0===n&&(c=0),n===Number.POSITIVE_INFINITY&&(c=s.children.length),-1===a||-1===c)for(var _t82=0;_t82<s.children.length;_t82++)l+=Bn(s.children[_t82]),-1===a&&l.length===e&&(a=_t82+1),-1===c&&l.length===n&&(c=_t82+1);if(-1===a)throw new Pn("Failed to find start index for decoration ".concat(JSON.stringify(r.start)));if(-1===c)throw new Pn("Failed to find end index for decoration ".concat(JSON.stringify(r.end)));var u=s.children.slice(a,c);if(r.alwaysWrap||u.length!==s.children.length){if(r.alwaysWrap||1!==u.length||"element"!==u[0].type){var _t83={type:"element",tagName:"span",properties:{},children:u};o(_t83,r,"wrapper"),s.children.splice(a,u.length,_t83);}else o(u[0],r,"token");}else o(s,r,"line");}function s(t,e){i[t]=o(i[t],e,"line");}function o(t,e,n){var _e$properties;var i=e.properties||{},r=e.transform||function(t){return t;};return t.tagName=e.tagName||"span",t.properties=_objectSpread(_objectSpread(_objectSpread({},t.properties),i),{},{"class":t.properties["class"]}),(_e$properties=e.properties)!==null&&_e$properties!==void 0&&_e$properties["class"]&&Cn(t,e.properties["class"]),t=r(t,n)||t;}var l=[],a=n.decorations.sort(function(t,e){return e.start.offset-t.start.offset;});var _iterator22=_createForOfIteratorHelper(a),_step22;try{var _loop=function _loop(){var t=_step22.value;var e=t.start,n=t.end;if(e.line===n.line)r(e.line,e.character,n.character,t);else if(e.line<n.line){r(e.line,e.character,Number.POSITIVE_INFINITY,t);var _loop2=function _loop2(_i14){l.unshift(function(){return s(_i14,t);});};for(var _i14=e.line+1;_i14<n.line;_i14++){_loop2(_i14);}r(n.line,0,n.character,t);}};for(_iterator22.s();!(_step22=_iterator22.n()).done;){_loop();}}catch(err){_iterator22.e(err);}finally{_iterator22.f();}l.forEach(function(t){return t();});}};}function Bn(t){return"text"===t.type?t.value:"element"===t.type?t.children.map(Bn).join(""):"";}function Gn(t){return[].concat(_toConsumableArray(t.transformers||[]),In);}function Fn(t,e){var n=t.indexOf("[",e);if(-1!==n){var _e41=t.indexOf("m",n);return{sequence:t.substring(n+2,_e41).split(";"),startPosition:n,position:_e41+1};}return{position:t.length};}function Hn(t,e){var n=1;var i=t[e+n++];var r;if("2"===i){var _i15=[t[e+n++],t[e+n++],t[e+n]].map(function(t){return Number.parseInt(t);});3!==_i15.length||_i15.some(function(t){return Number.isNaN(t);})||(r={type:"rgb",rgb:_i15});}else if("5"===i){var _i16=Number.parseInt(t[e+n]);Number.isNaN(_i16)||(r={type:"table",index:Number(_i16)});}return[n,r];}function Un(t){var e=[];for(var _n41=0;_n41<t.length;_n41++){var i=t[_n41],_r21=Number.parseInt(i);if(!Number.isNaN(_r21))if(0===_r21)e.push({type:"resetAll"});else if(_r21<=9){zn[_r21]&&e.push({type:"setDecoration",value:zn[_r21]});}else if(_r21<=29){var _t84=zn[_r21-20];_t84&&e.push({type:"resetDecoration",value:_t84});}else if(_r21<=37)e.push({type:"setForegroundColor",value:{type:"named",name:qn[_r21-30]}});else if(38===_r21){var _Hn=Hn(t,_n41),_Hn2=_slicedToArray(_Hn,2),_i17=_Hn2[0],_r22=_Hn2[1];_r22&&e.push({type:"setForegroundColor",value:_r22}),_n41+=_i17;}else if(39===_r21)e.push({type:"resetForegroundColor"});else if(_r21<=47)e.push({type:"setBackgroundColor",value:{type:"named",name:qn[_r21-40]}});else if(48===_r21){var _Hn3=Hn(t,_n41),_Hn4=_slicedToArray(_Hn3,2),_i18=_Hn4[0],_r23=_Hn4[1];_r23&&e.push({type:"setBackgroundColor",value:_r23}),_n41+=_i18;}else 49===_r21?e.push({type:"resetBackgroundColor"}):_r21>=90&&_r21<=97?e.push({type:"setForegroundColor",value:{type:"named",name:qn[_r21-90+8]}}):_r21>=100&&_r21<=107&&e.push({type:"setBackgroundColor",value:{type:"named",name:qn[_r21-100+8]}});}return e;}function Vn(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:Wn;function e(e){return t[e];}function n(t){return"#".concat(t.map(function(t){return Math.max(0,Math.min(t,255)).toString(16).padStart(2,"0");}).join(""));}var i;function r(t){return function(){if(i)return i;i=[];for(var _t85=0;_t85<qn.length;_t85++)i.push(e(qn[_t85]));var t=[0,95,135,175,215,255];for(var _e42=0;_e42<6;_e42++)for(var _r24=0;_r24<6;_r24++)for(var _s20=0;_s20<6;_s20++)i.push(n([t[_e42],t[_r24],t[_s20]]));var r=8;for(var _t86=0;_t86<24;_t86++,r+=10)i.push(n([r,r,r]));return i;}()[t];}return{value:function value(t){switch(t.type){case"named":return e(t.name);case"rgb":return n(t.rgb);case"table":return r(t.index);}}};}function Jn(t,e,n){var i=Ln(t,n),r=wn(e),s=Vn(Object.fromEntries(qn.map(function(e){var _t$colors;return[e,(_t$colors=t.colors)===null||_t$colors===void 0?void 0:_t$colors["terminal.ansi".concat(e[0].toUpperCase()).concat(e.substring(1))]];}))),o=function(){var t=null,e=null,n=new Set();return{parse:function parse(i){var r=[];var s=0;do{var _o13=Fn(i,s),_l6=_o13.sequence?i.substring(s,_o13.startPosition):i.substring(s);if(_l6.length>0&&r.push({value:_l6,foreground:t,background:e,decorations:new Set(n)}),_o13.sequence){var _i19=Un(_o13.sequence);var _iterator23=_createForOfIteratorHelper(_i19),_step23;try{for(_iterator23.s();!(_step23=_iterator23.n()).done;){var _r25=_step23.value;"resetAll"===_r25.type?(t=null,e=null,n.clear()):"resetForegroundColor"===_r25.type?t=null:"resetBackgroundColor"===_r25.type?e=null:"resetDecoration"===_r25.type&&n["delete"](_r25.value);}}catch(err){_iterator23.e(err);}finally{_iterator23.f();}var _iterator24=_createForOfIteratorHelper(_i19),_step24;try{for(_iterator24.s();!(_step24=_iterator24.n()).done;){var _r26=_step24.value;"setForegroundColor"===_r26.type?t=_r26.value:"setBackgroundColor"===_r26.type?e=_r26.value:"setDecoration"===_r26.type&&n.add(_r26.value);}}catch(err){_iterator24.e(err);}finally{_iterator24.f();}}s=_o13.position;}while(s<i.length);return r;}};}();return r.map(function(e){return o.parse(e[0]).map(function(n){var r,o;n.decorations.has("reverse")?(r=n.background?s.value(n.background):t.bg,o=n.foreground?s.value(n.foreground):t.fg):(r=n.foreground?s.value(n.foreground):t.fg,o=n.background?s.value(n.background):void 0),r=Tn(r,i),o=Tn(o,i),n.decorations.has("dim")&&(r=function(t){var e=t.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(e){if(e[3]){var _t87=Math.round(Number.parseInt(e[3],16)/2).toString(16).padStart(2,"0");return"#".concat(e[1]).concat(e[2]).concat(_t87);}return e[2]?"#".concat(e[1]).concat(e[2],"80"):"#".concat(Array.from(e[1]).map(function(t){return"".concat(t).concat(t);}).join(""),"80");}var n=t.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?"var(".concat(n[1],"-dim)"):t;}(r));var l=z.None;return n.decorations.has("bold")&&(l|=z.Bold),n.decorations.has("italic")&&(l|=z.Italic),n.decorations.has("underline")&&(l|=z.Underline),{content:n.value,offset:e[1],color:r,bgColor:o,fontStyle:l};});});}function Kn(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var _n$lang=n.lang,i=_n$lang===void 0?"text":_n$lang,_n$theme=n.theme,r=_n$theme===void 0?t.getLoadedThemes()[0]:_n$theme;if(kn(i)||Sn(r))return wn(e).map(function(t){return[{content:t[0],offset:t[1]}];});var _t$setTheme=t.setTheme(r),s=_t$setTheme.theme,o=_t$setTheme.colorMap;if("ansi"===i)return Jn(s,e,n);var l=t.getLanguage(i);if(n.grammarState){if(n.grammarState.lang!==l.name)throw new m("Grammar state language \"".concat(n.grammarState.lang,"\" does not match highlight language \"").concat(l.name,"\""));if(!n.grammarState.themes.includes(s.name))throw new m("Grammar state themes \"".concat(n.grammarState.themes,"\" do not contain highlight theme \"").concat(s.name,"\""));}return function(t,e,n,i,r){var s=Xn(t,e,n,i,r),o=new _n(Xn(t,e,n,i,r).stateStack,e.name,n.name);return Dn(s.tokens,o),s.tokens;}(e,l,s,o,n);}function Xn(t,e,n,i,r){var _ref10;var s=Ln(n,r),_r$tokenizeMaxLineLen=r.tokenizeMaxLineLength,o=_r$tokenizeMaxLineLen===void 0?0:_r$tokenizeMaxLineLen,_r$tokenizeTimeLimit=r.tokenizeTimeLimit,l=_r$tokenizeTimeLimit===void 0?500:_r$tokenizeTimeLimit,a=wn(t);var c=r.grammarState?(_ref10=function(t,e){if(!(t instanceof _n))throw new Pn("Invalid grammar state");return t.getInternalStack(e);}(r.grammarState,n.name))!==null&&_ref10!==void 0?_ref10:Ft:null!=r.grammarContextCode?Xn(r.grammarContextCode,e,n,i,_objectSpread(_objectSpread({},r),{},{grammarState:void 0,grammarContextCode:void 0})).stateStack:Ft,u=[];var m=[];for(var _t88=0,_h4=a.length;_t88<_h4;_t88++){var _a$_t=_slicedToArray(a[_t88],2),_h5=_a$_t[0],_d5=_a$_t[1];if(""===_h5){u=[],m.push([]);continue;}if(o>0&&_h5.length>=o){u=[],m.push([{content:_h5,offset:_d5,color:"",fontStyle:0}]);continue;}var _f4=void 0,_g2=void 0,_j2=void 0;r.includeExplanation&&(_f4=e.tokenizeLine(_h5,c),_g2=_f4.tokens,_j2=0);var _y=e.tokenizeLine2(_h5,c,l),_b=_y.tokens.length/2;for(var _t89=0;_t89<_b;_t89++){var _e43=_y.tokens[2*_t89],_o14=_t89+1<_b?_y.tokens[2*_t89+2]:_h5.length;if(_e43===_o14)continue;var _l7=_y.tokens[2*_t89+1],_a6=Tn(i[V.getForeground(_l7)],s),_c6=V.getFontStyle(_l7),_m5={content:_h5.substring(_e43,_o14),offset:_d5+_e43,color:_a6,fontStyle:_c6};if(r.includeExplanation){var _t90=[];if("scopeName"!==r.includeExplanation){var _iterator25=_createForOfIteratorHelper(n.settings),_step25;try{for(_iterator25.s();!(_step25=_iterator25.n()).done;){var _e44=_step25.value;var _n42=void 0;switch(_typeof(_e44.scope)){case"string":_n42=_e44.scope.split(/,/).map(function(t){return t.trim();});break;case"object":_n42=_e44.scope;break;default:continue;}_t90.push({settings:_e44,selectors:_n42.map(function(t){return t.split(/ /);})});}}catch(err){_iterator25.e(err);}finally{_iterator25.f();}}_m5.explanation=[];var _i20=0;for(;_e43+_i20<_o14;){var _e45=_g2[_j2],_n43=_h5.substring(_e45.startIndex,_e45.endIndex);_i20+=_n43.length,_m5.explanation.push({content:_n43,scopes:"scopeName"===r.includeExplanation?(p=_e45.scopes,p.map(function(t){return{scopeName:t};})):Yn(_t90,_e45.scopes)}),_j2+=1;}}u.push(_m5);}m.push(u),u=[],c=_y.ruleStack;}var p;return{tokens:m,stateStack:c};}function Yn(t,e){var n=[];for(var i=0,_r27=e.length;i<_r27;i++){var _r28=e[i];n[i]={scopeName:_r28,themeMatches:ti(t,_r28,e.slice(0,i))};}return n;}function Qn(t,e){return t===e||e.substring(0,t.length)===t&&"."===e[t.length];}function Zn(t,e,n){if(!Qn(t[t.length-1],e))return!1;var i=t.length-2,r=n.length-1;for(;i>=0&&r>=0;)Qn(t[i],n[r])&&(i-=1),r-=1;return-1===i;}function ti(t,e,n){var i=[];var _iterator26=_createForOfIteratorHelper(t),_step26;try{for(_iterator26.s();!(_step26=_iterator26.n()).done;){var _step26$value=_step26.value,_r29=_step26$value.selectors,_s21=_step26$value.settings;var _iterator27=_createForOfIteratorHelper(_r29),_step27;try{for(_iterator27.s();!(_step27=_iterator27.n()).done;){var _t91=_step27.value;if(Zn(_t91,e,n)){i.push(_s21);break;}}}catch(err){_iterator27.e(err);}finally{_iterator27.f();}}}catch(err){_iterator26.e(err);}finally{_iterator26.f();}return i;}function ei(t,e,n){var i=Object.entries(n.themes).filter(function(t){return t[1];}).map(function(t){return{color:t[0],theme:t[1]};}),r=i.map(function(i){var r=Kn(t,e,_objectSpread(_objectSpread({},n),{},{theme:i.theme}));return{tokens:r,state:En(r),theme:"string"==typeof i.theme?i.theme:i.theme.name};}),s=function(){for(var _len4=arguments.length,t=new Array(_len4),_key4=0;_key4<_len4;_key4++){t[_key4]=arguments[_key4];}var e=t.map(function(){return[];}),n=t.length;var _loop3=function _loop3(_i21){var r=t.map(function(t){return t[_i21];}),s=e.map(function(){return[];});e.forEach(function(t,e){return t.push(s[e]);});var o=r.map(function(){return 0;}),l=r.map(function(t){return t[0];});for(;l.every(function(t){return t;});){var _t92=Math.min.apply(Math,_toConsumableArray(l.map(function(t){return t.content.length;})));for(var _e46=0;_e46<n;_e46++){var _n44=l[_e46];_n44.content.length===_t92?(s[_e46].push(_n44),o[_e46]+=1,l[_e46]=r[_e46][o[_e46]]):(s[_e46].push(_objectSpread(_objectSpread({},_n44),{},{content:_n44.content.slice(0,_t92)})),l[_e46]=_objectSpread(_objectSpread({},_n44),{},{content:_n44.content.slice(_t92),offset:_n44.offset+_t92}));}}};for(var _i21=0;_i21<t[0].length;_i21++){_loop3(_i21);}return e;}.apply(void 0,_toConsumableArray(r.map(function(t){return t.tokens;}))),o=s[0].map(function(t,e){return t.map(function(t,r){var o={content:t.content,variants:{},offset:t.offset};return"includeExplanation"in n&&n.includeExplanation&&(o.explanation=t.explanation),s.forEach(function(t,n){var _t$e$r=t[e][r],s=_t$e$r.content,l=_t$e$r.explanation,a=_t$e$r.offset,c=_objectWithoutProperties(_t$e$r,_excluded);o.variants[i[n].color]=c;}),o;});}),l=r[0].state?new _n(Object.fromEntries(r.map(function(t){var _t$state;return[t.theme,(_t$state=t.state)===null||_t$state===void 0?void 0:_t$state.getInternalStack(t.theme)];})),r[0].state.lang):void 0;return l&&Dn(o,l),o;}function ni(t,e,n){var i,r,s,o,l,a;if("themes"in n){var _n$defaultColor=n.defaultColor,_c7=_n$defaultColor===void 0?"light":_n$defaultColor,_n$cssVariablePrefix=n.cssVariablePrefix,_u5=_n$cssVariablePrefix===void 0?"--shiki-":_n$cssVariablePrefix,_p5=Object.entries(n.themes).filter(function(t){return t[1];}).map(function(t){return{color:t[0],theme:t[1]};}).sort(function(t,e){return t.color===_c7?-1:e.color===_c7?1:0;});if(0===_p5.length)throw new m("`themes` option must not be empty");var _h6=ei(t,e,n);if(a=En(_h6),_c7&&!_p5.find(function(t){return t.color===_c7;}))throw new m("`themes` option must contain the defaultColor key `".concat(_c7,"`"));var _d6=_p5.map(function(e){return t.getTheme(e.theme);}),_f5=_p5.map(function(t){return t.color;});s=_h6.map(function(t){return t.map(function(t){return function(t,e,n,i){var r={content:t.content,explanation:t.explanation,offset:t.offset},s=e.map(function(e){return Mn(t.variants[e]);}),o=new Set(s.flatMap(function(t){return Object.keys(t);})),l={};return s.forEach(function(t,r){var _iterator28=_createForOfIteratorHelper(o),_step28;try{for(_iterator28.s();!(_step28=_iterator28.n()).done;){var _s22=_step28.value;var _o15=t[_s22]||"inherit";if(0===r&&i)l[_s22]=_o15;else{var _t93="color"===_s22?"":"background-color"===_s22?"-bg":"-".concat(_s22),_i22=n+e[r]+("color"===_s22?"":_t93);l[_i22]=_o15;}}}catch(err){_iterator28.e(err);}finally{_iterator28.f();}}),r.htmlStyle=l,r;}(t,_f5,_u5,_c7);});}),a&&Dn(s,a);var _g3=_p5.map(function(t){return Ln(t.theme,n);});r=_p5.map(function(t,e){return(0===e&&_c7?"":"".concat(_u5+t.color,":"))+(Tn(_d6[e].fg,_g3[e])||"inherit");}).join(";"),i=_p5.map(function(t,e){return(0===e&&_c7?"":"".concat(_u5+t.color,"-bg:"))+(Tn(_d6[e].bg,_g3[e])||"inherit");}).join(";"),o="shiki-themes ".concat(_d6.map(function(t){return t.name;}).join(" ")),l=_c7?void 0:[r,i].join(";");}else{if(!("theme"in n))throw new m("Invalid options, either `theme` or `themes` must be provided");{var _l8=Ln(n.theme,n);s=Kn(t,e,n);var _c8=t.getTheme(n.theme);i=Tn(_c8.bg,_l8),r=Tn(_c8.fg,_l8),o=_c8.name,a=En(s);}}return{tokens:s,fg:r,bg:i,themeName:o,rootStyle:l,grammarState:a};}function ii(t,e,n){var i=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{meta:{},options:n,codeToHast:function codeToHast(e,n){return ii(t,e,n);},codeToTokens:function codeToTokens(e,n){return ni(t,e,n);}};var r=e;var _iterator29=_createForOfIteratorHelper(Gn(n)),_step29;try{for(_iterator29.s();!(_step29=_iterator29.n()).done;){var _t99$preprocess;var _t99=_step29.value;r=((_t99$preprocess=_t99.preprocess)===null||_t99$preprocess===void 0?void 0:_t99$preprocess.call(i,r,n))||r;}}catch(err){_iterator29.e(err);}finally{_iterator29.f();}var _ni=ni(t,r,n),s=_ni.tokens,o=_ni.fg,l=_ni.bg,a=_ni.themeName,c=_ni.rootStyle,u=_ni.grammarState;var _n$mergeWhitespaces=n.mergeWhitespaces,m=_n$mergeWhitespaces===void 0?!0:_n$mergeWhitespaces;!0===m?s=function(t){return t.map(function(t){var e=[];var n="",i=0;return t.forEach(function(r,s){var o=!(r.fontStyle&&r.fontStyle&z.Underline);o&&r.content.match(/^\s+$/)&&t[s+1]?(i||(i=r.offset),n+=r.content):n?(o?e.push(_objectSpread(_objectSpread({},r),{},{offset:i,content:n+r.content})):e.push({content:n,offset:i},r),i=0,n=""):e.push(r);}),e;});}(s):"never"===m&&(s=function(t){return t.map(function(t){return t.flatMap(function(t){if(t.content.match(/^\s+$/))return t;var e=t.content.match(/^(\s*)(.*?)(\s*)$/);if(!e)return t;var _e47=_slicedToArray(e,4),n=_e47[1],i=_e47[2],r=_e47[3];if(!n&&!r)return t;var s=[_objectSpread(_objectSpread({},t),{},{offset:t.offset+n.length,content:i})];return n&&s.unshift({content:n,offset:t.offset}),r&&s.push({content:r,offset:t.offset+n.length+i.length}),s;});});}(s));var p=_objectSpread(_objectSpread({},i),{},{get source(){return r;}});var _iterator30=_createForOfIteratorHelper(Gn(n)),_step30;try{for(_iterator30.s();!(_step30=_iterator30.n()).done;){var _t100$tokens;var _t100=_step30.value;s=((_t100$tokens=_t100.tokens)===null||_t100$tokens===void 0?void 0:_t100$tokens.call(p,s))||s;}}catch(err){_iterator30.e(err);}finally{_iterator30.f();}return function(t,e,n){var i=arguments.length>3&&arguments[3]!==undefined?arguments[3]:En(t);var r=Gn(e),s=[],o={type:"root",children:[]},_e$structure=e.structure,l=_e$structure===void 0?"classic":_e$structure,_e$tabindex=e.tabindex,a=_e$tabindex===void 0?"0":_e$tabindex;var c={type:"element",tagName:"pre",properties:_objectSpread(_objectSpread({"class":"shiki ".concat(e.themeName||""),style:e.rootStyle||"background-color:".concat(e.bg,";color:").concat(e.fg)},!1!==a&&null!=a?{tabindex:a.toString()}:{}),Object.fromEntries(Array.from(Object.entries(e.meta||{})).filter(function(_ref11){var _ref12=_slicedToArray(_ref11,1),t=_ref12[0];return!t.startsWith("_");}))),children:[]},u={type:"element",tagName:"code",properties:{},children:s};var m=[],p=_objectSpread(_objectSpread({},n),{},{structure:l,addClassToHast:Cn,get source(){return n.source;},get tokens(){return t;},get options(){return e;},get root(){return o;},get pre(){return c;},get code(){return u;},get lines(){return m;}});if(t.forEach(function(t,e){e&&("inline"===l?o.children.push({type:"element",tagName:"br",properties:{},children:[]}):"classic"===l&&s.push({type:"text",value:"\n"}));var n={type:"element",tagName:"span",properties:{"class":"line"},children:[]},i=0;var _iterator31=_createForOfIteratorHelper(t),_step31;try{for(_iterator31.s();!(_step31=_iterator31.n()).done;){var _s23=_step31.value;var _t95={type:"element",tagName:"span",properties:_objectSpread({},_s23.htmlAttrs),children:[{type:"text",value:_s23.content}]};_s23.htmlStyle;var _a7=On(_s23.htmlStyle||Mn(_s23));_a7&&(_t95.properties.style=_a7);var _iterator33=_createForOfIteratorHelper(r),_step33;try{for(_iterator33.s();!(_step33=_iterator33.n()).done;){var _o16$span;var _o16=_step33.value;_t95=(_o16===null||_o16===void 0||(_o16$span=_o16.span)===null||_o16$span===void 0?void 0:_o16$span.call(p,_t95,e+1,i,n,_s23))||_t95;}}catch(err){_iterator33.e(err);}finally{_iterator33.f();}"inline"===l?o.children.push(_t95):"classic"===l&&n.children.push(_t95),i+=_s23.content.length;}}catch(err){_iterator31.e(err);}finally{_iterator31.f();}if("classic"===l){var _iterator32=_createForOfIteratorHelper(r),_step32;try{for(_iterator32.s();!(_step32=_iterator32.n()).done;){var _t94$line;var _t94=_step32.value;n=(_t94===null||_t94===void 0||(_t94$line=_t94.line)===null||_t94$line===void 0?void 0:_t94$line.call(p,n,e+1))||n;}}catch(err){_iterator32.e(err);}finally{_iterator32.f();}m.push(n),s.push(n);}}),"classic"===l){var _iterator34=_createForOfIteratorHelper(r),_step34;try{for(_iterator34.s();!(_step34=_iterator34.n()).done;){var _t96$code;var _t96=_step34.value;u=(_t96===null||_t96===void 0||(_t96$code=_t96.code)===null||_t96$code===void 0?void 0:_t96$code.call(p,u))||u;}}catch(err){_iterator34.e(err);}finally{_iterator34.f();}c.children.push(u);var _iterator35=_createForOfIteratorHelper(r),_step35;try{for(_iterator35.s();!(_step35=_iterator35.n()).done;){var _t97$pre;var _t97=_step35.value;c=(_t97===null||_t97===void 0||(_t97$pre=_t97.pre)===null||_t97$pre===void 0?void 0:_t97$pre.call(p,c))||c;}}catch(err){_iterator35.e(err);}finally{_iterator35.f();}o.children.push(c);}var h=o;var _iterator36=_createForOfIteratorHelper(r),_step36;try{for(_iterator36.s();!(_step36=_iterator36.n()).done;){var _t98$root;var _t98=_step36.value;h=(_t98===null||_t98===void 0||(_t98$root=_t98.root)===null||_t98$root===void 0?void 0:_t98$root.call(p,h))||h;}}catch(err){_iterator36.e(err);}finally{_iterator36.f();}i&&Dn(h,i);return h;}(s,_objectSpread(_objectSpread({},n),{},{fg:o,bg:l,themeName:a,rootStyle:c}),p,u);}function ri(t,e,n){var i={meta:{},options:n,codeToHast:function codeToHast(e,n){return ii(t,e,n);},codeToTokens:function codeToTokens(e,n){return ni(t,e,n);}};var r=function(t,e){var n=e||fn,i=n.quote||'"',r='"'===i?"'":'"';if('"'!==i&&"'"!==i)throw new Error("Invalid quote `"+i+"`, expected `'` or `\"`");return{one:yn,all:bn,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||Ht,characterReferences:n.characterReferences||gn,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:"svg"===n.space?xe:Se,quote:i,alternative:r}.one(Array.isArray(t)?{type:"root",children:t}:t,void 0,void 0);}(ii(t,e,n,i));var _iterator37=_createForOfIteratorHelper(Gn(n)),_step37;try{for(_iterator37.s();!(_step37=_iterator37.n()).done;){var _t101$postprocess;var _t101=_step37.value;r=((_t101$postprocess=_t101.postprocess)===null||_t101$postprocess===void 0?void 0:_t101$postprocess.call(i,r,n))||r;}}catch(err){_iterator37.e(err);}finally{_iterator37.f();}return r;}function ui(t){if(t!==null&&t!==void 0&&t[ci])return t;var e=_objectSpread({},t);e.tokenColors&&!e.settings&&(e.settings=e.tokenColors,delete e.tokenColors),e.type||(e.type="dark"),e.colorReplacements=_objectSpread({},e.colorReplacements),e.settings||(e.settings=[]);var n=e.bg,i=e.fg;if(!n||!i){var _t102$settings,_t102$settings2,_e$colors,_e$colors2;var _t102=e.settings?e.settings.find(function(t){return!t.name&&!t.scope;}):void 0;_t102!==null&&_t102!==void 0&&(_t102$settings=_t102.settings)!==null&&_t102$settings!==void 0&&_t102$settings.foreground&&(i=_t102.settings.foreground),_t102!==null&&_t102!==void 0&&(_t102$settings2=_t102.settings)!==null&&_t102$settings2!==void 0&&_t102$settings2.background&&(n=_t102.settings.background),!i&&e!==null&&e!==void 0&&(_e$colors=e.colors)!==null&&_e$colors!==void 0&&_e$colors["editor.foreground"]&&(i=e.colors["editor.foreground"]),!n&&e!==null&&e!==void 0&&(_e$colors2=e.colors)!==null&&_e$colors2!==void 0&&_e$colors2["editor.background"]&&(n=e.colors["editor.background"]),i||(i="light"===e.type?si:oi),n||(n="light"===e.type?li:ai),e.fg=i,e.bg=n;}e.settings[0]&&e.settings[0].settings&&!e.settings[0].scope||e.settings.unshift({settings:{foreground:e.fg,background:e.bg}});var r=0;var s=new Map();function o(t){var _e$colorReplacements;if(s.has(t))return s.get(t);r+=1;var n="#".concat(r.toString(16).padStart(8,"0").toLowerCase());return(_e$colorReplacements=e.colorReplacements)!==null&&_e$colorReplacements!==void 0&&_e$colorReplacements["#".concat(n)]?o(t):(s.set(t,n),n);}e.settings=e.settings.map(function(t){var _t$settings,_t$settings2;var n=((_t$settings=t.settings)===null||_t$settings===void 0?void 0:_t$settings.foreground)&&!t.settings.foreground.startsWith("#"),i=((_t$settings2=t.settings)===null||_t$settings2===void 0?void 0:_t$settings2.background)&&!t.settings.background.startsWith("#");if(!n&&!i)return t;var r=_objectSpread(_objectSpread({},t),{},{settings:_objectSpread({},t.settings)});if(n){var _n45=o(t.settings.foreground);e.colorReplacements[_n45]=t.settings.foreground,r.settings.foreground=_n45;}if(i){var _n46=o(t.settings.background);e.colorReplacements[_n46]=t.settings.background,r.settings.background=_n46;}return r;});for(var _i23=0,_Object$keys2=Object.keys(e.colors||{});_i23<_Object$keys2.length;_i23++){var _e$colors$_t;var _t103=_Object$keys2[_i23];if(("editor.foreground"===_t103||"editor.background"===_t103||_t103.startsWith("terminal.ansi"))&&!((_e$colors$_t=e.colors[_t103])!==null&&_e$colors$_t!==void 0&&_e$colors$_t.startsWith("#"))){var _n47=o(e.colors[_t103]);e.colorReplacements[_n47]=e.colors[_t103],e.colors[_t103]=_n47;}}return Object.defineProperty(e,ci,{enumerable:!1,writable:!1,value:!0}),e;}function mi(_x6){return _mi.apply(this,arguments);}function _mi(){_mi=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee13(t){return _regeneratorRuntime().wrap(function _callee13$(_context14){while(1)switch(_context14.prev=_context14.next){case 0:_context14.t0=Array;_context14.t1=Set;_context14.next=4;return Promise.all(t.filter(function(t){return!vn(t);}).map(/*#__PURE__*/function(){var _ref25=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee12(t){return _regeneratorRuntime().wrap(function _callee12$(_context13){while(1)switch(_context13.prev=_context13.next){case 0:_context13.next=2;return An(t).then(function(t){return Array.isArray(t)?t:[t];});case 2:return _context13.abrupt("return",_context13.sent);case 3:case"end":return _context13.stop();}},_callee12);}));return function(_x10){return _ref25.apply(this,arguments);};}()));case 4:_context14.t2=_context14.sent.flat();_context14.t3=new _context14.t1(_context14.t2);return _context14.abrupt("return",_context14.t0.from.call(_context14.t0,_context14.t3));case 7:case"end":return _context14.stop();}},_callee13);}));return _mi.apply(this,arguments);}function pi(_x7){return _pi.apply(this,arguments);}function _pi(){_pi=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee15(t){return _regeneratorRuntime().wrap(function _callee15$(_context16){while(1)switch(_context16.prev=_context16.next){case 0:_context16.next=2;return Promise.all(t.map(/*#__PURE__*/function(){var _ref26=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee14(t){return _regeneratorRuntime().wrap(function _callee14$(_context15){while(1)switch(_context15.prev=_context15.next){case 0:if(!xn(t)){_context15.next=4;break;}_context15.t0=null;_context15.next=9;break;case 4:_context15.t1=ui;_context15.next=7;return An(t);case 7:_context15.t2=_context15.sent;_context15.t0=(0,_context15.t1)(_context15.t2);case 9:return _context15.abrupt("return",_context15.t0);case 10:case"end":return _context15.stop();}},_callee14);}));return function(_x11){return _ref26.apply(this,arguments);};}()));case 2:return _context16.abrupt("return",_context16.sent.filter(function(t){return!!t;}));case 3:case"end":return _context16.stop();}},_callee15);}));return _pi.apply(this,arguments);}function gi(){return _gi.apply(this,arguments);}function _gi(){_gi=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee18(){var t,_yield$Promise$all,_yield$Promise$all2,e,n,i,_args18=arguments;return _regeneratorRuntime().wrap(function _callee18$(_context19){while(1)switch(_context19.prev=_context19.next){case 0:t=_args18.length>0&&_args18[0]!==undefined?_args18[0]:{};t.loadWasm;_context19.next=4;return Promise.all([pi(t.themes||[]),mi(t.langs||[]),t.engine||A(t.loadWasm||void 0)]);case 4:_yield$Promise$all=_context19.sent;_yield$Promise$all2=_slicedToArray(_yield$Promise$all,3);e=_yield$Promise$all2[0];n=_yield$Promise$all2[1];i=_yield$Promise$all2[2];return _context19.abrupt("return",function(t){fi+=1,!1!==t.warnings&&fi>=10&&fi%10==0&&console.warn("[Shiki] ".concat(fi," instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call `highlighter.dispose()` to release unused instances."));var e=!1;if(!t.engine)throw new Pn("`engine` option is required for synchronous mode");var n=(t.langs||[]).flat(1),i=(t.themes||[]).flat(1).map(ui),r=new di(t.engine,n),s=new hi(r,i,n,t.langAlias);var o;function l(t){if("none"===t)return{bg:"",fg:"",name:"none",settings:[],type:"dark"};u();var e=s.getTheme(t);if(!e)throw new Pn("Theme `".concat(t,"` not found, you may need to load it first"));return e;}function a(){for(var _len7=arguments.length,t=new Array(_len7),_key7=0;_key7<_len7;_key7++){t[_key7]=arguments[_key7];}u(),s.loadLanguages(t.flat(1));}function c(){u();for(var _len8=arguments.length,t=new Array(_len8),_key8=0;_key8<_len8;_key8++){t[_key8]=arguments[_key8];}var _iterator41=_createForOfIteratorHelper(t.flat(1)),_step41;try{for(_iterator41.s();!(_step41=_iterator41.n()).done;){var _e57=_step41.value;s.loadTheme(_e57);}}catch(err){_iterator41.e(err);}finally{_iterator41.f();}}function u(){if(e)throw new Pn("Shiki instance has been disposed");}function m(){e||(e=!0,s.dispose(),fi-=1);}return _defineProperty({setTheme:function setTheme(t){u();var e=l(t);return o!==t&&(s.setTheme(e),o=t),{theme:e,colorMap:s.getColorMap()};},getTheme:l,getLanguage:function getLanguage(t){u();var e=s.getGrammar("string"==typeof t?t:t.name);if(!e)throw new Pn("Language `".concat(t,"` not found, you may need to load it first"));return e;},getLoadedThemes:function getLoadedThemes(){return u(),s.getLoadedThemes();},getLoadedLanguages:function getLoadedLanguages(){return u(),s.getLoadedLanguages();},loadLanguage:function(){var _loadLanguage=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee16(){var _len9,t,_key9,_args16=arguments;return _regeneratorRuntime().wrap(function _callee16$(_context17){while(1)switch(_context17.prev=_context17.next){case 0:for(_len9=_args16.length,t=new Array(_len9),_key9=0;_key9<_len9;_key9++){t[_key9]=_args16[_key9];}_context17.t0=a;_context17.next=4;return mi(t);case 4:_context17.t1=_context17.sent;return _context17.abrupt("return",(0,_context17.t0)(_context17.t1));case 6:case"end":return _context17.stop();}},_callee16);}));function loadLanguage(){return _loadLanguage.apply(this,arguments);}return loadLanguage;}(),loadLanguageSync:a,loadTheme:function(){var _loadTheme=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee17(){var _len10,t,_key10,_args17=arguments;return _regeneratorRuntime().wrap(function _callee17$(_context18){while(1)switch(_context18.prev=_context18.next){case 0:for(_len10=_args17.length,t=new Array(_len10),_key10=0;_key10<_len10;_key10++){t[_key10]=_args17[_key10];}u();_context18.t0=c;_context18.next=5;return pi(t);case 5:_context18.t1=_context18.sent;return _context18.abrupt("return",(0,_context18.t0)(_context18.t1));case 7:case"end":return _context18.stop();}},_callee17);}));function loadTheme(){return _loadTheme.apply(this,arguments);}return loadTheme;}(),loadThemeSync:c,dispose:m},Symbol.dispose,m);}(_objectSpread(_objectSpread({},t),{},{loadWasm:void 0,themes:e,langs:n,engine:i})));case 10:case"end":return _context19.stop();}},_callee18);}));return _gi.apply(this,arguments);}function ji(){return _ji.apply(this,arguments);}function _ji(){_ji=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee19(){var t,e,_args19=arguments;return _regeneratorRuntime().wrap(function _callee19$(_context20){while(1)switch(_context20.prev=_context20.next){case 0:t=_args19.length>0&&_args19[0]!==undefined?_args19[0]:{};_context20.next=3;return gi(t);case 3:e=_context20.sent;return _context20.abrupt("return",_objectSpread(_objectSpread({getLastGrammarState:function getLastGrammarState(){for(var _len11=arguments.length,t=new Array(_len11),_key11=0;_key11<_len11;_key11++){t[_key11]=arguments[_key11];}return function(){for(var _len12=arguments.length,t=new Array(_len12),_key12=0;_key12<_len12;_key12++){t[_key12]=arguments[_key12];}if(2===t.length)return En(t[1]);var e=t[0],n=t[1],_t$=t[2],i=_t$===void 0?{}:_t$,_i$lang=i.lang,r=_i$lang===void 0?"text":_i$lang,_i$theme=i.theme,s=_i$theme===void 0?e.getLoadedThemes()[0]:_i$theme;if(kn(r)||Sn(s))throw new m("Plain language does not have grammar state");if("ansi"===r)throw new m("ANSI language does not have grammar state");var _e$setTheme=e.setTheme(s),o=_e$setTheme.theme,l=_e$setTheme.colorMap,a=e.getLanguage(r);return new _n(Xn(n,a,o,l,i).stateStack,a.name,o.name);}.apply(void 0,[e].concat(t));},codeToTokensBase:function codeToTokensBase(t,n){return Kn(e,t,n);},codeToTokensWithThemes:function codeToTokensWithThemes(t,n){return ei(e,t,n);},codeToTokens:function codeToTokens(t,n){return ni(e,t,n);},codeToHast:function codeToHast(t,n){return ii(e,t,n);},codeToHtml:function codeToHtml(t,n){return ri(e,t,n);}},e),{},{getInternalContext:function getInternalContext(){return e;}}));case 5:case"end":return _context20.stop();}},_callee19);}));return _ji.apply(this,arguments);}function yi(t,e,n){var i,r,s;if(e)i=t,r=e,s=function s(){return A(n);};else{var _e53=t;i=_e53.langs,r=_e53.themes,s=_e53.engine;}return/*#__PURE__*/function(){var _ref23=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(t){var _t$themes,_t$langs,_t$engine;var e,n,o,l,a;return _regeneratorRuntime().wrap(function _callee4$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:n=function _n50(t){if(xn(t))return"none";if("string"==typeof t){var _e55=r[t];if(!_e55)throw new m("Theme `".concat(t,"` is not included in this bundle. You may want to load it from external source."));return _e55;}return t;};e=function _e56(t){if("string"==typeof t){if(vn(t))return[];var _e54=i[t];if(!_e54)throw new m("Language `".concat(t,"` is not included in this bundle. You may want to load it from external source."));return _e54;}return t;};o=((_t$themes=t.themes)!==null&&_t$themes!==void 0?_t$themes:[]).map(function(t){return n(t);});l=((_t$langs=t.langs)!==null&&_t$langs!==void 0?_t$langs:[]).map(function(t){return e(t);});_context5.next=6;return ji(_objectSpread(_objectSpread({engine:(_t$engine=t.engine)!==null&&_t$engine!==void 0?_t$engine:s()},t),{},{themes:o,langs:l}));case 6:a=_context5.sent;return _context5.abrupt("return",_objectSpread(_objectSpread({},a),{},{loadLanguage:function loadLanguage(){for(var _len5=arguments.length,t=new Array(_len5),_key5=0;_key5<_len5;_key5++){t[_key5]=arguments[_key5];}return a.loadLanguage.apply(a,_toConsumableArray(t.map(e)));},loadTheme:function loadTheme(){for(var _len6=arguments.length,t=new Array(_len6),_key6=0;_key6<_len6;_key6++){t[_key6]=arguments[_key6];}return a.loadTheme.apply(a,_toConsumableArray(t.map(n)));}}));case 8:case"end":return _context5.stop();}},_callee4);}));return function(_x8){return _ref23.apply(this,arguments);};}();}return{setters:[function(_tslib){t=_tslib.__decorate;},function(_litElement001CjsJs){e=_litElement001CjsJs.x;},function(_litDecoratorsJs){n=_litDecoratorsJs.property;i=_litDecoratorsJs.state;r=_litDecoratorsJs.customElement;},function(_nileHighlighterCssCjsJs){s=_nileHighlighterCssCjsJs.s;},function(_internalNileElementCjsJs){o=_internalNileElementCjsJs.N;},function(_lit){}],execute:function execute(){_excluded=["content","explanation","offset"];l=[{id:"abap",name:"ABAP","import":function _import(){return _context["import"]("../abap-e6d39538.cjs.js");}},{id:"actionscript-3",name:"ActionScript","import":function _import(){return _context["import"]("../actionscript-3-86fdc0d1.cjs.js");}},{id:"ada",name:"Ada","import":function _import(){return _context["import"]("../ada-c5585104.cjs.js");}},{id:"angular-html",name:"Angular HTML","import":function _import(){return _context["import"]("../angular-html-a7e93a5f.cjs.js").then(function(t){return t.f;});}},{id:"angular-ts",name:"Angular TypeScript","import":function _import(){return _context["import"]("../angular-ts-5f927069.cjs.js");}},{id:"apache",name:"Apache Conf","import":function _import(){return _context["import"]("../apache-8c723a80.cjs.js");}},{id:"apex",name:"Apex","import":function _import(){return _context["import"]("../apex-c1fa7afe.cjs.js");}},{id:"apl",name:"APL","import":function _import(){return _context["import"]("../apl-649c952a.cjs.js");}},{id:"applescript",name:"AppleScript","import":function _import(){return _context["import"]("../applescript-bdd5c54c.cjs.js");}},{id:"ara",name:"Ara","import":function _import(){return _context["import"]("../ara-955743a9.cjs.js");}},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],"import":function _import(){return _context["import"]("../asciidoc-d0d048c7.cjs.js");}},{id:"asm",name:"Assembly","import":function _import(){return _context["import"]("../asm-307a1fb8.cjs.js");}},{id:"astro",name:"Astro","import":function _import(){return _context["import"]("../astro-795e1648.cjs.js");}},{id:"awk",name:"AWK","import":function _import(){return _context["import"]("../awk-55ee1110.cjs.js");}},{id:"ballerina",name:"Ballerina","import":function _import(){return _context["import"]("../ballerina-476de225.cjs.js");}},{id:"bat",name:"Batch File",aliases:["batch"],"import":function _import(){return _context["import"]("../bat-8e274826.cjs.js");}},{id:"beancount",name:"Beancount","import":function _import(){return _context["import"]("../beancount-92d16d2b.cjs.js");}},{id:"berry",name:"Berry",aliases:["be"],"import":function _import(){return _context["import"]("../berry-09a1314b.cjs.js");}},{id:"bibtex",name:"BibTeX","import":function _import(){return _context["import"]("../bibtex-2ad2cf23.cjs.js");}},{id:"bicep",name:"Bicep","import":function _import(){return _context["import"]("../bicep-62e57cc7.cjs.js");}},{id:"blade",name:"Blade","import":function _import(){return _context["import"]("../blade-9e3e15d0.cjs.js");}},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],"import":function _import(){return _context["import"]("../bsl-53efa08d.cjs.js");}},{id:"c",name:"C","import":function _import(){return _context["import"]("../c-2d060856.cjs.js");}},{id:"cadence",name:"Cadence",aliases:["cdc"],"import":function _import(){return _context["import"]("../cadence-91f6e555.cjs.js");}},{id:"cairo",name:"Cairo","import":function _import(){return _context["import"]("../cairo-8245cd37.cjs.js");}},{id:"clarity",name:"Clarity","import":function _import(){return _context["import"]("../clarity-1615b9d4.cjs.js");}},{id:"clojure",name:"Clojure",aliases:["clj"],"import":function _import(){return _context["import"]("../clojure-bb7f85ce.cjs.js");}},{id:"cmake",name:"CMake","import":function _import(){return _context["import"]("../cmake-ef9020c2.cjs.js");}},{id:"cobol",name:"COBOL","import":function _import(){return _context["import"]("../cobol-4c41c477.cjs.js");}},{id:"codeowners",name:"CODEOWNERS","import":function _import(){return _context["import"]("../codeowners-e245640f.cjs.js");}},{id:"codeql",name:"CodeQL",aliases:["ql"],"import":function _import(){return _context["import"]("../codeql-c192035f.cjs.js");}},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],"import":function _import(){return _context["import"]("../coffee-e18883ea.cjs.js");}},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],"import":function _import(){return _context["import"]("../common-lisp-e3601446.cjs.js");}},{id:"coq",name:"Coq","import":function _import(){return _context["import"]("../coq-9ab86dab.cjs.js");}},{id:"cpp",name:"C++",aliases:["c++"],"import":function _import(){return _context["import"]("../cpp-81aa1654.cjs.js");}},{id:"crystal",name:"Crystal","import":function _import(){return _context["import"]("../crystal-ef4ff962.cjs.js");}},{id:"csharp",name:"C#",aliases:["c#","cs"],"import":function _import(){return _context["import"]("../csharp-475b50e6.cjs.js");}},{id:"css",name:"CSS","import":function _import(){return _context["import"]("../css-10d65ea0.cjs.js");}},{id:"csv",name:"CSV","import":function _import(){return _context["import"]("../csv-4de81c4f.cjs.js");}},{id:"cue",name:"CUE","import":function _import(){return _context["import"]("../cue-a71b5b3c.cjs.js");}},{id:"cypher",name:"Cypher",aliases:["cql"],"import":function _import(){return _context["import"]("../cypher-9a5260ef.cjs.js");}},{id:"d",name:"D","import":function _import(){return _context["import"]("../d-d1c4bd1b.cjs.js");}},{id:"dart",name:"Dart","import":function _import(){return _context["import"]("../dart-6d443d87.cjs.js");}},{id:"dax",name:"DAX","import":function _import(){return _context["import"]("../dax-0798a3c6.cjs.js");}},{id:"desktop",name:"Desktop","import":function _import(){return _context["import"]("../desktop-a8217439.cjs.js");}},{id:"diff",name:"Diff","import":function _import(){return _context["import"]("../diff-fbc7ce0a.cjs.js");}},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],"import":function _import(){return _context["import"]("../docker-00364840.cjs.js");}},{id:"dotenv",name:"dotEnv","import":function _import(){return _context["import"]("../dotenv-6b773cdd.cjs.js");}},{id:"dream-maker",name:"Dream Maker","import":function _import(){return _context["import"]("../dream-maker-903974b5.cjs.js");}},{id:"edge",name:"Edge","import":function _import(){return _context["import"]("../edge-c1c84fc2.cjs.js");}},{id:"elixir",name:"Elixir","import":function _import(){return _context["import"]("../elixir-f9a6be1d.cjs.js");}},{id:"elm",name:"Elm","import":function _import(){return _context["import"]("../elm-0807e5d4.cjs.js");}},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],"import":function _import(){return _context["import"]("../emacs-lisp-6cd6a7ea.cjs.js");}},{id:"erb",name:"ERB","import":function _import(){return _context["import"]("../erb-b5691aab.cjs.js");}},{id:"erlang",name:"Erlang",aliases:["erl"],"import":function _import(){return _context["import"]("../erlang-505c5056.cjs.js");}},{id:"fennel",name:"Fennel","import":function _import(){return _context["import"]("../fennel-e87fed56.cjs.js");}},{id:"fish",name:"Fish","import":function _import(){return _context["import"]("../fish-d436438e.cjs.js");}},{id:"fluent",name:"Fluent",aliases:["ftl"],"import":function _import(){return _context["import"]("../fluent-c07eac4f.cjs.js");}},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],"import":function _import(){return _context["import"]("../fortran-fixed-form-836a29c2.cjs.js");}},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],"import":function _import(){return _context["import"]("../fortran-free-form-19ab0abd.cjs.js");}},{id:"fsharp",name:"F#",aliases:["f#","fs"],"import":function _import(){return _context["import"]("../fsharp-3c1bd44f.cjs.js");}},{id:"gdresource",name:"GDResource","import":function _import(){return _context["import"]("../gdresource-7b2739db.cjs.js");}},{id:"gdscript",name:"GDScript","import":function _import(){return _context["import"]("../gdscript-090a80dc.cjs.js");}},{id:"gdshader",name:"GDShader","import":function _import(){return _context["import"]("../gdshader-9701e8f6.cjs.js");}},{id:"genie",name:"Genie","import":function _import(){return _context["import"]("../genie-795c632c.cjs.js");}},{id:"gherkin",name:"Gherkin","import":function _import(){return _context["import"]("../gherkin-e7d3b8bf.cjs.js");}},{id:"git-commit",name:"Git Commit Message","import":function _import(){return _context["import"]("../git-commit-e4bbc19e.cjs.js");}},{id:"git-rebase",name:"Git Rebase Message","import":function _import(){return _context["import"]("../git-rebase-44577a1e.cjs.js");}},{id:"gleam",name:"Gleam","import":function _import(){return _context["import"]("../gleam-8975e629.cjs.js");}},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],"import":function _import(){return _context["import"]("../glimmer-js-6832e29a.cjs.js");}},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],"import":function _import(){return _context["import"]("../glimmer-ts-b5b8eb28.cjs.js");}},{id:"glsl",name:"GLSL","import":function _import(){return _context["import"]("../glsl-38db2bca.cjs.js");}},{id:"gnuplot",name:"Gnuplot","import":function _import(){return _context["import"]("../gnuplot-ad18511d.cjs.js");}},{id:"go",name:"Go","import":function _import(){return _context["import"]("../go-53035773.cjs.js");}},{id:"graphql",name:"GraphQL",aliases:["gql"],"import":function _import(){return _context["import"]("../graphql-e745e574.cjs.js");}},{id:"groovy",name:"Groovy","import":function _import(){return _context["import"]("../groovy-1e8286c2.cjs.js");}},{id:"hack",name:"Hack","import":function _import(){return _context["import"]("../hack-6b62229d.cjs.js");}},{id:"haml",name:"Ruby Haml","import":function _import(){return _context["import"]("../haml-50c7c74a.cjs.js");}},{id:"handlebars",name:"Handlebars",aliases:["hbs"],"import":function _import(){return _context["import"]("../handlebars-b64c27d5.cjs.js");}},{id:"haskell",name:"Haskell",aliases:["hs"],"import":function _import(){return _context["import"]("../haskell-24f230a2.cjs.js");}},{id:"haxe",name:"Haxe","import":function _import(){return _context["import"]("../haxe-20268231.cjs.js");}},{id:"hcl",name:"HashiCorp HCL","import":function _import(){return _context["import"]("../hcl-d4b98f7f.cjs.js");}},{id:"hjson",name:"Hjson","import":function _import(){return _context["import"]("../hjson-c5e2bc0a.cjs.js");}},{id:"hlsl",name:"HLSL","import":function _import(){return _context["import"]("../hlsl-8f48c699.cjs.js");}},{id:"html",name:"HTML","import":function _import(){return _context["import"]("../html-35d28649.cjs.js");}},{id:"html-derivative",name:"HTML (Derivative)","import":function _import(){return _context["import"]("../html-derivative-7e53bf58.cjs.js");}},{id:"http",name:"HTTP","import":function _import(){return _context["import"]("../http-a8ff72a2.cjs.js");}},{id:"hxml",name:"HXML","import":function _import(){return _context["import"]("../hxml-e14c68ce.cjs.js");}},{id:"hy",name:"Hy","import":function _import(){return _context["import"]("../hy-1589dae5.cjs.js");}},{id:"imba",name:"Imba","import":function _import(){return _context["import"]("../imba-d9cc71eb.cjs.js");}},{id:"ini",name:"INI",aliases:["properties"],"import":function _import(){return _context["import"]("../ini-ad09f667.cjs.js");}},{id:"java",name:"Java","import":function _import(){return _context["import"]("../java-2f24b586.cjs.js");}},{id:"javascript",name:"JavaScript",aliases:["js"],"import":function _import(){return _context["import"]("../javascript-e8fd5514.cjs.js");}},{id:"jinja",name:"Jinja","import":function _import(){return _context["import"]("../jinja-531bcd2b.cjs.js");}},{id:"jison",name:"Jison","import":function _import(){return _context["import"]("../jison-51bc20b4.cjs.js");}},{id:"json",name:"JSON","import":function _import(){return _context["import"]("../json-18fd93ae.cjs.js");}},{id:"json5",name:"JSON5","import":function _import(){return _context["import"]("../json5-d6d496a7.cjs.js");}},{id:"jsonc",name:"JSON with Comments","import":function _import(){return _context["import"]("../jsonc-3a30fe49.cjs.js");}},{id:"jsonl",name:"JSON Lines","import":function _import(){return _context["import"]("../jsonl-0099d308.cjs.js");}},{id:"jsonnet",name:"Jsonnet","import":function _import(){return _context["import"]("../jsonnet-d499c1c0.cjs.js");}},{id:"jssm",name:"JSSM",aliases:["fsl"],"import":function _import(){return _context["import"]("../jssm-040874c2.cjs.js");}},{id:"jsx",name:"JSX","import":function _import(){return _context["import"]("../jsx-60031136.cjs.js");}},{id:"julia",name:"Julia",aliases:["jl"],"import":function _import(){return _context["import"]("../julia-8e62cca5.cjs.js");}},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],"import":function _import(){return _context["import"]("../kotlin-13a37220.cjs.js");}},{id:"kusto",name:"Kusto",aliases:["kql"],"import":function _import(){return _context["import"]("../kusto-dd2f9354.cjs.js");}},{id:"latex",name:"LaTeX","import":function _import(){return _context["import"]("../latex-628e6b4c.cjs.js");}},{id:"lean",name:"Lean 4",aliases:["lean4"],"import":function _import(){return _context["import"]("../lean-022d35a5.cjs.js");}},{id:"less",name:"Less","import":function _import(){return _context["import"]("../less-3f3e1b70.cjs.js");}},{id:"liquid",name:"Liquid","import":function _import(){return _context["import"]("../liquid-7d2c2efd.cjs.js");}},{id:"log",name:"Log file","import":function _import(){return _context["import"]("../log-db120166.cjs.js");}},{id:"logo",name:"Logo","import":function _import(){return _context["import"]("../logo-b8e970c1.cjs.js");}},{id:"lua",name:"Lua","import":function _import(){return _context["import"]("../lua-2e24172f.cjs.js");}},{id:"luau",name:"Luau","import":function _import(){return _context["import"]("../luau-98cb1103.cjs.js");}},{id:"make",name:"Makefile",aliases:["makefile"],"import":function _import(){return _context["import"]("../make-d46cc9b0.cjs.js");}},{id:"markdown",name:"Markdown",aliases:["md"],"import":function _import(){return _context["import"]("../markdown-689adede.cjs.js");}},{id:"marko",name:"Marko","import":function _import(){return _context["import"]("../marko-04618592.cjs.js");}},{id:"matlab",name:"MATLAB","import":function _import(){return _context["import"]("../matlab-e2c2ae0f.cjs.js");}},{id:"mdc",name:"MDC","import":function _import(){return _context["import"]("../mdc-04cf5395.cjs.js");}},{id:"mdx",name:"MDX","import":function _import(){return _context["import"]("../mdx-cfcec5a0.cjs.js");}},{id:"mermaid",name:"Mermaid",aliases:["mmd"],"import":function _import(){return _context["import"]("../mermaid-c03c4440.cjs.js");}},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],"import":function _import(){return _context["import"]("../mipsasm-bbb4ba7a.cjs.js");}},{id:"mojo",name:"Mojo","import":function _import(){return _context["import"]("../mojo-3903d67b.cjs.js");}},{id:"move",name:"Move","import":function _import(){return _context["import"]("../move-4f9f1021.cjs.js");}},{id:"narrat",name:"Narrat Language",aliases:["nar"],"import":function _import(){return _context["import"]("../narrat-222e74f7.cjs.js");}},{id:"nextflow",name:"Nextflow",aliases:["nf"],"import":function _import(){return _context["import"]("../nextflow-ddee4a1c.cjs.js");}},{id:"nginx",name:"Nginx","import":function _import(){return _context["import"]("../nginx-2381ebc8.cjs.js");}},{id:"nim",name:"Nim","import":function _import(){return _context["import"]("../nim-3e33acdd.cjs.js");}},{id:"nix",name:"Nix","import":function _import(){return _context["import"]("../nix-e2081fe5.cjs.js");}},{id:"nushell",name:"nushell",aliases:["nu"],"import":function _import(){return _context["import"]("../nushell-805549e9.cjs.js");}},{id:"objective-c",name:"Objective-C",aliases:["objc"],"import":function _import(){return _context["import"]("../objective-c-009b832a.cjs.js");}},{id:"objective-cpp",name:"Objective-C++","import":function _import(){return _context["import"]("../objective-cpp-71098514.cjs.js");}},{id:"ocaml",name:"OCaml","import":function _import(){return _context["import"]("../ocaml-8846040d.cjs.js");}},{id:"pascal",name:"Pascal","import":function _import(){return _context["import"]("../pascal-0e4492b8.cjs.js");}},{id:"perl",name:"Perl","import":function _import(){return _context["import"]("../perl-a5634193.cjs.js");}},{id:"php",name:"PHP","import":function _import(){return _context["import"]("../php-d5bab442.cjs.js");}},{id:"plsql",name:"PL/SQL","import":function _import(){return _context["import"]("../plsql-9c8ee386.cjs.js");}},{id:"po",name:"Gettext PO",aliases:["pot","potx"],"import":function _import(){return _context["import"]("../po-24d97211.cjs.js");}},{id:"polar",name:"Polar","import":function _import(){return _context["import"]("../polar-921304c6.cjs.js");}},{id:"postcss",name:"PostCSS","import":function _import(){return _context["import"]("../postcss-1b84fc0d.cjs.js");}},{id:"powerquery",name:"PowerQuery","import":function _import(){return _context["import"]("../powerquery-fb52d5d9.cjs.js");}},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],"import":function _import(){return _context["import"]("../powershell-5aefc8e3.cjs.js");}},{id:"prisma",name:"Prisma","import":function _import(){return _context["import"]("../prisma-9f564802.cjs.js");}},{id:"prolog",name:"Prolog","import":function _import(){return _context["import"]("../prolog-5e9ffbd6.cjs.js");}},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],"import":function _import(){return _context["import"]("../proto-c1a3bf62.cjs.js");}},{id:"pug",name:"Pug",aliases:["jade"],"import":function _import(){return _context["import"]("../pug-88eaea02.cjs.js");}},{id:"puppet",name:"Puppet","import":function _import(){return _context["import"]("../puppet-9ef0f18b.cjs.js");}},{id:"purescript",name:"PureScript","import":function _import(){return _context["import"]("../purescript-18e6882d.cjs.js");}},{id:"python",name:"Python",aliases:["py"],"import":function _import(){return _context["import"]("../python-1d2fd791.cjs.js");}},{id:"qml",name:"QML","import":function _import(){return _context["import"]("../qml-cf82e0f6.cjs.js");}},{id:"qmldir",name:"QML Directory","import":function _import(){return _context["import"]("../qmldir-de94058a.cjs.js");}},{id:"qss",name:"Qt Style Sheets","import":function _import(){return _context["import"]("../qss-b5aebc0c.cjs.js");}},{id:"r",name:"R","import":function _import(){return _context["import"]("../r-fdd0413b.cjs.js");}},{id:"racket",name:"Racket","import":function _import(){return _context["import"]("../racket-c068f3bc.cjs.js");}},{id:"raku",name:"Raku",aliases:["perl6"],"import":function _import(){return _context["import"]("../raku-b48b46a6.cjs.js");}},{id:"razor",name:"ASP.NET Razor","import":function _import(){return _context["import"]("../razor-f5e18e24.cjs.js");}},{id:"reg",name:"Windows Registry Script","import":function _import(){return _context["import"]("../reg-68d16dfb.cjs.js");}},{id:"regexp",name:"RegExp",aliases:["regex"],"import":function _import(){return _context["import"]("../regexp-44c586a9.cjs.js");}},{id:"rel",name:"Rel","import":function _import(){return _context["import"]("../rel-9900a7f6.cjs.js");}},{id:"riscv",name:"RISC-V","import":function _import(){return _context["import"]("../riscv-3ac788ca.cjs.js");}},{id:"rst",name:"reStructuredText","import":function _import(){return _context["import"]("../rst-966ef0cd.cjs.js");}},{id:"ruby",name:"Ruby",aliases:["rb"],"import":function _import(){return _context["import"]("../ruby-5385e2a7.cjs.js");}},{id:"rust",name:"Rust",aliases:["rs"],"import":function _import(){return _context["import"]("../rust-6fb94e35.cjs.js");}},{id:"sas",name:"SAS","import":function _import(){return _context["import"]("../sas-a513f9ca.cjs.js");}},{id:"sass",name:"Sass","import":function _import(){return _context["import"]("../sass-4220748f.cjs.js");}},{id:"scala",name:"Scala","import":function _import(){return _context["import"]("../scala-aa0de218.cjs.js");}},{id:"scheme",name:"Scheme","import":function _import(){return _context["import"]("../scheme-06289ec9.cjs.js");}},{id:"scss",name:"SCSS","import":function _import(){return _context["import"]("../scss-54e688d0.cjs.js");}},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],"import":function _import(){return _context["import"]("../sdbl-a2730c67.cjs.js");}},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],"import":function _import(){return _context["import"]("../shaderlab-853762f0.cjs.js");}},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],"import":function _import(){return _context["import"]("../shellscript-73ad6e44.cjs.js");}},{id:"shellsession",name:"Shell Session",aliases:["console"],"import":function _import(){return _context["import"]("../shellsession-654b28c9.cjs.js");}},{id:"smalltalk",name:"Smalltalk","import":function _import(){return _context["import"]("../smalltalk-ace12703.cjs.js");}},{id:"solidity",name:"Solidity","import":function _import(){return _context["import"]("../solidity-9d6e575f.cjs.js");}},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],"import":function _import(){return _context["import"]("../soy-d3591001.cjs.js");}},{id:"sparql",name:"SPARQL","import":function _import(){return _context["import"]("../sparql-8ed73595.cjs.js");}},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],"import":function _import(){return _context["import"]("../splunk-ef1cc8d4.cjs.js");}},{id:"sql",name:"SQL","import":function _import(){return _context["import"]("../sql-86ed6f13.cjs.js");}},{id:"ssh-config",name:"SSH Config","import":function _import(){return _context["import"]("../ssh-config-30310dc2.cjs.js");}},{id:"stata",name:"Stata","import":function _import(){return _context["import"]("../stata-fba958a6.cjs.js");}},{id:"stylus",name:"Stylus",aliases:["styl"],"import":function _import(){return _context["import"]("../stylus-e8eef6dc.cjs.js");}},{id:"svelte",name:"Svelte","import":function _import(){return _context["import"]("../svelte-5d540b6f.cjs.js");}},{id:"swift",name:"Swift","import":function _import(){return _context["import"]("../swift-c0a720cf.cjs.js");}},{id:"system-verilog",name:"SystemVerilog","import":function _import(){return _context["import"]("../system-verilog-471aafe2.cjs.js");}},{id:"systemd",name:"Systemd Units","import":function _import(){return _context["import"]("../systemd-4d840026.cjs.js");}},{id:"talonscript",name:"TalonScript",aliases:["talon"],"import":function _import(){return _context["import"]("../talonscript-8f04619f.cjs.js");}},{id:"tasl",name:"Tasl","import":function _import(){return _context["import"]("../tasl-dd3832d4.cjs.js");}},{id:"tcl",name:"Tcl","import":function _import(){return _context["import"]("../tcl-d383bf5e.cjs.js");}},{id:"templ",name:"Templ","import":function _import(){return _context["import"]("../templ-cfbbef67.cjs.js");}},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],"import":function _import(){return _context["import"]("../terraform-6fb6f21f.cjs.js");}},{id:"tex",name:"TeX","import":function _import(){return _context["import"]("../tex-0eda14ad.cjs.js");}},{id:"toml",name:"TOML","import":function _import(){return _context["import"]("../toml-edb0ff22.cjs.js");}},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],"import":function _import(){return _context["import"]("../ts-tags-d38c362f.cjs.js");}},{id:"tsv",name:"TSV","import":function _import(){return _context["import"]("../tsv-b349f4f0.cjs.js");}},{id:"tsx",name:"TSX","import":function _import(){return _context["import"]("../tsx-6a03ea0b.cjs.js");}},{id:"turtle",name:"Turtle","import":function _import(){return _context["import"]("../turtle-d9b78f78.cjs.js");}},{id:"twig",name:"Twig","import":function _import(){return _context["import"]("../twig-e24552b5.cjs.js");}},{id:"typescript",name:"TypeScript",aliases:["ts"],"import":function _import(){return _context["import"]("../typescript-7588ff0c.cjs.js");}},{id:"typespec",name:"TypeSpec",aliases:["tsp"],"import":function _import(){return _context["import"]("../typespec-7248274e.cjs.js");}},{id:"typst",name:"Typst",aliases:["typ"],"import":function _import(){return _context["import"]("../typst-a57a6d8b.cjs.js");}},{id:"v",name:"V","import":function _import(){return _context["import"]("../v-387e67b5.cjs.js");}},{id:"vala",name:"Vala","import":function _import(){return _context["import"]("../vala-e2481469.cjs.js");}},{id:"vb",name:"Visual Basic",aliases:["cmd"],"import":function _import(){return _context["import"]("../vb-2847a701.cjs.js");}},{id:"verilog",name:"Verilog","import":function _import(){return _context["import"]("../verilog-a78444d1.cjs.js");}},{id:"vhdl",name:"VHDL","import":function _import(){return _context["import"]("../vhdl-9516dcfa.cjs.js");}},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],"import":function _import(){return _context["import"]("../viml-66d0a14d.cjs.js");}},{id:"vue",name:"Vue","import":function _import(){return _context["import"]("../vue-57992d1c.cjs.js");}},{id:"vue-html",name:"Vue HTML","import":function _import(){return _context["import"]("../vue-html-f9d23379.cjs.js");}},{id:"vyper",name:"Vyper",aliases:["vy"],"import":function _import(){return _context["import"]("../vyper-796df9fb.cjs.js");}},{id:"wasm",name:"WebAssembly","import":function _import(){return _context["import"]("../wasm-495cfa3b.cjs.js");}},{id:"wenyan",name:"Wenyan",aliases:["文言"],"import":function _import(){return _context["import"]("../wenyan-e2731fa1.cjs.js");}},{id:"wgsl",name:"WGSL","import":function _import(){return _context["import"]("../wgsl-6445afc9.cjs.js");}},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],"import":function _import(){return _context["import"]("../wikitext-6acdb3c2.cjs.js");}},{id:"wolfram",name:"Wolfram",aliases:["wl"],"import":function _import(){return _context["import"]("../wolfram-7911b09a.cjs.js");}},{id:"xml",name:"XML","import":function _import(){return _context["import"]("../xml-f6634314.cjs.js");}},{id:"xsl",name:"XSL","import":function _import(){return _context["import"]("../xsl-89d7edf0.cjs.js");}},{id:"yaml",name:"YAML",aliases:["yml"],"import":function _import(){return _context["import"]("../yaml-d13758b5.cjs.js");}},{id:"zenscript",name:"ZenScript","import":function _import(){return _context["import"]("../zenscript-dabf05e2.cjs.js");}},{id:"zig",name:"Zig","import":function _import(){return _context["import"]("../zig-182218b6.cjs.js");}}],a=_objectSpread(_objectSpread({},Object.fromEntries(l.map(function(t){return[t.id,t["import"]];}))),Object.fromEntries(l.flatMap(function(t){var _t$aliases;return((_t$aliases=t.aliases)===null||_t$aliases===void 0?void 0:_t$aliases.map(function(e){return[e,t["import"]];}))||[];}))),c=[{id:"andromeeda",displayName:"Andromeeda",type:"dark","import":function _import(){return _context["import"]("../andromeeda-e75bca18.cjs.js");}},{id:"aurora-x",displayName:"Aurora X",type:"dark","import":function _import(){return _context["import"]("../aurora-x-38d2b9f7.cjs.js");}},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark","import":function _import(){return _context["import"]("../ayu-dark-67b69907.cjs.js");}},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark","import":function _import(){return _context["import"]("../catppuccin-frappe-52a52bb1.cjs.js");}},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light","import":function _import(){return _context["import"]("../catppuccin-latte-d8a0f6a8.cjs.js");}},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark","import":function _import(){return _context["import"]("../catppuccin-macchiato-19a7795e.cjs.js");}},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark","import":function _import(){return _context["import"]("../catppuccin-mocha-9f9ec5f6.cjs.js");}},{id:"dark-plus",displayName:"Dark Plus",type:"dark","import":function _import(){return _context["import"]("../dark-plus-c4bf2744.cjs.js");}},{id:"dracula",displayName:"Dracula Theme",type:"dark","import":function _import(){return _context["import"]("../dracula-194d4cbb.cjs.js");}},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark","import":function _import(){return _context["import"]("../dracula-soft-72e9ff7e.cjs.js");}},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark","import":function _import(){return _context["import"]("../everforest-dark-c1192a3d.cjs.js");}},{id:"everforest-light",displayName:"Everforest Light",type:"light","import":function _import(){return _context["import"]("../everforest-light-479f9dab.cjs.js");}},{id:"github-dark",displayName:"GitHub Dark",type:"dark","import":function _import(){return _context["import"]("../github-dark-f22dbc3f.cjs.js");}},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark","import":function _import(){return _context["import"]("../github-dark-default-450c7c01.cjs.js");}},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark","import":function _import(){return _context["import"]("../github-dark-dimmed-ef1406bd.cjs.js");}},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark","import":function _import(){return _context["import"]("../github-dark-high-contrast-60f6edfa.cjs.js");}},{id:"github-light",displayName:"GitHub Light",type:"light","import":function _import(){return _context["import"]("../github-light-9fcd2de8.cjs.js");}},{id:"github-light-default",displayName:"GitHub Light Default",type:"light","import":function _import(){return _context["import"]("../github-light-default-cf60a983.cjs.js");}},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light","import":function _import(){return _context["import"]("../github-light-high-contrast-ab424680.cjs.js");}},{id:"houston",displayName:"Houston",type:"dark","import":function _import(){return _context["import"]("../houston-c5fd415a.cjs.js");}},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark","import":function _import(){return _context["import"]("../kanagawa-dragon-578047a3.cjs.js");}},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light","import":function _import(){return _context["import"]("../kanagawa-lotus-02d65cee.cjs.js");}},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark","import":function _import(){return _context["import"]("../kanagawa-wave-15ed6072.cjs.js");}},{id:"laserwave",displayName:"LaserWave",type:"dark","import":function _import(){return _context["import"]("../laserwave-00235336.cjs.js");}},{id:"light-plus",displayName:"Light Plus",type:"light","import":function _import(){return _context["import"]("../light-plus-ddb182bb.cjs.js");}},{id:"material-theme",displayName:"Material Theme",type:"dark","import":function _import(){return _context["import"]("../material-theme-6bd1a4ce.cjs.js");}},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark","import":function _import(){return _context["import"]("../material-theme-darker-ad11633a.cjs.js");}},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light","import":function _import(){return _context["import"]("../material-theme-lighter-d07fe9fc.cjs.js");}},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark","import":function _import(){return _context["import"]("../material-theme-ocean-6d08ece3.cjs.js");}},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark","import":function _import(){return _context["import"]("../material-theme-palenight-44924eac.cjs.js");}},{id:"min-dark",displayName:"Min Dark",type:"dark","import":function _import(){return _context["import"]("../min-dark-b1451b85.cjs.js");}},{id:"min-light",displayName:"Min Light",type:"light","import":function _import(){return _context["import"]("../min-light-415eaf98.cjs.js");}},{id:"monokai",displayName:"Monokai",type:"dark","import":function _import(){return _context["import"]("../monokai-c21b0aa1.cjs.js");}},{id:"night-owl",displayName:"Night Owl",type:"dark","import":function _import(){return _context["import"]("../night-owl-406f7a69.cjs.js");}},{id:"nord",displayName:"Nord",type:"dark","import":function _import(){return _context["import"]("../nord-da5137c0.cjs.js");}},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark","import":function _import(){return _context["import"]("../one-dark-pro-3bcc58f7.cjs.js");}},{id:"one-light",displayName:"One Light",type:"light","import":function _import(){return _context["import"]("../one-light-a7b00541.cjs.js");}},{id:"plastic",displayName:"Plastic",type:"dark","import":function _import(){return _context["import"]("../plastic-bf752d9d.cjs.js");}},{id:"poimandres",displayName:"Poimandres",type:"dark","import":function _import(){return _context["import"]("../poimandres-14854837.cjs.js");}},{id:"red",displayName:"Red",type:"dark","import":function _import(){return _context["import"]("../red-d4f18aeb.cjs.js");}},{id:"rose-pine",displayName:"Rosé Pine",type:"dark","import":function _import(){return _context["import"]("../rose-pine-28d31893.cjs.js");}},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light","import":function _import(){return _context["import"]("../rose-pine-dawn-cc878631.cjs.js");}},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark","import":function _import(){return _context["import"]("../rose-pine-moon-ab197653.cjs.js");}},{id:"slack-dark",displayName:"Slack Dark",type:"dark","import":function _import(){return _context["import"]("../slack-dark-9441e826.cjs.js");}},{id:"slack-ochin",displayName:"Slack Ochin",type:"light","import":function _import(){return _context["import"]("../slack-ochin-6028b180.cjs.js");}},{id:"snazzy-light",displayName:"Snazzy Light",type:"light","import":function _import(){return _context["import"]("../snazzy-light-b71cee57.cjs.js");}},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark","import":function _import(){return _context["import"]("../solarized-dark-d963acfe.cjs.js");}},{id:"solarized-light",displayName:"Solarized Light",type:"light","import":function _import(){return _context["import"]("../solarized-light-1b49343e.cjs.js");}},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark","import":function _import(){return _context["import"]("../synthwave-84-d04f7cff.cjs.js");}},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark","import":function _import(){return _context["import"]("../tokyo-night-041a0b32.cjs.js");}},{id:"vesper",displayName:"Vesper",type:"dark","import":function _import(){return _context["import"]("../vesper-e992e238.cjs.js");}},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark","import":function _import(){return _context["import"]("../vitesse-black-5bf0580d.cjs.js");}},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark","import":function _import(){return _context["import"]("../vitesse-dark-05d3e2a3.cjs.js");}},{id:"vitesse-light",displayName:"Vitesse Light",type:"light","import":function _import(){return _context["import"]("../vitesse-light-357ec0ca.cjs.js");}}],u=Object.fromEntries(c.map(function(t){return[t.id,t["import"]];}));m=/*#__PURE__*/function(_Error){function m(t){var _this;_classCallCheck(this,m);_this=_callSuper(this,m,[t]),_this.name="ShikiError";return _this;}_inherits(m,_Error);return _createClass(m);}(/*#__PURE__*/_wrapNativeSuper(Error)),p=/*#__PURE__*/function(_Error2){function p(t){var _this2;_classCallCheck(this,p);_this2=_callSuper(this,p,[t]),_this2.name="ShikiError";return _this2;}_inherits(p,_Error2);return _createClass(p);}(/*#__PURE__*/_wrapNativeSuper(Error));d=function d(t,e){return t+(e-t%e)%e;};g=Object.defineProperty,j=function j(t,e,n){return function(t,e,n){e in t?g(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;}(t,"symbol"!=_typeof(e)?e+"":e,n),n;};y=null;b=/*#__PURE__*/function(){function b(t){_classCallCheck(this,b);j(this,"utf16Length"),j(this,"utf8Length"),j(this,"utf16Value"),j(this,"utf8Value"),j(this,"utf16OffsetToUtf8"),j(this,"utf8OffsetToUtf16");var e=t.length,n=b._utf8ByteLength(t),i=n!==e,r=i?new Uint32Array(e+1):null;i&&(r[e]=n);var s=i?new Uint32Array(n+1):null;i&&(s[n]=e);var o=new Uint8Array(n);var l=0;for(var _n2=0;_n2<e;_n2++){var _a=t.charCodeAt(_n2);var _c=_a,_u=!1;if(_a>=55296&&_a<=56319&&_n2+1<e){var _e2=t.charCodeAt(_n2+1);_e2>=56320&&_e2<=57343&&(_c=65536+(_a-55296<<10)|_e2-56320,_u=!0);}i&&(r[_n2]=l,_u&&(r[_n2+1]=l),_c<=127?s[l+0]=_n2:_c<=2047?(s[l+0]=_n2,s[l+1]=_n2):_c<=65535?(s[l+0]=_n2,s[l+1]=_n2,s[l+2]=_n2):(s[l+0]=_n2,s[l+1]=_n2,s[l+2]=_n2,s[l+3]=_n2)),_c<=127?o[l++]=_c:_c<=2047?(o[l++]=192|(1984&_c)>>>6,o[l++]=128|(63&_c)>>>0):_c<=65535?(o[l++]=224|(61440&_c)>>>12,o[l++]=128|(4032&_c)>>>6,o[l++]=128|(63&_c)>>>0):(o[l++]=240|(1835008&_c)>>>18,o[l++]=128|(258048&_c)>>>12,o[l++]=128|(4032&_c)>>>6,o[l++]=128|(63&_c)>>>0),_u&&_n2++;}this.utf16Length=e,this.utf8Length=n,this.utf16Value=t,this.utf8Value=o,this.utf16OffsetToUtf8=r,this.utf8OffsetToUtf16=s;}return _createClass(b,[{key:"createString",value:function createString(t){var e=t.omalloc(this.utf8Length);return t.HEAPU8.set(this.utf8Value,e),e;}}],[{key:"_utf8ByteLength",value:function _utf8ByteLength(t){var e=0;for(var _n3=0,_i=t.length;_n3<_i;_n3++){var _r=t.charCodeAt(_n3);var _s=_r,_o=!1;if(_r>=55296&&_r<=56319&&_n3+1<_i){var _e3=t.charCodeAt(_n3+1);_e3>=56320&&_e3<=57343&&(_s=65536+(_r-55296<<10)|_e3-56320,_o=!0);}e+=_s<=127?1:_s<=2047?2:_s<=65535?3:4,_o&&_n3++;}return e;}}]);}();_w=/*#__PURE__*/function(){function w(t){_classCallCheck(this,w);if(j(this,"id",++_w.LAST_ID),j(this,"_onigBinding"),j(this,"content"),j(this,"utf16Length"),j(this,"utf8Length"),j(this,"utf16OffsetToUtf8"),j(this,"utf8OffsetToUtf16"),j(this,"ptr"),!y)throw new p("Must invoke loadWasm first.");this._onigBinding=y,this.content=t;var e=new b(t);this.utf16Length=e.utf16Length,this.utf8Length=e.utf8Length,this.utf16OffsetToUtf8=e.utf16OffsetToUtf8,this.utf8OffsetToUtf16=e.utf8OffsetToUtf16,this.utf8Length<1e4&&!_w._sharedPtrInUse?(_w._sharedPtr||(_w._sharedPtr=y.omalloc(1e4)),_w._sharedPtrInUse=!0,y.HEAPU8.set(e.utf8Value,_w._sharedPtr),this.ptr=_w._sharedPtr):this.ptr=e.createString(y);}return _createClass(w,[{key:"convertUtf8OffsetToUtf16",value:function convertUtf8OffsetToUtf16(t){return this.utf8OffsetToUtf16?t<0?0:t>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[t]:t;}},{key:"convertUtf16OffsetToUtf8",value:function convertUtf16OffsetToUtf8(t){return this.utf16OffsetToUtf8?t<0?0:t>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[t]:t;}},{key:"dispose",value:function dispose(){this.ptr===_w._sharedPtr?_w._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr);}}]);}();v=_w;j(v,"LAST_ID",0),j(v,"_sharedPtr",0),j(v,"_sharedPtrInUse",!1);S=/*#__PURE__*/function(){function S(t){_classCallCheck(this,S);if(j(this,"_onigBinding"),j(this,"_ptr"),!y)throw new p("Must invoke loadWasm first.");var e=[],n=[];for(var _i2=0,_r2=t.length;_i2<_r2;_i2++){var _r3=new b(t[_i2]);e[_i2]=_r3.createString(y),n[_i2]=_r3.utf8Length;}var i=y.omalloc(4*t.length);y.HEAPU32.set(e,i/4);var r=y.omalloc(4*t.length);y.HEAPU32.set(n,r/4);var s=y.createOnigScanner(i,r,t.length);for(var _n4=0,_i3=t.length;_n4<_i3;_n4++)y.ofree(e[_n4]);y.ofree(r),y.ofree(i),0===s&&function(t){throw new p(t.UTF8ToString(t.getLastOnigError()));}(y),this._onigBinding=y,this._ptr=s;}return _createClass(S,[{key:"dispose",value:function dispose(){this._onigBinding.freeOnigScanner(this._ptr);}},{key:"findNextMatchSync",value:function findNextMatchSync(t,e,n){var i=0;if("number"==typeof n&&(i=n),"string"==typeof t){t=new v(t);var _n5=this._findNextMatchSync(t,e,!1,i);return t.dispose(),_n5;}return this._findNextMatchSync(t,e,!1,i);}},{key:"_findNextMatchSync",value:function _findNextMatchSync(t,e,n,i){var r=this._onigBinding,s=r.findNextOnigScannerMatch(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(e),i);if(0===s)return null;var o=r.HEAPU32;var l=s/4;var a=o[l++],c=o[l++],u=[];for(var _e4=0;_e4<c;_e4++){var _n6=t.convertUtf8OffsetToUtf16(o[l++]),_i4=t.convertUtf8OffsetToUtf16(o[l++]);u[_e4]={start:_n6,end:_i4,length:_i4-_n6};}return{index:a,captureIndices:u};}}]);}();O=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,P=/*#__PURE__*/function(){function P(){_classCallCheck(this,P);}return _createClass(P,null,[{key:"hasCaptures",value:function hasCaptures(t){return null!==t&&(O.lastIndex=0,O.test(t));}},{key:"replaceCaptures",value:function replaceCaptures(t,e,n){return t.replace(O,function(t,i,r,s){var o=n[parseInt(i||r,10)];if(!o)return t;{var _t2=e.substring(o.start,o.end);for(;"."===_t2[0];)_t2=_t2.substring(1);switch(s){case"downcase":return _t2.toLowerCase();case"upcase":return _t2.toUpperCase();default:return _t2;}}});}}]);}();R=/*#__PURE__*/function(){function R(t){_classCallCheck(this,R);_defineProperty(this,"cache",new Map());this.fn=t;}return _createClass(R,[{key:"get",value:function get(t){if(this.cache.has(t))return this.cache.get(t);var e=this.fn(t);return this.cache.set(t,e),e;}}]);}(),_$=/*#__PURE__*/function(){function $(_t3,e,n){var _this3=this;_classCallCheck(this,$);_defineProperty(this,"_cachedMatchRoot",new R(function(t){return _this3._root.match(t);}));this._colorMap=_t3,this._defaults=e,this._root=n;}return _createClass($,[{key:"getColorMap",value:function getColorMap(){return this._colorMap.getColorMap();}},{key:"getDefaults",value:function getDefaults(){return this._defaults;}},{key:"match",value:function match(t){if(null===t)return this._defaults;var e=t.scopeName,n=this._cachedMatchRoot.get(e).find(function(e){return function(t,e){if(0===e.length)return!0;for(var _n11=0;_n11<e.length;_n11++){var i=e[_n11],_r4=!1;if(">"===i){if(_n11===e.length-1)return!1;i=e[++_n11],_r4=!0;}for(;t&&!I(t.scopeName,i);){if(_r4)return!1;t=t.parent;}if(!t)return!1;t=t.parent;}return!0;}(t.parent,e.parentScopes);});return n?new G(n.fontStyle,n.foreground,n.background):null;}}],[{key:"createFromRawTheme",value:function createFromRawTheme(t,e){return this.createFromParsedTheme(function(t){if(!t)return[];if(!t.settings||!Array.isArray(t.settings))return[];var e=t.settings,n=[],i=0;for(var _t4=0,_r5=e.length;_t4<_r5;_t4++){var _r6=void 0,_s2=e[_t4];if(!_s2.settings)continue;if("string"==typeof _s2.scope){var _t5=_s2.scope;_t5=_t5.replace(/^[,]+/,""),_t5=_t5.replace(/[,]+$/,""),_r6=_t5.split(",");}else _r6=Array.isArray(_s2.scope)?_s2.scope:[""];var _o2=-1;if("string"==typeof _s2.settings.fontStyle){_o2=0;var _t6=_s2.settings.fontStyle.split(" ");for(var _e5=0,_n12=_t6.length;_e5<_n12;_e5++){switch(_t6[_e5]){case"italic":_o2|=1;break;case"bold":_o2|=2;break;case"underline":_o2|=4;break;case"strikethrough":_o2|=8;}}}var _l=null;"string"==typeof _s2.settings.foreground&&E(_s2.settings.foreground)&&(_l=_s2.settings.foreground);var _a2=null;"string"==typeof _s2.settings.background&&E(_s2.settings.background)&&(_a2=_s2.settings.background);for(var _e6=0,_s3=_r6.length;_e6<_s3;_e6++){var _s4=_r6[_e6].trim().split(" "),_c2=_s4[_s4.length-1],_u2=null;_s4.length>1&&(_u2=_s4.slice(0,_s4.length-1),_u2.reverse()),n[i++]=new q(_c2,_u2,_t4,_o2,_l,_a2);}}return n;}(t),e);}},{key:"createFromParsedTheme",value:function createFromParsedTheme(t,e){return function(t,e){t.sort(function(t,e){var n=N(t.scope,e.scope);return 0!==n?n:(n=D(t.parentScopes,e.parentScopes),0!==n?n:t.index-e.index);});var n=0,i="#000000",r="#ffffff";for(;t.length>=1&&""===t[0].scope;){var _e7=t.shift();-1!==_e7.fontStyle&&(n=_e7.fontStyle),null!==_e7.foreground&&(i=_e7.foreground),null!==_e7.background&&(r=_e7.background);}var s=new F(e),o=new G(n,s.getId(i),s.getId(r)),l=new W(new U(0,null,-1,0,0),[]);for(var _e8=0,_n13=t.length;_e8<_n13;_e8++){var _n14=t[_e8];l.insert(0,_n14.scope,_n14.parentScopes,_n14.fontStyle,s.getId(_n14.foreground),s.getId(_n14.background));}return new _$(s,o,l);}(t,e);}}]);}(),B=/*#__PURE__*/function(){function t(_t7,e){_classCallCheck(this,t);this.parent=_t7,this.scopeName=e;}return _createClass(t,[{key:"push",value:function push(e){return new t(this,e);}},{key:"getSegments",value:function getSegments(){var _t8=this;var e=[];for(;_t8;)e.push(_t8.scopeName),_t8=_t8.parent;return e.reverse(),e;}},{key:"toString",value:function toString(){return this.getSegments().join(" ");}},{key:"extends",value:function _extends(_t9){return this===_t9||null!==this.parent&&this.parent["extends"](_t9);}},{key:"getExtensionIfDefined",value:function getExtensionIfDefined(_t10){var e=[];var n=this;for(;n&&n!==_t10;)e.push(n.scopeName),n=n.parent;return n===_t10?e.reverse():void 0;}}],[{key:"push",value:function push(e,n){var _iterator=_createForOfIteratorHelper(n),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var i=_step.value;e=new t(e,i);}}catch(err){_iterator.e(err);}finally{_iterator.f();}return e;}},{key:"from",value:function from(){var n=null;for(var i=0;i<arguments.length;i++)n=new t(n,i<0||arguments.length<=i?undefined:arguments[i]);return n;}}]);}();G=/*#__PURE__*/_createClass(function G(t,e,n){_classCallCheck(this,G);this.fontStyle=t,this.foregroundId=e,this.backgroundId=n;});q=/*#__PURE__*/_createClass(function q(t,e,n,i,r,s){_classCallCheck(this,q);this.scope=t,this.parentScopes=e,this.index=n,this.fontStyle=i,this.foreground=r,this.background=s;}),z=function(t){return t[t.NotSet=-1]="NotSet",t[t.None=0]="None",t[t.Italic=1]="Italic",t[t.Bold=2]="Bold",t[t.Underline=4]="Underline",t[t.Strikethrough=8]="Strikethrough",t;}(z||{});F=/*#__PURE__*/function(){function F(t){_classCallCheck(this,F);_defineProperty(this,"_isFrozen",void 0);_defineProperty(this,"_lastColorId",void 0);_defineProperty(this,"_id2color",void 0);_defineProperty(this,"_color2id",void 0);if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(t)){this._isFrozen=!0;for(var _e9=0,_n15=t.length;_e9<_n15;_e9++)this._color2id[t[_e9]]=_e9,this._id2color[_e9]=t[_e9];}else this._isFrozen=!1;}return _createClass(F,[{key:"getId",value:function getId(t){if(null===t)return 0;t=t.toUpperCase();var e=this._color2id[t];if(e)return e;if(this._isFrozen)throw new Error("Missing color in color map - ".concat(t));return e=++this._lastColorId,this._color2id[t]=e,this._id2color[e]=t,e;}},{key:"getColorMap",value:function getColorMap(){return this._id2color.slice(0);}}]);}(),H=Object.freeze([]),U=/*#__PURE__*/function(){function t(_t12,e,n,i,r){_classCallCheck(this,t);_defineProperty(this,"scopeDepth",void 0);_defineProperty(this,"parentScopes",void 0);_defineProperty(this,"fontStyle",void 0);_defineProperty(this,"foreground",void 0);_defineProperty(this,"background",void 0);this.scopeDepth=_t12,this.parentScopes=e||H,this.fontStyle=n,this.foreground=i,this.background=r;}return _createClass(t,[{key:"clone",value:function clone(){return new t(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background);}},{key:"acceptOverwrite",value:function acceptOverwrite(_t14,e,n,i){this.scopeDepth>_t14?console.log("how did this happen?"):this.scopeDepth=_t14,-1!==e&&(this.fontStyle=e),0!==n&&(this.foreground=n),0!==i&&(this.background=i);}}],[{key:"cloneArr",value:function cloneArr(_t13){var e=[];for(var _n16=0,i=_t13.length;_n16<i;_n16++)e[_n16]=_t13[_n16].clone();return e;}}]);}(),W=/*#__PURE__*/function(){function t(_t16){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[];var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};_classCallCheck(this,t);_defineProperty(this,"_rulesWithParentScopes",void 0);this._mainRule=_t16,this._children=n,this._rulesWithParentScopes=e;}return _createClass(t,[{key:"match",value:function match(e){if(""!==e){var _t18,_n17,i=e.indexOf(".");if(-1===i?(_t18=e,_n17=""):(_t18=e.substring(0,i),_n17=e.substring(i+1)),this._children.hasOwnProperty(_t18))return this._children[_t18].match(_n17);}var n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(t._cmpBySpecificity),n;}},{key:"insert",value:function insert(e,n,i,r,s,o){if(""===n)return void this._doInsertHere(e,i,r,s,o);var l,a,c,u=n.indexOf(".");-1===u?(l=n,a=""):(l=n.substring(0,u),a=n.substring(u+1)),this._children.hasOwnProperty(l)?c=this._children[l]:(c=new t(this._mainRule.clone(),U.cloneArr(this._rulesWithParentScopes)),this._children[l]=c),c.insert(e+1,a,i,r,s,o);}},{key:"_doInsertHere",value:function _doInsertHere(_t19,e,n,i,r){if(null!==e){for(var _s5=0,_o3=this._rulesWithParentScopes.length;_s5<_o3;_s5++){var _o4=this._rulesWithParentScopes[_s5];if(0===D(_o4.parentScopes,e))return void _o4.acceptOverwrite(_t19,n,i,r);}-1===n&&(n=this._mainRule.fontStyle),0===i&&(i=this._mainRule.foreground),0===r&&(r=this._mainRule.background),this._rulesWithParentScopes.push(new U(_t19,e,n,i,r));}else this._mainRule.acceptOverwrite(_t19,n,i,r);}}],[{key:"_cmpBySpecificity",value:function _cmpBySpecificity(_t17,e){if(_t17.scopeDepth!==e.scopeDepth)return e.scopeDepth-_t17.scopeDepth;var n=0,i=0;for(;">"===_t17.parentScopes[n]&&n++,">"===e.parentScopes[i]&&i++,!(n>=_t17.parentScopes.length||i>=e.parentScopes.length);){var _r7=e.parentScopes[i].length-_t17.parentScopes[n].length;if(0!==_r7)return _r7;n++,i++;}return e.parentScopes.length-_t17.parentScopes.length;}}]);}(),V=/*#__PURE__*/function(){function t(){_classCallCheck(this,t);}return _createClass(t,null,[{key:"toBinaryStr",value:function toBinaryStr(_t20){return _t20.toString(2).padStart(32,"0");}},{key:"print",value:function print(e){var n=t.getLanguageId(e),i=t.getTokenType(e),r=t.getFontStyle(e),s=t.getForeground(e),o=t.getBackground(e);console.log({languageId:n,tokenType:i,fontStyle:r,foreground:s,background:o});}},{key:"getLanguageId",value:function getLanguageId(_t21){return(255&_t21)>>>0;}},{key:"getTokenType",value:function getTokenType(_t22){return(768&_t22)>>>8;}},{key:"containsBalancedBrackets",value:function containsBalancedBrackets(_t23){return!!(1024&_t23);}},{key:"getFontStyle",value:function getFontStyle(_t24){return(30720&_t24)>>>11;}},{key:"getForeground",value:function getForeground(_t25){return(16744448&_t25)>>>15;}},{key:"getBackground",value:function getBackground(_t26){return(4278190080&_t26)>>>24;}},{key:"set",value:function set(e,n,i,r,s,o,l){var a=t.getLanguageId(e),c=t.getTokenType(e),u=t.containsBalancedBrackets(e)?1:0,m=t.getFontStyle(e),p=t.getForeground(e),h=t.getBackground(e);return 0!==n&&(a=n),8!==i&&(c=i),null!==r&&(u=r?1:0),-1!==s&&(m=s),0!==o&&(p=o),0!==l&&(h=l),(a|c<<8|u<<10|m<<11|p<<15|h<<24)>>>0;}}]);}();Y=/*#__PURE__*/function(){function Y(t){_classCallCheck(this,Y);this.scopeName=t;}return _createClass(Y,[{key:"toKey",value:function toKey(){return this.scopeName;}}]);}(),Q=/*#__PURE__*/function(){function Q(t,e){_classCallCheck(this,Q);this.scopeName=t,this.ruleName=e;}return _createClass(Q,[{key:"toKey",value:function toKey(){return"".concat(this.scopeName,"#").concat(this.ruleName);}}]);}(),Z=/*#__PURE__*/function(){function Z(){_classCallCheck(this,Z);_defineProperty(this,"_references",[]);_defineProperty(this,"_seenReferenceKeys",new Set());_defineProperty(this,"visitedRule",new Set());}return _createClass(Z,[{key:"references",get:function get(){return this._references;}},{key:"add",value:function add(t){var e=t.toKey();this._seenReferenceKeys.has(e)||(this._seenReferenceKeys.add(e),this._references.push(t));}}]);}(),tt=/*#__PURE__*/function(){function tt(t,e){_classCallCheck(this,tt);_defineProperty(this,"seenFullScopeRequests",new Set());_defineProperty(this,"seenPartialScopeRequests",new Set());_defineProperty(this,"Q",void 0);this.repo=t,this.initialScopeName=e,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Y(this.initialScopeName)];}return _createClass(tt,[{key:"processQueue",value:function processQueue(){var t=this.Q;this.Q=[];var e=new Z();var _iterator2=_createForOfIteratorHelper(t),_step2;try{for(_iterator2.s();!(_step2=_iterator2.n()).done;){var _n18=_step2.value;et(_n18,this.initialScopeName,this.repo,e);}}catch(err){_iterator2.e(err);}finally{_iterator2.f();}var _iterator3=_createForOfIteratorHelper(e.references),_step3;try{for(_iterator3.s();!(_step3=_iterator3.n()).done;){var _t31=_step3.value;if(_t31 instanceof Y){if(this.seenFullScopeRequests.has(_t31.scopeName))continue;this.seenFullScopeRequests.add(_t31.scopeName),this.Q.push(_t31);}else{if(this.seenFullScopeRequests.has(_t31.scopeName))continue;if(this.seenPartialScopeRequests.has(_t31.toKey()))continue;this.seenPartialScopeRequests.add(_t31.toKey()),this.Q.push(_t31);}}}catch(err){_iterator3.e(err);}finally{_iterator3.f();}}}]);}();st=/*#__PURE__*/_createClass(function st(){_classCallCheck(this,st);_defineProperty(this,"kind",0);}),ot=/*#__PURE__*/_createClass(function ot(){_classCallCheck(this,ot);_defineProperty(this,"kind",1);}),lt=/*#__PURE__*/_createClass(function lt(t){_classCallCheck(this,lt);_defineProperty(this,"kind",2);this.ruleName=t;}),at=/*#__PURE__*/_createClass(function at(t){_classCallCheck(this,at);_defineProperty(this,"kind",3);this.scopeName=t;}),ct=/*#__PURE__*/_createClass(function ct(t,e){_classCallCheck(this,ct);_defineProperty(this,"kind",4);this.scopeName=t,this.ruleName=e;});mt=/\\(\d+)/,pt=/\\(\d+)/g;ht=/*#__PURE__*/function(){function ht(t,e,n,i){_classCallCheck(this,ht);_defineProperty(this,"$location",void 0);_defineProperty(this,"id",void 0);_defineProperty(this,"_nameIsCapturing",void 0);_defineProperty(this,"_name",void 0);_defineProperty(this,"_contentNameIsCapturing",void 0);_defineProperty(this,"_contentName",void 0);this.$location=t,this.id=e,this._name=n||null,this._nameIsCapturing=P.hasCaptures(this._name),this._contentName=i||null,this._contentNameIsCapturing=P.hasCaptures(this._contentName);}return _createClass(ht,[{key:"debugName",get:function get(){var t=this.$location?"".concat(M(this.$location.filename),":").concat(this.$location.line):"unknown";return"".concat(this.constructor.name,"#").concat(this.id," @ ").concat(t);}},{key:"getName",value:function getName(t,e){return this._nameIsCapturing&&null!==this._name&&null!==t&&null!==e?P.replaceCaptures(this._name,t,e):this._name;}},{key:"getContentName",value:function getContentName(t,e){return this._contentNameIsCapturing&&null!==this._contentName?P.replaceCaptures(this._contentName,t,e):this._contentName;}}]);}(),dt=/*#__PURE__*/function(_ht){function dt(t,e,n,i,r){var _this4;_classCallCheck(this,dt);_this4=_callSuper(this,dt,[t,e,n,i]),_defineProperty(_assertThisInitialized(_this4),"retokenizeCapturedWithRuleId",void 0),_this4.retokenizeCapturedWithRuleId=r;return _this4;}_inherits(dt,_ht);return _createClass(dt,[{key:"dispose",value:function dispose(){}},{key:"collectPatterns",value:function collectPatterns(t,e){throw new Error("Not supported!");}},{key:"compile",value:function compile(t,e){throw new Error("Not supported!");}},{key:"compileAG",value:function compileAG(t,e,n,i){throw new Error("Not supported!");}}]);}(ht),ft=/*#__PURE__*/function(_ht2){function ft(t,e,n,i,r){var _this5;_classCallCheck(this,ft);_this5=_callSuper(this,ft,[t,e,n,null]),_defineProperty(_assertThisInitialized(_this5),"_match",void 0),_defineProperty(_assertThisInitialized(_this5),"captures",void 0),_defineProperty(_assertThisInitialized(_this5),"_cachedCompiledPatterns",void 0),_this5._match=new wt(i,_this5.id),_this5.captures=r,_this5._cachedCompiledPatterns=null;return _this5;}_inherits(ft,_ht2);return _createClass(ft,[{key:"dispose",value:function dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null);}},{key:"debugMatchRegExp",get:function get(){return"".concat(this._match.source);}},{key:"collectPatterns",value:function collectPatterns(t,e){e.push(this._match);}},{key:"compile",value:function compile(t,e){return this._getCachedCompiledPatterns(t).compile(t);}},{key:"compileAG",value:function compileAG(t,e,n,i){return this._getCachedCompiledPatterns(t).compileAG(t,n,i);}},{key:"_getCachedCompiledPatterns",value:function _getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new kt(),this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns;}}]);}(ht),gt=/*#__PURE__*/function(_ht3){function gt(t,e,n,i,r){var _this6;_classCallCheck(this,gt);_this6=_callSuper(this,gt,[t,e,n,i]),_defineProperty(_assertThisInitialized(_this6),"hasMissingPatterns",void 0),_defineProperty(_assertThisInitialized(_this6),"patterns",void 0),_defineProperty(_assertThisInitialized(_this6),"_cachedCompiledPatterns",void 0),_this6.patterns=r.patterns,_this6.hasMissingPatterns=r.hasMissingPatterns,_this6._cachedCompiledPatterns=null;return _this6;}_inherits(gt,_ht3);return _createClass(gt,[{key:"dispose",value:function dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null);}},{key:"collectPatterns",value:function collectPatterns(t,e){var _iterator6=_createForOfIteratorHelper(this.patterns),_step6;try{for(_iterator6.s();!(_step6=_iterator6.n()).done;){var _n20=_step6.value;t.getRule(_n20).collectPatterns(t,e);}}catch(err){_iterator6.e(err);}finally{_iterator6.f();}}},{key:"compile",value:function compile(t,e){return this._getCachedCompiledPatterns(t).compile(t);}},{key:"compileAG",value:function compileAG(t,e,n,i){return this._getCachedCompiledPatterns(t).compileAG(t,n,i);}},{key:"_getCachedCompiledPatterns",value:function _getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new kt(),this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns;}}]);}(ht),jt=/*#__PURE__*/function(_ht4){function jt(t,e,n,i,r,s,o,l,a,c){var _this7;_classCallCheck(this,jt);_this7=_callSuper(this,jt,[t,e,n,i]),_defineProperty(_assertThisInitialized(_this7),"_begin",void 0),_defineProperty(_assertThisInitialized(_this7),"beginCaptures",void 0),_defineProperty(_assertThisInitialized(_this7),"_end",void 0),_defineProperty(_assertThisInitialized(_this7),"endHasBackReferences",void 0),_defineProperty(_assertThisInitialized(_this7),"endCaptures",void 0),_defineProperty(_assertThisInitialized(_this7),"applyEndPatternLast",void 0),_defineProperty(_assertThisInitialized(_this7),"hasMissingPatterns",void 0),_defineProperty(_assertThisInitialized(_this7),"patterns",void 0),_defineProperty(_assertThisInitialized(_this7),"_cachedCompiledPatterns",void 0),_this7._begin=new wt(r,_this7.id),_this7.beginCaptures=s,_this7._end=new wt(o||"￿",-1),_this7.endHasBackReferences=_this7._end.hasBackReferences,_this7.endCaptures=l,_this7.applyEndPatternLast=a||!1,_this7.patterns=c.patterns,_this7.hasMissingPatterns=c.hasMissingPatterns,_this7._cachedCompiledPatterns=null;return _this7;}_inherits(jt,_ht4);return _createClass(jt,[{key:"dispose",value:function dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null);}},{key:"debugBeginRegExp",get:function get(){return"".concat(this._begin.source);}},{key:"debugEndRegExp",get:function get(){return"".concat(this._end.source);}},{key:"getEndWithResolvedBackReferences",value:function getEndWithResolvedBackReferences(t,e){return this._end.resolveBackReferences(t,e);}},{key:"collectPatterns",value:function collectPatterns(t,e){e.push(this._begin);}},{key:"compile",value:function compile(t,e){return this._getCachedCompiledPatterns(t,e).compile(t);}},{key:"compileAG",value:function compileAG(t,e,n,i){return this._getCachedCompiledPatterns(t,e).compileAG(t,n,i);}},{key:"_getCachedCompiledPatterns",value:function _getCachedCompiledPatterns(t,e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new kt();var _iterator7=_createForOfIteratorHelper(this.patterns),_step7;try{for(_iterator7.s();!(_step7=_iterator7.n()).done;){var _e11=_step7.value;t.getRule(_e11).collectPatterns(t,this._cachedCompiledPatterns);}}catch(err){_iterator7.e(err);}finally{_iterator7.f();}this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end);}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,e):this._cachedCompiledPatterns.setSource(0,e)),this._cachedCompiledPatterns;}}]);}(ht),yt=/*#__PURE__*/function(_ht5){function yt(t,e,n,i,r,s,o,l,a){var _this8;_classCallCheck(this,yt);_this8=_callSuper(this,yt,[t,e,n,i]),_defineProperty(_assertThisInitialized(_this8),"_begin",void 0),_defineProperty(_assertThisInitialized(_this8),"beginCaptures",void 0),_defineProperty(_assertThisInitialized(_this8),"whileCaptures",void 0),_defineProperty(_assertThisInitialized(_this8),"_while",void 0),_defineProperty(_assertThisInitialized(_this8),"whileHasBackReferences",void 0),_defineProperty(_assertThisInitialized(_this8),"hasMissingPatterns",void 0),_defineProperty(_assertThisInitialized(_this8),"patterns",void 0),_defineProperty(_assertThisInitialized(_this8),"_cachedCompiledPatterns",void 0),_defineProperty(_assertThisInitialized(_this8),"_cachedCompiledWhilePatterns",void 0),_this8._begin=new wt(r,_this8.id),_this8.beginCaptures=s,_this8.whileCaptures=l,_this8._while=new wt(o,-2),_this8.whileHasBackReferences=_this8._while.hasBackReferences,_this8.patterns=a.patterns,_this8.hasMissingPatterns=a.hasMissingPatterns,_this8._cachedCompiledPatterns=null,_this8._cachedCompiledWhilePatterns=null;return _this8;}_inherits(yt,_ht5);return _createClass(yt,[{key:"dispose",value:function dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null);}},{key:"debugBeginRegExp",get:function get(){return"".concat(this._begin.source);}},{key:"debugWhileRegExp",get:function get(){return"".concat(this._while.source);}},{key:"getWhileWithResolvedBackReferences",value:function getWhileWithResolvedBackReferences(t,e){return this._while.resolveBackReferences(t,e);}},{key:"collectPatterns",value:function collectPatterns(t,e){e.push(this._begin);}},{key:"compile",value:function compile(t,e){return this._getCachedCompiledPatterns(t).compile(t);}},{key:"compileAG",value:function compileAG(t,e,n,i){return this._getCachedCompiledPatterns(t).compileAG(t,n,i);}},{key:"_getCachedCompiledPatterns",value:function _getCachedCompiledPatterns(t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new kt();var _iterator8=_createForOfIteratorHelper(this.patterns),_step8;try{for(_iterator8.s();!(_step8=_iterator8.n()).done;){var _e12=_step8.value;t.getRule(_e12).collectPatterns(t,this._cachedCompiledPatterns);}}catch(err){_iterator8.e(err);}finally{_iterator8.f();}}return this._cachedCompiledPatterns;}},{key:"compileWhile",value:function compileWhile(t,e){return this._getCachedCompiledWhilePatterns(t,e).compile(t);}},{key:"compileWhileAG",value:function compileWhileAG(t,e,n,i){return this._getCachedCompiledWhilePatterns(t,e).compileAG(t,n,i);}},{key:"_getCachedCompiledWhilePatterns",value:function _getCachedCompiledWhilePatterns(t,e){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new kt(),this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,e||"￿"),this._cachedCompiledWhilePatterns;}}]);}(ht),bt=/*#__PURE__*/function(){function t(){_classCallCheck(this,t);}return _createClass(t,null,[{key:"createCaptureRule",value:function createCaptureRule(_t34,e,n,i,r){return _t34.registerRule(function(_t35){return new dt(e,_t35,n,i,r);});}},{key:"getCompiledRuleId",value:function getCompiledRuleId(e,n,i){return e.id||n.registerRule(function(r){if(e.id=r,e.match)return new ft(e.$vscodeTextmateLocation,e.id,e.name,e.match,t._compileCaptures(e.captures,n,i));if(void 0===e.begin){e.repository&&(i=T({},i,e.repository));var _r10=e.patterns;return void 0===_r10&&e.include&&(_r10=[{include:e.include}]),new gt(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,t._compilePatterns(_r10,n,i));}return e["while"]?new yt(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,t._compileCaptures(e.beginCaptures||e.captures,n,i),e["while"],t._compileCaptures(e.whileCaptures||e.captures,n,i),t._compilePatterns(e.patterns,n,i)):new jt(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,t._compileCaptures(e.beginCaptures||e.captures,n,i),e.end,t._compileCaptures(e.endCaptures||e.captures,n,i),e.applyEndPatternLast,t._compilePatterns(e.patterns,n,i));}),e.id;}},{key:"_compileCaptures",value:function _compileCaptures(e,n,i){var r=[];if(e){var _s7=0;for(var _t39 in e){if("$vscodeTextmateLocation"===_t39)continue;var _e13=parseInt(_t39,10);_e13>_s7&&(_s7=_e13);}for(var _t40=0;_t40<=_s7;_t40++)r[_t40]=null;for(var _s8 in e){if("$vscodeTextmateLocation"===_s8)continue;var _o5=parseInt(_s8,10);var _l2=0;e[_s8].patterns&&(_l2=t.getCompiledRuleId(e[_s8],n,i)),r[_o5]=t.createCaptureRule(n,e[_s8].$vscodeTextmateLocation,e[_s8].name,e[_s8].contentName,_l2);}}return r;}},{key:"_compilePatterns",value:function _compilePatterns(e,n,i){var r=[];if(e)for(var _s9=0,_o6=e.length;_s9<_o6;_s9++){var _o7=e[_s9];var _l3=-1;if(_o7.include){var _e14=ut(_o7.include);switch(_e14.kind){case 0:case 1:_l3=t.getCompiledRuleId(i[_o7.include],n,i);break;case 2:var _r11=i[_e14.ruleName];_r11&&(_l3=t.getCompiledRuleId(_r11,n,i));break;case 3:case 4:var _s10=_e14.scopeName,_a3=4===_e14.kind?_e14.ruleName:null,_c3=n.getExternalGrammar(_s10,i);if(_c3)if(_a3){var _e15=_c3.repository[_a3];_e15&&(_l3=t.getCompiledRuleId(_e15,n,_c3.repository));}else _l3=t.getCompiledRuleId(_c3.repository.$self,n,_c3.repository);}}else _l3=t.getCompiledRuleId(_o7,n,i);if(-1!==_l3){var _t38=n.getRule(_l3);var _e16=!1;if((_t38 instanceof gt||_t38 instanceof jt||_t38 instanceof yt)&&_t38.hasMissingPatterns&&0===_t38.patterns.length&&(_e16=!0),_e16)continue;r.push(_l3);}}return{patterns:r,hasMissingPatterns:(e?e.length:0)!==r.length};}}]);}(),wt=/*#__PURE__*/function(){function t(_t42,e){_classCallCheck(this,t);_defineProperty(this,"source",void 0);_defineProperty(this,"ruleId",void 0);_defineProperty(this,"hasAnchor",void 0);_defineProperty(this,"hasBackReferences",void 0);_defineProperty(this,"_anchorCache",void 0);if(_t42&&"string"==typeof _t42){var _e17=_t42.length;var _n21=0,i=[],_r12=!1;for(var _s11=0;_s11<_e17;_s11++){if("\\"===_t42.charAt(_s11)&&_s11+1<_e17){var _e18=_t42.charAt(_s11+1);"z"===_e18?(i.push(_t42.substring(_n21,_s11)),i.push("$(?!\\n)(?<!\\n)"),_n21=_s11+2):"A"!==_e18&&"G"!==_e18||(_r12=!0),_s11++;}}this.hasAnchor=_r12,0===_n21?this.source=_t42:(i.push(_t42.substring(_n21,_e17)),this.source=i.join(""));}else this.hasAnchor=!1,this.source=_t42;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=e,"string"==typeof this.source?this.hasBackReferences=mt.test(this.source):this.hasBackReferences=!1;}return _createClass(t,[{key:"clone",value:function clone(){return new t(this.source,this.ruleId);}},{key:"setSource",value:function setSource(_t43){this.source!==_t43&&(this.source=_t43,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()));}},{key:"resolveBackReferences",value:function resolveBackReferences(_t44,e){if("string"!=typeof this.source)throw new Error("This method should only be called if the source is a string");var n=e.map(function(e){return _t44.substring(e.start,e.end);});return pt.lastIndex=0,this.source.replace(pt,function(_t45,e){return _(n[parseInt(e,10)]||"");});}},{key:"_buildAnchorCache",value:function _buildAnchorCache(){if("string"!=typeof this.source)throw new Error("This method should only be called if the source is a string");var _t46,e,n,i,r=[],s=[],o=[],l=[];for(_t46=0,e=this.source.length;_t46<e;_t46++)n=this.source.charAt(_t46),r[_t46]=n,s[_t46]=n,o[_t46]=n,l[_t46]=n,"\\"===n&&_t46+1<e&&(i=this.source.charAt(_t46+1),"A"===i?(r[_t46+1]="￿",s[_t46+1]="￿",o[_t46+1]="A",l[_t46+1]="A"):"G"===i?(r[_t46+1]="￿",s[_t46+1]="G",o[_t46+1]="￿",l[_t46+1]="G"):(r[_t46+1]=i,s[_t46+1]=i,o[_t46+1]=i,l[_t46+1]=i),_t46++);return{A0_G0:r.join(""),A0_G1:s.join(""),A1_G0:o.join(""),A1_G1:l.join("")};}},{key:"resolveAnchors",value:function resolveAnchors(_t47,e){return this.hasAnchor&&this._anchorCache&&"string"==typeof this.source?_t47?e?this._anchorCache.A1_G1:this._anchorCache.A1_G0:e?this._anchorCache.A0_G1:this._anchorCache.A0_G0:this.source;}}]);}(),kt=/*#__PURE__*/function(){function kt(){_classCallCheck(this,kt);_defineProperty(this,"_items",void 0);_defineProperty(this,"_hasAnchors",void 0);_defineProperty(this,"_cached",void 0);_defineProperty(this,"_anchorCache",void 0);this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null};}return _createClass(kt,[{key:"dispose",value:function dispose(){this._disposeCaches();}},{key:"_disposeCaches",value:function _disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null);}},{key:"push",value:function push(t){this._items.push(t),this._hasAnchors=this._hasAnchors||t.hasAnchor;}},{key:"unshift",value:function unshift(t){this._items.unshift(t),this._hasAnchors=this._hasAnchors||t.hasAnchor;}},{key:"length",value:function length(){return this._items.length;}},{key:"setSource",value:function setSource(t,e){this._items[t].source!==e&&(this._disposeCaches(),this._items[t].setSource(e));}},{key:"compile",value:function compile(t){if(!this._cached){var _e19=this._items.map(function(t){return t.source;});this._cached=new vt(t,_e19,this._items.map(function(t){return t.ruleId;}));}return this._cached;}},{key:"compileAG",value:function compileAG(t,e,n){return this._hasAnchors?e?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(t,e,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(t,e,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(t,e,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(t,e,n)),this._anchorCache.A0_G0):this.compile(t);}},{key:"_resolveAnchors",value:function _resolveAnchors(t,e,n){var i=this._items.map(function(t){return t.resolveAnchors(e,n);});return new vt(t,i,this._items.map(function(t){return t.ruleId;}));}}]);}(),vt=/*#__PURE__*/function(){function vt(t,e,n){_classCallCheck(this,vt);_defineProperty(this,"scanner",void 0);this.regExps=e,this.rules=n,this.scanner=t.createOnigScanner(e);}return _createClass(vt,[{key:"dispose",value:function dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose();}},{key:"toString",value:function toString(){var t=[];for(var _e20=0,_n22=this.rules.length;_e20<_n22;_e20++)t.push(" - "+this.rules[_e20]+": "+this.regExps[_e20]);return t.join("\n");}},{key:"findNextMatchSync",value:function findNextMatchSync(t,e,n){var i=this.scanner.findNextMatchSync(t,e,n);return i?{ruleId:this.rules[i.index],captureIndices:i.captureIndices}:null;}}]);}(),St=/*#__PURE__*/_createClass(function St(t,e){_classCallCheck(this,St);this.languageId=t,this.tokenType=e;}),xt=(_t48=/*#__PURE__*/function(){function t(_t49,_e21){var _this9=this;_classCallCheck(this,t);_defineProperty(this,"_defaultAttributes",void 0);_defineProperty(this,"_embeddedLanguagesMatcher",void 0);_defineProperty(this,"_getBasicScopeAttributes",new R(function(_t50){var e=_this9._scopeToLanguage(_t50),n=_this9._toStandardTokenType(_t50);return new St(e,n);}));this._defaultAttributes=new St(_t49,8),this._embeddedLanguagesMatcher=new Ct(Object.entries(_e21||{}));}return _createClass(t,[{key:"getDefaultAttributes",value:function getDefaultAttributes(){return this._defaultAttributes;}},{key:"getBasicScopeAttributes",value:function getBasicScopeAttributes(e){return null===e?t._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e);}},{key:"_scopeToLanguage",value:function _scopeToLanguage(_t51){return this._embeddedLanguagesMatcher.match(_t51)||0;}},{key:"_toStandardTokenType",value:function _toStandardTokenType(e){var n=e.match(t.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0;}throw new Error("Unexpected match for standard token type!");}}]);}(),_defineProperty(_t48,"_NULL_SCOPE_METADATA",new St(0,0)),_defineProperty(_t48,"STANDARD_TOKEN_TYPE_REGEXP",/\b(comment|string|regex|meta\.embedded)\b/),_t48),Ct=/*#__PURE__*/function(){function Ct(t){_classCallCheck(this,Ct);_defineProperty(this,"values",void 0);_defineProperty(this,"scopesRegExp",void 0);if(0===t.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(t);var _e22=t.map(function(_ref4){var _ref5=_slicedToArray(_ref4,2),t=_ref5[0],e=_ref5[1];return _(t);});_e22.sort(),_e22.reverse(),this.scopesRegExp=new RegExp("^((".concat(_e22.join(")|("),"))($|\\.)"),"");}}return _createClass(Ct,[{key:"match",value:function match(t){if(!this.scopesRegExp)return;var e=t.match(this.scopesRegExp);return e?this.values.get(e[1]):void 0;}}]);}();"undefined"!=typeof process&&process.env.VSCODE_TEXTMATE_DEBUG;At=/*#__PURE__*/_createClass(function At(t,e){_classCallCheck(this,At);this.stack=t,this.stoppedEarly=e;});Pt=/*#__PURE__*/_createClass(function Pt(t,e){_classCallCheck(this,Pt);_defineProperty(this,"scopes",void 0);_defineProperty(this,"endPos",void 0);this.scopes=t,this.endPos=e;});_t=/*#__PURE__*/function(){function _t(t,e,n,i,r,s,o,l){_classCallCheck(this,_t);_defineProperty(this,"_rootId",void 0);_defineProperty(this,"_lastRuleId",void 0);_defineProperty(this,"_ruleId2desc",void 0);_defineProperty(this,"_includedGrammars",void 0);_defineProperty(this,"_grammarRepository",void 0);_defineProperty(this,"_grammar",void 0);_defineProperty(this,"_injections",void 0);_defineProperty(this,"_basicScopeAttributesProvider",void 0);_defineProperty(this,"_tokenTypeMatchers",void 0);if(this._rootScopeName=t,this.balancedBracketSelectors=s,this._onigLib=l,this._basicScopeAttributesProvider=new xt(n,i),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=o,this._grammar=Rt(e,null),this._injections=null,this._tokenTypeMatchers=[],r)for(var _i9=0,_Object$keys=Object.keys(r);_i9<_Object$keys.length;_i9++){var _t52=_Object$keys[_i9];var _e27=J(_t52,Dt);var _iterator10=_createForOfIteratorHelper(_e27),_step10;try{for(_iterator10.s();!(_step10=_iterator10.n()).done;){var _n25=_step10.value;this._tokenTypeMatchers.push({matcher:_n25.matcher,type:r[_t52]});}}catch(err){_iterator10.e(err);}finally{_iterator10.f();}}}return _createClass(_t,[{key:"themeProvider",get:function get(){return this._grammarRepository;}},{key:"dispose",value:function dispose(){var _iterator11=_createForOfIteratorHelper(this._ruleId2desc),_step11;try{for(_iterator11.s();!(_step11=_iterator11.n()).done;){var _t53=_step11.value;_t53&&_t53.dispose();}}catch(err){_iterator11.e(err);}finally{_iterator11.f();}}},{key:"createOnigScanner",value:function createOnigScanner(t){return this._onigLib.createOnigScanner(t);}},{key:"createOnigString",value:function createOnigString(t){return this._onigLib.createOnigString(t);}},{key:"getMetadataForScope",value:function getMetadataForScope(t){return this._basicScopeAttributesProvider.getBasicScopeAttributes(t);}},{key:"_collectInjections",value:function _collectInjections(){var _this10=this;var t=function t(_t54){return _t54===_this10._rootScopeName?_this10._grammar:_this10.getExternalGrammar(_t54);},e=[],n=this._rootScopeName,i=t(n);if(i){var _t55=i.injections;if(_t55)for(var _n26 in _t55)Nt(e,_n26,_t55[_n26],this,i);var _r13=this._grammarRepository.injections(n);_r13&&_r13.forEach(function(t){var n=_this10.getExternalGrammar(t);if(n){var _t56=n.injectionSelector;_t56&&Nt(e,_t56,n,_this10,n);}});}return e.sort(function(t,e){return t.priority-e.priority;}),e;}},{key:"getInjections",value:function getInjections(){return null===this._injections&&(this._injections=this._collectInjections()),this._injections;}},{key:"registerRule",value:function registerRule(t){var e=++this._lastRuleId,n=t(e);return this._ruleId2desc[e]=n,n;}},{key:"getRule",value:function getRule(t){return this._ruleId2desc[t];}},{key:"getExternalGrammar",value:function getExternalGrammar(t,e){if(this._includedGrammars[t])return this._includedGrammars[t];if(this._grammarRepository){var _n27=this._grammarRepository.lookup(t);if(_n27)return this._includedGrammars[t]=Rt(_n27,e&&e.$base),this._includedGrammars[t];}}},{key:"tokenizeLine",value:function tokenizeLine(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:0;var i=this._tokenize(t,e,!1,n);return{tokens:i.lineTokens.getResult(i.ruleStack,i.lineLength),ruleStack:i.ruleStack,stoppedEarly:i.stoppedEarly};}},{key:"tokenizeLine2",value:function tokenizeLine2(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:0;var i=this._tokenize(t,e,!0,n);return{tokens:i.lineTokens.getBinaryResult(i.ruleStack,i.lineLength),ruleStack:i.ruleStack,stoppedEarly:i.stoppedEarly};}},{key:"_tokenize",value:function _tokenize(t,e,n,i){var r;if(-1===this._rootId&&(this._rootId=bt.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections()),e&&e!==Bt.NULL)r=!1,e.reset();else{r=!0;var _t57=this._basicScopeAttributesProvider.getDefaultAttributes(),_n28=this.themeProvider.getDefaults(),_i10=V.set(0,_t57.languageId,_t57.tokenType,null,_n28.fontStyle,_n28.foregroundId,_n28.backgroundId),_s14=this.getRule(this._rootId).getName(null,null);var _o11;_o11=_s14?$t.createRootAndLookUpScopeName(_s14,_i10,this):$t.createRoot("unknown",_i10),e=new Bt(null,this._rootId,-1,-1,!1,null,_o11,_o11);}t+="\n";var s=this.createOnigString(t),o=s.content.length,l=new Gt(n,t,this._tokenTypeMatchers,this.balancedBracketSelectors),a=Lt(this,s,r,0,e,l,!0,i);return X(s),{lineLength:o,lineTokens:l,ruleStack:a.stack,stoppedEarly:a.stoppedEarly};}}]);}();$t=/*#__PURE__*/function(){function t(_t58,e,n){_classCallCheck(this,t);this.parent=_t58,this.scopePath=e,this.tokenAttributes=n;}return _createClass(t,[{key:"scopeName",get:function get(){return this.scopePath.scopeName;}},{key:"toString",value:function toString(){return this.getScopeNames().join(" ");}},{key:"equals",value:function equals(e){return t.equals(this,e);}},{key:"pushAttributed",value:function pushAttributed(e,n){if(null===e)return this;if(-1===e.indexOf(" "))return t._pushAttributed(this,e,n);var i=e.split(/ /g);var r=this;var _iterator12=_createForOfIteratorHelper(i),_step12;try{for(_iterator12.s();!(_step12=_iterator12.n()).done;){var _e28=_step12.value;r=t._pushAttributed(r,_e28,n);}}catch(err){_iterator12.e(err);}finally{_iterator12.f();}return r;}},{key:"getScopeNames",value:function getScopeNames(){return this.scopePath.getSegments();}},{key:"getExtensionIfDefined",value:function getExtensionIfDefined(_t61){var e=[];var n=this;for(;n&&n!==_t61;){var _n$parent$scopePath,_n$parent;e.push({encodedTokenAttributes:n.tokenAttributes,scopeNames:n.scopePath.getExtensionIfDefined((_n$parent$scopePath=(_n$parent=n.parent)===null||_n$parent===void 0?void 0:_n$parent.scopePath)!==null&&_n$parent$scopePath!==void 0?_n$parent$scopePath:null)}),n=n.parent;}return n===_t61?e.reverse():void 0;}}],[{key:"fromExtension",value:function fromExtension(e,n){var _e$scopePath;var i=e,r=(_e$scopePath=e===null||e===void 0?void 0:e.scopePath)!==null&&_e$scopePath!==void 0?_e$scopePath:null;var _iterator13=_createForOfIteratorHelper(n),_step13;try{for(_iterator13.s();!(_step13=_iterator13.n()).done;){var _e29=_step13.value;r=B.push(r,_e29.scopeNames),i=new t(i,r,_e29.encodedTokenAttributes);}}catch(err){_iterator13.e(err);}finally{_iterator13.f();}return i;}},{key:"createRoot",value:function createRoot(e,n){return new t(null,new B(null,e),n);}},{key:"createRootAndLookUpScopeName",value:function createRootAndLookUpScopeName(e,n,i){var r=i.getMetadataForScope(e),s=new B(null,e),o=i.themeProvider.themeMatch(s),l=t.mergeAttributes(n,r,o);return new t(null,s,l);}},{key:"equals",value:function equals(_t59,e){for(;;){if(_t59===e)return!0;if(!_t59&&!e)return!0;if(!_t59||!e)return!1;if(_t59.scopeName!==e.scopeName||_t59.tokenAttributes!==e.tokenAttributes)return!1;_t59=_t59.parent,e=e.parent;}}},{key:"mergeAttributes",value:function mergeAttributes(_t60,e,n){var i=-1,r=0,s=0;return null!==n&&(i=n.fontStyle,r=n.foregroundId,s=n.backgroundId),V.set(_t60,e.languageId,e.tokenType,null,i,r,s);}},{key:"_pushAttributed",value:function _pushAttributed(e,n,i){var r=i.getMetadataForScope(n),s=e.scopePath.push(n),o=i.themeProvider.themeMatch(s),l=t.mergeAttributes(e.tokenAttributes,r,o);return new t(e,s,l);}}]);}(),Bt=(_t62=/*#__PURE__*/function(){function t(_t63,e,n,i,r,s,o,l){_classCallCheck(this,t);_defineProperty(this,"_stackElementBrand",void 0);_defineProperty(this,"_enterPos",void 0);_defineProperty(this,"_anchorPos",void 0);_defineProperty(this,"depth",void 0);this.parent=_t63,this.ruleId=e,this.beginRuleCapturedEOL=r,this.endRule=s,this.nameScopesList=o,this.contentNameScopesList=l,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=i;}return _createClass(t,[{key:"equals",value:function equals(e){return null!==e&&t._equals(this,e);}},{key:"clone",value:function clone(){return this;}},{key:"reset",value:function reset(){t._reset(this);}},{key:"pop",value:function pop(){return this.parent;}},{key:"safePop",value:function safePop(){return this.parent?this.parent:this;}},{key:"push",value:function push(e,n,i,r,s,o,l){return new t(this,e,n,i,r,s,o,l);}},{key:"getEnterPos",value:function getEnterPos(){return this._enterPos;}},{key:"getAnchorPos",value:function getAnchorPos(){return this._anchorPos;}},{key:"getRule",value:function getRule(_t67){return _t67.getRule(this.ruleId);}},{key:"toString",value:function toString(){var _t68=[];return this._writeString(_t68,0),"["+_t68.join(",")+"]";}},{key:"_writeString",value:function _writeString(_t69,e){var _this$nameScopesList,_this$contentNameScop;return this.parent&&(e=this.parent._writeString(_t69,e)),_t69[e++]="(".concat(this.ruleId,", ").concat((_this$nameScopesList=this.nameScopesList)===null||_this$nameScopesList===void 0?void 0:_this$nameScopesList.toString(),", ").concat((_this$contentNameScop=this.contentNameScopesList)===null||_this$contentNameScop===void 0?void 0:_this$contentNameScop.toString(),")"),e;}},{key:"withContentNameScopesList",value:function withContentNameScopesList(_t70){return this.contentNameScopesList===_t70?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,_t70);}},{key:"withEndRule",value:function withEndRule(e){return this.endRule===e?this:new t(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList);}},{key:"hasSameRuleAs",value:function hasSameRuleAs(_t71){var e=this;for(;e&&e._enterPos===_t71._enterPos;){if(e.ruleId===_t71.ruleId)return!0;e=e.parent;}return!1;}},{key:"toStateStackFrame",value:function toStateStackFrame(){var _this$nameScopesList$,_this$nameScopesList2,_this$parent$nameScop,_this$parent,_this$contentNameScop2,_this$contentNameScop3;return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:(_this$nameScopesList$=(_this$nameScopesList2=this.nameScopesList)===null||_this$nameScopesList2===void 0?void 0:_this$nameScopesList2.getExtensionIfDefined((_this$parent$nameScop=(_this$parent=this.parent)===null||_this$parent===void 0?void 0:_this$parent.nameScopesList)!==null&&_this$parent$nameScop!==void 0?_this$parent$nameScop:null))!==null&&_this$nameScopesList$!==void 0?_this$nameScopesList$:[],contentNameScopesList:(_this$contentNameScop2=(_this$contentNameScop3=this.contentNameScopesList)===null||_this$contentNameScop3===void 0?void 0:_this$contentNameScop3.getExtensionIfDefined(this.nameScopesList))!==null&&_this$contentNameScop2!==void 0?_this$contentNameScop2:[]};}}],[{key:"_equals",value:function _equals(_t64,e){return _t64===e||!!this._structuralEquals(_t64,e)&&$t.equals(_t64.contentNameScopesList,e.contentNameScopesList);}},{key:"_structuralEquals",value:function _structuralEquals(_t65,e){for(;;){if(_t65===e)return!0;if(!_t65&&!e)return!0;if(!_t65||!e)return!1;if(_t65.depth!==e.depth||_t65.ruleId!==e.ruleId||_t65.endRule!==e.endRule)return!1;_t65=_t65.parent,e=e.parent;}}},{key:"_reset",value:function _reset(_t66){for(;_t66;)_t66._enterPos=-1,_t66._anchorPos=-1,_t66=_t66.parent;}},{key:"pushFrame",value:function pushFrame(e,n){var _e$nameScopesList,_n$enterPos,_n$anchorPos;var i=$t.fromExtension((_e$nameScopesList=e===null||e===void 0?void 0:e.nameScopesList)!==null&&_e$nameScopesList!==void 0?_e$nameScopesList:null,n.nameScopesList);return new t(e,n.ruleId,(_n$enterPos=n.enterPos)!==null&&_n$enterPos!==void 0?_n$enterPos:-1,(_n$anchorPos=n.anchorPos)!==null&&_n$anchorPos!==void 0?_n$anchorPos:-1,n.beginRuleCapturedEOL,n.endRule,i,$t.fromExtension(i,n.contentNameScopesList));}}]);}(),_defineProperty(_t62,"NULL",new _t62(null,0,0,0,!1,null,null,null)),_t62),It=/*#__PURE__*/function(){function It(t,e){var _this11=this;_classCallCheck(this,It);_defineProperty(this,"balancedBracketScopes",void 0);_defineProperty(this,"unbalancedBracketScopes",void 0);_defineProperty(this,"allowAny",!1);this.balancedBracketScopes=t.flatMap(function(t){return"*"===t?(_this11.allowAny=!0,[]):J(t,Dt).map(function(t){return t.matcher;});}),this.unbalancedBracketScopes=e.flatMap(function(t){return J(t,Dt).map(function(t){return t.matcher;});});}return _createClass(It,[{key:"matchesAlways",get:function get(){return this.allowAny&&0===this.unbalancedBracketScopes.length;}},{key:"matchesNever",get:function get(){return 0===this.balancedBracketScopes.length&&!this.allowAny;}},{key:"match",value:function match(t){var _iterator14=_createForOfIteratorHelper(this.unbalancedBracketScopes),_step14;try{for(_iterator14.s();!(_step14=_iterator14.n()).done;){var _e30=_step14.value;if(_e30(t))return!1;}}catch(err){_iterator14.e(err);}finally{_iterator14.f();}var _iterator15=_createForOfIteratorHelper(this.balancedBracketScopes),_step15;try{for(_iterator15.s();!(_step15=_iterator15.n()).done;){var _e31=_step15.value;if(_e31(t))return!0;}}catch(err){_iterator15.e(err);}finally{_iterator15.f();}return this.allowAny;}}]);}(),Gt=/*#__PURE__*/function(){function Gt(t,e,n,i){_classCallCheck(this,Gt);_defineProperty(this,"_emitBinaryTokens",void 0);_defineProperty(this,"_lineText",void 0);_defineProperty(this,"_tokens",void 0);_defineProperty(this,"_binaryTokens",void 0);_defineProperty(this,"_lastTokenEndIndex",void 0);_defineProperty(this,"_tokenTypeOverrides",void 0);this.balancedBracketSelectors=i,this._emitBinaryTokens=t,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0;}return _createClass(Gt,[{key:"produce",value:function produce(t,e){this.produceFromScopes(t.contentNameScopesList,e);}},{key:"produceFromScopes",value:function produceFromScopes(t,e){var _t$getScopeNames2;if(this._lastTokenEndIndex>=e)return;if(this._emitBinaryTokens){var _t$tokenAttributes,_this$balancedBracket;var _n29=(_t$tokenAttributes=t===null||t===void 0?void 0:t.tokenAttributes)!==null&&_t$tokenAttributes!==void 0?_t$tokenAttributes:0,i=!1;if((_this$balancedBracket=this.balancedBracketSelectors)!==null&&_this$balancedBracket!==void 0&&_this$balancedBracket.matchesAlways&&(i=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){var _t$getScopeNames;var _e32=(_t$getScopeNames=t===null||t===void 0?void 0:t.getScopeNames())!==null&&_t$getScopeNames!==void 0?_t$getScopeNames:[];var _iterator16=_createForOfIteratorHelper(this._tokenTypeOverrides),_step16;try{for(_iterator16.s();!(_step16=_iterator16.n()).done;){var _t72=_step16.value;_t72.matcher(_e32)&&(_n29=V.set(_n29,0,_t72.type,null,-1,0,0));}}catch(err){_iterator16.e(err);}finally{_iterator16.f();}this.balancedBracketSelectors&&(i=this.balancedBracketSelectors.match(_e32));}return i&&(_n29=V.set(_n29,0,8,i,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===_n29?void(this._lastTokenEndIndex=e):(this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(_n29),void(this._lastTokenEndIndex=e));}var n=(_t$getScopeNames2=t===null||t===void 0?void 0:t.getScopeNames())!==null&&_t$getScopeNames2!==void 0?_t$getScopeNames2:[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:e,scopes:n}),this._lastTokenEndIndex=e;}},{key:"getResult",value:function getResult(t,e){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===e-1&&this._tokens.pop(),0===this._tokens.length&&(this._lastTokenEndIndex=-1,this.produce(t,e),this._tokens[this._tokens.length-1].startIndex=0),this._tokens;}},{key:"getBinaryResult",value:function getBinaryResult(t,e){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===e-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),0===this._binaryTokens.length&&(this._lastTokenEndIndex=-1,this.produce(t,e),this._binaryTokens[this._binaryTokens.length-2]=0);var n=new Uint32Array(this._binaryTokens.length);for(var _t73=0,_e33=this._binaryTokens.length;_t73<_e33;_t73++)n[_t73]=this._binaryTokens[_t73];return n;}}]);}(),qt=/*#__PURE__*/function(){function qt(t,e){_classCallCheck(this,qt);_defineProperty(this,"_grammars",new Map());_defineProperty(this,"_rawGrammars",new Map());_defineProperty(this,"_injectionGrammars",new Map());_defineProperty(this,"_theme",void 0);this._onigLib=e,this._theme=t;}return _createClass(qt,[{key:"dispose",value:function dispose(){var _iterator17=_createForOfIteratorHelper(this._grammars.values()),_step17;try{for(_iterator17.s();!(_step17=_iterator17.n()).done;){var _t74=_step17.value;_t74.dispose();}}catch(err){_iterator17.e(err);}finally{_iterator17.f();}}},{key:"setTheme",value:function setTheme(t){this._theme=t;}},{key:"getColorMap",value:function getColorMap(){return this._theme.getColorMap();}},{key:"addGrammar",value:function addGrammar(t,e){this._rawGrammars.set(t.scopeName,t),e&&this._injectionGrammars.set(t.scopeName,e);}},{key:"lookup",value:function lookup(t){return this._rawGrammars.get(t);}},{key:"injections",value:function injections(t){return this._injectionGrammars.get(t);}},{key:"getDefaults",value:function getDefaults(){return this._theme.getDefaults();}},{key:"themeMatch",value:function themeMatch(t){return this._theme.match(t);}},{key:"grammarForScopeName",value:function grammarForScopeName(t,e,n,i,r){if(!this._grammars.has(t)){var _s15=this._rawGrammars.get(t);if(!_s15)return null;this._grammars.set(t,function(t,e,n,i,r,s,o,l){return new _t(t,e,n,i,r,s,o,l);}(t,_s15,e,n,i,r,this,this._onigLib));}return this._grammars.get(t);}}]);}(),zt=/*#__PURE__*/function(){function zt(t){_classCallCheck(this,zt);_defineProperty(this,"_options",void 0);_defineProperty(this,"_syncRegistry",void 0);_defineProperty(this,"_ensureGrammarCache",void 0);this._options=t,this._syncRegistry=new qt(_$.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map();}return _createClass(zt,[{key:"dispose",value:function dispose(){this._syncRegistry.dispose();}},{key:"setTheme",value:function setTheme(t,e){this._syncRegistry.setTheme(_$.createFromRawTheme(t,e));}},{key:"getColorMap",value:function getColorMap(){return this._syncRegistry.getColorMap();}},{key:"loadGrammarWithEmbeddedLanguages",value:function loadGrammarWithEmbeddedLanguages(t,e,n){return this.loadGrammarWithConfiguration(t,e,{embeddedLanguages:n});}},{key:"loadGrammarWithConfiguration",value:function loadGrammarWithConfiguration(t,e,n){return this._loadGrammar(t,e,n.embeddedLanguages,n.tokenTypes,new It(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]));}},{key:"loadGrammar",value:function loadGrammar(t){return this._loadGrammar(t,0,null,null,null);}},{key:"_loadGrammar",value:function _loadGrammar(t,e,n,i,r){var _this12=this;var s=new tt(this._syncRegistry,t);for(;s.Q.length>0;)s.Q.map(function(t){return _this12._loadSingleGrammar(t.scopeName);}),s.processQueue();return this._grammarForScopeName(t,e,n,i,r);}},{key:"_loadSingleGrammar",value:function _loadSingleGrammar(t){this._ensureGrammarCache.has(t)||(this._doLoadSingleGrammar(t),this._ensureGrammarCache.set(t,!0));}},{key:"_doLoadSingleGrammar",value:function _doLoadSingleGrammar(t){var e=this._options.loadGrammar(t);if(e){var _n30="function"==typeof this._options.getInjections?this._options.getInjections(t):void 0;this._syncRegistry.addGrammar(e,_n30);}}},{key:"addGrammar",value:function addGrammar(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[];var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:0;var i=arguments.length>3&&arguments[3]!==undefined?arguments[3]:null;return this._syncRegistry.addGrammar(t,e),this._grammarForScopeName(t.scopeName,n,i);}},{key:"_grammarForScopeName",value:function _grammarForScopeName(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:null;var i=arguments.length>3&&arguments[3]!==undefined?arguments[3]:null;var r=arguments.length>4&&arguments[4]!==undefined?arguments[4]:null;return this._syncRegistry.grammarForScopeName(t,e,n,i,r);}}]);}(),Ft=Bt.NULL;Ht=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];Ut=/*#__PURE__*/_createClass(function Ut(t,e,n){_classCallCheck(this,Ut);this.property=t,this.normal=e,n&&(this.space=n);});Ut.prototype.property={},Ut.prototype.normal={},Ut.prototype.space=null;Jt=/*#__PURE__*/_createClass(function Jt(t,e){_classCallCheck(this,Jt);this.property=t,this.attribute=e;});Jt.prototype.space=null,Jt.prototype["boolean"]=!1,Jt.prototype.booleanish=!1,Jt.prototype.overloadedBoolean=!1,Jt.prototype.number=!1,Jt.prototype.commaSeparated=!1,Jt.prototype.spaceSeparated=!1,Jt.prototype.commaOrSpaceSeparated=!1,Jt.prototype.mustUseProperty=!1,Jt.prototype.defined=!1;Kt=0;Xt=ie(),Yt=ie(),Qt=ie(),Zt=ie(),te=ie(),ee=ie(),ne=ie();re=Object.freeze({__proto__:null,"boolean":Xt,booleanish:Yt,commaOrSpaceSeparated:ne,commaSeparated:ee,number:Zt,overloadedBoolean:Qt,spaceSeparated:te});se=Object.keys(re);oe=/*#__PURE__*/function(_Jt){function oe(t,e,n,i){var _this13;_classCallCheck(this,oe);var r=-1;if(_this13=_callSuper(this,oe,[t,e]),le(_assertThisInitialized(_this13),"space",i),"number"==typeof n)for(;++r<se.length;){var _t75=se[r];le(_assertThisInitialized(_this13),se[r],(n&re[_t75])===re[_t75]);}return _this13;}_inherits(oe,_Jt);return _createClass(oe);}(Jt);oe.prototype.defined=!0;ae={}.hasOwnProperty;ue=ce({space:"xlink",transform:function transform(t,e){return"xlink:"+e.slice(5).toLowerCase();},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),me=ce({space:"xml",transform:function transform(t,e){return"xml:"+e.slice(3).toLowerCase();},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});de=ce({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:he,properties:{xmlns:null,xmlnsXLink:null}}),fe=ce({transform:function transform(t,e){return"role"===e?e:"aria-"+e.slice(4).toLowerCase();},properties:{ariaActiveDescendant:null,ariaAtomic:Yt,ariaAutoComplete:null,ariaBusy:Yt,ariaChecked:Yt,ariaColCount:Zt,ariaColIndex:Zt,ariaColSpan:Zt,ariaControls:te,ariaCurrent:null,ariaDescribedBy:te,ariaDetails:null,ariaDisabled:Yt,ariaDropEffect:te,ariaErrorMessage:null,ariaExpanded:Yt,ariaFlowTo:te,ariaGrabbed:Yt,ariaHasPopup:null,ariaHidden:Yt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:te,ariaLevel:Zt,ariaLive:null,ariaModal:Yt,ariaMultiLine:Yt,ariaMultiSelectable:Yt,ariaOrientation:null,ariaOwns:te,ariaPlaceholder:null,ariaPosInSet:Zt,ariaPressed:Yt,ariaReadOnly:Yt,ariaRelevant:null,ariaRequired:Yt,ariaRoleDescription:te,ariaRowCount:Zt,ariaRowIndex:Zt,ariaRowSpan:Zt,ariaSelected:Yt,ariaSetSize:Zt,ariaSort:null,ariaValueMax:Zt,ariaValueMin:Zt,ariaValueNow:Zt,ariaValueText:null,role:null}}),ge=ce({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:he,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ee,acceptCharset:te,accessKey:te,action:null,allow:null,allowFullScreen:Xt,allowPaymentRequest:Xt,allowUserMedia:Xt,alt:null,as:null,async:Xt,autoCapitalize:null,autoComplete:te,autoFocus:Xt,autoPlay:Xt,blocking:te,capture:null,charSet:null,checked:Xt,cite:null,className:te,cols:Zt,colSpan:null,content:null,contentEditable:Yt,controls:Xt,controlsList:te,coords:Zt|ee,crossOrigin:null,data:null,dateTime:null,decoding:null,"default":Xt,defer:Xt,dir:null,dirName:null,disabled:Xt,download:Qt,draggable:Yt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Xt,formTarget:null,headers:te,height:Zt,hidden:Xt,high:Zt,href:null,hrefLang:null,htmlFor:te,httpEquiv:te,id:null,imageSizes:null,imageSrcSet:null,inert:Xt,inputMode:null,integrity:null,is:null,isMap:Xt,itemId:null,itemProp:te,itemRef:te,itemScope:Xt,itemType:te,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Xt,low:Zt,manifest:null,max:null,maxLength:Zt,media:null,method:null,min:null,minLength:Zt,multiple:Xt,muted:Xt,name:null,nonce:null,noModule:Xt,noValidate:Xt,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Xt,optimum:Zt,pattern:null,ping:te,placeholder:null,playsInline:Xt,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Xt,referrerPolicy:null,rel:te,required:Xt,reversed:Xt,rows:Zt,rowSpan:Zt,sandbox:te,scope:null,scoped:Xt,seamless:Xt,selected:Xt,shadowRootClonable:Xt,shadowRootDelegatesFocus:Xt,shadowRootMode:null,shape:null,size:Zt,sizes:null,slot:null,span:Zt,spellCheck:Yt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Zt,step:null,style:null,tabIndex:Zt,target:null,title:null,translate:null,type:null,typeMustMatch:Xt,useMap:null,value:Yt,width:Zt,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:te,axis:null,background:null,bgColor:null,border:Zt,borderColor:null,bottomMargin:Zt,cellPadding:null,cellSpacing:null,"char":null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Xt,declare:Xt,event:null,face:null,frame:null,frameBorder:null,hSpace:Zt,leftMargin:Zt,link:null,longDesc:null,lowSrc:null,marginHeight:Zt,marginWidth:Zt,noResize:Xt,noHref:Xt,noShade:Xt,noWrap:Xt,object:null,profile:null,prompt:null,rev:null,rightMargin:Zt,rules:null,scheme:null,scrolling:Yt,standby:null,summary:null,text:null,topMargin:Zt,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Zt,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Xt,disableRemotePlayback:Xt,prefix:null,property:null,results:Zt,security:null,unselectable:null}}),je=ce({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:pe,properties:{about:ne,accentHeight:Zt,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Zt,amplitude:Zt,arabicForm:null,ascent:Zt,attributeName:null,attributeType:null,azimuth:Zt,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Zt,by:null,calcMode:null,capHeight:Zt,className:te,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Zt,diffuseConstant:Zt,direction:null,display:null,dur:null,divisor:Zt,dominantBaseline:null,download:Xt,dx:null,dy:null,edgeMode:null,editable:null,elevation:Zt,enableBackground:null,end:null,event:null,exponent:Zt,externalResourcesRequired:null,fill:null,fillOpacity:Zt,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:ee,g2:ee,glyphName:ee,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Zt,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Zt,horizOriginX:Zt,horizOriginY:Zt,id:null,ideographic:Zt,imageRendering:null,initialVisibility:null,"in":null,in2:null,intercept:Zt,k:Zt,k1:Zt,k2:Zt,k3:Zt,k4:Zt,kernelMatrix:ne,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Zt,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Zt,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Zt,overlineThickness:Zt,paintOrder:null,panose1:null,path:null,pathLength:Zt,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:te,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Zt,pointsAtY:Zt,pointsAtZ:Zt,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ne,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ne,rev:ne,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ne,requiredFeatures:ne,requiredFonts:ne,requiredFormats:ne,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Zt,specularExponent:Zt,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Zt,strikethroughThickness:Zt,string:null,stroke:null,strokeDashArray:ne,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Zt,strokeOpacity:Zt,strokeWidth:null,style:null,surfaceScale:Zt,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ne,tabIndex:Zt,tableValues:null,target:null,targetX:Zt,targetY:Zt,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ne,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Zt,underlineThickness:Zt,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Zt,values:null,vAlphabetic:Zt,vMathematical:Zt,vectorEffect:null,vHanging:Zt,vIdeographic:Zt,version:null,vertAdvY:Zt,vertOriginX:Zt,vertOriginY:Zt,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Zt,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),ye=/^data[-\w.:]+$/i,be=/-[a-z]/g,we=/[A-Z]/g;Se=Wt([me,ue,de,fe,ge],"html"),xe=Wt([me,ue,de,fe,je],"svg"),Ce={}.hasOwnProperty;Ae=/["&'<>`]/g,Le=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Te=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,Me=/[|\\{}()[\]^$+*?.]/g,Oe=new WeakMap();Ne=/[\dA-Fa-f]/;De=/\d/;Ee=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],_e={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪","int":"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},Re=["cent","copy","divide","gt","lt","not","para","times"],$e={}.hasOwnProperty,Be={};for(Ie in _e)$e.call(_e,Ie)&&(Be[_e[Ie]]=Ie);Ge=/[^\dA-Za-z]/;Fe=/^>|^->|<!--|-->|--!>|<!-$/g,He=[">"],Ue=["<",">"];Ke=/[ \t\n\f\r]/g;Qe=en(1),Ze=en(-1),tn=[];nn={}.hasOwnProperty;sn=rn({body:function body(t,e,n){var i=Qe(n,e);return!i||"comment"!==i.type;},caption:on,colgroup:on,dd:function dd(t,e,n){var i=Qe(n,e);return!i||"element"===i.type&&("dt"===i.tagName||"dd"===i.tagName);},dt:function dt(t,e,n){var i=Qe(n,e);return Boolean(i&&"element"===i.type&&("dt"===i.tagName||"dd"===i.tagName));},head:on,html:function html(t,e,n){var i=Qe(n,e);return!i||"comment"!==i.type;},li:function li(t,e,n){var i=Qe(n,e);return!i||"element"===i.type&&"li"===i.tagName;},optgroup:function optgroup(t,e,n){var i=Qe(n,e);return!i||"element"===i.type&&"optgroup"===i.tagName;},option:function option(t,e,n){var i=Qe(n,e);return!i||"element"===i.type&&("option"===i.tagName||"optgroup"===i.tagName);},p:function p(t,e,n){var i=Qe(n,e);return i?"element"===i.type&&("address"===i.tagName||"article"===i.tagName||"aside"===i.tagName||"blockquote"===i.tagName||"details"===i.tagName||"div"===i.tagName||"dl"===i.tagName||"fieldset"===i.tagName||"figcaption"===i.tagName||"figure"===i.tagName||"footer"===i.tagName||"form"===i.tagName||"h1"===i.tagName||"h2"===i.tagName||"h3"===i.tagName||"h4"===i.tagName||"h5"===i.tagName||"h6"===i.tagName||"header"===i.tagName||"hgroup"===i.tagName||"hr"===i.tagName||"main"===i.tagName||"menu"===i.tagName||"nav"===i.tagName||"ol"===i.tagName||"p"===i.tagName||"pre"===i.tagName||"section"===i.tagName||"table"===i.tagName||"ul"===i.tagName):!n||!("element"===n.type&&("a"===n.tagName||"audio"===n.tagName||"del"===n.tagName||"ins"===n.tagName||"map"===n.tagName||"noscript"===n.tagName||"video"===n.tagName));},rp:ln,rt:ln,tbody:function tbody(t,e,n){var i=Qe(n,e);return!i||"element"===i.type&&("tbody"===i.tagName||"tfoot"===i.tagName);},td:an,tfoot:function tfoot(t,e,n){return!Qe(n,e);},th:an,thead:function thead(t,e,n){var i=Qe(n,e);return Boolean(i&&"element"===i.type&&("tbody"===i.tagName||"tfoot"===i.tagName));},tr:function tr(t,e,n){var i=Qe(n,e);return!i||"element"===i.type&&"tr"===i.tagName;}});cn=rn({body:function body(t){var e=Qe(t,-1,!0);return!(e&&("comment"===e.type||"text"===e.type&&Xe(e.value.charAt(0))||"element"===e.type&&("meta"===e.tagName||"link"===e.tagName||"script"===e.tagName||"style"===e.tagName||"template"===e.tagName)));},colgroup:function colgroup(t,e,n){var i=Ze(n,e),r=Qe(t,-1,!0);if(n&&i&&"element"===i.type&&"colgroup"===i.tagName&&sn(i,n.children.indexOf(i),n))return!1;return Boolean(r&&"element"===r.type&&"col"===r.tagName);},head:function head(t){var e=new Set();var _iterator18=_createForOfIteratorHelper(t.children),_step18;try{for(_iterator18.s();!(_step18=_iterator18.n()).done;){var _n31=_step18.value;if("element"===_n31.type&&("base"===_n31.tagName||"title"===_n31.tagName)){if(e.has(_n31.tagName))return!1;e.add(_n31.tagName);}}}catch(err){_iterator18.e(err);}finally{_iterator18.f();}var n=t.children[0];return!n||"element"===n.type;},html:function html(t){var e=Qe(t,-1);return!e||"comment"!==e.type;},tbody:function tbody(t,e,n){var i=Ze(n,e),r=Qe(t,-1);if(n&&i&&"element"===i.type&&("thead"===i.tagName||"tbody"===i.tagName)&&sn(i,n.children.indexOf(i),n))return!1;return Boolean(r&&"element"===r.type&&"tr"===r.tagName);}});un={name:[["\t\n\f\r &/=>".split(""),"\t\n\f\r \"&'/=>`".split("")],["\0\t\n\f\r \"&'/<=>".split(""),"\0\t\n\f\r \"&'/<=>`".split("")]],unquoted:[["\t\n\f\r &>".split(""),"\0\t\n\f\r \"&'<=>`".split("")],["\0\t\n\f\r \"&'<=>`".split(""),"\0\t\n\f\r \"&'<=>`".split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],"double":[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};pn=["<","&"];dn=function(t,e){var n=e||{};function i(e){var _r15;var r=i.invalid;var s=i.handlers;if(e&&Ce.call(e,t)){var _n33=String(e[t]);r=Ce.call(s,_n33)?s[_n33]:i.unknown;}for(var _len2=arguments.length,n=new Array(_len2>1?_len2-1:0),_key2=1;_key2<_len2;_key2++){n[_key2-1]=arguments[_key2];}if(r)return(_r15=r).call.apply(_r15,[this,e].concat(n));}return i.handlers=n.handlers||{},i.invalid=n.invalid,i.unknown=n.unknown,i;}("type",{invalid:function invalid(t){throw new Error("Expected node, not `"+t+"`");},unknown:function unknown(t){throw new Error("Cannot compile unknown node `"+t.type+"`");},handlers:{comment:function comment(t,e,n,i){return i.settings.bogusComments?"<?"+ze(t.value,Object.assign({},i.settings.characterReferences,{subset:He}))+">":"\x3c!--"+t.value.replace(Fe,function(t){return ze(t,Object.assign({},i.settings.characterReferences,{subset:Ue}));})+"--\x3e";},doctype:function doctype(t,e,n,i){return"<!"+(i.settings.upperDoctype?"DOCTYPE":"doctype")+(i.settings.tightDoctype?"":" ")+"html>";},element:function element(t,e,n,i){var r=i.schema,s="svg"!==r.space&&i.settings.omitOptionalTags;var o="svg"===r.space?i.settings.closeEmptyElements:i.settings.voids.includes(t.tagName.toLowerCase());var l=[];var a;"html"===r.space&&"svg"===t.tagName&&(i.schema=xe);var c=function(t,e){var n=[];var i,r=-1;if(e)for(i in e)if(null!==e[i]&&void 0!==e[i]){var _r16=mn(t,i,e[i]);_r16&&n.push(_r16);}for(;++r<n.length;){var _e34=t.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&'"'!==_e34&&"'"!==_e34&&(n[r]+=" ");}return n.join("");}(i,t.properties),u=i.all("html"===r.space&&"template"===t.tagName?t.content:t);return i.schema=r,u&&(o=!1),!c&&s&&cn(t,e,n)||(l.push("<",t.tagName,c?" "+c:""),o&&("svg"===r.space||i.settings.closeSelfClosing)&&(a=c.charAt(c.length-1),(!i.settings.tightSelfClosing||"/"===a||a&&'"'!==a&&"'"!==a)&&l.push(" "),l.push("/")),l.push(">")),l.push(u),o||s&&sn(t,e,n)||l.push("</"+t.tagName+">"),l.join("");},raw:function raw(t,e,n,i){return i.settings.allowDangerousHtml?t.value:hn(t,0,n,i);},root:function root(t,e,n,i){return i.all(t);},text:hn}});fn={},gn={},jn=[];Pn=/*#__PURE__*/function(_Error3){function Pn(t){var _this14;_classCallCheck(this,Pn);_this14=_callSuper(this,Pn,[t]),_this14.name="ShikiError";return _this14;}_inherits(Pn,_Error3);return _createClass(Pn);}(/*#__PURE__*/_wrapNativeSuper(Error));Nn=new WeakMap();_n=/*#__PURE__*/function(){function _n(){_classCallCheck(this,_n);_defineProperty(this,"_stacks",{});_defineProperty(this,"lang",void 0);for(var _len3=arguments.length,t=new Array(_len3),_key3=0;_key3<_len3;_key3++){t[_key3]=arguments[_key3];}if(2===t.length){var _e36=t[0],_n36=t[1];this.lang=_n36,this._stacks=_e36;}else{var _e37=t[0],_n37=t[1],i=t[2];this.lang=_n37,this._stacks=_defineProperty({},i,_e37);}}return _createClass(_n,[{key:"themes",get:function get(){return Object.keys(this._stacks);}},{key:"theme",get:function get(){return this.themes[0];}},{key:"_stack",get:function get(){return this._stacks[this.theme];}},{key:"getInternalStack",value:function getInternalStack(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:this.theme;return this._stacks[t];}},{key:"scopes",get:function get(){return Rn(this._stacks[this.theme]);}},{key:"getScopes",value:function getScopes(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:this.theme;return Rn(this._stacks[t]);}},{key:"toJSON",value:function toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.scopes};}}],[{key:"initial",value:function initial(t,e){return new _n(Object.fromEntries(function(t){return Array.isArray(t)?t:[t];}(e).map(function(t){return[t,Ft];})),t);}}]);}();In=[$n()];qn=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],zn={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};Wn={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};si="#333333",oi="#bbbbbb",li="#fffffe",ai="#1e1e1e",ci="__shiki_resolved";hi=/*#__PURE__*/function(_zt){function hi(t,e,n){var _this15;var i=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};_classCallCheck(this,hi);_this15=_callSuper(this,hi,[t]),_defineProperty(_assertThisInitialized(_this15),"_resolvedThemes",new Map()),_defineProperty(_assertThisInitialized(_this15),"_resolvedGrammars",new Map()),_defineProperty(_assertThisInitialized(_this15),"_langMap",new Map()),_defineProperty(_assertThisInitialized(_this15),"_langGraph",new Map()),_defineProperty(_assertThisInitialized(_this15),"_textmateThemeCache",new WeakMap()),_defineProperty(_assertThisInitialized(_this15),"_loadedThemesCache",null),_defineProperty(_assertThisInitialized(_this15),"_loadedLanguagesCache",null),_this15._resolver=t,_this15._themes=e,_this15._langs=n,_this15._alias=i,_this15._themes.map(function(t){return _this15.loadTheme(t);}),_this15.loadLanguages(_this15._langs);return _this15;}_inherits(hi,_zt);return _createClass(hi,[{key:"getTheme",value:function getTheme(t){return"string"==typeof t?this._resolvedThemes.get(t):this.loadTheme(t);}},{key:"loadTheme",value:function loadTheme(t){var e=ui(t);return e.name&&(this._resolvedThemes.set(e.name,e),this._loadedThemesCache=null),e;}},{key:"getLoadedThemes",value:function getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=_toConsumableArray(this._resolvedThemes.keys())),this._loadedThemesCache;}},{key:"setTheme",value:function setTheme(t){var e=this._textmateThemeCache.get(t);e||(e=_$.createFromRawTheme(t),this._textmateThemeCache.set(t,e)),this._syncRegistry.setTheme(e);}},{key:"getGrammar",value:function getGrammar(t){if(this._alias[t]){var _e48=new Set([t]);for(;this._alias[t];){if(t=this._alias[t],_e48.has(t))throw new Pn("Circular alias `".concat(Array.from(_e48).join(" -> ")," -> ").concat(t,"`"));_e48.add(t);}}return this._resolvedGrammars.get(t);}},{key:"loadLanguage",value:function loadLanguage(t){var _this16=this;if(this.getGrammar(t.name))return;var e=new Set(_toConsumableArray(this._langMap.values()).filter(function(e){var _e$embeddedLangsLazy;return(_e$embeddedLangsLazy=e.embeddedLangsLazy)===null||_e$embeddedLangsLazy===void 0?void 0:_e$embeddedLangsLazy.includes(t.name);}));this._resolver.addLanguage(t);var n={balancedBracketSelectors:t.balancedBracketSelectors||["*"],unbalancedBracketSelectors:t.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(t.scopeName,t);var i=this.loadGrammarWithConfiguration(t.scopeName,1,n);if(i.name=t.name,this._resolvedGrammars.set(t.name,i),t.aliases&&t.aliases.forEach(function(e){_this16._alias[e]=t.name;}),this._loadedLanguagesCache=null,e.size){var _iterator38=_createForOfIteratorHelper(e),_step38;try{for(_iterator38.s();!(_step38=_iterator38.n()).done;){var _this$_syncRegistry,_this$_syncRegistry2;var _t104=_step38.value;this._resolvedGrammars["delete"](_t104.name),this._loadedLanguagesCache=null,(_this$_syncRegistry=this._syncRegistry)!==null&&_this$_syncRegistry!==void 0&&(_this$_syncRegistry=_this$_syncRegistry._injectionGrammars)!==null&&_this$_syncRegistry!==void 0&&_this$_syncRegistry["delete"](_t104.scopeName),(_this$_syncRegistry2=this._syncRegistry)!==null&&_this$_syncRegistry2!==void 0&&(_this$_syncRegistry2=_this$_syncRegistry2._grammars)!==null&&_this$_syncRegistry2!==void 0&&_this$_syncRegistry2["delete"](_t104.scopeName),this.loadLanguage(this._langMap.get(_t104.name));}}catch(err){_iterator38.e(err);}finally{_iterator38.f();}}}},{key:"dispose",value:function dispose(){_superPropGet(hi,"dispose",this,3)([]),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null;}},{key:"loadLanguages",value:function loadLanguages(t){var _iterator39=_createForOfIteratorHelper(t),_step39;try{for(_iterator39.s();!(_step39=_iterator39.n()).done;){var _e51=_step39.value;this.resolveEmbeddedLanguages(_e51);}}catch(err){_iterator39.e(err);}finally{_iterator39.f();}var e=Array.from(this._langGraph.entries()),n=e.filter(function(_ref13){var _ref14=_slicedToArray(_ref13,2),t=_ref14[0],e=_ref14[1];return!e;});if(n.length){var _t105=e.filter(function(_ref15){var _e$embeddedLangs;var _ref16=_slicedToArray(_ref15,2),t=_ref16[0],e=_ref16[1];return e&&((_e$embeddedLangs=e.embeddedLangs)===null||_e$embeddedLangs===void 0?void 0:_e$embeddedLangs.some(function(t){return n.map(function(_ref17){var _ref18=_slicedToArray(_ref17,1),t=_ref18[0];return t;}).includes(t);}));}).filter(function(t){return!n.includes(t);});throw new Pn("Missing languages ".concat(n.map(function(_ref19){var _ref20=_slicedToArray(_ref19,1),t=_ref20[0];return"`".concat(t,"`");}).join(", "),", required by ").concat(_t105.map(function(_ref21){var _ref22=_slicedToArray(_ref21,1),t=_ref22[0];return"`".concat(t,"`");}).join(", ")));}for(var _i24=0,_e49=e;_i24<_e49.length;_i24++){var _e49$_i=_slicedToArray(_e49[_i24],2),_t106=_e49$_i[0],_n48=_e49$_i[1];this._resolver.addLanguage(_n48);}for(var _i25=0,_e50=e;_i25<_e50.length;_i25++){var _e50$_i=_slicedToArray(_e50[_i25],2),_t107=_e50$_i[0],_n49=_e50$_i[1];this.loadLanguage(_n49);}}},{key:"getLoadedLanguages",value:function getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=_toConsumableArray(new Set([].concat(_toConsumableArray(this._resolvedGrammars.keys()),_toConsumableArray(Object.keys(this._alias)))))),this._loadedLanguagesCache;}},{key:"resolveEmbeddedLanguages",value:function resolveEmbeddedLanguages(t){if(this._langMap.set(t.name,t),this._langGraph.set(t.name,t),t.embeddedLangs){var _iterator40=_createForOfIteratorHelper(t.embeddedLangs),_step40;try{for(_iterator40.s();!(_step40=_iterator40.n()).done;){var _e52=_step40.value;this._langGraph.set(_e52,this._langMap.get(_e52));}}catch(err){_iterator40.e(err);}finally{_iterator40.f();}}}}]);}(zt);di=/*#__PURE__*/function(){function di(t,e){var _this17=this;_classCallCheck(this,di);_defineProperty(this,"_langs",new Map());_defineProperty(this,"_scopeToLang",new Map());_defineProperty(this,"_injections",new Map());_defineProperty(this,"_onigLib",void 0);this._onigLib={createOnigScanner:function createOnigScanner(e){return t.createScanner(e);},createOnigString:function createOnigString(e){return t.createString(e);}},e.forEach(function(t){return _this17.addLanguage(t);});}return _createClass(di,[{key:"onigLib",get:function get(){return this._onigLib;}},{key:"getLangRegistration",value:function getLangRegistration(t){return this._langs.get(t);}},{key:"loadGrammar",value:function loadGrammar(t){return this._scopeToLang.get(t);}},{key:"addLanguage",value:function addLanguage(t){var _this18=this;this._langs.set(t.name,t),t.aliases&&t.aliases.forEach(function(e){_this18._langs.set(e,t);}),this._scopeToLang.set(t.scopeName,t),t.injectTo&&t.injectTo.forEach(function(e){_this18._injections.get(e)||_this18._injections.set(e,[]),_this18._injections.get(e).push(t.scopeName);});}},{key:"getInjections",value:function getInjections(t){var e=t.split(".");var n=[];for(var _t108=1;_t108<=e.length;_t108++){var i=e.slice(0,_t108).join(".");n=[].concat(_toConsumableArray(n),_toConsumableArray(this._injections.get(i)||[]));}return n;}}]);}();fi=0;bi=yi({langs:a,themes:u,engine:function engine(){return A(_context["import"]("../wasm-f0b3e061.cjs.js"));}});_export("N",wi=/*#__PURE__*/function(_o17){function wi(){var _this19;_classCallCheck(this,wi);_this19=_callSuper(this,wi,arguments),_this19.code="",_this19.language="javascript",_this19.theme="min-light",_this19.highlightedCode="";return _this19;}_inherits(wi,_o17);return _createClass(wi,[{key:"updated",value:function(){var _updated=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(t){return _regeneratorRuntime().wrap(function _callee5$(_context6){while(1)switch(_context6.prev=_context6.next){case 0:_context6.t0=t.has("language")||t.has("theme");if(!_context6.t0){_context6.next=4;break;}_context6.next=4;return this.updateHighlighter();case 4:_context6.t1=t.has("code")||t.has("language")||t.has("theme");if(!_context6.t1){_context6.next=8;break;}_context6.next=8;return this.updateHighlightedCode();case 8:case"end":return _context6.stop();}},_callee5,this);}));function updated(_x9){return _updated.apply(this,arguments);}return updated;}()},{key:"render",value:function render(){return e(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n\t\t\t\t<div class=\"code-container\" .innerHTML=","></div>\n\t\t\t"])),this.highlightedCode);}},{key:"updateHighlighter",value:function(){var _updateHighlighter=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(){return _regeneratorRuntime().wrap(function _callee6$(_context7){while(1)switch(_context7.prev=_context7.next){case 0:_context7.next=2;return bi({themes:[this.theme],langs:[this.language]});case 2:this.highlighter=_context7.sent;case 3:case"end":return _context7.stop();}},_callee6,this);}));function updateHighlighter(){return _updateHighlighter.apply(this,arguments);}return updateHighlighter;}()},{key:"updateHighlightedCode",value:function(){var _updateHighlightedCode=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(){return _regeneratorRuntime().wrap(function _callee7$(_context8){while(1)switch(_context8.prev=_context8.next){case 0:_context8.next=2;return this.highlighter.codeToHtml(this.code,{lang:this.language,theme:this.theme});case 2:this.highlightedCode=_context8.sent;case 3:case"end":return _context8.stop();}},_callee7,this);}));function updateHighlightedCode(){return _updateHighlightedCode.apply(this,arguments);}return updateHighlightedCode;}()}],[{key:"styles",get:function get(){return[s];}}]);}(o));t([n({type:String})],wi.prototype,"code",void 0),t([n({type:String,reflect:!0})],wi.prototype,"language",void 0),t([n({type:String,reflect:!0})],wi.prototype,"theme",void 0),t([i()],wi.prototype,"highlightedCode",void 0),_export("N",wi=t([r("nile-highlighter")],wi));}};});
2
2
  //# sourceMappingURL=nile-highlighter.cjs.js.map