dimcode-web 0.1.0-alpha.18 → 0.1.0-alpha.20
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.
- package/package.json +1 -1
- package/release-manifest.json +103 -88
- package/web/THIRD-PARTY-NOTICES.txt +15 -15
- package/web/assets/AccountSettings-Dm1D868m.js +1 -0
- package/web/assets/AgentSettings-tFcwdxve.js +1 -0
- package/web/assets/{AppearanceSettings-DBBurwcE.js → AppearanceSettings-C_n8ZVp3.js} +2 -2
- package/web/assets/ArchivedSettings-CKnpAlGL.js +1 -0
- package/web/assets/ArchivedSettings-CbpGcugQ.css +1 -0
- package/web/assets/{CodeBlockNode-C4re3gRU.js → CodeBlockNode-DW-_i1bK.js} +2 -2
- package/web/assets/DiagnosticsSettings-Bx-hBChz.js +1 -0
- package/web/assets/{GeneralSettingsStatus.vue_vue_type_script_setup_true_lang-CWInOGTv.js → GeneralSettingsStatus.vue_vue_type_script_setup_true_lang-DZXQ9DPx.js} +1 -1
- package/web/assets/McpSettings-DQ-1oKqm.css +1 -0
- package/web/assets/McpSettings-DdbhpJel.js +1 -0
- package/web/assets/ModalitySettings-ljY4FHpT.js +1 -0
- package/web/assets/PermissionsSettings-DfX2uBs5.js +1 -0
- package/web/assets/PermissionsSettings-aVsQzgZQ.css +1 -0
- package/web/assets/{PluginSettings-sWWqlef6.js → PluginSettings-Bg3LwShD.js} +1 -1
- package/web/assets/{PreCodeBlock-T5SnpbhZ.js → PreCodeBlock-BMiY-Z7g.js} +1 -1
- package/web/assets/ProviderAuthFlow.vue_vue_type_script_setup_true_lang-B389tFJs.js +6 -0
- package/web/assets/{ProviderSettings-BUNoKu8n.js → ProviderSettings-c2tleRgL.js} +2 -2
- package/web/assets/ScheduledSettings-B2Xx6vHW.js +1 -0
- package/web/assets/ScheduledSettings-voX1TYx5.css +1 -0
- package/web/assets/{SettingsPage-DHL9c2Jr.js → SettingsPage-D3wJixRh.js} +11 -11
- package/web/assets/SkillSettings-ChetNtzv.js +3 -0
- package/web/assets/SkillSettings-OqERafmE.css +1 -0
- package/web/assets/{Tooltip-CXXgLchR.js → Tooltip-DOIVeWhH.js} +1 -1
- package/web/assets/abnfDiagram-N423BO3Z-BZjVDOF0.js +1 -0
- package/web/assets/arc-CiBLzAgb.js +1 -0
- package/web/assets/architectureDiagram-T3A2C74G-F50OEFF4.js +36 -0
- package/web/assets/{arrow-left-ME3pery9.js → arrow-left-TviDdWXk.js} +1 -1
- package/web/assets/blockDiagram-VBNYF7ZC-BLa-563x.js +132 -0
- package/web/assets/{c4Diagram-AAUBKEIU-CBEWjSQQ.js → c4Diagram-5PPSVZJV-iu-ereif.js} +1 -1
- package/web/assets/channel-BQ7ck7X_.js +1 -0
- package/web/assets/{chunk-ND2GUHAM-Dv0BqvL4.js → chunk-2GRJ4B5K-DQZox8Hn.js} +1 -1
- package/web/assets/{chunk-QZHKN3VN-kcqi3_AE.js → chunk-2Q5K7J3B-CYPNG9OA.js} +1 -1
- package/web/assets/chunk-5RXB4S5H-D2DpFWtN.js +231 -0
- package/web/assets/{chunk-FMBD7UC4-YZOsDkKK.js → chunk-5VM5RSS4-C-_Qy_tL.js} +1 -1
- package/web/assets/chunk-6Q2QTUOP-VrxKiMY5.js +88 -0
- package/web/assets/{chunk-727SXJPM-B0H5cxJb.js → chunk-GF5L2VYU-DncOpQbg.js} +3 -3
- package/web/assets/{chunk-4BX2VUAB-DRxxZx72.js → chunk-JWPE2WC7-BSpVTHvp.js} +1 -1
- package/web/assets/{chunk-2J33WTMH-BPslIGSV.js → chunk-KBJHAD2P-BY7QEXcH.js} +1 -1
- package/web/assets/chunk-RYQCIY6F-yQA4-tM4.js +1 -0
- package/web/assets/{chunk-55IACEB6-BFTmdNv6.js → chunk-XXDRQBXY-DF87scO8.js} +1 -1
- package/web/assets/classDiagram-JCYQIIEL-Bcdrqdu1.js +1 -0
- package/web/assets/classDiagram-v2-OCEON4UE-Bcdrqdu1.js +1 -0
- package/web/assets/clock-3-CUmaTBi8.js +6 -0
- package/web/assets/{context-Grqd_9Lt.js → context-nBNziKZK.js} +1 -1
- package/web/assets/{cose-bilkent-S5V4N54A-BzR7T4Z0.js → cose-bilkent-JH36ORCC-C_K0fE6C.js} +1 -1
- package/web/assets/{cynefin-OW5HDTMX-BzoTogr4.js → cynefin-OW5HDTMX-Bw1VHFeH.js} +2 -2
- package/web/assets/cynefinDiagram-MW4NZA55-DKWxP_GI.js +62 -0
- package/web/assets/dagre-VZM6K2ZE-C34AbZIA.js +4 -0
- package/web/assets/diagram-7IWD3JNH-CoHuC0sC.js +30 -0
- package/web/assets/{diagram-KO2AKTUF-AJOZF7eS.js → diagram-B4RE2ZJO-DCgvcLaq.js} +3 -3
- package/web/assets/diagram-LBJQPF4R-BaqyrpsV.js +24 -0
- package/web/assets/diagram-Q27KOJAE-B2-20v7j.js +24 -0
- package/web/assets/diagram-UB23O5K3-Dw8RW9Q1.js +41 -0
- package/web/assets/ebnfDiagram-BXEA7PRR-C1gBADbd.js +1 -0
- package/web/assets/erDiagram-JOGREHBK-C0v6IHNn.js +85 -0
- package/web/assets/flowDiagram-UKHOOZJN--rwBpNQR.js +156 -0
- package/web/assets/ganttDiagram-PKOTCBZU-Bai6jN6z.js +292 -0
- package/web/assets/{gitGraphDiagram-PVQCEYII-BVDOraAA.js → gitGraphDiagram-DS77QQ5N-BLfTMDDp.js} +11 -11
- package/web/assets/{graph-CAnANduQ.js → graph-C9eacEi8.js} +1 -1
- package/web/assets/{index-DKAjh3Jq.js → index-BF1thmX_.js} +1 -1
- package/web/assets/{index-DwhvmzI8.js → index-Bg4rJsQT.js} +5 -5
- package/web/assets/index-CwtQ7tKv.css +1 -0
- package/web/assets/index-DYOKXSJi.js +253 -0
- package/web/assets/{index10-f2I9Ayxh.js → index10-VUcylQwv.js} +1 -1
- package/web/assets/{index5-Blb0RoSP.js → index5-DvBMXtuB.js} +1 -1
- package/web/assets/{index6-CTZ8yAb4.js → index6-DCBMmWam.js} +1 -1
- package/web/assets/{index8-DfdXis2a.js → index8-B1LZLiIu.js} +1 -1
- package/web/assets/{index9-Dw4KfUCH.js → index9-MMVu88OD.js} +1 -1
- package/web/assets/{infoDiagram-5YYISTIA-DHvGqVaW.js → infoDiagram-6WML65LV-CCyDyas4.js} +1 -1
- package/web/assets/{ishikawaDiagram-YF4QCWOH-CPlDNCmB.js → ishikawaDiagram-WSZJBQD7-DQ6pqESS.js} +4 -4
- package/web/assets/{journeyDiagram-JHISSGLW-D4ApVy2o.js → journeyDiagram-NVQOT4AX-duwJBcMO.js} +1 -1
- package/web/assets/{kanban-definition-UN3LZRKU-CdMvzpap.js → kanban-definition-27J2QSJJ-CFFrtoqw.js} +7 -7
- package/web/assets/layout-DEXfKzaS.js +1 -0
- package/web/assets/{linear-DLDicOVi.js → linear-Bmw-9y_M.js} +1 -1
- package/web/assets/map-Czzmt4hB.js +1 -0
- package/web/assets/{markstream-Cmk_Kis9.js → markstream-Bbk0VtE5.js} +2 -2
- package/web/assets/mermaid.core-Bg8A4HBE.js +314 -0
- package/web/assets/{mindmap-definition-RKZ34NQL-BfupSgJ_.js → mindmap-definition-FAOFIHXS-BJ_0jHTb.js} +4 -4
- package/web/assets/pegDiagram-VL7TDLO6-ScyUEaUT.js +1 -0
- package/web/assets/pieDiagram-7S7Q4E2Y-BpySPZ37.js +39 -0
- package/web/assets/{quadrantDiagram-W4KKPZXB-B1Uc835t.js → quadrantDiagram-CIZ2JOQS-DhZpwLgY.js} +3 -3
- package/web/assets/railroadDiagram-AXF67PYL-3K7H747D.js +1 -0
- package/web/assets/refresh-cw-Dbo4EzRb.js +6 -0
- package/web/assets/{requirementDiagram-4Y6WPE33-CkSs-69D.js → requirementDiagram-LRYGKXZP-Bdv2-QSY.js} +3 -3
- package/web/assets/{sankeyDiagram-5OEKKPKP-CEwLIfRT.js → sankeyDiagram-W5VNT64P-CmnceiZ6.js} +1 -1
- package/web/assets/sequenceDiagram-SI44F4Z6-BgMHaOth.js +162 -0
- package/web/assets/{settings-general-dc8P6dA0.js → settings-general-BrnSzIx8.js} +1 -1
- package/web/assets/sizeCapture-X5ZJPWSS-DlRwfatS.js +1 -0
- package/web/assets/stateDiagram-OKZ733FA-CP369oAp.js +1 -0
- package/web/assets/stateDiagram-v2-UEYNNEHI-Bkte4diy.js +1 -0
- package/web/assets/swimlanes-SLNWSIFB-CY_cC5Es.js +2 -0
- package/web/assets/swimlanesDiagram-ULZ7WXOC-Cao2QUXy.js +8 -0
- package/web/assets/{timeline-definition-PNZ67QCA-Diw4BdiV.js → timeline-definition-Z64GVDOM-B_GIaxzX.js} +3 -3
- package/web/assets/vendor-vue-Cu2DcYCH.js +54 -0
- package/web/assets/vennDiagram-T6HMQDX7-CT5m0co4.js +34 -0
- package/web/assets/{wardleyDiagram-YWT4CUSO-L3ox1HvQ.js → wardleyDiagram-T6FBY63Y-CTxtaMBw.js} +3 -3
- package/web/assets/xychartDiagram-ELKLHX3M-wlH3CCmf.js +7 -0
- package/web/assets/zh-CN-BJoeJVFx.js +1 -0
- package/web/dimcode-web.json +2 -2
- package/web/index.html +3 -3
- package/web/assets/AccountSettings-Zh9WjvzX.js +0 -1
- package/web/assets/AgentSettings-Bk5dgxFf.js +0 -1
- package/web/assets/ArchivedSettings-BO8xL_Zc.css +0 -1
- package/web/assets/ArchivedSettings-BzLm8EQ8.js +0 -1
- package/web/assets/DiagnosticsSettings-CNw8SqKc.js +0 -1
- package/web/assets/McpSettings-C75_nZVn.js +0 -1
- package/web/assets/McpSettings-qL33wCkW.css +0 -1
- package/web/assets/ModalitySettings-DZDyeNKL.js +0 -1
- package/web/assets/PermissionsSettings-C7-MdFoV.js +0 -1
- package/web/assets/PermissionsSettings-CGumt3Ix.css +0 -1
- package/web/assets/ProviderAuthFlow.vue_vue_type_script_setup_true_lang-Dh0zqlBj.js +0 -11
- package/web/assets/SkillSettings-DV-H22PD.js +0 -3
- package/web/assets/SkillSettings-DjDPbVAE.css +0 -1
- package/web/assets/arc-CsNe9vqq.js +0 -1
- package/web/assets/architectureDiagram-3BPJPVTR-_CgItpOp.js +0 -36
- package/web/assets/blockDiagram-GPEHLZMM-DggqvY56.js +0 -132
- package/web/assets/channel-BfCdub6c.js +0 -1
- package/web/assets/chunk-AQP2D5EJ-CAGZpQVz.js +0 -231
- package/web/assets/classDiagram-4FO5ZUOK-HMqvnuHk.js +0 -1
- package/web/assets/classDiagram-v2-Q7XG4LA2-HMqvnuHk.js +0 -1
- package/web/assets/dagre-BM42HDAG-CHHzC_h0.js +0 -4
- package/web/assets/diagram-2AECGRRQ-Dq2u3QFv.js +0 -43
- package/web/assets/diagram-5GNKFQAL-Dyiw22Ms.js +0 -10
- package/web/assets/diagram-LMA3HP47-BWjJzFe2.js +0 -24
- package/web/assets/diagram-OG6HWLK6-BCPdwc8z.js +0 -24
- package/web/assets/erDiagram-TEJ5UH35-BSGcQbVD.js +0 -85
- package/web/assets/flowDiagram-I6XJVG4X-C_2SM7Fa.js +0 -162
- package/web/assets/ganttDiagram-6RSMTGT7-CDqVoaY1.js +0 -292
- package/web/assets/index-DCEhwLss.css +0 -1
- package/web/assets/index-DVjYS93F.js +0 -248
- package/web/assets/layout-DGIYPm2g.js +0 -1
- package/web/assets/mermaid.core-QMchuDAN.js +0 -309
- package/web/assets/pieDiagram-4H26LBE5-xUNlFhrU.js +0 -30
- package/web/assets/sequenceDiagram-3UESZ5HK-M_9hs2P6.js +0 -162
- package/web/assets/stateDiagram-AJRCARHV-CUXGSTho.js +0 -1
- package/web/assets/stateDiagram-v2-BHNVJYJU-BIgjzG10.js +0 -1
- package/web/assets/vendor-vue-CncuOShJ.js +0 -53
- package/web/assets/vennDiagram-CIIHVFJN-BA6gOXtk.js +0 -34
- package/web/assets/xychartDiagram-2RQKCTM6-CZ9XDAvq.js +0 -7
- package/web/assets/zh-CN-Bv-Uv5nk.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
var Ze=typeof global=="object"&&global&&global.Object===Object&&global,pt=typeof self=="object"&&self&&self.Object===Object&&self,w=Ze||pt||Function("return this")(),y=w.Symbol,We=Object.prototype,_t=We.hasOwnProperty,bt=We.toString,D=y?y.toStringTag:void 0;function yt(e){var t=_t.call(e,D),r=e[D];try{e[D]=void 0;var n=!0}catch{}var i=bt.call(e);return n&&(t?e[D]=r:delete e[D]),i}var vt=Object.prototype,Ot=vt.toString;function mt(e){return Ot.call(e)}var wt="[object Null]",Tt="[object Undefined]",Oe=y?y.toStringTag:void 0;function M(e){return e==null?e===void 0?Tt:wt:Oe&&Oe in Object(e)?yt(e):mt(e)}function j(e){return e!=null&&typeof e=="object"}var At="[object Symbol]";function he(e){return typeof e=="symbol"||j(e)&&M(e)==At}function Je(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var g=Array.isArray,me=y?y.prototype:void 0,we=me?me.toString:void 0;function Qe(e){if(typeof e=="string")return e;if(g(e))return Je(e,Qe)+"";if(he(e))return we?we.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function ce(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function J(e){return e}var Pt="[object AsyncFunction]",Et="[object Function]",$t="[object GeneratorFunction]",St="[object Proxy]";function Z(e){if(!ce(e))return!1;var t=M(e);return t==Et||t==$t||t==Pt||t==St}var re=w["__core-js_shared__"],Te=(function(){var e=/[^.]+$/.exec(re&&re.keys&&re.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function Ct(e){return!!Te&&Te in e}var jt=Function.prototype,xt=jt.toString;function I(e){if(e!=null){try{return xt.call(e)}catch{}try{return e+""}catch{}}return""}var It=/[\\^$.*+?()[\]{}|]/g,Lt=/^\[object .+?Constructor\]$/,Rt=Function.prototype,Nt=Object.prototype,Mt=Rt.toString,Dt=Nt.hasOwnProperty,Ft=RegExp("^"+Mt.call(Dt).replace(It,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Gt(e){if(!ce(e)||Ct(e))return!1;var t=Z(e)?Ft:Lt;return t.test(I(e))}function Ut(e,t){return e==null?void 0:e[t]}function L(e,t){var r=Ut(e,t);return Gt(r)?r:void 0}var oe=L(w,"WeakMap");function zt(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function Ht(){}var Bt=800,Kt=16,qt=Date.now;function Xt(e){var t=0,r=0;return function(){var n=qt(),i=Kt-(n-r);if(r=n,i>0){if(++t>=Bt)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function F(e){return function(){return e}}var Ae=(function(){try{var e=L(Object,"defineProperty");return e({},"",{}),e}catch{}})(),Yt=Ae?function(e,t){return Ae(e,"toString",{configurable:!0,enumerable:!1,value:F(t),writable:!0})}:J,Zt=Xt(Yt);function Wt(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}function Jt(e,t,r,n){for(var i=e.length,s=r+-1;++s<i;)if(t(e[s],s,e))return s;return-1}function Qt(e){return e!==e}function Vt(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return-1}function kt(e,t,r){return t===t?Vt(e,t,r):Jt(e,Qt,r)}function er(e,t){var r=e==null?0:e.length;return!!r&&kt(e,t,0)>-1}var tr=9007199254740991,rr=/^(?:0|[1-9]\d*)$/;function Ve(e,t){var r=typeof e;return t=t??tr,!!t&&(r=="number"||r!="symbol"&&rr.test(e))&&e>-1&&e%1==0&&e<t}function ke(e,t){return e===t||e!==e&&t!==t}var Pe=Math.max;function nr(e,t,r){return t=Pe(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,s=Pe(n.length-t,0),a=Array(s);++i<s;)a[i]=n[t+i];i=-1;for(var o=Array(t+1);++i<t;)o[i]=n[i];return o[t]=r(a),zt(e,this,o)}}function ir(e,t){return Zt(nr(e,t,J),e+"")}var sr=9007199254740991;function le(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=sr}function Q(e){return e!=null&&le(e.length)&&!Z(e)}var ar=Object.prototype;function et(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||ar;return e===r}function or(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var ur="[object Arguments]";function Ee(e){return j(e)&&M(e)==ur}var tt=Object.prototype,fr=tt.hasOwnProperty,hr=tt.propertyIsEnumerable,V=Ee((function(){return arguments})())?Ee:function(e){return j(e)&&fr.call(e,"callee")&&!hr.call(e,"callee")};function cr(){return!1}var rt=typeof exports=="object"&&exports&&!exports.nodeType&&exports,$e=rt&&typeof module=="object"&&module&&!module.nodeType&&module,lr=$e&&$e.exports===rt,Se=lr?w.Buffer:void 0,dr=Se?Se.isBuffer:void 0,W=dr||cr,gr="[object Arguments]",pr="[object Array]",_r="[object Boolean]",br="[object Date]",yr="[object Error]",vr="[object Function]",Or="[object Map]",mr="[object Number]",wr="[object Object]",Tr="[object RegExp]",Ar="[object Set]",Pr="[object String]",Er="[object WeakMap]",$r="[object ArrayBuffer]",Sr="[object DataView]",Cr="[object Float32Array]",jr="[object Float64Array]",xr="[object Int8Array]",Ir="[object Int16Array]",Lr="[object Int32Array]",Rr="[object Uint8Array]",Nr="[object Uint8ClampedArray]",Mr="[object Uint16Array]",Dr="[object Uint32Array]",h={};h[Cr]=h[jr]=h[xr]=h[Ir]=h[Lr]=h[Rr]=h[Nr]=h[Mr]=h[Dr]=!0;h[gr]=h[pr]=h[$r]=h[_r]=h[Sr]=h[br]=h[yr]=h[vr]=h[Or]=h[mr]=h[wr]=h[Tr]=h[Ar]=h[Pr]=h[Er]=!1;function Fr(e){return j(e)&&le(e.length)&&!!h[M(e)]}function Gr(e){return function(t){return e(t)}}var nt=typeof exports=="object"&&exports&&!exports.nodeType&&exports,U=nt&&typeof module=="object"&&module&&!module.nodeType&&module,Ur=U&&U.exports===nt,ne=Ur&&Ze.process,Ce=(function(){try{var e=U&&U.require&&U.require("util").types;return e||ne&&ne.binding&&ne.binding("util")}catch{}})(),je=Ce&&Ce.isTypedArray,de=je?Gr(je):Fr,zr=Object.prototype,Hr=zr.hasOwnProperty;function Br(e,t){var r=g(e),n=!r&&V(e),i=!r&&!n&&W(e),s=!r&&!n&&!i&&de(e),a=r||n||i||s,o=a?or(e.length,String):[],u=o.length;for(var f in e)(t||Hr.call(e,f))&&!(a&&(f=="length"||i&&(f=="offset"||f=="parent")||s&&(f=="buffer"||f=="byteLength"||f=="byteOffset")||Ve(f,u)))&&o.push(f);return o}function Kr(e,t){return function(r){return e(t(r))}}var qr=Kr(Object.keys,Object),Xr=Object.prototype,Yr=Xr.hasOwnProperty;function it(e){if(!et(e))return qr(e);var t=[];for(var r in Object(e))Yr.call(e,r)&&r!="constructor"&&t.push(r);return t}function b(e){return Q(e)?Br(e):it(e)}var Zr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Wr=/^\w*$/;function ge(e,t){if(g(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||he(e)?!0:Wr.test(e)||!Zr.test(e)||t!=null&&e in Object(t)}var z=L(Object,"create");function Jr(){this.__data__=z?z(null):{},this.size=0}function Qr(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Vr="__lodash_hash_undefined__",kr=Object.prototype,en=kr.hasOwnProperty;function tn(e){var t=this.__data__;if(z){var r=t[e];return r===Vr?void 0:r}return en.call(t,e)?t[e]:void 0}var rn=Object.prototype,nn=rn.hasOwnProperty;function sn(e){var t=this.__data__;return z?t[e]!==void 0:nn.call(t,e)}var an="__lodash_hash_undefined__";function on(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=z&&t===void 0?an:t,this}function x(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}x.prototype.clear=Jr;x.prototype.delete=Qr;x.prototype.get=tn;x.prototype.has=sn;x.prototype.set=on;function un(){this.__data__=[],this.size=0}function k(e,t){for(var r=e.length;r--;)if(ke(e[r][0],t))return r;return-1}var fn=Array.prototype,hn=fn.splice;function cn(e){var t=this.__data__,r=k(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():hn.call(t,r,1),--this.size,!0}function ln(e){var t=this.__data__,r=k(t,e);return r<0?void 0:t[r][1]}function dn(e){return k(this.__data__,e)>-1}function gn(e,t){var r=this.__data__,n=k(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function T(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}T.prototype.clear=un;T.prototype.delete=cn;T.prototype.get=ln;T.prototype.has=dn;T.prototype.set=gn;var H=L(w,"Map");function pn(){this.size=0,this.__data__={hash:new x,map:new(H||T),string:new x}}function _n(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function ee(e,t){var r=e.__data__;return _n(t)?r[typeof t=="string"?"string":"hash"]:r.map}function bn(e){var t=ee(this,e).delete(e);return this.size-=t?1:0,t}function yn(e){return ee(this,e).get(e)}function vn(e){return ee(this,e).has(e)}function On(e,t){var r=ee(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function A(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}A.prototype.clear=pn;A.prototype.delete=bn;A.prototype.get=yn;A.prototype.has=vn;A.prototype.set=On;var mn="Expected a function";function pe(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(mn);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],s=r.cache;if(s.has(i))return s.get(i);var a=e.apply(this,n);return r.cache=s.set(i,a)||s,a};return r.cache=new(pe.Cache||A),r}pe.Cache=A;var wn=500;function Tn(e){var t=pe(e,function(n){return r.size===wn&&r.clear(),n}),r=t.cache;return t}var An=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Pn=/\\(\\)?/g,En=Tn(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(An,function(r,n,i,s){t.push(i?s.replace(Pn,"$1"):n||r)}),t});function $n(e){return e==null?"":Qe(e)}function st(e,t){return g(e)?e:ge(e,t)?[e]:En($n(e))}function te(e){if(typeof e=="string"||he(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function at(e,t){t=st(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[te(t[r++])];return r&&r==n?e:void 0}function Sn(e,t,r){var n=e==null?void 0:at(e,t);return n===void 0?r:n}function ot(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var xe=y?y.isConcatSpreadable:void 0;function Cn(e){return g(e)||V(e)||!!(xe&&e&&e[xe])}function jn(e,t,r,n,i){var s=-1,a=e.length;for(r||(r=Cn),i||(i=[]);++s<a;){var o=e[s];r(o)?ot(i,o):n||(i[i.length]=o)}return i}function xn(e,t,r,n){var i=-1,s=e==null?0:e.length;for(n&&s&&(r=e[++i]);++i<s;)r=t(r,e[i],i,e);return r}function In(){this.__data__=new T,this.size=0}function Ln(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function Rn(e){return this.__data__.get(e)}function Nn(e){return this.__data__.has(e)}var Mn=200;function Dn(e,t){var r=this.__data__;if(r instanceof T){var n=r.__data__;if(!H||n.length<Mn-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new A(n)}return r.set(e,t),this.size=r.size,this}function m(e){var t=this.__data__=new T(e);this.size=t.size}m.prototype.clear=In;m.prototype.delete=Ln;m.prototype.get=Rn;m.prototype.has=Nn;m.prototype.set=Dn;function ut(e,t){for(var r=-1,n=e==null?0:e.length,i=0,s=[];++r<n;){var a=e[r];t(a,r,e)&&(s[i++]=a)}return s}function Fn(){return[]}var Gn=Object.prototype,Un=Gn.propertyIsEnumerable,Ie=Object.getOwnPropertySymbols,zn=Ie?function(e){return e==null?[]:(e=Object(e),ut(Ie(e),function(t){return Un.call(e,t)}))}:Fn;function Hn(e,t,r){var n=t(e);return g(e)?n:ot(n,r(e))}function Le(e){return Hn(e,b,zn)}var ue=L(w,"DataView"),fe=L(w,"Promise"),N=L(w,"Set"),Re="[object Map]",Bn="[object Object]",Ne="[object Promise]",Me="[object Set]",De="[object WeakMap]",Fe="[object DataView]",Kn=I(ue),qn=I(H),Xn=I(fe),Yn=I(N),Zn=I(oe),O=M;(ue&&O(new ue(new ArrayBuffer(1)))!=Fe||H&&O(new H)!=Re||fe&&O(fe.resolve())!=Ne||N&&O(new N)!=Me||oe&&O(new oe)!=De)&&(O=function(e){var t=M(e),r=t==Bn?e.constructor:void 0,n=r?I(r):"";if(n)switch(n){case Kn:return Fe;case qn:return Re;case Xn:return Ne;case Yn:return Me;case Zn:return De}return t});var Ge=w.Uint8Array,Wn="__lodash_hash_undefined__";function Jn(e){return this.__data__.set(e,Wn),this}function Qn(e){return this.__data__.has(e)}function B(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new A;++t<r;)this.add(e[t])}B.prototype.add=B.prototype.push=Jn;B.prototype.has=Qn;function Vn(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function ft(e,t){return e.has(t)}var kn=1,ei=2;function ht(e,t,r,n,i,s){var a=r&kn,o=e.length,u=t.length;if(o!=u&&!(a&&u>o))return!1;var f=s.get(e),d=s.get(t);if(f&&d)return f==t&&d==e;var c=-1,l=!0,v=r&ei?new B:void 0;for(s.set(e,t),s.set(t,e);++c<o;){var p=e[c],_=t[c];if(n)var P=a?n(_,p,c,t,e,s):n(p,_,c,e,t,s);if(P!==void 0){if(P)continue;l=!1;break}if(v){if(!Vn(t,function(E,$){if(!ft(v,$)&&(p===E||i(p,E,r,n,s)))return v.push($)})){l=!1;break}}else if(!(p===_||i(p,_,r,n,s))){l=!1;break}}return s.delete(e),s.delete(t),l}function ti(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}function _e(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var ri=1,ni=2,ii="[object Boolean]",si="[object Date]",ai="[object Error]",oi="[object Map]",ui="[object Number]",fi="[object RegExp]",hi="[object Set]",ci="[object String]",li="[object Symbol]",di="[object ArrayBuffer]",gi="[object DataView]",Ue=y?y.prototype:void 0,ie=Ue?Ue.valueOf:void 0;function pi(e,t,r,n,i,s,a){switch(r){case gi:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case di:return!(e.byteLength!=t.byteLength||!s(new Ge(e),new Ge(t)));case ii:case si:case ui:return ke(+e,+t);case ai:return e.name==t.name&&e.message==t.message;case fi:case ci:return e==t+"";case oi:var o=ti;case hi:var u=n&ri;if(o||(o=_e),e.size!=t.size&&!u)return!1;var f=a.get(e);if(f)return f==t;n|=ni,a.set(e,t);var d=ht(o(e),o(t),n,i,s,a);return a.delete(e),d;case li:if(ie)return ie.call(e)==ie.call(t)}return!1}var _i=1,bi=Object.prototype,yi=bi.hasOwnProperty;function vi(e,t,r,n,i,s){var a=r&_i,o=Le(e),u=o.length,f=Le(t),d=f.length;if(u!=d&&!a)return!1;for(var c=u;c--;){var l=o[c];if(!(a?l in t:yi.call(t,l)))return!1}var v=s.get(e),p=s.get(t);if(v&&p)return v==t&&p==e;var _=!0;s.set(e,t),s.set(t,e);for(var P=a;++c<u;){l=o[c];var E=e[l],$=t[l];if(n)var ve=a?n($,E,l,t,e,s):n(E,$,l,e,t,s);if(!(ve===void 0?E===$||i(E,$,r,n,s):ve)){_=!1;break}P||(P=l=="constructor")}if(_&&!P){var K=e.constructor,q=t.constructor;K!=q&&"constructor"in e&&"constructor"in t&&!(typeof K=="function"&&K instanceof K&&typeof q=="function"&&q instanceof q)&&(_=!1)}return s.delete(e),s.delete(t),_}var Oi=1,ze="[object Arguments]",He="[object Array]",X="[object Object]",mi=Object.prototype,Be=mi.hasOwnProperty;function wi(e,t,r,n,i,s){var a=g(e),o=g(t),u=a?He:O(e),f=o?He:O(t);u=u==ze?X:u,f=f==ze?X:f;var d=u==X,c=f==X,l=u==f;if(l&&W(e)){if(!W(t))return!1;a=!0,d=!1}if(l&&!d)return s||(s=new m),a||de(e)?ht(e,t,r,n,i,s):pi(e,t,u,r,n,i,s);if(!(r&Oi)){var v=d&&Be.call(e,"__wrapped__"),p=c&&Be.call(t,"__wrapped__");if(v||p){var _=v?e.value():e,P=p?t.value():t;return s||(s=new m),i(_,P,r,n,s)}}return l?(s||(s=new m),vi(e,t,r,n,i,s)):!1}function be(e,t,r,n,i){return e===t?!0:e==null||t==null||!j(e)&&!j(t)?e!==e&&t!==t:wi(e,t,r,n,be,i)}var Ti=1,Ai=2;function Pi(e,t,r,n){var i=r.length,s=i;if(e==null)return!s;for(e=Object(e);i--;){var a=r[i];if(a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++i<s;){a=r[i];var o=a[0],u=e[o],f=a[1];if(a[2]){if(u===void 0&&!(o in e))return!1}else{var d=new m,c;if(!(c===void 0?be(f,u,Ti|Ai,n,d):c))return!1}}return!0}function ct(e){return e===e&&!ce(e)}function Ei(e){for(var t=b(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,ct(i)]}return t}function lt(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function $i(e){var t=Ei(e);return t.length==1&&t[0][2]?lt(t[0][0],t[0][1]):function(r){return r===e||Pi(r,e,t)}}function Si(e,t){return e!=null&&t in Object(e)}function Ci(e,t,r){t=st(t,e);for(var n=-1,i=t.length,s=!1;++n<i;){var a=te(t[n]);if(!(s=e!=null&&r(e,a)))break;e=e[a]}return s||++n!=i?s:(i=e==null?0:e.length,!!i&&le(i)&&Ve(a,i)&&(g(e)||V(e)))}function ji(e,t){return e!=null&&Ci(e,t,Si)}var xi=1,Ii=2;function Li(e,t){return ge(e)&&ct(t)?lt(te(e),t):function(r){var n=Sn(r,e);return n===void 0&&n===t?ji(r,e):be(t,n,xi|Ii)}}function Ri(e){return function(t){return t==null?void 0:t[e]}}function Ni(e){return function(t){return at(t,e)}}function Mi(e){return ge(e)?Ri(te(e)):Ni(e)}function dt(e){return typeof e=="function"?e:e==null?J:typeof e=="object"?g(e)?Li(e[0],e[1]):$i(e):Mi(e)}function Di(e){return function(t,r,n){for(var i=-1,s=Object(t),a=n(t),o=a.length;o--;){var u=a[++i];if(r(s[u],u,s)===!1)break}return t}}var Fi=Di();function Gi(e,t){return e&&Fi(e,t,b)}function Ui(e,t){return function(r,n){if(r==null)return r;if(!Q(r))return e(r,n);for(var i=r.length,s=-1,a=Object(r);++s<i&&n(a[s],s,a)!==!1;);return r}}var ye=Ui(Gi);function zi(e){return j(e)&&Q(e)}function Hi(e){return typeof e=="function"?e:J}function S(e,t){var r=g(e)?Wt:ye;return r(e,Hi(t))}function Bi(e,t){var r=[];return ye(e,function(n,i,s){t(n,i,s)&&r.push(n)}),r}function Y(e,t){var r=g(e)?ut:Bi;return r(e,dt(t))}function Ki(e,t){return Je(t,function(r){return e[r]})}function se(e){return e==null?[]:Ki(e,b(e))}var qi="[object Map]",Xi="[object Set]",Yi=Object.prototype,Zi=Yi.hasOwnProperty;function Ke(e){if(e==null)return!0;if(Q(e)&&(g(e)||typeof e=="string"||typeof e.splice=="function"||W(e)||de(e)||V(e)))return!e.length;var t=O(e);if(t==qi||t==Xi)return!e.size;if(et(e))return!it(e).length;for(var r in e)if(Zi.call(e,r))return!1;return!0}function R(e){return e===void 0}function Wi(e,t,r,n,i){return i(e,function(s,a,o){r=n?(n=!1,s):t(r,s,a,o)}),r}function Ji(e,t,r){var n=g(e)?xn:Wi,i=arguments.length<3;return n(e,dt(t),r,i,ye)}var Qi=1/0,Vi=N&&1/_e(new N([,-0]))[1]==Qi?function(e){return new N(e)}:Ht,ki=200;function es(e,t,r){var n=-1,i=er,s=e.length,a=!0,o=[],u=o;if(s>=ki){var f=Vi(e);if(f)return _e(f);a=!1,i=ft,u=new B}else u=o;e:for(;++n<s;){var d=e[n],c=d;if(d=d!==0?d:0,a&&c===c){for(var l=u.length;l--;)if(u[l]===c)continue e;o.push(d)}else i(u,c,r)||(u!==o&&u.push(c),o.push(d))}return o}var ts=ir(function(e){return es(jn(e,1,zi,!0))}),rs="\0",C="\0",qe="";class gt{constructor(t={}){this._isDirected=Object.prototype.hasOwnProperty.call(t,"directed")?t.directed:!0,this._isMultigraph=Object.prototype.hasOwnProperty.call(t,"multigraph")?t.multigraph:!1,this._isCompound=Object.prototype.hasOwnProperty.call(t,"compound")?t.compound:!1,this._label=void 0,this._defaultNodeLabelFn=F(void 0),this._defaultEdgeLabelFn=F(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[C]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(t){return this._label=t,this}graph(){return this._label}setDefaultNodeLabel(t){return Z(t)||(t=F(t)),this._defaultNodeLabelFn=t,this}nodeCount(){return this._nodeCount}nodes(){return b(this._nodes)}sources(){var t=this;return Y(this.nodes(),function(r){return Ke(t._in[r])})}sinks(){var t=this;return Y(this.nodes(),function(r){return Ke(t._out[r])})}setNodes(t,r){var n=arguments,i=this;return S(t,function(s){n.length>1?i.setNode(s,r):i.setNode(s)}),this}setNode(t,r){return Object.prototype.hasOwnProperty.call(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=r),this):(this._nodes[t]=arguments.length>1?r:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]=C,this._children[t]={},this._children[C][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)}node(t){return this._nodes[t]}hasNode(t){return Object.prototype.hasOwnProperty.call(this._nodes,t)}removeNode(t){if(Object.prototype.hasOwnProperty.call(this._nodes,t)){var r=n=>this.removeEdge(this._edgeObjs[n]);delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],S(this.children(t),n=>{this.setParent(n)}),delete this._children[t]),S(b(this._in[t]),r),delete this._in[t],delete this._preds[t],S(b(this._out[t]),r),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this}setParent(t,r){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(R(r))r=C;else{r+="";for(var n=r;!R(n);n=this.parent(n))if(n===t)throw new Error("Setting "+r+" as parent of "+t+" would create a cycle");this.setNode(r)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=r,this._children[r][t]=!0,this}_removeFromParentsChildList(t){delete this._children[this._parent[t]][t]}parent(t){if(this._isCompound){var r=this._parent[t];if(r!==C)return r}}children(t){if(R(t)&&(t=C),this._isCompound){var r=this._children[t];if(r)return b(r)}else{if(t===C)return this.nodes();if(this.hasNode(t))return[]}}predecessors(t){var r=this._preds[t];if(r)return b(r)}successors(t){var r=this._sucs[t];if(r)return b(r)}neighbors(t){var r=this.predecessors(t);if(r)return ts(r,this.successors(t))}isLeaf(t){var r;return this.isDirected()?r=this.successors(t):r=this.neighbors(t),r.length===0}filterNodes(t){var r=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});r.setGraph(this.graph());var n=this;S(this._nodes,function(a,o){t(o)&&r.setNode(o,a)}),S(this._edgeObjs,function(a){r.hasNode(a.v)&&r.hasNode(a.w)&&r.setEdge(a,n.edge(a))});var i={};function s(a){var o=n.parent(a);return o===void 0||r.hasNode(o)?(i[a]=o,o):o in i?i[o]:s(o)}return this._isCompound&&S(r.nodes(),function(a){r.setParent(a,s(a))}),r}setDefaultEdgeLabel(t){return Z(t)||(t=F(t)),this._defaultEdgeLabelFn=t,this}edgeCount(){return this._edgeCount}edges(){return se(this._edgeObjs)}setPath(t,r){var n=this,i=arguments;return Ji(t,function(s,a){return i.length>1?n.setEdge(s,a,r):n.setEdge(s,a),a}),this}setEdge(){var t,r,n,i,s=!1,a=arguments[0];typeof a=="object"&&a!==null&&"v"in a?(t=a.v,r=a.w,n=a.name,arguments.length===2&&(i=arguments[1],s=!0)):(t=a,r=arguments[1],n=arguments[3],arguments.length>2&&(i=arguments[2],s=!0)),t=""+t,r=""+r,R(n)||(n=""+n);var o=G(this._isDirected,t,r,n);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,o))return s&&(this._edgeLabels[o]=i),this;if(!R(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(r),this._edgeLabels[o]=s?i:this._defaultEdgeLabelFn(t,r,n);var u=ns(this._isDirected,t,r,n);return t=u.v,r=u.w,Object.freeze(u),this._edgeObjs[o]=u,Xe(this._preds[r],t),Xe(this._sucs[t],r),this._in[r][o]=u,this._out[t][o]=u,this._edgeCount++,this}edge(t,r,n){var i=arguments.length===1?ae(this._isDirected,arguments[0]):G(this._isDirected,t,r,n);return this._edgeLabels[i]}hasEdge(t,r,n){var i=arguments.length===1?ae(this._isDirected,arguments[0]):G(this._isDirected,t,r,n);return Object.prototype.hasOwnProperty.call(this._edgeLabels,i)}removeEdge(t,r,n){var i=arguments.length===1?ae(this._isDirected,arguments[0]):G(this._isDirected,t,r,n),s=this._edgeObjs[i];return s&&(t=s.v,r=s.w,delete this._edgeLabels[i],delete this._edgeObjs[i],Ye(this._preds[r],t),Ye(this._sucs[t],r),delete this._in[r][i],delete this._out[t][i],this._edgeCount--),this}inEdges(t,r){var n=this._in[t];if(n){var i=se(n);return r?Y(i,function(s){return s.v===r}):i}}outEdges(t,r){var n=this._out[t];if(n){var i=se(n);return r?Y(i,function(s){return s.w===r}):i}}nodeEdges(t,r){var n=this.inEdges(t,r);if(n)return n.concat(this.outEdges(t,r))}}gt.prototype._nodeCount=0;gt.prototype._edgeCount=0;function Xe(e,t){e[t]?e[t]++:e[t]=1}function Ye(e,t){--e[t]||delete e[t]}function G(e,t,r,n){var i=""+t,s=""+r;if(!e&&i>s){var a=i;i=s,s=a}return i+qe+s+qe+(R(n)?rs:n)}function ns(e,t,r,n){var i=""+t,s=""+r;if(!e&&i>s){var a=i;i=s,s=a}var o={v:i,w:s};return n&&(o.name=n),o}function ae(e,t){return G(e,t.v,t.w,t.name)}export{Y as $,m as A,Wt as B,g as C,Le as D,de as E,zi as F,gt as G,V as H,Z as I,Fi as J,dt as K,Jt as L,ye as M,Je as N,Hi as O,Gi as P,Ci as Q,J as R,y as S,st as T,Ge as U,te as V,at as W,ji as X,$n as Y,S as Z,F as _,he as a,se as a0,Ji as a1,ce as b,Q as c,Ae as d,ke as e,Ve as f,ir as g,et as h,R as i,Br as j,jn as k,Kr as l,j as m,M as n,nr as o,b as p,zn as q,w as r,Zt as s,Fn as t,ot as u,Hn as v,O as w,Gr as x,Ce as y,W as z};
|
|
1
|
+
var Ze=typeof global=="object"&&global&&global.Object===Object&&global,pt=typeof self=="object"&&self&&self.Object===Object&&self,w=Ze||pt||Function("return this")(),y=w.Symbol,We=Object.prototype,_t=We.hasOwnProperty,bt=We.toString,D=y?y.toStringTag:void 0;function yt(e){var t=_t.call(e,D),r=e[D];try{e[D]=void 0;var n=!0}catch{}var i=bt.call(e);return n&&(t?e[D]=r:delete e[D]),i}var vt=Object.prototype,Ot=vt.toString;function mt(e){return Ot.call(e)}var wt="[object Null]",Tt="[object Undefined]",Oe=y?y.toStringTag:void 0;function M(e){return e==null?e===void 0?Tt:wt:Oe&&Oe in Object(e)?yt(e):mt(e)}function j(e){return e!=null&&typeof e=="object"}var At="[object Symbol]";function he(e){return typeof e=="symbol"||j(e)&&M(e)==At}function Je(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var g=Array.isArray,me=y?y.prototype:void 0,we=me?me.toString:void 0;function Qe(e){if(typeof e=="string")return e;if(g(e))return Je(e,Qe)+"";if(he(e))return we?we.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function ce(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function J(e){return e}var Pt="[object AsyncFunction]",Et="[object Function]",$t="[object GeneratorFunction]",St="[object Proxy]";function Z(e){if(!ce(e))return!1;var t=M(e);return t==Et||t==$t||t==Pt||t==St}var re=w["__core-js_shared__"],Te=(function(){var e=/[^.]+$/.exec(re&&re.keys&&re.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function Ct(e){return!!Te&&Te in e}var jt=Function.prototype,xt=jt.toString;function I(e){if(e!=null){try{return xt.call(e)}catch{}try{return e+""}catch{}}return""}var It=/[\\^$.*+?()[\]{}|]/g,Lt=/^\[object .+?Constructor\]$/,Rt=Function.prototype,Nt=Object.prototype,Mt=Rt.toString,Dt=Nt.hasOwnProperty,Ft=RegExp("^"+Mt.call(Dt).replace(It,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Gt(e){if(!ce(e)||Ct(e))return!1;var t=Z(e)?Ft:Lt;return t.test(I(e))}function Ut(e,t){return e==null?void 0:e[t]}function L(e,t){var r=Ut(e,t);return Gt(r)?r:void 0}var oe=L(w,"WeakMap");function zt(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function Ht(){}var Bt=800,Kt=16,qt=Date.now;function Xt(e){var t=0,r=0;return function(){var n=qt(),i=Kt-(n-r);if(r=n,i>0){if(++t>=Bt)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function F(e){return function(){return e}}var Ae=(function(){try{var e=L(Object,"defineProperty");return e({},"",{}),e}catch{}})(),Yt=Ae?function(e,t){return Ae(e,"toString",{configurable:!0,enumerable:!1,value:F(t),writable:!0})}:J,Zt=Xt(Yt);function Wt(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}function Jt(e,t,r,n){for(var i=e.length,s=r+-1;++s<i;)if(t(e[s],s,e))return s;return-1}function Qt(e){return e!==e}function Vt(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return-1}function kt(e,t,r){return t===t?Vt(e,t,r):Jt(e,Qt,r)}function er(e,t){var r=e==null?0:e.length;return!!r&&kt(e,t,0)>-1}var tr=9007199254740991,rr=/^(?:0|[1-9]\d*)$/;function Ve(e,t){var r=typeof e;return t=t??tr,!!t&&(r=="number"||r!="symbol"&&rr.test(e))&&e>-1&&e%1==0&&e<t}function ke(e,t){return e===t||e!==e&&t!==t}var Pe=Math.max;function nr(e,t,r){return t=Pe(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,s=Pe(n.length-t,0),a=Array(s);++i<s;)a[i]=n[t+i];i=-1;for(var o=Array(t+1);++i<t;)o[i]=n[i];return o[t]=r(a),zt(e,this,o)}}function ir(e,t){return Zt(nr(e,t,J),e+"")}var sr=9007199254740991;function le(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=sr}function Q(e){return e!=null&&le(e.length)&&!Z(e)}var ar=Object.prototype;function et(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||ar;return e===r}function or(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var ur="[object Arguments]";function Ee(e){return j(e)&&M(e)==ur}var tt=Object.prototype,fr=tt.hasOwnProperty,hr=tt.propertyIsEnumerable,V=Ee((function(){return arguments})())?Ee:function(e){return j(e)&&fr.call(e,"callee")&&!hr.call(e,"callee")};function cr(){return!1}var rt=typeof exports=="object"&&exports&&!exports.nodeType&&exports,$e=rt&&typeof module=="object"&&module&&!module.nodeType&&module,lr=$e&&$e.exports===rt,Se=lr?w.Buffer:void 0,dr=Se?Se.isBuffer:void 0,W=dr||cr,gr="[object Arguments]",pr="[object Array]",_r="[object Boolean]",br="[object Date]",yr="[object Error]",vr="[object Function]",Or="[object Map]",mr="[object Number]",wr="[object Object]",Tr="[object RegExp]",Ar="[object Set]",Pr="[object String]",Er="[object WeakMap]",$r="[object ArrayBuffer]",Sr="[object DataView]",Cr="[object Float32Array]",jr="[object Float64Array]",xr="[object Int8Array]",Ir="[object Int16Array]",Lr="[object Int32Array]",Rr="[object Uint8Array]",Nr="[object Uint8ClampedArray]",Mr="[object Uint16Array]",Dr="[object Uint32Array]",h={};h[Cr]=h[jr]=h[xr]=h[Ir]=h[Lr]=h[Rr]=h[Nr]=h[Mr]=h[Dr]=!0;h[gr]=h[pr]=h[$r]=h[_r]=h[Sr]=h[br]=h[yr]=h[vr]=h[Or]=h[mr]=h[wr]=h[Tr]=h[Ar]=h[Pr]=h[Er]=!1;function Fr(e){return j(e)&&le(e.length)&&!!h[M(e)]}function Gr(e){return function(t){return e(t)}}var nt=typeof exports=="object"&&exports&&!exports.nodeType&&exports,U=nt&&typeof module=="object"&&module&&!module.nodeType&&module,Ur=U&&U.exports===nt,ne=Ur&&Ze.process,Ce=(function(){try{var e=U&&U.require&&U.require("util").types;return e||ne&&ne.binding&&ne.binding("util")}catch{}})(),je=Ce&&Ce.isTypedArray,de=je?Gr(je):Fr,zr=Object.prototype,Hr=zr.hasOwnProperty;function Br(e,t){var r=g(e),n=!r&&V(e),i=!r&&!n&&W(e),s=!r&&!n&&!i&&de(e),a=r||n||i||s,o=a?or(e.length,String):[],u=o.length;for(var f in e)(t||Hr.call(e,f))&&!(a&&(f=="length"||i&&(f=="offset"||f=="parent")||s&&(f=="buffer"||f=="byteLength"||f=="byteOffset")||Ve(f,u)))&&o.push(f);return o}function Kr(e,t){return function(r){return e(t(r))}}var qr=Kr(Object.keys,Object),Xr=Object.prototype,Yr=Xr.hasOwnProperty;function it(e){if(!et(e))return qr(e);var t=[];for(var r in Object(e))Yr.call(e,r)&&r!="constructor"&&t.push(r);return t}function b(e){return Q(e)?Br(e):it(e)}var Zr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Wr=/^\w*$/;function ge(e,t){if(g(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||he(e)?!0:Wr.test(e)||!Zr.test(e)||t!=null&&e in Object(t)}var z=L(Object,"create");function Jr(){this.__data__=z?z(null):{},this.size=0}function Qr(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Vr="__lodash_hash_undefined__",kr=Object.prototype,en=kr.hasOwnProperty;function tn(e){var t=this.__data__;if(z){var r=t[e];return r===Vr?void 0:r}return en.call(t,e)?t[e]:void 0}var rn=Object.prototype,nn=rn.hasOwnProperty;function sn(e){var t=this.__data__;return z?t[e]!==void 0:nn.call(t,e)}var an="__lodash_hash_undefined__";function on(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=z&&t===void 0?an:t,this}function x(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}x.prototype.clear=Jr;x.prototype.delete=Qr;x.prototype.get=tn;x.prototype.has=sn;x.prototype.set=on;function un(){this.__data__=[],this.size=0}function k(e,t){for(var r=e.length;r--;)if(ke(e[r][0],t))return r;return-1}var fn=Array.prototype,hn=fn.splice;function cn(e){var t=this.__data__,r=k(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():hn.call(t,r,1),--this.size,!0}function ln(e){var t=this.__data__,r=k(t,e);return r<0?void 0:t[r][1]}function dn(e){return k(this.__data__,e)>-1}function gn(e,t){var r=this.__data__,n=k(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function T(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}T.prototype.clear=un;T.prototype.delete=cn;T.prototype.get=ln;T.prototype.has=dn;T.prototype.set=gn;var H=L(w,"Map");function pn(){this.size=0,this.__data__={hash:new x,map:new(H||T),string:new x}}function _n(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function ee(e,t){var r=e.__data__;return _n(t)?r[typeof t=="string"?"string":"hash"]:r.map}function bn(e){var t=ee(this,e).delete(e);return this.size-=t?1:0,t}function yn(e){return ee(this,e).get(e)}function vn(e){return ee(this,e).has(e)}function On(e,t){var r=ee(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function A(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}A.prototype.clear=pn;A.prototype.delete=bn;A.prototype.get=yn;A.prototype.has=vn;A.prototype.set=On;var mn="Expected a function";function pe(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(mn);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],s=r.cache;if(s.has(i))return s.get(i);var a=e.apply(this,n);return r.cache=s.set(i,a)||s,a};return r.cache=new(pe.Cache||A),r}pe.Cache=A;var wn=500;function Tn(e){var t=pe(e,function(n){return r.size===wn&&r.clear(),n}),r=t.cache;return t}var An=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Pn=/\\(\\)?/g,En=Tn(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(An,function(r,n,i,s){t.push(i?s.replace(Pn,"$1"):n||r)}),t});function $n(e){return e==null?"":Qe(e)}function st(e,t){return g(e)?e:ge(e,t)?[e]:En($n(e))}function te(e){if(typeof e=="string"||he(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function at(e,t){t=st(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[te(t[r++])];return r&&r==n?e:void 0}function Sn(e,t,r){var n=e==null?void 0:at(e,t);return n===void 0?r:n}function ot(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var xe=y?y.isConcatSpreadable:void 0;function Cn(e){return g(e)||V(e)||!!(xe&&e&&e[xe])}function jn(e,t,r,n,i){var s=-1,a=e.length;for(r||(r=Cn),i||(i=[]);++s<a;){var o=e[s];r(o)?ot(i,o):n||(i[i.length]=o)}return i}function xn(e,t,r,n){var i=-1,s=e==null?0:e.length;for(n&&s&&(r=e[++i]);++i<s;)r=t(r,e[i],i,e);return r}function In(){this.__data__=new T,this.size=0}function Ln(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function Rn(e){return this.__data__.get(e)}function Nn(e){return this.__data__.has(e)}var Mn=200;function Dn(e,t){var r=this.__data__;if(r instanceof T){var n=r.__data__;if(!H||n.length<Mn-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new A(n)}return r.set(e,t),this.size=r.size,this}function m(e){var t=this.__data__=new T(e);this.size=t.size}m.prototype.clear=In;m.prototype.delete=Ln;m.prototype.get=Rn;m.prototype.has=Nn;m.prototype.set=Dn;function ut(e,t){for(var r=-1,n=e==null?0:e.length,i=0,s=[];++r<n;){var a=e[r];t(a,r,e)&&(s[i++]=a)}return s}function Fn(){return[]}var Gn=Object.prototype,Un=Gn.propertyIsEnumerable,Ie=Object.getOwnPropertySymbols,zn=Ie?function(e){return e==null?[]:(e=Object(e),ut(Ie(e),function(t){return Un.call(e,t)}))}:Fn;function Hn(e,t,r){var n=t(e);return g(e)?n:ot(n,r(e))}function Le(e){return Hn(e,b,zn)}var ue=L(w,"DataView"),fe=L(w,"Promise"),N=L(w,"Set"),Re="[object Map]",Bn="[object Object]",Ne="[object Promise]",Me="[object Set]",De="[object WeakMap]",Fe="[object DataView]",Kn=I(ue),qn=I(H),Xn=I(fe),Yn=I(N),Zn=I(oe),O=M;(ue&&O(new ue(new ArrayBuffer(1)))!=Fe||H&&O(new H)!=Re||fe&&O(fe.resolve())!=Ne||N&&O(new N)!=Me||oe&&O(new oe)!=De)&&(O=function(e){var t=M(e),r=t==Bn?e.constructor:void 0,n=r?I(r):"";if(n)switch(n){case Kn:return Fe;case qn:return Re;case Xn:return Ne;case Yn:return Me;case Zn:return De}return t});var Ge=w.Uint8Array,Wn="__lodash_hash_undefined__";function Jn(e){return this.__data__.set(e,Wn),this}function Qn(e){return this.__data__.has(e)}function B(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new A;++t<r;)this.add(e[t])}B.prototype.add=B.prototype.push=Jn;B.prototype.has=Qn;function Vn(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function ft(e,t){return e.has(t)}var kn=1,ei=2;function ht(e,t,r,n,i,s){var a=r&kn,o=e.length,u=t.length;if(o!=u&&!(a&&u>o))return!1;var f=s.get(e),d=s.get(t);if(f&&d)return f==t&&d==e;var c=-1,l=!0,v=r&ei?new B:void 0;for(s.set(e,t),s.set(t,e);++c<o;){var p=e[c],_=t[c];if(n)var P=a?n(_,p,c,t,e,s):n(p,_,c,e,t,s);if(P!==void 0){if(P)continue;l=!1;break}if(v){if(!Vn(t,function(E,$){if(!ft(v,$)&&(p===E||i(p,E,r,n,s)))return v.push($)})){l=!1;break}}else if(!(p===_||i(p,_,r,n,s))){l=!1;break}}return s.delete(e),s.delete(t),l}function ti(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}function _e(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var ri=1,ni=2,ii="[object Boolean]",si="[object Date]",ai="[object Error]",oi="[object Map]",ui="[object Number]",fi="[object RegExp]",hi="[object Set]",ci="[object String]",li="[object Symbol]",di="[object ArrayBuffer]",gi="[object DataView]",Ue=y?y.prototype:void 0,ie=Ue?Ue.valueOf:void 0;function pi(e,t,r,n,i,s,a){switch(r){case gi:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case di:return!(e.byteLength!=t.byteLength||!s(new Ge(e),new Ge(t)));case ii:case si:case ui:return ke(+e,+t);case ai:return e.name==t.name&&e.message==t.message;case fi:case ci:return e==t+"";case oi:var o=ti;case hi:var u=n&ri;if(o||(o=_e),e.size!=t.size&&!u)return!1;var f=a.get(e);if(f)return f==t;n|=ni,a.set(e,t);var d=ht(o(e),o(t),n,i,s,a);return a.delete(e),d;case li:if(ie)return ie.call(e)==ie.call(t)}return!1}var _i=1,bi=Object.prototype,yi=bi.hasOwnProperty;function vi(e,t,r,n,i,s){var a=r&_i,o=Le(e),u=o.length,f=Le(t),d=f.length;if(u!=d&&!a)return!1;for(var c=u;c--;){var l=o[c];if(!(a?l in t:yi.call(t,l)))return!1}var v=s.get(e),p=s.get(t);if(v&&p)return v==t&&p==e;var _=!0;s.set(e,t),s.set(t,e);for(var P=a;++c<u;){l=o[c];var E=e[l],$=t[l];if(n)var ve=a?n($,E,l,t,e,s):n(E,$,l,e,t,s);if(!(ve===void 0?E===$||i(E,$,r,n,s):ve)){_=!1;break}P||(P=l=="constructor")}if(_&&!P){var K=e.constructor,q=t.constructor;K!=q&&"constructor"in e&&"constructor"in t&&!(typeof K=="function"&&K instanceof K&&typeof q=="function"&&q instanceof q)&&(_=!1)}return s.delete(e),s.delete(t),_}var Oi=1,ze="[object Arguments]",He="[object Array]",X="[object Object]",mi=Object.prototype,Be=mi.hasOwnProperty;function wi(e,t,r,n,i,s){var a=g(e),o=g(t),u=a?He:O(e),f=o?He:O(t);u=u==ze?X:u,f=f==ze?X:f;var d=u==X,c=f==X,l=u==f;if(l&&W(e)){if(!W(t))return!1;a=!0,d=!1}if(l&&!d)return s||(s=new m),a||de(e)?ht(e,t,r,n,i,s):pi(e,t,u,r,n,i,s);if(!(r&Oi)){var v=d&&Be.call(e,"__wrapped__"),p=c&&Be.call(t,"__wrapped__");if(v||p){var _=v?e.value():e,P=p?t.value():t;return s||(s=new m),i(_,P,r,n,s)}}return l?(s||(s=new m),vi(e,t,r,n,i,s)):!1}function be(e,t,r,n,i){return e===t?!0:e==null||t==null||!j(e)&&!j(t)?e!==e&&t!==t:wi(e,t,r,n,be,i)}var Ti=1,Ai=2;function Pi(e,t,r,n){var i=r.length,s=i;if(e==null)return!s;for(e=Object(e);i--;){var a=r[i];if(a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++i<s;){a=r[i];var o=a[0],u=e[o],f=a[1];if(a[2]){if(u===void 0&&!(o in e))return!1}else{var d=new m,c;if(!(c===void 0?be(f,u,Ti|Ai,n,d):c))return!1}}return!0}function ct(e){return e===e&&!ce(e)}function Ei(e){for(var t=b(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,ct(i)]}return t}function lt(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function $i(e){var t=Ei(e);return t.length==1&&t[0][2]?lt(t[0][0],t[0][1]):function(r){return r===e||Pi(r,e,t)}}function Si(e,t){return e!=null&&t in Object(e)}function Ci(e,t,r){t=st(t,e);for(var n=-1,i=t.length,s=!1;++n<i;){var a=te(t[n]);if(!(s=e!=null&&r(e,a)))break;e=e[a]}return s||++n!=i?s:(i=e==null?0:e.length,!!i&&le(i)&&Ve(a,i)&&(g(e)||V(e)))}function ji(e,t){return e!=null&&Ci(e,t,Si)}var xi=1,Ii=2;function Li(e,t){return ge(e)&&ct(t)?lt(te(e),t):function(r){var n=Sn(r,e);return n===void 0&&n===t?ji(r,e):be(t,n,xi|Ii)}}function Ri(e){return function(t){return t==null?void 0:t[e]}}function Ni(e){return function(t){return at(t,e)}}function Mi(e){return ge(e)?Ri(te(e)):Ni(e)}function dt(e){return typeof e=="function"?e:e==null?J:typeof e=="object"?g(e)?Li(e[0],e[1]):$i(e):Mi(e)}function Di(e){return function(t,r,n){for(var i=-1,s=Object(t),a=n(t),o=a.length;o--;){var u=a[++i];if(r(s[u],u,s)===!1)break}return t}}var Fi=Di();function Gi(e,t){return e&&Fi(e,t,b)}function Ui(e,t){return function(r,n){if(r==null)return r;if(!Q(r))return e(r,n);for(var i=r.length,s=-1,a=Object(r);++s<i&&n(a[s],s,a)!==!1;);return r}}var ye=Ui(Gi);function zi(e){return j(e)&&Q(e)}function Hi(e){return typeof e=="function"?e:J}function S(e,t){var r=g(e)?Wt:ye;return r(e,Hi(t))}function Bi(e,t){var r=[];return ye(e,function(n,i,s){t(n,i,s)&&r.push(n)}),r}function Y(e,t){var r=g(e)?ut:Bi;return r(e,dt(t))}function Ki(e,t){return Je(t,function(r){return e[r]})}function se(e){return e==null?[]:Ki(e,b(e))}var qi="[object Map]",Xi="[object Set]",Yi=Object.prototype,Zi=Yi.hasOwnProperty;function Ke(e){if(e==null)return!0;if(Q(e)&&(g(e)||typeof e=="string"||typeof e.splice=="function"||W(e)||de(e)||V(e)))return!e.length;var t=O(e);if(t==qi||t==Xi)return!e.size;if(et(e))return!it(e).length;for(var r in e)if(Zi.call(e,r))return!1;return!0}function R(e){return e===void 0}function Wi(e,t,r,n,i){return i(e,function(s,a,o){r=n?(n=!1,s):t(r,s,a,o)}),r}function Ji(e,t,r){var n=g(e)?xn:Wi,i=arguments.length<3;return n(e,dt(t),r,i,ye)}var Qi=1/0,Vi=N&&1/_e(new N([,-0]))[1]==Qi?function(e){return new N(e)}:Ht,ki=200;function es(e,t,r){var n=-1,i=er,s=e.length,a=!0,o=[],u=o;if(s>=ki){var f=Vi(e);if(f)return _e(f);a=!1,i=ft,u=new B}else u=o;e:for(;++n<s;){var d=e[n],c=d;if(d=d!==0?d:0,a&&c===c){for(var l=u.length;l--;)if(u[l]===c)continue e;o.push(d)}else i(u,c,r)||(u!==o&&u.push(c),o.push(d))}return o}var ts=ir(function(e){return es(jn(e,1,zi,!0))}),rs="\0",C="\0",qe="";class gt{constructor(t={}){this._isDirected=Object.prototype.hasOwnProperty.call(t,"directed")?t.directed:!0,this._isMultigraph=Object.prototype.hasOwnProperty.call(t,"multigraph")?t.multigraph:!1,this._isCompound=Object.prototype.hasOwnProperty.call(t,"compound")?t.compound:!1,this._label=void 0,this._defaultNodeLabelFn=F(void 0),this._defaultEdgeLabelFn=F(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[C]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(t){return this._label=t,this}graph(){return this._label}setDefaultNodeLabel(t){return Z(t)||(t=F(t)),this._defaultNodeLabelFn=t,this}nodeCount(){return this._nodeCount}nodes(){return b(this._nodes)}sources(){var t=this;return Y(this.nodes(),function(r){return Ke(t._in[r])})}sinks(){var t=this;return Y(this.nodes(),function(r){return Ke(t._out[r])})}setNodes(t,r){var n=arguments,i=this;return S(t,function(s){n.length>1?i.setNode(s,r):i.setNode(s)}),this}setNode(t,r){return Object.prototype.hasOwnProperty.call(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=r),this):(this._nodes[t]=arguments.length>1?r:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]=C,this._children[t]={},this._children[C][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)}node(t){return this._nodes[t]}hasNode(t){return Object.prototype.hasOwnProperty.call(this._nodes,t)}removeNode(t){if(Object.prototype.hasOwnProperty.call(this._nodes,t)){var r=n=>this.removeEdge(this._edgeObjs[n]);delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],S(this.children(t),n=>{this.setParent(n)}),delete this._children[t]),S(b(this._in[t]),r),delete this._in[t],delete this._preds[t],S(b(this._out[t]),r),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this}setParent(t,r){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(R(r))r=C;else{r+="";for(var n=r;!R(n);n=this.parent(n))if(n===t)throw new Error("Setting "+r+" as parent of "+t+" would create a cycle");this.setNode(r)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=r,this._children[r][t]=!0,this}_removeFromParentsChildList(t){delete this._children[this._parent[t]][t]}parent(t){if(this._isCompound){var r=this._parent[t];if(r!==C)return r}}children(t){if(R(t)&&(t=C),this._isCompound){var r=this._children[t];if(r)return b(r)}else{if(t===C)return this.nodes();if(this.hasNode(t))return[]}}predecessors(t){var r=this._preds[t];if(r)return b(r)}successors(t){var r=this._sucs[t];if(r)return b(r)}neighbors(t){var r=this.predecessors(t);if(r)return ts(r,this.successors(t))}isLeaf(t){var r;return this.isDirected()?r=this.successors(t):r=this.neighbors(t),r.length===0}filterNodes(t){var r=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});r.setGraph(this.graph());var n=this;S(this._nodes,function(a,o){t(o)&&r.setNode(o,a)}),S(this._edgeObjs,function(a){r.hasNode(a.v)&&r.hasNode(a.w)&&r.setEdge(a,n.edge(a))});var i={};function s(a){var o=n.parent(a);return o===void 0||r.hasNode(o)?(i[a]=o,o):o in i?i[o]:s(o)}return this._isCompound&&S(r.nodes(),function(a){r.setParent(a,s(a))}),r}setDefaultEdgeLabel(t){return Z(t)||(t=F(t)),this._defaultEdgeLabelFn=t,this}edgeCount(){return this._edgeCount}edges(){return se(this._edgeObjs)}setPath(t,r){var n=this,i=arguments;return Ji(t,function(s,a){return i.length>1?n.setEdge(s,a,r):n.setEdge(s,a),a}),this}setEdge(){var t,r,n,i,s=!1,a=arguments[0];typeof a=="object"&&a!==null&&"v"in a?(t=a.v,r=a.w,n=a.name,arguments.length===2&&(i=arguments[1],s=!0)):(t=a,r=arguments[1],n=arguments[3],arguments.length>2&&(i=arguments[2],s=!0)),t=""+t,r=""+r,R(n)||(n=""+n);var o=G(this._isDirected,t,r,n);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,o))return s&&(this._edgeLabels[o]=i),this;if(!R(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(r),this._edgeLabels[o]=s?i:this._defaultEdgeLabelFn(t,r,n);var u=ns(this._isDirected,t,r,n);return t=u.v,r=u.w,Object.freeze(u),this._edgeObjs[o]=u,Xe(this._preds[r],t),Xe(this._sucs[t],r),this._in[r][o]=u,this._out[t][o]=u,this._edgeCount++,this}edge(t,r,n){var i=arguments.length===1?ae(this._isDirected,arguments[0]):G(this._isDirected,t,r,n);return this._edgeLabels[i]}hasEdge(t,r,n){var i=arguments.length===1?ae(this._isDirected,arguments[0]):G(this._isDirected,t,r,n);return Object.prototype.hasOwnProperty.call(this._edgeLabels,i)}removeEdge(t,r,n){var i=arguments.length===1?ae(this._isDirected,arguments[0]):G(this._isDirected,t,r,n),s=this._edgeObjs[i];return s&&(t=s.v,r=s.w,delete this._edgeLabels[i],delete this._edgeObjs[i],Ye(this._preds[r],t),Ye(this._sucs[t],r),delete this._in[r][i],delete this._out[t][i],this._edgeCount--),this}inEdges(t,r){var n=this._in[t];if(n){var i=se(n);return r?Y(i,function(s){return s.v===r}):i}}outEdges(t,r){var n=this._out[t];if(n){var i=se(n);return r?Y(i,function(s){return s.w===r}):i}}nodeEdges(t,r){var n=this.inEdges(t,r);if(n)return n.concat(this.outEdges(t,r))}}gt.prototype._nodeCount=0;gt.prototype._edgeCount=0;function Xe(e,t){e[t]?e[t]++:e[t]=1}function Ye(e,t){--e[t]||delete e[t]}function G(e,t,r,n){var i=""+t,s=""+r;if(!e&&i>s){var a=i;i=s,s=a}return i+qe+s+qe+(R(n)?rs:n)}function ns(e,t,r,n){var i=""+t,s=""+r;if(!e&&i>s){var a=i;i=s,s=a}var o={v:i,w:s};return n&&(o.name=n),o}function ae(e,t){return G(e,t.v,t.w,t.name)}export{Y as $,he as A,Ve as B,ir as C,jn as D,Zt as E,nr as F,gt as G,M as H,de as I,zi as J,V as K,Z as L,Fi as M,Jt as N,Hi as O,Gi as P,Ci as Q,J as R,y as S,st as T,Ge as U,te as V,at as W,ji as X,$n as Y,S as Z,F as _,ce as a,se as a0,Ji as a1,et as b,Q as c,Ae as d,ke as e,Br as f,zn as g,ot as h,R as i,Hn as j,b as k,j as l,O as m,Gr as n,Kr as o,Ce as p,W as q,w as r,Fn as s,m as t,Wt as u,g as v,Le as w,ye as x,dt as y,Je as z};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/angular-html-BpR8Pn47.js","assets/html-GMplVEZG.js","assets/javascript-wDzz0qaB.js","assets/css-DPfMkruS.js","assets/cpp-B-lmv-kZ.js","assets/regexp-CDVJQ6XC.js","assets/c-BIGW1oBm.js","assets/sql-BLtJtn59.js","assets/elixir-CDX3lj18.js","assets/erlang-DsQrWhSR.js","assets/markdown-Cvjx9yec.js","assets/graphql-ChdNCCLP.js","assets/typescript-BPQ3VLAy.js","assets/jsx-g9-lgVsj.js","assets/tsx-COt5Ahok.js","assets/latex-CR2LgHuU.js","assets/r-Dspwwk_N.js","assets/lua-BaeVxFsk.js","assets/nginx-BpAMiNFr.js","assets/perl-C0TMdlhV.js","assets/xml-sdJ4AIDG.js","assets/java-CylS5w8V.js","assets/php-Dhbhpdrm.js","assets/json-Cp-IABpG.js","assets/ruby-BymL1q8G.js","assets/shellscript-Yzrsuije.js","assets/yaml-Buea-lGh.js","assets/scss-OYdSNvt2.js","assets/svelte-DZMnMd3x.js","assets/vue-DVfSmUF7.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
var Vc=Object.defineProperty;var Gc=Object.getPrototypeOf;var Wc=Reflect.get;var ro=t=>{throw TypeError(t)};var jc=(t,e,n)=>e in t?Vc(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var g=(t,e,n)=>jc(t,typeof e!="symbol"?e+"":e,n),lr=(t,e,n)=>e.has(t)||ro("Cannot "+n);var ge=(t,e,n)=>(lr(t,e,"read from private field"),n?n.call(t):e.get(t)),kt=(t,e,n)=>e.has(t)?ro("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),ze=(t,e,n,i)=>(lr(t,e,"write to private field"),i?i.call(t,n):e.set(t,n),n),dr=(t,e,n)=>(lr(t,e,"access private method"),n);var so=(t,e,n)=>Wc(Gc(t),n,e);import{_ as L}from"./index-DVjYS93F.js";import"./vendor-vue-CncuOShJ.js";const al="diffs-container",qc=(()=>{try{return!1}catch{return!1}})(),Kc=/(?=^From [a-f0-9]+ .+$)/m,ll=/(?=^diff --git)/gm,cS=/(?=^---\s+\S)/gm,uS=/(?=^@@ )/gm,Xc=/^@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@(?: (.*))?/m,Yc=new RegExp("(?<=\\n)"),Qc=/^(---|\+\+\+)\s+([^\t\r\n]+)/,Zc=/^index ([0-9a-f]+)\.\.([0-9a-f]+)(?: (\d+))?$/i,hS=/^<{7,}(?:\s.*)?$/,fS=/^\|{7,}(?:\s.*)?$/,pS=/^={7,}$/,gS=/^>{7,}(?:\s.*)?$/,ws="header-prefix",xs="header-filename-suffix",ks="header-metadata",Ls="header-custom",j={dark:"pierre-dark",light:"pierre-light"},dl="data-theme-css",cl="data-unsafe-css",Jc="data-core-css",eu="data-diffs-scrollbar-measure",tu="data-diffs-code-view-header",nu="data-diffs-code-view-footer",ul="--diffs-scrollbar-gutter-measured",mS=1,iu=1e5,Es={hunkLineCount:50,lineHeight:20,diffHeaderHeight:44,spacing:8},mn={...Es,hunkLineCount:1},ru={paddingTop:8,paddingBottom:8,gap:8},su={omega:.015,positionEpsilon:.5,velocityEpsilon:.05},ou=Object.freeze({fromStart:0,fromEnd:0}),Jt={startingLine:0,totalLines:1/0,bufferBefore:0,bufferAfter:0},hl={startingLine:0,totalLines:0,bufferBefore:0,bufferAfter:0},wt=new Map,cr=new Map,Gr=new Map,Ri=new Set;function An(t){for(const e of Array.isArray(t)?t:[t])if(!(e==="text"||e==="ansi")&&!Ri.has(e))return!1;return!0}function oo(t,e){t=Array.isArray(t)?t:[t];for(const n of t){if(Ri.has(n.name))continue;let i=wt.get(n.name);i==null&&(i=n,wt.set(n.name,i));const r=i.data.find(s=>{var o;return s.name===i.name||((o=s.aliases)==null?void 0:o.includes(i.name))===!0});if(r==null)throw new Error(`attachResolvedLanguages: No returned grammar declares "${i.name}" as its name or an alias.`);e.loadLanguageSync(i.data);try{e.getLanguage(i.name)}catch{throw new Error(`attachResolvedLanguages: "${r.name}" is already loaded without alias "${i.name}". Load the alias first or give the grammar a unique name.`)}Ri.add(i.name)}}function au(){wt.clear(),Ri.clear()}function fl(){return typeof WorkerGlobalScope<"u"&&typeof self<"u"&&self instanceof WorkerGlobalScope}let J=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function lu(t){return Rs(t)}function Rs(t){return Array.isArray(t)?du(t):t instanceof RegExp?t:typeof t=="object"?cu(t):t}function du(t){let e=[];for(let n=0,i=t.length;n<i;n++)e[n]=Rs(t[n]);return e}function cu(t){let e={};for(let n in t)e[n]=Rs(t[n]);return e}function pl(t,...e){return e.forEach(n=>{for(let i in n)t[i]=n[i]}),t}function gl(t){const e=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return e===0?t:~e===t.length-1?gl(t.substring(0,t.length-1)):t.substr(~e+1)}var ur=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,Kn=class{static hasCaptures(t){return t===null?!1:(ur.lastIndex=0,ur.test(t))}static replaceCaptures(t,e,n){return t.replace(ur,(i,r,s,o)=>{let l=n[parseInt(r||s,10)];if(l){let a=e.substring(l.start,l.end);for(;a[0]===".";)a=a.substring(1);switch(o){case"downcase":return a.toLowerCase();case"upcase":return a.toUpperCase();default:return a}}else return i})}};function ml(t,e){return t<e?-1:t>e?1:0}function yl(t,e){if(t===null&&e===null)return 0;if(!t)return-1;if(!e)return 1;let n=t.length,i=e.length;if(n===i){for(let r=0;r<n;r++){let s=ml(t[r],e[r]);if(s!==0)return s}return 0}return n-i}function ao(t){return!!(/^#[0-9a-f]{6}$/i.test(t)||/^#[0-9a-f]{8}$/i.test(t)||/^#[0-9a-f]{3}$/i.test(t)||/^#[0-9a-f]{4}$/i.test(t))}function vl(t){return t.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var Cl=class{constructor(t){g(this,"cache",new Map);this.fn=t}get(t){if(this.cache.has(t))return this.cache.get(t);const e=this.fn(t);return this.cache.set(t,e),e}},_i=class{constructor(t,e,n){g(this,"_cachedMatchRoot",new Cl(t=>this._root.match(t)));this._colorMap=t,this._defaults=e,this._root=n}static createFromRawTheme(t,e){return this.createFromParsedTheme(fu(t),e)}static createFromParsedTheme(t,e){return gu(t,e)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(t){if(t===null)return this._defaults;const e=t.scopeName,i=this._cachedMatchRoot.get(e).find(r=>uu(t.parent,r.parentScopes));return i?new Sl(i.fontStyle,i.foreground,i.background):null}},hr=class vi{constructor(e,n){this.parent=e,this.scopeName=n}static push(e,n){for(const i of n)e=new vi(e,i);return e}static from(...e){let n=null;for(let i=0;i<e.length;i++)n=new vi(n,e[i]);return n}push(e){return new vi(this,e)}getSegments(){let e=this;const n=[];for(;e;)n.push(e.scopeName),e=e.parent;return n.reverse(),n}toString(){return this.getSegments().join(" ")}extends(e){return this===e?!0:this.parent===null?!1:this.parent.extends(e)}getExtensionIfDefined(e){const n=[];let i=this;for(;i&&i!==e;)n.push(i.scopeName),i=i.parent;return i===e?n.reverse():void 0}};function uu(t,e){if(e.length===0)return!0;for(let n=0;n<e.length;n++){let i=e[n],r=!1;if(i===">"){if(n===e.length-1)return!1;i=e[++n],r=!0}for(;t&&!hu(t.scopeName,i);){if(r)return!1;t=t.parent}if(!t)return!1;t=t.parent}return!0}function hu(t,e){return e===t||t.startsWith(e)&&t[e.length]==="."}var Sl=class{constructor(t,e,n){this.fontStyle=t,this.foregroundId=e,this.backgroundId=n}};function fu(t){if(!t)return[];if(!t.settings||!Array.isArray(t.settings))return[];let e=t.settings,n=[],i=0;for(let r=0,s=e.length;r<s;r++){let o=e[r];if(!o.settings)continue;let l;if(typeof o.scope=="string"){let u=o.scope;u=u.replace(/^[,]+/,""),u=u.replace(/[,]+$/,""),l=u.split(",")}else Array.isArray(o.scope)?l=o.scope:l=[""];let a=-1;if(typeof o.settings.fontStyle=="string"){a=0;let u=o.settings.fontStyle.split(" ");for(let h=0,f=u.length;h<f;h++)switch(u[h]){case"italic":a=a|1;break;case"bold":a=a|2;break;case"underline":a=a|4;break;case"strikethrough":a=a|8;break}}let d=null;typeof o.settings.foreground=="string"&&ao(o.settings.foreground)&&(d=o.settings.foreground);let c=null;typeof o.settings.background=="string"&&ao(o.settings.background)&&(c=o.settings.background);for(let u=0,h=l.length;u<h;u++){let p=l[u].trim().split(" "),y=p[p.length-1],v=null;p.length>1&&(v=p.slice(0,p.length-1),v.reverse()),n[i++]=new pu(y,v,r,a,d,c)}}return n}var pu=class{constructor(t,e,n,i,r,s){this.scope=t,this.parentScopes=e,this.index=n,this.fontStyle=i,this.foreground=r,this.background=s}},fe=(t=>(t[t.NotSet=-1]="NotSet",t[t.None=0]="None",t[t.Italic=1]="Italic",t[t.Bold=2]="Bold",t[t.Underline=4]="Underline",t[t.Strikethrough=8]="Strikethrough",t))(fe||{});function gu(t,e){t.sort((a,d)=>{let c=ml(a.scope,d.scope);return c!==0||(c=yl(a.parentScopes,d.parentScopes),c!==0)?c:a.index-d.index});let n=0,i="#000000",r="#ffffff";for(;t.length>=1&&t[0].scope==="";){let a=t.shift();a.fontStyle!==-1&&(n=a.fontStyle),a.foreground!==null&&(i=a.foreground),a.background!==null&&(r=a.background)}let s=new mu(e),o=new Sl(n,s.getId(i),s.getId(r)),l=new vu(new Wr(0,null,-1,0,0),[]);for(let a=0,d=t.length;a<d;a++){let c=t[a];l.insert(0,c.scope,c.parentScopes,c.fontStyle,s.getId(c.foreground),s.getId(c.background))}return new _i(s,o,l)}var mu=class{constructor(t){g(this,"_isFrozen");g(this,"_lastColorId");g(this,"_id2color");g(this,"_color2id");if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(t)){this._isFrozen=!0;for(let e=0,n=t.length;e<n;e++)this._color2id[t[e]]=e,this._id2color[e]=t[e]}else this._isFrozen=!1}getId(t){if(t===null)return 0;t=t.toUpperCase();let e=this._color2id[t];if(e)return e;if(this._isFrozen)throw new Error(`Missing color in color map - ${t}`);return e=++this._lastColorId,this._color2id[t]=e,this._id2color[e]=t,e}getColorMap(){return this._id2color.slice(0)}},yu=Object.freeze([]),Wr=class bl{constructor(e,n,i,r,s){g(this,"scopeDepth");g(this,"parentScopes");g(this,"fontStyle");g(this,"foreground");g(this,"background");this.scopeDepth=e,this.parentScopes=n||yu,this.fontStyle=i,this.foreground=r,this.background=s}clone(){return new bl(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let n=[];for(let i=0,r=e.length;i<r;i++)n[i]=e[i].clone();return n}acceptOverwrite(e,n,i,r){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,n!==-1&&(this.fontStyle=n),i!==0&&(this.foreground=i),r!==0&&(this.background=r)}},vu=class jr{constructor(e,n=[],i={}){g(this,"_rulesWithParentScopes");this._mainRule=e,this._children=i,this._rulesWithParentScopes=n}static _cmpBySpecificity(e,n){if(e.scopeDepth!==n.scopeDepth)return n.scopeDepth-e.scopeDepth;let i=0,r=0;for(;e.parentScopes[i]===">"&&i++,n.parentScopes[r]===">"&&r++,!(i>=e.parentScopes.length||r>=n.parentScopes.length);){const s=n.parentScopes[r].length-e.parentScopes[i].length;if(s!==0)return s;i++,r++}return n.parentScopes.length-e.parentScopes.length}match(e){if(e!==""){let i=e.indexOf("."),r,s;if(i===-1?(r=e,s=""):(r=e.substring(0,i),s=e.substring(i+1)),this._children.hasOwnProperty(r))return this._children[r].match(s)}const n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(jr._cmpBySpecificity),n}insert(e,n,i,r,s,o){if(n===""){this._doInsertHere(e,i,r,s,o);return}let l=n.indexOf("."),a,d;l===-1?(a=n,d=""):(a=n.substring(0,l),d=n.substring(l+1));let c;this._children.hasOwnProperty(a)?c=this._children[a]:(c=new jr(this._mainRule.clone(),Wr.cloneArr(this._rulesWithParentScopes)),this._children[a]=c),c.insert(e+1,d,i,r,s,o)}_doInsertHere(e,n,i,r,s){if(n===null){this._mainRule.acceptOverwrite(e,i,r,s);return}for(let o=0,l=this._rulesWithParentScopes.length;o<l;o++){let a=this._rulesWithParentScopes[o];if(yl(a.parentScopes,n)===0){a.acceptOverwrite(e,i,r,s);return}}i===-1&&(i=this._mainRule.fontStyle),r===0&&(r=this._mainRule.foreground),s===0&&(s=this._mainRule.background),this._rulesWithParentScopes.push(new Wr(e,n,i,r,s))}},en=class De{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(e){const n=De.getLanguageId(e),i=De.getTokenType(e),r=De.getFontStyle(e),s=De.getForeground(e),o=De.getBackground(e);console.log({languageId:n,tokenType:i,fontStyle:r,foreground:s,background:o})}static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return(e&1024)!==0}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(e,n,i,r,s,o,l){let a=De.getLanguageId(e),d=De.getTokenType(e),c=De.containsBalancedBrackets(e)?1:0,u=De.getFontStyle(e),h=De.getForeground(e),f=De.getBackground(e);return n!==0&&(a=n),i!==8&&(d=i),r!==null&&(c=r?1:0),s!==-1&&(u=s),o!==0&&(h=o),l!==0&&(f=l),(a<<0|d<<8|c<<10|u<<11|h<<15|f<<24)>>>0}};function Ti(t,e){const n=[],i=Cu(t);let r=i.next();for(;r!==null;){let a=0;if(r.length===2&&r.charAt(1)===":"){switch(r.charAt(0)){case"R":a=1;break;case"L":a=-1;break;default:console.log(`Unknown priority ${r} in scope selector`)}r=i.next()}let d=o();if(n.push({matcher:d,priority:a}),r!==",")break;r=i.next()}return n;function s(){if(r==="-"){r=i.next();const a=s();return d=>!!a&&!a(d)}if(r==="("){r=i.next();const a=l();return r===")"&&(r=i.next()),a}if(lo(r)){const a=[];do a.push(r),r=i.next();while(lo(r));return d=>e(a,d)}return null}function o(){const a=[];let d=s();for(;d;)a.push(d),d=s();return c=>a.every(u=>u(c))}function l(){const a=[];let d=o();for(;d&&(a.push(d),r==="|"||r===",");){do r=i.next();while(r==="|"||r===",");d=o()}return c=>a.some(u=>u(c))}}function lo(t){return!!t&&!!t.match(/[\w\.:]+/)}function Cu(t){let e=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=e.exec(t);return{next:()=>{if(!n)return null;const i=n[0];return n=e.exec(t),i}}}function wl(t){typeof t.dispose=="function"&&t.dispose()}var Pn=class{constructor(t){this.scopeName=t}toKey(){return this.scopeName}},Su=class{constructor(t,e){this.scopeName=t,this.ruleName=e}toKey(){return`${this.scopeName}#${this.ruleName}`}},bu=class{constructor(){g(this,"_references",[]);g(this,"_seenReferenceKeys",new Set);g(this,"visitedRule",new Set)}get references(){return this._references}add(t){const e=t.toKey();this._seenReferenceKeys.has(e)||(this._seenReferenceKeys.add(e),this._references.push(t))}},wu=class{constructor(t,e){g(this,"seenFullScopeRequests",new Set);g(this,"seenPartialScopeRequests",new Set);g(this,"Q");this.repo=t,this.initialScopeName=e,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Pn(this.initialScopeName)]}processQueue(){const t=this.Q;this.Q=[];const e=new bu;for(const n of t)xu(n,this.initialScopeName,this.repo,e);for(const n of e.references)if(n instanceof Pn){if(this.seenFullScopeRequests.has(n.scopeName))continue;this.seenFullScopeRequests.add(n.scopeName),this.Q.push(n)}else{if(this.seenFullScopeRequests.has(n.scopeName)||this.seenPartialScopeRequests.has(n.toKey()))continue;this.seenPartialScopeRequests.add(n.toKey()),this.Q.push(n)}}};function xu(t,e,n,i){const r=n.lookup(t.scopeName);if(!r){if(t.scopeName===e)throw new Error(`No grammar provided for <${e}>`);return}const s=n.lookup(e);t instanceof Pn?Ci({baseGrammar:s,selfGrammar:r},i):qr(t.ruleName,{baseGrammar:s,selfGrammar:r,repository:r.repository},i);const o=n.injections(t.scopeName);if(o)for(const l of o)i.add(new Pn(l))}function qr(t,e,n){if(e.repository&&e.repository[t]){const i=e.repository[t];Ii([i],e,n)}}function Ci(t,e){t.selfGrammar.patterns&&Array.isArray(t.selfGrammar.patterns)&&Ii(t.selfGrammar.patterns,{...t,repository:t.selfGrammar.repository},e),t.selfGrammar.injections&&Ii(Object.values(t.selfGrammar.injections),{...t,repository:t.selfGrammar.repository},e)}function Ii(t,e,n){for(const i of t){if(n.visitedRule.has(i))continue;n.visitedRule.add(i);const r=i.repository?pl({},e.repository,i.repository):e.repository;Array.isArray(i.patterns)&&Ii(i.patterns,{...e,repository:r},n);const s=i.include;if(!s)continue;const o=xl(s);switch(o.kind){case 0:Ci({...e,selfGrammar:e.baseGrammar},n);break;case 1:Ci(e,n);break;case 2:qr(o.ruleName,{...e,repository:r},n);break;case 3:case 4:const l=o.scopeName===e.selfGrammar.scopeName?e.selfGrammar:o.scopeName===e.baseGrammar.scopeName?e.baseGrammar:void 0;if(l){const a={baseGrammar:e.baseGrammar,selfGrammar:l,repository:r};o.kind===4?qr(o.ruleName,a,n):Ci(a,n)}else o.kind===4?n.add(new Su(o.scopeName,o.ruleName)):n.add(new Pn(o.scopeName));break}}}var ku=class{constructor(){g(this,"kind",0)}},Lu=class{constructor(){g(this,"kind",1)}},Eu=class{constructor(t){g(this,"kind",2);this.ruleName=t}},Ru=class{constructor(t){g(this,"kind",3);this.scopeName=t}},_u=class{constructor(t,e){g(this,"kind",4);this.scopeName=t,this.ruleName=e}};function xl(t){if(t==="$base")return new ku;if(t==="$self")return new Lu;const e=t.indexOf("#");if(e===-1)return new Ru(t);if(e===0)return new Eu(t.substring(1));{const n=t.substring(0,e),i=t.substring(e+1);return new _u(n,i)}}var Tu=/\\(\d+)/,co=/\\(\d+)/g,Iu=-1,kl=-2;var Wn=class{constructor(t,e,n,i){g(this,"$location");g(this,"id");g(this,"_nameIsCapturing");g(this,"_name");g(this,"_contentNameIsCapturing");g(this,"_contentName");this.$location=t,this.id=e,this._name=n||null,this._nameIsCapturing=Kn.hasCaptures(this._name),this._contentName=i||null,this._contentNameIsCapturing=Kn.hasCaptures(this._contentName)}get debugName(){const t=this.$location?`${gl(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${t}`}getName(t,e){return!this._nameIsCapturing||this._name===null||t===null||e===null?this._name:Kn.replaceCaptures(this._name,t,e)}getContentName(t,e){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:Kn.replaceCaptures(this._contentName,t,e)}},Au=class extends Wn{constructor(e,n,i,r,s){super(e,n,i,r);g(this,"retokenizeCapturedWithRuleId");this.retokenizeCapturedWithRuleId=s}dispose(){}collectPatterns(e,n){throw new Error("Not supported!")}compile(e,n){throw new Error("Not supported!")}compileAG(e,n,i,r){throw new Error("Not supported!")}},Pu=class extends Wn{constructor(e,n,i,r,s){super(e,n,i,null);g(this,"_match");g(this,"captures");g(this,"_cachedCompiledPatterns");this._match=new Mn(r,this.id),this.captures=s,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,n){n.push(this._match)}compile(e,n){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,n,i,r){return this._getCachedCompiledPatterns(e).compileAG(e,i,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Dn,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},uo=class extends Wn{constructor(e,n,i,r,s){super(e,n,i,r);g(this,"hasMissingPatterns");g(this,"patterns");g(this,"_cachedCompiledPatterns");this.patterns=s.patterns,this.hasMissingPatterns=s.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,n){for(const i of this.patterns)e.getRule(i).collectPatterns(e,n)}compile(e,n){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,n,i,r){return this._getCachedCompiledPatterns(e).compileAG(e,i,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Dn,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Kr=class extends Wn{constructor(e,n,i,r,s,o,l,a,d,c){super(e,n,i,r);g(this,"_begin");g(this,"beginCaptures");g(this,"_end");g(this,"endHasBackReferences");g(this,"endCaptures");g(this,"applyEndPatternLast");g(this,"hasMissingPatterns");g(this,"patterns");g(this,"_cachedCompiledPatterns");this._begin=new Mn(s,this.id),this.beginCaptures=o,this._end=new Mn(l||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=a,this.applyEndPatternLast=d||!1,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,n){return this._end.resolveBackReferences(e,n)}collectPatterns(e,n){n.push(this._begin)}compile(e,n){return this._getCachedCompiledPatterns(e,n).compile(e)}compileAG(e,n,i,r){return this._getCachedCompiledPatterns(e,n).compileAG(e,i,r)}_getCachedCompiledPatterns(e,n){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Dn;for(const i of this.patterns)e.getRule(i).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,n):this._cachedCompiledPatterns.setSource(0,n)),this._cachedCompiledPatterns}},Ai=class extends Wn{constructor(e,n,i,r,s,o,l,a,d){super(e,n,i,r);g(this,"_begin");g(this,"beginCaptures");g(this,"whileCaptures");g(this,"_while");g(this,"whileHasBackReferences");g(this,"hasMissingPatterns");g(this,"patterns");g(this,"_cachedCompiledPatterns");g(this,"_cachedCompiledWhilePatterns");this._begin=new Mn(s,this.id),this.beginCaptures=o,this.whileCaptures=a,this._while=new Mn(l,kl),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=d.patterns,this.hasMissingPatterns=d.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,n){return this._while.resolveBackReferences(e,n)}collectPatterns(e,n){n.push(this._begin)}compile(e,n){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,n,i,r){return this._getCachedCompiledPatterns(e).compileAG(e,i,r)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Dn;for(const n of this.patterns)e.getRule(n).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,n){return this._getCachedCompiledWhilePatterns(e,n).compile(e)}compileWhileAG(e,n,i,r){return this._getCachedCompiledWhilePatterns(e,n).compileAG(e,i,r)}_getCachedCompiledWhilePatterns(e,n){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new Dn,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,n||""),this._cachedCompiledWhilePatterns}},Ll=class ce{static createCaptureRule(e,n,i,r,s){return e.registerRule(o=>new Au(n,o,i,r,s))}static getCompiledRuleId(e,n,i){return e.id||n.registerRule(r=>{if(e.id=r,e.match)return new Pu(e.$vscodeTextmateLocation,e.id,e.name,e.match,ce._compileCaptures(e.captures,n,i));if(typeof e.begin>"u"){e.repository&&(i=pl({},i,e.repository));let s=e.patterns;return typeof s>"u"&&e.include&&(s=[{include:e.include}]),new uo(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,ce._compilePatterns(s,n,i))}return e.while?new Ai(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,ce._compileCaptures(e.beginCaptures||e.captures,n,i),e.while,ce._compileCaptures(e.whileCaptures||e.captures,n,i),ce._compilePatterns(e.patterns,n,i)):new Kr(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,ce._compileCaptures(e.beginCaptures||e.captures,n,i),e.end,ce._compileCaptures(e.endCaptures||e.captures,n,i),e.applyEndPatternLast,ce._compilePatterns(e.patterns,n,i))}),e.id}static _compileCaptures(e,n,i){let r=[];if(e){let s=0;for(const o in e){if(o==="$vscodeTextmateLocation")continue;const l=parseInt(o,10);l>s&&(s=l)}for(let o=0;o<=s;o++)r[o]=null;for(const o in e){if(o==="$vscodeTextmateLocation")continue;const l=parseInt(o,10);let a=0;e[o].patterns&&(a=ce.getCompiledRuleId(e[o],n,i)),r[l]=ce.createCaptureRule(n,e[o].$vscodeTextmateLocation,e[o].name,e[o].contentName,a)}}return r}static _compilePatterns(e,n,i){let r=[];if(e)for(let s=0,o=e.length;s<o;s++){const l=e[s];let a=-1;if(l.include){const d=xl(l.include);switch(d.kind){case 0:case 1:a=ce.getCompiledRuleId(i[l.include],n,i);break;case 2:let c=i[d.ruleName];c&&(a=ce.getCompiledRuleId(c,n,i));break;case 3:case 4:const u=d.scopeName,h=d.kind===4?d.ruleName:null,f=n.getExternalGrammar(u,i);if(f)if(h){let p=f.repository[h];p&&(a=ce.getCompiledRuleId(p,n,f.repository))}else a=ce.getCompiledRuleId(f.repository.$self,n,f.repository);break}}else a=ce.getCompiledRuleId(l,n,i);if(a!==-1){const d=n.getRule(a);let c=!1;if((d instanceof uo||d instanceof Kr||d instanceof Ai)&&d.hasMissingPatterns&&d.patterns.length===0&&(c=!0),c)continue;r.push(a)}}return{patterns:r,hasMissingPatterns:(e?e.length:0)!==r.length}}},Mn=class El{constructor(e,n){g(this,"source");g(this,"ruleId");g(this,"hasAnchor");g(this,"hasBackReferences");g(this,"_anchorCache");if(e&&typeof e=="string"){const i=e.length;let r=0,s=[],o=!1;for(let l=0;l<i;l++)if(e.charAt(l)==="\\"&&l+1<i){const d=e.charAt(l+1);d==="z"?(s.push(e.substring(r,l)),s.push("$(?!\\n)(?<!\\n)"),r=l+2):(d==="A"||d==="G")&&(o=!0),l++}this.hasAnchor=o,r===0?this.source=e:(s.push(e.substring(r,i)),this.source=s.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=n,typeof this.source=="string"?this.hasBackReferences=Tu.test(this.source):this.hasBackReferences=!1}clone(){return new El(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,n){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let i=n.map(r=>e.substring(r.start,r.end));return co.lastIndex=0,this.source.replace(co,(r,s)=>vl(i[parseInt(s,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let e=[],n=[],i=[],r=[],s,o,l,a;for(s=0,o=this.source.length;s<o;s++)l=this.source.charAt(s),e[s]=l,n[s]=l,i[s]=l,r[s]=l,l==="\\"&&s+1<o&&(a=this.source.charAt(s+1),a==="A"?(e[s+1]="",n[s+1]="",i[s+1]="A",r[s+1]="A"):a==="G"?(e[s+1]="",n[s+1]="G",i[s+1]="",r[s+1]="G"):(e[s+1]=a,n[s+1]=a,i[s+1]=a,r[s+1]=a),s++);return{A0_G0:e.join(""),A0_G1:n.join(""),A1_G0:i.join(""),A1_G1:r.join("")}}resolveAnchors(e,n){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:e?n?this._anchorCache.A1_G1:this._anchorCache.A1_G0:n?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},Dn=class{constructor(){g(this,"_items");g(this,"_hasAnchors");g(this,"_cached");g(this,"_anchorCache");this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(t){this._items.push(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}unshift(t){this._items.unshift(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}length(){return this._items.length}setSource(t,e){this._items[t].source!==e&&(this._disposeCaches(),this._items[t].setSource(e))}compile(t){if(!this._cached){let e=this._items.map(n=>n.source);this._cached=new ho(t,e,this._items.map(n=>n.ruleId))}return this._cached}compileAG(t,e,n){return this._hasAnchors?e?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(t,e,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(t,e,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(t,e,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(t,e,n)),this._anchorCache.A0_G0):this.compile(t)}_resolveAnchors(t,e,n){let i=this._items.map(r=>r.resolveAnchors(e,n));return new ho(t,i,this._items.map(r=>r.ruleId))}},ho=class{constructor(t,e,n){g(this,"scanner");this.regExps=e,this.rules=n,this.scanner=t.createOnigScanner(e)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const t=[];for(let e=0,n=this.rules.length;e<n;e++)t.push(" - "+this.rules[e]+": "+this.regExps[e]);return t.join(`
|
|
2
|
+
var Vc=Object.defineProperty;var Gc=Object.getPrototypeOf;var Wc=Reflect.get;var ro=t=>{throw TypeError(t)};var jc=(t,e,n)=>e in t?Vc(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var g=(t,e,n)=>jc(t,typeof e!="symbol"?e+"":e,n),lr=(t,e,n)=>e.has(t)||ro("Cannot "+n);var ge=(t,e,n)=>(lr(t,e,"read from private field"),n?n.call(t):e.get(t)),kt=(t,e,n)=>e.has(t)?ro("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),ze=(t,e,n,i)=>(lr(t,e,"write to private field"),i?i.call(t,n):e.set(t,n),n),dr=(t,e,n)=>(lr(t,e,"access private method"),n);var so=(t,e,n)=>Wc(Gc(t),n,e);import{_ as L}from"./index-DYOKXSJi.js";import"./vendor-vue-Cu2DcYCH.js";const al="diffs-container",qc=(()=>{try{return!1}catch{return!1}})(),Kc=/(?=^From [a-f0-9]+ .+$)/m,ll=/(?=^diff --git)/gm,cS=/(?=^---\s+\S)/gm,uS=/(?=^@@ )/gm,Xc=/^@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@(?: (.*))?/m,Yc=new RegExp("(?<=\\n)"),Qc=/^(---|\+\+\+)\s+([^\t\r\n]+)/,Zc=/^index ([0-9a-f]+)\.\.([0-9a-f]+)(?: (\d+))?$/i,hS=/^<{7,}(?:\s.*)?$/,fS=/^\|{7,}(?:\s.*)?$/,pS=/^={7,}$/,gS=/^>{7,}(?:\s.*)?$/,ws="header-prefix",xs="header-filename-suffix",ks="header-metadata",Ls="header-custom",j={dark:"pierre-dark",light:"pierre-light"},dl="data-theme-css",cl="data-unsafe-css",Jc="data-core-css",eu="data-diffs-scrollbar-measure",tu="data-diffs-code-view-header",nu="data-diffs-code-view-footer",ul="--diffs-scrollbar-gutter-measured",mS=1,iu=1e5,Es={hunkLineCount:50,lineHeight:20,diffHeaderHeight:44,spacing:8},mn={...Es,hunkLineCount:1},ru={paddingTop:8,paddingBottom:8,gap:8},su={omega:.015,positionEpsilon:.5,velocityEpsilon:.05},ou=Object.freeze({fromStart:0,fromEnd:0}),Jt={startingLine:0,totalLines:1/0,bufferBefore:0,bufferAfter:0},hl={startingLine:0,totalLines:0,bufferBefore:0,bufferAfter:0},wt=new Map,cr=new Map,Gr=new Map,Ri=new Set;function An(t){for(const e of Array.isArray(t)?t:[t])if(!(e==="text"||e==="ansi")&&!Ri.has(e))return!1;return!0}function oo(t,e){t=Array.isArray(t)?t:[t];for(const n of t){if(Ri.has(n.name))continue;let i=wt.get(n.name);i==null&&(i=n,wt.set(n.name,i));const r=i.data.find(s=>{var o;return s.name===i.name||((o=s.aliases)==null?void 0:o.includes(i.name))===!0});if(r==null)throw new Error(`attachResolvedLanguages: No returned grammar declares "${i.name}" as its name or an alias.`);e.loadLanguageSync(i.data);try{e.getLanguage(i.name)}catch{throw new Error(`attachResolvedLanguages: "${r.name}" is already loaded without alias "${i.name}". Load the alias first or give the grammar a unique name.`)}Ri.add(i.name)}}function au(){wt.clear(),Ri.clear()}function fl(){return typeof WorkerGlobalScope<"u"&&typeof self<"u"&&self instanceof WorkerGlobalScope}let J=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function lu(t){return Rs(t)}function Rs(t){return Array.isArray(t)?du(t):t instanceof RegExp?t:typeof t=="object"?cu(t):t}function du(t){let e=[];for(let n=0,i=t.length;n<i;n++)e[n]=Rs(t[n]);return e}function cu(t){let e={};for(let n in t)e[n]=Rs(t[n]);return e}function pl(t,...e){return e.forEach(n=>{for(let i in n)t[i]=n[i]}),t}function gl(t){const e=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return e===0?t:~e===t.length-1?gl(t.substring(0,t.length-1)):t.substr(~e+1)}var ur=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,Kn=class{static hasCaptures(t){return t===null?!1:(ur.lastIndex=0,ur.test(t))}static replaceCaptures(t,e,n){return t.replace(ur,(i,r,s,o)=>{let l=n[parseInt(r||s,10)];if(l){let a=e.substring(l.start,l.end);for(;a[0]===".";)a=a.substring(1);switch(o){case"downcase":return a.toLowerCase();case"upcase":return a.toUpperCase();default:return a}}else return i})}};function ml(t,e){return t<e?-1:t>e?1:0}function yl(t,e){if(t===null&&e===null)return 0;if(!t)return-1;if(!e)return 1;let n=t.length,i=e.length;if(n===i){for(let r=0;r<n;r++){let s=ml(t[r],e[r]);if(s!==0)return s}return 0}return n-i}function ao(t){return!!(/^#[0-9a-f]{6}$/i.test(t)||/^#[0-9a-f]{8}$/i.test(t)||/^#[0-9a-f]{3}$/i.test(t)||/^#[0-9a-f]{4}$/i.test(t))}function vl(t){return t.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var Cl=class{constructor(t){g(this,"cache",new Map);this.fn=t}get(t){if(this.cache.has(t))return this.cache.get(t);const e=this.fn(t);return this.cache.set(t,e),e}},_i=class{constructor(t,e,n){g(this,"_cachedMatchRoot",new Cl(t=>this._root.match(t)));this._colorMap=t,this._defaults=e,this._root=n}static createFromRawTheme(t,e){return this.createFromParsedTheme(fu(t),e)}static createFromParsedTheme(t,e){return gu(t,e)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(t){if(t===null)return this._defaults;const e=t.scopeName,i=this._cachedMatchRoot.get(e).find(r=>uu(t.parent,r.parentScopes));return i?new Sl(i.fontStyle,i.foreground,i.background):null}},hr=class vi{constructor(e,n){this.parent=e,this.scopeName=n}static push(e,n){for(const i of n)e=new vi(e,i);return e}static from(...e){let n=null;for(let i=0;i<e.length;i++)n=new vi(n,e[i]);return n}push(e){return new vi(this,e)}getSegments(){let e=this;const n=[];for(;e;)n.push(e.scopeName),e=e.parent;return n.reverse(),n}toString(){return this.getSegments().join(" ")}extends(e){return this===e?!0:this.parent===null?!1:this.parent.extends(e)}getExtensionIfDefined(e){const n=[];let i=this;for(;i&&i!==e;)n.push(i.scopeName),i=i.parent;return i===e?n.reverse():void 0}};function uu(t,e){if(e.length===0)return!0;for(let n=0;n<e.length;n++){let i=e[n],r=!1;if(i===">"){if(n===e.length-1)return!1;i=e[++n],r=!0}for(;t&&!hu(t.scopeName,i);){if(r)return!1;t=t.parent}if(!t)return!1;t=t.parent}return!0}function hu(t,e){return e===t||t.startsWith(e)&&t[e.length]==="."}var Sl=class{constructor(t,e,n){this.fontStyle=t,this.foregroundId=e,this.backgroundId=n}};function fu(t){if(!t)return[];if(!t.settings||!Array.isArray(t.settings))return[];let e=t.settings,n=[],i=0;for(let r=0,s=e.length;r<s;r++){let o=e[r];if(!o.settings)continue;let l;if(typeof o.scope=="string"){let u=o.scope;u=u.replace(/^[,]+/,""),u=u.replace(/[,]+$/,""),l=u.split(",")}else Array.isArray(o.scope)?l=o.scope:l=[""];let a=-1;if(typeof o.settings.fontStyle=="string"){a=0;let u=o.settings.fontStyle.split(" ");for(let h=0,f=u.length;h<f;h++)switch(u[h]){case"italic":a=a|1;break;case"bold":a=a|2;break;case"underline":a=a|4;break;case"strikethrough":a=a|8;break}}let d=null;typeof o.settings.foreground=="string"&&ao(o.settings.foreground)&&(d=o.settings.foreground);let c=null;typeof o.settings.background=="string"&&ao(o.settings.background)&&(c=o.settings.background);for(let u=0,h=l.length;u<h;u++){let p=l[u].trim().split(" "),y=p[p.length-1],v=null;p.length>1&&(v=p.slice(0,p.length-1),v.reverse()),n[i++]=new pu(y,v,r,a,d,c)}}return n}var pu=class{constructor(t,e,n,i,r,s){this.scope=t,this.parentScopes=e,this.index=n,this.fontStyle=i,this.foreground=r,this.background=s}},fe=(t=>(t[t.NotSet=-1]="NotSet",t[t.None=0]="None",t[t.Italic=1]="Italic",t[t.Bold=2]="Bold",t[t.Underline=4]="Underline",t[t.Strikethrough=8]="Strikethrough",t))(fe||{});function gu(t,e){t.sort((a,d)=>{let c=ml(a.scope,d.scope);return c!==0||(c=yl(a.parentScopes,d.parentScopes),c!==0)?c:a.index-d.index});let n=0,i="#000000",r="#ffffff";for(;t.length>=1&&t[0].scope==="";){let a=t.shift();a.fontStyle!==-1&&(n=a.fontStyle),a.foreground!==null&&(i=a.foreground),a.background!==null&&(r=a.background)}let s=new mu(e),o=new Sl(n,s.getId(i),s.getId(r)),l=new vu(new Wr(0,null,-1,0,0),[]);for(let a=0,d=t.length;a<d;a++){let c=t[a];l.insert(0,c.scope,c.parentScopes,c.fontStyle,s.getId(c.foreground),s.getId(c.background))}return new _i(s,o,l)}var mu=class{constructor(t){g(this,"_isFrozen");g(this,"_lastColorId");g(this,"_id2color");g(this,"_color2id");if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(t)){this._isFrozen=!0;for(let e=0,n=t.length;e<n;e++)this._color2id[t[e]]=e,this._id2color[e]=t[e]}else this._isFrozen=!1}getId(t){if(t===null)return 0;t=t.toUpperCase();let e=this._color2id[t];if(e)return e;if(this._isFrozen)throw new Error(`Missing color in color map - ${t}`);return e=++this._lastColorId,this._color2id[t]=e,this._id2color[e]=t,e}getColorMap(){return this._id2color.slice(0)}},yu=Object.freeze([]),Wr=class bl{constructor(e,n,i,r,s){g(this,"scopeDepth");g(this,"parentScopes");g(this,"fontStyle");g(this,"foreground");g(this,"background");this.scopeDepth=e,this.parentScopes=n||yu,this.fontStyle=i,this.foreground=r,this.background=s}clone(){return new bl(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let n=[];for(let i=0,r=e.length;i<r;i++)n[i]=e[i].clone();return n}acceptOverwrite(e,n,i,r){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,n!==-1&&(this.fontStyle=n),i!==0&&(this.foreground=i),r!==0&&(this.background=r)}},vu=class jr{constructor(e,n=[],i={}){g(this,"_rulesWithParentScopes");this._mainRule=e,this._children=i,this._rulesWithParentScopes=n}static _cmpBySpecificity(e,n){if(e.scopeDepth!==n.scopeDepth)return n.scopeDepth-e.scopeDepth;let i=0,r=0;for(;e.parentScopes[i]===">"&&i++,n.parentScopes[r]===">"&&r++,!(i>=e.parentScopes.length||r>=n.parentScopes.length);){const s=n.parentScopes[r].length-e.parentScopes[i].length;if(s!==0)return s;i++,r++}return n.parentScopes.length-e.parentScopes.length}match(e){if(e!==""){let i=e.indexOf("."),r,s;if(i===-1?(r=e,s=""):(r=e.substring(0,i),s=e.substring(i+1)),this._children.hasOwnProperty(r))return this._children[r].match(s)}const n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(jr._cmpBySpecificity),n}insert(e,n,i,r,s,o){if(n===""){this._doInsertHere(e,i,r,s,o);return}let l=n.indexOf("."),a,d;l===-1?(a=n,d=""):(a=n.substring(0,l),d=n.substring(l+1));let c;this._children.hasOwnProperty(a)?c=this._children[a]:(c=new jr(this._mainRule.clone(),Wr.cloneArr(this._rulesWithParentScopes)),this._children[a]=c),c.insert(e+1,d,i,r,s,o)}_doInsertHere(e,n,i,r,s){if(n===null){this._mainRule.acceptOverwrite(e,i,r,s);return}for(let o=0,l=this._rulesWithParentScopes.length;o<l;o++){let a=this._rulesWithParentScopes[o];if(yl(a.parentScopes,n)===0){a.acceptOverwrite(e,i,r,s);return}}i===-1&&(i=this._mainRule.fontStyle),r===0&&(r=this._mainRule.foreground),s===0&&(s=this._mainRule.background),this._rulesWithParentScopes.push(new Wr(e,n,i,r,s))}},en=class De{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(e){const n=De.getLanguageId(e),i=De.getTokenType(e),r=De.getFontStyle(e),s=De.getForeground(e),o=De.getBackground(e);console.log({languageId:n,tokenType:i,fontStyle:r,foreground:s,background:o})}static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return(e&1024)!==0}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(e,n,i,r,s,o,l){let a=De.getLanguageId(e),d=De.getTokenType(e),c=De.containsBalancedBrackets(e)?1:0,u=De.getFontStyle(e),h=De.getForeground(e),f=De.getBackground(e);return n!==0&&(a=n),i!==8&&(d=i),r!==null&&(c=r?1:0),s!==-1&&(u=s),o!==0&&(h=o),l!==0&&(f=l),(a<<0|d<<8|c<<10|u<<11|h<<15|f<<24)>>>0}};function Ti(t,e){const n=[],i=Cu(t);let r=i.next();for(;r!==null;){let a=0;if(r.length===2&&r.charAt(1)===":"){switch(r.charAt(0)){case"R":a=1;break;case"L":a=-1;break;default:console.log(`Unknown priority ${r} in scope selector`)}r=i.next()}let d=o();if(n.push({matcher:d,priority:a}),r!==",")break;r=i.next()}return n;function s(){if(r==="-"){r=i.next();const a=s();return d=>!!a&&!a(d)}if(r==="("){r=i.next();const a=l();return r===")"&&(r=i.next()),a}if(lo(r)){const a=[];do a.push(r),r=i.next();while(lo(r));return d=>e(a,d)}return null}function o(){const a=[];let d=s();for(;d;)a.push(d),d=s();return c=>a.every(u=>u(c))}function l(){const a=[];let d=o();for(;d&&(a.push(d),r==="|"||r===",");){do r=i.next();while(r==="|"||r===",");d=o()}return c=>a.some(u=>u(c))}}function lo(t){return!!t&&!!t.match(/[\w\.:]+/)}function Cu(t){let e=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=e.exec(t);return{next:()=>{if(!n)return null;const i=n[0];return n=e.exec(t),i}}}function wl(t){typeof t.dispose=="function"&&t.dispose()}var Pn=class{constructor(t){this.scopeName=t}toKey(){return this.scopeName}},Su=class{constructor(t,e){this.scopeName=t,this.ruleName=e}toKey(){return`${this.scopeName}#${this.ruleName}`}},bu=class{constructor(){g(this,"_references",[]);g(this,"_seenReferenceKeys",new Set);g(this,"visitedRule",new Set)}get references(){return this._references}add(t){const e=t.toKey();this._seenReferenceKeys.has(e)||(this._seenReferenceKeys.add(e),this._references.push(t))}},wu=class{constructor(t,e){g(this,"seenFullScopeRequests",new Set);g(this,"seenPartialScopeRequests",new Set);g(this,"Q");this.repo=t,this.initialScopeName=e,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Pn(this.initialScopeName)]}processQueue(){const t=this.Q;this.Q=[];const e=new bu;for(const n of t)xu(n,this.initialScopeName,this.repo,e);for(const n of e.references)if(n instanceof Pn){if(this.seenFullScopeRequests.has(n.scopeName))continue;this.seenFullScopeRequests.add(n.scopeName),this.Q.push(n)}else{if(this.seenFullScopeRequests.has(n.scopeName)||this.seenPartialScopeRequests.has(n.toKey()))continue;this.seenPartialScopeRequests.add(n.toKey()),this.Q.push(n)}}};function xu(t,e,n,i){const r=n.lookup(t.scopeName);if(!r){if(t.scopeName===e)throw new Error(`No grammar provided for <${e}>`);return}const s=n.lookup(e);t instanceof Pn?Ci({baseGrammar:s,selfGrammar:r},i):qr(t.ruleName,{baseGrammar:s,selfGrammar:r,repository:r.repository},i);const o=n.injections(t.scopeName);if(o)for(const l of o)i.add(new Pn(l))}function qr(t,e,n){if(e.repository&&e.repository[t]){const i=e.repository[t];Ii([i],e,n)}}function Ci(t,e){t.selfGrammar.patterns&&Array.isArray(t.selfGrammar.patterns)&&Ii(t.selfGrammar.patterns,{...t,repository:t.selfGrammar.repository},e),t.selfGrammar.injections&&Ii(Object.values(t.selfGrammar.injections),{...t,repository:t.selfGrammar.repository},e)}function Ii(t,e,n){for(const i of t){if(n.visitedRule.has(i))continue;n.visitedRule.add(i);const r=i.repository?pl({},e.repository,i.repository):e.repository;Array.isArray(i.patterns)&&Ii(i.patterns,{...e,repository:r},n);const s=i.include;if(!s)continue;const o=xl(s);switch(o.kind){case 0:Ci({...e,selfGrammar:e.baseGrammar},n);break;case 1:Ci(e,n);break;case 2:qr(o.ruleName,{...e,repository:r},n);break;case 3:case 4:const l=o.scopeName===e.selfGrammar.scopeName?e.selfGrammar:o.scopeName===e.baseGrammar.scopeName?e.baseGrammar:void 0;if(l){const a={baseGrammar:e.baseGrammar,selfGrammar:l,repository:r};o.kind===4?qr(o.ruleName,a,n):Ci(a,n)}else o.kind===4?n.add(new Su(o.scopeName,o.ruleName)):n.add(new Pn(o.scopeName));break}}}var ku=class{constructor(){g(this,"kind",0)}},Lu=class{constructor(){g(this,"kind",1)}},Eu=class{constructor(t){g(this,"kind",2);this.ruleName=t}},Ru=class{constructor(t){g(this,"kind",3);this.scopeName=t}},_u=class{constructor(t,e){g(this,"kind",4);this.scopeName=t,this.ruleName=e}};function xl(t){if(t==="$base")return new ku;if(t==="$self")return new Lu;const e=t.indexOf("#");if(e===-1)return new Ru(t);if(e===0)return new Eu(t.substring(1));{const n=t.substring(0,e),i=t.substring(e+1);return new _u(n,i)}}var Tu=/\\(\d+)/,co=/\\(\d+)/g,Iu=-1,kl=-2;var Wn=class{constructor(t,e,n,i){g(this,"$location");g(this,"id");g(this,"_nameIsCapturing");g(this,"_name");g(this,"_contentNameIsCapturing");g(this,"_contentName");this.$location=t,this.id=e,this._name=n||null,this._nameIsCapturing=Kn.hasCaptures(this._name),this._contentName=i||null,this._contentNameIsCapturing=Kn.hasCaptures(this._contentName)}get debugName(){const t=this.$location?`${gl(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${t}`}getName(t,e){return!this._nameIsCapturing||this._name===null||t===null||e===null?this._name:Kn.replaceCaptures(this._name,t,e)}getContentName(t,e){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:Kn.replaceCaptures(this._contentName,t,e)}},Au=class extends Wn{constructor(e,n,i,r,s){super(e,n,i,r);g(this,"retokenizeCapturedWithRuleId");this.retokenizeCapturedWithRuleId=s}dispose(){}collectPatterns(e,n){throw new Error("Not supported!")}compile(e,n){throw new Error("Not supported!")}compileAG(e,n,i,r){throw new Error("Not supported!")}},Pu=class extends Wn{constructor(e,n,i,r,s){super(e,n,i,null);g(this,"_match");g(this,"captures");g(this,"_cachedCompiledPatterns");this._match=new Mn(r,this.id),this.captures=s,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,n){n.push(this._match)}compile(e,n){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,n,i,r){return this._getCachedCompiledPatterns(e).compileAG(e,i,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Dn,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},uo=class extends Wn{constructor(e,n,i,r,s){super(e,n,i,r);g(this,"hasMissingPatterns");g(this,"patterns");g(this,"_cachedCompiledPatterns");this.patterns=s.patterns,this.hasMissingPatterns=s.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,n){for(const i of this.patterns)e.getRule(i).collectPatterns(e,n)}compile(e,n){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,n,i,r){return this._getCachedCompiledPatterns(e).compileAG(e,i,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Dn,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Kr=class extends Wn{constructor(e,n,i,r,s,o,l,a,d,c){super(e,n,i,r);g(this,"_begin");g(this,"beginCaptures");g(this,"_end");g(this,"endHasBackReferences");g(this,"endCaptures");g(this,"applyEndPatternLast");g(this,"hasMissingPatterns");g(this,"patterns");g(this,"_cachedCompiledPatterns");this._begin=new Mn(s,this.id),this.beginCaptures=o,this._end=new Mn(l||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=a,this.applyEndPatternLast=d||!1,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,n){return this._end.resolveBackReferences(e,n)}collectPatterns(e,n){n.push(this._begin)}compile(e,n){return this._getCachedCompiledPatterns(e,n).compile(e)}compileAG(e,n,i,r){return this._getCachedCompiledPatterns(e,n).compileAG(e,i,r)}_getCachedCompiledPatterns(e,n){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Dn;for(const i of this.patterns)e.getRule(i).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,n):this._cachedCompiledPatterns.setSource(0,n)),this._cachedCompiledPatterns}},Ai=class extends Wn{constructor(e,n,i,r,s,o,l,a,d){super(e,n,i,r);g(this,"_begin");g(this,"beginCaptures");g(this,"whileCaptures");g(this,"_while");g(this,"whileHasBackReferences");g(this,"hasMissingPatterns");g(this,"patterns");g(this,"_cachedCompiledPatterns");g(this,"_cachedCompiledWhilePatterns");this._begin=new Mn(s,this.id),this.beginCaptures=o,this.whileCaptures=a,this._while=new Mn(l,kl),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=d.patterns,this.hasMissingPatterns=d.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,n){return this._while.resolveBackReferences(e,n)}collectPatterns(e,n){n.push(this._begin)}compile(e,n){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,n,i,r){return this._getCachedCompiledPatterns(e).compileAG(e,i,r)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Dn;for(const n of this.patterns)e.getRule(n).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,n){return this._getCachedCompiledWhilePatterns(e,n).compile(e)}compileWhileAG(e,n,i,r){return this._getCachedCompiledWhilePatterns(e,n).compileAG(e,i,r)}_getCachedCompiledWhilePatterns(e,n){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new Dn,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,n||""),this._cachedCompiledWhilePatterns}},Ll=class ce{static createCaptureRule(e,n,i,r,s){return e.registerRule(o=>new Au(n,o,i,r,s))}static getCompiledRuleId(e,n,i){return e.id||n.registerRule(r=>{if(e.id=r,e.match)return new Pu(e.$vscodeTextmateLocation,e.id,e.name,e.match,ce._compileCaptures(e.captures,n,i));if(typeof e.begin>"u"){e.repository&&(i=pl({},i,e.repository));let s=e.patterns;return typeof s>"u"&&e.include&&(s=[{include:e.include}]),new uo(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,ce._compilePatterns(s,n,i))}return e.while?new Ai(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,ce._compileCaptures(e.beginCaptures||e.captures,n,i),e.while,ce._compileCaptures(e.whileCaptures||e.captures,n,i),ce._compilePatterns(e.patterns,n,i)):new Kr(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,ce._compileCaptures(e.beginCaptures||e.captures,n,i),e.end,ce._compileCaptures(e.endCaptures||e.captures,n,i),e.applyEndPatternLast,ce._compilePatterns(e.patterns,n,i))}),e.id}static _compileCaptures(e,n,i){let r=[];if(e){let s=0;for(const o in e){if(o==="$vscodeTextmateLocation")continue;const l=parseInt(o,10);l>s&&(s=l)}for(let o=0;o<=s;o++)r[o]=null;for(const o in e){if(o==="$vscodeTextmateLocation")continue;const l=parseInt(o,10);let a=0;e[o].patterns&&(a=ce.getCompiledRuleId(e[o],n,i)),r[l]=ce.createCaptureRule(n,e[o].$vscodeTextmateLocation,e[o].name,e[o].contentName,a)}}return r}static _compilePatterns(e,n,i){let r=[];if(e)for(let s=0,o=e.length;s<o;s++){const l=e[s];let a=-1;if(l.include){const d=xl(l.include);switch(d.kind){case 0:case 1:a=ce.getCompiledRuleId(i[l.include],n,i);break;case 2:let c=i[d.ruleName];c&&(a=ce.getCompiledRuleId(c,n,i));break;case 3:case 4:const u=d.scopeName,h=d.kind===4?d.ruleName:null,f=n.getExternalGrammar(u,i);if(f)if(h){let p=f.repository[h];p&&(a=ce.getCompiledRuleId(p,n,f.repository))}else a=ce.getCompiledRuleId(f.repository.$self,n,f.repository);break}}else a=ce.getCompiledRuleId(l,n,i);if(a!==-1){const d=n.getRule(a);let c=!1;if((d instanceof uo||d instanceof Kr||d instanceof Ai)&&d.hasMissingPatterns&&d.patterns.length===0&&(c=!0),c)continue;r.push(a)}}return{patterns:r,hasMissingPatterns:(e?e.length:0)!==r.length}}},Mn=class El{constructor(e,n){g(this,"source");g(this,"ruleId");g(this,"hasAnchor");g(this,"hasBackReferences");g(this,"_anchorCache");if(e&&typeof e=="string"){const i=e.length;let r=0,s=[],o=!1;for(let l=0;l<i;l++)if(e.charAt(l)==="\\"&&l+1<i){const d=e.charAt(l+1);d==="z"?(s.push(e.substring(r,l)),s.push("$(?!\\n)(?<!\\n)"),r=l+2):(d==="A"||d==="G")&&(o=!0),l++}this.hasAnchor=o,r===0?this.source=e:(s.push(e.substring(r,i)),this.source=s.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=n,typeof this.source=="string"?this.hasBackReferences=Tu.test(this.source):this.hasBackReferences=!1}clone(){return new El(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,n){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let i=n.map(r=>e.substring(r.start,r.end));return co.lastIndex=0,this.source.replace(co,(r,s)=>vl(i[parseInt(s,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let e=[],n=[],i=[],r=[],s,o,l,a;for(s=0,o=this.source.length;s<o;s++)l=this.source.charAt(s),e[s]=l,n[s]=l,i[s]=l,r[s]=l,l==="\\"&&s+1<o&&(a=this.source.charAt(s+1),a==="A"?(e[s+1]="",n[s+1]="",i[s+1]="A",r[s+1]="A"):a==="G"?(e[s+1]="",n[s+1]="G",i[s+1]="",r[s+1]="G"):(e[s+1]=a,n[s+1]=a,i[s+1]=a,r[s+1]=a),s++);return{A0_G0:e.join(""),A0_G1:n.join(""),A1_G0:i.join(""),A1_G1:r.join("")}}resolveAnchors(e,n){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:e?n?this._anchorCache.A1_G1:this._anchorCache.A1_G0:n?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},Dn=class{constructor(){g(this,"_items");g(this,"_hasAnchors");g(this,"_cached");g(this,"_anchorCache");this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(t){this._items.push(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}unshift(t){this._items.unshift(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}length(){return this._items.length}setSource(t,e){this._items[t].source!==e&&(this._disposeCaches(),this._items[t].setSource(e))}compile(t){if(!this._cached){let e=this._items.map(n=>n.source);this._cached=new ho(t,e,this._items.map(n=>n.ruleId))}return this._cached}compileAG(t,e,n){return this._hasAnchors?e?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(t,e,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(t,e,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(t,e,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(t,e,n)),this._anchorCache.A0_G0):this.compile(t)}_resolveAnchors(t,e,n){let i=this._items.map(r=>r.resolveAnchors(e,n));return new ho(t,i,this._items.map(r=>r.ruleId))}},ho=class{constructor(t,e,n){g(this,"scanner");this.regExps=e,this.rules=n,this.scanner=t.createOnigScanner(e)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const t=[];for(let e=0,n=this.rules.length;e<n;e++)t.push(" - "+this.rules[e]+": "+this.regExps[e]);return t.join(`
|
|
3
3
|
`)}findNextMatchSync(t,e,n){const i=this.scanner.findNextMatchSync(t,e,n);return i?{ruleId:this.rules[i.index],captureIndices:i.captureIndices}:null}},fr=class{constructor(t,e){this.languageId=t,this.tokenType=e}},st,Mu=(st=class{constructor(e,n){g(this,"_defaultAttributes");g(this,"_embeddedLanguagesMatcher");g(this,"_getBasicScopeAttributes",new Cl(e=>{const n=this._scopeToLanguage(e),i=this._toStandardTokenType(e);return new fr(n,i)}));this._defaultAttributes=new fr(e,8),this._embeddedLanguagesMatcher=new Du(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return e===null?st._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const n=e.match(st.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}},g(st,"_NULL_SCOPE_METADATA",new fr(0,0)),g(st,"STANDARD_TOKEN_TYPE_REGEXP",/\b(comment|string|regex|meta\.embedded)\b/),st),Du=class{constructor(t){g(this,"values");g(this,"scopesRegExp");if(t.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(t);const e=t.map(([n,i])=>vl(n));e.sort(),e.reverse(),this.scopesRegExp=new RegExp(`^((${e.join(")|(")}))($|\\.)`,"")}}match(t){if(!this.scopesRegExp)return;const e=t.match(this.scopesRegExp);if(e)return this.values.get(e[1])}},fo=class{constructor(t,e){this.stack=t,this.stoppedEarly=e}};function Rl(t,e,n,i,r,s,o,l){const a=e.content.length;let d=!1,c=-1;if(o){const f=Hu(t,e,n,i,r,s);r=f.stack,i=f.linePos,n=f.isFirstLine,c=f.anchorPosition}const u=Date.now();for(;!d;){if(l!==0&&Date.now()-u>l)return new fo(r,!0);h()}return new fo(r,!1);function h(){const f=Ou(t,e,n,i,r,c);if(!f){s.produce(r,a),d=!0;return}const p=f.captureIndices,y=f.matchedRuleId,v=p&&p.length>0?p[0].end>i:!1;if(y===Iu){const m=r.getRule(t);s.produce(r,p[0].start),r=r.withContentNameScopesList(r.nameScopesList),wn(t,e,n,r,s,m.endCaptures,p),s.produce(r,p[0].end);const C=r;if(r=r.parent,c=C.getAnchorPos(),!v&&C.getEnterPos()===i){r=C,s.produce(r,a),d=!0;return}}else{const m=t.getRule(y);s.produce(r,p[0].start);const C=r,S=m.getName(e.content,p),w=r.contentNameScopesList.pushAttributed(S,t);if(r=r.push(y,i,c,p[0].end===a,null,w,w),m instanceof Kr){const b=m;wn(t,e,n,r,s,b.beginCaptures,p),s.produce(r,p[0].end),c=p[0].end;const k=b.getContentName(e.content,p),x=w.pushAttributed(k,t);if(r=r.withContentNameScopesList(x),b.endHasBackReferences&&(r=r.withEndRule(b.getEndWithResolvedBackReferences(e.content,p))),!v&&C.hasSameRuleAs(r)){r=r.pop(),s.produce(r,a),d=!0;return}}else if(m instanceof Ai){const b=m;wn(t,e,n,r,s,b.beginCaptures,p),s.produce(r,p[0].end),c=p[0].end;const k=b.getContentName(e.content,p),x=w.pushAttributed(k,t);if(r=r.withContentNameScopesList(x),b.whileHasBackReferences&&(r=r.withEndRule(b.getWhileWithResolvedBackReferences(e.content,p))),!v&&C.hasSameRuleAs(r)){r=r.pop(),s.produce(r,a),d=!0;return}}else if(wn(t,e,n,r,s,m.captures,p),s.produce(r,p[0].end),r=r.pop(),!v){r=r.safePop(),s.produce(r,a),d=!0;return}}p[0].end>i&&(i=p[0].end,n=!1)}}function Hu(t,e,n,i,r,s){let o=r.beginRuleCapturedEOL?0:-1;const l=[];for(let a=r;a;a=a.pop()){const d=a.getRule(t);d instanceof Ai&&l.push({rule:d,stack:a})}for(let a=l.pop();a;a=l.pop()){const{ruleScanner:d,findOptions:c}=$u(a.rule,t,a.stack.endRule,n,i===o),u=d.findNextMatchSync(e,i,c);if(u){if(u.ruleId!==kl){r=a.stack.pop();break}u.captureIndices&&u.captureIndices.length&&(s.produce(a.stack,u.captureIndices[0].start),wn(t,e,n,a.stack,s,a.rule.whileCaptures,u.captureIndices),s.produce(a.stack,u.captureIndices[0].end),o=u.captureIndices[0].end,u.captureIndices[0].end>i&&(i=u.captureIndices[0].end,n=!1))}else{r=a.stack.pop();break}}return{stack:r,linePos:i,anchorPosition:o,isFirstLine:n}}function Ou(t,e,n,i,r,s){const o=Nu(t,e,n,i,r,s),l=t.getInjections();if(l.length===0)return o;const a=Fu(l,t,e,n,i,r,s);if(!a)return o;if(!o)return a;const d=o.captureIndices[0].start,c=a.captureIndices[0].start;return c<d||a.priorityMatch&&c===d?a:o}function Nu(t,e,n,i,r,s){const o=r.getRule(t),{ruleScanner:l,findOptions:a}=_l(o,t,r.endRule,n,i===s),d=l.findNextMatchSync(e,i,a);return d?{captureIndices:d.captureIndices,matchedRuleId:d.ruleId}:null}function Fu(t,e,n,i,r,s,o){let l=Number.MAX_VALUE,a=null,d,c=0;const u=s.contentNameScopesList.getScopeNames();for(let h=0,f=t.length;h<f;h++){const p=t[h];if(!p.matcher(u))continue;const y=e.getRule(p.ruleId),{ruleScanner:v,findOptions:m}=_l(y,e,null,i,r===o),C=v.findNextMatchSync(n,r,m);if(!C)continue;const S=C.captureIndices[0].start;if(!(S>=l)&&(l=S,a=C.captureIndices,d=C.ruleId,c=p.priority,l===r))break}return a?{priorityMatch:c===-1,captureIndices:a,matchedRuleId:d}:null}function _l(t,e,n,i,r){return{ruleScanner:t.compileAG(e,n,i,r),findOptions:0}}function $u(t,e,n,i,r){return{ruleScanner:t.compileWhileAG(e,n,i,r),findOptions:0}}function wn(t,e,n,i,r,s,o){if(s.length===0)return;const l=e.content,a=Math.min(s.length,o.length),d=[],c=o[0].end;for(let u=0;u<a;u++){const h=s[u];if(h===null)continue;const f=o[u];if(f.length===0)continue;if(f.start>c)break;for(;d.length>0&&d[d.length-1].endPos<=f.start;)r.produceFromScopes(d[d.length-1].scopes,d[d.length-1].endPos),d.pop();if(d.length>0?r.produceFromScopes(d[d.length-1].scopes,f.start):r.produce(i,f.start),h.retokenizeCapturedWithRuleId){const y=h.getName(l,o),v=i.contentNameScopesList.pushAttributed(y,t),m=h.getContentName(l,o),C=v.pushAttributed(m,t),S=i.push(h.retokenizeCapturedWithRuleId,f.start,-1,!1,null,v,C),w=t.createOnigString(l.substring(0,f.end));Rl(t,w,n&&f.start===0,f.start,S,r,!1,0),wl(w);continue}const p=h.getName(l,o);if(p!==null){const v=(d.length>0?d[d.length-1].scopes:i.contentNameScopesList).pushAttributed(p,t);d.push(new zu(v,f.end))}}for(;d.length>0;)r.produceFromScopes(d[d.length-1].scopes,d[d.length-1].endPos),d.pop()}var zu=class{constructor(t,e){g(this,"scopes");g(this,"endPos");this.scopes=t,this.endPos=e}};function Uu(t,e,n,i,r,s,o,l){return new Vu(t,e,n,i,r,s,o,l)}function po(t,e,n,i,r){const s=Ti(e,Pi),o=Ll.getCompiledRuleId(n,i,r.repository);for(const l of s)t.push({debugSelector:e,matcher:l.matcher,ruleId:o,grammar:r,priority:l.priority})}function Pi(t,e){if(e.length<t.length)return!1;let n=0;return t.every(i=>{for(let r=n;r<e.length;r++)if(Bu(e[r],i))return n=r+1,!0;return!1})}function Bu(t,e){if(!t)return!1;if(t===e)return!0;const n=e.length;return t.length>n&&t.substr(0,n)===e&&t[n]==="."}var Vu=class{constructor(t,e,n,i,r,s,o,l){g(this,"_rootId");g(this,"_lastRuleId");g(this,"_ruleId2desc");g(this,"_includedGrammars");g(this,"_grammarRepository");g(this,"_grammar");g(this,"_injections");g(this,"_basicScopeAttributesProvider");g(this,"_tokenTypeMatchers");if(this._rootScopeName=t,this.balancedBracketSelectors=s,this._onigLib=l,this._basicScopeAttributesProvider=new Mu(n,i),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=o,this._grammar=go(e,null),this._injections=null,this._tokenTypeMatchers=[],r)for(const a of Object.keys(r)){const d=Ti(a,Pi);for(const c of d)this._tokenTypeMatchers.push({matcher:c.matcher,type:r[a]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const t of this._ruleId2desc)t&&t.dispose()}createOnigScanner(t){return this._onigLib.createOnigScanner(t)}createOnigString(t){return this._onigLib.createOnigString(t)}getMetadataForScope(t){return this._basicScopeAttributesProvider.getBasicScopeAttributes(t)}_collectInjections(){const t={lookup:r=>r===this._rootScopeName?this._grammar:this.getExternalGrammar(r),injections:r=>this._grammarRepository.injections(r)},e=[],n=this._rootScopeName,i=t.lookup(n);if(i){const r=i.injections;if(r)for(let o in r)po(e,o,r[o],this,i);const s=this._grammarRepository.injections(n);s&&s.forEach(o=>{const l=this.getExternalGrammar(o);if(l){const a=l.injectionSelector;a&&po(e,a,l,this,l)}})}return e.sort((r,s)=>r.priority-s.priority),e}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(t){const e=++this._lastRuleId,n=t(e);return this._ruleId2desc[e]=n,n}getRule(t){return this._ruleId2desc[t]}getExternalGrammar(t,e){if(this._includedGrammars[t])return this._includedGrammars[t];if(this._grammarRepository){const n=this._grammarRepository.lookup(t);if(n)return this._includedGrammars[t]=go(n,e&&e.$base),this._includedGrammars[t]}}tokenizeLine(t,e,n=0){const i=this._tokenize(t,e,!1,n);return{tokens:i.lineTokens.getResult(i.ruleStack,i.lineLength),ruleStack:i.ruleStack,stoppedEarly:i.stoppedEarly}}tokenizeLine2(t,e,n=0){const i=this._tokenize(t,e,!0,n);return{tokens:i.lineTokens.getBinaryResult(i.ruleStack,i.lineLength),ruleStack:i.ruleStack,stoppedEarly:i.stoppedEarly}}_tokenize(t,e,n,i){this._rootId===-1&&(this._rootId=Ll.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let r;if(!e||e===Xr.NULL){r=!0;const d=this._basicScopeAttributesProvider.getDefaultAttributes(),c=this.themeProvider.getDefaults(),u=en.set(0,d.languageId,d.tokenType,null,c.fontStyle,c.foregroundId,c.backgroundId),h=this.getRule(this._rootId).getName(null,null);let f;h?f=Rn.createRootAndLookUpScopeName(h,u,this):f=Rn.createRoot("unknown",u),e=new Xr(null,this._rootId,-1,-1,!1,null,f,f)}else r=!1,e.reset();t=t+`
|
|
4
4
|
`;const s=this.createOnigString(t),o=s.content.length,l=new Wu(n,t,this._tokenTypeMatchers,this.balancedBracketSelectors),a=Rl(this,s,r,0,e,l,!0,i);return wl(s),{lineLength:o,lineTokens:l,ruleStack:a.stack,stoppedEarly:a.stoppedEarly}}};function go(t,e){return t=lu(t),t.repository=t.repository||{},t.repository.$self={$vscodeTextmateLocation:t.$vscodeTextmateLocation,patterns:t.patterns,name:t.scopeName},t.repository.$base=e||t.repository.$self,t}var Rn=class Ke{constructor(e,n,i){this.parent=e,this.scopePath=n,this.tokenAttributes=i}static fromExtension(e,n){let i=e,r=(e==null?void 0:e.scopePath)??null;for(const s of n)r=hr.push(r,s.scopeNames),i=new Ke(i,r,s.encodedTokenAttributes);return i}static createRoot(e,n){return new Ke(null,new hr(null,e),n)}static createRootAndLookUpScopeName(e,n,i){const r=i.getMetadataForScope(e),s=new hr(null,e),o=i.themeProvider.themeMatch(s),l=Ke.mergeAttributes(n,r,o);return new Ke(null,s,l)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(e){return Ke.equals(this,e)}static equals(e,n){do{if(e===n||!e&&!n)return!0;if(!e||!n||e.scopeName!==n.scopeName||e.tokenAttributes!==n.tokenAttributes)return!1;e=e.parent,n=n.parent}while(!0)}static mergeAttributes(e,n,i){let r=-1,s=0,o=0;return i!==null&&(r=i.fontStyle,s=i.foregroundId,o=i.backgroundId),en.set(e,n.languageId,n.tokenType,null,r,s,o)}pushAttributed(e,n){if(e===null)return this;if(e.indexOf(" ")===-1)return Ke._pushAttributed(this,e,n);const i=e.split(/ /g);let r=this;for(const s of i)r=Ke._pushAttributed(r,s,n);return r}static _pushAttributed(e,n,i){const r=i.getMetadataForScope(n),s=e.scopePath.push(n),o=i.themeProvider.themeMatch(s),l=Ke.mergeAttributes(e.tokenAttributes,r,o);return new Ke(e,s,l)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){var r;const n=[];let i=this;for(;i&&i!==e;)n.push({encodedTokenAttributes:i.tokenAttributes,scopeNames:i.scopePath.getExtensionIfDefined(((r=i.parent)==null?void 0:r.scopePath)??null)}),i=i.parent;return i===e?n.reverse():void 0}},He,Xr=(He=class{constructor(e,n,i,r,s,o,l,a){g(this,"_stackElementBrand");g(this,"_enterPos");g(this,"_anchorPos");g(this,"depth");this.parent=e,this.ruleId=n,this.beginRuleCapturedEOL=s,this.endRule=o,this.nameScopesList=l,this.contentNameScopesList=a,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=i,this._anchorPos=r}equals(e){return e===null?!1:He._equals(this,e)}static _equals(e,n){return e===n?!0:this._structuralEquals(e,n)?Rn.equals(e.contentNameScopesList,n.contentNameScopesList):!1}static _structuralEquals(e,n){do{if(e===n||!e&&!n)return!0;if(!e||!n||e.depth!==n.depth||e.ruleId!==n.ruleId||e.endRule!==n.endRule)return!1;e=e.parent,n=n.parent}while(!0)}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){He._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,n,i,r,s,o,l){return new He(this,e,n,i,r,s,o,l)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){const e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,n){var i,r;return this.parent&&(n=this.parent._writeString(e,n)),e[n++]=`(${this.ruleId}, ${(i=this.nameScopesList)==null?void 0:i.toString()}, ${(r=this.contentNameScopesList)==null?void 0:r.toString()})`,n}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new He(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let n=this;for(;n&&n._enterPos===e._enterPos;){if(n.ruleId===e.ruleId)return!0;n=n.parent}return!1}toStateStackFrame(){var e,n,i;return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:((n=this.nameScopesList)==null?void 0:n.getExtensionIfDefined(((e=this.parent)==null?void 0:e.nameScopesList)??null))??[],contentNameScopesList:((i=this.contentNameScopesList)==null?void 0:i.getExtensionIfDefined(this.nameScopesList))??[]}}static pushFrame(e,n){const i=Rn.fromExtension((e==null?void 0:e.nameScopesList)??null,n.nameScopesList);return new He(e,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,i,Rn.fromExtension(i,n.contentNameScopesList))}},g(He,"NULL",new He(null,0,0,0,!1,null,null,null)),He),Gu=class{constructor(t,e){g(this,"balancedBracketScopes");g(this,"unbalancedBracketScopes");g(this,"allowAny",!1);this.balancedBracketScopes=t.flatMap(n=>n==="*"?(this.allowAny=!0,[]):Ti(n,Pi).map(i=>i.matcher)),this.unbalancedBracketScopes=e.flatMap(n=>Ti(n,Pi).map(i=>i.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(t){for(const e of this.unbalancedBracketScopes)if(e(t))return!1;for(const e of this.balancedBracketScopes)if(e(t))return!0;return this.allowAny}},Wu=class{constructor(t,e,n,i){g(this,"_emitBinaryTokens");g(this,"_lineText");g(this,"_tokens");g(this,"_binaryTokens");g(this,"_lastTokenEndIndex");g(this,"_tokenTypeOverrides");this.balancedBracketSelectors=i,this._emitBinaryTokens=t,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(t,e){this.produceFromScopes(t.contentNameScopesList,e)}produceFromScopes(t,e){var i;if(this._lastTokenEndIndex>=e)return;if(this._emitBinaryTokens){let r=(t==null?void 0:t.tokenAttributes)??0,s=!1;if((i=this.balancedBracketSelectors)!=null&&i.matchesAlways&&(s=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const o=(t==null?void 0:t.getScopeNames())??[];for(const l of this._tokenTypeOverrides)l.matcher(o)&&(r=en.set(r,0,l.type,null,-1,0,0));this.balancedBracketSelectors&&(s=this.balancedBracketSelectors.match(o))}if(s&&(r=en.set(r,0,8,s,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===r){this._lastTokenEndIndex=e;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(r),this._lastTokenEndIndex=e;return}const n=(t==null?void 0:t.getScopeNames())??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:e,scopes:n}),this._lastTokenEndIndex=e}getResult(t,e){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===e-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(t,e),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(t,e){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===e-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(t,e),this._binaryTokens[this._binaryTokens.length-2]=0);const n=new Uint32Array(this._binaryTokens.length);for(let i=0,r=this._binaryTokens.length;i<r;i++)n[i]=this._binaryTokens[i];return n}},ju=class{constructor(t,e){g(this,"_grammars",new Map);g(this,"_rawGrammars",new Map);g(this,"_injectionGrammars",new Map);g(this,"_theme");this._onigLib=e,this._theme=t}dispose(){for(const t of this._grammars.values())t.dispose()}setTheme(t){this._theme=t}getColorMap(){return this._theme.getColorMap()}addGrammar(t,e){this._rawGrammars.set(t.scopeName,t),e&&this._injectionGrammars.set(t.scopeName,e)}lookup(t){return this._rawGrammars.get(t)}injections(t){return this._injectionGrammars.get(t)}getDefaults(){return this._theme.getDefaults()}themeMatch(t){return this._theme.match(t)}grammarForScopeName(t,e,n,i,r){if(!this._grammars.has(t)){let s=this._rawGrammars.get(t);if(!s)return null;this._grammars.set(t,Uu(t,s,e,n,i,r,this,this._onigLib))}return this._grammars.get(t)}},qu=class{constructor(e){g(this,"_options");g(this,"_syncRegistry");g(this,"_ensureGrammarCache");this._options=e,this._syncRegistry=new ju(_i.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,n){this._syncRegistry.setTheme(_i.createFromRawTheme(e,n))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,n,i){return this.loadGrammarWithConfiguration(e,n,{embeddedLanguages:i})}loadGrammarWithConfiguration(e,n,i){return this._loadGrammar(e,n,i.embeddedLanguages,i.tokenTypes,new Gu(i.balancedBracketSelectors||[],i.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,n,i,r,s){const o=new wu(this._syncRegistry,e);for(;o.Q.length>0;)o.Q.map(l=>this._loadSingleGrammar(l.scopeName)),o.processQueue();return this._grammarForScopeName(e,n,i,r,s)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){const n=this._options.loadGrammar(e);if(n){const i=typeof this._options.getInjections=="function"?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(n,i)}}addGrammar(e,n=[],i=0,r=null){return this._syncRegistry.addGrammar(e,n),this._grammarForScopeName(e.scopeName,i,r)}_grammarForScopeName(e,n=0,i=null,r=null,s=null){return this._syncRegistry.grammarForScopeName(e,n,i,r,s)}},Yr=Xr.NULL;const Ku=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class jn{constructor(e,n,i){this.normal=n,this.property=e,i&&(this.space=i)}}jn.prototype.normal={};jn.prototype.property={};jn.prototype.space=void 0;function Tl(t,e){const n={},i={};for(const r of t)Object.assign(n,r.property),Object.assign(i,r.normal);return new jn(n,i,e)}function Qr(t){return t.toLowerCase()}class Ee{constructor(e,n){this.attribute=n,this.property=e}}Ee.prototype.attribute="";Ee.prototype.booleanish=!1;Ee.prototype.boolean=!1;Ee.prototype.commaOrSpaceSeparated=!1;Ee.prototype.commaSeparated=!1;Ee.prototype.defined=!1;Ee.prototype.mustUseProperty=!1;Ee.prototype.number=!1;Ee.prototype.overloadedBoolean=!1;Ee.prototype.property="";Ee.prototype.spaceSeparated=!1;Ee.prototype.space=void 0;let Xu=0;const O=$t(),Q=$t(),Zr=$t(),T=$t(),W=$t(),Pt=$t(),Te=$t();function $t(){return 2**++Xu}const Jr=Object.freeze(Object.defineProperty({__proto__:null,boolean:O,booleanish:Q,commaOrSpaceSeparated:Te,commaSeparated:Pt,number:T,overloadedBoolean:Zr,spaceSeparated:W},Symbol.toStringTag,{value:"Module"})),pr=Object.keys(Jr);class _s extends Ee{constructor(e,n,i,r){let s=-1;if(super(e,n),mo(this,"space",r),typeof i=="number")for(;++s<pr.length;){const o=pr[s];mo(this,pr[s],(i&Jr[o])===Jr[o])}}}_s.prototype.defined=!0;function mo(t,e,n){n&&(t[e]=n)}function on(t){const e={},n={};for(const[i,r]of Object.entries(t.properties)){const s=new _s(i,t.transform(t.attributes||{},i),r,t.space);t.mustUseProperty&&t.mustUseProperty.includes(i)&&(s.mustUseProperty=!0),e[i]=s,n[Qr(i)]=i,n[Qr(s.attribute)]=i}return new jn(e,n,t.space)}const Il=on({properties:{ariaActiveDescendant:null,ariaAtomic:Q,ariaAutoComplete:null,ariaBusy:Q,ariaChecked:Q,ariaColCount:T,ariaColIndex:T,ariaColSpan:T,ariaControls:W,ariaCurrent:null,ariaDescribedBy:W,ariaDetails:null,ariaDisabled:Q,ariaDropEffect:W,ariaErrorMessage:null,ariaExpanded:Q,ariaFlowTo:W,ariaGrabbed:Q,ariaHasPopup:null,ariaHidden:Q,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:W,ariaLevel:T,ariaLive:null,ariaModal:Q,ariaMultiLine:Q,ariaMultiSelectable:Q,ariaOrientation:null,ariaOwns:W,ariaPlaceholder:null,ariaPosInSet:T,ariaPressed:Q,ariaReadOnly:Q,ariaRelevant:null,ariaRequired:Q,ariaRoleDescription:W,ariaRowCount:T,ariaRowIndex:T,ariaRowSpan:T,ariaSelected:Q,ariaSetSize:T,ariaSort:null,ariaValueMax:T,ariaValueMin:T,ariaValueNow:T,ariaValueText:null,role:null},transform(t,e){return e==="role"?e:"aria-"+e.slice(4).toLowerCase()}});function Al(t,e){return e in t?t[e]:e}function Pl(t,e){return Al(t,e.toLowerCase())}const Yu=on({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Pt,acceptCharset:W,accessKey:W,action:null,allow:null,allowFullScreen:O,allowPaymentRequest:O,allowUserMedia:O,alpha:O,alt:null,as:null,async:O,autoCapitalize:null,autoComplete:W,autoFocus:O,autoPlay:O,blocking:W,capture:null,charSet:null,checked:O,cite:null,className:W,closedBy:null,colorSpace:null,cols:T,colSpan:T,command:null,commandFor:null,content:null,contentEditable:Q,controls:O,controlsList:W,coords:T|Pt,crossOrigin:null,data:null,dateTime:null,decoding:null,default:O,defer:O,dir:null,dirName:null,disabled:O,download:Zr,draggable:Q,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:O,formTarget:null,headers:W,height:T,hidden:Zr,high:T,href:null,hrefLang:null,htmlFor:W,httpEquiv:W,id:null,imageSizes:null,imageSrcSet:null,inert:O,inputMode:null,integrity:null,is:null,isMap:O,itemId:null,itemProp:W,itemRef:W,itemScope:O,itemType:W,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:O,low:T,manifest:null,max:null,maxLength:T,media:null,method:null,min:null,minLength:T,multiple:O,muted:O,name:null,nonce:null,noModule:O,noValidate:O,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:O,optimum:T,pattern:null,ping:W,placeholder:null,playsInline:O,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:O,referrerPolicy:null,rel:W,required:O,reversed:O,rows:T,rowSpan:T,sandbox:W,scope:null,scoped:O,seamless:O,selected:O,shadowRootClonable:O,shadowRootCustomElementRegistry:O,shadowRootDelegatesFocus:O,shadowRootMode:null,shadowRootSerializable:O,shape:null,size:T,sizes:null,slot:null,span:T,spellCheck:Q,src:null,srcDoc:null,srcLang:null,srcSet:null,start:T,step:null,style:null,tabIndex:T,target:null,title:null,translate:null,type:null,typeMustMatch:O,useMap:null,value:Q,width:T,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:W,axis:null,background:null,bgColor:null,border:T,borderColor:null,bottomMargin:T,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:O,declare:O,event:null,face:null,frame:null,frameBorder:null,hSpace:T,leftMargin:T,link:null,longDesc:null,lowSrc:null,marginHeight:T,marginWidth:T,noResize:O,noHref:O,noShade:O,noWrap:O,object:null,profile:null,prompt:null,rev:null,rightMargin:T,rules:null,scheme:null,scrolling:Q,standby:null,summary:null,text:null,topMargin:T,valueType:null,version:null,vAlign:null,vLink:null,vSpace:T,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:O,disablePictureInPicture:O,disableRemotePlayback:O,exportParts:Pt,part:W,prefix:null,property:null,results:T,security:null,unselectable:null},space:"html",transform:Pl}),Qu=on({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",maskType:"mask-type",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Te,accentHeight:T,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:T,amplitude:T,arabicForm:null,ascent:T,attributeName:null,attributeType:null,azimuth:T,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:T,by:null,calcMode:null,capHeight:T,className:W,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:T,diffuseConstant:T,direction:null,display:null,dur:null,divisor:T,dominantBaseline:null,download:O,dx:null,dy:null,edgeMode:null,editable:null,elevation:T,enableBackground:null,end:null,event:null,exponent:T,externalResourcesRequired:null,fill:null,fillOpacity:T,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Pt,g2:Pt,glyphName:Pt,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:T,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:T,horizOriginX:T,horizOriginY:T,id:null,ideographic:T,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:T,k:T,k1:T,k2:T,k3:T,k4:T,kernelMatrix:Te,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:T,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:T,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:T,overlineThickness:T,paintOrder:null,panose1:null,path:null,pathLength:T,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:W,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:T,pointsAtY:T,pointsAtZ:T,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Te,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Te,rev:Te,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Te,requiredFeatures:Te,requiredFonts:Te,requiredFormats:Te,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:T,specularExponent:T,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:T,strikethroughThickness:T,string:null,stroke:null,strokeDashArray:Te,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:T,strokeOpacity:T,strokeWidth:null,style:null,surfaceScale:T,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Te,tabIndex:T,tableValues:null,target:null,targetX:T,targetY:T,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Te,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:T,underlineThickness:T,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:T,values:null,vAlphabetic:T,vMathematical:T,vectorEffect:null,vHanging:T,vIdeographic:T,version:null,vertAdvY:T,vertOriginX:T,vertOriginY:T,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:T,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Al}),Ml=on({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(t,e){return"xlink:"+e.slice(5).toLowerCase()}}),Dl=on({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Pl}),Hl=on({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(t,e){return"xml:"+e.slice(3).toLowerCase()}}),Zu=/[A-Z]/g,yo=/-[a-z]/g,Ju=/^data[-\w.:]+$/i;function eh(t,e){const n=Qr(e);let i=e,r=Ee;if(n in t.normal)return t.property[t.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Ju.test(e)){if(e.charAt(4)==="-"){const s=e.slice(5).replace(yo,nh);i="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=e.slice(4);if(!yo.test(s)){let o=s.replace(Zu,th);o.charAt(0)!=="-"&&(o="-"+o),e="data"+o}}r=_s}return new r(i,e)}function th(t){return"-"+t.toLowerCase()}function nh(t){return t.charAt(1).toUpperCase()}const ih=Tl([Il,Yu,Ml,Dl,Hl],"html"),Ol=Tl([Il,Qu,Ml,Dl,Hl],"svg"),vo={}.hasOwnProperty;function rh(t,e){const n=e||{};function i(r,...s){let o=i.invalid;const l=i.handlers;if(r&&vo.call(r,t)){const a=String(r[t]);o=vo.call(l,a)?l[a]:i.unknown}if(o)return o.call(this,r,...s)}return i.handlers=n.handlers||{},i.invalid=n.invalid,i.unknown=n.unknown,i}const sh=/["&'<>`]/g,oh=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ah=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,lh=/[|\\{}()[\]^$+*?.]/g,Co=new WeakMap;function dh(t,e){if(t=t.replace(e.subset?ch(e.subset):sh,i),e.subset||e.escapeOnly)return t;return t.replace(oh,n).replace(ah,i);function n(r,s,o){return e.format((r.charCodeAt(0)-55296)*1024+r.charCodeAt(1)-56320+65536,o.charCodeAt(s+2),e)}function i(r,s,o){return e.format(r.charCodeAt(0),o.charCodeAt(s+1),e)}}function ch(t){let e=Co.get(t);return e||(e=uh(t),Co.set(t,e)),e}function uh(t){const e=[];let n=-1;for(;++n<t.length;)e.push(t[n].replace(lh,"\\$&"));return new RegExp("(?:"+e.join("|")+")","g")}const hh=/[\dA-Fa-f]/;function fh(t,e,n){const i="&#x"+t.toString(16).toUpperCase();return n&&e&&!hh.test(String.fromCharCode(e))?i:i+";"}const ph=/\d/;function gh(t,e,n){const i="&#"+String(t);return n&&e&&!ph.test(String.fromCharCode(e))?i:i+";"}const mh=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],gr={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},yh=["cent","copy","divide","gt","lt","not","para","times"],Nl={}.hasOwnProperty,es={};let Xn;for(Xn in gr)Nl.call(gr,Xn)&&(es[gr[Xn]]=Xn);const vh=/[^\dA-Za-z]/;function Ch(t,e,n,i){const r=String.fromCharCode(t);if(Nl.call(es,r)){const s=es[r],o="&"+s;return n&&mh.includes(s)&&!yh.includes(s)&&(!i||e&&e!==61&&vh.test(String.fromCharCode(e)))?o:o+";"}return""}function Sh(t,e,n){let i=fh(t,e,n.omitOptionalSemicolons),r;if((n.useNamedReferences||n.useShortestReferences)&&(r=Ch(t,e,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!r)&&n.useShortestReferences){const s=gh(t,e,n.omitOptionalSemicolons);s.length<i.length&&(i=s)}return r&&(!n.useShortestReferences||r.length<i.length)?r:i}function Zt(t,e){return dh(t,Object.assign({format:Sh},e))}const bh=/^>|^->|<!--|-->|--!>|<!-$/g,wh=[">"],xh=["<",">"];function kh(t,e,n,i){return i.settings.bogusComments?"<?"+Zt(t.value,Object.assign({},i.settings.characterReferences,{subset:wh}))+">":"<!--"+t.value.replace(bh,r)+"-->";function r(s){return Zt(s,Object.assign({},i.settings.characterReferences,{subset:xh}))}}function Lh(t,e,n,i){return"<!"+(i.settings.upperDoctype?"DOCTYPE":"doctype")+(i.settings.tightDoctype?"":" ")+"html>"}function So(t,e){const n=String(t);if(typeof e!="string")throw new TypeError("Expected character");let i=0,r=n.indexOf(e);for(;r!==-1;)i++,r=n.indexOf(e,r+e.length);return i}function Eh(t,e){const n=e||{};return(t[t.length-1]===""?[...t,""]:t).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}function Rh(t){return t.join(" ").trim()}const _h=/[ \t\n\f\r]/g;function Ts(t){return typeof t=="object"?t.type==="text"?bo(t.value):!1:bo(t)}function bo(t){return t.replace(_h,"")===""}const ie=$l(1),Fl=$l(-1),Th=[];function $l(t){return e;function e(n,i,r){const s=n?n.children:Th;let o=(i||0)+t,l=s[o];if(!r)for(;l&&Ts(l);)o+=t,l=s[o];return l}}const Ih={}.hasOwnProperty;function zl(t){return e;function e(n,i,r){return Ih.call(t,n.tagName)&&t[n.tagName](n,i,r)}}const Is=zl({body:Ph,caption:mr,colgroup:mr,dd:Oh,dt:Hh,head:mr,html:Ah,li:Dh,optgroup:Nh,option:Fh,p:Mh,rp:wo,rt:wo,tbody:zh,td:xo,tfoot:Uh,th:xo,thead:$h,tr:Bh});function mr(t,e,n){const i=ie(n,e,!0);return!i||i.type!=="comment"&&!(i.type==="text"&&Ts(i.value.charAt(0)))}function Ah(t,e,n){const i=ie(n,e);return!i||i.type!=="comment"}function Ph(t,e,n){const i=ie(n,e);return!i||i.type!=="comment"}function Mh(t,e,n){const i=ie(n,e);return i?i.type==="element"&&(i.tagName==="address"||i.tagName==="article"||i.tagName==="aside"||i.tagName==="blockquote"||i.tagName==="details"||i.tagName==="div"||i.tagName==="dl"||i.tagName==="fieldset"||i.tagName==="figcaption"||i.tagName==="figure"||i.tagName==="footer"||i.tagName==="form"||i.tagName==="h1"||i.tagName==="h2"||i.tagName==="h3"||i.tagName==="h4"||i.tagName==="h5"||i.tagName==="h6"||i.tagName==="header"||i.tagName==="hgroup"||i.tagName==="hr"||i.tagName==="main"||i.tagName==="menu"||i.tagName==="nav"||i.tagName==="ol"||i.tagName==="p"||i.tagName==="pre"||i.tagName==="section"||i.tagName==="table"||i.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}function Dh(t,e,n){const i=ie(n,e);return!i||i.type==="element"&&i.tagName==="li"}function Hh(t,e,n){const i=ie(n,e);return!!(i&&i.type==="element"&&(i.tagName==="dt"||i.tagName==="dd"))}function Oh(t,e,n){const i=ie(n,e);return!i||i.type==="element"&&(i.tagName==="dt"||i.tagName==="dd")}function wo(t,e,n){const i=ie(n,e);return!i||i.type==="element"&&(i.tagName==="rp"||i.tagName==="rt")}function Nh(t,e,n){const i=ie(n,e);return!i||i.type==="element"&&i.tagName==="optgroup"}function Fh(t,e,n){const i=ie(n,e);return!i||i.type==="element"&&(i.tagName==="option"||i.tagName==="optgroup")}function $h(t,e,n){const i=ie(n,e);return!!(i&&i.type==="element"&&(i.tagName==="tbody"||i.tagName==="tfoot"))}function zh(t,e,n){const i=ie(n,e);return!i||i.type==="element"&&(i.tagName==="tbody"||i.tagName==="tfoot")}function Uh(t,e,n){return!ie(n,e)}function Bh(t,e,n){const i=ie(n,e);return!i||i.type==="element"&&i.tagName==="tr"}function xo(t,e,n){const i=ie(n,e);return!i||i.type==="element"&&(i.tagName==="td"||i.tagName==="th")}const Vh=zl({body:jh,colgroup:qh,head:Wh,html:Gh,tbody:Kh});function Gh(t){const e=ie(t,-1);return!e||e.type!=="comment"}function Wh(t){const e=new Set;for(const i of t.children)if(i.type==="element"&&(i.tagName==="base"||i.tagName==="title")){if(e.has(i.tagName))return!1;e.add(i.tagName)}const n=t.children[0];return!n||n.type==="element"}function jh(t){const e=ie(t,-1,!0);return!e||e.type!=="comment"&&!(e.type==="text"&&Ts(e.value.charAt(0)))&&!(e.type==="element"&&(e.tagName==="meta"||e.tagName==="link"||e.tagName==="script"||e.tagName==="style"||e.tagName==="template"))}function qh(t,e,n){const i=Fl(n,e),r=ie(t,-1,!0);return n&&i&&i.type==="element"&&i.tagName==="colgroup"&&Is(i,n.children.indexOf(i),n)?!1:!!(r&&r.type==="element"&&r.tagName==="col")}function Kh(t,e,n){const i=Fl(n,e),r=ie(t,-1);return n&&i&&i.type==="element"&&(i.tagName==="thead"||i.tagName==="tbody")&&Is(i,n.children.indexOf(i),n)?!1:!!(r&&r.type==="element"&&r.tagName==="tr")}const Yn={name:[[`
|
|
5
5
|
\f\r &/=>`.split(""),`
|