@openspecui/web 2.1.2 → 2.1.3
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/dist/assets/{BufferResource-CSbEbiLP.js → BufferResource-CYUkNl6e.js} +1 -1
- package/dist/assets/{CanvasRenderer-CvpAMPzA.js → CanvasRenderer-B3FZcTbO.js} +1 -1
- package/dist/assets/{Filter-BqwVCa6B.js → Filter-B6m1PS4e.js} +1 -1
- package/dist/assets/{RenderTargetSystem-mD_Y2dUA.js → RenderTargetSystem-D-tQO-WR.js} +1 -1
- package/dist/assets/{WebGLRenderer-DsvDwXyL.js → WebGLRenderer-CJA_VvyN.js} +1 -1
- package/dist/assets/{WebGPURenderer-YcBYXAol.js → WebGPURenderer-CL8THZq8.js} +1 -1
- package/dist/assets/{browserAll-MbWxSnea.js → browserAll-Bp7d2QAW.js} +1 -1
- package/dist/assets/{ghostty-web-cM8zjOdb.js → ghostty-web-Dn3qPWne.js} +1 -1
- package/dist/assets/{index-kjHuAdn9.js → index--lAEzTl3.js} +1 -1
- package/dist/assets/{index-CskIUxS-.js → index-B_QlxcT9.js} +1 -1
- package/dist/assets/{index-BCMJS8eq.js → index-CKG6_6g8.js} +1 -1
- package/dist/assets/{index-DuZDcW_P.js → index-CXQzuBsO.js} +1 -1
- package/dist/assets/{index-Cr4OFm9E.js → index-CeCKFMBL.js} +1 -1
- package/dist/assets/{index-Cq4njHD4.js → index-Cy7P7qsp.js} +193 -193
- package/dist/assets/{index-JHrsE4PU.js → index-D3_KWKkX.js} +1 -1
- package/dist/assets/{index-KaodXPu0.js → index-D64umkMM.js} +1 -1
- package/dist/assets/{index-TGQYcfbH.js → index-D7SV9jDS.js} +1 -1
- package/dist/assets/index-D8ZU3Gye.css +1 -0
- package/dist/assets/{index-DyZwNTgF.js → index-DF-P0r8_.js} +1 -1
- package/dist/assets/{index-DijRYB99.js → index-DIk8Jt_d.js} +1 -1
- package/dist/assets/{index-BMKX_bGe.js → index-DVQLid3N.js} +1 -1
- package/dist/assets/{index-B0lABsCj.js → index-DbAAfBjU.js} +1 -1
- package/dist/assets/{index-BY40EQxT.js → index-G43sk1RJ.js} +1 -1
- package/dist/assets/{index-D0sXMPhu.js → index-QwKm9rik.js} +1 -1
- package/dist/assets/{index-B1J3yPM2.js → index-oMDefHHq.js} +1 -1
- package/dist/assets/{webworkerAll-BE_Ec3Rk.js → webworkerAll-iiZBXOCn.js} +1 -1
- package/dist/index.html +2 -2
- package/dist-ssg/client/.vite/ssr-manifest.json +191 -191
- package/dist-ssg/client/assets/{BufferResource-BXAwYrfZ.js → BufferResource-_DDqHC7d.js} +1 -1
- package/dist-ssg/client/assets/{CanvasRenderer-C-_Ei4Lx.js → CanvasRenderer-CMGqjcCq.js} +1 -1
- package/dist-ssg/client/assets/{Filter-ClWz3L4e.js → Filter-CkrLJqkU.js} +1 -1
- package/dist-ssg/client/assets/{RenderTargetSystem-mkoEDW34.js → RenderTargetSystem-CXHACu46.js} +1 -1
- package/dist-ssg/client/assets/{WebGLRenderer-D-p2Wvph.js → WebGLRenderer-LRlNpU4y.js} +1 -1
- package/dist-ssg/client/assets/{WebGPURenderer-CnUVPIau.js → WebGPURenderer-BxGKz2BF.js} +1 -1
- package/dist-ssg/client/assets/{browserAll-DIrSCRrR.js → browserAll-B2a7F8Ye.js} +1 -1
- package/dist-ssg/client/assets/{index-9dzaV4-3.js → index-8sZLSzXw.js} +1 -1
- package/dist-ssg/client/assets/{index-CGYcF9cy.js → index-9sfTCi5X.js} +1 -1
- package/dist-ssg/client/assets/{index-R53t0sC8.js → index-BKFiK0_O.js} +1 -1
- package/dist-ssg/client/assets/{index-C3Zu70mc.js → index-BbqgdZj-.js} +1 -1
- package/dist-ssg/client/assets/{index-DH_3Uwqw.js → index-BsUtispe.js} +1 -1
- package/dist-ssg/client/assets/{index-BxqwPwCo.js → index-Bu9lbbxV.js} +1 -1
- package/dist-ssg/client/assets/{index-DMf28vE-.js → index-C8plA36d.js} +1 -1
- package/dist-ssg/client/assets/{index-I6EcgPnl.js → index-CI4RIvea.js} +1 -1
- package/dist-ssg/client/assets/{index-fIJERjSL.js → index-Cjzi7_OD.js} +1 -1
- package/dist-ssg/client/assets/{index-DM-IE6Il.js → index-CwFqLBhc.js} +1 -1
- package/dist-ssg/client/assets/{index-geNCH0rZ.js → index-D3cFTBJZ.js} +1 -1
- package/dist-ssg/client/assets/index-DAziqjAm.css +1 -0
- package/dist-ssg/client/assets/{index-D9vFOR1x.js → index-DUEB7_Ou.js} +1 -1
- package/dist-ssg/client/assets/{index-4SYwcH9o.js → index-DpehSrP7.js} +1 -1
- package/dist-ssg/client/assets/{index-zKBrZAkn.js → index-O_rM1JNe.js} +1 -1
- package/dist-ssg/client/assets/{index-DGZY9q7K.js → index-opaOPY1E.js} +1 -1
- package/dist-ssg/client/assets/{index.ssg-7hLvM_9r.js → index.ssg-BEVFmqeO.js} +4 -4
- package/dist-ssg/client/assets/{webworkerAll-CysFfo0u.js → webworkerAll-D76uzO4q.js} +1 -1
- package/dist-ssg/client/index.ssg.html +2 -2
- package/package.json +4 -2
- package/dist/assets/index-DHeR2UYq.css +0 -1
- package/dist-ssg/client/assets/index-Brg9wIKi.css +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/angular-html-CU67Zn6k.js","assets/html-GMplVEZG.js","assets/javascript-wDzz0qaB.js","assets/css-DPfMkruS.js","assets/angular-ts-BwZT4LLn.js","assets/scss-OYdSNvt2.js","assets/apl-dKokRX4l.js","assets/xml-sdJ4AIDG.js","assets/java-CylS5w8V.js","assets/json-Cp-IABpG.js","assets/astro-CbQHKStN.js","assets/typescript-BPQ3VLAy.js","assets/postcss-CXtECtnM.js","assets/tsx-COt5Ahok.js","assets/blade-DVc8C-J4.js","assets/html-derivative-BFtXZ54Q.js","assets/sql-BLtJtn59.js","assets/bsl-BO_Y6i37.js","assets/sdbl-DVxCFoDh.js","assets/cairo-KRGpt6FW.js","assets/python-B6aJPvgy.js","assets/cobol-nwyudZeR.js","assets/coffee-Ch7k5sss.js","assets/cpp-CofmeUqb.js","assets/regexp-CDVJQ6XC.js","assets/glsl-DplSGwfg.js","assets/c-BIGW1oBm.js","assets/crystal-tKQVLTB8.js","assets/shellscript-Yzrsuije.js","assets/edge-BkV0erSs.js","assets/elixir-CDX3lj18.js","assets/elm-DbKCFpqz.js","assets/erb-BOJIQeun.js","assets/ruby-BvKwtOVI.js","assets/haml-B8DHNrY2.js","assets/graphql-ChdNCCLP.js","assets/jsx-g9-lgVsj.js","assets/lua-BbnMAYS6.js","assets/yaml-Buea-lGh.js","assets/erlang-DsQrWhSR.js","assets/markdown-Cvjx9yec.js","assets/fortran-fixed-form-BZjJHVRy.js","assets/fortran-free-form-D22FLkUw.js","assets/fsharp-CXgrBDvD.js","assets/gdresource-B7Tvp0Sc.js","assets/gdshader-DkwncUOv.js","assets/gdscript-DTMYz4Jt.js","assets/git-commit-F4YmCXRG.js","assets/diff-D97Zzqfu.js","assets/git-rebase-r7XF79zn.js","assets/glimmer-js-Rg0-pVw9.js","assets/glimmer-ts-U6CK756n.js","assets/hack-CaT9iCJl.js","assets/handlebars-BL8al0AC.js","assets/http-jrhK8wxY.js","assets/hurl-irOxFIW8.js","assets/csv-fuZLfV_i.js","assets/hxml-Bvhsp5Yf.js","assets/haxe-CzTSHFRz.js","assets/jinja-4LBKfQ-Z.js","assets/jison-wvAkD_A8.js","assets/julia-C8NyazO9.js","assets/r-DiinP2Uv.js","assets/latex-BdAV_C_H.js","assets/tex-CxkMU7Pf.js","assets/liquid-DYVedYrR.js","assets/marko-CPi9NSCl.js","assets/less-B1dDrJ26.js","assets/mdc-DUICxH0z.js","assets/nginx-DknmC5AR.js","assets/nim-CVrawwO9.js","assets/perl-C0TMdlhV.js","assets/php-CDn_0X-4.js","assets/pug-CGlum2m_.js","assets/qml-3beO22l8.js","assets/razor-CE9lU5zL.js","assets/csharp-K5feNrxe.js","assets/rst-B0xPkSld.js","assets/cmake-D1j8_8rp.js","assets/sas-cz2c8ADy.js","assets/shaderlab-Dg9Lc6iA.js","assets/hlsl-D3lLCCz7.js","assets/shellsession-BADoaaVG.js","assets/soy-Brmx7dQM.js","assets/sparql-rVzFXLq3.js","assets/turtle-BsS91CYL.js","assets/stata-BH5u7GGu.js","assets/svelte-3Dk4HxPD.js","assets/templ-W15q3VgB.js","assets/go-Dn2_MT6a.js","assets/ts-tags-zn1MmPIZ.js","assets/twig-CO9l9SDP.js","assets/vue-DnHKYNfI.js","assets/vue-html-CChd_i61.js","assets/vue-vine-8moa0y9V.js","assets/stylus-BEDo0Tqx.js","assets/xsl-CtQFsRM5.js","assets/dockerfile-BKs6k2Af.js","assets/simple-mode-GW_nhZxv.js","assets/factor-kuTfRLto.js","assets/nsis-LdVXkNf5.js","assets/pug-DeIclll2.js","assets/javascript-iXu5QeM3.js","assets/browserAll-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/angular-html-CU67Zn6k.js","assets/html-GMplVEZG.js","assets/javascript-wDzz0qaB.js","assets/css-DPfMkruS.js","assets/angular-ts-BwZT4LLn.js","assets/scss-OYdSNvt2.js","assets/apl-dKokRX4l.js","assets/xml-sdJ4AIDG.js","assets/java-CylS5w8V.js","assets/json-Cp-IABpG.js","assets/astro-CbQHKStN.js","assets/typescript-BPQ3VLAy.js","assets/postcss-CXtECtnM.js","assets/tsx-COt5Ahok.js","assets/blade-DVc8C-J4.js","assets/html-derivative-BFtXZ54Q.js","assets/sql-BLtJtn59.js","assets/bsl-BO_Y6i37.js","assets/sdbl-DVxCFoDh.js","assets/cairo-KRGpt6FW.js","assets/python-B6aJPvgy.js","assets/cobol-nwyudZeR.js","assets/coffee-Ch7k5sss.js","assets/cpp-CofmeUqb.js","assets/regexp-CDVJQ6XC.js","assets/glsl-DplSGwfg.js","assets/c-BIGW1oBm.js","assets/crystal-tKQVLTB8.js","assets/shellscript-Yzrsuije.js","assets/edge-BkV0erSs.js","assets/elixir-CDX3lj18.js","assets/elm-DbKCFpqz.js","assets/erb-BOJIQeun.js","assets/ruby-BvKwtOVI.js","assets/haml-B8DHNrY2.js","assets/graphql-ChdNCCLP.js","assets/jsx-g9-lgVsj.js","assets/lua-BbnMAYS6.js","assets/yaml-Buea-lGh.js","assets/erlang-DsQrWhSR.js","assets/markdown-Cvjx9yec.js","assets/fortran-fixed-form-BZjJHVRy.js","assets/fortran-free-form-D22FLkUw.js","assets/fsharp-CXgrBDvD.js","assets/gdresource-B7Tvp0Sc.js","assets/gdshader-DkwncUOv.js","assets/gdscript-DTMYz4Jt.js","assets/git-commit-F4YmCXRG.js","assets/diff-D97Zzqfu.js","assets/git-rebase-r7XF79zn.js","assets/glimmer-js-Rg0-pVw9.js","assets/glimmer-ts-U6CK756n.js","assets/hack-CaT9iCJl.js","assets/handlebars-BL8al0AC.js","assets/http-jrhK8wxY.js","assets/hurl-irOxFIW8.js","assets/csv-fuZLfV_i.js","assets/hxml-Bvhsp5Yf.js","assets/haxe-CzTSHFRz.js","assets/jinja-4LBKfQ-Z.js","assets/jison-wvAkD_A8.js","assets/julia-C8NyazO9.js","assets/r-DiinP2Uv.js","assets/latex-BdAV_C_H.js","assets/tex-CxkMU7Pf.js","assets/liquid-DYVedYrR.js","assets/marko-CPi9NSCl.js","assets/less-B1dDrJ26.js","assets/mdc-DUICxH0z.js","assets/nginx-DknmC5AR.js","assets/nim-CVrawwO9.js","assets/perl-C0TMdlhV.js","assets/php-CDn_0X-4.js","assets/pug-CGlum2m_.js","assets/qml-3beO22l8.js","assets/razor-CE9lU5zL.js","assets/csharp-K5feNrxe.js","assets/rst-B0xPkSld.js","assets/cmake-D1j8_8rp.js","assets/sas-cz2c8ADy.js","assets/shaderlab-Dg9Lc6iA.js","assets/hlsl-D3lLCCz7.js","assets/shellsession-BADoaaVG.js","assets/soy-Brmx7dQM.js","assets/sparql-rVzFXLq3.js","assets/turtle-BsS91CYL.js","assets/stata-BH5u7GGu.js","assets/svelte-3Dk4HxPD.js","assets/templ-W15q3VgB.js","assets/go-Dn2_MT6a.js","assets/ts-tags-zn1MmPIZ.js","assets/twig-CO9l9SDP.js","assets/vue-DnHKYNfI.js","assets/vue-html-CChd_i61.js","assets/vue-vine-8moa0y9V.js","assets/stylus-BEDo0Tqx.js","assets/xsl-CtQFsRM5.js","assets/dockerfile-BKs6k2Af.js","assets/simple-mode-GW_nhZxv.js","assets/factor-kuTfRLto.js","assets/nsis-LdVXkNf5.js","assets/pug-DeIclll2.js","assets/javascript-iXu5QeM3.js","assets/browserAll-B2a7F8Ye.js","assets/webworkerAll-D76uzO4q.js","assets/Filter-CkrLJqkU.js","assets/WebGPURenderer-BxGKz2BF.js","assets/BufferResource-_DDqHC7d.js","assets/RenderTargetSystem-CXHACu46.js","assets/WebGLRenderer-LRlNpU4y.js","assets/CanvasRenderer-CMGqjcCq.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))i(r);new MutationObserver(r=>{for(const s of r)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&i(o)}).observe(document,{childList:!0,subtree:!0});function n(r){const s={};return r.integrity&&(s.integrity=r.integrity),r.referrerPolicy&&(s.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?s.credentials="include":r.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function i(r){if(r.ep)return;r.ep=!0;const s=n(r);fetch(r.href,s)}})();function jx(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var h2={exports:{}},Pb={};var Nj;function Kie(){if(Nj)return Pb;Nj=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function n(i,r,s){var o=null;if(s!==void 0&&(o=""+s),r.key!==void 0&&(o=""+r.key),"key"in r){s={};for(var a in r)a!=="key"&&(s[a]=r[a])}else s=r;return r=s.ref,{$$typeof:t,type:i,key:o,ref:r!==void 0?r:null,props:s}}return Pb.Fragment=e,Pb.jsx=n,Pb.jsxs=n,Pb}var Qj;function Jie(){return Qj||(Qj=1,h2.exports=Kie()),h2.exports}var x=Jie(),d2={exports:{}},Ab={},f2={exports:{}},p2={};var Ij;function ere(){return Ij||(Ij=1,(function(t){function e(j,X){var te=j.length;j.push(X);e:for(;0<te;){var ee=te-1>>>1,I=j[ee];if(0<r(I,X))j[ee]=X,j[te]=I,te=ee;else break e}}function n(j){return j.length===0?null:j[0]}function i(j){if(j.length===0)return null;var X=j[0],te=j.pop();if(te!==X){j[0]=te;e:for(var ee=0,I=j.length,q=I>>>1;ee<q;){var J=2*(ee+1)-1,z=j[J],me=J+1,se=j[me];if(0>r(z,te))me<I&&0>r(se,z)?(j[ee]=se,j[me]=te,ee=me):(j[ee]=z,j[J]=te,ee=J);else if(me<I&&0>r(se,te))j[ee]=se,j[me]=te,ee=me;else break e}}return X}function r(j,X){var te=j.sortIndex-X.sortIndex;return te!==0?te:j.id-X.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;t.unstable_now=function(){return s.now()}}else{var o=Date,a=o.now();t.unstable_now=function(){return o.now()-a}}var l=[],u=[],d=1,f=null,m=3,g=!1,y=!1,_=!1,v=!1,w=typeof setTimeout=="function"?setTimeout:null,T=typeof clearTimeout=="function"?clearTimeout:null,C=typeof setImmediate<"u"?setImmediate:null;function E(j){for(var X=n(u);X!==null;){if(X.callback===null)i(u);else if(X.startTime<=j)i(u),X.sortIndex=X.expirationTime,e(l,X);else break;X=n(u)}}function R(j){if(_=!1,E(j),!y)if(n(l)!==null)y=!0,P||(P=!0,F());else{var X=n(u);X!==null&&Y(R,X.startTime-j)}}var P=!1,$=-1,N=5,B=-1;function D(){return v?!0:!(t.unstable_now()-B<N)}function V(){if(v=!1,P){var j=t.unstable_now();B=j;var X=!0;try{e:{y=!1,_&&(_=!1,T($),$=-1),g=!0;var te=m;try{t:{for(E(j),f=n(l);f!==null&&!(f.expirationTime>j&&D());){var ee=f.callback;if(typeof ee=="function"){f.callback=null,m=f.priorityLevel;var I=ee(f.expirationTime<=j);if(j=t.unstable_now(),typeof I=="function"){f.callback=I,E(j),X=!0;break t}f===n(l)&&i(l),E(j)}else i(l);f=n(l)}if(f!==null)X=!0;else{var q=n(u);q!==null&&Y(R,q.startTime-j),X=!1}}break e}finally{f=null,m=te,g=!1}X=void 0}}finally{X?F():P=!1}}}var F;if(typeof C=="function")F=function(){C(V)};else if(typeof MessageChannel<"u"){var Z=new MessageChannel,H=Z.port2;Z.port1.onmessage=V,F=function(){H.postMessage(null)}}else F=function(){w(V,0)};function Y(j,X){$=w(function(){j(t.unstable_now())},X)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(j){j.callback=null},t.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):N=0<j?Math.floor(1e3/j):5},t.unstable_getCurrentPriorityLevel=function(){return m},t.unstable_next=function(j){switch(m){case 1:case 2:case 3:var X=3;break;default:X=m}var te=m;m=X;try{return j()}finally{m=te}},t.unstable_requestPaint=function(){v=!0},t.unstable_runWithPriority=function(j,X){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var te=m;m=j;try{return X()}finally{m=te}},t.unstable_scheduleCallback=function(j,X,te){var ee=t.unstable_now();switch(typeof te=="object"&&te!==null?(te=te.delay,te=typeof te=="number"&&0<te?ee+te:ee):te=ee,j){case 1:var I=-1;break;case 2:I=250;break;case 5:I=1073741823;break;case 4:I=1e4;break;default:I=5e3}return I=te+I,j={id:d++,callback:X,priorityLevel:j,startTime:te,expirationTime:I,sortIndex:-1},te>ee?(j.sortIndex=te,e(u,j),n(l)===null&&j===n(u)&&(_?(T($),$=-1):_=!0,Y(R,te-ee))):(j.sortIndex=I,e(l,j),y||g||(y=!0,P||(P=!0,F()))),j},t.unstable_shouldYield=D,t.unstable_wrapCallback=function(j){var X=m;return function(){var te=m;m=X;try{return j.apply(this,arguments)}finally{m=te}}}})(p2)),p2}var jj;function tre(){return jj||(jj=1,f2.exports=ere()),f2.exports}var m2={exports:{}},He={};var Bj;function nre(){if(Bj)return He;Bj=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),o=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),f=Symbol.for("react.activity"),m=Symbol.iterator;function g(q){return q===null||typeof q!="object"?null:(q=m&&q[m]||q["@@iterator"],typeof q=="function"?q:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,v={};function w(q,J,z){this.props=q,this.context=J,this.refs=v,this.updater=z||y}w.prototype.isReactComponent={},w.prototype.setState=function(q,J){if(typeof q!="object"&&typeof q!="function"&&q!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,q,J,"setState")},w.prototype.forceUpdate=function(q){this.updater.enqueueForceUpdate(this,q,"forceUpdate")};function T(){}T.prototype=w.prototype;function C(q,J,z){this.props=q,this.context=J,this.refs=v,this.updater=z||y}var E=C.prototype=new T;E.constructor=C,_(E,w.prototype),E.isPureReactComponent=!0;var R=Array.isArray;function P(){}var $={H:null,A:null,T:null,S:null},N=Object.prototype.hasOwnProperty;function B(q,J,z){var me=z.ref;return{$$typeof:t,type:q,key:J,ref:me!==void 0?me:null,props:z}}function D(q,J){return B(q.type,J,q.props)}function V(q){return typeof q=="object"&&q!==null&&q.$$typeof===t}function F(q){var J={"=":"=0",":":"=2"};return"$"+q.replace(/[=:]/g,function(z){return J[z]})}var Z=/\/+/g;function H(q,J){return typeof q=="object"&&q!==null&&q.key!=null?F(""+q.key):J.toString(36)}function Y(q){switch(q.status){case"fulfilled":return q.value;case"rejected":throw q.reason;default:switch(typeof q.status=="string"?q.then(P,P):(q.status="pending",q.then(function(J){q.status==="pending"&&(q.status="fulfilled",q.value=J)},function(J){q.status==="pending"&&(q.status="rejected",q.reason=J)})),q.status){case"fulfilled":return q.value;case"rejected":throw q.reason}}throw q}function j(q,J,z,me,se){var de=typeof q;(de==="undefined"||de==="boolean")&&(q=null);var Se=!1;if(q===null)Se=!0;else switch(de){case"bigint":case"string":case"number":Se=!0;break;case"object":switch(q.$$typeof){case t:case e:Se=!0;break;case d:return Se=q._init,j(Se(q._payload),J,z,me,se)}}if(Se)return se=se(q),Se=me===""?"."+H(q,0):me,R(se)?(z="",Se!=null&&(z=Se.replace(Z,"$&/")+"/"),j(se,J,z,"",function(Lt){return Lt})):se!=null&&(V(se)&&(se=D(se,z+(se.key==null||q&&q.key===se.key?"":(""+se.key).replace(Z,"$&/")+"/")+Se)),J.push(se)),1;Se=0;var je=me===""?".":me+":";if(R(q))for(var Be=0;Be<q.length;Be++)me=q[Be],de=je+H(me,Be),Se+=j(me,J,z,de,se);else if(Be=g(q),typeof Be=="function")for(q=Be.call(q),Be=0;!(me=q.next()).done;)me=me.value,de=je+H(me,Be++),Se+=j(me,J,z,de,se);else if(de==="object"){if(typeof q.then=="function")return j(Y(q),J,z,me,se);throw J=String(q),Error("Objects are not valid as a React child (found: "+(J==="[object Object]"?"object with keys {"+Object.keys(q).join(", ")+"}":J)+"). If you meant to render a collection of children, use an array instead.")}return Se}function X(q,J,z){if(q==null)return q;var me=[],se=0;return j(q,me,"","",function(de){return J.call(z,de,se++)}),me}function te(q){if(q._status===-1){var J=q._result;J=J(),J.then(function(z){(q._status===0||q._status===-1)&&(q._status=1,q._result=z)},function(z){(q._status===0||q._status===-1)&&(q._status=2,q._result=z)}),q._status===-1&&(q._status=0,q._result=J)}if(q._status===1)return q._result.default;throw q._result}var ee=typeof reportError=="function"?reportError:function(q){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var J=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof q=="object"&&q!==null&&typeof q.message=="string"?String(q.message):String(q),error:q});if(!window.dispatchEvent(J))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",q);return}console.error(q)},I={map:X,forEach:function(q,J,z){X(q,function(){J.apply(this,arguments)},z)},count:function(q){var J=0;return X(q,function(){J++}),J},toArray:function(q){return X(q,function(J){return J})||[]},only:function(q){if(!V(q))throw Error("React.Children.only expected to receive a single React element child.");return q}};return He.Activity=f,He.Children=I,He.Component=w,He.Fragment=n,He.Profiler=r,He.PureComponent=C,He.StrictMode=i,He.Suspense=l,He.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=$,He.__COMPILER_RUNTIME={__proto__:null,c:function(q){return $.H.useMemoCache(q)}},He.cache=function(q){return function(){return q.apply(null,arguments)}},He.cacheSignal=function(){return null},He.cloneElement=function(q,J,z){if(q==null)throw Error("The argument must be a React element, but you passed "+q+".");var me=_({},q.props),se=q.key;if(J!=null)for(de in J.key!==void 0&&(se=""+J.key),J)!N.call(J,de)||de==="key"||de==="__self"||de==="__source"||de==="ref"&&J.ref===void 0||(me[de]=J[de]);var de=arguments.length-2;if(de===1)me.children=z;else if(1<de){for(var Se=Array(de),je=0;je<de;je++)Se[je]=arguments[je+2];me.children=Se}return B(q.type,se,me)},He.createContext=function(q){return q={$$typeof:o,_currentValue:q,_currentValue2:q,_threadCount:0,Provider:null,Consumer:null},q.Provider=q,q.Consumer={$$typeof:s,_context:q},q},He.createElement=function(q,J,z){var me,se={},de=null;if(J!=null)for(me in J.key!==void 0&&(de=""+J.key),J)N.call(J,me)&&me!=="key"&&me!=="__self"&&me!=="__source"&&(se[me]=J[me]);var Se=arguments.length-2;if(Se===1)se.children=z;else if(1<Se){for(var je=Array(Se),Be=0;Be<Se;Be++)je[Be]=arguments[Be+2];se.children=je}if(q&&q.defaultProps)for(me in Se=q.defaultProps,Se)se[me]===void 0&&(se[me]=Se[me]);return B(q,de,se)},He.createRef=function(){return{current:null}},He.forwardRef=function(q){return{$$typeof:a,render:q}},He.isValidElement=V,He.lazy=function(q){return{$$typeof:d,_payload:{_status:-1,_result:q},_init:te}},He.memo=function(q,J){return{$$typeof:u,type:q,compare:J===void 0?null:J}},He.startTransition=function(q){var J=$.T,z={};$.T=z;try{var me=q(),se=$.S;se!==null&&se(z,me),typeof me=="object"&&me!==null&&typeof me.then=="function"&&me.then(P,ee)}catch(de){ee(de)}finally{J!==null&&z.types!==null&&(J.types=z.types),$.T=J}},He.unstable_useCacheRefresh=function(){return $.H.useCacheRefresh()},He.use=function(q){return $.H.use(q)},He.useActionState=function(q,J,z){return $.H.useActionState(q,J,z)},He.useCallback=function(q,J){return $.H.useCallback(q,J)},He.useContext=function(q){return $.H.useContext(q)},He.useDebugValue=function(){},He.useDeferredValue=function(q,J){return $.H.useDeferredValue(q,J)},He.useEffect=function(q,J){return $.H.useEffect(q,J)},He.useEffectEvent=function(q){return $.H.useEffectEvent(q)},He.useId=function(){return $.H.useId()},He.useImperativeHandle=function(q,J,z){return $.H.useImperativeHandle(q,J,z)},He.useInsertionEffect=function(q,J){return $.H.useInsertionEffect(q,J)},He.useLayoutEffect=function(q,J){return $.H.useLayoutEffect(q,J)},He.useMemo=function(q,J){return $.H.useMemo(q,J)},He.useOptimistic=function(q,J){return $.H.useOptimistic(q,J)},He.useReducer=function(q,J,z){return $.H.useReducer(q,J,z)},He.useRef=function(q){return $.H.useRef(q)},He.useState=function(q){return $.H.useState(q)},He.useSyncExternalStore=function(q,J,z){return $.H.useSyncExternalStore(q,J,z)},He.useTransition=function(){return $.H.useTransition()},He.version="19.2.0",He}var zj;function Bx(){return zj||(zj=1,m2.exports=nre()),m2.exports}var g2={exports:{}},Ui={};var Vj;function ire(){if(Vj)return Ui;Vj=1;var t=Bx();function e(l){var u="https://react.dev/errors/"+l;if(1<arguments.length){u+="?args[]="+encodeURIComponent(arguments[1]);for(var d=2;d<arguments.length;d++)u+="&args[]="+encodeURIComponent(arguments[d])}return"Minified React error #"+l+"; visit "+u+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var i={d:{f:n,r:function(){throw Error(e(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},r=Symbol.for("react.portal");function s(l,u,d){var f=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:r,key:f==null?null:""+f,children:l,containerInfo:u,implementation:d}}var o=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function a(l,u){if(l==="font")return"";if(typeof u=="string")return u==="use-credentials"?u:""}return Ui.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,Ui.createPortal=function(l,u){var d=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!u||u.nodeType!==1&&u.nodeType!==9&&u.nodeType!==11)throw Error(e(299));return s(l,u,null,d)},Ui.flushSync=function(l){var u=o.T,d=i.p;try{if(o.T=null,i.p=2,l)return l()}finally{o.T=u,i.p=d,i.d.f()}},Ui.preconnect=function(l,u){typeof l=="string"&&(u?(u=u.crossOrigin,u=typeof u=="string"?u==="use-credentials"?u:"":void 0):u=null,i.d.C(l,u))},Ui.prefetchDNS=function(l){typeof l=="string"&&i.d.D(l)},Ui.preinit=function(l,u){if(typeof l=="string"&&u&&typeof u.as=="string"){var d=u.as,f=a(d,u.crossOrigin),m=typeof u.integrity=="string"?u.integrity:void 0,g=typeof u.fetchPriority=="string"?u.fetchPriority:void 0;d==="style"?i.d.S(l,typeof u.precedence=="string"?u.precedence:void 0,{crossOrigin:f,integrity:m,fetchPriority:g}):d==="script"&&i.d.X(l,{crossOrigin:f,integrity:m,fetchPriority:g,nonce:typeof u.nonce=="string"?u.nonce:void 0})}},Ui.preinitModule=function(l,u){if(typeof l=="string")if(typeof u=="object"&&u!==null){if(u.as==null||u.as==="script"){var d=a(u.as,u.crossOrigin);i.d.M(l,{crossOrigin:d,integrity:typeof u.integrity=="string"?u.integrity:void 0,nonce:typeof u.nonce=="string"?u.nonce:void 0})}}else u==null&&i.d.M(l)},Ui.preload=function(l,u){if(typeof l=="string"&&typeof u=="object"&&u!==null&&typeof u.as=="string"){var d=u.as,f=a(d,u.crossOrigin);i.d.L(l,d,{crossOrigin:f,integrity:typeof u.integrity=="string"?u.integrity:void 0,nonce:typeof u.nonce=="string"?u.nonce:void 0,type:typeof u.type=="string"?u.type:void 0,fetchPriority:typeof u.fetchPriority=="string"?u.fetchPriority:void 0,referrerPolicy:typeof u.referrerPolicy=="string"?u.referrerPolicy:void 0,imageSrcSet:typeof u.imageSrcSet=="string"?u.imageSrcSet:void 0,imageSizes:typeof u.imageSizes=="string"?u.imageSizes:void 0,media:typeof u.media=="string"?u.media:void 0})}},Ui.preloadModule=function(l,u){if(typeof l=="string")if(u){var d=a(u.as,u.crossOrigin);i.d.m(l,{as:typeof u.as=="string"&&u.as!=="script"?u.as:void 0,crossOrigin:d,integrity:typeof u.integrity=="string"?u.integrity:void 0})}else i.d.m(l)},Ui.requestFormReset=function(l){i.d.r(l)},Ui.unstable_batchedUpdates=function(l,u){return l(u)},Ui.useFormState=function(l,u,d){return o.H.useFormState(l,u,d)},Ui.useFormStatus=function(){return o.H.useHostTransitionStatus()},Ui.version="19.2.0",Ui}var qj;function yX(){if(qj)return g2.exports;qj=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),g2.exports=ire(),g2.exports}var Xj;function rre(){if(Xj)return Ab;Xj=1;var t=tre(),e=Bx(),n=yX();function i(c){var h="https://react.dev/errors/"+c;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)h+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+c+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(c){return!(!c||c.nodeType!==1&&c.nodeType!==9&&c.nodeType!==11)}function s(c){var h=c,p=c;if(c.alternate)for(;h.return;)h=h.return;else{c=h;do h=c,(h.flags&4098)!==0&&(p=h.return),c=h.return;while(c)}return h.tag===3?p:null}function o(c){if(c.tag===13){var h=c.memoizedState;if(h===null&&(c=c.alternate,c!==null&&(h=c.memoizedState)),h!==null)return h.dehydrated}return null}function a(c){if(c.tag===31){var h=c.memoizedState;if(h===null&&(c=c.alternate,c!==null&&(h=c.memoizedState)),h!==null)return h.dehydrated}return null}function l(c){if(s(c)!==c)throw Error(i(188))}function u(c){var h=c.alternate;if(!h){if(h=s(c),h===null)throw Error(i(188));return h!==c?null:c}for(var p=c,b=h;;){var S=p.return;if(S===null)break;var k=S.alternate;if(k===null){if(b=S.return,b!==null){p=b;continue}break}if(S.child===k.child){for(k=S.child;k;){if(k===p)return l(S),c;if(k===b)return l(S),h;k=k.sibling}throw Error(i(188))}if(p.return!==b.return)p=S,b=k;else{for(var A=!1,Q=S.child;Q;){if(Q===p){A=!0,p=S,b=k;break}if(Q===b){A=!0,b=S,p=k;break}Q=Q.sibling}if(!A){for(Q=k.child;Q;){if(Q===p){A=!0,p=k,b=S;break}if(Q===b){A=!0,b=k,p=S;break}Q=Q.sibling}if(!A)throw Error(i(189))}}if(p.alternate!==b)throw Error(i(190))}if(p.tag!==3)throw Error(i(188));return p.stateNode.current===p?c:h}function d(c){var h=c.tag;if(h===5||h===26||h===27||h===6)return c;for(c=c.child;c!==null;){if(h=d(c),h!==null)return h;c=c.sibling}return null}var f=Object.assign,m=Symbol.for("react.element"),g=Symbol.for("react.transitional.element"),y=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),T=Symbol.for("react.consumer"),C=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),$=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),B=Symbol.for("react.activity"),D=Symbol.for("react.memo_cache_sentinel"),V=Symbol.iterator;function F(c){return c===null||typeof c!="object"?null:(c=V&&c[V]||c["@@iterator"],typeof c=="function"?c:null)}var Z=Symbol.for("react.client.reference");function H(c){if(c==null)return null;if(typeof c=="function")return c.$$typeof===Z?null:c.displayName||c.name||null;if(typeof c=="string")return c;switch(c){case _:return"Fragment";case w:return"Profiler";case v:return"StrictMode";case R:return"Suspense";case P:return"SuspenseList";case B:return"Activity"}if(typeof c=="object")switch(c.$$typeof){case y:return"Portal";case C:return c.displayName||"Context";case T:return(c._context.displayName||"Context")+".Consumer";case E:var h=c.render;return c=c.displayName,c||(c=h.displayName||h.name||"",c=c!==""?"ForwardRef("+c+")":"ForwardRef"),c;case $:return h=c.displayName||null,h!==null?h:H(c.type)||"Memo";case N:h=c._payload,c=c._init;try{return H(c(h))}catch{}}return null}var Y=Array.isArray,j=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te={pending:!1,data:null,method:null,action:null},ee=[],I=-1;function q(c){return{current:c}}function J(c){0>I||(c.current=ee[I],ee[I]=null,I--)}function z(c,h){I++,ee[I]=c.current,c.current=h}var me=q(null),se=q(null),de=q(null),Se=q(null);function je(c,h){switch(z(de,h),z(se,c),z(me,null),h.nodeType){case 9:case 11:c=(c=h.documentElement)&&(c=c.namespaceURI)?sj(c):0;break;default:if(c=h.tagName,h=h.namespaceURI)h=sj(h),c=oj(h,c);else switch(c){case"svg":c=1;break;case"math":c=2;break;default:c=0}}J(me),z(me,c)}function Be(){J(me),J(se),J(de)}function Lt(c){c.memoizedState!==null&&z(Se,c);var h=me.current,p=oj(h,c.type);h!==p&&(z(se,c),z(me,p))}function Ge(c){se.current===c&&(J(me),J(se)),Se.current===c&&(J(Se),wb._currentValue=te)}var Me,Ht;function Ot(c){if(Me===void 0)try{throw Error()}catch(p){var h=p.stack.trim().match(/\n( *(at )?)/);Me=h&&h[1]||"",Ht=-1<p.stack.indexOf(`
|
|
3
3
|
at`)?" (<anonymous>)":-1<p.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
4
4
|
`+Me+c+Ht}var Ae=!1;function Tn(c,h){if(!c||Ae)return"";Ae=!0;var p=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var b={DetermineComponentFrameRoot:function(){try{if(h){var fe=function(){throw Error()};if(Object.defineProperty(fe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(fe,[])}catch(ae){var re=ae}Reflect.construct(c,[],fe)}else{try{fe.call()}catch(ae){re=ae}c.call(fe.prototype)}}else{try{throw Error()}catch(ae){re=ae}(fe=c())&&typeof fe.catch=="function"&&fe.catch(function(){})}}catch(ae){if(ae&&re&&typeof ae.stack=="string")return[ae.stack,re.stack]}return[null,null]}};b.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var S=Object.getOwnPropertyDescriptor(b.DetermineComponentFrameRoot,"name");S&&S.configurable&&Object.defineProperty(b.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var k=b.DetermineComponentFrameRoot(),A=k[0],Q=k[1];if(A&&Q){var U=A.split(`
|
|
@@ -376,7 +376,7 @@ ${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.pus
|
|
|
376
376
|
`+e.scrub();for(let i of e.markers)n.marks.push(i)}return this.finishLeaf(n),null}stopAt(e){if(this.stoppedAt!=null&&this.stoppedAt<e)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=e}reuseFragment(e){if(!this.fragments.moveTo(this.absoluteLineStart+e,this.absoluteLineStart)||!this.fragments.matches(this.block.hash))return!1;let n=this.fragments.takeNodes(this);return n?(this.absoluteLineStart+=n,this.lineStart=uK(this.absoluteLineStart,this.ranges),this.moveRangeI(),this.absoluteLineStart<this.to?(this.lineStart++,this.absoluteLineStart++,this.readLine()):(this.atEnd=!0,this.readLine()),!0):!1}get depth(){return this.stack.length}parentType(e=this.depth-1){return this.parser.nodeSet.types[this.stack[e].type]}nextLine(){return this.lineStart+=this.line.text.length,this.absoluteLineEnd>=this.to?(this.absoluteLineStart=this.absoluteLineEnd,this.atEnd=!0,this.readLine(),!1):(this.lineStart++,this.absoluteLineStart=this.absoluteLineEnd+1,this.moveRangeI(),this.readLine(),!0)}peekLine(){return this.scanLine(this.absoluteLineEnd+1).text}moveRangeI(){for(;this.rangeI<this.ranges.length-1&&this.absoluteLineStart>=this.ranges[this.rangeI].to;)this.rangeI++,this.absoluteLineStart=Math.max(this.absoluteLineStart,this.ranges[this.rangeI].from)}scanLine(e){let n=h2e;if(n.end=e,e>=this.to)n.text="";else if(n.text=this.lineChunkAt(e),n.end+=n.text.length,this.ranges.length>1){let i=this.absoluteLineStart,r=this.rangeI;for(;this.ranges[r].to<n.end;){r++;let s=this.ranges[r].from,o=this.lineChunkAt(s);n.end=s+o.length,n.text=n.text.slice(0,this.ranges[r-1].to-i)+o,i=n.end-n.text.length}}return n}readLine(){let{line:e}=this,{text:n,end:i}=this.scanLine(this.absoluteLineStart);for(this.absoluteLineEnd=i,e.reset(n);e.depth<this.stack.length;e.depth++){let r=this.stack[e.depth],s=this.parser.skipContextMarkup[r.type];if(!s)throw new Error("Unhandled block context "+Oe[r.type]);let o=this.line.markers.length;if(!s(r,this,e)){this.line.markers.length>o&&(r.end=this.line.markers[this.line.markers.length-1].to);break}e.forward()}}lineChunkAt(e){let n=this.input.chunk(e),i;if(this.input.lineChunks)i=n==`
|
|
377
377
|
`?"":n;else{let r=n.indexOf(`
|
|
378
378
|
`);i=r<0?n:n.slice(0,r)}return e+i.length>this.to?i.slice(0,this.to-e):i}prevLineEnd(){return this.atEnd?this.lineStart:this.lineStart-1}startContext(e,n,i=0){this.block=yw.create(e,i,this.lineStart+n,this.block.hash,this.lineStart+this.line.text.length),this.stack.push(this.block)}startComposite(e,n,i=0){this.startContext(this.parser.getNodeType(e),n,i)}addNode(e,n,i){typeof e=="number"&&(e=new ht(this.parser.nodeSet.types[e],Hm,Hm,(i??this.prevLineEnd())-n)),this.block.addChild(e,n-this.block.from)}addElement(e){this.block.addChild(e.toTree(this.parser.nodeSet),e.from-this.block.from)}addLeafElement(e,n){this.addNode(this.buffer.writeElements(K$(n.children,e.marks),-n.from).finish(n.type,n.to-n.from),n.from)}finishContext(){let e=this.stack.pop(),n=this.stack[this.stack.length-1];n.addChild(e.toTree(this.parser.nodeSet),e.from-n.from),this.block=n}finish(){for(;this.stack.length>1;)this.finishContext();return this.addGaps(this.block.toTree(this.parser.nodeSet,this.lineStart))}addGaps(e){return this.ranges.length>1?tK(this.ranges,0,e.topNode,this.ranges[0].from,this.reusePlaceholders):e}finishLeaf(e){for(let i of e.parsers)if(i.finish(this,e))return;let n=K$(this.parser.parseInline(e.content,e.start),e.marks);this.addNode(this.buffer.writeElements(n,-e.start).finish(Oe.Paragraph,e.content.length),e.start)}elt(e,n,i,r){return typeof e=="string"?vt(this.parser.getNodeType(e),n,i,r):new rK(e,n)}get buffer(){return new iK(this.parser.nodeSet)}}function tK(t,e,n,i,r){let s=t[e].to,o=[],a=[],l=n.from+i;function u(d,f){for(;f?d>=s:d>s;){let m=t[e+1].from-s;i+=m,d+=m,e++,s=t[e].to}}for(let d=n.firstChild;d;d=d.nextSibling){u(d.from+i,!0);let f=d.from+i,m,g=r.get(d.tree);g?m=g:d.to+i>s?(m=tK(t,e,d,i,r),u(d.to+i,!1)):m=d.toTree(),o.push(m),a.push(f-l)}return u(n.to+i,!1),new ht(n.type,o,a,n.to+i-l,n.tree?n.tree.propValues:void 0)}class zk extends Tk{constructor(e,n,i,r,s,o,a,l,u){super(),this.nodeSet=e,this.blockParsers=n,this.leafBlockParsers=i,this.blockNames=r,this.endLeafBlock=s,this.skipContextMarkup=o,this.inlineParsers=a,this.inlineNames=l,this.wrappers=u,this.nodeTypes=Object.create(null);for(let d of e.types)this.nodeTypes[d.name]=d.id}createParse(e,n,i){let r=new d2e(this,e,n,i);for(let s of this.wrappers)r=s(r,e,n,i);return r}configure(e){let n=Y$(e);if(!n)return this;let{nodeSet:i,skipContextMarkup:r}=this,s=this.blockParsers.slice(),o=this.leafBlockParsers.slice(),a=this.blockNames.slice(),l=this.inlineParsers.slice(),u=this.inlineNames.slice(),d=this.endLeafBlock.slice(),f=this.wrappers;if(Gb(n.defineNodes)){r=Object.assign({},r);let m=i.types.slice(),g;for(let y of n.defineNodes){let{name:_,block:v,composite:w,style:T}=typeof y=="string"?{name:y}:y;if(m.some(R=>R.name==_))continue;w&&(r[m.length]=(R,P,$)=>w(P,$,R.value));let C=m.length,E=w?["Block","BlockContext"]:v?C>=Oe.ATXHeading1&&C<=Oe.SetextHeading2?["Block","LeafBlock","Heading"]:["Block","LeafBlock"]:void 0;m.push(Yn.define({id:C,name:_,props:E&&[[Ue.group,E]]})),T&&(g||(g={}),Array.isArray(T)||T instanceof $a?g[_]=T:Object.assign(g,T))}i=new Sg(m),g&&(i=i.extend(dc(g)))}if(Gb(n.props)&&(i=i.extend(...n.props)),Gb(n.remove))for(let m of n.remove){let g=this.blockNames.indexOf(m),y=this.inlineNames.indexOf(m);g>-1&&(s[g]=o[g]=void 0),y>-1&&(l[y]=void 0)}if(Gb(n.parseBlock))for(let m of n.parseBlock){let g=a.indexOf(m.name);if(g>-1)s[g]=m.parse,o[g]=m.leaf;else{let y=m.before?Mv(a,m.before):m.after?Mv(a,m.after)+1:a.length-1;s.splice(y,0,m.parse),o.splice(y,0,m.leaf),a.splice(y,0,m.name)}m.endLeaf&&d.push(m.endLeaf)}if(Gb(n.parseInline))for(let m of n.parseInline){let g=u.indexOf(m.name);if(g>-1)l[g]=m.parse;else{let y=m.before?Mv(u,m.before):m.after?Mv(u,m.after)+1:u.length-1;l.splice(y,0,m.parse),u.splice(y,0,m.name)}}return n.wrap&&(f=f.concat(n.wrap)),new zk(i,s,o,a,d,r,l,u,f)}getNodeType(e){let n=this.nodeTypes[e];if(n==null)throw new RangeError(`Unknown node type '${e}'`);return n}parseInline(e,n){let i=new d5(this,e,n);e:for(let r=n;r<i.end;){let s=i.char(r);for(let o of this.inlineParsers)if(o){let a=o(i,s,r);if(a>=0){r=a;continue e}}r++}return i.resolveMarkers(0)}}function Gb(t){return t!=null&&t.length>0}function Y$(t){if(!Array.isArray(t))return t;if(t.length==0)return null;let e=Y$(t[0]);if(t.length==1)return e;let n=Y$(t.slice(1));if(!n||!e)return e||n;let i=(o,a)=>(o||Hm).concat(a||Hm),r=e.wrap,s=n.wrap;return{props:i(e.props,n.props),defineNodes:i(e.defineNodes,n.defineNodes),parseBlock:i(e.parseBlock,n.parseBlock),parseInline:i(e.parseInline,n.parseInline),remove:i(e.remove,n.remove),wrap:r?s?(o,a,l,u)=>r(s(o,a,l,u),a,l,u):r:s}}function Mv(t,e){let n=t.indexOf(e);if(n<0)throw new RangeError(`Position specified relative to unknown parser ${e}`);return n}let nK=[Yn.none];for(let t=1,e;e=Oe[t];t++)nK[t]=Yn.define({id:t,name:e,props:t>=Oe.Escape?[]:[[Ue.group,t in FY?["Block","BlockContext"]:["Block","LeafBlock"]]],top:e=="Document"});const Hm=[];let iK=class{constructor(e){this.nodeSet=e,this.content=[],this.nodes=[]}write(e,n,i,r=0){return this.content.push(e,n,i,4+r*4),this}writeElements(e,n=0){for(let i of e)i.writeTo(this,n);return this}finish(e,n){return ht.build({buffer:this.content,nodeSet:this.nodeSet,reused:this.nodes,topID:e,length:n})}},mx=class{constructor(e,n,i,r=Hm){this.type=e,this.from=n,this.to=i,this.children=r}writeTo(e,n){let i=e.content.length;e.writeElements(this.children,n),e.content.push(this.type,this.from+n,this.to+n,e.content.length+4-i)}toTree(e){return new iK(e).writeElements(this.children,-this.from).finish(this.type,this.to-this.from)}};class rK{constructor(e,n){this.tree=e,this.from=n}get to(){return this.from+this.tree.length}get type(){return this.tree.type.id}get children(){return Hm}writeTo(e,n){e.nodes.push(this.tree),e.content.push(e.nodes.length-1,this.from+n,this.to+n,-1)}toTree(){return this.tree}}function vt(t,e,n,i){return new mx(t,e,n,i)}const sK={resolve:"Emphasis",mark:"EmphasisMark"},oK={resolve:"Emphasis",mark:"EmphasisMark"},bd={},xw={};class Cs{constructor(e,n,i,r){this.type=e,this.from=n,this.to=i,this.side=r}}const y8="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~";let gx=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\u2010-\u2027]/;try{gx=new RegExp("[\\p{S}|\\p{P}]","u")}catch{}const FP={Escape(t,e,n){if(e!=92||n==t.end-1)return-1;let i=t.char(n+1);for(let r=0;r<y8.length;r++)if(y8.charCodeAt(r)==i)return t.append(vt(Oe.Escape,n,n+2));return-1},Entity(t,e,n){if(e!=38)return-1;let i=/^(?:#\d+|#x[a-f\d]+|\w+);/i.exec(t.slice(n+1,n+31));return i?t.append(vt(Oe.Entity,n,n+1+i[0].length)):-1},InlineCode(t,e,n){if(e!=96||n&&t.char(n-1)==96)return-1;let i=n+1;for(;i<t.end&&t.char(i)==96;)i++;let r=i-n,s=0;for(;i<t.end;i++)if(t.char(i)==96){if(s++,s==r&&t.char(i+1)!=96)return t.append(vt(Oe.InlineCode,n,i+1,[vt(Oe.CodeMark,n,n+r),vt(Oe.CodeMark,i+1-r,i+1)]))}else s=0;return-1},HTMLTag(t,e,n){if(e!=60||n==t.end-1)return-1;let i=t.slice(n+1,t.end),r=/^(?:[a-z][-\w+.]+:[^\s>]+|[a-z\d.!#$%&'*+/=?^_`{|}~-]+@[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?(?:\.[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?)*)>/i.exec(i);if(r)return t.append(vt(Oe.Autolink,n,n+1+r[0].length,[vt(Oe.LinkMark,n,n+1),vt(Oe.URL,n+1,n+r[0].length),vt(Oe.LinkMark,n+r[0].length,n+1+r[0].length)]));let s=/^!--[^>](?:-[^-]|[^-])*?-->/i.exec(i);if(s)return t.append(vt(Oe.Comment,n,n+1+s[0].length));let o=/^\?[^]*?\?>/.exec(i);if(o)return t.append(vt(Oe.ProcessingInstruction,n,n+1+o[0].length));let a=/^(?:![A-Z][^]*?>|!\[CDATA\[[^]*?\]\]>|\/\s*[a-zA-Z][\w-]*\s*>|\s*[a-zA-Z][\w-]*(\s+[a-zA-Z:_][\w-.:]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*(\/\s*)?>)/.exec(i);return a?t.append(vt(Oe.HTMLTag,n,n+1+a[0].length)):-1},Emphasis(t,e,n){if(e!=95&&e!=42)return-1;let i=n+1;for(;t.char(i)==e;)i++;let r=t.slice(n-1,n),s=t.slice(i,i+1),o=gx.test(r),a=gx.test(s),l=/\s|^$/.test(r),u=/\s|^$/.test(s),d=!u&&(!a||l||o),f=!l&&(!o||u||a),m=d&&(e==42||!f||o),g=f&&(e==42||!d||a);return t.append(new Cs(e==95?sK:oK,n,i,(m?1:0)|(g?2:0)))},HardBreak(t,e,n){if(e==92&&t.char(n+1)==10)return t.append(vt(Oe.HardBreak,n,n+2));if(e==32){let i=n+1;for(;t.char(i)==32;)i++;if(t.char(i)==10&&i>=n+2)return t.append(vt(Oe.HardBreak,n,i+1))}return-1},Link(t,e,n){return e==91?t.append(new Cs(bd,n,n+1,1)):-1},Image(t,e,n){return e==33&&t.char(n+1)==91?t.append(new Cs(xw,n,n+2,1)):-1},LinkEnd(t,e,n){if(e!=93)return-1;for(let i=t.parts.length-1;i>=0;i--){let r=t.parts[i];if(r instanceof Cs&&(r.type==bd||r.type==xw)){if(!r.side||t.skipSpace(r.to)==n&&!/[(\[]/.test(t.slice(n+1,n+2)))return t.parts[i]=null,-1;let s=t.takeContent(i),o=t.parts[i]=f2e(t,s,r.type==bd?Oe.Link:Oe.Image,r.from,n+1);if(r.type==bd)for(let a=0;a<i;a++){let l=t.parts[a];l instanceof Cs&&l.type==bd&&(l.side=0)}return o.to}}return-1}};function f2e(t,e,n,i,r){let{text:s}=t,o=t.char(r),a=r;if(e.unshift(vt(Oe.LinkMark,i,i+(n==Oe.Image?2:1))),e.push(vt(Oe.LinkMark,r-1,r)),o==40){let l=t.skipSpace(r+1),u=aK(s,l-t.offset,t.offset),d;u&&(l=t.skipSpace(u.to),l!=u.to&&(d=lK(s,l-t.offset,t.offset),d&&(l=t.skipSpace(d.to)))),t.char(l)==41&&(e.push(vt(Oe.LinkMark,r,r+1)),a=l+1,u&&e.push(u),d&&e.push(d),e.push(vt(Oe.LinkMark,l,a)))}else if(o==91){let l=cK(s,r-t.offset,t.offset,!1);l&&(e.push(l),a=l.to)}return vt(n,i,a,e)}function aK(t,e,n){if(t.charCodeAt(e)==60){for(let r=e+1;r<t.length;r++){let s=t.charCodeAt(r);if(s==62)return vt(Oe.URL,e+n,r+1+n);if(s==60||s==10)return!1}return null}else{let r=0,s=e;for(let o=!1;s<t.length;s++){let a=t.charCodeAt(s);if(Ro(a))break;if(o)o=!1;else if(a==40)r++;else if(a==41){if(!r)break;r--}else a==92&&(o=!0)}return s>e?vt(Oe.URL,e+n,s+n):s==t.length?null:!1}}function lK(t,e,n){let i=t.charCodeAt(e);if(i!=39&&i!=34&&i!=40)return!1;let r=i==40?41:i;for(let s=e+1,o=!1;s<t.length;s++){let a=t.charCodeAt(s);if(o)o=!1;else{if(a==r)return vt(Oe.LinkTitle,e+n,s+1+n);a==92&&(o=!0)}}return null}function cK(t,e,n,i){for(let r=!1,s=e+1,o=Math.min(t.length,s+999);s<o;s++){let a=t.charCodeAt(s);if(r)r=!1;else{if(a==93)return i?!1:vt(Oe.LinkLabel,e+n,s+1+n);if(i&&!Ro(a)&&(i=!1),a==91)return!1;a==92&&(r=!0)}}return null}class d5{constructor(e,n,i){this.parser=e,this.text=n,this.offset=i,this.parts=[]}char(e){return e>=this.end?-1:this.text.charCodeAt(e-this.offset)}get end(){return this.offset+this.text.length}slice(e,n){return this.text.slice(e-this.offset,n-this.offset)}append(e){return this.parts.push(e),e.to}addDelimiter(e,n,i,r,s){return this.append(new Cs(e,n,i,(r?1:0)|(s?2:0)))}get hasOpenLink(){for(let e=this.parts.length-1;e>=0;e--){let n=this.parts[e];if(n instanceof Cs&&(n.type==bd||n.type==xw))return!0}return!1}addElement(e){return this.append(e)}resolveMarkers(e){for(let i=e;i<this.parts.length;i++){let r=this.parts[i];if(!(r instanceof Cs&&r.type.resolve&&r.side&2))continue;let s=r.type==sK||r.type==oK,o=r.to-r.from,a,l=i-1;for(;l>=e;l--){let _=this.parts[l];if(_ instanceof Cs&&_.side&1&&_.type==r.type&&!(s&&(r.side&1||_.side&2)&&(_.to-_.from+o)%3==0&&((_.to-_.from)%3||o%3))){a=_;break}}if(!a)continue;let u=r.type.resolve,d=[],f=a.from,m=r.to;if(s){let _=Math.min(2,a.to-a.from,o);f=a.to-_,m=r.from+_,u=_==1?"Emphasis":"StrongEmphasis"}a.type.mark&&d.push(this.elt(a.type.mark,f,a.to));for(let _=l+1;_<i;_++)this.parts[_]instanceof mx&&d.push(this.parts[_]),this.parts[_]=null;r.type.mark&&d.push(this.elt(r.type.mark,r.from,m));let g=this.elt(u,f,m,d);this.parts[l]=s&&a.from!=f?new Cs(a.type,a.from,f,a.side):null,(this.parts[i]=s&&r.to!=m?new Cs(r.type,m,r.to,r.side):null)?this.parts.splice(i,0,g):this.parts[i]=g}let n=[];for(let i=e;i<this.parts.length;i++){let r=this.parts[i];r instanceof mx&&n.push(r)}return n}findOpeningDelimiter(e){for(let n=this.parts.length-1;n>=0;n--){let i=this.parts[n];if(i instanceof Cs&&i.type==e&&i.side&1)return n}return null}takeContent(e){let n=this.resolveMarkers(e);return this.parts.length=e,n}getDelimiterAt(e){let n=this.parts[e];return n instanceof Cs?n:null}skipSpace(e){return g0(this.text,e-this.offset)+this.offset}elt(e,n,i,r){return typeof e=="string"?vt(this.parser.getNodeType(e),n,i,r):new rK(e,n)}}d5.linkStart=bd;d5.imageStart=xw;function K$(t,e){if(!e.length)return t;if(!t.length)return e;let n=t.slice(),i=0;for(let r of e){for(;i<n.length&&n[i].to<r.to;)i++;if(i<n.length&&n[i].from<r.from){let s=n[i];s instanceof mx&&(n[i]=new mx(s.type,s.from,s.to,K$(s.children,[r])))}else n.splice(i++,0,r)}return n}const p2e=[Oe.CodeBlock,Oe.ListItem,Oe.OrderedList,Oe.BulletList];class m2e{constructor(e,n){this.fragments=e,this.input=n,this.i=0,this.fragment=null,this.fragmentEnd=-1,this.cursor=null,e.length&&(this.fragment=e[this.i++])}nextFragment(){this.fragment=this.i<this.fragments.length?this.fragments[this.i++]:null,this.cursor=null,this.fragmentEnd=-1}moveTo(e,n){for(;this.fragment&&this.fragment.to<=e;)this.nextFragment();if(!this.fragment||this.fragment.from>(e?e-1:0))return!1;if(this.fragmentEnd<0){let s=this.fragment.to;for(;s>0&&this.input.read(s-1,s)!=`
|
|
379
|
-
`;)s--;this.fragmentEnd=s?s-1:0}let i=this.cursor;i||(i=this.cursor=this.fragment.tree.cursor(),i.firstChild());let r=e+this.fragment.offset;for(;i.to<=r;)if(!i.parent())return!1;for(;;){if(i.from>=r)return this.fragment.from<=n;if(!i.childAfter(r))return!1}}matches(e){let n=this.cursor.tree;return n&&n.prop(Ue.contextHash)==e}takeNodes(e){let n=this.cursor,i=this.fragment.offset,r=this.fragmentEnd-(this.fragment.openEnd?1:0),s=e.absoluteLineStart,o=s,a=e.block.children.length,l=o,u=a;for(;;){if(n.to-i>r){if(n.type.isAnonymous&&n.firstChild())continue;break}let d=uK(n.from-i,e.ranges);if(n.to-i<=e.ranges[e.rangeI].to)e.addNode(n.tree,d);else{let f=new ht(e.parser.nodeSet.types[Oe.Paragraph],[],[],0,e.block.hashProp);e.reusePlaceholders.set(f,n.tree),e.addNode(f,d)}if(n.type.is("Block")&&(p2e.indexOf(n.type.id)<0?(o=n.to-i,a=e.block.children.length):(o=l,a=u,l=n.to-i,u=e.block.children.length)),!n.nextSibling())break}for(;e.block.children.length>a;)e.block.children.pop(),e.block.positions.pop();return o-s}}function uK(t,e){let n=t;for(let i=1;i<e.length;i++){let r=e[i-1].to,s=e[i].from;r<t&&(n-=s-r)}return n}const g2e=dc({"Blockquote/...":O.quote,HorizontalRule:O.contentSeparator,"ATXHeading1/... SetextHeading1/...":O.heading1,"ATXHeading2/... SetextHeading2/...":O.heading2,"ATXHeading3/...":O.heading3,"ATXHeading4/...":O.heading4,"ATXHeading5/...":O.heading5,"ATXHeading6/...":O.heading6,"Comment CommentBlock":O.comment,Escape:O.escape,Entity:O.character,"Emphasis/...":O.emphasis,"StrongEmphasis/...":O.strong,"Link/... Image/...":O.link,"OrderedList/... BulletList/...":O.list,"BlockQuote/...":O.quote,"InlineCode CodeText":O.monospace,"URL Autolink":O.url,"HeaderMark HardBreak QuoteMark ListMark LinkMark EmphasisMark CodeMark":O.processingInstruction,"CodeInfo LinkLabel":O.labelName,LinkTitle:O.string,Paragraph:O.content}),b2e=new zk(new Sg(nK).extend(g2e),Object.keys(Ev).map(t=>Ev[t]),Object.keys(Ev).map(t=>eK[t]),Object.keys(Ev),u2e,FY,Object.keys(FP).map(t=>FP[t]),Object.keys(FP),[]);function y2e(t,e,n){let i=[];for(let r=t.firstChild,s=e;;r=r.nextSibling){let o=r?r.from:n;if(o>s&&i.push({from:s,to:o}),!r)break;s=r.to}return i}function x2e(t){let{codeParser:e,htmlParser:n}=t;return{wrap:wN((r,s)=>{let o=r.type.id;if(e&&(o==Oe.CodeBlock||o==Oe.FencedCode)){let a="";if(o==Oe.FencedCode){let u=r.node.getChild(Oe.CodeInfo);u&&(a=s.read(u.from,u.to))}let l=e(a);if(l)return{parser:l,overlay:u=>u.type.id==Oe.CodeText}}else if(n&&(o==Oe.HTMLBlock||o==Oe.HTMLTag||o==Oe.CommentBlock))return{parser:n,overlay:y2e(r.node,r.from,r.to)};return null})}}const O2e={resolve:"Strikethrough",mark:"StrikethroughMark"},_2e={defineNodes:[{name:"Strikethrough",style:{"Strikethrough/...":O.strikethrough}},{name:"StrikethroughMark",style:O.processingInstruction}],parseInline:[{name:"Strikethrough",parse(t,e,n){if(e!=126||t.char(n+1)!=126||t.char(n+2)==126)return-1;let i=t.slice(n-1,n),r=t.slice(n+2,n+3),s=/\s|^$/.test(i),o=/\s|^$/.test(r),a=gx.test(i),l=gx.test(r);return t.addDelimiter(O2e,n,n+2,!o&&(!l||s||a),!s&&(!a||o||l))},after:"Emphasis"}]};function b0(t,e,n=0,i,r=0){let s=0,o=!0,a=-1,l=-1,u=!1,d=()=>{i.push(t.elt("TableCell",r+a,r+l,t.parser.parseInline(e.slice(a,l),r+a)))};for(let f=n;f<e.length;f++){let m=e.charCodeAt(f);m==124&&!u?((!o||a>-1)&&s++,o=!1,i&&(a>-1&&d(),i.push(t.elt("TableDelimiter",f+r,f+r+1))),a=l=-1):(u||m!=32&&m!=9)&&(a<0&&(a=f),l=f+1),u=!u&&m==92}return a>-1&&(s++,i&&d()),s}function x8(t,e){for(let n=e;n<t.length;n++){let i=t.charCodeAt(n);if(i==124)return!0;i==92&&n++}return!1}const hK=/^\|?(\s*:?-+:?\s*\|)+(\s*:?-+:?\s*)?$/;class O8{constructor(){this.rows=null}nextLine(e,n,i){if(this.rows==null){this.rows=!1;let r;if((n.next==45||n.next==58||n.next==124)&&hK.test(r=n.text.slice(n.pos))){let s=[];b0(e,i.content,0,s,i.start)==b0(e,r,n.pos)&&(this.rows=[e.elt("TableHeader",i.start,i.start+i.content.length,s),e.elt("TableDelimiter",e.lineStart+n.pos,e.lineStart+n.text.length)])}}else if(this.rows){let r=[];b0(e,n.text,n.pos,r,e.lineStart),this.rows.push(e.elt("TableRow",e.lineStart+n.pos,e.lineStart+n.text.length,r))}return!1}finish(e,n){return this.rows?(e.addLeafElement(n,e.elt("Table",n.start,n.start+n.content.length,this.rows)),!0):!1}}const v2e={defineNodes:[{name:"Table",block:!0},{name:"TableHeader",style:{"TableHeader/...":O.heading}},"TableRow",{name:"TableCell",style:O.content},{name:"TableDelimiter",style:O.processingInstruction}],parseBlock:[{name:"Table",leaf(t,e){return x8(e.content,0)?new O8:null},endLeaf(t,e,n){if(n.parsers.some(r=>r instanceof O8)||!x8(e.text,e.basePos))return!1;let i=t.peekLine();return hK.test(i)&&b0(t,e.text,e.basePos)==b0(t,i,e.basePos)},before:"SetextHeading"}]};class S2e{nextLine(){return!1}finish(e,n){return e.addLeafElement(n,e.elt("Task",n.start,n.start+n.content.length,[e.elt("TaskMarker",n.start,n.start+3),...e.parser.parseInline(n.content.slice(3),n.start+3)])),!0}}const w2e={defineNodes:[{name:"Task",block:!0,style:O.list},{name:"TaskMarker",style:O.atom}],parseBlock:[{name:"TaskList",leaf(t,e){return/^\[[ xX]\][ \t]/.test(e.content)&&t.parentType().name=="ListItem"?new S2e:null},after:"SetextHeading"}]},_8=/(www\.)|(https?:\/\/)|([\w.+-]{1,100}@)|(mailto:|xmpp:)/gy,v8=/[\w-]+(\.[\w-]+)+(\/[^\s<]*)?/gy,k2e=/[\w-]+\.[\w-]+($|\/)/,S8=/[\w.+-]+@[\w-]+(\.[\w.-]+)+/gy,w8=/\/[a-zA-Z\d@.]+/gy;function k8(t,e,n,i){let r=0;for(let s=e;s<n;s++)t[s]==i&&r++;return r}function C2e(t,e){v8.lastIndex=e;let n=v8.exec(t);if(!n||k2e.exec(n[0])[0].indexOf("_")>-1)return-1;let i=e+n[0].length;for(;;){let r=t[i-1],s;if(/[?!.,:*_~]/.test(r)||r==")"&&k8(t,e,i,")")>k8(t,e,i,"("))i--;else if(r==";"&&(s=/&(?:#\d+|#x[a-f\d]+|\w+);$/.exec(t.slice(e,i))))i=e+s.index;else break}return i}function C8(t,e){S8.lastIndex=e;let n=S8.exec(t);if(!n)return-1;let i=n[0][n[0].length-1];return i=="_"||i=="-"?-1:e+n[0].length-(i=="."?1:0)}const T2e={parseInline:[{name:"Autolink",parse(t,e,n){let i=n-t.offset;if(i&&/\w/.test(t.text[i-1]))return-1;_8.lastIndex=i;let r=_8.exec(t.text),s=-1;if(!r)return-1;if(r[1]||r[2]){if(s=C2e(t.text,i+r[0].length),s>-1&&t.hasOpenLink){let o=/([^\[\]]|\[[^\]]*\])*/.exec(t.text.slice(i,s));s=i+o[0].length}}else r[3]?s=C8(t.text,i):(s=C8(t.text,i+r[0].length),s>-1&&r[0]=="xmpp:"&&(w8.lastIndex=s,r=w8.exec(t.text),r&&(s=r.index+r[0].length)));return s<0?-1:(t.addElement(t.elt("URL",n,s+t.offset)),s+t.offset)}}]},P2e=[v2e,w2e,_2e,T2e];function dK(t,e,n){return(i,r,s)=>{if(r!=t||i.char(s+1)==t)return-1;let o=[i.elt(n,s,s+1)];for(let a=s+1;a<i.end;a++){let l=i.char(a);if(l==t)return i.addElement(i.elt(e,s,a+1,o.concat(i.elt(n,a,a+1))));if(l==92&&o.push(i.elt("Escape",a,a+++2)),Ro(l))break}return-1}}const A2e={defineNodes:[{name:"Superscript",style:O.special(O.content)},{name:"SuperscriptMark",style:O.processingInstruction}],parseInline:[{name:"Superscript",parse:dK(94,"Superscript","SuperscriptMark")}]},R2e={defineNodes:[{name:"Subscript",style:O.special(O.content)},{name:"SubscriptMark",style:O.processingInstruction}],parseInline:[{name:"Subscript",parse:dK(126,"Subscript","SubscriptMark")}]},E2e={defineNodes:[{name:"Emoji",style:O.character}],parseInline:[{name:"Emoji",parse(t,e,n){let i;return e!=58||!(i=/^[a-zA-Z_0-9]+:/.exec(t.slice(n+1,t.end)))?-1:t.addElement(t.elt("Emoji",n,n+1+i[0].length))}}]},M2e=55,$2e=1,L2e=56,D2e=2,N2e=57,Q2e=3,T8=4,I2e=5,f5=6,fK=7,pK=8,mK=9,gK=10,j2e=11,B2e=12,z2e=13,UP=58,V2e=14,q2e=15,P8=59,bK=21,X2e=23,yK=24,F2e=25,J$=27,xK=28,U2e=29,W2e=32,G2e=35,Z2e=37,H2e=38,Y2e=0,K2e=1,J2e={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},ePe={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},A8={dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}};function tPe(t){return t==45||t==46||t==58||t>=65&&t<=90||t==95||t>=97&&t<=122||t>=161}let R8=null,E8=null,M8=0;function eL(t,e){let n=t.pos+e;if(M8==n&&E8==t)return R8;let i=t.peek(e),r="";for(;tPe(i);)r+=String.fromCharCode(i),i=t.peek(++e);return E8=t,M8=n,R8=r?r.toLowerCase():i==nPe||i==iPe?void 0:null}const OK=60,Ow=62,p5=47,nPe=63,iPe=33,rPe=45;function $8(t,e){this.name=t,this.parent=e}const sPe=[f5,gK,fK,pK,mK],oPe=new ZN({start:null,shift(t,e,n,i){return sPe.indexOf(e)>-1?new $8(eL(i,1)||"",t):t},reduce(t,e){return e==bK&&t?t.parent:t},reuse(t,e,n,i){let r=e.type.id;return r==f5||r==Z2e?new $8(eL(i,1)||"",t):t},strict:!1}),aPe=new Bi((t,e)=>{if(t.next!=OK){t.next<0&&e.context&&t.acceptToken(UP);return}t.advance();let n=t.next==p5;n&&t.advance();let i=eL(t,0);if(i===void 0)return;if(!i)return t.acceptToken(n?q2e:V2e);let r=e.context?e.context.name:null;if(n){if(i==r)return t.acceptToken(j2e);if(r&&ePe[r])return t.acceptToken(UP,-2);if(e.dialectEnabled(Y2e))return t.acceptToken(B2e);for(let s=e.context;s;s=s.parent)if(s.name==i)return;t.acceptToken(z2e)}else{if(i=="script")return t.acceptToken(fK);if(i=="style")return t.acceptToken(pK);if(i=="textarea")return t.acceptToken(mK);if(J2e.hasOwnProperty(i))return t.acceptToken(gK);r&&A8[r]&&A8[r][i]?t.acceptToken(UP,-1):t.acceptToken(f5)}},{contextual:!0}),lPe=new Bi(t=>{for(let e=0,n=0;;n++){if(t.next<0){n&&t.acceptToken(P8);break}if(t.next==rPe)e++;else if(t.next==Ow&&e>=2){n>=3&&t.acceptToken(P8,-2);break}else e=0;t.advance()}});function cPe(t){for(;t;t=t.parent)if(t.name=="svg"||t.name=="math")return!0;return!1}const uPe=new Bi((t,e)=>{if(t.next==p5&&t.peek(1)==Ow){let n=e.dialectEnabled(K2e)||cPe(e.context);t.acceptToken(n?I2e:T8,2)}else t.next==Ow&&t.acceptToken(T8,1)});function m5(t,e,n){let i=2+t.length;return new Bi(r=>{for(let s=0,o=0,a=0;;a++){if(r.next<0){a&&r.acceptToken(e);break}if(s==0&&r.next==OK||s==1&&r.next==p5||s>=2&&s<i&&r.next==t.charCodeAt(s-2))s++,o++;else if(s==i&&r.next==Ow){a>o?r.acceptToken(e,-o):r.acceptToken(n,-(o-2));break}else if((r.next==10||r.next==13)&&a){r.acceptToken(e,1);break}else s=o=0;r.advance()}})}const hPe=m5("script",M2e,$2e),dPe=m5("style",L2e,D2e),fPe=m5("textarea",N2e,Q2e),pPe=dc({"Text RawText IncompleteTag IncompleteCloseTag":O.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":O.angleBracket,TagName:O.tagName,"MismatchedCloseTag/TagName":[O.tagName,O.invalid],AttributeName:O.attributeName,"AttributeValue UnquotedAttributeValue":O.attributeValue,Is:O.definitionOperator,"EntityReference CharacterReference":O.character,Comment:O.blockComment,ProcessingInst:O.processingInstruction,DoctypeDecl:O.documentMeta}),mPe=sc.deserialize({version:14,states:",xOVO!rOOO!ZQ#tO'#CrO!`Q#tO'#C{O!eQ#tO'#DOO!jQ#tO'#DRO!oQ#tO'#DTO!tOaO'#CqO#PObO'#CqO#[OdO'#CqO$kO!rO'#CqOOO`'#Cq'#CqO$rO$fO'#DUO$zQ#tO'#DWO%PQ#tO'#DXOOO`'#Dl'#DlOOO`'#DZ'#DZQVO!rOOO%UQ&rO,59^O%aQ&rO,59gO%lQ&rO,59jO%wQ&rO,59mO&SQ&rO,59oOOOa'#D_'#D_O&_OaO'#CyO&jOaO,59]OOOb'#D`'#D`O&rObO'#C|O&}ObO,59]OOOd'#Da'#DaO'VOdO'#DPO'bOdO,59]OOO`'#Db'#DbO'jO!rO,59]O'qQ#tO'#DSOOO`,59],59]OOOp'#Dc'#DcO'vO$fO,59pOOO`,59p,59pO(OQ#|O,59rO(TQ#|O,59sOOO`-E7X-E7XO(YQ&rO'#CtOOQW'#D['#D[O(hQ&rO1G.xOOOa1G.x1G.xOOO`1G/Z1G/ZO(sQ&rO1G/ROOOb1G/R1G/RO)OQ&rO1G/UOOOd1G/U1G/UO)ZQ&rO1G/XOOO`1G/X1G/XO)fQ&rO1G/ZOOOa-E7]-E7]O)qQ#tO'#CzOOO`1G.w1G.wOOOb-E7^-E7^O)vQ#tO'#C}OOOd-E7_-E7_O){Q#tO'#DQOOO`-E7`-E7`O*QQ#|O,59nOOOp-E7a-E7aOOO`1G/[1G/[OOO`1G/^1G/^OOO`1G/_1G/_O*VQ,UO,59`OOQW-E7Y-E7YOOOa7+$d7+$dOOO`7+$u7+$uOOOb7+$m7+$mOOOd7+$p7+$pOOO`7+$s7+$sO*bQ#|O,59fO*gQ#|O,59iO*lQ#|O,59lOOO`1G/Y1G/YO*qO7[O'#CwO+SOMhO'#CwOOQW1G.z1G.zOOO`1G/Q1G/QOOO`1G/T1G/TOOO`1G/W1G/WOOOO'#D]'#D]O+eO7[O,59cOOQW,59c,59cOOOO'#D^'#D^O+vOMhO,59cOOOO-E7Z-E7ZOOQW1G.}1G.}OOOO-E7[-E7[",stateData:",c~O!_OS~OUSOVPOWQOXROYTO[]O][O^^O_^Oa^Ob^Oc^Od^Oy^O|_O!eZO~OgaO~OgbO~OgcO~OgdO~OgeO~O!XfOPmP![mP~O!YiOQpP![pP~O!ZlORsP![sP~OUSOVPOWQOXROYTOZqO[]O][O^^O_^Oa^Ob^Oc^Od^Oy^O!eZO~O![rO~P#gO!]sO!fuO~OgvO~OgwO~OS|OT}OiyO~OS!POT}OiyO~OS!ROT}OiyO~OS!TOT}OiyO~OS}OT}OiyO~O!XfOPmX![mX~OP!WO![!XO~O!YiOQpX![pX~OQ!ZO![!XO~O!ZlORsX![sX~OR!]O![!XO~O![!XO~P#gOg!_O~O!]sO!f!aO~OS!bO~OS!cO~Oj!dOShXThXihX~OS!fOT!gOiyO~OS!hOT!gOiyO~OS!iOT!gOiyO~OS!jOT!gOiyO~OS!gOT!gOiyO~Og!kO~Og!lO~Og!mO~OS!nO~Ol!qO!a!oO!c!pO~OS!rO~OS!sO~OS!tO~Ob!uOc!uOd!uO!a!wO!b!uO~Ob!xOc!xOd!xO!c!wO!d!xO~Ob!uOc!uOd!uO!a!{O!b!uO~Ob!xOc!xOd!xO!c!{O!d!xO~OT~cbd!ey|!e~",goto:"%q!aPPPPPPPPPPPPPPPPPPPPP!b!hP!nPP!zP!}#Q#T#Z#^#a#g#j#m#s#y!bP!b!bP$P$V$m$s$y%P%V%]%cPPPPPPPP%iX^OX`pXUOX`pezabcde{!O!Q!S!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ!ObQ!QcQ!SdQ!UeZ!e{!O!Q!S!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:"⚠ StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:68,context:oPe,nodeProps:[["closedBy",-10,1,2,3,7,8,9,10,11,12,13,"EndTag",6,"EndTag SelfClosingEndTag",-4,22,31,34,37,"CloseTag"],["openedBy",4,"StartTag StartCloseTag",5,"StartTag",-4,30,33,36,38,"OpenTag"],["group",-10,14,15,18,19,20,21,40,41,42,43,"Entity",17,"Entity TextContent",-3,29,32,35,"TextContent Entity"],["isolate",-11,22,30,31,33,34,36,37,38,39,42,43,"ltr",-3,27,28,40,""]],propSources:[pPe],skippedNodes:[0],repeatNodeCount:9,tokenData:"!<p!aR!YOX$qXY,QYZ,QZ[$q[]&X]^,Q^p$qpq,Qqr-_rs3_sv-_vw3}wxHYx}-_}!OH{!O!P-_!P!Q$q!Q![-_![!]Mz!]!^-_!^!_!$S!_!`!;x!`!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4U-_4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Kh-_$Kh%#tMz%#t&/x-_&/x&EtMz&Et&FV-_&FV;'SMz;'S;:j!#|;:j;=`3X<%l?&r-_?&r?AhMz?Ah?BY$q?BY?MnMz?MnO$q!Z$|caPlW!b`!dpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr$qrs&}sv$qvw+Pwx(tx!^$q!^!_*V!_!a&X!a#S$q#S#T&X#T;'S$q;'S;=`+z<%lO$q!R&bXaP!b`!dpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&Xq'UVaP!dpOv&}wx'kx!^&}!^!_(V!_;'S&};'S;=`(n<%lO&}P'pTaPOv'kw!^'k!_;'S'k;'S;=`(P<%lO'kP(SP;=`<%l'kp([S!dpOv(Vx;'S(V;'S;=`(h<%lO(Vp(kP;=`<%l(Vq(qP;=`<%l&}a({WaP!b`Or(trs'ksv(tw!^(t!^!_)e!_;'S(t;'S;=`*P<%lO(t`)jT!b`Or)esv)ew;'S)e;'S;=`)y<%lO)e`)|P;=`<%l)ea*SP;=`<%l(t!Q*^V!b`!dpOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!Q*vP;=`<%l*V!R*|P;=`<%l&XW+UYlWOX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+PW+wP;=`<%l+P!Z+}P;=`<%l$q!a,]`aP!b`!dp!_^OX&XXY,QYZ,QZ]&X]^,Q^p&Xpq,Qqr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X!_-ljiSaPlW!b`!dpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx!P-_!P!Q$q!Q!^-_!^!_*V!_!a&X!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q[/ebiSlWOX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+PS0rXiSqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0mS1bP;=`<%l0m[1hP;=`<%l/^!V1vciSaP!b`!dpOq&Xqr1krs&}sv1kvw0mwx(tx!P1k!P!Q&X!Q!^1k!^!_*V!_!a&X!a#s1k#s$f&X$f;'S1k;'S;=`3R<%l?Ah1k?Ah?BY&X?BY?Mn1k?MnO&X!V3UP;=`<%l1k!_3[P;=`<%l-_!Z3hV!ahaP!dpOv&}wx'kx!^&}!^!_(V!_;'S&};'S;=`(n<%lO&}!_4WiiSlWd!ROX5uXZ7SZ[5u[^7S^p5uqr8trs7Sst>]tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^/^!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!Z5zblWOX5uXZ7SZ[5u[^7S^p5uqr5urs7Sst+Ptw5uwx7Sx!]5u!]!^7w!^!a7S!a#S5u#S#T7S#T;'S5u;'S;=`8n<%lO5u!R7VVOp7Sqs7St!]7S!]!^7l!^;'S7S;'S;=`7q<%lO7S!R7qOb!R!R7tP;=`<%l7S!Z8OYlWb!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!Z8qP;=`<%l5u!_8{iiSlWOX5uXZ7SZ[5u[^7S^p5uqr8trs7Sst/^tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^:j!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!_:sbiSlWb!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!V<QciSOp7Sqr;{rs7Sst0mtw;{wx7Sx!P;{!P!Q7S!Q!];{!]!^=]!^!a7S!a#s;{#s$f7S$f;'S;{;'S;=`>P<%l?Ah;{?Ah?BY7S?BY?Mn;{?MnO7S!V=dXiSb!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!V>SP;=`<%l;{!_>YP;=`<%l8t!_>dhiSlWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^/^!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!Z@TalWOX@OXZAYZ[@O[^AY^p@Oqr@OrsAYsw@OwxAYx!]@O!]!^Az!^!aAY!a#S@O#S#TAY#T;'S@O;'S;=`Bq<%lO@O!RA]UOpAYq!]AY!]!^Ao!^;'SAY;'S;=`At<%lOAY!RAtOc!R!RAwP;=`<%lAY!ZBRYlWc!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!ZBtP;=`<%l@O!_COhiSlWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^Dj!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!_DsbiSlWc!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!VFQbiSOpAYqrE{rsAYswE{wxAYx!PE{!P!QAY!Q!]E{!]!^GY!^!aAY!a#sE{#s$fAY$f;'SE{;'S;=`G|<%l?AhE{?Ah?BYAY?BY?MnE{?MnOAY!VGaXiSc!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!VHPP;=`<%lE{!_HVP;=`<%lBw!ZHcW!cxaP!b`Or(trs'ksv(tw!^(t!^!_)e!_;'S(t;'S;=`*P<%lO(t!aIYliSaPlW!b`!dpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OKQ!O!P-_!P!Q$q!Q!^-_!^!_*V!_!a&X!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!aK_kiSaPlW!b`!dpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx!P-_!P!Q$q!Q!^-_!^!_*V!_!`&X!`!aMS!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!TM_XaP!b`!dp!fQOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X!aNZ!ZiSgQaPlW!b`!dpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OMz!O!PMz!P!Q$q!Q![Mz![!]Mz!]!^-_!^!_*V!_!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f$}-_$}%OMz%O%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4UMz4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Je-_$Je$JgMz$Jg$Kh-_$Kh%#tMz%#t&/x-_&/x&EtMz&Et&FV-_&FV;'SMz;'S;:j!#|;:j;=`3X<%l?&r-_?&r?AhMz?Ah?BY$q?BY?MnMz?MnO$q!a!$PP;=`<%lMz!R!$ZY!b`!dpOq*Vqr!$yrs(Vsv*Vwx)ex!a*V!a!b!4t!b;'S*V;'S;=`*s<%lO*V!R!%Q]!b`!dpOr*Vrs(Vsv*Vwx)ex}*V}!O!%y!O!f*V!f!g!']!g#W*V#W#X!0`#X;'S*V;'S;=`*s<%lO*V!R!&QX!b`!dpOr*Vrs(Vsv*Vwx)ex}*V}!O!&m!O;'S*V;'S;=`*s<%lO*V!R!&vV!b`!dp!ePOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!'dX!b`!dpOr*Vrs(Vsv*Vwx)ex!q*V!q!r!(P!r;'S*V;'S;=`*s<%lO*V!R!(WX!b`!dpOr*Vrs(Vsv*Vwx)ex!e*V!e!f!(s!f;'S*V;'S;=`*s<%lO*V!R!(zX!b`!dpOr*Vrs(Vsv*Vwx)ex!v*V!v!w!)g!w;'S*V;'S;=`*s<%lO*V!R!)nX!b`!dpOr*Vrs(Vsv*Vwx)ex!{*V!{!|!*Z!|;'S*V;'S;=`*s<%lO*V!R!*bX!b`!dpOr*Vrs(Vsv*Vwx)ex!r*V!r!s!*}!s;'S*V;'S;=`*s<%lO*V!R!+UX!b`!dpOr*Vrs(Vsv*Vwx)ex!g*V!g!h!+q!h;'S*V;'S;=`*s<%lO*V!R!+xY!b`!dpOr!+qrs!,hsv!+qvw!-Swx!.[x!`!+q!`!a!/j!a;'S!+q;'S;=`!0Y<%lO!+qq!,mV!dpOv!,hvx!-Sx!`!,h!`!a!-q!a;'S!,h;'S;=`!.U<%lO!,hP!-VTO!`!-S!`!a!-f!a;'S!-S;'S;=`!-k<%lO!-SP!-kO|PP!-nP;=`<%l!-Sq!-xS!dp|POv(Vx;'S(V;'S;=`(h<%lO(Vq!.XP;=`<%l!,ha!.aX!b`Or!.[rs!-Ssv!.[vw!-Sw!`!.[!`!a!.|!a;'S!.[;'S;=`!/d<%lO!.[a!/TT!b`|POr)esv)ew;'S)e;'S;=`)y<%lO)ea!/gP;=`<%l!.[!R!/sV!b`!dp|POr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!0]P;=`<%l!+q!R!0gX!b`!dpOr*Vrs(Vsv*Vwx)ex#c*V#c#d!1S#d;'S*V;'S;=`*s<%lO*V!R!1ZX!b`!dpOr*Vrs(Vsv*Vwx)ex#V*V#V#W!1v#W;'S*V;'S;=`*s<%lO*V!R!1}X!b`!dpOr*Vrs(Vsv*Vwx)ex#h*V#h#i!2j#i;'S*V;'S;=`*s<%lO*V!R!2qX!b`!dpOr*Vrs(Vsv*Vwx)ex#m*V#m#n!3^#n;'S*V;'S;=`*s<%lO*V!R!3eX!b`!dpOr*Vrs(Vsv*Vwx)ex#d*V#d#e!4Q#e;'S*V;'S;=`*s<%lO*V!R!4XX!b`!dpOr*Vrs(Vsv*Vwx)ex#X*V#X#Y!+q#Y;'S*V;'S;=`*s<%lO*V!R!4{Y!b`!dpOr!4trs!5ksv!4tvw!6Vwx!8]x!a!4t!a!b!:]!b;'S!4t;'S;=`!;r<%lO!4tq!5pV!dpOv!5kvx!6Vx!a!5k!a!b!7W!b;'S!5k;'S;=`!8V<%lO!5kP!6YTO!a!6V!a!b!6i!b;'S!6V;'S;=`!7Q<%lO!6VP!6lTO!`!6V!`!a!6{!a;'S!6V;'S;=`!7Q<%lO!6VP!7QOyPP!7TP;=`<%l!6Vq!7]V!dpOv!5kvx!6Vx!`!5k!`!a!7r!a;'S!5k;'S;=`!8V<%lO!5kq!7yS!dpyPOv(Vx;'S(V;'S;=`(h<%lO(Vq!8YP;=`<%l!5ka!8bX!b`Or!8]rs!6Vsv!8]vw!6Vw!a!8]!a!b!8}!b;'S!8];'S;=`!:V<%lO!8]a!9SX!b`Or!8]rs!6Vsv!8]vw!6Vw!`!8]!`!a!9o!a;'S!8];'S;=`!:V<%lO!8]a!9vT!b`yPOr)esv)ew;'S)e;'S;=`)y<%lO)ea!:YP;=`<%l!8]!R!:dY!b`!dpOr!4trs!5ksv!4tvw!6Vwx!8]x!`!4t!`!a!;S!a;'S!4t;'S;=`!;r<%lO!4t!R!;]V!b`!dpyPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!;uP;=`<%l!4t!V!<TXjSaP!b`!dpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X",tokenizers:[hPe,dPe,fPe,uPe,aPe,lPe,0,1,2,3,4,5],topRules:{Document:[0,16]},dialects:{noMatch:0,selfClosing:515},tokenPrec:517});function _K(t,e){let n=Object.create(null);for(let i of t.getChildren(yK)){let r=i.getChild(F2e),s=i.getChild(J$)||i.getChild(xK);r&&(n[e.read(r.from,r.to)]=s?s.type.id==J$?e.read(s.from+1,s.to-1):e.read(s.from,s.to):"")}return n}function L8(t,e){let n=t.getChild(X2e);return n?e.read(n.from,n.to):" "}function WP(t,e,n){let i;for(let r of n)if(!r.attrs||r.attrs(i||(i=_K(t.node.parent.firstChild,e))))return{parser:r.parser};return null}function vK(t=[],e=[]){let n=[],i=[],r=[],s=[];for(let a of t)(a.tag=="script"?n:a.tag=="style"?i:a.tag=="textarea"?r:s).push(a);let o=e.length?Object.create(null):null;for(let a of e)(o[a.name]||(o[a.name]=[])).push(a);return wN((a,l)=>{let u=a.type.id;if(u==U2e)return WP(a,l,n);if(u==W2e)return WP(a,l,i);if(u==G2e)return WP(a,l,r);if(u==bK&&s.length){let d=a.node,f=d.firstChild,m=f&&L8(f,l),g;if(m){for(let y of s)if(y.tag==m&&(!y.attrs||y.attrs(g||(g=_K(f,l))))){let _=d.lastChild,v=_.type.id==H2e?_.from:d.to;if(v>f.to)return{parser:y.parser,overlay:[{from:f.to,to:v}]}}}}if(o&&u==yK){let d=a.node,f;if(f=d.firstChild){let m=o[l.read(f.from,f.to)];if(m)for(let g of m){if(g.tagName&&g.tagName!=L8(d.parent,l))continue;let y=d.lastChild;if(y.type.id==J$){let _=y.from+1,v=y.lastChild,w=y.to-(v&&v.isError?0:1);if(w>_)return{parser:g.parser,overlay:[{from:_,to:w}]}}else if(y.type.id==xK)return{parser:g.parser,overlay:[{from:y.from,to:y.to}]}}}}return null})}const gPe=122,D8=1,bPe=123,yPe=124,SK=2,xPe=125,OPe=3,_Pe=4,wK=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],vPe=58,SPe=40,kK=95,wPe=91,rS=45,kPe=46,CPe=35,TPe=37,PPe=38,APe=92,RPe=10,EPe=42;function bx(t){return t>=65&&t<=90||t>=97&&t<=122||t>=161}function g5(t){return t>=48&&t<=57}function N8(t){return g5(t)||t>=97&&t<=102||t>=65&&t<=70}const CK=(t,e,n)=>(i,r)=>{for(let s=!1,o=0,a=0;;a++){let{next:l}=i;if(bx(l)||l==rS||l==kK||s&&g5(l))!s&&(l!=rS||a>0)&&(s=!0),o===a&&l==rS&&o++,i.advance();else if(l==APe&&i.peek(1)!=RPe){if(i.advance(),N8(i.next)){do i.advance();while(N8(i.next));i.next==32&&i.advance()}else i.next>-1&&i.advance();s=!0}else{s&&i.acceptToken(o==2&&r.canShift(SK)?e:l==SPe?n:t);break}}},MPe=new Bi(CK(bPe,SK,yPe)),$Pe=new Bi(CK(xPe,OPe,_Pe)),LPe=new Bi(t=>{if(wK.includes(t.peek(-1))){let{next:e}=t;(bx(e)||e==kK||e==CPe||e==kPe||e==EPe||e==wPe||e==vPe&&bx(t.peek(1))||e==rS||e==PPe)&&t.acceptToken(gPe)}}),DPe=new Bi(t=>{if(!wK.includes(t.peek(-1))){let{next:e}=t;if(e==TPe&&(t.advance(),t.acceptToken(D8)),bx(e)){do t.advance();while(bx(t.next)||g5(t.next));t.acceptToken(D8)}}}),NPe=dc({"AtKeyword import charset namespace keyframes media supports":O.definitionKeyword,"from to selector":O.keyword,NamespaceName:O.namespace,KeyframeName:O.labelName,KeyframeRangeName:O.operatorKeyword,TagName:O.tagName,ClassName:O.className,PseudoClassName:O.constant(O.className),IdName:O.labelName,"FeatureName PropertyName":O.propertyName,AttributeName:O.attributeName,NumberLiteral:O.number,KeywordQuery:O.keyword,UnaryQueryOp:O.operatorKeyword,"CallTag ValueName":O.atom,VariableName:O.variableName,Callee:O.operatorKeyword,Unit:O.unit,"UniversalSelector NestingSelector":O.definitionOperator,"MatchOp CompareOp":O.compareOperator,"ChildOp SiblingOp, LogicOp":O.logicOperator,BinOp:O.arithmeticOperator,Important:O.modifier,Comment:O.blockComment,ColorLiteral:O.color,"ParenthesizedContent StringLiteral":O.string,":":O.punctuation,"PseudoOp #":O.derefOperator,"; ,":O.separator,"( )":O.paren,"[ ]":O.squareBracket,"{ }":O.brace}),QPe={__proto__:null,lang:38,"nth-child":38,"nth-last-child":38,"nth-of-type":38,"nth-last-of-type":38,dir:38,"host-context":38,if:84,url:124,"url-prefix":124,domain:124,regexp:124},IPe={__proto__:null,or:98,and:98,not:106,only:106,layer:170},jPe={__proto__:null,selector:112,layer:166},BPe={__proto__:null,"@import":162,"@media":174,"@charset":178,"@namespace":182,"@keyframes":188,"@supports":200,"@scope":204},zPe={__proto__:null,to:207},VPe=sc.deserialize({version:14,states:"EbQYQdOOO#qQdOOP#xO`OOOOQP'#Cf'#CfOOQP'#Ce'#CeO#}QdO'#ChO$nQaO'#CcO$xQdO'#CkO%TQdO'#DpO%YQdO'#DrO%_QdO'#DuO%_QdO'#DxOOQP'#FV'#FVO&eQhO'#EhOOQS'#FU'#FUOOQS'#Ek'#EkQYQdOOO&lQdO'#EOO&PQhO'#EUO&lQdO'#EWO'aQdO'#EYO'lQdO'#E]O'tQhO'#EcO(VQdO'#EeO(bQaO'#CfO)VQ`O'#D{O)[Q`O'#F`O)gQdO'#F`QOQ`OOP)qO&jO'#CaPOOO)C@t)C@tOOQP'#Cj'#CjOOQP,59S,59SO#}QdO,59SO)|QdO,59VO%TQdO,5:[O%YQdO,5:^O%_QdO,5:aO%_QdO,5:cO%_QdO,5:dO%_QdO'#ErO*XQ`O,58}O*aQdO'#DzOOQS,58},58}OOQP'#Cn'#CnOOQO'#Dn'#DnOOQP,59V,59VO*hQ`O,59VO*mQ`O,59VOOQP'#Dq'#DqOOQP,5:[,5:[OOQO'#Ds'#DsO*rQpO,5:^O+]QaO,5:aO+sQaO,5:dOOQW'#DZ'#DZO,ZQhO'#DdO,xQhO'#FaO'tQhO'#DbO-WQ`O'#DhOOQW'#F['#F[O-]Q`O,5;SO-eQ`O'#DeOOQS-E8i-E8iOOQ['#Cs'#CsO-jQdO'#CtO.QQdO'#CzO.hQdO'#C}O/OQ!pO'#DPO1RQ!jO,5:jOOQO'#DU'#DUO*mQ`O'#DTO1cQ!nO'#FXO3`Q`O'#DVO3eQ`O'#DkOOQ['#FX'#FXO-`Q`O,5:pO3jQ!bO,5:rOOQS'#E['#E[O3rQ`O,5:tO3wQdO,5:tOOQO'#E_'#E_O4PQ`O,5:wO4UQhO,5:}O%_QdO'#DgOOQS,5;P,5;PO-eQ`O,5;PO4^QdO,5;PO4fQdO,5:gO4vQdO'#EtO5TQ`O,5;zO5TQ`O,5;zPOOO'#Ej'#EjP5`O&jO,58{POOO,58{,58{OOQP1G.n1G.nOOQP1G.q1G.qO*hQ`O1G.qO*mQ`O1G.qOOQP1G/v1G/vO5kQpO1G/xO5sQaO1G/{O6ZQaO1G/}O6qQaO1G0OO7XQaO,5;^OOQO-E8p-E8pOOQS1G.i1G.iO7cQ`O,5:fO7hQdO'#DoO7oQdO'#CrOOQP1G/x1G/xO&lQdO1G/xO7vQ!jO'#DZO8UQ!bO,59vO8^QhO,5:OOOQO'#F]'#F]O8XQ!bO,59zO'tQhO,59xO8fQhO'#EvO8sQ`O,5;{O9OQhO,59|O9uQhO'#DiOOQW,5:S,5:SOOQS1G0n1G0nOOQW,5:P,5:PO9|Q!fO'#FYOOQS'#FY'#FYOOQS'#Em'#EmO;^QdO,59`OOQ[,59`,59`O;tQdO,59fOOQ[,59f,59fO<[QdO,59iOOQ[,59i,59iOOQ[,59k,59kO&lQdO,59mO<rQhO'#EQOOQW'#EQ'#EQO=WQ`O1G0UO1[QhO1G0UOOQ[,59o,59oO'tQhO'#DXOOQ[,59q,59qO=]Q#tO,5:VOOQS1G0[1G0[OOQS1G0^1G0^OOQS1G0`1G0`O=hQ`O1G0`O=mQdO'#E`OOQS1G0c1G0cOOQS1G0i1G0iO=xQaO,5:RO-`Q`O1G0kOOQS1G0k1G0kO-eQ`O1G0kO>PQ!fO1G0ROOQO1G0R1G0ROOQO,5;`,5;`O>gQdO,5;`OOQO-E8r-E8rO>tQ`O1G1fPOOO-E8h-E8hPOOO1G.g1G.gOOQP7+$]7+$]OOQP7+%d7+%dO&lQdO7+%dOOQS1G0Q1G0QO?PQaO'#F_O?ZQ`O,5:ZO?`Q!fO'#ElO@^QdO'#FWO@hQ`O,59^O@mQ!bO7+%dO&lQdO1G/bO@uQhO1G/fOOQW1G/j1G/jOOQW1G/d1G/dOAWQhO,5;bOOQO-E8t-E8tOAfQhO'#DZOAtQhO'#F^OBPQ`O'#F^OBUQ`O,5:TOOQS-E8k-E8kOOQ[1G.z1G.zOOQ[1G/Q1G/QOOQ[1G/T1G/TOOQ[1G/X1G/XOBZQdO,5:lOOQS7+%p7+%pOB`Q`O7+%pOBeQhO'#DYOBmQ`O,59sO'tQhO,59sOOQ[1G/q1G/qOBuQ`O1G/qOOQS7+%z7+%zOBzQbO'#DPOOQO'#Eb'#EbOCYQ`O'#EaOOQO'#Ea'#EaOCeQ`O'#EwOCmQdO,5:zOOQS,5:z,5:zOOQ[1G/m1G/mOOQS7+&V7+&VO-`Q`O7+&VOCxQ!fO'#EsO&lQdO'#EsOEPQdO7+%mOOQO7+%m7+%mOOQO1G0z1G0zOEdQ!bO<<IOOElQdO'#EqOEvQ`O,5;yOOQP1G/u1G/uOOQS-E8j-E8jOFOQdO'#EpOFYQ`O,5;rOOQ]1G.x1G.xOOQP<<IO<<IOOFbQdO7+$|OOQO'#D]'#D]OFiQ!bO7+%QOFqQhO'#EoOF{Q`O,5;xO&lQdO,5;xOOQW1G/o1G/oOOQO'#ES'#ESOGTQ`O1G0WOOQS<<I[<<I[O&lQdO,59tOGnQhO1G/_OOQ[1G/_1G/_OGuQ`O1G/_OOQW-E8l-E8lOOQ[7+%]7+%]OOQO,5:{,5:{O=pQdO'#ExOCeQ`O,5;cOOQS,5;c,5;cOOQS-E8u-E8uOOQS1G0f1G0fOOQS<<Iq<<IqOG}Q!fO,5;_OOQS-E8q-E8qOOQO<<IX<<IXOOQPAN>jAN>jOIUQaO,5;]OOQO-E8o-E8oOI`QdO,5;[OOQO-E8n-E8nOOQW<<Hh<<HhOOQW<<Hl<<HlOIjQhO<<HlOI{QhO,5;ZOJWQ`O,5;ZOOQO-E8m-E8mOJ]QdO1G1dOBZQdO'#EuOJgQ`O7+%rOOQW7+%r7+%rOJoQ!bO1G/`OOQ[7+$y7+$yOJzQhO7+$yPKRQ`O'#EnOOQO,5;d,5;dOOQO-E8v-E8vOOQS1G0}1G0}OKWQ`OAN>WO&lQdO1G0uOK]Q`O7+'OOOQO,5;a,5;aOOQO-E8s-E8sOOQW<<I^<<I^OOQ[<<He<<HePOQW,5;Y,5;YOOQWG23rG23rOKeQdO7+&a",stateData:"Kx~O#sOS#tQQ~OW[OZ[O]TO`VOaVOi]OjWOmXO!jYO!mZO!saO!ybO!{cO!}dO#QeO#WfO#YgO#oRO~OQiOW[OZ[O]TO`VOaVOi]OjWOmXO!jYO!mZO!saO!ybO!{cO!}dO#QeO#WfO#YgO#ohO~O#m$SP~P!dO#tmO~O#ooO~O]qO`rOarOjsOmtO!juO!mwO#nvO~OpzO!^xO~P$SOc!QO#o|O#p}O~O#o!RO~O#o!TO~OW[OZ[O]TO`VOaVOjWOmXO!jYO!mZO#oRO~OS!]Oe!YO!V![O!Y!`O#q!XOp$TP~Ok$TP~P&POQ!jOe!cOm!dOp!eOr!mOt!mOz!kO!`!lO#o!bO#p!hO#}!fO~Ot!qO!`!lO#o!pO~Ot!sO#o!sO~OS!]Oe!YO!V![O!Y!`O#q!XO~Oe!vOpzO#Z!xO~O]YX`YX`!pXaYXjYXmYXpYX!^YX!jYX!mYX#nYX~O`!zO~Ok!{O#m$SXo$SX~O#m$SXo$SX~P!dO#u#OO#v#OO#w#QO~Oc#UO#o|O#p}O~OpzO!^xO~Oo$SP~P!dOe#`O~Oe#aO~Ol#bO!h#cO~O]qO`rOarOjsOmtO~Op!ia!^!ia!j!ia!m!ia#n!iad!ia~P*zOp!la!^!la!j!la!m!la#n!lad!la~P*zOR#gOS!]Oe!YOr#gOt#gO!V![O!Y!`O#q#dO#}!fO~O!R#iO!^#jOk$TXp$TX~Oe#mO~Ok#oOpzO~Oe!vO~O]#rO`#rOd#uOi#rOj#rOk#rO~P&lO]#rO`#rOi#rOj#rOk#rOl#wO~P&lO]#rO`#rOi#rOj#rOk#rOo#yO~P&lOP#zOSsXesXksXvsX!VsX!YsX!usX!wsX#qsX!TsXQsX]sX`sXdsXisXjsXmsXpsXrsXtsXzsX!`sX#osX#psX#}sXlsXosX!^sX!qsX#msX~Ov#{O!u#|O!w#}Ok$TP~P'tOe#aOS#{Xk#{Xv#{X!V#{X!Y#{X!u#{X!w#{X#q#{XQ#{X]#{X`#{Xd#{Xi#{Xj#{Xm#{Xp#{Xr#{Xt#{Xz#{X!`#{X#o#{X#p#{X#}#{Xl#{Xo#{X!^#{X!q#{X#m#{X~Oe$RO~Oe$TO~Ok$VOv#{O~Ok$WO~Ot$XO!`!lO~Op$YO~OpzO!R#iO~OpzO#Z$`O~O!q$bOk!oa#m!oao!oa~P&lOk#hX#m#hXo#hX~P!dOk!{O#m$Sao$Sa~O#u#OO#v#OO#w$hO~Ol$jO!h$kO~Op!ii!^!ii!j!ii!m!ii#n!iid!ii~P*zOp!ki!^!ki!j!ki!m!ki#n!kid!ki~P*zOp!li!^!li!j!li!m!li#n!lid!li~P*zOp#fa!^#fa~P$SOo$lO~Od$RP~P%_Od#zP~P&lO`!PXd}X!R}X!T!PX~O`$sO!T$tO~Od$uO!R#iO~Ok#jXp#jX!^#jX~P'tO!^#jOk$Tap$Ta~O!R#iOk!Uap!Ua!^!Uad!Ua`!Ua~OS!]Oe!YO!V![O!Y!`O#q$yO~Od$QP~P9dOv#{OQ#|X]#|X`#|Xd#|Xe#|Xi#|Xj#|Xk#|Xm#|Xp#|Xr#|Xt#|Xz#|X!`#|X#o#|X#p#|X#}#|Xl#|Xo#|X~O]#rO`#rOd%OOi#rOj#rOk#rO~P&lO]#rO`#rOi#rOj#rOk#rOl%PO~P&lO]#rO`#rOi#rOj#rOk#rOo%QO~P&lOe%SOS!tXk!tX!V!tX!Y!tX#q!tX~Ok%TO~Od%YOt%ZO!a%ZO~Ok%[O~Oo%cO#o%^O#}%]O~Od%dO~P$SOv#{O!^%hO!q%jOk!oi#m!oio!oi~P&lOk#ha#m#hao#ha~P!dOk!{O#m$Sio$Si~O!^%mOd$RX~P$SOd%oO~Ov#{OQ#`Xd#`Xe#`Xm#`Xp#`Xr#`Xt#`Xz#`X!^#`X!`#`X#o#`X#p#`X#}#`X~O!^%qOd#zX~P&lOd%sO~Ol%tOv#{O~OR#gOr#gOt#gO#q%vO#}!fO~O!R#iOk#jap#ja!^#ja~O`!PXd}X!R}X!^}X~O!R#iO!^%xOd$QX~O`%zO~Od%{O~O#o%|O~Ok&OO~O`&PO!R#iO~Od&ROk&QO~Od&UO~OP#zOpsX!^sXdsX~O#}%]Op#TX!^#TX~OpzO!^&WO~Oo&[O#o%^O#}%]O~Ov#{OQ#gXe#gXk#gXm#gXp#gXr#gXt#gXz#gX!^#gX!`#gX!q#gX#m#gX#o#gX#p#gX#}#gXo#gX~O!^%hO!q&`Ok!oq#m!oqo!oq~P&lOl&aOv#{O~Od#eX!^#eX~P%_O!^%mOd$Ra~Od#dX!^#dX~P&lO!^%qOd#za~Od&fO~P&lOd&gO!T&hO~Od#cX!^#cX~P9dO!^%xOd$Qa~O]&mOd&oO~OS#bae#ba!V#ba!Y#ba#q#ba~Od&qO~PG]Od&qOk&rO~Ov#{OQ#gae#gak#gam#gap#gar#gat#gaz#ga!^#ga!`#ga!q#ga#m#ga#o#ga#p#ga#}#gao#ga~Od#ea!^#ea~P$SOd#da!^#da~P&lOR#gOr#gOt#gO#q%vO#}%]O~O!R#iOd#ca!^#ca~O`&xO~O!^%xOd$Qi~P&lO]&mOd&|O~Ov#{Od|ik|i~Od&}O~PG]Ok'OO~Od'PO~O!^%xOd$Qq~Od#cq!^#cq~P&lO#s!a#t#}]#}v!m~",goto:"2h$UPPPPP$VP$YP$c$uP$cP%X$cPP%_PPP%e%o%oPPPPP%oPP%oP&]P%oP%o'W%oP't'w'}'}(^'}P'}P'}P'}'}P(m'}(yP(|PP)p)v$c)|$c*SP$cP$c$cP*Y*{+YP$YP+aP+dP$YP$YP$YP+j$YP+m+p+s+z$YP$YPP$YP,P,V,f,|-[-b-l-r-x.O.U.`.f.l.rPPPPPPPPPPP.x/R/w/z0|P1U1u2O2R2U2[RnQ_^OP`kz!{$dq[OPYZ`kuvwxz!v!{#`$d%mqSOPYZ`kuvwxz!v!{#`$d%mQpTR#RqQ!OVR#SrQ#S!QS$Q!i!jR$i#U!V!mac!c!d!e!z#a#c#t#v#x#{$a$k$p$s%h%i%q%u%z&P&d&l&x'Q!U!mac!c!d!e!z#a#c#t#v#x#{$a$k$p$s%h%i%q%u%z&P&d&l&x'QU#g!Y$t&hU%`$Y%b&WR&V%_!V!iac!c!d!e!z#a#c#t#v#x#{$a$k$p$s%h%i%q%u%z&P&d&l&x'QR$S!kQ%W$RR&S%Xk!^]bf!Y![!g#i#j#m$P$R%X%xQ#e!YQ${#mQ%w$tQ&j%xR&w&hQ!ygQ#p!`Q$^!xR%f$`R#n!]!U!mac!c!d!e!z#a#c#t#v#x#{$a$k$p$s%h%i%q%u%z&P&d&l&x'QQ!qdR$X!rQ!PVR#TrQ#S!PR$i#TQ!SWR#VsQ!UXR#WtQ{UQ!wgQ#^yQ#o!_Q$U!nQ$[!uQ$_!yQ%e$^Q&Y%aQ&]%fR&v&XSjPzQ!}kQ$c!{R%k$dZiPkz!{$dR$P!gQ%}%SR&z&mR!rdR!teR$Z!tS%a$Y%bR&t&WV%_$Y%b&WQ#PmR$g#PQ`OSkPzU!a`k$dR$d!{Q$p#aY%p$p%u&d&l'QQ%u$sQ&d%qQ&l%zR'Q&xQ#t!cQ#v!dQ#x!eV$}#t#v#xQ%X$RR&T%XQ%y$zS&k%y&yR&y&lQ%r$pR&e%rQ%n$mR&c%nQyUR#]yQ%i$aR&_%iQ!|jS$e!|$fR$f!}Q&n%}R&{&nQ#k!ZR$x#kQ%b$YR&Z%bQ&X%aR&u&X__OP`kz!{$d^UOP`kz!{$dQ!VYQ!WZQ#XuQ#YvQ#ZwQ#[xQ$]!vQ$m#`R&b%mR$q#aQ!gaQ!oc[#q!c!d!e#t#v#xQ$a!zd$o#a$p$s%q%u%z&d&l&x'QQ$r#cQ%R#{S%g$a%iQ%l$kQ&^%hR&p&P]#s!c!d!e#t#v#xW!Z]b!g$PQ!ufQ#f!YQ#l![Q$v#iQ$w#jQ$z#mS%V$R%XR&i%xQ#h!YQ%w$tR&w&hR$|#mR$n#`QlPR#_zQ!_]Q!nbQ$O!gR%U$P",nodeNames:"⚠ Unit VariableName VariableName QueryCallee Comment StyleSheet RuleSet UniversalSelector TagSelector TagName NestingSelector ClassSelector . ClassName PseudoClassSelector : :: PseudoClassName PseudoClassName ) ( ArgList ValueName ParenthesizedValue AtKeyword # ; ] [ BracketedValue } { BracedValue ColorLiteral NumberLiteral StringLiteral BinaryExpression BinOp CallExpression Callee IfExpression if ArgList IfBranch KeywordQuery FeatureQuery FeatureName BinaryQuery LogicOp ComparisonQuery CompareOp UnaryQuery UnaryQueryOp ParenthesizedQuery SelectorQuery selector ParenthesizedSelector CallQuery ArgList , CallLiteral CallTag ParenthesizedContent PseudoClassName ArgList IdSelector IdName AttributeSelector AttributeName MatchOp ChildSelector ChildOp DescendantSelector SiblingSelector SiblingOp Block Declaration PropertyName Important ImportStatement import Layer layer LayerName layer MediaStatement media CharsetStatement charset NamespaceStatement namespace NamespaceName KeyframesStatement keyframes KeyframeName KeyframeList KeyframeSelector KeyframeRangeName SupportsStatement supports ScopeStatement scope to AtRule Styles",maxTerm:143,nodeProps:[["isolate",-2,5,36,""],["openedBy",20,"(",28,"[",31,"{"],["closedBy",21,")",29,"]",32,"}"]],propSources:[NPe],skippedNodes:[0,5,106],repeatNodeCount:15,tokenData:"JQ~R!YOX$qX^%i^p$qpq%iqr({rs-ust/itu6Wuv$qvw7Qwx7cxy9Qyz9cz{9h{|:R|}>t}!O?V!O!P?t!P!Q@]!Q![AU![!]BP!]!^B{!^!_C^!_!`DY!`!aDm!a!b$q!b!cEn!c!}$q!}#OG{#O#P$q#P#QH^#Q#R6W#R#o$q#o#pHo#p#q6W#q#rIQ#r#sIc#s#y$q#y#z%i#z$f$q$f$g%i$g#BY$q#BY#BZ%i#BZ$IS$q$IS$I_%i$I_$I|$q$I|$JO%i$JO$JT$q$JT$JU%i$JU$KV$q$KV$KW%i$KW&FU$q&FU&FV%i&FV;'S$q;'S;=`Iz<%lO$q`$tSOy%Qz;'S%Q;'S;=`%c<%lO%Q`%VS!a`Oy%Qz;'S%Q;'S;=`%c<%lO%Q`%fP;=`<%l%Q~%nh#s~OX%QX^'Y^p%Qpq'Yqy%Qz#y%Q#y#z'Y#z$f%Q$f$g'Y$g#BY%Q#BY#BZ'Y#BZ$IS%Q$IS$I_'Y$I_$I|%Q$I|$JO'Y$JO$JT%Q$JT$JU'Y$JU$KV%Q$KV$KW'Y$KW&FU%Q&FU&FV'Y&FV;'S%Q;'S;=`%c<%lO%Q~'ah#s~!a`OX%QX^'Y^p%Qpq'Yqy%Qz#y%Q#y#z'Y#z$f%Q$f$g'Y$g#BY%Q#BY#BZ'Y#BZ$IS%Q$IS$I_'Y$I_$I|%Q$I|$JO'Y$JO$JT%Q$JT$JU'Y$JU$KV%Q$KV$KW'Y$KW&FU%Q&FU&FV'Y&FV;'S%Q;'S;=`%c<%lO%Qj)OUOy%Qz#]%Q#]#^)b#^;'S%Q;'S;=`%c<%lO%Qj)gU!a`Oy%Qz#a%Q#a#b)y#b;'S%Q;'S;=`%c<%lO%Qj*OU!a`Oy%Qz#d%Q#d#e*b#e;'S%Q;'S;=`%c<%lO%Qj*gU!a`Oy%Qz#c%Q#c#d*y#d;'S%Q;'S;=`%c<%lO%Qj+OU!a`Oy%Qz#f%Q#f#g+b#g;'S%Q;'S;=`%c<%lO%Qj+gU!a`Oy%Qz#h%Q#h#i+y#i;'S%Q;'S;=`%c<%lO%Qj,OU!a`Oy%Qz#T%Q#T#U,b#U;'S%Q;'S;=`%c<%lO%Qj,gU!a`Oy%Qz#b%Q#b#c,y#c;'S%Q;'S;=`%c<%lO%Qj-OU!a`Oy%Qz#h%Q#h#i-b#i;'S%Q;'S;=`%c<%lO%Qj-iS!qY!a`Oy%Qz;'S%Q;'S;=`%c<%lO%Q~-xWOY-uZr-urs.bs#O-u#O#P.g#P;'S-u;'S;=`/c<%lO-u~.gOt~~.jRO;'S-u;'S;=`.s;=`O-u~.vXOY-uZr-urs.bs#O-u#O#P.g#P;'S-u;'S;=`/c;=`<%l-u<%lO-u~/fP;=`<%l-uj/nYjYOy%Qz!Q%Q!Q![0^![!c%Q!c!i0^!i#T%Q#T#Z0^#Z;'S%Q;'S;=`%c<%lO%Qj0cY!a`Oy%Qz!Q%Q!Q![1R![!c%Q!c!i1R!i#T%Q#T#Z1R#Z;'S%Q;'S;=`%c<%lO%Qj1WY!a`Oy%Qz!Q%Q!Q![1v![!c%Q!c!i1v!i#T%Q#T#Z1v#Z;'S%Q;'S;=`%c<%lO%Qj1}YrY!a`Oy%Qz!Q%Q!Q![2m![!c%Q!c!i2m!i#T%Q#T#Z2m#Z;'S%Q;'S;=`%c<%lO%Qj2tYrY!a`Oy%Qz!Q%Q!Q![3d![!c%Q!c!i3d!i#T%Q#T#Z3d#Z;'S%Q;'S;=`%c<%lO%Qj3iY!a`Oy%Qz!Q%Q!Q![4X![!c%Q!c!i4X!i#T%Q#T#Z4X#Z;'S%Q;'S;=`%c<%lO%Qj4`YrY!a`Oy%Qz!Q%Q!Q![5O![!c%Q!c!i5O!i#T%Q#T#Z5O#Z;'S%Q;'S;=`%c<%lO%Qj5TY!a`Oy%Qz!Q%Q!Q![5s![!c%Q!c!i5s!i#T%Q#T#Z5s#Z;'S%Q;'S;=`%c<%lO%Qj5zSrY!a`Oy%Qz;'S%Q;'S;=`%c<%lO%Qd6ZUOy%Qz!_%Q!_!`6m!`;'S%Q;'S;=`%c<%lO%Qd6tS!hS!a`Oy%Qz;'S%Q;'S;=`%c<%lO%Qb7VSZQOy%Qz;'S%Q;'S;=`%c<%lO%Q~7fWOY7cZw7cwx.bx#O7c#O#P8O#P;'S7c;'S;=`8z<%lO7c~8RRO;'S7c;'S;=`8[;=`O7c~8_XOY7cZw7cwx.bx#O7c#O#P8O#P;'S7c;'S;=`8z;=`<%l7c<%lO7c~8}P;=`<%l7cj9VSeYOy%Qz;'S%Q;'S;=`%c<%lO%Q~9hOd~n9oUWQvWOy%Qz!_%Q!_!`6m!`;'S%Q;'S;=`%c<%lO%Qj:YWvW!mQOy%Qz!O%Q!O!P:r!P!Q%Q!Q![=w![;'S%Q;'S;=`%c<%lO%Qj:wU!a`Oy%Qz!Q%Q!Q![;Z![;'S%Q;'S;=`%c<%lO%Qj;bY!a`#}YOy%Qz!Q%Q!Q![;Z![!g%Q!g!h<Q!h#X%Q#X#Y<Q#Y;'S%Q;'S;=`%c<%lO%Qj<VY!a`Oy%Qz{%Q{|<u|}%Q}!O<u!O!Q%Q!Q![=^![;'S%Q;'S;=`%c<%lO%Qj<zU!a`Oy%Qz!Q%Q!Q![=^![;'S%Q;'S;=`%c<%lO%Qj=eU!a`#}YOy%Qz!Q%Q!Q![=^![;'S%Q;'S;=`%c<%lO%Qj>O[!a`#}YOy%Qz!O%Q!O!P;Z!P!Q%Q!Q![=w![!g%Q!g!h<Q!h#X%Q#X#Y<Q#Y;'S%Q;'S;=`%c<%lO%Qj>yS!^YOy%Qz;'S%Q;'S;=`%c<%lO%Qj?[WvWOy%Qz!O%Q!O!P:r!P!Q%Q!Q![=w![;'S%Q;'S;=`%c<%lO%Qj?yU]YOy%Qz!Q%Q!Q![;Z![;'S%Q;'S;=`%c<%lO%Q~@bTvWOy%Qz{@q{;'S%Q;'S;=`%c<%lO%Q~@xS!a`#t~Oy%Qz;'S%Q;'S;=`%c<%lO%QjAZ[#}YOy%Qz!O%Q!O!P;Z!P!Q%Q!Q![=w![!g%Q!g!h<Q!h#X%Q#X#Y<Q#Y;'S%Q;'S;=`%c<%lO%QjBUU`YOy%Qz![%Q![!]Bh!];'S%Q;'S;=`%c<%lO%QbBoSaQ!a`Oy%Qz;'S%Q;'S;=`%c<%lO%QjCQSkYOy%Qz;'S%Q;'S;=`%c<%lO%QhCcU!TWOy%Qz!_%Q!_!`Cu!`;'S%Q;'S;=`%c<%lO%QhC|S!TW!a`Oy%Qz;'S%Q;'S;=`%c<%lO%QlDaS!TW!hSOy%Qz;'S%Q;'S;=`%c<%lO%QjDtV!jQ!TWOy%Qz!_%Q!_!`Cu!`!aEZ!a;'S%Q;'S;=`%c<%lO%QbEbS!jQ!a`Oy%Qz;'S%Q;'S;=`%c<%lO%QjEqYOy%Qz}%Q}!OFa!O!c%Q!c!}GO!}#T%Q#T#oGO#o;'S%Q;'S;=`%c<%lO%QjFfW!a`Oy%Qz!c%Q!c!}GO!}#T%Q#T#oGO#o;'S%Q;'S;=`%c<%lO%QjGV[iY!a`Oy%Qz}%Q}!OGO!O!Q%Q!Q![GO![!c%Q!c!}GO!}#T%Q#T#oGO#o;'S%Q;'S;=`%c<%lO%QjHQSmYOy%Qz;'S%Q;'S;=`%c<%lO%QnHcSl^Oy%Qz;'S%Q;'S;=`%c<%lO%QjHtSpYOy%Qz;'S%Q;'S;=`%c<%lO%QjIVSoYOy%Qz;'S%Q;'S;=`%c<%lO%QfIhU!mQOy%Qz!_%Q!_!`6m!`;'S%Q;'S;=`%c<%lO%Q`I}P;=`<%l$q",tokenizers:[LPe,DPe,MPe,$Pe,1,2,3,4,new fw("m~RRYZ[z{a~~g~aO#v~~dP!P!Qg~lO#w~~",28,129)],topRules:{StyleSheet:[0,6],Styles:[1,105]},specialized:[{term:124,get:t=>QPe[t]||-1},{term:125,get:t=>IPe[t]||-1},{term:4,get:t=>jPe[t]||-1},{term:25,get:t=>BPe[t]||-1},{term:123,get:t=>zPe[t]||-1}],tokenPrec:1963});let GP=null;function ZP(){if(!GP&&typeof document=="object"&&document.body){let{style:t}=document.body,e=[],n=new Set;for(let i in t)i!="cssText"&&i!="cssFloat"&&typeof t[i]=="string"&&(/[A-Z]/.test(i)&&(i=i.replace(/[A-Z]/g,r=>"-"+r.toLowerCase())),n.has(i)||(e.push(i),n.add(i)));GP=e.sort().map(i=>({type:"property",label:i,apply:i+": "}))}return GP||[]}const Q8=["active","after","any-link","autofill","backdrop","before","checked","cue","default","defined","disabled","empty","enabled","file-selector-button","first","first-child","first-letter","first-line","first-of-type","focus","focus-visible","focus-within","fullscreen","has","host","host-context","hover","in-range","indeterminate","invalid","is","lang","last-child","last-of-type","left","link","marker","modal","not","nth-child","nth-last-child","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","part","placeholder","placeholder-shown","read-only","read-write","required","right","root","scope","selection","slotted","target","target-text","valid","visited","where"].map(t=>({type:"class",label:t})),I8=["above","absolute","activeborder","additive","activecaption","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","antialiased","appworkspace","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic-abegede-gez","ethiopic-halehame-aa-er","ethiopic-halehame-gez","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","graytext","grid","groove","hand","hard-light","help","hidden","hide","higher","highlight","highlighttext","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","justify","keep-all","landscape","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-hexadecimal","lower-latin","lower-norwegian","lowercase","ltr","luminosity","manipulation","match","matrix","matrix3d","medium","menu","menutext","message-box","middle","min-intrinsic","mix","monospace","move","multiple","multiple_mask_images","multiply","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","opacity","open-quote","optimizeLegibility","optimizeSpeed","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","text","text-bottom","text-top","textarea","textfield","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","to","top","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-latin","uppercase","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"].map(t=>({type:"keyword",label:t})).concat(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"].map(t=>({type:"constant",label:t}))),qPe=["a","abbr","address","article","aside","b","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","dd","del","details","dfn","dialog","div","dl","dt","em","figcaption","figure","footer","form","header","hgroup","h1","h2","h3","h4","h5","h6","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","meter","nav","ol","output","p","pre","ruby","section","select","small","source","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","tr","u","ul"].map(t=>({type:"type",label:t})),XPe=["@charset","@color-profile","@container","@counter-style","@font-face","@font-feature-values","@font-palette-values","@import","@keyframes","@layer","@media","@namespace","@page","@position-try","@property","@scope","@starting-style","@supports","@view-transition"].map(t=>({type:"keyword",label:t})),Cl=/^(\w[\w-]*|-\w[\w-]*|)$/,FPe=/^-(-[\w-]*)?$/;function UPe(t,e){var n;if((t.name=="("||t.type.isError)&&(t=t.parent||t),t.name!="ArgList")return!1;let i=(n=t.parent)===null||n===void 0?void 0:n.firstChild;return i?.name!="Callee"?!1:e.sliceString(i.from,i.to)=="var"}const j8=new VG,WPe=["Declaration"];function GPe(t){for(let e=t;;){if(e.type.isTop)return e;if(!(e=e.parent))return t}}function TK(t,e,n){if(e.to-e.from>4096){let i=j8.get(e);if(i)return i;let r=[],s=new Set,o=e.cursor(Jt.IncludeAnonymous);if(o.firstChild())do for(let a of TK(t,o.node,n))s.has(a.label)||(s.add(a.label),r.push(a));while(o.nextSibling());return j8.set(e,r),r}else{let i=[],r=new Set;return e.cursor().iterate(s=>{var o;if(n(s)&&s.matchContext(WPe)&&((o=s.node.nextSibling)===null||o===void 0?void 0:o.name)==":"){let a=t.sliceString(s.from,s.to);r.has(a)||(r.add(a),i.push({label:a,type:"variable"}))}}),i}}const PK=t=>e=>{let{state:n,pos:i}=e,r=Qt(n).resolveInner(i,-1),s=r.type.isError&&r.from==r.to-1&&n.doc.sliceString(r.from,r.to)=="-";if(r.name=="PropertyName"||(s||r.name=="TagName")&&/^(Block|Styles)$/.test(r.resolve(r.to).name))return{from:r.from,options:ZP(),validFor:Cl};if(r.name=="ValueName")return{from:r.from,options:I8,validFor:Cl};if(r.name=="PseudoClassName")return{from:r.from,options:Q8,validFor:Cl};if(t(r)||(e.explicit||s)&&UPe(r,n.doc))return{from:t(r)||s?r.from:i,options:TK(n.doc,GPe(r),t),validFor:FPe};if(r.name=="TagName"){for(let{parent:l}=r;l;l=l.parent)if(l.name=="Block")return{from:r.from,options:ZP(),validFor:Cl};return{from:r.from,options:qPe,validFor:Cl}}if(r.name=="AtKeyword")return{from:r.from,options:XPe,validFor:Cl};if(!e.explicit)return null;let o=r.resolve(i),a=o.childBefore(i);return a&&a.name==":"&&o.name=="PseudoClassSelector"?{from:i,options:Q8,validFor:Cl}:a&&a.name==":"&&o.name=="Declaration"||o.name=="ArgList"?{from:i,options:I8,validFor:Cl}:o.name=="Block"||o.name=="Styles"?{from:i,options:ZP(),validFor:Cl}:null},AK=PK(t=>t.name=="VariableName"),yx=rc.define({name:"css",parser:VPe.configure({props:[ju.add({Declaration:Am()}),Bu.add({"Block KeyframeList":Lk})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function RK(){return new Ha(yx,yx.data.of({autocomplete:AK}))}const ZPe=Object.freeze(Object.defineProperty({__proto__:null,css:RK,cssCompletionSource:AK,cssLanguage:yx,defineCSSCompletionSource:PK},Symbol.toStringTag,{value:"Module"})),Zb=["_blank","_self","_top","_parent"],HP=["ascii","utf-8","utf-16","latin1","latin1"],YP=["get","post","put","delete"],KP=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],bs=["true","false"],Ne={},HPe={a:{attrs:{href:null,ping:null,type:null,media:null,target:Zb,hreflang:null}},abbr:Ne,address:Ne,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:Ne,aside:Ne,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:Ne,base:{attrs:{href:null,target:Zb}},bdi:Ne,bdo:Ne,blockquote:{attrs:{cite:null}},body:Ne,br:Ne,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:KP,formmethod:YP,formnovalidate:["novalidate"],formtarget:Zb,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:Ne,center:Ne,cite:Ne,code:Ne,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["disabled"],checked:["checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["disabled"],multiple:["multiple"]}},datalist:{attrs:{data:null}},dd:Ne,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:Ne,div:Ne,dl:Ne,dt:Ne,em:Ne,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:Ne,figure:Ne,footer:Ne,form:{attrs:{action:null,name:null,"accept-charset":HP,autocomplete:["on","off"],enctype:KP,method:YP,novalidate:["novalidate"],target:Zb}},h1:Ne,h2:Ne,h3:Ne,h4:Ne,h5:Ne,h6:Ne,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:Ne,hgroup:Ne,hr:Ne,html:{attrs:{manifest:null}},i:Ne,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["autofocus"],checked:["checked"],disabled:["disabled"],formenctype:KP,formmethod:YP,formnovalidate:["novalidate"],formtarget:Zb,multiple:["multiple"],readonly:["readonly"],required:["required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:Ne,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:Ne,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:null,media:null,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:Ne,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:HP,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:Ne,noscript:Ne,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["typemustmatch"]}},ol:{attrs:{reversed:["reversed"],start:null,type:["1","a","A","i","I"]},children:["li","script","template","ul","ol"]},optgroup:{attrs:{disabled:["disabled"],label:null}},option:{attrs:{disabled:["disabled"],label:null,selected:["selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:Ne,param:{attrs:{name:null,value:null}},pre:Ne,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:Ne,rt:Ne,ruby:Ne,samp:Ne,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:HP}},section:Ne,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:Ne,source:{attrs:{src:null,type:null,media:null}},span:Ne,strong:Ne,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:Ne,summary:Ne,sup:Ne,table:Ne,tbody:Ne,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:Ne,textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["autofocus"],disabled:["disabled"],readonly:["readonly"],required:["required"],wrap:["soft","hard"]}},tfoot:Ne,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:Ne,time:{attrs:{datetime:null}},title:Ne,tr:Ne,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:Ne,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["autoplay"],mediagroup:["movie"],muted:["muted"],controls:["controls"]}},wbr:Ne},EK={accesskey:null,class:null,contenteditable:bs,contextmenu:null,dir:["ltr","rtl","auto"],draggable:["true","false","auto"],dropzone:["copy","move","link","string:","file:"],hidden:["hidden"],id:null,inert:["inert"],itemid:null,itemprop:null,itemref:null,itemscope:["itemscope"],itemtype:null,lang:["ar","bn","de","en-GB","en-US","es","fr","hi","id","ja","pa","pt","ru","tr","zh"],spellcheck:bs,autocorrect:bs,autocapitalize:bs,style:null,tabindex:null,title:null,translate:["yes","no"],rel:["stylesheet","alternate","author","bookmark","help","license","next","nofollow","noreferrer","prefetch","prev","search","tag"],role:"alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),"aria-activedescendant":null,"aria-atomic":bs,"aria-autocomplete":["inline","list","both","none"],"aria-busy":bs,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":bs,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":bs,"aria-hidden":bs,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":bs,"aria-multiselectable":bs,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":bs,"aria-relevant":null,"aria-required":bs,"aria-selected":["true","false","undefined"],"aria-setsize":null,"aria-sort":["ascending","descending","none","other"],"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null},MK="beforeunload copy cut dragstart dragover dragleave dragenter dragend drag paste focus blur change click load mousedown mouseenter mouseleave mouseup keydown keyup resize scroll unload".split(" ").map(t=>"on"+t);for(let t of MK)EK[t]=null;class xx{constructor(e,n){this.tags={...HPe,...e},this.globalAttrs={...EK,...n},this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}}xx.default=new xx;function Ym(t,e,n=t.length){if(!e)return"";let i=e.firstChild,r=i&&i.getChild("TagName");return r?t.sliceString(r.from,Math.min(r.to,n)):""}function Km(t,e=!1){for(;t;t=t.parent)if(t.name=="Element")if(e)e=!1;else return t;return null}function $K(t,e,n){let i=n.tags[Ym(t,Km(e))];return i?.children||n.allTags}function b5(t,e){let n=[];for(let i=Km(e);i&&!i.type.isTop;i=Km(i.parent)){let r=Ym(t,i);if(r&&i.lastChild.name=="CloseTag")break;r&&n.indexOf(r)<0&&(e.name=="EndTag"||e.from>=i.firstChild.to)&&n.push(r)}return n}const LK=/^[:\-\.\w\u00b7-\uffff]*$/;function B8(t,e,n,i,r){let s=/\s*>/.test(t.sliceDoc(r,r+5))?"":">",o=Km(n,n.name=="StartTag"||n.name=="TagName");return{from:i,to:r,options:$K(t.doc,o,e).map(a=>({label:a,type:"type"})).concat(b5(t.doc,n).map((a,l)=>({label:"/"+a,apply:"/"+a+s,type:"type",boost:99-l}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function z8(t,e,n,i){let r=/\s*>/.test(t.sliceDoc(i,i+5))?"":">";return{from:n,to:i,options:b5(t.doc,e).map((s,o)=>({label:s,apply:s+r,type:"type",boost:99-o})),validFor:LK}}function YPe(t,e,n,i){let r=[],s=0;for(let o of $K(t.doc,n,e))r.push({label:"<"+o,type:"type"});for(let o of b5(t.doc,n))r.push({label:"</"+o+">",type:"type",boost:99-s++});return{from:i,to:i,options:r,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}function KPe(t,e,n,i,r){let s=Km(n),o=s?e.tags[Ym(t.doc,s)]:null,a=o&&o.attrs?Object.keys(o.attrs):[],l=o&&o.globalAttrs===!1?a:a.length?a.concat(e.globalAttrNames):e.globalAttrNames;return{from:i,to:r,options:l.map(u=>({label:u,type:"property"})),validFor:LK}}function JPe(t,e,n,i,r){var s;let o=(s=n.parent)===null||s===void 0?void 0:s.getChild("AttributeName"),a=[],l;if(o){let u=t.sliceDoc(o.from,o.to),d=e.globalAttrs[u];if(!d){let f=Km(n),m=f?e.tags[Ym(t.doc,f)]:null;d=m?.attrs&&m.attrs[u]}if(d){let f=t.sliceDoc(i,r).toLowerCase(),m='"',g='"';/^['"]/.test(f)?(l=f[0]=='"'?/^[^"]*$/:/^[^']*$/,m="",g=t.sliceDoc(r,r+1)==f[0]?"":f[0],f=f.slice(1),i++):l=/^[^\s<>='"]*$/;for(let y of d)a.push({label:y,apply:m+y+g,type:"constant"})}}return{from:i,to:r,options:a,validFor:l}}function DK(t,e){let{state:n,pos:i}=e,r=Qt(n).resolveInner(i,-1),s=r.resolve(i);for(let o=i,a;s==r&&(a=r.childBefore(o));){let l=a.lastChild;if(!l||!l.type.isError||l.from<l.to)break;s=r=a,o=l.from}return r.name=="TagName"?r.parent&&/CloseTag$/.test(r.parent.name)?z8(n,r,r.from,i):B8(n,t,r,r.from,i):r.name=="StartTag"||r.name=="IncompleteTag"?B8(n,t,r,i,i):r.name=="StartCloseTag"||r.name=="IncompleteCloseTag"?z8(n,r,i,i):r.name=="OpenTag"||r.name=="SelfClosingTag"||r.name=="AttributeName"?KPe(n,t,r,r.name=="AttributeName"?r.from:i,i):r.name=="Is"||r.name=="AttributeValue"||r.name=="UnquotedAttributeValue"?JPe(n,t,r,r.name=="Is"?i:r.from,i):e.explicit&&(s.name=="Element"||s.name=="Text"||s.name=="Document")?YPe(n,t,r,i):null}function NK(t){return DK(xx.default,t)}function QK(t){let{extraTags:e,extraGlobalAttributes:n}=t,i=n||e?new xx(e,n):xx.default;return r=>DK(i,r)}const eAe=wo.parser.configure({top:"SingleExpression"}),IK=[{tag:"script",attrs:t=>t.type=="text/typescript"||t.lang=="ts",parser:o5.parser},{tag:"script",attrs:t=>t.type=="text/babel"||t.type=="text/jsx",parser:a5.parser},{tag:"script",attrs:t=>t.type=="text/typescript-jsx",parser:l5.parser},{tag:"script",attrs(t){return/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(t.type)},parser:eAe},{tag:"script",attrs(t){return!t.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(t.type)},parser:wo.parser},{tag:"style",attrs(t){return(!t.lang||t.lang=="css")&&(!t.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(t.type))},parser:yx.parser}],jK=[{name:"style",parser:yx.parser.configure({top:"Styles"})}].concat(MK.map(t=>({name:t,parser:wo.parser}))),BK=rc.define({name:"html",parser:mPe.configure({props:[ju.add({Element(t){let e=/^(\s*)(<\/)?/.exec(t.textAfter);return t.node.to<=t.pos+e[0].length?t.continue():t.lineIndent(t.node.from)+(e[2]?0:t.unit)},"OpenTag CloseTag SelfClosingTag"(t){return t.column(t.node.from)+t.unit},Document(t){if(t.pos+/\s*/.exec(t.textAfter)[0].length<t.node.to)return t.continue();let e=null,n;for(let i=t.node;;){let r=i.lastChild;if(!r||r.name!="Element"||r.to!=i.to)break;e=i=r}return e&&!((n=e.lastChild)&&(n.name=="CloseTag"||n.name=="SelfClosingTag"))?t.lineIndent(e.from)+t.unit:null}}),Bu.add({Element(t){let e=t.firstChild,n=t.lastChild;return!e||e.name!="OpenTag"?null:{from:e.to,to:n.name=="CloseTag"?n.from:t.to}}}),LH.add({"OpenTag CloseTag":t=>t.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:"<!--",close:"-->"}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-_"}}),y0=BK.configure({wrap:vK(IK,jK)});function zK(t={}){let e="",n;t.matchClosingTags===!1&&(e="noMatch"),t.selfClosingTags===!0&&(e=(e?e+" ":"")+"selfClosing"),(t.nestedLanguages&&t.nestedLanguages.length||t.nestedAttributes&&t.nestedAttributes.length)&&(n=vK((t.nestedLanguages||[]).concat(IK),(t.nestedAttributes||[]).concat(jK)));let i=n?BK.configure({wrap:n,dialect:e}):e?y0.configure({dialect:e}):y0;return new Ha(i,[y0.data.of({autocomplete:QK(t)}),t.autoCloseTags!==!1?VK:[],bw().support,RK().support])}const V8=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),VK=be.inputHandler.of((t,e,n,i,r)=>{if(t.composing||t.state.readOnly||e!=n||i!=">"&&i!="/"||!y0.isActiveAt(t.state,e,-1))return!1;let s=r(),{state:o}=s,a=o.changeByRange(l=>{var u,d,f;let m=o.doc.sliceString(l.from-1,l.to)==i,{head:g}=l,y=Qt(o).resolveInner(g,-1),_;if(m&&i==">"&&y.name=="EndTag"){let v=y.parent;if(((d=(u=v.parent)===null||u===void 0?void 0:u.lastChild)===null||d===void 0?void 0:d.name)!="CloseTag"&&(_=Ym(o.doc,v.parent,g))&&!V8.has(_)){let w=g+(o.doc.sliceString(g,g+1)===">"?1:0),T=`</${_}>`;return{range:l,changes:{from:g,to:w,insert:T}}}}else if(m&&i=="/"&&y.name=="IncompleteCloseTag"){let v=y.parent;if(y.from==g-2&&((f=v.lastChild)===null||f===void 0?void 0:f.name)!="CloseTag"&&(_=Ym(o.doc,v,g))&&!V8.has(_)){let w=g+(o.doc.sliceString(g,g+1)===">"?1:0),T=`${_}>`;return{range:ue.cursor(g+T.length,-1),changes:{from:g,to:w,insert:T}}}}return{range:l}});return a.changes.empty?!1:(t.dispatch([s,o.update(a,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),tAe=Object.freeze(Object.defineProperty({__proto__:null,autoCloseTags:VK,html:zK,htmlCompletionSource:NK,htmlCompletionSourceWith:QK,htmlLanguage:y0},Symbol.toStringTag,{value:"Module"})),qK=Mk({commentTokens:{block:{open:"<!--",close:"-->"}}}),XK=new Ue,FK=b2e.configure({props:[Bu.add(t=>!t.is("Block")||t.is("Document")||tL(t)!=null||nAe(t)?void 0:(e,n)=>({from:n.doc.lineAt(e.from).to,to:e.to})),XK.add(tL),ju.add({Document:()=>null}),gu.add({Document:qK})]});function tL(t){let e=/^(?:ATX|Setext)Heading(\d)$/.exec(t.name);return e?+e[1]:void 0}function nAe(t){return t.name=="OrderedList"||t.name=="BulletList"}function iAe(t,e){let n=t;for(;;){let i=n.nextSibling,r;if(!i||(r=tL(i.type))!=null&&r<=e)break;n=i}return n.to}const rAe=vH.of((t,e,n)=>{for(let i=Qt(t).resolveInner(n,-1);i&&!(i.from<e);i=i.parent){let r=i.type.prop(XK);if(r==null)continue;let s=iAe(i,r);if(s>n)return{from:n,to:s}}return null});function y5(t){return new Ps(qK,t,[],"markdown")}const UK=y5(FK),sAe=FK.configure([P2e,R2e,A2e,E2e,{props:[Bu.add({Table:(t,e)=>({from:e.doc.lineAt(t.from).to,to:t.to})})]}]),Jm=y5(sAe);function oAe(t,e){return n=>{if(n&&t){let i=null;if(n=/\S*/.exec(n)[0],typeof t=="function"?i=t(n):i=oe.matchLanguageName(t,n,!0),i instanceof oe)return i.support?i.support.language.parser:nf.getSkippingParser(i.load());if(i)return i.parser}return e?e.parser:null}}let JP=class{constructor(e,n,i,r,s,o,a){this.node=e,this.from=n,this.to=i,this.spaceBefore=r,this.spaceAfter=s,this.type=o,this.item=a}blank(e,n=!0){let i=this.spaceBefore+(this.node.name=="Blockquote"?">":"");if(e!=null){for(;i.length<e;)i+=" ";return i}else{for(let r=this.to-this.from-i.length-this.spaceAfter.length;r>0;r--)i+=" ";return i+(n?this.spaceAfter:"")}}marker(e,n){let i=this.node.name=="OrderedList"?String(+GK(this.item,e)[2]+n):"";return this.spaceBefore+i+this.type+this.spaceAfter}};function WK(t,e){let n=[],i=[];for(let r=t;r;r=r.parent){if(r.name=="FencedCode")return i;(r.name=="ListItem"||r.name=="Blockquote")&&n.push(r)}for(let r=n.length-1;r>=0;r--){let s=n[r],o,a=e.lineAt(s.from),l=s.from-a.from;if(s.name=="Blockquote"&&(o=/^ *>( ?)/.exec(a.text.slice(l))))i.push(new JP(s,l,l+o[0].length,"",o[1],">",null));else if(s.name=="ListItem"&&s.parent.name=="OrderedList"&&(o=/^( *)\d+([.)])( *)/.exec(a.text.slice(l)))){let u=o[3],d=o[0].length;u.length>=4&&(u=u.slice(0,u.length-4),d-=4),i.push(new JP(s.parent,l,l+d,o[1],u,o[2],s))}else if(s.name=="ListItem"&&s.parent.name=="BulletList"&&(o=/^( *)([-+*])( {1,4}\[[ xX]\])?( +)/.exec(a.text.slice(l)))){let u=o[4],d=o[0].length;u.length>4&&(u=u.slice(0,u.length-4),d-=4);let f=o[2];o[3]&&(f+=o[3].replace(/[xX]/," ")),i.push(new JP(s.parent,l,l+d,o[1],u,f,s))}}return i}function GK(t,e){return/^(\s*)(\d+)(?=[.)])/.exec(e.sliceString(t.from,t.from+10))}function eA(t,e,n,i=0){for(let r=-1,s=t;;){if(s.name=="ListItem"){let a=GK(s,e),l=+a[2];if(r>=0){if(l!=r+1)return;n.push({from:s.from+a[1].length,to:s.from+a[0].length,insert:String(r+2+i)})}r=l}let o=s.nextSibling;if(!o)break;s=o}}function x5(t,e){let n=/^[ \t]*/.exec(t)[0].length;if(!n||e.facet(wg)!=" ")return t;let i=Ko(t,4,n),r="";for(let s=i;s>0;)s>=4?(r+=" ",s-=4):(r+=" ",s--);return r+t.slice(n)}const ZK=(t={})=>({state:e,dispatch:n})=>{let i=Qt(e),{doc:r}=e,s=null,o=e.changeByRange(a=>{if(!a.empty||!Jm.isActiveAt(e,a.from,-1)&&!Jm.isActiveAt(e,a.from,1))return s={range:a};let l=a.from,u=r.lineAt(l),d=WK(i.resolveInner(l,-1),r);for(;d.length&&d[d.length-1].from>l-u.from;)d.pop();if(!d.length)return s={range:a};let f=d[d.length-1];if(f.to-f.spaceAfter.length>l-u.from)return s={range:a};let m=l>=f.to-f.spaceAfter.length&&!/\S/.test(u.text.slice(f.to));if(f.item&&m){let w=f.node.firstChild,T=f.node.getChild("ListItem","ListItem");if(w.to>=l||T&&T.to<l||u.from>0&&!/[^\s>]/.test(r.lineAt(u.from-1).text)||t.nonTightLists===!1){let C=d.length>1?d[d.length-2]:null,E,R="";C&&C.item?(E=u.from+C.from,R=C.marker(r,1)):E=u.from+(C?C.to:0);let P=[{from:E,to:l,insert:R}];return f.node.name=="OrderedList"&&eA(f.item,r,P,-2),C&&C.node.name=="OrderedList"&&eA(C.item,r,P),{range:ue.cursor(E+R.length),changes:P}}else{let C=X8(d,e,u);return{range:ue.cursor(l+C.length+1),changes:{from:u.from,insert:C+e.lineBreak}}}}if(f.node.name=="Blockquote"&&m&&u.from){let w=r.lineAt(u.from-1),T=/>\s*$/.exec(w.text);if(T&&T.index==f.from){let C=e.changes([{from:w.from+T.index,to:w.to},{from:u.from+f.from,to:u.to}]);return{range:a.map(C),changes:C}}}let g=[];f.node.name=="OrderedList"&&eA(f.item,r,g);let y=f.item&&f.item.from<u.from,_="";if(!y||/^[\s\d.)\-+*>]*/.exec(u.text)[0].length>=f.to)for(let w=0,T=d.length-1;w<=T;w++)_+=w==T&&!y?d[w].marker(r,1):d[w].blank(w<T?Ko(u.text,4,d[w+1].from)-_.length:null);let v=l;for(;v>u.from&&/\s/.test(u.text.charAt(v-u.from-1));)v--;return _=x5(_,e),aAe(f.node,e.doc)&&(_=X8(d,e,u)+e.lineBreak+_),g.push({from:v,to:l,insert:e.lineBreak+_}),{range:ue.cursor(v+_.length+1),changes:g}});return s?!1:(n(e.update(o,{scrollIntoView:!0,userEvent:"input"})),!0)},HK=ZK();function q8(t){return t.name=="QuoteMark"||t.name=="ListMark"}function aAe(t,e){if(t.name!="OrderedList"&&t.name!="BulletList")return!1;let n=t.firstChild,i=t.getChild("ListItem","ListItem");if(!i)return!1;let r=e.lineAt(n.to),s=e.lineAt(i.from),o=/^[\s>]*$/.test(r.text);return r.number+(o?0:1)<s.number}function X8(t,e,n){let i="";for(let r=0,s=t.length-2;r<=s;r++)i+=t[r].blank(r<s?Ko(n.text,4,t[r+1].from)-i.length:null,r<s);return x5(i,e)}function lAe(t,e){let n=t.resolveInner(e,-1),i=e;q8(n)&&(i=n.from,n=n.parent);for(let r;r=n.childBefore(i);)if(q8(r))i=r.from;else if(r.name=="OrderedList"||r.name=="BulletList")n=r.lastChild,i=n.to;else break;return n}const YK=({state:t,dispatch:e})=>{let n=Qt(t),i=null,r=t.changeByRange(s=>{let o=s.from,{doc:a}=t;if(s.empty&&Jm.isActiveAt(t,s.from)){let l=a.lineAt(o),u=WK(lAe(n,o),a);if(u.length){let d=u[u.length-1],f=d.to-d.spaceAfter.length+(d.spaceAfter?1:0);if(o-l.from>f&&!/\S/.test(l.text.slice(f,o-l.from)))return{range:ue.cursor(l.from+f),changes:{from:l.from+f,to:o}};if(o-l.from==f&&(!d.item||l.from<=d.item.from||!/\S/.test(l.text.slice(0,d.to)))){let m=l.from+d.from;if(d.item&&d.node.from<d.item.from&&/\S/.test(l.text.slice(d.from,d.to))){let g=d.blank(Ko(l.text,4,d.to)-Ko(l.text,4,d.from));return m==l.from&&(g=x5(g,t)),{range:ue.cursor(m+g.length),changes:{from:m,to:l.from+d.to,insert:g}}}if(m<o)return{range:ue.cursor(m),changes:{from:m,to:o}}}}}return i={range:s}});return i?!1:(e(t.update(r,{scrollIntoView:!0,userEvent:"delete"})),!0)},KK=[{key:"Enter",run:HK},{key:"Backspace",run:YK}],JK=zK({matchClosingTags:!1});function eJ(t={}){let{codeLanguages:e,defaultCodeLanguage:n,addKeymap:i=!0,base:{parser:r}=UK,completeHTMLTags:s=!0,pasteURLAsLink:o=!0,htmlTagLanguage:a=JK}=t;if(!(r instanceof zk))throw new RangeError("Base parser provided to `markdown` should be a Markdown parser");let l=t.extensions?[t.extensions]:[],u=[a.support,rAe],d;o&&u.push(tJ),n instanceof Ha?(u.push(n.support),d=n.language):n&&(d=n);let f=e||d?oAe(e,d):void 0;l.push(x2e({codeParser:f,htmlParser:a.language.parser})),i&&u.push(hc.high(_f.of(KK)));let m=y5(r.configure(l));return s&&u.push(m.data.of({autocomplete:cAe})),new Ha(m,u)}function cAe(t){let{state:e,pos:n}=t,i=/<[:\-\.\w\u00b7-\uffff]*$/.exec(e.sliceDoc(n-25,n));if(!i)return null;let r=Qt(e).resolveInner(n,-1);for(;r&&!r.type.isTop;){if(r.name=="CodeBlock"||r.name=="FencedCode"||r.name=="ProcessingInstructionBlock"||r.name=="CommentBlock"||r.name=="Link"||r.name=="Image")return null;r=r.parent}return{from:n-i[0].length,to:n,options:uAe(),validFor:/^<[:\-\.\w\u00b7-\uffff]*$/}}let tA=null;function uAe(){if(tA)return tA;let t=NK(new HN(ct.create({extensions:JK}),0,!0));return tA=t?t.options:[]}const hAe=/code|horizontalrule|html|link|comment|processing|escape|entity|image|mark|url/i,tJ=be.domEventHandlers({paste:(t,e)=>{var n;let{main:i}=e.state.selection;if(i.empty)return!1;let r=(n=t.clipboardData)===null||n===void 0?void 0:n.getData("text/plain");if(!r||!/^(https?:\/\/|mailto:|xmpp:|www\.)/.test(r)||(/^www\./.test(r)&&(r="https://"+r),!Jm.isActiveAt(e.state,i.from,1)))return!1;let s=Qt(e.state),o=!1;return s.iterate({from:i.from,to:i.to,enter:a=>{(a.from>i.from||hAe.test(a.name))&&(o=!0)},leave:a=>{a.to<i.to&&(o=!0)}}),o?!1:(e.dispatch({changes:[{from:i.from,insert:"["},{from:i.to,insert:`](${r})`}],userEvent:"input.paste",scrollIntoView:!0}),!0)}}),dAe=Object.freeze(Object.defineProperty({__proto__:null,commonmarkLanguage:UK,deleteMarkupBackward:YK,insertNewlineContinueMarkup:HK,insertNewlineContinueMarkupCommand:ZK,markdown:eJ,markdownKeymap:KK,markdownLanguage:Jm,pasteURLAsLink:tJ},Symbol.toStringTag,{value:"Module"})),Zp=63,F8=64,fAe=1,pAe=2,nJ=3,mAe=4,iJ=5,gAe=6,bAe=7,rJ=65,yAe=66,xAe=8,OAe=9,_Ae=10,vAe=11,SAe=12,sJ=13,wAe=19,kAe=20,CAe=29,TAe=33,PAe=34,AAe=47,RAe=0,O5=1,nL=2,Ox=3,iL=4;class yd{constructor(e,n,i){this.parent=e,this.depth=n,this.type=i,this.hash=(e?e.hash+e.hash<<8:0)+n+(n<<4)+i}}yd.top=new yd(null,-1,RAe);function x0(t,e){for(let n=0,i=e-t.pos-1;;i--,n++){let r=t.peek(i);if(oc(r)||r==-1)return n}}function rL(t){return t==32||t==9}function oc(t){return t==10||t==13}function oJ(t){return rL(t)||oc(t)}function Cd(t){return t<0||oJ(t)}const EAe=new ZN({start:yd.top,reduce(t,e){return t.type==Ox&&(e==kAe||e==PAe)?t.parent:t},shift(t,e,n,i){if(e==nJ)return new yd(t,x0(i,i.pos),O5);if(e==rJ||e==iJ)return new yd(t,x0(i,i.pos),nL);if(e==Zp)return t.parent;if(e==wAe||e==TAe)return new yd(t,0,Ox);if(e==sJ&&t.type==iL)return t.parent;if(e==AAe){let r=/[1-9]/.exec(i.read(i.pos,n.pos));if(r)return new yd(t,t.depth+ +r[0],iL)}return t},hash(t){return t.hash}});function eg(t,e,n=0){return t.peek(n)==e&&t.peek(n+1)==e&&t.peek(n+2)==e&&Cd(t.peek(n+3))}const MAe=new Bi((t,e)=>{if(t.next==-1&&e.canShift(F8))return t.acceptToken(F8);let n=t.peek(-1);if((oc(n)||n<0)&&e.context.type!=Ox){if(eg(t,45))if(e.canShift(Zp))t.acceptToken(Zp);else return t.acceptToken(fAe,3);if(eg(t,46))if(e.canShift(Zp))t.acceptToken(Zp);else return t.acceptToken(pAe,3);let i=0;for(;t.next==32;)i++,t.advance();(i<e.context.depth||i==e.context.depth&&e.context.type==O5&&(t.next!=45||!Cd(t.peek(1))))&&t.next!=-1&&!oc(t.next)&&t.next!=35&&t.acceptToken(Zp,-i)}},{contextual:!0}),$Ae=new Bi((t,e)=>{if(e.context.type==Ox){t.next==63&&(t.advance(),Cd(t.next)&&t.acceptToken(bAe));return}if(t.next==45)t.advance(),Cd(t.next)&&t.acceptToken(e.context.type==O5&&e.context.depth==x0(t,t.pos-1)?mAe:nJ);else if(t.next==63)t.advance(),Cd(t.next)&&t.acceptToken(e.context.type==nL&&e.context.depth==x0(t,t.pos-1)?gAe:iJ);else{let n=t.pos;for(;;)if(rL(t.next)){if(t.pos==n)return;t.advance()}else if(t.next==33)aJ(t);else if(t.next==38)sL(t);else if(t.next==42){sL(t);break}else if(t.next==39||t.next==34){if(_5(t,!0))break;return}else if(t.next==91||t.next==123){if(!DAe(t))return;break}else{lJ(t,!0,!1,0);break}for(;rL(t.next);)t.advance();if(t.next==58){if(t.pos==n&&e.canShift(CAe))return;let i=t.peek(1);Cd(i)&&t.acceptTokenTo(e.context.type==nL&&e.context.depth==x0(t,n)?yAe:rJ,n)}}},{contextual:!0});function LAe(t){return t>32&&t<127&&t!=34&&t!=37&&t!=44&&t!=60&&t!=62&&t!=92&&t!=94&&t!=96&&t!=123&&t!=124&&t!=125}function U8(t){return t>=48&&t<=57||t>=97&&t<=102||t>=65&&t<=70}function W8(t,e){return t.next==37?(t.advance(),U8(t.next)&&t.advance(),U8(t.next)&&t.advance(),!0):LAe(t.next)||e&&t.next==44?(t.advance(),!0):!1}function aJ(t){if(t.advance(),t.next==60){for(t.advance();;)if(!W8(t,!0)){t.next==62&&t.advance();break}}else for(;W8(t,!1););}function sL(t){for(t.advance();!Cd(t.next)&&_w(t.tag)!="f";)t.advance()}function _5(t,e){let n=t.next,i=!1,r=t.pos;for(t.advance();;){let s=t.next;if(s<0)break;if(t.advance(),s==n)if(s==39)if(t.next==39)t.advance();else break;else break;else if(s==92&&n==34)t.next>=0&&t.advance();else if(oc(s)){if(e)return!1;i=!0}else if(e&&t.pos>=r+1024)return!1}return!i}function DAe(t){for(let e=[],n=t.pos+1024;;)if(t.next==91||t.next==123)e.push(t.next),t.advance();else if(t.next==39||t.next==34){if(!_5(t,!0))return!1}else if(t.next==93||t.next==125){if(e[e.length-1]!=t.next-2)return!1;if(e.pop(),t.advance(),!e.length)return!0}else{if(t.next<0||t.pos>n||oc(t.next))return!1;t.advance()}}const NAe="iiisiiissisfissssssssssssisssiiissssssssssssssssssssssssssfsfssissssssssssssssssssssssssssfif";function _w(t){return t<33?"u":t>125?"s":NAe[t-33]}function nA(t,e){let n=_w(t);return n!="u"&&!(e&&n=="f")}function lJ(t,e,n,i){if(_w(t.next)=="s"||(t.next==63||t.next==58||t.next==45)&&nA(t.peek(1),n))t.advance();else return!1;let r=t.pos;for(;;){let s=t.next,o=0,a=i+1;for(;oJ(s);){if(oc(s)){if(e)return!1;a=0}else a++;s=t.peek(++o)}if(!(s>=0&&(s==58?nA(t.peek(o+1),n):s==35?t.peek(o-1)!=32:nA(s,n)))||!n&&a<=i||a==0&&!n&&(eg(t,45,o)||eg(t,46,o)))break;if(e&&_w(s)=="f")return!1;for(let u=o;u>=0;u--)t.advance();if(e&&t.pos>r+1024)return!1}return!0}const QAe=new Bi((t,e)=>{if(t.next==33)aJ(t),t.acceptToken(SAe);else if(t.next==38||t.next==42){let n=t.next==38?_Ae:vAe;sL(t),t.acceptToken(n)}else t.next==39||t.next==34?(_5(t,!1),t.acceptToken(OAe)):lJ(t,!1,e.context.type==Ox,e.context.depth)&&t.acceptToken(xAe)}),IAe=new Bi((t,e)=>{let n=e.context.type==iL?e.context.depth:-1,i=t.pos;e:for(;;){let r=0,s=t.next;for(;s==32;)s=t.peek(++r);if(!r&&(eg(t,45,r)||eg(t,46,r))||!oc(s)&&(n<0&&(n=Math.max(e.context.depth+1,r)),r<n))break;for(;;){if(t.next<0)break e;let o=oc(t.next);if(t.advance(),o)continue e;i=t.pos}}t.acceptTokenTo(sJ,i)}),jAe=dc({DirectiveName:O.keyword,DirectiveContent:O.attributeValue,"DirectiveEnd DocEnd":O.meta,QuotedLiteral:O.string,BlockLiteralHeader:O.special(O.string),BlockLiteralContent:O.content,Literal:O.content,"Key/Literal Key/QuotedLiteral":O.definition(O.propertyName),"Anchor Alias":O.labelName,Tag:O.typeName,Comment:O.lineComment,": , -":O.separator,"?":O.punctuation,"[ ]":O.squareBracket,"{ }":O.brace}),BAe=sc.deserialize({version:14,states:"5lQ!ZQgOOO#PQfO'#CpO#uQfO'#DOOOQR'#Dv'#DvO$qQgO'#DRO%gQdO'#DUO%nQgO'#DUO&ROaO'#D[OOQR'#Du'#DuO&{QgO'#D^O'rQgO'#D`OOQR'#Dt'#DtO(iOqO'#DbOOQP'#Dj'#DjO(zQaO'#CmO)YQgO'#CmOOQP'#Cm'#CmQ)jQaOOQ)uQgOOQ]QgOOO*PQdO'#CrO*nQdO'#CtOOQO'#Dw'#DwO+]Q`O'#CxO+hQdO'#CwO+rQ`O'#CwOOQO'#Cv'#CvO+wQdO'#CvOOQO'#Cq'#CqO,UQ`O,59[O,^QfO,59[OOQR,59[,59[OOQO'#Cx'#CxO,eQ`O'#DPO,pQdO'#DPOOQO'#Dx'#DxO,zQdO'#DxO-XQ`O,59jO-aQfO,59jOOQR,59j,59jOOQR'#DS'#DSO-hQcO,59mO-sQgO'#DVO.TQ`O'#DVO.YQcO,59pOOQR'#DX'#DXO#|QfO'#DWO.hQcO'#DWOOQR,59v,59vO.yOWO,59vO/OOaO,59vO/WOaO,59vO/cQgO'#D_OOQR,59x,59xO0VQgO'#DaOOQR,59z,59zOOQP,59|,59|O0yOaO,59|O1ROaO,59|O1aOqO,59|OOQP-E7h-E7hO1oQgO,59XOOQP,59X,59XO2PQaO'#DeO2_QgO'#DeO2oQgO'#DkOOQP'#Dk'#DkQ)jQaOOO3PQdO'#CsOOQO,59^,59^O3kQdO'#CuOOQO,59`,59`OOQO,59c,59cO4VQdO,59cO4aQdO'#CzO4kQ`O'#CzOOQO,59b,59bOOQU,5:Q,5:QOOQR1G.v1G.vO4pQ`O1G.vOOQU-E7d-E7dO4xQdO,59kOOQO,59k,59kO5SQdO'#DQO5^Q`O'#DQOOQO,5:d,5:dOOQU,5:R,5:ROOQR1G/U1G/UO5cQ`O1G/UOOQU-E7e-E7eO5kQgO'#DhO5xQcO1G/XOOQR1G/X1G/XOOQR,59q,59qO6TQgO,59qO6eQdO'#DiO6lQgO'#DiO7PQcO1G/[OOQR1G/[1G/[OOQR,59r,59rO#|QfO,59rOOQR1G/b1G/bO7_OWO1G/bO7dOaO1G/bOOQR,59y,59yOOQR,59{,59{OOQP1G/h1G/hO7lOaO1G/hO7tOaO1G/hO8POaO1G/hOOQP1G.s1G.sO8_QgO,5:POOQP,5:P,5:POOQP,5:V,5:VOOQP-E7i-E7iOOQO,59_,59_OOQO,59a,59aOOQO1G.}1G.}OOQO,59f,59fO8oQdO,59fOOQR7+$b7+$bP,XQ`O'#DfOOQO1G/V1G/VOOQO,59l,59lO8yQdO,59lOOQR7+$p7+$pP9TQ`O'#DgOOQR'#DT'#DTOOQR,5:S,5:SOOQR-E7f-E7fOOQR7+$s7+$sOOQR1G/]1G/]O9YQgO'#DYO9jQ`O'#DYOOQR,5:T,5:TO#|QfO'#DZO9oQcO'#DZOOQR-E7g-E7gOOQR7+$v7+$vOOQR1G/^1G/^OOQR7+$|7+$|O:QOWO7+$|OOQP7+%S7+%SO:VOaO7+%SO:_OaO7+%SOOQP1G/k1G/kOOQO1G/Q1G/QOOQO1G/W1G/WOOQR,59t,59tO:jQgO,59tOOQR,59u,59uO#|QfO,59uOOQR<<Hh<<HhOOQP<<Hn<<HnO:zOaO<<HnOOQR1G/`1G/`OOQR1G/a1G/aOOQPAN>YAN>Y",stateData:";S~O!fOS!gOS^OS~OP_OQbORSOTUOWROXROYYOZZO[XOcPOqQO!PVO!V[O!cTO~O`cO~P]OVkOWROXROYeOZfO[dOcPOmhOqQO~OboO~P!bOVtOWROXROYeOZfO[dOcPOmrOqQO~OpwO~P#WORSOTUOWROXROYYOZZO[XOcPOqQO!PVO!cTO~OSvP!avP!bvP~P#|OWROXROYeOZfO[dOcPOqQO~OmzO~P%OOm!OOUzP!azP!bzP!dzP~P#|O^!SO!b!QO!f!TO!g!RO~ORSOTUOWROXROcPOqQO!PVO!cTO~OY!UOP!QXQ!QX!V!QX!`!QXS!QX!a!QX!b!QXU!QXm!QX!d!QX~P&aO[!WOP!SXQ!SX!V!SX!`!SXS!SX!a!SX!b!SXU!SXm!SX!d!SX~P&aO^!ZO!W![O!b!YO!f!]O!g!YO~OP!_O!V[OQaX!`aX~OPaXQaX!VaX!`aX~P#|OP!bOQ!cO!V[O~OP_O!V[O~P#|OWROXROY!fOcPOqQObfXmfXofXpfX~OWROXRO[!hOcPOqQObhXmhXohXphX~ObeXmlXoeX~ObkXokX~P%OOm!kO~Om!lObnPonP~P%OOb!pOo!oO~Ob!pO~P!bOm!sOosXpsX~OosXpsX~P%OOm!uOotPptP~P%OOo!xOp!yO~Op!yO~P#WOS!|O!a#OO!b#OO~OUyX!ayX!byX!dyX~P#|Om#QO~OU#SO!a#UO!b#UO!d#RO~Om#WOUzX!azX!bzX!dzX~O]#XO~O!b#XO!g#YO~O^#ZO!b#XO!g#YO~OP!RXQ!RX!V!RX!`!RXS!RX!a!RX!b!RXU!RXm!RX!d!RX~P&aOP!TXQ!TX!V!TX!`!TXS!TX!a!TX!b!TXU!TXm!TX!d!TX~P&aO!b#^O!g#^O~O^#_O!b#^O!f#`O!g#^O~O^#_O!W#aO!b#^O!g#^O~OPaaQaa!Vaa!`aa~P#|OP#cO!V[OQ!XX!`!XX~OP!XXQ!XX!V!XX!`!XX~P#|OP_O!V[OQ!_X!`!_X~P#|OWROXROcPOqQObgXmgXogXpgX~OWROXROcPOqQObiXmiXoiXpiX~Obkaoka~P%OObnXonX~P%OOm#kO~Ob#lOo!oO~Oosapsa~P%OOotXptX~P%OOm#pO~Oo!xOp#qO~OSwP!awP!bwP~P#|OS!|O!a#vO!b#vO~OUya!aya!bya!dya~P#|Om#xO~P%OOm#{OU}P!a}P!b}P!d}P~P#|OU#SO!a$OO!b$OO!d#RO~O]$QO~O!b$QO!g$RO~O!b$SO!g$SO~O^$TO!b$SO!g$SO~O^$TO!b$SO!f$UO!g$SO~OP!XaQ!Xa!V!Xa!`!Xa~P#|Obnaona~P%OOotapta~P%OOo!xO~OU|X!a|X!b|X!d|X~P#|Om$ZO~Om$]OU}X!a}X!b}X!d}X~O]$^O~O!b$_O!g$_O~O^$`O!b$_O!g$_O~OU|a!a|a!b|a!d|a~P#|O!b$cO!g$cO~O",goto:",]!mPPPPPPPPPPPPPPPPP!nPP!v#v#|$`#|$c$f$j$nP%VPPP!v%Y%^%a%{&O%a&R&U&X&_&b%aP&e&{&e'O'RPP']'a'g'm's'y(XPPPPPPPP(_)e*X+c,VUaObcR#e!c!{ROPQSTUXY_bcdehknrtvz!O!U!W!_!b!c!f!h!k!l!s!u!|#Q#R#S#W#c#k#p#x#{$Z$]QmPR!qnqfPQThknrtv!k!l!s!u#R#k#pR!gdR!ieTlPnTjPnSiPnSqQvQ{TQ!mkQ!trQ!vtR#y#RR!nkTsQvR!wt!RWOSUXY_bcz!O!U!W!_!b!c!|#Q#S#W#c#x#{$Z$]RySR#t!|R|TR|UQ!PUR#|#SR#z#RR#z#SyZOSU_bcz!O!_!b!c!|#Q#S#W#c#x#{$Z$]R!VXR!XYa]O^abc!a!c!eT!da!eQnPR!rnQvQR!{vQ!}yR#u!}Q#T|R#}#TW^Obc!cS!^^!aT!aa!eQ!eaR#f!eW`Obc!cQxSS}U#SQ!`_Q#PzQ#V!OQ#b!_Q#d!bQ#s!|Q#w#QQ$P#WQ$V#cQ$Y#xQ$[#{Q$a$ZR$b$]xZOSU_bcz!O!_!b!c!|#Q#S#W#c#x#{$Z$]Q!VXQ!XYQ#[!UR#]!W!QWOSUXY_bcz!O!U!W!_!b!c!|#Q#S#W#c#x#{$Z$]pfPQThknrtv!k!l!s!u#R#k#pQ!gdQ!ieQ#g!fR#h!hSgPn^pQTkrtv#RQ!jhQ#i!kQ#j!lQ#n!sQ#o!uQ$W#kR$X#pQuQR!zv",nodeNames:"⚠ DirectiveEnd DocEnd - - ? ? ? Literal QuotedLiteral Anchor Alias Tag BlockLiteralContent Comment Stream BOM Document ] [ FlowSequence Item Tagged Anchored Anchored Tagged FlowMapping Pair Key : Pair , } { FlowMapping Pair Pair BlockSequence Item Item BlockMapping Pair Pair Key Pair Pair BlockLiteral BlockLiteralHeader Tagged Anchored Anchored Tagged Directive DirectiveName DirectiveContent Document",maxTerm:74,context:EAe,nodeProps:[["isolate",-3,8,9,14,""],["openedBy",18,"[",32,"{"],["closedBy",19,"]",33,"}"]],propSources:[jAe],skippedNodes:[0],repeatNodeCount:6,tokenData:"-Y~RnOX#PXY$QYZ$]Z]#P]^$]^p#Ppq$Qqs#Pst$btu#Puv$yv|#P|}&e}![#P![!]'O!]!`#P!`!a'i!a!}#P!}#O*g#O#P#P#P#Q+Q#Q#o#P#o#p+k#p#q'i#q#r,U#r;'S#P;'S;=`#z<%l?HT#P?HT?HU,o?HUO#PQ#UU!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PQ#kTOY#PZs#Pt;'S#P;'S;=`#z<%lO#PQ#}P;=`<%l#P~$VQ!f~XY$Qpq$Q~$bO!g~~$gS^~OY$bZ;'S$b;'S;=`$s<%lO$b~$vP;=`<%l$bR%OX!WQOX%kXY#PZ]%k]^#P^p%kpq#hq;'S%k;'S;=`&_<%lO%kR%rX!WQ!VPOX%kXY#PZ]%k]^#P^p%kpq#hq;'S%k;'S;=`&_<%lO%kR&bP;=`<%l%kR&lUoP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR'VUmP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR'p[!PP!WQOY#PZp#Ppq#hq{#P{|(f|}#P}!O(f!O!R#P!R![)p![;'S#P;'S;=`#z<%lO#PR(mW!PP!WQOY#PZp#Ppq#hq!R#P!R![)V![;'S#P;'S;=`#z<%lO#PR)^U!PP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR)wY!PP!WQOY#PZp#Ppq#hq{#P{|)V|}#P}!O)V!O;'S#P;'S;=`#z<%lO#PR*nUcP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR+XUbP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR+rUqP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR,]UpP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR,vU`P!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#P",tokenizers:[MAe,$Ae,QAe,IAe,0,1],topRules:{Stream:[0,15]},tokenPrec:0}),zAe=sc.deserialize({version:14,states:"!vOQOPOOO]OPO'#C_OhOPO'#C^OOOO'#Cc'#CcOpOPO'#CaQOOOOOO{OPOOOOOO'#Cb'#CbO!WOPO'#C`O!`OPO,58xOOOO-E6a-E6aOOOO-E6`-E6`OOOO'#C_'#C_OOOO1G.d1G.d",stateData:"!h~OXPOYROWTP~OWVXXRXYRX~OYVOXSP~OXROYROWTX~OXROYROWTP~OYVOXSX~OX[O~OXY~",goto:"vWPPX[beioRUOQQOR]XRXQTTOUQWQRZWSSOURYS",nodeNames:"⚠ Document Frontmatter DashLine FrontmatterContent Body",maxTerm:10,skippedNodes:[0],repeatNodeCount:2,tokenData:"$z~RXOYnYZ!^Z]n]^!^^}n}!O!i!O;'Sn;'S;=`!c<%lOn~qXOYnYZ!^Z]n]^!^^;'Sn;'S;=`!c<%l~n~On~~!^~!cOY~~!fP;=`<%ln~!lZOYnYZ!^Z]n]^!^^}n}!O#_!O;'Sn;'S;=`!c<%l~n~On~~!^~#bZOYnYZ!^Z]n]^!^^}n}!O$T!O;'Sn;'S;=`!c<%l~n~On~~!^~$WXOYnYZ$sZ]n]^$s^;'Sn;'S;=`!c<%l~n~On~~$s~$zOX~Y~",tokenizers:[0],topRules:{Document:[0,1]},tokenPrec:67}),v5=rc.define({name:"yaml",parser:BAe.configure({props:[ju.add({Stream:t=>{for(let e=t.node.resolve(t.pos,-1);e&&e.to>=t.pos;e=e.parent){if(e.name=="BlockLiteralContent"&&e.from<e.to)return t.baseIndentFor(e);if(e.name=="BlockLiteral")return t.baseIndentFor(e)+t.unit;if(e.name=="BlockSequence"||e.name=="BlockMapping")return t.column(e.from,1);if(e.name=="QuotedLiteral")return null;if(e.name=="Literal"){let n=t.column(e.from,1);if(n==t.lineIndent(e.from,1))return n;if(e.to>t.pos)return null}}return null},FlowMapping:j$({closing:"}"}),FlowSequence:j$({closing:"]"})}),Bu.add({"FlowMapping FlowSequence":Lk,"Item Pair BlockLiteral":(t,e)=>({from:e.doc.lineAt(t.from).to,to:t.to})})]}),languageData:{commentTokens:{line:"#"},indentOnInput:/^\s*[\]\}]$/}});function cJ(){return new Ha(v5)}const VAe=rc.define({name:"yaml-frontmatter",parser:zAe.configure({props:[dc({DashLine:O.meta})]})});function qAe(t){let{language:e,support:n}=t.content instanceof Ha?t.content:{language:t.content,support:[]};return new Ha(VAe.configure({wrap:wN(i=>i.name=="FrontmatterContent"?{parser:v5.parser}:i.name=="Body"?{parser:e.parser}:null)}),n)}const XAe=Object.freeze(Object.defineProperty({__proto__:null,yaml:cJ,yamlFrontmatter:qAe,yamlLanguage:v5},Symbol.toStringTag,{value:"Module"}));function pe(t){return new Ha(qN.define(t))}function Zc(t){return M(()=>import("./index-DMf28vE-.js"),[]).then(e=>e.sql({dialect:e[t]}))}const FAe=[oe.of({name:"C",extensions:["c","h","ino"],load(){return M(()=>import("./index-zKBrZAkn.js"),[]).then(t=>t.cpp())}}),oe.of({name:"C++",alias:["cpp"],extensions:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],load(){return M(()=>import("./index-zKBrZAkn.js"),[]).then(t=>t.cpp())}}),oe.of({name:"CQL",alias:["cassandra"],extensions:["cql"],load(){return Zc("Cassandra")}}),oe.of({name:"CSS",extensions:["css"],load(){return M(()=>Promise.resolve().then(()=>ZPe),void 0).then(t=>t.css())}}),oe.of({name:"Go",extensions:["go"],load(){return M(()=>import("./index-fIJERjSL.js"),[]).then(t=>t.go())}}),oe.of({name:"HTML",alias:["xhtml"],extensions:["html","htm","handlebars","hbs"],load(){return M(()=>Promise.resolve().then(()=>tAe),void 0).then(t=>t.html())}}),oe.of({name:"Java",extensions:["java"],load(){return M(()=>import("./index-DM-IE6Il.js"),[]).then(t=>t.java())}}),oe.of({name:"JavaScript",alias:["ecmascript","js","node"],extensions:["js","mjs","cjs"],load(){return M(()=>Promise.resolve().then(()=>Rv),void 0).then(t=>t.javascript())}}),oe.of({name:"Jinja",extensions:["j2","jinja","jinja2"],load(){return M(()=>import("./index-9dzaV4-3.js"),[]).then(t=>t.jinja())}}),oe.of({name:"JSON",alias:["json5"],extensions:["json","map"],load(){return M(()=>Promise.resolve().then(()=>s2e),void 0).then(t=>t.json())}}),oe.of({name:"JSX",extensions:["jsx"],load(){return M(()=>Promise.resolve().then(()=>Rv),void 0).then(t=>t.javascript({jsx:!0}))}}),oe.of({name:"LESS",extensions:["less"],load(){return M(()=>import("./index-CGYcF9cy.js"),[]).then(t=>t.less())}}),oe.of({name:"Liquid",extensions:["liquid"],load(){return M(()=>import("./index-BxqwPwCo.js"),[]).then(t=>t.liquid())}}),oe.of({name:"MariaDB SQL",load(){return Zc("MariaSQL")}}),oe.of({name:"Markdown",extensions:["md","markdown","mkd"],load(){return M(()=>Promise.resolve().then(()=>dAe),void 0).then(t=>t.markdown())}}),oe.of({name:"MS SQL",load(){return Zc("MSSQL")}}),oe.of({name:"MySQL",load(){return Zc("MySQL")}}),oe.of({name:"PHP",extensions:["php","php3","php4","php5","php7","phtml"],load(){return M(()=>import("./index-DH_3Uwqw.js"),[]).then(t=>t.php())}}),oe.of({name:"PLSQL",extensions:["pls"],load(){return Zc("PLSQL")}}),oe.of({name:"PostgreSQL",load(){return Zc("PostgreSQL")}}),oe.of({name:"Python",extensions:["BUILD","bzl","py","pyw"],filename:/^(BUCK|BUILD)$/,load(){return M(()=>import("./index-DGZY9q7K.js"),[]).then(t=>t.python())}}),oe.of({name:"Rust",extensions:["rs"],load(){return M(()=>import("./index-4SYwcH9o.js"),[]).then(t=>t.rust())}}),oe.of({name:"Sass",extensions:["sass"],load(){return M(()=>import("./index-R53t0sC8.js"),[]).then(t=>t.sass({indented:!0}))}}),oe.of({name:"SCSS",extensions:["scss"],load(){return M(()=>import("./index-R53t0sC8.js"),[]).then(t=>t.sass())}}),oe.of({name:"SQL",extensions:["sql"],load(){return Zc("StandardSQL")}}),oe.of({name:"SQLite",load(){return Zc("SQLite")}}),oe.of({name:"TSX",extensions:["tsx"],load(){return M(()=>Promise.resolve().then(()=>Rv),void 0).then(t=>t.javascript({jsx:!0,typescript:!0}))}}),oe.of({name:"TypeScript",alias:["ts"],extensions:["ts","mts","cts"],load(){return M(()=>Promise.resolve().then(()=>Rv),void 0).then(t=>t.javascript({typescript:!0}))}}),oe.of({name:"WebAssembly",extensions:["wat","wast"],load(){return M(()=>import("./index-C3Zu70mc.js"),[]).then(t=>t.wast())}}),oe.of({name:"XML",alias:["rss","wsdl","xsd"],extensions:["xml","xsl","xsd","svg"],load(){return M(()=>import("./index-I6EcgPnl.js"),[]).then(t=>t.xml())}}),oe.of({name:"YAML",alias:["yml"],extensions:["yaml","yml"],load(){return M(()=>Promise.resolve().then(()=>XAe),void 0).then(t=>t.yaml())}}),oe.of({name:"APL",extensions:["dyalog","apl"],load(){return M(()=>import("./apl-B4CMkyY2.js"),[]).then(t=>pe(t.apl))}}),oe.of({name:"PGP",alias:["asciiarmor"],extensions:["asc","pgp","sig"],load(){return M(()=>import("./asciiarmor-Df11BRmG.js"),[]).then(t=>pe(t.asciiArmor))}}),oe.of({name:"ASN.1",extensions:["asn","asn1"],load(){return M(()=>import("./asn1-EdZsLKOL.js"),[]).then(t=>pe(t.asn1({})))}}),oe.of({name:"Asterisk",filename:/^extensions\.conf$/i,load(){return M(()=>import("./asterisk-B-8jnY81.js"),[]).then(t=>pe(t.asterisk))}}),oe.of({name:"Brainfuck",extensions:["b","bf"],load(){return M(()=>import("./brainfuck-C4LP7Hcl.js"),[]).then(t=>pe(t.brainfuck))}}),oe.of({name:"Cobol",extensions:["cob","cpy"],load(){return M(()=>import("./cobol-CWcv1MsR.js"),[]).then(t=>pe(t.cobol))}}),oe.of({name:"C#",alias:["csharp","cs"],extensions:["cs"],load(){return M(()=>import("./clike-B9uivgTg.js"),[]).then(t=>pe(t.csharp))}}),oe.of({name:"Clojure",extensions:["clj","cljc","cljx"],load(){return M(()=>import("./clojure-BMjYHr_A.js"),[]).then(t=>pe(t.clojure))}}),oe.of({name:"ClojureScript",extensions:["cljs"],load(){return M(()=>import("./clojure-BMjYHr_A.js"),[]).then(t=>pe(t.clojure))}}),oe.of({name:"Closure Stylesheets (GSS)",extensions:["gss"],load(){return M(()=>import("./css-BnMrqG3P.js"),[]).then(t=>pe(t.gss))}}),oe.of({name:"CMake",extensions:["cmake","cmake.in"],filename:/^CMakeLists\.txt$/,load(){return M(()=>import("./cmake-BQqOBYOt.js"),[]).then(t=>pe(t.cmake))}}),oe.of({name:"CoffeeScript",alias:["coffee","coffee-script"],extensions:["coffee"],load(){return M(()=>import("./coffeescript-S37ZYGWr.js"),[]).then(t=>pe(t.coffeeScript))}}),oe.of({name:"Common Lisp",alias:["lisp"],extensions:["cl","lisp","el"],load(){return M(()=>import("./commonlisp-DBKNyK5s.js"),[]).then(t=>pe(t.commonLisp))}}),oe.of({name:"Cypher",extensions:["cyp","cypher"],load(){return M(()=>import("./cypher-C_CwsFkJ.js"),[]).then(t=>pe(t.cypher))}}),oe.of({name:"Cython",extensions:["pyx","pxd","pxi"],load(){return M(()=>import("./python-BuPzkPfP.js"),[]).then(t=>pe(t.cython))}}),oe.of({name:"Crystal",extensions:["cr"],load(){return M(()=>import("./crystal-SjHAIU92.js"),[]).then(t=>pe(t.crystal))}}),oe.of({name:"D",extensions:["d"],load(){return M(()=>import("./d-pRatUO7H.js"),[]).then(t=>pe(t.d))}}),oe.of({name:"Dart",extensions:["dart"],load(){return M(()=>import("./clike-B9uivgTg.js"),[]).then(t=>pe(t.dart))}}),oe.of({name:"diff",extensions:["diff","patch"],load(){return M(()=>import("./diff-DbItnlRl.js"),[]).then(t=>pe(t.diff))}}),oe.of({name:"Dockerfile",filename:/^Dockerfile$/,load(){return M(()=>import("./dockerfile-BKs6k2Af.js"),__vite__mapDeps([97,98])).then(t=>pe(t.dockerFile))}}),oe.of({name:"DTD",extensions:["dtd"],load(){return M(()=>import("./dtd-DF_7sFjM.js"),[]).then(t=>pe(t.dtd))}}),oe.of({name:"Dylan",extensions:["dylan","dyl","intr"],load(){return M(()=>import("./dylan-DwRh75JA.js"),[]).then(t=>pe(t.dylan))}}),oe.of({name:"EBNF",load(){return M(()=>import("./ebnf-CDyGwa7X.js"),[]).then(t=>pe(t.ebnf))}}),oe.of({name:"ECL",extensions:["ecl"],load(){return M(()=>import("./ecl-Cabwm37j.js"),[]).then(t=>pe(t.ecl))}}),oe.of({name:"edn",extensions:["edn"],load(){return M(()=>import("./clojure-BMjYHr_A.js"),[]).then(t=>pe(t.clojure))}}),oe.of({name:"Eiffel",extensions:["e"],load(){return M(()=>import("./eiffel-CnydiIhH.js"),[]).then(t=>pe(t.eiffel))}}),oe.of({name:"Elm",extensions:["elm"],load(){return M(()=>import("./elm-vLlmbW-K.js"),[]).then(t=>pe(t.elm))}}),oe.of({name:"Erlang",extensions:["erl"],load(){return M(()=>import("./erlang-BNw1qcRV.js"),[]).then(t=>pe(t.erlang))}}),oe.of({name:"Esper",load(){return M(()=>import("./sql-D0XecflT.js"),[]).then(t=>pe(t.esper))}}),oe.of({name:"Factor",extensions:["factor"],load(){return M(()=>import("./factor-kuTfRLto.js"),__vite__mapDeps([99,98])).then(t=>pe(t.factor))}}),oe.of({name:"FCL",load(){return M(()=>import("./fcl-Kvtd6kyn.js"),[]).then(t=>pe(t.fcl))}}),oe.of({name:"Forth",extensions:["forth","fth","4th"],load(){return M(()=>import("./forth-Ffai-XNe.js"),[]).then(t=>pe(t.forth))}}),oe.of({name:"Fortran",extensions:["f","for","f77","f90","f95"],load(){return M(()=>import("./fortran-DYz_wnZ1.js"),[]).then(t=>pe(t.fortran))}}),oe.of({name:"F#",alias:["fsharp"],extensions:["fs"],load(){return M(()=>import("./mllike-CXdrOF99.js"),[]).then(t=>pe(t.fSharp))}}),oe.of({name:"Gas",extensions:["s"],load(){return M(()=>import("./gas-Bneqetm1.js"),[]).then(t=>pe(t.gas))}}),oe.of({name:"Gherkin",extensions:["feature"],load(){return M(()=>import("./gherkin-heZmZLOM.js"),[]).then(t=>pe(t.gherkin))}}),oe.of({name:"Groovy",extensions:["groovy","gradle"],filename:/^Jenkinsfile$/,load(){return M(()=>import("./groovy-D9Dt4D0W.js"),[]).then(t=>pe(t.groovy))}}),oe.of({name:"Haskell",extensions:["hs"],load(){return M(()=>import("./haskell-Cw1EW3IL.js"),[]).then(t=>pe(t.haskell))}}),oe.of({name:"Haxe",extensions:["hx"],load(){return M(()=>import("./haxe-H-WmDvRZ.js"),[]).then(t=>pe(t.haxe))}}),oe.of({name:"HXML",extensions:["hxml"],load(){return M(()=>import("./haxe-H-WmDvRZ.js"),[]).then(t=>pe(t.hxml))}}),oe.of({name:"HTTP",load(){return M(()=>import("./http-DBlCnlav.js"),[]).then(t=>pe(t.http))}}),oe.of({name:"IDL",extensions:["pro"],load(){return M(()=>import("./idl-BEugSyMb.js"),[]).then(t=>pe(t.idl))}}),oe.of({name:"JSON-LD",alias:["jsonld"],extensions:["jsonld"],load(){return M(()=>import("./javascript-iXu5QeM3.js"),[]).then(t=>pe(t.jsonld))}}),oe.of({name:"Julia",extensions:["jl"],load(){return M(()=>import("./julia-DuME0IfC.js"),[]).then(t=>pe(t.julia))}}),oe.of({name:"Kotlin",extensions:["kt","kts"],load(){return M(()=>import("./clike-B9uivgTg.js"),[]).then(t=>pe(t.kotlin))}}),oe.of({name:"LiveScript",alias:["ls"],extensions:["ls"],load(){return M(()=>import("./livescript-BwQOo05w.js"),[]).then(t=>pe(t.liveScript))}}),oe.of({name:"Lua",extensions:["lua"],load(){return M(()=>import("./lua-BgMRiT3U.js"),[]).then(t=>pe(t.lua))}}),oe.of({name:"mIRC",extensions:["mrc"],load(){return M(()=>import("./mirc-CjQqDB4T.js"),[]).then(t=>pe(t.mirc))}}),oe.of({name:"Mathematica",extensions:["m","nb","wl","wls"],load(){return M(()=>import("./mathematica-DTrFuWx2.js"),[]).then(t=>pe(t.mathematica))}}),oe.of({name:"Modelica",extensions:["mo"],load(){return M(()=>import("./modelica-Dc1JOy9r.js"),[]).then(t=>pe(t.modelica))}}),oe.of({name:"MUMPS",extensions:["mps"],load(){return M(()=>import("./mumps-BT43cFF4.js"),[]).then(t=>pe(t.mumps))}}),oe.of({name:"Mbox",extensions:["mbox"],load(){return M(()=>import("./mbox-CNhZ1qSd.js"),[]).then(t=>pe(t.mbox))}}),oe.of({name:"Nginx",filename:/nginx.*\.conf$/i,load(){return M(()=>import("./nginx-DdIZxoE0.js"),[]).then(t=>pe(t.nginx))}}),oe.of({name:"NSIS",extensions:["nsh","nsi"],load(){return M(()=>import("./nsis-LdVXkNf5.js"),__vite__mapDeps([100,98])).then(t=>pe(t.nsis))}}),oe.of({name:"NTriples",extensions:["nt","nq"],load(){return M(()=>import("./ntriples-BfvgReVJ.js"),[]).then(t=>pe(t.ntriples))}}),oe.of({name:"Objective-C",alias:["objective-c","objc"],extensions:["m"],load(){return M(()=>import("./clike-B9uivgTg.js"),[]).then(t=>pe(t.objectiveC))}}),oe.of({name:"Objective-C++",alias:["objective-c++","objc++"],extensions:["mm"],load(){return M(()=>import("./clike-B9uivgTg.js"),[]).then(t=>pe(t.objectiveCpp))}}),oe.of({name:"OCaml",extensions:["ml","mli","mll","mly"],load(){return M(()=>import("./mllike-CXdrOF99.js"),[]).then(t=>pe(t.oCaml))}}),oe.of({name:"Octave",extensions:["m"],load(){return M(()=>import("./octave-Ck1zUtKM.js"),[]).then(t=>pe(t.octave))}}),oe.of({name:"Oz",extensions:["oz"],load(){return M(()=>import("./oz-BzwKVEFT.js"),[]).then(t=>pe(t.oz))}}),oe.of({name:"Pascal",extensions:["p","pas"],load(){return M(()=>import("./pascal--L3eBynH.js"),[]).then(t=>pe(t.pascal))}}),oe.of({name:"Perl",extensions:["pl","pm"],load(){return M(()=>import("./perl-CdXCOZ3F.js"),[]).then(t=>pe(t.perl))}}),oe.of({name:"Pig",extensions:["pig"],load(){return M(()=>import("./pig-CevX1Tat.js"),[]).then(t=>pe(t.pig))}}),oe.of({name:"PowerShell",extensions:["ps1","psd1","psm1"],load(){return M(()=>import("./powershell-CFHJl5sT.js"),[]).then(t=>pe(t.powerShell))}}),oe.of({name:"Properties files",alias:["ini","properties"],extensions:["properties","ini","in"],load(){return M(()=>import("./properties-C78fOPTZ.js"),[]).then(t=>pe(t.properties))}}),oe.of({name:"ProtoBuf",extensions:["proto"],load(){return M(()=>import("./protobuf-ChK-085T.js"),[]).then(t=>pe(t.protobuf))}}),oe.of({name:"Pug",alias:["jade"],extensions:["pug","jade"],load(){return M(()=>import("./pug-DeIclll2.js"),__vite__mapDeps([101,102])).then(t=>pe(t.pug))}}),oe.of({name:"Puppet",extensions:["pp"],load(){return M(()=>import("./puppet-DMA9R1ak.js"),[]).then(t=>pe(t.puppet))}}),oe.of({name:"Q",extensions:["q"],load(){return M(()=>import("./q-pXgVlZs6.js"),[]).then(t=>pe(t.q))}}),oe.of({name:"R",alias:["rscript"],extensions:["r","R"],load(){return M(()=>import("./r-B6wPVr8A.js"),[]).then(t=>pe(t.r))}}),oe.of({name:"RPM Changes",load(){return M(()=>import("./rpm-CTu-6PCP.js"),[]).then(t=>pe(t.rpmChanges))}}),oe.of({name:"RPM Spec",extensions:["spec"],load(){return M(()=>import("./rpm-CTu-6PCP.js"),[]).then(t=>pe(t.rpmSpec))}}),oe.of({name:"Ruby",alias:["jruby","macruby","rake","rb","rbx"],extensions:["rb"],filename:/^(Gemfile|Rakefile)$/,load(){return M(()=>import("./ruby-B2Rjki9n.js"),[]).then(t=>pe(t.ruby))}}),oe.of({name:"SAS",extensions:["sas"],load(){return M(()=>import("./sas-B4kiWyti.js"),[]).then(t=>pe(t.sas))}}),oe.of({name:"Scala",extensions:["scala"],load(){return M(()=>import("./clike-B9uivgTg.js"),[]).then(t=>pe(t.scala))}}),oe.of({name:"Scheme",extensions:["scm","ss"],load(){return M(()=>import("./scheme-C41bIUwD.js"),[]).then(t=>pe(t.scheme))}}),oe.of({name:"Shell",alias:["bash","sh","zsh"],extensions:["sh","ksh","bash"],filename:/^PKGBUILD$/,load(){return M(()=>import("./shell-CjFT_Tl9.js"),[]).then(t=>pe(t.shell))}}),oe.of({name:"Sieve",extensions:["siv","sieve"],load(){return M(()=>import("./sieve-C3Gn_uJK.js"),[]).then(t=>pe(t.sieve))}}),oe.of({name:"Smalltalk",extensions:["st"],load(){return M(()=>import("./smalltalk-CnHTOXQT.js"),[]).then(t=>pe(t.smalltalk))}}),oe.of({name:"Solr",load(){return M(()=>import("./solr-DehyRSwq.js"),[]).then(t=>pe(t.solr))}}),oe.of({name:"SML",extensions:["sml","sig","fun","smackspec"],load(){return M(()=>import("./mllike-CXdrOF99.js"),[]).then(t=>pe(t.sml))}}),oe.of({name:"SPARQL",alias:["sparul"],extensions:["rq","sparql"],load(){return M(()=>import("./sparql-DkYu6x3z.js"),[]).then(t=>pe(t.sparql))}}),oe.of({name:"Spreadsheet",alias:["excel","formula"],load(){return M(()=>import("./spreadsheet-BCZA_wO0.js"),[]).then(t=>pe(t.spreadsheet))}}),oe.of({name:"Squirrel",extensions:["nut"],load(){return M(()=>import("./clike-B9uivgTg.js"),[]).then(t=>pe(t.squirrel))}}),oe.of({name:"Stylus",extensions:["styl"],load(){return M(()=>import("./stylus-B533Al4x.js"),[]).then(t=>pe(t.stylus))}}),oe.of({name:"Swift",extensions:["swift"],load(){return M(()=>import("./swift-BzpIVaGY.js"),[]).then(t=>pe(t.swift))}}),oe.of({name:"sTeX",load(){return M(()=>import("./stex-C3f8Ysf7.js"),[]).then(t=>pe(t.stex))}}),oe.of({name:"LaTeX",alias:["tex"],extensions:["text","ltx","tex"],load(){return M(()=>import("./stex-C3f8Ysf7.js"),[]).then(t=>pe(t.stex))}}),oe.of({name:"SystemVerilog",extensions:["v","sv","svh"],load(){return M(()=>import("./verilog-C6RDOZhf.js"),[]).then(t=>pe(t.verilog))}}),oe.of({name:"Tcl",extensions:["tcl"],load(){return M(()=>import("./tcl-DVfN8rqt.js"),[]).then(t=>pe(t.tcl))}}),oe.of({name:"Textile",extensions:["textile"],load(){return M(()=>import("./textile-CnDTJFAw.js"),[]).then(t=>pe(t.textile))}}),oe.of({name:"TiddlyWiki",load(){return M(()=>import("./tiddlywiki-DO-Gjzrf.js"),[]).then(t=>pe(t.tiddlyWiki))}}),oe.of({name:"Tiki wiki",load(){return M(()=>import("./tiki-DGYXhP31.js"),[]).then(t=>pe(t.tiki))}}),oe.of({name:"TOML",extensions:["toml"],load(){return M(()=>import("./toml-Bm5Em-hy.js"),[]).then(t=>pe(t.toml))}}),oe.of({name:"Troff",extensions:["1","2","3","4","5","6","7","8","9"],load(){return M(()=>import("./troff-wAsdV37c.js"),[]).then(t=>pe(t.troff))}}),oe.of({name:"TTCN",extensions:["ttcn","ttcn3","ttcnpp"],load(){return M(()=>import("./ttcn-CfJYG6tj.js"),[]).then(t=>pe(t.ttcn))}}),oe.of({name:"TTCN_CFG",extensions:["cfg"],load(){return M(()=>import("./ttcn-cfg-B9xdYoR4.js"),[]).then(t=>pe(t.ttcnCfg))}}),oe.of({name:"Turtle",extensions:["ttl"],load(){return M(()=>import("./turtle-B1tBg_DP.js"),[]).then(t=>pe(t.turtle))}}),oe.of({name:"Web IDL",extensions:["webidl"],load(){return M(()=>import("./webidl-ZXfAyPTL.js"),[]).then(t=>pe(t.webIDL))}}),oe.of({name:"VB.NET",extensions:["vb"],load(){return M(()=>import("./vb-CmGdzxic.js"),[]).then(t=>pe(t.vb))}}),oe.of({name:"VBScript",extensions:["vbs"],load(){return M(()=>import("./vbscript-BuJXcnF6.js"),[]).then(t=>pe(t.vbScript))}}),oe.of({name:"Velocity",extensions:["vtl"],load(){return M(()=>import("./velocity-D8B20fx6.js"),[]).then(t=>pe(t.velocity))}}),oe.of({name:"Verilog",extensions:["v"],load(){return M(()=>import("./verilog-C6RDOZhf.js"),[]).then(t=>pe(t.verilog))}}),oe.of({name:"VHDL",extensions:["vhd","vhdl"],load(){return M(()=>import("./vhdl-lSbBsy5d.js"),[]).then(t=>pe(t.vhdl))}}),oe.of({name:"XQuery",extensions:["xy","xquery","xq","xqm","xqy"],load(){return M(()=>import("./xquery-DzFWVndE.js"),[]).then(t=>pe(t.xQuery))}}),oe.of({name:"Yacas",extensions:["ys"],load(){return M(()=>import("./yacas-BJ4BC0dw.js"),[]).then(t=>pe(t.yacas))}}),oe.of({name:"Z80",extensions:["z80"],load(){return M(()=>import("./z80-Hz9HOZM7.js"),[]).then(t=>pe(t.z80))}}),oe.of({name:"MscGen",extensions:["mscgen","mscin","msc"],load(){return M(()=>import("./mscgen-BA5vi2Kp.js"),[]).then(t=>pe(t.mscgen))}}),oe.of({name:"Xù",extensions:["xu"],load(){return M(()=>import("./mscgen-BA5vi2Kp.js"),[]).then(t=>pe(t.xu))}}),oe.of({name:"MsGenny",extensions:["msgenny"],load(){return M(()=>import("./mscgen-BA5vi2Kp.js"),[]).then(t=>pe(t.msgenny))}}),oe.of({name:"Vue",extensions:["vue"],load(){return M(()=>import("./index-geNCH0rZ.js"),[]).then(t=>t.vue())}}),oe.of({name:"Angular Template",load(){return M(()=>import("./index-D9vFOR1x.js"),[]).then(t=>t.angular())}})],iA={fontSize:"14px",fontFamily:"JetBrains Mono, Consolas, monospace",lineHeight:"1.6"},UAe={borderLeftWidth:"2px"},Hs={insertedTextDecoration:"none",deletedTextDecoration:"line-through",insertedLinePadding:"1px 3px",borderRadious:"3px"},Ph={border:"none",paddingRight:"8px",fontSize:"0.9em",fontWeight:"500",lineHeight:"1.78"},rA={border:"none",borderRadius:"4px",padding:"2px 10px"},WAe={borderRadius:"2px"},sA={borderRadius:"2px"},oA={borderRadius:"4px",padding:"0 5px",margin:"0 2px"},aA={width:"12px",height:"12px",borderRadius:"6px"},$v={borderRadius:"4px",padding:"2px 6px"},bp={borderRadius:"4px",borderRadiusSelected:"3px",lineHeight:"1.3",padding:"4px 8px",paddingRight:"8px"},lA="#0d1117",Wo="#c9d1d9",uJ="#264F78",gr="#8b949e",sS="#ffffff",cA="#7ee787",uA="#d2a8ff",Jc="#79c0ff",Hb="#ff7b72",hA="#a5d6ff",GAe="#2c333a",ZAe="#3c444d",Ah="#ffab70",dA="#161b22",Yb="#30363d",HAe="#21262d",Td="#f97583",YAe="#2d333b1a",Rh="#21262d",fA=sS,G8=uJ,KAe="#3a587a75",Z8="#4d90fe",H8="#d29922",JAe="#3a587a55",oL="#58a6ff",eRe="#bc8cff",Y8="#2ea04350",K8="#f8514940",pA="#7ee787",mA="#ff7b72",tRe=be.theme({"&":{color:Wo,backgroundColor:lA,fontSize:iA.fontSize,fontFamily:iA.fontFamily},".cm-content":{caretColor:fA,lineHeight:iA.lineHeight},".cm-cursor, .cm-dropCursor":{borderLeftColor:fA,borderLeftWidth:UAe.borderLeftWidth},".cm-fat-cursor":{backgroundColor:`${fA}99`,color:lA},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:G8},".cm-selectionLayer":{zIndex:100},".cm-searchMatch":{backgroundColor:"#3a587a",outline:`1px solid ${Jc}`,color:Wo,borderRadius:$v.borderRadius,"& span":{color:Wo}},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:Z8,color:sS,padding:$v.padding,"& span":{color:sS}},".cm-search.cm-panel.cm-textfield":{color:Wo,borderRadius:$v.borderRadius,padding:$v.padding},".cm-panels":{backgroundColor:Rh,color:Wo,borderRadius:"4px"},".cm-panels.cm-panels-top":{borderBottom:`1px solid ${Yb}`},".cm-panels.cm-panels-bottom":{borderTop:`1px solid ${Yb}`},".cm-panel button":{backgroundColor:Rh,color:Wo,border:rA.border,borderRadius:rA.borderRadius,padding:rA.padding},".cm-panel button:hover":{backgroundColor:GAe},".cm-activeLine":{backgroundColor:YAe,borderRadius:WAe.borderRadius,zIndex:1},".cm-gutters":{backgroundColor:dA,color:gr,border:Ph.border,borderRight:"1px solid #30363d",paddingRight:Ph.paddingRight},".cm-activeLineGutter":{backgroundColor:HAe,color:Wo,fontWeight:Ph.fontWeight},".cm-lineNumbers":{fontSize:Ph.fontSize,lineHeight:Ph.lineHeight},".cm-foldGutter":{fontSize:Ph.fontSize,lineHeight:Ph.lineHeight},".cm-foldGutter .cm-gutterElement":{color:gr,cursor:"pointer"},".cm-foldGutter .cm-gutterElement:hover":{color:Wo},".cm-insertedLine":{textDecoration:Hs.insertedTextDecoration,backgroundColor:Y8,color:pA,padding:Hs.insertedLinePadding,borderRadius:Hs.borderRadious},"ins.cm-insertedLine, ins.cm-insertedLine:not(:has(.cm-changedText))":{textDecoration:Hs.insertedTextDecoration,backgroundColor:`${Y8} !important`,color:pA,padding:Hs.insertedLinePadding,borderRadius:Hs.borderRadious,border:`1px solid ${pA}40`},"ins.cm-insertedLine .cm-changedText":{background:"transparent !important"},".cm-deletedLine":{textDecoration:Hs.deletedTextDecoration,backgroundColor:K8,color:mA,padding:Hs.insertedLinePadding,borderRadius:Hs.borderRadious},"del.cm-deletedLine, del, del:not(:has(.cm-deletedText))":{textDecoration:Hs.deletedTextDecoration,backgroundColor:`${K8} !important`,color:mA,padding:Hs.insertedLinePadding,borderRadius:Hs.borderRadious,border:`1px solid ${mA}40`},"del .cm-deletedText, del .cm-changedText":{background:"transparent !important"},".cm-tooltip":{backgroundColor:Rh,border:`1px solid ${Yb}`,borderRadius:bp.borderRadius,padding:bp.padding,boxShadow:"0 2px 8px rgba(0, 0, 0, 0.3)"},".cm-tooltip-autocomplete":{"& > ul":{backgroundColor:Rh,border:"none"},"& > ul > li":{padding:bp.padding,lineHeight:bp.lineHeight},"& > ul > li[aria-selected]":{backgroundColor:G8,color:sS,borderRadius:bp.borderRadiusSelected},"& > ul > li > span.cm-completionIcon":{color:gr,paddingRight:bp.paddingRight},"& > ul > li > span.cm-completionDetail":{color:gr,fontStyle:"italic"}},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:Rh,borderBottomColor:Rh},".cm-diagnostic":{"&-error":{borderLeft:`3px solid ${Td}`},"&-warning":{borderLeft:`3px solid ${H8}`},"&-info":{borderLeft:`3px solid ${oL}`}},".cm-lintPoint-error":{borderBottom:`2px wavy ${Td}`},".cm-lintPoint-warning":{borderBottom:`2px wavy ${H8}`},".cm-matchingBracket":{backgroundColor:KAe,outline:`1px solid ${Z8}`,borderRadius:sA.borderRadius},".cm-nonmatchingBracket":{backgroundColor:"#f9758340",outline:`1px solid ${Td}`,borderRadius:sA.borderRadius},".cm-selectionMatch":{backgroundColor:JAe,outline:`1px solid ${uJ}50`,borderRadius:sA.borderRadius},".cm-foldPlaceholder":{backgroundColor:Rh,color:gr,border:`1px dotted ${Yb}70`,borderRadius:oA.borderRadius,padding:oA.padding,margin:oA.margin},"&.cm-focused":{outline:"none",boxShadow:`0 0 0 2px ${lA}, 0 0 0 3px ${oL}40`},"& .cm-scroller::-webkit-scrollbar":{width:aA.width,height:aA.height},"& .cm-scroller::-webkit-scrollbar-track":{background:dA},"& .cm-scroller::-webkit-scrollbar-thumb":{backgroundColor:Yb,borderRadius:aA.borderRadius,border:`3px solid ${dA}`},"& .cm-scroller::-webkit-scrollbar-thumb:hover":{backgroundColor:ZAe},".cm-ghostText":{opacity:"0.5",color:gr}},{dark:!0}),nRe=Ci.define([{tag:O.keyword,color:Hb,fontWeight:"bold"},{tag:O.controlKeyword,color:Hb,fontWeight:"bold"},{tag:O.moduleKeyword,color:Hb,fontWeight:"bold"},{tag:[O.name,O.deleted,O.character,O.macroName],color:Jc},{tag:[O.variableName],color:Jc},{tag:[O.propertyName],color:uA,fontStyle:"normal"},{tag:[O.typeName],color:Hb},{tag:[O.className],color:uA,fontStyle:"italic"},{tag:[O.namespace],color:Jc,fontStyle:"italic"},{tag:[O.operator,O.operatorKeyword],color:Wo},{tag:[O.bracket],color:gr},{tag:[O.brace],color:gr},{tag:[O.punctuation],color:gr},{tag:[O.function(O.variableName),O.labelName],color:cA},{tag:[O.definition(O.variableName)],color:Jc},{tag:O.number,color:Ah},{tag:O.changed,color:Ah},{tag:O.annotation,color:Td,fontStyle:"italic"},{tag:O.modifier,color:Ah,fontStyle:"italic"},{tag:O.self,color:Ah},{tag:[O.color,O.constant(O.name),O.standard(O.name)],color:Ah},{tag:[O.atom,O.bool,O.special(O.variableName)],color:Ah},{tag:[O.processingInstruction,O.inserted],color:cA},{tag:[O.special(O.string),O.regexp],color:hA},{tag:O.string,color:hA},{tag:O.definition(O.typeName),color:Hb,fontWeight:"bold"},{tag:O.meta,color:gr},{tag:O.comment,fontStyle:"italic",color:gr},{tag:O.docComment,fontStyle:"italic",color:gr},{tag:[O.tagName],color:cA},{tag:[O.attributeName],color:uA},{tag:[O.heading],fontWeight:"bold",color:Jc},{tag:[O.strong],fontWeight:"bold",color:Jc},{tag:[O.emphasis],fontStyle:"italic",color:hA},{tag:[O.link],color:eRe,fontWeight:"500",textDecoration:"underline",textUnderlinePosition:"under"},{tag:[O.url],color:oL,textDecoration:"underline",textUnderlineOffset:"2px"},{tag:[O.invalid],color:Wo,textDecoration:"underline wavy",borderBottom:`1px wavy ${Td}`},{tag:[O.strikethrough],color:Td,textDecoration:"line-through"},{tag:O.constant(O.name),color:Ah},{tag:O.deleted,color:Td},{tag:O.squareBracket,color:gr},{tag:O.angleBracket,color:gr},{tag:O.monospace,color:Wo},{tag:[O.contentSeparator],color:Jc},{tag:O.quote,color:gr}]),J8=[tRe,Mr(nRe)],gA={fontSize:"14px",fontFamily:"JetBrains Mono, Consolas, monospace",lineHeight:"1.6"},iRe={borderLeftWidth:"2px"},Ys={insertedTextDecoration:"none",deletedTextDecoration:"line-through",insertedLinePadding:"1px 3px",borderRadious:"3px"},Eh={border:"none",paddingRight:"8px",fontSize:"0.9em",fontWeight:"500",lineHeight:"1.78"},bA={border:"none",borderRadius:"4px",padding:"2px 10px"},rRe={borderRadius:"2px"},yA={borderRadius:"2px"},xA={borderRadius:"4px",padding:"0 5px",margin:"0 2px"},OA={width:"12px",height:"12px",borderRadius:"6px"},Lv={borderRadius:"4px",padding:"2px 6px"},yp={borderRadius:"4px",borderRadiusSelected:"3px",lineHeight:"1.3",padding:"4px 8px",paddingRight:"8px"},xp="#ffffff",Wr="#24292e",hJ="#BBDFFF",Op="#6e7781",eV="#f6f8fa",sRe="#116329",ka="#6a737d",_A="#6f42c1",eu="#005cc5",Kb="#d73a49",vA="#032f62",tV="#22863a",Mh="#e36209",oRe="#f1f8ff",$h="#e1e4e8",aRe="#f8f9fa",Pd="#cb2431",lRe="#BBDFFF20",Dv=aRe,SA=Wr,cRe=hJ,uRe="#e8f0fe",hRe="#0366d6",nV="#b08800",iV="#79b8ff40",aL="#0969da",dRe="#8250df",rV="#e6ffec80",sV="#ffebe980",wA="#0f6d31",kA="#cf222e",fRe=be.theme({"&":{color:Wr,backgroundColor:xp,fontSize:gA.fontSize,fontFamily:gA.fontFamily},".cm-content":{caretColor:SA,lineHeight:gA.lineHeight},".cm-cursor, .cm-dropCursor":{borderLeftColor:SA,borderLeftWidth:iRe.borderLeftWidth},".cm-fat-cursor":{backgroundColor:`${SA}99`,color:xp},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:cRe,color:Wr},".cm-selectionLayer":{zIndex:100},".cm-searchMatch":{backgroundColor:"#daebff",outline:`1px solid ${eu}`,color:Wr,borderRadius:Lv.borderRadius,"& span":{color:Wr}},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#79b8ff",color:xp,padding:Lv.padding,"& span":{color:xp}},".cm-search.cm-panel.cm-textfield":{color:Wr,borderRadius:Lv.borderRadius,padding:Lv.padding},".cm-panels":{backgroundColor:eV,color:Op,borderRadius:"0 0 4px 4px"},".cm-panels.cm-panels-top":{borderBottom:`1px solid ${$h}`},".cm-panels.cm-panels-bottom":{borderTop:`1px solid ${$h}`},".cm-panel button":{backgroundColor:xp,color:Wr,border:bA.border,borderRadius:bA.borderRadius,padding:bA.padding},".cm-panel button:hover":{backgroundColor:"#f5f5f5"},".cm-activeLine":{backgroundColor:lRe,borderRadius:rRe.borderRadius,zIndex:1},".cm-gutters":{backgroundColor:eV,color:Op,border:Eh.border,borderRight:`1px solid ${$h}`,paddingRight:Eh.paddingRight},".cm-activeLineGutter":{backgroundColor:oRe,color:Wr,fontWeight:Eh.fontWeight},".cm-lineNumbers":{fontSize:Eh.fontSize,lineHeight:Eh.lineHeight},".cm-foldGutter":{fontSize:Eh.fontSize,lineHeight:Eh.lineHeight},".cm-foldGutter .cm-gutterElement":{color:Op,cursor:"pointer"},".cm-foldGutter .cm-gutterElement:hover":{color:Wr},".cm-insertedLine":{textDecoration:Ys.insertedTextDecoration,backgroundColor:rV,color:wA,padding:Ys.insertedLinePadding,borderRadius:Ys.borderRadious},"ins.cm-insertedLine, ins.cm-insertedLine:not(:has(.cm-changedText))":{textDecoration:Ys.insertedTextDecoration,backgroundColor:`${rV} !important`,color:wA,padding:Ys.insertedLinePadding,borderRadius:Ys.borderRadious,border:`1px solid ${wA}30`},"ins.cm-insertedLine .cm-changedText":{background:"transparent !important"},".cm-deletedLine":{textDecoration:Ys.deletedTextDecoration,backgroundColor:sV,color:kA,padding:Ys.insertedLinePadding,borderRadius:Ys.borderRadious},"del.cm-deletedLine, del, del:not(:has(.cm-deletedText))":{textDecoration:Ys.deletedTextDecoration,backgroundColor:`${sV} !important`,color:kA,padding:Ys.insertedLinePadding,borderRadius:Ys.borderRadious,border:`1px solid ${kA}30`},"del .cm-deletedText, del .cm-changedText":{background:"transparent !important"},".cm-tooltip":{backgroundColor:Dv,border:`1px solid ${$h}`,borderRadius:yp.borderRadius,padding:yp.padding,boxShadow:"0 1px 5px rgba(0, 0, 0, 0.1)"},".cm-tooltip-autocomplete":{"& > ul":{backgroundColor:Dv,border:"none"},"& > ul > li":{padding:yp.padding,lineHeight:yp.lineHeight},"& > ul > li[aria-selected]":{backgroundColor:"#0366d630",color:Wr,borderRadius:yp.borderRadiusSelected},"& > ul > li:hover":{backgroundColor:"#0366d615"},"& > ul > li > span.cm-completionIcon":{color:Op,paddingRight:yp.paddingRight},"& > ul > li > span.cm-completionDetail":{color:Op,fontStyle:"italic"}},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:Dv,borderBottomColor:Dv},".cm-diagnostic":{"&-error":{borderLeft:`3px solid ${Pd}`},"&-warning":{borderLeft:`3px solid ${nV}`},"&-info":{borderLeft:`3px solid ${aL}`}},".cm-lintPoint-error":{borderBottom:`2px wavy ${Pd}`},".cm-lintPoint-warning":{borderBottom:`2px wavy ${nV}`},".cm-matchingBracket":{backgroundColor:uRe,outline:`1px solid ${hRe}80`,borderRadius:yA.borderRadius},".cm-nonmatchingBracket":{backgroundColor:"#ffeef080",outline:`1px solid ${Pd}`,borderRadius:yA.borderRadius},".cm-selectionMatch":{backgroundColor:iV,outline:`1px solid ${hJ}50`,borderRadius:yA.borderRadius},".cm-foldPlaceholder":{backgroundColor:iV,color:Op,border:`1px dotted ${$h}70`,borderRadius:xA.borderRadius,padding:xA.padding,margin:xA.margin},"&.cm-focused":{outline:"none",boxShadow:`0 0 0 2px ${xp}, 0 0 0 3px ${aL}40`},"& .cm-scroller::-webkit-scrollbar":{width:OA.width,height:OA.height},"& .cm-scroller::-webkit-scrollbar-track":{background:$h},"& .cm-scroller::-webkit-scrollbar-thumb":{backgroundColor:Wr,borderRadius:OA.borderRadius,border:`3px solid ${$h}`},"& .cm-scroller::-webkit-scrollbar-thumb:hover":{backgroundColor:ka},".cm-ghostText":{opacity:"0.5",color:"#959da5"}},{dark:!1}),pRe=Ci.define([{tag:O.keyword,color:Kb,fontWeight:"bold"},{tag:O.controlKeyword,color:Kb,fontWeight:"bold"},{tag:O.moduleKeyword,color:Kb,fontWeight:"bold"},{tag:[O.name,O.deleted,O.character,O.macroName],color:eu},{tag:[O.variableName],color:eu},{tag:[O.propertyName],color:_A,fontStyle:"normal"},{tag:[O.typeName],color:Kb},{tag:[O.className],color:_A,fontStyle:"italic"},{tag:[O.namespace],color:eu,fontStyle:"italic"},{tag:[O.operator,O.operatorKeyword],color:Wr},{tag:[O.bracket],color:ka},{tag:[O.brace],color:ka},{tag:[O.punctuation],color:ka},{tag:[O.function(O.variableName),O.labelName],color:tV},{tag:[O.definition(O.variableName)],color:eu},{tag:O.number,color:Mh},{tag:O.changed,color:Mh},{tag:O.annotation,color:Pd,fontStyle:"italic"},{tag:O.modifier,color:Mh,fontStyle:"italic"},{tag:O.self,color:Mh},{tag:[O.color,O.constant(O.name),O.standard(O.name)],color:Mh},{tag:[O.atom,O.bool,O.special(O.variableName)],color:Mh},{tag:[O.processingInstruction,O.inserted],color:tV},{tag:[O.special(O.string),O.regexp],color:vA},{tag:O.string,color:vA},{tag:O.definition(O.typeName),color:Kb,fontWeight:"bold"},{tag:O.meta,color:ka},{tag:O.comment,fontStyle:"italic",color:ka},{tag:O.docComment,fontStyle:"italic",color:ka},{tag:[O.tagName],color:sRe},{tag:[O.attributeName],color:_A},{tag:[O.heading],fontWeight:"bold",color:eu},{tag:[O.strong],fontWeight:"bold",color:eu},{tag:[O.emphasis],fontStyle:"italic",color:vA},{tag:[O.link],color:dRe,fontWeight:"500",textDecoration:"underline",textUnderlinePosition:"under"},{tag:[O.url],color:aL,textDecoration:"underline",textUnderlineOffset:"2px"},{tag:[O.invalid],color:Wr,textDecoration:"underline wavy",borderBottom:`1px wavy ${Pd}`},{tag:[O.strikethrough],color:Pd,textDecoration:"line-through"},{tag:O.constant(O.name),color:Mh},{tag:O.deleted,color:Pd},{tag:O.squareBracket,color:ka},{tag:O.angleBracket,color:ka},{tag:O.monospace,color:Wr},{tag:[O.contentSeparator],color:eu},{tag:O.quote,color:ka}]),oV=[fRe,Mr(pRe)],CA={fontSize:"14px",fontFamily:"JetBrains Mono, Consolas, monospace",lineHeight:"1.6"},mRe={borderLeftWidth:"2px"},Ks={insertedTextDecoration:"none",deletedTextDecoration:"line-through",insertedLinePadding:"1px 3px",borderRadious:"3px"},Lh={border:"none",paddingRight:"8px",fontSize:"0.9em",fontWeight:"500",lineHeight:"1.78"},TA={border:"none",borderRadius:"4px",padding:"2px 10px"},gRe={borderRadius:"2px"},PA={borderRadius:"2px"},AA={borderRadius:"4px",padding:"0 5px",margin:"0 2px"},RA={width:"12px",height:"12px",borderRadius:"6px"},Nv={borderRadius:"4px",padding:"2px 6px"},_p={borderRadius:"4px",borderRadiusSelected:"3px",lineHeight:"1.3",padding:"4px 8px",paddingRight:"8px"},Qy="#282828",O0="#3c3836",lL="#504945",vp="#665c54",bRe="#7c6f64",br="#928374",EA="#fbf1c7",Ll="#ebdbb2",Iy="#fb4934",Qv="#b8bb26",hu="#fabd2f",Hp="#83a598",jy="#d3869b",MA="#8ec07c",Mm="#fe8019",Ad=Iy,yRe=O0,xRe="#3c383660",ORe=Qy,Dh=O0,aV=lL,_Re="#665c5480",$A=Mm,vRe="#504945cc",SRe=hu,lV=hu,dJ=Hp,wRe=jy,cV="#32361a80",uV="#3c1f1e80",LA="#b8bb26",DA="#fb4934",kRe=be.theme({"&":{color:Ll,backgroundColor:ORe,fontSize:CA.fontSize,fontFamily:CA.fontFamily},".cm-content":{caretColor:$A,lineHeight:CA.lineHeight},".cm-cursor, .cm-dropCursor":{borderLeftColor:$A,borderLeftWidth:mRe.borderLeftWidth},".cm-fat-cursor":{backgroundColor:`${$A}99`,color:Qy},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:aV},".cm-selectionLayer":{zIndex:100},".cm-searchMatch":{backgroundColor:"#b57614cc",outline:`1px solid ${hu}`,color:EA,borderRadius:Nv.borderRadius,"& span":{color:EA}},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:Mm,color:Qy,padding:Nv.padding,"& span":{color:Qy}},".cm-search.cm-panel.cm-textfield":{color:Ll,borderRadius:Nv.borderRadius,padding:Nv.padding},".cm-panels":{backgroundColor:Dh,color:Ll,borderRadius:"4px"},".cm-panels.cm-panels-top":{borderBottom:`1px solid ${vp}`},".cm-panels.cm-panels-bottom":{borderTop:`1px solid ${vp}`},".cm-panel button":{backgroundColor:Dh,color:Ll,border:TA.border,borderRadius:TA.borderRadius,padding:TA.padding},".cm-panel button:hover":{backgroundColor:lL},".cm-activeLine":{backgroundColor:xRe,borderRadius:gRe.borderRadius,zIndex:1},".cm-gutters":{backgroundColor:O0,color:br,border:Lh.border,borderRight:`1px solid ${lL}`,paddingRight:Lh.paddingRight},".cm-activeLineGutter":{backgroundColor:yRe,color:Ll,fontWeight:Lh.fontWeight},".cm-lineNumbers":{fontSize:Lh.fontSize,lineHeight:Lh.lineHeight},".cm-foldGutter":{fontSize:Lh.fontSize,lineHeight:Lh.lineHeight},".cm-foldGutter .cm-gutterElement":{color:br,cursor:"pointer"},".cm-foldGutter .cm-gutterElement:hover":{color:Ll},".cm-insertedLine":{textDecoration:Ks.insertedTextDecoration,backgroundColor:cV,color:LA,padding:Ks.insertedLinePadding,borderRadius:Ks.borderRadious},"ins.cm-insertedLine, ins.cm-insertedLine:not(:has(.cm-changedText))":{textDecoration:Ks.insertedTextDecoration,backgroundColor:`${cV} !important`,color:LA,padding:Ks.insertedLinePadding,borderRadius:Ks.borderRadious,border:`1px solid ${LA}40`},"ins.cm-insertedLine .cm-changedText":{background:"transparent !important"},".cm-deletedLine":{textDecoration:Ks.deletedTextDecoration,backgroundColor:uV,color:DA,padding:Ks.insertedLinePadding,borderRadius:Ks.borderRadious},"del.cm-deletedLine, del, del:not(:has(.cm-deletedText))":{textDecoration:Ks.deletedTextDecoration,backgroundColor:`${uV} !important`,color:DA,padding:Ks.insertedLinePadding,borderRadius:Ks.borderRadious,border:`1px solid ${DA}40`},"del .cm-deletedText, del .cm-changedText":{background:"transparent !important"},".cm-tooltip":{backgroundColor:Dh,border:`1px solid ${vp}`,borderRadius:_p.borderRadius,padding:_p.padding,boxShadow:"0 2px 8px rgba(0, 0, 0, 0.3)"},".cm-tooltip-autocomplete":{"& > ul":{backgroundColor:Dh,border:"none"},"& > ul > li":{padding:_p.padding,lineHeight:_p.lineHeight},"& > ul > li[aria-selected]":{backgroundColor:aV,color:EA,borderRadius:_p.borderRadiusSelected},"& > ul > li > span.cm-completionIcon":{color:br,paddingRight:_p.paddingRight},"& > ul > li > span.cm-completionDetail":{color:br,fontStyle:"italic"}},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:Dh,borderBottomColor:Dh},".cm-diagnostic":{"&-error":{borderLeft:`3px solid ${Ad}`},"&-warning":{borderLeft:`3px solid ${lV}`},"&-info":{borderLeft:`3px solid ${dJ}`}},".cm-lintPoint-error":{borderBottom:`2px wavy ${Ad}`},".cm-lintPoint-warning":{borderBottom:`2px wavy ${lV}`},".cm-matchingBracket":{backgroundColor:vRe,outline:`1px solid ${SRe}`,borderRadius:PA.borderRadius},".cm-nonmatchingBracket":{backgroundColor:"#cc241d55",outline:`1px solid ${Ad}`,borderRadius:PA.borderRadius},".cm-selectionMatch":{backgroundColor:_Re,outline:`1px solid ${vp}`,borderRadius:PA.borderRadius},".cm-foldPlaceholder":{backgroundColor:Dh,color:br,border:`1px dotted ${vp}`,borderRadius:AA.borderRadius,padding:AA.padding,margin:AA.margin},"&.cm-focused":{outline:"none",boxShadow:`0 0 0 2px ${Qy}, 0 0 0 3px ${Mm}40`},"& .cm-scroller::-webkit-scrollbar":{width:RA.width,height:RA.height},"& .cm-scroller::-webkit-scrollbar-track":{background:O0},"& .cm-scroller::-webkit-scrollbar-thumb":{backgroundColor:vp,borderRadius:RA.borderRadius,border:`3px solid ${O0}`},"& .cm-scroller::-webkit-scrollbar-thumb:hover":{backgroundColor:bRe},".cm-ghostText":{opacity:"0.5",color:br}},{dark:!0}),CRe=Ci.define([{tag:O.keyword,color:Iy,fontWeight:"bold"},{tag:O.controlKeyword,color:Iy,fontWeight:"bold"},{tag:O.moduleKeyword,color:Iy,fontWeight:"bold"},{tag:[O.name,O.deleted,O.character,O.macroName],color:Hp},{tag:[O.variableName],color:Hp},{tag:[O.propertyName],color:MA,fontStyle:"normal"},{tag:[O.typeName],color:MA},{tag:[O.className],color:hu,fontStyle:"italic"},{tag:[O.namespace],color:Hp,fontStyle:"italic"},{tag:[O.operator,O.operatorKeyword],color:Ll},{tag:[O.bracket],color:br},{tag:[O.brace],color:br},{tag:[O.punctuation],color:br},{tag:[O.function(O.variableName),O.labelName],color:hu},{tag:[O.definition(O.variableName)],color:Hp},{tag:O.number,color:jy},{tag:O.changed,color:jy},{tag:O.annotation,color:Ad,fontStyle:"italic"},{tag:O.modifier,color:jy,fontStyle:"italic"},{tag:O.self,color:jy},{tag:[O.color,O.constant(O.name),O.standard(O.name)],color:Mm},{tag:[O.atom,O.bool,O.special(O.variableName)],color:Mm},{tag:[O.processingInstruction,O.inserted],color:Qv},{tag:[O.special(O.string),O.regexp],color:Qv},{tag:O.string,color:Qv},{tag:O.definition(O.typeName),color:MA,fontWeight:"bold"},{tag:O.meta,color:br},{tag:O.comment,fontStyle:"italic",color:br},{tag:O.docComment,fontStyle:"italic",color:br},{tag:[O.tagName],color:Iy},{tag:[O.attributeName],color:hu},{tag:[O.heading],fontWeight:"bold",color:hu},{tag:[O.strong],fontWeight:"bold",color:hu},{tag:[O.emphasis],fontStyle:"italic",color:Qv},{tag:[O.link],color:wRe,fontWeight:"500",textDecoration:"underline",textUnderlinePosition:"under"},{tag:[O.url],color:dJ,textDecoration:"underline",textUnderlineOffset:"2px"},{tag:[O.invalid],color:Ll,textDecoration:"underline wavy",borderBottom:`1px wavy ${Ad}`},{tag:[O.strikethrough],color:Ad,textDecoration:"line-through"},{tag:O.constant(O.name),color:Mm},{tag:O.deleted,color:Ad},{tag:O.squareBracket,color:br},{tag:O.angleBracket,color:br},{tag:O.monospace,color:Ll},{tag:[O.contentSeparator],color:Hp},{tag:O.quote,color:br}]),TRe=[kRe,Mr(CRe)],NA={fontSize:"14px",fontFamily:"JetBrains Mono, Consolas, monospace",lineHeight:"1.6"},PRe={borderLeftWidth:"2px"},Js={insertedTextDecoration:"none",deletedTextDecoration:"line-through",insertedLinePadding:"1px 3px",borderRadious:"3px"},Nh={border:"none",paddingRight:"8px",fontSize:"0.9em",fontWeight:"500",lineHeight:"1.78"},QA={border:"none",borderRadius:"4px",padding:"2px 10px"},ARe={borderRadius:"2px"},IA={borderRadius:"2px"},jA={borderRadius:"4px",padding:"0 5px",margin:"0 2px"},BA={width:"12px",height:"12px",borderRadius:"6px"},Iv={borderRadius:"4px",padding:"2px 6px"},Sp={borderRadius:"4px",borderRadiusSelected:"3px",lineHeight:"1.3",padding:"4px 8px",paddingRight:"8px"},ho="#3c3836",RRe="#504945",ERe="#665c54",jv="#7c6f64",Ca="#928374",tu="#fbf1c7",vw="#ebdbb2",hV="#d5c4a1",Qh="#bdae93",MRe="#a89984",By="#9d0006",Bv="#79740e",Yp="#b57614",Kp="#076678",zy="#8f3f71",zA="#427b58",Ia="#af3a03",Rd=By,$Re=vw,LRe="#ffc42e25",DRe=tu,zv=vw,NRe=$Re,QRe="#ffc42e40",VA=Ia,IRe="#d5c4a180",jRe=Ia,dV=Yp,fJ=Kp,BRe=zy,fV="#d8e5bc80",pV="#f7cfcf80",qA="#79740e",XA="#9d0006",zRe=be.theme({"&":{color:ho,backgroundColor:DRe,fontSize:NA.fontSize,fontFamily:NA.fontFamily},".cm-content":{caretColor:VA,lineHeight:NA.lineHeight},".cm-cursor, .cm-dropCursor":{borderLeftColor:VA,borderLeftWidth:PRe.borderLeftWidth},".cm-fat-cursor":{backgroundColor:`${VA}99`,color:tu},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:NRe,color:ho},".cm-selectionLayer":{zIndex:100},".cm-searchMatch":{backgroundColor:"#ffc42e80",outline:`1px solid ${Ia}`,color:ho,borderRadius:Iv.borderRadius,"& span":{color:ho}},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:Ia,color:tu,padding:Iv.padding,"& span":{color:tu}},".cm-search.cm-panel.cm-textfield":{color:ho,borderRadius:Iv.borderRadius,padding:Iv.padding},".cm-panels":{backgroundColor:vw,color:RRe,borderRadius:"0 0 4px 4px"},".cm-panels.cm-panels-top":{borderBottom:`1px solid ${Qh}`},".cm-panels.cm-panels-bottom":{borderTop:`1px solid ${Qh}`},".cm-panel button":{backgroundColor:tu,color:ho,border:QA.border,borderRadius:QA.borderRadius,padding:QA.padding},".cm-panel button:hover":{backgroundColor:hV},".cm-activeLine":{backgroundColor:LRe,borderRadius:ARe.borderRadius,zIndex:1},".cm-gutters":{backgroundColor:vw,color:jv,border:Nh.border,borderRight:`1px solid ${Qh}`,paddingRight:Nh.paddingRight},".cm-activeLineGutter":{backgroundColor:hV,color:ho,fontWeight:Nh.fontWeight},".cm-lineNumbers":{fontSize:Nh.fontSize,lineHeight:Nh.lineHeight},".cm-foldGutter":{fontSize:Nh.fontSize,lineHeight:Nh.lineHeight},".cm-foldGutter .cm-gutterElement":{color:jv,cursor:"pointer"},".cm-foldGutter .cm-gutterElement:hover":{color:ho},".cm-insertedLine":{textDecoration:Js.insertedTextDecoration,backgroundColor:fV,color:qA,padding:Js.insertedLinePadding,borderRadius:Js.borderRadious},"ins.cm-insertedLine, ins.cm-insertedLine:not(:has(.cm-changedText))":{textDecoration:Js.insertedTextDecoration,backgroundColor:`${fV} !important`,color:qA,padding:Js.insertedLinePadding,borderRadius:Js.borderRadious,border:`1px solid ${qA}40`},"ins.cm-insertedLine .cm-changedText":{background:"transparent !important"},".cm-deletedLine":{textDecoration:Js.deletedTextDecoration,backgroundColor:pV,color:XA,padding:Js.insertedLinePadding,borderRadius:Js.borderRadious},"del.cm-deletedLine, del, del:not(:has(.cm-deletedText))":{textDecoration:Js.deletedTextDecoration,backgroundColor:`${pV} !important`,color:XA,padding:Js.insertedLinePadding,borderRadius:Js.borderRadious,border:`1px solid ${XA}40`},"del .cm-deletedText, del .cm-changedText":{background:"transparent !important"},".cm-tooltip":{backgroundColor:zv,border:`1px solid ${Qh}`,borderRadius:Sp.borderRadius,padding:Sp.padding,boxShadow:"0 1px 5px rgba(0, 0, 0, 0.1)"},".cm-tooltip-autocomplete":{"& > ul":{backgroundColor:zv,border:"none"},"& > ul > li":{padding:Sp.padding,lineHeight:Sp.lineHeight},"& > ul > li[aria-selected]":{backgroundColor:Ia+"30",color:ho,borderRadius:Sp.borderRadiusSelected},"& > ul > li:hover":{backgroundColor:Ia+"15"},"& > ul > li > span.cm-completionIcon":{color:jv,paddingRight:Sp.paddingRight},"& > ul > li > span.cm-completionDetail":{color:jv,fontStyle:"italic"}},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:zv,borderBottomColor:zv},".cm-diagnostic":{"&-error":{borderLeft:`3px solid ${Rd}`},"&-warning":{borderLeft:`3px solid ${dV}`},"&-info":{borderLeft:`3px solid ${fJ}`}},".cm-lintPoint-error":{borderBottom:`2px wavy ${Rd}`},".cm-lintPoint-warning":{borderBottom:`2px wavy ${dV}`},".cm-matchingBracket":{backgroundColor:IRe,outline:`1px solid ${jRe}`,borderRadius:IA.borderRadius},".cm-nonmatchingBracket":{backgroundColor:"#fb492740",outline:`1px solid ${Rd}`,borderRadius:IA.borderRadius},".cm-selectionMatch":{backgroundColor:QRe,outline:`1px solid ${Qh}`,borderRadius:IA.borderRadius},".cm-foldPlaceholder":{backgroundColor:"transparent",color:ERe,border:`1px dotted ${Qh}`,borderRadius:jA.borderRadius,padding:jA.padding,margin:jA.margin},"&.cm-focused":{outline:"none",boxShadow:`0 0 0 2px ${tu}, 0 0 0 3px ${Ia}40`},"& .cm-scroller::-webkit-scrollbar":{width:BA.width,height:BA.height},"& .cm-scroller::-webkit-scrollbar-track":{background:tu},"& .cm-scroller::-webkit-scrollbar-thumb":{backgroundColor:Qh,borderRadius:BA.borderRadius,border:`3px solid ${tu}`},"& .cm-scroller::-webkit-scrollbar-thumb:hover":{backgroundColor:MRe},".cm-ghostText":{opacity:"0.5",color:Ca}},{dark:!1}),VRe=Ci.define([{tag:O.keyword,color:By,fontWeight:"bold"},{tag:O.controlKeyword,color:By,fontWeight:"bold"},{tag:O.moduleKeyword,color:By,fontWeight:"bold"},{tag:[O.name,O.deleted,O.character,O.macroName],color:Kp},{tag:[O.variableName],color:Kp},{tag:[O.propertyName],color:zA,fontStyle:"normal"},{tag:[O.typeName],color:zA},{tag:[O.className],color:Yp,fontStyle:"italic"},{tag:[O.namespace],color:Kp,fontStyle:"italic"},{tag:[O.operator,O.operatorKeyword],color:ho},{tag:[O.bracket],color:Ca},{tag:[O.brace],color:Ca},{tag:[O.punctuation],color:Ca},{tag:[O.function(O.variableName),O.labelName],color:Yp},{tag:[O.definition(O.variableName)],color:Kp},{tag:O.number,color:zy},{tag:O.changed,color:zy},{tag:O.annotation,color:Rd,fontStyle:"italic"},{tag:O.modifier,color:zy,fontStyle:"italic"},{tag:O.self,color:zy},{tag:[O.color,O.constant(O.name),O.standard(O.name)],color:Ia},{tag:[O.atom,O.bool,O.special(O.variableName)],color:Ia},{tag:[O.processingInstruction,O.inserted],color:Bv},{tag:[O.special(O.string),O.regexp],color:Bv},{tag:O.string,color:Bv},{tag:O.definition(O.typeName),color:zA,fontWeight:"bold"},{tag:O.meta,color:Ca},{tag:O.comment,fontStyle:"italic",color:Ca},{tag:O.docComment,fontStyle:"italic",color:Ca},{tag:[O.tagName],color:By},{tag:[O.attributeName],color:Yp},{tag:[O.heading],fontWeight:"bold",color:Yp},{tag:[O.strong],fontWeight:"bold",color:Yp},{tag:[O.emphasis],fontStyle:"italic",color:Bv},{tag:[O.link],color:BRe,fontWeight:"500",textDecoration:"underline",textUnderlinePosition:"under"},{tag:[O.url],color:fJ,textDecoration:"underline",textUnderlineOffset:"2px"},{tag:[O.invalid],color:ho,textDecoration:"underline wavy",borderBottom:`1px wavy ${Rd}`},{tag:[O.strikethrough],color:Rd,textDecoration:"line-through"},{tag:O.constant(O.name),color:Ia},{tag:O.deleted,color:Rd},{tag:O.squareBracket,color:Ca},{tag:O.angleBracket,color:Ca},{tag:O.monospace,color:ho},{tag:[O.contentSeparator],color:Kp},{tag:O.quote,color:Ca}]),qRe=[zRe,Mr(VRe)],FA={fontSize:"14px",fontFamily:"JetBrains Mono, Consolas, monospace",lineHeight:"1.6"},XRe={borderLeftWidth:"2px"},eo={insertedTextDecoration:"none",deletedTextDecoration:"line-through",insertedLinePadding:"1px 3px",borderRadious:"3px"},Ih={border:"none",paddingRight:"8px",fontSize:"0.9em",fontWeight:"500",lineHeight:"1.78"},UA={border:"none",borderRadius:"4px",padding:"2px 10px"},FRe={borderRadius:"2px"},WA={borderRadius:"2px"},GA={borderRadius:"4px",padding:"0 5px",margin:"0 2px"},ZA={width:"12px",height:"12px",borderRadius:"6px"},Vv={borderRadius:"4px",padding:"2px 6px"},wp={borderRadius:"4px",borderRadiusSelected:"3px",lineHeight:"1.3",padding:"4px 8px",paddingRight:"8px"},pJ="#212121",mJ="#505d64",HA="#606f7a",Xn="#707d8b",URe="#a0a4ae",Dl="#bdbdbd",YA="#e0e0e0",WRe="#202325",id="#ff5f52",Jb="#ff6e40",GRe="#fa5788",ey="#facf4e",oS="#ffad42",ql="#56c8d8",kp="#7186f0",aS="#cf6edf",ZRe="#6abf69",HRe="#99d066",YRe="#4ebaaa",Ed=id,KA=WRe,KRe="#2d333b30",ty=pJ,Cp=mJ,mV="#ffffff1f",JRe="#4A707A80",JA=URe,eEe="#39496650",tEe=ql,gV=oS,gJ=ql,nEe=aS,bV="#1e3d2780",yV="#4e282880",eR="#6abf69",tR="#ff5f52",iEe=be.theme({"&":{color:Dl,backgroundColor:ty,fontSize:FA.fontSize,fontFamily:FA.fontFamily},".cm-content":{caretColor:JA,lineHeight:FA.lineHeight},".cm-cursor, .cm-dropCursor":{borderLeftColor:JA,borderLeftWidth:XRe.borderLeftWidth},".cm-fat-cursor":{backgroundColor:`${JA}99`,color:ty},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:mV},".cm-selectionLayer":{zIndex:100},".cm-searchMatch":{backgroundColor:"#394966cc",outline:`1px solid ${ql}`,color:YA,borderRadius:Vv.borderRadius,"& span":{color:YA}},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:ql,color:ty,padding:Vv.padding,"& span":{color:ty}},".cm-search.cm-panel.cm-textfield":{color:Dl,borderRadius:Vv.borderRadius,padding:Vv.padding},".cm-panels":{backgroundColor:pJ,color:Dl,borderRadius:"4px"},".cm-panels.cm-panels-top":{borderBottom:`1px solid ${Xn}`},".cm-panels.cm-panels-bottom":{borderTop:`1px solid ${Xn}`},".cm-panel button":{backgroundColor:Cp,color:Dl,border:UA.border,borderRadius:UA.borderRadius,padding:UA.padding},".cm-panel button:hover":{backgroundColor:HA},".cm-activeLine":{backgroundColor:KRe,borderRadius:FRe.borderRadius,zIndex:1},".cm-gutters":{backgroundColor:KA,color:Xn,border:Ih.border,borderRight:`1px solid ${mJ}`,paddingRight:Ih.paddingRight},".cm-activeLineGutter":{backgroundColor:"#252a2c",color:Dl,fontWeight:Ih.fontWeight},".cm-lineNumbers":{fontSize:Ih.fontSize,lineHeight:Ih.lineHeight},".cm-foldGutter":{fontSize:Ih.fontSize,lineHeight:Ih.lineHeight},".cm-foldGutter .cm-gutterElement":{color:Xn,cursor:"pointer"},".cm-foldGutter .cm-gutterElement:hover":{color:Dl},".cm-insertedLine":{textDecoration:eo.insertedTextDecoration,backgroundColor:bV,color:eR,padding:eo.insertedLinePadding,borderRadius:eo.borderRadious},"ins.cm-insertedLine, ins.cm-insertedLine:not(:has(.cm-changedText))":{textDecoration:eo.insertedTextDecoration,backgroundColor:`${bV} !important`,color:eR,padding:eo.insertedLinePadding,borderRadius:eo.borderRadious,border:`1px solid ${eR}40`},"ins.cm-insertedLine .cm-changedText":{background:"transparent !important"},".cm-deletedLine":{textDecoration:eo.deletedTextDecoration,backgroundColor:yV,color:tR,padding:eo.insertedLinePadding,borderRadius:eo.borderRadious},"del.cm-deletedLine, del, del:not(:has(.cm-deletedText))":{textDecoration:eo.deletedTextDecoration,backgroundColor:`${yV} !important`,color:tR,padding:eo.insertedLinePadding,borderRadius:eo.borderRadious,border:`1px solid ${tR}40`},"del .cm-deletedText, del .cm-changedText":{background:"transparent !important"},".cm-tooltip":{backgroundColor:Cp,border:`1px solid ${Xn}`,borderRadius:wp.borderRadius,padding:wp.padding,boxShadow:"0 2px 8px rgba(0, 0, 0, 0.3)"},".cm-tooltip-autocomplete":{"& > ul":{backgroundColor:Cp,border:"none"},"& > ul > li":{padding:wp.padding,lineHeight:wp.lineHeight},"& > ul > li[aria-selected]":{backgroundColor:mV,color:YA,borderRadius:wp.borderRadiusSelected},"& > ul > li > span.cm-completionIcon":{color:Xn,paddingRight:wp.paddingRight},"& > ul > li > span.cm-completionDetail":{color:Xn,fontStyle:"italic"}},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:Cp,borderBottomColor:Cp},".cm-diagnostic":{"&-error":{borderLeft:`3px solid ${Ed}`},"&-warning":{borderLeft:`3px solid ${gV}`},"&-info":{borderLeft:`3px solid ${gJ}`}},".cm-lintPoint-error":{borderBottom:`2px wavy ${Ed}`},".cm-lintPoint-warning":{borderBottom:`2px wavy ${gV}`},".cm-matchingBracket":{backgroundColor:eEe,outline:`1px solid ${tEe}`,borderRadius:WA.borderRadius},".cm-nonmatchingBracket":{backgroundColor:"#ff5f5240",outline:`1px solid ${Ed}`,borderRadius:WA.borderRadius},".cm-selectionMatch":{backgroundColor:JRe,outline:`1px solid ${HA}50`,borderRadius:WA.borderRadius},".cm-foldPlaceholder":{backgroundColor:Cp,color:Xn,border:`1px dotted ${Xn}70`,borderRadius:GA.borderRadius,padding:GA.padding,margin:GA.margin},"&.cm-focused":{outline:"none",boxShadow:`0 0 0 2px ${ty}, 0 0 0 3px ${ql}40`},"& .cm-scroller::-webkit-scrollbar":{width:ZA.width,height:ZA.height},"& .cm-scroller::-webkit-scrollbar-track":{background:KA},"& .cm-scroller::-webkit-scrollbar-thumb":{backgroundColor:HA,borderRadius:ZA.borderRadius,border:`3px solid ${KA}`},"& .cm-scroller::-webkit-scrollbar-thumb:hover":{backgroundColor:Xn},".cm-ghostText":{opacity:"0.5",color:Xn}},{dark:!0}),rEe=Ci.define([{tag:O.keyword,color:id,fontWeight:"bold"},{tag:O.controlKeyword,color:id,fontWeight:"bold"},{tag:O.moduleKeyword,color:id,fontWeight:"bold"},{tag:[O.name,O.deleted,O.character,O.macroName],color:kp},{tag:[O.variableName],color:HRe},{tag:[O.propertyName],color:aS,fontStyle:"normal"},{tag:[O.typeName],color:id},{tag:[O.className],color:ey,fontStyle:"italic"},{tag:[O.namespace],color:kp,fontStyle:"italic"},{tag:[O.operator,O.operatorKeyword],color:Dl},{tag:[O.bracket],color:Xn},{tag:[O.brace],color:Xn},{tag:[O.punctuation],color:Xn},{tag:[O.function(O.variableName)],color:ql},{tag:[O.labelName],color:ql,fontStyle:"italic"},{tag:[O.definition(O.function(O.variableName))],color:ql},{tag:[O.definition(O.variableName)],color:kp},{tag:O.number,color:ey},{tag:O.changed,color:ey},{tag:O.annotation,color:Ed,fontStyle:"italic"},{tag:O.modifier,color:Jb,fontStyle:"italic"},{tag:O.self,color:Jb},{tag:[O.color,O.constant(O.name),O.standard(O.name)],color:Jb},{tag:[O.atom,O.bool,O.special(O.variableName)],color:Jb},{tag:[O.processingInstruction,O.inserted],color:ZRe},{tag:[O.special(O.string),O.regexp],color:GRe},{tag:O.string,color:oS},{tag:O.definition(O.typeName),color:id,fontWeight:"bold"},{tag:O.meta,color:Xn},{tag:O.comment,fontStyle:"italic",color:Xn},{tag:O.docComment,fontStyle:"italic",color:Xn},{tag:[O.tagName],color:aS},{tag:[O.attributeName],color:ey},{tag:[O.heading],fontWeight:"bold",color:YRe},{tag:O.heading1,color:ey},{tag:O.heading2,color:oS},{tag:O.heading3,color:ql},{tag:O.heading4,color:kp},{tag:O.heading5,color:aS},{tag:O.heading6,color:id},{tag:[O.strong],fontWeight:"bold",color:kp},{tag:[O.emphasis],fontStyle:"italic",color:oS},{tag:[O.link],color:nEe,fontWeight:"500",textDecoration:"underline",textUnderlinePosition:"under"},{tag:[O.url],color:gJ,textDecoration:"underline",textUnderlineOffset:"2px"},{tag:[O.invalid],color:Dl,textDecoration:"underline wavy",borderBottom:`1px wavy ${Ed}`},{tag:[O.strikethrough],color:Ed,textDecoration:"line-through"},{tag:O.constant(O.name),color:Jb},{tag:O.deleted,color:Ed},{tag:O.squareBracket,color:Xn},{tag:O.angleBracket,color:Xn},{tag:O.monospace,color:Dl},{tag:[O.contentSeparator],color:kp},{tag:O.quote,color:Xn}]),sEe=[iEe,Mr(rEe)],nR={fontSize:"14px",fontFamily:"JetBrains Mono, Consolas, monospace",lineHeight:"1.6"},oEe={borderLeftWidth:"2px"},to={insertedTextDecoration:"none",deletedTextDecoration:"line-through",insertedLinePadding:"1px 3px",borderRadious:"3px"},jh={border:"none",paddingRight:"8px",fontSize:"0.9em",fontWeight:"500",lineHeight:"1.78"},iR={border:"none",borderRadius:"4px",padding:"2px 10px"},aEe={borderRadius:"2px"},rR={borderRadius:"2px"},sR={borderRadius:"4px",padding:"0 5px",margin:"0 2px"},oR={width:"12px",height:"12px",borderRadius:"6px"},qv={borderRadius:"4px",padding:"2px 6px"},Tp={borderRadius:"4px",borderRadiusSelected:"3px",lineHeight:"1.3",padding:"4px 8px",paddingRight:"8px"},lEe="#ffffff",bJ="#f5f5f5",Fr="#212121",ws="#757575",Vy="#9e9e9e",aR="#424242",cEe="#eeeeee",lR="#fafafa",cL="#f44336",Xv="#ff3e00",Fv="#FF00E9FF",uEe="#ffc107",Ta="#ff9800",Bl="#00acc1",Uv="#3949ab",qy="#8e24aa",Wv="#43a047",xV="#00897b",OV="#1e88e5",Md=cL,hEe="#00000008",ny=lEe,iy=bJ,dEe="#DDEEFF",fEe="#90a4ae26",_V=Vy,pEe="#DDEEFF80",mEe=Bl,vV=Ta,yJ=Bl,gEe=qy,SV="#ECEFF180",wV="#e6ffed80",kV="#ffebe980",cR="#28a745",uR="#d73a49",bEe=be.theme({"&":{color:Fr,backgroundColor:ny,fontSize:nR.fontSize,fontFamily:nR.fontFamily},".cm-content":{caretColor:_V,lineHeight:nR.lineHeight},".cm-cursor, .cm-dropCursor":{borderLeftColor:_V,borderLeftWidth:oEe.borderLeftWidth},".cm-fat-cursor":{backgroundColor:`${Fr}99`,color:ny},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:dEe},".cm-selectionLayer":{zIndex:100},".cm-searchMatch":{backgroundColor:"#FFA72680",outline:`1px solid ${uEe}`,color:Fr,borderRadius:qv.borderRadius,"& span":{color:Fr}},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:Bl,color:ny,padding:qv.padding,"& span":{color:ny}},".cm-search.cm-panel.cm-textfield":{color:Fr,borderRadius:qv.borderRadius,padding:qv.padding},".cm-panels":{backgroundColor:cEe,color:Fr,borderRadius:"4px",boxShadow:"0 2px 8px rgba(0, 0, 0, 0.15)"},".cm-panels.cm-panels-top":{borderBottom:`1px solid ${Vy}`},".cm-panels.cm-panels-bottom":{borderTop:`1px solid ${Vy}`},".cm-panel button":{backgroundColor:iy,color:Fr,border:iR.border,borderRadius:iR.borderRadius,padding:iR.padding},".cm-panel button:hover":{backgroundColor:"#CFD8DC"},".cm-activeLine":{backgroundColor:hEe,borderRadius:aEe.borderRadius,zIndex:1},".cm-gutters":{backgroundColor:lR,color:ws,border:jh.border,borderRight:`1px solid ${Vy}`,paddingRight:jh.paddingRight},".cm-activeLineGutter":{backgroundColor:"#E0E0E0",color:Fr,fontWeight:jh.fontWeight},".cm-lineNumbers":{fontSize:jh.fontSize,lineHeight:jh.lineHeight},".cm-foldGutter":{fontSize:jh.fontSize,lineHeight:jh.lineHeight},".cm-foldGutter .cm-gutterElement":{color:ws,cursor:"pointer",transition:"color 0.15s ease"},".cm-foldGutter .cm-gutterElement:hover":{color:Fr},".cm-insertedLine":{textDecoration:to.insertedTextDecoration,backgroundColor:wV,color:cR,padding:to.insertedLinePadding,borderRadius:to.borderRadious},"ins.cm-insertedLine, ins.cm-insertedLine:not(:has(.cm-changedText))":{textDecoration:to.insertedTextDecoration,backgroundColor:`${wV} !important`,color:cR,padding:to.insertedLinePadding,borderRadius:to.borderRadious,border:`1px solid ${cR}30`},"ins.cm-insertedLine .cm-changedText":{background:"transparent !important"},".cm-deletedLine":{textDecoration:to.deletedTextDecoration,backgroundColor:kV,color:uR,padding:to.insertedLinePadding,borderRadius:to.borderRadious},"del.cm-deletedLine, del, del:not(:has(.cm-deletedText))":{textDecoration:to.deletedTextDecoration,backgroundColor:`${kV} !important`,color:uR,padding:to.insertedLinePadding,borderRadius:to.borderRadious,border:`1px solid ${uR}30`},"del .cm-deletedText, del .cm-changedText":{background:"transparent !important"},".cm-tooltip":{backgroundColor:iy,border:`1px solid ${Vy}`,borderRadius:Tp.borderRadius,padding:Tp.padding,boxShadow:"0 2px 8px rgba(0, 0, 0, 0.15)"},".cm-tooltip-autocomplete":{"& > ul":{backgroundColor:iy,border:"none"},"& > ul > li":{padding:Tp.padding,lineHeight:Tp.lineHeight},"& > ul > li[aria-selected]":{backgroundColor:SV,color:Fr,borderRadius:Tp.borderRadiusSelected},"& > ul > li:hover":{backgroundColor:SV},"& > ul > li > span.cm-completionIcon":{color:ws,paddingRight:Tp.paddingRight},"& > ul > li > span.cm-completionDetail":{color:ws,fontStyle:"italic"}},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:iy,borderBottomColor:iy},".cm-diagnostic":{"&-error":{borderLeft:`3px solid ${Md}`},"&-warning":{borderLeft:`3px solid ${vV}`},"&-info":{borderLeft:`3px solid ${yJ}`}},".cm-lintPoint-error":{borderBottom:`2px wavy ${Md}`},".cm-lintPoint-warning":{borderBottom:`2px wavy ${vV}`},".cm-matchingBracket":{backgroundColor:pEe,outline:`1px solid ${mEe}`,borderRadius:rR.borderRadius},".cm-nonmatchingBracket":{backgroundColor:`${Md}20`,outline:`1px solid ${Md}`,borderRadius:rR.borderRadius},".cm-selectionMatch":{backgroundColor:fEe,outline:`1px solid ${ws}30`,borderRadius:rR.borderRadius},".cm-foldPlaceholder":{backgroundColor:bJ,color:ws,border:`1px dotted ${ws}70`,borderRadius:sR.borderRadius,padding:sR.padding,margin:sR.margin},"&.cm-focused":{outline:"none",boxShadow:`0 0 0 2px ${ny}, 0 0 0 3px ${Bl}40`},"& .cm-scroller::-webkit-scrollbar":{width:oR.width,height:oR.height},"& .cm-scroller::-webkit-scrollbar-track":{background:lR},"& .cm-scroller::-webkit-scrollbar-thumb":{backgroundColor:ws,borderRadius:oR.borderRadius,border:`3px solid ${lR}`},"& .cm-scroller::-webkit-scrollbar-thumb:hover":{backgroundColor:Fr},".cm-ghostText":{opacity:"0.5",color:ws}},{dark:!1}),yEe=Ci.define([{tag:O.keyword,color:Bl,fontWeight:"bold"},{tag:O.controlKeyword,color:Bl,fontWeight:"bold"},{tag:O.moduleKeyword,color:Bl,fontWeight:"bold"},{tag:[O.name,O.deleted,O.character,O.macroName],color:aR},{tag:[O.variableName],color:aR},{tag:[O.propertyName],color:xV,fontStyle:"normal"},{tag:[O.typeName],color:Ta},{tag:[O.className],color:Ta,fontStyle:"italic"},{tag:[O.namespace],color:Uv,fontStyle:"italic"},{tag:[O.operator,O.operatorKeyword],color:Uv},{tag:[O.bracket],color:qy},{tag:[O.brace],color:qy},{tag:[O.punctuation],color:ws},{tag:[O.function(O.variableName)],color:Xv},{tag:[O.labelName],color:OV,fontStyle:"italic"},{tag:[O.definition(O.function(O.variableName))],color:Xv},{tag:[O.definition(O.variableName)],color:Fv},{tag:O.number,color:Ta},{tag:O.changed,color:Ta},{tag:O.annotation,color:Md,fontStyle:"italic"},{tag:O.modifier,color:Ta,fontStyle:"italic"},{tag:O.self,color:Ta},{tag:[O.color,O.constant(O.name),O.standard(O.name)],color:Ta},{tag:[O.atom,O.bool],color:qy},{tag:[O.processingInstruction,O.inserted],color:Wv},{tag:O.string,color:Wv},{tag:[O.special(O.string),O.regexp],color:Fv},{tag:O.definition(O.typeName),color:Fv,fontWeight:"bold"},{tag:[O.definition(O.name),O.separator],color:Fv},{tag:O.meta,color:ws},{tag:O.comment,fontStyle:"italic",color:ws},{tag:O.docComment,fontStyle:"italic",color:ws},{tag:[O.tagName],color:Xv},{tag:[O.attributeName],color:aR},{tag:[O.heading],fontWeight:"bold",color:xV},{tag:O.heading1,color:OV},{tag:O.heading2,color:Ta},{tag:O.heading3,color:Bl},{tag:O.heading4,color:Uv},{tag:O.heading5,color:qy},{tag:O.heading6,color:Wv},{tag:[O.strong],fontWeight:"bold",color:Uv},{tag:[O.emphasis],fontStyle:"italic",color:Ta},{tag:[O.link],color:gEe,fontWeight:"500",textDecoration:"underline",textUnderlinePosition:"under"},{tag:[O.url],color:yJ,textDecoration:"underline",textUnderlineOffset:"2px"},{tag:[O.invalid],color:Fr,textDecoration:"underline wavy",borderBottom:`1px dotted ${cL}`},{tag:[O.strikethrough],color:Md,textDecoration:"line-through"},{tag:O.constant(O.name),color:Xv},{tag:O.deleted,color:Md},{tag:O.squareBracket,color:cL},{tag:O.angleBracket,color:Fr},{tag:O.monospace,color:Fr},{tag:[O.contentSeparator],color:Bl},{tag:O.quote,color:Wv}]),xEe=[bEe,Mr(yEe)],hR={fontSize:"14px",fontFamily:"JetBrains Mono, Consolas, monospace",lineHeight:"1.6"},OEe={borderLeftWidth:"2px"},no={insertedTextDecoration:"none",deletedTextDecoration:"line-through",insertedLinePadding:"1px 3px",borderRadious:"3px"},Bh={border:"none",paddingRight:"8px",fontSize:"0.9em",fontWeight:"500",lineHeight:"1.78"},dR={border:"none",borderRadius:"4px",padding:"2px 10px"},_Ee={borderRadius:"2px"},fR={borderRadius:"2px"},pR={borderRadius:"4px",padding:"0 5px",margin:"0 2px"},mR={width:"12px",height:"12px",borderRadius:"6px"},Gv={borderRadius:"4px",padding:"2px 6px"},Pp={borderRadius:"4px",borderRadiusSelected:"3px",lineHeight:"1.3",padding:"4px 8px",paddingRight:"8px"},ry="#272822",Ki="#f8f8f2",Gr="#88846f",vEe="#f8f8f0",Jp="#F92672",nu="#FD971F",$d="#66D9EF",uL="#E6DB74",iu="#AE81FF",sy="#A6E22E",Ld="#F44747",Zv="#414339",SEe="#3e3d3257",Ap="#34352f",CV="#49483E",wEe="#75715e70",gR=vEe,kEe="#75715E55",CEe=$d,TV=nu,xJ=$d,TEe=iu,PV="#3d4d3880",AV="#4d393980",bR="#A6E22E",yR="#F92672",PEe=be.theme({"&":{color:Ki,backgroundColor:ry,fontSize:hR.fontSize,fontFamily:hR.fontFamily},".cm-content":{caretColor:gR,lineHeight:hR.lineHeight},".cm-cursor, .cm-dropCursor":{borderLeftColor:gR,borderLeftWidth:OEe.borderLeftWidth},".cm-fat-cursor":{backgroundColor:`${gR}99`,color:ry},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:CV},".cm-selectionLayer":{zIndex:100},".cm-searchMatch":{backgroundColor:"#49483E99",outline:`1px solid ${uL}`,color:Ki,borderRadius:Gv.borderRadius,"& span":{color:Ki}},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:Jp,color:ry,padding:Gv.padding,"& span":{color:ry}},".cm-search.cm-panel.cm-textfield":{color:Ki,borderRadius:Gv.borderRadius,padding:Gv.padding},".cm-panels":{backgroundColor:Zv,color:Ki,borderRadius:"4px"},".cm-panels.cm-panels-top":{borderBottom:`1px solid ${Gr}80`},".cm-panels.cm-panels-bottom":{borderTop:`1px solid ${Gr}80`},".cm-panel button":{backgroundColor:Ap,color:Ki,border:dR.border,borderRadius:dR.borderRadius,padding:dR.padding},".cm-panel button:hover":{backgroundColor:"#49483E"},".cm-activeLine":{backgroundColor:SEe,borderRadius:_Ee.borderRadius,zIndex:1},".cm-gutters":{backgroundColor:Zv,color:Gr,border:Bh.border,borderRight:"1px solid #3e3d32",paddingRight:Bh.paddingRight},".cm-activeLineGutter":{backgroundColor:"#35352c",color:Ki,fontWeight:Bh.fontWeight},".cm-lineNumbers":{fontSize:Bh.fontSize,lineHeight:Bh.lineHeight},".cm-foldGutter":{fontSize:Bh.fontSize,lineHeight:Bh.lineHeight},".cm-foldGutter .cm-gutterElement":{color:Gr,cursor:"pointer"},".cm-foldGutter .cm-gutterElement:hover":{color:Ki},".cm-insertedLine":{textDecoration:no.insertedTextDecoration,backgroundColor:PV,color:bR,padding:no.insertedLinePadding,borderRadius:no.borderRadious},"ins.cm-insertedLine, ins.cm-insertedLine:not(:has(.cm-changedText))":{textDecoration:no.insertedTextDecoration,backgroundColor:`${PV} !important`,color:bR,padding:no.insertedLinePadding,borderRadius:no.borderRadious,border:`1px solid ${bR}40`},"ins.cm-insertedLine .cm-changedText":{background:"transparent !important"},".cm-deletedLine":{textDecoration:no.deletedTextDecoration,backgroundColor:AV,color:yR,padding:no.insertedLinePadding,borderRadius:no.borderRadious},"del.cm-deletedLine, del, del:not(:has(.cm-deletedText))":{textDecoration:no.deletedTextDecoration,backgroundColor:`${AV} !important`,color:yR,padding:no.insertedLinePadding,borderRadius:no.borderRadious,border:`1px solid ${yR}40`},"del .cm-deletedText, del .cm-changedText":{background:"transparent !important"},".cm-tooltip":{backgroundColor:Ap,border:"1px solid #49483E",borderRadius:Pp.borderRadius,padding:Pp.padding,boxShadow:"0 2px 8px rgba(0, 0, 0, 0.4)"},".cm-tooltip-autocomplete":{"& > ul":{backgroundColor:Ap,border:"none"},"& > ul > li":{padding:Pp.padding,lineHeight:Pp.lineHeight},"& > ul > li[aria-selected]":{backgroundColor:CV,color:Ki,borderRadius:Pp.borderRadiusSelected},"& > ul > li > span.cm-completionIcon":{color:Gr,paddingRight:Pp.paddingRight},"& > ul > li > span.cm-completionDetail":{color:Gr,fontStyle:"italic"}},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:Ap,borderBottomColor:Ap},".cm-diagnostic":{"&-error":{borderLeft:`3px solid ${Ld}`},"&-warning":{borderLeft:`3px solid ${TV}`},"&-info":{borderLeft:`3px solid ${xJ}`}},".cm-lintPoint-error":{borderBottom:`2px wavy ${Ld}`},".cm-lintPoint-warning":{borderBottom:`2px wavy ${TV}`},".cm-matchingBracket":{backgroundColor:kEe,outline:`1px solid ${CEe}`,borderRadius:fR.borderRadius},".cm-nonmatchingBracket":{backgroundColor:"#f9267240",outline:`1px solid ${Ld}`,borderRadius:fR.borderRadius},".cm-selectionMatch":{backgroundColor:wEe,outline:`1px solid ${Gr}50`,borderRadius:fR.borderRadius},".cm-foldPlaceholder":{backgroundColor:Ap,color:Gr,border:`1px dotted ${Gr}70`,borderRadius:pR.borderRadius,padding:pR.padding,margin:pR.margin},"&.cm-focused":{outline:"none",boxShadow:`0 0 0 2px ${ry}, 0 0 0 3px ${$d}40`},"& .cm-scroller::-webkit-scrollbar":{width:mR.width,height:mR.height},"& .cm-scroller::-webkit-scrollbar-track":{background:Zv},"& .cm-scroller::-webkit-scrollbar-thumb":{backgroundColor:"#49483E",borderRadius:mR.borderRadius,border:`3px solid ${Zv}`},"& .cm-scroller::-webkit-scrollbar-thumb:hover":{backgroundColor:"#5a594d"},".cm-ghostText":{opacity:"0.5",color:Gr}},{dark:!0}),AEe=Ci.define([{tag:O.keyword,color:Jp,fontWeight:"bold"},{tag:O.controlKeyword,color:Jp,fontWeight:"bold"},{tag:O.moduleKeyword,color:Jp,fontWeight:"bold"},{tag:[O.name,O.deleted,O.character,O.macroName],color:nu},{tag:[O.variableName],color:nu},{tag:[O.propertyName],color:sy,fontStyle:"normal"},{tag:[O.typeName],color:$d,fontStyle:"italic"},{tag:[O.className],color:sy,fontStyle:"italic"},{tag:[O.namespace],color:nu,fontStyle:"italic"},{tag:[O.operator,O.operatorKeyword],color:Jp},{tag:[O.bracket],color:Ki},{tag:[O.brace],color:Ki},{tag:[O.punctuation],color:Ki},{tag:[O.function(O.variableName),O.labelName],color:$d},{tag:[O.definition(O.function(O.variableName))],color:$d},{tag:[O.definition(O.variableName)],color:nu},{tag:O.number,color:iu},{tag:O.changed,color:iu},{tag:O.annotation,color:Ld,fontStyle:"italic"},{tag:O.modifier,color:iu,fontStyle:"italic"},{tag:O.self,color:iu},{tag:[O.color,O.constant(O.name),O.standard(O.name)],color:iu},{tag:[O.atom,O.bool,O.special(O.variableName)],color:iu},{tag:[O.processingInstruction,O.inserted],color:sy},{tag:[O.special(O.string),O.regexp],color:uL},{tag:O.string,color:uL},{tag:O.definition(O.typeName),color:$d,fontWeight:"bold"},{tag:O.meta,color:Gr},{tag:O.comment,fontStyle:"italic",color:Gr},{tag:O.docComment,fontStyle:"italic",color:Gr},{tag:[O.tagName],color:Jp},{tag:[O.attributeName],color:sy},{tag:[O.heading],fontWeight:"bold",color:sy},{tag:[O.strong],fontWeight:"bold",color:nu},{tag:[O.emphasis],fontStyle:"italic",color:nu},{tag:[O.link],color:TEe,fontWeight:"500",textDecoration:"underline",textUnderlinePosition:"under"},{tag:[O.url],color:xJ,textDecoration:"underline",textUnderlineOffset:"2px"},{tag:[O.invalid],color:Ki,textDecoration:"underline wavy",borderBottom:`1px wavy ${Ld}`},{tag:[O.strikethrough],color:Ld,textDecoration:"line-through"},{tag:O.constant(O.name),color:iu},{tag:O.deleted,color:Ld},{tag:O.squareBracket,color:Ki},{tag:O.angleBracket,color:Ki},{tag:O.monospace,color:Ki},{tag:[O.contentSeparator],color:nu},{tag:O.quote,color:Gr}]),REe=[PEe,Mr(AEe)],xR={fontSize:"14px",fontFamily:"JetBrains Mono, Consolas, monospace",lineHeight:"1.6"},EEe={borderLeftWidth:"2px"},io={insertedTextDecoration:"none",deletedTextDecoration:"line-through",insertedLinePadding:"1px 3px",borderRadious:"3px"},zh={border:"none",paddingRight:"8px",fontSize:"0.9em",fontWeight:"500",lineHeight:"1.78"},OR={border:"none",borderRadius:"4px",padding:"2px 10px"},MEe={borderRadius:"2px"},_R={borderRadius:"2px"},vR={borderRadius:"4px",padding:"0 5px",margin:"0 2px"},SR={width:"12px",height:"12px",borderRadius:"6px"},Hv={borderRadius:"4px",padding:"2px 6px"},Rp={borderRadius:"4px",borderRadiusSelected:"3px",lineHeight:"1.3",padding:"4px 8px",paddingRight:"8px"},$Ee="#2e3440",OJ="#3b4252",em="#434c5e",Ur="#4c566a",Zr="#d8dee9",wR="#eceff4",Xy="#8fbcbb",_0="#88c0d0",v0="#81a1c1",kR="#5e81ac",Nl="#bf616a",oy="#d08770",tm="#ebcb8b",RV="#a3be8c",ru="#b48ead",LEe="#d30102",Yv="#252a33",DEe="#3b425277",CR=$Ee,Ep=OJ,NEe=em,QEe="#4c566a80",TR=Zr,IEe="#4c566a55",jEe=_0,EV=tm,_J=v0,BEe=ru,MV="#3b4a3880",$V="#4a393a80",PR="#a3be8c",AR="#bf616a",zEe=be.theme({"&":{color:Zr,backgroundColor:CR,fontSize:xR.fontSize,fontFamily:xR.fontFamily},".cm-content":{caretColor:TR,lineHeight:xR.lineHeight},".cm-cursor, .cm-dropCursor":{borderLeftColor:TR,borderLeftWidth:EEe.borderLeftWidth},".cm-fat-cursor":{backgroundColor:`${TR}99`,color:CR},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:NEe},".cm-selectionLayer":{zIndex:100},".cm-searchMatch":{backgroundColor:"#5e81ac80",outline:`1px solid ${Xy}`,color:Zr,borderRadius:Hv.borderRadius,"& span":{color:Zr}},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:v0,color:wR,padding:Hv.padding,"& span":{color:wR}},".cm-search.cm-panel.cm-textfield":{color:Zr,borderRadius:Hv.borderRadius,padding:Hv.padding},".cm-panels":{backgroundColor:Yv,color:Zr,borderRadius:"4px"},".cm-panels.cm-panels-top":{borderBottom:`1px solid ${Ur}`},".cm-panels.cm-panels-bottom":{borderTop:`1px solid ${Ur}`},".cm-panel button":{backgroundColor:Ep,color:Zr,border:OR.border,borderRadius:OR.borderRadius,padding:OR.padding},".cm-panel button:hover":{backgroundColor:em},".cm-activeLine":{backgroundColor:DEe,borderRadius:MEe.borderRadius,zIndex:1},".cm-gutters":{backgroundColor:Yv,color:Ur,border:zh.border,borderRight:`1px solid ${em}`,paddingRight:zh.paddingRight},".cm-activeLineGutter":{backgroundColor:OJ,color:Zr,fontWeight:zh.fontWeight},".cm-lineNumbers":{fontSize:zh.fontSize,lineHeight:zh.lineHeight},".cm-foldGutter":{fontSize:zh.fontSize,lineHeight:zh.lineHeight},".cm-foldGutter .cm-gutterElement":{color:Ur,cursor:"pointer"},".cm-foldGutter .cm-gutterElement:hover":{color:Zr},".cm-insertedLine":{textDecoration:io.insertedTextDecoration,backgroundColor:MV,color:PR,padding:io.insertedLinePadding,borderRadius:io.borderRadious},"ins.cm-insertedLine, ins.cm-insertedLine:not(:has(.cm-changedText))":{textDecoration:io.insertedTextDecoration,backgroundColor:`${MV} !important`,color:PR,padding:io.insertedLinePadding,borderRadius:io.borderRadious,border:`1px solid ${PR}40`},"ins.cm-insertedLine .cm-changedText":{background:"transparent !important"},".cm-deletedLine":{textDecoration:io.deletedTextDecoration,backgroundColor:$V,color:AR,padding:io.insertedLinePadding,borderRadius:io.borderRadious},"del.cm-deletedLine, del, del:not(:has(.cm-deletedText))":{textDecoration:io.deletedTextDecoration,backgroundColor:`${$V} !important`,color:AR,padding:io.insertedLinePadding,borderRadius:io.borderRadious,border:`1px solid ${AR}40`},"del .cm-deletedText, del .cm-changedText":{background:"transparent !important"},".cm-tooltip":{backgroundColor:Ep,border:`1px solid ${Ur}`,borderRadius:Rp.borderRadius,padding:Rp.padding,boxShadow:"0 2px 8px rgba(0, 0, 0, 0.3)"},".cm-tooltip-autocomplete":{"& > ul":{backgroundColor:Ep,border:"none"},"& > ul > li":{padding:Rp.padding,lineHeight:Rp.lineHeight},"& > ul > li[aria-selected]":{backgroundColor:em,color:wR,borderRadius:Rp.borderRadiusSelected},"& > ul > li > span.cm-completionIcon":{color:Ur,paddingRight:Rp.paddingRight},"& > ul > li > span.cm-completionDetail":{color:Ur,fontStyle:"italic"}},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:Ep,borderBottomColor:Ep},".cm-diagnostic":{"&-error":{borderLeft:`3px solid ${Nl}`},"&-warning":{borderLeft:`3px solid ${EV}`},"&-info":{borderLeft:`3px solid ${_J}`}},".cm-lintPoint-error":{borderBottom:`2px wavy ${Nl}`},".cm-lintPoint-warning":{borderBottom:`2px wavy ${EV}`},".cm-matchingBracket":{backgroundColor:IEe,outline:`1px solid ${jEe}`,borderRadius:_R.borderRadius},".cm-nonmatchingBracket":{backgroundColor:`${Nl}40`,outline:`1px solid ${LEe}`,borderRadius:_R.borderRadius},".cm-selectionMatch":{backgroundColor:QEe,outline:`1px solid ${em}50`,borderRadius:_R.borderRadius},".cm-foldPlaceholder":{backgroundColor:Ep,color:Ur,border:`1px dotted ${Ur}70`,borderRadius:vR.borderRadius,padding:vR.padding,margin:vR.margin},"&.cm-focused":{outline:"none",boxShadow:`0 0 0 2px ${CR}, 0 0 0 3px ${_0}40`},"& .cm-scroller::-webkit-scrollbar":{width:SR.width,height:SR.height},"& .cm-scroller::-webkit-scrollbar-track":{background:Yv},"& .cm-scroller::-webkit-scrollbar-thumb":{backgroundColor:em,borderRadius:SR.borderRadius,border:`3px solid ${Yv}`},"& .cm-scroller::-webkit-scrollbar-thumb:hover":{backgroundColor:Ur},".cm-ghostText":{opacity:"0.5",color:Ur}},{dark:!0}),VEe=Ci.define([{tag:O.keyword,color:kR,fontWeight:"bold"},{tag:O.controlKeyword,color:kR,fontWeight:"bold"},{tag:O.moduleKeyword,color:kR,fontWeight:"bold"},{tag:[O.name,O.deleted,O.character,O.macroName],color:_0},{tag:[O.variableName],color:Zr},{tag:[O.propertyName],color:_0,fontStyle:"normal"},{tag:[O.typeName],color:tm},{tag:[O.className],color:tm,fontStyle:"italic"},{tag:[O.namespace],color:v0,fontStyle:"italic"},{tag:[O.operator,O.operatorKeyword],color:ru},{tag:[O.bracket],color:Zr},{tag:[O.brace],color:Xy},{tag:[O.punctuation],color:Zr},{tag:[O.function(O.variableName),O.labelName],color:Xy},{tag:[O.definition(O.function(O.variableName))],color:Xy},{tag:[O.definition(O.variableName)],color:oy},{tag:O.number,color:oy},{tag:O.changed,color:ru},{tag:O.annotation,color:Nl,fontStyle:"italic"},{tag:O.modifier,color:ru,fontStyle:"italic"},{tag:O.self,color:ru},{tag:[O.color,O.constant(O.name),O.standard(O.name)],color:oy},{tag:[O.atom,O.bool,O.special(O.variableName)],color:ru},{tag:[O.processingInstruction,O.inserted],color:Xy},{tag:[O.special(O.string),O.regexp],color:ru},{tag:O.string,color:RV},{tag:O.definition(O.typeName),color:tm,fontWeight:"bold"},{tag:[O.definition(O.name),O.separator],color:RV},{tag:O.meta,color:Ur},{tag:O.comment,fontStyle:"italic",color:Ur},{tag:O.docComment,fontStyle:"italic",color:Ur},{tag:[O.tagName],color:Nl},{tag:[O.attributeName],color:tm},{tag:[O.heading],fontWeight:"bold",color:v0},{tag:[O.strong],fontWeight:"bold",color:_0},{tag:[O.emphasis],fontStyle:"italic",color:tm},{tag:[O.link],color:BEe,fontWeight:"500",textDecoration:"underline",textUnderlinePosition:"under"},{tag:[O.url],color:_J,textDecoration:"underline",textUnderlineOffset:"2px"},{tag:[O.invalid],color:Zr,textDecoration:"underline wavy",borderBottom:`1px wavy ${Nl}`},{tag:[O.strikethrough],color:Nl,textDecoration:"line-through"},{tag:O.constant(O.name),color:oy},{tag:O.deleted,color:Nl},{tag:O.squareBracket,color:Nl},{tag:O.angleBracket,color:oy},{tag:O.monospace,color:Zr,fontStyle:"italic"},{tag:[O.contentSeparator],color:v0},{tag:O.quote,color:ru}]),qEe=[zEe,Mr(VEe)],RR={fontSize:"14px",fontFamily:"JetBrains Mono, Consolas, monospace",lineHeight:"1.6"},XEe={borderLeftWidth:"2px"},ro={insertedTextDecoration:"none",deletedTextDecoration:"line-through",insertedLinePadding:"1px 3px",borderRadious:"3px"},Vh={border:"none",paddingRight:"8px",fontSize:"0.9em",fontWeight:"500",lineHeight:"1.78"},ER={border:"none",borderRadius:"4px",padding:"2px 10px"},FEe={borderRadius:"2px"},MR={borderRadius:"2px"},$R={borderRadius:"4px",padding:"0 5px",margin:"0 2px"},LR={width:"12px",height:"12px",borderRadius:"6px"},Kv={borderRadius:"4px",padding:"2px 6px"},Mp={borderRadius:"4px",borderRadiusSelected:"3px",lineHeight:"1.3",padding:"4px 8px",paddingRight:"8px"},UEe="#e1e2e7",bu="#3760bf",DR="#99a7df",ti="#848cb5",WEe="#8c91a8",ay="#3760bf",vJ="#e9e9ec",hL="#d5d6db",SJ="#f52a65",co="#b15c00",LV="#8c6c3e",NR="#587539",mr="#007197",ly="#2e7de9",Fy="#7847bd",GEe="#9854f1",Dd=SJ,QR=hL,ZEe="#5F5FAF5A",cy=UEe,$p=vJ,DV="#99a7df40",HEe="#99a7df60",IR=bu,YEe="#0e639c20",KEe=mr,NV=co,wJ=mr,JEe=Fy,QV="#58753920",IV="#f52a6520",jR="#587539",BR="#f52a65",eMe=be.theme({"&":{color:ay,backgroundColor:cy,fontSize:RR.fontSize,fontFamily:RR.fontFamily},".cm-content":{caretColor:IR,lineHeight:RR.lineHeight},".cm-cursor, .cm-dropCursor":{borderLeftColor:IR,borderLeftWidth:XEe.borderLeftWidth},".cm-fat-cursor":{backgroundColor:`${IR}99`,color:cy},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:DV},".cm-selectionLayer":{zIndex:100},".cm-searchMatch":{backgroundColor:"#0e639c40",outline:`1px solid ${mr}`,color:ay,borderRadius:Kv.borderRadius},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:mr,color:cy,padding:Kv.padding,"& span":{color:cy}},".cm-search.cm-panel.cm-textfield":{color:ay,borderRadius:Kv.borderRadius,padding:Kv.padding},".cm-panels":{backgroundColor:vJ,color:ay,borderRadius:"4px",boxShadow:"0 1px 3px rgba(0, 0, 0, 0.1)"},".cm-panels.cm-panels-top":{borderBottom:`1px solid ${ti}30`},".cm-panels.cm-panels-bottom":{borderTop:`1px solid ${ti}30`},".cm-panel button":{backgroundColor:$p,color:ay,border:ER.border,borderRadius:ER.borderRadius,padding:ER.padding},".cm-panel button:hover":{backgroundColor:hL,border:`1px solid ${DR}`},".cm-activeLine":{backgroundColor:ZEe,borderRadius:FEe.borderRadius,zIndex:1},".cm-gutters":{backgroundColor:QR,color:ti,border:Vh.border,borderRight:`1px solid ${hL}`,paddingRight:Vh.paddingRight},".cm-activeLineGutter":{color:bu,fontWeight:Vh.fontWeight},".cm-lineNumbers":{fontSize:Vh.fontSize,lineHeight:Vh.lineHeight},".cm-foldGutter":{fontSize:Vh.fontSize,lineHeight:Vh.lineHeight},".cm-foldGutter .cm-gutterElement":{color:ti,cursor:"pointer"},".cm-foldGutter .cm-gutterElement:hover":{color:bu},".cm-insertedLine":{textDecoration:ro.insertedTextDecoration,backgroundColor:QV,color:jR,padding:ro.insertedLinePadding,borderRadius:ro.borderRadious},"ins.cm-insertedLine, ins.cm-insertedLine:not(:has(.cm-changedText))":{textDecoration:ro.insertedTextDecoration,backgroundColor:`${QV} !important`,color:jR,padding:ro.insertedLinePadding,borderRadius:ro.borderRadious,border:`1px solid ${jR}40`},"ins.cm-insertedLine .cm-changedText":{background:"transparent !important"},".cm-deletedLine":{textDecoration:ro.deletedTextDecoration,backgroundColor:IV,color:BR,padding:ro.insertedLinePadding,borderRadius:ro.borderRadious},"del.cm-deletedLine, del, del:not(:has(.cm-deletedText))":{textDecoration:ro.deletedTextDecoration,backgroundColor:`${IV} !important`,color:BR,padding:ro.insertedLinePadding,borderRadius:ro.borderRadious,border:`1px solid ${BR}40`},"del .cm-deletedText, del .cm-changedText":{background:"transparent !important"},".cm-tooltip":{backgroundColor:$p,border:`1px solid ${WEe}40`,borderRadius:Mp.borderRadius,padding:Mp.padding,boxShadow:"0 2px 8px rgba(0, 0, 0, 0.15)"},".cm-tooltip-autocomplete":{"& > ul":{backgroundColor:$p,border:"none",maxHeight:"300px"},"& > ul > li":{padding:Mp.padding,lineHeight:Mp.lineHeight},"& > ul > li[aria-selected]":{backgroundColor:DV,color:bu,borderRadius:Mp.borderRadiusSelected},"& > ul > li > span.cm-completionIcon":{color:ti,paddingRight:Mp.paddingRight},"& > ul > li > span.cm-completionDetail":{color:ti,fontStyle:"italic"}},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:$p,borderBottomColor:$p},".cm-diagnostic":{"&-error":{borderLeft:`3px solid ${Dd}`},"&-warning":{borderLeft:`3px solid ${NV}`},"&-info":{borderLeft:`3px solid ${wJ}`}},".cm-lintPoint-error":{borderBottom:`2px wavy ${Dd}`},".cm-lintPoint-warning":{borderBottom:`2px wavy ${NV}`},".cm-matchingBracket":{backgroundColor:YEe,outline:`1px solid ${KEe}`,borderRadius:MR.borderRadius},".cm-nonmatchingBracket":{backgroundColor:`${SJ}20`,outline:`1px solid ${Dd}`,borderRadius:MR.borderRadius},".cm-selectionMatch":{backgroundColor:HEe,outline:`1px solid ${DR}50`,borderRadius:MR.borderRadius},".cm-foldPlaceholder":{backgroundColor:$p,color:ti,border:`1px dotted ${ti}70`,borderRadius:$R.borderRadius,padding:$R.padding,margin:$R.margin},"&.cm-focused":{outline:"none",boxShadow:`0 0 0 2px ${cy}, 0 0 0 3px ${mr}40`},"& .cm-scroller::-webkit-scrollbar":{width:LR.width,height:LR.height},"& .cm-scroller::-webkit-scrollbar-track":{background:QR},"& .cm-scroller::-webkit-scrollbar-thumb":{backgroundColor:ti,borderRadius:LR.borderRadius,border:`3px solid ${QR}`},"& .cm-scroller::-webkit-scrollbar-thumb:hover":{backgroundColor:DR},".cm-ghostText":{opacity:"0.5",color:ti}},{dark:!1}),tMe=Ci.define([{tag:O.keyword,color:mr,fontWeight:"bold"},{tag:O.controlKeyword,color:mr,fontWeight:"bold"},{tag:O.moduleKeyword,color:mr,fontWeight:"bold"},{tag:[O.name,O.deleted,O.character,O.macroName],color:ly},{tag:[O.variableName],color:bu},{tag:[O.propertyName],color:ly,fontStyle:"normal"},{tag:[O.typeName],color:mr},{tag:[O.className],color:LV,fontStyle:"italic"},{tag:[O.namespace],color:Fy,fontStyle:"italic"},{tag:[O.operator,O.operatorKeyword],color:Fy},{tag:[O.bracket],color:ti},{tag:[O.brace],color:ti},{tag:[O.punctuation],color:ti},{tag:[O.function(O.variableName)],color:mr},{tag:[O.labelName],color:Fy,fontStyle:"italic"},{tag:[O.definition(O.function(O.variableName))],color:mr},{tag:[O.definition(O.variableName)],color:ly},{tag:O.number,color:co},{tag:O.changed,color:co},{tag:O.annotation,color:Dd,fontStyle:"italic"},{tag:O.modifier,color:co,fontStyle:"italic"},{tag:O.self,color:co},{tag:[O.color,O.constant(O.name),O.standard(O.name)],color:co},{tag:[O.atom,O.bool,O.special(O.variableName)],color:co},{tag:[O.processingInstruction,O.inserted],color:NR},{tag:[O.special(O.string),O.regexp],color:GEe},{tag:O.string,color:NR},{tag:O.definition(O.typeName),color:mr,fontWeight:"bold"},{tag:[O.definition(O.name),O.separator],color:ly},{tag:O.meta,color:ti},{tag:O.comment,fontStyle:"italic",color:ti},{tag:O.docComment,fontStyle:"italic",color:ti},{tag:[O.tagName],color:Fy},{tag:[O.attributeName],color:LV},{tag:[O.heading],fontWeight:"bold",color:co},{tag:O.heading1,color:co,fontWeight:"bold"},{tag:O.heading2,color:co},{tag:O.heading3,color:co},{tag:O.heading4,color:mr},{tag:O.heading5,color:mr},{tag:O.heading6,color:mr},{tag:[O.strong],fontWeight:"bold",color:bu},{tag:[O.emphasis],fontStyle:"italic",color:NR},{tag:[O.link],color:JEe,fontWeight:"500",textDecoration:"underline",textUnderlinePosition:"under"},{tag:[O.url],color:wJ,textDecoration:"underline",textUnderlineOffset:"2px"},{tag:[O.invalid],color:bu,textDecoration:"underline wavy",borderBottom:`1px wavy ${Dd}`},{tag:[O.strikethrough],color:Dd,textDecoration:"line-through"},{tag:O.constant(O.name),color:co},{tag:O.deleted,color:Dd},{tag:O.squareBracket,color:ti},{tag:O.angleBracket,color:ti},{tag:O.monospace,color:bu},{tag:[O.contentSeparator],color:ly},{tag:O.quote,color:ti}]),nMe=[eMe,Mr(tMe)],zR={fontSize:"14px",fontFamily:"JetBrains Mono, Consolas, monospace",lineHeight:"1.6"},iMe={borderLeftWidth:"2px"},so={insertedTextDecoration:"none",deletedTextDecoration:"line-through",insertedLinePadding:"1px 3px",borderRadious:"3px"},qh={border:"none",paddingRight:"8px",fontSize:"0.9em",fontWeight:"500",lineHeight:"1.78"},VR={border:"none",borderRadius:"4px",padding:"2px 10px"},rMe={borderRadius:"2px"},qR={borderRadius:"2px"},XR={borderRadius:"4px",padding:"0 5px",margin:"0 2px"},FR={width:"12px",height:"12px",borderRadius:"6px"},Jv={borderRadius:"4px",padding:"2px 6px"},Lp={borderRadius:"4px",borderRadiusSelected:"3px",lineHeight:"1.3",padding:"4px 8px",paddingRight:"8px"},sMe="#24283b",jV="#414868",Fn="#565f89",Ji="#c0caf5",kJ="#282e44",lS="#1f2335",oMe="#f7768e",rd="#ff9e64",BV="#e0af68",zV="#9ece6a",cS="#2ac3de",La="#7aa2f7",sd="#bb9af7",Nd="#f7768e",UR=lS,aMe="#292e427a",uy=sMe,Dp=kJ,VV="#6f7bb630",lMe="#6f7bb650",WR=Ji,cMe="#3d59a150",uMe=La,qV=rd,CJ=cS,hMe=sd,XV="#3b4a3880",FV="#4a393a80",GR="#9ece6a",ZR="#f7768e",dMe=be.theme({"&":{color:Ji,backgroundColor:uy,fontSize:zR.fontSize,fontFamily:zR.fontFamily},".cm-content":{caretColor:WR,lineHeight:zR.lineHeight},".cm-cursor, .cm-dropCursor":{borderLeftColor:WR,borderLeftWidth:iMe.borderLeftWidth},".cm-fat-cursor":{backgroundColor:`${WR}99`,color:uy},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:VV},".cm-selectionLayer":{zIndex:100},".cm-searchMatch":{backgroundColor:"#7aa2f740",outline:`1px solid ${La}`,color:Ji,borderRadius:Jv.borderRadius},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:La,color:uy,padding:Jv.padding,"& span":{color:uy}},".cm-search.cm-panel.cm-textfield":{color:Ji,borderRadius:Jv.borderRadius,padding:Jv.padding},".cm-panels":{backgroundColor:kJ,color:Ji,borderRadius:"4px"},".cm-panels.cm-panels-top":{borderBottom:`1px solid ${Fn}`},".cm-panels.cm-panels-bottom":{borderTop:`1px solid ${Fn}`},".cm-panel button":{backgroundColor:Dp,color:Ji,border:VR.border,borderRadius:VR.borderRadius,padding:VR.padding},".cm-panel button:hover":{backgroundColor:lS},".cm-activeLine":{backgroundColor:aMe,borderRadius:rMe.borderRadius,zIndex:1},".cm-gutters":{backgroundColor:UR,color:Fn,border:qh.border,borderRight:`1px solid ${lS}`,paddingRight:qh.paddingRight},".cm-activeLineGutter":{backgroundColor:lS,color:Ji,fontWeight:qh.fontWeight},".cm-lineNumbers":{fontSize:qh.fontSize,lineHeight:qh.lineHeight},".cm-foldGutter":{fontSize:qh.fontSize,lineHeight:qh.lineHeight},".cm-foldGutter .cm-gutterElement":{color:Fn,cursor:"pointer"},".cm-foldGutter .cm-gutterElement:hover":{color:Ji},".cm-insertedLine":{textDecoration:so.insertedTextDecoration,backgroundColor:XV,color:GR,padding:so.insertedLinePadding,borderRadius:so.borderRadious},"ins.cm-insertedLine, ins.cm-insertedLine:not(:has(.cm-changedText))":{textDecoration:so.insertedTextDecoration,backgroundColor:`${XV} !important`,color:GR,padding:so.insertedLinePadding,borderRadius:so.borderRadious,border:`1px solid ${GR}40`},"ins.cm-insertedLine .cm-changedText":{background:"transparent !important"},".cm-deletedLine":{textDecoration:so.deletedTextDecoration,backgroundColor:FV,color:ZR,padding:so.insertedLinePadding,borderRadius:so.borderRadious},"del.cm-deletedLine, del, del:not(:has(.cm-deletedText))":{textDecoration:so.deletedTextDecoration,backgroundColor:`${FV} !important`,color:ZR,padding:so.insertedLinePadding,borderRadius:so.borderRadious,border:`1px solid ${ZR}40`},"del .cm-deletedText, del .cm-changedText":{background:"transparent !important"},".cm-tooltip":{backgroundColor:Dp,border:`1px solid ${Fn}`,borderRadius:Lp.borderRadius,padding:Lp.padding,boxShadow:"0 2px 8px rgba(0, 0, 0, 0.3)"},".cm-tooltip-autocomplete":{"& > ul":{backgroundColor:Dp,border:"none"},"& > ul > li":{padding:Lp.padding,lineHeight:Lp.lineHeight},"& > ul > li[aria-selected]":{backgroundColor:VV,color:Ji,borderRadius:Lp.borderRadiusSelected},"& > ul > li > span.cm-completionIcon":{color:Fn,paddingRight:Lp.paddingRight},"& > ul > li > span.cm-completionDetail":{color:Fn,fontStyle:"italic"}},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:Dp,borderBottomColor:Dp},".cm-diagnostic":{"&-error":{borderLeft:`3px solid ${Nd}`},"&-warning":{borderLeft:`3px solid ${qV}`},"&-info":{borderLeft:`3px solid ${CJ}`}},".cm-lintPoint-error":{borderBottom:`2px wavy ${Nd}`},".cm-lintPoint-warning":{borderBottom:`2px wavy ${qV}`},".cm-matchingBracket":{backgroundColor:cMe,outline:`1px solid ${uMe}`,borderRadius:qR.borderRadius},".cm-nonmatchingBracket":{backgroundColor:`${oMe}20`,outline:`1px solid ${Nd}`,borderRadius:qR.borderRadius},".cm-selectionMatch":{backgroundColor:lMe,outline:`1px solid ${jV}50`,borderRadius:qR.borderRadius},".cm-foldPlaceholder":{backgroundColor:Dp,color:Fn,border:`1px dotted ${Fn}70`,borderRadius:XR.borderRadius,padding:XR.padding,margin:XR.margin},"&.cm-focused":{outline:"none",boxShadow:`0 0 0 2px ${uy}, 0 0 0 3px ${La}40`},"& .cm-scroller::-webkit-scrollbar":{width:FR.width,height:FR.height},"& .cm-scroller::-webkit-scrollbar-track":{background:UR},"& .cm-scroller::-webkit-scrollbar-thumb":{backgroundColor:jV,borderRadius:FR.borderRadius,border:`3px solid ${UR}`},"& .cm-scroller::-webkit-scrollbar-thumb:hover":{backgroundColor:Fn},".cm-ghostText":{opacity:"0.5",color:Fn}},{dark:!0}),fMe=Ci.define([{tag:O.keyword,color:sd,fontWeight:"bold"},{tag:O.controlKeyword,color:sd,fontWeight:"bold"},{tag:O.moduleKeyword,color:sd,fontWeight:"bold"},{tag:[O.name,O.deleted,O.character,O.macroName],color:Ji},{tag:[O.variableName],color:Ji},{tag:[O.propertyName],color:La,fontStyle:"normal"},{tag:[O.typeName],color:cS},{tag:[O.className],color:BV,fontStyle:"italic"},{tag:[O.namespace],color:La,fontStyle:"italic"},{tag:[O.operator,O.operatorKeyword],color:sd},{tag:[O.bracket],color:Fn},{tag:[O.brace],color:Fn},{tag:[O.punctuation],color:Fn},{tag:[O.function(O.variableName)],color:La},{tag:[O.labelName],color:La,fontStyle:"italic"},{tag:[O.definition(O.function(O.variableName))],color:La},{tag:[O.definition(O.variableName)],color:Ji},{tag:O.number,color:rd},{tag:O.changed,color:rd},{tag:O.annotation,color:Nd,fontStyle:"italic"},{tag:O.modifier,color:rd,fontStyle:"italic"},{tag:O.self,color:rd},{tag:[O.color,O.constant(O.name),O.standard(O.name)],color:sd},{tag:[O.atom,O.bool,O.special(O.variableName)],color:rd},{tag:[O.processingInstruction,O.inserted],color:zV},{tag:[O.special(O.string),O.regexp],color:"#b4f9f8"},{tag:O.string,color:zV},{tag:O.definition(O.typeName),color:cS,fontWeight:"bold"},{tag:[O.definition(O.name),O.separator],color:Ji},{tag:O.meta,color:Fn},{tag:O.comment,fontStyle:"italic",color:Fn},{tag:O.docComment,fontStyle:"italic",color:Fn},{tag:[O.tagName],color:sd},{tag:[O.attributeName],color:BV},{tag:[O.heading],fontWeight:"bold",color:"#89ddff"},{tag:O.heading1,color:"#89ddff",fontWeight:"bold"},{tag:O.heading2,color:"#89ddff"},{tag:O.heading3,color:"#89ddff"},{tag:O.heading4,color:"#89ddff"},{tag:O.heading5,color:"#89ddff"},{tag:O.heading6,color:"#89ddff"},{tag:[O.strong],fontWeight:"bold",color:Ji},{tag:[O.emphasis],fontStyle:"italic",color:cS},{tag:[O.link],color:hMe,fontWeight:"500",textDecoration:"underline",textUnderlinePosition:"under"},{tag:[O.url],color:CJ,textDecoration:"underline",textUnderlineOffset:"2px"},{tag:[O.invalid],color:Ji,textDecoration:"underline wavy",borderBottom:`1px wavy ${Nd}`},{tag:[O.strikethrough],color:Nd,textDecoration:"line-through"},{tag:O.constant(O.name),color:rd},{tag:O.deleted,color:Nd},{tag:O.squareBracket,color:Fn},{tag:O.angleBracket,color:Fn},{tag:O.monospace,color:Ji},{tag:[O.contentSeparator],color:La},{tag:O.quote,color:Fn}]),pMe=[dMe,Mr(fMe)],HR={fontSize:"14px",fontFamily:"JetBrains Mono, Consolas, monospace",lineHeight:"1.6"},mMe={borderLeftWidth:"2px"},oo={insertedTextDecoration:"none",deletedTextDecoration:"line-through",insertedLinePadding:"1px 3px",borderRadious:"3px"},Np={paddingRight:"8px",fontSize:"0.9em",fontWeight:"500",lineHeight:"1.78"},UV={borderRadius:"4px",padding:"2px 10px"},gMe={borderRadius:"2px"},YR={borderRadius:"2px"},KR={borderRadius:"4px",padding:"0 5px",margin:"0 2px"},JR={width:"12px",height:"12px",borderRadius:"6px"},e1={borderRadius:"4px",padding:"2px 6px"},Qp={borderRadius:"4px",borderRadiusSelected:"3px",lineHeight:"1.3",padding:"4px 8px",paddingRight:"8px"},bMe="#1e1e1e",TJ="#252526",Hc="#2d2d30",Al="#838383",yMe="#c6c6c6",Hi="#d4d4d4",Ip="#e9e9e9",xMe="#1c1c1c",Zi="#569cd6",OMe="#c586c0",jp="#9cdcfe",t1="#4ec9b0",eE="#dcdcaa",_Me="#b5cea8",WV="#ce9178",PJ="#f44747",dL="#d7ba7d",tE="#6a9955",$m=PJ,GV="#FFFFFF08",n1=bMe,hy=TJ,vMe="#264F7899",SMe="#72a1ff59",nE=yMe,wMe="#ffffff15",kMe=Zi,ZV=dL,AJ="#3794ff",CMe="#c586c0",HV="#1e3f1e80",YV="#4b1c1c80",iE="#6cc26f",rE="#f14c4c",TMe=be.theme({"&":{color:Hi,backgroundColor:n1,fontSize:HR.fontSize,fontFamily:HR.fontFamily},".cm-content":{caretColor:nE,lineHeight:HR.lineHeight},".cm-cursor, .cm-dropCursor":{borderLeftColor:nE,borderLeftWidth:mMe.borderLeftWidth},".cm-fat-cursor":{backgroundColor:`${nE}99`,color:n1},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:vMe},".cm-selectionLayer":{zIndex:100},".cm-searchMatch":{backgroundColor:"#72a1ff40",outline:`1px solid ${Zi}90`,color:Ip,borderRadius:e1.borderRadius},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#3794ff90",color:Ip,padding:e1.padding,"& span":{color:Ip}},".cm-search.cm-panel.cm-textfield":{color:Hi,borderRadius:e1.borderRadius,padding:e1.padding},".cm-panels":{backgroundColor:TJ,color:Hi,borderRadius:"3px",boxShadow:"0 2px 6px rgba(0, 0, 0, 0.45)"},".cm-panels.cm-panels-top":{borderBottom:`1px solid ${Hc}`},".cm-panels.cm-panels-bottom":{borderTop:`1px solid ${Hc}`},".cm-panel button":{backgroundColor:Hc,color:Hi,border:`1px solid ${Hc}`,borderRadius:UV.borderRadius,padding:UV.padding},".cm-panel button:hover":{backgroundColor:"#3a3a3a",border:`1px solid ${Al}80`},".cm-activeLine":{backgroundColor:GV,borderRadius:gMe.borderRadius,zIndex:1},".cm-gutters":{backgroundColor:xMe,color:Al,border:"none",borderRight:`1px solid ${Hc}`,paddingRight:Np.paddingRight},".cm-activeLineGutter":{backgroundColor:GV,color:Ip,fontWeight:Np.fontWeight},".cm-lineNumbers":{fontSize:Np.fontSize,lineHeight:Np.lineHeight},".cm-foldGutter":{fontSize:Np.fontSize,lineHeight:Np.lineHeight},".cm-foldGutter .cm-gutterElement":{color:Al,cursor:"pointer"},".cm-foldGutter .cm-gutterElement:hover":{color:Ip},".cm-insertedLine":{textDecoration:oo.insertedTextDecoration,backgroundColor:HV,color:iE,padding:oo.insertedLinePadding,borderRadius:oo.borderRadious},"ins.cm-insertedLine, ins.cm-insertedLine:not(:has(.cm-changedText))":{textDecoration:oo.insertedTextDecoration,backgroundColor:`${HV} !important`,color:iE,padding:oo.insertedLinePadding,borderRadius:oo.borderRadious,border:`1px solid ${iE}40`},"ins.cm-insertedLine .cm-changedText":{background:"transparent !important"},".cm-deletedLine":{textDecoration:oo.deletedTextDecoration,backgroundColor:YV,color:rE,padding:oo.insertedLinePadding,borderRadius:oo.borderRadious},"del.cm-deletedLine, del, del:not(:has(.cm-deletedText))":{textDecoration:oo.deletedTextDecoration,backgroundColor:`${YV} !important`,color:rE,padding:oo.insertedLinePadding,borderRadius:oo.borderRadious,border:`1px solid ${rE}40`},"del .cm-deletedText, del .cm-changedText":{background:"transparent !important"},".cm-tooltip":{backgroundColor:hy,border:`1px solid ${Hc}`,borderRadius:Qp.borderRadius,padding:Qp.padding,boxShadow:"0 3px 8px rgba(0, 0, 0, 0.3)"},".cm-tooltip-autocomplete":{"& > ul":{backgroundColor:hy,border:"none",maxHeight:"300px"},"& > ul > li":{padding:Qp.padding,lineHeight:Qp.lineHeight},"& > ul > li[aria-selected]":{backgroundColor:"#04395e",color:Ip,borderRadius:Qp.borderRadiusSelected},"& > ul > li > span.cm-completionIcon":{color:Al,paddingRight:Qp.paddingRight},"& > ul > li > span.cm-completionDetail":{color:Al,fontStyle:"italic"}},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:hy,borderBottomColor:hy},".cm-diagnostic":{"&-error":{borderLeft:`3px solid ${$m}`},"&-warning":{borderLeft:`3px solid ${ZV}`},"&-info":{borderLeft:`3px solid ${AJ}`}},".cm-lintPoint-error":{borderBottom:`2px wavy ${$m}`},".cm-lintPoint-warning":{borderBottom:`2px wavy ${ZV}`},".cm-matchingBracket":{backgroundColor:wMe,outline:`1px solid ${kMe}80`,borderRadius:YR.borderRadius},".cm-nonmatchingBracket":{backgroundColor:`${PJ}40`,outline:`1px solid ${$m}`,borderRadius:YR.borderRadius},".cm-selectionMatch":{backgroundColor:SMe,outline:`1px solid ${Hc}70`,borderRadius:YR.borderRadius},".cm-foldPlaceholder":{backgroundColor:hy,color:Al,border:`1px dotted ${Al}70`,borderRadius:KR.borderRadius,padding:KR.padding,margin:KR.margin},"&.cm-focused":{outline:"none",boxShadow:`0 0 0 1px ${Hc}`},"& .cm-scroller::-webkit-scrollbar":{width:JR.width,height:JR.height},"& .cm-scroller::-webkit-scrollbar-track":{background:n1},"& .cm-scroller::-webkit-scrollbar-thumb":{backgroundColor:"#424242",borderRadius:JR.borderRadius,border:`3px solid ${n1}`},"& .cm-scroller::-webkit-scrollbar-thumb:hover":{backgroundColor:"#525252"},".cm-ghostText":{opacity:"0.5",color:Al}},{dark:!0}),PMe=Ci.define([{tag:O.keyword,color:Zi,fontWeight:"bold"},{tag:O.controlKeyword,color:OMe,fontWeight:"bold"},{tag:O.moduleKeyword,color:Zi,fontWeight:"bold"},{tag:[O.name,O.deleted,O.character,O.macroName],color:Hi},{tag:[O.variableName],color:jp},{tag:[O.propertyName],color:jp,fontStyle:"normal"},{tag:[O.typeName],color:t1},{tag:[O.className],color:t1,fontStyle:"normal"},{tag:[O.namespace],color:Hi,fontStyle:"normal"},{tag:[O.operator,O.operatorKeyword],color:Hi},{tag:[O.bracket],color:Hi},{tag:[O.brace],color:Hi},{tag:[O.punctuation],color:Hi},{tag:[O.function(O.variableName)],color:eE},{tag:[O.labelName],color:eE,fontStyle:"normal"},{tag:[O.definition(O.function(O.variableName))],color:eE},{tag:[O.definition(O.variableName)],color:jp},{tag:O.number,color:_Me},{tag:O.changed,color:dL},{tag:O.annotation,color:dL,fontStyle:"italic"},{tag:O.modifier,color:Zi,fontStyle:"normal"},{tag:O.self,color:Zi},{tag:[O.color,O.constant(O.name),O.standard(O.name)],color:jp},{tag:[O.atom,O.bool,O.special(O.variableName)],color:Zi},{tag:[O.processingInstruction,O.inserted],color:WV},{tag:[O.special(O.string),O.regexp],color:"#d16969"},{tag:O.string,color:WV},{tag:O.definition(O.typeName),color:t1,fontWeight:"bold"},{tag:[O.definition(O.name),O.separator],color:Hi},{tag:O.meta,color:Al},{tag:O.comment,fontStyle:"italic",color:tE},{tag:O.docComment,fontStyle:"italic",color:tE},{tag:[O.tagName],color:Zi},{tag:[O.attributeName],color:jp},{tag:[O.heading],fontWeight:"bold",color:Zi},{tag:O.heading1,color:Zi,fontWeight:"bold"},{tag:O.heading2,color:Zi},{tag:O.heading3,color:Zi},{tag:O.heading4,color:Zi},{tag:O.heading5,color:Zi},{tag:O.heading6,color:Zi},{tag:[O.strong],fontWeight:"bold",color:Zi},{tag:[O.emphasis],fontStyle:"italic",color:t1},{tag:[O.link],color:CMe,textDecoration:"underline",textUnderlinePosition:"under"},{tag:[O.url],color:AJ,textDecoration:"underline",textUnderlineOffset:"2px"},{tag:[O.invalid],color:Hi,textDecoration:"underline wavy",borderBottom:`1px wavy ${$m}`},{tag:[O.strikethrough],color:$m,textDecoration:"line-through"},{tag:O.constant(O.name),color:jp},{tag:O.deleted,color:$m},{tag:O.squareBracket,color:Hi},{tag:O.angleBracket,color:Hi},{tag:O.monospace,color:Hi},{tag:[O.contentSeparator],color:Hi},{tag:O.quote,color:tE}]),AMe=[TMe,Mr(PMe)],sE={fontSize:"14px",fontFamily:"JetBrains Mono, Consolas, monospace",lineHeight:"1.6"},RMe={borderLeftWidth:"2px"},ao={insertedTextDecoration:"none",deletedTextDecoration:"line-through",insertedLinePadding:"1px 3px",borderRadious:"3px"},Bp={paddingRight:"8px",fontSize:"0.9em",fontWeight:"500",lineHeight:"1.78"},KV={borderRadius:"4px",padding:"2px 10px"},EMe={borderRadius:"2px"},oE={borderRadius:"2px"},aE={borderRadius:"4px",padding:"0 5px",margin:"0 2px"},lE={width:"12px",height:"12px",borderRadius:"6px"},i1={borderRadius:"4px",padding:"2px 6px"},zp={borderRadius:"4px",borderRadiusSelected:"3px",lineHeight:"1.3",padding:"4px 8px",paddingRight:"8px"},MMe="#ffffff",RJ="#f3f3f3",Xh="#d6d6d6",od="#6b6b6b",$Me="#000000",Yi="#383a42",r1="#1f1f1f",LMe="#f5f5f5",Vr="#0064ff",JV="#af00db",su="#0070c1",cE="#267f99",uE="#795e26",DMe="#098658",e9="#a31515",EJ="#e51400",t9="#795e26",hE="#008000",Lm=EJ,n9="#99999926",dy=MMe,fy=RJ,NMe="#add6ff",QMe="#a8ac9480",dE=$Me,IMe="#007acc20",jMe="#007acc",i9="#bf8803",MJ="#006ab1",BMe="#9e46d0",r9="#ddfbe0",s9="#ffebec",fE="#22863a",pE="#e51400",zMe=be.theme({"&":{color:Yi,backgroundColor:dy,fontSize:sE.fontSize,fontFamily:sE.fontFamily},".cm-content":{caretColor:dE,lineHeight:sE.lineHeight},".cm-cursor, .cm-dropCursor":{borderLeftColor:dE,borderLeftWidth:RMe.borderLeftWidth},".cm-fat-cursor":{backgroundColor:`${dE}99`,color:dy},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:NMe},".cm-selectionLayer":{zIndex:100},".cm-searchMatch":{backgroundColor:"#bbdefb",outline:`1px solid ${su}90`,color:r1,borderRadius:i1.borderRadius},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#90caf9",color:r1,padding:i1.padding,"& span":{color:r1}},".cm-search.cm-panel.cm-textfield":{color:Yi,borderRadius:i1.borderRadius,padding:i1.padding},".cm-panels":{backgroundColor:RJ,color:Yi,borderRadius:"3px",boxShadow:"0 2px 6px rgba(0, 0, 0, 0.15)"},".cm-panels.cm-panels-top":{borderBottom:`1px solid ${Xh}`},".cm-panels.cm-panels-bottom":{borderTop:`1px solid ${Xh}`},".cm-panel button":{backgroundColor:dy,color:Yi,border:`1px solid ${Xh}`,borderRadius:KV.borderRadius,padding:KV.padding},".cm-panel button:hover":{backgroundColor:"#e8e8e8",border:`1px solid ${od}80`},".cm-activeLine":{backgroundColor:n9,borderRadius:EMe.borderRadius,zIndex:1},".cm-gutters":{backgroundColor:LMe,color:"#237893",border:"none",borderRight:`1px solid ${Xh}`,paddingRight:Bp.paddingRight},".cm-activeLineGutter":{backgroundColor:n9,color:"#0b216f",fontWeight:Bp.fontWeight},".cm-lineNumbers":{fontSize:Bp.fontSize,lineHeight:Bp.lineHeight},".cm-foldGutter":{fontSize:Bp.fontSize,lineHeight:Bp.lineHeight},".cm-foldGutter .cm-gutterElement":{color:"#237893",cursor:"pointer"},".cm-foldGutter .cm-gutterElement:hover":{color:"#0b216f"},".cm-insertedLine":{textDecoration:ao.insertedTextDecoration,backgroundColor:r9,color:fE,padding:ao.insertedLinePadding,borderRadius:ao.borderRadious},"ins.cm-insertedLine, ins.cm-insertedLine:not(:has(.cm-changedText))":{textDecoration:ao.insertedTextDecoration,backgroundColor:`${r9} !important`,color:fE,padding:ao.insertedLinePadding,borderRadius:ao.borderRadious,border:`1px solid ${fE}40`},"ins.cm-insertedLine .cm-changedText":{background:"transparent !important"},".cm-deletedLine":{textDecoration:ao.deletedTextDecoration,backgroundColor:s9,color:pE,padding:ao.insertedLinePadding,borderRadius:ao.borderRadious},"del.cm-deletedLine, del, del:not(:has(.cm-deletedText))":{textDecoration:ao.deletedTextDecoration,backgroundColor:`${s9} !important`,color:pE,padding:ao.insertedLinePadding,borderRadius:ao.borderRadious,border:`1px solid ${pE}40`},"del .cm-deletedText, del .cm-changedText":{background:"transparent !important"},".cm-tooltip":{backgroundColor:fy,border:`1px solid ${Xh}`,borderRadius:zp.borderRadius,padding:zp.padding,boxShadow:"0 2px 8px rgba(0, 0, 0, 0.15)"},".cm-tooltip-autocomplete":{"& > ul":{backgroundColor:fy,border:"none",maxHeight:"300px"},"& > ul > li":{padding:zp.padding,lineHeight:zp.lineHeight},"& > ul > li[aria-selected]":{backgroundColor:"#dcebfc",color:r1,borderRadius:zp.borderRadiusSelected},"& > ul > li > span.cm-completionIcon":{color:od,paddingRight:zp.paddingRight},"& > ul > li > span.cm-completionDetail":{color:od,fontStyle:"italic"}},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:fy,borderBottomColor:fy},".cm-diagnostic":{"&-error":{borderLeft:`3px solid ${Lm}`},"&-warning":{borderLeft:`3px solid ${i9}`},"&-info":{borderLeft:`3px solid ${MJ}`}},".cm-lintPoint-error":{borderBottom:`2px wavy ${Lm}`},".cm-lintPoint-warning":{borderBottom:`2px wavy ${i9}`},".cm-matchingBracket":{backgroundColor:IMe,outline:`1px solid ${jMe}80`,borderRadius:oE.borderRadius},".cm-nonmatchingBracket":{backgroundColor:`${EJ}20`,outline:`1px solid ${Lm}`,borderRadius:oE.borderRadius},".cm-selectionMatch":{backgroundColor:QMe,outline:`1px solid ${Xh}70`,borderRadius:oE.borderRadius},".cm-foldPlaceholder":{backgroundColor:fy,color:od,border:`1px dotted ${od}70`,borderRadius:aE.borderRadius,padding:aE.padding,margin:aE.margin},"&.cm-focused":{outline:"none",boxShadow:`0 0 0 1px ${Xh}`},"& .cm-scroller::-webkit-scrollbar":{width:lE.width,height:lE.height},"& .cm-scroller::-webkit-scrollbar-track":{background:dy},"& .cm-scroller::-webkit-scrollbar-thumb":{backgroundColor:"#dadada",borderRadius:lE.borderRadius,border:`3px solid ${dy}`},"& .cm-scroller::-webkit-scrollbar-thumb:hover":{backgroundColor:"#cccccc"},".cm-ghostText":{opacity:"0.5",color:od}},{dark:!1}),VMe=Ci.define([{tag:O.keyword,color:Vr,fontWeight:"bold"},{tag:O.controlKeyword,color:JV,fontWeight:"bold"},{tag:O.moduleKeyword,color:Vr,fontWeight:"bold"},{tag:[O.name,O.deleted,O.character,O.macroName],color:Yi},{tag:[O.variableName],color:su},{tag:[O.propertyName],color:su,fontStyle:"normal"},{tag:[O.typeName],color:cE},{tag:[O.className],color:cE,fontStyle:"normal"},{tag:[O.namespace],color:Yi,fontStyle:"normal"},{tag:[O.operator,O.operatorKeyword],color:Yi},{tag:[O.bracket],color:Yi},{tag:[O.brace],color:Yi},{tag:[O.punctuation],color:Yi},{tag:[O.function(O.variableName)],color:uE},{tag:[O.labelName],color:uE,fontStyle:"normal"},{tag:[O.definition(O.function(O.variableName))],color:uE},{tag:[O.definition(O.variableName)],color:su},{tag:O.number,color:DMe},{tag:O.changed,color:t9},{tag:O.annotation,color:t9,fontStyle:"italic"},{tag:O.modifier,color:Vr,fontStyle:"normal"},{tag:O.self,color:Vr},{tag:[O.color,O.constant(O.name),O.standard(O.name)],color:su},{tag:[O.atom,O.bool,O.special(O.variableName)],color:Vr},{tag:[O.processingInstruction,O.inserted],color:e9},{tag:[O.special(O.string),O.regexp],color:JV},{tag:O.string,color:e9},{tag:O.definition(O.typeName),color:cE,fontWeight:"bold"},{tag:[O.definition(O.name),O.separator],color:Yi},{tag:O.meta,color:od},{tag:O.comment,fontStyle:"italic",color:hE},{tag:O.docComment,fontStyle:"italic",color:hE},{tag:[O.tagName],color:Vr},{tag:[O.attributeName],color:su},{tag:[O.heading],fontWeight:"bold",color:Vr},{tag:O.heading1,color:Vr,fontWeight:"bold"},{tag:O.heading2,color:Vr},{tag:O.heading3,color:Vr},{tag:O.heading4,color:Vr},{tag:O.heading5,color:Vr},{tag:O.heading6,color:Vr},{tag:[O.strong],fontWeight:"bold",color:Vr},{tag:[O.emphasis],fontStyle:"italic",color:su},{tag:[O.link],color:BMe,textDecoration:"underline",textUnderlinePosition:"under"},{tag:[O.url],color:MJ,textDecoration:"underline",textUnderlineOffset:"2px"},{tag:[O.invalid],color:Yi,textDecoration:"underline wavy",borderBottom:`1px wavy ${Lm}`},{tag:[O.strikethrough],color:Lm,textDecoration:"line-through"},{tag:O.constant(O.name),color:su},{tag:O.deleted,color:Lm},{tag:O.squareBracket,color:Yi},{tag:O.angleBracket,color:Yi},{tag:O.monospace,color:Yi},{tag:[O.contentSeparator],color:Yi},{tag:O.quote,color:hE}]),qMe=[zMe,Mr(VMe)];function fL(){return fL=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},fL.apply(null,arguments)}function XMe(t,e){if(t==null)return{};var n={};for(var i in t)if({}.hasOwnProperty.call(t,i)){if(e.indexOf(i)!==-1)continue;n[i]=t[i]}return n}const o9=typeof String.prototype.normalize=="function"?t=>t.normalize("NFKD"):t=>t;class tg{constructor(e,n,i=0,r=e.length,s,o){this.test=o,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(i,r),this.bufferStart=i,this.normalize=s?a=>s(o9(a)):o9,this.query=this.normalize(n)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return Hr(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let n=kN(e),i=this.bufferStart+this.bufferPos;this.bufferPos+=Na(e);let r=this.normalize(n);if(r.length)for(let s=0,o=i;;s++){let a=r.charCodeAt(s),l=this.match(a,o,this.bufferPos+this.bufferStart);if(s==r.length-1){if(l)return this.value=l,this;break}o==i&&s<n.length&&n.charCodeAt(s)==a&&o++}}}match(e,n,i){let r=null;for(let s=0;s<this.matches.length;s+=2){let o=this.matches[s],a=!1;this.query.charCodeAt(o)==e&&(o==this.query.length-1?r={from:this.matches[s+1],to:i}:(this.matches[s]++,a=!0)),a||(this.matches.splice(s,2),s-=2)}return this.query.charCodeAt(0)==e&&(this.query.length==1?r={from:n,to:i}:this.matches.push(1,n)),r&&this.test&&!this.test(r.from,r.to,this.buffer,this.bufferStart)&&(r=null),r}}typeof Symbol<"u"&&(tg.prototype[Symbol.iterator]=function(){return this});const $J={from:-1,to:-1,match:/.*/.exec("")},S5="gm"+(/x/.unicode==null?"":"u");class LJ{constructor(e,n,i,r=0,s=e.length){if(this.text=e,this.to=s,this.curLine="",this.done=!1,this.value=$J,/\\[sWDnr]|\n|\r|\[\^/.test(n))return new DJ(e,n,i,r,s);this.re=new RegExp(n,S5+(i?.ignoreCase?"i":"")),this.test=i?.test,this.iter=e.iter();let o=e.lineAt(r);this.curLineStart=o.from,this.matchPos=Sw(e,r),this.getLine(this.curLineStart)}getLine(e){this.iter.next(e),this.iter.lineBreak?this.curLine="":(this.curLine=this.iter.value,this.curLineStart+this.curLine.length>this.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let n=this.matchPos<=this.to&&this.re.exec(this.curLine);if(n){let i=this.curLineStart+n.index,r=i+n[0].length;if(this.matchPos=Sw(this.text,r+(i==r?1:0)),i==this.curLineStart+this.curLine.length&&this.nextLine(),(i<r||i>this.value.to)&&(!this.test||this.test(i,r,n)))return this.value={from:i,to:r,match:n},this;e=this.matchPos-this.curLineStart}else if(this.curLineStart+this.curLine.length<this.to)this.nextLine(),e=0;else return this.done=!0,this}}}const mE=new WeakMap;class Dm{constructor(e,n){this.from=e,this.text=n}get to(){return this.from+this.text.length}static get(e,n,i){let r=mE.get(e);if(!r||r.from>=i||r.to<=n){let a=new Dm(n,e.sliceString(n,i));return mE.set(e,a),a}if(r.from==n&&r.to==i)return r;let{text:s,from:o}=r;return o>n&&(s=e.sliceString(n,o)+s,o=n),r.to<i&&(s+=e.sliceString(r.to,i)),mE.set(e,new Dm(o,s)),new Dm(n,s.slice(n-o,i-o))}}class DJ{constructor(e,n,i,r,s){this.text=e,this.to=s,this.done=!1,this.value=$J,this.matchPos=Sw(e,r),this.re=new RegExp(n,S5+(i?.ignoreCase?"i":"")),this.test=i?.test,this.flat=Dm.get(e,r,this.chunkEnd(r+5e3))}chunkEnd(e){return e>=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,n=this.re.exec(this.flat.text);if(n&&!n[0]&&n.index==e&&(this.re.lastIndex=e+1,n=this.re.exec(this.flat.text)),n){let i=this.flat.from+n.index,r=i+n[0].length;if((this.flat.to>=this.to||n.index+n[0].length<=this.flat.text.length-10)&&(!this.test||this.test(i,r,n)))return this.value={from:i,to:r,match:n},this.matchPos=Sw(this.text,r+(i==r?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=Dm.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}}typeof Symbol<"u"&&(LJ.prototype[Symbol.iterator]=DJ.prototype[Symbol.iterator]=function(){return this});function FMe(t){try{return new RegExp(t,S5),!0}catch{return!1}}function Sw(t,e){if(e>=t.length)return e;let n=t.lineAt(e),i;for(;e<n.to&&(i=n.text.charCodeAt(e-n.from))>=56320&&i<57344;)e++;return e}function pL(t){let e=String(t.state.doc.lineAt(t.state.selection.main.head).number),n=Wt("input",{class:"cm-textfield",name:"line",value:e}),i=Wt("form",{class:"cm-gotoLine",onkeydown:s=>{s.keyCode==27?(s.preventDefault(),t.dispatch({effects:S0.of(!1)}),t.focus()):s.keyCode==13&&(s.preventDefault(),r())},onsubmit:s=>{s.preventDefault(),r()}},Wt("label",t.state.phrase("Go to line"),": ",n)," ",Wt("button",{class:"cm-button",type:"submit"},t.state.phrase("go")),Wt("button",{name:"close",onclick:()=>{t.dispatch({effects:S0.of(!1)}),t.focus()},"aria-label":t.state.phrase("close"),type:"button"},["×"]));function r(){let s=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(n.value);if(!s)return;let{state:o}=t,a=o.doc.lineAt(o.selection.main.head),[,l,u,d,f]=s,m=d?+d.slice(1):0,g=u?+u:a.number;if(u&&f){let v=g/100;l&&(v=v*(l=="-"?-1:1)+a.number/o.doc.lines),g=Math.round(o.doc.lines*v)}else u&&l&&(g=g*(l=="-"?-1:1)+a.number);let y=o.doc.line(Math.max(1,Math.min(o.doc.lines,g))),_=ue.cursor(y.from+Math.max(0,Math.min(m,y.length)));t.dispatch({effects:[S0.of(!1),be.scrollIntoView(_.from,{y:"center"})],selection:_}),t.focus()}return{dom:i}}const S0=Ze.define(),a9=ki.define({create(){return!0},update(t,e){for(let n of e.effects)n.is(S0)&&(t=n.value);return t},provide:t=>lx.from(t,e=>e?pL:null)}),UMe=t=>{let e=ax(t,pL);if(!e){let n=[S0.of(!0)];t.state.field(a9,!1)==null&&n.push(Ze.appendConfig.of([a9,WMe])),t.dispatch({effects:n}),e=ax(t,pL)}return e&&e.dom.querySelector("input").select(),!0},WMe=be.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px",position:"relative","& label":{fontSize:"80%"},"& [name=close]":{position:"absolute",top:"0",bottom:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:"0"}}}),GMe={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},ZMe=Pe.define({combine(t){return tl(t,GMe,{highlightWordAroundCursor:(e,n)=>e||n,minSelectionLength:Math.min,maxMatches:Math.min})}});function HMe(t){return[t$e,e$e]}const YMe=Te.mark({class:"cm-selectionMatch"}),KMe=Te.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function l9(t,e,n,i){return(n==0||t(e.sliceDoc(n-1,n))!=hn.Word)&&(i==e.doc.length||t(e.sliceDoc(i,i+1))!=hn.Word)}function JMe(t,e,n,i){return t(e.sliceDoc(n,n+1))==hn.Word&&t(e.sliceDoc(i-1,i))==hn.Word}const e$e=Cn.fromClass(class{constructor(t){this.decorations=this.getDeco(t)}update(t){(t.selectionSet||t.docChanged||t.viewportChanged)&&(this.decorations=this.getDeco(t.view))}getDeco(t){let e=t.state.facet(ZMe),{state:n}=t,i=n.selection;if(i.ranges.length>1)return Te.none;let r=i.main,s,o=null;if(r.empty){if(!e.highlightWordAroundCursor)return Te.none;let l=n.wordAt(r.head);if(!l)return Te.none;o=n.charCategorizer(r.head),s=n.sliceDoc(l.from,l.to)}else{let l=r.to-r.from;if(l<e.minSelectionLength||l>200)return Te.none;if(e.wholeWords){if(s=n.sliceDoc(r.from,r.to),o=n.charCategorizer(r.head),!(l9(o,n,r.from,r.to)&&JMe(o,n,r.from,r.to)))return Te.none}else if(s=n.sliceDoc(r.from,r.to),!s)return Te.none}let a=[];for(let l of t.visibleRanges){let u=new tg(n.doc,s,l.from,l.to);for(;!u.next().done;){let{from:d,to:f}=u.value;if((!o||l9(o,n,d,f))&&(r.empty&&d<=r.from&&f>=r.to?a.push(KMe.range(d,f)):(d>=r.to||f<=r.from)&&a.push(YMe.range(d,f)),a.length>e.maxMatches))return Te.none}}return Te.set(a)}},{decorations:t=>t.decorations}),t$e=be.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),n$e=({state:t,dispatch:e})=>{let{selection:n}=t,i=ue.create(n.ranges.map(r=>t.wordAt(r.head)||ue.cursor(r.head)),n.mainIndex);return i.eq(n)?!1:(e(t.update({selection:i})),!0)};function i$e(t,e){let{main:n,ranges:i}=t.selection,r=t.wordAt(n.head),s=r&&r.from==n.from&&r.to==n.to;for(let o=!1,a=new tg(t.doc,e,i[i.length-1].to);;)if(a.next(),a.done){if(o)return null;a=new tg(t.doc,e,0,Math.max(0,i[i.length-1].from-1)),o=!0}else{if(o&&i.some(l=>l.from==a.value.from))continue;if(s){let l=t.wordAt(a.value.from);if(!l||l.from!=a.value.from||l.to!=a.value.to)continue}return a.value}}const r$e=({state:t,dispatch:e})=>{let{ranges:n}=t.selection;if(n.some(s=>s.from===s.to))return n$e({state:t,dispatch:e});let i=t.sliceDoc(n[0].from,n[0].to);if(t.selection.ranges.some(s=>t.sliceDoc(s.from,s.to)!=i))return!1;let r=i$e(t,i);return r?(e(t.update({selection:t.selection.addRange(ue.range(r.from,r.to),!1),effects:be.scrollIntoView(r.to)})),!0):!1},Tg=Pe.define({combine(t){return tl(t,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:e=>new g$e(e),scrollToMatch:e=>be.scrollIntoView(e)})}});class NJ{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||"",this.valid=!!this.search&&(!this.regexp||FMe(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!e.wholeWord}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,(n,i)=>i=="n"?`
|
|
379
|
+
`;)s--;this.fragmentEnd=s?s-1:0}let i=this.cursor;i||(i=this.cursor=this.fragment.tree.cursor(),i.firstChild());let r=e+this.fragment.offset;for(;i.to<=r;)if(!i.parent())return!1;for(;;){if(i.from>=r)return this.fragment.from<=n;if(!i.childAfter(r))return!1}}matches(e){let n=this.cursor.tree;return n&&n.prop(Ue.contextHash)==e}takeNodes(e){let n=this.cursor,i=this.fragment.offset,r=this.fragmentEnd-(this.fragment.openEnd?1:0),s=e.absoluteLineStart,o=s,a=e.block.children.length,l=o,u=a;for(;;){if(n.to-i>r){if(n.type.isAnonymous&&n.firstChild())continue;break}let d=uK(n.from-i,e.ranges);if(n.to-i<=e.ranges[e.rangeI].to)e.addNode(n.tree,d);else{let f=new ht(e.parser.nodeSet.types[Oe.Paragraph],[],[],0,e.block.hashProp);e.reusePlaceholders.set(f,n.tree),e.addNode(f,d)}if(n.type.is("Block")&&(p2e.indexOf(n.type.id)<0?(o=n.to-i,a=e.block.children.length):(o=l,a=u,l=n.to-i,u=e.block.children.length)),!n.nextSibling())break}for(;e.block.children.length>a;)e.block.children.pop(),e.block.positions.pop();return o-s}}function uK(t,e){let n=t;for(let i=1;i<e.length;i++){let r=e[i-1].to,s=e[i].from;r<t&&(n-=s-r)}return n}const g2e=dc({"Blockquote/...":O.quote,HorizontalRule:O.contentSeparator,"ATXHeading1/... SetextHeading1/...":O.heading1,"ATXHeading2/... SetextHeading2/...":O.heading2,"ATXHeading3/...":O.heading3,"ATXHeading4/...":O.heading4,"ATXHeading5/...":O.heading5,"ATXHeading6/...":O.heading6,"Comment CommentBlock":O.comment,Escape:O.escape,Entity:O.character,"Emphasis/...":O.emphasis,"StrongEmphasis/...":O.strong,"Link/... Image/...":O.link,"OrderedList/... BulletList/...":O.list,"BlockQuote/...":O.quote,"InlineCode CodeText":O.monospace,"URL Autolink":O.url,"HeaderMark HardBreak QuoteMark ListMark LinkMark EmphasisMark CodeMark":O.processingInstruction,"CodeInfo LinkLabel":O.labelName,LinkTitle:O.string,Paragraph:O.content}),b2e=new zk(new Sg(nK).extend(g2e),Object.keys(Ev).map(t=>Ev[t]),Object.keys(Ev).map(t=>eK[t]),Object.keys(Ev),u2e,FY,Object.keys(FP).map(t=>FP[t]),Object.keys(FP),[]);function y2e(t,e,n){let i=[];for(let r=t.firstChild,s=e;;r=r.nextSibling){let o=r?r.from:n;if(o>s&&i.push({from:s,to:o}),!r)break;s=r.to}return i}function x2e(t){let{codeParser:e,htmlParser:n}=t;return{wrap:wN((r,s)=>{let o=r.type.id;if(e&&(o==Oe.CodeBlock||o==Oe.FencedCode)){let a="";if(o==Oe.FencedCode){let u=r.node.getChild(Oe.CodeInfo);u&&(a=s.read(u.from,u.to))}let l=e(a);if(l)return{parser:l,overlay:u=>u.type.id==Oe.CodeText}}else if(n&&(o==Oe.HTMLBlock||o==Oe.HTMLTag||o==Oe.CommentBlock))return{parser:n,overlay:y2e(r.node,r.from,r.to)};return null})}}const O2e={resolve:"Strikethrough",mark:"StrikethroughMark"},_2e={defineNodes:[{name:"Strikethrough",style:{"Strikethrough/...":O.strikethrough}},{name:"StrikethroughMark",style:O.processingInstruction}],parseInline:[{name:"Strikethrough",parse(t,e,n){if(e!=126||t.char(n+1)!=126||t.char(n+2)==126)return-1;let i=t.slice(n-1,n),r=t.slice(n+2,n+3),s=/\s|^$/.test(i),o=/\s|^$/.test(r),a=gx.test(i),l=gx.test(r);return t.addDelimiter(O2e,n,n+2,!o&&(!l||s||a),!s&&(!a||o||l))},after:"Emphasis"}]};function b0(t,e,n=0,i,r=0){let s=0,o=!0,a=-1,l=-1,u=!1,d=()=>{i.push(t.elt("TableCell",r+a,r+l,t.parser.parseInline(e.slice(a,l),r+a)))};for(let f=n;f<e.length;f++){let m=e.charCodeAt(f);m==124&&!u?((!o||a>-1)&&s++,o=!1,i&&(a>-1&&d(),i.push(t.elt("TableDelimiter",f+r,f+r+1))),a=l=-1):(u||m!=32&&m!=9)&&(a<0&&(a=f),l=f+1),u=!u&&m==92}return a>-1&&(s++,i&&d()),s}function x8(t,e){for(let n=e;n<t.length;n++){let i=t.charCodeAt(n);if(i==124)return!0;i==92&&n++}return!1}const hK=/^\|?(\s*:?-+:?\s*\|)+(\s*:?-+:?\s*)?$/;class O8{constructor(){this.rows=null}nextLine(e,n,i){if(this.rows==null){this.rows=!1;let r;if((n.next==45||n.next==58||n.next==124)&&hK.test(r=n.text.slice(n.pos))){let s=[];b0(e,i.content,0,s,i.start)==b0(e,r,n.pos)&&(this.rows=[e.elt("TableHeader",i.start,i.start+i.content.length,s),e.elt("TableDelimiter",e.lineStart+n.pos,e.lineStart+n.text.length)])}}else if(this.rows){let r=[];b0(e,n.text,n.pos,r,e.lineStart),this.rows.push(e.elt("TableRow",e.lineStart+n.pos,e.lineStart+n.text.length,r))}return!1}finish(e,n){return this.rows?(e.addLeafElement(n,e.elt("Table",n.start,n.start+n.content.length,this.rows)),!0):!1}}const v2e={defineNodes:[{name:"Table",block:!0},{name:"TableHeader",style:{"TableHeader/...":O.heading}},"TableRow",{name:"TableCell",style:O.content},{name:"TableDelimiter",style:O.processingInstruction}],parseBlock:[{name:"Table",leaf(t,e){return x8(e.content,0)?new O8:null},endLeaf(t,e,n){if(n.parsers.some(r=>r instanceof O8)||!x8(e.text,e.basePos))return!1;let i=t.peekLine();return hK.test(i)&&b0(t,e.text,e.basePos)==b0(t,i,e.basePos)},before:"SetextHeading"}]};class S2e{nextLine(){return!1}finish(e,n){return e.addLeafElement(n,e.elt("Task",n.start,n.start+n.content.length,[e.elt("TaskMarker",n.start,n.start+3),...e.parser.parseInline(n.content.slice(3),n.start+3)])),!0}}const w2e={defineNodes:[{name:"Task",block:!0,style:O.list},{name:"TaskMarker",style:O.atom}],parseBlock:[{name:"TaskList",leaf(t,e){return/^\[[ xX]\][ \t]/.test(e.content)&&t.parentType().name=="ListItem"?new S2e:null},after:"SetextHeading"}]},_8=/(www\.)|(https?:\/\/)|([\w.+-]{1,100}@)|(mailto:|xmpp:)/gy,v8=/[\w-]+(\.[\w-]+)+(\/[^\s<]*)?/gy,k2e=/[\w-]+\.[\w-]+($|\/)/,S8=/[\w.+-]+@[\w-]+(\.[\w.-]+)+/gy,w8=/\/[a-zA-Z\d@.]+/gy;function k8(t,e,n,i){let r=0;for(let s=e;s<n;s++)t[s]==i&&r++;return r}function C2e(t,e){v8.lastIndex=e;let n=v8.exec(t);if(!n||k2e.exec(n[0])[0].indexOf("_")>-1)return-1;let i=e+n[0].length;for(;;){let r=t[i-1],s;if(/[?!.,:*_~]/.test(r)||r==")"&&k8(t,e,i,")")>k8(t,e,i,"("))i--;else if(r==";"&&(s=/&(?:#\d+|#x[a-f\d]+|\w+);$/.exec(t.slice(e,i))))i=e+s.index;else break}return i}function C8(t,e){S8.lastIndex=e;let n=S8.exec(t);if(!n)return-1;let i=n[0][n[0].length-1];return i=="_"||i=="-"?-1:e+n[0].length-(i=="."?1:0)}const T2e={parseInline:[{name:"Autolink",parse(t,e,n){let i=n-t.offset;if(i&&/\w/.test(t.text[i-1]))return-1;_8.lastIndex=i;let r=_8.exec(t.text),s=-1;if(!r)return-1;if(r[1]||r[2]){if(s=C2e(t.text,i+r[0].length),s>-1&&t.hasOpenLink){let o=/([^\[\]]|\[[^\]]*\])*/.exec(t.text.slice(i,s));s=i+o[0].length}}else r[3]?s=C8(t.text,i):(s=C8(t.text,i+r[0].length),s>-1&&r[0]=="xmpp:"&&(w8.lastIndex=s,r=w8.exec(t.text),r&&(s=r.index+r[0].length)));return s<0?-1:(t.addElement(t.elt("URL",n,s+t.offset)),s+t.offset)}}]},P2e=[v2e,w2e,_2e,T2e];function dK(t,e,n){return(i,r,s)=>{if(r!=t||i.char(s+1)==t)return-1;let o=[i.elt(n,s,s+1)];for(let a=s+1;a<i.end;a++){let l=i.char(a);if(l==t)return i.addElement(i.elt(e,s,a+1,o.concat(i.elt(n,a,a+1))));if(l==92&&o.push(i.elt("Escape",a,a+++2)),Ro(l))break}return-1}}const A2e={defineNodes:[{name:"Superscript",style:O.special(O.content)},{name:"SuperscriptMark",style:O.processingInstruction}],parseInline:[{name:"Superscript",parse:dK(94,"Superscript","SuperscriptMark")}]},R2e={defineNodes:[{name:"Subscript",style:O.special(O.content)},{name:"SubscriptMark",style:O.processingInstruction}],parseInline:[{name:"Subscript",parse:dK(126,"Subscript","SubscriptMark")}]},E2e={defineNodes:[{name:"Emoji",style:O.character}],parseInline:[{name:"Emoji",parse(t,e,n){let i;return e!=58||!(i=/^[a-zA-Z_0-9]+:/.exec(t.slice(n+1,t.end)))?-1:t.addElement(t.elt("Emoji",n,n+1+i[0].length))}}]},M2e=55,$2e=1,L2e=56,D2e=2,N2e=57,Q2e=3,T8=4,I2e=5,f5=6,fK=7,pK=8,mK=9,gK=10,j2e=11,B2e=12,z2e=13,UP=58,V2e=14,q2e=15,P8=59,bK=21,X2e=23,yK=24,F2e=25,J$=27,xK=28,U2e=29,W2e=32,G2e=35,Z2e=37,H2e=38,Y2e=0,K2e=1,J2e={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},ePe={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},A8={dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}};function tPe(t){return t==45||t==46||t==58||t>=65&&t<=90||t==95||t>=97&&t<=122||t>=161}let R8=null,E8=null,M8=0;function eL(t,e){let n=t.pos+e;if(M8==n&&E8==t)return R8;let i=t.peek(e),r="";for(;tPe(i);)r+=String.fromCharCode(i),i=t.peek(++e);return E8=t,M8=n,R8=r?r.toLowerCase():i==nPe||i==iPe?void 0:null}const OK=60,Ow=62,p5=47,nPe=63,iPe=33,rPe=45;function $8(t,e){this.name=t,this.parent=e}const sPe=[f5,gK,fK,pK,mK],oPe=new ZN({start:null,shift(t,e,n,i){return sPe.indexOf(e)>-1?new $8(eL(i,1)||"",t):t},reduce(t,e){return e==bK&&t?t.parent:t},reuse(t,e,n,i){let r=e.type.id;return r==f5||r==Z2e?new $8(eL(i,1)||"",t):t},strict:!1}),aPe=new Bi((t,e)=>{if(t.next!=OK){t.next<0&&e.context&&t.acceptToken(UP);return}t.advance();let n=t.next==p5;n&&t.advance();let i=eL(t,0);if(i===void 0)return;if(!i)return t.acceptToken(n?q2e:V2e);let r=e.context?e.context.name:null;if(n){if(i==r)return t.acceptToken(j2e);if(r&&ePe[r])return t.acceptToken(UP,-2);if(e.dialectEnabled(Y2e))return t.acceptToken(B2e);for(let s=e.context;s;s=s.parent)if(s.name==i)return;t.acceptToken(z2e)}else{if(i=="script")return t.acceptToken(fK);if(i=="style")return t.acceptToken(pK);if(i=="textarea")return t.acceptToken(mK);if(J2e.hasOwnProperty(i))return t.acceptToken(gK);r&&A8[r]&&A8[r][i]?t.acceptToken(UP,-1):t.acceptToken(f5)}},{contextual:!0}),lPe=new Bi(t=>{for(let e=0,n=0;;n++){if(t.next<0){n&&t.acceptToken(P8);break}if(t.next==rPe)e++;else if(t.next==Ow&&e>=2){n>=3&&t.acceptToken(P8,-2);break}else e=0;t.advance()}});function cPe(t){for(;t;t=t.parent)if(t.name=="svg"||t.name=="math")return!0;return!1}const uPe=new Bi((t,e)=>{if(t.next==p5&&t.peek(1)==Ow){let n=e.dialectEnabled(K2e)||cPe(e.context);t.acceptToken(n?I2e:T8,2)}else t.next==Ow&&t.acceptToken(T8,1)});function m5(t,e,n){let i=2+t.length;return new Bi(r=>{for(let s=0,o=0,a=0;;a++){if(r.next<0){a&&r.acceptToken(e);break}if(s==0&&r.next==OK||s==1&&r.next==p5||s>=2&&s<i&&r.next==t.charCodeAt(s-2))s++,o++;else if(s==i&&r.next==Ow){a>o?r.acceptToken(e,-o):r.acceptToken(n,-(o-2));break}else if((r.next==10||r.next==13)&&a){r.acceptToken(e,1);break}else s=o=0;r.advance()}})}const hPe=m5("script",M2e,$2e),dPe=m5("style",L2e,D2e),fPe=m5("textarea",N2e,Q2e),pPe=dc({"Text RawText IncompleteTag IncompleteCloseTag":O.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":O.angleBracket,TagName:O.tagName,"MismatchedCloseTag/TagName":[O.tagName,O.invalid],AttributeName:O.attributeName,"AttributeValue UnquotedAttributeValue":O.attributeValue,Is:O.definitionOperator,"EntityReference CharacterReference":O.character,Comment:O.blockComment,ProcessingInst:O.processingInstruction,DoctypeDecl:O.documentMeta}),mPe=sc.deserialize({version:14,states:",xOVO!rOOO!ZQ#tO'#CrO!`Q#tO'#C{O!eQ#tO'#DOO!jQ#tO'#DRO!oQ#tO'#DTO!tOaO'#CqO#PObO'#CqO#[OdO'#CqO$kO!rO'#CqOOO`'#Cq'#CqO$rO$fO'#DUO$zQ#tO'#DWO%PQ#tO'#DXOOO`'#Dl'#DlOOO`'#DZ'#DZQVO!rOOO%UQ&rO,59^O%aQ&rO,59gO%lQ&rO,59jO%wQ&rO,59mO&SQ&rO,59oOOOa'#D_'#D_O&_OaO'#CyO&jOaO,59]OOOb'#D`'#D`O&rObO'#C|O&}ObO,59]OOOd'#Da'#DaO'VOdO'#DPO'bOdO,59]OOO`'#Db'#DbO'jO!rO,59]O'qQ#tO'#DSOOO`,59],59]OOOp'#Dc'#DcO'vO$fO,59pOOO`,59p,59pO(OQ#|O,59rO(TQ#|O,59sOOO`-E7X-E7XO(YQ&rO'#CtOOQW'#D['#D[O(hQ&rO1G.xOOOa1G.x1G.xOOO`1G/Z1G/ZO(sQ&rO1G/ROOOb1G/R1G/RO)OQ&rO1G/UOOOd1G/U1G/UO)ZQ&rO1G/XOOO`1G/X1G/XO)fQ&rO1G/ZOOOa-E7]-E7]O)qQ#tO'#CzOOO`1G.w1G.wOOOb-E7^-E7^O)vQ#tO'#C}OOOd-E7_-E7_O){Q#tO'#DQOOO`-E7`-E7`O*QQ#|O,59nOOOp-E7a-E7aOOO`1G/[1G/[OOO`1G/^1G/^OOO`1G/_1G/_O*VQ,UO,59`OOQW-E7Y-E7YOOOa7+$d7+$dOOO`7+$u7+$uOOOb7+$m7+$mOOOd7+$p7+$pOOO`7+$s7+$sO*bQ#|O,59fO*gQ#|O,59iO*lQ#|O,59lOOO`1G/Y1G/YO*qO7[O'#CwO+SOMhO'#CwOOQW1G.z1G.zOOO`1G/Q1G/QOOO`1G/T1G/TOOO`1G/W1G/WOOOO'#D]'#D]O+eO7[O,59cOOQW,59c,59cOOOO'#D^'#D^O+vOMhO,59cOOOO-E7Z-E7ZOOQW1G.}1G.}OOOO-E7[-E7[",stateData:",c~O!_OS~OUSOVPOWQOXROYTO[]O][O^^O_^Oa^Ob^Oc^Od^Oy^O|_O!eZO~OgaO~OgbO~OgcO~OgdO~OgeO~O!XfOPmP![mP~O!YiOQpP![pP~O!ZlORsP![sP~OUSOVPOWQOXROYTOZqO[]O][O^^O_^Oa^Ob^Oc^Od^Oy^O!eZO~O![rO~P#gO!]sO!fuO~OgvO~OgwO~OS|OT}OiyO~OS!POT}OiyO~OS!ROT}OiyO~OS!TOT}OiyO~OS}OT}OiyO~O!XfOPmX![mX~OP!WO![!XO~O!YiOQpX![pX~OQ!ZO![!XO~O!ZlORsX![sX~OR!]O![!XO~O![!XO~P#gOg!_O~O!]sO!f!aO~OS!bO~OS!cO~Oj!dOShXThXihX~OS!fOT!gOiyO~OS!hOT!gOiyO~OS!iOT!gOiyO~OS!jOT!gOiyO~OS!gOT!gOiyO~Og!kO~Og!lO~Og!mO~OS!nO~Ol!qO!a!oO!c!pO~OS!rO~OS!sO~OS!tO~Ob!uOc!uOd!uO!a!wO!b!uO~Ob!xOc!xOd!xO!c!wO!d!xO~Ob!uOc!uOd!uO!a!{O!b!uO~Ob!xOc!xOd!xO!c!{O!d!xO~OT~cbd!ey|!e~",goto:"%q!aPPPPPPPPPPPPPPPPPPPPP!b!hP!nPP!zP!}#Q#T#Z#^#a#g#j#m#s#y!bP!b!bP$P$V$m$s$y%P%V%]%cPPPPPPPP%iX^OX`pXUOX`pezabcde{!O!Q!S!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ!ObQ!QcQ!SdQ!UeZ!e{!O!Q!S!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:"⚠ StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:68,context:oPe,nodeProps:[["closedBy",-10,1,2,3,7,8,9,10,11,12,13,"EndTag",6,"EndTag SelfClosingEndTag",-4,22,31,34,37,"CloseTag"],["openedBy",4,"StartTag StartCloseTag",5,"StartTag",-4,30,33,36,38,"OpenTag"],["group",-10,14,15,18,19,20,21,40,41,42,43,"Entity",17,"Entity TextContent",-3,29,32,35,"TextContent Entity"],["isolate",-11,22,30,31,33,34,36,37,38,39,42,43,"ltr",-3,27,28,40,""]],propSources:[pPe],skippedNodes:[0],repeatNodeCount:9,tokenData:"!<p!aR!YOX$qXY,QYZ,QZ[$q[]&X]^,Q^p$qpq,Qqr-_rs3_sv-_vw3}wxHYx}-_}!OH{!O!P-_!P!Q$q!Q![-_![!]Mz!]!^-_!^!_!$S!_!`!;x!`!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4U-_4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Kh-_$Kh%#tMz%#t&/x-_&/x&EtMz&Et&FV-_&FV;'SMz;'S;:j!#|;:j;=`3X<%l?&r-_?&r?AhMz?Ah?BY$q?BY?MnMz?MnO$q!Z$|caPlW!b`!dpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr$qrs&}sv$qvw+Pwx(tx!^$q!^!_*V!_!a&X!a#S$q#S#T&X#T;'S$q;'S;=`+z<%lO$q!R&bXaP!b`!dpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&Xq'UVaP!dpOv&}wx'kx!^&}!^!_(V!_;'S&};'S;=`(n<%lO&}P'pTaPOv'kw!^'k!_;'S'k;'S;=`(P<%lO'kP(SP;=`<%l'kp([S!dpOv(Vx;'S(V;'S;=`(h<%lO(Vp(kP;=`<%l(Vq(qP;=`<%l&}a({WaP!b`Or(trs'ksv(tw!^(t!^!_)e!_;'S(t;'S;=`*P<%lO(t`)jT!b`Or)esv)ew;'S)e;'S;=`)y<%lO)e`)|P;=`<%l)ea*SP;=`<%l(t!Q*^V!b`!dpOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!Q*vP;=`<%l*V!R*|P;=`<%l&XW+UYlWOX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+PW+wP;=`<%l+P!Z+}P;=`<%l$q!a,]`aP!b`!dp!_^OX&XXY,QYZ,QZ]&X]^,Q^p&Xpq,Qqr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X!_-ljiSaPlW!b`!dpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx!P-_!P!Q$q!Q!^-_!^!_*V!_!a&X!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q[/ebiSlWOX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+PS0rXiSqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0mS1bP;=`<%l0m[1hP;=`<%l/^!V1vciSaP!b`!dpOq&Xqr1krs&}sv1kvw0mwx(tx!P1k!P!Q&X!Q!^1k!^!_*V!_!a&X!a#s1k#s$f&X$f;'S1k;'S;=`3R<%l?Ah1k?Ah?BY&X?BY?Mn1k?MnO&X!V3UP;=`<%l1k!_3[P;=`<%l-_!Z3hV!ahaP!dpOv&}wx'kx!^&}!^!_(V!_;'S&};'S;=`(n<%lO&}!_4WiiSlWd!ROX5uXZ7SZ[5u[^7S^p5uqr8trs7Sst>]tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^/^!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!Z5zblWOX5uXZ7SZ[5u[^7S^p5uqr5urs7Sst+Ptw5uwx7Sx!]5u!]!^7w!^!a7S!a#S5u#S#T7S#T;'S5u;'S;=`8n<%lO5u!R7VVOp7Sqs7St!]7S!]!^7l!^;'S7S;'S;=`7q<%lO7S!R7qOb!R!R7tP;=`<%l7S!Z8OYlWb!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!Z8qP;=`<%l5u!_8{iiSlWOX5uXZ7SZ[5u[^7S^p5uqr8trs7Sst/^tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^:j!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!_:sbiSlWb!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!V<QciSOp7Sqr;{rs7Sst0mtw;{wx7Sx!P;{!P!Q7S!Q!];{!]!^=]!^!a7S!a#s;{#s$f7S$f;'S;{;'S;=`>P<%l?Ah;{?Ah?BY7S?BY?Mn;{?MnO7S!V=dXiSb!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!V>SP;=`<%l;{!_>YP;=`<%l8t!_>dhiSlWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^/^!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!Z@TalWOX@OXZAYZ[@O[^AY^p@Oqr@OrsAYsw@OwxAYx!]@O!]!^Az!^!aAY!a#S@O#S#TAY#T;'S@O;'S;=`Bq<%lO@O!RA]UOpAYq!]AY!]!^Ao!^;'SAY;'S;=`At<%lOAY!RAtOc!R!RAwP;=`<%lAY!ZBRYlWc!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!ZBtP;=`<%l@O!_COhiSlWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^Dj!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!_DsbiSlWc!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!VFQbiSOpAYqrE{rsAYswE{wxAYx!PE{!P!QAY!Q!]E{!]!^GY!^!aAY!a#sE{#s$fAY$f;'SE{;'S;=`G|<%l?AhE{?Ah?BYAY?BY?MnE{?MnOAY!VGaXiSc!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!VHPP;=`<%lE{!_HVP;=`<%lBw!ZHcW!cxaP!b`Or(trs'ksv(tw!^(t!^!_)e!_;'S(t;'S;=`*P<%lO(t!aIYliSaPlW!b`!dpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OKQ!O!P-_!P!Q$q!Q!^-_!^!_*V!_!a&X!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!aK_kiSaPlW!b`!dpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx!P-_!P!Q$q!Q!^-_!^!_*V!_!`&X!`!aMS!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!TM_XaP!b`!dp!fQOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X!aNZ!ZiSgQaPlW!b`!dpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OMz!O!PMz!P!Q$q!Q![Mz![!]Mz!]!^-_!^!_*V!_!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f$}-_$}%OMz%O%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4UMz4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Je-_$Je$JgMz$Jg$Kh-_$Kh%#tMz%#t&/x-_&/x&EtMz&Et&FV-_&FV;'SMz;'S;:j!#|;:j;=`3X<%l?&r-_?&r?AhMz?Ah?BY$q?BY?MnMz?MnO$q!a!$PP;=`<%lMz!R!$ZY!b`!dpOq*Vqr!$yrs(Vsv*Vwx)ex!a*V!a!b!4t!b;'S*V;'S;=`*s<%lO*V!R!%Q]!b`!dpOr*Vrs(Vsv*Vwx)ex}*V}!O!%y!O!f*V!f!g!']!g#W*V#W#X!0`#X;'S*V;'S;=`*s<%lO*V!R!&QX!b`!dpOr*Vrs(Vsv*Vwx)ex}*V}!O!&m!O;'S*V;'S;=`*s<%lO*V!R!&vV!b`!dp!ePOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!'dX!b`!dpOr*Vrs(Vsv*Vwx)ex!q*V!q!r!(P!r;'S*V;'S;=`*s<%lO*V!R!(WX!b`!dpOr*Vrs(Vsv*Vwx)ex!e*V!e!f!(s!f;'S*V;'S;=`*s<%lO*V!R!(zX!b`!dpOr*Vrs(Vsv*Vwx)ex!v*V!v!w!)g!w;'S*V;'S;=`*s<%lO*V!R!)nX!b`!dpOr*Vrs(Vsv*Vwx)ex!{*V!{!|!*Z!|;'S*V;'S;=`*s<%lO*V!R!*bX!b`!dpOr*Vrs(Vsv*Vwx)ex!r*V!r!s!*}!s;'S*V;'S;=`*s<%lO*V!R!+UX!b`!dpOr*Vrs(Vsv*Vwx)ex!g*V!g!h!+q!h;'S*V;'S;=`*s<%lO*V!R!+xY!b`!dpOr!+qrs!,hsv!+qvw!-Swx!.[x!`!+q!`!a!/j!a;'S!+q;'S;=`!0Y<%lO!+qq!,mV!dpOv!,hvx!-Sx!`!,h!`!a!-q!a;'S!,h;'S;=`!.U<%lO!,hP!-VTO!`!-S!`!a!-f!a;'S!-S;'S;=`!-k<%lO!-SP!-kO|PP!-nP;=`<%l!-Sq!-xS!dp|POv(Vx;'S(V;'S;=`(h<%lO(Vq!.XP;=`<%l!,ha!.aX!b`Or!.[rs!-Ssv!.[vw!-Sw!`!.[!`!a!.|!a;'S!.[;'S;=`!/d<%lO!.[a!/TT!b`|POr)esv)ew;'S)e;'S;=`)y<%lO)ea!/gP;=`<%l!.[!R!/sV!b`!dp|POr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!0]P;=`<%l!+q!R!0gX!b`!dpOr*Vrs(Vsv*Vwx)ex#c*V#c#d!1S#d;'S*V;'S;=`*s<%lO*V!R!1ZX!b`!dpOr*Vrs(Vsv*Vwx)ex#V*V#V#W!1v#W;'S*V;'S;=`*s<%lO*V!R!1}X!b`!dpOr*Vrs(Vsv*Vwx)ex#h*V#h#i!2j#i;'S*V;'S;=`*s<%lO*V!R!2qX!b`!dpOr*Vrs(Vsv*Vwx)ex#m*V#m#n!3^#n;'S*V;'S;=`*s<%lO*V!R!3eX!b`!dpOr*Vrs(Vsv*Vwx)ex#d*V#d#e!4Q#e;'S*V;'S;=`*s<%lO*V!R!4XX!b`!dpOr*Vrs(Vsv*Vwx)ex#X*V#X#Y!+q#Y;'S*V;'S;=`*s<%lO*V!R!4{Y!b`!dpOr!4trs!5ksv!4tvw!6Vwx!8]x!a!4t!a!b!:]!b;'S!4t;'S;=`!;r<%lO!4tq!5pV!dpOv!5kvx!6Vx!a!5k!a!b!7W!b;'S!5k;'S;=`!8V<%lO!5kP!6YTO!a!6V!a!b!6i!b;'S!6V;'S;=`!7Q<%lO!6VP!6lTO!`!6V!`!a!6{!a;'S!6V;'S;=`!7Q<%lO!6VP!7QOyPP!7TP;=`<%l!6Vq!7]V!dpOv!5kvx!6Vx!`!5k!`!a!7r!a;'S!5k;'S;=`!8V<%lO!5kq!7yS!dpyPOv(Vx;'S(V;'S;=`(h<%lO(Vq!8YP;=`<%l!5ka!8bX!b`Or!8]rs!6Vsv!8]vw!6Vw!a!8]!a!b!8}!b;'S!8];'S;=`!:V<%lO!8]a!9SX!b`Or!8]rs!6Vsv!8]vw!6Vw!`!8]!`!a!9o!a;'S!8];'S;=`!:V<%lO!8]a!9vT!b`yPOr)esv)ew;'S)e;'S;=`)y<%lO)ea!:YP;=`<%l!8]!R!:dY!b`!dpOr!4trs!5ksv!4tvw!6Vwx!8]x!`!4t!`!a!;S!a;'S!4t;'S;=`!;r<%lO!4t!R!;]V!b`!dpyPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!;uP;=`<%l!4t!V!<TXjSaP!b`!dpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X",tokenizers:[hPe,dPe,fPe,uPe,aPe,lPe,0,1,2,3,4,5],topRules:{Document:[0,16]},dialects:{noMatch:0,selfClosing:515},tokenPrec:517});function _K(t,e){let n=Object.create(null);for(let i of t.getChildren(yK)){let r=i.getChild(F2e),s=i.getChild(J$)||i.getChild(xK);r&&(n[e.read(r.from,r.to)]=s?s.type.id==J$?e.read(s.from+1,s.to-1):e.read(s.from,s.to):"")}return n}function L8(t,e){let n=t.getChild(X2e);return n?e.read(n.from,n.to):" "}function WP(t,e,n){let i;for(let r of n)if(!r.attrs||r.attrs(i||(i=_K(t.node.parent.firstChild,e))))return{parser:r.parser};return null}function vK(t=[],e=[]){let n=[],i=[],r=[],s=[];for(let a of t)(a.tag=="script"?n:a.tag=="style"?i:a.tag=="textarea"?r:s).push(a);let o=e.length?Object.create(null):null;for(let a of e)(o[a.name]||(o[a.name]=[])).push(a);return wN((a,l)=>{let u=a.type.id;if(u==U2e)return WP(a,l,n);if(u==W2e)return WP(a,l,i);if(u==G2e)return WP(a,l,r);if(u==bK&&s.length){let d=a.node,f=d.firstChild,m=f&&L8(f,l),g;if(m){for(let y of s)if(y.tag==m&&(!y.attrs||y.attrs(g||(g=_K(f,l))))){let _=d.lastChild,v=_.type.id==H2e?_.from:d.to;if(v>f.to)return{parser:y.parser,overlay:[{from:f.to,to:v}]}}}}if(o&&u==yK){let d=a.node,f;if(f=d.firstChild){let m=o[l.read(f.from,f.to)];if(m)for(let g of m){if(g.tagName&&g.tagName!=L8(d.parent,l))continue;let y=d.lastChild;if(y.type.id==J$){let _=y.from+1,v=y.lastChild,w=y.to-(v&&v.isError?0:1);if(w>_)return{parser:g.parser,overlay:[{from:_,to:w}]}}else if(y.type.id==xK)return{parser:g.parser,overlay:[{from:y.from,to:y.to}]}}}}return null})}const gPe=122,D8=1,bPe=123,yPe=124,SK=2,xPe=125,OPe=3,_Pe=4,wK=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],vPe=58,SPe=40,kK=95,wPe=91,rS=45,kPe=46,CPe=35,TPe=37,PPe=38,APe=92,RPe=10,EPe=42;function bx(t){return t>=65&&t<=90||t>=97&&t<=122||t>=161}function g5(t){return t>=48&&t<=57}function N8(t){return g5(t)||t>=97&&t<=102||t>=65&&t<=70}const CK=(t,e,n)=>(i,r)=>{for(let s=!1,o=0,a=0;;a++){let{next:l}=i;if(bx(l)||l==rS||l==kK||s&&g5(l))!s&&(l!=rS||a>0)&&(s=!0),o===a&&l==rS&&o++,i.advance();else if(l==APe&&i.peek(1)!=RPe){if(i.advance(),N8(i.next)){do i.advance();while(N8(i.next));i.next==32&&i.advance()}else i.next>-1&&i.advance();s=!0}else{s&&i.acceptToken(o==2&&r.canShift(SK)?e:l==SPe?n:t);break}}},MPe=new Bi(CK(bPe,SK,yPe)),$Pe=new Bi(CK(xPe,OPe,_Pe)),LPe=new Bi(t=>{if(wK.includes(t.peek(-1))){let{next:e}=t;(bx(e)||e==kK||e==CPe||e==kPe||e==EPe||e==wPe||e==vPe&&bx(t.peek(1))||e==rS||e==PPe)&&t.acceptToken(gPe)}}),DPe=new Bi(t=>{if(!wK.includes(t.peek(-1))){let{next:e}=t;if(e==TPe&&(t.advance(),t.acceptToken(D8)),bx(e)){do t.advance();while(bx(t.next)||g5(t.next));t.acceptToken(D8)}}}),NPe=dc({"AtKeyword import charset namespace keyframes media supports":O.definitionKeyword,"from to selector":O.keyword,NamespaceName:O.namespace,KeyframeName:O.labelName,KeyframeRangeName:O.operatorKeyword,TagName:O.tagName,ClassName:O.className,PseudoClassName:O.constant(O.className),IdName:O.labelName,"FeatureName PropertyName":O.propertyName,AttributeName:O.attributeName,NumberLiteral:O.number,KeywordQuery:O.keyword,UnaryQueryOp:O.operatorKeyword,"CallTag ValueName":O.atom,VariableName:O.variableName,Callee:O.operatorKeyword,Unit:O.unit,"UniversalSelector NestingSelector":O.definitionOperator,"MatchOp CompareOp":O.compareOperator,"ChildOp SiblingOp, LogicOp":O.logicOperator,BinOp:O.arithmeticOperator,Important:O.modifier,Comment:O.blockComment,ColorLiteral:O.color,"ParenthesizedContent StringLiteral":O.string,":":O.punctuation,"PseudoOp #":O.derefOperator,"; ,":O.separator,"( )":O.paren,"[ ]":O.squareBracket,"{ }":O.brace}),QPe={__proto__:null,lang:38,"nth-child":38,"nth-last-child":38,"nth-of-type":38,"nth-last-of-type":38,dir:38,"host-context":38,if:84,url:124,"url-prefix":124,domain:124,regexp:124},IPe={__proto__:null,or:98,and:98,not:106,only:106,layer:170},jPe={__proto__:null,selector:112,layer:166},BPe={__proto__:null,"@import":162,"@media":174,"@charset":178,"@namespace":182,"@keyframes":188,"@supports":200,"@scope":204},zPe={__proto__:null,to:207},VPe=sc.deserialize({version:14,states:"EbQYQdOOO#qQdOOP#xO`OOOOQP'#Cf'#CfOOQP'#Ce'#CeO#}QdO'#ChO$nQaO'#CcO$xQdO'#CkO%TQdO'#DpO%YQdO'#DrO%_QdO'#DuO%_QdO'#DxOOQP'#FV'#FVO&eQhO'#EhOOQS'#FU'#FUOOQS'#Ek'#EkQYQdOOO&lQdO'#EOO&PQhO'#EUO&lQdO'#EWO'aQdO'#EYO'lQdO'#E]O'tQhO'#EcO(VQdO'#EeO(bQaO'#CfO)VQ`O'#D{O)[Q`O'#F`O)gQdO'#F`QOQ`OOP)qO&jO'#CaPOOO)C@t)C@tOOQP'#Cj'#CjOOQP,59S,59SO#}QdO,59SO)|QdO,59VO%TQdO,5:[O%YQdO,5:^O%_QdO,5:aO%_QdO,5:cO%_QdO,5:dO%_QdO'#ErO*XQ`O,58}O*aQdO'#DzOOQS,58},58}OOQP'#Cn'#CnOOQO'#Dn'#DnOOQP,59V,59VO*hQ`O,59VO*mQ`O,59VOOQP'#Dq'#DqOOQP,5:[,5:[OOQO'#Ds'#DsO*rQpO,5:^O+]QaO,5:aO+sQaO,5:dOOQW'#DZ'#DZO,ZQhO'#DdO,xQhO'#FaO'tQhO'#DbO-WQ`O'#DhOOQW'#F['#F[O-]Q`O,5;SO-eQ`O'#DeOOQS-E8i-E8iOOQ['#Cs'#CsO-jQdO'#CtO.QQdO'#CzO.hQdO'#C}O/OQ!pO'#DPO1RQ!jO,5:jOOQO'#DU'#DUO*mQ`O'#DTO1cQ!nO'#FXO3`Q`O'#DVO3eQ`O'#DkOOQ['#FX'#FXO-`Q`O,5:pO3jQ!bO,5:rOOQS'#E['#E[O3rQ`O,5:tO3wQdO,5:tOOQO'#E_'#E_O4PQ`O,5:wO4UQhO,5:}O%_QdO'#DgOOQS,5;P,5;PO-eQ`O,5;PO4^QdO,5;PO4fQdO,5:gO4vQdO'#EtO5TQ`O,5;zO5TQ`O,5;zPOOO'#Ej'#EjP5`O&jO,58{POOO,58{,58{OOQP1G.n1G.nOOQP1G.q1G.qO*hQ`O1G.qO*mQ`O1G.qOOQP1G/v1G/vO5kQpO1G/xO5sQaO1G/{O6ZQaO1G/}O6qQaO1G0OO7XQaO,5;^OOQO-E8p-E8pOOQS1G.i1G.iO7cQ`O,5:fO7hQdO'#DoO7oQdO'#CrOOQP1G/x1G/xO&lQdO1G/xO7vQ!jO'#DZO8UQ!bO,59vO8^QhO,5:OOOQO'#F]'#F]O8XQ!bO,59zO'tQhO,59xO8fQhO'#EvO8sQ`O,5;{O9OQhO,59|O9uQhO'#DiOOQW,5:S,5:SOOQS1G0n1G0nOOQW,5:P,5:PO9|Q!fO'#FYOOQS'#FY'#FYOOQS'#Em'#EmO;^QdO,59`OOQ[,59`,59`O;tQdO,59fOOQ[,59f,59fO<[QdO,59iOOQ[,59i,59iOOQ[,59k,59kO&lQdO,59mO<rQhO'#EQOOQW'#EQ'#EQO=WQ`O1G0UO1[QhO1G0UOOQ[,59o,59oO'tQhO'#DXOOQ[,59q,59qO=]Q#tO,5:VOOQS1G0[1G0[OOQS1G0^1G0^OOQS1G0`1G0`O=hQ`O1G0`O=mQdO'#E`OOQS1G0c1G0cOOQS1G0i1G0iO=xQaO,5:RO-`Q`O1G0kOOQS1G0k1G0kO-eQ`O1G0kO>PQ!fO1G0ROOQO1G0R1G0ROOQO,5;`,5;`O>gQdO,5;`OOQO-E8r-E8rO>tQ`O1G1fPOOO-E8h-E8hPOOO1G.g1G.gOOQP7+$]7+$]OOQP7+%d7+%dO&lQdO7+%dOOQS1G0Q1G0QO?PQaO'#F_O?ZQ`O,5:ZO?`Q!fO'#ElO@^QdO'#FWO@hQ`O,59^O@mQ!bO7+%dO&lQdO1G/bO@uQhO1G/fOOQW1G/j1G/jOOQW1G/d1G/dOAWQhO,5;bOOQO-E8t-E8tOAfQhO'#DZOAtQhO'#F^OBPQ`O'#F^OBUQ`O,5:TOOQS-E8k-E8kOOQ[1G.z1G.zOOQ[1G/Q1G/QOOQ[1G/T1G/TOOQ[1G/X1G/XOBZQdO,5:lOOQS7+%p7+%pOB`Q`O7+%pOBeQhO'#DYOBmQ`O,59sO'tQhO,59sOOQ[1G/q1G/qOBuQ`O1G/qOOQS7+%z7+%zOBzQbO'#DPOOQO'#Eb'#EbOCYQ`O'#EaOOQO'#Ea'#EaOCeQ`O'#EwOCmQdO,5:zOOQS,5:z,5:zOOQ[1G/m1G/mOOQS7+&V7+&VO-`Q`O7+&VOCxQ!fO'#EsO&lQdO'#EsOEPQdO7+%mOOQO7+%m7+%mOOQO1G0z1G0zOEdQ!bO<<IOOElQdO'#EqOEvQ`O,5;yOOQP1G/u1G/uOOQS-E8j-E8jOFOQdO'#EpOFYQ`O,5;rOOQ]1G.x1G.xOOQP<<IO<<IOOFbQdO7+$|OOQO'#D]'#D]OFiQ!bO7+%QOFqQhO'#EoOF{Q`O,5;xO&lQdO,5;xOOQW1G/o1G/oOOQO'#ES'#ESOGTQ`O1G0WOOQS<<I[<<I[O&lQdO,59tOGnQhO1G/_OOQ[1G/_1G/_OGuQ`O1G/_OOQW-E8l-E8lOOQ[7+%]7+%]OOQO,5:{,5:{O=pQdO'#ExOCeQ`O,5;cOOQS,5;c,5;cOOQS-E8u-E8uOOQS1G0f1G0fOOQS<<Iq<<IqOG}Q!fO,5;_OOQS-E8q-E8qOOQO<<IX<<IXOOQPAN>jAN>jOIUQaO,5;]OOQO-E8o-E8oOI`QdO,5;[OOQO-E8n-E8nOOQW<<Hh<<HhOOQW<<Hl<<HlOIjQhO<<HlOI{QhO,5;ZOJWQ`O,5;ZOOQO-E8m-E8mOJ]QdO1G1dOBZQdO'#EuOJgQ`O7+%rOOQW7+%r7+%rOJoQ!bO1G/`OOQ[7+$y7+$yOJzQhO7+$yPKRQ`O'#EnOOQO,5;d,5;dOOQO-E8v-E8vOOQS1G0}1G0}OKWQ`OAN>WO&lQdO1G0uOK]Q`O7+'OOOQO,5;a,5;aOOQO-E8s-E8sOOQW<<I^<<I^OOQ[<<He<<HePOQW,5;Y,5;YOOQWG23rG23rOKeQdO7+&a",stateData:"Kx~O#sOS#tQQ~OW[OZ[O]TO`VOaVOi]OjWOmXO!jYO!mZO!saO!ybO!{cO!}dO#QeO#WfO#YgO#oRO~OQiOW[OZ[O]TO`VOaVOi]OjWOmXO!jYO!mZO!saO!ybO!{cO!}dO#QeO#WfO#YgO#ohO~O#m$SP~P!dO#tmO~O#ooO~O]qO`rOarOjsOmtO!juO!mwO#nvO~OpzO!^xO~P$SOc!QO#o|O#p}O~O#o!RO~O#o!TO~OW[OZ[O]TO`VOaVOjWOmXO!jYO!mZO#oRO~OS!]Oe!YO!V![O!Y!`O#q!XOp$TP~Ok$TP~P&POQ!jOe!cOm!dOp!eOr!mOt!mOz!kO!`!lO#o!bO#p!hO#}!fO~Ot!qO!`!lO#o!pO~Ot!sO#o!sO~OS!]Oe!YO!V![O!Y!`O#q!XO~Oe!vOpzO#Z!xO~O]YX`YX`!pXaYXjYXmYXpYX!^YX!jYX!mYX#nYX~O`!zO~Ok!{O#m$SXo$SX~O#m$SXo$SX~P!dO#u#OO#v#OO#w#QO~Oc#UO#o|O#p}O~OpzO!^xO~Oo$SP~P!dOe#`O~Oe#aO~Ol#bO!h#cO~O]qO`rOarOjsOmtO~Op!ia!^!ia!j!ia!m!ia#n!iad!ia~P*zOp!la!^!la!j!la!m!la#n!lad!la~P*zOR#gOS!]Oe!YOr#gOt#gO!V![O!Y!`O#q#dO#}!fO~O!R#iO!^#jOk$TXp$TX~Oe#mO~Ok#oOpzO~Oe!vO~O]#rO`#rOd#uOi#rOj#rOk#rO~P&lO]#rO`#rOi#rOj#rOk#rOl#wO~P&lO]#rO`#rOi#rOj#rOk#rOo#yO~P&lOP#zOSsXesXksXvsX!VsX!YsX!usX!wsX#qsX!TsXQsX]sX`sXdsXisXjsXmsXpsXrsXtsXzsX!`sX#osX#psX#}sXlsXosX!^sX!qsX#msX~Ov#{O!u#|O!w#}Ok$TP~P'tOe#aOS#{Xk#{Xv#{X!V#{X!Y#{X!u#{X!w#{X#q#{XQ#{X]#{X`#{Xd#{Xi#{Xj#{Xm#{Xp#{Xr#{Xt#{Xz#{X!`#{X#o#{X#p#{X#}#{Xl#{Xo#{X!^#{X!q#{X#m#{X~Oe$RO~Oe$TO~Ok$VOv#{O~Ok$WO~Ot$XO!`!lO~Op$YO~OpzO!R#iO~OpzO#Z$`O~O!q$bOk!oa#m!oao!oa~P&lOk#hX#m#hXo#hX~P!dOk!{O#m$Sao$Sa~O#u#OO#v#OO#w$hO~Ol$jO!h$kO~Op!ii!^!ii!j!ii!m!ii#n!iid!ii~P*zOp!ki!^!ki!j!ki!m!ki#n!kid!ki~P*zOp!li!^!li!j!li!m!li#n!lid!li~P*zOp#fa!^#fa~P$SOo$lO~Od$RP~P%_Od#zP~P&lO`!PXd}X!R}X!T!PX~O`$sO!T$tO~Od$uO!R#iO~Ok#jXp#jX!^#jX~P'tO!^#jOk$Tap$Ta~O!R#iOk!Uap!Ua!^!Uad!Ua`!Ua~OS!]Oe!YO!V![O!Y!`O#q$yO~Od$QP~P9dOv#{OQ#|X]#|X`#|Xd#|Xe#|Xi#|Xj#|Xk#|Xm#|Xp#|Xr#|Xt#|Xz#|X!`#|X#o#|X#p#|X#}#|Xl#|Xo#|X~O]#rO`#rOd%OOi#rOj#rOk#rO~P&lO]#rO`#rOi#rOj#rOk#rOl%PO~P&lO]#rO`#rOi#rOj#rOk#rOo%QO~P&lOe%SOS!tXk!tX!V!tX!Y!tX#q!tX~Ok%TO~Od%YOt%ZO!a%ZO~Ok%[O~Oo%cO#o%^O#}%]O~Od%dO~P$SOv#{O!^%hO!q%jOk!oi#m!oio!oi~P&lOk#ha#m#hao#ha~P!dOk!{O#m$Sio$Si~O!^%mOd$RX~P$SOd%oO~Ov#{OQ#`Xd#`Xe#`Xm#`Xp#`Xr#`Xt#`Xz#`X!^#`X!`#`X#o#`X#p#`X#}#`X~O!^%qOd#zX~P&lOd%sO~Ol%tOv#{O~OR#gOr#gOt#gO#q%vO#}!fO~O!R#iOk#jap#ja!^#ja~O`!PXd}X!R}X!^}X~O!R#iO!^%xOd$QX~O`%zO~Od%{O~O#o%|O~Ok&OO~O`&PO!R#iO~Od&ROk&QO~Od&UO~OP#zOpsX!^sXdsX~O#}%]Op#TX!^#TX~OpzO!^&WO~Oo&[O#o%^O#}%]O~Ov#{OQ#gXe#gXk#gXm#gXp#gXr#gXt#gXz#gX!^#gX!`#gX!q#gX#m#gX#o#gX#p#gX#}#gXo#gX~O!^%hO!q&`Ok!oq#m!oqo!oq~P&lOl&aOv#{O~Od#eX!^#eX~P%_O!^%mOd$Ra~Od#dX!^#dX~P&lO!^%qOd#za~Od&fO~P&lOd&gO!T&hO~Od#cX!^#cX~P9dO!^%xOd$Qa~O]&mOd&oO~OS#bae#ba!V#ba!Y#ba#q#ba~Od&qO~PG]Od&qOk&rO~Ov#{OQ#gae#gak#gam#gap#gar#gat#gaz#ga!^#ga!`#ga!q#ga#m#ga#o#ga#p#ga#}#gao#ga~Od#ea!^#ea~P$SOd#da!^#da~P&lOR#gOr#gOt#gO#q%vO#}%]O~O!R#iOd#ca!^#ca~O`&xO~O!^%xOd$Qi~P&lO]&mOd&|O~Ov#{Od|ik|i~Od&}O~PG]Ok'OO~Od'PO~O!^%xOd$Qq~Od#cq!^#cq~P&lO#s!a#t#}]#}v!m~",goto:"2h$UPPPPP$VP$YP$c$uP$cP%X$cPP%_PPP%e%o%oPPPPP%oPP%oP&]P%oP%o'W%oP't'w'}'}(^'}P'}P'}P'}'}P(m'}(yP(|PP)p)v$c)|$c*SP$cP$c$cP*Y*{+YP$YP+aP+dP$YP$YP$YP+j$YP+m+p+s+z$YP$YPP$YP,P,V,f,|-[-b-l-r-x.O.U.`.f.l.rPPPPPPPPPPP.x/R/w/z0|P1U1u2O2R2U2[RnQ_^OP`kz!{$dq[OPYZ`kuvwxz!v!{#`$d%mqSOPYZ`kuvwxz!v!{#`$d%mQpTR#RqQ!OVR#SrQ#S!QS$Q!i!jR$i#U!V!mac!c!d!e!z#a#c#t#v#x#{$a$k$p$s%h%i%q%u%z&P&d&l&x'Q!U!mac!c!d!e!z#a#c#t#v#x#{$a$k$p$s%h%i%q%u%z&P&d&l&x'QU#g!Y$t&hU%`$Y%b&WR&V%_!V!iac!c!d!e!z#a#c#t#v#x#{$a$k$p$s%h%i%q%u%z&P&d&l&x'QR$S!kQ%W$RR&S%Xk!^]bf!Y![!g#i#j#m$P$R%X%xQ#e!YQ${#mQ%w$tQ&j%xR&w&hQ!ygQ#p!`Q$^!xR%f$`R#n!]!U!mac!c!d!e!z#a#c#t#v#x#{$a$k$p$s%h%i%q%u%z&P&d&l&x'QQ!qdR$X!rQ!PVR#TrQ#S!PR$i#TQ!SWR#VsQ!UXR#WtQ{UQ!wgQ#^yQ#o!_Q$U!nQ$[!uQ$_!yQ%e$^Q&Y%aQ&]%fR&v&XSjPzQ!}kQ$c!{R%k$dZiPkz!{$dR$P!gQ%}%SR&z&mR!rdR!teR$Z!tS%a$Y%bR&t&WV%_$Y%b&WQ#PmR$g#PQ`OSkPzU!a`k$dR$d!{Q$p#aY%p$p%u&d&l'QQ%u$sQ&d%qQ&l%zR'Q&xQ#t!cQ#v!dQ#x!eV$}#t#v#xQ%X$RR&T%XQ%y$zS&k%y&yR&y&lQ%r$pR&e%rQ%n$mR&c%nQyUR#]yQ%i$aR&_%iQ!|jS$e!|$fR$f!}Q&n%}R&{&nQ#k!ZR$x#kQ%b$YR&Z%bQ&X%aR&u&X__OP`kz!{$d^UOP`kz!{$dQ!VYQ!WZQ#XuQ#YvQ#ZwQ#[xQ$]!vQ$m#`R&b%mR$q#aQ!gaQ!oc[#q!c!d!e#t#v#xQ$a!zd$o#a$p$s%q%u%z&d&l&x'QQ$r#cQ%R#{S%g$a%iQ%l$kQ&^%hR&p&P]#s!c!d!e#t#v#xW!Z]b!g$PQ!ufQ#f!YQ#l![Q$v#iQ$w#jQ$z#mS%V$R%XR&i%xQ#h!YQ%w$tR&w&hR$|#mR$n#`QlPR#_zQ!_]Q!nbQ$O!gR%U$P",nodeNames:"⚠ Unit VariableName VariableName QueryCallee Comment StyleSheet RuleSet UniversalSelector TagSelector TagName NestingSelector ClassSelector . ClassName PseudoClassSelector : :: PseudoClassName PseudoClassName ) ( ArgList ValueName ParenthesizedValue AtKeyword # ; ] [ BracketedValue } { BracedValue ColorLiteral NumberLiteral StringLiteral BinaryExpression BinOp CallExpression Callee IfExpression if ArgList IfBranch KeywordQuery FeatureQuery FeatureName BinaryQuery LogicOp ComparisonQuery CompareOp UnaryQuery UnaryQueryOp ParenthesizedQuery SelectorQuery selector ParenthesizedSelector CallQuery ArgList , CallLiteral CallTag ParenthesizedContent PseudoClassName ArgList IdSelector IdName AttributeSelector AttributeName MatchOp ChildSelector ChildOp DescendantSelector SiblingSelector SiblingOp Block Declaration PropertyName Important ImportStatement import Layer layer LayerName layer MediaStatement media CharsetStatement charset NamespaceStatement namespace NamespaceName KeyframesStatement keyframes KeyframeName KeyframeList KeyframeSelector KeyframeRangeName SupportsStatement supports ScopeStatement scope to AtRule Styles",maxTerm:143,nodeProps:[["isolate",-2,5,36,""],["openedBy",20,"(",28,"[",31,"{"],["closedBy",21,")",29,"]",32,"}"]],propSources:[NPe],skippedNodes:[0,5,106],repeatNodeCount:15,tokenData:"JQ~R!YOX$qX^%i^p$qpq%iqr({rs-ust/itu6Wuv$qvw7Qwx7cxy9Qyz9cz{9h{|:R|}>t}!O?V!O!P?t!P!Q@]!Q![AU![!]BP!]!^B{!^!_C^!_!`DY!`!aDm!a!b$q!b!cEn!c!}$q!}#OG{#O#P$q#P#QH^#Q#R6W#R#o$q#o#pHo#p#q6W#q#rIQ#r#sIc#s#y$q#y#z%i#z$f$q$f$g%i$g#BY$q#BY#BZ%i#BZ$IS$q$IS$I_%i$I_$I|$q$I|$JO%i$JO$JT$q$JT$JU%i$JU$KV$q$KV$KW%i$KW&FU$q&FU&FV%i&FV;'S$q;'S;=`Iz<%lO$q`$tSOy%Qz;'S%Q;'S;=`%c<%lO%Q`%VS!a`Oy%Qz;'S%Q;'S;=`%c<%lO%Q`%fP;=`<%l%Q~%nh#s~OX%QX^'Y^p%Qpq'Yqy%Qz#y%Q#y#z'Y#z$f%Q$f$g'Y$g#BY%Q#BY#BZ'Y#BZ$IS%Q$IS$I_'Y$I_$I|%Q$I|$JO'Y$JO$JT%Q$JT$JU'Y$JU$KV%Q$KV$KW'Y$KW&FU%Q&FU&FV'Y&FV;'S%Q;'S;=`%c<%lO%Q~'ah#s~!a`OX%QX^'Y^p%Qpq'Yqy%Qz#y%Q#y#z'Y#z$f%Q$f$g'Y$g#BY%Q#BY#BZ'Y#BZ$IS%Q$IS$I_'Y$I_$I|%Q$I|$JO'Y$JO$JT%Q$JT$JU'Y$JU$KV%Q$KV$KW'Y$KW&FU%Q&FU&FV'Y&FV;'S%Q;'S;=`%c<%lO%Qj)OUOy%Qz#]%Q#]#^)b#^;'S%Q;'S;=`%c<%lO%Qj)gU!a`Oy%Qz#a%Q#a#b)y#b;'S%Q;'S;=`%c<%lO%Qj*OU!a`Oy%Qz#d%Q#d#e*b#e;'S%Q;'S;=`%c<%lO%Qj*gU!a`Oy%Qz#c%Q#c#d*y#d;'S%Q;'S;=`%c<%lO%Qj+OU!a`Oy%Qz#f%Q#f#g+b#g;'S%Q;'S;=`%c<%lO%Qj+gU!a`Oy%Qz#h%Q#h#i+y#i;'S%Q;'S;=`%c<%lO%Qj,OU!a`Oy%Qz#T%Q#T#U,b#U;'S%Q;'S;=`%c<%lO%Qj,gU!a`Oy%Qz#b%Q#b#c,y#c;'S%Q;'S;=`%c<%lO%Qj-OU!a`Oy%Qz#h%Q#h#i-b#i;'S%Q;'S;=`%c<%lO%Qj-iS!qY!a`Oy%Qz;'S%Q;'S;=`%c<%lO%Q~-xWOY-uZr-urs.bs#O-u#O#P.g#P;'S-u;'S;=`/c<%lO-u~.gOt~~.jRO;'S-u;'S;=`.s;=`O-u~.vXOY-uZr-urs.bs#O-u#O#P.g#P;'S-u;'S;=`/c;=`<%l-u<%lO-u~/fP;=`<%l-uj/nYjYOy%Qz!Q%Q!Q![0^![!c%Q!c!i0^!i#T%Q#T#Z0^#Z;'S%Q;'S;=`%c<%lO%Qj0cY!a`Oy%Qz!Q%Q!Q![1R![!c%Q!c!i1R!i#T%Q#T#Z1R#Z;'S%Q;'S;=`%c<%lO%Qj1WY!a`Oy%Qz!Q%Q!Q![1v![!c%Q!c!i1v!i#T%Q#T#Z1v#Z;'S%Q;'S;=`%c<%lO%Qj1}YrY!a`Oy%Qz!Q%Q!Q![2m![!c%Q!c!i2m!i#T%Q#T#Z2m#Z;'S%Q;'S;=`%c<%lO%Qj2tYrY!a`Oy%Qz!Q%Q!Q![3d![!c%Q!c!i3d!i#T%Q#T#Z3d#Z;'S%Q;'S;=`%c<%lO%Qj3iY!a`Oy%Qz!Q%Q!Q![4X![!c%Q!c!i4X!i#T%Q#T#Z4X#Z;'S%Q;'S;=`%c<%lO%Qj4`YrY!a`Oy%Qz!Q%Q!Q![5O![!c%Q!c!i5O!i#T%Q#T#Z5O#Z;'S%Q;'S;=`%c<%lO%Qj5TY!a`Oy%Qz!Q%Q!Q![5s![!c%Q!c!i5s!i#T%Q#T#Z5s#Z;'S%Q;'S;=`%c<%lO%Qj5zSrY!a`Oy%Qz;'S%Q;'S;=`%c<%lO%Qd6ZUOy%Qz!_%Q!_!`6m!`;'S%Q;'S;=`%c<%lO%Qd6tS!hS!a`Oy%Qz;'S%Q;'S;=`%c<%lO%Qb7VSZQOy%Qz;'S%Q;'S;=`%c<%lO%Q~7fWOY7cZw7cwx.bx#O7c#O#P8O#P;'S7c;'S;=`8z<%lO7c~8RRO;'S7c;'S;=`8[;=`O7c~8_XOY7cZw7cwx.bx#O7c#O#P8O#P;'S7c;'S;=`8z;=`<%l7c<%lO7c~8}P;=`<%l7cj9VSeYOy%Qz;'S%Q;'S;=`%c<%lO%Q~9hOd~n9oUWQvWOy%Qz!_%Q!_!`6m!`;'S%Q;'S;=`%c<%lO%Qj:YWvW!mQOy%Qz!O%Q!O!P:r!P!Q%Q!Q![=w![;'S%Q;'S;=`%c<%lO%Qj:wU!a`Oy%Qz!Q%Q!Q![;Z![;'S%Q;'S;=`%c<%lO%Qj;bY!a`#}YOy%Qz!Q%Q!Q![;Z![!g%Q!g!h<Q!h#X%Q#X#Y<Q#Y;'S%Q;'S;=`%c<%lO%Qj<VY!a`Oy%Qz{%Q{|<u|}%Q}!O<u!O!Q%Q!Q![=^![;'S%Q;'S;=`%c<%lO%Qj<zU!a`Oy%Qz!Q%Q!Q![=^![;'S%Q;'S;=`%c<%lO%Qj=eU!a`#}YOy%Qz!Q%Q!Q![=^![;'S%Q;'S;=`%c<%lO%Qj>O[!a`#}YOy%Qz!O%Q!O!P;Z!P!Q%Q!Q![=w![!g%Q!g!h<Q!h#X%Q#X#Y<Q#Y;'S%Q;'S;=`%c<%lO%Qj>yS!^YOy%Qz;'S%Q;'S;=`%c<%lO%Qj?[WvWOy%Qz!O%Q!O!P:r!P!Q%Q!Q![=w![;'S%Q;'S;=`%c<%lO%Qj?yU]YOy%Qz!Q%Q!Q![;Z![;'S%Q;'S;=`%c<%lO%Q~@bTvWOy%Qz{@q{;'S%Q;'S;=`%c<%lO%Q~@xS!a`#t~Oy%Qz;'S%Q;'S;=`%c<%lO%QjAZ[#}YOy%Qz!O%Q!O!P;Z!P!Q%Q!Q![=w![!g%Q!g!h<Q!h#X%Q#X#Y<Q#Y;'S%Q;'S;=`%c<%lO%QjBUU`YOy%Qz![%Q![!]Bh!];'S%Q;'S;=`%c<%lO%QbBoSaQ!a`Oy%Qz;'S%Q;'S;=`%c<%lO%QjCQSkYOy%Qz;'S%Q;'S;=`%c<%lO%QhCcU!TWOy%Qz!_%Q!_!`Cu!`;'S%Q;'S;=`%c<%lO%QhC|S!TW!a`Oy%Qz;'S%Q;'S;=`%c<%lO%QlDaS!TW!hSOy%Qz;'S%Q;'S;=`%c<%lO%QjDtV!jQ!TWOy%Qz!_%Q!_!`Cu!`!aEZ!a;'S%Q;'S;=`%c<%lO%QbEbS!jQ!a`Oy%Qz;'S%Q;'S;=`%c<%lO%QjEqYOy%Qz}%Q}!OFa!O!c%Q!c!}GO!}#T%Q#T#oGO#o;'S%Q;'S;=`%c<%lO%QjFfW!a`Oy%Qz!c%Q!c!}GO!}#T%Q#T#oGO#o;'S%Q;'S;=`%c<%lO%QjGV[iY!a`Oy%Qz}%Q}!OGO!O!Q%Q!Q![GO![!c%Q!c!}GO!}#T%Q#T#oGO#o;'S%Q;'S;=`%c<%lO%QjHQSmYOy%Qz;'S%Q;'S;=`%c<%lO%QnHcSl^Oy%Qz;'S%Q;'S;=`%c<%lO%QjHtSpYOy%Qz;'S%Q;'S;=`%c<%lO%QjIVSoYOy%Qz;'S%Q;'S;=`%c<%lO%QfIhU!mQOy%Qz!_%Q!_!`6m!`;'S%Q;'S;=`%c<%lO%Q`I}P;=`<%l$q",tokenizers:[LPe,DPe,MPe,$Pe,1,2,3,4,new fw("m~RRYZ[z{a~~g~aO#v~~dP!P!Qg~lO#w~~",28,129)],topRules:{StyleSheet:[0,6],Styles:[1,105]},specialized:[{term:124,get:t=>QPe[t]||-1},{term:125,get:t=>IPe[t]||-1},{term:4,get:t=>jPe[t]||-1},{term:25,get:t=>BPe[t]||-1},{term:123,get:t=>zPe[t]||-1}],tokenPrec:1963});let GP=null;function ZP(){if(!GP&&typeof document=="object"&&document.body){let{style:t}=document.body,e=[],n=new Set;for(let i in t)i!="cssText"&&i!="cssFloat"&&typeof t[i]=="string"&&(/[A-Z]/.test(i)&&(i=i.replace(/[A-Z]/g,r=>"-"+r.toLowerCase())),n.has(i)||(e.push(i),n.add(i)));GP=e.sort().map(i=>({type:"property",label:i,apply:i+": "}))}return GP||[]}const Q8=["active","after","any-link","autofill","backdrop","before","checked","cue","default","defined","disabled","empty","enabled","file-selector-button","first","first-child","first-letter","first-line","first-of-type","focus","focus-visible","focus-within","fullscreen","has","host","host-context","hover","in-range","indeterminate","invalid","is","lang","last-child","last-of-type","left","link","marker","modal","not","nth-child","nth-last-child","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","part","placeholder","placeholder-shown","read-only","read-write","required","right","root","scope","selection","slotted","target","target-text","valid","visited","where"].map(t=>({type:"class",label:t})),I8=["above","absolute","activeborder","additive","activecaption","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","antialiased","appworkspace","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic-abegede-gez","ethiopic-halehame-aa-er","ethiopic-halehame-gez","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","graytext","grid","groove","hand","hard-light","help","hidden","hide","higher","highlight","highlighttext","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","justify","keep-all","landscape","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-hexadecimal","lower-latin","lower-norwegian","lowercase","ltr","luminosity","manipulation","match","matrix","matrix3d","medium","menu","menutext","message-box","middle","min-intrinsic","mix","monospace","move","multiple","multiple_mask_images","multiply","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","opacity","open-quote","optimizeLegibility","optimizeSpeed","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","text","text-bottom","text-top","textarea","textfield","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","to","top","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-latin","uppercase","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"].map(t=>({type:"keyword",label:t})).concat(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"].map(t=>({type:"constant",label:t}))),qPe=["a","abbr","address","article","aside","b","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","dd","del","details","dfn","dialog","div","dl","dt","em","figcaption","figure","footer","form","header","hgroup","h1","h2","h3","h4","h5","h6","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","meter","nav","ol","output","p","pre","ruby","section","select","small","source","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","tr","u","ul"].map(t=>({type:"type",label:t})),XPe=["@charset","@color-profile","@container","@counter-style","@font-face","@font-feature-values","@font-palette-values","@import","@keyframes","@layer","@media","@namespace","@page","@position-try","@property","@scope","@starting-style","@supports","@view-transition"].map(t=>({type:"keyword",label:t})),Cl=/^(\w[\w-]*|-\w[\w-]*|)$/,FPe=/^-(-[\w-]*)?$/;function UPe(t,e){var n;if((t.name=="("||t.type.isError)&&(t=t.parent||t),t.name!="ArgList")return!1;let i=(n=t.parent)===null||n===void 0?void 0:n.firstChild;return i?.name!="Callee"?!1:e.sliceString(i.from,i.to)=="var"}const j8=new VG,WPe=["Declaration"];function GPe(t){for(let e=t;;){if(e.type.isTop)return e;if(!(e=e.parent))return t}}function TK(t,e,n){if(e.to-e.from>4096){let i=j8.get(e);if(i)return i;let r=[],s=new Set,o=e.cursor(Jt.IncludeAnonymous);if(o.firstChild())do for(let a of TK(t,o.node,n))s.has(a.label)||(s.add(a.label),r.push(a));while(o.nextSibling());return j8.set(e,r),r}else{let i=[],r=new Set;return e.cursor().iterate(s=>{var o;if(n(s)&&s.matchContext(WPe)&&((o=s.node.nextSibling)===null||o===void 0?void 0:o.name)==":"){let a=t.sliceString(s.from,s.to);r.has(a)||(r.add(a),i.push({label:a,type:"variable"}))}}),i}}const PK=t=>e=>{let{state:n,pos:i}=e,r=Qt(n).resolveInner(i,-1),s=r.type.isError&&r.from==r.to-1&&n.doc.sliceString(r.from,r.to)=="-";if(r.name=="PropertyName"||(s||r.name=="TagName")&&/^(Block|Styles)$/.test(r.resolve(r.to).name))return{from:r.from,options:ZP(),validFor:Cl};if(r.name=="ValueName")return{from:r.from,options:I8,validFor:Cl};if(r.name=="PseudoClassName")return{from:r.from,options:Q8,validFor:Cl};if(t(r)||(e.explicit||s)&&UPe(r,n.doc))return{from:t(r)||s?r.from:i,options:TK(n.doc,GPe(r),t),validFor:FPe};if(r.name=="TagName"){for(let{parent:l}=r;l;l=l.parent)if(l.name=="Block")return{from:r.from,options:ZP(),validFor:Cl};return{from:r.from,options:qPe,validFor:Cl}}if(r.name=="AtKeyword")return{from:r.from,options:XPe,validFor:Cl};if(!e.explicit)return null;let o=r.resolve(i),a=o.childBefore(i);return a&&a.name==":"&&o.name=="PseudoClassSelector"?{from:i,options:Q8,validFor:Cl}:a&&a.name==":"&&o.name=="Declaration"||o.name=="ArgList"?{from:i,options:I8,validFor:Cl}:o.name=="Block"||o.name=="Styles"?{from:i,options:ZP(),validFor:Cl}:null},AK=PK(t=>t.name=="VariableName"),yx=rc.define({name:"css",parser:VPe.configure({props:[ju.add({Declaration:Am()}),Bu.add({"Block KeyframeList":Lk})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function RK(){return new Ha(yx,yx.data.of({autocomplete:AK}))}const ZPe=Object.freeze(Object.defineProperty({__proto__:null,css:RK,cssCompletionSource:AK,cssLanguage:yx,defineCSSCompletionSource:PK},Symbol.toStringTag,{value:"Module"})),Zb=["_blank","_self","_top","_parent"],HP=["ascii","utf-8","utf-16","latin1","latin1"],YP=["get","post","put","delete"],KP=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],bs=["true","false"],Ne={},HPe={a:{attrs:{href:null,ping:null,type:null,media:null,target:Zb,hreflang:null}},abbr:Ne,address:Ne,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:Ne,aside:Ne,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:Ne,base:{attrs:{href:null,target:Zb}},bdi:Ne,bdo:Ne,blockquote:{attrs:{cite:null}},body:Ne,br:Ne,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:KP,formmethod:YP,formnovalidate:["novalidate"],formtarget:Zb,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:Ne,center:Ne,cite:Ne,code:Ne,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["disabled"],checked:["checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["disabled"],multiple:["multiple"]}},datalist:{attrs:{data:null}},dd:Ne,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:Ne,div:Ne,dl:Ne,dt:Ne,em:Ne,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:Ne,figure:Ne,footer:Ne,form:{attrs:{action:null,name:null,"accept-charset":HP,autocomplete:["on","off"],enctype:KP,method:YP,novalidate:["novalidate"],target:Zb}},h1:Ne,h2:Ne,h3:Ne,h4:Ne,h5:Ne,h6:Ne,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:Ne,hgroup:Ne,hr:Ne,html:{attrs:{manifest:null}},i:Ne,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["autofocus"],checked:["checked"],disabled:["disabled"],formenctype:KP,formmethod:YP,formnovalidate:["novalidate"],formtarget:Zb,multiple:["multiple"],readonly:["readonly"],required:["required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:Ne,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:Ne,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:null,media:null,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:Ne,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:HP,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:Ne,noscript:Ne,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["typemustmatch"]}},ol:{attrs:{reversed:["reversed"],start:null,type:["1","a","A","i","I"]},children:["li","script","template","ul","ol"]},optgroup:{attrs:{disabled:["disabled"],label:null}},option:{attrs:{disabled:["disabled"],label:null,selected:["selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:Ne,param:{attrs:{name:null,value:null}},pre:Ne,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:Ne,rt:Ne,ruby:Ne,samp:Ne,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:HP}},section:Ne,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:Ne,source:{attrs:{src:null,type:null,media:null}},span:Ne,strong:Ne,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:Ne,summary:Ne,sup:Ne,table:Ne,tbody:Ne,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:Ne,textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["autofocus"],disabled:["disabled"],readonly:["readonly"],required:["required"],wrap:["soft","hard"]}},tfoot:Ne,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:Ne,time:{attrs:{datetime:null}},title:Ne,tr:Ne,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:Ne,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["autoplay"],mediagroup:["movie"],muted:["muted"],controls:["controls"]}},wbr:Ne},EK={accesskey:null,class:null,contenteditable:bs,contextmenu:null,dir:["ltr","rtl","auto"],draggable:["true","false","auto"],dropzone:["copy","move","link","string:","file:"],hidden:["hidden"],id:null,inert:["inert"],itemid:null,itemprop:null,itemref:null,itemscope:["itemscope"],itemtype:null,lang:["ar","bn","de","en-GB","en-US","es","fr","hi","id","ja","pa","pt","ru","tr","zh"],spellcheck:bs,autocorrect:bs,autocapitalize:bs,style:null,tabindex:null,title:null,translate:["yes","no"],rel:["stylesheet","alternate","author","bookmark","help","license","next","nofollow","noreferrer","prefetch","prev","search","tag"],role:"alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),"aria-activedescendant":null,"aria-atomic":bs,"aria-autocomplete":["inline","list","both","none"],"aria-busy":bs,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":bs,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":bs,"aria-hidden":bs,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":bs,"aria-multiselectable":bs,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":bs,"aria-relevant":null,"aria-required":bs,"aria-selected":["true","false","undefined"],"aria-setsize":null,"aria-sort":["ascending","descending","none","other"],"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null},MK="beforeunload copy cut dragstart dragover dragleave dragenter dragend drag paste focus blur change click load mousedown mouseenter mouseleave mouseup keydown keyup resize scroll unload".split(" ").map(t=>"on"+t);for(let t of MK)EK[t]=null;class xx{constructor(e,n){this.tags={...HPe,...e},this.globalAttrs={...EK,...n},this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}}xx.default=new xx;function Ym(t,e,n=t.length){if(!e)return"";let i=e.firstChild,r=i&&i.getChild("TagName");return r?t.sliceString(r.from,Math.min(r.to,n)):""}function Km(t,e=!1){for(;t;t=t.parent)if(t.name=="Element")if(e)e=!1;else return t;return null}function $K(t,e,n){let i=n.tags[Ym(t,Km(e))];return i?.children||n.allTags}function b5(t,e){let n=[];for(let i=Km(e);i&&!i.type.isTop;i=Km(i.parent)){let r=Ym(t,i);if(r&&i.lastChild.name=="CloseTag")break;r&&n.indexOf(r)<0&&(e.name=="EndTag"||e.from>=i.firstChild.to)&&n.push(r)}return n}const LK=/^[:\-\.\w\u00b7-\uffff]*$/;function B8(t,e,n,i,r){let s=/\s*>/.test(t.sliceDoc(r,r+5))?"":">",o=Km(n,n.name=="StartTag"||n.name=="TagName");return{from:i,to:r,options:$K(t.doc,o,e).map(a=>({label:a,type:"type"})).concat(b5(t.doc,n).map((a,l)=>({label:"/"+a,apply:"/"+a+s,type:"type",boost:99-l}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function z8(t,e,n,i){let r=/\s*>/.test(t.sliceDoc(i,i+5))?"":">";return{from:n,to:i,options:b5(t.doc,e).map((s,o)=>({label:s,apply:s+r,type:"type",boost:99-o})),validFor:LK}}function YPe(t,e,n,i){let r=[],s=0;for(let o of $K(t.doc,n,e))r.push({label:"<"+o,type:"type"});for(let o of b5(t.doc,n))r.push({label:"</"+o+">",type:"type",boost:99-s++});return{from:i,to:i,options:r,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}function KPe(t,e,n,i,r){let s=Km(n),o=s?e.tags[Ym(t.doc,s)]:null,a=o&&o.attrs?Object.keys(o.attrs):[],l=o&&o.globalAttrs===!1?a:a.length?a.concat(e.globalAttrNames):e.globalAttrNames;return{from:i,to:r,options:l.map(u=>({label:u,type:"property"})),validFor:LK}}function JPe(t,e,n,i,r){var s;let o=(s=n.parent)===null||s===void 0?void 0:s.getChild("AttributeName"),a=[],l;if(o){let u=t.sliceDoc(o.from,o.to),d=e.globalAttrs[u];if(!d){let f=Km(n),m=f?e.tags[Ym(t.doc,f)]:null;d=m?.attrs&&m.attrs[u]}if(d){let f=t.sliceDoc(i,r).toLowerCase(),m='"',g='"';/^['"]/.test(f)?(l=f[0]=='"'?/^[^"]*$/:/^[^']*$/,m="",g=t.sliceDoc(r,r+1)==f[0]?"":f[0],f=f.slice(1),i++):l=/^[^\s<>='"]*$/;for(let y of d)a.push({label:y,apply:m+y+g,type:"constant"})}}return{from:i,to:r,options:a,validFor:l}}function DK(t,e){let{state:n,pos:i}=e,r=Qt(n).resolveInner(i,-1),s=r.resolve(i);for(let o=i,a;s==r&&(a=r.childBefore(o));){let l=a.lastChild;if(!l||!l.type.isError||l.from<l.to)break;s=r=a,o=l.from}return r.name=="TagName"?r.parent&&/CloseTag$/.test(r.parent.name)?z8(n,r,r.from,i):B8(n,t,r,r.from,i):r.name=="StartTag"||r.name=="IncompleteTag"?B8(n,t,r,i,i):r.name=="StartCloseTag"||r.name=="IncompleteCloseTag"?z8(n,r,i,i):r.name=="OpenTag"||r.name=="SelfClosingTag"||r.name=="AttributeName"?KPe(n,t,r,r.name=="AttributeName"?r.from:i,i):r.name=="Is"||r.name=="AttributeValue"||r.name=="UnquotedAttributeValue"?JPe(n,t,r,r.name=="Is"?i:r.from,i):e.explicit&&(s.name=="Element"||s.name=="Text"||s.name=="Document")?YPe(n,t,r,i):null}function NK(t){return DK(xx.default,t)}function QK(t){let{extraTags:e,extraGlobalAttributes:n}=t,i=n||e?new xx(e,n):xx.default;return r=>DK(i,r)}const eAe=wo.parser.configure({top:"SingleExpression"}),IK=[{tag:"script",attrs:t=>t.type=="text/typescript"||t.lang=="ts",parser:o5.parser},{tag:"script",attrs:t=>t.type=="text/babel"||t.type=="text/jsx",parser:a5.parser},{tag:"script",attrs:t=>t.type=="text/typescript-jsx",parser:l5.parser},{tag:"script",attrs(t){return/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(t.type)},parser:eAe},{tag:"script",attrs(t){return!t.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(t.type)},parser:wo.parser},{tag:"style",attrs(t){return(!t.lang||t.lang=="css")&&(!t.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(t.type))},parser:yx.parser}],jK=[{name:"style",parser:yx.parser.configure({top:"Styles"})}].concat(MK.map(t=>({name:t,parser:wo.parser}))),BK=rc.define({name:"html",parser:mPe.configure({props:[ju.add({Element(t){let e=/^(\s*)(<\/)?/.exec(t.textAfter);return t.node.to<=t.pos+e[0].length?t.continue():t.lineIndent(t.node.from)+(e[2]?0:t.unit)},"OpenTag CloseTag SelfClosingTag"(t){return t.column(t.node.from)+t.unit},Document(t){if(t.pos+/\s*/.exec(t.textAfter)[0].length<t.node.to)return t.continue();let e=null,n;for(let i=t.node;;){let r=i.lastChild;if(!r||r.name!="Element"||r.to!=i.to)break;e=i=r}return e&&!((n=e.lastChild)&&(n.name=="CloseTag"||n.name=="SelfClosingTag"))?t.lineIndent(e.from)+t.unit:null}}),Bu.add({Element(t){let e=t.firstChild,n=t.lastChild;return!e||e.name!="OpenTag"?null:{from:e.to,to:n.name=="CloseTag"?n.from:t.to}}}),LH.add({"OpenTag CloseTag":t=>t.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:"<!--",close:"-->"}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-_"}}),y0=BK.configure({wrap:vK(IK,jK)});function zK(t={}){let e="",n;t.matchClosingTags===!1&&(e="noMatch"),t.selfClosingTags===!0&&(e=(e?e+" ":"")+"selfClosing"),(t.nestedLanguages&&t.nestedLanguages.length||t.nestedAttributes&&t.nestedAttributes.length)&&(n=vK((t.nestedLanguages||[]).concat(IK),(t.nestedAttributes||[]).concat(jK)));let i=n?BK.configure({wrap:n,dialect:e}):e?y0.configure({dialect:e}):y0;return new Ha(i,[y0.data.of({autocomplete:QK(t)}),t.autoCloseTags!==!1?VK:[],bw().support,RK().support])}const V8=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),VK=be.inputHandler.of((t,e,n,i,r)=>{if(t.composing||t.state.readOnly||e!=n||i!=">"&&i!="/"||!y0.isActiveAt(t.state,e,-1))return!1;let s=r(),{state:o}=s,a=o.changeByRange(l=>{var u,d,f;let m=o.doc.sliceString(l.from-1,l.to)==i,{head:g}=l,y=Qt(o).resolveInner(g,-1),_;if(m&&i==">"&&y.name=="EndTag"){let v=y.parent;if(((d=(u=v.parent)===null||u===void 0?void 0:u.lastChild)===null||d===void 0?void 0:d.name)!="CloseTag"&&(_=Ym(o.doc,v.parent,g))&&!V8.has(_)){let w=g+(o.doc.sliceString(g,g+1)===">"?1:0),T=`</${_}>`;return{range:l,changes:{from:g,to:w,insert:T}}}}else if(m&&i=="/"&&y.name=="IncompleteCloseTag"){let v=y.parent;if(y.from==g-2&&((f=v.lastChild)===null||f===void 0?void 0:f.name)!="CloseTag"&&(_=Ym(o.doc,v,g))&&!V8.has(_)){let w=g+(o.doc.sliceString(g,g+1)===">"?1:0),T=`${_}>`;return{range:ue.cursor(g+T.length,-1),changes:{from:g,to:w,insert:T}}}}return{range:l}});return a.changes.empty?!1:(t.dispatch([s,o.update(a,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),tAe=Object.freeze(Object.defineProperty({__proto__:null,autoCloseTags:VK,html:zK,htmlCompletionSource:NK,htmlCompletionSourceWith:QK,htmlLanguage:y0},Symbol.toStringTag,{value:"Module"})),qK=Mk({commentTokens:{block:{open:"<!--",close:"-->"}}}),XK=new Ue,FK=b2e.configure({props:[Bu.add(t=>!t.is("Block")||t.is("Document")||tL(t)!=null||nAe(t)?void 0:(e,n)=>({from:n.doc.lineAt(e.from).to,to:e.to})),XK.add(tL),ju.add({Document:()=>null}),gu.add({Document:qK})]});function tL(t){let e=/^(?:ATX|Setext)Heading(\d)$/.exec(t.name);return e?+e[1]:void 0}function nAe(t){return t.name=="OrderedList"||t.name=="BulletList"}function iAe(t,e){let n=t;for(;;){let i=n.nextSibling,r;if(!i||(r=tL(i.type))!=null&&r<=e)break;n=i}return n.to}const rAe=vH.of((t,e,n)=>{for(let i=Qt(t).resolveInner(n,-1);i&&!(i.from<e);i=i.parent){let r=i.type.prop(XK);if(r==null)continue;let s=iAe(i,r);if(s>n)return{from:n,to:s}}return null});function y5(t){return new Ps(qK,t,[],"markdown")}const UK=y5(FK),sAe=FK.configure([P2e,R2e,A2e,E2e,{props:[Bu.add({Table:(t,e)=>({from:e.doc.lineAt(t.from).to,to:t.to})})]}]),Jm=y5(sAe);function oAe(t,e){return n=>{if(n&&t){let i=null;if(n=/\S*/.exec(n)[0],typeof t=="function"?i=t(n):i=oe.matchLanguageName(t,n,!0),i instanceof oe)return i.support?i.support.language.parser:nf.getSkippingParser(i.load());if(i)return i.parser}return e?e.parser:null}}let JP=class{constructor(e,n,i,r,s,o,a){this.node=e,this.from=n,this.to=i,this.spaceBefore=r,this.spaceAfter=s,this.type=o,this.item=a}blank(e,n=!0){let i=this.spaceBefore+(this.node.name=="Blockquote"?">":"");if(e!=null){for(;i.length<e;)i+=" ";return i}else{for(let r=this.to-this.from-i.length-this.spaceAfter.length;r>0;r--)i+=" ";return i+(n?this.spaceAfter:"")}}marker(e,n){let i=this.node.name=="OrderedList"?String(+GK(this.item,e)[2]+n):"";return this.spaceBefore+i+this.type+this.spaceAfter}};function WK(t,e){let n=[],i=[];for(let r=t;r;r=r.parent){if(r.name=="FencedCode")return i;(r.name=="ListItem"||r.name=="Blockquote")&&n.push(r)}for(let r=n.length-1;r>=0;r--){let s=n[r],o,a=e.lineAt(s.from),l=s.from-a.from;if(s.name=="Blockquote"&&(o=/^ *>( ?)/.exec(a.text.slice(l))))i.push(new JP(s,l,l+o[0].length,"",o[1],">",null));else if(s.name=="ListItem"&&s.parent.name=="OrderedList"&&(o=/^( *)\d+([.)])( *)/.exec(a.text.slice(l)))){let u=o[3],d=o[0].length;u.length>=4&&(u=u.slice(0,u.length-4),d-=4),i.push(new JP(s.parent,l,l+d,o[1],u,o[2],s))}else if(s.name=="ListItem"&&s.parent.name=="BulletList"&&(o=/^( *)([-+*])( {1,4}\[[ xX]\])?( +)/.exec(a.text.slice(l)))){let u=o[4],d=o[0].length;u.length>4&&(u=u.slice(0,u.length-4),d-=4);let f=o[2];o[3]&&(f+=o[3].replace(/[xX]/," ")),i.push(new JP(s.parent,l,l+d,o[1],u,f,s))}}return i}function GK(t,e){return/^(\s*)(\d+)(?=[.)])/.exec(e.sliceString(t.from,t.from+10))}function eA(t,e,n,i=0){for(let r=-1,s=t;;){if(s.name=="ListItem"){let a=GK(s,e),l=+a[2];if(r>=0){if(l!=r+1)return;n.push({from:s.from+a[1].length,to:s.from+a[0].length,insert:String(r+2+i)})}r=l}let o=s.nextSibling;if(!o)break;s=o}}function x5(t,e){let n=/^[ \t]*/.exec(t)[0].length;if(!n||e.facet(wg)!=" ")return t;let i=Ko(t,4,n),r="";for(let s=i;s>0;)s>=4?(r+=" ",s-=4):(r+=" ",s--);return r+t.slice(n)}const ZK=(t={})=>({state:e,dispatch:n})=>{let i=Qt(e),{doc:r}=e,s=null,o=e.changeByRange(a=>{if(!a.empty||!Jm.isActiveAt(e,a.from,-1)&&!Jm.isActiveAt(e,a.from,1))return s={range:a};let l=a.from,u=r.lineAt(l),d=WK(i.resolveInner(l,-1),r);for(;d.length&&d[d.length-1].from>l-u.from;)d.pop();if(!d.length)return s={range:a};let f=d[d.length-1];if(f.to-f.spaceAfter.length>l-u.from)return s={range:a};let m=l>=f.to-f.spaceAfter.length&&!/\S/.test(u.text.slice(f.to));if(f.item&&m){let w=f.node.firstChild,T=f.node.getChild("ListItem","ListItem");if(w.to>=l||T&&T.to<l||u.from>0&&!/[^\s>]/.test(r.lineAt(u.from-1).text)||t.nonTightLists===!1){let C=d.length>1?d[d.length-2]:null,E,R="";C&&C.item?(E=u.from+C.from,R=C.marker(r,1)):E=u.from+(C?C.to:0);let P=[{from:E,to:l,insert:R}];return f.node.name=="OrderedList"&&eA(f.item,r,P,-2),C&&C.node.name=="OrderedList"&&eA(C.item,r,P),{range:ue.cursor(E+R.length),changes:P}}else{let C=X8(d,e,u);return{range:ue.cursor(l+C.length+1),changes:{from:u.from,insert:C+e.lineBreak}}}}if(f.node.name=="Blockquote"&&m&&u.from){let w=r.lineAt(u.from-1),T=/>\s*$/.exec(w.text);if(T&&T.index==f.from){let C=e.changes([{from:w.from+T.index,to:w.to},{from:u.from+f.from,to:u.to}]);return{range:a.map(C),changes:C}}}let g=[];f.node.name=="OrderedList"&&eA(f.item,r,g);let y=f.item&&f.item.from<u.from,_="";if(!y||/^[\s\d.)\-+*>]*/.exec(u.text)[0].length>=f.to)for(let w=0,T=d.length-1;w<=T;w++)_+=w==T&&!y?d[w].marker(r,1):d[w].blank(w<T?Ko(u.text,4,d[w+1].from)-_.length:null);let v=l;for(;v>u.from&&/\s/.test(u.text.charAt(v-u.from-1));)v--;return _=x5(_,e),aAe(f.node,e.doc)&&(_=X8(d,e,u)+e.lineBreak+_),g.push({from:v,to:l,insert:e.lineBreak+_}),{range:ue.cursor(v+_.length+1),changes:g}});return s?!1:(n(e.update(o,{scrollIntoView:!0,userEvent:"input"})),!0)},HK=ZK();function q8(t){return t.name=="QuoteMark"||t.name=="ListMark"}function aAe(t,e){if(t.name!="OrderedList"&&t.name!="BulletList")return!1;let n=t.firstChild,i=t.getChild("ListItem","ListItem");if(!i)return!1;let r=e.lineAt(n.to),s=e.lineAt(i.from),o=/^[\s>]*$/.test(r.text);return r.number+(o?0:1)<s.number}function X8(t,e,n){let i="";for(let r=0,s=t.length-2;r<=s;r++)i+=t[r].blank(r<s?Ko(n.text,4,t[r+1].from)-i.length:null,r<s);return x5(i,e)}function lAe(t,e){let n=t.resolveInner(e,-1),i=e;q8(n)&&(i=n.from,n=n.parent);for(let r;r=n.childBefore(i);)if(q8(r))i=r.from;else if(r.name=="OrderedList"||r.name=="BulletList")n=r.lastChild,i=n.to;else break;return n}const YK=({state:t,dispatch:e})=>{let n=Qt(t),i=null,r=t.changeByRange(s=>{let o=s.from,{doc:a}=t;if(s.empty&&Jm.isActiveAt(t,s.from)){let l=a.lineAt(o),u=WK(lAe(n,o),a);if(u.length){let d=u[u.length-1],f=d.to-d.spaceAfter.length+(d.spaceAfter?1:0);if(o-l.from>f&&!/\S/.test(l.text.slice(f,o-l.from)))return{range:ue.cursor(l.from+f),changes:{from:l.from+f,to:o}};if(o-l.from==f&&(!d.item||l.from<=d.item.from||!/\S/.test(l.text.slice(0,d.to)))){let m=l.from+d.from;if(d.item&&d.node.from<d.item.from&&/\S/.test(l.text.slice(d.from,d.to))){let g=d.blank(Ko(l.text,4,d.to)-Ko(l.text,4,d.from));return m==l.from&&(g=x5(g,t)),{range:ue.cursor(m+g.length),changes:{from:m,to:l.from+d.to,insert:g}}}if(m<o)return{range:ue.cursor(m),changes:{from:m,to:o}}}}}return i={range:s}});return i?!1:(e(t.update(r,{scrollIntoView:!0,userEvent:"delete"})),!0)},KK=[{key:"Enter",run:HK},{key:"Backspace",run:YK}],JK=zK({matchClosingTags:!1});function eJ(t={}){let{codeLanguages:e,defaultCodeLanguage:n,addKeymap:i=!0,base:{parser:r}=UK,completeHTMLTags:s=!0,pasteURLAsLink:o=!0,htmlTagLanguage:a=JK}=t;if(!(r instanceof zk))throw new RangeError("Base parser provided to `markdown` should be a Markdown parser");let l=t.extensions?[t.extensions]:[],u=[a.support,rAe],d;o&&u.push(tJ),n instanceof Ha?(u.push(n.support),d=n.language):n&&(d=n);let f=e||d?oAe(e,d):void 0;l.push(x2e({codeParser:f,htmlParser:a.language.parser})),i&&u.push(hc.high(_f.of(KK)));let m=y5(r.configure(l));return s&&u.push(m.data.of({autocomplete:cAe})),new Ha(m,u)}function cAe(t){let{state:e,pos:n}=t,i=/<[:\-\.\w\u00b7-\uffff]*$/.exec(e.sliceDoc(n-25,n));if(!i)return null;let r=Qt(e).resolveInner(n,-1);for(;r&&!r.type.isTop;){if(r.name=="CodeBlock"||r.name=="FencedCode"||r.name=="ProcessingInstructionBlock"||r.name=="CommentBlock"||r.name=="Link"||r.name=="Image")return null;r=r.parent}return{from:n-i[0].length,to:n,options:uAe(),validFor:/^<[:\-\.\w\u00b7-\uffff]*$/}}let tA=null;function uAe(){if(tA)return tA;let t=NK(new HN(ct.create({extensions:JK}),0,!0));return tA=t?t.options:[]}const hAe=/code|horizontalrule|html|link|comment|processing|escape|entity|image|mark|url/i,tJ=be.domEventHandlers({paste:(t,e)=>{var n;let{main:i}=e.state.selection;if(i.empty)return!1;let r=(n=t.clipboardData)===null||n===void 0?void 0:n.getData("text/plain");if(!r||!/^(https?:\/\/|mailto:|xmpp:|www\.)/.test(r)||(/^www\./.test(r)&&(r="https://"+r),!Jm.isActiveAt(e.state,i.from,1)))return!1;let s=Qt(e.state),o=!1;return s.iterate({from:i.from,to:i.to,enter:a=>{(a.from>i.from||hAe.test(a.name))&&(o=!0)},leave:a=>{a.to<i.to&&(o=!0)}}),o?!1:(e.dispatch({changes:[{from:i.from,insert:"["},{from:i.to,insert:`](${r})`}],userEvent:"input.paste",scrollIntoView:!0}),!0)}}),dAe=Object.freeze(Object.defineProperty({__proto__:null,commonmarkLanguage:UK,deleteMarkupBackward:YK,insertNewlineContinueMarkup:HK,insertNewlineContinueMarkupCommand:ZK,markdown:eJ,markdownKeymap:KK,markdownLanguage:Jm,pasteURLAsLink:tJ},Symbol.toStringTag,{value:"Module"})),Zp=63,F8=64,fAe=1,pAe=2,nJ=3,mAe=4,iJ=5,gAe=6,bAe=7,rJ=65,yAe=66,xAe=8,OAe=9,_Ae=10,vAe=11,SAe=12,sJ=13,wAe=19,kAe=20,CAe=29,TAe=33,PAe=34,AAe=47,RAe=0,O5=1,nL=2,Ox=3,iL=4;class yd{constructor(e,n,i){this.parent=e,this.depth=n,this.type=i,this.hash=(e?e.hash+e.hash<<8:0)+n+(n<<4)+i}}yd.top=new yd(null,-1,RAe);function x0(t,e){for(let n=0,i=e-t.pos-1;;i--,n++){let r=t.peek(i);if(oc(r)||r==-1)return n}}function rL(t){return t==32||t==9}function oc(t){return t==10||t==13}function oJ(t){return rL(t)||oc(t)}function Cd(t){return t<0||oJ(t)}const EAe=new ZN({start:yd.top,reduce(t,e){return t.type==Ox&&(e==kAe||e==PAe)?t.parent:t},shift(t,e,n,i){if(e==nJ)return new yd(t,x0(i,i.pos),O5);if(e==rJ||e==iJ)return new yd(t,x0(i,i.pos),nL);if(e==Zp)return t.parent;if(e==wAe||e==TAe)return new yd(t,0,Ox);if(e==sJ&&t.type==iL)return t.parent;if(e==AAe){let r=/[1-9]/.exec(i.read(i.pos,n.pos));if(r)return new yd(t,t.depth+ +r[0],iL)}return t},hash(t){return t.hash}});function eg(t,e,n=0){return t.peek(n)==e&&t.peek(n+1)==e&&t.peek(n+2)==e&&Cd(t.peek(n+3))}const MAe=new Bi((t,e)=>{if(t.next==-1&&e.canShift(F8))return t.acceptToken(F8);let n=t.peek(-1);if((oc(n)||n<0)&&e.context.type!=Ox){if(eg(t,45))if(e.canShift(Zp))t.acceptToken(Zp);else return t.acceptToken(fAe,3);if(eg(t,46))if(e.canShift(Zp))t.acceptToken(Zp);else return t.acceptToken(pAe,3);let i=0;for(;t.next==32;)i++,t.advance();(i<e.context.depth||i==e.context.depth&&e.context.type==O5&&(t.next!=45||!Cd(t.peek(1))))&&t.next!=-1&&!oc(t.next)&&t.next!=35&&t.acceptToken(Zp,-i)}},{contextual:!0}),$Ae=new Bi((t,e)=>{if(e.context.type==Ox){t.next==63&&(t.advance(),Cd(t.next)&&t.acceptToken(bAe));return}if(t.next==45)t.advance(),Cd(t.next)&&t.acceptToken(e.context.type==O5&&e.context.depth==x0(t,t.pos-1)?mAe:nJ);else if(t.next==63)t.advance(),Cd(t.next)&&t.acceptToken(e.context.type==nL&&e.context.depth==x0(t,t.pos-1)?gAe:iJ);else{let n=t.pos;for(;;)if(rL(t.next)){if(t.pos==n)return;t.advance()}else if(t.next==33)aJ(t);else if(t.next==38)sL(t);else if(t.next==42){sL(t);break}else if(t.next==39||t.next==34){if(_5(t,!0))break;return}else if(t.next==91||t.next==123){if(!DAe(t))return;break}else{lJ(t,!0,!1,0);break}for(;rL(t.next);)t.advance();if(t.next==58){if(t.pos==n&&e.canShift(CAe))return;let i=t.peek(1);Cd(i)&&t.acceptTokenTo(e.context.type==nL&&e.context.depth==x0(t,n)?yAe:rJ,n)}}},{contextual:!0});function LAe(t){return t>32&&t<127&&t!=34&&t!=37&&t!=44&&t!=60&&t!=62&&t!=92&&t!=94&&t!=96&&t!=123&&t!=124&&t!=125}function U8(t){return t>=48&&t<=57||t>=97&&t<=102||t>=65&&t<=70}function W8(t,e){return t.next==37?(t.advance(),U8(t.next)&&t.advance(),U8(t.next)&&t.advance(),!0):LAe(t.next)||e&&t.next==44?(t.advance(),!0):!1}function aJ(t){if(t.advance(),t.next==60){for(t.advance();;)if(!W8(t,!0)){t.next==62&&t.advance();break}}else for(;W8(t,!1););}function sL(t){for(t.advance();!Cd(t.next)&&_w(t.tag)!="f";)t.advance()}function _5(t,e){let n=t.next,i=!1,r=t.pos;for(t.advance();;){let s=t.next;if(s<0)break;if(t.advance(),s==n)if(s==39)if(t.next==39)t.advance();else break;else break;else if(s==92&&n==34)t.next>=0&&t.advance();else if(oc(s)){if(e)return!1;i=!0}else if(e&&t.pos>=r+1024)return!1}return!i}function DAe(t){for(let e=[],n=t.pos+1024;;)if(t.next==91||t.next==123)e.push(t.next),t.advance();else if(t.next==39||t.next==34){if(!_5(t,!0))return!1}else if(t.next==93||t.next==125){if(e[e.length-1]!=t.next-2)return!1;if(e.pop(),t.advance(),!e.length)return!0}else{if(t.next<0||t.pos>n||oc(t.next))return!1;t.advance()}}const NAe="iiisiiissisfissssssssssssisssiiissssssssssssssssssssssssssfsfssissssssssssssssssssssssssssfif";function _w(t){return t<33?"u":t>125?"s":NAe[t-33]}function nA(t,e){let n=_w(t);return n!="u"&&!(e&&n=="f")}function lJ(t,e,n,i){if(_w(t.next)=="s"||(t.next==63||t.next==58||t.next==45)&&nA(t.peek(1),n))t.advance();else return!1;let r=t.pos;for(;;){let s=t.next,o=0,a=i+1;for(;oJ(s);){if(oc(s)){if(e)return!1;a=0}else a++;s=t.peek(++o)}if(!(s>=0&&(s==58?nA(t.peek(o+1),n):s==35?t.peek(o-1)!=32:nA(s,n)))||!n&&a<=i||a==0&&!n&&(eg(t,45,o)||eg(t,46,o)))break;if(e&&_w(s)=="f")return!1;for(let u=o;u>=0;u--)t.advance();if(e&&t.pos>r+1024)return!1}return!0}const QAe=new Bi((t,e)=>{if(t.next==33)aJ(t),t.acceptToken(SAe);else if(t.next==38||t.next==42){let n=t.next==38?_Ae:vAe;sL(t),t.acceptToken(n)}else t.next==39||t.next==34?(_5(t,!1),t.acceptToken(OAe)):lJ(t,!1,e.context.type==Ox,e.context.depth)&&t.acceptToken(xAe)}),IAe=new Bi((t,e)=>{let n=e.context.type==iL?e.context.depth:-1,i=t.pos;e:for(;;){let r=0,s=t.next;for(;s==32;)s=t.peek(++r);if(!r&&(eg(t,45,r)||eg(t,46,r))||!oc(s)&&(n<0&&(n=Math.max(e.context.depth+1,r)),r<n))break;for(;;){if(t.next<0)break e;let o=oc(t.next);if(t.advance(),o)continue e;i=t.pos}}t.acceptTokenTo(sJ,i)}),jAe=dc({DirectiveName:O.keyword,DirectiveContent:O.attributeValue,"DirectiveEnd DocEnd":O.meta,QuotedLiteral:O.string,BlockLiteralHeader:O.special(O.string),BlockLiteralContent:O.content,Literal:O.content,"Key/Literal Key/QuotedLiteral":O.definition(O.propertyName),"Anchor Alias":O.labelName,Tag:O.typeName,Comment:O.lineComment,": , -":O.separator,"?":O.punctuation,"[ ]":O.squareBracket,"{ }":O.brace}),BAe=sc.deserialize({version:14,states:"5lQ!ZQgOOO#PQfO'#CpO#uQfO'#DOOOQR'#Dv'#DvO$qQgO'#DRO%gQdO'#DUO%nQgO'#DUO&ROaO'#D[OOQR'#Du'#DuO&{QgO'#D^O'rQgO'#D`OOQR'#Dt'#DtO(iOqO'#DbOOQP'#Dj'#DjO(zQaO'#CmO)YQgO'#CmOOQP'#Cm'#CmQ)jQaOOQ)uQgOOQ]QgOOO*PQdO'#CrO*nQdO'#CtOOQO'#Dw'#DwO+]Q`O'#CxO+hQdO'#CwO+rQ`O'#CwOOQO'#Cv'#CvO+wQdO'#CvOOQO'#Cq'#CqO,UQ`O,59[O,^QfO,59[OOQR,59[,59[OOQO'#Cx'#CxO,eQ`O'#DPO,pQdO'#DPOOQO'#Dx'#DxO,zQdO'#DxO-XQ`O,59jO-aQfO,59jOOQR,59j,59jOOQR'#DS'#DSO-hQcO,59mO-sQgO'#DVO.TQ`O'#DVO.YQcO,59pOOQR'#DX'#DXO#|QfO'#DWO.hQcO'#DWOOQR,59v,59vO.yOWO,59vO/OOaO,59vO/WOaO,59vO/cQgO'#D_OOQR,59x,59xO0VQgO'#DaOOQR,59z,59zOOQP,59|,59|O0yOaO,59|O1ROaO,59|O1aOqO,59|OOQP-E7h-E7hO1oQgO,59XOOQP,59X,59XO2PQaO'#DeO2_QgO'#DeO2oQgO'#DkOOQP'#Dk'#DkQ)jQaOOO3PQdO'#CsOOQO,59^,59^O3kQdO'#CuOOQO,59`,59`OOQO,59c,59cO4VQdO,59cO4aQdO'#CzO4kQ`O'#CzOOQO,59b,59bOOQU,5:Q,5:QOOQR1G.v1G.vO4pQ`O1G.vOOQU-E7d-E7dO4xQdO,59kOOQO,59k,59kO5SQdO'#DQO5^Q`O'#DQOOQO,5:d,5:dOOQU,5:R,5:ROOQR1G/U1G/UO5cQ`O1G/UOOQU-E7e-E7eO5kQgO'#DhO5xQcO1G/XOOQR1G/X1G/XOOQR,59q,59qO6TQgO,59qO6eQdO'#DiO6lQgO'#DiO7PQcO1G/[OOQR1G/[1G/[OOQR,59r,59rO#|QfO,59rOOQR1G/b1G/bO7_OWO1G/bO7dOaO1G/bOOQR,59y,59yOOQR,59{,59{OOQP1G/h1G/hO7lOaO1G/hO7tOaO1G/hO8POaO1G/hOOQP1G.s1G.sO8_QgO,5:POOQP,5:P,5:POOQP,5:V,5:VOOQP-E7i-E7iOOQO,59_,59_OOQO,59a,59aOOQO1G.}1G.}OOQO,59f,59fO8oQdO,59fOOQR7+$b7+$bP,XQ`O'#DfOOQO1G/V1G/VOOQO,59l,59lO8yQdO,59lOOQR7+$p7+$pP9TQ`O'#DgOOQR'#DT'#DTOOQR,5:S,5:SOOQR-E7f-E7fOOQR7+$s7+$sOOQR1G/]1G/]O9YQgO'#DYO9jQ`O'#DYOOQR,5:T,5:TO#|QfO'#DZO9oQcO'#DZOOQR-E7g-E7gOOQR7+$v7+$vOOQR1G/^1G/^OOQR7+$|7+$|O:QOWO7+$|OOQP7+%S7+%SO:VOaO7+%SO:_OaO7+%SOOQP1G/k1G/kOOQO1G/Q1G/QOOQO1G/W1G/WOOQR,59t,59tO:jQgO,59tOOQR,59u,59uO#|QfO,59uOOQR<<Hh<<HhOOQP<<Hn<<HnO:zOaO<<HnOOQR1G/`1G/`OOQR1G/a1G/aOOQPAN>YAN>Y",stateData:";S~O!fOS!gOS^OS~OP_OQbORSOTUOWROXROYYOZZO[XOcPOqQO!PVO!V[O!cTO~O`cO~P]OVkOWROXROYeOZfO[dOcPOmhOqQO~OboO~P!bOVtOWROXROYeOZfO[dOcPOmrOqQO~OpwO~P#WORSOTUOWROXROYYOZZO[XOcPOqQO!PVO!cTO~OSvP!avP!bvP~P#|OWROXROYeOZfO[dOcPOqQO~OmzO~P%OOm!OOUzP!azP!bzP!dzP~P#|O^!SO!b!QO!f!TO!g!RO~ORSOTUOWROXROcPOqQO!PVO!cTO~OY!UOP!QXQ!QX!V!QX!`!QXS!QX!a!QX!b!QXU!QXm!QX!d!QX~P&aO[!WOP!SXQ!SX!V!SX!`!SXS!SX!a!SX!b!SXU!SXm!SX!d!SX~P&aO^!ZO!W![O!b!YO!f!]O!g!YO~OP!_O!V[OQaX!`aX~OPaXQaX!VaX!`aX~P#|OP!bOQ!cO!V[O~OP_O!V[O~P#|OWROXROY!fOcPOqQObfXmfXofXpfX~OWROXRO[!hOcPOqQObhXmhXohXphX~ObeXmlXoeX~ObkXokX~P%OOm!kO~Om!lObnPonP~P%OOb!pOo!oO~Ob!pO~P!bOm!sOosXpsX~OosXpsX~P%OOm!uOotPptP~P%OOo!xOp!yO~Op!yO~P#WOS!|O!a#OO!b#OO~OUyX!ayX!byX!dyX~P#|Om#QO~OU#SO!a#UO!b#UO!d#RO~Om#WOUzX!azX!bzX!dzX~O]#XO~O!b#XO!g#YO~O^#ZO!b#XO!g#YO~OP!RXQ!RX!V!RX!`!RXS!RX!a!RX!b!RXU!RXm!RX!d!RX~P&aOP!TXQ!TX!V!TX!`!TXS!TX!a!TX!b!TXU!TXm!TX!d!TX~P&aO!b#^O!g#^O~O^#_O!b#^O!f#`O!g#^O~O^#_O!W#aO!b#^O!g#^O~OPaaQaa!Vaa!`aa~P#|OP#cO!V[OQ!XX!`!XX~OP!XXQ!XX!V!XX!`!XX~P#|OP_O!V[OQ!_X!`!_X~P#|OWROXROcPOqQObgXmgXogXpgX~OWROXROcPOqQObiXmiXoiXpiX~Obkaoka~P%OObnXonX~P%OOm#kO~Ob#lOo!oO~Oosapsa~P%OOotXptX~P%OOm#pO~Oo!xOp#qO~OSwP!awP!bwP~P#|OS!|O!a#vO!b#vO~OUya!aya!bya!dya~P#|Om#xO~P%OOm#{OU}P!a}P!b}P!d}P~P#|OU#SO!a$OO!b$OO!d#RO~O]$QO~O!b$QO!g$RO~O!b$SO!g$SO~O^$TO!b$SO!g$SO~O^$TO!b$SO!f$UO!g$SO~OP!XaQ!Xa!V!Xa!`!Xa~P#|Obnaona~P%OOotapta~P%OOo!xO~OU|X!a|X!b|X!d|X~P#|Om$ZO~Om$]OU}X!a}X!b}X!d}X~O]$^O~O!b$_O!g$_O~O^$`O!b$_O!g$_O~OU|a!a|a!b|a!d|a~P#|O!b$cO!g$cO~O",goto:",]!mPPPPPPPPPPPPPPPPP!nPP!v#v#|$`#|$c$f$j$nP%VPPP!v%Y%^%a%{&O%a&R&U&X&_&b%aP&e&{&e'O'RPP']'a'g'm's'y(XPPPPPPPP(_)e*X+c,VUaObcR#e!c!{ROPQSTUXY_bcdehknrtvz!O!U!W!_!b!c!f!h!k!l!s!u!|#Q#R#S#W#c#k#p#x#{$Z$]QmPR!qnqfPQThknrtv!k!l!s!u#R#k#pR!gdR!ieTlPnTjPnSiPnSqQvQ{TQ!mkQ!trQ!vtR#y#RR!nkTsQvR!wt!RWOSUXY_bcz!O!U!W!_!b!c!|#Q#S#W#c#x#{$Z$]RySR#t!|R|TR|UQ!PUR#|#SR#z#RR#z#SyZOSU_bcz!O!_!b!c!|#Q#S#W#c#x#{$Z$]R!VXR!XYa]O^abc!a!c!eT!da!eQnPR!rnQvQR!{vQ!}yR#u!}Q#T|R#}#TW^Obc!cS!^^!aT!aa!eQ!eaR#f!eW`Obc!cQxSS}U#SQ!`_Q#PzQ#V!OQ#b!_Q#d!bQ#s!|Q#w#QQ$P#WQ$V#cQ$Y#xQ$[#{Q$a$ZR$b$]xZOSU_bcz!O!_!b!c!|#Q#S#W#c#x#{$Z$]Q!VXQ!XYQ#[!UR#]!W!QWOSUXY_bcz!O!U!W!_!b!c!|#Q#S#W#c#x#{$Z$]pfPQThknrtv!k!l!s!u#R#k#pQ!gdQ!ieQ#g!fR#h!hSgPn^pQTkrtv#RQ!jhQ#i!kQ#j!lQ#n!sQ#o!uQ$W#kR$X#pQuQR!zv",nodeNames:"⚠ DirectiveEnd DocEnd - - ? ? ? Literal QuotedLiteral Anchor Alias Tag BlockLiteralContent Comment Stream BOM Document ] [ FlowSequence Item Tagged Anchored Anchored Tagged FlowMapping Pair Key : Pair , } { FlowMapping Pair Pair BlockSequence Item Item BlockMapping Pair Pair Key Pair Pair BlockLiteral BlockLiteralHeader Tagged Anchored Anchored Tagged Directive DirectiveName DirectiveContent Document",maxTerm:74,context:EAe,nodeProps:[["isolate",-3,8,9,14,""],["openedBy",18,"[",32,"{"],["closedBy",19,"]",33,"}"]],propSources:[jAe],skippedNodes:[0],repeatNodeCount:6,tokenData:"-Y~RnOX#PXY$QYZ$]Z]#P]^$]^p#Ppq$Qqs#Pst$btu#Puv$yv|#P|}&e}![#P![!]'O!]!`#P!`!a'i!a!}#P!}#O*g#O#P#P#P#Q+Q#Q#o#P#o#p+k#p#q'i#q#r,U#r;'S#P;'S;=`#z<%l?HT#P?HT?HU,o?HUO#PQ#UU!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PQ#kTOY#PZs#Pt;'S#P;'S;=`#z<%lO#PQ#}P;=`<%l#P~$VQ!f~XY$Qpq$Q~$bO!g~~$gS^~OY$bZ;'S$b;'S;=`$s<%lO$b~$vP;=`<%l$bR%OX!WQOX%kXY#PZ]%k]^#P^p%kpq#hq;'S%k;'S;=`&_<%lO%kR%rX!WQ!VPOX%kXY#PZ]%k]^#P^p%kpq#hq;'S%k;'S;=`&_<%lO%kR&bP;=`<%l%kR&lUoP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR'VUmP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR'p[!PP!WQOY#PZp#Ppq#hq{#P{|(f|}#P}!O(f!O!R#P!R![)p![;'S#P;'S;=`#z<%lO#PR(mW!PP!WQOY#PZp#Ppq#hq!R#P!R![)V![;'S#P;'S;=`#z<%lO#PR)^U!PP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR)wY!PP!WQOY#PZp#Ppq#hq{#P{|)V|}#P}!O)V!O;'S#P;'S;=`#z<%lO#PR*nUcP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR+XUbP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR+rUqP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR,]UpP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR,vU`P!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#P",tokenizers:[MAe,$Ae,QAe,IAe,0,1],topRules:{Stream:[0,15]},tokenPrec:0}),zAe=sc.deserialize({version:14,states:"!vOQOPOOO]OPO'#C_OhOPO'#C^OOOO'#Cc'#CcOpOPO'#CaQOOOOOO{OPOOOOOO'#Cb'#CbO!WOPO'#C`O!`OPO,58xOOOO-E6a-E6aOOOO-E6`-E6`OOOO'#C_'#C_OOOO1G.d1G.d",stateData:"!h~OXPOYROWTP~OWVXXRXYRX~OYVOXSP~OXROYROWTX~OXROYROWTP~OYVOXSX~OX[O~OXY~",goto:"vWPPX[beioRUOQQOR]XRXQTTOUQWQRZWSSOURYS",nodeNames:"⚠ Document Frontmatter DashLine FrontmatterContent Body",maxTerm:10,skippedNodes:[0],repeatNodeCount:2,tokenData:"$z~RXOYnYZ!^Z]n]^!^^}n}!O!i!O;'Sn;'S;=`!c<%lOn~qXOYnYZ!^Z]n]^!^^;'Sn;'S;=`!c<%l~n~On~~!^~!cOY~~!fP;=`<%ln~!lZOYnYZ!^Z]n]^!^^}n}!O#_!O;'Sn;'S;=`!c<%l~n~On~~!^~#bZOYnYZ!^Z]n]^!^^}n}!O$T!O;'Sn;'S;=`!c<%l~n~On~~!^~$WXOYnYZ$sZ]n]^$s^;'Sn;'S;=`!c<%l~n~On~~$s~$zOX~Y~",tokenizers:[0],topRules:{Document:[0,1]},tokenPrec:67}),v5=rc.define({name:"yaml",parser:BAe.configure({props:[ju.add({Stream:t=>{for(let e=t.node.resolve(t.pos,-1);e&&e.to>=t.pos;e=e.parent){if(e.name=="BlockLiteralContent"&&e.from<e.to)return t.baseIndentFor(e);if(e.name=="BlockLiteral")return t.baseIndentFor(e)+t.unit;if(e.name=="BlockSequence"||e.name=="BlockMapping")return t.column(e.from,1);if(e.name=="QuotedLiteral")return null;if(e.name=="Literal"){let n=t.column(e.from,1);if(n==t.lineIndent(e.from,1))return n;if(e.to>t.pos)return null}}return null},FlowMapping:j$({closing:"}"}),FlowSequence:j$({closing:"]"})}),Bu.add({"FlowMapping FlowSequence":Lk,"Item Pair BlockLiteral":(t,e)=>({from:e.doc.lineAt(t.from).to,to:t.to})})]}),languageData:{commentTokens:{line:"#"},indentOnInput:/^\s*[\]\}]$/}});function cJ(){return new Ha(v5)}const VAe=rc.define({name:"yaml-frontmatter",parser:zAe.configure({props:[dc({DashLine:O.meta})]})});function qAe(t){let{language:e,support:n}=t.content instanceof Ha?t.content:{language:t.content,support:[]};return new Ha(VAe.configure({wrap:wN(i=>i.name=="FrontmatterContent"?{parser:v5.parser}:i.name=="Body"?{parser:e.parser}:null)}),n)}const XAe=Object.freeze(Object.defineProperty({__proto__:null,yaml:cJ,yamlFrontmatter:qAe,yamlLanguage:v5},Symbol.toStringTag,{value:"Module"}));function pe(t){return new Ha(qN.define(t))}function Zc(t){return M(()=>import("./index-C8plA36d.js"),[]).then(e=>e.sql({dialect:e[t]}))}const FAe=[oe.of({name:"C",extensions:["c","h","ino"],load(){return M(()=>import("./index-O_rM1JNe.js"),[]).then(t=>t.cpp())}}),oe.of({name:"C++",alias:["cpp"],extensions:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],load(){return M(()=>import("./index-O_rM1JNe.js"),[]).then(t=>t.cpp())}}),oe.of({name:"CQL",alias:["cassandra"],extensions:["cql"],load(){return Zc("Cassandra")}}),oe.of({name:"CSS",extensions:["css"],load(){return M(()=>Promise.resolve().then(()=>ZPe),void 0).then(t=>t.css())}}),oe.of({name:"Go",extensions:["go"],load(){return M(()=>import("./index-Cjzi7_OD.js"),[]).then(t=>t.go())}}),oe.of({name:"HTML",alias:["xhtml"],extensions:["html","htm","handlebars","hbs"],load(){return M(()=>Promise.resolve().then(()=>tAe),void 0).then(t=>t.html())}}),oe.of({name:"Java",extensions:["java"],load(){return M(()=>import("./index-CwFqLBhc.js"),[]).then(t=>t.java())}}),oe.of({name:"JavaScript",alias:["ecmascript","js","node"],extensions:["js","mjs","cjs"],load(){return M(()=>Promise.resolve().then(()=>Rv),void 0).then(t=>t.javascript())}}),oe.of({name:"Jinja",extensions:["j2","jinja","jinja2"],load(){return M(()=>import("./index-8sZLSzXw.js"),[]).then(t=>t.jinja())}}),oe.of({name:"JSON",alias:["json5"],extensions:["json","map"],load(){return M(()=>Promise.resolve().then(()=>s2e),void 0).then(t=>t.json())}}),oe.of({name:"JSX",extensions:["jsx"],load(){return M(()=>Promise.resolve().then(()=>Rv),void 0).then(t=>t.javascript({jsx:!0}))}}),oe.of({name:"LESS",extensions:["less"],load(){return M(()=>import("./index-9sfTCi5X.js"),[]).then(t=>t.less())}}),oe.of({name:"Liquid",extensions:["liquid"],load(){return M(()=>import("./index-Bu9lbbxV.js"),[]).then(t=>t.liquid())}}),oe.of({name:"MariaDB SQL",load(){return Zc("MariaSQL")}}),oe.of({name:"Markdown",extensions:["md","markdown","mkd"],load(){return M(()=>Promise.resolve().then(()=>dAe),void 0).then(t=>t.markdown())}}),oe.of({name:"MS SQL",load(){return Zc("MSSQL")}}),oe.of({name:"MySQL",load(){return Zc("MySQL")}}),oe.of({name:"PHP",extensions:["php","php3","php4","php5","php7","phtml"],load(){return M(()=>import("./index-BsUtispe.js"),[]).then(t=>t.php())}}),oe.of({name:"PLSQL",extensions:["pls"],load(){return Zc("PLSQL")}}),oe.of({name:"PostgreSQL",load(){return Zc("PostgreSQL")}}),oe.of({name:"Python",extensions:["BUILD","bzl","py","pyw"],filename:/^(BUCK|BUILD)$/,load(){return M(()=>import("./index-opaOPY1E.js"),[]).then(t=>t.python())}}),oe.of({name:"Rust",extensions:["rs"],load(){return M(()=>import("./index-DpehSrP7.js"),[]).then(t=>t.rust())}}),oe.of({name:"Sass",extensions:["sass"],load(){return M(()=>import("./index-BKFiK0_O.js"),[]).then(t=>t.sass({indented:!0}))}}),oe.of({name:"SCSS",extensions:["scss"],load(){return M(()=>import("./index-BKFiK0_O.js"),[]).then(t=>t.sass())}}),oe.of({name:"SQL",extensions:["sql"],load(){return Zc("StandardSQL")}}),oe.of({name:"SQLite",load(){return Zc("SQLite")}}),oe.of({name:"TSX",extensions:["tsx"],load(){return M(()=>Promise.resolve().then(()=>Rv),void 0).then(t=>t.javascript({jsx:!0,typescript:!0}))}}),oe.of({name:"TypeScript",alias:["ts"],extensions:["ts","mts","cts"],load(){return M(()=>Promise.resolve().then(()=>Rv),void 0).then(t=>t.javascript({typescript:!0}))}}),oe.of({name:"WebAssembly",extensions:["wat","wast"],load(){return M(()=>import("./index-BbqgdZj-.js"),[]).then(t=>t.wast())}}),oe.of({name:"XML",alias:["rss","wsdl","xsd"],extensions:["xml","xsl","xsd","svg"],load(){return M(()=>import("./index-CI4RIvea.js"),[]).then(t=>t.xml())}}),oe.of({name:"YAML",alias:["yml"],extensions:["yaml","yml"],load(){return M(()=>Promise.resolve().then(()=>XAe),void 0).then(t=>t.yaml())}}),oe.of({name:"APL",extensions:["dyalog","apl"],load(){return M(()=>import("./apl-B4CMkyY2.js"),[]).then(t=>pe(t.apl))}}),oe.of({name:"PGP",alias:["asciiarmor"],extensions:["asc","pgp","sig"],load(){return M(()=>import("./asciiarmor-Df11BRmG.js"),[]).then(t=>pe(t.asciiArmor))}}),oe.of({name:"ASN.1",extensions:["asn","asn1"],load(){return M(()=>import("./asn1-EdZsLKOL.js"),[]).then(t=>pe(t.asn1({})))}}),oe.of({name:"Asterisk",filename:/^extensions\.conf$/i,load(){return M(()=>import("./asterisk-B-8jnY81.js"),[]).then(t=>pe(t.asterisk))}}),oe.of({name:"Brainfuck",extensions:["b","bf"],load(){return M(()=>import("./brainfuck-C4LP7Hcl.js"),[]).then(t=>pe(t.brainfuck))}}),oe.of({name:"Cobol",extensions:["cob","cpy"],load(){return M(()=>import("./cobol-CWcv1MsR.js"),[]).then(t=>pe(t.cobol))}}),oe.of({name:"C#",alias:["csharp","cs"],extensions:["cs"],load(){return M(()=>import("./clike-B9uivgTg.js"),[]).then(t=>pe(t.csharp))}}),oe.of({name:"Clojure",extensions:["clj","cljc","cljx"],load(){return M(()=>import("./clojure-BMjYHr_A.js"),[]).then(t=>pe(t.clojure))}}),oe.of({name:"ClojureScript",extensions:["cljs"],load(){return M(()=>import("./clojure-BMjYHr_A.js"),[]).then(t=>pe(t.clojure))}}),oe.of({name:"Closure Stylesheets (GSS)",extensions:["gss"],load(){return M(()=>import("./css-BnMrqG3P.js"),[]).then(t=>pe(t.gss))}}),oe.of({name:"CMake",extensions:["cmake","cmake.in"],filename:/^CMakeLists\.txt$/,load(){return M(()=>import("./cmake-BQqOBYOt.js"),[]).then(t=>pe(t.cmake))}}),oe.of({name:"CoffeeScript",alias:["coffee","coffee-script"],extensions:["coffee"],load(){return M(()=>import("./coffeescript-S37ZYGWr.js"),[]).then(t=>pe(t.coffeeScript))}}),oe.of({name:"Common Lisp",alias:["lisp"],extensions:["cl","lisp","el"],load(){return M(()=>import("./commonlisp-DBKNyK5s.js"),[]).then(t=>pe(t.commonLisp))}}),oe.of({name:"Cypher",extensions:["cyp","cypher"],load(){return M(()=>import("./cypher-C_CwsFkJ.js"),[]).then(t=>pe(t.cypher))}}),oe.of({name:"Cython",extensions:["pyx","pxd","pxi"],load(){return M(()=>import("./python-BuPzkPfP.js"),[]).then(t=>pe(t.cython))}}),oe.of({name:"Crystal",extensions:["cr"],load(){return M(()=>import("./crystal-SjHAIU92.js"),[]).then(t=>pe(t.crystal))}}),oe.of({name:"D",extensions:["d"],load(){return M(()=>import("./d-pRatUO7H.js"),[]).then(t=>pe(t.d))}}),oe.of({name:"Dart",extensions:["dart"],load(){return M(()=>import("./clike-B9uivgTg.js"),[]).then(t=>pe(t.dart))}}),oe.of({name:"diff",extensions:["diff","patch"],load(){return M(()=>import("./diff-DbItnlRl.js"),[]).then(t=>pe(t.diff))}}),oe.of({name:"Dockerfile",filename:/^Dockerfile$/,load(){return M(()=>import("./dockerfile-BKs6k2Af.js"),__vite__mapDeps([97,98])).then(t=>pe(t.dockerFile))}}),oe.of({name:"DTD",extensions:["dtd"],load(){return M(()=>import("./dtd-DF_7sFjM.js"),[]).then(t=>pe(t.dtd))}}),oe.of({name:"Dylan",extensions:["dylan","dyl","intr"],load(){return M(()=>import("./dylan-DwRh75JA.js"),[]).then(t=>pe(t.dylan))}}),oe.of({name:"EBNF",load(){return M(()=>import("./ebnf-CDyGwa7X.js"),[]).then(t=>pe(t.ebnf))}}),oe.of({name:"ECL",extensions:["ecl"],load(){return M(()=>import("./ecl-Cabwm37j.js"),[]).then(t=>pe(t.ecl))}}),oe.of({name:"edn",extensions:["edn"],load(){return M(()=>import("./clojure-BMjYHr_A.js"),[]).then(t=>pe(t.clojure))}}),oe.of({name:"Eiffel",extensions:["e"],load(){return M(()=>import("./eiffel-CnydiIhH.js"),[]).then(t=>pe(t.eiffel))}}),oe.of({name:"Elm",extensions:["elm"],load(){return M(()=>import("./elm-vLlmbW-K.js"),[]).then(t=>pe(t.elm))}}),oe.of({name:"Erlang",extensions:["erl"],load(){return M(()=>import("./erlang-BNw1qcRV.js"),[]).then(t=>pe(t.erlang))}}),oe.of({name:"Esper",load(){return M(()=>import("./sql-D0XecflT.js"),[]).then(t=>pe(t.esper))}}),oe.of({name:"Factor",extensions:["factor"],load(){return M(()=>import("./factor-kuTfRLto.js"),__vite__mapDeps([99,98])).then(t=>pe(t.factor))}}),oe.of({name:"FCL",load(){return M(()=>import("./fcl-Kvtd6kyn.js"),[]).then(t=>pe(t.fcl))}}),oe.of({name:"Forth",extensions:["forth","fth","4th"],load(){return M(()=>import("./forth-Ffai-XNe.js"),[]).then(t=>pe(t.forth))}}),oe.of({name:"Fortran",extensions:["f","for","f77","f90","f95"],load(){return M(()=>import("./fortran-DYz_wnZ1.js"),[]).then(t=>pe(t.fortran))}}),oe.of({name:"F#",alias:["fsharp"],extensions:["fs"],load(){return M(()=>import("./mllike-CXdrOF99.js"),[]).then(t=>pe(t.fSharp))}}),oe.of({name:"Gas",extensions:["s"],load(){return M(()=>import("./gas-Bneqetm1.js"),[]).then(t=>pe(t.gas))}}),oe.of({name:"Gherkin",extensions:["feature"],load(){return M(()=>import("./gherkin-heZmZLOM.js"),[]).then(t=>pe(t.gherkin))}}),oe.of({name:"Groovy",extensions:["groovy","gradle"],filename:/^Jenkinsfile$/,load(){return M(()=>import("./groovy-D9Dt4D0W.js"),[]).then(t=>pe(t.groovy))}}),oe.of({name:"Haskell",extensions:["hs"],load(){return M(()=>import("./haskell-Cw1EW3IL.js"),[]).then(t=>pe(t.haskell))}}),oe.of({name:"Haxe",extensions:["hx"],load(){return M(()=>import("./haxe-H-WmDvRZ.js"),[]).then(t=>pe(t.haxe))}}),oe.of({name:"HXML",extensions:["hxml"],load(){return M(()=>import("./haxe-H-WmDvRZ.js"),[]).then(t=>pe(t.hxml))}}),oe.of({name:"HTTP",load(){return M(()=>import("./http-DBlCnlav.js"),[]).then(t=>pe(t.http))}}),oe.of({name:"IDL",extensions:["pro"],load(){return M(()=>import("./idl-BEugSyMb.js"),[]).then(t=>pe(t.idl))}}),oe.of({name:"JSON-LD",alias:["jsonld"],extensions:["jsonld"],load(){return M(()=>import("./javascript-iXu5QeM3.js"),[]).then(t=>pe(t.jsonld))}}),oe.of({name:"Julia",extensions:["jl"],load(){return M(()=>import("./julia-DuME0IfC.js"),[]).then(t=>pe(t.julia))}}),oe.of({name:"Kotlin",extensions:["kt","kts"],load(){return M(()=>import("./clike-B9uivgTg.js"),[]).then(t=>pe(t.kotlin))}}),oe.of({name:"LiveScript",alias:["ls"],extensions:["ls"],load(){return M(()=>import("./livescript-BwQOo05w.js"),[]).then(t=>pe(t.liveScript))}}),oe.of({name:"Lua",extensions:["lua"],load(){return M(()=>import("./lua-BgMRiT3U.js"),[]).then(t=>pe(t.lua))}}),oe.of({name:"mIRC",extensions:["mrc"],load(){return M(()=>import("./mirc-CjQqDB4T.js"),[]).then(t=>pe(t.mirc))}}),oe.of({name:"Mathematica",extensions:["m","nb","wl","wls"],load(){return M(()=>import("./mathematica-DTrFuWx2.js"),[]).then(t=>pe(t.mathematica))}}),oe.of({name:"Modelica",extensions:["mo"],load(){return M(()=>import("./modelica-Dc1JOy9r.js"),[]).then(t=>pe(t.modelica))}}),oe.of({name:"MUMPS",extensions:["mps"],load(){return M(()=>import("./mumps-BT43cFF4.js"),[]).then(t=>pe(t.mumps))}}),oe.of({name:"Mbox",extensions:["mbox"],load(){return M(()=>import("./mbox-CNhZ1qSd.js"),[]).then(t=>pe(t.mbox))}}),oe.of({name:"Nginx",filename:/nginx.*\.conf$/i,load(){return M(()=>import("./nginx-DdIZxoE0.js"),[]).then(t=>pe(t.nginx))}}),oe.of({name:"NSIS",extensions:["nsh","nsi"],load(){return M(()=>import("./nsis-LdVXkNf5.js"),__vite__mapDeps([100,98])).then(t=>pe(t.nsis))}}),oe.of({name:"NTriples",extensions:["nt","nq"],load(){return M(()=>import("./ntriples-BfvgReVJ.js"),[]).then(t=>pe(t.ntriples))}}),oe.of({name:"Objective-C",alias:["objective-c","objc"],extensions:["m"],load(){return M(()=>import("./clike-B9uivgTg.js"),[]).then(t=>pe(t.objectiveC))}}),oe.of({name:"Objective-C++",alias:["objective-c++","objc++"],extensions:["mm"],load(){return M(()=>import("./clike-B9uivgTg.js"),[]).then(t=>pe(t.objectiveCpp))}}),oe.of({name:"OCaml",extensions:["ml","mli","mll","mly"],load(){return M(()=>import("./mllike-CXdrOF99.js"),[]).then(t=>pe(t.oCaml))}}),oe.of({name:"Octave",extensions:["m"],load(){return M(()=>import("./octave-Ck1zUtKM.js"),[]).then(t=>pe(t.octave))}}),oe.of({name:"Oz",extensions:["oz"],load(){return M(()=>import("./oz-BzwKVEFT.js"),[]).then(t=>pe(t.oz))}}),oe.of({name:"Pascal",extensions:["p","pas"],load(){return M(()=>import("./pascal--L3eBynH.js"),[]).then(t=>pe(t.pascal))}}),oe.of({name:"Perl",extensions:["pl","pm"],load(){return M(()=>import("./perl-CdXCOZ3F.js"),[]).then(t=>pe(t.perl))}}),oe.of({name:"Pig",extensions:["pig"],load(){return M(()=>import("./pig-CevX1Tat.js"),[]).then(t=>pe(t.pig))}}),oe.of({name:"PowerShell",extensions:["ps1","psd1","psm1"],load(){return M(()=>import("./powershell-CFHJl5sT.js"),[]).then(t=>pe(t.powerShell))}}),oe.of({name:"Properties files",alias:["ini","properties"],extensions:["properties","ini","in"],load(){return M(()=>import("./properties-C78fOPTZ.js"),[]).then(t=>pe(t.properties))}}),oe.of({name:"ProtoBuf",extensions:["proto"],load(){return M(()=>import("./protobuf-ChK-085T.js"),[]).then(t=>pe(t.protobuf))}}),oe.of({name:"Pug",alias:["jade"],extensions:["pug","jade"],load(){return M(()=>import("./pug-DeIclll2.js"),__vite__mapDeps([101,102])).then(t=>pe(t.pug))}}),oe.of({name:"Puppet",extensions:["pp"],load(){return M(()=>import("./puppet-DMA9R1ak.js"),[]).then(t=>pe(t.puppet))}}),oe.of({name:"Q",extensions:["q"],load(){return M(()=>import("./q-pXgVlZs6.js"),[]).then(t=>pe(t.q))}}),oe.of({name:"R",alias:["rscript"],extensions:["r","R"],load(){return M(()=>import("./r-B6wPVr8A.js"),[]).then(t=>pe(t.r))}}),oe.of({name:"RPM Changes",load(){return M(()=>import("./rpm-CTu-6PCP.js"),[]).then(t=>pe(t.rpmChanges))}}),oe.of({name:"RPM Spec",extensions:["spec"],load(){return M(()=>import("./rpm-CTu-6PCP.js"),[]).then(t=>pe(t.rpmSpec))}}),oe.of({name:"Ruby",alias:["jruby","macruby","rake","rb","rbx"],extensions:["rb"],filename:/^(Gemfile|Rakefile)$/,load(){return M(()=>import("./ruby-B2Rjki9n.js"),[]).then(t=>pe(t.ruby))}}),oe.of({name:"SAS",extensions:["sas"],load(){return M(()=>import("./sas-B4kiWyti.js"),[]).then(t=>pe(t.sas))}}),oe.of({name:"Scala",extensions:["scala"],load(){return M(()=>import("./clike-B9uivgTg.js"),[]).then(t=>pe(t.scala))}}),oe.of({name:"Scheme",extensions:["scm","ss"],load(){return M(()=>import("./scheme-C41bIUwD.js"),[]).then(t=>pe(t.scheme))}}),oe.of({name:"Shell",alias:["bash","sh","zsh"],extensions:["sh","ksh","bash"],filename:/^PKGBUILD$/,load(){return M(()=>import("./shell-CjFT_Tl9.js"),[]).then(t=>pe(t.shell))}}),oe.of({name:"Sieve",extensions:["siv","sieve"],load(){return M(()=>import("./sieve-C3Gn_uJK.js"),[]).then(t=>pe(t.sieve))}}),oe.of({name:"Smalltalk",extensions:["st"],load(){return M(()=>import("./smalltalk-CnHTOXQT.js"),[]).then(t=>pe(t.smalltalk))}}),oe.of({name:"Solr",load(){return M(()=>import("./solr-DehyRSwq.js"),[]).then(t=>pe(t.solr))}}),oe.of({name:"SML",extensions:["sml","sig","fun","smackspec"],load(){return M(()=>import("./mllike-CXdrOF99.js"),[]).then(t=>pe(t.sml))}}),oe.of({name:"SPARQL",alias:["sparul"],extensions:["rq","sparql"],load(){return M(()=>import("./sparql-DkYu6x3z.js"),[]).then(t=>pe(t.sparql))}}),oe.of({name:"Spreadsheet",alias:["excel","formula"],load(){return M(()=>import("./spreadsheet-BCZA_wO0.js"),[]).then(t=>pe(t.spreadsheet))}}),oe.of({name:"Squirrel",extensions:["nut"],load(){return M(()=>import("./clike-B9uivgTg.js"),[]).then(t=>pe(t.squirrel))}}),oe.of({name:"Stylus",extensions:["styl"],load(){return M(()=>import("./stylus-B533Al4x.js"),[]).then(t=>pe(t.stylus))}}),oe.of({name:"Swift",extensions:["swift"],load(){return M(()=>import("./swift-BzpIVaGY.js"),[]).then(t=>pe(t.swift))}}),oe.of({name:"sTeX",load(){return M(()=>import("./stex-C3f8Ysf7.js"),[]).then(t=>pe(t.stex))}}),oe.of({name:"LaTeX",alias:["tex"],extensions:["text","ltx","tex"],load(){return M(()=>import("./stex-C3f8Ysf7.js"),[]).then(t=>pe(t.stex))}}),oe.of({name:"SystemVerilog",extensions:["v","sv","svh"],load(){return M(()=>import("./verilog-C6RDOZhf.js"),[]).then(t=>pe(t.verilog))}}),oe.of({name:"Tcl",extensions:["tcl"],load(){return M(()=>import("./tcl-DVfN8rqt.js"),[]).then(t=>pe(t.tcl))}}),oe.of({name:"Textile",extensions:["textile"],load(){return M(()=>import("./textile-CnDTJFAw.js"),[]).then(t=>pe(t.textile))}}),oe.of({name:"TiddlyWiki",load(){return M(()=>import("./tiddlywiki-DO-Gjzrf.js"),[]).then(t=>pe(t.tiddlyWiki))}}),oe.of({name:"Tiki wiki",load(){return M(()=>import("./tiki-DGYXhP31.js"),[]).then(t=>pe(t.tiki))}}),oe.of({name:"TOML",extensions:["toml"],load(){return M(()=>import("./toml-Bm5Em-hy.js"),[]).then(t=>pe(t.toml))}}),oe.of({name:"Troff",extensions:["1","2","3","4","5","6","7","8","9"],load(){return M(()=>import("./troff-wAsdV37c.js"),[]).then(t=>pe(t.troff))}}),oe.of({name:"TTCN",extensions:["ttcn","ttcn3","ttcnpp"],load(){return M(()=>import("./ttcn-CfJYG6tj.js"),[]).then(t=>pe(t.ttcn))}}),oe.of({name:"TTCN_CFG",extensions:["cfg"],load(){return M(()=>import("./ttcn-cfg-B9xdYoR4.js"),[]).then(t=>pe(t.ttcnCfg))}}),oe.of({name:"Turtle",extensions:["ttl"],load(){return M(()=>import("./turtle-B1tBg_DP.js"),[]).then(t=>pe(t.turtle))}}),oe.of({name:"Web IDL",extensions:["webidl"],load(){return M(()=>import("./webidl-ZXfAyPTL.js"),[]).then(t=>pe(t.webIDL))}}),oe.of({name:"VB.NET",extensions:["vb"],load(){return M(()=>import("./vb-CmGdzxic.js"),[]).then(t=>pe(t.vb))}}),oe.of({name:"VBScript",extensions:["vbs"],load(){return M(()=>import("./vbscript-BuJXcnF6.js"),[]).then(t=>pe(t.vbScript))}}),oe.of({name:"Velocity",extensions:["vtl"],load(){return M(()=>import("./velocity-D8B20fx6.js"),[]).then(t=>pe(t.velocity))}}),oe.of({name:"Verilog",extensions:["v"],load(){return M(()=>import("./verilog-C6RDOZhf.js"),[]).then(t=>pe(t.verilog))}}),oe.of({name:"VHDL",extensions:["vhd","vhdl"],load(){return M(()=>import("./vhdl-lSbBsy5d.js"),[]).then(t=>pe(t.vhdl))}}),oe.of({name:"XQuery",extensions:["xy","xquery","xq","xqm","xqy"],load(){return M(()=>import("./xquery-DzFWVndE.js"),[]).then(t=>pe(t.xQuery))}}),oe.of({name:"Yacas",extensions:["ys"],load(){return M(()=>import("./yacas-BJ4BC0dw.js"),[]).then(t=>pe(t.yacas))}}),oe.of({name:"Z80",extensions:["z80"],load(){return M(()=>import("./z80-Hz9HOZM7.js"),[]).then(t=>pe(t.z80))}}),oe.of({name:"MscGen",extensions:["mscgen","mscin","msc"],load(){return M(()=>import("./mscgen-BA5vi2Kp.js"),[]).then(t=>pe(t.mscgen))}}),oe.of({name:"Xù",extensions:["xu"],load(){return M(()=>import("./mscgen-BA5vi2Kp.js"),[]).then(t=>pe(t.xu))}}),oe.of({name:"MsGenny",extensions:["msgenny"],load(){return M(()=>import("./mscgen-BA5vi2Kp.js"),[]).then(t=>pe(t.msgenny))}}),oe.of({name:"Vue",extensions:["vue"],load(){return M(()=>import("./index-D3cFTBJZ.js"),[]).then(t=>t.vue())}}),oe.of({name:"Angular Template",load(){return M(()=>import("./index-DUEB7_Ou.js"),[]).then(t=>t.angular())}})],iA={fontSize:"14px",fontFamily:"JetBrains Mono, Consolas, monospace",lineHeight:"1.6"},UAe={borderLeftWidth:"2px"},Hs={insertedTextDecoration:"none",deletedTextDecoration:"line-through",insertedLinePadding:"1px 3px",borderRadious:"3px"},Ph={border:"none",paddingRight:"8px",fontSize:"0.9em",fontWeight:"500",lineHeight:"1.78"},rA={border:"none",borderRadius:"4px",padding:"2px 10px"},WAe={borderRadius:"2px"},sA={borderRadius:"2px"},oA={borderRadius:"4px",padding:"0 5px",margin:"0 2px"},aA={width:"12px",height:"12px",borderRadius:"6px"},$v={borderRadius:"4px",padding:"2px 6px"},bp={borderRadius:"4px",borderRadiusSelected:"3px",lineHeight:"1.3",padding:"4px 8px",paddingRight:"8px"},lA="#0d1117",Wo="#c9d1d9",uJ="#264F78",gr="#8b949e",sS="#ffffff",cA="#7ee787",uA="#d2a8ff",Jc="#79c0ff",Hb="#ff7b72",hA="#a5d6ff",GAe="#2c333a",ZAe="#3c444d",Ah="#ffab70",dA="#161b22",Yb="#30363d",HAe="#21262d",Td="#f97583",YAe="#2d333b1a",Rh="#21262d",fA=sS,G8=uJ,KAe="#3a587a75",Z8="#4d90fe",H8="#d29922",JAe="#3a587a55",oL="#58a6ff",eRe="#bc8cff",Y8="#2ea04350",K8="#f8514940",pA="#7ee787",mA="#ff7b72",tRe=be.theme({"&":{color:Wo,backgroundColor:lA,fontSize:iA.fontSize,fontFamily:iA.fontFamily},".cm-content":{caretColor:fA,lineHeight:iA.lineHeight},".cm-cursor, .cm-dropCursor":{borderLeftColor:fA,borderLeftWidth:UAe.borderLeftWidth},".cm-fat-cursor":{backgroundColor:`${fA}99`,color:lA},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:G8},".cm-selectionLayer":{zIndex:100},".cm-searchMatch":{backgroundColor:"#3a587a",outline:`1px solid ${Jc}`,color:Wo,borderRadius:$v.borderRadius,"& span":{color:Wo}},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:Z8,color:sS,padding:$v.padding,"& span":{color:sS}},".cm-search.cm-panel.cm-textfield":{color:Wo,borderRadius:$v.borderRadius,padding:$v.padding},".cm-panels":{backgroundColor:Rh,color:Wo,borderRadius:"4px"},".cm-panels.cm-panels-top":{borderBottom:`1px solid ${Yb}`},".cm-panels.cm-panels-bottom":{borderTop:`1px solid ${Yb}`},".cm-panel button":{backgroundColor:Rh,color:Wo,border:rA.border,borderRadius:rA.borderRadius,padding:rA.padding},".cm-panel button:hover":{backgroundColor:GAe},".cm-activeLine":{backgroundColor:YAe,borderRadius:WAe.borderRadius,zIndex:1},".cm-gutters":{backgroundColor:dA,color:gr,border:Ph.border,borderRight:"1px solid #30363d",paddingRight:Ph.paddingRight},".cm-activeLineGutter":{backgroundColor:HAe,color:Wo,fontWeight:Ph.fontWeight},".cm-lineNumbers":{fontSize:Ph.fontSize,lineHeight:Ph.lineHeight},".cm-foldGutter":{fontSize:Ph.fontSize,lineHeight:Ph.lineHeight},".cm-foldGutter .cm-gutterElement":{color:gr,cursor:"pointer"},".cm-foldGutter .cm-gutterElement:hover":{color:Wo},".cm-insertedLine":{textDecoration:Hs.insertedTextDecoration,backgroundColor:Y8,color:pA,padding:Hs.insertedLinePadding,borderRadius:Hs.borderRadious},"ins.cm-insertedLine, ins.cm-insertedLine:not(:has(.cm-changedText))":{textDecoration:Hs.insertedTextDecoration,backgroundColor:`${Y8} !important`,color:pA,padding:Hs.insertedLinePadding,borderRadius:Hs.borderRadious,border:`1px solid ${pA}40`},"ins.cm-insertedLine .cm-changedText":{background:"transparent !important"},".cm-deletedLine":{textDecoration:Hs.deletedTextDecoration,backgroundColor:K8,color:mA,padding:Hs.insertedLinePadding,borderRadius:Hs.borderRadious},"del.cm-deletedLine, del, del:not(:has(.cm-deletedText))":{textDecoration:Hs.deletedTextDecoration,backgroundColor:`${K8} !important`,color:mA,padding:Hs.insertedLinePadding,borderRadius:Hs.borderRadious,border:`1px solid ${mA}40`},"del .cm-deletedText, del .cm-changedText":{background:"transparent !important"},".cm-tooltip":{backgroundColor:Rh,border:`1px solid ${Yb}`,borderRadius:bp.borderRadius,padding:bp.padding,boxShadow:"0 2px 8px rgba(0, 0, 0, 0.3)"},".cm-tooltip-autocomplete":{"& > ul":{backgroundColor:Rh,border:"none"},"& > ul > li":{padding:bp.padding,lineHeight:bp.lineHeight},"& > ul > li[aria-selected]":{backgroundColor:G8,color:sS,borderRadius:bp.borderRadiusSelected},"& > ul > li > span.cm-completionIcon":{color:gr,paddingRight:bp.paddingRight},"& > ul > li > span.cm-completionDetail":{color:gr,fontStyle:"italic"}},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:Rh,borderBottomColor:Rh},".cm-diagnostic":{"&-error":{borderLeft:`3px solid ${Td}`},"&-warning":{borderLeft:`3px solid ${H8}`},"&-info":{borderLeft:`3px solid ${oL}`}},".cm-lintPoint-error":{borderBottom:`2px wavy ${Td}`},".cm-lintPoint-warning":{borderBottom:`2px wavy ${H8}`},".cm-matchingBracket":{backgroundColor:KAe,outline:`1px solid ${Z8}`,borderRadius:sA.borderRadius},".cm-nonmatchingBracket":{backgroundColor:"#f9758340",outline:`1px solid ${Td}`,borderRadius:sA.borderRadius},".cm-selectionMatch":{backgroundColor:JAe,outline:`1px solid ${uJ}50`,borderRadius:sA.borderRadius},".cm-foldPlaceholder":{backgroundColor:Rh,color:gr,border:`1px dotted ${Yb}70`,borderRadius:oA.borderRadius,padding:oA.padding,margin:oA.margin},"&.cm-focused":{outline:"none",boxShadow:`0 0 0 2px ${lA}, 0 0 0 3px ${oL}40`},"& .cm-scroller::-webkit-scrollbar":{width:aA.width,height:aA.height},"& .cm-scroller::-webkit-scrollbar-track":{background:dA},"& .cm-scroller::-webkit-scrollbar-thumb":{backgroundColor:Yb,borderRadius:aA.borderRadius,border:`3px solid ${dA}`},"& .cm-scroller::-webkit-scrollbar-thumb:hover":{backgroundColor:ZAe},".cm-ghostText":{opacity:"0.5",color:gr}},{dark:!0}),nRe=Ci.define([{tag:O.keyword,color:Hb,fontWeight:"bold"},{tag:O.controlKeyword,color:Hb,fontWeight:"bold"},{tag:O.moduleKeyword,color:Hb,fontWeight:"bold"},{tag:[O.name,O.deleted,O.character,O.macroName],color:Jc},{tag:[O.variableName],color:Jc},{tag:[O.propertyName],color:uA,fontStyle:"normal"},{tag:[O.typeName],color:Hb},{tag:[O.className],color:uA,fontStyle:"italic"},{tag:[O.namespace],color:Jc,fontStyle:"italic"},{tag:[O.operator,O.operatorKeyword],color:Wo},{tag:[O.bracket],color:gr},{tag:[O.brace],color:gr},{tag:[O.punctuation],color:gr},{tag:[O.function(O.variableName),O.labelName],color:cA},{tag:[O.definition(O.variableName)],color:Jc},{tag:O.number,color:Ah},{tag:O.changed,color:Ah},{tag:O.annotation,color:Td,fontStyle:"italic"},{tag:O.modifier,color:Ah,fontStyle:"italic"},{tag:O.self,color:Ah},{tag:[O.color,O.constant(O.name),O.standard(O.name)],color:Ah},{tag:[O.atom,O.bool,O.special(O.variableName)],color:Ah},{tag:[O.processingInstruction,O.inserted],color:cA},{tag:[O.special(O.string),O.regexp],color:hA},{tag:O.string,color:hA},{tag:O.definition(O.typeName),color:Hb,fontWeight:"bold"},{tag:O.meta,color:gr},{tag:O.comment,fontStyle:"italic",color:gr},{tag:O.docComment,fontStyle:"italic",color:gr},{tag:[O.tagName],color:cA},{tag:[O.attributeName],color:uA},{tag:[O.heading],fontWeight:"bold",color:Jc},{tag:[O.strong],fontWeight:"bold",color:Jc},{tag:[O.emphasis],fontStyle:"italic",color:hA},{tag:[O.link],color:eRe,fontWeight:"500",textDecoration:"underline",textUnderlinePosition:"under"},{tag:[O.url],color:oL,textDecoration:"underline",textUnderlineOffset:"2px"},{tag:[O.invalid],color:Wo,textDecoration:"underline wavy",borderBottom:`1px wavy ${Td}`},{tag:[O.strikethrough],color:Td,textDecoration:"line-through"},{tag:O.constant(O.name),color:Ah},{tag:O.deleted,color:Td},{tag:O.squareBracket,color:gr},{tag:O.angleBracket,color:gr},{tag:O.monospace,color:Wo},{tag:[O.contentSeparator],color:Jc},{tag:O.quote,color:gr}]),J8=[tRe,Mr(nRe)],gA={fontSize:"14px",fontFamily:"JetBrains Mono, Consolas, monospace",lineHeight:"1.6"},iRe={borderLeftWidth:"2px"},Ys={insertedTextDecoration:"none",deletedTextDecoration:"line-through",insertedLinePadding:"1px 3px",borderRadious:"3px"},Eh={border:"none",paddingRight:"8px",fontSize:"0.9em",fontWeight:"500",lineHeight:"1.78"},bA={border:"none",borderRadius:"4px",padding:"2px 10px"},rRe={borderRadius:"2px"},yA={borderRadius:"2px"},xA={borderRadius:"4px",padding:"0 5px",margin:"0 2px"},OA={width:"12px",height:"12px",borderRadius:"6px"},Lv={borderRadius:"4px",padding:"2px 6px"},yp={borderRadius:"4px",borderRadiusSelected:"3px",lineHeight:"1.3",padding:"4px 8px",paddingRight:"8px"},xp="#ffffff",Wr="#24292e",hJ="#BBDFFF",Op="#6e7781",eV="#f6f8fa",sRe="#116329",ka="#6a737d",_A="#6f42c1",eu="#005cc5",Kb="#d73a49",vA="#032f62",tV="#22863a",Mh="#e36209",oRe="#f1f8ff",$h="#e1e4e8",aRe="#f8f9fa",Pd="#cb2431",lRe="#BBDFFF20",Dv=aRe,SA=Wr,cRe=hJ,uRe="#e8f0fe",hRe="#0366d6",nV="#b08800",iV="#79b8ff40",aL="#0969da",dRe="#8250df",rV="#e6ffec80",sV="#ffebe980",wA="#0f6d31",kA="#cf222e",fRe=be.theme({"&":{color:Wr,backgroundColor:xp,fontSize:gA.fontSize,fontFamily:gA.fontFamily},".cm-content":{caretColor:SA,lineHeight:gA.lineHeight},".cm-cursor, .cm-dropCursor":{borderLeftColor:SA,borderLeftWidth:iRe.borderLeftWidth},".cm-fat-cursor":{backgroundColor:`${SA}99`,color:xp},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:cRe,color:Wr},".cm-selectionLayer":{zIndex:100},".cm-searchMatch":{backgroundColor:"#daebff",outline:`1px solid ${eu}`,color:Wr,borderRadius:Lv.borderRadius,"& span":{color:Wr}},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#79b8ff",color:xp,padding:Lv.padding,"& span":{color:xp}},".cm-search.cm-panel.cm-textfield":{color:Wr,borderRadius:Lv.borderRadius,padding:Lv.padding},".cm-panels":{backgroundColor:eV,color:Op,borderRadius:"0 0 4px 4px"},".cm-panels.cm-panels-top":{borderBottom:`1px solid ${$h}`},".cm-panels.cm-panels-bottom":{borderTop:`1px solid ${$h}`},".cm-panel button":{backgroundColor:xp,color:Wr,border:bA.border,borderRadius:bA.borderRadius,padding:bA.padding},".cm-panel button:hover":{backgroundColor:"#f5f5f5"},".cm-activeLine":{backgroundColor:lRe,borderRadius:rRe.borderRadius,zIndex:1},".cm-gutters":{backgroundColor:eV,color:Op,border:Eh.border,borderRight:`1px solid ${$h}`,paddingRight:Eh.paddingRight},".cm-activeLineGutter":{backgroundColor:oRe,color:Wr,fontWeight:Eh.fontWeight},".cm-lineNumbers":{fontSize:Eh.fontSize,lineHeight:Eh.lineHeight},".cm-foldGutter":{fontSize:Eh.fontSize,lineHeight:Eh.lineHeight},".cm-foldGutter .cm-gutterElement":{color:Op,cursor:"pointer"},".cm-foldGutter .cm-gutterElement:hover":{color:Wr},".cm-insertedLine":{textDecoration:Ys.insertedTextDecoration,backgroundColor:rV,color:wA,padding:Ys.insertedLinePadding,borderRadius:Ys.borderRadious},"ins.cm-insertedLine, ins.cm-insertedLine:not(:has(.cm-changedText))":{textDecoration:Ys.insertedTextDecoration,backgroundColor:`${rV} !important`,color:wA,padding:Ys.insertedLinePadding,borderRadius:Ys.borderRadious,border:`1px solid ${wA}30`},"ins.cm-insertedLine .cm-changedText":{background:"transparent !important"},".cm-deletedLine":{textDecoration:Ys.deletedTextDecoration,backgroundColor:sV,color:kA,padding:Ys.insertedLinePadding,borderRadius:Ys.borderRadious},"del.cm-deletedLine, del, del:not(:has(.cm-deletedText))":{textDecoration:Ys.deletedTextDecoration,backgroundColor:`${sV} !important`,color:kA,padding:Ys.insertedLinePadding,borderRadius:Ys.borderRadious,border:`1px solid ${kA}30`},"del .cm-deletedText, del .cm-changedText":{background:"transparent !important"},".cm-tooltip":{backgroundColor:Dv,border:`1px solid ${$h}`,borderRadius:yp.borderRadius,padding:yp.padding,boxShadow:"0 1px 5px rgba(0, 0, 0, 0.1)"},".cm-tooltip-autocomplete":{"& > ul":{backgroundColor:Dv,border:"none"},"& > ul > li":{padding:yp.padding,lineHeight:yp.lineHeight},"& > ul > li[aria-selected]":{backgroundColor:"#0366d630",color:Wr,borderRadius:yp.borderRadiusSelected},"& > ul > li:hover":{backgroundColor:"#0366d615"},"& > ul > li > span.cm-completionIcon":{color:Op,paddingRight:yp.paddingRight},"& > ul > li > span.cm-completionDetail":{color:Op,fontStyle:"italic"}},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:Dv,borderBottomColor:Dv},".cm-diagnostic":{"&-error":{borderLeft:`3px solid ${Pd}`},"&-warning":{borderLeft:`3px solid ${nV}`},"&-info":{borderLeft:`3px solid ${aL}`}},".cm-lintPoint-error":{borderBottom:`2px wavy ${Pd}`},".cm-lintPoint-warning":{borderBottom:`2px wavy ${nV}`},".cm-matchingBracket":{backgroundColor:uRe,outline:`1px solid ${hRe}80`,borderRadius:yA.borderRadius},".cm-nonmatchingBracket":{backgroundColor:"#ffeef080",outline:`1px solid ${Pd}`,borderRadius:yA.borderRadius},".cm-selectionMatch":{backgroundColor:iV,outline:`1px solid ${hJ}50`,borderRadius:yA.borderRadius},".cm-foldPlaceholder":{backgroundColor:iV,color:Op,border:`1px dotted ${$h}70`,borderRadius:xA.borderRadius,padding:xA.padding,margin:xA.margin},"&.cm-focused":{outline:"none",boxShadow:`0 0 0 2px ${xp}, 0 0 0 3px ${aL}40`},"& .cm-scroller::-webkit-scrollbar":{width:OA.width,height:OA.height},"& .cm-scroller::-webkit-scrollbar-track":{background:$h},"& .cm-scroller::-webkit-scrollbar-thumb":{backgroundColor:Wr,borderRadius:OA.borderRadius,border:`3px solid ${$h}`},"& .cm-scroller::-webkit-scrollbar-thumb:hover":{backgroundColor:ka},".cm-ghostText":{opacity:"0.5",color:"#959da5"}},{dark:!1}),pRe=Ci.define([{tag:O.keyword,color:Kb,fontWeight:"bold"},{tag:O.controlKeyword,color:Kb,fontWeight:"bold"},{tag:O.moduleKeyword,color:Kb,fontWeight:"bold"},{tag:[O.name,O.deleted,O.character,O.macroName],color:eu},{tag:[O.variableName],color:eu},{tag:[O.propertyName],color:_A,fontStyle:"normal"},{tag:[O.typeName],color:Kb},{tag:[O.className],color:_A,fontStyle:"italic"},{tag:[O.namespace],color:eu,fontStyle:"italic"},{tag:[O.operator,O.operatorKeyword],color:Wr},{tag:[O.bracket],color:ka},{tag:[O.brace],color:ka},{tag:[O.punctuation],color:ka},{tag:[O.function(O.variableName),O.labelName],color:tV},{tag:[O.definition(O.variableName)],color:eu},{tag:O.number,color:Mh},{tag:O.changed,color:Mh},{tag:O.annotation,color:Pd,fontStyle:"italic"},{tag:O.modifier,color:Mh,fontStyle:"italic"},{tag:O.self,color:Mh},{tag:[O.color,O.constant(O.name),O.standard(O.name)],color:Mh},{tag:[O.atom,O.bool,O.special(O.variableName)],color:Mh},{tag:[O.processingInstruction,O.inserted],color:tV},{tag:[O.special(O.string),O.regexp],color:vA},{tag:O.string,color:vA},{tag:O.definition(O.typeName),color:Kb,fontWeight:"bold"},{tag:O.meta,color:ka},{tag:O.comment,fontStyle:"italic",color:ka},{tag:O.docComment,fontStyle:"italic",color:ka},{tag:[O.tagName],color:sRe},{tag:[O.attributeName],color:_A},{tag:[O.heading],fontWeight:"bold",color:eu},{tag:[O.strong],fontWeight:"bold",color:eu},{tag:[O.emphasis],fontStyle:"italic",color:vA},{tag:[O.link],color:dRe,fontWeight:"500",textDecoration:"underline",textUnderlinePosition:"under"},{tag:[O.url],color:aL,textDecoration:"underline",textUnderlineOffset:"2px"},{tag:[O.invalid],color:Wr,textDecoration:"underline wavy",borderBottom:`1px wavy ${Pd}`},{tag:[O.strikethrough],color:Pd,textDecoration:"line-through"},{tag:O.constant(O.name),color:Mh},{tag:O.deleted,color:Pd},{tag:O.squareBracket,color:ka},{tag:O.angleBracket,color:ka},{tag:O.monospace,color:Wr},{tag:[O.contentSeparator],color:eu},{tag:O.quote,color:ka}]),oV=[fRe,Mr(pRe)],CA={fontSize:"14px",fontFamily:"JetBrains Mono, Consolas, monospace",lineHeight:"1.6"},mRe={borderLeftWidth:"2px"},Ks={insertedTextDecoration:"none",deletedTextDecoration:"line-through",insertedLinePadding:"1px 3px",borderRadious:"3px"},Lh={border:"none",paddingRight:"8px",fontSize:"0.9em",fontWeight:"500",lineHeight:"1.78"},TA={border:"none",borderRadius:"4px",padding:"2px 10px"},gRe={borderRadius:"2px"},PA={borderRadius:"2px"},AA={borderRadius:"4px",padding:"0 5px",margin:"0 2px"},RA={width:"12px",height:"12px",borderRadius:"6px"},Nv={borderRadius:"4px",padding:"2px 6px"},_p={borderRadius:"4px",borderRadiusSelected:"3px",lineHeight:"1.3",padding:"4px 8px",paddingRight:"8px"},Qy="#282828",O0="#3c3836",lL="#504945",vp="#665c54",bRe="#7c6f64",br="#928374",EA="#fbf1c7",Ll="#ebdbb2",Iy="#fb4934",Qv="#b8bb26",hu="#fabd2f",Hp="#83a598",jy="#d3869b",MA="#8ec07c",Mm="#fe8019",Ad=Iy,yRe=O0,xRe="#3c383660",ORe=Qy,Dh=O0,aV=lL,_Re="#665c5480",$A=Mm,vRe="#504945cc",SRe=hu,lV=hu,dJ=Hp,wRe=jy,cV="#32361a80",uV="#3c1f1e80",LA="#b8bb26",DA="#fb4934",kRe=be.theme({"&":{color:Ll,backgroundColor:ORe,fontSize:CA.fontSize,fontFamily:CA.fontFamily},".cm-content":{caretColor:$A,lineHeight:CA.lineHeight},".cm-cursor, .cm-dropCursor":{borderLeftColor:$A,borderLeftWidth:mRe.borderLeftWidth},".cm-fat-cursor":{backgroundColor:`${$A}99`,color:Qy},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:aV},".cm-selectionLayer":{zIndex:100},".cm-searchMatch":{backgroundColor:"#b57614cc",outline:`1px solid ${hu}`,color:EA,borderRadius:Nv.borderRadius,"& span":{color:EA}},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:Mm,color:Qy,padding:Nv.padding,"& span":{color:Qy}},".cm-search.cm-panel.cm-textfield":{color:Ll,borderRadius:Nv.borderRadius,padding:Nv.padding},".cm-panels":{backgroundColor:Dh,color:Ll,borderRadius:"4px"},".cm-panels.cm-panels-top":{borderBottom:`1px solid ${vp}`},".cm-panels.cm-panels-bottom":{borderTop:`1px solid ${vp}`},".cm-panel button":{backgroundColor:Dh,color:Ll,border:TA.border,borderRadius:TA.borderRadius,padding:TA.padding},".cm-panel button:hover":{backgroundColor:lL},".cm-activeLine":{backgroundColor:xRe,borderRadius:gRe.borderRadius,zIndex:1},".cm-gutters":{backgroundColor:O0,color:br,border:Lh.border,borderRight:`1px solid ${lL}`,paddingRight:Lh.paddingRight},".cm-activeLineGutter":{backgroundColor:yRe,color:Ll,fontWeight:Lh.fontWeight},".cm-lineNumbers":{fontSize:Lh.fontSize,lineHeight:Lh.lineHeight},".cm-foldGutter":{fontSize:Lh.fontSize,lineHeight:Lh.lineHeight},".cm-foldGutter .cm-gutterElement":{color:br,cursor:"pointer"},".cm-foldGutter .cm-gutterElement:hover":{color:Ll},".cm-insertedLine":{textDecoration:Ks.insertedTextDecoration,backgroundColor:cV,color:LA,padding:Ks.insertedLinePadding,borderRadius:Ks.borderRadious},"ins.cm-insertedLine, ins.cm-insertedLine:not(:has(.cm-changedText))":{textDecoration:Ks.insertedTextDecoration,backgroundColor:`${cV} !important`,color:LA,padding:Ks.insertedLinePadding,borderRadius:Ks.borderRadious,border:`1px solid ${LA}40`},"ins.cm-insertedLine .cm-changedText":{background:"transparent !important"},".cm-deletedLine":{textDecoration:Ks.deletedTextDecoration,backgroundColor:uV,color:DA,padding:Ks.insertedLinePadding,borderRadius:Ks.borderRadious},"del.cm-deletedLine, del, del:not(:has(.cm-deletedText))":{textDecoration:Ks.deletedTextDecoration,backgroundColor:`${uV} !important`,color:DA,padding:Ks.insertedLinePadding,borderRadius:Ks.borderRadious,border:`1px solid ${DA}40`},"del .cm-deletedText, del .cm-changedText":{background:"transparent !important"},".cm-tooltip":{backgroundColor:Dh,border:`1px solid ${vp}`,borderRadius:_p.borderRadius,padding:_p.padding,boxShadow:"0 2px 8px rgba(0, 0, 0, 0.3)"},".cm-tooltip-autocomplete":{"& > ul":{backgroundColor:Dh,border:"none"},"& > ul > li":{padding:_p.padding,lineHeight:_p.lineHeight},"& > ul > li[aria-selected]":{backgroundColor:aV,color:EA,borderRadius:_p.borderRadiusSelected},"& > ul > li > span.cm-completionIcon":{color:br,paddingRight:_p.paddingRight},"& > ul > li > span.cm-completionDetail":{color:br,fontStyle:"italic"}},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:Dh,borderBottomColor:Dh},".cm-diagnostic":{"&-error":{borderLeft:`3px solid ${Ad}`},"&-warning":{borderLeft:`3px solid ${lV}`},"&-info":{borderLeft:`3px solid ${dJ}`}},".cm-lintPoint-error":{borderBottom:`2px wavy ${Ad}`},".cm-lintPoint-warning":{borderBottom:`2px wavy ${lV}`},".cm-matchingBracket":{backgroundColor:vRe,outline:`1px solid ${SRe}`,borderRadius:PA.borderRadius},".cm-nonmatchingBracket":{backgroundColor:"#cc241d55",outline:`1px solid ${Ad}`,borderRadius:PA.borderRadius},".cm-selectionMatch":{backgroundColor:_Re,outline:`1px solid ${vp}`,borderRadius:PA.borderRadius},".cm-foldPlaceholder":{backgroundColor:Dh,color:br,border:`1px dotted ${vp}`,borderRadius:AA.borderRadius,padding:AA.padding,margin:AA.margin},"&.cm-focused":{outline:"none",boxShadow:`0 0 0 2px ${Qy}, 0 0 0 3px ${Mm}40`},"& .cm-scroller::-webkit-scrollbar":{width:RA.width,height:RA.height},"& .cm-scroller::-webkit-scrollbar-track":{background:O0},"& .cm-scroller::-webkit-scrollbar-thumb":{backgroundColor:vp,borderRadius:RA.borderRadius,border:`3px solid ${O0}`},"& .cm-scroller::-webkit-scrollbar-thumb:hover":{backgroundColor:bRe},".cm-ghostText":{opacity:"0.5",color:br}},{dark:!0}),CRe=Ci.define([{tag:O.keyword,color:Iy,fontWeight:"bold"},{tag:O.controlKeyword,color:Iy,fontWeight:"bold"},{tag:O.moduleKeyword,color:Iy,fontWeight:"bold"},{tag:[O.name,O.deleted,O.character,O.macroName],color:Hp},{tag:[O.variableName],color:Hp},{tag:[O.propertyName],color:MA,fontStyle:"normal"},{tag:[O.typeName],color:MA},{tag:[O.className],color:hu,fontStyle:"italic"},{tag:[O.namespace],color:Hp,fontStyle:"italic"},{tag:[O.operator,O.operatorKeyword],color:Ll},{tag:[O.bracket],color:br},{tag:[O.brace],color:br},{tag:[O.punctuation],color:br},{tag:[O.function(O.variableName),O.labelName],color:hu},{tag:[O.definition(O.variableName)],color:Hp},{tag:O.number,color:jy},{tag:O.changed,color:jy},{tag:O.annotation,color:Ad,fontStyle:"italic"},{tag:O.modifier,color:jy,fontStyle:"italic"},{tag:O.self,color:jy},{tag:[O.color,O.constant(O.name),O.standard(O.name)],color:Mm},{tag:[O.atom,O.bool,O.special(O.variableName)],color:Mm},{tag:[O.processingInstruction,O.inserted],color:Qv},{tag:[O.special(O.string),O.regexp],color:Qv},{tag:O.string,color:Qv},{tag:O.definition(O.typeName),color:MA,fontWeight:"bold"},{tag:O.meta,color:br},{tag:O.comment,fontStyle:"italic",color:br},{tag:O.docComment,fontStyle:"italic",color:br},{tag:[O.tagName],color:Iy},{tag:[O.attributeName],color:hu},{tag:[O.heading],fontWeight:"bold",color:hu},{tag:[O.strong],fontWeight:"bold",color:hu},{tag:[O.emphasis],fontStyle:"italic",color:Qv},{tag:[O.link],color:wRe,fontWeight:"500",textDecoration:"underline",textUnderlinePosition:"under"},{tag:[O.url],color:dJ,textDecoration:"underline",textUnderlineOffset:"2px"},{tag:[O.invalid],color:Ll,textDecoration:"underline wavy",borderBottom:`1px wavy ${Ad}`},{tag:[O.strikethrough],color:Ad,textDecoration:"line-through"},{tag:O.constant(O.name),color:Mm},{tag:O.deleted,color:Ad},{tag:O.squareBracket,color:br},{tag:O.angleBracket,color:br},{tag:O.monospace,color:Ll},{tag:[O.contentSeparator],color:Hp},{tag:O.quote,color:br}]),TRe=[kRe,Mr(CRe)],NA={fontSize:"14px",fontFamily:"JetBrains Mono, Consolas, monospace",lineHeight:"1.6"},PRe={borderLeftWidth:"2px"},Js={insertedTextDecoration:"none",deletedTextDecoration:"line-through",insertedLinePadding:"1px 3px",borderRadious:"3px"},Nh={border:"none",paddingRight:"8px",fontSize:"0.9em",fontWeight:"500",lineHeight:"1.78"},QA={border:"none",borderRadius:"4px",padding:"2px 10px"},ARe={borderRadius:"2px"},IA={borderRadius:"2px"},jA={borderRadius:"4px",padding:"0 5px",margin:"0 2px"},BA={width:"12px",height:"12px",borderRadius:"6px"},Iv={borderRadius:"4px",padding:"2px 6px"},Sp={borderRadius:"4px",borderRadiusSelected:"3px",lineHeight:"1.3",padding:"4px 8px",paddingRight:"8px"},ho="#3c3836",RRe="#504945",ERe="#665c54",jv="#7c6f64",Ca="#928374",tu="#fbf1c7",vw="#ebdbb2",hV="#d5c4a1",Qh="#bdae93",MRe="#a89984",By="#9d0006",Bv="#79740e",Yp="#b57614",Kp="#076678",zy="#8f3f71",zA="#427b58",Ia="#af3a03",Rd=By,$Re=vw,LRe="#ffc42e25",DRe=tu,zv=vw,NRe=$Re,QRe="#ffc42e40",VA=Ia,IRe="#d5c4a180",jRe=Ia,dV=Yp,fJ=Kp,BRe=zy,fV="#d8e5bc80",pV="#f7cfcf80",qA="#79740e",XA="#9d0006",zRe=be.theme({"&":{color:ho,backgroundColor:DRe,fontSize:NA.fontSize,fontFamily:NA.fontFamily},".cm-content":{caretColor:VA,lineHeight:NA.lineHeight},".cm-cursor, .cm-dropCursor":{borderLeftColor:VA,borderLeftWidth:PRe.borderLeftWidth},".cm-fat-cursor":{backgroundColor:`${VA}99`,color:tu},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:NRe,color:ho},".cm-selectionLayer":{zIndex:100},".cm-searchMatch":{backgroundColor:"#ffc42e80",outline:`1px solid ${Ia}`,color:ho,borderRadius:Iv.borderRadius,"& span":{color:ho}},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:Ia,color:tu,padding:Iv.padding,"& span":{color:tu}},".cm-search.cm-panel.cm-textfield":{color:ho,borderRadius:Iv.borderRadius,padding:Iv.padding},".cm-panels":{backgroundColor:vw,color:RRe,borderRadius:"0 0 4px 4px"},".cm-panels.cm-panels-top":{borderBottom:`1px solid ${Qh}`},".cm-panels.cm-panels-bottom":{borderTop:`1px solid ${Qh}`},".cm-panel button":{backgroundColor:tu,color:ho,border:QA.border,borderRadius:QA.borderRadius,padding:QA.padding},".cm-panel button:hover":{backgroundColor:hV},".cm-activeLine":{backgroundColor:LRe,borderRadius:ARe.borderRadius,zIndex:1},".cm-gutters":{backgroundColor:vw,color:jv,border:Nh.border,borderRight:`1px solid ${Qh}`,paddingRight:Nh.paddingRight},".cm-activeLineGutter":{backgroundColor:hV,color:ho,fontWeight:Nh.fontWeight},".cm-lineNumbers":{fontSize:Nh.fontSize,lineHeight:Nh.lineHeight},".cm-foldGutter":{fontSize:Nh.fontSize,lineHeight:Nh.lineHeight},".cm-foldGutter .cm-gutterElement":{color:jv,cursor:"pointer"},".cm-foldGutter .cm-gutterElement:hover":{color:ho},".cm-insertedLine":{textDecoration:Js.insertedTextDecoration,backgroundColor:fV,color:qA,padding:Js.insertedLinePadding,borderRadius:Js.borderRadious},"ins.cm-insertedLine, ins.cm-insertedLine:not(:has(.cm-changedText))":{textDecoration:Js.insertedTextDecoration,backgroundColor:`${fV} !important`,color:qA,padding:Js.insertedLinePadding,borderRadius:Js.borderRadious,border:`1px solid ${qA}40`},"ins.cm-insertedLine .cm-changedText":{background:"transparent !important"},".cm-deletedLine":{textDecoration:Js.deletedTextDecoration,backgroundColor:pV,color:XA,padding:Js.insertedLinePadding,borderRadius:Js.borderRadious},"del.cm-deletedLine, del, del:not(:has(.cm-deletedText))":{textDecoration:Js.deletedTextDecoration,backgroundColor:`${pV} !important`,color:XA,padding:Js.insertedLinePadding,borderRadius:Js.borderRadious,border:`1px solid ${XA}40`},"del .cm-deletedText, del .cm-changedText":{background:"transparent !important"},".cm-tooltip":{backgroundColor:zv,border:`1px solid ${Qh}`,borderRadius:Sp.borderRadius,padding:Sp.padding,boxShadow:"0 1px 5px rgba(0, 0, 0, 0.1)"},".cm-tooltip-autocomplete":{"& > ul":{backgroundColor:zv,border:"none"},"& > ul > li":{padding:Sp.padding,lineHeight:Sp.lineHeight},"& > ul > li[aria-selected]":{backgroundColor:Ia+"30",color:ho,borderRadius:Sp.borderRadiusSelected},"& > ul > li:hover":{backgroundColor:Ia+"15"},"& > ul > li > span.cm-completionIcon":{color:jv,paddingRight:Sp.paddingRight},"& > ul > li > span.cm-completionDetail":{color:jv,fontStyle:"italic"}},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:zv,borderBottomColor:zv},".cm-diagnostic":{"&-error":{borderLeft:`3px solid ${Rd}`},"&-warning":{borderLeft:`3px solid ${dV}`},"&-info":{borderLeft:`3px solid ${fJ}`}},".cm-lintPoint-error":{borderBottom:`2px wavy ${Rd}`},".cm-lintPoint-warning":{borderBottom:`2px wavy ${dV}`},".cm-matchingBracket":{backgroundColor:IRe,outline:`1px solid ${jRe}`,borderRadius:IA.borderRadius},".cm-nonmatchingBracket":{backgroundColor:"#fb492740",outline:`1px solid ${Rd}`,borderRadius:IA.borderRadius},".cm-selectionMatch":{backgroundColor:QRe,outline:`1px solid ${Qh}`,borderRadius:IA.borderRadius},".cm-foldPlaceholder":{backgroundColor:"transparent",color:ERe,border:`1px dotted ${Qh}`,borderRadius:jA.borderRadius,padding:jA.padding,margin:jA.margin},"&.cm-focused":{outline:"none",boxShadow:`0 0 0 2px ${tu}, 0 0 0 3px ${Ia}40`},"& .cm-scroller::-webkit-scrollbar":{width:BA.width,height:BA.height},"& .cm-scroller::-webkit-scrollbar-track":{background:tu},"& .cm-scroller::-webkit-scrollbar-thumb":{backgroundColor:Qh,borderRadius:BA.borderRadius,border:`3px solid ${tu}`},"& .cm-scroller::-webkit-scrollbar-thumb:hover":{backgroundColor:MRe},".cm-ghostText":{opacity:"0.5",color:Ca}},{dark:!1}),VRe=Ci.define([{tag:O.keyword,color:By,fontWeight:"bold"},{tag:O.controlKeyword,color:By,fontWeight:"bold"},{tag:O.moduleKeyword,color:By,fontWeight:"bold"},{tag:[O.name,O.deleted,O.character,O.macroName],color:Kp},{tag:[O.variableName],color:Kp},{tag:[O.propertyName],color:zA,fontStyle:"normal"},{tag:[O.typeName],color:zA},{tag:[O.className],color:Yp,fontStyle:"italic"},{tag:[O.namespace],color:Kp,fontStyle:"italic"},{tag:[O.operator,O.operatorKeyword],color:ho},{tag:[O.bracket],color:Ca},{tag:[O.brace],color:Ca},{tag:[O.punctuation],color:Ca},{tag:[O.function(O.variableName),O.labelName],color:Yp},{tag:[O.definition(O.variableName)],color:Kp},{tag:O.number,color:zy},{tag:O.changed,color:zy},{tag:O.annotation,color:Rd,fontStyle:"italic"},{tag:O.modifier,color:zy,fontStyle:"italic"},{tag:O.self,color:zy},{tag:[O.color,O.constant(O.name),O.standard(O.name)],color:Ia},{tag:[O.atom,O.bool,O.special(O.variableName)],color:Ia},{tag:[O.processingInstruction,O.inserted],color:Bv},{tag:[O.special(O.string),O.regexp],color:Bv},{tag:O.string,color:Bv},{tag:O.definition(O.typeName),color:zA,fontWeight:"bold"},{tag:O.meta,color:Ca},{tag:O.comment,fontStyle:"italic",color:Ca},{tag:O.docComment,fontStyle:"italic",color:Ca},{tag:[O.tagName],color:By},{tag:[O.attributeName],color:Yp},{tag:[O.heading],fontWeight:"bold",color:Yp},{tag:[O.strong],fontWeight:"bold",color:Yp},{tag:[O.emphasis],fontStyle:"italic",color:Bv},{tag:[O.link],color:BRe,fontWeight:"500",textDecoration:"underline",textUnderlinePosition:"under"},{tag:[O.url],color:fJ,textDecoration:"underline",textUnderlineOffset:"2px"},{tag:[O.invalid],color:ho,textDecoration:"underline wavy",borderBottom:`1px wavy ${Rd}`},{tag:[O.strikethrough],color:Rd,textDecoration:"line-through"},{tag:O.constant(O.name),color:Ia},{tag:O.deleted,color:Rd},{tag:O.squareBracket,color:Ca},{tag:O.angleBracket,color:Ca},{tag:O.monospace,color:ho},{tag:[O.contentSeparator],color:Kp},{tag:O.quote,color:Ca}]),qRe=[zRe,Mr(VRe)],FA={fontSize:"14px",fontFamily:"JetBrains Mono, Consolas, monospace",lineHeight:"1.6"},XRe={borderLeftWidth:"2px"},eo={insertedTextDecoration:"none",deletedTextDecoration:"line-through",insertedLinePadding:"1px 3px",borderRadious:"3px"},Ih={border:"none",paddingRight:"8px",fontSize:"0.9em",fontWeight:"500",lineHeight:"1.78"},UA={border:"none",borderRadius:"4px",padding:"2px 10px"},FRe={borderRadius:"2px"},WA={borderRadius:"2px"},GA={borderRadius:"4px",padding:"0 5px",margin:"0 2px"},ZA={width:"12px",height:"12px",borderRadius:"6px"},Vv={borderRadius:"4px",padding:"2px 6px"},wp={borderRadius:"4px",borderRadiusSelected:"3px",lineHeight:"1.3",padding:"4px 8px",paddingRight:"8px"},pJ="#212121",mJ="#505d64",HA="#606f7a",Xn="#707d8b",URe="#a0a4ae",Dl="#bdbdbd",YA="#e0e0e0",WRe="#202325",id="#ff5f52",Jb="#ff6e40",GRe="#fa5788",ey="#facf4e",oS="#ffad42",ql="#56c8d8",kp="#7186f0",aS="#cf6edf",ZRe="#6abf69",HRe="#99d066",YRe="#4ebaaa",Ed=id,KA=WRe,KRe="#2d333b30",ty=pJ,Cp=mJ,mV="#ffffff1f",JRe="#4A707A80",JA=URe,eEe="#39496650",tEe=ql,gV=oS,gJ=ql,nEe=aS,bV="#1e3d2780",yV="#4e282880",eR="#6abf69",tR="#ff5f52",iEe=be.theme({"&":{color:Dl,backgroundColor:ty,fontSize:FA.fontSize,fontFamily:FA.fontFamily},".cm-content":{caretColor:JA,lineHeight:FA.lineHeight},".cm-cursor, .cm-dropCursor":{borderLeftColor:JA,borderLeftWidth:XRe.borderLeftWidth},".cm-fat-cursor":{backgroundColor:`${JA}99`,color:ty},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:mV},".cm-selectionLayer":{zIndex:100},".cm-searchMatch":{backgroundColor:"#394966cc",outline:`1px solid ${ql}`,color:YA,borderRadius:Vv.borderRadius,"& span":{color:YA}},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:ql,color:ty,padding:Vv.padding,"& span":{color:ty}},".cm-search.cm-panel.cm-textfield":{color:Dl,borderRadius:Vv.borderRadius,padding:Vv.padding},".cm-panels":{backgroundColor:pJ,color:Dl,borderRadius:"4px"},".cm-panels.cm-panels-top":{borderBottom:`1px solid ${Xn}`},".cm-panels.cm-panels-bottom":{borderTop:`1px solid ${Xn}`},".cm-panel button":{backgroundColor:Cp,color:Dl,border:UA.border,borderRadius:UA.borderRadius,padding:UA.padding},".cm-panel button:hover":{backgroundColor:HA},".cm-activeLine":{backgroundColor:KRe,borderRadius:FRe.borderRadius,zIndex:1},".cm-gutters":{backgroundColor:KA,color:Xn,border:Ih.border,borderRight:`1px solid ${mJ}`,paddingRight:Ih.paddingRight},".cm-activeLineGutter":{backgroundColor:"#252a2c",color:Dl,fontWeight:Ih.fontWeight},".cm-lineNumbers":{fontSize:Ih.fontSize,lineHeight:Ih.lineHeight},".cm-foldGutter":{fontSize:Ih.fontSize,lineHeight:Ih.lineHeight},".cm-foldGutter .cm-gutterElement":{color:Xn,cursor:"pointer"},".cm-foldGutter .cm-gutterElement:hover":{color:Dl},".cm-insertedLine":{textDecoration:eo.insertedTextDecoration,backgroundColor:bV,color:eR,padding:eo.insertedLinePadding,borderRadius:eo.borderRadious},"ins.cm-insertedLine, ins.cm-insertedLine:not(:has(.cm-changedText))":{textDecoration:eo.insertedTextDecoration,backgroundColor:`${bV} !important`,color:eR,padding:eo.insertedLinePadding,borderRadius:eo.borderRadious,border:`1px solid ${eR}40`},"ins.cm-insertedLine .cm-changedText":{background:"transparent !important"},".cm-deletedLine":{textDecoration:eo.deletedTextDecoration,backgroundColor:yV,color:tR,padding:eo.insertedLinePadding,borderRadius:eo.borderRadious},"del.cm-deletedLine, del, del:not(:has(.cm-deletedText))":{textDecoration:eo.deletedTextDecoration,backgroundColor:`${yV} !important`,color:tR,padding:eo.insertedLinePadding,borderRadius:eo.borderRadious,border:`1px solid ${tR}40`},"del .cm-deletedText, del .cm-changedText":{background:"transparent !important"},".cm-tooltip":{backgroundColor:Cp,border:`1px solid ${Xn}`,borderRadius:wp.borderRadius,padding:wp.padding,boxShadow:"0 2px 8px rgba(0, 0, 0, 0.3)"},".cm-tooltip-autocomplete":{"& > ul":{backgroundColor:Cp,border:"none"},"& > ul > li":{padding:wp.padding,lineHeight:wp.lineHeight},"& > ul > li[aria-selected]":{backgroundColor:mV,color:YA,borderRadius:wp.borderRadiusSelected},"& > ul > li > span.cm-completionIcon":{color:Xn,paddingRight:wp.paddingRight},"& > ul > li > span.cm-completionDetail":{color:Xn,fontStyle:"italic"}},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:Cp,borderBottomColor:Cp},".cm-diagnostic":{"&-error":{borderLeft:`3px solid ${Ed}`},"&-warning":{borderLeft:`3px solid ${gV}`},"&-info":{borderLeft:`3px solid ${gJ}`}},".cm-lintPoint-error":{borderBottom:`2px wavy ${Ed}`},".cm-lintPoint-warning":{borderBottom:`2px wavy ${gV}`},".cm-matchingBracket":{backgroundColor:eEe,outline:`1px solid ${tEe}`,borderRadius:WA.borderRadius},".cm-nonmatchingBracket":{backgroundColor:"#ff5f5240",outline:`1px solid ${Ed}`,borderRadius:WA.borderRadius},".cm-selectionMatch":{backgroundColor:JRe,outline:`1px solid ${HA}50`,borderRadius:WA.borderRadius},".cm-foldPlaceholder":{backgroundColor:Cp,color:Xn,border:`1px dotted ${Xn}70`,borderRadius:GA.borderRadius,padding:GA.padding,margin:GA.margin},"&.cm-focused":{outline:"none",boxShadow:`0 0 0 2px ${ty}, 0 0 0 3px ${ql}40`},"& .cm-scroller::-webkit-scrollbar":{width:ZA.width,height:ZA.height},"& .cm-scroller::-webkit-scrollbar-track":{background:KA},"& .cm-scroller::-webkit-scrollbar-thumb":{backgroundColor:HA,borderRadius:ZA.borderRadius,border:`3px solid ${KA}`},"& .cm-scroller::-webkit-scrollbar-thumb:hover":{backgroundColor:Xn},".cm-ghostText":{opacity:"0.5",color:Xn}},{dark:!0}),rEe=Ci.define([{tag:O.keyword,color:id,fontWeight:"bold"},{tag:O.controlKeyword,color:id,fontWeight:"bold"},{tag:O.moduleKeyword,color:id,fontWeight:"bold"},{tag:[O.name,O.deleted,O.character,O.macroName],color:kp},{tag:[O.variableName],color:HRe},{tag:[O.propertyName],color:aS,fontStyle:"normal"},{tag:[O.typeName],color:id},{tag:[O.className],color:ey,fontStyle:"italic"},{tag:[O.namespace],color:kp,fontStyle:"italic"},{tag:[O.operator,O.operatorKeyword],color:Dl},{tag:[O.bracket],color:Xn},{tag:[O.brace],color:Xn},{tag:[O.punctuation],color:Xn},{tag:[O.function(O.variableName)],color:ql},{tag:[O.labelName],color:ql,fontStyle:"italic"},{tag:[O.definition(O.function(O.variableName))],color:ql},{tag:[O.definition(O.variableName)],color:kp},{tag:O.number,color:ey},{tag:O.changed,color:ey},{tag:O.annotation,color:Ed,fontStyle:"italic"},{tag:O.modifier,color:Jb,fontStyle:"italic"},{tag:O.self,color:Jb},{tag:[O.color,O.constant(O.name),O.standard(O.name)],color:Jb},{tag:[O.atom,O.bool,O.special(O.variableName)],color:Jb},{tag:[O.processingInstruction,O.inserted],color:ZRe},{tag:[O.special(O.string),O.regexp],color:GRe},{tag:O.string,color:oS},{tag:O.definition(O.typeName),color:id,fontWeight:"bold"},{tag:O.meta,color:Xn},{tag:O.comment,fontStyle:"italic",color:Xn},{tag:O.docComment,fontStyle:"italic",color:Xn},{tag:[O.tagName],color:aS},{tag:[O.attributeName],color:ey},{tag:[O.heading],fontWeight:"bold",color:YRe},{tag:O.heading1,color:ey},{tag:O.heading2,color:oS},{tag:O.heading3,color:ql},{tag:O.heading4,color:kp},{tag:O.heading5,color:aS},{tag:O.heading6,color:id},{tag:[O.strong],fontWeight:"bold",color:kp},{tag:[O.emphasis],fontStyle:"italic",color:oS},{tag:[O.link],color:nEe,fontWeight:"500",textDecoration:"underline",textUnderlinePosition:"under"},{tag:[O.url],color:gJ,textDecoration:"underline",textUnderlineOffset:"2px"},{tag:[O.invalid],color:Dl,textDecoration:"underline wavy",borderBottom:`1px wavy ${Ed}`},{tag:[O.strikethrough],color:Ed,textDecoration:"line-through"},{tag:O.constant(O.name),color:Jb},{tag:O.deleted,color:Ed},{tag:O.squareBracket,color:Xn},{tag:O.angleBracket,color:Xn},{tag:O.monospace,color:Dl},{tag:[O.contentSeparator],color:kp},{tag:O.quote,color:Xn}]),sEe=[iEe,Mr(rEe)],nR={fontSize:"14px",fontFamily:"JetBrains Mono, Consolas, monospace",lineHeight:"1.6"},oEe={borderLeftWidth:"2px"},to={insertedTextDecoration:"none",deletedTextDecoration:"line-through",insertedLinePadding:"1px 3px",borderRadious:"3px"},jh={border:"none",paddingRight:"8px",fontSize:"0.9em",fontWeight:"500",lineHeight:"1.78"},iR={border:"none",borderRadius:"4px",padding:"2px 10px"},aEe={borderRadius:"2px"},rR={borderRadius:"2px"},sR={borderRadius:"4px",padding:"0 5px",margin:"0 2px"},oR={width:"12px",height:"12px",borderRadius:"6px"},qv={borderRadius:"4px",padding:"2px 6px"},Tp={borderRadius:"4px",borderRadiusSelected:"3px",lineHeight:"1.3",padding:"4px 8px",paddingRight:"8px"},lEe="#ffffff",bJ="#f5f5f5",Fr="#212121",ws="#757575",Vy="#9e9e9e",aR="#424242",cEe="#eeeeee",lR="#fafafa",cL="#f44336",Xv="#ff3e00",Fv="#FF00E9FF",uEe="#ffc107",Ta="#ff9800",Bl="#00acc1",Uv="#3949ab",qy="#8e24aa",Wv="#43a047",xV="#00897b",OV="#1e88e5",Md=cL,hEe="#00000008",ny=lEe,iy=bJ,dEe="#DDEEFF",fEe="#90a4ae26",_V=Vy,pEe="#DDEEFF80",mEe=Bl,vV=Ta,yJ=Bl,gEe=qy,SV="#ECEFF180",wV="#e6ffed80",kV="#ffebe980",cR="#28a745",uR="#d73a49",bEe=be.theme({"&":{color:Fr,backgroundColor:ny,fontSize:nR.fontSize,fontFamily:nR.fontFamily},".cm-content":{caretColor:_V,lineHeight:nR.lineHeight},".cm-cursor, .cm-dropCursor":{borderLeftColor:_V,borderLeftWidth:oEe.borderLeftWidth},".cm-fat-cursor":{backgroundColor:`${Fr}99`,color:ny},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:dEe},".cm-selectionLayer":{zIndex:100},".cm-searchMatch":{backgroundColor:"#FFA72680",outline:`1px solid ${uEe}`,color:Fr,borderRadius:qv.borderRadius,"& span":{color:Fr}},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:Bl,color:ny,padding:qv.padding,"& span":{color:ny}},".cm-search.cm-panel.cm-textfield":{color:Fr,borderRadius:qv.borderRadius,padding:qv.padding},".cm-panels":{backgroundColor:cEe,color:Fr,borderRadius:"4px",boxShadow:"0 2px 8px rgba(0, 0, 0, 0.15)"},".cm-panels.cm-panels-top":{borderBottom:`1px solid ${Vy}`},".cm-panels.cm-panels-bottom":{borderTop:`1px solid ${Vy}`},".cm-panel button":{backgroundColor:iy,color:Fr,border:iR.border,borderRadius:iR.borderRadius,padding:iR.padding},".cm-panel button:hover":{backgroundColor:"#CFD8DC"},".cm-activeLine":{backgroundColor:hEe,borderRadius:aEe.borderRadius,zIndex:1},".cm-gutters":{backgroundColor:lR,color:ws,border:jh.border,borderRight:`1px solid ${Vy}`,paddingRight:jh.paddingRight},".cm-activeLineGutter":{backgroundColor:"#E0E0E0",color:Fr,fontWeight:jh.fontWeight},".cm-lineNumbers":{fontSize:jh.fontSize,lineHeight:jh.lineHeight},".cm-foldGutter":{fontSize:jh.fontSize,lineHeight:jh.lineHeight},".cm-foldGutter .cm-gutterElement":{color:ws,cursor:"pointer",transition:"color 0.15s ease"},".cm-foldGutter .cm-gutterElement:hover":{color:Fr},".cm-insertedLine":{textDecoration:to.insertedTextDecoration,backgroundColor:wV,color:cR,padding:to.insertedLinePadding,borderRadius:to.borderRadious},"ins.cm-insertedLine, ins.cm-insertedLine:not(:has(.cm-changedText))":{textDecoration:to.insertedTextDecoration,backgroundColor:`${wV} !important`,color:cR,padding:to.insertedLinePadding,borderRadius:to.borderRadious,border:`1px solid ${cR}30`},"ins.cm-insertedLine .cm-changedText":{background:"transparent !important"},".cm-deletedLine":{textDecoration:to.deletedTextDecoration,backgroundColor:kV,color:uR,padding:to.insertedLinePadding,borderRadius:to.borderRadious},"del.cm-deletedLine, del, del:not(:has(.cm-deletedText))":{textDecoration:to.deletedTextDecoration,backgroundColor:`${kV} !important`,color:uR,padding:to.insertedLinePadding,borderRadius:to.borderRadious,border:`1px solid ${uR}30`},"del .cm-deletedText, del .cm-changedText":{background:"transparent !important"},".cm-tooltip":{backgroundColor:iy,border:`1px solid ${Vy}`,borderRadius:Tp.borderRadius,padding:Tp.padding,boxShadow:"0 2px 8px rgba(0, 0, 0, 0.15)"},".cm-tooltip-autocomplete":{"& > ul":{backgroundColor:iy,border:"none"},"& > ul > li":{padding:Tp.padding,lineHeight:Tp.lineHeight},"& > ul > li[aria-selected]":{backgroundColor:SV,color:Fr,borderRadius:Tp.borderRadiusSelected},"& > ul > li:hover":{backgroundColor:SV},"& > ul > li > span.cm-completionIcon":{color:ws,paddingRight:Tp.paddingRight},"& > ul > li > span.cm-completionDetail":{color:ws,fontStyle:"italic"}},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:iy,borderBottomColor:iy},".cm-diagnostic":{"&-error":{borderLeft:`3px solid ${Md}`},"&-warning":{borderLeft:`3px solid ${vV}`},"&-info":{borderLeft:`3px solid ${yJ}`}},".cm-lintPoint-error":{borderBottom:`2px wavy ${Md}`},".cm-lintPoint-warning":{borderBottom:`2px wavy ${vV}`},".cm-matchingBracket":{backgroundColor:pEe,outline:`1px solid ${mEe}`,borderRadius:rR.borderRadius},".cm-nonmatchingBracket":{backgroundColor:`${Md}20`,outline:`1px solid ${Md}`,borderRadius:rR.borderRadius},".cm-selectionMatch":{backgroundColor:fEe,outline:`1px solid ${ws}30`,borderRadius:rR.borderRadius},".cm-foldPlaceholder":{backgroundColor:bJ,color:ws,border:`1px dotted ${ws}70`,borderRadius:sR.borderRadius,padding:sR.padding,margin:sR.margin},"&.cm-focused":{outline:"none",boxShadow:`0 0 0 2px ${ny}, 0 0 0 3px ${Bl}40`},"& .cm-scroller::-webkit-scrollbar":{width:oR.width,height:oR.height},"& .cm-scroller::-webkit-scrollbar-track":{background:lR},"& .cm-scroller::-webkit-scrollbar-thumb":{backgroundColor:ws,borderRadius:oR.borderRadius,border:`3px solid ${lR}`},"& .cm-scroller::-webkit-scrollbar-thumb:hover":{backgroundColor:Fr},".cm-ghostText":{opacity:"0.5",color:ws}},{dark:!1}),yEe=Ci.define([{tag:O.keyword,color:Bl,fontWeight:"bold"},{tag:O.controlKeyword,color:Bl,fontWeight:"bold"},{tag:O.moduleKeyword,color:Bl,fontWeight:"bold"},{tag:[O.name,O.deleted,O.character,O.macroName],color:aR},{tag:[O.variableName],color:aR},{tag:[O.propertyName],color:xV,fontStyle:"normal"},{tag:[O.typeName],color:Ta},{tag:[O.className],color:Ta,fontStyle:"italic"},{tag:[O.namespace],color:Uv,fontStyle:"italic"},{tag:[O.operator,O.operatorKeyword],color:Uv},{tag:[O.bracket],color:qy},{tag:[O.brace],color:qy},{tag:[O.punctuation],color:ws},{tag:[O.function(O.variableName)],color:Xv},{tag:[O.labelName],color:OV,fontStyle:"italic"},{tag:[O.definition(O.function(O.variableName))],color:Xv},{tag:[O.definition(O.variableName)],color:Fv},{tag:O.number,color:Ta},{tag:O.changed,color:Ta},{tag:O.annotation,color:Md,fontStyle:"italic"},{tag:O.modifier,color:Ta,fontStyle:"italic"},{tag:O.self,color:Ta},{tag:[O.color,O.constant(O.name),O.standard(O.name)],color:Ta},{tag:[O.atom,O.bool],color:qy},{tag:[O.processingInstruction,O.inserted],color:Wv},{tag:O.string,color:Wv},{tag:[O.special(O.string),O.regexp],color:Fv},{tag:O.definition(O.typeName),color:Fv,fontWeight:"bold"},{tag:[O.definition(O.name),O.separator],color:Fv},{tag:O.meta,color:ws},{tag:O.comment,fontStyle:"italic",color:ws},{tag:O.docComment,fontStyle:"italic",color:ws},{tag:[O.tagName],color:Xv},{tag:[O.attributeName],color:aR},{tag:[O.heading],fontWeight:"bold",color:xV},{tag:O.heading1,color:OV},{tag:O.heading2,color:Ta},{tag:O.heading3,color:Bl},{tag:O.heading4,color:Uv},{tag:O.heading5,color:qy},{tag:O.heading6,color:Wv},{tag:[O.strong],fontWeight:"bold",color:Uv},{tag:[O.emphasis],fontStyle:"italic",color:Ta},{tag:[O.link],color:gEe,fontWeight:"500",textDecoration:"underline",textUnderlinePosition:"under"},{tag:[O.url],color:yJ,textDecoration:"underline",textUnderlineOffset:"2px"},{tag:[O.invalid],color:Fr,textDecoration:"underline wavy",borderBottom:`1px dotted ${cL}`},{tag:[O.strikethrough],color:Md,textDecoration:"line-through"},{tag:O.constant(O.name),color:Xv},{tag:O.deleted,color:Md},{tag:O.squareBracket,color:cL},{tag:O.angleBracket,color:Fr},{tag:O.monospace,color:Fr},{tag:[O.contentSeparator],color:Bl},{tag:O.quote,color:Wv}]),xEe=[bEe,Mr(yEe)],hR={fontSize:"14px",fontFamily:"JetBrains Mono, Consolas, monospace",lineHeight:"1.6"},OEe={borderLeftWidth:"2px"},no={insertedTextDecoration:"none",deletedTextDecoration:"line-through",insertedLinePadding:"1px 3px",borderRadious:"3px"},Bh={border:"none",paddingRight:"8px",fontSize:"0.9em",fontWeight:"500",lineHeight:"1.78"},dR={border:"none",borderRadius:"4px",padding:"2px 10px"},_Ee={borderRadius:"2px"},fR={borderRadius:"2px"},pR={borderRadius:"4px",padding:"0 5px",margin:"0 2px"},mR={width:"12px",height:"12px",borderRadius:"6px"},Gv={borderRadius:"4px",padding:"2px 6px"},Pp={borderRadius:"4px",borderRadiusSelected:"3px",lineHeight:"1.3",padding:"4px 8px",paddingRight:"8px"},ry="#272822",Ki="#f8f8f2",Gr="#88846f",vEe="#f8f8f0",Jp="#F92672",nu="#FD971F",$d="#66D9EF",uL="#E6DB74",iu="#AE81FF",sy="#A6E22E",Ld="#F44747",Zv="#414339",SEe="#3e3d3257",Ap="#34352f",CV="#49483E",wEe="#75715e70",gR=vEe,kEe="#75715E55",CEe=$d,TV=nu,xJ=$d,TEe=iu,PV="#3d4d3880",AV="#4d393980",bR="#A6E22E",yR="#F92672",PEe=be.theme({"&":{color:Ki,backgroundColor:ry,fontSize:hR.fontSize,fontFamily:hR.fontFamily},".cm-content":{caretColor:gR,lineHeight:hR.lineHeight},".cm-cursor, .cm-dropCursor":{borderLeftColor:gR,borderLeftWidth:OEe.borderLeftWidth},".cm-fat-cursor":{backgroundColor:`${gR}99`,color:ry},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:CV},".cm-selectionLayer":{zIndex:100},".cm-searchMatch":{backgroundColor:"#49483E99",outline:`1px solid ${uL}`,color:Ki,borderRadius:Gv.borderRadius,"& span":{color:Ki}},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:Jp,color:ry,padding:Gv.padding,"& span":{color:ry}},".cm-search.cm-panel.cm-textfield":{color:Ki,borderRadius:Gv.borderRadius,padding:Gv.padding},".cm-panels":{backgroundColor:Zv,color:Ki,borderRadius:"4px"},".cm-panels.cm-panels-top":{borderBottom:`1px solid ${Gr}80`},".cm-panels.cm-panels-bottom":{borderTop:`1px solid ${Gr}80`},".cm-panel button":{backgroundColor:Ap,color:Ki,border:dR.border,borderRadius:dR.borderRadius,padding:dR.padding},".cm-panel button:hover":{backgroundColor:"#49483E"},".cm-activeLine":{backgroundColor:SEe,borderRadius:_Ee.borderRadius,zIndex:1},".cm-gutters":{backgroundColor:Zv,color:Gr,border:Bh.border,borderRight:"1px solid #3e3d32",paddingRight:Bh.paddingRight},".cm-activeLineGutter":{backgroundColor:"#35352c",color:Ki,fontWeight:Bh.fontWeight},".cm-lineNumbers":{fontSize:Bh.fontSize,lineHeight:Bh.lineHeight},".cm-foldGutter":{fontSize:Bh.fontSize,lineHeight:Bh.lineHeight},".cm-foldGutter .cm-gutterElement":{color:Gr,cursor:"pointer"},".cm-foldGutter .cm-gutterElement:hover":{color:Ki},".cm-insertedLine":{textDecoration:no.insertedTextDecoration,backgroundColor:PV,color:bR,padding:no.insertedLinePadding,borderRadius:no.borderRadious},"ins.cm-insertedLine, ins.cm-insertedLine:not(:has(.cm-changedText))":{textDecoration:no.insertedTextDecoration,backgroundColor:`${PV} !important`,color:bR,padding:no.insertedLinePadding,borderRadius:no.borderRadious,border:`1px solid ${bR}40`},"ins.cm-insertedLine .cm-changedText":{background:"transparent !important"},".cm-deletedLine":{textDecoration:no.deletedTextDecoration,backgroundColor:AV,color:yR,padding:no.insertedLinePadding,borderRadius:no.borderRadious},"del.cm-deletedLine, del, del:not(:has(.cm-deletedText))":{textDecoration:no.deletedTextDecoration,backgroundColor:`${AV} !important`,color:yR,padding:no.insertedLinePadding,borderRadius:no.borderRadious,border:`1px solid ${yR}40`},"del .cm-deletedText, del .cm-changedText":{background:"transparent !important"},".cm-tooltip":{backgroundColor:Ap,border:"1px solid #49483E",borderRadius:Pp.borderRadius,padding:Pp.padding,boxShadow:"0 2px 8px rgba(0, 0, 0, 0.4)"},".cm-tooltip-autocomplete":{"& > ul":{backgroundColor:Ap,border:"none"},"& > ul > li":{padding:Pp.padding,lineHeight:Pp.lineHeight},"& > ul > li[aria-selected]":{backgroundColor:CV,color:Ki,borderRadius:Pp.borderRadiusSelected},"& > ul > li > span.cm-completionIcon":{color:Gr,paddingRight:Pp.paddingRight},"& > ul > li > span.cm-completionDetail":{color:Gr,fontStyle:"italic"}},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:Ap,borderBottomColor:Ap},".cm-diagnostic":{"&-error":{borderLeft:`3px solid ${Ld}`},"&-warning":{borderLeft:`3px solid ${TV}`},"&-info":{borderLeft:`3px solid ${xJ}`}},".cm-lintPoint-error":{borderBottom:`2px wavy ${Ld}`},".cm-lintPoint-warning":{borderBottom:`2px wavy ${TV}`},".cm-matchingBracket":{backgroundColor:kEe,outline:`1px solid ${CEe}`,borderRadius:fR.borderRadius},".cm-nonmatchingBracket":{backgroundColor:"#f9267240",outline:`1px solid ${Ld}`,borderRadius:fR.borderRadius},".cm-selectionMatch":{backgroundColor:wEe,outline:`1px solid ${Gr}50`,borderRadius:fR.borderRadius},".cm-foldPlaceholder":{backgroundColor:Ap,color:Gr,border:`1px dotted ${Gr}70`,borderRadius:pR.borderRadius,padding:pR.padding,margin:pR.margin},"&.cm-focused":{outline:"none",boxShadow:`0 0 0 2px ${ry}, 0 0 0 3px ${$d}40`},"& .cm-scroller::-webkit-scrollbar":{width:mR.width,height:mR.height},"& .cm-scroller::-webkit-scrollbar-track":{background:Zv},"& .cm-scroller::-webkit-scrollbar-thumb":{backgroundColor:"#49483E",borderRadius:mR.borderRadius,border:`3px solid ${Zv}`},"& .cm-scroller::-webkit-scrollbar-thumb:hover":{backgroundColor:"#5a594d"},".cm-ghostText":{opacity:"0.5",color:Gr}},{dark:!0}),AEe=Ci.define([{tag:O.keyword,color:Jp,fontWeight:"bold"},{tag:O.controlKeyword,color:Jp,fontWeight:"bold"},{tag:O.moduleKeyword,color:Jp,fontWeight:"bold"},{tag:[O.name,O.deleted,O.character,O.macroName],color:nu},{tag:[O.variableName],color:nu},{tag:[O.propertyName],color:sy,fontStyle:"normal"},{tag:[O.typeName],color:$d,fontStyle:"italic"},{tag:[O.className],color:sy,fontStyle:"italic"},{tag:[O.namespace],color:nu,fontStyle:"italic"},{tag:[O.operator,O.operatorKeyword],color:Jp},{tag:[O.bracket],color:Ki},{tag:[O.brace],color:Ki},{tag:[O.punctuation],color:Ki},{tag:[O.function(O.variableName),O.labelName],color:$d},{tag:[O.definition(O.function(O.variableName))],color:$d},{tag:[O.definition(O.variableName)],color:nu},{tag:O.number,color:iu},{tag:O.changed,color:iu},{tag:O.annotation,color:Ld,fontStyle:"italic"},{tag:O.modifier,color:iu,fontStyle:"italic"},{tag:O.self,color:iu},{tag:[O.color,O.constant(O.name),O.standard(O.name)],color:iu},{tag:[O.atom,O.bool,O.special(O.variableName)],color:iu},{tag:[O.processingInstruction,O.inserted],color:sy},{tag:[O.special(O.string),O.regexp],color:uL},{tag:O.string,color:uL},{tag:O.definition(O.typeName),color:$d,fontWeight:"bold"},{tag:O.meta,color:Gr},{tag:O.comment,fontStyle:"italic",color:Gr},{tag:O.docComment,fontStyle:"italic",color:Gr},{tag:[O.tagName],color:Jp},{tag:[O.attributeName],color:sy},{tag:[O.heading],fontWeight:"bold",color:sy},{tag:[O.strong],fontWeight:"bold",color:nu},{tag:[O.emphasis],fontStyle:"italic",color:nu},{tag:[O.link],color:TEe,fontWeight:"500",textDecoration:"underline",textUnderlinePosition:"under"},{tag:[O.url],color:xJ,textDecoration:"underline",textUnderlineOffset:"2px"},{tag:[O.invalid],color:Ki,textDecoration:"underline wavy",borderBottom:`1px wavy ${Ld}`},{tag:[O.strikethrough],color:Ld,textDecoration:"line-through"},{tag:O.constant(O.name),color:iu},{tag:O.deleted,color:Ld},{tag:O.squareBracket,color:Ki},{tag:O.angleBracket,color:Ki},{tag:O.monospace,color:Ki},{tag:[O.contentSeparator],color:nu},{tag:O.quote,color:Gr}]),REe=[PEe,Mr(AEe)],xR={fontSize:"14px",fontFamily:"JetBrains Mono, Consolas, monospace",lineHeight:"1.6"},EEe={borderLeftWidth:"2px"},io={insertedTextDecoration:"none",deletedTextDecoration:"line-through",insertedLinePadding:"1px 3px",borderRadious:"3px"},zh={border:"none",paddingRight:"8px",fontSize:"0.9em",fontWeight:"500",lineHeight:"1.78"},OR={border:"none",borderRadius:"4px",padding:"2px 10px"},MEe={borderRadius:"2px"},_R={borderRadius:"2px"},vR={borderRadius:"4px",padding:"0 5px",margin:"0 2px"},SR={width:"12px",height:"12px",borderRadius:"6px"},Hv={borderRadius:"4px",padding:"2px 6px"},Rp={borderRadius:"4px",borderRadiusSelected:"3px",lineHeight:"1.3",padding:"4px 8px",paddingRight:"8px"},$Ee="#2e3440",OJ="#3b4252",em="#434c5e",Ur="#4c566a",Zr="#d8dee9",wR="#eceff4",Xy="#8fbcbb",_0="#88c0d0",v0="#81a1c1",kR="#5e81ac",Nl="#bf616a",oy="#d08770",tm="#ebcb8b",RV="#a3be8c",ru="#b48ead",LEe="#d30102",Yv="#252a33",DEe="#3b425277",CR=$Ee,Ep=OJ,NEe=em,QEe="#4c566a80",TR=Zr,IEe="#4c566a55",jEe=_0,EV=tm,_J=v0,BEe=ru,MV="#3b4a3880",$V="#4a393a80",PR="#a3be8c",AR="#bf616a",zEe=be.theme({"&":{color:Zr,backgroundColor:CR,fontSize:xR.fontSize,fontFamily:xR.fontFamily},".cm-content":{caretColor:TR,lineHeight:xR.lineHeight},".cm-cursor, .cm-dropCursor":{borderLeftColor:TR,borderLeftWidth:EEe.borderLeftWidth},".cm-fat-cursor":{backgroundColor:`${TR}99`,color:CR},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:NEe},".cm-selectionLayer":{zIndex:100},".cm-searchMatch":{backgroundColor:"#5e81ac80",outline:`1px solid ${Xy}`,color:Zr,borderRadius:Hv.borderRadius,"& span":{color:Zr}},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:v0,color:wR,padding:Hv.padding,"& span":{color:wR}},".cm-search.cm-panel.cm-textfield":{color:Zr,borderRadius:Hv.borderRadius,padding:Hv.padding},".cm-panels":{backgroundColor:Yv,color:Zr,borderRadius:"4px"},".cm-panels.cm-panels-top":{borderBottom:`1px solid ${Ur}`},".cm-panels.cm-panels-bottom":{borderTop:`1px solid ${Ur}`},".cm-panel button":{backgroundColor:Ep,color:Zr,border:OR.border,borderRadius:OR.borderRadius,padding:OR.padding},".cm-panel button:hover":{backgroundColor:em},".cm-activeLine":{backgroundColor:DEe,borderRadius:MEe.borderRadius,zIndex:1},".cm-gutters":{backgroundColor:Yv,color:Ur,border:zh.border,borderRight:`1px solid ${em}`,paddingRight:zh.paddingRight},".cm-activeLineGutter":{backgroundColor:OJ,color:Zr,fontWeight:zh.fontWeight},".cm-lineNumbers":{fontSize:zh.fontSize,lineHeight:zh.lineHeight},".cm-foldGutter":{fontSize:zh.fontSize,lineHeight:zh.lineHeight},".cm-foldGutter .cm-gutterElement":{color:Ur,cursor:"pointer"},".cm-foldGutter .cm-gutterElement:hover":{color:Zr},".cm-insertedLine":{textDecoration:io.insertedTextDecoration,backgroundColor:MV,color:PR,padding:io.insertedLinePadding,borderRadius:io.borderRadious},"ins.cm-insertedLine, ins.cm-insertedLine:not(:has(.cm-changedText))":{textDecoration:io.insertedTextDecoration,backgroundColor:`${MV} !important`,color:PR,padding:io.insertedLinePadding,borderRadius:io.borderRadious,border:`1px solid ${PR}40`},"ins.cm-insertedLine .cm-changedText":{background:"transparent !important"},".cm-deletedLine":{textDecoration:io.deletedTextDecoration,backgroundColor:$V,color:AR,padding:io.insertedLinePadding,borderRadius:io.borderRadious},"del.cm-deletedLine, del, del:not(:has(.cm-deletedText))":{textDecoration:io.deletedTextDecoration,backgroundColor:`${$V} !important`,color:AR,padding:io.insertedLinePadding,borderRadius:io.borderRadious,border:`1px solid ${AR}40`},"del .cm-deletedText, del .cm-changedText":{background:"transparent !important"},".cm-tooltip":{backgroundColor:Ep,border:`1px solid ${Ur}`,borderRadius:Rp.borderRadius,padding:Rp.padding,boxShadow:"0 2px 8px rgba(0, 0, 0, 0.3)"},".cm-tooltip-autocomplete":{"& > ul":{backgroundColor:Ep,border:"none"},"& > ul > li":{padding:Rp.padding,lineHeight:Rp.lineHeight},"& > ul > li[aria-selected]":{backgroundColor:em,color:wR,borderRadius:Rp.borderRadiusSelected},"& > ul > li > span.cm-completionIcon":{color:Ur,paddingRight:Rp.paddingRight},"& > ul > li > span.cm-completionDetail":{color:Ur,fontStyle:"italic"}},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:Ep,borderBottomColor:Ep},".cm-diagnostic":{"&-error":{borderLeft:`3px solid ${Nl}`},"&-warning":{borderLeft:`3px solid ${EV}`},"&-info":{borderLeft:`3px solid ${_J}`}},".cm-lintPoint-error":{borderBottom:`2px wavy ${Nl}`},".cm-lintPoint-warning":{borderBottom:`2px wavy ${EV}`},".cm-matchingBracket":{backgroundColor:IEe,outline:`1px solid ${jEe}`,borderRadius:_R.borderRadius},".cm-nonmatchingBracket":{backgroundColor:`${Nl}40`,outline:`1px solid ${LEe}`,borderRadius:_R.borderRadius},".cm-selectionMatch":{backgroundColor:QEe,outline:`1px solid ${em}50`,borderRadius:_R.borderRadius},".cm-foldPlaceholder":{backgroundColor:Ep,color:Ur,border:`1px dotted ${Ur}70`,borderRadius:vR.borderRadius,padding:vR.padding,margin:vR.margin},"&.cm-focused":{outline:"none",boxShadow:`0 0 0 2px ${CR}, 0 0 0 3px ${_0}40`},"& .cm-scroller::-webkit-scrollbar":{width:SR.width,height:SR.height},"& .cm-scroller::-webkit-scrollbar-track":{background:Yv},"& .cm-scroller::-webkit-scrollbar-thumb":{backgroundColor:em,borderRadius:SR.borderRadius,border:`3px solid ${Yv}`},"& .cm-scroller::-webkit-scrollbar-thumb:hover":{backgroundColor:Ur},".cm-ghostText":{opacity:"0.5",color:Ur}},{dark:!0}),VEe=Ci.define([{tag:O.keyword,color:kR,fontWeight:"bold"},{tag:O.controlKeyword,color:kR,fontWeight:"bold"},{tag:O.moduleKeyword,color:kR,fontWeight:"bold"},{tag:[O.name,O.deleted,O.character,O.macroName],color:_0},{tag:[O.variableName],color:Zr},{tag:[O.propertyName],color:_0,fontStyle:"normal"},{tag:[O.typeName],color:tm},{tag:[O.className],color:tm,fontStyle:"italic"},{tag:[O.namespace],color:v0,fontStyle:"italic"},{tag:[O.operator,O.operatorKeyword],color:ru},{tag:[O.bracket],color:Zr},{tag:[O.brace],color:Xy},{tag:[O.punctuation],color:Zr},{tag:[O.function(O.variableName),O.labelName],color:Xy},{tag:[O.definition(O.function(O.variableName))],color:Xy},{tag:[O.definition(O.variableName)],color:oy},{tag:O.number,color:oy},{tag:O.changed,color:ru},{tag:O.annotation,color:Nl,fontStyle:"italic"},{tag:O.modifier,color:ru,fontStyle:"italic"},{tag:O.self,color:ru},{tag:[O.color,O.constant(O.name),O.standard(O.name)],color:oy},{tag:[O.atom,O.bool,O.special(O.variableName)],color:ru},{tag:[O.processingInstruction,O.inserted],color:Xy},{tag:[O.special(O.string),O.regexp],color:ru},{tag:O.string,color:RV},{tag:O.definition(O.typeName),color:tm,fontWeight:"bold"},{tag:[O.definition(O.name),O.separator],color:RV},{tag:O.meta,color:Ur},{tag:O.comment,fontStyle:"italic",color:Ur},{tag:O.docComment,fontStyle:"italic",color:Ur},{tag:[O.tagName],color:Nl},{tag:[O.attributeName],color:tm},{tag:[O.heading],fontWeight:"bold",color:v0},{tag:[O.strong],fontWeight:"bold",color:_0},{tag:[O.emphasis],fontStyle:"italic",color:tm},{tag:[O.link],color:BEe,fontWeight:"500",textDecoration:"underline",textUnderlinePosition:"under"},{tag:[O.url],color:_J,textDecoration:"underline",textUnderlineOffset:"2px"},{tag:[O.invalid],color:Zr,textDecoration:"underline wavy",borderBottom:`1px wavy ${Nl}`},{tag:[O.strikethrough],color:Nl,textDecoration:"line-through"},{tag:O.constant(O.name),color:oy},{tag:O.deleted,color:Nl},{tag:O.squareBracket,color:Nl},{tag:O.angleBracket,color:oy},{tag:O.monospace,color:Zr,fontStyle:"italic"},{tag:[O.contentSeparator],color:v0},{tag:O.quote,color:ru}]),qEe=[zEe,Mr(VEe)],RR={fontSize:"14px",fontFamily:"JetBrains Mono, Consolas, monospace",lineHeight:"1.6"},XEe={borderLeftWidth:"2px"},ro={insertedTextDecoration:"none",deletedTextDecoration:"line-through",insertedLinePadding:"1px 3px",borderRadious:"3px"},Vh={border:"none",paddingRight:"8px",fontSize:"0.9em",fontWeight:"500",lineHeight:"1.78"},ER={border:"none",borderRadius:"4px",padding:"2px 10px"},FEe={borderRadius:"2px"},MR={borderRadius:"2px"},$R={borderRadius:"4px",padding:"0 5px",margin:"0 2px"},LR={width:"12px",height:"12px",borderRadius:"6px"},Kv={borderRadius:"4px",padding:"2px 6px"},Mp={borderRadius:"4px",borderRadiusSelected:"3px",lineHeight:"1.3",padding:"4px 8px",paddingRight:"8px"},UEe="#e1e2e7",bu="#3760bf",DR="#99a7df",ti="#848cb5",WEe="#8c91a8",ay="#3760bf",vJ="#e9e9ec",hL="#d5d6db",SJ="#f52a65",co="#b15c00",LV="#8c6c3e",NR="#587539",mr="#007197",ly="#2e7de9",Fy="#7847bd",GEe="#9854f1",Dd=SJ,QR=hL,ZEe="#5F5FAF5A",cy=UEe,$p=vJ,DV="#99a7df40",HEe="#99a7df60",IR=bu,YEe="#0e639c20",KEe=mr,NV=co,wJ=mr,JEe=Fy,QV="#58753920",IV="#f52a6520",jR="#587539",BR="#f52a65",eMe=be.theme({"&":{color:ay,backgroundColor:cy,fontSize:RR.fontSize,fontFamily:RR.fontFamily},".cm-content":{caretColor:IR,lineHeight:RR.lineHeight},".cm-cursor, .cm-dropCursor":{borderLeftColor:IR,borderLeftWidth:XEe.borderLeftWidth},".cm-fat-cursor":{backgroundColor:`${IR}99`,color:cy},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:DV},".cm-selectionLayer":{zIndex:100},".cm-searchMatch":{backgroundColor:"#0e639c40",outline:`1px solid ${mr}`,color:ay,borderRadius:Kv.borderRadius},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:mr,color:cy,padding:Kv.padding,"& span":{color:cy}},".cm-search.cm-panel.cm-textfield":{color:ay,borderRadius:Kv.borderRadius,padding:Kv.padding},".cm-panels":{backgroundColor:vJ,color:ay,borderRadius:"4px",boxShadow:"0 1px 3px rgba(0, 0, 0, 0.1)"},".cm-panels.cm-panels-top":{borderBottom:`1px solid ${ti}30`},".cm-panels.cm-panels-bottom":{borderTop:`1px solid ${ti}30`},".cm-panel button":{backgroundColor:$p,color:ay,border:ER.border,borderRadius:ER.borderRadius,padding:ER.padding},".cm-panel button:hover":{backgroundColor:hL,border:`1px solid ${DR}`},".cm-activeLine":{backgroundColor:ZEe,borderRadius:FEe.borderRadius,zIndex:1},".cm-gutters":{backgroundColor:QR,color:ti,border:Vh.border,borderRight:`1px solid ${hL}`,paddingRight:Vh.paddingRight},".cm-activeLineGutter":{color:bu,fontWeight:Vh.fontWeight},".cm-lineNumbers":{fontSize:Vh.fontSize,lineHeight:Vh.lineHeight},".cm-foldGutter":{fontSize:Vh.fontSize,lineHeight:Vh.lineHeight},".cm-foldGutter .cm-gutterElement":{color:ti,cursor:"pointer"},".cm-foldGutter .cm-gutterElement:hover":{color:bu},".cm-insertedLine":{textDecoration:ro.insertedTextDecoration,backgroundColor:QV,color:jR,padding:ro.insertedLinePadding,borderRadius:ro.borderRadious},"ins.cm-insertedLine, ins.cm-insertedLine:not(:has(.cm-changedText))":{textDecoration:ro.insertedTextDecoration,backgroundColor:`${QV} !important`,color:jR,padding:ro.insertedLinePadding,borderRadius:ro.borderRadious,border:`1px solid ${jR}40`},"ins.cm-insertedLine .cm-changedText":{background:"transparent !important"},".cm-deletedLine":{textDecoration:ro.deletedTextDecoration,backgroundColor:IV,color:BR,padding:ro.insertedLinePadding,borderRadius:ro.borderRadious},"del.cm-deletedLine, del, del:not(:has(.cm-deletedText))":{textDecoration:ro.deletedTextDecoration,backgroundColor:`${IV} !important`,color:BR,padding:ro.insertedLinePadding,borderRadius:ro.borderRadious,border:`1px solid ${BR}40`},"del .cm-deletedText, del .cm-changedText":{background:"transparent !important"},".cm-tooltip":{backgroundColor:$p,border:`1px solid ${WEe}40`,borderRadius:Mp.borderRadius,padding:Mp.padding,boxShadow:"0 2px 8px rgba(0, 0, 0, 0.15)"},".cm-tooltip-autocomplete":{"& > ul":{backgroundColor:$p,border:"none",maxHeight:"300px"},"& > ul > li":{padding:Mp.padding,lineHeight:Mp.lineHeight},"& > ul > li[aria-selected]":{backgroundColor:DV,color:bu,borderRadius:Mp.borderRadiusSelected},"& > ul > li > span.cm-completionIcon":{color:ti,paddingRight:Mp.paddingRight},"& > ul > li > span.cm-completionDetail":{color:ti,fontStyle:"italic"}},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:$p,borderBottomColor:$p},".cm-diagnostic":{"&-error":{borderLeft:`3px solid ${Dd}`},"&-warning":{borderLeft:`3px solid ${NV}`},"&-info":{borderLeft:`3px solid ${wJ}`}},".cm-lintPoint-error":{borderBottom:`2px wavy ${Dd}`},".cm-lintPoint-warning":{borderBottom:`2px wavy ${NV}`},".cm-matchingBracket":{backgroundColor:YEe,outline:`1px solid ${KEe}`,borderRadius:MR.borderRadius},".cm-nonmatchingBracket":{backgroundColor:`${SJ}20`,outline:`1px solid ${Dd}`,borderRadius:MR.borderRadius},".cm-selectionMatch":{backgroundColor:HEe,outline:`1px solid ${DR}50`,borderRadius:MR.borderRadius},".cm-foldPlaceholder":{backgroundColor:$p,color:ti,border:`1px dotted ${ti}70`,borderRadius:$R.borderRadius,padding:$R.padding,margin:$R.margin},"&.cm-focused":{outline:"none",boxShadow:`0 0 0 2px ${cy}, 0 0 0 3px ${mr}40`},"& .cm-scroller::-webkit-scrollbar":{width:LR.width,height:LR.height},"& .cm-scroller::-webkit-scrollbar-track":{background:QR},"& .cm-scroller::-webkit-scrollbar-thumb":{backgroundColor:ti,borderRadius:LR.borderRadius,border:`3px solid ${QR}`},"& .cm-scroller::-webkit-scrollbar-thumb:hover":{backgroundColor:DR},".cm-ghostText":{opacity:"0.5",color:ti}},{dark:!1}),tMe=Ci.define([{tag:O.keyword,color:mr,fontWeight:"bold"},{tag:O.controlKeyword,color:mr,fontWeight:"bold"},{tag:O.moduleKeyword,color:mr,fontWeight:"bold"},{tag:[O.name,O.deleted,O.character,O.macroName],color:ly},{tag:[O.variableName],color:bu},{tag:[O.propertyName],color:ly,fontStyle:"normal"},{tag:[O.typeName],color:mr},{tag:[O.className],color:LV,fontStyle:"italic"},{tag:[O.namespace],color:Fy,fontStyle:"italic"},{tag:[O.operator,O.operatorKeyword],color:Fy},{tag:[O.bracket],color:ti},{tag:[O.brace],color:ti},{tag:[O.punctuation],color:ti},{tag:[O.function(O.variableName)],color:mr},{tag:[O.labelName],color:Fy,fontStyle:"italic"},{tag:[O.definition(O.function(O.variableName))],color:mr},{tag:[O.definition(O.variableName)],color:ly},{tag:O.number,color:co},{tag:O.changed,color:co},{tag:O.annotation,color:Dd,fontStyle:"italic"},{tag:O.modifier,color:co,fontStyle:"italic"},{tag:O.self,color:co},{tag:[O.color,O.constant(O.name),O.standard(O.name)],color:co},{tag:[O.atom,O.bool,O.special(O.variableName)],color:co},{tag:[O.processingInstruction,O.inserted],color:NR},{tag:[O.special(O.string),O.regexp],color:GEe},{tag:O.string,color:NR},{tag:O.definition(O.typeName),color:mr,fontWeight:"bold"},{tag:[O.definition(O.name),O.separator],color:ly},{tag:O.meta,color:ti},{tag:O.comment,fontStyle:"italic",color:ti},{tag:O.docComment,fontStyle:"italic",color:ti},{tag:[O.tagName],color:Fy},{tag:[O.attributeName],color:LV},{tag:[O.heading],fontWeight:"bold",color:co},{tag:O.heading1,color:co,fontWeight:"bold"},{tag:O.heading2,color:co},{tag:O.heading3,color:co},{tag:O.heading4,color:mr},{tag:O.heading5,color:mr},{tag:O.heading6,color:mr},{tag:[O.strong],fontWeight:"bold",color:bu},{tag:[O.emphasis],fontStyle:"italic",color:NR},{tag:[O.link],color:JEe,fontWeight:"500",textDecoration:"underline",textUnderlinePosition:"under"},{tag:[O.url],color:wJ,textDecoration:"underline",textUnderlineOffset:"2px"},{tag:[O.invalid],color:bu,textDecoration:"underline wavy",borderBottom:`1px wavy ${Dd}`},{tag:[O.strikethrough],color:Dd,textDecoration:"line-through"},{tag:O.constant(O.name),color:co},{tag:O.deleted,color:Dd},{tag:O.squareBracket,color:ti},{tag:O.angleBracket,color:ti},{tag:O.monospace,color:bu},{tag:[O.contentSeparator],color:ly},{tag:O.quote,color:ti}]),nMe=[eMe,Mr(tMe)],zR={fontSize:"14px",fontFamily:"JetBrains Mono, Consolas, monospace",lineHeight:"1.6"},iMe={borderLeftWidth:"2px"},so={insertedTextDecoration:"none",deletedTextDecoration:"line-through",insertedLinePadding:"1px 3px",borderRadious:"3px"},qh={border:"none",paddingRight:"8px",fontSize:"0.9em",fontWeight:"500",lineHeight:"1.78"},VR={border:"none",borderRadius:"4px",padding:"2px 10px"},rMe={borderRadius:"2px"},qR={borderRadius:"2px"},XR={borderRadius:"4px",padding:"0 5px",margin:"0 2px"},FR={width:"12px",height:"12px",borderRadius:"6px"},Jv={borderRadius:"4px",padding:"2px 6px"},Lp={borderRadius:"4px",borderRadiusSelected:"3px",lineHeight:"1.3",padding:"4px 8px",paddingRight:"8px"},sMe="#24283b",jV="#414868",Fn="#565f89",Ji="#c0caf5",kJ="#282e44",lS="#1f2335",oMe="#f7768e",rd="#ff9e64",BV="#e0af68",zV="#9ece6a",cS="#2ac3de",La="#7aa2f7",sd="#bb9af7",Nd="#f7768e",UR=lS,aMe="#292e427a",uy=sMe,Dp=kJ,VV="#6f7bb630",lMe="#6f7bb650",WR=Ji,cMe="#3d59a150",uMe=La,qV=rd,CJ=cS,hMe=sd,XV="#3b4a3880",FV="#4a393a80",GR="#9ece6a",ZR="#f7768e",dMe=be.theme({"&":{color:Ji,backgroundColor:uy,fontSize:zR.fontSize,fontFamily:zR.fontFamily},".cm-content":{caretColor:WR,lineHeight:zR.lineHeight},".cm-cursor, .cm-dropCursor":{borderLeftColor:WR,borderLeftWidth:iMe.borderLeftWidth},".cm-fat-cursor":{backgroundColor:`${WR}99`,color:uy},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:VV},".cm-selectionLayer":{zIndex:100},".cm-searchMatch":{backgroundColor:"#7aa2f740",outline:`1px solid ${La}`,color:Ji,borderRadius:Jv.borderRadius},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:La,color:uy,padding:Jv.padding,"& span":{color:uy}},".cm-search.cm-panel.cm-textfield":{color:Ji,borderRadius:Jv.borderRadius,padding:Jv.padding},".cm-panels":{backgroundColor:kJ,color:Ji,borderRadius:"4px"},".cm-panels.cm-panels-top":{borderBottom:`1px solid ${Fn}`},".cm-panels.cm-panels-bottom":{borderTop:`1px solid ${Fn}`},".cm-panel button":{backgroundColor:Dp,color:Ji,border:VR.border,borderRadius:VR.borderRadius,padding:VR.padding},".cm-panel button:hover":{backgroundColor:lS},".cm-activeLine":{backgroundColor:aMe,borderRadius:rMe.borderRadius,zIndex:1},".cm-gutters":{backgroundColor:UR,color:Fn,border:qh.border,borderRight:`1px solid ${lS}`,paddingRight:qh.paddingRight},".cm-activeLineGutter":{backgroundColor:lS,color:Ji,fontWeight:qh.fontWeight},".cm-lineNumbers":{fontSize:qh.fontSize,lineHeight:qh.lineHeight},".cm-foldGutter":{fontSize:qh.fontSize,lineHeight:qh.lineHeight},".cm-foldGutter .cm-gutterElement":{color:Fn,cursor:"pointer"},".cm-foldGutter .cm-gutterElement:hover":{color:Ji},".cm-insertedLine":{textDecoration:so.insertedTextDecoration,backgroundColor:XV,color:GR,padding:so.insertedLinePadding,borderRadius:so.borderRadious},"ins.cm-insertedLine, ins.cm-insertedLine:not(:has(.cm-changedText))":{textDecoration:so.insertedTextDecoration,backgroundColor:`${XV} !important`,color:GR,padding:so.insertedLinePadding,borderRadius:so.borderRadious,border:`1px solid ${GR}40`},"ins.cm-insertedLine .cm-changedText":{background:"transparent !important"},".cm-deletedLine":{textDecoration:so.deletedTextDecoration,backgroundColor:FV,color:ZR,padding:so.insertedLinePadding,borderRadius:so.borderRadious},"del.cm-deletedLine, del, del:not(:has(.cm-deletedText))":{textDecoration:so.deletedTextDecoration,backgroundColor:`${FV} !important`,color:ZR,padding:so.insertedLinePadding,borderRadius:so.borderRadious,border:`1px solid ${ZR}40`},"del .cm-deletedText, del .cm-changedText":{background:"transparent !important"},".cm-tooltip":{backgroundColor:Dp,border:`1px solid ${Fn}`,borderRadius:Lp.borderRadius,padding:Lp.padding,boxShadow:"0 2px 8px rgba(0, 0, 0, 0.3)"},".cm-tooltip-autocomplete":{"& > ul":{backgroundColor:Dp,border:"none"},"& > ul > li":{padding:Lp.padding,lineHeight:Lp.lineHeight},"& > ul > li[aria-selected]":{backgroundColor:VV,color:Ji,borderRadius:Lp.borderRadiusSelected},"& > ul > li > span.cm-completionIcon":{color:Fn,paddingRight:Lp.paddingRight},"& > ul > li > span.cm-completionDetail":{color:Fn,fontStyle:"italic"}},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:Dp,borderBottomColor:Dp},".cm-diagnostic":{"&-error":{borderLeft:`3px solid ${Nd}`},"&-warning":{borderLeft:`3px solid ${qV}`},"&-info":{borderLeft:`3px solid ${CJ}`}},".cm-lintPoint-error":{borderBottom:`2px wavy ${Nd}`},".cm-lintPoint-warning":{borderBottom:`2px wavy ${qV}`},".cm-matchingBracket":{backgroundColor:cMe,outline:`1px solid ${uMe}`,borderRadius:qR.borderRadius},".cm-nonmatchingBracket":{backgroundColor:`${oMe}20`,outline:`1px solid ${Nd}`,borderRadius:qR.borderRadius},".cm-selectionMatch":{backgroundColor:lMe,outline:`1px solid ${jV}50`,borderRadius:qR.borderRadius},".cm-foldPlaceholder":{backgroundColor:Dp,color:Fn,border:`1px dotted ${Fn}70`,borderRadius:XR.borderRadius,padding:XR.padding,margin:XR.margin},"&.cm-focused":{outline:"none",boxShadow:`0 0 0 2px ${uy}, 0 0 0 3px ${La}40`},"& .cm-scroller::-webkit-scrollbar":{width:FR.width,height:FR.height},"& .cm-scroller::-webkit-scrollbar-track":{background:UR},"& .cm-scroller::-webkit-scrollbar-thumb":{backgroundColor:jV,borderRadius:FR.borderRadius,border:`3px solid ${UR}`},"& .cm-scroller::-webkit-scrollbar-thumb:hover":{backgroundColor:Fn},".cm-ghostText":{opacity:"0.5",color:Fn}},{dark:!0}),fMe=Ci.define([{tag:O.keyword,color:sd,fontWeight:"bold"},{tag:O.controlKeyword,color:sd,fontWeight:"bold"},{tag:O.moduleKeyword,color:sd,fontWeight:"bold"},{tag:[O.name,O.deleted,O.character,O.macroName],color:Ji},{tag:[O.variableName],color:Ji},{tag:[O.propertyName],color:La,fontStyle:"normal"},{tag:[O.typeName],color:cS},{tag:[O.className],color:BV,fontStyle:"italic"},{tag:[O.namespace],color:La,fontStyle:"italic"},{tag:[O.operator,O.operatorKeyword],color:sd},{tag:[O.bracket],color:Fn},{tag:[O.brace],color:Fn},{tag:[O.punctuation],color:Fn},{tag:[O.function(O.variableName)],color:La},{tag:[O.labelName],color:La,fontStyle:"italic"},{tag:[O.definition(O.function(O.variableName))],color:La},{tag:[O.definition(O.variableName)],color:Ji},{tag:O.number,color:rd},{tag:O.changed,color:rd},{tag:O.annotation,color:Nd,fontStyle:"italic"},{tag:O.modifier,color:rd,fontStyle:"italic"},{tag:O.self,color:rd},{tag:[O.color,O.constant(O.name),O.standard(O.name)],color:sd},{tag:[O.atom,O.bool,O.special(O.variableName)],color:rd},{tag:[O.processingInstruction,O.inserted],color:zV},{tag:[O.special(O.string),O.regexp],color:"#b4f9f8"},{tag:O.string,color:zV},{tag:O.definition(O.typeName),color:cS,fontWeight:"bold"},{tag:[O.definition(O.name),O.separator],color:Ji},{tag:O.meta,color:Fn},{tag:O.comment,fontStyle:"italic",color:Fn},{tag:O.docComment,fontStyle:"italic",color:Fn},{tag:[O.tagName],color:sd},{tag:[O.attributeName],color:BV},{tag:[O.heading],fontWeight:"bold",color:"#89ddff"},{tag:O.heading1,color:"#89ddff",fontWeight:"bold"},{tag:O.heading2,color:"#89ddff"},{tag:O.heading3,color:"#89ddff"},{tag:O.heading4,color:"#89ddff"},{tag:O.heading5,color:"#89ddff"},{tag:O.heading6,color:"#89ddff"},{tag:[O.strong],fontWeight:"bold",color:Ji},{tag:[O.emphasis],fontStyle:"italic",color:cS},{tag:[O.link],color:hMe,fontWeight:"500",textDecoration:"underline",textUnderlinePosition:"under"},{tag:[O.url],color:CJ,textDecoration:"underline",textUnderlineOffset:"2px"},{tag:[O.invalid],color:Ji,textDecoration:"underline wavy",borderBottom:`1px wavy ${Nd}`},{tag:[O.strikethrough],color:Nd,textDecoration:"line-through"},{tag:O.constant(O.name),color:rd},{tag:O.deleted,color:Nd},{tag:O.squareBracket,color:Fn},{tag:O.angleBracket,color:Fn},{tag:O.monospace,color:Ji},{tag:[O.contentSeparator],color:La},{tag:O.quote,color:Fn}]),pMe=[dMe,Mr(fMe)],HR={fontSize:"14px",fontFamily:"JetBrains Mono, Consolas, monospace",lineHeight:"1.6"},mMe={borderLeftWidth:"2px"},oo={insertedTextDecoration:"none",deletedTextDecoration:"line-through",insertedLinePadding:"1px 3px",borderRadious:"3px"},Np={paddingRight:"8px",fontSize:"0.9em",fontWeight:"500",lineHeight:"1.78"},UV={borderRadius:"4px",padding:"2px 10px"},gMe={borderRadius:"2px"},YR={borderRadius:"2px"},KR={borderRadius:"4px",padding:"0 5px",margin:"0 2px"},JR={width:"12px",height:"12px",borderRadius:"6px"},e1={borderRadius:"4px",padding:"2px 6px"},Qp={borderRadius:"4px",borderRadiusSelected:"3px",lineHeight:"1.3",padding:"4px 8px",paddingRight:"8px"},bMe="#1e1e1e",TJ="#252526",Hc="#2d2d30",Al="#838383",yMe="#c6c6c6",Hi="#d4d4d4",Ip="#e9e9e9",xMe="#1c1c1c",Zi="#569cd6",OMe="#c586c0",jp="#9cdcfe",t1="#4ec9b0",eE="#dcdcaa",_Me="#b5cea8",WV="#ce9178",PJ="#f44747",dL="#d7ba7d",tE="#6a9955",$m=PJ,GV="#FFFFFF08",n1=bMe,hy=TJ,vMe="#264F7899",SMe="#72a1ff59",nE=yMe,wMe="#ffffff15",kMe=Zi,ZV=dL,AJ="#3794ff",CMe="#c586c0",HV="#1e3f1e80",YV="#4b1c1c80",iE="#6cc26f",rE="#f14c4c",TMe=be.theme({"&":{color:Hi,backgroundColor:n1,fontSize:HR.fontSize,fontFamily:HR.fontFamily},".cm-content":{caretColor:nE,lineHeight:HR.lineHeight},".cm-cursor, .cm-dropCursor":{borderLeftColor:nE,borderLeftWidth:mMe.borderLeftWidth},".cm-fat-cursor":{backgroundColor:`${nE}99`,color:n1},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:vMe},".cm-selectionLayer":{zIndex:100},".cm-searchMatch":{backgroundColor:"#72a1ff40",outline:`1px solid ${Zi}90`,color:Ip,borderRadius:e1.borderRadius},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#3794ff90",color:Ip,padding:e1.padding,"& span":{color:Ip}},".cm-search.cm-panel.cm-textfield":{color:Hi,borderRadius:e1.borderRadius,padding:e1.padding},".cm-panels":{backgroundColor:TJ,color:Hi,borderRadius:"3px",boxShadow:"0 2px 6px rgba(0, 0, 0, 0.45)"},".cm-panels.cm-panels-top":{borderBottom:`1px solid ${Hc}`},".cm-panels.cm-panels-bottom":{borderTop:`1px solid ${Hc}`},".cm-panel button":{backgroundColor:Hc,color:Hi,border:`1px solid ${Hc}`,borderRadius:UV.borderRadius,padding:UV.padding},".cm-panel button:hover":{backgroundColor:"#3a3a3a",border:`1px solid ${Al}80`},".cm-activeLine":{backgroundColor:GV,borderRadius:gMe.borderRadius,zIndex:1},".cm-gutters":{backgroundColor:xMe,color:Al,border:"none",borderRight:`1px solid ${Hc}`,paddingRight:Np.paddingRight},".cm-activeLineGutter":{backgroundColor:GV,color:Ip,fontWeight:Np.fontWeight},".cm-lineNumbers":{fontSize:Np.fontSize,lineHeight:Np.lineHeight},".cm-foldGutter":{fontSize:Np.fontSize,lineHeight:Np.lineHeight},".cm-foldGutter .cm-gutterElement":{color:Al,cursor:"pointer"},".cm-foldGutter .cm-gutterElement:hover":{color:Ip},".cm-insertedLine":{textDecoration:oo.insertedTextDecoration,backgroundColor:HV,color:iE,padding:oo.insertedLinePadding,borderRadius:oo.borderRadious},"ins.cm-insertedLine, ins.cm-insertedLine:not(:has(.cm-changedText))":{textDecoration:oo.insertedTextDecoration,backgroundColor:`${HV} !important`,color:iE,padding:oo.insertedLinePadding,borderRadius:oo.borderRadious,border:`1px solid ${iE}40`},"ins.cm-insertedLine .cm-changedText":{background:"transparent !important"},".cm-deletedLine":{textDecoration:oo.deletedTextDecoration,backgroundColor:YV,color:rE,padding:oo.insertedLinePadding,borderRadius:oo.borderRadious},"del.cm-deletedLine, del, del:not(:has(.cm-deletedText))":{textDecoration:oo.deletedTextDecoration,backgroundColor:`${YV} !important`,color:rE,padding:oo.insertedLinePadding,borderRadius:oo.borderRadious,border:`1px solid ${rE}40`},"del .cm-deletedText, del .cm-changedText":{background:"transparent !important"},".cm-tooltip":{backgroundColor:hy,border:`1px solid ${Hc}`,borderRadius:Qp.borderRadius,padding:Qp.padding,boxShadow:"0 3px 8px rgba(0, 0, 0, 0.3)"},".cm-tooltip-autocomplete":{"& > ul":{backgroundColor:hy,border:"none",maxHeight:"300px"},"& > ul > li":{padding:Qp.padding,lineHeight:Qp.lineHeight},"& > ul > li[aria-selected]":{backgroundColor:"#04395e",color:Ip,borderRadius:Qp.borderRadiusSelected},"& > ul > li > span.cm-completionIcon":{color:Al,paddingRight:Qp.paddingRight},"& > ul > li > span.cm-completionDetail":{color:Al,fontStyle:"italic"}},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:hy,borderBottomColor:hy},".cm-diagnostic":{"&-error":{borderLeft:`3px solid ${$m}`},"&-warning":{borderLeft:`3px solid ${ZV}`},"&-info":{borderLeft:`3px solid ${AJ}`}},".cm-lintPoint-error":{borderBottom:`2px wavy ${$m}`},".cm-lintPoint-warning":{borderBottom:`2px wavy ${ZV}`},".cm-matchingBracket":{backgroundColor:wMe,outline:`1px solid ${kMe}80`,borderRadius:YR.borderRadius},".cm-nonmatchingBracket":{backgroundColor:`${PJ}40`,outline:`1px solid ${$m}`,borderRadius:YR.borderRadius},".cm-selectionMatch":{backgroundColor:SMe,outline:`1px solid ${Hc}70`,borderRadius:YR.borderRadius},".cm-foldPlaceholder":{backgroundColor:hy,color:Al,border:`1px dotted ${Al}70`,borderRadius:KR.borderRadius,padding:KR.padding,margin:KR.margin},"&.cm-focused":{outline:"none",boxShadow:`0 0 0 1px ${Hc}`},"& .cm-scroller::-webkit-scrollbar":{width:JR.width,height:JR.height},"& .cm-scroller::-webkit-scrollbar-track":{background:n1},"& .cm-scroller::-webkit-scrollbar-thumb":{backgroundColor:"#424242",borderRadius:JR.borderRadius,border:`3px solid ${n1}`},"& .cm-scroller::-webkit-scrollbar-thumb:hover":{backgroundColor:"#525252"},".cm-ghostText":{opacity:"0.5",color:Al}},{dark:!0}),PMe=Ci.define([{tag:O.keyword,color:Zi,fontWeight:"bold"},{tag:O.controlKeyword,color:OMe,fontWeight:"bold"},{tag:O.moduleKeyword,color:Zi,fontWeight:"bold"},{tag:[O.name,O.deleted,O.character,O.macroName],color:Hi},{tag:[O.variableName],color:jp},{tag:[O.propertyName],color:jp,fontStyle:"normal"},{tag:[O.typeName],color:t1},{tag:[O.className],color:t1,fontStyle:"normal"},{tag:[O.namespace],color:Hi,fontStyle:"normal"},{tag:[O.operator,O.operatorKeyword],color:Hi},{tag:[O.bracket],color:Hi},{tag:[O.brace],color:Hi},{tag:[O.punctuation],color:Hi},{tag:[O.function(O.variableName)],color:eE},{tag:[O.labelName],color:eE,fontStyle:"normal"},{tag:[O.definition(O.function(O.variableName))],color:eE},{tag:[O.definition(O.variableName)],color:jp},{tag:O.number,color:_Me},{tag:O.changed,color:dL},{tag:O.annotation,color:dL,fontStyle:"italic"},{tag:O.modifier,color:Zi,fontStyle:"normal"},{tag:O.self,color:Zi},{tag:[O.color,O.constant(O.name),O.standard(O.name)],color:jp},{tag:[O.atom,O.bool,O.special(O.variableName)],color:Zi},{tag:[O.processingInstruction,O.inserted],color:WV},{tag:[O.special(O.string),O.regexp],color:"#d16969"},{tag:O.string,color:WV},{tag:O.definition(O.typeName),color:t1,fontWeight:"bold"},{tag:[O.definition(O.name),O.separator],color:Hi},{tag:O.meta,color:Al},{tag:O.comment,fontStyle:"italic",color:tE},{tag:O.docComment,fontStyle:"italic",color:tE},{tag:[O.tagName],color:Zi},{tag:[O.attributeName],color:jp},{tag:[O.heading],fontWeight:"bold",color:Zi},{tag:O.heading1,color:Zi,fontWeight:"bold"},{tag:O.heading2,color:Zi},{tag:O.heading3,color:Zi},{tag:O.heading4,color:Zi},{tag:O.heading5,color:Zi},{tag:O.heading6,color:Zi},{tag:[O.strong],fontWeight:"bold",color:Zi},{tag:[O.emphasis],fontStyle:"italic",color:t1},{tag:[O.link],color:CMe,textDecoration:"underline",textUnderlinePosition:"under"},{tag:[O.url],color:AJ,textDecoration:"underline",textUnderlineOffset:"2px"},{tag:[O.invalid],color:Hi,textDecoration:"underline wavy",borderBottom:`1px wavy ${$m}`},{tag:[O.strikethrough],color:$m,textDecoration:"line-through"},{tag:O.constant(O.name),color:jp},{tag:O.deleted,color:$m},{tag:O.squareBracket,color:Hi},{tag:O.angleBracket,color:Hi},{tag:O.monospace,color:Hi},{tag:[O.contentSeparator],color:Hi},{tag:O.quote,color:tE}]),AMe=[TMe,Mr(PMe)],sE={fontSize:"14px",fontFamily:"JetBrains Mono, Consolas, monospace",lineHeight:"1.6"},RMe={borderLeftWidth:"2px"},ao={insertedTextDecoration:"none",deletedTextDecoration:"line-through",insertedLinePadding:"1px 3px",borderRadious:"3px"},Bp={paddingRight:"8px",fontSize:"0.9em",fontWeight:"500",lineHeight:"1.78"},KV={borderRadius:"4px",padding:"2px 10px"},EMe={borderRadius:"2px"},oE={borderRadius:"2px"},aE={borderRadius:"4px",padding:"0 5px",margin:"0 2px"},lE={width:"12px",height:"12px",borderRadius:"6px"},i1={borderRadius:"4px",padding:"2px 6px"},zp={borderRadius:"4px",borderRadiusSelected:"3px",lineHeight:"1.3",padding:"4px 8px",paddingRight:"8px"},MMe="#ffffff",RJ="#f3f3f3",Xh="#d6d6d6",od="#6b6b6b",$Me="#000000",Yi="#383a42",r1="#1f1f1f",LMe="#f5f5f5",Vr="#0064ff",JV="#af00db",su="#0070c1",cE="#267f99",uE="#795e26",DMe="#098658",e9="#a31515",EJ="#e51400",t9="#795e26",hE="#008000",Lm=EJ,n9="#99999926",dy=MMe,fy=RJ,NMe="#add6ff",QMe="#a8ac9480",dE=$Me,IMe="#007acc20",jMe="#007acc",i9="#bf8803",MJ="#006ab1",BMe="#9e46d0",r9="#ddfbe0",s9="#ffebec",fE="#22863a",pE="#e51400",zMe=be.theme({"&":{color:Yi,backgroundColor:dy,fontSize:sE.fontSize,fontFamily:sE.fontFamily},".cm-content":{caretColor:dE,lineHeight:sE.lineHeight},".cm-cursor, .cm-dropCursor":{borderLeftColor:dE,borderLeftWidth:RMe.borderLeftWidth},".cm-fat-cursor":{backgroundColor:`${dE}99`,color:dy},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:NMe},".cm-selectionLayer":{zIndex:100},".cm-searchMatch":{backgroundColor:"#bbdefb",outline:`1px solid ${su}90`,color:r1,borderRadius:i1.borderRadius},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#90caf9",color:r1,padding:i1.padding,"& span":{color:r1}},".cm-search.cm-panel.cm-textfield":{color:Yi,borderRadius:i1.borderRadius,padding:i1.padding},".cm-panels":{backgroundColor:RJ,color:Yi,borderRadius:"3px",boxShadow:"0 2px 6px rgba(0, 0, 0, 0.15)"},".cm-panels.cm-panels-top":{borderBottom:`1px solid ${Xh}`},".cm-panels.cm-panels-bottom":{borderTop:`1px solid ${Xh}`},".cm-panel button":{backgroundColor:dy,color:Yi,border:`1px solid ${Xh}`,borderRadius:KV.borderRadius,padding:KV.padding},".cm-panel button:hover":{backgroundColor:"#e8e8e8",border:`1px solid ${od}80`},".cm-activeLine":{backgroundColor:n9,borderRadius:EMe.borderRadius,zIndex:1},".cm-gutters":{backgroundColor:LMe,color:"#237893",border:"none",borderRight:`1px solid ${Xh}`,paddingRight:Bp.paddingRight},".cm-activeLineGutter":{backgroundColor:n9,color:"#0b216f",fontWeight:Bp.fontWeight},".cm-lineNumbers":{fontSize:Bp.fontSize,lineHeight:Bp.lineHeight},".cm-foldGutter":{fontSize:Bp.fontSize,lineHeight:Bp.lineHeight},".cm-foldGutter .cm-gutterElement":{color:"#237893",cursor:"pointer"},".cm-foldGutter .cm-gutterElement:hover":{color:"#0b216f"},".cm-insertedLine":{textDecoration:ao.insertedTextDecoration,backgroundColor:r9,color:fE,padding:ao.insertedLinePadding,borderRadius:ao.borderRadious},"ins.cm-insertedLine, ins.cm-insertedLine:not(:has(.cm-changedText))":{textDecoration:ao.insertedTextDecoration,backgroundColor:`${r9} !important`,color:fE,padding:ao.insertedLinePadding,borderRadius:ao.borderRadious,border:`1px solid ${fE}40`},"ins.cm-insertedLine .cm-changedText":{background:"transparent !important"},".cm-deletedLine":{textDecoration:ao.deletedTextDecoration,backgroundColor:s9,color:pE,padding:ao.insertedLinePadding,borderRadius:ao.borderRadious},"del.cm-deletedLine, del, del:not(:has(.cm-deletedText))":{textDecoration:ao.deletedTextDecoration,backgroundColor:`${s9} !important`,color:pE,padding:ao.insertedLinePadding,borderRadius:ao.borderRadious,border:`1px solid ${pE}40`},"del .cm-deletedText, del .cm-changedText":{background:"transparent !important"},".cm-tooltip":{backgroundColor:fy,border:`1px solid ${Xh}`,borderRadius:zp.borderRadius,padding:zp.padding,boxShadow:"0 2px 8px rgba(0, 0, 0, 0.15)"},".cm-tooltip-autocomplete":{"& > ul":{backgroundColor:fy,border:"none",maxHeight:"300px"},"& > ul > li":{padding:zp.padding,lineHeight:zp.lineHeight},"& > ul > li[aria-selected]":{backgroundColor:"#dcebfc",color:r1,borderRadius:zp.borderRadiusSelected},"& > ul > li > span.cm-completionIcon":{color:od,paddingRight:zp.paddingRight},"& > ul > li > span.cm-completionDetail":{color:od,fontStyle:"italic"}},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:fy,borderBottomColor:fy},".cm-diagnostic":{"&-error":{borderLeft:`3px solid ${Lm}`},"&-warning":{borderLeft:`3px solid ${i9}`},"&-info":{borderLeft:`3px solid ${MJ}`}},".cm-lintPoint-error":{borderBottom:`2px wavy ${Lm}`},".cm-lintPoint-warning":{borderBottom:`2px wavy ${i9}`},".cm-matchingBracket":{backgroundColor:IMe,outline:`1px solid ${jMe}80`,borderRadius:oE.borderRadius},".cm-nonmatchingBracket":{backgroundColor:`${EJ}20`,outline:`1px solid ${Lm}`,borderRadius:oE.borderRadius},".cm-selectionMatch":{backgroundColor:QMe,outline:`1px solid ${Xh}70`,borderRadius:oE.borderRadius},".cm-foldPlaceholder":{backgroundColor:fy,color:od,border:`1px dotted ${od}70`,borderRadius:aE.borderRadius,padding:aE.padding,margin:aE.margin},"&.cm-focused":{outline:"none",boxShadow:`0 0 0 1px ${Xh}`},"& .cm-scroller::-webkit-scrollbar":{width:lE.width,height:lE.height},"& .cm-scroller::-webkit-scrollbar-track":{background:dy},"& .cm-scroller::-webkit-scrollbar-thumb":{backgroundColor:"#dadada",borderRadius:lE.borderRadius,border:`3px solid ${dy}`},"& .cm-scroller::-webkit-scrollbar-thumb:hover":{backgroundColor:"#cccccc"},".cm-ghostText":{opacity:"0.5",color:od}},{dark:!1}),VMe=Ci.define([{tag:O.keyword,color:Vr,fontWeight:"bold"},{tag:O.controlKeyword,color:JV,fontWeight:"bold"},{tag:O.moduleKeyword,color:Vr,fontWeight:"bold"},{tag:[O.name,O.deleted,O.character,O.macroName],color:Yi},{tag:[O.variableName],color:su},{tag:[O.propertyName],color:su,fontStyle:"normal"},{tag:[O.typeName],color:cE},{tag:[O.className],color:cE,fontStyle:"normal"},{tag:[O.namespace],color:Yi,fontStyle:"normal"},{tag:[O.operator,O.operatorKeyword],color:Yi},{tag:[O.bracket],color:Yi},{tag:[O.brace],color:Yi},{tag:[O.punctuation],color:Yi},{tag:[O.function(O.variableName)],color:uE},{tag:[O.labelName],color:uE,fontStyle:"normal"},{tag:[O.definition(O.function(O.variableName))],color:uE},{tag:[O.definition(O.variableName)],color:su},{tag:O.number,color:DMe},{tag:O.changed,color:t9},{tag:O.annotation,color:t9,fontStyle:"italic"},{tag:O.modifier,color:Vr,fontStyle:"normal"},{tag:O.self,color:Vr},{tag:[O.color,O.constant(O.name),O.standard(O.name)],color:su},{tag:[O.atom,O.bool,O.special(O.variableName)],color:Vr},{tag:[O.processingInstruction,O.inserted],color:e9},{tag:[O.special(O.string),O.regexp],color:JV},{tag:O.string,color:e9},{tag:O.definition(O.typeName),color:cE,fontWeight:"bold"},{tag:[O.definition(O.name),O.separator],color:Yi},{tag:O.meta,color:od},{tag:O.comment,fontStyle:"italic",color:hE},{tag:O.docComment,fontStyle:"italic",color:hE},{tag:[O.tagName],color:Vr},{tag:[O.attributeName],color:su},{tag:[O.heading],fontWeight:"bold",color:Vr},{tag:O.heading1,color:Vr,fontWeight:"bold"},{tag:O.heading2,color:Vr},{tag:O.heading3,color:Vr},{tag:O.heading4,color:Vr},{tag:O.heading5,color:Vr},{tag:O.heading6,color:Vr},{tag:[O.strong],fontWeight:"bold",color:Vr},{tag:[O.emphasis],fontStyle:"italic",color:su},{tag:[O.link],color:BMe,textDecoration:"underline",textUnderlinePosition:"under"},{tag:[O.url],color:MJ,textDecoration:"underline",textUnderlineOffset:"2px"},{tag:[O.invalid],color:Yi,textDecoration:"underline wavy",borderBottom:`1px wavy ${Lm}`},{tag:[O.strikethrough],color:Lm,textDecoration:"line-through"},{tag:O.constant(O.name),color:su},{tag:O.deleted,color:Lm},{tag:O.squareBracket,color:Yi},{tag:O.angleBracket,color:Yi},{tag:O.monospace,color:Yi},{tag:[O.contentSeparator],color:Yi},{tag:O.quote,color:hE}]),qMe=[zMe,Mr(VMe)];function fL(){return fL=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},fL.apply(null,arguments)}function XMe(t,e){if(t==null)return{};var n={};for(var i in t)if({}.hasOwnProperty.call(t,i)){if(e.indexOf(i)!==-1)continue;n[i]=t[i]}return n}const o9=typeof String.prototype.normalize=="function"?t=>t.normalize("NFKD"):t=>t;class tg{constructor(e,n,i=0,r=e.length,s,o){this.test=o,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(i,r),this.bufferStart=i,this.normalize=s?a=>s(o9(a)):o9,this.query=this.normalize(n)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return Hr(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let n=kN(e),i=this.bufferStart+this.bufferPos;this.bufferPos+=Na(e);let r=this.normalize(n);if(r.length)for(let s=0,o=i;;s++){let a=r.charCodeAt(s),l=this.match(a,o,this.bufferPos+this.bufferStart);if(s==r.length-1){if(l)return this.value=l,this;break}o==i&&s<n.length&&n.charCodeAt(s)==a&&o++}}}match(e,n,i){let r=null;for(let s=0;s<this.matches.length;s+=2){let o=this.matches[s],a=!1;this.query.charCodeAt(o)==e&&(o==this.query.length-1?r={from:this.matches[s+1],to:i}:(this.matches[s]++,a=!0)),a||(this.matches.splice(s,2),s-=2)}return this.query.charCodeAt(0)==e&&(this.query.length==1?r={from:n,to:i}:this.matches.push(1,n)),r&&this.test&&!this.test(r.from,r.to,this.buffer,this.bufferStart)&&(r=null),r}}typeof Symbol<"u"&&(tg.prototype[Symbol.iterator]=function(){return this});const $J={from:-1,to:-1,match:/.*/.exec("")},S5="gm"+(/x/.unicode==null?"":"u");class LJ{constructor(e,n,i,r=0,s=e.length){if(this.text=e,this.to=s,this.curLine="",this.done=!1,this.value=$J,/\\[sWDnr]|\n|\r|\[\^/.test(n))return new DJ(e,n,i,r,s);this.re=new RegExp(n,S5+(i?.ignoreCase?"i":"")),this.test=i?.test,this.iter=e.iter();let o=e.lineAt(r);this.curLineStart=o.from,this.matchPos=Sw(e,r),this.getLine(this.curLineStart)}getLine(e){this.iter.next(e),this.iter.lineBreak?this.curLine="":(this.curLine=this.iter.value,this.curLineStart+this.curLine.length>this.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let n=this.matchPos<=this.to&&this.re.exec(this.curLine);if(n){let i=this.curLineStart+n.index,r=i+n[0].length;if(this.matchPos=Sw(this.text,r+(i==r?1:0)),i==this.curLineStart+this.curLine.length&&this.nextLine(),(i<r||i>this.value.to)&&(!this.test||this.test(i,r,n)))return this.value={from:i,to:r,match:n},this;e=this.matchPos-this.curLineStart}else if(this.curLineStart+this.curLine.length<this.to)this.nextLine(),e=0;else return this.done=!0,this}}}const mE=new WeakMap;class Dm{constructor(e,n){this.from=e,this.text=n}get to(){return this.from+this.text.length}static get(e,n,i){let r=mE.get(e);if(!r||r.from>=i||r.to<=n){let a=new Dm(n,e.sliceString(n,i));return mE.set(e,a),a}if(r.from==n&&r.to==i)return r;let{text:s,from:o}=r;return o>n&&(s=e.sliceString(n,o)+s,o=n),r.to<i&&(s+=e.sliceString(r.to,i)),mE.set(e,new Dm(o,s)),new Dm(n,s.slice(n-o,i-o))}}class DJ{constructor(e,n,i,r,s){this.text=e,this.to=s,this.done=!1,this.value=$J,this.matchPos=Sw(e,r),this.re=new RegExp(n,S5+(i?.ignoreCase?"i":"")),this.test=i?.test,this.flat=Dm.get(e,r,this.chunkEnd(r+5e3))}chunkEnd(e){return e>=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,n=this.re.exec(this.flat.text);if(n&&!n[0]&&n.index==e&&(this.re.lastIndex=e+1,n=this.re.exec(this.flat.text)),n){let i=this.flat.from+n.index,r=i+n[0].length;if((this.flat.to>=this.to||n.index+n[0].length<=this.flat.text.length-10)&&(!this.test||this.test(i,r,n)))return this.value={from:i,to:r,match:n},this.matchPos=Sw(this.text,r+(i==r?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=Dm.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}}typeof Symbol<"u"&&(LJ.prototype[Symbol.iterator]=DJ.prototype[Symbol.iterator]=function(){return this});function FMe(t){try{return new RegExp(t,S5),!0}catch{return!1}}function Sw(t,e){if(e>=t.length)return e;let n=t.lineAt(e),i;for(;e<n.to&&(i=n.text.charCodeAt(e-n.from))>=56320&&i<57344;)e++;return e}function pL(t){let e=String(t.state.doc.lineAt(t.state.selection.main.head).number),n=Wt("input",{class:"cm-textfield",name:"line",value:e}),i=Wt("form",{class:"cm-gotoLine",onkeydown:s=>{s.keyCode==27?(s.preventDefault(),t.dispatch({effects:S0.of(!1)}),t.focus()):s.keyCode==13&&(s.preventDefault(),r())},onsubmit:s=>{s.preventDefault(),r()}},Wt("label",t.state.phrase("Go to line"),": ",n)," ",Wt("button",{class:"cm-button",type:"submit"},t.state.phrase("go")),Wt("button",{name:"close",onclick:()=>{t.dispatch({effects:S0.of(!1)}),t.focus()},"aria-label":t.state.phrase("close"),type:"button"},["×"]));function r(){let s=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(n.value);if(!s)return;let{state:o}=t,a=o.doc.lineAt(o.selection.main.head),[,l,u,d,f]=s,m=d?+d.slice(1):0,g=u?+u:a.number;if(u&&f){let v=g/100;l&&(v=v*(l=="-"?-1:1)+a.number/o.doc.lines),g=Math.round(o.doc.lines*v)}else u&&l&&(g=g*(l=="-"?-1:1)+a.number);let y=o.doc.line(Math.max(1,Math.min(o.doc.lines,g))),_=ue.cursor(y.from+Math.max(0,Math.min(m,y.length)));t.dispatch({effects:[S0.of(!1),be.scrollIntoView(_.from,{y:"center"})],selection:_}),t.focus()}return{dom:i}}const S0=Ze.define(),a9=ki.define({create(){return!0},update(t,e){for(let n of e.effects)n.is(S0)&&(t=n.value);return t},provide:t=>lx.from(t,e=>e?pL:null)}),UMe=t=>{let e=ax(t,pL);if(!e){let n=[S0.of(!0)];t.state.field(a9,!1)==null&&n.push(Ze.appendConfig.of([a9,WMe])),t.dispatch({effects:n}),e=ax(t,pL)}return e&&e.dom.querySelector("input").select(),!0},WMe=be.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px",position:"relative","& label":{fontSize:"80%"},"& [name=close]":{position:"absolute",top:"0",bottom:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:"0"}}}),GMe={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},ZMe=Pe.define({combine(t){return tl(t,GMe,{highlightWordAroundCursor:(e,n)=>e||n,minSelectionLength:Math.min,maxMatches:Math.min})}});function HMe(t){return[t$e,e$e]}const YMe=Te.mark({class:"cm-selectionMatch"}),KMe=Te.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function l9(t,e,n,i){return(n==0||t(e.sliceDoc(n-1,n))!=hn.Word)&&(i==e.doc.length||t(e.sliceDoc(i,i+1))!=hn.Word)}function JMe(t,e,n,i){return t(e.sliceDoc(n,n+1))==hn.Word&&t(e.sliceDoc(i-1,i))==hn.Word}const e$e=Cn.fromClass(class{constructor(t){this.decorations=this.getDeco(t)}update(t){(t.selectionSet||t.docChanged||t.viewportChanged)&&(this.decorations=this.getDeco(t.view))}getDeco(t){let e=t.state.facet(ZMe),{state:n}=t,i=n.selection;if(i.ranges.length>1)return Te.none;let r=i.main,s,o=null;if(r.empty){if(!e.highlightWordAroundCursor)return Te.none;let l=n.wordAt(r.head);if(!l)return Te.none;o=n.charCategorizer(r.head),s=n.sliceDoc(l.from,l.to)}else{let l=r.to-r.from;if(l<e.minSelectionLength||l>200)return Te.none;if(e.wholeWords){if(s=n.sliceDoc(r.from,r.to),o=n.charCategorizer(r.head),!(l9(o,n,r.from,r.to)&&JMe(o,n,r.from,r.to)))return Te.none}else if(s=n.sliceDoc(r.from,r.to),!s)return Te.none}let a=[];for(let l of t.visibleRanges){let u=new tg(n.doc,s,l.from,l.to);for(;!u.next().done;){let{from:d,to:f}=u.value;if((!o||l9(o,n,d,f))&&(r.empty&&d<=r.from&&f>=r.to?a.push(KMe.range(d,f)):(d>=r.to||f<=r.from)&&a.push(YMe.range(d,f)),a.length>e.maxMatches))return Te.none}}return Te.set(a)}},{decorations:t=>t.decorations}),t$e=be.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),n$e=({state:t,dispatch:e})=>{let{selection:n}=t,i=ue.create(n.ranges.map(r=>t.wordAt(r.head)||ue.cursor(r.head)),n.mainIndex);return i.eq(n)?!1:(e(t.update({selection:i})),!0)};function i$e(t,e){let{main:n,ranges:i}=t.selection,r=t.wordAt(n.head),s=r&&r.from==n.from&&r.to==n.to;for(let o=!1,a=new tg(t.doc,e,i[i.length-1].to);;)if(a.next(),a.done){if(o)return null;a=new tg(t.doc,e,0,Math.max(0,i[i.length-1].from-1)),o=!0}else{if(o&&i.some(l=>l.from==a.value.from))continue;if(s){let l=t.wordAt(a.value.from);if(!l||l.from!=a.value.from||l.to!=a.value.to)continue}return a.value}}const r$e=({state:t,dispatch:e})=>{let{ranges:n}=t.selection;if(n.some(s=>s.from===s.to))return n$e({state:t,dispatch:e});let i=t.sliceDoc(n[0].from,n[0].to);if(t.selection.ranges.some(s=>t.sliceDoc(s.from,s.to)!=i))return!1;let r=i$e(t,i);return r?(e(t.update({selection:t.selection.addRange(ue.range(r.from,r.to),!1),effects:be.scrollIntoView(r.to)})),!0):!1},Tg=Pe.define({combine(t){return tl(t,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:e=>new g$e(e),scrollToMatch:e=>be.scrollIntoView(e)})}});class NJ{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||"",this.valid=!!this.search&&(!this.regexp||FMe(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!e.wholeWord}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,(n,i)=>i=="n"?`
|
|
380
380
|
`:i=="r"?"\r":i=="t"?" ":"\\")}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord}create(){return this.regexp?new l$e(this):new o$e(this)}getCursor(e,n=0,i){let r=e.doc?e:ct.create({doc:e});return i==null&&(i=r.doc.length),this.regexp?im(this,r,n,i):nm(this,r,n,i)}}class QJ{constructor(e){this.spec=e}}function nm(t,e,n,i){return new tg(e.doc,t.unquoted,n,i,t.caseSensitive?void 0:r=>r.toLowerCase(),t.wholeWord?s$e(e.doc,e.charCategorizer(e.selection.main.head)):void 0)}function s$e(t,e){return(n,i,r,s)=>((s>n||s+r.length<i)&&(s=Math.max(0,n-2),r=t.sliceString(s,Math.min(t.length,i+2))),(e(ww(r,n-s))!=hn.Word||e(kw(r,n-s))!=hn.Word)&&(e(kw(r,i-s))!=hn.Word||e(ww(r,i-s))!=hn.Word))}class o$e extends QJ{constructor(e){super(e)}nextMatch(e,n,i){let r=nm(this.spec,e,i,e.doc.length).nextOverlapping();if(r.done){let s=Math.min(e.doc.length,n+this.spec.unquoted.length);r=nm(this.spec,e,0,s).nextOverlapping()}return r.done||r.value.from==n&&r.value.to==i?null:r.value}prevMatchInRange(e,n,i){for(let r=i;;){let s=Math.max(n,r-1e4-this.spec.unquoted.length),o=nm(this.spec,e,s,r),a=null;for(;!o.nextOverlapping().done;)a=o.value;if(a)return a;if(s==n)return null;r-=1e4}}prevMatch(e,n,i){let r=this.prevMatchInRange(e,0,n);return r||(r=this.prevMatchInRange(e,Math.max(0,i-this.spec.unquoted.length),e.doc.length)),r&&(r.from!=n||r.to!=i)?r:null}getReplacement(e){return this.spec.unquote(this.spec.replace)}matchAll(e,n){let i=nm(this.spec,e,0,e.doc.length),r=[];for(;!i.next().done;){if(r.length>=n)return null;r.push(i.value)}return r}highlight(e,n,i,r){let s=nm(this.spec,e,Math.max(0,n-this.spec.unquoted.length),Math.min(i+this.spec.unquoted.length,e.doc.length));for(;!s.next().done;)r(s.value.from,s.value.to)}}function im(t,e,n,i){return new LJ(e.doc,t.search,{ignoreCase:!t.caseSensitive,test:t.wholeWord?a$e(e.charCategorizer(e.selection.main.head)):void 0},n,i)}function ww(t,e){return t.slice(Ii(t,e,!1),e)}function kw(t,e){return t.slice(e,Ii(t,e))}function a$e(t){return(e,n,i)=>!i[0].length||(t(ww(i.input,i.index))!=hn.Word||t(kw(i.input,i.index))!=hn.Word)&&(t(kw(i.input,i.index+i[0].length))!=hn.Word||t(ww(i.input,i.index+i[0].length))!=hn.Word)}class l$e extends QJ{nextMatch(e,n,i){let r=im(this.spec,e,i,e.doc.length).next();return r.done&&(r=im(this.spec,e,0,n).next()),r.done?null:r.value}prevMatchInRange(e,n,i){for(let r=1;;r++){let s=Math.max(n,i-r*1e4),o=im(this.spec,e,s,i),a=null;for(;!o.next().done;)a=o.value;if(a&&(s==n||a.from>s+10))return a;if(s==n)return null}}prevMatch(e,n,i){return this.prevMatchInRange(e,0,n)||this.prevMatchInRange(e,i,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&]|\d+)/g,(n,i)=>{if(i=="&")return e.match[0];if(i=="$")return"$";for(let r=i.length;r>0;r--){let s=+i.slice(0,r);if(s>0&&s<e.match.length)return e.match[s]+i.slice(r)}return n})}matchAll(e,n){let i=im(this.spec,e,0,e.doc.length),r=[];for(;!i.next().done;){if(r.length>=n)return null;r.push(i.value)}return r}highlight(e,n,i,r){let s=im(this.spec,e,Math.max(0,n-250),Math.min(i+250,e.doc.length));for(;!s.next().done;)r(s.value.from,s.value.to)}}const _x=Ze.define(),w5=Ze.define(),Tu=ki.define({create(t){return new gE(mL(t).create(),null)},update(t,e){for(let n of e.effects)n.is(_x)?t=new gE(n.value.create(),t.panel):n.is(w5)&&(t=new gE(t.query,n.value?k5:null));return t},provide:t=>lx.from(t,e=>e.panel)});class gE{constructor(e,n){this.query=e,this.panel=n}}const c$e=Te.mark({class:"cm-searchMatch"}),u$e=Te.mark({class:"cm-searchMatch cm-searchMatch-selected"}),h$e=Cn.fromClass(class{constructor(t){this.view=t,this.decorations=this.highlight(t.state.field(Tu))}update(t){let e=t.state.field(Tu);(e!=t.startState.field(Tu)||t.docChanged||t.selectionSet||t.viewportChanged)&&(this.decorations=this.highlight(e))}highlight({query:t,panel:e}){if(!e||!t.spec.valid)return Te.none;let{view:n}=this,i=new tc;for(let r=0,s=n.visibleRanges,o=s.length;r<o;r++){let{from:a,to:l}=s[r];for(;r<o-1&&l>s[r+1].from-500;)l=s[++r].to;t.highlight(n.state,a,l,(u,d)=>{let f=n.state.selection.ranges.some(m=>m.from==u&&m.to==d);i.add(u,d,f?u$e:c$e)})}return i.finish()}},{decorations:t=>t.decorations});function aO(t){return e=>{let n=e.state.field(Tu,!1);return n&&n.query.spec.valid?t(e,n):BJ(e)}}const Cw=aO((t,{query:e})=>{let{to:n}=t.state.selection.main,i=e.nextMatch(t.state,n,n);if(!i)return!1;let r=ue.single(i.from,i.to),s=t.state.facet(Tg);return t.dispatch({selection:r,effects:[C5(t,i),s.scrollToMatch(r.main,t)],userEvent:"select.search"}),jJ(t),!0}),Tw=aO((t,{query:e})=>{let{state:n}=t,{from:i}=n.selection.main,r=e.prevMatch(n,i,i);if(!r)return!1;let s=ue.single(r.from,r.to),o=t.state.facet(Tg);return t.dispatch({selection:s,effects:[C5(t,r),o.scrollToMatch(s.main,t)],userEvent:"select.search"}),jJ(t),!0}),d$e=aO((t,{query:e})=>{let n=e.matchAll(t.state,1e3);return!n||!n.length?!1:(t.dispatch({selection:ue.create(n.map(i=>ue.range(i.from,i.to))),userEvent:"select.search.matches"}),!0)}),f$e=({state:t,dispatch:e})=>{let n=t.selection;if(n.ranges.length>1||n.main.empty)return!1;let{from:i,to:r}=n.main,s=[],o=0;for(let a=new tg(t.doc,t.sliceDoc(i,r));!a.next().done;){if(s.length>1e3)return!1;a.value.from==i&&(o=s.length),s.push(ue.range(a.value.from,a.value.to))}return e(t.update({selection:ue.create(s,o),userEvent:"select.search.matches"})),!0},c9=aO((t,{query:e})=>{let{state:n}=t,{from:i,to:r}=n.selection.main;if(n.readOnly)return!1;let s=e.nextMatch(n,i,i);if(!s)return!1;let o=s,a=[],l,u,d=[];o.from==i&&o.to==r&&(u=n.toText(e.getReplacement(o)),a.push({from:o.from,to:o.to,insert:u}),o=e.nextMatch(n,o.from,o.to),d.push(be.announce.of(n.phrase("replaced match on line $",n.doc.lineAt(i).number)+".")));let f=t.state.changes(a);return o&&(l=ue.single(o.from,o.to).map(f),d.push(C5(t,o)),d.push(n.facet(Tg).scrollToMatch(l.main,t))),t.dispatch({changes:f,selection:l,effects:d,userEvent:"input.replace"}),!0}),p$e=aO((t,{query:e})=>{if(t.state.readOnly)return!1;let n=e.matchAll(t.state,1e9).map(r=>{let{from:s,to:o}=r;return{from:s,to:o,insert:e.getReplacement(r)}});if(!n.length)return!1;let i=t.state.phrase("replaced $ matches",n.length)+".";return t.dispatch({changes:n,effects:be.announce.of(i),userEvent:"input.replace.all"}),!0});function k5(t){return t.state.facet(Tg).createPanel(t)}function mL(t,e){var n,i,r,s,o;let a=t.selection.main,l=a.empty||a.to>a.from+100?"":t.sliceDoc(a.from,a.to);if(e&&!l)return e;let u=t.facet(Tg);return new NJ({search:((n=e?.literal)!==null&&n!==void 0?n:u.literal)?l:l.replace(/\n/g,"\\n"),caseSensitive:(i=e?.caseSensitive)!==null&&i!==void 0?i:u.caseSensitive,literal:(r=e?.literal)!==null&&r!==void 0?r:u.literal,regexp:(s=e?.regexp)!==null&&s!==void 0?s:u.regexp,wholeWord:(o=e?.wholeWord)!==null&&o!==void 0?o:u.wholeWord})}function IJ(t){let e=ax(t,k5);return e&&e.dom.querySelector("[main-field]")}function jJ(t){let e=IJ(t);e&&e==t.root.activeElement&&e.select()}const BJ=t=>{let e=t.state.field(Tu,!1);if(e&&e.panel){let n=IJ(t);if(n&&n!=t.root.activeElement){let i=mL(t.state,e.query.spec);i.valid&&t.dispatch({effects:_x.of(i)}),n.focus(),n.select()}}else t.dispatch({effects:[w5.of(!0),e?_x.of(mL(t.state,e.query.spec)):Ze.appendConfig.of(y$e)]});return!0},zJ=t=>{let e=t.state.field(Tu,!1);if(!e||!e.panel)return!1;let n=ax(t,k5);return n&&n.dom.contains(t.root.activeElement)&&t.focus(),t.dispatch({effects:w5.of(!1)}),!0},m$e=[{key:"Mod-f",run:BJ,scope:"editor search-panel"},{key:"F3",run:Cw,shift:Tw,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:Cw,shift:Tw,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:zJ,scope:"editor search-panel"},{key:"Mod-Shift-l",run:f$e},{key:"Mod-Alt-g",run:UMe},{key:"Mod-d",run:r$e,preventDefault:!0}];class g$e{constructor(e){this.view=e;let n=this.query=e.state.field(Tu).query.spec;this.commit=this.commit.bind(this),this.searchField=Wt("input",{value:n.search,placeholder:ys(e,"Find"),"aria-label":ys(e,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=Wt("input",{value:n.replace,placeholder:ys(e,"Replace"),"aria-label":ys(e,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=Wt("input",{type:"checkbox",name:"case",form:"",checked:n.caseSensitive,onchange:this.commit}),this.reField=Wt("input",{type:"checkbox",name:"re",form:"",checked:n.regexp,onchange:this.commit}),this.wordField=Wt("input",{type:"checkbox",name:"word",form:"",checked:n.wholeWord,onchange:this.commit});function i(r,s,o){return Wt("button",{class:"cm-button",name:r,onclick:s,type:"button"},o)}this.dom=Wt("div",{onkeydown:r=>this.keydown(r),class:"cm-search"},[this.searchField,i("next",()=>Cw(e),[ys(e,"next")]),i("prev",()=>Tw(e),[ys(e,"previous")]),i("select",()=>d$e(e),[ys(e,"all")]),Wt("label",null,[this.caseField,ys(e,"match case")]),Wt("label",null,[this.reField,ys(e,"regexp")]),Wt("label",null,[this.wordField,ys(e,"by word")]),...e.state.readOnly?[]:[Wt("br"),this.replaceField,i("replace",()=>c9(e),[ys(e,"replace")]),i("replaceAll",()=>p$e(e),[ys(e,"replace all")])],Wt("button",{name:"close",onclick:()=>zJ(e),"aria-label":ys(e,"close"),type:"button"},["×"])])}commit(){let e=new NJ({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:_x.of(e)}))}keydown(e){$1e(this.view,e,"search-panel")?e.preventDefault():e.keyCode==13&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?Tw:Cw)(this.view)):e.keyCode==13&&e.target==this.replaceField&&(e.preventDefault(),c9(this.view))}update(e){for(let n of e.transactions)for(let i of n.effects)i.is(_x)&&!i.value.eq(this.query)&&this.setQuery(i.value)}setQuery(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp,this.wordField.checked=e.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(Tg).top}}function ys(t,e){return t.state.phrase(e)}const s1=30,o1=/[\s\.,:;?!]/;function C5(t,{from:e,to:n}){let i=t.state.doc.lineAt(e),r=t.state.doc.lineAt(n).to,s=Math.max(i.from,e-s1),o=Math.min(r,n+s1),a=t.state.sliceDoc(s,o);if(s!=i.from){for(let l=0;l<s1;l++)if(!o1.test(a[l+1])&&o1.test(a[l])){a=a.slice(l);break}}if(o!=r){for(let l=a.length-1;l>a.length-s1;l--)if(!o1.test(a[l-1])&&o1.test(a[l])){a=a.slice(0,l);break}}return be.announce.of(`${t.state.phrase("current match")}. ${a} ${t.state.phrase("on line")} ${i.number}.`)}const b$e=be.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),y$e=[Tu,hc.low(h$e),b$e];class u9{constructor(e,n,i){this.from=e,this.to=n,this.diagnostic=i}}class xd{constructor(e,n,i){this.diagnostics=e,this.panel=n,this.selected=i}static init(e,n,i){let r=i.facet(vx).markerFilter;r&&(e=r(e,i));let s=e.slice().sort((g,y)=>g.from-y.from||g.to-y.to),o=new tc,a=[],l=0,u=i.doc.iter(),d=0,f=i.doc.length;for(let g=0;;){let y=g==s.length?null:s[g];if(!y&&!a.length)break;let _,v;if(a.length)_=l,v=a.reduce((C,E)=>Math.min(C,E.to),y&&y.from>_?y.from:1e8);else{if(_=y.from,_>f)break;v=y.to,a.push(y),g++}for(;g<s.length;){let C=s[g];if(C.from==_&&(C.to>C.from||C.to==_))a.push(C),g++,v=Math.min(C.to,v);else{v=Math.min(C.from,v);break}}v=Math.min(v,f);let w=!1;if(a.some(C=>C.from==_&&(C.to==v||v==f))&&(w=_==v,!w&&v-_<10)){let C=_-(d+u.value.length);C>0&&(u.next(C),d=_);for(let E=_;;){if(E>=v){w=!0;break}if(!u.lineBreak&&d+u.value.length>E)break;E=d+u.value.length,d+=u.value.length,u.next()}}let T=E$e(a);if(w)o.add(_,_,Te.widget({widget:new T$e(T),diagnostics:a.slice()}));else{let C=a.reduce((E,R)=>R.markClass?E+" "+R.markClass:E,"");o.add(_,v,Te.mark({class:"cm-lintRange cm-lintRange-"+T+C,diagnostics:a.slice(),inclusiveEnd:a.some(E=>E.to>v)}))}if(l=v,l==f)break;for(let C=0;C<a.length;C++)a[C].to<=l&&a.splice(C--,1)}let m=o.finish();return new xd(m,n,ng(m))}}function ng(t,e=null,n=0){let i=null;return t.between(n,1e9,(r,s,{spec:o})=>{if(!(e&&o.diagnostics.indexOf(e)<0))if(!i)i=new u9(r,s,e||o.diagnostics[0]);else{if(o.diagnostics.indexOf(i.diagnostic)<0)return!1;i=new u9(i.from,s,i.diagnostic)}}),i}function x$e(t,e){let n=e.pos,i=e.end||n,r=t.state.facet(vx).hideOn(t,n,i);if(r!=null)return r;let s=t.startState.doc.lineAt(e.pos);return!!(t.effects.some(o=>o.is(VJ))||t.changes.touchesRange(s.from,Math.max(s.to,i)))}function O$e(t,e){return t.field(As,!1)?e:e.concat(Ze.appendConfig.of(M$e))}const VJ=Ze.define(),T5=Ze.define(),qJ=Ze.define(),As=ki.define({create(){return new xd(Te.none,null,null)},update(t,e){if(e.docChanged&&t.diagnostics.size){let n=t.diagnostics.map(e.changes),i=null,r=t.panel;if(t.selected){let s=e.changes.mapPos(t.selected.from,1);i=ng(n,t.selected.diagnostic,s)||ng(n,null,s)}!n.size&&r&&e.state.facet(vx).autoPanel&&(r=null),t=new xd(n,r,i)}for(let n of e.effects)if(n.is(VJ)){let i=e.state.facet(vx).autoPanel?n.value.length?Sx.open:null:t.panel;t=xd.init(n.value,i,e.state)}else n.is(T5)?t=new xd(t.diagnostics,n.value?Sx.open:null,t.selected):n.is(qJ)&&(t=new xd(t.diagnostics,t.panel,n.value));return t},provide:t=>[lx.from(t,e=>e.panel),be.decorations.from(t,e=>e.diagnostics)]}),_$e=Te.mark({class:"cm-lintRange cm-lintRange-active"});function v$e(t,e,n){let{diagnostics:i}=t.state.field(As),r,s=-1,o=-1;i.between(e-(n<0?1:0),e+(n>0?1:0),(l,u,{spec:d})=>{if(e>=l&&e<=u&&(l==u||(e>l||n>0)&&(e<u||n<0)))return r=d.diagnostics,s=l,o=u,!1});let a=t.state.facet(vx).tooltipFilter;return r&&a&&(r=a(r,t.state)),r?{pos:s,end:o,above:t.state.doc.lineAt(s).to<o,create(){return{dom:S$e(t,r)}}}:null}function S$e(t,e){return Wt("ul",{class:"cm-tooltip-lint"},e.map(n=>FJ(t,n,!1)))}const w$e=t=>{let e=t.state.field(As,!1);(!e||!e.panel)&&t.dispatch({effects:O$e(t.state,[T5.of(!0)])});let n=ax(t,Sx.open);return n&&n.dom.querySelector(".cm-panel-lint ul").focus(),!0},h9=t=>{let e=t.state.field(As,!1);return!e||!e.panel?!1:(t.dispatch({effects:T5.of(!1)}),!0)},k$e=t=>{let e=t.state.field(As,!1);if(!e)return!1;let n=t.state.selection.main,i=e.diagnostics.iter(n.to+1);return!i.value&&(i=e.diagnostics.iter(0),!i.value||i.from==n.from&&i.to==n.to)?!1:(t.dispatch({selection:{anchor:i.from,head:i.to},scrollIntoView:!0}),!0)},C$e=[{key:"Mod-Shift-m",run:w$e,preventDefault:!0},{key:"F8",run:k$e}],vx=Pe.define({combine(t){return{sources:t.map(e=>e.source).filter(e=>e!=null),...tl(t.map(e=>e.config),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null,hideOn:()=>null},{delay:Math.max,markerFilter:d9,tooltipFilter:d9,needsRefresh:(e,n)=>e?n?i=>e(i)||n(i):e:n,hideOn:(e,n)=>e?n?(i,r,s)=>e(i,r,s)||n(i,r,s):e:n,autoPanel:(e,n)=>e||n})}}});function d9(t,e){return t?e?(n,i)=>e(t(n,i),i):t:e}function XJ(t){let e=[];if(t)e:for(let{name:n}of t){for(let i=0;i<n.length;i++){let r=n[i];if(/[a-zA-Z]/.test(r)&&!e.some(s=>s.toLowerCase()==r.toLowerCase())){e.push(r);continue e}}e.push("")}return e}function FJ(t,e,n){var i;let r=n?XJ(e.actions):[];return Wt("li",{class:"cm-diagnostic cm-diagnostic-"+e.severity},Wt("span",{class:"cm-diagnosticText"},e.renderMessage?e.renderMessage(t):e.message),(i=e.actions)===null||i===void 0?void 0:i.map((s,o)=>{let a=!1,l=g=>{if(g.preventDefault(),a)return;a=!0;let y=ng(t.state.field(As).diagnostics,e);y&&s.apply(t,y.from,y.to)},{name:u}=s,d=r[o]?u.indexOf(r[o]):-1,f=d<0?u:[u.slice(0,d),Wt("u",u.slice(d,d+1)),u.slice(d+1)],m=s.markClass?" "+s.markClass:"";return Wt("button",{type:"button",class:"cm-diagnosticAction"+m,onclick:l,onmousedown:l,"aria-label":` Action: ${u}${d<0?"":` (access key "${r[o]})"`}.`},f)}),e.source&&Wt("div",{class:"cm-diagnosticSource"},e.source))}class T$e extends Ls{constructor(e){super(),this.sev=e}eq(e){return e.sev==this.sev}toDOM(){return Wt("span",{class:"cm-lintPoint cm-lintPoint-"+this.sev})}}class f9{constructor(e,n){this.diagnostic=n,this.id="item_"+Math.floor(Math.random()*4294967295).toString(16),this.dom=FJ(e,n,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class Sx{constructor(e){this.view=e,this.items=[];let n=r=>{if(r.keyCode==27)h9(this.view),this.view.focus();else if(r.keyCode==38||r.keyCode==33)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(r.keyCode==40||r.keyCode==34)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(r.keyCode==36)this.moveSelection(0);else if(r.keyCode==35)this.moveSelection(this.items.length-1);else if(r.keyCode==13)this.view.focus();else if(r.keyCode>=65&&r.keyCode<=90&&this.selectedIndex>=0){let{diagnostic:s}=this.items[this.selectedIndex],o=XJ(s.actions);for(let a=0;a<o.length;a++)if(o[a].toUpperCase().charCodeAt(0)==r.keyCode){let l=ng(this.view.state.field(As).diagnostics,s);l&&s.actions[a].apply(e,l.from,l.to)}}else return;r.preventDefault()},i=r=>{for(let s=0;s<this.items.length;s++)this.items[s].dom.contains(r.target)&&this.moveSelection(s)};this.list=Wt("ul",{tabIndex:0,role:"listbox","aria-label":this.view.state.phrase("Diagnostics"),onkeydown:n,onclick:i}),this.dom=Wt("div",{class:"cm-panel-lint"},this.list,Wt("button",{type:"button",name:"close","aria-label":this.view.state.phrase("close"),onclick:()=>h9(this.view)},"×")),this.update()}get selectedIndex(){let e=this.view.state.field(As).selected;if(!e)return-1;for(let n=0;n<this.items.length;n++)if(this.items[n].diagnostic==e.diagnostic)return n;return-1}update(){let{diagnostics:e,selected:n}=this.view.state.field(As),i=0,r=!1,s=null,o=new Set;for(e.between(0,this.view.state.doc.length,(a,l,{spec:u})=>{for(let d of u.diagnostics){if(o.has(d))continue;o.add(d);let f=-1,m;for(let g=i;g<this.items.length;g++)if(this.items[g].diagnostic==d){f=g;break}f<0?(m=new f9(this.view,d),this.items.splice(i,0,m),r=!0):(m=this.items[f],f>i&&(this.items.splice(i,f-i),r=!0)),n&&m.diagnostic==n.diagnostic?m.dom.hasAttribute("aria-selected")||(m.dom.setAttribute("aria-selected","true"),s=m):m.dom.hasAttribute("aria-selected")&&m.dom.removeAttribute("aria-selected"),i++}});i<this.items.length&&!(this.items.length==1&&this.items[0].diagnostic.from<0);)r=!0,this.items.pop();this.items.length==0&&(this.items.push(new f9(this.view,{from:-1,to:-1,severity:"info",message:this.view.state.phrase("No diagnostics")})),r=!0),s?(this.list.setAttribute("aria-activedescendant",s.id),this.view.requestMeasure({key:this,read:()=>({sel:s.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:a,panel:l})=>{let u=l.height/this.list.offsetHeight;a.top<l.top?this.list.scrollTop-=(l.top-a.top)/u:a.bottom>l.bottom&&(this.list.scrollTop+=(a.bottom-l.bottom)/u)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),r&&this.sync()}sync(){let e=this.list.firstChild;function n(){let i=e;e=i.nextSibling,i.remove()}for(let i of this.items)if(i.dom.parentNode==this.list){for(;e!=i.dom;)n();e=i.dom.nextSibling}else this.list.insertBefore(i.dom,e);for(;e;)n()}moveSelection(e){if(this.selectedIndex<0)return;let n=this.view.state.field(As),i=ng(n.diagnostics,this.items[e].diagnostic);i&&this.view.dispatch({selection:{anchor:i.from,head:i.to},scrollIntoView:!0,effects:qJ.of(i)})}static open(e){return new Sx(e)}}function P$e(t,e='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" ${e}>${encodeURIComponent(t)}</svg>')`}function a1(t){return P$e(`<path d="m0 2.5 l2 -1.5 l1 0 l2 1.5 l1 0" stroke="${t}" fill="none" stroke-width=".7"/>`,'width="6" height="3"')}const A$e=be.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:a1("#d11")},".cm-lintRange-warning":{backgroundImage:a1("orange")},".cm-lintRange-info":{backgroundImage:a1("#999")},".cm-lintRange-hint":{backgroundImage:a1("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}});function R$e(t){return t=="error"?4:t=="warning"?3:t=="info"?2:1}function E$e(t){let e="hint",n=1;for(let i of t){let r=R$e(i.severity);r>n&&(n=r,e=i.severity)}return e}const M$e=[As,be.decorations.compute([As],t=>{let{selected:e,panel:n}=t.field(As);return!e||!n||e.from==e.to?Te.none:Te.set([_$e.range(e.from,e.to)])}),_Se(v$e,{hideOn:x$e}),A$e];var p9=function(e){e===void 0&&(e={});var{crosshairCursor:n=!1}=e,i=[];e.closeBracketsKeymap!==!1&&(i=i.concat(QTe)),e.defaultKeymap!==!1&&(i=i.concat(cCe)),e.searchKeymap!==!1&&(i=i.concat(m$e)),e.historyKeymap!==!1&&(i=i.concat(bke)),e.foldKeymap!==!1&&(i=i.concat(cwe)),e.completionKeymap!==!1&&(i=i.concat($Y)),e.lintKeymap!==!1&&(i=i.concat(C$e));var r=[];return e.lineNumbers!==!1&&r.push(MSe()),e.highlightActiveLineGutter!==!1&&r.push(DSe()),e.highlightSpecialChars!==!1&&r.push(H1e()),e.history!==!1&&r.push(lke()),e.foldGutter!==!1&&r.push(fwe()),e.drawSelection!==!1&&r.push(j1e()),e.dropCursor!==!1&&r.push(X1e()),e.allowMultipleSelections!==!1&&r.push(ct.allowMultipleSelections.of(!0)),e.indentOnInput!==!1&&r.push(twe()),e.syntaxHighlighting!==!1&&r.push(Mr(bwe,{fallback:!0})),e.bracketMatching!==!1&&r.push(wwe()),e.closeBrackets!==!1&&r.push($Te()),e.autocompletion!==!1&&r.push(XTe()),e.rectangularSelection!==!1&&r.push(uSe()),n!==!1&&r.push(fSe()),e.highlightActiveLine!==!1&&r.push(nSe()),e.highlightSelectionMatches!==!1&&r.push(HMe()),e.tabSize&&typeof e.tabSize=="number"&&r.push(wg.of(" ".repeat(e.tabSize))),r.concat([_f.of(i.flat())]).filter(Boolean)};const $$e="#e5c07b",m9="#e06c75",L$e="#56b6c2",D$e="#ffffff",uS="#abb2bf",gL="#7d8799",N$e="#61afef",Q$e="#98c379",g9="#d19a66",I$e="#c678dd",j$e="#21252b",b9="#2c313a",y9="#282c34",bE="#353a42",B$e="#3E4451",x9="#528bff",z$e=be.theme({"&":{color:uS,backgroundColor:y9},".cm-content":{caretColor:x9},".cm-cursor, .cm-dropCursor":{borderLeftColor:x9},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:B$e},".cm-panels":{backgroundColor:j$e,color:uS},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:y9,color:gL,border:"none"},".cm-activeLineGutter":{backgroundColor:b9},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:bE},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:bE,borderBottomColor:bE},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:b9,color:uS}}},{dark:!0}),V$e=Ci.define([{tag:O.keyword,color:I$e},{tag:[O.name,O.deleted,O.character,O.propertyName,O.macroName],color:m9},{tag:[O.function(O.variableName),O.labelName],color:N$e},{tag:[O.color,O.constant(O.name),O.standard(O.name)],color:g9},{tag:[O.definition(O.name),O.separator],color:uS},{tag:[O.typeName,O.className,O.number,O.changed,O.annotation,O.modifier,O.self,O.namespace],color:$$e},{tag:[O.operator,O.operatorKeyword,O.url,O.escape,O.regexp,O.link,O.special(O.string)],color:L$e},{tag:[O.meta,O.comment],color:gL},{tag:O.strong,fontWeight:"bold"},{tag:O.emphasis,fontStyle:"italic"},{tag:O.strikethrough,textDecoration:"line-through"},{tag:O.link,color:gL,textDecoration:"underline"},{tag:O.heading,fontWeight:"bold",color:m9},{tag:[O.atom,O.bool,O.special(O.variableName)],color:g9},{tag:[O.processingInstruction,O.string,O.inserted],color:Q$e},{tag:O.invalid,color:D$e}]),q$e=[z$e,Mr(V$e)];var X$e=be.theme({"&":{backgroundColor:"#fff"}},{dark:!1}),F$e=function(e){e===void 0&&(e={});var{indentWithTab:n=!0,editable:i=!0,readOnly:r=!1,theme:s="light",placeholder:o="",basicSetup:a=!0}=e,l=[];switch(n&&l.unshift(_f.of([uCe])),a&&(typeof a=="boolean"?l.unshift(p9()):l.unshift(p9(a))),o&&l.unshift(oSe(o)),s){case"light":l.push(X$e);break;case"dark":l.push(q$e);break;case"none":break;default:l.push(s);break}return i===!1&&l.push(be.editable.of(!1)),r&&l.push(ct.readOnly.of(!0)),[...l]},U$e=t=>({line:t.state.doc.lineAt(t.state.selection.main.from),lineCount:t.state.doc.lines,lineBreak:t.state.lineBreak,length:t.state.doc.length,readOnly:t.state.readOnly,tabSize:t.state.tabSize,selection:t.state.selection,selectionAsSingle:t.state.selection.asSingle().main,ranges:t.state.selection.ranges,selectionCode:t.state.sliceDoc(t.state.selection.main.from,t.state.selection.main.to),selections:t.state.selection.ranges.map(e=>t.state.sliceDoc(e.from,e.to)),selectedText:t.state.selection.ranges.some(e=>!e.empty)});class W$e{constructor(e,n){this.timeLeftMS=void 0,this.timeoutMS=void 0,this.isCancelled=!1,this.isTimeExhausted=!1,this.callbacks=[],this.timeLeftMS=n,this.timeoutMS=n,this.callbacks.push(e)}tick(){if(!this.isCancelled&&!this.isTimeExhausted&&(this.timeLeftMS--,this.timeLeftMS<=0)){this.isTimeExhausted=!0;var e=this.callbacks.slice();this.callbacks.length=0,e.forEach(n=>{try{n()}catch(i){console.error("TimeoutLatch callback error:",i)}})}}cancel(){this.isCancelled=!0,this.callbacks.length=0}reset(){this.timeLeftMS=this.timeoutMS,this.isCancelled=!1,this.isTimeExhausted=!1}get isDone(){return this.isCancelled||this.isTimeExhausted}}class O9{constructor(){this.interval=null,this.latches=new Set}add(e){this.latches.add(e),this.start()}remove(e){this.latches.delete(e),this.latches.size===0&&this.stop()}start(){this.interval===null&&(this.interval=setInterval(()=>{this.latches.forEach(e=>{e.tick(),e.isDone&&this.remove(e)})},1))}stop(){this.interval!==null&&(clearInterval(this.interval),this.interval=null)}}var yE=null,G$e=()=>typeof window>"u"?new O9:(yE||(yE=new O9),yE),_9=el.define(),Z$e=200,H$e=[];function Y$e(t){var{value:e,selection:n,onChange:i,onStatistics:r,onCreateEditor:s,onUpdate:o,extensions:a=H$e,autoFocus:l,theme:u="light",height:d=null,minHeight:f=null,maxHeight:m=null,width:g=null,minWidth:y=null,maxWidth:_=null,placeholder:v="",editable:w=!0,readOnly:T=!1,indentWithTab:C=!0,basicSetup:E=!0,root:R,initialState:P}=t,[$,N]=L.useState(),[B,D]=L.useState(),[V,F]=L.useState(),Z=L.useState(()=>({current:null}))[0],H=L.useState(()=>({current:null}))[0],Y=be.theme({"&":{height:d,minHeight:f,maxHeight:m,width:g,minWidth:y,maxWidth:_},"& .cm-scroller":{height:"100% !important"}}),j=be.updateListener.of(ee=>{if(ee.docChanged&&typeof i=="function"&&!ee.transactions.some(J=>J.annotation(_9))){Z.current?Z.current.reset():(Z.current=new W$e(()=>{if(H.current){var J=H.current;H.current=null,J()}Z.current=null},Z$e),G$e().add(Z.current));var I=ee.state.doc,q=I.toString();i(q,ee)}r&&r(U$e(ee))}),X=F$e({theme:u,editable:w,readOnly:T,placeholder:v,indentWithTab:C,basicSetup:E}),te=[j,Y,...X];return o&&typeof o=="function"&&te.push(be.updateListener.of(o)),te=te.concat(a),L.useLayoutEffect(()=>{if($&&!V){var ee={doc:e,selection:n,extensions:te},I=P?ct.fromJSON(P.json,ee,P.fields):ct.create(ee);if(F(I),!B){var q=new be({state:I,parent:$,root:R});D(q),s&&s(q,I)}}return()=>{B&&(F(void 0),D(void 0))}},[$,V]),L.useEffect(()=>{t.container&&N(t.container)},[t.container]),L.useEffect(()=>()=>{B&&(B.destroy(),D(void 0)),Z.current&&(Z.current.cancel(),Z.current=null)},[B]),L.useEffect(()=>{l&&B&&B.focus()},[l,B]),L.useEffect(()=>{B&&B.dispatch({effects:Ze.reconfigure.of(te)})},[u,a,d,f,m,g,y,_,v,w,T,C,E,i,o]),L.useEffect(()=>{if(e!==void 0){var ee=B?B.state.doc.toString():"";if(B&&e!==ee){var I=Z.current&&!Z.current.isDone,q=()=>{B&&e!==B.state.doc.toString()&&B.dispatch({changes:{from:0,to:B.state.doc.toString().length,insert:e||""},annotations:[_9.of(!0)]})};I?H.current=q:q()}}},[e,B]),{state:V,setState:F,view:B,setView:D,container:$,setContainer:N}}var K$e=["className","value","selection","extensions","onChange","onStatistics","onCreateEditor","onUpdate","autoFocus","theme","height","minHeight","maxHeight","width","minWidth","maxWidth","basicSetup","placeholder","indentWithTab","editable","readOnly","root","initialState"],UJ=L.forwardRef((t,e)=>{var{className:n,value:i="",selection:r,extensions:s=[],onChange:o,onStatistics:a,onCreateEditor:l,onUpdate:u,autoFocus:d,theme:f="light",height:m,minHeight:g,maxHeight:y,width:_,minWidth:v,maxWidth:w,basicSetup:T,placeholder:C,indentWithTab:E,editable:R,readOnly:P,root:$,initialState:N}=t,B=XMe(t,K$e),D=L.useRef(null),{state:V,view:F,container:Z,setContainer:H}=Y$e({root:$,value:i,autoFocus:d,theme:f,height:m,minHeight:g,maxHeight:y,width:_,minWidth:v,maxWidth:w,basicSetup:T,placeholder:C,indentWithTab:E,editable:R,readOnly:P,selection:r,onChange:o,onStatistics:a,onCreateEditor:l,onUpdate:u,extensions:s,initialState:N});L.useImperativeHandle(e,()=>({editor:D.current,state:V,view:F}),[D,Z,V,F]);var Y=L.useCallback(X=>{D.current=X,H(X)},[H]);if(typeof i!="string")throw new Error("value must be typeof string but got "+typeof i);var j=typeof f=="string"?"cm-theme-"+f:"cm-theme";return x.jsx("div",fL({ref:Y,className:""+j+(n?" "+n:"")},B))});UJ.displayName="CodeMirror";function J$e(t){if(!t)return"plain";const e=t.toLowerCase();return e.endsWith(".md")?"markdown":e.endsWith(".ts")||e.endsWith(".tsx")?"typescript":e.endsWith(".js")||e.endsWith(".jsx")?"javascript":e.endsWith(".json")?"json":e.endsWith(".yml")||e.endsWith(".yaml")?"yaml":"plain"}function eLe(t,e){switch(t){case"markdown":return[eJ({base:Jm,codeLanguages:FAe}),Kwe()];case"typescript":return[bw({typescript:!0,jsx:e?.endsWith(".tsx")})];case"javascript":return[bw({jsx:e?.endsWith(".jsx")})];case"json":return[XY()];case"yaml":return[cJ()];default:return[]}}function tLe(t,e){switch(t){case"github":return e?J8:oV;case"material":return e?sEe:xEe;case"vscode":return e?AMe:qMe;case"tokyo":return e?pMe:nMe;case"gruvbox":return e?TRe:qRe;case"monokai":return REe;case"nord":return qEe;default:return e?J8:oV}}function rm({value:t,onChange:e,readOnly:n=!1,language:i,filename:r,lineNumbers:s=!0,lineWrapping:o=!0,fontSize:a=13,className:l="",style:u,placeholder:d,editorMinHeight:f="240px"}){const m=i??J$e(r),g=kD(),{data:y}=vde(),_=y?.codeEditor?.theme??__e,v=L.useMemo(()=>{const w=[ct.readOnly.of(n),...eLe(m,r)];return w.push(tLe(_,g)),w.push(be.theme({".cm-line":{lineHeight:"21px"},"&":{borderRadius:"6px",border:"1px solid var(--code-editor-border)",height:"100%",minHeight:"var(--code-editor-min-height, 240px)"},".cm-content":{fontFamily:"var(--font-mono)"},".cm-gutters":{fontFamily:"var(--font-mono)"},".cm-scroller":{fontFamily:"var(--font-mono)",overflow:"auto",scrollbarWidth:"thin"},".cm-md-codeblock":{padding:"0",borderRadius:0}})),w.push(_f.of([{key:"Mod-a",run:uY}])),o&&w.push(be.lineWrapping),w},[m,r,n,o,_,g]);return x.jsx(UJ,{value:t,onChange:e,placeholder:d,theme:"none",basicSetup:{lineNumbers:s,foldGutter:!n,highlightActiveLine:!n,highlightActiveLineGutter:!n,autocompletion:!n,closeBrackets:!n,bracketMatching:!n},extensions:v,className:`scrollbar-thin scrollbar-track-transparent overflow-auto ${l}`,style:{fontSize:a,"--code-editor-min-height":f,...u}})}function nLe(t){if(!t)return null;if(t.type==="point")return{x:t.x,y:t.y};const e=t.element;if(!e)return null;const n=e.getBoundingClientRect();switch(t.placement??"bottom-start"){case"bottom-end":return{x:n.right,y:n.bottom};case"top-start":return{x:n.left,y:n.top};case"top-end":return{x:n.right,y:n.top};default:return{x:n.left,y:n.bottom}}}function iLe(t,e,n){const r=n?.left??0,s=n?.top??0,o=n?.right??window.innerWidth,a=n?.bottom??window.innerHeight,l=r+12,u=s+12,d=Math.max(l,o-e.width-12),f=Math.max(u,a-e.height-12);return{x:Math.max(l,Math.min(t.x,d)),y:Math.max(u,Math.min(t.y,f))}}function rLe(t,e){if(!e)return{position:"fixed",left:t.x,top:t.y};const n=e.getBoundingClientRect();return{position:"absolute",left:t.x-n.left+e.scrollLeft,top:t.y-n.top+e.scrollTop}}function sLe(t){return t?.type==="target"?t.placement??"bottom-start":"bottom-start"}function w0({open:t,items:e,anchor:n,wrapperElement:i,boundaryElement:r,position:s,onClose:o}){const a=L.useRef(null),l=L.useMemo(()=>s?{type:"point",x:s.x,y:s.y}:null,[s]),u=n??l,d=i??r??null,f=L.useMemo(()=>nLe(u),[u]),[m,g]=L.useState(null),y=L.useId().replace(/[^a-zA-Z0-9_-]/g,""),_=`--context-menu-anchor-${y}`,v=`context-menu-${y}`,w=sLe(u),T=L.useMemo(()=>e.filter(B=>B.label.length>0),[e]),C=t&&!!f&&T.length>0;L.useLayoutEffect(()=>{if(!t||!f){g(null);return}const B=a.current;if(!B){g(f);return}const D=d?.getBoundingClientRect()??null,V=iLe(f,B.getBoundingClientRect(),D);g(V)},[f,d,t]),L.useEffect(()=>{const B=()=>o();return window.addEventListener("scroll",B,!0),window.addEventListener("resize",B),()=>{window.removeEventListener("scroll",B,!0),window.removeEventListener("resize",B)}},[t,o]),L.useEffect(()=>{if(!C)return;const B=V=>{if(V.button===2)return;const F=V.target;!(F instanceof Node)||a.current?.contains(F)||u?.type==="target"&&u.element?.contains(F)||o()},D=V=>{V.key==="Escape"&&o()};return window.addEventListener("pointerdown",B,!0),window.addEventListener("keydown",D),()=>{window.removeEventListener("pointerdown",B,!0),window.removeEventListener("keydown",D)}},[u,o,C]),L.useEffect(()=>{if(!t||u?.type!=="target"||!u.element)return;const B=u.element,D=B.style.getPropertyValue("anchor-name"),V=B.style.getPropertyPriority("anchor-name");return B.style.setProperty("anchor-name",_),()=>{D?B.style.setProperty("anchor-name",D,V):B.style.removeProperty("anchor-name")}},[u,_,t]);const E=m??f,R=E===null?{left:0,top:0}:{left:E.x,top:E.y},P=u?.type==="point"&&f?rLe(f,d):null;if(L.useEffect(()=>{const B=a.current;B&&(C?B.matches(":popover-open")||B.showPopover?.():B.matches(":popover-open")&&B.hidePopover?.())},[C]),!C)return null;const $=String.raw,N=w==="top-start"?"bottom: anchor(top); left: anchor(left); top: auto; right: auto;":w==="top-end"?"bottom: anchor(top); left: anchor(right); top: auto; right: auto;":w==="bottom-end"?"top: anchor(bottom); left: anchor(right); bottom: auto; right: auto;":"top: anchor(bottom); left: anchor(left); bottom: auto; right: auto;";return x.jsxs(x.Fragment,{children:[x.jsx("style",{children:$`
|
|
381
381
|
.context-menu-anchor[data-context-menu-id='${v}'] {
|
|
382
382
|
width: 1px;
|
|
@@ -972,7 +972,7 @@ WARNING: This link could potentially be dangerous`)){let n=window.open();if(n){t
|
|
|
972
972
|
@pointerdown=${i=>this._onResizeStart(i,"br")}
|
|
973
973
|
></div>
|
|
974
974
|
${n}
|
|
975
|
-
</dialog>`:n}}customElements.define("input-panel",lQe);var rt=(t=>(t.Application="application",t.WebGLPipes="webgl-pipes",t.WebGLPipesAdaptor="webgl-pipes-adaptor",t.WebGLSystem="webgl-system",t.WebGPUPipes="webgpu-pipes",t.WebGPUPipesAdaptor="webgpu-pipes-adaptor",t.WebGPUSystem="webgpu-system",t.CanvasSystem="canvas-system",t.CanvasPipesAdaptor="canvas-pipes-adaptor",t.CanvasPipes="canvas-pipes",t.Asset="asset",t.LoadParser="load-parser",t.ResolveParser="resolve-parser",t.CacheParser="cache-parser",t.DetectionParser="detection-parser",t.MaskEffect="mask-effect",t.BlendMode="blend-mode",t.TextureSource="texture-source",t.Environment="environment",t.ShapeBuilder="shape-builder",t.Batcher="batcher",t))(rt||{});const IL=t=>{if(typeof t=="function"||typeof t=="object"&&t.extension){if(!t.extension)throw new Error("Extension class must have an extension object");t={...typeof t.extension!="object"?{type:t.extension}:t.extension,ref:t}}if(typeof t=="object")t={...t};else throw new Error("Invalid extension type");return typeof t.type=="string"&&(t.type=[t.type]),t},p1=(t,e)=>IL(t).priority??e,In={_addHandlers:{},_removeHandlers:{},_queue:{},remove(...t){return t.map(IL).forEach(e=>{e.type.forEach(n=>this._removeHandlers[n]?.(e))}),this},add(...t){return t.map(IL).forEach(e=>{e.type.forEach(n=>{const i=this._addHandlers,r=this._queue;i[n]?i[n]?.(e):(r[n]=r[n]||[],r[n]?.push(e))})}),this},handle(t,e,n){const i=this._addHandlers,r=this._removeHandlers;if(i[t]||r[t])throw new Error(`Extension type ${t} already has a handler`);i[t]=e,r[t]=n;const s=this._queue;return s[t]&&(s[t]?.forEach(o=>e(o)),delete s[t]),this},handleByMap(t,e){return this.handle(t,n=>{n.name&&(e[n.name]=n.ref)},n=>{n.name&&delete e[n.name]})},handleByNamedList(t,e,n=-1){return this.handle(t,i=>{e.findIndex(s=>s.name===i.name)>=0||(e.push({name:i.name,value:i.ref}),e.sort((s,o)=>p1(o.value,n)-p1(s.value,n)))},i=>{const r=e.findIndex(s=>s.name===i.name);r!==-1&&e.splice(r,1)})},handleByList(t,e,n=-1){return this.handle(t,i=>{e.includes(i.ref)||(e.push(i.ref),e.sort((r,s)=>p1(s,n)-p1(r,n)))},i=>{const r=e.indexOf(i.ref);r!==-1&&e.splice(r,1)})},mixin(t,...e){for(const n of e)Object.defineProperties(t.prototype,Object.getOwnPropertyDescriptors(n))}},cQe={extension:{type:rt.Environment,name:"browser",priority:-1},test:()=>!0,load:async()=>{await M(()=>import("./browserAll-DIrSCRrR.js"),__vite__mapDeps([103,104,105]))}},uQe={extension:{type:rt.Environment,name:"webworker",priority:0},test:()=>typeof self<"u"&&self.WorkerGlobalScope!==void 0,load:async()=>{await M(()=>import("./webworkerAll-CysFfo0u.js"),__vite__mapDeps([104,105]))}};class Li{constructor(e,n,i){this._x=n||0,this._y=i||0,this._observer=e}clone(e){return new Li(e??this._observer,this._x,this._y)}set(e=0,n=e){return(this._x!==e||this._y!==n)&&(this._x=e,this._y=n,this._observer._onUpdate(this)),this}copyFrom(e){return(this._x!==e.x||this._y!==e.y)&&(this._x=e.x,this._y=e.y,this._observer._onUpdate(this)),this}copyTo(e){return e.set(this._x,this._y),e}equals(e){return e.x===this._x&&e.y===this._y}toString(){return`[pixi.js/math:ObservablePoint x=${this._x} y=${this._y} scope=${this._observer}]`}get x(){return this._x}set x(e){this._x!==e&&(this._x=e,this._observer._onUpdate(this))}get y(){return this._y}set y(e){this._y!==e&&(this._y=e,this._observer._onUpdate(this))}}var ME={exports:{}},Y7;function hQe(){return Y7||(Y7=1,(function(t){var e=Object.prototype.hasOwnProperty,n="~";function i(){}Object.create&&(i.prototype=Object.create(null),new i().__proto__||(n=!1));function r(l,u,d){this.fn=l,this.context=u,this.once=d||!1}function s(l,u,d,f,m){if(typeof d!="function")throw new TypeError("The listener must be a function");var g=new r(d,f||l,m),y=n?n+u:u;return l._events[y]?l._events[y].fn?l._events[y]=[l._events[y],g]:l._events[y].push(g):(l._events[y]=g,l._eventsCount++),l}function o(l,u){--l._eventsCount===0?l._events=new i:delete l._events[u]}function a(){this._events=new i,this._eventsCount=0}a.prototype.eventNames=function(){var u=[],d,f;if(this._eventsCount===0)return u;for(f in d=this._events)e.call(d,f)&&u.push(n?f.slice(1):f);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(d)):u},a.prototype.listeners=function(u){var d=n?n+u:u,f=this._events[d];if(!f)return[];if(f.fn)return[f.fn];for(var m=0,g=f.length,y=new Array(g);m<g;m++)y[m]=f[m].fn;return y},a.prototype.listenerCount=function(u){var d=n?n+u:u,f=this._events[d];return f?f.fn?1:f.length:0},a.prototype.emit=function(u,d,f,m,g,y){var _=n?n+u:u;if(!this._events[_])return!1;var v=this._events[_],w=arguments.length,T,C;if(v.fn){switch(v.once&&this.removeListener(u,v.fn,void 0,!0),w){case 1:return v.fn.call(v.context),!0;case 2:return v.fn.call(v.context,d),!0;case 3:return v.fn.call(v.context,d,f),!0;case 4:return v.fn.call(v.context,d,f,m),!0;case 5:return v.fn.call(v.context,d,f,m,g),!0;case 6:return v.fn.call(v.context,d,f,m,g,y),!0}for(C=1,T=new Array(w-1);C<w;C++)T[C-1]=arguments[C];v.fn.apply(v.context,T)}else{var E=v.length,R;for(C=0;C<E;C++)switch(v[C].once&&this.removeListener(u,v[C].fn,void 0,!0),w){case 1:v[C].fn.call(v[C].context);break;case 2:v[C].fn.call(v[C].context,d);break;case 3:v[C].fn.call(v[C].context,d,f);break;case 4:v[C].fn.call(v[C].context,d,f,m);break;default:if(!T)for(R=1,T=new Array(w-1);R<w;R++)T[R-1]=arguments[R];v[C].fn.apply(v[C].context,T)}}return!0},a.prototype.on=function(u,d,f){return s(this,u,d,f,!1)},a.prototype.once=function(u,d,f){return s(this,u,d,f,!0)},a.prototype.removeListener=function(u,d,f,m){var g=n?n+u:u;if(!this._events[g])return this;if(!d)return o(this,g),this;var y=this._events[g];if(y.fn)y.fn===d&&(!m||y.once)&&(!f||y.context===f)&&o(this,g);else{for(var _=0,v=[],w=y.length;_<w;_++)(y[_].fn!==d||m&&!y[_].once||f&&y[_].context!==f)&&v.push(y[_]);v.length?this._events[g]=v.length===1?v[0]:v:o(this,g)}return this},a.prototype.removeAllListeners=function(u){var d;return u?(d=n?n+u:u,this._events[d]&&o(this,d)):(this._events=new i,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=n,a.EventEmitter=a,t.exports=a})(ME)),ME.exports}var dQe=hQe();const nl=jx(dQe),fQe=Math.PI*2,pQe=180/Math.PI,mQe=Math.PI/180;class sr{constructor(e=0,n=0){this.x=0,this.y=0,this.x=e,this.y=n}clone(){return new sr(this.x,this.y)}copyFrom(e){return this.set(e.x,e.y),this}copyTo(e){return e.set(this.x,this.y),e}equals(e){return e.x===this.x&&e.y===this.y}set(e=0,n=e){return this.x=e,this.y=n,this}toString(){return`[pixi.js/math:Point x=${this.x} y=${this.y}]`}static get shared(){return $E.x=0,$E.y=0,$E}}const $E=new sr;class pt{constructor(e=1,n=0,i=0,r=1,s=0,o=0){this.array=null,this.a=e,this.b=n,this.c=i,this.d=r,this.tx=s,this.ty=o}fromArray(e){this.a=e[0],this.b=e[1],this.c=e[3],this.d=e[4],this.tx=e[2],this.ty=e[5]}set(e,n,i,r,s,o){return this.a=e,this.b=n,this.c=i,this.d=r,this.tx=s,this.ty=o,this}toArray(e,n){this.array||(this.array=new Float32Array(9));const i=n||this.array;return e?(i[0]=this.a,i[1]=this.b,i[2]=0,i[3]=this.c,i[4]=this.d,i[5]=0,i[6]=this.tx,i[7]=this.ty,i[8]=1):(i[0]=this.a,i[1]=this.c,i[2]=this.tx,i[3]=this.b,i[4]=this.d,i[5]=this.ty,i[6]=0,i[7]=0,i[8]=1),i}apply(e,n){n=n||new sr;const i=e.x,r=e.y;return n.x=this.a*i+this.c*r+this.tx,n.y=this.b*i+this.d*r+this.ty,n}applyInverse(e,n){n=n||new sr;const i=this.a,r=this.b,s=this.c,o=this.d,a=this.tx,l=this.ty,u=1/(i*o+s*-r),d=e.x,f=e.y;return n.x=o*u*d+-s*u*f+(l*s-a*o)*u,n.y=i*u*f+-r*u*d+(-l*i+a*r)*u,n}translate(e,n){return this.tx+=e,this.ty+=n,this}scale(e,n){return this.a*=e,this.d*=n,this.c*=e,this.b*=n,this.tx*=e,this.ty*=n,this}rotate(e){const n=Math.cos(e),i=Math.sin(e),r=this.a,s=this.c,o=this.tx;return this.a=r*n-this.b*i,this.b=r*i+this.b*n,this.c=s*n-this.d*i,this.d=s*i+this.d*n,this.tx=o*n-this.ty*i,this.ty=o*i+this.ty*n,this}append(e){const n=this.a,i=this.b,r=this.c,s=this.d;return this.a=e.a*n+e.b*r,this.b=e.a*i+e.b*s,this.c=e.c*n+e.d*r,this.d=e.c*i+e.d*s,this.tx=e.tx*n+e.ty*r+this.tx,this.ty=e.tx*i+e.ty*s+this.ty,this}appendFrom(e,n){const i=e.a,r=e.b,s=e.c,o=e.d,a=e.tx,l=e.ty,u=n.a,d=n.b,f=n.c,m=n.d;return this.a=i*u+r*f,this.b=i*d+r*m,this.c=s*u+o*f,this.d=s*d+o*m,this.tx=a*u+l*f+n.tx,this.ty=a*d+l*m+n.ty,this}setTransform(e,n,i,r,s,o,a,l,u){return this.a=Math.cos(a+u)*s,this.b=Math.sin(a+u)*s,this.c=-Math.sin(a-l)*o,this.d=Math.cos(a-l)*o,this.tx=e-(i*this.a+r*this.c),this.ty=n-(i*this.b+r*this.d),this}prepend(e){const n=this.tx;if(e.a!==1||e.b!==0||e.c!==0||e.d!==1){const i=this.a,r=this.c;this.a=i*e.a+this.b*e.c,this.b=i*e.b+this.b*e.d,this.c=r*e.a+this.d*e.c,this.d=r*e.b+this.d*e.d}return this.tx=n*e.a+this.ty*e.c+e.tx,this.ty=n*e.b+this.ty*e.d+e.ty,this}decompose(e){const n=this.a,i=this.b,r=this.c,s=this.d,o=e.pivot,a=-Math.atan2(-r,s),l=Math.atan2(i,n),u=Math.abs(a+l);return u<1e-5||Math.abs(fQe-u)<1e-5?(e.rotation=l,e.skew.x=e.skew.y=0):(e.rotation=0,e.skew.x=a,e.skew.y=l),e.scale.x=Math.sqrt(n*n+i*i),e.scale.y=Math.sqrt(r*r+s*s),e.position.x=this.tx+(o.x*n+o.y*r),e.position.y=this.ty+(o.x*i+o.y*s),e}invert(){const e=this.a,n=this.b,i=this.c,r=this.d,s=this.tx,o=e*r-n*i;return this.a=r/o,this.b=-n/o,this.c=-i/o,this.d=e/o,this.tx=(i*this.ty-r*s)/o,this.ty=-(e*this.ty-n*s)/o,this}isIdentity(){return this.a===1&&this.b===0&&this.c===0&&this.d===1&&this.tx===0&&this.ty===0}identity(){return this.a=1,this.b=0,this.c=0,this.d=1,this.tx=0,this.ty=0,this}clone(){const e=new pt;return e.a=this.a,e.b=this.b,e.c=this.c,e.d=this.d,e.tx=this.tx,e.ty=this.ty,e}copyTo(e){return e.a=this.a,e.b=this.b,e.c=this.c,e.d=this.d,e.tx=this.tx,e.ty=this.ty,e}copyFrom(e){return this.a=e.a,this.b=e.b,this.c=e.c,this.d=e.d,this.tx=e.tx,this.ty=e.ty,this}equals(e){return e.a===this.a&&e.b===this.b&&e.c===this.c&&e.d===this.d&&e.tx===this.tx&&e.ty===this.ty}toString(){return`[pixi.js:Matrix a=${this.a} b=${this.b} c=${this.c} d=${this.d} tx=${this.tx} ty=${this.ty}]`}static get IDENTITY(){return bQe.identity()}static get shared(){return gQe.identity()}}const gQe=new pt,bQe=new pt,cd=[1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1],ud=[0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1],hd=[0,-1,-1,-1,0,1,1,1,0,1,1,1,0,-1,-1,-1],dd=[1,1,0,-1,-1,-1,0,1,-1,-1,0,1,1,1,0,-1],jL=[],Iee=[],m1=Math.sign;function yQe(){for(let t=0;t<16;t++){const e=[];jL.push(e);for(let n=0;n<16;n++){const i=m1(cd[t]*cd[n]+hd[t]*ud[n]),r=m1(ud[t]*cd[n]+dd[t]*ud[n]),s=m1(cd[t]*hd[n]+hd[t]*dd[n]),o=m1(ud[t]*hd[n]+dd[t]*dd[n]);for(let a=0;a<16;a++)if(cd[a]===i&&ud[a]===r&&hd[a]===s&&dd[a]===o){e.push(a);break}}}for(let t=0;t<16;t++){const e=new pt;e.set(cd[t],ud[t],hd[t],dd[t],0,0),Iee.push(e)}}yQe();const Ut={E:0,SE:1,S:2,SW:3,W:4,NW:5,N:6,NE:7,MIRROR_VERTICAL:8,MAIN_DIAGONAL:10,MIRROR_HORIZONTAL:12,REVERSE_DIAGONAL:14,uX:t=>cd[t],uY:t=>ud[t],vX:t=>hd[t],vY:t=>dd[t],inv:t=>t&8?t&15:-t&7,add:(t,e)=>jL[t][e],sub:(t,e)=>jL[t][Ut.inv(e)],rotate180:t=>t^4,isVertical:t=>(t&3)===2,byDirection:(t,e)=>Math.abs(t)*2<=Math.abs(e)?e>=0?Ut.S:Ut.N:Math.abs(e)*2<=Math.abs(t)?t>0?Ut.E:Ut.W:e>0?t>0?Ut.SE:Ut.SW:t>0?Ut.NE:Ut.NW,matrixAppendRotationInv:(t,e,n=0,i=0,r=0,s=0)=>{const o=Iee[Ut.inv(e)],a=o.a,l=o.b,u=o.c,d=o.d,f=n-Math.min(0,a*r,u*s,a*r+u*s),m=i-Math.min(0,l*r,d*s,l*r+d*s),g=t.a,y=t.b,_=t.c,v=t.d;t.a=a*g+l*_,t.b=a*y+l*v,t.c=u*g+d*_,t.d=u*y+d*v,t.tx=f*g+m*_+t.tx,t.ty=f*y+m*v+t.ty},transformRectCoords:(t,e,n,i)=>{const{x:r,y:s,width:o,height:a}=t,{x:l,y:u,width:d,height:f}=e;return n===Ut.E?(i.set(r+l,s+u,o,a),i):n===Ut.S?i.set(d-s-a+l,r+u,a,o):n===Ut.W?i.set(d-r-o+l,f-s-a+u,o,a):n===Ut.N?i.set(s+l,f-r-o+u,a,o):i.set(r+l,s+u,o,a)}},g1=[new sr,new sr,new sr,new sr];class Ln{constructor(e=0,n=0,i=0,r=0){this.type="rectangle",this.x=Number(e),this.y=Number(n),this.width=Number(i),this.height=Number(r)}get left(){return this.x}get right(){return this.x+this.width}get top(){return this.y}get bottom(){return this.y+this.height}isEmpty(){return this.left===this.right||this.top===this.bottom}static get EMPTY(){return new Ln(0,0,0,0)}clone(){return new Ln(this.x,this.y,this.width,this.height)}copyFromBounds(e){return this.x=e.minX,this.y=e.minY,this.width=e.maxX-e.minX,this.height=e.maxY-e.minY,this}copyFrom(e){return this.x=e.x,this.y=e.y,this.width=e.width,this.height=e.height,this}copyTo(e){return e.copyFrom(this),e}contains(e,n){return this.width<=0||this.height<=0?!1:e>=this.x&&e<this.x+this.width&&n>=this.y&&n<this.y+this.height}strokeContains(e,n,i,r=.5){const{width:s,height:o}=this;if(s<=0||o<=0)return!1;const a=this.x,l=this.y,u=i*(1-r),d=i-u,f=a-u,m=a+s+u,g=l-u,y=l+o+u,_=a+d,v=a+s-d,w=l+d,T=l+o-d;return e>=f&&e<=m&&n>=g&&n<=y&&!(e>_&&e<v&&n>w&&n<T)}intersects(e,n){if(!n){const N=this.x<e.x?e.x:this.x;if((this.right>e.right?e.right:this.right)<=N)return!1;const D=this.y<e.y?e.y:this.y;return(this.bottom>e.bottom?e.bottom:this.bottom)>D}const i=this.left,r=this.right,s=this.top,o=this.bottom;if(r<=i||o<=s)return!1;const a=g1[0].set(e.left,e.top),l=g1[1].set(e.left,e.bottom),u=g1[2].set(e.right,e.top),d=g1[3].set(e.right,e.bottom);if(u.x<=a.x||l.y<=a.y)return!1;const f=Math.sign(n.a*n.d-n.b*n.c);if(f===0||(n.apply(a,a),n.apply(l,l),n.apply(u,u),n.apply(d,d),Math.max(a.x,l.x,u.x,d.x)<=i||Math.min(a.x,l.x,u.x,d.x)>=r||Math.max(a.y,l.y,u.y,d.y)<=s||Math.min(a.y,l.y,u.y,d.y)>=o))return!1;const m=f*(l.y-a.y),g=f*(a.x-l.x),y=m*i+g*s,_=m*r+g*s,v=m*i+g*o,w=m*r+g*o;if(Math.max(y,_,v,w)<=m*a.x+g*a.y||Math.min(y,_,v,w)>=m*d.x+g*d.y)return!1;const T=f*(a.y-u.y),C=f*(u.x-a.x),E=T*i+C*s,R=T*r+C*s,P=T*i+C*o,$=T*r+C*o;return!(Math.max(E,R,P,$)<=T*a.x+C*a.y||Math.min(E,R,P,$)>=T*d.x+C*d.y)}pad(e=0,n=e){return this.x-=e,this.y-=n,this.width+=e*2,this.height+=n*2,this}fit(e){const n=Math.max(this.x,e.x),i=Math.min(this.x+this.width,e.x+e.width),r=Math.max(this.y,e.y),s=Math.min(this.y+this.height,e.y+e.height);return this.x=n,this.width=Math.max(i-n,0),this.y=r,this.height=Math.max(s-r,0),this}ceil(e=1,n=.001){const i=Math.ceil((this.x+this.width-n)*e)/e,r=Math.ceil((this.y+this.height-n)*e)/e;return this.x=Math.floor((this.x+n)*e)/e,this.y=Math.floor((this.y+n)*e)/e,this.width=i-this.x,this.height=r-this.y,this}scale(e,n=e){return this.x*=e,this.y*=n,this.width*=e,this.height*=n,this}enlarge(e){const n=Math.min(this.x,e.x),i=Math.max(this.x+this.width,e.x+e.width),r=Math.min(this.y,e.y),s=Math.max(this.y+this.height,e.y+e.height);return this.x=n,this.width=i-n,this.y=r,this.height=s-r,this}getBounds(e){return e||(e=new Ln),e.copyFrom(this),e}containsRect(e){if(this.width<=0||this.height<=0)return!1;const n=e.x,i=e.y,r=e.x+e.width,s=e.y+e.height;return n>=this.x&&n<this.x+this.width&&i>=this.y&&i<this.y+this.height&&r>=this.x&&r<this.x+this.width&&s>=this.y&&s<this.y+this.height}set(e,n,i,r){return this.x=e,this.y=n,this.width=i,this.height=r,this}toString(){return`[pixi.js/math:Rectangle x=${this.x} y=${this.y} width=${this.width} height=${this.height}]`}}const LE={default:-1};function kn(t="default"){return LE[t]===void 0&&(LE[t]=-1),++LE[t]}const K7=new Set,wn="8.0.0",xQe="8.3.4",gm={quiet:!1,noColor:!1},wt=((t,e,n=3)=>{if(gm.quiet||K7.has(e))return;let i=new Error().stack;const r=`${e}
|
|
975
|
+
</dialog>`:n}}customElements.define("input-panel",lQe);var rt=(t=>(t.Application="application",t.WebGLPipes="webgl-pipes",t.WebGLPipesAdaptor="webgl-pipes-adaptor",t.WebGLSystem="webgl-system",t.WebGPUPipes="webgpu-pipes",t.WebGPUPipesAdaptor="webgpu-pipes-adaptor",t.WebGPUSystem="webgpu-system",t.CanvasSystem="canvas-system",t.CanvasPipesAdaptor="canvas-pipes-adaptor",t.CanvasPipes="canvas-pipes",t.Asset="asset",t.LoadParser="load-parser",t.ResolveParser="resolve-parser",t.CacheParser="cache-parser",t.DetectionParser="detection-parser",t.MaskEffect="mask-effect",t.BlendMode="blend-mode",t.TextureSource="texture-source",t.Environment="environment",t.ShapeBuilder="shape-builder",t.Batcher="batcher",t))(rt||{});const IL=t=>{if(typeof t=="function"||typeof t=="object"&&t.extension){if(!t.extension)throw new Error("Extension class must have an extension object");t={...typeof t.extension!="object"?{type:t.extension}:t.extension,ref:t}}if(typeof t=="object")t={...t};else throw new Error("Invalid extension type");return typeof t.type=="string"&&(t.type=[t.type]),t},p1=(t,e)=>IL(t).priority??e,In={_addHandlers:{},_removeHandlers:{},_queue:{},remove(...t){return t.map(IL).forEach(e=>{e.type.forEach(n=>this._removeHandlers[n]?.(e))}),this},add(...t){return t.map(IL).forEach(e=>{e.type.forEach(n=>{const i=this._addHandlers,r=this._queue;i[n]?i[n]?.(e):(r[n]=r[n]||[],r[n]?.push(e))})}),this},handle(t,e,n){const i=this._addHandlers,r=this._removeHandlers;if(i[t]||r[t])throw new Error(`Extension type ${t} already has a handler`);i[t]=e,r[t]=n;const s=this._queue;return s[t]&&(s[t]?.forEach(o=>e(o)),delete s[t]),this},handleByMap(t,e){return this.handle(t,n=>{n.name&&(e[n.name]=n.ref)},n=>{n.name&&delete e[n.name]})},handleByNamedList(t,e,n=-1){return this.handle(t,i=>{e.findIndex(s=>s.name===i.name)>=0||(e.push({name:i.name,value:i.ref}),e.sort((s,o)=>p1(o.value,n)-p1(s.value,n)))},i=>{const r=e.findIndex(s=>s.name===i.name);r!==-1&&e.splice(r,1)})},handleByList(t,e,n=-1){return this.handle(t,i=>{e.includes(i.ref)||(e.push(i.ref),e.sort((r,s)=>p1(s,n)-p1(r,n)))},i=>{const r=e.indexOf(i.ref);r!==-1&&e.splice(r,1)})},mixin(t,...e){for(const n of e)Object.defineProperties(t.prototype,Object.getOwnPropertyDescriptors(n))}},cQe={extension:{type:rt.Environment,name:"browser",priority:-1},test:()=>!0,load:async()=>{await M(()=>import("./browserAll-B2a7F8Ye.js"),__vite__mapDeps([103,104,105]))}},uQe={extension:{type:rt.Environment,name:"webworker",priority:0},test:()=>typeof self<"u"&&self.WorkerGlobalScope!==void 0,load:async()=>{await M(()=>import("./webworkerAll-D76uzO4q.js"),__vite__mapDeps([104,105]))}};class Li{constructor(e,n,i){this._x=n||0,this._y=i||0,this._observer=e}clone(e){return new Li(e??this._observer,this._x,this._y)}set(e=0,n=e){return(this._x!==e||this._y!==n)&&(this._x=e,this._y=n,this._observer._onUpdate(this)),this}copyFrom(e){return(this._x!==e.x||this._y!==e.y)&&(this._x=e.x,this._y=e.y,this._observer._onUpdate(this)),this}copyTo(e){return e.set(this._x,this._y),e}equals(e){return e.x===this._x&&e.y===this._y}toString(){return`[pixi.js/math:ObservablePoint x=${this._x} y=${this._y} scope=${this._observer}]`}get x(){return this._x}set x(e){this._x!==e&&(this._x=e,this._observer._onUpdate(this))}get y(){return this._y}set y(e){this._y!==e&&(this._y=e,this._observer._onUpdate(this))}}var ME={exports:{}},Y7;function hQe(){return Y7||(Y7=1,(function(t){var e=Object.prototype.hasOwnProperty,n="~";function i(){}Object.create&&(i.prototype=Object.create(null),new i().__proto__||(n=!1));function r(l,u,d){this.fn=l,this.context=u,this.once=d||!1}function s(l,u,d,f,m){if(typeof d!="function")throw new TypeError("The listener must be a function");var g=new r(d,f||l,m),y=n?n+u:u;return l._events[y]?l._events[y].fn?l._events[y]=[l._events[y],g]:l._events[y].push(g):(l._events[y]=g,l._eventsCount++),l}function o(l,u){--l._eventsCount===0?l._events=new i:delete l._events[u]}function a(){this._events=new i,this._eventsCount=0}a.prototype.eventNames=function(){var u=[],d,f;if(this._eventsCount===0)return u;for(f in d=this._events)e.call(d,f)&&u.push(n?f.slice(1):f);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(d)):u},a.prototype.listeners=function(u){var d=n?n+u:u,f=this._events[d];if(!f)return[];if(f.fn)return[f.fn];for(var m=0,g=f.length,y=new Array(g);m<g;m++)y[m]=f[m].fn;return y},a.prototype.listenerCount=function(u){var d=n?n+u:u,f=this._events[d];return f?f.fn?1:f.length:0},a.prototype.emit=function(u,d,f,m,g,y){var _=n?n+u:u;if(!this._events[_])return!1;var v=this._events[_],w=arguments.length,T,C;if(v.fn){switch(v.once&&this.removeListener(u,v.fn,void 0,!0),w){case 1:return v.fn.call(v.context),!0;case 2:return v.fn.call(v.context,d),!0;case 3:return v.fn.call(v.context,d,f),!0;case 4:return v.fn.call(v.context,d,f,m),!0;case 5:return v.fn.call(v.context,d,f,m,g),!0;case 6:return v.fn.call(v.context,d,f,m,g,y),!0}for(C=1,T=new Array(w-1);C<w;C++)T[C-1]=arguments[C];v.fn.apply(v.context,T)}else{var E=v.length,R;for(C=0;C<E;C++)switch(v[C].once&&this.removeListener(u,v[C].fn,void 0,!0),w){case 1:v[C].fn.call(v[C].context);break;case 2:v[C].fn.call(v[C].context,d);break;case 3:v[C].fn.call(v[C].context,d,f);break;case 4:v[C].fn.call(v[C].context,d,f,m);break;default:if(!T)for(R=1,T=new Array(w-1);R<w;R++)T[R-1]=arguments[R];v[C].fn.apply(v[C].context,T)}}return!0},a.prototype.on=function(u,d,f){return s(this,u,d,f,!1)},a.prototype.once=function(u,d,f){return s(this,u,d,f,!0)},a.prototype.removeListener=function(u,d,f,m){var g=n?n+u:u;if(!this._events[g])return this;if(!d)return o(this,g),this;var y=this._events[g];if(y.fn)y.fn===d&&(!m||y.once)&&(!f||y.context===f)&&o(this,g);else{for(var _=0,v=[],w=y.length;_<w;_++)(y[_].fn!==d||m&&!y[_].once||f&&y[_].context!==f)&&v.push(y[_]);v.length?this._events[g]=v.length===1?v[0]:v:o(this,g)}return this},a.prototype.removeAllListeners=function(u){var d;return u?(d=n?n+u:u,this._events[d]&&o(this,d)):(this._events=new i,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=n,a.EventEmitter=a,t.exports=a})(ME)),ME.exports}var dQe=hQe();const nl=jx(dQe),fQe=Math.PI*2,pQe=180/Math.PI,mQe=Math.PI/180;class sr{constructor(e=0,n=0){this.x=0,this.y=0,this.x=e,this.y=n}clone(){return new sr(this.x,this.y)}copyFrom(e){return this.set(e.x,e.y),this}copyTo(e){return e.set(this.x,this.y),e}equals(e){return e.x===this.x&&e.y===this.y}set(e=0,n=e){return this.x=e,this.y=n,this}toString(){return`[pixi.js/math:Point x=${this.x} y=${this.y}]`}static get shared(){return $E.x=0,$E.y=0,$E}}const $E=new sr;class pt{constructor(e=1,n=0,i=0,r=1,s=0,o=0){this.array=null,this.a=e,this.b=n,this.c=i,this.d=r,this.tx=s,this.ty=o}fromArray(e){this.a=e[0],this.b=e[1],this.c=e[3],this.d=e[4],this.tx=e[2],this.ty=e[5]}set(e,n,i,r,s,o){return this.a=e,this.b=n,this.c=i,this.d=r,this.tx=s,this.ty=o,this}toArray(e,n){this.array||(this.array=new Float32Array(9));const i=n||this.array;return e?(i[0]=this.a,i[1]=this.b,i[2]=0,i[3]=this.c,i[4]=this.d,i[5]=0,i[6]=this.tx,i[7]=this.ty,i[8]=1):(i[0]=this.a,i[1]=this.c,i[2]=this.tx,i[3]=this.b,i[4]=this.d,i[5]=this.ty,i[6]=0,i[7]=0,i[8]=1),i}apply(e,n){n=n||new sr;const i=e.x,r=e.y;return n.x=this.a*i+this.c*r+this.tx,n.y=this.b*i+this.d*r+this.ty,n}applyInverse(e,n){n=n||new sr;const i=this.a,r=this.b,s=this.c,o=this.d,a=this.tx,l=this.ty,u=1/(i*o+s*-r),d=e.x,f=e.y;return n.x=o*u*d+-s*u*f+(l*s-a*o)*u,n.y=i*u*f+-r*u*d+(-l*i+a*r)*u,n}translate(e,n){return this.tx+=e,this.ty+=n,this}scale(e,n){return this.a*=e,this.d*=n,this.c*=e,this.b*=n,this.tx*=e,this.ty*=n,this}rotate(e){const n=Math.cos(e),i=Math.sin(e),r=this.a,s=this.c,o=this.tx;return this.a=r*n-this.b*i,this.b=r*i+this.b*n,this.c=s*n-this.d*i,this.d=s*i+this.d*n,this.tx=o*n-this.ty*i,this.ty=o*i+this.ty*n,this}append(e){const n=this.a,i=this.b,r=this.c,s=this.d;return this.a=e.a*n+e.b*r,this.b=e.a*i+e.b*s,this.c=e.c*n+e.d*r,this.d=e.c*i+e.d*s,this.tx=e.tx*n+e.ty*r+this.tx,this.ty=e.tx*i+e.ty*s+this.ty,this}appendFrom(e,n){const i=e.a,r=e.b,s=e.c,o=e.d,a=e.tx,l=e.ty,u=n.a,d=n.b,f=n.c,m=n.d;return this.a=i*u+r*f,this.b=i*d+r*m,this.c=s*u+o*f,this.d=s*d+o*m,this.tx=a*u+l*f+n.tx,this.ty=a*d+l*m+n.ty,this}setTransform(e,n,i,r,s,o,a,l,u){return this.a=Math.cos(a+u)*s,this.b=Math.sin(a+u)*s,this.c=-Math.sin(a-l)*o,this.d=Math.cos(a-l)*o,this.tx=e-(i*this.a+r*this.c),this.ty=n-(i*this.b+r*this.d),this}prepend(e){const n=this.tx;if(e.a!==1||e.b!==0||e.c!==0||e.d!==1){const i=this.a,r=this.c;this.a=i*e.a+this.b*e.c,this.b=i*e.b+this.b*e.d,this.c=r*e.a+this.d*e.c,this.d=r*e.b+this.d*e.d}return this.tx=n*e.a+this.ty*e.c+e.tx,this.ty=n*e.b+this.ty*e.d+e.ty,this}decompose(e){const n=this.a,i=this.b,r=this.c,s=this.d,o=e.pivot,a=-Math.atan2(-r,s),l=Math.atan2(i,n),u=Math.abs(a+l);return u<1e-5||Math.abs(fQe-u)<1e-5?(e.rotation=l,e.skew.x=e.skew.y=0):(e.rotation=0,e.skew.x=a,e.skew.y=l),e.scale.x=Math.sqrt(n*n+i*i),e.scale.y=Math.sqrt(r*r+s*s),e.position.x=this.tx+(o.x*n+o.y*r),e.position.y=this.ty+(o.x*i+o.y*s),e}invert(){const e=this.a,n=this.b,i=this.c,r=this.d,s=this.tx,o=e*r-n*i;return this.a=r/o,this.b=-n/o,this.c=-i/o,this.d=e/o,this.tx=(i*this.ty-r*s)/o,this.ty=-(e*this.ty-n*s)/o,this}isIdentity(){return this.a===1&&this.b===0&&this.c===0&&this.d===1&&this.tx===0&&this.ty===0}identity(){return this.a=1,this.b=0,this.c=0,this.d=1,this.tx=0,this.ty=0,this}clone(){const e=new pt;return e.a=this.a,e.b=this.b,e.c=this.c,e.d=this.d,e.tx=this.tx,e.ty=this.ty,e}copyTo(e){return e.a=this.a,e.b=this.b,e.c=this.c,e.d=this.d,e.tx=this.tx,e.ty=this.ty,e}copyFrom(e){return this.a=e.a,this.b=e.b,this.c=e.c,this.d=e.d,this.tx=e.tx,this.ty=e.ty,this}equals(e){return e.a===this.a&&e.b===this.b&&e.c===this.c&&e.d===this.d&&e.tx===this.tx&&e.ty===this.ty}toString(){return`[pixi.js:Matrix a=${this.a} b=${this.b} c=${this.c} d=${this.d} tx=${this.tx} ty=${this.ty}]`}static get IDENTITY(){return bQe.identity()}static get shared(){return gQe.identity()}}const gQe=new pt,bQe=new pt,cd=[1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1],ud=[0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1],hd=[0,-1,-1,-1,0,1,1,1,0,1,1,1,0,-1,-1,-1],dd=[1,1,0,-1,-1,-1,0,1,-1,-1,0,1,1,1,0,-1],jL=[],Iee=[],m1=Math.sign;function yQe(){for(let t=0;t<16;t++){const e=[];jL.push(e);for(let n=0;n<16;n++){const i=m1(cd[t]*cd[n]+hd[t]*ud[n]),r=m1(ud[t]*cd[n]+dd[t]*ud[n]),s=m1(cd[t]*hd[n]+hd[t]*dd[n]),o=m1(ud[t]*hd[n]+dd[t]*dd[n]);for(let a=0;a<16;a++)if(cd[a]===i&&ud[a]===r&&hd[a]===s&&dd[a]===o){e.push(a);break}}}for(let t=0;t<16;t++){const e=new pt;e.set(cd[t],ud[t],hd[t],dd[t],0,0),Iee.push(e)}}yQe();const Ut={E:0,SE:1,S:2,SW:3,W:4,NW:5,N:6,NE:7,MIRROR_VERTICAL:8,MAIN_DIAGONAL:10,MIRROR_HORIZONTAL:12,REVERSE_DIAGONAL:14,uX:t=>cd[t],uY:t=>ud[t],vX:t=>hd[t],vY:t=>dd[t],inv:t=>t&8?t&15:-t&7,add:(t,e)=>jL[t][e],sub:(t,e)=>jL[t][Ut.inv(e)],rotate180:t=>t^4,isVertical:t=>(t&3)===2,byDirection:(t,e)=>Math.abs(t)*2<=Math.abs(e)?e>=0?Ut.S:Ut.N:Math.abs(e)*2<=Math.abs(t)?t>0?Ut.E:Ut.W:e>0?t>0?Ut.SE:Ut.SW:t>0?Ut.NE:Ut.NW,matrixAppendRotationInv:(t,e,n=0,i=0,r=0,s=0)=>{const o=Iee[Ut.inv(e)],a=o.a,l=o.b,u=o.c,d=o.d,f=n-Math.min(0,a*r,u*s,a*r+u*s),m=i-Math.min(0,l*r,d*s,l*r+d*s),g=t.a,y=t.b,_=t.c,v=t.d;t.a=a*g+l*_,t.b=a*y+l*v,t.c=u*g+d*_,t.d=u*y+d*v,t.tx=f*g+m*_+t.tx,t.ty=f*y+m*v+t.ty},transformRectCoords:(t,e,n,i)=>{const{x:r,y:s,width:o,height:a}=t,{x:l,y:u,width:d,height:f}=e;return n===Ut.E?(i.set(r+l,s+u,o,a),i):n===Ut.S?i.set(d-s-a+l,r+u,a,o):n===Ut.W?i.set(d-r-o+l,f-s-a+u,o,a):n===Ut.N?i.set(s+l,f-r-o+u,a,o):i.set(r+l,s+u,o,a)}},g1=[new sr,new sr,new sr,new sr];class Ln{constructor(e=0,n=0,i=0,r=0){this.type="rectangle",this.x=Number(e),this.y=Number(n),this.width=Number(i),this.height=Number(r)}get left(){return this.x}get right(){return this.x+this.width}get top(){return this.y}get bottom(){return this.y+this.height}isEmpty(){return this.left===this.right||this.top===this.bottom}static get EMPTY(){return new Ln(0,0,0,0)}clone(){return new Ln(this.x,this.y,this.width,this.height)}copyFromBounds(e){return this.x=e.minX,this.y=e.minY,this.width=e.maxX-e.minX,this.height=e.maxY-e.minY,this}copyFrom(e){return this.x=e.x,this.y=e.y,this.width=e.width,this.height=e.height,this}copyTo(e){return e.copyFrom(this),e}contains(e,n){return this.width<=0||this.height<=0?!1:e>=this.x&&e<this.x+this.width&&n>=this.y&&n<this.y+this.height}strokeContains(e,n,i,r=.5){const{width:s,height:o}=this;if(s<=0||o<=0)return!1;const a=this.x,l=this.y,u=i*(1-r),d=i-u,f=a-u,m=a+s+u,g=l-u,y=l+o+u,_=a+d,v=a+s-d,w=l+d,T=l+o-d;return e>=f&&e<=m&&n>=g&&n<=y&&!(e>_&&e<v&&n>w&&n<T)}intersects(e,n){if(!n){const N=this.x<e.x?e.x:this.x;if((this.right>e.right?e.right:this.right)<=N)return!1;const D=this.y<e.y?e.y:this.y;return(this.bottom>e.bottom?e.bottom:this.bottom)>D}const i=this.left,r=this.right,s=this.top,o=this.bottom;if(r<=i||o<=s)return!1;const a=g1[0].set(e.left,e.top),l=g1[1].set(e.left,e.bottom),u=g1[2].set(e.right,e.top),d=g1[3].set(e.right,e.bottom);if(u.x<=a.x||l.y<=a.y)return!1;const f=Math.sign(n.a*n.d-n.b*n.c);if(f===0||(n.apply(a,a),n.apply(l,l),n.apply(u,u),n.apply(d,d),Math.max(a.x,l.x,u.x,d.x)<=i||Math.min(a.x,l.x,u.x,d.x)>=r||Math.max(a.y,l.y,u.y,d.y)<=s||Math.min(a.y,l.y,u.y,d.y)>=o))return!1;const m=f*(l.y-a.y),g=f*(a.x-l.x),y=m*i+g*s,_=m*r+g*s,v=m*i+g*o,w=m*r+g*o;if(Math.max(y,_,v,w)<=m*a.x+g*a.y||Math.min(y,_,v,w)>=m*d.x+g*d.y)return!1;const T=f*(a.y-u.y),C=f*(u.x-a.x),E=T*i+C*s,R=T*r+C*s,P=T*i+C*o,$=T*r+C*o;return!(Math.max(E,R,P,$)<=T*a.x+C*a.y||Math.min(E,R,P,$)>=T*d.x+C*d.y)}pad(e=0,n=e){return this.x-=e,this.y-=n,this.width+=e*2,this.height+=n*2,this}fit(e){const n=Math.max(this.x,e.x),i=Math.min(this.x+this.width,e.x+e.width),r=Math.max(this.y,e.y),s=Math.min(this.y+this.height,e.y+e.height);return this.x=n,this.width=Math.max(i-n,0),this.y=r,this.height=Math.max(s-r,0),this}ceil(e=1,n=.001){const i=Math.ceil((this.x+this.width-n)*e)/e,r=Math.ceil((this.y+this.height-n)*e)/e;return this.x=Math.floor((this.x+n)*e)/e,this.y=Math.floor((this.y+n)*e)/e,this.width=i-this.x,this.height=r-this.y,this}scale(e,n=e){return this.x*=e,this.y*=n,this.width*=e,this.height*=n,this}enlarge(e){const n=Math.min(this.x,e.x),i=Math.max(this.x+this.width,e.x+e.width),r=Math.min(this.y,e.y),s=Math.max(this.y+this.height,e.y+e.height);return this.x=n,this.width=i-n,this.y=r,this.height=s-r,this}getBounds(e){return e||(e=new Ln),e.copyFrom(this),e}containsRect(e){if(this.width<=0||this.height<=0)return!1;const n=e.x,i=e.y,r=e.x+e.width,s=e.y+e.height;return n>=this.x&&n<this.x+this.width&&i>=this.y&&i<this.y+this.height&&r>=this.x&&r<this.x+this.width&&s>=this.y&&s<this.y+this.height}set(e,n,i,r){return this.x=e,this.y=n,this.width=i,this.height=r,this}toString(){return`[pixi.js/math:Rectangle x=${this.x} y=${this.y} width=${this.width} height=${this.height}]`}}const LE={default:-1};function kn(t="default"){return LE[t]===void 0&&(LE[t]=-1),++LE[t]}const K7=new Set,wn="8.0.0",xQe="8.3.4",gm={quiet:!1,noColor:!1},wt=((t,e,n=3)=>{if(gm.quiet||K7.has(e))return;let i=new Error().stack;const r=`${e}
|
|
976
976
|
Deprecated since v${t}`,s=typeof console.groupCollapsed=="function"&&!gm.noColor;typeof i>"u"?console.warn("PixiJS Deprecation Warning: ",r):(i=i.split(`
|
|
977
977
|
`).splice(n).join(`
|
|
978
978
|
`),s?(console.groupCollapsed("%cPixiJS Deprecation Warning: %c%s","color:#614108;background:#fffbe6","font-weight:normal;color:#614108;background:#fffbe6",r),console.warn(i),console.groupEnd()):(console.warn("PixiJS Deprecation Warning: ",r),console.warn(i))),K7.add(e)});Object.defineProperties(wt,{quiet:{get:()=>gm.quiet,set:t=>{gm.quiet=t},enumerable:!0,configurable:!1},noColor:{get:()=>gm.noColor,set:t=>{gm.noColor=t},enumerable:!0,configurable:!1}});const jee=()=>{};function cg(t){return t+=t===0?1:0,--t,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t+1}function J7(t){return!(t&t-1)&&!!t}function Bee(t){const e={};for(const n in t)t[n]!==void 0&&(e[n]=t[n]);return e}const eq=Object.create(null);function OQe(t){const e=eq[t];return e===void 0&&(eq[t]=kn("resource")),e}const zee=class Vee extends nl{constructor(e={}){super(),this._resourceType="textureSampler",this._touched=0,this._maxAnisotropy=1,this.destroyed=!1,e={...Vee.defaultOptions,...e},this.addressMode=e.addressMode,this.addressModeU=e.addressModeU??this.addressModeU,this.addressModeV=e.addressModeV??this.addressModeV,this.addressModeW=e.addressModeW??this.addressModeW,this.scaleMode=e.scaleMode,this.magFilter=e.magFilter??this.magFilter,this.minFilter=e.minFilter??this.minFilter,this.mipmapFilter=e.mipmapFilter??this.mipmapFilter,this.lodMinClamp=e.lodMinClamp,this.lodMaxClamp=e.lodMaxClamp,this.compare=e.compare,this.maxAnisotropy=e.maxAnisotropy??1}set addressMode(e){this.addressModeU=e,this.addressModeV=e,this.addressModeW=e}get addressMode(){return this.addressModeU}set wrapMode(e){wt(wn,"TextureStyle.wrapMode is now TextureStyle.addressMode"),this.addressMode=e}get wrapMode(){return this.addressMode}set scaleMode(e){this.magFilter=e,this.minFilter=e,this.mipmapFilter=e}get scaleMode(){return this.magFilter}set maxAnisotropy(e){this._maxAnisotropy=Math.min(e,16),this._maxAnisotropy>1&&(this.scaleMode="linear")}get maxAnisotropy(){return this._maxAnisotropy}get _resourceId(){return this._sharedResourceId||this._generateResourceId()}update(){this._sharedResourceId=null,this.emit("change",this)}_generateResourceId(){const e=`${this.addressModeU}-${this.addressModeV}-${this.addressModeW}-${this.magFilter}-${this.minFilter}-${this.mipmapFilter}-${this.lodMinClamp}-${this.lodMaxClamp}-${this.compare}-${this._maxAnisotropy}`;return this._sharedResourceId=OQe(e),this._resourceId}destroy(){this.destroyed=!0,this.emit("destroy",this),this.emit("change",this),this.removeAllListeners()}};zee.defaultOptions={addressMode:"clamp-to-edge",scaleMode:"linear"};let ug=zee;const qee=class Xee extends nl{constructor(e={}){super(),this.options=e,this._gpuData=Object.create(null),this._gcLastUsed=-1,this.uid=kn("textureSource"),this._resourceType="textureSource",this._resourceId=kn("resource"),this.uploadMethodId="unknown",this._resolution=1,this.pixelWidth=1,this.pixelHeight=1,this.width=1,this.height=1,this.sampleCount=1,this.mipLevelCount=1,this.autoGenerateMipmaps=!1,this.format="rgba8unorm",this.dimension="2d",this.viewDimension="2d",this.arrayLayerCount=1,this.antialias=!1,this._touched=0,this._batchTick=-1,this._textureBindLocation=-1,e={...Xee.defaultOptions,...e},this.label=e.label??"",this.resource=e.resource,this.autoGarbageCollect=e.autoGarbageCollect,this._resolution=e.resolution,e.width?this.pixelWidth=e.width*this._resolution:this.pixelWidth=this.resource?this.resourceWidth??1:1,e.height?this.pixelHeight=e.height*this._resolution:this.pixelHeight=this.resource?this.resourceHeight??1:1,this.width=this.pixelWidth/this._resolution,this.height=this.pixelHeight/this._resolution,this.format=e.format,this.dimension=e.dimensions,this.viewDimension=e.viewDimension??e.dimensions,this.arrayLayerCount=e.arrayLayerCount,this.mipLevelCount=e.mipLevelCount,this.autoGenerateMipmaps=e.autoGenerateMipmaps,this.sampleCount=e.sampleCount,this.antialias=e.antialias,this.alphaMode=e.alphaMode,this.style=new ug(Bee(e)),this.destroyed=!1,this._refreshPOT()}get source(){return this}get style(){return this._style}set style(e){this.style!==e&&(this._style?.off("change",this._onStyleChange,this),this._style=e,this._style?.on("change",this._onStyleChange,this),this._onStyleChange())}set maxAnisotropy(e){this._style.maxAnisotropy=e}get maxAnisotropy(){return this._style.maxAnisotropy}get addressMode(){return this._style.addressMode}set addressMode(e){this._style.addressMode=e}get repeatMode(){return this._style.addressMode}set repeatMode(e){this._style.addressMode=e}get magFilter(){return this._style.magFilter}set magFilter(e){this._style.magFilter=e}get minFilter(){return this._style.minFilter}set minFilter(e){this._style.minFilter=e}get mipmapFilter(){return this._style.mipmapFilter}set mipmapFilter(e){this._style.mipmapFilter=e}get lodMinClamp(){return this._style.lodMinClamp}set lodMinClamp(e){this._style.lodMinClamp=e}get lodMaxClamp(){return this._style.lodMaxClamp}set lodMaxClamp(e){this._style.lodMaxClamp=e}_onStyleChange(){this.emit("styleChange",this)}update(){if(this.resource){const e=this._resolution;if(this.resize(this.resourceWidth/e,this.resourceHeight/e))return}this.emit("update",this)}destroy(){this.destroyed=!0,this.unload(),this.emit("destroy",this),this._style&&(this._style.destroy(),this._style=null),this.uploadMethodId=null,this.resource=null,this.removeAllListeners()}unload(){this._resourceId=kn("resource"),this.emit("change",this),this.emit("unload",this);for(const e in this._gpuData)this._gpuData[e]?.destroy?.();this._gpuData=Object.create(null)}get resourceWidth(){const{resource:e}=this;return e.naturalWidth||e.videoWidth||e.displayWidth||e.width}get resourceHeight(){const{resource:e}=this;return e.naturalHeight||e.videoHeight||e.displayHeight||e.height}get resolution(){return this._resolution}set resolution(e){this._resolution!==e&&(this._resolution=e,this.width=this.pixelWidth/e,this.height=this.pixelHeight/e)}resize(e,n,i){i||(i=this._resolution),e||(e=this.width),n||(n=this.height);const r=Math.round(e*i),s=Math.round(n*i);return this.width=r/i,this.height=s/i,this._resolution=i,this.pixelWidth===r&&this.pixelHeight===s?!1:(this._refreshPOT(),this.pixelWidth=r,this.pixelHeight=s,this.emit("resize",this),this._resourceId=kn("resource"),this.emit("change",this),!0)}updateMipmaps(){this.autoGenerateMipmaps&&this.mipLevelCount>1&&this.emit("updateMipmaps",this)}set wrapMode(e){this._style.wrapMode=e}get wrapMode(){return this._style.wrapMode}set scaleMode(e){this._style.scaleMode=e}get scaleMode(){return this._style.scaleMode}_refreshPOT(){this.isPowerOfTwo=J7(this.pixelWidth)&&J7(this.pixelHeight)}static test(e){throw new Error("Unimplemented")}};qee.defaultOptions={resolution:1,format:"bgra8unorm",alphaMode:"premultiply-alpha-on-upload",dimensions:"2d",viewDimension:"2d",arrayLayerCount:1,mipLevelCount:1,autoGenerateMipmaps:!1,sampleCount:1,antialias:!1,autoGarbageCollect:!1};let oa=qee;class U5 extends oa{constructor(e){const n=e.resource||new Float32Array(e.width*e.height*4);let i=e.format;i||(n instanceof Float32Array?i="rgba32float":n instanceof Int32Array||n instanceof Uint32Array?i="rgba32uint":n instanceof Int16Array||n instanceof Uint16Array?i="rgba16uint":(n instanceof Int8Array,i="bgra8unorm")),super({...e,resource:n,format:i}),this.uploadMethodId="buffer"}static test(e){return e instanceof Int8Array||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array}}U5.extension=rt.TextureSource;const tq=new pt;class _Qe{constructor(e,n){this.mapCoord=new pt,this.uClampFrame=new Float32Array(4),this.uClampOffset=new Float32Array(2),this._textureID=-1,this._updateID=0,this.clampOffset=0,typeof n>"u"?this.clampMargin=e.width<10?0:.5:this.clampMargin=n,this.isSimple=!1,this.texture=e}get texture(){return this._texture}set texture(e){this.texture!==e&&(this._texture?.removeListener("update",this.update,this),this._texture=e,this._texture.addListener("update",this.update,this),this.update())}multiplyUvs(e,n){n===void 0&&(n=e);const i=this.mapCoord;for(let r=0;r<e.length;r+=2){const s=e[r],o=e[r+1];n[r]=s*i.a+o*i.c+i.tx,n[r+1]=s*i.b+o*i.d+i.ty}return n}update(){const e=this._texture;this._updateID++;const n=e.uvs;this.mapCoord.set(n.x1-n.x0,n.y1-n.y0,n.x3-n.x0,n.y3-n.y0,n.x0,n.y0);const i=e.orig,r=e.trim;r&&(tq.set(i.width/r.width,0,0,i.height/r.height,-r.x/r.width,-r.y/r.height),this.mapCoord.append(tq));const s=e.source,o=this.uClampFrame,a=this.clampMargin/s._resolution,l=this.clampOffset/s._resolution;return o[0]=(e.frame.x+a+l)/s.width,o[1]=(e.frame.y+a+l)/s.height,o[2]=(e.frame.x+e.frame.width-a+l)/s.width,o[3]=(e.frame.y+e.frame.height-a+l)/s.height,this.uClampOffset[0]=this.clampOffset/s.pixelWidth,this.uClampOffset[1]=this.clampOffset/s.pixelHeight,this.isSimple=e.frame.width===s.width&&e.frame.height===s.height&&e.rotate===0,!0}}class qt extends nl{constructor({source:e,label:n,frame:i,orig:r,trim:s,defaultAnchor:o,defaultBorders:a,rotate:l,dynamic:u}={}){if(super(),this.uid=kn("texture"),this.uvs={x0:0,y0:0,x1:0,y1:0,x2:0,y2:0,x3:0,y3:0},this.frame=new Ln,this.noFrame=!1,this.dynamic=!1,this.isTexture=!0,this.label=n,this.source=e?.source??new oa,this.noFrame=!i,i)this.frame.copyFrom(i);else{const{width:d,height:f}=this._source;this.frame.width=d,this.frame.height=f}this.orig=r||this.frame,this.trim=s,this.rotate=l??0,this.defaultAnchor=o,this.defaultBorders=a,this.destroyed=!1,this.dynamic=u||!1,this.updateUvs()}set source(e){this._source&&this._source.off("resize",this.update,this),this._source=e,e.on("resize",this.update,this),this.emit("update",this)}get source(){return this._source}get textureMatrix(){return this._textureMatrix||(this._textureMatrix=new _Qe(this)),this._textureMatrix}get width(){return this.orig.width}get height(){return this.orig.height}updateUvs(){const{uvs:e,frame:n}=this,{width:i,height:r}=this._source,s=n.x/i,o=n.y/r,a=n.width/i,l=n.height/r;let u=this.rotate;if(u){const d=a/2,f=l/2,m=s+d,g=o+f;u=Ut.add(u,Ut.NW),e.x0=m+d*Ut.uX(u),e.y0=g+f*Ut.uY(u),u=Ut.add(u,2),e.x1=m+d*Ut.uX(u),e.y1=g+f*Ut.uY(u),u=Ut.add(u,2),e.x2=m+d*Ut.uX(u),e.y2=g+f*Ut.uY(u),u=Ut.add(u,2),e.x3=m+d*Ut.uX(u),e.y3=g+f*Ut.uY(u)}else e.x0=s,e.y0=o,e.x1=s+a,e.y1=o,e.x2=s+a,e.y2=o+l,e.x3=s,e.y3=o+l}destroy(e=!1){this._source&&(this._source.off("resize",this.update,this),e&&(this._source.destroy(),this._source=null)),this._textureMatrix=null,this.destroyed=!0,this.emit("destroy",this),this.removeAllListeners()}update(){this.noFrame&&(this.frame.width=this._source.width,this.frame.height=this._source.height),this.updateUvs(),this.emit("update",this)}get baseTexture(){return wt(wn,"Texture.baseTexture is now Texture.source"),this._source}}qt.EMPTY=new qt({label:"EMPTY",source:new oa({label:"EMPTY"})});qt.EMPTY.destroy=jee;qt.WHITE=new qt({source:new U5({resource:new Uint8Array([255,255,255,255]),width:1,height:1,alphaMode:"premultiply-alpha-on-upload",label:"WHITE"}),label:"WHITE"});qt.WHITE.destroy=jee;function Fee(t,e,n){const{width:i,height:r}=n.orig,s=n.trim;if(s){const o=s.width,a=s.height;t.minX=s.x-e._x*i,t.maxX=t.minX+o,t.minY=s.y-e._y*r,t.maxY=t.minY+a}else t.minX=-e._x*i,t.maxX=t.minX+i,t.minY=-e._y*r,t.maxY=t.minY+r}const nq=new pt;class Po{constructor(e=1/0,n=1/0,i=-1/0,r=-1/0){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0,this.matrix=nq,this.minX=e,this.minY=n,this.maxX=i,this.maxY=r}isEmpty(){return this.minX>this.maxX||this.minY>this.maxY}get rectangle(){this._rectangle||(this._rectangle=new Ln);const e=this._rectangle;return this.minX>this.maxX||this.minY>this.maxY?(e.x=0,e.y=0,e.width=0,e.height=0):e.copyFromBounds(this),e}clear(){return this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0,this.matrix=nq,this}set(e,n,i,r){this.minX=e,this.minY=n,this.maxX=i,this.maxY=r}addFrame(e,n,i,r,s){s||(s=this.matrix);const o=s.a,a=s.b,l=s.c,u=s.d,d=s.tx,f=s.ty;let m=this.minX,g=this.minY,y=this.maxX,_=this.maxY,v=o*e+l*n+d,w=a*e+u*n+f;v<m&&(m=v),w<g&&(g=w),v>y&&(y=v),w>_&&(_=w),v=o*i+l*n+d,w=a*i+u*n+f,v<m&&(m=v),w<g&&(g=w),v>y&&(y=v),w>_&&(_=w),v=o*e+l*r+d,w=a*e+u*r+f,v<m&&(m=v),w<g&&(g=w),v>y&&(y=v),w>_&&(_=w),v=o*i+l*r+d,w=a*i+u*r+f,v<m&&(m=v),w<g&&(g=w),v>y&&(y=v),w>_&&(_=w),this.minX=m,this.minY=g,this.maxX=y,this.maxY=_}addRect(e,n){this.addFrame(e.x,e.y,e.x+e.width,e.y+e.height,n)}addBounds(e,n){this.addFrame(e.minX,e.minY,e.maxX,e.maxY,n)}addBoundsMask(e){this.minX=this.minX>e.minX?this.minX:e.minX,this.minY=this.minY>e.minY?this.minY:e.minY,this.maxX=this.maxX<e.maxX?this.maxX:e.maxX,this.maxY=this.maxY<e.maxY?this.maxY:e.maxY}applyMatrix(e){const n=this.minX,i=this.minY,r=this.maxX,s=this.maxY,{a:o,b:a,c:l,d:u,tx:d,ty:f}=e;let m=o*n+l*i+d,g=a*n+u*i+f;this.minX=m,this.minY=g,this.maxX=m,this.maxY=g,m=o*r+l*i+d,g=a*r+u*i+f,this.minX=m<this.minX?m:this.minX,this.minY=g<this.minY?g:this.minY,this.maxX=m>this.maxX?m:this.maxX,this.maxY=g>this.maxY?g:this.maxY,m=o*n+l*s+d,g=a*n+u*s+f,this.minX=m<this.minX?m:this.minX,this.minY=g<this.minY?g:this.minY,this.maxX=m>this.maxX?m:this.maxX,this.maxY=g>this.maxY?g:this.maxY,m=o*r+l*s+d,g=a*r+u*s+f,this.minX=m<this.minX?m:this.minX,this.minY=g<this.minY?g:this.minY,this.maxX=m>this.maxX?m:this.maxX,this.maxY=g>this.maxY?g:this.maxY}fit(e){return this.minX<e.left&&(this.minX=e.left),this.maxX>e.right&&(this.maxX=e.right),this.minY<e.top&&(this.minY=e.top),this.maxY>e.bottom&&(this.maxY=e.bottom),this}fitBounds(e,n,i,r){return this.minX<e&&(this.minX=e),this.maxX>n&&(this.maxX=n),this.minY<i&&(this.minY=i),this.maxY>r&&(this.maxY=r),this}pad(e,n=e){return this.minX-=e,this.maxX+=e,this.minY-=n,this.maxY+=n,this}ceil(){return this.minX=Math.floor(this.minX),this.minY=Math.floor(this.minY),this.maxX=Math.ceil(this.maxX),this.maxY=Math.ceil(this.maxY),this}clone(){return new Po(this.minX,this.minY,this.maxX,this.maxY)}scale(e,n=e){return this.minX*=e,this.minY*=n,this.maxX*=e,this.maxY*=n,this}get x(){return this.minX}set x(e){const n=this.maxX-this.minX;this.minX=e,this.maxX=e+n}get y(){return this.minY}set y(e){const n=this.maxY-this.minY;this.minY=e,this.maxY=e+n}get width(){return this.maxX-this.minX}set width(e){this.maxX=this.minX+e}get height(){return this.maxY-this.minY}set height(e){this.maxY=this.minY+e}get left(){return this.minX}get right(){return this.maxX}get top(){return this.minY}get bottom(){return this.maxY}get isPositive(){return this.maxX-this.minX>0&&this.maxY-this.minY>0}get isValid(){return this.minX+this.minY!==1/0}addVertexData(e,n,i,r){let s=this.minX,o=this.minY,a=this.maxX,l=this.maxY;r||(r=this.matrix);const u=r.a,d=r.b,f=r.c,m=r.d,g=r.tx,y=r.ty;for(let _=n;_<i;_+=2){const v=e[_],w=e[_+1],T=u*v+f*w+g,C=d*v+m*w+y;s=T<s?T:s,o=C<o?C:o,a=T>a?T:a,l=C>l?C:l}this.minX=s,this.minY=o,this.maxX=a,this.maxY=l}containsPoint(e,n){return this.minX<=e&&this.minY<=n&&this.maxX>=e&&this.maxY>=n}toString(){return`[pixi.js:Bounds minX=${this.minX} minY=${this.minY} maxX=${this.maxX} maxY=${this.maxY} width=${this.width} height=${this.height}]`}copyFrom(e){return this.minX=e.minX,this.minY=e.minY,this.maxX=e.maxX,this.maxY=e.maxY,this}}var vQe={grad:.9,turn:360,rad:360/(2*Math.PI)},Pl=function(t){return typeof t=="string"?t.length>0:typeof t=="number"},xi=function(t,e,n){return e===void 0&&(e=0),n===void 0&&(n=Math.pow(10,e)),Math.round(n*t)/n+0},Oo=function(t,e,n){return e===void 0&&(e=0),n===void 0&&(n=1),t>n?n:t>e?t:e},Uee=function(t){return(t=isFinite(t)?t%360:0)>0?t:t+360},iq=function(t){return{r:Oo(t.r,0,255),g:Oo(t.g,0,255),b:Oo(t.b,0,255),a:Oo(t.a)}},DE=function(t){return{r:xi(t.r),g:xi(t.g),b:xi(t.b),a:xi(t.a,3)}},SQe=/^#([0-9a-f]{3,8})$/i,b1=function(t){var e=t.toString(16);return e.length<2?"0"+e:e},Wee=function(t){var e=t.r,n=t.g,i=t.b,r=t.a,s=Math.max(e,n,i),o=s-Math.min(e,n,i),a=o?s===e?(n-i)/o:s===n?2+(i-e)/o:4+(e-n)/o:0;return{h:60*(a<0?a+6:a),s:s?o/s*100:0,v:s/255*100,a:r}},Gee=function(t){var e=t.h,n=t.s,i=t.v,r=t.a;e=e/360*6,n/=100,i/=100;var s=Math.floor(e),o=i*(1-n),a=i*(1-(e-s)*n),l=i*(1-(1-e+s)*n),u=s%6;return{r:255*[i,a,o,o,l,i][u],g:255*[l,i,i,a,o,o][u],b:255*[o,o,l,i,i,a][u],a:r}},rq=function(t){return{h:Uee(t.h),s:Oo(t.s,0,100),l:Oo(t.l,0,100),a:Oo(t.a)}},sq=function(t){return{h:xi(t.h),s:xi(t.s),l:xi(t.l),a:xi(t.a,3)}},oq=function(t){return Gee((n=(e=t).s,{h:e.h,s:(n*=((i=e.l)<50?i:100-i)/100)>0?2*n/(i+n)*100:0,v:i+n,a:e.a}));var e,n,i},P0=function(t){return{h:(e=Wee(t)).h,s:(r=(200-(n=e.s))*(i=e.v)/100)>0&&r<200?n*i/100/(r<=100?r:200-r)*100:0,l:r/2,a:e.a};var e,n,i,r},wQe=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,kQe=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,CQe=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,TQe=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,BL={string:[[function(t){var e=SQe.exec(t);return e?(t=e[1]).length<=4?{r:parseInt(t[0]+t[0],16),g:parseInt(t[1]+t[1],16),b:parseInt(t[2]+t[2],16),a:t.length===4?xi(parseInt(t[3]+t[3],16)/255,2):1}:t.length===6||t.length===8?{r:parseInt(t.substr(0,2),16),g:parseInt(t.substr(2,2),16),b:parseInt(t.substr(4,2),16),a:t.length===8?xi(parseInt(t.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(t){var e=CQe.exec(t)||TQe.exec(t);return e?e[2]!==e[4]||e[4]!==e[6]?null:iq({r:Number(e[1])/(e[2]?100/255:1),g:Number(e[3])/(e[4]?100/255:1),b:Number(e[5])/(e[6]?100/255:1),a:e[7]===void 0?1:Number(e[7])/(e[8]?100:1)}):null},"rgb"],[function(t){var e=wQe.exec(t)||kQe.exec(t);if(!e)return null;var n,i,r=rq({h:(n=e[1],i=e[2],i===void 0&&(i="deg"),Number(n)*(vQe[i]||1)),s:Number(e[3]),l:Number(e[4]),a:e[5]===void 0?1:Number(e[5])/(e[6]?100:1)});return oq(r)},"hsl"]],object:[[function(t){var e=t.r,n=t.g,i=t.b,r=t.a,s=r===void 0?1:r;return Pl(e)&&Pl(n)&&Pl(i)?iq({r:Number(e),g:Number(n),b:Number(i),a:Number(s)}):null},"rgb"],[function(t){var e=t.h,n=t.s,i=t.l,r=t.a,s=r===void 0?1:r;if(!Pl(e)||!Pl(n)||!Pl(i))return null;var o=rq({h:Number(e),s:Number(n),l:Number(i),a:Number(s)});return oq(o)},"hsl"],[function(t){var e=t.h,n=t.s,i=t.v,r=t.a,s=r===void 0?1:r;if(!Pl(e)||!Pl(n)||!Pl(i))return null;var o=(function(a){return{h:Uee(a.h),s:Oo(a.s,0,100),v:Oo(a.v,0,100),a:Oo(a.a)}})({h:Number(e),s:Number(n),v:Number(i),a:Number(s)});return Gee(o)},"hsv"]]},aq=function(t,e){for(var n=0;n<e.length;n++){var i=e[n][0](t);if(i)return[i,e[n][1]]}return[null,void 0]},PQe=function(t){return typeof t=="string"?aq(t.trim(),BL.string):typeof t=="object"&&t!==null?aq(t,BL.object):[null,void 0]},NE=function(t,e){var n=P0(t);return{h:n.h,s:Oo(n.s+100*e,0,100),l:n.l,a:n.a}},QE=function(t){return(299*t.r+587*t.g+114*t.b)/1e3/255},lq=function(t,e){var n=P0(t);return{h:n.h,s:n.s,l:Oo(n.l+100*e,0,100),a:n.a}},zL=(function(){function t(e){this.parsed=PQe(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return t.prototype.isValid=function(){return this.parsed!==null},t.prototype.brightness=function(){return xi(QE(this.rgba),2)},t.prototype.isDark=function(){return QE(this.rgba)<.5},t.prototype.isLight=function(){return QE(this.rgba)>=.5},t.prototype.toHex=function(){return e=DE(this.rgba),n=e.r,i=e.g,r=e.b,o=(s=e.a)<1?b1(xi(255*s)):"","#"+b1(n)+b1(i)+b1(r)+o;var e,n,i,r,s,o},t.prototype.toRgb=function(){return DE(this.rgba)},t.prototype.toRgbString=function(){return e=DE(this.rgba),n=e.r,i=e.g,r=e.b,(s=e.a)<1?"rgba("+n+", "+i+", "+r+", "+s+")":"rgb("+n+", "+i+", "+r+")";var e,n,i,r,s},t.prototype.toHsl=function(){return sq(P0(this.rgba))},t.prototype.toHslString=function(){return e=sq(P0(this.rgba)),n=e.h,i=e.s,r=e.l,(s=e.a)<1?"hsla("+n+", "+i+"%, "+r+"%, "+s+")":"hsl("+n+", "+i+"%, "+r+"%)";var e,n,i,r,s},t.prototype.toHsv=function(){return e=Wee(this.rgba),{h:xi(e.h),s:xi(e.s),v:xi(e.v),a:xi(e.a,3)};var e},t.prototype.invert=function(){return Pa({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},t.prototype.saturate=function(e){return e===void 0&&(e=.1),Pa(NE(this.rgba,e))},t.prototype.desaturate=function(e){return e===void 0&&(e=.1),Pa(NE(this.rgba,-e))},t.prototype.grayscale=function(){return Pa(NE(this.rgba,-1))},t.prototype.lighten=function(e){return e===void 0&&(e=.1),Pa(lq(this.rgba,e))},t.prototype.darken=function(e){return e===void 0&&(e=.1),Pa(lq(this.rgba,-e))},t.prototype.rotate=function(e){return e===void 0&&(e=15),this.hue(this.hue()+e)},t.prototype.alpha=function(e){return typeof e=="number"?Pa({r:(n=this.rgba).r,g:n.g,b:n.b,a:e}):xi(this.rgba.a,3);var n},t.prototype.hue=function(e){var n=P0(this.rgba);return typeof e=="number"?Pa({h:e,s:n.s,l:n.l,a:n.a}):xi(n.h)},t.prototype.isEqual=function(e){return this.toHex()===Pa(e).toHex()},t})(),Pa=function(t){return t instanceof zL?t:new zL(t)},cq=[],AQe=function(t){t.forEach(function(e){cq.indexOf(e)<0&&(e(zL,BL),cq.push(e))})};function RQe(t,e){var n={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},i={};for(var r in n)i[n[r]]=r;var s={};t.prototype.toName=function(o){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var a,l,u=i[this.toHex()];if(u)return u;if(o?.closest){var d=this.toRgb(),f=1/0,m="black";if(!s.length)for(var g in n)s[g]=new t(n[g]).toRgb();for(var y in n){var _=(a=d,l=s[y],Math.pow(a.r-l.r,2)+Math.pow(a.g-l.g,2)+Math.pow(a.b-l.b,2));_<f&&(f=_,m=y)}return m}},e.string.push([function(o){var a=o.toLowerCase(),l=a==="transparent"?"#0000":n[a];return l?new t(l).toRgb():null},"name"])}AQe([RQe]);const hg=class Hy{constructor(e=16777215){this._value=null,this._components=new Float32Array(4),this._components.fill(1),this._int=16777215,this.value=e}get red(){return this._components[0]}get green(){return this._components[1]}get blue(){return this._components[2]}get alpha(){return this._components[3]}setValue(e){return this.value=e,this}set value(e){if(e instanceof Hy)this._value=this._cloneSource(e._value),this._int=e._int,this._components.set(e._components);else{if(e===null)throw new Error("Cannot set Color#value to null");(this._value===null||!this._isSourceEqual(this._value,e))&&(this._value=this._cloneSource(e),this._normalize(this._value))}}get value(){return this._value}_cloneSource(e){return typeof e=="string"||typeof e=="number"||e instanceof Number||e===null?e:Array.isArray(e)||ArrayBuffer.isView(e)?e.slice(0):typeof e=="object"&&e!==null?{...e}:e}_isSourceEqual(e,n){const i=typeof e;if(i!==typeof n)return!1;if(i==="number"||i==="string"||e instanceof Number)return e===n;if(Array.isArray(e)&&Array.isArray(n)||ArrayBuffer.isView(e)&&ArrayBuffer.isView(n))return e.length!==n.length?!1:e.every((s,o)=>s===n[o]);if(e!==null&&n!==null){const s=Object.keys(e),o=Object.keys(n);return s.length!==o.length?!1:s.every(a=>e[a]===n[a])}return e===n}toRgba(){const[e,n,i,r]=this._components;return{r:e,g:n,b:i,a:r}}toRgb(){const[e,n,i]=this._components;return{r:e,g:n,b:i}}toRgbaString(){const[e,n,i]=this.toUint8RgbArray();return`rgba(${e},${n},${i},${this.alpha})`}toUint8RgbArray(e){const[n,i,r]=this._components;return this._arrayRgb||(this._arrayRgb=[]),e||(e=this._arrayRgb),e[0]=Math.round(n*255),e[1]=Math.round(i*255),e[2]=Math.round(r*255),e}toArray(e){this._arrayRgba||(this._arrayRgba=[]),e||(e=this._arrayRgba);const[n,i,r,s]=this._components;return e[0]=n,e[1]=i,e[2]=r,e[3]=s,e}toRgbArray(e){this._arrayRgb||(this._arrayRgb=[]),e||(e=this._arrayRgb);const[n,i,r]=this._components;return e[0]=n,e[1]=i,e[2]=r,e}toNumber(){return this._int}toBgrNumber(){const[e,n,i]=this.toUint8RgbArray();return(i<<16)+(n<<8)+e}toLittleEndianNumber(){const e=this._int;return(e>>16)+(e&65280)+((e&255)<<16)}multiply(e){const[n,i,r,s]=Hy._temp.setValue(e)._components;return this._components[0]*=n,this._components[1]*=i,this._components[2]*=r,this._components[3]*=s,this._refreshInt(),this._value=null,this}premultiply(e,n=!0){return n&&(this._components[0]*=e,this._components[1]*=e,this._components[2]*=e),this._components[3]=e,this._refreshInt(),this._value=null,this}toPremultiplied(e,n=!0){if(e===1)return(255<<24)+this._int;if(e===0)return n?0:this._int;let i=this._int>>16&255,r=this._int>>8&255,s=this._int&255;return n&&(i=i*e+.5|0,r=r*e+.5|0,s=s*e+.5|0),(e*255<<24)+(i<<16)+(r<<8)+s}toHex(){const e=this._int.toString(16);return`#${"000000".substring(0,6-e.length)+e}`}toHexa(){const n=Math.round(this._components[3]*255).toString(16);return this.toHex()+"00".substring(0,2-n.length)+n}setAlpha(e){return this._components[3]=this._clamp(e),this}_normalize(e){let n,i,r,s;if((typeof e=="number"||e instanceof Number)&&e>=0&&e<=16777215){const o=e;n=(o>>16&255)/255,i=(o>>8&255)/255,r=(o&255)/255,s=1}else if((Array.isArray(e)||e instanceof Float32Array)&&e.length>=3&&e.length<=4)e=this._clamp(e),[n,i,r,s=1]=e;else if((e instanceof Uint8Array||e instanceof Uint8ClampedArray)&&e.length>=3&&e.length<=4)e=this._clamp(e,0,255),[n,i,r,s=255]=e,n/=255,i/=255,r/=255,s/=255;else if(typeof e=="string"||typeof e=="object"){if(typeof e=="string"){const a=Hy.HEX_PATTERN.exec(e);a&&(e=`#${a[2]}`)}const o=Pa(e);o.isValid()&&({r:n,g:i,b:r,a:s}=o.rgba,n/=255,i/=255,r/=255)}if(n!==void 0)this._components[0]=n,this._components[1]=i,this._components[2]=r,this._components[3]=s,this._refreshInt();else throw new Error(`Unable to convert color ${e}`)}_refreshInt(){this._clamp(this._components);const[e,n,i]=this._components;this._int=(e*255<<16)+(n*255<<8)+(i*255|0)}_clamp(e,n=0,i=1){return typeof e=="number"?Math.min(Math.max(e,n),i):(e.forEach((r,s)=>{e[s]=Math.min(Math.max(r,n),i)}),e)}static isColorLike(e){return typeof e=="number"||typeof e=="string"||e instanceof Number||e instanceof Hy||Array.isArray(e)||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Float32Array||e.r!==void 0&&e.g!==void 0&&e.b!==void 0||e.r!==void 0&&e.g!==void 0&&e.b!==void 0&&e.a!==void 0||e.h!==void 0&&e.s!==void 0&&e.l!==void 0||e.h!==void 0&&e.s!==void 0&&e.l!==void 0&&e.a!==void 0||e.h!==void 0&&e.s!==void 0&&e.v!==void 0||e.h!==void 0&&e.s!==void 0&&e.v!==void 0&&e.a!==void 0}};hg.shared=new hg;hg._temp=new hg;hg.HEX_PATTERN=/^(#|0x)?(([a-f0-9]{3}){1,2}([a-f0-9]{2})?)$/i;let oi=hg;const EQe={cullArea:null,cullable:!1,cullableChildren:!0};let IE=0;const uq=500;function Ar(...t){IE!==uq&&(IE++,IE===uq?console.warn("PixiJS Warning: too many warnings, no more warnings will be reported to the console by PixiJS."):console.warn("PixiJS Warning: ",...t))}const cO={_registeredResources:new Set,register(t){this._registeredResources.add(t)},unregister(t){this._registeredResources.delete(t)},release(){this._registeredResources.forEach(t=>t.clear())},get registeredCount(){return this._registeredResources.size},isRegistered(t){return this._registeredResources.has(t)},reset(){this._registeredResources.clear()}};class MQe{constructor(e,n){this._pool=[],this._count=0,this._index=0,this._classType=e,n&&this.prepopulate(n)}prepopulate(e){for(let n=0;n<e;n++)this._pool[this._index++]=new this._classType;this._count+=e}get(e){let n;return this._index>0?n=this._pool[--this._index]:(n=new this._classType,this._count++),n.init?.(e),n}return(e){e.reset?.(),this._pool[this._index++]=e}get totalSize(){return this._count}get totalFree(){return this._index}get totalUsed(){return this._count-this._index}clear(){if(this._pool.length>0&&this._pool[0].destroy)for(let e=0;e<this._index;e++)this._pool[e].destroy();this._pool.length=0,this._count=0,this._index=0}}class $Qe{constructor(){this._poolsByClass=new Map}prepopulate(e,n){this.getPool(e).prepopulate(n)}get(e,n){return this.getPool(e).get(n)}return(e){this.getPool(e.constructor).return(e)}getPool(e){return this._poolsByClass.has(e)||this._poolsByClass.set(e,new MQe(e)),this._poolsByClass.get(e)}stats(){const e={};return this._poolsByClass.forEach(n=>{const i=e[n._classType.name]?n._classType.name+n._classType.ID:n._classType.name;e[i]={free:n.totalFree,used:n.totalUsed,size:n.totalSize}}),e}clear(){this._poolsByClass.forEach(e=>e.clear()),this._poolsByClass.clear()}}const ts=new $Qe;cO.register(ts);const LQe={get isCachedAsTexture(){return!!this.renderGroup?.isCachedAsTexture},cacheAsTexture(t){typeof t=="boolean"&&t===!1?this.disableRenderGroup():(this.enableRenderGroup(),this.renderGroup.enableCacheAsTexture(t===!0?{}:t))},updateCacheTexture(){this.renderGroup?.updateCacheTexture()},get cacheAsBitmap(){return this.isCachedAsTexture},set cacheAsBitmap(t){wt("v8.6.0","cacheAsBitmap is deprecated, use cacheAsTexture instead."),this.cacheAsTexture(t)}};function DQe(t,e,n){const i=t.length;let r;if(e>=i||n===0)return;n=e+n>i?i-e:n;const s=i-n;for(r=e;r<s;++r)t[r]=t[r+n];t.length=s}const NQe={allowChildren:!0,removeChildren(t=0,e){const n=e??this.children.length,i=n-t,r=[];if(i>0&&i<=n){for(let o=n-1;o>=t;o--){const a=this.children[o];a&&(r.push(a),a.parent=null)}DQe(this.children,t,n);const s=this.renderGroup||this.parentRenderGroup;s&&s.removeChildren(r);for(let o=0;o<r.length;++o){const a=r[o];a.parentRenderLayer?.detach(a),this.emit("childRemoved",a,this,o),r[o].emit("removed",this)}return r.length>0&&this._didViewChangeTick++,r}else if(i===0&&this.children.length===0)return r;throw new RangeError("removeChildren: numeric values are outside the acceptable range.")},removeChildAt(t){const e=this.getChildAt(t);return this.removeChild(e)},getChildAt(t){if(t<0||t>=this.children.length)throw new Error(`getChildAt: Index (${t}) does not exist.`);return this.children[t]},setChildIndex(t,e){if(e<0||e>=this.children.length)throw new Error(`The index ${e} supplied is out of bounds ${this.children.length}`);this.getChildIndex(t),this.addChildAt(t,e)},getChildIndex(t){const e=this.children.indexOf(t);if(e===-1)throw new Error("The supplied Container must be a child of the caller");return e},addChildAt(t,e){this.allowChildren||wt(wn,"addChildAt: Only Containers will be allowed to add children in v8.0.0");const{children:n}=this;if(e<0||e>n.length)throw new Error(`${t}addChildAt: The index ${e} supplied is out of bounds ${n.length}`);if(t.parent){const r=t.parent.children.indexOf(t);if(t.parent===this&&r===e)return t;r!==-1&&t.parent.children.splice(r,1)}e===n.length?n.push(t):n.splice(e,0,t),t.parent=this,t.didChange=!0,t._updateFlags=15;const i=this.renderGroup||this.parentRenderGroup;return i&&i.addChild(t),this.sortableChildren&&(this.sortDirty=!0),this.emit("childAdded",t,this,e),t.emit("added",this),t},swapChildren(t,e){if(t===e)return;const n=this.getChildIndex(t),i=this.getChildIndex(e);this.children[n]=e,this.children[i]=t;const r=this.renderGroup||this.parentRenderGroup;r&&(r.structureDidChange=!0),this._didContainerChangeTick++},removeFromParent(){this.parent?.removeChild(this)},reparentChild(...t){return t.length===1?this.reparentChildAt(t[0],this.children.length):(t.forEach(e=>this.reparentChildAt(e,this.children.length)),t[0])},reparentChildAt(t,e){if(t.parent===this)return this.setChildIndex(t,e),t;const n=t.worldTransform.clone();t.removeFromParent(),this.addChildAt(t,e);const i=this.worldTransform.clone();return i.invert(),n.prepend(i),t.setFromMatrix(n),t},replaceChild(t,e){t.updateLocalTransform(),this.addChildAt(e,this.getChildIndex(t)),e.setFromMatrix(t.localTransform),e.updateLocalTransform(),this.removeChild(t)}},QQe={collectRenderables(t,e,n){this.parentRenderLayer&&this.parentRenderLayer!==n||this.globalDisplayStatus<7||!this.includeInBuild||(this.sortableChildren&&this.sortChildren(),this.isSimple?this.collectRenderablesSimple(t,e,n):this.renderGroup?e.renderPipes.renderGroup.addRenderGroup(this.renderGroup,t):this.collectRenderablesWithEffects(t,e,n))},collectRenderablesSimple(t,e,n){const i=this.children,r=i.length;for(let s=0;s<r;s++)i[s].collectRenderables(t,e,n)},collectRenderablesWithEffects(t,e,n){const{renderPipes:i}=e;for(let r=0;r<this.effects.length;r++){const s=this.effects[r];i[s.pipe].push(s,this,t)}this.collectRenderablesSimple(t,e,n);for(let r=this.effects.length-1;r>=0;r--){const s=this.effects[r];i[s.pipe].pop(s,this,t)}}};class hq{constructor(){this.pipe="filter",this.priority=1}destroy(){for(let e=0;e<this.filters.length;e++)this.filters[e].destroy();this.filters=null,this.filterArea=null}}class IQe{constructor(){this._effectClasses=[],this._tests=[],this._initialized=!1}init(){this._initialized||(this._initialized=!0,this._effectClasses.forEach(e=>{this.add({test:e.test,maskClass:e})}))}add(e){this._tests.push(e)}getMaskEffect(e){this._initialized||this.init();for(let n=0;n<this._tests.length;n++){const i=this._tests[n];if(i.test(e))return ts.get(i.maskClass,e)}return e}returnMaskEffect(e){ts.return(e)}}const VL=new IQe;In.handleByList(rt.MaskEffect,VL._effectClasses);const jQe={_maskEffect:null,_maskOptions:{inverse:!1},_filterEffect:null,effects:[],_markStructureAsChanged(){const t=this.renderGroup||this.parentRenderGroup;t&&(t.structureDidChange=!0)},addEffect(t){this.effects.indexOf(t)===-1&&(this.effects.push(t),this.effects.sort((n,i)=>n.priority-i.priority),this._markStructureAsChanged(),this._updateIsSimple())},removeEffect(t){const e=this.effects.indexOf(t);e!==-1&&(this.effects.splice(e,1),this._markStructureAsChanged(),this._updateIsSimple())},set mask(t){const e=this._maskEffect;e?.mask!==t&&(e&&(this.removeEffect(e),VL.returnMaskEffect(e),this._maskEffect=null),t!=null&&(this._maskEffect=VL.getMaskEffect(t),this.addEffect(this._maskEffect)))},get mask(){return this._maskEffect?.mask},setMask(t){this._maskOptions={...this._maskOptions,...t},t.mask&&(this.mask=t.mask),this._markStructureAsChanged()},set filters(t){!Array.isArray(t)&&t&&(t=[t]);const e=this._filterEffect||(this._filterEffect=new hq);t=t;const n=t?.length>0,i=e.filters?.length>0,r=n!==i;t=Array.isArray(t)?t.slice(0):t,e.filters=Object.freeze(t),r&&(n?this.addEffect(e):(this.removeEffect(e),e.filters=t??null))},get filters(){return this._filterEffect?.filters},set filterArea(t){this._filterEffect||(this._filterEffect=new hq),this._filterEffect.filterArea=t},get filterArea(){return this._filterEffect?.filterArea}},BQe={label:null,get name(){return wt(wn,"Container.name property has been removed, use Container.label instead"),this.label},set name(t){wt(wn,"Container.name property has been removed, use Container.label instead"),this.label=t},getChildByName(t,e=!1){return this.getChildByLabel(t,e)},getChildByLabel(t,e=!1){const n=this.children;for(let i=0;i<n.length;i++){const r=n[i];if(r.label===t||t instanceof RegExp&&t.test(r.label))return r}if(e)for(let i=0;i<n.length;i++){const s=n[i].getChildByLabel(t,!0);if(s)return s}return null},getChildrenByLabel(t,e=!1,n=[]){const i=this.children;for(let r=0;r<i.length;r++){const s=i[r];(s.label===t||t instanceof RegExp&&t.test(s.label))&&n.push(s)}if(e)for(let r=0;r<i.length;r++)i[r].getChildrenByLabel(t,!0,n);return n}},wr=ts.getPool(pt),Zl=ts.getPool(Po),zQe=new pt,VQe={getFastGlobalBounds(t,e){e||(e=new Po),e.clear(),this._getGlobalBoundsRecursive(!!t,e,this.parentRenderLayer),e.isValid||e.set(0,0,0,0);const n=this.renderGroup||this.parentRenderGroup;return e.applyMatrix(n.worldTransform),e},_getGlobalBoundsRecursive(t,e,n){let i=e;if(t&&this.parentRenderLayer&&this.parentRenderLayer!==n||this.localDisplayStatus!==7||!this.measurable)return;const r=!!this.effects.length;if((this.renderGroup||r)&&(i=Zl.get().clear()),this.boundsArea)e.addRect(this.boundsArea,this.worldTransform);else{if(this.renderPipeId){const o=this.bounds;i.addFrame(o.minX,o.minY,o.maxX,o.maxY,this.groupTransform)}const s=this.children;for(let o=0;o<s.length;o++)s[o]._getGlobalBoundsRecursive(t,i,n)}if(r){let s=!1;const o=this.renderGroup||this.parentRenderGroup;for(let a=0;a<this.effects.length;a++)this.effects[a].addBounds&&(s||(s=!0,i.applyMatrix(o.worldTransform)),this.effects[a].addBounds(i,!0));s&&i.applyMatrix(o.worldTransform.copyTo(zQe).invert()),e.addBounds(i),Zl.return(i)}else this.renderGroup&&(e.addBounds(i,this.relativeGroupTransform),Zl.return(i))}};function Zee(t,e,n){n.clear();let i,r;return t.parent?e?i=t.parent.worldTransform:(r=wr.get().identity(),i=W5(t,r)):i=pt.IDENTITY,Hee(t,n,i,e),r&&wr.return(r),n.isValid||n.set(0,0,0,0),n}function Hee(t,e,n,i){if(!t.visible||!t.measurable)return;let r;i?r=t.worldTransform:(t.updateLocalTransform(),r=wr.get(),r.appendFrom(t.localTransform,n));const s=e,o=!!t.effects.length;if(o&&(e=Zl.get().clear()),t.boundsArea)e.addRect(t.boundsArea,r);else{const a=t.bounds;a&&!a.isEmpty()&&(e.matrix=r,e.addBounds(a));for(let l=0;l<t.children.length;l++)Hee(t.children[l],e,r,i)}if(o){for(let a=0;a<t.effects.length;a++)t.effects[a].addBounds?.(e);s.addBounds(e,pt.IDENTITY),Zl.return(e)}i||wr.return(r)}function W5(t,e){const n=t.parent;return n&&(W5(n,e),n.updateLocalTransform(),e.append(n.localTransform)),e}function Yee(t,e){if(t===16777215||!e)return e;if(e===16777215||!t)return t;const n=t>>16&255,i=t>>8&255,r=t&255,s=e>>16&255,o=e>>8&255,a=e&255,l=n*s/255|0,u=i*o/255|0,d=r*a/255|0;return(l<<16)+(u<<8)+d}const dq=16777215;function fq(t,e){return t===dq?e:e===dq?t:Yee(t,e)}function mS(t){return((t&255)<<16)+(t&65280)+(t>>16&255)}const qQe={getGlobalAlpha(t){if(t)return this.renderGroup?this.renderGroup.worldAlpha:this.parentRenderGroup?this.parentRenderGroup.worldAlpha*this.alpha:this.alpha;let e=this.alpha,n=this.parent;for(;n;)e*=n.alpha,n=n.parent;return e},getGlobalTransform(t=new pt,e){if(e)return t.copyFrom(this.worldTransform);this.updateLocalTransform();const n=W5(this,wr.get().identity());return t.appendFrom(this.localTransform,n),wr.return(n),t},getGlobalTint(t){if(t)return this.renderGroup?mS(this.renderGroup.worldColor):this.parentRenderGroup?mS(fq(this.localColor,this.parentRenderGroup.worldColor)):this.tint;let e=this.localColor,n=this.parent;for(;n;)e=fq(e,n.localColor),n=n.parent;return mS(e)}};function Kee(t,e,n){return e.clear(),n||(n=pt.IDENTITY),Jee(t,e,n,t,!0),e.isValid||e.set(0,0,0,0),e}function Jee(t,e,n,i,r){let s;if(r)s=wr.get(),s=n.copyTo(s);else{if(!t.visible||!t.measurable)return;t.updateLocalTransform();const l=t.localTransform;s=wr.get(),s.appendFrom(l,n)}const o=e,a=!!t.effects.length;if(a&&(e=Zl.get().clear()),t.boundsArea)e.addRect(t.boundsArea,s);else{t.renderPipeId&&(e.matrix=s,e.addBounds(t.bounds));const l=t.children;for(let u=0;u<l.length;u++)Jee(l[u],e,s,i,!1)}if(a){for(let l=0;l<t.effects.length;l++)t.effects[l].addLocalBounds?.(e,i);o.addBounds(e,pt.IDENTITY),Zl.return(e)}wr.return(s)}function ete(t,e){const n=t.children;for(let i=0;i<n.length;i++){const r=n[i],s=r.uid,o=(r._didViewChangeTick&65535)<<16|r._didContainerChangeTick&65535,a=e.index;(e.data[a]!==s||e.data[a+1]!==o)&&(e.data[e.index]=s,e.data[e.index+1]=o,e.didChange=!0),e.index=a+2,r.children.length&&ete(r,e)}return e.didChange}const XQe=new pt,FQe={_localBoundsCacheId:-1,_localBoundsCacheData:null,_setWidth(t,e){const n=Math.sign(this.scale.x)||1;e!==0?this.scale.x=t/e*n:this.scale.x=n},_setHeight(t,e){const n=Math.sign(this.scale.y)||1;e!==0?this.scale.y=t/e*n:this.scale.y=n},getLocalBounds(){this._localBoundsCacheData||(this._localBoundsCacheData={data:[],index:1,didChange:!1,localBounds:new Po});const t=this._localBoundsCacheData;return t.index=1,t.didChange=!1,t.data[0]!==this._didViewChangeTick&&(t.didChange=!0,t.data[0]=this._didViewChangeTick),ete(this,t),t.didChange&&Kee(this,t.localBounds,XQe),t.localBounds},getBounds(t,e){return Zee(this,t,e||new Po)}},UQe={_onRender:null,set onRender(t){const e=this.renderGroup||this.parentRenderGroup;if(!t){this._onRender&&e?.removeOnRender(this),this._onRender=null;return}this._onRender||e?.addOnRender(this),this._onRender=t},get onRender(){return this._onRender}},WQe={_zIndex:0,sortDirty:!1,sortableChildren:!1,get zIndex(){return this._zIndex},set zIndex(t){this._zIndex!==t&&(this._zIndex=t,this.depthOfChildModified())},depthOfChildModified(){this.parent&&(this.parent.sortableChildren=!0,this.parent.sortDirty=!0),this.parentRenderGroup&&(this.parentRenderGroup.structureDidChange=!0)},sortChildren(){this.sortDirty&&(this.sortDirty=!1,this.children.sort(GQe))}};function GQe(t,e){return t._zIndex-e._zIndex}const ZQe={getGlobalPosition(t=new sr,e=!1){return this.parent?this.parent.toGlobal(this._position,t,e):(t.x=this._position.x,t.y=this._position.y),t},toGlobal(t,e,n=!1){const i=this.getGlobalTransform(wr.get(),n);return e=i.apply(t,e),wr.return(i),e},toLocal(t,e,n,i){e&&(t=e.toGlobal(t,n,i));const r=this.getGlobalTransform(wr.get(),i);return n=r.applyInverse(t,n),wr.return(r),n}};class G5{constructor(){this.uid=kn("instructionSet"),this.instructions=[],this.instructionSize=0,this.renderables=[],this.gcTick=0}reset(){this.instructionSize=0}destroy(){this.instructions.length=0,this.renderables.length=0,this.renderPipes=null,this.gcTick=0}add(e){this.instructions[this.instructionSize++]=e}log(){this.instructions.length=this.instructionSize,console.table(this.instructions,["type","action"])}}let HQe=0;class YQe{constructor(e){this._poolKeyHash=Object.create(null),this._texturePool={},this.textureOptions=e||{},this.enableFullScreen=!1,this.textureStyle=new ug(this.textureOptions)}createTexture(e,n,i){const r=new oa({...this.textureOptions,width:e,height:n,resolution:1,antialias:i,autoGarbageCollect:!1});return new qt({source:r,label:`texturePool_${HQe++}`})}getOptimalTexture(e,n,i=1,r){let s=Math.ceil(e*i-1e-6),o=Math.ceil(n*i-1e-6);s=cg(s),o=cg(o);const a=(s<<17)+(o<<1)+(r?1:0);this._texturePool[a]||(this._texturePool[a]=[]);let l=this._texturePool[a].pop();return l||(l=this.createTexture(s,o,r)),l.source._resolution=i,l.source.width=s/i,l.source.height=o/i,l.source.pixelWidth=s,l.source.pixelHeight=o,l.frame.x=0,l.frame.y=0,l.frame.width=e,l.frame.height=n,l.updateUvs(),this._poolKeyHash[l.uid]=a,l}getSameSizeTexture(e,n=!1){const i=e.source;return this.getOptimalTexture(e.width,e.height,i._resolution,n)}returnTexture(e,n=!1){const i=this._poolKeyHash[e.uid];n&&(e.source.style=this.textureStyle),this._texturePool[i].push(e)}clear(e){if(e=e!==!1,e)for(const n in this._texturePool){const i=this._texturePool[n];if(i)for(let r=0;r<i.length;r++)i[r].destroy(!0)}this._texturePool={}}}const Kk=new YQe;cO.register(Kk);class KQe{constructor(){this.renderPipeId="renderGroup",this.root=null,this.canBundle=!1,this.renderGroupParent=null,this.renderGroupChildren=[],this.worldTransform=new pt,this.worldColorAlpha=4294967295,this.worldColor=16777215,this.worldAlpha=1,this.childrenToUpdate=Object.create(null),this.updateTick=0,this.gcTick=0,this.childrenRenderablesToUpdate={list:[],index:0},this.structureDidChange=!0,this.instructionSet=new G5,this._onRenderContainers=[],this.textureNeedsUpdate=!0,this.isCachedAsTexture=!1,this._matrixDirty=7}init(e){this.root=e,e._onRender&&this.addOnRender(e),e.didChange=!0;const n=e.children;for(let i=0;i<n.length;i++){const r=n[i];r._updateFlags=15,this.addChild(r)}}enableCacheAsTexture(e={}){this.textureOptions=e,this.isCachedAsTexture=!0,this.textureNeedsUpdate=!0}disableCacheAsTexture(){this.isCachedAsTexture=!1,this.texture&&(Kk.returnTexture(this.texture,!0),this.texture=null)}updateCacheTexture(){this.textureNeedsUpdate=!0;const e=this._parentCacheAsTextureRenderGroup;e&&!e.textureNeedsUpdate&&e.updateCacheTexture()}reset(){this.renderGroupChildren.length=0;for(const e in this.childrenToUpdate){const n=this.childrenToUpdate[e];n.list.fill(null),n.index=0}this.childrenRenderablesToUpdate.index=0,this.childrenRenderablesToUpdate.list.fill(null),this.root=null,this.updateTick=0,this.structureDidChange=!0,this._onRenderContainers.length=0,this.renderGroupParent=null,this.disableCacheAsTexture()}get localTransform(){return this.root.localTransform}addRenderGroupChild(e){e.renderGroupParent&&e.renderGroupParent._removeRenderGroupChild(e),e.renderGroupParent=this,this.renderGroupChildren.push(e)}_removeRenderGroupChild(e){const n=this.renderGroupChildren.indexOf(e);n>-1&&this.renderGroupChildren.splice(n,1),e.renderGroupParent=null}addChild(e){if(this.structureDidChange=!0,e.parentRenderGroup=this,e.updateTick=-1,e.parent===this.root?e.relativeRenderGroupDepth=1:e.relativeRenderGroupDepth=e.parent.relativeRenderGroupDepth+1,e.didChange=!0,this.onChildUpdate(e),e.renderGroup){this.addRenderGroupChild(e.renderGroup);return}e._onRender&&this.addOnRender(e);const n=e.children;for(let i=0;i<n.length;i++)this.addChild(n[i])}removeChild(e){if(this.structureDidChange=!0,e._onRender&&(e.renderGroup||this.removeOnRender(e)),e.parentRenderGroup=null,e.renderGroup){this._removeRenderGroupChild(e.renderGroup);return}const n=e.children;for(let i=0;i<n.length;i++)this.removeChild(n[i])}removeChildren(e){for(let n=0;n<e.length;n++)this.removeChild(e[n])}onChildUpdate(e){let n=this.childrenToUpdate[e.relativeRenderGroupDepth];n||(n=this.childrenToUpdate[e.relativeRenderGroupDepth]={index:0,list:[]}),n.list[n.index++]=e}updateRenderable(e){e.globalDisplayStatus<7||(this.instructionSet.renderPipes[e.renderPipeId].updateRenderable(e),e.didViewUpdate=!1)}onChildViewUpdate(e){this.childrenRenderablesToUpdate.list[this.childrenRenderablesToUpdate.index++]=e}get isRenderable(){return this.root.localDisplayStatus===7&&this.worldAlpha>0}addOnRender(e){this._onRenderContainers.push(e)}removeOnRender(e){this._onRenderContainers.splice(this._onRenderContainers.indexOf(e),1)}runOnRender(e){for(let n=0;n<this._onRenderContainers.length;n++)this._onRenderContainers[n]._onRender(e)}destroy(){this.disableCacheAsTexture(),this.renderGroupParent=null,this.root=null,this.childrenRenderablesToUpdate=null,this.childrenToUpdate=null,this.renderGroupChildren=null,this._onRenderContainers=null,this.instructionSet=null}getChildren(e=[]){const n=this.root.children;for(let i=0;i<n.length;i++)this._getChildren(n[i],e);return e}_getChildren(e,n=[]){if(n.push(e),e.renderGroup)return n;const i=e.children;for(let r=0;r<i.length;r++)this._getChildren(i[r],n);return n}invalidateMatrices(){this._matrixDirty=7}get inverseWorldTransform(){return(this._matrixDirty&1)===0?this._inverseWorldTransform:(this._matrixDirty&=-2,this._inverseWorldTransform||(this._inverseWorldTransform=new pt),this._inverseWorldTransform.copyFrom(this.worldTransform).invert())}get textureOffsetInverseTransform(){return(this._matrixDirty&2)===0?this._textureOffsetInverseTransform:(this._matrixDirty&=-3,this._textureOffsetInverseTransform||(this._textureOffsetInverseTransform=new pt),this._textureOffsetInverseTransform.copyFrom(this.inverseWorldTransform).translate(-this._textureBounds.x,-this._textureBounds.y))}get inverseParentTextureTransform(){if((this._matrixDirty&4)===0)return this._inverseParentTextureTransform;this._matrixDirty&=-5;const e=this._parentCacheAsTextureRenderGroup;return e?(this._inverseParentTextureTransform||(this._inverseParentTextureTransform=new pt),this._inverseParentTextureTransform.copyFrom(this.worldTransform).prepend(e.inverseWorldTransform).translate(-e._textureBounds.x,-e._textureBounds.y)):this.worldTransform}get cacheToLocalTransform(){return this.isCachedAsTexture?this.textureOffsetInverseTransform:this._parentCacheAsTextureRenderGroup?this._parentCacheAsTextureRenderGroup.textureOffsetInverseTransform:null}}function JQe(t,e,n={}){for(const i in e)!n[i]&&e[i]!==void 0&&(t[i]=e[i])}const jE=new Li(null),y1=new Li(null),BE=new Li(null,1,1),x1=new Li(null),pq=1,e3e=2,zE=4;class $s extends nl{constructor(e={}){super(),this.uid=kn("renderable"),this._updateFlags=15,this.renderGroup=null,this.parentRenderGroup=null,this.parentRenderGroupIndex=0,this.didChange=!1,this.didViewUpdate=!1,this.relativeRenderGroupDepth=0,this.children=[],this.parent=null,this.includeInBuild=!0,this.measurable=!0,this.isSimple=!0,this.parentRenderLayer=null,this.updateTick=-1,this.localTransform=new pt,this.relativeGroupTransform=new pt,this.groupTransform=this.relativeGroupTransform,this.destroyed=!1,this._position=new Li(this,0,0),this._scale=BE,this._pivot=y1,this._origin=x1,this._skew=jE,this._cx=1,this._sx=0,this._cy=0,this._sy=1,this._rotation=0,this.localColor=16777215,this.localAlpha=1,this.groupAlpha=1,this.groupColor=16777215,this.groupColorAlpha=4294967295,this.localBlendMode="inherit",this.groupBlendMode="normal",this.localDisplayStatus=7,this.globalDisplayStatus=7,this._didContainerChangeTick=0,this._didViewChangeTick=0,this._didLocalTransformChangeId=-1,this.effects=[],JQe(this,e,{children:!0,parent:!0,effects:!0}),e.children?.forEach(n=>this.addChild(n)),e.parent?.addChild(this)}static mixin(e){wt("8.8.0","Container.mixin is deprecated, please use extensions.mixin instead."),In.mixin($s,e)}set _didChangeId(e){this._didViewChangeTick=e>>12&4095,this._didContainerChangeTick=e&4095}get _didChangeId(){return this._didContainerChangeTick&4095|(this._didViewChangeTick&4095)<<12}addChild(...e){if(this.allowChildren||wt(wn,"addChild: Only Containers will be allowed to add children in v8.0.0"),e.length>1){for(let r=0;r<e.length;r++)this.addChild(e[r]);return e[0]}const n=e[0],i=this.renderGroup||this.parentRenderGroup;return n.parent===this?(this.children.splice(this.children.indexOf(n),1),this.children.push(n),i&&(i.structureDidChange=!0),n):(n.parent&&n.parent.removeChild(n),this.children.push(n),this.sortableChildren&&(this.sortDirty=!0),n.parent=this,n.didChange=!0,n._updateFlags=15,i&&i.addChild(n),this.emit("childAdded",n,this,this.children.length-1),n.emit("added",this),this._didViewChangeTick++,n._zIndex!==0&&n.depthOfChildModified(),n)}removeChild(...e){if(e.length>1){for(let r=0;r<e.length;r++)this.removeChild(e[r]);return e[0]}const n=e[0],i=this.children.indexOf(n);return i>-1&&(this._didViewChangeTick++,this.children.splice(i,1),this.renderGroup?this.renderGroup.removeChild(n):this.parentRenderGroup&&this.parentRenderGroup.removeChild(n),n.parentRenderLayer&&n.parentRenderLayer.detach(n),n.parent=null,this.emit("childRemoved",n,this,i),n.emit("removed",this)),n}_onUpdate(e){e&&e===this._skew&&this._updateSkew(),this._didContainerChangeTick++,!this.didChange&&(this.didChange=!0,this.parentRenderGroup&&this.parentRenderGroup.onChildUpdate(this))}set isRenderGroup(e){!!this.renderGroup!==e&&(e?this.enableRenderGroup():this.disableRenderGroup())}get isRenderGroup(){return!!this.renderGroup}enableRenderGroup(){if(this.renderGroup)return;const e=this.parentRenderGroup;e?.removeChild(this),this.renderGroup=ts.get(KQe,this),this.groupTransform=pt.IDENTITY,e?.addChild(this),this._updateIsSimple()}disableRenderGroup(){if(!this.renderGroup)return;const e=this.parentRenderGroup;e?.removeChild(this),ts.return(this.renderGroup),this.renderGroup=null,this.groupTransform=this.relativeGroupTransform,e?.addChild(this),this._updateIsSimple()}_updateIsSimple(){this.isSimple=!this.renderGroup&&this.effects.length===0}get worldTransform(){return this._worldTransform||(this._worldTransform=new pt),this.renderGroup?this._worldTransform.copyFrom(this.renderGroup.worldTransform):this.parentRenderGroup&&this._worldTransform.appendFrom(this.relativeGroupTransform,this.parentRenderGroup.worldTransform),this._worldTransform}get x(){return this._position.x}set x(e){this._position.x=e}get y(){return this._position.y}set y(e){this._position.y=e}get position(){return this._position}set position(e){this._position.copyFrom(e)}get rotation(){return this._rotation}set rotation(e){this._rotation!==e&&(this._rotation=e,this._onUpdate(this._skew))}get angle(){return this.rotation*pQe}set angle(e){this.rotation=e*mQe}get pivot(){return this._pivot===y1&&(this._pivot=new Li(this,0,0)),this._pivot}set pivot(e){this._pivot===y1&&(this._pivot=new Li(this,0,0),this._origin!==x1&&Ar("Setting both a pivot and origin on a Container is not recommended. This can lead to unexpected behavior if not handled carefully.")),typeof e=="number"?this._pivot.set(e):this._pivot.copyFrom(e)}get skew(){return this._skew===jE&&(this._skew=new Li(this,0,0)),this._skew}set skew(e){this._skew===jE&&(this._skew=new Li(this,0,0)),this._skew.copyFrom(e)}get scale(){return this._scale===BE&&(this._scale=new Li(this,1,1)),this._scale}set scale(e){this._scale===BE&&(this._scale=new Li(this,0,0)),typeof e=="string"&&(e=parseFloat(e)),typeof e=="number"?this._scale.set(e):this._scale.copyFrom(e)}get origin(){return this._origin===x1&&(this._origin=new Li(this,0,0)),this._origin}set origin(e){this._origin===x1&&(this._origin=new Li(this,0,0),this._pivot!==y1&&Ar("Setting both a pivot and origin on a Container is not recommended. This can lead to unexpected behavior if not handled carefully.")),typeof e=="number"?this._origin.set(e):this._origin.copyFrom(e)}get width(){return Math.abs(this.scale.x*this.getLocalBounds().width)}set width(e){const n=this.getLocalBounds().width;this._setWidth(e,n)}get height(){return Math.abs(this.scale.y*this.getLocalBounds().height)}set height(e){const n=this.getLocalBounds().height;this._setHeight(e,n)}getSize(e){e||(e={});const n=this.getLocalBounds();return e.width=Math.abs(this.scale.x*n.width),e.height=Math.abs(this.scale.y*n.height),e}setSize(e,n){const i=this.getLocalBounds();typeof e=="object"?(n=e.height??e.width,e=e.width):n??(n=e),e!==void 0&&this._setWidth(e,i.width),n!==void 0&&this._setHeight(n,i.height)}_updateSkew(){const e=this._rotation,n=this._skew;this._cx=Math.cos(e+n._y),this._sx=Math.sin(e+n._y),this._cy=-Math.sin(e-n._x),this._sy=Math.cos(e-n._x)}updateTransform(e){return this.position.set(typeof e.x=="number"?e.x:this.position.x,typeof e.y=="number"?e.y:this.position.y),this.scale.set(typeof e.scaleX=="number"?e.scaleX||1:this.scale.x,typeof e.scaleY=="number"?e.scaleY||1:this.scale.y),this.rotation=typeof e.rotation=="number"?e.rotation:this.rotation,this.skew.set(typeof e.skewX=="number"?e.skewX:this.skew.x,typeof e.skewY=="number"?e.skewY:this.skew.y),this.pivot.set(typeof e.pivotX=="number"?e.pivotX:this.pivot.x,typeof e.pivotY=="number"?e.pivotY:this.pivot.y),this.origin.set(typeof e.originX=="number"?e.originX:this.origin.x,typeof e.originY=="number"?e.originY:this.origin.y),this}setFromMatrix(e){e.decompose(this)}updateLocalTransform(){const e=this._didContainerChangeTick;if(this._didLocalTransformChangeId===e)return;this._didLocalTransformChangeId=e;const n=this.localTransform,i=this._scale,r=this._pivot,s=this._origin,o=this._position,a=i._x,l=i._y,u=r._x,d=r._y,f=-s._x,m=-s._y;n.a=this._cx*a,n.b=this._sx*a,n.c=this._cy*l,n.d=this._sy*l,n.tx=o._x-(u*n.a+d*n.c)+(f*n.a+m*n.c)-f,n.ty=o._y-(u*n.b+d*n.d)+(f*n.b+m*n.d)-m}set alpha(e){e!==this.localAlpha&&(this.localAlpha=e,this._updateFlags|=pq,this._onUpdate())}get alpha(){return this.localAlpha}set tint(e){const i=oi.shared.setValue(e??16777215).toBgrNumber();i!==this.localColor&&(this.localColor=i,this._updateFlags|=pq,this._onUpdate())}get tint(){return mS(this.localColor)}set blendMode(e){this.localBlendMode!==e&&(this.parentRenderGroup&&(this.parentRenderGroup.structureDidChange=!0),this._updateFlags|=e3e,this.localBlendMode=e,this._onUpdate())}get blendMode(){return this.localBlendMode}get visible(){return!!(this.localDisplayStatus&2)}set visible(e){const n=e?2:0;(this.localDisplayStatus&2)!==n&&(this.parentRenderGroup&&(this.parentRenderGroup.structureDidChange=!0),this._updateFlags|=zE,this.localDisplayStatus^=2,this._onUpdate())}get culled(){return!(this.localDisplayStatus&4)}set culled(e){const n=e?0:4;(this.localDisplayStatus&4)!==n&&(this.parentRenderGroup&&(this.parentRenderGroup.structureDidChange=!0),this._updateFlags|=zE,this.localDisplayStatus^=4,this._onUpdate())}get renderable(){return!!(this.localDisplayStatus&1)}set renderable(e){const n=e?1:0;(this.localDisplayStatus&1)!==n&&(this._updateFlags|=zE,this.localDisplayStatus^=1,this.parentRenderGroup&&(this.parentRenderGroup.structureDidChange=!0),this._onUpdate())}get isRenderable(){return this.localDisplayStatus===7&&this.groupAlpha>0}destroy(e=!1){if(this.destroyed)return;this.destroyed=!0;let n;if(this.children.length&&(n=this.removeChildren(0,this.children.length)),this.removeFromParent(),this.parent=null,this._maskEffect=null,this._filterEffect=null,this.effects=null,this._position=null,this._scale=null,this._pivot=null,this._origin=null,this._skew=null,this.emit("destroyed",this),this.removeAllListeners(),(typeof e=="boolean"?e:e?.children)&&n)for(let r=0;r<n.length;++r)n[r].destroy(e);this.renderGroup?.destroy(),this.renderGroup=null}}In.mixin($s,NQe,VQe,ZQe,UQe,FQe,jQe,BQe,WQe,EQe,LQe,qQe,QQe);class Z5 extends $s{constructor(e){super(e),this.canBundle=!0,this.allowChildren=!1,this._roundPixels=0,this._lastUsed=-1,this._gpuData=Object.create(null),this.autoGarbageCollect=!0,this._gcLastUsed=-1,this._bounds=new Po(0,1,0,0),this._boundsDirty=!0,this.autoGarbageCollect=e.autoGarbageCollect??!0}get bounds(){return this._boundsDirty?(this.updateBounds(),this._boundsDirty=!1,this._bounds):this._bounds}get roundPixels(){return!!this._roundPixels}set roundPixels(e){this._roundPixels=e?1:0}containsPoint(e){const n=this.bounds,{x:i,y:r}=e;return i>=n.minX&&i<=n.maxX&&r>=n.minY&&r<=n.maxY}onViewUpdate(){if(this._didViewChangeTick++,this._boundsDirty=!0,this.didViewUpdate)return;this.didViewUpdate=!0;const e=this.renderGroup||this.parentRenderGroup;e&&e.onChildViewUpdate(this)}unload(){this.emit("unload",this);for(const e in this._gpuData)this._gpuData[e]?.destroy();this._gpuData=Object.create(null),this.onViewUpdate()}destroy(e){this.unload(),super.destroy(e),this._bounds=null}collectRenderablesSimple(e,n,i){const{renderPipes:r}=n;r.blendMode.pushBlendMode(this,this.groupBlendMode,e);const o=r[this.renderPipeId];o?.addRenderable&&o.addRenderable(this,e),this.didViewUpdate=!1;const a=this.children,l=a.length;for(let u=0;u<l;u++)a[u].collectRenderables(e,n,i);r.blendMode.popBlendMode(e)}}class Mx extends Z5{constructor(e=qt.EMPTY){e instanceof qt&&(e={texture:e});const{texture:n=qt.EMPTY,anchor:i,roundPixels:r,width:s,height:o,...a}=e;super({label:"Sprite",...a}),this.renderPipeId="sprite",this.batched=!0,this._visualBounds={minX:0,maxX:1,minY:0,maxY:0},this._anchor=new Li({_onUpdate:()=>{this.onViewUpdate()}}),i?this.anchor=i:n.defaultAnchor&&(this.anchor=n.defaultAnchor),this.texture=n,this.allowChildren=!1,this.roundPixels=r??!1,s!==void 0&&(this.width=s),o!==void 0&&(this.height=o)}static from(e,n=!1){return e instanceof qt?new Mx(e):new Mx(qt.from(e,n))}set texture(e){e||(e=qt.EMPTY);const n=this._texture;n!==e&&(n&&n.dynamic&&n.off("update",this.onViewUpdate,this),e.dynamic&&e.on("update",this.onViewUpdate,this),this._texture=e,this._width&&this._setWidth(this._width,this._texture.orig.width),this._height&&this._setHeight(this._height,this._texture.orig.height),this.onViewUpdate())}get texture(){return this._texture}get visualBounds(){return Fee(this._visualBounds,this._anchor,this._texture),this._visualBounds}get sourceBounds(){return wt("8.6.1","Sprite.sourceBounds is deprecated, use visualBounds instead."),this.visualBounds}updateBounds(){const e=this._anchor,n=this._texture,i=this._bounds,{width:r,height:s}=n.orig;i.minX=-e._x*r,i.maxX=i.minX+r,i.minY=-e._y*s,i.maxY=i.minY+s}destroy(e=!1){if(super.destroy(e),typeof e=="boolean"?e:e?.texture){const i=typeof e=="boolean"?e:e?.textureSource;this._texture.destroy(i)}this._texture=null,this._visualBounds=null,this._bounds=null,this._anchor=null}get anchor(){return this._anchor}set anchor(e){typeof e=="number"?this._anchor.set(e):this._anchor.copyFrom(e)}get width(){return Math.abs(this.scale.x)*this._texture.orig.width}set width(e){this._setWidth(e,this._texture.orig.width),this._width=e}get height(){return Math.abs(this.scale.y)*this._texture.orig.height}set height(e){this._setHeight(e,this._texture.orig.height),this._height=e}getSize(e){return e||(e={}),e.width=Math.abs(this.scale.x)*this._texture.orig.width,e.height=Math.abs(this.scale.y)*this._texture.orig.height,e}setSize(e,n){typeof e=="object"?(n=e.height??e.width,e=e.width):n??(n=e),e!==void 0&&this._setWidth(e,this._texture.orig.width),n!==void 0&&this._setHeight(n,this._texture.orig.height)}}const t3e=new Po;function tte(t,e,n){const i=t3e;t.measurable=!0,Zee(t,n,i),e.addBoundsMask(i),t.measurable=!1}function nte(t,e,n){const i=Zl.get();t.measurable=!0;const r=wr.get().identity(),s=ite(t,n,r);Kee(t,i,s),t.measurable=!1,e.addBoundsMask(i),wr.return(r),Zl.return(i)}function ite(t,e,n){return t?(t!==e&&(ite(t.parent,e,n),t.updateLocalTransform(),n.append(t.localTransform)),n):(Ar("Mask bounds, renderable is not inside the root container"),n)}class rte{constructor(e){this.priority=0,this.inverse=!1,this.pipe="alphaMask",e?.mask&&this.init(e.mask)}init(e){this.mask=e,this.renderMaskToTexture=!(e instanceof Mx),this.mask.renderable=this.renderMaskToTexture,this.mask.includeInBuild=!this.renderMaskToTexture,this.mask.measurable=!1}reset(){this.mask!==null&&(this.mask.measurable=!0,this.mask=null)}addBounds(e,n){this.inverse||tte(this.mask,e,n)}addLocalBounds(e,n){nte(this.mask,e,n)}containsPoint(e,n){const i=this.mask;return n(i,e)}destroy(){this.reset()}static test(e){return e instanceof Mx}}rte.extension=rt.MaskEffect;class ste{constructor(e){this.priority=0,this.pipe="colorMask",e?.mask&&this.init(e.mask)}init(e){this.mask=e}destroy(){}static test(e){return typeof e=="number"}}ste.extension=rt.MaskEffect;class ote{constructor(e){this.priority=0,this.pipe="stencilMask",e?.mask&&this.init(e.mask)}init(e){this.mask=e,this.mask.includeInBuild=!1,this.mask.measurable=!1}reset(){this.mask!==null&&(this.mask.measurable=!0,this.mask.includeInBuild=!0,this.mask=null)}addBounds(e,n){tte(this.mask,e,n)}addLocalBounds(e,n){nte(this.mask,e,n)}containsPoint(e,n){const i=this.mask;return n(i,e)}destroy(){this.reset()}static test(e){return e instanceof $s}}ote.extension=rt.MaskEffect;const n3e={createCanvas:(t,e)=>{const n=document.createElement("canvas");return n.width=t,n.height=e,n},createImage:()=>new Image,getCanvasRenderingContext2D:()=>CanvasRenderingContext2D,getWebGLRenderingContext:()=>WebGLRenderingContext,getNavigator:()=>navigator,getBaseUrl:()=>document.baseURI??window.location.href,getFontFaceSet:()=>document.fonts,fetch:(t,e)=>fetch(t,e),parseXML:t=>new DOMParser().parseFromString(t,"text/xml")};let mq=n3e;const Es={get(){return mq},set(t){mq=t}};class ate extends oa{constructor(e){e.resource||(e.resource=Es.get().createCanvas()),e.width||(e.width=e.resource.width,e.autoDensity||(e.width/=e.resolution)),e.height||(e.height=e.resource.height,e.autoDensity||(e.height/=e.resolution)),super(e),this.uploadMethodId="image",this.autoDensity=e.autoDensity,this.resizeCanvas(),this.transparent=!!e.transparent}resizeCanvas(){this.autoDensity&&"style"in this.resource&&(this.resource.style.width=`${this.width}px`,this.resource.style.height=`${this.height}px`),(this.resource.width!==this.pixelWidth||this.resource.height!==this.pixelHeight)&&(this.resource.width=this.pixelWidth,this.resource.height=this.pixelHeight)}resize(e=this.width,n=this.height,i=this._resolution){const r=super.resize(e,n,i);return r&&this.resizeCanvas(),r}static test(e){return globalThis.HTMLCanvasElement&&e instanceof HTMLCanvasElement||globalThis.OffscreenCanvas&&e instanceof OffscreenCanvas}get context2D(){return this._context2D||(this._context2D=this.resource.getContext("2d"))}}ate.extension=rt.TextureSource;class zw extends oa{constructor(e){super(e),this.uploadMethodId="image",this.autoGarbageCollect=!0}static test(e){return globalThis.HTMLImageElement&&e instanceof HTMLImageElement||typeof ImageBitmap<"u"&&e instanceof ImageBitmap||globalThis.VideoFrame&&e instanceof VideoFrame}}zw.extension=rt.TextureSource;var Vw=(t=>(t[t.INTERACTION=50]="INTERACTION",t[t.HIGH=25]="HIGH",t[t.NORMAL=0]="NORMAL",t[t.LOW=-25]="LOW",t[t.UTILITY=-50]="UTILITY",t))(Vw||{});class VE{constructor(e,n=null,i=0,r=!1){this.next=null,this.previous=null,this._destroyed=!1,this._fn=e,this._context=n,this.priority=i,this._once=r}match(e,n=null){return this._fn===e&&this._context===n}emit(e){this._fn&&(this._context?this._fn.call(this._context,e):this._fn(e));const n=this.next;return this._once&&this.destroy(!0),this._destroyed&&(this.next=null),n}connect(e){this.previous=e,e.next&&(e.next.previous=this),this.next=e.next,e.next=this}destroy(e=!1){this._destroyed=!0,this._fn=null,this._context=null,this.previous&&(this.previous.next=this.next),this.next&&(this.next.previous=this.previous);const n=this.next;return this.next=e?null:n,this.previous=null,n}}const lte=class vs{constructor(){this.autoStart=!1,this.deltaTime=1,this.lastTime=-1,this.speed=1,this.started=!1,this._requestId=null,this._maxElapsedMS=100,this._minElapsedMS=0,this._protected=!1,this._lastFrame=-1,this._head=new VE(null,null,1/0),this.deltaMS=1/vs.targetFPMS,this.elapsedMS=1/vs.targetFPMS,this._tick=e=>{this._requestId=null,this.started&&(this.update(e),this.started&&this._requestId===null&&this._head.next&&(this._requestId=requestAnimationFrame(this._tick)))}}_requestIfNeeded(){this._requestId===null&&this._head.next&&(this.lastTime=performance.now(),this._lastFrame=this.lastTime,this._requestId=requestAnimationFrame(this._tick))}_cancelIfNeeded(){this._requestId!==null&&(cancelAnimationFrame(this._requestId),this._requestId=null)}_startIfPossible(){this.started?this._requestIfNeeded():this.autoStart&&this.start()}add(e,n,i=Vw.NORMAL){return this._addListener(new VE(e,n,i))}addOnce(e,n,i=Vw.NORMAL){return this._addListener(new VE(e,n,i,!0))}_addListener(e){let n=this._head.next,i=this._head;if(!n)e.connect(i);else{for(;n;){if(e.priority>n.priority){e.connect(i);break}i=n,n=n.next}e.previous||e.connect(i)}return this._startIfPossible(),this}remove(e,n){let i=this._head.next;for(;i;)i.match(e,n)?i=i.destroy():i=i.next;return this._head.next||this._cancelIfNeeded(),this}get count(){if(!this._head)return 0;let e=0,n=this._head;for(;n=n.next;)e++;return e}start(){this.started||(this.started=!0,this._requestIfNeeded())}stop(){this.started&&(this.started=!1,this._cancelIfNeeded())}destroy(){if(!this._protected){this.stop();let e=this._head.next;for(;e;)e=e.destroy(!0);this._head.destroy(),this._head=null}}update(e=performance.now()){let n;if(e>this.lastTime){if(n=this.elapsedMS=e-this.lastTime,n>this._maxElapsedMS&&(n=this._maxElapsedMS),n*=this.speed,this._minElapsedMS){const s=e-this._lastFrame|0;if(s<this._minElapsedMS)return;this._lastFrame=e-s%this._minElapsedMS}this.deltaMS=n,this.deltaTime=this.deltaMS*vs.targetFPMS;const i=this._head;let r=i.next;for(;r;)r=r.emit(this);i.next||this._cancelIfNeeded()}else this.deltaTime=this.deltaMS=this.elapsedMS=0;this.lastTime=e}get FPS(){return 1e3/this.elapsedMS}get minFPS(){return 1e3/this._maxElapsedMS}set minFPS(e){const n=Math.min(this.maxFPS,e),i=Math.min(Math.max(0,n)/1e3,vs.targetFPMS);this._maxElapsedMS=1/i}get maxFPS(){return this._minElapsedMS?Math.round(1e3/this._minElapsedMS):0}set maxFPS(e){if(e===0)this._minElapsedMS=0;else{const n=Math.max(this.minFPS,e);this._minElapsedMS=1/(n/1e3)}}static get shared(){if(!vs._shared){const e=vs._shared=new vs;e.autoStart=!0,e._protected=!0}return vs._shared}static get system(){if(!vs._system){const e=vs._system=new vs;e.autoStart=!0,e._protected=!0}return vs._system}};lte.targetFPMS=.06;let bm=lte,qE;async function i3e(){return qE??(qE=(async()=>{const e=Es.get().createCanvas(1,1).getContext("webgl");if(!e)return"premultiply-alpha-on-upload";const n=await new Promise(o=>{const a=document.createElement("video");a.onloadeddata=()=>o(a),a.onerror=()=>o(null),a.autoplay=!1,a.crossOrigin="anonymous",a.preload="auto",a.src="data:video/webm;base64,GkXfo59ChoEBQveBAULygQRC84EIQoKEd2VibUKHgQJChYECGFOAZwEAAAAAAAHTEU2bdLpNu4tTq4QVSalmU6yBoU27i1OrhBZUrmtTrIHGTbuMU6uEElTDZ1OsggEXTbuMU6uEHFO7a1OsggG97AEAAAAAAABZAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAVSalmoCrXsYMPQkBNgIRMYXZmV0GETGF2ZkSJiEBEAAAAAAAAFlSua8yuAQAAAAAAAEPXgQFzxYgAAAAAAAAAAZyBACK1nIN1bmSIgQCGhVZfVlA5g4EBI+ODhAJiWgDglLCBArqBApqBAlPAgQFVsIRVuYEBElTDZ9Vzc9JjwItjxYgAAAAAAAAAAWfInEWjh0VOQ09ERVJEh49MYXZjIGxpYnZweC12cDlnyKJFo4hEVVJBVElPTkSHlDAwOjAwOjAwLjA0MDAwMDAwMAAAH0O2dcfngQCgwqGggQAAAIJJg0IAABAAFgA4JBwYSgAAICAAEb///4r+AAB1oZ2mm+6BAaWWgkmDQgAAEAAWADgkHBhKAAAgIABIQBxTu2uRu4+zgQC3iveBAfGCAXHwgQM=",a.load()});if(!n)return"premultiply-alpha-on-upload";const i=e.createTexture();e.bindTexture(e.TEXTURE_2D,i);const r=e.createFramebuffer();e.bindFramebuffer(e.FRAMEBUFFER,r),e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,i,0),e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1),e.pixelStorei(e.UNPACK_COLORSPACE_CONVERSION_WEBGL,e.NONE),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,n);const s=new Uint8Array(4);return e.readPixels(0,0,1,1,e.RGBA,e.UNSIGNED_BYTE,s),e.deleteFramebuffer(r),e.deleteTexture(i),e.getExtension("WEBGL_lose_context")?.loseContext(),s[0]<=s[3]?"premultiplied-alpha":"premultiply-alpha-on-upload"})()),qE}const Jk=class cte extends oa{constructor(e){super(e),this.isReady=!1,this.uploadMethodId="video",e={...cte.defaultOptions,...e},this._autoUpdate=!0,this._isConnectedToTicker=!1,this._updateFPS=e.updateFPS||0,this._msToNextUpdate=0,this.autoPlay=e.autoPlay!==!1,this.alphaMode=e.alphaMode??"premultiply-alpha-on-upload",this._videoFrameRequestCallback=this._videoFrameRequestCallback.bind(this),this._videoFrameRequestCallbackHandle=null,this._load=null,this._resolve=null,this._reject=null,this._onCanPlay=this._onCanPlay.bind(this),this._onCanPlayThrough=this._onCanPlayThrough.bind(this),this._onError=this._onError.bind(this),this._onPlayStart=this._onPlayStart.bind(this),this._onPlayStop=this._onPlayStop.bind(this),this._onSeeked=this._onSeeked.bind(this),e.autoLoad!==!1&&this.load()}updateFrame(){if(!this.destroyed){if(this._updateFPS){const e=bm.shared.elapsedMS*this.resource.playbackRate;this._msToNextUpdate=Math.floor(this._msToNextUpdate-e)}(!this._updateFPS||this._msToNextUpdate<=0)&&(this._msToNextUpdate=this._updateFPS?Math.floor(1e3/this._updateFPS):0),this.isValid&&this.update()}}_videoFrameRequestCallback(){this.updateFrame(),this.destroyed?this._videoFrameRequestCallbackHandle=null:this._videoFrameRequestCallbackHandle=this.resource.requestVideoFrameCallback(this._videoFrameRequestCallback)}get isValid(){return!!this.resource.videoWidth&&!!this.resource.videoHeight}async load(){if(this._load)return this._load;const e=this.resource,n=this.options;return(e.readyState===e.HAVE_ENOUGH_DATA||e.readyState===e.HAVE_FUTURE_DATA)&&e.width&&e.height&&(e.complete=!0),e.addEventListener("play",this._onPlayStart),e.addEventListener("pause",this._onPlayStop),e.addEventListener("seeked",this._onSeeked),this._isSourceReady()?this._mediaReady():(n.preload||e.addEventListener("canplay",this._onCanPlay),e.addEventListener("canplaythrough",this._onCanPlayThrough),e.addEventListener("error",this._onError,!0)),this.alphaMode=await i3e(),this._load=new Promise((i,r)=>{this.isValid?i(this):(this._resolve=i,this._reject=r,n.preloadTimeoutMs!==void 0&&(this._preloadTimeout=setTimeout(()=>{this._onError(new ErrorEvent(`Preload exceeded timeout of ${n.preloadTimeoutMs}ms`))})),e.load())}),this._load}_onError(e){this.resource.removeEventListener("error",this._onError,!0),this.emit("error",e),this._reject&&(this._reject(e),this._reject=null,this._resolve=null)}_isSourcePlaying(){const e=this.resource;return!e.paused&&!e.ended}_isSourceReady(){return this.resource.readyState>2}_onPlayStart(){this.isValid||this._mediaReady(),this._configureAutoUpdate()}_onPlayStop(){this._configureAutoUpdate()}_onSeeked(){this._autoUpdate&&!this._isSourcePlaying()&&(this._msToNextUpdate=0,this.updateFrame(),this._msToNextUpdate=0)}_onCanPlay(){this.resource.removeEventListener("canplay",this._onCanPlay),this._mediaReady()}_onCanPlayThrough(){this.resource.removeEventListener("canplaythrough",this._onCanPlay),this._preloadTimeout&&(clearTimeout(this._preloadTimeout),this._preloadTimeout=void 0),this._mediaReady()}_mediaReady(){const e=this.resource;this.isValid&&(this.isReady=!0,this.resize(e.videoWidth,e.videoHeight)),this._msToNextUpdate=0,this.updateFrame(),this._msToNextUpdate=0,this._resolve&&(this._resolve(this),this._resolve=null,this._reject=null),this._isSourcePlaying()?this._onPlayStart():this.autoPlay&&this.resource.play()}destroy(){this._configureAutoUpdate();const e=this.resource;e&&(e.removeEventListener("play",this._onPlayStart),e.removeEventListener("pause",this._onPlayStop),e.removeEventListener("seeked",this._onSeeked),e.removeEventListener("canplay",this._onCanPlay),e.removeEventListener("canplaythrough",this._onCanPlayThrough),e.removeEventListener("error",this._onError,!0),e.pause(),e.src="",e.load()),super.destroy()}get autoUpdate(){return this._autoUpdate}set autoUpdate(e){e!==this._autoUpdate&&(this._autoUpdate=e,this._configureAutoUpdate())}get updateFPS(){return this._updateFPS}set updateFPS(e){e!==this._updateFPS&&(this._updateFPS=e,this._configureAutoUpdate())}_configureAutoUpdate(){this._autoUpdate&&this._isSourcePlaying()?!this._updateFPS&&this.resource.requestVideoFrameCallback?(this._isConnectedToTicker&&(bm.shared.remove(this.updateFrame,this),this._isConnectedToTicker=!1,this._msToNextUpdate=0),this._videoFrameRequestCallbackHandle===null&&(this._videoFrameRequestCallbackHandle=this.resource.requestVideoFrameCallback(this._videoFrameRequestCallback))):(this._videoFrameRequestCallbackHandle!==null&&(this.resource.cancelVideoFrameCallback(this._videoFrameRequestCallbackHandle),this._videoFrameRequestCallbackHandle=null),this._isConnectedToTicker||(bm.shared.add(this.updateFrame,this),this._isConnectedToTicker=!0,this._msToNextUpdate=0)):(this._videoFrameRequestCallbackHandle!==null&&(this.resource.cancelVideoFrameCallback(this._videoFrameRequestCallbackHandle),this._videoFrameRequestCallbackHandle=null),this._isConnectedToTicker&&(bm.shared.remove(this.updateFrame,this),this._isConnectedToTicker=!1,this._msToNextUpdate=0))}static test(e){return globalThis.HTMLVideoElement&&e instanceof HTMLVideoElement}};Jk.extension=rt.TextureSource;Jk.defaultOptions={...oa.defaultOptions,autoLoad:!0,autoPlay:!0,updateFPS:0,crossorigin:!0,loop:!1,muted:!0,playsinline:!0,preload:!1};Jk.MIME_TYPES={ogv:"video/ogg",mov:"video/quicktime",m4v:"video/mp4"};let r3e=Jk;const am=(t,e,n=!1)=>(Array.isArray(t)||(t=[t]),e?t.map(i=>typeof i=="string"||n?e(i):i):t);class s3e{constructor(){this._parsers=[],this._cache=new Map,this._cacheMap=new Map}reset(){this._cacheMap.clear(),this._cache.clear()}has(e){return this._cache.has(e)}get(e){const n=this._cache.get(e);return n||Ar(`[Assets] Asset id ${e} was not found in the Cache`),n}set(e,n){const i=am(e);let r;for(let l=0;l<this.parsers.length;l++){const u=this.parsers[l];if(u.test(n)){r=u.getCacheableAssets(i,n);break}}const s=new Map(Object.entries(r||{}));r||i.forEach(l=>{s.set(l,n)});const o=[...s.keys()],a={cacheKeys:o,keys:i};i.forEach(l=>{this._cacheMap.set(l,a)}),o.forEach(l=>{const u=r?r[l]:n;this._cache.has(l)&&this._cache.get(l)!==u&&Ar("[Cache] already has key:",l),this._cache.set(l,s.get(l))})}remove(e){if(!this._cacheMap.has(e)){Ar(`[Assets] Asset id ${e} was not found in the Cache`);return}const n=this._cacheMap.get(e);n.cacheKeys.forEach(r=>{this._cache.delete(r)}),n.keys.forEach(r=>{this._cacheMap.delete(r)})}get parsers(){return this._parsers}}const lm=new s3e,qL=[];In.handleByList(rt.TextureSource,qL);function ute(t={}){const e=t&&t.resource,n=e?t.resource:t,i=e?t:{resource:t};for(let r=0;r<qL.length;r++){const s=qL[r];if(s.test(n))return new s(i)}throw new Error(`Could not find a source type for resource: ${i.resource}`)}function o3e(t={},e=!1){const n=t&&t.resource,i=n?t.resource:t,r=n?t:{resource:t};if(!e&&lm.has(i))return lm.get(i);const s=new qt({source:ute(r)});return s.on("destroy",()=>{lm.has(i)&&lm.remove(i)}),e||lm.set(i,s),s}function a3e(t,e=!1){return typeof t=="string"?lm.get(t):t instanceof oa?new qt({source:t}):o3e(t,e)}qt.from=a3e;oa.from=ute;In.add(rte,ste,ote,r3e,zw,ate,U5);var hte=(t=>(t[t.Low=0]="Low",t[t.Normal=1]="Normal",t[t.High=2]="High",t))(hte||{});function Fo(t){if(typeof t!="string")throw new TypeError(`Path must be a string. Received ${JSON.stringify(t)}`)}function xy(t){return t.split("?")[0].split("#")[0]}function l3e(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function c3e(t,e,n){return t.replace(new RegExp(l3e(e),"g"),n)}function u3e(t,e){let n="",i=0,r=-1,s=0,o=-1;for(let a=0;a<=t.length;++a){if(a<t.length)o=t.charCodeAt(a);else{if(o===47)break;o=47}if(o===47){if(!(r===a-1||s===1))if(r!==a-1&&s===2){if(n.length<2||i!==2||n.charCodeAt(n.length-1)!==46||n.charCodeAt(n.length-2)!==46){if(n.length>2){const l=n.lastIndexOf("/");if(l!==n.length-1){l===-1?(n="",i=0):(n=n.slice(0,l),i=n.length-1-n.lastIndexOf("/")),r=a,s=0;continue}}else if(n.length===2||n.length===1){n="",i=0,r=a,s=0;continue}}}else n.length>0?n+=`/${t.slice(r+1,a)}`:n=t.slice(r+1,a),i=a-r-1;r=a,s=0}else o===46&&s!==-1?++s:s=-1}return n}const $x={toPosix(t){return c3e(t,"\\","/")},isUrl(t){return/^https?:/.test(this.toPosix(t))},isDataUrl(t){return/^data:([a-z]+\/[a-z0-9-+.]+(;[a-z0-9-.!#$%*+.{}|~`]+=[a-z0-9-.!#$%*+.{}()_|~`]+)*)?(;base64)?,([a-z0-9!$&',()*+;=\-._~:@\/?%\s<>]*?)$/i.test(t)},isBlobUrl(t){return t.startsWith("blob:")},hasProtocol(t){return/^[^/:]+:/.test(this.toPosix(t))},getProtocol(t){Fo(t),t=this.toPosix(t);const e=/^file:\/\/\//.exec(t);if(e)return e[0];const n=/^[^/:]+:\/{0,2}/.exec(t);return n?n[0]:""},toAbsolute(t,e,n){if(Fo(t),this.isDataUrl(t)||this.isBlobUrl(t))return t;const i=xy(this.toPosix(e??Es.get().getBaseUrl())),r=xy(this.toPosix(n??this.rootname(i)));return t=this.toPosix(t),t.startsWith("/")?$x.join(r,t.slice(1)):this.isAbsolute(t)?t:this.join(i,t)},normalize(t){if(Fo(t),t.length===0)return".";if(this.isDataUrl(t)||this.isBlobUrl(t))return t;t=this.toPosix(t);let e="";const n=t.startsWith("/");this.hasProtocol(t)&&(e=this.rootname(t),t=t.slice(e.length));const i=t.endsWith("/");return t=u3e(t),t.length>0&&i&&(t+="/"),n?`/${t}`:e+t},isAbsolute(t){return Fo(t),t=this.toPosix(t),this.hasProtocol(t)?!0:t.startsWith("/")},join(...t){if(t.length===0)return".";let e;for(let n=0;n<t.length;++n){const i=t[n];if(Fo(i),i.length>0)if(e===void 0)e=i;else{const r=t[n-1]??"";this.joinExtensions.includes(this.extname(r).toLowerCase())?e+=`/../${i}`:e+=`/${i}`}}return e===void 0?".":this.normalize(e)},dirname(t){if(Fo(t),t.length===0)return".";t=this.toPosix(t);let e=t.charCodeAt(0);const n=e===47;let i=-1,r=!0;const s=this.getProtocol(t),o=t;t=t.slice(s.length);for(let a=t.length-1;a>=1;--a)if(e=t.charCodeAt(a),e===47){if(!r){i=a;break}}else r=!1;return i===-1?n?"/":this.isUrl(o)?s+t:s:n&&i===1?"//":s+t.slice(0,i)},rootname(t){Fo(t),t=this.toPosix(t);let e="";if(t.startsWith("/")?e="/":e=this.getProtocol(t),this.isUrl(t)){const n=t.indexOf("/",e.length);n!==-1?e=t.slice(0,n):e=t,e.endsWith("/")||(e+="/")}return e},basename(t,e){Fo(t),e&&Fo(e),t=xy(this.toPosix(t));let n=0,i=-1,r=!0,s;if(e!==void 0&&e.length>0&&e.length<=t.length){if(e.length===t.length&&e===t)return"";let o=e.length-1,a=-1;for(s=t.length-1;s>=0;--s){const l=t.charCodeAt(s);if(l===47){if(!r){n=s+1;break}}else a===-1&&(r=!1,a=s+1),o>=0&&(l===e.charCodeAt(o)?--o===-1&&(i=s):(o=-1,i=a))}return n===i?i=a:i===-1&&(i=t.length),t.slice(n,i)}for(s=t.length-1;s>=0;--s)if(t.charCodeAt(s)===47){if(!r){n=s+1;break}}else i===-1&&(r=!1,i=s+1);return i===-1?"":t.slice(n,i)},extname(t){Fo(t),t=xy(this.toPosix(t));let e=-1,n=0,i=-1,r=!0,s=0;for(let o=t.length-1;o>=0;--o){const a=t.charCodeAt(o);if(a===47){if(!r){n=o+1;break}continue}i===-1&&(r=!1,i=o+1),a===46?e===-1?e=o:s!==1&&(s=1):e!==-1&&(s=-1)}return e===-1||i===-1||s===0||s===1&&e===i-1&&e===n+1?"":t.slice(e,i)},parse(t){Fo(t);const e={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return e;t=xy(this.toPosix(t));let n=t.charCodeAt(0);const i=this.isAbsolute(t);let r;e.root=this.rootname(t),i||this.hasProtocol(t)?r=1:r=0;let s=-1,o=0,a=-1,l=!0,u=t.length-1,d=0;for(;u>=r;--u){if(n=t.charCodeAt(u),n===47){if(!l){o=u+1;break}continue}a===-1&&(l=!1,a=u+1),n===46?s===-1?s=u:d!==1&&(d=1):s!==-1&&(d=-1)}return s===-1||a===-1||d===0||d===1&&s===a-1&&s===o+1?a!==-1&&(o===0&&i?e.base=e.name=t.slice(1,a):e.base=e.name=t.slice(o,a)):(o===0&&i?(e.name=t.slice(1,s),e.base=t.slice(1,a)):(e.name=t.slice(o,s),e.base=t.slice(o,a)),e.ext=t.slice(s,a)),e.dir=this.dirname(t),e},sep:"/",delimiter:":",joinExtensions:[".html"]};function dte(t,e,n,i,r){const s=e[n];for(let o=0;o<s.length;o++){const a=s[o];n<e.length-1?dte(t.replace(i[n],a),e,n+1,i,r):r.push(t.replace(i[n],a))}}function h3e(t){const e=/\{(.*?)\}/g,n=t.match(e),i=[];if(n){const r=[];n.forEach(s=>{const o=s.substring(1,s.length-1).split(",");r.push(o)}),dte(t,r,0,n,i)}else i.push(t);return i}const gq=t=>!Array.isArray(t);class fte{constructor(){this._defaultBundleIdentifierOptions={connector:"-",createBundleAssetId:(e,n)=>`${e}${this._bundleIdConnector}${n}`,extractAssetIdFromBundle:(e,n)=>n.replace(`${e}${this._bundleIdConnector}`,"")},this._bundleIdConnector=this._defaultBundleIdentifierOptions.connector,this._createBundleAssetId=this._defaultBundleIdentifierOptions.createBundleAssetId,this._extractAssetIdFromBundle=this._defaultBundleIdentifierOptions.extractAssetIdFromBundle,this._assetMap={},this._preferredOrder=[],this._parsers=[],this._resolverHash={},this._bundles={}}setBundleIdentifier(e){if(this._bundleIdConnector=e.connector??this._bundleIdConnector,this._createBundleAssetId=e.createBundleAssetId??this._createBundleAssetId,this._extractAssetIdFromBundle=e.extractAssetIdFromBundle??this._extractAssetIdFromBundle,this._extractAssetIdFromBundle("foo",this._createBundleAssetId("foo","bar"))!=="bar")throw new Error("[Resolver] GenerateBundleAssetId are not working correctly")}prefer(...e){e.forEach(n=>{this._preferredOrder.push(n),n.priority||(n.priority=Object.keys(n.params))}),this._resolverHash={}}set basePath(e){this._basePath=e}get basePath(){return this._basePath}set rootPath(e){this._rootPath=e}get rootPath(){return this._rootPath}get parsers(){return this._parsers}reset(){this.setBundleIdentifier(this._defaultBundleIdentifierOptions),this._assetMap={},this._preferredOrder=[],this._resolverHash={},this._rootPath=null,this._basePath=null,this._manifest=null,this._bundles={},this._defaultSearchParams=null}setDefaultSearchParams(e){if(typeof e=="string")this._defaultSearchParams=e;else{const n=e;this._defaultSearchParams=Object.keys(n).map(i=>`${encodeURIComponent(i)}=${encodeURIComponent(n[i])}`).join("&")}}getAlias(e){const{alias:n,src:i}=e;return am(n||i,s=>typeof s=="string"?s:Array.isArray(s)?s.map(o=>o?.src??o):s?.src?s.src:s,!0)}addManifest(e){this._manifest&&Ar("[Resolver] Manifest already exists, this will be overwritten"),this._manifest=e,e.bundles.forEach(n=>{this.addBundle(n.name,n.assets)})}addBundle(e,n){const i=[];let r=n;Array.isArray(n)||(r=Object.entries(n).map(([s,o])=>typeof o=="string"||Array.isArray(o)?{alias:s,src:o}:{alias:s,...o})),r.forEach(s=>{const o=s.src,a=s.alias;let l;if(typeof a=="string"){const u=this._createBundleAssetId(e,a);i.push(u),l=[a,u]}else{const u=a.map(d=>this._createBundleAssetId(e,d));i.push(...u),l=[...a,...u]}this.add({...s,alias:l,src:o})}),this._bundles[e]=i}add(e){const n=[];Array.isArray(e)?n.push(...e):n.push(e);let i;i=s=>{this.hasKey(s)&&Ar(`[Resolver] already has key: ${s} overwriting`)},am(n).forEach(s=>{const{src:o}=s;let{data:a,format:l,loadParser:u,parser:d}=s;const f=am(o).map(_=>typeof _=="string"?h3e(_):Array.isArray(_)?_:[_]),m=this.getAlias(s);Array.isArray(m)?m.forEach(i):i(m);const g=[],y=_=>{const v=this._parsers.find(w=>w.test(_));return{src:_,...v?.parse(_)}};f.forEach(_=>{_.forEach(v=>{let w={};if(typeof v!="object"?w=y(v):(a=v.data??a,l=v.format??l,(v.loadParser||v.parser)&&(u=v.loadParser??u,d=v.parser??d),w={...y(v.src),...v}),!m)throw new Error(`[Resolver] alias is undefined for this asset: ${w.src}`);w=this._buildResolvedAsset(w,{aliases:m,data:a,format:l,loadParser:u,parser:d,progressSize:s.progressSize}),g.push(w)})}),m.forEach(_=>{this._assetMap[_]=g})})}resolveBundle(e){const n=gq(e);e=am(e);const i={};return e.forEach(r=>{const s=this._bundles[r];if(s){const o=this.resolve(s),a={};for(const l in o){const u=o[l];a[this._extractAssetIdFromBundle(r,l)]=u}i[r]=a}}),n?i[e[0]]:i}resolveUrl(e){const n=this.resolve(e);if(typeof e!="string"){const i={};for(const r in n)i[r]=n[r].src;return i}return n.src}resolve(e){const n=gq(e);e=am(e);const i={};return e.forEach(r=>{if(!this._resolverHash[r])if(this._assetMap[r]){let s=this._assetMap[r];const o=this._getPreferredOrder(s);o?.priority.forEach(a=>{o.params[a].forEach(l=>{const u=s.filter(d=>d[a]?d[a]===l:!1);u.length&&(s=u)})}),this._resolverHash[r]=s[0]}else this._resolverHash[r]=this._buildResolvedAsset({alias:[r],src:r},{});i[r]=this._resolverHash[r]}),n?i[e[0]]:i}hasKey(e){return!!this._assetMap[e]}hasBundle(e){return!!this._bundles[e]}_getPreferredOrder(e){for(let n=0;n<e.length;n++){const i=e[n],r=this._preferredOrder.find(s=>s.params.format.includes(i.format));if(r)return r}return this._preferredOrder[0]}_appendDefaultSearchParams(e){if(!this._defaultSearchParams)return e;const n=/\?/.test(e)?"&":"?";return`${e}${n}${this._defaultSearchParams}`}_buildResolvedAsset(e,n){const{aliases:i,data:r,loadParser:s,parser:o,format:a,progressSize:l}=n;return(this._basePath||this._rootPath)&&(e.src=$x.toAbsolute(e.src,this._basePath,this._rootPath)),e.alias=i??e.alias??[e.src],e.src=this._appendDefaultSearchParams(e.src),e.data={...r||{},...e.data},e.loadParser=s??e.loadParser,e.parser=o??e.parser,e.format=a??e.format??d3e(e.src),l!==void 0&&(e.progressSize=l),e}}fte.RETINA_PREFIX=/@([0-9\.]+)x/;function d3e(t){return t.split(".").pop().split("?").shift().split("#").shift()}const bq=(t,e)=>{const n=e.split("?")[1];return n&&(t+=`?${n}`),t},pte=class Yy{constructor(e,n){this.linkedSheets=[];let i=e;e?.source instanceof oa&&(i={texture:e,data:n});const{texture:r,data:s,cachePrefix:o=""}=i;this.cachePrefix=o,this._texture=r instanceof qt?r:null,this.textureSource=r.source,this.textures={},this.animations={},this.data=s;const a=parseFloat(s.meta.scale);a?(this.resolution=a,r.source.resolution=this.resolution):this.resolution=r.source._resolution,this._frames=this.data.frames,this._frameKeys=Object.keys(this._frames),this._batchIndex=0,this._callback=null}parse(){return new Promise(e=>{this._callback=e,this._batchIndex=0,this._frameKeys.length<=Yy.BATCH_SIZE?(this._processFrames(0),this._processAnimations(),this._parseComplete()):this._nextBatch()})}parseSync(){return this._processFrames(0,!0),this._processAnimations(),this.textures}_processFrames(e,n=!1){let i=e;const r=n?1/0:Yy.BATCH_SIZE;for(;i-e<r&&i<this._frameKeys.length;){const s=this._frameKeys[i],o=this._frames[s],a=o.frame;if(a){let l=null,u=null;const d=o.trimmed!==!1&&o.sourceSize?o.sourceSize:o.frame,f=new Ln(0,0,Math.floor(d.w)/this.resolution,Math.floor(d.h)/this.resolution);o.rotated?l=new Ln(Math.floor(a.x)/this.resolution,Math.floor(a.y)/this.resolution,Math.floor(a.h)/this.resolution,Math.floor(a.w)/this.resolution):l=new Ln(Math.floor(a.x)/this.resolution,Math.floor(a.y)/this.resolution,Math.floor(a.w)/this.resolution,Math.floor(a.h)/this.resolution),o.trimmed!==!1&&o.spriteSourceSize&&(u=new Ln(Math.floor(o.spriteSourceSize.x)/this.resolution,Math.floor(o.spriteSourceSize.y)/this.resolution,Math.floor(a.w)/this.resolution,Math.floor(a.h)/this.resolution)),this.textures[s]=new qt({source:this.textureSource,frame:l,orig:f,trim:u,rotate:o.rotated?2:0,defaultAnchor:o.anchor,defaultBorders:o.borders,label:s.toString()})}i++}}_processAnimations(){const e=this.data.animations||{};for(const n in e){this.animations[n]=[];for(let i=0;i<e[n].length;i++){const r=e[n][i];this.animations[n].push(this.textures[r])}}}_parseComplete(){const e=this._callback;this._callback=null,this._batchIndex=0,e.call(this,this.textures)}_nextBatch(){this._processFrames(this._batchIndex*Yy.BATCH_SIZE),this._batchIndex++,setTimeout(()=>{this._batchIndex*Yy.BATCH_SIZE<this._frameKeys.length?this._nextBatch():(this._processAnimations(),this._parseComplete())},0)}destroy(e=!1){for(const n in this.textures)this.textures[n].destroy();this._frames=null,this._frameKeys=null,this.data=null,this.textures=null,e&&(this._texture?.destroy(),this.textureSource.destroy()),this._texture=null,this.textureSource=null,this.linkedSheets=[]}};pte.BATCH_SIZE=1e3;let yq=pte;const f3e=["jpg","png","jpeg","avif","webp","basis","etc2","bc7","bc6h","bc5","bc4","bc3","bc2","bc1","eac","astc"];function mte(t,e,n){const i={};if(t.forEach(r=>{i[r]=e}),Object.keys(e.textures).forEach(r=>{i[`${e.cachePrefix}${r}`]=e.textures[r]}),!n){const r=$x.dirname(t[0]);e.linkedSheets.forEach((s,o)=>{const a=mte([`${r}/${e.data.meta.related_multi_packs[o]}`],s,!0);Object.assign(i,a)})}return i}const p3e={extension:rt.Asset,cache:{test:t=>t instanceof yq,getCacheableAssets:(t,e)=>mte(t,e,!1)},resolver:{extension:{type:rt.ResolveParser,name:"resolveSpritesheet"},test:t=>{const n=t.split("?")[0].split("."),i=n.pop(),r=n.pop();return i==="json"&&f3e.includes(r)},parse:t=>{const e=t.split(".");return{resolution:parseFloat(fte.RETINA_PREFIX.exec(t)?.[1]??"1"),format:e[e.length-2],src:t}}},loader:{name:"spritesheetLoader",id:"spritesheet",extension:{type:rt.LoadParser,priority:hte.Normal,name:"spritesheetLoader"},async testParse(t,e){return $x.extname(e.src).toLowerCase()===".json"&&!!t.frames},async parse(t,e,n){const{texture:i,imageFilename:r,textureOptions:s,cachePrefix:o}=e?.data??{};let a=$x.dirname(e.src);a&&a.lastIndexOf("/")!==a.length-1&&(a+="/");let l;if(i instanceof qt)l=i;else{const f=bq(a+(r??t.meta.image),e.src);l=(await n.load([{src:f,data:s}]))[f]}const u=new yq({texture:l.source,data:t,cachePrefix:o});await u.parse();const d=t?.meta?.related_multi_packs;if(Array.isArray(d)){const f=[];for(const g of d){if(typeof g!="string")continue;let y=a+g;e.data?.ignoreMultiPack||(y=bq(y,e.src),f.push(n.load({src:y,data:{textureOptions:s,ignoreMultiPack:!0}})))}const m=await Promise.all(f);u.linkedSheets=m,m.forEach(g=>{g.linkedSheets=[u].concat(u.linkedSheets.filter(y=>y!==g))})}return u},async unload(t,e,n){await n.unload(t.textureSource._sourceOrigin),t.destroy(!1)}}};In.add(p3e);const XE=Object.create(null),xq=Object.create(null);function H5(t,e){let n=xq[t];return n===void 0&&(XE[e]===void 0&&(XE[e]=1),xq[t]=n=XE[e]++),n}let O1;function gte(){return(!O1||O1?.isContextLost())&&(O1=Es.get().createCanvas().getContext("webgl",{})),O1}let _1;function m3e(){if(!_1){_1="mediump";const t=gte();t&&t.getShaderPrecisionFormat&&(_1=t.getShaderPrecisionFormat(t.FRAGMENT_SHADER,t.HIGH_FLOAT).precision?"highp":"mediump")}return _1}function g3e(t,e,n){return e?t:n?(t=t.replace("out vec4 finalColor;",""),`
|
|
@@ -993,7 +993,7 @@ Deprecated since v${t}`,s=typeof console.groupCollapsed=="function"&&!gm.noColor
|
|
|
993
993
|
`}function b3e(t,e,n){const i=n?e.maxSupportedFragmentPrecision:e.maxSupportedVertexPrecision;if(t.substring(0,9)!=="precision"){let r=n?e.requestedFragmentPrecision:e.requestedVertexPrecision;return r==="highp"&&i!=="highp"&&(r="mediump"),`precision ${r} float;
|
|
994
994
|
${t}`}else if(i!=="highp"&&t.substring(0,15)==="precision highp")return t.replace("precision highp","precision mediump");return t}function y3e(t,e){return e?`#version 300 es
|
|
995
995
|
${t}`:t}const x3e={},O3e={};function _3e(t,{name:e="pixi-program"},n=!0){e=e.replace(/\s+/g,"-"),e+=n?"-fragment":"-vertex";const i=n?x3e:O3e;return i[e]?(i[e]++,e+=`-${i[e]}`):i[e]=1,t.indexOf("#define SHADER_NAME")!==-1?t:`${`#define SHADER_NAME ${e}`}
|
|
996
|
-
${t}`}function v3e(t,e){return e?t.replace("#version 300 es",""):t}const FE={stripVersion:v3e,ensurePrecision:b3e,addProgramDefines:g3e,setProgramName:_3e,insertVersion:y3e},Oy=Object.create(null),bte=class XL{constructor(e){e={...XL.defaultOptions,...e};const n=e.fragment.indexOf("#version 300 es")!==-1,i={stripVersion:n,ensurePrecision:{requestedFragmentPrecision:e.preferredFragmentPrecision,requestedVertexPrecision:e.preferredVertexPrecision,maxSupportedVertexPrecision:"highp",maxSupportedFragmentPrecision:m3e()},setProgramName:{name:e.name},addProgramDefines:n,insertVersion:n};let r=e.fragment,s=e.vertex;Object.keys(FE).forEach(o=>{const a=i[o];r=FE[o](r,a,!0),s=FE[o](s,a,!1)}),this.fragment=r,this.vertex=s,this.transformFeedbackVaryings=e.transformFeedbackVaryings,this._key=H5(`${this.vertex}:${this.fragment}`,"gl-program")}destroy(){this.fragment=null,this.vertex=null,this._attributeData=null,this._uniformData=null,this._uniformBlockData=null,this.transformFeedbackVaryings=null,Oy[this._cacheKey]=null}static from(e){const n=`${e.vertex}:${e.fragment}`;return Oy[n]||(Oy[n]=new XL(e),Oy[n]._cacheKey=n),Oy[n]}};bte.defaultOptions={preferredVertexPrecision:"highp",preferredFragmentPrecision:"mediump"};let yte=bte;const Oq={uint8x2:{size:2,stride:2,normalised:!1},uint8x4:{size:4,stride:4,normalised:!1},sint8x2:{size:2,stride:2,normalised:!1},sint8x4:{size:4,stride:4,normalised:!1},unorm8x2:{size:2,stride:2,normalised:!0},unorm8x4:{size:4,stride:4,normalised:!0},snorm8x2:{size:2,stride:2,normalised:!0},snorm8x4:{size:4,stride:4,normalised:!0},uint16x2:{size:2,stride:4,normalised:!1},uint16x4:{size:4,stride:8,normalised:!1},sint16x2:{size:2,stride:4,normalised:!1},sint16x4:{size:4,stride:8,normalised:!1},unorm16x2:{size:2,stride:4,normalised:!0},unorm16x4:{size:4,stride:8,normalised:!0},snorm16x2:{size:2,stride:4,normalised:!0},snorm16x4:{size:4,stride:8,normalised:!0},float16x2:{size:2,stride:4,normalised:!1},float16x4:{size:4,stride:8,normalised:!1},float32:{size:1,stride:4,normalised:!1},float32x2:{size:2,stride:8,normalised:!1},float32x3:{size:3,stride:12,normalised:!1},float32x4:{size:4,stride:16,normalised:!1},uint32:{size:1,stride:4,normalised:!1},uint32x2:{size:2,stride:8,normalised:!1},uint32x3:{size:3,stride:12,normalised:!1},uint32x4:{size:4,stride:16,normalised:!1},sint32:{size:1,stride:4,normalised:!1},sint32x2:{size:2,stride:8,normalised:!1},sint32x3:{size:3,stride:12,normalised:!1},sint32x4:{size:4,stride:16,normalised:!1}};function S3e(t){return Oq[t]??Oq.float32}const w3e={f32:"float32","vec2<f32>":"float32x2","vec3<f32>":"float32x3","vec4<f32>":"float32x4",vec2f:"float32x2",vec3f:"float32x3",vec4f:"float32x4",i32:"sint32","vec2<i32>":"sint32x2","vec3<i32>":"sint32x3","vec4<i32>":"sint32x4",vec2i:"sint32x2",vec3i:"sint32x3",vec4i:"sint32x4",u32:"uint32","vec2<u32>":"uint32x2","vec3<u32>":"uint32x3","vec4<u32>":"uint32x4",vec2u:"uint32x2",vec3u:"uint32x3",vec4u:"uint32x4",bool:"uint32","vec2<bool>":"uint32x2","vec3<bool>":"uint32x3","vec4<bool>":"uint32x4"},_q=/@location\((\d+)\)\s+([a-zA-Z0-9_]+)\s*:\s*([a-zA-Z0-9_<>]+)(?:,|\s|\)|$)/g;function vq(t,e){let n;for(;(n=_q.exec(t))!==null;){const i=w3e[n[3]]??"float32";e[n[2]]={location:parseInt(n[1],10),format:i,stride:S3e(i).stride,offset:0,instance:!1,start:0}}_q.lastIndex=0}function k3e(t){return t.replace(/\/\/.*$/gm,"").replace(/\/\*[\s\S]*?\*\//g,"")}function C3e({source:t,entryPoint:e}){const n={},i=k3e(t),r=i.indexOf(`fn ${e}(`);if(r===-1)return n;const s=i.indexOf("->",r);if(s===-1)return n;const o=i.substring(r,s);if(vq(o,n),Object.keys(n).length===0){const a=o.match(/\(\s*\w+\s*:\s*(\w+)/);if(a){const l=a[1],u=new RegExp(`struct\\s+${l}\\s*\\{([^}]+)\\}`,"s"),d=i.match(u);d&&vq(d[1],n)}}return n}function UE(t){const e=/(^|[^/])@(group|binding)\(\d+\)[^;]+;/g,n=/@group\((\d+)\)/,i=/@binding\((\d+)\)/,r=/var(<[^>]+>)? (\w+)/,s=/:\s*([\w<>]+)/,o=/struct\s+(\w+)\s*{([^}]+)}/g,a=/(\w+)\s*:\s*([\w\<\>]+)/g,l=/struct\s+(\w+)/,u=t.match(e)?.map(f=>({group:parseInt(f.match(n)[1],10),binding:parseInt(f.match(i)[1],10),name:f.match(r)[2],isUniform:f.match(r)[1]==="<uniform>",type:f.match(s)[1]}));if(!u)return{groups:[],structs:[]};const d=t.match(o)?.map(f=>{const m=f.match(l)[1],g=f.match(a).reduce((y,_)=>{const[v,w]=_.split(":");return y[v.trim()]=w.trim(),y},{});return g?{name:m,members:g}:null}).filter(({name:f})=>u.some(m=>m.type===f||m.type.includes(`<${f}>`)))??[];return{groups:u,structs:d}}var fd=(t=>(t[t.VERTEX=1]="VERTEX",t[t.FRAGMENT=2]="FRAGMENT",t[t.COMPUTE=4]="COMPUTE",t))(fd||{});function T3e({groups:t}){const e=[];for(let n=0;n<t.length;n++){const i=t[n];e[i.group]||(e[i.group]=[]),i.isUniform?e[i.group].push({binding:i.binding,visibility:fd.VERTEX|fd.FRAGMENT,buffer:{type:"uniform"}}):i.type==="sampler"?e[i.group].push({binding:i.binding,visibility:fd.FRAGMENT,sampler:{type:"filtering"}}):i.type==="texture_2d"||i.type.startsWith("texture_2d<")?e[i.group].push({binding:i.binding,visibility:fd.FRAGMENT,texture:{sampleType:"float",viewDimension:"2d",multisampled:!1}}):i.type==="texture_2d_array"||i.type.startsWith("texture_2d_array<")?e[i.group].push({binding:i.binding,visibility:fd.FRAGMENT,texture:{sampleType:"float",viewDimension:"2d-array",multisampled:!1}}):(i.type==="texture_cube"||i.type.startsWith("texture_cube<"))&&e[i.group].push({binding:i.binding,visibility:fd.FRAGMENT,texture:{sampleType:"float",viewDimension:"cube",multisampled:!1}})}for(let n=0;n<e.length;n++)e[n]||(e[n]=[]);return e}function P3e({groups:t}){const e=[];for(let n=0;n<t.length;n++){const i=t[n];e[i.group]||(e[i.group]={}),e[i.group][i.name]=i.binding}return e}function A3e(t,e){const n=new Set,i=new Set,r=[...t.structs,...e.structs].filter(o=>n.has(o.name)?!1:(n.add(o.name),!0)),s=[...t.groups,...e.groups].filter(o=>{const a=`${o.name}-${o.binding}`;return i.has(a)?!1:(i.add(a),!0)});return{structs:r,groups:s}}const _y=Object.create(null);class eC{constructor(e){this._layoutKey=0,this._attributeLocationsKey=0;const{fragment:n,vertex:i,layout:r,gpuLayout:s,name:o}=e;if(this.name=o,this.fragment=n,this.vertex=i,n.source===i.source){const a=UE(n.source);this.structsAndGroups=a}else{const a=UE(i.source),l=UE(n.source);this.structsAndGroups=A3e(a,l)}this.layout=r??P3e(this.structsAndGroups),this.gpuLayout=s??T3e(this.structsAndGroups),this.autoAssignGlobalUniforms=this.layout[0]?.globalUniforms!==void 0,this.autoAssignLocalUniforms=this.layout[1]?.localUniforms!==void 0,this._generateProgramKey()}_generateProgramKey(){const{vertex:e,fragment:n}=this,i=e.source+n.source+e.entryPoint+n.entryPoint;this._layoutKey=H5(i,"program")}get attributeData(){return this._attributeData??(this._attributeData=C3e(this.vertex)),this._attributeData}destroy(){this.gpuLayout=null,this.layout=null,this.structsAndGroups=null,this.fragment=null,this.vertex=null,_y[this._cacheKey]=null}static from(e){const n=`${e.vertex.source}:${e.fragment.source}:${e.fragment.entryPoint}:${e.vertex.entryPoint}`;return _y[n]||(_y[n]=new eC(e),_y[n]._cacheKey=n),_y[n]}}const xte=["f32","i32","vec2<f32>","vec3<f32>","vec4<f32>","mat2x2<f32>","mat3x3<f32>","mat4x4<f32>","mat3x2<f32>","mat4x2<f32>","mat2x3<f32>","mat4x3<f32>","mat2x4<f32>","mat3x4<f32>","vec2<i32>","vec3<i32>","vec4<i32>"],R3e=xte.reduce((t,e)=>(t[e]=!0,t),{});function E3e(t,e){switch(t){case"f32":return 0;case"vec2<f32>":return new Float32Array(2*e);case"vec3<f32>":return new Float32Array(3*e);case"vec4<f32>":return new Float32Array(4*e);case"mat2x2<f32>":return new Float32Array([1,0,0,1]);case"mat3x3<f32>":return new Float32Array([1,0,0,0,1,0,0,0,1]);case"mat4x4<f32>":return new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])}return null}const Ote=class _te{constructor(e,n){this._touched=0,this.uid=kn("uniform"),this._resourceType="uniformGroup",this._resourceId=kn("resource"),this.isUniformGroup=!0,this._dirtyId=0,this.destroyed=!1,n={..._te.defaultOptions,...n},this.uniformStructures=e;const i={};for(const r in e){const s=e[r];if(s.name=r,s.size=s.size??1,!R3e[s.type]){const o=s.type.match(/^array<(\w+(?:<\w+>)?),\s*(\d+)>$/);if(o){const[,a,l]=o;throw new Error(`Uniform type ${s.type} is not supported. Use type: '${a}', size: ${l} instead.`)}throw new Error(`Uniform type ${s.type} is not supported. Supported uniform types are: ${xte.join(", ")}`)}s.value??(s.value=E3e(s.type,s.size)),i[r]=s.value}this.uniforms=i,this._dirtyId=1,this.ubo=n.ubo,this.isStatic=n.isStatic,this._signature=H5(Object.keys(i).map(r=>`${r}-${e[r].type}`).join("-"),"uniform-group")}update(){this._dirtyId++}};Ote.defaultOptions={ubo:!1,isStatic:!1};let vte=Ote;class gS{constructor(e){this.resources=Object.create(null),this._dirty=!0;let n=0;for(const i in e){const r=e[i];this.setResource(r,n++)}this._updateKey()}_updateKey(){if(!this._dirty)return;this._dirty=!1;const e=[];let n=0;for(const i in this.resources)e[n++]=this.resources[i]._resourceId;this._key=e.join("|")}setResource(e,n){const i=this.resources[n];e!==i&&(i&&e.off?.("change",this.onResourceChange,this),e.on?.("change",this.onResourceChange,this),this.resources[n]=e,this._dirty=!0)}getResource(e){return this.resources[e]}_touch(e,n){const i=this.resources;for(const r in i)i[r]._gcLastUsed=e,i[r]._touched=n}destroy(){const e=this.resources;for(const n in e)e[n]?.off?.("change",this.onResourceChange,this);this.resources=null}onResourceChange(e){if(this._dirty=!0,e.destroyed){const n=this.resources;for(const i in n)n[i]===e&&(n[i]=null)}else this._updateKey()}}var FL=(t=>(t[t.WEBGL=1]="WEBGL",t[t.WEBGPU=2]="WEBGPU",t[t.CANVAS=4]="CANVAS",t[t.BOTH=3]="BOTH",t))(FL||{});class Y5 extends nl{constructor(e){super(),this.uid=kn("shader"),this._uniformBindMap=Object.create(null),this._ownedBindGroups=[],this._destroyed=!1;let{gpuProgram:n,glProgram:i,groups:r,resources:s,compatibleRenderers:o,groupMap:a}=e;this.gpuProgram=n,this.glProgram=i,o===void 0&&(o=0,n&&(o|=FL.WEBGPU),i&&(o|=FL.WEBGL)),this.compatibleRenderers=o;const l={};if(!s&&!r&&(s={}),s&&r)throw new Error("[Shader] Cannot have both resources and groups");if(!n&&r&&!a)throw new Error("[Shader] No group map or WebGPU shader provided - consider using resources instead.");if(!n&&r&&a)for(const u in a)for(const d in a[u]){const f=a[u][d];l[f]={group:u,binding:d,name:f}}else if(n&&r&&!a){const u=n.structsAndGroups.groups;a={},u.forEach(d=>{a[d.group]=a[d.group]||{},a[d.group][d.binding]=d.name,l[d.name]=d})}else if(s){r={},a={},n&&n.structsAndGroups.groups.forEach(f=>{a[f.group]=a[f.group]||{},a[f.group][f.binding]=f.name,l[f.name]=f});let u=0;for(const d in s)l[d]||(r[99]||(r[99]=new gS,this._ownedBindGroups.push(r[99])),l[d]={group:99,binding:u,name:d},a[99]=a[99]||{},a[99][u]=d,u++);for(const d in s){const f=d;let m=s[d];!m.source&&!m._resourceType&&(m=new vte(m));const g=l[f];g&&(r[g.group]||(r[g.group]=new gS,this._ownedBindGroups.push(r[g.group])),r[g.group].setResource(m,g.binding))}}this.groups=r,this._uniformBindMap=a,this.resources=this._buildResourceAccessor(r,l)}addResource(e,n,i){var r,s;(r=this._uniformBindMap)[n]||(r[n]={}),(s=this._uniformBindMap[n])[i]||(s[i]=e),this.groups[n]||(this.groups[n]=new gS,this._ownedBindGroups.push(this.groups[n]))}_buildResourceAccessor(e,n){const i={};for(const r in n){const s=n[r];Object.defineProperty(i,s.name,{get(){return e[s.group].getResource(s.binding)},set(o){e[s.group].setResource(o,s.binding)}})}return i}destroy(e=!1){this._destroyed||(this._destroyed=!0,this.emit("destroy",this),e&&(this.gpuProgram?.destroy(),this.glProgram?.destroy()),this.gpuProgram=null,this.glProgram=null,this.removeAllListeners(),this._uniformBindMap=null,this._ownedBindGroups.forEach(n=>{n.destroy()}),this._ownedBindGroups=null,this.resources=null,this.groups=null)}static from(e){const{gpu:n,gl:i,...r}=e;let s,o;return n&&(s=eC.from(n)),i&&(o=yte.from(i)),new Y5({gpuProgram:s,glProgram:o,...r})}}const M3e={normal:0,add:1,multiply:2,screen:3,overlay:4,erase:5,"normal-npm":6,"add-npm":7,"screen-npm":8,min:9,max:10},WE=0,GE=1,ZE=2,HE=3,YE=4,KE=5,UL=class Ste{constructor(){this.data=0,this.blendMode="normal",this.polygonOffset=0,this.blend=!0,this.depthMask=!0}get blend(){return!!(this.data&1<<WE)}set blend(e){!!(this.data&1<<WE)!==e&&(this.data^=1<<WE)}get offsets(){return!!(this.data&1<<GE)}set offsets(e){!!(this.data&1<<GE)!==e&&(this.data^=1<<GE)}set cullMode(e){if(e==="none"){this.culling=!1;return}this.culling=!0,this.clockwiseFrontFace=e==="front"}get cullMode(){return this.culling?this.clockwiseFrontFace?"front":"back":"none"}get culling(){return!!(this.data&1<<ZE)}set culling(e){!!(this.data&1<<ZE)!==e&&(this.data^=1<<ZE)}get depthTest(){return!!(this.data&1<<HE)}set depthTest(e){!!(this.data&1<<HE)!==e&&(this.data^=1<<HE)}get depthMask(){return!!(this.data&1<<KE)}set depthMask(e){!!(this.data&1<<KE)!==e&&(this.data^=1<<KE)}get clockwiseFrontFace(){return!!(this.data&1<<YE)}set clockwiseFrontFace(e){!!(this.data&1<<YE)!==e&&(this.data^=1<<YE)}get blendMode(){return this._blendMode}set blendMode(e){this.blend=e!=="none",this._blendMode=e,this._blendModeId=M3e[e]||0}get polygonOffset(){return this._polygonOffset}set polygonOffset(e){this.offsets=!!e,this._polygonOffset=e}toString(){return`[pixi.js/core:State blendMode=${this.blendMode} clockwiseFrontFace=${this.clockwiseFrontFace} culling=${this.culling} depthMask=${this.depthMask} polygonOffset=${this.polygonOffset}]`}static for2d(){const e=new Ste;return e.depthTest=!1,e.blend=!0,e}};UL.default2d=UL.for2d();let wte=UL;const WL=[];In.handleByNamedList(rt.Environment,WL);async function $3e(t){if(!t)for(let e=0;e<WL.length;e++){const n=WL[e];if(n.value.test()){await n.value.load();return}}}let vy;function L3e(){if(typeof vy=="boolean")return vy;try{vy=new Function("param1","param2","param3","return param1[param2] === param3;")({a:"b"},"a","b")===!0}catch{vy=!1}return vy}function Sq(t,e,n=2){const i=e&&e.length,r=i?e[0]*n:t.length;let s=kte(t,0,r,n,!0);const o=[];if(!s||s.next===s.prev)return o;let a,l,u;if(i&&(s=j3e(t,e,s,n)),t.length>80*n){a=t[0],l=t[1];let d=a,f=l;for(let m=n;m<r;m+=n){const g=t[m],y=t[m+1];g<a&&(a=g),y<l&&(l=y),g>d&&(d=g),y>f&&(f=y)}u=Math.max(d-a,f-l),u=u!==0?32767/u:0}return Lx(s,o,n,a,l,u,0),o}function kte(t,e,n,i,r){let s;if(r===H3e(t,e,n,i)>0)for(let o=e;o<n;o+=i)s=wq(o/i|0,t[o],t[o+1],s);else for(let o=n-i;o>=e;o-=i)s=wq(o/i|0,t[o],t[o+1],s);return s&&dg(s,s.next)&&(Nx(s),s=s.next),s}function ff(t,e){if(!t)return t;e||(e=t);let n=t,i;do if(i=!1,!n.steiner&&(dg(n,n.next)||yn(n.prev,n,n.next)===0)){if(Nx(n),n=e=n.prev,n===n.next)break;i=!0}else n=n.next;while(i||n!==e);return e}function Lx(t,e,n,i,r,s,o){if(!t)return;!o&&s&&X3e(t,i,r,s);let a=t;for(;t.prev!==t.next;){const l=t.prev,u=t.next;if(s?N3e(t,i,r,s):D3e(t)){e.push(l.i,t.i,u.i),Nx(t),t=u.next,a=u.next;continue}if(t=u,t===a){o?o===1?(t=Q3e(ff(t),e),Lx(t,e,n,i,r,s,2)):o===2&&I3e(t,e,n,i,r,s):Lx(ff(t),e,n,i,r,s,1);break}}}function D3e(t){const e=t.prev,n=t,i=t.next;if(yn(e,n,i)>=0)return!1;const r=e.x,s=n.x,o=i.x,a=e.y,l=n.y,u=i.y,d=Math.min(r,s,o),f=Math.min(a,l,u),m=Math.max(r,s,o),g=Math.max(a,l,u);let y=i.next;for(;y!==e;){if(y.x>=d&&y.x<=m&&y.y>=f&&y.y<=g&&Ky(r,a,s,l,o,u,y.x,y.y)&&yn(y.prev,y,y.next)>=0)return!1;y=y.next}return!0}function N3e(t,e,n,i){const r=t.prev,s=t,o=t.next;if(yn(r,s,o)>=0)return!1;const a=r.x,l=s.x,u=o.x,d=r.y,f=s.y,m=o.y,g=Math.min(a,l,u),y=Math.min(d,f,m),_=Math.max(a,l,u),v=Math.max(d,f,m),w=GL(g,y,e,n,i),T=GL(_,v,e,n,i);let C=t.prevZ,E=t.nextZ;for(;C&&C.z>=w&&E&&E.z<=T;){if(C.x>=g&&C.x<=_&&C.y>=y&&C.y<=v&&C!==r&&C!==o&&Ky(a,d,l,f,u,m,C.x,C.y)&&yn(C.prev,C,C.next)>=0||(C=C.prevZ,E.x>=g&&E.x<=_&&E.y>=y&&E.y<=v&&E!==r&&E!==o&&Ky(a,d,l,f,u,m,E.x,E.y)&&yn(E.prev,E,E.next)>=0))return!1;E=E.nextZ}for(;C&&C.z>=w;){if(C.x>=g&&C.x<=_&&C.y>=y&&C.y<=v&&C!==r&&C!==o&&Ky(a,d,l,f,u,m,C.x,C.y)&&yn(C.prev,C,C.next)>=0)return!1;C=C.prevZ}for(;E&&E.z<=T;){if(E.x>=g&&E.x<=_&&E.y>=y&&E.y<=v&&E!==r&&E!==o&&Ky(a,d,l,f,u,m,E.x,E.y)&&yn(E.prev,E,E.next)>=0)return!1;E=E.nextZ}return!0}function Q3e(t,e){let n=t;do{const i=n.prev,r=n.next.next;!dg(i,r)&&Tte(i,n,n.next,r)&&Dx(i,r)&&Dx(r,i)&&(e.push(i.i,n.i,r.i),Nx(n),Nx(n.next),n=t=r),n=n.next}while(n!==t);return ff(n)}function I3e(t,e,n,i,r,s){let o=t;do{let a=o.next.next;for(;a!==o.prev;){if(o.i!==a.i&&W3e(o,a)){let l=Pte(o,a);o=ff(o,o.next),l=ff(l,l.next),Lx(o,e,n,i,r,s,0),Lx(l,e,n,i,r,s,0);return}a=a.next}o=o.next}while(o!==t)}function j3e(t,e,n,i){const r=[];for(let s=0,o=e.length;s<o;s++){const a=e[s]*i,l=s<o-1?e[s+1]*i:t.length,u=kte(t,a,l,i,!1);u===u.next&&(u.steiner=!0),r.push(U3e(u))}r.sort(B3e);for(let s=0;s<r.length;s++)n=z3e(r[s],n);return n}function B3e(t,e){let n=t.x-e.x;if(n===0&&(n=t.y-e.y,n===0)){const i=(t.next.y-t.y)/(t.next.x-t.x),r=(e.next.y-e.y)/(e.next.x-e.x);n=i-r}return n}function z3e(t,e){const n=V3e(t,e);if(!n)return e;const i=Pte(n,t);return ff(i,i.next),ff(n,n.next)}function V3e(t,e){let n=e;const i=t.x,r=t.y;let s=-1/0,o;if(dg(t,n))return n;do{if(dg(t,n.next))return n.next;if(r<=n.y&&r>=n.next.y&&n.next.y!==n.y){const f=n.x+(r-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(f<=i&&f>s&&(s=f,o=n.x<n.next.x?n:n.next,f===i))return o}n=n.next}while(n!==e);if(!o)return null;const a=o,l=o.x,u=o.y;let d=1/0;n=o;do{if(i>=n.x&&n.x>=l&&i!==n.x&&Cte(r<u?i:s,r,l,u,r<u?s:i,r,n.x,n.y)){const f=Math.abs(r-n.y)/(i-n.x);Dx(n,t)&&(f<d||f===d&&(n.x>o.x||n.x===o.x&&q3e(o,n)))&&(o=n,d=f)}n=n.next}while(n!==a);return o}function q3e(t,e){return yn(t.prev,t,e.prev)<0&&yn(e.next,t,t.next)<0}function X3e(t,e,n,i){let r=t;do r.z===0&&(r.z=GL(r.x,r.y,e,n,i)),r.prevZ=r.prev,r.nextZ=r.next,r=r.next;while(r!==t);r.prevZ.nextZ=null,r.prevZ=null,F3e(r)}function F3e(t){let e,n=1;do{let i=t,r;t=null;let s=null;for(e=0;i;){e++;let o=i,a=0;for(let u=0;u<n&&(a++,o=o.nextZ,!!o);u++);let l=n;for(;a>0||l>0&&o;)a!==0&&(l===0||!o||i.z<=o.z)?(r=i,i=i.nextZ,a--):(r=o,o=o.nextZ,l--),s?s.nextZ=r:t=r,r.prevZ=s,s=r;i=o}s.nextZ=null,n*=2}while(e>1);return t}function GL(t,e,n,i,r){return t=(t-n)*r|0,e=(e-i)*r|0,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t|e<<1}function U3e(t){let e=t,n=t;do(e.x<n.x||e.x===n.x&&e.y<n.y)&&(n=e),e=e.next;while(e!==t);return n}function Cte(t,e,n,i,r,s,o,a){return(r-o)*(e-a)>=(t-o)*(s-a)&&(t-o)*(i-a)>=(n-o)*(e-a)&&(n-o)*(s-a)>=(r-o)*(i-a)}function Ky(t,e,n,i,r,s,o,a){return!(t===o&&e===a)&&Cte(t,e,n,i,r,s,o,a)}function W3e(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!G3e(t,e)&&(Dx(t,e)&&Dx(e,t)&&Z3e(t,e)&&(yn(t.prev,t,e.prev)||yn(t,e.prev,e))||dg(t,e)&&yn(t.prev,t,t.next)>0&&yn(e.prev,e,e.next)>0)}function yn(t,e,n){return(e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y)}function dg(t,e){return t.x===e.x&&t.y===e.y}function Tte(t,e,n,i){const r=S1(yn(t,e,n)),s=S1(yn(t,e,i)),o=S1(yn(n,i,t)),a=S1(yn(n,i,e));return!!(r!==s&&o!==a||r===0&&v1(t,n,e)||s===0&&v1(t,i,e)||o===0&&v1(n,t,i)||a===0&&v1(n,e,i))}function v1(t,e,n){return e.x<=Math.max(t.x,n.x)&&e.x>=Math.min(t.x,n.x)&&e.y<=Math.max(t.y,n.y)&&e.y>=Math.min(t.y,n.y)}function S1(t){return t>0?1:t<0?-1:0}function G3e(t,e){let n=t;do{if(n.i!==t.i&&n.next.i!==t.i&&n.i!==e.i&&n.next.i!==e.i&&Tte(n,n.next,t,e))return!0;n=n.next}while(n!==t);return!1}function Dx(t,e){return yn(t.prev,t,t.next)<0?yn(t,e,t.next)>=0&&yn(t,t.prev,e)>=0:yn(t,e,t.prev)<0||yn(t,t.next,e)<0}function Z3e(t,e){let n=t,i=!1;const r=(t.x+e.x)/2,s=(t.y+e.y)/2;do n.y>s!=n.next.y>s&&n.next.y!==n.y&&r<(n.next.x-n.x)*(s-n.y)/(n.next.y-n.y)+n.x&&(i=!i),n=n.next;while(n!==t);return i}function Pte(t,e){const n=ZL(t.i,t.x,t.y),i=ZL(e.i,e.x,e.y),r=t.next,s=e.prev;return t.next=e,e.prev=t,n.next=r,r.prev=n,i.next=n,n.prev=i,s.next=i,i.prev=s,i}function wq(t,e,n,i){const r=ZL(t,e,n);return i?(r.next=i.next,r.prev=i,i.next.prev=r,i.next=r):(r.prev=r,r.next=r),r}function Nx(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function ZL(t,e,n){return{i:t,x:e,y:n,prev:null,next:null,z:0,prevZ:null,nextZ:null,steiner:!1}}function H3e(t,e,n,i){let r=0;for(let s=e,o=n-i;s<n;s+=i)r+=(t[o]-t[s])*(t[s+1]+t[o+1]),o=s;return r}const Y3e=Sq.default||Sq;var Ate=(t=>(t[t.NONE=0]="NONE",t[t.COLOR=16384]="COLOR",t[t.STENCIL=1024]="STENCIL",t[t.DEPTH=256]="DEPTH",t[t.COLOR_DEPTH=16640]="COLOR_DEPTH",t[t.COLOR_STENCIL=17408]="COLOR_STENCIL",t[t.DEPTH_STENCIL=1280]="DEPTH_STENCIL",t[t.ALL=17664]="ALL",t))(Ate||{});class K3e{constructor(e){this.items=[],this._name=e}emit(e,n,i,r,s,o,a,l){const{name:u,items:d}=this;for(let f=0,m=d.length;f<m;f++)d[f][u](e,n,i,r,s,o,a,l);return this}add(e){return e[this._name]&&(this.remove(e),this.items.push(e)),this}remove(e){const n=this.items.indexOf(e);return n!==-1&&this.items.splice(n,1),this}contains(e){return this.items.indexOf(e)!==-1}removeAll(){return this.items.length=0,this}destroy(){this.removeAll(),this.items=null,this._name=null}get empty(){return this.items.length===0}get name(){return this._name}}const J3e=["init","destroy","contextChange","resolutionChange","resetState","renderEnd","renderStart","render","update","postrender","prerender"],Rte=class Ete extends nl{constructor(e){super(),this.tick=0,this.uid=kn("renderer"),this.runners=Object.create(null),this.renderPipes=Object.create(null),this._initOptions={},this._systemsHash=Object.create(null),this.type=e.type,this.name=e.name,this.config=e;const n=[...J3e,...this.config.runners??[]];this._addRunners(...n),this._unsafeEvalCheck()}async init(e={}){const n=e.skipExtensionImports===!0?!0:e.manageImports===!1;await $3e(n),this._addSystems(this.config.systems),this._addPipes(this.config.renderPipes,this.config.renderPipeAdaptors);for(const i in this._systemsHash)e={...this._systemsHash[i].constructor.defaultOptions,...e};e={...Ete.defaultOptions,...e},this._roundPixels=e.roundPixels?1:0;for(let i=0;i<this.runners.init.items.length;i++)await this.runners.init.items[i].init(e);this._initOptions=e}render(e,n){this.tick++;let i=e;if(i instanceof $s&&(i={container:i},n&&(wt(wn,"passing a second argument is deprecated, please use render options instead"),i.target=n.renderTexture)),i.target||(i.target=this.view.renderTarget),i.target===this.view.renderTarget&&(this._lastObjectRendered=i.container,i.clearColor??(i.clearColor=this.background.colorRgba),i.clear??(i.clear=this.background.clearBeforeRender)),i.clearColor){const r=Array.isArray(i.clearColor)&&i.clearColor.length===4;i.clearColor=r?i.clearColor:oi.shared.setValue(i.clearColor).toArray()}i.transform||(i.container.updateLocalTransform(),i.transform=i.container.localTransform),i.container.visible&&(i.container.enableRenderGroup(),this.runners.prerender.emit(i),this.runners.renderStart.emit(i),this.runners.render.emit(i),this.runners.renderEnd.emit(i),this.runners.postrender.emit(i))}resize(e,n,i){const r=this.view.resolution;this.view.resize(e,n,i),this.emit("resize",this.view.screen.width,this.view.screen.height,this.view.resolution),i!==void 0&&i!==r&&this.runners.resolutionChange.emit(i)}clear(e={}){const n=this;e.target||(e.target=n.renderTarget.renderTarget),e.clearColor||(e.clearColor=this.background.colorRgba),e.clear??(e.clear=Ate.ALL);const{clear:i,clearColor:r,target:s,mipLevel:o,layer:a}=e;oi.shared.setValue(r??this.background.colorRgba),n.renderTarget.clear(s,i,oi.shared.toArray(),o??0,a??0)}get resolution(){return this.view.resolution}set resolution(e){this.view.resolution=e,this.runners.resolutionChange.emit(e)}get width(){return this.view.texture.frame.width}get height(){return this.view.texture.frame.height}get canvas(){return this.view.canvas}get lastObjectRendered(){return this._lastObjectRendered}get renderingToScreen(){return this.renderTarget.renderingToScreen}get screen(){return this.view.screen}_addRunners(...e){e.forEach(n=>{this.runners[n]=new K3e(n)})}_addSystems(e){let n;for(n in e){const i=e[n];this._addSystem(i.value,i.name)}}_addSystem(e,n){const i=new e(this);if(this[n])throw new Error(`Whoops! The name "${n}" is already in use`);this[n]=i,this._systemsHash[n]=i;for(const r in this.runners)this.runners[r].add(i);return this}_addPipes(e,n){const i=n.reduce((r,s)=>(r[s.name]=s.value,r),{});e.forEach(r=>{const s=r.value,o=r.name,a=i[o];this.renderPipes[o]=new s(this,a?new a:null),this.runners.destroy.add(this.renderPipes[o])})}destroy(e=!1){this.runners.destroy.items.reverse(),this.runners.destroy.emit(e),(e===!0||typeof e=="object"&&e.releaseGlobalResources)&&cO.release(),Object.values(this.runners).forEach(n=>{n.destroy()}),this._systemsHash=null,this.renderPipes=null}generateTexture(e){return this.textureGenerator.generateTexture(e)}get roundPixels(){return!!this._roundPixels}_unsafeEvalCheck(){if(!L3e())throw new Error("Current environment does not allow unsafe-eval, please use pixi.js/unsafe-eval module to enable support.")}resetState(){this.runners.resetState.emit()}};Rte.defaultOptions={resolution:1,failIfMajorPerformanceCaveat:!1,roundPixels:!1};let Mte=Rte,w1;function eIe(t){return w1!==void 0||(w1=(()=>{const e={stencil:!0,failIfMajorPerformanceCaveat:t??Mte.defaultOptions.failIfMajorPerformanceCaveat};try{if(!Es.get().getWebGLRenderingContext())return!1;let i=Es.get().createCanvas().getContext("webgl",e);const r=!!i?.getContextAttributes()?.stencil;if(i){const s=i.getExtension("WEBGL_lose_context");s&&s.loseContext()}return i=null,r}catch{return!1}})()),w1}let k1;async function tIe(t={}){return k1!==void 0||(k1=await(async()=>{const e=Es.get().getNavigator().gpu;if(!e)return!1;try{return await(await e.requestAdapter(t)).requestDevice(),!0}catch{return!1}})()),k1}const kq=["webgl","webgpu","canvas"];async function nIe(t){let e=[];t.preference?(e.push(t.preference),kq.forEach(s=>{s!==t.preference&&e.push(s)})):e=kq.slice();let n,i={};for(let s=0;s<e.length;s++){const o=e[s];if(o==="webgpu"&&await tIe()){const{WebGPURenderer:a}=await M(async()=>{const{WebGPURenderer:l}=await import("./WebGPURenderer-CnUVPIau.js");return{WebGPURenderer:l}},__vite__mapDeps([106,107,108,105]));n=a,i={...t,...t.webgpu};break}else if(o==="webgl"&&eIe(t.failIfMajorPerformanceCaveat??Mte.defaultOptions.failIfMajorPerformanceCaveat)){const{WebGLRenderer:a}=await M(async()=>{const{WebGLRenderer:l}=await import("./WebGLRenderer-D-p2Wvph.js");return{WebGLRenderer:l}},__vite__mapDeps([109,107,108,105]));n=a,i={...t,...t.webgl};break}else if(o==="canvas"){const{CanvasRenderer:a}=await M(async()=>{const{CanvasRenderer:l}=await import("./CanvasRenderer-C-_Ei4Lx.js");return{CanvasRenderer:l}},__vite__mapDeps([110,108,105]));n=a,i={...t,...t.canvasOptions};break}}if(delete i.webgpu,delete i.webgl,delete i.canvasOptions,!n)throw new Error("No available renderer for the current environment");const r=new n;return await r.init(i),r}const $te="8.16.0";class Lte{static init(){globalThis.__PIXI_APP_INIT__?.(this,$te)}static destroy(){}}Lte.extension=rt.Application;class iIe{constructor(e){this._renderer=e}init(){globalThis.__PIXI_RENDERER_INIT__?.(this._renderer,$te)}destroy(){this._renderer=null}}iIe.extension={type:[rt.WebGLSystem,rt.WebGPUSystem],name:"initHook",priority:-10};class Dte{static init(e){Object.defineProperty(this,"resizeTo",{configurable:!0,set(n){globalThis.removeEventListener("resize",this.queueResize),this._resizeTo=n,n&&(globalThis.addEventListener("resize",this.queueResize),this.resize())},get(){return this._resizeTo}}),this.queueResize=()=>{this._resizeTo&&(this._cancelResize(),this._resizeId=requestAnimationFrame(()=>this.resize()))},this._cancelResize=()=>{this._resizeId&&(cancelAnimationFrame(this._resizeId),this._resizeId=null)},this.resize=()=>{if(!this._resizeTo)return;this._cancelResize();let n,i;if(this._resizeTo===globalThis.window)n=globalThis.innerWidth,i=globalThis.innerHeight;else{const{clientWidth:r,clientHeight:s}=this._resizeTo;n=r,i=s}this.renderer.resize(n,i),this.render()},this._resizeId=null,this._resizeTo=null,this.resizeTo=e.resizeTo||null}static destroy(){globalThis.removeEventListener("resize",this.queueResize),this._cancelResize(),this._cancelResize=null,this.queueResize=null,this.resizeTo=null,this.resize=null}}Dte.extension=rt.Application;class Nte{static init(e){e=Object.assign({autoStart:!0,sharedTicker:!1},e),Object.defineProperty(this,"ticker",{configurable:!0,set(n){this._ticker&&this._ticker.remove(this.render,this),this._ticker=n,n&&n.add(this.render,this,Vw.LOW)},get(){return this._ticker}}),this.stop=()=>{this._ticker.stop()},this.start=()=>{this._ticker.start()},this._ticker=null,this.ticker=e.sharedTicker?bm.shared:new bm,e.autoStart&&this.start()}static destroy(){if(this._ticker){const e=this._ticker;this.ticker=null,e.destroy()}}}Nte.extension=rt.Application;In.add(Dte);In.add(Nte);const Qte=class HL{constructor(...e){this.stage=new $s,e[0]!==void 0&&wt(wn,"Application constructor options are deprecated, please use Application.init() instead.")}async init(e){e={...e},this.stage||(this.stage=new $s),this.renderer=await nIe(e),HL._plugins.forEach(n=>{n.init.call(this,e)})}render(){this.renderer.render({container:this.stage})}get canvas(){return this.renderer.canvas}get view(){return wt(wn,"Application.view is deprecated, please use Application.canvas instead."),this.renderer.canvas}get screen(){return this.renderer.screen}destroy(e=!1,n=!1){const i=HL._plugins.slice(0);i.reverse(),i.forEach(r=>{r.destroy.call(this)}),this.stage.destroy(n),this.stage=null,this.renderer.destroy(e),this.renderer=null}};Qte._plugins=[];let tC=Qte;In.handleByList(rt.Application,tC._plugins);In.add(Lte);var JE,Cq;function rIe(){if(Cq)return JE;Cq=1,JE=n;var t={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},e=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function n(s){var o=[];return s.replace(e,function(a,l,u){var d=l.toLowerCase();for(u=r(u),d=="m"&&u.length>2&&(o.push([l].concat(u.splice(0,2))),d="l",l=l=="m"?"l":"L");;){if(u.length==t[d])return u.unshift(l),o.push(u);if(u.length<t[d])throw new Error("malformed path data");o.push([l].concat(u.splice(0,t[d])))}}),o}var i=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/ig;function r(s){var o=s.match(i);return o?o.map(Number):[]}return JE}var sIe=rIe();const oIe=jx(sIe);function aIe(t,e){const n=oIe(t),i=[];let r=null,s=0,o=0;for(let a=0;a<n.length;a++){const l=n[a],u=l[0],d=l;switch(u){case"M":s=d[1],o=d[2],e.moveTo(s,o);break;case"m":s+=d[1],o+=d[2],e.moveTo(s,o);break;case"H":s=d[1],e.lineTo(s,o);break;case"h":s+=d[1],e.lineTo(s,o);break;case"V":o=d[1],e.lineTo(s,o);break;case"v":o+=d[1],e.lineTo(s,o);break;case"L":s=d[1],o=d[2],e.lineTo(s,o);break;case"l":s+=d[1],o+=d[2],e.lineTo(s,o);break;case"C":s=d[5],o=d[6],e.bezierCurveTo(d[1],d[2],d[3],d[4],s,o);break;case"c":e.bezierCurveTo(s+d[1],o+d[2],s+d[3],o+d[4],s+d[5],o+d[6]),s+=d[5],o+=d[6];break;case"S":s=d[3],o=d[4],e.bezierCurveToShort(d[1],d[2],s,o);break;case"s":e.bezierCurveToShort(s+d[1],o+d[2],s+d[3],o+d[4]),s+=d[3],o+=d[4];break;case"Q":s=d[3],o=d[4],e.quadraticCurveTo(d[1],d[2],s,o);break;case"q":e.quadraticCurveTo(s+d[1],o+d[2],s+d[3],o+d[4]),s+=d[3],o+=d[4];break;case"T":s=d[1],o=d[2],e.quadraticCurveToShort(s,o);break;case"t":s+=d[1],o+=d[2],e.quadraticCurveToShort(s,o);break;case"A":s=d[6],o=d[7],e.arcToSvg(d[1],d[2],d[3],d[4],d[5],s,o);break;case"a":s+=d[6],o+=d[7],e.arcToSvg(d[1],d[2],d[3],d[4],d[5],s,o);break;case"Z":case"z":e.closePath(),i.length>0&&(r=i.pop(),r?(s=r.startX,o=r.startY):(s=0,o=0)),r=null;break;default:Ar(`Unknown SVG path command: ${u}`)}u!=="Z"&&u!=="z"&&r===null&&(r={startX:s,startY:o},i.push(r))}return e}class K5{constructor(e=0,n=0,i=0){this.type="circle",this.x=e,this.y=n,this.radius=i}clone(){return new K5(this.x,this.y,this.radius)}contains(e,n){if(this.radius<=0)return!1;const i=this.radius*this.radius;let r=this.x-e,s=this.y-n;return r*=r,s*=s,r+s<=i}strokeContains(e,n,i,r=.5){if(this.radius===0)return!1;const s=this.x-e,o=this.y-n,a=this.radius,l=(1-r)*i,u=Math.sqrt(s*s+o*o);return u<=a+l&&u>a-(i-l)}getBounds(e){return e||(e=new Ln),e.x=this.x-this.radius,e.y=this.y-this.radius,e.width=this.radius*2,e.height=this.radius*2,e}copyFrom(e){return this.x=e.x,this.y=e.y,this.radius=e.radius,this}copyTo(e){return e.copyFrom(this),e}toString(){return`[pixi.js/math:Circle x=${this.x} y=${this.y} radius=${this.radius}]`}}class J5{constructor(e=0,n=0,i=0,r=0){this.type="ellipse",this.x=e,this.y=n,this.halfWidth=i,this.halfHeight=r}clone(){return new J5(this.x,this.y,this.halfWidth,this.halfHeight)}contains(e,n){if(this.halfWidth<=0||this.halfHeight<=0)return!1;let i=(e-this.x)/this.halfWidth,r=(n-this.y)/this.halfHeight;return i*=i,r*=r,i+r<=1}strokeContains(e,n,i,r=.5){const{halfWidth:s,halfHeight:o}=this;if(s<=0||o<=0)return!1;const a=i*(1-r),l=i-a,u=s-l,d=o-l,f=s+a,m=o+a,g=e-this.x,y=n-this.y,_=g*g/(u*u)+y*y/(d*d),v=g*g/(f*f)+y*y/(m*m);return _>1&&v<=1}getBounds(e){return e||(e=new Ln),e.x=this.x-this.halfWidth,e.y=this.y-this.halfHeight,e.width=this.halfWidth*2,e.height=this.halfHeight*2,e}copyFrom(e){return this.x=e.x,this.y=e.y,this.halfWidth=e.halfWidth,this.halfHeight=e.halfHeight,this}copyTo(e){return e.copyFrom(this),e}toString(){return`[pixi.js/math:Ellipse x=${this.x} y=${this.y} halfWidth=${this.halfWidth} halfHeight=${this.halfHeight}]`}}function lIe(t,e,n,i,r,s){const o=t-n,a=e-i,l=r-n,u=s-i,d=o*l+a*u,f=l*l+u*u;let m=-1;f!==0&&(m=d/f);let g,y;m<0?(g=n,y=i):m>1?(g=r,y=s):(g=n+m*l,y=i+m*u);const _=t-g,v=e-y;return _*_+v*v}let cIe,uIe;class A0{constructor(...e){this.type="polygon";let n=Array.isArray(e[0])?e[0]:e;if(typeof n[0]!="number"){const i=[];for(let r=0,s=n.length;r<s;r++)i.push(n[r].x,n[r].y);n=i}this.points=n,this.closePath=!0}isClockwise(){let e=0;const n=this.points,i=n.length;for(let r=0;r<i;r+=2){const s=n[r],o=n[r+1],a=n[(r+2)%i],l=n[(r+3)%i];e+=(a-s)*(l+o)}return e<0}containsPolygon(e){const n=this.getBounds(cIe),i=e.getBounds(uIe);if(!n.containsRect(i))return!1;const r=e.points;for(let s=0;s<r.length;s+=2){const o=r[s],a=r[s+1];if(!this.contains(o,a))return!1}return!0}clone(){const e=this.points.slice(),n=new A0(e);return n.closePath=this.closePath,n}contains(e,n){let i=!1;const r=this.points.length/2;for(let s=0,o=r-1;s<r;o=s++){const a=this.points[s*2],l=this.points[s*2+1],u=this.points[o*2],d=this.points[o*2+1];l>n!=d>n&&e<(u-a)*((n-l)/(d-l))+a&&(i=!i)}return i}strokeContains(e,n,i,r=.5){const s=i*i,o=s*(1-r),a=s-o,{points:l}=this,u=l.length-(this.closePath?0:2);for(let d=0;d<u;d+=2){const f=l[d],m=l[d+1],g=l[(d+2)%l.length],y=l[(d+3)%l.length],_=lIe(e,n,f,m,g,y),v=Math.sign((g-f)*(n-m)-(y-m)*(e-f));if(_<=(v<0?a:o))return!0}return!1}getBounds(e){e||(e=new Ln);const n=this.points;let i=1/0,r=-1/0,s=1/0,o=-1/0;for(let a=0,l=n.length;a<l;a+=2){const u=n[a],d=n[a+1];i=u<i?u:i,r=u>r?u:r,s=d<s?d:s,o=d>o?d:o}return e.x=i,e.width=r-i,e.y=s,e.height=o-s,e}copyFrom(e){return this.points=e.points.slice(),this.closePath=e.closePath,this}copyTo(e){return e.copyFrom(this),e}toString(){return`[pixi.js/math:PolygoncloseStroke=${this.closePath}points=${this.points.reduce((e,n)=>`${e}, ${n}`,"")}]`}get lastX(){return this.points[this.points.length-2]}get lastY(){return this.points[this.points.length-1]}get x(){return wt("8.11.0","Polygon.lastX is deprecated, please use Polygon.lastX instead."),this.points[this.points.length-2]}get y(){return wt("8.11.0","Polygon.y is deprecated, please use Polygon.lastY instead."),this.points[this.points.length-1]}get startX(){return this.points[0]}get startY(){return this.points[1]}}const C1=(t,e,n,i,r,s,o)=>{const a=t-n,l=e-i,u=Math.sqrt(a*a+l*l);return u>=r-s&&u<=r+o};class eQ{constructor(e=0,n=0,i=0,r=0,s=20){this.type="roundedRectangle",this.x=e,this.y=n,this.width=i,this.height=r,this.radius=s}getBounds(e){return e||(e=new Ln),e.x=this.x,e.y=this.y,e.width=this.width,e.height=this.height,e}clone(){return new eQ(this.x,this.y,this.width,this.height,this.radius)}copyFrom(e){return this.x=e.x,this.y=e.y,this.width=e.width,this.height=e.height,this}copyTo(e){return e.copyFrom(this),e}contains(e,n){if(this.width<=0||this.height<=0)return!1;if(e>=this.x&&e<=this.x+this.width&&n>=this.y&&n<=this.y+this.height){const i=Math.max(0,Math.min(this.radius,Math.min(this.width,this.height)/2));if(n>=this.y+i&&n<=this.y+this.height-i||e>=this.x+i&&e<=this.x+this.width-i)return!0;let r=e-(this.x+i),s=n-(this.y+i);const o=i*i;if(r*r+s*s<=o||(r=e-(this.x+this.width-i),r*r+s*s<=o)||(s=n-(this.y+this.height-i),r*r+s*s<=o)||(r=e-(this.x+i),r*r+s*s<=o))return!0}return!1}strokeContains(e,n,i,r=.5){const{x:s,y:o,width:a,height:l,radius:u}=this,d=i*(1-r),f=i-d,m=s+u,g=o+u,y=a-u*2,_=l-u*2,v=s+a,w=o+l;return(e>=s-d&&e<=s+f||e>=v-f&&e<=v+d)&&n>=g&&n<=g+_||(n>=o-d&&n<=o+f||n>=w-f&&n<=w+d)&&e>=m&&e<=m+y?!0:e<m&&n<g&&C1(e,n,m,g,u,f,d)||e>v-u&&n<g&&C1(e,n,v-u,g,u,f,d)||e>v-u&&n>w-u&&C1(e,n,v-u,w-u,u,f,d)||e<m&&n>w-u&&C1(e,n,m,w-u,u,f,d)}toString(){return`[pixi.js/math:RoundedRectangle x=${this.x} y=${this.y}width=${this.width} height=${this.height} radius=${this.radius}]`}}const Ite={};function hIe(t,e,n){let i=2166136261;for(let r=0;r<e;r++)i^=t[r].uid,i=Math.imul(i,16777619),i>>>=0;return Ite[i]||dIe(t,e,i,n)}function dIe(t,e,n,i){const r={};let s=0;for(let a=0;a<i;a++){const l=a<e?t[a]:qt.EMPTY.source;r[s++]=l.source,r[s++]=l.style}const o=new gS(r);return Ite[n]=o,o}class Tq{constructor(e){typeof e=="number"?this.rawBinaryData=new ArrayBuffer(e):e instanceof Uint8Array?this.rawBinaryData=e.buffer:this.rawBinaryData=e,this.uint32View=new Uint32Array(this.rawBinaryData),this.float32View=new Float32Array(this.rawBinaryData),this.size=this.rawBinaryData.byteLength}get int8View(){return this._int8View||(this._int8View=new Int8Array(this.rawBinaryData)),this._int8View}get uint8View(){return this._uint8View||(this._uint8View=new Uint8Array(this.rawBinaryData)),this._uint8View}get int16View(){return this._int16View||(this._int16View=new Int16Array(this.rawBinaryData)),this._int16View}get int32View(){return this._int32View||(this._int32View=new Int32Array(this.rawBinaryData)),this._int32View}get float64View(){return this._float64Array||(this._float64Array=new Float64Array(this.rawBinaryData)),this._float64Array}get bigUint64View(){return this._bigUint64Array||(this._bigUint64Array=new BigUint64Array(this.rawBinaryData)),this._bigUint64Array}view(e){return this[`${e}View`]}destroy(){this.rawBinaryData=null,this.uint32View=null,this.float32View=null,this.uint16View=null,this._int8View=null,this._uint8View=null,this._int16View=null,this._int32View=null,this._float64Array=null,this._bigUint64Array=null}static sizeOf(e){switch(e){case"int8":case"uint8":return 1;case"int16":case"uint16":return 2;case"int32":case"uint32":case"float32":return 4;default:throw new Error(`${e} isn't a valid view type`)}}}function Pq(t,e,n,i){if(n??(n=0),i??(i=Math.min(t.byteLength-n,e.byteLength)),!(n&7)&&!(i&7)){const r=i/8;new Float64Array(e,0,r).set(new Float64Array(t,n,r))}else if(!(n&3)&&!(i&3)){const r=i/4;new Float32Array(e,0,r).set(new Float32Array(t,n,r))}else new Uint8Array(e).set(new Uint8Array(t,n,i))}const fIe={normal:"normal-npm",add:"add-npm",screen:"screen-npm"};var pIe=(t=>(t[t.DISABLED=0]="DISABLED",t[t.RENDERING_MASK_ADD=1]="RENDERING_MASK_ADD",t[t.MASK_ACTIVE=2]="MASK_ACTIVE",t[t.INVERSE_MASK_ACTIVE=3]="INVERSE_MASK_ACTIVE",t[t.RENDERING_MASK_REMOVE=4]="RENDERING_MASK_REMOVE",t[t.NONE=5]="NONE",t))(pIe||{});function Aq(t,e){return e.alphaMode==="no-premultiply-alpha"&&fIe[t]||t}const mIe=["precision mediump float;","void main(void){","float test = 0.1;","%forloop%","gl_FragColor = vec4(0.0);","}"].join(`
|
|
996
|
+
${t}`}function v3e(t,e){return e?t.replace("#version 300 es",""):t}const FE={stripVersion:v3e,ensurePrecision:b3e,addProgramDefines:g3e,setProgramName:_3e,insertVersion:y3e},Oy=Object.create(null),bte=class XL{constructor(e){e={...XL.defaultOptions,...e};const n=e.fragment.indexOf("#version 300 es")!==-1,i={stripVersion:n,ensurePrecision:{requestedFragmentPrecision:e.preferredFragmentPrecision,requestedVertexPrecision:e.preferredVertexPrecision,maxSupportedVertexPrecision:"highp",maxSupportedFragmentPrecision:m3e()},setProgramName:{name:e.name},addProgramDefines:n,insertVersion:n};let r=e.fragment,s=e.vertex;Object.keys(FE).forEach(o=>{const a=i[o];r=FE[o](r,a,!0),s=FE[o](s,a,!1)}),this.fragment=r,this.vertex=s,this.transformFeedbackVaryings=e.transformFeedbackVaryings,this._key=H5(`${this.vertex}:${this.fragment}`,"gl-program")}destroy(){this.fragment=null,this.vertex=null,this._attributeData=null,this._uniformData=null,this._uniformBlockData=null,this.transformFeedbackVaryings=null,Oy[this._cacheKey]=null}static from(e){const n=`${e.vertex}:${e.fragment}`;return Oy[n]||(Oy[n]=new XL(e),Oy[n]._cacheKey=n),Oy[n]}};bte.defaultOptions={preferredVertexPrecision:"highp",preferredFragmentPrecision:"mediump"};let yte=bte;const Oq={uint8x2:{size:2,stride:2,normalised:!1},uint8x4:{size:4,stride:4,normalised:!1},sint8x2:{size:2,stride:2,normalised:!1},sint8x4:{size:4,stride:4,normalised:!1},unorm8x2:{size:2,stride:2,normalised:!0},unorm8x4:{size:4,stride:4,normalised:!0},snorm8x2:{size:2,stride:2,normalised:!0},snorm8x4:{size:4,stride:4,normalised:!0},uint16x2:{size:2,stride:4,normalised:!1},uint16x4:{size:4,stride:8,normalised:!1},sint16x2:{size:2,stride:4,normalised:!1},sint16x4:{size:4,stride:8,normalised:!1},unorm16x2:{size:2,stride:4,normalised:!0},unorm16x4:{size:4,stride:8,normalised:!0},snorm16x2:{size:2,stride:4,normalised:!0},snorm16x4:{size:4,stride:8,normalised:!0},float16x2:{size:2,stride:4,normalised:!1},float16x4:{size:4,stride:8,normalised:!1},float32:{size:1,stride:4,normalised:!1},float32x2:{size:2,stride:8,normalised:!1},float32x3:{size:3,stride:12,normalised:!1},float32x4:{size:4,stride:16,normalised:!1},uint32:{size:1,stride:4,normalised:!1},uint32x2:{size:2,stride:8,normalised:!1},uint32x3:{size:3,stride:12,normalised:!1},uint32x4:{size:4,stride:16,normalised:!1},sint32:{size:1,stride:4,normalised:!1},sint32x2:{size:2,stride:8,normalised:!1},sint32x3:{size:3,stride:12,normalised:!1},sint32x4:{size:4,stride:16,normalised:!1}};function S3e(t){return Oq[t]??Oq.float32}const w3e={f32:"float32","vec2<f32>":"float32x2","vec3<f32>":"float32x3","vec4<f32>":"float32x4",vec2f:"float32x2",vec3f:"float32x3",vec4f:"float32x4",i32:"sint32","vec2<i32>":"sint32x2","vec3<i32>":"sint32x3","vec4<i32>":"sint32x4",vec2i:"sint32x2",vec3i:"sint32x3",vec4i:"sint32x4",u32:"uint32","vec2<u32>":"uint32x2","vec3<u32>":"uint32x3","vec4<u32>":"uint32x4",vec2u:"uint32x2",vec3u:"uint32x3",vec4u:"uint32x4",bool:"uint32","vec2<bool>":"uint32x2","vec3<bool>":"uint32x3","vec4<bool>":"uint32x4"},_q=/@location\((\d+)\)\s+([a-zA-Z0-9_]+)\s*:\s*([a-zA-Z0-9_<>]+)(?:,|\s|\)|$)/g;function vq(t,e){let n;for(;(n=_q.exec(t))!==null;){const i=w3e[n[3]]??"float32";e[n[2]]={location:parseInt(n[1],10),format:i,stride:S3e(i).stride,offset:0,instance:!1,start:0}}_q.lastIndex=0}function k3e(t){return t.replace(/\/\/.*$/gm,"").replace(/\/\*[\s\S]*?\*\//g,"")}function C3e({source:t,entryPoint:e}){const n={},i=k3e(t),r=i.indexOf(`fn ${e}(`);if(r===-1)return n;const s=i.indexOf("->",r);if(s===-1)return n;const o=i.substring(r,s);if(vq(o,n),Object.keys(n).length===0){const a=o.match(/\(\s*\w+\s*:\s*(\w+)/);if(a){const l=a[1],u=new RegExp(`struct\\s+${l}\\s*\\{([^}]+)\\}`,"s"),d=i.match(u);d&&vq(d[1],n)}}return n}function UE(t){const e=/(^|[^/])@(group|binding)\(\d+\)[^;]+;/g,n=/@group\((\d+)\)/,i=/@binding\((\d+)\)/,r=/var(<[^>]+>)? (\w+)/,s=/:\s*([\w<>]+)/,o=/struct\s+(\w+)\s*{([^}]+)}/g,a=/(\w+)\s*:\s*([\w\<\>]+)/g,l=/struct\s+(\w+)/,u=t.match(e)?.map(f=>({group:parseInt(f.match(n)[1],10),binding:parseInt(f.match(i)[1],10),name:f.match(r)[2],isUniform:f.match(r)[1]==="<uniform>",type:f.match(s)[1]}));if(!u)return{groups:[],structs:[]};const d=t.match(o)?.map(f=>{const m=f.match(l)[1],g=f.match(a).reduce((y,_)=>{const[v,w]=_.split(":");return y[v.trim()]=w.trim(),y},{});return g?{name:m,members:g}:null}).filter(({name:f})=>u.some(m=>m.type===f||m.type.includes(`<${f}>`)))??[];return{groups:u,structs:d}}var fd=(t=>(t[t.VERTEX=1]="VERTEX",t[t.FRAGMENT=2]="FRAGMENT",t[t.COMPUTE=4]="COMPUTE",t))(fd||{});function T3e({groups:t}){const e=[];for(let n=0;n<t.length;n++){const i=t[n];e[i.group]||(e[i.group]=[]),i.isUniform?e[i.group].push({binding:i.binding,visibility:fd.VERTEX|fd.FRAGMENT,buffer:{type:"uniform"}}):i.type==="sampler"?e[i.group].push({binding:i.binding,visibility:fd.FRAGMENT,sampler:{type:"filtering"}}):i.type==="texture_2d"||i.type.startsWith("texture_2d<")?e[i.group].push({binding:i.binding,visibility:fd.FRAGMENT,texture:{sampleType:"float",viewDimension:"2d",multisampled:!1}}):i.type==="texture_2d_array"||i.type.startsWith("texture_2d_array<")?e[i.group].push({binding:i.binding,visibility:fd.FRAGMENT,texture:{sampleType:"float",viewDimension:"2d-array",multisampled:!1}}):(i.type==="texture_cube"||i.type.startsWith("texture_cube<"))&&e[i.group].push({binding:i.binding,visibility:fd.FRAGMENT,texture:{sampleType:"float",viewDimension:"cube",multisampled:!1}})}for(let n=0;n<e.length;n++)e[n]||(e[n]=[]);return e}function P3e({groups:t}){const e=[];for(let n=0;n<t.length;n++){const i=t[n];e[i.group]||(e[i.group]={}),e[i.group][i.name]=i.binding}return e}function A3e(t,e){const n=new Set,i=new Set,r=[...t.structs,...e.structs].filter(o=>n.has(o.name)?!1:(n.add(o.name),!0)),s=[...t.groups,...e.groups].filter(o=>{const a=`${o.name}-${o.binding}`;return i.has(a)?!1:(i.add(a),!0)});return{structs:r,groups:s}}const _y=Object.create(null);class eC{constructor(e){this._layoutKey=0,this._attributeLocationsKey=0;const{fragment:n,vertex:i,layout:r,gpuLayout:s,name:o}=e;if(this.name=o,this.fragment=n,this.vertex=i,n.source===i.source){const a=UE(n.source);this.structsAndGroups=a}else{const a=UE(i.source),l=UE(n.source);this.structsAndGroups=A3e(a,l)}this.layout=r??P3e(this.structsAndGroups),this.gpuLayout=s??T3e(this.structsAndGroups),this.autoAssignGlobalUniforms=this.layout[0]?.globalUniforms!==void 0,this.autoAssignLocalUniforms=this.layout[1]?.localUniforms!==void 0,this._generateProgramKey()}_generateProgramKey(){const{vertex:e,fragment:n}=this,i=e.source+n.source+e.entryPoint+n.entryPoint;this._layoutKey=H5(i,"program")}get attributeData(){return this._attributeData??(this._attributeData=C3e(this.vertex)),this._attributeData}destroy(){this.gpuLayout=null,this.layout=null,this.structsAndGroups=null,this.fragment=null,this.vertex=null,_y[this._cacheKey]=null}static from(e){const n=`${e.vertex.source}:${e.fragment.source}:${e.fragment.entryPoint}:${e.vertex.entryPoint}`;return _y[n]||(_y[n]=new eC(e),_y[n]._cacheKey=n),_y[n]}}const xte=["f32","i32","vec2<f32>","vec3<f32>","vec4<f32>","mat2x2<f32>","mat3x3<f32>","mat4x4<f32>","mat3x2<f32>","mat4x2<f32>","mat2x3<f32>","mat4x3<f32>","mat2x4<f32>","mat3x4<f32>","vec2<i32>","vec3<i32>","vec4<i32>"],R3e=xte.reduce((t,e)=>(t[e]=!0,t),{});function E3e(t,e){switch(t){case"f32":return 0;case"vec2<f32>":return new Float32Array(2*e);case"vec3<f32>":return new Float32Array(3*e);case"vec4<f32>":return new Float32Array(4*e);case"mat2x2<f32>":return new Float32Array([1,0,0,1]);case"mat3x3<f32>":return new Float32Array([1,0,0,0,1,0,0,0,1]);case"mat4x4<f32>":return new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])}return null}const Ote=class _te{constructor(e,n){this._touched=0,this.uid=kn("uniform"),this._resourceType="uniformGroup",this._resourceId=kn("resource"),this.isUniformGroup=!0,this._dirtyId=0,this.destroyed=!1,n={..._te.defaultOptions,...n},this.uniformStructures=e;const i={};for(const r in e){const s=e[r];if(s.name=r,s.size=s.size??1,!R3e[s.type]){const o=s.type.match(/^array<(\w+(?:<\w+>)?),\s*(\d+)>$/);if(o){const[,a,l]=o;throw new Error(`Uniform type ${s.type} is not supported. Use type: '${a}', size: ${l} instead.`)}throw new Error(`Uniform type ${s.type} is not supported. Supported uniform types are: ${xte.join(", ")}`)}s.value??(s.value=E3e(s.type,s.size)),i[r]=s.value}this.uniforms=i,this._dirtyId=1,this.ubo=n.ubo,this.isStatic=n.isStatic,this._signature=H5(Object.keys(i).map(r=>`${r}-${e[r].type}`).join("-"),"uniform-group")}update(){this._dirtyId++}};Ote.defaultOptions={ubo:!1,isStatic:!1};let vte=Ote;class gS{constructor(e){this.resources=Object.create(null),this._dirty=!0;let n=0;for(const i in e){const r=e[i];this.setResource(r,n++)}this._updateKey()}_updateKey(){if(!this._dirty)return;this._dirty=!1;const e=[];let n=0;for(const i in this.resources)e[n++]=this.resources[i]._resourceId;this._key=e.join("|")}setResource(e,n){const i=this.resources[n];e!==i&&(i&&e.off?.("change",this.onResourceChange,this),e.on?.("change",this.onResourceChange,this),this.resources[n]=e,this._dirty=!0)}getResource(e){return this.resources[e]}_touch(e,n){const i=this.resources;for(const r in i)i[r]._gcLastUsed=e,i[r]._touched=n}destroy(){const e=this.resources;for(const n in e)e[n]?.off?.("change",this.onResourceChange,this);this.resources=null}onResourceChange(e){if(this._dirty=!0,e.destroyed){const n=this.resources;for(const i in n)n[i]===e&&(n[i]=null)}else this._updateKey()}}var FL=(t=>(t[t.WEBGL=1]="WEBGL",t[t.WEBGPU=2]="WEBGPU",t[t.CANVAS=4]="CANVAS",t[t.BOTH=3]="BOTH",t))(FL||{});class Y5 extends nl{constructor(e){super(),this.uid=kn("shader"),this._uniformBindMap=Object.create(null),this._ownedBindGroups=[],this._destroyed=!1;let{gpuProgram:n,glProgram:i,groups:r,resources:s,compatibleRenderers:o,groupMap:a}=e;this.gpuProgram=n,this.glProgram=i,o===void 0&&(o=0,n&&(o|=FL.WEBGPU),i&&(o|=FL.WEBGL)),this.compatibleRenderers=o;const l={};if(!s&&!r&&(s={}),s&&r)throw new Error("[Shader] Cannot have both resources and groups");if(!n&&r&&!a)throw new Error("[Shader] No group map or WebGPU shader provided - consider using resources instead.");if(!n&&r&&a)for(const u in a)for(const d in a[u]){const f=a[u][d];l[f]={group:u,binding:d,name:f}}else if(n&&r&&!a){const u=n.structsAndGroups.groups;a={},u.forEach(d=>{a[d.group]=a[d.group]||{},a[d.group][d.binding]=d.name,l[d.name]=d})}else if(s){r={},a={},n&&n.structsAndGroups.groups.forEach(f=>{a[f.group]=a[f.group]||{},a[f.group][f.binding]=f.name,l[f.name]=f});let u=0;for(const d in s)l[d]||(r[99]||(r[99]=new gS,this._ownedBindGroups.push(r[99])),l[d]={group:99,binding:u,name:d},a[99]=a[99]||{},a[99][u]=d,u++);for(const d in s){const f=d;let m=s[d];!m.source&&!m._resourceType&&(m=new vte(m));const g=l[f];g&&(r[g.group]||(r[g.group]=new gS,this._ownedBindGroups.push(r[g.group])),r[g.group].setResource(m,g.binding))}}this.groups=r,this._uniformBindMap=a,this.resources=this._buildResourceAccessor(r,l)}addResource(e,n,i){var r,s;(r=this._uniformBindMap)[n]||(r[n]={}),(s=this._uniformBindMap[n])[i]||(s[i]=e),this.groups[n]||(this.groups[n]=new gS,this._ownedBindGroups.push(this.groups[n]))}_buildResourceAccessor(e,n){const i={};for(const r in n){const s=n[r];Object.defineProperty(i,s.name,{get(){return e[s.group].getResource(s.binding)},set(o){e[s.group].setResource(o,s.binding)}})}return i}destroy(e=!1){this._destroyed||(this._destroyed=!0,this.emit("destroy",this),e&&(this.gpuProgram?.destroy(),this.glProgram?.destroy()),this.gpuProgram=null,this.glProgram=null,this.removeAllListeners(),this._uniformBindMap=null,this._ownedBindGroups.forEach(n=>{n.destroy()}),this._ownedBindGroups=null,this.resources=null,this.groups=null)}static from(e){const{gpu:n,gl:i,...r}=e;let s,o;return n&&(s=eC.from(n)),i&&(o=yte.from(i)),new Y5({gpuProgram:s,glProgram:o,...r})}}const M3e={normal:0,add:1,multiply:2,screen:3,overlay:4,erase:5,"normal-npm":6,"add-npm":7,"screen-npm":8,min:9,max:10},WE=0,GE=1,ZE=2,HE=3,YE=4,KE=5,UL=class Ste{constructor(){this.data=0,this.blendMode="normal",this.polygonOffset=0,this.blend=!0,this.depthMask=!0}get blend(){return!!(this.data&1<<WE)}set blend(e){!!(this.data&1<<WE)!==e&&(this.data^=1<<WE)}get offsets(){return!!(this.data&1<<GE)}set offsets(e){!!(this.data&1<<GE)!==e&&(this.data^=1<<GE)}set cullMode(e){if(e==="none"){this.culling=!1;return}this.culling=!0,this.clockwiseFrontFace=e==="front"}get cullMode(){return this.culling?this.clockwiseFrontFace?"front":"back":"none"}get culling(){return!!(this.data&1<<ZE)}set culling(e){!!(this.data&1<<ZE)!==e&&(this.data^=1<<ZE)}get depthTest(){return!!(this.data&1<<HE)}set depthTest(e){!!(this.data&1<<HE)!==e&&(this.data^=1<<HE)}get depthMask(){return!!(this.data&1<<KE)}set depthMask(e){!!(this.data&1<<KE)!==e&&(this.data^=1<<KE)}get clockwiseFrontFace(){return!!(this.data&1<<YE)}set clockwiseFrontFace(e){!!(this.data&1<<YE)!==e&&(this.data^=1<<YE)}get blendMode(){return this._blendMode}set blendMode(e){this.blend=e!=="none",this._blendMode=e,this._blendModeId=M3e[e]||0}get polygonOffset(){return this._polygonOffset}set polygonOffset(e){this.offsets=!!e,this._polygonOffset=e}toString(){return`[pixi.js/core:State blendMode=${this.blendMode} clockwiseFrontFace=${this.clockwiseFrontFace} culling=${this.culling} depthMask=${this.depthMask} polygonOffset=${this.polygonOffset}]`}static for2d(){const e=new Ste;return e.depthTest=!1,e.blend=!0,e}};UL.default2d=UL.for2d();let wte=UL;const WL=[];In.handleByNamedList(rt.Environment,WL);async function $3e(t){if(!t)for(let e=0;e<WL.length;e++){const n=WL[e];if(n.value.test()){await n.value.load();return}}}let vy;function L3e(){if(typeof vy=="boolean")return vy;try{vy=new Function("param1","param2","param3","return param1[param2] === param3;")({a:"b"},"a","b")===!0}catch{vy=!1}return vy}function Sq(t,e,n=2){const i=e&&e.length,r=i?e[0]*n:t.length;let s=kte(t,0,r,n,!0);const o=[];if(!s||s.next===s.prev)return o;let a,l,u;if(i&&(s=j3e(t,e,s,n)),t.length>80*n){a=t[0],l=t[1];let d=a,f=l;for(let m=n;m<r;m+=n){const g=t[m],y=t[m+1];g<a&&(a=g),y<l&&(l=y),g>d&&(d=g),y>f&&(f=y)}u=Math.max(d-a,f-l),u=u!==0?32767/u:0}return Lx(s,o,n,a,l,u,0),o}function kte(t,e,n,i,r){let s;if(r===H3e(t,e,n,i)>0)for(let o=e;o<n;o+=i)s=wq(o/i|0,t[o],t[o+1],s);else for(let o=n-i;o>=e;o-=i)s=wq(o/i|0,t[o],t[o+1],s);return s&&dg(s,s.next)&&(Nx(s),s=s.next),s}function ff(t,e){if(!t)return t;e||(e=t);let n=t,i;do if(i=!1,!n.steiner&&(dg(n,n.next)||yn(n.prev,n,n.next)===0)){if(Nx(n),n=e=n.prev,n===n.next)break;i=!0}else n=n.next;while(i||n!==e);return e}function Lx(t,e,n,i,r,s,o){if(!t)return;!o&&s&&X3e(t,i,r,s);let a=t;for(;t.prev!==t.next;){const l=t.prev,u=t.next;if(s?N3e(t,i,r,s):D3e(t)){e.push(l.i,t.i,u.i),Nx(t),t=u.next,a=u.next;continue}if(t=u,t===a){o?o===1?(t=Q3e(ff(t),e),Lx(t,e,n,i,r,s,2)):o===2&&I3e(t,e,n,i,r,s):Lx(ff(t),e,n,i,r,s,1);break}}}function D3e(t){const e=t.prev,n=t,i=t.next;if(yn(e,n,i)>=0)return!1;const r=e.x,s=n.x,o=i.x,a=e.y,l=n.y,u=i.y,d=Math.min(r,s,o),f=Math.min(a,l,u),m=Math.max(r,s,o),g=Math.max(a,l,u);let y=i.next;for(;y!==e;){if(y.x>=d&&y.x<=m&&y.y>=f&&y.y<=g&&Ky(r,a,s,l,o,u,y.x,y.y)&&yn(y.prev,y,y.next)>=0)return!1;y=y.next}return!0}function N3e(t,e,n,i){const r=t.prev,s=t,o=t.next;if(yn(r,s,o)>=0)return!1;const a=r.x,l=s.x,u=o.x,d=r.y,f=s.y,m=o.y,g=Math.min(a,l,u),y=Math.min(d,f,m),_=Math.max(a,l,u),v=Math.max(d,f,m),w=GL(g,y,e,n,i),T=GL(_,v,e,n,i);let C=t.prevZ,E=t.nextZ;for(;C&&C.z>=w&&E&&E.z<=T;){if(C.x>=g&&C.x<=_&&C.y>=y&&C.y<=v&&C!==r&&C!==o&&Ky(a,d,l,f,u,m,C.x,C.y)&&yn(C.prev,C,C.next)>=0||(C=C.prevZ,E.x>=g&&E.x<=_&&E.y>=y&&E.y<=v&&E!==r&&E!==o&&Ky(a,d,l,f,u,m,E.x,E.y)&&yn(E.prev,E,E.next)>=0))return!1;E=E.nextZ}for(;C&&C.z>=w;){if(C.x>=g&&C.x<=_&&C.y>=y&&C.y<=v&&C!==r&&C!==o&&Ky(a,d,l,f,u,m,C.x,C.y)&&yn(C.prev,C,C.next)>=0)return!1;C=C.prevZ}for(;E&&E.z<=T;){if(E.x>=g&&E.x<=_&&E.y>=y&&E.y<=v&&E!==r&&E!==o&&Ky(a,d,l,f,u,m,E.x,E.y)&&yn(E.prev,E,E.next)>=0)return!1;E=E.nextZ}return!0}function Q3e(t,e){let n=t;do{const i=n.prev,r=n.next.next;!dg(i,r)&&Tte(i,n,n.next,r)&&Dx(i,r)&&Dx(r,i)&&(e.push(i.i,n.i,r.i),Nx(n),Nx(n.next),n=t=r),n=n.next}while(n!==t);return ff(n)}function I3e(t,e,n,i,r,s){let o=t;do{let a=o.next.next;for(;a!==o.prev;){if(o.i!==a.i&&W3e(o,a)){let l=Pte(o,a);o=ff(o,o.next),l=ff(l,l.next),Lx(o,e,n,i,r,s,0),Lx(l,e,n,i,r,s,0);return}a=a.next}o=o.next}while(o!==t)}function j3e(t,e,n,i){const r=[];for(let s=0,o=e.length;s<o;s++){const a=e[s]*i,l=s<o-1?e[s+1]*i:t.length,u=kte(t,a,l,i,!1);u===u.next&&(u.steiner=!0),r.push(U3e(u))}r.sort(B3e);for(let s=0;s<r.length;s++)n=z3e(r[s],n);return n}function B3e(t,e){let n=t.x-e.x;if(n===0&&(n=t.y-e.y,n===0)){const i=(t.next.y-t.y)/(t.next.x-t.x),r=(e.next.y-e.y)/(e.next.x-e.x);n=i-r}return n}function z3e(t,e){const n=V3e(t,e);if(!n)return e;const i=Pte(n,t);return ff(i,i.next),ff(n,n.next)}function V3e(t,e){let n=e;const i=t.x,r=t.y;let s=-1/0,o;if(dg(t,n))return n;do{if(dg(t,n.next))return n.next;if(r<=n.y&&r>=n.next.y&&n.next.y!==n.y){const f=n.x+(r-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(f<=i&&f>s&&(s=f,o=n.x<n.next.x?n:n.next,f===i))return o}n=n.next}while(n!==e);if(!o)return null;const a=o,l=o.x,u=o.y;let d=1/0;n=o;do{if(i>=n.x&&n.x>=l&&i!==n.x&&Cte(r<u?i:s,r,l,u,r<u?s:i,r,n.x,n.y)){const f=Math.abs(r-n.y)/(i-n.x);Dx(n,t)&&(f<d||f===d&&(n.x>o.x||n.x===o.x&&q3e(o,n)))&&(o=n,d=f)}n=n.next}while(n!==a);return o}function q3e(t,e){return yn(t.prev,t,e.prev)<0&&yn(e.next,t,t.next)<0}function X3e(t,e,n,i){let r=t;do r.z===0&&(r.z=GL(r.x,r.y,e,n,i)),r.prevZ=r.prev,r.nextZ=r.next,r=r.next;while(r!==t);r.prevZ.nextZ=null,r.prevZ=null,F3e(r)}function F3e(t){let e,n=1;do{let i=t,r;t=null;let s=null;for(e=0;i;){e++;let o=i,a=0;for(let u=0;u<n&&(a++,o=o.nextZ,!!o);u++);let l=n;for(;a>0||l>0&&o;)a!==0&&(l===0||!o||i.z<=o.z)?(r=i,i=i.nextZ,a--):(r=o,o=o.nextZ,l--),s?s.nextZ=r:t=r,r.prevZ=s,s=r;i=o}s.nextZ=null,n*=2}while(e>1);return t}function GL(t,e,n,i,r){return t=(t-n)*r|0,e=(e-i)*r|0,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t|e<<1}function U3e(t){let e=t,n=t;do(e.x<n.x||e.x===n.x&&e.y<n.y)&&(n=e),e=e.next;while(e!==t);return n}function Cte(t,e,n,i,r,s,o,a){return(r-o)*(e-a)>=(t-o)*(s-a)&&(t-o)*(i-a)>=(n-o)*(e-a)&&(n-o)*(s-a)>=(r-o)*(i-a)}function Ky(t,e,n,i,r,s,o,a){return!(t===o&&e===a)&&Cte(t,e,n,i,r,s,o,a)}function W3e(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!G3e(t,e)&&(Dx(t,e)&&Dx(e,t)&&Z3e(t,e)&&(yn(t.prev,t,e.prev)||yn(t,e.prev,e))||dg(t,e)&&yn(t.prev,t,t.next)>0&&yn(e.prev,e,e.next)>0)}function yn(t,e,n){return(e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y)}function dg(t,e){return t.x===e.x&&t.y===e.y}function Tte(t,e,n,i){const r=S1(yn(t,e,n)),s=S1(yn(t,e,i)),o=S1(yn(n,i,t)),a=S1(yn(n,i,e));return!!(r!==s&&o!==a||r===0&&v1(t,n,e)||s===0&&v1(t,i,e)||o===0&&v1(n,t,i)||a===0&&v1(n,e,i))}function v1(t,e,n){return e.x<=Math.max(t.x,n.x)&&e.x>=Math.min(t.x,n.x)&&e.y<=Math.max(t.y,n.y)&&e.y>=Math.min(t.y,n.y)}function S1(t){return t>0?1:t<0?-1:0}function G3e(t,e){let n=t;do{if(n.i!==t.i&&n.next.i!==t.i&&n.i!==e.i&&n.next.i!==e.i&&Tte(n,n.next,t,e))return!0;n=n.next}while(n!==t);return!1}function Dx(t,e){return yn(t.prev,t,t.next)<0?yn(t,e,t.next)>=0&&yn(t,t.prev,e)>=0:yn(t,e,t.prev)<0||yn(t,t.next,e)<0}function Z3e(t,e){let n=t,i=!1;const r=(t.x+e.x)/2,s=(t.y+e.y)/2;do n.y>s!=n.next.y>s&&n.next.y!==n.y&&r<(n.next.x-n.x)*(s-n.y)/(n.next.y-n.y)+n.x&&(i=!i),n=n.next;while(n!==t);return i}function Pte(t,e){const n=ZL(t.i,t.x,t.y),i=ZL(e.i,e.x,e.y),r=t.next,s=e.prev;return t.next=e,e.prev=t,n.next=r,r.prev=n,i.next=n,n.prev=i,s.next=i,i.prev=s,i}function wq(t,e,n,i){const r=ZL(t,e,n);return i?(r.next=i.next,r.prev=i,i.next.prev=r,i.next=r):(r.prev=r,r.next=r),r}function Nx(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function ZL(t,e,n){return{i:t,x:e,y:n,prev:null,next:null,z:0,prevZ:null,nextZ:null,steiner:!1}}function H3e(t,e,n,i){let r=0;for(let s=e,o=n-i;s<n;s+=i)r+=(t[o]-t[s])*(t[s+1]+t[o+1]),o=s;return r}const Y3e=Sq.default||Sq;var Ate=(t=>(t[t.NONE=0]="NONE",t[t.COLOR=16384]="COLOR",t[t.STENCIL=1024]="STENCIL",t[t.DEPTH=256]="DEPTH",t[t.COLOR_DEPTH=16640]="COLOR_DEPTH",t[t.COLOR_STENCIL=17408]="COLOR_STENCIL",t[t.DEPTH_STENCIL=1280]="DEPTH_STENCIL",t[t.ALL=17664]="ALL",t))(Ate||{});class K3e{constructor(e){this.items=[],this._name=e}emit(e,n,i,r,s,o,a,l){const{name:u,items:d}=this;for(let f=0,m=d.length;f<m;f++)d[f][u](e,n,i,r,s,o,a,l);return this}add(e){return e[this._name]&&(this.remove(e),this.items.push(e)),this}remove(e){const n=this.items.indexOf(e);return n!==-1&&this.items.splice(n,1),this}contains(e){return this.items.indexOf(e)!==-1}removeAll(){return this.items.length=0,this}destroy(){this.removeAll(),this.items=null,this._name=null}get empty(){return this.items.length===0}get name(){return this._name}}const J3e=["init","destroy","contextChange","resolutionChange","resetState","renderEnd","renderStart","render","update","postrender","prerender"],Rte=class Ete extends nl{constructor(e){super(),this.tick=0,this.uid=kn("renderer"),this.runners=Object.create(null),this.renderPipes=Object.create(null),this._initOptions={},this._systemsHash=Object.create(null),this.type=e.type,this.name=e.name,this.config=e;const n=[...J3e,...this.config.runners??[]];this._addRunners(...n),this._unsafeEvalCheck()}async init(e={}){const n=e.skipExtensionImports===!0?!0:e.manageImports===!1;await $3e(n),this._addSystems(this.config.systems),this._addPipes(this.config.renderPipes,this.config.renderPipeAdaptors);for(const i in this._systemsHash)e={...this._systemsHash[i].constructor.defaultOptions,...e};e={...Ete.defaultOptions,...e},this._roundPixels=e.roundPixels?1:0;for(let i=0;i<this.runners.init.items.length;i++)await this.runners.init.items[i].init(e);this._initOptions=e}render(e,n){this.tick++;let i=e;if(i instanceof $s&&(i={container:i},n&&(wt(wn,"passing a second argument is deprecated, please use render options instead"),i.target=n.renderTexture)),i.target||(i.target=this.view.renderTarget),i.target===this.view.renderTarget&&(this._lastObjectRendered=i.container,i.clearColor??(i.clearColor=this.background.colorRgba),i.clear??(i.clear=this.background.clearBeforeRender)),i.clearColor){const r=Array.isArray(i.clearColor)&&i.clearColor.length===4;i.clearColor=r?i.clearColor:oi.shared.setValue(i.clearColor).toArray()}i.transform||(i.container.updateLocalTransform(),i.transform=i.container.localTransform),i.container.visible&&(i.container.enableRenderGroup(),this.runners.prerender.emit(i),this.runners.renderStart.emit(i),this.runners.render.emit(i),this.runners.renderEnd.emit(i),this.runners.postrender.emit(i))}resize(e,n,i){const r=this.view.resolution;this.view.resize(e,n,i),this.emit("resize",this.view.screen.width,this.view.screen.height,this.view.resolution),i!==void 0&&i!==r&&this.runners.resolutionChange.emit(i)}clear(e={}){const n=this;e.target||(e.target=n.renderTarget.renderTarget),e.clearColor||(e.clearColor=this.background.colorRgba),e.clear??(e.clear=Ate.ALL);const{clear:i,clearColor:r,target:s,mipLevel:o,layer:a}=e;oi.shared.setValue(r??this.background.colorRgba),n.renderTarget.clear(s,i,oi.shared.toArray(),o??0,a??0)}get resolution(){return this.view.resolution}set resolution(e){this.view.resolution=e,this.runners.resolutionChange.emit(e)}get width(){return this.view.texture.frame.width}get height(){return this.view.texture.frame.height}get canvas(){return this.view.canvas}get lastObjectRendered(){return this._lastObjectRendered}get renderingToScreen(){return this.renderTarget.renderingToScreen}get screen(){return this.view.screen}_addRunners(...e){e.forEach(n=>{this.runners[n]=new K3e(n)})}_addSystems(e){let n;for(n in e){const i=e[n];this._addSystem(i.value,i.name)}}_addSystem(e,n){const i=new e(this);if(this[n])throw new Error(`Whoops! The name "${n}" is already in use`);this[n]=i,this._systemsHash[n]=i;for(const r in this.runners)this.runners[r].add(i);return this}_addPipes(e,n){const i=n.reduce((r,s)=>(r[s.name]=s.value,r),{});e.forEach(r=>{const s=r.value,o=r.name,a=i[o];this.renderPipes[o]=new s(this,a?new a:null),this.runners.destroy.add(this.renderPipes[o])})}destroy(e=!1){this.runners.destroy.items.reverse(),this.runners.destroy.emit(e),(e===!0||typeof e=="object"&&e.releaseGlobalResources)&&cO.release(),Object.values(this.runners).forEach(n=>{n.destroy()}),this._systemsHash=null,this.renderPipes=null}generateTexture(e){return this.textureGenerator.generateTexture(e)}get roundPixels(){return!!this._roundPixels}_unsafeEvalCheck(){if(!L3e())throw new Error("Current environment does not allow unsafe-eval, please use pixi.js/unsafe-eval module to enable support.")}resetState(){this.runners.resetState.emit()}};Rte.defaultOptions={resolution:1,failIfMajorPerformanceCaveat:!1,roundPixels:!1};let Mte=Rte,w1;function eIe(t){return w1!==void 0||(w1=(()=>{const e={stencil:!0,failIfMajorPerformanceCaveat:t??Mte.defaultOptions.failIfMajorPerformanceCaveat};try{if(!Es.get().getWebGLRenderingContext())return!1;let i=Es.get().createCanvas().getContext("webgl",e);const r=!!i?.getContextAttributes()?.stencil;if(i){const s=i.getExtension("WEBGL_lose_context");s&&s.loseContext()}return i=null,r}catch{return!1}})()),w1}let k1;async function tIe(t={}){return k1!==void 0||(k1=await(async()=>{const e=Es.get().getNavigator().gpu;if(!e)return!1;try{return await(await e.requestAdapter(t)).requestDevice(),!0}catch{return!1}})()),k1}const kq=["webgl","webgpu","canvas"];async function nIe(t){let e=[];t.preference?(e.push(t.preference),kq.forEach(s=>{s!==t.preference&&e.push(s)})):e=kq.slice();let n,i={};for(let s=0;s<e.length;s++){const o=e[s];if(o==="webgpu"&&await tIe()){const{WebGPURenderer:a}=await M(async()=>{const{WebGPURenderer:l}=await import("./WebGPURenderer-BxGKz2BF.js");return{WebGPURenderer:l}},__vite__mapDeps([106,107,108,105]));n=a,i={...t,...t.webgpu};break}else if(o==="webgl"&&eIe(t.failIfMajorPerformanceCaveat??Mte.defaultOptions.failIfMajorPerformanceCaveat)){const{WebGLRenderer:a}=await M(async()=>{const{WebGLRenderer:l}=await import("./WebGLRenderer-LRlNpU4y.js");return{WebGLRenderer:l}},__vite__mapDeps([109,107,108,105]));n=a,i={...t,...t.webgl};break}else if(o==="canvas"){const{CanvasRenderer:a}=await M(async()=>{const{CanvasRenderer:l}=await import("./CanvasRenderer-CMGqjcCq.js");return{CanvasRenderer:l}},__vite__mapDeps([110,108,105]));n=a,i={...t,...t.canvasOptions};break}}if(delete i.webgpu,delete i.webgl,delete i.canvasOptions,!n)throw new Error("No available renderer for the current environment");const r=new n;return await r.init(i),r}const $te="8.16.0";class Lte{static init(){globalThis.__PIXI_APP_INIT__?.(this,$te)}static destroy(){}}Lte.extension=rt.Application;class iIe{constructor(e){this._renderer=e}init(){globalThis.__PIXI_RENDERER_INIT__?.(this._renderer,$te)}destroy(){this._renderer=null}}iIe.extension={type:[rt.WebGLSystem,rt.WebGPUSystem],name:"initHook",priority:-10};class Dte{static init(e){Object.defineProperty(this,"resizeTo",{configurable:!0,set(n){globalThis.removeEventListener("resize",this.queueResize),this._resizeTo=n,n&&(globalThis.addEventListener("resize",this.queueResize),this.resize())},get(){return this._resizeTo}}),this.queueResize=()=>{this._resizeTo&&(this._cancelResize(),this._resizeId=requestAnimationFrame(()=>this.resize()))},this._cancelResize=()=>{this._resizeId&&(cancelAnimationFrame(this._resizeId),this._resizeId=null)},this.resize=()=>{if(!this._resizeTo)return;this._cancelResize();let n,i;if(this._resizeTo===globalThis.window)n=globalThis.innerWidth,i=globalThis.innerHeight;else{const{clientWidth:r,clientHeight:s}=this._resizeTo;n=r,i=s}this.renderer.resize(n,i),this.render()},this._resizeId=null,this._resizeTo=null,this.resizeTo=e.resizeTo||null}static destroy(){globalThis.removeEventListener("resize",this.queueResize),this._cancelResize(),this._cancelResize=null,this.queueResize=null,this.resizeTo=null,this.resize=null}}Dte.extension=rt.Application;class Nte{static init(e){e=Object.assign({autoStart:!0,sharedTicker:!1},e),Object.defineProperty(this,"ticker",{configurable:!0,set(n){this._ticker&&this._ticker.remove(this.render,this),this._ticker=n,n&&n.add(this.render,this,Vw.LOW)},get(){return this._ticker}}),this.stop=()=>{this._ticker.stop()},this.start=()=>{this._ticker.start()},this._ticker=null,this.ticker=e.sharedTicker?bm.shared:new bm,e.autoStart&&this.start()}static destroy(){if(this._ticker){const e=this._ticker;this.ticker=null,e.destroy()}}}Nte.extension=rt.Application;In.add(Dte);In.add(Nte);const Qte=class HL{constructor(...e){this.stage=new $s,e[0]!==void 0&&wt(wn,"Application constructor options are deprecated, please use Application.init() instead.")}async init(e){e={...e},this.stage||(this.stage=new $s),this.renderer=await nIe(e),HL._plugins.forEach(n=>{n.init.call(this,e)})}render(){this.renderer.render({container:this.stage})}get canvas(){return this.renderer.canvas}get view(){return wt(wn,"Application.view is deprecated, please use Application.canvas instead."),this.renderer.canvas}get screen(){return this.renderer.screen}destroy(e=!1,n=!1){const i=HL._plugins.slice(0);i.reverse(),i.forEach(r=>{r.destroy.call(this)}),this.stage.destroy(n),this.stage=null,this.renderer.destroy(e),this.renderer=null}};Qte._plugins=[];let tC=Qte;In.handleByList(rt.Application,tC._plugins);In.add(Lte);var JE,Cq;function rIe(){if(Cq)return JE;Cq=1,JE=n;var t={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},e=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function n(s){var o=[];return s.replace(e,function(a,l,u){var d=l.toLowerCase();for(u=r(u),d=="m"&&u.length>2&&(o.push([l].concat(u.splice(0,2))),d="l",l=l=="m"?"l":"L");;){if(u.length==t[d])return u.unshift(l),o.push(u);if(u.length<t[d])throw new Error("malformed path data");o.push([l].concat(u.splice(0,t[d])))}}),o}var i=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/ig;function r(s){var o=s.match(i);return o?o.map(Number):[]}return JE}var sIe=rIe();const oIe=jx(sIe);function aIe(t,e){const n=oIe(t),i=[];let r=null,s=0,o=0;for(let a=0;a<n.length;a++){const l=n[a],u=l[0],d=l;switch(u){case"M":s=d[1],o=d[2],e.moveTo(s,o);break;case"m":s+=d[1],o+=d[2],e.moveTo(s,o);break;case"H":s=d[1],e.lineTo(s,o);break;case"h":s+=d[1],e.lineTo(s,o);break;case"V":o=d[1],e.lineTo(s,o);break;case"v":o+=d[1],e.lineTo(s,o);break;case"L":s=d[1],o=d[2],e.lineTo(s,o);break;case"l":s+=d[1],o+=d[2],e.lineTo(s,o);break;case"C":s=d[5],o=d[6],e.bezierCurveTo(d[1],d[2],d[3],d[4],s,o);break;case"c":e.bezierCurveTo(s+d[1],o+d[2],s+d[3],o+d[4],s+d[5],o+d[6]),s+=d[5],o+=d[6];break;case"S":s=d[3],o=d[4],e.bezierCurveToShort(d[1],d[2],s,o);break;case"s":e.bezierCurveToShort(s+d[1],o+d[2],s+d[3],o+d[4]),s+=d[3],o+=d[4];break;case"Q":s=d[3],o=d[4],e.quadraticCurveTo(d[1],d[2],s,o);break;case"q":e.quadraticCurveTo(s+d[1],o+d[2],s+d[3],o+d[4]),s+=d[3],o+=d[4];break;case"T":s=d[1],o=d[2],e.quadraticCurveToShort(s,o);break;case"t":s+=d[1],o+=d[2],e.quadraticCurveToShort(s,o);break;case"A":s=d[6],o=d[7],e.arcToSvg(d[1],d[2],d[3],d[4],d[5],s,o);break;case"a":s+=d[6],o+=d[7],e.arcToSvg(d[1],d[2],d[3],d[4],d[5],s,o);break;case"Z":case"z":e.closePath(),i.length>0&&(r=i.pop(),r?(s=r.startX,o=r.startY):(s=0,o=0)),r=null;break;default:Ar(`Unknown SVG path command: ${u}`)}u!=="Z"&&u!=="z"&&r===null&&(r={startX:s,startY:o},i.push(r))}return e}class K5{constructor(e=0,n=0,i=0){this.type="circle",this.x=e,this.y=n,this.radius=i}clone(){return new K5(this.x,this.y,this.radius)}contains(e,n){if(this.radius<=0)return!1;const i=this.radius*this.radius;let r=this.x-e,s=this.y-n;return r*=r,s*=s,r+s<=i}strokeContains(e,n,i,r=.5){if(this.radius===0)return!1;const s=this.x-e,o=this.y-n,a=this.radius,l=(1-r)*i,u=Math.sqrt(s*s+o*o);return u<=a+l&&u>a-(i-l)}getBounds(e){return e||(e=new Ln),e.x=this.x-this.radius,e.y=this.y-this.radius,e.width=this.radius*2,e.height=this.radius*2,e}copyFrom(e){return this.x=e.x,this.y=e.y,this.radius=e.radius,this}copyTo(e){return e.copyFrom(this),e}toString(){return`[pixi.js/math:Circle x=${this.x} y=${this.y} radius=${this.radius}]`}}class J5{constructor(e=0,n=0,i=0,r=0){this.type="ellipse",this.x=e,this.y=n,this.halfWidth=i,this.halfHeight=r}clone(){return new J5(this.x,this.y,this.halfWidth,this.halfHeight)}contains(e,n){if(this.halfWidth<=0||this.halfHeight<=0)return!1;let i=(e-this.x)/this.halfWidth,r=(n-this.y)/this.halfHeight;return i*=i,r*=r,i+r<=1}strokeContains(e,n,i,r=.5){const{halfWidth:s,halfHeight:o}=this;if(s<=0||o<=0)return!1;const a=i*(1-r),l=i-a,u=s-l,d=o-l,f=s+a,m=o+a,g=e-this.x,y=n-this.y,_=g*g/(u*u)+y*y/(d*d),v=g*g/(f*f)+y*y/(m*m);return _>1&&v<=1}getBounds(e){return e||(e=new Ln),e.x=this.x-this.halfWidth,e.y=this.y-this.halfHeight,e.width=this.halfWidth*2,e.height=this.halfHeight*2,e}copyFrom(e){return this.x=e.x,this.y=e.y,this.halfWidth=e.halfWidth,this.halfHeight=e.halfHeight,this}copyTo(e){return e.copyFrom(this),e}toString(){return`[pixi.js/math:Ellipse x=${this.x} y=${this.y} halfWidth=${this.halfWidth} halfHeight=${this.halfHeight}]`}}function lIe(t,e,n,i,r,s){const o=t-n,a=e-i,l=r-n,u=s-i,d=o*l+a*u,f=l*l+u*u;let m=-1;f!==0&&(m=d/f);let g,y;m<0?(g=n,y=i):m>1?(g=r,y=s):(g=n+m*l,y=i+m*u);const _=t-g,v=e-y;return _*_+v*v}let cIe,uIe;class A0{constructor(...e){this.type="polygon";let n=Array.isArray(e[0])?e[0]:e;if(typeof n[0]!="number"){const i=[];for(let r=0,s=n.length;r<s;r++)i.push(n[r].x,n[r].y);n=i}this.points=n,this.closePath=!0}isClockwise(){let e=0;const n=this.points,i=n.length;for(let r=0;r<i;r+=2){const s=n[r],o=n[r+1],a=n[(r+2)%i],l=n[(r+3)%i];e+=(a-s)*(l+o)}return e<0}containsPolygon(e){const n=this.getBounds(cIe),i=e.getBounds(uIe);if(!n.containsRect(i))return!1;const r=e.points;for(let s=0;s<r.length;s+=2){const o=r[s],a=r[s+1];if(!this.contains(o,a))return!1}return!0}clone(){const e=this.points.slice(),n=new A0(e);return n.closePath=this.closePath,n}contains(e,n){let i=!1;const r=this.points.length/2;for(let s=0,o=r-1;s<r;o=s++){const a=this.points[s*2],l=this.points[s*2+1],u=this.points[o*2],d=this.points[o*2+1];l>n!=d>n&&e<(u-a)*((n-l)/(d-l))+a&&(i=!i)}return i}strokeContains(e,n,i,r=.5){const s=i*i,o=s*(1-r),a=s-o,{points:l}=this,u=l.length-(this.closePath?0:2);for(let d=0;d<u;d+=2){const f=l[d],m=l[d+1],g=l[(d+2)%l.length],y=l[(d+3)%l.length],_=lIe(e,n,f,m,g,y),v=Math.sign((g-f)*(n-m)-(y-m)*(e-f));if(_<=(v<0?a:o))return!0}return!1}getBounds(e){e||(e=new Ln);const n=this.points;let i=1/0,r=-1/0,s=1/0,o=-1/0;for(let a=0,l=n.length;a<l;a+=2){const u=n[a],d=n[a+1];i=u<i?u:i,r=u>r?u:r,s=d<s?d:s,o=d>o?d:o}return e.x=i,e.width=r-i,e.y=s,e.height=o-s,e}copyFrom(e){return this.points=e.points.slice(),this.closePath=e.closePath,this}copyTo(e){return e.copyFrom(this),e}toString(){return`[pixi.js/math:PolygoncloseStroke=${this.closePath}points=${this.points.reduce((e,n)=>`${e}, ${n}`,"")}]`}get lastX(){return this.points[this.points.length-2]}get lastY(){return this.points[this.points.length-1]}get x(){return wt("8.11.0","Polygon.lastX is deprecated, please use Polygon.lastX instead."),this.points[this.points.length-2]}get y(){return wt("8.11.0","Polygon.y is deprecated, please use Polygon.lastY instead."),this.points[this.points.length-1]}get startX(){return this.points[0]}get startY(){return this.points[1]}}const C1=(t,e,n,i,r,s,o)=>{const a=t-n,l=e-i,u=Math.sqrt(a*a+l*l);return u>=r-s&&u<=r+o};class eQ{constructor(e=0,n=0,i=0,r=0,s=20){this.type="roundedRectangle",this.x=e,this.y=n,this.width=i,this.height=r,this.radius=s}getBounds(e){return e||(e=new Ln),e.x=this.x,e.y=this.y,e.width=this.width,e.height=this.height,e}clone(){return new eQ(this.x,this.y,this.width,this.height,this.radius)}copyFrom(e){return this.x=e.x,this.y=e.y,this.width=e.width,this.height=e.height,this}copyTo(e){return e.copyFrom(this),e}contains(e,n){if(this.width<=0||this.height<=0)return!1;if(e>=this.x&&e<=this.x+this.width&&n>=this.y&&n<=this.y+this.height){const i=Math.max(0,Math.min(this.radius,Math.min(this.width,this.height)/2));if(n>=this.y+i&&n<=this.y+this.height-i||e>=this.x+i&&e<=this.x+this.width-i)return!0;let r=e-(this.x+i),s=n-(this.y+i);const o=i*i;if(r*r+s*s<=o||(r=e-(this.x+this.width-i),r*r+s*s<=o)||(s=n-(this.y+this.height-i),r*r+s*s<=o)||(r=e-(this.x+i),r*r+s*s<=o))return!0}return!1}strokeContains(e,n,i,r=.5){const{x:s,y:o,width:a,height:l,radius:u}=this,d=i*(1-r),f=i-d,m=s+u,g=o+u,y=a-u*2,_=l-u*2,v=s+a,w=o+l;return(e>=s-d&&e<=s+f||e>=v-f&&e<=v+d)&&n>=g&&n<=g+_||(n>=o-d&&n<=o+f||n>=w-f&&n<=w+d)&&e>=m&&e<=m+y?!0:e<m&&n<g&&C1(e,n,m,g,u,f,d)||e>v-u&&n<g&&C1(e,n,v-u,g,u,f,d)||e>v-u&&n>w-u&&C1(e,n,v-u,w-u,u,f,d)||e<m&&n>w-u&&C1(e,n,m,w-u,u,f,d)}toString(){return`[pixi.js/math:RoundedRectangle x=${this.x} y=${this.y}width=${this.width} height=${this.height} radius=${this.radius}]`}}const Ite={};function hIe(t,e,n){let i=2166136261;for(let r=0;r<e;r++)i^=t[r].uid,i=Math.imul(i,16777619),i>>>=0;return Ite[i]||dIe(t,e,i,n)}function dIe(t,e,n,i){const r={};let s=0;for(let a=0;a<i;a++){const l=a<e?t[a]:qt.EMPTY.source;r[s++]=l.source,r[s++]=l.style}const o=new gS(r);return Ite[n]=o,o}class Tq{constructor(e){typeof e=="number"?this.rawBinaryData=new ArrayBuffer(e):e instanceof Uint8Array?this.rawBinaryData=e.buffer:this.rawBinaryData=e,this.uint32View=new Uint32Array(this.rawBinaryData),this.float32View=new Float32Array(this.rawBinaryData),this.size=this.rawBinaryData.byteLength}get int8View(){return this._int8View||(this._int8View=new Int8Array(this.rawBinaryData)),this._int8View}get uint8View(){return this._uint8View||(this._uint8View=new Uint8Array(this.rawBinaryData)),this._uint8View}get int16View(){return this._int16View||(this._int16View=new Int16Array(this.rawBinaryData)),this._int16View}get int32View(){return this._int32View||(this._int32View=new Int32Array(this.rawBinaryData)),this._int32View}get float64View(){return this._float64Array||(this._float64Array=new Float64Array(this.rawBinaryData)),this._float64Array}get bigUint64View(){return this._bigUint64Array||(this._bigUint64Array=new BigUint64Array(this.rawBinaryData)),this._bigUint64Array}view(e){return this[`${e}View`]}destroy(){this.rawBinaryData=null,this.uint32View=null,this.float32View=null,this.uint16View=null,this._int8View=null,this._uint8View=null,this._int16View=null,this._int32View=null,this._float64Array=null,this._bigUint64Array=null}static sizeOf(e){switch(e){case"int8":case"uint8":return 1;case"int16":case"uint16":return 2;case"int32":case"uint32":case"float32":return 4;default:throw new Error(`${e} isn't a valid view type`)}}}function Pq(t,e,n,i){if(n??(n=0),i??(i=Math.min(t.byteLength-n,e.byteLength)),!(n&7)&&!(i&7)){const r=i/8;new Float64Array(e,0,r).set(new Float64Array(t,n,r))}else if(!(n&3)&&!(i&3)){const r=i/4;new Float32Array(e,0,r).set(new Float32Array(t,n,r))}else new Uint8Array(e).set(new Uint8Array(t,n,i))}const fIe={normal:"normal-npm",add:"add-npm",screen:"screen-npm"};var pIe=(t=>(t[t.DISABLED=0]="DISABLED",t[t.RENDERING_MASK_ADD=1]="RENDERING_MASK_ADD",t[t.MASK_ACTIVE=2]="MASK_ACTIVE",t[t.INVERSE_MASK_ACTIVE=3]="INVERSE_MASK_ACTIVE",t[t.RENDERING_MASK_REMOVE=4]="RENDERING_MASK_REMOVE",t[t.NONE=5]="NONE",t))(pIe||{});function Aq(t,e){return e.alphaMode==="no-premultiply-alpha"&&fIe[t]||t}const mIe=["precision mediump float;","void main(void){","float test = 0.1;","%forloop%","gl_FragColor = vec4(0.0);","}"].join(`
|
|
997
997
|
`);function gIe(t){let e="";for(let n=0;n<t;++n)n>0&&(e+=`
|
|
998
998
|
else `),n<t-1&&(e+=`if(test == ${n}.0){}`);return e}function bIe(t,e){if(t===0)throw new Error("Invalid value of `0` passed to `checkMaxIfStatementsInShader`");const n=e.createShader(e.FRAGMENT_SHADER);try{for(;;){const i=mIe.replace(/%forloop%/gi,gIe(t));if(e.shaderSource(n,i),e.compileShader(n),!e.getShaderParameter(n,e.COMPILE_STATUS))t=t/2|0;else break}}finally{e.deleteShader(n)}return t}let Xp=null;function yIe(){if(Xp)return Xp;const t=gte();return Xp=t.getParameter(t.MAX_TEXTURE_IMAGE_UNITS),Xp=bIe(Xp,t),t.getExtension("WEBGL_lose_context")?.loseContext(),Xp}class xIe{constructor(){this.ids=Object.create(null),this.textures=[],this.count=0}clear(){for(let e=0;e<this.count;e++){const n=this.textures[e];this.textures[e]=null,this.ids[n.uid]=null}this.count=0}}class OIe{constructor(){this.renderPipeId="batch",this.action="startBatch",this.start=0,this.size=0,this.textures=new xIe,this.blendMode="normal",this.topology="triangle-strip",this.canBundle=!0}destroy(){this.textures=null,this.gpuBindGroup=null,this.bindGroup=null,this.batcher=null,this.elements=null}}const R0=[];let qw=0;cO.register({clear:()=>{if(R0.length>0)for(const t of R0)t&&t.destroy();R0.length=0,qw=0}});function Rq(){return qw>0?R0[--qw]:new OIe}function Eq(t){t.elements=null,R0[qw++]=t}let Sy=0;const jte=class Bte{constructor(e){this.uid=kn("batcher"),this.dirty=!0,this.batchIndex=0,this.batches=[],this._elements=[],e={...Bte.defaultOptions,...e},e.maxTextures||(wt("v8.8.0","maxTextures is a required option for Batcher now, please pass it in the options"),e.maxTextures=yIe());const{maxTextures:n,attributesInitialSize:i,indicesInitialSize:r}=e;this.attributeBuffer=new Tq(i*4),this.indexBuffer=new Uint16Array(r),this.maxTextures=n}begin(){this.elementSize=0,this.elementStart=0,this.indexSize=0,this.attributeSize=0;for(let e=0;e<this.batchIndex;e++)Eq(this.batches[e]);this.batchIndex=0,this._batchIndexStart=0,this._batchIndexSize=0,this.dirty=!0}add(e){this._elements[this.elementSize++]=e,e._indexStart=this.indexSize,e._attributeStart=this.attributeSize,e._batcher=this,this.indexSize+=e.indexSize,this.attributeSize+=e.attributeSize*this.vertexSize}checkAndUpdateTexture(e,n){const i=e._batch.textures.ids[n._source.uid];return!i&&i!==0?!1:(e._textureId=i,e.texture=n,!0)}updateElement(e){this.dirty=!0;const n=this.attributeBuffer;e.packAsQuad?this.packQuadAttributes(e,n.float32View,n.uint32View,e._attributeStart,e._textureId):this.packAttributes(e,n.float32View,n.uint32View,e._attributeStart,e._textureId)}break(e){const n=this._elements;if(!n[this.elementStart])return;let i=Rq(),r=i.textures;r.clear();const s=n[this.elementStart];let o=Aq(s.blendMode,s.texture._source),a=s.topology;this.attributeSize*4>this.attributeBuffer.size&&this._resizeAttributeBuffer(this.attributeSize*4),this.indexSize>this.indexBuffer.length&&this._resizeIndexBuffer(this.indexSize);const l=this.attributeBuffer.float32View,u=this.attributeBuffer.uint32View,d=this.indexBuffer;let f=this._batchIndexSize,m=this._batchIndexStart,g="startBatch",y=[];const _=this.maxTextures;for(let v=this.elementStart;v<this.elementSize;++v){const w=n[v];n[v]=null;const C=w.texture._source,E=Aq(w.blendMode,C),R=o!==E||a!==w.topology;if(C._batchTick===Sy&&!R){w._textureId=C._textureBindLocation,f+=w.indexSize,w.packAsQuad?(this.packQuadAttributes(w,l,u,w._attributeStart,w._textureId),this.packQuadIndex(d,w._indexStart,w._attributeStart/this.vertexSize)):(this.packAttributes(w,l,u,w._attributeStart,w._textureId),this.packIndex(w,d,w._indexStart,w._attributeStart/this.vertexSize)),w._batch=i,y.push(w);continue}C._batchTick=Sy,(r.count>=_||R)&&(this._finishBatch(i,m,f-m,r,o,a,e,g,y),g="renderBatch",m=f,o=E,a=w.topology,i=Rq(),r=i.textures,r.clear(),y=[],++Sy),w._textureId=C._textureBindLocation=r.count,r.ids[C.uid]=r.count,r.textures[r.count++]=C,w._batch=i,y.push(w),f+=w.indexSize,w.packAsQuad?(this.packQuadAttributes(w,l,u,w._attributeStart,w._textureId),this.packQuadIndex(d,w._indexStart,w._attributeStart/this.vertexSize)):(this.packAttributes(w,l,u,w._attributeStart,w._textureId),this.packIndex(w,d,w._indexStart,w._attributeStart/this.vertexSize))}r.count>0&&(this._finishBatch(i,m,f-m,r,o,a,e,g,y),m=f,++Sy),this.elementStart=this.elementSize,this._batchIndexStart=m,this._batchIndexSize=f}_finishBatch(e,n,i,r,s,o,a,l,u){e.gpuBindGroup=null,e.bindGroup=null,e.action=l,e.batcher=this,e.textures=r,e.blendMode=s,e.topology=o,e.start=n,e.size=i,e.elements=u,++Sy,this.batches[this.batchIndex++]=e,a.add(e)}finish(e){this.break(e)}ensureAttributeBuffer(e){e*4<=this.attributeBuffer.size||this._resizeAttributeBuffer(e*4)}ensureIndexBuffer(e){e<=this.indexBuffer.length||this._resizeIndexBuffer(e)}_resizeAttributeBuffer(e){const n=Math.max(e,this.attributeBuffer.size*2),i=new Tq(n);Pq(this.attributeBuffer.rawBinaryData,i.rawBinaryData),this.attributeBuffer=i}_resizeIndexBuffer(e){const n=this.indexBuffer;let i=Math.max(e,n.length*1.5);i+=i%2;const r=i>65535?new Uint32Array(i):new Uint16Array(i);if(r.BYTES_PER_ELEMENT!==n.BYTES_PER_ELEMENT)for(let s=0;s<n.length;s++)r[s]=n[s];else Pq(n.buffer,r.buffer);this.indexBuffer=r}packQuadIndex(e,n,i){e[n]=i+0,e[n+1]=i+1,e[n+2]=i+2,e[n+3]=i+0,e[n+4]=i+2,e[n+5]=i+3}packIndex(e,n,i,r){const s=e.indices,o=e.indexSize,a=e.indexOffset,l=e.attributeOffset;for(let u=0;u<o;u++)n[i++]=r+s[u+a]-l}destroy(e={}){if(this.batches!==null){for(let n=0;n<this.batchIndex;n++)Eq(this.batches[n]);this.batches=null,this.geometry.destroy(!0),this.geometry=null,e.shader&&(this.shader?.destroy(),this.shader=null);for(let n=0;n<this._elements.length;n++)this._elements[n]&&(this._elements[n]._batch=null);this._elements=null,this.indexBuffer=null,this.attributeBuffer.destroy(),this.attributeBuffer=null}}};jte.defaultOptions={maxTextures:null,attributesInitialSize:4,indicesInitialSize:6};let _Ie=jte;var Kr=(t=>(t[t.MAP_READ=1]="MAP_READ",t[t.MAP_WRITE=2]="MAP_WRITE",t[t.COPY_SRC=4]="COPY_SRC",t[t.COPY_DST=8]="COPY_DST",t[t.INDEX=16]="INDEX",t[t.VERTEX=32]="VERTEX",t[t.UNIFORM=64]="UNIFORM",t[t.STORAGE=128]="STORAGE",t[t.INDIRECT=256]="INDIRECT",t[t.QUERY_RESOLVE=512]="QUERY_RESOLVE",t[t.STATIC=1024]="STATIC",t))(Kr||{});let Qx=class extends nl{constructor(e){let{data:n,size:i}=e;const{usage:r,label:s,shrinkToFit:o}=e;super(),this._gpuData=Object.create(null),this._gcLastUsed=-1,this.autoGarbageCollect=!0,this.uid=kn("buffer"),this._resourceType="buffer",this._resourceId=kn("resource"),this._touched=0,this._updateID=1,this._dataInt32=null,this.shrinkToFit=!0,this.destroyed=!1,n instanceof Array&&(n=new Float32Array(n)),this._data=n,i??(i=n?.byteLength);const a=!!n;this.descriptor={size:i,usage:r,mappedAtCreation:a,label:s},this.shrinkToFit=o??!0}get data(){return this._data}set data(e){this.setDataWithSize(e,e.length,!0)}get dataInt32(){return this._dataInt32||(this._dataInt32=new Int32Array(this.data.buffer)),this._dataInt32}get static(){return!!(this.descriptor.usage&Kr.STATIC)}set static(e){e?this.descriptor.usage|=Kr.STATIC:this.descriptor.usage&=~Kr.STATIC}setDataWithSize(e,n,i){if(this._updateID++,this._updateSize=n*e.BYTES_PER_ELEMENT,this._data===e){i&&this.emit("update",this);return}const r=this._data;if(this._data=e,this._dataInt32=null,!r||r.length!==e.length){!this.shrinkToFit&&r&&e.byteLength<r.byteLength?i&&this.emit("update",this):(this.descriptor.size=e.byteLength,this._resourceId=kn("resource"),this.emit("change",this));return}i&&this.emit("update",this)}update(e){this._updateSize=e??this._updateSize,this._updateID++,this.emit("update",this)}unload(){this.emit("unload",this);for(const e in this._gpuData)this._gpuData[e]?.destroy();this._gpuData=Object.create(null)}destroy(){this.destroyed=!0,this.unload(),this.emit("destroy",this),this.emit("change",this),this._data=null,this.descriptor=null,this.removeAllListeners()}};function zte(t,e){if(!(t instanceof Qx)){let n=e?Kr.INDEX:Kr.VERTEX;t instanceof Array&&(e?(t=new Uint32Array(t),n=Kr.INDEX|Kr.COPY_DST):(t=new Float32Array(t),n=Kr.VERTEX|Kr.COPY_DST)),t=new Qx({data:t,label:e?"index-mesh-buffer":"vertex-mesh-buffer",usage:n})}return t}function vIe(t,e,n){const i=t.getAttribute(e);if(!i)return n.minX=0,n.minY=0,n.maxX=0,n.maxY=0,n;const r=i.buffer.data;let s=1/0,o=1/0,a=-1/0,l=-1/0;const u=r.BYTES_PER_ELEMENT,d=(i.offset||0)/u,f=(i.stride||8)/u;for(let m=d;m<r.length;m+=f){const g=r[m],y=r[m+1];g>a&&(a=g),y>l&&(l=y),g<s&&(s=g),y<o&&(o=y)}return n.minX=s,n.minY=o,n.maxX=a,n.maxY=l,n}function SIe(t){return(t instanceof Qx||Array.isArray(t)||t.BYTES_PER_ELEMENT)&&(t={buffer:t}),t.buffer=zte(t.buffer,!1),t}class wIe extends nl{constructor(e={}){super(),this._gpuData=Object.create(null),this.autoGarbageCollect=!0,this._gcLastUsed=-1,this.uid=kn("geometry"),this._layoutKey=0,this.instanceCount=1,this._bounds=new Po,this._boundsDirty=!0;const{attributes:n,indexBuffer:i,topology:r}=e;if(this.buffers=[],this.attributes={},n)for(const s in n)this.addAttribute(s,n[s]);this.instanceCount=e.instanceCount??1,i&&this.addIndex(i),this.topology=r||"triangle-list"}onBufferUpdate(){this._boundsDirty=!0,this.emit("update",this)}getAttribute(e){return this.attributes[e]}getIndex(){return this.indexBuffer}getBuffer(e){return this.getAttribute(e).buffer}getSize(){for(const e in this.attributes){const n=this.attributes[e];return n.buffer.data.length/(n.stride/4||n.size)}return 0}addAttribute(e,n){const i=SIe(n);this.buffers.indexOf(i.buffer)===-1&&(this.buffers.push(i.buffer),i.buffer.on("update",this.onBufferUpdate,this),i.buffer.on("change",this.onBufferUpdate,this)),this.attributes[e]=i}addIndex(e){this.indexBuffer=zte(e,!0),this.buffers.push(this.indexBuffer)}get bounds(){return this._boundsDirty?(this._boundsDirty=!1,vIe(this,"aPosition",this._bounds)):this._bounds}unload(){this.emit("unload",this);for(const e in this._gpuData)this._gpuData[e]?.destroy();this._gpuData=Object.create(null)}destroy(e=!1){this.emit("destroy",this),this.removeAllListeners(),e&&this.buffers.forEach(n=>n.destroy()),this.unload(),this.indexBuffer?.destroy(),this.attributes=null,this.buffers=null,this.indexBuffer=null,this._bounds=null}}const kIe=new Float32Array(1),CIe=new Uint32Array(1);class TIe extends wIe{constructor(){const n=new Qx({data:kIe,label:"attribute-batch-buffer",usage:Kr.VERTEX|Kr.COPY_DST,shrinkToFit:!1}),i=new Qx({data:CIe,label:"index-batch-buffer",usage:Kr.INDEX|Kr.COPY_DST,shrinkToFit:!1}),r=24;super({attributes:{aPosition:{buffer:n,format:"float32x2",stride:r,offset:0},aUV:{buffer:n,format:"float32x2",stride:r,offset:8},aColor:{buffer:n,format:"unorm8x4",stride:r,offset:16},aTextureIdAndRound:{buffer:n,format:"uint16x2",stride:r,offset:20}},indexBuffer:i})}}function Mq(t,e,n){if(t)for(const i in t){const r=i.toLocaleLowerCase(),s=e[r];if(s){let o=t[i];i==="header"&&(o=o.replace(/@in\s+[^;]+;\s*/g,"").replace(/@out\s+[^;]+;\s*/g,"")),n&&s.push(`//----${n}----//`),s.push(o)}else Ar(`${i} placement hook does not exist in shader`)}}const PIe=/\{\{(.*?)\}\}/g;function $q(t){const e={};return(t.match(PIe)?.map(i=>i.replace(/[{()}]/g,""))??[]).forEach(i=>{e[i]=[]}),e}function Lq(t,e){let n;const i=/@in\s+([^;]+);/g;for(;(n=i.exec(t))!==null;)e.push(n[1])}function Dq(t,e,n=!1){const i=[];Lq(e,i),t.forEach(a=>{a.header&&Lq(a.header,i)});const r=i;n&&r.sort();const s=r.map((a,l)=>` @location(${l}) ${a},`).join(`
|
|
999
999
|
`);let o=e.replace(/@in\s+[^;]+;\s*/g,"");return o=o.replace("{{in}}",`
|