dorkos 0.45.0 → 0.45.1

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 (91) hide show
  1. package/dist/bin/cli.js +6 -6
  2. package/dist/client/assets/{BaseTanStackRouterDevtoolsPanel-SWyE65Is-DbU6EhZc.js → BaseTanStackRouterDevtoolsPanel-SWyE65Is-DBeTmo8s.js} +1 -1
  3. package/dist/client/assets/BaseTanStackRouterDevtoolsPanel-SWyE65Is-DptF2Iv2.js +539 -0
  4. package/dist/client/assets/{BlintzCanvas-YWLFAfxE.js → BlintzCanvas-BC2wvdMT.js} +1 -1
  5. package/dist/client/assets/BlintzCanvas-tAgLU3aR.js +1160 -0
  6. package/dist/client/assets/{CanvasCsvContent-Dcuaf91X.js → CanvasCsvContent-B0IwcV_U.js} +1 -1
  7. package/dist/client/assets/CanvasCsvContent-RYl7B_ua.js +15 -0
  8. package/dist/client/assets/{CanvasFileContent-gn5aMM24.js → CanvasFileContent-BHJI0OTy.js} +2 -2
  9. package/dist/client/assets/CanvasFileContent-BsJsR4E1.js +2 -0
  10. package/dist/client/assets/{CanvasModel3dContent-C3PJHVs8.js → CanvasModel3dContent-BcdM2LJg.js} +2 -2
  11. package/dist/client/assets/CanvasModel3dContent-ohjBCAJd.js +2 -0
  12. package/dist/client/assets/{CodeMirrorEditor-f8fXFh5i.js → CodeMirrorEditor-C-gkWN8h.js} +1 -1
  13. package/dist/client/assets/CodeMirrorEditor-SHXbcVUy.js +1 -0
  14. package/dist/client/assets/{ConfigTab-Cetgg_6C.js → ConfigTab-DJu3oDC2.js} +1 -1
  15. package/dist/client/assets/ConfigTab-TuhuSOnv.js +17 -0
  16. package/dist/client/assets/{FloatingTanStackRouterDevtools-CnpwH7La-BOdQs4zz.js → FloatingTanStackRouterDevtools-CnpwH7La-BmSxRfr_.js} +1 -1
  17. package/dist/client/assets/FloatingTanStackRouterDevtools-CnpwH7La-Dk8iG4Hx.js +1 -0
  18. package/dist/client/assets/{Model3dViewer-qR1sbYAL.js → Model3dViewer-D6VCAF61.js} +1 -1
  19. package/dist/client/assets/Model3dViewer-K9pNJx1c.js +5372 -0
  20. package/dist/client/assets/{SessionsTab-BCsOP3gI.js → SessionsTab-BrqarM-T.js} +1 -1
  21. package/dist/client/assets/SessionsTab-Di1R_A1t.js +1 -0
  22. package/dist/client/assets/{ToolkitTab-BYtBugsk.js → ToolkitTab-BOaJEnPh.js} +1 -1
  23. package/dist/client/assets/ToolkitTab-a2dYMBx9.js +1 -0
  24. package/dist/client/assets/{TopologyGraph-xyvgCKHX.js → TopologyGraph-DUJWDhtI.js} +1 -1
  25. package/dist/client/assets/TopologyGraph-Dehijt2P.js +35 -0
  26. package/dist/client/assets/{highlighted-body-OFNGDK62-B8b-ZuJR.js → highlighted-body-OFNGDK62-B_0h6J6M.js} +1 -1
  27. package/dist/client/assets/highlighted-body-OFNGDK62-D85fxms5.js +1 -0
  28. package/dist/client/assets/{index-BrVLuO9-.js → index-5ALgrOFO.js} +1 -1
  29. package/dist/client/assets/{index-YPp3bUkv.js → index-B4Fq7yld.js} +1 -1
  30. package/dist/client/assets/{index-CZBlFw3s.js → index-B4_k9QZg.js} +1 -1
  31. package/dist/client/assets/{index-B-WBHpyv.js → index-B7ObcNSe.js} +1 -1
  32. package/dist/client/assets/{index-BzFClKht.js → index-B9VCOBmA.js} +2 -2
  33. package/dist/client/assets/{index-BaGiFKrR.js → index-BCp9aZet.js} +1 -1
  34. package/dist/client/assets/index-BDdd8Mqa.js +1 -0
  35. package/dist/client/assets/index-BNSNg7yH.js +1316 -0
  36. package/dist/client/assets/{index-aEzy0_Oi.js → index-BQk-ivFT.js} +1 -1
  37. package/dist/client/assets/{index-CCHYQVhi.js → index-BT9yFVeS.js} +3 -3
  38. package/dist/client/assets/{index-sKKm7yEm.js → index-BZYDK9c8.js} +8 -8
  39. package/dist/client/assets/{index-Djl0lRsF.js → index-Bbn2wn69.js} +1 -1
  40. package/dist/client/assets/{index-C27wAnIu.js → index-BcX7mUEk.js} +1 -1
  41. package/dist/client/assets/{index-BT9Vxyz4.js → index-Bcx7LFbL.js} +1 -1
  42. package/dist/client/assets/{index-CCqqyjKr.js → index-BdUsepd_.js} +1 -1
  43. package/dist/client/assets/index-BeWJN4g0.js +1 -0
  44. package/dist/client/assets/index-Bh6Wh5Du.js +1 -0
  45. package/dist/client/assets/index-BqqIE9sa.js +1 -0
  46. package/dist/client/assets/{index-CzJ4xEDL.js → index-Bvs4ET-I.js} +1 -1
  47. package/dist/client/assets/{index-Ced3HTl7.js → index-Bx073uVW.js} +1 -1
  48. package/dist/client/assets/{index-BJyMVoKM.js → index-C20-Z8l4.js} +1 -1
  49. package/dist/client/assets/{index-lFLNlOBz.js → index-C2NQ-Ck8.js} +1 -1
  50. package/dist/client/assets/index-C44W9aTS.js +2 -0
  51. package/dist/client/assets/index-C6SlFkyv.js +2 -0
  52. package/dist/client/assets/{index-DjSzGDon.js → index-C9IMI6L6.js} +1 -1
  53. package/dist/client/assets/{index-C2pa1dy_.js → index-CK2kZcMG.js} +1 -1
  54. package/dist/client/assets/index-CKCx_Kan.js +6 -0
  55. package/dist/client/assets/index-CQxDY4vU.js +6 -0
  56. package/dist/client/assets/{index-oZPvMe-H.js → index-CSZQyH2J.js} +1 -1
  57. package/dist/client/assets/{index-9i9Kxi6Z.js → index-CT-ZBhf1.js} +1 -1
  58. package/dist/client/assets/{index-BkmzUjFL.js → index-CaH1aFVg.js} +1 -1
  59. package/dist/client/assets/index-CdAooMjU.js +15 -0
  60. package/dist/client/assets/{index-BKp1QoTa.js → index-CvMyZRD2.js} +1 -1
  61. package/dist/client/assets/index-CyUySFAD.js +13 -0
  62. package/dist/client/assets/{index-BQ0KNUVJ.js → index-CyWkKBhZ.js} +1 -1
  63. package/dist/client/assets/{index-DWocbnZZ.js → index-D1ekLRaV.js} +1 -1
  64. package/dist/client/assets/{index-DRqPbLFU.js → index-D9MT2UpW.js} +1 -1
  65. package/dist/client/assets/index-DEA_Cy2Q.js +1 -0
  66. package/dist/client/assets/index-DLQOQsnm.js +1 -0
  67. package/dist/client/assets/index-DQD1r_S5.js +70 -0
  68. package/dist/client/assets/{index-BV2QuCxp.js → index-DUshTWP6.js} +1 -1
  69. package/dist/client/assets/index-DbAfUW6T.js +1 -0
  70. package/dist/client/assets/index-DhLhWBOz.js +1 -0
  71. package/dist/client/assets/index-DiQETlwd.js +71 -0
  72. package/dist/client/assets/index-Do63XgYk.js +1 -0
  73. package/dist/client/assets/index-DvPThthM.js +1 -0
  74. package/dist/client/assets/index-Dyl6ywSG.js +7 -0
  75. package/dist/client/assets/{index-CTqKf40t.js → index-MDyXRyeQ.js} +1 -1
  76. package/dist/client/assets/index-QFOwC8Sb.js +6 -0
  77. package/dist/client/assets/index-YNTMAxpK.js +1 -0
  78. package/dist/client/assets/index-ZZSS75im.js +1 -0
  79. package/dist/client/assets/index-_mq6ScXa.js +1 -0
  80. package/dist/client/assets/index-dj2DvPaa.js +1 -0
  81. package/dist/client/assets/index-oQeM2FOC.js +1 -0
  82. package/dist/client/assets/{index-ByyRHqai.js → index-rZ21sTqk.js} +1 -1
  83. package/dist/client/assets/index-sgPwXj8m.js +1 -0
  84. package/dist/client/assets/index-w2P-tT_0.js +1 -0
  85. package/dist/client/assets/{index-DQrSytvk.js → index-w2dnLgsj.js} +1 -1
  86. package/dist/client/assets/index-xIhoncSx.js +1 -0
  87. package/dist/client/assets/index-yXRJmHf-.js +3 -0
  88. package/dist/client/index.html +1 -1
  89. package/dist/server/index.js +2 -1
  90. package/dist/server/index.js.map +1 -1
  91. package/package.json +3 -3
@@ -0,0 +1,70 @@
1
+ var br=Object.defineProperty;var Cr=(e,n,i)=>n in e?br(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i;var O=(e,n,i)=>Cr(e,typeof n!="symbol"?n+"":n,i);import{ac as Ar,_ as Sr,j as w,r as ee}from"./index-BZYDK9c8.js";var sn={exports:{}};/*!
2
+ Copyright (c) 2018 Jed Watson.
3
+ Licensed under the MIT License (MIT), see
4
+ http://jedwatson.github.io/classnames
5
+ */var Hn;function kr(){return Hn||(Hn=1,(function(e){(function(){var n={}.hasOwnProperty;function i(){for(var l="",o=0;o<arguments.length;o++){var s=arguments[o];s&&(l=t(l,r(s)))}return l}function r(l){if(typeof l=="string"||typeof l=="number")return l;if(typeof l!="object")return"";if(Array.isArray(l))return i.apply(null,l);if(l.toString!==Object.prototype.toString&&!l.toString.toString().includes("[native code]"))return l.toString();var o="";for(var s in l)n.call(l,s)&&l[s]&&(o=t(o,s));return o}function t(l,o){return o?l?l+" "+o:l+o:l}e.exports?(i.default=i,e.exports=i):window.classNames=i})()})(sn)),sn.exports}var Er=kr();const X=Ar(Er);var Wn=Number.isNaN||function(n){return typeof n=="number"&&n!==n};function Tr(e,n){return!!(e===n||Wn(e)&&Wn(n))}function Fr(e,n){if(e.length!==n.length)return!1;for(var i=0;i<e.length;i++)if(!Tr(e[i],n[i]))return!1;return!0}function Nr(e,n){n===void 0&&(n=Fr);var i=null;function r(){for(var t=[],l=0;l<arguments.length;l++)t[l]=arguments[l];if(i&&i.lastThis===this&&n(t,i.lastArgs))return i.lastResult;var o=e.apply(this,t);return i={lastResult:o,lastArgs:t,lastThis:this},o}return r.clear=function(){i=null},r}function Lr(e,n,i){let r=0,t;const l={},o=[];return e.forEach((s,a)=>{const u=n.some(f=>f>=a-i&&f<=a+i);!u&&t===void 0?(t={index:r,startLine:a,endLine:a,lines:1},o.push(t),l[a]=t.index,r++):!u&&t?(t.endLine=a,t.lines++,l[a]=t.index):t=void 0}),{lineBlocks:l,blocks:o}}class ae{diff(n,i,r={}){let t;typeof r=="function"?(t=r,r={}):"callback"in r&&(t=r.callback);const l=this.castInput(n,r),o=this.castInput(i,r),s=this.removeEmpty(this.tokenize(l,r)),a=this.removeEmpty(this.tokenize(o,r));return this.diffWithOptionsObj(s,a,r,t)}diffWithOptionsObj(n,i,r,t){var l;const o=p=>{if(p=this.postProcess(p,r),t){setTimeout(function(){t(p)},0);return}else return p},s=i.length,a=n.length;let u=1,f=s+a;r.maxEditLength!=null&&(f=Math.min(f,r.maxEditLength));const c=(l=r.timeout)!==null&&l!==void 0?l:1/0,m=Date.now()+c,x=[{oldPos:-1,lastComponent:void 0}];let h=this.extractCommon(x[0],i,n,0,r);if(x[0].oldPos+1>=a&&h+1>=s)return o(this.buildValues(x[0].lastComponent,i,n));let d=-1/0,g=1/0;const v=()=>{for(let p=Math.max(d,-u);p<=Math.min(g,u);p+=2){let y;const C=x[p-1],b=x[p+1];C&&(x[p-1]=void 0);let E=!1;if(b){const k=b.oldPos-p;E=b&&0<=k&&k<s}const A=C&&C.oldPos+1<a;if(!E&&!A){x[p]=void 0;continue}if(!A||E&&C.oldPos<b.oldPos?y=this.addToPath(b,!0,!1,0,r):y=this.addToPath(C,!1,!0,1,r),h=this.extractCommon(y,i,n,p,r),y.oldPos+1>=a&&h+1>=s)return o(this.buildValues(y.lastComponent,i,n))||!0;x[p]=y,y.oldPos+1>=a&&(g=Math.min(g,p-1)),h+1>=s&&(d=Math.max(d,p+1))}u++};if(t)(function p(){setTimeout(function(){if(u>f||Date.now()>m)return t(void 0);v()||p()},0)})();else for(;u<=f&&Date.now()<=m;){const p=v();if(p)return p}}addToPath(n,i,r,t,l){const o=n.lastComponent;return o&&!l.oneChangePerToken&&o.added===i&&o.removed===r?{oldPos:n.oldPos+t,lastComponent:{count:o.count+1,added:i,removed:r,previousComponent:o.previousComponent}}:{oldPos:n.oldPos+t,lastComponent:{count:1,added:i,removed:r,previousComponent:o}}}extractCommon(n,i,r,t,l){const o=i.length,s=r.length;let a=n.oldPos,u=a-t,f=0;for(;u+1<o&&a+1<s&&this.equals(r[a+1],i[u+1],l);)u++,a++,f++,l.oneChangePerToken&&(n.lastComponent={count:1,previousComponent:n.lastComponent,added:!1,removed:!1});return f&&!l.oneChangePerToken&&(n.lastComponent={count:f,previousComponent:n.lastComponent,added:!1,removed:!1}),n.oldPos=a,u}equals(n,i,r){return r.comparator?r.comparator(n,i):n===i||!!r.ignoreCase&&n.toLowerCase()===i.toLowerCase()}removeEmpty(n){const i=[];for(let r=0;r<n.length;r++)n[r]&&i.push(n[r]);return i}castInput(n,i){return n}tokenize(n,i){return Array.from(n)}join(n){return n.join("")}postProcess(n,i){return n}get useLongestToken(){return!1}buildValues(n,i,r){const t=[];let l;for(;n;)t.push(n),l=n.previousComponent,delete n.previousComponent,n=l;t.reverse();const o=t.length;let s=0,a=0,u=0;for(;s<o;s++){const f=t[s];if(f.removed)f.value=this.join(r.slice(u,u+f.count)),u+=f.count;else{if(!f.added&&this.useLongestToken){let c=i.slice(a,a+f.count);c=c.map(function(m,x){const h=r[u+x];return h.length>m.length?h:m}),f.value=this.join(c)}else f.value=this.join(i.slice(a,a+f.count));a+=f.count,f.added||(u+=f.count)}}return t}}class Or extends ae{}const vi=new Or;function Rr(e,n,i){return vi.diff(e,n,i)}function Bn(e,n){let i;for(i=0;i<e.length&&i<n.length;i++)if(e[i]!=n[i])return e.slice(0,i);return e.slice(0,i)}function Pn(e,n){let i;if(!e||!n||e[e.length-1]!=n[n.length-1])return"";for(i=0;i<e.length&&i<n.length;i++)if(e[e.length-(i+1)]!=n[n.length-(i+1)])return e.slice(-i);return e.slice(-i)}function hn(e,n,i){if(e.slice(0,n.length)!=n)throw Error(`string ${JSON.stringify(e)} doesn't start with prefix ${JSON.stringify(n)}; this is a bug`);return i+e.slice(n.length)}function pn(e,n,i){if(!n)return e+i;if(e.slice(-n.length)!=n)throw Error(`string ${JSON.stringify(e)} doesn't end with suffix ${JSON.stringify(n)}; this is a bug`);return e.slice(0,-n.length)+i}function Te(e,n){return hn(e,n,"")}function We(e,n){return pn(e,n,"")}function $n(e,n){return n.slice(0,Dr(e,n))}function Dr(e,n){let i=0;e.length>n.length&&(i=e.length-n.length);let r=n.length;e.length<n.length&&(r=e.length);const t=Array(r);let l=0;t[0]=0;for(let o=1;o<r;o++){for(n[o]==n[l]?t[o]=t[l]:t[o]=l;l>0&&n[o]!=n[l];)l=t[l];n[o]==n[l]&&l++}l=0;for(let o=i;o<e.length;o++){for(;l>0&&e[o]!=n[l];)l=t[l];e[o]==n[l]&&l++}return l}function Ir(e){return e.includes(`\r
6
+ `)&&!e.startsWith(`
7
+ `)&&!e.match(/[^\r]\n/)}function _r(e){return!e.includes(`\r
8
+ `)&&e.includes(`
9
+ `)}function yi(e,n){const i=[];for(const r of Array.from(n.segment(e))){const t=r.segment;i.length&&/\s/.test(i[i.length-1])&&/\s/.test(t)?i[i.length-1]+=t:i.push(t)}return i}function gn(e,n){if(n)return Oe(e,n)[1];let i;for(i=e.length-1;i>=0&&e[i].match(/\s/);i--);return e.substring(i+1)}function ve(e,n){if(n)return Oe(e,n)[0];const i=e.match(/^\s*/);return i?i[0]:""}function Oe(e,n){if(!n)return[ve(e),gn(e)];if(n.resolvedOptions().granularity!="word")throw new Error('The segmenter passed must have a granularity of "word"');const i=yi(e,n),r=i[0],t=i[i.length-1],l=/\s/.test(r)?r:"",o=/\s/.test(t)?t:"";return[l,o]}const Ve="a-zA-Z0-9_\\u{AD}\\u{C0}-\\u{D6}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}",Mr=new RegExp(`[${Ve}]+|\\s+|[^${Ve}]`,"ug");class jr extends ae{equals(n,i,r){return r.ignoreCase&&(n=n.toLowerCase(),i=i.toLowerCase()),n.trim()===i.trim()}tokenize(n,i={}){let r;if(i.intlSegmenter){const o=i.intlSegmenter;if(o.resolvedOptions().granularity!="word")throw new Error('The segmenter passed must have a granularity of "word"');r=yi(n,o)}else r=n.match(Mr)||[];const t=[];let l=null;return r.forEach(o=>{/\s/.test(o)?l==null?t.push(o):t.push(t.pop()+o):l!=null&&/\s/.test(l)?t[t.length-1]==l?t.push(t.pop()+o):t.push(l+o):t.push(o),l=o}),t}join(n){return n.map((i,r)=>r==0?i:i.replace(/^\s+/,"")).join("")}postProcess(n,i){if(!n||i.oneChangePerToken)return n;let r=null,t=null,l=null;return n.forEach(o=>{o.added?t=o:o.removed?l=o:((t||l)&&Gn(r,l,t,o,i.intlSegmenter),r=o,t=null,l=null)}),(t||l)&&Gn(r,l,t,null,i.intlSegmenter),n}}const wi=new jr;function Hr(e,n,i){return(i==null?void 0:i.ignoreWhitespace)!=null&&!i.ignoreWhitespace?Ci(e,n,i):wi.diff(e,n,i)}function Gn(e,n,i,r,t){if(n&&i){const[l,o]=Oe(n.value,t),[s,a]=Oe(i.value,t);if(e){const u=Bn(l,s);e.value=pn(e.value,s,u),n.value=Te(n.value,u),i.value=Te(i.value,u)}if(r){const u=Pn(o,a);r.value=hn(r.value,a,u),n.value=We(n.value,u),i.value=We(i.value,u)}}else if(i){if(e){const l=ve(i.value,t);i.value=i.value.substring(l.length)}if(r){const l=ve(r.value,t);r.value=r.value.substring(l.length)}}else if(e&&r){const l=ve(r.value,t),[o,s]=Oe(n.value,t),a=Bn(l,o);n.value=Te(n.value,a);const u=Pn(Te(l,a),s);n.value=We(n.value,u),r.value=hn(r.value,l,u),e.value=pn(e.value,l,l.slice(0,l.length-u.length))}else if(r){const l=ve(r.value,t),o=gn(n.value,t),s=$n(o,l);n.value=We(n.value,s)}else if(e){const l=gn(e.value,t),o=ve(n.value,t),s=$n(l,o);n.value=Te(n.value,s)}}class Wr extends ae{tokenize(n){const i=new RegExp(`(\\r?\\n)|[${Ve}]+|[^\\S\\n\\r]+|[^${Ve}]`,"ug");return n.match(i)||[]}}const bi=new Wr;function Ci(e,n,i){return bi.diff(e,n,i)}function Br(e,n){if(typeof e=="function")n.callback=e;else if(e)for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}class Pr extends ae{constructor(){super(...arguments),this.tokenize=Ai}equals(n,i,r){return r.ignoreWhitespace?((!r.newlineIsToken||!n.includes(`
10
+ `))&&(n=n.trim()),(!r.newlineIsToken||!i.includes(`
11
+ `))&&(i=i.trim())):r.ignoreNewlineAtEof&&!r.newlineIsToken&&(n.endsWith(`
12
+ `)&&(n=n.slice(0,-1)),i.endsWith(`
13
+ `)&&(i=i.slice(0,-1))),super.equals(n,i,r)}}const En=new Pr;function le(e,n,i){return En.diff(e,n,i)}function $r(e,n,i){return i=Br(i,{ignoreWhitespace:!0}),En.diff(e,n,i)}function Ai(e,n){n.stripTrailingCr&&(e=e.replace(/\r\n/g,`
14
+ `));const i=[],r=e.split(/(\n|\r\n)/);r[r.length-1]||r.pop();for(let t=0;t<r.length;t++){const l=r[t];t%2&&!n.newlineIsToken?i[i.length-1]+=l:i.push(l)}return i}function Gr(e){return e=="."||e=="!"||e=="?"}class Vr extends ae{tokenize(n){var i;const r=[];let t=0;for(let l=0;l<n.length;l++){if(l==n.length-1){r.push(n.slice(t));break}if(Gr(n[l])&&n[l+1].match(/\s/)){for(r.push(n.slice(t,l+1)),l=t=l+1;!((i=n[l+1])===null||i===void 0)&&i.match(/\s/);)l++;r.push(n.slice(t,l+1)),t=l+1}}return r}}const Si=new Vr;function Ur(e,n,i){return Si.diff(e,n,i)}class Yr extends ae{tokenize(n){return n.split(/([{}:;,]|\s+)/)}}const ki=new Yr;function zr(e,n,i){return ki.diff(e,n,i)}class qr extends ae{constructor(){super(...arguments),this.tokenize=Ai}get useLongestToken(){return!0}castInput(n,i){const{undefinedReplacement:r,stringifyReplacer:t=(l,o)=>typeof o>"u"?r:o}=i;return typeof n=="string"?n:JSON.stringify(Ue(n,null,null,t),null," ")}equals(n,i,r){return super.equals(n.replace(/,([\r\n])/g,"$1"),i.replace(/,([\r\n])/g,"$1"),r)}}const Ei=new qr;function Kr(e,n,i){return Ei.diff(e,n,i)}function Ue(e,n,i,r,t){n=n||[],i=i||[],r&&(e=r(t===void 0?"":t,e));let l;for(l=0;l<n.length;l+=1)if(n[l]===e)return i[l];let o;if(Object.prototype.toString.call(e)==="[object Array]"){for(n.push(e),o=new Array(e.length),i.push(o),l=0;l<e.length;l+=1)o[l]=Ue(e[l],n,i,r,String(l));return n.pop(),i.pop(),o}if(e&&e.toJSON&&(e=e.toJSON()),typeof e=="object"&&e!==null){n.push(e),o={},i.push(o);const s=[];let a;for(a in e)Object.prototype.hasOwnProperty.call(e,a)&&s.push(a);for(s.sort(),l=0;l<s.length;l+=1)a=s[l],o[a]=Ue(e[a],n,i,r,a);n.pop(),i.pop()}else o=e;return o}class Zr extends ae{tokenize(n){return n.slice()}join(n){return n}removeEmpty(n){return n}}const Ti=new Zr;function Jr(e,n,i){return Ti.diff(e,n,i)}function Fi(e){return Array.isArray(e)?e.map(n=>Fi(n)):Object.assign(Object.assign({},e),{hunks:e.hunks.map(n=>Object.assign(Object.assign({},n),{lines:n.lines.map((i,r)=>{var t;return i.startsWith("\\")||i.endsWith("\r")||!((t=n.lines[r+1])===null||t===void 0)&&t.startsWith("\\")?i:i+"\r"})}))})}function Ni(e){return Array.isArray(e)?e.map(n=>Ni(n)):Object.assign(Object.assign({},e),{hunks:e.hunks.map(n=>Object.assign(Object.assign({},n),{lines:n.lines.map(i=>i.endsWith("\r")?i.substring(0,i.length-1):i)}))})}function Qr(e){return Array.isArray(e)||(e=[e]),!e.some(n=>n.hunks.some(i=>i.lines.some(r=>!r.startsWith("\\")&&r.endsWith("\r"))))}function Xr(e){return Array.isArray(e)||(e=[e]),e.some(n=>n.hunks.some(i=>i.lines.some(r=>r.endsWith("\r"))))&&e.every(n=>n.hunks.every(i=>i.lines.every((r,t)=>{var l;return r.startsWith("\\")||r.endsWith("\r")||((l=i.lines[t+1])===null||l===void 0?void 0:l.startsWith("\\"))})))}function Tn(e){const n=e.split(/\n/),i=[];let r=0;function t(h){return/^diff --git /.test(h)}function l(h){return t(h)||/^Index:\s/.test(h)||/^diff(?: -r \w+)+\s/.test(h)}function o(h){return/^(---|\+\+\+)\s/.test(h)}function s(h){return/^@@\s/.test(h)}function a(){var h;const d={};d.hunks=[],i.push(d);let g=!1;for(;r<n.length;){const v=n[r];if(o(v)||s(v))break;if(t(v)){if(g)return;g=!0,d.isGit=!0;const p=u(v);for(p&&(d.oldFileName=p.oldFileName,d.newFileName=p.newFileName),r++;r<n.length;){const y=n[r];if(o(y)||s(y)||l(y))break;const C=/^rename from (.*)/.exec(y);C&&(d.oldFileName="a/"+f(C[1]),d.isRename=!0);const b=/^rename to (.*)/.exec(y);b&&(d.newFileName="b/"+f(b[1]),d.isRename=!0);const E=/^copy from (.*)/.exec(y);E&&(d.oldFileName="a/"+f(E[1]),d.isCopy=!0);const A=/^copy to (.*)/.exec(y);A&&(d.newFileName="b/"+f(A[1]),d.isCopy=!0);const k=/^new file mode (\d+)/.exec(y);k&&(d.isCreate=!0,d.newMode=k[1]);const R=/^deleted file mode (\d+)/.exec(y);R&&(d.isDelete=!0,d.oldMode=R[1]);const G=/^old mode (\d+)/.exec(y);G&&(d.oldMode=G[1]);const Y=/^new mode (\d+)/.exec(y);Y&&(d.newMode=Y[1]),/^Binary files /.test(y)&&(d.isBinary=!0),r++}continue}else if(l(v)){if(g)return;g=!0;const p=/^(?:Index:|diff(?: -r \w+)+)\s+/.exec(v);p&&(d.index=v.substring(p[0].length).trim())}r++}if(m(d),m(d),d.oldFileName===void 0!=(d.newFileName===void 0))throw new Error("Missing "+(d.oldFileName!==void 0?'"+++ ..."':'"--- ..."')+" file header for "+((h=d.oldFileName)!==null&&h!==void 0?h:d.newFileName));for(;r<n.length;){const v=n[r];if(l(v)||o(v)||/^===================================================================/.test(v))break;s(v)?d.hunks.push(x()):r++}}function u(h){const d=h.substring(11);if(d.startsWith('"')){const v=c(d);if(v===null)return null;const p=d.substring(v.rawLength+1);let y;if(p.startsWith('"')){const C=c(p);if(C===null)return null;y=C.fileName}else y=p;return{oldFileName:v.fileName,newFileName:y}}const g=d.indexOf('"');if(g>0){const v=d.substring(0,g-1),p=c(d.substring(g));return p===null?null:{oldFileName:v,newFileName:p.fileName}}if(d.startsWith("a/")){const v=[];let p=0;for(;p=d.indexOf(" b/",p+1),p!==-1;)v.push(p);if(v.length>0){const y=v[Math.floor(v.length/2)];return{oldFileName:d.substring(0,y),newFileName:d.substring(y+1)}}}return null}function f(h){if(h.startsWith('"')){const d=c(h);if(d)return d.fileName}return h}function c(h){if(!h.startsWith('"'))return null;let d="",g=1;for(;g<h.length;){if(h[g]==='"')return{fileName:d,rawLength:g+1};if(h[g]==="\\"&&g+1<h.length)switch(g++,h[g]){case"a":d+="\x07";break;case"b":d+="\b";break;case"f":d+="\f";break;case"n":d+=`
15
+ `;break;case"r":d+="\r";break;case"t":d+=" ";break;case"v":d+="\v";break;case"\\":d+="\\";break;case'"':d+='"';break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":{if(g+2>=h.length||h[g+1]<"0"||h[g+1]>"7"||h[g+2]<"0"||h[g+2]>"7")return null;const v=[parseInt(h.substring(g,g+3),8)];for(g+=3;h[g]==="\\"&&h[g+1]>="0"&&h[g+1]<="7";){if(g+3>=h.length||h[g+2]<"0"||h[g+2]>"7"||h[g+3]<"0"||h[g+3]>"7")return null;v.push(parseInt(h.substring(g+1,g+4),8)),g+=4}d+=new TextDecoder("utf-8").decode(new Uint8Array(v));continue}default:return null}else d+=h[g];g++}return null}function m(h){const d=/^(---|\+\+\+)\s+/.exec(n[r]);if(d){const g=d[1],v=n[r].substring(3).trim().split(" ",2),p=(v[1]||"").trim();let y=v[0];y.startsWith('"')?y=f(y):y=y.replace(/\\\\/g,"\\"),g==="---"?(h.oldFileName=y,h.oldHeader=p):(h.newFileName=y,h.newHeader=p),r++}}function x(){var h;const d=r,g=n[r++],v=g.split(/@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/),p={oldStart:+v[1],oldLines:typeof v[2]>"u"?1:+v[2],newStart:+v[3],newLines:typeof v[4]>"u"?1:+v[4],lines:[]};p.oldLines===0&&(p.oldStart+=1),p.newLines===0&&(p.newStart+=1);let y=0,C=0;for(;r<n.length&&(C<p.oldLines||y<p.newLines||!((h=n[r])===null||h===void 0)&&h.startsWith("\\"));r++){const b=n[r].length==0&&r!=n.length-1?" ":n[r][0];if(b==="+"||b==="-"||b===" "||b==="\\")p.lines.push(n[r]),b==="+"?y++:b==="-"?C++:b===" "&&(y++,C++);else throw new Error(`Hunk at line ${d+1} contained invalid line ${n[r]}`)}if(!y&&p.newLines===1&&(p.newLines=0),!C&&p.oldLines===1&&(p.oldLines=0),y!==p.newLines)throw new Error("Added line count did not match for hunk at line "+(d+1));if(C!==p.oldLines)throw new Error("Removed line count did not match for hunk at line "+(d+1));if(r<n.length&&n[r]&&/^[+ -]/.test(n[r])&&!o(n[r]))throw new Error("Hunk at line "+(d+1)+" has more lines than expected (expected "+p.oldLines+" old lines and "+p.newLines+" new lines)");return p}for(;r<n.length;)a();return i}function et(e,n,i){let r=!0,t=!1,l=!1,o=1;return function s(){if(r&&!l){if(t?o++:r=!1,e+o<=i)return e+o;l=!0}if(!t)return l||(r=!0),n<=e-o?e-o++:(t=!0,s())}}function Li(e,n,i={}){let r;if(typeof n=="string"?r=Tn(n):Array.isArray(n)?r=n:r=[n],r.length>1)throw new Error("applyPatch only works with a single input.");return nt(e,r[0],i)}function nt(e,n,i={}){(i.autoConvertLineEndings||i.autoConvertLineEndings==null)&&(Ir(e)&&Qr(n)?n=Fi(n):_r(e)&&Xr(n)&&(n=Ni(n)));const r=e.split(`
16
+ `),t=n.hunks,l=i.compareLine||((h,d,g,v)=>d===v),o=i.fuzzFactor||0;let s=0;if(o<0||!Number.isInteger(o))throw new Error("fuzzFactor must be a non-negative integer");if(!t.length)return e;let a="",u=!1,f=!1;for(let h=0;h<t[t.length-1].lines.length;h++){const d=t[t.length-1].lines[h];d[0]=="\\"&&(a[0]=="+"?u=!0:a[0]=="-"&&(f=!0)),a=d}if(u){if(f){if(!o&&r[r.length-1]=="")return!1}else if(r[r.length-1]=="")r.pop();else if(!o)return!1}else if(f){if(r[r.length-1]!="")r.push("");else if(!o)return!1}function c(h,d,g,v=0,p=!0,y=[],C=0){let b=0,E=!1;for(;v<h.length;v++){const A=h[v],k=A.length>0?A[0]:" ",R=A.length>0?A.substr(1):A;if(k==="-")if(l(d+1,r[d],k,R))d++,b=0;else return!g||r[d]==null?null:(y[C]=r[d],c(h,d+1,g-1,v,!1,y,C+1));if(k==="+"){if(!p)return null;y[C]=R,C++,b=0,E=!0}if(k===" ")if(b++,y[C]=r[d],l(d+1,r[d],k,R))C++,p=!0,E=!1,d++;else return E||!g?null:r[d]&&(c(h,d+1,g-1,v+1,!1,y,C+1)||c(h,d+1,g-1,v,!1,y,C+1))||c(h,d,g-1,v+1,!1,y,C)}return C-=b,d-=b,y.length=C,{patchedLines:y,oldLineLastI:d-1}}const m=[];let x=0;for(let h=0;h<t.length;h++){const d=t[h];let g;const v=r.length-d.oldLines+o;let p;for(let y=0;y<=o;y++){p=d.oldStart+x-1;const C=et(p,s,v);for(;p!==void 0&&(g=c(d.lines,p,y),!g);p=C());if(g)break}if(!g)return!1;for(let y=s;y<p;y++)m.push(r[y]);for(let y=0;y<g.patchedLines.length;y++){const C=g.patchedLines[y];m.push(C)}s=g.oldLineLastI+1,x=p+1-d.oldStart}for(let h=s;h<r.length;h++)m.push(r[h]);return m.join(`
17
+ `)}function it(e,n){const i=typeof e=="string"?Tn(e):e;let r=0;function t(){const l=i[r++];if(!l)return n.complete();n.loadFile(l,function(o,s){if(o)return n.complete(o);const a=Li(s,l,n);n.patched(l,a,function(u){if(u)return n.complete(u);t()})})}t()}function Vn(e){return e===void 0||e==="/dev/null"?e:e.startsWith("a/")?"b/"+e.slice(2):e.startsWith("b/")?"a/"+e.slice(2):e}function Oi(e){if(Array.isArray(e))return e.map(i=>Oi(i)).reverse();const n=Object.assign(Object.assign({},e),{oldFileName:e.isGit?Vn(e.newFileName):e.newFileName,oldHeader:e.newHeader,newFileName:e.isGit?Vn(e.oldFileName):e.oldFileName,newHeader:e.oldHeader,oldMode:e.newMode,newMode:e.oldMode,isCreate:e.isDelete,isDelete:e.isCreate,hunks:e.hunks.map(i=>({oldLines:i.newLines,oldStart:i.newStart,newLines:i.oldLines,newStart:i.oldStart,lines:i.lines.map(r=>r.startsWith("-")?`+${r.slice(1)}`:r.startsWith("+")?`-${r.slice(1)}`:r)}))});return e.isCopy&&(n.newFileName="/dev/null",n.newHeader=void 0,n.isDelete=!0,delete n.isCreate,delete n.isCopy,delete n.isRename,n.hunks=[]),n}function rt(e){for(let n=0;n<e.length;n++)if(e[n]<" "||e[n]>"~"||e[n]==='"'||e[n]==="\\")return!0;return!1}function ue(e){if(!rt(e))return e;let n='"';const i=new TextEncoder().encode(e);let r=0;for(;r<i.length;){const t=i[r];t===7?n+="\\a":t===8?n+="\\b":t===9?n+="\\t":t===10?n+="\\n":t===11?n+="\\v":t===12?n+="\\f":t===13?n+="\\r":t===34?n+='\\"':t===92?n+="\\\\":t>=32&&t<=126?n+=String.fromCharCode(t):n+="\\"+t.toString(8).padStart(3,"0"),r++}return n+='"',n}const mn={includeIndex:!0,includeUnderline:!0,includeFileHeaders:!0},tt={includeIndex:!1,includeUnderline:!1,includeFileHeaders:!0},ot={includeIndex:!1,includeUnderline:!1,includeFileHeaders:!1};function xn(e,n,i,r,t,l,o){let s;o?typeof o=="function"?s={callback:o}:s=o:s={},typeof s.context>"u"&&(s.context=4);const a=s.context;if(s.newlineIsToken)throw new Error("newlineIsToken may not be used with patch-generation functions, only with diffing functions");if(s.callback){const{callback:f}=s;le(i,r,Object.assign(Object.assign({},s),{callback:c=>{const m=u(c);f(m)}}))}else return u(le(i,r,s));function u(f){if(!f)return;f.push({value:"",lines:[]});function c(p){return p.map(function(y){return" "+y})}const m=[];let x=0,h=0,d=[],g=1,v=1;for(let p=0;p<f.length;p++){const y=f[p],C=y.lines||st(y.value);if(y.lines=C,y.added||y.removed){if(!x){const b=f[p-1];x=g,h=v,b&&(d=a>0?c(b.lines.slice(-a)):[],x-=d.length,h-=d.length)}for(const b of C)d.push((y.added?"+":"-")+b);y.added?v+=C.length:g+=C.length}else{if(x)if(C.length<=a*2&&p<f.length-2)for(const b of c(C))d.push(b);else{const b=Math.min(C.length,a);for(const A of c(C.slice(0,b)))d.push(A);const E={oldStart:x,oldLines:g-x+b,newStart:h,newLines:v-h+b,lines:d};m.push(E),x=0,h=0,d=[]}g+=C.length,v+=C.length}}for(const p of m)for(let y=0;y<p.lines.length;y++)p.lines[y].endsWith(`
18
+ `)?p.lines[y]=p.lines[y].slice(0,-1):(p.lines.splice(y+1,0,"\"),y++);return{oldFileName:e,newFileName:n,oldHeader:t,newHeader:l,hunks:m}}}function Ye(e,n){var i,r,t,l,o,s;if(n||(n=mn),Array.isArray(e)){if(e.length>1&&!n.includeFileHeaders&&!e.every(f=>f.isGit))throw new Error("Cannot omit file headers on a multi-file patch. (The result would be unparseable; how would a tool trying to apply the patch know which changes are to which file?)");return e.map(f=>Ye(f,n)).join(`
19
+ `)}const a=[];if(e.isGit){if(n=mn,!e.oldFileName)throw new Error("oldFileName must be specified for Git patches");if(!e.newFileName)throw new Error("newFileName must be specified for Git patches");let f=e.oldFileName,c=e.newFileName;e.isCreate&&f==="/dev/null"?f=c.replace(/^b\//,"a/"):e.isDelete&&c==="/dev/null"&&(c=f.replace(/^a\//,"b/")),a.push("diff --git "+ue(f)+" "+ue(c)),e.isDelete&&a.push("deleted file mode "+((i=e.oldMode)!==null&&i!==void 0?i:"100644")),e.isCreate&&a.push("new file mode "+((r=e.newMode)!==null&&r!==void 0?r:"100644")),e.oldMode&&e.newMode&&!e.isDelete&&!e.isCreate&&(a.push("old mode "+e.oldMode),a.push("new mode "+e.newMode)),e.isRename&&(a.push("rename from "+ue(((t=e.oldFileName)!==null&&t!==void 0?t:"").replace(/^a\//,""))),a.push("rename to "+ue(((l=e.newFileName)!==null&&l!==void 0?l:"").replace(/^b\//,"")))),e.isCopy&&(a.push("copy from "+ue(((o=e.oldFileName)!==null&&o!==void 0?o:"").replace(/^a\//,""))),a.push("copy to "+ue(((s=e.newFileName)!==null&&s!==void 0?s:"").replace(/^b\//,""))))}else n.includeIndex&&e.oldFileName==e.newFileName&&e.oldFileName!==void 0&&a.push("Index: "+e.oldFileName),n.includeUnderline&&a.push("===================================================================");const u=e.hunks.length>0;n.includeFileHeaders&&e.oldFileName!==void 0&&e.newFileName!==void 0&&(!e.isGit||u)&&(a.push("--- "+ue(e.oldFileName)+(e.oldHeader?" "+e.oldHeader:"")),a.push("+++ "+ue(e.newFileName)+(e.newHeader?" "+e.newHeader:"")));for(let f=0;f<e.hunks.length;f++){const c=e.hunks[f],m=c.oldLines===0?c.oldStart-1:c.oldStart,x=c.newLines===0?c.newStart-1:c.newStart;a.push("@@ -"+m+","+c.oldLines+" +"+x+","+c.newLines+" @@");for(const h of c.lines)a.push(h)}return a.join(`
20
+ `)+`
21
+ `}function Ri(e,n,i,r,t,l,o){if(typeof o=="function"&&(o={callback:o}),o!=null&&o.callback){const{callback:s}=o;xn(e,n,i,r,t,l,Object.assign(Object.assign({},o),{callback:a=>{s(a?Ye(a,o.headerOptions):void 0)}}))}else{const s=xn(e,n,i,r,t,l,o);return s?Ye(s,o==null?void 0:o.headerOptions):void 0}}function lt(e,n,i,r,t,l){return Ri(e,e,n,i,r,t,l)}function st(e){const n=e.endsWith(`
22
+ `),i=e.split(`
23
+ `).map(r=>r+`
24
+ `);return n?i.pop():i.push(i.pop().slice(0,-1)),i}function at(e){const n=[];let i,r;for(let t=0;t<e.length;t++)i=e[t],i.added?r=1:i.removed?r=-1:r=0,n.push([r,i.value]);return n}function ct(e){const n=[];for(let i=0;i<e.length;i++){const r=e[i];r.added?n.push("<ins>"):r.removed&&n.push("<del>"),n.push(ut(r.value)),r.added?n.push("</ins>"):r.removed&&n.push("</del>")}return n.join("")}function ut(e){let n=e;return n=n.replace(/&/g,"&amp;"),n=n.replace(/</g,"&lt;"),n=n.replace(/>/g,"&gt;"),n=n.replace(/"/g,"&quot;"),n}const ft=Object.freeze(Object.defineProperty({__proto__:null,Diff:ae,FILE_HEADERS_ONLY:tt,INCLUDE_HEADERS:mn,OMIT_HEADERS:ot,applyPatch:Li,applyPatches:it,arrayDiff:Ti,canonicalize:Ue,characterDiff:vi,convertChangesToDMP:at,convertChangesToXML:ct,createPatch:lt,createTwoFilesPatch:Ri,cssDiff:ki,diffArrays:Jr,diffChars:Rr,diffCss:zr,diffJson:Kr,diffLines:le,diffSentences:Ur,diffTrimmedLines:$r,diffWords:Hr,diffWordsWithSpace:Ci,formatPatch:Ye,jsonDiff:Ei,lineDiff:En,parsePatch:Tn,reversePatch:Oi,sentenceDiff:Si,structuredPatch:xn,wordDiff:wi,wordsWithSpaceDiff:bi},Symbol.toStringTag,{value:"Module"}));/*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT */function Di(e){return typeof e>"u"||e===null}function dt(e){return typeof e=="object"&&e!==null}function ht(e){return Array.isArray(e)?e:Di(e)?[]:[e]}function pt(e,n){var i,r,t,l;if(n)for(l=Object.keys(n),i=0,r=l.length;i<r;i+=1)t=l[i],e[t]=n[t];return e}function gt(e,n){var i="",r;for(r=0;r<n;r+=1)i+=e;return i}function mt(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var xt=Di,vt=dt,yt=ht,wt=gt,bt=mt,Ct=pt,M={isNothing:xt,isObject:vt,toArray:yt,repeat:wt,isNegativeZero:bt,extend:Ct};function Ii(e,n){var i="",r=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(i+='in "'+e.mark.name+'" '),i+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!n&&e.mark.snippet&&(i+=`
25
+
26
+ `+e.mark.snippet),r+" "+i):r}function Re(e,n){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=n,this.message=Ii(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Re.prototype=Object.create(Error.prototype);Re.prototype.constructor=Re;Re.prototype.toString=function(n){return this.name+": "+Ii(this,n)};var z=Re;function an(e,n,i,r,t){var l="",o="",s=Math.floor(t/2)-1;return r-n>s&&(l=" ... ",n=r-s+l.length),i-r>s&&(o=" ...",i=r+s-o.length),{str:l+e.slice(n,i).replace(/\t/g,"→")+o,pos:r-n+l.length}}function cn(e,n){return M.repeat(" ",n-e.length)+e}function At(e,n){if(n=Object.create(n||null),!e.buffer)return null;n.maxLength||(n.maxLength=79),typeof n.indent!="number"&&(n.indent=1),typeof n.linesBefore!="number"&&(n.linesBefore=3),typeof n.linesAfter!="number"&&(n.linesAfter=2);for(var i=/\r?\n|\r|\0/g,r=[0],t=[],l,o=-1;l=i.exec(e.buffer);)t.push(l.index),r.push(l.index+l[0].length),e.position<=l.index&&o<0&&(o=r.length-2);o<0&&(o=r.length-1);var s="",a,u,f=Math.min(e.line+n.linesAfter,t.length).toString().length,c=n.maxLength-(n.indent+f+3);for(a=1;a<=n.linesBefore&&!(o-a<0);a++)u=an(e.buffer,r[o-a],t[o-a],e.position-(r[o]-r[o-a]),c),s=M.repeat(" ",n.indent)+cn((e.line-a+1).toString(),f)+" | "+u.str+`
27
+ `+s;for(u=an(e.buffer,r[o],t[o],e.position,c),s+=M.repeat(" ",n.indent)+cn((e.line+1).toString(),f)+" | "+u.str+`
28
+ `,s+=M.repeat("-",n.indent+f+3+u.pos)+`^
29
+ `,a=1;a<=n.linesAfter&&!(o+a>=t.length);a++)u=an(e.buffer,r[o+a],t[o+a],e.position-(r[o]-r[o+a]),c),s+=M.repeat(" ",n.indent)+cn((e.line+a+1).toString(),f)+" | "+u.str+`
30
+ `;return s.replace(/\n$/,"")}var St=At,kt=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],Et=["scalar","sequence","mapping"];function Tt(e){var n={};return e!==null&&Object.keys(e).forEach(function(i){e[i].forEach(function(r){n[String(r)]=i})}),n}function Ft(e,n){if(n=n||{},Object.keys(n).forEach(function(i){if(kt.indexOf(i)===-1)throw new z('Unknown option "'+i+'" is met in definition of "'+e+'" YAML type.')}),this.options=n,this.tag=e,this.kind=n.kind||null,this.resolve=n.resolve||function(){return!0},this.construct=n.construct||function(i){return i},this.instanceOf=n.instanceOf||null,this.predicate=n.predicate||null,this.represent=n.represent||null,this.representName=n.representName||null,this.defaultStyle=n.defaultStyle||null,this.multi=n.multi||!1,this.styleAliases=Tt(n.styleAliases||null),Et.indexOf(this.kind)===-1)throw new z('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var P=Ft;function Un(e,n){var i=[];return e[n].forEach(function(r){var t=i.length;i.forEach(function(l,o){l.tag===r.tag&&l.kind===r.kind&&l.multi===r.multi&&(t=o)}),i[t]=r}),i}function Nt(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},n,i;function r(t){t.multi?(e.multi[t.kind].push(t),e.multi.fallback.push(t)):e[t.kind][t.tag]=e.fallback[t.tag]=t}for(n=0,i=arguments.length;n<i;n+=1)arguments[n].forEach(r);return e}function vn(e){return this.extend(e)}vn.prototype.extend=function(n){var i=[],r=[];if(n instanceof P)r.push(n);else if(Array.isArray(n))r=r.concat(n);else if(n&&(Array.isArray(n.implicit)||Array.isArray(n.explicit)))n.implicit&&(i=i.concat(n.implicit)),n.explicit&&(r=r.concat(n.explicit));else throw new z("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");i.forEach(function(l){if(!(l instanceof P))throw new z("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(l.loadKind&&l.loadKind!=="scalar")throw new z("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(l.multi)throw new z("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),r.forEach(function(l){if(!(l instanceof P))throw new z("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var t=Object.create(vn.prototype);return t.implicit=(this.implicit||[]).concat(i),t.explicit=(this.explicit||[]).concat(r),t.compiledImplicit=Un(t,"implicit"),t.compiledExplicit=Un(t,"explicit"),t.compiledTypeMap=Nt(t.compiledImplicit,t.compiledExplicit),t};var Lt=vn,Ot=new P("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),Rt=new P("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),Dt=new P("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),It=new Lt({explicit:[Ot,Rt,Dt]});function _t(e){if(e===null)return!0;var n=e.length;return n===1&&e==="~"||n===4&&(e==="null"||e==="Null"||e==="NULL")}function Mt(){return null}function jt(e){return e===null}var Ht=new P("tag:yaml.org,2002:null",{kind:"scalar",resolve:_t,construct:Mt,predicate:jt,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function Wt(e){if(e===null)return!1;var n=e.length;return n===4&&(e==="true"||e==="True"||e==="TRUE")||n===5&&(e==="false"||e==="False"||e==="FALSE")}function Bt(e){return e==="true"||e==="True"||e==="TRUE"}function Pt(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var $t=new P("tag:yaml.org,2002:bool",{kind:"scalar",resolve:Wt,construct:Bt,predicate:Pt,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function Gt(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function Vt(e){return 48<=e&&e<=55}function Ut(e){return 48<=e&&e<=57}function Yt(e){if(e===null)return!1;var n=e.length,i=0,r=!1,t;if(!n)return!1;if(t=e[i],(t==="-"||t==="+")&&(t=e[++i]),t==="0"){if(i+1===n)return!0;if(t=e[++i],t==="b"){for(i++;i<n;i++)if(t=e[i],t!=="_"){if(t!=="0"&&t!=="1")return!1;r=!0}return r&&t!=="_"}if(t==="x"){for(i++;i<n;i++)if(t=e[i],t!=="_"){if(!Gt(e.charCodeAt(i)))return!1;r=!0}return r&&t!=="_"}if(t==="o"){for(i++;i<n;i++)if(t=e[i],t!=="_"){if(!Vt(e.charCodeAt(i)))return!1;r=!0}return r&&t!=="_"}}if(t==="_")return!1;for(;i<n;i++)if(t=e[i],t!=="_"){if(!Ut(e.charCodeAt(i)))return!1;r=!0}return!(!r||t==="_")}function zt(e){var n=e,i=1,r;if(n.indexOf("_")!==-1&&(n=n.replace(/_/g,"")),r=n[0],(r==="-"||r==="+")&&(r==="-"&&(i=-1),n=n.slice(1),r=n[0]),n==="0")return 0;if(r==="0"){if(n[1]==="b")return i*parseInt(n.slice(2),2);if(n[1]==="x")return i*parseInt(n.slice(2),16);if(n[1]==="o")return i*parseInt(n.slice(2),8)}return i*parseInt(n,10)}function qt(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!M.isNegativeZero(e)}var Kt=new P("tag:yaml.org,2002:int",{kind:"scalar",resolve:Yt,construct:zt,predicate:qt,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Zt=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Jt(e){return!(e===null||!Zt.test(e)||e[e.length-1]==="_")}function Qt(e){var n,i;return n=e.replace(/_/g,"").toLowerCase(),i=n[0]==="-"?-1:1,"+-".indexOf(n[0])>=0&&(n=n.slice(1)),n===".inf"?i===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:n===".nan"?NaN:i*parseFloat(n,10)}var Xt=/^[-+]?[0-9]+e/;function eo(e,n){var i;if(isNaN(e))switch(n){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(n){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(n){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(M.isNegativeZero(e))return"-0.0";return i=e.toString(10),Xt.test(i)?i.replace("e",".e"):i}function no(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||M.isNegativeZero(e))}var io=new P("tag:yaml.org,2002:float",{kind:"scalar",resolve:Jt,construct:Qt,predicate:no,represent:eo,defaultStyle:"lowercase"}),ro=It.extend({implicit:[Ht,$t,Kt,io]}),to=ro,_i=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Mi=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function oo(e){return e===null?!1:_i.exec(e)!==null||Mi.exec(e)!==null}function lo(e){var n,i,r,t,l,o,s,a=0,u=null,f,c,m;if(n=_i.exec(e),n===null&&(n=Mi.exec(e)),n===null)throw new Error("Date resolve error");if(i=+n[1],r=+n[2]-1,t=+n[3],!n[4])return new Date(Date.UTC(i,r,t));if(l=+n[4],o=+n[5],s=+n[6],n[7]){for(a=n[7].slice(0,3);a.length<3;)a+="0";a=+a}return n[9]&&(f=+n[10],c=+(n[11]||0),u=(f*60+c)*6e4,n[9]==="-"&&(u=-u)),m=new Date(Date.UTC(i,r,t,l,o,s,a)),u&&m.setTime(m.getTime()-u),m}function so(e){return e.toISOString()}var ao=new P("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:oo,construct:lo,instanceOf:Date,represent:so});function co(e){return e==="<<"||e===null}var uo=new P("tag:yaml.org,2002:merge",{kind:"scalar",resolve:co}),Fn=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
31
+ \r`;function fo(e){if(e===null)return!1;var n,i,r=0,t=e.length,l=Fn;for(i=0;i<t;i++)if(n=l.indexOf(e.charAt(i)),!(n>64)){if(n<0)return!1;r+=6}return r%8===0}function ho(e){var n,i,r=e.replace(/[\r\n=]/g,""),t=r.length,l=Fn,o=0,s=[];for(n=0;n<t;n++)n%4===0&&n&&(s.push(o>>16&255),s.push(o>>8&255),s.push(o&255)),o=o<<6|l.indexOf(r.charAt(n));return i=t%4*6,i===0?(s.push(o>>16&255),s.push(o>>8&255),s.push(o&255)):i===18?(s.push(o>>10&255),s.push(o>>2&255)):i===12&&s.push(o>>4&255),new Uint8Array(s)}function po(e){var n="",i=0,r,t,l=e.length,o=Fn;for(r=0;r<l;r++)r%3===0&&r&&(n+=o[i>>18&63],n+=o[i>>12&63],n+=o[i>>6&63],n+=o[i&63]),i=(i<<8)+e[r];return t=l%3,t===0?(n+=o[i>>18&63],n+=o[i>>12&63],n+=o[i>>6&63],n+=o[i&63]):t===2?(n+=o[i>>10&63],n+=o[i>>4&63],n+=o[i<<2&63],n+=o[64]):t===1&&(n+=o[i>>2&63],n+=o[i<<4&63],n+=o[64],n+=o[64]),n}function go(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var mo=new P("tag:yaml.org,2002:binary",{kind:"scalar",resolve:fo,construct:ho,predicate:go,represent:po}),xo=Object.prototype.hasOwnProperty,vo=Object.prototype.toString;function yo(e){if(e===null)return!0;var n=[],i,r,t,l,o,s=e;for(i=0,r=s.length;i<r;i+=1){if(t=s[i],o=!1,vo.call(t)!=="[object Object]")return!1;for(l in t)if(xo.call(t,l))if(!o)o=!0;else return!1;if(!o)return!1;if(n.indexOf(l)===-1)n.push(l);else return!1}return!0}function wo(e){return e!==null?e:[]}var bo=new P("tag:yaml.org,2002:omap",{kind:"sequence",resolve:yo,construct:wo}),Co=Object.prototype.toString;function Ao(e){if(e===null)return!0;var n,i,r,t,l,o=e;for(l=new Array(o.length),n=0,i=o.length;n<i;n+=1){if(r=o[n],Co.call(r)!=="[object Object]"||(t=Object.keys(r),t.length!==1))return!1;l[n]=[t[0],r[t[0]]]}return!0}function So(e){if(e===null)return[];var n,i,r,t,l,o=e;for(l=new Array(o.length),n=0,i=o.length;n<i;n+=1)r=o[n],t=Object.keys(r),l[n]=[t[0],r[t[0]]];return l}var ko=new P("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Ao,construct:So}),Eo=Object.prototype.hasOwnProperty;function To(e){if(e===null)return!0;var n,i=e;for(n in i)if(Eo.call(i,n)&&i[n]!==null)return!1;return!0}function Fo(e){return e!==null?e:{}}var No=new P("tag:yaml.org,2002:set",{kind:"mapping",resolve:To,construct:Fo}),ji=to.extend({implicit:[ao,uo],explicit:[mo,bo,ko,No]}),he=Object.prototype.hasOwnProperty,ze=1,Hi=2,Wi=3,qe=4,un=1,Lo=2,Yn=3,Oo=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Ro=/[\x85\u2028\u2029]/,Do=/[,\[\]\{\}]/,Bi=/^(?:!|!!|![a-z\-]+!)$/i,Pi=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function zn(e){return Object.prototype.toString.call(e)}function ie(e){return e===10||e===13}function ge(e){return e===9||e===32}function q(e){return e===9||e===32||e===10||e===13}function we(e){return e===44||e===91||e===93||e===123||e===125}function Io(e){var n;return 48<=e&&e<=57?e-48:(n=e|32,97<=n&&n<=102?n-97+10:-1)}function _o(e){return e===120?2:e===117?4:e===85?8:0}function Mo(e){return 48<=e&&e<=57?e-48:-1}function qn(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
32
+ `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"…":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}function jo(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function $i(e,n,i){n==="__proto__"?Object.defineProperty(e,n,{configurable:!0,enumerable:!0,writable:!0,value:i}):e[n]=i}var Gi=new Array(256),Vi=new Array(256);for(var xe=0;xe<256;xe++)Gi[xe]=qn(xe)?1:0,Vi[xe]=qn(xe);function Ho(e,n){this.input=e,this.filename=n.filename||null,this.schema=n.schema||ji,this.onWarning=n.onWarning||null,this.legacy=n.legacy||!1,this.json=n.json||!1,this.listener=n.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function Ui(e,n){var i={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return i.snippet=St(i),new z(n,i)}function S(e,n){throw Ui(e,n)}function Ke(e,n){e.onWarning&&e.onWarning.call(null,Ui(e,n))}var Kn={YAML:function(n,i,r){var t,l,o;n.version!==null&&S(n,"duplication of %YAML directive"),r.length!==1&&S(n,"YAML directive accepts exactly one argument"),t=/^([0-9]+)\.([0-9]+)$/.exec(r[0]),t===null&&S(n,"ill-formed argument of the YAML directive"),l=parseInt(t[1],10),o=parseInt(t[2],10),l!==1&&S(n,"unacceptable YAML version of the document"),n.version=r[0],n.checkLineBreaks=o<2,o!==1&&o!==2&&Ke(n,"unsupported YAML version of the document")},TAG:function(n,i,r){var t,l;r.length!==2&&S(n,"TAG directive accepts exactly two arguments"),t=r[0],l=r[1],Bi.test(t)||S(n,"ill-formed tag handle (first argument) of the TAG directive"),he.call(n.tagMap,t)&&S(n,'there is a previously declared suffix for "'+t+'" tag handle'),Pi.test(l)||S(n,"ill-formed tag prefix (second argument) of the TAG directive");try{l=decodeURIComponent(l)}catch{S(n,"tag prefix is malformed: "+l)}n.tagMap[t]=l}};function de(e,n,i,r){var t,l,o,s;if(n<i){if(s=e.input.slice(n,i),r)for(t=0,l=s.length;t<l;t+=1)o=s.charCodeAt(t),o===9||32<=o&&o<=1114111||S(e,"expected valid JSON character");else Oo.test(s)&&S(e,"the stream contains non-printable characters");e.result+=s}}function Zn(e,n,i,r){var t,l,o,s;for(M.isObject(i)||S(e,"cannot merge mappings; the provided source object is unacceptable"),t=Object.keys(i),o=0,s=t.length;o<s;o+=1)l=t[o],he.call(n,l)||($i(n,l,i[l]),r[l]=!0)}function be(e,n,i,r,t,l,o,s,a){var u,f;if(Array.isArray(t))for(t=Array.prototype.slice.call(t),u=0,f=t.length;u<f;u+=1)Array.isArray(t[u])&&S(e,"nested arrays are not supported inside keys"),typeof t=="object"&&zn(t[u])==="[object Object]"&&(t[u]="[object Object]");if(typeof t=="object"&&zn(t)==="[object Object]"&&(t="[object Object]"),t=String(t),n===null&&(n={}),r==="tag:yaml.org,2002:merge")if(Array.isArray(l))for(u=0,f=l.length;u<f;u+=1)Zn(e,n,l[u],i);else Zn(e,n,l,i);else!e.json&&!he.call(i,t)&&he.call(n,t)&&(e.line=o||e.line,e.lineStart=s||e.lineStart,e.position=a||e.position,S(e,"duplicated mapping key")),$i(n,t,l),delete i[t];return n}function Nn(e){var n;n=e.input.charCodeAt(e.position),n===10?e.position++:n===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):S(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function _(e,n,i){for(var r=0,t=e.input.charCodeAt(e.position);t!==0;){for(;ge(t);)t===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),t=e.input.charCodeAt(++e.position);if(n&&t===35)do t=e.input.charCodeAt(++e.position);while(t!==10&&t!==13&&t!==0);if(ie(t))for(Nn(e),t=e.input.charCodeAt(e.position),r++,e.lineIndent=0;t===32;)e.lineIndent++,t=e.input.charCodeAt(++e.position);else break}return i!==-1&&r!==0&&e.lineIndent<i&&Ke(e,"deficient indentation"),r}function en(e){var n=e.position,i;return i=e.input.charCodeAt(n),!!((i===45||i===46)&&i===e.input.charCodeAt(n+1)&&i===e.input.charCodeAt(n+2)&&(n+=3,i=e.input.charCodeAt(n),i===0||q(i)))}function Ln(e,n){n===1?e.result+=" ":n>1&&(e.result+=M.repeat(`
33
+ `,n-1))}function Wo(e,n,i){var r,t,l,o,s,a,u,f,c=e.kind,m=e.result,x;if(x=e.input.charCodeAt(e.position),q(x)||we(x)||x===35||x===38||x===42||x===33||x===124||x===62||x===39||x===34||x===37||x===64||x===96||(x===63||x===45)&&(t=e.input.charCodeAt(e.position+1),q(t)||i&&we(t)))return!1;for(e.kind="scalar",e.result="",l=o=e.position,s=!1;x!==0;){if(x===58){if(t=e.input.charCodeAt(e.position+1),q(t)||i&&we(t))break}else if(x===35){if(r=e.input.charCodeAt(e.position-1),q(r))break}else{if(e.position===e.lineStart&&en(e)||i&&we(x))break;if(ie(x))if(a=e.line,u=e.lineStart,f=e.lineIndent,_(e,!1,-1),e.lineIndent>=n){s=!0,x=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=a,e.lineStart=u,e.lineIndent=f;break}}s&&(de(e,l,o,!1),Ln(e,e.line-a),l=o=e.position,s=!1),ge(x)||(o=e.position+1),x=e.input.charCodeAt(++e.position)}return de(e,l,o,!1),e.result?!0:(e.kind=c,e.result=m,!1)}function Bo(e,n){var i,r,t;if(i=e.input.charCodeAt(e.position),i!==39)return!1;for(e.kind="scalar",e.result="",e.position++,r=t=e.position;(i=e.input.charCodeAt(e.position))!==0;)if(i===39)if(de(e,r,e.position,!0),i=e.input.charCodeAt(++e.position),i===39)r=e.position,e.position++,t=e.position;else return!0;else ie(i)?(de(e,r,t,!0),Ln(e,_(e,!1,n)),r=t=e.position):e.position===e.lineStart&&en(e)?S(e,"unexpected end of the document within a single quoted scalar"):(e.position++,t=e.position);S(e,"unexpected end of the stream within a single quoted scalar")}function Po(e,n){var i,r,t,l,o,s;if(s=e.input.charCodeAt(e.position),s!==34)return!1;for(e.kind="scalar",e.result="",e.position++,i=r=e.position;(s=e.input.charCodeAt(e.position))!==0;){if(s===34)return de(e,i,e.position,!0),e.position++,!0;if(s===92){if(de(e,i,e.position,!0),s=e.input.charCodeAt(++e.position),ie(s))_(e,!1,n);else if(s<256&&Gi[s])e.result+=Vi[s],e.position++;else if((o=_o(s))>0){for(t=o,l=0;t>0;t--)s=e.input.charCodeAt(++e.position),(o=Io(s))>=0?l=(l<<4)+o:S(e,"expected hexadecimal character");e.result+=jo(l),e.position++}else S(e,"unknown escape sequence");i=r=e.position}else ie(s)?(de(e,i,r,!0),Ln(e,_(e,!1,n)),i=r=e.position):e.position===e.lineStart&&en(e)?S(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}S(e,"unexpected end of the stream within a double quoted scalar")}function $o(e,n){var i=!0,r,t,l,o=e.tag,s,a=e.anchor,u,f,c,m,x,h=Object.create(null),d,g,v,p;if(p=e.input.charCodeAt(e.position),p===91)f=93,x=!1,s=[];else if(p===123)f=125,x=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),p=e.input.charCodeAt(++e.position);p!==0;){if(_(e,!0,n),p=e.input.charCodeAt(e.position),p===f)return e.position++,e.tag=o,e.anchor=a,e.kind=x?"mapping":"sequence",e.result=s,!0;i?p===44&&S(e,"expected the node content, but found ','"):S(e,"missed comma between flow collection entries"),g=d=v=null,c=m=!1,p===63&&(u=e.input.charCodeAt(e.position+1),q(u)&&(c=m=!0,e.position++,_(e,!0,n))),r=e.line,t=e.lineStart,l=e.position,Se(e,n,ze,!1,!0),g=e.tag,d=e.result,_(e,!0,n),p=e.input.charCodeAt(e.position),(m||e.line===r)&&p===58&&(c=!0,p=e.input.charCodeAt(++e.position),_(e,!0,n),Se(e,n,ze,!1,!0),v=e.result),x?be(e,s,h,g,d,v,r,t,l):c?s.push(be(e,null,h,g,d,v,r,t,l)):s.push(d),_(e,!0,n),p=e.input.charCodeAt(e.position),p===44?(i=!0,p=e.input.charCodeAt(++e.position)):i=!1}S(e,"unexpected end of the stream within a flow collection")}function Go(e,n){var i,r,t=un,l=!1,o=!1,s=n,a=0,u=!1,f,c;if(c=e.input.charCodeAt(e.position),c===124)r=!1;else if(c===62)r=!0;else return!1;for(e.kind="scalar",e.result="";c!==0;)if(c=e.input.charCodeAt(++e.position),c===43||c===45)un===t?t=c===43?Yn:Lo:S(e,"repeat of a chomping mode identifier");else if((f=Mo(c))>=0)f===0?S(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?S(e,"repeat of an indentation width identifier"):(s=n+f-1,o=!0);else break;if(ge(c)){do c=e.input.charCodeAt(++e.position);while(ge(c));if(c===35)do c=e.input.charCodeAt(++e.position);while(!ie(c)&&c!==0)}for(;c!==0;){for(Nn(e),e.lineIndent=0,c=e.input.charCodeAt(e.position);(!o||e.lineIndent<s)&&c===32;)e.lineIndent++,c=e.input.charCodeAt(++e.position);if(!o&&e.lineIndent>s&&(s=e.lineIndent),ie(c)){a++;continue}if(e.lineIndent<s){t===Yn?e.result+=M.repeat(`
34
+ `,l?1+a:a):t===un&&l&&(e.result+=`
35
+ `);break}for(r?ge(c)?(u=!0,e.result+=M.repeat(`
36
+ `,l?1+a:a)):u?(u=!1,e.result+=M.repeat(`
37
+ `,a+1)):a===0?l&&(e.result+=" "):e.result+=M.repeat(`
38
+ `,a):e.result+=M.repeat(`
39
+ `,l?1+a:a),l=!0,o=!0,a=0,i=e.position;!ie(c)&&c!==0;)c=e.input.charCodeAt(++e.position);de(e,i,e.position,!1)}return!0}function Jn(e,n){var i,r=e.tag,t=e.anchor,l=[],o,s=!1,a;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=l),a=e.input.charCodeAt(e.position);a!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,S(e,"tab characters must not be used in indentation")),!(a!==45||(o=e.input.charCodeAt(e.position+1),!q(o))));){if(s=!0,e.position++,_(e,!0,-1)&&e.lineIndent<=n){l.push(null),a=e.input.charCodeAt(e.position);continue}if(i=e.line,Se(e,n,Wi,!1,!0),l.push(e.result),_(e,!0,-1),a=e.input.charCodeAt(e.position),(e.line===i||e.lineIndent>n)&&a!==0)S(e,"bad indentation of a sequence entry");else if(e.lineIndent<n)break}return s?(e.tag=r,e.anchor=t,e.kind="sequence",e.result=l,!0):!1}function Vo(e,n,i){var r,t,l,o,s,a,u=e.tag,f=e.anchor,c={},m=Object.create(null),x=null,h=null,d=null,g=!1,v=!1,p;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=c),p=e.input.charCodeAt(e.position);p!==0;){if(!g&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,S(e,"tab characters must not be used in indentation")),r=e.input.charCodeAt(e.position+1),l=e.line,(p===63||p===58)&&q(r))p===63?(g&&(be(e,c,m,x,h,null,o,s,a),x=h=d=null),v=!0,g=!0,t=!0):g?(g=!1,t=!0):S(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,p=r;else{if(o=e.line,s=e.lineStart,a=e.position,!Se(e,i,Hi,!1,!0))break;if(e.line===l){for(p=e.input.charCodeAt(e.position);ge(p);)p=e.input.charCodeAt(++e.position);if(p===58)p=e.input.charCodeAt(++e.position),q(p)||S(e,"a whitespace character is expected after the key-value separator within a block mapping"),g&&(be(e,c,m,x,h,null,o,s,a),x=h=d=null),v=!0,g=!1,t=!1,x=e.tag,h=e.result;else if(v)S(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=u,e.anchor=f,!0}else if(v)S(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=u,e.anchor=f,!0}if((e.line===l||e.lineIndent>n)&&(g&&(o=e.line,s=e.lineStart,a=e.position),Se(e,n,qe,!0,t)&&(g?h=e.result:d=e.result),g||(be(e,c,m,x,h,d,o,s,a),x=h=d=null),_(e,!0,-1),p=e.input.charCodeAt(e.position)),(e.line===l||e.lineIndent>n)&&p!==0)S(e,"bad indentation of a mapping entry");else if(e.lineIndent<n)break}return g&&be(e,c,m,x,h,null,o,s,a),v&&(e.tag=u,e.anchor=f,e.kind="mapping",e.result=c),v}function Uo(e){var n,i=!1,r=!1,t,l,o;if(o=e.input.charCodeAt(e.position),o!==33)return!1;if(e.tag!==null&&S(e,"duplication of a tag property"),o=e.input.charCodeAt(++e.position),o===60?(i=!0,o=e.input.charCodeAt(++e.position)):o===33?(r=!0,t="!!",o=e.input.charCodeAt(++e.position)):t="!",n=e.position,i){do o=e.input.charCodeAt(++e.position);while(o!==0&&o!==62);e.position<e.length?(l=e.input.slice(n,e.position),o=e.input.charCodeAt(++e.position)):S(e,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!q(o);)o===33&&(r?S(e,"tag suffix cannot contain exclamation marks"):(t=e.input.slice(n-1,e.position+1),Bi.test(t)||S(e,"named tag handle cannot contain such characters"),r=!0,n=e.position+1)),o=e.input.charCodeAt(++e.position);l=e.input.slice(n,e.position),Do.test(l)&&S(e,"tag suffix cannot contain flow indicator characters")}l&&!Pi.test(l)&&S(e,"tag name cannot contain such characters: "+l);try{l=decodeURIComponent(l)}catch{S(e,"tag name is malformed: "+l)}return i?e.tag=l:he.call(e.tagMap,t)?e.tag=e.tagMap[t]+l:t==="!"?e.tag="!"+l:t==="!!"?e.tag="tag:yaml.org,2002:"+l:S(e,'undeclared tag handle "'+t+'"'),!0}function Yo(e){var n,i;if(i=e.input.charCodeAt(e.position),i!==38)return!1;for(e.anchor!==null&&S(e,"duplication of an anchor property"),i=e.input.charCodeAt(++e.position),n=e.position;i!==0&&!q(i)&&!we(i);)i=e.input.charCodeAt(++e.position);return e.position===n&&S(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(n,e.position),!0}function zo(e){var n,i,r;if(r=e.input.charCodeAt(e.position),r!==42)return!1;for(r=e.input.charCodeAt(++e.position),n=e.position;r!==0&&!q(r)&&!we(r);)r=e.input.charCodeAt(++e.position);return e.position===n&&S(e,"name of an alias node must contain at least one character"),i=e.input.slice(n,e.position),he.call(e.anchorMap,i)||S(e,'unidentified alias "'+i+'"'),e.result=e.anchorMap[i],_(e,!0,-1),!0}function Se(e,n,i,r,t){var l,o,s,a=1,u=!1,f=!1,c,m,x,h,d,g;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,l=o=s=qe===i||Wi===i,r&&_(e,!0,-1)&&(u=!0,e.lineIndent>n?a=1:e.lineIndent===n?a=0:e.lineIndent<n&&(a=-1)),a===1)for(;Uo(e)||Yo(e);)_(e,!0,-1)?(u=!0,s=l,e.lineIndent>n?a=1:e.lineIndent===n?a=0:e.lineIndent<n&&(a=-1)):s=!1;if(s&&(s=u||t),(a===1||qe===i)&&(ze===i||Hi===i?d=n:d=n+1,g=e.position-e.lineStart,a===1?s&&(Jn(e,g)||Vo(e,g,d))||$o(e,d)?f=!0:(o&&Go(e,d)||Bo(e,d)||Po(e,d)?f=!0:zo(e)?(f=!0,(e.tag!==null||e.anchor!==null)&&S(e,"alias node should not have any properties")):Wo(e,d,ze===i)&&(f=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):a===0&&(f=s&&Jn(e,g))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&S(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),c=0,m=e.implicitTypes.length;c<m;c+=1)if(h=e.implicitTypes[c],h.resolve(e.result)){e.result=h.construct(e.result),e.tag=h.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(he.call(e.typeMap[e.kind||"fallback"],e.tag))h=e.typeMap[e.kind||"fallback"][e.tag];else for(h=null,x=e.typeMap.multi[e.kind||"fallback"],c=0,m=x.length;c<m;c+=1)if(e.tag.slice(0,x[c].tag.length)===x[c].tag){h=x[c];break}h||S(e,"unknown tag !<"+e.tag+">"),e.result!==null&&h.kind!==e.kind&&S(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+h.kind+'", not "'+e.kind+'"'),h.resolve(e.result,e.tag)?(e.result=h.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):S(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||f}function qo(e){var n=e.position,i,r,t,l=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(o=e.input.charCodeAt(e.position))!==0&&(_(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(l=!0,o=e.input.charCodeAt(++e.position),i=e.position;o!==0&&!q(o);)o=e.input.charCodeAt(++e.position);for(r=e.input.slice(i,e.position),t=[],r.length<1&&S(e,"directive name must not be less than one character in length");o!==0;){for(;ge(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!ie(o));break}if(ie(o))break;for(i=e.position;o!==0&&!q(o);)o=e.input.charCodeAt(++e.position);t.push(e.input.slice(i,e.position))}o!==0&&Nn(e),he.call(Kn,r)?Kn[r](e,r,t):Ke(e,'unknown document directive "'+r+'"')}if(_(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,_(e,!0,-1)):l&&S(e,"directives end mark is expected"),Se(e,e.lineIndent-1,qe,!1,!0),_(e,!0,-1),e.checkLineBreaks&&Ro.test(e.input.slice(n,e.position))&&Ke(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&en(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,_(e,!0,-1));return}if(e.position<e.length-1)S(e,"end of the stream or a document separator is expected");else return}function Ko(e,n){e=String(e),n=n||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
40
+ `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var i=new Ho(e,n),r=e.indexOf("\0");for(r!==-1&&(i.position=r,S(i,"null byte is not allowed in input")),i.input+="\0";i.input.charCodeAt(i.position)===32;)i.lineIndent+=1,i.position+=1;for(;i.position<i.length-1;)qo(i);return i.documents}function Zo(e,n){var i=Ko(e,n);if(i.length!==0){if(i.length===1)return i[0];throw new z("expected a single document in the stream, but found more")}}var Jo=Zo,Qo={load:Jo},Yi=Object.prototype.toString,zi=Object.prototype.hasOwnProperty,On=65279,Xo=9,De=10,el=13,nl=32,il=33,rl=34,yn=35,tl=37,ol=38,ll=39,sl=42,qi=44,al=45,Ze=58,cl=61,ul=62,fl=63,dl=64,Ki=91,Zi=93,hl=96,Ji=123,pl=124,Qi=125,$={};$[0]="\\0";$[7]="\\a";$[8]="\\b";$[9]="\\t";$[10]="\\n";$[11]="\\v";$[12]="\\f";$[13]="\\r";$[27]="\\e";$[34]='\\"';$[92]="\\\\";$[133]="\\N";$[160]="\\_";$[8232]="\\L";$[8233]="\\P";var gl=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],ml=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function xl(e,n){var i,r,t,l,o,s,a;if(n===null)return{};for(i={},r=Object.keys(n),t=0,l=r.length;t<l;t+=1)o=r[t],s=String(n[o]),o.slice(0,2)==="!!"&&(o="tag:yaml.org,2002:"+o.slice(2)),a=e.compiledTypeMap.fallback[o],a&&zi.call(a.styleAliases,s)&&(s=a.styleAliases[s]),i[o]=s;return i}function vl(e){var n,i,r;if(n=e.toString(16).toUpperCase(),e<=255)i="x",r=2;else if(e<=65535)i="u",r=4;else if(e<=4294967295)i="U",r=8;else throw new z("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+i+M.repeat("0",r-n.length)+n}var yl=1,Ie=2;function wl(e){this.schema=e.schema||ji,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=M.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=xl(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?Ie:yl,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function Qn(e,n){for(var i=M.repeat(" ",n),r=0,t=-1,l="",o,s=e.length;r<s;)t=e.indexOf(`
41
+ `,r),t===-1?(o=e.slice(r),r=s):(o=e.slice(r,t+1),r=t+1),o.length&&o!==`
42
+ `&&(l+=i),l+=o;return l}function wn(e,n){return`
43
+ `+M.repeat(" ",e.indent*n)}function bl(e,n){var i,r,t;for(i=0,r=e.implicitTypes.length;i<r;i+=1)if(t=e.implicitTypes[i],t.resolve(n))return!0;return!1}function Je(e){return e===nl||e===Xo}function _e(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==On||65536<=e&&e<=1114111}function Xn(e){return _e(e)&&e!==On&&e!==el&&e!==De}function ei(e,n,i){var r=Xn(e),t=r&&!Je(e);return(i?r:r&&e!==qi&&e!==Ki&&e!==Zi&&e!==Ji&&e!==Qi)&&e!==yn&&!(n===Ze&&!t)||Xn(n)&&!Je(n)&&e===yn||n===Ze&&t}function Cl(e){return _e(e)&&e!==On&&!Je(e)&&e!==al&&e!==fl&&e!==Ze&&e!==qi&&e!==Ki&&e!==Zi&&e!==Ji&&e!==Qi&&e!==yn&&e!==ol&&e!==sl&&e!==il&&e!==pl&&e!==cl&&e!==ul&&e!==ll&&e!==rl&&e!==tl&&e!==dl&&e!==hl}function Al(e){return!Je(e)&&e!==Ze}function Le(e,n){var i=e.charCodeAt(n),r;return i>=55296&&i<=56319&&n+1<e.length&&(r=e.charCodeAt(n+1),r>=56320&&r<=57343)?(i-55296)*1024+r-56320+65536:i}function Xi(e){var n=/^\n* /;return n.test(e)}var er=1,bn=2,nr=3,ir=4,ye=5;function Sl(e,n,i,r,t,l,o,s){var a,u=0,f=null,c=!1,m=!1,x=r!==-1,h=-1,d=Cl(Le(e,0))&&Al(Le(e,e.length-1));if(n||o)for(a=0;a<e.length;u>=65536?a+=2:a++){if(u=Le(e,a),!_e(u))return ye;d=d&&ei(u,f,s),f=u}else{for(a=0;a<e.length;u>=65536?a+=2:a++){if(u=Le(e,a),u===De)c=!0,x&&(m=m||a-h-1>r&&e[h+1]!==" ",h=a);else if(!_e(u))return ye;d=d&&ei(u,f,s),f=u}m=m||x&&a-h-1>r&&e[h+1]!==" "}return!c&&!m?d&&!o&&!t(e)?er:l===Ie?ye:bn:i>9&&Xi(e)?ye:o?l===Ie?ye:bn:m?ir:nr}function kl(e,n,i,r,t){e.dump=(function(){if(n.length===0)return e.quotingType===Ie?'""':"''";if(!e.noCompatMode&&(gl.indexOf(n)!==-1||ml.test(n)))return e.quotingType===Ie?'"'+n+'"':"'"+n+"'";var l=e.indent*Math.max(1,i),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-l),s=r||e.flowLevel>-1&&i>=e.flowLevel;function a(u){return bl(e,u)}switch(Sl(n,s,e.indent,o,a,e.quotingType,e.forceQuotes&&!r,t)){case er:return n;case bn:return"'"+n.replace(/'/g,"''")+"'";case nr:return"|"+ni(n,e.indent)+ii(Qn(n,l));case ir:return">"+ni(n,e.indent)+ii(Qn(El(n,o),l));case ye:return'"'+Tl(n)+'"';default:throw new z("impossible error: invalid scalar style")}})()}function ni(e,n){var i=Xi(e)?String(n):"",r=e[e.length-1]===`
44
+ `,t=r&&(e[e.length-2]===`
45
+ `||e===`
46
+ `),l=t?"+":r?"":"-";return i+l+`
47
+ `}function ii(e){return e[e.length-1]===`
48
+ `?e.slice(0,-1):e}function El(e,n){for(var i=/(\n+)([^\n]*)/g,r=(function(){var u=e.indexOf(`
49
+ `);return u=u!==-1?u:e.length,i.lastIndex=u,ri(e.slice(0,u),n)})(),t=e[0]===`
50
+ `||e[0]===" ",l,o;o=i.exec(e);){var s=o[1],a=o[2];l=a[0]===" ",r+=s+(!t&&!l&&a!==""?`
51
+ `:"")+ri(a,n),t=l}return r}function ri(e,n){if(e===""||e[0]===" ")return e;for(var i=/ [^ ]/g,r,t=0,l,o=0,s=0,a="";r=i.exec(e);)s=r.index,s-t>n&&(l=o>t?o:s,a+=`
52
+ `+e.slice(t,l),t=l+1),o=s;return a+=`
53
+ `,e.length-t>n&&o>t?a+=e.slice(t,o)+`
54
+ `+e.slice(o+1):a+=e.slice(t),a.slice(1)}function Tl(e){for(var n="",i=0,r,t=0;t<e.length;i>=65536?t+=2:t++)i=Le(e,t),r=$[i],!r&&_e(i)?(n+=e[t],i>=65536&&(n+=e[t+1])):n+=r||vl(i);return n}function Fl(e,n,i){var r="",t=e.tag,l,o,s;for(l=0,o=i.length;l<o;l+=1)s=i[l],e.replacer&&(s=e.replacer.call(i,String(l),s)),(se(e,n,s,!1,!1)||typeof s>"u"&&se(e,n,null,!1,!1))&&(r!==""&&(r+=","+(e.condenseFlow?"":" ")),r+=e.dump);e.tag=t,e.dump="["+r+"]"}function ti(e,n,i,r){var t="",l=e.tag,o,s,a;for(o=0,s=i.length;o<s;o+=1)a=i[o],e.replacer&&(a=e.replacer.call(i,String(o),a)),(se(e,n+1,a,!0,!0,!1,!0)||typeof a>"u"&&se(e,n+1,null,!0,!0,!1,!0))&&((!r||t!=="")&&(t+=wn(e,n)),e.dump&&De===e.dump.charCodeAt(0)?t+="-":t+="- ",t+=e.dump);e.tag=l,e.dump=t||"[]"}function Nl(e,n,i){var r="",t=e.tag,l=Object.keys(i),o,s,a,u,f;for(o=0,s=l.length;o<s;o+=1)f="",r!==""&&(f+=", "),e.condenseFlow&&(f+='"'),a=l[o],u=i[a],e.replacer&&(u=e.replacer.call(i,a,u)),se(e,n,a,!1,!1)&&(e.dump.length>1024&&(f+="? "),f+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),se(e,n,u,!1,!1)&&(f+=e.dump,r+=f));e.tag=t,e.dump="{"+r+"}"}function Ll(e,n,i,r){var t="",l=e.tag,o=Object.keys(i),s,a,u,f,c,m;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys=="function")o.sort(e.sortKeys);else if(e.sortKeys)throw new z("sortKeys must be a boolean or a function");for(s=0,a=o.length;s<a;s+=1)m="",(!r||t!=="")&&(m+=wn(e,n)),u=o[s],f=i[u],e.replacer&&(f=e.replacer.call(i,u,f)),se(e,n+1,u,!0,!0,!0)&&(c=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,c&&(e.dump&&De===e.dump.charCodeAt(0)?m+="?":m+="? "),m+=e.dump,c&&(m+=wn(e,n)),se(e,n+1,f,!0,c)&&(e.dump&&De===e.dump.charCodeAt(0)?m+=":":m+=": ",m+=e.dump,t+=m));e.tag=l,e.dump=t||"{}"}function oi(e,n,i){var r,t,l,o,s,a;for(t=i?e.explicitTypes:e.implicitTypes,l=0,o=t.length;l<o;l+=1)if(s=t[l],(s.instanceOf||s.predicate)&&(!s.instanceOf||typeof n=="object"&&n instanceof s.instanceOf)&&(!s.predicate||s.predicate(n))){if(i?s.multi&&s.representName?e.tag=s.representName(n):e.tag=s.tag:e.tag="?",s.represent){if(a=e.styleMap[s.tag]||s.defaultStyle,Yi.call(s.represent)==="[object Function]")r=s.represent(n,a);else if(zi.call(s.represent,a))r=s.represent[a](n,a);else throw new z("!<"+s.tag+'> tag resolver accepts not "'+a+'" style');e.dump=r}return!0}return!1}function se(e,n,i,r,t,l,o){e.tag=null,e.dump=i,oi(e,i,!1)||oi(e,i,!0);var s=Yi.call(e.dump),a=r,u;r&&(r=e.flowLevel<0||e.flowLevel>n);var f=s==="[object Object]"||s==="[object Array]",c,m;if(f&&(c=e.duplicates.indexOf(i),m=c!==-1),(e.tag!==null&&e.tag!=="?"||m||e.indent!==2&&n>0)&&(t=!1),m&&e.usedDuplicates[c])e.dump="*ref_"+c;else{if(f&&m&&!e.usedDuplicates[c]&&(e.usedDuplicates[c]=!0),s==="[object Object]")r&&Object.keys(e.dump).length!==0?(Ll(e,n,e.dump,t),m&&(e.dump="&ref_"+c+e.dump)):(Nl(e,n,e.dump),m&&(e.dump="&ref_"+c+" "+e.dump));else if(s==="[object Array]")r&&e.dump.length!==0?(e.noArrayIndent&&!o&&n>0?ti(e,n-1,e.dump,t):ti(e,n,e.dump,t),m&&(e.dump="&ref_"+c+e.dump)):(Fl(e,n,e.dump),m&&(e.dump="&ref_"+c+" "+e.dump));else if(s==="[object String]")e.tag!=="?"&&kl(e,e.dump,n,l,a);else{if(s==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new z("unacceptable kind of an object to dump "+s)}e.tag!==null&&e.tag!=="?"&&(u=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?u="!"+u:u.slice(0,18)==="tag:yaml.org,2002:"?u="!!"+u.slice(18):u="!<"+u+">",e.dump=u+" "+e.dump)}return!0}function Ol(e,n){var i=[],r=[],t,l;for(Cn(e,i,r),t=0,l=r.length;t<l;t+=1)n.duplicates.push(i[r[t]]);n.usedDuplicates=new Array(l)}function Cn(e,n,i){var r,t,l;if(e!==null&&typeof e=="object")if(t=n.indexOf(e),t!==-1)i.indexOf(t)===-1&&i.push(t);else if(n.push(e),Array.isArray(e))for(t=0,l=e.length;t<l;t+=1)Cn(e[t],n,i);else for(r=Object.keys(e),t=0,l=r.length;t<l;t+=1)Cn(e[r[t]],n,i)}function Rl(e,n){n=n||{};var i=new wl(n);i.noRefs||Ol(e,i);var r=e;return i.replacer&&(r=i.replacer.call({"":r},"",r)),se(i,0,r,!0,!0)?i.dump+`
55
+ `:""}var Dl=Rl,Il={dump:Dl},li=Qo.load,An=Il.dump;const _l=ft;var D;(function(e){e[e.DEFAULT=0]="DEFAULT",e[e.ADDED=1]="ADDED",e[e.REMOVED=2]="REMOVED",e[e.CHANGED=3]="CHANGED"})(D||(D={}));function Q(e,n){return n==="yaml"?An(e,{indent:2,lineWidth:-1,noRefs:!0}).trimEnd():JSON.stringify(e,null,2)}function Ml(e,n,i="json"){const r=Q(e,i),t=Q(n,i);return r===t?[{value:r}]:Rn(e,n,0,i)}function jl(e,n){return Ml(e,n,"json")}function Hl(e,n){try{const i=JSON.parse(e),r=JSON.parse(n),t=JSON.stringify(i),l=JSON.stringify(r);return t===l?[{value:e}]:le(e,n,{newlineIsToken:!1})}catch{return le(e,n,{newlineIsToken:!1})}}function Wl(e,n){const i=li(e),r=li(n),t=An(i,{indent:2,lineWidth:-1,noRefs:!0}),l=An(r,{indent:2,lineWidth:-1,noRefs:!0});return t===l?[{value:e}]:le(e,n,{newlineIsToken:!1})}function Rn(e,n,i,r="json"){const t=Q(e,r),l=Q(n,r);return t===l?[{value:oe(t,i,r)}]:typeof e=="object"&&e!==null&&typeof n=="object"&&n!==null&&!Array.isArray(e)&&!Array.isArray(n)?Bl(e,n,i,r):Array.isArray(e)&&Array.isArray(n)?Pl(e,n,i,r):$l(t,l,i,r)}function Bl(e,n,i,r="json"){const t=[],l=" ".repeat(i),o=" ".repeat(i+1),s=new Set(Object.keys(e)),a=Object.keys(n),u=[...s].filter(c=>!(c in n)),f=[...a,...u];t.push({value:`{
56
+ `});for(let c=0;c<f.length;c++){const m=f[c],h=c===f.length-1?"":",",d=m in e,g=m in n;if(d&&g){const v=Q(e[m],r),p=Q(n[m],r);if(v===p){const y=oe(v,i+1);t.push({value:o+JSON.stringify(m)+": "+y+h+`
57
+ `})}else{const y=o+JSON.stringify(m)+": ",C=Rn(e[m],n[m],i+1,r);if(C.length>0)if(!C[0].removed&&!C[0].added)C[0].value=y+C[0].value;else{const b=C.find(A=>A.removed),E=C.find(A=>A.added);b&&(b.value=y+b.value),E&&(E.value=y+E.value)}if(h&&C.length>0){const b=C[C.length-1];b.value=b.value.replace(/\n$/,h+`
58
+ `)}t.push(...C)}}else if(d){const v=oe(Q(e[m],r),i+1);t.push({removed:!0,value:o+JSON.stringify(m)+": "+v+h+`
59
+ `})}else{const v=oe(Q(n[m],r),i+1);t.push({added:!0,value:o+JSON.stringify(m)+": "+v+h+`
60
+ `})}}return t.push({value:l+`}
61
+ `}),t}function Pl(e,n,i,r="json"){const t=[],l=" ".repeat(i),o=" ".repeat(i+1);t.push({value:`[
62
+ `});const s=Math.max(e.length,n.length);for(let a=0;a<s;a++){const f=a===s-1?"":",";if(a>=e.length){const c=oe(Q(n[a],r),i+1);t.push({added:!0,value:o+c+f+`
63
+ `})}else if(a>=n.length){const c=oe(Q(e[a],r),i+1);t.push({removed:!0,value:o+c+f+`
64
+ `})}else{const c=Q(e[a],r),m=Q(n[a],r);if(c===m){const x=oe(c,i+1);t.push({value:o+x+f+`
65
+ `})}else{const x=Rn(e[a],n[a],i+1,r);if(x.length>0&&(x[0].value=o+x[0].value),f&&x.length>0){const h=x[x.length-1];h.value=h.value.replace(/\n$/,f+`
66
+ `)}t.push(...x)}}}return t.push({value:l+`]
67
+ `}),t}function $l(e,n,i,r="json"){const t=oe(e,i),l=oe(n,i);return le(t,l).map(s=>({value:s.value,added:s.added,removed:s.removed}))}function oe(e,n,i="json"){if(n===0)return e;const r=" ".repeat(n);return e.split(`
68
+ `).map((t,l)=>l===0?t:r+t).join(`
69
+ `)}var j;(function(e){e.CHARS="diffChars",e.WORDS="diffWords",e.WORDS_WITH_SPACE="diffWordsWithSpace",e.LINES="diffLines",e.TRIMMED_LINES="diffTrimmedLines",e.SENTENCES="diffSentences",e.CSS="diffCss",e.JSON="diffJson",e.YAML="diffYaml"})(j||(j={}));const si=e=>e===""?[]:e.replace(/\n$/,"").split(`
70
+ `),rr=(e,n,i=j.CHARS)=>{const t=(typeof i=="string"?_l[i]:i)(e,n),l={left:[],right:[]};return t.forEach(({added:o,removed:s,value:a})=>{if(o)l.right.push({type:D.ADDED,value:a});else if(s)l.left.push({type:D.REMOVED,value:a});else{const u={type:D.DEFAULT,value:a};l.right.push(u),l.left.push(u)}}),l},Gl=(e,n,i=!1,r=j.CHARS,t=0,l=[],o=!1)=>{let s=[];if(typeof e=="string"&&typeof n=="string")if(r===j.JSON)s=Hl(e,n);else if(r===j.YAML)try{s=Wl(e,n)}catch{s=le(e,n,{newlineIsToken:!1})}else s=le(e,n,{newlineIsToken:!1});else s=jl(e,n);let a=t,u=t,f=[],c=0;const m=[],x=[],h=(d,g,v,p,y)=>si(d).map((b,E)=>{const A={},k={};if(!(x.includes(`${g}-${E}`)||y&&E!==0)){if(v||p){let R=!0;if(p){u+=1,A.lineNumber=u,A.type=D.REMOVED,A.value=b||" ";const G=s[g+1];if(G!=null&&G.added){const Y=si(G.value)[E];if(Y){const te=h(Y,g,!0,!1,!0),{value:T,lineNumber:L,type:W}=te[0].right;if(x.push(`${g+1}-${E}`),k.lineNumber=L,A.value===T)R=!1,k.type=0,A.type=0,k.value=T;else{k.type=W;const V=500,pe=b.length>V||T.length>V;if(i||pe)k.value=T;else if(o)A.rawValue=b,A.value=b,k.rawValue=T,k.value=T;else{const me=rr(b,T,r);k.value=me.right,A.value=me.left}}}}}else a+=1,k.lineNumber=a,k.type=D.ADDED,k.value=b;R&&!y&&(m.includes(c)||m.push(c))}else u+=1,a+=1,A.lineNumber=u,A.type=D.DEFAULT,A.value=b,k.lineNumber=a,k.type=D.DEFAULT,k.value=b;return(l!=null&&l.includes(`L-${A.lineNumber}`)||l!=null&&l.includes(`R-${k.lineNumber}`)&&!m.includes(c))&&m.push(c),y||(c+=1),{right:k,left:A}}}).filter(b=>b!=null);return s.forEach(({added:d,removed:g,value:v},p)=>{f=[...f,...h(v,p,d,g)]}),{lineInformation:f,diffLines:m}};let Fe=null,Ce=null;const Vl=async()=>{if(Fe!==null)return Fe;if(Ce===!1)return null;if(typeof Worker>"u"||typeof Blob>"u"||typeof URL>"u")return Ce=!1,null;try{const{WORKER_CODE:e}=await Sr(async()=>{const{WORKER_CODE:i}=await import("./workerBundle-DGWlUuev.js");return{WORKER_CODE:i}},[]),n=new Blob([e],{type:"application/javascript"});Fe=URL.createObjectURL(n),Ce=!0}catch{Ce=!1,Fe=null}return Fe},Ul=async(e,n,i=!1,r=j.CHARS,t=0,l=[],o=!1,s=!1)=>{const a=()=>Gl(e,n,i,r,t,l,o);if(s)return Promise.resolve(a());const u=await Vl();return u?new Promise(f=>{let c;try{c=new Worker(u)}catch{Ce=!1,f(a());return}c.onmessage=m=>{f(m.data),c.terminate()},c.onerror=()=>{Ce=!1,c.terminate(),f(a())},c.postMessage({oldString:e,newString:n,disableWordDiff:i,lineCompareMethod:r,linesOffset:t,showLines:l,deferWordDiff:o})}):Promise.resolve(a())};function ai(){return w.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16",children:[w.jsx("title",{children:"expand"}),w.jsx("path",{d:"m8.177.677 2.896 2.896a.25.25 0 0 1-.177.427H8.75v1.25a.75.75 0 0 1-1.5 0V4H5.104a.25.25 0 0 1-.177-.427L7.823.677a.25.25 0 0 1 .354 0ZM7.25 10.75a.75.75 0 0 1 1.5 0V12h2.146a.25.25 0 0 1 .177.427l-2.896 2.896a.25.25 0 0 1-.354 0l-2.896-2.896A.25.25 0 0 1 5.104 12H7.25v-1.25Zm-5-2a.75.75 0 0 0 0-1.5h-.5a.75.75 0 0 0 0 1.5h.5ZM6 8a.75.75 0 0 1-.75.75h-.5a.75.75 0 0 1 0-1.5h.5A.75.75 0 0 1 6 8Zm2.25.75a.75.75 0 0 0 0-1.5h-.5a.75.75 0 0 0 0 1.5h.5ZM12 8a.75.75 0 0 1-.75.75h-.5a.75.75 0 0 1 0-1.5h.5A.75.75 0 0 1 12 8Zm2.25.75a.75.75 0 0 0 0-1.5h-.5a.75.75 0 0 0 0 1.5h.5Z"})]})}function Yl(e){if(e.sheet)return e.sheet;for(var n=0;n<document.styleSheets.length;n++)if(document.styleSheets[n].ownerNode===e)return document.styleSheets[n]}function zl(e){var n=document.createElement("style");return n.setAttribute("data-emotion",e.key),e.nonce!==void 0&&n.setAttribute("nonce",e.nonce),n.appendChild(document.createTextNode("")),n.setAttribute("data-s",""),n}var ql=(function(){function e(i){var r=this;this._insertTag=function(t){var l;r.tags.length===0?r.insertionPoint?l=r.insertionPoint.nextSibling:r.prepend?l=r.container.firstChild:l=r.before:l=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(t,l),r.tags.push(t)},this.isSpeedy=i.speedy===void 0?!0:i.speedy,this.tags=[],this.ctr=0,this.nonce=i.nonce,this.key=i.key,this.container=i.container,this.prepend=i.prepend,this.insertionPoint=i.insertionPoint,this.before=null}var n=e.prototype;return n.hydrate=function(r){r.forEach(this._insertTag)},n.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(zl(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var l=Yl(t);try{l.insertRule(r,l.cssRules.length)}catch{}}else t.appendChild(document.createTextNode(r));this.ctr++},n.flush=function(){this.tags.forEach(function(r){var t;return(t=r.parentNode)==null?void 0:t.removeChild(r)}),this.tags=[],this.ctr=0},e})(),B="-ms-",Qe="-moz-",F="-webkit-",tr="comm",Dn="rule",In="decl",Kl="@import",or="@keyframes",Zl="@layer",Jl=Math.abs,nn=String.fromCharCode,Ql=Object.assign;function Xl(e,n){return H(e,0)^45?(((n<<2^H(e,0))<<2^H(e,1))<<2^H(e,2))<<2^H(e,3):0}function lr(e){return e.trim()}function es(e,n){return(e=n.exec(e))?e[0]:e}function N(e,n,i){return e.replace(n,i)}function Sn(e,n){return e.indexOf(n)}function H(e,n){return e.charCodeAt(n)|0}function Me(e,n,i){return e.slice(n,i)}function ne(e){return e.length}function _n(e){return e.length}function Be(e,n){return n.push(e),e}function ns(e,n){return e.map(n).join("")}var rn=1,ke=1,sr=0,K=0,I=0,Ee="";function tn(e,n,i,r,t,l,o){return{value:e,root:n,parent:i,type:r,props:t,children:l,line:rn,column:ke,length:o,return:""}}function Ne(e,n){return Ql(tn("",null,null,"",null,null,0),e,{length:-e.length},n)}function is(){return I}function rs(){return I=K>0?H(Ee,--K):0,ke--,I===10&&(ke=1,rn--),I}function J(){return I=K<sr?H(Ee,K++):0,ke++,I===10&&(ke=1,rn++),I}function re(){return H(Ee,K)}function Pe(){return K}function He(e,n){return Me(Ee,e,n)}function je(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function ar(e){return rn=ke=1,sr=ne(Ee=e),K=0,[]}function cr(e){return Ee="",e}function $e(e){return lr(He(K-1,kn(e===91?e+2:e===40?e+1:e)))}function ts(e){for(;(I=re())&&I<33;)J();return je(e)>2||je(I)>3?"":" "}function os(e,n){for(;--n&&J()&&!(I<48||I>102||I>57&&I<65||I>70&&I<97););return He(e,Pe()+(n<6&&re()==32&&J()==32))}function kn(e){for(;J();)switch(I){case e:return K;case 34:case 39:e!==34&&e!==39&&kn(I);break;case 40:e===41&&kn(e);break;case 92:J();break}return K}function ls(e,n){for(;J()&&e+I!==57;)if(e+I===84&&re()===47)break;return"/*"+He(n,K-1)+"*"+nn(e===47?e:J())}function ss(e){for(;!je(re());)J();return He(e,K)}function as(e){return cr(Ge("",null,null,null,[""],e=ar(e),0,[0],e))}function Ge(e,n,i,r,t,l,o,s,a){for(var u=0,f=0,c=o,m=0,x=0,h=0,d=1,g=1,v=1,p=0,y="",C=t,b=l,E=r,A=y;g;)switch(h=p,p=J()){case 40:if(h!=108&&H(A,c-1)==58){Sn(A+=N($e(p),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:A+=$e(p);break;case 9:case 10:case 13:case 32:A+=ts(h);break;case 92:A+=os(Pe()-1,7);continue;case 47:switch(re()){case 42:case 47:Be(cs(ls(J(),Pe()),n,i),a);break;default:A+="/"}break;case 123*d:s[u++]=ne(A)*v;case 125*d:case 59:case 0:switch(p){case 0:case 125:g=0;case 59+f:v==-1&&(A=N(A,/\f/g,"")),x>0&&ne(A)-c&&Be(x>32?ui(A+";",r,i,c-1):ui(N(A," ","")+";",r,i,c-2),a);break;case 59:A+=";";default:if(Be(E=ci(A,n,i,u,f,t,s,y,C=[],b=[],c),l),p===123)if(f===0)Ge(A,n,E,E,C,l,c,s,b);else switch(m===99&&H(A,3)===110?100:m){case 100:case 108:case 109:case 115:Ge(e,E,E,r&&Be(ci(e,E,E,0,0,t,s,y,t,C=[],c),b),t,b,c,s,r?C:b);break;default:Ge(A,E,E,E,[""],b,0,s,b)}}u=f=x=0,d=v=1,y=A="",c=o;break;case 58:c=1+ne(A),x=h;default:if(d<1){if(p==123)--d;else if(p==125&&d++==0&&rs()==125)continue}switch(A+=nn(p),p*d){case 38:v=f>0?1:(A+="\f",-1);break;case 44:s[u++]=(ne(A)-1)*v,v=1;break;case 64:re()===45&&(A+=$e(J())),m=re(),f=c=ne(y=A+=ss(Pe())),p++;break;case 45:h===45&&ne(A)==2&&(d=0)}}return l}function ci(e,n,i,r,t,l,o,s,a,u,f){for(var c=t-1,m=t===0?l:[""],x=_n(m),h=0,d=0,g=0;h<r;++h)for(var v=0,p=Me(e,c+1,c=Jl(d=o[h])),y=e;v<x;++v)(y=lr(d>0?m[v]+" "+p:N(p,/&\f/g,m[v])))&&(a[g++]=y);return tn(e,n,i,t===0?Dn:s,a,u,f)}function cs(e,n,i){return tn(e,n,i,tr,nn(is()),Me(e,2,-2),0)}function ui(e,n,i,r){return tn(e,n,i,In,Me(e,0,r),Me(e,r+1,-1),r)}function Ae(e,n){for(var i="",r=_n(e),t=0;t<r;t++)i+=n(e[t],t,e,n)||"";return i}function us(e,n,i,r){switch(e.type){case Zl:if(e.children.length)break;case Kl:case In:return e.return=e.return||e.value;case tr:return"";case or:return e.return=e.value+"{"+Ae(e.children,r)+"}";case Dn:e.value=e.props.join(",")}return ne(i=Ae(e.children,r))?e.return=e.value+"{"+i+"}":""}function fs(e){var n=_n(e);return function(i,r,t,l){for(var o="",s=0;s<n;s++)o+=e[s](i,r,t,l)||"";return o}}function ds(e){return function(n){n.root||(n=n.return)&&e(n)}}function hs(e){var n=Object.create(null);return function(i){return n[i]===void 0&&(n[i]=e(i)),n[i]}}var ps=function(n,i,r){for(var t=0,l=0;t=l,l=re(),t===38&&l===12&&(i[r]=1),!je(l);)J();return He(n,K)},gs=function(n,i){var r=-1,t=44;do switch(je(t)){case 0:t===38&&re()===12&&(i[r]=1),n[r]+=ps(K-1,i,r);break;case 2:n[r]+=$e(t);break;case 4:if(t===44){n[++r]=re()===58?"&\f":"",i[r]=n[r].length;break}default:n[r]+=nn(t)}while(t=J());return n},ms=function(n,i){return cr(gs(ar(n),i))},fi=new WeakMap,xs=function(n){if(!(n.type!=="rule"||!n.parent||n.length<1)){for(var i=n.value,r=n.parent,t=n.column===r.column&&n.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(n.props.length===1&&i.charCodeAt(0)!==58&&!fi.get(r))&&!t){fi.set(n,!0);for(var l=[],o=ms(i,l),s=r.props,a=0,u=0;a<o.length;a++)for(var f=0;f<s.length;f++,u++)n.props[u]=l[a]?o[a].replace(/&\f/g,s[f]):s[f]+" "+o[a]}}},vs=function(n){if(n.type==="decl"){var i=n.value;i.charCodeAt(0)===108&&i.charCodeAt(2)===98&&(n.return="",n.value="")}};function ur(e,n){switch(Xl(e,n)){case 5103:return F+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return F+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return F+e+Qe+e+B+e+e;case 6828:case 4268:return F+e+B+e+e;case 6165:return F+e+B+"flex-"+e+e;case 5187:return F+e+N(e,/(\w+).+(:[^]+)/,F+"box-$1$2"+B+"flex-$1$2")+e;case 5443:return F+e+B+"flex-item-"+N(e,/flex-|-self/,"")+e;case 4675:return F+e+B+"flex-line-pack"+N(e,/align-content|flex-|-self/,"")+e;case 5548:return F+e+B+N(e,"shrink","negative")+e;case 5292:return F+e+B+N(e,"basis","preferred-size")+e;case 6060:return F+"box-"+N(e,"-grow","")+F+e+B+N(e,"grow","positive")+e;case 4554:return F+N(e,/([^-])(transform)/g,"$1"+F+"$2")+e;case 6187:return N(N(N(e,/(zoom-|grab)/,F+"$1"),/(image-set)/,F+"$1"),e,"")+e;case 5495:case 3959:return N(e,/(image-set\([^]*)/,F+"$1$`$1");case 4968:return N(N(e,/(.+:)(flex-)?(.*)/,F+"box-pack:$3"+B+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+F+e+e;case 4095:case 3583:case 4068:case 2532:return N(e,/(.+)-inline(.+)/,F+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ne(e)-1-n>6)switch(H(e,n+1)){case 109:if(H(e,n+4)!==45)break;case 102:return N(e,/(.+:)(.+)-([^]+)/,"$1"+F+"$2-$3$1"+Qe+(H(e,n+3)==108?"$3":"$2-$3"))+e;case 115:return~Sn(e,"stretch")?ur(N(e,"stretch","fill-available"),n)+e:e}break;case 4949:if(H(e,n+1)!==115)break;case 6444:switch(H(e,ne(e)-3-(~Sn(e,"!important")&&10))){case 107:return N(e,":",":"+F)+e;case 101:return N(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+F+(H(e,14)===45?"inline-":"")+"box$3$1"+F+"$2$3$1"+B+"$2box$3")+e}break;case 5936:switch(H(e,n+11)){case 114:return F+e+B+N(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return F+e+B+N(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return F+e+B+N(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return F+e+B+e+e}return e}var ys=function(n,i,r,t){if(n.length>-1&&!n.return)switch(n.type){case In:n.return=ur(n.value,n.length);break;case or:return Ae([Ne(n,{value:N(n.value,"@","@"+F)})],t);case Dn:if(n.length)return ns(n.props,function(l){switch(es(l,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ae([Ne(n,{props:[N(l,/:(read-\w+)/,":"+Qe+"$1")]})],t);case"::placeholder":return Ae([Ne(n,{props:[N(l,/:(plac\w+)/,":"+F+"input-$1")]}),Ne(n,{props:[N(l,/:(plac\w+)/,":"+Qe+"$1")]}),Ne(n,{props:[N(l,/:(plac\w+)/,B+"input-$1")]})],t)}return""})}},ws=[ys],bs=function(n){var i=n.key;if(i==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(d){var g=d.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(d),d.setAttribute("data-s",""))})}var t=n.stylisPlugins||ws,l={},o,s=[];o=n.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+i+' "]'),function(d){for(var g=d.getAttribute("data-emotion").split(" "),v=1;v<g.length;v++)l[g[v]]=!0;s.push(d)});var a,u=[xs,vs];{var f,c=[us,ds(function(d){f.insert(d)})],m=fs(u.concat(t,c)),x=function(g){return Ae(as(g),m)};a=function(g,v,p,y){f=p,x(g?g+"{"+v.styles+"}":v.styles),y&&(h.inserted[v.name]=!0)}}var h={key:i,sheet:new ql({key:i,container:o,nonce:n.nonce,speedy:n.speedy,prepend:n.prepend,insertionPoint:n.insertionPoint}),nonce:n.nonce,inserted:l,registered:{},insert:a};return h.sheet.hydrate(s),h};function Cs(e){for(var n=0,i,r=0,t=e.length;t>=4;++r,t-=4)i=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,i=(i&65535)*1540483477+((i>>>16)*59797<<16),i^=i>>>24,n=(i&65535)*1540483477+((i>>>16)*59797<<16)^(n&65535)*1540483477+((n>>>16)*59797<<16);switch(t){case 3:n^=(e.charCodeAt(r+2)&255)<<16;case 2:n^=(e.charCodeAt(r+1)&255)<<8;case 1:n^=e.charCodeAt(r)&255,n=(n&65535)*1540483477+((n>>>16)*59797<<16)}return n^=n>>>13,n=(n&65535)*1540483477+((n>>>16)*59797<<16),((n^n>>>15)>>>0).toString(36)}var As={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Ss=/[A-Z]|^ms/g,ks=/_EMO_([^_]+?)_([^]*?)_EMO_/g,fr=function(n){return n.charCodeAt(1)===45},di=function(n){return n!=null&&typeof n!="boolean"},fn=hs(function(e){return fr(e)?e:e.replace(Ss,"-$&").toLowerCase()}),hi=function(n,i){switch(n){case"animation":case"animationName":if(typeof i=="string")return i.replace(ks,function(r,t,l){return fe={name:t,styles:l,next:fe},t})}return As[n]!==1&&!fr(n)&&typeof i=="number"&&i!==0?i+"px":i};function Xe(e,n,i){if(i==null)return"";var r=i;if(r.__emotion_styles!==void 0)return r;switch(typeof i){case"boolean":return"";case"object":{var t=i;if(t.anim===1)return fe={name:t.name,styles:t.styles,next:fe},t.name;var l=i;if(l.styles!==void 0){var o=l.next;if(o!==void 0)for(;o!==void 0;)fe={name:o.name,styles:o.styles,next:fe},o=o.next;var s=l.styles+";";return s}return Es(e,n,i)}}var a=i;if(n==null)return a;var u=n[a];return u!==void 0?u:a}function Es(e,n,i){var r="";if(Array.isArray(i))for(var t=0;t<i.length;t++)r+=Xe(e,n,i[t])+";";else for(var l in i){var o=i[l];if(typeof o!="object"){var s=o;n!=null&&n[s]!==void 0?r+=l+"{"+n[s]+"}":di(s)&&(r+=fn(l)+":"+hi(l,s)+";")}else if(Array.isArray(o)&&typeof o[0]=="string"&&(n==null||n[o[0]]===void 0))for(var a=0;a<o.length;a++)di(o[a])&&(r+=fn(l)+":"+hi(l,o[a])+";");else{var u=Xe(e,n,o);switch(l){case"animation":case"animationName":{r+=fn(l)+":"+u+";";break}default:r+=l+"{"+u+"}"}}}return r}var pi=/label:\s*([^\s;{]+)\s*(;|$)/g,fe;function dn(e,n,i){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,t="";fe=void 0;var l=e[0];if(l==null||l.raw===void 0)r=!1,t+=Xe(i,n,l);else{var o=l;t+=o[0]}for(var s=1;s<e.length;s++)if(t+=Xe(i,n,e[s]),r){var a=l;t+=a[s]}pi.lastIndex=0;for(var u="",f;(f=pi.exec(t))!==null;)u+="-"+f[1];var c=Cs(t)+u;return{name:c,styles:t,next:fe}}function dr(e,n,i){var r="";return i.split(" ").forEach(function(t){e[t]!==void 0?n.push(e[t]+";"):t&&(r+=t+" ")}),r}var Ts=function(n,i,r){var t=n.key+"-"+i.name;n.registered[t]===void 0&&(n.registered[t]=i.styles)},Fs=function(n,i,r){Ts(n,i);var t=n.key+"-"+i.name;if(n.inserted[i.name]===void 0){var l=i;do n.insert(i===l?"."+t:"",l,n.sheet,!0),l=l.next;while(l!==void 0)}};function gi(e,n){if(e.inserted[n.name]===void 0)return e.insert("",n,e.sheet,!0)}function mi(e,n,i){var r=[],t=dr(e,r,i);return r.length<2?i:t+n(r)}var Ns=function(n){var i=bs(n);i.sheet.speedy=function(s){this.isSpeedy=s},i.compat=!0;var r=function(){for(var a=arguments.length,u=new Array(a),f=0;f<a;f++)u[f]=arguments[f];var c=dn(u,i.registered,void 0);return Fs(i,c),i.key+"-"+c.name},t=function(){for(var a=arguments.length,u=new Array(a),f=0;f<a;f++)u[f]=arguments[f];var c=dn(u,i.registered),m="animation-"+c.name;return gi(i,{name:c.name,styles:"@keyframes "+m+"{"+c.styles+"}"}),m},l=function(){for(var a=arguments.length,u=new Array(a),f=0;f<a;f++)u[f]=arguments[f];var c=dn(u,i.registered);gi(i,c)},o=function(){for(var a=arguments.length,u=new Array(a),f=0;f<a;f++)u[f]=arguments[f];return mi(i.registered,r,Ls(u))};return{css:r,cx:o,injectGlobal:l,keyframes:t,hydrate:function(a){a.forEach(function(u){i.inserted[u]=!0})},flush:function(){i.registered={},i.inserted={},i.sheet.flush()},sheet:i.sheet,cache:i,getRegisteredStyles:dr.bind(null,i.registered),merge:mi.bind(null,i.registered,r)}},Ls=function e(n){for(var i="",r=0;r<n.length;r++){var t=n[r];if(t!=null){var l=void 0;switch(typeof t){case"boolean":break;case"object":{if(Array.isArray(t))l=e(t);else{l="";for(var o in t)t[o]&&o&&(l&&(l+=" "),l+=o)}break}default:l=t}l&&(i&&(i+=" "),i+=l)}}return i};const Os=(e,n=!1,i="")=>{const{variables:r={},...t}=e,l={light:{diffViewerBackground:"#fff",diffViewerColor:"#212529",addedBackground:"#e6ffed",addedColor:"#24292e",removedBackground:"#ffeef0",removedColor:"#24292e",changedBackground:"#fffbdd",wordAddedBackground:"#acf2bd",wordRemovedBackground:"#fdb8c0",addedGutterBackground:"#cdffd8",removedGutterBackground:"#ffdce0",gutterBackground:"#f7f7f7",gutterBackgroundDark:"#f3f1f1",highlightBackground:"#fffbdd",highlightGutterBackground:"#fff5b1",codeFoldGutterBackground:"#dbedff",codeFoldBackground:"#f1f8ff",emptyLineBackground:"#fafbfc",gutterColor:"#212529",addedGutterColor:"#212529",removedGutterColor:"#212529",codeFoldContentColor:"#212529",diffViewerTitleBackground:"#fafbfc",diffViewerTitleColor:"#212529",diffViewerTitleBorderColor:"#eee",...r.light||{}},dark:{diffViewerBackground:"#2e303c",diffViewerColor:"#FFF",addedBackground:"#2ea04326",addedColor:"white",removedBackground:"#f851491a",removedColor:"white",changedBackground:"#3e302c",wordAddedBackground:"#2ea04366",wordRemovedBackground:"#f8514966",addedGutterBackground:"#3fb9504d",removedGutterBackground:"#f851494d",gutterBackground:"#2c2f3a",gutterBackgroundDark:"#262933",highlightBackground:"#2a3967",highlightGutterBackground:"#2d4077",codeFoldGutterBackground:"#262831",codeFoldBackground:"#262831",emptyLineBackground:"#363946",gutterColor:"#f0f6fc",addedGutterColor:"#f0f6fc",removedGutterColor:"#f0f6fc",codeFoldContentColor:"#9198a1",diffViewerTitleBackground:"#2f323e",diffViewerTitleColor:"#f0f6fc",diffViewerTitleBorderColor:"#353846",...r.dark||{}}},o=n?l.dark:l.light,{css:s,cx:a}=Ns({key:"react-diff",nonce:i}),u=s({width:"auto",overflow:"hidden",label:"content"}),f=s({label:"split-view"}),c=s({position:"sticky",top:0,zIndex:2,label:"sticky-header"}),m=s({background:o.diffViewerTitleBackground,color:o.diffViewerTitleColor,padding:"0.5em 1em",display:"flex",alignItems:"center",gap:"0.5em",fontFamily:"monospace",fontSize:12,fill:o.diffViewerTitleColor}),x=s({display:"flex",label:"column-headers"}),h=s({width:"100%",minWidth:"1000px",overflowX:"auto",tableLayout:"fixed",fontSize:12,background:o.diffViewerBackground,pre:{margin:0,whiteSpace:"pre-wrap",lineHeight:"1.6em",width:"fit-content"},label:"diff-container",borderCollapse:"collapse","@media (max-width: 768px)":{minWidth:"unset"}}),d=s({overflow:"hidden",width:"100%"}),g=s({color:o.diffViewerColor,whiteSpace:"pre-wrap",fontFamily:"monospace",lineBreak:"anywhere",textDecoration:"none",label:"content-text"}),v=s({userSelect:"none",label:"unselectable"}),p=s({label:"no-wrap",pre:{whiteSpace:"pre"},[`.${g}`]:{whiteSpace:"pre",lineBreak:"auto"}}),y=s({background:"transparent",border:"none",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",margin:0,label:"all-expand-button",":hover":{fill:o.addedGutterColor},":focus":{outline:`1px ${o.addedGutterColor} solid`}}),C=s({background:o.diffViewerTitleBackground,padding:"0.5em",lineHeight:"1.4em",height:"2.4em",overflow:"hidden",width:"50%",borderBottom:`1px solid ${o.diffViewerTitleBorderColor}`,boxSizing:"border-box",fontSize:12,label:"title-block",":only-child":{width:"100%"},":last-child:not(:only-child)":{borderLeft:`1px solid ${o.diffViewerTitleBorderColor}`},[`.${g}`]:{color:o.diffViewerTitleColor}}),b=s({color:o.gutterColor,label:"line-number"}),E=s({background:o.removedBackground,color:o.removedColor,pre:{color:o.removedColor},[`.${b}`]:{color:o.removedGutterColor},label:"diff-removed"}),A=s({background:o.addedBackground,color:o.addedColor,pre:{color:o.addedColor},[`.${b}`]:{color:o.addedGutterColor},label:"diff-added"}),k=s({background:o.changedBackground,[`.${b}`]:{color:o.gutterColor},label:"diff-changed"}),R=s({display:"inline",textDecoration:"none",label:"word-diff"}),G=s({background:o.wordAddedBackground,label:"word-added"}),Y=s({background:o.wordRemovedBackground,label:"word-removed"}),te=s({backgroundColor:o.codeFoldGutterBackground,label:"code-fold-gutter",minWidth:"50px",width:"50px",textAlign:"center",fill:o.codeFoldContentColor}),T=s({padding:""}),L=s({background:o.codeFoldBackground,cursor:"pointer",display:"inline",margin:0,border:"none",fill:o.codeFoldContentColor,label:"code-fold-expand-button"}),W=s({color:o.codeFoldContentColor,fontFamily:"monospace",label:"code-fold-content"}),V=s({display:"block",width:"10px",height:"10px",backgroundColor:"#ddd",borderWidth:"1px",borderStyle:"solid",borderColor:o.diffViewerTitleBorderColor}),pe=s({backgroundColor:o.wordAddedBackground}),me=s({backgroundColor:o.wordRemovedBackground}),hr=s({backgroundColor:o.codeFoldBackground,fontSize:12,alignItems:"center",userSelect:"none",fontWeight:700,cursor:"pointer",label:"code-fold","&:hover":{color:o.diffViewerColor,fill:o.diffViewerColor,"& *":{color:o.diffViewerColor,fill:o.diffViewerColor}},a:{textDecoration:"underline !important",cursor:"pointer",pre:{display:"inline"}}}),pr=s({backgroundColor:o.emptyLineBackground,label:"empty-line"}),gr=s({width:28,paddingLeft:10,paddingRight:10,userSelect:"none",label:"marker",[`&.${A}`]:{pre:{color:o.addedColor}},[`&.${E}`]:{pre:{color:o.removedColor}}}),mr=s({background:o.highlightBackground,label:"highlighted-line",[`.${G}, .${Y}`]:{backgroundColor:"initial"}}),Mn=s({label:"highlighted-gutter"}),xr=s({userSelect:"none",minWidth:50,width:"50px",padding:"0 10px",whiteSpace:"nowrap",label:"gutter",textAlign:"center",color:o.gutterColor,background:o.gutterBackground,"&:hover":{cursor:"pointer",background:o.gutterBackgroundDark,pre:{opacity:1}},pre:{opacity:.5,textAlign:"center",width:"100%"},[`&.${A}`]:{background:o.addedGutterBackground},[`&.${E}`]:{background:o.removedGutterBackground},[`&.${Mn}`]:{background:o.highlightGutterBackground,"&:hover":{background:o.highlightGutterBackground}}}),vr=s({"&:hover":{background:o.gutterBackground,cursor:"initial"},label:"empty-gutter"}),yr=s({verticalAlign:"baseline",label:"line",textDecoration:"none"}),wr=s({}),on={diffContainer:h,diffRemoved:E,diffAdded:A,diffChanged:k,splitView:f,marker:gr,highlightedGutter:Mn,highlightedLine:mr,gutter:xr,line:yr,lineContent:d,wordDiff:R,wordAdded:G,summary:m,block:V,blockAddition:pe,blockDeletion:me,wordRemoved:Y,noSelect:v,noWrap:p,codeFoldGutter:te,codeFoldExpandButton:L,codeFoldContentContainer:T,codeFold:hr,emptyGutter:vr,emptyLine:pr,lineNumber:b,contentText:g,content:u,column:wr,codeFoldContent:W,stickyHeader:c,columnHeaders:x,titleBlock:C,allExpandButton:y},jn=Object.keys(t).reduce((ln,ce)=>({...ln,[ce]:s(t[ce])}),{});return Object.keys(on).reduce((ln,ce)=>({...ln,[ce]:jn[ce]?a(on[ce],jn[ce]):on[ce]}),{})};function Rs(){return w.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16",children:[w.jsx("title",{children:"fold"}),w.jsx("path",{d:"M10.896 2H8.75V.75a.75.75 0 0 0-1.5 0V2H5.104a.25.25 0 0 0-.177.427l2.896 2.896a.25.25 0 0 0 .354 0l2.896-2.896A.25.25 0 0 0 10.896 2ZM8.75 15.25a.75.75 0 0 1-1.5 0V14H5.104a.25.25 0 0 1-.177-.427l2.896-2.896a.25.25 0 0 1 .354 0l2.896 2.896a.25.25 0 0 1-.177.427H8.75v1.25Zm-6.5-6.5a.75.75 0 0 0 0-1.5h-.5a.75.75 0 0 0 0 1.5h.5ZM6 8a.75.75 0 0 1-.75.75h-.5a.75.75 0 0 1 0-1.5h.5A.75.75 0 0 1 6 8Zm2.25.75a.75.75 0 0 0 0-1.5h-.5a.75.75 0 0 0 0 1.5h.5ZM12 8a.75.75 0 0 1-.75.75h-.5a.75.75 0 0 1 0-1.5h.5A.75.75 0 0 1 12 8Zm2.25.75a.75.75 0 0 0 0-1.5h-.5a.75.75 0 0 0 0 1.5h.5Z"})]})}function Ds(e,n,i){const r=[];let t=0;for(const c of n){const m=typeof c.value=="string"?c.value:"";m.length>0&&(r.push({start:t,end:t+m.length,type:c.type??D.DEFAULT}),t+=m.length)}const l=[];let o=0;for(;o<e.length;)if(e[o]==="<"){const c=e.indexOf(">",o);if(c===-1){l.push({type:"text",content:e.slice(o)});break}l.push({type:"tag",content:e.slice(o,c+1)}),o=c+1}else{let c=e.indexOf("<",o);c===-1&&(c=e.length),l.push({type:"text",content:e.slice(o,c)}),o=c}function s(c){return c.replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&").replace(/&quot;/g,'"').replace(/&#39;/g,"'").replace(/&#x27;/g,"'").replace(/&nbsp;/g," ")}function a(c){return c===D.ADDED?{open:`<ins class="${i.wordDiff} ${i.wordAdded}">`,close:"</ins>"}:c===D.REMOVED?{open:`<del class="${i.wordDiff} ${i.wordRemoved}">`,close:"</del>"}:{open:`<span class="${i.wordDiff}">`,close:"</span>"}}let u=0,f="";for(const c of l)if(c.type==="tag")f+=c.content;else{const m=c.content,x=s(m);let h=0,d=0;for(;h<x.length;){const g=u+h,v=r.find(R=>g>=R.start&&g<R.end);if(!v){const R=m[d];f+=R,d++,h++;continue}const p=v.end-g,y=x.length-h,C=Math.min(p,y);let b=d,E=0;for(;E<C&&b<m.length;){if(m[b]==="&"){const R=m.indexOf(";",b);R!==-1&&R-b<10?b=R+1:b++}else b++;E++}const A=m.slice(d,b),k=a(v.type);k?f+=k.open+A+k.close:f+=A,d=b,h+=C}u+=x.length}return f}var U;(function(e){e.LEFT="L",e.RIGHT="R"})(U||(U={}));const Z=class Z extends ee.Component{constructor(i){super(i);O(this,"styles");O(this,"wordDiffCache",new Map);O(this,"contentColumnRef",ee.createRef());O(this,"charMeasureRef",ee.createRef());O(this,"stickyHeaderRef",ee.createRef());O(this,"resizeObserver",null);O(this,"scrollDebounceTimer",null);O(this,"lastRenderedRange",{start:0,end:1/0});O(this,"getWordDiffValues",(i,r,t)=>{if(!i||!r)return{leftValue:i==null?void 0:i.value,rightValue:r==null?void 0:r.value};if(i.rawValue===void 0||r.rawValue===void 0)return{leftValue:i.value,rightValue:r.value};const l=`${t}-${i.rawValue}-${r.rawValue}`;let o=this.wordDiffCache.get(l);if(!o){const s=this.props.compareMethod===j.JSON||this.props.compareMethod===j.YAML?j.CHARS:this.props.compareMethod,a=rr(i.rawValue,r.rawValue,s);o={left:a.left??[],right:a.right??[]},this.wordDiffCache.set(l,o)}return{leftValue:o.left,rightValue:o.right}});O(this,"resetCodeBlocks",()=>this.state.expandedBlocks.length>0?(this.setState({expandedBlocks:[]}),!0):!1);O(this,"onBlockExpand",i=>{const r=this.state.expandedBlocks.slice();r.push(i),this.setState({expandedBlocks:r},()=>this.recalculateOffsets())});O(this,"recalculateOffsets",()=>{if(!this.props.infiniteLoading)return;const i=this.measureContentColumnWidth(),r=this.measureCharWidth();if(!i)return;const t=this.getMemoisedKey(),{lineInformation:l,lineBlocks:o,blocks:s}=this.state.computedDiffResult[t]??{};if(!l)return;const a=this.buildCumulativeOffsets(l,o,s,this.state.expandedBlocks,this.props.showDiffOnly??!0,r,i,this.props.splitView??!0);this.setState({cumulativeOffsets:a,contentColumnWidth:i,charWidth:r},()=>{this.onScroll()})});O(this,"computeStyles",Nr(Os));O(this,"onLineNumberClickProxy",i=>this.props.onLineNumberClick?r=>this.props.onLineNumberClick(i,r):()=>{});O(this,"shouldHighlightWordDiff",()=>{const{compareMethod:i}=this.props;return i===j.CHARS||i===j.WORDS||i===j.WORDS_WITH_SPACE||i===j.JSON||i===j.YAML});O(this,"renderWordDiff",(i,r)=>{var s,a;const t=this.shouldHighlightWordDiff(),l=i.map(u=>typeof u.value=="string"?u.value:"").join("");if(l.length>500)return[w.jsx("span",{children:l},"long-line")];if(r){const u=r(l),f=(a=(s=u==null?void 0:u.props)==null?void 0:s.dangerouslySetInnerHTML)==null?void 0:a.__html;if(typeof f=="string"){const c=Ds(f,i,{wordDiff:this.styles.wordDiff,wordAdded:t?this.styles.wordAdded:"",wordRemoved:t?this.styles.wordRemoved:""});return[ee.cloneElement(u,{key:"highlighted-diff",dangerouslySetInnerHTML:{__html:c}})]}}return i.map((u,f)=>{let c;return typeof u.value=="string"?c=u.value:c=void 0,u.type===D.ADDED?w.jsx("ins",{className:X(this.styles.wordDiff,{[this.styles.wordAdded]:t}),children:c},f):u.type===D.REMOVED?w.jsx("del",{className:X(this.styles.wordDiff,{[this.styles.wordRemoved]:t}),children:c},f):w.jsx("span",{className:X(this.styles.wordDiff),children:c},f)})});O(this,"renderLine",(i,r,t,l,o,s)=>{const a=`${t}-${i}`,u=`${s}-${o}`,f=this.props.highlightLines??[],c=f.includes(a)||f.includes(u),m=r===D.ADDED,x=r===D.REMOVED,h=r===D.CHANGED;let d;const g=Array.isArray(l);g?d=this.renderWordDiff(l,this.props.renderContent):this.props.renderContent&&typeof l=="string"?d=this.props.renderContent(l):d=l;let v="div";return m&&!g?v="ins":x&&!g&&(v="del"),w.jsxs(w.Fragment,{children:[!this.props.hideLineNumbers&&w.jsx("td",{onClick:i&&this.onLineNumberClickProxy(a),className:X(this.styles.gutter,{[this.styles.emptyGutter]:!i,[this.styles.diffAdded]:m,[this.styles.diffRemoved]:x,[this.styles.diffChanged]:h,[this.styles.highlightedGutter]:c}),children:w.jsx("pre",{className:this.styles.lineNumber,children:i})}),!this.props.splitView&&!this.props.hideLineNumbers&&w.jsx("td",{onClick:o&&this.onLineNumberClickProxy(u),className:X(this.styles.gutter,{[this.styles.emptyGutter]:!o,[this.styles.diffAdded]:m,[this.styles.diffRemoved]:x,[this.styles.diffChanged]:h,[this.styles.highlightedGutter]:c}),children:w.jsx("pre",{className:this.styles.lineNumber,children:o})}),this.props.renderGutter?this.props.renderGutter({lineNumber:i??0,type:r??D.DEFAULT,prefix:t,value:l??"",additionalLineNumber:o??void 0,additionalPrefix:s,styles:this.styles}):null,w.jsx("td",{className:X(this.styles.marker,{[this.styles.emptyLine]:!d,[this.styles.diffAdded]:m,[this.styles.diffRemoved]:x,[this.styles.diffChanged]:h,[this.styles.highlightedLine]:c}),children:w.jsxs("pre",{children:[m&&"+",x&&"-"]})}),w.jsx("td",{ref:t===U.LEFT&&!this.state.cumulativeOffsets?this.contentColumnRef:void 0,className:X(this.styles.content,{[this.styles.emptyLine]:!d,[this.styles.diffAdded]:m,[this.styles.diffRemoved]:x,[this.styles.diffChanged]:h,[this.styles.highlightedLine]:c,left:t===U.LEFT,right:t===U.RIGHT}),onMouseDown:()=>{var b,E,A;const p=document.getElementsByClassName("right");for(let k=0;k<p.length;k++)(b=p[k])==null||b.classList.remove(this.styles.noSelect);const y=document.getElementsByClassName("left");for(let k=0;k<y.length;k++)(E=y[k])==null||E.classList.remove(this.styles.noSelect);const C=document.getElementsByClassName(t===U.LEFT?"right":"left");for(let k=0;k<C.length;k++)(A=C[k])==null||A.classList.add(this.styles.noSelect)},title:m&&!g?"Added line":x&&!g?"Removed line":void 0,children:w.jsx(v,{className:this.styles.contentText,children:d})})]})});O(this,"renderSplitView",({left:i,right:r},t)=>{const{leftValue:l,rightValue:o}=this.getWordDiffValues(i,r,t);return w.jsxs("tr",{className:this.styles.line,children:[this.renderLine(i.lineNumber,i.type,U.LEFT,l),this.renderLine(r.lineNumber,r.type,U.RIGHT,o)]},t)});O(this,"renderInlineView",({left:i,right:r},t)=>{const{leftValue:l,rightValue:o}=this.getWordDiffValues(i,r,t);let s;return i.type===D.REMOVED&&r.type===D.ADDED?w.jsxs(ee.Fragment,{children:[w.jsx("tr",{className:this.styles.line,children:this.renderLine(i.lineNumber,i.type,U.LEFT,l,null)}),w.jsx("tr",{className:this.styles.line,children:this.renderLine(null,r.type,U.RIGHT,o,r.lineNumber,U.RIGHT)})]},t):(i.type===D.REMOVED&&(s=this.renderLine(i.lineNumber,i.type,U.LEFT,l,null)),i.type===D.DEFAULT&&(s=this.renderLine(i.lineNumber,i.type,U.LEFT,l,r.lineNumber,U.RIGHT)),r.type===D.ADDED&&(s=this.renderLine(null,r.type,U.RIGHT,o,r.lineNumber)),w.jsx("tr",{className:this.styles.line,children:s},t))});O(this,"onBlockClickProxy",i=>()=>this.onBlockExpand(i));O(this,"renderSkippedLineIndicator",(i,r,t,l)=>{const{hideLineNumbers:o,splitView:s}=this.props,a=this.props.codeFoldMessageRenderer?this.props.codeFoldMessageRenderer(i,t,l):w.jsxs("span",{className:this.styles.codeFoldContent,children:["@@ -",t-i,",",i," +",l-i,",",i," @@"]}),u=w.jsx("td",{className:this.styles.codeFoldContentContainer,children:w.jsx("button",{type:"button",className:this.styles.codeFoldExpandButton,onClick:this.onBlockClickProxy(r),tabIndex:0,children:a})}),f=!s&&!o,c=w.jsx("td",{className:this.styles.codeFoldGutter,children:w.jsx(ai,{})});return w.jsxs("tr",{className:this.styles.codeFold,onClick:this.onBlockClickProxy(r),role:"button",tabIndex:0,children:[!o&&c,this.props.renderGutter?w.jsx("td",{className:this.styles.codeFoldGutter}):null,w.jsx("td",{className:X({[this.styles.codeFoldGutter]:f})}),f?w.jsxs(ee.Fragment,{children:[w.jsx("td",{}),u]}):w.jsxs(ee.Fragment,{children:[u,this.props.renderGutter?w.jsx("td",{}):null,w.jsx("td",{}),w.jsx("td",{}),o?null:w.jsx("td",{})]})]},`${t}-${l}`)});O(this,"getMemoisedKey",()=>{const{oldValue:i,newValue:r,disableWordDiff:t,compareMethod:l,linesOffset:o,alwaysShowLines:s,extraLinesSurroundingDiff:a}=this.props;return JSON.stringify({oldValue:i,newValue:r,disableWordDiff:t,compareMethod:l,linesOffset:o,alwaysShowLines:s,extraLinesSurroundingDiff:a})});O(this,"memoisedCompute",async()=>{var v;const{oldValue:i,newValue:r,disableWordDiff:t,compareMethod:l,linesOffset:o}=this.props,s=this.getMemoisedKey();if(this.state.computedDiffResult[s]){this.setState(p=>({...p,isLoading:!1}));return}const a=(v=this.props.infiniteLoading)==null?void 0:v.containerHeight,u=a?typeof a=="number"?a:parseInt(a,10)||0:0,f=!t&&!!this.props.infiniteLoading&&u>0&&u<2e3,{lineInformation:c,diffLines:m}=await Ul(i,r,t,l,o,this.props.alwaysShowLines,f,this.props.disableWorker),x=this.props.extraLinesSurroundingDiff??3,h=x<0?0:Math.round(x),{lineBlocks:d,blocks:g}=Lr(c,m,h);this.state.computedDiffResult[s]={lineInformation:c,lineBlocks:d,blocks:g},this.setState(p=>({...p,computedDiffResult:this.state.computedDiffResult,isLoading:!1}),()=>{this.props.infiniteLoading&&requestAnimationFrame(()=>this.recalculateOffsets())})});O(this,"onScroll",()=>{const i=this.state.scrollableContainerRef.current;if(!i||!this.props.infiniteLoading)return;const r=this.getStickyHeaderHeight(),t=Math.max(0,i.scrollTop-r),{cumulativeOffsets:l}=this.state,o=l?this.findLineAtOffset(t,l):Math.floor(t/Z.ESTIMATED_ROW_HEIGHT),s=Math.ceil(i.clientHeight/Z.ESTIMATED_ROW_HEIGHT),a=o+s,u=o<this.lastRenderedRange.start||a>this.lastRenderedRange.end;this.scrollDebounceTimer&&clearTimeout(this.scrollDebounceTimer);const f={};o!==this.state.visibleStartRow&&(f.visibleStartRow=o),u&&!this.state.isScrolling&&(f.isScrolling=!0),Object.keys(f).length>0&&this.setState(f),(this.state.isScrolling||u)&&(this.scrollDebounceTimer=setTimeout(()=>{this.setState({isScrolling:!1})},150))});O(this,"renderDiff",()=>{var Y,te;const{splitView:i,infiniteLoading:r,showDiffOnly:t}=this.props,{computedDiffResult:l,expandedBlocks:o,visibleStartRow:s,scrollableContainerRef:a,cumulativeOffsets:u}=this.state,f=this.getMemoisedKey(),{lineInformation:c=[],lineBlocks:m=[],blocks:x=[]}=l[f]??{};let h=0,d=1/0;const g=(r==null?void 0:r.overscan)??20;if(r&&a.current){const T=a.current,L=this.getStickyHeaderHeight(),W=Math.max(0,T.scrollTop-L);if(u){const V=u[u.length-1]||0,pe=u.length-2;h=Math.max(0,this.findLineAtOffset(W,u)-g),d=this.findLineAtOffset(W+T.clientHeight,u)+g;const me=Math.ceil(T.clientHeight/Z.ESTIMATED_ROW_HEIGHT);d=Math.max(d,h+me+g),W+T.clientHeight>=V-g*Z.ESTIMATED_ROW_HEIGHT&&(d=pe+g)}else{const V=Math.ceil(T.clientHeight/Z.ESTIMATED_ROW_HEIGHT);h=Math.max(0,s-g),d=s+V+g}}const v=new Map,p=new Set;let y=0;for(let T=0;T<c.length;T++){const L=m[T];if(t&&L!==void 0)if(o.includes(L))v.set(T,y),y++;else{const W=x[L].endLine===T;!p.has(L)&&W&&(p.add(L),v.set(T,y),y++)}else v.set(T,y),y++}const C=y,b=[];let E=0,A=!1,k=-1;p.clear();for(let T=0;T<c.length;T++){const L=c[T],W=v.get(T);if(W!==void 0&&!(W<h)){if(W>d)break;if(A||(E=u?u[W]||0:W*Z.ESTIMATED_ROW_HEIGHT,A=!0),k=W,t){const V=m[T];if(V!==void 0){const pe=x[V].endLine===T;if(!o.includes(V)&&pe){b.push(w.jsx(ee.Fragment,{children:this.renderSkippedLineIndicator(x[V].lines,V,L.left.lineNumber??0,L.right.lineNumber??0)},T));continue}if(!o.includes(V))continue}}b.push(i?this.renderSplitView(L,T):this.renderInlineView(L,T))}}const R=u?u[u.length-1]||0:C*Z.ESTIMATED_ROW_HEIGHT,G=u&&k>=0?R-(u[k+1]||R):0;return this.lastRenderedRange={start:h,end:d},{diffNodes:b,blocks:x,lineInformation:c,totalRenderedRows:C,topPadding:E,bottomPadding:G,totalContentHeight:R,renderedCount:b.length,debug:{visibleRowStart:h,visibleRowEnd:d,totalRows:C,offsetsLength:(u==null?void 0:u.length)??0,renderedCount:b.length,scrollTop:((Y=a.current)==null?void 0:Y.scrollTop)??0,headerHeight:this.getStickyHeaderHeight(),contentScrollTop:a.current?Math.max(0,a.current.scrollTop-this.getStickyHeaderHeight()):0,clientHeight:((te=a.current)==null?void 0:te.clientHeight)??0}}});O(this,"render",()=>{var A,k,R,G,Y,te,T;const{oldValue:i,newValue:r,useDarkTheme:t,leftTitle:l,rightTitle:o,splitView:s,compareMethod:a,hideLineNumbers:u,nonce:f}=this.props;if(typeof a=="string"&&a!==j.JSON&&(typeof i!="string"||typeof r!="string"))throw Error('"oldValue" and "newValue" should be strings');this.styles=this.computeStyles(this.props.styles??{},t??!1,f??"");const c=this.renderDiff();this.props.renderGutter;let m=0,x=0;for(const L of c.lineInformation)L.left.type===D.ADDED&&x++,L.right.type===D.ADDED&&x++,L.left.type===D.REMOVED&&m++,L.right.type===D.REMOVED&&m++;const h=m+x,d=Math.round(x/h*100),g=[];for(let L=0;L<5;L++)d>L*20?g.push(w.jsx("span",{className:X(this.styles.block,this.styles.blockAddition)},L)):g.push(w.jsx("span",{className:X(this.styles.block,this.styles.blockDeletion)},L));const v=this.state.expandedBlocks.length===c.blocks.length,p=this.props.loadingElement,y=this.props.infiniteLoading?{overflowY:"scroll",overflowX:"hidden",height:this.props.infiniteLoading.containerHeight}:{},C=!!this.props.infiniteLoading&&!this.state.cumulativeOffsets,b=w.jsxs("table",{className:X(this.styles.diffContainer,{[this.styles.splitView]:s,[this.styles.noWrap]:C}),onMouseUp:()=>{},children:[w.jsxs("colgroup",{children:[!this.props.hideLineNumbers&&w.jsx("col",{width:"50px"}),!s&&!this.props.hideLineNumbers&&w.jsx("col",{width:"50px"}),this.props.renderGutter&&w.jsx("col",{width:"50px"}),w.jsx("col",{width:"28px"}),w.jsx("col",{width:"auto"}),s&&w.jsxs(w.Fragment,{children:[!this.props.hideLineNumbers&&w.jsx("col",{width:"50px"}),this.props.renderGutter&&w.jsx("col",{width:"50px"}),w.jsx("col",{width:"28px"}),w.jsx("col",{width:"auto"})]})]}),w.jsx("tbody",{children:c.diffNodes})]}),E=(this.state.isLoading||this.state.isScrolling)&&!!p;return w.jsxs("div",{style:{position:"relative"},children:[E&&w.jsx("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0,zIndex:3},children:w.jsx(p,{})}),w.jsxs("div",{style:{...y,position:"relative"},onScroll:this.onScroll,ref:this.state.scrollableContainerRef,children:[(!this.props.hideSummary||l||o)&&w.jsxs("div",{ref:this.stickyHeaderRef,className:this.styles.stickyHeader,children:[!this.props.hideSummary&&w.jsxs("div",{className:this.styles.summary,role:"banner",children:[w.jsx("button",{type:"button",className:this.styles.allExpandButton,onClick:()=>{this.setState({expandedBlocks:v?[]:c.blocks.map(L=>L.index)},()=>this.recalculateOffsets())},children:v?w.jsx(Rs,{}):w.jsx(ai,{})})," ",h,w.jsx("div",{style:{display:"flex",gap:"1px"},children:g}),this.props.summary?w.jsx("span",{children:this.props.summary}):null]}),(l||o)&&w.jsxs("div",{className:this.styles.columnHeaders,children:[w.jsx("div",{className:this.styles.titleBlock,children:l?w.jsx("pre",{className:this.styles.contentText,children:l}):null}),s&&w.jsx("div",{className:this.styles.titleBlock,children:o?w.jsx("pre",{className:this.styles.contentText,children:o}):null})]})]}),this.props.infiniteLoading?w.jsx("div",{style:{height:c.totalContentHeight,position:"relative"},children:w.jsx("div",{style:{position:"absolute",top:c.topPadding,left:0,right:0,visibility:this.state.isScrolling?"hidden":"visible"},children:b})}):b,w.jsx("span",{ref:this.charMeasureRef,style:{position:"absolute",top:0,left:"-9999px",visibility:"hidden",whiteSpace:"pre",fontFamily:"monospace",fontSize:12},"aria-hidden":"true",children:"M"}),this.props.infiniteLoading&&this.props.showDebugInfo&&w.jsxs("div",{style:{position:"fixed",top:10,right:10,background:"rgba(0,0,0,0.85)",color:"#0f0",padding:"10px",fontFamily:"monospace",fontSize:"11px",zIndex:9999,borderRadius:"4px",maxWidth:"300px",lineHeight:1.4},children:[w.jsx("div",{style:{fontWeight:"bold",marginBottom:"5px",color:"#fff"},children:"Debug Info"}),w.jsxs("div",{children:["scrollTop: ",c.debug.scrollTop]}),w.jsxs("div",{children:["headerHeight: ",c.debug.headerHeight]}),w.jsxs("div",{children:["contentScrollTop: ",c.debug.contentScrollTop]}),w.jsxs("div",{children:["clientHeight: ",c.debug.clientHeight]}),w.jsxs("div",{style:{marginTop:"5px",borderTop:"1px solid #444",paddingTop:"5px"},children:[w.jsxs("div",{children:["visibleRowStart: ",c.debug.visibleRowStart]}),w.jsxs("div",{children:["visibleRowEnd: ",c.debug.visibleRowEnd]})]}),w.jsxs("div",{style:{marginTop:"5px",borderTop:"1px solid #444",paddingTop:"5px"},children:[w.jsxs("div",{children:["totalRows: ",c.debug.totalRows]}),w.jsxs("div",{children:["offsetsLength: ",c.debug.offsetsLength]}),w.jsxs("div",{children:["renderedCount: ",c.debug.renderedCount]})]}),w.jsxs("div",{style:{marginTop:"5px",borderTop:"1px solid #444",paddingTop:"5px"},children:[w.jsxs("div",{children:["topPadding: ",c.topPadding.toFixed(0)]}),w.jsxs("div",{children:["bottomPadding: ",c.bottomPadding.toFixed(0)]}),w.jsxs("div",{children:["totalContentHeight: ",c.totalContentHeight.toFixed(0)]})]}),w.jsxs("div",{style:{marginTop:"5px",borderTop:"1px solid #444",paddingTop:"5px",color:"#ff0"},children:[w.jsxs("div",{children:["cumulativeOffsets: ",this.state.cumulativeOffsets?"SET":"NULL"]}),w.jsxs("div",{children:["columnWidth: ",((A=this.state.contentColumnWidth)==null?void 0:A.toFixed(0))??"N/A","px"]}),w.jsxs("div",{children:["charWidth: ",((k=this.state.charWidth)==null?void 0:k.toFixed(2))??"N/A","px"]}),w.jsxs("div",{children:["charsPerRow: ",this.state.contentColumnWidth&&this.state.charWidth?Math.floor(this.state.contentColumnWidth/this.state.charWidth):"N/A"]})]}),this.state.cumulativeOffsets&&w.jsxs("div",{style:{marginTop:"5px",borderTop:"1px solid #444",paddingTop:"5px",color:"#0ff",fontSize:"10px"},children:[w.jsxs("div",{children:["offsets[",c.debug.visibleRowEnd,"]: ",((R=this.state.cumulativeOffsets[c.debug.visibleRowEnd])==null?void 0:R.toFixed(0))??"N/A"]}),w.jsxs("div",{children:["offsets[",c.debug.totalRows-1,"]: ",((G=this.state.cumulativeOffsets[c.debug.totalRows-1])==null?void 0:G.toFixed(0))??"N/A"]}),w.jsxs("div",{children:["offsets[",c.debug.totalRows,"]: ",((Y=this.state.cumulativeOffsets[c.debug.totalRows])==null?void 0:Y.toFixed(0))??"N/A"]}),w.jsxs("div",{style:{marginTop:"3px"},children:["viewportEnd: ",(c.debug.contentScrollTop+c.debug.clientHeight).toFixed(0)]}),w.jsxs("div",{style:{marginTop:"3px",color:"#f0f"},children:["scrollHeight: ",((te=this.state.scrollableContainerRef.current)==null?void 0:te.scrollHeight)??"N/A"]}),w.jsxs("div",{children:["maxScrollTop: ",(((T=this.state.scrollableContainerRef.current)==null?void 0:T.scrollHeight)??0)-c.debug.clientHeight]})]})]})]})]})});this.state={expandedBlocks:[],noSelect:void 0,scrollableContainerRef:ee.createRef(),computedDiffResult:{},isLoading:!1,visibleStartRow:0,contentColumnWidth:null,charWidth:null,cumulativeOffsets:null,isScrolling:!1}}getStickyHeaderHeight(){var i;return((i=this.stickyHeaderRef.current)==null?void 0:i.offsetHeight)||0}measureCharWidth(){const i=this.charMeasureRef.current;return i&&i.getBoundingClientRect().width||7.2}measureContentColumnWidth(){const i=this.contentColumnRef.current;if(i&&i.clientWidth>0){const m=window.getComputedStyle(i),x=parseFloat(m.paddingLeft)+parseFloat(m.paddingRight),h=i.clientWidth-x;if(h>0)return h}const r=this.state.scrollableContainerRef.current;if(!r||r.clientWidth<=0)return null;const t=r.clientWidth,l=this.props.hideLineNumbers?0:50,o=28,s=(this.props.splitView,2),a=this.props.splitView?2:1,u=this.props.splitView?2:1,f=s*l+a*o,c=t-f;return Math.max(100,c/u)}getTextLength(i){return i?typeof i=="string"?i.length:i.reduce((r,t)=>r+(typeof t.value=="string"?t.value.length:0),0):0}buildCumulativeOffsets(i,r,t,l,o,s,a,u){var m,x;const f=[0],c=new Set;for(let h=0;h<i.length;h++){const d=i[h];if(o){const b=r[h];if(b!==void 0&&!l.includes(b)){const E=t[b].endLine===h;!c.has(b)&&E&&(c.add(b),f.push(f[f.length-1]+Z.ESTIMATED_ROW_HEIGHT));continue}}const g=(m=d.left)!=null&&m.value?this.getTextLength(d.left.value):0,v=(x=d.right)!=null&&x.value?this.getTextLength(d.right.value):0,p=u?Math.max(g,v):g||v,y=Math.floor(a/s),C=y>0?Math.max(1,Math.ceil(p/y)):1;f.push(f[f.length-1]+C*Z.ESTIMATED_ROW_HEIGHT)}return f}findLineAtOffset(i,r){let t=0,l=r.length-2;for(;t<l;){const o=Math.floor((t+l+1)/2);r[o]<=i?t=o:l=o-1}return t}componentDidUpdate(i){if(i.oldValue!==this.props.oldValue||i.newValue!==this.props.newValue||i.compareMethod!==this.props.compareMethod||i.disableWordDiff!==this.props.disableWordDiff||i.linesOffset!==this.props.linesOffset){this.wordDiffCache.clear();const r=this.state.scrollableContainerRef.current;r&&(r.scrollTop=0),this.setState(t=>({...t,isLoading:!0,visibleStartRow:0,cumulativeOffsets:null})),this.memoisedCompute()}}componentDidMount(){if(this.setState(i=>({...i,isLoading:!0})),this.memoisedCompute(),typeof ResizeObserver<"u"&&this.props.infiniteLoading){this.resizeObserver=new ResizeObserver(()=>{requestAnimationFrame(()=>this.recalculateOffsets())});const i=this.state.scrollableContainerRef.current;i&&this.resizeObserver.observe(i)}}componentWillUnmount(){var i;(i=this.resizeObserver)==null||i.disconnect(),this.scrollDebounceTimer&&clearTimeout(this.scrollDebounceTimer)}};O(Z,"defaultProps",{oldValue:"",newValue:"",splitView:!0,highlightLines:[],disableWordDiff:!1,compareMethod:j.CHARS,styles:{},hideLineNumbers:!1,extraLinesSurroundingDiff:3,showDiffOnly:!0,useDarkTheme:!1,linesOffset:0,nonce:""}),O(Z,"ESTIMATED_ROW_HEIGHT",19);let xi=Z;export{j as DiffMethod,U as LineNumberPrefix,Os as computeStyles,xi as default};
@@ -1 +1 @@
1
- import{P as L,N as $,g as E,D as j,h as y,T as S,I as G}from"./index-CCHYQVhi.js";var N={};class v{constructor(t,e,s,i,h,r,n,o,a,u=0,f){this.p=t,this.stack=e,this.state=s,this.reducePos=i,this.pos=h,this.score=r,this.buffer=n,this.bufferBase=o,this.curContext=a,this.lookAhead=u,this.parent=f}toString(){return`[${this.stack.filter((t,e)=>e%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(t,e,s=0){let i=t.parser.context;return new v(t,[],e,s,s,0,[],0,i?new R(i,i.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(t,e){this.stack.push(this.state,e,this.bufferBase+this.buffer.length),this.state=t}reduce(t){var e;let s=t>>19,i=t&65535,{parser:h}=this.p,r=this.reducePos<this.pos-25&&this.setLookAhead(this.pos),n=h.dynamicPrecedence(i);if(n&&(this.score+=n),s==0){i<h.minRepeatTerm&&this.reducePos<this.pos&&(this.reducePos=this.pos),this.pushState(h.getGoto(this.state,i,!0),this.reducePos),i<h.minRepeatTerm&&this.storeNode(i,this.reducePos,this.reducePos,r?8:4,!0),this.reduceContext(i,this.reducePos);return}let o=this.stack.length-(s-1)*3-(t&262144?6:0),a=o?this.stack[o-2]:this.p.ranges[0].from;i<h.minRepeatTerm&&a==this.reducePos&&this.reducePos<this.pos&&(this.reducePos=this.pos);let u=this.reducePos-a;u>=2e3&&!(!((e=this.p.parser.nodeSet.types[i])===null||e===void 0)&&e.isAnonymous)&&(a==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=u):this.p.lastBigReductionSize<u&&(this.p.bigReductionCount=1,this.p.lastBigReductionStart=a,this.p.lastBigReductionSize=u));let f=o?this.stack[o-1]:0,d=this.bufferBase+this.buffer.length-f;if(i<h.minRepeatTerm||t&131072){let c=h.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(i,a,c,d+4,!0)}if(t&262144)this.state=this.stack[o];else{let c=this.stack[o-3];this.state=h.getGoto(c,i,!0)}for(;this.stack.length>o;)this.stack.pop();this.reduceContext(i,a)}storeNode(t,e,s,i=4,h=!1){if(t==0&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let r=this.buffer.length;if(r>0&&this.buffer[r-4]==0&&this.buffer[r-1]>-1){if(e==s)return;if(this.buffer[r-2]>=e){this.buffer[r-2]=s;return}}}if(!h||this.pos==s)this.buffer.push(t,e,s,i);else{let r=this.buffer.length;if(r>0&&(this.buffer[r-4]!=0||this.buffer[r-1]<0)){let n=!1;for(let o=r;o>0&&this.buffer[o-2]>s;o-=4)if(this.buffer[o-1]>=0){n=!0;break}if(n)for(;r>0&&this.buffer[r-2]>s;)this.buffer[r]=this.buffer[r-4],this.buffer[r+1]=this.buffer[r-3],this.buffer[r+2]=this.buffer[r-2],this.buffer[r+3]=this.buffer[r-1],r-=4,i>4&&(i-=4)}this.buffer[r]=t,this.buffer[r+1]=e,this.buffer[r+2]=s,this.buffer[r+3]=i}}shift(t,e,s,i){if(t&131072)this.pushState(t&65535,this.pos);else if((t&262144)==0){let h=t,{parser:r}=this.p;this.pos=i;let n=r.stateFlag(h,1);!n&&(i>s||e<=r.maxNode)&&(this.reducePos=i),this.pushState(h,n?s:Math.min(s,this.reducePos)),this.shiftContext(e,s),e<=r.maxNode&&this.buffer.push(e,s,i,4)}else this.pos=i,this.shiftContext(e,s),e<=this.p.parser.maxNode&&this.buffer.push(e,s,i,4)}apply(t,e,s,i){t&65536?this.reduce(t):this.shift(t,e,s,i)}useNode(t,e){let s=this.p.reused.length-1;(s<0||this.p.reused[s]!=t)&&(this.p.reused.push(t),s++);let i=this.pos;this.reducePos=this.pos=i+t.length,this.pushState(e,i),this.buffer.push(s,i,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,t,this,this.p.stream.reset(this.pos-t.length)))}split(){let t=this,e=t.buffer.length;for(e&&t.buffer[e-4]==0&&(e-=4);e>0&&t.buffer[e-2]>t.reducePos;)e-=4;let s=t.buffer.slice(e),i=t.bufferBase+e;for(;t&&i==t.bufferBase;)t=t.parent;return new v(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,s,i,this.curContext,this.lookAhead,t)}recoverByDelete(t,e){let s=t<=this.p.parser.maxNode;s&&this.storeNode(t,this.pos,e,4),this.storeNode(0,this.pos,e,s?8:4),this.pos=this.reducePos=e,this.score-=190}canShift(t){for(let e=new U(this);;){let s=this.p.parser.stateSlot(e.state,4)||this.p.parser.hasAction(e.state,t);if(s==0)return!1;if((s&65536)==0)return!0;e.reduce(s)}}recoverByInsert(t){if(this.stack.length>=300)return[];let e=this.p.parser.nextStates(this.state);if(e.length>8||this.stack.length>=120){let i=[];for(let h=0,r;h<e.length;h+=2)(r=e[h+1])!=this.state&&this.p.parser.hasAction(r,t)&&i.push(e[h],r);if(this.stack.length<120)for(let h=0;i.length<8&&h<e.length;h+=2){let r=e[h+1];i.some((n,o)=>o&1&&n==r)||i.push(e[h],r)}e=i}let s=[];for(let i=0;i<e.length&&s.length<4;i+=2){let h=e[i+1];if(h==this.state)continue;let r=this.split();r.pushState(h,this.pos),r.storeNode(0,r.pos,r.pos,4,!0),r.shiftContext(e[i],this.pos),r.reducePos=this.pos,r.score-=200,s.push(r)}return s}forceReduce(){let{parser:t}=this.p,e=t.stateSlot(this.state,5);if((e&65536)==0)return!1;if(!t.validAction(this.state,e)){let s=e>>19,i=e&65535,h=this.stack.length-s*3;if(h<0||t.getGoto(this.stack[h],i,!1)<0){let r=this.findForcedReduction();if(r==null)return!1;e=r}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(e),!0}findForcedReduction(){let{parser:t}=this.p,e=[],s=(i,h)=>{if(!e.includes(i))return e.push(i),t.allActions(i,r=>{if(!(r&393216))if(r&65536){let n=(r>>19)-h;if(n>1){let o=r&65535,a=this.stack.length-n*3;if(a>=0&&t.getGoto(this.stack[a],o,!1)>=0)return n<<19|65536|o}}else{let n=s(r,h+1);if(n!=null)return n}})};return s(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:t}=this.p;return t.data[t.stateSlot(this.state,1)]==65535&&!t.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(t){if(this.state!=t.state||this.stack.length!=t.stack.length)return!1;for(let e=0;e<this.stack.length;e+=3)if(this.stack[e]!=t.stack[e])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(t){return this.p.parser.dialect.flags[t]}shiftContext(t,e){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,t,this,this.p.stream.reset(e)))}reduceContext(t,e){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,t,this,this.p.stream.reset(e)))}emitContext(){let t=this.buffer.length-1;(t<0||this.buffer[t]!=-3)&&this.buffer.push(this.curContext.hash,this.pos,this.pos,-3)}emitLookAhead(){let t=this.buffer.length-1;(t<0||this.buffer[t]!=-4)&&this.buffer.push(this.lookAhead,this.pos,this.pos,-4)}updateContext(t){if(t!=this.curContext.context){let e=new R(this.curContext.tracker,t);e.hash!=this.curContext.hash&&this.emitContext(),this.curContext=e}}setLookAhead(t){return t<=this.lookAhead?!1:(this.emitLookAhead(),this.lookAhead=t,!0)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class R{constructor(t,e){this.tracker=t,this.context=e,this.hash=t.strict?t.hash(e):0}}class U{constructor(t){this.start=t,this.state=t.state,this.stack=t.stack,this.base=this.stack.length}reduce(t){let e=t&65535,s=t>>19;s==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(s-1)*3;let i=this.start.p.parser.getGoto(this.stack[this.base-3],e,!0);this.state=i}}class A{constructor(t,e,s){this.stack=t,this.pos=e,this.index=s,this.buffer=t.buffer,this.index==0&&this.maybeNext()}static create(t,e=t.bufferBase+t.buffer.length){return new A(t,e,e-t.bufferBase)}maybeNext(){let t=this.stack.parent;t!=null&&(this.index=this.stack.bufferBase-t.bufferBase,this.stack=t,this.buffer=t.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new A(this.stack,this.pos,this.index)}}function x(l,t=Uint16Array){if(typeof l!="string")return l;let e=null;for(let s=0,i=0;s<l.length;){let h=0;for(;;){let r=l.charCodeAt(s++),n=!1;if(r==126){h=65535;break}r>=92&&r--,r>=34&&r--;let o=r-32;if(o>=46&&(o-=46,n=!0),h+=o,n)break;h*=46}e?e[i++]=h:e=new t(h)}return e}class P{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const z=new P;class H{constructor(t,e){this.input=t,this.ranges=e,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=z,this.rangeIndex=0,this.pos=this.chunkPos=e[0].from,this.range=e[0],this.end=e[e.length-1].to,this.readNext()}resolveOffset(t,e){let s=this.range,i=this.rangeIndex,h=this.pos+t;for(;h<s.from;){if(!i)return null;let r=this.ranges[--i];h-=s.from-r.to,s=r}for(;e<0?h>s.to:h>=s.to;){if(i==this.ranges.length-1)return null;let r=this.ranges[++i];h+=r.from-s.to,s=r}return h}clipPos(t){if(t>=this.range.from&&t<this.range.to)return t;for(let e of this.ranges)if(e.to>t)return Math.max(t,e.from);return this.end}peek(t){let e=this.chunkOff+t,s,i;if(e>=0&&e<this.chunk.length)s=this.pos+t,i=this.chunk.charCodeAt(e);else{let h=this.resolveOffset(t,1);if(h==null)return-1;if(s=h,s>=this.chunk2Pos&&s<this.chunk2Pos+this.chunk2.length)i=this.chunk2.charCodeAt(s-this.chunk2Pos);else{let r=this.rangeIndex,n=this.range;for(;n.to<=s;)n=this.ranges[++r];this.chunk2=this.input.chunk(this.chunk2Pos=s),s+this.chunk2.length>n.to&&(this.chunk2=this.chunk2.slice(0,n.to-s)),i=this.chunk2.charCodeAt(0)}}return s>=this.token.lookAhead&&(this.token.lookAhead=s+1),i}acceptToken(t,e=0){let s=e?this.resolveOffset(e,-1):this.pos;if(s==null||s<this.token.start)throw new RangeError("Token end out of bounds");this.token.value=t,this.token.end=s}acceptTokenTo(t,e){this.token.value=t,this.token.end=e}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:t,chunkPos:e}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=t,this.chunk2Pos=e,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let t=this.input.chunk(this.pos),e=this.pos+t.length;this.chunk=e>this.range.to?t.slice(0,this.range.to-this.pos):t,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(t=1){for(this.chunkOff+=t;this.pos+t>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();t-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=t,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(t,e){if(e?(this.token=e,e.start=t,e.lookAhead=t+1,e.value=e.extended=-1):this.token=z,this.pos!=t){if(this.pos=t,t==this.end)return this.setDone(),this;for(;t<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;t>=this.range.to;)this.range=this.ranges[++this.rangeIndex];t>=this.chunkPos&&t<this.chunkPos+this.chunk.length?this.chunkOff=t-this.chunkPos:(this.chunk="",this.chunkOff=0),this.readNext()}return this}read(t,e){if(t>=this.chunkPos&&e<=this.chunkPos+this.chunk.length)return this.chunk.slice(t-this.chunkPos,e-this.chunkPos);if(t>=this.chunk2Pos&&e<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(t-this.chunk2Pos,e-this.chunk2Pos);if(t>=this.range.from&&e<=this.range.to)return this.input.read(t,e);let s="";for(let i of this.ranges){if(i.from>=e)break;i.to>t&&(s+=this.input.read(Math.max(i.from,t),Math.min(i.to,e)))}return s}}class m{constructor(t,e){this.data=t,this.id=e}token(t,e){let{parser:s}=e.p;O(this.data,t,e,this.id,s.data,s.tokenPrecTable)}}m.prototype.contextual=m.prototype.fallback=m.prototype.extend=!1;class W{constructor(t,e,s){this.precTable=e,this.elseToken=s,this.data=typeof t=="string"?x(t):t}token(t,e){let s=t.pos,i=0;for(;;){let h=t.next<0,r=t.resolveOffset(1,1);if(O(this.data,t,e,0,this.data,this.precTable),t.token.value>-1)break;if(this.elseToken==null)return;if(h||i++,r==null)break;t.reset(r,t.token)}i&&(t.reset(s,t.token),t.acceptToken(this.elseToken,i))}}W.prototype.contextual=m.prototype.fallback=m.prototype.extend=!1;class Z{constructor(t,e={}){this.token=t,this.contextual=!!e.contextual,this.fallback=!!e.fallback,this.extend=!!e.extend}}function O(l,t,e,s,i,h){let r=0,n=1<<s,{dialect:o}=e.p.parser;t:for(;(n&l[r])!=0;){let a=l[r+1];for(let c=r+3;c<a;c+=2)if((l[c+1]&n)>0){let p=l[c];if(o.allows(p)&&(t.token.value==-1||t.token.value==p||q(p,t.token.value,i,h))){t.acceptToken(p);break}}let u=t.next,f=0,d=l[r+2];if(t.next<0&&d>f&&l[a+d*3-3]==65535){r=l[a+d*3-1];continue t}for(;f<d;){let c=f+d>>1,p=a+c+(c<<1),b=l[p],M=l[p+1]||65536;if(u<b)d=c;else if(u>=M)f=c+1;else{r=l[p+2],t.advance();continue t}}break}}function I(l,t,e){for(let s=t,i;(i=l[s])!=65535;s++)if(i==e)return s-t;return-1}function q(l,t,e,s){let i=I(e,s,t);return i<0||I(e,s,l)<i}const g=typeof process<"u"&&N&&/\bparse\b/.test(N.LOG);let T=null;function D(l,t,e){let s=l.cursor(G.IncludeAnonymous);for(s.moveTo(t);;)if(!(e<0?s.childBefore(t):s.childAfter(t)))for(;;){if((e<0?s.to<t:s.from>t)&&!s.type.isError)return e<0?Math.max(0,Math.min(s.to-1,t-25)):Math.min(l.length,Math.max(s.from+1,t+25));if(e<0?s.prevSibling():s.nextSibling())break;if(!s.parent())return e<0?0:l.length}}class J{constructor(t,e){this.fragments=t,this.nodeSet=e,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let t=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(t){for(this.safeFrom=t.openStart?D(t.tree,t.from+t.offset,1)-t.offset:t.from,this.safeTo=t.openEnd?D(t.tree,t.to+t.offset,-1)-t.offset:t.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(t.tree),this.start.push(-t.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(t){if(t<this.nextStart)return null;for(;this.fragment&&this.safeTo<=t;)this.nextFragment();if(!this.fragment)return null;for(;;){let e=this.trees.length-1;if(e<0)return this.nextFragment(),null;let s=this.trees[e],i=this.index[e];if(i==s.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let h=s.children[i],r=this.start[e]+s.positions[i];if(r>t)return this.nextStart=r,null;if(h instanceof S){if(r==t){if(r<this.safeFrom)return null;let n=r+h.length;if(n<=this.safeTo){let o=h.prop(y.lookAhead);if(!o||n+o<this.fragment.to)return h}}this.index[e]++,r+h.length>=Math.max(this.safeFrom,t)&&(this.trees.push(h),this.start.push(r),this.index.push(0))}else this.index[e]++,this.nextStart=r+h.length}}}class K{constructor(t,e){this.stream=e,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=t.tokenizers.map(s=>new P)}getActions(t){let e=0,s=null,{parser:i}=t.p,{tokenizers:h}=i,r=i.stateSlot(t.state,3),n=t.curContext?t.curContext.hash:0,o=0;for(let a=0;a<h.length;a++){if((1<<a&r)==0)continue;let u=h[a],f=this.tokens[a];if(!(s&&!u.fallback)&&((u.contextual||f.start!=t.pos||f.mask!=r||f.context!=n)&&(this.updateCachedToken(f,u,t),f.mask=r,f.context=n),f.lookAhead>f.end+25&&(o=Math.max(f.lookAhead,o)),f.value!=0)){let d=e;if(f.extended>-1&&(e=this.addActions(t,f.extended,f.end,e)),e=this.addActions(t,f.value,f.end,e),!u.extend&&(s=f,e>d))break}}for(;this.actions.length>e;)this.actions.pop();return o&&t.setLookAhead(o),!s&&t.pos==this.stream.end&&(s=new P,s.value=t.p.parser.eofTerm,s.start=s.end=t.pos,e=this.addActions(t,s.value,s.end,e)),this.mainToken=s,this.actions}getMainToken(t){if(this.mainToken)return this.mainToken;let e=new P,{pos:s,p:i}=t;return e.start=s,e.end=Math.min(s+1,i.stream.end),e.value=s==i.stream.end?i.parser.eofTerm:0,e}updateCachedToken(t,e,s){let i=this.stream.clipPos(s.pos);if(e.token(this.stream.reset(i,t),s),t.value>-1){let{parser:h}=s.p;for(let r=0;r<h.specialized.length;r++)if(h.specialized[r]==t.value){let n=h.specializers[r](this.stream.read(t.start,t.end),s);if(n>=0&&s.p.parser.dialect.allows(n>>1)){(n&1)==0?t.value=n>>1:t.extended=n>>1;break}}}else t.value=0,t.end=this.stream.clipPos(i+1)}putAction(t,e,s,i){for(let h=0;h<i;h+=3)if(this.actions[h]==t)return i;return this.actions[i++]=t,this.actions[i++]=e,this.actions[i++]=s,i}addActions(t,e,s,i){let{state:h}=t,{parser:r}=t.p,{data:n}=r;for(let o=0;o<2;o++)for(let a=r.stateSlot(h,o?2:1);;a+=3){if(n[a]==65535)if(n[a+1]==1)a=k(n,a+2);else{i==0&&n[a+1]==2&&(i=this.putAction(k(n,a+2),e,s,i));break}n[a]==e&&(i=this.putAction(k(n,a+1),e,s,i))}return i}}class Q{constructor(t,e,s,i){this.parser=t,this.input=e,this.ranges=i,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.lastBigReductionStart=-1,this.lastBigReductionSize=0,this.bigReductionCount=0,this.stream=new H(e,i),this.tokens=new K(t,this.stream),this.topTerm=t.top[1];let{from:h}=i[0];this.stacks=[v.start(this,t.top[0],h)],this.fragments=s.length&&this.stream.end-h>t.bufferLength*4?new J(s,t.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let t=this.stacks,e=this.minStackPos,s=this.stacks=[],i,h;if(this.bigReductionCount>300&&t.length==1){let[r]=t;for(;r.forceReduce()&&r.stack.length&&r.stack[r.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let r=0;r<t.length;r++){let n=t[r];for(;;){if(this.tokens.mainToken=null,n.pos>e)s.push(n);else{if(this.advanceStack(n,s,t))continue;{i||(i=[],h=[]),i.push(n);let o=this.tokens.getMainToken(n);h.push(o.value,o.end)}}break}}if(!s.length){let r=i&&X(i);if(r)return g&&console.log("Finish with "+this.stackID(r)),this.stackToTree(r);if(this.parser.strict)throw g&&i&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+e);this.recovering||(this.recovering=5)}if(this.recovering&&i){let r=this.stoppedAt!=null&&i[0].pos>this.stoppedAt?i[0]:this.runRecovery(i,h,s);if(r)return g&&console.log("Force-finish "+this.stackID(r)),this.stackToTree(r.forceAll())}if(this.recovering){let r=this.recovering==1?1:this.recovering*3;if(s.length>r)for(s.sort((n,o)=>o.score-n.score);s.length>r;)s.pop();s.some(n=>n.reducePos>e)&&this.recovering--}else if(s.length>1){t:for(let r=0;r<s.length-1;r++){let n=s[r];for(let o=r+1;o<s.length;o++){let a=s[o];if(n.sameState(a)||n.buffer.length>500&&a.buffer.length>500)if((n.score-a.score||n.buffer.length-a.buffer.length)>0)s.splice(o--,1);else{s.splice(r--,1);continue t}}}s.length>12&&(s.sort((r,n)=>n.score-r.score),s.splice(12,s.length-12))}this.minStackPos=s[0].pos;for(let r=1;r<s.length;r++)s[r].pos<this.minStackPos&&(this.minStackPos=s[r].pos);return null}stopAt(t){if(this.stoppedAt!=null&&this.stoppedAt<t)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=t}advanceStack(t,e,s){let i=t.pos,{parser:h}=this,r=g?this.stackID(t)+" -> ":"";if(this.stoppedAt!=null&&i>this.stoppedAt)return t.forceReduce()?t:null;if(this.fragments){let a=t.curContext&&t.curContext.tracker.strict,u=a?t.curContext.hash:0;for(let f=this.fragments.nodeAt(i);f;){let d=this.parser.nodeSet.types[f.type.id]==f.type?h.getGoto(t.state,f.type.id):-1;if(d>-1&&f.length&&(!a||(f.prop(y.contextHash)||0)==u))return t.useNode(f,d),g&&console.log(r+this.stackID(t)+` (via reuse of ${h.getName(f.type.id)})`),!0;if(!(f instanceof S)||f.children.length==0||f.positions[0]>0)break;let c=f.children[0];if(c instanceof S&&f.positions[0]==0)f=c;else break}}let n=h.stateSlot(t.state,4);if(n>0)return t.reduce(n),g&&console.log(r+this.stackID(t)+` (via always-reduce ${h.getName(n&65535)})`),!0;if(t.stack.length>=8400)for(;t.stack.length>6e3&&t.forceReduce(););let o=this.tokens.getActions(t);for(let a=0;a<o.length;){let u=o[a++],f=o[a++],d=o[a++],c=a==o.length||!s,p=c?t:t.split(),b=this.tokens.mainToken;if(p.apply(u,f,b?b.start:p.pos,d),g&&console.log(r+this.stackID(p)+` (via ${(u&65536)==0?"shift":`reduce of ${h.getName(u&65535)}`} for ${h.getName(f)} @ ${i}${p==t?"":", split"})`),c)return!0;p.pos>i?e.push(p):s.push(p)}return!1}advanceFully(t,e){let s=t.pos;for(;;){if(!this.advanceStack(t,null,null))return!1;if(t.pos>s)return B(t,e),!0}}runRecovery(t,e,s){let i=null,h=!1;for(let r=0;r<t.length;r++){let n=t[r],o=e[r<<1],a=e[(r<<1)+1],u=g?this.stackID(n)+" -> ":"";if(n.deadEnd&&(h||(h=!0,n.restart(),g&&console.log(u+this.stackID(n)+" (restarted)"),this.advanceFully(n,s))))continue;let f=n.split(),d=u;for(let c=0;c<10&&f.forceReduce()&&(g&&console.log(d+this.stackID(f)+" (via force-reduce)"),!this.advanceFully(f,s));c++)g&&(d=this.stackID(f)+" -> ");for(let c of n.recoverByInsert(o))g&&console.log(u+this.stackID(c)+" (via recover-insert)"),this.advanceFully(c,s);this.stream.end>n.pos?(a==n.pos&&(a++,o=0),n.recoverByDelete(o,a),g&&console.log(u+this.stackID(n)+` (via recover-delete ${this.parser.getName(o)})`),B(n,s)):(!i||i.score<f.score)&&(i=f)}return i}stackToTree(t){return t.close(),S.build({buffer:A.create(t),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:t.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(t){let e=(T||(T=new WeakMap)).get(t);return e||T.set(t,e=String.fromCodePoint(this.nextStackID++)),e+t}}function B(l,t){for(let e=0;e<t.length;e++){let s=t[e];if(s.pos==l.pos&&s.sameState(l)){t[e].score<l.score&&(t[e]=l);return}}t.push(l)}class V{constructor(t,e,s){this.source=t,this.flags=e,this.disabled=s}allows(t){return!this.disabled||this.disabled[t]==0}}const C=l=>l;class _{constructor(t){this.start=t.start,this.shift=t.shift||C,this.reduce=t.reduce||C,this.reuse=t.reuse||C,this.hash=t.hash||(()=>0),this.strict=t.strict!==!1}}class w extends L{constructor(t){if(super(),this.wrappers=[],t.version!=14)throw new RangeError(`Parser version (${t.version}) doesn't match runtime version (14)`);let e=t.nodeNames.split(" ");this.minRepeatTerm=e.length;for(let n=0;n<t.repeatNodeCount;n++)e.push("");let s=Object.keys(t.topRules).map(n=>t.topRules[n][1]),i=[];for(let n=0;n<e.length;n++)i.push([]);function h(n,o,a){i[n].push([o,o.deserialize(String(a))])}if(t.nodeProps)for(let n of t.nodeProps){let o=n[0];typeof o=="string"&&(o=y[o]);for(let a=1;a<n.length;){let u=n[a++];if(u>=0)h(u,o,n[a++]);else{let f=n[a+-u];for(let d=-u;d>0;d--)h(n[a++],o,f);a++}}}this.nodeSet=new $(e.map((n,o)=>E.define({name:o>=this.minRepeatTerm?void 0:n,id:o,props:i[o],top:s.indexOf(o)>-1,error:o==0,skipped:t.skippedNodes&&t.skippedNodes.indexOf(o)>-1}))),t.propSources&&(this.nodeSet=this.nodeSet.extend(...t.propSources)),this.strict=!1,this.bufferLength=j;let r=x(t.tokenData);this.context=t.context,this.specializerSpecs=t.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let n=0;n<this.specializerSpecs.length;n++)this.specialized[n]=this.specializerSpecs[n].term;this.specializers=this.specializerSpecs.map(F),this.states=x(t.states,Uint32Array),this.data=x(t.stateData),this.goto=x(t.goto),this.maxTerm=t.maxTerm,this.tokenizers=t.tokenizers.map(n=>typeof n=="number"?new m(r,n):n),this.topRules=t.topRules,this.dialects=t.dialects||{},this.dynamicPrecedences=t.dynamicPrecedences||null,this.tokenPrecTable=t.tokenPrec,this.termNames=t.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(t,e,s){let i=new Q(this,t,e,s);for(let h of this.wrappers)i=h(i,t,e,s);return i}getGoto(t,e,s=!1){let i=this.goto;if(e>=i[0])return-1;for(let h=i[e+1];;){let r=i[h++],n=r&1,o=i[h++];if(n&&s)return o;for(let a=h+(r>>1);h<a;h++)if(i[h]==t)return o;if(n)return-1}}hasAction(t,e){let s=this.data;for(let i=0;i<2;i++)for(let h=this.stateSlot(t,i?2:1),r;;h+=3){if((r=s[h])==65535)if(s[h+1]==1)r=s[h=k(s,h+2)];else{if(s[h+1]==2)return k(s,h+2);break}if(r==e||r==0)return k(s,h+1)}return 0}stateSlot(t,e){return this.states[t*6+e]}stateFlag(t,e){return(this.stateSlot(t,0)&e)>0}validAction(t,e){return!!this.allActions(t,s=>s==e?!0:null)}allActions(t,e){let s=this.stateSlot(t,4),i=s?e(s):void 0;for(let h=this.stateSlot(t,1);i==null;h+=3){if(this.data[h]==65535)if(this.data[h+1]==1)h=k(this.data,h+2);else break;i=e(k(this.data,h+1))}return i}nextStates(t){let e=[];for(let s=this.stateSlot(t,1);;s+=3){if(this.data[s]==65535)if(this.data[s+1]==1)s=k(this.data,s+2);else break;if((this.data[s+2]&1)==0){let i=this.data[s+1];e.some((h,r)=>r&1&&h==i)||e.push(this.data[s],i)}}return e}configure(t){let e=Object.assign(Object.create(w.prototype),this);if(t.props&&(e.nodeSet=this.nodeSet.extend(...t.props)),t.top){let s=this.topRules[t.top];if(!s)throw new RangeError(`Invalid top rule name ${t.top}`);e.top=s}return t.tokenizers&&(e.tokenizers=this.tokenizers.map(s=>{let i=t.tokenizers.find(h=>h.from==s);return i?i.to:s})),t.specializers&&(e.specializers=this.specializers.slice(),e.specializerSpecs=this.specializerSpecs.map((s,i)=>{let h=t.specializers.find(n=>n.from==s.external);if(!h)return s;let r=Object.assign(Object.assign({},s),{external:h.to});return e.specializers[i]=F(r),r})),t.contextTracker&&(e.context=t.contextTracker),t.dialect&&(e.dialect=this.parseDialect(t.dialect)),t.strict!=null&&(e.strict=t.strict),t.wrap&&(e.wrappers=e.wrappers.concat(t.wrap)),t.bufferLength!=null&&(e.bufferLength=t.bufferLength),e}hasWrappers(){return this.wrappers.length>0}getName(t){return this.termNames?this.termNames[t]:String(t<=this.maxNode&&this.nodeSet.types[t].name||t)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(t){let e=this.dynamicPrecedences;return e==null?0:e[t]||0}parseDialect(t){let e=Object.keys(this.dialects),s=e.map(()=>!1);if(t)for(let h of t.split(" ")){let r=e.indexOf(h);r>=0&&(s[r]=!0)}let i=null;for(let h=0;h<e.length;h++)if(!s[h])for(let r=this.dialects[e[h]],n;(n=this.data[r++])!=65535;)(i||(i=new Uint8Array(this.maxTerm+1)))[n]=1;return new V(t,s,i)}static deserialize(t){return new w(t)}}function k(l,t){return l[t]|l[t+1]<<16}function X(l){let t=null;for(let e of l){let s=e.p.stoppedAt;(e.pos==e.p.stream.end||s!=null&&e.pos>s)&&e.p.parser.stateFlag(e.state,2)&&(!t||t.score<e.score)&&(t=e)}return t}function F(l){if(l.external){let t=l.extend?1:0;return(e,s)=>l.external(e,s)<<1|t}return l.get}export{_ as C,Z as E,w as L,W as a};
1
+ import{P as L,N as $,g as E,D as j,h as y,T as S,I as G}from"./index-BT9yFVeS.js";var N={};class v{constructor(t,e,s,i,h,r,n,o,a,u=0,f){this.p=t,this.stack=e,this.state=s,this.reducePos=i,this.pos=h,this.score=r,this.buffer=n,this.bufferBase=o,this.curContext=a,this.lookAhead=u,this.parent=f}toString(){return`[${this.stack.filter((t,e)=>e%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(t,e,s=0){let i=t.parser.context;return new v(t,[],e,s,s,0,[],0,i?new R(i,i.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(t,e){this.stack.push(this.state,e,this.bufferBase+this.buffer.length),this.state=t}reduce(t){var e;let s=t>>19,i=t&65535,{parser:h}=this.p,r=this.reducePos<this.pos-25&&this.setLookAhead(this.pos),n=h.dynamicPrecedence(i);if(n&&(this.score+=n),s==0){i<h.minRepeatTerm&&this.reducePos<this.pos&&(this.reducePos=this.pos),this.pushState(h.getGoto(this.state,i,!0),this.reducePos),i<h.minRepeatTerm&&this.storeNode(i,this.reducePos,this.reducePos,r?8:4,!0),this.reduceContext(i,this.reducePos);return}let o=this.stack.length-(s-1)*3-(t&262144?6:0),a=o?this.stack[o-2]:this.p.ranges[0].from;i<h.minRepeatTerm&&a==this.reducePos&&this.reducePos<this.pos&&(this.reducePos=this.pos);let u=this.reducePos-a;u>=2e3&&!(!((e=this.p.parser.nodeSet.types[i])===null||e===void 0)&&e.isAnonymous)&&(a==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=u):this.p.lastBigReductionSize<u&&(this.p.bigReductionCount=1,this.p.lastBigReductionStart=a,this.p.lastBigReductionSize=u));let f=o?this.stack[o-1]:0,d=this.bufferBase+this.buffer.length-f;if(i<h.minRepeatTerm||t&131072){let c=h.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(i,a,c,d+4,!0)}if(t&262144)this.state=this.stack[o];else{let c=this.stack[o-3];this.state=h.getGoto(c,i,!0)}for(;this.stack.length>o;)this.stack.pop();this.reduceContext(i,a)}storeNode(t,e,s,i=4,h=!1){if(t==0&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let r=this.buffer.length;if(r>0&&this.buffer[r-4]==0&&this.buffer[r-1]>-1){if(e==s)return;if(this.buffer[r-2]>=e){this.buffer[r-2]=s;return}}}if(!h||this.pos==s)this.buffer.push(t,e,s,i);else{let r=this.buffer.length;if(r>0&&(this.buffer[r-4]!=0||this.buffer[r-1]<0)){let n=!1;for(let o=r;o>0&&this.buffer[o-2]>s;o-=4)if(this.buffer[o-1]>=0){n=!0;break}if(n)for(;r>0&&this.buffer[r-2]>s;)this.buffer[r]=this.buffer[r-4],this.buffer[r+1]=this.buffer[r-3],this.buffer[r+2]=this.buffer[r-2],this.buffer[r+3]=this.buffer[r-1],r-=4,i>4&&(i-=4)}this.buffer[r]=t,this.buffer[r+1]=e,this.buffer[r+2]=s,this.buffer[r+3]=i}}shift(t,e,s,i){if(t&131072)this.pushState(t&65535,this.pos);else if((t&262144)==0){let h=t,{parser:r}=this.p;this.pos=i;let n=r.stateFlag(h,1);!n&&(i>s||e<=r.maxNode)&&(this.reducePos=i),this.pushState(h,n?s:Math.min(s,this.reducePos)),this.shiftContext(e,s),e<=r.maxNode&&this.buffer.push(e,s,i,4)}else this.pos=i,this.shiftContext(e,s),e<=this.p.parser.maxNode&&this.buffer.push(e,s,i,4)}apply(t,e,s,i){t&65536?this.reduce(t):this.shift(t,e,s,i)}useNode(t,e){let s=this.p.reused.length-1;(s<0||this.p.reused[s]!=t)&&(this.p.reused.push(t),s++);let i=this.pos;this.reducePos=this.pos=i+t.length,this.pushState(e,i),this.buffer.push(s,i,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,t,this,this.p.stream.reset(this.pos-t.length)))}split(){let t=this,e=t.buffer.length;for(e&&t.buffer[e-4]==0&&(e-=4);e>0&&t.buffer[e-2]>t.reducePos;)e-=4;let s=t.buffer.slice(e),i=t.bufferBase+e;for(;t&&i==t.bufferBase;)t=t.parent;return new v(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,s,i,this.curContext,this.lookAhead,t)}recoverByDelete(t,e){let s=t<=this.p.parser.maxNode;s&&this.storeNode(t,this.pos,e,4),this.storeNode(0,this.pos,e,s?8:4),this.pos=this.reducePos=e,this.score-=190}canShift(t){for(let e=new U(this);;){let s=this.p.parser.stateSlot(e.state,4)||this.p.parser.hasAction(e.state,t);if(s==0)return!1;if((s&65536)==0)return!0;e.reduce(s)}}recoverByInsert(t){if(this.stack.length>=300)return[];let e=this.p.parser.nextStates(this.state);if(e.length>8||this.stack.length>=120){let i=[];for(let h=0,r;h<e.length;h+=2)(r=e[h+1])!=this.state&&this.p.parser.hasAction(r,t)&&i.push(e[h],r);if(this.stack.length<120)for(let h=0;i.length<8&&h<e.length;h+=2){let r=e[h+1];i.some((n,o)=>o&1&&n==r)||i.push(e[h],r)}e=i}let s=[];for(let i=0;i<e.length&&s.length<4;i+=2){let h=e[i+1];if(h==this.state)continue;let r=this.split();r.pushState(h,this.pos),r.storeNode(0,r.pos,r.pos,4,!0),r.shiftContext(e[i],this.pos),r.reducePos=this.pos,r.score-=200,s.push(r)}return s}forceReduce(){let{parser:t}=this.p,e=t.stateSlot(this.state,5);if((e&65536)==0)return!1;if(!t.validAction(this.state,e)){let s=e>>19,i=e&65535,h=this.stack.length-s*3;if(h<0||t.getGoto(this.stack[h],i,!1)<0){let r=this.findForcedReduction();if(r==null)return!1;e=r}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(e),!0}findForcedReduction(){let{parser:t}=this.p,e=[],s=(i,h)=>{if(!e.includes(i))return e.push(i),t.allActions(i,r=>{if(!(r&393216))if(r&65536){let n=(r>>19)-h;if(n>1){let o=r&65535,a=this.stack.length-n*3;if(a>=0&&t.getGoto(this.stack[a],o,!1)>=0)return n<<19|65536|o}}else{let n=s(r,h+1);if(n!=null)return n}})};return s(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:t}=this.p;return t.data[t.stateSlot(this.state,1)]==65535&&!t.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(t){if(this.state!=t.state||this.stack.length!=t.stack.length)return!1;for(let e=0;e<this.stack.length;e+=3)if(this.stack[e]!=t.stack[e])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(t){return this.p.parser.dialect.flags[t]}shiftContext(t,e){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,t,this,this.p.stream.reset(e)))}reduceContext(t,e){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,t,this,this.p.stream.reset(e)))}emitContext(){let t=this.buffer.length-1;(t<0||this.buffer[t]!=-3)&&this.buffer.push(this.curContext.hash,this.pos,this.pos,-3)}emitLookAhead(){let t=this.buffer.length-1;(t<0||this.buffer[t]!=-4)&&this.buffer.push(this.lookAhead,this.pos,this.pos,-4)}updateContext(t){if(t!=this.curContext.context){let e=new R(this.curContext.tracker,t);e.hash!=this.curContext.hash&&this.emitContext(),this.curContext=e}}setLookAhead(t){return t<=this.lookAhead?!1:(this.emitLookAhead(),this.lookAhead=t,!0)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class R{constructor(t,e){this.tracker=t,this.context=e,this.hash=t.strict?t.hash(e):0}}class U{constructor(t){this.start=t,this.state=t.state,this.stack=t.stack,this.base=this.stack.length}reduce(t){let e=t&65535,s=t>>19;s==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(s-1)*3;let i=this.start.p.parser.getGoto(this.stack[this.base-3],e,!0);this.state=i}}class A{constructor(t,e,s){this.stack=t,this.pos=e,this.index=s,this.buffer=t.buffer,this.index==0&&this.maybeNext()}static create(t,e=t.bufferBase+t.buffer.length){return new A(t,e,e-t.bufferBase)}maybeNext(){let t=this.stack.parent;t!=null&&(this.index=this.stack.bufferBase-t.bufferBase,this.stack=t,this.buffer=t.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new A(this.stack,this.pos,this.index)}}function x(l,t=Uint16Array){if(typeof l!="string")return l;let e=null;for(let s=0,i=0;s<l.length;){let h=0;for(;;){let r=l.charCodeAt(s++),n=!1;if(r==126){h=65535;break}r>=92&&r--,r>=34&&r--;let o=r-32;if(o>=46&&(o-=46,n=!0),h+=o,n)break;h*=46}e?e[i++]=h:e=new t(h)}return e}class P{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const z=new P;class H{constructor(t,e){this.input=t,this.ranges=e,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=z,this.rangeIndex=0,this.pos=this.chunkPos=e[0].from,this.range=e[0],this.end=e[e.length-1].to,this.readNext()}resolveOffset(t,e){let s=this.range,i=this.rangeIndex,h=this.pos+t;for(;h<s.from;){if(!i)return null;let r=this.ranges[--i];h-=s.from-r.to,s=r}for(;e<0?h>s.to:h>=s.to;){if(i==this.ranges.length-1)return null;let r=this.ranges[++i];h+=r.from-s.to,s=r}return h}clipPos(t){if(t>=this.range.from&&t<this.range.to)return t;for(let e of this.ranges)if(e.to>t)return Math.max(t,e.from);return this.end}peek(t){let e=this.chunkOff+t,s,i;if(e>=0&&e<this.chunk.length)s=this.pos+t,i=this.chunk.charCodeAt(e);else{let h=this.resolveOffset(t,1);if(h==null)return-1;if(s=h,s>=this.chunk2Pos&&s<this.chunk2Pos+this.chunk2.length)i=this.chunk2.charCodeAt(s-this.chunk2Pos);else{let r=this.rangeIndex,n=this.range;for(;n.to<=s;)n=this.ranges[++r];this.chunk2=this.input.chunk(this.chunk2Pos=s),s+this.chunk2.length>n.to&&(this.chunk2=this.chunk2.slice(0,n.to-s)),i=this.chunk2.charCodeAt(0)}}return s>=this.token.lookAhead&&(this.token.lookAhead=s+1),i}acceptToken(t,e=0){let s=e?this.resolveOffset(e,-1):this.pos;if(s==null||s<this.token.start)throw new RangeError("Token end out of bounds");this.token.value=t,this.token.end=s}acceptTokenTo(t,e){this.token.value=t,this.token.end=e}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:t,chunkPos:e}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=t,this.chunk2Pos=e,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let t=this.input.chunk(this.pos),e=this.pos+t.length;this.chunk=e>this.range.to?t.slice(0,this.range.to-this.pos):t,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(t=1){for(this.chunkOff+=t;this.pos+t>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();t-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=t,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(t,e){if(e?(this.token=e,e.start=t,e.lookAhead=t+1,e.value=e.extended=-1):this.token=z,this.pos!=t){if(this.pos=t,t==this.end)return this.setDone(),this;for(;t<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;t>=this.range.to;)this.range=this.ranges[++this.rangeIndex];t>=this.chunkPos&&t<this.chunkPos+this.chunk.length?this.chunkOff=t-this.chunkPos:(this.chunk="",this.chunkOff=0),this.readNext()}return this}read(t,e){if(t>=this.chunkPos&&e<=this.chunkPos+this.chunk.length)return this.chunk.slice(t-this.chunkPos,e-this.chunkPos);if(t>=this.chunk2Pos&&e<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(t-this.chunk2Pos,e-this.chunk2Pos);if(t>=this.range.from&&e<=this.range.to)return this.input.read(t,e);let s="";for(let i of this.ranges){if(i.from>=e)break;i.to>t&&(s+=this.input.read(Math.max(i.from,t),Math.min(i.to,e)))}return s}}class m{constructor(t,e){this.data=t,this.id=e}token(t,e){let{parser:s}=e.p;O(this.data,t,e,this.id,s.data,s.tokenPrecTable)}}m.prototype.contextual=m.prototype.fallback=m.prototype.extend=!1;class W{constructor(t,e,s){this.precTable=e,this.elseToken=s,this.data=typeof t=="string"?x(t):t}token(t,e){let s=t.pos,i=0;for(;;){let h=t.next<0,r=t.resolveOffset(1,1);if(O(this.data,t,e,0,this.data,this.precTable),t.token.value>-1)break;if(this.elseToken==null)return;if(h||i++,r==null)break;t.reset(r,t.token)}i&&(t.reset(s,t.token),t.acceptToken(this.elseToken,i))}}W.prototype.contextual=m.prototype.fallback=m.prototype.extend=!1;class Z{constructor(t,e={}){this.token=t,this.contextual=!!e.contextual,this.fallback=!!e.fallback,this.extend=!!e.extend}}function O(l,t,e,s,i,h){let r=0,n=1<<s,{dialect:o}=e.p.parser;t:for(;(n&l[r])!=0;){let a=l[r+1];for(let c=r+3;c<a;c+=2)if((l[c+1]&n)>0){let p=l[c];if(o.allows(p)&&(t.token.value==-1||t.token.value==p||q(p,t.token.value,i,h))){t.acceptToken(p);break}}let u=t.next,f=0,d=l[r+2];if(t.next<0&&d>f&&l[a+d*3-3]==65535){r=l[a+d*3-1];continue t}for(;f<d;){let c=f+d>>1,p=a+c+(c<<1),b=l[p],M=l[p+1]||65536;if(u<b)d=c;else if(u>=M)f=c+1;else{r=l[p+2],t.advance();continue t}}break}}function I(l,t,e){for(let s=t,i;(i=l[s])!=65535;s++)if(i==e)return s-t;return-1}function q(l,t,e,s){let i=I(e,s,t);return i<0||I(e,s,l)<i}const g=typeof process<"u"&&N&&/\bparse\b/.test(N.LOG);let T=null;function D(l,t,e){let s=l.cursor(G.IncludeAnonymous);for(s.moveTo(t);;)if(!(e<0?s.childBefore(t):s.childAfter(t)))for(;;){if((e<0?s.to<t:s.from>t)&&!s.type.isError)return e<0?Math.max(0,Math.min(s.to-1,t-25)):Math.min(l.length,Math.max(s.from+1,t+25));if(e<0?s.prevSibling():s.nextSibling())break;if(!s.parent())return e<0?0:l.length}}class J{constructor(t,e){this.fragments=t,this.nodeSet=e,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let t=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(t){for(this.safeFrom=t.openStart?D(t.tree,t.from+t.offset,1)-t.offset:t.from,this.safeTo=t.openEnd?D(t.tree,t.to+t.offset,-1)-t.offset:t.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(t.tree),this.start.push(-t.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(t){if(t<this.nextStart)return null;for(;this.fragment&&this.safeTo<=t;)this.nextFragment();if(!this.fragment)return null;for(;;){let e=this.trees.length-1;if(e<0)return this.nextFragment(),null;let s=this.trees[e],i=this.index[e];if(i==s.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let h=s.children[i],r=this.start[e]+s.positions[i];if(r>t)return this.nextStart=r,null;if(h instanceof S){if(r==t){if(r<this.safeFrom)return null;let n=r+h.length;if(n<=this.safeTo){let o=h.prop(y.lookAhead);if(!o||n+o<this.fragment.to)return h}}this.index[e]++,r+h.length>=Math.max(this.safeFrom,t)&&(this.trees.push(h),this.start.push(r),this.index.push(0))}else this.index[e]++,this.nextStart=r+h.length}}}class K{constructor(t,e){this.stream=e,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=t.tokenizers.map(s=>new P)}getActions(t){let e=0,s=null,{parser:i}=t.p,{tokenizers:h}=i,r=i.stateSlot(t.state,3),n=t.curContext?t.curContext.hash:0,o=0;for(let a=0;a<h.length;a++){if((1<<a&r)==0)continue;let u=h[a],f=this.tokens[a];if(!(s&&!u.fallback)&&((u.contextual||f.start!=t.pos||f.mask!=r||f.context!=n)&&(this.updateCachedToken(f,u,t),f.mask=r,f.context=n),f.lookAhead>f.end+25&&(o=Math.max(f.lookAhead,o)),f.value!=0)){let d=e;if(f.extended>-1&&(e=this.addActions(t,f.extended,f.end,e)),e=this.addActions(t,f.value,f.end,e),!u.extend&&(s=f,e>d))break}}for(;this.actions.length>e;)this.actions.pop();return o&&t.setLookAhead(o),!s&&t.pos==this.stream.end&&(s=new P,s.value=t.p.parser.eofTerm,s.start=s.end=t.pos,e=this.addActions(t,s.value,s.end,e)),this.mainToken=s,this.actions}getMainToken(t){if(this.mainToken)return this.mainToken;let e=new P,{pos:s,p:i}=t;return e.start=s,e.end=Math.min(s+1,i.stream.end),e.value=s==i.stream.end?i.parser.eofTerm:0,e}updateCachedToken(t,e,s){let i=this.stream.clipPos(s.pos);if(e.token(this.stream.reset(i,t),s),t.value>-1){let{parser:h}=s.p;for(let r=0;r<h.specialized.length;r++)if(h.specialized[r]==t.value){let n=h.specializers[r](this.stream.read(t.start,t.end),s);if(n>=0&&s.p.parser.dialect.allows(n>>1)){(n&1)==0?t.value=n>>1:t.extended=n>>1;break}}}else t.value=0,t.end=this.stream.clipPos(i+1)}putAction(t,e,s,i){for(let h=0;h<i;h+=3)if(this.actions[h]==t)return i;return this.actions[i++]=t,this.actions[i++]=e,this.actions[i++]=s,i}addActions(t,e,s,i){let{state:h}=t,{parser:r}=t.p,{data:n}=r;for(let o=0;o<2;o++)for(let a=r.stateSlot(h,o?2:1);;a+=3){if(n[a]==65535)if(n[a+1]==1)a=k(n,a+2);else{i==0&&n[a+1]==2&&(i=this.putAction(k(n,a+2),e,s,i));break}n[a]==e&&(i=this.putAction(k(n,a+1),e,s,i))}return i}}class Q{constructor(t,e,s,i){this.parser=t,this.input=e,this.ranges=i,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.lastBigReductionStart=-1,this.lastBigReductionSize=0,this.bigReductionCount=0,this.stream=new H(e,i),this.tokens=new K(t,this.stream),this.topTerm=t.top[1];let{from:h}=i[0];this.stacks=[v.start(this,t.top[0],h)],this.fragments=s.length&&this.stream.end-h>t.bufferLength*4?new J(s,t.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let t=this.stacks,e=this.minStackPos,s=this.stacks=[],i,h;if(this.bigReductionCount>300&&t.length==1){let[r]=t;for(;r.forceReduce()&&r.stack.length&&r.stack[r.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let r=0;r<t.length;r++){let n=t[r];for(;;){if(this.tokens.mainToken=null,n.pos>e)s.push(n);else{if(this.advanceStack(n,s,t))continue;{i||(i=[],h=[]),i.push(n);let o=this.tokens.getMainToken(n);h.push(o.value,o.end)}}break}}if(!s.length){let r=i&&X(i);if(r)return g&&console.log("Finish with "+this.stackID(r)),this.stackToTree(r);if(this.parser.strict)throw g&&i&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+e);this.recovering||(this.recovering=5)}if(this.recovering&&i){let r=this.stoppedAt!=null&&i[0].pos>this.stoppedAt?i[0]:this.runRecovery(i,h,s);if(r)return g&&console.log("Force-finish "+this.stackID(r)),this.stackToTree(r.forceAll())}if(this.recovering){let r=this.recovering==1?1:this.recovering*3;if(s.length>r)for(s.sort((n,o)=>o.score-n.score);s.length>r;)s.pop();s.some(n=>n.reducePos>e)&&this.recovering--}else if(s.length>1){t:for(let r=0;r<s.length-1;r++){let n=s[r];for(let o=r+1;o<s.length;o++){let a=s[o];if(n.sameState(a)||n.buffer.length>500&&a.buffer.length>500)if((n.score-a.score||n.buffer.length-a.buffer.length)>0)s.splice(o--,1);else{s.splice(r--,1);continue t}}}s.length>12&&(s.sort((r,n)=>n.score-r.score),s.splice(12,s.length-12))}this.minStackPos=s[0].pos;for(let r=1;r<s.length;r++)s[r].pos<this.minStackPos&&(this.minStackPos=s[r].pos);return null}stopAt(t){if(this.stoppedAt!=null&&this.stoppedAt<t)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=t}advanceStack(t,e,s){let i=t.pos,{parser:h}=this,r=g?this.stackID(t)+" -> ":"";if(this.stoppedAt!=null&&i>this.stoppedAt)return t.forceReduce()?t:null;if(this.fragments){let a=t.curContext&&t.curContext.tracker.strict,u=a?t.curContext.hash:0;for(let f=this.fragments.nodeAt(i);f;){let d=this.parser.nodeSet.types[f.type.id]==f.type?h.getGoto(t.state,f.type.id):-1;if(d>-1&&f.length&&(!a||(f.prop(y.contextHash)||0)==u))return t.useNode(f,d),g&&console.log(r+this.stackID(t)+` (via reuse of ${h.getName(f.type.id)})`),!0;if(!(f instanceof S)||f.children.length==0||f.positions[0]>0)break;let c=f.children[0];if(c instanceof S&&f.positions[0]==0)f=c;else break}}let n=h.stateSlot(t.state,4);if(n>0)return t.reduce(n),g&&console.log(r+this.stackID(t)+` (via always-reduce ${h.getName(n&65535)})`),!0;if(t.stack.length>=8400)for(;t.stack.length>6e3&&t.forceReduce(););let o=this.tokens.getActions(t);for(let a=0;a<o.length;){let u=o[a++],f=o[a++],d=o[a++],c=a==o.length||!s,p=c?t:t.split(),b=this.tokens.mainToken;if(p.apply(u,f,b?b.start:p.pos,d),g&&console.log(r+this.stackID(p)+` (via ${(u&65536)==0?"shift":`reduce of ${h.getName(u&65535)}`} for ${h.getName(f)} @ ${i}${p==t?"":", split"})`),c)return!0;p.pos>i?e.push(p):s.push(p)}return!1}advanceFully(t,e){let s=t.pos;for(;;){if(!this.advanceStack(t,null,null))return!1;if(t.pos>s)return B(t,e),!0}}runRecovery(t,e,s){let i=null,h=!1;for(let r=0;r<t.length;r++){let n=t[r],o=e[r<<1],a=e[(r<<1)+1],u=g?this.stackID(n)+" -> ":"";if(n.deadEnd&&(h||(h=!0,n.restart(),g&&console.log(u+this.stackID(n)+" (restarted)"),this.advanceFully(n,s))))continue;let f=n.split(),d=u;for(let c=0;c<10&&f.forceReduce()&&(g&&console.log(d+this.stackID(f)+" (via force-reduce)"),!this.advanceFully(f,s));c++)g&&(d=this.stackID(f)+" -> ");for(let c of n.recoverByInsert(o))g&&console.log(u+this.stackID(c)+" (via recover-insert)"),this.advanceFully(c,s);this.stream.end>n.pos?(a==n.pos&&(a++,o=0),n.recoverByDelete(o,a),g&&console.log(u+this.stackID(n)+` (via recover-delete ${this.parser.getName(o)})`),B(n,s)):(!i||i.score<f.score)&&(i=f)}return i}stackToTree(t){return t.close(),S.build({buffer:A.create(t),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:t.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(t){let e=(T||(T=new WeakMap)).get(t);return e||T.set(t,e=String.fromCodePoint(this.nextStackID++)),e+t}}function B(l,t){for(let e=0;e<t.length;e++){let s=t[e];if(s.pos==l.pos&&s.sameState(l)){t[e].score<l.score&&(t[e]=l);return}}t.push(l)}class V{constructor(t,e,s){this.source=t,this.flags=e,this.disabled=s}allows(t){return!this.disabled||this.disabled[t]==0}}const C=l=>l;class _{constructor(t){this.start=t.start,this.shift=t.shift||C,this.reduce=t.reduce||C,this.reuse=t.reuse||C,this.hash=t.hash||(()=>0),this.strict=t.strict!==!1}}class w extends L{constructor(t){if(super(),this.wrappers=[],t.version!=14)throw new RangeError(`Parser version (${t.version}) doesn't match runtime version (14)`);let e=t.nodeNames.split(" ");this.minRepeatTerm=e.length;for(let n=0;n<t.repeatNodeCount;n++)e.push("");let s=Object.keys(t.topRules).map(n=>t.topRules[n][1]),i=[];for(let n=0;n<e.length;n++)i.push([]);function h(n,o,a){i[n].push([o,o.deserialize(String(a))])}if(t.nodeProps)for(let n of t.nodeProps){let o=n[0];typeof o=="string"&&(o=y[o]);for(let a=1;a<n.length;){let u=n[a++];if(u>=0)h(u,o,n[a++]);else{let f=n[a+-u];for(let d=-u;d>0;d--)h(n[a++],o,f);a++}}}this.nodeSet=new $(e.map((n,o)=>E.define({name:o>=this.minRepeatTerm?void 0:n,id:o,props:i[o],top:s.indexOf(o)>-1,error:o==0,skipped:t.skippedNodes&&t.skippedNodes.indexOf(o)>-1}))),t.propSources&&(this.nodeSet=this.nodeSet.extend(...t.propSources)),this.strict=!1,this.bufferLength=j;let r=x(t.tokenData);this.context=t.context,this.specializerSpecs=t.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let n=0;n<this.specializerSpecs.length;n++)this.specialized[n]=this.specializerSpecs[n].term;this.specializers=this.specializerSpecs.map(F),this.states=x(t.states,Uint32Array),this.data=x(t.stateData),this.goto=x(t.goto),this.maxTerm=t.maxTerm,this.tokenizers=t.tokenizers.map(n=>typeof n=="number"?new m(r,n):n),this.topRules=t.topRules,this.dialects=t.dialects||{},this.dynamicPrecedences=t.dynamicPrecedences||null,this.tokenPrecTable=t.tokenPrec,this.termNames=t.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(t,e,s){let i=new Q(this,t,e,s);for(let h of this.wrappers)i=h(i,t,e,s);return i}getGoto(t,e,s=!1){let i=this.goto;if(e>=i[0])return-1;for(let h=i[e+1];;){let r=i[h++],n=r&1,o=i[h++];if(n&&s)return o;for(let a=h+(r>>1);h<a;h++)if(i[h]==t)return o;if(n)return-1}}hasAction(t,e){let s=this.data;for(let i=0;i<2;i++)for(let h=this.stateSlot(t,i?2:1),r;;h+=3){if((r=s[h])==65535)if(s[h+1]==1)r=s[h=k(s,h+2)];else{if(s[h+1]==2)return k(s,h+2);break}if(r==e||r==0)return k(s,h+1)}return 0}stateSlot(t,e){return this.states[t*6+e]}stateFlag(t,e){return(this.stateSlot(t,0)&e)>0}validAction(t,e){return!!this.allActions(t,s=>s==e?!0:null)}allActions(t,e){let s=this.stateSlot(t,4),i=s?e(s):void 0;for(let h=this.stateSlot(t,1);i==null;h+=3){if(this.data[h]==65535)if(this.data[h+1]==1)h=k(this.data,h+2);else break;i=e(k(this.data,h+1))}return i}nextStates(t){let e=[];for(let s=this.stateSlot(t,1);;s+=3){if(this.data[s]==65535)if(this.data[s+1]==1)s=k(this.data,s+2);else break;if((this.data[s+2]&1)==0){let i=this.data[s+1];e.some((h,r)=>r&1&&h==i)||e.push(this.data[s],i)}}return e}configure(t){let e=Object.assign(Object.create(w.prototype),this);if(t.props&&(e.nodeSet=this.nodeSet.extend(...t.props)),t.top){let s=this.topRules[t.top];if(!s)throw new RangeError(`Invalid top rule name ${t.top}`);e.top=s}return t.tokenizers&&(e.tokenizers=this.tokenizers.map(s=>{let i=t.tokenizers.find(h=>h.from==s);return i?i.to:s})),t.specializers&&(e.specializers=this.specializers.slice(),e.specializerSpecs=this.specializerSpecs.map((s,i)=>{let h=t.specializers.find(n=>n.from==s.external);if(!h)return s;let r=Object.assign(Object.assign({},s),{external:h.to});return e.specializers[i]=F(r),r})),t.contextTracker&&(e.context=t.contextTracker),t.dialect&&(e.dialect=this.parseDialect(t.dialect)),t.strict!=null&&(e.strict=t.strict),t.wrap&&(e.wrappers=e.wrappers.concat(t.wrap)),t.bufferLength!=null&&(e.bufferLength=t.bufferLength),e}hasWrappers(){return this.wrappers.length>0}getName(t){return this.termNames?this.termNames[t]:String(t<=this.maxNode&&this.nodeSet.types[t].name||t)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(t){let e=this.dynamicPrecedences;return e==null?0:e[t]||0}parseDialect(t){let e=Object.keys(this.dialects),s=e.map(()=>!1);if(t)for(let h of t.split(" ")){let r=e.indexOf(h);r>=0&&(s[r]=!0)}let i=null;for(let h=0;h<e.length;h++)if(!s[h])for(let r=this.dialects[e[h]],n;(n=this.data[r++])!=65535;)(i||(i=new Uint8Array(this.maxTerm+1)))[n]=1;return new V(t,s,i)}static deserialize(t){return new w(t)}}function k(l,t){return l[t]|l[t+1]<<16}function X(l){let t=null;for(let e of l){let s=e.p.stoppedAt;(e.pos==e.p.stream.end||s!=null&&e.pos>s)&&e.p.parser.stateFlag(e.state,2)&&(!t||t.score<e.score)&&(t=e)}return t}function F(l){if(l.external){let t=l.extend?1:0;return(e,s)=>l.external(e,s)<<1|t}return l.get}export{_ as C,Z as E,w as L,W as a};
@@ -0,0 +1 @@
1
+ import{L as k,E as $,a as z}from"./index-Do63XgYk.js";import{s as R,t,a as Y,L as W,i as Z,c as x,f as G,l as _,e as V,o as E,I as U}from"./index-CdAooMjU.js";import"./index-BNSNg7yH.js";const T=135,m=1,q=136,C=137,P=2,N=138,F=3,I=4,X=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],D=58,B=40,b=95,K=91,c=45,L=46,A=35,J=37,H=38,M=92,ee=10,Oe=42;function Q(e){return e>=65&&e<=90||e>=97&&e<=122||e>=161}function j(e){return e>=48&&e<=57}function S(e){return j(e)||e>=97&&e<=102||e>=65&&e<=70}const v=(e,r,i)=>(O,a)=>{for(let o=!1,l=0,n=0;;n++){let{next:s}=O;if(Q(s)||s==c||s==b||o&&j(s))!o&&(s!=c||n>0)&&(o=!0),l===n&&s==c&&l++,O.advance();else if(s==M&&O.peek(1)!=ee){if(O.advance(),S(O.next)){do O.advance();while(S(O.next));O.next==32&&O.advance()}else O.next>-1&&O.advance();o=!0}else{o&&O.acceptToken(l==2&&a.canShift(P)?r:s==B?i:e);break}}},ae=new $(v(q,P,C),{contextual:!0}),re=new $(v(N,F,I),{contextual:!0}),te=new $(e=>{if(X.includes(e.peek(-1))){let{next:r}=e;(Q(r)||r==b||r==A||r==L||r==Oe||r==K||r==D&&Q(e.peek(1))||r==c||r==H)&&e.acceptToken(T)}}),oe=new $(e=>{if(!X.includes(e.peek(-1))){let{next:r}=e;if(r==J&&(e.advance(),e.acceptToken(m)),Q(r)){do e.advance();while(Q(e.next)||j(e.next));e.acceptToken(m)}}}),le=R({"AtKeyword import charset namespace keyframes media supports font-feature-values":t.definitionKeyword,"from to selector scope MatchFlag":t.keyword,NamespaceName:t.namespace,KeyframeName:t.labelName,KeyframeRangeName:t.operatorKeyword,TagName:t.tagName,ClassName:t.className,PseudoClassName:t.constant(t.className),IdName:t.labelName,"FeatureName PropertyName":t.propertyName,AttributeName:t.attributeName,NumberLiteral:t.number,KeywordQuery:t.keyword,UnaryQueryOp:t.operatorKeyword,"CallTag ValueName FontName":t.atom,VariableName:t.variableName,Callee:t.operatorKeyword,Unit:t.unit,"UniversalSelector NestingSelector":t.definitionOperator,"MatchOp CompareOp":t.compareOperator,"ChildOp SiblingOp, LogicOp":t.logicOperator,BinOp:t.arithmeticOperator,Important:t.modifier,Comment:t.blockComment,ColorLiteral:t.color,"ParenthesizedContent StringLiteral":t.string,":":t.punctuation,"PseudoOp #":t.derefOperator,"; , |":t.separator,"( )":t.paren,"[ ]":t.squareBracket,"{ }":t.brace}),ie={__proto__:null,lang:44,"nth-child":44,"nth-last-child":44,"nth-of-type":44,"nth-last-of-type":44,dir:44,"host-context":44,if:90,url:132,"url-prefix":132,domain:132,regexp:132},ne={__proto__:null,or:104,and:104,not:112,only:112,layer:186},se={__proto__:null,selector:118,layer:182},de={__proto__:null,"@import":178,"@media":190,"@charset":194,"@namespace":198,"@keyframes":204,"@supports":216,"@scope":220,"@font-feature-values":226},Qe={__proto__:null,to:223},ce=k.deserialize({version:14,states:"IpQYQdOOO#}QdOOP$UO`OOO%OQaO'#CfOOQP'#Ce'#CeO%VQdO'#CgO%[Q`O'#CgO%aQaO'#FdO&XQdO'#CkO&xQaO'#CcO'SQdO'#CnO'_QdO'#DtO'dQdO'#DvO'oQdO'#D}O'oQdO'#EQOOQP'#Fd'#FdO)OQhO'#EsOOQS'#Fc'#FcOOQS'#Ev'#EvQYQdOOO)VQdO'#EWO*cQhO'#E^O)VQdO'#E`O*jQdO'#EbO*uQdO'#EeO)zQhO'#EkO*}QdO'#EmO+YQdO'#EpO+_QaO'#CfO+fQ`O'#ETO+kQ`O'#FnO+vQdO'#FnQOQ`OOP,QO&jO'#CaPOOO)CAR)CAROOQP'#Ci'#CiOOQP,59R,59RO%VQdO,59ROOQP'#Cm'#CmOOQP,59V,59VO&XQdO,59VO,]QdO,59YO'_QdO,5:`O'dQdO,5:bO'oQdO,5:iO'oQdO,5:kO'oQdO,5:lO'oQdO'#E}O,hQ`O,58}O,pQdO'#ESOOQS,58},58}OOQP'#Cq'#CqOOQO'#Dr'#DrOOQP,59Y,59YO,wQ`O,59YO,|Q`O,59YOOQP'#Du'#DuOOQP,5:`,5:`O-RQpO'#DwO-^QdO'#DxO-cQ`O'#DxO-hQpO,5:bO.RQaO,5:iO.iQaO,5:lOOQW'#D^'#D^O/eQhO'#DgO/xQhO,5;_O)zQhO'#DeO0VQ`O'#DkO0[QhO'#DnOOQW'#Fj'#FjOOQS,5;_,5;_O0aQ`O'#DhOOQS-E8t-E8tOOQ['#Cv'#CvO0fQdO'#CwO0|QdO'#C}O1dQdO'#DQO1zQ!pO'#DSO4TQ!jO,5:rOOQO'#DX'#DXO,|Q`O'#DWO4eQ!nO'#FgO6hQ`O'#DYO6mQ`O'#DoOOQ['#Fg'#FgO6rQhO'#FqO7QQ`O,5:xO7VQ!bO,5:zOOQS'#Ed'#EdO7_Q`O,5:|O7dQdO,5:|OOQO'#Eg'#EgO7lQ`O,5;PO7qQhO,5;VO'oQdO'#DjOOQS,5;X,5;XO0aQ`O,5;XO7yQdO,5;XOOQS'#FU'#FUO8RQdO'#ErO7QQ`O,5;[O8ZQdO,5:oO8kQdO'#FPO8xQ`O,5<YO8xQ`O,5<YPOOO'#Eu'#EuP9TO&jO,58{POOO,58{,58{OOQP1G.m1G.mOOQP1G.q1G.qOOQP1G.t1G.tO,wQ`O1G.tO,|Q`O1G.tOOQP1G/z1G/zO9`QpO1G/|O9hQaO1G0TO:OQaO1G0VO:fQaO1G0WO:|QaO,5;iOOQO-E8{-E8{OOQS1G.i1G.iO;WQ`O,5:nO;]QdO'#DsO;dQdO'#CuOOQO'#Dz'#DzOOQO,5:d,5:dO-^QdO,5:dOOQP1G/|1G/|O)VQdO1G/|O;kQ!jO'#D^O;yQ!bO,59yO<RQhO,5:ROOQO'#Fk'#FkO;|Q!bO,59}O<ZQhO'#FVO)zQhO,59{O)zQhO'#FVO=OQhO1G0yOOQS1G0y1G0yO=YQhO,5:PO>QQhO'#DlOOQW,5:V,5:VOOQW,5:Y,5:YOOQW,5:S,5:SO>[Q!fO'#FhOOQS'#Fh'#FhOOQS'#Ex'#ExO?lQdO,59cOOQ[,59c,59cO@SQdO,59iOOQ[,59i,59iO@jQdO,59lOOQ[,59l,59lOOQ[,59n,59nO)VQdO,59pOAQQhO'#EYOOQW'#EY'#EYOAlQ`O1G0^O4^QhO1G0^OOQ[,59r,59rO)zQhO'#D[OOQ[,59t,59tOAqQ#tO,5:ZOA|QhO'#FROBZQ`O,5<]OOQS1G0d1G0dOOQS1G0f1G0fOOQS1G0h1G0hOBfQ`O1G0hOBkQdO'#EhOOQS1G0k1G0kOOQS1G0q1G0qOBvQaO,5:UO7QQ`O1G0sOOQS1G0s1G0sO0aQ`O1G0sOOQS-E9S-E9SOOQS1G0v1G0vOB}Q!fO1G0ZOCeQ`O'#EVOOQO1G0Z1G0ZOOQO,5;k,5;kOCjQdO,5;kOOQO-E8}-E8}OCwQ`O1G1tPOOO-E8s-E8sPOOO1G.g1G.gOOQP7+$`7+$`OOQP7+%h7+%hO)VQdO7+%hOOQS1G0Y1G0YODSQaO'#FmOD^Q`O,5:_ODcQ!fO'#EwOEaQdO'#FfOEkQ`O,59aOOQO1G0O1G0OOEpQ!bO7+%hO)VQdO1G/eOE{QhO1G/iOOQW1G/m1G/mOOQW1G/g1G/gOF^QhO,5;qOOQW-E9T-E9TOOQS7+&e7+&eOGRQhO'#D^OGaQhO'#FlOGlQ`O'#FlOGqQ`O,5:WOOQS-E8v-E8vOOQ[1G.}1G.}OOQ[1G/T1G/TOOQ[1G/W1G/WOOQ[1G/[1G/[OGvQdO,5:tOOQS7+%x7+%xOG{Q`O7+%xOHQQhO'#D]OHYQ`O,59vO)zQhO,59vOOQ[1G/u1G/uOHbQ`O1G/uOHgQhO,5;mOOQO-E9P-E9POOQS7+&S7+&SOHuQbO'#DSOOQO'#Ej'#EjOITQ`O'#EiOOQO'#Ei'#EiOI`Q`O'#FSOIhQdO,5;SOOQS,5;S,5;SOOQ[1G/p1G/pOOQS7+&_7+&_O7QQ`O7+&_OIsQ!fO'#FOO)VQdO'#FOOJzQdO7+%uOOQO7+%u7+%uOOQO,5:q,5:qOOQO1G1V1G1VOK_Q!bO<<ISOKjQdO'#E|OKtQ`O,5<XOOQP1G/y1G/yOOQS-E8u-E8uOK|QdO'#E{OLWQ`O,5<QOOQ]1G.{1G.{OOQP<<IS<<ISOL`Q`O<<ISOLeQdO7+%POOQO'#D`'#D`OLlQ!bO7+%TOLtQhO'#EzOMRQ`O,5<WO)VQdO,5<WOOQW1G/r1G/rOOQO'#E['#E[OMZQ`O1G0`OOQS<<Id<<IdO)VQdO,59wOMzQhO1G/bOOQ[1G/b1G/bONRQ`O1G/bOOQW-E8w-E8wOOQ[7+%a7+%aOOQO,5;T,5;TOBnQdO'#FTOI`Q`O,5;nOOQS,5;n,5;nOOQS-E9Q-E9QOOQS1G0n1G0nOOQS<<Iy<<IyONZQ!fO,5;jOOQS-E8|-E8|OOQO<<Ia<<IaOOQPAN>nAN>nO! bQ`OAN>nO! gQaO,5;hOOQO-E8z-E8zO! qQdO,5;gOOQO-E8y-E8yOOQW<<Hk<<HkOOQW<<Ho<<HoO! {QhO<<HoO!!^QhO,5;fO!!iQ`O,5;fOOQO-E8x-E8xO!!nQdO1G1rOGvQdO'#FQO!!xQ`O7+%zOOQW7+%z7+%zO!#QQ!bO1G/cOOQ[7+$|7+$|O!#]QhO7+$|P!#dQ`O'#EyOOQO,5;o,5;oOOQO-E9R-E9ROOQS1G1Y1G1YOOQPG24YG24YO!#iQ`OAN>ZO)VQdO1G1QO!#nQ`O7+'^OOQO,5;l,5;lOOQO-E9O-E9OOOQW<<If<<IfOOQ[<<Hh<<HhPOQW,5;e,5;eOOQWG23uG23uO!#vQdO7+&l",stateData:"!$Z~O$QOS$RQQ~OWVO^_O`WOcYOdYOl`OmZOp[O!r]O!u^O!{dO#ReO#TfO#VgO#YhO#`iO#bjO#ekO#|RO$XTO~OQmOWVO^_O`WOcYOdYOl`OmZOp[O!r]O!u^O!{dO#ReO#TfO#VgO#YhO#`iO#bjO#ekO#|lO$XTO~O#z$bP~P!jO$RqO~O`YXcYXdYXmYXpYXsYX!aYX!rYX!uYX#{YX$X[X~OgYX~P$ZO#|sO~O$XuO~O$XuO`$WXc$WXd$WXm$WXp$WXs$WX!a$WX!r$WX!u$WX#{$WXg$WX~O#|vO~O`xOcyOdyOmzOp{O!r|O!u!OO#{}O~Os!RO!a!PO~P&^Of!XO#|!TO#}!UO~O#|!YO~OW!^O#|![O$X!]O~OWVO^_O`WOcYOdYOmZOp[O!r]O!u^O#|RO$XTO~OS!fOc!gOd!gOh!cOs!RO!Y!eO!]!jO$O!bO~On!iO~P(dOQ!tOh!mOp!nOs!oOu!wOw!wO}!uO!d!vO#|!lO#}!rO$]!pO~OS!fOc!gOd!gOh!cO!Y!eO!]!jO$O!bO~Os$eP~P)zOw!|O!d!vO#|!{O~Ow#OO#|#OO~Oh#ROs!RO#c#TO~O#|#VO~Oc!xX~P$ZOc#YO~On#ZO#z$bXr$bX~O#z$bXr$bX~P!jO$S#^O$T#^O$U#`O~Of#eO#|!TO#}!UO~Os!RO!a!PO~Or$bP~P!jOh#oO~Oh#pO~Oo!kX!o!kX$X!mX~O#|#qO~O$X#sO~Oo#tO!o#uO~O`xOcyOdyOmzOp{O~Os!qa!a!qa!r!qa!u!qa#{!qag!qa~P-pOs!ta!a!ta!r!ta!u!ta#{!tag!ta~P-pOS!fOc!gOd!gOh!cO!Y!eO!]!jO~OR#yOu#yOw#yO$O#vO$]!pO~P/POn$PO!U#|O!a#}O~P(dOh$RO~O$O$TO~Oh#RO~O`$WOc$WOg$ZOl$WOm$WOn$WO~P)VO`$WOc$WOl$WOm$WOn$WOo$]O~P)VO`$WOc$WOl$WOm$WOn$WOr$_O~P)VOP$`OSvXcvXdvXhvXnvXyvX!YvX!]vX!}vX#PvX$OvX!WvXQvX`vXgvXlvXmvXpvXsvXuvXwvX}vX!dvX#|vX#}vX$]vXovXrvX!avX#zvX$dvX!pvX~Oy$aO!}$bO#P$cOn$eP~P)zOh#pOS$ZXc$ZXd$ZXn$ZXy$ZX!Y$ZX!]$ZX!}$ZX#P$ZX$O$ZXQ$ZX`$ZXg$ZXl$ZXm$ZXp$ZXs$ZXu$ZXw$ZX}$ZX!d$ZX#|$ZX#}$ZX$]$ZXo$ZXr$ZX!a$ZX#z$ZX$d$ZX!p$ZX~Oh$gO~Oh$iO~O!U#|O!a$jOs$eXn$eX~Os!RO~On$mOy$aO~On$nO~Ow$oO!d!vO~Os$pO~Os!RO!U#|O~Os!RO#c$vO~O#|#VOs#fX~O$d$zOn!wa#z!war!wa~P)VOn#sX#z#sXr#sX~P!jOn#ZO#z$bar$ba~O$S#^O$T#^O$U%RO~Oo%TO!o%UO~Os!qi!a!qi!r!qi!u!qi#{!qig!qi~P-pOs!si!a!si!r!si!u!si#{!sig!si~P-pOs!ti!a!ti!r!ti!u!ti#{!tig!ti~P-pOs#qa!a#qa~P&^Or%VO~Og$aP~P'oOg$YP~P)VOc!SXg!QX!U!QX!W!SX~Oc%_O!W%`O~Og%aO!U#|O~O!U#|OS#yXc#yXd#yXh#yXn#yXs#yX!Y#yX!]#yX!a#yX$O#yX~On%eO!a#}O~P(dO!U#|OS!Xac!Xad!Xah!Xan!Xas!Xa!Y!Xa!]!Xa!a!Xa$O!Xag!Xa~O$O%fOg$`P~P/POy$aOQ$[X`$[Xc$[Xg$[Xh$[Xl$[Xm$[Xn$[Xp$[Xs$[Xu$[Xw$[X}$[X!d$[X#|$[X#}$[X$]$[Xo$[Xr$[X~O`$WOc$WOg%kOl$WOm$WOn$WO~P)VO`$WOc$WOl$WOm$WOn$WOo%lO~P)VO`$WOc$WOl$WOm$WOn$WOr%mO~P)VOh%oOS!|Xc!|Xd!|Xn!|X!Y!|X!]!|X$O!|X~On%pO~Og%uOw%vO!e%vO~Os#uX!a#uXn#uX~P)zO!a$jOs$ean$ea~On%yO~Or&QO#|%{O$]%zO~Og&RO~P&^Oy$aO!a&VO$d$zOn!wi#z!wir!wi~P)VO$c&YO~On#sa#z#sar#sa~P!jOn#ZO#z$bir$bi~O!a&]Og$aX~P&^Og&_O~Oy$aOQ#kXg#kXh#kXp#kXs#kXu#kXw#kX}#kX!a#kX!d#kX#|#kX#}#kX$]#kX~O!a&aOg$YX~P)VOg&cO~Oo&dOy$aO!p&eO~OR#yOu#yOw#yO$O&gO$]!pO~O!U#|OS#yac#yad#yah#yan#yas#ya!Y#ya!]#ya!a#ya$O#ya~Oc!SXg!QX!U!QX!a!QX~O!U#|O!a&iOg$`X~Oc&kO~Og&lO~O#|&mO~On&oO~Oc&pO!U#|O~Og&rOn&qO~Og&uO~O!U#|Os#ua!a#uan#ua~OP$`OsvX!avXgvX~O$]%zOs#]X!a#]X~Os!RO!a&wO~Or&{O#|%{O$]%zO~Oy$aOQ#rXh#rXn#rXp#rXs#rXu#rXw#rX}#rX!a#rX!d#rX#z#rX#|#rX#}#rX$]#rX$d#rXr#rX~O!a&VO$d$zOn!wq#z!wqr!wq~P)VOo'QOy$aO!p'RO~Og#pX!a#pX~P'oO!a&]Og$aa~Og#oX!a#oX~P)VO!a&aOg$Ya~Oo'QO~Og'WO~P)VOg'XO!W'YO~O$O%fOg#nX!a#nX~P/PO!a&iOg$`a~O`'_Og'aO~OS#mac#mad#mah#ma!Y#ma!]#ma$O#ma~Og'cO~PMcOg'cOn'dO~Oy$aOQ#rah#ran#rap#ras#rau#raw#ra}#ra!a#ra!d#ra#z#ra#|#ra#}#ra$]#ra$d#rar#ra~Oo'iO~Og#pa!a#pa~P&^Og#oa!a#oa~P)VOR#yOu#yOw#yO$O&gO$]%zO~O!U#|Og#na!a#na~Oc'kO~O!a&iOg$`i~P)VO`'_Og'oO~Oy$aOg!Pin!Pi~Og'pO~PMcOn'qO~Og'rO~O!a&iOg$`q~Og#nq!a#nq~P)VO$Q!e$R$]`$]y!u~",goto:"4h$fPPPPP$gP$jP$s%V$s%i%{P$sP&R$sPP&XPPP&_&i&iPPPPP&iPP&iP'VP&iP&i(Q&iP(n(q(w(w)Z(wP(wP(wP(w(wP)j(w)vP(w)yPP*m*s$s*y$s+P+P+V+ZPP$sP$s$sP+a,],j,q$jP,zP,}P$jP$jP$jP-T$jP-W-Z-^-e$jP$jPP$jP-j$jP-m-s.S.j.x/O/Y/`/f/l/r/|0S0Y0`0f0lPPPPPPPPPPP0r0{P1q1t2vP3O3x4R4U4XPP4_RrQ_aOPco!R#Z$}q_OP]^co|}!O!P!R#R#Z#o$}&]qSOP]^co|}!O!P!R#R#Z#o$}&]qUOP]^co|}!O!P!R#R#Z#o$}&]QtTR#auQwWR#bxQ!VYR#cyQ#c!XS$f!s!tR%S#e!V!wdf!m!n!o#Y#p#u$Y$[$^$a$y%U%Z%_&V&W&a&f&k&p'U'^'k's!U!wdf!m!n!o#Y#p#u$Y$[$^$a$y%U%Z%_&V&W&a&f&k&p'U'^'k'sU#y!c%`'YU%}$p&P&wR&v%|!V!sdf!m!n!o#Y#p#u$Y$[$^$a$y%U%Z%_&V&W&a&f&k&p'U'^'k'sR$h!uQ%s$gR&s%tq!h`ei!c!d!e!q#|#}$O$R$e$g$j%t&iQ#w!cQ%h$RQ&h%`Q'[&iR'j'YQ#UjQ$U!jQ$t#TR&T$vR$S!f!U!wdf!m!n!o#Y#p#u$Y$[$^$a$y%U%Z%_&V&W&a&f&k&p'U'^'k'sQ!|gR$o!}Q!WYR#dyQ#c!WR%S#dQ!ZZR#fzQ!_[R#g{T!^[{Q#r!]R%]#sQ!SXQ!i`Q#SjQ#m!QQ$P!dQ$l!yQ$r#QQ$u#UQ$x#XQ%e$OQ&S$tQ&y&OQ&|&TR'h&xSnP!RQ#]oQ$|#ZR&Z$}ZmPo!R#Z$}Q${#YQ&X$yR'P&WR$e!qQ&n%oR'm'_R!}gR#PhR$q#PS&O$p&PR'f&wV%|$p&P&wR#XkQ#_qR%Q#_QcOSoP!RU!kco$}R$}#ZQ%Z#pY&`%Z&f'U'^'sQ&f%_Q'U&aQ'^&kR's'kQ$Y!mQ$[!nQ$^!oV%j$Y$[$^Q%t$gR&t%tQ&j%gS']&j'lR'l'^Q&b%ZR'V&bQ&^%WR'T&^Q!QXR#l!QQ&W$yR'O&WQ#[nS%O#[%PR%P#]Q'`&nR'n'`Q$k!xR%x$kQ&P$pR&z&PQ&x&OR'g&xQ#WkR$w#WQ$O!dR%d$O_bOPco!R#Z$}^XOPco!R#Z$}Q!`]Q!a^Q#h|Q#i}Q#j!OQ#k!PQ$s#RQ%W#oR'S&]R%[#pQ!qdQ!zf[$V!m!n!o$Y$[$^Q$y#Yd%Y#p%Z%_&a&f&k'U'^'k'sQ%^#uQ%n$aS&U$y&WQ&[%UQ&}&VR'b&p]$X!m!n!o$Y$[$^Q!d`U!xe!q$eQ#QiQ#x!cS#{!d$OQ$Q!eQ%b#|Q%c#}Q%g$RS%r$g%tQ%w$jR'Z&iQ#z!cQ&h%`R'j'YR%i$RR%X#oQpPR#n!RQ!yeQ$d!qR%q$e",nodeNames:"⚠ Unit VariableName VariableName QueryCallee Comment StyleSheet RuleSet UniversalSelector TagSelector TagName NamespacedTagSelector NamespaceName TagName NestingSelector ClassSelector . ClassName PseudoClassSelector : :: PseudoClassName PseudoClassName ) ( ArgList ValueName ParenthesizedValue AtKeyword # ; ] [ BracketedValue } { BracedValue ColorLiteral NumberLiteral StringLiteral BinaryExpression BinOp CallExpression Callee IfExpression if ArgList IfBranch KeywordQuery FeatureQuery FeatureName BinaryQuery LogicOp ComparisonQuery CompareOp UnaryQuery UnaryQueryOp ParenthesizedQuery SelectorQuery selector ParenthesizedSelector CallQuery ArgList , PseudoQuery CallLiteral CallTag ParenthesizedContent PseudoClassName ArgList IdSelector IdName AttributeSelector AttributeName NamespacedAttribute NamespaceName AttributeName MatchOp MatchFlag ChildSelector ChildOp DescendantSelector SiblingSelector SiblingOp Block Declaration PropertyName Important ImportStatement import Layer layer LayerName layer MediaStatement media CharsetStatement charset NamespaceStatement namespace NamespaceName KeyframesStatement keyframes KeyframeName KeyframeList KeyframeSelector KeyframeRangeName SupportsStatement supports ScopeStatement scope to FontFeatureStatement font-feature-values FontName AtRule Styles",maxTerm:159,nodeProps:[["isolate",-2,5,39,""],["openedBy",23,"(",31,"[",34,"{"],["closedBy",24,")",32,"]",35,"}"]],propSources:[le],skippedNodes:[0,5,117],repeatNodeCount:17,tokenData:"K`~R!bOX%ZX^&R^p%Zpq&Rqr)ers)vst+jtu2Xuv%Zvw3Rwx3dxy5Ryz5dz{5i{|6S|}:u}!O;W!O!P;u!P!Q<^!Q![=V![!]>Q!]!^>|!^!_?_!_!`@Z!`!a@n!a!b%Z!b!cAo!c!k%Z!k!lC|!l!u%Z!u!vC|!v!}%Z!}#OD_#O#P%Z#P#QDp#Q#R2X#R#]%Z#]#^ER#^#g%Z#g#hC|#h#o%Z#o#pIf#p#qIw#q#rJ`#r#sJq#s#y%Z#y#z&R#z$f%Z$f$g&R$g#BY%Z#BY#BZ&R#BZ$IS%Z$IS$I_&R$I_$I|%Z$I|$JO&R$JO$JT%Z$JT$JU&R$JU$KV%Z$KV$KW&R$KW&FU%Z&FU&FV&R&FV;'S%Z;'S;=`KY<%lO%Z`%^SOy%jz;'S%j;'S;=`%{<%lO%j`%oS!e`Oy%jz;'S%j;'S;=`%{<%lO%j`&OP;=`<%l%j~&Wh$Q~OX%jX^'r^p%jpq'rqy%jz#y%j#y#z'r#z$f%j$f$g'r$g#BY%j#BY#BZ'r#BZ$IS%j$IS$I_'r$I_$I|%j$I|$JO'r$JO$JT%j$JT$JU'r$JU$KV%j$KV$KW'r$KW&FU%j&FU&FV'r&FV;'S%j;'S;=`%{<%lO%j~'yh$Q~!e`OX%jX^'r^p%jpq'rqy%jz#y%j#y#z'r#z$f%j$f$g'r$g#BY%j#BY#BZ'r#BZ$IS%j$IS$I_'r$I_$I|%j$I|$JO'r$JO$JT%j$JT$JU'r$JU$KV%j$KV$KW'r$KW&FU%j&FU&FV'r&FV;'S%j;'S;=`%{<%lO%jj)jS$dYOy%jz;'S%j;'S;=`%{<%lO%j~)yWOY)vZr)vrs*cs#O)v#O#P*h#P;'S)v;'S;=`+d<%lO)v~*hOw~~*kRO;'S)v;'S;=`*t;=`O)v~*wXOY)vZr)vrs*cs#O)v#O#P*h#P;'S)v;'S;=`+d;=`<%l)v<%lO)v~+gP;=`<%l)vj+oYmYOy%jz!Q%j!Q![,_![!c%j!c!i,_!i#T%j#T#Z,_#Z;'S%j;'S;=`%{<%lO%jj,dY!e`Oy%jz!Q%j!Q![-S![!c%j!c!i-S!i#T%j#T#Z-S#Z;'S%j;'S;=`%{<%lO%jj-XY!e`Oy%jz!Q%j!Q![-w![!c%j!c!i-w!i#T%j#T#Z-w#Z;'S%j;'S;=`%{<%lO%jj.OYuY!e`Oy%jz!Q%j!Q![.n![!c%j!c!i.n!i#T%j#T#Z.n#Z;'S%j;'S;=`%{<%lO%jj.uYuY!e`Oy%jz!Q%j!Q![/e![!c%j!c!i/e!i#T%j#T#Z/e#Z;'S%j;'S;=`%{<%lO%jj/jY!e`Oy%jz!Q%j!Q![0Y![!c%j!c!i0Y!i#T%j#T#Z0Y#Z;'S%j;'S;=`%{<%lO%jj0aYuY!e`Oy%jz!Q%j!Q![1P![!c%j!c!i1P!i#T%j#T#Z1P#Z;'S%j;'S;=`%{<%lO%jj1UY!e`Oy%jz!Q%j!Q![1t![!c%j!c!i1t!i#T%j#T#Z1t#Z;'S%j;'S;=`%{<%lO%jj1{SuY!e`Oy%jz;'S%j;'S;=`%{<%lO%jd2[UOy%jz!_%j!_!`2n!`;'S%j;'S;=`%{<%lO%jd2uS!oS!e`Oy%jz;'S%j;'S;=`%{<%lO%jb3WS^QOy%jz;'S%j;'S;=`%{<%lO%j~3gWOY3dZw3dwx*cx#O3d#O#P4P#P;'S3d;'S;=`4{<%lO3d~4SRO;'S3d;'S;=`4];=`O3d~4`XOY3dZw3dwx*cx#O3d#O#P4P#P;'S3d;'S;=`4{;=`<%l3d<%lO3d~5OP;=`<%l3dj5WShYOy%jz;'S%j;'S;=`%{<%lO%j~5iOg~n5pUWQyWOy%jz!_%j!_!`2n!`;'S%j;'S;=`%{<%lO%jj6ZWyW!uQOy%jz!O%j!O!P6s!P!Q%j!Q![9x![;'S%j;'S;=`%{<%lO%jj6xU!e`Oy%jz!Q%j!Q![7[![;'S%j;'S;=`%{<%lO%jj7cY!e`$]YOy%jz!Q%j!Q![7[![!g%j!g!h8R!h#X%j#X#Y8R#Y;'S%j;'S;=`%{<%lO%jj8WY!e`Oy%jz{%j{|8v|}%j}!O8v!O!Q%j!Q![9_![;'S%j;'S;=`%{<%lO%jj8{U!e`Oy%jz!Q%j!Q![9_![;'S%j;'S;=`%{<%lO%jj9fU!e`$]YOy%jz!Q%j!Q![9_![;'S%j;'S;=`%{<%lO%jj:P[!e`$]YOy%jz!O%j!O!P7[!P!Q%j!Q![9x![!g%j!g!h8R!h#X%j#X#Y8R#Y;'S%j;'S;=`%{<%lO%jj:zS!aYOy%jz;'S%j;'S;=`%{<%lO%jj;]WyWOy%jz!O%j!O!P6s!P!Q%j!Q![9x![;'S%j;'S;=`%{<%lO%jj;zU`YOy%jz!Q%j!Q![7[![;'S%j;'S;=`%{<%lO%j~<cTyWOy%jz{<r{;'S%j;'S;=`%{<%lO%j~<yS!e`$R~Oy%jz;'S%j;'S;=`%{<%lO%jj=[[$]YOy%jz!O%j!O!P7[!P!Q%j!Q![9x![!g%j!g!h8R!h#X%j#X#Y8R#Y;'S%j;'S;=`%{<%lO%jj>VUcYOy%jz![%j![!]>i!];'S%j;'S;=`%{<%lO%jj>pSdY!e`Oy%jz;'S%j;'S;=`%{<%lO%jj?RSnYOy%jz;'S%j;'S;=`%{<%lO%jh?dU!WWOy%jz!_%j!_!`?v!`;'S%j;'S;=`%{<%lO%jh?}S!WW!e`Oy%jz;'S%j;'S;=`%{<%lO%jl@bS!WW!oSOy%jz;'S%j;'S;=`%{<%lO%jj@uV!rQ!WWOy%jz!_%j!_!`?v!`!aA[!a;'S%j;'S;=`%{<%lO%jbAcS!rQ!e`Oy%jz;'S%j;'S;=`%{<%lO%jjArYOy%jz}%j}!OBb!O!c%j!c!}CP!}#T%j#T#oCP#o;'S%j;'S;=`%{<%lO%jjBgW!e`Oy%jz!c%j!c!}CP!}#T%j#T#oCP#o;'S%j;'S;=`%{<%lO%jjCW[lY!e`Oy%jz}%j}!OCP!O!Q%j!Q![CP![!c%j!c!}CP!}#T%j#T#oCP#o;'S%j;'S;=`%{<%lO%jhDRS!pWOy%jz;'S%j;'S;=`%{<%lO%jjDdSpYOy%jz;'S%j;'S;=`%{<%lO%jnDuSo^Oy%jz;'S%j;'S;=`%{<%lO%jjEWU!pWOy%jz#a%j#a#bEj#b;'S%j;'S;=`%{<%lO%jbEoU!e`Oy%jz#d%j#d#eFR#e;'S%j;'S;=`%{<%lO%jbFWU!e`Oy%jz#c%j#c#dFj#d;'S%j;'S;=`%{<%lO%jbFoU!e`Oy%jz#f%j#f#gGR#g;'S%j;'S;=`%{<%lO%jbGWU!e`Oy%jz#h%j#h#iGj#i;'S%j;'S;=`%{<%lO%jbGoU!e`Oy%jz#T%j#T#UHR#U;'S%j;'S;=`%{<%lO%jbHWU!e`Oy%jz#b%j#b#cHj#c;'S%j;'S;=`%{<%lO%jbHoU!e`Oy%jz#h%j#h#iIR#i;'S%j;'S;=`%{<%lO%jbIYS$cQ!e`Oy%jz;'S%j;'S;=`%{<%lO%jjIkSsYOy%jz;'S%j;'S;=`%{<%lO%jfI|U$XUOy%jz!_%j!_!`2n!`;'S%j;'S;=`%{<%lO%jjJeSrYOy%jz;'S%j;'S;=`%{<%lO%jfJvU!uQOy%jz!_%j!_!`2n!`;'S%j;'S;=`%{<%lO%j`K]P;=`<%l%Z",tokenizers:[te,oe,ae,re,1,2,3,4,new z("m~RRYZ[z{a~~g~aO$T~~dP!P!Qg~lO$U~~",28,142)],topRules:{StyleSheet:[0,6],Styles:[1,116]},dynamicPrecedences:{84:1},specialized:[{term:137,get:e=>ie[e]||-1},{term:138,get:e=>ne[e]||-1},{term:4,get:e=>se[e]||-1},{term:28,get:e=>de[e]||-1},{term:136,get:e=>Qe[e]||-1}],tokenPrec:2256});let p=null;function u(){if(!p&&typeof document=="object"&&document.body){let{style:e}=document.body,r=[],i=new Set;for(let O in e)O!="cssText"&&O!="cssFloat"&&typeof e[O]=="string"&&(/[A-Z]/.test(O)&&(O=O.replace(/[A-Z]/g,a=>"-"+a.toLowerCase())),i.has(O)||(r.push(O),i.add(O)));p=r.sort().map(O=>({type:"property",label:O,apply:O+": "}))}return p||[]}const g=["active","after","any-link","autofill","backdrop","before","checked","cue","default","defined","disabled","empty","enabled","file-selector-button","first","first-child","first-letter","first-line","first-of-type","focus","focus-visible","focus-within","fullscreen","has","host","host-context","hover","in-range","indeterminate","invalid","is","lang","last-child","last-of-type","left","link","marker","modal","not","nth-child","nth-last-child","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","part","placeholder","placeholder-shown","read-only","read-write","required","right","root","scope","selection","slotted","target","target-text","valid","visited","where"].map(e=>({type:"class",label:e})),y=["above","absolute","activeborder","additive","activecaption","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","antialiased","appworkspace","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic-abegede-gez","ethiopic-halehame-aa-er","ethiopic-halehame-gez","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","graytext","grid","groove","hand","hard-light","help","hidden","hide","higher","highlight","highlighttext","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","justify","keep-all","landscape","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-hexadecimal","lower-latin","lower-norwegian","lowercase","ltr","luminosity","manipulation","match","matrix","matrix3d","medium","menu","menutext","message-box","middle","min-intrinsic","mix","monospace","move","multiple","multiple_mask_images","multiply","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","opacity","open-quote","optimizeLegibility","optimizeSpeed","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","text","text-bottom","text-top","textarea","textfield","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","to","top","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-latin","uppercase","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"].map(e=>({type:"keyword",label:e})).concat(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"].map(e=>({type:"constant",label:e}))),$e=["a","abbr","address","article","aside","b","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","dd","del","details","dfn","dialog","div","dl","dt","em","figcaption","figure","footer","form","header","hgroup","h1","h2","h3","h4","h5","h6","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","meter","nav","ol","output","p","pre","ruby","section","select","small","source","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","tr","u","ul"].map(e=>({type:"type",label:e})),pe=["@charset","@color-profile","@container","@counter-style","@font-face","@font-feature-values","@font-palette-values","@import","@keyframes","@layer","@media","@namespace","@page","@position-try","@property","@scope","@starting-style","@supports","@view-transition"].map(e=>({type:"keyword",label:e})),d=/^(\w[\w-]*|-\w[\w-]*|)$/,ue=/^-(-[\w-]*)?$/;function je(e,r){var i;if((e.name=="("||e.type.isError)&&(e=e.parent||e),e.name!="ArgList")return!1;let O=(i=e.parent)===null||i===void 0?void 0:i.firstChild;return(O==null?void 0:O.name)!="Callee"?!1:r.sliceString(O.from,O.to)=="var"}const h=new E,me=["Declaration"];function Se(e){for(let r=e;;){if(r.type.isTop)return r;if(!(r=r.parent))return e}}function w(e,r,i){if(r.to-r.from>4096){let O=h.get(r);if(O)return O;let a=[],o=new Set,l=r.cursor(U.IncludeAnonymous);if(l.firstChild())do for(let n of w(e,l.node,i))o.has(n.label)||(o.add(n.label),a.push(n));while(l.nextSibling());return h.set(r,a),a}else{let O=[],a=new Set;return r.cursor().iterate(o=>{var l;if(i(o)&&o.matchContext(me)&&((l=o.node.nextSibling)===null||l===void 0?void 0:l.name)==":"){let n=e.sliceString(o.from,o.to);a.has(n)||(a.add(n),O.push({label:n,type:"variable"}))}}),O}}const ge=e=>r=>{let{state:i,pos:O}=r,a=V(i).resolveInner(O,-1),o=a.type.isError&&a.from==a.to-1&&i.doc.sliceString(a.from,a.to)=="-";if(a.name=="PropertyName"||(o||a.name=="TagName")&&/^(Block|Styles)$/.test(a.resolve(a.to).name))return{from:a.from,options:u(),validFor:d};if(a.name=="ValueName")return{from:a.from,options:y,validFor:d};if(a.name=="PseudoClassName")return{from:a.from,options:g,validFor:d};if(e(a)||(r.explicit||o)&&je(a,i.doc))return{from:e(a)||o?a.from:O,options:w(i.doc,Se(a),e),validFor:ue};if(a.name=="TagName"){for(let{parent:s}=a;s;s=s.parent)if(s.name=="Block")return{from:a.from,options:u(),validFor:d};return{from:a.from,options:$e,validFor:d}}if(a.name=="AtKeyword")return{from:a.from,options:pe,validFor:d};if(!r.explicit)return null;let l=a.resolve(O),n=l.childBefore(O);return n&&n.name==":"&&l.name=="PseudoClassSelector"?{from:O,options:g,validFor:d}:n&&n.name==":"&&l.name=="Declaration"||l.name=="ArgList"?{from:O,options:y,validFor:d}:l.name=="Block"||l.name=="Styles"?{from:O,options:u(),validFor:d}:null},ye=ge(e=>e.name=="VariableName"),f=W.define({name:"css",parser:ce.configure({props:[Z.add({Declaration:x()}),G.add({"Block KeyframeList":_})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function Xe(){return new Y(f,f.data.of({autocomplete:ye}))}export{Xe as css,ye as cssCompletionSource,f as cssLanguage,ge as defineCSSCompletionSource};