@evoscientist/webui 0.1.8 → 0.1.9
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/.next/BUILD_ID +1 -1
- package/dist/.next/build-manifest.json +3 -3
- package/dist/.next/prerender-manifest.json +3 -3
- package/dist/.next/server/app/_global-error.html +1 -1
- package/dist/.next/server/app/_global-error.rsc +1 -1
- package/dist/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/dist/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/dist/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/dist/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/dist/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/dist/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/dist/.next/server/app/_not-found.html +1 -1
- package/dist/.next/server/app/_not-found.rsc +2 -2
- package/dist/.next/server/app/_not-found.segments/_full.segment.rsc +2 -2
- package/dist/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/dist/.next/server/app/_not-found.segments/_index.segment.rsc +2 -2
- package/dist/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/dist/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- package/dist/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/dist/.next/server/app/api/memory/executions/route.js.nft.json +1 -1
- package/dist/.next/server/app/api/memory/observations/route.js.nft.json +1 -1
- package/dist/.next/server/app/api/memory/route.js.nft.json +1 -1
- package/dist/.next/server/app/api/skills/catalog/route.js.nft.json +1 -1
- package/dist/.next/server/app/api/skills/detail/route.js.nft.json +1 -1
- package/dist/.next/server/app/api/skills/install/route.js.nft.json +1 -1
- package/dist/.next/server/app/api/skills/route.js.nft.json +1 -1
- package/dist/.next/server/app/index.html +1 -1
- package/dist/.next/server/app/index.rsc +3 -3
- package/dist/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
- package/dist/.next/server/app/index.segments/_full.segment.rsc +3 -3
- package/dist/.next/server/app/index.segments/_head.segment.rsc +1 -1
- package/dist/.next/server/app/index.segments/_index.segment.rsc +2 -2
- package/dist/.next/server/app/index.segments/_tree.segment.rsc +2 -2
- package/dist/.next/server/app/page.js.nft.json +1 -1
- package/dist/.next/server/app/page_client-reference-manifest.js +1 -1
- package/dist/.next/server/chunks/ssr/[root-of-the-server]__031lpnq._.js +153 -0
- package/dist/.next/server/chunks/ssr/[root-of-the-server]__098zro9._.js +1 -1
- package/dist/.next/server/chunks/ssr/[root-of-the-server]__0cylknl._.js +12 -0
- package/dist/.next/server/chunks/ssr/[root-of-the-server]__0lb9jwe._.js +1 -1
- package/dist/.next/server/chunks/ssr/[root-of-the-server]__0o15ly3._.js +3 -0
- package/dist/.next/server/chunks/ssr/[root-of-the-server]__0tcyn68._.js +1 -1
- package/dist/.next/server/chunks/ssr/[root-of-the-server]__0zi~h76._.js +1 -1
- package/dist/.next/server/chunks/ssr/{node_modules_0gphtnw._.js → node_modules_0-4cpr6._.js} +1 -1
- package/dist/.next/server/chunks/ssr/{node_modules_03~0xs_._.js → node_modules_0-jp53t._.js} +1 -1
- package/dist/.next/server/chunks/ssr/{node_modules_0bcgjch._.js → node_modules_0-lj-hc._.js} +1 -1
- package/dist/.next/server/chunks/ssr/{node_modules_0x7cce9._.js → node_modules_000i~jh._.js} +1 -1
- package/dist/.next/server/chunks/ssr/{node_modules_0l5l~ro._.js → node_modules_0360s-l._.js} +2 -2
- package/dist/.next/server/chunks/ssr/{node_modules_0vryeti._.js → node_modules_03gefr~._.js} +2 -2
- package/dist/.next/server/chunks/ssr/{node_modules_12cec_q._.js → node_modules_05pc.px._.js} +1 -1
- package/dist/.next/server/chunks/ssr/{node_modules_0nohaau._.js → node_modules_069--3d._.js} +1 -1
- package/dist/.next/server/chunks/ssr/{node_modules_0t3-6-e._.js → node_modules_09wle.b._.js} +1 -1
- package/dist/.next/server/chunks/ssr/{node_modules_045havb._.js → node_modules_0a7t5w~._.js} +1 -1
- package/dist/.next/server/chunks/ssr/{node_modules_0bonkm6._.js → node_modules_0b3oavq._.js} +1 -1
- package/dist/.next/server/chunks/ssr/{node_modules_0adgad6._.js → node_modules_0e6_mc0._.js} +2 -2
- package/dist/.next/server/chunks/ssr/{node_modules_0rkuijy._.js → node_modules_0erdo7.._.js} +1 -1
- package/dist/.next/server/chunks/ssr/{node_modules_0kzcvy9._.js → node_modules_0h13g9.._.js} +1 -1
- package/dist/.next/server/chunks/ssr/{node_modules_0wx0hxc._.js → node_modules_0i.79qy._.js} +1 -1
- package/dist/.next/server/chunks/ssr/{node_modules_02c02vx._.js → node_modules_0j4g6~g._.js} +1 -1
- package/dist/.next/server/chunks/ssr/{node_modules_0s7bb_r._.js → node_modules_0l8jzzn._.js} +2 -2
- package/dist/.next/server/chunks/ssr/{node_modules_0wsb222._.js → node_modules_0o3d.~l._.js} +2 -2
- package/dist/.next/server/chunks/ssr/{node_modules_12dlk8_._.js → node_modules_0rir0z-._.js} +1 -1
- package/dist/.next/server/chunks/ssr/{node_modules_0gmpfcz._.js → node_modules_0u-ji7t._.js} +1 -1
- package/dist/.next/server/chunks/ssr/{node_modules_0~uu.t-._.js → node_modules_0v.d328._.js} +1 -1
- package/dist/.next/server/chunks/ssr/{node_modules_0hqb5e9._.js → node_modules_0wkir~d._.js} +2 -2
- package/dist/.next/server/chunks/ssr/{node_modules_0ie-~7s._.js → node_modules_0x.p8yf._.js} +1 -1
- package/dist/.next/server/chunks/ssr/{node_modules_0or7oi5._.js → node_modules_0zyf5mu._.js} +1 -1
- package/dist/.next/server/chunks/ssr/{node_modules_09_392h._.js → node_modules_0~.1dgw._.js} +1 -1
- package/dist/.next/server/chunks/ssr/{node_modules_0q.7hkj._.js → node_modules_112urwm._.js} +2 -2
- package/dist/.next/server/chunks/ssr/{node_modules_0-t8_k~._.js → node_modules_11v3942._.js} +1 -1
- package/dist/.next/server/chunks/ssr/{node_modules_katex_dist_katex_mjs_0jz09k3._.js → node_modules_katex_dist_katex_mjs_0dvkszy._.js} +1 -1
- package/dist/.next/server/middleware-build-manifest.js +3 -3
- package/dist/.next/server/pages/404.html +1 -1
- package/dist/.next/server/pages/500.html +1 -1
- package/dist/.next/server/server-reference-manifest.js +1 -1
- package/dist/.next/server/server-reference-manifest.json +1 -1
- package/dist/.next/static/chunks/{0hc3g~v7-75zc.css → 0akn6cfuwun5d.css} +1 -1
- package/dist/.next/static/chunks/0fztj908zx93v.js +10 -0
- package/dist/.next/static/chunks/0n46g0ilh8wj..js +60 -0
- package/dist/.next/static/chunks/16k05wezoz4u0.js +1 -0
- package/dist/package.json +3 -3
- package/package.json +3 -3
- package/dist/.next/server/chunks/ssr/[root-of-the-server]__0lly75w._.js +0 -3
- package/dist/.next/server/chunks/ssr/[root-of-the-server]__0wd7vkh._.js +0 -166
- package/dist/.next/static/chunks/01y.jx.nxbr-q.js +0 -1
- package/dist/.next/static/chunks/04qv4xl3o6r3q.js +0 -73
- /package/dist/.next/static/{RKDDtu44OqHk-WgFCSU4o → y085vXnazd8RhLMChaZe5}/_buildManifest.js +0 -0
- /package/dist/.next/static/{RKDDtu44OqHk-WgFCSU4o → y085vXnazd8RhLMChaZe5}/_clientMiddlewareManifest.js +0 -0
- /package/dist/.next/static/{RKDDtu44OqHk-WgFCSU4o → y085vXnazd8RhLMChaZe5}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,488143,(e,t,n)=>{"use strict";function r({widthInt:e,heightInt:t,blurWidth:n,blurHeight:a,blurDataURL:i,objectFit:s}){let o=n?40*n:e,l=a?40*a:t,c=o&&l?`viewBox='0 0 ${o} ${l}'`:"";return`%3Csvg xmlns='http://www.w3.org/2000/svg' ${c}%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='${c?"none":"contain"===s?"xMidYMid":"cover"===s?"xMidYMid slice":"none"}' style='filter: url(%23b);' href='${i}'/%3E%3C/svg%3E`}Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"getImageBlurSvg",{enumerable:!0,get:function(){return r}})},987690,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={VALID_LOADERS:function(){return i},imageConfigDefault:function(){return s}};for(var a in r)Object.defineProperty(n,a,{enumerable:!0,get:r[a]});let i=["default","imgix","cloudinary","akamai","custom"],s={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:14400,formats:["image/webp"],maximumDiskCacheSize:void 0,maximumRedirects:3,maximumResponseBody:5e7,dangerouslyAllowLocalIP:!1,dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"attachment",localPatterns:void 0,remotePatterns:[],qualities:[75],unoptimized:!1,customCacheHandler:!1}},908927,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"getImgProps",{enumerable:!0,get:function(){return c}}),e.r(233525);let r=e.r(543369),a=e.r(488143),i=e.r(987690),s=["-moz-initial","fill","none","scale-down",void 0];function o(e){return void 0!==e.default}function l(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function c({src:e,sizes:t,unoptimized:n=!1,priority:u=!1,preload:d=!1,loading:p,className:m,quality:h,width:f,height:g,fill:b=!1,style:y,overrideSrc:E,onLoad:x,onLoadingComplete:S,placeholder:T="empty",blurDataURL:v,fetchPriority:A,decoding:_="async",layout:k,objectFit:N,objectPosition:w,lazyBoundary:I,lazyRoot:C,...R},O){var L;let D,P,M,{imgConf:F,showAltText:j,blurComplete:U,defaultLoader:B}=O,H=F||i.imageConfigDefault;if("allSizes"in H)D=H;else{let e=[...H.deviceSizes,...H.imageSizes].sort((e,t)=>e-t),t=H.deviceSizes.sort((e,t)=>e-t),n=H.qualities?.sort((e,t)=>e-t);D={...H,allSizes:e,deviceSizes:t,qualities:n}}if(void 0===B)throw Object.defineProperty(Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config"),"__NEXT_ERROR_CODE",{value:"E163",enumerable:!1,configurable:!0});let z=R.loader||B;delete R.loader,delete R.srcSet;let G="__next_img_default"in z;if(G){if("custom"===D.loader)throw Object.defineProperty(Error(`Image with src "${e}" is missing "loader" prop.
|
|
2
|
+
Read more: https://nextjs.org/docs/messages/next-image-missing-loader`),"__NEXT_ERROR_CODE",{value:"E252",enumerable:!1,configurable:!0})}else{let e=z;z=t=>{let{config:n,...r}=t;return e(r)}}if(k){"fill"===k&&(b=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[k];e&&(y={...y,...e});let n={responsive:"100vw",fill:"100vw"}[k];n&&!t&&(t=n)}let $="",q=l(f),V=l(g);if((L=e)&&"object"==typeof L&&(o(L)||void 0!==L.src)){let t=o(e)?e.default:e;if(!t.src)throw Object.defineProperty(Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received ${JSON.stringify(t)}`),"__NEXT_ERROR_CODE",{value:"E460",enumerable:!1,configurable:!0});if(!t.height||!t.width)throw Object.defineProperty(Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received ${JSON.stringify(t)}`),"__NEXT_ERROR_CODE",{value:"E48",enumerable:!1,configurable:!0});if(P=t.blurWidth,M=t.blurHeight,v=v||t.blurDataURL,$=t.src,!b)if(q||V){if(q&&!V){let e=q/t.width;V=Math.round(t.height*e)}else if(!q&&V){let e=V/t.height;q=Math.round(t.width*e)}}else q=t.width,V=t.height}let W=!u&&!d&&("lazy"===p||void 0===p);(!(e="string"==typeof e?e:$)||e.startsWith("data:")||e.startsWith("blob:"))&&(n=!0,W=!1),D.unoptimized&&(n=!0),G&&!D.dangerouslyAllowSVG&&e.split("?",1)[0].endsWith(".svg")&&(n=!0);let Y=l(h),K=Object.assign(b?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:N,objectPosition:w}:{},j?{}:{color:"transparent"},y),X=U||"empty"===T?null:"blur"===T?`url("data:image/svg+xml;charset=utf-8,${(0,a.getImageBlurSvg)({widthInt:q,heightInt:V,blurWidth:P,blurHeight:M,blurDataURL:v||"",objectFit:K.objectFit})}")`:`url("${T}")`,Z=s.includes(K.objectFit)?"fill"===K.objectFit?"100% 100%":"cover":K.objectFit,Q=X?{backgroundSize:Z,backgroundPosition:K.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:X}:{},J=function({config:e,src:t,unoptimized:n,width:a,quality:i,sizes:s,loader:o}){if(n){if(t.startsWith("/")&&!t.startsWith("//")){let e=(0,r.getDeploymentId)();if(e){let n=t.indexOf("?");if(-1!==n){let r=new URLSearchParams(t.slice(n+1));r.get("dpl")||(r.append("dpl",e),t=t.slice(0,n)+"?"+r.toString())}else t+=`?dpl=${e}`}}return{src:t,srcSet:void 0,sizes:void 0}}let{widths:l,kind:c}=function({deviceSizes:e,allSizes:t},n,r){if(r){let n=/(^|\s)(1?\d?\d)vw/g,a=[];for(let e;e=n.exec(r);)a.push(parseInt(e[2]));if(a.length){let n=.01*Math.min(...a);return{widths:t.filter(t=>t>=e[0]*n),kind:"w"}}return{widths:t,kind:"w"}}return"number"!=typeof n?{widths:e,kind:"w"}:{widths:[...new Set([n,2*n].map(e=>t.find(t=>t>=e)||t[t.length-1]))],kind:"x"}}(e,a,s),u=l.length-1;return{sizes:s||"w"!==c?s:"100vw",srcSet:l.map((n,r)=>`${o({config:e,src:t,quality:i,width:n})} ${"w"===c?n:r+1}${c}`).join(", "),src:o({config:e,src:t,quality:i,width:l[u]})}}({config:D,src:e,unoptimized:n,width:q,quality:Y,sizes:t,loader:z}),ee=W?"lazy":p;return{props:{...R,loading:ee,fetchPriority:A,width:q,height:V,decoding:_,className:m,style:{...K,...Q},sizes:J.sizes,srcSet:J.srcSet,src:E||J.src},meta:{unoptimized:n,preload:d||u,placeholder:T,fill:b}}}},898879,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return o}});let r=e.r(271645),a="u"<typeof window,i=a?()=>{}:r.useLayoutEffect,s=a?()=>{}:r.useEffect;function o(e){let{headManager:t,reduceComponentsToState:n}=e;function o(){if(t&&t.mountedInstances){let e=r.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(n(e))}}return a&&(t?.mountedInstances?.add(e.children),o()),i(()=>(t?.mountedInstances?.add(e.children),()=>{t?.mountedInstances?.delete(e.children)})),i(()=>(t&&(t._pendingUpdate=o),()=>{t&&(t._pendingUpdate=o)})),s(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},325633,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={default:function(){return f},defaultHead:function(){return d}};for(var a in r)Object.defineProperty(n,a,{enumerable:!0,get:r[a]});let i=e.r(555682),s=e.r(190809),o=e.r(843476),l=s._(e.r(271645)),c=i._(e.r(898879)),u=e.r(742732);function d(){return[(0,o.jsx)("meta",{charSet:"utf-8"},"charset"),(0,o.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")]}function p(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===l.default.Fragment?e.concat(l.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}e.r(233525);let m=["name","httpEquiv","charSet","itemProp"];function h(e){let t,n,r,a;return e.reduce(p,[]).reverse().concat(d().reverse()).filter((t=new Set,n=new Set,r=new Set,a={},e=>{let i=!0,s=!1;if(e.key&&"number"!=typeof e.key&&e.key.indexOf("$")>0){s=!0;let n=e.key.slice(e.key.indexOf("$")+1);t.has(n)?i=!1:t.add(n)}switch(e.type){case"title":case"base":n.has(e.type)?i=!1:n.add(e.type);break;case"meta":for(let t=0,n=m.length;t<n;t++){let n=m[t];if(e.props.hasOwnProperty(n))if("charSet"===n)r.has(n)?i=!1:r.add(n);else{let t=e.props[n],r=a[n]||new Set;("name"!==n||!s)&&r.has(t)?i=!1:(r.add(t),a[n]=r)}}}return i})).reverse().map((e,t)=>{let n=e.key||t;return l.default.cloneElement(e,{key:n})})}let f=function({children:e}){let t=(0,l.useContext)(u.HeadManagerContext);return(0,o.jsx)(c.default,{reduceComponentsToState:h,headManager:t,children:e})};("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},918556,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"ImageConfigContext",{enumerable:!0,get:function(){return i}});let r=e.r(555682)._(e.r(271645)),a=e.r(987690),i=r.default.createContext(a.imageConfigDefault)},65856,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"RouterContext",{enumerable:!0,get:function(){return r}});let r=e.r(555682)._(e.r(271645)).default.createContext(null)},670965,(e,t,n)=>{"use strict";function r(e,t){let n=e||75;return t?.qualities?.length?t.qualities.reduce((e,t)=>Math.abs(t-n)<Math.abs(e-n)?t:e,t.qualities[0]):n}Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"findClosestQuality",{enumerable:!0,get:function(){return r}})},1948,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return s}});let r=e.r(670965),a=e.r(543369);function i({config:e,src:t,width:n,quality:s}){let o=(0,a.getDeploymentId)();if(t.startsWith("/")&&!t.startsWith("//")){let e=t.indexOf("?");if(-1!==e){let n=new URLSearchParams(t.slice(e+1)),r=n.get("dpl");if(r){o=r,n.delete("dpl");let a=n.toString();t=t.slice(0,e)+(a?"?"+a:"")}}}if(t.startsWith("/")&&t.includes("?")&&e.localPatterns?.length===1&&"**"===e.localPatterns[0].pathname&&""===e.localPatterns[0].search)throw Object.defineProperty(Error(`Image with src "${t}" is using a query string which is not configured in images.localPatterns.
|
|
3
|
+
Read more: https://nextjs.org/docs/messages/next-image-unconfigured-localpatterns`),"__NEXT_ERROR_CODE",{value:"E871",enumerable:!1,configurable:!0});let l=(0,r.findClosestQuality)(s,e);return`${e.path}?url=${encodeURIComponent(t)}&w=${n}&q=${l}${t.startsWith("/")&&o?`&dpl=${o}`:""}`}i.__next_img_default=!0;let s=i},818581,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"useMergedRef",{enumerable:!0,get:function(){return a}});let r=e.r(271645);function a(e,t){let n=(0,r.useRef)(null),a=(0,r.useRef)(null);return(0,r.useCallback)(r=>{if(null===r){let e=n.current;e&&(n.current=null,e());let t=a.current;t&&(a.current=null,t())}else e&&(n.current=i(e,r)),t&&(a.current=i(t,r))},[e,t])}function i(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let n=e(t);return"function"==typeof n?n:()=>e(null)}}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},605500,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"Image",{enumerable:!0,get:function(){return x}});let r=e.r(555682),a=e.r(190809),i=e.r(843476),s=a._(e.r(271645)),o=r._(e.r(174080)),l=r._(e.r(325633)),c=e.r(908927),u=e.r(987690),d=e.r(918556);e.r(233525);let p=e.r(65856),m=r._(e.r(1948)),h=e.r(818581),f={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1};function g(e,t,n,r,a,i,s){let o=e?.src;e&&e["data-loaded-src"]!==o&&(e["data-loaded-src"]=o,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&a(!0),n?.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let r=!1,a=!1;n.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>r,isPropagationStopped:()=>a,persist:()=>{},preventDefault:()=>{r=!0,t.preventDefault()},stopPropagation:()=>{a=!0,t.stopPropagation()}})}r?.current&&r.current(e)}}))}function b(e){return s.use?{fetchPriority:e}:{fetchpriority:e}}"u"<typeof window&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);let y=(0,s.forwardRef)(({src:e,srcSet:t,sizes:n,height:r,width:a,decoding:o,className:l,style:c,fetchPriority:u,placeholder:d,loading:p,unoptimized:m,fill:f,onLoadRef:y,onLoadingCompleteRef:E,setBlurComplete:x,setShowAltText:S,sizesInput:T,onLoad:v,onError:A,..._},k)=>{let N=(0,s.useCallback)(e=>{e&&(A&&(e.src=e.src),e.complete&&g(e,d,y,E,x,m,T))},[e,d,y,E,x,A,m,T]),w=(0,h.useMergedRef)(k,N);return(0,i.jsx)("img",{..._,...b(u),loading:p,width:a,height:r,decoding:o,"data-nimg":f?"fill":"1",className:l,style:c,sizes:n,srcSet:t,src:e,ref:w,onLoad:e=>{g(e.currentTarget,d,y,E,x,m,T)},onError:e=>{S(!0),"empty"!==d&&x(!0),A&&A(e)}})});function E({isAppRouter:e,imgAttributes:t}){let n={as:"image",imageSrcSet:t.srcSet,imageSizes:t.sizes,crossOrigin:t.crossOrigin,referrerPolicy:t.referrerPolicy,...b(t.fetchPriority)};return e&&o.default.preload?(o.default.preload(t.src,n),null):(0,i.jsx)(l.default,{children:(0,i.jsx)("link",{rel:"preload",href:t.srcSet?void 0:t.src,...n},"__nimg-"+t.src+t.srcSet+t.sizes)})}let x=(0,s.forwardRef)((e,t)=>{let n=(0,s.useContext)(p.RouterContext),r=(0,s.useContext)(d.ImageConfigContext),a=(0,s.useMemo)(()=>{let e=f||r||u.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),n=e.deviceSizes.sort((e,t)=>e-t),a=e.qualities?.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:n,qualities:a,localPatterns:"u"<typeof window?r?.localPatterns:e.localPatterns}},[r]),{onLoad:o,onLoadingComplete:l}=e,h=(0,s.useRef)(o);(0,s.useEffect)(()=>{h.current=o},[o]);let g=(0,s.useRef)(l);(0,s.useEffect)(()=>{g.current=l},[l]);let[b,x]=(0,s.useState)(!1),[S,T]=(0,s.useState)(!1),{props:v,meta:A}=(0,c.getImgProps)(e,{defaultLoader:m.default,imgConf:a,blurComplete:b,showAltText:S});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(y,{...v,unoptimized:A.unoptimized,placeholder:A.placeholder,fill:A.fill,onLoadRef:h,onLoadingCompleteRef:g,setBlurComplete:x,setShowAltText:T,sizesInput:e.sizes,ref:t}),A.preload?(0,i.jsx)(E,{isAppRouter:!n,imgAttributes:v}):null]})});("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},794909,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={default:function(){return u},getImageProps:function(){return c}};for(var a in r)Object.defineProperty(n,a,{enumerable:!0,get:r[a]});let i=e.r(555682),s=e.r(908927),o=e.r(605500),l=i._(e.r(1948));function c(e){let{props:t}=(0,s.getImgProps)(e,{defaultLoader:l.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,n]of Object.entries(t))void 0===n&&delete t[e];return{props:t}}let u=o.Image},657688,(e,t,n)=>{t.exports=e.r(794909)},755838,(e,t,n)=>{"use strict";var r=e.r(271645),a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useState,s=r.useEffect,o=r.useLayoutEffect,l=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!a(e,n)}catch(e){return!0}}var u="u"<typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),a=r[0].inst,u=r[1];return o(function(){a.value=n,a.getSnapshot=t,c(a)&&u({inst:a})},[e,n,t]),s(function(){return c(a)&&u({inst:a}),e(function(){c(a)&&u({inst:a})})},[e]),l(n),n};n.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u},802239,(e,t,n)=>{"use strict";t.exports=e.r(755838)},126568,(e,t,n)=>{"use strict";var r=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,a=/\n/g,i=/^\s*/,s=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,l=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,u=/^\s+|\s+$/g;function d(e){return e?e.replace(u,""):""}t.exports=function(e,t){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,u=1;function p(e){var t=e.match(a);t&&(n+=t.length);var r=e.lastIndexOf("\n");u=~r?e.length-r:u+e.length}function m(){var e={line:n,column:u};return function(t){return t.position=new h(e),g(i),t}}function h(e){this.start=e,this.end={line:n,column:u},this.source=t.source}function f(r){var a=Error(t.source+":"+n+":"+u+": "+r);if(a.reason=r,a.filename=t.source,a.line=n,a.column=u,a.source=e,t.silent);else throw a}function g(t){var n=t.exec(e);if(n){var r=n[0];return p(r),e=e.slice(r.length),n}}function b(e){var t;for(e=e||[];t=y();)!1!==t&&e.push(t);return e}function y(){var t=m();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;""!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return f("End of comment missing");var r=e.slice(2,n-2);return u+=2,p(r),e=e.slice(n),u+=2,t({type:"comment",comment:r})}}h.prototype.content=e,g(i);var E,x=[];for(b(x);E=function(){var e=m(),t=g(s);if(t){if(y(),!g(o))return f("property missing ':'");var n=g(l),a=e({type:"declaration",property:d(t[0].replace(r,"")),value:n?d(n[0].replace(r,"")):""});return g(c),a}}();)!1!==E&&(x.push(E),b(x));return x}},270454,(e,t,n)=>{"use strict";var r=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,t){let n=null;if(!e||"string"!=typeof e)return n;let r=(0,a.default)(e),i="function"==typeof t;return r.forEach(e=>{if("declaration"!==e.type)return;let{property:r,value:a}=e;i?t(r,a,e):a&&((n=n||{})[r]=a)}),n};let a=r(e.r(126568))},965185,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.camelCase=void 0;var r=/^--[a-zA-Z0-9_-]+$/,a=/-([a-z])/g,i=/^[^-]+$/,s=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,l=function(e,t){return t.toUpperCase()},c=function(e,t){return"".concat(t,"-")};n.camelCase=function(e,t){var n;return(void 0===t&&(t={}),!(n=e)||i.test(n)||r.test(n))?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(o,c):e.replace(s,c)).replace(a,l))}},515511,(e,t,n)=>{"use strict";var r=(e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(e.r(270454)),a=e.r(965185);function i(e,t){var n={};return e&&"string"==typeof e&&(0,r.default)(e,function(e,r){e&&r&&(n[(0,a.camelCase)(e,t)]=r)}),n}i.default=i,t.exports=i},104100,(e,t,n)=>{"use strict";var r=Object.prototype.hasOwnProperty,a=Object.prototype.toString,i=Object.defineProperty,s=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===a.call(e)},l=function(e){if(!e||"[object Object]"!==a.call(e))return!1;var t,n=r.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&r.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!i)return!1;for(t in e);return void 0===t||r.call(e,t)},c=function(e,t){i&&"__proto__"===t.name?i(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},u=function(e,t){if("__proto__"===t){if(!r.call(e,t))return;else if(s)return s(e,t).value}return e[t]};t.exports=function e(){var t,n,r,a,i,s,d=arguments[0],p=1,m=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<m;++p)if(t=arguments[p],null!=t)for(n in t)r=u(d,n),d!==(a=u(t,n))&&(h&&a&&(l(a)||(i=o(a)))?(i?(i=!1,s=r&&o(r)?r:[]):s=r&&l(r)?r:{},c(d,{name:n,newValue:e(h,s,a)})):void 0!==a&&c(d,{name:n,newValue:a}));return d}},314044,(e,t,n)=>{t.exports=function(){for(var e={},t=0;t<arguments.length;t++){var n=arguments[t];for(var a in n)r.call(n,a)&&(e[a]=n[a])}return e};var r=Object.prototype.hasOwnProperty},878413,(e,t,n)=>{"use strict";t.exports=a;var r=a.prototype;function a(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}r.space=null,r.normal={},r.property={}},372561,(e,t,n)=>{"use strict";var r=e.r(314044),a=e.r(878413);t.exports=function(e){for(var t,n,i=e.length,s=[],o=[],l=-1;++l<i;)t=e[l],s.push(t.property),o.push(t.normal),n=t.space;return new a(r.apply(null,s),r.apply(null,o),n)}},772593,(e,t,n)=>{"use strict";t.exports=function(e){return e.toLowerCase()}},533352,(e,t,n)=>{"use strict";t.exports=a;var r=a.prototype;function a(e,t){this.property=e,this.attribute=t}r.space=null,r.attribute=null,r.property=null,r.boolean=!1,r.booleanish=!1,r.overloadedBoolean=!1,r.number=!1,r.commaSeparated=!1,r.spaceSeparated=!1,r.commaOrSpaceSeparated=!1,r.mustUseProperty=!1,r.defined=!1},742210,(e,t,n)=>{"use strict";var r=0;function a(){return Math.pow(2,++r)}n.boolean=a(),n.booleanish=a(),n.overloadedBoolean=a(),n.number=a(),n.spaceSeparated=a(),n.commaSeparated=a(),n.commaOrSpaceSeparated=a()},340108,(e,t,n)=>{"use strict";var r=e.r(533352),a=e.r(742210);t.exports=o,o.prototype=new r,o.prototype.defined=!0;var i=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],s=i.length;function o(e,t,n,o){var l,c,u,d,p,m,h=-1;for(l=this,(c=o)&&(l.space=c),r.call(this,e,t);++h<s;){u=this,d=m=i[h],(p=(n&a[m])===a[m])&&(u[d]=p)}}},531418,(e,t,n)=>{"use strict";var r=e.r(772593),a=e.r(878413),i=e.r(340108);t.exports=function(e){var t,n,s=e.space,o=e.mustUseProperty||[],l=e.attributes||{},c=e.properties,u=e.transform,d={},p={};for(t in c)n=new i(t,u(l,t),c[t],s),-1!==o.indexOf(t)&&(n.mustUseProperty=!0),d[t]=n,p[r(t)]=t,p[r(n.attribute)]=t;return new a(d,p,s)}},373500,(e,t,n)=>{"use strict";t.exports=e.r(531418)({space:"xlink",transform:function(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}})},582486,(e,t,n)=>{"use strict";t.exports=e.r(531418)({space:"xml",transform:function(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}})},897025,(e,t,n)=>{"use strict";t.exports=function(e,t){return t in e?e[t]:t}},930009,(e,t,n)=>{"use strict";var r=e.r(897025);t.exports=function(e,t){return r(e,t.toLowerCase())}},133421,(e,t,n)=>{"use strict";t.exports=e.r(531418)({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:e.r(930009),properties:{xmlns:null,xmlnsXLink:null}})},982216,(e,t,n)=>{"use strict";var r=e.r(742210),a=e.r(531418),i=r.booleanish,s=r.number,o=r.spaceSeparated;t.exports=a({transform:function(e,t){return"role"===t?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:i,ariaAutoComplete:null,ariaBusy:i,ariaChecked:i,ariaColCount:s,ariaColIndex:s,ariaColSpan:s,ariaControls:o,ariaCurrent:null,ariaDescribedBy:o,ariaDetails:null,ariaDisabled:i,ariaDropEffect:o,ariaErrorMessage:null,ariaExpanded:i,ariaFlowTo:o,ariaGrabbed:i,ariaHasPopup:null,ariaHidden:i,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:o,ariaLevel:s,ariaLive:null,ariaModal:i,ariaMultiLine:i,ariaMultiSelectable:i,ariaOrientation:null,ariaOwns:o,ariaPlaceholder:null,ariaPosInSet:s,ariaPressed:i,ariaReadOnly:i,ariaRelevant:null,ariaRequired:i,ariaRoleDescription:o,ariaRowCount:s,ariaRowIndex:s,ariaRowSpan:s,ariaSelected:i,ariaSetSize:s,ariaSort:null,ariaValueMax:s,ariaValueMin:s,ariaValueNow:s,ariaValueText:null,role:null}})},537742,(e,t,n)=>{"use strict";var r=e.r(742210),a=e.r(531418),i=e.r(930009),s=r.boolean,o=r.overloadedBoolean,l=r.booleanish,c=r.number,u=r.spaceSeparated,d=r.commaSeparated;t.exports=a({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:i,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:d,acceptCharset:u,accessKey:u,action:null,allow:null,allowFullScreen:s,allowPaymentRequest:s,allowUserMedia:s,alt:null,as:null,async:s,autoCapitalize:null,autoComplete:u,autoFocus:s,autoPlay:s,capture:s,charSet:null,checked:s,cite:null,className:u,cols:c,colSpan:null,content:null,contentEditable:l,controls:s,controlsList:u,coords:c|d,crossOrigin:null,data:null,dateTime:null,decoding:null,default:s,defer:s,dir:null,dirName:null,disabled:s,download:o,draggable:l,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:s,formTarget:null,headers:u,height:c,hidden:s,high:c,href:null,hrefLang:null,htmlFor:u,httpEquiv:u,id:null,imageSizes:null,imageSrcSet:d,inputMode:null,integrity:null,is:null,isMap:s,itemId:null,itemProp:u,itemRef:u,itemScope:s,itemType:u,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:s,low:c,manifest:null,max:null,maxLength:c,media:null,method:null,min:null,minLength:c,multiple:s,muted:s,name:null,nonce:null,noModule:s,noValidate:s,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextMenu:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:s,optimum:c,pattern:null,ping:u,placeholder:null,playsInline:s,poster:null,preload:null,readOnly:s,referrerPolicy:null,rel:u,required:s,reversed:s,rows:c,rowSpan:c,sandbox:u,scope:null,scoped:s,seamless:s,selected:s,shape:null,size:c,sizes:null,slot:null,span:c,spellCheck:l,src:null,srcDoc:null,srcLang:null,srcSet:d,start:c,step:null,style:null,tabIndex:c,target:null,title:null,translate:null,type:null,typeMustMatch:s,useMap:null,value:l,width:c,wrap:null,align:null,aLink:null,archive:u,axis:null,background:null,bgColor:null,border:c,borderColor:null,bottomMargin:c,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:s,declare:s,event:null,face:null,frame:null,frameBorder:null,hSpace:c,leftMargin:c,link:null,longDesc:null,lowSrc:null,marginHeight:c,marginWidth:c,noResize:s,noHref:s,noShade:s,noWrap:s,object:null,profile:null,prompt:null,rev:null,rightMargin:c,rules:null,scheme:null,scrolling:l,standby:null,summary:null,text:null,topMargin:c,valueType:null,version:null,vAlign:null,vLink:null,vSpace:c,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:s,disableRemotePlayback:s,prefix:null,property:null,results:c,security:null,unselectable:null}})},263924,(e,t,n)=>{"use strict";var r=e.r(372561),a=e.r(373500);t.exports=r([e.r(582486),a,e.r(133421),e.r(982216),e.r(537742)])},252287,(e,t,n)=>{"use strict";var r=e.r(772593),a=e.r(340108),i=e.r(533352),s="data";t.exports=function(e,t){var n,p,m,h=r(t),f=t,g=i;return h in e.normal?e.property[e.normal[h]]:(h.length>4&&h.slice(0,4)===s&&o.test(t)&&("-"===t.charAt(4)?f=s+(n=t.slice(5).replace(l,d)).charAt(0).toUpperCase()+n.slice(1):(m=(p=t).slice(4),t=l.test(m)?p:("-"!==(m=m.replace(c,u)).charAt(0)&&(m="-"+m),s+m)),g=a),new g(f,t))};var o=/^data[-\w.:]+$/i,l=/-[a-z]/g,c=/[A-Z]/g;function u(e){return"-"+e.toLowerCase()}function d(e){return e.charAt(1).toUpperCase()}},663863,(e,t,n)=>{"use strict";t.exports=function(e,t){for(var n,a,i,s=e||"",o=t||"div",l={},c=0;c<s.length;)r.lastIndex=c,i=r.exec(s),(n=s.slice(c,i?i.index:s.length))&&(a?"#"===a?l.id=n:l.className?l.className.push(n):l.className=[n]:o=n,c+=n.length),i&&(a=i[0],c++);return{type:"element",tagName:o,properties:l,children:[]}};var r=/[#.]/g},598553,(e,t,n)=>{"use strict";n.parse=function(e){var t=String(e||"").trim();return""===t?[]:t.split(r)},n.stringify=function(e){return e.join(" ").trim()};var r=/[ \t\n\r\f]+/g},358752,(e,t,n)=>{"use strict";n.parse=function(e){for(var t,n=[],r=String(e||""),a=r.indexOf(","),i=0,s=!1;!s;)-1===a&&(a=r.length,s=!0),((t=r.slice(i,a).trim())||!s)&&n.push(t),i=a+1,a=r.indexOf(",",i);return n},n.stringify=function(e,t){var n=t||{},r=!1===n.padLeft?"":" ",a=n.padRight?" ":"";return""===e[e.length-1]&&(e=e.concat("")),e.join(a+","+r).trim()}},792297,(e,t,n)=>{"use strict";var r=e.r(252287),a=e.r(772593),i=e.r(663863),s=e.r(598553).parse,o=e.r(358752).parse;t.exports=function(e,t,n){var a=n?function(e){for(var t,n=e.length,r=-1,a={};++r<n;)a[(t=e[r]).toLowerCase()]=t;return a}(n):null;return function(n,u){var d,p,m,h,f,g,b=i(n,t),y=Array.prototype.slice.call(arguments,2),E=b.tagName.toLowerCase();if(b.tagName=a&&l.call(a,E)?a[E]:E,u&&(d=u,p=b,"string"==typeof d||"length"in d||(m=p.tagName,f=(h=d).type,"input"!==m&&f&&"string"==typeof f&&("object"==typeof h.children&&"length"in h.children||((f=f.toLowerCase(),"button"===m)?"menu"!==f&&"submit"!==f&&"reset"!==f&&"button"!==f:"value"in h))))&&(y.unshift(u),u=null),u)for(g in u)!function(t,n,a){var i,l,u;null!=a&&a==a&&(l=(i=r(e,n)).property,"string"==typeof(u=a)&&(i.spaceSeparated?u=s(u):i.commaSeparated?u=o(u):i.commaOrSpaceSeparated&&(u=s(o(u).join(" ")))),"style"===l&&"string"!=typeof a&&(u=function(e){var t,n=[];for(t in e)n.push([t,e[t]].join(": "));return n.join("; ")}(u)),"className"===l&&t.className&&(u=t.className.concat(u)),t[l]=function(e,t,n){var r,a,i;if("object"!=typeof n||!("length"in n))return c(e,t,n);for(a=n.length,r=-1,i=[];++r<a;)i[r]=c(e,t,n[r]);return i}(i,l,u))}(b.properties,g,u[g]);return function e(t,n){var r,a;if("string"==typeof n||"number"==typeof n)return void t.push({type:"text",value:String(n)});if("object"==typeof n&&"length"in n){for(r=-1,a=n.length;++r<a;)e(t,n[r]);return}if("object"!=typeof n||!("type"in n))throw Error("Expected node, nodes, or string, got `"+n+"`");t.push(n)}(b.children,y),"template"===b.tagName&&(b.content={type:"root",children:b.children},b.children=[]),b}};var l={}.hasOwnProperty;function c(e,t,n){var r=n;return e.number||e.positiveNumber?isNaN(r)||""===r||(r=Number(r)):(e.boolean||e.overloadedBoolean)&&"string"==typeof r&&(""===r||a(n)===a(t))&&(r=!0),r}},667195,(e,t,n)=>{"use strict";var r=e.r(263924),a=e.r(792297)(r,"div");a.displayName="html",t.exports=a},897068,(e,t,n)=>{"use strict";t.exports=e.r(667195)},961419,(e,t,n)=>{t.exports={AElig:"Æ",AMP:"&",Aacute:"Á",Acirc:"Â",Agrave:"À",Aring:"Å",Atilde:"Ã",Auml:"Ä",COPY:"©",Ccedil:"Ç",ETH:"Ð",Eacute:"É",Ecirc:"Ê",Egrave:"È",Euml:"Ë",GT:">",Iacute:"Í",Icirc:"Î",Igrave:"Ì",Iuml:"Ï",LT:"<",Ntilde:"Ñ",Oacute:"Ó",Ocirc:"Ô",Ograve:"Ò",Oslash:"Ø",Otilde:"Õ",Ouml:"Ö",QUOT:'"',REG:"®",THORN:"Þ",Uacute:"Ú",Ucirc:"Û",Ugrave:"Ù",Uuml:"Ü",Yacute:"Ý",aacute:"á",acirc:"â",acute:"´",aelig:"æ",agrave:"à",amp:"&",aring:"å",atilde:"ã",auml:"ä",brvbar:"¦",ccedil:"ç",cedil:"¸",cent:"¢",copy:"©",curren:"¤",deg:"°",divide:"÷",eacute:"é",ecirc:"ê",egrave:"è",eth:"ð",euml:"ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",iacute:"í",icirc:"î",iexcl:"¡",igrave:"ì",iquest:"¿",iuml:"ï",laquo:"«",lt:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",ntilde:"ñ",oacute:"ó",ocirc:"ô",ograve:"ò",ordf:"ª",ordm:"º",oslash:"ø",otilde:"õ",ouml:"ö",para:"¶",plusmn:"±",pound:"£",quot:'"',raquo:"»",reg:"®",sect:"§",shy:"",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",thorn:"þ",times:"×",uacute:"ú",ucirc:"û",ugrave:"ù",uml:"¨",uuml:"ü",yacute:"ý",yen:"¥",yuml:"ÿ"}},535935,(e,t,n)=>{t.exports={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"}},426721,(e,t,n)=>{"use strict";t.exports=function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=48&&t<=57}},80664,(e,t,n)=>{"use strict";t.exports=function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}},43077,(e,t,n)=>{"use strict";t.exports=function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}},331067,(e,t,n)=>{"use strict";var r=e.r(43077),a=e.r(426721);t.exports=function(e){return r(e)||a(e)}},887637,(e,t,n)=>{"use strict";var r;t.exports=function(e){var t,n="&"+e+";";return(r=r||document.createElement("i")).innerHTML=n,(59!==(t=r.textContent).charCodeAt(t.length-1)||"semi"===e)&&t!==n&&t}},162994,(e,t,n)=>{"use strict";var r=e.r(961419),a=e.r(535935),i=e.r(426721),s=e.r(80664),o=e.r(331067),l=e.r(887637);t.exports=function(e,t){var n,i,s={};for(i in t||(t={}),p)n=t[i],s[i]=null==n?p[i]:n;return(s.position.indent||s.position.start)&&(s.indent=s.position.indent||[],s.position=s.position.start),function(e,t){var n,i,s,p,E,x,S,T,v,A,_,k,N,w,I,C,R,O,L,D,P,M=t.additional,F=t.nonTerminated,j=t.text,U=t.reference,B=t.warning,H=t.textContext,z=t.referenceContext,G=t.warningContext,$=t.position,q=t.indent||[],V=e.length,W=0,Y=-1,K=$.column||1,X=$.line||1,Z="",Q=[];for("string"==typeof M&&(M=M.charCodeAt(0)),O=J(),A=B?function(e,t){var n=J();n.column+=t,n.offset+=t,B.call(G,y[e],n,e)}:d,W--,V++;++W<V;)if(10===S&&(K=q[Y]||1),38===(S=e.charCodeAt(W))){if(9===(v=e.charCodeAt(W+1))||10===v||12===v||32===v||38===v||60===v||v!=v||M&&v===M){Z+=u(S),K++;continue}for(w=I=W+1,P=I,35===v?(P=++w,88===(v=e.charCodeAt(P))||120===v?(C=h,P=++w):C=f):C=m,s="",N="",x="",R=b[C],P--;++P<V&&R(v=e.charCodeAt(P));)x+=u(v),C===m&&c.call(r,x)&&(s=x,N=r[x]);if((E=59===e.charCodeAt(P))&&(P++,(p=C===m&&l(x))&&(s=x,N=p)),D=1+P-I,E||F){x?C===m?(E&&!N?A(5,1):(s!==x&&(D=1+(P=w+s.length)-w,E=!1),E||(_=s?1:3,t.attribute?61===(v=e.charCodeAt(P))?(A(_,D),N=null):o(v)?N=null:A(_,D):A(_,D))),T=N):(E||A(2,D),(n=T=parseInt(x,g[C]))>=55296&&n<=57343||n>1114111?(A(7,D),T=u(65533)):T in a?(A(6,D),T=a[T]):(k="",((i=T)>=1&&i<=8||11===i||i>=13&&i<=31||i>=127&&i<=159||i>=64976&&i<=65007||(65535&i)==65535||(65535&i)==65534)&&A(6,D),T>65535&&(T-=65536,k+=u(T>>>10|55296),T=56320|1023&T),T=k+u(T))):C!==m&&A(4,D)}T?(ee(),O=J(),W=P-1,K+=P-I+1,Q.push(T),L=J(),L.offset++,U&&U.call(z,T,{start:O,end:L},e.slice(I-1,P)),O=L):(x=e.slice(I-1,P),Z+=x,K+=x.length,W=P-1)}else 10===S&&(X++,Y++,K=0),S==S?(Z+=u(S),K++):ee();return Q.join("");function J(){return{line:X,column:K,offset:W+($.offset||0)}}function ee(){Z&&(Q.push(Z),j&&j.call(H,Z,{start:O,end:J()}),Z="")}}(e,s)};var c={}.hasOwnProperty,u=String.fromCharCode,d=Function.prototype,p={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},m="named",h="hexadecimal",f="decimal",g={};g[h]=16,g[f]=10;var b={};b[m]=o,b[f]=i,b[h]=s;var y={};y[1]="Named character references must be terminated by a semicolon",y[2]="Numeric character references must be terminated by a semicolon",y[3]="Named character references cannot be empty",y[4]="Numeric character references cannot be empty",y[5]="Named character references must be known",y[6]="Numeric character references cannot be disallowed",y[7]="Numeric character references cannot be outside the permissible Unicode range"},454302,(e,t,n)=>{var r=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,n=0,r={},a={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof i?new i(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++n}),e.__id},clone:function e(t,n){var r,i;switch(n=n||{},a.util.type(t)){case"Object":if(n[i=a.util.objId(t)])return n[i];for(var s in r={},n[i]=r,t)t.hasOwnProperty(s)&&(r[s]=e(t[s],n));return r;case"Array":if(n[i=a.util.objId(t)])return n[i];return r=[],n[i]=r,t.forEach(function(t,a){r[a]=e(t,n)}),r;default:return t}},getLanguage:function(e){for(;e;){var n=t.exec(e.className);if(n)return n[1].toLowerCase();e=e.parentElement}return"none"},setLanguage:function(e,n){e.className=e.className.replace(RegExp(t,"gi"),""),e.classList.add("language-"+n)},currentScript:function(){if("u"<typeof document)return null;if("currentScript"in document)return document.currentScript;try{throw Error()}catch(r){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack)||[])[1];if(e){var t=document.getElementsByTagName("script");for(var n in t)if(t[n].src==e)return t[n]}return null}},isActive:function(e,t,n){for(var r="no-"+t;e;){var a=e.classList;if(a.contains(t))return!0;if(a.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:r,plaintext:r,text:r,txt:r,extend:function(e,t){var n=a.util.clone(a.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){var i=(r=r||a.languages)[e],s={};for(var o in i)if(i.hasOwnProperty(o)){if(o==t)for(var l in n)n.hasOwnProperty(l)&&(s[l]=n[l]);n.hasOwnProperty(o)||(s[o]=i[o])}var c=r[e];return r[e]=s,a.languages.DFS(a.languages,function(t,n){n===c&&t!=e&&(this[t]=s)}),s},DFS:function e(t,n,r,i){i=i||{};var s=a.util.objId;for(var o in t)if(t.hasOwnProperty(o)){n.call(t,o,t[o],r||o);var l=t[o],c=a.util.type(l);"Object"!==c||i[s(l)]?"Array"!==c||i[s(l)]||(i[s(l)]=!0,e(l,n,o,i)):(i[s(l)]=!0,e(l,n,null,i))}}},plugins:{},highlightAll:function(e,t){a.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var r={callback:n,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};a.hooks.run("before-highlightall",r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),a.hooks.run("before-all-elements-highlight",r);for(var i,s=0;i=r.elements[s++];)a.highlightElement(i,!0===t,r.callback)},highlightElement:function(t,n,r){var i=a.util.getLanguage(t),s=a.languages[i];a.util.setLanguage(t,i);var o=t.parentElement;o&&"pre"===o.nodeName.toLowerCase()&&a.util.setLanguage(o,i);var l=t.textContent,c={element:t,language:i,grammar:s,code:l};function u(e){c.highlightedCode=e,a.hooks.run("before-insert",c),c.element.innerHTML=c.highlightedCode,a.hooks.run("after-highlight",c),a.hooks.run("complete",c),r&&r.call(c.element)}if(a.hooks.run("before-sanity-check",c),(o=c.element.parentElement)&&"pre"===o.nodeName.toLowerCase()&&!o.hasAttribute("tabindex")&&o.setAttribute("tabindex","0"),!c.code){a.hooks.run("complete",c),r&&r.call(c.element);return}if(a.hooks.run("before-highlight",c),!c.grammar)return void u(a.util.encode(c.code));if(n&&e.Worker){var d=new Worker(a.filename);d.onmessage=function(e){u(e.data)},d.postMessage(JSON.stringify({language:c.language,code:c.code,immediateClose:!0}))}else u(a.highlight(c.code,c.grammar,c.language))},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};if(a.hooks.run("before-tokenize",r),!r.grammar)throw Error('The language "'+r.language+'" has no grammar.');return r.tokens=a.tokenize(r.code,r.grammar),a.hooks.run("after-tokenize",r),i.stringify(a.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var c=new o;return l(c,c.head,e),function e(t,n,r,o,c,u){for(var d in r)if(r.hasOwnProperty(d)&&r[d]){var p=r[d];p=Array.isArray(p)?p:[p];for(var m=0;m<p.length;++m){if(u&&u.cause==d+","+m)return;var h=p[m],f=h.inside,g=!!h.lookbehind,b=!!h.greedy,y=h.alias;if(b&&!h.pattern.global){var E=h.pattern.toString().match(/[imsuy]*$/)[0];h.pattern=RegExp(h.pattern.source,E+"g")}for(var x=h.pattern||h,S=o.next,T=c;S!==n.tail&&(!u||!(T>=u.reach));T+=S.value.length,S=S.next){var v,A=S.value;if(n.length>t.length)return;if(!(A instanceof i)){var _=1;if(b){if(!(v=s(x,T,t,g))||v.index>=t.length)break;var k=v.index,N=v.index+v[0].length,w=T;for(w+=S.value.length;k>=w;)w+=(S=S.next).value.length;if(w-=S.value.length,T=w,S.value instanceof i)continue;for(var I=S;I!==n.tail&&(w<N||"string"==typeof I.value);I=I.next)_++,w+=I.value.length;_--,A=t.slice(T,w),v.index-=T}else if(!(v=s(x,0,A,g)))continue;var k=v.index,C=v[0],R=A.slice(0,k),O=A.slice(k+C.length),L=T+A.length;u&&L>u.reach&&(u.reach=L);var D=S.prev;if(R&&(D=l(n,D,R),T+=R.length),function(e,t,n){for(var r=t.next,a=0;a<n&&r!==e.tail;a++)r=r.next;t.next=r,r.prev=t,e.length-=a}(n,D,_),S=l(n,D,new i(d,f?a.tokenize(C,f):C,y,C)),O&&l(n,S,O),_>1){var P={cause:d+","+m,reach:L};e(t,n,r,S.prev,T,P),u&&P.reach>u.reach&&(u.reach=P.reach)}}}}}}(e,c,t,c.head,0),function(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}(c)},hooks:{all:{},add:function(e,t){var n=a.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=a.hooks.all[e];if(n&&n.length)for(var r,i=0;r=n[i++];)r(t)}},Token:i};function i(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function s(e,t,n,r){e.lastIndex=t;var a=e.exec(n);if(a&&r&&a[1]){var i=a[1].length;a.index+=i,a[0]=a[0].slice(i)}return a}function o(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function l(e,t,n){var r=t.next,a={value:n,prev:t,next:r};return t.next=a,r.prev=a,e.length++,a}if(e.Prism=a,i.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var r="";return t.forEach(function(t){r+=e(t,n)}),r}var i={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},s=t.alias;s&&(Array.isArray(s)?Array.prototype.push.apply(i.classes,s):i.classes.push(s)),a.hooks.run("wrap",i);var o="";for(var l in i.attributes)o+=" "+l+'="'+(i.attributes[l]||"").replace(/"/g,""")+'"';return"<"+i.tag+' class="'+i.classes.join(" ")+'"'+o+">"+i.content+"</"+i.tag+">"},!e.document)return e.addEventListener&&(a.disableWorkerMessageHandler||e.addEventListener("message",function(t){var n=JSON.parse(t.data),r=n.language,i=n.code,s=n.immediateClose;e.postMessage(a.highlight(i,a.languages[r],r)),s&&e.close()},!1)),a;var c=a.util.currentScript();function u(){a.manual||a.highlightAll()}if(c&&(a.filename=c.src,c.hasAttribute("data-manual")&&(a.manual=!0)),!a.manual){var d=document.readyState;"loading"===d||"interactive"===d&&c&&c.defer?document.addEventListener("DOMContentLoaded",u):window.requestAnimationFrame?window.requestAnimationFrame(u):window.setTimeout(u,16)}return a}("u">typeof window?window:"u">typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});t.exports&&(t.exports=r),e.g.Prism=r},453687,(e,t,n)=>{"use strict";function r(e){e.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",function(e){"entity"===e.type&&(e.attributes.title=e.content.value.replace(/&/,"&"))}),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(t,n){var r={};r["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:e.languages[n]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var a={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};a["language-"+n]={pattern:/[\s\S]+/,inside:e.languages[n]};var i={};i[t]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return t}),"i"),lookbehind:!0,greedy:!0,inside:a},e.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(t,n){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:e.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml}t.exports=r,r.displayName="markup",r.aliases=["html","mathml","svg","xml","ssml","atom","rss"]},352316,(e,t,n)=>{"use strict";function r(e){var t,n;t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css,(n=e.languages.markup)&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}t.exports=r,r.displayName="css",r.aliases=[]},860958,(e,t,n)=>{"use strict";function r(e){e.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}t.exports=r,r.displayName="clike",r.aliases=[]},259942,(e,t,n)=>{"use strict";function r(e){e.languages.javascript=e.languages.extend("clike",{"class-name":[e.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source)+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),e.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),e.languages.js=e.languages.javascript}t.exports=r,r.displayName="javascript",r.aliases=["js"]},604996,(e,t,n)=>{"use strict";var r,a,i="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:e.g,s=(a=(r="Prism"in i)?i.Prism:void 0,function(){r?i.Prism=a:delete i.Prism,r=void 0,a=void 0});i.Prism={manual:!0,disableWorkerMessageHandler:!0};var o=e.r(897068),l=e.r(162994),c=e.r(454302),u=e.r(453687),d=e.r(352316),p=e.r(860958),m=e.r(259942);s();var h={}.hasOwnProperty;function f(){}f.prototype=c;var g=new f;function b(e){if("function"!=typeof e||!e.displayName)throw Error("Expected `function` for `grammar`, got `"+e+"`");void 0===g.languages[e.displayName]&&e(g)}t.exports=g,g.highlight=function(e,t){var n,r=c.highlight;if("string"!=typeof e)throw Error("Expected `string` for `value`, got `"+e+"`");if("Object"===g.util.type(t))n=t,t=null;else{if("string"!=typeof t)throw Error("Expected `string` for `name`, got `"+t+"`");if(h.call(g.languages,t))n=g.languages[t];else throw Error("Unknown language: `"+t+"` is not registered")}return r.call(this,e,n,t)},g.register=b,g.alias=function(e,t){var n,r,a,i,s=g.languages,o=e;for(n in t&&((o={})[e]=t),o)for(a=(r="string"==typeof(r=o[n])?[r]:r).length,i=-1;++i<a;)s[r[i]]=s[n]},g.registered=function(e){if("string"!=typeof e)throw Error("Expected `string` for `language`, got `"+e+"`");return h.call(g.languages,e)},g.listLanguages=function(){var e,t=g.languages,n=[];for(e in t)h.call(t,e)&&"object"==typeof t[e]&&n.push(e);return n},b(u),b(d),b(p),b(m),g.util.encode=function(e){return e},g.Token.stringify=function(e,t,n){var r;return"string"==typeof e?{type:"text",value:e}:"Array"===g.util.type(e)?function(e,t){for(var n,r=[],a=e.length,i=-1;++i<a;)""!==(n=e[i])&&null!=n&&r.push(n);for(i=-1,a=r.length;++i<a;)n=r[i],r[i]=g.Token.stringify(n,t,r);return r}(e,t):(r={type:e.type,content:g.Token.stringify(e.content,t,n),tag:"span",classes:["token",e.type],attributes:{},language:t,parent:n},e.alias&&(r.classes=r.classes.concat(e.alias)),g.hooks.run("wrap",r),o(r.tag+"."+r.classes.join("."),function(e){var t;for(t in e)e[t]=l(e[t]);return e}(r.attributes),r.content))}},721083,(e,t,n)=>{"use strict";function r(e){e.languages.abap={comment:/^\*.*/m,string:/(`|')(?:\\.|(?!\1)[^\\\r\n])*\1/,"string-template":{pattern:/([|}])(?:\\.|[^\\|{\r\n])*(?=[|{])/,lookbehind:!0,alias:"string"},"eol-comment":{pattern:/(^|\s)".*/m,lookbehind:!0,alias:"comment"},keyword:{pattern:/(\s|\.|^)(?:SCIENTIFIC_WITH_LEADING_ZERO|SCALE_PRESERVING_SCIENTIFIC|RMC_COMMUNICATION_FAILURE|END-ENHANCEMENT-SECTION|MULTIPLY-CORRESPONDING|SUBTRACT-CORRESPONDING|VERIFICATION-MESSAGE|DIVIDE-CORRESPONDING|ENHANCEMENT-SECTION|CURRENCY_CONVERSION|RMC_SYSTEM_FAILURE|START-OF-SELECTION|MOVE-CORRESPONDING|RMC_INVALID_STATUS|CUSTOMER-FUNCTION|END-OF-DEFINITION|ENHANCEMENT-POINT|SYSTEM-EXCEPTIONS|ADD-CORRESPONDING|SCALE_PRESERVING|SELECTION-SCREEN|CURSOR-SELECTION|END-OF-SELECTION|LOAD-OF-PROGRAM|SCROLL-BOUNDARY|SELECTION-TABLE|EXCEPTION-TABLE|IMPLEMENTATIONS|PARAMETER-TABLE|RIGHT-JUSTIFIED|UNIT_CONVERSION|AUTHORITY-CHECK|LIST-PROCESSING|SIGN_AS_POSTFIX|COL_BACKGROUND|IMPLEMENTATION|INTERFACE-POOL|TRANSFORMATION|IDENTIFICATION|ENDENHANCEMENT|LINE-SELECTION|INITIALIZATION|LEFT-JUSTIFIED|SELECT-OPTIONS|SELECTION-SETS|COMMUNICATION|CORRESPONDING|DECIMAL_SHIFT|PRINT-CONTROL|VALUE-REQUEST|CHAIN-REQUEST|FUNCTION-POOL|FIELD-SYMBOLS|FUNCTIONALITY|INVERTED-DATE|SELECTION-SET|CLASS-METHODS|OUTPUT-LENGTH|CLASS-CODING|COL_NEGATIVE|ERRORMESSAGE|FIELD-GROUPS|HELP-REQUEST|NO-EXTENSION|NO-TOPOFPAGE|REDEFINITION|DISPLAY-MODE|ENDINTERFACE|EXIT-COMMAND|FIELD-SYMBOL|NO-SCROLLING|SHORTDUMP-ID|ACCESSPOLICY|CLASS-EVENTS|COL_POSITIVE|DECLARATIONS|ENHANCEMENTS|FILTER-TABLE|SWITCHSTATES|SYNTAX-CHECK|TRANSPORTING|ASYNCHRONOUS|SYNTAX-TRACE|TOKENIZATION|USER-COMMAND|WITH-HEADING|ABAP-SOURCE|BREAK-POINT|CHAIN-INPUT|COMPRESSION|FIXED-POINT|NEW-SECTION|NON-UNICODE|OCCURRENCES|RESPONSIBLE|SYSTEM-CALL|TRACE-TABLE|ABBREVIATED|CHAR-TO-HEX|END-OF-FILE|ENDFUNCTION|ENVIRONMENT|ASSOCIATION|COL_HEADING|EDITOR-CALL|END-OF-PAGE|ENGINEERING|IMPLEMENTED|INTENSIFIED|RADIOBUTTON|SYSTEM-EXIT|TOP-OF-PAGE|TRANSACTION|APPLICATION|CONCATENATE|DESTINATION|ENHANCEMENT|IMMEDIATELY|NO-GROUPING|PRECOMPILED|REPLACEMENT|TITLE-LINES|ACTIVATION|BYTE-ORDER|CLASS-POOL|CONNECTION|CONVERSION|DEFINITION|DEPARTMENT|EXPIRATION|INHERITING|MESSAGE-ID|NO-HEADING|PERFORMING|QUEUE-ONLY|RIGHTSPACE|SCIENTIFIC|STATUSINFO|STRUCTURES|SYNCPOINTS|WITH-TITLE|ATTRIBUTES|BOUNDARIES|CLASS-DATA|COL_NORMAL|DD\/MM\/YYYY|DESCENDING|INTERFACES|LINE-COUNT|MM\/DD\/YYYY|NON-UNIQUE|PRESERVING|SELECTIONS|STATEMENTS|SUBROUTINE|TRUNCATION|TYPE-POOLS|ARITHMETIC|BACKGROUND|ENDPROVIDE|EXCEPTIONS|IDENTIFIER|INDEX-LINE|OBLIGATORY|PARAMETERS|PERCENTAGE|PUSHBUTTON|RESOLUTION|COMPONENTS|DEALLOCATE|DISCONNECT|DUPLICATES|FIRST-LINE|HEAD-LINES|NO-DISPLAY|OCCURRENCE|RESPECTING|RETURNCODE|SUBMATCHES|TRACE-FILE|ASCENDING|BYPASSING|ENDMODULE|EXCEPTION|EXCLUDING|EXPORTING|INCREMENT|MATCHCODE|PARAMETER|PARTIALLY|PREFERRED|REFERENCE|REPLACING|RETURNING|SELECTION|SEPARATED|SPECIFIED|STATEMENT|TIMESTAMP|TYPE-POOL|ACCEPTING|APPENDAGE|ASSIGNING|COL_GROUP|COMPARING|CONSTANTS|DANGEROUS|IMPORTING|INSTANCES|LEFTSPACE|LOG-POINT|QUICKINFO|READ-ONLY|SCROLLING|SQLSCRIPT|STEP-LOOP|TOP-LINES|TRANSLATE|APPENDING|AUTHORITY|CHARACTER|COMPONENT|CONDITION|DIRECTORY|DUPLICATE|MESSAGING|RECEIVING|SUBSCREEN|ACCORDING|COL_TOTAL|END-LINES|ENDMETHOD|ENDSELECT|EXPANDING|EXTENSION|INCLUDING|INFOTYPES|INTERFACE|INTERVALS|LINE-SIZE|PF-STATUS|PROCEDURE|PROTECTED|REQUESTED|RESUMABLE|RIGHTPLUS|SAP-SPOOL|SECONDARY|STRUCTURE|SUBSTRING|TABLEVIEW|NUMOFCHAR|ADJACENT|ANALYSIS|ASSIGNED|BACKWARD|CHANNELS|CHECKBOX|CONTINUE|CRITICAL|DATAINFO|DD\/MM\/YY|DURATION|ENCODING|ENDCLASS|FUNCTION|LEFTPLUS|LINEFEED|MM\/DD\/YY|OVERFLOW|RECEIVED|SKIPPING|SORTABLE|STANDARD|SUBTRACT|SUPPRESS|TABSTRIP|TITLEBAR|TRUNCATE|UNASSIGN|WHENEVER|ANALYZER|COALESCE|COMMENTS|CONDENSE|DECIMALS|DEFERRED|ENDWHILE|EXPLICIT|KEYWORDS|MESSAGES|POSITION|PRIORITY|RECEIVER|RENAMING|TIMEZONE|TRAILING|ALLOCATE|CENTERED|CIRCULAR|CONTROLS|CURRENCY|DELETING|DESCRIBE|DISTANCE|ENDCATCH|EXPONENT|EXTENDED|GENERATE|IGNORING|INCLUDES|INTERNAL|MAJOR-ID|MODIFIER|NEW-LINE|OPTIONAL|PROPERTY|ROLLBACK|STARTING|SUPPLIED|ABSTRACT|CHANGING|CONTEXTS|CREATING|CUSTOMER|DATABASE|DAYLIGHT|DEFINING|DISTINCT|DIVISION|ENABLING|ENDCHAIN|ESCAPING|HARMLESS|IMPLICIT|INACTIVE|LANGUAGE|MINOR-ID|MULTIPLY|NEW-PAGE|NO-TITLE|POS_HIGH|SEPARATE|TEXTPOOL|TRANSFER|SELECTOR|DBMAXLEN|ITERATOR|ARCHIVE|BIT-XOR|BYTE-CO|COLLECT|COMMENT|CURRENT|DEFAULT|DISPLAY|ENDFORM|EXTRACT|LEADING|LISTBOX|LOCATOR|MEMBERS|METHODS|NESTING|POS_LOW|PROCESS|PROVIDE|RAISING|RESERVE|SECONDS|SUMMARY|VISIBLE|BETWEEN|BIT-AND|BYTE-CS|CLEANUP|COMPUTE|CONTROL|CONVERT|DATASET|ENDCASE|FORWARD|HEADERS|HOTSPOT|INCLUDE|INVERSE|KEEPING|NO-ZERO|OBJECTS|OVERLAY|PADDING|PATTERN|PROGRAM|REFRESH|SECTION|SUMMING|TESTING|VERSION|WINDOWS|WITHOUT|BIT-NOT|BYTE-CA|BYTE-NA|CASTING|CONTEXT|COUNTRY|DYNAMIC|ENABLED|ENDLOOP|EXECUTE|FRIENDS|HANDLER|HEADING|INITIAL|\*-INPUT|LOGFILE|MAXIMUM|MINIMUM|NO-GAPS|NO-SIGN|PRAGMAS|PRIMARY|PRIVATE|REDUCED|REPLACE|REQUEST|RESULTS|UNICODE|WARNING|ALIASES|BYTE-CN|BYTE-NS|CALLING|COL_KEY|COLUMNS|CONNECT|ENDEXEC|ENTRIES|EXCLUDE|FILTERS|FURTHER|HELP-ID|LOGICAL|MAPPING|MESSAGE|NAMETAB|OPTIONS|PACKAGE|PERFORM|RECEIVE|STATICS|VARYING|BINDING|CHARLEN|GREATER|XSTRLEN|ACCEPT|APPEND|DETAIL|ELSEIF|ENDING|ENDTRY|FORMAT|FRAMES|GIVING|HASHED|HEADER|IMPORT|INSERT|MARGIN|MODULE|NATIVE|OBJECT|OFFSET|REMOTE|RESUME|SAVING|SIMPLE|SUBMIT|TABBED|TOKENS|UNIQUE|UNPACK|UPDATE|WINDOW|YELLOW|ACTUAL|ASPECT|CENTER|CURSOR|DELETE|DIALOG|DIVIDE|DURING|ERRORS|EVENTS|EXTEND|FILTER|HANDLE|HAVING|IGNORE|LITTLE|MEMORY|NO-GAP|OCCURS|OPTION|PERSON|PLACES|PUBLIC|REDUCE|REPORT|RESULT|SINGLE|SORTED|SWITCH|SYNTAX|TARGET|VALUES|WRITER|ASSERT|BLOCKS|BOUNDS|BUFFER|CHANGE|COLUMN|COMMIT|CONCAT|COPIES|CREATE|DDMMYY|DEFINE|ENDIAN|ESCAPE|EXPAND|KERNEL|LAYOUT|LEGACY|LEVELS|MMDDYY|NUMBER|OUTPUT|RANGES|READER|RETURN|SCREEN|SEARCH|SELECT|SHARED|SOURCE|STABLE|STATIC|SUBKEY|SUFFIX|TABLES|UNWIND|YYMMDD|ASSIGN|BACKUP|BEFORE|BINARY|BIT-OR|BLANKS|CLIENT|CODING|COMMON|DEMAND|DYNPRO|EXCEPT|EXISTS|EXPORT|FIELDS|GLOBAL|GROUPS|LENGTH|LOCALE|MEDIUM|METHOD|MODIFY|NESTED|OTHERS|REJECT|SCROLL|SUPPLY|SYMBOL|ENDFOR|STRLEN|ALIGN|BEGIN|BOUND|ENDAT|ENTRY|EVENT|FINAL|FLUSH|GRANT|INNER|SHORT|USING|WRITE|AFTER|BLACK|BLOCK|CLOCK|COLOR|COUNT|DUMMY|EMPTY|ENDDO|ENDON|GREEN|INDEX|INOUT|LEAVE|LEVEL|LINES|MODIF|ORDER|OUTER|RANGE|RESET|RETRY|RIGHT|SMART|SPLIT|STYLE|TABLE|THROW|UNDER|UNTIL|UPPER|UTF-8|WHERE|ALIAS|BLANK|CLEAR|CLOSE|EXACT|FETCH|FIRST|FOUND|GROUP|LLANG|LOCAL|OTHER|REGEX|SPOOL|TITLE|TYPES|VALID|WHILE|ALPHA|BOXED|CATCH|CHAIN|CHECK|CLASS|COVER|ENDIF|EQUIV|FIELD|FLOOR|FRAME|INPUT|LOWER|MATCH|NODES|PAGES|PRINT|RAISE|ROUND|SHIFT|SPACE|SPOTS|STAMP|STATE|TASKS|TIMES|TRMAC|ULINE|UNION|VALUE|WIDTH|EQUAL|LOG10|TRUNC|BLOB|CASE|CEIL|CLOB|COND|EXIT|FILE|GAPS|HOLD|INCL|INTO|KEEP|KEYS|LAST|LINE|LONG|LPAD|MAIL|MODE|OPEN|PINK|READ|ROWS|TEST|THEN|ZERO|AREA|BACK|BADI|BYTE|CAST|EDIT|EXEC|FAIL|FIND|FKEQ|FONT|FREE|GKEQ|HIDE|INIT|ITNO|LATE|LOOP|MAIN|MARK|MOVE|NEXT|NULL|RISK|ROLE|UNIT|WAIT|ZONE|BASE|CALL|CODE|DATA|DATE|FKGE|GKGE|HIGH|KIND|LEFT|LIST|MASK|MESH|NAME|NODE|PACK|PAGE|POOL|SEND|SIGN|SIZE|SOME|STOP|TASK|TEXT|TIME|USER|VARY|WITH|WORD|BLUE|CONV|COPY|DEEP|ELSE|FORM|FROM|HINT|ICON|JOIN|LIKE|LOAD|ONLY|PART|SCAN|SKIP|SORT|TYPE|UNIX|VIEW|WHEN|WORK|ACOS|ASIN|ATAN|COSH|EACH|FRAC|LESS|RTTI|SINH|SQRT|TANH|AVG|BIT|DIV|ISO|LET|OUT|PAD|SQL|ALL|CI_|CPI|END|LOB|LPI|MAX|MIN|NEW|OLE|RUN|SET|\?TO|YES|ABS|ADD|AND|BIG|FOR|HDB|JOB|LOW|NOT|SAP|TRY|VIA|XML|ANY|GET|IDS|KEY|MOD|OFF|PUT|RAW|RED|REF|SUM|TAB|XSD|CNT|COS|EXP|LOG|SIN|TAN|XOR|AT|CO|CP|DO|GT|ID|IF|NS|OR|BT|CA|CS|GE|NA|NB|EQ|IN|LT|NE|NO|OF|ON|PF|TO|AS|BY|CN|IS|LE|NP|UP|E|I|M|O|Z|C|X)\b/i,lookbehind:!0},number:/\b\d+\b/,operator:{pattern:/(\s)(?:\*\*?|<[=>]?|>=?|\?=|[-+\/=])(?=\s)/,lookbehind:!0},"string-operator":{pattern:/(\s)&&?(?=\s)/,lookbehind:!0,alias:"keyword"},"token-operator":[{pattern:/(\w)(?:->?|=>|[~|{}])(?=\w)/,lookbehind:!0,alias:"punctuation"},{pattern:/[|{}]/,alias:"punctuation"}],punctuation:/[,.:()]/}}t.exports=r,r.displayName="abap",r.aliases=[]},34121,(e,t,n)=>{"use strict";function r(e){e.languages.abnf={comment:/;.*/,string:{pattern:/(?:%[is])?"[^"\n\r]*"/,greedy:!0,inside:{punctuation:/^%[is]/}},range:{pattern:/%(?:b[01]+-[01]+|d\d+-\d+|x[A-F\d]+-[A-F\d]+)/i,alias:"number"},terminal:{pattern:/%(?:b[01]+(?:\.[01]+)*|d\d+(?:\.\d+)*|x[A-F\d]+(?:\.[A-F\d]+)*)/i,alias:"number"},repetition:{pattern:/(^|[^\w-])(?:\d*\*\d*|\d+)/,lookbehind:!0,alias:"operator"},definition:{pattern:/(^[ \t]*)(?:[a-z][\w-]*|<[^<>\r\n]*>)(?=\s*=)/m,lookbehind:!0,alias:"keyword",inside:{punctuation:/<|>/}},"core-rule":{pattern:RegExp("(?:(^|[^<\\w-])(?:ALPHA|BIT|CHAR|CR|CRLF|CTL|DIGIT|DQUOTE|HEXDIG|HTAB|LF|LWSP|OCTET|SP|VCHAR|WSP)|<(?:ALPHA|BIT|CHAR|CR|CRLF|CTL|DIGIT|DQUOTE|HEXDIG|HTAB|LF|LWSP|OCTET|SP|VCHAR|WSP)>)(?![\\w-])","i"),lookbehind:!0,alias:["rule","constant"],inside:{punctuation:/<|>/}},rule:{pattern:/(^|[^<\w-])[a-z][\w-]*|<[^<>\r\n]*>/i,lookbehind:!0,inside:{punctuation:/<|>/}},operator:/=\/?|\//,punctuation:/[()\[\]]/}}t.exports=r,r.displayName="abnf",r.aliases=[]},409865,(e,t,n)=>{"use strict";function r(e){e.languages.actionscript=e.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),e.languages.actionscript["class-name"].alias="function",delete e.languages.actionscript.parameter,delete e.languages.actionscript["literal-property"],e.languages.markup&&e.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:e.languages.markup}})}t.exports=r,r.displayName="actionscript",r.aliases=[]},774683,(e,t,n)=>{"use strict";function r(e){e.languages.ada={comment:/--.*/,string:/"(?:""|[^"\r\f\n])*"/,number:[{pattern:/\b\d(?:_?\d)*#[\dA-F](?:_?[\dA-F])*(?:\.[\dA-F](?:_?[\dA-F])*)?#(?:E[+-]?\d(?:_?\d)*)?/i},{pattern:/\b\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:E[+-]?\d(?:_?\d)*)?\b/i}],"attr-name":/\b'\w+/,keyword:/\b(?:abort|abs|abstract|accept|access|aliased|all|and|array|at|begin|body|case|constant|declare|delay|delta|digits|do|else|elsif|end|entry|exception|exit|for|function|generic|goto|if|in|interface|is|limited|loop|mod|new|not|null|of|others|out|overriding|package|pragma|private|procedure|protected|raise|range|record|rem|renames|requeue|return|reverse|select|separate|some|subtype|synchronized|tagged|task|terminate|then|type|until|use|when|while|with|xor)\b/i,boolean:/\b(?:false|true)\b/i,operator:/<[=>]?|>=?|=>?|:=|\/=?|\*\*?|[&+-]/,punctuation:/\.\.?|[,;():]/,char:/'.'/,variable:/\b[a-z](?:\w)*\b/i}}t.exports=r,r.displayName="ada",r.aliases=[]},163221,(e,t,n)=>{"use strict";function r(e){e.languages.agda={comment:/\{-[\s\S]*?(?:-\}|$)|--.*/,string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},punctuation:/[(){}⦃⦄.;@]/,"class-name":{pattern:/((?:data|record) +)\S+/,lookbehind:!0},function:{pattern:/(^[ \t]*)(?!\s)[^:\r\n]+(?=:)/m,lookbehind:!0},operator:{pattern:/(^\s*|\s)(?:[=|:∀→λ\\?_]|->)(?=\s)/,lookbehind:!0},keyword:/\b(?:Set|abstract|constructor|data|eta-equality|field|forall|hiding|import|in|inductive|infix|infixl|infixr|instance|let|macro|module|mutual|no-eta-equality|open|overlap|pattern|postulate|primitive|private|public|quote|quoteContext|quoteGoal|quoteTerm|record|renaming|rewrite|syntax|tactic|unquote|unquoteDecl|unquoteDef|using|variable|where|with)\b/}}t.exports=r,r.displayName="agda",r.aliases=[]},200316,(e,t,n)=>{"use strict";function r(e){e.languages.al={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},function:{pattern:/(\b(?:event|procedure|trigger)\s+|(?:^|[^.])\.\s*)[a-z_]\w*(?=\s*\()/i,lookbehind:!0},keyword:[/\b(?:array|asserterror|begin|break|case|do|downto|else|end|event|exit|for|foreach|function|if|implements|in|indataset|interface|internal|local|of|procedure|program|protected|repeat|runonclient|securityfiltering|suppressdispose|temporary|then|to|trigger|until|var|while|with|withevents)\b/i,/\b(?:action|actions|addafter|addbefore|addfirst|addlast|area|assembly|chartpart|codeunit|column|controladdin|cuegroup|customizes|dataitem|dataset|dotnet|elements|enum|enumextension|extends|field|fieldattribute|fieldelement|fieldgroup|fieldgroups|fields|filter|fixed|grid|group|key|keys|label|labels|layout|modify|moveafter|movebefore|movefirst|movelast|page|pagecustomization|pageextension|part|profile|query|repeater|report|requestpage|schema|separator|systempart|table|tableelement|tableextension|textattribute|textelement|type|usercontrol|value|xmlport)\b/i],number:/\b(?:0x[\da-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)(?:F|LL?|U(?:LL?)?)?\b/i,boolean:/\b(?:false|true)\b/i,variable:/\b(?:Curr(?:FieldNo|Page|Report)|x?Rec|RequestOptionsPage)\b/,"class-name":/\b(?:automation|biginteger|bigtext|blob|boolean|byte|char|clienttype|code|completiontriggererrorlevel|connectiontype|database|dataclassification|datascope|date|dateformula|datetime|decimal|defaultlayout|dialog|dictionary|dotnetassembly|dotnettypedeclaration|duration|errorinfo|errortype|executioncontext|executionmode|fieldclass|fieldref|fieldtype|file|filterpagebuilder|guid|httpclient|httpcontent|httpheaders|httprequestmessage|httpresponsemessage|instream|integer|joker|jsonarray|jsonobject|jsontoken|jsonvalue|keyref|list|moduledependencyinfo|moduleinfo|none|notification|notificationscope|objecttype|option|outstream|pageresult|record|recordid|recordref|reportformat|securityfilter|sessionsettings|tableconnectiontype|tablefilter|testaction|testfield|testfilterfield|testpage|testpermissions|testrequestpage|text|textbuilder|textconst|textencoding|time|transactionmodel|transactiontype|variant|verbosity|version|view|views|webserviceactioncontext|webserviceactionresultcode|xmlattribute|xmlattributecollection|xmlcdata|xmlcomment|xmldeclaration|xmldocument|xmldocumenttype|xmlelement|xmlnamespacemanager|xmlnametable|xmlnode|xmlnodelist|xmlprocessinginstruction|xmlreadoptions|xmltext|xmlwriteoptions)\b/i,operator:/\.\.|:[=:]|[-+*/]=?|<>|[<>]=?|=|\b(?:and|div|mod|not|or|xor)\b/i,punctuation:/[()\[\]{}:.;,]/}}t.exports=r,r.displayName="al",r.aliases=[]},621688,(e,t,n)=>{"use strict";function r(e){e.languages.antlr4={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,string:{pattern:/'(?:\\.|[^\\'\r\n])*'/,greedy:!0},"character-class":{pattern:/\[(?:\\.|[^\\\]\r\n])*\]/,greedy:!0,alias:"regex",inside:{range:{pattern:/([^[]|(?:^|[^\\])(?:\\\\)*\\\[)-(?!\])/,lookbehind:!0,alias:"punctuation"},escape:/\\(?:u(?:[a-fA-F\d]{4}|\{[a-fA-F\d]+\})|[pP]\{[=\w-]+\}|[^\r\nupP])/,punctuation:/[\[\]]/}},action:{pattern:/\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\}/,greedy:!0,inside:{content:{pattern:/(\{)[\s\S]+(?=\})/,lookbehind:!0},punctuation:/[{}]/}},command:{pattern:/(->\s*(?!\s))(?:\s*(?:,\s*)?\b[a-z]\w*(?:\s*\([^()\r\n]*\))?)+(?=\s*;)/i,lookbehind:!0,inside:{function:/\b\w+(?=\s*(?:[,(]|$))/,punctuation:/[,()]/}},annotation:{pattern:/@\w+(?:::\w+)*/,alias:"keyword"},label:{pattern:/#[ \t]*\w+/,alias:"punctuation"},keyword:/\b(?:catch|channels|finally|fragment|grammar|import|lexer|locals|mode|options|parser|returns|throws|tokens)\b/,definition:[{pattern:/\b[a-z]\w*(?=\s*:)/,alias:["rule","class-name"]},{pattern:/\b[A-Z]\w*(?=\s*:)/,alias:["token","constant"]}],constant:/\b[A-Z][A-Z_]*\b/,operator:/\.\.|->|[|~]|[*+?]\??/,punctuation:/[;:()=]/},e.languages.g4=e.languages.antlr4}t.exports=r,r.displayName="antlr4",r.aliases=["g4"]},652213,(e,t,n)=>{"use strict";function r(e){e.languages.apacheconf={comment:/#.*/,"directive-inline":{pattern:/(^[\t ]*)\b(?:AcceptFilter|AcceptPathInfo|AccessFileName|Action|Add(?:Alt|AltByEncoding|AltByType|Charset|DefaultCharset|Description|Encoding|Handler|Icon|IconByEncoding|IconByType|InputFilter|Language|ModuleInfo|OutputFilter|OutputFilterByType|Type)|Alias|AliasMatch|Allow(?:CONNECT|EncodedSlashes|Methods|Override|OverrideList)?|Anonymous(?:_LogEmail|_MustGiveEmail|_NoUserID|_VerifyEmail)?|AsyncRequestWorkerFactor|Auth(?:BasicAuthoritative|BasicFake|BasicProvider|BasicUseDigestAlgorithm|DBDUserPWQuery|DBDUserRealmQuery|DBMGroupFile|DBMType|DBMUserFile|Digest(?:Algorithm|Domain|NonceLifetime|Provider|Qop|ShmemSize)|Form(?:Authoritative|Body|DisableNoStore|FakeBasicAuth|Location|LoginRequiredLocation|LoginSuccessLocation|LogoutLocation|Method|Mimetype|Password|Provider|SitePassphrase|Size|Username)|GroupFile|LDAP(?:AuthorizePrefix|BindAuthoritative|BindDN|BindPassword|CharsetConfig|CompareAsUser|CompareDNOnServer|DereferenceAliases|GroupAttribute|GroupAttributeIsDN|InitialBindAsUser|InitialBindPattern|MaxSubGroupDepth|RemoteUserAttribute|RemoteUserIsDN|SearchAsUser|SubGroupAttribute|SubGroupClass|Url)|Merging|Name|nCache(?:Context|Enable|ProvideFor|SOCache|Timeout)|nzFcgiCheckAuthnProvider|nzFcgiDefineProvider|Type|UserFile|zDBDLoginToReferer|zDBDQuery|zDBDRedirectQuery|zDBMType|zSendForbiddenOnFailure)|BalancerGrowth|BalancerInherit|BalancerMember|BalancerPersist|BrowserMatch|BrowserMatchNoCase|BufferedLogs|BufferSize|Cache(?:DefaultExpire|DetailHeader|DirLength|DirLevels|Disable|Enable|File|Header|IgnoreCacheControl|IgnoreHeaders|IgnoreNoLastMod|IgnoreQueryString|IgnoreURLSessionIdentifiers|KeyBaseURL|LastModifiedFactor|Lock|LockMaxAge|LockPath|MaxExpire|MaxFileSize|MinExpire|MinFileSize|NegotiatedDocs|QuickHandler|ReadSize|ReadTime|Root|Socache(?:MaxSize|MaxTime|MinTime|ReadSize|ReadTime)?|StaleOnError|StoreExpired|StoreNoStore|StorePrivate)|CGIDScriptTimeout|CGIMapExtension|CharsetDefault|CharsetOptions|CharsetSourceEnc|CheckCaseOnly|CheckSpelling|ChrootDir|ContentDigest|CookieDomain|CookieExpires|CookieName|CookieStyle|CookieTracking|CoreDumpDirectory|CustomLog|Dav|DavDepthInfinity|DavGenericLockDB|DavLockDB|DavMinTimeout|DBDExptime|DBDInitSQL|DBDKeep|DBDMax|DBDMin|DBDParams|DBDPersist|DBDPrepareSQL|DBDriver|DefaultIcon|DefaultLanguage|DefaultRuntimeDir|DefaultType|Define|Deflate(?:BufferSize|CompressionLevel|FilterNote|InflateLimitRequestBody|InflateRatio(?:Burst|Limit)|MemLevel|WindowSize)|Deny|DirectoryCheckHandler|DirectoryIndex|DirectoryIndexRedirect|DirectorySlash|DocumentRoot|DTracePrivileges|DumpIOInput|DumpIOOutput|EnableExceptionHook|EnableMMAP|EnableSendfile|Error|ErrorDocument|ErrorLog|ErrorLogFormat|Example|ExpiresActive|ExpiresByType|ExpiresDefault|ExtendedStatus|ExtFilterDefine|ExtFilterOptions|FallbackResource|FileETag|FilterChain|FilterDeclare|FilterProtocol|FilterProvider|FilterTrace|ForceLanguagePriority|ForceType|ForensicLog|GprofDir|GracefulShutdownTimeout|Group|Header|HeaderName|Heartbeat(?:Address|Listen|MaxServers|Storage)|HostnameLookups|IdentityCheck|IdentityCheckTimeout|ImapBase|ImapDefault|ImapMenu|Include|IncludeOptional|Index(?:HeadInsert|Ignore|IgnoreReset|Options|OrderDefault|StyleSheet)|InputSed|ISAPI(?:AppendLogToErrors|AppendLogToQuery|CacheFile|FakeAsync|LogNotSupported|ReadAheadBuffer)|KeepAlive|KeepAliveTimeout|KeptBodySize|LanguagePriority|LDAP(?:CacheEntries|CacheTTL|ConnectionPoolTTL|ConnectionTimeout|LibraryDebug|OpCacheEntries|OpCacheTTL|ReferralHopLimit|Referrals|Retries|RetryDelay|SharedCacheFile|SharedCacheSize|Timeout|TrustedClientCert|TrustedGlobalCert|TrustedMode|VerifyServerCert)|Limit(?:InternalRecursion|Request(?:Body|Fields|FieldSize|Line)|XMLRequestBody)|Listen|ListenBackLog|LoadFile|LoadModule|LogFormat|LogLevel|LogMessage|LuaAuthzProvider|LuaCodeCache|Lua(?:Hook(?:AccessChecker|AuthChecker|CheckUserID|Fixups|InsertFilter|Log|MapToStorage|TranslateName|TypeChecker)|Inherit|InputFilter|MapHandler|OutputFilter|PackageCPath|PackagePath|QuickHandler|Root|Scope)|Max(?:ConnectionsPerChild|KeepAliveRequests|MemFree|RangeOverlaps|RangeReversals|Ranges|RequestWorkers|SpareServers|SpareThreads|Threads)|MergeTrailers|MetaDir|MetaFiles|MetaSuffix|MimeMagicFile|MinSpareServers|MinSpareThreads|MMapFile|ModemStandard|ModMimeUsePathInfo|MultiviewsMatch|Mutex|NameVirtualHost|NoProxy|NWSSLTrustedCerts|NWSSLUpgradeable|Options|Order|OutputSed|PassEnv|PidFile|PrivilegesMode|Protocol|ProtocolEcho|Proxy(?:AddHeaders|BadHeader|Block|Domain|ErrorOverride|ExpressDBMFile|ExpressDBMType|ExpressEnable|FtpDirCharset|FtpEscapeWildcards|FtpListOnWildcard|HTML(?:BufSize|CharsetOut|DocType|Enable|Events|Extended|Fixups|Interp|Links|Meta|StripComments|URLMap)|IOBufferSize|MaxForwards|Pass(?:Inherit|InterpolateEnv|Match|Reverse|ReverseCookieDomain|ReverseCookiePath)?|PreserveHost|ReceiveBufferSize|Remote|RemoteMatch|Requests|SCGIInternalRedirect|SCGISendfile|Set|SourceAddress|Status|Timeout|Via)|ReadmeName|ReceiveBufferSize|Redirect|RedirectMatch|RedirectPermanent|RedirectTemp|ReflectorHeader|RemoteIP(?:Header|InternalProxy|InternalProxyList|ProxiesHeader|TrustedProxy|TrustedProxyList)|RemoveCharset|RemoveEncoding|RemoveHandler|RemoveInputFilter|RemoveLanguage|RemoveOutputFilter|RemoveType|RequestHeader|RequestReadTimeout|Require|Rewrite(?:Base|Cond|Engine|Map|Options|Rule)|RLimitCPU|RLimitMEM|RLimitNPROC|Satisfy|ScoreBoardFile|Script(?:Alias|AliasMatch|InterpreterSource|Log|LogBuffer|LogLength|Sock)?|SecureListen|SeeRequestTail|SendBufferSize|Server(?:Admin|Alias|Limit|Name|Path|Root|Signature|Tokens)|Session(?:Cookie(?:Name|Name2|Remove)|Crypto(?:Cipher|Driver|Passphrase|PassphraseFile)|DBD(?:CookieName|CookieName2|CookieRemove|DeleteLabel|InsertLabel|PerUser|SelectLabel|UpdateLabel)|Env|Exclude|Header|Include|MaxAge)?|SetEnv|SetEnvIf|SetEnvIfExpr|SetEnvIfNoCase|SetHandler|SetInputFilter|SetOutputFilter|SSIEndTag|SSIErrorMsg|SSIETag|SSILastModified|SSILegacyExprParser|SSIStartTag|SSITimeFormat|SSIUndefinedEcho|SSL(?:CACertificateFile|CACertificatePath|CADNRequestFile|CADNRequestPath|CARevocationCheck|CARevocationFile|CARevocationPath|CertificateChainFile|CertificateFile|CertificateKeyFile|CipherSuite|Compression|CryptoDevice|Engine|FIPS|HonorCipherOrder|InsecureRenegotiation|OCSP(?:DefaultResponder|Enable|OverrideResponder|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|UseRequestNonce)|OpenSSLConfCmd|Options|PassPhraseDialog|Protocol|Proxy(?:CACertificateFile|CACertificatePath|CARevocation(?:Check|File|Path)|CheckPeer(?:CN|Expire|Name)|CipherSuite|Engine|MachineCertificate(?:ChainFile|File|Path)|Protocol|Verify|VerifyDepth)|RandomSeed|RenegBufferSize|Require|RequireSSL|Session(?:Cache|CacheTimeout|TicketKeyFile|Tickets)|SRPUnknownUserSeed|SRPVerifierFile|Stapling(?:Cache|ErrorCacheTimeout|FakeTryLater|ForceURL|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|ReturnResponderErrors|StandardCacheTimeout)|StrictSNIVHostCheck|UserName|UseStapling|VerifyClient|VerifyDepth)|StartServers|StartThreads|Substitute|Suexec|SuexecUserGroup|ThreadLimit|ThreadsPerChild|ThreadStackSize|TimeOut|TraceEnable|TransferLog|TypesConfig|UnDefine|UndefMacro|UnsetEnv|Use|UseCanonicalName|UseCanonicalPhysicalPort|User|UserDir|VHostCGIMode|VHostCGIPrivs|VHostGroup|VHostPrivs|VHostSecure|VHostUser|Virtual(?:DocumentRoot|ScriptAlias)(?:IP)?|WatchdogInterval|XBitHack|xml2EncAlias|xml2EncDefault|xml2StartParse)\b/im,lookbehind:!0,alias:"property"},"directive-block":{pattern:/<\/?\b(?:Auth[nz]ProviderAlias|Directory|DirectoryMatch|Else|ElseIf|Files|FilesMatch|If|IfDefine|IfModule|IfVersion|Limit|LimitExcept|Location|LocationMatch|Macro|Proxy|Require(?:All|Any|None)|VirtualHost)\b.*>/i,inside:{"directive-block":{pattern:/^<\/?\w+/,inside:{punctuation:/^<\/?/},alias:"tag"},"directive-block-parameter":{pattern:/.*[^>]/,inside:{punctuation:/:/,string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}}},alias:"attr-value"},punctuation:/>/},alias:"tag"},"directive-flags":{pattern:/\[(?:[\w=],?)+\]/,alias:"keyword"},string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}},variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/,regex:/\^?.*\$|\^.*\$?/}}t.exports=r,r.displayName="apacheconf",r.aliases=[]},440435,(e,t,n)=>{"use strict";function r(e){e.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}}t.exports=r,r.displayName="sql",r.aliases=[]},298722,(e,t,n)=>{"use strict";var r=e.r(440435);function a(e){e.register(r);var t=/\b(?:(?:after|before)(?=\s+[a-z])|abstract|activate|and|any|array|as|asc|autonomous|begin|bigdecimal|blob|boolean|break|bulk|by|byte|case|cast|catch|char|class|collect|commit|const|continue|currency|date|datetime|decimal|default|delete|desc|do|double|else|end|enum|exception|exit|export|extends|final|finally|float|for|from|get(?=\s*[{};])|global|goto|group|having|hint|if|implements|import|in|inner|insert|instanceof|int|integer|interface|into|join|like|limit|list|long|loop|map|merge|new|not|null|nulls|number|object|of|on|or|outer|override|package|parallel|pragma|private|protected|public|retrieve|return|rollback|select|set|short|sObject|sort|static|string|super|switch|synchronized|system|testmethod|then|this|throw|time|transaction|transient|trigger|try|undelete|update|upsert|using|virtual|void|webservice|when|where|while|(?:inherited|with|without)\s+sharing)\b/i,n=/\b(?:(?=[a-z_]\w*\s*[<\[])|(?!<keyword>))[A-Z_]\w*(?:\s*\.\s*[A-Z_]\w*)*\b(?:\s*(?:\[\s*\]|<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>))*/.source.replace(/<keyword>/g,function(){return t.source});function a(e){return RegExp(e.replace(/<CLASS-NAME>/g,function(){return n}),"i")}var i={keyword:t,punctuation:/[()\[\]{};,:.<>]/};e.languages.apex={comment:e.languages.clike.comment,string:e.languages.clike.string,sql:{pattern:/((?:[=,({:]|\breturn)\s*)\[[^\[\]]*\]/i,lookbehind:!0,greedy:!0,alias:"language-sql",inside:e.languages.sql},annotation:{pattern:/@\w+\b/,alias:"punctuation"},"class-name":[{pattern:a(/(\b(?:class|enum|extends|implements|instanceof|interface|new|trigger\s+\w+\s+on)\s+)<CLASS-NAME>/.source),lookbehind:!0,inside:i},{pattern:a(/(\(\s*)<CLASS-NAME>(?=\s*\)\s*[\w(])/.source),lookbehind:!0,inside:i},{pattern:a(/<CLASS-NAME>(?=\s*\w+\s*[;=,(){:])/.source),inside:i}],trigger:{pattern:/(\btrigger\s+)\w+\b/i,lookbehind:!0,alias:"class-name"},keyword:t,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/(?:\B\.\d+|\b\d+(?:\.\d+|L)?)\b/i,operator:/[!=](?:==?)?|\?\.?|&&|\|\||--|\+\+|[-+*/^&|]=?|:|<<?=?|>{1,3}=?/,punctuation:/[()\[\]{};,.]/}}t.exports=a,a.displayName="apex",a.aliases=[]},991642,(e,t,n)=>{"use strict";function r(e){e.languages.apl={comment:/(?:⍝|#[! ]).*$/m,string:{pattern:/'(?:[^'\r\n]|'')*'/,greedy:!0},number:/¯?(?:\d*\.?\b\d+(?:e[+¯]?\d+)?|¯|∞)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+)?|¯|∞))?/i,statement:/:[A-Z][a-z][A-Za-z]*\b/,"system-function":{pattern:/⎕[A-Z]+/i,alias:"function"},constant:/[⍬⌾#⎕⍞]/,function:/[-+×÷⌈⌊∣|⍳⍸?*⍟○!⌹<≤=>≥≠≡≢∊⍷∪∩~∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⊆⊇⌷⍋⍒⊤⊥⍕⍎⊣⊢⍁⍂≈⍯↗¤→]/,"monadic-operator":{pattern:/[\\\/⌿⍀¨⍨⌶&∥]/,alias:"operator"},"dyadic-operator":{pattern:/[.⍣⍠⍤∘⌸@⌺⍥]/,alias:"operator"},assignment:{pattern:/←/,alias:"keyword"},punctuation:/[\[;\]()◇⋄]/,dfn:{pattern:/[{}⍺⍵⍶⍹∇⍫:]/,alias:"builtin"}}}t.exports=r,r.displayName="apl",r.aliases=[]},731788,(e,t,n)=>{"use strict";function r(e){e.languages.applescript={comment:[/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,/--.+/,/#.+/],string:/"(?:\\.|[^"\\\r\n])*"/,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?\b/i,operator:[/[&=≠≤≥*+\-\/÷^]|[<>]=?/,/\b(?:(?:begin|end|start)s? with|(?:contains?|(?:does not|doesn't) contain)|(?:is|isn't|is not) (?:contained by|in)|(?:(?:is|isn't|is not) )?(?:greater|less) than(?: or equal)?(?: to)?|(?:comes|(?:does not|doesn't) come) (?:after|before)|(?:is|isn't|is not) equal(?: to)?|(?:(?:does not|doesn't) equal|equal to|equals|is not|isn't)|(?:a )?(?:ref(?: to)?|reference to)|(?:and|as|div|mod|not|or))\b/],keyword:/\b(?:about|above|after|against|apart from|around|aside from|at|back|before|beginning|behind|below|beneath|beside|between|but|by|considering|continue|copy|does|eighth|else|end|equal|error|every|exit|false|fifth|first|for|fourth|from|front|get|given|global|if|ignoring|in|instead of|into|is|it|its|last|local|me|middle|my|ninth|of|on|onto|out of|over|prop|property|put|repeat|return|returning|second|set|seventh|since|sixth|some|tell|tenth|that|the|then|third|through|thru|timeout|times|to|transaction|true|try|until|where|while|whose|with|without)\b/,"class-name":/\b(?:POSIX file|RGB color|alias|application|boolean|centimeters|centimetres|class|constant|cubic centimeters|cubic centimetres|cubic feet|cubic inches|cubic meters|cubic metres|cubic yards|date|degrees Celsius|degrees Fahrenheit|degrees Kelvin|feet|file|gallons|grams|inches|integer|kilograms|kilometers|kilometres|list|liters|litres|meters|metres|miles|number|ounces|pounds|quarts|real|record|reference|script|square feet|square kilometers|square kilometres|square meters|square metres|square miles|square yards|text|yards)\b/,punctuation:/[{}():,¬«»《》]/}}t.exports=r,r.displayName="applescript",r.aliases=[]},360075,(e,t,n)=>{"use strict";function r(e){e.languages.aql={comment:/\/\/.*|\/\*[\s\S]*?\*\//,property:{pattern:/([{,]\s*)(?:(?!\d)\w+|(["'´`])(?:(?!\2)[^\\\r\n]|\\.)*\2)(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},identifier:{pattern:/([´`])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},variable:/@@?\w+/,keyword:[{pattern:/(\bWITH\s+)COUNT(?=\s+INTO\b)/i,lookbehind:!0},/\b(?:AGGREGATE|ALL|AND|ANY|ASC|COLLECT|DESC|DISTINCT|FILTER|FOR|GRAPH|IN|INBOUND|INSERT|INTO|K_PATHS|K_SHORTEST_PATHS|LET|LIKE|LIMIT|NONE|NOT|NULL|OR|OUTBOUND|REMOVE|REPLACE|RETURN|SHORTEST_PATH|SORT|UPDATE|UPSERT|WINDOW|WITH)\b/i,{pattern:/(^|[^\w.[])(?:KEEP|PRUNE|SEARCH|TO)\b/i,lookbehind:!0},{pattern:/(^|[^\w.[])(?:CURRENT|NEW|OLD)\b/,lookbehind:!0},{pattern:/\bOPTIONS(?=\s*\{)/i}],function:/\b(?!\d)\w+(?=\s*\()/,boolean:/\b(?:false|true)\b/i,range:{pattern:/\.\./,alias:"operator"},number:[/\b0b[01]+/i,/\b0x[0-9a-f]+/i,/(?:\B\.\d+|\b(?:0|[1-9]\d*)(?:\.\d+)?)(?:e[+-]?\d+)?/i],operator:/\*{2,}|[=!]~|[!=<>]=?|&&|\|\||[-+*/%]/,punctuation:/::|[?.:,;()[\]{}]/}}t.exports=r,r.displayName="aql",r.aliases=[]},835801,(e,t,n)=>{"use strict";function r(e){e.languages.c=e.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),e.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),e.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},e.languages.c.string],char:e.languages.c.char,comment:e.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:e.languages.c}}}}),e.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete e.languages.c.boolean}t.exports=r,r.displayName="c",r.aliases=[]},572495,(e,t,n)=>{"use strict";var r=e.r(835801);function a(e){var t,n;e.register(r),t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return t.source}),e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return t.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return n})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}t.exports=a,a.displayName="cpp",a.aliases=[]},253144,(e,t,n)=>{"use strict";var r=e.r(572495);function a(e){e.register(r),e.languages.arduino=e.languages.extend("cpp",{keyword:/\b(?:String|array|bool|boolean|break|byte|case|catch|continue|default|do|double|else|finally|for|function|goto|if|in|instanceof|int|integer|long|loop|new|null|return|setup|string|switch|throw|try|void|while|word)\b/,constant:/\b(?:ANALOG_MESSAGE|DEFAULT|DIGITAL_MESSAGE|EXTERNAL|FIRMATA_STRING|HIGH|INPUT|INPUT_PULLUP|INTERNAL|INTERNAL1V1|INTERNAL2V56|LED_BUILTIN|LOW|OUTPUT|REPORT_ANALOG|REPORT_DIGITAL|SET_PIN_MODE|SYSEX_START|SYSTEM_RESET)\b/,builtin:/\b(?:Audio|BSSID|Bridge|Client|Console|EEPROM|Esplora|EsploraTFT|Ethernet|EthernetClient|EthernetServer|EthernetUDP|File|FileIO|FileSystem|Firmata|GPRS|GSM|GSMBand|GSMClient|GSMModem|GSMPIN|GSMScanner|GSMServer|GSMVoiceCall|GSM_SMS|HttpClient|IPAddress|IRread|Keyboard|KeyboardController|LiquidCrystal|LiquidCrystal_I2C|Mailbox|Mouse|MouseController|PImage|Process|RSSI|RobotControl|RobotMotor|SD|SPI|SSID|Scheduler|Serial|Server|Servo|SoftwareSerial|Stepper|Stream|TFT|Task|USBHost|WiFi|WiFiClient|WiFiServer|WiFiUDP|Wire|YunClient|YunServer|abs|addParameter|analogRead|analogReadResolution|analogReference|analogWrite|analogWriteResolution|answerCall|attach|attachGPRS|attachInterrupt|attached|autoscroll|available|background|beep|begin|beginPacket|beginSD|beginSMS|beginSpeaker|beginTFT|beginTransmission|beginWrite|bit|bitClear|bitRead|bitSet|bitWrite|blink|blinkVersion|buffer|changePIN|checkPIN|checkPUK|checkReg|circle|cityNameRead|cityNameWrite|clear|clearScreen|click|close|compassRead|config|connect|connected|constrain|cos|countryNameRead|countryNameWrite|createChar|cursor|debugPrint|delay|delayMicroseconds|detach|detachInterrupt|digitalRead|digitalWrite|disconnect|display|displayLogos|drawBMP|drawCompass|encryptionType|end|endPacket|endSMS|endTransmission|endWrite|exists|exitValue|fill|find|findUntil|flush|gatewayIP|get|getAsynchronously|getBand|getButton|getCurrentCarrier|getIMEI|getKey|getModifiers|getOemKey|getPINUsed|getResult|getSignalStrength|getSocket|getVoiceCallStatus|getXChange|getYChange|hangCall|height|highByte|home|image|interrupts|isActionDone|isDirectory|isListening|isPIN|isPressed|isValid|keyPressed|keyReleased|keyboardRead|knobRead|leftToRight|line|lineFollowConfig|listen|listenOnLocalhost|loadImage|localIP|lowByte|macAddress|maintain|map|max|messageAvailable|micros|millis|min|mkdir|motorsStop|motorsWrite|mouseDragged|mouseMoved|mousePressed|mouseReleased|move|noAutoscroll|noBlink|noBuffer|noCursor|noDisplay|noFill|noInterrupts|noListenOnLocalhost|noStroke|noTone|onReceive|onRequest|open|openNextFile|overflow|parseCommand|parseFloat|parseInt|parsePacket|pauseMode|peek|pinMode|playFile|playMelody|point|pointTo|position|pow|prepare|press|print|printFirmwareVersion|printVersion|println|process|processInput|pulseIn|put|random|randomSeed|read|readAccelerometer|readBlue|readButton|readBytes|readBytesUntil|readGreen|readJoystickButton|readJoystickSwitch|readJoystickX|readJoystickY|readLightSensor|readMessage|readMicrophone|readNetworks|readRed|readSlider|readString|readStringUntil|readTemperature|ready|rect|release|releaseAll|remoteIP|remoteNumber|remotePort|remove|requestFrom|retrieveCallingNumber|rewindDirectory|rightToLeft|rmdir|robotNameRead|robotNameWrite|run|runAsynchronously|runShellCommand|runShellCommandAsynchronously|running|scanNetworks|scrollDisplayLeft|scrollDisplayRight|seek|sendAnalog|sendDigitalPortPair|sendDigitalPorts|sendString|sendSysex|serialEvent|setBand|setBitOrder|setClockDivider|setCursor|setDNS|setDataMode|setFirmwareVersion|setMode|setPINUsed|setSpeed|setTextSize|setTimeout|shiftIn|shiftOut|shutdown|sin|size|sqrt|startLoop|step|stop|stroke|subnetMask|switchPIN|tan|tempoWrite|text|tone|transfer|tuneWrite|turn|updateIR|userNameRead|userNameWrite|voiceCall|waitContinue|width|write|writeBlue|writeGreen|writeJSON|writeMessage|writeMicroseconds|writeRGB|writeRed|yield)\b/}),e.languages.ino=e.languages.arduino}t.exports=a,a.displayName="arduino",a.aliases=["ino"]},561304,(e,t,n)=>{"use strict";function r(e){e.languages.arff={comment:/%.*/,string:{pattern:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/@(?:attribute|data|end|relation)\b/i,number:/\b\d+(?:\.\d+)?\b/,punctuation:/[{},]/}}t.exports=r,r.displayName="arff",r.aliases=[]},52373,(e,t,n)=>{"use strict";function r(e){var t={pattern:/(^[ \t]*)\[(?!\[)(?:(["'$`])(?:(?!\2)[^\\]|\\.)*\2|\[(?:[^\[\]\\]|\\.)*\]|[^\[\]\\"'$`]|\\.)*\]/m,lookbehind:!0,inside:{quoted:{pattern:/([$`])(?:(?!\1)[^\\]|\\.)*\1/,inside:{punctuation:/^[$`]|[$`]$/}},interpreted:{pattern:/'(?:[^'\\]|\\.)*'/,inside:{punctuation:/^'|'$/}},string:/"(?:[^"\\]|\\.)*"/,variable:/\w+(?==)/,punctuation:/^\[|\]$|,/,operator:/=/,"attr-value":/(?!^\s+$).+/}},n=e.languages.asciidoc={"comment-block":{pattern:/^(\/{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1/m,alias:"comment"},table:{pattern:/^\|={3,}(?:(?:\r?\n|\r(?!\n)).*)*?(?:\r?\n|\r)\|={3,}$/m,inside:{specifiers:{pattern:/(?:(?:(?:\d+(?:\.\d+)?|\.\d+)[+*](?:[<^>](?:\.[<^>])?|\.[<^>])?|[<^>](?:\.[<^>])?|\.[<^>])[a-z]*|[a-z]+)(?=\|)/,alias:"attr-value"},punctuation:{pattern:/(^|[^\\])[|!]=*/,lookbehind:!0}}},"passthrough-block":{pattern:/^(\+{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^\++|\++$/}},"literal-block":{pattern:/^(-{4,}|\.{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^(?:-+|\.+)|(?:-+|\.+)$/}},"other-block":{pattern:/^(--|\*{4,}|_{4,}|={4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^(?:-+|\*+|_+|=+)|(?:-+|\*+|_+|=+)$/}},"list-punctuation":{pattern:/(^[ \t]*)(?:-|\*{1,5}|\.{1,5}|(?:[a-z]|\d+)\.|[xvi]+\))(?= )/im,lookbehind:!0,alias:"punctuation"},"list-label":{pattern:/(^[ \t]*)[a-z\d].+(?::{2,4}|;;)(?=\s)/im,lookbehind:!0,alias:"symbol"},"indented-block":{pattern:/((\r?\n|\r)\2)([ \t]+)\S.*(?:(?:\r?\n|\r)\3.+)*(?=\2{2}|$)/,lookbehind:!0},comment:/^\/\/.*/m,title:{pattern:/^.+(?:\r?\n|\r)(?:={3,}|-{3,}|~{3,}|\^{3,}|\+{3,})$|^={1,5} .+|^\.(?![\s.]).*/m,alias:"important",inside:{punctuation:/^(?:\.|=+)|(?:=+|-+|~+|\^+|\++)$/}},"attribute-entry":{pattern:/^:[^:\r\n]+:(?: .*?(?: \+(?:\r?\n|\r).*?)*)?$/m,alias:"tag"},attributes:t,hr:{pattern:/^'{3,}$/m,alias:"punctuation"},"page-break":{pattern:/^<{3,}$/m,alias:"punctuation"},admonition:{pattern:/^(?:CAUTION|IMPORTANT|NOTE|TIP|WARNING):/m,alias:"keyword"},callout:[{pattern:/(^[ \t]*)<?\d*>/m,lookbehind:!0,alias:"symbol"},{pattern:/<\d+>/,alias:"symbol"}],macro:{pattern:/\b[a-z\d][a-z\d-]*::?(?:[^\s\[\]]*\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:{function:/^[a-z\d-]+(?=:)/,punctuation:/^::?/,attributes:{pattern:/(?:\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:t.inside}}},inline:{pattern:/(^|[^\\])(?:(?:\B\[(?:[^\]\\"']|(["'])(?:(?!\2)[^\\]|\\.)*\2|\\.)*\])?(?:\b_(?!\s)(?: _|[^_\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: _|[^_\\\r\n]|\\.)+)*_\b|\B``(?!\s).+?(?:(?:\r?\n|\r).+?)*''\B|\B`(?!\s)(?:[^`'\s]|\s+\S)+['`]\B|\B(['*+#])(?!\s)(?: \3|(?!\3)[^\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: \3|(?!\3)[^\\\r\n]|\\.)+)*\3\B)|(?:\[(?:[^\]\\"']|(["'])(?:(?!\4)[^\\]|\\.)*\4|\\.)*\])?(?:(__|\*\*|\+\+\+?|##|\$\$|[~^]).+?(?:(?:\r?\n|\r).+?)*\5|\{[^}\r\n]+\}|\[\[\[?.+?(?:(?:\r?\n|\r).+?)*\]?\]\]|<<.+?(?:(?:\r?\n|\r).+?)*>>|\(\(\(?.+?(?:(?:\r?\n|\r).+?)*\)?\)\)))/m,lookbehind:!0,inside:{attributes:t,url:{pattern:/^(?:\[\[\[?.+?\]?\]\]|<<.+?>>)$/,inside:{punctuation:/^(?:\[\[\[?|<<)|(?:\]\]\]?|>>)$/}},"attribute-ref":{pattern:/^\{.+\}$/,inside:{variable:{pattern:/(^\{)[a-z\d,+_-]+/,lookbehind:!0},operator:/^[=?!#%@$]|!(?=[:}])/,punctuation:/^\{|\}$|::?/}},italic:{pattern:/^(['_])[\s\S]+\1$/,inside:{punctuation:/^(?:''?|__?)|(?:''?|__?)$/}},bold:{pattern:/^\*[\s\S]+\*$/,inside:{punctuation:/^\*\*?|\*\*?$/}},punctuation:/^(?:``?|\+{1,3}|##?|\$\$|[~^]|\(\(\(?)|(?:''?|\+{1,3}|##?|\$\$|[~^`]|\)?\)\))$/}},replacement:{pattern:/\((?:C|R|TM)\)/,alias:"builtin"},entity:/&#?[\da-z]{1,8};/i,"line-continuation":{pattern:/(^| )\+$/m,lookbehind:!0,alias:"punctuation"}};function r(e){e=e.split(" ");for(var t={},r=0,a=e.length;r<a;r++)t[e[r]]=n[e[r]];return t}t.inside.interpreted.inside.rest=r("macro inline replacement entity"),n["passthrough-block"].inside.rest=r("macro"),n["literal-block"].inside.rest=r("callout"),n.table.inside.rest=r("comment-block passthrough-block literal-block other-block list-punctuation indented-block comment title attribute-entry attributes hr page-break admonition list-label callout macro inline replacement entity line-continuation"),n["other-block"].inside.rest=r("table list-punctuation indented-block comment attribute-entry attributes hr page-break admonition list-label macro inline replacement entity line-continuation"),n.title.inside.rest=r("macro inline replacement entity"),e.hooks.add("wrap",function(e){"entity"===e.type&&(e.attributes.title=e.content.value.replace(/&/,"&"))}),e.languages.adoc=e.languages.asciidoc}t.exports=r,r.displayName="asciidoc",r.aliases=["adoc"]},956450,(e,t,n)=>{"use strict";function r(e){e.languages.asm6502={comment:/;.*/,directive:{pattern:/\.\w+(?= )/,alias:"property"},string:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,"op-code":{pattern:/\b(?:ADC|AND|ASL|BCC|BCS|BEQ|BIT|BMI|BNE|BPL|BRK|BVC|BVS|CLC|CLD|CLI|CLV|CMP|CPX|CPY|DEC|DEX|DEY|EOR|INC|INX|INY|JMP|JSR|LDA|LDX|LDY|LSR|NOP|ORA|PHA|PHP|PLA|PLP|ROL|ROR|RTI|RTS|SBC|SEC|SED|SEI|STA|STX|STY|TAX|TAY|TSX|TXA|TXS|TYA|adc|and|asl|bcc|bcs|beq|bit|bmi|bne|bpl|brk|bvc|bvs|clc|cld|cli|clv|cmp|cpx|cpy|dec|dex|dey|eor|inc|inx|iny|jmp|jsr|lda|ldx|ldy|lsr|nop|ora|pha|php|pla|plp|rol|ror|rti|rts|sbc|sec|sed|sei|sta|stx|sty|tax|tay|tsx|txa|txs|tya)\b/,alias:"keyword"},"hex-number":{pattern:/#?\$[\da-f]{1,4}\b/i,alias:"number"},"binary-number":{pattern:/#?%[01]+\b/,alias:"number"},"decimal-number":{pattern:/#?\b\d+\b/,alias:"number"},register:{pattern:/\b[xya]\b/i,alias:"variable"},punctuation:/[(),:]/}}t.exports=r,r.displayName="asm6502",r.aliases=[]},164274,(e,t,n)=>{"use strict";function r(e){e.languages.asmatmel={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},constant:/\b(?:PORT[A-Z]|DDR[A-Z]|(?:DD|P)[A-Z](?:\d|[0-2]\d|3[01]))\b/,directive:{pattern:/\.\w+(?= )/,alias:"property"},"r-register":{pattern:/\br(?:\d|[12]\d|3[01])\b/,alias:"variable"},"op-code":{pattern:/\b(?:ADC|ADD|ADIW|AND|ANDI|ASR|BCLR|BLD|BRBC|BRBS|BRCC|BRCS|BREAK|BREQ|BRGE|BRHC|BRHS|BRID|BRIE|BRLO|BRLT|BRMI|BRNE|BRPL|BRSH|BRTC|BRTS|BRVC|BRVS|BSET|BST|CALL|CBI|CBR|CLC|CLH|CLI|CLN|CLR|CLS|CLT|CLV|CLZ|COM|CP|CPC|CPI|CPSE|DEC|DES|EICALL|EIJMP|ELPM|EOR|FMUL|FMULS|FMULSU|ICALL|IJMP|IN|INC|JMP|LAC|LAS|LAT|LD|LD[A-Za-z0-9]|LPM|LSL|LSR|MOV|MOVW|MUL|MULS|MULSU|NEG|NOP|OR|ORI|OUT|POP|PUSH|RCALL|RET|RETI|RJMP|ROL|ROR|SBC|SBCI|SBI|SBIC|SBIS|SBIW|SBR|SBRC|SBRS|SEC|SEH|SEI|SEN|SER|SES|SET|SEV|SEZ|SLEEP|SPM|ST|ST[A-Z0-9]|SUB|SUBI|SWAP|TST|WDR|XCH|adc|add|adiw|and|andi|asr|bclr|bld|brbc|brbs|brcc|brcs|break|breq|brge|brhc|brhs|brid|brie|brlo|brlt|brmi|brne|brpl|brsh|brtc|brts|brvc|brvs|bset|bst|call|cbi|cbr|clc|clh|cli|cln|clr|cls|clt|clv|clz|com|cp|cpc|cpi|cpse|dec|des|eicall|eijmp|elpm|eor|fmul|fmuls|fmulsu|icall|ijmp|in|inc|jmp|lac|las|lat|ld|ld[a-z0-9]|lpm|lsl|lsr|mov|movw|mul|muls|mulsu|neg|nop|or|ori|out|pop|push|rcall|ret|reti|rjmp|rol|ror|sbc|sbci|sbi|sbic|sbis|sbiw|sbr|sbrc|sbrs|sec|seh|sei|sen|ser|ses|set|sev|sez|sleep|spm|st|st[a-zA-Z0-9]|sub|subi|swap|tst|wdr|xch)\b/,alias:"keyword"},"hex-number":{pattern:/#?\$[\da-f]{2,4}\b/i,alias:"number"},"binary-number":{pattern:/#?%[01]+\b/,alias:"number"},"decimal-number":{pattern:/#?\b\d+\b/,alias:"number"},register:{pattern:/\b[acznvshtixy]\b/i,alias:"variable"},operator:/>>=?|<<=?|&&?|\|\|?|[-+*/%&|^!=<>?]=?/,punctuation:/[(),:]/}}t.exports=r,r.displayName="asmatmel",r.aliases=[]},794503,(e,t,n)=>{"use strict";function r(e){!function(e){function t(e,t){return e.replace(/<<(\d+)>>/g,function(e,n){return"(?:"+t[+n]+")"})}function n(e,n,r){return RegExp(t(e,n),r||"")}function r(e,t){for(var n=0;n<t;n++)e=e.replace(/<<self>>/g,function(){return"(?:"+e+")"});return e.replace(/<<self>>/g,"[^\\s\\S]")}var a="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",i="class enum interface record struct",s="add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",o="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";function l(e){return"\\b(?:"+e.trim().replace(/ /g,"|")+")\\b"}var c=l(i),u=RegExp(l(a+" "+i+" "+s+" "+o)),d=l(i+" "+s+" "+o),p=l(a+" "+i+" "+o),m=r(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),h=r(/\((?:[^()]|<<self>>)*\)/.source,2),f=/@?\b[A-Za-z_]\w*\b/.source,g=t(/<<0>>(?:\s*<<1>>)?/.source,[f,m]),b=t(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[d,g]),y=/\[\s*(?:,\s*)*\]/.source,E=t(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[b,y]),x=t(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[m,h,y]),S=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[x]),T=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[S,b,y]),v={keyword:u,punctuation:/[<>()?,.:[\]]/},A=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,_=/"(?:\\.|[^\\"\r\n])*"/.source,k=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[k]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[_]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[b]),lookbehind:!0,inside:v},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[f,T]),lookbehind:!0,inside:v},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[f]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[c,g]),lookbehind:!0,inside:v},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[b]),lookbehind:!0,inside:v},{pattern:n(/(\bwhere\s+)<<0>>/.source,[f]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[E]),lookbehind:!0,inside:v},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[T,p,f]),inside:v}],keyword:u,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),e.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:n(/([(,]\s*)<<0>>(?=\s*:)/.source,[f]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[f]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[h]),lookbehind:!0,alias:"class-name",inside:v},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[T,b]),inside:v,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[T]),lookbehind:!0,inside:v,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[f,m]),inside:{function:n(/^<<0>>/.source,[f]),generic:{pattern:RegExp(m),alias:"class-name",inside:v}}},"type-list":{pattern:n(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[c,g,f,T,u.source,h,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[g,h]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:u,"class-name":{pattern:RegExp(T),greedy:!0,inside:v},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var N=_+"|"+A,w=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[N]),I=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[w]),2),C=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,R=t(/<<0>>(?:\s*\(<<1>>*\))?/.source,[b,I]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[C,R]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[C]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[I]),inside:e.languages.csharp},"class-name":{pattern:RegExp(b),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var O=/:[^}\r\n]+/.source,L=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[w]),2),D=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[L,O]),P=r(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[N]),2),M=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[P,O]);function F(t,r){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[t]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[r,O]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:e.languages.csharp}}},string:/[\s\S]+/}}e.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:n(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[D]),lookbehind:!0,greedy:!0,inside:F(D,L)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[M]),lookbehind:!0,greedy:!0,inside:F(M,P)}],char:{pattern:RegExp(A),greedy:!0}}),e.languages.dotnet=e.languages.cs=e.languages.csharp}(e)}t.exports=r,r.displayName="csharp",r.aliases=["dotnet","cs"]},630538,(e,t,n)=>{"use strict";var r=e.r(794503);function a(e){e.register(r),e.languages.aspnet=e.languages.extend("markup",{"page-directive":{pattern:/<%\s*@.*%>/,alias:"tag",inside:{"page-directive":{pattern:/<%\s*@\s*(?:Assembly|Control|Implements|Import|Master(?:Type)?|OutputCache|Page|PreviousPageType|Reference|Register)?|%>/i,alias:"tag"},rest:e.languages.markup.tag.inside}},directive:{pattern:/<%.*%>/,alias:"tag",inside:{directive:{pattern:/<%\s*?[$=%#:]{0,2}|%>/,alias:"tag"},rest:e.languages.csharp}}}),e.languages.aspnet.tag.pattern=/<(?!%)\/?[^\s>\/]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,e.languages.insertBefore("inside","punctuation",{directive:e.languages.aspnet.directive},e.languages.aspnet.tag.inside["attr-value"]),e.languages.insertBefore("aspnet","comment",{"asp-comment":{pattern:/<%--[\s\S]*?--%>/,alias:["asp","comment"]}}),e.languages.insertBefore("aspnet",e.languages.javascript?"script":"tag",{"asp-script":{pattern:/(<script(?=.*runat=['"]?server\b)[^>]*>)[\s\S]*?(?=<\/script>)/i,lookbehind:!0,alias:["asp","script"],inside:e.languages.csharp||{}}})}t.exports=a,a.displayName="aspnet",a.aliases=[]},165572,(e,t,n)=>{"use strict";function r(e){e.languages.autohotkey={comment:[{pattern:/(^|\s);.*/,lookbehind:!0},{pattern:/(^[\t ]*)\/\*(?:[\r\n](?![ \t]*\*\/)|[^\r\n])*(?:[\r\n][ \t]*\*\/)?/m,lookbehind:!0,greedy:!0}],tag:{pattern:/^([ \t]*)[^\s,`":]+(?=:[ \t]*$)/m,lookbehind:!0},string:/"(?:[^"\n\r]|"")*"/,variable:/%\w+%/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/\?|\/\/?=?|:=|\|[=|]?|&[=&]?|\+[=+]?|-[=-]?|\*[=*]?|<(?:<=?|>|=)?|>>?=?|[.^!=~]=?|\b(?:AND|NOT|OR)\b/,boolean:/\b(?:false|true)\b/,selector:/\b(?:AutoTrim|BlockInput|Break|Click|ClipWait|Continue|Control|ControlClick|ControlFocus|ControlGet|ControlGetFocus|ControlGetPos|ControlGetText|ControlMove|ControlSend|ControlSendRaw|ControlSetText|CoordMode|Critical|DetectHiddenText|DetectHiddenWindows|Drive|DriveGet|DriveSpaceFree|EnvAdd|EnvDiv|EnvGet|EnvMult|EnvSet|EnvSub|EnvUpdate|Exit|ExitApp|FileAppend|FileCopy|FileCopyDir|FileCreateDir|FileCreateShortcut|FileDelete|FileEncoding|FileGetAttrib|FileGetShortcut|FileGetSize|FileGetTime|FileGetVersion|FileInstall|FileMove|FileMoveDir|FileRead|FileReadLine|FileRecycle|FileRecycleEmpty|FileRemoveDir|FileSelectFile|FileSelectFolder|FileSetAttrib|FileSetTime|FormatTime|GetKeyState|Gosub|Goto|GroupActivate|GroupAdd|GroupClose|GroupDeactivate|Gui|GuiControl|GuiControlGet|Hotkey|ImageSearch|IniDelete|IniRead|IniWrite|Input|InputBox|KeyWait|ListHotkeys|ListLines|ListVars|Loop|Menu|MouseClick|MouseClickDrag|MouseGetPos|MouseMove|MsgBox|OnExit|OutputDebug|Pause|PixelGetColor|PixelSearch|PostMessage|Process|Progress|Random|RegDelete|RegRead|RegWrite|Reload|Repeat|Return|Run|RunAs|RunWait|Send|SendEvent|SendInput|SendMessage|SendMode|SendPlay|SendRaw|SetBatchLines|SetCapslockState|SetControlDelay|SetDefaultMouseSpeed|SetEnv|SetFormat|SetKeyDelay|SetMouseDelay|SetNumlockState|SetRegView|SetScrollLockState|SetStoreCapslockMode|SetTimer|SetTitleMatchMode|SetWinDelay|SetWorkingDir|Shutdown|Sleep|Sort|SoundBeep|SoundGet|SoundGetWaveVolume|SoundPlay|SoundSet|SoundSetWaveVolume|SplashImage|SplashTextOff|SplashTextOn|SplitPath|StatusBarGetText|StatusBarWait|StringCaseSense|StringGetPos|StringLeft|StringLen|StringLower|StringMid|StringReplace|StringRight|StringSplit|StringTrimLeft|StringTrimRight|StringUpper|Suspend|SysGet|Thread|ToolTip|Transform|TrayTip|URLDownloadToFile|WinActivate|WinActivateBottom|WinClose|WinGet|WinGetActiveStats|WinGetActiveTitle|WinGetClass|WinGetPos|WinGetText|WinGetTitle|WinHide|WinKill|WinMaximize|WinMenuSelectItem|WinMinimize|WinMinimizeAll|WinMinimizeAllUndo|WinMove|WinRestore|WinSet|WinSetTitle|WinShow|WinWait|WinWaitActive|WinWaitClose|WinWaitNotActive)\b/i,constant:/\b(?:a_ahkpath|a_ahkversion|a_appdata|a_appdatacommon|a_autotrim|a_batchlines|a_caretx|a_carety|a_computername|a_controldelay|a_cursor|a_dd|a_ddd|a_dddd|a_defaultmousespeed|a_desktop|a_desktopcommon|a_detecthiddentext|a_detecthiddenwindows|a_endchar|a_eventinfo|a_exitreason|a_fileencoding|a_formatfloat|a_formatinteger|a_gui|a_guicontrol|a_guicontrolevent|a_guievent|a_guiheight|a_guiwidth|a_guix|a_guiy|a_hour|a_iconfile|a_iconhidden|a_iconnumber|a_icontip|a_index|a_ipaddress1|a_ipaddress2|a_ipaddress3|a_ipaddress4|a_is64bitos|a_isadmin|a_iscompiled|a_iscritical|a_ispaused|a_issuspended|a_isunicode|a_keydelay|a_language|a_lasterror|a_linefile|a_linenumber|a_loopfield|a_loopfileattrib|a_loopfiledir|a_loopfileext|a_loopfilefullpath|a_loopfilelongpath|a_loopfilename|a_loopfileshortname|a_loopfileshortpath|a_loopfilesize|a_loopfilesizekb|a_loopfilesizemb|a_loopfiletimeaccessed|a_loopfiletimecreated|a_loopfiletimemodified|a_loopreadline|a_loopregkey|a_loopregname|a_loopregsubkey|a_loopregtimemodified|a_loopregtype|a_mday|a_min|a_mm|a_mmm|a_mmmm|a_mon|a_mousedelay|a_msec|a_mydocuments|a_now|a_nowutc|a_numbatchlines|a_ostype|a_osversion|a_priorhotkey|a_priorkey|a_programfiles|a_programs|a_programscommon|a_ptrsize|a_regview|a_screendpi|a_screenheight|a_screenwidth|a_scriptdir|a_scriptfullpath|a_scripthwnd|a_scriptname|a_sec|a_space|a_startmenu|a_startmenucommon|a_startup|a_startupcommon|a_stringcasesense|a_tab|a_temp|a_thisfunc|a_thishotkey|a_thislabel|a_thismenu|a_thismenuitem|a_thismenuitempos|a_tickcount|a_timeidle|a_timeidlephysical|a_timesincepriorhotkey|a_timesincethishotkey|a_titlematchmode|a_titlematchmodespeed|a_username|a_wday|a_windelay|a_windir|a_workingdir|a_yday|a_year|a_yweek|a_yyyy|clipboard|clipboardall|comspec|errorlevel|programfiles)\b/i,builtin:/\b(?:abs|acos|asc|asin|atan|ceil|chr|class|comobjactive|comobjarray|comobjconnect|comobjcreate|comobjerror|comobjflags|comobjget|comobjquery|comobjtype|comobjvalue|cos|dllcall|exp|fileexist|Fileopen|floor|format|il_add|il_create|il_destroy|instr|isfunc|islabel|IsObject|ln|log|ltrim|lv_add|lv_delete|lv_deletecol|lv_getcount|lv_getnext|lv_gettext|lv_insert|lv_insertcol|lv_modify|lv_modifycol|lv_setimagelist|mod|numget|numput|onmessage|regexmatch|regexreplace|registercallback|round|rtrim|sb_seticon|sb_setparts|sb_settext|sin|sqrt|strlen|strreplace|strsplit|substr|tan|tv_add|tv_delete|tv_get|tv_getchild|tv_getcount|tv_getnext|tv_getparent|tv_getprev|tv_getselection|tv_gettext|tv_modify|varsetcapacity|winactive|winexist|__Call|__Get|__New|__Set)\b/i,symbol:/\b(?:alt|altdown|altup|appskey|backspace|browser_back|browser_favorites|browser_forward|browser_home|browser_refresh|browser_search|browser_stop|bs|capslock|ctrl|ctrlbreak|ctrldown|ctrlup|del|delete|down|end|enter|esc|escape|f1|f10|f11|f12|f13|f14|f15|f16|f17|f18|f19|f2|f20|f21|f22|f23|f24|f3|f4|f5|f6|f7|f8|f9|home|ins|insert|joy1|joy10|joy11|joy12|joy13|joy14|joy15|joy16|joy17|joy18|joy19|joy2|joy20|joy21|joy22|joy23|joy24|joy25|joy26|joy27|joy28|joy29|joy3|joy30|joy31|joy32|joy4|joy5|joy6|joy7|joy8|joy9|joyaxes|joybuttons|joyinfo|joyname|joypov|joyr|joyu|joyv|joyx|joyy|joyz|lalt|launch_app1|launch_app2|launch_mail|launch_media|lbutton|lcontrol|lctrl|left|lshift|lwin|lwindown|lwinup|mbutton|media_next|media_play_pause|media_prev|media_stop|numlock|numpad0|numpad1|numpad2|numpad3|numpad4|numpad5|numpad6|numpad7|numpad8|numpad9|numpadadd|numpadclear|numpaddel|numpaddiv|numpaddot|numpaddown|numpadend|numpadenter|numpadhome|numpadins|numpadleft|numpadmult|numpadpgdn|numpadpgup|numpadright|numpadsub|numpadup|pgdn|pgup|printscreen|ralt|rbutton|rcontrol|rctrl|right|rshift|rwin|rwindown|rwinup|scrolllock|shift|shiftdown|shiftup|space|tab|up|volume_down|volume_mute|volume_up|wheeldown|wheelleft|wheelright|wheelup|xbutton1|xbutton2)\b/i,important:/#\b(?:AllowSameLineComments|ClipboardTimeout|CommentFlag|DerefChar|ErrorStdOut|EscapeChar|HotkeyInterval|HotkeyModifierTimeout|Hotstring|If|IfTimeout|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Include|IncludeAgain|InputLevel|InstallKeybdHook|InstallMouseHook|KeyHistory|MaxHotkeysPerInterval|MaxMem|MaxThreads|MaxThreadsBuffer|MaxThreadsPerHotkey|MenuMaskKey|NoEnv|NoTrayIcon|Persistent|SingleInstance|UseHook|Warn|WinActivateForce)\b/i,keyword:/\b(?:Abort|AboveNormal|Add|ahk_class|ahk_exe|ahk_group|ahk_id|ahk_pid|All|Alnum|Alpha|AltSubmit|AltTab|AltTabAndMenu|AltTabMenu|AltTabMenuDismiss|AlwaysOnTop|AutoSize|Background|BackgroundTrans|BelowNormal|between|BitAnd|BitNot|BitOr|BitShiftLeft|BitShiftRight|BitXOr|Bold|Border|Button|ByRef|Catch|Checkbox|Checked|CheckedGray|Choose|ChooseString|Close|Color|ComboBox|Contains|ControlList|Count|Date|DateTime|Days|DDL|Default|DeleteAll|Delimiter|Deref|Destroy|Digit|Disable|Disabled|DropDownList|Edit|Eject|Else|Enable|Enabled|Error|Exist|Expand|ExStyle|FileSystem|Finally|First|Flash|Float|FloatFast|Focus|Font|for|global|Grid|Group|GroupBox|GuiClose|GuiContextMenu|GuiDropFiles|GuiEscape|GuiSize|Hdr|Hidden|Hide|High|HKCC|HKCR|HKCU|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_LOCAL_MACHINE|HKEY_USERS|HKLM|HKU|Hours|HScroll|Icon|IconSmall|ID|IDLast|If|IfEqual|IfExist|IfGreater|IfGreaterOrEqual|IfInString|IfLess|IfLessOrEqual|IfMsgBox|IfNotEqual|IfNotExist|IfNotInString|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Ignore|ImageList|in|Integer|IntegerFast|Interrupt|is|italic|Join|Label|LastFound|LastFoundExist|Limit|Lines|List|ListBox|ListView|local|Lock|Logoff|Low|Lower|Lowercase|MainWindow|Margin|Maximize|MaximizeBox|MaxSize|Minimize|MinimizeBox|MinMax|MinSize|Minutes|MonthCal|Mouse|Move|Multi|NA|No|NoActivate|NoDefault|NoHide|NoIcon|NoMainWindow|norm|Normal|NoSort|NoSortHdr|NoStandard|Not|NoTab|NoTimers|Number|Off|Ok|On|OwnDialogs|Owner|Parse|Password|Picture|Pixel|Pos|Pow|Priority|ProcessName|Radio|Range|Read|ReadOnly|Realtime|Redraw|Region|REG_BINARY|REG_DWORD|REG_EXPAND_SZ|REG_MULTI_SZ|REG_SZ|Relative|Rename|Report|Resize|Restore|Retry|RGB|Screen|Seconds|Section|Serial|SetLabel|ShiftAltTab|Show|Single|Slider|SortDesc|Standard|static|Status|StatusBar|StatusCD|strike|Style|Submit|SysMenu|Tab2|TabStop|Text|Theme|Throw|Tile|ToggleCheck|ToggleEnable|ToolWindow|Top|Topmost|TransColor|Transparent|Tray|TreeView|Try|TryAgain|Type|UnCheck|underline|Unicode|Unlock|Until|UpDown|Upper|Uppercase|UseErrorLevel|Vis|VisFirst|Visible|VScroll|Wait|WaitClose|WantCtrlA|WantF2|WantReturn|While|Wrap|Xdigit|xm|xp|xs|Yes|ym|yp|ys)\b/i,function:/[^(); \t,\n+*\-=?>:\\\/<&%\[\]]+(?=\()/,punctuation:/[{}[\]():,]/}}t.exports=r,r.displayName="autohotkey",r.aliases=[]},84979,(e,t,n)=>{"use strict";function r(e){e.languages.autoit={comment:[/;.*/,{pattern:/(^[\t ]*)#(?:comments-start|cs)[\s\S]*?^[ \t]*#(?:ce|comments-end)/m,lookbehind:!0}],url:{pattern:/(^[\t ]*#include\s+)(?:<[^\r\n>]+>|"[^\r\n"]+")/m,lookbehind:!0},string:{pattern:/(["'])(?:\1\1|(?!\1)[^\r\n])*\1/,greedy:!0,inside:{variable:/([%$@])\w+\1/}},directive:{pattern:/(^[\t ]*)#[\w-]+/m,lookbehind:!0,alias:"keyword"},function:/\b\w+(?=\()/,variable:/[$@]\w+/,keyword:/\b(?:Case|Const|Continue(?:Case|Loop)|Default|Dim|Do|Else(?:If)?|End(?:Func|If|Select|Switch|With)|Enum|Exit(?:Loop)?|For|Func|Global|If|In|Local|Next|Null|ReDim|Select|Static|Step|Switch|Then|To|Until|Volatile|WEnd|While|With)\b/i,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,boolean:/\b(?:False|True)\b/i,operator:/<[=>]?|[-+*\/=&>]=?|[?^]|\b(?:And|Not|Or)\b/i,punctuation:/[\[\]().,:]/}}t.exports=r,r.displayName="autoit",r.aliases=[]},116162,(e,t,n)=>{"use strict";function r(e){function t(e,t,n){return RegExp(e.replace(/<<(\d+)>>/g,function(e,n){return t[+n]}),n||"")}var n=/bool|clip|float|int|string|val/.source,r=[[/is(?:bool|clip|float|int|string)|defined|(?:(?:internal)?function|var)?exists?/.source,/apply|assert|default|eval|import|nop|select|undefined/.source,/opt_(?:allowfloataudio|avipadscanlines|dwchannelmask|enable_(?:b64a|planartopackedrgb|v210|y3_10_10|y3_10_16)|usewaveextensible|vdubplanarhack)|set(?:cachemode|maxcpu|memorymax|planarlegacyalignment|workingdir)/.source,/hex(?:value)?|value/.source,/abs|ceil|continued(?:denominator|numerator)?|exp|floor|fmod|frac|log(?:10)?|max|min|muldiv|pi|pow|rand|round|sign|spline|sqrt/.source,/a?sinh?|a?cosh?|a?tan[2h]?/.source,/(?:bit(?:and|not|x?or|[lr]?shift[aslu]?|sh[lr]|sa[lr]|[lr]rotatel?|ro[rl]|te?st|set(?:count)?|cl(?:ea)?r|ch(?:an)?ge?))/.source,/average(?:[bgr]|chroma[uv]|luma)|(?:[rgb]|chroma[uv]|luma|rgb|[yuv](?=difference(?:fromprevious|tonext)))difference(?:fromprevious|tonext)?|[yuvrgb]plane(?:median|min|max|minmaxdifference)/.source,/getprocessinfo|logmsg|script(?:dir(?:utf8)?|file(?:utf8)?|name(?:utf8)?)|setlogparams/.source,/chr|(?:fill|find|left|mid|replace|rev|right)str|format|[lu]case|ord|str(?:cmpi?|fromutf8|len|toutf8)|time|trim(?:all|left|right)/.source,/isversionorgreater|version(?:number|string)/.source,/buildpixeltype|colorspacenametopixeltype/.source,/addautoloaddir|on(?:cpu|cuda)|prefetch|setfiltermtmode/.source].join("|"),[/has(?:audio|video)/.source,/height|width/.source,/frame(?:count|rate)|framerate(?:denominator|numerator)/.source,/getparity|is(?:field|frame)based/.source,/bitspercomponent|componentsize|hasalpha|is(?:planar(?:rgba?)?|interleaved|rgb(?:24|32|48|64)?|y(?:8|u(?:va?|y2))?|yv(?:12|16|24|411)|420|422|444|packedrgb)|numcomponents|pixeltype/.source,/audio(?:bits|channels|duration|length(?:[fs]|hi|lo)?|rate)|isaudio(?:float|int)/.source].join("|"),[/avi(?:file)?source|directshowsource|image(?:reader|source|sourceanim)|opendmlsource|segmented(?:avisource|directshowsource)|wavsource/.source,/coloryuv|convertbacktoyuy2|convertto(?:RGB(?:24|32|48|64)|(?:planar)?RGBA?|Y8?|YV(?:12|16|24|411)|YUVA?(?:411|420|422|444)|YUY2)|fixluminance|gr[ae]yscale|invert|levels|limiter|mergea?rgb|merge(?:chroma|luma)|rgbadjust|show(?:alpha|blue|green|red)|swapuv|tweak|[uv]toy8?|ytouv/.source,/(?:colorkey|reset)mask|layer|mask(?:hs)?|merge|overlay|subtract/.source,/addborders|(?:bicubic|bilinear|blackman|gauss|lanczos4|lanczos|point|sinc|spline(?:16|36|64))resize|crop(?:bottom)?|flip(?:horizontal|vertical)|(?:horizontal|vertical)?reduceby2|letterbox|skewrows|turn(?:180|left|right)/.source,/blur|fixbrokenchromaupsampling|generalconvolution|(?:spatial|temporal)soften|sharpen/.source,/trim|(?:un)?alignedsplice|(?:assume|assumescaled|change|convert)FPS|(?:delete|duplicate)frame|dissolve|fade(?:in|io|out)[02]?|freezeframe|interleave|loop|reverse|select(?:even|odd|(?:range)?every)/.source,/assume[bt]ff|assume(?:field|frame)based|bob|complementparity|doubleweave|peculiarblend|pulldown|separate(?:columns|fields|rows)|swapfields|weave(?:columns|rows)?/.source,/amplify(?:db)?|assumesamplerate|audiodub(?:ex)?|audiotrim|convertaudioto(?:(?:8|16|24|32)bit|float)|converttomono|delayaudio|ensurevbrmp3sync|get(?:left|right)?channel|kill(?:audio|video)|mergechannels|mixaudio|monotostereo|normalize|resampleaudio|ssrc|supereq|timestretch/.source,/animate|applyrange|conditional(?:filter|reader|select)|frameevaluate|scriptclip|tcp(?:server|source)|writefile(?:end|if|start)?/.source,/imagewriter/.source,/blackness|blankclip|colorbars(?:hd)?|compare|dumpfiltergraph|echo|histogram|info|messageclip|preroll|setgraphanalysis|show(?:framenumber|smpte|time)|showfiveversions|stack(?:horizontal|vertical)|subtitle|tone|version/.source].join("|")].join("|");e.languages.avisynth={comment:[{pattern:/(^|[^\\])\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|\[\*(?:[^\[*]|\[(?!\*)|\*(?!\]))*\*\])*\*\]/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],argument:{pattern:t(/\b(?:<<0>>)\s+("?)\w+\1/.source,[n],"i"),inside:{keyword:/^\w+/}},"argument-label":{pattern:/([,(][\s\\]*)\w+\s*=(?!=)/,lookbehind:!0,inside:{"argument-name":{pattern:/^\w+/,alias:"punctuation"},punctuation:/=$/}},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0,inside:{constant:{pattern:/\b(?:DEFAULT_MT_MODE|(?:MAINSCRIPT|PROGRAM|SCRIPT)DIR|(?:MACHINE|USER)_(?:CLASSIC|PLUS)_PLUGINS)\b/}}}],variable:/\b(?:last)\b/i,boolean:/\b(?:false|no|true|yes)\b/i,keyword:/\b(?:catch|else|for|function|global|if|return|try|while|__END__)\b/i,constant:/\bMT_(?:MULTI_INSTANCE|NICE_FILTER|SERIALIZED|SPECIAL_MT)\b/,"builtin-function":{pattern:t(/\b(?:<<0>>)\b/.source,[r],"i"),alias:"function"},"type-cast":{pattern:t(/\b(?:<<0>>)(?=\s*\()/.source,[n],"i"),alias:"keyword"},function:{pattern:/\b[a-z_]\w*(?=\s*\()|(\.)[a-z_]\w*\b/i,lookbehind:!0},"line-continuation":{pattern:/(^[ \t]*)\\|\\(?=[ \t]*$)/m,lookbehind:!0,alias:"punctuation"},number:/\B\$(?:[\da-f]{6}|[\da-f]{8})\b|(?:(?:\b|\B-)\d+(?:\.\d*)?\b|\B\.\d+\b)/i,operator:/\+\+?|[!=<>]=?|&&|\|\||[?:*/%-]/,punctuation:/[{}\[\]();,.]/},e.languages.avs=e.languages.avisynth}t.exports=r,r.displayName="avisynth",r.aliases=["avs"]},864666,(e,t,n)=>{"use strict";function r(e){e.languages["avro-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0},annotation:{pattern:/@(?:[$\w.-]|`[^\r\n`]+`)+/,greedy:!0,alias:"function"},"function-identifier":{pattern:/`[^\r\n`]+`(?=\s*\()/,greedy:!0,alias:"function"},identifier:{pattern:/`[^\r\n`]+`/,greedy:!0},"class-name":{pattern:/(\b(?:enum|error|protocol|record|throws)\b\s+)[$\w]+/,lookbehind:!0,greedy:!0},keyword:/\b(?:array|boolean|bytes|date|decimal|double|enum|error|false|fixed|float|idl|import|int|local_timestamp_ms|long|map|null|oneway|protocol|record|schema|string|throws|time_ms|timestamp_ms|true|union|uuid|void)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:[{pattern:/(^|[^\w.])-?(?:(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|0x(?:[a-f0-9]+(?:\.[a-f0-9]*)?|\.[a-f0-9]+)(?:p[+-]?\d+)?)[dfl]?(?![\w.])/i,lookbehind:!0},/-?\b(?:Infinity|NaN)\b/],operator:/=/,punctuation:/[()\[\]{}<>.:,;-]/},e.languages.avdl=e.languages["avro-idl"]}t.exports=r,r.displayName="avroIdl",r.aliases=[]},233634,(e,t,n)=>{"use strict";function r(e){!function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var a=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],i=r.variable[1].inside,s=0;s<a.length;s++)i[a[s]]=e.languages.bash[a[s]];e.languages.shell=e.languages.bash}(e)}t.exports=r,r.displayName="bash",r.aliases=["shell"]},703731,(e,t,n)=>{"use strict";function r(e){e.languages.basic={comment:{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:AS|BEEP|BLOAD|BSAVE|CALL(?: ABSOLUTE)?|CASE|CHAIN|CHDIR|CLEAR|CLOSE|CLS|COM|COMMON|CONST|DATA|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DIM|DO|DOUBLE|ELSE|ELSEIF|END|ENVIRON|ERASE|ERROR|EXIT|FIELD|FILES|FOR|FUNCTION|GET|GOSUB|GOTO|IF|INPUT|INTEGER|IOCTL|KEY|KILL|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|MKDIR|NAME|NEXT|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPTION BASE|OUT|POKE|PUT|READ|REDIM|REM|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SELECT CASE|SHARED|SHELL|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|SUB|SWAP|SYSTEM|THEN|TIMER|TO|TROFF|TRON|TYPE|UNLOCK|UNTIL|USING|VIEW PRINT|WAIT|WEND|WHILE|WRITE)(?:\$|\b)/i,function:/\b(?:ABS|ACCESS|ACOS|ANGLE|AREA|ARITHMETIC|ARRAY|ASIN|ASK|AT|ATN|BASE|BEGIN|BREAK|CAUSE|CEIL|CHR|CLIP|COLLATE|COLOR|CON|COS|COSH|COT|CSC|DATE|DATUM|DEBUG|DECIMAL|DEF|DEG|DEGREES|DELETE|DET|DEVICE|DISPLAY|DOT|ELAPSED|EPS|ERASABLE|EXLINE|EXP|EXTERNAL|EXTYPE|FILETYPE|FIXED|FP|GO|GRAPH|HANDLER|IDN|IMAGE|IN|INT|INTERNAL|IP|IS|KEYED|LBOUND|LCASE|LEFT|LEN|LENGTH|LET|LINE|LINES|LOG|LOG10|LOG2|LTRIM|MARGIN|MAT|MAX|MAXNUM|MID|MIN|MISSING|MOD|NATIVE|NUL|NUMERIC|OF|OPTION|ORD|ORGANIZATION|OUTIN|OUTPUT|PI|POINT|POINTER|POINTS|POS|PRINT|PROGRAM|PROMPT|RAD|RADIANS|RANDOMIZE|RECORD|RECSIZE|RECTYPE|RELATIVE|REMAINDER|REPEAT|REST|RETRY|REWRITE|RIGHT|RND|ROUND|RTRIM|SAME|SEC|SELECT|SEQUENTIAL|SET|SETTER|SGN|SIN|SINH|SIZE|SKIP|SQR|STANDARD|STATUS|STR|STREAM|STYLE|TAB|TAN|TANH|TEMPLATE|TEXT|THERE|TIME|TIMEOUT|TRACE|TRANSFORM|TRUNCATE|UBOUND|UCASE|USE|VAL|VARIABLE|VIEWPORT|WHEN|WINDOW|WITH|ZER|ZONEWIDTH)(?:\$|\b)/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:AND|EQV|IMP|NOT|OR|XOR)\b/i,punctuation:/[,;:()]/}}t.exports=r,r.displayName="basic",r.aliases=[]},634662,(e,t,n)=>{"use strict";function r(e){var t,n,r,a;t=/%%?[~:\w]+%?|!\S+!/,n={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},r=/"(?:[\\"]"|[^"])*"(?!")/,a=/(?:\b|-)\d+\b/,e.languages.batch={comment:[/^::.*/m,{pattern:/((?:^|[&(])[ \t]*)rem\b(?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0}],label:{pattern:/^:.*/m,alias:"property"},command:[{pattern:/((?:^|[&(])[ \t]*)for(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* \S+ in \([^)]+\) do/im,lookbehind:!0,inside:{keyword:/\b(?:do|in)\b|^for\b/i,string:r,parameter:n,variable:t,number:a,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*)if(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:not )?(?:cmdextversion \d+|defined \w+|errorlevel \d+|exist \S+|(?:"[^"]*"|(?!")(?:(?!==)\S)+)?(?:==| (?:equ|geq|gtr|leq|lss|neq) )(?:"[^"]*"|[^\s"]\S*))/im,lookbehind:!0,inside:{keyword:/\b(?:cmdextversion|defined|errorlevel|exist|not)\b|^if\b/i,string:r,parameter:n,variable:t,number:a,operator:/\^|==|\b(?:equ|geq|gtr|leq|lss|neq)\b/i}},{pattern:/((?:^|[&()])[ \t]*)else\b/im,lookbehind:!0,inside:{keyword:/^else\b/i}},{pattern:/((?:^|[&(])[ \t]*)set(?: \/[a-z](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0,inside:{keyword:/^set\b/i,string:r,parameter:n,variable:[t,/\w+(?=(?:[*\/%+\-&^|]|<<|>>)?=)/],number:a,operator:/[*\/%+\-&^|]=?|<<=?|>>=?|[!~_=]/,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*@?)\w+\b(?:"(?:[\\"]"|[^"])*"(?!")|[^"^&)\r\n]|\^(?:\r\n|[\s\S]))*/m,lookbehind:!0,inside:{keyword:/^\w+\b/,string:r,parameter:n,label:{pattern:/(^\s*):\S+/m,lookbehind:!0,alias:"property"},variable:t,number:a,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}}t.exports=r,r.displayName="batch",r.aliases=[]},287851,(e,t,n)=>{"use strict";function r(e){e.languages.bbcode={tag:{pattern:/\[\/?[^\s=\]]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))?(?:\s+[^\s=\]]+\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))*\s*\]/,inside:{tag:{pattern:/^\[\/?[^\s=\]]+/,inside:{punctuation:/^\[\/?/}},"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+)/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\]/,"attr-name":/[^\s=\]]+/}}},e.languages.shortcode=e.languages.bbcode}t.exports=r,r.displayName="bbcode",r.aliases=["shortcode"]},996747,(e,t,n)=>{"use strict";function r(e){e.languages.bicep={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],property:[{pattern:/([\r\n][ \t]*)[a-z_]\w*(?=[ \t]*:)/i,lookbehind:!0},{pattern:/([\r\n][ \t]*)'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'(?=[ \t]*:)/,lookbehind:!0,greedy:!0}],string:[{pattern:/'''[^'][\s\S]*?'''/,greedy:!0},{pattern:/(^|[^\\'])'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0}],"interpolated-string":{pattern:/(^|[^\\'])'(?:\\.|\$(?:(?!\{)|\{[^{}\r\n]*\})|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}\r\n]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0},punctuation:/^\$\{|\}$/}},string:/[\s\S]+/}},datatype:{pattern:/(\b(?:output|param)\b[ \t]+\w+[ \t]+)\w+\b/,lookbehind:!0,alias:"class-name"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:existing|for|if|in|module|null|output|param|resource|targetScope|var)\b/,decorator:/@\w+\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/,punctuation:/[{}[\];(),.:]/},e.languages.bicep["interpolated-string"].inside.interpolation.inside.expression.inside=e.languages.bicep}t.exports=r,r.displayName="bicep",r.aliases=[]},537635,(e,t,n)=>{"use strict";function r(e){e.languages.birb=e.languages.extend("clike",{string:{pattern:/r?("|')(?:\\.|(?!\1)[^\\])*\1/,greedy:!0},"class-name":[/\b[A-Z](?:[\d_]*[a-zA-Z]\w*)?\b/,/\b(?:[A-Z]\w*|(?!(?:var|void)\b)[a-z]\w*)(?=\s+\w+\s*[;,=()])/],keyword:/\b(?:assert|break|case|class|const|default|else|enum|final|follows|for|grab|if|nest|new|next|noSeeb|return|static|switch|throw|var|void|while)\b/,operator:/\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?|:/,variable:/\b[a-z_]\w*\b/}),e.languages.insertBefore("birb","function",{metadata:{pattern:/<\w+>/,greedy:!0,alias:"symbol"}})}t.exports=r,r.displayName="birb",r.aliases=[]},802987,(e,t,n)=>{"use strict";var r=e.r(835801);function a(e){e.register(r),e.languages.bison=e.languages.extend("c",{}),e.languages.insertBefore("bison","comment",{bison:{pattern:/^(?:[^%]|%(?!%))*%%[\s\S]*?%%/,inside:{c:{pattern:/%\{[\s\S]*?%\}|\{(?:\{[^}]*\}|[^{}])*\}/,inside:{delimiter:{pattern:/^%?\{|%?\}$/,alias:"punctuation"},"bison-variable":{pattern:/[$@](?:<[^\s>]+>)?[\w$]+/,alias:"variable",inside:{punctuation:/<|>/}},rest:e.languages.c}},comment:e.languages.c.comment,string:e.languages.c.string,property:/\S+(?=:)/,keyword:/%\w+/,number:{pattern:/(^|[^@])\b(?:0x[\da-f]+|\d+)/i,lookbehind:!0},punctuation:/%[%?]|[|:;\[\]<>]/}}})}t.exports=a,a.displayName="bison",a.aliases=[]},935264,(e,t,n)=>{"use strict";function r(e){e.languages.bnf={string:{pattern:/"[^\r\n"]*"|'[^\r\n']*'/},definition:{pattern:/<[^<>\r\n\t]+>(?=\s*::=)/,alias:["rule","keyword"],inside:{punctuation:/^<|>$/}},rule:{pattern:/<[^<>\r\n\t]+>/,inside:{punctuation:/^<|>$/}},operator:/::=|[|()[\]{}*+?]|\.{3}/},e.languages.rbnf=e.languages.bnf}t.exports=r,r.displayName="bnf",r.aliases=["rbnf"]},661006,(e,t,n)=>{"use strict";function r(e){e.languages.brainfuck={pointer:{pattern:/<|>/,alias:"keyword"},increment:{pattern:/\+/,alias:"inserted"},decrement:{pattern:/-/,alias:"deleted"},branching:{pattern:/\[|\]/,alias:"important"},operator:/[.,]/,comment:/\S+/}}t.exports=r,r.displayName="brainfuck",r.aliases=[]},499349,(e,t,n)=>{"use strict";function r(e){e.languages.brightscript={comment:/(?:\brem|').*/i,"directive-statement":{pattern:/(^[\t ]*)#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if).*/im,lookbehind:!0,alias:"property",inside:{"error-message":{pattern:/(^#error).+/,lookbehind:!0},directive:{pattern:/^#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if)/,alias:"keyword"},expression:{pattern:/[\s\S]+/,inside:null}}},property:{pattern:/([\r\n{,][\t ]*)(?:(?!\d)\w+|"(?:[^"\r\n]|"")*"(?!"))(?=[ \t]*:)/,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},"class-name":{pattern:/(\bAs[\t ]+)\w+/i,lookbehind:!0},keyword:/\b(?:As|Dim|Each|Else|Elseif|End|Exit|For|Function|Goto|If|In|Print|Return|Step|Stop|Sub|Then|To|While)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?!\d)\w+(?=[\t ]*\()/,number:/(?:\b\d+(?:\.\d+)?(?:[ed][+-]\d+)?|&h[a-f\d]+)\b[%&!#]?/i,operator:/--|\+\+|>>=?|<<=?|<>|[-+*/\\<>]=?|[:^=?]|\b(?:and|mod|not|or)\b/i,punctuation:/[.,;()[\]{}]/,constant:/\b(?:LINE_NUM)\b/i},e.languages.brightscript["directive-statement"].inside.expression.inside=e.languages.brightscript}t.exports=r,r.displayName="brightscript",r.aliases=[]},316628,(e,t,n)=>{"use strict";function r(e){e.languages.bro={comment:{pattern:/(^|[^\\$])#.*/,lookbehind:!0,inside:{italic:/\b(?:FIXME|TODO|XXX)\b/}},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},boolean:/\b[TF]\b/,function:{pattern:/(\b(?:event|function|hook)[ \t]+)\w+(?:::\w+)?/,lookbehind:!0},builtin:/(?:@(?:load(?:-(?:plugin|sigs))?|unload|prefixes|ifn?def|else|(?:end)?if|DIR|FILENAME))|(?:&?(?:add_func|create_expire|default|delete_func|encrypt|error_handler|expire_func|group|log|mergeable|optional|persistent|priority|raw_output|read_expire|redef|rotate_interval|rotate_size|synchronized|type_column|write_expire))/,constant:{pattern:/(\bconst[ \t]+)\w+/i,lookbehind:!0},keyword:/\b(?:add|addr|alarm|any|bool|break|const|continue|count|delete|double|else|enum|event|export|file|for|function|global|hook|if|in|int|interval|local|module|next|of|opaque|pattern|port|print|record|return|schedule|set|string|subnet|table|time|timeout|using|vector|when)\b/,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&|\|\|?|\?|\*|\/|~|\^|%/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,punctuation:/[{}[\];(),.:]/}}t.exports=r,r.displayName="bro",r.aliases=[]},101443,(e,t,n)=>{"use strict";function r(e){e.languages.bsl={comment:/\/\/.*/,string:[{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},{pattern:/'(?:[^'\r\n\\]|\\.)*'/}],keyword:[{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:пока|для|новый|прервать|попытка|исключение|вызватьисключение|иначе|конецпопытки|неопределено|функция|перем|возврат|конецфункции|если|иначеесли|процедура|конецпроцедуры|тогда|знач|экспорт|конецесли|из|каждого|истина|ложь|по|цикл|конеццикла|выполнить)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:break|do|each|else|elseif|enddo|endfunction|endif|endprocedure|endtry|except|execute|export|false|for|function|if|in|new|null|procedure|raise|return|then|to|true|try|undefined|val|var|while)\b/i}],number:{pattern:/(^(?=\d)|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:\d+(?:\.\d*)?|\.\d+)(?:E[+-]?\d+)?/i,lookbehind:!0},operator:[/[<>+\-*/]=?|[%=]/,{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:и|или|не)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:and|not|or)\b/i}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/,directive:[{pattern:/^([ \t]*)&.*/m,lookbehind:!0,greedy:!0,alias:"important"},{pattern:/^([ \t]*)#.*/gm,lookbehind:!0,greedy:!0,alias:"important"}]},e.languages.oscript=e.languages.bsl}t.exports=r,r.displayName="bsl",r.aliases=[]},638229,(e,t,n)=>{"use strict";function r(e){e.languages.cfscript=e.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,inside:{annotation:{pattern:/(?:^|[^.])@[\w\.]+/,alias:"punctuation"}}},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],keyword:/\b(?:abstract|break|catch|component|continue|default|do|else|extends|final|finally|for|function|if|in|include|package|private|property|public|remote|required|rethrow|return|static|switch|throw|try|var|while|xml)\b(?!\s*=)/,operator:[/\+\+|--|&&|\|\||::|=>|[!=]==|<=?|>=?|[-+*/%&|^!=<>]=?|\?(?:\.|:)?|[?:]/,/\b(?:and|contains|eq|equal|eqv|gt|gte|imp|is|lt|lte|mod|not|or|xor)\b/],scope:{pattern:/\b(?:application|arguments|cgi|client|cookie|local|session|super|this|variables)\b/,alias:"global"},type:{pattern:/\b(?:any|array|binary|boolean|date|guid|numeric|query|string|struct|uuid|void|xml)\b/,alias:"builtin"}}),e.languages.insertBefore("cfscript","keyword",{"function-variable":{pattern:/[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"}}),delete e.languages.cfscript["class-name"],e.languages.cfc=e.languages.cfscript}t.exports=r,r.displayName="cfscript",r.aliases=[]},468240,(e,t,n)=>{"use strict";var r=e.r(572495);function a(e){e.register(r),e.languages.chaiscript=e.languages.extend("clike",{string:{pattern:/(^|[^\\])'(?:[^'\\]|\\[\s\S])*'/,lookbehind:!0,greedy:!0},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},{pattern:/(\b(?:attr|def)\s+)\w+(?=\s*::)/,lookbehind:!0}],keyword:/\b(?:attr|auto|break|case|catch|class|continue|def|default|else|finally|for|fun|global|if|return|switch|this|try|var|while)\b/,number:[e.languages.cpp.number,/\b(?:Infinity|NaN)\b/],operator:/>>=?|<<=?|\|\||&&|:[:=]?|--|\+\+|[=!<>+\-*/%|&^]=?|[?~]|`[^`\r\n]{1,4}`/}),e.languages.insertBefore("chaiscript","operator",{"parameter-type":{pattern:/([,(]\s*)\w+(?=\s+\w)/,lookbehind:!0,alias:"class-name"}}),e.languages.insertBefore("chaiscript","string",{"string-interpolation":{pattern:/(^|[^\\])"(?:[^"$\\]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\}/,lookbehind:!0,inside:{"interpolation-expression":{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:e.languages.chaiscript},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"}}},string:/[\s\S]+/}}})}t.exports=a,a.displayName="chaiscript",a.aliases=[]},877979,(e,t,n)=>{"use strict";function r(e){e.languages.cil={comment:/\/\/.*/,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},directive:{pattern:/(^|\W)\.[a-z]+(?=\s)/,lookbehind:!0,alias:"class-name"},variable:/\[[\w\.]+\]/,keyword:/\b(?:abstract|ansi|assembly|auto|autochar|beforefieldinit|bool|bstr|byvalstr|catch|char|cil|class|currency|date|decimal|default|enum|error|explicit|extends|extern|famandassem|family|famorassem|final(?:ly)?|float32|float64|hidebysig|u?int(?:8|16|32|64)?|iant|idispatch|implements|import|initonly|instance|interface|iunknown|literal|lpstr|lpstruct|lptstr|lpwstr|managed|method|native(?:Type)?|nested|newslot|object(?:ref)?|pinvokeimpl|private|privatescope|public|reqsecobj|rtspecialname|runtime|sealed|sequential|serializable|specialname|static|string|struct|syschar|tbstr|unicode|unmanagedexp|unsigned|value(?:type)?|variant|virtual|void)\b/,function:/\b(?:(?:constrained|no|readonly|tail|unaligned|volatile)\.)?(?:conv\.(?:[iu][1248]?|ovf\.[iu][1248]?(?:\.un)?|r\.un|r4|r8)|ldc\.(?:i4(?:\.\d+|\.[mM]1|\.s)?|i8|r4|r8)|ldelem(?:\.[iu][1248]?|\.r[48]|\.ref|a)?|ldind\.(?:[iu][1248]?|r[48]|ref)|stelem\.?(?:i[1248]?|r[48]|ref)?|stind\.(?:i[1248]?|r[48]|ref)?|end(?:fault|filter|finally)|ldarg(?:\.[0-3s]|a(?:\.s)?)?|ldloc(?:\.\d+|\.s)?|sub(?:\.ovf(?:\.un)?)?|mul(?:\.ovf(?:\.un)?)?|add(?:\.ovf(?:\.un)?)?|stloc(?:\.[0-3s])?|refany(?:type|val)|blt(?:\.un)?(?:\.s)?|ble(?:\.un)?(?:\.s)?|bgt(?:\.un)?(?:\.s)?|bge(?:\.un)?(?:\.s)?|unbox(?:\.any)?|init(?:blk|obj)|call(?:i|virt)?|brfalse(?:\.s)?|bne\.un(?:\.s)?|ldloca(?:\.s)?|brzero(?:\.s)?|brtrue(?:\.s)?|brnull(?:\.s)?|brinst(?:\.s)?|starg(?:\.s)?|leave(?:\.s)?|shr(?:\.un)?|rem(?:\.un)?|div(?:\.un)?|clt(?:\.un)?|alignment|castclass|ldvirtftn|beq(?:\.s)?|ckfinite|ldsflda|ldtoken|localloc|mkrefany|rethrow|cgt\.un|arglist|switch|stsfld|sizeof|newobj|newarr|ldsfld|ldnull|ldflda|isinst|throw|stobj|stfld|ldstr|ldobj|ldlen|ldftn|ldfld|cpobj|cpblk|break|br\.s|xor|shl|ret|pop|not|nop|neg|jmp|dup|cgt|ceq|box|and|or|br)\b/,boolean:/\b(?:false|true)\b/,number:/\b-?(?:0x[0-9a-f]+|\d+)(?:\.[0-9a-f]+)?\b/i,punctuation:/[{}[\];(),:=]|IL_[0-9A-Za-z]+/}}t.exports=r,r.displayName="cil",r.aliases=[]},275277,(e,t,n)=>{"use strict";function r(e){e.languages.clojure={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},char:/\\\w+/,symbol:{pattern:/(^|[\s()\[\]{},])::?[\w*+!?'<>=/.-]+/,lookbehind:!0},keyword:{pattern:/(\()(?:-|->|->>|\.|\.\.|\*|\/|\+|<|<=|=|==|>|>=|accessor|agent|agent-errors|aget|alength|all-ns|alter|and|append-child|apply|array-map|aset|aset-boolean|aset-byte|aset-char|aset-double|aset-float|aset-int|aset-long|aset-short|assert|assoc|await|await-for|bean|binding|bit-and|bit-not|bit-or|bit-shift-left|bit-shift-right|bit-xor|boolean|branch\?|butlast|byte|cast|char|children|class|clear-agent-errors|comment|commute|comp|comparator|complement|concat|cond|conj|cons|constantly|construct-proxy|contains\?|count|create-ns|create-struct|cycle|dec|declare|def|def-|definline|definterface|defmacro|defmethod|defmulti|defn|defn-|defonce|defproject|defprotocol|defrecord|defstruct|deftype|deref|difference|disj|dissoc|distinct|do|doall|doc|dorun|doseq|dosync|dotimes|doto|double|down|drop|drop-while|edit|end\?|ensure|eval|every\?|false\?|ffirst|file-seq|filter|find|find-doc|find-ns|find-var|first|float|flush|fn|fnseq|for|frest|gensym|get|get-proxy-class|hash-map|hash-set|identical\?|identity|if|if-let|if-not|import|in-ns|inc|index|insert-child|insert-left|insert-right|inspect-table|inspect-tree|instance\?|int|interleave|intersection|into|into-array|iterate|join|key|keys|keyword|keyword\?|last|lazy-cat|lazy-cons|left|lefts|let|line-seq|list|list\*|load|load-file|locking|long|loop|macroexpand|macroexpand-1|make-array|make-node|map|map-invert|map\?|mapcat|max|max-key|memfn|merge|merge-with|meta|min|min-key|monitor-enter|name|namespace|neg\?|new|newline|next|nil\?|node|not|not-any\?|not-every\?|not=|ns|ns-imports|ns-interns|ns-map|ns-name|ns-publics|ns-refers|ns-resolve|ns-unmap|nth|nthrest|or|parse|partial|path|peek|pop|pos\?|pr|pr-str|print|print-str|println|println-str|prn|prn-str|project|proxy|proxy-mappings|quot|quote|rand|rand-int|range|re-find|re-groups|re-matcher|re-matches|re-pattern|re-seq|read|read-line|recur|reduce|ref|ref-set|refer|rem|remove|remove-method|remove-ns|rename|rename-keys|repeat|replace|replicate|resolve|rest|resultset-seq|reverse|rfirst|right|rights|root|rrest|rseq|second|select|select-keys|send|send-off|seq|seq-zip|seq\?|set|set!|short|slurp|some|sort|sort-by|sorted-map|sorted-map-by|sorted-set|special-symbol\?|split-at|split-with|str|string\?|struct|struct-map|subs|subvec|symbol|symbol\?|sync|take|take-nth|take-while|test|throw|time|to-array|to-array-2d|tree-seq|true\?|try|union|up|update-proxy|val|vals|var|var-get|var-set|var\?|vector|vector-zip|vector\?|when|when-first|when-let|when-not|with-local-vars|with-meta|with-open|with-out-str|xml-seq|xml-zip|zero\?|zipmap|zipper)(?=[\s)]|$)/,lookbehind:!0},boolean:/\b(?:false|nil|true)\b/,number:{pattern:/(^|[^\w$@])(?:\d+(?:[/.]\d+)?(?:e[+-]?\d+)?|0x[a-f0-9]+|[1-9]\d?r[a-z0-9]+)[lmn]?(?![\w$@])/i,lookbehind:!0},function:{pattern:/((?:^|[^'])\()[\w*+!?'<>=/.-]+(?=[\s)]|$)/,lookbehind:!0},operator:/[#@^`~]/,punctuation:/[{}\[\](),]/}}t.exports=r,r.displayName="clojure",r.aliases=[]},111431,(e,t,n)=>{"use strict";function r(e){e.languages.cmake={comment:/#.*/,string:{pattern:/"(?:[^\\"]|\\.)*"/,greedy:!0,inside:{interpolation:{pattern:/\$\{(?:[^{}$]|\$\{[^{}$]*\})*\}/,inside:{punctuation:/\$\{|\}/,variable:/\w+/}}}},variable:/\b(?:CMAKE_\w+|\w+_(?:(?:BINARY|SOURCE)_DIR|DESCRIPTION|HOMEPAGE_URL|ROOT|VERSION(?:_MAJOR|_MINOR|_PATCH|_TWEAK)?)|(?:ANDROID|APPLE|BORLAND|BUILD_SHARED_LIBS|CACHE|CPACK_(?:ABSOLUTE_DESTINATION_FILES|COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY|ERROR_ON_ABSOLUTE_INSTALL_DESTINATION|INCLUDE_TOPLEVEL_DIRECTORY|INSTALL_DEFAULT_DIRECTORY_PERMISSIONS|INSTALL_SCRIPT|PACKAGING_INSTALL_PREFIX|SET_DESTDIR|WARN_ON_ABSOLUTE_INSTALL_DESTINATION)|CTEST_(?:BINARY_DIRECTORY|BUILD_COMMAND|BUILD_NAME|BZR_COMMAND|BZR_UPDATE_OPTIONS|CHANGE_ID|CHECKOUT_COMMAND|CONFIGURATION_TYPE|CONFIGURE_COMMAND|COVERAGE_COMMAND|COVERAGE_EXTRA_FLAGS|CURL_OPTIONS|CUSTOM_(?:COVERAGE_EXCLUDE|ERROR_EXCEPTION|ERROR_MATCH|ERROR_POST_CONTEXT|ERROR_PRE_CONTEXT|MAXIMUM_FAILED_TEST_OUTPUT_SIZE|MAXIMUM_NUMBER_OF_(?:ERRORS|WARNINGS)|MAXIMUM_PASSED_TEST_OUTPUT_SIZE|MEMCHECK_IGNORE|POST_MEMCHECK|POST_TEST|PRE_MEMCHECK|PRE_TEST|TESTS_IGNORE|WARNING_EXCEPTION|WARNING_MATCH)|CVS_CHECKOUT|CVS_COMMAND|CVS_UPDATE_OPTIONS|DROP_LOCATION|DROP_METHOD|DROP_SITE|DROP_SITE_CDASH|DROP_SITE_PASSWORD|DROP_SITE_USER|EXTRA_COVERAGE_GLOB|GIT_COMMAND|GIT_INIT_SUBMODULES|GIT_UPDATE_CUSTOM|GIT_UPDATE_OPTIONS|HG_COMMAND|HG_UPDATE_OPTIONS|LABELS_FOR_SUBPROJECTS|MEMORYCHECK_(?:COMMAND|COMMAND_OPTIONS|SANITIZER_OPTIONS|SUPPRESSIONS_FILE|TYPE)|NIGHTLY_START_TIME|P4_CLIENT|P4_COMMAND|P4_OPTIONS|P4_UPDATE_OPTIONS|RUN_CURRENT_SCRIPT|SCP_COMMAND|SITE|SOURCE_DIRECTORY|SUBMIT_URL|SVN_COMMAND|SVN_OPTIONS|SVN_UPDATE_OPTIONS|TEST_LOAD|TEST_TIMEOUT|TRIGGER_SITE|UPDATE_COMMAND|UPDATE_OPTIONS|UPDATE_VERSION_ONLY|USE_LAUNCHERS)|CYGWIN|ENV|EXECUTABLE_OUTPUT_PATH|GHS-MULTI|IOS|LIBRARY_OUTPUT_PATH|MINGW|MSVC(?:10|11|12|14|60|70|71|80|90|_IDE|_TOOLSET_VERSION|_VERSION)?|MSYS|PROJECT_(?:BINARY_DIR|DESCRIPTION|HOMEPAGE_URL|NAME|SOURCE_DIR|VERSION|VERSION_(?:MAJOR|MINOR|PATCH|TWEAK))|UNIX|WIN32|WINCE|WINDOWS_PHONE|WINDOWS_STORE|XCODE|XCODE_VERSION))\b/,property:/\b(?:cxx_\w+|(?:ARCHIVE_OUTPUT_(?:DIRECTORY|NAME)|COMPILE_DEFINITIONS|COMPILE_PDB_NAME|COMPILE_PDB_OUTPUT_DIRECTORY|EXCLUDE_FROM_DEFAULT_BUILD|IMPORTED_(?:IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_LANGUAGES|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|NO_SONAME|OBJECTS|SONAME)|INTERPROCEDURAL_OPTIMIZATION|LIBRARY_OUTPUT_DIRECTORY|LIBRARY_OUTPUT_NAME|LINK_FLAGS|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|MAP_IMPORTED_CONFIG|OSX_ARCHITECTURES|OUTPUT_NAME|PDB_NAME|PDB_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_NAME|STATIC_LIBRARY_FLAGS|VS_CSHARP|VS_DOTNET_REFERENCEPROP|VS_DOTNET_REFERENCE|VS_GLOBAL_SECTION_POST|VS_GLOBAL_SECTION_PRE|VS_GLOBAL|XCODE_ATTRIBUTE)_\w+|\w+_(?:CLANG_TIDY|COMPILER_LAUNCHER|CPPCHECK|CPPLINT|INCLUDE_WHAT_YOU_USE|OUTPUT_NAME|POSTFIX|VISIBILITY_PRESET)|ABSTRACT|ADDITIONAL_MAKE_CLEAN_FILES|ADVANCED|ALIASED_TARGET|ALLOW_DUPLICATE_CUSTOM_TARGETS|ANDROID_(?:ANT_ADDITIONAL_OPTIONS|API|API_MIN|ARCH|ASSETS_DIRECTORIES|GUI|JAR_DEPENDENCIES|NATIVE_LIB_DEPENDENCIES|NATIVE_LIB_DIRECTORIES|PROCESS_MAX|PROGUARD|PROGUARD_CONFIG_PATH|SECURE_PROPS_PATH|SKIP_ANT_STEP|STL_TYPE)|ARCHIVE_OUTPUT_DIRECTORY|ATTACHED_FILES|ATTACHED_FILES_ON_FAIL|AUTOGEN_(?:BUILD_DIR|ORIGIN_DEPENDS|PARALLEL|SOURCE_GROUP|TARGETS_FOLDER|TARGET_DEPENDS)|AUTOMOC|AUTOMOC_(?:COMPILER_PREDEFINES|DEPEND_FILTERS|EXECUTABLE|MACRO_NAMES|MOC_OPTIONS|SOURCE_GROUP|TARGETS_FOLDER)|AUTORCC|AUTORCC_EXECUTABLE|AUTORCC_OPTIONS|AUTORCC_SOURCE_GROUP|AUTOUIC|AUTOUIC_EXECUTABLE|AUTOUIC_OPTIONS|AUTOUIC_SEARCH_PATHS|BINARY_DIR|BUILDSYSTEM_TARGETS|BUILD_RPATH|BUILD_RPATH_USE_ORIGIN|BUILD_WITH_INSTALL_NAME_DIR|BUILD_WITH_INSTALL_RPATH|BUNDLE|BUNDLE_EXTENSION|CACHE_VARIABLES|CLEAN_NO_CUSTOM|COMMON_LANGUAGE_RUNTIME|COMPATIBLE_INTERFACE_(?:BOOL|NUMBER_MAX|NUMBER_MIN|STRING)|COMPILE_(?:DEFINITIONS|FEATURES|FLAGS|OPTIONS|PDB_NAME|PDB_OUTPUT_DIRECTORY)|COST|CPACK_DESKTOP_SHORTCUTS|CPACK_NEVER_OVERWRITE|CPACK_PERMANENT|CPACK_STARTUP_SHORTCUTS|CPACK_START_MENU_SHORTCUTS|CPACK_WIX_ACL|CROSSCOMPILING_EMULATOR|CUDA_EXTENSIONS|CUDA_PTX_COMPILATION|CUDA_RESOLVE_DEVICE_SYMBOLS|CUDA_SEPARABLE_COMPILATION|CUDA_STANDARD|CUDA_STANDARD_REQUIRED|CXX_EXTENSIONS|CXX_STANDARD|CXX_STANDARD_REQUIRED|C_EXTENSIONS|C_STANDARD|C_STANDARD_REQUIRED|DEBUG_CONFIGURATIONS|DEFINE_SYMBOL|DEFINITIONS|DEPENDS|DEPLOYMENT_ADDITIONAL_FILES|DEPLOYMENT_REMOTE_DIRECTORY|DISABLED|DISABLED_FEATURES|ECLIPSE_EXTRA_CPROJECT_CONTENTS|ECLIPSE_EXTRA_NATURES|ENABLED_FEATURES|ENABLED_LANGUAGES|ENABLE_EXPORTS|ENVIRONMENT|EXCLUDE_FROM_ALL|EXCLUDE_FROM_DEFAULT_BUILD|EXPORT_NAME|EXPORT_PROPERTIES|EXTERNAL_OBJECT|EchoString|FAIL_REGULAR_EXPRESSION|FIND_LIBRARY_USE_LIB32_PATHS|FIND_LIBRARY_USE_LIB64_PATHS|FIND_LIBRARY_USE_LIBX32_PATHS|FIND_LIBRARY_USE_OPENBSD_VERSIONING|FIXTURES_CLEANUP|FIXTURES_REQUIRED|FIXTURES_SETUP|FOLDER|FRAMEWORK|Fortran_FORMAT|Fortran_MODULE_DIRECTORY|GENERATED|GENERATOR_FILE_NAME|GENERATOR_IS_MULTI_CONFIG|GHS_INTEGRITY_APP|GHS_NO_SOURCE_GROUP_FILE|GLOBAL_DEPENDS_DEBUG_MODE|GLOBAL_DEPENDS_NO_CYCLES|GNUtoMS|HAS_CXX|HEADER_FILE_ONLY|HELPSTRING|IMPLICIT_DEPENDS_INCLUDE_TRANSFORM|IMPORTED|IMPORTED_(?:COMMON_LANGUAGE_RUNTIME|CONFIGURATIONS|GLOBAL|IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_(?:LANGUAGES|LIBRARIES|MULTIPLICITY)|LOCATION|NO_SONAME|OBJECTS|SONAME)|IMPORT_PREFIX|IMPORT_SUFFIX|INCLUDE_DIRECTORIES|INCLUDE_REGULAR_EXPRESSION|INSTALL_NAME_DIR|INSTALL_RPATH|INSTALL_RPATH_USE_LINK_PATH|INTERFACE_(?:AUTOUIC_OPTIONS|COMPILE_DEFINITIONS|COMPILE_FEATURES|COMPILE_OPTIONS|INCLUDE_DIRECTORIES|LINK_DEPENDS|LINK_DIRECTORIES|LINK_LIBRARIES|LINK_OPTIONS|POSITION_INDEPENDENT_CODE|SOURCES|SYSTEM_INCLUDE_DIRECTORIES)|INTERPROCEDURAL_OPTIMIZATION|IN_TRY_COMPILE|IOS_INSTALL_COMBINED|JOB_POOLS|JOB_POOL_COMPILE|JOB_POOL_LINK|KEEP_EXTENSION|LABELS|LANGUAGE|LIBRARY_OUTPUT_DIRECTORY|LINKER_LANGUAGE|LINK_(?:DEPENDS|DEPENDS_NO_SHARED|DIRECTORIES|FLAGS|INTERFACE_LIBRARIES|INTERFACE_MULTIPLICITY|LIBRARIES|OPTIONS|SEARCH_END_STATIC|SEARCH_START_STATIC|WHAT_YOU_USE)|LISTFILE_STACK|LOCATION|MACOSX_BUNDLE|MACOSX_BUNDLE_INFO_PLIST|MACOSX_FRAMEWORK_INFO_PLIST|MACOSX_PACKAGE_LOCATION|MACOSX_RPATH|MACROS|MANUALLY_ADDED_DEPENDENCIES|MEASUREMENT|MODIFIED|NAME|NO_SONAME|NO_SYSTEM_FROM_IMPORTED|OBJECT_DEPENDS|OBJECT_OUTPUTS|OSX_ARCHITECTURES|OUTPUT_NAME|PACKAGES_FOUND|PACKAGES_NOT_FOUND|PARENT_DIRECTORY|PASS_REGULAR_EXPRESSION|PDB_NAME|PDB_OUTPUT_DIRECTORY|POSITION_INDEPENDENT_CODE|POST_INSTALL_SCRIPT|PREDEFINED_TARGETS_FOLDER|PREFIX|PRE_INSTALL_SCRIPT|PRIVATE_HEADER|PROCESSORS|PROCESSOR_AFFINITY|PROJECT_LABEL|PUBLIC_HEADER|REPORT_UNDEFINED_PROPERTIES|REQUIRED_FILES|RESOURCE|RESOURCE_LOCK|RULE_LAUNCH_COMPILE|RULE_LAUNCH_CUSTOM|RULE_LAUNCH_LINK|RULE_MESSAGES|RUNTIME_OUTPUT_DIRECTORY|RUN_SERIAL|SKIP_AUTOGEN|SKIP_AUTOMOC|SKIP_AUTORCC|SKIP_AUTOUIC|SKIP_BUILD_RPATH|SKIP_RETURN_CODE|SOURCES|SOURCE_DIR|SOVERSION|STATIC_LIBRARY_FLAGS|STATIC_LIBRARY_OPTIONS|STRINGS|SUBDIRECTORIES|SUFFIX|SYMBOLIC|TARGET_ARCHIVES_MAY_BE_SHARED_LIBS|TARGET_MESSAGES|TARGET_SUPPORTS_SHARED_LIBS|TESTS|TEST_INCLUDE_FILE|TEST_INCLUDE_FILES|TIMEOUT|TIMEOUT_AFTER_MATCH|TYPE|USE_FOLDERS|VALUE|VARIABLES|VERSION|VISIBILITY_INLINES_HIDDEN|VS_(?:CONFIGURATION_TYPE|COPY_TO_OUT_DIR|DEBUGGER_(?:COMMAND|COMMAND_ARGUMENTS|ENVIRONMENT|WORKING_DIRECTORY)|DEPLOYMENT_CONTENT|DEPLOYMENT_LOCATION|DOTNET_REFERENCES|DOTNET_REFERENCES_COPY_LOCAL|GLOBAL_KEYWORD|GLOBAL_PROJECT_TYPES|GLOBAL_ROOTNAMESPACE|INCLUDE_IN_VSIX|IOT_STARTUP_TASK|KEYWORD|RESOURCE_GENERATOR|SCC_AUXPATH|SCC_LOCALPATH|SCC_PROJECTNAME|SCC_PROVIDER|SDK_REFERENCES|SHADER_(?:DISABLE_OPTIMIZATIONS|ENABLE_DEBUG|ENTRYPOINT|FLAGS|MODEL|OBJECT_FILE_NAME|OUTPUT_HEADER_FILE|TYPE|VARIABLE_NAME)|STARTUP_PROJECT|TOOL_OVERRIDE|USER_PROPS|WINRT_COMPONENT|WINRT_EXTENSIONS|WINRT_REFERENCES|XAML_TYPE)|WILL_FAIL|WIN32_EXECUTABLE|WINDOWS_EXPORT_ALL_SYMBOLS|WORKING_DIRECTORY|WRAP_EXCLUDE|XCODE_(?:EMIT_EFFECTIVE_PLATFORM_NAME|EXPLICIT_FILE_TYPE|FILE_ATTRIBUTES|LAST_KNOWN_FILE_TYPE|PRODUCT_TYPE|SCHEME_(?:ADDRESS_SANITIZER|ADDRESS_SANITIZER_USE_AFTER_RETURN|ARGUMENTS|DISABLE_MAIN_THREAD_CHECKER|DYNAMIC_LIBRARY_LOADS|DYNAMIC_LINKER_API_USAGE|ENVIRONMENT|EXECUTABLE|GUARD_MALLOC|MAIN_THREAD_CHECKER_STOP|MALLOC_GUARD_EDGES|MALLOC_SCRIBBLE|MALLOC_STACK|THREAD_SANITIZER(?:_STOP)?|UNDEFINED_BEHAVIOUR_SANITIZER(?:_STOP)?|ZOMBIE_OBJECTS))|XCTEST)\b/,keyword:/\b(?:add_compile_definitions|add_compile_options|add_custom_command|add_custom_target|add_definitions|add_dependencies|add_executable|add_library|add_link_options|add_subdirectory|add_test|aux_source_directory|break|build_command|build_name|cmake_host_system_information|cmake_minimum_required|cmake_parse_arguments|cmake_policy|configure_file|continue|create_test_sourcelist|ctest_build|ctest_configure|ctest_coverage|ctest_empty_binary_directory|ctest_memcheck|ctest_read_custom_files|ctest_run_script|ctest_sleep|ctest_start|ctest_submit|ctest_test|ctest_update|ctest_upload|define_property|else|elseif|enable_language|enable_testing|endforeach|endfunction|endif|endmacro|endwhile|exec_program|execute_process|export|export_library_dependencies|file|find_file|find_library|find_package|find_path|find_program|fltk_wrap_ui|foreach|function|get_cmake_property|get_directory_property|get_filename_component|get_property|get_source_file_property|get_target_property|get_test_property|if|include|include_directories|include_external_msproject|include_guard|include_regular_expression|install|install_files|install_programs|install_targets|link_directories|link_libraries|list|load_cache|load_command|macro|make_directory|mark_as_advanced|math|message|option|output_required_files|project|qt_wrap_cpp|qt_wrap_ui|remove|remove_definitions|return|separate_arguments|set|set_directory_properties|set_property|set_source_files_properties|set_target_properties|set_tests_properties|site_name|source_group|string|subdir_depends|subdirs|target_compile_definitions|target_compile_features|target_compile_options|target_include_directories|target_link_directories|target_link_libraries|target_link_options|target_sources|try_compile|try_run|unset|use_mangled_mesa|utility_source|variable_requires|variable_watch|while|write_file)(?=\s*\()\b/,boolean:/\b(?:FALSE|OFF|ON|TRUE)\b/,namespace:/\b(?:INTERFACE|PRIVATE|PROPERTIES|PUBLIC|SHARED|STATIC|TARGET_OBJECTS)\b/,operator:/\b(?:AND|DEFINED|EQUAL|GREATER|LESS|MATCHES|NOT|OR|STREQUAL|STRGREATER|STRLESS|VERSION_EQUAL|VERSION_GREATER|VERSION_LESS)\b/,inserted:{pattern:/\b\w+::\w+\b/,alias:"class-name"},number:/\b\d+(?:\.\d+)*\b/,function:/\b[a-z_]\w*(?=\s*\()\b/i,punctuation:/[()>}]|\$[<{]/}}t.exports=r,r.displayName="cmake",r.aliases=[]},154862,(e,t,n)=>{"use strict";function r(e){e.languages.cobol={comment:{pattern:/\*>.*|(^[ \t]*)\*.*/m,lookbehind:!0,greedy:!0},string:{pattern:/[xzgn]?(?:"(?:[^\r\n"]|"")*"(?!")|'(?:[^\r\n']|'')*'(?!'))/i,greedy:!0},level:{pattern:/(^[ \t]*)\d+\b/m,lookbehind:!0,greedy:!0,alias:"number"},"class-name":{pattern:/(\bpic(?:ture)?\s+)(?:(?:[-\w$/,:*+<>]|\.(?!\s|$))(?:\(\d+\))?)+/i,lookbehind:!0,inside:{number:{pattern:/(\()\d+/,lookbehind:!0},punctuation:/[()]/}},keyword:{pattern:/(^|[^\w-])(?:ABORT|ACCEPT|ACCESS|ADD|ADDRESS|ADVANCING|AFTER|ALIGNED|ALL|ALPHABET|ALPHABETIC|ALPHABETIC-LOWER|ALPHABETIC-UPPER|ALPHANUMERIC|ALPHANUMERIC-EDITED|ALSO|ALTER|ALTERNATE|ANY|ARE|AREA|AREAS|AS|ASCENDING|ASCII|ASSIGN|ASSOCIATED-DATA|ASSOCIATED-DATA-LENGTH|AT|ATTRIBUTE|AUTHOR|AUTO|AUTO-SKIP|BACKGROUND-COLOR|BACKGROUND-COLOUR|BASIS|BEEP|BEFORE|BEGINNING|BELL|BINARY|BIT|BLANK|BLINK|BLOCK|BOTTOM|BOUNDS|BY|BYFUNCTION|BYTITLE|CALL|CANCEL|CAPABLE|CCSVERSION|CD|CF|CH|CHAINING|CHANGED|CHANNEL|CHARACTER|CHARACTERS|CLASS|CLASS-ID|CLOCK-UNITS|CLOSE|CLOSE-DISPOSITION|COBOL|CODE|CODE-SET|COL|COLLATING|COLUMN|COM-REG|COMMA|COMMITMENT|COMMON|COMMUNICATION|COMP|COMP-1|COMP-2|COMP-3|COMP-4|COMP-5|COMPUTATIONAL|COMPUTATIONAL-1|COMPUTATIONAL-2|COMPUTATIONAL-3|COMPUTATIONAL-4|COMPUTATIONAL-5|COMPUTE|CONFIGURATION|CONTAINS|CONTENT|CONTINUE|CONTROL|CONTROL-POINT|CONTROLS|CONVENTION|CONVERTING|COPY|CORR|CORRESPONDING|COUNT|CRUNCH|CURRENCY|CURSOR|DATA|DATA-BASE|DATE|DATE-COMPILED|DATE-WRITTEN|DAY|DAY-OF-WEEK|DBCS|DE|DEBUG-CONTENTS|DEBUG-ITEM|DEBUG-LINE|DEBUG-NAME|DEBUG-SUB-1|DEBUG-SUB-2|DEBUG-SUB-3|DEBUGGING|DECIMAL-POINT|DECLARATIVES|DEFAULT|DEFAULT-DISPLAY|DEFINITION|DELETE|DELIMITED|DELIMITER|DEPENDING|DESCENDING|DESTINATION|DETAIL|DFHRESP|DFHVALUE|DISABLE|DISK|DISPLAY|DISPLAY-1|DIVIDE|DIVISION|DONTCARE|DOUBLE|DOWN|DUPLICATES|DYNAMIC|EBCDIC|EGCS|EGI|ELSE|EMI|EMPTY-CHECK|ENABLE|END|END-ACCEPT|END-ADD|END-CALL|END-COMPUTE|END-DELETE|END-DIVIDE|END-EVALUATE|END-IF|END-MULTIPLY|END-OF-PAGE|END-PERFORM|END-READ|END-RECEIVE|END-RETURN|END-REWRITE|END-SEARCH|END-START|END-STRING|END-SUBTRACT|END-UNSTRING|END-WRITE|ENDING|ENTER|ENTRY|ENTRY-PROCEDURE|ENVIRONMENT|EOL|EOP|EOS|ERASE|ERROR|ESCAPE|ESI|EVALUATE|EVENT|EVERY|EXCEPTION|EXCLUSIVE|EXHIBIT|EXIT|EXPORT|EXTEND|EXTENDED|EXTERNAL|FD|FILE|FILE-CONTROL|FILLER|FINAL|FIRST|FOOTING|FOR|FOREGROUND-COLOR|FOREGROUND-COLOUR|FROM|FULL|FUNCTION|FUNCTION-POINTER|FUNCTIONNAME|GENERATE|GIVING|GLOBAL|GO|GOBACK|GRID|GROUP|HEADING|HIGH-VALUE|HIGH-VALUES|HIGHLIGHT|I-O|I-O-CONTROL|ID|IDENTIFICATION|IF|IMPLICIT|IMPORT|IN|INDEX|INDEXED|INDICATE|INITIAL|INITIALIZE|INITIATE|INPUT|INPUT-OUTPUT|INSPECT|INSTALLATION|INTEGER|INTO|INVALID|INVOKE|IS|JUST|JUSTIFIED|KANJI|KEPT|KEY|KEYBOARD|LABEL|LANGUAGE|LAST|LB|LD|LEADING|LEFT|LEFTLINE|LENGTH|LENGTH-CHECK|LIBACCESS|LIBPARAMETER|LIBRARY|LIMIT|LIMITS|LINAGE|LINAGE-COUNTER|LINE|LINE-COUNTER|LINES|LINKAGE|LIST|LOCAL|LOCAL-STORAGE|LOCK|LONG-DATE|LONG-TIME|LOW-VALUE|LOW-VALUES|LOWER|LOWLIGHT|MEMORY|MERGE|MESSAGE|MMDDYYYY|MODE|MODULES|MORE-LABELS|MOVE|MULTIPLE|MULTIPLY|NAMED|NATIONAL|NATIONAL-EDITED|NATIVE|NEGATIVE|NETWORK|NEXT|NO|NO-ECHO|NULL|NULLS|NUMBER|NUMERIC|NUMERIC-DATE|NUMERIC-EDITED|NUMERIC-TIME|OBJECT-COMPUTER|OCCURS|ODT|OF|OFF|OMITTED|ON|OPEN|OPTIONAL|ORDER|ORDERLY|ORGANIZATION|OTHER|OUTPUT|OVERFLOW|OVERLINE|OWN|PACKED-DECIMAL|PADDING|PAGE|PAGE-COUNTER|PASSWORD|PERFORM|PF|PH|PIC|PICTURE|PLUS|POINTER|PORT|POSITION|POSITIVE|PRINTER|PRINTING|PRIVATE|PROCEDURE|PROCEDURE-POINTER|PROCEDURES|PROCEED|PROCESS|PROGRAM|PROGRAM-ID|PROGRAM-LIBRARY|PROMPT|PURGE|QUEUE|QUOTE|QUOTES|RANDOM|RD|READ|READER|REAL|RECEIVE|RECEIVED|RECORD|RECORDING|RECORDS|RECURSIVE|REDEFINES|REEL|REF|REFERENCE|REFERENCES|RELATIVE|RELEASE|REMAINDER|REMARKS|REMOTE|REMOVAL|REMOVE|RENAMES|REPLACE|REPLACING|REPORT|REPORTING|REPORTS|REQUIRED|RERUN|RESERVE|RESET|RETURN|RETURN-CODE|RETURNING|REVERSE-VIDEO|REVERSED|REWIND|REWRITE|RF|RH|RIGHT|ROUNDED|RUN|SAME|SAVE|SCREEN|SD|SEARCH|SECTION|SECURE|SECURITY|SEGMENT|SEGMENT-LIMIT|SELECT|SEND|SENTENCE|SEPARATE|SEQUENCE|SEQUENTIAL|SET|SHARED|SHAREDBYALL|SHAREDBYRUNUNIT|SHARING|SHIFT-IN|SHIFT-OUT|SHORT-DATE|SIGN|SIZE|SORT|SORT-CONTROL|SORT-CORE-SIZE|SORT-FILE-SIZE|SORT-MERGE|SORT-MESSAGE|SORT-MODE-SIZE|SORT-RETURN|SOURCE|SOURCE-COMPUTER|SPACE|SPACES|SPECIAL-NAMES|STANDARD|STANDARD-1|STANDARD-2|START|STATUS|STOP|STRING|SUB-QUEUE-1|SUB-QUEUE-2|SUB-QUEUE-3|SUBTRACT|SUM|SUPPRESS|SYMBOL|SYMBOLIC|SYNC|SYNCHRONIZED|TABLE|TALLY|TALLYING|TAPE|TASK|TERMINAL|TERMINATE|TEST|TEXT|THEN|THREAD|THREAD-LOCAL|THROUGH|THRU|TIME|TIMER|TIMES|TITLE|TO|TODAYS-DATE|TODAYS-NAME|TOP|TRAILING|TRUNCATED|TYPE|TYPEDEF|UNDERLINE|UNIT|UNSTRING|UNTIL|UP|UPON|USAGE|USE|USING|VALUE|VALUES|VARYING|VIRTUAL|WAIT|WHEN|WHEN-COMPILED|WITH|WORDS|WORKING-STORAGE|WRITE|YEAR|YYYYDDD|YYYYMMDD|ZERO-FILL|ZEROES|ZEROS)(?![\w-])/i,lookbehind:!0},boolean:{pattern:/(^|[^\w-])(?:false|true)(?![\w-])/i,lookbehind:!0},number:{pattern:/(^|[^\w-])(?:[+-]?(?:(?:\d+(?:[.,]\d+)?|[.,]\d+)(?:e[+-]?\d+)?|zero))(?![\w-])/i,lookbehind:!0},operator:[/<>|[<>]=?|[=+*/&]/,{pattern:/(^|[^\w-])(?:-|and|equal|greater|less|not|or|than)(?![\w-])/i,lookbehind:!0}],punctuation:/[.:,()]/}}t.exports=r,r.displayName="cobol",r.aliases=[]},412002,(e,t,n)=>{"use strict";function r(e){var t,n;t=/#(?!\{).+/,n={pattern:/#\{[^}]+\}/,alias:"variable"},e.languages.coffeescript=e.languages.extend("javascript",{comment:t,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:n}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),e.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:t,interpolation:n}}}),e.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:e.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:n}}]}),e.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete e.languages.coffeescript["template-string"],e.languages.coffee=e.languages.coffeescript}t.exports=r,r.displayName="coffeescript",r.aliases=["coffee"]},616770,(e,t,n)=>{"use strict";function r(e){e.languages.concurnas={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*)/,lookbehind:!0,greedy:!0},langext:{pattern:/\b\w+\s*\|\|[\s\S]+?\|\|/,greedy:!0,inside:{"class-name":/^\w+/,string:{pattern:/(^\s*\|\|)[\s\S]+(?=\|\|$)/,lookbehind:!0},punctuation:/\|\|/}},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/,lookbehind:!0},keyword:/\b(?:abstract|actor|also|annotation|assert|async|await|bool|boolean|break|byte|case|catch|changed|char|class|closed|constant|continue|def|default|del|double|elif|else|enum|every|extends|false|finally|float|for|from|global|gpudef|gpukernel|if|import|in|init|inject|int|lambda|local|long|loop|match|new|nodefault|null|of|onchange|open|out|override|package|parfor|parforsync|post|pre|private|protected|provide|provider|public|return|shared|short|single|size_t|sizeof|super|sync|this|throw|trait|trans|transient|true|try|typedef|unchecked|using|val|var|void|while|with)\b/,boolean:/\b(?:false|true)\b/,number:/\b0b[01][01_]*L?\b|\b0x(?:[\da-f_]*\.)?[\da-f_p+-]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfls]?/i,punctuation:/[{}[\];(),.:]/,operator:/<==|>==|=>|->|<-|<>|&==|&<>|\?:?|\.\?|\+\+|--|[-+*/=<>]=?|[!^~]|\b(?:and|as|band|bor|bxor|comp|is|isnot|mod|or)\b=?/,annotation:{pattern:/@(?:\w+:)?(?:\w+|\[[^\]]+\])?/,alias:"builtin"}},e.languages.insertBefore("concurnas","langext",{"regex-literal":{pattern:/\br("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:e.languages.concurnas},regex:/[\s\S]+/}},"string-literal":{pattern:/(?:\B|\bs)("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:e.languages.concurnas},string:/[\s\S]+/}}}),e.languages.conc=e.languages.concurnas}t.exports=r,r.displayName="concurnas",r.aliases=["conc"]},489927,(e,t,n)=>{"use strict";function r(e){for(var t=/\(\*(?:[^(*]|\((?!\*)|\*(?!\))|<self>)*\*\)/.source,n=0;n<2;n++)t=t.replace(/<self>/g,function(){return t});t=t.replace(/<self>/g,"[]"),e.languages.coq={comment:RegExp(t),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},attribute:[{pattern:RegExp(/#\[(?:[^\[\]("]|"(?:[^"]|"")*"(?!")|\((?!\*)|<comment>)*\]/.source.replace(/<comment>/g,function(){return t})),greedy:!0,alias:"attr-name",inside:{comment:RegExp(t),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},operator:/=/,punctuation:/^#\[|\]$|[,()]/}},{pattern:/\b(?:Cumulative|Global|Local|Monomorphic|NonCumulative|Polymorphic|Private|Program)\b/,alias:"attr-name"}],keyword:/\b(?:Abort|About|Add|Admit|Admitted|All|Arguments|As|Assumptions|Axiom|Axioms|Back|BackTo|Backtrace|BinOp|BinOpSpec|BinRel|Bind|Blacklist|Canonical|Case|Cd|Check|Class|Classes|Close|CoFixpoint|CoInductive|Coercion|Coercions|Collection|Combined|Compute|Conjecture|Conjectures|Constant|Constants|Constraint|Constructors|Context|Corollary|Create|CstOp|Custom|Cut|Debug|Declare|Defined|Definition|Delimit|Dependencies|Dependent|Derive|Diffs|Drop|Elimination|End|Entry|Equality|Eval|Example|Existential|Existentials|Existing|Export|Extern|Extraction|Fact|Fail|Field|File|Firstorder|Fixpoint|Flags|Focus|From|Funclass|Function|Functional|GC|Generalizable|Goal|Grab|Grammar|Graph|Guarded|Haskell|Heap|Hide|Hint|HintDb|Hints|Hypotheses|Hypothesis|IF|Identity|Immediate|Implicit|Implicits|Import|Include|Induction|Inductive|Infix|Info|Initial|InjTyp|Inline|Inspect|Instance|Instances|Intro|Intros|Inversion|Inversion_clear|JSON|Language|Left|Lemma|Let|Lia|Libraries|Library|Load|LoadPath|Locate|Ltac|Ltac2|ML|Match|Method|Minimality|Module|Modules|Morphism|Next|NoInline|Notation|Number|OCaml|Obligation|Obligations|Opaque|Open|Optimize|Parameter|Parameters|Parametric|Path|Paths|Prenex|Preterm|Primitive|Print|Profile|Projections|Proof|Prop|PropBinOp|PropOp|PropUOp|Property|Proposition|Pwd|Qed|Quit|Rec|Record|Recursive|Redirect|Reduction|Register|Relation|Remark|Remove|Require|Reserved|Reset|Resolve|Restart|Rewrite|Right|Ring|Rings|SProp|Saturate|Save|Scheme|Scope|Scopes|Search|SearchHead|SearchPattern|SearchRewrite|Section|Separate|Set|Setoid|Show|Signatures|Solve|Solver|Sort|Sortclass|Sorted|Spec|Step|Strategies|Strategy|String|Structure|SubClass|Subgraph|SuchThat|Tactic|Term|TestCompile|Theorem|Time|Timeout|To|Transparent|Type|Typeclasses|Types|Typing|UnOp|UnOpSpec|Undelimit|Undo|Unfocus|Unfocused|Unfold|Universe|Universes|Unshelve|Variable|Variables|Variant|Verbose|View|Visibility|Zify|_|apply|as|at|by|cofix|else|end|exists|exists2|fix|for|forall|fun|if|in|let|match|measure|move|removed|return|struct|then|using|wf|where|with)\b/,number:/\b(?:0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]+)?(?:p[+-]?\d[\d_]*)?|\d[\d_]*(?:\.[\d_]+)?(?:e[+-]?\d[\d_]*)?)\b/i,punct:{pattern:/@\{|\{\||\[=|:>/,alias:"punctuation"},operator:/\/\\|\\\/|\.{2,3}|:{1,2}=|\*\*|[-=]>|<(?:->?|[+:=>]|<:)|>(?:=|->)|\|[-|]?|[-!%&*+/<=>?@^~']/,punctuation:/\.\(|`\(|@\{|`\{|\{\||\[=|:>|[:.,;(){}\[\]]/}}t.exports=r,r.displayName="coq",r.aliases=[]},268636,(e,t,n)=>{"use strict";function r(e){var t,n,r;e.languages.ruby=e.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===|<?=>|[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),e.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),t={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:e.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}},delete e.languages.ruby.function,n="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",r=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source,e.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+n+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:t,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:t,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+r),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+r+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),e.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+n),greedy:!0,inside:{interpolation:t,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:t,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:t,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+n),greedy:!0,inside:{interpolation:t,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:t,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete e.languages.ruby.string,e.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),e.languages.rb=e.languages.ruby}t.exports=r,r.displayName="ruby",r.aliases=["rb"]},887859,(e,t,n)=>{"use strict";var r=e.r(268636);function a(e){e.register(r),e.languages.crystal=e.languages.extend("ruby",{keyword:[/\b(?:__DIR__|__END_LINE__|__FILE__|__LINE__|abstract|alias|annotation|as|asm|begin|break|case|class|def|do|else|elsif|end|ensure|enum|extend|for|fun|if|ifdef|include|instance_sizeof|lib|macro|module|next|of|out|pointerof|private|protected|ptr|require|rescue|return|select|self|sizeof|struct|super|then|type|typeof|undef|uninitialized|union|unless|until|when|while|with|yield)\b/,{pattern:/(\.\s*)(?:is_a|responds_to)\?/,lookbehind:!0}],number:/\b(?:0b[01_]*[01]|0o[0-7_]*[0-7]|0x[\da-fA-F_]*[\da-fA-F]|(?:\d(?:[\d_]*\d)?)(?:\.[\d_]*\d)?(?:[eE][+-]?[\d_]*\d)?)(?:_(?:[uif](?:8|16|32|64))?)?\b/,operator:[/->/,e.languages.ruby.operator],punctuation:/[(){}[\].,;\\]/}),e.languages.insertBefore("crystal","string-literal",{attribute:{pattern:/@\[.*?\]/,inside:{delimiter:{pattern:/^@\[|\]$/,alias:"punctuation"},attribute:{pattern:/^(\s*)\w+/,lookbehind:!0,alias:"class-name"},args:{pattern:/\S(?:[\s\S]*\S)?/,inside:e.languages.crystal}}},expansion:{pattern:/\{(?:\{.*?\}|%.*?%)\}/,inside:{content:{pattern:/^(\{.)[\s\S]+(?=.\}$)/,lookbehind:!0,inside:e.languages.crystal},delimiter:{pattern:/^\{[\{%]|[\}%]\}$/,alias:"operator"}}},char:{pattern:/'(?:[^\\\r\n]{1,2}|\\(?:.|u(?:[A-Fa-f0-9]{1,4}|\{[A-Fa-f0-9]{1,6}\})))'/,greedy:!0}})}t.exports=a,a.displayName="crystal",a.aliases=[]},436301,(e,t,n)=>{"use strict";var r=e.r(794503);function a(e){e.register(r),function(e){var t=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,n=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function r(e,r){for(var a=0;a<r;a++)e=e.replace(/<self>/g,function(){return"(?:"+e+")"});return e.replace(/<self>/g,"[^\\s\\S]").replace(/<str>/g,"(?:"+n+")").replace(/<comment>/g,"(?:"+t+")")}var a=r(/\((?:[^()'"@/]|<str>|<comment>|<self>)*\)/.source,2),i=r(/\[(?:[^\[\]'"@/]|<str>|<comment>|<self>)*\]/.source,2),s=r(/\{(?:[^{}'"@/]|<str>|<comment>|<self>)*\}/.source,2),o=r(/<(?:[^<>'"@/]|<str>|<comment>|<self>)*>/.source,2),l=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?/.source,c=/(?!\d)[^\s>\/=$<%]+/.source+l+/\s*\/?>/.source,u=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+l+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+c)+"|"+r(/<\1/.source+l+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source)+c+"|<self>)*"+/<\/\1\s*>/.source,2)+")*"+/<\/\1\s*>/.source+"|"+/</.source+c+")";e.languages.cshtml=e.languages.extend("markup",{});var d={pattern:/\S[\s\S]*/,alias:"language-csharp",inside:e.languages.insertBefore("csharp","string",{html:{pattern:RegExp(u),greedy:!0,inside:e.languages.cshtml}},{csharp:e.languages.extend("csharp",{})})};e.languages.insertBefore("cshtml","prolog",{"razor-comment":{pattern:/@\*[\s\S]*?\*@/,greedy:!0,alias:"comment"},block:{pattern:RegExp(/(^|[^@])@/.source+"(?:"+[s,/(?:code|functions)\s*/.source+s,/(?:for|foreach|lock|switch|using|while)\s*/.source+a+/\s*/.source+s,/do\s*/.source+s+/\s*while\s*/.source+a+/(?:\s*;)?/.source,/try\s*/.source+s+/\s*catch\s*/.source+a+/\s*/.source+s+/\s*finally\s*/.source+s,/if\s*/.source+a+/\s*/.source+s+"(?:"+/\s*else/.source+"(?:"+/\s+if\s*/.source+a+")?"+/\s*/.source+s+")*"].join("|")+")"),lookbehind:!0,greedy:!0,inside:{keyword:/^@\w*/,csharp:d}},directive:{pattern:/^([ \t]*)@(?:addTagHelper|attribute|implements|inherits|inject|layout|model|namespace|page|preservewhitespace|removeTagHelper|section|tagHelperPrefix|using)(?=\s).*/m,lookbehind:!0,greedy:!0,inside:{keyword:/^@\w+/,csharp:d}},value:{pattern:RegExp(/(^|[^@])@/.source+/(?:await\b\s*)?/.source+"(?:"+/\w+\b/.source+"|"+a+")(?:"+/[?!]?\.\w+\b/.source+"|"+a+"|"+i+"|"+o+a+")*"),lookbehind:!0,greedy:!0,alias:"variable",inside:{keyword:/^@/,csharp:d}},"delegate-operator":{pattern:/(^|[^@])@(?=<)/,lookbehind:!0,alias:"operator"}}),e.languages.razor=e.languages.cshtml}(e)}t.exports=a,a.displayName="cshtml",a.aliases=["razor"]},419289,(e,t,n)=>{"use strict";function r(e){function t(e){return RegExp(/([ \t])/.source+"(?:"+e+")"+/(?=[\s;]|$)/.source,"i")}e.languages.csp={directive:{pattern:/(^|[\s;])(?:base-uri|block-all-mixed-content|(?:child|connect|default|font|frame|img|manifest|media|object|prefetch|script|style|worker)-src|disown-opener|form-action|frame-(?:ancestors|options)|input-protection(?:-(?:clip|selectors))?|navigate-to|plugin-types|policy-uri|referrer|reflected-xss|report-(?:to|uri)|require-sri-for|sandbox|(?:script|style)-src-(?:attr|elem)|upgrade-insecure-requests)(?=[\s;]|$)/i,lookbehind:!0,alias:"property"},scheme:{pattern:t(/[a-z][a-z0-9.+-]*:/.source),lookbehind:!0},none:{pattern:t(/'none'/.source),lookbehind:!0,alias:"keyword"},nonce:{pattern:t(/'nonce-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},hash:{pattern:t(/'sha(?:256|384|512)-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},host:{pattern:t(/[a-z][a-z0-9.+-]*:\/\/[^\s;,']*/.source+"|"+/\*[^\s;,']*/.source+"|"+/[a-z0-9-]+(?:\.[a-z0-9-]+)+(?::[\d*]+)?(?:\/[^\s;,']*)?/.source),lookbehind:!0,alias:"url",inside:{important:/\*/}},keyword:[{pattern:t(/'unsafe-[a-z-]+'/.source),lookbehind:!0,alias:"unsafe"},{pattern:t(/'[a-z-]+'/.source),lookbehind:!0,alias:"safe"}],punctuation:/;/}}t.exports=r,r.displayName="csp",r.aliases=[]},251208,(e,t,n)=>{"use strict";function r(e){var t,n,r,a;n=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,e.languages.css.selector={pattern:e.languages.css.selector.pattern,lookbehind:!0,inside:t={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp("\\[(?:[^[\\]\"']|"+n.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[n,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},e.languages.css.atrule.inside["selector-function-argument"].inside=t,e.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}}),r={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},a={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},e.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|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|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:r,number:a,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:r,number:a})}t.exports=r,r.displayName="cssExtras",r.aliases=[]},695648,(e,t,n)=>{"use strict";function r(e){e.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}t.exports=r,r.displayName="csv",r.aliases=[]},375398,(e,t,n)=>{"use strict";function r(e){e.languages.cypher={comment:/\/\/.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/,greedy:!0},"class-name":{pattern:/(:\s*)(?:\w+|`(?:[^`\\\r\n])*`)(?=\s*[{):])/,lookbehind:!0,greedy:!0},relationship:{pattern:/(-\[\s*(?:\w+\s*|`(?:[^`\\\r\n])*`\s*)?:\s*|\|\s*:\s*)(?:\w+|`(?:[^`\\\r\n])*`)/,lookbehind:!0,greedy:!0,alias:"property"},identifier:{pattern:/`(?:[^`\\\r\n])*`/,greedy:!0},variable:/\$\w+/,keyword:/\b(?:ADD|ALL|AND|AS|ASC|ASCENDING|ASSERT|BY|CALL|CASE|COMMIT|CONSTRAINT|CONTAINS|CREATE|CSV|DELETE|DESC|DESCENDING|DETACH|DISTINCT|DO|DROP|ELSE|END|ENDS|EXISTS|FOR|FOREACH|IN|INDEX|IS|JOIN|KEY|LIMIT|LOAD|MANDATORY|MATCH|MERGE|NODE|NOT|OF|ON|OPTIONAL|OR|ORDER(?=\s+BY)|PERIODIC|REMOVE|REQUIRE|RETURN|SCALAR|SCAN|SET|SKIP|START|STARTS|THEN|UNION|UNIQUE|UNWIND|USING|WHEN|WHERE|WITH|XOR|YIELD)\b/i,function:/\b\w+\b(?=\s*\()/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:[eE][+-]?\d+)?)\b/,operator:/:|<--?|--?>?|<>|=~?|[<>]=?|[+*/%^|]|\.\.\.?/,punctuation:/[()[\]{},;.]/}}t.exports=r,r.displayName="cypher",r.aliases=[]},704674,(e,t,n)=>{"use strict";function r(e){e.languages.d=e.languages.extend("clike",{comment:[{pattern:/^\s*#!.+/,greedy:!0},{pattern:RegExp(/(^|[^\\])/.source+"(?:"+[/\/\+(?:\/\+(?:[^+]|\+(?!\/))*\+\/|(?!\/\+)[\s\S])*?\+\//.source,/\/\/.*/.source,/\/\*[\s\S]*?\*\//.source].join("|")+")"),lookbehind:!0,greedy:!0}],string:[{pattern:RegExp([/\b[rx]"(?:\\[\s\S]|[^\\"])*"[cwd]?/.source,/\bq"(?:\[[\s\S]*?\]|\([\s\S]*?\)|<[\s\S]*?>|\{[\s\S]*?\})"/.source,/\bq"((?!\d)\w+)$[\s\S]*?^\1"/.source,/\bq"(.)[\s\S]*?\2"/.source,/(["`])(?:\\[\s\S]|(?!\3)[^\\])*\3[cwd]?/.source].join("|"),"m"),greedy:!0},{pattern:/\bq\{(?:\{[^{}]*\}|[^{}])*\}/,greedy:!0,alias:"token-string"}],keyword:/\$|\b(?:__(?:(?:DATE|EOF|FILE|FUNCTION|LINE|MODULE|PRETTY_FUNCTION|TIMESTAMP|TIME|VENDOR|VERSION)__|gshared|parameters|traits|vector)|abstract|alias|align|asm|assert|auto|body|bool|break|byte|case|cast|catch|cdouble|cent|cfloat|char|class|const|continue|creal|dchar|debug|default|delegate|delete|deprecated|do|double|dstring|else|enum|export|extern|false|final|finally|float|for|foreach|foreach_reverse|function|goto|idouble|if|ifloat|immutable|import|inout|int|interface|invariant|ireal|lazy|long|macro|mixin|module|new|nothrow|null|out|override|package|pragma|private|protected|ptrdiff_t|public|pure|real|ref|return|scope|shared|short|size_t|static|string|struct|super|switch|synchronized|template|this|throw|true|try|typedef|typeid|typeof|ubyte|ucent|uint|ulong|union|unittest|ushort|version|void|volatile|wchar|while|with|wstring)\b/,number:[/\b0x\.?[a-f\d_]+(?:(?!\.\.)\.[a-f\d_]*)?(?:p[+-]?[a-f\d_]+)?[ulfi]{0,4}/i,{pattern:/((?:\.\.)?)(?:\b0b\.?|\b|\.)\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:e[+-]?\d[\d_]*)?[ulfi]{0,4}/i,lookbehind:!0}],operator:/\|[|=]?|&[&=]?|\+[+=]?|-[-=]?|\.?\.\.|=[>=]?|!(?:i[ns]\b|<>?=?|>=?|=)?|\bi[ns]\b|(?:<[<>]?|>>?>?|\^\^|[*\/%^~])=?/}),e.languages.insertBefore("d","string",{char:/'(?:\\(?:\W|\w+)|[^\\])'/}),e.languages.insertBefore("d","keyword",{property:/\B@\w*/}),e.languages.insertBefore("d","function",{register:{pattern:/\b(?:[ABCD][LHX]|E?(?:BP|DI|SI|SP)|[BS]PL|[ECSDGF]S|CR[0234]|[DS]IL|DR[012367]|E[ABCD]X|X?MM[0-7]|R(?:1[0-5]|[89])[BWD]?|R[ABCD]X|R[BS]P|R[DS]I|TR[3-7]|XMM(?:1[0-5]|[89])|YMM(?:1[0-5]|\d))\b|\bST(?:\([0-7]\)|\b)/,alias:"variable"}})}t.exports=r,r.displayName="d",r.aliases=[]},978453,(e,t,n)=>{"use strict";function r(e){var t,n,r;t=[/\b(?:async|sync|yield)\*/,/\b(?:abstract|assert|async|await|break|case|catch|class|const|continue|covariant|default|deferred|do|dynamic|else|enum|export|extends|extension|external|factory|final|finally|for|get|hide|if|implements|import|in|interface|library|mixin|new|null|on|operator|part|rethrow|return|set|show|static|super|switch|sync|this|throw|try|typedef|var|void|while|with|yield)\b/],r={pattern:RegExp((n=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source)+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}}}},e.languages.dart=e.languages.extend("clike",{"class-name":[r,{pattern:RegExp(n+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:r.inside}],keyword:t,operator:/\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),e.languages.insertBefore("dart","string",{"string-literal":{pattern:/r?(?:("""|''')[\s\S]*?\1|(["'])(?:\\.|(?!\2)[^\\\r\n])*\2(?!\2))/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,lookbehind:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:e.languages.dart}}},string:/[\s\S]+/}},string:void 0}),e.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),e.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":r,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})}t.exports=r,r.displayName="dart",r.aliases=[]},162607,(e,t,n)=>{"use strict";function r(e){e.languages.dataweave={url:/\b[A-Za-z]+:\/\/[\w/:.?=&-]+|\burn:[\w:.?=&-]+/,property:{pattern:/(?:\b\w+#)?(?:"(?:\\.|[^\\"\r\n])*"|\b\w+)(?=\s*[:@])/,greedy:!0},string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},"mime-type":/\b(?:application|audio|image|multipart|text|video)\/[\w+-]+/,date:{pattern:/\|[\w:+-]+\|/,greedy:!0},comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],regex:{pattern:/\/(?:[^\\\/\r\n]|\\[^\r\n])+\//,greedy:!0},keyword:/\b(?:and|as|at|case|do|else|fun|if|input|is|match|not|ns|null|or|output|type|unless|update|using|var)\b/,function:/\b[A-Z_]\w*(?=\s*\()/i,number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\];(),.:@]/,operator:/<<|>>|->|[<>~=]=?|!=|--?-?|\+\+?|!|\?/,boolean:/\b(?:false|true)\b/}}t.exports=r,r.displayName="dataweave",r.aliases=[]},148190,(e,t,n)=>{"use strict";function r(e){e.languages.dax={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/).*)/,lookbehind:!0},"data-field":{pattern:/'(?:[^']|'')*'(?!')(?:\[[ \w\xA0-\uFFFF]+\])?|\w+\[[ \w\xA0-\uFFFF]+\]/,alias:"symbol"},measure:{pattern:/\[[ \w\xA0-\uFFFF]+\]/,alias:"constant"},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},function:/\b(?:ABS|ACOS|ACOSH|ACOT|ACOTH|ADDCOLUMNS|ADDMISSINGITEMS|ALL|ALLCROSSFILTERED|ALLEXCEPT|ALLNOBLANKROW|ALLSELECTED|AND|APPROXIMATEDISTINCTCOUNT|ASIN|ASINH|ATAN|ATANH|AVERAGE|AVERAGEA|AVERAGEX|BETA\.DIST|BETA\.INV|BLANK|CALCULATE|CALCULATETABLE|CALENDAR|CALENDARAUTO|CEILING|CHISQ\.DIST|CHISQ\.DIST\.RT|CHISQ\.INV|CHISQ\.INV\.RT|CLOSINGBALANCEMONTH|CLOSINGBALANCEQUARTER|CLOSINGBALANCEYEAR|COALESCE|COMBIN|COMBINA|COMBINEVALUES|CONCATENATE|CONCATENATEX|CONFIDENCE\.NORM|CONFIDENCE\.T|CONTAINS|CONTAINSROW|CONTAINSSTRING|CONTAINSSTRINGEXACT|CONVERT|COS|COSH|COT|COTH|COUNT|COUNTA|COUNTAX|COUNTBLANK|COUNTROWS|COUNTX|CROSSFILTER|CROSSJOIN|CURRENCY|CURRENTGROUP|CUSTOMDATA|DATATABLE|DATE|DATEADD|DATEDIFF|DATESBETWEEN|DATESINPERIOD|DATESMTD|DATESQTD|DATESYTD|DATEVALUE|DAY|DEGREES|DETAILROWS|DISTINCT|DISTINCTCOUNT|DISTINCTCOUNTNOBLANK|DIVIDE|EARLIER|EARLIEST|EDATE|ENDOFMONTH|ENDOFQUARTER|ENDOFYEAR|EOMONTH|ERROR|EVEN|EXACT|EXCEPT|EXP|EXPON\.DIST|FACT|FALSE|FILTER|FILTERS|FIND|FIRSTDATE|FIRSTNONBLANK|FIRSTNONBLANKVALUE|FIXED|FLOOR|FORMAT|GCD|GENERATE|GENERATEALL|GENERATESERIES|GEOMEAN|GEOMEANX|GROUPBY|HASONEFILTER|HASONEVALUE|HOUR|IF|IF\.EAGER|IFERROR|IGNORE|INT|INTERSECT|ISBLANK|ISCROSSFILTERED|ISEMPTY|ISERROR|ISEVEN|ISFILTERED|ISINSCOPE|ISLOGICAL|ISNONTEXT|ISNUMBER|ISO\.CEILING|ISODD|ISONORAFTER|ISSELECTEDMEASURE|ISSUBTOTAL|ISTEXT|KEEPFILTERS|KEYWORDMATCH|LASTDATE|LASTNONBLANK|LASTNONBLANKVALUE|LCM|LEFT|LEN|LN|LOG|LOG10|LOOKUPVALUE|LOWER|MAX|MAXA|MAXX|MEDIAN|MEDIANX|MID|MIN|MINA|MINUTE|MINX|MOD|MONTH|MROUND|NATURALINNERJOIN|NATURALLEFTOUTERJOIN|NEXTDAY|NEXTMONTH|NEXTQUARTER|NEXTYEAR|NONVISUAL|NORM\.DIST|NORM\.INV|NORM\.S\.DIST|NORM\.S\.INV|NOT|NOW|ODD|OPENINGBALANCEMONTH|OPENINGBALANCEQUARTER|OPENINGBALANCEYEAR|OR|PARALLELPERIOD|PATH|PATHCONTAINS|PATHITEM|PATHITEMREVERSE|PATHLENGTH|PERCENTILE\.EXC|PERCENTILE\.INC|PERCENTILEX\.EXC|PERCENTILEX\.INC|PERMUT|PI|POISSON\.DIST|POWER|PREVIOUSDAY|PREVIOUSMONTH|PREVIOUSQUARTER|PREVIOUSYEAR|PRODUCT|PRODUCTX|QUARTER|QUOTIENT|RADIANS|RAND|RANDBETWEEN|RANK\.EQ|RANKX|RELATED|RELATEDTABLE|REMOVEFILTERS|REPLACE|REPT|RIGHT|ROLLUP|ROLLUPADDISSUBTOTAL|ROLLUPGROUP|ROLLUPISSUBTOTAL|ROUND|ROUNDDOWN|ROUNDUP|ROW|SAMEPERIODLASTYEAR|SAMPLE|SEARCH|SECOND|SELECTCOLUMNS|SELECTEDMEASURE|SELECTEDMEASUREFORMATSTRING|SELECTEDMEASURENAME|SELECTEDVALUE|SIGN|SIN|SINH|SQRT|SQRTPI|STARTOFMONTH|STARTOFQUARTER|STARTOFYEAR|STDEV\.P|STDEV\.S|STDEVX\.P|STDEVX\.S|SUBSTITUTE|SUBSTITUTEWITHINDEX|SUM|SUMMARIZE|SUMMARIZECOLUMNS|SUMX|SWITCH|T\.DIST|T\.DIST\.2T|T\.DIST\.RT|T\.INV|T\.INV\.2T|TAN|TANH|TIME|TIMEVALUE|TODAY|TOPN|TOPNPERLEVEL|TOPNSKIP|TOTALMTD|TOTALQTD|TOTALYTD|TREATAS|TRIM|TRUE|TRUNC|UNICHAR|UNICODE|UNION|UPPER|USERELATIONSHIP|USERNAME|USEROBJECTID|USERPRINCIPALNAME|UTCNOW|UTCTODAY|VALUE|VALUES|VAR\.P|VAR\.S|VARX\.P|VARX\.S|WEEKDAY|WEEKNUM|XIRR|XNPV|YEAR|YEARFRAC)(?=\s*\()/i,keyword:/\b(?:DEFINE|EVALUATE|MEASURE|ORDER\s+BY|RETURN|VAR|START\s+AT|ASC|DESC)\b/i,boolean:{pattern:/\b(?:FALSE|NULL|TRUE)\b/i,alias:"constant"},number:/\b\d+(?:\.\d*)?|\B\.\d+\b/,operator:/:=|[-+*\/=^]|&&?|\|\||<(?:=>?|<|>)?|>[>=]?|\b(?:IN|NOT)\b/i,punctuation:/[;\[\](){}`,.]/}}t.exports=r,r.displayName="dax",r.aliases=[]},436505,(e,t,n)=>{"use strict";function r(e){e.languages.dhall={comment:/--.*|\{-(?:[^-{]|-(?!\})|\{(?!-)|\{-(?:[^-{]|-(?!\})|\{(?!-))*-\})*-\}/,string:{pattern:/"(?:[^"\\]|\\.)*"|''(?:[^']|'(?!')|'''|''\$\{)*''(?!'|\$)/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,alias:"language-dhall",inside:null},punctuation:/\$\{|\}/}}}},label:{pattern:/`[^`]*`/,greedy:!0},url:{pattern:/\bhttps?:\/\/[\w.:%!$&'*+;=@~-]+(?:\/[\w.:%!$&'*+;=@~-]*)*(?:\?[/?\w.:%!$&'*+;=@~-]*)?/,greedy:!0},env:{pattern:/\benv:(?:(?!\d)\w+|"(?:[^"\\=]|\\.)*")/,greedy:!0,inside:{function:/^env/,operator:/^:/,variable:/[\s\S]+/}},hash:{pattern:/\bsha256:[\da-fA-F]{64}\b/,inside:{function:/sha256/,operator:/:/,number:/[\da-fA-F]{64}/}},keyword:/\b(?:as|assert|else|forall|if|in|let|merge|missing|then|toMap|using|with)\b|\u2200/,builtin:/\b(?:None|Some)\b/,boolean:/\b(?:False|True)\b/,number:/\bNaN\b|-?\bInfinity\b|[+-]?\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/,operator:/\/\\|\/\/\\\\|&&|\|\||===|[!=]=|\/\/|->|\+\+|::|[+*#@=:?<>|\\\u2227\u2a53\u2261\u2afd\u03bb\u2192]/,punctuation:/\.\.|[{}\[\](),./]/,"class-name":/\b[A-Z]\w*\b/},e.languages.dhall.string.inside.interpolation.inside.expression.inside=e.languages.dhall}t.exports=r,r.displayName="dhall",r.aliases=[]},798578,(e,t,n)=>{"use strict";function r(e){var t;e.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]},Object.keys(t={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"}).forEach(function(n){var r=t[n],a=[];/^\w+$/.test(n)||a.push(/\w+/.exec(n)[0]),"diff"===n&&a.push("bold"),e.languages.diff[n]={pattern:RegExp("^(?:["+r+"].*(?:\r\n?|\n|(?![\\s\\S])))+","m"),alias:a,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(n)[0]}}}}),Object.defineProperty(e.languages.diff,"PREFIXES",{value:t})}t.exports=r,r.displayName="diff",r.aliases=[]},426226,(e,t,n)=>{"use strict";function r(e){function t(e,t){return"___"+e.toUpperCase()+t+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(n,r,a,i){if(n.language===r){var s=n.tokenStack=[];n.code=n.code.replace(a,function(e){if("function"==typeof i&&!i(e))return e;for(var a,o=s.length;-1!==n.code.indexOf(a=t(r,o));)++o;return s[o]=e,a}),n.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(n,r){if(n.language===r&&n.tokenStack){n.grammar=e.languages[r];var a=0,i=Object.keys(n.tokenStack);!function s(o){for(var l=0;l<o.length&&!(a>=i.length);l++){var c=o[l];if("string"==typeof c||c.content&&"string"==typeof c.content){var u=i[a],d=n.tokenStack[u],p="string"==typeof c?c:c.content,m=t(r,u),h=p.indexOf(m);if(h>-1){++a;var f=p.substring(0,h),g=new e.Token(r,e.tokenize(d,n.grammar),"language-"+r,d),b=p.substring(h+m.length),y=[];f&&y.push.apply(y,s([f])),y.push(g),b&&y.push.apply(y,s([b])),"string"==typeof c?o.splice.apply(o,[l,1].concat(y)):c.content=y}}else c.content&&s(c.content)}return o}(n.tokens)}}}})}t.exports=r,r.displayName="markupTemplating",r.aliases=[]},911719,(e,t,n)=>{"use strict";var r=e.r(426226);function a(e){var t,n;e.register(r),e.languages.django={comment:/^\{#[\s\S]*?#\}$/,tag:{pattern:/(^\{%[+-]?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%][+-]?|[+-]?[}%]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},filter:{pattern:/(\|)\w+/,lookbehind:!0,alias:"function"},test:{pattern:/(\bis\s+(?:not\s+)?)(?!not\b)\w+/,lookbehind:!0,alias:"function"},function:/\b[a-z_]\w+(?=\s*\()/i,keyword:/\b(?:and|as|by|else|for|if|import|in|is|loop|not|or|recursive|with|without)\b/,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,number:/\b\d+(?:\.\d+)?\b/,boolean:/[Ff]alse|[Nn]one|[Tt]rue/,variable:/\b\w+\b/,punctuation:/[{}[\](),.:;]/},t=/\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}|\{#[\s\S]*?#\}/g,n=e.languages["markup-templating"],e.hooks.add("before-tokenize",function(e){n.buildPlaceholders(e,"django",t)}),e.hooks.add("after-tokenize",function(e){n.tokenizePlaceholders(e,"django")}),e.languages.jinja2=e.languages.django,e.hooks.add("before-tokenize",function(e){n.buildPlaceholders(e,"jinja2",t)}),e.hooks.add("after-tokenize",function(e){n.tokenizePlaceholders(e,"jinja2")})}t.exports=a,a.displayName="django",a.aliases=["jinja2"]},663716,(e,t,n)=>{"use strict";function r(e){e.languages["dns-zone-file"]={comment:/;.*/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},variable:[{pattern:/(^\$ORIGIN[ \t]+)\S+/m,lookbehind:!0},{pattern:/(^|\s)@(?=\s|$)/,lookbehind:!0}],keyword:/^\$(?:INCLUDE|ORIGIN|TTL)(?=\s|$)/m,class:{pattern:/(^|\s)(?:CH|CS|HS|IN)(?=\s|$)/,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|\s)(?:A|A6|AAAA|AFSDB|APL|ATMA|CAA|CDNSKEY|CDS|CERT|CNAME|DHCID|DLV|DNAME|DNSKEY|DS|EID|GID|GPOS|HINFO|HIP|IPSECKEY|ISDN|KEY|KX|LOC|MAILA|MAILB|MB|MD|MF|MG|MINFO|MR|MX|NAPTR|NB|NBSTAT|NIMLOC|NINFO|NS|NSAP|NSAP-PTR|NSEC|NSEC3|NSEC3PARAM|NULL|NXT|OPENPGPKEY|PTR|PX|RKEY|RP|RRSIG|RT|SIG|SINK|SMIMEA|SOA|SPF|SRV|SSHFP|TA|TKEY|TLSA|TSIG|TXT|UID|UINFO|UNSPEC|URI|WKS|X25)(?=\s|$)/,lookbehind:!0,alias:"keyword"},punctuation:/[()]/},e.languages["dns-zone"]=e.languages["dns-zone-file"]}t.exports=r,r.displayName="dnsZoneFile",r.aliases=[]},507512,(e,t,n)=>{"use strict";function r(e){!function(e){var t=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,n=/(?:[ \t]+(?![ \t])(?:<SP_BS>)?|<SP_BS>)/.source.replace(/<SP_BS>/g,function(){return t}),r=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,a=/--[\w-]+=(?:<STR>|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(/<STR>/g,function(){return r}),i={pattern:RegExp(r),greedy:!0},s={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function o(e,t){return RegExp(e=e.replace(/<OPT>/g,function(){return a}).replace(/<SP>/g,function(){return n}),t)}e.languages.docker={instruction:{pattern:/(^[ \t]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)(?:\\.|[^\r\n\\])*(?:\\$(?:\s|#.*$)*(?![\s#])(?:\\.|[^\r\n\\])*)*/im,lookbehind:!0,greedy:!0,inside:{options:{pattern:o(/(^(?:ONBUILD<SP>)?\w+<SP>)<OPT>(?:<SP><OPT>)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[i,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:o(/(^(?:ONBUILD<SP>)?HEALTHCHECK<SP>(?:<OPT><SP>)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:o(/(^(?:ONBUILD<SP>)?FROM<SP>(?:<OPT><SP>)*(?!--)[^ \t\\]+<SP>)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:o(/(^ONBUILD<SP>)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:s,string:i,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:s},e.languages.dockerfile=e.languages.docker}(e)}t.exports=r,r.displayName="docker",r.aliases=["dockerfile"]},733825,(e,t,n)=>{"use strict";function r(e){var t="(?:"+[/[a-zA-Z_\x80-\uFFFF][\w\x80-\uFFFF]*/.source,/-?(?:\.\d+|\d+(?:\.\d*)?)/.source,/"[^"\\]*(?:\\[\s\S][^"\\]*)*"/.source,/<(?:[^<>]|(?!<!--)<(?:[^<>"']|"[^"]*"|'[^']*')+>|<!--(?:[^-]|-(?!->))*-->)*>/.source].join("|")+")",n={markup:{pattern:/(^<)[\s\S]+(?=>$)/,lookbehind:!0,alias:["language-markup","language-html","language-xml"],inside:e.languages.markup}};function r(e,n){return RegExp(e.replace(/<ID>/g,function(){return t}),n)}e.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:r(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)<ID>/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:n},"attr-value":{pattern:r(/(=[ \t\r\n]*)<ID>/.source),lookbehind:!0,greedy:!0,inside:n},"attr-name":{pattern:r(/([\[;, \t\r\n])<ID>(?=[ \t\r\n]*=)/.source),lookbehind:!0,greedy:!0,inside:n},keyword:/\b(?:digraph|edge|graph|node|strict|subgraph)\b/i,"compass-point":{pattern:/(:[ \t\r\n]*)(?:[ewc_]|[ns][ew]?)(?![\w\x80-\uFFFF])/,lookbehind:!0,alias:"builtin"},node:{pattern:r(/(^|[^-.\w\x80-\uFFFF\\])<ID>/.source),lookbehind:!0,greedy:!0,inside:n},operator:/[=:]|-[->]/,punctuation:/[\[\]{};,]/},e.languages.gv=e.languages.dot}t.exports=r,r.displayName="dot",r.aliases=["gv"]},622489,(e,t,n)=>{"use strict";function r(e){e.languages.ebnf={comment:/\(\*[\s\S]*?\*\)/,string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},special:{pattern:/\?[^?\r\n]*\?/,greedy:!0,alias:"class-name"},definition:{pattern:/^([\t ]*)[a-z]\w*(?:[ \t]+[a-z]\w*)*(?=\s*=)/im,lookbehind:!0,alias:["rule","keyword"]},rule:/\b[a-z]\w*(?:[ \t]+[a-z]\w*)*\b/i,punctuation:/\([:/]|[:/]\)|[.,;()[\]{}]/,operator:/[-=|*/!]/}}t.exports=r,r.displayName="ebnf",r.aliases=[]},360636,(e,t,n)=>{"use strict";function r(e){e.languages.editorconfig={comment:/[;#].*/,section:{pattern:/(^[ \t]*)\[.+\]/m,lookbehind:!0,alias:"selector",inside:{regex:/\\\\[\[\]{},!?.*]/,operator:/[!?]|\.\.|\*{1,2}/,punctuation:/[\[\]{},]/}},key:{pattern:/(^[ \t]*)[^\s=]+(?=[ \t]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/=.*/,alias:"attr-value",inside:{punctuation:/^=/}}}}t.exports=r,r.displayName="editorconfig",r.aliases=[]},939236,(e,t,n)=>{"use strict";function r(e){e.languages.eiffel={comment:/--.*/,string:[{pattern:/"([^[]*)\[[\s\S]*?\]\1"/,greedy:!0},{pattern:/"([^{]*)\{[\s\S]*?\}\1"/,greedy:!0},{pattern:/"(?:%(?:(?!\n)\s)*\n\s*%|%\S|[^%"\r\n])*"/,greedy:!0}],char:/'(?:%.|[^%'\r\n])+'/,keyword:/\b(?:across|agent|alias|all|and|as|assign|attached|attribute|check|class|convert|create|Current|debug|deferred|detachable|do|else|elseif|end|ensure|expanded|export|external|feature|from|frozen|if|implies|inherit|inspect|invariant|like|local|loop|not|note|obsolete|old|once|or|Precursor|redefine|rename|require|rescue|Result|retry|select|separate|some|then|undefine|until|variant|Void|when|xor)\b/i,boolean:/\b(?:False|True)\b/i,"class-name":/\b[A-Z][\dA-Z_]*\b/,number:[/\b0[xcb][\da-f](?:_*[\da-f])*\b/i,/(?:\b\d(?:_*\d)*)?\.(?:(?:\d(?:_*\d)*)?e[+-]?)?\d(?:_*\d)*\b|\b\d(?:_*\d)*\b\.?/i],punctuation:/:=|<<|>>|\(\||\|\)|->|\.(?=\w)|[{}[\];(),:?]/,operator:/\\\\|\|\.\.\||\.\.|\/[~\/=]?|[><]=?|[-+*^=~]/}}t.exports=r,r.displayName="eiffel",r.aliases=[]},143472,(e,t,n)=>{"use strict";var r=e.r(426226);function a(e){e.register(r),e.languages.ejs={delimiter:{pattern:/^<%[-_=]?|[-_]?%>$/,alias:"punctuation"},comment:/^#[\s\S]*/,"language-javascript":{pattern:/[\s\S]+/,inside:e.languages.javascript}},e.hooks.add("before-tokenize",function(t){e.languages["markup-templating"].buildPlaceholders(t,"ejs",/<%(?!%)[\s\S]+?%>/g)}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"ejs")}),e.languages.eta=e.languages.ejs}t.exports=a,a.displayName="ejs",a.aliases=["eta"]},263365,(e,t,n)=>{"use strict";function r(e){e.languages.elixir={doc:{pattern:/@(?:doc|moduledoc)\s+(?:("""|''')[\s\S]*?\1|("|')(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2)/,inside:{attribute:/^@\w+/,string:/['"][\s\S]+/}},comment:{pattern:/#.*/,greedy:!0},regex:{pattern:/~[rR](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|[^\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[uismxfr]*/,greedy:!0},string:[{pattern:/~[cCsSwW](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|#\{[^}]+\}|#(?!\{)|[^#\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[csa]?/,greedy:!0,inside:{}},{pattern:/("""|''')[\s\S]*?\1/,greedy:!0,inside:{}},{pattern:/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{}}],atom:{pattern:/(^|[^:]):\w+/,lookbehind:!0,alias:"symbol"},module:{pattern:/\b[A-Z]\w*\b/,alias:"class-name"},"attr-name":/\b\w+\??:(?!:)/,argument:{pattern:/(^|[^&])&\d+/,lookbehind:!0,alias:"variable"},attribute:{pattern:/@\w+/,alias:"variable"},function:/\b[_a-zA-Z]\w*[?!]?(?:(?=\s*(?:\.\s*)?\()|(?=\/\d))/,number:/\b(?:0[box][a-f\d_]+|\d[\d_]*)(?:\.[\d_]+)?(?:e[+-]?[\d_]+)?\b/i,keyword:/\b(?:after|alias|and|case|catch|cond|def(?:callback|delegate|exception|impl|macro|module|n|np|p|protocol|struct)?|do|else|end|fn|for|if|import|not|or|quote|raise|require|rescue|try|unless|unquote|use|when)\b/,boolean:/\b(?:false|nil|true)\b/,operator:[/\bin\b|&&?|\|[|>]?|\\\\|::|\.\.\.?|\+\+?|-[->]?|<[-=>]|>=|!==?|\B!|=(?:==?|[>~])?|[*\/^]/,{pattern:/([^<])<(?!<)/,lookbehind:!0},{pattern:/([^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,%\[\]{}()]/},e.languages.elixir.string.forEach(function(t){t.inside={interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},rest:e.languages.elixir}}}})}t.exports=r,r.displayName="elixir",r.aliases=[]},373845,(e,t,n)=>{"use strict";function r(e){e.languages.elm={comment:/--.*|\{-[\s\S]*?-\}/,char:{pattern:/'(?:[^\\'\r\n]|\\(?:[abfnrtv\\']|\d+|x[0-9a-fA-F]+|u\{[0-9a-fA-F]+\}))'/,greedy:!0},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:[^\\"\r\n]|\\.)*"/,greedy:!0}],"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z]\w*(?:\.[A-Z]\w*)*(?:\s+as\s+(?:[A-Z]\w*)(?:\.[A-Z]\w*)*)?(?:\s+exposing\s+)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|exposing|import)\b/}},keyword:/\b(?:alias|as|case|else|exposing|if|in|infixl|infixr|let|module|of|then|type)\b/,builtin:/\b(?:abs|acos|always|asin|atan|atan2|ceiling|clamp|compare|cos|curry|degrees|e|flip|floor|fromPolar|identity|isInfinite|isNaN|logBase|max|min|negate|never|not|pi|radians|rem|round|sin|sqrt|tan|toFloat|toPolar|toString|truncate|turns|uncurry|xor)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[0-9a-f]+)\b/i,operator:/\s\.\s|[+\-/*=.$<>:&|^?%#@~!]{2,}|[+\-/*=$<>:&|^?%#@~!]/,hvariable:/\b(?:[A-Z]\w*\.)*[a-z]\w*\b/,constant:/\b(?:[A-Z]\w*\.)*[A-Z]\w*\b/,punctuation:/[{}[\]|(),.:]/}}t.exports=r,r.displayName="elm",r.aliases=[]},125714,(e,t,n)=>{"use strict";var r=e.r(268636),a=e.r(426226);function i(e){e.register(r),e.register(a),e.languages.erb={delimiter:{pattern:/^(\s*)<%=?|%>(?=\s*$)/,lookbehind:!0,alias:"punctuation"},ruby:{pattern:/\s*\S[\s\S]*/,alias:"language-ruby",inside:e.languages.ruby}},e.hooks.add("before-tokenize",function(t){e.languages["markup-templating"].buildPlaceholders(t,"erb",/<%=?(?:[^\r\n]|[\r\n](?!=begin)|[\r\n]=begin\s(?:[^\r\n]|[\r\n](?!=end))*[\r\n]=end)+?%>/g)}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"erb")})}t.exports=i,i.displayName="erb",i.aliases=[]},974706,(e,t,n)=>{"use strict";function r(e){e.languages.erlang={comment:/%.+/,string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},"quoted-function":{pattern:/'(?:\\.|[^\\'\r\n])+'(?=\()/,alias:"function"},"quoted-atom":{pattern:/'(?:\\.|[^\\'\r\n])+'/,alias:"atom"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:after|case|catch|end|fun|if|of|receive|try|when)\b/,number:[/\$\\?./,/\b\d+#[a-z0-9]+/i,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i],function:/\b[a-z][\w@]*(?=\()/,variable:{pattern:/(^|[^@])(?:\b|\?)[A-Z_][\w@]*/,lookbehind:!0},operator:[/[=\/<>:]=|=[:\/]=|\+\+?|--?|[=*\/!]|\b(?:and|andalso|band|bnot|bor|bsl|bsr|bxor|div|not|or|orelse|rem|xor)\b/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],atom:/\b[a-z][\w@]*/,punctuation:/[()[\]{}:;,.#|]|<<|>>/}}t.exports=r,r.displayName="erlang",r.aliases=[]},654787,(e,t,n)=>{"use strict";function r(e){e.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/}}t.exports=r,r.displayName="lua",r.aliases=[]},495350,(e,t,n)=>{"use strict";var r=e.r(654787),a=e.r(426226);function i(e){e.register(r),e.register(a),e.languages.etlua={delimiter:{pattern:/^<%[-=]?|-?%>$/,alias:"punctuation"},"language-lua":{pattern:/[\s\S]+/,inside:e.languages.lua}},e.hooks.add("before-tokenize",function(t){e.languages["markup-templating"].buildPlaceholders(t,"etlua",/<%[\s\S]+?%>/g)}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"etlua")})}t.exports=i,i.displayName="etlua",i.aliases=[]},846012,(e,t,n)=>{"use strict";function r(e){e.languages["excel-formula"]={comment:{pattern:/(\bN\(\s*)"(?:[^"]|"")*"(?=\s*\))/i,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},reference:{pattern:/(?:'[^']*'|(?:[^\s()[\]{}<>*?"';,$&]*\[[^^\s()[\]{}<>*?"']+\])?\w+)!/,greedy:!0,alias:"string",inside:{operator:/!$/,punctuation:/'/,sheet:{pattern:/[^[\]]+$/,alias:"function"},file:{pattern:/\[[^[\]]+\]$/,inside:{punctuation:/[[\]]/}},path:/[\s\S]+/}},"function-name":{pattern:/\b[A-Z]\w*(?=\()/i,alias:"keyword"},range:{pattern:/\$?\b(?:[A-Z]+\$?\d+:\$?[A-Z]+\$?\d+|[A-Z]+:\$?[A-Z]+|\d+:\$?\d+)\b/i,alias:"property",inside:{operator:/:/,cell:/\$?[A-Z]+\$?\d+/i,column:/\$?[A-Z]+/i,row:/\$?\d+/}},cell:{pattern:/\b[A-Z]+\d+\b|\$[A-Za-z]+\$?\d+\b|\b[A-Za-z]+\$\d+\b/,alias:"property"},number:/(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?\b/i,boolean:/\b(?:FALSE|TRUE)\b/i,operator:/[-+*/^%=&,]|<[=>]?|>=?/,punctuation:/[[\]();{}|]/},e.languages.xlsx=e.languages.xls=e.languages["excel-formula"]}t.exports=r,r.displayName="excelFormula",r.aliases=[]},882318,(e,t,n)=>{"use strict";function r(e){var t,n,r,a,i,s;r={comment:[{pattern:/(^|\s)(?:! .*|!$)/,lookbehind:!0,inside:t={function:/\b(?:BUGS?|FIX(?:MES?)?|NOTES?|TODOS?|XX+|HACKS?|WARN(?:ING)?|\?{2,}|!{2,})\b/}},{pattern:/(^|\s)\/\*\s[\s\S]*?\*\/(?=\s|$)/,lookbehind:!0,greedy:!0,inside:t},{pattern:/(^|\s)!\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,inside:t}],number:[{pattern:/(^|\s)[+-]?\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b[01]+|o[0-7]+|d\d+|x[\dA-F]+)(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)[+-]?\d+\/\d+\.?(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)\+?\d+\+\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)-\d+-\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?(?:\d*\.\d+|\d+\.\d*|\d+)(?:e[+-]?\d+)?(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)NAN:\s+[\da-fA-F]+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b1\.[01]*|o1\.[0-7]*|d1\.\d*|x1\.[\dA-F]*)p\d+(?=\s|$)/i,lookbehind:!0}],regexp:{pattern:/(^|\s)R\/\s(?:\\\S|[^\\/])*\/(?:[idmsr]*|[idmsr]+-[idmsr]+)(?=\s|$)/,lookbehind:!0,alias:"number",inside:{variable:/\\\S/,keyword:/[+?*\[\]^$(){}.|]/,operator:{pattern:/(\/)[idmsr]+(?:-[idmsr]+)?/,lookbehind:!0}}},boolean:{pattern:/(^|\s)[tf](?=\s|$)/,lookbehind:!0},"custom-string":{pattern:/(^|\s)[A-Z0-9\-]+"\s(?:\\\S|[^"\\])*"/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:/\\\S|%\w|\//}},"multiline-string":[{pattern:/(^|\s)STRING:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*;(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:(n={number:/\\[^\s']|%\w/}).number,"semicolon-or-setlocal":{pattern:/([\r\n][ \t]*);(?=\s|$)/,lookbehind:!0,alias:"function"}}},{pattern:/(^|\s)HEREDOC:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*\S+(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:n},{pattern:/(^|\s)\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:n}],"special-using":{pattern:/(^|\s)USING:(?:\s\S+)*(?=\s+;(?:\s|$))/,lookbehind:!0,alias:"function",inside:{string:{pattern:/(\s)[^:\s]+/,lookbehind:!0}}},"stack-effect-delimiter":[{pattern:/(^|\s)(?:call|eval|execute)?\((?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)--(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\)(?=\s|$)/,lookbehind:!0,alias:"operator"}],combinators:{pattern:null,lookbehind:!0,alias:"keyword"},"kernel-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"sequences-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"math-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"constructor-word":{pattern:/(^|\s)<(?!=+>|-+>)\S+>(?=\s|$)/,lookbehind:!0,alias:"keyword"},"other-builtin-syntax":{pattern:null,lookbehind:!0,alias:"operator"},"conventionally-named-word":{pattern:/(^|\s)(?!")(?:(?:change|new|set|with)-\S+|\$\S+|>[^>\s]+|[^:>\s]+>|[^>\s]+>[^>\s]+|\+[^+\s]+\+|[^?\s]+\?|\?[^?\s]+|[^>\s]+>>|>>[^>\s]+|[^<\s]+<<|\([^()\s]+\)|[^!\s]+!|[^*\s]\S*\*|[^.\s]\S*\.)(?=\s|$)/,lookbehind:!0,alias:"keyword"},"colon-syntax":{pattern:/(^|\s)(?:[A-Z0-9\-]+#?)?:{1,2}\s+(?:;\S+|(?!;)\S+)(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"function"},"semicolon-or-setlocal":{pattern:/(\s)(?:;|:>)(?=\s|$)/,lookbehind:!0,alias:"function"},"curly-brace-literal-delimiter":[{pattern:/(^|\s)[a-z]*\{(?=\s)/i,lookbehind:!0,alias:"operator"},{pattern:/(\s)\}(?=\s|$)/,lookbehind:!0,alias:"operator"}],"quotation-delimiter":[{pattern:/(^|\s)\[(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\](?=\s|$)/,lookbehind:!0,alias:"operator"}],"normal-word":{pattern:/(^|\s)[^"\s]\S*(?=\s|$)/,lookbehind:!0},string:{pattern:/"(?:\\\S|[^"\\])*"/,greedy:!0,inside:n}},a=function(e){return(e+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},i=function(e){return RegExp("(^|\\s)(?:"+e.map(a).join("|")+")(?=\\s|$)")},Object.keys(s={"kernel-builtin":["or","2nipd","4drop","tuck","wrapper","nip","wrapper?","callstack>array","die","dupd","callstack","callstack?","3dup","hashcode","pick","4nip","build",">boolean","nipd","clone","5nip","eq?","?","=","swapd","2over","clear","2dup","get-retainstack","not","tuple?","dup","3nipd","call","-rotd","object","drop","assert=","assert?","-rot","execute","boa","get-callstack","curried?","3drop","pickd","overd","over","roll","3nip","swap","and","2nip","rotd","throw","(clone)","hashcode*","spin","reach","4dup","equal?","get-datastack","assert","2drop","<wrapper>","boolean?","identity-hashcode","identity-tuple?","null","composed?","new","5drop","rot","-roll","xor","identity-tuple","boolean"],"other-builtin-syntax":["=======","recursive","flushable",">>","<<<<<<","M\\","B","PRIVATE>","\\","======","final","inline","delimiter","deprecated","<PRIVATE",">>>>>>","<<<<<<<","parse-complex","malformed-complex","read-only",">>>>>>>","call-next-method","<<","foldable","$","$[","${"],"sequences-builtin":["member-eq?","mismatch","append","assert-sequence=","longer","repetition","clone-like","3sequence","assert-sequence?","last-index-from","reversed","index-from","cut*","pad-tail","join-as","remove-eq!","concat-as","but-last","snip","nths","nth","sequence","longest","slice?","<slice>","remove-nth","tail-slice","empty?","tail*","member?","virtual-sequence?","set-length","drop-prefix","iota","unclip","bounds-error?","unclip-last-slice","non-negative-integer-expected","non-negative-integer-expected?","midpoint@","longer?","?set-nth","?first","rest-slice","prepend-as","prepend","fourth","sift","subseq-start","new-sequence","?last","like","first4","1sequence","reverse","slice","virtual@","repetition?","set-last","index","4sequence","max-length","set-second","immutable-sequence","first2","first3","supremum","unclip-slice","suffix!","insert-nth","tail","3append","short","suffix","concat","flip","immutable?","reverse!","2sequence","sum","delete-all","indices","snip-slice","<iota>","check-slice","sequence?","head","append-as","halves","sequence=","collapse-slice","?second","slice-error?","product","bounds-check?","bounds-check","immutable","virtual-exemplar","harvest","remove","pad-head","last","set-fourth","cartesian-product","remove-eq","shorten","shorter","reversed?","shorter?","shortest","head-slice","pop*","tail-slice*","but-last-slice","iota?","append!","cut-slice","new-resizable","head-slice*","sequence-hashcode","pop","set-nth","?nth","second","join","immutable-sequence?","<reversed>","3append-as","virtual-sequence","subseq?","remove-nth!","length","last-index","lengthen","assert-sequence","copy","move","third","first","tail?","set-first","prefix","bounds-error","<repetition>","exchange","surround","cut","min-length","set-third","push-all","head?","subseq-start-from","delete-slice","rest","sum-lengths","head*","infimum","remove!","glue","slice-error","subseq","push","replace-slice","subseq-as","unclip-last"],"math-builtin":["number=","next-power-of-2","?1+","fp-special?","imaginary-part","float>bits","number?","fp-infinity?","bignum?","fp-snan?","denominator","gcd","*","+","fp-bitwise=","-","u>=","/",">=","bitand","power-of-2?","log2-expects-positive","neg?","<","log2",">","integer?","number","bits>double","2/","zero?","bits>float","float?","shift","ratio?","rect>","even?","ratio","fp-sign","bitnot",">fixnum","complex?","/i","integer>fixnum","/f","sgn",">bignum","next-float","u<","u>","mod","recip","rational",">float","2^","integer","fixnum?","neg","fixnum","sq","bignum",">rect","bit?","fp-qnan?","simple-gcd","complex","<fp-nan>","real",">fraction","double>bits","bitor","rem","fp-nan-payload","real-part","log2-expects-positive?","prev-float","align","unordered?","float","fp-nan?","abs","bitxor","integer>fixnum-strict","u<=","odd?","<=","/mod",">integer","real?","rational?","numerator"]}).forEach(function(e){r[e].pattern=i(s[e])}),r.combinators.pattern=i(["2bi","while","2tri","bi*","4dip","both?","same?","tri@","curry","prepose","3bi","?if","tri*","2keep","3keep","curried","2keepd","when","2bi*","2tri*","4keep","bi@","keepdd","do","unless*","tri-curry","if*","loop","bi-curry*","when*","2bi@","2tri@","with","2with","either?","bi","until","3dip","3curry","tri-curry*","tri-curry@","bi-curry","keepd","compose","2dip","if","3tri","unless","tuple","keep","2curry","tri","most","while*","dip","composed","bi-curry@","find-last-from","trim-head-slice","map-as","each-from","none?","trim-tail","partition","if-empty","accumulate*","reject!","find-from","accumulate-as","collector-for-as","reject","map","map-sum","accumulate!","2each-from","follow","supremum-by","map!","unless-empty","collector","padding","reduce-index","replicate-as","infimum-by","trim-tail-slice","count","find-index","filter","accumulate*!","reject-as","map-integers","map-find","reduce","selector","interleave","2map","filter-as","binary-reduce","map-index-as","find","produce","filter!","replicate","cartesian-map","cartesian-each","find-index-from","map-find-last","3map-as","3map","find-last","selector-as","2map-as","2map-reduce","accumulate","each","each-index","accumulate*-as","when-empty","all?","collector-as","push-either","new-like","collector-for","2selector","push-if","2all?","map-reduce","3each","any?","trim-slice","2reduce","change-nth","produce-as","2each","trim","trim-head","cartesian-find","map-index","if-zero","each-integer","unless-zero","(find-integer)","when-zero","find-last-integer","(all-integers?)","times","(each-integer)","find-integer","all-integers?","unless-negative","if-positive","when-positive","when-negative","unless-positive","if-negative","case","2cleave","cond>quot","case>quot","3cleave","wrong-values","to-fixed-point","alist>quot","cond","cleave","call-effect","recursive-hashcode","spread","deep-spread>quot","2||","0||","n||","0&&","2&&","3||","1||","1&&","n&&","3&&","smart-unless*","keep-inputs","reduce-outputs","smart-when*","cleave>array","smart-with","smart-apply","smart-if","inputs/outputs","output>sequence-n","map-outputs","map-reduce-outputs","dropping","output>array","smart-map-reduce","smart-2map-reduce","output>array-n","nullary","input<sequence","append-outputs","drop-inputs","inputs","smart-2reduce","drop-outputs","smart-reduce","preserving","smart-when","outputs","append-outputs-as","smart-unless","smart-if*","sum-outputs","input<sequence-unsafe","output>sequence"]),e.languages.factor=r}t.exports=r,r.displayName="factor",r.aliases=[]},744916,(e,t,n)=>{"use strict";function r(e){e.languages.false={comment:{pattern:/\{[^}]*\}/},string:{pattern:/"[^"]*"/,greedy:!0},"character-code":{pattern:/'(?:[^\r]|\r\n?)/,alias:"number"},"assembler-code":{pattern:/\d+`/,alias:"important"},number:/\d+/,operator:/[-!#$%&'*+,./:;=>?@\\^_`|~ßø]/,punctuation:/\[|\]/,variable:/[a-z]/,"non-standard":{pattern:/[()<BDO®]/,alias:"bold"}}}t.exports=r,r.displayName="$false",r.aliases=[]},743357,(e,t,n)=>{"use strict";function r(e){e.languages["firestore-security-rules"]=e.languages.extend("clike",{comment:/\/\/.*/,keyword:/\b(?:allow|function|if|match|null|return|rules_version|service)\b/,operator:/&&|\|\||[<>!=]=?|[-+*/%]|\b(?:in|is)\b/}),delete e.languages["firestore-security-rules"]["class-name"],e.languages.insertBefore("firestore-security-rules","keyword",{path:{pattern:/(^|[\s(),])(?:\/(?:[\w\xA0-\uFFFF]+|\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)))+/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)/,inside:{operator:/=/,keyword:/\*\*/,punctuation:/[.$(){}]/}},punctuation:/\//}},method:{pattern:/(\ballow\s+)[a-z]+(?:\s*,\s*[a-z]+)*(?=\s*[:;])/,lookbehind:!0,alias:"builtin",inside:{punctuation:/,/}}})}t.exports=r,r.displayName="firestoreSecurityRules",r.aliases=[]},921861,(e,t,n)=>{"use strict";function r(e){e.languages.flow=e.languages.extend("javascript",{}),e.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|any|mixed|null|void)\b/,alias:"tag"}]}),e.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete e.languages.flow.parameter,e.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(e.languages.flow.keyword)||(e.languages.flow.keyword=[e.languages.flow.keyword]),e.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})}t.exports=r,r.displayName="flow",r.aliases=[]},334736,(e,t,n)=>{"use strict";function r(e){e.languages.fortran={"quoted-number":{pattern:/[BOZ](['"])[A-F0-9]+\1/i,alias:"number"},string:{pattern:/(?:\b\w+_)?(['"])(?:\1\1|&(?:\r\n?|\n)(?:[ \t]*!.*(?:\r\n?|\n)|(?![ \t]*!))|(?!\1).)*(?:\1|&)/,inside:{comment:{pattern:/(&(?:\r\n?|\n)\s*)!.*/,lookbehind:!0}}},comment:{pattern:/!.*/,greedy:!0},boolean:/\.(?:FALSE|TRUE)\.(?:_\w+)?/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[ED][+-]?\d+)?(?:_\w+)?/i,keyword:[/\b(?:CHARACTER|COMPLEX|DOUBLE ?PRECISION|INTEGER|LOGICAL|REAL)\b/i,/\b(?:END ?)?(?:BLOCK ?DATA|DO|FILE|FORALL|FUNCTION|IF|INTERFACE|MODULE(?! PROCEDURE)|PROGRAM|SELECT|SUBROUTINE|TYPE|WHERE)\b/i,/\b(?:ALLOCATABLE|ALLOCATE|BACKSPACE|CALL|CASE|CLOSE|COMMON|CONTAINS|CONTINUE|CYCLE|DATA|DEALLOCATE|DIMENSION|DO|END|EQUIVALENCE|EXIT|EXTERNAL|FORMAT|GO ?TO|IMPLICIT(?: NONE)?|INQUIRE|INTENT|INTRINSIC|MODULE PROCEDURE|NAMELIST|NULLIFY|OPEN|OPTIONAL|PARAMETER|POINTER|PRINT|PRIVATE|PUBLIC|READ|RETURN|REWIND|SAVE|SELECT|STOP|TARGET|WHILE|WRITE)\b/i,/\b(?:ASSIGNMENT|DEFAULT|ELEMENTAL|ELSE|ELSEIF|ELSEWHERE|ENTRY|IN|INCLUDE|INOUT|KIND|NULL|ONLY|OPERATOR|OUT|PURE|RECURSIVE|RESULT|SEQUENCE|STAT|THEN|USE)\b/i],operator:[/\*\*|\/\/|=>|[=\/]=|[<>]=?|::|[+\-*=%]|\.[A-Z]+\./i,{pattern:/(^|(?!\().)\/(?!\))/,lookbehind:!0}],punctuation:/\(\/|\/\)|[(),;:&]/}}t.exports=r,r.displayName="fortran",r.aliases=[]},451584,(e,t,n)=>{"use strict";function r(e){e.languages.fsharp=e.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\(\*(?!\))[\s\S]*?\*\)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(?:"""[\s\S]*?"""|@"(?:""|[^"])*"|"(?:\\[\s\S]|[^\\"])*")B?/,greedy:!0},"class-name":{pattern:/(\b(?:exception|inherit|interface|new|of|type)\s+|\w\s*:\s*|\s:\??>\s*)[.\w]+\b(?:\s*(?:->|\*)\s*[.\w]+\b)*(?!\s*[:.])/,lookbehind:!0,inside:{operator:/->|\*/,punctuation:/\./}},keyword:/\b(?:let|return|use|yield)(?:!\B|\b)|\b(?:abstract|and|as|asr|assert|atomic|base|begin|break|checked|class|component|const|constraint|constructor|continue|default|delegate|do|done|downcast|downto|eager|elif|else|end|event|exception|extern|external|false|finally|fixed|for|fun|function|functor|global|if|in|include|inherit|inline|interface|internal|land|lazy|lor|lsl|lsr|lxor|match|member|method|mixin|mod|module|mutable|namespace|new|not|null|object|of|open|or|override|parallel|private|process|protected|public|pure|rec|sealed|select|sig|static|struct|tailcall|then|to|trait|true|try|type|upcast|val|virtual|void|volatile|when|while|with)\b/,number:[/\b0x[\da-fA-F]+(?:LF|lf|un)?\b/,/\b0b[01]+(?:uy|y)?\b/,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[fm]|e[+-]?\d+)?\b/i,/\b\d+(?:[IlLsy]|UL|u[lsy]?)?\b/],operator:/([<>~&^])\1\1|([*.:<>&])\2|<-|->|[!=:]=|<?\|{1,3}>?|\??(?:<=|>=|<>|[-+*/%=<>])\??|[!?^&]|~[+~-]|:>|:\?>?/}),e.languages.insertBefore("fsharp","keyword",{preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(^#)\b(?:else|endif|if|light|line|nowarn)\b/,lookbehind:!0,alias:"keyword"}}}}),e.languages.insertBefore("fsharp","punctuation",{"computation-expression":{pattern:/\b[_a-z]\w*(?=\s*\{)/i,alias:"keyword"}}),e.languages.insertBefore("fsharp","string",{annotation:{pattern:/\[<.+?>\]/,greedy:!0,inside:{punctuation:/^\[<|>\]$/,"class-name":{pattern:/^\w+$|(^|;\s*)[A-Z]\w*(?=\()/,lookbehind:!0},"annotation-content":{pattern:/[\s\S]+/,inside:e.languages.fsharp}}},char:{pattern:/'(?:[^\\']|\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8}))'B?/,greedy:!0}})}t.exports=r,r.displayName="fsharp",r.aliases=[]},219299,(e,t,n)=>{"use strict";var r=e.r(426226);function a(e){e.register(r);for(var t=/[^<()"']|\((?:<expr>)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source,n=0;n<2;n++)t=t.replace(/<expr>/g,function(){return t});t=t.replace(/<expr>/g,/[^\s\S]/.source);var a={comment:/<#--[\s\S]*?-->/,string:[{pattern:/\br("|')(?:(?!\1)[^\\]|\\.)*\1/,greedy:!0},{pattern:RegExp(/("|')(?:(?!\1|\$\{)[^\\]|\\.|\$\{(?:(?!\})(?:<expr>))*\})*\1/.source.replace(/<expr>/g,function(){return t})),greedy:!0,inside:{interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\\\)*)\$\{(?:(?!\})(?:<expr>))*\}/.source.replace(/<expr>/g,function(){return t})),lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:null}}}}],keyword:/\b(?:as)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/((?:^|[^?])\?\s*)\w+/,lookbehind:!0,alias:"function"},function:/\b\w+(?=\s*\()/,number:/\b\d+(?:\.\d+)?\b/,operator:/\.\.[<*!]?|->|--|\+\+|&&|\|\||\?{1,2}|[-+*/%!=<>]=?|\b(?:gt|gte|lt|lte)\b/,punctuation:/[,;.:()[\]{}]/};a.string[1].inside.interpolation.inside.rest=a,e.languages.ftl={"ftl-comment":{pattern:/^<#--[\s\S]*/,alias:"comment"},"ftl-directive":{pattern:/^<[\s\S]+>$/,inside:{directive:{pattern:/(^<\/?)[#@][a-z]\w*/i,lookbehind:!0,alias:"keyword"},punctuation:/^<\/?|\/?>$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:a}}},"ftl-interpolation":{pattern:/^\$\{[\s\S]*\}$/,inside:{punctuation:/^\$\{|\}$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:a}}}},e.hooks.add("before-tokenize",function(n){var r=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:<expr>)*?>|\$\{(?:<expr>)*?\}/.source.replace(/<expr>/g,function(){return t}),"gi");e.languages["markup-templating"].buildPlaceholders(n,"ftl",r)}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"ftl")})}t.exports=a,a.displayName="ftl",a.aliases=[]},971396,(e,t,n)=>{"use strict";function r(e){e.languages.gap={shell:{pattern:/^gap>[\s\S]*?(?=^gap>|$(?![\s\S]))/m,greedy:!0,inside:{gap:{pattern:/^(gap>).+(?:(?:\r(?:\n|(?!\n))|\n)>.*)*/,lookbehind:!0,inside:null},punctuation:/^gap>/}},comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(^|[^\\'"])(?:'(?:[^\r\n\\']|\\.){1,10}'|"(?:[^\r\n\\"]|\\.)*"(?!")|"""[\s\S]*?""")/,lookbehind:!0,greedy:!0,inside:{continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"}}},keyword:/\b(?:Assert|Info|IsBound|QUIT|TryNextMethod|Unbind|and|atomic|break|continue|do|elif|else|end|fi|for|function|if|in|local|mod|not|od|or|quit|readonly|readwrite|rec|repeat|return|then|until|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"},operator:/->|[-+*/^~=!]|<>|[<>]=?|:=|\.\./,punctuation:/[()[\]{},;.:]/},e.languages.gap.shell.inside.gap.inside=e.languages.gap}t.exports=r,r.displayName="gap",r.aliases=[]},687072,(e,t,n)=>{"use strict";function r(e){e.languages.gcode={comment:/;.*|\B\(.*?\)\B/,string:{pattern:/"(?:""|[^"])*"/,greedy:!0},keyword:/\b[GM]\d+(?:\.\d+)?\b/,property:/\b[A-Z]/,checksum:{pattern:/(\*)\d+/,lookbehind:!0,alias:"number"},punctuation:/[:*]/}}t.exports=r,r.displayName="gcode",r.aliases=[]},995101,(e,t,n)=>{"use strict";function r(e){e.languages.gdscript={comment:/#.*/,string:{pattern:/@?(?:("|')(?:(?!\1)[^\n\\]|\\[\s\S])*\1(?!"|')|"""(?:[^\\]|\\[\s\S])*?""")/,greedy:!0},"class-name":{pattern:/(^(?:class|class_name|extends)[ \t]+|^export\([ \t]*|\bas[ \t]+|(?:\b(?:const|var)[ \t]|[,(])[ \t]*\w+[ \t]*:[ \t]*|->[ \t]*)[a-zA-Z_]\w*/m,lookbehind:!0},keyword:/\b(?:and|as|assert|break|breakpoint|class|class_name|const|continue|elif|else|enum|export|extends|for|func|if|in|is|master|mastersync|match|not|null|onready|or|pass|preload|puppet|puppetsync|remote|remotesync|return|self|setget|signal|static|tool|var|while|yield)\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,variable:/\$\w+/,number:[/\b0b[01_]+\b|\b0x[\da-fA-F_]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.[\d_]+)(?:e[+-]?[\d_]+)?\b/,/\b(?:INF|NAN|PI|TAU)\b/],constant:/\b[A-Z][A-Z_\d]*\b/,boolean:/\b(?:false|true)\b/,operator:/->|:=|&&|\|\||<<|>>|[-+*/%&|!<>=]=?|[~^]/,punctuation:/[.:,;()[\]{}]/}}t.exports=r,r.displayName="gdscript",r.aliases=[]},622661,(e,t,n)=>{"use strict";function r(e){e.languages.gedcom={"line-value":{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?\w+ ).+/m,lookbehind:!0,inside:{pointer:{pattern:/^@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@$/,alias:"variable"}}},tag:{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?)\w+/m,lookbehind:!0,alias:"string"},level:{pattern:/(^[\t ]*)\d+/m,lookbehind:!0,alias:"number"},pointer:{pattern:/@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@/,alias:"variable"}}}t.exports=r,r.displayName="gedcom",r.aliases=[]},555689,(e,t,n)=>{"use strict";function r(e){var t;t=/(?:\r?\n|\r)[ \t]*\|.+\|(?:(?!\|).)*/.source,e.languages.gherkin={pystring:{pattern:/("""|''')[\s\S]+?\1/,alias:"string"},comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},tag:{pattern:/(^[ \t]*)@\S*/m,lookbehind:!0},feature:{pattern:/((?:^|\r?\n|\r)[ \t]*)(?:Ability|Ahoy matey!|Arwedd|Aspekt|Besigheid Behoefte|Business Need|Caracteristica|Característica|Egenskab|Egenskap|Eiginleiki|Feature|Fīča|Fitur|Fonctionnalité|Fonksyonalite|Funcionalidade|Funcionalitat|Functionalitate|Funcţionalitate|Funcționalitate|Functionaliteit|Fungsi|Funkcia|Funkcija|Funkcionalitāte|Funkcionalnost|Funkcja|Funksie|Funktionalität|Funktionalitéit|Funzionalità|Hwaet|Hwæt|Jellemző|Karakteristik|Lastnost|Mak|Mogucnost|laH|Mogućnost|Moznosti|Možnosti|OH HAI|Omadus|Ominaisuus|Osobina|Özellik|Potrzeba biznesowa|perbogh|poQbogh malja'|Požadavek|Požiadavka|Pretty much|Qap|Qu'meH 'ut|Savybė|Tính năng|Trajto|Vermoë|Vlastnosť|Właściwość|Značilnost|Δυνατότητα|Λειτουργία|Могућност|Мөмкинлек|Особина|Свойство|Үзенчәлеклелек|Функционал|Функционалност|Функция|Функціонал|תכונה|خاصية|خصوصیت|صلاحیت|کاروبار کی ضرورت|وِیژگی|रूप लेख|ਖਾਸੀਅਤ|ਨਕਸ਼ ਨੁਹਾਰ|ਮੁਹਾਂਦਰਾ|గుణము|ಹೆಚ್ಚಳ|ความต้องการทางธุรกิจ|ความสามารถ|โครงหลัก|기능|フィーチャ|功能|機能):(?:[^:\r\n]+(?:\r?\n|\r|$))*/,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]+/,lookbehind:!0},keyword:/[^:\r\n]+:/}},scenario:{pattern:/(^[ \t]*)(?:Abstract Scenario|Abstrakt Scenario|Achtergrond|Aer|Ær|Agtergrond|All y'all|Antecedentes|Antecedents|Atburðarás|Atburðarásir|Awww, look mate|B4|Background|Baggrund|Bakgrund|Bakgrunn|Bakgrunnur|Beispiele|Beispiller|Bối cảnh|Cefndir|Cenario|Cenário|Cenario de Fundo|Cenário de Fundo|Cenarios|Cenários|Contesto|Context|Contexte|Contexto|Conto|Contoh|Contone|Dæmi|Dasar|Dead men tell no tales|Delineacao do Cenario|Delineação do Cenário|Dis is what went down|Dữ liệu|Dyagram Senaryo|Dyagram senaryo|Egzanp|Ejemplos|Eksempler|Ekzemploj|Enghreifftiau|Esbozo do escenario|Escenari|Escenario|Esempi|Esquema de l'escenari|Esquema del escenario|Esquema do Cenario|Esquema do Cenário|EXAMPLZ|Examples|Exempel|Exemple|Exemples|Exemplos|First off|Fono|Forgatókönyv|Forgatókönyv vázlat|Fundo|Geçmiş|Grundlage|Hannergrond|ghantoH|Háttér|Heave to|Istorik|Juhtumid|Keadaan|Khung kịch bản|Khung tình huống|Kịch bản|Koncept|Konsep skenario|Kontèks|Kontekst|Kontekstas|Konteksts|Kontext|Konturo de la scenaro|Latar Belakang|lut chovnatlh|lut|lutmey|Lýsing Atburðarásar|Lýsing Dæma|MISHUN SRSLY|MISHUN|Menggariskan Senario|mo'|Náčrt Scenára|Náčrt Scénáře|Náčrt Scenáru|Oris scenarija|Örnekler|Osnova|Osnova Scenára|Osnova scénáře|Osnutek|Ozadje|Paraugs|Pavyzdžiai|Példák|Piemēri|Plan du scénario|Plan du Scénario|Plan Senaryo|Plan senaryo|Plang vum Szenario|Pozadí|Pozadie|Pozadina|Príklady|Příklady|Primer|Primeri|Primjeri|Przykłady|Raamstsenaarium|Reckon it's like|Rerefons|Scenár|Scénář|Scenarie|Scenarij|Scenarijai|Scenarijaus šablonas|Scenariji|Scenārijs|Scenārijs pēc parauga|Scenarijus|Scenario|Scénario|Scenario Amlinellol|Scenario Outline|Scenario Template|Scenariomal|Scenariomall|Scenarios|Scenariu|Scenariusz|Scenaro|Schema dello scenario|Se ðe|Se the|Se þe|Senario|Senaryo Deskripsyon|Senaryo deskripsyon|Senaryo|Senaryo taslağı|Shiver me timbers|Situācija|Situai|Situasie Uiteensetting|Situasie|Skenario konsep|Skenario|Skica|Structura scenariu|Structură scenariu|Struktura scenarija|Stsenaarium|Swa hwaer swa|Swa|Swa hwær swa|Szablon scenariusza|Szenario|Szenariogrundriss|Tapaukset|Tapaus|Tapausaihio|Taust|Tausta|Template Keadaan|Template Senario|Template Situai|The thing of it is|Tình huống|Variantai|Voorbeelde|Voorbeelden|Wharrimean is|Yo-ho-ho|You'll wanna|Założenia|Παραδείγματα|Περιγραφή Σεναρίου|Σενάρια|Σενάριο|Υπόβαθρο|Кереш|Контекст|Концепт|Мисаллар|Мисоллар|Основа|Передумова|Позадина|Предистория|Предыстория|Приклади|Пример|Примери|Примеры|Рамка на сценарий|Скица|Структура сценарија|Структура сценария|Структура сценарію|Сценарий|Сценарий структураси|Сценарийның төзелеше|Сценарији|Сценарио|Сценарій|Тарих|Үрнәкләр|דוגמאות|רקע|תבנית תרחיש|תרחיש|الخلفية|الگوی سناریو|امثلة|پس منظر|زمینه|سناریو|سيناريو|سيناريو مخطط|مثالیں|منظر نامے کا خاکہ|منظرنامہ|نمونه ها|उदाहरण|परिदृश्य|परिदृश्य रूपरेखा|पृष्ठभूमि|ਉਦਾਹਰਨਾਂ|ਪਟਕਥਾ|ਪਟਕਥਾ ਢਾਂਚਾ|ਪਟਕਥਾ ਰੂਪ ਰੇਖਾ|ਪਿਛੋਕੜ|ఉదాహరణలు|కథనం|నేపథ్యం|సన్నివేశం|ಉದಾಹರಣೆಗಳು|ಕಥಾಸಾರಾಂಶ|ವಿವರಣೆ|ಹಿನ್ನೆಲೆ|โครงสร้างของเหตุการณ์|ชุดของตัวอย่าง|ชุดของเหตุการณ์|แนวคิด|สรุปเหตุการณ์|เหตุการณ์|배경|시나리오|시나리오 개요|예|サンプル|シナリオ|シナリオアウトライン|シナリオテンプレ|シナリオテンプレート|テンプレ|例|例子|剧本|剧本大纲|劇本|劇本大綱|场景|场景大纲|場景|場景大綱|背景):[^:\r\n]*/m,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]*/,lookbehind:!0},keyword:/[^:\r\n]+:/}},"table-body":{pattern:RegExp("("+t+")(?:"+t+")+"),lookbehind:!0,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"},td:{pattern:/\s*[^\s|][^|]*/,alias:"string"},punctuation:/\|/}},"table-head":{pattern:RegExp(t),inside:{th:{pattern:/\s*[^\s|][^|]*/,alias:"variable"},punctuation:/\|/}},atrule:{pattern:/(^[ \t]+)(?:'a|'ach|'ej|7|a|A také|A taktiež|A tiež|A zároveň|Aber|Ac|Adott|Akkor|Ak|Aleshores|Ale|Ali|Allora|Alors|Als|Ama|Amennyiben|Amikor|Ampak|an|AN|Ananging|And y'all|And|Angenommen|Anrhegedig a|An|Apabila|Atès|Atesa|Atunci|Avast!|Aye|A|awer|Bagi|Banjur|Bet|Biết|Blimey!|Buh|But at the end of the day I reckon|But y'all|But|BUT|Cal|Când|Cand|Cando|Ce|Cuando|Če|Ða ðe|Ða|Dadas|Dada|Dados|Dado|DaH ghu' bejlu'|dann|Dann|Dano|Dan|Dar|Dat fiind|Data|Date fiind|Date|Dati fiind|Dati|Daţi fiind|Dați fiind|DEN|Dato|De|Den youse gotta|Dengan|Diberi|Diyelim ki|Donada|Donat|Donitaĵo|Do|Dun|Duota|Ðurh|Eeldades|Ef|Eğer ki|Entao|Então|Entón|E|En|Entonces|Epi|És|Etant donnée|Etant donné|Et|Étant données|Étant donnée|Étant donné|Etant données|Etant donnés|Étant donnés|Fakat|Gangway!|Gdy|Gegeben seien|Gegeben sei|Gegeven|Gegewe|ghu' noblu'|Gitt|Given y'all|Given|Givet|Givun|Ha|Cho|I CAN HAZ|In|Ir|It's just unbelievable|I|Ja|Jeśli|Jeżeli|Kad|Kada|Kadar|Kai|Kaj|Když|Keď|Kemudian|Ketika|Khi|Kiedy|Ko|Kuid|Kui|Kun|Lan|latlh|Le sa a|Let go and haul|Le|Lè sa a|Lè|Logo|Lorsqu'<|Lorsque|mä|Maar|Mais|Mając|Ma|Majd|Maka|Manawa|Mas|Men|Menawa|Mutta|Nalika|Nalikaning|Nanging|Når|När|Nato|Nhưng|Niin|Njuk|O zaman|Och|Og|Oletetaan|Ond|Onda|Oraz|Pak|Pero|Però|Podano|Pokiaľ|Pokud|Potem|Potom|Privzeto|Pryd|Quan|Quand|Quando|qaSDI'|Så|Sed|Se|Siis|Sipoze ke|Sipoze Ke|Sipoze|Si|Şi|Și|Soit|Stel|Tada|Tad|Takrat|Tak|Tapi|Ter|Tetapi|Tha the|Tha|Then y'all|Then|Thì|Thurh|Toda|Too right|Un|Und|ugeholl|Và|vaj|Vendar|Ve|wann|Wanneer|WEN|Wenn|When y'all|When|Wtedy|Wun|Y'know|Yeah nah|Yna|Youse know like when|Youse know when youse got|Y|Za predpokladu|Za předpokladu|Zadan|Zadani|Zadano|Zadate|Zadato|Zakładając|Zaradi|Zatati|Þa þe|Þa|Þá|Þegar|Þurh|Αλλά|Δεδομένου|Και|Όταν|Τότε|А також|Агар|Але|Али|Аммо|А|Әгәр|Әйтик|Әмма|Бирок|Ва|Вә|Дадено|Дано|Допустим|Если|Задате|Задати|Задато|И|І|К тому же|Када|Кад|Когато|Когда|Коли|Ләкин|Лекин|Нәтиҗәдә|Нехай|Но|Онда|Припустимо, що|Припустимо|Пусть|Также|Та|Тогда|Тоді|То|Унда|Һәм|Якщо|אבל|אזי|אז|בהינתן|וגם|כאשר|آنگاه|اذاً|اگر|اما|اور|با فرض|بالفرض|بفرض|پھر|تب|ثم|جب|عندما|فرض کیا|لكن|لیکن|متى|هنگامی|و|अगर|और|कदा|किन्तु|चूंकि|जब|तथा|तदा|तब|परन्तु|पर|यदि|ਅਤੇ|ਜਦੋਂ|ਜਿਵੇਂ ਕਿ|ਜੇਕਰ|ਤਦ|ਪਰ|అప్పుడు|ఈ పరిస్థితిలో|కాని|చెప్పబడినది|మరియు|ಆದರೆ|ನಂತರ|ನೀಡಿದ|ಮತ್ತು|ಸ್ಥಿತಿಯನ್ನು|กำหนดให้|ดังนั้น|แต่|เมื่อ|และ|그러면<|그리고<|단<|만약<|만일<|먼저<|조건<|하지만<|かつ<|しかし<|ただし<|ならば<|もし<|並且<|但し<|但是<|假如<|假定<|假設<|假设<|前提<|同时<|同時<|并且<|当<|當<|而且<|那么<|那麼<)(?=[ \t])/m,lookbehind:!0},string:{pattern:/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"}}},outline:{pattern:/<[^>]+>/,alias:"variable"}}}t.exports=r,r.displayName="gherkin",r.aliases=[]},406772,(e,t,n)=>{"use strict";function r(e){e.languages.git={comment:/^#.*/m,deleted:/^[-–].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m}}t.exports=r,r.displayName="git",r.aliases=[]},999394,(e,t,n)=>{"use strict";var r=e.r(835801);function a(e){e.register(r),e.languages.glsl=e.languages.extend("c",{keyword:/\b(?:active|asm|atomic_uint|attribute|[ibdu]?vec[234]|bool|break|buffer|case|cast|centroid|class|coherent|common|const|continue|d?mat[234](?:x[234])?|default|discard|do|double|else|enum|extern|external|false|filter|fixed|flat|float|for|fvec[234]|goto|half|highp|hvec[234]|[iu]?sampler2DMS(?:Array)?|[iu]?sampler2DRect|[iu]?samplerBuffer|[iu]?samplerCube|[iu]?samplerCubeArray|[iu]?sampler[123]D|[iu]?sampler[12]DArray|[iu]?image2DMS(?:Array)?|[iu]?image2DRect|[iu]?imageBuffer|[iu]?imageCube|[iu]?imageCubeArray|[iu]?image[123]D|[iu]?image[12]DArray|if|in|inline|inout|input|int|interface|invariant|layout|long|lowp|mediump|namespace|noinline|noperspective|out|output|partition|patch|precise|precision|public|readonly|resource|restrict|return|sample|sampler[12]DArrayShadow|sampler[12]DShadow|sampler2DRectShadow|sampler3DRect|samplerCubeArrayShadow|samplerCubeShadow|shared|short|sizeof|smooth|static|struct|subroutine|superp|switch|template|this|true|typedef|uint|uniform|union|unsigned|using|varying|void|volatile|while|writeonly)\b/})}t.exports=a,a.displayName="glsl",a.aliases=[]},300638,(e,t,n)=>{"use strict";function r(e){e.languages.gamemakerlanguage=e.languages.gml=e.languages.extend("clike",{keyword:/\b(?:break|case|continue|default|do|else|enum|exit|for|globalvar|if|repeat|return|switch|until|var|while)\b/,number:/(?:\b0x[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ulf]{0,4}/i,operator:/--|\+\+|[-+%/=]=?|!=|\*\*?=?|<[<=>]?|>[=>]?|&&?|\^\^?|\|\|?|~|\b(?:and|at|not|or|with|xor)\b/,constant:/\b(?:GM_build_date|GM_version|action_(?:continue|restart|reverse|stop)|all|gamespeed_(?:fps|microseconds)|global|local|noone|other|pi|pointer_(?:invalid|null)|self|timezone_(?:local|utc)|undefined|ev_(?:create|destroy|step|alarm|keyboard|mouse|collision|other|draw|draw_(?:begin|end|post|pre)|keypress|keyrelease|trigger|(?:left|middle|no|right)_button|(?:left|middle|right)_press|(?:left|middle|right)_release|mouse_(?:enter|leave|wheel_down|wheel_up)|global_(?:left|middle|right)_button|global_(?:left|middle|right)_press|global_(?:left|middle|right)_release|joystick(?:1|2)_(?:button1|button2|button3|button4|button5|button6|button7|button8|down|left|right|up)|outside|boundary|game_start|game_end|room_start|room_end|no_more_lives|animation_end|end_of_path|no_more_health|user\d|gui|gui_begin|gui_end|step_(?:begin|end|normal))|vk_(?:alt|anykey|backspace|control|delete|down|end|enter|escape|home|insert|left|nokey|pagedown|pageup|pause|printscreen|return|right|shift|space|tab|up|f\d|numpad\d|add|decimal|divide|lalt|lcontrol|lshift|multiply|ralt|rcontrol|rshift|subtract)|achievement_(?:filter_(?:all_players|favorites_only|friends_only)|friends_info|info|leaderboard_info|our_info|pic_loaded|show_(?:achievement|bank|friend_picker|leaderboard|profile|purchase_prompt|ui)|type_challenge|type_score_challenge)|asset_(?:font|object|path|room|script|shader|sound|sprite|tiles|timeline|unknown)|audio_(?:3d|falloff_(?:exponent_distance|exponent_distance_clamped|inverse_distance|inverse_distance_clamped|linear_distance|linear_distance_clamped|none)|mono|new_system|old_system|stereo)|bm_(?:add|complex|dest_alpha|dest_color|dest_colour|inv_dest_alpha|inv_dest_color|inv_dest_colour|inv_src_alpha|inv_src_color|inv_src_colour|max|normal|one|src_alpha|src_alpha_sat|src_color|src_colour|subtract|zero)|browser_(?:chrome|firefox|ie|ie_mobile|not_a_browser|opera|safari|safari_mobile|tizen|unknown|windows_store)|buffer_(?:bool|f16|f32|f64|fast|fixed|generalerror|grow|invalidtype|network|outofbounds|outofspace|s16|s32|s8|seek_end|seek_relative|seek_start|string|text|u16|u32|u64|u8|vbuffer|wrap)|c_(?:aqua|black|blue|dkgray|fuchsia|gray|green|lime|ltgray|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow)|cmpfunc_(?:always|equal|greater|greaterequal|less|lessequal|never|notequal)|cr_(?:appstart|arrow|beam|cross|default|drag|handpoint|hourglass|none|size_all|size_nesw|size_ns|size_nwse|size_we|uparrow)|cull_(?:clockwise|counterclockwise|noculling)|device_(?:emulator|tablet)|device_ios_(?:ipad|ipad_retina|iphone|iphone5|iphone6|iphone6plus|iphone_retina|unknown)|display_(?:landscape|landscape_flipped|portrait|portrait_flipped)|dll_(?:cdecl|cdel|stdcall)|ds_type_(?:grid|list|map|priority|queue|stack)|ef_(?:cloud|ellipse|explosion|firework|flare|rain|ring|smoke|smokeup|snow|spark|star)|fa_(?:archive|bottom|center|directory|hidden|left|middle|readonly|right|sysfile|top|volumeid)|fb_login_(?:default|fallback_to_webview|forcing_safari|forcing_webview|no_fallback_to_webview|use_system_account)|iap_(?:available|canceled|ev_consume|ev_product|ev_purchase|ev_restore|ev_storeload|failed|purchased|refunded|status_available|status_loading|status_processing|status_restoring|status_unavailable|status_uninitialised|storeload_failed|storeload_ok|unavailable)|leaderboard_type_(?:number|time_mins_secs)|lighttype_(?:dir|point)|matrix_(?:projection|view|world)|mb_(?:any|left|middle|none|right)|network_(?:config_(?:connect_timeout|disable_reliable_udp|enable_reliable_udp|use_non_blocking_socket)|socket_(?:bluetooth|tcp|udp)|type_(?:connect|data|disconnect|non_blocking_connect))|of_challenge_(?:lose|tie|win)|os_(?:android|ios|linux|macosx|ps3|ps4|psvita|unknown|uwp|win32|win8native|windows|winphone|xboxone)|phy_debug_render_(?:aabb|collision_pairs|coms|core_shapes|joints|obb|shapes)|phy_joint_(?:anchor_1_x|anchor_1_y|anchor_2_x|anchor_2_y|angle|angle_limits|damping_ratio|frequency|length_1|length_2|lower_angle_limit|max_force|max_length|max_motor_force|max_motor_torque|max_torque|motor_force|motor_speed|motor_torque|reaction_force_x|reaction_force_y|reaction_torque|speed|translation|upper_angle_limit)|phy_particle_data_flag_(?:category|color|colour|position|typeflags|velocity)|phy_particle_flag_(?:colormixing|colourmixing|elastic|powder|spring|tensile|viscous|wall|water|zombie)|phy_particle_group_flag_(?:rigid|solid)|pr_(?:linelist|linestrip|pointlist|trianglefan|trianglelist|trianglestrip)|ps_(?:distr|shape)_(?:diamond|ellipse|gaussian|invgaussian|line|linear|rectangle)|pt_shape_(?:circle|cloud|disk|explosion|flare|line|pixel|ring|smoke|snow|spark|sphere|square|star)|ty_(?:real|string)|gp_(?:face\d|axislh|axislv|axisrh|axisrv|padd|padl|padr|padu|select|shoulderl|shoulderlb|shoulderr|shoulderrb|start|stickl|stickr)|lb_disp_(?:none|numeric|time_ms|time_sec)|lb_sort_(?:ascending|descending|none)|ov_(?:achievements|community|friends|gamegroup|players|settings)|ugc_(?:filetype_(?:community|microtrans)|list_(?:Favorited|Followed|Published|Subscribed|UsedOrPlayed|VotedDown|VotedOn|VotedUp|WillVoteLater)|match_(?:AllGuides|Artwork|Collections|ControllerBindings|IntegratedGuides|Items|Items_Mtx|Items_ReadyToUse|Screenshots|UsableInGame|Videos|WebGuides)|query_(?:AcceptedForGameRankedByAcceptanceDate|CreatedByFriendsRankedByPublicationDate|FavoritedByFriendsRankedByPublicationDate|NotYetRated)|query_RankedBy(?:NumTimesReported|PublicationDate|TextSearch|TotalVotesAsc|Trend|Vote|VotesUp)|result_success|sortorder_CreationOrder(?:Asc|Desc)|sortorder_(?:ForModeration|LastUpdatedDesc|SubscriptionDateDesc|TitleAsc|VoteScoreDesc)|visibility_(?:friends_only|private|public))|vertex_usage_(?:binormal|blendindices|blendweight|color|colour|depth|fog|normal|position|psize|sample|tangent|texcoord|textcoord)|vertex_type_(?:float\d|color|colour|ubyte4)|input_type|layerelementtype_(?:background|instance|oldtilemap|particlesystem|sprite|tile|tilemap|undefined)|se_(?:chorus|compressor|echo|equalizer|flanger|gargle|none|reverb)|text_type|tile_(?:flip|index_mask|mirror|rotate)|(?:obj|rm|scr|spr)\w+)\b/,variable:/\b(?:alarm|application_surface|async_load|background_(?:alpha|blend|color|colour|foreground|height|hspeed|htiled|index|showcolor|showcolour|visible|vspeed|vtiled|width|x|xscale|y|yscale)|bbox_(?:bottom|left|right|top)|browser_(?:height|width)|caption_(?:health|lives|score)|current_(?:day|hour|minute|month|second|time|weekday|year)|cursor_sprite|debug_mode|delta_time|direction|display_aa|error_(?:last|occurred)|event_(?:action|number|object|type)|fps|fps_real|friction|game_(?:display|project|save)_(?:id|name)|gamemaker_(?:pro|registered|version)|gravity|gravity_direction|(?:h|v)speed|health|iap_data|id|image_(?:alpha|angle|blend|depth|index|number|speed|xscale|yscale)|instance_(?:count|id)|keyboard_(?:key|lastchar|lastkey|string)|layer|lives|mask_index|mouse_(?:button|lastbutton|x|y)|object_index|os_(?:browser|device|type|version)|path_(?:endaction|index|orientation|position|positionprevious|scale|speed)|persistent|phy_(?:rotation|(?:col_normal|collision|com|linear_velocity|position|speed)_(?:x|y)|angular_(?:damping|velocity)|position_(?:x|y)previous|speed|linear_damping|bullet|fixed_rotation|active|mass|inertia|dynamic|kinematic|sleeping|collision_points)|pointer_(?:invalid|null)|room|room_(?:caption|first|height|last|persistent|speed|width)|score|secure_mode|show_(?:health|lives|score)|solid|speed|sprite_(?:height|index|width|xoffset|yoffset)|temp_directory|timeline_(?:index|loop|position|running|speed)|transition_(?:color|kind|steps)|undefined|view_(?:angle|current|enabled|(?:h|v)(?:border|speed)|(?:h|w|x|y)port|(?:h|w|x|y)view|object|surface_id|visible)|visible|webgl_enabled|working_directory|(?:x|y)(?:previous|start)|x|y|argument(?:_relitive|_count|\d)|argument|global|local|other|self)\b/})}t.exports=r,r.displayName="gml",r.aliases=[]},217898,(e,t,n)=>{"use strict";function r(e){e.languages.gn={comment:{pattern:/#.*/,greedy:!0},"string-literal":{pattern:/(^|[^\\"])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[\s\S]*?\}|[a-zA-Z_]\w*|0x[a-fA-F0-9]{2})/,lookbehind:!0,inside:{number:/^\$0x[\s\S]{2}$/,variable:/^\$\w+$/,"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},keyword:/\b(?:else|if)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/\b(?:assert|defined|foreach|import|pool|print|template|tool|toolchain)(?=\s*\()/i,alias:"keyword"},function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:current_cpu|current_os|current_toolchain|default_toolchain|host_cpu|host_os|root_build_dir|root_gen_dir|root_out_dir|target_cpu|target_gen_dir|target_os|target_out_dir)\b/,number:/-?\b\d+\b/,operator:/[-+!=<>]=?|&&|\|\|/,punctuation:/[(){}[\],.]/},e.languages.gn["string-literal"].inside.interpolation.inside.expression.inside=e.languages.gn,e.languages.gni=e.languages.gn}t.exports=r,r.displayName="gn",r.aliases=["gni"]},93878,(e,t,n)=>{"use strict";function r(e){e.languages["go-mod"]=e.languages["go-module"]={comment:{pattern:/\/\/.*/,greedy:!0},version:{pattern:/(^|[\s()[\],])v\d+\.\d+\.\d+(?:[+-][-+.\w]*)?(?![^\s()[\],])/,lookbehind:!0,alias:"number"},"go-version":{pattern:/((?:^|\s)go\s+)\d+(?:\.\d+){1,2}/,lookbehind:!0,alias:"number"},keyword:{pattern:/^([ \t]*)(?:exclude|go|module|replace|require|retract)\b/m,lookbehind:!0},operator:/=>/,punctuation:/[()[\],]/}}t.exports=r,r.displayName="goModule",r.aliases=[]},484755,(e,t,n)=>{"use strict";function r(e){e.languages.go=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),e.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete e.languages.go["class-name"]}t.exports=r,r.displayName="go",r.aliases=[]},209595,(e,t,n)=>{"use strict";function r(e){e.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:e.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},e.hooks.add("after-tokenize",function(e){if("graphql"===e.language)for(var t=e.tokens.filter(function(e){return"string"!=typeof e&&"comment"!==e.type&&"scalar"!==e.type}),n=0;n<t.length;){var r=t[n++];if("keyword"===r.type&&"mutation"===r.content){var a=[];if(u(["definition-mutation","punctuation"])&&"("===t[n+1].content){n+=2;var i=d(/^\($/,/^\)$/);if(-1===i)continue;for(;n<i;n++){var s=t[n+0];"variable"===s.type&&(p(s,"variable-input"),a.push(s.content))}n=i+1}if(u(["punctuation","property-query"])&&"{"===t[n+0].content&&(p(t[++n+0],"property-mutation"),a.length>0)){var o=d(/^\{$/,/^\}$/);if(-1===o)continue;for(var l=n;l<o;l++){var c=t[l];"variable"===c.type&&a.indexOf(c.content)>=0&&p(c,"variable-input")}}}}function u(e,r){r=r||0;for(var a=0;a<e.length;a++){var i=t[n+(a+r)];if(!i||i.type!==e[a])return!1}return!0}function d(e,r){for(var a=1,i=n;i<t.length;i++){var s=t[i],o=s.content;if("punctuation"===s.type&&"string"==typeof o){if(e.test(o))a++;else if(r.test(o)&&0==--a)return i}}return -1}function p(e,t){var n=e.alias;n?Array.isArray(n)||(e.alias=n=[n]):e.alias=n=[],n.push(t)}})}t.exports=r,r.displayName="graphql",r.aliases=[]},775914,(e,t,n)=>{"use strict";function r(e){e.languages.groovy=e.languages.extend("clike",{string:[{pattern:/("""|''')(?:[^\\]|\\[\s\S])*?\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0},{pattern:/(["'/])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0}],keyword:/\b(?:abstract|as|assert|boolean|break|byte|case|catch|char|class|const|continue|def|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|in|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),e.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment"}}),e.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),e.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),e.hooks.add("wrap",function(t){if("groovy"===t.language&&"string"===t.type){var n=t.content.value[0];if("'"!=n){var r=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;"$"===n&&(r=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),t.content.value=t.content.value.replace(/</g,"<").replace(/&/g,"&"),t.content=e.highlight(t.content.value,{expression:{pattern:r,lookbehind:!0,inside:e.languages.groovy}}),t.classes.push("/"===n?"regex":"gstring")}}})}t.exports=r,r.displayName="groovy",r.aliases=[]},661086,(e,t,n)=>{"use strict";var r=e.r(268636);function a(e){e.register(r),function(e){e.languages.haml={"multiline-comment":{pattern:/((?:^|\r?\n|\r)([\t ]*))(?:\/|-#).*(?:(?:\r?\n|\r)\2[\t ].+)*/,lookbehind:!0,alias:"comment"},"multiline-code":[{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*,[\t ]*(?:(?:\r?\n|\r)\2[\t ].*,[\t ]*)*(?:(?:\r?\n|\r)\2[\t ].+)/,lookbehind:!0,inside:e.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:e.languages.ruby}],filter:{pattern:/((?:^|\r?\n|\r)([\t ]*)):[\w-]+(?:(?:\r?\n|\r)(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"}}},markup:{pattern:/((?:^|\r?\n|\r)[\t ]*)<.+/,lookbehind:!0,inside:e.languages.markup},doctype:{pattern:/((?:^|\r?\n|\r)[\t ]*)!!!(?: .+)?/,lookbehind:!0},tag:{pattern:/((?:^|\r?\n|\r)[\t ]*)[%.#][\w\-#.]*[\w\-](?:\([^)]+\)|\{(?:\{[^}]+\}|[^{}])+\}|\[[^\]]+\])*[\/<>]*/,lookbehind:!0,inside:{attributes:[{pattern:/(^|[^#])\{(?:\{[^}]+\}|[^{}])+\}/,lookbehind:!0,inside:e.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:e.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:e.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:e.languages.ruby}}},punctuation:{pattern:/((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/,lookbehind:!0}};for(var t=["css",{filter:"coffee",language:"coffeescript"},"erb","javascript","less","markdown","ruby","scss","textile"],n={},r=0,a=t.length;r<a;r++){var i=t[r];i="string"==typeof i?{filter:i,language:i}:i,e.languages[i.language]&&(n["filter-"+i.filter]={pattern:RegExp("((?:^|\\r?\\n|\\r)([\\t ]*)):{{filter_name}}(?:(?:\\r?\\n|\\r)(?:\\2[\\t ].+|\\s*?(?=\\r?\\n|\\r)))+".replace("{{filter_name}}",function(){return i.filter})),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"},text:{pattern:/[\s\S]+/,alias:[i.language,"language-"+i.language],inside:e.languages[i.language]}}})}e.languages.insertBefore("haml","filter",n)}(e)}t.exports=a,a.displayName="haml",a.aliases=[]},756953,(e,t,n)=>{"use strict";var r=e.r(426226);function a(e){e.register(r),e.languages.handlebars={comment:/\{\{![\s\S]*?\}\}/,delimiter:{pattern:/^\{\{\{?|\}\}\}?$/,alias:"punctuation"},string:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][+-]?\d+)?/,boolean:/\b(?:false|true)\b/,block:{pattern:/^(\s*(?:~\s*)?)[#\/]\S+?(?=\s*(?:~\s*)?$|\s)/,lookbehind:!0,alias:"keyword"},brackets:{pattern:/\[[^\]]+\]/,inside:{punctuation:/\[|\]/,variable:/[\s\S]+/}},punctuation:/[!"#%&':()*+,.\/;<=>@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},e.hooks.add("before-tokenize",function(t){e.languages["markup-templating"].buildPlaceholders(t,"handlebars",/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g)}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"handlebars")}),e.languages.hbs=e.languages.handlebars}t.exports=a,a.displayName="handlebars",a.aliases=["hbs"]},946221,(e,t,n)=>{"use strict";function r(e){e.languages.haskell={comment:{pattern:/(^|[^-!#$%*+=?&@|~.:<>^\\\/])(?:--(?:(?=.)[^-!#$%*+=?&@|~.:<>^\\\/].*|$)|\{-[\s\S]*?-\})/m,lookbehind:!0},char:{pattern:/'(?:[^\\']|\\(?:[abfnrtv\\"'&]|\^[A-Z@[\]^_]|ACK|BEL|BS|CAN|CR|DC1|DC2|DC3|DC4|DEL|DLE|EM|ENQ|EOT|ESC|ETB|ETX|FF|FS|GS|HT|LF|NAK|NUL|RS|SI|SO|SOH|SP|STX|SUB|SYN|US|VT|\d+|o[0-7]+|x[0-9a-fA-F]+))'/,alias:"string"},string:{pattern:/"(?:[^\\"]|\\(?:\S|\s+\\))*"/,greedy:!0},keyword:/\b(?:case|class|data|deriving|do|else|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b/,"import-statement":{pattern:/(^[\t ]*)import\s+(?:qualified\s+)?(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*(?:\s+as\s+(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import|qualified)\b/,punctuation:/\./}},builtin:/\b(?:abs|acos|acosh|all|and|any|appendFile|approxRational|asTypeOf|asin|asinh|atan|atan2|atanh|basicIORun|break|catch|ceiling|chr|compare|concat|concatMap|const|cos|cosh|curry|cycle|decodeFloat|denominator|digitToInt|div|divMod|drop|dropWhile|either|elem|encodeFloat|enumFrom|enumFromThen|enumFromThenTo|enumFromTo|error|even|exp|exponent|fail|filter|flip|floatDigits|floatRadix|floatRange|floor|fmap|foldl|foldl1|foldr|foldr1|fromDouble|fromEnum|fromInt|fromInteger|fromIntegral|fromRational|fst|gcd|getChar|getContents|getLine|group|head|id|inRange|index|init|intToDigit|interact|ioError|isAlpha|isAlphaNum|isAscii|isControl|isDenormalized|isDigit|isHexDigit|isIEEE|isInfinite|isLower|isNaN|isNegativeZero|isOctDigit|isPrint|isSpace|isUpper|iterate|last|lcm|length|lex|lexDigits|lexLitChar|lines|log|logBase|lookup|map|mapM|mapM_|max|maxBound|maximum|maybe|min|minBound|minimum|mod|negate|not|notElem|null|numerator|odd|or|ord|otherwise|pack|pi|pred|primExitWith|print|product|properFraction|putChar|putStr|putStrLn|quot|quotRem|range|rangeSize|read|readDec|readFile|readFloat|readHex|readIO|readInt|readList|readLitChar|readLn|readOct|readParen|readSigned|reads|readsPrec|realToFrac|recip|rem|repeat|replicate|return|reverse|round|scaleFloat|scanl|scanl1|scanr|scanr1|seq|sequence|sequence_|show|showChar|showInt|showList|showLitChar|showParen|showSigned|showString|shows|showsPrec|significand|signum|sin|sinh|snd|sort|span|splitAt|sqrt|subtract|succ|sum|tail|take|takeWhile|tan|tanh|threadToIOResult|toEnum|toInt|toInteger|toLower|toRational|toUpper|truncate|uncurry|undefined|unlines|until|unwords|unzip|unzip3|userError|words|writeFile|zip|zip3|zipWith|zipWith3)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0o[0-7]+|0x[0-9a-f]+)\b/i,operator:[{pattern:/`(?:[A-Z][\w']*\.)*[_a-z][\w']*`/,greedy:!0},{pattern:/(\s)\.(?=\s)/,lookbehind:!0},/[-!#$%*+=?&@|~:<>^\\\/][-!#$%*+=?&@|~.:<>^\\\/]*|\.[-!#$%*+=?&@|~.:<>^\\\/]+/],hvariable:{pattern:/\b(?:[A-Z][\w']*\.)*[_a-z][\w']*/,inside:{punctuation:/\./}},constant:{pattern:/\b(?:[A-Z][\w']*\.)*[A-Z][\w']*/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:]/},e.languages.hs=e.languages.haskell}t.exports=r,r.displayName="haskell",r.aliases=["hs"]},932382,(e,t,n)=>{"use strict";function r(e){e.languages.haxe=e.languages.extend("clike",{string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},"class-name":[{pattern:/(\b(?:abstract|class|enum|extends|implements|interface|new|typedef)\s+)[A-Z_]\w*/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\bthis\b|\b(?:abstract|as|break|case|cast|catch|class|continue|default|do|dynamic|else|enum|extends|extern|final|for|from|function|if|implements|import|in|inline|interface|macro|new|null|operator|overload|override|package|private|public|return|static|super|switch|throw|to|try|typedef|untyped|using|var|while)(?!\.)\b/,function:{pattern:/\b[a-z_]\w*(?=\s*(?:<[^<>]*>\s*)?\()/i,greedy:!0},operator:/\.{3}|\+\+|--|&&|\|\||->|=>|(?:<<?|>{1,3}|[-+*/%!=&|^])=?|[?:~]/}),e.languages.insertBefore("haxe","string",{"string-interpolation":{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{interpolation:{pattern:/(^|[^\\])\$(?:\w+|\{[^{}]+\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.haxe}}},string:/[\s\S]+/}}}),e.languages.insertBefore("haxe","class-name",{regex:{pattern:/~\/(?:[^\/\\\r\n]|\\.)+\/[a-z]*/,greedy:!0,inside:{"regex-flags":/\b[a-z]+$/,"regex-source":{pattern:/^(~\/)[\s\S]+(?=\/$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^~\/|\/$/}}}),e.languages.insertBefore("haxe","keyword",{preprocessor:{pattern:/#(?:else|elseif|end|if)\b.*/,alias:"property"},metadata:{pattern:/@:?[\w.]+/,alias:"symbol"},reification:{pattern:/\$(?:\w+|(?=\{))/,alias:"important"}})}t.exports=r,r.displayName="haxe",r.aliases=[]},900316,(e,t,n)=>{"use strict";function r(e){e.languages.hcl={comment:/(?:\/\/|#).*|\/\*[\s\S]*?(?:\*\/|$)/,heredoc:{pattern:/<<-?(\w+\b)[\s\S]*?^[ \t]*\1/m,greedy:!0,alias:"string"},keyword:[{pattern:/(?:data|resource)\s+(?:"(?:\\[\s\S]|[^\\"])*")(?=\s+"[\w-]+"\s+\{)/i,inside:{type:{pattern:/(resource|data|\s+)(?:"(?:\\[\s\S]|[^\\"])*")/i,lookbehind:!0,alias:"variable"}}},{pattern:/(?:backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+(?=\{)/i,inside:{type:{pattern:/(backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+/i,lookbehind:!0,alias:"variable"}}},/[\w-]+(?=\s+\{)/],property:[/[-\w\.]+(?=\s*=(?!=))/,/"(?:\\[\s\S]|[^\\"])+"(?=\s*[:=])/],string:{pattern:/"(?:[^\\$"]|\\[\s\S]|\$(?:(?=")|\$+(?!\$)|[^"${])|\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\})*"/,greedy:!0,inside:{interpolation:{pattern:/(^|[^$])\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\}/,lookbehind:!0,inside:{type:{pattern:/(\b(?:count|data|local|module|path|self|terraform|var)\b\.)[\w\*]+/i,lookbehind:!0,alias:"variable"},keyword:/\b(?:count|data|local|module|path|self|terraform|var)\b/i,function:/\w+(?=\()/,string:{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[!\$#%&'()*+,.\/;<=>@\[\\\]^`{|}~?:]/}}}},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,boolean:/\b(?:false|true)\b/i,punctuation:/[=\[\]{}]/}}t.exports=r,r.displayName="hcl",r.aliases=[]},260757,(e,t,n)=>{"use strict";var r=e.r(835801);function a(e){e.register(r),e.languages.hlsl=e.languages.extend("c",{"class-name":[e.languages.c["class-name"],/\b(?:AppendStructuredBuffer|BlendState|Buffer|ByteAddressBuffer|CompileShader|ComputeShader|ConsumeStructuredBuffer|DepthStencilState|DepthStencilView|DomainShader|GeometryShader|Hullshader|InputPatch|LineStream|OutputPatch|PixelShader|PointStream|RWBuffer|RWByteAddressBuffer|RWStructuredBuffer|RWTexture(?:1D|1DArray|2D|2DArray|3D)|RasterizerState|RenderTargetView|SamplerComparisonState|SamplerState|StructuredBuffer|Texture(?:1D|1DArray|2D|2DArray|2DMS|2DMSArray|3D|Cube|CubeArray)|TriangleStream|VertexShader)\b/],keyword:[/\b(?:asm|asm_fragment|auto|break|case|catch|cbuffer|centroid|char|class|column_major|compile|compile_fragment|const|const_cast|continue|default|delete|discard|do|dynamic_cast|else|enum|explicit|export|extern|for|friend|fxgroup|goto|groupshared|if|in|inline|inout|interface|line|lineadj|linear|long|matrix|mutable|namespace|new|nointerpolation|noperspective|operator|out|packoffset|pass|pixelfragment|point|precise|private|protected|public|register|reinterpret_cast|return|row_major|sample|sampler|shared|short|signed|sizeof|snorm|stateblock|stateblock_state|static|static_cast|string|struct|switch|tbuffer|technique|technique10|technique11|template|texture|this|throw|triangle|triangleadj|try|typedef|typename|uniform|union|unorm|unsigned|using|vector|vertexfragment|virtual|void|volatile|while)\b/,/\b(?:bool|double|dword|float|half|int|min(?:10float|12int|16(?:float|int|uint))|uint)(?:[1-4](?:x[1-4])?)?\b/],number:/(?:(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?|\b0x[\da-fA-F]+)[fFhHlLuU]?\b/,boolean:/\b(?:false|true)\b/})}t.exports=a,a.displayName="hlsl",a.aliases=[]},863058,(e,t,n)=>{"use strict";function r(e){e.languages.hoon={comment:{pattern:/::.*/,greedy:!0},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},constant:/%(?:\.[ny]|[\w-]+)/,"class-name":/@(?:[a-z0-9-]*[a-z0-9])?|\*/i,function:/(?:\+[-+] {2})?(?:[a-z](?:[a-z0-9-]*[a-z0-9])?)/,keyword:/\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/}}t.exports=r,r.displayName="hoon",r.aliases=[]},850689,(e,t,n)=>{"use strict";function r(e){e.languages.hpkp={directive:{pattern:/\b(?:includeSubDomains|max-age|pin-sha256|preload|report-to|report-uri|strict)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}t.exports=r,r.displayName="hpkp",r.aliases=[]},565387,(e,t,n)=>{"use strict";function r(e){e.languages.hsts={directive:{pattern:/\b(?:includeSubDomains|max-age|preload)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}t.exports=r,r.displayName="hsts",r.aliases=[]},625054,(e,t,n)=>{"use strict";function r(e){!function(e){function t(e){return RegExp("(^(?:"+e+"):[ ]*(?![ ]))[^]+","i")}e.languages.http={"request-line":{pattern:/^(?:CONNECT|DELETE|GET|HEAD|OPTIONS|PATCH|POST|PRI|PUT|SEARCH|TRACE)\s(?:https?:\/\/|\/)\S*\sHTTP\/[\d.]+/m,inside:{method:{pattern:/^[A-Z]+\b/,alias:"property"},"request-target":{pattern:/^(\s)(?:https?:\/\/|\/)\S*(?=\s)/,lookbehind:!0,alias:"url",inside:e.languages.uri},"http-version":{pattern:/^(\s)HTTP\/[\d.]+/,lookbehind:!0,alias:"property"}}},"response-status":{pattern:/^HTTP\/[\d.]+ \d+ .+/m,inside:{"http-version":{pattern:/^HTTP\/[\d.]+/,alias:"property"},"status-code":{pattern:/^(\s)\d+(?=\s)/,lookbehind:!0,alias:"number"},"reason-phrase":{pattern:/^(\s).+/,lookbehind:!0,alias:"string"}}},header:{pattern:/^[\w-]+:.+(?:(?:\r\n?|\n)[ \t].+)*/m,inside:{"header-value":[{pattern:t(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:e.languages.csp},{pattern:t(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:e.languages.hpkp},{pattern:t(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:e.languages.hsts},{pattern:t(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var n,r=e.languages,a={"application/javascript":r.javascript,"application/json":r.json||r.javascript,"application/xml":r.xml,"text/xml":r.xml,"text/html":r.html,"text/css":r.css,"text/plain":r.plain},i={"application/json":!0,"application/xml":!0};for(var s in a)if(a[s]){n=n||{};var o=i[s]?function(e){var t=e.replace(/^[a-z]+\//,"");return"(?:"+e+"|\\w+/(?:[\\w.-]+\\+)+"+t+"(?![+\\w.-]))"}(s):s;n[s.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+o+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:a[s]}}n&&e.languages.insertBefore("http","header",n)}(e)}t.exports=r,r.displayName="http",r.aliases=[]},881869,(e,t,n)=>{"use strict";function r(e){e.languages.ichigojam={comment:/(?:\B'|REM)(?:[^\n\r]*)/i,string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/\B#[0-9A-F]+|\B`[01]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:BEEP|BPS|CASE|CLEAR|CLK|CLO|CLP|CLS|CLT|CLV|CONT|COPY|ELSE|END|FILE|FILES|FOR|GOSUB|GOTO|GSB|IF|INPUT|KBD|LED|LET|LIST|LOAD|LOCATE|LRUN|NEW|NEXT|OUT|PLAY|POKE|PRINT|PWM|REM|RENUM|RESET|RETURN|RIGHT|RTN|RUN|SAVE|SCROLL|SLEEP|SRND|STEP|STOP|SUB|TEMPO|THEN|TO|UART|VIDEO|WAIT)(?:\$|\b)/i,function:/\b(?:ABS|ANA|ASC|BIN|BTN|DEC|END|FREE|HELP|HEX|I2CR|I2CW|IN|INKEY|LEN|LINE|PEEK|RND|SCR|SOUND|STR|TICK|USR|VER|VPEEK|ZER)(?:\$|\b)/i,label:/(?:\B@\S+)/,operator:/<[=>]?|>=?|\|\||&&|[+\-*\/=|&^~!]|\b(?:AND|NOT|OR)\b/i,punctuation:/[\[,;:()\]]/}}t.exports=r,r.displayName="ichigojam",r.aliases=[]},578763,(e,t,n)=>{"use strict";function r(e){e.languages.icon={comment:/#.*/,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n_]|\\.|_(?!\1)(?:\r\n|[\s\S]))*\1/,greedy:!0},number:/\b(?:\d+r[a-z\d]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b|\.\d+\b/i,"builtin-keyword":{pattern:/&(?:allocated|ascii|clock|collections|cset|current|date|dateline|digits|dump|e|error(?:number|text|value)?|errout|fail|features|file|host|input|lcase|letters|level|line|main|null|output|phi|pi|pos|progname|random|regions|source|storage|subject|time|trace|ucase|version)\b/,alias:"variable"},directive:{pattern:/\$\w+/,alias:"builtin"},keyword:/\b(?:break|by|case|create|default|do|else|end|every|fail|global|if|initial|invocable|link|local|next|not|of|procedure|record|repeat|return|static|suspend|then|to|until|while)\b/,function:/\b(?!\d)\w+(?=\s*[({]|\s*!\s*\[)/,operator:/[+-]:(?!=)|(?:[\/?@^%&]|\+\+?|--?|==?=?|~==?=?|\*\*?|\|\|\|?|<(?:->?|<?=?)|>>?=?)(?::=)?|:(?:=:?)?|[!.\\|~]/,punctuation:/[\[\](){},;]/}}t.exports=r,r.displayName="icon",r.aliases=[]},759239,(e,t,n)=>{"use strict";function r(e){!function(e){function t(e,n){return n<=0?/[]/.source:e.replace(/<SELF>/g,function(){return t(e,n-1)})}var n=/'[{}:=,](?:[^']|'')*'(?!')/,r={pattern:/''/,greedy:!0,alias:"operator"},a=t(/\{(?:[^{}']|'(?![{},'])|''|<STR>|<SELF>)*\}/.source.replace(/<STR>/g,function(){return n.source}),8),i={pattern:RegExp(a),inside:{message:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:null},"message-delimiter":{pattern:/./,alias:"punctuation"}}};e.languages["icu-message-format"]={argument:{pattern:RegExp(a),greedy:!0,inside:{content:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:{"argument-name":{pattern:/^(\s*)[^{}:=,\s]+/,lookbehind:!0},"choice-style":{pattern:/^(\s*,\s*choice\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{punctuation:/\|/,range:{pattern:/^(\s*)[+-]?(?:\d+(?:\.\d*)?|\u221e)\s*[<#\u2264]/,lookbehind:!0,inside:{operator:/[<#\u2264]/,number:/\S+/}},rest:null}},"plural-style":{pattern:/^(\s*,\s*(?:plural|selectordinal)\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{offset:/^offset:\s*\d+/,"nested-message":i,selector:{pattern:/=\d+|[^{}:=,\s]+/,inside:{keyword:/^(?:few|many|one|other|two|zero)$/}}}},"select-style":{pattern:/^(\s*,\s*select\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{"nested-message":i,selector:{pattern:/[^{}:=,\s]+/,inside:{keyword:/^other$/}}}},keyword:/\b(?:choice|plural|select|selectordinal)\b/,"arg-type":{pattern:/\b(?:date|duration|number|ordinal|spellout|time)\b/,alias:"keyword"},"arg-skeleton":{pattern:/(,\s*)::[^{}:=,\s]+/,lookbehind:!0},"arg-style":{pattern:/(,\s*)(?:currency|full|integer|long|medium|percent|short)(?=\s*$)/,lookbehind:!0},"arg-style-text":{pattern:RegExp(/(^\s*,\s*(?=\S))/.source+t(/(?:[^{}']|'[^']*'|\{(?:<SELF>)?\})+/.source,8)+"$"),lookbehind:!0,alias:"string"},punctuation:/,/}},"argument-delimiter":{pattern:/./,alias:"operator"}}},escape:r,string:{pattern:n,greedy:!0,inside:{escape:r}}},i.inside.message.inside=e.languages["icu-message-format"],e.languages["icu-message-format"].argument.inside.content.inside["choice-style"].inside.rest=e.languages["icu-message-format"]}(e)}t.exports=r,r.displayName="icuMessageFormat",r.aliases=[]},772912,(e,t,n)=>{"use strict";var r=e.r(946221);function a(e){e.register(r),e.languages.idris=e.languages.extend("haskell",{comment:{pattern:/(?:(?:--|\|\|\|).*$|\{-[\s\S]*?-\})/m},keyword:/\b(?:Type|case|class|codata|constructor|corecord|data|do|dsl|else|export|if|implementation|implicit|import|impossible|in|infix|infixl|infixr|instance|interface|let|module|mutual|namespace|of|parameters|partial|postulate|private|proof|public|quoteGoal|record|rewrite|syntax|then|total|using|where|with)\b/,builtin:void 0}),e.languages.insertBefore("idris","keyword",{"import-statement":{pattern:/(^\s*import\s+)(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*/m,lookbehind:!0,inside:{punctuation:/\./}}}),e.languages.idr=e.languages.idris}t.exports=a,a.displayName="idris",a.aliases=["idr"]},177346,(e,t,n)=>{"use strict";function r(e){e.languages.iecst={comment:[{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\(\*[\s\S]*?(?:\*\)|$)|\{[\s\S]*?(?:\}|$))/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:[/\b(?:END_)?(?:PROGRAM|CONFIGURATION|INTERFACE|FUNCTION_BLOCK|FUNCTION|ACTION|TRANSITION|TYPE|STRUCT|(?:INITIAL_)?STEP|NAMESPACE|LIBRARY|CHANNEL|FOLDER|RESOURCE|VAR_(?:ACCESS|CONFIG|EXTERNAL|GLOBAL|INPUT|IN_OUT|OUTPUT|TEMP)|VAR|METHOD|PROPERTY)\b/i,/\b(?:AT|BY|(?:END_)?(?:CASE|FOR|IF|REPEAT|WHILE)|CONSTANT|CONTINUE|DO|ELSE|ELSIF|EXIT|EXTENDS|FROM|GET|GOTO|IMPLEMENTS|JMP|NON_RETAIN|OF|PRIVATE|PROTECTED|PUBLIC|RETAIN|RETURN|SET|TASK|THEN|TO|UNTIL|USING|WITH|__CATCH|__ENDTRY|__FINALLY|__TRY)\b/],"class-name":/\b(?:ANY|ARRAY|BOOL|BYTE|U?(?:D|L|S)?INT|(?:D|L)?WORD|DATE(?:_AND_TIME)?|DT|L?REAL|POINTER|STRING|TIME(?:_OF_DAY)?|TOD)\b/,address:{pattern:/%[IQM][XBWDL][\d.]*|%[IQ][\d.]*/,alias:"symbol"},number:/\b(?:16#[\da-f]+|2#[01_]+|0x[\da-f]+)\b|\b(?:D|DT|T|TOD)#[\d_shmd:]*|\b[A-Z]*#[\d.,_]*|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/,operator:/S?R?:?=>?|&&?|\*\*?|<[=>]?|>=?|[-:^/+#]|\b(?:AND|EQ|EXPT|GE|GT|LE|LT|MOD|NE|NOT|OR|XOR)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,punctuation:/[()[\].,;]/}}t.exports=r,r.displayName="iecst",r.aliases=[]},460342,(e,t,n)=>{"use strict";function r(e){e.languages.ignore={comment:/^#.*/m,entry:{pattern:/\S(?:.*(?:(?:\\ )|\S))?/,alias:"string",inside:{operator:/^!|\*\*?|\?/,regex:{pattern:/(^|[^\\])\[[^\[\]]*\]/,lookbehind:!0},punctuation:/\//}}},e.languages.gitignore=e.languages.ignore,e.languages.hgignore=e.languages.ignore,e.languages.npmignore=e.languages.ignore}t.exports=r,r.displayName="ignore",r.aliases=["gitignore","hgignore","npmignore"]},427275,(e,t,n)=>{"use strict";function r(e){e.languages.inform7={string:{pattern:/"[^"]*"/,inside:{substitution:{pattern:/\[[^\[\]]+\]/,inside:{delimiter:{pattern:/\[|\]/,alias:"punctuation"}}}}},comment:{pattern:/\[[^\[\]]+\]/,greedy:!0},title:{pattern:/^[ \t]*(?:book|chapter|part(?! of)|section|table|volume)\b.+/im,alias:"important"},number:{pattern:/(^|[^-])(?:\b\d+(?:\.\d+)?(?:\^\d+)?(?:(?!\d)\w+)?|\b(?:eight|eleven|five|four|nine|one|seven|six|ten|three|twelve|two))\b(?!-)/i,lookbehind:!0},verb:{pattern:/(^|[^-])\b(?:answering|applying to|are|asking|attacking|be(?:ing)?|burning|buying|called|carries|carry(?! out)|carrying|climbing|closing|conceal(?:ing|s)?|consulting|contain(?:ing|s)?|cutting|drinking|dropping|eating|enclos(?:es?|ing)|entering|examining|exiting|getting|giving|going|ha(?:s|ve|ving)|hold(?:ing|s)?|impl(?:ies|y)|incorporat(?:es?|ing)|inserting|is|jumping|kissing|listening|locking|looking|mean(?:ing|s)?|opening|provid(?:es?|ing)|pulling|pushing|putting|relat(?:es?|ing)|removing|searching|see(?:ing|s)?|setting|showing|singing|sleeping|smelling|squeezing|support(?:ing|s)?|swearing|switching|taking|tasting|telling|thinking|throwing|touching|turning|tying|unlock(?:ing|s)?|var(?:ies|y|ying)|waiting|waking|waving|wear(?:ing|s)?)\b(?!-)/i,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^-])\b(?:after|before|carry out|check|continue the action|definition(?= *:)|do nothing|else|end (?:if|the story|unless)|every turn|if|include|instead(?: of)?|let|move|no|now|otherwise|repeat|report|resume the story|rule for|running through|say(?:ing)?|stop the action|test|try(?:ing)?|understand|unless|use|when|while|yes)\b(?!-)/i,lookbehind:!0},property:{pattern:/(^|[^-])\b(?:adjacent(?! to)|carried|closed|concealed|contained|dark|described|edible|empty|enclosed|enterable|even|female|fixed in place|full|handled|held|improper-named|incorporated|inedible|invisible|lighted|lit|lock(?:able|ed)|male|marked for listing|mentioned|negative|neuter|non-(?:empty|full|recurring)|odd|opaque|open(?:able)?|plural-named|portable|positive|privately-named|proper-named|provided|publically-named|pushable between rooms|recurring|related|rubbing|scenery|seen|singular-named|supported|swinging|switch(?:able|ed(?: off| on)?)|touch(?:able|ed)|transparent|unconcealed|undescribed|unlit|unlocked|unmarked for listing|unmentioned|unopenable|untouchable|unvisited|variable|visible|visited|wearable|worn)\b(?!-)/i,lookbehind:!0,alias:"symbol"},position:{pattern:/(^|[^-])\b(?:above|adjacent to|back side of|below|between|down|east|everywhere|front side|here|in|inside(?: from)?|north(?:east|west)?|nowhere|on(?: top of)?|other side|outside(?: from)?|parts? of|regionally in|south(?:east|west)?|through|up|west|within)\b(?!-)/i,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|[^-])\b(?:actions?|activit(?:ies|y)|actors?|animals?|backdrops?|containers?|devices?|directions?|doors?|holders?|kinds?|lists?|m[ae]n|nobody|nothing|nouns?|numbers?|objects?|people|persons?|player(?:'s holdall)?|regions?|relations?|rooms?|rule(?:book)?s?|scenes?|someone|something|supporters?|tables?|texts?|things?|time|vehicles?|wom[ae]n)\b(?!-)/i,lookbehind:!0,alias:"variable"},punctuation:/[.,:;(){}]/},e.languages.inform7.string.inside.substitution.inside.rest=e.languages.inform7,e.languages.inform7.string.inside.substitution.inside.rest.text={pattern:/\S(?:\s*\S)*/,alias:"comment"}}t.exports=r,r.displayName="inform7",r.aliases=[]},755790,(e,t,n)=>{"use strict";function r(e){e.languages.ini={comment:{pattern:/(^[ \f\t\v]*)[#;][^\n\r]*/m,lookbehind:!0},section:{pattern:/(^[ \f\t\v]*)\[[^\n\r\]]*\]?/m,lookbehind:!0,inside:{"section-name":{pattern:/(^\[[ \f\t\v]*)[^ \f\t\v\]]+(?:[ \f\t\v]+[^ \f\t\v\]]+)*/,lookbehind:!0,alias:"selector"},punctuation:/\[|\]/}},key:{pattern:/(^[ \f\t\v]*)[^ \f\n\r\t\v=]+(?:[ \f\t\v]+[^ \f\n\r\t\v=]+)*(?=[ \f\t\v]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/(=[ \f\t\v]*)[^ \f\n\r\t\v]+(?:[ \f\t\v]+[^ \f\n\r\t\v]+)*/,lookbehind:!0,alias:"attr-value",inside:{"inner-value":{pattern:/^("|').+(?=\1$)/,lookbehind:!0}}},punctuation:/=/}}t.exports=r,r.displayName="ini",r.aliases=[]},355991,(e,t,n)=>{"use strict";function r(e){e.languages.io={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*|#.*)/,lookbehind:!0,greedy:!0},"triple-quoted-string":{pattern:/"""(?:\\[\s\S]|(?!""")[^\\])*"""/,greedy:!0,alias:"string"},string:{pattern:/"(?:\\.|[^\\\r\n"])*"/,greedy:!0},keyword:/\b(?:activate|activeCoroCount|asString|block|break|call|catch|clone|collectGarbage|compileString|continue|do|doFile|doMessage|doString|else|elseif|exit|for|foreach|forward|getEnvironmentVariable|getSlot|hasSlot|if|ifFalse|ifNil|ifNilEval|ifTrue|isActive|isNil|isResumable|list|message|method|parent|pass|pause|perform|performWithArgList|print|println|proto|raise|raiseResumable|removeSlot|resend|resume|schedulerSleepSeconds|self|sender|setSchedulerSleepSeconds|setSlot|shallowCopy|slotNames|super|system|then|thisBlock|thisContext|try|type|uniqueId|updateSlot|wait|while|write|yield)\b/,builtin:/\b(?:Array|AudioDevice|AudioMixer|BigNum|Block|Box|Buffer|CFunction|CGI|Color|Curses|DBM|DNSResolver|DOConnection|DOProxy|DOServer|Date|Directory|Duration|DynLib|Error|Exception|FFT|File|Fnmatch|Font|Future|GL|GLE|GLScissor|GLU|GLUCylinder|GLUQuadric|GLUSphere|GLUT|Host|Image|Importer|LinkList|List|Lobby|Locals|MD5|MP3Decoder|MP3Encoder|Map|Message|Movie|Notification|Number|Object|OpenGL|Point|Protos|Random|Regex|SGML|SGMLElement|SGMLParser|SQLite|Sequence|Server|ShowMessage|SleepyCat|SleepyCatCursor|Socket|SocketManager|Sound|Soup|Store|String|Tree|UDPSender|UPDReceiver|URL|User|Warning|WeakLink)\b/,boolean:/\b(?:false|nil|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?/i,operator:/[=!*/%+\-^&|]=|>>?=?|<<?=?|:?:?=|\+\+?|--?|\*\*?|\/\/?|%|\|\|?|&&?|\b(?:and|not|or|return)\b|@@?|\?\??|\.\./,punctuation:/[{}[\];(),.:]/}}t.exports=r,r.displayName="io",r.aliases=[]},555114,(e,t,n)=>{"use strict";function r(e){e.languages.j={comment:{pattern:/\bNB\..*/,greedy:!0},string:{pattern:/'(?:''|[^'\r\n])*'/,greedy:!0},keyword:/\b(?:(?:CR|LF|adverb|conjunction|def|define|dyad|monad|noun|verb)\b|(?:assert|break|case|catch[dt]?|continue|do|else|elseif|end|fcase|for|for_\w+|goto_\w+|if|label_\w+|return|select|throw|try|while|whilst)\.)/,verb:{pattern:/(?!\^:|;\.|[=!][.:])(?:\{(?:\.|::?)?|p(?:\.\.?|:)|[=!\]]|[<>+*\-%$|,#][.:]?|[?^]\.?|[;\[]:?|[~}"i][.:]|[ACeEIjLor]\.|(?:[_\/\\qsux]|_?\d):)/,alias:"keyword"},number:/\b_?(?:(?!\d:)\d+(?:\.\d+)?(?:(?:ad|ar|[ejpx])_?\d+(?:\.\d+)?)*(?:b_?[\da-z]+(?:\.[\da-z]+)?)?|_\b(?!\.))/,adverb:{pattern:/[~}]|[\/\\]\.?|[bfM]\.|t[.:]/,alias:"builtin"},operator:/[=a][.:]|_\./,conjunction:{pattern:/&(?:\.:?|:)?|[.:@][.:]?|[!D][.:]|[;dHT]\.|`:?|[\^LS]:|"/,alias:"variable"},punctuation:/[()]/}}t.exports=r,r.displayName="j",r.aliases=[]},672637,(e,t,n)=>{"use strict";function r(e){var t,n,r;t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,r={pattern:RegExp((n=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source)+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}},e.languages.java=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[r,{pattern:RegExp(n+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:r.inside}],keyword:t,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),e.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return t.source})),lookbehind:!0,inside:{punctuation:/\./}}})}t.exports=r,r.displayName="java",r.aliases=[]},523456,(e,t,n)=>{"use strict";function r(e){var t;Object.defineProperty(t=e.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/},"addSupport",{value:function(t,n){"string"==typeof t&&(t=[t]),t.forEach(function(t){!function(t,n){var r="doc-comment",a=e.languages[t];if(a){var i=a[r];if(!i){var s={};s[r]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},i=(a=e.languages.insertBefore(t,"comment",s))[r]}if(i instanceof RegExp&&(i=a[r]={pattern:i}),Array.isArray(i))for(var o=0,l=i.length;o<l;o++)i[o]instanceof RegExp&&(i[o]={pattern:i[o]}),n(i[o]);else n(i)}}(t,function(e){e.inside||(e.inside={}),e.inside.rest=n})})}}),t.addSupport(["java","javascript","php"],t)}t.exports=r,r.displayName="javadoclike",r.aliases=[]},747922,(e,t,n)=>{"use strict";var r=e.r(672637),a=e.r(523456);function i(e){var t,n,i;e.register(r),e.register(a),t=/(^(?:[\t ]*(?:\*\s*)*))[^*\s].*$/m,n=/#\s*\w+(?:\s*\([^()]*\))?/.source,i=/(?:\b[a-zA-Z]\w+\s*\.\s*)*\b[A-Z]\w*(?:\s*<mem>)?|<mem>/.source.replace(/<mem>/g,function(){return n}),e.languages.javadoc=e.languages.extend("javadoclike",{}),e.languages.insertBefore("javadoc","keyword",{reference:{pattern:RegExp(/(@(?:exception|link|linkplain|see|throws|value)\s+(?:\*\s*)?)/.source+"(?:"+i+")"),lookbehind:!0,inside:{function:{pattern:/(#\s*)\w+(?=\s*\()/,lookbehind:!0},field:{pattern:/(#\s*)\w+/,lookbehind:!0},namespace:{pattern:/\b(?:[a-z]\w*\s*\.\s*)+/,inside:{punctuation:/\./}},"class-name":/\b[A-Z]\w*/,keyword:e.languages.java.keyword,punctuation:/[#()[\],.]/}},"class-name":{pattern:/(@param\s+)<[A-Z]\w*>/,lookbehind:!0,inside:{punctuation:/[.<>]/}},"code-section":[{pattern:/(\{@code\s+(?!\s))(?:[^\s{}]|\s+(?![\s}])|\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\})+(?=\s*\})/,lookbehind:!0,inside:{code:{pattern:t,lookbehind:!0,inside:e.languages.java,alias:"language-java"}}},{pattern:/(<(code|pre|tt)>(?!<code>)\s*)\S(?:\S|\s+\S)*?(?=\s*<\/\2>)/,lookbehind:!0,inside:{line:{pattern:t,lookbehind:!0,inside:{tag:e.languages.markup.tag,entity:e.languages.markup.entity,code:{pattern:/.+/,inside:e.languages.java,alias:"language-java"}}}}}],tag:e.languages.markup.tag,entity:e.languages.markup.entity}),e.languages.javadoclike.addSupport("java",e.languages.javadoc)}t.exports=i,i.displayName="javadoc",i.aliases=[]},181773,(e,t,n)=>{"use strict";function r(e){e.languages.javastacktrace={summary:{pattern:/^([\t ]*)(?:(?:Caused by:|Suppressed:|Exception in thread "[^"]*")[\t ]+)?[\w$.]+(?::.*)?$/m,lookbehind:!0,inside:{keyword:{pattern:/^([\t ]*)(?:(?:Caused by|Suppressed)(?=:)|Exception in thread)/m,lookbehind:!0},string:{pattern:/^(\s*)"[^"]*"/,lookbehind:!0},exceptions:{pattern:/^(:?\s*)[\w$.]+(?=:|$)/,lookbehind:!0,inside:{"class-name":/[\w$]+$/,namespace:/\b[a-z]\w*\b/,punctuation:/\./}},message:{pattern:/(:\s*)\S.*/,lookbehind:!0,alias:"string"},punctuation:/:/}},"stack-frame":{pattern:/^([\t ]*)at (?:[\w$./]|@[\w$.+-]*\/)+(?:<init>)?\([^()]*\)/m,lookbehind:!0,inside:{keyword:{pattern:/^(\s*)at(?= )/,lookbehind:!0},source:[{pattern:/(\()\w+\.\w+:\d+(?=\))/,lookbehind:!0,inside:{file:/^\w+\.\w+/,punctuation:/:/,"line-number":{pattern:/\b\d+\b/,alias:"number"}}},{pattern:/(\()[^()]*(?=\))/,lookbehind:!0,inside:{keyword:/^(?:Native Method|Unknown Source)$/}}],"class-name":/[\w$]+(?=\.(?:<init>|[\w$]+)\()/,function:/(?:<init>|[\w$]+)(?=\()/,"class-loader":{pattern:/(\s)[a-z]\w*(?:\.[a-z]\w*)*(?=\/[\w@$.]*\/)/,lookbehind:!0,alias:"namespace",inside:{punctuation:/\./}},module:{pattern:/([\s/])[a-z]\w*(?:\.[a-z]\w*)*(?:@[\w$.+-]*)?(?=\/)/,lookbehind:!0,inside:{version:{pattern:/(@)[\s\S]+/,lookbehind:!0,alias:"number"},punctuation:/[@.]/}},namespace:{pattern:/(?:\b[a-z]\w*\.)+/,inside:{punctuation:/\./}},punctuation:/[()/.]/}},more:{pattern:/^([\t ]*)\.{3} \d+ [a-z]+(?: [a-z]+)*/m,lookbehind:!0,inside:{punctuation:/\.{3}/,number:/\d+/,keyword:/\b[a-z]+(?: [a-z]+)*\b/}}}}t.exports=r,r.displayName="javastacktrace",r.aliases=[]},428712,(e,t,n)=>{"use strict";function r(e){e.languages.jexl={string:/(["'])(?:\\[\s\S]|(?!\1)[^\\])*\1/,transform:{pattern:/(\|\s*)[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*/,alias:"function",lookbehind:!0},function:/[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*\s*(?=\()/,number:/\b\d+(?:\.\d+)?\b|\B\.\d+\b/,operator:/[<>!]=?|-|\+|&&|==|\|\|?|\/\/?|[?:*^%]/,boolean:/\b(?:false|true)\b/,keyword:/\bin\b/,punctuation:/[{}[\](),.]/}}t.exports=r,r.displayName="jexl",r.aliases=[]},734556,(e,t,n)=>{"use strict";function r(e){e.languages.jolie=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\[\s\S]|[^"\\])*"/,lookbehind:!0,greedy:!0},"class-name":{pattern:/((?:\b(?:as|courier|embed|in|inputPort|outputPort|service)\b|@)[ \t]*)\w+/,lookbehind:!0},keyword:/\b(?:as|cH|comp|concurrent|constants|courier|cset|csets|default|define|else|embed|embedded|execution|exit|extender|for|foreach|forward|from|global|if|import|in|include|init|inputPort|install|instanceof|interface|is_defined|linkIn|linkOut|main|new|nullProcess|outputPort|over|private|provide|public|scope|sequential|service|single|spawn|synchronized|this|throw|throws|type|undef|until|while|with)\b/,function:/\b[a-z_]\w*(?=[ \t]*[@(])/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?l?/i,operator:/-[-=>]?|\+[+=]?|<[<=]?|[>=*!]=?|&&|\|\||[?\/%^@|]/,punctuation:/[()[\]{},;.:]/,builtin:/\b(?:Byte|any|bool|char|double|enum|float|int|length|long|ranges|regex|string|undefined|void)\b/}),e.languages.insertBefore("jolie","keyword",{aggregates:{pattern:/(\bAggregates\s*:\s*)(?:\w+(?:\s+with\s+\w+)?\s*,\s*)*\w+(?:\s+with\s+\w+)?/,lookbehind:!0,inside:{keyword:/\bwith\b/,"class-name":/\w+/,punctuation:/,/}},redirects:{pattern:/(\bRedirects\s*:\s*)(?:\w+\s*=>\s*\w+\s*,\s*)*(?:\w+\s*=>\s*\w+)/,lookbehind:!0,inside:{punctuation:/,/,"class-name":/\w+/,operator:/=>/}},property:{pattern:/\b(?:Aggregates|[Ii]nterfaces|Java|Javascript|Jolie|[Ll]ocation|OneWay|[Pp]rotocol|Redirects|RequestResponse)\b(?=[ \t]*:)/}})}t.exports=r,r.displayName="jolie",r.aliases=[]},839585,(e,t,n)=>{"use strict";function r(e){var t,n,r,a;t=/\\\((?:[^()]|\([^()]*\))*\)/.source,n=RegExp(/(^|[^\\])"(?:[^"\r\n\\]|\\[^\r\n(]|__)*"/.source.replace(/__/g,function(){return t})),r={interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+t),lookbehind:!0,inside:{content:{pattern:/^(\\\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:null},punctuation:/^\\\(|\)$/}}},a=e.languages.jq={comment:/#.*/,property:{pattern:RegExp(n.source+/(?=\s*:(?!:))/.source),lookbehind:!0,greedy:!0,inside:r},string:{pattern:n,lookbehind:!0,greedy:!0,inside:r},function:{pattern:/(\bdef\s+)[a-z_]\w+/i,lookbehind:!0},variable:/\B\$\w+/,"property-literal":{pattern:/\b[a-z_]\w*(?=\s*:(?!:))/i,alias:"property"},keyword:/\b(?:as|break|catch|def|elif|else|end|foreach|if|import|include|label|module|modulemeta|null|reduce|then|try|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b\d+\.|\B\.)?\b\d+(?:[eE][+-]?\d+)?\b/,operator:[{pattern:/\|=?/,alias:"pipe"},/\.\.|[!=<>]?=|\?\/\/|\/\/=?|[-+*/%]=?|[<>?]|\b(?:and|not|or)\b/],"c-style-function":{pattern:/\b[a-z_]\w*(?=\s*\()/i,alias:"function"},punctuation:/::|[()\[\]{},:;]|\.(?=\s*[\[\w$])/,dot:{pattern:/\./,alias:"important"}},r.interpolation.inside.content.inside=a}t.exports=r,r.displayName="jq",r.aliases=[]},882795,(e,t,n)=>{"use strict";function r(e){!function(e){function t(e,t){return RegExp(e.replace(/<ID>/g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),t)}e.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+e.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),e.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+e.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),e.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),e.languages.insertBefore("javascript","keyword",{imports:{pattern:t(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:e.languages.javascript},exports:{pattern:t(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:e.languages.javascript}}),e.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),e.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),e.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:t(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var n=["function","function-variable","method","method-variable","property-access"],r=0;r<n.length;r++){var a=n[r],i=e.languages.javascript[a];"RegExp"===e.util.type(i)&&(i=e.languages.javascript[a]={pattern:i});var s=i.inside||{};i.inside=s,s["maybe-class-name"]=/^[A-Z][\s\S]*/}}(e)}t.exports=r,r.displayName="jsExtras",r.aliases=[]},123048,(e,t,n)=>{"use strict";function r(e){!function(e){var t=e.languages.javascript["template-string"],n=t.pattern.source,r=t.inside.interpolation,a=r.inside["interpolation-punctuation"],i=r.pattern.source;function s(t,r){if(e.languages[t])return{pattern:RegExp("((?:"+r+")\\s*)"+n),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:t}}}}function o(t,n,r){var a={code:t,grammar:n,language:r};return e.hooks.run("before-tokenize",a),a.tokens=e.tokenize(a.code,a.grammar),e.hooks.run("after-tokenize",a),a.tokens}e.languages.javascript["template-string"]=[s("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),s("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),s("svg",/\bsvg/.source),s("markdown",/\b(?:markdown|md)/.source),s("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),s("sql",/\bsql/.source),t].filter(Boolean);var l={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};e.hooks.add("after-tokenize",function(t){t.language in l&&function t(n){for(var s=0,l=n.length;s<l;s++){var c=n[s];if("string"!=typeof c){var u=c.content;if(!Array.isArray(u)){"string"!=typeof u&&t([u]);continue}if("template-string"===c.type){var d=u[1];if(3===u.length&&"string"!=typeof d&&"embedded-code"===d.type){var p=function e(t){return"string"==typeof t?t:Array.isArray(t)?t.map(e).join(""):e(t.content)}(d),m=d.alias,h=Array.isArray(m)?m[0]:m,f=e.languages[h];if(!f)continue;u[1]=function(t,n,s){var l=e.tokenize(t,{interpolation:{pattern:RegExp(i),lookbehind:!0}}),c=0,u={},d=o(l.map(function(e){if("string"==typeof e)return e;for(var n,r,a=e.content;-1!==t.indexOf((n=c++,r="___"+s.toUpperCase()+"_"+n+"___")););return u[r]=a,r}).join(""),n,s),p=Object.keys(u);return c=0,!function t(n){for(var i=0;i<n.length;i++){if(c>=p.length)return;var s=n[i];if("string"==typeof s||"string"==typeof s.content){var l=p[c],d="string"==typeof s?s:s.content,m=d.indexOf(l);if(-1!==m){++c;var h=d.substring(0,m),f=function(t){var n={};n["interpolation-punctuation"]=a;var i=e.tokenize(t,n);if(3===i.length){var s=[1,1];s.push.apply(s,o(i[1],e.languages.javascript,"javascript")),i.splice.apply(i,s)}return new e.Token("interpolation",i,r.alias,t)}(u[l]),g=d.substring(m+l.length),b=[];if(h&&b.push(h),b.push(f),g){var y=[g];t(y),b.push.apply(b,y)}"string"==typeof s?(n.splice.apply(n,[i,1].concat(b)),i+=b.length-1):s.content=b}}else{var E=s.content;Array.isArray(E)?t(E):t([E])}}}(d),new e.Token(s,d,"language-"+s,t)}(p,f,h)}}else t(u)}}}(t.tokens)})}(e)}t.exports=r,r.displayName="jsTemplates",r.aliases=[]},713758,(e,t,n)=>{"use strict";function r(e){var t;e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"],t=e.languages.extend("typescript",{}),delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}t.exports=r,r.displayName="typescript",r.aliases=["ts"]},479173,(e,t,n)=>{"use strict";var r=e.r(523456),a=e.r(713758);function i(e){var t,n,i;e.register(r),e.register(a),t=e.languages.javascript,i="(@(?:arg|argument|param|property)\\s+(?:"+(n=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source)+"\\s+)?)",e.languages.jsdoc=e.languages.extend("javadoclike",{parameter:{pattern:RegExp(i+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),e.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(i+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:t,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:<TYPE>\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(/<TYPE>/g,function(){return n})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+n),lookbehind:!0,inside:{string:t.string,number:t.number,boolean:t.boolean,keyword:e.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:t,alias:"language-javascript"}}}}),e.languages.javadoclike.addSupport("javascript",e.languages.jsdoc)}t.exports=i,i.displayName="jsdoc",i.aliases=[]},909483,(e,t,n)=>{"use strict";function r(e){e.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},e.languages.webmanifest=e.languages.json}t.exports=r,r.displayName="json",r.aliases=["webmanifest"]},394760,(e,t,n)=>{"use strict";var r=e.r(909483);function a(e){var t;e.register(r),t=/("|')(?:\\(?:\r\n?|\n|.)|(?!\1)[^\\\r\n])*\1/,e.languages.json5=e.languages.extend("json",{property:[{pattern:RegExp(t.source+"(?=\\s*:)"),greedy:!0},{pattern:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/,alias:"unquoted"}],string:{pattern:t,greedy:!0},number:/[+-]?\b(?:NaN|Infinity|0x[a-fA-F\d]+)\b|[+-]?(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+\b)?/})}t.exports=a,a.displayName="json5",a.aliases=[]},865624,(e,t,n)=>{"use strict";var r=e.r(909483);function a(e){e.register(r),e.languages.jsonp=e.languages.extend("json",{punctuation:/[{}[\]();,.]/}),e.languages.insertBefore("jsonp","punctuation",{function:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*\()/})}t.exports=a,a.displayName="jsonp",a.aliases=[]},603760,(e,t,n)=>{"use strict";function r(e){e.languages.jsstacktrace={"error-message":{pattern:/^\S.*/m,alias:"string"},"stack-frame":{pattern:/(^[ \t]+)at[ \t].*/m,lookbehind:!0,inside:{"not-my-code":{pattern:/^at[ \t]+(?!\s)(?:node\.js|<unknown>|.*(?:node_modules|\(<anonymous>\)|\(<unknown>|<anonymous>$|\(internal\/|\(node\.js)).*/m,alias:"comment"},filename:{pattern:/(\bat\s+(?!\s)|\()(?:[a-zA-Z]:)?[^():]+(?=:)/,lookbehind:!0,alias:"url"},function:{pattern:/(\bat\s+(?:new\s+)?)(?!\s)[_$a-zA-Z\xA0-\uFFFF<][.$\w\xA0-\uFFFF<>]*/,lookbehind:!0,inside:{punctuation:/\./}},punctuation:/[()]/,keyword:/\b(?:at|new)\b/,alias:{pattern:/\[(?:as\s+)?(?!\s)[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\]/,alias:"variable"},"line-number":{pattern:/:\d+(?::\d+)?\b/,alias:"number",inside:{punctuation:/:/}}}}}}t.exports=r,r.displayName="jsstacktrace",r.aliases=[]},494238,(e,t,n)=>{"use strict";function r(e){!function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,a=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function i(e,t){return RegExp(e=e.replace(/<S>/g,function(){return n}).replace(/<BRACES>/g,function(){return r}).replace(/<SPREAD>/g,function(){return a}),t)}a=i(a).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=i(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:i(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:i(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var s=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(s).join(""):""},o=function(t){for(var n=[],r=0;r<t.length;r++){var a=t[r],i=!1;if("string"!=typeof a&&("tag"===a.type&&a.content[0]&&"tag"===a.content[0].type?"</"===a.content[0].content[0].content?n.length>0&&n[n.length-1].tagName===s(a.content[0].content[1])&&n.pop():"/>"===a.content[a.content.length-1].content||n.push({tagName:s(a.content[0].content[1]),openedBraces:0}):n.length>0&&"punctuation"===a.type&&"{"===a.content?n[n.length-1].openedBraces++:n.length>0&&n[n.length-1].openedBraces>0&&"punctuation"===a.type&&"}"===a.content?n[n.length-1].openedBraces--:i=!0),(i||"string"==typeof a)&&n.length>0&&0===n[n.length-1].openedBraces){var l=s(a);r<t.length-1&&("string"==typeof t[r+1]||"plain-text"===t[r+1].type)&&(l+=s(t[r+1]),t.splice(r+1,1)),r>0&&("string"==typeof t[r-1]||"plain-text"===t[r-1].type)&&(l=s(t[r-1])+l,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",l,null,l)}a.content&&"string"!=typeof a.content&&o(a.content)}};e.hooks.add("after-tokenize",function(e){("jsx"===e.language||"tsx"===e.language)&&o(e.tokens)})}(e)}t.exports=r,r.displayName="jsx",r.aliases=[]},5428,(e,t,n)=>{"use strict";function r(e){e.languages.julia={comment:{pattern:/(^|[^\\])(?:#=(?:[^#=]|=(?!#)|#(?!=)|#=(?:[^#=]|=(?!#)|#(?!=))*=#)*=#|#.*)/,lookbehind:!0},regex:{pattern:/r"(?:\\.|[^"\\\r\n])*"[imsx]{0,4}/,greedy:!0},string:{pattern:/"""[\s\S]+?"""|(?:\b\w+)?"(?:\\.|[^"\\\r\n])*"|`(?:[^\\`\r\n]|\\.)*`/,greedy:!0},char:{pattern:/(^|[^\w'])'(?:\\[^\r\n][^'\r\n]*|[^\\\r\n])'/,lookbehind:!0,greedy:!0},keyword:/\b(?:abstract|baremodule|begin|bitstype|break|catch|ccall|const|continue|do|else|elseif|end|export|finally|for|function|global|if|immutable|import|importall|in|let|local|macro|module|print|println|quote|return|struct|try|type|typealias|using|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[box])?(?:[\da-f]+(?:_[\da-f]+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[efp][+-]?\d+(?:_\d+)*)?j?/i,operator:/&&|\|\||[-+*^%÷⊻&$\\]=?|\/[\/=]?|!=?=?|\|[=>]?|<(?:<=?|[=:|])?|>(?:=|>>?=?)?|==?=?|[~≠≤≥'√∛]/,punctuation:/::?|[{}[\]();,.?]/,constant:/\b(?:(?:Inf|NaN)(?:16|32|64)?|im|pi)\b|[πℯ]/}}t.exports=r,r.displayName="julia",r.aliases=[]},209769,(e,t,n)=>{"use strict";function r(e){e.languages.keepalived={comment:{pattern:/[#!].*/,greedy:!0},string:{pattern:/(^|[^\\])(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,lookbehind:!0,greedy:!0},ip:{pattern:RegExp(/\b(?:(?:(?:[\da-f]{1,4}:){7}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}:[\da-f]{1,4}|(?:[\da-f]{1,4}:){5}:(?:[\da-f]{1,4}:)?[\da-f]{1,4}|(?:[\da-f]{1,4}:){4}:(?:[\da-f]{1,4}:){0,2}[\da-f]{1,4}|(?:[\da-f]{1,4}:){3}:(?:[\da-f]{1,4}:){0,3}[\da-f]{1,4}|(?:[\da-f]{1,4}:){2}:(?:[\da-f]{1,4}:){0,4}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}<ipv4>|(?:[\da-f]{1,4}:){0,5}:<ipv4>|::(?:[\da-f]{1,4}:){0,5}<ipv4>|[\da-f]{1,4}::(?:[\da-f]{1,4}:){0,5}[\da-f]{1,4}|::(?:[\da-f]{1,4}:){0,6}[\da-f]{1,4}|(?:[\da-f]{1,4}:){1,7}:)(?:\/\d{1,3})?|<ipv4>(?:\/\d{1,2})?)\b/.source.replace(/<ipv4>/g,function(){return/(?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d))/.source}),"i"),alias:"number"},path:{pattern:/(\s)\/(?:[^\/\s]+\/)*[^\/\s]*|\b[a-zA-Z]:\\(?:[^\\\s]+\\)*[^\\\s]*/,lookbehind:!0,alias:"string"},variable:/\$\{?\w+\}?/,email:{pattern:/[\w-]+@[\w-]+(?:\.[\w-]{2,3}){1,2}/,alias:"string"},"conditional-configuration":{pattern:/@\^?[\w-]+/,alias:"variable"},operator:/=/,property:/\b(?:BFD_CHECK|DNS_CHECK|FILE_CHECK|HTTP_GET|MISC_CHECK|NAME|PING_CHECK|SCRIPTS|SMTP_CHECK|SSL|SSL_GET|TCP_CHECK|UDP_CHECK|accept|advert_int|alpha|auth_pass|auth_type|authentication|bfd_cpu_affinity|bfd_instance|bfd_no_swap|bfd_priority|bfd_process_name|bfd_rlimit_rttime|bfd_rt_priority|bind_if|bind_port|bindto|ca|certificate|check_unicast_src|checker|checker_cpu_affinity|checker_log_all_failures|checker_no_swap|checker_priority|checker_rlimit_rttime|checker_rt_priority|child_wait_time|connect_ip|connect_port|connect_timeout|dbus_service_name|debug|default_interface|delay|delay_before_retry|delay_loop|digest|dont_track_primary|dynamic|dynamic_interfaces|enable_(?:dbus|script_security|sni|snmp_checker|snmp_rfc|snmp_rfcv2|snmp_rfcv3|snmp_vrrp|traps)|end|fall|fast_recovery|file|flag-[123]|fork_delay|full_command|fwmark|garp_group|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|global_defs|global_tracking|gna_interval|group|ha_suspend|hashed|helo_name|higher_prio_send_advert|hoplimit|http_protocol|hysteresis|idle_tx|include|inhibit_on_failure|init_fail|init_file|instance|interface|interfaces|interval|ip_family|ipvs_process_name|keepalived.conf|kernel_rx_buf_size|key|linkbeat_interfaces|linkbeat_use_polling|log_all_failures|log_unknown_vrids|lower_prio_no_advert|lthreshold|lvs_flush|lvs_flush_onstop|lvs_method|lvs_netlink_cmd_rcv_bufs|lvs_netlink_cmd_rcv_bufs_force|lvs_netlink_monitor_rcv_bufs|lvs_netlink_monitor_rcv_bufs_force|lvs_notify_fifo|lvs_notify_fifo_script|lvs_sched|lvs_sync_daemon|max_auto_priority|max_hops|mcast_src_ip|mh-fallback|mh-port|min_auto_priority_delay|min_rx|min_tx|misc_dynamic|misc_path|misc_timeout|multiplier|name|namespace_with_ipsets|native_ipv6|neighbor_ip|net_namespace|net_namespace_ipvs|nftables|nftables_counters|nftables_ifindex|nftables_priority|no_accept|no_checker_emails|no_email_faults|nopreempt|notification_email|notification_email_from|notify|notify_backup|notify_deleted|notify_down|notify_fault|notify_fifo|notify_fifo_script|notify_master|notify_master_rx_lower_pri|notify_priority_changes|notify_stop|notify_up|old_unicast_checksum|omega|ops|param_match|passive|password|path|persistence_engine|persistence_granularity|persistence_timeout|preempt|preempt_delay|priority|process|process_monitor_rcv_bufs|process_monitor_rcv_bufs_force|process_name|process_names|promote_secondaries|protocol|proxy_arp|proxy_arp_pvlan|quorum|quorum_down|quorum_max|quorum_up|random_seed|real_server|regex|regex_max_offset|regex_min_offset|regex_no_match|regex_options|regex_stack|reload_repeat|reload_time_file|require_reply|retry|rise|router_id|rs_init_notifies|script|script_user|sh-fallback|sh-port|shutdown_script|shutdown_script_timeout|skip_check_adv_addr|smtp_alert|smtp_alert_checker|smtp_alert_vrrp|smtp_connect_timeout|smtp_helo_name|smtp_server|snmp_socket|sorry_server|sorry_server_inhibit|sorry_server_lvs_method|source_ip|start|startup_script|startup_script_timeout|state|static_ipaddress|static_routes|static_rules|status_code|step|strict_mode|sync_group_tracking_weight|terminate_delay|timeout|track_bfd|track_file|track_group|track_interface|track_process|track_script|track_src_ip|ttl|type|umask|unicast_peer|unicast_src_ip|unicast_ttl|url|use_ipvlan|use_pid_dir|use_vmac|user|uthreshold|val[123]|version|virtual_ipaddress|virtual_ipaddress_excluded|virtual_router_id|virtual_routes|virtual_rules|virtual_server|virtual_server_group|virtualhost|vmac_xmit_base|vrrp|vrrp_(?:check_unicast_src|cpu_affinity|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|gna_interval|higher_prio_send_advert|instance|ipsets|iptables|lower_prio_no_advert|mcast_group4|mcast_group6|min_garp|netlink_cmd_rcv_bufs|netlink_cmd_rcv_bufs_force|netlink_monitor_rcv_bufs|netlink_monitor_rcv_bufs_force|no_swap|notify_fifo|notify_fifo_script|notify_priority_changes|priority|process_name|rlimit_rttime|rt_priority|rx_bufs_multiplier|rx_bufs_policy|script|skip_check_adv_addr|startup_delay|strict|sync_group|track_process|version)|warmup|weight)\b/,constant:/\b(?:A|AAAA|AH|BACKUP|CNAME|DR|MASTER|MX|NAT|NS|PASS|SCTP|SOA|TCP|TUN|TXT|UDP|dh|fo|lblc|lblcr|lc|mh|nq|ovf|rr|sed|sh|wlc|wrr)\b/,number:{pattern:/(^|[^\w.-])-?\d+(?:\.\d+)?/,lookbehind:!0},boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\{\}]/}}t.exports=r,r.displayName="keepalived",r.aliases=[]},622616,(e,t,n)=>{"use strict";function r(e){e.languages.keyman={comment:{pattern:/\bc .*/i,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},"virtual-key":{pattern:/\[\s*(?:(?:ALT|CAPS|CTRL|LALT|LCTRL|NCAPS|RALT|RCTRL|SHIFT)\s+)*(?:[TKU]_[\w?]+|[A-E]\d\d?|"[^"\r\n]*"|'[^'\r\n]*')\s*\]/i,greedy:!0,alias:"function"},"header-keyword":{pattern:/&\w+/,alias:"bold"},"header-statement":{pattern:/\b(?:bitmap|bitmaps|caps always off|caps on only|copyright|hotkey|language|layout|message|name|shift frees caps|version)\b/i,alias:"bold"},"rule-keyword":{pattern:/\b(?:any|baselayout|beep|call|context|deadkey|dk|if|index|layer|notany|nul|outs|platform|reset|return|save|set|store|use)\b/i,alias:"keyword"},"structural-keyword":{pattern:/\b(?:ansi|begin|group|match|nomatch|unicode|using keys)\b/i,alias:"keyword"},"compile-target":{pattern:/\$(?:keyman|keymanonly|keymanweb|kmfl|weaver):/i,alias:"property"},number:/\b(?:U\+[\dA-F]+|d\d+|x[\da-f]+|\d+)\b/i,operator:/[+>\\$]|\.\./,punctuation:/[()=,]/}}t.exports=r,r.displayName="keyman",r.aliases=[]},811587,(e,t,n)=>{"use strict";function r(e){var t;e.languages.kotlin=e.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete e.languages.kotlin["class-name"],t={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.kotlin}},e.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:t},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:t},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete e.languages.kotlin.string,e.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),e.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),e.languages.kt=e.languages.kotlin,e.languages.kts=e.languages.kotlin}t.exports=r,r.displayName="kotlin",r.aliases=["kt","kts"]},91966,(e,t,n)=>{"use strict";function r(e){var t=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function n(e,n){return RegExp(e.replace(/<nonId>/g,t),n)}e.languages.kumir={comment:{pattern:/\|.*/},prolog:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^\n\r"]*"|'[^\n\r']*'/,greedy:!0},boolean:{pattern:n(/(^|[<nonId>])(?:да|нет)(?=[<nonId>]|$)/.source),lookbehind:!0},"operator-word":{pattern:n(/(^|[<nonId>])(?:и|или|не)(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"keyword"},"system-variable":{pattern:n(/(^|[<nonId>])знач(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"keyword"},type:[{pattern:n(/(^|[<nonId>])(?:вещ|лит|лог|сим|цел)(?:\x20*таб)?(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"builtin"},{pattern:n(/(^|[<nonId>])(?:компл|сканкод|файл|цвет)(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"important"}],keyword:{pattern:n(/(^|[<nonId>])(?:алг|арг(?:\x20*рез)?|ввод|ВКЛЮЧИТЬ|вс[её]|выбор|вывод|выход|дано|для|до|дс|если|иначе|исп|использовать|кон(?:(?:\x20+|_)исп)?|кц(?:(?:\x20+|_)при)?|надо|нач|нс|нц|от|пауза|пока|при|раза?|рез|стоп|таб|то|утв|шаг)(?=[<nonId>]|$)/.source),lookbehind:!0},name:{pattern:n(/(^|[<nonId>])[^\d<nonId>][^<nonId>]*(?:\x20+[^<nonId>]+)*(?=[<nonId>]|$)/.source),lookbehind:!0},number:{pattern:n(/(^|[<nonId>])(?:\B\$[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?=[<nonId>]|$)/.source,"i"),lookbehind:!0},punctuation:/:=|[(),:;\[\]]/,"operator-char":{pattern:/\*\*?|<[=>]?|>=?|[-+/=]/,alias:"operator"}},e.languages.kum=e.languages.kumir}t.exports=r,r.displayName="kumir",r.aliases=["kum"]},916007,(e,t,n)=>{"use strict";function r(e){e.languages.kusto={comment:{pattern:/\/\/.*/,greedy:!0},string:{pattern:/```[\s\S]*?```|[hH]?(?:"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\.)*'|@(?:"[^\r\n"]*"|'[^\r\n']*'))/,greedy:!0},verb:{pattern:/(\|\s*)[a-z][\w-]*/i,lookbehind:!0,alias:"keyword"},command:{pattern:/\.[a-z][a-z\d-]*\b/,alias:"keyword"},"class-name":/\b(?:bool|datetime|decimal|dynamic|guid|int|long|real|string|timespan)\b/,keyword:/\b(?:access|alias|and|anti|as|asc|auto|between|by|(?:contains|(?:ends|starts)with|has(?:perfix|suffix)?)(?:_cs)?|database|declare|desc|external|from|fullouter|has_all|in|ingestion|inline|inner|innerunique|into|(?:left|right)(?:anti(?:semi)?|inner|outer|semi)?|let|like|local|not|of|on|or|pattern|print|query_parameters|range|restrict|schema|set|step|table|tables|to|view|where|with|matches\s+regex|nulls\s+(?:first|last))(?![\w-])/,boolean:/\b(?:false|null|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/,datetime:[{pattern:/\b(?:(?:Fri|Friday|Mon|Monday|Sat|Saturday|Sun|Sunday|Thu|Thursday|Tue|Tuesday|Wed|Wednesday)\s*,\s*)?\d{1,2}(?:\s+|-)(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)(?:\s+|-)\d{2}\s+\d{2}:\d{2}(?::\d{2})?(?:\s*(?:\b(?:[A-Z]|(?:[ECMT][DS]|GM|U)T)|[+-]\d{4}))?\b/,alias:"number"},{pattern:/[+-]?\b(?:\d{4}-\d{2}-\d{2}(?:[ T]\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)?|\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)Z?/,alias:"number"}],number:/\b(?:0x[0-9A-Fa-f]+|\d+(?:\.\d+)?(?:[Ee][+-]?\d+)?)(?:(?:min|sec|[mnµ]s|[dhms]|microsecond|tick)\b)?|[+-]?\binf\b/,operator:/=>|[!=]~|[!=<>]=?|[-+*/%|]|\.\./,punctuation:/[()\[\]{},;.:]/}}t.exports=r,r.displayName="kusto",r.aliases=[]},314658,(e,t,n)=>{"use strict";function r(e){var t,n;n={"equation-command":{pattern:t=/\\(?:[^a-z()[\]]|[a-z*]+)/i,alias:"regex"}},e.languages.latex={comment:/%.*/,cdata:{pattern:/(\\begin\{((?:lstlisting|verbatim)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0},equation:[{pattern:/\$\$(?:\\[\s\S]|[^\\$])+\$\$|\$(?:\\[\s\S]|[^\\$])+\$|\\\([\s\S]*?\\\)|\\\[[\s\S]*?\\\]/,inside:n,alias:"string"},{pattern:/(\\begin\{((?:align|eqnarray|equation|gather|math|multline)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0,inside:n,alias:"string"}],keyword:{pattern:/(\\(?:begin|cite|documentclass|end|label|ref|usepackage)(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0},url:{pattern:/(\\url\{)[^}]+(?=\})/,lookbehind:!0},headline:{pattern:/(\\(?:chapter|frametitle|paragraph|part|section|subparagraph|subsection|subsubparagraph|subsubsection|subsubsubparagraph)\*?(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0,alias:"class-name"},function:{pattern:t,alias:"selector"},punctuation:/[[\]{}&]/},e.languages.tex=e.languages.latex,e.languages.context=e.languages.latex}t.exports=r,r.displayName="latex",r.aliases=["tex","context"]},114422,(e,t,n)=>{"use strict";var r=e.r(426226);function a(e){var t,n,a,i,s,o,l;e.register(r),t=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,n=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],a=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,i=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,s=/[{}\[\](),:;]/,e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:t,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:a,operator:i,punctuation:s},l=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:o={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php}}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:o}}],e.languages.insertBefore("php","variable",{string:l,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:t,string:l,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,number:a,operator:i,punctuation:s}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),e.hooks.add("before-tokenize",function(t){/<\?/.test(t.code)&&e.languages["markup-templating"].buildPlaceholders(t,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g)}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"php")})}t.exports=a,a.displayName="php",a.aliases=[]},240318,(e,t,n)=>{"use strict";var r=e.r(426226),a=e.r(114422);function i(e){var t;e.register(r),e.register(a),e.languages.latte={comment:/^\{\*[\s\S]*/,"latte-tag":{pattern:/(^\{(?:\/(?=[a-z]))?)(?:[=_]|[a-z]\w*\b(?!\())/i,lookbehind:!0,alias:"important"},delimiter:{pattern:/^\{\/?|\}$/,alias:"punctuation"},php:{pattern:/\S(?:[\s\S]*\S)?/,alias:"language-php",inside:e.languages.php}},t=e.languages.extend("markup",{}),e.languages.insertBefore("inside","attr-value",{"n-attr":{pattern:/n:[\w-]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+))?/,inside:{"attr-name":{pattern:/^[^\s=]+/,alias:"important"},"attr-value":{pattern:/=[\s\S]+/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}],php:{pattern:/\S(?:[\s\S]*\S)?/,inside:e.languages.php}}}}}},t.tag),e.hooks.add("before-tokenize",function(n){"latte"===n.language&&(e.languages["markup-templating"].buildPlaceholders(n,"latte",/\{\*[\s\S]*?\*\}|\{[^'"\s{}*](?:[^"'/{}]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|\/\*(?:[^*]|\*(?!\/))*\*\/)*\}/g),n.grammar=t)}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"latte")})}t.exports=i,i.displayName="latte",i.aliases=[]},296982,(e,t,n)=>{"use strict";function r(e){e.languages.less=e.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),e.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}})}t.exports=r,r.displayName="less",r.aliases=[]},817085,(e,t,n)=>{"use strict";function r(e){e.languages.scheme={comment:/;.*|#;\s*(?:\((?:[^()]|\([^()]*\))*\)|\[(?:[^\[\]]|\[[^\[\]]*\])*\])|#\|(?:[^#|]|#(?!\|)|\|(?!#)|#\|(?:[^#|]|#(?!\|)|\|(?!#))*\|#)*\|#/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},symbol:{pattern:/'[^()\[\]#'\s]+/,greedy:!0},char:{pattern:/#\\(?:[ux][a-fA-F\d]+\b|[-a-zA-Z]+\b|[\uD800-\uDBFF][\uDC00-\uDFFF]|\S)/,greedy:!0},"lambda-parameter":[{pattern:/((?:^|[^'`#])[(\[]lambda\s+)(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)/,lookbehind:!0},{pattern:/((?:^|[^'`#])[(\[]lambda\s+[(\[])[^()\[\]']+/,lookbehind:!0}],keyword:{pattern:/((?:^|[^'`#])[(\[])(?:begin|case(?:-lambda)?|cond(?:-expand)?|define(?:-library|-macro|-record-type|-syntax|-values)?|defmacro|delay(?:-force)?|do|else|except|export|guard|if|import|include(?:-ci|-library-declarations)?|lambda|let(?:rec)?(?:-syntax|-values|\*)?|let\*-values|only|parameterize|prefix|(?:quasi-?)?quote|rename|set!|syntax-(?:case|rules)|unless|unquote(?:-splicing)?|when)(?=[()\[\]\s]|$)/,lookbehind:!0},builtin:{pattern:/((?:^|[^'`#])[(\[])(?:abs|and|append|apply|assoc|ass[qv]|binary-port\?|boolean=?\?|bytevector(?:-append|-copy|-copy!|-length|-u8-ref|-u8-set!|\?)?|caar|cadr|call-with-(?:current-continuation|port|values)|call\/cc|car|cdar|cddr|cdr|ceiling|char(?:->integer|-ready\?|\?|<\?|<=\?|=\?|>\?|>=\?)|close-(?:input-port|output-port|port)|complex\?|cons|current-(?:error|input|output)-port|denominator|dynamic-wind|eof-object\??|eq\?|equal\?|eqv\?|error|error-object(?:-irritants|-message|\?)|eval|even\?|exact(?:-integer-sqrt|-integer\?|\?)?|expt|features|file-error\?|floor(?:-quotient|-remainder|\/)?|flush-output-port|for-each|gcd|get-output-(?:bytevector|string)|inexact\??|input-port(?:-open\?|\?)|integer(?:->char|\?)|lcm|length|list(?:->string|->vector|-copy|-ref|-set!|-tail|\?)?|make-(?:bytevector|list|parameter|string|vector)|map|max|member|memq|memv|min|modulo|negative\?|newline|not|null\?|number(?:->string|\?)|numerator|odd\?|open-(?:input|output)-(?:bytevector|string)|or|output-port(?:-open\?|\?)|pair\?|peek-char|peek-u8|port\?|positive\?|procedure\?|quotient|raise|raise-continuable|rational\?|rationalize|read-(?:bytevector|bytevector!|char|error\?|line|string|u8)|real\?|remainder|reverse|round|set-c[ad]r!|square|string(?:->list|->number|->symbol|->utf8|->vector|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?|<\?|<=\?|=\?|>\?|>=\?)?|substring|symbol(?:->string|\?|=\?)|syntax-error|textual-port\?|truncate(?:-quotient|-remainder|\/)?|u8-ready\?|utf8->string|values|vector(?:->list|->string|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?)?|with-exception-handler|write-(?:bytevector|char|string|u8)|zero\?)(?=[()\[\]\s]|$)/,lookbehind:!0},operator:{pattern:/((?:^|[^'`#])[(\[])(?:[-+*%/]|[<>]=?|=>?)(?=[()\[\]\s]|$)/,lookbehind:!0},number:{pattern:RegExp(function(e){for(var t in e)e[t]=e[t].replace(/<[\w\s]+>/g,function(t){return"(?:"+e[t].trim()+")"});return e[t]}({"<ureal dec>":/\d+(?:\/\d+)|(?:\d+(?:\.\d*)?|\.\d+)(?:[esfdl][+-]?\d+)?/.source,"<real dec>":/[+-]?<ureal dec>|[+-](?:inf|nan)\.0/.source,"<imaginary dec>":/[+-](?:<ureal dec>|(?:inf|nan)\.0)?i/.source,"<complex dec>":/<real dec>(?:@<real dec>|<imaginary dec>)?|<imaginary dec>/.source,"<num dec>":/(?:#d(?:#[ei])?|#[ei](?:#d)?)?<complex dec>/.source,"<ureal box>":/[0-9a-f]+(?:\/[0-9a-f]+)?/.source,"<real box>":/[+-]?<ureal box>|[+-](?:inf|nan)\.0/.source,"<imaginary box>":/[+-](?:<ureal box>|(?:inf|nan)\.0)?i/.source,"<complex box>":/<real box>(?:@<real box>|<imaginary box>)?|<imaginary box>/.source,"<num box>":/#[box](?:#[ei])?|(?:#[ei])?#[box]<complex box>/.source,"<number>":/(^|[()\[\]\s])(?:<num dec>|<num box>)(?=[()\[\]\s]|$)/.source}),"i"),lookbehind:!0},boolean:{pattern:/(^|[()\[\]\s])#(?:[ft]|false|true)(?=[()\[\]\s]|$)/,lookbehind:!0},function:{pattern:/((?:^|[^'`#])[(\[])(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)(?=[()\[\]\s]|$)/,lookbehind:!0},identifier:{pattern:/(^|[()\[\]\s])\|(?:[^\\|]|\\.)*\|(?=[()\[\]\s]|$)/,lookbehind:!0,greedy:!0},punctuation:/[()\[\]']/}}t.exports=r,r.displayName="scheme",r.aliases=[]},350114,(e,t,n)=>{"use strict";var r=e.r(817085);function a(e){e.register(r);for(var t=/\((?:[^();"#\\]|\\[\s\S]|;.*(?!.)|"(?:[^"\\]|\\.)*"|#(?:\{(?:(?!#\})[\s\S])*#\}|[^{])|<expr>)*\)/.source,n=0;n<5;n++)t=t.replace(/<expr>/g,function(){return t});t=t.replace(/<expr>/g,/[^\s\S]/.source);var a=e.languages.lilypond={comment:/%(?:(?!\{).*|\{[\s\S]*?%\})/,"embedded-scheme":{pattern:RegExp(/(^|[=\s])#(?:"(?:[^"\\]|\\.)*"|[^\s()"]*(?:[^\s()]|<expr>))/.source.replace(/<expr>/g,function(){return t}),"m"),lookbehind:!0,greedy:!0,inside:{scheme:{pattern:/^(#)[\s\S]+$/,lookbehind:!0,alias:"language-scheme",inside:{"embedded-lilypond":{pattern:/#\{[\s\S]*?#\}/,greedy:!0,inside:{punctuation:/^#\{|#\}$/,lilypond:{pattern:/[\s\S]+/,alias:"language-lilypond",inside:null}}},rest:e.languages.scheme}},punctuation:/#/}},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":{pattern:/(\\new\s+)[\w-]+/,lookbehind:!0},keyword:{pattern:/\\[a-z][-\w]*/i,inside:{punctuation:/^\\/}},operator:/[=|]|<<|>>/,punctuation:{pattern:/(^|[a-z\d])(?:'+|,+|[_^]?-[_^]?(?:[-+^!>._]|(?=\d))|[_^]\.?|[.!])|[{}()[\]<>^~]|\\[()[\]<>\\!]|--|__/,lookbehind:!0},number:/\b\d+(?:\/\d+)?\b/};a["embedded-scheme"].inside.scheme.inside["embedded-lilypond"].inside.lilypond.inside=a,e.languages.ly=a}t.exports=a,a.displayName="lilypond",a.aliases=[]},217450,(e,t,n)=>{"use strict";var r=e.r(426226);function a(e){e.register(r),e.languages.liquid={comment:{pattern:/(^\{%\s*comment\s*%\})[\s\S]+(?=\{%\s*endcomment\s*%\}$)/,lookbehind:!0},delimiter:{pattern:/^\{(?:\{\{|[%\{])-?|-?(?:\}\}|[%\}])\}$/,alias:"punctuation"},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},keyword:/\b(?:as|assign|break|(?:end)?(?:capture|case|comment|for|form|if|paginate|raw|style|tablerow|unless)|continue|cycle|decrement|echo|else|elsif|in|include|increment|limit|liquid|offset|range|render|reversed|section|when|with)\b/,object:/\b(?:address|all_country_option_tags|article|block|blog|cart|checkout|collection|color|country|country_option_tags|currency|current_page|current_tags|customer|customer_address|date|discount_allocation|discount_application|external_video|filter|filter_value|font|forloop|fulfillment|generic_file|gift_card|group|handle|image|line_item|link|linklist|localization|location|measurement|media|metafield|model|model_source|order|page|page_description|page_image|page_title|part|policy|product|product_option|recommendations|request|robots|routes|rule|script|search|selling_plan|selling_plan_allocation|selling_plan_group|shipping_method|shop|shop_locale|sitemap|store_availability|tax_line|template|theme|transaction|unit_price_measurement|user_agent|variant|video|video_source)\b/,function:[{pattern:/(\|\s*)\w+/,lookbehind:!0,alias:"filter"},{pattern:/(\.\s*)(?:first|last|size)/,lookbehind:!0}],boolean:/\b(?:false|nil|true)\b/,range:{pattern:/\.\./,alias:"operator"},number:/\b\d+(?:\.\d+)?\b/,operator:/[!=]=|<>|[<>]=?|[|?:=-]|\b(?:and|contains(?=\s)|or)\b/,punctuation:/[.,\[\]()]/,empty:{pattern:/\bempty\b/,alias:"keyword"}},e.hooks.add("before-tokenize",function(t){var n=!1;e.languages["markup-templating"].buildPlaceholders(t,"liquid",/\{%\s*comment\s*%\}[\s\S]*?\{%\s*endcomment\s*%\}|\{(?:%[\s\S]*?%|\{\{[\s\S]*?\}\}|\{[\s\S]*?\})\}/g,function(e){var t=/^\{%-?\s*(\w+)/.exec(e);if(t){var r=t[1];if("raw"===r&&!n)return n=!0,!0;if("endraw"===r)return n=!1,!0}return!n})}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"liquid")})}t.exports=a,a.displayName="liquid",a.aliases=[]},729199,(e,t,n)=>{"use strict";function r(e){!function(e){function t(e){return RegExp(/(\()/.source+"(?:"+e+")"+/(?=[\s\)])/.source)}function n(e){return RegExp(/([\s([])/.source+"(?:"+e+")"+/(?=[\s)])/.source)}var r=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,a="&"+r,i="(\\()",s="(?=\\s)",o=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,l={heading:{pattern:/;;;.*/,alias:["comment","title"]},comment:/;.*/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0,inside:{argument:/[-A-Z]+(?=[.,\s])/,symbol:RegExp("`"+r+"'")}},"quoted-symbol":{pattern:RegExp("#?'"+r),alias:["variable","symbol"]},"lisp-property":{pattern:RegExp(":"+r),alias:"property"},splice:{pattern:RegExp(",@?"+r),alias:["symbol","variable"]},keyword:[{pattern:RegExp(i+"(?:and|(?:cl-)?letf|cl-loop|cond|cons|error|if|(?:lexical-)?let\\*?|message|not|null|or|provide|require|setq|unless|use-package|when|while)"+s),lookbehind:!0},{pattern:RegExp(i+"(?:append|by|collect|concat|do|finally|for|in|return)"+s),lookbehind:!0}],declare:{pattern:t(/declare/.source),lookbehind:!0,alias:"keyword"},interactive:{pattern:t(/interactive/.source),lookbehind:!0,alias:"keyword"},boolean:{pattern:n(/nil|t/.source),lookbehind:!0},number:{pattern:n(/[-+]?\d+(?:\.\d*)?/.source),lookbehind:!0},defvar:{pattern:RegExp(i+"def(?:const|custom|group|var)\\s+"+r),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(r)}},defun:{pattern:RegExp(i+/(?:cl-)?(?:defmacro|defun\*?)\s+/.source+r+/\s+\(/.source+o+/\)/.source),lookbehind:!0,greedy:!0,inside:{keyword:/^(?:cl-)?def\S+/,arguments:null,function:{pattern:RegExp("(^\\s)"+r),lookbehind:!0},punctuation:/[()]/}},lambda:{pattern:RegExp(i+"lambda\\s+\\(\\s*(?:&?"+r+"(?:\\s+&?"+r+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(i+r),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},c={"lisp-marker":RegExp(a),varform:{pattern:RegExp(/\(/.source+r+/\s+(?=\S)/.source+o+/\)/.source),inside:l},argument:{pattern:RegExp(/(^|[\s(])/.source+r),lookbehind:!0,alias:"variable"},rest:l},u="\\S+(?:\\s+\\S+)*",d={pattern:RegExp(i+o+"(?=\\))"),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+u),inside:c},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+u),inside:c},keys:{pattern:RegExp("&key\\s+"+u+"(?:\\s+&allow-other-keys)?"),inside:c},argument:{pattern:RegExp(r),alias:"variable"},punctuation:/[()]/}};l.lambda.inside.arguments=d,l.defun.inside.arguments=e.util.clone(d),l.defun.inside.arguments.inside.sublist=d,e.languages.lisp=l,e.languages.elisp=l,e.languages.emacs=l,e.languages["emacs-lisp"]=l}(e)}t.exports=r,r.displayName="lisp",r.aliases=[]},528990,(e,t,n)=>{"use strict";function r(e){e.languages.livescript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\])#.*/,lookbehind:!0}],"interpolated-string":{pattern:/(^|[^"])("""|")(?:\\[\s\S]|(?!\2)[^\\])*\2(?!")/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/(^|[^\\])#[a-z_](?:-?[a-z]|[\d_])*/m,lookbehind:!0},interpolation:{pattern:/(^|[^\\])#\{[^}]+\}/m,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^#\{|\}$/,alias:"variable"}}},string:/[\s\S]+/}},string:[{pattern:/('''|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},{pattern:/<\[[\s\S]*?\]>/,greedy:!0},/\\[^\s,;\])}]+/],regex:[{pattern:/\/\/(?:\[[^\r\n\]]*\]|\\.|(?!\/\/)[^\\\[])+\/\/[gimyu]{0,5}/,greedy:!0,inside:{comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0}}},{pattern:/\/(?:\[[^\r\n\]]*\]|\\.|[^/\\\r\n\[])+\/[gimyu]{0,5}/,greedy:!0}],keyword:{pattern:/(^|(?!-).)\b(?:break|case|catch|class|const|continue|default|do|else|extends|fallthrough|finally|for(?: ever)?|function|if|implements|it|let|loop|new|null|otherwise|own|return|super|switch|that|then|this|throw|try|unless|until|var|void|when|while|yield)(?!-)\b/m,lookbehind:!0},"keyword-operator":{pattern:/(^|[^-])\b(?:(?:delete|require|typeof)!|(?:and|by|delete|export|from|import(?: all)?|in|instanceof|is(?: not|nt)?|not|of|or|til|to|typeof|with|xor)(?!-)\b)/m,lookbehind:!0,alias:"operator"},boolean:{pattern:/(^|[^-])\b(?:false|no|off|on|true|yes)(?!-)\b/m,lookbehind:!0},argument:{pattern:/(^|(?!\.&\.)[^&])&(?!&)\d*/m,lookbehind:!0,alias:"variable"},number:/\b(?:\d+~[\da-z]+|\d[\d_]*(?:\.\d[\d_]*)?(?:[a-z]\w*)?)/i,identifier:/[a-z_](?:-?[a-z]|[\d_])*/i,operator:[{pattern:/( )\.(?= )/,lookbehind:!0},/\.(?:[=~]|\.\.?)|\.(?:[&|^]|<<|>>>?)\.|:(?:=|:=?)|&&|\|[|>]|<(?:<<?<?|--?!?|~~?!?|[|=?])?|>[>=?]?|-(?:->?|>)?|\+\+?|@@?|%%?|\*\*?|!(?:~?=|--?>|~?~>)?|~(?:~?>|=)?|==?|\^\^?|[\/?]/],punctuation:/[(){}\[\]|.,:;`]/},e.languages.livescript["interpolated-string"].inside.interpolation.inside.rest=e.languages.livescript}t.exports=r,r.displayName="livescript",r.aliases=[]},81023,(e,t,n)=>{"use strict";function r(e){e.languages.llvm={comment:/;.*/,string:{pattern:/"[^"]*"/,greedy:!0},boolean:/\b(?:false|true)\b/,variable:/[%@!#](?:(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+|\d+)/i,label:/(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+:/i,type:{pattern:/\b(?:double|float|fp128|half|i[1-9]\d*|label|metadata|ppc_fp128|token|void|x86_fp80|x86_mmx)\b/,alias:"class-name"},keyword:/\b[a-z_][a-z_0-9]*\b/,number:/[+-]?\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-Fa-f]+\b|\b0xK[\dA-Fa-f]{20}\b|\b0x[ML][\dA-Fa-f]{32}\b|\b0xH[\dA-Fa-f]{4}\b/,punctuation:/[{}[\];(),.!*=<>]/}}t.exports=r,r.displayName="llvm",r.aliases=[]},319313,(e,t,n)=>{"use strict";function r(e){e.languages.log={string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?![st] | \w)(?:[^'\\\r\n]|\\.)*'/,greedy:!0},exception:{pattern:/(^|[^\w.])[a-z][\w.]*(?:Error|Exception):.*(?:(?:\r\n?|\n)[ \t]*(?:at[ \t].+|\.{3}.*|Caused by:.*))+(?:(?:\r\n?|\n)[ \t]*\.\.\. .*)?/,lookbehind:!0,greedy:!0,alias:["javastacktrace","language-javastacktrace"],inside:e.languages.javastacktrace||{keyword:/\bat\b/,function:/[a-z_][\w$]*(?=\()/,punctuation:/[.:()]/}},level:[{pattern:/\b(?:ALERT|CRIT|CRITICAL|EMERG|EMERGENCY|ERR|ERROR|FAILURE|FATAL|SEVERE)\b/,alias:["error","important"]},{pattern:/\b(?:WARN|WARNING|WRN)\b/,alias:["warning","important"]},{pattern:/\b(?:DISPLAY|INF|INFO|NOTICE|STATUS)\b/,alias:["info","keyword"]},{pattern:/\b(?:DBG|DEBUG|FINE)\b/,alias:["debug","keyword"]},{pattern:/\b(?:FINER|FINEST|TRACE|TRC|VERBOSE|VRB)\b/,alias:["trace","comment"]}],property:{pattern:/((?:^|[\]|])[ \t]*)[a-z_](?:[\w-]|\b\/\b)*(?:[. ]\(?\w(?:[\w-]|\b\/\b)*\)?)*:(?=\s)/im,lookbehind:!0},separator:{pattern:/(^|[^-+])-{3,}|={3,}|\*{3,}|- - /m,lookbehind:!0,alias:"comment"},url:/\b(?:file|ftp|https?):\/\/[^\s|,;'"]*[^\s|,;'">.]/,email:{pattern:/(^|\s)[-\w+.]+@[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)+(?=\s)/,lookbehind:!0,alias:"url"},"ip-address":{pattern:/\b(?:\d{1,3}(?:\.\d{1,3}){3})\b/,alias:"constant"},"mac-address":{pattern:/\b[a-f0-9]{2}(?::[a-f0-9]{2}){5}\b/i,alias:"constant"},domain:{pattern:/(^|\s)[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)*\.[a-z][a-z0-9-]+(?=\s)/,lookbehind:!0,alias:"constant"},uuid:{pattern:/\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/i,alias:"constant"},hash:{pattern:/\b(?:[a-f0-9]{32}){1,2}\b/i,alias:"constant"},"file-path":{pattern:/\b[a-z]:[\\/][^\s|,;:(){}\[\]"']+|(^|[\s:\[\](>|])\.{0,2}\/\w[^\s|,;:(){}\[\]"']*/i,lookbehind:!0,greedy:!0,alias:"string"},date:{pattern:RegExp(/\b\d{4}[-/]\d{2}[-/]\d{2}(?:T(?=\d{1,2}:)|(?=\s\d{1,2}:))/.source+"|"+/\b\d{1,4}[-/ ](?:\d{1,2}|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)[-/ ]\d{2,4}T?\b/.source+"|"+/\b(?:(?:Fri|Mon|Sat|Sun|Thu|Tue|Wed)(?:\s{1,2}(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep))?|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)\s{1,2}\d{1,2}\b/.source,"i"),alias:"number"},time:{pattern:/\b\d{1,2}:\d{1,2}:\d{1,2}(?:[.,:]\d+)?(?:\s?[+-]\d{2}:?\d{2}|Z)?\b/,alias:"number"},boolean:/\b(?:false|null|true)\b/i,number:{pattern:/(^|[^.\w])(?:0x[a-f0-9]+|0o[0-7]+|0b[01]+|v?\d[\da-f]*(?:\.\d+)*(?:e[+-]?\d+)?[a-z]{0,3}\b)\b(?!\.\w)/i,lookbehind:!0},operator:/[;:?<=>~/@!$%&+\-|^(){}*#]/,punctuation:/[\[\].,]/}}t.exports=r,r.displayName="log",r.aliases=[]},642481,(e,t,n)=>{"use strict";function r(e){e.languages.lolcode={comment:[/\bOBTW\s[\s\S]*?\sTLDR\b/,/\bBTW.+/],string:{pattern:/"(?::.|[^":])*"/,inside:{variable:/:\{[^}]+\}/,symbol:[/:\([a-f\d]+\)/i,/:\[[^\]]+\]/,/:[)>o":]/]},greedy:!0},number:/(?:\B-)?(?:\b\d+(?:\.\d*)?|\B\.\d+)/,symbol:{pattern:/(^|\s)(?:A )?(?:BUKKIT|NOOB|NUMBAR|NUMBR|TROOF|YARN)(?=\s|,|$)/,lookbehind:!0,inside:{keyword:/A(?=\s)/}},label:{pattern:/((?:^|\s)(?:IM IN YR|IM OUTTA YR) )[a-zA-Z]\w*/,lookbehind:!0,alias:"string"},function:{pattern:/((?:^|\s)(?:HOW IZ I|I IZ|IZ) )[a-zA-Z]\w*/,lookbehind:!0},keyword:[{pattern:/(^|\s)(?:AN|FOUND YR|GIMMEH|GTFO|HAI|HAS A|HOW IZ I|I HAS A|I IZ|IF U SAY SO|IM IN YR|IM OUTTA YR|IS NOW(?: A)?|ITZ(?: A)?|IZ|KTHX|KTHXBYE|LIEK(?: A)?|MAEK|MEBBE|MKAY|NERFIN|NO WAI|O HAI IM|O RLY\?|OIC|OMG|OMGWTF|R|SMOOSH|SRS|TIL|UPPIN|VISIBLE|WILE|WTF\?|YA RLY|YR)(?=\s|,|$)/,lookbehind:!0},/'Z(?=\s|,|$)/],boolean:{pattern:/(^|\s)(?:FAIL|WIN)(?=\s|,|$)/,lookbehind:!0},variable:{pattern:/(^|\s)IT(?=\s|,|$)/,lookbehind:!0},operator:{pattern:/(^|\s)(?:NOT|BOTH SAEM|DIFFRINT|(?:ALL|ANY|BIGGR|BOTH|DIFF|EITHER|MOD|PRODUKT|QUOSHUNT|SMALLR|SUM|WON) OF)(?=\s|,|$)/,lookbehind:!0},punctuation:/\.{3}|…|,|!/}}t.exports=r,r.displayName="lolcode",r.aliases=[]},364339,(e,t,n)=>{"use strict";function r(e){e.languages.magma={output:{pattern:/^(>.*(?:\r(?:\n|(?!\n))|\n))(?!>)(?:.+|(?:\r(?:\n|(?!\n))|\n)(?!>).*)(?:(?:\r(?:\n|(?!\n))|\n)(?!>).*)*/m,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\"])"(?:[^\r\n\\"]|\\.)*"/,lookbehind:!0,greedy:!0},keyword:/\b(?:_|adj|and|assert|assert2|assert3|assigned|break|by|case|cat|catch|clear|cmpeq|cmpne|continue|declare|default|delete|diff|div|do|elif|else|end|eq|error|eval|exists|exit|for|forall|forward|fprintf|freeze|function|ge|gt|if|iload|import|in|intrinsic|is|join|le|load|local|lt|meet|mod|ne|not|notadj|notin|notsubset|or|print|printf|procedure|quit|random|read|readi|repeat|require|requirege|requirerange|restore|return|save|sdiff|select|subset|then|time|to|try|until|vprint|vprintf|vtime|when|where|while|xor)\b/,boolean:/\b(?:false|true)\b/,generator:{pattern:/\b[a-z_]\w*(?=\s*<)/i,alias:"class-name"},function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},operator:/->|[-+*/^~!|#=]|:=|\.\./,punctuation:/[()[\]{}<>,;.:]/}}t.exports=r,r.displayName="magma",r.aliases=[]},683854,(e,t,n)=>{"use strict";function r(e){e.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/}}t.exports=r,r.displayName="makefile",r.aliases=[]},766504,(e,t,n)=>{"use strict";function r(e){!function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(/<inner>/g,function(){return t}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,a=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return r}),i=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+a+i+"(?:"+a+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+a+i+")(?:"+a+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+a+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+a+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(t){["url","bold","italic","strike","code-snippet"].forEach(function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])})}),e.hooks.add("after-tokenize",function(e){("markdown"===e.language||"md"===e.language)&&function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n<r;n++){var a=t[n];if("code"!==a.type){e(a.content);continue}var i=a.content[1],s=a.content[3];if(i&&s&&"code-language"===i.type&&"code-block"===s.type&&"string"==typeof i.content){var o=i.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),l="language-"+(o=(/[a-z][\w-]*/i.exec(o)||[""])[0].toLowerCase());s.alias?"string"==typeof s.alias?s.alias=[s.alias,l]:s.alias.push(l):s.alias=[l]}}}(e.tokens)}),e.hooks.add("wrap",function(t){if("code-block"===t.type){for(var n,r="",a=0,i=t.classes.length;a<i;a++){var c=t.classes[a],u=/language-(.+)/.exec(c);if(u){r=u[1];break}}var d=e.languages[r];if(d){t.content=e.highlight((n=t.content.value.replace(s,"")).replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(e,t){if("#"===(t=t.toLowerCase())[0])return l("x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)));var n=o[t];return n||e}),d,r)}else if(r&&"none"!==r&&e.plugins.autoloader){var p="md-"+new Date().valueOf()+"-"+Math.floor(1e16*Math.random());t.attributes.id=p,e.plugins.autoloader.loadLanguages(r,function(){var t=document.getElementById(p);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[r],r))})}}});var s=RegExp(e.languages.markup.tag.pattern.source,"gi"),o={amp:"&",lt:"<",gt:">",quot:'"'},l=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(e)}t.exports=r,r.displayName="markdown",r.aliases=["md"]},302106,(e,t,n)=>{"use strict";function r(e){e.languages.matlab={comment:[/%\{[\s\S]*?\}%/,/%.+/],string:{pattern:/\B'(?:''|[^'\r\n])*'/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?(?:[ij])?|\b[ij]\b/,keyword:/\b(?:NaN|break|case|catch|continue|else|elseif|end|for|function|if|inf|otherwise|parfor|pause|pi|return|switch|try|while)\b/,function:/\b(?!\d)\w+(?=\s*\()/,operator:/\.?[*^\/\\']|[+\-:@]|[<>=~]=?|&&?|\|\|?/,punctuation:/\.{3}|[.,;\[\](){}!]/}}t.exports=r,r.displayName="matlab",r.aliases=[]},32981,(e,t,n)=>{"use strict";function r(e){var t;t=/\b(?:about|and|animate|as|at|attributes|by|case|catch|collect|continue|coordsys|do|else|exit|fn|for|from|function|global|if|in|local|macroscript|mapped|max|not|of|off|on|or|parameters|persistent|plugin|rcmenu|return|rollout|set|struct|then|throw|to|tool|try|undo|utility|when|where|while|with)\b/i,e.languages.maxscript={comment:{pattern:/\/\*[\s\S]*?(?:\*\/|$)|--.*/,greedy:!0},string:{pattern:/(^|[^"\\@])(?:"(?:[^"\\]|\\[\s\S])*"|@"[^"]*")/,lookbehind:!0,greedy:!0},path:{pattern:/\$(?:[\w/\\.*?]|'[^']*')*/,greedy:!0,alias:"string"},"function-call":{pattern:RegExp("((?:"+(/^/.source+"|"+/[;=<>+\-*/^({\[]/.source)+"|"+/\b(?:and|by|case|catch|collect|do|else|if|in|not|or|return|then|to|try|where|while|with)\b/.source+")[ ]*)(?!"+t.source+")"+/[a-z_]\w*\b/.source+"(?=[ ]*(?:"+("(?!"+t.source+")"+/[a-z_]/.source+"|"+/\d|-\.?\d/.source)+"|"+/[({'"$@#?]/.source+"))","im"),lookbehind:!0,greedy:!0,alias:"function"},"function-definition":{pattern:/(\b(?:fn|function)\s+)\w+\b/i,lookbehind:!0,alias:"function"},argument:{pattern:/\b[a-z_]\w*(?=:)/i,alias:"attr-name"},keyword:t,boolean:/\b(?:false|true)\b/,time:{pattern:/(^|[^\w.])(?:(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?[msft])+|\d+:\d+(?:\.\d*)?)(?![\w.:])/,lookbehind:!0,alias:"number"},number:[{pattern:/(^|[^\w.])(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?|0x[a-fA-F0-9]+)(?![\w.:])/,lookbehind:!0},/\b(?:e|pi)\b/],constant:/\b(?:dontcollect|ok|silentValue|undefined|unsupplied)\b/,color:{pattern:/\b(?:black|blue|brown|gray|green|orange|red|white|yellow)\b/i,alias:"constant"},operator:/[-+*/<>=!]=?|[&^?]|#(?!\()/,punctuation:/[()\[\]{}.:,;]|#(?=\()|\\$/m}}t.exports=r,r.displayName="maxscript",r.aliases=[]},156851,(e,t,n)=>{"use strict";function r(e){e.languages.mel={comment:/\/\/.*/,code:{pattern:/`(?:\\.|[^\\`\r\n])*`/,greedy:!0,alias:"italic",inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},variable:/\$\w+/,number:/\b0x[\da-fA-F]+\b|\b\d+(?:\.\d*)?|\B\.\d+/,flag:{pattern:/-[^\d\W]\w*/,alias:"operator"},keyword:/\b(?:break|case|continue|default|do|else|float|for|global|if|in|int|matrix|proc|return|string|switch|vector|while)\b/,function:/\b\w+(?=\()|\b(?:CBG|HfAddAttractorToAS|HfAssignAS|HfBuildEqualMap|HfBuildFurFiles|HfBuildFurImages|HfCancelAFR|HfConnectASToHF|HfCreateAttractor|HfDeleteAS|HfEditAS|HfPerformCreateAS|HfRemoveAttractorFromAS|HfSelectAttached|HfSelectAttractors|HfUnAssignAS|Mayatomr|about|abs|addAttr|addAttributeEditorNodeHelp|addDynamic|addNewShelfTab|addPP|addPanelCategory|addPrefixToName|advanceToNextDrivenKey|affectedNet|affects|aimConstraint|air|alias|aliasAttr|align|alignCtx|alignCurve|alignSurface|allViewFit|ambientLight|angle|angleBetween|animCone|animCurveEditor|animDisplay|animView|annotate|appendStringArray|applicationName|applyAttrPreset|applyTake|arcLenDimContext|arcLengthDimension|arclen|arrayMapper|art3dPaintCtx|artAttrCtx|artAttrPaintVertexCtx|artAttrSkinPaintCtx|artAttrTool|artBuildPaintMenu|artFluidAttrCtx|artPuttyCtx|artSelectCtx|artSetPaintCtx|artUserPaintCtx|assignCommand|assignInputDevice|assignViewportFactories|attachCurve|attachDeviceAttr|attachSurface|attrColorSliderGrp|attrCompatibility|attrControlGrp|attrEnumOptionMenu|attrEnumOptionMenuGrp|attrFieldGrp|attrFieldSliderGrp|attrNavigationControlGrp|attrPresetEditWin|attributeExists|attributeInfo|attributeMenu|attributeQuery|autoKeyframe|autoPlace|bakeClip|bakeFluidShading|bakePartialHistory|bakeResults|bakeSimulation|basename|basenameEx|batchRender|bessel|bevel|bevelPlus|binMembership|bindSkin|blend2|blendShape|blendShapeEditor|blendShapePanel|blendTwoAttr|blindDataType|boneLattice|boundary|boxDollyCtx|boxZoomCtx|bufferCurve|buildBookmarkMenu|buildKeyframeMenu|button|buttonManip|cacheFile|cacheFileCombine|cacheFileMerge|cacheFileTrack|camera|cameraView|canCreateManip|canvas|capitalizeString|catch|catchQuiet|ceil|changeSubdivComponentDisplayLevel|changeSubdivRegion|channelBox|character|characterMap|characterOutlineEditor|characterize|chdir|checkBox|checkBoxGrp|checkDefaultRenderGlobals|choice|circle|circularFillet|clamp|clear|clearCache|clip|clipEditor|clipEditorCurrentTimeCtx|clipSchedule|clipSchedulerOutliner|clipTrimBefore|closeCurve|closeSurface|cluster|cmdFileOutput|cmdScrollFieldExecuter|cmdScrollFieldReporter|cmdShell|coarsenSubdivSelectionList|collision|color|colorAtPoint|colorEditor|colorIndex|colorIndexSliderGrp|colorSliderButtonGrp|colorSliderGrp|columnLayout|commandEcho|commandLine|commandPort|compactHairSystem|componentEditor|compositingInterop|computePolysetVolume|condition|cone|confirmDialog|connectAttr|connectControl|connectDynamic|connectJoint|connectionInfo|constrain|constrainValue|constructionHistory|container|containsMultibyte|contextInfo|control|convertFromOldLayers|convertIffToPsd|convertLightmap|convertSolidTx|convertTessellation|convertUnit|copyArray|copyFlexor|copyKey|copySkinWeights|cos|cpButton|cpCache|cpClothSet|cpCollision|cpConstraint|cpConvClothToMesh|cpForces|cpGetSolverAttr|cpPanel|cpProperty|cpRigidCollisionFilter|cpSeam|cpSetEdit|cpSetSolverAttr|cpSolver|cpSolverTypes|cpTool|cpUpdateClothUVs|createDisplayLayer|createDrawCtx|createEditor|createLayeredPsdFile|createMotionField|createNewShelf|createNode|createRenderLayer|createSubdivRegion|cross|crossProduct|ctxAbort|ctxCompletion|ctxEditMode|ctxTraverse|currentCtx|currentTime|currentTimeCtx|currentUnit|curve|curveAddPtCtx|curveCVCtx|curveEPCtx|curveEditorCtx|curveIntersect|curveMoveEPCtx|curveOnSurface|curveSketchCtx|cutKey|cycleCheck|cylinder|dagPose|date|defaultLightListCheckBox|defaultNavigation|defineDataServer|defineVirtualDevice|deformer|deg_to_rad|delete|deleteAttr|deleteShadingGroupsAndMaterials|deleteShelfTab|deleteUI|deleteUnusedBrushes|delrandstr|detachCurve|detachDeviceAttr|detachSurface|deviceEditor|devicePanel|dgInfo|dgdirty|dgeval|dgtimer|dimWhen|directKeyCtx|directionalLight|dirmap|dirname|disable|disconnectAttr|disconnectJoint|diskCache|displacementToPoly|displayAffected|displayColor|displayCull|displayLevelOfDetail|displayPref|displayRGBColor|displaySmoothness|displayStats|displayString|displaySurface|distanceDimContext|distanceDimension|doBlur|dolly|dollyCtx|dopeSheetEditor|dot|dotProduct|doubleProfileBirailSurface|drag|dragAttrContext|draggerContext|dropoffLocator|duplicate|duplicateCurve|duplicateSurface|dynCache|dynControl|dynExport|dynExpression|dynGlobals|dynPaintEditor|dynParticleCtx|dynPref|dynRelEdPanel|dynRelEditor|dynamicLoad|editAttrLimits|editDisplayLayerGlobals|editDisplayLayerMembers|editRenderLayerAdjustment|editRenderLayerGlobals|editRenderLayerMembers|editor|editorTemplate|effector|emit|emitter|enableDevice|encodeString|endString|endsWith|env|equivalent|equivalentTol|erf|error|eval|evalDeferred|evalEcho|event|exactWorldBoundingBox|exclusiveLightCheckBox|exec|executeForEachObject|exists|exp|expression|expressionEditorListen|extendCurve|extendSurface|extrude|fcheck|fclose|feof|fflush|fgetline|fgetword|file|fileBrowserDialog|fileDialog|fileExtension|fileInfo|filetest|filletCurve|filter|filterCurve|filterExpand|filterStudioImport|findAllIntersections|findAnimCurves|findKeyframe|findMenuItem|findRelatedSkinCluster|finder|firstParentOf|fitBspline|flexor|floatEq|floatField|floatFieldGrp|floatScrollBar|floatSlider|floatSlider2|floatSliderButtonGrp|floatSliderGrp|floor|flow|fluidCacheInfo|fluidEmitter|fluidVoxelInfo|flushUndo|fmod|fontDialog|fopen|formLayout|format|fprint|frameLayout|fread|freeFormFillet|frewind|fromNativePath|fwrite|gamma|gauss|geometryConstraint|getApplicationVersionAsFloat|getAttr|getClassification|getDefaultBrush|getFileList|getFluidAttr|getInputDeviceRange|getMayaPanelTypes|getModifiers|getPanel|getParticleAttr|getPluginResource|getenv|getpid|glRender|glRenderEditor|globalStitch|gmatch|goal|gotoBindPose|grabColor|gradientControl|gradientControlNoAttr|graphDollyCtx|graphSelectContext|graphTrackCtx|gravity|grid|gridLayout|group|groupObjectsByName|hardenPointCurve|hardware|hardwareRenderPanel|headsUpDisplay|headsUpMessage|help|helpLine|hermite|hide|hilite|hitTest|hotBox|hotkey|hotkeyCheck|hsv_to_rgb|hudButton|hudSlider|hudSliderButton|hwReflectionMap|hwRender|hwRenderLoad|hyperGraph|hyperPanel|hyperShade|hypot|iconTextButton|iconTextCheckBox|iconTextRadioButton|iconTextRadioCollection|iconTextScrollList|iconTextStaticLabel|ikHandle|ikHandleCtx|ikHandleDisplayScale|ikSolver|ikSplineHandleCtx|ikSystem|ikSystemInfo|ikfkDisplayMethod|illustratorCurves|image|imfPlugins|inheritTransform|insertJoint|insertJointCtx|insertKeyCtx|insertKnotCurve|insertKnotSurface|instance|instanceable|instancer|intField|intFieldGrp|intScrollBar|intSlider|intSliderGrp|interToUI|internalVar|intersect|iprEngine|isAnimCurve|isConnected|isDirty|isParentOf|isSameObject|isTrue|isValidObjectName|isValidString|isValidUiName|isolateSelect|itemFilter|itemFilterAttr|itemFilterRender|itemFilterType|joint|jointCluster|jointCtx|jointDisplayScale|jointLattice|keyTangent|keyframe|keyframeOutliner|keyframeRegionCurrentTimeCtx|keyframeRegionDirectKeyCtx|keyframeRegionDollyCtx|keyframeRegionInsertKeyCtx|keyframeRegionMoveKeyCtx|keyframeRegionScaleKeyCtx|keyframeRegionSelectKeyCtx|keyframeRegionSetKeyCtx|keyframeRegionTrackCtx|keyframeStats|lassoContext|lattice|latticeDeformKeyCtx|launch|launchImageEditor|layerButton|layeredShaderPort|layeredTexturePort|layout|layoutDialog|lightList|lightListEditor|lightListPanel|lightlink|lineIntersection|linearPrecision|linstep|listAnimatable|listAttr|listCameras|listConnections|listDeviceAttachments|listHistory|listInputDeviceAxes|listInputDeviceButtons|listInputDevices|listMenuAnnotation|listNodeTypes|listPanelCategories|listRelatives|listSets|listTransforms|listUnselected|listerEditor|loadFluid|loadNewShelf|loadPlugin|loadPluginLanguageResources|loadPrefObjects|localizedPanelLabel|lockNode|loft|log|longNameOf|lookThru|ls|lsThroughFilter|lsType|lsUI|mag|makeIdentity|makeLive|makePaintable|makeRoll|makeSingleSurface|makeTubeOn|makebot|manipMoveContext|manipMoveLimitsCtx|manipOptions|manipRotateContext|manipRotateLimitsCtx|manipScaleContext|manipScaleLimitsCtx|marker|match|max|memory|menu|menuBarLayout|menuEditor|menuItem|menuItemToShelf|menuSet|menuSetPref|messageLine|min|minimizeApp|mirrorJoint|modelCurrentTimeCtx|modelEditor|modelPanel|mouse|movIn|movOut|move|moveIKtoFK|moveKeyCtx|moveVertexAlongDirection|multiProfileBirailSurface|mute|nParticle|nameCommand|nameField|namespace|namespaceInfo|newPanelItems|newton|nodeCast|nodeIconButton|nodeOutliner|nodePreset|nodeType|noise|nonLinear|normalConstraint|normalize|nurbsBoolean|nurbsCopyUVSet|nurbsCube|nurbsEditUV|nurbsPlane|nurbsSelect|nurbsSquare|nurbsToPoly|nurbsToPolygonsPref|nurbsToSubdiv|nurbsToSubdivPref|nurbsUVSet|nurbsViewDirectionVector|objExists|objectCenter|objectLayer|objectType|objectTypeUI|obsoleteProc|oceanNurbsPreviewPlane|offsetCurve|offsetCurveOnSurface|offsetSurface|openGLExtension|openMayaPref|optionMenu|optionMenuGrp|optionVar|orbit|orbitCtx|orientConstraint|outlinerEditor|outlinerPanel|overrideModifier|paintEffectsDisplay|pairBlend|palettePort|paneLayout|panel|panelConfiguration|panelHistory|paramDimContext|paramDimension|paramLocator|parent|parentConstraint|particle|particleExists|particleInstancer|particleRenderInfo|partition|pasteKey|pathAnimation|pause|pclose|percent|performanceOptions|pfxstrokes|pickWalk|picture|pixelMove|planarSrf|plane|play|playbackOptions|playblast|plugAttr|plugNode|pluginInfo|pluginResourceUtil|pointConstraint|pointCurveConstraint|pointLight|pointMatrixMult|pointOnCurve|pointOnSurface|pointPosition|poleVectorConstraint|polyAppend|polyAppendFacetCtx|polyAppendVertex|polyAutoProjection|polyAverageNormal|polyAverageVertex|polyBevel|polyBlendColor|polyBlindData|polyBoolOp|polyBridgeEdge|polyCacheMonitor|polyCheck|polyChipOff|polyClipboard|polyCloseBorder|polyCollapseEdge|polyCollapseFacet|polyColorBlindData|polyColorDel|polyColorPerVertex|polyColorSet|polyCompare|polyCone|polyCopyUV|polyCrease|polyCreaseCtx|polyCreateFacet|polyCreateFacetCtx|polyCube|polyCut|polyCutCtx|polyCylinder|polyCylindricalProjection|polyDelEdge|polyDelFacet|polyDelVertex|polyDuplicateAndConnect|polyDuplicateEdge|polyEditUV|polyEditUVShell|polyEvaluate|polyExtrudeEdge|polyExtrudeFacet|polyExtrudeVertex|polyFlipEdge|polyFlipUV|polyForceUV|polyGeoSampler|polyHelix|polyInfo|polyInstallAction|polyLayoutUV|polyListComponentConversion|polyMapCut|polyMapDel|polyMapSew|polyMapSewMove|polyMergeEdge|polyMergeEdgeCtx|polyMergeFacet|polyMergeFacetCtx|polyMergeUV|polyMergeVertex|polyMirrorFace|polyMoveEdge|polyMoveFacet|polyMoveFacetUV|polyMoveUV|polyMoveVertex|polyNormal|polyNormalPerVertex|polyNormalizeUV|polyOptUvs|polyOptions|polyOutput|polyPipe|polyPlanarProjection|polyPlane|polyPlatonicSolid|polyPoke|polyPrimitive|polyPrism|polyProjection|polyPyramid|polyQuad|polyQueryBlindData|polyReduce|polySelect|polySelectConstraint|polySelectConstraintMonitor|polySelectCtx|polySelectEditCtx|polySeparate|polySetToFaceNormal|polySewEdge|polyShortestPathCtx|polySmooth|polySoftEdge|polySphere|polySphericalProjection|polySplit|polySplitCtx|polySplitEdge|polySplitRing|polySplitVertex|polyStraightenUVBorder|polySubdivideEdge|polySubdivideFacet|polyToSubdiv|polyTorus|polyTransfer|polyTriangulate|polyUVSet|polyUnite|polyWedgeFace|popen|popupMenu|pose|pow|preloadRefEd|print|progressBar|progressWindow|projFileViewer|projectCurve|projectTangent|projectionContext|projectionManip|promptDialog|propModCtx|propMove|psdChannelOutliner|psdEditTextureFile|psdExport|psdTextureFile|putenv|pwd|python|querySubdiv|quit|rad_to_deg|radial|radioButton|radioButtonGrp|radioCollection|radioMenuItemCollection|rampColorPort|rand|randomizeFollicles|randstate|rangeControl|readTake|rebuildCurve|rebuildSurface|recordAttr|recordDevice|redo|reference|referenceEdit|referenceQuery|refineSubdivSelectionList|refresh|refreshAE|registerPluginResource|rehash|reloadImage|removeJoint|removeMultiInstance|removePanelCategory|rename|renameAttr|renameSelectionList|renameUI|render|renderGlobalsNode|renderInfo|renderLayerButton|renderLayerParent|renderLayerPostProcess|renderLayerUnparent|renderManip|renderPartition|renderQualityNode|renderSettings|renderThumbnailUpdate|renderWindowEditor|renderWindowSelectContext|renderer|reorder|reorderDeformers|requires|reroot|resampleFluid|resetAE|resetPfxToPolyCamera|resetTool|resolutionNode|retarget|reverseCurve|reverseSurface|revolve|rgb_to_hsv|rigidBody|rigidSolver|roll|rollCtx|rootOf|rot|rotate|rotationInterpolation|roundConstantRadius|rowColumnLayout|rowLayout|runTimeCommand|runup|sampleImage|saveAllShelves|saveAttrPreset|saveFluid|saveImage|saveInitialState|saveMenu|savePrefObjects|savePrefs|saveShelf|saveToolSettings|scale|scaleBrushBrightness|scaleComponents|scaleConstraint|scaleKey|scaleKeyCtx|sceneEditor|sceneUIReplacement|scmh|scriptCtx|scriptEditorInfo|scriptJob|scriptNode|scriptTable|scriptToShelf|scriptedPanel|scriptedPanelType|scrollField|scrollLayout|sculpt|searchPathArray|seed|selLoadSettings|select|selectContext|selectCurveCV|selectKey|selectKeyCtx|selectKeyframeRegionCtx|selectMode|selectPref|selectPriority|selectType|selectedNodes|selectionConnection|separator|setAttr|setAttrEnumResource|setAttrMapping|setAttrNiceNameResource|setConstraintRestPosition|setDefaultShadingGroup|setDrivenKeyframe|setDynamic|setEditCtx|setEditor|setFluidAttr|setFocus|setInfinity|setInputDeviceMapping|setKeyCtx|setKeyPath|setKeyframe|setKeyframeBlendshapeTargetWts|setMenuMode|setNodeNiceNameResource|setNodeTypeFlag|setParent|setParticleAttr|setPfxToPolyCamera|setPluginResource|setProject|setStampDensity|setStartupMessage|setState|setToolTo|setUITemplate|setXformManip|sets|shadingConnection|shadingGeometryRelCtx|shadingLightRelCtx|shadingNetworkCompare|shadingNode|shapeCompare|shelfButton|shelfLayout|shelfTabLayout|shellField|shortNameOf|showHelp|showHidden|showManipCtx|showSelectionInTitle|showShadingGroupAttrEditor|showWindow|sign|simplify|sin|singleProfileBirailSurface|size|sizeBytes|skinCluster|skinPercent|smoothCurve|smoothTangentSurface|smoothstep|snap2to2|snapKey|snapMode|snapTogetherCtx|snapshot|soft|softMod|softModCtx|sort|sound|soundControl|source|spaceLocator|sphere|sphrand|spotLight|spotLightPreviewPort|spreadSheetEditor|spring|sqrt|squareSurface|srtContext|stackTrace|startString|startsWith|stitchAndExplodeShell|stitchSurface|stitchSurfacePoints|strcmp|stringArrayCatenate|stringArrayContains|stringArrayCount|stringArrayInsertAtIndex|stringArrayIntersector|stringArrayRemove|stringArrayRemoveAtIndex|stringArrayRemoveDuplicates|stringArrayRemoveExact|stringArrayToString|stringToStringArray|strip|stripPrefixFromName|stroke|subdAutoProjection|subdCleanTopology|subdCollapse|subdDuplicateAndConnect|subdEditUV|subdListComponentConversion|subdMapCut|subdMapSewMove|subdMatchTopology|subdMirror|subdToBlind|subdToPoly|subdTransferUVsToCache|subdiv|subdivCrease|subdivDisplaySmoothness|substitute|substituteAllString|substituteGeometry|substring|surface|surfaceSampler|surfaceShaderList|swatchDisplayPort|switchTable|symbolButton|symbolCheckBox|sysFile|system|tabLayout|tan|tangentConstraint|texLatticeDeformContext|texManipContext|texMoveContext|texMoveUVShellContext|texRotateContext|texScaleContext|texSelectContext|texSelectShortestPathCtx|texSmudgeUVContext|texWinToolCtx|text|textCurves|textField|textFieldButtonGrp|textFieldGrp|textManip|textScrollList|textToShelf|textureDisplacePlane|textureHairColor|texturePlacementContext|textureWindow|threadCount|threePointArcCtx|timeControl|timePort|timerX|toNativePath|toggle|toggleAxis|toggleWindowVisibility|tokenize|tokenizeList|tolerance|tolower|toolButton|toolCollection|toolDropped|toolHasOptions|toolPropertyWindow|torus|toupper|trace|track|trackCtx|transferAttributes|transformCompare|transformLimits|translator|trim|trunc|truncateFluidCache|truncateHairCache|tumble|tumbleCtx|turbulence|twoPointArcCtx|uiRes|uiTemplate|unassignInputDevice|undo|undoInfo|ungroup|uniform|unit|unloadPlugin|untangleUV|untitledFileName|untrim|upAxis|updateAE|userCtx|uvLink|uvSnapshot|validateShelfName|vectorize|view2dToolCtx|viewCamera|viewClipPlane|viewFit|viewHeadOn|viewLookAt|viewManip|viewPlace|viewSet|visor|volumeAxis|vortex|waitCursor|warning|webBrowser|webBrowserPrefs|whatIs|window|windowPref|wire|wireContext|workspace|wrinkle|wrinkleContext|writeTake|xbmLangPathList|xform)\b/,operator:[/\+[+=]?|-[-=]?|&&|\|\||[<>]=|[*\/!=]=?|[%^]/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,:;?\[\](){}]/},e.languages.mel.code.inside.rest=e.languages.mel}t.exports=r,r.displayName="mel",r.aliases=[]},225413,(e,t,n)=>{"use strict";function r(e){e.languages.mermaid={comment:{pattern:/%%.*/,greedy:!0},style:{pattern:/^([ \t]*(?:classDef|linkStyle|style)[ \t]+[\w$-]+[ \t]+)\w.*[^\s;]/m,lookbehind:!0,inside:{property:/\b\w[\w-]*(?=[ \t]*:)/,operator:/:/,punctuation:/,/}},"inter-arrow-label":{pattern:/([^<>ox.=-])(?:-[-.]|==)(?![<>ox.=-])[ \t]*(?:"[^"\r\n]*"|[^\s".=-](?:[^\r\n.=-]*[^\s.=-])?)[ \t]*(?:\.+->?|--+[->]|==+[=>])(?![<>ox.=-])/,lookbehind:!0,greedy:!0,inside:{arrow:{pattern:/(?:\.+->?|--+[->]|==+[=>])$/,alias:"operator"},label:{pattern:/^([\s\S]{2}[ \t]*)\S(?:[\s\S]*\S)?/,lookbehind:!0,alias:"property"},"arrow-head":{pattern:/^\S+/,alias:["arrow","operator"]}}},arrow:[{pattern:/(^|[^{}|o.-])[|}][|o](?:--|\.\.)[|o][|{](?![{}|o.-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>ox.=-])(?:[<ox](?:==+|--+|-\.*-)[>ox]?|(?:==+|--+|-\.*-)[>ox]|===+|---+|-\.+-)(?![<>ox.=-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>()x-])(?:--?(?:>>|[x>)])(?![<>()x])|(?:<<|[x<(])--?(?!-))/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>|*o.-])(?:[*o]--|--[*o]|<\|?(?:--|\.\.)|(?:--|\.\.)\|?>|--|\.\.)(?![<>|*o.-])/,lookbehind:!0,alias:"operator"}],label:{pattern:/(^|[^|<])\|(?:[^\r\n"|]|"[^"\r\n]*")+\|/,lookbehind:!0,greedy:!0,alias:"property"},text:{pattern:/(?:[(\[{]+|\b>)(?:[^\r\n"()\[\]{}]|"[^"\r\n]*")+(?:[)\]}]+|>)/,alias:"string"},string:{pattern:/"[^"\r\n]*"/,greedy:!0},annotation:{pattern:/<<(?:abstract|choice|enumeration|fork|interface|join|service)>>|\[\[(?:choice|fork|join)\]\]/i,alias:"important"},keyword:[{pattern:/(^[ \t]*)(?:action|callback|class|classDef|classDiagram|click|direction|erDiagram|flowchart|gantt|gitGraph|graph|journey|link|linkStyle|pie|requirementDiagram|sequenceDiagram|stateDiagram|stateDiagram-v2|style|subgraph)(?![\w$-])/m,lookbehind:!0,greedy:!0},{pattern:/(^[ \t]*)(?:activate|alt|and|as|autonumber|deactivate|else|end(?:[ \t]+note)?|loop|opt|par|participant|rect|state|note[ \t]+(?:over|(?:left|right)[ \t]+of))(?![\w$-])/im,lookbehind:!0,greedy:!0}],entity:/#[a-z0-9]+;/,operator:{pattern:/(\w[ \t]*)&(?=[ \t]*\w)|:::|:/,lookbehind:!0},punctuation:/[(){};]/}}t.exports=r,r.displayName="mermaid",r.aliases=[]},783321,(e,t,n)=>{"use strict";function r(e){e.languages.mizar={comment:/::.+/,keyword:/@proof\b|\b(?:according|aggregate|all|and|antonym|are|as|associativity|assume|asymmetry|attr|be|begin|being|by|canceled|case|cases|clusters?|coherence|commutativity|compatibility|connectedness|consider|consistency|constructors|contradiction|correctness|def|deffunc|define|definitions?|defpred|do|does|end|environ|equals|ex|exactly|existence|for|from|func|given|hence|hereby|holds|idempotence|identity|iff?|implies|involutiveness|irreflexivity|is|it|let|means|mode|non|not|notations?|now|of|or|otherwise|over|per|pred|prefix|projectivity|proof|provided|qua|reconsider|redefine|reduce|reducibility|reflexivity|registrations?|requirements|reserve|sch|schemes?|section|selector|set|sethood|st|struct|such|suppose|symmetry|synonym|take|that|the|then|theorems?|thesis|thus|to|transitivity|uniqueness|vocabular(?:ies|y)|when|where|with|wrt)\b/,parameter:{pattern:/\$(?:10|\d)/,alias:"variable"},variable:/\b\w+(?=:)/,number:/(?:\b|-)\d+\b/,operator:/\.\.\.|->|&|\.?=/,punctuation:/\(#|#\)|[,:;\[\](){}]/}}t.exports=r,r.displayName="mizar",r.aliases=[]},485108,(e,t,n)=>{"use strict";function r(e){var t;t="(?:"+["$eq","$gt","$gte","$in","$lt","$lte","$ne","$nin","$and","$not","$nor","$or","$exists","$type","$expr","$jsonSchema","$mod","$regex","$text","$where","$geoIntersects","$geoWithin","$near","$nearSphere","$all","$elemMatch","$size","$bitsAllClear","$bitsAllSet","$bitsAnyClear","$bitsAnySet","$comment","$elemMatch","$meta","$slice","$currentDate","$inc","$min","$max","$mul","$rename","$set","$setOnInsert","$unset","$addToSet","$pop","$pull","$push","$pullAll","$each","$position","$slice","$sort","$bit","$addFields","$bucket","$bucketAuto","$collStats","$count","$currentOp","$facet","$geoNear","$graphLookup","$group","$indexStats","$limit","$listLocalSessions","$listSessions","$lookup","$match","$merge","$out","$planCacheStats","$project","$redact","$replaceRoot","$replaceWith","$sample","$set","$skip","$sort","$sortByCount","$unionWith","$unset","$unwind","$setWindowFields","$abs","$accumulator","$acos","$acosh","$add","$addToSet","$allElementsTrue","$and","$anyElementTrue","$arrayElemAt","$arrayToObject","$asin","$asinh","$atan","$atan2","$atanh","$avg","$binarySize","$bsonSize","$ceil","$cmp","$concat","$concatArrays","$cond","$convert","$cos","$dateFromParts","$dateToParts","$dateFromString","$dateToString","$dayOfMonth","$dayOfWeek","$dayOfYear","$degreesToRadians","$divide","$eq","$exp","$filter","$first","$floor","$function","$gt","$gte","$hour","$ifNull","$in","$indexOfArray","$indexOfBytes","$indexOfCP","$isArray","$isNumber","$isoDayOfWeek","$isoWeek","$isoWeekYear","$last","$last","$let","$literal","$ln","$log","$log10","$lt","$lte","$ltrim","$map","$max","$mergeObjects","$meta","$min","$millisecond","$minute","$mod","$month","$multiply","$ne","$not","$objectToArray","$or","$pow","$push","$radiansToDegrees","$range","$reduce","$regexFind","$regexFindAll","$regexMatch","$replaceOne","$replaceAll","$reverseArray","$round","$rtrim","$second","$setDifference","$setEquals","$setIntersection","$setIsSubset","$setUnion","$size","$sin","$slice","$split","$sqrt","$stdDevPop","$stdDevSamp","$strcasecmp","$strLenBytes","$strLenCP","$substr","$substrBytes","$substrCP","$subtract","$sum","$switch","$tan","$toBool","$toDate","$toDecimal","$toDouble","$toInt","$toLong","$toObjectId","$toString","$toLower","$toUpper","$trim","$trunc","$type","$week","$year","$zip","$count","$dateAdd","$dateDiff","$dateSubtract","$dateTrunc","$getField","$rand","$sampleRate","$setField","$unsetField","$comment","$explain","$hint","$max","$maxTimeMS","$min","$orderby","$query","$returnKey","$showDiskLoc","$natural"].map(function(e){return e.replace("$","\\$")}).join("|")+")\\b",e.languages.mongodb=e.languages.extend("javascript",{}),e.languages.insertBefore("mongodb","string",{property:{pattern:/(?:(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)(?=\s*:)/,greedy:!0,inside:{keyword:RegExp("^(['\"])?"+t+"(?:\\1)?$")}}}),e.languages.mongodb.string.inside={url:{pattern:/https?:\/\/[-\w@:%.+~#=]{1,256}\.[a-z0-9()]{1,6}\b[-\w()@:%+.~#?&/=]*/i,greedy:!0},entity:{pattern:/\b(?:(?:[01]?\d\d?|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d\d?|2[0-4]\d|25[0-5])\b/,greedy:!0}},e.languages.insertBefore("mongodb","constant",{builtin:{pattern:RegExp("\\b(?:ObjectId|Code|BinData|DBRef|Timestamp|NumberLong|NumberDecimal|MaxKey|MinKey|RegExp|ISODate|UUID)\\b"),alias:"keyword"}})}t.exports=r,r.displayName="mongodb",r.aliases=[]},799375,(e,t,n)=>{"use strict";function r(e){e.languages.monkey={comment:{pattern:/^#Rem\s[\s\S]*?^#End|'.+/im,greedy:!0},string:{pattern:/"[^"\r\n]*"/,greedy:!0},preprocessor:{pattern:/(^[ \t]*)#.+/m,lookbehind:!0,greedy:!0,alias:"property"},function:/\b\w+(?=\()/,"type-char":{pattern:/\b[?%#$]/,alias:"class-name"},number:{pattern:/((?:\.\.)?)(?:(?:\b|\B-\.?|\B\.)\d+(?:(?!\.\.)\.\d*)?|\$[\da-f]+)/i,lookbehind:!0},keyword:/\b(?:Abstract|Array|Bool|Case|Catch|Class|Const|Continue|Default|Eachin|Else|ElseIf|End|EndIf|Exit|Extends|Extern|False|Field|Final|Float|For|Forever|Function|Global|If|Implements|Import|Inline|Int|Interface|Local|Method|Module|New|Next|Null|Object|Private|Property|Public|Repeat|Return|Select|Self|Step|Strict|String|Super|Then|Throw|To|True|Try|Until|Void|Wend|While)\b/i,operator:/\.\.|<[=>]?|>=?|:?=|(?:[+\-*\/&~|]|\b(?:Mod|Shl|Shr)\b)=?|\b(?:And|Not|Or)\b/i,punctuation:/[.,:;()\[\]]/}}t.exports=r,r.displayName="monkey",r.aliases=[]},176205,(e,t,n)=>{"use strict";function r(e){e.languages.moonscript={comment:/--.*/,string:[{pattern:/'[^']*'|\[(=*)\[[\s\S]*?\]\1\]/,greedy:!0},{pattern:/"[^"]*"/,greedy:!0,inside:{interpolation:{pattern:/#\{[^{}]*\}/,inside:{moonscript:{pattern:/(^#\{)[\s\S]+(?=\})/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/#\{|\}/,alias:"punctuation"}}}}}],"class-name":[{pattern:/(\b(?:class|extends)[ \t]+)\w+/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\b(?:class|continue|do|else|elseif|export|extends|for|from|if|import|in|local|nil|return|self|super|switch|then|unless|using|when|while|with)\b/,variable:/@@?\w*/,property:{pattern:/\b(?!\d)\w+(?=:)|(:)(?!\d)\w+/,lookbehind:!0},function:{pattern:/\b(?:_G|_VERSION|assert|collectgarbage|coroutine\.(?:create|resume|running|status|wrap|yield)|debug\.(?:debug|getfenv|gethook|getinfo|getlocal|getmetatable|getregistry|getupvalue|setfenv|sethook|setlocal|setmetatable|setupvalue|traceback)|dofile|error|getfenv|getmetatable|io\.(?:close|flush|input|lines|open|output|popen|read|stderr|stdin|stdout|tmpfile|type|write)|ipairs|load|loadfile|loadstring|math\.(?:abs|acos|asin|atan|atan2|ceil|cos|cosh|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|pi|pow|rad|random|randomseed|sin|sinh|sqrt|tan|tanh)|module|next|os\.(?:clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)|package\.(?:cpath|loaded|loadlib|path|preload|seeall)|pairs|pcall|print|rawequal|rawget|rawset|require|select|setfenv|setmetatable|string\.(?:byte|char|dump|find|format|gmatch|gsub|len|lower|match|rep|reverse|sub|upper)|table\.(?:concat|insert|maxn|remove|sort)|tonumber|tostring|type|unpack|xpcall)\b/,inside:{punctuation:/\./}},boolean:/\b(?:false|true)\b/,number:/(?:\B\.\d+|\b\d+\.\d+|\b\d+(?=[eE]))(?:[eE][-+]?\d+)?\b|\b(?:0x[a-fA-F\d]+|\d+)(?:U?LL)?\b/,operator:/\.{3}|[-=]>|~=|(?:[-+*/%<>!=]|\.\.)=?|[:#^]|\b(?:and|or)\b=?|\b(?:not)\b/,punctuation:/[.,()[\]{}\\]/},e.languages.moonscript.string[1].inside.interpolation.inside.moonscript.inside=e.languages.moonscript,e.languages.moon=e.languages.moonscript}t.exports=r,r.displayName="moonscript",r.aliases=["moon"]},437801,(e,t,n)=>{"use strict";function r(e){e.languages.n1ql={comment:{pattern:/\/\*[\s\S]*?(?:$|\*\/)|--.*/,greedy:!0},string:{pattern:/(["'])(?:\\[\s\S]|(?!\1)[^\\]|\1\1)*\1/,greedy:!0},identifier:{pattern:/`(?:\\[\s\S]|[^\\`]|``)*`/,greedy:!0},parameter:/\$[\w.]+/,keyword:/\b(?:ADVISE|ALL|ALTER|ANALYZE|AS|ASC|AT|BEGIN|BINARY|BOOLEAN|BREAK|BUCKET|BUILD|BY|CALL|CAST|CLUSTER|COLLATE|COLLECTION|COMMIT|COMMITTED|CONNECT|CONTINUE|CORRELATE|CORRELATED|COVER|CREATE|CURRENT|DATABASE|DATASET|DATASTORE|DECLARE|DECREMENT|DELETE|DERIVED|DESC|DESCRIBE|DISTINCT|DO|DROP|EACH|ELEMENT|EXCEPT|EXCLUDE|EXECUTE|EXPLAIN|FETCH|FILTER|FLATTEN|FLUSH|FOLLOWING|FOR|FORCE|FROM|FTS|FUNCTION|GOLANG|GRANT|GROUP|GROUPS|GSI|HASH|HAVING|IF|IGNORE|ILIKE|INCLUDE|INCREMENT|INDEX|INFER|INLINE|INNER|INSERT|INTERSECT|INTO|IS|ISOLATION|JAVASCRIPT|JOIN|KEY|KEYS|KEYSPACE|KNOWN|LANGUAGE|LAST|LEFT|LET|LETTING|LEVEL|LIMIT|LSM|MAP|MAPPING|MATCHED|MATERIALIZED|MERGE|MINUS|MISSING|NAMESPACE|NEST|NL|NO|NTH_VALUE|NULL|NULLS|NUMBER|OBJECT|OFFSET|ON|OPTION|OPTIONS|ORDER|OTHERS|OUTER|OVER|PARSE|PARTITION|PASSWORD|PATH|POOL|PRECEDING|PREPARE|PRIMARY|PRIVATE|PRIVILEGE|PROBE|PROCEDURE|PUBLIC|RANGE|RAW|REALM|REDUCE|RENAME|RESPECT|RETURN|RETURNING|REVOKE|RIGHT|ROLE|ROLLBACK|ROW|ROWS|SATISFIES|SAVEPOINT|SCHEMA|SCOPE|SELECT|SELF|SEMI|SET|SHOW|SOME|START|STATISTICS|STRING|SYSTEM|TIES|TO|TRAN|TRANSACTION|TRIGGER|TRUNCATE|UNBOUNDED|UNDER|UNION|UNIQUE|UNKNOWN|UNNEST|UNSET|UPDATE|UPSERT|USE|USER|USING|VALIDATE|VALUE|VALUES|VIA|VIEW|WHERE|WHILE|WINDOW|WITH|WORK|XOR)\b/i,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:FALSE|TRUE)\b/i,number:/(?:\b\d+\.|\B\.)\d+e[+\-]?\d+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/%]|!=|==?|\|\||<[>=]?|>=?|\b(?:AND|ANY|ARRAY|BETWEEN|CASE|ELSE|END|EVERY|EXISTS|FIRST|IN|LIKE|NOT|OR|THEN|VALUED|WHEN|WITHIN)\b/i,punctuation:/[;[\](),.{}:]/}}t.exports=r,r.displayName="n1ql",r.aliases=[]},213631,(e,t,n)=>{"use strict";function r(e){e.languages.n4js=e.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),e.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),e.languages.n4jsd=e.languages.n4js}t.exports=r,r.displayName="n4js",r.aliases=["n4jsd"]},455319,(e,t,n)=>{"use strict";function r(e){e.languages["nand2tetris-hdl"]={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,keyword:/\b(?:BUILTIN|CHIP|CLOCKED|IN|OUT|PARTS)\b/,boolean:/\b(?:false|true)\b/,function:/\b[A-Za-z][A-Za-z0-9]*(?=\()/,number:/\b\d+\b/,operator:/=|\.\./,punctuation:/[{}[\];(),:]/}}t.exports=r,r.displayName="nand2tetrisHdl",r.aliases=[]},233383,(e,t,n)=>{"use strict";function r(e){var t,n;n={"quoted-string":{pattern:/"(?:[^"\\]|\\.)*"/,alias:"operator"},"command-param-id":{pattern:/(\s)\w+:/,lookbehind:!0,alias:"property"},"command-param-value":[{pattern:t=/\{[^\r\n\[\]{}]*\}/,alias:"selector"},{pattern:/([\t ])\S+/,lookbehind:!0,greedy:!0,alias:"operator"},{pattern:/\S(?:.*\S)?/,alias:"operator"}]},e.languages.naniscript={comment:{pattern:/^([\t ]*);.*/m,lookbehind:!0},define:{pattern:/^>.+/m,alias:"tag",inside:{value:{pattern:/(^>\w+[\t ]+)(?!\s)[^{}\r\n]+/,lookbehind:!0,alias:"operator"},key:{pattern:/(^>)\w+/,lookbehind:!0}}},label:{pattern:/^([\t ]*)#[\t ]*\w+[\t ]*$/m,lookbehind:!0,alias:"regex"},command:{pattern:/^([\t ]*)@\w+(?=[\t ]|$).*/m,lookbehind:!0,alias:"function",inside:{"command-name":/^@\w+/,expression:{pattern:t,greedy:!0,alias:"selector"},"command-params":{pattern:/\s*\S[\s\S]*/,inside:n}}},"generic-text":{pattern:/(^[ \t]*)[^#@>;\s].*/m,lookbehind:!0,alias:"punctuation",inside:{"escaped-char":/\\[{}\[\]"]/,expression:{pattern:t,greedy:!0,alias:"selector"},"inline-command":{pattern:/\[[\t ]*\w[^\r\n\[\]]*\]/,greedy:!0,alias:"function",inside:{"command-params":{pattern:/(^\[[\t ]*\w+\b)[\s\S]+(?=\]$)/,lookbehind:!0,inside:n},"command-param-name":{pattern:/^(\[[\t ]*)\w+/,lookbehind:!0,alias:"name"},"start-stop-char":/[\[\]]/}}}}},e.languages.nani=e.languages.naniscript,e.hooks.add("after-tokenize",function(e){e.tokens.forEach(function(e){if("string"!=typeof e&&"generic-text"===e.type){var t=function e(t){return"string"==typeof t?t:Array.isArray(t)?t.map(e).join(""):e(t.content)}(e);!function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n],a="[]{}".indexOf(r);if(-1!==a){if(a%2==0)t.push(a+1);else if(t.pop()!==a)return!1}}return 0===t.length}(t)&&(e.type="bad-line",e.content=t)}})})}t.exports=r,r.displayName="naniscript",r.aliases=[]},445923,(e,t,n)=>{"use strict";function r(e){e.languages.nasm={comment:/;.*$/m,string:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,label:{pattern:/(^\s*)[A-Za-z._?$][\w.?$@~#]*:/m,lookbehind:!0,alias:"function"},keyword:[/\[?BITS (?:16|32|64)\]?/,{pattern:/(^\s*)section\s*[a-z.]+:?/im,lookbehind:!0},/(?:extern|global)[^;\r\n]*/i,/(?:CPU|DEFAULT|FLOAT).*$/m],register:{pattern:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s)\b/i,alias:"variable"},number:/(?:\b|(?=\$))(?:0[hx](?:\.[\da-f]+|[\da-f]+(?:\.[\da-f]+)?)(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-\/%<>=&|$!]/}}t.exports=r,r.displayName="nasm",r.aliases=[]},736919,(e,t,n)=>{"use strict";function r(e){e.languages.neon={comment:{pattern:/#.*/,greedy:!0},datetime:{pattern:/(^|[[{(=:,\s])\d\d\d\d-\d\d?-\d\d?(?:(?:[Tt]| +)\d\d?:\d\d:\d\d(?:\.\d*)? *(?:Z|[-+]\d\d?(?::?\d\d)?)?)?(?=$|[\]}),\s])/,lookbehind:!0,alias:"number"},key:{pattern:/(^|[[{(,\s])[^,:=[\]{}()'"\s]+(?=\s*:(?:$|[\]}),\s])|\s*=)/,lookbehind:!0,alias:"atrule"},number:{pattern:/(^|[[{(=:,\s])[+-]?(?:0x[\da-fA-F]+|0o[0-7]+|0b[01]+|(?:\d+(?:\.\d*)?|\.?\d+)(?:[eE][+-]?\d+)?)(?=$|[\]}),:=\s])/,lookbehind:!0},boolean:{pattern:/(^|[[{(=:,\s])(?:false|no|true|yes)(?=$|[\]}),:=\s])/i,lookbehind:!0},null:{pattern:/(^|[[{(=:,\s])(?:null)(?=$|[\]}),:=\s])/i,lookbehind:!0,alias:"keyword"},string:{pattern:/(^|[[{(=:,\s])(?:('''|""")\r?\n(?:(?:[^\r\n]|\r?\n(?![\t ]*\2))*\r?\n)?[\t ]*\2|'[^'\r\n]*'|"(?:\\.|[^\\"\r\n])*")/,lookbehind:!0,greedy:!0},literal:{pattern:/(^|[[{(=:,\s])(?:[^#"',:=[\]{}()\s`-]|[:-][^"',=[\]{}()\s])(?:[^,:=\]})(\s]|:(?![\s,\]})]|$)|[ \t]+[^#,:=\]})(\s])*/,lookbehind:!0,alias:"string"},punctuation:/[,:=[\]{}()-]/}}t.exports=r,r.displayName="neon",r.aliases=[]},777796,(e,t,n)=>{"use strict";function r(e){e.languages.nevod={comment:/\/\/.*|(?:\/\*[\s\S]*?(?:\*\/|$))/,string:{pattern:/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))!?\*?/,greedy:!0,inside:{"string-attrs":/!$|!\*$|\*$/}},namespace:{pattern:/(@namespace\s+)[a-zA-Z0-9\-.]+(?=\s*\{)/,lookbehind:!0},pattern:{pattern:/(@pattern\s+)?#?[a-zA-Z0-9\-.]+(?:\s*\(\s*(?:~\s*)?[a-zA-Z0-9\-.]+\s*(?:,\s*(?:~\s*)?[a-zA-Z0-9\-.]*)*\))?(?=\s*=)/,lookbehind:!0,inside:{"pattern-name":{pattern:/^#?[a-zA-Z0-9\-.]+/,alias:"class-name"},fields:{pattern:/\(.*\)/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},punctuation:/[,()]/,operator:{pattern:/~/,alias:"field-hidden-mark"}}}}},search:{pattern:/(@search\s+|#)[a-zA-Z0-9\-.]+(?:\.\*)?(?=\s*;)/,alias:"function",lookbehind:!0},keyword:/@(?:having|inside|namespace|outside|pattern|require|search|where)\b/,"standard-pattern":{pattern:/\b(?:Alpha|AlphaNum|Any|Blank|End|LineBreak|Num|NumAlpha|Punct|Space|Start|Symbol|Word|WordBreak)\b(?:\([a-zA-Z0-9\-.,\s+]*\))?/,inside:{"standard-pattern-name":{pattern:/^[a-zA-Z0-9\-.]+/,alias:"builtin"},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},"standard-pattern-attr":{pattern:/[a-zA-Z0-9\-.]+/,alias:"builtin"},punctuation:/[,()]/}},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},operator:[{pattern:/=/,alias:"pattern-def"},{pattern:/&/,alias:"conjunction"},{pattern:/~/,alias:"exception"},{pattern:/\?/,alias:"optionality"},{pattern:/[[\]]/,alias:"repetition"},{pattern:/[{}]/,alias:"variation"},{pattern:/[+_]/,alias:"sequence"},{pattern:/\.{2,3}/,alias:"span"}],"field-capture":[{pattern:/([a-zA-Z0-9\-.]+\s*\()\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+(?:\s*,\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+)*(?=\s*\))/,lookbehind:!0,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}},{pattern:/[a-zA-Z0-9\-.]+\s*:/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}}],punctuation:/[:;,()]/,name:/[a-zA-Z0-9\-.]+/}}t.exports=r,r.displayName="nevod",r.aliases=[]},750834,(e,t,n)=>{"use strict";function r(e){var t;t=/\$(?:\w[a-z\d]*(?:_[^\x00-\x1F\s"'\\()$]*)?|\{[^}\s"'\\]+\})/i,e.languages.nginx={comment:{pattern:/(^|[\s{};])#.*/,lookbehind:!0,greedy:!0},directive:{pattern:/(^|\s)\w(?:[^;{}"'\\\s]|\\.|"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|\s+(?:#.*(?!.)|(?![#\s])))*?(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:{string:{pattern:/((?:^|[^\\])(?:\\\\)*)(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/,lookbehind:!0,greedy:!0,inside:{escape:{pattern:/\\["'\\nrt]/,alias:"entity"},variable:t}},comment:{pattern:/(\s)#.*/,lookbehind:!0,greedy:!0},keyword:{pattern:/^\S+/,greedy:!0},boolean:{pattern:/(\s)(?:off|on)(?!\S)/,lookbehind:!0},number:{pattern:/(\s)\d+[a-z]*(?!\S)/i,lookbehind:!0},variable:t}},punctuation:/[{};]/}}t.exports=r,r.displayName="nginx",r.aliases=[]},489839,(e,t,n)=>{"use strict";function r(e){e.languages.nim={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(?:\b(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+)?(?:"""[\s\S]*?"""(?!")|"(?:\\[\s\S]|""|[^"\\])*")/,greedy:!0},char:{pattern:/'(?:\\(?:\d+|x[\da-fA-F]{0,2}|.)|[^'])'/,greedy:!0},function:{pattern:/(?:(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+|`[^`\r\n]+`)\*?(?:\[[^\]]+\])?(?=\s*\()/,greedy:!0,inside:{operator:/\*$/}},identifier:{pattern:/`[^`\r\n]+`/,greedy:!0,inside:{punctuation:/`/}},number:/\b(?:0[xXoObB][\da-fA-F_]+|\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:[eE][+-]?\d[\d_]*)?)(?:'?[iuf]\d*)?/,keyword:/\b(?:addr|as|asm|atomic|bind|block|break|case|cast|concept|const|continue|converter|defer|discard|distinct|do|elif|else|end|enum|except|export|finally|for|from|func|generic|if|import|include|interface|iterator|let|macro|method|mixin|nil|object|out|proc|ptr|raise|ref|return|static|template|try|tuple|type|using|var|when|while|with|without|yield)\b/,operator:{pattern:/(^|[({\[](?=\.\.)|(?![({\[]\.).)(?:(?:[=+\-*\/<>@$~&%|!?^:\\]|\.\.|\.(?![)}\]]))+|\b(?:and|div|in|is|isnot|mod|not|notin|of|or|shl|shr|xor)\b)/m,lookbehind:!0},punctuation:/[({\[]\.|\.[)}\]]|[`(){}\[\],:]/}}t.exports=r,r.displayName="nim",r.aliases=[]},750436,(e,t,n)=>{"use strict";function r(e){e.languages.nix={comment:{pattern:/\/\*[\s\S]*?\*\/|#.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"|''(?:(?!'')[\s\S]|''(?:'|\\|\$\{))*''/,greedy:!0,inside:{interpolation:{pattern:/(^|(?:^|(?!'').)[^\\])\$\{(?:[^{}]|\{[^}]*\})*\}/,lookbehind:!0,inside:null}}},url:[/\b(?:[a-z]{3,7}:\/\/)[\w\-+%~\/.:#=?&]+/,{pattern:/([^\/])(?:[\w\-+%~.:#=?&]*(?!\/\/)[\w\-+%~\/.:#=?&])?(?!\/\/)\/[\w\-+%~\/.:#=?&]*/,lookbehind:!0}],antiquotation:{pattern:/\$(?=\{)/,alias:"important"},number:/\b\d+\b/,keyword:/\b(?:assert|builtins|else|if|in|inherit|let|null|or|then|with)\b/,function:/\b(?:abort|add|all|any|attrNames|attrValues|baseNameOf|compareVersions|concatLists|currentSystem|deepSeq|derivation|dirOf|div|elem(?:At)?|fetch(?:Tarball|url)|filter(?:Source)?|fromJSON|genList|getAttr|getEnv|hasAttr|hashString|head|import|intersectAttrs|is(?:Attrs|Bool|Function|Int|List|Null|String)|length|lessThan|listToAttrs|map|mul|parseDrvName|pathExists|read(?:Dir|File)|removeAttrs|replaceStrings|seq|sort|stringLength|sub(?:string)?|tail|throw|to(?:File|JSON|Path|String|XML)|trace|typeOf)\b|\bfoldl'\B/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|\+\+?|\|\||&&|\/\/|->?|[?@]/,punctuation:/[{}()[\].,:;]/},e.languages.nix.string.inside.interpolation.inside=e.languages.nix}t.exports=r,r.displayName="nix",r.aliases=[]},998022,(e,t,n)=>{"use strict";function r(e){e.languages.nsis={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|[#;].*)/,lookbehind:!0,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:{pattern:/(^[\t ]*)(?:Abort|Add(?:BrandingImage|Size)|AdvSplash|Allow(?:RootDirInstall|SkipFiles)|AutoCloseWindow|BG(?:Font|Gradient|Image)|Banner|BrandingText|BringToFront|CRCCheck|Call(?:InstDLL)?|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|Create(?:Directory|Font|ShortCut)|Delete(?:INISec|INIStr|RegKey|RegValue)?|Detail(?:Print|sButtonText)|Dialer|Dir(?:Text|Var|Verify)|EnableWindow|Enum(?:RegKey|RegValue)|Exch|Exec(?:Shell(?:Wait)?|Wait)?|ExpandEnvStrings|File(?:BufSize|Close|ErrorText|Open|Read|ReadByte|ReadUTF16LE|ReadWord|Seek|Write|WriteByte|WriteUTF16LE|WriteWord)?|Find(?:Close|First|Next|Window)|FlushINI|Get(?:CurInstType|CurrentAddress|DLLVersion(?:Local)?|DlgItem|ErrorLevel|FileTime(?:Local)?|FullPathName|Function(?:Address|End)?|InstDirError|LabelAddress|TempFileName)|Goto|HideWindow|Icon|If(?:Abort|Errors|FileExists|RebootFlag|Silent)|InitPluginsDir|InstProgressFlags|Inst(?:Type(?:GetText|SetText)?)|Install(?:ButtonText|Colors|Dir(?:RegKey)?)|Int(?:64|Ptr)?CmpU?|Int(?:64)?Fmt|Int(?:Ptr)?Op|IsWindow|Lang(?:DLL|String)|License(?:BkColor|Data|ForceSelection|LangString|Text)|LoadLanguageFile|LockWindow|Log(?:Set|Text)|Manifest(?:DPIAware|SupportedOS)|Math|MessageBox|MiscButtonText|NSISdl|Name|Nop|OutFile|PE(?:DllCharacteristics|SubsysVer)|Page(?:Callbacks)?|Pop|Push|Quit|RMDir|Read(?:EnvStr|INIStr|RegDWORD|RegStr)|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|SearchPath|Section(?:End|GetFlags|GetInstTypes|GetSize|GetText|Group|In|SetFlags|SetInstTypes|SetSize|SetText)?|SendMessage|Set(?:AutoClose|BrandingImage|Compress|Compressor(?:DictSize)?|CtlColors|CurInstType|DatablockOptimize|DateSave|Details(?:Print|View)|ErrorLevel|Errors|FileAttributes|Font|OutPath|Overwrite|PluginUnload|RebootFlag|RegView|ShellVarContext|Silent)|Show(?:InstDetails|UninstDetails|Window)|Silent(?:Install|UnInstall)|Sleep|SpaceTexts|Splash|StartMenu|Str(?:CmpS?|Cpy|Len)|SubCaption|System|UnRegDLL|Unicode|UninstPage|Uninstall(?:ButtonText|Caption|Icon|SubCaption|Text)|UserInfo|VI(?:AddVersionKey|FileVersion|ProductVersion)|VPatch|Var|WindowIcon|Write(?:INIStr|Reg(?:Bin|DWORD|ExpandStr|MultiStr|None|Str)|Uninstaller)|XPStyle|ns(?:Dialogs|Exec))\b/m,lookbehind:!0},property:/\b(?:ARCHIVE|FILE_(?:ATTRIBUTE_ARCHIVE|ATTRIBUTE_NORMAL|ATTRIBUTE_OFFLINE|ATTRIBUTE_READONLY|ATTRIBUTE_SYSTEM|ATTRIBUTE_TEMPORARY)|HK(?:(?:CR|CU|LM)(?:32|64)?|DD|PD|U)|HKEY_(?:CLASSES_ROOT|CURRENT_CONFIG|CURRENT_USER|DYN_DATA|LOCAL_MACHINE|PERFORMANCE_DATA|USERS)|ID(?:ABORT|CANCEL|IGNORE|NO|OK|RETRY|YES)|MB_(?:ABORTRETRYIGNORE|DEFBUTTON1|DEFBUTTON2|DEFBUTTON3|DEFBUTTON4|ICONEXCLAMATION|ICONINFORMATION|ICONQUESTION|ICONSTOP|OK|OKCANCEL|RETRYCANCEL|RIGHT|RTLREADING|SETFOREGROUND|TOPMOST|USERICON|YESNO)|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SYSTEM|TEMPORARY|admin|all|auto|both|colored|false|force|hide|highest|lastused|leave|listonly|none|normal|notset|off|on|open|print|show|silent|silentlog|smooth|textonly|true|user)\b/,constant:/\$\{[!\w\.:\^-]+\}|\$\([!\w\.:\^-]+\)/,variable:/\$\w[\w\.]*/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--?|\+\+?|<=?|>=?|==?=?|&&?|\|\|?|[?*\/~^%]/,punctuation:/[{}[\];(),.:]/,important:{pattern:/(^[\t ]*)!(?:addincludedir|addplugindir|appendfile|cd|define|delfile|echo|else|endif|error|execute|finalize|getdllversion|gettlbversion|if|ifdef|ifmacrodef|ifmacrondef|ifndef|include|insertmacro|macro|macroend|makensis|packhdr|pragma|searchparse|searchreplace|system|tempfile|undef|verbose|warning)\b/im,lookbehind:!0}}}t.exports=r,r.displayName="nsis",r.aliases=[]},310199,(e,t,n)=>{"use strict";var r=e.r(835801);function a(e){e.register(r),e.languages.objectivec=e.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete e.languages.objectivec["class-name"],e.languages.objc=e.languages.objectivec}t.exports=a,a.displayName="objectivec",a.aliases=["objc"]},514345,(e,t,n)=>{"use strict";function r(e){e.languages.ocaml={comment:{pattern:/\(\*[\s\S]*?\*\)/,greedy:!0},char:{pattern:/'(?:[^\\\r\n']|\\(?:.|[ox]?[0-9a-f]{1,3}))'/i,greedy:!0},string:[{pattern:/"(?:\\(?:[\s\S]|\r\n)|[^\\\r\n"])*"/,greedy:!0},{pattern:/\{([a-z_]*)\|[\s\S]*?\|\1\}/,greedy:!0}],number:[/\b(?:0b[01][01_]*|0o[0-7][0-7_]*)\b/i,/\b0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]*)?(?:p[+-]?\d[\d_]*)?(?!\w)/i,/\b\d[\d_]*(?:\.[\d_]*)?(?:e[+-]?\d[\d_]*)?(?!\w)/i],directive:{pattern:/\B#\w+/,alias:"property"},label:{pattern:/\B~\w+/,alias:"property"},"type-variable":{pattern:/\B'\w+/,alias:"function"},variant:{pattern:/`\w+/,alias:"symbol"},keyword:/\b(?:as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|match|method|module|mutable|new|nonrec|object|of|open|private|rec|sig|struct|then|to|try|type|val|value|virtual|when|where|while|with)\b/,boolean:/\b(?:false|true)\b/,"operator-like-punctuation":{pattern:/\[[<>|]|[>|]\]|\{<|>\}/,alias:"punctuation"},operator:/\.[.~]|:[=>]|[=<>@^|&+\-*\/$%!?~][!$%&*+\-.\/:<=>?@^|~]*|\b(?:and|asr|land|lor|lsl|lsr|lxor|mod|or)\b/,punctuation:/;;|::|[(){}\[\].,:;#]|\b_\b/}}t.exports=r,r.displayName="ocaml",r.aliases=[]},116770,(e,t,n)=>{"use strict";var r=e.r(835801);function a(e){var t;e.register(r),e.languages.opencl=e.languages.extend("c",{keyword:/\b(?:(?:__)?(?:constant|global|kernel|local|private|read_only|read_write|write_only)|__attribute__|auto|(?:bool|u?(?:char|int|long|short)|half|quad)(?:2|3|4|8|16)?|break|case|complex|const|continue|(?:double|float)(?:16(?:x(?:1|2|4|8|16))?|1x(?:1|2|4|8|16)|2(?:x(?:1|2|4|8|16))?|3|4(?:x(?:1|2|4|8|16))?|8(?:x(?:1|2|4|8|16))?)?|default|do|else|enum|extern|for|goto|if|imaginary|inline|packed|pipe|register|restrict|return|signed|sizeof|static|struct|switch|typedef|uniform|union|unsigned|void|volatile|while)\b/,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[fuhl]{0,4}/i,boolean:/\b(?:false|true)\b/,"constant-opencl-kernel":{pattern:/\b(?:CHAR_(?:BIT|MAX|MIN)|CLK_(?:ADDRESS_(?:CLAMP(?:_TO_EDGE)?|NONE|REPEAT)|FILTER_(?:LINEAR|NEAREST)|(?:GLOBAL|LOCAL)_MEM_FENCE|NORMALIZED_COORDS_(?:FALSE|TRUE))|CL_(?:BGRA|(?:HALF_)?FLOAT|INTENSITY|LUMINANCE|A?R?G?B?[Ax]?|(?:(?:UN)?SIGNED|[US]NORM)_(?:INT(?:8|16|32))|UNORM_(?:INT_101010|SHORT_(?:555|565)))|(?:DBL|FLT|HALF)_(?:DIG|EPSILON|(?:MAX|MIN)(?:(?:_10)?_EXP)?|MANT_DIG)|FLT_RADIX|HUGE_VALF?|(?:INT|LONG|SCHAR|SHRT)_(?:MAX|MIN)|INFINITY|MAXFLOAT|M_(?:[12]_PI|2_SQRTPI|E|LN(?:2|10)|LOG(?:2|10)E?|PI(?:_[24])?|SQRT(?:1_2|2))(?:_F|_H)?|NAN|(?:UCHAR|UINT|ULONG|USHRT)_MAX)\b/,alias:"constant"}}),e.languages.insertBefore("opencl","class-name",{"builtin-type":{pattern:/\b(?:_cl_(?:command_queue|context|device_id|event|kernel|mem|platform_id|program|sampler)|cl_(?:image_format|mem_fence_flags)|clk_event_t|event_t|image(?:1d_(?:array_|buffer_)?t|2d_(?:array_(?:depth_|msaa_depth_|msaa_)?|depth_|msaa_depth_|msaa_)?t|3d_t)|intptr_t|ndrange_t|ptrdiff_t|queue_t|reserve_id_t|sampler_t|size_t|uintptr_t)\b/,alias:"keyword"}}),t={"type-opencl-host":{pattern:/\b(?:cl_(?:GLenum|GLint|GLuin|addressing_mode|bitfield|bool|buffer_create_type|build_status|channel_(?:order|type)|(?:u?(?:char|int|long|short)|double|float)(?:2|3|4|8|16)?|command_(?:queue(?:_info|_properties)?|type)|context(?:_info|_properties)?|device_(?:exec_capabilities|fp_config|id|info|local_mem_type|mem_cache_type|type)|(?:event|sampler)(?:_info)?|filter_mode|half|image_info|kernel(?:_info|_work_group_info)?|map_flags|mem(?:_flags|_info|_object_type)?|platform_(?:id|info)|profiling_info|program(?:_build_info|_info)?))\b/,alias:"keyword"},"boolean-opencl-host":{pattern:/\bCL_(?:FALSE|TRUE)\b/,alias:"boolean"},"constant-opencl-host":{pattern:/\bCL_(?:A|ABGR|ADDRESS_(?:CLAMP(?:_TO_EDGE)?|MIRRORED_REPEAT|NONE|REPEAT)|ARGB|BGRA|BLOCKING|BUFFER_CREATE_TYPE_REGION|BUILD_(?:ERROR|IN_PROGRESS|NONE|PROGRAM_FAILURE|SUCCESS)|COMMAND_(?:ACQUIRE_GL_OBJECTS|BARRIER|COPY_(?:BUFFER(?:_RECT|_TO_IMAGE)?|IMAGE(?:_TO_BUFFER)?)|FILL_(?:BUFFER|IMAGE)|MAP(?:_BUFFER|_IMAGE)|MARKER|MIGRATE(?:_SVM)?_MEM_OBJECTS|NATIVE_KERNEL|NDRANGE_KERNEL|READ_(?:BUFFER(?:_RECT)?|IMAGE)|RELEASE_GL_OBJECTS|SVM_(?:FREE|MAP|MEMCPY|MEMFILL|UNMAP)|TASK|UNMAP_MEM_OBJECT|USER|WRITE_(?:BUFFER(?:_RECT)?|IMAGE))|COMPILER_NOT_AVAILABLE|COMPILE_PROGRAM_FAILURE|COMPLETE|CONTEXT_(?:DEVICES|INTEROP_USER_SYNC|NUM_DEVICES|PLATFORM|PROPERTIES|REFERENCE_COUNT)|DEPTH(?:_STENCIL)?|DEVICE_(?:ADDRESS_BITS|AFFINITY_DOMAIN_(?:L[1-4]_CACHE|NEXT_PARTITIONABLE|NUMA)|AVAILABLE|BUILT_IN_KERNELS|COMPILER_AVAILABLE|DOUBLE_FP_CONFIG|ENDIAN_LITTLE|ERROR_CORRECTION_SUPPORT|EXECUTION_CAPABILITIES|EXTENSIONS|GLOBAL_(?:MEM_(?:CACHELINE_SIZE|CACHE_SIZE|CACHE_TYPE|SIZE)|VARIABLE_PREFERRED_TOTAL_SIZE)|HOST_UNIFIED_MEMORY|IL_VERSION|IMAGE(?:2D_MAX_(?:HEIGHT|WIDTH)|3D_MAX_(?:DEPTH|HEIGHT|WIDTH)|_BASE_ADDRESS_ALIGNMENT|_MAX_ARRAY_SIZE|_MAX_BUFFER_SIZE|_PITCH_ALIGNMENT|_SUPPORT)|LINKER_AVAILABLE|LOCAL_MEM_SIZE|LOCAL_MEM_TYPE|MAX_(?:CLOCK_FREQUENCY|COMPUTE_UNITS|CONSTANT_ARGS|CONSTANT_BUFFER_SIZE|GLOBAL_VARIABLE_SIZE|MEM_ALLOC_SIZE|NUM_SUB_GROUPS|ON_DEVICE_(?:EVENTS|QUEUES)|PARAMETER_SIZE|PIPE_ARGS|READ_IMAGE_ARGS|READ_WRITE_IMAGE_ARGS|SAMPLERS|WORK_GROUP_SIZE|WORK_ITEM_DIMENSIONS|WORK_ITEM_SIZES|WRITE_IMAGE_ARGS)|MEM_BASE_ADDR_ALIGN|MIN_DATA_TYPE_ALIGN_SIZE|NAME|NATIVE_VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT)|NOT_(?:AVAILABLE|FOUND)|OPENCL_C_VERSION|PARENT_DEVICE|PARTITION_(?:AFFINITY_DOMAIN|BY_AFFINITY_DOMAIN|BY_COUNTS|BY_COUNTS_LIST_END|EQUALLY|FAILED|MAX_SUB_DEVICES|PROPERTIES|TYPE)|PIPE_MAX_(?:ACTIVE_RESERVATIONS|PACKET_SIZE)|PLATFORM|PREFERRED_(?:GLOBAL_ATOMIC_ALIGNMENT|INTEROP_USER_SYNC|LOCAL_ATOMIC_ALIGNMENT|PLATFORM_ATOMIC_ALIGNMENT|VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT))|PRINTF_BUFFER_SIZE|PROFILE|PROFILING_TIMER_RESOLUTION|QUEUE_(?:ON_(?:DEVICE_(?:MAX_SIZE|PREFERRED_SIZE|PROPERTIES)|HOST_PROPERTIES)|PROPERTIES)|REFERENCE_COUNT|SINGLE_FP_CONFIG|SUB_GROUP_INDEPENDENT_FORWARD_PROGRESS|SVM_(?:ATOMICS|CAPABILITIES|COARSE_GRAIN_BUFFER|FINE_GRAIN_BUFFER|FINE_GRAIN_SYSTEM)|TYPE(?:_ACCELERATOR|_ALL|_CPU|_CUSTOM|_DEFAULT|_GPU)?|VENDOR(?:_ID)?|VERSION)|DRIVER_VERSION|EVENT_(?:COMMAND_(?:EXECUTION_STATUS|QUEUE|TYPE)|CONTEXT|REFERENCE_COUNT)|EXEC_(?:KERNEL|NATIVE_KERNEL|STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST)|FILTER_(?:LINEAR|NEAREST)|FLOAT|FP_(?:CORRECTLY_ROUNDED_DIVIDE_SQRT|DENORM|FMA|INF_NAN|ROUND_TO_INF|ROUND_TO_NEAREST|ROUND_TO_ZERO|SOFT_FLOAT)|GLOBAL|HALF_FLOAT|IMAGE_(?:ARRAY_SIZE|BUFFER|DEPTH|ELEMENT_SIZE|FORMAT|FORMAT_MISMATCH|FORMAT_NOT_SUPPORTED|HEIGHT|NUM_MIP_LEVELS|NUM_SAMPLES|ROW_PITCH|SLICE_PITCH|WIDTH)|INTENSITY|INVALID_(?:ARG_INDEX|ARG_SIZE|ARG_VALUE|BINARY|BUFFER_SIZE|BUILD_OPTIONS|COMMAND_QUEUE|COMPILER_OPTIONS|CONTEXT|DEVICE|DEVICE_PARTITION_COUNT|DEVICE_QUEUE|DEVICE_TYPE|EVENT|EVENT_WAIT_LIST|GLOBAL_OFFSET|GLOBAL_WORK_SIZE|GL_OBJECT|HOST_PTR|IMAGE_DESCRIPTOR|IMAGE_FORMAT_DESCRIPTOR|IMAGE_SIZE|KERNEL|KERNEL_ARGS|KERNEL_DEFINITION|KERNEL_NAME|LINKER_OPTIONS|MEM_OBJECT|MIP_LEVEL|OPERATION|PIPE_SIZE|PLATFORM|PROGRAM|PROGRAM_EXECUTABLE|PROPERTY|QUEUE_PROPERTIES|SAMPLER|VALUE|WORK_DIMENSION|WORK_GROUP_SIZE|WORK_ITEM_SIZE)|KERNEL_(?:ARG_(?:ACCESS_(?:NONE|QUALIFIER|READ_ONLY|READ_WRITE|WRITE_ONLY)|ADDRESS_(?:CONSTANT|GLOBAL|LOCAL|PRIVATE|QUALIFIER)|INFO_NOT_AVAILABLE|NAME|TYPE_(?:CONST|NAME|NONE|PIPE|QUALIFIER|RESTRICT|VOLATILE))|ATTRIBUTES|COMPILE_NUM_SUB_GROUPS|COMPILE_WORK_GROUP_SIZE|CONTEXT|EXEC_INFO_SVM_FINE_GRAIN_SYSTEM|EXEC_INFO_SVM_PTRS|FUNCTION_NAME|GLOBAL_WORK_SIZE|LOCAL_MEM_SIZE|LOCAL_SIZE_FOR_SUB_GROUP_COUNT|MAX_NUM_SUB_GROUPS|MAX_SUB_GROUP_SIZE_FOR_NDRANGE|NUM_ARGS|PREFERRED_WORK_GROUP_SIZE_MULTIPLE|PRIVATE_MEM_SIZE|PROGRAM|REFERENCE_COUNT|SUB_GROUP_COUNT_FOR_NDRANGE|WORK_GROUP_SIZE)|LINKER_NOT_AVAILABLE|LINK_PROGRAM_FAILURE|LOCAL|LUMINANCE|MAP_(?:FAILURE|READ|WRITE|WRITE_INVALIDATE_REGION)|MEM_(?:ALLOC_HOST_PTR|ASSOCIATED_MEMOBJECT|CONTEXT|COPY_HOST_PTR|COPY_OVERLAP|FLAGS|HOST_NO_ACCESS|HOST_PTR|HOST_READ_ONLY|HOST_WRITE_ONLY|KERNEL_READ_AND_WRITE|MAP_COUNT|OBJECT_(?:ALLOCATION_FAILURE|BUFFER|IMAGE1D|IMAGE1D_ARRAY|IMAGE1D_BUFFER|IMAGE2D|IMAGE2D_ARRAY|IMAGE3D|PIPE)|OFFSET|READ_ONLY|READ_WRITE|REFERENCE_COUNT|SIZE|SVM_ATOMICS|SVM_FINE_GRAIN_BUFFER|TYPE|USES_SVM_POINTER|USE_HOST_PTR|WRITE_ONLY)|MIGRATE_MEM_OBJECT_(?:CONTENT_UNDEFINED|HOST)|MISALIGNED_SUB_BUFFER_OFFSET|NONE|NON_BLOCKING|OUT_OF_(?:HOST_MEMORY|RESOURCES)|PIPE_(?:MAX_PACKETS|PACKET_SIZE)|PLATFORM_(?:EXTENSIONS|HOST_TIMER_RESOLUTION|NAME|PROFILE|VENDOR|VERSION)|PROFILING_(?:COMMAND_(?:COMPLETE|END|QUEUED|START|SUBMIT)|INFO_NOT_AVAILABLE)|PROGRAM_(?:BINARIES|BINARY_SIZES|BINARY_TYPE(?:_COMPILED_OBJECT|_EXECUTABLE|_LIBRARY|_NONE)?|BUILD_(?:GLOBAL_VARIABLE_TOTAL_SIZE|LOG|OPTIONS|STATUS)|CONTEXT|DEVICES|IL|KERNEL_NAMES|NUM_DEVICES|NUM_KERNELS|REFERENCE_COUNT|SOURCE)|QUEUED|QUEUE_(?:CONTEXT|DEVICE|DEVICE_DEFAULT|ON_DEVICE|ON_DEVICE_DEFAULT|OUT_OF_ORDER_EXEC_MODE_ENABLE|PROFILING_ENABLE|PROPERTIES|REFERENCE_COUNT|SIZE)|R|RA|READ_(?:ONLY|WRITE)_CACHE|RG|RGB|RGBA|RGBx|RGx|RUNNING|Rx|SAMPLER_(?:ADDRESSING_MODE|CONTEXT|FILTER_MODE|LOD_MAX|LOD_MIN|MIP_FILTER_MODE|NORMALIZED_COORDS|REFERENCE_COUNT)|(?:UN)?SIGNED_INT(?:8|16|32)|SNORM_INT(?:8|16)|SUBMITTED|SUCCESS|UNORM_INT(?:8|16|24|_101010|_101010_2)|UNORM_SHORT_(?:555|565)|VERSION_(?:1_0|1_1|1_2|2_0|2_1)|sBGRA|sRGB|sRGBA|sRGBx)\b/,alias:"constant"},"function-opencl-host":{pattern:/\bcl(?:BuildProgram|CloneKernel|CompileProgram|Create(?:Buffer|CommandQueue(?:WithProperties)?|Context|ContextFromType|Image|Image2D|Image3D|Kernel|KernelsInProgram|Pipe|ProgramWith(?:Binary|BuiltInKernels|IL|Source)|Sampler|SamplerWithProperties|SubBuffer|SubDevices|UserEvent)|Enqueue(?:(?:Barrier|Marker)(?:WithWaitList)?|Copy(?:Buffer(?:Rect|ToImage)?|Image(?:ToBuffer)?)|(?:Fill|Map)(?:Buffer|Image)|MigrateMemObjects|NDRangeKernel|NativeKernel|(?:Read|Write)(?:Buffer(?:Rect)?|Image)|SVM(?:Free|Map|MemFill|Memcpy|MigrateMem|Unmap)|Task|UnmapMemObject|WaitForEvents)|Finish|Flush|Get(?:CommandQueueInfo|ContextInfo|Device(?:AndHostTimer|IDs|Info)|Event(?:Profiling)?Info|ExtensionFunctionAddress(?:ForPlatform)?|HostTimer|ImageInfo|Kernel(?:ArgInfo|Info|SubGroupInfo|WorkGroupInfo)|MemObjectInfo|PipeInfo|Platform(?:IDs|Info)|Program(?:Build)?Info|SamplerInfo|SupportedImageFormats)|LinkProgram|(?:Release|Retain)(?:CommandQueue|Context|Device|Event|Kernel|MemObject|Program|Sampler)|SVM(?:Alloc|Free)|Set(?:CommandQueueProperty|DefaultDeviceCommandQueue|EventCallback|Kernel|Kernel(?:Arg(?:SVMPointer)?|ExecInfo)|MemObjectDestructorCallback|UserEventStatus)|Unload(?:Platform)?Compiler|WaitForEvents)\b/,alias:"function"}},e.languages.insertBefore("c","keyword",t),e.languages.cpp&&(t["type-opencl-host-cpp"]={pattern:/\b(?:Buffer|BufferGL|BufferRenderGL|CommandQueue|Context|Device|DeviceCommandQueue|EnqueueArgs|Event|Image|Image1D|Image1DArray|Image1DBuffer|Image2D|Image2DArray|Image2DGL|Image3D|Image3DGL|ImageFormat|ImageGL|Kernel|KernelFunctor|LocalSpaceArg|Memory|NDRange|Pipe|Platform|Program|SVMAllocator|SVMTraitAtomic|SVMTraitCoarse|SVMTraitFine|SVMTraitReadOnly|SVMTraitReadWrite|SVMTraitWriteOnly|Sampler|UserEvent)\b/,alias:"keyword"},e.languages.insertBefore("cpp","keyword",t))}t.exports=a,a.displayName="opencl",a.aliases=[]},607593,(e,t,n)=>{"use strict";function r(e){e.languages.openqasm={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"[^"\r\n\t]*"|'[^'\r\n\t]*'/,greedy:!0},keyword:/\b(?:CX|OPENQASM|U|barrier|boxas|boxto|break|const|continue|ctrl|def|defcal|defcalgrammar|delay|else|end|for|gate|gphase|if|in|include|inv|kernel|lengthof|let|measure|pow|reset|return|rotary|stretchinf|while)\b|#pragma\b/,"class-name":/\b(?:angle|bit|bool|creg|fixed|float|int|length|qreg|qubit|stretch|uint)\b/,function:/\b(?:cos|exp|ln|popcount|rotl|rotr|sin|sqrt|tan)\b(?=\s*\()/,constant:/\b(?:euler|pi|tau)\b|π|𝜏|ℇ/,number:{pattern:/(^|[^.\w$])(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?(?:dt|ns|us|µs|ms|s)?/i,lookbehind:!0},operator:/->|>>=?|<<=?|&&|\|\||\+\+|--|[!=<>&|~^+\-*/%]=?|@/,punctuation:/[(){}\[\];,:.]/},e.languages.qasm=e.languages.openqasm}t.exports=r,r.displayName="openqasm",r.aliases=["qasm"]},918711,(e,t,n)=>{"use strict";function r(e){e.languages.oz={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},atom:{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,alias:"builtin"},keyword:/\$|\[\]|\b(?:_|at|attr|case|catch|choice|class|cond|declare|define|dis|else(?:case|if)?|end|export|fail|false|feat|finally|from|fun|functor|if|import|in|local|lock|meth|nil|not|of|or|prepare|proc|prop|raise|require|self|skip|then|thread|true|try|unit)\b/,function:[/\b[a-z][A-Za-z\d]*(?=\()/,{pattern:/(\{)[A-Z][A-Za-z\d]*\b/,lookbehind:!0}],number:/\b(?:0[bx][\da-f]+|\d+(?:\.\d*)?(?:e~?\d+)?)\b|&(?:[^\\]|\\(?:\d{3}|.))/i,variable:/`(?:[^`\\]|\\.)+`/,"attr-name":/\b\w+(?=[ \t]*:(?![:=]))/,operator:/:(?:=|::?)|<[-:=]?|=(?:=|<?:?)|>=?:?|\\=:?|!!?|[|#+\-*\/,~^@]|\b(?:andthen|div|mod|orelse)\b/,punctuation:/[\[\](){}.:;?]/}}t.exports=r,r.displayName="oz",r.aliases=[]},72759,(e,t,n)=>{"use strict";function r(e){e.languages.parigp={comment:/\/\*[\s\S]*?\*\/|\\\\.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},keyword:RegExp("\\b(?:"+["breakpoint","break","dbg_down","dbg_err","dbg_up","dbg_x","forcomposite","fordiv","forell","forpart","forprime","forstep","forsubgroup","forvec","for","iferr","if","local","my","next","return","until","while"].map(function(e){return e.split("").join(" *")}).join("|")+")\\b"),function:/\b\w(?:[\w ]*\w)?(?= *\()/,number:{pattern:/((?:\. *\. *)?)(?:\b\d(?: *\d)*(?: *(?!\. *\.)\.(?: *\d)*)?|\. *\d(?: *\d)*)(?: *e *(?:[+-] *)?\d(?: *\d)*)?/i,lookbehind:!0},operator:/\. *\.|[*\/!](?: *=)?|%(?: *=|(?: *#)?(?: *')*)?|\+(?: *[+=])?|-(?: *[-=>])?|<(?: *>|(?: *<)?(?: *=)?)?|>(?: *>)?(?: *=)?|=(?: *=){0,2}|\\(?: *\/)?(?: *=)?|&(?: *&)?|\| *\||['#~^]/,punctuation:/[\[\]{}().,:;|]/}}t.exports=r,r.displayName="parigp",r.aliases=[]},316261,(e,t,n)=>{"use strict";function r(e){var t;t=e.languages.parser=e.languages.extend("markup",{keyword:{pattern:/(^|[^^])(?:\^(?:case|eval|for|if|switch|throw)\b|@(?:BASE|CLASS|GET(?:_DEFAULT)?|OPTIONS|SET_DEFAULT|USE)\b)/,lookbehind:!0},variable:{pattern:/(^|[^^])\B\$(?:\w+|(?=[.{]))(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{punctuation:/\.|:+/}},function:{pattern:/(^|[^^])\B[@^]\w+(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{keyword:{pattern:/(^@)(?:GET_|SET_)/,lookbehind:!0},punctuation:/\.|:+/}},escape:{pattern:/\^(?:[$^;@()\[\]{}"':]|#[a-f\d]*)/i,alias:"builtin"},punctuation:/[\[\](){};]/}),t=e.languages.insertBefore("parser","keyword",{"parser-comment":{pattern:/(\s)#.*/,lookbehind:!0,alias:"comment"},expression:{pattern:/(^|[^^])\((?:[^()]|\((?:[^()]|\((?:[^()])*\))*\))*\)/,greedy:!0,lookbehind:!0,inside:{string:{pattern:/(^|[^^])(["'])(?:(?!\2)[^^]|\^[\s\S])*\2/,lookbehind:!0},keyword:t.keyword,variable:t.variable,function:t.function,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[a-f\d]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?)\b/i,escape:t.escape,operator:/[~+*\/\\%]|!(?:\|\|?|=)?|&&?|\|\|?|==|<[<=]?|>[>=]?|-[fd]?|\b(?:def|eq|ge|gt|in|is|le|lt|ne)\b/,punctuation:t.punctuation}}}),e.languages.insertBefore("inside","punctuation",{expression:t.expression,keyword:t.keyword,variable:t.variable,function:t.function,escape:t.escape,"parser-punctuation":{pattern:t.punctuation,alias:"punctuation"}},t.tag.inside["attr-value"])}t.exports=r,r.displayName="parser",r.aliases=[]},80997,(e,t,n)=>{"use strict";function r(e){e.languages.pascal={directive:{pattern:/\{\$[\s\S]*?\}/,greedy:!0,alias:["marco","property"]},comment:{pattern:/\(\*[\s\S]*?\*\)|\{[\s\S]*?\}|\/\/.*/,greedy:!0},string:{pattern:/(?:'(?:''|[^'\r\n])*'(?!')|#[&$%]?[a-f\d]+)+|\^[a-z]/i,greedy:!0},asm:{pattern:/(\basm\b)[\s\S]+?(?=\bend\s*[;[])/i,lookbehind:!0,greedy:!0,inside:null},keyword:[{pattern:/(^|[^&])\b(?:absolute|array|asm|begin|case|const|constructor|destructor|do|downto|else|end|file|for|function|goto|if|implementation|inherited|inline|interface|label|nil|object|of|operator|packed|procedure|program|record|reintroduce|repeat|self|set|string|then|to|type|unit|until|uses|var|while|with)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:dispose|exit|false|new|true)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:class|dispinterface|except|exports|finalization|finally|initialization|inline|library|on|out|packed|property|raise|resourcestring|threadvar|try)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:absolute|abstract|alias|assembler|bitpacked|break|cdecl|continue|cppdecl|cvar|default|deprecated|dynamic|enumerator|experimental|export|external|far|far16|forward|generic|helper|implements|index|interrupt|iochecks|local|message|name|near|nodefault|noreturn|nostackframe|oldfpccall|otherwise|overload|override|pascal|platform|private|protected|public|published|read|register|reintroduce|result|safecall|saveregisters|softfloat|specialize|static|stdcall|stored|strict|unaligned|unimplemented|varargs|virtual|write)\b/i,lookbehind:!0}],number:[/(?:[&%]\d+|\$[a-f\d]+)/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?/i],operator:[/\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=]/,{pattern:/(^|[^&])\b(?:and|as|div|exclude|in|include|is|mod|not|or|shl|shr|xor)\b/,lookbehind:!0}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/},e.languages.pascal.asm.inside=e.languages.extend("pascal",{asm:void 0,keyword:void 0,operator:void 0}),e.languages.objectpascal=e.languages.pascal}t.exports=r,r.displayName="pascal",r.aliases=["objectpascal"]},800885,(e,t,n)=>{"use strict";function r(e){var t,n,r,a;t=/\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\)/.source,n=/(?:\b\w+(?:<braces>)?|<braces>)/.source.replace(/<braces>/g,function(){return t}),r=e.languages.pascaligo={comment:/\(\*[\s\S]+?\*\)|\/\/.*/,string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1|\^[a-z]/i,greedy:!0},"class-name":[{pattern:RegExp(/(\btype\s+\w+\s+is\s+)<type>/.source.replace(/<type>/g,function(){return n}),"i"),lookbehind:!0,inside:null},{pattern:RegExp(/<type>(?=\s+is\b)/.source.replace(/<type>/g,function(){return n}),"i"),inside:null},{pattern:RegExp(/(:\s*)<type>/.source.replace(/<type>/g,function(){return n})),lookbehind:!0,inside:null}],keyword:{pattern:/(^|[^&])\b(?:begin|block|case|const|else|end|fail|for|from|function|if|is|nil|of|remove|return|skip|then|type|var|while|with)\b/i,lookbehind:!0},boolean:{pattern:/(^|[^&])\b(?:False|True)\b/i,lookbehind:!0},builtin:{pattern:/(^|[^&])\b(?:bool|int|list|map|nat|record|string|unit)\b/i,lookbehind:!0},function:/\b\w+(?=\s*\()/,number:[/%[01]+|&[0-7]+|\$[a-f\d]+/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?(?:mtz|n)?/i],operator:/->|=\/=|\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=|]|\b(?:and|mod|or)\b/,punctuation:/\(\.|\.\)|[()\[\]:;,.{}]/},a=["comment","keyword","builtin","operator","punctuation"].reduce(function(e,t){return e[t]=r[t],e},{}),r["class-name"].forEach(function(e){e.inside=a})}t.exports=r,r.displayName="pascaligo",r.aliases=[]},902711,(e,t,n)=>{"use strict";function r(e){e.languages.pcaxis={string:/"[^"]*"/,keyword:{pattern:/((?:^|;)\s*)[-A-Z\d]+(?:\s*\[[-\w]+\])?(?:\s*\("[^"]*"(?:,\s*"[^"]*")*\))?(?=\s*=)/,lookbehind:!0,greedy:!0,inside:{keyword:/^[-A-Z\d]+/,language:{pattern:/^(\s*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/^\[|\]$/,property:/[-\w]+/}},"sub-key":{pattern:/^(\s*)\S[\s\S]*/,lookbehind:!0,inside:{parameter:{pattern:/"[^"]*"/,alias:"property"},punctuation:/^\(|\)$|,/}}}},operator:/=/,tlist:{pattern:/TLIST\s*\(\s*\w+(?:(?:\s*,\s*"[^"]*")+|\s*,\s*"[^"]*"-"[^"]*")?\s*\)/,greedy:!0,inside:{function:/^TLIST/,property:{pattern:/^(\s*\(\s*)\w+/,lookbehind:!0},string:/"[^"]*"/,punctuation:/[(),]/,operator:/-/}},punctuation:/[;,]/,number:{pattern:/(^|\s)\d+(?:\.\d+)?(?!\S)/,lookbehind:!0},boolean:/NO|YES/},e.languages.px=e.languages.pcaxis}t.exports=r,r.displayName="pcaxis",r.aliases=["px"]},13598,(e,t,n)=>{"use strict";function r(e){e.languages.peoplecode={comment:RegExp([/\/\*[\s\S]*?\*\//.source,/\bREM[^;]*;/.source,/<\*(?:[^<*]|\*(?!>)|<(?!\*)|<\*(?:(?!\*>)[\s\S])*\*>)*\*>/.source,/\/\+[\s\S]*?\+\//.source].join("|")),string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},variable:/%\w+/,"function-definition":{pattern:/((?:^|[^\w-])(?:function|method)\s+)\w+/i,lookbehind:!0,alias:"function"},"class-name":{pattern:/((?:^|[^-\w])(?:as|catch|class|component|create|extends|global|implements|instance|local|of|property|returns)\s+)\w+(?::\w+)*/i,lookbehind:!0,inside:{punctuation:/:/}},keyword:/\b(?:abstract|alias|as|catch|class|component|constant|create|declare|else|end-(?:class|evaluate|for|function|get|if|method|set|try|while)|evaluate|extends|for|function|get|global|if|implements|import|instance|library|local|method|null|of|out|peopleCode|private|program|property|protected|readonly|ref|repeat|returns?|set|step|then|throw|to|try|until|value|when(?:-other)?|while)\b/i,"operator-keyword":{pattern:/\b(?:and|not|or)\b/i,alias:"operator"},function:/[_a-z]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/\b\d+(?:\.\d+)?\b/,operator:/<>|[<>]=?|!=|\*\*|[-+*/|=@]/,punctuation:/[:.;,()[\]]/},e.languages.pcode=e.languages.peoplecode}t.exports=r,r.displayName="peoplecode",r.aliases=["pcode"]},95208,(e,t,n)=>{"use strict";function r(e){var t;t=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source,e.languages.perl={comment:[{pattern:/(^\s*)=\w[\s\S]*?=cut.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],string:[{pattern:RegExp(/\b(?:q|qq|qw|qx)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,t].join("|")+")"),greedy:!0},{pattern:/("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/'(?:[^'\\\r\n]|\\.)*'/,greedy:!0}],regex:[{pattern:RegExp(/\b(?:m|qr)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,t].join("|")+")"+/[msixpodualngc]*/.source),greedy:!0},{pattern:RegExp(/(^|[^-])\b(?:s|tr|y)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,/([a-zA-Z0-9])(?:(?!\3)[^\\]|\\[\s\S])*\3(?:(?!\3)[^\\]|\\[\s\S])*\3/.source,t+/\s*/.source+t].join("|")+")"+/[msixpodualngcer]*/.source),lookbehind:!0,greedy:!0},{pattern:/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/,greedy:!0}],variable:[/[&*$@%]\{\^[A-Z]+\}/,/[&*$@%]\^[A-Z_]/,/[&*$@%]#?(?=\{)/,/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/,/[&*$@%]\d+/,/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/],filehandle:{pattern:/<(?![<=])\S*?>|\b_\b/,alias:"symbol"},"v-string":{pattern:/v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,alias:"string"},function:{pattern:/(\bsub[ \t]+)\w+/,lookbehind:!0},keyword:/\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,operator:/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/,punctuation:/[{}[\];(),:]/}}t.exports=r,r.displayName="perl",r.aliases=[]},701209,(e,t,n)=>{"use strict";var r=e.r(114422);function a(e){e.register(r),e.languages.insertBefore("php","variable",{this:{pattern:/\$this\b/,alias:"keyword"},global:/\$(?:GLOBALS|HTTP_RAW_POST_DATA|_(?:COOKIE|ENV|FILES|GET|POST|REQUEST|SERVER|SESSION)|argc|argv|http_response_header|php_errormsg)\b/,scope:{pattern:/\b[\w\\]+::/,inside:{keyword:/\b(?:parent|self|static)\b/,punctuation:/::|\\/}}})}t.exports=a,a.displayName="phpExtras",a.aliases=[]},938650,(e,t,n)=>{"use strict";var r=e.r(114422),a=e.r(523456);function i(e){var t;e.register(r),e.register(a),t=/(?:\b[a-zA-Z]\w*|[|\\[\]])+/.source,e.languages.phpdoc=e.languages.extend("javadoclike",{parameter:{pattern:RegExp("(@(?:global|param|property(?:-read|-write)?|var)\\s+(?:"+t+"\\s+)?)\\$\\w+"),lookbehind:!0}}),e.languages.insertBefore("phpdoc","keyword",{"class-name":[{pattern:RegExp("(@(?:global|package|param|property(?:-read|-write)?|return|subpackage|throws|var)\\s+)"+t),lookbehind:!0,inside:{keyword:/\b(?:array|bool|boolean|callback|double|false|float|int|integer|mixed|null|object|resource|self|string|true|void)\b/,punctuation:/[|\\[\]()]/}}]}),e.languages.javadoclike.addSupport("php",e.languages.phpdoc)}t.exports=i,i.displayName="phpdoc",i.aliases=[]},703124,(e,t,n)=>{"use strict";var r=e.r(440435);function a(e){e.register(r),e.languages.plsql=e.languages.extend("sql",{comment:{pattern:/\/\*[\s\S]*?\*\/|--.*/,greedy:!0},keyword:/\b(?:A|ACCESSIBLE|ADD|AGENT|AGGREGATE|ALL|ALTER|AND|ANY|ARRAY|AS|ASC|AT|ATTRIBUTE|AUTHID|AVG|BEGIN|BETWEEN|BFILE_BASE|BINARY|BLOB_BASE|BLOCK|BODY|BOTH|BOUND|BULK|BY|BYTE|C|CALL|CALLING|CASCADE|CASE|CHAR|CHARACTER|CHARSET|CHARSETFORM|CHARSETID|CHAR_BASE|CHECK|CLOB_BASE|CLONE|CLOSE|CLUSTER|CLUSTERS|COLAUTH|COLLECT|COLUMNS|COMMENT|COMMIT|COMMITTED|COMPILED|COMPRESS|CONNECT|CONSTANT|CONSTRUCTOR|CONTEXT|CONTINUE|CONVERT|COUNT|CRASH|CREATE|CREDENTIAL|CURRENT|CURSOR|CUSTOMDATUM|DANGLING|DATA|DATE|DATE_BASE|DAY|DECLARE|DEFAULT|DEFINE|DELETE|DESC|DETERMINISTIC|DIRECTORY|DISTINCT|DOUBLE|DROP|DURATION|ELEMENT|ELSE|ELSIF|EMPTY|END|ESCAPE|EXCEPT|EXCEPTION|EXCEPTIONS|EXCLUSIVE|EXECUTE|EXISTS|EXIT|EXTERNAL|FETCH|FINAL|FIRST|FIXED|FLOAT|FOR|FORALL|FORCE|FROM|FUNCTION|GENERAL|GOTO|GRANT|GROUP|HASH|HAVING|HEAP|HIDDEN|HOUR|IDENTIFIED|IF|IMMEDIATE|IMMUTABLE|IN|INCLUDING|INDEX|INDEXES|INDICATOR|INDICES|INFINITE|INSERT|INSTANTIABLE|INT|INTERFACE|INTERSECT|INTERVAL|INTO|INVALIDATE|IS|ISOLATION|JAVA|LANGUAGE|LARGE|LEADING|LENGTH|LEVEL|LIBRARY|LIKE|LIKE2|LIKE4|LIKEC|LIMIT|LIMITED|LOCAL|LOCK|LONG|LOOP|MAP|MAX|MAXLEN|MEMBER|MERGE|MIN|MINUS|MINUTE|MOD|MODE|MODIFY|MONTH|MULTISET|MUTABLE|NAME|NAN|NATIONAL|NATIVE|NCHAR|NEW|NOCOMPRESS|NOCOPY|NOT|NOWAIT|NULL|NUMBER_BASE|OBJECT|OCICOLL|OCIDATE|OCIDATETIME|OCIDURATION|OCIINTERVAL|OCILOBLOCATOR|OCINUMBER|OCIRAW|OCIREF|OCIREFCURSOR|OCIROWID|OCISTRING|OCITYPE|OF|OLD|ON|ONLY|OPAQUE|OPEN|OPERATOR|OPTION|OR|ORACLE|ORADATA|ORDER|ORGANIZATION|ORLANY|ORLVARY|OTHERS|OUT|OVERLAPS|OVERRIDING|PACKAGE|PARALLEL_ENABLE|PARAMETER|PARAMETERS|PARENT|PARTITION|PASCAL|PERSISTABLE|PIPE|PIPELINED|PLUGGABLE|POLYMORPHIC|PRAGMA|PRECISION|PRIOR|PRIVATE|PROCEDURE|PUBLIC|RAISE|RANGE|RAW|READ|RECORD|REF|REFERENCE|RELIES_ON|REM|REMAINDER|RENAME|RESOURCE|RESULT|RESULT_CACHE|RETURN|RETURNING|REVERSE|REVOKE|ROLLBACK|ROW|SAMPLE|SAVE|SAVEPOINT|SB1|SB2|SB4|SECOND|SEGMENT|SELECT|SELF|SEPARATE|SEQUENCE|SERIALIZABLE|SET|SHARE|SHORT|SIZE|SIZE_T|SOME|SPARSE|SQL|SQLCODE|SQLDATA|SQLNAME|SQLSTATE|STANDARD|START|STATIC|STDDEV|STORED|STRING|STRUCT|STYLE|SUBMULTISET|SUBPARTITION|SUBSTITUTABLE|SUBTYPE|SUM|SYNONYM|TABAUTH|TABLE|TDO|THE|THEN|TIME|TIMESTAMP|TIMEZONE_ABBR|TIMEZONE_HOUR|TIMEZONE_MINUTE|TIMEZONE_REGION|TO|TRAILING|TRANSACTION|TRANSACTIONAL|TRUSTED|TYPE|UB1|UB2|UB4|UNDER|UNION|UNIQUE|UNPLUG|UNSIGNED|UNTRUSTED|UPDATE|USE|USING|VALIST|VALUE|VALUES|VARIABLE|VARIANCE|VARRAY|VARYING|VIEW|VIEWS|VOID|WHEN|WHERE|WHILE|WITH|WORK|WRAPPED|WRITE|YEAR|ZONE)\b/i,operator:/:=?|=>|[<>^~!]=|\.\.|\|\||\*\*|[-+*/%<>=@]/}),e.languages.insertBefore("plsql","operator",{label:{pattern:/<<\s*\w+\s*>>/,alias:"symbol"}})}t.exports=a,a.displayName="plsql",a.aliases=[]},133926,(e,t,n)=>{"use strict";function r(e){e.languages.powerquery={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},"quoted-identifier":{pattern:/#"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},string:{pattern:/(?:#!)?"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},constant:[/\bDay\.(?:Friday|Monday|Saturday|Sunday|Thursday|Tuesday|Wednesday)\b/,/\bTraceLevel\.(?:Critical|Error|Information|Verbose|Warning)\b/,/\bOccurrence\.(?:All|First|Last)\b/,/\bOrder\.(?:Ascending|Descending)\b/,/\bRoundingMode\.(?:AwayFromZero|Down|ToEven|TowardZero|Up)\b/,/\bMissingField\.(?:Error|Ignore|UseNull)\b/,/\bQuoteStyle\.(?:Csv|None)\b/,/\bJoinKind\.(?:FullOuter|Inner|LeftAnti|LeftOuter|RightAnti|RightOuter)\b/,/\bGroupKind\.(?:Global|Local)\b/,/\bExtraValues\.(?:Error|Ignore|List)\b/,/\bJoinAlgorithm\.(?:Dynamic|LeftHash|LeftIndex|PairwiseHash|RightHash|RightIndex|SortMerge)\b/,/\bJoinSide\.(?:Left|Right)\b/,/\bPrecision\.(?:Decimal|Double)\b/,/\bRelativePosition\.From(?:End|Start)\b/,/\bTextEncoding\.(?:Ascii|BigEndianUnicode|Unicode|Utf16|Utf8|Windows)\b/,/\b(?:Any|Binary|Date|DateTime|DateTimeZone|Duration|Function|Int16|Int32|Int64|Int8|List|Logical|None|Number|Record|Table|Text|Time)\.Type\b/,/\bnull\b/],boolean:/\b(?:false|true)\b/,keyword:/\b(?:and|as|each|else|error|if|in|is|let|meta|not|nullable|optional|or|otherwise|section|shared|then|try|type)\b|#(?:binary|date|datetime|datetimezone|duration|infinity|nan|sections|shared|table|time)\b/,function:{pattern:/(^|[^#\w.])[a-z_][\w.]*(?=\s*\()/i,lookbehind:!0},"data-type":{pattern:/\b(?:any|anynonnull|binary|date|datetime|datetimezone|duration|function|list|logical|none|number|record|table|text|time)\b/,alias:"class-name"},number:{pattern:/\b0x[\da-f]+\b|(?:[+-]?(?:\b\d+\.)?\b\d+|[+-]\.\d+|(^|[^.])\B\.\d+)(?:e[+-]?\d+)?\b/i,lookbehind:!0},operator:/[-+*\/&?@^]|<(?:=>?|>)?|>=?|=>?|\.\.\.?/,punctuation:/[,;\[\](){}]/},e.languages.pq=e.languages.powerquery,e.languages.mscript=e.languages.powerquery}t.exports=r,r.displayName="powerquery",r.aliases=[]},22709,(e,t,n)=>{"use strict";function r(e){var t;(t=e.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/}).string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:t},boolean:t.boolean,variable:t.variable}}t.exports=r,r.displayName="powershell",r.aliases=[]},372868,(e,t,n)=>{"use strict";function r(e){e.languages.processing=e.languages.extend("clike",{keyword:/\b(?:break|case|catch|class|continue|default|else|extends|final|for|if|implements|import|new|null|private|public|return|static|super|switch|this|try|void|while)\b/,function:/\b\w+(?=\s*\()/,operator:/<[<=]?|>[>=]?|&&?|\|\|?|[%?]|[!=+\-*\/]=?/}),e.languages.insertBefore("processing","number",{constant:/\b(?!XML\b)[A-Z][A-Z\d_]+\b/,type:{pattern:/\b(?:boolean|byte|char|color|double|float|int|[A-Z]\w*)\b/,alias:"class-name"}})}t.exports=r,r.displayName="processing",r.aliases=[]},676112,(e,t,n)=>{"use strict";function r(e){e.languages.prolog={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/(["'])(?:\1\1|\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1(?!\1)/,greedy:!0},builtin:/\b(?:fx|fy|xf[xy]?|yfx?)\b/,function:/\b[a-z]\w*(?:(?=\()|\/\d+)/,number:/\b\d+(?:\.\d*)?/,operator:/[:\\=><\-?*@\/;+^|!$.]+|\b(?:is|mod|not|xor)\b/,punctuation:/[(){}\[\],]/}}t.exports=r,r.displayName="prolog",r.aliases=[]},914614,(e,t,n)=>{"use strict";function r(e){var t,n;n=["sum","min","max","avg","group","stddev","stdvar","count","count_values","bottomk","topk","quantile"].concat(t=["on","ignoring","group_right","group_left","by","without"],["offset"]),e.languages.promql={comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},"vector-match":{pattern:RegExp("((?:"+t.join("|")+")\\s*)\\([^)]*\\)"),lookbehind:!0,inside:{"label-key":{pattern:/\b[^,]+\b/,alias:"attr-name"},punctuation:/[(),]/}},"context-labels":{pattern:/\{[^{}]*\}/,inside:{"label-key":{pattern:/\b[a-z_]\w*(?=\s*(?:=|![=~]))/,alias:"attr-name"},"label-value":{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0,alias:"attr-value"},punctuation:/\{|\}|=~?|![=~]|,/}},"context-range":[{pattern:/\[[\w\s:]+\]/,inside:{punctuation:/\[|\]|:/,"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}},{pattern:/(\boffset\s+)\w+/,lookbehind:!0,inside:{"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}}],keyword:RegExp("\\b(?:"+n.join("|")+")\\b","i"),function:/\b[a-z_]\w*(?=\s*\()/i,number:/[-+]?(?:(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[-+]?\d+)?\b|\b(?:0x[0-9a-f]+|nan|inf)\b)/i,operator:/[\^*/%+-]|==|!=|<=|<|>=|>|\b(?:and|or|unless)\b/i,punctuation:/[{};()`,.[\]]/}}t.exports=r,r.displayName="promql",r.aliases=[]},961277,(e,t,n)=>{"use strict";function r(e){e.languages.properties={comment:/^[ \t]*[#!].*$/m,"attr-value":{pattern:/(^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?: *[=:] *(?! )| ))(?:\\(?:\r\n|[\s\S])|[^\\\r\n])+/m,lookbehind:!0},"attr-name":/^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?= *[=:]| )/m,punctuation:/[=:]/}}t.exports=r,r.displayName="properties",r.aliases=[]},645738,(e,t,n)=>{"use strict";function r(e){var t;t=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/,e.languages.protobuf=e.languages.extend("clike",{"class-name":[{pattern:/(\b(?:enum|extend|message|service)\s+)[A-Za-z_]\w*(?=\s*\{)/,lookbehind:!0},{pattern:/(\b(?:rpc\s+\w+|returns)\s*\(\s*(?:stream\s+)?)\.?[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*(?=\s*\))/,lookbehind:!0}],keyword:/\b(?:enum|extend|extensions|import|message|oneof|option|optional|package|public|repeated|required|reserved|returns|rpc(?=\s+\w)|service|stream|syntax|to)\b(?!\s*=\s*\d)/,function:/\b[a-z_]\w*(?=\s*\()/i}),e.languages.insertBefore("protobuf","operator",{map:{pattern:/\bmap<\s*[\w.]+\s*,\s*[\w.]+\s*>(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/[<>.,]/,builtin:t}},builtin:t,"positional-class-name":{pattern:/(?:\b|\B\.)[a-z_]\w*(?:\.[a-z_]\w*)*(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/\./}},annotation:{pattern:/(\[\s*)[a-z_]\w*(?=\s*=)/i,lookbehind:!0}})}t.exports=r,r.displayName="protobuf",r.aliases=[]},83424,(e,t,n)=>{"use strict";function r(e){e.languages.psl={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0,inside:{symbol:/\\[ntrbA-Z"\\]/}},"heredoc-string":{pattern:/<<<([a-zA-Z_]\w*)[\r\n](?:.*[\r\n])*?\1\b/,alias:"string",greedy:!0},keyword:/\b(?:__multi|__single|case|default|do|else|elsif|exit|export|for|foreach|function|if|last|line|local|next|requires|return|switch|until|while|word)\b/,constant:/\b(?:ALARM|CHART_ADD_GRAPH|CHART_DELETE_GRAPH|CHART_DESTROY|CHART_LOAD|CHART_PRINT|EOF|OFFLINE|OK|PSL_PROF_LOG|R_CHECK_HORIZ|R_CHECK_VERT|R_CLICKER|R_COLUMN|R_FRAME|R_ICON|R_LABEL|R_LABEL_CENTER|R_LIST_MULTIPLE|R_LIST_MULTIPLE_ND|R_LIST_SINGLE|R_LIST_SINGLE_ND|R_MENU|R_POPUP|R_POPUP_SCROLLED|R_RADIO_HORIZ|R_RADIO_VERT|R_ROW|R_SCALE_HORIZ|R_SCALE_VERT|R_SEP_HORIZ|R_SEP_VERT|R_SPINNER|R_TEXT_FIELD|R_TEXT_FIELD_LABEL|R_TOGGLE|TRIM_LEADING|TRIM_LEADING_AND_TRAILING|TRIM_REDUNDANT|TRIM_TRAILING|VOID|WARN)\b/,boolean:/\b(?:FALSE|False|NO|No|TRUE|True|YES|Yes|false|no|true|yes)\b/,variable:/\b(?:PslDebug|errno|exit_status)\b/,builtin:{pattern:/\b(?:PslExecute|PslFunctionCall|PslFunctionExists|PslSetOptions|_snmp_debug|acos|add_diary|annotate|annotate_get|ascii_to_ebcdic|asctime|asin|atan|atexit|batch_set|blackout|cat|ceil|chan_exists|change_state|close|code_cvt|cond_signal|cond_wait|console_type|convert_base|convert_date|convert_locale_date|cos|cosh|create|date|dcget_text|destroy|destroy_lock|dget_text|difference|dump_hist|ebcdic_to_ascii|encrypt|event_archive|event_catalog_get|event_check|event_query|event_range_manage|event_range_query|event_report|event_schedule|event_trigger|event_trigger2|execute|exists|exp|fabs|file|floor|fmod|fopen|fseek|ftell|full_discovery|get|get_chan_info|get_ranges|get_text|get_vars|getenv|gethostinfo|getpid|getpname|grep|history|history_get_retention|in_transition|index|int|internal|intersection|is_var|isnumber|join|kill|length|lines|lock|lock_info|log|log10|loge|matchline|msg_check|msg_get_format|msg_get_severity|msg_printf|msg_sprintf|ntharg|nthargf|nthline|nthlinef|num_bytes|num_consoles|pconfig|popen|poplines|pow|print|printf|proc_exists|process|random|read|readln|refresh_parameters|remote_check|remote_close|remote_event_query|remote_event_trigger|remote_file_send|remote_open|remove|replace|rindex|sec_check_priv|sec_store_get|sec_store_set|set|set_alarm_ranges|set_locale|share|sin|sinh|sleep|snmp_agent_config|snmp_agent_start|snmp_agent_stop|snmp_close|snmp_config|snmp_get|snmp_get_next|snmp_h_get|snmp_h_get_next|snmp_h_set|snmp_open|snmp_set|snmp_trap_ignore|snmp_trap_listen|snmp_trap_raise_std_trap|snmp_trap_receive|snmp_trap_register_im|snmp_trap_send|snmp_walk|sopen|sort|splitline|sprintf|sqrt|srandom|str_repeat|strcasecmp|subset|substr|system|tail|tan|tanh|text_domain|time|tmpnam|tolower|toupper|trace_psl_process|trim|union|unique|unlock|unset|va_arg|va_start|write)\b/,alias:"builtin-function"},"foreach-variable":{pattern:/(\bforeach\s+(?:(?:\w+\b|"(?:\\.|[^\\"])*")\s+){0,2})[_a-zA-Z]\w*(?=\s*\()/,lookbehind:!0,greedy:!0},function:/\b[_a-z]\w*\b(?=\s*\()/i,number:/\b(?:0x[0-9a-f]+|\d+(?:\.\d+)?)\b/i,operator:/--|\+\+|&&=?|\|\|=?|<<=?|>>=?|[=!]~|[-+*/%&|^!=<>]=?|\.|[:?]/,punctuation:/[(){}\[\];,]/}}t.exports=r,r.displayName="psl",r.aliases=[]},908726,(e,t,n)=>{"use strict";function r(e){!function(e){e.languages.pug={comment:{pattern:/(^([\t ]*))\/\/.*(?:(?:\r?\n|\r)\2[\t ].+)*/m,lookbehind:!0},"multiline-script":{pattern:/(^([\t ]*)script\b.*\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:e.languages.javascript},filter:{pattern:/(^([\t ]*)):.+(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:/\S[\s\S]*/}},"multiline-plain-text":{pattern:/(^([\t ]*)[\w\-#.]+\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0},markup:{pattern:/(^[\t ]*)<.+/m,lookbehind:!0,inside:e.languages.markup},doctype:{pattern:/((?:^|\n)[\t ]*)doctype(?: .+)?/,lookbehind:!0},"flow-control":{pattern:/(^[\t ]*)(?:case|default|each|else|if|unless|when|while)\b(?: .+)?/m,lookbehind:!0,inside:{each:{pattern:/^each .+? in\b/,inside:{keyword:/\b(?:each|in)\b/,punctuation:/,/}},branch:{pattern:/^(?:case|default|else|if|unless|when|while)\b/,alias:"keyword"},rest:e.languages.javascript}},keyword:{pattern:/(^[\t ]*)(?:append|block|extends|include|prepend)\b.+/m,lookbehind:!0},mixin:[{pattern:/(^[\t ]*)mixin .+/m,lookbehind:!0,inside:{keyword:/^mixin/,function:/\w+(?=\s*\(|\s*$)/,punctuation:/[(),.]/}},{pattern:/(^[\t ]*)\+.+/m,lookbehind:!0,inside:{name:{pattern:/^\+\w+/,alias:"function"},rest:e.languages.javascript}}],script:{pattern:/(^[\t ]*script(?:(?:&[^(]+)?\([^)]+\))*[\t ]).+/m,lookbehind:!0,inside:e.languages.javascript},"plain-text":{pattern:/(^[\t ]*(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?[\t ]).+/m,lookbehind:!0},tag:{pattern:/(^[\t ]*)(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?:?/m,lookbehind:!0,inside:{attributes:[{pattern:/&[^(]+\([^)]+\)/,inside:e.languages.javascript},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*(?!\s))(?:\{[^}]*\}|[^,)\r\n]+)/,lookbehind:!0,inside:e.languages.javascript},"attr-name":/[\w-]+(?=\s*!?=|\s*[,)])/,punctuation:/[!=(),]+/}}],punctuation:/:/,"attr-id":/#[\w\-]+/,"attr-class":/\.[\w\-]+/}},code:[{pattern:/(^[\t ]*(?:-|!?=)).+/m,lookbehind:!0,inside:e.languages.javascript}],punctuation:/[.\-!=|]+/};for(var t=/(^([\t ]*)):<filter_name>(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/.source,n=[{filter:"atpl",language:"twig"},{filter:"coffee",language:"coffeescript"},"ejs","handlebars","less","livescript","markdown",{filter:"sass",language:"scss"},"stylus"],r={},a=0,i=n.length;a<i;a++){var s=n[a];s="string"==typeof s?{filter:s,language:s}:s,e.languages[s.language]&&(r["filter-"+s.filter]={pattern:RegExp(t.replace("<filter_name>",function(){return s.filter}),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:{pattern:/\S[\s\S]*/,alias:[s.language,"language-"+s.language],inside:e.languages[s.language]}}})}e.languages.insertBefore("pug","filter",r)}(e)}t.exports=r,r.displayName="pug",r.aliases=[]},10905,(e,t,n)=>{"use strict";function r(e){var t;e.languages.puppet={heredoc:[{pattern:/(@\("([^"\r\n\/):]+)"(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/(@\(([^"\r\n\/):]+)(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,greedy:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/@\("?(?:[^"\r\n\/):]+)"?(?:\/[nrts$uL]*)?\)/,alias:"string",inside:{punctuation:{pattern:/(\().+?(?=\))/,lookbehind:!0}}}],"multiline-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0,alias:"comment"},regex:{pattern:/((?:\bnode\s+|[~=\(\[\{,]\s*|[=+]>\s*|^\s*))\/(?:[^\/\\]|\\[\s\S])+\/(?:[imx]+\b|\B)/,lookbehind:!0,greedy:!0,inside:{"extended-regex":{pattern:/^\/(?:[^\/\\]|\\[\s\S])+\/[im]*x[im]*$/,inside:{comment:/#.*/}}}},comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:\$\{(?:[^'"}]|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}|\$(?!\{)|(?!\1)[^\\$]|\\[\s\S])*\1/,greedy:!0,inside:{"double-quoted":{pattern:/^"[\s\S]*"$/,inside:{}}}},variable:{pattern:/\$(?:::)?\w+(?:::\w+)*/,inside:{punctuation:/::/}},"attr-name":/(?:\b\w+|\*)(?=\s*=>)/,function:[{pattern:/(\.)(?!\d)\w+/,lookbehind:!0},/\b(?:contain|debug|err|fail|include|info|notice|realize|require|tag|warning)\b|\b(?!\d)\w+(?=\()/],number:/\b(?:0x[a-f\d]+|\d+(?:\.\d+)?(?:e-?\d+)?)\b/i,boolean:/\b(?:false|true)\b/,keyword:/\b(?:application|attr|case|class|consumes|default|define|else|elsif|function|if|import|inherits|node|private|produces|type|undef|unless)\b/,datatype:{pattern:/\b(?:Any|Array|Boolean|Callable|Catalogentry|Class|Collection|Data|Default|Enum|Float|Hash|Integer|NotUndef|Numeric|Optional|Pattern|Regexp|Resource|Runtime|Scalar|String|Struct|Tuple|Type|Undef|Variant)\b/,alias:"symbol"},operator:/=[=~>]?|![=~]?|<(?:<\|?|[=~|-])?|>[>=]?|->?|~>|\|>?>?|[*\/%+?]|\b(?:and|in|or)\b/,punctuation:/[\[\]{}().,;]|:+/},t=[{pattern:/(^|[^\\])\$\{(?:[^'"{}]|\{[^}]*\}|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}/,lookbehind:!0,inside:{"short-variable":{pattern:/(^\$\{)(?!\w+\()(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}},delimiter:{pattern:/^\$/,alias:"variable"},rest:e.languages.puppet}},{pattern:/(^|[^\\])\$(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}}],e.languages.puppet.heredoc[0].inside.interpolation=t,e.languages.puppet.string.inside["double-quoted"].inside.interpolation=t}t.exports=r,r.displayName="puppet",r.aliases=[]},661590,(e,t,n)=>{"use strict";function r(e){var t;e.languages.pure={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0},/#!.+/],"inline-lang":{pattern:/%<[\s\S]+?%>/,greedy:!0,inside:{lang:{pattern:/(^%< *)-\*-.+?-\*-/,lookbehind:!0,alias:"comment"},delimiter:{pattern:/^%<.*|%>$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},number:{pattern:/((?:\.\.)?)(?:\b(?:inf|nan)\b|\b0x[\da-f]+|(?:\b(?:0b)?\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?L?)/i,lookbehind:!0},keyword:/\b(?:NULL|ans|break|bt|case|catch|cd|clear|const|def|del|dump|else|end|exit|extern|false|force|help|if|infix[lr]?|interface|let|ls|mem|namespace|nonfix|of|otherwise|outfix|override|postfix|prefix|private|public|pwd|quit|run|save|show|stats|then|throw|trace|true|type|underride|using|when|with)\b/,function:/\b(?:abs|add_(?:addr|constdef|(?:fundef|interface|macdef|typedef)(?:_at)?|vardef)|all|any|applp?|arity|bigintp?|blob(?:_crc|_size|p)?|boolp?|byte_c?string(?:_pointer)?|byte_(?:matrix|pointer)|calloc|cat|catmap|ceil|char[ps]?|check_ptrtag|chr|clear_sentry|clearsym|closurep?|cmatrixp?|cols?|colcat(?:map)?|colmap|colrev|colvector(?:p|seq)?|complex(?:_float_(?:matrix|pointer)|_matrix(?:_view)?|_pointer|p)?|conj|cookedp?|cst|cstring(?:_(?:dup|list|vector))?|curry3?|cyclen?|del_(?:constdef|fundef|interface|macdef|typedef|vardef)|delete|diag(?:mat)?|dim|dmatrixp?|do|double(?:_matrix(?:_view)?|_pointer|p)?|dowith3?|drop|dropwhile|eval(?:cmd)?|exactp|filter|fix|fixity|flip|float(?:_matrix|_pointer)|floor|fold[lr]1?|frac|free|funp?|functionp?|gcd|get(?:_(?:byte|constdef|double|float|fundef|int(?:64)?|interface(?:_typedef)?|long|macdef|pointer|ptrtag|sentry|short|string|typedef|vardef))?|globsym|hash|head|id|im|imatrixp?|index|inexactp|infp|init|insert|int(?:_matrix(?:_view)?|_pointer|p)?|int64_(?:matrix|pointer)|integerp?|iteraten?|iterwhile|join|keys?|lambdap?|last(?:err(?:pos)?)?|lcd|list[2p]?|listmap|make_ptrtag|malloc|map|matcat|matrixp?|max|member|min|nanp|nargs|nmatrixp?|null|numberp?|ord|pack(?:ed)?|pointer(?:_cast|_tag|_type|p)?|pow|pred|ptrtag|put(?:_(?:byte|double|float|int(?:64)?|long|pointer|short|string))?|rationalp?|re|realp?|realloc|recordp?|redim|reduce(?:_with)?|refp?|repeatn?|reverse|rlistp?|round|rows?|rowcat(?:map)?|rowmap|rowrev|rowvector(?:p|seq)?|same|scan[lr]1?|sentry|sgn|short_(?:matrix|pointer)|slice|smatrixp?|sort|split|str|strcat|stream|stride|string(?:_(?:dup|list|vector)|p)?|subdiag(?:mat)?|submat|subseq2?|substr|succ|supdiag(?:mat)?|symbolp?|tail|take|takewhile|thunkp?|transpose|trunc|tuplep?|typep|ubyte|uint(?:64)?|ulong|uncurry3?|unref|unzip3?|update|ushort|vals?|varp?|vector(?:p|seq)?|void|zip3?|zipwith3?)\b/,special:{pattern:/\b__[a-z]+__\b/i,alias:"builtin"},operator:/(?:[!"#$%&'*+,\-.\/:<=>?@\\^`|~\u00a1-\u00bf\u00d7-\u00f7\u20d0-\u2bff]|\b_+\b)+|\b(?:and|div|mod|not|or)\b/,punctuation:/[(){}\[\];,|]/},t=/%< *-\*- *<lang>\d* *-\*-[\s\S]+?%>/.source,["c",{lang:"c++",alias:"cpp"},"fortran"].forEach(function(n){var r=n;if("string"!=typeof n&&(r=n.alias,n=n.lang),e.languages[r]){var a={};a["inline-lang-"+r]={pattern:RegExp(t.replace("<lang>",n.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:e.util.clone(e.languages.pure["inline-lang"].inside)},a["inline-lang-"+r].inside.rest=e.util.clone(e.languages[r]),e.languages.insertBefore("pure","inline-lang",a)}}),e.languages.c&&(e.languages.pure["inline-lang"].inside.rest=e.util.clone(e.languages.c))}t.exports=r,r.displayName="pure",r.aliases=[]},465742,(e,t,n)=>{"use strict";function r(e){e.languages.purebasic=e.languages.extend("clike",{comment:/;.*/,keyword:/\b(?:align|and|as|break|calldebugger|case|compilercase|compilerdefault|compilerelse|compilerelseif|compilerendif|compilerendselect|compilererror|compilerif|compilerselect|continue|data|datasection|debug|debuglevel|declare|declarec|declarecdll|declaredll|declaremodule|default|define|dim|disableasm|disabledebugger|disableexplicit|else|elseif|enableasm|enabledebugger|enableexplicit|end|enddatasection|enddeclaremodule|endenumeration|endif|endimport|endinterface|endmacro|endmodule|endprocedure|endselect|endstructure|endstructureunion|endwith|enumeration|extends|fakereturn|for|foreach|forever|global|gosub|goto|if|import|importc|includebinary|includefile|includepath|interface|macro|module|newlist|newmap|next|not|or|procedure|procedurec|procedurecdll|proceduredll|procedurereturn|protected|prototype|prototypec|read|redim|repeat|restore|return|runtime|select|shared|static|step|structure|structureunion|swap|threaded|to|until|wend|while|with|xincludefile|xor)\b/i,function:/\b\w+(?:\.\w+)?\s*(?=\()/,number:/(?:\$[\da-f]+|\b-?(?:\d+(?:\.\d+)?|\.\d+)(?:e[+-]?\d+)?)\b/i,operator:/(?:@\*?|\?|\*)\w+|-[>-]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|?\||[~^%?*/@]/}),e.languages.insertBefore("purebasic","keyword",{tag:/#\w+\$?/,asm:{pattern:/(^[\t ]*)!.*/m,lookbehind:!0,alias:"tag",inside:{comment:/;.*/,string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"label-reference-anonymous":{pattern:/(!\s*j[a-z]+\s+)@[fb]/i,lookbehind:!0,alias:"fasm-label"},"label-reference-addressed":{pattern:/(!\s*j[a-z]+\s+)[A-Z._?$@][\w.?$@~#]*/i,lookbehind:!0,alias:"fasm-label"},keyword:[/\b(?:extern|global)\b[^;\r\n]*/i,/\b(?:CPU|DEFAULT|FLOAT)\b.*/],function:{pattern:/^([\t ]*!\s*)[\da-z]+(?=\s|$)/im,lookbehind:!0},"function-inline":{pattern:/(:\s*)[\da-z]+(?=\s)/i,lookbehind:!0,alias:"function"},label:{pattern:/^([\t ]*!\s*)[A-Za-z._?$@][\w.?$@~#]*(?=:)/m,lookbehind:!0,alias:"fasm-label"},register:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s|mm\d+)\b/i,number:/(?:\b|-|(?=\$))(?:0[hx](?:[\da-f]*\.)?[\da-f]+(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-/%<>=&|$!,.:]/}}}),delete e.languages.purebasic["class-name"],delete e.languages.purebasic.boolean,e.languages.pbfasm=e.languages.purebasic}t.exports=r,r.displayName="purebasic",r.aliases=[]},293101,(e,t,n)=>{"use strict";var r=e.r(946221);function a(e){e.register(r),e.languages.purescript=e.languages.extend("haskell",{keyword:/\b(?:ado|case|class|data|derive|do|else|forall|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b|∀/,"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*(?:\s+as\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import)\b/,punctuation:/\./}},builtin:/\b(?:absurd|add|ap|append|apply|between|bind|bottom|clamp|compare|comparing|compose|conj|const|degree|discard|disj|div|eq|flap|flip|gcd|identity|ifM|join|lcm|liftA1|liftM1|map|max|mempty|min|mod|mul|negate|not|notEq|one|otherwise|recip|show|sub|top|unit|unless|unlessM|void|when|whenM|zero)\b/,operator:[e.languages.haskell.operator[0],e.languages.haskell.operator[2],/[\xa2-\xa6\xa8\xa9\xac\xae-\xb1\xb4\xb8\xd7\xf7\u02c2-\u02c5\u02d2-\u02df\u02e5-\u02eb\u02ed\u02ef-\u02ff\u0375\u0384\u0385\u03f6\u0482\u058d-\u058f\u0606-\u0608\u060b\u060e\u060f\u06de\u06e9\u06fd\u06fe\u07f6\u07fe\u07ff\u09f2\u09f3\u09fa\u09fb\u0af1\u0b70\u0bf3-\u0bfa\u0c7f\u0d4f\u0d79\u0e3f\u0f01-\u0f03\u0f13\u0f15-\u0f17\u0f1a-\u0f1f\u0f34\u0f36\u0f38\u0fbe-\u0fc5\u0fc7-\u0fcc\u0fce\u0fcf\u0fd5-\u0fd8\u109e\u109f\u1390-\u1399\u166d\u17db\u1940\u19de-\u19ff\u1b61-\u1b6a\u1b74-\u1b7c\u1fbd\u1fbf-\u1fc1\u1fcd-\u1fcf\u1fdd-\u1fdf\u1fed-\u1fef\u1ffd\u1ffe\u2044\u2052\u207a-\u207c\u208a-\u208c\u20a0-\u20bf\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211e-\u2123\u2125\u2127\u2129\u212e\u213a\u213b\u2140-\u2144\u214a-\u214d\u214f\u218a\u218b\u2190-\u2307\u230c-\u2328\u232b-\u2426\u2440-\u244a\u249c-\u24e9\u2500-\u2767\u2794-\u27c4\u27c7-\u27e5\u27f0-\u2982\u2999-\u29d7\u29dc-\u29fb\u29fe-\u2b73\u2b76-\u2b95\u2b97-\u2bff\u2ce5-\u2cea\u2e50\u2e51\u2e80-\u2e99\u2e9b-\u2ef3\u2f00-\u2fd5\u2ff0-\u2ffb\u3004\u3012\u3013\u3020\u3036\u3037\u303e\u303f\u309b\u309c\u3190\u3191\u3196-\u319f\u31c0-\u31e3\u3200-\u321e\u322a-\u3247\u3250\u3260-\u327f\u328a-\u32b0\u32c0-\u33ff\u4dc0-\u4dff\ua490-\ua4c6\ua700-\ua716\ua720\ua721\ua789\ua78a\ua828-\ua82b\ua836-\ua839\uaa77-\uaa79\uab5b\uab6a\uab6b\ufb29\ufbb2-\ufbc1\ufdfc\ufdfd\ufe62\ufe64-\ufe66\ufe69\uff04\uff0b\uff1c-\uff1e\uff3e\uff40\uff5c\uff5e\uffe0-\uffe6\uffe8-\uffee\ufffc\ufffd]/]}),e.languages.purs=e.languages.purescript}t.exports=a,a.displayName="purescript",a.aliases=["purs"]},895983,(e,t,n)=>{"use strict";function r(e){e.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},e.languages.python["string-interpolation"].inside.interpolation.inside.rest=e.languages.python,e.languages.py=e.languages.python}t.exports=r,r.displayName="python",r.aliases=["py"]},146166,(e,t,n)=>{"use strict";function r(e){e.languages.q={string:/"(?:\\.|[^"\\\r\n])*"/,comment:[{pattern:/([\t )\]}])\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|\r?\n|\r)\/[\t ]*(?:(?:\r?\n|\r)(?:.*(?:\r?\n|\r(?!\n)))*?(?:\\(?=[\t ]*(?:\r?\n|\r))|$)|\S.*)/,lookbehind:!0,greedy:!0},{pattern:/^\\[\t ]*(?:\r?\n|\r)[\s\S]+/m,greedy:!0},{pattern:/^#!.+/m,greedy:!0}],symbol:/`(?::\S+|[\w.]*)/,datetime:{pattern:/0N[mdzuvt]|0W[dtz]|\d{4}\.\d\d(?:m|\.\d\d(?:T(?:\d\d(?::\d\d(?::\d\d(?:[.:]\d\d\d)?)?)?)?)?[dz]?)|\d\d:\d\d(?::\d\d(?:[.:]\d\d\d)?)?[uvt]?/,alias:"number"},number:/\b(?![01]:)(?:0N[hje]?|0W[hj]?|0[wn]|0x[\da-fA-F]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?[hjfeb]?)/,keyword:/\\\w+\b|\b(?:abs|acos|aj0?|all|and|any|asc|asin|asof|atan|attr|avgs?|binr?|by|ceiling|cols|cor|cos|count|cov|cross|csv|cut|delete|deltas|desc|dev|differ|distinct|div|do|dsave|ej|enlist|eval|except|exec|exit|exp|fby|fills|first|fkeys|flip|floor|from|get|getenv|group|gtime|hclose|hcount|hdel|hopen|hsym|iasc|identity|idesc|if|ij|in|insert|inter|inv|keys?|last|like|list|ljf?|load|log|lower|lsq|ltime|ltrim|mavg|maxs?|mcount|md5|mdev|med|meta|mins?|mmax|mmin|mmu|mod|msum|neg|next|not|null|or|over|parse|peach|pj|plist|prds?|prev|prior|rand|rank|ratios|raze|read0|read1|reciprocal|reval|reverse|rload|rotate|rsave|rtrim|save|scan|scov|sdev|select|set|setenv|show|signum|sin|sqrt|ssr?|string|sublist|sums?|sv|svar|system|tables|tan|til|trim|txf|type|uj|ungroup|union|update|upper|upsert|value|var|views?|vs|wavg|where|while|within|wj1?|wsum|ww|xasc|xbar|xcols?|xdesc|xexp|xgroup|xkey|xlog|xprev|xrank)\b/,adverb:{pattern:/['\/\\]:?|\beach\b/,alias:"function"},verb:{pattern:/(?:\B\.\B|\b[01]:|<[=>]?|>=?|[:+\-*%,!?~=|$&#@^]):?|\b_\b:?/,alias:"operator"},punctuation:/[(){}\[\];.]/}}t.exports=r,r.displayName="q",r.aliases=[]},313539,(e,t,n)=>{"use strict";function r(e){for(var t=/"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'/.source,n=/\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))*\*\//.source,r=/(?:[^\\()[\]{}"'/]|<string>|\/(?![*/])|<comment>|\(<expr>*\)|\[<expr>*\]|\{<expr>*\}|\\[\s\S])/.source.replace(/<string>/g,function(){return t}).replace(/<comment>/g,function(){return n}),a=0;a<2;a++)r=r.replace(/<expr>/g,function(){return r});r=r.replace(/<expr>/g,"[^\\s\\S]"),e.languages.qml={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},"javascript-function":{pattern:RegExp(/((?:^|;)[ \t]*)function\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*\(<js>*\)\s*\{<js>*\}/.source.replace(/<js>/g,function(){return r}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:e.languages.javascript},"class-name":{pattern:/((?:^|[:;])[ \t]*)(?!\d)\w+(?=[ \t]*\{|[ \t]+on\b)/m,lookbehind:!0},property:[{pattern:/((?:^|[;{])[ \t]*)(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0},{pattern:/((?:^|[;{])[ \t]*)property[ \t]+(?!\d)\w+(?:\.\w+)*[ \t]+(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0,inside:{keyword:/^property/,property:/\w+(?:\.\w+)*/}}],"javascript-expression":{pattern:RegExp(/(:[ \t]*)(?![\s;}[])(?:(?!$|[;}])<js>)+/.source.replace(/<js>/g,function(){return r}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:e.languages.javascript},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},keyword:/\b(?:as|import|on)\b/,punctuation:/[{}[\]:;,]/}}t.exports=r,r.displayName="qml",r.aliases=[]},687678,(e,t,n)=>{"use strict";function r(e){e.languages.qore=e.languages.extend("clike",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:\/\/|#).*)/,lookbehind:!0},string:{pattern:/("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:abstract|any|assert|binary|bool|boolean|break|byte|case|catch|char|class|code|const|continue|data|default|do|double|else|enum|extends|final|finally|float|for|goto|hash|if|implements|import|inherits|instanceof|int|interface|long|my|native|new|nothing|null|object|our|own|private|reference|rethrow|return|short|soft(?:bool|date|float|int|list|number|string)|static|strictfp|string|sub|super|switch|synchronized|this|throw|throws|transient|try|void|volatile|while)\b/,boolean:/\b(?:false|true)\b/i,function:/\$?\b(?!\d)\w+(?=\()/,number:/\b(?:0b[01]+|0x(?:[\da-f]*\.)?[\da-fp\-]+|(?:\d+(?:\.\d+)?|\.\d+)(?:e\d+)?[df]|(?:\d+(?:\.\d+)?|\.\d+))\b/i,operator:{pattern:/(^|[^.])(?:\+[+=]?|-[-=]?|[!=](?:==?|~)?|>>?=?|<(?:=>?|<=?)?|&[&=]?|\|[|=]?|[*\/%^]=?|[~?])/,lookbehind:!0},variable:/\$(?!\d)\w+\b/})}t.exports=r,r.displayName="qore",r.aliases=[]},622212,(e,t,n)=>{"use strict";function r(e){!function(e){function t(e,t){return e.replace(/<<(\d+)>>/g,function(e,n){return"(?:"+t[+n]+")"})}function n(e,n,r){return RegExp(t(e,n),r||"")}var r=RegExp("\\b(?:"+"Adj BigInt Bool Ctl Double false Int One Pauli PauliI PauliX PauliY PauliZ Qubit Range Result String true Unit Zero Adjoint adjoint apply as auto body borrow borrowing Controlled controlled distribute elif else fail fixup for function if in internal intrinsic invert is let mutable namespace new newtype open operation repeat return self set until use using while within".trim().replace(/ /g,"|")+")\\b"),a=/\b[A-Za-z_]\w*\b/.source,i=t(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[a]),s={keyword:r,punctuation:/[<>()?,.:[\]]/},o=/"(?:\\.|[^\\"])*"/.source;e.languages.qsharp=e.languages.extend("clike",{comment:/\/\/.*/,string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[o]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:n(/(\b(?:as|open)\s+)<<0>>(?=\s*(?:;|as\b))/.source,[i]),lookbehind:!0,inside:s},{pattern:n(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[i]),lookbehind:!0,inside:s}],keyword:r,number:/(?:\b0(?:x[\da-f]+|b[01]+|o[0-7]+)|(?:\B\.\d+|\b\d+(?:\.\d*)?)(?:e[-+]?\d+)?)l?\b/i,operator:/\band=|\bor=|\band\b|\bnot\b|\bor\b|<[-=]|[-=]>|>>>=?|<<<=?|\^\^\^=?|\|\|\|=?|&&&=?|w\/=?|~~~|[*\/+\-^=!%]=?/,punctuation:/::|[{}[\];(),.:]/}),e.languages.insertBefore("qsharp","number",{range:{pattern:/\.\./,alias:"operator"}});var l=function(e){for(var t=0;t<2;t++)e=e.replace(/<<self>>/g,function(){return"(?:"+e+")"});return e.replace(/<<self>>/g,"[^\\s\\S]")}(t(/\{(?:[^"{}]|<<0>>|<<self>>)*\}/.source,[o]));e.languages.insertBefore("qsharp","string",{"interpolation-string":{pattern:n(/\$"(?:\\.|<<0>>|[^\\"{])*"/.source,[l]),greedy:!0,inside:{interpolation:{pattern:n(/((?:^|[^\\])(?:\\\\)*)<<0>>/.source,[l]),lookbehind:!0,inside:{punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-qsharp",inside:e.languages.qsharp}}},string:/[\s\S]+/}}})}(e),e.languages.qs=e.languages.qsharp}t.exports=r,r.displayName="qsharp",r.aliases=["qs"]},178470,(e,t,n)=>{"use strict";function r(e){e.languages.r={comment:/#.*/,string:{pattern:/(['"])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"percent-operator":{pattern:/%[^%\s]*%/,alias:"operator"},boolean:/\b(?:FALSE|TRUE)\b/,ellipsis:/\.\.(?:\.|\d+)/,number:[/\b(?:Inf|NaN)\b/,/(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+(?:\.\d*)?|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/],keyword:/\b(?:NA|NA_character_|NA_complex_|NA_integer_|NA_real_|NULL|break|else|for|function|if|in|next|repeat|while)\b/,operator:/->?>?|<(?:=|<?-)?|[>=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,punctuation:/[(){}\[\],;]/}}t.exports=r,r.displayName="r",r.aliases=[]},86406,(e,t,n)=>{"use strict";var r=e.r(817085);function a(e){e.register(r),e.languages.racket=e.languages.extend("scheme",{"lambda-parameter":{pattern:/([(\[]lambda\s+[(\[])[^()\[\]'\s]+/,lookbehind:!0}}),e.languages.insertBefore("racket","string",{lang:{pattern:/^#lang.+/m,greedy:!0,alias:"keyword"}}),e.languages.rkt=e.languages.racket}t.exports=a,a.displayName="racket",a.aliases=["rkt"]},523365,(e,t,n)=>{"use strict";function r(e){e.languages.reason=e.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),e.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete e.languages.reason.function}t.exports=r,r.displayName="reason",r.aliases=[]},999135,(e,t,n)=>{"use strict";function r(e){var t,n,r,a,i;t={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},a=RegExp((r="(?:[^\\\\-]|"+(n=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/).source+")")+"-"+r),i={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"},e.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:a,inside:{escape:n,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":t,"char-set":{pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},escape:n}},"special-escape":t,"char-set":{pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":i}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:n,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":i}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}}t.exports=r,r.displayName="regex",r.aliases=[]},78250,(e,t,n)=>{"use strict";function r(e){e.languages.rego={comment:/#.*/,property:{pattern:/(^|[^\\.])(?:"(?:\\.|[^\\"\r\n])*"|`[^`]*`|\b[a-z_]\w*\b)(?=\s*:(?!=))/i,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:as|default|else|import|not|null|package|set(?=\s*\()|some|with)\b/,boolean:/\b(?:false|true)\b/,function:{pattern:/\b[a-z_]\w*\b(?:\s*\.\s*\b[a-z_]\w*\b)*(?=\s*\()/i,inside:{namespace:/\b\w+\b(?=\s*\.)/,punctuation:/\./}},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,operator:/[-+*/%|&]|[<>:=]=?|!=|\b_\b/,punctuation:/[,;.\[\]{}()]/}}t.exports=r,r.displayName="rego",r.aliases=[]},533122,(e,t,n)=>{"use strict";function r(e){e.languages.renpy={comment:{pattern:/(^|[^\\])#.+/,lookbehind:!0},string:{pattern:/("""|''')[\s\S]+?\1|("|')(?:\\.|(?!\2)[^\\])*\2|(?:^#?(?:(?:[0-9a-fA-F]){3}|[0-9a-fA-F]{6})$)/m,greedy:!0},function:/\b[a-z_]\w*(?=\()/i,property:/\b(?:Update|UpdateVersion|action|activate_sound|adv_nvl_transition|after_load_transition|align|alpha|alt|anchor|antialias|area|auto|background|bar_invert|bar_resizing|bar_vertical|black_color|bold|bottom_bar|bottom_gutter|bottom_margin|bottom_padding|box_reverse|box_wrap|can_update|caret|child|color|crop|default_afm_enable|default_afm_time|default_fullscreen|default_text_cps|developer|directory_name|drag_handle|drag_joined|drag_name|drag_raise|draggable|dragged|drop_shadow|drop_shadow_color|droppable|dropped|easein|easeout|edgescroll|end_game_transition|end_splash_transition|enter_replay_transition|enter_sound|enter_transition|enter_yesno_transition|executable_name|exit_replay_transition|exit_sound|exit_transition|exit_yesno_transition|fadein|fadeout|first_indent|first_spacing|fit_first|focus|focus_mask|font|foreground|game_main_transition|get_installed_packages|google_play_key|google_play_salt|ground|has_music|has_sound|has_voice|height|help|hinting|hover|hover_background|hover_color|hover_sound|hovered|hyperlink_functions|idle|idle_color|image_style|include_update|insensitive|insensitive_background|insensitive_color|inside|intra_transition|italic|justify|kerning|keyboard_focus|language|layer_clipping|layers|layout|left_bar|left_gutter|left_margin|left_padding|length|line_leading|line_overlap_split|line_spacing|linear|main_game_transition|main_menu_music|maximum|min_width|minimum|minwidth|modal|mouse|mousewheel|name|narrator_menu|newline_indent|nvl_adv_transition|offset|order_reverse|outlines|overlay_functions|pos|position|prefix|radius|range|rest_indent|right_bar|right_gutter|right_margin|right_padding|rotate|rotate_pad|ruby_style|sample_sound|save_directory|say_attribute_transition|screen_height|screen_width|scrollbars|selected_hover|selected_hover_color|selected_idle|selected_idle_color|selected_insensitive|show_side_image|show_two_window|side_spacing|side_xpos|side_ypos|size|size_group|slow_cps|slow_cps_multiplier|spacing|strikethrough|subpixel|text_align|text_style|text_xpos|text_y_fudge|text_ypos|thumb|thumb_offset|thumb_shadow|thumbnail_height|thumbnail_width|time|top_bar|top_gutter|top_margin|top_padding|translations|underline|unscrollable|update|value|version|version_name|version_tuple|vertical|width|window_hide_transition|window_icon|window_left_padding|window_show_transition|window_title|windows_icon|xadjustment|xalign|xanchor|xanchoraround|xaround|xcenter|xfill|xinitial|xmargin|xmaximum|xminimum|xoffset|xofsset|xpadding|xpos|xsize|xzoom|yadjustment|yalign|yanchor|yanchoraround|yaround|ycenter|yfill|yinitial|ymargin|ymaximum|yminimum|yoffset|ypadding|ypos|ysize|ysizexysize|yzoom|zoom|zorder)\b/,tag:/\b(?:bar|block|button|buttoscreenn|drag|draggroup|fixed|frame|grid|[hv]box|hotbar|hotspot|image|imagebutton|imagemap|input|key|label|menu|mm_menu_frame|mousearea|nvl|parallel|screen|self|side|tag|text|textbutton|timer|vbar|viewport|window)\b|\$/,keyword:/\b(?:None|add|adjustment|alignaround|allow|angle|animation|around|as|assert|behind|box_layout|break|build|cache|call|center|changed|child_size|choice|circles|class|clear|clicked|clipping|clockwise|config|contains|continue|corner1|corner2|counterclockwise|def|default|define|del|delay|disabled|disabled_text|dissolve|elif|else|event|except|exclude|exec|expression|fade|finally|for|from|function|global|gm_root|has|hide|id|if|import|in|init|is|jump|knot|lambda|left|less_rounded|mm_root|movie|music|null|on|onlayer|pass|pause|persistent|play|print|python|queue|raise|random|renpy|repeat|return|right|rounded_window|scene|scope|set|show|slow|slow_abortable|slow_done|sound|stop|store|style|style_group|substitute|suffix|theme|transform|transform_anchor|transpose|try|ui|unhovered|updater|use|voice|while|widget|widget_hover|widget_selected|widget_text|yield)\b/,boolean:/\b(?:[Ff]alse|[Tt]rue)\b/,number:/(?:\b(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?)|\B\.\d+)(?:e[+-]?\d+)?j?/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]|\b(?:and|at|not|or|with)\b/,punctuation:/[{}[\];(),.:]/},e.languages.rpy=e.languages.renpy}t.exports=r,r.displayName="renpy",r.aliases=["rpy"]},19823,(e,t,n)=>{"use strict";function r(e){e.languages.rest={table:[{pattern:/(^[\t ]*)(?:\+[=-]+)+\+(?:\r?\n|\r)(?:\1[+|].+[+|](?:\r?\n|\r))+\1(?:\+[=-]+)+\+/m,lookbehind:!0,inside:{punctuation:/\||(?:\+[=-]+)+\+/}},{pattern:/(^[\t ]*)=+ [ =]*=(?:(?:\r?\n|\r)\1.+)+(?:\r?\n|\r)\1=+ [ =]*=(?=(?:\r?\n|\r){2}|\s*$)/m,lookbehind:!0,inside:{punctuation:/[=-]+/}}],"substitution-def":{pattern:/(^[\t ]*\.\. )\|(?:[^|\s](?:[^|]*[^|\s])?)\| [^:]+::/m,lookbehind:!0,inside:{substitution:{pattern:/^\|(?:[^|\s]|[^|\s][^|]*[^|\s])\|/,alias:"attr-value",inside:{punctuation:/^\||\|$/}},directive:{pattern:/( )(?! )[^:]+::/,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}}}},"link-target":[{pattern:/(^[\t ]*\.\. )\[[^\]]+\]/m,lookbehind:!0,alias:"string",inside:{punctuation:/^\[|\]$/}},{pattern:/(^[\t ]*\.\. )_(?:`[^`]+`|(?:[^:\\]|\\.)+):/m,lookbehind:!0,alias:"string",inside:{punctuation:/^_|:$/}}],directive:{pattern:/(^[\t ]*\.\. )[^:]+::/m,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}},comment:{pattern:/(^[\t ]*\.\.)(?:(?: .+)?(?:(?:\r?\n|\r).+)+| .+)(?=(?:\r?\n|\r){2}|$)/m,lookbehind:!0},title:[{pattern:/^(([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+)(?:\r?\n|\r).+(?:\r?\n|\r)\1$/m,inside:{punctuation:/^[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+|[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}},{pattern:/(^|(?:\r?\n|\r){2}).+(?:\r?\n|\r)([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+(?=\r?\n|\r|$)/,lookbehind:!0,inside:{punctuation:/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}}],hr:{pattern:/((?:\r?\n|\r){2})([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2{3,}(?=(?:\r?\n|\r){2})/,lookbehind:!0,alias:"punctuation"},field:{pattern:/(^[\t ]*):[^:\r\n]+:(?= )/m,lookbehind:!0,alias:"attr-name"},"command-line-option":{pattern:/(^[\t ]*)(?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?(?:, (?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?)*(?=(?:\r?\n|\r)? {2,}\S)/im,lookbehind:!0,alias:"symbol"},"literal-block":{pattern:/::(?:\r?\n|\r){2}([ \t]+)(?![ \t]).+(?:(?:\r?\n|\r)\1.+)*/,inside:{"literal-block-punctuation":{pattern:/^::/,alias:"punctuation"}}},"quoted-literal-block":{pattern:/::(?:\r?\n|\r){2}([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]).*(?:(?:\r?\n|\r)\1.*)*/,inside:{"literal-block-punctuation":{pattern:/^(?:::|([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\1*)/m,alias:"punctuation"}}},"list-bullet":{pattern:/(^[\t ]*)(?:[*+\-•‣⁃]|\(?(?:\d+|[a-z]|[ivxdclm]+)\)|(?:\d+|[a-z]|[ivxdclm]+)\.)(?= )/im,lookbehind:!0,alias:"punctuation"},"doctest-block":{pattern:/(^[\t ]*)>>> .+(?:(?:\r?\n|\r).+)*/m,lookbehind:!0,inside:{punctuation:/^>>>/}},inline:[{pattern:/(^|[\s\-:\/'"<(\[{])(?::[^:]+:`.*?`|`.*?`:[^:]+:|(\*\*?|``?|\|)(?!\s)(?:(?!\2).)*\S\2(?=[\s\-.,:;!?\\\/'")\]}]|$))/m,lookbehind:!0,inside:{bold:{pattern:/(^\*\*).+(?=\*\*$)/,lookbehind:!0},italic:{pattern:/(^\*).+(?=\*$)/,lookbehind:!0},"inline-literal":{pattern:/(^``).+(?=``$)/,lookbehind:!0,alias:"symbol"},role:{pattern:/^:[^:]+:|:[^:]+:$/,alias:"function",inside:{punctuation:/^:|:$/}},"interpreted-text":{pattern:/(^`).+(?=`$)/,lookbehind:!0,alias:"attr-value"},substitution:{pattern:/(^\|).+(?=\|$)/,lookbehind:!0,alias:"attr-value"},punctuation:/\*\*?|``?|\|/}}],link:[{pattern:/\[[^\[\]]+\]_(?=[\s\-.,:;!?\\\/'")\]}]|$)/,alias:"string",inside:{punctuation:/^\[|\]_$/}},{pattern:/(?:\b[a-z\d]+(?:[_.:+][a-z\d]+)*_?_|`[^`]+`_?_|_`[^`]+`)(?=[\s\-.,:;!?\\\/'")\]}]|$)/i,alias:"string",inside:{punctuation:/^_?`|`$|`?_?_$/}}],punctuation:{pattern:/(^[\t ]*)(?:\|(?= |$)|(?:---?|—|\.\.|__)(?= )|\.\.$)/m,lookbehind:!0}}}t.exports=r,r.displayName="rest",r.aliases=[]},108912,(e,t,n)=>{"use strict";function r(e){e.languages.rip={comment:{pattern:/#.*/,greedy:!0},char:{pattern:/\B`[^\s`'",.:;#\/\\()<>\[\]{}]\b/,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},regex:{pattern:/(^|[^/])\/(?!\/)(?:\[[^\n\r\]]*\]|\\.|[^/\\\r\n\[])+\/(?=\s*(?:$|[\r\n,.;})]))/,lookbehind:!0,greedy:!0},keyword:/(?:=>|->)|\b(?:case|catch|class|else|exit|finally|if|raise|return|switch|try)\b/,builtin:/@|\bSystem\b/,boolean:/\b(?:false|true)\b/,date:/\b\d{4}-\d{2}-\d{2}\b/,time:/\b\d{2}:\d{2}:\d{2}\b/,datetime:/\b\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\b/,symbol:/:[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/,number:/[+-]?\b(?:\d+\.\d+|\d+)\b/,punctuation:/(?:\.{2,3})|[`,.:;=\/\\()<>\[\]{}]/,reference:/[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/}}t.exports=r,r.displayName="rip",r.aliases=[]},506593,(e,t,n)=>{"use strict";function r(e){e.languages.roboconf={comment:/#.*/,keyword:{pattern:/(^|\s)(?:(?:external|import)\b|(?:facet|instance of)(?=[ \t]+[\w-]+[ \t]*\{))/,lookbehind:!0},component:{pattern:/[\w-]+(?=[ \t]*\{)/,alias:"variable"},property:/[\w.-]+(?=[ \t]*:)/,value:{pattern:/(=[ \t]*(?![ \t]))[^,;]+/,lookbehind:!0,alias:"attr-value"},optional:{pattern:/\(optional\)/,alias:"builtin"},wildcard:{pattern:/(\.)\*/,lookbehind:!0,alias:"operator"},punctuation:/[{},.;:=]/}}t.exports=r,r.displayName="roboconf",r.aliases=[]},261050,(e,t,n)=>{"use strict";function r(e){!function(e){var t={pattern:/(^[ \t]*| {2}|\t)#.*/m,lookbehind:!0,greedy:!0},n={pattern:/((?:^|[^\\])(?:\\{2})*)[$@&%]\{(?:[^{}\r\n]|\{[^{}\r\n]*\})*\}/,lookbehind:!0,inside:{punctuation:/^[$@&%]\{|\}$/}};function r(e,r){var a={};for(var i in a["section-header"]={pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"},r)a[i]=r[i];return a.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},a.variable=n,a.comment=t,{pattern:RegExp(/^ ?\*{3}[ \t]*<name>[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(/<name>/g,function(){return e}),"im"),alias:"section",inside:a}}var a={pattern:/(\[Documentation\](?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},i={pattern:/([\r\n] ?)(?!#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,alias:"function",inside:{variable:n}},s={pattern:/([\r\n](?: {2}|\t)[ \t]*)(?!\[|\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,inside:{variable:n}};e.languages.robotframework={settings:r("Settings",{documentation:{pattern:/([\r\n] ?Documentation(?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},property:{pattern:/([\r\n] ?)(?!\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0}}),variables:r("Variables"),"test-cases":r("Test Cases",{"test-name":i,documentation:a,property:s}),keywords:r("Keywords",{"keyword-name":i,documentation:a,property:s}),tasks:r("Tasks",{"task-name":i,documentation:a,property:s}),comment:t},e.languages.robot=e.languages.robotframework}(e)}t.exports=r,r.displayName="robotframework",r.aliases=[]},476472,(e,t,n)=>{"use strict";function r(e){for(var t=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,n=0;n<2;n++)t=t.replace(/<self>/g,function(){return t});t=t.replace(/<self>/g,function(){return/[^\s\S]/.source}),e.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+t),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},e.languages.rust["closure-params"].inside.rest=e.languages.rust,e.languages.rust.attribute.inside.string=e.languages.rust.string}t.exports=r,r.displayName="rust",r.aliases=[]},762347,(e,t,n)=>{"use strict";function r(e){var t,n,r,a,i,s,o,l,c,u,d,p,m,h,f,g,b,y;t=/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))/.source,n=/\b(?:\d[\da-f]*x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,r={pattern:RegExp(t+"[bx]"),alias:"number"},i={pattern:/((?:^|\s|=|\())%(?:ABORT|BY|CMS|COPY|DISPLAY|DO|ELSE|END|EVAL|GLOBAL|GO|GOTO|IF|INC|INCLUDE|INDEX|INPUT|KTRIM|LENGTH|LET|LIST|LOCAL|PUT|QKTRIM|QSCAN|QSUBSTR|QSYSFUNC|QUPCASE|RETURN|RUN|SCAN|SUBSTR|SUPERQ|SYMDEL|SYMEXIST|SYMGLOBL|SYMLOCAL|SYSCALL|SYSEVALF|SYSEXEC|SYSFUNC|SYSGET|SYSRPUT|THEN|TO|TSO|UNQUOTE|UNTIL|UPCASE|WHILE|WINDOW)\b/i,lookbehind:!0,alias:"keyword"},s={pattern:/(^|\s)(?:proc\s+\w+|data(?!=)|quit|run)\b/i,alias:"keyword",lookbehind:!0},o=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],d={function:u={pattern:/%?\b\w+(?=\()/,alias:"keyword"},"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":a={pattern:/&[a-z_]\w*/i},arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:n,"numeric-constant":r,punctuation:c=/[$%@.(){}\[\];,\\]/,string:l={pattern:RegExp(t),greedy:!0}},p={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},m={pattern:/\b(?:format|put)\s+[\w']+(?:\s+[$.\w]+)+(?=;)/i,inside:{keyword:/^(?:format|put)/i,format:{pattern:/[\w$]+\.\d?/,alias:"number"}}},h={pattern:/((?:^|\s)=?)(?:catname|checkpoint execute_always|dm|endsas|filename|footnote|%include|libname|%list|lock|missing|options|page|resetline|%run|sasfile|skip|sysecho|title\d?)\b/i,lookbehind:!0,alias:"keyword"},f={pattern:/(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,lookbehind:!0,alias:"keyword"},g=/aStore|accessControl|aggregation|audio|autotune|bayesianNetClassifier|bioMedImage|boolRule|builtins|cardinality|cdm|clustering|conditionalRandomFields|configuration|copula|countreg|dataDiscovery|dataPreprocess|dataSciencePilot|dataStep|decisionTree|deduplication|deepLearn|deepNeural|deepRnn|ds2|ecm|entityRes|espCluster|explainModel|factmac|fastKnn|fcmpact|fedSql|freqTab|gVarCluster|gam|gleam|graphSemiSupLearn|hiddenMarkovModel|hyperGroup|ica|image|iml|kernalPca|langModel|ldaTopic|loadStreams|mbc|mixed|mlTools|modelPublishing|network|neuralNet|nmf|nonParametricBayes|nonlinear|optNetwork|optimization|panel|pca|percentile|phreg|pls|qkb|qlim|quantreg|recommend|regression|reinforcementLearn|robustPca|ruleMining|sampling|sandwich|sccasl|search(?:Analytics)?|sentimentAnalysis|sequence|session(?:Prop)?|severity|simSystem|simple|smartData|sparkEmbeddedProcess|sparseML|spatialreg|spc|stabilityMonitoring|svDataDescription|svm|table|text(?:Filters|Frequency|Mining|Parse|Rule(?:Develop|Score)|Topic|Util)|timeData|transpose|tsInfo|tsReconcile|uniTimeSeries|varReduce/.source,b={pattern:RegExp(/(^|\s)(?:action\s+)?(?:<act>)\.[a-z]+\b[^;]+/.source.replace(/<act>/g,function(){return g}),"i"),lookbehind:!0,inside:{keyword:RegExp(/(?:<act>)\.[a-z]+\b/.source.replace(/<act>/g,function(){return g}),"i"),action:{pattern:/(?:action)/i,alias:"keyword"},comment:o,function:u,"arg-value":d["arg-value"],operator:d.operator,argument:d.arg,number:n,"numeric-constant":r,punctuation:c,string:l}},y={pattern:/((?:^|\s)=?)(?:after|analysis|and|array|barchart|barwidth|begingraph|by|call|cas|cbarline|cfill|class(?:lev)?|close|column|computed?|contains|continue|data(?==)|define|delete|describe|document|do\s+over|do|dol|drop|dul|else|end(?:comp|source)?|entryTitle|eval(?:uate)?|exec(?:ute)?|exit|file(?:name)?|fill(?:attrs)?|flist|fnc|function(?:list)?|global|goto|group(?:by)?|headline|headskip|histogram|if|infile|keep|keylabel|keyword|label|layout|leave|legendlabel|length|libname|loadactionset|merge|midpoints|_?null_|name|noobs|nowd|ods|options|or|otherwise|out(?:put)?|over(?:lay)?|plot|print|put|raise|ranexp|rannor|rbreak|retain|return|select|session|sessref|set|source|statgraph|sum|summarize|table|temp|terminate|then\s+do|then|title\d?|to|var|when|where|xaxisopts|y2axisopts|yaxisopts)\b/i,lookbehind:!0},e.languages.sas={datalines:{pattern:/^([ \t]*)(?:cards|(?:data)?lines);[\s\S]+?^[ \t]*;/im,lookbehind:!0,alias:"string",inside:{keyword:{pattern:/^(?:cards|(?:data)?lines)/i},punctuation:/;/}},"proc-sql":{pattern:/(^proc\s+(?:fed)?sql(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{sql:{pattern:RegExp(/^[ \t]*(?:select|alter\s+table|(?:create|describe|drop)\s+(?:index|table(?:\s+constraints)?|view)|create\s+unique\s+index|insert\s+into|update)(?:<str>|[^;"'])+;/.source.replace(/<str>/g,function(){return t}),"im"),alias:"language-sql",inside:e.languages.sql},"global-statements":h,"sql-statements":{pattern:/(^|\s)(?:disconnect\s+from|begin|commit|exec(?:ute)?|reset|rollback|validate)\b/i,lookbehind:!0,alias:"keyword"},number:n,"numeric-constant":r,punctuation:c,string:l}},"proc-groovy":{pattern:/(^proc\s+groovy(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:o,groovy:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:<str>|[^"'])+?(?=endsubmit;)/.source.replace(/<str>/g,function(){return t}),"im"),lookbehind:!0,alias:"language-groovy",inside:e.languages.groovy},keyword:y,"submit-statement":f,"global-statements":h,number:n,"numeric-constant":r,punctuation:c,string:l}},"proc-lua":{pattern:/(^proc\s+lua(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:o,lua:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:<str>|[^"'])+?(?=endsubmit;)/.source.replace(/<str>/g,function(){return t}),"im"),lookbehind:!0,alias:"language-lua",inside:e.languages.lua},keyword:y,"submit-statement":f,"global-statements":h,number:n,"numeric-constant":r,punctuation:c,string:l}},"proc-cas":{pattern:/(^proc\s+cas(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|quit|data);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:o,"statement-var":{pattern:/((?:^|\s)=?)saveresult\s[^;]+/im,lookbehind:!0,inside:{statement:{pattern:/^saveresult\s+\S+/i,inside:{keyword:/^(?:saveresult)/i}},rest:d}},"cas-actions":b,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:d},step:s,keyword:y,function:u,format:p,altformat:m,"global-statements":h,number:n,"numeric-constant":r,punctuation:c,string:l}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|<str>)+;/.source.replace(/<str>/g,function(){return t}),"im"),lookbehind:!0,inside:d},"macro-keyword":i,"macro-variable":a,"macro-string-functions":{pattern:/((?:^|\s|=))%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)\(.*?(?:[^%]\))/i,lookbehind:!0,inside:{function:{pattern:/%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)/i,alias:"keyword"},"macro-keyword":i,"macro-variable":a,"escaped-char":{pattern:/%['"()<>=¬^~;,#]/},punctuation:c}},"macro-declaration":{pattern:/^%macro[^;]+(?=;)/im,inside:{keyword:/%macro/i}},"macro-end":{pattern:/^%mend[^;]+(?=;)/im,inside:{keyword:/%mend/i}},macro:{pattern:/%_\w+(?=\()/,alias:"keyword"},input:{pattern:/\binput\s[-\w\s/*.$&]+;/i,inside:{input:{alias:"keyword",pattern:/^input/i},comment:o,number:n,"numeric-constant":r}},"options-args":{pattern:/(^options)[-'"|/\\<>*+=:()\w\s]*(?=;)/im,lookbehind:!0,inside:d},"cas-actions":b,comment:o,function:u,format:p,altformat:m,"numeric-constant":r,datetime:{pattern:RegExp(t+"(?:dt?|t)"),alias:"number"},string:l,step:s,keyword:y,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:n,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:c}}t.exports=r,r.displayName="sas",r.aliases=[]},650086,(e,t,n)=>{"use strict";function r(e){var t,n;e.languages.sass=e.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),e.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete e.languages.sass.atrule,t=/\$[-\w]+|#\{\$[-\w]+\}/,n=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}],e.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:t,operator:n}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:t,operator:n,important:e.languages.sass.important}}}),delete e.languages.sass.property,delete e.languages.sass.important,e.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})}t.exports=r,r.displayName="sass",r.aliases=[]},358645,(e,t,n)=>{"use strict";var r=e.r(672637);function a(e){e.register(r),e.languages.scala=e.languages.extend("java",{"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/<-|=>|\b(?:abstract|case|catch|class|def|do|else|extends|final|finally|for|forSome|if|implicit|import|lazy|match|new|null|object|override|package|private|protected|return|sealed|self|super|this|throw|trait|try|type|val|var|while|with|yield)\b/,number:/\b0x(?:[\da-f]*\.)?[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e\d+)?[dfl]?/i,builtin:/\b(?:Any|AnyRef|AnyVal|Boolean|Byte|Char|Double|Float|Int|Long|Nothing|Short|String|Unit)\b/,symbol:/'[^\d\s\\]\w*/}),e.languages.insertBefore("scala","triple-quoted-string",{"string-interpolation":{pattern:/\b[a-z]\w*(?:"""(?:[^$]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*?"""|"(?:[^$"\r\n]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*")/i,greedy:!0,inside:{id:{pattern:/^\w+/,greedy:!0,alias:"function"},escape:{pattern:/\\\$"|\$[$"]/,greedy:!0,alias:"symbol"},interpolation:{pattern:/\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,greedy:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:e.languages.scala}}},string:/[\s\S]+/}}}),delete e.languages.scala["class-name"],delete e.languages.scala.function}t.exports=a,a.displayName="scala",a.aliases=[]},694707,(e,t,n)=>{"use strict";function r(e){e.languages.scss=e.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),e.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),e.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),e.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),e.languages.scss.atrule.inside.rest=e.languages.scss}t.exports=r,r.displayName="scss",r.aliases=[]},591991,(e,t,n)=>{"use strict";var r=e.r(233634);function a(e){var t;e.register(r),t=[/"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/.source,/'[^']*'/.source,/\$'(?:[^'\\]|\\[\s\S])*'/.source,/<<-?\s*(["']?)(\w+)\1\s[\s\S]*?[\r\n]\2/.source].join("|"),e.languages["shell-session"]={command:{pattern:RegExp(/^/.source+"(?:"+/[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+(?::[^\0-\x1F$#%*?"<>:;|]+)?/.source+"|"+/[/~.][^\0-\x1F$#%*?"<>@:;|]*/.source+")?"+/[$#%](?=\s)/.source+/(?:[^\\\r\n \t'"<$]|[ \t](?:(?!#)|#.*$)|\\(?:[^\r]|\r\n?)|\$(?!')|<(?!<)|<<str>>)+/.source.replace(/<<str>>/g,function(){return t}),"m"),greedy:!0,inside:{info:{pattern:/^[^#$%]+/,alias:"punctuation",inside:{user:/^[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+/,punctuation:/:/,path:/[\s\S]+/}},bash:{pattern:/(^[$#%]\s*)\S[\s\S]*/,lookbehind:!0,alias:"language-bash",inside:e.languages.bash},"shell-symbol":{pattern:/^[$#%]/,alias:"important"}}},output:/.(?:.*(?:[\r\n]|.$))*/},e.languages["sh-session"]=e.languages.shellsession=e.languages["shell-session"]}t.exports=a,a.displayName="shellSession",a.aliases=[]},864488,(e,t,n)=>{"use strict";function r(e){e.languages.smali={comment:/#.*/,string:{pattern:/"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\(?:.|u[\da-fA-F]{4}))'/,greedy:!0},"class-name":{pattern:/(^|[^L])L(?:(?:\w+|`[^`\r\n]*`)\/)*(?:[\w$]+|`[^`\r\n]*`)(?=\s*;)/,lookbehind:!0,inside:{"class-name":{pattern:/(^L|\/)(?:[\w$]+|`[^`\r\n]*`)$/,lookbehind:!0},namespace:{pattern:/^(L)(?:(?:\w+|`[^`\r\n]*`)\/)+/,lookbehind:!0,inside:{punctuation:/\//}},builtin:/^L/}},builtin:[{pattern:/([();\[])[BCDFIJSVZ]+/,lookbehind:!0},{pattern:/([\w$>]:)[BCDFIJSVZ]/,lookbehind:!0}],keyword:[{pattern:/(\.end\s+)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])\.(?!\d)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])(?:abstract|annotation|bridge|constructor|enum|final|interface|private|protected|public|runtime|static|synthetic|system|transient)(?![\w.-])/,lookbehind:!0}],function:{pattern:/(^|[^\w.-])(?:\w+|<[\w$-]+>)(?=\()/,lookbehind:!0},field:{pattern:/[\w$]+(?=:)/,alias:"variable"},register:{pattern:/(^|[^\w.-])[vp]\d(?![\w.-])/,lookbehind:!0,alias:"variable"},boolean:{pattern:/(^|[^\w.-])(?:false|true)(?![\w.-])/,lookbehind:!0},number:{pattern:/(^|[^/\w.-])-?(?:NAN|INFINITY|0x(?:[\dA-F]+(?:\.[\dA-F]*)?|\.[\dA-F]+)(?:p[+-]?[\dA-F]+)?|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)[dflst]?(?![\w.-])/i,lookbehind:!0},label:{pattern:/(:)\w+/,lookbehind:!0,alias:"property"},operator:/->|\.\.|[\[=]/,punctuation:/[{}(),;:]/}}t.exports=r,r.displayName="smali",r.aliases=[]},223592,(e,t,n)=>{"use strict";function r(e){e.languages.smalltalk={comment:{pattern:/"(?:""|[^"])*"/,greedy:!0},char:{pattern:/\$./,greedy:!0},string:{pattern:/'(?:''|[^'])*'/,greedy:!0},symbol:/#[\da-z]+|#(?:-|([+\/\\*~<>=@%|&?!])\1?)|#(?=\()/i,"block-arguments":{pattern:/(\[\s*):[^\[|]*\|/,lookbehind:!0,inside:{variable:/:[\da-z]+/i,punctuation:/\|/}},"temporary-variables":{pattern:/\|[^|]+\|/,inside:{variable:/[\da-z]+/i,punctuation:/\|/}},keyword:/\b(?:new|nil|self|super)\b/,boolean:/\b(?:false|true)\b/,number:[/\d+r-?[\dA-Z]+(?:\.[\dA-Z]+)?(?:e-?\d+)?/,/\b\d+(?:\.\d+)?(?:e-?\d+)?/],operator:/[<=]=?|:=|~[~=]|\/\/?|\\\\|>[>=]?|[!^+\-*&|,@]/,punctuation:/[.;:?\[\](){}]/}}t.exports=r,r.displayName="smalltalk",r.aliases=[]},935950,(e,t,n)=>{"use strict";var r=e.r(426226);function a(e){var t,n;e.register(r),e.languages.smarty={comment:{pattern:/^\{\*[\s\S]*?\*\}/,greedy:!0},"embedded-php":{pattern:/^\{php\}[\s\S]*?\{\/php\}/,greedy:!0,inside:{smarty:{pattern:/^\{php\}|\{\/php\}$/,inside:null},php:{pattern:/[\s\S]+/,alias:"language-php",inside:e.languages.php}}},string:[{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0,inside:{interpolation:{pattern:/\{[^{}]*\}|`[^`]*`/,inside:{"interpolation-punctuation":{pattern:/^[{`]|[`}]$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},variable:/\$\w+/}},{pattern:/'(?:\\.|[^'\\\r\n])*'/,greedy:!0}],keyword:{pattern:/(^\{\/?)[a-z_]\w*\b(?!\()/i,lookbehind:!0,greedy:!0},delimiter:{pattern:/^\{\/?|\}$/,greedy:!0,alias:"punctuation"},number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,variable:[/\$(?!\d)\w+/,/#(?!\d)\w+#/,{pattern:/(\.|->|\w\s*=)(?!\d)\w+\b(?!\()/,lookbehind:!0},{pattern:/(\[)(?!\d)\w+(?=\])/,lookbehind:!0}],function:{pattern:/(\|\s*)@?[a-z_]\w*|\b[a-z_]\w*(?=\()/i,lookbehind:!0},"attr-name":/\b[a-z_]\w*(?=\s*=)/i,boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\[\](){}.,:`]|->/,operator:[/[+\-*\/%]|==?=?|[!<>]=?|&&|\|\|?/,/\bis\s+(?:not\s+)?(?:div|even|odd)(?:\s+by)?\b/,/\b(?:and|eq|gt?e|gt|lt?e|lt|mod|neq?|not|or)\b/]},e.languages.smarty["embedded-php"].inside.smarty.inside=e.languages.smarty,e.languages.smarty.string[0].inside.interpolation.inside.expression.inside=e.languages.smarty,t=/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,n=RegExp(/\{\*[\s\S]*?\*\}/.source+"|"+/\{php\}[\s\S]*?\{\/php\}/.source+"|"+/\{(?:[^{}"']|<str>|\{(?:[^{}"']|<str>|\{(?:[^{}"']|<str>)*\})*\})*\}/.source.replace(/<str>/g,function(){return t.source}),"g"),e.hooks.add("before-tokenize",function(t){var r=!1;e.languages["markup-templating"].buildPlaceholders(t,"smarty",n,function(e){return"{/literal}"===e&&(r=!1),!r&&("{literal}"===e&&(r=!0),!0)})}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"smarty")})}t.exports=a,a.displayName="smarty",a.aliases=[]},888705,(e,t,n)=>{"use strict";function r(e){var t;t=/\b(?:abstype|and|andalso|as|case|datatype|do|else|end|eqtype|exception|fn|fun|functor|handle|if|in|include|infix|infixr|let|local|nonfix|of|op|open|orelse|raise|rec|sharing|sig|signature|struct|structure|then|type|val|where|while|with|withtype)\b/i,e.languages.sml={comment:/\(\*(?:[^*(]|\*(?!\))|\((?!\*)|\(\*(?:[^*(]|\*(?!\))|\((?!\*))*\*\))*\*\)/,string:{pattern:/#?"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":[{pattern:RegExp(/((?:^|[^:]):\s*)<TERMINAL>(?:\s*(?:(?:\*|->)\s*<TERMINAL>|,\s*<TERMINAL>(?:(?=<NOT-LAST>)|(?!<NOT-LAST>)\s+<LONG-ID>)))*/.source.replace(/<NOT-LAST>/g,function(){return/\s*(?:[*,]|->)/.source}).replace(/<TERMINAL>/g,function(){return/(?:'[\w']*|<LONG-ID>|\((?:[^()]|\([^()]*\))*\)|\{(?:[^{}]|\{[^{}]*\})*\})(?:\s+<LONG-ID>)*/.source}).replace(/<LONG-ID>/g,function(){return/(?!<KEYWORD>)[a-z\d_][\w'.]*/.source}).replace(/<KEYWORD>/g,function(){return t.source}),"i"),lookbehind:!0,greedy:!0,inside:null},{pattern:/((?:^|[^\w'])(?:datatype|exception|functor|signature|structure|type)\s+)[a-z_][\w'.]*/i,lookbehind:!0}],function:{pattern:/((?:^|[^\w'])fun\s+)[a-z_][\w'.]*/i,lookbehind:!0},keyword:t,variable:{pattern:/(^|[^\w'])'[\w']*/,lookbehind:!0},number:/~?\b(?:\d+(?:\.\d+)?(?:e~?\d+)?|0x[\da-f]+)\b/i,word:{pattern:/\b0w(?:\d+|x[\da-f]+)\b/i,alias:"constant"},boolean:/\b(?:false|true)\b/i,operator:/\.\.\.|:[>=:]|=>?|->|[<>]=?|[!+\-*/^#|@~]/,punctuation:/[(){}\[\].:,;]/},e.languages.sml["class-name"][0].inside=e.languages.sml,e.languages.smlnj=e.languages.sml}t.exports=r,r.displayName="sml",r.aliases=["smlnj"]},30864,(e,t,n)=>{"use strict";function r(e){e.languages.solidity=e.languages.extend("clike",{"class-name":{pattern:/(\b(?:contract|enum|interface|library|new|struct|using)\s+)(?!\d)[\w$]+/,lookbehind:!0},keyword:/\b(?:_|anonymous|as|assembly|assert|break|calldata|case|constant|constructor|continue|contract|default|delete|do|else|emit|enum|event|external|for|from|function|if|import|indexed|inherited|interface|internal|is|let|library|mapping|memory|modifier|new|payable|pragma|private|public|pure|require|returns?|revert|selfdestruct|solidity|storage|struct|suicide|switch|this|throw|using|var|view|while)\b/,operator:/=>|->|:=|=:|\*\*|\+\+|--|\|\||&&|<<=?|>>=?|[-+*/%^&|<>!=]=?|[~?]/}),e.languages.insertBefore("solidity","keyword",{builtin:/\b(?:address|bool|byte|u?int(?:8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?|string|bytes(?:[1-9]|[12]\d|3[0-2])?)\b/}),e.languages.insertBefore("solidity","number",{version:{pattern:/([<>]=?|\^)\d+\.\d+\.\d+\b/,lookbehind:!0,alias:"number"}}),e.languages.sol=e.languages.solidity}t.exports=r,r.displayName="solidity",r.aliases=["sol"]},285035,(e,t,n)=>{"use strict";function r(e){var t;t={pattern:/\{[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}\}/i,alias:"constant",inside:{punctuation:/[{}]/}},e.languages["solution-file"]={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0,inside:{guid:t}},object:{pattern:/^([ \t]*)(?:([A-Z]\w*)\b(?=.*(?:\r\n?|\n)(?:\1[ \t].*(?:\r\n?|\n))*\1End\2(?=[ \t]*$))|End[A-Z]\w*(?=[ \t]*$))/m,lookbehind:!0,greedy:!0,alias:"keyword"},property:{pattern:/^([ \t]*)(?!\s)[^\r\n"#=()]*[^\s"#=()](?=\s*=)/m,lookbehind:!0,inside:{guid:t}},guid:t,number:/\b\d+(?:\.\d+)*\b/,boolean:/\b(?:FALSE|TRUE)\b/,operator:/=/,punctuation:/[(),]/},e.languages.sln=e.languages["solution-file"]}t.exports=r,r.displayName="solutionFile",r.aliases=[]},668391,(e,t,n)=>{"use strict";var r=e.r(426226);function a(e){var t,n;e.register(r),t=/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,n=/\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-F]+\b/,e.languages.soy={comment:[/\/\*[\s\S]*?\*\//,{pattern:/(\s)\/\/.*/,lookbehind:!0,greedy:!0}],"command-arg":{pattern:/(\{+\/?\s*(?:alias|call|delcall|delpackage|deltemplate|namespace|template)\s+)\.?[\w.]+/,lookbehind:!0,alias:"string",inside:{punctuation:/\./}},parameter:{pattern:/(\{+\/?\s*@?param\??\s+)\.?[\w.]+/,lookbehind:!0,alias:"variable"},keyword:[{pattern:/(\{+\/?[^\S\r\n]*)(?:\\[nrt]|alias|call|case|css|default|delcall|delpackage|deltemplate|else(?:if)?|fallbackmsg|for(?:each)?|if(?:empty)?|lb|let|literal|msg|namespace|nil|@?param\??|rb|sp|switch|template|xid)/,lookbehind:!0},/\b(?:any|as|attributes|bool|css|float|html|in|int|js|list|map|null|number|string|uri)\b/],delimiter:{pattern:/^\{+\/?|\/?\}+$/,alias:"punctuation"},property:/\w+(?==)/,variable:{pattern:/\$[^\W\d]\w*(?:\??(?:\.\w+|\[[^\]]+\]))*/,inside:{string:{pattern:t,greedy:!0},number:n,punctuation:/[\[\].?]/}},string:{pattern:t,greedy:!0},function:[/\w+(?=\()/,{pattern:/(\|[^\S\r\n]*)\w+/,lookbehind:!0}],boolean:/\b(?:false|true)\b/,number:n,operator:/\?:?|<=?|>=?|==?|!=|[+*/%-]|\b(?:and|not|or)\b/,punctuation:/[{}()\[\]|.,:]/},e.hooks.add("before-tokenize",function(t){var n=!1;e.languages["markup-templating"].buildPlaceholders(t,"soy",/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,function(e){return"{/literal}"===e&&(n=!1),!n&&("{literal}"===e&&(n=!0),!0)})}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"soy")})}t.exports=a,a.displayName="soy",a.aliases=[]},834341,(e,t,n)=>{"use strict";function r(e){e.languages.turtle={comment:{pattern:/#.*/,greedy:!0},"multiline-string":{pattern:/"""(?:(?:""?)?(?:[^"\\]|\\.))*"""|'''(?:(?:''?)?(?:[^'\\]|\\.))*'''/,greedy:!0,alias:"string",inside:{comment:/#.*/}},string:{pattern:/"(?:[^\\"\r\n]|\\.)*"|'(?:[^\\'\r\n]|\\.)*'/,greedy:!0},url:{pattern:/<(?:[^\x00-\x20<>"{}|^`\\]|\\(?:u[\da-fA-F]{4}|U[\da-fA-F]{8}))*>/,greedy:!0,inside:{punctuation:/[<>]/}},function:{pattern:/(?:(?![-.\d\xB7])[-.\w\xB7\xC0-\uFFFD]+)?:(?:(?![-.])(?:[-.:\w\xC0-\uFFFD]|%[\da-f]{2}|\\.)+)?/i,inside:{"local-name":{pattern:/([^:]*:)[\s\S]+/,lookbehind:!0},prefix:{pattern:/[\s\S]+/,inside:{punctuation:/:/}}}},number:/[+-]?\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[{}.,;()[\]]|\^\^/,boolean:/\b(?:false|true)\b/,keyword:[/(?:\ba|@prefix|@base)\b|=/,/\b(?:base|graph|prefix)\b/i],tag:{pattern:/@[a-z]+(?:-[a-z\d]+)*/i,inside:{punctuation:/@/}}},e.languages.trig=e.languages.turtle}t.exports=r,r.displayName="turtle",r.aliases=[]},46802,(e,t,n)=>{"use strict";var r=e.r(834341);function a(e){e.register(r),e.languages.sparql=e.languages.extend("turtle",{boolean:/\b(?:false|true)\b/i,variable:{pattern:/[?$]\w+/,greedy:!0}}),e.languages.insertBefore("sparql","punctuation",{keyword:[/\b(?:A|ADD|ALL|AS|ASC|ASK|BNODE|BY|CLEAR|CONSTRUCT|COPY|CREATE|DATA|DEFAULT|DELETE|DESC|DESCRIBE|DISTINCT|DROP|EXISTS|FILTER|FROM|GROUP|HAVING|INSERT|INTO|LIMIT|LOAD|MINUS|MOVE|NAMED|NOT|NOW|OFFSET|OPTIONAL|ORDER|RAND|REDUCED|SELECT|SEPARATOR|SERVICE|SILENT|STRUUID|UNION|USING|UUID|VALUES|WHERE)\b/i,/\b(?:ABS|AVG|BIND|BOUND|CEIL|COALESCE|CONCAT|CONTAINS|COUNT|DATATYPE|DAY|ENCODE_FOR_URI|FLOOR|GROUP_CONCAT|HOURS|IF|IRI|isBLANK|isIRI|isLITERAL|isNUMERIC|isURI|LANG|LANGMATCHES|LCASE|MAX|MD5|MIN|MINUTES|MONTH|REGEX|REPLACE|ROUND|sameTerm|SAMPLE|SECONDS|SHA1|SHA256|SHA384|SHA512|STR|STRAFTER|STRBEFORE|STRDT|STRENDS|STRLANG|STRLEN|STRSTARTS|SUBSTR|SUM|TIMEZONE|TZ|UCASE|URI|YEAR)\b(?=\s*\()/i,/\b(?:BASE|GRAPH|PREFIX)\b/i]}),e.languages.rq=e.languages.sparql}t.exports=a,a.displayName="sparql",a.aliases=["rq"]},424105,(e,t,n)=>{"use strict";function r(e){e.languages["splunk-spl"]={comment:/`comment\("(?:\\.|[^\\"])*"\)`/,string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0},keyword:/\b(?:abstract|accum|addcoltotals|addinfo|addtotals|analyzefields|anomalies|anomalousvalue|anomalydetection|append|appendcols|appendcsv|appendlookup|appendpipe|arules|associate|audit|autoregress|bin|bucket|bucketdir|chart|cluster|cofilter|collect|concurrency|contingency|convert|correlate|datamodel|dbinspect|dedup|delete|delta|diff|erex|eval|eventcount|eventstats|extract|fieldformat|fields|fieldsummary|filldown|fillnull|findtypes|folderize|foreach|format|from|gauge|gentimes|geom|geomfilter|geostats|head|highlight|history|iconify|input|inputcsv|inputlookup|iplocation|join|kmeans|kv|kvform|loadjob|localize|localop|lookup|makecontinuous|makemv|makeresults|map|mcollect|metadata|metasearch|meventcollect|mstats|multikv|multisearch|mvcombine|mvexpand|nomv|outlier|outputcsv|outputlookup|outputtext|overlap|pivot|predict|rangemap|rare|regex|relevancy|reltime|rename|replace|rest|return|reverse|rex|rtorder|run|savedsearch|script|scrub|search|searchtxn|selfjoin|sendemail|set|setfields|sichart|sirare|sistats|sitimechart|sitop|sort|spath|stats|strcat|streamstats|table|tags|tail|timechart|timewrap|top|transaction|transpose|trendline|tscollect|tstats|typeahead|typelearner|typer|union|uniq|untable|where|x11|xmlkv|xmlunescape|xpath|xyseries)\b/i,"operator-word":{pattern:/\b(?:and|as|by|not|or|xor)\b/i,alias:"operator"},function:/\b\w+(?=\s*\()/,property:/\b\w+(?=\s*=(?!=))/,date:{pattern:/\b\d{1,2}\/\d{1,2}\/\d{1,4}(?:(?::\d{1,2}){3})?\b/,alias:"number"},number:/\b\d+(?:\.\d+)?\b/,boolean:/\b(?:f|false|t|true)\b/i,operator:/[<>=]=?|[-+*/%|]/,punctuation:/[()[\],]/}}t.exports=r,r.displayName="splunkSpl",r.aliases=[]},772339,(e,t,n)=>{"use strict";function r(e){e.languages.sqf=e.languages.extend("clike",{string:{pattern:/"(?:(?:"")?[^"])*"(?!")|'(?:[^'])*'/,greedy:!0},keyword:/\b(?:breakOut|breakTo|call|case|catch|default|do|echo|else|execFSM|execVM|exitWith|for|forEach|forEachMember|forEachMemberAgent|forEachMemberTeam|from|goto|if|nil|preprocessFile|preprocessFileLineNumbers|private|scopeName|spawn|step|switch|then|throw|to|try|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?:abs|accTime|acos|action|actionIDs|actionKeys|actionKeysImages|actionKeysNames|actionKeysNamesArray|actionName|actionParams|activateAddons|activatedAddons|activateKey|add3DENConnection|add3DENEventHandler|add3DENLayer|addAction|addBackpack|addBackpackCargo|addBackpackCargoGlobal|addBackpackGlobal|addCamShake|addCuratorAddons|addCuratorCameraArea|addCuratorEditableObjects|addCuratorEditingArea|addCuratorPoints|addEditorObject|addEventHandler|addForce|addForceGeneratorRTD|addGoggles|addGroupIcon|addHandgunItem|addHeadgear|addItem|addItemCargo|addItemCargoGlobal|addItemPool|addItemToBackpack|addItemToUniform|addItemToVest|addLiveStats|addMagazine|addMagazineAmmoCargo|addMagazineCargo|addMagazineCargoGlobal|addMagazineGlobal|addMagazinePool|addMagazines|addMagazineTurret|addMenu|addMenuItem|addMissionEventHandler|addMPEventHandler|addMusicEventHandler|addOwnedMine|addPlayerScores|addPrimaryWeaponItem|addPublicVariableEventHandler|addRating|addResources|addScore|addScoreSide|addSecondaryWeaponItem|addSwitchableUnit|addTeamMember|addToRemainsCollector|addTorque|addUniform|addVehicle|addVest|addWaypoint|addWeapon|addWeaponCargo|addWeaponCargoGlobal|addWeaponGlobal|addWeaponItem|addWeaponPool|addWeaponTurret|admin|agent|agents|AGLToASL|aimedAtTarget|aimPos|airDensityCurveRTD|airDensityRTD|airplaneThrottle|airportSide|AISFinishHeal|alive|all3DENEntities|allAirports|allControls|allCurators|allCutLayers|allDead|allDeadMen|allDisplays|allGroups|allMapMarkers|allMines|allMissionObjects|allow3DMode|allowCrewInImmobile|allowCuratorLogicIgnoreAreas|allowDamage|allowDammage|allowFileOperations|allowFleeing|allowGetIn|allowSprint|allPlayers|allSimpleObjects|allSites|allTurrets|allUnits|allUnitsUAV|allVariables|ammo|ammoOnPylon|animate|animateBay|animateDoor|animatePylon|animateSource|animationNames|animationPhase|animationSourcePhase|animationState|append|apply|armoryPoints|arrayIntersect|asin|ASLToAGL|ASLToATL|assert|assignAsCargo|assignAsCargoIndex|assignAsCommander|assignAsDriver|assignAsGunner|assignAsTurret|assignCurator|assignedCargo|assignedCommander|assignedDriver|assignedGunner|assignedItems|assignedTarget|assignedTeam|assignedVehicle|assignedVehicleRole|assignItem|assignTeam|assignToAirport|atan|atan2|atg|ATLToASL|attachedObject|attachedObjects|attachedTo|attachObject|attachTo|attackEnabled|backpack|backpackCargo|backpackContainer|backpackItems|backpackMagazines|backpackSpaceFor|behaviour|benchmark|binocular|blufor|boundingBox|boundingBoxReal|boundingCenter|briefingName|buildingExit|buildingPos|buldozer_EnableRoadDiag|buldozer_IsEnabledRoadDiag|buldozer_LoadNewRoads|buldozer_reloadOperMap|buttonAction|buttonSetAction|cadetMode|callExtension|camCommand|camCommit|camCommitPrepared|camCommitted|camConstuctionSetParams|camCreate|camDestroy|cameraEffect|cameraEffectEnableHUD|cameraInterest|cameraOn|cameraView|campaignConfigFile|camPreload|camPreloaded|camPrepareBank|camPrepareDir|camPrepareDive|camPrepareFocus|camPrepareFov|camPrepareFovRange|camPreparePos|camPrepareRelPos|camPrepareTarget|camSetBank|camSetDir|camSetDive|camSetFocus|camSetFov|camSetFovRange|camSetPos|camSetRelPos|camSetTarget|camTarget|camUseNVG|canAdd|canAddItemToBackpack|canAddItemToUniform|canAddItemToVest|cancelSimpleTaskDestination|canFire|canMove|canSlingLoad|canStand|canSuspend|canTriggerDynamicSimulation|canUnloadInCombat|canVehicleCargo|captive|captiveNum|cbChecked|cbSetChecked|ceil|channelEnabled|cheatsEnabled|checkAIFeature|checkVisibility|civilian|className|clear3DENAttribute|clear3DENInventory|clearAllItemsFromBackpack|clearBackpackCargo|clearBackpackCargoGlobal|clearForcesRTD|clearGroupIcons|clearItemCargo|clearItemCargoGlobal|clearItemPool|clearMagazineCargo|clearMagazineCargoGlobal|clearMagazinePool|clearOverlay|clearRadio|clearVehicleInit|clearWeaponCargo|clearWeaponCargoGlobal|clearWeaponPool|clientOwner|closeDialog|closeDisplay|closeOverlay|collapseObjectTree|collect3DENHistory|collectiveRTD|combatMode|commandArtilleryFire|commandChat|commander|commandFire|commandFollow|commandFSM|commandGetOut|commandingMenu|commandMove|commandRadio|commandStop|commandSuppressiveFire|commandTarget|commandWatch|comment|commitOverlay|compile|compileFinal|completedFSM|composeText|configClasses|configFile|configHierarchy|configName|configNull|configProperties|configSourceAddonList|configSourceMod|configSourceModList|confirmSensorTarget|connectTerminalToUAV|controlNull|controlsGroupCtrl|copyFromClipboard|copyToClipboard|copyWaypoints|cos|count|countEnemy|countFriendly|countSide|countType|countUnknown|create3DENComposition|create3DENEntity|createAgent|createCenter|createDialog|createDiaryLink|createDiaryRecord|createDiarySubject|createDisplay|createGearDialog|createGroup|createGuardedPoint|createLocation|createMarker|createMarkerLocal|createMenu|createMine|createMissionDisplay|createMPCampaignDisplay|createSimpleObject|createSimpleTask|createSite|createSoundSource|createTask|createTeam|createTrigger|createUnit|createVehicle|createVehicleCrew|createVehicleLocal|crew|ctAddHeader|ctAddRow|ctClear|ctCurSel|ctData|ctFindHeaderRows|ctFindRowHeader|ctHeaderControls|ctHeaderCount|ctRemoveHeaders|ctRemoveRows|ctrlActivate|ctrlAddEventHandler|ctrlAngle|ctrlAutoScrollDelay|ctrlAutoScrollRewind|ctrlAutoScrollSpeed|ctrlChecked|ctrlClassName|ctrlCommit|ctrlCommitted|ctrlCreate|ctrlDelete|ctrlEnable|ctrlEnabled|ctrlFade|ctrlHTMLLoaded|ctrlIDC|ctrlIDD|ctrlMapAnimAdd|ctrlMapAnimClear|ctrlMapAnimCommit|ctrlMapAnimDone|ctrlMapCursor|ctrlMapMouseOver|ctrlMapScale|ctrlMapScreenToWorld|ctrlMapWorldToScreen|ctrlModel|ctrlModelDirAndUp|ctrlModelScale|ctrlParent|ctrlParentControlsGroup|ctrlPosition|ctrlRemoveAllEventHandlers|ctrlRemoveEventHandler|ctrlScale|ctrlSetActiveColor|ctrlSetAngle|ctrlSetAutoScrollDelay|ctrlSetAutoScrollRewind|ctrlSetAutoScrollSpeed|ctrlSetBackgroundColor|ctrlSetChecked|ctrlSetDisabledColor|ctrlSetEventHandler|ctrlSetFade|ctrlSetFocus|ctrlSetFont|ctrlSetFontH1|ctrlSetFontH1B|ctrlSetFontH2|ctrlSetFontH2B|ctrlSetFontH3|ctrlSetFontH3B|ctrlSetFontH4|ctrlSetFontH4B|ctrlSetFontH5|ctrlSetFontH5B|ctrlSetFontH6|ctrlSetFontH6B|ctrlSetFontHeight|ctrlSetFontHeightH1|ctrlSetFontHeightH2|ctrlSetFontHeightH3|ctrlSetFontHeightH4|ctrlSetFontHeightH5|ctrlSetFontHeightH6|ctrlSetFontHeightSecondary|ctrlSetFontP|ctrlSetFontPB|ctrlSetFontSecondary|ctrlSetForegroundColor|ctrlSetModel|ctrlSetModelDirAndUp|ctrlSetModelScale|ctrlSetPixelPrecision|ctrlSetPosition|ctrlSetScale|ctrlSetStructuredText|ctrlSetText|ctrlSetTextColor|ctrlSetTextColorSecondary|ctrlSetTextSecondary|ctrlSetTooltip|ctrlSetTooltipColorBox|ctrlSetTooltipColorShade|ctrlSetTooltipColorText|ctrlShow|ctrlShown|ctrlText|ctrlTextHeight|ctrlTextSecondary|ctrlTextWidth|ctrlType|ctrlVisible|ctRowControls|ctRowCount|ctSetCurSel|ctSetData|ctSetHeaderTemplate|ctSetRowTemplate|ctSetValue|ctValue|curatorAddons|curatorCamera|curatorCameraArea|curatorCameraAreaCeiling|curatorCoef|curatorEditableObjects|curatorEditingArea|curatorEditingAreaType|curatorMouseOver|curatorPoints|curatorRegisteredObjects|curatorSelected|curatorWaypointCost|current3DENOperation|currentChannel|currentCommand|currentMagazine|currentMagazineDetail|currentMagazineDetailTurret|currentMagazineTurret|currentMuzzle|currentNamespace|currentTask|currentTasks|currentThrowable|currentVisionMode|currentWaypoint|currentWeapon|currentWeaponMode|currentWeaponTurret|currentZeroing|cursorObject|cursorTarget|customChat|customRadio|cutFadeOut|cutObj|cutRsc|cutText|damage|date|dateToNumber|daytime|deActivateKey|debriefingText|debugFSM|debugLog|deg|delete3DENEntities|deleteAt|deleteCenter|deleteCollection|deleteEditorObject|deleteGroup|deleteGroupWhenEmpty|deleteIdentity|deleteLocation|deleteMarker|deleteMarkerLocal|deleteRange|deleteResources|deleteSite|deleteStatus|deleteTeam|deleteVehicle|deleteVehicleCrew|deleteWaypoint|detach|detectedMines|diag_activeMissionFSMs|diag_activeScripts|diag_activeSQFScripts|diag_activeSQSScripts|diag_captureFrame|diag_captureFrameToFile|diag_captureSlowFrame|diag_codePerformance|diag_drawMode|diag_dynamicSimulationEnd|diag_enable|diag_enabled|diag_fps|diag_fpsMin|diag_frameNo|diag_lightNewLoad|diag_list|diag_log|diag_logSlowFrame|diag_mergeConfigFile|diag_recordTurretLimits|diag_setLightNew|diag_tickTime|diag_toggle|dialog|diarySubjectExists|didJIP|didJIPOwner|difficulty|difficultyEnabled|difficultyEnabledRTD|difficultyOption|direction|directSay|disableAI|disableCollisionWith|disableConversation|disableDebriefingStats|disableMapIndicators|disableNVGEquipment|disableRemoteSensors|disableSerialization|disableTIEquipment|disableUAVConnectability|disableUserInput|displayAddEventHandler|displayCtrl|displayNull|displayParent|displayRemoveAllEventHandlers|displayRemoveEventHandler|displaySetEventHandler|dissolveTeam|distance|distance2D|distanceSqr|distributionRegion|do3DENAction|doArtilleryFire|doFire|doFollow|doFSM|doGetOut|doMove|doorPhase|doStop|doSuppressiveFire|doTarget|doWatch|drawArrow|drawEllipse|drawIcon|drawIcon3D|drawLine|drawLine3D|drawLink|drawLocation|drawPolygon|drawRectangle|drawTriangle|driver|drop|dynamicSimulationDistance|dynamicSimulationDistanceCoef|dynamicSimulationEnabled|dynamicSimulationSystemEnabled|east|edit3DENMissionAttributes|editObject|editorSetEventHandler|effectiveCommander|emptyPositions|enableAI|enableAIFeature|enableAimPrecision|enableAttack|enableAudioFeature|enableAutoStartUpRTD|enableAutoTrimRTD|enableCamShake|enableCaustics|enableChannel|enableCollisionWith|enableCopilot|enableDebriefingStats|enableDiagLegend|enableDynamicSimulation|enableDynamicSimulationSystem|enableEndDialog|enableEngineArtillery|enableEnvironment|enableFatigue|enableGunLights|enableInfoPanelComponent|enableIRLasers|enableMimics|enablePersonTurret|enableRadio|enableReload|enableRopeAttach|enableSatNormalOnDetail|enableSaving|enableSentences|enableSimulation|enableSimulationGlobal|enableStamina|enableStressDamage|enableTeamSwitch|enableTraffic|enableUAVConnectability|enableUAVWaypoints|enableVehicleCargo|enableVehicleSensor|enableWeaponDisassembly|endl|endLoadingScreen|endMission|engineOn|enginesIsOnRTD|enginesPowerRTD|enginesRpmRTD|enginesTorqueRTD|entities|environmentEnabled|estimatedEndServerTime|estimatedTimeLeft|evalObjectArgument|everyBackpack|everyContainer|exec|execEditorScript|exp|expectedDestination|exportJIPMessages|eyeDirection|eyePos|face|faction|fadeMusic|fadeRadio|fadeSound|fadeSpeech|failMission|fillWeaponsFromPool|find|findCover|findDisplay|findEditorObject|findEmptyPosition|findEmptyPositionReady|findIf|findNearestEnemy|finishMissionInit|finite|fire|fireAtTarget|firstBackpack|flag|flagAnimationPhase|flagOwner|flagSide|flagTexture|fleeing|floor|flyInHeight|flyInHeightASL|fog|fogForecast|fogParams|forceAddUniform|forceAtPositionRTD|forcedMap|forceEnd|forceFlagTexture|forceFollowRoad|forceGeneratorRTD|forceMap|forceRespawn|forceSpeed|forceWalk|forceWeaponFire|forceWeatherChange|forgetTarget|format|formation|formationDirection|formationLeader|formationMembers|formationPosition|formationTask|formatText|formLeader|freeLook|fromEditor|fuel|fullCrew|gearIDCAmmoCount|gearSlotAmmoCount|gearSlotData|get3DENActionState|get3DENAttribute|get3DENCamera|get3DENConnections|get3DENEntity|get3DENEntityID|get3DENGrid|get3DENIconsVisible|get3DENLayerEntities|get3DENLinesVisible|get3DENMissionAttribute|get3DENMouseOver|get3DENSelected|getAimingCoef|getAllEnvSoundControllers|getAllHitPointsDamage|getAllOwnedMines|getAllSoundControllers|getAmmoCargo|getAnimAimPrecision|getAnimSpeedCoef|getArray|getArtilleryAmmo|getArtilleryComputerSettings|getArtilleryETA|getAssignedCuratorLogic|getAssignedCuratorUnit|getBackpackCargo|getBleedingRemaining|getBurningValue|getCameraViewDirection|getCargoIndex|getCenterOfMass|getClientState|getClientStateNumber|getCompatiblePylonMagazines|getConnectedUAV|getContainerMaxLoad|getCursorObjectParams|getCustomAimCoef|getDammage|getDescription|getDir|getDirVisual|getDLCAssetsUsage|getDLCAssetsUsageByName|getDLCs|getDLCUsageTime|getEditorCamera|getEditorMode|getEditorObjectScope|getElevationOffset|getEngineTargetRpmRTD|getEnvSoundController|getFatigue|getFieldManualStartPage|getForcedFlagTexture|getFriend|getFSMVariable|getFuelCargo|getGroupIcon|getGroupIconParams|getGroupIcons|getHideFrom|getHit|getHitIndex|getHitPointDamage|getItemCargo|getMagazineCargo|getMarkerColor|getMarkerPos|getMarkerSize|getMarkerType|getMass|getMissionConfig|getMissionConfigValue|getMissionDLCs|getMissionLayerEntities|getMissionLayers|getModelInfo|getMousePosition|getMusicPlayedTime|getNumber|getObjectArgument|getObjectChildren|getObjectDLC|getObjectMaterials|getObjectProxy|getObjectTextures|getObjectType|getObjectViewDistance|getOxygenRemaining|getPersonUsedDLCs|getPilotCameraDirection|getPilotCameraPosition|getPilotCameraRotation|getPilotCameraTarget|getPlateNumber|getPlayerChannel|getPlayerScores|getPlayerUID|getPlayerUIDOld|getPos|getPosASL|getPosASLVisual|getPosASLW|getPosATL|getPosATLVisual|getPosVisual|getPosWorld|getPylonMagazines|getRelDir|getRelPos|getRemoteSensorsDisabled|getRepairCargo|getResolution|getRotorBrakeRTD|getShadowDistance|getShotParents|getSlingLoad|getSoundController|getSoundControllerResult|getSpeed|getStamina|getStatValue|getSuppression|getTerrainGrid|getTerrainHeightASL|getText|getTotalDLCUsageTime|getTrimOffsetRTD|getUnitLoadout|getUnitTrait|getUserMFDText|getUserMFDValue|getVariable|getVehicleCargo|getWeaponCargo|getWeaponSway|getWingsOrientationRTD|getWingsPositionRTD|getWPPos|glanceAt|globalChat|globalRadio|goggles|group|groupChat|groupFromNetId|groupIconSelectable|groupIconsVisible|groupId|groupOwner|groupRadio|groupSelectedUnits|groupSelectUnit|grpNull|gunner|gusts|halt|handgunItems|handgunMagazine|handgunWeapon|handsHit|hasInterface|hasPilotCamera|hasWeapon|hcAllGroups|hcGroupParams|hcLeader|hcRemoveAllGroups|hcRemoveGroup|hcSelected|hcSelectGroup|hcSetGroup|hcShowBar|hcShownBar|headgear|hideBody|hideObject|hideObjectGlobal|hideSelection|hint|hintC|hintCadet|hintSilent|hmd|hostMission|htmlLoad|HUDMovementLevels|humidity|image|importAllGroups|importance|in|inArea|inAreaArray|incapacitatedState|independent|inflame|inflamed|infoPanel|infoPanelComponentEnabled|infoPanelComponents|infoPanels|inGameUISetEventHandler|inheritsFrom|initAmbientLife|inPolygon|inputAction|inRangeOfArtillery|insertEditorObject|intersect|is3DEN|is3DENMultiplayer|isAbleToBreathe|isAgent|isAimPrecisionEnabled|isArray|isAutoHoverOn|isAutonomous|isAutoStartUpEnabledRTD|isAutotest|isAutoTrimOnRTD|isBleeding|isBurning|isClass|isCollisionLightOn|isCopilotEnabled|isDamageAllowed|isDedicated|isDLCAvailable|isEngineOn|isEqualTo|isEqualType|isEqualTypeAll|isEqualTypeAny|isEqualTypeArray|isEqualTypeParams|isFilePatchingEnabled|isFlashlightOn|isFlatEmpty|isForcedWalk|isFormationLeader|isGroupDeletedWhenEmpty|isHidden|isInRemainsCollector|isInstructorFigureEnabled|isIRLaserOn|isKeyActive|isKindOf|isLaserOn|isLightOn|isLocalized|isManualFire|isMarkedForCollection|isMultiplayer|isMultiplayerSolo|isNil|isNull|isNumber|isObjectHidden|isObjectRTD|isOnRoad|isPipEnabled|isPlayer|isRealTime|isRemoteExecuted|isRemoteExecutedJIP|isServer|isShowing3DIcons|isSimpleObject|isSprintAllowed|isStaminaEnabled|isSteamMission|isStreamFriendlyUIEnabled|isStressDamageEnabled|isText|isTouchingGround|isTurnedOut|isTutHintsEnabled|isUAVConnectable|isUAVConnected|isUIContext|isUniformAllowed|isVehicleCargo|isVehicleRadarOn|isVehicleSensorEnabled|isWalking|isWeaponDeployed|isWeaponRested|itemCargo|items|itemsWithMagazines|join|joinAs|joinAsSilent|joinSilent|joinString|kbAddDatabase|kbAddDatabaseTargets|kbAddTopic|kbHasTopic|kbReact|kbRemoveTopic|kbTell|kbWasSaid|keyImage|keyName|knowsAbout|land|landAt|landResult|language|laserTarget|lbAdd|lbClear|lbColor|lbColorRight|lbCurSel|lbData|lbDelete|lbIsSelected|lbPicture|lbPictureRight|lbSelection|lbSetColor|lbSetColorRight|lbSetCurSel|lbSetData|lbSetPicture|lbSetPictureColor|lbSetPictureColorDisabled|lbSetPictureColorSelected|lbSetPictureRight|lbSetPictureRightColor|lbSetPictureRightColorDisabled|lbSetPictureRightColorSelected|lbSetSelectColor|lbSetSelectColorRight|lbSetSelected|lbSetText|lbSetTextRight|lbSetTooltip|lbSetValue|lbSize|lbSort|lbSortByValue|lbText|lbTextRight|lbValue|leader|leaderboardDeInit|leaderboardGetRows|leaderboardInit|leaderboardRequestRowsFriends|leaderboardRequestRowsGlobal|leaderboardRequestRowsGlobalAroundUser|leaderboardsRequestUploadScore|leaderboardsRequestUploadScoreKeepBest|leaderboardState|leaveVehicle|libraryCredits|libraryDisclaimers|lifeState|lightAttachObject|lightDetachObject|lightIsOn|lightnings|limitSpeed|linearConversion|lineBreak|lineIntersects|lineIntersectsObjs|lineIntersectsSurfaces|lineIntersectsWith|linkItem|list|listObjects|listRemoteTargets|listVehicleSensors|ln|lnbAddArray|lnbAddColumn|lnbAddRow|lnbClear|lnbColor|lnbColorRight|lnbCurSelRow|lnbData|lnbDeleteColumn|lnbDeleteRow|lnbGetColumnsPosition|lnbPicture|lnbPictureRight|lnbSetColor|lnbSetColorRight|lnbSetColumnsPos|lnbSetCurSelRow|lnbSetData|lnbSetPicture|lnbSetPictureColor|lnbSetPictureColorRight|lnbSetPictureColorSelected|lnbSetPictureColorSelectedRight|lnbSetPictureRight|lnbSetText|lnbSetTextRight|lnbSetValue|lnbSize|lnbSort|lnbSortByValue|lnbText|lnbTextRight|lnbValue|load|loadAbs|loadBackpack|loadFile|loadGame|loadIdentity|loadMagazine|loadOverlay|loadStatus|loadUniform|loadVest|local|localize|locationNull|locationPosition|lock|lockCameraTo|lockCargo|lockDriver|locked|lockedCargo|lockedDriver|lockedTurret|lockIdentity|lockTurret|lockWP|log|logEntities|logNetwork|logNetworkTerminate|lookAt|lookAtPos|magazineCargo|magazines|magazinesAllTurrets|magazinesAmmo|magazinesAmmoCargo|magazinesAmmoFull|magazinesDetail|magazinesDetailBackpack|magazinesDetailUniform|magazinesDetailVest|magazinesTurret|magazineTurretAmmo|mapAnimAdd|mapAnimClear|mapAnimCommit|mapAnimDone|mapCenterOnCamera|mapGridPosition|markAsFinishedOnSteam|markerAlpha|markerBrush|markerColor|markerDir|markerPos|markerShape|markerSize|markerText|markerType|max|members|menuAction|menuAdd|menuChecked|menuClear|menuCollapse|menuData|menuDelete|menuEnable|menuEnabled|menuExpand|menuHover|menuPicture|menuSetAction|menuSetCheck|menuSetData|menuSetPicture|menuSetValue|menuShortcut|menuShortcutText|menuSize|menuSort|menuText|menuURL|menuValue|min|mineActive|mineDetectedBy|missionConfigFile|missionDifficulty|missionName|missionNamespace|missionStart|missionVersion|modelToWorld|modelToWorldVisual|modelToWorldVisualWorld|modelToWorldWorld|modParams|moonIntensity|moonPhase|morale|move|move3DENCamera|moveInAny|moveInCargo|moveInCommander|moveInDriver|moveInGunner|moveInTurret|moveObjectToEnd|moveOut|moveTime|moveTo|moveToCompleted|moveToFailed|musicVolume|name|nameSound|nearEntities|nearestBuilding|nearestLocation|nearestLocations|nearestLocationWithDubbing|nearestObject|nearestObjects|nearestTerrainObjects|nearObjects|nearObjectsReady|nearRoads|nearSupplies|nearTargets|needReload|netId|netObjNull|newOverlay|nextMenuItemIndex|nextWeatherChange|nMenuItems|numberOfEnginesRTD|numberToDate|objectCurators|objectFromNetId|objectParent|objNull|objStatus|onBriefingGear|onBriefingGroup|onBriefingNotes|onBriefingPlan|onBriefingTeamSwitch|onCommandModeChanged|onDoubleClick|onEachFrame|onGroupIconClick|onGroupIconOverEnter|onGroupIconOverLeave|onHCGroupSelectionChanged|onMapSingleClick|onPlayerConnected|onPlayerDisconnected|onPreloadFinished|onPreloadStarted|onShowNewObject|onTeamSwitch|openCuratorInterface|openDLCPage|openDSInterface|openMap|openSteamApp|openYoutubeVideo|opfor|orderGetIn|overcast|overcastForecast|owner|param|params|parseNumber|parseSimpleArray|parseText|parsingNamespace|particlesQuality|pi|pickWeaponPool|pitch|pixelGrid|pixelGridBase|pixelGridNoUIScale|pixelH|pixelW|playableSlotsNumber|playableUnits|playAction|playActionNow|player|playerRespawnTime|playerSide|playersNumber|playGesture|playMission|playMove|playMoveNow|playMusic|playScriptedMission|playSound|playSound3D|position|positionCameraToWorld|posScreenToWorld|posWorldToScreen|ppEffectAdjust|ppEffectCommit|ppEffectCommitted|ppEffectCreate|ppEffectDestroy|ppEffectEnable|ppEffectEnabled|ppEffectForceInNVG|precision|preloadCamera|preloadObject|preloadSound|preloadTitleObj|preloadTitleRsc|primaryWeapon|primaryWeaponItems|primaryWeaponMagazine|priority|processDiaryLink|processInitCommands|productVersion|profileName|profileNamespace|profileNameSteam|progressLoadingScreen|progressPosition|progressSetPosition|publicVariable|publicVariableClient|publicVariableServer|pushBack|pushBackUnique|putWeaponPool|queryItemsPool|queryMagazinePool|queryWeaponPool|rad|radioChannelAdd|radioChannelCreate|radioChannelRemove|radioChannelSetCallSign|radioChannelSetLabel|radioVolume|rain|rainbow|random|rank|rankId|rating|rectangular|registeredTasks|registerTask|reload|reloadEnabled|remoteControl|remoteExec|remoteExecCall|remoteExecutedOwner|remove3DENConnection|remove3DENEventHandler|remove3DENLayer|removeAction|removeAll3DENEventHandlers|removeAllActions|removeAllAssignedItems|removeAllContainers|removeAllCuratorAddons|removeAllCuratorCameraAreas|removeAllCuratorEditingAreas|removeAllEventHandlers|removeAllHandgunItems|removeAllItems|removeAllItemsWithMagazines|removeAllMissionEventHandlers|removeAllMPEventHandlers|removeAllMusicEventHandlers|removeAllOwnedMines|removeAllPrimaryWeaponItems|removeAllWeapons|removeBackpack|removeBackpackGlobal|removeCuratorAddons|removeCuratorCameraArea|removeCuratorEditableObjects|removeCuratorEditingArea|removeDrawIcon|removeDrawLinks|removeEventHandler|removeFromRemainsCollector|removeGoggles|removeGroupIcon|removeHandgunItem|removeHeadgear|removeItem|removeItemFromBackpack|removeItemFromUniform|removeItemFromVest|removeItems|removeMagazine|removeMagazineGlobal|removeMagazines|removeMagazinesTurret|removeMagazineTurret|removeMenuItem|removeMissionEventHandler|removeMPEventHandler|removeMusicEventHandler|removeOwnedMine|removePrimaryWeaponItem|removeSecondaryWeaponItem|removeSimpleTask|removeSwitchableUnit|removeTeamMember|removeUniform|removeVest|removeWeapon|removeWeaponAttachmentCargo|removeWeaponCargo|removeWeaponGlobal|removeWeaponTurret|reportRemoteTarget|requiredVersion|resetCamShake|resetSubgroupDirection|resistance|resize|resources|respawnVehicle|restartEditorCamera|reveal|revealMine|reverse|reversedMouseY|roadAt|roadsConnectedTo|roleDescription|ropeAttachedObjects|ropeAttachedTo|ropeAttachEnabled|ropeAttachTo|ropeCreate|ropeCut|ropeDestroy|ropeDetach|ropeEndPosition|ropeLength|ropes|ropeUnwind|ropeUnwound|rotorsForcesRTD|rotorsRpmRTD|round|runInitScript|safeZoneH|safeZoneW|safeZoneWAbs|safeZoneX|safeZoneXAbs|safeZoneY|save3DENInventory|saveGame|saveIdentity|saveJoysticks|saveOverlay|saveProfileNamespace|saveStatus|saveVar|savingEnabled|say|say2D|say3D|score|scoreSide|screenshot|screenToWorld|scriptDone|scriptName|scriptNull|scudState|secondaryWeapon|secondaryWeaponItems|secondaryWeaponMagazine|select|selectBestPlaces|selectDiarySubject|selectedEditorObjects|selectEditorObject|selectionNames|selectionPosition|selectLeader|selectMax|selectMin|selectNoPlayer|selectPlayer|selectRandom|selectRandomWeighted|selectWeapon|selectWeaponTurret|sendAUMessage|sendSimpleCommand|sendTask|sendTaskResult|sendUDPMessage|serverCommand|serverCommandAvailable|serverCommandExecutable|serverName|serverTime|set|set3DENAttribute|set3DENAttributes|set3DENGrid|set3DENIconsVisible|set3DENLayer|set3DENLinesVisible|set3DENLogicType|set3DENMissionAttribute|set3DENMissionAttributes|set3DENModelsVisible|set3DENObjectType|set3DENSelected|setAccTime|setActualCollectiveRTD|setAirplaneThrottle|setAirportSide|setAmmo|setAmmoCargo|setAmmoOnPylon|setAnimSpeedCoef|setAperture|setApertureNew|setArmoryPoints|setAttributes|setAutonomous|setBehaviour|setBleedingRemaining|setBrakesRTD|setCameraInterest|setCamShakeDefParams|setCamShakeParams|setCamUseTI|setCaptive|setCenterOfMass|setCollisionLight|setCombatMode|setCompassOscillation|setConvoySeparation|setCuratorCameraAreaCeiling|setCuratorCoef|setCuratorEditingAreaType|setCuratorWaypointCost|setCurrentChannel|setCurrentTask|setCurrentWaypoint|setCustomAimCoef|setCustomWeightRTD|setDamage|setDammage|setDate|setDebriefingText|setDefaultCamera|setDestination|setDetailMapBlendPars|setDir|setDirection|setDrawIcon|setDriveOnPath|setDropInterval|setDynamicSimulationDistance|setDynamicSimulationDistanceCoef|setEditorMode|setEditorObjectScope|setEffectCondition|setEngineRpmRTD|setFace|setFaceAnimation|setFatigue|setFeatureType|setFlagAnimationPhase|setFlagOwner|setFlagSide|setFlagTexture|setFog|setForceGeneratorRTD|setFormation|setFormationTask|setFormDir|setFriend|setFromEditor|setFSMVariable|setFuel|setFuelCargo|setGroupIcon|setGroupIconParams|setGroupIconsSelectable|setGroupIconsVisible|setGroupId|setGroupIdGlobal|setGroupOwner|setGusts|setHideBehind|setHit|setHitIndex|setHitPointDamage|setHorizonParallaxCoef|setHUDMovementLevels|setIdentity|setImportance|setInfoPanel|setLeader|setLightAmbient|setLightAttenuation|setLightBrightness|setLightColor|setLightDayLight|setLightFlareMaxDistance|setLightFlareSize|setLightIntensity|setLightnings|setLightUseFlare|setLocalWindParams|setMagazineTurretAmmo|setMarkerAlpha|setMarkerAlphaLocal|setMarkerBrush|setMarkerBrushLocal|setMarkerColor|setMarkerColorLocal|setMarkerDir|setMarkerDirLocal|setMarkerPos|setMarkerPosLocal|setMarkerShape|setMarkerShapeLocal|setMarkerSize|setMarkerSizeLocal|setMarkerText|setMarkerTextLocal|setMarkerType|setMarkerTypeLocal|setMass|setMimic|setMousePosition|setMusicEffect|setMusicEventHandler|setName|setNameSound|setObjectArguments|setObjectMaterial|setObjectMaterialGlobal|setObjectProxy|setObjectTexture|setObjectTextureGlobal|setObjectViewDistance|setOvercast|setOwner|setOxygenRemaining|setParticleCircle|setParticleClass|setParticleFire|setParticleParams|setParticleRandom|setPilotCameraDirection|setPilotCameraRotation|setPilotCameraTarget|setPilotLight|setPiPEffect|setPitch|setPlateNumber|setPlayable|setPlayerRespawnTime|setPos|setPosASL|setPosASL2|setPosASLW|setPosATL|setPosition|setPosWorld|setPylonLoadOut|setPylonsPriority|setRadioMsg|setRain|setRainbow|setRandomLip|setRank|setRectangular|setRepairCargo|setRotorBrakeRTD|setShadowDistance|setShotParents|setSide|setSimpleTaskAlwaysVisible|setSimpleTaskCustomData|setSimpleTaskDescription|setSimpleTaskDestination|setSimpleTaskTarget|setSimpleTaskType|setSimulWeatherLayers|setSize|setSkill|setSlingLoad|setSoundEffect|setSpeaker|setSpeech|setSpeedMode|setStamina|setStaminaScheme|setStatValue|setSuppression|setSystemOfUnits|setTargetAge|setTaskMarkerOffset|setTaskResult|setTaskState|setTerrainGrid|setText|setTimeMultiplier|setTitleEffect|setToneMapping|setToneMappingParams|setTrafficDensity|setTrafficDistance|setTrafficGap|setTrafficSpeed|setTriggerActivation|setTriggerArea|setTriggerStatements|setTriggerText|setTriggerTimeout|setTriggerType|setType|setUnconscious|setUnitAbility|setUnitLoadout|setUnitPos|setUnitPosWeak|setUnitRank|setUnitRecoilCoefficient|setUnitTrait|setUnloadInCombat|setUserActionText|setUserMFDText|setUserMFDValue|setVariable|setVectorDir|setVectorDirAndUp|setVectorUp|setVehicleAmmo|setVehicleAmmoDef|setVehicleArmor|setVehicleCargo|setVehicleId|setVehicleInit|setVehicleLock|setVehiclePosition|setVehicleRadar|setVehicleReceiveRemoteTargets|setVehicleReportOwnPosition|setVehicleReportRemoteTargets|setVehicleTIPars|setVehicleVarName|setVelocity|setVelocityModelSpace|setVelocityTransformation|setViewDistance|setVisibleIfTreeCollapsed|setWantedRpmRTD|setWaves|setWaypointBehaviour|setWaypointCombatMode|setWaypointCompletionRadius|setWaypointDescription|setWaypointForceBehaviour|setWaypointFormation|setWaypointHousePosition|setWaypointLoiterRadius|setWaypointLoiterType|setWaypointName|setWaypointPosition|setWaypointScript|setWaypointSpeed|setWaypointStatements|setWaypointTimeout|setWaypointType|setWaypointVisible|setWeaponReloadingTime|setWind|setWindDir|setWindForce|setWindStr|setWingForceScaleRTD|setWPPos|show3DIcons|showChat|showCinemaBorder|showCommandingMenu|showCompass|showCuratorCompass|showGPS|showHUD|showLegend|showMap|shownArtilleryComputer|shownChat|shownCompass|shownCuratorCompass|showNewEditorObject|shownGPS|shownHUD|shownMap|shownPad|shownRadio|shownScoretable|shownUAVFeed|shownWarrant|shownWatch|showPad|showRadio|showScoretable|showSubtitles|showUAVFeed|showWarrant|showWatch|showWaypoint|showWaypoints|side|sideAmbientLife|sideChat|sideEmpty|sideEnemy|sideFriendly|sideLogic|sideRadio|sideUnknown|simpleTasks|simulationEnabled|simulCloudDensity|simulCloudOcclusion|simulInClouds|simulWeatherSync|sin|size|sizeOf|skill|skillFinal|skipTime|sleep|sliderPosition|sliderRange|sliderSetPosition|sliderSetRange|sliderSetSpeed|sliderSpeed|slingLoadAssistantShown|soldierMagazines|someAmmo|sort|soundVolume|speaker|speed|speedMode|splitString|sqrt|squadParams|stance|startLoadingScreen|stop|stopEngineRTD|stopped|str|sunOrMoon|supportInfo|suppressFor|surfaceIsWater|surfaceNormal|surfaceType|swimInDepth|switchableUnits|switchAction|switchCamera|switchGesture|switchLight|switchMove|synchronizedObjects|synchronizedTriggers|synchronizedWaypoints|synchronizeObjectsAdd|synchronizeObjectsRemove|synchronizeTrigger|synchronizeWaypoint|systemChat|systemOfUnits|tan|targetKnowledge|targets|targetsAggregate|targetsQuery|taskAlwaysVisible|taskChildren|taskCompleted|taskCustomData|taskDescription|taskDestination|taskHint|taskMarkerOffset|taskNull|taskParent|taskResult|taskState|taskType|teamMember|teamMemberNull|teamName|teams|teamSwitch|teamSwitchEnabled|teamType|terminate|terrainIntersect|terrainIntersectASL|terrainIntersectAtASL|text|textLog|textLogFormat|tg|time|timeMultiplier|titleCut|titleFadeOut|titleObj|titleRsc|titleText|toArray|toFixed|toLower|toString|toUpper|triggerActivated|triggerActivation|triggerArea|triggerAttachedVehicle|triggerAttachObject|triggerAttachVehicle|triggerDynamicSimulation|triggerStatements|triggerText|triggerTimeout|triggerTimeoutCurrent|triggerType|turretLocal|turretOwner|turretUnit|tvAdd|tvClear|tvCollapse|tvCollapseAll|tvCount|tvCurSel|tvData|tvDelete|tvExpand|tvExpandAll|tvPicture|tvPictureRight|tvSetColor|tvSetCurSel|tvSetData|tvSetPicture|tvSetPictureColor|tvSetPictureColorDisabled|tvSetPictureColorSelected|tvSetPictureRight|tvSetPictureRightColor|tvSetPictureRightColorDisabled|tvSetPictureRightColorSelected|tvSetSelectColor|tvSetText|tvSetTooltip|tvSetValue|tvSort|tvSortByValue|tvText|tvTooltip|tvValue|type|typeName|typeOf|UAVControl|uiNamespace|uiSleep|unassignCurator|unassignItem|unassignTeam|unassignVehicle|underwater|uniform|uniformContainer|uniformItems|uniformMagazines|unitAddons|unitAimPosition|unitAimPositionVisual|unitBackpack|unitIsUAV|unitPos|unitReady|unitRecoilCoefficient|units|unitsBelowHeight|unlinkItem|unlockAchievement|unregisterTask|updateDrawIcon|updateMenuItem|updateObjectTree|useAIOperMapObstructionTest|useAISteeringComponent|useAudioTimeForMoves|userInputDisabled|vectorAdd|vectorCos|vectorCrossProduct|vectorDiff|vectorDir|vectorDirVisual|vectorDistance|vectorDistanceSqr|vectorDotProduct|vectorFromTo|vectorMagnitude|vectorMagnitudeSqr|vectorModelToWorld|vectorModelToWorldVisual|vectorMultiply|vectorNormalized|vectorUp|vectorUpVisual|vectorWorldToModel|vectorWorldToModelVisual|vehicle|vehicleCargoEnabled|vehicleChat|vehicleRadio|vehicleReceiveRemoteTargets|vehicleReportOwnPosition|vehicleReportRemoteTargets|vehicles|vehicleVarName|velocity|velocityModelSpace|verifySignature|vest|vestContainer|vestItems|vestMagazines|viewDistance|visibleCompass|visibleGPS|visibleMap|visiblePosition|visiblePositionASL|visibleScoretable|visibleWatch|waitUntil|waves|waypointAttachedObject|waypointAttachedVehicle|waypointAttachObject|waypointAttachVehicle|waypointBehaviour|waypointCombatMode|waypointCompletionRadius|waypointDescription|waypointForceBehaviour|waypointFormation|waypointHousePosition|waypointLoiterRadius|waypointLoiterType|waypointName|waypointPosition|waypoints|waypointScript|waypointsEnabledUAV|waypointShow|waypointSpeed|waypointStatements|waypointTimeout|waypointTimeoutCurrent|waypointType|waypointVisible|weaponAccessories|weaponAccessoriesCargo|weaponCargo|weaponDirection|weaponInertia|weaponLowered|weapons|weaponsItems|weaponsItemsCargo|weaponState|weaponsTurret|weightRTD|west|WFSideText|wind|windDir|windRTD|windStr|wingsForcesRTD|worldName|worldSize|worldToModel|worldToModelVisual|worldToScreen)\b/i,number:/(?:\$|\b0x)[\da-f]+\b|(?:\B\.\d+|\b\d+(?:\.\d+)?)(?:e[+-]?\d+)?\b/i,operator:/##|>>|&&|\|\||[!=<>]=?|[-+*/%#^]|\b(?:and|mod|not|or)\b/i,"magic-variable":{pattern:/\b(?:this|thisList|thisTrigger|_exception|_fnc_scriptName|_fnc_scriptNameParent|_forEachIndex|_this|_thisEventHandler|_thisFSM|_thisScript|_x)\b/i,alias:"keyword"},constant:/\bDIK(?:_[a-z\d]+)+\b/i}),e.languages.insertBefore("sqf","string",{macro:{pattern:/(^[ \t]*)#[a-z](?:[^\r\n\\]|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{directive:{pattern:/#[a-z]+\b/i,alias:"keyword"},comment:e.languages.sqf.comment}}}),delete e.languages.sqf["class-name"]}t.exports=r,r.displayName="sqf",r.aliases=[]},156747,(e,t,n)=>{"use strict";function r(e){e.languages.squirrel=e.languages.extend("clike",{comment:[e.languages.clike.comment[0],{pattern:/(^|[^\\:])(?:\/\/|#).*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^\\"'@])(?:@"(?:[^"]|"")*"(?!")|"(?:[^\\\r\n"]|\\.)*")/,lookbehind:!0,greedy:!0},"class-name":{pattern:/(\b(?:class|enum|extends|instanceof)\s+)\w+(?:\.\w+)*/,lookbehind:!0,inside:{punctuation:/\./}},keyword:/\b(?:__FILE__|__LINE__|base|break|case|catch|class|clone|const|constructor|continue|default|delete|else|enum|extends|for|foreach|function|if|in|instanceof|local|null|resume|return|static|switch|this|throw|try|typeof|while|yield)\b/,number:/\b(?:0x[0-9a-fA-F]+|\d+(?:\.(?:\d+|[eE][+-]?\d+))?)\b/,operator:/\+\+|--|<=>|<[-<]|>>>?|&&?|\|\|?|[-+*/%!=<>]=?|[~^]|::?/,punctuation:/[(){}\[\],;.]/}),e.languages.insertBefore("squirrel","string",{char:{pattern:/(^|[^\\"'])'(?:[^\\']|\\(?:[xuU][0-9a-fA-F]{0,8}|[\s\S]))'/,lookbehind:!0,greedy:!0}}),e.languages.insertBefore("squirrel","operator",{"attribute-punctuation":{pattern:/<\/|\/>/,alias:"important"},lambda:{pattern:/@(?=\()/,alias:"operator"}})}t.exports=r,r.displayName="squirrel",r.aliases=[]},259467,(e,t,n)=>{"use strict";function r(e){var t;t=/\b(?:algebra_solver|algebra_solver_newton|integrate_1d|integrate_ode|integrate_ode_bdf|integrate_ode_rk45|map_rect|ode_(?:adams|bdf|ckrk|rk45)(?:_tol)?|ode_adjoint_tol_ctl|reduce_sum|reduce_sum_static)\b/,e.languages.stan={comment:/\/\/.*|\/\*[\s\S]*?\*\/|#(?!include).*/,string:{pattern:/"[\x20\x21\x23-\x5B\x5D-\x7E]*"/,greedy:!0},directive:{pattern:/^([ \t]*)#include\b.*/m,lookbehind:!0,alias:"property"},"function-arg":{pattern:RegExp("("+t.source+/\s*\(\s*/.source+")"+/[a-zA-Z]\w*/.source),lookbehind:!0,alias:"function"},constraint:{pattern:/(\b(?:int|matrix|real|row_vector|vector)\s*)<[^<>]*>/,lookbehind:!0,inside:{expression:{pattern:/(=\s*)\S(?:\S|\s+(?!\s))*?(?=\s*(?:>$|,\s*\w+\s*=))/,lookbehind:!0,inside:null},property:/\b[a-z]\w*(?=\s*=)/i,operator:/=/,punctuation:/^<|>$|,/}},keyword:[{pattern:/\bdata(?=\s*\{)|\b(?:functions|generated|model|parameters|quantities|transformed)\b/,alias:"program-block"},/\b(?:array|break|cholesky_factor_corr|cholesky_factor_cov|complex|continue|corr_matrix|cov_matrix|data|else|for|if|in|increment_log_prob|int|matrix|ordered|positive_ordered|print|real|reject|return|row_vector|simplex|target|unit_vector|vector|void|while)\b/,t],function:/\b[a-z]\w*(?=\s*\()/i,number:/(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:E[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,boolean:/\b(?:false|true)\b/,operator:/<-|\.[*/]=?|\|\|?|&&|[!=<>+\-*/]=?|['^%~?:]/,punctuation:/[()\[\]{},;]/},e.languages.stan.constraint.inside.expression.inside=e.languages.stan}t.exports=r,r.displayName="stan",r.aliases=[]},268783,(e,t,n)=>{"use strict";function r(e){var t,n,r;(r={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|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|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:t={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},number:n={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:t,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:n,punctuation:/[{}()\[\];:,]/}).interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:r}},r.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:r}},e.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:r}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:r}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:r}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:r.interpolation}},rest:r}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,lookbehind:!0,inside:{interpolation:r.interpolation,comment:r.comment,punctuation:/[{},]/}},func:r.func,string:r.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:r.interpolation,punctuation:/[{}()\[\];:.]/}}t.exports=r,r.displayName="stylus",r.aliases=[]},431820,(e,t,n)=>{"use strict";function r(e){e.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+(/(?:elseif|if)\b/.source+"(?:[ ]*")+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},e.languages.swift["string-literal"].forEach(function(t){t.inside.interpolation.inside=e.languages.swift})}t.exports=r,r.displayName="swift",r.aliases=[]},116553,(e,t,n)=>{"use strict";function r(e){var t,n;t={pattern:/^[;#].*/m,greedy:!0},n=/"(?:[^\r\n"\\]|\\(?:[^\r]|\r\n?))*"(?!\S)/.source,e.languages.systemd={comment:t,section:{pattern:/^\[[^\n\r\[\]]*\](?=[ \t]*$)/m,greedy:!0,inside:{punctuation:/^\[|\]$/,"section-name":{pattern:/[\s\S]+/,alias:"selector"}}},key:{pattern:/^[^\s=]+(?=[ \t]*=)/m,greedy:!0,alias:"attr-name"},value:{pattern:RegExp(/(=[ \t]*(?!\s))/.source+"(?:"+n+'|(?=[^"\r\n]))(?:'+(/[^\s\\]/.source+'|[ ]+(?:(?![ "])|'+n)+")|"+/\\[\r\n]+(?:[#;].*[\r\n]+)*(?![#;])/.source+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:t,quoted:{pattern:RegExp(/(^|\s)/.source+n),lookbehind:!0,greedy:!0},punctuation:/\\$/m,boolean:{pattern:/^(?:false|no|off|on|true|yes)$/,greedy:!0}}},punctuation:/=/}}t.exports=r,r.displayName="systemd",r.aliases=[]},254031,(e,t,n)=>{"use strict";function r(e){function t(e,t,n){return{pattern:RegExp("<#"+e+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+e+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:t,alias:n}}}}e.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:function(n){var r=e.languages[n],a="language-"+n;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:t("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:t("=",r,a),"class-feature":t("\\+",r,a),standard:t("",r,a)}}}}})}t.exports=r,r.displayName="t4Templating",r.aliases=[]},979645,(e,t,n)=>{"use strict";var r=e.r(254031),a=e.r(794503);function i(e){e.register(r),e.register(a),e.languages.t4=e.languages["t4-cs"]=e.languages["t4-templating"].createT4("csharp")}t.exports=i,i.displayName="t4Cs",i.aliases=[]},900674,(e,t,n)=>{"use strict";var r=e.r(703731);function a(e){e.register(r),e.languages.vbnet=e.languages.extend("basic",{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/})}t.exports=a,a.displayName="vbnet",a.aliases=[]},988400,(e,t,n)=>{"use strict";var r=e.r(254031),a=e.r(900674);function i(e){e.register(r),e.register(a),e.languages["t4-vb"]=e.languages["t4-templating"].createT4("vbnet")}t.exports=i,i.displayName="t4Vb",i.aliases=[]},182840,(e,t,n)=>{"use strict";function r(e){!function(e){var t=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,r="(?:"+n.source+"(?:[ ]+"+t.source+")?|"+t.source+"(?:[ ]+"+n.source+")?)",a=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),i=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function s(e,t){return t=(t||"").replace(/m/g,"")+"m",RegExp(/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return r}).replace(/<<value>>/g,function(){return e}),t)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,function(){return r})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return r}).replace(/<<key>>/g,function(){return"(?:"+a+"|"+i+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:s(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:s(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:s(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:s(i),lookbehind:!0,greedy:!0},number:{pattern:s(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:n,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml}(e)}t.exports=r,r.displayName="yaml",r.aliases=["yml"]},752634,(e,t,n)=>{"use strict";var r=e.r(182840);function a(e){e.register(r),e.languages.tap={fail:/not ok[^#{\n\r]*/,pass:/ok[^#{\n\r]*/,pragma:/pragma [+-][a-z]+/,bailout:/bail out!.*/i,version:/TAP version \d+/i,plan:/\b\d+\.\.\d+(?: +#.*)?/,subtest:{pattern:/# Subtest(?:: .*)?/,greedy:!0},punctuation:/[{}]/,directive:/#.*/,yamlish:{pattern:/(^[ \t]*)---[\s\S]*?[\r\n][ \t]*\.\.\.$/m,lookbehind:!0,inside:e.languages.yaml,alias:"language-yaml"}}}t.exports=a,a.displayName="tap",a.aliases=[]},581126,(e,t,n)=>{"use strict";function r(e){e.languages.tcl={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},string:{pattern:/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"/,greedy:!0},variable:[{pattern:/(\$)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/,lookbehind:!0},{pattern:/(\$)\{[^}]+\}/,lookbehind:!0},{pattern:/(^[\t ]*set[ \t]+)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/m,lookbehind:!0}],function:{pattern:/(^[\t ]*proc[ \t]+)\S+/m,lookbehind:!0},builtin:[{pattern:/(^[\t ]*)(?:break|class|continue|error|eval|exit|for|foreach|if|proc|return|switch|while)\b/m,lookbehind:!0},/\b(?:else|elseif)\b/],scope:{pattern:/(^[\t ]*)(?:global|upvar|variable)\b/m,lookbehind:!0,alias:"constant"},keyword:{pattern:/(^[\t ]*|\[)(?:Safe_Base|Tcl|after|append|apply|array|auto_(?:execok|import|load|mkindex|qualify|reset)|automkindex_old|bgerror|binary|catch|cd|chan|clock|close|concat|dde|dict|encoding|eof|exec|expr|fblocked|fconfigure|fcopy|file(?:event|name)?|flush|gets|glob|history|http|incr|info|interp|join|lappend|lassign|lindex|linsert|list|llength|load|lrange|lrepeat|lreplace|lreverse|lsearch|lset|lsort|math(?:func|op)|memory|msgcat|namespace|open|package|parray|pid|pkg_mkIndex|platform|puts|pwd|re_syntax|read|refchan|regexp|registry|regsub|rename|scan|seek|set|socket|source|split|string|subst|tcl(?:_endOfWord|_findLibrary|startOf(?:Next|Previous)Word|test|vars|wordBreak(?:After|Before))|tell|time|tm|trace|unknown|unload|unset|update|uplevel|vwait)\b/m,lookbehind:!0},operator:/!=?|\*\*?|==|&&?|\|\|?|<[=<]?|>[=>]?|[-+~\/%?^]|\b(?:eq|in|ne|ni)\b/,punctuation:/[{}()\[\]]/}}t.exports=r,r.displayName="tcl",r.aliases=[]},74806,(e,t,n)=>{"use strict";function r(e){!function(e){var t=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,n=/\)|\((?![^|()\n]+\))/.source;function r(e,r){return RegExp(e.replace(/<MOD>/g,function(){return"(?:"+t+")"}).replace(/<PAR>/g,function(){return"(?:"+n+")"}),r||"")}var a={css:{pattern:/\{[^{}]+\}/,inside:{rest:e.languages.css}},"class-id":{pattern:/(\()[^()]+(?=\))/,lookbehind:!0,alias:"attr-value"},lang:{pattern:/(\[)[^\[\]]+(?=\])/,lookbehind:!0,alias:"attr-value"},punctuation:/[\\\/]\d+|\S/},i=e.languages.textile=e.languages.extend("markup",{phrase:{pattern:/(^|\r|\n)\S[\s\S]*?(?=$|\r?\n\r?\n|\r\r)/,lookbehind:!0,inside:{"block-tag":{pattern:r(/^[a-z]\w*(?:<MOD>|<PAR>|[<>=])*\./.source),inside:{modifier:{pattern:r(/(^[a-z]\w*)(?:<MOD>|<PAR>|[<>=])+(?=\.)/.source),lookbehind:!0,inside:a},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:r(/^[*#]+<MOD>*\s+\S.*/.source,"m"),inside:{modifier:{pattern:r(/(^[*#]+)<MOD>+/.source),lookbehind:!0,inside:a},punctuation:/^[*#]+/}},table:{pattern:r(/^(?:(?:<MOD>|<PAR>|[<>=^~])+\.\s*)?(?:\|(?:(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+\.|(?!(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:r(/(^|\|(?:\r?\n|\r)?)(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:a},punctuation:/\||^\./}},inline:{pattern:r(/(^|[^a-zA-Z\d])(\*\*|__|\?\?|[*_%@+\-^~])<MOD>*.+?\2(?![a-zA-Z\d])/.source),lookbehind:!0,inside:{bold:{pattern:r(/(^(\*\*?)<MOD>*).+?(?=\2)/.source),lookbehind:!0},italic:{pattern:r(/(^(__?)<MOD>*).+?(?=\2)/.source),lookbehind:!0},cite:{pattern:r(/(^\?\?<MOD>*).+?(?=\?\?)/.source),lookbehind:!0,alias:"string"},code:{pattern:r(/(^@<MOD>*).+?(?=@)/.source),lookbehind:!0,alias:"keyword"},inserted:{pattern:r(/(^\+<MOD>*).+?(?=\+)/.source),lookbehind:!0},deleted:{pattern:r(/(^-<MOD>*).+?(?=-)/.source),lookbehind:!0},span:{pattern:r(/(^%<MOD>*).+?(?=%)/.source),lookbehind:!0},modifier:{pattern:r(/(^\*\*|__|\?\?|[*_%@+\-^~])<MOD>+/.source),lookbehind:!0,inside:a},punctuation:/[*_%?@+\-^~]+/}},"link-ref":{pattern:/^\[[^\]]+\]\S+$/m,inside:{string:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0},url:{pattern:/(^\])\S+$/,lookbehind:!0},punctuation:/[\[\]]/}},link:{pattern:r(/"<MOD>*[^"]+":.+?(?=[^\w/]?(?:\s|$))/.source),inside:{text:{pattern:r(/(^"<MOD>*)[^"]+(?=")/.source),lookbehind:!0},modifier:{pattern:r(/(^")<MOD>+/.source),lookbehind:!0,inside:a},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[":]/}},image:{pattern:r(/!(?:<MOD>|<PAR>|[<>=])*(?![<>=])[^!\s()]+(?:\([^)]+\))?!(?::.+?(?=[^\w/]?(?:\s|$)))?/.source),inside:{source:{pattern:r(/(^!(?:<MOD>|<PAR>|[<>=])*)(?![<>=])[^!\s()]+(?:\([^)]+\))?(?=!)/.source),lookbehind:!0,alias:"url"},modifier:{pattern:r(/(^!)(?:<MOD>|<PAR>|[<>=])+/.source),lookbehind:!0,inside:a},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[!:]/}},footnote:{pattern:/\b\[\d+\]/,alias:"comment",inside:{punctuation:/\[|\]/}},acronym:{pattern:/\b[A-Z\d]+\([^)]+\)/,inside:{comment:{pattern:/(\()[^()]+(?=\))/,lookbehind:!0},punctuation:/[()]/}},mark:{pattern:/\b\((?:C|R|TM)\)/,alias:"comment",inside:{punctuation:/[()]/}}}}}),s=i.phrase.inside,o={inline:s.inline,link:s.link,image:s.image,footnote:s.footnote,acronym:s.acronym,mark:s.mark};i.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var l=s.inline.inside;l.bold.inside=o,l.italic.inside=o,l.inserted.inside=o,l.deleted.inside=o,l.span.inside=o;var c=s.table.inside;c.inline=o.inline,c.link=o.link,c.image=o.image,c.footnote=o.footnote,c.acronym=o.acronym,c.mark=o.mark}(e)}t.exports=r,r.displayName="textile",r.aliases=[]},351729,(e,t,n)=>{"use strict";function r(e){var t=/(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;function n(e){return e.replace(/__/g,function(){return t})}e.languages.toml={comment:{pattern:/#.*/,greedy:!0},table:{pattern:RegExp(n(/(^[\t ]*\[\s*(?:\[\s*)?)__(?:\s*\.\s*__)*(?=\s*\])/.source),"m"),lookbehind:!0,greedy:!0,alias:"class-name"},key:{pattern:RegExp(n(/(^[\t ]*|[{,]\s*)__(?:\s*\.\s*__)*(?=\s*=)/.source),"m"),lookbehind:!0,greedy:!0,alias:"property"},string:{pattern:/"""(?:\\[\s\S]|[^\\])*?"""|'''[\s\S]*?'''|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},date:[{pattern:/\b\d{4}-\d{2}-\d{2}(?:[T\s]\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?)?\b/i,alias:"number"},{pattern:/\b\d{2}:\d{2}:\d{2}(?:\.\d+)?\b/,alias:"number"}],number:/(?:\b0(?:x[\da-zA-Z]+(?:_[\da-zA-Z]+)*|o[0-7]+(?:_[0-7]+)*|b[10]+(?:_[10]+)*))\b|[-+]?\b\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?\b|[-+]?\b(?:inf|nan)\b/,boolean:/\b(?:false|true)\b/,punctuation:/[.,=[\]{}]/}}t.exports=r,r.displayName="toml",r.aliases=[]},370717,(e,t,n)=>{"use strict";function r(e){var t;e.languages.tremor={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},"interpolated-string":null,extractor:{pattern:/\b[a-z_]\w*\|(?:[^\r\n\\|]|\\(?:\r\n|[\s\S]))*\|/i,greedy:!0,inside:{regex:{pattern:/(^re)\|[\s\S]+/,lookbehind:!0},function:/^\w+/,value:/\|[\s\S]+/}},identifier:{pattern:/`[^`]*`/,greedy:!0},function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())\b/,keyword:/\b(?:args|as|by|case|config|connect|connector|const|copy|create|default|define|deploy|drop|each|emit|end|erase|event|flow|fn|for|from|group|having|insert|into|intrinsic|let|links|match|merge|mod|move|of|operator|patch|pipeline|recur|script|select|set|sliding|state|stream|to|tumbling|update|use|when|where|window|with)\b/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0b[01_]*|0x[0-9a-fA-F_]*|\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee][+-]?[\d_]+)?)\b/,"pattern-punctuation":{pattern:/%(?=[({[])/,alias:"punctuation"},operator:/[-+*\/%~!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?>?=?|(?:absent|and|not|or|present|xor)\b/,punctuation:/::|[;\[\]()\{\},.:]/},t=/#\{(?:[^"{}]|\{[^{}]*\}|"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*")*\}/.source,e.languages.tremor["interpolated-string"]={pattern:RegExp(/(^|[^\\])/.source+'(?:"""(?:'+/[^"\\#]|\\[\s\S]|"(?!"")|#(?!\{)/.source+"|"+t+')*"""|"(?:'+/[^"\\\r\n#]|\\(?:\r\n|[\s\S])|#(?!\{)/.source+"|"+t+')*")'),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:RegExp(t),inside:{punctuation:/^#\{|\}$/,expression:{pattern:/[\s\S]+/,inside:e.languages.tremor}}},string:/[\s\S]+/}},e.languages.troy=e.languages.tremor,e.languages.trickle=e.languages.tremor}t.exports=r,r.displayName="tremor",r.aliases=[]},927492,(e,t,n)=>{"use strict";var r=e.r(494238),a=e.r(713758);function i(e){var t,n;e.register(r),e.register(a),t=e.util.clone(e.languages.typescript),e.languages.tsx=e.languages.extend("jsx",t),delete e.languages.tsx.parameter,delete e.languages.tsx["literal-property"],(n=e.languages.tsx.tag).pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+n.pattern.source+")",n.pattern.flags),n.lookbehind=!0}t.exports=i,i.displayName="tsx",i.aliases=[]},234215,(e,t,n)=>{"use strict";var r=e.r(426226);function a(e){e.register(r),e.languages.tt2=e.languages.extend("clike",{comment:/#.*|\[%#[\s\S]*?%\]/,keyword:/\b(?:BLOCK|CALL|CASE|CATCH|CLEAR|DEBUG|DEFAULT|ELSE|ELSIF|END|FILTER|FINAL|FOREACH|GET|IF|IN|INCLUDE|INSERT|LAST|MACRO|META|NEXT|PERL|PROCESS|RAWPERL|RETURN|SET|STOP|SWITCH|TAGS|THROW|TRY|UNLESS|USE|WHILE|WRAPPER)\b/,punctuation:/[[\]{},()]/}),e.languages.insertBefore("tt2","number",{operator:/=[>=]?|!=?|<=?|>=?|&&|\|\|?|\b(?:and|not|or)\b/,variable:{pattern:/\b[a-z]\w*(?:\s*\.\s*(?:\d+|\$?[a-z]\w*))*\b/i}}),e.languages.insertBefore("tt2","keyword",{delimiter:{pattern:/^(?:\[%|%%)-?|-?%\]$/,alias:"punctuation"}}),e.languages.insertBefore("tt2","string",{"single-quoted-string":{pattern:/'[^\\']*(?:\\[\s\S][^\\']*)*'/,greedy:!0,alias:"string"},"double-quoted-string":{pattern:/"[^\\"]*(?:\\[\s\S][^\\"]*)*"/,greedy:!0,alias:"string",inside:{variable:{pattern:/\$(?:[a-z]\w*(?:\.(?:\d+|\$?[a-z]\w*))*)/i}}}}),delete e.languages.tt2.string,e.hooks.add("before-tokenize",function(t){e.languages["markup-templating"].buildPlaceholders(t,"tt2",/\[%[\s\S]+?%\]/g)}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"tt2")})}t.exports=a,a.displayName="tt2",a.aliases=[]},181106,(e,t,n)=>{"use strict";var r=e.r(426226);function a(e){e.register(r),e.languages.twig={comment:/^\{#[\s\S]*?#\}$/,"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/}},keyword:/\b(?:even|if|odd)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/},e.hooks.add("before-tokenize",function(t){"twig"===t.language&&e.languages["markup-templating"].buildPlaceholders(t,"twig",/\{(?:#[\s\S]*?#|%[\s\S]*?%|\{[\s\S]*?\})\}/g)}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"twig")})}t.exports=a,a.displayName="twig",a.aliases=[]},407049,(e,t,n)=>{"use strict";function r(e){var t;t=/\b(?:ACT|ACTIFSUB|CARRAY|CASE|CLEARGIF|COA|COA_INT|CONSTANTS|CONTENT|CUR|EDITPANEL|EFFECT|EXT|FILE|FLUIDTEMPLATE|FORM|FRAME|FRAMESET|GIFBUILDER|GMENU|GMENU_FOLDOUT|GMENU_LAYERS|GP|HMENU|HRULER|HTML|IENV|IFSUB|IMAGE|IMGMENU|IMGMENUITEM|IMGTEXT|IMG_RESOURCE|INCLUDE_TYPOSCRIPT|JSMENU|JSMENUITEM|LLL|LOAD_REGISTER|NO|PAGE|RECORDS|RESTORE_REGISTER|TEMPLATE|TEXT|TMENU|TMENUITEM|TMENU_LAYERS|USER|USER_INT|_GIFBUILDER|global|globalString|globalVar)\b/,e.languages.typoscript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:= \t]|(?:^|[^= \t])[ \t]+)\/\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|[^"'])#.*/,lookbehind:!0,greedy:!0}],function:[{pattern:/<INCLUDE_TYPOSCRIPT:\s*source\s*=\s*(?:"[^"\r\n]*"|'[^'\r\n]*')\s*>/,inside:{string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,inside:{keyword:t}},keyword:{pattern:/INCLUDE_TYPOSCRIPT/}}},{pattern:/@import\s*(?:"[^"\r\n]*"|'[^'\r\n]*')/,inside:{string:/"[^"\r\n]*"|'[^'\r\n]*'/}}],string:{pattern:/^([^=]*=[< ]?)(?:(?!\]\n).)*/,lookbehind:!0,inside:{function:/\{\$.*\}/,keyword:t,number:/^\d+$/,punctuation:/[,|:]/}},keyword:t,number:{pattern:/\b\d+\s*[.{=]/,inside:{operator:/[.{=]/}},tag:{pattern:/\.?[-\w\\]+\.?/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:|]/,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/},e.languages.tsconfig=e.languages.typoscript}t.exports=r,r.displayName="typoscript",r.aliases=["tsconfig"]},165952,(e,t,n)=>{"use strict";function r(e){e.languages.unrealscript={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},category:{pattern:/(\b(?:(?:autoexpand|hide|show)categories|var)\s*\()[^()]+(?=\))/,lookbehind:!0,greedy:!0,alias:"property"},metadata:{pattern:/(\w\s*)<\s*\w+\s*=[^<>|=\r\n]+(?:\|\s*\w+\s*=[^<>|=\r\n]+)*>/,lookbehind:!0,greedy:!0,inside:{property:/\b\w+(?=\s*=)/,operator:/=/,punctuation:/[<>|]/}},macro:{pattern:/`\w+/,alias:"property"},"class-name":{pattern:/(\b(?:class|enum|extends|interface|state(?:\(\))?|struct|within)\s+)\w+/,lookbehind:!0},keyword:/\b(?:abstract|actor|array|auto|autoexpandcategories|bool|break|byte|case|class|classgroup|client|coerce|collapsecategories|config|const|continue|default|defaultproperties|delegate|dependson|deprecated|do|dontcollapsecategories|editconst|editinlinenew|else|enum|event|exec|export|extends|final|float|for|forcescriptorder|foreach|function|goto|guid|hidecategories|hidedropdown|if|ignores|implements|inherits|input|int|interface|iterator|latent|local|material|name|native|nativereplication|noexport|nontransient|noteditinlinenew|notplaceable|operator|optional|out|pawn|perobjectconfig|perobjectlocalized|placeable|postoperator|preoperator|private|protected|reliable|replication|return|server|showcategories|simulated|singular|state|static|string|struct|structdefault|structdefaultproperties|switch|texture|transient|travel|unreliable|until|var|vector|while|within)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/>>|<<|--|\+\+|\*\*|[-+*/~!=<>$@]=?|&&?|\|\|?|\^\^?|[?:%]|\b(?:ClockwiseFrom|Cross|Dot)\b/,punctuation:/[()[\]{};,.]/},e.languages.uc=e.languages.uscript=e.languages.unrealscript}t.exports=r,r.displayName="unrealscript",r.aliases=["uc","uscript"]},78970,(e,t,n)=>{"use strict";function r(e){e.languages.uorazor={"comment-hash":{pattern:/#.*/,alias:"comment",greedy:!0},"comment-slash":{pattern:/\/\/.*/,alias:"comment",greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/},greedy:!0},"source-layers":{pattern:/\b(?:arms|backpack|blue|bracelet|cancel|clear|cloak|criminal|earrings|enemy|facialhair|friend|friendly|gloves|gray|grey|ground|hair|head|innerlegs|innertorso|innocent|lefthand|middletorso|murderer|neck|nonfriendly|onehandedsecondary|outerlegs|outertorso|pants|red|righthand|ring|self|shirt|shoes|talisman|waist)\b/i,alias:"function"},"source-commands":{pattern:/\b(?:alliance|attack|cast|clearall|clearignore|clearjournal|clearlist|clearsysmsg|createlist|createtimer|dclick|dclicktype|dclickvar|dress|dressconfig|drop|droprelloc|emote|getlabel|guild|gumpclose|gumpresponse|hotkey|ignore|lasttarget|lift|lifttype|menu|menuresponse|msg|org|organize|organizer|overhead|pause|poplist|potion|promptresponse|pushlist|removelist|removetimer|rename|restock|say|scav|scavenger|script|setability|setlasttarget|setskill|settimer|setvar|sysmsg|target|targetloc|targetrelloc|targettype|undress|unignore|unsetvar|useobject|useonce|useskill|usetype|virtue|wait|waitforgump|waitformenu|waitforprompt|waitforstat|waitforsysmsg|waitfortarget|walk|wfsysmsg|wft|whisper|yell)\b/,alias:"function"},"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},function:/\b(?:atlist|close|closest|count|counter|counttype|dead|dex|diffhits|diffmana|diffstam|diffweight|find|findbuff|finddebuff|findlayer|findtype|findtypelist|followers|gumpexists|hidden|hits|hp|hue|human|humanoid|ingump|inlist|insysmessage|insysmsg|int|invul|lhandempty|list|listexists|mana|maxhits|maxhp|maxmana|maxstam|maxweight|monster|mounted|name|next|noto|paralyzed|poisoned|position|prev|previous|queued|rand|random|rhandempty|skill|stam|str|targetexists|timer|timerexists|varexist|warmode|weight)\b/,keyword:/\b(?:and|as|break|continue|else|elseif|endfor|endif|endwhile|for|if|loop|not|or|replay|stop|while)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/}}t.exports=r,r.displayName="uorazor",r.aliases=[]},49633,(e,t,n)=>{"use strict";function r(e){e.languages.uri={scheme:{pattern:/^[a-z][a-z0-9+.-]*:/im,greedy:!0,inside:{"scheme-delimiter":/:$/}},fragment:{pattern:/#[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"fragment-delimiter":/^#/}},query:{pattern:/\?[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"query-delimiter":{pattern:/^\?/,greedy:!0},"pair-delimiter":/[&;]/,pair:{pattern:/^[^=][\s\S]*/,inside:{key:/^[^=]+/,value:{pattern:/(^=)[\s\S]+/,lookbehind:!0}}}}},authority:{pattern:RegExp(/^\/\//.source+/(?:[\w\-.~!$&'()*+,;=%:]*@)?/.source+("(?:"+/\[(?:[0-9a-fA-F:.]{2,48}|v[0-9a-fA-F]+\.[\w\-.~!$&'()*+,;=]+)\]/.source+"|")+/[\w\-.~!$&'()*+,;=%]*/.source+")"+/(?::\d*)?/.source,"m"),inside:{"authority-delimiter":/^\/\//,"user-info-segment":{pattern:/^[\w\-.~!$&'()*+,;=%:]*@/,inside:{"user-info-delimiter":/@$/,"user-info":/^[\w\-.~!$&'()*+,;=%:]+/}},"port-segment":{pattern:/:\d*$/,inside:{"port-delimiter":/^:/,port:/^\d+/}},host:{pattern:/[\s\S]+/,inside:{"ip-literal":{pattern:/^\[[\s\S]+\]$/,inside:{"ip-literal-delimiter":/^\[|\]$/,"ipv-future":/^v[\s\S]+/,"ipv6-address":/^[\s\S]+/}},"ipv4-address":/^(?:(?:[03-9]\d?|[12]\d{0,2})\.){3}(?:[03-9]\d?|[12]\d{0,2})$/}}}},path:{pattern:/^[\w\-.~!$&'()*+,;=%:@/]+/m,inside:{"path-separator":/\//}}},e.languages.url=e.languages.uri}t.exports=r,r.displayName="uri",r.aliases=["url"]},72751,(e,t,n)=>{"use strict";function r(e){var t;t={pattern:/[\s\S]+/,inside:null},e.languages.v=e.languages.extend("clike",{string:{pattern:/r?(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,alias:"quoted-string",greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[^{}]*\}|\w+(?:\.\w+(?:\([^\(\)]*\))?|\[[^\[\]]+\])*)/,lookbehind:!0,inside:{"interpolation-variable":{pattern:/^\$\w[\s\S]*$/,alias:"variable"},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},"interpolation-expression":t}}}},"class-name":{pattern:/(\b(?:enum|interface|struct|type)\s+)(?:C\.)?\w+/,lookbehind:!0},keyword:/(?:\b(?:__global|as|asm|assert|atomic|break|chan|const|continue|defer|else|embed|enum|fn|for|go(?:to)?|if|import|in|interface|is|lock|match|module|mut|none|or|pub|return|rlock|select|shared|sizeof|static|struct|type(?:of)?|union|unsafe)|\$(?:else|for|if)|#(?:flag|include))\b/,number:/\b(?:0x[a-f\d]+(?:_[a-f\d]+)*|0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?)\b/i,operator:/~|\?|[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\.?/,builtin:/\b(?:any(?:_float|_int)?|bool|byte(?:ptr)?|charptr|f(?:32|64)|i(?:8|16|64|128|nt)|rune|size_t|string|u(?:16|32|64|128)|voidptr)\b/}),t.inside=e.languages.v,e.languages.insertBefore("v","string",{char:{pattern:/`(?:\\`|\\?[^`]{1,2})`/,alias:"rune"}}),e.languages.insertBefore("v","operator",{attribute:{pattern:/(^[\t ]*)\[(?:deprecated|direct_array_access|flag|inline|live|ref_only|typedef|unsafe_fn|windows_stdcall)\]/m,lookbehind:!0,alias:"annotation",inside:{punctuation:/[\[\]]/,keyword:/\w+/}},generic:{pattern:/<\w+>(?=\s*[\)\{])/,inside:{punctuation:/[<>]/,"class-name":/\w+/}}}),e.languages.insertBefore("v","function",{"generic-function":{pattern:/\b\w+\s*<\w+>(?=\()/,inside:{function:/^\w+/,generic:{pattern:/<\w+>/,inside:e.languages.v.generic.inside}}}})}t.exports=r,r.displayName="v",r.aliases=[]},162344,(e,t,n)=>{"use strict";function r(e){e.languages.vala=e.languages.extend("clike",{"class-name":[{pattern:/\b[A-Z]\w*(?:\.\w+)*\b(?=(?:\?\s+|\*?\s+\*?)\w)/,inside:{punctuation:/\./}},{pattern:/(\[)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/(\b(?:class|interface)\s+[A-Z]\w*(?:\.\w+)*\s*:\s*)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/((?:\b(?:class|enum|interface|new|struct)\s+)|(?:catch\s+\())[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}}],keyword:/\b(?:abstract|as|assert|async|base|bool|break|case|catch|char|class|const|construct|continue|default|delegate|delete|do|double|dynamic|else|ensures|enum|errordomain|extern|finally|float|for|foreach|get|if|in|inline|int|int16|int32|int64|int8|interface|internal|is|lock|long|namespace|new|null|out|override|owned|params|private|protected|public|ref|requires|return|set|short|signal|sizeof|size_t|ssize_t|static|string|struct|switch|this|throw|throws|try|typeof|uchar|uint|uint16|uint32|uint64|uint8|ulong|unichar|unowned|ushort|using|value|var|virtual|void|volatile|weak|while|yield)\b/i,function:/\b\w+(?=\s*\()/,number:/(?:\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?:f|u?l?)?/i,operator:/\+\+|--|&&|\|\||<<=?|>>=?|=>|->|~|[+\-*\/%&^|=!<>]=?|\?\??|\.\.\./,punctuation:/[{}[\];(),.:]/,constant:/\b[A-Z0-9_]+\b/}),e.languages.insertBefore("vala","string",{"raw-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"template-string":{pattern:/@"[\s\S]*?"/,greedy:!0,inside:{interpolation:{pattern:/\$(?:\([^)]*\)|[a-zA-Z]\w*)/,inside:{delimiter:{pattern:/^\$\(?|\)$/,alias:"punctuation"},rest:e.languages.vala}},string:/[\s\S]+/}}}),e.languages.insertBefore("vala","keyword",{regex:{pattern:/\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[imsx]{0,4}(?=\s*(?:$|[\r\n,.;})\]]))/,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\//,"regex-flags":/^[a-z]+$/}}})}t.exports=r,r.displayName="vala",r.aliases=[]},624696,(e,t,n)=>{"use strict";function r(e){var t;e.languages.velocity=e.languages.extend("markup",{}),(t={variable:{pattern:/(^|[^\\](?:\\\\)*)\$!?(?:[a-z][\w-]*(?:\([^)]*\))?(?:\.[a-z][\w-]*(?:\([^)]*\))?|\[[^\]]+\])*|\{[^}]+\})/i,lookbehind:!0,inside:{}},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},number:/\b\d+\b/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|[+*/%-]|&&|\|\||\.\.|\b(?:eq|g[et]|l[et]|n(?:e|ot))\b/,punctuation:/[(){}[\]:,.]/}).variable.inside={string:t.string,function:{pattern:/([^\w-])[a-z][\w-]*(?=\()/,lookbehind:!0},number:t.number,boolean:t.boolean,punctuation:t.punctuation},e.languages.insertBefore("velocity","comment",{unparsed:{pattern:/(^|[^\\])#\[\[[\s\S]*?\]\]#/,lookbehind:!0,greedy:!0,inside:{punctuation:/^#\[\[|\]\]#$/}},"velocity-comment":[{pattern:/(^|[^\\])#\*[\s\S]*?\*#/,lookbehind:!0,greedy:!0,alias:"comment"},{pattern:/(^|[^\\])##.*/,lookbehind:!0,greedy:!0,alias:"comment"}],directive:{pattern:/(^|[^\\](?:\\\\)*)#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})(?:\s*\((?:[^()]|\([^()]*\))*\))?/i,lookbehind:!0,inside:{keyword:{pattern:/^#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})|\bin\b/,inside:{punctuation:/[{}]/}},rest:t}},variable:t.variable}),e.languages.velocity.tag.inside["attr-value"].inside.rest=e.languages.velocity}t.exports=r,r.displayName="velocity",r.aliases=[]},458322,(e,t,n)=>{"use strict";function r(e){e.languages.verilog={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"kernel-function":{pattern:/\B\$\w+\b/,alias:"property"},constant:/\B`\w+\b/,function:/\b\w+(?=\()/,keyword:/\b(?:alias|and|assert|assign|assume|automatic|before|begin|bind|bins|binsof|bit|break|buf|bufif0|bufif1|byte|case|casex|casez|cell|chandle|class|clocking|cmos|config|const|constraint|context|continue|cover|covergroup|coverpoint|cross|deassign|default|defparam|design|disable|dist|do|edge|else|end|endcase|endclass|endclocking|endconfig|endfunction|endgenerate|endgroup|endinterface|endmodule|endpackage|endprimitive|endprogram|endproperty|endsequence|endspecify|endtable|endtask|enum|event|expect|export|extends|extern|final|first_match|for|force|foreach|forever|fork|forkjoin|function|generate|genvar|highz0|highz1|if|iff|ifnone|ignore_bins|illegal_bins|import|incdir|include|initial|inout|input|inside|instance|int|integer|interface|intersect|join|join_any|join_none|large|liblist|library|local|localparam|logic|longint|macromodule|matches|medium|modport|module|nand|negedge|new|nmos|nor|noshowcancelled|not|notif0|notif1|null|or|output|package|packed|parameter|pmos|posedge|primitive|priority|program|property|protected|pull0|pull1|pulldown|pullup|pulsestyle_ondetect|pulsestyle_onevent|pure|rand|randc|randcase|randsequence|rcmos|real|realtime|ref|reg|release|repeat|return|rnmos|rpmos|rtran|rtranif0|rtranif1|scalared|sequence|shortint|shortreal|showcancelled|signed|small|solve|specify|specparam|static|string|strong0|strong1|struct|super|supply0|supply1|table|tagged|task|this|throughout|time|timeprecision|timeunit|tran|tranif0|tranif1|tri|tri0|tri1|triand|trior|trireg|type|typedef|union|unique|unsigned|use|uwire|var|vectored|virtual|void|wait|wait_order|wand|weak0|weak1|while|wildcard|wire|with|within|wor|xnor|xor)\b/,important:/\b(?:always|always_comb|always_ff|always_latch)\b(?: *@)?/,number:/\B##?\d+|(?:\b\d+)?'[odbh] ?[\da-fzx_?]+|\b(?:\d*[._])?\d+(?:e[-+]?\d+)?/i,operator:/[-+{}^~%*\/?=!<>&|]+/,punctuation:/[[\];(),.:]/}}t.exports=r,r.displayName="verilog",r.aliases=[]},259818,(e,t,n)=>{"use strict";function r(e){e.languages.vhdl={comment:/--.+/,"vhdl-vectors":{pattern:/\b[oxb]"[\da-f_]+"|"[01uxzwlh-]+"/i,alias:"number"},"quoted-function":{pattern:/"\S+?"(?=\()/,alias:"function"},string:/"(?:[^\\"\r\n]|\\(?:\r\n|[\s\S]))*"/,constant:/\b(?:library|use)\b/i,keyword:/\b(?:'active|'ascending|'base|'delayed|'driving|'driving_value|'event|'high|'image|'instance_name|'last_active|'last_event|'last_value|'left|'leftof|'length|'low|'path_name|'pos|'pred|'quiet|'range|'reverse_range|'right|'rightof|'simple_name|'stable|'succ|'transaction|'val|'value|access|after|alias|all|architecture|array|assert|attribute|begin|block|body|buffer|bus|case|component|configuration|constant|disconnect|downto|else|elsif|end|entity|exit|file|for|function|generate|generic|group|guarded|if|impure|in|inertial|inout|is|label|library|linkage|literal|loop|map|new|next|null|of|on|open|others|out|package|port|postponed|procedure|process|pure|range|record|register|reject|report|return|select|severity|shared|signal|subtype|then|to|transport|type|unaffected|units|until|use|variable|wait|when|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\w+(?=\()/,number:/'[01uxzwlh-]'|\b(?:\d+#[\da-f_.]+#|\d[\d_.]*)(?:e[-+]?\d+)?/i,operator:/[<>]=?|:=|[-+*/&=]|\b(?:abs|and|mod|nand|nor|not|or|rem|rol|ror|sla|sll|sra|srl|xnor|xor)\b/i,punctuation:/[{}[\];(),.:]/}}t.exports=r,r.displayName="vhdl",r.aliases=[]},228279,(e,t,n)=>{"use strict";function r(e){e.languages.vim={string:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\r\n]|'')*'/,comment:/".*/,function:/\b\w+(?=\()/,keyword:/\b(?:N|Next|P|Print|X|XMLent|XMLns|ab|abbreviate|abc|abclear|abo|aboveleft|al|all|ar|arga|argadd|argd|argdelete|argdo|arge|argedit|argg|argglobal|argl|arglocal|args|argu|argument|as|ascii|b|bN|bNext|ba|bad|badd|ball|bd|bdelete|be|bel|belowright|bf|bfirst|bl|blast|bm|bmodified|bn|bnext|bo|botright|bp|bprevious|br|brea|break|breaka|breakadd|breakd|breakdel|breakl|breaklist|brewind|bro|browse|bufdo|buffer|buffers|bun|bunload|bw|bwipeout|c|cN|cNext|cNfcNfile|ca|cabbrev|cabc|cabclear|cad|caddb|caddbuffer|caddexpr|caddf|caddfile|cal|call|cat|catch|cb|cbuffer|cc|ccl|cclose|cd|ce|center|cex|cexpr|cf|cfile|cfir|cfirst|cg|cgetb|cgetbuffer|cgete|cgetexpr|cgetfile|change|changes|chd|chdir|che|checkpath|checkt|checktime|cl|cla|clast|clist|clo|close|cmapc|cmapclear|cn|cnew|cnewer|cnext|cnf|cnfile|cnorea|cnoreabbrev|co|col|colder|colo|colorscheme|comc|comclear|comp|compiler|con|conf|confirm|continue|cope|copen|copy|cp|cpf|cpfile|cprevious|cq|cquit|cr|crewind|cu|cuna|cunabbrev|cunmap|cw|cwindow|d|debugg|debuggreedy|delc|delcommand|delete|delf|delfunction|delm|delmarks|di|diffg|diffget|diffoff|diffpatch|diffpu|diffput|diffsplit|diffthis|diffu|diffupdate|dig|digraphs|display|dj|djump|dl|dlist|dr|drop|ds|dsearch|dsp|dsplit|e|earlier|echoe|echoerr|echom|echomsg|echon|edit|el|else|elsei|elseif|em|emenu|en|endf|endfo|endfor|endfun|endfunction|endif|endt|endtry|endw|endwhile|ene|enew|ex|exi|exit|exu|exusage|f|file|files|filetype|fin|fina|finally|find|fini|finish|fir|first|fix|fixdel|fo|fold|foldc|foldclose|foldd|folddoc|folddoclosed|folddoopen|foldo|foldopen|for|fu|fun|function|go|goto|gr|grep|grepa|grepadd|h|ha|hardcopy|help|helpf|helpfind|helpg|helpgrep|helpt|helptags|hid|hide|his|history|ia|iabbrev|iabc|iabclear|if|ij|ijump|il|ilist|imapc|imapclear|in|inorea|inoreabbrev|isearch|isp|isplit|iu|iuna|iunabbrev|iunmap|j|join|ju|jumps|k|kee|keepalt|keepj|keepjumps|keepmarks|l|lN|lNext|lNf|lNfile|la|lad|laddb|laddbuffer|laddexpr|laddf|laddfile|lan|language|last|later|lb|lbuffer|lc|lcd|lch|lchdir|lcl|lclose|left|lefta|leftabove|let|lex|lexpr|lf|lfile|lfir|lfirst|lg|lgetb|lgetbuffer|lgete|lgetexpr|lgetfile|lgr|lgrep|lgrepa|lgrepadd|lh|lhelpgrep|list|ll|lla|llast|lli|llist|lm|lmak|lmake|lmap|lmapc|lmapclear|ln|lne|lnew|lnewer|lnext|lnf|lnfile|lnoremap|lo|loadview|loc|lockmarks|lockv|lockvar|lol|lolder|lop|lopen|lp|lpf|lpfile|lprevious|lr|lrewind|ls|lt|ltag|lu|lunmap|lv|lvimgrep|lvimgrepa|lvimgrepadd|lw|lwindow|m|ma|mak|make|mark|marks|mat|match|menut|menutranslate|mk|mkexrc|mks|mksession|mksp|mkspell|mkv|mkvie|mkview|mkvimrc|mod|mode|move|mz|mzf|mzfile|mzscheme|n|nbkey|new|next|nmapc|nmapclear|noh|nohlsearch|norea|noreabbrev|nu|number|nun|nunmap|o|omapc|omapclear|on|only|open|opt|options|ou|ounmap|p|pc|pclose|pe|ped|pedit|perl|perld|perldo|po|pop|popu|popup|pp|ppop|pre|preserve|prev|previous|print|prof|profd|profdel|profile|promptf|promptfind|promptr|promptrepl|ps|psearch|ptN|ptNext|pta|ptag|ptf|ptfirst|ptj|ptjump|ptl|ptlast|ptn|ptnext|ptp|ptprevious|ptr|ptrewind|pts|ptselect|pu|put|pw|pwd|py|pyf|pyfile|python|q|qa|qall|quit|quita|quitall|r|read|rec|recover|red|redi|redir|redo|redr|redraw|redraws|redrawstatus|reg|registers|res|resize|ret|retab|retu|return|rew|rewind|ri|right|rightb|rightbelow|ru|rub|ruby|rubyd|rubydo|rubyf|rubyfile|runtime|rv|rviminfo|sN|sNext|sa|sal|sall|san|sandbox|sargument|sav|saveas|sb|sbN|sbNext|sba|sball|sbf|sbfirst|sbl|sblast|sbm|sbmodified|sbn|sbnext|sbp|sbprevious|sbr|sbrewind|sbuffer|scrip|scripte|scriptencoding|scriptnames|se|set|setf|setfiletype|setg|setglobal|setl|setlocal|sf|sfind|sfir|sfirst|sh|shell|sign|sil|silent|sim|simalt|sl|sla|slast|sleep|sm|smagic|smap|smapc|smapclear|sme|smenu|sn|snext|sni|sniff|sno|snomagic|snor|snoremap|snoreme|snoremenu|so|sor|sort|source|sp|spe|spelld|spelldump|spellgood|spelli|spellinfo|spellr|spellrepall|spellu|spellundo|spellw|spellwrong|split|spr|sprevious|sre|srewind|st|sta|stag|star|startg|startgreplace|startinsert|startr|startreplace|stj|stjump|stop|stopi|stopinsert|sts|stselect|sun|sunhide|sunm|sunmap|sus|suspend|sv|sview|syncbind|t|tN|tNext|ta|tab|tabN|tabNext|tabc|tabclose|tabd|tabdo|tabe|tabedit|tabf|tabfind|tabfir|tabfirst|tabl|tablast|tabm|tabmove|tabn|tabnew|tabnext|tabo|tabonly|tabp|tabprevious|tabr|tabrewind|tabs|tag|tags|tc|tcl|tcld|tcldo|tclf|tclfile|te|tearoff|tf|tfirst|th|throw|tj|tjump|tl|tlast|tm|tmenu|tn|tnext|to|topleft|tp|tprevious|tr|trewind|try|ts|tselect|tu|tunmenu|u|una|unabbreviate|undo|undoj|undojoin|undol|undolist|unh|unhide|unlet|unlo|unlockvar|unm|unmap|up|update|ve|verb|verbose|version|vert|vertical|vi|vie|view|vim|vimgrep|vimgrepa|vimgrepadd|visual|viu|viusage|vmapc|vmapclear|vne|vnew|vs|vsplit|vu|vunmap|w|wN|wNext|wa|wall|wh|while|win|winc|wincmd|windo|winp|winpos|winsize|wn|wnext|wp|wprevious|wq|wqa|wqall|write|ws|wsverb|wv|wviminfo|x|xa|xall|xit|xm|xmap|xmapc|xmapclear|xme|xmenu|xn|xnoremap|xnoreme|xnoremenu|xu|xunmap|y|yank)\b/,builtin:/\b(?:acd|ai|akm|aleph|allowrevins|altkeymap|ambiwidth|ambw|anti|antialias|arab|arabic|arabicshape|ari|arshape|autochdir|autocmd|autoindent|autoread|autowrite|autowriteall|aw|awa|background|backspace|backup|backupcopy|backupdir|backupext|backupskip|balloondelay|ballooneval|balloonexpr|bdir|bdlay|beval|bex|bexpr|bg|bh|bin|binary|biosk|bioskey|bk|bkc|bomb|breakat|brk|browsedir|bs|bsdir|bsk|bt|bufhidden|buflisted|buftype|casemap|ccv|cdpath|cedit|cfu|ch|charconvert|ci|cin|cindent|cink|cinkeys|cino|cinoptions|cinw|cinwords|clipboard|cmdheight|cmdwinheight|cmp|cms|columns|com|comments|commentstring|compatible|complete|completefunc|completeopt|consk|conskey|copyindent|cot|cpo|cpoptions|cpt|cscopepathcomp|cscopeprg|cscopequickfix|cscopetag|cscopetagorder|cscopeverbose|cspc|csprg|csqf|cst|csto|csverb|cuc|cul|cursorcolumn|cursorline|cwh|debug|deco|def|define|delcombine|dex|dg|dict|dictionary|diff|diffexpr|diffopt|digraph|dip|dir|directory|dy|ea|ead|eadirection|eb|ed|edcompatible|ef|efm|ei|ek|enc|encoding|endofline|eol|ep|equalalways|equalprg|errorbells|errorfile|errorformat|esckeys|et|eventignore|expandtab|exrc|fcl|fcs|fdc|fde|fdi|fdl|fdls|fdm|fdn|fdo|fdt|fen|fenc|fencs|fex|ff|ffs|fileencoding|fileencodings|fileformat|fileformats|fillchars|fk|fkmap|flp|fml|fmr|foldcolumn|foldenable|foldexpr|foldignore|foldlevel|foldlevelstart|foldmarker|foldmethod|foldminlines|foldnestmax|foldtext|formatexpr|formatlistpat|formatoptions|formatprg|fp|fs|fsync|ft|gcr|gd|gdefault|gfm|gfn|gfs|gfw|ghr|gp|grepformat|grepprg|gtl|gtt|guicursor|guifont|guifontset|guifontwide|guiheadroom|guioptions|guipty|guitablabel|guitabtooltip|helpfile|helpheight|helplang|hf|hh|hi|hidden|highlight|hk|hkmap|hkmapp|hkp|hl|hlg|hls|hlsearch|ic|icon|iconstring|ignorecase|im|imactivatekey|imak|imc|imcmdline|imd|imdisable|imi|iminsert|ims|imsearch|inc|include|includeexpr|incsearch|inde|indentexpr|indentkeys|indk|inex|inf|infercase|insertmode|invacd|invai|invakm|invallowrevins|invaltkeymap|invanti|invantialias|invar|invarab|invarabic|invarabicshape|invari|invarshape|invautochdir|invautoindent|invautoread|invautowrite|invautowriteall|invaw|invawa|invbackup|invballooneval|invbeval|invbin|invbinary|invbiosk|invbioskey|invbk|invbl|invbomb|invbuflisted|invcf|invci|invcin|invcindent|invcompatible|invconfirm|invconsk|invconskey|invcopyindent|invcp|invcscopetag|invcscopeverbose|invcst|invcsverb|invcuc|invcul|invcursorcolumn|invcursorline|invdeco|invdelcombine|invdg|invdiff|invdigraph|invdisable|invea|inveb|inved|invedcompatible|invek|invendofline|inveol|invequalalways|inverrorbells|invesckeys|invet|invex|invexpandtab|invexrc|invfen|invfk|invfkmap|invfoldenable|invgd|invgdefault|invguipty|invhid|invhidden|invhk|invhkmap|invhkmapp|invhkp|invhls|invhlsearch|invic|invicon|invignorecase|invim|invimc|invimcmdline|invimd|invincsearch|invinf|invinfercase|invinsertmode|invis|invjoinspaces|invjs|invlazyredraw|invlbr|invlinebreak|invlisp|invlist|invloadplugins|invlpl|invlz|invma|invmacatsui|invmagic|invmh|invml|invmod|invmodeline|invmodifiable|invmodified|invmore|invmousef|invmousefocus|invmousehide|invnu|invnumber|invodev|invopendevice|invpaste|invpi|invpreserveindent|invpreviewwindow|invprompt|invpvw|invreadonly|invremap|invrestorescreen|invrevins|invri|invrightleft|invrightleftcmd|invrl|invrlc|invro|invrs|invru|invruler|invsb|invsc|invscb|invscrollbind|invscs|invsecure|invsft|invshellslash|invshelltemp|invshiftround|invshortname|invshowcmd|invshowfulltag|invshowmatch|invshowmode|invsi|invsm|invsmartcase|invsmartindent|invsmarttab|invsmd|invsn|invsol|invspell|invsplitbelow|invsplitright|invspr|invsr|invssl|invsta|invstartofline|invstmp|invswapfile|invswf|invta|invtagbsearch|invtagrelative|invtagstack|invtbi|invtbidi|invtbs|invtermbidi|invterse|invtextauto|invtextmode|invtf|invtgst|invtildeop|invtimeout|invtitle|invto|invtop|invtr|invttimeout|invttybuiltin|invttyfast|invtx|invvb|invvisualbell|invwa|invwarn|invwb|invweirdinvert|invwfh|invwfw|invwildmenu|invwinfixheight|invwinfixwidth|invwiv|invwmnu|invwrap|invwrapscan|invwrite|invwriteany|invwritebackup|invws|isf|isfname|isi|isident|isk|iskeyword|isprint|joinspaces|js|key|keymap|keymodel|keywordprg|km|kmp|kp|langmap|langmenu|laststatus|lazyredraw|lbr|lcs|linebreak|lines|linespace|lisp|lispwords|listchars|loadplugins|lpl|lsp|lz|macatsui|magic|makeef|makeprg|matchpairs|matchtime|maxcombine|maxfuncdepth|maxmapdepth|maxmem|maxmempattern|maxmemtot|mco|mef|menuitems|mfd|mh|mis|mkspellmem|ml|mls|mm|mmd|mmp|mmt|modeline|modelines|modifiable|modified|more|mouse|mousef|mousefocus|mousehide|mousem|mousemodel|mouses|mouseshape|mouset|mousetime|mp|mps|msm|mzq|mzquantum|nf|noacd|noai|noakm|noallowrevins|noaltkeymap|noanti|noantialias|noar|noarab|noarabic|noarabicshape|noari|noarshape|noautochdir|noautoindent|noautoread|noautowrite|noautowriteall|noaw|noawa|nobackup|noballooneval|nobeval|nobin|nobinary|nobiosk|nobioskey|nobk|nobl|nobomb|nobuflisted|nocf|noci|nocin|nocindent|nocompatible|noconfirm|noconsk|noconskey|nocopyindent|nocp|nocscopetag|nocscopeverbose|nocst|nocsverb|nocuc|nocul|nocursorcolumn|nocursorline|nodeco|nodelcombine|nodg|nodiff|nodigraph|nodisable|noea|noeb|noed|noedcompatible|noek|noendofline|noeol|noequalalways|noerrorbells|noesckeys|noet|noex|noexpandtab|noexrc|nofen|nofk|nofkmap|nofoldenable|nogd|nogdefault|noguipty|nohid|nohidden|nohk|nohkmap|nohkmapp|nohkp|nohls|noic|noicon|noignorecase|noim|noimc|noimcmdline|noimd|noincsearch|noinf|noinfercase|noinsertmode|nois|nojoinspaces|nojs|nolazyredraw|nolbr|nolinebreak|nolisp|nolist|noloadplugins|nolpl|nolz|noma|nomacatsui|nomagic|nomh|noml|nomod|nomodeline|nomodifiable|nomodified|nomore|nomousef|nomousefocus|nomousehide|nonu|nonumber|noodev|noopendevice|nopaste|nopi|nopreserveindent|nopreviewwindow|noprompt|nopvw|noreadonly|noremap|norestorescreen|norevins|nori|norightleft|norightleftcmd|norl|norlc|noro|nors|noru|noruler|nosb|nosc|noscb|noscrollbind|noscs|nosecure|nosft|noshellslash|noshelltemp|noshiftround|noshortname|noshowcmd|noshowfulltag|noshowmatch|noshowmode|nosi|nosm|nosmartcase|nosmartindent|nosmarttab|nosmd|nosn|nosol|nospell|nosplitbelow|nosplitright|nospr|nosr|nossl|nosta|nostartofline|nostmp|noswapfile|noswf|nota|notagbsearch|notagrelative|notagstack|notbi|notbidi|notbs|notermbidi|noterse|notextauto|notextmode|notf|notgst|notildeop|notimeout|notitle|noto|notop|notr|nottimeout|nottybuiltin|nottyfast|notx|novb|novisualbell|nowa|nowarn|nowb|noweirdinvert|nowfh|nowfw|nowildmenu|nowinfixheight|nowinfixwidth|nowiv|nowmnu|nowrap|nowrapscan|nowrite|nowriteany|nowritebackup|nows|nrformats|numberwidth|nuw|odev|oft|ofu|omnifunc|opendevice|operatorfunc|opfunc|osfiletype|pa|para|paragraphs|paste|pastetoggle|patchexpr|patchmode|path|pdev|penc|pex|pexpr|pfn|ph|pheader|pi|pm|pmbcs|pmbfn|popt|preserveindent|previewheight|previewwindow|printdevice|printencoding|printexpr|printfont|printheader|printmbcharset|printmbfont|printoptions|prompt|pt|pumheight|pvh|pvw|qe|quoteescape|readonly|remap|report|restorescreen|revins|rightleft|rightleftcmd|rl|rlc|ro|rs|rtp|ruf|ruler|rulerformat|runtimepath|sbo|sc|scb|scr|scroll|scrollbind|scrolljump|scrolloff|scrollopt|scs|sect|sections|secure|sel|selection|selectmode|sessionoptions|sft|shcf|shellcmdflag|shellpipe|shellquote|shellredir|shellslash|shelltemp|shelltype|shellxquote|shiftround|shiftwidth|shm|shortmess|shortname|showbreak|showcmd|showfulltag|showmatch|showmode|showtabline|shq|si|sidescroll|sidescrolloff|siso|sj|slm|smartcase|smartindent|smarttab|smc|smd|softtabstop|sol|spc|spell|spellcapcheck|spellfile|spelllang|spellsuggest|spf|spl|splitbelow|splitright|sps|sr|srr|ss|ssl|ssop|stal|startofline|statusline|stl|stmp|su|sua|suffixes|suffixesadd|sw|swapfile|swapsync|swb|swf|switchbuf|sws|sxq|syn|synmaxcol|syntax|t_AB|t_AF|t_AL|t_CS|t_CV|t_Ce|t_Co|t_Cs|t_DL|t_EI|t_F1|t_F2|t_F3|t_F4|t_F5|t_F6|t_F7|t_F8|t_F9|t_IE|t_IS|t_K1|t_K3|t_K4|t_K5|t_K6|t_K7|t_K8|t_K9|t_KA|t_KB|t_KC|t_KD|t_KE|t_KF|t_KG|t_KH|t_KI|t_KJ|t_KK|t_KL|t_RI|t_RV|t_SI|t_Sb|t_Sf|t_WP|t_WS|t_ZH|t_ZR|t_al|t_bc|t_cd|t_ce|t_cl|t_cm|t_cs|t_da|t_db|t_dl|t_fs|t_k1|t_k2|t_k3|t_k4|t_k5|t_k6|t_k7|t_k8|t_k9|t_kB|t_kD|t_kI|t_kN|t_kP|t_kb|t_kd|t_ke|t_kh|t_kl|t_kr|t_ks|t_ku|t_le|t_mb|t_md|t_me|t_mr|t_ms|t_nd|t_op|t_se|t_so|t_sr|t_te|t_ti|t_ts|t_ue|t_us|t_ut|t_vb|t_ve|t_vi|t_vs|t_xs|tabline|tabpagemax|tabstop|tagbsearch|taglength|tagrelative|tagstack|tal|tb|tbi|tbidi|tbis|tbs|tenc|term|termbidi|termencoding|terse|textauto|textmode|textwidth|tgst|thesaurus|tildeop|timeout|timeoutlen|title|titlelen|titleold|titlestring|toolbar|toolbariconsize|top|tpm|tsl|tsr|ttimeout|ttimeoutlen|ttm|tty|ttybuiltin|ttyfast|ttym|ttymouse|ttyscroll|ttytype|tw|tx|uc|ul|undolevels|updatecount|updatetime|ut|vb|vbs|vdir|verbosefile|vfile|viewdir|viewoptions|viminfo|virtualedit|visualbell|vop|wak|warn|wb|wc|wcm|wd|weirdinvert|wfh|wfw|whichwrap|wi|wig|wildchar|wildcharm|wildignore|wildmenu|wildmode|wildoptions|wim|winaltkeys|window|winfixheight|winfixwidth|winheight|winminheight|winminwidth|winwidth|wiv|wiw|wm|wmh|wmnu|wmw|wop|wrap|wrapmargin|wrapscan|writeany|writebackup|writedelay|ww)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?)\b/i,operator:/\|\||&&|[-+.]=?|[=!](?:[=~][#?]?)?|[<>]=?[#?]?|[*\/%?]|\b(?:is(?:not)?)\b/,punctuation:/[{}[\](),;:]/}}t.exports=r,r.displayName="vim",r.aliases=[]},643887,(e,t,n)=>{"use strict";function r(e){e.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:\b_[ \t]*(?:\r\n?|\n)|.)+/i,alias:"property",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[ \t]*(?:\d+([/-])\d+\1\d+(?:[ \t]+(?:\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?))?|\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?)[ \t]*#/i,alias:"number"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:[FRD]|U?[ILS])?/i,boolean:/\b(?:False|Nothing|True)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Until|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Xor)\b/i,operator:/[+\-*/\\^<=>&#@$%!]|\b_(?=[ \t]*[\r\n])/,punctuation:/[{}().,:?]/},e.languages.vb=e.languages["visual-basic"],e.languages.vba=e.languages["visual-basic"]}t.exports=r,r.displayName="visualBasic",r.aliases=[]},310250,(e,t,n)=>{"use strict";function r(e){e.languages.warpscript={comment:/#.*|\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'|<'(?:[^\\']|'(?!>)|\\.)*'>/,greedy:!0},variable:/\$\S+/,macro:{pattern:/@\S+/,alias:"property"},keyword:/\b(?:BREAK|CHECKMACRO|CONTINUE|CUDF|DEFINED|DEFINEDMACRO|EVAL|FAIL|FOR|FOREACH|FORSTEP|IFT|IFTE|MSGFAIL|NRETURN|RETHROW|RETURN|SWITCH|TRY|UDF|UNTIL|WHILE)\b/,number:/[+-]?\b(?:NaN|Infinity|\d+(?:\.\d*)?(?:[Ee][+-]?\d+)?|0x[\da-fA-F]+|0b[01]+)\b/,boolean:/\b(?:F|T|false|true)\b/,punctuation:/<%|%>|[{}[\]()]/,operator:/==|&&?|\|\|?|\*\*?|>>>?|<<|[<>!~]=?|[-/%^]|\+!?|\b(?:AND|NOT|OR)\b/}}t.exports=r,r.displayName="warpscript",r.aliases=[]},878199,(e,t,n)=>{"use strict";function r(e){e.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/}}t.exports=r,r.displayName="wasm",r.aliases=[]},435059,(e,t,n)=>{"use strict";function r(e){var t=/(?:\B-|\b_|\b)[A-Za-z][\w-]*(?![\w-])/.source,n="(?:"+/\b(?:unsigned\s+)?long\s+long(?![\w-])/.source+"|"+/\b(?:unrestricted|unsigned)\s+[a-z]+(?![\w-])/.source+"|"+/(?!(?:unrestricted|unsigned)\b)/.source+t+/(?:\s*<(?:[^<>]|<[^<>]*>)*>)?/.source+")"+/(?:\s*\?)?/.source,r={};for(var a in e.languages["web-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"[^"]*"/,greedy:!0},namespace:{pattern:RegExp(/(\bnamespace\s+)/.source+t),lookbehind:!0},"class-name":[{pattern:/(^|[^\w-])(?:iterable|maplike|setlike)\s*<(?:[^<>]|<[^<>]*>)*>/,lookbehind:!0,inside:r},{pattern:RegExp(/(\b(?:attribute|const|deleter|getter|optional|setter)\s+)/.source+n),lookbehind:!0,inside:r},{pattern:RegExp("("+/\bcallback\s+/.source+t+/\s*=\s*/.source+")"+n),lookbehind:!0,inside:r},{pattern:RegExp(/(\btypedef\b\s*)/.source+n),lookbehind:!0,inside:r},{pattern:RegExp(/(\b(?:callback|dictionary|enum|interface(?:\s+mixin)?)\s+)(?!(?:interface|mixin)\b)/.source+t),lookbehind:!0},{pattern:RegExp(/(:\s*)/.source+t),lookbehind:!0},RegExp(t+/(?=\s+(?:implements|includes)\b)/.source),{pattern:RegExp(/(\b(?:implements|includes)\s+)/.source+t),lookbehind:!0},{pattern:RegExp(n+"(?="+/\s*(?:\.{3}\s*)?/.source+t+/\s*[(),;=]/.source+")"),inside:r}],builtin:/\b(?:ArrayBuffer|BigInt64Array|BigUint64Array|ByteString|DOMString|DataView|Float32Array|Float64Array|FrozenArray|Int16Array|Int32Array|Int8Array|ObservableArray|Promise|USVString|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray)\b/,keyword:[/\b(?:async|attribute|callback|const|constructor|deleter|dictionary|enum|getter|implements|includes|inherit|interface|mixin|namespace|null|optional|or|partial|readonly|required|setter|static|stringifier|typedef|unrestricted)\b/,/\b(?:any|bigint|boolean|byte|double|float|iterable|long|maplike|object|octet|record|sequence|setlike|short|symbol|undefined|unsigned|void)\b/],boolean:/\b(?:false|true)\b/,number:{pattern:/(^|[^\w-])-?(?:0x[0-9a-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|NaN|Infinity)(?![\w-])/i,lookbehind:!0},operator:/\.{3}|[=:?<>-]/,punctuation:/[(){}[\].,;]/},e.languages["web-idl"])"class-name"!==a&&(r[a]=e.languages["web-idl"][a]);e.languages.webidl=e.languages["web-idl"]}t.exports=r,r.displayName="webIdl",r.aliases=[]},240421,(e,t,n)=>{"use strict";function r(e){e.languages.wiki=e.languages.extend("markup",{"block-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,alias:"comment"},heading:{pattern:/^(=+)[^=\r\n].*?\1/m,inside:{punctuation:/^=+|=+$/,important:/.+/}},emphasis:{pattern:/('{2,5}).+?\1/,inside:{"bold-italic":{pattern:/(''''').+?(?=\1)/,lookbehind:!0,alias:["bold","italic"]},bold:{pattern:/(''')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},italic:{pattern:/('')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},punctuation:/^''+|''+$/}},hr:{pattern:/^-{4,}/m,alias:"punctuation"},url:[/ISBN +(?:97[89][ -]?)?(?:\d[ -]?){9}[\dx]\b|(?:PMID|RFC) +\d+/i,/\[\[.+?\]\]|\[.+?\]/],variable:[/__[A-Z]+__/,/\{{3}.+?\}{3}/,/\{\{.+?\}\}/],symbol:[/^#redirect/im,/~{3,5}/],"table-tag":{pattern:/((?:^|[|!])[|!])[^|\r\n]+\|(?!\|)/m,lookbehind:!0,inside:{"table-bar":{pattern:/\|$/,alias:"punctuation"},rest:e.languages.markup.tag.inside}},punctuation:/^(?:\{\||\|\}|\|-|[*#:;!|])|\|\||!!/m}),e.languages.insertBefore("wiki","tag",{nowiki:{pattern:/<(nowiki|pre|source)\b[^>]*>[\s\S]*?<\/\1>/i,inside:{tag:{pattern:/<(?:nowiki|pre|source)\b[^>]*>|<\/(?:nowiki|pre|source)>/i,inside:e.languages.markup.tag.inside}}}})}t.exports=r,r.displayName="wiki",r.aliases=[]},96502,(e,t,n)=>{"use strict";function r(e){e.languages.wolfram={comment:/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:Abs|AbsArg|Accuracy|Block|Do|For|Function|If|Manipulate|Module|Nest|NestList|None|Return|Switch|Table|Which|While)\b/,context:{pattern:/\b\w+`+\w*/,alias:"class-name"},blank:{pattern:/\b\w+_\b/,alias:"regex"},"global-variable":{pattern:/\$\w+/,alias:"variable"},boolean:/\b(?:False|True)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?j?\b/i,operator:/\/\.|;|=\.|\^=|\^:=|:=|<<|>>|<\||\|>|:>|\|->|->|<-|@@@|@@|@|\/@|=!=|===|==|=|\+|-|\^|\[\/-+%=\]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},e.languages.mathematica=e.languages.wolfram,e.languages.wl=e.languages.wolfram,e.languages.nb=e.languages.wolfram}t.exports=r,r.displayName="wolfram",r.aliases=["mathematica","wl","nb"]},251129,(e,t,n)=>{"use strict";function r(e){e.languages.wren={comment:[{pattern:/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*))*\*\/)*\*\/)*\*\//,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"string-literal":null,hashbang:{pattern:/^#!\/.+/,greedy:!0,alias:"comment"},attribute:{pattern:/#!?[ \t\u3000]*\w+/,alias:"keyword"},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},/\b[A-Z][a-z\d_]*\b/],constant:/\b[A-Z][A-Z\d_]*\b/,null:{pattern:/\bnull\b/,alias:"keyword"},keyword:/\b(?:as|break|class|construct|continue|else|for|foreign|if|import|in|is|return|static|super|this|var|while)\b/,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,function:/\b[a-z_]\w*(?=\s*[({])/i,operator:/<<|>>|[=!<>]=?|&&|\|\||[-+*/%~^&|?:]|\.{2,3}/,punctuation:/[\[\](){}.,;]/},e.languages.wren["string-literal"]={pattern:/(^|[^\\"])"(?:[^\\"%]|\\[\s\S]|%(?!\()|%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\))*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\)/,lookbehind:!0,inside:{expression:{pattern:/^(%\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:e.languages.wren},"interpolation-punctuation":{pattern:/^%\(|\)$/,alias:"punctuation"}}},string:/[\s\S]+/}}}t.exports=r,r.displayName="wren",r.aliases=[]},260483,(e,t,n)=>{"use strict";function r(e){e.languages.xeora=e.languages.extend("markup",{constant:{pattern:/\$(?:DomainContents|PageRenderDuration)\$/,inside:{punctuation:{pattern:/\$/}}},variable:{pattern:/\$@?(?:#+|[-+*~=^])?[\w.]+\$/,inside:{punctuation:{pattern:/[$.]/},operator:{pattern:/#+|[-+*~=^@]/}}},"function-inline":{pattern:/\$F:[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\$/,inside:{variable:{pattern:/(?:[,|])@?(?:#+|[-+*~=^])?[\w.]+/,inside:{punctuation:{pattern:/[,.|]/},operator:{pattern:/#+|[-+*~=^@]/}}},punctuation:{pattern:/\$\w:|[$:?.,|]/}},alias:"function"},"function-block":{pattern:/\$XF:\{[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\}:XF\$/,inside:{punctuation:{pattern:/[$:{}?.,|]/}},alias:"function"},"directive-inline":{pattern:/\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\/\w.]+\$/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}}},alias:"function"},"directive-block-open":{pattern:/\$\w+:\{|\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\w.]+:\{(?:![A-Z]+)?/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}},attribute:{pattern:/![A-Z]+$/,inside:{punctuation:{pattern:/!/}},alias:"keyword"}},alias:"function"},"directive-block-separator":{pattern:/\}:[-\w.]+:\{/,inside:{punctuation:{pattern:/[:{}]/}},alias:"function"},"directive-block-close":{pattern:/\}:[-\w.]+\$/,inside:{punctuation:{pattern:/[:{}$]/}},alias:"function"}}),e.languages.insertBefore("inside","punctuation",{variable:e.languages.xeora["function-inline"].inside.variable},e.languages.xeora["function-block"]),e.languages.xeoracube=e.languages.xeora}t.exports=r,r.displayName="xeora",r.aliases=["xeoracube"]},797054,(e,t,n)=>{"use strict";function r(e){function t(t,n){e.languages[t]&&e.languages.insertBefore(t,"comment",{"doc-comment":n})}var n=e.languages.markup.tag,r={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:n}};t("csharp",r),t("fsharp",r),t("vbnet",{pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:n}})}t.exports=r,r.displayName="xmlDoc",r.aliases=[]},659477,(e,t,n)=>{"use strict";function r(e){e.languages.xojo={comment:{pattern:/(?:'|\/\/|Rem\b).+/i,greedy:!0},string:{pattern:/"(?:""|[^"])*"/,greedy:!0},number:[/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,/&[bchou][a-z\d]+/i],directive:{pattern:/#(?:Else|ElseIf|Endif|If|Pragma)\b/i,alias:"property"},keyword:/\b(?:AddHandler|App|Array|As(?:signs)?|Auto|Boolean|Break|By(?:Ref|Val)|Byte|Call|Case|Catch|CFStringRef|CGFloat|Class|Color|Const|Continue|CString|Currency|CurrentMethodName|Declare|Delegate|Dim|Do(?:uble|wnTo)?|Each|Else(?:If)?|End|Enumeration|Event|Exception|Exit|Extends|False|Finally|For|Function|Get|GetTypeInfo|Global|GOTO|If|Implements|In|Inherits|Int(?:8|16|32|64|eger|erface)?|Lib|Loop|Me|Module|Next|Nil|Object|Optional|OSType|ParamArray|Private|Property|Protected|PString|Ptr|Raise(?:Event)?|ReDim|RemoveHandler|Return|Select(?:or)?|Self|Set|Shared|Short|Single|Soft|Static|Step|String|Sub|Super|Text|Then|To|True|Try|Ubound|UInt(?:8|16|32|64|eger)?|Until|Using|Var(?:iant)?|Wend|While|WindowPtr|WString)\b/i,operator:/<[=>]?|>=?|[+\-*\/\\^=]|\b(?:AddressOf|And|Ctype|IsA?|Mod|New|Not|Or|WeakAddressOf|Xor)\b/i,punctuation:/[.,;:()]/}}t.exports=r,r.displayName="xojo",r.aliases=[]},165474,(e,t,n)=>{"use strict";function r(e){var t,n;e.languages.xquery=e.languages.extend("markup",{"xquery-comment":{pattern:/\(:[\s\S]*?:\)/,greedy:!0,alias:"comment"},string:{pattern:/(["'])(?:\1\1|(?!\1)[\s\S])*\1/,greedy:!0},extension:{pattern:/\(#.+?#\)/,alias:"symbol"},variable:/\$[-\w:]+/,axis:{pattern:/(^|[^-])(?:ancestor(?:-or-self)?|attribute|child|descendant(?:-or-self)?|following(?:-sibling)?|parent|preceding(?:-sibling)?|self)(?=::)/,lookbehind:!0,alias:"operator"},"keyword-operator":{pattern:/(^|[^:-])\b(?:and|castable as|div|eq|except|ge|gt|idiv|instance of|intersect|is|le|lt|mod|ne|or|union)\b(?=$|[^:-])/,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^:-])\b(?:as|ascending|at|base-uri|boundary-space|case|cast as|collation|construction|copy-namespaces|declare|default|descending|else|empty (?:greatest|least)|encoding|every|external|for|function|if|import|in|inherit|lax|let|map|module|namespace|no-inherit|no-preserve|option|order(?: by|ed|ing)?|preserve|return|satisfies|schema|some|stable|strict|strip|then|to|treat as|typeswitch|unordered|validate|variable|version|where|xquery)\b(?=$|[^:-])/,lookbehind:!0},function:/[\w-]+(?::[\w-]+)*(?=\s*\()/,"xquery-element":{pattern:/(element\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"tag"},"xquery-attribute":{pattern:/(attribute\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"attr-name"},builtin:{pattern:/(^|[^:-])\b(?:attribute|comment|document|element|processing-instruction|text|xs:(?:ENTITIES|ENTITY|ID|IDREFS?|NCName|NMTOKENS?|NOTATION|Name|QName|anyAtomicType|anyType|anyURI|base64Binary|boolean|byte|date|dateTime|dayTimeDuration|decimal|double|duration|float|gDay|gMonth|gMonthDay|gYear|gYearMonth|hexBinary|int|integer|language|long|negativeInteger|nonNegativeInteger|nonPositiveInteger|normalizedString|positiveInteger|short|string|time|token|unsigned(?:Byte|Int|Long|Short)|untyped(?:Atomic)?|yearMonthDuration))\b(?=$|[^:-])/,lookbehind:!0},number:/\b\d+(?:\.\d+)?(?:E[+-]?\d+)?/,operator:[/[+*=?|@]|\.\.?|:=|!=|<[=<]?|>[=>]?/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}],punctuation:/[[\](){},;:/]/}),e.languages.xquery.tag.pattern=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,e.languages.xquery.tag.inside["attr-value"].pattern=/=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+)/,e.languages.xquery.tag.inside["attr-value"].inside.punctuation=/^="|"$/,e.languages.xquery.tag.inside["attr-value"].inside.expression={pattern:/\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}/,inside:e.languages.xquery,alias:"language-xquery"},t=function(e){return"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(t).join("")},n=function(r){for(var a=[],i=0;i<r.length;i++){var s=r[i],o=!1;if("string"!=typeof s&&("tag"===s.type&&s.content[0]&&"tag"===s.content[0].type?"</"===s.content[0].content[0].content?a.length>0&&a[a.length-1].tagName===t(s.content[0].content[1])&&a.pop():"/>"===s.content[s.content.length-1].content||a.push({tagName:t(s.content[0].content[1]),openedBraces:0}):!(a.length>0)||"punctuation"!==s.type||"{"!==s.content||r[i+1]&&"punctuation"===r[i+1].type&&"{"===r[i+1].content||r[i-1]&&"plain-text"===r[i-1].type&&"{"===r[i-1].content?a.length>0&&a[a.length-1].openedBraces>0&&"punctuation"===s.type&&"}"===s.content?a[a.length-1].openedBraces--:"comment"!==s.type&&(o=!0):a[a.length-1].openedBraces++),(o||"string"==typeof s)&&a.length>0&&0===a[a.length-1].openedBraces){var l=t(s);i<r.length-1&&("string"==typeof r[i+1]||"plain-text"===r[i+1].type)&&(l+=t(r[i+1]),r.splice(i+1,1)),i>0&&("string"==typeof r[i-1]||"plain-text"===r[i-1].type)&&(l=t(r[i-1])+l,r.splice(i-1,1),i--),/^\s+$/.test(l)?r[i]=l:r[i]=new e.Token("plain-text",l,null,l)}s.content&&"string"!=typeof s.content&&n(s.content)}},e.hooks.add("after-tokenize",function(e){"xquery"===e.language&&n(e.tokens)})}t.exports=r,r.displayName="xquery",r.aliases=[]},209173,(e,t,n)=>{"use strict";function r(e){e.languages.yang={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"(?:[^\\"]|\\.)*"|'[^']*'/,greedy:!0},keyword:{pattern:/(^|[{};\r\n][ \t]*)[a-z_][\w.-]*/i,lookbehind:!0},namespace:{pattern:/(\s)[a-z_][\w.-]*(?=:)/i,lookbehind:!0},boolean:/\b(?:false|true)\b/,operator:/\+/,punctuation:/[{};:]/}}t.exports=r,r.displayName="yang",r.aliases=[]},787490,(e,t,n)=>{"use strict";function r(e){!function(e){function t(e){return function(){return e}}var n=/\b(?:align|allowzero|and|anyframe|anytype|asm|async|await|break|cancel|catch|comptime|const|continue|defer|else|enum|errdefer|error|export|extern|fn|for|if|inline|linksection|nakedcc|noalias|nosuspend|null|or|orelse|packed|promise|pub|resume|return|stdcallcc|struct|suspend|switch|test|threadlocal|try|undefined|union|unreachable|usingnamespace|var|volatile|while)\b/,r="\\b(?!"+n.source+")(?!\\d)\\w+\\b",a=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,i="(?!\\s)(?:!?\\s*(?:"+/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*<ALIGN>|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(/<ALIGN>/g,t(a))+"\\s*)*"+/(?:\bpromise\b|(?:\berror\.)?<ID>(?:\.<ID>)*(?!\s+<ID>))/.source.replace(/<ID>/g,t(r))+")+";e.languages.zig={comment:[{pattern:/\/\/[/!].*/,alias:"doc-comment"},/\/{2}.*/],string:[{pattern:/(^|[^\\@])c?"(?:[^"\\\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},{pattern:/([\r\n])([ \t]+c?\\{2}).*(?:(?:\r\n?|\n)\2.*)*/,lookbehind:!0,greedy:!0}],char:{pattern:/(^|[^\\])'(?:[^'\\\r\n]|[\uD800-\uDFFF]{2}|\\(?:.|x[a-fA-F\d]{2}|u\{[a-fA-F\d]{1,6}\}))'/,lookbehind:!0,greedy:!0},builtin:/\B@(?!\d)\w+(?=\s*\()/,label:{pattern:/(\b(?:break|continue)\s*:\s*)\w+\b|\b(?!\d)\w+\b(?=\s*:\s*(?:\{|while\b))/,lookbehind:!0},"class-name":[/\b(?!\d)\w+(?=\s*=\s*(?:(?:extern|packed)\s+)?(?:enum|struct|union)\s*[({])/,{pattern:RegExp(/(:\s*)<TYPE>(?=\s*(?:<ALIGN>\s*)?[=;,)])|<TYPE>(?=\s*(?:<ALIGN>\s*)?\{)/.source.replace(/<TYPE>/g,t(i)).replace(/<ALIGN>/g,t(a))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)<TYPE>(?=\s*(?:<ALIGN>\s*)?;)/.source.replace(/<TYPE>/g,t(i)).replace(/<ALIGN>/g,t(a))),lookbehind:!0,inside:null}],"builtin-type":{pattern:/\b(?:anyerror|bool|c_u?(?:int|long|longlong|short)|c_longdouble|c_void|comptime_(?:float|int)|f(?:16|32|64|128)|[iu](?:8|16|32|64|128|size)|noreturn|type|void)\b/,alias:"keyword"},keyword:n,function:/\b(?!\d)\w+(?=\s*\()/,number:/\b(?:0b[01]+|0o[0-7]+|0x[a-fA-F\d]+(?:\.[a-fA-F\d]*)?(?:[pP][+-]?[a-fA-F\d]+)?|\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)\b/,boolean:/\b(?:false|true)\b/,operator:/\.[*?]|\.{2,3}|[-=]>|\*\*|\+\+|\|\||(?:<<|>>|[-+*]%|[-+*/%^&|<>!=])=?|[?~]/,punctuation:/[.:,;(){}[\]]/},e.languages.zig["class-name"].forEach(function(t){null===t.inside&&(t.inside=e.languages.zig)})}(e)}t.exports=r,r.displayName="zig",r.aliases=[]},916907,(e,t,n)=>{"use strict";var r=e.r(604996);t.exports=r,r.register(e.r(721083)),r.register(e.r(34121)),r.register(e.r(409865)),r.register(e.r(774683)),r.register(e.r(163221)),r.register(e.r(200316)),r.register(e.r(621688)),r.register(e.r(652213)),r.register(e.r(298722)),r.register(e.r(991642)),r.register(e.r(731788)),r.register(e.r(360075)),r.register(e.r(253144)),r.register(e.r(561304)),r.register(e.r(52373)),r.register(e.r(956450)),r.register(e.r(164274)),r.register(e.r(630538)),r.register(e.r(165572)),r.register(e.r(84979)),r.register(e.r(116162)),r.register(e.r(864666)),r.register(e.r(233634)),r.register(e.r(703731)),r.register(e.r(634662)),r.register(e.r(287851)),r.register(e.r(996747)),r.register(e.r(537635)),r.register(e.r(802987)),r.register(e.r(935264)),r.register(e.r(661006)),r.register(e.r(499349)),r.register(e.r(316628)),r.register(e.r(101443)),r.register(e.r(835801)),r.register(e.r(638229)),r.register(e.r(468240)),r.register(e.r(877979)),r.register(e.r(275277)),r.register(e.r(111431)),r.register(e.r(154862)),r.register(e.r(412002)),r.register(e.r(616770)),r.register(e.r(489927)),r.register(e.r(572495)),r.register(e.r(887859)),r.register(e.r(794503)),r.register(e.r(436301)),r.register(e.r(419289)),r.register(e.r(251208)),r.register(e.r(695648)),r.register(e.r(375398)),r.register(e.r(704674)),r.register(e.r(978453)),r.register(e.r(162607)),r.register(e.r(148190)),r.register(e.r(436505)),r.register(e.r(798578)),r.register(e.r(911719)),r.register(e.r(663716)),r.register(e.r(507512)),r.register(e.r(733825)),r.register(e.r(622489)),r.register(e.r(360636)),r.register(e.r(939236)),r.register(e.r(143472)),r.register(e.r(263365)),r.register(e.r(373845)),r.register(e.r(125714)),r.register(e.r(974706)),r.register(e.r(495350)),r.register(e.r(846012)),r.register(e.r(882318)),r.register(e.r(744916)),r.register(e.r(743357)),r.register(e.r(921861)),r.register(e.r(334736)),r.register(e.r(451584)),r.register(e.r(219299)),r.register(e.r(971396)),r.register(e.r(687072)),r.register(e.r(995101)),r.register(e.r(622661)),r.register(e.r(555689)),r.register(e.r(406772)),r.register(e.r(999394)),r.register(e.r(300638)),r.register(e.r(217898)),r.register(e.r(93878)),r.register(e.r(484755)),r.register(e.r(209595)),r.register(e.r(775914)),r.register(e.r(661086)),r.register(e.r(756953)),r.register(e.r(946221)),r.register(e.r(932382)),r.register(e.r(900316)),r.register(e.r(260757)),r.register(e.r(863058)),r.register(e.r(850689)),r.register(e.r(565387)),r.register(e.r(625054)),r.register(e.r(881869)),r.register(e.r(578763)),r.register(e.r(759239)),r.register(e.r(772912)),r.register(e.r(177346)),r.register(e.r(460342)),r.register(e.r(427275)),r.register(e.r(755790)),r.register(e.r(355991)),r.register(e.r(555114)),r.register(e.r(672637)),r.register(e.r(747922)),r.register(e.r(523456)),r.register(e.r(181773)),r.register(e.r(428712)),r.register(e.r(734556)),r.register(e.r(839585)),r.register(e.r(882795)),r.register(e.r(123048)),r.register(e.r(479173)),r.register(e.r(909483)),r.register(e.r(394760)),r.register(e.r(865624)),r.register(e.r(603760)),r.register(e.r(494238)),r.register(e.r(5428)),r.register(e.r(209769)),r.register(e.r(622616)),r.register(e.r(811587)),r.register(e.r(91966)),r.register(e.r(916007)),r.register(e.r(314658)),r.register(e.r(240318)),r.register(e.r(296982)),r.register(e.r(350114)),r.register(e.r(217450)),r.register(e.r(729199)),r.register(e.r(528990)),r.register(e.r(81023)),r.register(e.r(319313)),r.register(e.r(642481)),r.register(e.r(654787)),r.register(e.r(364339)),r.register(e.r(683854)),r.register(e.r(766504)),r.register(e.r(426226)),r.register(e.r(302106)),r.register(e.r(32981)),r.register(e.r(156851)),r.register(e.r(225413)),r.register(e.r(783321)),r.register(e.r(485108)),r.register(e.r(799375)),r.register(e.r(176205)),r.register(e.r(437801)),r.register(e.r(213631)),r.register(e.r(455319)),r.register(e.r(233383)),r.register(e.r(445923)),r.register(e.r(736919)),r.register(e.r(777796)),r.register(e.r(750834)),r.register(e.r(489839)),r.register(e.r(750436)),r.register(e.r(998022)),r.register(e.r(310199)),r.register(e.r(514345)),r.register(e.r(116770)),r.register(e.r(607593)),r.register(e.r(918711)),r.register(e.r(72759)),r.register(e.r(316261)),r.register(e.r(80997)),r.register(e.r(800885)),r.register(e.r(902711)),r.register(e.r(13598)),r.register(e.r(95208)),r.register(e.r(701209)),r.register(e.r(114422)),r.register(e.r(938650)),r.register(e.r(703124)),r.register(e.r(133926)),r.register(e.r(22709)),r.register(e.r(372868)),r.register(e.r(676112)),r.register(e.r(914614)),r.register(e.r(961277)),r.register(e.r(645738)),r.register(e.r(83424)),r.register(e.r(908726)),r.register(e.r(10905)),r.register(e.r(661590)),r.register(e.r(465742)),r.register(e.r(293101)),r.register(e.r(895983)),r.register(e.r(146166)),r.register(e.r(313539)),r.register(e.r(687678)),r.register(e.r(622212)),r.register(e.r(178470)),r.register(e.r(86406)),r.register(e.r(523365)),r.register(e.r(999135)),r.register(e.r(78250)),r.register(e.r(533122)),r.register(e.r(19823)),r.register(e.r(108912)),r.register(e.r(506593)),r.register(e.r(261050)),r.register(e.r(268636)),r.register(e.r(476472)),r.register(e.r(762347)),r.register(e.r(650086)),r.register(e.r(358645)),r.register(e.r(817085)),r.register(e.r(694707)),r.register(e.r(591991)),r.register(e.r(864488)),r.register(e.r(223592)),r.register(e.r(935950)),r.register(e.r(888705)),r.register(e.r(30864)),r.register(e.r(285035)),r.register(e.r(668391)),r.register(e.r(46802)),r.register(e.r(424105)),r.register(e.r(772339)),r.register(e.r(440435)),r.register(e.r(156747)),r.register(e.r(259467)),r.register(e.r(268783)),r.register(e.r(431820)),r.register(e.r(116553)),r.register(e.r(979645)),r.register(e.r(254031)),r.register(e.r(988400)),r.register(e.r(752634)),r.register(e.r(581126)),r.register(e.r(74806)),r.register(e.r(351729)),r.register(e.r(370717)),r.register(e.r(927492)),r.register(e.r(234215)),r.register(e.r(834341)),r.register(e.r(181106)),r.register(e.r(713758)),r.register(e.r(407049)),r.register(e.r(165952)),r.register(e.r(78970)),r.register(e.r(49633)),r.register(e.r(72751)),r.register(e.r(162344)),r.register(e.r(900674)),r.register(e.r(624696)),r.register(e.r(458322)),r.register(e.r(259818)),r.register(e.r(228279)),r.register(e.r(643887)),r.register(e.r(310250)),r.register(e.r(878199)),r.register(e.r(435059)),r.register(e.r(240421)),r.register(e.r(96502)),r.register(e.r(251129)),r.register(e.r(260483)),r.register(e.r(797054)),r.register(e.r(659477)),r.register(e.r(165474)),r.register(e.r(182840)),r.register(e.r(209173)),r.register(e.r(787490))},952683,e=>{"use strict";let t,n,r,a,i,s,o,l,c,u,d,p,m,h,f,g,b;var y,E,x,S,T,v,A,_,k,N,w,I,C,R,O,L,D,P,M,F,j,U,B,H,z,G,$,q,V,W,Y,K,X,Z,Q,J,ee,et,en,er,ea,ei,es=e.i(247167),eo=e.i(843476),el=e.i(271645),ec=e.i(657688),eu=e.i(680902),ed=e.i(622289);function ep(e,t,n){try{return e(t)}catch(e){return(0,ed.l)("[nuqs] Error while parsing value `%s`: %O"+(n?" (for key `%s`)":""),t,e,n),null}}function em(e){function t(t){if(void 0===t)return null;let n="";if(Array.isArray(t)){if(void 0===t[0])return null;n=t[0]}return"string"==typeof t&&(n=t),ep(e.parse,n)}return{type:"single",eq:(e,t)=>e===t,...e,parseServerSide:t,withDefault(e){return{...this,defaultValue:e,parseServerSide:n=>t(n)??e}},withOptions(e){return{...this,...e}}}}function eh(e,t){return e.valueOf()===t.valueOf()}em({parse:e=>e,serialize:String}),em({parse:e=>{let t=parseInt(e);return t==t?t:null},serialize:e=>""+Math.round(e)}),em({parse:e=>{let t=parseInt(e);return t==t?t-1:null},serialize:e=>""+Math.round(e+1)}),em({parse:e=>{let t=parseInt(e,16);return t==t?t:null},serialize:e=>{let t=Math.round(e).toString(16);return(1&t.length?"0":"")+t}}),em({parse:e=>{let t=parseFloat(e);return t==t?t:null},serialize:String}),em({parse:e=>"true"===e.toLowerCase(),serialize:String}),em({parse:e=>{let t=parseInt(e);return t==t?new Date(t):null},serialize:e=>""+e.valueOf(),eq:eh}),em({parse:e=>{let t=new Date(e);return t.valueOf()==t.valueOf()?t:null},serialize:e=>e.toISOString(),eq:eh}),em({parse:e=>{let t=new Date(e.slice(0,10));return t.valueOf()==t.valueOf()?t:null},serialize:e=>e.toISOString().slice(0,10),eq:eh});let ef=(0,eu.r)(),eg={};function eb(e,t,n,r,a,i){let s=!1,o=Object.entries(e).reduce((e,[o,l])=>{var c;let u=t?.[o]??o,d=r[u],p="multi"===l.type?[]:null,m=void 0===d?("multi"===l.type?n?.getAll(u):n?.get(u))??p:d;return a&&i&&((c=a[u]??p)===m||null!==c&&null!==m&&"string"!=typeof c&&"string"!=typeof m&&c.length===m.length&&c.every((e,t)=>e===m[t]))?e[o]=i[o]??null:(s=!0,e[o]=((0,eu.i)(m)?null:ep(l.parse,m,u))??null,a&&(a[u]=m)),e},{});if(!s){let t=Object.keys(e),n=Object.keys(i??{});s=t.length!==n.length||t.some(e=>!n.includes(e))}return{state:o,hasChanged:s}}function ey(e,t){return Object.fromEntries(Object.keys(e).map(n=>[n,e[n]??t[n]??null]))}function eE(e,t={}){let{parse:n,type:r,serialize:a,eq:i,defaultValue:s,...o}=t,[{[e]:l},c]=function(e,t={}){let n=(0,el.useId)(),r=(0,ed.i)(),a=(0,ed.a)(),{history:i="replace",scroll:s=r?.scroll??!1,shallow:o=r?.shallow??!0,throttleMs:l=eu.s.timeMs,limitUrlUpdates:c=r?.limitUrlUpdates,clearOnDefault:u=r?.clearOnDefault??!0,startTransition:d,urlKeys:p=eg}=t,m=Object.keys(e).join(","),h=(0,el.useMemo)(()=>Object.fromEntries(Object.keys(e).map(e=>[e,p[e]??e])),[m,JSON.stringify(p)]),f=(0,ed.r)(Object.values(h)),g=f.searchParams,b=(0,el.useRef)({}),y=(0,el.useMemo)(()=>Object.fromEntries(Object.keys(e).map(t=>[t,e[t].defaultValue??null])),[Object.values(e).map(({defaultValue:e})=>e).join(",")]),E=eu.t.useQueuedQueries(Object.values(h)),[x,S]=(0,el.useState)(()=>eb(e,p,g??new URLSearchParams,E).state),T=(0,el.useRef)(x);if((0,ed.c)("[nuq+ %s `%s`] render - state: %O, iSP: %s",n,m,x,g),Object.keys(b.current).join("&")!==Object.values(h).join("&")){let{state:t,hasChanged:r}=eb(e,p,g,E,b.current,T.current);r&&((0,ed.c)("[nuq+ %s `%s`] State changed: %O",n,m,{state:t,initialSearchParams:g,queuedQueries:E,queryRef:b.current,stateRef:T.current}),T.current=t,S(t)),b.current=Object.fromEntries(Object.entries(h).map(([t,n])=>[n,e[t]?.type==="multi"?g?.getAll(n):g?.get(n)??null]))}(0,el.useEffect)(()=>{let{state:t,hasChanged:r}=eb(e,p,g,E,b.current,T.current);r&&((0,ed.c)("[nuq+ %s `%s`] State changed: %O",n,m,{state:t,initialSearchParams:g,queuedQueries:E,queryRef:b.current,stateRef:T.current}),T.current=t,S(t))},[Object.values(h).map(e=>`${e}=${g?.getAll(e)}`).join("&"),JSON.stringify(E)]),(0,el.useEffect)(()=>{let t=Object.keys(e).reduce((t,r)=>(t[r]=({state:t,query:a})=>{S(i=>{let{defaultValue:s}=e[r],o=h[r],l=t??s??null;return Object.is(i[r]??s??null,l)?((0,ed.c)("[nuq+ %s `%s`] Cross-hook key sync %s: %O (default: %O). no change, skipping, resolved: %O",n,m,o,t,s,T.current),i):(T.current={...T.current,[r]:l},b.current[o]=a,(0,ed.c)("[nuq+ %s `%s`] Cross-hook key sync %s: %O (default: %O). updateInternalState, resolved: %O",n,m,o,t,s,T.current),T.current)})},t),{});for(let r of Object.keys(e)){let e=h[r];(0,ed.c)("[nuq+ %s `%s`] Subscribing to sync for `%s`",n,e,m),ef.on(e,t[r])}return()=>{for(let r of Object.keys(e)){let e=h[r];(0,ed.c)("[nuq+ %s `%s`] Unsubscribing to sync for `%s`",n,e,m),ef.off(e,t[r])}}},[m,h]);let v=(0,el.useCallback)((t,r={})=>{let p,g=Object.fromEntries(Object.keys(e).map(e=>[e,null])),b="function"==typeof t?t(ey(T.current,y))??g:t??g;(0,ed.c)("[nuq+ %s `%s`] setState: %O",n,m,b);let E=0,x=!1,S=[];for(let[t,n]of Object.entries(b)){let m=e[t],g=h[t];if(!m||void 0===n)continue;(r.clearOnDefault??m.clearOnDefault??u)&&null!==n&&void 0!==m.defaultValue&&(m.eq??((e,t)=>e===t))(n,m.defaultValue)&&(n=null);let b=null===n?null:(m.serialize??String)(n);ef.emit(g,{state:n,query:b});let y={key:g,query:b,options:{history:r.history??m.history??i,shallow:r.shallow??m.shallow??o,scroll:r.scroll??m.scroll??s,startTransition:r.startTransition??m.startTransition??d}};if(r?.limitUrlUpdates?.method==="debounce"||c?.method==="debounce"||m.limitUrlUpdates?.method==="debounce"){!0===y.options.shallow&&console.warn((0,ed.s)(422));let e=r?.limitUrlUpdates?.timeMs??c?.timeMs??m.limitUrlUpdates?.timeMs??eu.s.timeMs,t=eu.t.push(y,e,f,a);E<e&&(p=t,E=e)}else{let e=r?.limitUrlUpdates?.timeMs??m?.limitUrlUpdates?.timeMs??c?.timeMs??r.throttleMs??m.throttleMs??l;S.push(eu.t.abort(g)),eu.n.push(y,e),x=!0}}let v=S.reduce((e,t)=>t(e),x?eu.n.flush(f,a):eu.n.getPendingPromise(f));return p??v},[m,i,o,s,l,c?.method,c?.timeMs,d,h,f.updateUrl,f.getSearchParamsSnapshot,f.rateLimitFactor,a,y]);return[(0,el.useMemo)(()=>ey(x,y),[x,y]),v]}({[e]:{parse:n??(e=>e),type:r,serialize:a,eq:i,defaultValue:s}},o);return[l,(0,el.useCallback)((t,n={})=>c(n=>({[e]:"function"==typeof t?t(n[e]):t}),n),[e,c])]}let ex="EvoScientist",eS="evoscientist-config";function eT(){let e=localStorage.getItem(eS);if(!e)return null;try{let t=JSON.parse(e);if(!t.deploymentUrl?.trim())return null;return{...t,assistantId:ex}}catch{return null}}function ev(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function eA(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function e_(...e){return t=>{let n=!1,r=e.map(e=>{let r=eA(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():eA(e[t],null)}}}}function ek(...e){return el.useCallback(e_(...e),e)}function eN(e,t=[]){let n=[],r=()=>{let t=n.map(e=>el.createContext(e));return function(n){let r=n?.[e]||t;return el.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let a=el.createContext(r),i=n.length;n=[...n,r];let s=t=>{let{scope:n,children:r,...s}=t,o=n?.[e]?.[i]||a,l=el.useMemo(()=>s,Object.values(s));return(0,eo.jsx)(o.Provider,{value:l,children:r})};return s.displayName=t+"Provider",[s,function(n,s){let o=s?.[e]?.[i]||a,l=el.useContext(o);if(l)return l;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let a=n(e)[`__scope${r}`];return{...t,...a}},{});return el.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}"u">typeof window&&window.document&&window.document.createElement;var ew=globalThis?.document?el.useLayoutEffect:()=>{},eI=el[" useId ".trim().toString()]||(()=>void 0),eC=0;function eR(e){let[t,n]=el.useState(eI());return ew(()=>{e||n(e=>e??String(eC++))},[e]),e||(t?`radix-${t}`:"")}el[" useEffectEvent ".trim().toString()],el[" useInsertionEffect ".trim().toString()];var eO=el[" useInsertionEffect ".trim().toString()]||ew;function eL({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[a,i,s]=function({defaultProp:e,onChange:t}){let[n,r]=el.useState(e),a=el.useRef(n),i=el.useRef(t);return eO(()=>{i.current=t},[t]),el.useEffect(()=>{a.current!==n&&(i.current?.(n),a.current=n)},[n,a]),[n,r,i]}({defaultProp:t,onChange:n}),o=void 0!==e,l=o?e:a;{let t=el.useRef(void 0!==e);el.useEffect(()=>{let e=t.current;if(e!==o){let t=o?"controlled":"uncontrolled";console.warn(`${r} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=o},[o,r])}return[l,el.useCallback(t=>{if(o){let n="function"==typeof t?t(e):t;n!==e&&s.current?.(n)}else i(t)},[o,e,i,s])]}Symbol("RADIX:SYNC_STATE");var eD=e.i(174080),eP=Symbol("radix.slottable");function eM(e){return el.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===eP}var eF=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{var n,r;let a,i,s,o=(r=n=`Primitive.${t}`,(a=el.forwardRef((e,t)=>{let{children:n,...r}=e;if(el.isValidElement(n)){var a;let e,i,s=(a=n,(i=(e=Object.getOwnPropertyDescriptor(a.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.ref:(i=(e=Object.getOwnPropertyDescriptor(a,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.props.ref:a.props.ref||a.ref),o=function(e,t){let n={...t};for(let r in t){let a=e[r],i=t[r];/^on[A-Z]/.test(r)?a&&i?n[r]=(...e)=>{let t=i(...e);return a(...e),t}:a&&(n[r]=a):"style"===r?n[r]={...a,...i}:"className"===r&&(n[r]=[a,i].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==el.Fragment&&(o.ref=t?e_(t,s):s),el.cloneElement(n,o)}return el.Children.count(n)>1?el.Children.only(null):null})).displayName=`${r}.SlotClone`,i=a,(s=el.forwardRef((e,t)=>{let{children:n,...r}=e,a=el.Children.toArray(n),s=a.find(eM);if(s){let e=s.props.children,n=a.map(t=>t!==s?t:el.Children.count(e)>1?el.Children.only(null):el.isValidElement(e)?e.props.children:null);return(0,eo.jsx)(i,{...r,ref:t,children:el.isValidElement(e)?el.cloneElement(e,void 0,n):null})}return(0,eo.jsx)(i,{...r,ref:t,children:n})})).displayName=`${n}.Slot`,s),l=el.forwardRef((e,n)=>{let{asChild:r,...a}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,eo.jsx)(r?o:t,{...a,ref:n})});return l.displayName=`Primitive.${t}`,{...e,[t]:l}},{});function ej(e){let t=el.useRef(e);return el.useEffect(()=>{t.current=e}),el.useMemo(()=>(...e)=>t.current?.(...e),[])}var eU="dismissableLayer.update",eB=el.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),eH=el.forwardRef((e,t)=>{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:a,onFocusOutside:i,onInteractOutside:s,onDismiss:o,...l}=e,c=el.useContext(eB),[u,d]=el.useState(null),p=u?.ownerDocument??globalThis?.document,[,m]=el.useState({}),h=ek(t,e=>d(e)),f=Array.from(c.layers),[g]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),b=f.indexOf(g),y=u?f.indexOf(u):-1,E=c.layersWithOutsidePointerEventsDisabled.size>0,x=y>=b,S=function(e,t=globalThis?.document){let n=ej(e),r=el.useRef(!1),a=el.useRef(()=>{});return el.useEffect(()=>{let e=e=>{if(e.target&&!r.current){let r=function(){eG("dismissableLayer.pointerDownOutside",n,i,{discrete:!0})},i={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",a.current),a.current=r,t.addEventListener("click",a.current,{once:!0})):r()}else t.removeEventListener("click",a.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",a.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}(e=>{let t=e.target,n=[...c.branches].some(e=>e.contains(t));x&&!n&&(a?.(e),s?.(e),e.defaultPrevented||o?.())},p),T=function(e,t=globalThis?.document){let n=ej(e),r=el.useRef(!1);return el.useEffect(()=>{let e=e=>{e.target&&!r.current&&eG("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{let t=e.target;![...c.branches].some(e=>e.contains(t))&&(i?.(e),s?.(e),e.defaultPrevented||o?.())},p);return!function(e,t=globalThis?.document){let n=ej(e);el.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{y===c.layers.size-1&&(r?.(e),!e.defaultPrevented&&o&&(e.preventDefault(),o()))},p),el.useEffect(()=>{if(u)return n&&(0===c.layersWithOutsidePointerEventsDisabled.size&&(z=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),ez(),()=>{n&&1===c.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=z)}},[u,p,n,c]),el.useEffect(()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),ez())},[u,c]),el.useEffect(()=>{let e=()=>m({});return document.addEventListener(eU,e),()=>document.removeEventListener(eU,e)},[]),(0,eo.jsx)(eF.div,{...l,ref:h,style:{pointerEvents:E?x?"auto":"none":void 0,...e.style},onFocusCapture:ev(e.onFocusCapture,T.onFocusCapture),onBlurCapture:ev(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:ev(e.onPointerDownCapture,S.onPointerDownCapture)})});function ez(){let e=new CustomEvent(eU);document.dispatchEvent(e)}function eG(e,t,n,{discrete:r}){let a=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});if(t&&a.addEventListener(e,t,{once:!0}),r)a&&eD.flushSync(()=>a.dispatchEvent(i));else a.dispatchEvent(i)}eH.displayName="DismissableLayer",el.forwardRef((e,t)=>{let n=el.useContext(eB),r=el.useRef(null),a=ek(t,r);return el.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,eo.jsx)(eF.div,{...e,ref:a})}).displayName="DismissableLayerBranch";var e$="focusScope.autoFocusOnMount",eq="focusScope.autoFocusOnUnmount",eV={bubbles:!1,cancelable:!0},eW=el.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:a,onUnmountAutoFocus:i,...s}=e,[o,l]=el.useState(null),c=ej(a),u=ej(i),d=el.useRef(null),p=ek(t,e=>l(e)),m=el.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;el.useEffect(()=>{if(r){let e=function(e){if(m.paused||!o)return;let t=e.target;o.contains(t)?d.current=t:eX(d.current,{select:!0})},t=function(e){if(m.paused||!o)return;let t=e.relatedTarget;null!==t&&(o.contains(t)||eX(d.current,{select:!0}))};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&eX(o)});return o&&n.observe(o,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,o,m.paused]),el.useEffect(()=>{if(o){eZ.add(m);let e=document.activeElement;if(!o.contains(e)){let t=new CustomEvent(e$,eV);o.addEventListener(e$,c),o.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(eX(r,{select:t}),document.activeElement!==n)return}(eY(o).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&eX(o))}return()=>{o.removeEventListener(e$,c),setTimeout(()=>{let t=new CustomEvent(eq,eV);o.addEventListener(eq,u),o.dispatchEvent(t),t.defaultPrevented||eX(e??document.body,{select:!0}),o.removeEventListener(eq,u),eZ.remove(m)},0)}}},[o,c,u,m]);let h=el.useCallback(e=>{if(!n&&!r||m.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,a=document.activeElement;if(t&&a){var i;let t,r=e.currentTarget,[s,o]=[eK(t=eY(i=r),i),eK(t.reverse(),i)];s&&o?e.shiftKey||a!==o?e.shiftKey&&a===s&&(e.preventDefault(),n&&eX(o,{select:!0})):(e.preventDefault(),n&&eX(s,{select:!0})):a===r&&e.preventDefault()}},[n,r,m.paused]);return(0,eo.jsx)(eF.div,{tabIndex:-1,...s,ref:p,onKeyDown:h})});function eY(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function eK(e,t){for(let n of e)if(!function(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function eX(e,{select:t=!1}={}){if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}eW.displayName="FocusScope";var eZ=(f=[],{add(e){let t=f[0];e!==t&&t?.pause(),(f=eQ(f,e)).unshift(e)},remove(e){f=eQ(f,e),f[0]?.resume()}});function eQ(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}var eJ=el.forwardRef((e,t)=>{let{container:n,...r}=e,[a,i]=el.useState(!1);ew(()=>i(!0),[]);let s=n||a&&globalThis?.document?.body;return s?eD.default.createPortal((0,eo.jsx)(eF.div,{...r,ref:t}),s):null});eJ.displayName="Portal";var e0=e=>{var t;let n,r,{present:a,children:i}=e,s=function(e){var t,n;let[r,a]=el.useState(),i=el.useRef(null),s=el.useRef(e),o=el.useRef("none"),[l,c]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},el.useReducer((e,t)=>n[e][t]??e,t));return el.useEffect(()=>{let e=e1(i.current);o.current="mounted"===l?e:"none"},[l]),ew(()=>{let t=i.current,n=s.current;if(n!==e){let r=o.current,a=e1(t);e?c("MOUNT"):"none"===a||t?.display==="none"?c("UNMOUNT"):n&&r!==a?c("ANIMATION_OUT"):c("UNMOUNT"),s.current=e}},[e,c]),ew(()=>{if(r){let e,t=r.ownerDocument.defaultView??window,n=n=>{let a=e1(i.current).includes(CSS.escape(n.animationName));if(n.target===r&&a&&(c("ANIMATION_END"),!s.current)){let n=r.style.animationFillMode;r.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===r.style.animationFillMode&&(r.style.animationFillMode=n)})}},a=e=>{e.target===r&&(o.current=e1(i.current))};return r.addEventListener("animationstart",a),r.addEventListener("animationcancel",n),r.addEventListener("animationend",n),()=>{t.clearTimeout(e),r.removeEventListener("animationstart",a),r.removeEventListener("animationcancel",n),r.removeEventListener("animationend",n)}}c("ANIMATION_END")},[r,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:el.useCallback(e=>{i.current=e?getComputedStyle(e):null,a(e)},[])}}(a),o="function"==typeof i?i({present:s.isPresent}):el.Children.only(i),l=ek(s.ref,(t=o,(r=(n=Object.getOwnPropertyDescriptor(t.props,"ref")?.get)&&"isReactWarning"in n&&n.isReactWarning)?t.ref:(r=(n=Object.getOwnPropertyDescriptor(t,"ref")?.get)&&"isReactWarning"in n&&n.isReactWarning)?t.props.ref:t.props.ref||t.ref));return"function"==typeof i||s.isPresent?el.cloneElement(o,{ref:l}):null};function e1(e){return e?.animationName||"none"}e0.displayName="Presence";var e2=0;function e3(){el.useEffect(()=>{let e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??e4()),document.body.insertAdjacentElement("beforeend",e[1]??e4()),e2++,()=>{1===e2&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),e2--}},[])}function e4(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var e5=function(){return(e5=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)};function e6(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)0>t.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n}var e9=("function"==typeof SuppressedError&&SuppressedError,"right-scroll-bar-position"),e8="width-before-scroll-bar";function e7(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var te="u">typeof window?el.useLayoutEffect:el.useEffect,tt=new WeakMap,tn=(void 0===y&&(y={}),(void 0===E&&(E=function(e){return e}),x=[],S=!1,T={read:function(){if(S)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return x.length?x[x.length-1]:null},useMedium:function(e){var t=E(e,S);return x.push(t),function(){x=x.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(S=!0;x.length;){var t=x;x=[],t.forEach(e)}x={push:function(t){return e(t)},filter:function(){return x}}},assignMedium:function(e){S=!0;var t=[];if(x.length){var n=x;x=[],n.forEach(e),t=x}var r=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(r)};a(),x={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),x}}}}).options=e5({async:!0,ssr:!1},y),T),tr=function(){},ta=el.forwardRef(function(e,t){var n,r,a,i,s=el.useRef(null),o=el.useState({onScrollCapture:tr,onWheelCapture:tr,onTouchMoveCapture:tr}),l=o[0],c=o[1],u=e.forwardProps,d=e.children,p=e.className,m=e.removeScrollBar,h=e.enabled,f=e.shards,g=e.sideCar,b=e.noRelative,y=e.noIsolation,E=e.inert,x=e.allowPinchZoom,S=e.as,T=e.gapMode,v=e6(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),A=(n=[s,t],r=function(e){return n.forEach(function(t){return e7(t,e)})},(a=(0,el.useState)(function(){return{value:null,callback:r,facade:{get current(){return a.value},set current(value){var e=a.value;e!==value&&(a.value=value,a.callback(value,e))}}}})[0]).callback=r,i=a.facade,te(function(){var e=tt.get(i);if(e){var t=new Set(e),r=new Set(n),a=i.current;t.forEach(function(e){r.has(e)||e7(e,null)}),r.forEach(function(e){t.has(e)||e7(e,a)})}tt.set(i,n)},[n]),i),_=e5(e5({},v),l);return el.createElement(el.Fragment,null,h&&el.createElement(g,{sideCar:tn,removeScrollBar:m,shards:f,noRelative:b,noIsolation:y,inert:E,setCallbacks:c,allowPinchZoom:!!x,lockRef:s,gapMode:T}),u?el.cloneElement(el.Children.only(d),e5(e5({},_),{ref:A})):el.createElement(void 0===S?"div":S,e5({},_,{className:p,ref:A}),d))});ta.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},ta.classNames={fullWidth:e8,zeroRight:e9};var ti=function(e){var t=e.sideCar,n=e6(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return el.createElement(r,e5({},n))};ti.isSideCarExport=!0;var ts=function(){var e=0,t=null;return{add:function(n){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=G||("u">typeof __webpack_nonce__?__webpack_nonce__:void 0);return t&&e.setAttribute("nonce",t),e}())){var r,a;(r=t).styleSheet?r.styleSheet.cssText=n:r.appendChild(document.createTextNode(n)),a=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(a)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},to=function(){var e=ts();return function(t,n){el.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},tl=function(){var e=to();return function(t){return e(t.styles,t.dynamic),null}},tc={left:0,top:0,right:0,gap:0},tu=function(e){return parseInt(e||"",10)||0},td=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],a=t["padding"===e?"paddingRight":"marginRight"];return[tu(n),tu(r),tu(a)]},tp=function(e){if(void 0===e&&(e="margin"),"u"<typeof window)return tc;var t=td(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},tm=tl(),th="data-scroll-locked",tf=function(e,t,n,r){var a=e.left,i=e.top,s=e.right,o=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(o,"px ").concat(r,";\n }\n body[").concat(th,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(a,"px;\n padding-top: ").concat(i,"px;\n padding-right: ").concat(s,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(o,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(o,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(e9," {\n right: ").concat(o,"px ").concat(r,";\n }\n \n .").concat(e8," {\n margin-right: ").concat(o,"px ").concat(r,";\n }\n \n .").concat(e9," .").concat(e9," {\n right: 0 ").concat(r,";\n }\n \n .").concat(e8," .").concat(e8," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(th,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(o,"px;\n }\n")},tg=function(){var e=parseInt(document.body.getAttribute(th)||"0",10);return isFinite(e)?e:0},tb=function(){el.useEffect(function(){return document.body.setAttribute(th,(tg()+1).toString()),function(){var e=tg()-1;e<=0?document.body.removeAttribute(th):document.body.setAttribute(th,e.toString())}},[])},ty=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,a=void 0===r?"margin":r;tb();var i=el.useMemo(function(){return tp(a)},[a]);return el.createElement(tm,{styles:tf(i,!t,a,n?"":"!important")})},tE=!1;if("u">typeof window)try{var tx=Object.defineProperty({},"passive",{get:function(){return tE=!0,!0}});window.addEventListener("test",tx,tx),window.removeEventListener("test",tx,tx)}catch(e){tE=!1}var tS=!!tE&&{passive:!1},tT=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&(n.overflowY!==n.overflowX||"TEXTAREA"===e.tagName||"visible"!==n[t])},tv=function(e,t){var n=t.ownerDocument,r=t;do{if("u">typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),tA(e,r)){var a=t_(e,r);if(a[1]>a[2])return!0}r=r.parentNode}while(r&&r!==n.body)return!1},tA=function(e,t){return"v"===e?tT(t,"overflowY"):tT(t,"overflowX")},t_=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},tk=function(e,t,n,r,a){var i,s=(i=window.getComputedStyle(t).direction,"h"===e&&"rtl"===i?-1:1),o=s*r,l=n.target,c=t.contains(l),u=!1,d=o>0,p=0,m=0;do{if(!l)break;var h=t_(e,l),f=h[0],g=h[1]-h[2]-s*f;(f||g)&&tA(e,l)&&(p+=g,m+=f);var b=l.parentNode;l=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!c&&l!==document.body||c&&(t.contains(l)||t===l))return d&&(a&&1>Math.abs(p)||!a&&o>p)?u=!0:!d&&(a&&1>Math.abs(m)||!a&&-o>m)&&(u=!0),u},tN=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},tw=function(e){return[e.deltaX,e.deltaY]},tI=function(e){return e&&"current"in e?e.current:e},tC=0,tR=[];let tO=(v=function(e){var t=el.useRef([]),n=el.useRef([0,0]),r=el.useRef(),a=el.useState(tC++)[0],i=el.useState(tl)[0],s=el.useRef(e);el.useEffect(function(){s.current=e},[e]),el.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var t=(function(e,t,n){if(n||2==arguments.length)for(var r,a=0,i=t.length;a<i;a++)!r&&a in t||(r||(r=Array.prototype.slice.call(t,0,a)),r[a]=t[a]);return e.concat(r||Array.prototype.slice.call(t))})([e.lockRef.current],(e.shards||[]).map(tI),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var o=el.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!s.current.allowPinchZoom;var a,i=tN(e),o=n.current,l="deltaX"in e?e.deltaX:o[0]-i[0],c="deltaY"in e?e.deltaY:o[1]-i[1],u=e.target,d=Math.abs(l)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var p=window.getSelection(),m=p&&p.anchorNode;if(m&&(m===u||m.contains(u)))return!1;var h=tv(d,u);if(!h)return!0;if(h?a=d:(a="v"===d?"h":"v",h=tv(d,u)),!h)return!1;if(!r.current&&"changedTouches"in e&&(l||c)&&(r.current=a),!a)return!0;var f=r.current||a;return tk(f,t,e,"h"===f?l:c,!0)},[]),l=el.useCallback(function(e){if(tR.length&&tR[tR.length-1]===i){var n="deltaY"in e?tw(e):tN(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta,r[0]===n[0]&&r[1]===n[1])})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var a=(s.current.shards||[]).map(tI).filter(Boolean).filter(function(t){return t.contains(e.target)});(a.length>0?o(e,a[0]):!s.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=el.useCallback(function(e,n,r,a){var i={name:e,delta:n,target:r,should:a,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),u=el.useCallback(function(e){n.current=tN(e),r.current=void 0},[]),d=el.useCallback(function(t){c(t.type,tw(t),t.target,o(t,e.lockRef.current))},[]),p=el.useCallback(function(t){c(t.type,tN(t),t.target,o(t,e.lockRef.current))},[]);el.useEffect(function(){return tR.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:p}),document.addEventListener("wheel",l,tS),document.addEventListener("touchmove",l,tS),document.addEventListener("touchstart",u,tS),function(){tR=tR.filter(function(e){return e!==i}),document.removeEventListener("wheel",l,tS),document.removeEventListener("touchmove",l,tS),document.removeEventListener("touchstart",u,tS)}},[]);var m=e.removeScrollBar,h=e.inert;return el.createElement(el.Fragment,null,h?el.createElement(i,{styles:"\n .block-interactivity-".concat(a," {pointer-events: none;}\n .allow-interactivity-").concat(a," {pointer-events: all;}\n")}):null,m?el.createElement(ty,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},tn.useMedium(v),ti);var tL=el.forwardRef(function(e,t){return el.createElement(ta,e5({},e,{ref:t,sideCar:tO}))});tL.classNames=ta.classNames;var tD=new WeakMap,tP=new WeakMap,tM={},tF=0,tj=function(e){return e&&(e.host||tj(e.parentNode))},tU=function(e,t,n,r){var a=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=tj(e);return n&&t.contains(n)?n:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});tM[n]||(tM[n]=new WeakMap);var i=tM[n],s=[],o=new Set,l=new Set(a),c=function(e){!e||o.has(e)||(o.add(e),c(e.parentNode))};a.forEach(c);var u=function(e){!e||l.has(e)||Array.prototype.forEach.call(e.children,function(e){if(o.has(e))u(e);else try{var t=e.getAttribute(r),a=null!==t&&"false"!==t,l=(tD.get(e)||0)+1,c=(i.get(e)||0)+1;tD.set(e,l),i.set(e,c),s.push(e),1===l&&a&&tP.set(e,!0),1===c&&e.setAttribute(n,"true"),a||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return u(t),o.clear(),tF++,function(){s.forEach(function(e){var t=tD.get(e)-1,a=i.get(e)-1;tD.set(e,t),i.set(e,a),t||(tP.has(e)||e.removeAttribute(r),tP.delete(e)),a||e.removeAttribute(n)}),--tF||(tD=new WeakMap,tD=new WeakMap,tP=new WeakMap,tM={})}},tB=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),a=t||("u"<typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return a?(r.push.apply(r,Array.from(a.querySelectorAll("[aria-live], script"))),tU(r,a,n,"aria-hidden")):function(){return null}},tH=Symbol("radix.slottable");function tz(e){return el.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===tH}var tG="Dialog",[t$,tq]=eN(tG),[tV,tW]=t$(tG),tY=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:a,onOpenChange:i,modal:s=!0}=e,o=el.useRef(null),l=el.useRef(null),[c,u]=eL({prop:r,defaultProp:a??!1,onChange:i,caller:tG});return(0,eo.jsx)(tV,{scope:t,triggerRef:o,contentRef:l,contentId:eR(),titleId:eR(),descriptionId:eR(),open:c,onOpenChange:u,onOpenToggle:el.useCallback(()=>u(e=>!e),[u]),modal:s,children:n})};tY.displayName=tG;var tK="DialogTrigger";el.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,a=tW(tK,n),i=ek(t,a.triggerRef);return(0,eo.jsx)(eF.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":ni(a.open),...r,ref:i,onClick:ev(e.onClick,a.onOpenToggle)})}).displayName=tK;var tX="DialogPortal",[tZ,tQ]=t$(tX,{forceMount:void 0}),tJ=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:a}=e,i=tW(tX,t);return(0,eo.jsx)(tZ,{scope:t,forceMount:n,children:el.Children.map(r,e=>(0,eo.jsx)(e0,{present:n||i.open,children:(0,eo.jsx)(eJ,{asChild:!0,container:a,children:e})}))})};tJ.displayName=tX;var t0="DialogOverlay",t1=el.forwardRef((e,t)=>{let n=tQ(t0,e.__scopeDialog),{forceMount:r=n.forceMount,...a}=e,i=tW(t0,e.__scopeDialog);return i.modal?(0,eo.jsx)(e0,{present:r||i.open,children:(0,eo.jsx)(t3,{...a,ref:t})}):null});t1.displayName=t0;var t2=((g=el.forwardRef((e,t)=>{let{children:n,...r}=e;if(el.isValidElement(n)){var a;let e,i,s=(a=n,(i=(e=Object.getOwnPropertyDescriptor(a.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.ref:(i=(e=Object.getOwnPropertyDescriptor(a,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.props.ref:a.props.ref||a.ref),o=function(e,t){let n={...t};for(let r in t){let a=e[r],i=t[r];/^on[A-Z]/.test(r)?a&&i?n[r]=(...e)=>{let t=i(...e);return a(...e),t}:a&&(n[r]=a):"style"===r?n[r]={...a,...i}:"className"===r&&(n[r]=[a,i].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==el.Fragment&&(o.ref=t?e_(t,s):s),el.cloneElement(n,o)}return el.Children.count(n)>1?el.Children.only(null):null})).displayName="DialogOverlay.RemoveScroll.SlotClone",i=g,(s=el.forwardRef((e,t)=>{let{children:n,...r}=e,a=el.Children.toArray(n),s=a.find(tz);if(s){let e=s.props.children,n=a.map(t=>t!==s?t:el.Children.count(e)>1?el.Children.only(null):el.isValidElement(e)?e.props.children:null);return(0,eo.jsx)(i,{...r,ref:t,children:el.isValidElement(e)?el.cloneElement(e,void 0,n):null})}return(0,eo.jsx)(i,{...r,ref:t,children:n})})).displayName="DialogOverlay.RemoveScroll.Slot",s),t3=el.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,a=tW(t0,n);return(0,eo.jsx)(tL,{as:t2,allowPinchZoom:!0,shards:[a.contentRef],children:(0,eo.jsx)(eF.div,{"data-state":ni(a.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),t4="DialogContent",t5=el.forwardRef((e,t)=>{let n=tQ(t4,e.__scopeDialog),{forceMount:r=n.forceMount,...a}=e,i=tW(t4,e.__scopeDialog);return(0,eo.jsx)(e0,{present:r||i.open,children:i.modal?(0,eo.jsx)(t6,{...a,ref:t}):(0,eo.jsx)(t9,{...a,ref:t})})});t5.displayName=t4;var t6=el.forwardRef((e,t)=>{let n=tW(t4,e.__scopeDialog),r=el.useRef(null),a=ek(t,n.contentRef,r);return el.useEffect(()=>{let e=r.current;if(e)return tB(e)},[]),(0,eo.jsx)(t8,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ev(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:ev(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:ev(e.onFocusOutside,e=>e.preventDefault())})}),t9=el.forwardRef((e,t)=>{let n=tW(t4,e.__scopeDialog),r=el.useRef(!1),a=el.useRef(!1);return(0,eo.jsx)(t8,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,a.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(a.current=!0));let i=t.target;n.triggerRef.current?.contains(i)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&a.current&&t.preventDefault()}})}),t8=el.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:a,onCloseAutoFocus:i,...s}=e,o=tW(t4,n),l=el.useRef(null),c=ek(t,l);return e3(),(0,eo.jsxs)(eo.Fragment,{children:[(0,eo.jsx)(eW,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:a,onUnmountAutoFocus:i,children:(0,eo.jsx)(eH,{role:"dialog",id:o.contentId,"aria-describedby":o.descriptionId,"aria-labelledby":o.titleId,"data-state":ni(o.open),...s,ref:c,onDismiss:()=>o.onOpenChange(!1)})}),(0,eo.jsxs)(eo.Fragment,{children:[(0,eo.jsx)(nc,{titleId:o.titleId}),(0,eo.jsx)(nu,{contentRef:l,descriptionId:o.descriptionId})]})]})}),t7="DialogTitle",ne=el.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,a=tW(t7,n);return(0,eo.jsx)(eF.h2,{id:a.titleId,...r,ref:t})});ne.displayName=t7;var nt="DialogDescription",nn=el.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,a=tW(nt,n);return(0,eo.jsx)(eF.p,{id:a.descriptionId,...r,ref:t})});nn.displayName=nt;var nr="DialogClose",na=el.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,a=tW(nr,n);return(0,eo.jsx)(eF.button,{type:"button",...r,ref:t,onClick:ev(e.onClick,()=>a.onOpenChange(!1))})});function ni(e){return e?"open":"closed"}na.displayName=nr;var ns="DialogTitleWarning",[no,nl]=(A={contentName:t4,titleName:t7,docsSlug:"dialog"},o=el.createContext(A),(l=e=>{let{children:t,...n}=e,r=el.useMemo(()=>n,Object.values(n));return(0,eo.jsx)(o.Provider,{value:r,children:t})}).displayName=ns+"Provider",[l,function(e){let t=el.useContext(o);if(t)return t;if(void 0!==A)return A;throw Error(`\`${e}\` must be used within \`${ns}\``)}]),nc=({titleId:e})=>{let t=nl(ns),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
4
|
+
|
|
5
|
+
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
6
|
+
|
|
7
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return el.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},nu=({contentRef:e,descriptionId:t})=>{let n=nl("DialogDescriptionWarning"),r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${n.contentName}}.`;return el.useEffect(()=>{let n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null};let nd=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)},np=(...e)=>e.filter((e,t,n)=>!!e&&""!==e.trim()&&n.indexOf(e)===t).join(" ").trim();var nm={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let nh=(0,el.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:a="",children:i,iconNode:s,...o},l)=>(0,el.createElement)("svg",{ref:l,...nm,width:t,height:t,stroke:e,strokeWidth:r?24*Number(n)/Number(t):n,className:np("lucide",a),...!i&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0})(o)&&{"aria-hidden":"true"},...o},[...s.map(([e,t])=>(0,el.createElement)(e,t)),...Array.isArray(i)?i:[i]])),nf=(e,t)=>{let n=(0,el.forwardRef)(({className:n,...r},a)=>(0,el.createElement)(nh,{ref:a,iconNode:t,className:np(`lucide-${nd(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,n),...r}));return n.displayName=nd(e),n},ng=nf("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),nb=(e,t)=>{if(0===e.length)return t.classGroupId;let n=e[0],r=t.nextPart.get(n),a=r?nb(e.slice(1),r):void 0;if(a)return a;if(0===t.validators.length)return;let i=e.join("-");return t.validators.find(({validator:e})=>e(i))?.classGroupId},ny=/^\[(.+)\]$/,nE=(e,t,n,r)=>{e.forEach(e=>{if("string"==typeof e){(""===e?t:nx(t,e)).classGroupId=n;return}"function"==typeof e?nS(e)?nE(e(r),t,n,r):t.validators.push({validator:e,classGroupId:n}):Object.entries(e).forEach(([e,a])=>{nE(a,nx(t,e),n,r)})})},nx=(e,t)=>{let n=e;return t.split("-").forEach(e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)}),n},nS=e=>e.isThemeGetter,nT=(e,t)=>t?e.map(([e,n])=>[e,n.map(e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map(([e,n])=>[t+e,n])):e)]):e,nv=e=>{if(e.length<=1)return e;let t=[],n=[];return e.forEach(e=>{"["===e[0]?(t.push(...n.sort(),e),n=[]):n.push(e)}),t.push(...n.sort()),t},nA=/\s+/;function n_(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=nk(e))&&(r&&(r+=" "),r+=t);return r}let nk=e=>{let t;if("string"==typeof e)return e;let n="";for(let r=0;r<e.length;r++)e[r]&&(t=nk(e[r]))&&(n&&(n+=" "),n+=t);return n},nN=e=>{let t=t=>t[e]||[];return t.isThemeGetter=!0,t},nw=/^\[(?:([a-z-]+):)?(.+)\]$/i,nI=/^\d+\/\d+$/,nC=new Set(["px","full","screen"]),nR=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,nO=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,nL=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,nD=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,nP=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,nM=e=>nj(e)||nC.has(e)||nI.test(e),nF=e=>nZ(e,"length",nQ),nj=e=>!!e&&!Number.isNaN(Number(e)),nU=e=>nZ(e,"number",nj),nB=e=>!!e&&Number.isInteger(Number(e)),nH=e=>e.endsWith("%")&&nj(e.slice(0,-1)),nz=e=>nw.test(e),nG=e=>nR.test(e),n$=new Set(["length","size","percentage"]),nq=e=>nZ(e,n$,nJ),nV=e=>nZ(e,"position",nJ),nW=new Set(["image","url"]),nY=e=>nZ(e,nW,n1),nK=e=>nZ(e,"",n0),nX=()=>!0,nZ=(e,t,n)=>{let r=nw.exec(e);return!!r&&(r[1]?"string"==typeof t?r[1]===t:t.has(r[1]):n(r[2]))},nQ=e=>nO.test(e)&&!nL.test(e),nJ=()=>!1,n0=e=>nD.test(e),n1=e=>nP.test(e),n2=function(e,...t){let n,r,a,i=function(o){let l;return r=(n={cache:(e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=new Map,r=new Map,a=(a,i)=>{n.set(a,i),++t>e&&(t=0,r=n,n=new Map)};return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(a(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):a(e,t)}}})((l=t.reduce((e,t)=>t(e),e())).cacheSize),parseClassName:(e=>{let{separator:t,experimentalParseClassName:n}=e,r=1===t.length,a=t[0],i=t.length,s=e=>{let n,s=[],o=0,l=0;for(let c=0;c<e.length;c++){let u=e[c];if(0===o){if(u===a&&(r||e.slice(c,c+i)===t)){s.push(e.slice(l,c)),l=c+i;continue}if("/"===u){n=c;continue}}"["===u?o++:"]"===u&&o--}let c=0===s.length?e:e.substring(l),u=c.startsWith("!"),d=u?c.substring(1):c;return{modifiers:s,hasImportantModifier:u,baseClassName:d,maybePostfixModifierPosition:n&&n>l?n-l:void 0}};return n?e=>n({className:e,parseClassName:s}):s})(l),...(e=>{let t=(e=>{let{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return nT(Object.entries(e.classGroups),n).forEach(([e,n])=>{nE(n,r,e,t)}),r})(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{let n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),nb(n,t)||(e=>{if(ny.test(e)){let t=ny.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}})(e)},getConflictingClassGroupIds:(e,t)=>{let a=n[e]||[];return t&&r[e]?[...a,...r[e]]:a}}})(l)}).cache.get,a=n.cache.set,i=s,s(o)};function s(e){let t=r(e);if(t)return t;let i=((e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:a}=t,i=[],s=e.trim().split(nA),o="";for(let e=s.length-1;e>=0;e-=1){let t=s[e],{modifiers:l,hasImportantModifier:c,baseClassName:u,maybePostfixModifierPosition:d}=n(t),p=!!d,m=r(p?u.substring(0,d):u);if(!m){if(!p||!(m=r(u))){o=t+(o.length>0?" "+o:o);continue}p=!1}let h=nv(l).join(":"),f=c?h+"!":h,g=f+m;if(i.includes(g))continue;i.push(g);let b=a(m,p);for(let e=0;e<b.length;++e){let t=b[e];i.push(f+t)}o=t+(o.length>0?" "+o:o)}return o})(e,n);return a(e,i),i}return function(){return i(n_.apply(null,arguments))}}(()=>{let e=nN("colors"),t=nN("spacing"),n=nN("blur"),r=nN("brightness"),a=nN("borderColor"),i=nN("borderRadius"),s=nN("borderSpacing"),o=nN("borderWidth"),l=nN("contrast"),c=nN("grayscale"),u=nN("hueRotate"),d=nN("invert"),p=nN("gap"),m=nN("gradientColorStops"),h=nN("gradientColorStopPositions"),f=nN("inset"),g=nN("margin"),b=nN("opacity"),y=nN("padding"),E=nN("saturate"),x=nN("scale"),S=nN("sepia"),T=nN("skew"),v=nN("space"),A=nN("translate"),_=()=>["auto","contain","none"],k=()=>["auto","hidden","clip","visible","scroll"],N=()=>["auto",nz,t],w=()=>[nz,t],I=()=>["",nM,nF],C=()=>["auto",nj,nz],R=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],O=()=>["solid","dashed","dotted","double","none"],L=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],D=()=>["start","end","center","between","around","evenly","stretch"],P=()=>["","0",nz],M=()=>["auto","avoid","all","avoid-page","page","left","right","column"],F=()=>[nj,nz];return{cacheSize:500,separator:":",theme:{colors:[nX],spacing:[nM,nF],blur:["none","",nG,nz],brightness:F(),borderColor:[e],borderRadius:["none","","full",nG,nz],borderSpacing:w(),borderWidth:I(),contrast:F(),grayscale:P(),hueRotate:F(),invert:P(),gap:w(),gradientColorStops:[e],gradientColorStopPositions:[nH,nF],inset:N(),margin:N(),opacity:F(),padding:w(),saturate:F(),scale:F(),sepia:P(),skew:F(),space:w(),translate:w()},classGroups:{aspect:[{aspect:["auto","square","video",nz]}],container:["container"],columns:[{columns:[nG]}],"break-after":[{"break-after":M()}],"break-before":[{"break-before":M()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...R(),nz]}],overflow:[{overflow:k()}],"overflow-x":[{"overflow-x":k()}],"overflow-y":[{"overflow-y":k()}],overscroll:[{overscroll:_()}],"overscroll-x":[{"overscroll-x":_()}],"overscroll-y":[{"overscroll-y":_()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[f]}],"inset-x":[{"inset-x":[f]}],"inset-y":[{"inset-y":[f]}],start:[{start:[f]}],end:[{end:[f]}],top:[{top:[f]}],right:[{right:[f]}],bottom:[{bottom:[f]}],left:[{left:[f]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",nB,nz]}],basis:[{basis:N()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",nz]}],grow:[{grow:P()}],shrink:[{shrink:P()}],order:[{order:["first","last","none",nB,nz]}],"grid-cols":[{"grid-cols":[nX]}],"col-start-end":[{col:["auto",{span:["full",nB,nz]},nz]}],"col-start":[{"col-start":C()}],"col-end":[{"col-end":C()}],"grid-rows":[{"grid-rows":[nX]}],"row-start-end":[{row:["auto",{span:[nB,nz]},nz]}],"row-start":[{"row-start":C()}],"row-end":[{"row-end":C()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",nz]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",nz]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...D()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...D(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...D(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[v]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[v]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",nz,t]}],"min-w":[{"min-w":[nz,t,"min","max","fit"]}],"max-w":[{"max-w":[nz,t,"none","full","min","max","fit","prose",{screen:[nG]},nG]}],h:[{h:[nz,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[nz,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[nz,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[nz,t,"auto","min","max","fit"]}],"font-size":[{text:["base",nG,nF]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",nU]}],"font-family":[{font:[nX]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",nz]}],"line-clamp":[{"line-clamp":["none",nj,nU]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",nM,nz]}],"list-image":[{"list-image":["none",nz]}],"list-style-type":[{list:["none","disc","decimal",nz]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[b]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[b]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...O(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",nM,nF]}],"underline-offset":[{"underline-offset":["auto",nM,nz]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:w()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",nz]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",nz]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[b]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...R(),nV]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",nq]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},nY]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[h]}],"gradient-via-pos":[{via:[h]}],"gradient-to-pos":[{to:[h]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[o]}],"border-w-x":[{"border-x":[o]}],"border-w-y":[{"border-y":[o]}],"border-w-s":[{"border-s":[o]}],"border-w-e":[{"border-e":[o]}],"border-w-t":[{"border-t":[o]}],"border-w-r":[{"border-r":[o]}],"border-w-b":[{"border-b":[o]}],"border-w-l":[{"border-l":[o]}],"border-opacity":[{"border-opacity":[b]}],"border-style":[{border:[...O(),"hidden"]}],"divide-x":[{"divide-x":[o]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[o]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[b]}],"divide-style":[{divide:O()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...O()]}],"outline-offset":[{"outline-offset":[nM,nz]}],"outline-w":[{outline:[nM,nF]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:I()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[b]}],"ring-offset-w":[{"ring-offset":[nM,nF]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",nG,nK]}],"shadow-color":[{shadow:[nX]}],opacity:[{opacity:[b]}],"mix-blend":[{"mix-blend":[...L(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":L()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",nG,nz]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[E]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[b]}],"backdrop-saturate":[{"backdrop-saturate":[E]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",nz]}],duration:[{duration:F()}],ease:[{ease:["linear","in","out","in-out",nz]}],delay:[{delay:F()}],animate:[{animate:["none","spin","ping","pulse","bounce",nz]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[x]}],"scale-x":[{"scale-x":[x]}],"scale-y":[{"scale-y":[x]}],rotate:[{rotate:[nB,nz]}],"translate-x":[{"translate-x":[A]}],"translate-y":[{"translate-y":[A]}],"skew-x":[{"skew-x":[T]}],"skew-y":[{"skew-y":[T]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",nz]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",nz]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",nz]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[nM,nF,nU]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}});function n3(...e){return n2(function(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=function e(t){var n,r,a="";if("string"==typeof t||"number"==typeof t)a+=t;else if("object"==typeof t)if(Array.isArray(t))for(n=0;n<t.length;n++)t[n]&&(r=e(t[n]))&&(a&&(a+=" "),a+=r);else for(n in t)t[n]&&(a&&(a+=" "),a+=n);return a}(e))&&(r&&(r+=" "),r+=t);return r}(e))}function n4({...e}){return(0,eo.jsx)(tY,{"data-slot":"dialog",...e})}function n5({...e}){return(0,eo.jsx)(tJ,{"data-slot":"dialog-portal",...e})}function n6({className:e,...t}){return(0,eo.jsx)(t1,{"data-slot":"dialog-overlay",className:n3("fixed inset-0 z-50 bg-black/50 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t})}function n9({className:e,children:t,showCloseButton:n=!0,...r}){return(0,eo.jsxs)(n5,{"data-slot":"dialog-portal",children:[(0,eo.jsx)(n6,{}),(0,eo.jsxs)(t5,{"data-slot":"dialog-content",className:n3("fixed left-[50%] top-[50%] z-50 grid max-h-[calc(100vh-2rem)] w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 overflow-y-auto overscroll-contain rounded-lg border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 motion-reduce:transition-none motion-reduce:data-[state=closed]:animate-none motion-reduce:data-[state=open]:animate-none sm:max-w-lg",e),...r,children:[t,n&&(0,eo.jsxs)(na,{"data-slot":"dialog-close",className:"focus:outline-hidden absolute right-4 top-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",children:[(0,eo.jsx)(ng,{}),(0,eo.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function n8({className:e,...t}){return(0,eo.jsx)("div",{"data-slot":"dialog-header",className:n3("flex flex-col gap-2 text-center sm:text-left",e),...t})}function n7({className:e,...t}){return(0,eo.jsx)("div",{"data-slot":"dialog-footer",className:n3("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...t})}function re({className:e,...t}){return(0,eo.jsx)(ne,{"data-slot":"dialog-title",className:n3("text-lg font-semibold leading-none",e),...t})}function rt({className:e,...t}){return(0,eo.jsx)(nn,{"data-slot":"dialog-description",className:n3("text-sm text-muted-foreground",e),...t})}var rn=Symbol.for("react.lazy"),rr=el[" use ".trim().toString()];function ra(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===rn&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}function ri(e){var t;let n,r=(t=e,(n=el.forwardRef((e,t)=>{let{children:n,...r}=e;if(ra(n)&&"function"==typeof rr&&(n=rr(n._payload)),el.isValidElement(n)){var a;let e,i,s=(a=n,(i=(e=Object.getOwnPropertyDescriptor(a.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.ref:(i=(e=Object.getOwnPropertyDescriptor(a,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.props.ref:a.props.ref||a.ref),o=function(e,t){let n={...t};for(let r in t){let a=e[r],i=t[r];/^on[A-Z]/.test(r)?a&&i?n[r]=(...e)=>{let t=i(...e);return a(...e),t}:a&&(n[r]=a):"style"===r?n[r]={...a,...i}:"className"===r&&(n[r]=[a,i].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==el.Fragment&&(o.ref=t?e_(t,s):s),el.cloneElement(n,o)}return el.Children.count(n)>1?el.Children.only(null):null})).displayName=`${t}.SlotClone`,n),a=el.forwardRef((e,t)=>{let{children:n,...a}=e;ra(n)&&"function"==typeof rr&&(n=rr(n._payload));let i=el.Children.toArray(n),s=i.find(rl);if(s){let e=s.props.children,n=i.map(t=>t!==s?t:el.Children.count(e)>1?el.Children.only(null):el.isValidElement(e)?e.props.children:null);return(0,eo.jsx)(r,{...a,ref:t,children:el.isValidElement(e)?el.cloneElement(e,void 0,n):null})}return(0,eo.jsx)(r,{...a,ref:t,children:n})});return a.displayName=`${e}.Slot`,a}var rs=ri("Slot"),ro=Symbol("radix.slottable");function rl(e){return el.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===ro}let rc=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,ru=function(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=function e(t){var n,r,a="";if("string"==typeof t||"number"==typeof t)a+=t;else if("object"==typeof t)if(Array.isArray(t)){var i=t.length;for(n=0;n<i;n++)t[n]&&(r=e(t[n]))&&(a&&(a+=" "),a+=r)}else for(r in t)t[r]&&(a&&(a+=" "),a+=r);return a}(e))&&(r&&(r+=" "),r+=t);return r},rd=(e,t)=>n=>{var r;if((null==t?void 0:t.variants)==null)return ru(e,null==n?void 0:n.class,null==n?void 0:n.className);let{variants:a,defaultVariants:i}=t,s=Object.keys(a).map(e=>{let t=null==n?void 0:n[e],r=null==i?void 0:i[e];if(null===t)return null;let s=rc(t)||rc(r);return a[e][s]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e},{});return ru(e,s,null==t||null==(r=t.compoundVariants)?void 0:r.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):({...i,...o})[t]===n})?[...e,n,r]:e},[]),null==n?void 0:n.class,null==n?void 0:n.className)},rp=rd("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-[var(--brand-solid)] text-[var(--brand-foreground)] shadow-xs hover:opacity-90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:opacity-90",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-[var(--brand)] underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function rm({className:e,variant:t,size:n,asChild:r=!1,...a}){return(0,eo.jsx)(r?rs:"button",{"data-slot":"button",className:n3(rp({variant:t,size:n,className:e})),...a})}var rh=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=ri(`Primitive.${t}`),r=el.forwardRef((e,r)=>{let{asChild:a,...i}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,eo.jsx)(a?n:t,{...i,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),rf=el.forwardRef((e,t)=>(0,eo.jsx)(rh.label,{...e,ref:t,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));rf.displayName="Label";let rg=rd("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),rb=el.forwardRef(({className:e,...t},n)=>(0,eo.jsx)(rf,{ref:n,className:n3(rg(),e),...t}));function ry({className:e,type:t,...n}){return(0,eo.jsx)("input",{type:t,"data-slot":"input",className:n3("flex h-9 w-full min-w-0 rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-xs outline-none transition-[color,box-shadow] selection:bg-blue-200 selection:text-gray-900 file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 dark:bg-input/30 dark:selection:bg-blue-600 dark:selection:text-white md:text-sm","focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),...n})}rb.displayName=rf.displayName;let rE="evosci.ui.collapseAgentActions";function rx(){let e=window.localStorage.getItem(rE);return null===e||"true"===e}function rS(){let[e,t]=(0,el.useState)(rx);return(0,el.useEffect)(()=>{let e=e=>{e.key===rE&&t(rx())};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[]),{value:e,setValue:(0,el.useCallback)(e=>{t(e),window.localStorage.setItem(rE,String(e))},[])}}function rT({open:e,onOpenChange:t,onSave:n,initialConfig:r}){let[a,i]=(0,el.useState)(r?.deploymentUrl||"http://127.0.0.1:6174"),[s,o]=(0,el.useState)(null),l=(0,el.useRef)(null),{value:c,setValue:u}=rS();(0,el.useEffect)(()=>{if(e){if(o(null),r?.deploymentUrl)return void i(r.deploymentUrl);fetch("/api/evosci-config").then(e=>e.json()).then(e=>{e?.deploymentUrl&&i(e.deploymentUrl)}).catch(()=>{})}},[e,r]);let d=()=>{let e=a.trim();if(!e){o("Enter your deployment URL to continue."),l.current?.focus();return}try{new URL(e)}catch{o("Enter a valid URL, e.g. http://127.0.0.1:6174"),l.current?.focus();return}n({deploymentUrl:e,assistantId:ex}),t(!1)};return(0,eo.jsx)(n4,{open:e,onOpenChange:t,children:(0,eo.jsxs)(n9,{className:"sm:max-w-[525px]",children:[(0,eo.jsxs)(n8,{children:[(0,eo.jsx)(re,{children:"Configuration"}),(0,eo.jsxs)(rt,{children:["The URL of your EvoScientist deployment. By default this is your local deployment (detected automatically) — or a public URL from"," ",(0,eo.jsx)("code",{children:"EvoSci deploy"}),". Saved in your browser's local storage."]})]}),(0,eo.jsxs)("div",{className:"grid gap-4 py-4",children:[(0,eo.jsxs)("div",{className:"grid gap-2",children:[(0,eo.jsx)(rb,{htmlFor:"deploymentUrl",children:"Deployment URL"}),(0,eo.jsx)(ry,{ref:l,id:"deploymentUrl",name:"deploymentUrl",type:"url",inputMode:"url",autoComplete:"off",spellCheck:!1,autoFocus:!0,placeholder:"http://127.0.0.1:6174",value:a,onChange:e=>{i(e.target.value),s&&o(null)},onKeyDown:e=>{"Enter"!==e.key||e.nativeEvent.isComposing||d()},"aria-invalid":!!s||void 0,"aria-describedby":s?"deploymentUrl-error":void 0}),s&&(0,eo.jsx)("p",{id:"deploymentUrl-error",role:"alert","aria-live":"polite",className:"text-sm text-destructive",children:s})]}),(0,eo.jsxs)("div",{className:"flex items-start gap-2",children:[(0,eo.jsx)("input",{id:"collapseAgentActions",type:"checkbox",checked:c,onChange:e=>u(e.target.checked),"aria-label":"Collapse agent actions by default","aria-describedby":"collapseAgentActions-description",className:"mt-1 size-4 rounded border-border accent-[var(--brand)]"}),(0,eo.jsxs)(rb,{htmlFor:"collapseAgentActions",className:"text-sm font-normal leading-snug",children:["Collapse agent actions by default",(0,eo.jsx)("span",{id:"collapseAgentActions-description",className:"block text-xs text-muted-foreground",children:"Keeps tool-call sequences folded while running and after completion. Approval controls remain visible."})]})]})]}),(0,eo.jsxs)(n7,{children:[(0,eo.jsx)(rm,{variant:"outline",onClick:()=>t(!1),children:"Cancel"}),(0,eo.jsx)(rm,{onClick:d,children:"Save"})]})]})})}let rv=(...e)=>fetch(...e),rA=Symbol.for("lg:fetch_implementation"),r_=Object.prototype.toString,rk=new Set(["network error","NetworkError when attempting to fetch resource.","The Internet connection appears to be offline.","Network request failed","fetch failed","terminated"," A network error occurred.","Network connection lost"]);function rN(e,t,{min:n=0,allowInfinity:r=!1}={}){if(void 0!==t){if("number"!=typeof t||Number.isNaN(t))throw TypeError(`Expected \`${e}\` to be a number${r?" or Infinity":""}.`);if(!r&&!Number.isFinite(t))throw TypeError(`Expected \`${e}\` to be a finite number.`);if(t<n)throw TypeError(`Expected \`${e}\` to be \u2265 ${n}.`)}}var rw=class extends Error{constructor(e){super(),e instanceof Error?(this.originalError=e,{message:e}=e):(this.originalError=Error(e),this.originalError.stack=this.stack),this.name="AbortError",this.message=e}};function rI(e,t){return Number.isFinite(t)?t-(performance.now()-e):t}async function rC({error:e,attemptNumber:t,retriesConsumed:n,startTime:r,options:a}){let i,s=e instanceof Error?e:TypeError(`Non-error was thrown: "${e}". You should only throw errors.`);if(s instanceof rw)throw s.originalError;let o=Number.isFinite(a.retries)?Math.max(0,a.retries-n):a.retries,l=a.maxRetryTime??1/0,c=Object.freeze({error:s,attemptNumber:t,retriesLeft:o,retriesConsumed:n});if(await a.onFailedAttempt(c),0>=rI(r,l))throw s;let u=await a.shouldConsumeRetry(c),d=rI(r,l);if(d<=0||o<=0)throw s;if(s instanceof TypeError&&!function(e){if(!(e&&"[object Error]"===r_.call(e)&&"TypeError"===e.name&&"string"==typeof e.message))return!1;let{message:t,stack:n}=e;return"Load failed"===t?void 0===n||"__sentry_captured__"in e:!!(t.startsWith("error sending request for url")||"Failed to fetch"===t||t.startsWith("Failed to fetch (")&&t.endsWith(")"))||rk.has(t)}(s)){if(u)throw s;return a.signal?.throwIfAborted(),!1}if(!await a.shouldRetry(c))throw s;if(!u)return a.signal?.throwIfAborted(),!1;let p=Math.min((i=Math.max(1,n+1),Math.min(Math.round((a.randomize?Math.random()+1:1)*a.minTimeout*a.factor**(i-1)),a.maxTimeout)),d);return a.signal?.throwIfAborted(),p>0&&await new Promise((e,t)=>{let n=()=>{clearTimeout(r),a.signal?.removeEventListener("abort",n),t(a.signal.reason)},r=setTimeout(()=>{a.signal?.removeEventListener("abort",n),e()},p);a.unref&&r.unref?.(),a.signal?.addEventListener("abort",n,{once:!0})}),a.signal?.throwIfAborted(),!0}async function rR(e,t={}){var n=(t={...t}).retries;if("number"==typeof n){if(n<0)throw TypeError("Expected `retries` to be a non-negative number.");if(Number.isNaN(n))throw TypeError("Expected `retries` to be a valid number or Infinity, got NaN.")}else if(void 0!==n)throw TypeError("Expected `retries` to be a number or Infinity.");if(Object.hasOwn(t,"forever"))throw Error("The `forever` option is no longer supported. For many use-cases, you can set `retries: Infinity` instead.");t.retries??=10,t.factor??=2,t.minTimeout??=1e3,t.maxTimeout??=1/0,t.maxRetryTime??=1/0,t.randomize??=!1,t.onFailedAttempt??=()=>{},t.shouldRetry??=()=>!0,t.shouldConsumeRetry??=()=>!0,rN("factor",t.factor,{min:0,allowInfinity:!1}),rN("minTimeout",t.minTimeout,{min:0,allowInfinity:!1}),rN("maxTimeout",t.maxTimeout,{min:0,allowInfinity:!0}),rN("maxRetryTime",t.maxRetryTime,{min:0,allowInfinity:!0}),t.factor>0||(t.factor=1),t.signal?.throwIfAborted();let r=0,a=0,i=performance.now();for(;!Number.isFinite(t.retries)||a<=t.retries;){r++;try{t.signal?.throwIfAborted();let n=await e(r);return t.signal?.throwIfAborted(),n}catch(e){await rC({error:e,attemptNumber:r,retriesConsumed:a,startTime:i,options:t})&&a++}}throw Error("Retry attempts exhausted without throwing an error.")}var rO=Object.create,rL=Object.defineProperty,rD=Object.getOwnPropertyDescriptor,rP=Object.getOwnPropertyNames,rM=Object.getPrototypeOf,rF=Object.prototype.hasOwnProperty,rj=(c=(e,t)=>{var n=Object.prototype.hasOwnProperty,r="~";function a(){}function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function s(e,t,n,a,s){if("function"!=typeof n)throw TypeError("The listener must be a function");var o=new i(n,a||e,s),l=r?r+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],o]:e._events[l].push(o):(e._events[l]=o,e._eventsCount++),e}function o(e,t){0==--e._eventsCount?e._events=new a:delete e._events[t]}function l(){this._events=new a,this._eventsCount=0}Object.create&&(a.prototype=Object.create(null),new a().__proto__||(r=!1)),l.prototype.eventNames=function(){var e,t,a=[];if(0===this._eventsCount)return a;for(t in e=this._events)n.call(e,t)&&a.push(r?t.slice(1):t);return Object.getOwnPropertySymbols?a.concat(Object.getOwnPropertySymbols(e)):a},l.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var a=0,i=n.length,s=Array(i);a<i;a++)s[a]=n[a].fn;return s},l.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},l.prototype.emit=function(e,t,n,a,i,s){var o=r?r+e:e;if(!this._events[o])return!1;var l,c,u=this._events[o],d=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),d){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,n),!0;case 4:return u.fn.call(u.context,t,n,a),!0;case 5:return u.fn.call(u.context,t,n,a,i),!0;case 6:return u.fn.call(u.context,t,n,a,i,s),!0}for(c=1,l=Array(d-1);c<d;c++)l[c-1]=arguments[c];u.fn.apply(u.context,l)}else{var p,m=u.length;for(c=0;c<m;c++)switch(u[c].once&&this.removeListener(e,u[c].fn,void 0,!0),d){case 1:u[c].fn.call(u[c].context);break;case 2:u[c].fn.call(u[c].context,t);break;case 3:u[c].fn.call(u[c].context,t,n);break;case 4:u[c].fn.call(u[c].context,t,n,a);break;default:if(!l)for(p=1,l=Array(d-1);p<d;p++)l[p-1]=arguments[p];u[c].fn.apply(u[c].context,l)}}return!0},l.prototype.on=function(e,t,n){return s(this,e,t,n,!1)},l.prototype.once=function(e,t,n){return s(this,e,t,n,!0)},l.prototype.removeListener=function(e,t,n,a){var i=r?r+e:e;if(!this._events[i])return this;if(!t)return o(this,i),this;var s=this._events[i];if(s.fn)s.fn!==t||a&&!s.once||n&&s.context!==n||o(this,i);else{for(var l=0,c=[],u=s.length;l<u;l++)(s[l].fn!==t||a&&!s[l].once||n&&s[l].context!==n)&&c.push(s[l]);c.length?this._events[i]=1===c.length?c[0]:c:o(this,i)}return this},l.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&o(this,t)):(this._events=new a,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=r,l.EventEmitter=l,void 0!==t&&(t.exports=l)},()=>(u||c((u={exports:{}}).exports,u),u.exports));rj();var rU=((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var a,i=rP(t),s=0,o=i.length;s<o;s++)a=i[s],rF.call(e,a)||a===n||rL(e,a,{get:(e=>t[e]).bind(null,a),enumerable:!(r=rD(t,a))||r.enumerable});return e})(rL(null!=(d=rj())?rO(rM(d)):{},"default",{value:d,enumerable:!0}),d),rB=class e extends Error{name="TimeoutError";constructor(t,n){super(t,n),Error.captureStackTrace?.(this,e)}};let rH=e=>e.reason??new DOMException("This operation was aborted.","AbortError");var rz=class{#e=[];enqueue(e,t){let{priority:n=0,id:r}=t??{},a={priority:n,id:r,run:e};if(0===this.size||this.#e[this.size-1].priority>=n)return void this.#e.push(a);let i=function(e,t,n){let r=0,a=e.length;for(;a>0;){let i=Math.trunc(a/2),s=r+i;0>=n(e[s],t)?(r=++s,a-=i+1):a=i}return r}(this.#e,a,(e,t)=>t.priority-e.priority);this.#e.splice(i,0,a)}setPriority(e,t){let n=this.#e.findIndex(t=>t.id===e);if(-1===n)throw ReferenceError(`No promise function with the id "${e}" exists in the queue.`);let[r]=this.#e.splice(n,1);this.enqueue(r.run,{priority:t,id:e})}dequeue(){return this.#e.shift()?.run}filter(e){return this.#e.filter(t=>t.priority===e.priority).map(e=>e.run)}get size(){return this.#e.length}},rG=class extends rU.default{#t;#n;#r=0;#a;#i=!1;#s=!1;#o;#l=0;#c=0;#u;#d;#p;#m=[];#h=0;#e;#f;#g=0;#b;#y;#E=1n;#x=new Map;timeout;constructor(e){if(super(),!("number"==typeof(e={carryoverIntervalCount:!1,intervalCap:1/0,interval:0,concurrency:1/0,autoStart:!0,queueClass:rz,strict:!1,...e}).intervalCap&&e.intervalCap>=1))throw TypeError(`Expected \`intervalCap\` to be a number from 1 and up, got \`${e.intervalCap?.toString()??""}\` (${typeof e.intervalCap})`);if(void 0===e.interval||!(Number.isFinite(e.interval)&&e.interval>=0))throw TypeError(`Expected \`interval\` to be a finite number >= 0, got \`${e.interval?.toString()??""}\` (${typeof e.interval})`);if(e.strict&&0===e.interval)throw TypeError("The `strict` option requires a non-zero `interval`");if(e.strict&&e.intervalCap===1/0)throw TypeError("The `strict` option requires a finite `intervalCap`");if(this.#t=e.carryoverIntervalCount??e.carryoverConcurrencyCount??!1,this.#n=e.intervalCap===1/0||0===e.interval,this.#a=e.intervalCap,this.#o=e.interval,this.#p=e.strict,this.#e=new e.queueClass,this.#f=e.queueClass,this.concurrency=e.concurrency,void 0!==e.timeout&&!(Number.isFinite(e.timeout)&&e.timeout>0))throw TypeError(`Expected \`timeout\` to be a positive finite number, got \`${e.timeout}\` (${typeof e.timeout})`);this.timeout=e.timeout,this.#y=!1===e.autoStart,this.#S()}#T(e){for(;this.#h<this.#m.length;){let t=this.#m[this.#h];if(void 0!==t&&e-t>=this.#o)this.#h++;else break}(this.#h>100&&this.#h>this.#m.length/2||this.#h===this.#m.length)&&(this.#m=this.#m.slice(this.#h),this.#h=0)}#v(e){this.#p?this.#m.push(e):this.#r++}#A(){this.#p?this.#m.length>this.#h&&this.#m.pop():this.#r>0&&this.#r--}#_(){return this.#m.length-this.#h}get #k(){return!!this.#n||(this.#p?this.#_()<this.#a:this.#r<this.#a)}get #N(){return this.#g<this.#b}#w(){this.#g--,0===this.#g&&this.emit("pendingZero"),this.#I(),this.emit("next")}#C(){this.#d=void 0,this.#R(),this.#O()}#L(e){if(this.#p){if(this.#T(e),this.#_()>=this.#a){let t=this.#m[this.#h],n=this.#o-(e-t);return this.#D(n),!0}return!1}if(void 0===this.#u){let t=this.#l-e;if(!(t<0))return this.#D(t),!0;if(this.#c>0){let t=e-this.#c;if(t<this.#o)return this.#D(this.#o-t),!0}this.#r=this.#t?this.#g:0}return!1}#D(e){void 0===this.#d&&(this.#d=setTimeout(()=>{this.#C()},e))}#P(){this.#u&&(clearInterval(this.#u),this.#u=void 0)}#M(){this.#d&&(clearTimeout(this.#d),this.#d=void 0)}#I(){if(0===this.#e.size){if(this.#P(),this.emit("empty"),0===this.#g){if(this.#M(),this.#p&&this.#h>0){let e=Date.now();this.#T(e)}this.emit("idle")}return!1}let e=!1;if(!this.#y){let t=Date.now(),n=!this.#L(t);if(this.#k&&this.#N){let r=this.#e.dequeue();this.#n||(this.#v(t),this.#F()),this.emit("active"),r(),n&&this.#O(),e=!0}}return e}#O(){this.#n||void 0!==this.#u||this.#p||(this.#u=setInterval(()=>{this.#R()},this.#o),this.#l=Date.now()+this.#o)}#R(){this.#p||(0===this.#r&&0===this.#g&&this.#u&&this.#P(),this.#r=this.#t?this.#g:0),this.#j(),this.#F()}#j(){for(;this.#I(););}get concurrency(){return this.#b}set concurrency(e){if(!("number"==typeof e&&e>=1))throw TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${e}\` (${typeof e})`);this.#b=e,this.#j()}setPriority(e,t){if("number"!=typeof t||!Number.isFinite(t))throw TypeError(`Expected \`priority\` to be a finite number, got \`${t}\` (${typeof t})`);this.#e.setPriority(e,t)}async add(e,t={}){return t={timeout:this.timeout,...t,id:t.id??(this.#E++).toString()},new Promise((n,r)=>{let a=Symbol(`task-${t.id}`);this.#e.enqueue(async()=>{let i;this.#g++,this.#x.set(a,{id:t.id,priority:t.priority??0,startTime:Date.now(),timeout:t.timeout});try{try{t.signal?.throwIfAborted()}catch(e){throw this.#U(),this.#x.delete(a),e}this.#c=Date.now();let r=e({signal:t.signal});if(t.timeout&&(r=function(e,t){let n,r,{milliseconds:a,fallback:i,message:s,customTimers:o={setTimeout,clearTimeout},signal:l}=t,c=new Promise((t,c)=>{if("number"!=typeof a||1!==Math.sign(a))throw TypeError(`Expected \`milliseconds\` to be a positive number, got \`${a}\``);if(l?.aborted)return void c(rH(l));if(l&&(r=()=>{c(rH(l))},l.addEventListener("abort",r,{once:!0})),e.then(t,c),a===1/0)return;let u=new rB;n=o.setTimeout.call(void 0,()=>{if(i){try{t(i())}catch(e){c(e)}return}"function"==typeof e.cancel&&e.cancel(),!1===s?t():s instanceof Error?c(s):(u.message=s??`Promise timed out after ${a} milliseconds`,c(u))},a)}).finally(()=>{c.clear(),r&&l&&l.removeEventListener("abort",r)});return c.clear=()=>{o.clearTimeout.call(void 0,n),n=void 0},c}(Promise.resolve(r),{milliseconds:t.timeout,message:`Task timed out after ${t.timeout}ms (queue has ${this.#g} running, ${this.#e.size} waiting)`})),t.signal){let{signal:e}=t;r=Promise.race([r,new Promise((t,n)=>{i=()=>{n(e.reason)},e.addEventListener("abort",i,{once:!0})})])}let s=await r;n(s),this.emit("completed",s)}catch(e){r(e),this.emit("error",e)}finally{i&&t.signal?.removeEventListener("abort",i),this.#x.delete(a),queueMicrotask(()=>{this.#w()})}},t),this.emit("add"),this.#I()})}async addAll(e,t){return Promise.all(e.map(async e=>this.add(e,t)))}start(){return this.#y&&(this.#y=!1,this.#j()),this}pause(){this.#y=!0}clear(){this.#e=new this.#f,this.#P(),this.#B(),this.emit("empty"),0===this.#g&&(this.#M(),this.emit("idle")),this.emit("next")}async onEmpty(){0!==this.#e.size&&await this.#H("empty")}async onSizeLessThan(e){this.#e.size<e||await this.#H("next",()=>this.#e.size<e)}async onIdle(){(0!==this.#g||0!==this.#e.size)&&await this.#H("idle")}async onPendingZero(){0!==this.#g&&await this.#H("pendingZero")}async onRateLimit(){this.isRateLimited||await this.#H("rateLimit")}async onRateLimitCleared(){this.isRateLimited&&await this.#H("rateLimitCleared")}onError(){return new Promise((e,t)=>{let n=e=>{this.off("error",n),t(e)};this.on("error",n)})}async #H(e,t){return new Promise(n=>{let r=()=>{(!t||t())&&(this.off(e,r),n())};this.on(e,r)})}get size(){return this.#e.size}sizeBy(e){return this.#e.filter(e).length}get pending(){return this.#g}get isPaused(){return this.#y}#S(){this.#n||(this.on("add",()=>{this.#e.size>0&&this.#F()}),this.on("next",()=>{this.#F()}))}#F(){this.#n||this.#s||(this.#s=!0,queueMicrotask(()=>{this.#s=!1,this.#B()}))}#U(){this.#n||(this.#A(),this.#F())}#B(){let e,t=this.#i;if(this.#n||0===this.#e.size){t&&(this.#i=!1,this.emit("rateLimitCleared"));return}if(this.#p){let t=Date.now();this.#T(t),e=this.#_()}else e=this.#r;let n=e>=this.#a;n!==t&&(this.#i=n,this.emit(n?"rateLimit":"rateLimitCleared"))}get isRateLimited(){return this.#i}get isSaturated(){return this.#g===this.#b&&this.#e.size>0||this.isRateLimited&&this.#e.size>0}get runningTasks(){return[...this.#x.values()].map(e=>({...e}))}};let r$=[400,401,402,403,404,405,406,407,408,409,422];var rq=class e extends Error{status;text;response;constructor(e,t,n){super(`HTTP ${e}: ${t}`),this.status=e,this.text=t,this.response=n}static async fromResponse(t,n){try{return new e(t.status,await t.text(),n?.includeResponse?t:void 0)}catch{return new e(t.status,t.statusText,n?.includeResponse?t:void 0)}}},rV=class{maxConcurrency;maxRetries;queue;onFailedResponseHook;customFetch;constructor(e){this.maxConcurrency=e.maxConcurrency??1/0,this.maxRetries=e.maxRetries??4,"default"in rG?this.queue=new rG.default({concurrency:this.maxConcurrency}):this.queue=new rG({concurrency:this.maxConcurrency}),this.onFailedResponseHook=e?.onFailedResponseHook,this.customFetch=e.fetch}call(e,...t){let{onFailedResponseHook:n}=this;return this.queue.add(()=>rR(()=>e(...t).catch(async e=>{if(e instanceof Error)throw e;if(null!=e&&"object"==typeof e&&"status"in e&&"statusText"in e&&"text"in e)throw await rq.fromResponse(e,{includeResponse:!!n});throw Error(e)}),{async onFailedAttempt({error:e,retriesLeft:t}){let r=e.message??"";if(r.startsWith("Cancel")||r.startsWith("TimeoutError")||r.startsWith("AbortError")||e?.code==="ECONNABORTED")throw e;if(r.includes("ECONNREFUSED")||r.includes("fetch failed")||r.includes("Failed to fetch")||r.includes("NetworkError")){if(t>0)return;let e=Error(`Unable to connect to LangGraph server. Please ensure the server is running and accessible. Original error: ${r}`);throw e.name="ConnectionError",e}if(e instanceof rq){if(r$.includes(e.status))throw e;n&&e.response&&await n(e.response)}},retries:this.maxRetries,randomize:!0}),{throwOnTimeout:!0})}callWithOptions(e,t,...n){return e.signal?Promise.race([this.call(t,...n),new Promise((t,n)=>{e.signal?.addEventListener("abort",()=>{n(Error("AbortError"))})})]):this.call(t,...n)}fetch(...e){let t=this.customFetch??globalThis[rA]??rv;return this.call(()=>t(...e).then(e=>e.ok?e:Promise.reject(e)))}};let rW=[13,10];function rY(){let e=[],t=!1;return new TransformStream({start(){e=[],t=!1},transform(n,r){let a=n;if(t&&(a=rX([[13],a]),t=!1),a.length>0&&13===a.at(-1)&&(t=!0,a=a.subarray(0,-1)),!a.length)return;let i=rW.includes(a.at(-1)),s=a.length-1,{lines:o}=a.reduce((e,t,n)=>(e.from>n||((13===t||10===t)&&(e.lines.push(a.subarray(e.from,n)),13===t&&10===a[n+1]?e.from=n+2:e.from=n+1),n===s&&e.from<=s&&e.lines.push(a.subarray(e.from))),e),{lines:[],from:0});if(1===o.length&&!i)return void e.push(o[0]);for(let t of(e.length&&(e.push(o[0]),o[0]=rX(e),e=[]),!i&&o.length&&(e=[o.pop()]),o))r.enqueue(t)},flush(t){e.length&&t.enqueue(rX(e))}})}function rK(){let e="",t=[],n="",r=null,a=new TextDecoder;return new TransformStream({transform(i,s){if(!i.length){if(!e&&!t.length&&!n&&null==r)return;let i={id:n||void 0,event:e,data:t.length?rZ(a,t):null};e="",t=[],r=null,s.enqueue(i);return}if(58===i[0])return;let o=i.indexOf(58);if(-1===o)return;let l=a.decode(i.subarray(0,o)),c=i.subarray(o+1);if(32===c[0]&&(c=c.subarray(1)),"event"===l)e=a.decode(c);else if("data"===l)t.push(c);else if("id"===l)-1===c.indexOf(0)&&(n=a.decode(c));else if("retry"===l){let e=Number.parseInt(a.decode(c),10);Number.isNaN(e)||(r=e)}},flush(r){e&&r.enqueue({id:n||void 0,event:e,data:t.length?rZ(a,t):null})}})}function rX(e){let t=new Uint8Array(e.reduce((e,t)=>e+t.length,0)),n=0;for(let r of e)t.set(r,n),n+=r.length;return t}function rZ(e,t){return JSON.parse(e.decode(rX(t)))}let rQ=e=>{if("isError"in Error&&"function"==typeof Error.isError)return Error.isError(e);let t=Object.prototype.toString.call(e);return"[object Error]"===t||"[object DOMException]"===t||"[object DOMError]"===t||"[object Exception]"===t},rJ=e=>{if(!rQ(e)||"TypeError"!==e.name||"string"!=typeof e.message)return!1;let t=e.message.toLowerCase(),n=(e=>{let{cause:t}=e;return"object"==typeof t&&null!=t&&rQ(t)?t:null})(e)?.message?.toLowerCase()??"";return t.includes("fetch")||t.includes("network")||t.includes("connection")||t.includes("error sending request")||t.includes("load failed")||t.includes("terminated")||n.includes("other side closed")||n.includes("socket")};var r0=class extends Error{constructor(e,t){super(`Exceeded maximum SSE reconnection attempts (${e})`),this.name="MaxReconnectAttemptsError",this.cause=t}},r1=class extends Error{idleTimeoutMs;constructor(e){super(`No SSE bytes received for ${e}ms; assuming the connection is half-open and reconnecting.`),this.name="StreamIdleTimeoutError",this.idleTimeoutMs=e}};function r2(e){let t,n,r,a=e.timeoutFactor??3,i=e.minTimeoutMs??6e3,s=e.maxTimeoutMs??3e4,o="number"==typeof e.mode?e.mode:null,l=o,c=()=>{null!=t&&(clearTimeout(t),t=void 0)},u=()=>{c();let r=l;null==r||r<=0||(t=setTimeout(()=>{e.onIdle?.({timeoutMs:r,source:null!=o?"fixed":"heartbeat"});try{n?.error(new r1(r))}catch{}},r),t.unref?.())};return new TransformStream({start(e){n=e,u()},transform(e,t){e.length>0&&58===e[0]&&(()=>{if(null!=o)return;let e=Date.now();if(null!=r){let t=e-r;if(t>0){let e=Math.min(Math.max(t*a,i),s);l=null==l?e:Math.max(l,e)}}r=e})(),u(),t.enqueue(e)},flush(){c()}})}async function*r3(e,t={}){let n,r,a=t.maxRetries??5,i=0;for(;;){let s,o,l=!1;try{if(t.signal?.aborted)return;let{response:a,stream:i}=await e(r?{lastEventId:n,reconnectPath:r}:void 0),s=a.headers.get("location");s&&(r=s);let c=a.headers.get("content-type")?.split(";")[0];if(c&&!c.includes("text/event-stream"))throw Error(`Expected response header Content-Type to contain 'text/event-stream', got '${c}'`);o=i.getReader();try{for(;;){if(t.signal?.aborted)return void await o.cancel();let{done:e,value:r}=await o.read();if(e)break;r.id&&(n=r.id),yield r}break}catch(e){if(r&&!t.signal?.aborted)l=!0;else throw e}finally{if(o)try{o.releaseLock()}catch{}}}catch(e){if(s=e,rJ(e)&&r&&!t.signal?.aborted)l=!0;else throw e}if(l){if((i+=1)>a)throw new r0(a,s);t.onReconnect?.({attempt:i,lastEventId:n,cause:s});let e=Math.min(1e3*2**(i-1),5e3)+1e3*Math.random();await new Promise(t=>{setTimeout(t,e)});continue}break}}var r4=class e extends ReadableStream{reader;ensureReader(){this.reader||(this.reader=this.getReader())}async next(){this.ensureReader();try{let e=await this.reader.read();if(e.done)return this.reader.releaseLock(),{done:!0,value:void 0};return{done:!1,value:e.value}}catch(e){throw this.reader.releaseLock(),e}}async return(){if(this.ensureReader(),this.locked){let e=this.reader.cancel();this.reader.releaseLock(),await e}return{done:!0,value:void 0}}async throw(e){if(this.ensureReader(),this.locked){let e=this.reader.cancel();this.reader.releaseLock(),await e}throw e}async [Symbol.asyncDispose](){await this.return()}[Symbol.asyncIterator](){return this}static fromReadableStream(t){let n=t.getReader();return new e({start:e=>(function t(){return n.read().then(({done:n,value:r})=>n?void e.close():(e.enqueue(r),t()))})(),cancel(){n.releaseLock()}})}static fromAsyncGenerator(t){return new e({async pull(e){let{value:n,done:r}=await t.next();r&&e.close(),e.enqueue(n)},async cancel(e){await t.return(e)}})}};function r5(...e){let t=new Headers;for(let n of e)if(n)for(let[e,r]of function*(e){let t,n=!1;if(e instanceof Headers){let n=[];e.forEach((e,t)=>{n.push([t,e])}),t=n}else Array.isArray(e)?t=e:(n=!0,t=Object.entries(e??{}));for(let e of t){let t=e[0];if("string"!=typeof t)throw TypeError(`Expected header name to be a string, got ${typeof t}`);let r=Array.isArray(e[1])?e[1]:[e[1]],a=!1;for(let e of r)void 0!==e&&(n&&!a&&(a=!0,yield[t,null]),yield[t,e])}}(n))null===r?t.delete(e):t.append(e,r);let n=[];return t.forEach((e,t)=>{n.push([t,e])}),Object.fromEntries(n)}var r6=class{asyncCaller;timeoutMs;apiUrl;defaultHeaders;onRequest;streamProtocol;constructor(e){const t={maxRetries:4,maxConcurrency:4,...e?.callerOptions};let n="http://localhost:8123";if(!e?.apiUrl&&"object"==typeof globalThis&&null!=globalThis){const e=Symbol.for("langgraph_api:fetch"),r=Symbol.for("langgraph_api:url"),a=globalThis;a[e]&&(t.fetch??=a[e]),a[r]&&(n=a[r])}this.asyncCaller=new rV(t),this.timeoutMs=e?.timeoutMs,this.apiUrl=e?.apiUrl?.replace(/\/$/,"")||n,this.defaultHeaders=e?.defaultHeaders||{},this.onRequest=e?.onRequest,this.streamProtocol=e?.streamProtocol??"legacy";const r=function(e){if(null!==e){if(e)return e;for(let e of["LANGGRAPH","LANGSMITH","LANGCHAIN"]){let t=function(e){try{return void 0!==es.default?es.default.env?.[e]:void 0}catch{return}}(`${e}_API_KEY`);if(t)return t.trim().replace(/^["']|["']$/g,"")}}}(e?.apiKey);r&&(this.defaultHeaders["x-api-key"]=r)}prepareFetchOptions(e,t){let n={...t,headers:r5(this.defaultHeaders,t?.headers)};n.json&&(n.body=JSON.stringify(n.json),n.headers=r5(n.headers,{"content-type":"application/json"}),delete n.json),n.withResponse&&delete n.withResponse,"dedupe"in n&&delete n.dedupe;let r=null;void 0!==t?.timeoutMs?null!=t.timeoutMs&&(r=AbortSignal.timeout(t.timeoutMs)):null!=this.timeoutMs&&(r=AbortSignal.timeout(this.timeoutMs)),n.signal=function(...e){let t=e.filter(e=>null!=e);if(0===t.length)return;if(1===t.length)return t[0];let n=new AbortController;for(let t of e){if(t?.aborted){n.abort(t.reason);break}t?.addEventListener("abort",()=>n.abort(t.reason),{once:!0})}return n.signal}(r,n.signal);let a=new URL(`${this.apiUrl}${e}`);if(n.params){for(let[e,t]of Object.entries(n.params)){if(null==t)continue;let n="string"==typeof t||"number"==typeof t?t.toString():JSON.stringify(t);a.searchParams.append(e,n)}delete n.params}return[a,n]}async fetch(e,t){let[n,r]=this.prepareFetchOptions(e,t);if(t?.dedupe===!0&&t?.withResponse!==!0&&t?.signal==null&&null==this.onRequest){let e,t="string"==typeof r.body?r.body:"",a=Object.keys(e=r5(r.headers)).sort().map(t=>`${t}:${e[t]}`).join("\n"),i=`${r.method??"GET"} ${n.toString()} ${t} ${a}`,s=r7.get(i);if(null!=s)return s;let o=this.#z(n,r);r7.set(i,o);let l=()=>{r7.get(i)===o&&r7.delete(i)};return o.then(l,l),o}let[a,i]=await this.#G(n,r);return t?.withResponse?[a,i]:a}async #z(e,t){let[n]=await this.#G(e,t);return n}async #G(e,t){let n=t;this.onRequest&&(n=await this.onRequest(e,t));let r=await this.asyncCaller.fetch(e.toString(),n);return[await (async()=>{if(202!==r.status&&204!==r.status)return r.json()})(),r]}async *streamWithRetry(e){let t=async t=>{let n=t?.reconnectPath||e.endpoint,r=!!t?.reconnectPath,a=r?"GET":e.method||"GET",i=r&&t?.lastEventId?{...e.headers,"Last-Event-ID":t.lastEventId}:e.headers,[s,o]=this.prepareFetchOptions(n,{method:a,timeoutMs:null,signal:e.signal,headers:i,params:e.params,json:r?void 0:e.json});null!=this.onRequest&&(o=await this.onRequest(s,o));let l=await this.asyncCaller.fetch(s.toString(),o);if(!l.body)throw Error("Expected response body from stream endpoint");!r&&e.onInitialResponse&&await e.onInitialResponse(l);let c=e.idleReconnect??"auto",u="auto"===c||c>0,d=l.body.pipeThrough(rY());return{response:l,stream:(u?d.pipeThrough(r2({mode:c})):d).pipeThrough(rK())}};yield*r3(t,{maxRetries:e.maxRetries??5,signal:e.signal,onReconnect:e.onReconnect})}};let r9=/(\/threads\/(?<thread_id>.+))?\/runs\/(?<run_id>.+)/;function r8(e){let t=e.headers.get("Content-Location");if(!t)return;let n=r9.exec(t);if(n?.groups?.run_id)return{run_id:n.groups.run_id,thread_id:n.groups.thread_id||void 0}}let r7=new Map;var ae=e.i(846001),at=e.i(41348),an=class extends Error{code;response;constructor(e){super(e.message),this.name="ProtocolError",this.code=e.error,this.response=e}},ar=class extends Error{maxAttempts;constructor(e,t){super(`Exceeded maximum WebSocket reconnection attempts (${e})`),this.name="MaxWebSocketReconnectAttemptsError",this.maxAttempts=e,this.cause=t}};function aa(e){if("object"!=typeof e||null==e||"tool"!==e.type)return null;let t=e.toolCall??e.tool_call;return"object"!=typeof t||null==t||"string"!=typeof t.name?null:{type:"tool",toolCall:{id:"string"==typeof t.id?t.id:void 0,name:t.name,args:t.args}}}function ai(e){return e.filter(e=>null==e.value||null==aa(e.value))}async function as(e,t,n){let r=Date.now();n?.({phase:"start",name:e.tool.name,args:t});try{let a=await e.execute(t),i=Date.now()-r;return n?.({phase:"success",name:e.tool.name,args:t,result:a,duration:i}),{success:!0,result:a}}catch(s){let a=s instanceof Error?s:Error(String(s)),i=Date.now()-r;return n?.({phase:"error",name:e.tool.name,args:t,error:a,duration:i}),{success:!1,error:a}}}async function ao(e,t,n){var r;let{toolCall:a}=e,i=(r=a.name,t.find(e=>e.tool.name===r));if(!i){let e=Error(`Headless tool "${a.name}" is not registered. Available tools: ${t.map(e=>e.tool.name).join(", ")||"none"}`);return n?.({phase:"error",name:a.name,args:a.args,error:e,duration:0}),{toolCallId:a.id,value:{error:e.message}}}let s=await as(i,a.args,n);return s.success?{toolCallId:a.id,value:s.result}:{toolCallId:a.id,value:{error:s.error.message}}}function al(e,t,n,r){if(!t?.length||!e)return;let a=e.__interrupt__;if(!Array.isArray(a)||0===a.length)return;let i=r.defer??(e=>e()),s=[],o=new Set;for(let e of a){let t=aa(e.value);if(!t)continue;let r=e.id??t.toolCall.id??"",a=t.toolCall.id??"";!(n.has(r)||a&&n.has(a))&&(a&&o.has(a)||(a&&o.add(a),n.add(r),a&&n.add(a),s.push({interruptId:r,headlessInterrupt:t,toolCallId:a})))}0!==s.length&&i(()=>{(async()=>{let e=await Promise.all(s.map(async({interruptId:e,headlessInterrupt:n,toolCallId:a})=>{let i=await ao(n,t,r.onTool);return{interruptId:e,toolCallId:i.toolCallId??a,value:i.value}}));await Promise.resolve(r.resumeSubmit(function(e){if(0===e.length)return{resume:{},keyedByInterruptId:!1};if(!e.every(e=>e.interruptId.length>0)&&1===e.length){var t;let[n]=e;return{resume:(t={toolCallId:n.toolCallId,value:n.value}).toolCallId?{[t.toolCallId]:t.value}:t.value,keyedByInterruptId:!1}}let n={};for(let t of e)0!==t.interruptId.length&&(n[t.interruptId]=null!=t.toolCallId&&t.toolCallId.length>0?{[t.toolCallId]:t.value}:t.value);return{resume:n,keyedByInterruptId:!0}}(e)))})()})}var ac=e.i(43073);e.i(833953);var au=e.i(641290),ad=e.i(165161),ap=e.i(795529),am=e.i(265898),ah=e.i(399855),af=e.i(457933);function ag(e){let t=ab(e);return"human"===t.type||"user"===t.type?new ad.HumanMessage(t):"ai"===t.type||"assistant"===t.type?new au.AIMessage(t):"system"===t.type?new am.SystemMessage(t):"tool"===t.type&&"tool_call_id"in t?new ah.ToolMessage({...t,tool_call_id:t.tool_call_id}):"remove"===t.type&&null!=t.id?new ap.RemoveMessage({...t,id:t.id}):(0,af.coerceMessageLikeToMessage)(t)}function ab(e){var t;let n=function(e){var t;let n=e.contentBlocks??e.content_blocks;if(!Array.isArray(n)||0===n.length)return e;let r=null==(t=e.content)||""===t||Array.isArray(t)&&0===t.length||!ay(e.content)&&ay(n);return r||e.contentBlocks!==n?{...e,content:r?n:e.content,contentBlocks:n}:e}(e);if(Array.isArray(n.tool_calls)&&n.tool_calls.length>0)return n;let r=Array.isArray(t=n.content)?t.flatMap(e=>null==e||"object"!=typeof e||"tool_call"!==e.type&&"tool_use"!==e.type?[]:[{id:e.id??"",name:e.name??"",args:function(e){if(null!=e&&"object"==typeof e&&!Array.isArray(e))return e;if("string"==typeof e&&e.length>0)try{let t=JSON.parse(e);if(null!=t&&"object"==typeof t&&!Array.isArray(t))return t}catch{}return{}}(e.args??e.input),type:"tool_call"}]):[];return 0===r.length?n:{...n,tool_calls:r}}function ay(e){return"string"==typeof e?e.length>0:!!Array.isArray(e)&&e.some(e=>"string"==typeof e?e.length>0:null!=e&&"object"==typeof e&&"text"===e.type&&"string"==typeof e.text&&e.text.length>0)}var aE=e.i(44649),ax=class{chunks={};constructor(){this.chunks={}}add(e,t){e.type.endsWith("MessageChunk")&&(e.type=e.type.slice(0,-12).toLowerCase());let n="human"===e.type||"user"===e.type?new ad.HumanMessageChunk(e):"ai"===e.type||"assistant"===e.type?new au.AIMessageChunk(ab(e)):"system"===e.type?new am.SystemMessageChunk(e):"tool"===e.type&&"tool_call_id"in e?new ah.ToolMessageChunk({...e,tool_call_id:e.tool_call_id}):ag(e),r=function(e){try{if(aE.BaseMessageChunk.isInstance(e))return e;return(0,af.convertToChunk)(e)}catch{return null}}(n),{id:a}=r??n;if(!a)return console.warn("No message ID found for chunk, ignoring in state",e),null;if(this.chunks[a]??={},this.chunks[a].metadata=t??this.chunks[a].metadata,r){let e=this.chunks[a].chunk;this.chunks[a].chunk=(aE.BaseMessageChunk.isInstance(e)?e:null)?.concat(r)??r}else this.chunks[a].chunk=n;return a}clear(){this.chunks={}}get(e,t){return null==e||null==this.chunks[e]?null:(null!=t&&(this.chunks[e].index??=t),this.chunks[e])}};let aS=e=>{let{type:t,data:n}=e.toDict();return{...n,type:t}};var aT=e.i(827179),av=e.i(364964),aA=e.i(88906);let a_=new Set(["human","user","ai","assistant","tool","system","function","remove"]);function ak(e){return e.join("\0")}function aN(e,t){return null==t?e:null==e?t:Math.max(e,t)}let aw=new Set(["completed","failed","interrupted"]);function aI(e,t){if(e===t)return!0;if(null==e||null==t||e.channels.length!==t.channels.length)return!1;let n=new Set(e.channels);for(let e of t.channels)if(!n.has(e))return!1;return!!function(e,t){if(e===t)return!0;if(void 0===e||void 0===t||e.length!==t.length)return!1;let n=new Set;for(let t of e)n.add(ak(t));for(let e of t)if(!n.has(ak(e)))return!1;return!0}(e.namespaces,t.namespaces)&&(e.depth??null)===(t.depth??null)}function aC(e,t){let n=new Set(e.channels);for(let e of t.channels)if(!n.has(e))return!1;let r=e.depth,a=t.depth;if(null==e.namespaces)return null==r||null!=a&&a<=r;if(null==t.namespaces)return!1;for(let n of t.namespaces)if(!e.namespaces.some(e=>!!function(e,t){if(e.length>t.length)return!1;for(let n=0;n<e.length;n+=1)if(e[n]!==t[n])return!1;return!0}(e,n)&&(null==r||null!=a&&n.length-e.length+a<=r)))return!1;return!0}function aR(e){let{forkFrom:t,...n}=e;if("string"!=typeof t||0===t.length)return n;let r=null!=n.config&&"object"==typeof n.config?n.config:{},a=null!=r.configurable&&"object"==typeof r.configurable?r.configurable:{};return{...n,config:{...r,configurable:{...a,checkpoint_id:t}}}}var aO=class{subscriptionId;params;queue=[];waiters=[];closed=!1;paused=!1;resumeResolve;onUnsubscribe;transform;constructor(e,t,n,r){this.subscriptionId=e,this.params=t,this.onUnsubscribe=n,this.transform=r??(e=>e)}push(e){if(this.closed)return;let t=this.transform(e),n=this.waiters.shift();n?n({done:!1,value:t}):this.queue.push(t)}pause(){if(!this.closed)for(this.paused=!0;this.waiters.length>0;)this.waiters.shift()?.({done:!0,value:void 0})}resume(){this.paused=!1,this.resumeResolve?.(),this.resumeResolve=void 0}waitForResume(){return this.paused?new Promise(e=>{this.resumeResolve=e}):Promise.resolve()}get isPaused(){return this.paused}close(){for(this.closed=!0,this.paused=!1;this.waiters.length>0;)this.waiters.shift()?.({done:!0,value:void 0});this.resumeResolve?.(),this.resumeResolve=void 0}async unsubscribe(){this.closed||(this.close(),await this.onUnsubscribe(this.subscriptionId))}[Symbol.asyncIterator](){return{next:async()=>this.queue.length>0?{done:!1,value:this.queue.shift()}:this.closed||this.paused?{done:!0,value:void 0}:await new Promise(e=>{this.waiters.push(e)}),return:async()=>(this.close(),{done:!0,value:void 0})}}},aL=class{threadId;ordering={};run;agent;input;state;interrupted=!1;interrupts=[];assistantId;#$;#q;#g=new Map;#V=new Map;#W=new Set;#Y=new Set;#K=!1;#X=!1;#Z;#Q=null;#J=null;#ee="idle";#et=[];#en;#er;#ea=null;#ei;#es=null;#eo=null;#el;#ec=new Set;#eu;#ed;#ep;#em;#eh;#ef;#eg;#eb=new Map;#ey=!1;#eE=!1;#ex=[];#eS=[];#eT=[];#ev=!1;#eA;#e_=new Set;#ek=new ac.MultiCursorBuffer;#eN=new ac.MultiCursorBuffer;#ew=new ac.MultiCursorBuffer;#eI=new ac.MultiCursorBuffer;#eC;constructor(e,t){if(!t?.assistantId)throw Error("ThreadStream requires an assistantId option.");this.#q=e,this.threadId=e.threadId,this.assistantId=t.assistantId,this.#$=t.startingCommandId??1,this.#eC=t.fetch,this.run={start:async e=>(this.#eR(),await this.#eO(()=>(this.#eL(),this.values,this.#eD("run.start",{...aR(e),assistant_id:this.assistantId}))))},this.agent={getTree:async(e={})=>await this.#eD("agent.getTree",e)},this.input={respond:async e=>{this.#eR(),this.#eL(),this.values,await this.#eD("input.respond",e)},inject:async e=>{await this.#eD("input.inject",e)}},this.state={get:async e=>await this.#eD("state.get",e),listCheckpoints:async e=>await this.#eD("state.listCheckpoints",e),fork:async e=>await this.#eD("state.fork",e)},null==this.#q.openEventStream&&(this.#q.setOnReconnected?.(()=>this.#eP()),this.#eM())}async #eF(){this.#X||(null==this.#Z&&(this.#Z=this.#q.open().then(()=>{this.#X=!0})),await this.#Z)}#ej(){return["lifecycle","input"]}#eL(){null==this.#ei&&(this.#ei=(async()=>{this.#ea=(await this.#eU({channels:this.#ej()})).subscriptionId})().catch(()=>void 0))}async #eO(e){let t,n,r=new Promise((e,r)=>{t=e,n=r});this.#es=r,r.catch(()=>void 0);try{let n=await e();return t(),n}catch(e){throw n(e),e}finally{this.#es===r&&(this.#es=null)}}#eR(e){if(this.interrupted=!1,null!=e){let t=new Set(Array.isArray(e)?e:[e]);for(let e=this.interrupts.length-1;e>=0;e-=1)t.has(this.interrupts[e].interruptId)&&this.interrupts.splice(e,1)}else this.interrupts.length=0;for(let[e,t]of(null!=this.#en&&(clearTimeout(this.#en),this.#en=void 0),this.#er=void 0,this.#V))e!==this.#ea&&t.resume()}get messages(){if(this.#eu)return this.#eu;let e=new ac.MultiCursorBuffer;this.#eu=e;let t=new ae.StreamingMessageAssembler;return this.#eB(["messages",...this.#ej()],n=>{if("messages"!==n.method)return;let r=t.consume(n);r&&e.push((0,ae.toStreamingMessageHandle)(r))},()=>e.close()),e}get values(){let e,t;if(this.#ed)return this.#ed;let n=new ac.MultiCursorBuffer,r=new Promise(e=>{t=e});this.#ef=r;let a=Object.assign(n,{then:(e,t)=>r.then(e,t)});return this.#ed=a,this.#eB(["values",...this.#ej()],t=>{if("values"!==t.method)return;let r=function(e){if(null==e||"object"!=typeof e||Array.isArray(e))return e;let t=e.messages;return Array.isArray(t)&&0!==t.length&&t.some(e=>{if(null==e||"object"!=typeof e||"function"==typeof e.getType)return!1;let t=e.type;return"string"==typeof t&&a_.has(t)})?{...e,messages:t.map(e=>"function"==typeof e.getType?e:ag(e))}:e}(t.params.data);e=r,n.push(r)},()=>{t(e),n.close()}),a}get toolCalls(){if(this.#ep)return this.#ep;let e=new ac.MultiCursorBuffer;this.#ep=e;let t=new aT.ToolCallAssembler;return this.#eB(["tools",...this.#ej()],n=>{if("tools"!==n.method)return;let r=t.consume(n);r&&e.push((0,aT.toClientAssembledToolCall)(r))},()=>e.close()),e}get subgraphs(){if(this.#em)return this.#em;let e=new ac.MultiCursorBuffer;return this.#em=e,(async()=>{for await(let t of new av.SubgraphDiscoveryHandle(await this.#eU({channels:["tools",...this.#ej()]}),this,[]))e.push(t);e.close()})(),e}get subagents(){if(this.#eh)return this.#eh;let e=new ac.MultiCursorBuffer;return this.#eh=e,(async()=>{for await(let t of new aA.SubagentDiscoveryHandle(await this.#eU({channels:["tools",...this.#ej()]}),this))e.push(t);e.close()})(),e}get audio(){return this.#eH(),this.#ek}get images(){return this.#eH(),this.#eN}get video(){return this.#eH(),this.#ew}get files(){return this.#eH(),this.#eI}get output(){return this.values,this.#ef}get extensions(){if(this.#eg)return this.#eg;let e=this.#eb,t=e=>this.#ez(e);return this.#eg=new Proxy(Object.create(null),{get:(n,r)=>{if("string"!=typeof r)return;let a=e.get(r);if(a)return a;let i=t(r);return e.set(r,i),i},has:(e,t)=>"string"==typeof t}),this.#eg}#eG(){this.#ey||(this.#ey=!0,this.#eB(["custom",...this.#ej()],e=>{if("custom"===e.method)for(let t of(this.#ex.push(e),this.#eS))t(e)},()=>{for(let e of(this.#eE=!0,this.#eT.splice(0)))e()},{endOnRootTerminal:!0}))}#eH(){if(this.#ev)return;this.#ev=!0;let e=new at.MediaAssembler({fetch:this.#eC,onAudio:e=>{this.#e_.add(e),this.#ek.push(e)},onImage:e=>{this.#e_.add(e),this.#eN.push(e)},onVideo:e=>{this.#e_.add(e),this.#ew.push(e)},onFile:e=>{this.#e_.add(e),this.#eI.push(e)}});this.#eA=e,this.#eB(["messages",...this.#ej()],t=>{"messages"===t.method&&e.consume(t)},()=>{e.close(),this.#ek.close(),this.#eN.close(),this.#ew.close(),this.#eI.close()})}#ez(e){let t,n;this.#eG();let r=new ac.MultiCursorBuffer,a=new Promise(e=>{n=e}),i=n=>{let a=n.params.data;a?.name===e&&(t=a.payload,r.push(a.payload))};for(let e of this.#ex)i(e);this.#eS.push(i);let s=()=>{n(t),r.close()};return this.#eE?s():this.#eT.push(s),Object.assign(r,{then:(e,t)=>a.then(e,t)})}async #eB(e,t,n,r={}){let a,i;try{for await(let n of i=await this.#eU({channels:e}))t(n),r.endOnRootTerminal&&null==a&&function(e){if("lifecycle"!==e.method||0!==e.params.namespace.length)return!1;let t=e.params.data;return t?.event!=null&&aw.has(t.event)}(n)&&(a=setTimeout(()=>{a=void 0,i.unsubscribe().catch(()=>void 0)},0))}catch{}finally{null!=a&&clearTimeout(a),n()}}async submitRun(e){return this.#eR(),await this.#eO(()=>(this.#e$(),this.#eD("run.start",{...aR(e),assistant_id:this.assistantId})))}async respondInput(e){let t="responses"in e?e.responses.map(e=>e.interrupt_id):e.interrupt_id;this.#eR(t),this.#e$(),await this.#eD("input.respond",e)}onEvent(e){return this.#ec.add(e),()=>{this.#ec.delete(e)}}#e$(){if(null==this.#el){if(null!=this.#q.openEventStream){this.#el=this.#eq();return}this.#el=this.#eV()}}startLifecycleWatcher(){this.#e$()}async #eq(){let e;if(null!=this.#es)try{await this.#es}catch{return}try{e=this.#q.openEventStream({channels:["lifecycle","input"]})}catch{return}try{await e.ready}catch{try{e.close()}catch{}return}if(this.#K){try{e.close()}catch{}return}this.#eo=e;try{for await(let t of e.events){if(this.#K)break;this.#eW(t)}}catch{}}async #eV(){let e;try{e=await this.#eU({channels:["lifecycle","input"]})}catch{return}if(this.#K){try{e.close()}catch{}return}try{for await(let t of e)if(this.#K)break}catch{}}#eW(e){if("event"!==e.type)return;"number"==typeof e.seq&&(this.ordering.lastSeenSeq=aN(this.ordering.lastSeenSeq,e.seq)),e.event_id&&(this.ordering.lastEventId=e.event_id);let t=e.event_id??void 0,n=null!=t&&this.#W.has(t);null!=t&&this.#W.add(t),n||(this.#eY(e),this.#eK(e))}#eY(e){if("lifecycle"===e.method&&"interrupted"===e.params.data.event&&(this.interrupted=!0),"input.requested"===e.method){let t=e.params.data,n=t.interrupt_id??`interrupt_${this.interrupts.length}`;this.interrupts.push({interruptId:n,payload:t.payload,namespace:[...e.params.namespace]}),null!=aa(t.payload)&&this.#Y.add(n)}}#eK(e){if(0!==this.#ec.size)for(let t of this.#ec)try{t(e)}catch{}}async close(){if(this.#K)return;for(let e of(this.#K=!0,null!=this.#en&&(clearTimeout(this.#en),this.#en=void 0),this.#er=void 0,this.#et))e.reject(Error("ThreadStream closed"));if(this.#et.length=0,null!=this.#Q){try{this.#Q.close()}catch{}this.#Q=null,this.#J=null}if(null!=this.#eo){try{this.#eo.close()}catch{}this.#eo=null}let e=this.#el;for(let e of(this.#el=void 0,this.#ec.clear(),this.#V.values()))e.close();this.#V.clear();try{await e}catch{}for(let e of this.#e_)try{e.revoke()}catch{}this.#e_.clear(),this.#eA?.close(),this.#ek.close(),this.#eN.close(),this.#ew.close(),this.#eI.close(),await this.#q.close()}async subscribe(e,t={}){let n="object"==typeof e&&!Array.isArray(e)&&"channels"in e,r=function(e,t={}){if("object"==typeof e&&!Array.isArray(e)&&"channels"in e)return e;let n=Array.isArray(e)?[...e]:[e];return{...t,channels:n}}(e,t);return await this.#eU(r,{unwrapNamedCustom:!n})}async #eU(e,t={}){await this.#eF();let{unwrapNamedCustom:n=!0}=t,r=e.channels.length>0&&e.channels.every(e=>e.startsWith("custom:")),a=n&&r?e=>e.params.data?.payload??e:void 0;return null!=this.#q.openEventStream?this.#eX(e,a):this.#eZ(e,a)}async #eX(e,t){let n=`sse-${this.#$++}`,r=new aO(n,e,async e=>{this.#V.delete(e),this.#eQ()},t),a=Object.assign(r,{filter:e,registeredAfterSeq:this.ordering.lastSeenSeq,seenEventIds:new Set});this.#V.set(n,a);let i=new Promise((t,n)=>{this.#et.push({filter:e,resolve:t,reject:n})});this.#eQ();try{await i}catch(e){throw this.#V.delete(n),e}return r}#eJ(){if(0===this.#V.size)return null;let e=new Set,t=!1,n=new Map,r=!1,a=0;for(let i of this.#V.values()){for(let t of i.filter.channels)e.add(t);if(null==i.filter.namespaces)t=!0;else if(!t)for(let e of i.filter.namespaces)n.set(ak(e),e);null==i.filter.depth?r=!0:!r&&i.filter.depth>a&&(a=i.filter.depth)}let i={channels:[...e]};return t||(i.namespaces=[...n.values()]),r||(i.depth=a),i}#eQ(){this.#K||"idle"===this.#ee&&(this.#ee="scheduled",queueMicrotask(()=>{if(this.#K){this.#ee="idle";return}this.#ee="idle",this.#e0().catch(()=>{this.#ee="idle"})}))}async #e0(){let e;if(this.#K||"rotating"===this.#ee)return;let t=this.#eJ();if(null==t)return;if(null!=this.#es){try{await this.#es}catch(t){let e=t instanceof Error?t:Error("run.start failed");this.#e1(e);return}if(this.#K||"rotating"===this.#ee)return}if(null!=this.#J&&aI(t,this.#J)&&0===this.#et.length)return void this.#e2();this.#ee="rotating";try{e=this.#q.openEventStream(t)}catch(e){this.#ee="idle",this.#e1(e);return}try{await e.ready}catch(t){this.#ee="idle";try{e.close()}catch{}this.#e1(t);return}if(this.#K){try{e.close()}catch{}this.#ee="idle";return}this.#e3(e);let n=this.#Q;if(this.#Q=e,this.#J=t,null!=n)try{n.close()}catch{}this.#ee="idle",this.#e2();let r=this.#eJ();null==r||aI(r,this.#J)||this.#eQ()}async #e3(e){try{for await(let t of e.events){if(this.#K)break;this.#e4(t)}}catch(t){e!==this.#Q||this.#K||this.#e5(t)}}#e2(){if(null==this.#J)return;let e=this.#J;if(0===this.#et.length)return;let t=[];for(let n of this.#et)aC(e,n.filter)?n.resolve():t.push(n);this.#et.length=0,this.#et.push(...t)}#e1(e){if(0===this.#et.length)return;let t=this.#J,n=[];for(let e of this.#et)null!=t&&aC(t,e.filter)?e.resolve():n.push(e);for(let t of(this.#et.length=0,n))t.reject(e)}#e5(e){let t=e instanceof Error?e:Error(String(e));for(let e of this.#g.values())e.reject(t);for(let e of(this.#g.clear(),this.#et))e.reject(t);for(let e of(this.#et.length=0,this.#V.values()))e.close()}async #eZ(e,t){let n,r=`pending:${this.#$}:${Math.random().toString(36).slice(2,10)}`,a=r,i=new aO(r,e,async()=>{this.#V.delete(a),this.#K||a===r||await this.#eD("subscription.unsubscribe",{subscription_id:a}).catch(e=>{if(!(e instanceof an)||"no_such_subscription"!==e.code)throw e})},t),s=Object.assign(i,{filter:e,registeredAfterSeq:this.ordering.lastSeenSeq,seenEventIds:new Set});if(this.#V.set(r,s),null!=this.#es)try{await this.#es}catch(e){throw this.#V.delete(r),e}try{n=await this.#eD("subscription.subscribe",e)}catch(e){throw this.#V.delete(r),e}return this.#V.delete(r),i.subscriptionId=a=n.subscription_id,this.#V.set(a,s),i}async #eP(){if(null!=this.#q.openEventStream||this.#K)return;let e=[...this.#V.entries()];await Promise.all(e.map(async([e,t])=>{if(!e.startsWith("pending:"))try{let n=(await this.#eD("subscription.subscribe",t.filter)).subscription_id;if(n===e)return;this.#V.delete(e),t.subscriptionId=n,this.#V.set(n,t),this.#ea===e&&(this.#ea=n)}catch{}}))}async #eM(){try{for await(let e of this.#q.events())this.#e4(e);for(let e of this.#V.values())e.close()}catch(t){let e=t instanceof Error?t:Error(String(t));for(let t of this.#g.values())t.reject(e);for(let e of this.#V.values())e.close();this.#g.clear()}}#e6(e){null!=this.#en&&clearTimeout(this.#en),this.#er=e??null,this.#en=setTimeout(()=>{if(this.#en=void 0,!this.#K)for(let[t,n]of this.#V)t!==this.#ea&&(null!=e&&null!=n.registeredAfterSeq&&n.registeredAfterSeq>=e||n.pause())},0)}#e4(e){if("event"===e.type){"number"==typeof e.seq&&(this.ordering.lastSeenSeq=aN(this.ordering.lastSeenSeq,e.seq)),e.event_id&&(this.ordering.lastEventId=e.event_id);let t=e.event_id??void 0,n=null!=t&&this.#W.has(t);null!=t&&this.#W.add(t);let r=new Set(["interrupted","completed","failed"]);n||(this.#eY(e),this.#eK(e));let a=!1;for(let n of this.#V.values())if(function(e,t){var n,r,a;let i=function(e){switch(e.method){case"values":return"values";case"checkpoints":return"checkpoints";case"updates":return"updates";case"messages":return"messages";case"tools":return"tools";case"custom":{let t=e.params.data;return t?.name!=null?`custom:${t.name}`:"custom"}case"lifecycle":return"lifecycle";case"input.requested":return"input";case"tasks":return"tasks";default:return}}(e);if(void 0===i)return!1;let s=t.channels;return!!(s.includes(i)||i.startsWith("custom:")&&s.includes("custom"))&&(n=e.params.namespace,r=t.namespaces,a=t.depth,!r||0===r.length||r.some(e=>!!function(e,t){if(t.length>e.length)return!1;for(let n=0;n<t.length;n+=1){let r=t[n],a=e[n];if(a!==r&&(r.includes(":")||function(e){let t=e.indexOf(":");return -1===t?e:e.slice(0,t)}(a)!==r))return!1}return!0}(n,e)&&(void 0===a||n.length-e.length<=a)))}(e,n.filter)){if(null!=t){if(n.seenEventIds.has(t))continue;n.seenEventIds.add(t)}n.push(e),a=!0}if(a&&void 0!==this.#er&&("lifecycle"!==e.method||0!==e.params.namespace.length)){let t="number"==typeof e.seq?e.seq:void 0,n=this.#er;if(null===n||null==t||t>n){for(let[e,t]of(null!=this.#en&&(clearTimeout(this.#en),this.#en=void 0),this.#V))e!==this.#ea&&t.resume();this.#e6(null===n?void 0:n)}}if(a&&"lifecycle"===e.method&&0===e.params.namespace.length&&r.has(e.params.data.event)){if("interrupted"===e.params.data.event&&this.#Y.size>0)return void this.#Y.clear();this.#e6("number"==typeof e.seq?e.seq:void 0)}return}let t="number"==typeof e.id?e.id:void 0,n=void 0===t?void 0:this.#g.get(t);if(n){if(void 0!==t&&this.#g.delete(t),"error"===e.type)return void n.reject(new an(e));"number"==typeof e.meta?.applied_through_seq&&(this.ordering.lastAppliedThroughSeq=e.meta.applied_through_seq),n.resolve(e)}}async #eD(e,t){await this.#eF();let n=this.#$++,r=new Promise((e,t)=>{this.#g.set(n,{resolve:e,reject:t})}),a=await this.#q.send({id:n,method:e,params:t});if(a){if(this.#g.delete(n),"error"===a.type)throw new an(a);return"number"==typeof a.meta?.applied_through_seq&&(this.ordering.lastAppliedThroughSeq=a.meta.applied_through_seq),a.result}return(await r).result}},aD=class{values=[];waiters=[];rejecters=[];closed=!1;error=null;push(e){if(this.closed)return;let t=this.waiters.shift();(this.rejecters.shift(),t)?t({done:!1,value:e}):this.values.push(e)}close(e){if(!this.closed){if(this.closed=!0,this.error=null==e?null:e instanceof Error?e:Error(String(e)),this.error){for(let e of this.rejecters.splice(0))e(this.error);this.waiters.length=0;return}for(let e of this.waiters.splice(0))e({done:!0,value:void 0});this.rejecters.length=0}}async shift(){if(this.values.length>0)return{done:!1,value:this.values.shift()};if(this.error)throw this.error;return this.closed?{done:!0,value:void 0}:await new Promise((e,t)=>{this.waiters.push(e),this.rejecters.push(t)})}};let aP=e=>"object"==typeof e&&null!==e;function aM(e,t,n){if("string"==typeof e)return e;if(!t)throw Error("Protocol transport has no bound threadId. Bind one — the framework calls client.threads.stream(threadId, { transport }) / transport.setThreadId(threadId) — before issuing requests.");return e?e(t):n(t)}let aF=(e,t)=>new URL(`${e.replace(/\/$/,"")}${t}`),aj=e=>e instanceof Error?e:Error(String(e));function aU(...e){let t=new Headers;for(let n of e)if(n){if(n instanceof Headers){n.forEach((e,n)=>{t.set(n,e)});continue}if(Array.isArray(n)){for(let[e,r]of n)null==r?t.delete(e):t.set(e,r);continue}for(let[e,r]of Object.entries(n))null==r?t.delete(e):t.set(e,r)}return t}function aB(e){return Math.min(1e3*2**(e-1),5e3)+1e3*Math.random()}var aH=class{threadId;queue=new aD;apiUrl;defaultHeaders;onRequest;webSocketFactory;paths;maxReconnectAttempts;onReconnect;reconnectDelayMs;onReconnected;pending=new Map;socket=null;closed=!1;intentionalClose=!1;reconnectInFlight=null;constructor(e){this.apiUrl=e.apiUrl,this.threadId=e.threadId??"",this.defaultHeaders=e.defaultHeaders,this.onRequest=e.onRequest,this.webSocketFactory=e.webSocketFactory??(e=>new WebSocket(e)),this.paths=e.paths,this.maxReconnectAttempts=e.maxReconnectAttempts??5,this.onReconnect=e.onReconnect,this.onReconnected=e.onReconnected,this.reconnectDelayMs=e.reconnectDelayMs??aB}setThreadId(e){if(e!==this.threadId){if(null!=this.reconnectInFlight||null!=this.socket&&3!==this.socket.readyState)throw Error("Protocol WebSocket transport cannot be rebound to a different thread while the socket is open. Close the current stream and create a new WebSocket transport for the new thread.");this.threadId=e}}get streamUrl(){return aM(this.paths?.stream,this.threadId,e=>`/threads/${e}/stream/events`)}setOnReconnected(e){this.onReconnected=e}async open(){let e;if(this.closed)throw Error("Protocol WebSocket transport is closed.");if(this.socket?.readyState===1)return;null!=this.socket&&(this.#e9(this.socket),this.socket=null),this.assertBrowserSafeTransportConfig();let t=((e=new URL(aF(this.apiUrl,this.streamUrl).toString())).protocol="https:"===e.protocol?"wss:":"ws:",e.search="",e.hash="",e.toString()),n=this.webSocketFactory(t);this.socket=n,this.intentionalClose=!1,this.#e8(n),await new Promise((e,t)=>{let r=()=>{i(),e()},a=()=>{i(),t(Error("Failed to open protocol WebSocket."))},i=()=>{n.removeEventListener("open",r),n.removeEventListener("error",a)};n.addEventListener("open",r,{once:!0}),n.addEventListener("error",a,{once:!0})})}async send(e){return await this.sendCommand(e)}events(){let e=this.queue;return{[Symbol.asyncIterator]:()=>({next:async()=>await e.shift(),return:async()=>(e.close(),{done:!0,value:void 0})})}}async close(){if(this.closed)return;for(let{reject:e}of(this.closed=!0,this.intentionalClose=!0,this.pending.values()))e(Error("Protocol WebSocket connection closed."));this.pending.clear(),this.queue.close();let e=this.socket;this.socket=null,e&&(this.#e9(e),await new Promise(t=>{if(3===e.readyState)return void t();let n=()=>{e.removeEventListener("close",n),t()};e.addEventListener("close",n,{once:!0}),1===e.readyState||0===e.readyState?e.close():t()}))}assertBrowserSafeTransportConfig(){if(Object.values(this.defaultHeaders??{}).some(e=>null!=e)||null!=this.onRequest)throw Error("Browser WebSocket protocol transport does not support defaultHeaders or onRequest hooks. Supply a custom protocolWebSocketFactory if you need custom WebSocket setup.")}async sendCommand(e){let t=this.socket;if(null!=this.reconnectInFlight&&(null==t||1!==t.readyState)&&(await this.reconnectInFlight.catch(()=>void 0),t=this.socket),null==t||1!==t.readyState)throw Error("Protocol WebSocket is not open.");return await new Promise((n,r)=>{this.pending.set(e.id,{resolve:n,reject:r});try{t.send(JSON.stringify(e))}catch(t){this.pending.delete(e.id),r(aj(t))}})}#e8(e){e.addEventListener("message",this.handleMessage),e.addEventListener("close",this.handleClose),e.addEventListener("error",this.handleSocketError)}#e9(e){e.removeEventListener("message",this.handleMessage),e.removeEventListener("close",this.handleClose),e.removeEventListener("error",this.handleSocketError)}handleMessage=e=>{let t;try{t=JSON.parse(String(e.data))}catch{return}if(aP(t)&&"number"==typeof t.id&&("success"===t.type||"error"===t.type)){let e=this.pending.get(t.id);e&&(this.pending.delete(t.id),e.resolve(t));return}aP(t)&&"event"===t.type&&this.queue.push(t)};handleClose=()=>{let e=this.socket;(null!=e&&this.#e9(e),this.socket=null,this.intentionalClose||this.closed)?this.queue.close():this.#e7(Error("Protocol WebSocket closed unexpectedly."))};handleSocketError=()=>{this.closed||this.intentionalClose||this.#e7(Error("Protocol WebSocket encountered an error."))};#e7(e){let t=aj(e);for(let{reject:e}of this.pending.values())e(t);(this.pending.clear(),this.maxReconnectAttempts<=0)?this.queue.close(t):this.#te(e)}#te(e){this.closed||this.intentionalClose||null==this.reconnectInFlight&&(this.reconnectInFlight=this.#tt(e).finally(()=>{this.reconnectInFlight=null}))}async #tt(e){let t=e;for(let e=1;e<=this.maxReconnectAttempts;e+=1){if(this.closed||this.intentionalClose)return;this.onReconnect?.({attempt:e,cause:t});let n=this.reconnectDelayMs(e);if(n>0&&await new Promise(e=>{setTimeout(e,n)}),this.closed||this.intentionalClose)return;try{await this.open(),this.onReconnected&&await this.onReconnected();return}catch(e){t=e}}this.queue.close(new ar(this.maxReconnectAttempts,t))}},az=class{threadId;apiUrl;queue=new aD;fetchImpl;defaultHeaders;onRequest;fetchFactory;asyncCaller;maxReconnectAttempts;idleReconnect;onReconnect;reconnectDelayMs;paths;sessionAbortController=new AbortController;eventStreams=new Set;closed=!1;constructor(e){this.fetchImpl=e.fetch??fetch,this.apiUrl=e.apiUrl,this.defaultHeaders=e.defaultHeaders??{},this.onRequest=e.onRequest,this.fetchFactory=e.fetchFactory,this.asyncCaller=e.asyncCaller,this.maxReconnectAttempts=null!=e.fetch?0:e.maxReconnectAttempts??5,this.idleReconnect=null!=e.fetch?null:e.idleReconnect??"auto",this.onReconnect=e.onReconnect,this.reconnectDelayMs=e.reconnectDelayMs??aB,this.threadId=e.threadId??"",this.paths=e.paths}setThreadId(e){this.threadId=e}get commandsUrl(){return aM(this.paths?.commands,this.threadId,e=>`/threads/${e}/commands`)}get streamUrl(){return aM(this.paths?.stream,this.threadId,e=>`/threads/${e}/stream/events`)}get stateUrl(){return aM(this.paths?.state,this.threadId,e=>`/threads/${e}/state`)}async getState(){let e=aF(this.apiUrl,this.stateUrl),t={method:"GET",headers:aU(this.defaultHeaders,{})};this.onRequest&&(t=await this.onRequest(e,t));let n=await (await this.resolveFetch())(e.toString(),t);if(404===n.status)return null;if(!n.ok){let e=aj(Error(`Thread state request failed: ${n.status} ${n.statusText}`));throw e.status=n.status,e}return await n.json()}async resolveFetch(){return this.fetchFactory?await this.fetchFactory():this.fetchImpl}async open(){}async send(e){let t=await this.request(this.commandsUrl,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e),signal:this.sessionAbortController.signal});if(202===t.status||204===t.status)return;let n=await t.json();if(!(aP(n)&&"string"==typeof n.type&&("success"===n.type||"error"===n.type)))throw Error("Protocol command did not return a valid response.");return n}events(){let e=this.queue;return{[Symbol.asyncIterator]:()=>({next:async()=>await e.shift(),return:async()=>(e.close(),{done:!0,value:void 0})})}}openEventStream(e){let t,n;if(this.closed)throw Error("Protocol transport is closed.");let r=new AbortController;this.eventStreams.add(r);let a=new aD,i=this.streamUrl,s=new Promise((e,r)=>{t=e,n=r}),o="number"==typeof e.since?e.since:void 0,l=!1;(async()=>{let s=0;for(;!r.signal.aborted&&!this.closed;)try{let n=await this.request(i,{method:"POST",headers:{"content-type":"application/json",accept:"text/event-stream"},body:JSON.stringify({channels:e.channels,...e.namespaces?{namespaces:e.namespaces}:{},...null!=e.depth?{depth:e.depth}:{},...null!=o?{since:o}:{}}),signal:r.signal},{stream:!0});l||(l=!0,t());let s=n.body??new ReadableStream({start(e){e.close()}}),c="auto"===this.idleReconnect||"number"==typeof this.idleReconnect&&this.idleReconnect>0,u=s.pipeThrough(rY()),d=(c?u.pipeThrough(r2({mode:this.idleReconnect})):u).pipeThrough(rK());for await(let e of r4.fromReadableStream(d)){if(r.signal.aborted||this.closed)break;if(aP(e.data)){let t=e.data;"number"==typeof t.seq&&(o=t.seq),a.push(t)}}a.close();return}catch(t){if(r.signal.aborted||this.closed){l||n(t),a.close();return}if(this.maxReconnectAttempts<=0||(s+=1)>this.maxReconnectAttempts){l||n(t),a.close(aj(t));return}this.onReconnect?.({attempt:s,cause:t});let e=this.reconnectDelayMs(s);e>0&&await new Promise(t=>{setTimeout(t,e)})}})();let c=()=>{this.eventStreams.delete(r),r.abort(),a.close()};return{events:{[Symbol.asyncIterator]:()=>({next:async()=>await a.shift(),return:async()=>(c(),{done:!0,value:void 0})})},ready:s,close:c}}async close(){if(!this.closed){for(let e of(this.closed=!0,this.sessionAbortController.abort(),this.eventStreams))e.abort();this.eventStreams.clear(),this.queue.close()}}async request(e,t,n){let r=aF(this.apiUrl,e),a={...t,headers:aU(this.defaultHeaders,t.headers)};this.onRequest&&(a=await this.onRequest(r,a));let i=null!=this.asyncCaller&&!n?.stream,s=async()=>{let e=await (await this.resolveFetch())(r.toString(),a);if(!e.ok){if(i)throw e;let t="";try{let n=await e.text(),r=JSON.parse(n);"object"==typeof r&&null!=r&&(t=r.message??r.error??""),t||(t=n)}catch{}throw Error(t?`Protocol request failed: ${e.status} ${e.statusText} — ${t}`:`Protocol request failed: ${e.status} ${e.statusText}`)}return e};try{return i?await this.asyncCaller.call(s):await s()}catch(e){throw aj(e)}}},aG=class extends r6{async get(e,t){return this.fetch(`/assistants/${e}`,{signal:t?.signal})}async getGraph(e,t){return this.fetch(`/assistants/${e}/graph`,{params:{xray:t?.xray},signal:t?.signal})}async getSchemas(e,t){return this.fetch(`/assistants/${e}/schemas`,{signal:t?.signal})}async getSubgraphs(e,t){return t?.namespace?this.fetch(`/assistants/${e}/subgraphs/${t.namespace}`,{params:{recurse:t?.recurse},signal:t?.signal}):this.fetch(`/assistants/${e}/subgraphs`,{params:{recurse:t?.recurse},signal:t?.signal})}async create(e){return this.fetch("/assistants",{method:"POST",json:{graph_id:e.graphId,config:e.config,context:e.context,metadata:e.metadata,assistant_id:e.assistantId,if_exists:e.ifExists,name:e.name,description:e.description},signal:e.signal})}async update(e,t){return this.fetch(`/assistants/${e}`,{method:"PATCH",json:{graph_id:t.graphId,config:t.config,context:t.context,metadata:t.metadata,name:t.name,description:t.description},signal:t.signal})}async delete(e,t){return this.fetch(`/assistants/${e}?delete_threads=${t?.deleteThreads??!1}`,{method:"DELETE",signal:t?.signal})}async search(e){let t={graph_id:e?.graphId??void 0,name:e?.name??void 0,metadata:e?.metadata??void 0,limit:e?.limit??10,offset:e?.offset??0,sort_by:e?.sortBy??void 0,sort_order:e?.sortOrder??void 0,select:e?.select??void 0},[n,r]=await this.fetch("/assistants/search",{method:"POST",json:t,withResponse:!0,signal:e?.signal});return e?.includePagination?{assistants:n,next:r.headers.get("X-Pagination-Next")}:n}async count(e){return this.fetch("/assistants/count",{method:"POST",json:{metadata:e?.metadata??void 0,graph_id:e?.graphId??void 0,name:e?.name??void 0},signal:e?.signal})}async getVersions(e,t){return this.fetch(`/assistants/${e}/versions`,{method:"POST",json:{metadata:t?.metadata??void 0,limit:t?.limit??10,offset:t?.offset??0},signal:t?.signal})}async setLatest(e,t,n){return this.fetch(`/assistants/${e}/latest`,{method:"POST",json:{version:t},signal:n?.signal})}},a$=e.i(230125),aq=class extends r6{async get(e,t){return this.fetch(`/threads/${e}`,{params:{include:t?.include??void 0},signal:t?.signal})}async create(e){let t="number"==typeof e?.ttl?{ttl:e.ttl,strategy:"delete"}:e?.ttl;return this.fetch("/threads",{method:"POST",json:{metadata:{...e?.metadata,graph_id:e?.graphId},thread_id:e?.threadId,if_exists:e?.ifExists,supersteps:e?.supersteps?.map(e=>({updates:e.updates.map(e=>({values:e.values,command:e.command,as_node:e.asNode}))})),ttl:t},signal:e?.signal})}async copy(e,t){return this.fetch(`/threads/${e}/copy`,{method:"POST",signal:t?.signal})}async update(e,t){let n="number"==typeof t?.ttl?{ttl:t.ttl,strategy:"delete"}:t?.ttl;return this.fetch(`/threads/${e}`,{method:"PATCH",headers:t?.returnMinimal?{Prefer:"return=minimal"}:void 0,json:{metadata:t?.metadata,ttl:n},signal:t?.signal})}async delete(e,t){return this.fetch(`/threads/${e}`,{method:"DELETE",signal:t?.signal})}async prune(e,t){return this.fetch("/threads/prune",{method:"POST",json:{thread_ids:e,strategy:t?.strategy??"delete"},signal:t?.signal})}async search(e){return this.fetch("/threads/search",{method:"POST",json:{metadata:e?.metadata??void 0,ids:e?.ids??void 0,limit:e?.limit??10,offset:e?.offset??0,status:e?.status,sort_by:e?.sortBy,sort_order:e?.sortOrder,select:e?.select??void 0,values:e?.values??void 0,extract:e?.extract??void 0},signal:e?.signal})}async count(e){return this.fetch("/threads/count",{method:"POST",json:{metadata:e?.metadata??void 0,values:e?.values??void 0,status:e?.status??void 0},signal:e?.signal})}async getState(e,t,n){return null!=t?"string"!=typeof t?this.fetch(`/threads/${e}/state/checkpoint`,{method:"POST",json:{checkpoint:t,subgraphs:n?.subgraphs},signal:n?.signal}):this.fetch(`/threads/${e}/state/${t}`,{params:{subgraphs:n?.subgraphs},signal:n?.signal}):this.fetch(`/threads/${e}/state`,{params:{subgraphs:n?.subgraphs},signal:n?.signal,dedupe:!0})}async updateState(e,t){return this.fetch(`/threads/${e}/state`,{method:"POST",json:{values:t.values,checkpoint:t.checkpoint,checkpoint_id:t.checkpointId,as_node:t?.asNode},signal:t?.signal})}async patchState(e,t,n){let r;if("string"!=typeof e){if("string"!=typeof e.configurable?.thread_id)throw Error("Thread ID is required when updating state with a config.");r=e.configurable.thread_id}else r=e;return this.fetch(`/threads/${r}/state`,{method:"PATCH",json:{metadata:t},signal:n?.signal})}async getHistory(e,t){return this.fetch(`/threads/${e}/history`,{method:"POST",json:{limit:t?.limit??10,before:t?.before,metadata:t?.metadata,checkpoint:t?.checkpoint},signal:t?.signal,dedupe:!0})}async *joinStream(e,t){yield*this.streamWithRetry({endpoint:`/threads/${e}/stream`,method:"GET",signal:t?.signal,headers:t?.lastEventId?{"Last-Event-ID":t.lastEventId}:void 0,params:t?.streamMode?{stream_mode:t.streamMode}:void 0})}stream(e,t){let n,{threadId:r,options:a}="string"==typeof e?{threadId:e,options:t}:{threadId:(0,a$.v7)(),options:e},i=a.fetch,s=i??this.asyncCaller.fetch.bind(this.asyncCaller);if(null!=a.transport&&"string"!=typeof a.transport)n=a.transport,n.setThreadId?.(r);else{let e=a.transport??("v2-websocket"===this.streamProtocol?"websocket":"sse"),t=a.maxReconnectAttempts??5,s={apiUrl:this.apiUrl,threadId:r,defaultHeaders:this.defaultHeaders,onRequest:this.onRequest,maxReconnectAttempts:t,reconnectDelayMs:a.reconnectDelayMs,onReconnect:a.onReconnect};n="websocket"===e?new aH({...s,webSocketFactory:a.webSocketFactory}):new az({...s,idleReconnect:a.streamIdleReconnect,fetch:i,asyncCaller:i?void 0:this.asyncCaller})}return new aL(n,{...a,fetch:s})}},aV=class extends r6{async *stream(e,t,n){let r={input:n?.input,command:n?.command,config:n?.config,context:n?.context,metadata:n?.metadata,stream_mode:n?.streamMode,stream_subgraphs:n?.streamSubgraphs,stream_resumable:n?.streamResumable,feedback_keys:n?.feedbackKeys,assistant_id:t,interrupt_before:n?.interruptBefore,interrupt_after:n?.interruptAfter,checkpoint:n?.checkpoint,webhook:n?.webhook,multitask_strategy:n?.multitaskStrategy,on_completion:n?.onCompletion,on_disconnect:n?.onDisconnect,after_seconds:n?.afterSeconds,if_not_exists:n?.ifNotExists,checkpoint_during:n?.checkpointDuring,durability:n?.durability};yield*this.streamWithRetry({endpoint:null==e?"/runs/stream":`/threads/${e}/runs/stream`,method:"POST",json:r,signal:n?.signal,idleReconnect:n?.streamIdleReconnect,onInitialResponse:e=>{let t=r8(e);t&&n?.onRunCreated?.(t)}})}async create(e,t,n){let r={input:n?.input,command:n?.command,config:n?.config,context:n?.context,metadata:n?.metadata,stream_mode:n?.streamMode,stream_subgraphs:n?.streamSubgraphs,stream_resumable:n?.streamResumable,feedback_keys:n?.feedbackKeys,assistant_id:t,interrupt_before:n?.interruptBefore,interrupt_after:n?.interruptAfter,webhook:n?.webhook,checkpoint:n?.checkpoint,checkpoint_id:n?.checkpointId,multitask_strategy:n?.multitaskStrategy,after_seconds:n?.afterSeconds,if_not_exists:n?.ifNotExists,checkpoint_during:n?.checkpointDuring,durability:n?.durability,on_completion:n?.onCompletion,langsmith_tracer:n?._langsmithTracer?{project_name:n?._langsmithTracer?.projectName,example_id:n?._langsmithTracer?.exampleId}:void 0},a=null===e?"/runs":`/threads/${e}/runs`,[i,s]=await this.fetch(a,{method:"POST",json:r,signal:n?.signal,withResponse:!0}),o=r8(s);return o&&n?.onRunCreated?.(o),i}async createBatch(e,t){let n=e.map(e=>({...e,assistant_id:e.assistantId})).map(e=>Object.fromEntries(Object.entries(e).filter(([e,t])=>void 0!==t)));return this.fetch("/runs/batch",{method:"POST",json:n,signal:t?.signal})}async wait(e,t,n){let r={input:n?.input,command:n?.command,config:n?.config,context:n?.context,metadata:n?.metadata,assistant_id:t,interrupt_before:n?.interruptBefore,interrupt_after:n?.interruptAfter,checkpoint:n?.checkpoint,checkpoint_id:n?.checkpointId,webhook:n?.webhook,multitask_strategy:n?.multitaskStrategy,on_completion:n?.onCompletion,on_disconnect:n?.onDisconnect,after_seconds:n?.afterSeconds,if_not_exists:n?.ifNotExists,checkpoint_during:n?.checkpointDuring,durability:n?.durability,langsmith_tracer:n?._langsmithTracer?{project_name:n?._langsmithTracer?.projectName,example_id:n?._langsmithTracer?.exampleId}:void 0},a=null==e?"/runs/wait":`/threads/${e}/runs/wait`,[i,s]=await this.fetch(a,{method:"POST",json:r,timeoutMs:null,signal:n?.signal,withResponse:!0}),o=r8(s);if(o&&n?.onRunCreated?.(o),(n?.raiseError===void 0||n.raiseError)&&"__error__"in i&&"object"==typeof i.__error__&&i.__error__&&"error"in i.__error__&&"message"in i.__error__)throw Error(`${i.__error__?.error}: ${i.__error__?.message}`);return i}async list(e,t){return this.fetch(`/threads/${e}/runs`,{params:{limit:t?.limit??10,offset:t?.offset??0,status:t?.status??void 0,select:t?.select??void 0},signal:t?.signal})}async get(e,t,n){return this.fetch(`/threads/${e}/runs/${t}`,{signal:n?.signal})}async cancel(e,t,n=!1,r="interrupt",a={}){return this.fetch(`/threads/${e}/runs/${t}/cancel`,{method:"POST",params:{wait:n?"1":"0",action:r},signal:a?.signal})}async cancelMany(e){return this.fetch("/runs/cancel",{method:"POST",json:{thread_id:e.threadId,run_ids:e.runIds,status:e.status},params:{action:e.action},signal:e.signal})}async join(e,t,n){return this.fetch(`/threads/${e}/runs/${t}/join`,{timeoutMs:null,params:{cancel_on_disconnect:n?.cancelOnDisconnect?"1":"0"},signal:n?.signal})}async *joinStream(e,t,n){let r="object"==typeof n&&null!=n&&n instanceof AbortSignal?{signal:n}:n;yield*this.streamWithRetry({endpoint:null!=e?`/threads/${e}/runs/${t}/stream`:`/runs/${t}/stream`,method:"GET",signal:r?.signal,idleReconnect:r?.streamIdleReconnect,headers:r?.lastEventId?{"Last-Event-ID":r.lastEventId}:void 0,params:{cancel_on_disconnect:r?.cancelOnDisconnect?"1":"0",stream_mode:r?.streamMode}})}async delete(e,t,n){return this.fetch(`/threads/${e}/runs/${t}`,{method:"DELETE",signal:n?.signal})}},aW=class extends r6{async createForThread(e,t,n){let r={schedule:n?.schedule,input:n?.input,config:n?.config,context:n?.context,metadata:n?.metadata,assistant_id:t,interrupt_before:n?.interruptBefore,interrupt_after:n?.interruptAfter,webhook:n?.webhook,multitask_strategy:n?.multitaskStrategy,checkpoint_during:n?.checkpointDuring,durability:n?.durability,enabled:n?.enabled,timezone:n?.timezone,stream_mode:n?.streamMode,stream_subgraphs:n?.streamSubgraphs,stream_resumable:n?.streamResumable,end_time:n?.endTime,on_run_completed:n?.onRunCompleted};return this.fetch(`/threads/${e}/runs/crons`,{method:"POST",json:r,signal:n?.signal})}async create(e,t){let n={schedule:t?.schedule,input:t?.input,config:t?.config,context:t?.context,metadata:t?.metadata,assistant_id:e,interrupt_before:t?.interruptBefore,interrupt_after:t?.interruptAfter,webhook:t?.webhook,on_run_completed:t?.onRunCompleted,multitask_strategy:t?.multitaskStrategy,checkpoint_during:t?.checkpointDuring,durability:t?.durability,enabled:t?.enabled,timezone:t?.timezone,stream_mode:t?.streamMode,stream_subgraphs:t?.streamSubgraphs,stream_resumable:t?.streamResumable,end_time:t?.endTime};return this.fetch("/runs/crons",{method:"POST",json:n,signal:t?.signal})}async update(e,t){let n={};return t?.schedule!==void 0&&(n.schedule=t.schedule),t?.timezone!==void 0&&(n.timezone=t.timezone),t?.endTime!==void 0&&(n.end_time=t.endTime),t?.input!==void 0&&(n.input=t.input),t?.metadata!==void 0&&(n.metadata=t.metadata),t?.config!==void 0&&(n.config=t.config),t?.context!==void 0&&(n.context=t.context),t?.webhook!==void 0&&(n.webhook=t.webhook),t?.interruptBefore!==void 0&&(n.interrupt_before=t.interruptBefore),t?.interruptAfter!==void 0&&(n.interrupt_after=t.interruptAfter),t?.onRunCompleted!==void 0&&(n.on_run_completed=t.onRunCompleted),t?.enabled!==void 0&&(n.enabled=t.enabled),t?.streamMode!==void 0&&(n.stream_mode=t.streamMode),t?.streamSubgraphs!==void 0&&(n.stream_subgraphs=t.streamSubgraphs),t?.streamResumable!==void 0&&(n.stream_resumable=t.streamResumable),t?.durability!==void 0&&(n.durability=t.durability),this.fetch(`/runs/crons/${e}`,{method:"PATCH",json:n,signal:t?.signal})}async delete(e,t){await this.fetch(`/runs/crons/${e}`,{method:"DELETE",signal:t?.signal})}async search(e){return this.fetch("/runs/crons/search",{method:"POST",json:{assistant_id:e?.assistantId??void 0,thread_id:e?.threadId??void 0,enabled:e?.enabled??void 0,limit:e?.limit??10,offset:e?.offset??0,sort_by:e?.sortBy??void 0,sort_order:e?.sortOrder??void 0,select:e?.select??void 0,metadata:e?.metadata??void 0},signal:e?.signal})}async count(e){return this.fetch("/runs/crons/count",{method:"POST",json:{assistant_id:e?.assistantId??void 0,thread_id:e?.threadId??void 0,metadata:e?.metadata??void 0},signal:e?.signal})}},aY=class extends r6{async putItem(e,t,n,r){e.forEach(e=>{if(e.includes("."))throw Error(`Invalid namespace label '${e}'. Namespace labels cannot contain periods ('.')`)});let a={namespace:e,key:t,value:n,index:r?.index,ttl:r?.ttl};return this.fetch("/store/items",{method:"PUT",json:a,signal:r?.signal})}async getItem(e,t,n){e.forEach(e=>{if(e.includes("."))throw Error(`Invalid namespace label '${e}'. Namespace labels cannot contain periods ('.')`)});let r={namespace:e.join("."),key:t};n?.refreshTtl!==void 0&&(r.refresh_ttl=n.refreshTtl);let a=await this.fetch("/store/items",{params:r,signal:n?.signal});return a?{...a,createdAt:a.created_at,updatedAt:a.updated_at}:null}async deleteItem(e,t,n){return e.forEach(e=>{if(e.includes("."))throw Error(`Invalid namespace label '${e}'. Namespace labels cannot contain periods ('.')`)}),this.fetch("/store/items",{method:"DELETE",json:{namespace:e,key:t},signal:n?.signal})}async searchItems(e,t){let n={namespace_prefix:e,filter:t?.filter,limit:t?.limit??10,offset:t?.offset??0,query:t?.query,refresh_ttl:t?.refreshTtl};return{items:(await this.fetch("/store/items/search",{method:"POST",json:n,signal:t?.signal})).items.map(e=>({...e,createdAt:e.created_at,updatedAt:e.updated_at}))}}async listNamespaces(e){let t={prefix:e?.prefix,suffix:e?.suffix,max_depth:e?.maxDepth,limit:e?.limit??100,offset:e?.offset??0};return this.fetch("/store/namespaces",{method:"POST",json:t,signal:e?.signal})}},aK=class e extends r6{static promiseCache={};static getOrCached(t,n){if(null!=e.promiseCache[t])return e.promiseCache[t];let r=n();return e.promiseCache[t]=r,r}async getComponent(t,n){return e.getOrCached(`${this.apiUrl}-${t}-${n}`,async()=>{let[e,r]=this.prepareFetchOptions(`/ui/${t}`,{headers:{Accept:"text/html","Content-Type":"application/json"},method:"POST",json:{name:n}});return null!=this.onRequest&&(r=await this.onRequest(e,r)),(await this.asyncCaller.fetch(e.toString(),r)).text()})}},aX=class{assistants;threads;runs;crons;store;"~ui";"~configHash";constructor(e){this["~configHash"]=JSON.stringify({apiUrl:e?.apiUrl,apiKey:e?.apiKey,timeoutMs:e?.timeoutMs,defaultHeaders:e?.defaultHeaders,streamProtocol:e?.streamProtocol,maxConcurrency:e?.callerOptions?.maxConcurrency,maxRetries:e?.callerOptions?.maxRetries,callbacks:{onFailedResponseHook:e?.callerOptions?.onFailedResponseHook!=null,onRequest:e?.onRequest!=null,fetch:e?.callerOptions?.fetch!=null}}),this.assistants=new aG(e),this.threads=new aq(e),this.runs=new aV(e),this.crons=new aW(e),this.store=new aY(e),this["~ui"]=new aK(e)}},aZ=class{#tn;#tr=new Set;constructor(e){this.#tn=e}subscribe=e=>(this.#tr.add(e),()=>{this.#tr.delete(e)});getSnapshot=()=>this.#tn;setValue=e=>{if(!Object.is(e,this.#tn))for(let t of(this.#tn=e,this.#tr))t()};setState=e=>{this.setValue(e(this.#tn))}};function aQ(e,t,n){return Array.isArray(e)?e.map(e=>(function(e,t,n){if(null===e||"object"!=typeof e||Array.isArray(e))return e;let r=e[t]??e[n],a={...e};return void 0!==r&&(a[t]=r,a[n]=r),a})(e,t,n)):e}function aJ(e){return e.map(e=>{var t;return void 0===(t=e).value?t:{...t,value:function e(t){if(null===t||"object"!=typeof t)return t;if(Array.isArray(t))return t.map(t=>e(t));if(!("action_requests"in t||"actionRequests"in t||"review_configs"in t||"reviewConfigs"in t))return t;let n={...t},r=t.actionRequests??t.action_requests;if(void 0!==r){let e=aQ(r,"name","action_name");n.actionRequests=e,n.action_requests=e}let a=t.reviewConfigs??t.review_configs;if(void 0!==a){let e=aQ(a,"allowedDecisions","allowed_decisions");n.reviewConfigs=e,n.review_configs=e}return n}(t.value)}})}function a0(e){if(0===e.length)return[{when:"breakpoint"}];let t=ai(e);return 0===t.length?[]:aJ(t)}Object.freeze([]);var a1=class extends Error{constructor(e){super(e.message),this.name=e.name??e.error??"StreamError"}static isStructuredError(e){return"object"==typeof e&&null!=e&&"message"in e}};let a2=new Set(["values","messages","messages-tuple","updates","events","debug","tasks","checkpoints","custom"]),a3=new Set;function a4(e){for(let t of e)a3.has(t)||(a3.add(t),console.warn(`[stream-mode] dropped unsupported mode "${t}" — backend does not accept it. See src/lib/streamMode.ts for the current allowlist.`))}function a5(e){return!(!e||"object"!=typeof e||e instanceof AbortSignal)&&"streamMode"in e?{...e,streamMode:function(e){if(Array.isArray(e)){let t=[],n=[];for(let r of e)"string"==typeof r&&a2.has(r)?t.push(r):"string"==typeof r&&n.push(r);return n.length>0&&a4(n),t}return"string"!=typeof e||a2.has(e)?e:void a4([e])}(e.streamMode)}:e}let a6=Symbol.for("evoscientist.streamModePatched");function a9(e){let t=e.runs;if(t[a6])return e;t[a6]=!0;let n=e.runs.stream.bind(e.runs),r=e.runs.joinStream.bind(e.runs);return e.runs.stream=(e,t,r)=>n(e,t,a5(r)),e.runs.joinStream=(e,t,n)=>r(e,t,a5(n)),e}let a8=(0,el.createContext)(null);function a7({children:e,deploymentUrl:t,apiKey:n}){let r=(0,el.useMemo)(()=>a9(new aX({apiUrl:t,defaultHeaders:{"Content-Type":"application/json","X-Api-Key":n}})),[t,n]),a=(0,el.useMemo)(()=>({client:r}),[r]);return(0,eo.jsx)(a8.Provider,{value:a,children:e})}function ie(){let e=(0,el.useContext)(a8);if(!e)throw Error("useClient must be used within a ClientProvider");return e.client}let it=nf("settings",[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]),ir=nf("square-pen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]]),ia=nf("panel-left",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]),ii=nf("panel-left-close",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]]),is=nf("panel-right",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}]]),io=nf("panel-right-close",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}],["path",{d:"m8 9 3 3-3 3",key:"12hl5m"}]]),il=nf("grip-vertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]),ic=(0,el.createContext)(null);ic.displayName="PanelGroupContext";let iu="data-panel-group-direction",id="data-panel-group-id",ip="data-resize-handle",im="data-panel-resize-handle-id",ih=el.useLayoutEffect,ig=el["useId".toString()],ib="function"==typeof ig?ig:()=>null,iy=0;function iE(e=null){let t=ib(),n=(0,el.useRef)(e||t||null);return null===n.current&&(n.current=""+iy++),null!=e?e:n.current}function ix({children:e,className:t="",collapsedSize:n,collapsible:r,defaultSize:a,forwardedRef:i,id:s,maxSize:o,minSize:l,onCollapse:c,onExpand:u,onResize:d,order:p,style:m,tagName:h="div",...f}){let g=(0,el.useContext)(ic);if(null===g)throw Error("Panel components must be rendered within a PanelGroup container");let{collapsePanel:b,expandPanel:y,getPanelSize:E,getPanelStyle:x,groupId:S,isPanelCollapsed:T,reevaluatePanelConstraints:v,registerPanel:A,resizePanel:_,unregisterPanel:k}=g,N=iE(s),w=(0,el.useRef)({callbacks:{onCollapse:c,onExpand:u,onResize:d},constraints:{collapsedSize:n,collapsible:r,defaultSize:a,maxSize:o,minSize:l},id:N,idIsFromProps:void 0!==s,order:p});(0,el.useRef)({didLogMissingDefaultSizeWarning:!1}),ih(()=>{let{callbacks:e,constraints:t}=w.current,i={...t};w.current.id=N,w.current.idIsFromProps=void 0!==s,w.current.order=p,e.onCollapse=c,e.onExpand=u,e.onResize=d,t.collapsedSize=n,t.collapsible=r,t.defaultSize=a,t.maxSize=o,t.minSize=l,(i.collapsedSize!==t.collapsedSize||i.collapsible!==t.collapsible||i.maxSize!==t.maxSize||i.minSize!==t.minSize)&&v(w.current,i)}),ih(()=>{let e=w.current;return A(e),()=>{k(e)}},[p,N,A,k]),(0,el.useImperativeHandle)(i,()=>({collapse:()=>{b(w.current)},expand:e=>{y(w.current,e)},getId:()=>N,getSize:()=>E(w.current),isCollapsed:()=>T(w.current),isExpanded:()=>!T(w.current),resize:e=>{_(w.current,e)}}),[b,y,E,T,N,_]);let I=x(w.current,a);return(0,el.createElement)(h,{...f,children:e,className:t,id:N,style:{...I,...m},[id]:S,"data-panel":"","data-panel-collapsible":r||void 0,"data-panel-id":N,"data-panel-size":parseFloat(""+I.flexGrow).toFixed(1)})}let iS=(0,el.forwardRef)((e,t)=>(0,el.createElement)(ix,{...e,forwardedRef:t}));ix.displayName="Panel",iS.displayName="forwardRef(Panel)";let iT=null,iv=-1,iA=null;function i_(e,n,r){var a,i,s;let o=function(e,t){let n=(t&iP)!=0,r=(t&iM)!=0,a=(t&iF)!=0,i=(t&ij)!=0;if(t){if(n)if(a)return"se-resize";else if(i)return"ne-resize";else return"e-resize";else if(r)if(a)return"sw-resize";else if(i)return"nw-resize";else return"w-resize";else if(a)return"s-resize";else if(i)return"n-resize"}switch(e){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}(e,n);iT!==o&&(iT=o,null===iA&&(iA=document.createElement("style"),t&&iA.setAttribute("nonce",t),document.head.appendChild(iA)),iv>=0&&(null==(s=iA.sheet)||s.removeRule(iv)),iv=null!=(a=null==(i=iA.sheet)?void 0:i.insertRule(`*{cursor: ${o} !important;}`))?a:-1)}function ik(e){return"keydown"===e.type}function iN(e){return e.type.startsWith("pointer")}function iw(e){return e.type.startsWith("mouse")}function iI(e){if(iN(e)){if(e.isPrimary)return{x:e.clientX,y:e.clientY}}else if(iw(e))return{x:e.clientX,y:e.clientY};return{x:1/0,y:1/0}}let iC=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function iR(e){let t=e.length;for(;t--;){let n=e[t];if(iJ(n,"Missing node"),function(e){var t;let n,r=getComputedStyle(e);return"fixed"===r.position||!!("auto"!==r.zIndex&&("static"!==r.position||"flex"===(n=getComputedStyle(null!=(t=iD(e))?t:e).display)||"inline-flex"===n)||1>+r.opacity||"transform"in r&&"none"!==r.transform||"webkitTransform"in r&&"none"!==r.webkitTransform||"mixBlendMode"in r&&"normal"!==r.mixBlendMode||"filter"in r&&"none"!==r.filter||"webkitFilter"in r&&"none"!==r.webkitFilter||"isolation"in r&&"isolate"===r.isolation||iC.test(r.willChange))||"touch"===r.webkitOverflowScrolling}(n))return n}return null}function iO(e){return e&&Number(getComputedStyle(e).zIndex)||0}function iL(e){let t=[];for(;e;)t.push(e),e=iD(e);return t}function iD(e){let{parentNode:t}=e;return t&&t instanceof ShadowRoot?t.host:t}let iP=1,iM=2,iF=4,ij=8,iU="coarse"===function(){if("function"==typeof matchMedia)return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}(),iB=[],iH=!1,iz=new Map,iG=new Map,i$=new Set;function iq(e){let{target:t}=e,{x:n,y:r}=iI(e);iH=!0,iK({target:t,x:n,y:r}),iZ(),iB.length>0&&(iQ("down",e),iX(),e.preventDefault(),iY(t)||e.stopImmediatePropagation())}function iV(e){let{x:t,y:n}=iI(e);if(iH&&"pointerleave"!==e.type&&0===e.buttons&&(iH=!1,iQ("up",e)),!iH){let{target:r}=e;iK({target:r,x:t,y:n})}iQ("move",e),iX(),iB.length>0&&e.preventDefault()}function iW(e){let{target:t}=e,{x:n,y:r}=iI(e);iG.clear(),iH=!1,iB.length>0&&(e.preventDefault(),iY(t)||e.stopImmediatePropagation()),iQ("up",e),iK({target:t,x:n,y:r}),iX(),iZ()}function iY(e){let t=e;for(;t;){if(t.hasAttribute(ip))return!0;t=t.parentElement}return!1}function iK({target:e,x:t,y:n}){iB.splice(0);let r=null;(e instanceof HTMLElement||e instanceof SVGElement)&&(r=e),i$.forEach(e=>{let{element:a,hitAreaMargins:i}=e,s=a.getBoundingClientRect(),{bottom:o,left:l,right:c,top:u}=s,d=iU?i.coarse:i.fine;if(t>=l-d&&t<=c+d&&n>=u-d&&n<=o+d){if(null!==r&&document.contains(r)&&a!==r&&!a.contains(r)&&!r.contains(a)&&function(e,t){let n;if(e===t)throw Error("Cannot compare node with itself");let r={a:iL(e),b:iL(t)};for(;r.a.at(-1)===r.b.at(-1);)e=r.a.pop(),t=r.b.pop(),n=e;iJ(n,"Stacking order can only be calculated for elements with a common ancestor");let a={a:iO(iR(r.a)),b:iO(iR(r.b))};if(a.a===a.b){let e=n.childNodes,t={a:r.a.at(-1),b:r.b.at(-1)},a=e.length;for(;a--;){let n=e[a];if(n===t.a)return 1;if(n===t.b)return -1}}return Math.sign(a.a-a.b)}(r,a)>0){let e=r,t=!1;for(;e;){var p;if(e.contains(a))break;if(p=e.getBoundingClientRect(),p.x<s.x+s.width&&p.x+p.width>s.x&&p.y<s.y+s.height&&p.y+p.height>s.y){t=!0;break}e=e.parentElement}if(t)return}iB.push(e)}})}function iX(){let e=!1,t=!1;iB.forEach(n=>{let{direction:r}=n;"horizontal"===r?e=!0:t=!0});let n=0;iG.forEach(e=>{n|=e}),e&&t?i_("intersection",n,iH):e?i_("horizontal",n,iH):t?i_("vertical",n,iH):null!==iA&&(document.head.removeChild(iA),iT=null,iA=null,iv=-1)}function iZ(){var e;null==(e=n)||e.abort();let t={capture:!0,signal:(n=new AbortController).signal};i$.size&&(iH?(iB.length>0&&iz.forEach((e,n)=>{let{body:r}=n;e>0&&(r.addEventListener("contextmenu",iW,t),r.addEventListener("pointerleave",iV,t),r.addEventListener("pointermove",iV,t))}),iz.forEach((e,n)=>{let{body:r}=n;r.addEventListener("pointerup",iW,t),r.addEventListener("pointercancel",iW,t)})):iz.forEach((e,n)=>{let{body:r}=n;e>0&&(r.addEventListener("pointerdown",iq,t),r.addEventListener("pointermove",iV,t))}))}function iQ(e,t){i$.forEach(n=>{let{setResizeHandlerState:r}=n;r(e,iB.includes(n),t)})}function iJ(e,t){if(!e)throw console.error(t),Error(t)}function i0(e,t,n=10){return e.toFixed(n)===t.toFixed(n)?0:e>t?1:-1}function i1(e,t,n=10){return 0===i0(e,t,n)}function i2(e,t,n){return 0===i0(e,t,n)}function i3({panelConstraints:e,panelIndex:t,size:n}){let r=e[t];iJ(null!=r,`Panel constraints not found for index ${t}`);let{collapsedSize:a=0,collapsible:i,maxSize:s=100,minSize:o=0}=r;return 0>i0(n,o)&&(n=i&&0>i0(n,(a+o)/2)?a:o),n=parseFloat((n=Math.min(s,n)).toFixed(10))}function i4({delta:e,initialLayout:t,panelConstraints:n,pivotIndices:r,prevLayout:a,trigger:i}){if(i2(e,0))return t;let s=[...t],[o,l]=r;iJ(null!=o,"Invalid first pivot index"),iJ(null!=l,"Invalid second pivot index");let c=0;if("keyboard"===i){{let r=e<0?l:o,a=n[r];iJ(a,`Panel constraints not found for index ${r}`);let{collapsedSize:i=0,collapsible:s,minSize:c=0}=a;if(s){let n=t[r];if(iJ(null!=n,`Previous layout not found for panel index ${r}`),i2(n,i)){let t=c-n;i0(t,Math.abs(e))>0&&(e=e<0?0-t:t)}}}{let r=e<0?o:l,a=n[r];iJ(a,`No panel constraints found for index ${r}`);let{collapsedSize:i=0,collapsible:s,minSize:c=0}=a;if(s){let n=t[r];if(iJ(null!=n,`Previous layout not found for panel index ${r}`),i2(n,c)){let t=n-i;i0(t,Math.abs(e))>0&&(e=e<0?0-t:t)}}}}{let r=e<0?1:-1,a=e<0?l:o,i=0;for(;;){let e=t[a];if(iJ(null!=e,`Previous layout not found for panel index ${a}`),i+=i3({panelConstraints:n,panelIndex:a,size:100})-e,(a+=r)<0||a>=n.length)break}let s=Math.min(Math.abs(e),Math.abs(i));e=e<0?0-s:s}{let r=e<0?o:l;for(;r>=0&&r<n.length;){let a=Math.abs(e)-Math.abs(c),i=t[r];iJ(null!=i,`Previous layout not found for panel index ${r}`);let o=i3({panelConstraints:n,panelIndex:r,size:i-a});if(!i2(i,o)&&(c+=i-o,s[r]=o,c.toFixed(3).localeCompare(Math.abs(e).toFixed(3),void 0,{numeric:!0})>=0))break;e<0?r--:r++}}if(function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!i2(e[n],t[n],void 0))return!1;return!0}(a,s))return a;{let r=e<0?l:o,a=t[r];iJ(null!=a,`Previous layout not found for panel index ${r}`);let i=a+c,u=i3({panelConstraints:n,panelIndex:r,size:i});if(s[r]=u,!i2(u,i)){let t=i-u,r=e<0?l:o;for(;r>=0&&r<n.length;){let a=s[r];iJ(null!=a,`Previous layout not found for panel index ${r}`);let i=i3({panelConstraints:n,panelIndex:r,size:a+t});if(i2(a,i)||(t-=i-a,s[r]=i),i2(t,0))break;e>0?r--:r++}}}return i2(s.reduce((e,t)=>t+e,0),100)?s:a}function i5(e,t=document){return Array.from(t.querySelectorAll(`[${im}][data-panel-group-id="${e}"]`))}function i6(e,t,n=document){let r=i5(e,n).findIndex(e=>e.getAttribute(im)===t);return null!=r?r:null}function i9(e,t,n){let r=i6(e,t,n);return null!=r?[r,r+1]:[-1,-1]}function i8(e,t=document){if((t instanceof HTMLElement||"object"==typeof t&&null!==t&&"tagName"in t&&"getAttribute"in t)&&t.dataset.panelGroupId==e)return t;let n=t.querySelector(`[data-panel-group][data-panel-group-id="${e}"]`);return n||null}function i7(e,t=document){let n=t.querySelector(`[${im}="${e}"]`);return n||null}function se(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function st(e,t){let{x:n,y:r}=iI(t);return"horizontal"===e?n:r}function sn(e,t,n){t.forEach((t,r)=>{let a=e[r];iJ(a,`Panel data not found for index ${r}`);let{callbacks:i,constraints:s,id:o}=a,{collapsedSize:l=0,collapsible:c}=s,u=n[o];if(null==u||t!==u){n[o]=t;let{onCollapse:e,onExpand:r,onResize:a}=i;a&&a(t,u),c&&(e||r)&&(r&&(null==u||i1(u,l))&&!i1(t,l)&&r(),e&&(null==u||!i1(u,l))&&i1(t,l)&&e())}})}function sr(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!=t[n])return!1;return!0}function sa(e){try{if("u">typeof localStorage)e.getItem=e=>localStorage.getItem(e),e.setItem=(e,t)=>{localStorage.setItem(e,t)};else throw Error("localStorage not supported in this environment")}catch(t){console.error(t),e.getItem=()=>null,e.setItem=()=>{}}}function si(e){return`react-resizable-panels:${e}`}function ss(e){return e.map(e=>{let{constraints:t,id:n,idIsFromProps:r,order:a}=e;return r?n:a?`${a}:${JSON.stringify(t)}`:JSON.stringify(t)}).sort((e,t)=>e.localeCompare(t)).join(",")}function so(e,t){try{let n=si(e),r=t.getItem(n);if(r){let e=JSON.parse(r);if("object"==typeof e&&null!=e)return e}}catch(e){}return null}function sl(e,t,n,r,a){var i;let s=si(e),o=ss(t),l=null!=(i=so(e,a))?i:{};l[o]={expandToSizes:Object.fromEntries(n.entries()),layout:r};try{a.setItem(s,JSON.stringify(l))}catch(e){console.error(e)}}function sc({layout:e,panelConstraints:t}){let n=[...e],r=n.reduce((e,t)=>e+t,0);if(n.length!==t.length)throw Error(`Invalid ${t.length} panel layout: ${n.map(e=>`${e}%`).join(", ")}`);if(!i2(r,100)&&n.length>0)for(let e=0;e<t.length;e++){let t=n[e];iJ(null!=t,`No layout data found for index ${e}`);let a=100/r*t;n[e]=a}let a=0;for(let e=0;e<t.length;e++){let r=n[e];iJ(null!=r,`No layout data found for index ${e}`);let i=i3({panelConstraints:t,panelIndex:e,size:r});r!=i&&(a+=r-i,n[e]=i)}if(!i2(a,0))for(let e=0;e<t.length;e++){let r=n[e];iJ(null!=r,`No layout data found for index ${e}`);let i=i3({panelConstraints:t,panelIndex:e,size:r+a});if(r!==i&&(a-=i-r,n[e]=i,i2(a,0)))break}return n}let su={getItem:e=>(sa(su),su.getItem(e)),setItem:(e,t)=>{sa(su),su.setItem(e,t)}},sd={};function sp({autoSaveId:e=null,children:t,className:n="",direction:r,forwardedRef:a,id:i=null,onLayout:s=null,keyboardResizeBy:o=null,storage:l=su,style:c,tagName:u="div",...d}){let p=iE(i),m=(0,el.useRef)(null),[h,f]=(0,el.useState)(null),[g,b]=(0,el.useState)([]),y=function(){let[e,t]=(0,el.useState)(0);return(0,el.useCallback)(()=>t(e=>e+1),[])}(),E=(0,el.useRef)({}),x=(0,el.useRef)(new Map),S=(0,el.useRef)(0),T=(0,el.useRef)({autoSaveId:e,direction:r,dragState:h,id:p,keyboardResizeBy:o,onLayout:s,storage:l}),v=(0,el.useRef)({layout:g,panelDataArray:[],panelDataArrayChanged:!1});(0,el.useRef)({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),(0,el.useImperativeHandle)(a,()=>({getId:()=>T.current.id,getLayout:()=>{let{layout:e}=v.current;return e},setLayout:e=>{let{onLayout:t}=T.current,{layout:n,panelDataArray:r}=v.current,a=sc({layout:e,panelConstraints:r.map(e=>e.constraints)});se(n,a)||(b(a),v.current.layout=a,t&&t(a),sn(r,a,E.current))}}),[]),ih(()=>{T.current.autoSaveId=e,T.current.direction=r,T.current.dragState=h,T.current.id=p,T.current.onLayout=s,T.current.storage=l}),function({committedValuesRef:e,eagerValuesRef:t,groupId:n,layout:r,panelDataArray:a,panelGroupElement:i,setLayout:s}){(0,el.useRef)({didWarnAboutMissingResizeHandle:!1}),ih(()=>{if(!i)return;let e=i5(n,i);for(let t=0;t<a.length-1;t++){let{valueMax:n,valueMin:i,valueNow:s}=function({layout:e,panelsArray:t,pivotIndices:n}){let r=0,a=100,i=0,s=0,o=n[0];return iJ(null!=o,"No pivot index found"),t.forEach((e,t)=>{let{constraints:n}=e,{maxSize:l=100,minSize:c=0}=n;t===o?(r=c,a=l):(i+=c,s+=l)}),{valueMax:Math.min(a,100-i),valueMin:Math.max(r,100-s),valueNow:e[o]}}({layout:r,panelsArray:a,pivotIndices:[t,t+1]}),o=e[t];if(null==o);else{let e=a[t];iJ(e,`No panel data found for index "${t}"`),o.setAttribute("aria-controls",e.id),o.setAttribute("aria-valuemax",""+Math.round(n)),o.setAttribute("aria-valuemin",""+Math.round(i)),o.setAttribute("aria-valuenow",null!=s?""+Math.round(s):"")}}return()=>{e.forEach((e,t)=>{e.removeAttribute("aria-controls"),e.removeAttribute("aria-valuemax"),e.removeAttribute("aria-valuemin"),e.removeAttribute("aria-valuenow")})}},[n,r,a,i]),(0,el.useEffect)(()=>{if(!i)return;let e=t.current;iJ(e,"Eager values not found");let{panelDataArray:a}=e;iJ(null!=i8(n,i),`No group found for id "${n}"`);let o=i5(n,i);iJ(o,`No resize handles found for group id "${n}"`);let l=o.map(e=>{let t=e.getAttribute(im);iJ(t,"Resize handle element has no handle id attribute");let[o,l]=function(e,t,n,r=document){var a,i,s,o;let l=i7(t,r),c=i5(e,r),u=l?c.indexOf(l):-1;return[null!=(a=null==(i=n[u])?void 0:i.id)?a:null,null!=(s=null==(o=n[u+1])?void 0:o.id)?s:null]}(n,t,a,i);if(null==o||null==l)return()=>{};let c=e=>{if(!e.defaultPrevented&&"Enter"===e.key){e.preventDefault();let l=a.findIndex(e=>e.id===o);if(l>=0){let e=a[l];iJ(e,`No panel data found for index ${l}`);let o=r[l],{collapsedSize:c=0,collapsible:u,minSize:d=0}=e.constraints;if(null!=o&&u){let e=i4({delta:i2(o,c)?d-c:c-o,initialLayout:r,panelConstraints:a.map(e=>e.constraints),pivotIndices:i9(n,t,i),prevLayout:r,trigger:"keyboard"});r!==e&&s(e)}}}};return e.addEventListener("keydown",c),()=>{e.removeEventListener("keydown",c)}});return()=>{l.forEach(e=>e())}},[i,e,t,n,r,a,s])}({committedValuesRef:T,eagerValuesRef:v,groupId:p,layout:g,panelDataArray:v.current.panelDataArray,setLayout:b,panelGroupElement:m.current}),(0,el.useEffect)(()=>{let{panelDataArray:t}=v.current;if(e){if(0===g.length||g.length!==t.length)return;let n=sd[e];null==n&&(n=function(e,t=10){let n=null;return(...r)=>{null!==n&&clearTimeout(n),n=setTimeout(()=>{e(...r)},t)}}(sl,100),sd[e]=n),n(e,[...t],new Map(x.current),g,l)}},[e,g,l]),(0,el.useEffect)(()=>{});let A=(0,el.useCallback)(e=>{let{onLayout:t}=T.current,{layout:n,panelDataArray:r}=v.current;if(e.constraints.collapsible){let a=r.map(e=>e.constraints),{collapsedSize:i=0,panelSize:s,pivotIndices:o}=sf(r,e,n);if(iJ(null!=s,`Panel size not found for panel "${e.id}"`),!i1(s,i)){x.current.set(e.id,s);let l=i4({delta:sh(r,e)===r.length-1?s-i:i-s,initialLayout:n,panelConstraints:a,pivotIndices:o,prevLayout:n,trigger:"imperative-api"});sr(n,l)||(b(l),v.current.layout=l,t&&t(l),sn(r,l,E.current))}}},[]),_=(0,el.useCallback)((e,t)=>{let{onLayout:n}=T.current,{layout:r,panelDataArray:a}=v.current;if(e.constraints.collapsible){let i=a.map(e=>e.constraints),{collapsedSize:s=0,panelSize:o=0,minSize:l=0,pivotIndices:c}=sf(a,e,r),u=null!=t?t:l;if(i1(o,s)){let t=x.current.get(e.id),s=null!=t&&t>=u?t:u,l=i4({delta:sh(a,e)===a.length-1?o-s:s-o,initialLayout:r,panelConstraints:i,pivotIndices:c,prevLayout:r,trigger:"imperative-api"});sr(r,l)||(b(l),v.current.layout=l,n&&n(l),sn(a,l,E.current))}}},[]),k=(0,el.useCallback)(e=>{let{layout:t,panelDataArray:n}=v.current,{panelSize:r}=sf(n,e,t);return iJ(null!=r,`Panel size not found for panel "${e.id}"`),r},[]),N=(0,el.useCallback)((e,t)=>{let{panelDataArray:n}=v.current,r=sh(n,e);return function({defaultSize:e,dragState:t,layout:n,panelData:r,panelIndex:a,precision:i=3}){let s=n[a];return{flexBasis:0,flexGrow:null==s?void 0!=e?e.toFixed(i):"1":1===r.length?"1":s.toFixed(i),flexShrink:1,overflow:"hidden",pointerEvents:null!==t?"none":void 0}}({defaultSize:t,dragState:h,layout:g,panelData:n,panelIndex:r})},[h,g]),w=(0,el.useCallback)(e=>{let{layout:t,panelDataArray:n}=v.current,{collapsedSize:r=0,collapsible:a,panelSize:i}=sf(n,e,t);return iJ(null!=i,`Panel size not found for panel "${e.id}"`),!0===a&&i1(i,r)},[]),I=(0,el.useCallback)(e=>{let{layout:t,panelDataArray:n}=v.current,{collapsedSize:r=0,collapsible:a,panelSize:i}=sf(n,e,t);return iJ(null!=i,`Panel size not found for panel "${e.id}"`),!a||i0(i,r)>0},[]),C=(0,el.useCallback)(e=>{let{panelDataArray:t}=v.current;t.push(e),t.sort((e,t)=>{let n=e.order,r=t.order;return null==n&&null==r?0:null==n?-1:null==r?1:n-r}),v.current.panelDataArrayChanged=!0,y()},[y]);ih(()=>{if(v.current.panelDataArrayChanged){v.current.panelDataArrayChanged=!1;let{autoSaveId:n,onLayout:r,storage:a}=T.current,{layout:i,panelDataArray:s}=v.current,o=null;if(n){var e,t;let r=null!=(t=(null!=(e=so(n,a))?e:{})[ss(s)])?t:null;r&&(x.current=new Map(Object.entries(r.expandToSizes)),o=r.layout)}null==o&&(o=function({panelDataArray:e}){let t=Array(e.length),n=e.map(e=>e.constraints),r=0,a=100;for(let i=0;i<e.length;i++){let e=n[i];iJ(e,`Panel constraints not found for index ${i}`);let{defaultSize:s}=e;null!=s&&(r++,t[i]=s,a-=s)}for(let i=0;i<e.length;i++){let s=n[i];iJ(s,`Panel constraints not found for index ${i}`);let{defaultSize:o}=s;if(null!=o)continue;let l=a/(e.length-r);r++,t[i]=l,a-=l}return t}({panelDataArray:s}));let l=sc({layout:o,panelConstraints:s.map(e=>e.constraints)});se(i,l)||(b(l),v.current.layout=l,r&&r(l),sn(s,l,E.current))}}),ih(()=>{let e=v.current;return()=>{e.layout=[]}},[]);let R=(0,el.useCallback)(e=>{let t=!1,n=m.current;return n&&"rtl"===window.getComputedStyle(n,null).getPropertyValue("direction")&&(t=!0),function(n){var r,a;n.preventDefault();let i=m.current;if(!i)return()=>null;let{direction:s,dragState:o,id:l,keyboardResizeBy:c,onLayout:u}=T.current,{layout:d,panelDataArray:p}=v.current,{initialLayout:h}=null!=o?o:{},f=i9(l,e,i),g=function(e,t,n,r,a,i){if(ik(e)){let t="horizontal"===n,r=0;r=e.shiftKey?100:null!=a?a:10;let i=0;switch(e.key){case"ArrowDown":i=t?0:r;break;case"ArrowLeft":i=t?-r:0;break;case"ArrowRight":i=t?r:0;break;case"ArrowUp":i=t?0:-r;break;case"End":i=100;break;case"Home":i=-100}return i}return null==r?0:function(e,t,n,r,a){let i="horizontal"===n,s=i7(t,a);iJ(s,`No resize handle element found for id "${t}"`);let o=s.getAttribute(id);iJ(o,"Resize handle element has no group id attribute");let{initialCursorPosition:l}=r,c=st(n,e),u=i8(o,a);iJ(u,`No group element found for id "${o}"`);let d=u.getBoundingClientRect();return(c-l)/(i?d.width:d.height)*100}(e,t,n,r,i)}(n,e,s,o,c,i),y="horizontal"===s;y&&t&&(g=-g);let x=i4({delta:g,initialLayout:null!=h?h:d,panelConstraints:p.map(e=>e.constraints),pivotIndices:f,prevLayout:d,trigger:ik(n)?"keyboard":"mouse-or-touch"}),A=!sr(d,x);(iN(n)||iw(n))&&S.current!=g&&((S.current=g,A||0===g)?iG.set(e,0):y?(r=g<0?iP:iM,iG.set(e,r)):(a=g<0?iF:ij,iG.set(e,a))),A&&(b(x),v.current.layout=x,u&&u(x),sn(p,x,E.current))}},[]),O=(0,el.useCallback)((e,t)=>{let{onLayout:n}=T.current,{layout:r,panelDataArray:a}=v.current,i=a.map(e=>e.constraints),{panelSize:s,pivotIndices:o}=sf(a,e,r);iJ(null!=s,`Panel size not found for panel "${e.id}"`);let l=i4({delta:sh(a,e)===a.length-1?s-t:t-s,initialLayout:r,panelConstraints:i,pivotIndices:o,prevLayout:r,trigger:"imperative-api"});sr(r,l)||(b(l),v.current.layout=l,n&&n(l),sn(a,l,E.current))},[]),L=(0,el.useCallback)((e,t)=>{let{layout:n,panelDataArray:r}=v.current,{collapsedSize:a=0,collapsible:i}=t,{collapsedSize:s=0,collapsible:o,maxSize:l=100,minSize:c=0}=e.constraints,{panelSize:u}=sf(r,e,n);null!=u&&(i&&o&&i1(u,a)?i1(a,s)||O(e,s):u<c?O(e,c):u>l&&O(e,l))},[O]),D=(0,el.useCallback)((e,t)=>{let{direction:n}=T.current,{layout:r}=v.current;if(!m.current)return;let a=i7(e,m.current);iJ(a,`Drag handle element not found for id "${e}"`);let i=st(n,t);f({dragHandleId:e,dragHandleRect:a.getBoundingClientRect(),initialCursorPosition:i,initialLayout:r})},[]),P=(0,el.useCallback)(()=>{f(null)},[]),M=(0,el.useCallback)(e=>{let{panelDataArray:t}=v.current,n=sh(t,e);n>=0&&(t.splice(n,1),delete E.current[e.id],v.current.panelDataArrayChanged=!0,y())},[y]),F=(0,el.useMemo)(()=>({collapsePanel:A,direction:r,dragState:h,expandPanel:_,getPanelSize:k,getPanelStyle:N,groupId:p,isPanelCollapsed:w,isPanelExpanded:I,reevaluatePanelConstraints:L,registerPanel:C,registerResizeHandle:R,resizePanel:O,startDragging:D,stopDragging:P,unregisterPanel:M,panelGroupElement:m.current}),[A,h,r,_,k,N,p,w,I,L,C,R,O,D,P,M]);return(0,el.createElement)(ic.Provider,{value:F},(0,el.createElement)(u,{...d,children:t,className:n,id:i,ref:m,style:{display:"flex",flexDirection:"horizontal"===r?"row":"column",height:"100%",overflow:"hidden",width:"100%",...c},"data-panel-group":"",[iu]:r,[id]:p}))}let sm=(0,el.forwardRef)((e,t)=>(0,el.createElement)(sp,{...e,forwardedRef:t}));function sh(e,t){return e.findIndex(e=>e===t||e.id===t.id)}function sf(e,t,n){let r=sh(e,t),a=r===e.length-1,i=n[r];return{...t.constraints,panelSize:i,pivotIndices:a?[r-1,r]:[r,r+1]}}function sg({children:e=null,className:t="",disabled:n=!1,hitAreaMargins:r,id:a,onBlur:i,onClick:s,onDragging:o,onFocus:l,onPointerDown:c,onPointerUp:u,style:d={},tabIndex:p=0,tagName:m="div",...h}){var f,g;let b=(0,el.useRef)(null),y=(0,el.useRef)({onClick:s,onDragging:o,onPointerDown:c,onPointerUp:u});(0,el.useEffect)(()=>{y.current.onClick=s,y.current.onDragging=o,y.current.onPointerDown=c,y.current.onPointerUp=u});let E=(0,el.useContext)(ic);if(null===E)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");let{direction:x,groupId:S,registerResizeHandle:T,startDragging:v,stopDragging:A,panelGroupElement:_}=E,k=iE(a),[N,w]=(0,el.useState)("inactive"),[I,C]=(0,el.useState)(!1),[R,O]=(0,el.useState)(null),L=(0,el.useRef)({state:N});ih(()=>{L.current.state=N}),(0,el.useEffect)(()=>{if(n)O(null);else{let e=T(k);O(()=>e)}},[n,k,T]);let D=null!=(f=null==r?void 0:r.coarse)?f:15,P=null!=(g=null==r?void 0:r.fine)?g:5;return(0,el.useEffect)(()=>{if(n||null==R)return;let e=b.current;iJ(e,"Element ref not attached");let t=!1;return function(e,t,n,r,a){var i;let{ownerDocument:s}=t,o={direction:n,element:t,hitAreaMargins:r,setResizeHandlerState:a},l=null!=(i=iz.get(s))?i:0;return iz.set(s,l+1),i$.add(o),iZ(),function(){var t;iG.delete(e),i$.delete(o);let n=null!=(t=iz.get(s))?t:1;if(iz.set(s,n-1),iZ(),1===n&&iz.delete(s),iB.includes(o)){let e=iB.indexOf(o);e>=0&&iB.splice(e,1),iX(),a("up",!0,null)}}}(k,e,x,{coarse:D,fine:P},(e,n,r)=>{if(!n)return void w("inactive");switch(e){case"down":{w("drag"),t=!1,iJ(r,'Expected event to be defined for "down" action'),v(k,r);let{onDragging:e,onPointerDown:n}=y.current;null==e||e(!0),null==n||n();break}case"move":{let{state:e}=L.current;t=!0,"drag"!==e&&w("hover"),iJ(r,'Expected event to be defined for "move" action'),R(r);break}case"up":{w("hover"),A();let{onClick:e,onDragging:n,onPointerUp:r}=y.current;null==n||n(!1),null==r||r(),t||null==e||e()}}})},[D,x,n,P,T,k,R,v,A]),!function({disabled:e,handleId:t,resizeHandler:n,panelGroupElement:r}){(0,el.useEffect)(()=>{if(e||null==n||null==r)return;let a=i7(t,r);if(null==a)return;let i=e=>{if(!e.defaultPrevented)switch(e.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":e.preventDefault(),n(e);break;case"F6":{e.preventDefault();let n=a.getAttribute(id);iJ(n,`No group element found for id "${n}"`);let i=i5(n,r),s=i6(n,t,r);iJ(null!==s,`No resize element found for id "${t}"`);let o=e.shiftKey?s>0?s-1:i.length-1:s+1<i.length?s+1:0;i[o].focus()}}};return a.addEventListener("keydown",i),()=>{a.removeEventListener("keydown",i)}},[r,e,t,n])}({disabled:n,handleId:k,resizeHandler:R,panelGroupElement:_}),(0,el.createElement)(m,{...h,children:e,className:t,id:a,onBlur:()=>{C(!1),null==i||i()},onFocus:()=>{C(!0),null==l||l()},ref:b,role:"separator",style:{touchAction:"none",userSelect:"none",...d},tabIndex:p,[iu]:x,[id]:S,[ip]:"","data-resize-handle-active":"drag"===N?"pointer":I?"keyboard":void 0,"data-panel-resize-handle-enabled":!n,[im]:k,"data-resize-handle-state":N})}sp.displayName="PanelGroup",sm.displayName="forwardRef(PanelGroup)",sg.displayName="PanelResizeHandle";let sb=({className:e,...t})=>(0,eo.jsx)(sm,{className:n3("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",e),...t}),sy=({withHandle:e,className:t,...n})=>(0,eo.jsx)(sg,{className:n3("relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",t),...n,children:e&&(0,eo.jsx)("div",{className:"z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border",children:(0,eo.jsx)(il,{className:"h-2.5 w-2.5"})})}),sE=nf("brain-circuit",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M9 13a4.5 4.5 0 0 0 3-4",key:"10igwf"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M12 13h4",key:"1ku699"}],["path",{d:"M12 18h6a2 2 0 0 1 2 2v1",key:"105ag5"}],["path",{d:"M12 8h8",key:"1lhi5i"}],["path",{d:"M16 8V5a2 2 0 0 1 2-2",key:"u6izg6"}],["circle",{cx:"16",cy:"13",r:".5",key:"ry7gng"}],["circle",{cx:"18",cy:"3",r:".5",key:"1aiba7"}],["circle",{cx:"20",cy:"21",r:".5",key:"yhc1fs"}],["circle",{cx:"20",cy:"8",r:".5",key:"1e43v0"}]]),sx=nf("clock",[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),sS=nf("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]),sT=nf("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]),sv=nf("message-square",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]]),sA=nf("pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]),s_=nf("pin",[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z",key:"1nkz8b"}]]),sk=nf("pin-off",[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89",key:"znwnzq"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11",key:"c9qhm2"}]]),sN=nf("puzzle",[["path",{d:"M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z",key:"w46dr5"}]]),sw=nf("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]),sI=nf("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]);var sC=el.createContext(void 0);function sR(e){let t=el.useContext(sC);return e||t||"ltr"}function sO(e,[t,n]){return Math.min(n,Math.max(t,e))}var sL="ScrollArea",[sD,sP]=eN(sL),[sM,sF]=sD(sL),sj=el.forwardRef((e,t)=>{let{__scopeScrollArea:n,type:r="hover",dir:a,scrollHideDelay:i=600,...s}=e,[o,l]=el.useState(null),[c,u]=el.useState(null),[d,p]=el.useState(null),[m,h]=el.useState(null),[f,g]=el.useState(null),[b,y]=el.useState(0),[E,x]=el.useState(0),[S,T]=el.useState(!1),[v,A]=el.useState(!1),_=ek(t,e=>l(e)),k=sR(a);return(0,eo.jsx)(sM,{scope:n,type:r,dir:k,scrollHideDelay:i,scrollArea:o,viewport:c,onViewportChange:u,content:d,onContentChange:p,scrollbarX:m,onScrollbarXChange:h,scrollbarXEnabled:S,onScrollbarXEnabledChange:T,scrollbarY:f,onScrollbarYChange:g,scrollbarYEnabled:v,onScrollbarYEnabledChange:A,onCornerWidthChange:y,onCornerHeightChange:x,children:(0,eo.jsx)(eF.div,{dir:k,...s,ref:_,style:{position:"relative","--radix-scroll-area-corner-width":b+"px","--radix-scroll-area-corner-height":E+"px",...e.style}})})});sj.displayName=sL;var sU="ScrollAreaViewport",sB=el.forwardRef((e,t)=>{let{__scopeScrollArea:n,children:r,nonce:a,...i}=e,s=sF(sU,n),o=ek(t,el.useRef(null),s.onViewportChange);return(0,eo.jsxs)(eo.Fragment,{children:[(0,eo.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:a}),(0,eo.jsx)(eF.div,{"data-radix-scroll-area-viewport":"",...i,ref:o,style:{overflowX:s.scrollbarXEnabled?"scroll":"hidden",overflowY:s.scrollbarYEnabled?"scroll":"hidden",...e.style},children:(0,eo.jsx)("div",{ref:s.onContentChange,style:{minWidth:"100%",display:"table"},children:r})})]})});sB.displayName=sU;var sH="ScrollAreaScrollbar",sz=el.forwardRef((e,t)=>{let{forceMount:n,...r}=e,a=sF(sH,e.__scopeScrollArea),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:s}=a,o="horizontal"===e.orientation;return el.useEffect(()=>(o?i(!0):s(!0),()=>{o?i(!1):s(!1)}),[o,i,s]),"hover"===a.type?(0,eo.jsx)(sG,{...r,ref:t,forceMount:n}):"scroll"===a.type?(0,eo.jsx)(s$,{...r,ref:t,forceMount:n}):"auto"===a.type?(0,eo.jsx)(sq,{...r,ref:t,forceMount:n}):"always"===a.type?(0,eo.jsx)(sV,{...r,ref:t}):null});sz.displayName=sH;var sG=el.forwardRef((e,t)=>{let{forceMount:n,...r}=e,a=sF(sH,e.__scopeScrollArea),[i,s]=el.useState(!1);return el.useEffect(()=>{let e=a.scrollArea,t=0;if(e){let n=()=>{window.clearTimeout(t),s(!0)},r=()=>{t=window.setTimeout(()=>s(!1),a.scrollHideDelay)};return e.addEventListener("pointerenter",n),e.addEventListener("pointerleave",r),()=>{window.clearTimeout(t),e.removeEventListener("pointerenter",n),e.removeEventListener("pointerleave",r)}}},[a.scrollArea,a.scrollHideDelay]),(0,eo.jsx)(e0,{present:n||i,children:(0,eo.jsx)(sq,{"data-state":i?"visible":"hidden",...r,ref:t})})}),s$=el.forwardRef((e,t)=>{var n;let{forceMount:r,...a}=e,i=sF(sH,e.__scopeScrollArea),s="horizontal"===e.orientation,o=oe(()=>c("SCROLL_END"),100),[l,c]=(n={hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}},el.useReducer((e,t)=>n[e][t]??e,"hidden"));return el.useEffect(()=>{if("idle"===l){let e=window.setTimeout(()=>c("HIDE"),i.scrollHideDelay);return()=>window.clearTimeout(e)}},[l,i.scrollHideDelay,c]),el.useEffect(()=>{let e=i.viewport,t=s?"scrollLeft":"scrollTop";if(e){let n=e[t],r=()=>{let r=e[t];n!==r&&(c("SCROLL"),o()),n=r};return e.addEventListener("scroll",r),()=>e.removeEventListener("scroll",r)}},[i.viewport,s,c,o]),(0,eo.jsx)(e0,{present:r||"hidden"!==l,children:(0,eo.jsx)(sV,{"data-state":"hidden"===l?"hidden":"visible",...a,ref:t,onPointerEnter:ev(e.onPointerEnter,()=>c("POINTER_ENTER")),onPointerLeave:ev(e.onPointerLeave,()=>c("POINTER_LEAVE"))})})}),sq=el.forwardRef((e,t)=>{let n=sF(sH,e.__scopeScrollArea),{forceMount:r,...a}=e,[i,s]=el.useState(!1),o="horizontal"===e.orientation,l=oe(()=>{if(n.viewport){let e=n.viewport.offsetWidth<n.viewport.scrollWidth,t=n.viewport.offsetHeight<n.viewport.scrollHeight;s(o?e:t)}},10);return ot(n.viewport,l),ot(n.content,l),(0,eo.jsx)(e0,{present:r||i,children:(0,eo.jsx)(sV,{"data-state":i?"visible":"hidden",...a,ref:t})})}),sV=el.forwardRef((e,t)=>{let{orientation:n="vertical",...r}=e,a=sF(sH,e.__scopeScrollArea),i=el.useRef(null),s=el.useRef(0),[o,l]=el.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),c=s5(o.viewport,o.content),u={...r,sizes:o,onSizesChange:l,hasThumb:!!(c>0&&c<1),onThumbChange:e=>i.current=e,onThumbPointerUp:()=>s.current=0,onThumbPointerDown:e=>s.current=e};function d(e,t){return function(e,t,n,r="ltr"){let a=s6(n),i=t||a/2,s=n.scrollbar.paddingStart+i,o=n.scrollbar.size-n.scrollbar.paddingEnd-(a-i),l=n.content-n.viewport;return s8([s,o],"ltr"===r?[0,l]:[-1*l,0])(e)}(e,s.current,o,t)}return"horizontal"===n?(0,eo.jsx)(sW,{...u,ref:t,onThumbPositionChange:()=>{if(a.viewport&&i.current){let e=s9(a.viewport.scrollLeft,o,a.dir);i.current.style.transform=`translate3d(${e}px, 0, 0)`}},onWheelScroll:e=>{a.viewport&&(a.viewport.scrollLeft=e)},onDragScroll:e=>{a.viewport&&(a.viewport.scrollLeft=d(e,a.dir))}}):"vertical"===n?(0,eo.jsx)(sY,{...u,ref:t,onThumbPositionChange:()=>{if(a.viewport&&i.current){let e=s9(a.viewport.scrollTop,o);i.current.style.transform=`translate3d(0, ${e}px, 0)`}},onWheelScroll:e=>{a.viewport&&(a.viewport.scrollTop=e)},onDragScroll:e=>{a.viewport&&(a.viewport.scrollTop=d(e))}}):null}),sW=el.forwardRef((e,t)=>{let{sizes:n,onSizesChange:r,...a}=e,i=sF(sH,e.__scopeScrollArea),[s,o]=el.useState(),l=el.useRef(null),c=ek(t,l,i.onScrollbarXChange);return el.useEffect(()=>{l.current&&o(getComputedStyle(l.current))},[l]),(0,eo.jsx)(sZ,{"data-orientation":"horizontal",...a,ref:c,sizes:n,style:{bottom:0,left:"rtl"===i.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===i.dir?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":s6(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,n)=>{if(i.viewport){var r,a;let s=i.viewport.scrollLeft+t.deltaX;e.onWheelScroll(s),r=s,a=n,r>0&&r<a&&t.preventDefault()}},onResize:()=>{l.current&&i.viewport&&s&&r({content:i.viewport.scrollWidth,viewport:i.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:s4(s.paddingLeft),paddingEnd:s4(s.paddingRight)}})}})}),sY=el.forwardRef((e,t)=>{let{sizes:n,onSizesChange:r,...a}=e,i=sF(sH,e.__scopeScrollArea),[s,o]=el.useState(),l=el.useRef(null),c=ek(t,l,i.onScrollbarYChange);return el.useEffect(()=>{l.current&&o(getComputedStyle(l.current))},[l]),(0,eo.jsx)(sZ,{"data-orientation":"vertical",...a,ref:c,sizes:n,style:{top:0,right:"ltr"===i.dir?0:void 0,left:"rtl"===i.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":s6(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,n)=>{if(i.viewport){var r,a;let s=i.viewport.scrollTop+t.deltaY;e.onWheelScroll(s),r=s,a=n,r>0&&r<a&&t.preventDefault()}},onResize:()=>{l.current&&i.viewport&&s&&r({content:i.viewport.scrollHeight,viewport:i.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:s4(s.paddingTop),paddingEnd:s4(s.paddingBottom)}})}})}),[sK,sX]=sD(sH),sZ=el.forwardRef((e,t)=>{let{__scopeScrollArea:n,sizes:r,hasThumb:a,onThumbChange:i,onThumbPointerUp:s,onThumbPointerDown:o,onThumbPositionChange:l,onDragScroll:c,onWheelScroll:u,onResize:d,...p}=e,m=sF(sH,n),[h,f]=el.useState(null),g=ek(t,e=>f(e)),b=el.useRef(null),y=el.useRef(""),E=m.viewport,x=r.content-r.viewport,S=ej(u),T=ej(l),v=oe(d,10);function A(e){b.current&&c({x:e.clientX-b.current.left,y:e.clientY-b.current.top})}return el.useEffect(()=>{let e=e=>{let t=e.target;h?.contains(t)&&S(e,x)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})},[E,h,x,S]),el.useEffect(T,[r,T]),ot(h,v),ot(m.content,v),(0,eo.jsx)(sK,{scope:n,scrollbar:h,hasThumb:a,onThumbChange:ej(i),onThumbPointerUp:ej(s),onThumbPositionChange:T,onThumbPointerDown:ej(o),children:(0,eo.jsx)(eF.div,{...p,ref:g,style:{position:"absolute",...p.style},onPointerDown:ev(e.onPointerDown,e=>{0===e.button&&(e.target.setPointerCapture(e.pointerId),b.current=h.getBoundingClientRect(),y.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",m.viewport&&(m.viewport.style.scrollBehavior="auto"),A(e))}),onPointerMove:ev(e.onPointerMove,A),onPointerUp:ev(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=y.current,m.viewport&&(m.viewport.style.scrollBehavior=""),b.current=null})})})}),sQ="ScrollAreaThumb",sJ=el.forwardRef((e,t)=>{let{forceMount:n,...r}=e,a=sX(sQ,e.__scopeScrollArea);return(0,eo.jsx)(e0,{present:n||a.hasThumb,children:(0,eo.jsx)(s0,{ref:t,...r})})}),s0=el.forwardRef((e,t)=>{let{__scopeScrollArea:n,style:r,...a}=e,i=sF(sQ,n),s=sX(sQ,n),{onThumbPositionChange:o}=s,l=ek(t,e=>s.onThumbChange(e)),c=el.useRef(void 0),u=oe(()=>{c.current&&(c.current(),c.current=void 0)},100);return el.useEffect(()=>{let e=i.viewport;if(e){let t=()=>{u(),c.current||(c.current=s7(e,o),o())};return o(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}},[i.viewport,u,o]),(0,eo.jsx)(eF.div,{"data-state":s.hasThumb?"visible":"hidden",...a,ref:l,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:ev(e.onPointerDownCapture,e=>{let t=e.target.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top;s.onThumbPointerDown({x:n,y:r})}),onPointerUp:ev(e.onPointerUp,s.onThumbPointerUp)})});sJ.displayName=sQ;var s1="ScrollAreaCorner",s2=el.forwardRef((e,t)=>{let n=sF(s1,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return"scroll"!==n.type&&r?(0,eo.jsx)(s3,{...e,ref:t}):null});s2.displayName=s1;var s3=el.forwardRef((e,t)=>{let{__scopeScrollArea:n,...r}=e,a=sF(s1,n),[i,s]=el.useState(0),[o,l]=el.useState(0),c=!!(i&&o);return ot(a.scrollbarX,()=>{let e=a.scrollbarX?.offsetHeight||0;a.onCornerHeightChange(e),l(e)}),ot(a.scrollbarY,()=>{let e=a.scrollbarY?.offsetWidth||0;a.onCornerWidthChange(e),s(e)}),c?(0,eo.jsx)(eF.div,{...r,ref:t,style:{width:i,height:o,position:"absolute",right:"ltr"===a.dir?0:void 0,left:"rtl"===a.dir?0:void 0,bottom:0,...e.style}}):null});function s4(e){return e?parseInt(e,10):0}function s5(e,t){let n=e/t;return isNaN(n)?0:n}function s6(e){let t=s5(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd;return Math.max((e.scrollbar.size-n)*t,18)}function s9(e,t,n="ltr"){let r=s6(t),a=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,i=t.scrollbar.size-a,s=t.content-t.viewport,o=sO(e,"ltr"===n?[0,s]:[-1*s,0]);return s8([0,s],[0,i-r])(o)}function s8(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}var s7=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return!function a(){let i={left:e.scrollLeft,top:e.scrollTop},s=n.left!==i.left,o=n.top!==i.top;(s||o)&&t(),n=i,r=window.requestAnimationFrame(a)}(),()=>window.cancelAnimationFrame(r)};function oe(e,t){let n=ej(e),r=el.useRef(0);return el.useEffect(()=>()=>window.clearTimeout(r.current),[]),el.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function ot(e,t){let n=ej(t);ew(()=>{let t=0;if(e){let r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e,n])}function on({className:e,children:t,...n}){return(0,eo.jsxs)(sj,{"data-slot":"scroll-area",className:n3("relative",e),...n,children:[(0,eo.jsx)(sB,{"data-slot":"scroll-area-viewport",className:"size-full rounded-[inherit] outline-none transition-[color,box-shadow] focus-visible:outline-1 focus-visible:ring-[3px] focus-visible:ring-ring/50",children:t}),(0,eo.jsx)(or,{}),(0,eo.jsx)(s2,{})]})}function or({className:e,orientation:t="vertical",...n}){return(0,eo.jsx)(sz,{"data-slot":"scroll-area-scrollbar",orientation:t,className:n3("flex touch-none select-none p-px transition-colors","vertical"===t&&"h-full w-2.5 border-l border-l-transparent","horizontal"===t&&"h-2.5 flex-col border-t border-t-transparent",e),...n,children:(0,eo.jsx)(sJ,{"data-slot":"scroll-area-thumb",className:"relative flex-1 rounded-full bg-border"})})}function oa({className:e,...t}){return(0,eo.jsx)("div",{className:n3("animate-pulse rounded-md bg-muted",e),...t})}function oi(e){var t;let n,r=(t=e,(n=el.forwardRef((e,t)=>{let{children:n,...r}=e;if(el.isValidElement(n)){var a;let e,i,s=(a=n,(i=(e=Object.getOwnPropertyDescriptor(a.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.ref:(i=(e=Object.getOwnPropertyDescriptor(a,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.props.ref:a.props.ref||a.ref),o=function(e,t){let n={...t};for(let r in t){let a=e[r],i=t[r];/^on[A-Z]/.test(r)?a&&i?n[r]=(...e)=>{let t=i(...e);return a(...e),t}:a&&(n[r]=a):"style"===r?n[r]={...a,...i}:"className"===r&&(n[r]=[a,i].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==el.Fragment&&(o.ref=t?e_(t,s):s),el.cloneElement(n,o)}return el.Children.count(n)>1?el.Children.only(null):null})).displayName=`${t}.SlotClone`,n),a=el.forwardRef((e,t)=>{let{children:n,...a}=e,i=el.Children.toArray(n),s=i.find(oo);if(s){let e=s.props.children,n=i.map(t=>t!==s?t:el.Children.count(e)>1?el.Children.only(null):el.isValidElement(e)?e.props.children:null);return(0,eo.jsx)(r,{...a,ref:t,children:el.isValidElement(e)?el.cloneElement(e,void 0,n):null})}return(0,eo.jsx)(r,{...a,ref:t,children:n})});return a.displayName=`${e}.Slot`,a}var os=Symbol("radix.slottable");function oo(e){return el.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===os}var ol=new WeakMap;function oc(e,t){var n,r;let a,i,s;if("at"in Array.prototype)return Array.prototype.at.call(e,t);let o=(n=e,r=t,a=n.length,(s=(i=ou(r))>=0?i:a+i)<0||s>=a?-1:s);return -1===o?void 0:e[o]}function ou(e){return e!=e||0===e?0:Math.trunc(e)}(class e extends Map{#ta;constructor(e){super(e),this.#ta=[...super.keys()],ol.set(this,!0)}set(e,t){return ol.get(this)&&(this.has(e)?this.#ta[this.#ta.indexOf(e)]=e:this.#ta.push(e)),super.set(e,t),this}insert(e,t,n){let r,a=this.has(t),i=this.#ta.length,s=ou(e),o=s>=0?s:i+s,l=o<0||o>=i?-1:o;if(l===this.size||a&&l===this.size-1||-1===l)return this.set(t,n),this;let c=this.size+ +!a;s<0&&o++;let u=[...this.#ta],d=!1;for(let e=o;e<c;e++)if(o===e){let i=u[e];u[e]===t&&(i=u[e+1]),a&&this.delete(t),r=this.get(i),this.set(t,n)}else{d||u[e-1]!==t||(d=!0);let n=u[d?e:e-1],a=r;r=this.get(n),this.delete(n),this.set(n,a)}return this}with(t,n,r){let a=new e(this);return a.insert(t,n,r),a}before(e){let t=this.#ta.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,n){let r=this.#ta.indexOf(e);return -1===r?this:this.insert(r,t,n)}after(e){let t=this.#ta.indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,n){let r=this.#ta.indexOf(e);return -1===r?this:this.insert(r+1,t,n)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#ta=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#ta.splice(this.#ta.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=oc(this.#ta,e);if(void 0!==t)return this.get(t)}entryAt(e){let t=oc(this.#ta,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#ta.indexOf(e)}keyAt(e){return oc(this.#ta,e)}from(e,t){let n=this.indexOf(e);if(-1===n)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.at(r)}keyFrom(e,t){let n=this.indexOf(e);if(-1===n)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.keyAt(r)}find(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return r;n++}}findIndex(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return n;n++}return -1}filter(t,n){let r=[],a=0;for(let e of this)Reflect.apply(t,n,[e,a,this])&&r.push(e),a++;return new e(r)}map(t,n){let r=[],a=0;for(let e of this)r.push([e[0],Reflect.apply(t,n,[e,a,this])]),a++;return new e(r)}reduce(...e){let[t,n]=e,r=0,a=n??this.at(0);for(let n of this)a=0===r&&1===e.length?n:Reflect.apply(t,this,[a,n,r,this]),r++;return a}reduceRight(...e){let[t,n]=e,r=n??this.at(-1);for(let n=this.size-1;n>=0;n--){let a=this.at(n);r=n===this.size-1&&1===e.length?a:Reflect.apply(t,this,[r,a,n,this])}return r}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let n=this.keyAt(e),r=this.get(n);t.set(n,r)}return t}toSpliced(...t){let n=[...this.entries()];return n.splice(...t),new e(n)}slice(t,n){let r=new e,a=this.size-1;if(void 0===t)return r;t<0&&(t+=this.size),void 0!==n&&n>0&&(a=n-1);for(let e=t;e<=a;e++){let t=this.keyAt(e),n=this.get(t);r.set(t,n)}return r}every(e,t){let n=0;for(let r of this){if(!Reflect.apply(e,t,[r,n,this]))return!1;n++}return!0}some(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return!0;n++}return!1}});let od=["top","right","bottom","left"],op=Math.min,om=Math.max,oh=Math.round,of=Math.floor,og=e=>({x:e,y:e}),ob={left:"right",right:"left",bottom:"top",top:"bottom"};function oy(e,t){return"function"==typeof e?e(t):e}function oE(e){return e.split("-")[0]}function ox(e){return e.split("-")[1]}function oS(e){return"x"===e?"y":"x"}function oT(e){return"y"===e?"height":"width"}function ov(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function oA(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let o_=["left","right"],ok=["right","left"],oN=["top","bottom"],ow=["bottom","top"];function oI(e){let t=oE(e);return ob[t]+e.slice(t.length)}function oC(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function oR(e){let{x:t,y:n,width:r,height:a}=e;return{width:r,height:a,top:n,left:t,right:t+r,bottom:n+a,x:t,y:n}}function oO(e,t,n){let r,{reference:a,floating:i}=e,s=ov(t),o=oS(ov(t)),l=oT(o),c=oE(t),u="y"===s,d=a.x+a.width/2-i.width/2,p=a.y+a.height/2-i.height/2,m=a[l]/2-i[l]/2;switch(c){case"top":r={x:d,y:a.y-i.height};break;case"bottom":r={x:d,y:a.y+a.height};break;case"right":r={x:a.x+a.width,y:p};break;case"left":r={x:a.x-i.width,y:p};break;default:r={x:a.x,y:a.y}}switch(ox(t)){case"start":r[o]-=m*(n&&u?-1:1);break;case"end":r[o]+=m*(n&&u?-1:1)}return r}async function oL(e,t){var n;void 0===t&&(t={});let{x:r,y:a,platform:i,rects:s,elements:o,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:m=0}=oy(t,e),h=oC(m),f=o[p?"floating"===d?"reference":"floating":d],g=oR(await i.getClippingRect({element:null==(n=await (null==i.isElement?void 0:i.isElement(f)))||n?f:f.contextElement||await (null==i.getDocumentElement?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:u,strategy:l})),b="floating"===d?{x:r,y:a,width:s.floating.width,height:s.floating.height}:s.reference,y=await (null==i.getOffsetParent?void 0:i.getOffsetParent(o.floating)),E=await (null==i.isElement?void 0:i.isElement(y))&&await (null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},x=oR(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:b,offsetParent:y,strategy:l}):b);return{top:(g.top-x.top+h.top)/E.y,bottom:(x.bottom-g.bottom+h.bottom)/E.y,left:(g.left-x.left+h.left)/E.x,right:(x.right-g.right+h.right)/E.x}}let oD=async(e,t,n)=>{let{placement:r="bottom",strategy:a="absolute",middleware:i=[],platform:s}=n,o=s.detectOverflow?s:{...s,detectOverflow:oL},l=await (null==s.isRTL?void 0:s.isRTL(t)),c=await s.getElementRects({reference:e,floating:t,strategy:a}),{x:u,y:d}=oO(c,r,l),p=r,m=0,h={};for(let n=0;n<i.length;n++){let f=i[n];if(!f)continue;let{name:g,fn:b}=f,{x:y,y:E,data:x,reset:S}=await b({x:u,y:d,initialPlacement:r,placement:p,strategy:a,middlewareData:h,rects:c,platform:o,elements:{reference:e,floating:t}});u=null!=y?y:u,d=null!=E?E:d,h[g]={...h[g],...x},S&&m<50&&(m++,"object"==typeof S&&(S.placement&&(p=S.placement),S.rects&&(c=!0===S.rects?await s.getElementRects({reference:e,floating:t,strategy:a}):S.rects),{x:u,y:d}=oO(c,p,l)),n=-1)}return{x:u,y:d,placement:p,strategy:a,middlewareData:h}};function oP(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function oM(e){return od.some(t=>e[t]>=0)}let oF=new Set(["left","top"]);async function oj(e,t){let{placement:n,platform:r,elements:a}=e,i=await (null==r.isRTL?void 0:r.isRTL(a.floating)),s=oE(n),o=ox(n),l="y"===ov(n),c=oF.has(s)?-1:1,u=i&&l?-1:1,d=oy(t,e),{mainAxis:p,crossAxis:m,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return o&&"number"==typeof h&&(m="end"===o?-1*h:h),l?{x:m*u,y:p*c}:{x:p*c,y:m*u}}function oU(){return"u">typeof window}function oB(e){return oG(e)?(e.nodeName||"").toLowerCase():"#document"}function oH(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function oz(e){var t;return null==(t=(oG(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function oG(e){return!!oU()&&(e instanceof Node||e instanceof oH(e).Node)}function o$(e){return!!oU()&&(e instanceof Element||e instanceof oH(e).Element)}function oq(e){return!!oU()&&(e instanceof HTMLElement||e instanceof oH(e).HTMLElement)}function oV(e){return!(!oU()||"u"<typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof oH(e).ShadowRoot)}function oW(e){let{overflow:t,overflowX:n,overflowY:r,display:a}=o1(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==a&&"contents"!==a}function oY(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}let oK=/transform|translate|scale|rotate|perspective|filter/,oX=/paint|layout|strict|content/,oZ=e=>!!e&&"none"!==e;function oQ(e){let t=o$(e)?o1(e):e;return oZ(t.transform)||oZ(t.translate)||oZ(t.scale)||oZ(t.rotate)||oZ(t.perspective)||!oJ()&&(oZ(t.backdropFilter)||oZ(t.filter))||oK.test(t.willChange||"")||oX.test(t.contain||"")}function oJ(){return null==r&&(r="u">typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),r}function o0(e){return/^(html|body|#document)$/.test(oB(e))}function o1(e){return oH(e).getComputedStyle(e)}function o2(e){return o$(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function o3(e){if("html"===oB(e))return e;let t=e.assignedSlot||e.parentNode||oV(e)&&e.host||oz(e);return oV(t)?t.host:t}function o4(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let a=function e(t){let n=o3(t);return o0(n)?t.ownerDocument?t.ownerDocument.body:t.body:oq(n)&&oW(n)?n:e(n)}(e),i=a===(null==(r=e.ownerDocument)?void 0:r.body),s=oH(a);if(!i)return t.concat(a,o4(a,[],n));{let e=o5(s);return t.concat(s,s.visualViewport||[],oW(a)?a:[],e&&n?o4(e):[])}}function o5(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function o6(e){let t=o1(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,a=oq(e),i=a?e.offsetWidth:n,s=a?e.offsetHeight:r,o=oh(n)!==i||oh(r)!==s;return o&&(n=i,r=s),{width:n,height:r,$:o}}function o9(e){return o$(e)?e:e.contextElement}function o8(e){let t=o9(e);if(!oq(t))return og(1);let n=t.getBoundingClientRect(),{width:r,height:a,$:i}=o6(t),s=(i?oh(n.width):n.width)/r,o=(i?oh(n.height):n.height)/a;return s&&Number.isFinite(s)||(s=1),o&&Number.isFinite(o)||(o=1),{x:s,y:o}}let o7=og(0);function le(e){let t=oH(e);return oJ()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:o7}function lt(e,t,n,r){var a;void 0===t&&(t=!1),void 0===n&&(n=!1);let i=e.getBoundingClientRect(),s=o9(e),o=og(1);t&&(r?o$(r)&&(o=o8(r)):o=o8(e));let l=(void 0===(a=n)&&(a=!1),r&&(!a||r===oH(s))&&a)?le(s):og(0),c=(i.left+l.x)/o.x,u=(i.top+l.y)/o.y,d=i.width/o.x,p=i.height/o.y;if(s){let e=oH(s),t=r&&o$(r)?oH(r):r,n=e,a=o5(n);for(;a&&r&&t!==n;){let e=o8(a),t=a.getBoundingClientRect(),r=o1(a),i=t.left+(a.clientLeft+parseFloat(r.paddingLeft))*e.x,s=t.top+(a.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,u*=e.y,d*=e.x,p*=e.y,c+=i,u+=s,a=o5(n=oH(a))}}return oR({width:d,height:p,x:c,y:u})}function ln(e,t){let n=o2(e).scrollLeft;return t?t.left+n:lt(oz(e)).left+n}function lr(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-ln(e,n),y:n.top+t.scrollTop}}function la(e,t,n){var r;let a;if("viewport"===t)a=function(e,t){let n=oH(e),r=oz(e),a=n.visualViewport,i=r.clientWidth,s=r.clientHeight,o=0,l=0;if(a){i=a.width,s=a.height;let e=oJ();(!e||e&&"fixed"===t)&&(o=a.offsetLeft,l=a.offsetTop)}let c=ln(r);if(c<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),a="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,s=Math.abs(r.clientWidth-t.clientWidth-a);s<=25&&(i-=s)}else c<=25&&(i+=c);return{width:i,height:s,x:o,y:l}}(e,n);else if("document"===t){let t,n,i,s,o,l,c;r=oz(e),t=oz(r),n=o2(r),i=r.ownerDocument.body,s=om(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),o=om(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight),l=-n.scrollLeft+ln(r),c=-n.scrollTop,"rtl"===o1(i).direction&&(l+=om(t.clientWidth,i.clientWidth)-s),a={width:s,height:o,x:l,y:c}}else if(o$(t)){let e,r,i,s,o,l;r=(e=lt(t,!0,"fixed"===n)).top+t.clientTop,i=e.left+t.clientLeft,s=oq(t)?o8(t):og(1),o=t.clientWidth*s.x,l=t.clientHeight*s.y,a={width:o,height:l,x:i*s.x,y:r*s.y}}else{let n=le(e);a={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return oR(a)}function li(e){return"static"===o1(e).position}function ls(e,t){if(!oq(e)||"fixed"===o1(e).position)return null;if(t)return t(e);let n=e.offsetParent;return oz(e)===n&&(n=n.ownerDocument.body),n}function lo(e,t){var n;let r=oH(e);if(oY(e))return r;if(!oq(e)){let t=o3(e);for(;t&&!o0(t);){if(o$(t)&&!li(t))return t;t=o3(t)}return r}let a=ls(e,t);for(;a&&(n=a,/^(table|td|th)$/.test(oB(n)))&&li(a);)a=ls(a,t);return a&&o0(a)&&li(a)&&!oQ(a)?r:a||function(e){let t=o3(e);for(;oq(t)&&!o0(t);){if(oQ(t))return t;if(oY(t))break;t=o3(t)}return null}(e)||r}let ll=async function(e){let t=this.getOffsetParent||lo,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=oq(t),a=oz(t),i="fixed"===n,s=lt(e,!0,i,t),o={scrollLeft:0,scrollTop:0},l=og(0);if(r||!r&&!i)if(("body"!==oB(t)||oW(a))&&(o=o2(t)),r){let e=lt(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else a&&(l.x=ln(a));i&&!r&&a&&(l.x=ln(a));let c=!a||r||i?og(0):lr(a,o);return{x:s.left+o.scrollLeft-l.x-c.x,y:s.top+o.scrollTop-l.y-c.y,width:s.width,height:s.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},lc={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:a}=e,i="fixed"===a,s=oz(r),o=!!t&&oY(t.floating);if(r===s||o&&i)return n;let l={scrollLeft:0,scrollTop:0},c=og(1),u=og(0),d=oq(r);if((d||!d&&!i)&&(("body"!==oB(r)||oW(s))&&(l=o2(r)),d)){let e=lt(r);c=o8(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let p=!s||d||i?og(0):lr(s,l);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+p.x,y:n.y*c.y-l.scrollTop*c.y+u.y+p.y}},getDocumentElement:oz,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:a}=e,i=[..."clippingAncestors"===n?oY(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=o4(e,[],!1).filter(e=>o$(e)&&"body"!==oB(e)),a=null,i="fixed"===o1(e).position,s=i?o3(e):e;for(;o$(s)&&!o0(s);){let t=o1(s),n=oQ(s);n||"fixed"!==t.position||(a=null),(i?n||a:!(!n&&"static"===t.position&&a&&("absolute"===a.position||"fixed"===a.position)||oW(s)&&!n&&function e(t,n){let r=o3(t);return!(r===n||!o$(r)||o0(r))&&("fixed"===o1(r).position||e(r,n))}(e,s)))?a=t:r=r.filter(e=>e!==s),s=o3(s)}return t.set(e,r),r}(t,this._c):[].concat(n),r],s=la(t,i[0],a),o=s.top,l=s.right,c=s.bottom,u=s.left;for(let e=1;e<i.length;e++){let n=la(t,i[e],a);o=om(n.top,o),l=op(n.right,l),c=op(n.bottom,c),u=om(n.left,u)}return{width:l-u,height:c-o,x:u,y:o}},getOffsetParent:lo,getElementRects:ll,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=o6(e);return{width:t,height:n}},getScale:o8,isElement:o$,isRTL:function(e){return"rtl"===o1(e).direction}};function lu(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let ld=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:a,rects:i,platform:s,elements:o,middlewareData:l}=t,{element:c,padding:u=0}=oy(e,t)||{};if(null==c)return{};let d=oC(u),p={x:n,y:r},m=oS(ov(a)),h=oT(m),f=await s.getDimensions(c),g="y"===m,b=g?"clientHeight":"clientWidth",y=i.reference[h]+i.reference[m]-p[m]-i.floating[h],E=p[m]-i.reference[m],x=await (null==s.getOffsetParent?void 0:s.getOffsetParent(c)),S=x?x[b]:0;S&&await (null==s.isElement?void 0:s.isElement(x))||(S=o.floating[b]||i.floating[h]);let T=S/2-f[h]/2-1,v=op(d[g?"top":"left"],T),A=op(d[g?"bottom":"right"],T),_=S-f[h]-A,k=S/2-f[h]/2+(y/2-E/2),N=om(v,op(k,_)),w=!l.arrow&&null!=ox(a)&&k!==N&&i.reference[h]/2-(k<v?v:A)-f[h]/2<0,I=w?k<v?k-v:k-_:0;return{[m]:p[m]+I,data:{[m]:N,centerOffset:k-N-I,...w&&{alignmentOffset:I}},reset:w}}});var lp="u">typeof document?el.useLayoutEffect:function(){};function lm(e,t){let n,r,a;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!lm(e[r],t[r]))return!1;return!0}if((n=(a=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,a[r]))return!1;for(r=n;0!=r--;){let n=a[r];if(("_owner"!==n||!e.$$typeof)&&!lm(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function lh(e){return"u"<typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function lf(e,t){let n=lh(e);return Math.round(t*n)/n}function lg(e){let t=el.useRef(e);return lp(()=>{t.current=e}),t}var lb=el.forwardRef((e,t)=>{let{children:n,width:r=10,height:a=5,...i}=e;return(0,eo.jsx)(eF.svg,{...i,ref:t,width:r,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,eo.jsx)("polygon",{points:"0,0 30,0 15,10"})})});lb.displayName="Arrow";var ly="Popper",[lE,lx]=eN(ly),[lS,lT]=lE(ly),lv=e=>{let{__scopePopper:t,children:n}=e,[r,a]=el.useState(null);return(0,eo.jsx)(lS,{scope:t,anchor:r,onAnchorChange:a,children:n})};lv.displayName=ly;var lA="PopperAnchor",l_=el.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...a}=e,i=lT(lA,n),s=el.useRef(null),o=ek(t,s),l=el.useRef(null);return el.useEffect(()=>{let e=l.current;l.current=r?.current||s.current,e!==l.current&&i.onAnchorChange(l.current)}),r?null:(0,eo.jsx)(eF.div,{...a,ref:o})});l_.displayName=lA;var lk="PopperContent",[lN,lw]=lE(lk),lI=el.forwardRef((e,t)=>{var n,r,a,i,s,o,l,c,u,d,p,m,h,f,g,b,y,E,x,S,T;let v,A,_,k,N,w,{__scopePopper:I,side:C="bottom",sideOffset:R=0,align:O="center",alignOffset:L=0,arrowPadding:D=0,avoidCollisions:P=!0,collisionBoundary:M=[],collisionPadding:F=0,sticky:j="partial",hideWhenDetached:U=!1,updatePositionStrategy:B="optimized",onPlaced:H,...z}=e,G=lT(lk,I),[$,q]=el.useState(null),V=ek(t,e=>q(e)),[W,Y]=el.useState(null),K=function(e){let[t,n]=el.useState(void 0);return ew(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,a;if(!Array.isArray(t)||!t.length)return;let i=t[0];if("borderBoxSize"in i){let e=i.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,a=t.blockSize}else r=e.offsetWidth,a=e.offsetHeight;n({width:r,height:a})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}(W),X=K?.width??0,Z=K?.height??0,Q="number"==typeof F?F:{top:0,right:0,bottom:0,left:0,...F},J=Array.isArray(M)?M:[M],ee=J.length>0,et={padding:Q,boundary:J.filter(lL),altBoundary:ee},{refs:en,floatingStyles:er,placement:ea,isPositioned:ei,middlewareData:es}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:a,elements:{reference:i,floating:s}={},transform:o=!0,whileElementsMounted:l,open:c}=e,[u,d]=el.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=el.useState(r);lm(p,r)||m(r);let[h,f]=el.useState(null),[g,b]=el.useState(null),y=el.useCallback(e=>{e!==T.current&&(T.current=e,f(e))},[]),E=el.useCallback(e=>{e!==v.current&&(v.current=e,b(e))},[]),x=i||h,S=s||g,T=el.useRef(null),v=el.useRef(null),A=el.useRef(u),_=null!=l,k=lg(l),N=lg(a),w=lg(c),I=el.useCallback(()=>{var e,r;let a,i,s;if(!T.current||!v.current)return;let o={placement:t,strategy:n,middleware:p};N.current&&(o.platform=N.current),(e=T.current,r=v.current,a=new Map,s={...(i={platform:lc,...o}).platform,_c:a},oD(e,r,{...i,platform:s})).then(e=>{let t={...e,isPositioned:!1!==w.current};C.current&&!lm(A.current,t)&&(A.current=t,eD.flushSync(()=>{d(t)}))})},[p,t,n,N,w]);lp(()=>{!1===c&&A.current.isPositioned&&(A.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[c]);let C=el.useRef(!1);lp(()=>(C.current=!0,()=>{C.current=!1}),[]),lp(()=>{if(x&&(T.current=x),S&&(v.current=S),x&&S){if(k.current)return k.current(x,S,I);I()}},[x,S,I,k,_]);let R=el.useMemo(()=>({reference:T,floating:v,setReference:y,setFloating:E}),[y,E]),O=el.useMemo(()=>({reference:x,floating:S}),[x,S]),L=el.useMemo(()=>{let e={position:n,left:0,top:0};if(!O.floating)return e;let t=lf(O.floating,u.x),r=lf(O.floating,u.y);return o?{...e,transform:"translate("+t+"px, "+r+"px)",...lh(O.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,o,O.floating,u.x,u.y]);return el.useMemo(()=>({...u,update:I,refs:R,elements:O,floatingStyles:L}),[u,I,R,O,L])}({strategy:"fixed",placement:C+("center"!==O?"-"+O:""),whileElementsMounted:(...e)=>(function(e,t,n,r){let a;void 0===r&&(r={});let{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:o="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:c=!1}=r,u=o9(e),d=i||s?[...u?o4(u):[],...t?o4(t):[]]:[];d.forEach(e=>{i&&e.addEventListener("scroll",n,{passive:!0}),s&&e.addEventListener("resize",n)});let p=u&&l?function(e,t){let n,r=null,a=oz(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function s(o,l){void 0===o&&(o=!1),void 0===l&&(l=1),i();let c=e.getBoundingClientRect(),{left:u,top:d,width:p,height:m}=c;if(o||t(),!p||!m)return;let h={rootMargin:-of(d)+"px "+-of(a.clientWidth-(u+p))+"px "+-of(a.clientHeight-(d+m))+"px "+-of(u)+"px",threshold:om(0,op(1,l))||1},f=!0;function g(t){let r=t[0].intersectionRatio;if(r!==l){if(!f)return s();r?s(!1,r):n=setTimeout(()=>{s(!1,1e-7)},1e3)}1!==r||lu(c,e.getBoundingClientRect())||s(),f=!1}try{r=new IntersectionObserver(g,{...h,root:a.ownerDocument})}catch(e){r=new IntersectionObserver(g,h)}r.observe(e)}(!0),i}(u,n):null,m=-1,h=null;o&&(h=new ResizeObserver(e=>{let[r]=e;r&&r.target===u&&h&&t&&(h.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var e;null==(e=h)||e.observe(t)})),n()}),u&&!c&&h.observe(u),t&&h.observe(t));let f=c?lt(e):null;return c&&function t(){let r=lt(e);f&&!lu(f,r)&&n(),f=r,a=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach(e=>{i&&e.removeEventListener("scroll",n),s&&e.removeEventListener("resize",n)}),null==p||p(),null==(e=h)||e.disconnect(),h=null,c&&cancelAnimationFrame(a)}})(...e,{animationFrame:"always"===B}),elements:{reference:G.anchor},middleware:[{name:(v={name:"offset",options:a=n={mainAxis:R+Z,alignmentAxis:L},async fn(e){var t,n;let{x:r,y:i,placement:s,middlewareData:o}=e,l=await oj(e,a);return s===(null==(t=o.offset)?void 0:t.placement)&&null!=(n=o.arrow)&&n.alignmentOffset?{}:{x:r+l.x,y:i+l.y,data:{...l,placement:s}}}}).name,fn:v.fn,options:[n,r]},P&&{name:(A={name:"shift",options:u=l={mainAxis:!0,crossAxis:!1,limiter:"partial"===j?{fn:(void 0===(o=i)&&(o={}),{options:o,fn(e){let{x:t,y:n,placement:r,rects:a,middlewareData:i}=e,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=oy(o,e),u={x:t,y:n},d=ov(r),p=oS(d),m=u[p],h=u[d],f=oy(s,e),g="number"==typeof f?{mainAxis:f,crossAxis:0}:{mainAxis:0,crossAxis:0,...f};if(l){let e="y"===p?"height":"width",t=a.reference[p]-a.floating[e]+g.mainAxis,n=a.reference[p]+a.reference[e]-g.mainAxis;m<t?m=t:m>n&&(m=n)}if(c){var b,y;let e="y"===p?"width":"height",t=oF.has(oE(r)),n=a.reference[d]-a.floating[e]+(t&&(null==(b=i.offset)?void 0:b[d])||0)+(t?0:g.crossAxis),s=a.reference[d]+a.reference[e]+(t?0:(null==(y=i.offset)?void 0:y[d])||0)-(t?g.crossAxis:0);h<n?h=n:h>s&&(h=s)}return{[p]:m,[d]:h}}}).fn,options:[i,s]}:void 0,...et},async fn(e){let{x:t,y:n,placement:r,platform:a}=e,{mainAxis:i=!0,crossAxis:s=!1,limiter:o={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=oy(u,e),c={x:t,y:n},d=await a.detectOverflow(e,l),p=ov(oE(r)),m=oS(p),h=c[m],f=c[p];if(i){let e="y"===m?"top":"left",t="y"===m?"bottom":"right",n=h+d[e],r=h-d[t];h=om(n,op(h,r))}if(s){let e="y"===p?"top":"left",t="y"===p?"bottom":"right",n=f+d[e],r=f-d[t];f=om(n,op(f,r))}let g=o.fn({...e,[m]:h,[p]:f});return{...g,data:{x:g.x-t,y:g.y-n,enabled:{[m]:i,[p]:s}}}}}).name,fn:A.fn,options:[l,c]},P&&{name:(_={name:"flip",options:m=d={...et},async fn(e){var t,n,r,a,i,s,o,l;let c,u,d,{placement:p,middlewareData:h,rects:f,initialPlacement:g,platform:b,elements:y}=e,{mainAxis:E=!0,crossAxis:x=!0,fallbackPlacements:S,fallbackStrategy:T="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:A=!0,..._}=oy(m,e);if(null!=(t=h.arrow)&&t.alignmentOffset)return{};let k=oE(p),N=ov(g),w=oE(g)===g,I=await (null==b.isRTL?void 0:b.isRTL(y.floating)),C=S||(w||!A?[oI(g)]:(c=oI(g),[oA(g),c,oA(c)])),R="none"!==v;!S&&R&&C.push(...(u=ox(g),d=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?ok:o_;return t?o_:ok;case"left":case"right":return t?oN:ow;default:return[]}}(oE(g),"start"===v,I),u&&(d=d.map(e=>e+"-"+u),A&&(d=d.concat(d.map(oA)))),d));let O=[g,...C],L=await b.detectOverflow(e,_),D=[],P=(null==(n=h.flip)?void 0:n.overflows)||[];if(E&&D.push(L[k]),x){let e,t,n,r,a=(s=p,o=f,void 0===(l=I)&&(l=!1),e=ox(s),n=oT(t=oS(ov(s))),r="x"===t?e===(l?"end":"start")?"right":"left":"start"===e?"bottom":"top",o.reference[n]>o.floating[n]&&(r=oI(r)),[r,oI(r)]);D.push(L[a[0]],L[a[1]])}if(P=[...P,{placement:p,overflows:D}],!D.every(e=>e<=0)){let e=((null==(r=h.flip)?void 0:r.index)||0)+1,t=O[e];if(t&&("alignment"!==x||N===ov(t)||P.every(e=>ov(e.placement)!==N||e.overflows[0]>0)))return{data:{index:e,overflows:P},reset:{placement:t}};let n=null==(a=P.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:a.placement;if(!n)switch(T){case"bestFit":{let e=null==(i=P.filter(e=>{if(R){let t=ov(e.placement);return t===N||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:i[0];e&&(n=e);break}case"initialPlacement":n=g}if(p!==n)return{reset:{placement:n}}}return{}}}).name,fn:_.fn,options:[d,p]},{name:(k={name:"size",options:g=h={...et,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:a,height:i}=t.reference,s=e.floating.style;s.setProperty("--radix-popper-available-width",`${n}px`),s.setProperty("--radix-popper-available-height",`${r}px`),s.setProperty("--radix-popper-anchor-width",`${a}px`),s.setProperty("--radix-popper-anchor-height",`${i}px`)}},async fn(e){var t,n;let r,a,{placement:i,rects:s,platform:o,elements:l}=e,{apply:c=()=>{},...u}=oy(g,e),d=await o.detectOverflow(e,u),p=oE(i),m=ox(i),h="y"===ov(i),{width:f,height:b}=s.floating;"top"===p||"bottom"===p?(r=p,a=m===(await (null==o.isRTL?void 0:o.isRTL(l.floating))?"start":"end")?"left":"right"):(a=p,r="end"===m?"top":"bottom");let y=b-d.top-d.bottom,E=f-d.left-d.right,x=op(b-d[r],y),S=op(f-d[a],E),T=!e.middlewareData.shift,v=x,A=S;if(null!=(t=e.middlewareData.shift)&&t.enabled.x&&(A=E),null!=(n=e.middlewareData.shift)&&n.enabled.y&&(v=y),T&&!m){let e=om(d.left,0),t=om(d.right,0),n=om(d.top,0),r=om(d.bottom,0);h?A=f-2*(0!==e||0!==t?e+t:om(d.left,d.right)):v=b-2*(0!==n||0!==r?n+r:om(d.top,d.bottom))}await c({...e,availableWidth:A,availableHeight:v});let _=await o.getDimensions(l.floating);return f!==_.width||b!==_.height?{reset:{rects:!0}}:{}}}).name,fn:k.fn,options:[h,f]},W&&{name:(N={name:"arrow",options:E=b={element:W,padding:D},fn(e){let{element:t,padding:n}="function"==typeof E?E(e):E;return t&&({}).hasOwnProperty.call(t,"current")?null!=t.current?ld({element:t.current,padding:n}).fn(e):{}:t?ld({element:t,padding:n}).fn(e):{}}}).name,fn:N.fn,options:[b,y]},lD({arrowWidth:X,arrowHeight:Z}),U&&{name:(w={name:"hide",options:T=x={strategy:"referenceHidden",...et},async fn(e){let{rects:t,platform:n}=e,{strategy:r="referenceHidden",...a}=oy(T,e);switch(r){case"referenceHidden":{let r=oP(await n.detectOverflow(e,{...a,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:r,referenceHidden:oM(r)}}}case"escaped":{let r=oP(await n.detectOverflow(e,{...a,altBoundary:!0}),t.floating);return{data:{escapedOffsets:r,escaped:oM(r)}}}default:return{}}}}).name,fn:w.fn,options:[x,S]}]}),[ec,eu]=lP(ea),ed=ej(H);ew(()=>{ei&&ed?.()},[ei,ed]);let ep=es.arrow?.x,em=es.arrow?.y,eh=es.arrow?.centerOffset!==0,[ef,eg]=el.useState();return ew(()=>{$&&eg(window.getComputedStyle($).zIndex)},[$]),(0,eo.jsx)("div",{ref:en.setFloating,"data-radix-popper-content-wrapper":"",style:{...er,transform:ei?er.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ef,"--radix-popper-transform-origin":[es.transformOrigin?.x,es.transformOrigin?.y].join(" "),...es.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,eo.jsx)(lN,{scope:I,placedSide:ec,onArrowChange:Y,arrowX:ep,arrowY:em,shouldHideArrow:eh,children:(0,eo.jsx)(eF.div,{"data-side":ec,"data-align":eu,...z,ref:V,style:{...z.style,animation:ei?void 0:"none"}})})})});lI.displayName=lk;var lC="PopperArrow",lR={top:"bottom",right:"left",bottom:"top",left:"right"},lO=el.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,a=lw(lC,n),i=lR[a.placedSide];return(0,eo.jsx)("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:(0,eo.jsx)(lb,{...r,ref:t,style:{...r.style,display:"block"}})})});function lL(e){return null!==e}lO.displayName=lC;var lD=e=>({name:"transformOrigin",options:e,fn(t){let{placement:n,rects:r,middlewareData:a}=t,i=a.arrow?.centerOffset!==0,s=i?0:e.arrowWidth,o=i?0:e.arrowHeight,[l,c]=lP(n),u={start:"0%",center:"50%",end:"100%"}[c],d=(a.arrow?.x??0)+s/2,p=(a.arrow?.y??0)+o/2,m="",h="";return"bottom"===l?(m=i?u:`${d}px`,h=`${-o}px`):"top"===l?(m=i?u:`${d}px`,h=`${r.floating.height+o}px`):"right"===l?(m=`${-o}px`,h=i?u:`${p}px`):"left"===l&&(m=`${r.floating.width+o}px`,h=i?u:`${p}px`),{data:{x:m,y:h}}}});function lP(e){let[t,n="center"]=e.split("-");return[t,n]}var lM=Symbol("radix.slottable");function lF(e){return el.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===lM}var lj=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"});el.forwardRef((e,t)=>(0,eo.jsx)(eF.span,{...e,ref:t,style:{...lj,...e.style}})).displayName="VisuallyHidden";var lU=[" ","Enter","ArrowUp","ArrowDown"],lB=[" ","Enter"],lH="Select",[lz,lG,l$]=function(e){let t=e+"CollectionProvider",[n,r]=eN(t),[a,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=e=>{let{scope:t,children:n}=e,r=el.default.useRef(null),i=el.default.useRef(new Map).current;return(0,eo.jsx)(a,{scope:t,itemMap:i,collectionRef:r,children:n})};s.displayName=t;let o=e+"CollectionSlot",l=oi(o),c=el.default.forwardRef((e,t)=>{let{scope:n,children:r}=e,a=ek(t,i(o,n).collectionRef);return(0,eo.jsx)(l,{ref:a,children:r})});c.displayName=o;let u=e+"CollectionItemSlot",d="data-radix-collection-item",p=oi(u),m=el.default.forwardRef((e,t)=>{let{scope:n,children:r,...a}=e,s=el.default.useRef(null),o=ek(t,s),l=i(u,n);return el.default.useEffect(()=>(l.itemMap.set(s,{ref:s,...a}),()=>void l.itemMap.delete(s))),(0,eo.jsx)(p,{...{[d]:""},ref:o,children:r})});return m.displayName=u,[{Provider:s,Slot:c,ItemSlot:m},function(t){let n=i(e+"CollectionConsumer",t);return el.default.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${d}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},r]}(lH),[lq,lV]=eN(lH,[l$,lx]),lW=lx(),[lY,lK]=lq(lH),[lX,lZ]=lq(lH),lQ=e=>{let{__scopeSelect:t,children:n,open:r,defaultOpen:a,onOpenChange:i,value:s,defaultValue:o,onValueChange:l,dir:c,name:u,autoComplete:d,disabled:p,required:m,form:h}=e,f=lW(t),[g,b]=el.useState(null),[y,E]=el.useState(null),[x,S]=el.useState(!1),T=sR(c),[v,A]=eL({prop:r,defaultProp:a??!1,onChange:i,caller:lH}),[_,k]=eL({prop:s,defaultProp:o,onChange:l,caller:lH}),N=el.useRef(null),w=!g||h||!!g.closest("form"),[I,C]=el.useState(new Set),R=Array.from(I).map(e=>e.props.value).join(";");return(0,eo.jsx)(lv,{...f,children:(0,eo.jsxs)(lY,{required:m,scope:t,trigger:g,onTriggerChange:b,valueNode:y,onValueNodeChange:E,valueNodeHasChildren:x,onValueNodeHasChildrenChange:S,contentId:eR(),value:_,onValueChange:k,open:v,onOpenChange:A,dir:T,triggerPointerDownPosRef:N,disabled:p,children:[(0,eo.jsx)(lz.Provider,{scope:t,children:(0,eo.jsx)(lX,{scope:e.__scopeSelect,onNativeOptionAdd:el.useCallback(e=>{C(t=>new Set(t).add(e))},[]),onNativeOptionRemove:el.useCallback(e=>{C(t=>{let n=new Set(t);return n.delete(e),n})},[]),children:n})}),w?(0,eo.jsxs)(cw,{"aria-hidden":!0,required:m,tabIndex:-1,name:u,autoComplete:d,value:_,onChange:e=>k(e.target.value),disabled:p,form:h,children:[void 0===_?(0,eo.jsx)("option",{value:""}):null,Array.from(I)]},R):null]})})};lQ.displayName=lH;var lJ="SelectTrigger",l0=el.forwardRef((e,t)=>{let{__scopeSelect:n,disabled:r=!1,...a}=e,i=lW(n),s=lK(lJ,n),o=s.disabled||r,l=ek(t,s.onTriggerChange),c=lG(n),u=el.useRef("touch"),[d,p,m]=cC(e=>{let t=c().filter(e=>!e.disabled),n=t.find(e=>e.value===s.value),r=cR(t,e,n);void 0!==r&&s.onValueChange(r.value)}),h=e=>{o||(s.onOpenChange(!0),m()),e&&(s.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,eo.jsx)(l_,{asChild:!0,...i,children:(0,eo.jsx)(eF.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:o,"data-disabled":o?"":void 0,"data-placeholder":cI(s.value)?"":void 0,...a,ref:l,onClick:ev(a.onClick,e=>{e.currentTarget.focus(),"mouse"!==u.current&&h(e)}),onPointerDown:ev(a.onPointerDown,e=>{u.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(h(e),e.preventDefault())}),onKeyDown:ev(a.onKeyDown,e=>{let t=""!==d.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||p(e.key),(!t||" "!==e.key)&&lU.includes(e.key)&&(h(),e.preventDefault())})})})});l0.displayName=lJ;var l1="SelectValue",l2=el.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:a,children:i,placeholder:s="",...o}=e,l=lK(l1,n),{onValueNodeHasChildrenChange:c}=l,u=void 0!==i,d=ek(t,l.onValueNodeChange);return ew(()=>{c(u)},[c,u]),(0,eo.jsx)(eF.span,{...o,ref:d,style:{pointerEvents:"none"},children:cI(l.value)?(0,eo.jsx)(eo.Fragment,{children:s}):i})});l2.displayName=l1;var l3=el.forwardRef((e,t)=>{let{__scopeSelect:n,children:r,...a}=e;return(0,eo.jsx)(eF.span,{"aria-hidden":!0,...a,ref:t,children:r||"▼"})});l3.displayName="SelectIcon";var l4=e=>(0,eo.jsx)(eJ,{asChild:!0,...e});l4.displayName="SelectPortal";var l5="SelectContent",l6=el.forwardRef((e,t)=>{let n=lK(l5,e.__scopeSelect),[r,a]=el.useState();return(ew(()=>{a(new DocumentFragment)},[]),n.open)?(0,eo.jsx)(ce,{...e,ref:t}):r?eD.createPortal((0,eo.jsx)(l9,{scope:e.__scopeSelect,children:(0,eo.jsx)(lz.Slot,{scope:e.__scopeSelect,children:(0,eo.jsx)("div",{children:e.children})})}),r):null});l6.displayName=l5;var[l9,l8]=lq(l5),l7=((b=el.forwardRef((e,t)=>{let{children:n,...r}=e;if(el.isValidElement(n)){var a;let e,i,s=(a=n,(i=(e=Object.getOwnPropertyDescriptor(a.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.ref:(i=(e=Object.getOwnPropertyDescriptor(a,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.props.ref:a.props.ref||a.ref),o=function(e,t){let n={...t};for(let r in t){let a=e[r],i=t[r];/^on[A-Z]/.test(r)?a&&i?n[r]=(...e)=>{let t=i(...e);return a(...e),t}:a&&(n[r]=a):"style"===r?n[r]={...a,...i}:"className"===r&&(n[r]=[a,i].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==el.Fragment&&(o.ref=t?e_(t,s):s),el.cloneElement(n,o)}return el.Children.count(n)>1?el.Children.only(null):null})).displayName="SelectContent.RemoveScroll.SlotClone",p=b,(m=el.forwardRef((e,t)=>{let{children:n,...r}=e,a=el.Children.toArray(n),i=a.find(lF);if(i){let e=i.props.children,n=a.map(t=>t!==i?t:el.Children.count(e)>1?el.Children.only(null):el.isValidElement(e)?e.props.children:null);return(0,eo.jsx)(p,{...r,ref:t,children:el.isValidElement(e)?el.cloneElement(e,void 0,n):null})}return(0,eo.jsx)(p,{...r,ref:t,children:n})})).displayName="SelectContent.RemoveScroll.Slot",m),ce=el.forwardRef((e,t)=>{let{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:a,onEscapeKeyDown:i,onPointerDownOutside:s,side:o,sideOffset:l,align:c,alignOffset:u,arrowPadding:d,collisionBoundary:p,collisionPadding:m,sticky:h,hideWhenDetached:f,avoidCollisions:g,...b}=e,y=lK(l5,n),[E,x]=el.useState(null),[S,T]=el.useState(null),v=ek(t,e=>x(e)),[A,_]=el.useState(null),[k,N]=el.useState(null),w=lG(n),[I,C]=el.useState(!1),R=el.useRef(!1);el.useEffect(()=>{if(E)return tB(E)},[E]),e3();let O=el.useCallback(e=>{let[t,...n]=w().map(e=>e.ref.current),[r]=n.slice(-1),a=document.activeElement;for(let n of e)if(n===a||(n?.scrollIntoView({block:"nearest"}),n===t&&S&&(S.scrollTop=0),n===r&&S&&(S.scrollTop=S.scrollHeight),n?.focus(),document.activeElement!==a))return},[w,S]),L=el.useCallback(()=>O([A,E]),[O,A,E]);el.useEffect(()=>{I&&L()},[I,L]);let{onOpenChange:D,triggerPointerDownPosRef:P}=y;el.useEffect(()=>{if(E){let e={x:0,y:0},t=t=>{e={x:Math.abs(Math.round(t.pageX)-(P.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(P.current?.y??0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():E.contains(n.target)||D(!1),document.removeEventListener("pointermove",t),P.current=null};return null!==P.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}},[E,D,P]),el.useEffect(()=>{let e=()=>D(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[D]);let[M,F]=cC(e=>{let t=w().filter(e=>!e.disabled),n=t.find(e=>e.ref.current===document.activeElement),r=cR(t,e,n);r&&setTimeout(()=>r.ref.current.focus())}),j=el.useCallback((e,t,n)=>{let r=!R.current&&!n;(void 0!==y.value&&y.value===t||r)&&(_(e),r&&(R.current=!0))},[y.value]),U=el.useCallback(()=>E?.focus(),[E]),B=el.useCallback((e,t,n)=>{let r=!R.current&&!n;(void 0!==y.value&&y.value===t||r)&&N(e)},[y.value]),H="popper"===r?cn:ct,z=H===cn?{side:o,sideOffset:l,align:c,alignOffset:u,arrowPadding:d,collisionBoundary:p,collisionPadding:m,sticky:h,hideWhenDetached:f,avoidCollisions:g}:{};return(0,eo.jsx)(l9,{scope:n,content:E,viewport:S,onViewportChange:T,itemRefCallback:j,selectedItem:A,onItemLeave:U,itemTextRefCallback:B,focusSelectedItem:L,selectedItemText:k,position:r,isPositioned:I,searchRef:M,children:(0,eo.jsx)(tL,{as:l7,allowPinchZoom:!0,children:(0,eo.jsx)(eW,{asChild:!0,trapped:y.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:ev(a,e=>{y.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,eo.jsx)(eH,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>y.onOpenChange(!1),children:(0,eo.jsx)(H,{role:"listbox",id:y.contentId,"data-state":y.open?"open":"closed",dir:y.dir,onContextMenu:e=>e.preventDefault(),...b,...z,onPlaced:()=>C(!0),ref:v,style:{display:"flex",flexDirection:"column",outline:"none",...b.style},onKeyDown:ev(b.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||F(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=w().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){let n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>O(t)),e.preventDefault()}})})})})})})});ce.displayName="SelectContentImpl";var ct=el.forwardRef((e,t)=>{let{__scopeSelect:n,onPlaced:r,...a}=e,i=lK(l5,n),s=l8(l5,n),[o,l]=el.useState(null),[c,u]=el.useState(null),d=ek(t,e=>u(e)),p=lG(n),m=el.useRef(!1),h=el.useRef(!0),{viewport:f,selectedItem:g,selectedItemText:b,focusSelectedItem:y}=s,E=el.useCallback(()=>{if(i.trigger&&i.valueNode&&o&&c&&f&&g&&b){let e=i.trigger.getBoundingClientRect(),t=c.getBoundingClientRect(),n=i.valueNode.getBoundingClientRect(),a=b.getBoundingClientRect();if("rtl"!==i.dir){let r=a.left-t.left,i=n.left-r,s=e.left-i,l=e.width+s,c=Math.max(l,t.width),u=sO(i,[10,Math.max(10,window.innerWidth-10-c)]);o.style.minWidth=l+"px",o.style.left=u+"px"}else{let r=t.right-a.right,i=window.innerWidth-n.right-r,s=window.innerWidth-e.right-i,l=e.width+s,c=Math.max(l,t.width),u=sO(i,[10,Math.max(10,window.innerWidth-10-c)]);o.style.minWidth=l+"px",o.style.right=u+"px"}let s=p(),l=window.innerHeight-20,u=f.scrollHeight,d=window.getComputedStyle(c),h=parseInt(d.borderTopWidth,10),y=parseInt(d.paddingTop,10),E=parseInt(d.borderBottomWidth,10),x=h+y+u+parseInt(d.paddingBottom,10)+E,S=Math.min(5*g.offsetHeight,x),T=window.getComputedStyle(f),v=parseInt(T.paddingTop,10),A=parseInt(T.paddingBottom,10),_=e.top+e.height/2-10,k=g.offsetHeight/2,N=h+y+(g.offsetTop+k);if(N<=_){let e=s.length>0&&g===s[s.length-1].ref.current;o.style.bottom="0px";let t=Math.max(l-_,k+(e?A:0)+(c.clientHeight-f.offsetTop-f.offsetHeight)+E);o.style.height=N+t+"px"}else{let e=s.length>0&&g===s[0].ref.current;o.style.top="0px";let t=Math.max(_,h+f.offsetTop+(e?v:0)+k);o.style.height=t+(x-N)+"px",f.scrollTop=N-_+f.offsetTop}o.style.margin="10px 0",o.style.minHeight=S+"px",o.style.maxHeight=l+"px",r?.(),requestAnimationFrame(()=>m.current=!0)}},[p,i.trigger,i.valueNode,o,c,f,g,b,i.dir,r]);ew(()=>E(),[E]);let[x,S]=el.useState();ew(()=>{c&&S(window.getComputedStyle(c).zIndex)},[c]);let T=el.useCallback(e=>{e&&!0===h.current&&(E(),y?.(),h.current=!1)},[E,y]);return(0,eo.jsx)(cr,{scope:n,contentWrapper:o,shouldExpandOnScrollRef:m,onScrollButtonChange:T,children:(0,eo.jsx)("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:x},children:(0,eo.jsx)(eF.div,{...a,ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}})})})});ct.displayName="SelectItemAlignedPosition";var cn=el.forwardRef((e,t)=>{let{__scopeSelect:n,align:r="start",collisionPadding:a=10,...i}=e,s=lW(n);return(0,eo.jsx)(lI,{...s,...i,ref:t,align:r,collisionPadding:a,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});cn.displayName="SelectPopperPosition";var[cr,ca]=lq(l5,{}),ci="SelectViewport",cs=el.forwardRef((e,t)=>{let{__scopeSelect:n,nonce:r,...a}=e,i=l8(ci,n),s=ca(ci,n),o=ek(t,i.onViewportChange),l=el.useRef(0);return(0,eo.jsxs)(eo.Fragment,{children:[(0,eo.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),(0,eo.jsx)(lz.Slot,{scope:n,children:(0,eo.jsx)(eF.div,{"data-radix-select-viewport":"",role:"presentation",...a,ref:o,style:{position:"relative",flex:1,overflow:"hidden auto",...a.style},onScroll:ev(a.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=s;if(r?.current&&n){let e=Math.abs(l.current-t.scrollTop);if(e>0){let r=window.innerHeight-20,a=Math.max(parseFloat(n.style.minHeight),parseFloat(n.style.height));if(a<r){let i=a+e,s=Math.min(r,i),o=i-s;n.style.height=s+"px","0px"===n.style.bottom&&(t.scrollTop=o>0?o:0,n.style.justifyContent="flex-end")}}}l.current=t.scrollTop})})})]})});cs.displayName=ci;var co="SelectGroup",[cl,cc]=lq(co),cu=el.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,a=eR();return(0,eo.jsx)(cl,{scope:n,id:a,children:(0,eo.jsx)(eF.div,{role:"group","aria-labelledby":a,...r,ref:t})})});cu.displayName=co;var cd="SelectLabel",cp=el.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,a=cc(cd,n);return(0,eo.jsx)(eF.div,{id:a.id,...r,ref:t})});cp.displayName=cd;var cm="SelectItem",[ch,cf]=lq(cm),cg=el.forwardRef((e,t)=>{let{__scopeSelect:n,value:r,disabled:a=!1,textValue:i,...s}=e,o=lK(cm,n),l=l8(cm,n),c=o.value===r,[u,d]=el.useState(i??""),[p,m]=el.useState(!1),h=ek(t,e=>l.itemRefCallback?.(e,r,a)),f=eR(),g=el.useRef("touch"),b=()=>{a||(o.onValueChange(r),o.onOpenChange(!1))};if(""===r)throw Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return(0,eo.jsx)(ch,{scope:n,value:r,disabled:a,textId:f,isSelected:c,onItemTextChange:el.useCallback(e=>{d(t=>t||(e?.textContent??"").trim())},[]),children:(0,eo.jsx)(lz.ItemSlot,{scope:n,value:r,disabled:a,textValue:u,children:(0,eo.jsx)(eF.div,{role:"option","aria-labelledby":f,"data-highlighted":p?"":void 0,"aria-selected":c&&p,"data-state":c?"checked":"unchecked","aria-disabled":a||void 0,"data-disabled":a?"":void 0,tabIndex:a?void 0:-1,...s,ref:h,onFocus:ev(s.onFocus,()=>m(!0)),onBlur:ev(s.onBlur,()=>m(!1)),onClick:ev(s.onClick,()=>{"mouse"!==g.current&&b()}),onPointerUp:ev(s.onPointerUp,()=>{"mouse"===g.current&&b()}),onPointerDown:ev(s.onPointerDown,e=>{g.current=e.pointerType}),onPointerMove:ev(s.onPointerMove,e=>{g.current=e.pointerType,a?l.onItemLeave?.():"mouse"===g.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:ev(s.onPointerLeave,e=>{e.currentTarget===document.activeElement&&l.onItemLeave?.()}),onKeyDown:ev(s.onKeyDown,e=>{(l.searchRef?.current===""||" "!==e.key)&&(lB.includes(e.key)&&b()," "===e.key&&e.preventDefault())})})})})});cg.displayName=cm;var cb="SelectItemText",cy=el.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:a,...i}=e,s=lK(cb,n),o=l8(cb,n),l=cf(cb,n),c=lZ(cb,n),[u,d]=el.useState(null),p=ek(t,e=>d(e),l.onItemTextChange,e=>o.itemTextRefCallback?.(e,l.value,l.disabled)),m=u?.textContent,h=el.useMemo(()=>(0,eo.jsx)("option",{value:l.value,disabled:l.disabled,children:m},l.value),[l.disabled,l.value,m]),{onNativeOptionAdd:f,onNativeOptionRemove:g}=c;return ew(()=>(f(h),()=>g(h)),[f,g,h]),(0,eo.jsxs)(eo.Fragment,{children:[(0,eo.jsx)(eF.span,{id:l.textId,...i,ref:p}),l.isSelected&&s.valueNode&&!s.valueNodeHasChildren?eD.createPortal(i.children,s.valueNode):null]})});cy.displayName=cb;var cE="SelectItemIndicator",cx=el.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return cf(cE,n).isSelected?(0,eo.jsx)(eF.span,{"aria-hidden":!0,...r,ref:t}):null});cx.displayName=cE;var cS="SelectScrollUpButton",cT=el.forwardRef((e,t)=>{let n=l8(cS,e.__scopeSelect),r=ca(cS,e.__scopeSelect),[a,i]=el.useState(!1),s=ek(t,r.onScrollButtonChange);return ew(()=>{if(n.viewport&&n.isPositioned){let e=function(){i(t.scrollTop>0)},t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),a?(0,eo.jsx)(c_,{...e,ref:s,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null});cT.displayName=cS;var cv="SelectScrollDownButton",cA=el.forwardRef((e,t)=>{let n=l8(cv,e.__scopeSelect),r=ca(cv,e.__scopeSelect),[a,i]=el.useState(!1),s=ek(t,r.onScrollButtonChange);return ew(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;i(Math.ceil(t.scrollTop)<e)},t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),a?(0,eo.jsx)(c_,{...e,ref:s,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null});cA.displayName=cv;var c_=el.forwardRef((e,t)=>{let{__scopeSelect:n,onAutoScroll:r,...a}=e,i=l8("SelectScrollButton",n),s=el.useRef(null),o=lG(n),l=el.useCallback(()=>{null!==s.current&&(window.clearInterval(s.current),s.current=null)},[]);return el.useEffect(()=>()=>l(),[l]),ew(()=>{let e=o().find(e=>e.ref.current===document.activeElement);e?.ref.current?.scrollIntoView({block:"nearest"})},[o]),(0,eo.jsx)(eF.div,{"aria-hidden":!0,...a,ref:t,style:{flexShrink:0,...a.style},onPointerDown:ev(a.onPointerDown,()=>{null===s.current&&(s.current=window.setInterval(r,50))}),onPointerMove:ev(a.onPointerMove,()=>{i.onItemLeave?.(),null===s.current&&(s.current=window.setInterval(r,50))}),onPointerLeave:ev(a.onPointerLeave,()=>{l()})})}),ck=el.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return(0,eo.jsx)(eF.div,{"aria-hidden":!0,...r,ref:t})});ck.displayName="SelectSeparator";var cN="SelectArrow";el.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,a=lW(n),i=lK(cN,n),s=l8(cN,n);return i.open&&"popper"===s.position?(0,eo.jsx)(lO,{...a,...r,ref:t}):null}).displayName=cN;var cw=el.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{let a,i=el.useRef(null),s=ek(r,i),o=(a=el.useRef({value:t,previous:t}),el.useMemo(()=>(a.current.value!==t&&(a.current.previous=a.current.value,a.current.value=t),a.current.previous),[t]));return el.useEffect(()=>{let e=i.current;if(!e)return;let n=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value").set;if(o!==t&&n){let r=new Event("change",{bubbles:!0});n.call(e,t),e.dispatchEvent(r)}},[o,t]),(0,eo.jsx)(eF.select,{...n,style:{...lj,...n.style},ref:s,defaultValue:t})});function cI(e){return""===e||void 0===e}function cC(e){let t=ej(e),n=el.useRef(""),r=el.useRef(0),a=el.useCallback(e=>{let a=n.current+e;t(a),function e(t){n.current=t,window.clearTimeout(r.current),""!==t&&(r.current=window.setTimeout(()=>e(""),1e3))}(a)},[t]),i=el.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return el.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,a,i]}function cR(e,t,n){var r,a;let i=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,s=n?e.indexOf(n):-1,o=(r=e,a=Math.max(s,0),r.map((e,t)=>r[(a+t)%r.length]));1===i.length&&(o=o.filter(e=>e!==n));let l=o.find(e=>e.textValue.toLowerCase().startsWith(i.toLowerCase()));return l!==n?l:void 0}cw.displayName="SelectBubbleInput";let cO=nf("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),cL=nf("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),cD=nf("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]),cP=el.forwardRef(({className:e,children:t,...n},r)=>(0,eo.jsxs)(l0,{ref:r,className:n3("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[placeholder]:text-muted-foreground [&>span]:line-clamp-1",e),...n,children:[t,(0,eo.jsx)(l3,{asChild:!0,children:(0,eo.jsx)(cL,{className:"h-4 w-4 opacity-50"})})]}));cP.displayName=l0.displayName;let cM=el.forwardRef(({className:e,...t},n)=>(0,eo.jsx)(cT,{ref:n,className:n3("flex cursor-default items-center justify-center py-1",e),...t,children:(0,eo.jsx)(cD,{className:"h-4 w-4"})}));cM.displayName=cT.displayName;let cF=el.forwardRef(({className:e,...t},n)=>(0,eo.jsx)(cA,{ref:n,className:n3("flex cursor-default items-center justify-center py-1",e),...t,children:(0,eo.jsx)(cL,{className:"h-4 w-4"})}));cF.displayName=cA.displayName;let cj=el.forwardRef(({className:e,children:t,position:n="popper",...r},a)=>(0,eo.jsx)(l4,{children:(0,eo.jsxs)(l6,{ref:a,className:n3("relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] origin-[--radix-select-content-transform-origin] overflow-y-auto overflow-x-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===n&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:[(0,eo.jsx)(cM,{}),(0,eo.jsx)(cs,{className:n3("p-1","popper"===n&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),(0,eo.jsx)(cF,{})]})}));cj.displayName=l6.displayName;let cU=el.forwardRef(({className:e,...t},n)=>(0,eo.jsx)(cp,{ref:n,className:n3("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));cU.displayName=cp.displayName;let cB=el.forwardRef(({className:e,children:t,...n},r)=>(0,eo.jsxs)(cg,{ref:r,className:n3("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[(0,eo.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,eo.jsx)(cx,{children:(0,eo.jsx)(cO,{className:"h-4 w-4"})})}),(0,eo.jsx)(cy,{children:t})]}));cB.displayName=cg.displayName;let cH=el.forwardRef(({className:e,...t},n)=>(0,eo.jsx)(ck,{ref:n,className:n3("-mx-1 my-1 h-px bg-muted",e),...t}));function cz(e,t=new Date){if(!Number.isFinite(e.getTime()))return"—";let n=Math.floor((t.getTime()-e.getTime())/864e5);return n<=0?new Intl.DateTimeFormat(void 0,{hour:"2-digit",minute:"2-digit",hourCycle:"h23"}).format(e):1===n?"Yesterday":n<7?new Intl.DateTimeFormat(void 0,{weekday:"long"}).format(e):new Intl.DateTimeFormat(void 0,{month:"2-digit",day:"2-digit"}).format(e)}cH.displayName=ck.displayName;var cG=e.i(802239);e.s(["ERROR_REVALIDATE_EVENT",0,3,"FOCUS_EVENT",0,0,"MUTATE_EVENT",0,2,"RECONNECT_EVENT",0,1],211671);var c$=Object.prototype.hasOwnProperty;let cq=new WeakMap,cV=()=>{},cW=cV(),cY=Object,cK=e=>e===cW,cX=(e,t)=>({...e,...t}),cZ={},cQ={},cJ="undefined",c0=typeof window!=cJ,c1=typeof document!=cJ,c2=c0&&"Deno"in window,c3=(e,t)=>{let n=cq.get(e);return[()=>!cK(t)&&e.get(t)||cZ,r=>{if(!cK(t)){let a=e.get(t);t in cQ||(cQ[t]=a),n[5](t,cX(a,r),a||cZ)}},n[6],()=>!cK(t)&&t in cQ?cQ[t]:!cK(t)&&e.get(t)||cZ]},c4=!0,[c5,c6]=c0&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[cV,cV],c9={initFocus:e=>(c1&&document.addEventListener("visibilitychange",e),c5("focus",e),()=>{c1&&document.removeEventListener("visibilitychange",e),c6("focus",e)}),initReconnect:e=>{let t=()=>{c4=!0,e()},n=()=>{c4=!1};return c5("online",t),c5("offline",n),()=>{c6("online",t),c6("offline",n)}}},c8=!el.default.useId,c7=!c0||c2,ue=c7?el.useEffect:el.useLayoutEffect,ut="u">typeof navigator&&navigator.connection,un=!c7&&ut&&(["slow-2g","2g"].includes(ut.effectiveType)||ut.saveData),ur=new WeakMap,ua=(e,t)=>e===`[object ${t}]`,ui=0,us=e=>{let t,n,r=typeof e,a=cY.prototype.toString.call(e),i=ua(a,"Date"),s=ua(a,"RegExp"),o=ua(a,"Object");if(cY(e)!==e||i||s)t=i?e.toJSON():"symbol"==r?e.toString():"string"==r?JSON.stringify(e):""+e;else{if(t=ur.get(e))return t;if(t=++ui+"~",ur.set(e,t),Array.isArray(e)){for(n=0,t="@";n<e.length;n++)t+=us(e[n])+",";ur.set(e,t)}if(o){t="#";let r=cY.keys(e).sort();for(;!cK(n=r.pop());)cK(e[n])||(t+=n+":"+us(e[n])+",");ur.set(e,t)}}return t},uo=e=>{if("function"==typeof e)try{e=e()}catch(t){e=""}let t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?us(e):"",t]},ul=0,uc=()=>++ul;async function uu(...e){let[t,n,r,a]=e,i=cX({populateCache:!0,throwOnError:!0},"boolean"==typeof a?{revalidate:a}:a||{}),s=i.populateCache,o=i.rollbackOnError,l=i.optimisticData,c=i.throwOnError;if("function"==typeof n){let e=[];for(let r of t.keys())!/^\$(inf|sub)\$/.test(r)&&n(t.get(r)._k)&&e.push(r);return Promise.all(e.map(u))}return u(n);async function u(n){let a,[u]=uo(n);if(!u)return;let[d,p]=c3(t,u),[m,h,f,g]=cq.get(t),b=()=>{let e=m[u];return("function"==typeof i.revalidate?i.revalidate(d().data,n):!1!==i.revalidate)&&(delete f[u],delete g[u],e&&e[0])?e[0](2).then(()=>d().data):d().data};if(e.length<3)return b();let y=r,E=!1,x=uc();h[u]=[x,0];let S=!cK(l),T=d(),v=T.data,A=T._c,_=cK(A)?v:A;if(S&&p({data:l="function"==typeof l?l(_,v):l,_c:_}),"function"==typeof y)try{y=y(_)}catch(e){a=e,E=!0}if(y&&"function"==typeof y.then){let e;if(y=await y.catch(e=>{a=e,E=!0}),x!==h[u][0]){if(E)throw a;return y}E&&S&&(e=a,"function"==typeof o?o(e):!1!==o)&&(s=!0,p({data:_,_c:cW}))}if(s&&!E&&("function"==typeof s?p({data:s(y,_),error:cW,_c:cW}):p({data:y,error:cW,_c:cW})),h[u][1]=uc(),Promise.resolve(b()).then(()=>{p({_c:cW})}),E){if(c)throw a;return}return y}}let ud=(e,t)=>{for(let n in e)e[n][0]&&e[n][0](t)},up=(e,t)=>{if(!cq.has(e)){let n=cX(c9,t),r=Object.create(null),a=uu.bind(cW,e),i=cV,s=Object.create(null),o=(e,t)=>{let n=s[e]||[];return s[e]=n,n.push(t),()=>n.splice(n.indexOf(t),1)},l=(t,n,r)=>{e.set(t,n);let a=s[t];if(a)for(let e of a)e(n,r)},c=()=>{if(!cq.has(e)&&(cq.set(e,[r,Object.create(null),Object.create(null),Object.create(null),a,l,o]),!c7)){let t=n.initFocus(setTimeout.bind(cW,ud.bind(cW,r,0))),a=n.initReconnect(setTimeout.bind(cW,ud.bind(cW,r,1)));i=()=>{t&&t(),a&&a(),cq.delete(e)}}};return c(),[e,a,c,i]}return[e,cq.get(e)[4]]},[um,uh]=up(new Map),uf=cX({onLoadingSlow:cV,onSuccess:cV,onError:cV,onErrorRetry:(e,t,n,r,a)=>{let i=n.errorRetryCount,s=a.retryCount,o=~~((Math.random()+.5)*(1<<(s<8?s:8)))*n.errorRetryInterval;(cK(i)||!(s>i))&&setTimeout(r,o,a)},onDiscarded:cV,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:un?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:un?5e3:3e3,compare:function e(t,n){var r,a;if(t===n)return!0;if(t&&n&&(r=t.constructor)===n.constructor){if(r===Date)return t.getTime()===n.getTime();if(r===RegExp)return t.toString()===n.toString();if(r===Array){if((a=t.length)===n.length)for(;a--&&e(t[a],n[a]););return -1===a}if(!r||"object"==typeof t){for(r in a=0,t)if(c$.call(t,r)&&++a&&!c$.call(n,r)||!(r in n)||!e(t[r],n[r]))return!1;return Object.keys(n).length===a}}return t!=t&&n!=n},isPaused:()=>!1,cache:um,mutate:uh,fallback:{}},{isOnline:()=>c4,isVisible:()=>{let e=c1&&document.visibilityState;return cK(e)||"hidden"!==e}}),ug=(e,t)=>{let n=cX(e,t);if(t){let{use:r,fallback:a}=e,{use:i,fallback:s}=t;r&&i&&(n.use=r.concat(i)),a&&s&&(n.fallback=cX(a,s))}return n},ub=(0,el.createContext)({});var uy=e.i(211671);let uE="$inf$",ux=c0&&window.__SWR_DEVTOOLS_USE__,uS=ux?window.__SWR_DEVTOOLS_USE__:[],uT=e=>"function"==typeof e[1]?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],uv=()=>{let e=(0,el.useContext)(ub);return(0,el.useMemo)(()=>cX(uf,e),[e])},uA=uS.concat(e=>(t,n,r)=>{let a=n&&((...e)=>{let[r]=uo(t),[,,,a]=cq.get(um);if(r.startsWith(uE))return n(...e);let i=a[r];return cK(i)?n(...e):(delete a[r],i)});return e(t,a,r)}),u_=(e,t)=>(...n)=>{let[r,a,i]=uT(n),s=(i.use||[]).concat(t);return e(r,a,{...i,use:s})};ux&&(window.__SWR_DEVTOOLS_REACT__=el.default);let uk=()=>{},uN=uk(),uw=(new WeakMap,el.default.use||(e=>{switch(e.status){case"pending":throw e;case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}})),uI={dedupe:!0},uC=Promise.resolve(cW),uR=()=>cV;cY.defineProperty(e=>{let{value:t}=e,n=(0,el.useContext)(ub),r="function"==typeof t,a=(0,el.useMemo)(()=>r?t(n):t,[r,n,t]),i=(0,el.useMemo)(()=>r?a:ug(n,a),[r,n,a]),s=a&&a.provider,o=(0,el.useRef)(cW);s&&!o.current&&(o.current=up(s(i.cache||um),a));let l=o.current;return l&&(i.cache=l[0],i.mutate=l[1]),ue(()=>{if(l)return l[2]&&l[2](),l[3]},[]),(0,el.createElement)(ub.Provider,cX(e,{value:i}))},"defaultValue",{value:uf});let uO=(h=(e,t,n)=>{let{cache:r,compare:a,suspense:i,fallbackData:s,revalidateOnMount:o,revalidateIfStale:l,refreshInterval:c,refreshWhenHidden:u,refreshWhenOffline:d,keepPreviousData:p,strictServerPrefetchWarning:m}=n,[h,f,g,b]=cq.get(r),[y,E]=uo(e),x=(0,el.useRef)(!1),S=(0,el.useRef)(!1),T=(0,el.useRef)(y),v=(0,el.useRef)(t),A=(0,el.useRef)(n),_=()=>A.current.isVisible()&&A.current.isOnline(),[k,N,w,I]=c3(r,y),C=(0,el.useRef)({}).current,R=cK(s)?cK(n.fallback)?cW:n.fallback[y]:s,O=(e,t)=>{for(let n in C)if("data"===n){if(!a(e[n],t[n])&&(!cK(e[n])||!a(H,t[n])))return!1}else if(t[n]!==e[n])return!1;return!0},L=!x.current,D=(0,el.useMemo)(()=>{let e=k(),n=I(),r=e=>{let n=cX(e);return(delete n._k,(()=>{if(!y||!t||A.current.isPaused())return!1;if(L&&!cK(o))return o;let e=cK(R)?n.data:R;return cK(e)||l})())?{isValidating:!0,isLoading:!0,...n}:n},a=r(e),i=e===n?a:r(n),s=a;return[()=>{let e=r(k());return O(e,s)?(s.data=e.data,s.isLoading=e.isLoading,s.isValidating=e.isValidating,s.error=e.error,s):(s=e,e)},()=>i]},[r,y]),P=(0,cG.useSyncExternalStore)((0,el.useCallback)(e=>w(y,(t,n)=>{O(n,t)||e()}),[r,y]),D[0],D[1]),M=h[y]&&h[y].length>0,F=P.data,j=cK(F)?R&&"function"==typeof R.then?uw(R):R:F,U=P.error,B=(0,el.useRef)(j),H=p?cK(F)?cK(B.current)?j:B.current:F:j,z=y&&cK(j),G=(0,el.useRef)(null);c7||(0,cG.useSyncExternalStore)(uR,()=>(G.current=!1,G),()=>(G.current=!0,G));let $=G.current;m&&$&&!i&&z&&console.warn(`Missing pre-initiated data for serialized key "${y}" during server-side rendering. Data fetching should be initiated on the server and provided to SWR via fallback data. You can set "strictServerPrefetchWarning: false" to disable this warning.`);let q=!(!y||!t||A.current.isPaused())&&(!M||!!cK(U))&&(L&&!cK(o)?o:i?!cK(j)&&l:cK(j)||l),V=L&&q,W=cK(P.isValidating)?V:P.isValidating,Y=cK(P.isLoading)?V:P.isLoading,K=(0,el.useCallback)(async e=>{let t,r,i=v.current;if(!y||!i||S.current||A.current.isPaused())return!1;let s=!0,o=e||{},l=!g[y]||!o.dedupe,c=()=>c8?!S.current&&y===T.current&&x.current:y===T.current,u={isValidating:!1,isLoading:!1},d=()=>{N(u)},p=()=>{let e=g[y];e&&e[1]===r&&delete g[y]},m={isValidating:!0};cK(k().data)&&(m.isLoading=!0);try{if(l&&(N(m),n.loadingTimeout&&cK(k().data)&&setTimeout(()=>{s&&c()&&A.current.onLoadingSlow(y,n)},n.loadingTimeout),g[y]=[i(E),uc()]),[t,r]=g[y],t=await t,l&&setTimeout(p,n.dedupingInterval),!g[y]||g[y][1]!==r)return l&&c()&&A.current.onDiscarded(y),!1;u.error=cW;let e=f[y];if(!cK(e)&&(r<=e[0]||r<=e[1]||0===e[1]))return d(),l&&c()&&A.current.onDiscarded(y),!1;let o=k().data;u.data=a(o,t)?o:t,l&&c()&&A.current.onSuccess(t,y,n)}catch(n){p();let e=A.current,{shouldRetryOnError:t}=e;!e.isPaused()&&(u.error=n,l&&c())&&(e.onError(n,y,e),(!0===t||"function"==typeof t&&t(n))&&(!A.current.revalidateOnFocus||!A.current.revalidateOnReconnect||_())&&e.onErrorRetry(n,y,e,e=>{let t=h[y];t&&t[0]&&t[0](uy.ERROR_REVALIDATE_EVENT,e)},{retryCount:(o.retryCount||0)+1,dedupe:!0}))}return s=!1,d(),!0},[y,r]),X=(0,el.useCallback)((...e)=>uu(r,T.current,...e),[]);if(ue(()=>{v.current=t,A.current=n,cK(F)||(B.current=F)}),ue(()=>{var e;let t;if(!y)return;let n=K.bind(cW,uI),r=0;A.current.revalidateOnFocus&&(r=Date.now()+A.current.focusThrottleInterval);let a=(e=(e,t={})=>{if(e==uy.FOCUS_EVENT){let e=Date.now();A.current.revalidateOnFocus&&e>r&&_()&&(r=e+A.current.focusThrottleInterval,n())}else if(e==uy.RECONNECT_EVENT)A.current.revalidateOnReconnect&&_()&&n();else if(e==uy.MUTATE_EVENT)return K();else if(e==uy.ERROR_REVALIDATE_EVENT)return K(t)},(t=h[y]||(h[y]=[])).push(e),()=>{let n=t.indexOf(e);n>=0&&(t[n]=t[t.length-1],t.pop())});if(S.current=!1,T.current=y,x.current=!0,N({_k:E}),q&&!g[y])if(cK(j)||c7)n();else c0&&typeof window.requestAnimationFrame!=cJ?window.requestAnimationFrame(n):setTimeout(n,1);return()=>{S.current=!0,a()}},[y]),ue(()=>{let e;function t(){let t="function"==typeof c?c(k().data):c;t&&-1!==e&&(e=setTimeout(n,t))}function n(){!k().error&&(u||A.current.isVisible())&&(d||A.current.isOnline())?K(uI).then(t):t()}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[c,u,d,y]),(0,el.useDebugValue)(H),i){if(!c8&&c7&&z)throw Error("Fallback data is required when using Suspense in SSR.");z&&(v.current=t,A.current=n,S.current=!1);let e=b[y];if(uw(!cK(e)&&z?X(e):uC),!cK(U)&&z)throw U;let r=z?K(uI):uC;!cK(H)&&z&&(r.status="fulfilled",r.value=!0),uw(r)}return{mutate:X,get data(){return C.data=!0,H},get error(){return C.error=!0,U},get isValidating(){return C.isValidating=!0,W},get isLoading(){return C.isLoading=!0,Y}}},function(...e){let t=uv(),[n,r,a]=uT(e),i=ug(t,a),s=h,{use:o}=i,l=(o||[]).concat(uA);for(let e=l.length;e--;)s=l[e](s);return s(n,r||i.fetcher||null,i)}),uL=()=>{},uD=uL(),uP=Object,uM=e=>e===uD,uF=new WeakMap,uj=(e,t)=>e===`[object ${t}]`,uU=0,uB=e=>{let t,n,r=typeof e,a=uP.prototype.toString.call(e),i=uj(a,"Date"),s=uj(a,"RegExp"),o=uj(a,"Object");if(uP(e)!==e||i||s)t=i?e.toJSON():"symbol"==r?e.toString():"string"==r?JSON.stringify(e):""+e;else{if(t=uF.get(e))return t;if(t=++uU+"~",uF.set(e,t),Array.isArray(e)){for(n=0,t="@";n<e.length;n++)t+=uB(e[n])+",";uF.set(e,t)}if(o){t="#";let r=uP.keys(e).sort();for(;!uM(n=r.pop());)uM(e[n])||(t+=n+":"+uB(e[n])+",");uF.set(e,t)}}return t},uH=Promise.resolve(),uz=u_(uO,e=>(t,n,r)=>{let a,i=(0,el.useRef)(!1),{cache:s,initialSize:o=1,revalidateAll:l=!1,persistSize:c=!1,revalidateFirstPage:u=!0,revalidateOnMount:d=!1,parallel:p=!1}=r,[,,,m]=cq.get(um);try{(a=(e=>{if("function"==typeof e)try{e=e()}catch(t){e=""}let t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?uB(e):"",t]})(t?t(0,null):null)[0])&&(a=uE+a)}catch(e){}let[h,f,g]=c3(s,a),b=(0,el.useCallback)(()=>cK(h()._l)?o:h()._l,[s,a,o]);(0,cG.useSyncExternalStore)((0,el.useCallback)(e=>a?g(a,()=>{e()}):()=>{},[s,a]),b,b);let y=(0,el.useCallback)(()=>{let e=h()._l;return cK(e)?o:e},[a,o]),E=(0,el.useRef)(y());ue(()=>{if(!i.current){i.current=!0;return}a&&f({_l:c?E.current:y()})},[a,s]);let x=d&&!i.current,S=e(a,async e=>{let a=h()._i,i=h()._r;f({_r:cW});let o=[],c=y(),[d]=c3(s,e),g=d().data,b=[],E=null;for(let e=0;e<c;++e){let[c,d]=uo(t(e,p?null:E));if(!c)break;let[h,f]=c3(s,c),y=h().data,S=l||a||cK(y)||u&&!e&&!cK(g)||x||g&&!cK(g[e])&&!r.compare(g[e],y);if(n&&("function"==typeof i?i(y,d):S)){let t=async()=>{if(c in m){let e=m[c];delete m[c],y=await e}else y=await n(d);f({data:y,_k:d}),o[e]=y};p?b.push(t):await t()}else o[e]=y;p||(E=y)}return p&&await Promise.all(b.map(e=>e())),f({_i:cW}),o},r),T=(0,el.useCallback)(function(e,t){let n="boolean"==typeof t?{revalidate:t}:t||{},r=!1!==n.revalidate;return a?(r&&(cK(e)?f({_i:!0,_r:n.revalidate}):f({_i:!1,_r:n.revalidate})),arguments.length?S.mutate(e,{...n,revalidate:r}):S.mutate()):uH},[a,s]),v=(0,el.useCallback)(e=>{let n;if(!a)return uH;let[,r]=c3(s,a);if("function"==typeof e?n=e(y()):"number"==typeof e&&(n=e),"number"!=typeof n)return uH;r({_l:n}),E.current=n;let i=[],[o]=c3(s,a),l=null;for(let e=0;e<n;++e){let[n]=uo(t(e,l)),[r]=c3(s,n),a=n?r().data:cW;if(cK(a))return T(o().data);i.push(a),l=a}return T(i)},[a,s,T,y]);return{size:y(),setSize:v,mutate:T,get data(){return S.data},get error(){return S.error},get isValidating(){return S.isValidating},get isLoading(){return S.isLoading}}});function uG(e){let t=e.limit||20;return uz((n,r)=>{let a=eT(),i=a?.langsmithApiKey||es.default.env.NEXT_PUBLIC_LANGSMITH_API_KEY||"";return!a||r&&0===r.length?null:{kind:"threads",pageIndex:n,pageSize:t,deploymentUrl:a.deploymentUrl,assistantId:a.assistantId,apiKey:i,status:e?.status}},async({deploymentUrl:e,assistantId:t,apiKey:n,status:r,pageIndex:a,pageSize:i})=>{let s=a9(new aX({apiUrl:e,defaultHeaders:n?{"X-Api-Key":n}:{}})),o=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(t)?{assistant_id:t}:{graph_id:t};return(await s.threads.search({limit:i,offset:a*i,sortBy:"updated_at",sortOrder:"desc",status:r,metadata:o})).map(e=>{let n="Untitled Thread",r="";try{if(e.values&&"object"==typeof e.values){let t=e.values,a=Array.isArray(t.messages)?t.messages:[],i=e=>"string"==typeof e?e:Array.isArray(e)?e.map(e=>"string"==typeof e?.text?e.text:"").join(""):"",s=a.find(e=>"human"===e.type),o=i(s?.content).trim();for(let e of(o&&(n=o.slice(0,50)+(o.length>50?"…":"")),a)){if(e?.type!=="ai")continue;let t=i(e.content).trim();if(t){r=t.slice(0,100);break}}"Untitled Thread"===n&&r&&(n=r.slice(0,50)+(r.length>50?"…":""))}}catch{n=`Thread ${e.thread_id.slice(0,8)}`}let a=e.metadata?.title;"string"==typeof a&&a.trim()&&(n=a.trim());let i=e.metadata?.pinned===!0,s=!1,o=e.interrupts;if(o&&"object"==typeof o){for(let e of Object.values(o))if(Array.isArray(e)){for(let t of e){let e=t?.value;if(e&&"ask_user"===e.type){s=!0;break}}if(s)break}}return{id:e.thread_id,updatedAt:new Date(e.updated_at),status:e.status,title:n,description:r,assistantId:t,pinned:i,needsUserInput:s}})},{revalidateFirstPage:!0,revalidateOnFocus:!0})}function u$(){let e=eT();if(!e)return null;let t=e.langsmithApiKey||es.default.env.NEXT_PUBLIC_LANGSMITH_API_KEY||"";return a9(new aX({apiUrl:e.deploymentUrl,defaultHeaders:t?{"X-Api-Key":t}:{}}))}async function uq(e){let t=u$();if(!t)throw Error("No EvoScientist deployment configured.");await t.threads.delete(e)}async function uV(e,t,n){let r={...(await e.threads.get(t)).metadata??{},...n};await e.threads.update(t,{metadata:r})}async function uW(e,t){let n=u$();if(!n)throw Error("No EvoScientist deployment configured.");await uV(n,e,{title:t})}async function uY(e,t){let n=u$();if(!n)throw Error("No EvoScientist deployment configured.");await uV(n,e,{pinned:t})}async function uK(e,t){let n=u$();if(!n)throw Error("No EvoScientist deployment configured.");await uV(n,e,{model_override:t})}async function uX(e,t){let n=u$();if(!n)throw Error("No EvoScientist deployment configured.");let r=new Blob([JSON.stringify(await n.threads.get(e),null,2)],{type:"application/json"}),a=URL.createObjectURL(r),i=t&&t.replace(/[\\/:*?"<>|\u0000-\u001F]+/g,"").trim().replace(/\s+/g,"-").slice(0,80)||`thread-${e.slice(0,8)}`,s=document.createElement("a");s.href=a,s.download=`${i}.json`,document.body.appendChild(s),s.click(),s.remove(),setTimeout(()=>URL.revokeObjectURL(a),0)}let uZ="evoscientist-memory-seen-at";function uQ(e){try{localStorage.setItem(uZ,String(e))}catch{}}let uJ="evoscientist-auto-approve",u0="__new__";function u1(){try{let e=localStorage.getItem(uJ);if(!e)return{};let t=JSON.parse(e);if(t&&"object"==typeof t&&!Array.isArray(t))return t}catch{}return{}}function u2(e){try{localStorage.setItem(uJ,JSON.stringify(e))}catch{}}function u3(e){return!0===u1()[e??u0]}function u4(e,t){let n=u1(),r=e??u0;t?n[r]=!0:delete n[r],u2(n)}var u5=e.i(846696);let u6={interrupted:"Requiring Attention",today:"Today",yesterday:"Yesterday",week:"This Week",older:"Older"},u9={idle:"bg-green-500",busy:"bg-blue-500",interrupted:"bg-orange-500",error:"bg-red-600"},u8={idle:"Idle",busy:"Busy",interrupted:"Interrupted",error:"Error"};function u7(e){return u9[e]??"bg-gray-400"}function de({status:e,label:t,badge:n}){return(0,eo.jsxs)("span",{className:"inline-flex items-center gap-2",children:[(0,eo.jsx)("span",{className:n3("inline-block size-2 rounded-full",u7(e))}),t,void 0!==n&&n>0&&(0,eo.jsx)("span",{className:"ml-1 inline-flex items-center justify-center rounded-full bg-red-600 px-1.5 py-0.5 text-xs font-bold leading-none text-white",children:n})]})}function dt({message:e}){return(0,eo.jsxs)("div",{className:"flex flex-col items-center justify-center p-8 text-center",children:[(0,eo.jsx)("p",{className:"text-sm text-red-600",children:"Failed to load research"}),(0,eo.jsx)("p",{className:"mt-1 text-xs text-muted-foreground",children:e})]})}function dn(){return(0,eo.jsx)("div",{className:"space-y-2 p-4",children:Array.from({length:5}).map((e,t)=>(0,eo.jsx)(oa,{className:"h-16 w-full"},t))})}function dr(){return(0,eo.jsxs)("div",{className:"flex flex-col items-center justify-center p-8 text-center",children:[(0,eo.jsx)(sv,{className:"mb-2 h-12 w-12 text-gray-300"}),(0,eo.jsx)("p",{className:"text-sm text-muted-foreground",children:"No research yet"})]})}function da({onThreadSelect:e,onClose:t,onNewChat:n,onMutateReady:r,onInterruptCountChange:a}){let[i,s]=eE("threadId"),[o,l]=eE("view"),{unseenCount:c,markSeen:u}=function(){let e=(void 0)??!0,t=(void 0)??15e3,[n,r]=(0,el.useState)(0),[a,i]=(0,el.useState)(0),s=(0,el.useRef)(!0),o=(0,el.useCallback)(async()=>{try{let e,t=await fetch("/api/memory",{cache:"no-store"});if(!t.ok)return;let n=await t.json();if(!s.current)return;let a=(n.entries??[]).map(e=>"number"==typeof e.mtime?e.mtime:0).filter(e=>e>0),o=a.length?Math.max(...a):0,l=(e=Number(localStorage.getItem(uZ)),Number.isFinite(e)?e:0);0===l&&o>0&&(uQ(o),l=o),r(o),i(a.filter(e=>e>l).length)}catch{}},[]),l=(0,el.useCallback)(()=>{uQ(n>0?n:Date.now()),i(0)},[n]);return(0,el.useEffect)(()=>{if(s.current=!0,!e)return()=>{s.current=!1};o();let n=setInterval(()=>{document.hidden||o()},t);return()=>{s.current=!1,clearInterval(n)}},[o,e,t]),{unseenCount:a,latestMtime:n,markSeen:l,refresh:o}}(),[d,p]=(0,el.useState)("all"),[m,h]=(0,el.useState)(""),[f,g]=(0,el.useState)(null),[b,y]=(0,el.useState)(""),[E,x]=(0,el.useState)(null),[S,T]=(0,el.useState)(!1),[v,A]=(0,el.useState)(()=>new Date),[_,k]=(0,el.useState)(()=>new Set),[N,w]=(0,el.useState)(()=>new Set),I=uG({status:"all"===d?void 0:d,limit:20}),C=(0,el.useMemo)(()=>{let e=new Set,t=[];for(let n of I.data?.flat()??[])e.has(n.id)||(e.add(n.id),t.push(n));return t},[I.data]),R=(0,el.useMemo)(()=>{let e=m.trim().toLowerCase();return e?C.filter(t=>t.title.toLowerCase().includes(e)):C},[C,m]);(0,el.useEffect)(()=>{let e=()=>A(new Date),t=window.setInterval(e,6e4);return window.addEventListener("focus",e),document.addEventListener("visibilitychange",e),()=>{window.clearInterval(t),window.removeEventListener("focus",e),document.removeEventListener("visibilitychange",e)}},[]);let O=I.size>0&&I.data?.[I.size-1]==null,L=I.data?.at(0)?.length===0,D=L||(I.data?.at(-1)?.length??0)<20,P=(0,el.useMemo)(()=>R.filter(e=>e.pinned),[R]),M=(0,el.useCallback)(e=>!!e.needsUserInput||"interrupted"===e.status&&!(e.id===i&&u3(e.id)),[i]),F=(0,el.useMemo)(()=>{let e={interrupted:[],today:[],yesterday:[],week:[],older:[]};return R.forEach(t=>{if(t.pinned)return;if(M(t))return void e.interrupted.push(t);let n=Math.floor((v.getTime()-t.updatedAt.getTime())/864e5);0===n?e.today.push(t):1===n?e.yesterday.push(t):n<7?e.week.push(t):e.older.push(t)}),e},[R,v,M]),j=(0,el.useMemo)(()=>C.filter(M).length,[C,M]),U=(0,el.useRef)(r),B=(0,el.useRef)(I.mutate);(0,el.useEffect)(()=>{U.current=r},[r]),(0,el.useEffect)(()=>{B.current=I.mutate},[I.mutate]);let H=(0,el.useCallback)(()=>{B.current()},[]);(0,el.useEffect)(()=>{U.current?.(H)},[]),(0,el.useEffect)(()=>{a?.(j)},[j,a]);let z=(0,el.useRef)(!1),G=(0,el.useRef)(new Set),$=(0,el.useRef)(new Set),q=(0,el.useRef)(null),V=(0,el.useRef)(!1),W=async()=>{if(!f||z.current)return;let e=b.trim();if(!e||e===f.title)return void g(null);z.current=!0,T(!0);try{await uW(f.id,e),g(null),H()}catch{u5.toast.error("Couldn't rename — try again.")}finally{z.current=!1,T(!1)}},Y=async()=>{if(E&&!z.current){z.current=!0,T(!0);try{await uq(E.id),i===E.id&&(n?n():(s(null),l(null))),V.current=!0,x(null),H()}catch{u5.toast.error("Couldn't delete — try again.")}finally{z.current=!1,T(!1)}}},K=async e=>{if(!G.current.has(e.id)){G.current.add(e.id),k(t=>{let n=new Set(t);return n.add(e.id),n});try{await uY(e.id,!e.pinned),H()}catch{u5.toast.error(e.pinned?"Couldn't unpin — try again.":"Couldn't pin — try again.")}finally{G.current.delete(e.id),k(t=>{let n=new Set(t);return n.delete(e.id),n})}}},X=async e=>{if(!$.current.has(e.id)){$.current.add(e.id),w(t=>{let n=new Set(t);return n.add(e.id),n});try{await uX(e.id,e.title)}catch{u5.toast.error("Couldn't export — try again.")}finally{$.current.delete(e.id),w(t=>{let n=new Set(t);return n.delete(e.id),n})}}},Z=t=>{var n;let r=_.has(t.id),a=N.has(t.id);return(0,eo.jsxs)("div",{className:"group relative",children:[(0,eo.jsx)("button",{type:"button",onClick:()=>e(t.id),className:n3("grid w-full cursor-pointer items-center gap-2 rounded-md py-2 pl-2.5 pr-28 text-left transition-colors duration-200 md:pr-2.5 md:group-focus-within:pr-28 md:group-hover:pr-28","hover:bg-accent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",i===t.id?"border border-primary bg-accent hover:bg-accent":"border border-transparent bg-transparent"),"aria-current":i===t.id,children:(0,eo.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,eo.jsxs)("div",{className:"mb-0.5 flex items-center justify-between gap-2",children:[(0,eo.jsxs)("h3",{className:"flex min-w-0 items-center gap-1.5 text-sm font-semibold",children:[t.pinned&&(0,eo.jsx)(s_,{className:"size-3 flex-shrink-0 text-[var(--brand)]","aria-hidden":"true"}),(0,eo.jsx)("span",{className:"truncate",children:t.title})]}),(0,eo.jsx)("span",{className:"ml-2 flex-shrink-0 text-xs tabular-nums text-muted-foreground",children:(0,eo.jsx)("time",{dateTime:t.updatedAt.toISOString(),title:Number.isFinite((n=t.updatedAt).getTime())?new Intl.DateTimeFormat(void 0,{dateStyle:"medium",timeStyle:"short",hourCycle:"h23"}).format(n):"Unknown time",children:cz(t.updatedAt,v)})})]}),(0,eo.jsxs)("div",{className:"flex items-center justify-between",children:[(0,eo.jsx)("p",{className:"flex-1 truncate text-[13px] text-muted-foreground",children:t.description}),(0,eo.jsx)("div",{className:"ml-2 flex-shrink-0",children:(0,eo.jsx)("span",{role:"img","aria-label":`Status: ${u8[t.status]}`,title:`Status: ${u8[t.status]}`,className:n3("h-2 w-2 rounded-full",u7(t.status))})})]})]})}),(0,eo.jsxs)("div",{className:"absolute right-1.5 top-1.5 flex items-center gap-0.5 rounded-md bg-accent/95 p-0.5 opacity-100 shadow-sm backdrop-blur-sm transition-opacity md:opacity-0 md:group-focus-within:opacity-100 md:group-hover:opacity-100",children:[(0,eo.jsx)("button",{type:"button","aria-label":t.pinned?`Unpin "${t.title}"`:`Pin "${t.title}"`,title:t.pinned?"Unpin":"Pin",onClick:()=>K(t),disabled:r,className:n3("rounded p-1 transition-colors hover:bg-background focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",t.pinned?"text-[var(--brand)] hover:text-[var(--brand)]":"text-muted-foreground hover:text-foreground"),children:t.pinned?(0,eo.jsx)(sk,{className:"size-3.5","aria-hidden":"true"}):(0,eo.jsx)(s_,{className:"size-3.5","aria-hidden":"true"})}),(0,eo.jsx)("button",{type:"button","aria-label":`Rename "${t.title}"`,title:"Rename",onClick:()=>{g(t),y(t.title)},className:"rounded p-1 text-muted-foreground transition-colors hover:bg-background hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring",children:(0,eo.jsx)(sA,{className:"size-3.5","aria-hidden":"true"})}),(0,eo.jsx)("button",{type:"button","aria-label":`Export "${t.title}" as JSON`,title:"Export JSON",onClick:()=>X(t),disabled:a,className:"rounded p-1 text-muted-foreground transition-colors hover:bg-background hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",children:a?(0,eo.jsx)(sT,{className:"size-3.5 animate-spin","aria-hidden":"true"}):(0,eo.jsx)(sS,{className:"size-3.5","aria-hidden":"true"})}),(0,eo.jsx)("button",{type:"button","aria-label":`Delete "${t.title}"`,title:"Delete",onClick:()=>x(t),className:"rounded p-1 text-muted-foreground transition-colors hover:bg-destructive/10 hover:text-destructive focus-visible:ring-2 focus-visible:ring-ring",children:(0,eo.jsx)(sI,{className:"size-3.5","aria-hidden":"true"})})]})]},t.id)};return(0,eo.jsxs)("div",{className:"absolute inset-0 flex flex-col",children:[(0,eo.jsxs)("button",{ref:q,type:"button",onClick:()=>{n?n():(s(null),l(null)),t?.()},className:"flex flex-shrink-0 items-center gap-2.5 border-b border-border px-3 py-3 text-left text-sm font-medium transition-colors hover:bg-accent focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring",children:[(0,eo.jsx)(ir,{className:"size-4","aria-hidden":"true"}),"New Chat"]}),(0,eo.jsxs)("button",{type:"button",onClick:()=>{if("skills"===o){l(null),t?.();return}l("skills"),t?.()},className:n3("flex flex-shrink-0 items-center gap-2.5 border-b border-border px-3 py-3 text-left text-sm font-medium transition-colors hover:bg-accent focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring","skills"===o&&"bg-accent"),children:[(0,eo.jsx)(sN,{className:"size-4","aria-hidden":"true"}),"Research Skills"]}),(0,eo.jsxs)("button",{type:"button",onClick:()=>{if("memory"===o){l(null),t?.();return}u(),l("memory"),t?.()},className:n3("flex flex-shrink-0 items-center gap-2.5 border-b border-border px-3 py-3 text-left text-sm font-medium transition-colors hover:bg-accent focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring","memory"===o&&"bg-accent"),children:[(0,eo.jsx)(sE,{className:"size-4","aria-hidden":"true"}),"EvoMemory","memory"!==o&&c>0&&(0,eo.jsx)("span",{className:"ml-auto inline-flex min-w-4 items-center justify-center rounded-full bg-[var(--brand-solid)] px-1 text-[10px] font-bold leading-none text-[var(--brand-foreground)]",title:`${c} memory file${1===c?"":"s"} updated since you last looked`,"aria-label":`${c} memory updates`,children:c})]}),(0,eo.jsxs)("button",{type:"button",onClick:()=>{if("schedule"===o){l(null),t?.();return}l("schedule"),t?.()},className:n3("flex flex-shrink-0 items-center gap-2.5 border-b border-border px-3 py-3 text-left text-sm font-medium transition-colors hover:bg-accent focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring","schedule"===o&&"bg-accent"),children:[(0,eo.jsx)(sx,{className:"size-4","aria-hidden":"true"}),"Scheduled"]}),(0,eo.jsx)("div",{className:"flex-shrink-0 border-b border-border p-2.5",children:(0,eo.jsxs)("div",{className:"relative",children:[(0,eo.jsx)(sw,{className:"pointer-events-none absolute left-2.5 top-1/2 size-4 -translate-y-1/2 text-muted-foreground","aria-hidden":"true"}),(0,eo.jsx)("input",{type:"search",name:"research-search",value:m,onChange:e=>h(e.target.value),placeholder:"Search research…","aria-label":"Search research",autoComplete:"off",spellCheck:!1,className:"w-full rounded-md border border-border bg-background py-1.5 pl-8 pr-8 text-sm outline-none placeholder:text-muted-foreground focus-visible:ring-2 focus-visible:ring-ring"}),m&&(0,eo.jsx)("button",{type:"button","aria-label":"Clear research search",onClick:()=>h(""),className:"absolute right-1 top-1/2 -translate-y-1/2 rounded p-1 text-muted-foreground transition-colors hover:bg-accent hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring",children:(0,eo.jsx)(ng,{className:"size-3.5","aria-hidden":"true"})})]})}),(0,eo.jsxs)("div",{className:"grid flex-shrink-0 grid-cols-[1fr_auto] items-center gap-2 border-b border-border px-3 py-2.5",children:[(0,eo.jsx)("h2",{className:"text-base font-semibold tracking-tight",children:"Recents"}),(0,eo.jsxs)("div",{className:"flex items-center gap-2",children:[(0,eo.jsxs)(lQ,{value:d,onValueChange:e=>p(e),children:[(0,eo.jsx)(cP,{className:"w-fit",children:(0,eo.jsx)(l2,{})}),(0,eo.jsxs)(cj,{align:"end",children:[(0,eo.jsx)(cB,{value:"all",children:"All"}),(0,eo.jsx)(cH,{}),(0,eo.jsxs)(cu,{children:[(0,eo.jsx)(cU,{children:"Active"}),(0,eo.jsx)(cB,{value:"idle",children:(0,eo.jsx)(de,{status:"idle",label:"Idle"})}),(0,eo.jsx)(cB,{value:"busy",children:(0,eo.jsx)(de,{status:"busy",label:"Busy"})})]}),(0,eo.jsx)(cH,{}),(0,eo.jsxs)(cu,{children:[(0,eo.jsx)(cU,{children:"Attention"}),(0,eo.jsx)(cB,{value:"interrupted",children:(0,eo.jsx)(de,{status:"interrupted",label:"Interrupted",badge:j})}),(0,eo.jsx)(cB,{value:"error",children:(0,eo.jsx)(de,{status:"error",label:"Error"})})]})]})]}),t&&(0,eo.jsx)("button",{type:"button","aria-label":o?"Close navigation":"Close research",onClick:t,className:"rounded-md p-2 text-muted-foreground transition-colors hover:bg-accent hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring",children:(0,eo.jsx)(ng,{className:"size-4","aria-hidden":"true"})})]})]}),(0,eo.jsxs)(on,{className:"h-0 flex-1",children:[I.error&&(0,eo.jsx)(dt,{message:I.error.message}),!I.error&&!I.data&&I.isLoading&&(0,eo.jsx)("div",{"aria-live":"polite",children:(0,eo.jsx)(dn,{})}),!I.error&&!I.isLoading&&L&&(0,eo.jsx)(dr,{}),!I.error&&!L&&m.trim()&&0===R.length&&(0,eo.jsx)("div",{className:"flex flex-col items-center justify-center p-8 text-center",children:(0,eo.jsx)("p",{className:"text-sm text-muted-foreground",children:"No research matches your search."})}),!I.error&&!L&&R.length>0&&(0,eo.jsxs)("div",{className:"box-border w-full max-w-full overflow-hidden p-1.5",children:[P.length>0&&(0,eo.jsxs)("div",{className:"mb-3",children:[(0,eo.jsx)("h4",{className:"m-0 px-2.5 py-1.5 text-[11px] font-semibold uppercase tracking-wide text-muted-foreground",children:"Research"}),(0,eo.jsx)("div",{className:"flex flex-col gap-1",children:P.map(e=>Z(e))})]}),Object.keys(u6).map(e=>{let t=F[e];return 0===t.length?null:(0,eo.jsxs)("div",{className:"mb-3",children:[(0,eo.jsx)("h4",{className:"m-0 px-2.5 py-1.5 text-[11px] font-semibold uppercase tracking-wide text-muted-foreground",children:u6[e]}),(0,eo.jsx)("div",{className:"flex flex-col gap-1",children:t.map(e=>Z(e))})]},e)}),!D&&(0,eo.jsx)("div",{className:"flex justify-center py-4",children:(0,eo.jsx)(rm,{variant:"outline",size:"sm",onClick:()=>I.setSize(I.size+1),disabled:O,children:O?(0,eo.jsxs)(eo.Fragment,{children:[(0,eo.jsx)(sT,{className:"mr-2 h-4 w-4 animate-spin"}),"Loading…"]}):"Load More"})})]})]}),(0,eo.jsx)(n4,{open:null!==f,onOpenChange:e=>{e||S||g(null)},children:(0,eo.jsxs)(n9,{className:"sm:max-w-md",children:[(0,eo.jsxs)(n8,{children:[(0,eo.jsx)(re,{children:"Rename research"}),(0,eo.jsx)(rt,{children:"Give this conversation a custom title."})]}),(0,eo.jsx)(ry,{autoFocus:!0,value:b,onChange:e=>y(e.target.value),onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),W())},placeholder:"Enter a title…",maxLength:100,disabled:S}),(0,eo.jsxs)(n7,{children:[(0,eo.jsx)(rm,{variant:"outline",onClick:()=>g(null),disabled:S,children:"Cancel"}),(0,eo.jsx)(rm,{onClick:W,disabled:S||!b.trim(),children:S?"Saving…":"Save"})]})]})}),(0,eo.jsx)(n4,{open:null!==E,onOpenChange:e=>{e||S||x(null)},children:(0,eo.jsxs)(n9,{className:"sm:max-w-md",onCloseAutoFocus:e=>{V.current&&(e.preventDefault(),V.current=!1,q.current?.focus())},children:[(0,eo.jsxs)(n8,{children:[(0,eo.jsx)(re,{children:"Delete this research?"}),(0,eo.jsxs)(rt,{children:["“",E?.title,"” will be permanently deleted. This can’t be undone."]})]}),(0,eo.jsxs)(n7,{children:[(0,eo.jsx)(rm,{variant:"outline",onClick:()=>x(null),disabled:S,children:"Cancel"}),(0,eo.jsx)(rm,{onClick:Y,disabled:S,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:S?"Deleting…":"Delete"})]})]})})]})}function di(e){let t=[],n=new Map;for(let t of e)"tool"===t.type&&n.set(t.tool_call_id,t);for(let a=0;a<e.length;a+=1){let i=e[a];if("ai"===i.type&&i.tool_calls&&i.tool_calls.length>0){let s=!1;for(let t=a+1;t<e.length;t+=1)if("ai"===e[t].type){s=!0;break}for(let e=0;e<i.tool_calls.length;e+=1){var r;let a=i.tool_calls[e],o=a.id,l=o?n.get(o):void 0;t.push({id:o??`${i.id??"unknown"}-${e}`,call:a,result:l,aiMessage:i,index:e,state:(r=s,l?"error"===l.status?"error":"completed":r?"completed":"pending")})}}}return t}let ds=["task"];function dl(e){return!!e&&("string"==typeof e?e.includes("tools:"):e.some(e=>e.startsWith("tools:")))}function dc(e){if(e&&0!==e.length){for(let t of e)if(t.startsWith("tools:"))return t.slice(6)}}var du=class{subagents=new Map;namespaceToToolCallId=new Map;pendingMatches=new Map;pendingMessages=new Map;messageManagers=new Map;subagentToolNames;onSubagentChange;toMessage;constructor(e){this.subagentToolNames=new Set(e?.subagentToolNames??ds),this.onSubagentChange=e?.onSubagentChange,this.toMessage=e?.toMessage??aS}getMessageManager(e){let t=this.messageManagers.get(e);return t||(t=new ax,this.messageManagers.set(e,t)),t}getMessagesForSubagent(e){let t=this.messageManagers.get(e);if(!t)return[];let n=[];for(let e of Object.values(t.chunks))e.chunk&&n.push(this.toMessage(e.chunk));return n}queuePendingMessage(e,t,n){let r=this.pendingMessages.get(e)??[];r.push({serialized:t,metadata:n}),this.pendingMessages.set(e,r)}flushPendingMessages(e){let t=this.pendingMessages.get(e);t?.length&&(this.pendingMessages.delete(e),t.forEach(({serialized:t,metadata:n})=>{this.addMessageToSubagent(e,t,n)}))}createSubagentStream(e){let{messages:t}=e,n=di(t);return{...e,isLoading:"running"===e.status,toolCalls:n,getToolCalls:e=>n.filter(t=>t.aiMessage.id===e.id),interrupt:void 0,interrupts:[],switchThread:()=>{},subagents:new Map,activeSubagents:[],getSubagent:()=>void 0,getSubagentsByType:()=>[],getSubagentsByMessage:()=>[]}}getToolCallIdFromNamespace(e){return this.namespaceToToolCallId.get(e)??e}matchSubgraphToSubagent(e,t){if(this.namespaceToToolCallId.has(e))return this.namespaceToToolCallId.get(e);let n=new Set(this.namespaceToToolCallId.values()),r=t=>{this.namespaceToToolCallId.set(e,t);let n=this.subagents.get(t);return n&&"pending"===n.status&&(this.subagents.set(t,{...n,status:"running",namespace:[e],startedAt:new Date}),this.onSubagentChange?.()),this.flushPendingMessages(e),t};for(let[e,a]of this.subagents)if(("pending"===a.status||"running"===a.status)&&!n.has(e)&&a.toolCall.args.description===t)return r(e);for(let[e,a]of this.subagents)if(("pending"===a.status||"running"===a.status)&&!n.has(e)){let n=a.toolCall.args.description||"";if(n&&t.includes(n)||n&&n.includes(t))return t.length>n.length&&this.subagents.set(e,{...a,toolCall:{...a.toolCall,args:{...a.toolCall.args,description:t}}}),r(e)}t&&this.pendingMatches.set(e,t)}isSubagentToolCall(e){return this.subagentToolNames.has(e)}isValidSubagentType(e){return!!e&&"string"==typeof e&&!(e.length<3)&&!!/^[a-zA-Z][a-zA-Z0-9_-]*$/.test(e)&&!(e.length>50)}isValidSubagent(e){return this.isValidSubagentType(e.toolCall.args.subagent_type)}buildExecution(e){let t=this.getMessagesForSubagent(e.id),n=t.length>0?t:e.messages;return this.createSubagentStream({...e,messages:n})}getSubagents(){let e=new Map;for(let[t,n]of this.subagents)this.isValidSubagent(n)&&e.set(t,this.buildExecution(n));return e}getActiveSubagents(){return[...this.subagents.values()].filter(e=>"running"===e.status&&this.isValidSubagent(e)).map(e=>this.buildExecution(e))}getSubagent(e){let t=this.subagents.get(e);return t?this.buildExecution(t):void 0}getSubagentsByType(e){return[...this.subagents.values()].filter(t=>t.toolCall.args.subagent_type===e).map(e=>this.buildExecution(e))}getSubagentsByMessage(e){return[...this.subagents.values()].filter(t=>t.aiMessageId===e&&this.isValidSubagent(t)).map(e=>this.buildExecution(e))}parseArgs(e){if(!e)return{};if("string"==typeof e)try{return JSON.parse(e)}catch{return{}}return e}registerFromToolCalls(e,t){let n=!1;for(let r of e){if(!r.id||!this.isSubagentToolCall(r.name))continue;let e=this.parseArgs(r.args),a=this.isValidSubagentType(e.subagent_type),i=this.subagents.get(r.id);if(i){let a=e.subagent_type||"",s=i.toolCall.args.subagent_type||"",o=e.description||"",l=i.toolCall.args.description||"",c=this.isValidSubagentType(a)&&a.length>s.length,u=o.length>l.length,d=null!=t&&t!==i.aiMessageId;(c||u||d)&&(this.subagents.set(r.id,{...i,...d?{aiMessageId:t}:{},toolCall:{...i.toolCall,args:{...i.toolCall.args,...e,description:u?o:l,subagent_type:c?a:s}}}),n=!0);continue}if(!a)continue;let s={id:r.id,name:r.name,args:{description:e.description,subagent_type:e.subagent_type,...e}},o={id:r.id,toolCall:s,status:"pending",values:{},result:null,error:null,namespace:[],messages:[],aiMessageId:t??null,parentId:null,depth:0,startedAt:null,completedAt:null};this.subagents.set(r.id,o),this.getMessageManager(r.id),this.flushPendingMessages(r.id),n=!0}n&&(this.retryPendingMatches(),this.onSubagentChange?.())}retryPendingMatches(){if(0!==this.pendingMatches.size)for(let[e,t]of this.pendingMatches){if(this.namespaceToToolCallId.has(e)){this.pendingMatches.delete(e);continue}this.matchSubgraphToSubagent(e,t)&&this.pendingMatches.delete(e)}}markRunning(e,t){let n=this.subagents.get(e);if(!n)return;let r=t?.namespace??n.namespace;this.subagents.set(e,{...n,status:"running",namespace:r,parentId:n.parentId??function(e){if(!e||e.length<2)return null;let t=e.filter(e=>e.startsWith("tools:"));return t.length<2?null:t[t.length-2]?.slice(6)??null}(r)??null,depth:n.depth||(r?r.filter(e=>e.startsWith("tools:")).length:0),startedAt:n.startedAt??new Date}),this.onSubagentChange?.()}markRunningFromNamespace(e,t){let n=this.getToolCallIdFromNamespace(e);this.markRunning(n,{namespace:t})}addMessageToSubagent(e,t,n){"human"===t.type&&"string"==typeof t.content&&this.matchSubgraphToSubagent(e,t.content);let r=this.getToolCallIdFromNamespace(e),a=this.subagents.get(r);a?(this.getMessageManager(r).add(t,n)&&("ai"===t.type?this.subagents.set(r,{...a,status:"running",startedAt:a.startedAt??new Date,messages:this.getMessagesForSubagent(r)}):this.subagents.set(r,{...a,messages:this.getMessagesForSubagent(r)})),this.onSubagentChange?.()):this.queuePendingMessage(e,t,n)}updateSubagentValues(e,t){let n=this.getToolCallIdFromNamespace(e),r=this.subagents.get(n);r&&(this.subagents.set(n,{...r,values:t,status:"pending"===r.status?"running":r.status,startedAt:r.startedAt??new Date}),this.onSubagentChange?.())}complete(e,t,n="complete"){let r=this.subagents.get(e);r&&(this.subagents.set(e,{...r,status:n,result:"complete"===n?t:null,error:"error"===n?t:null,completedAt:new Date}),this.onSubagentChange?.())}clear(){this.subagents.clear(),this.namespaceToToolCallId.clear(),this.messageManagers.clear(),this.pendingMatches.clear(),this.pendingMessages.clear(),this.onSubagentChange?.()}processToolMessage(e,t,n="success"){this.subagents.get(e)&&this.complete(e,t,"success"===n?"complete":"error")}reconstructFromMessages(e,t){if(t?.skipIfPopulated&&this.subagents.size>0)return;let n=new Map;for(let t of e)if("tool"===t.type&&"tool_call_id"in t){let e=t.tool_call_id,r="string"==typeof t.content?t.content:JSON.stringify(t.content),a="status"in t&&"error"===t.status?"error":"success";n.set(e,{content:r,status:a})}let r=!1;for(let t of e)if("ai"===t.type&&"tool_calls"in t&&Array.isArray(t.tool_calls))for(let e of t.tool_calls){if(!e.id||!this.isSubagentToolCall(e.name)||this.subagents.has(e.id))continue;let a=this.parseArgs(e.args);if(!this.isValidSubagentType(a.subagent_type))continue;let i={id:e.id,name:e.name,args:{description:a.description,subagent_type:a.subagent_type,...a}},s=n.get(e.id),o=!!s,l=o?"error"===s.status?"error":"complete":"running",c={id:e.id,toolCall:i,status:l,values:{},result:o&&"complete"===l?s.content:null,error:o&&"error"===l?s.content:null,namespace:[],messages:[],aiMessageId:t.id??null,parentId:null,depth:0,startedAt:null,completedAt:o?new Date:null};this.subagents.set(e.id,c),r=!0}r&&this.onSubagentChange?.()}updateSubagentFromSubgraphState(e,t,n){let r=this.subagents.get(e);return!!r&&!(r.messages.length>0)&&0!==t.length&&(r.messages=t,null!=n&&(r.values=n),this.onSubagentChange?.(),!0)}hasSubagents(){return this.subagents.size>0}},dd=class{abortRef=new AbortController;messages;subagentManager;listeners=new Set;throttle;filterSubagentMessages;toMessage;queue=Promise.resolve();queueSize=0;state;constructor(e,t){this.messages=e,this.state={isLoading:!1,values:null,error:void 0,version:0},this.throttle=t.throttle,this.filterSubagentMessages=t.filterSubagentMessages??!1,this.toMessage=t.toMessage??aS,this.subagentManager=new du({subagentToolNames:t.subagentToolNames,onSubagentChange:()=>this.bumpVersion(),toMessage:this.toMessage})}bumpVersion=()=>{this.state={...this.state,version:this.state.version+1},this.notifyListeners()};getSubagents(){return this.subagentManager.getSubagents()}getActiveSubagents(){return this.subagentManager.getActiveSubagents()}getSubagent(e){return this.subagentManager.getSubagent(e)}getSubagentsByType(e){return this.subagentManager.getSubagentsByType(e)}getSubagentsByMessage(e){return this.subagentManager.getSubagentsByMessage(e)}reconstructSubagents(e,t){this.subagentManager.reconstructFromMessages(e,t)}async fetchSubagentHistory(e,t,n){let r=n?.messagesKey??"messages",a=n?.signal;if(a?.aborted)return;let i=[...this.subagentManager.getSubagents().entries()].filter(([,e])=>0===e.messages.length);if(0===i.length)return;let s=new Map;try{let o=await e.getHistory(t,{limit:n?.historyLimit??20,signal:a});for(let e of o){let{tasks:t}=e;if(t&&0!==t.length)for(let e of t){if(!Array.isArray(e.path)||"__pregel_push"!==e.path[0]||"string"!=typeof e.id||"string"!=typeof e.name)continue;let t=e.result?.messages;if(Array.isArray(t))for(let n of t){let t=n;"tool"===t.type&&"string"==typeof t.tool_call_id&&i.some(([e])=>e===t.tool_call_id)&&!s.has(t.tool_call_id)&&s.set(t.tool_call_id,`${e.name}:${e.id}`)}}}let l=()=>i.some(([e])=>!s.has(e));if(l())for(let e of o){let t;if(!l())break;let{tasks:n}=e;if(!n||0===n.length)continue;let a=n.filter(e=>Array.isArray(e.path)&&"__pregel_push"===e.path[0]&&"number"==typeof e.path[1]&&"string"==typeof e.id&&"string"==typeof e.name);if(0===a.length)continue;let o=e.values[r];if(!Array.isArray(o))continue;for(let e=o.length-1;e>=0;e-=1){let n=o[e];if("ai"===n.type&&Array.isArray(n.tool_calls)&&n.tool_calls.length>0&&n.tool_calls.some(e=>this.subagentManager.isSubagentToolCall(e.name))){t=n;break}}if(!t)continue;let c=t.tool_calls.filter(e=>this.subagentManager.isSubagentToolCall(e.name));if(0===c.length)continue;let u=[...a].sort((e,t)=>(Array.isArray(e.path)?e.path[1]:0)-(Array.isArray(t.path)?t.path[1]:0));for(let e=0;e<u.length&&e<c.length;e+=1){let t=c[e],n=u[e];t?.id&&n.id&&n.name&&i.some(([e])=>e===t.id)&&!s.has(t.id)&&s.set(t.id,`${n.name}:${n.id}`)}}}catch{}await Promise.all(i.map(async([n,i])=>{let o=s.get(n)??(i.namespace.length>0?i.namespace.join("|"):void 0);if(o)try{let i=(await e.getHistory(t,{checkpoint:{checkpoint_ns:o},limit:1,signal:a}))[0];if(!i?.values)return;let s=i.values[r];if(!Array.isArray(s)||0===s.length)return;let l=s.map(e=>{if("ai"===e.type&&(!e.tool_calls||0===e.tool_calls.length)){let t=e.additional_kwargs?.tool_calls;if(Array.isArray(t)&&t.length>0)return{...e,tool_calls:t}}return e});this.subagentManager.updateSubagentFromSubgraphState(n,l,i.values)}catch{}}))}hasSubagents(){return this.subagentManager.hasSubagents()}setState=e=>{this.state={...this.state,...e},this.notifyListeners()};notifyListeners=()=>{this.listeners.forEach(e=>e())};subscribe=e=>{let t;if(!1===this.throttle)return this.listeners.add(e),()=>this.listeners.delete(e);let n=!0===this.throttle?0:this.throttle,r=()=>{clearTimeout(t),t=setTimeout(()=>{clearTimeout(t),e()},n)};return this.listeners.add(r),()=>{clearTimeout(t),this.listeners.delete(r)}};getSnapshot=()=>this.state;get isLoading(){return this.state.isLoading}get values(){return this.state.values?.[0]??null}get error(){return this.state.error}setStreamValues=(e,t="stream")=>{if("function"==typeof e){let[n,r]=this.state.values??[null,"stream"],a=e(n,r);this.setState({values:null!=a?[a,t]:null})}else this.setState({values:null!=e?[e,t]:null})};getMutateFn=(e,t)=>n=>{let r=(this.state.values??[null,"stream"])[0],a={...t,...r},i="function"==typeof n?n(a):n;this.setStreamValues({...a,...i},e)};matchEventType=(e,t,n)=>e===t||t.startsWith(`${e}|`);enqueue=async(e,t)=>{try{let n;this.queueSize=Math.max(0,this.queueSize-1),this.setState({isLoading:!0,error:void 0}),this.abortRef=new AbortController;let r=await e(this.abortRef.signal),a=!1;for await(let{event:e,data:i}of r){if("error"===e){n=new a1(i);break}let r=e.includes("|")?e.split("|").slice(1):void 0,s=this.getMutateFn("stream",t.initialValues);if("metadata"===e&&t.callbacks.onMetadataEvent?.(i),"events"===e&&t.callbacks.onLangChainEvent?.(i),this.matchEventType("updates",e,i)){if(t.callbacks.onUpdateEvent?.(i,{namespace:r,mutate:s}),r&&dl(r)){let e=dc(r);e&&this.filterSubagentMessages&&this.subagentManager.markRunningFromNamespace(e,r)}if(!r||!dl(r)){for(let e of Object.values(i))if(e&&"object"==typeof e&&"messages"in e){let{messages:t}=e;if(Array.isArray(t)){for(let e of t)if(e&&"object"==typeof e&&("ai"===e.type&&"tool_calls"in e&&Array.isArray(e.tool_calls)&&this.subagentManager.registerFromToolCalls(e.tool_calls,e.id),"tool"===e.type&&"tool_call_id"in e&&"string"==typeof e.tool_call_id)){let t="string"==typeof e.content?e.content:JSON.stringify(e.content),n="status"in e&&"error"===e.status?"error":"success";this.subagentManager.processToolMessage(e.tool_call_id,t,n)}}}}}if(this.matchEventType("custom",e,i)&&t.callbacks.onCustomEvent?.(i,{namespace:r,mutate:s}),this.matchEventType("checkpoints",e,i)&&t.callbacks.onCheckpointEvent?.(i,{namespace:r}),this.matchEventType("tasks",e,i)&&t.callbacks.onTaskEvent?.(i,{namespace:r}),this.matchEventType("debug",e,i)&&t.callbacks.onDebugEvent?.(i,{namespace:r}),this.matchEventType("tools",e,i)&&t.callbacks.onToolEvent?.(i,{namespace:r,mutate:s}),"values"===e||e.startsWith("values|"))if(r&&dl(r)){let e=dc(r);if(e&&this.filterSubagentMessages){let t=i.messages;if(Array.isArray(t)&&t.length>0){let n=t[0];n?.type==="human"&&"string"==typeof n?.content&&this.subagentManager.matchSubgraphToSubagent(e,n.content)}this.subagentManager.updateSubagentValues(e,i)}}else if(a||(this.setStreamValues(e=>{if(e&&"__interrupt__"in e){let{__interrupt__:t,...n}=e;return n}return e}),a=!0),i&&"object"==typeof i&&"__interrupt__"in i){let e=i;this.setStreamValues(t=>{let n=t?.__interrupt__,r=e.__interrupt__;if(Array.isArray(r)){if(0===r.length)r=[];else if(Array.isArray(n)){let e=[...n],t=new Set(n.map(e=>e.id).filter(e=>null!=e));for(let n of r){if(null!=n.id){if(t.has(n.id))continue;t.add(n.id)}e.push(n)}r=e}}return{...t,__interrupt__:r}})}else this.setStreamValues(e=>e&&"__interrupt__"in e&&Array.isArray(e.__interrupt__)?{...i,__interrupt__:e.__interrupt__}:i);if(this.matchEventType("messages",e,i)){let[e,n]=i,a=r&&dl(r)?r:void 0,s=n?.langgraph_checkpoint_ns||n?.checkpoint_ns,o=a??("string"==typeof s?s.split("|"):void 0),l=dl(o),c=l?dc(o):void 0;if(this.filterSubagentMessages&&l&&c){this.subagentManager.addMessageToSubagent(c,e,n);continue}let u=this.messages.add(e,n);if(!u){console.warn("Failed to add message to manager, no message ID found");continue}this.setStreamValues(e=>{let n={...t.initialValues,...e},r=t.getMessages(n).slice(),{chunk:a,index:i}=this.messages.get(u,r.length)??{};if(!a||null==i)return n;if("remove"===a.getType())"__remove_all__"===a.id?r=[]:r.splice(i,1);else{let e=this.toMessage(a);if(r[i]=e,!l&&"ai"===e.type&&"tool_calls"in e&&Array.isArray(e.tool_calls)&&this.subagentManager.registerFromToolCalls(e.tool_calls,e.id),!l&&"tool"===e.type&&"tool_call_id"in e){let t=e.tool_call_id,n="string"==typeof e.content?e.content:JSON.stringify(e.content),r="status"in e&&"error"===e.status?"error":"success";this.subagentManager.processToolMessage(t,n,r)}}return t.setMessages(n,r)})}}if(null!=n)throw n;if(!this.abortRef.signal.aborted){let e=await t.onSuccess?.();void 0!==e&&0===this.queueSize&&this.setStreamValues(e)}}catch(e){e instanceof Error&&("AbortError"===e.name||"TimeoutError"===e.name)||(console.error(e),this.setState({error:e}),await t.onError?.(e))}finally{this.setState({isLoading:!1}),this.abortRef=new AbortController,t.onFinish?.()}};start=async(e,t,n)=>{n?.abortPrevious&&this.abortRef.abort(),this.queueSize+=1;let r=this.queue.then(()=>this.enqueue(e,t));this.queue=r,await r};stop=async(e,t)=>{this.abortRef.abort(),this.abortRef=new AbortController,t.onStop?.({mutate:this.getMutateFn("stop",e)})};clear=()=>{this.abortRef.abort(),this.abortRef=new AbortController,this.setState({error:void 0,values:null,isLoading:!1}),this.messages.clear(),this.subagentManager.clear()}};let dp=e=>{let[t,n]=(0,el.useState)(e?.threadId??null),r=(0,el.useRef)(e?.onThreadId);r.current=e?.onThreadId;let a=(0,el.useCallback)(e=>{n(e),r.current?.(e)},[]);return e&&"threadId"in e?[e.threadId??null,a]:[t,a]};function dm(e){return"function"==typeof e&&e.length>0}async function*dh(e,t){for(;;){let{value:n,done:r}=await e.next();if(r)return n;t(n)&&(yield n)}}function df(e,t,n){return[e["~configHash"],t,n].join(":")}function dg(e){let[t]=(0,el.useState)("transport"in e);return t?function(e){let[t]=(0,el.useState)(()=>new ax),[n]=(0,el.useState)(()=>new dd(t,{throttle:e.throttle??!1,subagentToolNames:e.subagentToolNames,filterSubagentMessages:e.filterSubagentMessages}));(0,el.useSyncExternalStore)(n.subscribe,n.getSnapshot,n.getSnapshot);let[r,a]=dp(e),i=(0,el.useRef)(r);(0,el.useEffect)(()=>{i.current!==r&&(i.current=r,n.clear())},[r,n]);let s=t=>{let n=e.messagesKey??"messages";return Array.isArray(t[n])?t[n]:[]},o=(t,n)=>{let r=e.messagesKey??"messages";return{...t,[r]:n}},l=e.initialValues??{},c=s(l),u=e.filterSubagentMessages&&!n.isLoading&&c.length>0;(0,el.useEffect)(()=>{u&&n.reconstructSubagents(c,{skipIfPopulated:!0})},[u,c.length]);let d=async(t,c)=>{let u=r;n.setStreamValues(()=>c?.optimisticValues!=null?{...l,..."function"==typeof c.optimisticValues?c.optimisticValues(l):c.optimisticValues}:{...l}),await n.start(async n=>{if(u||(i.current=u=crypto.randomUUID(),a(u)),!u)throw Error("Failed to obtain valid thread ID.");return e.transport.stream({input:t,context:c?.context,command:c?.command,signal:n,config:{...c?.config,configurable:{thread_id:u,...c?.config?.configurable}}})},{getMessages:s,setMessages:o,initialValues:{},callbacks:e,onSuccess:()=>{if(!u)return;let t=n.values??l;e.onFinish?.({values:t,next:[],tasks:[],metadata:void 0,created_at:null,checkpoint:{thread_id:u,checkpoint_id:null,checkpoint_ns:"",checkpoint_map:null},parent_checkpoint:null},void 0)},onError(t){e.onError?.(t,void 0)}})},p=(0,el.useRef)(new Set);return(0,el.useEffect)(()=>{p.current.clear()},[r]),(0,el.useEffect)(()=>{al(n.values,e.tools,p.current,{onTool:e.onTool,defer:e=>{Promise.resolve().then(e)},resumeSubmit:e=>d(null,{command:e})})},[e.onTool,e.tools,n.values,d]),{get values(){return n.values??{}},error:n.error,isLoading:n.isLoading,stop:()=>n.stop(l,{onStop:e.onStop}),submit:d,get interrupts(){if(null!=n.values&&"__interrupt__"in n.values&&Array.isArray(n.values.__interrupt__))return a0(n.values.__interrupt__);return[]},get interrupt(){let e=this.interrupts;if(0===e.length)return;if(1===e.length)return e[0];return e},get messages(){if(!n.values)return[];return s(n.values)},get toolCalls(){if(!n.values)return[];return di(s(n.values))},getToolCalls:e=>n.values?di(s(n.values)).filter(t=>t.aiMessage.id===e.id):[],get subagents(){return n.getSubagents()},get activeSubagents(){return n.getActiveSubagents()},getSubagent:e=>n.getSubagent(e),getSubagentsByType:e=>n.getSubagentsByType(e),getSubagentsByMessage:e=>n.getSubagentsByMessage(e)}}(e):function(e){let t,n=(0,el.useRef)(e.reconnectOnMount),r=(0,el.useMemo)(()=>{if("u"<typeof window)return null;let e=n.current;return!0===e?window.sessionStorage:"function"==typeof e?e():null},[]),a=(0,el.useMemo)(()=>e.client??new aX({apiUrl:e.apiUrl,apiKey:e.apiKey,callerOptions:e.callerOptions,defaultHeaders:e.defaultHeaders}),[e.client,e.apiKey,e.apiUrl,e.callerOptions,e.defaultHeaders]),[i]=(0,el.useState)(()=>new ax),[s]=(0,el.useState)(()=>new dd(i,{throttle:e.throttle??!1,subagentToolNames:e.subagentToolNames,filterSubagentMessages:e.filterSubagentMessages}));(0,el.useSyncExternalStore)(s.subscribe,s.getSnapshot,s.getSnapshot);let[o,l]=dp(e),c=(0,el.useRef)([]),u=(0,el.useCallback)((...e)=>{let t=c.current;for(let n of e)t.includes(n)||t.push(n)},[]),d=null!=e.onUpdateEvent,p=null!=e.onCustomEvent,m=null!=e.onLangChainEvent,h=null!=e.onDebugEvent,f=null!=e.onCheckpointEvent,g=null!=e.onTaskEvent,b=null!=e.onToolEvent,y=(0,el.useMemo)(()=>{let e=[];return d&&e.push("updates"),p&&e.push("custom"),m&&e.push("events"),h&&e.push("debug"),f&&e.push("checkpoints"),g&&e.push("tasks"),b&&e.push("tools"),e},[d,p,m,h,f,g,b]),E=(0,el.useRef)(o),x=(0,el.useRef)(null);(0,el.useEffect)(()=>{E.current!==o&&(E.current=o,s.clear())},[o,s]);let S=(0,el.useCallback)(e=>{e!==E.current&&(E.current=e,s.clear(),l(e))},[s,l]),T="object"==typeof e.fetchStateHistory&&null!=e.fetchStateHistory?e.fetchStateHistory.limit??!1:e.fetchStateHistory??!1,v=function(e,t,n,r){let a=df(e,t,n),[i,s]=(0,el.useState)(()=>({key:void 0,data:void 0,error:void 0,isLoading:null!=t})),o=(0,el.useRef)(e);o.current=e;let l=(0,el.useRef)(r?.onError);l.current=r?.onError;let c=(0,el.useCallback)((e,t)=>{if(r.passthrough)return Promise.resolve([]);let n=o.current,a=df(n,e,t);return null!=e?(s(e=>e.key===a?{...e,isLoading:!0}:{key:a,data:void 0,error:void 0,isLoading:!0}),(function(e,t,n){if(n?.limit===!1)return e.threads.getState(t).then(e=>null==e.checkpoint?[]:[e]);let r="number"==typeof n?.limit?n.limit:10;return e.threads.getHistory(t,{limit:r})})(n,e,{limit:t}).then(e=>(s(t=>t.key!==a?t:{key:a,data:e,error:void 0,isLoading:!1}),e),e=>(s(t=>t.key!==a?t:{key:a,data:t.data,error:e,isLoading:!1}),l.current?.(e),Promise.reject(e)))):(s({key:a,data:void 0,error:void 0,isLoading:!1}),Promise.resolve([]))},[r.passthrough]);return(0,el.useEffect)(()=>{(null==r.submittingRef.current||r.submittingRef.current!==t)&&c(t,n)},[c,a]),{data:i.data,error:i.error,isLoading:i.isLoading,mutate:e=>c(e??t,n)}}(a,o,T,{passthrough:null!=e.thread,submittingRef:x,onError:e.onError}),A=e.thread??v,_=t=>{let n=e.messagesKey??"messages";return Array.isArray(t[n])?t[n]:[]},k=(t,n)=>{let r=e.messagesKey??"messages";return{...t,[r]:n}},[N,w]=(0,el.useState)(""),I=function(e,t){let{rootSequence:n,paths:r}=function(e){let t=new Set,n={};if(e.length<=1)return{rootSequence:{type:"sequence",items:e.map(e=>({type:"node",value:e,path:[]}))},paths:[]};e.forEach(e=>{let r=e.parent_checkpoint?.checkpoint_id??"$";n[r]??=[],n[r].push(e),e.checkpoint?.checkpoint_id!=null&&t.add(e.checkpoint.checkpoint_id)});let r=(...e)=>e.filter(e=>null!=e).sort((e,t)=>e.localeCompare(t)).at(-1),a=null==n.$?Object.keys(n).filter(e=>!t.has(e)).map(e=>{let t=[e],a=new Set,i=e;for(;t.length>0;){let e=t.shift();if(a.has(e))continue;a.add(e);let s=(n[e]??[]).flatMap(e=>e.checkpoint?.checkpoint_id??[]);i=r(i,...s),t.push(...s)}return{parentId:e,lastId:i}}).sort((e,t)=>e.lastId.localeCompare(t.lastId)).at(-1)?.parentId:void 0;null!=a&&(n.$=n[a]);let i={type:"sequence",items:[]},s=[{id:"$",sequence:i,path:[]}],o=[],l=new Set;for(;s.length>0;){let e,t=s.shift();if(l.has(t.id))continue;l.add(t.id);let r=n[t.id];if(null!=r&&0!==r.length)for(let n of(r.length>1&&(e={type:"fork",items:[]},t.sequence.items.push(e)),r)){let r=n.checkpoint?.checkpoint_id;if(null==r)continue;let{sequence:a}=t,{path:i}=t;null!=e&&(a={type:"sequence",items:[]},e.items.unshift(a),(i=i.slice()).push(r),o.push(i)),a.items.push({type:"node",value:n,path:i}),s.push({id:r,sequence:a,path:i})}}return{rootSequence:i,paths:o}}(t??[]),{history:a,branchByCheckpoint:i}=function(e,t,n){let r=n.split(">"),a={};for(let e of t){let t=e.at(-2)??"$";a[t]??=[],a[t].unshift(e)}let i=[],s={},o=r.slice(),l=[...e.items];for(;l.length>0;){let e=l.shift();if("node"===e.type){i.push(e.value);let t=e.value.checkpoint?.checkpoint_id;if(null==t)continue;s[t]={branch:e.path.join(">"),branchOptions:(e.path.length>0?a[e.path.at(-2)??"$"]??[]:[]).map(e=>e.join(">"))}}if("fork"===e.type){let t=o.shift(),n=null!=t?e.items.findIndex(e=>{let n=e.items.at(0);return!!n&&"node"===n.type&&n.value.checkpoint?.checkpoint_id===t}):-1,r=e.items.at(n)?.items??[];l.push(...r)}}return{history:i,branchByCheckpoint:s}}(n,r,e);return{branchTree:n,flatHistory:a,branchByCheckpoint:i,threadHead:a.at(-1)}}(N,A.data??void 0),[C,R]=(0,el.useState)(new Map),O=(0,el.useCallback)(e=>{R(t=>{let n=new Map(t),r=e.toolCallId??e.name,a=n.get(r);switch(e.event){case"on_tool_start":n.set(r,{toolCallId:e.toolCallId,name:e.name,state:"starting",input:e.input});break;case"on_tool_event":a&&n.set(r,{...a,state:"running",data:e.data});break;case"on_tool_end":a&&n.set(r,{...a,state:"completed",result:e.output});break;case"on_tool_error":a&&n.set(r,{...a,state:"error",error:e.error});break;default:throw Error(`Unexpected tool event: ${e.event}`)}return n})},[]),L=I.threadHead?.values??e.initialValues??{},D=_(L),P=e.filterSubagentMessages&&!s.isLoading&&!A.isLoading&&D.length>0;(0,el.useEffect)(()=>{if(P&&(s.reconstructSubagents(D,{skipIfPopulated:!0}),!1!==T&&o)){let t=new AbortController;return s.fetchSubagentHistory(a.threads,o,{messagesKey:e.messagesKey??"messages",historyLimit:"number"==typeof T?T:void 0,signal:t.signal}),()=>t.abort()}},[P,D.length]);let M=(()=>{let e=I.threadHead?.tasks?.at(-1)?.error;if(null!=e){try{let t=JSON.parse(e);if(a1.isStructuredError(t))return new a1(t);return t}catch{}return e}})(),F=(t=new Set,_(L).map((e,n)=>{let r=e.id??n,a=function(e,t){for(let n=e.length-1;n>=0;n-=1)if(t(e[n]))return e[n]}(A.data??[],e=>null!=e.values&&_(e.values).map((e,t)=>e.id??t).includes(r)),i=a?.checkpoint?.checkpoint_id,s=null!=i?I.branchByCheckpoint[i]:void 0;s?.branch?.length||(s=void 0);let o=s?.branchOptions?.flat(2).join(",");return o&&(t.has(o)&&(s=void 0),t.add(o)),{messageId:r.toString(),firstSeenState:a,branch:s?.branch,branchOptions:s?.branchOptions}})),j=async(t,n)=>{let i,u;R(new Map);let d=n?.checkpoint?.checkpoint_id;w(null!=d?I.branchByCheckpoint[d]?.branch??"":"");let p=!0===T||"number"==typeof T,m=p||dm(e.onFinish),h=o,f=(n?.multitaskStrategy==="interrupt"||n?.multitaskStrategy==="rollback")&&s.isLoading;await s.start(async o=>{if(s.setStreamValues(e=>{let t={...L,...e};return n?.optimisticValues!=null?{...t,..."function"==typeof n.optimisticValues?n.optimisticValues(t):n.optimisticValues}:{...t}}),h||(E.current=h=(await a.threads.create({threadId:n?.threadId,metadata:n?.metadata,signal:o})).thread_id,x.current=h,l(h)),!h)throw Error("Failed to obtain valid thread ID.");x.current=h;let d=[...new Set([...n?.streamMode??[],...c.current,...y])],m=n?.checkpoint??(p?I.threadHead?.checkpoint:void 0)??void 0;n?.checkpoint===null&&(m=void 0),null!=m&&delete m.thread_id;let f=n?.streamResumable??!!r;return a.runs.stream(h,e.assistantId,{input:t,config:n?.config,context:n?.context,command:n?.command,interruptBefore:n?.interruptBefore,interruptAfter:n?.interruptAfter,metadata:n?.metadata,multitaskStrategy:n?.multitaskStrategy,onCompletion:n?.onCompletion,onDisconnect:n?.onDisconnect??(f?"continue":"cancel"),signal:o,checkpoint:m,streamMode:d,streamSubgraphs:n?.streamSubgraphs,streamResumable:f,durability:n?.durability,onRunCreated(t){i={run_id:t.run_id,thread_id:t.thread_id??h},r&&(u=`lg:stream:${h}`,r.setItem(u,i.run_id)),e.onCreated?.(i)}})},{getMessages:_,setMessages:k,initialValues:L,callbacks:{...e,onToolEvent:(t,n)=>{O(t),e.onToolEvent?.(t,n)}},async onSuccess(){if(u&&r?.removeItem(u),m){let t=(await A.mutate(h))?.at(0);if(t)return e.onFinish?.(t,i),null}else null==e.onFinish||dm(e.onFinish)||e.onFinish(void 0,i)},onError(t){e.onError?.(t,i)},onFinish(){x.current=null}},{abortPrevious:f})},U=async(t,n,i)=>{if(R(new Map),n??="-1",!o)return;let l={thread_id:o,run_id:t},c=!0===T||"number"==typeof T||dm(e.onFinish);await s.start(async e=>{x.current=o;let r=a.runs.joinStream(o,t,{signal:e,lastEventId:n,streamMode:i?.streamMode});return i?.filter!=null?dh(r,i.filter):r},{getMessages:_,setMessages:k,initialValues:L,callbacks:{...e,onToolEvent:(t,n)=>{O(t),e.onToolEvent?.(t,n)}},async onSuccess(){if(r?.removeItem(`lg:stream:${o}`),!c){null==e.onFinish||dm(e.onFinish)||e.onFinish(void 0,l);return}let t=(await A.mutate(o))?.at(0);t&&e.onFinish?.(t,l)},onError(t){e.onError?.(t,l)},onFinish(){x.current=null}})},B=(0,el.useMemo)(()=>{if(!r||s.isLoading||"u"<typeof window)return;let e=r?.getItem(`lg:stream:${o}`);if(e)return{runId:e,threadId:o}},[r,s.isLoading,o]),H=!!r,z=(0,el.useRef)({threadId:o,shouldReconnect:H}),G=(0,el.useRef)(U);G.current=U,(0,el.useEffect)(()=>{z.current.threadId!==o&&(z.current={threadId:o,shouldReconnect:H})},[o,H]),(0,el.useEffect)(()=>{B&&z.current.shouldReconnect&&(z.current.shouldReconnect=!1,G.current?.(B.runId))},[B]);let $=s.error??M??A.error,q=s.values??L,V=(0,el.useRef)(new Set);(0,el.useEffect)(()=>{V.current.clear()},[o]),(0,el.useEffect)(()=>{al(q,e.tools,V.current,{onTool:e.onTool,defer:e=>{Promise.resolve().then(e)},resumeSubmit:e=>j(null,{multitaskStrategy:"interrupt",command:e})})},[e.onTool,e.tools,j,q]);let W={get values(){return u("values"),q},client:a,assistantId:e.assistantId,error:$,isLoading:s.isLoading,stop:()=>s.stop(L,{onStop:t=>{if(r&&o){let e=r.getItem(`lg:stream:${o}`);e&&a.runs.cancel(o,e),r.removeItem(`lg:stream:${o}`)}e.onStop?.(t)}}),submit:j,switchThread:S,joinStream:U,branch:N,setBranch:w,get history(){if(!1===T)throw Error("`fetchStateHistory` must be set to `true` to use `history`");return I.flatHistory},isThreadLoading:A.isLoading&&null==A.data,get experimental_branchTree(){if(!1===T)throw Error("`fetchStateHistory` must be set to `true` to use `experimental_branchTree`");return I.branchTree},get interrupts(){if(null!=q&&"__interrupt__"in q&&Array.isArray(q.__interrupt__))return a0(q.__interrupt__);if(s.isLoading)return[];let e=function(e){if(0===e.length)return null;let t=ai(e);return 0===t.length?[]:aJ(t)}((I.threadHead?.tasks??[]).flatMap(e=>e.interrupts??[]));if(null!=e)return e;if(!(I.threadHead?.next??[]).length||null!=$)return[];return[{when:"breakpoint"}]},get interrupt(){let e=this.interrupts;if(0===e.length)return;if(1===e.length)return e[0];return e},get messages(){return u("messages-tuple","values"),_(q)},get toolCalls(){return u("messages-tuple","values"),di(_(q))},get toolProgress(){return u("tools"),Array.from(C.values())},getToolCalls:e=>(u("messages-tuple","values"),di(_(q)).filter(t=>t.aiMessage.id===e.id)),getMessagesMetadata(e,t){u("values");let n=i.get(e.id)?.metadata,r=F?.find(n=>n.messageId===(e.id??t));if(null!=n||null!=r)return{...r,streamMetadata:n}},get subagents(){return u("updates","messages-tuple"),s.getSubagents()},get activeSubagents(){return u("updates","messages-tuple"),s.getActiveSubagents()},getSubagent:e=>(u("updates","messages-tuple"),s.getSubagent(e)),getSubagentsByType:e=>(u("updates","messages-tuple"),s.getSubagentsByType(e)),getSubagentsByMessage:e=>(u("updates","messages-tuple"),s.getSubagentsByMessage(e))};for(let e of["history","experimental_branchTree","toolProgress","subagents","activeSubagents"]){let t=Object.getOwnPropertyDescriptor(W,e);t?.get&&Object.defineProperty(W,e,{...t,enumerable:!1})}return W}(e)}let db="u">typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),dy=new Uint8Array(16),dE=[];for(let e=0;e<256;++e)dE.push((e+256).toString(16).slice(1));let dx=function(e,t,n){if(db&&!t&&!e)return db();let r=(e=e||{}).random||(e.rng||function(){if(!a&&!(a="u">typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return a(dy)})();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=r[e];return t}return function(e,t=0){return dE[e[t+0]]+dE[e[t+1]]+dE[e[t+2]]+dE[e[t+3]]+"-"+dE[e[t+4]]+dE[e[t+5]]+"-"+dE[e[t+6]]+dE[e[t+7]]+"-"+dE[e[t+8]]+dE[e[t+9]]+"-"+dE[e[t+10]]+dE[e[t+11]]+dE[e[t+12]]+dE[e[t+13]]+dE[e[t+14]]+dE[e[t+15]]}(r)};function dS(e){return"string"==typeof e?e:Array.isArray(e)?e.map(e=>e&&"object"==typeof e&&"text"in e?String(e.text??""):"").join(""):""}function dT(e){let t=[];for(let n of e)if("ai"===n.type){let e=dS(n.content).trim();for(let r of(e&&t.push({kind:"text",text:e}),function(e){let t=[];if(Array.isArray(e.tool_calls)&&e.tool_calls.length>0){for(let n of e.tool_calls)t.push({id:n.id??"",name:n.name??"tool",args:n.args&&"object"==typeof n.args?n.args:{}});return t}let n=e.additional_kwargs?.tool_calls;if(Array.isArray(n))for(let e of n){let n={},r=e.function?.arguments;if(r&&"object"==typeof r)n=r;else if("string"==typeof r)try{let e=JSON.parse(r);e&&"object"==typeof e&&(n=e)}catch{n={input:r}}t.push({id:e.id??"",name:e.function?.name??"tool",args:n})}return t}(n)))t.push({kind:"tool_call",id:r.id,name:r.name,args:r.args})}else"tool"===n.type&&t.push({kind:"tool_result",toolCallId:n.tool_call_id??"",name:n.name??"tool",text:dS(n.content).trim()});return t}function dv(e,t=2){if("string"==typeof e)return e;if(void 0===e)return"undefined";try{let n=[];return JSON.stringify(e,function(e,t){if("bigint"==typeof t)return t.toString();if(t&&"object"==typeof t){for(;n.length>0&&n[n.length-1]!==this;)n.pop();if(n.includes(t))return"[Circular]";n.push(t)}return t},t)??String(e)}catch{return String(e)}}function dA(e){return"string"==typeof e.content?e.content:Array.isArray(e.content)?e.content.filter(e=>"object"==typeof e&&null!==e&&"type"in e&&"text"===e.type||"string"==typeof e).map(e=>"string"==typeof e?e:"object"==typeof e&&null!==e&&"text"in e&&e.text||"").join(""):""}function d_(e){if("string"==typeof e)return e;if(e&&"object"==typeof e){let t=t=>{let n=e[t];return"string"==typeof n&&""!==n.trim()?n:null},n=t("description");if(null!==n)return n;let r=t("prompt");if(null!==r)return r;let a=t("result");if(null!==a)return a}return dv(e)}let dk=[{model:"claude-sonnet-4-6",model_provider:"anthropic"},{model:"claude-haiku-4-5",model_provider:"anthropic"},{model:"claude-opus-4-8",model_provider:"anthropic"},{model:"gpt-5.5-pro",model_provider:"openai"},{model:"gpt-5.5",model_provider:"openai"},{model:"gpt-5-mini",model_provider:"openai"},{model:"gemini-2.5-pro",model_provider:"google-genai"},{model:"gemini-3.5-flash",model_provider:"google-genai"},{model:"deepseek-v3.2",model_provider:"deepseek"}];function dN(e){let t=0;for(let n of e){let e=n.content;if("string"==typeof e)t+=e.length;else if(Array.isArray(e))for(let n of e){let e=n?.text;"string"==typeof e&&(t+=e.length)}}return t}function dw(e){if(!e||"object"!=typeof e)return null;if("string"==typeof e.id&&e.id.length>0)return`id:${e.id}`;try{return`v:${JSON.stringify(e.value??null)}`}catch{return null}}function dI({children:e,activeAssistant:t,onHistoryRevalidate:n,thread:r}){let a=function({activeAssistant:e,onHistoryRevalidate:t,thread:n}){let[r,a]=eE("threadId"),i=ie(),[s,o]=(0,el.useState)({}),l=dg({assistantId:e?.assistant_id||"",client:i??void 0,reconnectOnMount:!0,threadId:r??null,onThreadId:a,defaultHeaders:{"x-auth-scheme":"langsmith"},fetchStateHistory:!0,onFinish:t,onError:e=>{t?.(),u5.toast.error(function(e){let t=e=>e.length>300?e.slice(0,297)+"...":e;if("string"==typeof e&&e.trim())return t(e.trim());if(e&&"object"==typeof e){let n="string"==typeof e.name?e.name.trim():null,r="string"==typeof e.message?e.message.trim():null,a=null;if("string"==typeof e.error&&e.error.trim())a=e.error.trim();else if(e.error&&"object"==typeof e.error)try{a=JSON.stringify(e.error)}catch{a=null}let i=r??a,s=n&&i?`${n}: ${i}`:n??i??"";if(s)return t(s)}return"Run failed."}(e))},onCreated:t,onUpdateEvent:(e,t)=>{let n=t?.namespace;if(!n||0===n.length)return;let r=function(e){let t=[];if(!e||"object"!=typeof e)return t;for(let n of Object.values(e)){let e=n?.messages;if(Array.isArray(e))for(let n of e)if("ai"===n.type&&n.tool_calls&&n.tool_calls.length>0)for(let e of n.tool_calls)t.push({kind:"tool_call",id:e.id??"",name:e.name??"tool",args:e.args&&"object"==typeof e.args?e.args:{}});else if("ai"===n.type){let e=dS(n.content).trim();e&&t.push({kind:"text",text:e})}else"tool"===n.type&&t.push({kind:"tool_result",toolCallId:n.tool_call_id??"",name:n.name??"tool",text:dS(n.content).trim()})}return t}(e);if(0===r.length)return;let a=n.join("|");o(e=>({...e,[a]:[...e[a]??[],...r]}))},thread:n}),c=(0,el.useRef)(l);c.current=l;let[u,d]=(0,el.useState)(void 0),[p,m]=(0,el.useState)(null),[h,f]=(0,el.useState)(null),[g,b]=(0,el.useState)(null),y=(0,el.useRef)(0),[E,x]=(0,el.useState)(null),S=(0,el.useRef)(null);(0,el.useEffect)(()=>{if(!r){S.current||x(null);return}if(S.current){let e=S.current;S.current=null,(async()=>{try{await uK(r,e)}catch{}})();return}let e=!1;return(async()=>{try{let t=await i.threads.get(r);if(e)return;let n=(t.metadata??{}).model_override;n&&"object"==typeof n&&"string"==typeof n.model?x({model:n.model,model_provider:"string"==typeof n.model_provider?n.model_provider:void 0}):x(null)}catch{e||x(null)}})(),()=>{e=!0}},[i,r]);let T=(0,el.useCallback)(async e=>{if(x(e),!r){S.current=e;return}S.current=null,await uK(r,e)},[r]);(0,el.useEffect)(()=>{let e;if(!r){d(void 0),f(null),b(null),m(null);return}if(l.isLoading){y.current+=1,d(void 0),m(null);return}let t=l.messages.length,n=++y.current,a=!1,s=0,o=async()=>{s+=1;try{let[c,u]=await Promise.all([i.threads.getState(r),i.threads.get(r)]);if(a||y.current!==n)return;let p=u.values?.messages,h=function(e){if(Array.isArray(e))for(let t=e.length-1;t>=0;t--){let n=e[t]?.interrupts;if(Array.isArray(n)&&n.length>0)return n[n.length-1]}}(c.tasks),g=Array.isArray(c.next)&&c.next.length>0,E=function(e){if(!e||"object"!=typeof e)return;let t=e.value;if(!t||"object"!=typeof t)return;let n={...t};return"action_requests"in t&&!Array.isArray(t.action_requests)&&(n.action_requests=[]),"review_configs"in t&&!Array.isArray(t.review_configs)&&(n.review_configs=[]),{...e,value:n}}(h);if(E&&function(e){if(!e||"object"!=typeof e)return!1;let t=e.value;return!!t&&"object"==typeof t&&("ask_user"===t.type||Array.isArray(t.action_requests)&&t.action_requests.length>0)}(E)){d(E),m(null),Array.isArray(p)&&(b(r),f(p));return}if(Array.isArray(p)&&p.length>t&&(b(r),f(p)),!g){d(void 0),m(dw(l.interrupt)),Array.isArray(p)&&(b(r),f(p));return}g&&s<15&&!a&&(e=setTimeout(o,1e3))}catch{!a&&y.current===n&&s<15&&(e=setTimeout(o,1e3))}};return o(),()=>{a=!0,e&&clearTimeout(e)}},[r,l.interrupt,l.isLoading,i]);let v=l.interrupt,A=v&&(null===p||dw(v)!==p)?v:g===r?u??void 0:void 0,_=h&&g===r&&(u||!l.isLoading||h.length>l.messages.length||h.length===l.messages.length&&dN(h)>dN(l.messages))?h:l.messages,k=(0,el.useDeferredValue)(_),N=(0,el.useCallback)(()=>{let t=e?.config??{},n={...t.configurable??{}};return E&&(n.model=E.model,E.model_provider&&(n.model_provider=E.model_provider)),{...t,configurable:n}},[e?.config,E]),w=(0,el.useCallback)(e=>{d(void 0),f(null),b(null),m(null),y.current+=1;let n={id:dx(),type:"human",content:e};c.current.submit({messages:[n]},{optimisticValues:e=>({messages:[...e.messages??[],n]}),config:N(),streamSubgraphs:!0,streamMode:["updates"],streamResumable:!0,onDisconnect:"continue"}),t?.()},[N,t]),I=(0,el.useCallback)(async e=>{r&&await i.threads.updateState(r,{values:{files:e}})},[i,r]),C=(0,el.useCallback)(e=>{d(void 0),f(null),b(null),m(null),y.current+=1,c.current.submit(null,{command:{resume:e},config:N(),streamSubgraphs:!0,streamMode:["updates"],streamResumable:!0,onDisconnect:"continue"}),t?.()},[N,t]),R=(0,el.useCallback)(()=>{c.current.stop()},[]);return{stream:l,todos:l.values.todos??[],files:l.values.files??{},email:l.values.email,asyncTasks:l.values.async_tasks??{},summarizationEvent:function(e){if(!e||"object"!=typeof e)return null;let t=e.summary_message,n="string"==typeof t?.content?t.content:"";if(!n)return null;let r=e.cutoff_index,a=e.file_path;return{cutoffIndex:"number"==typeof r&&r>=0?r:0,content:n,filePath:"string"==typeof a?a:null}}(l.values._summarization_event),ui:l.values.ui,setFiles:I,messages:k,isLoading:l.isLoading,isThreadLoading:l.isThreadLoading,interrupt:A,sendMessage:w,stopStream:R,resumeInterrupt:C,subAgentActivity:s,modelOverride:E,setModelOverride:T}}({activeAssistant:t,onHistoryRevalidate:n,thread:r});return(0,eo.jsx)(dC.Provider,{value:a,children:e})}let dC=(0,el.createContext)(void 0);function dR(){let e=(0,el.useContext)(dC);if(void 0===e)throw Error("useChatContext must be used within a ChatProvider");return e}let dO=nf("square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]),dL=nf("arrow-up",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]),dD=nf("circle-check-big",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]),dP=nf("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),dM=nf("file",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]]),dF=nf("folder-open",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]),dj=nf("shield-check",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]),dU=nf("sparkles",[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]]),dB=nf("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),dH=nf("paperclip",[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",key:"1miecu"}]]),dz=nf("corner-down-right",[["path",{d:"m15 10 5 5-5 5",key:"qqa56n"}],["path",{d:"M4 4v7a4 4 0 0 0 4 4h12",key:"z08zvw"}]]),dG=nf("ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]),d$=nf("list-x",[["path",{d:"M11 12H3",key:"51ecnj"}],["path",{d:"M16 6H3",key:"1wxfjs"}],["path",{d:"M16 18H3",key:"12xzn7"}],["path",{d:"m19 10-4 4",key:"1tz659"}],["path",{d:"m15 10 4 4",key:"1n7nei"}]]),dq=nf("bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]),dV=el.default.memo(({subAgent:e,onClick:t,isExpanded:n=!0})=>{let r="pending"===e.status;return(0,eo.jsx)("div",{className:"w-fit max-w-[70vw] overflow-hidden rounded-lg bg-card",children:(0,eo.jsxs)(rm,{variant:"ghost",size:"sm",onClick:t,className:"flex w-full items-center justify-between gap-2 px-3 py-2 text-left",children:[(0,eo.jsx)("span",{className:"bg-[var(--brand)]/10 flex size-5 shrink-0 items-center justify-center rounded-md text-[var(--brand)]",children:r?(0,eo.jsx)(sT,{className:"size-3.5 animate-spin","aria-hidden":"true"}):(0,eo.jsx)(dq,{className:"size-3.5","aria-hidden":"true"})}),(0,eo.jsx)("span",{className:"truncate text-sm font-semibold text-foreground",children:e.subAgentName}),(0,eo.jsx)("span",{className:"text-xs font-normal text-muted-foreground",children:"subagent"}),n?(0,eo.jsx)(cD,{size:14,className:"ml-auto shrink-0 text-muted-foreground"}):(0,eo.jsx)(cL,{size:14,className:"ml-auto shrink-0 text-muted-foreground"})]})})});dV.displayName="SubAgentIndicator";let dW=nf("terminal",[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]]),dY=nf("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]),dK=nf("circle-stop",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["rect",{x:"9",y:"9",width:"6",height:"6",rx:"1",key:"1ssd4o"}]]),dX=el.createContext(null);function dZ(){let e=el.useContext(dX);if(!e)throw Error("useStreamContext must be used within a LoadExternalComponent");return new Proxy(e,{get:(e,t)=>"meta"===t?e.meta:e.stream[t]})}let dQ=new class{cache={};boundCache={};callbacks={};respond(e,t,n){this.cache[e]={comp:t,target:n},this.callbacks[e]?.forEach(e=>e(t,n))}getBoundStore(e){return this.boundCache[e]??={subscribe:t=>(this.callbacks[e]??=[],this.callbacks[e].push(t),()=>{this.callbacks[e]=this.callbacks[e].filter(e=>e!==t)}),getSnapshot:()=>this.cache[e]},this.boundCache[e]}},dJ=Symbol.for("LGUI_EXT_STORE"),d0=Symbol.for("LGUI_REQUIRE"),d1=Symbol.for("LGUI_REQUIRE_EXTRA");function d2({stream:e,namespace:t,message:n,meta:r,fallback:a,components:i,...s}){let o=el.useRef(null),l=`child-shadow-${el.useId()}`,c=el.useMemo(()=>dQ.getBoundStore(l),[l]),u=el.useSyncExternalStore(c.subscribe,c.getSnapshot),d=i?.[n.name],p=null!=d,m=null;(e=>!!el.isValidElement(e)||null==e||"string"==typeof e||"number"==typeof e||"bigint"==typeof e||"boolean"==typeof e||null!=e&&"object"==typeof e&&Symbol.iterator in e||null!=e&&"object"==typeof e&&"then"in e&&"function"==typeof e.then)(a)?m=a:"object"==typeof a&&null!=a&&(m=a?.[n.name]);let h=t??e.assistantId,f=e.client["~ui"];return(el.useEffect(()=>{p||f.getComponent(h,n.name).then(e=>{let t=o.current;if(!t)return;let n=t.shadowRoot??t.attachShadow({mode:"open"}),r=document.createRange().createContextualFragment(e.replace("{{shadowRootId}}",l));n.appendChild(r)})},[f,h,n.name,l,p]),p)?(0,eo.jsx)(dX.Provider,{value:{stream:e,meta:r},children:el.createElement(d,n.props)}):(0,eo.jsxs)(eo.Fragment,{children:[(0,eo.jsx)("div",{id:l,ref:o,...s}),(0,eo.jsx)(dX.Provider,{value:{stream:e,meta:r},children:u?.target!=null?eD.createPortal(el.createElement(u.comp,n.props),u.target):m})]})}"u">typeof window&&(window[dJ]=dQ,window[d0]=e=>{if("react"===e)return el;if("react-dom"===e)return eD;if("react/jsx-runtime"===e)return eo;if("@langchain/langgraph-sdk/react"===e)return{useStream:dg};if("@langchain/langgraph-sdk/react-ui"===e)return{useStreamContext:dZ,LoadExternalComponent:()=>{throw Error("Nesting LoadExternalComponent is not supported")}};if(null!=window[d1]&&"object"==typeof window[d1]&&e in window[d1])return window[d1][e];throw Error(`Unknown module...: ${e}`)});let d3=el.forwardRef(({className:e,...t},n)=>(0,eo.jsx)("textarea",{className:n3("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:n,...t}));d3.displayName="Textarea";function d4({actionRequest:e,reviewConfig:t,onResume:n,isLoading:r,onSubmitted:a}){let[i,s]=(0,el.useState)(""),[o,l]=(0,el.useState)(!1),[c,u]=(0,el.useState)({}),[d,p]=(0,el.useState)(!1),[m,h]=(0,el.useState)(!1),f=(0,el.useMemo)(()=>{var t;return(t=e.args)&&"object"==typeof t?t:{}},[e.args]),g=t?.allowedDecisions??t?.allowed_decisions??["approve","reject","edit"],b=e=>{(0,eD.flushSync)(()=>{h(!0),a&&a()}),n(e)};return m?null:(0,eo.jsxs)("div",{className:"w-full rounded-md border border-border bg-muted/30 p-4",children:[(0,eo.jsxs)("div",{className:"mb-3 flex items-center gap-2 text-foreground",children:[(0,eo.jsx)(dY,{size:16,className:"text-yellow-600 dark:text-yellow-400","aria-hidden":"true"}),(0,eo.jsx)("span",{className:"text-xs font-semibold uppercase tracking-wider",children:"Approval Required"})]}),e.description&&(0,eo.jsx)("p",{className:"mb-3 text-sm text-muted-foreground",children:e.description}),(0,eo.jsxs)("div",{className:"mb-4 rounded-sm border border-border bg-background p-3",children:[(0,eo.jsxs)("div",{className:"mb-2",children:[(0,eo.jsx)("span",{className:"text-xs font-medium uppercase tracking-wider text-muted-foreground",children:"Tool"}),(0,eo.jsx)("p",{className:"mt-1 font-mono text-sm font-medium text-foreground",children:e.name})]}),o?(0,eo.jsxs)("div",{children:[(0,eo.jsx)("span",{className:"text-xs font-medium uppercase tracking-wider text-muted-foreground",children:"Edit Arguments"}),(0,eo.jsx)("div",{className:"mt-2 space-y-3",children:Object.entries(f).map(([e,t])=>(0,eo.jsxs)("div",{children:[(0,eo.jsx)("label",{className:"mb-1 block text-xs font-medium text-foreground",children:e}),(0,eo.jsx)(d3,{value:void 0!==c[e]?"string"==typeof c[e]?c[e]:dv(c[e]):"string"==typeof t?t:dv(t),onChange:t=>((e,t)=>{try{let n=t.trim().startsWith("{")||t.trim().startsWith("[")?JSON.parse(t):t;u(t=>({...t,[e]:n}))}catch{u(n=>({...n,[e]:t}))}})(e,t.target.value),className:"font-mono text-xs",rows:"string"==typeof t&&t.length<100?2:4,disabled:r})]},e))})]}):(0,eo.jsxs)("div",{children:[(0,eo.jsx)("span",{className:"text-xs font-medium uppercase tracking-wider text-muted-foreground",children:"Arguments"}),(0,eo.jsx)("pre",{className:"mt-2 overflow-x-auto whitespace-pre-wrap break-all rounded-sm border border-border bg-muted/40 p-2 font-mono text-xs text-foreground",children:dv(f)})]})]}),d&&!o&&(0,eo.jsxs)("div",{className:"mb-4",children:[(0,eo.jsx)("label",{className:"mb-2 block text-xs font-medium text-foreground",children:"Rejection Message (optional)"}),(0,eo.jsx)(d3,{value:i,onChange:e=>s(e.target.value),placeholder:"Explain why you're rejecting this action…",className:"text-sm",rows:2,disabled:r})]}),(0,eo.jsx)("div",{className:"flex flex-wrap gap-2",children:o?(0,eo.jsxs)(eo.Fragment,{children:[(0,eo.jsx)(rm,{type:"button",variant:"outline",size:"sm",onClick:()=>{l(!1),u({})},disabled:r,children:"Cancel"}),(0,eo.jsxs)(rm,{type:"button",size:"sm",onClick:()=>{o&&(b({decisions:[{type:"edit",edited_action:{name:e.name,args:c}}]}),l(!1),u({}))},disabled:r,className:"bg-green-600 text-white hover:bg-green-700 dark:bg-green-600 dark:hover:bg-green-700",children:[(0,eo.jsx)(cO,{size:14,"aria-hidden":"true"}),r?"Saving…":"Save & Approve"]})]}):d?(0,eo.jsxs)(eo.Fragment,{children:[(0,eo.jsx)(rm,{type:"button",variant:"outline",size:"sm",onClick:()=>{p(!1),s("")},disabled:r,children:"Cancel"}),(0,eo.jsx)(rm,{type:"button",variant:"destructive",size:"sm",onClick:()=>{b({decisions:[{type:"reject",message:i.trim()}]})},disabled:r,children:r?"Rejecting…":"Confirm Reject"})]}):(0,eo.jsxs)(eo.Fragment,{children:[g.includes("reject")&&(0,eo.jsxs)(rm,{type:"button",variant:"outline",size:"sm",onClick:()=>{d?b({decisions:[{type:"reject",message:i.trim()}]}):p(!0)},disabled:r,className:"text-destructive hover:bg-destructive/10",children:[(0,eo.jsx)(ng,{size:14,"aria-hidden":"true"}),"Reject"]}),g.includes("edit")&&(0,eo.jsxs)(rm,{type:"button",variant:"outline",size:"sm",onClick:()=>{l(!0),u(function(e){try{return JSON.parse(dv(e))}catch{return{...e}}}(f)),p(!1)},disabled:r,children:[(0,eo.jsx)(sA,{size:14,"aria-hidden":"true"}),"Edit"]}),g.includes("approve")&&(0,eo.jsxs)(rm,{type:"button",size:"sm",onClick:()=>{b({decisions:[{type:"approve"}]})},disabled:r,className:n3("bg-green-600 text-white hover:bg-green-700","dark:bg-green-600 dark:hover:bg-green-700"),children:[(0,eo.jsx)(cO,{size:14,"aria-hidden":"true"}),r?"Approving…":"Approve"]})]})})]})}function d5(e,t){return dv(e,2*!!t?.pretty)}let d6=el.default.memo(({toolCall:e,uiComponent:t,stream:n,graphId:r,actionRequest:a,actionRequestKey:i,actionRequestSubmitted:s,onActionRequestSubmitted:o,reviewConfig:l,onResume:c,isLoading:u,autoApprove:d,compact:p=!1})=>{let[m,h]=(0,el.useState)(()=>!!t||!!a&&!d),[f,g]=(0,el.useState)({}),b=(0,el.useMemo)(()=>a?`${e.id}:${a.name}:${d5(a.args,{pretty:!1})}`:null,[a,e.id]),y=i??b,[E,x]=(0,el.useState)(null);(0,el.useEffect)(()=>{y?x(e=>e&&e!==y?null:e):x(null)},[y]),(0,el.useEffect)(()=>{t&&h(!0)},[t]);let S=(0,el.useRef)(a);(0,el.useEffect)(()=>{let e=!!S.current,t=!!a;!t||e||d?!t&&e&&h(!1):h(!0),S.current=a},[a,d]);let{name:T,args:v,result:A,status:_}=(0,el.useMemo)(()=>{let t=e.args;return{name:function(e,t){if(!e)return"Unknown Tool";if("ToolSelectionResponse"===e)return"Adaptive tool selection";let n=e.toLowerCase();if("think_tool"===n)return"Reflection";if("read_file"===n||"write_file"===n||"edit_file"===n){let e,r=function(e){if(e&&"object"==typeof e)return e;if("string"==typeof e)try{let t=JSON.parse(e);if(t&&"object"==typeof t)return t}catch{}return{}}(t),a=String(r.path??r.file_path??"");if("/memories"===(e=(a||"").trim())||e.startsWith("/memories/"))return"read_file"===n?"Reading memory":"Updating memory";if("read_file"===n){let e=function(e){let t=(e||"").trim();if(!t.startsWith("/skills/"))return"";let[n]=t.slice(8).split("/");return n||""}(a);if(e)return`Skill: ${e}`}}return e}(e.name,t),args:t&&"object"==typeof t?t:{},result:e.result,status:e.status||"completed"}},[e]),k=(0,el.useMemo)(()=>{switch(_){case"completed":return(0,eo.jsx)(dD,{});case"error":return(0,eo.jsx)(dY,{size:14,className:"text-destructive"});case"pending":return(0,eo.jsx)(sT,{size:14,className:"animate-spin"});case"interrupted":return(0,eo.jsx)(dK,{size:14,className:"text-orange-500"});default:return(0,eo.jsx)(dW,{size:14,className:"text-muted-foreground"})}},[_]),N=(0,el.useCallback)(()=>{h(e=>!e)},[]),w=(0,el.useCallback)(e=>{g(t=>({...t,[e]:!t[e]}))},[]),I=null!=A,C=I||Object.keys(v).length>0,R=s??E===y,O=a&&c&&(!y||!R);return(0,eo.jsxs)("div",{className:n3("w-full overflow-hidden rounded-lg border-none shadow-none outline-none transition-colors duration-200 focus-within:ring-2 focus-within:ring-ring hover:bg-accent",p&&"rounded-md",m&&C&&"bg-accent"),children:[(0,eo.jsx)(rm,{variant:"ghost",size:"sm",onClick:N,className:n3("flex w-full items-center justify-between gap-2 border-none px-2 py-2 text-left shadow-none outline-none disabled:cursor-default",p&&"h-auto min-h-8 py-1.5"),disabled:!C,children:(0,eo.jsxs)("div",{className:"flex w-full items-center justify-between gap-2",children:[(0,eo.jsxs)("div",{className:"flex items-center gap-2",children:[k,(0,eo.jsx)("span",{className:n3("text-[15px] font-medium tracking-[-0.6px] text-foreground",p&&"text-xs tracking-normal"),children:T})]}),C&&(m?(0,eo.jsx)(cD,{size:14,className:"shrink-0 text-muted-foreground"}):(0,eo.jsx)(cL,{size:14,className:"shrink-0 text-muted-foreground"}))]})}),m&&C&&(0,eo.jsx)("div",{className:n3("px-4 pb-4",p&&"px-2 pb-2"),children:t&&n&&r?(0,eo.jsx)("div",{className:"mt-4",children:(0,eo.jsx)(d2,{stream:n,message:t,namespace:r,meta:{status:_,args:v,result:A??"No Result Yet"}},t.id)}):O?(0,eo.jsx)("div",{className:"mt-4",children:(0,eo.jsx)(d4,{actionRequest:a,reviewConfig:l,onResume:c,isLoading:u,onSubmitted:()=>{x(y),y&&o?.(y),h(!1)}})}):(0,eo.jsxs)(eo.Fragment,{children:[Object.keys(v).length>0&&(0,eo.jsxs)("div",{className:n3("mt-4",p&&"mt-2"),children:[(0,eo.jsx)("h4",{className:"mb-1 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"Arguments"}),(0,eo.jsx)("div",{className:"space-y-2",children:Object.entries(v).map(([e,t])=>{let n,r=(n=d5(t,{pretty:!1}).replace(/\s+/g," ").trim()).length>80?n.slice(0,79)+"…":n,a=d5(t,{pretty:!0}),i=r!==a,s=i&&!!f[e],o=(0,eo.jsxs)("span",{className:"flex min-w-0 flex-1 items-baseline gap-2",children:[(0,eo.jsxs)("span",{className:"shrink-0 font-mono",children:[e,":"]}),(0,eo.jsx)("span",{className:"truncate font-mono font-normal text-muted-foreground",children:r})]});return(0,eo.jsxs)("div",{className:"rounded-sm border border-border",children:[i?(0,eo.jsxs)("button",{type:"button",onClick:()=>w(e),className:"flex w-full items-center justify-between gap-2 bg-muted/30 p-2 text-left text-xs font-medium transition-colors hover:bg-muted/50 focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring",children:[o,s?(0,eo.jsx)(cD,{size:12,className:"shrink-0 text-muted-foreground"}):(0,eo.jsx)(cL,{size:12,className:"shrink-0 text-muted-foreground"})]}):(0,eo.jsx)("div",{className:"flex items-center gap-2 bg-muted/30 p-2 text-xs font-medium",children:o}),s&&(0,eo.jsx)("div",{className:n3("border-t border-border bg-muted/20 p-2",p&&"p-1.5"),children:(0,eo.jsx)("pre",{className:n3("m-0 overflow-x-auto whitespace-pre-wrap break-all font-mono text-xs leading-6 text-foreground",p&&"text-[11px] leading-5"),children:a})})]},e)})})]}),I&&(0,eo.jsxs)("div",{className:n3("mt-4",p&&"mt-2"),children:[(0,eo.jsx)("h4",{className:"mb-1 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"Result"}),(0,eo.jsx)("pre",{className:n3("m-0 overflow-x-auto whitespace-pre-wrap break-all rounded-sm border border-border bg-muted/40 p-2 font-mono text-xs leading-7 text-foreground",p&&"p-1.5 text-[11px] leading-5"),children:d5(A,{pretty:!0})})]})]})})]})});function d9(){}function d8(){}function d7(e){let t=[],n=String(e||""),r=n.indexOf(","),a=0,i=!1;for(;!i;){-1===r&&(r=n.length,i=!0);let e=n.slice(a,r).trim();(e||!i)&&t.push(e),a=r+1,r=n.indexOf(",",a)}return t}function pe(e,t){let n=t||{};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}d6.displayName="ToolCallBox";let pt=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,pn=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,pr={};function pa(e,t){return((t||pr).jsx?pn:pt).test(e)}let pi=/[ \t\n\f\r]/g;function ps(e){return""===e.replace(pi,"")}class po{constructor(e,t){this.attribute=t,this.property=e}}po.prototype.attribute="",po.prototype.booleanish=!1,po.prototype.boolean=!1,po.prototype.commaOrSpaceSeparated=!1,po.prototype.commaSeparated=!1,po.prototype.defined=!1,po.prototype.mustUseProperty=!1,po.prototype.number=!1,po.prototype.overloadedBoolean=!1,po.prototype.property="",po.prototype.spaceSeparated=!1,po.prototype.space=void 0;let pl=0,pc=pg(),pu=pg(),pd=pg(),pp=pg(),pm=pg(),ph=pg(),pf=pg();function pg(){return 2**++pl}e.s(["boolean",0,pc,"booleanish",0,pu,"commaOrSpaceSeparated",0,pf,"commaSeparated",0,ph,"number",0,pp,"overloadedBoolean",0,pd,"spaceSeparated",0,pm],400744);var pb=e.i(400744);let py=Object.keys(pb);class pE extends po{constructor(e,t,n,r){let a=-1;if(super(e,t),function(e,t,n){n&&(e[t]=n)}(this,"space",r),"number"==typeof n)for(;++a<py.length;){const e=py[a];!function(e,t,n){n&&(e[t]=n)}(this,py[a],(n&pb[e])===pb[e])}}}function px(e){return e.toLowerCase()}pE.prototype.defined=!0;let pS=/[A-Z]/g,pT=/-[a-z]/g,pv=/^data[-\w.:]+$/i;function pA(e,t){let n=px(t),r=t,a=po;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&pv.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(pT,pk);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!pT.test(e)){let n=e.replace(pS,p_);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}a=pE}return new a(r,t)}function p_(e){return"-"+e.toLowerCase()}function pk(e){return e.charAt(1).toUpperCase()}let pN={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};class pw{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function pI(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new pw(n,r,t)}function pC(e){let t={},n={};for(let[r,a]of Object.entries(e.properties)){let i=new pE(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[px(r)]=r,n[px(i.attribute)]=r}return new pw(t,n,e.space)}pw.prototype.normal={},pw.prototype.property={},pw.prototype.space=void 0;let pR=pC({properties:{ariaActiveDescendant:null,ariaAtomic:pu,ariaAutoComplete:null,ariaBusy:pu,ariaChecked:pu,ariaColCount:pp,ariaColIndex:pp,ariaColSpan:pp,ariaControls:pm,ariaCurrent:null,ariaDescribedBy:pm,ariaDetails:null,ariaDisabled:pu,ariaDropEffect:pm,ariaErrorMessage:null,ariaExpanded:pu,ariaFlowTo:pm,ariaGrabbed:pu,ariaHasPopup:null,ariaHidden:pu,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:pm,ariaLevel:pp,ariaLive:null,ariaModal:pu,ariaMultiLine:pu,ariaMultiSelectable:pu,ariaOrientation:null,ariaOwns:pm,ariaPlaceholder:null,ariaPosInSet:pp,ariaPressed:pu,ariaReadOnly:pu,ariaRelevant:null,ariaRequired:pu,ariaRoleDescription:pm,ariaRowCount:pp,ariaRowIndex:pp,ariaRowSpan:pp,ariaSelected:pu,ariaSetSize:pp,ariaSort:null,ariaValueMax:pp,ariaValueMin:pp,ariaValueNow:pp,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function pO(e,t){return t in e?e[t]:t}function pL(e,t){return pO(e,t.toLowerCase())}let pD=pC({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ph,acceptCharset:pm,accessKey:pm,action:null,allow:null,allowFullScreen:pc,allowPaymentRequest:pc,allowUserMedia:pc,alt:null,as:null,async:pc,autoCapitalize:null,autoComplete:pm,autoFocus:pc,autoPlay:pc,blocking:pm,capture:null,charSet:null,checked:pc,cite:null,className:pm,cols:pp,colSpan:null,content:null,contentEditable:pu,controls:pc,controlsList:pm,coords:pp|ph,crossOrigin:null,data:null,dateTime:null,decoding:null,default:pc,defer:pc,dir:null,dirName:null,disabled:pc,download:pd,draggable:pu,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:pc,formTarget:null,headers:pm,height:pp,hidden:pd,high:pp,href:null,hrefLang:null,htmlFor:pm,httpEquiv:pm,id:null,imageSizes:null,imageSrcSet:null,inert:pc,inputMode:null,integrity:null,is:null,isMap:pc,itemId:null,itemProp:pm,itemRef:pm,itemScope:pc,itemType:pm,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:pc,low:pp,manifest:null,max:null,maxLength:pp,media:null,method:null,min:null,minLength:pp,multiple:pc,muted:pc,name:null,nonce:null,noModule:pc,noValidate:pc,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:pc,optimum:pp,pattern:null,ping:pm,placeholder:null,playsInline:pc,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:pc,referrerPolicy:null,rel:pm,required:pc,reversed:pc,rows:pp,rowSpan:pp,sandbox:pm,scope:null,scoped:pc,seamless:pc,selected:pc,shadowRootClonable:pc,shadowRootDelegatesFocus:pc,shadowRootMode:null,shape:null,size:pp,sizes:null,slot:null,span:pp,spellCheck:pu,src:null,srcDoc:null,srcLang:null,srcSet:null,start:pp,step:null,style:null,tabIndex:pp,target:null,title:null,translate:null,type:null,typeMustMatch:pc,useMap:null,value:pu,width:pp,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:pm,axis:null,background:null,bgColor:null,border:pp,borderColor:null,bottomMargin:pp,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:pc,declare:pc,event:null,face:null,frame:null,frameBorder:null,hSpace:pp,leftMargin:pp,link:null,longDesc:null,lowSrc:null,marginHeight:pp,marginWidth:pp,noResize:pc,noHref:pc,noShade:pc,noWrap:pc,object:null,profile:null,prompt:null,rev:null,rightMargin:pp,rules:null,scheme:null,scrolling:pu,standby:null,summary:null,text:null,topMargin:pp,valueType:null,version:null,vAlign:null,vLink:null,vSpace:pp,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:pc,disableRemotePlayback:pc,prefix:null,property:null,results:pp,security:null,unselectable:null},space:"html",transform:pL}),pP=pC({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:pf,accentHeight:pp,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:pp,amplitude:pp,arabicForm:null,ascent:pp,attributeName:null,attributeType:null,azimuth:pp,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:pp,by:null,calcMode:null,capHeight:pp,className:pm,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:pp,diffuseConstant:pp,direction:null,display:null,dur:null,divisor:pp,dominantBaseline:null,download:pc,dx:null,dy:null,edgeMode:null,editable:null,elevation:pp,enableBackground:null,end:null,event:null,exponent:pp,externalResourcesRequired:null,fill:null,fillOpacity:pp,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:ph,g2:ph,glyphName:ph,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:pp,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:pp,horizOriginX:pp,horizOriginY:pp,id:null,ideographic:pp,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:pp,k:pp,k1:pp,k2:pp,k3:pp,k4:pp,kernelMatrix:pf,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:pp,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:pp,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:pp,overlineThickness:pp,paintOrder:null,panose1:null,path:null,pathLength:pp,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:pm,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:pp,pointsAtY:pp,pointsAtZ:pp,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:pf,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:pf,rev:pf,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:pf,requiredFeatures:pf,requiredFonts:pf,requiredFormats:pf,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:pp,specularExponent:pp,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:pp,strikethroughThickness:pp,string:null,stroke:null,strokeDashArray:pf,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:pp,strokeOpacity:pp,strokeWidth:null,style:null,surfaceScale:pp,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:pf,tabIndex:pp,tableValues:null,target:null,targetX:pp,targetY:pp,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:pf,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:pp,underlineThickness:pp,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:pp,values:null,vAlphabetic:pp,vMathematical:pp,vectorEffect:null,vHanging:pp,vIdeographic:pp,version:null,vertAdvY:pp,vertOriginX:pp,vertOriginY:pp,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:pp,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:pO}),pM=pC({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),pF=pC({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:pL}),pj=pC({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),pU=pI([pR,pD,pM,pF,pj],"html"),pB=pI([pR,pP,pM,pF,pj],"svg");function pH(e){let t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function pz(e){return e.join(" ").trim()}var pG=e.i(515511);let p$=pV("end"),pq=pV("start");function pV(e){return function(t){let n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function pW(e){let t=pq(e),n=p$(e);if(t&&n)return{start:t,end:n}}function pY(e){return e&&"object"==typeof e?"position"in e||"type"in e?pX(e.position):"start"in e||"end"in e?pX(e):"line"in e||"column"in e?pK(e):"":""}function pK(e){return pZ(e&&e.line)+":"+pZ(e&&e.column)}function pX(e){return pK(e&&e.start)+"-"+pK(e&&e.end)}function pZ(e){return e&&"number"==typeof e?e:1}class pQ extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",a={},i=!1;if(t&&(a="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!a.cause&&e&&(i=!0,r=e.message,a.cause=e),!a.ruleId&&!a.source&&"string"==typeof n){const e=n.indexOf(":");-1===e?a.ruleId=n:(a.source=n.slice(0,e),a.ruleId=n.slice(e+1))}if(!a.place&&a.ancestors&&a.ancestors){const e=a.ancestors[a.ancestors.length-1];e&&(a.place=e.position)}const s=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=s?s.line:void 0,this.name=pY(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=i&&a.cause&&"string"==typeof a.cause.stack?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}pQ.prototype.file="",pQ.prototype.name="",pQ.prototype.reason="",pQ.prototype.message="",pQ.prototype.stack="",pQ.prototype.column=void 0,pQ.prototype.line=void 0,pQ.prototype.ancestors=void 0,pQ.prototype.cause=void 0,pQ.prototype.fatal=void 0,pQ.prototype.place=void 0,pQ.prototype.ruleId=void 0,pQ.prototype.source=void 0;let pJ={}.hasOwnProperty,p0=new Map,p1=/[A-Z]/g,p2=new Set(["table","tbody","thead","tfoot","tr"]),p3=new Set(["td","th"]),p4="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function p5(e,t,n){var r,a,i,s,o,l,c,u,d;let p,m,h,f,g,b,y,E,x,S,T;return"element"===t.type?(r=e,a=t,i=n,m=p=r.schema,"svg"===a.tagName.toLowerCase()&&"html"===p.space&&(r.schema=pB),r.ancestors.push(a),h=p7(r,a.tagName,!1),f=function(e,t){let n,r,a={};for(r in t.properties)if("children"!==r&&pJ.call(t.properties,r)){let i=function(e,t,n){let r=pA(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?pe(n):pz(n)),"style"===r.property){let t="object"==typeof n?n:function(e,t){try{return(0,pG.default)(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};let t=new pQ("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw t.file=e.filePath||void 0,t.url=p4+"#cannot-parse-style-attribute",t}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){let t,n={};for(t in e)pJ.call(e,t)&&(n[function(e){let t=e.replace(p1,mt);return"ms-"===t.slice(0,3)&&(t="-"+t),t}(t)]=e[t]);return n}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?pN[r.property]||r.property:r.attribute,n]}}(e,r,t.properties[r]);if(i){let[r,s]=i;e.tableCellAlignToStyle&&"align"===r&&"string"==typeof s&&p3.has(t.tagName)?n=s:a[r]=s}}return n&&((a.style||(a.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=n),a}(r,a),g=p8(r,a),p2.has(a.tagName)&&(g=g.filter(function(e){return"string"!=typeof e||!("object"==typeof e?"text"===e.type&&ps(e.value):ps(e))})),p6(r,f,h,a),p9(f,g),r.ancestors.pop(),r.schema=p,r.create(a,h,f,i)):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return d9("ExpressionStatement"===n.type),e.evaluater.evaluateExpression(n.expression)}me(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?(s=e,o=t,l=n,y=b=s.schema,"svg"===o.name&&"html"===b.space&&(s.schema=pB),s.ancestors.push(o),E=null===o.name?s.Fragment:p7(s,o.name,!0),x=function(e,t){let n={};for(let r of t.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];d9("ExpressionStatement"===t.type);let a=t.expression;d9("ObjectExpression"===a.type);let i=a.properties[0];d9("SpreadElement"===i.type),Object.assign(n,e.evaluater.evaluateExpression(i.argument))}else me(e,t.position);else{let a,i=r.name;if(r.value&&"object"==typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];d9("ExpressionStatement"===t.type),a=e.evaluater.evaluateExpression(t.expression)}else me(e,t.position);else a=null===r.value||r.value;n[i]=a}return n}(s,o),S=p8(s,o),p6(s,x,E,o),p9(x,S),s.ancestors.pop(),s.schema=b,s.create(o,E,x,l)):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);me(e,t.position)}(e,t):"root"===t.type?(c=e,u=t,d=n,p9(T={},p8(c,u)),c.create(u,c.Fragment,T,d)):"text"===t.type?t.value:void 0}function p6(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function p9(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function p8(e,t){let n=[],r=-1,a=e.passKeys?new Map:p0;for(;++r<t.children.length;){let i,s=t.children[r];if(e.passKeys){let e="element"===s.type?s.tagName:"mdxJsxFlowElement"===s.type||"mdxJsxTextElement"===s.type?s.name:void 0;if(e){let t=a.get(e)||0;i=e+"-"+t,a.set(e,t+1)}}let o=p5(e,s,i);void 0!==o&&n.push(o)}return n}function p7(e,t,n){let r;if(n)if(t.includes(".")){let e,n=t.split("."),a=-1;for(;++a<n.length;){let t=pa(n[a])?{type:"Identifier",name:n[a]}:{type:"Literal",value:n[a]};e=e?{type:"MemberExpression",object:e,property:t,computed:!!(a&&"Literal"===t.type),optional:!1}:t}d9(e,"always a result"),r=e}else r=pa(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else r={type:"Literal",value:t};if("Literal"===r.type){let t=r.value;return pJ.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);me(e)}function me(e,t){let n=new pQ("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=p4+"#cannot-handle-mdx-estrees-without-createevaluater",n}function mt(e){return"-"+e.toLowerCase()}let mn={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},mr={};function ma(e,t){let n=t||mr;return mi(e,"boolean"!=typeof n.includeImageAlt||n.includeImageAlt,"boolean"!=typeof n.includeHtml||n.includeHtml)}function mi(e,t,n){var r;if((r=e)&&"object"==typeof r){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return ms(e.children,t,n)}return Array.isArray(e)?ms(e,t,n):""}function ms(e,t,n){let r=[],a=-1;for(;++a<e.length;)r[a]=mi(e[a],t,n);return r.join("")}function mo(e,t,n,r){let a,i=e.length,s=0;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)(a=Array.from(r)).unshift(t,n),e.splice(...a);else for(n&&e.splice(t,n);s<r.length;)(a=r.slice(s,s+1e4)).unshift(t,0),e.splice(...a),s+=1e4,t+=1e4}function ml(e,t){return e.length>0?(mo(e,e.length,0,t),e):t}let mc={}.hasOwnProperty;function mu(e){let t={},n=-1;for(;++n<e.length;)!function(e,t){let n;for(n in t){let r,a=(mc.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];if(i)for(r in i){mc.call(a,r)||(a[r]=[]);let e=i[r];!function(e,t){let n=-1,r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);mo(e,0,0,r)}(a[r],Array.isArray(e)?e:e?[e]:[])}}}(t,e[n]);return t}let md=mv(/[A-Za-z]/),mp=mv(/[\dA-Za-z]/),mm=mv(/[#-'*+\--9=?A-Z^-~]/);function mh(e){return null!==e&&(e<32||127===e)}let mf=mv(/\d/),mg=mv(/[\dA-Fa-f]/),mb=mv(/[!-/:-@[-`{-~]/);function my(e){return null!==e&&e<-2}function mE(e){return null!==e&&(e<0||32===e)}function mx(e){return -2===e||-1===e||32===e}let mS=mv(/\p{P}|\p{S}/u),mT=mv(/\s/);function mv(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function mA(e,t,n,r){let a=r?r-1:1/0,i=0;return function(r){return mx(r)?(e.enter(n),function r(s){return mx(s)&&i++<a?(e.consume(s),r):(e.exit(n),t(s))}(r)):t(r)}}let m_={tokenize:function(e){let t,n=e.attempt(this.parser.constructs.contentInitial,function(t){return null===t?void e.consume(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),mA(e,n,"linePrefix"))},function(n){return e.enter("paragraph"),function n(r){let a=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=a),t=a,function t(r){if(null===r){e.exit("chunkText"),e.exit("paragraph"),e.consume(r);return}return my(r)?(e.consume(r),e.exit("chunkText"),n):(e.consume(r),t)}(r)}(n)});return n}},mk={tokenize:function(e){let t,n,r,a=this,i=[],s=0;return o;function o(t){if(s<i.length){let n=i[s];return a.containerState=n[1],e.attempt(n[0].continuation,l,c)(t)}return c(t)}function l(e){if(s++,a.containerState._closeFlow){let n;a.containerState._closeFlow=void 0,t&&b();let r=a.events.length,i=r;for(;i--;)if("exit"===a.events[i][0]&&"chunkFlow"===a.events[i][1].type){n=a.events[i][1].end;break}g(s);let o=r;for(;o<a.events.length;)a.events[o][1].end={...n},o++;return mo(a.events,i+1,0,a.events.slice(r)),a.events.length=o,c(e)}return o(e)}function c(n){if(s===i.length){if(!t)return p(n);if(t.currentConstruct&&t.currentConstruct.concrete)return h(n);a.interrupt=!!(t.currentConstruct&&!t._gfmTableDynamicInterruptHack)}return a.containerState={},e.check(mN,u,d)(n)}function u(e){return t&&b(),g(s),p(e)}function d(e){return a.parser.lazy[a.now().line]=s!==i.length,r=a.now().offset,h(e)}function p(t){return a.containerState={},e.attempt(mN,m,h)(t)}function m(e){return s++,i.push([a.currentConstruct,a.containerState]),p(e)}function h(r){if(null===r){t&&b(),g(0),e.consume(r);return}return t=t||a.parser.flow(a.now()),e.enter("chunkFlow",{_tokenizer:t,contentType:"flow",previous:n}),function t(n){if(null===n){f(e.exit("chunkFlow"),!0),g(0),e.consume(n);return}return my(n)?(e.consume(n),f(e.exit("chunkFlow")),s=0,a.interrupt=void 0,o):(e.consume(n),t)}(r)}function f(e,i){let o=a.sliceStream(e);if(i&&o.push(null),e.previous=n,n&&(n.next=e),n=e,t.defineSkip(e.start),t.write(o),a.parser.lazy[e.start.line]){let e,n,i=t.events.length;for(;i--;)if(t.events[i][1].start.offset<r&&(!t.events[i][1].end||t.events[i][1].end.offset>r))return;let o=a.events.length,l=o;for(;l--;)if("exit"===a.events[l][0]&&"chunkFlow"===a.events[l][1].type){if(e){n=a.events[l][1].end;break}e=!0}for(g(s),i=o;i<a.events.length;)a.events[i][1].end={...n},i++;mo(a.events,l+1,0,a.events.slice(o)),a.events.length=i}}function g(t){let n=i.length;for(;n-- >t;){let t=i[n];a.containerState=t[1],t[0].exit.call(a,e)}i.length=t}function b(){t.write([null]),n=void 0,t=void 0,a.containerState._closeFlow=void 0}}},mN={tokenize:function(e,t,n){return mA(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},mw={partial:!0,tokenize:function(e,t,n){return function(t){return mx(t)?mA(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||my(e)?t(e):n(e)}}};class mI{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=null==t?1/0:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){this.setCursor(Math.trunc(e));let r=this.right.splice(this.right.length-(t||0),1/0);return n&&mC(this.left,n),r.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),mC(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),mC(this.right,e.reverse())}setCursor(e){if(e!==this.left.length&&(!(e>this.left.length)||0!==this.right.length)&&(!(e<0)||0!==this.left.length))if(e<this.left.length){let t=this.left.splice(e,1/0);mC(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);mC(this.left,t.reverse())}}}function mC(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function mR(e){let t,n,r,a,i,s,o,l={},c=-1,u=new mI(e);for(;++c<u.length;){for(;c in l;)c=l[c];if(t=u.get(c),c&&"chunkFlow"===t[1].type&&"listItemPrefix"===u.get(c-1)[1].type&&((r=0)<(s=t[1]._tokenizer.events).length&&"lineEndingBlank"===s[r][1].type&&(r+=2),r<s.length&&"content"===s[r][1].type))for(;++r<s.length&&"content"!==s[r][1].type;)"chunkText"===s[r][1].type&&(s[r][1]._isInFirstContentOfListItem=!0,r++);if("enter"===t[0])t[1].contentType&&(Object.assign(l,function(e,t){let n,r,a=e.get(t)[1],i=e.get(t)[2],s=t-1,o=[],l=a._tokenizer;!l&&(l=i.parser[a.contentType](a.start),a._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));let c=l.events,u=[],d={},p=-1,m=a,h=0,f=0,g=[0];for(;m;){for(;e.get(++s)[1]!==m;);o.push(s),!m._tokenizer&&(n=i.sliceStream(m),m.next||n.push(null),r&&l.defineSkip(m.start),m._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(n),m._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),r=m,m=m.next}for(m=a;++p<c.length;)"exit"===c[p][0]&&"enter"===c[p-1][0]&&c[p][1].type===c[p-1][1].type&&c[p][1].start.line!==c[p][1].end.line&&(f=p+1,g.push(f),m._tokenizer=void 0,m.previous=void 0,m=m.next);for(l.events=[],m?(m._tokenizer=void 0,m.previous=void 0):g.pop(),p=g.length;p--;){let t=c.slice(g[p],g[p+1]),n=o.pop();u.push([n,n+t.length-1]),e.splice(n,2,t)}for(u.reverse(),p=-1;++p<u.length;)d[h+u[p][0]]=h+u[p][1],h+=u[p][1]-u[p][0]-1;return d}(u,c)),c=l[c],o=!0);else if(t[1]._container){for(r=c,n=void 0;r--;)if("lineEnding"===(a=u.get(r))[1].type||"lineEndingBlank"===a[1].type)"enter"===a[0]&&(n&&(u.get(n)[1].type="lineEndingBlank"),a[1].type="lineEnding",n=r);else if("linePrefix"===a[1].type||"listItemIndent"===a[1].type);else break;n&&(t[1].end={...u.get(n)[1].start},(i=u.slice(n,c)).unshift(t),u.splice(n,c-n+1,i))}}return mo(e,0,1/0,u.slice(0)),!o}let mO={resolve:function(e){return mR(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?a(t):my(t)?e.check(mL,i,a)(t):(e.consume(t),r)}function a(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function i(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},mL={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),mA(e,a,"linePrefix")};function a(a){if(null===a||my(a))return n(a);let i=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(a):e.interrupt(r.parser.constructs.flow,n,t)(a)}}},mD={tokenize:function(e){let t=this,n=e.attempt(mw,function(r){return null===r?void e.consume(r):(e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n)},e.attempt(this.parser.constructs.flowInitial,r,mA(e,e.attempt(this.parser.constructs.flow,r,e.attempt(mO,r)),"linePrefix")));return n;function r(r){return null===r?void e.consume(r):(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n)}}},mP={resolveAll:mU()},mM=mj("string"),mF=mj("text");function mj(e){return{resolveAll:mU("text"===e?mB:void 0),tokenize:function(t){let n=this,r=this.parser.constructs[e],a=t.attempt(r,i,s);return i;function i(e){return l(e)?a(e):s(e)}function s(e){return null===e?void t.consume(e):(t.enter("data"),t.consume(e),o)}function o(e){return l(e)?(t.exit("data"),a(e)):(t.consume(e),o)}function l(e){if(null===e)return!0;let t=r[e],a=-1;if(t)for(;++a<t.length;){let e=t[a];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function mU(e){return function(t,n){let r,a=-1;for(;++a<=t.length;)void 0===r?t[a]&&"data"===t[a][1].type&&(r=a,a++):t[a]&&"data"===t[a][1].type||(a!==r+2&&(t[r][1].end=t[a-1][1].end,t.splice(r+2,a-r-2),a=r+2),r=void 0);return e?e(t,n):t}}function mB(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){let r,a=e[n-1][1],i=t.sliceStream(a),s=i.length,o=-1,l=0;for(;s--;){let e=i[s];if("string"==typeof e){for(o=e.length;32===e.charCodeAt(o-1);)l++,o--;if(o)break;o=-1}else if(-2===e)r=!0,l++;else if(-1===e);else{s++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(l=0),l){let i={type:n===e.length||r||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?o:a.start._bufferIndex+o,_index:a.start._index+s,line:a.end.line,column:a.end.column-l,offset:a.end.offset-l},end:{...a.end}};a.end={...i.start},a.start.offset===a.end.offset?Object.assign(a,i):(e.splice(n,0,["enter",i,t],["exit",i,t]),n+=2)}n++}return e}function mH(e){return null===e||mE(e)||mT(e)?1:mS(e)?2:void 0}function mz(e,t,n){let r=[],a=-1;for(;++a<e.length;){let i=e[a].resolveAll;i&&!r.includes(i)&&(t=i(t,n),r.push(i))}return t}let mG={name:"attention",resolveAll:function(e,t){let n,r,a,i,s,o,l,c,u=-1;for(;++u<e.length;)if("enter"===e[u][0]&&"attentionSequence"===e[u][1].type&&e[u][1]._close){for(n=u;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[u][1]).charCodeAt(0)){if((e[n][1]._close||e[u][1]._open)&&(e[u][1].end.offset-e[u][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[u][1].end.offset-e[u][1].start.offset)%3))continue;o=e[n][1].end.offset-e[n][1].start.offset>1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;let d={...e[n][1].end},p={...e[u][1].start};m$(d,-o),m$(p,o),i={type:o>1?"strongSequence":"emphasisSequence",start:d,end:{...e[n][1].end}},s={type:o>1?"strongSequence":"emphasisSequence",start:{...e[u][1].start},end:p},a={type:o>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[u][1].start}},r={type:o>1?"strong":"emphasis",start:{...i.start},end:{...s.end}},e[n][1].end={...i.start},e[u][1].start={...s.end},l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=ml(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=ml(l,[["enter",r,t],["enter",i,t],["exit",i,t],["enter",a,t]]),l=ml(l,mz(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),l=ml(l,[["exit",a,t],["enter",s,t],["exit",s,t],["exit",r,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,l=ml(l,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,mo(e,n-1,u-n+3,l),u=n+l.length-c-2;break}}for(u=-1;++u<e.length;)"attentionSequence"===e[u][1].type&&(e[u][1].type="data");return e},tokenize:function(e,t){let n,r=this.parser.constructs.attentionMarkers.null,a=this.previous,i=mH(a);return function(s){return n=s,e.enter("attentionSequence"),function s(o){if(o===n)return e.consume(o),s;let l=e.exit("attentionSequence"),c=mH(o),u=!c||2===c&&i||r.includes(o),d=!i||2===i&&c||r.includes(a);return l._open=!!(42===n?u:u&&(i||!d)),l._close=!!(42===n?d:d&&(c||!u)),t(o)}(s)}}};function m$(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}let mq={continuation:{tokenize:function(e,t,n){let r=this;return function(t){return mx(t)?mA(e,a,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):a(t)};function a(r){return e.attempt(mq,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){let r=this;return function(t){if(62===t){let n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),a}return n(t)};function a(n){return mx(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}},mV={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return mb(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}},mW=document.createElement("i");function mY(e){let t="&"+e+";";mW.innerHTML=t;let n=mW.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}let mK={name:"characterReference",tokenize:function(e,t,n){let r,a,i=this,s=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),o};function o(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),r=31,a=mp,c(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,a=mg,c):(e.enter("characterReferenceValue"),r=7,a=mf,c(t))}function c(o){if(59===o&&s){let r=e.exit("characterReferenceValue");return a!==mp||mY(i.sliceSerialize(r))?(e.enter("characterReferenceMarker"),e.consume(o),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(o)}return a(o)&&s++<r?(e.consume(o),c):n(o)}}},mX={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a)};function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},mZ={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){let r,a=this,i={partial:!0,tokenize:function(e,t,n){let i=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s};function s(t){return e.enter("codeFencedFence"),mx(t)?mA(e,l,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):l(t)}function l(t){return t===r?(e.enter("codeFencedFenceSequence"),function t(a){return a===r?(i++,e.consume(a),t):i>=o?(e.exit("codeFencedFenceSequence"),mx(a)?mA(e,c,"whitespace")(a):c(a)):n(a)}(t)):n(t)}function c(r){return null===r||my(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}},s=0,o=0;return function(t){var i;let c;return i=t,s=(c=a.events[a.events.length-1])&&"linePrefix"===c[1].type?c[2].sliceSerialize(c[1],!0).length:0,r=i,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),function t(a){return a===r?(o++,e.consume(a),t):o<3?n(a):(e.exit("codeFencedFenceSequence"),mx(a)?mA(e,l,"whitespace")(a):l(a))}(i)};function l(i){return null===i||my(i)?(e.exit("codeFencedFence"),a.interrupt?t(i):e.check(mX,u,h)(i)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),function t(a){return null===a||my(a)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),l(a)):mx(a)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),mA(e,c,"whitespace")(a)):96===a&&a===r?n(a):(e.consume(a),t)}(i))}function c(t){return null===t||my(t)?l(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(a){return null===a||my(a)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),l(a)):96===a&&a===r?n(a):(e.consume(a),t)}(t))}function u(t){return e.attempt(i,h,d)(t)}function d(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),p}function p(t){return s>0&&mx(t)?mA(e,m,"linePrefix",s+1)(t):m(t)}function m(t){return null===t||my(t)?e.check(mX,u,h)(t):(e.enter("codeFlowValue"),function t(n){return null===n||my(n)?(e.exit("codeFlowValue"),m(n)):(e.consume(n),t)}(t))}function h(n){return e.exit("codeFenced"),t(n)}}},mQ={name:"codeIndented",tokenize:function(e,t,n){let r=this;return function(t){return e.enter("codeIndented"),mA(e,a,"linePrefix",5)(t)};function a(t){let a=r.events[r.events.length-1];return a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?function t(n){return null===n?i(n):my(n)?e.attempt(mJ,t,i)(n):(e.enter("codeFlowValue"),function n(r){return null===r||my(r)?(e.exit("codeFlowValue"),t(r)):(e.consume(r),n)}(n))}(t):n(t)}function i(n){return e.exit("codeIndented"),t(n)}}},mJ={partial:!0,tokenize:function(e,t,n){let r=this;return a;function a(t){return r.parser.lazy[r.now().line]?n(t):my(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a):mA(e,i,"linePrefix",5)(t)}function i(e){let i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(e):my(e)?a(e):n(e)}}};function m0(e,t,n,r,a,i,s,o,l){let c=l||1/0,u=0;return function(t){return 60===t?(e.enter(r),e.enter(a),e.enter(i),e.consume(t),e.exit(i),d):null===t||32===t||41===t||mh(t)?n(t):(e.enter(r),e.enter(s),e.enter(o),e.enter("chunkString",{contentType:"string"}),h(t))};function d(n){return 62===n?(e.enter(i),e.consume(n),e.exit(i),e.exit(a),e.exit(r),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),p(n))}function p(t){return 62===t?(e.exit("chunkString"),e.exit(o),d(t)):null===t||60===t||my(t)?n(t):(e.consume(t),92===t?m:p)}function m(t){return 60===t||62===t||92===t?(e.consume(t),p):p(t)}function h(a){return!u&&(null===a||41===a||mE(a))?(e.exit("chunkString"),e.exit(o),e.exit(s),e.exit(r),t(a)):u<c&&40===a?(e.consume(a),u++,h):41===a?(e.consume(a),u--,h):null===a||32===a||40===a||mh(a)?n(a):(e.consume(a),92===a?f:h)}function f(t){return 40===t||41===t||92===t?(e.consume(t),h):h(t)}}function m1(e,t,n,r,a,i){let s,o=this,l=0;return function(t){return e.enter(r),e.enter(a),e.consume(t),e.exit(a),e.enter(i),c};function c(d){return l>999||null===d||91===d||93===d&&!s||94===d&&!l&&"_hiddenFootnoteSupport"in o.parser.constructs?n(d):93===d?(e.exit(i),e.enter(a),e.consume(d),e.exit(a),e.exit(r),t):my(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(d))}function u(t){return null===t||91===t||93===t||my(t)||l++>999?(e.exit("chunkString"),c(t)):(e.consume(t),s||(s=!mx(t)),92===t?d:u)}function d(t){return 91===t||92===t||93===t?(e.consume(t),l++,u):u(t)}}function m2(e,t,n,r,a,i){let s;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(a),e.consume(t),e.exit(a),s=40===t?41:t,o):n(t)};function o(n){return n===s?(e.enter(a),e.consume(n),e.exit(a),e.exit(r),t):(e.enter(i),l(n))}function l(t){return t===s?(e.exit(i),o(s)):null===t?n(t):my(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),mA(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===s||null===t||my(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return t===s||92===t?(e.consume(t),c):c(t)}}function m3(e,t){let n;return function r(a){return my(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,r):mx(a)?mA(e,r,n?"linePrefix":"lineSuffix")(a):t(a)}}function m4(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}let m5={partial:!0,tokenize:function(e,t,n){return function(t){return mE(t)?m3(e,r)(t):n(t)};function r(t){return m2(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function a(t){return mx(t)?mA(e,i,"whitespace")(t):i(t)}function i(e){return null===e||my(e)?t(e):n(e)}}},m6=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],m9=["pre","script","style","textarea"],m8={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(mw,t,n)}}},m7={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return my(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a):n(t)};function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},he={name:"labelEnd",resolveAll:function(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){let e="labelImage"===r.type?4:2;r.type="data",t+=e}}return e.length!==n.length&&mo(e,0,e.length,n),e},resolveTo:function(e,t){let n,r,a,i,s=e.length,o=0;for(;s--;)if(n=e[s][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[s][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(a){if("enter"===e[s][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=s,"labelLink"!==n.type)){o=2;break}}else"labelEnd"===n.type&&(a=s);let l={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[r][1].start},end:{...e[a][1].end}},u={type:"labelText",start:{...e[r+o+2][1].end},end:{...e[a-2][1].start}};return i=ml(i=[["enter",l,t],["enter",c,t]],e.slice(r+1,r+o+3)),i=ml(i,[["enter",u,t]]),i=ml(i,mz(t.parser.constructs.insideSpan.null,e.slice(r+o+4,a-3),t)),i=ml(i,[["exit",u,t],e[a-2],e[a-1],["exit",c,t]]),i=ml(i,e.slice(a+1)),i=ml(i,[["exit",l,t]]),mo(e,r,e.length,i),e},tokenize:function(e,t,n){let r,a,i=this,s=i.events.length;for(;s--;)if(("labelImage"===i.events[s][1].type||"labelLink"===i.events[s][1].type)&&!i.events[s][1]._balanced){r=i.events[s][1];break}return function(t){return r?r._inactive?u(t):(a=i.parser.defined.includes(m4(i.sliceSerialize({start:r.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),o):n(t)};function o(t){return 40===t?e.attempt(ht,c,a?c:u)(t):91===t?e.attempt(hn,c,a?l:u)(t):a?c(t):u(t)}function l(t){return e.attempt(hr,c,u)(t)}function c(e){return t(e)}function u(e){return r._balanced=!0,n(e)}}},ht={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return mE(t)?m3(e,a)(t):a(t)}function a(t){return 41===t?c(t):m0(e,i,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function i(t){return mE(t)?m3(e,o)(t):c(t)}function s(e){return n(e)}function o(t){return 34===t||39===t||40===t?m2(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function l(t){return mE(t)?m3(e,c)(t):c(t)}function c(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},hn={tokenize:function(e,t,n){let r=this;return function(t){return m1.call(r,e,a,i,"reference","referenceMarker","referenceString")(t)};function a(e){return r.parser.defined.includes(m4(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function i(e){return n(e)}}},hr={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}},ha={name:"labelStartImage",resolveAll:he.resolveAll,tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),a};function a(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),i):n(t)}function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}},hi={name:"labelStartLink",resolveAll:he.resolveAll,tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),a};function a(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}},hs={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),mA(e,t,"linePrefix")}}},ho={name:"thematicBreak",tokenize:function(e,t,n){let r,a=0;return function(i){var s;return e.enter("thematicBreak"),r=s=i,function i(s){return s===r?(e.enter("thematicBreakSequence"),function t(n){return n===r?(e.consume(n),a++,t):(e.exit("thematicBreakSequence"),mx(n)?mA(e,i,"whitespace")(n):i(n))}(s)):a>=3&&(null===s||my(s))?(e.exit("thematicBreak"),t(s)):n(s)}(s)}}},hl={continuation:{tokenize:function(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(mw,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,mA(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!mx(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(hu,t,a)(n))});function a(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,mA(e,e.attempt(hl,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){let r=this,a=r.events[r.events.length-1],i=a&&"linePrefix"===a[1].type?a[2].sliceSerialize(a[1],!0).length:0,s=0;return function(t){let a=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===a?!r.containerState.marker||t===r.containerState.marker:mf(t)){if(r.containerState.type||(r.containerState.type=a,e.enter(a,{_container:!0})),"listUnordered"===a)return e.enter("listItemPrefix"),42===t||45===t?e.check(ho,n,o)(t):o(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),function t(a){return mf(a)&&++s<10?(e.consume(a),t):(!r.interrupt||s<2)&&(r.containerState.marker?a===r.containerState.marker:41===a||46===a)?(e.exit("listItemValue"),o(a)):n(a)}(t)}return n(t)};function o(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(mw,r.interrupt?n:l,e.attempt(hc,u,c))}function l(e){return r.containerState.initialBlankLine=!0,i++,u(e)}function c(t){return mx(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),u):n(t)}function u(n){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},hc={partial:!0,tokenize:function(e,t,n){let r=this;return mA(e,function(e){let a=r.events[r.events.length-1];return!mx(e)&&a&&"listItemPrefixWhitespace"===a[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},hu={partial:!0,tokenize:function(e,t,n){let r=this;return mA(e,function(e){let a=r.events[r.events.length-1];return a&&"listItemIndent"===a[1].type&&a[2].sliceSerialize(a[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)}},hd={name:"setextUnderline",resolveTo:function(e,t){let n,r,a,i=e.length;for(;i--;)if("enter"===e[i][0]){if("content"===e[i][1].type){n=i;break}"paragraph"===e[i][1].type&&(r=i)}else"content"===e[i][1].type&&e.splice(i,1),a||"definition"!==e[i][1].type||(a=i);let s={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",a?(e.splice(r,0,["enter",s,t]),e.splice(a+1,0,["exit",e[n][1],t]),e[n][1].end={...e[a][1].end}):e[n][1]=s,e.push(["exit",s,t]),e},tokenize:function(e,t,n){let r,a=this;return function(t){var s;let o,l=a.events.length;for(;l--;)if("lineEnding"!==a.events[l][1].type&&"linePrefix"!==a.events[l][1].type&&"content"!==a.events[l][1].type){o="paragraph"===a.events[l][1].type;break}return!a.parser.lazy[a.now().line]&&(a.interrupt||o)?(e.enter("setextHeadingLine"),r=t,s=t,e.enter("setextHeadingLineSequence"),function t(n){return n===r?(e.consume(n),t):(e.exit("setextHeadingLineSequence"),mx(n)?mA(e,i,"lineSuffix")(n):i(n))}(s)):n(t)};function i(r){return null===r||my(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}};e.s(["attentionMarkers",0,{null:[42,95]},"contentInitial",0,{91:{name:"definition",tokenize:function(e,t,n){let r,a=this;return function(t){var r;return e.enter("definition"),r=t,m1.call(a,e,i,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(r)};function i(t){return(r=m4(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)),58===t)?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),s):n(t)}function s(t){return mE(t)?m3(e,o)(t):o(t)}function o(t){return m0(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(m5,c,c)(t)}function c(t){return mx(t)?mA(e,u,"whitespace")(t):u(t)}function u(i){return null===i||my(i)?(e.exit("definition"),a.parser.defined.push(r),t(i)):n(i)}}}},"disable",0,{null:[]},"document",0,{42:hl,43:hl,45:hl,48:hl,49:hl,50:hl,51:hl,52:hl,53:hl,54:hl,55:hl,56:hl,57:hl,62:mq},"flow",0,{35:{name:"headingAtx",resolve:function(e,t){let n,r,a=e.length-2,i=3;return"whitespace"===e[3][1].type&&(i+=2),a-2>i&&"whitespace"===e[a][1].type&&(a-=2),"atxHeadingSequence"===e[a][1].type&&(i===a-1||a-4>i&&"whitespace"===e[a-2][1].type)&&(a-=i+1===a?2:4),a>i&&(n={type:"atxHeadingText",start:e[i][1].start,end:e[a][1].end},r={type:"chunkText",start:e[i][1].start,end:e[a][1].end,contentType:"text"},mo(e,i,a-i+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e},tokenize:function(e,t,n){let r=0;return function(a){var i;return e.enter("atxHeading"),i=a,e.enter("atxHeadingSequence"),function a(i){return 35===i&&r++<6?(e.consume(i),a):null===i||mE(i)?(e.exit("atxHeadingSequence"),function n(r){return 35===r?(e.enter("atxHeadingSequence"),function t(r){return 35===r?(e.consume(r),t):(e.exit("atxHeadingSequence"),n(r))}(r)):null===r||my(r)?(e.exit("atxHeading"),t(r)):mx(r)?mA(e,n,"whitespace")(r):(e.enter("atxHeadingText"),function t(r){return null===r||35===r||mE(r)?(e.exit("atxHeadingText"),n(r)):(e.consume(r),t)}(r))}(i)):n(i)}(i)}}},42:ho,45:[hd,ho],60:{concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},tokenize:function(e,t,n){let r,a,i,s,o,l=this;return function(t){var n;return n=t,e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(n),c};function c(s){return 33===s?(e.consume(s),u):47===s?(e.consume(s),a=!0,m):63===s?(e.consume(s),r=3,l.interrupt?t:O):md(s)?(e.consume(s),i=String.fromCharCode(s),h):n(s)}function u(a){return 45===a?(e.consume(a),r=2,d):91===a?(e.consume(a),r=5,s=0,p):md(a)?(e.consume(a),r=4,l.interrupt?t:O):n(a)}function d(r){return 45===r?(e.consume(r),l.interrupt?t:O):n(r)}function p(r){let a="CDATA[";return r===a.charCodeAt(s++)?(e.consume(r),s===a.length)?l.interrupt?t:A:p:n(r)}function m(t){return md(t)?(e.consume(t),i=String.fromCharCode(t),h):n(t)}function h(s){if(null===s||47===s||62===s||mE(s)){let o=47===s,c=i.toLowerCase();return!o&&!a&&m9.includes(c)?(r=1,l.interrupt?t(s):A(s)):m6.includes(i.toLowerCase())?(r=6,o)?(e.consume(s),f):l.interrupt?t(s):A(s):(r=7,l.interrupt&&!l.parser.lazy[l.now().line]?n(s):a?function t(n){return mx(n)?(e.consume(n),t):T(n)}(s):g(s))}return 45===s||mp(s)?(e.consume(s),i+=String.fromCharCode(s),h):n(s)}function f(r){return 62===r?(e.consume(r),l.interrupt?t:A):n(r)}function g(t){return 47===t?(e.consume(t),T):58===t||95===t||md(t)?(e.consume(t),b):mx(t)?(e.consume(t),g):T(t)}function b(t){return 45===t||46===t||58===t||95===t||mp(t)?(e.consume(t),b):y(t)}function y(t){return 61===t?(e.consume(t),E):mx(t)?(e.consume(t),y):g(t)}function E(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),o=t,x):mx(t)?(e.consume(t),E):function t(n){return null===n||34===n||39===n||47===n||60===n||61===n||62===n||96===n||mE(n)?y(n):(e.consume(n),t)}(t)}function x(t){return t===o?(e.consume(t),o=null,S):null===t||my(t)?n(t):(e.consume(t),x)}function S(e){return 47===e||62===e||mx(e)?g(e):n(e)}function T(t){return 62===t?(e.consume(t),v):n(t)}function v(t){return null===t||my(t)?A(t):mx(t)?(e.consume(t),v):n(t)}function A(t){return 45===t&&2===r?(e.consume(t),w):60===t&&1===r?(e.consume(t),I):62===t&&4===r?(e.consume(t),L):63===t&&3===r?(e.consume(t),O):93===t&&5===r?(e.consume(t),R):my(t)&&(6===r||7===r)?(e.exit("htmlFlowData"),e.check(m8,D,_)(t)):null===t||my(t)?(e.exit("htmlFlowData"),_(t)):(e.consume(t),A)}function _(t){return e.check(m7,k,D)(t)}function k(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),N}function N(t){return null===t||my(t)?_(t):(e.enter("htmlFlowData"),A(t))}function w(t){return 45===t?(e.consume(t),O):A(t)}function I(t){return 47===t?(e.consume(t),i="",C):A(t)}function C(t){if(62===t){let n=i.toLowerCase();return m9.includes(n)?(e.consume(t),L):A(t)}return md(t)&&i.length<8?(e.consume(t),i+=String.fromCharCode(t),C):A(t)}function R(t){return 93===t?(e.consume(t),O):A(t)}function O(t){return 62===t?(e.consume(t),L):45===t&&2===r?(e.consume(t),O):A(t)}function L(t){return null===t||my(t)?(e.exit("htmlFlowData"),D(t)):(e.consume(t),L)}function D(n){return e.exit("htmlFlow"),t(n)}}},61:hd,95:ho,96:mZ,126:mZ},"flowInitial",0,{[-2]:mQ,[-1]:mQ,32:mQ},"insideSpan",0,{null:[mG,mP]},"string",0,{38:mK,92:mV},"text",0,{[-5]:hs,[-4]:hs,[-3]:hs,33:ha,38:mK,42:mG,60:[{name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a};function a(t){return md(t)?(e.consume(t),i):64===t?n(t):o(t)}function i(t){return 43===t||45===t||46===t||mp(t)?(r=1,function t(n){return 58===n?(e.consume(n),r=0,s):(43===n||45===n||46===n||mp(n))&&r++<32?(e.consume(n),t):(r=0,o(n))}(t)):o(t)}function s(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||mh(r)?n(r):(e.consume(r),s)}function o(t){return 64===t?(e.consume(t),l):mm(t)?(e.consume(t),o):n(t)}function l(a){return mp(a)?function a(i){return 46===i?(e.consume(i),r=0,l):62===i?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(i),e.exit("autolinkMarker"),e.exit("autolink"),t):function t(i){if((45===i||mp(i))&&r++<63){let n=45===i?t:a;return e.consume(i),n}return n(i)}(i)}(a):n(a)}}},{name:"htmlText",tokenize:function(e,t,n){let r,a,i,s=this;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),o};function o(t){return 33===t?(e.consume(t),l):47===t?(e.consume(t),x):63===t?(e.consume(t),y):md(t)?(e.consume(t),T):n(t)}function l(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),a=0,m):md(t)?(e.consume(t),b):n(t)}function c(t){return 45===t?(e.consume(t),p):n(t)}function u(t){return null===t?n(t):45===t?(e.consume(t),d):my(t)?(i=u,C(t)):(e.consume(t),u)}function d(t){return 45===t?(e.consume(t),p):u(t)}function p(e){return 62===e?I(e):45===e?d(e):u(e)}function m(t){let r="CDATA[";return t===r.charCodeAt(a++)?(e.consume(t),a===r.length?h:m):n(t)}function h(t){return null===t?n(t):93===t?(e.consume(t),f):my(t)?(i=h,C(t)):(e.consume(t),h)}function f(t){return 93===t?(e.consume(t),g):h(t)}function g(t){return 62===t?I(t):93===t?(e.consume(t),g):h(t)}function b(t){return null===t||62===t?I(t):my(t)?(i=b,C(t)):(e.consume(t),b)}function y(t){return null===t?n(t):63===t?(e.consume(t),E):my(t)?(i=y,C(t)):(e.consume(t),y)}function E(e){return 62===e?I(e):y(e)}function x(t){return md(t)?(e.consume(t),S):n(t)}function S(t){return 45===t||mp(t)?(e.consume(t),S):function t(n){return my(n)?(i=t,C(n)):mx(n)?(e.consume(n),t):I(n)}(t)}function T(t){return 45===t||mp(t)?(e.consume(t),T):47===t||62===t||mE(t)?v(t):n(t)}function v(t){return 47===t?(e.consume(t),I):58===t||95===t||md(t)?(e.consume(t),A):my(t)?(i=v,C(t)):mx(t)?(e.consume(t),v):I(t)}function A(t){return 45===t||46===t||58===t||95===t||mp(t)?(e.consume(t),A):function t(n){return 61===n?(e.consume(n),_):my(n)?(i=t,C(n)):mx(n)?(e.consume(n),t):v(n)}(t)}function _(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),r=t,k):my(t)?(i=_,C(t)):mx(t)?(e.consume(t),_):(e.consume(t),N)}function k(t){return t===r?(e.consume(t),r=void 0,w):null===t?n(t):my(t)?(i=k,C(t)):(e.consume(t),k)}function N(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||mE(t)?v(t):(e.consume(t),N)}function w(e){return 47===e||62===e||mE(e)?v(e):n(e)}function I(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function C(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),R}function R(t){return mx(t)?mA(e,O,"linePrefix",s.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):O(t)}function O(t){return e.enter("htmlTextData"),i(t)}}}],91:hi,92:[{name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return my(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},mV],93:he,95:mG,96:{name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,a=3;if(("lineEnding"===e[3][1].type||"space"===e[a][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type)){for(t=a;++t<r;)if("codeTextData"===e[t][1].type){e[a][1].type="codeTextPadding",e[r][1].type="codeTextPadding",a+=2,r-=2;break}}for(t=a-1,r++;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):(t===r||"lineEnding"===e[t][1].type)&&(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,a,i=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),function t(n){return 96===n?(e.consume(n),i++,t):(e.exit("codeTextSequence"),s(n))}(t)};function s(l){return null===l?n(l):32===l?(e.enter("space"),e.consume(l),e.exit("space"),s):96===l?(a=e.enter("codeTextSequence"),r=0,function n(s){return 96===s?(e.consume(s),r++,n):r===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(s)):(a.type="codeTextData",o(s))}(l)):my(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),s):(e.enter("codeTextData"),o(l))}function o(t){return null===t||32===t||96===t||my(t)?(e.exit("codeTextData"),s(t)):(e.consume(t),o)}}}}],304127);var hp=e.i(304127);let hm=/[\0\t\n\r]/g;function hh(e,t){let n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(65535&n)==65535||(65535&n)==65534||n>1114111?"�":String.fromCodePoint(n)}let hf=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function hg(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){let e=n.charCodeAt(1),t=120===e||88===e;return hh(n.slice(t?2:1),t?16:10)}return mY(n)||e}let hb={}.hasOwnProperty;function hy(e){return{line:e.line,column:e.column,offset:e.offset}}function hE(e,t){if(e)throw Error("Cannot close `"+e.type+"` ("+pY({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+pY({start:t.start,end:t.end})+") is open");throw Error("Cannot close document, a token (`"+t.type+"`, "+pY({start:t.start,end:t.end})+") is still open")}function hx(e){let t=this;t.parser=function(n){var r,a;let i,s,o,l;return"object"==typeof(r={...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})&&(a=r,r=void 0),(function(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:r(b),autolinkProtocol:c,autolinkEmail:c,atxHeading:r(h),blockQuote:r(function(){return{type:"blockquote",children:[]}}),characterEscape:c,characterReference:c,codeFenced:r(m),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:r(m,a),codeText:r(function(){return{type:"inlineCode",value:""}},a),codeTextData:c,data:c,codeFlowValue:c,definition:r(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:r(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:r(f),hardBreakTrailing:r(f),htmlFlow:r(g,a),htmlFlowData:c,htmlText:r(g,a),htmlTextData:c,image:r(function(){return{type:"image",title:null,url:"",alt:null}}),label:a,link:r(b),listItem:r(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}),listItemValue:function(e){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:r(y,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:r(y),paragraph:r(function(){return{type:"paragraph",children:[]}}),reference:function(){this.data.referenceType="collapsed"},referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:r(h),strong:r(function(){return{type:"strong",children:[]}}),thematicBreak:r(function(){return{type:"thematicBreak"}})},exit:{atxHeading:s(),atxHeadingSequence:function(e){let t=this.stack[this.stack.length-1];t.depth||(t.depth=this.sliceSerialize(e).length)},autolink:s(),autolinkEmail:function(e){u.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){u.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:s(),characterEscapeValue:u,characterReferenceMarkerHexadecimal:p,characterReferenceMarkerNumeric:p,characterReferenceValue:function(e){let t,n=this.sliceSerialize(e),r=this.data.characterReferenceType;r?(t=hh(n,"characterReferenceMarkerNumeric"===r?10:16),this.data.characterReferenceType=void 0):t=mY(n);let a=this.stack[this.stack.length-1];a.value+=t},characterReference:function(e){this.stack.pop().position.end=hy(e.end)},codeFenced:s(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){let e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){let e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:u,codeIndented:s(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:s(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:u,data:u,definition:s(),definitionDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=m4(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:s(),hardBreakEscape:s(d),hardBreakTrailing:s(d),htmlFlow:s(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:u,htmlText:s(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:u,image:s(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),label:function(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,"link"===n.type?n.children=e.children:n.alt=t},labelText:function(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=t.replace(hf,hg),n.identifier=m4(t).toLowerCase()},lineEnding:function(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){n.children[n.children.length-1].position.end=hy(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(c.call(this,e),u.call(this,e))},link:s(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=m4(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){this.data.inReference=void 0},setextHeading:s(function(){this.data.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:s(),thematicBreak:s()}};!function e(t,n){let r=-1;for(;++r<n.length;){let a=n[r];Array.isArray(a)?e(t,a):function(e,t){let n;for(n in t)if(hb.call(t,n))switch(n){case"canContainEols":{let r=t[n];r&&e[n].push(...r);break}case"transforms":{let r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{let r=t[n];r&&Object.assign(e[n],r)}}}(t,a)}}(t,(e||{}).mdastExtensions||[]);let n={};return function(e){let r={type:"root",children:[]},s={stack:[r],tokenStack:[],config:t,enter:i,exit:o,buffer:a,resume:l,data:n},c=[],u=-1;for(;++u<e.length;)("listOrdered"===e[u][1].type||"listUnordered"===e[u][1].type)&&("enter"===e[u][0]?c.push(u):u=function(e,t,n){let r,a,i,s,o=t-1,l=-1,c=!1;for(;++o<=n;){let t=e[o];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?l++:l--,s=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||s||l||i||(i=o),s=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:s=void 0}if(!l&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===l&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let s=o;for(a=void 0;s--;){let t=e[s];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;a&&(e[a][1].type="lineEndingBlank",c=!0),t[1].type="lineEnding",a=s}else if("linePrefix"===t[1].type||"blockQuotePrefix"===t[1].type||"blockQuotePrefixWhitespace"===t[1].type||"blockQuoteMarker"===t[1].type||"listItemIndent"===t[1].type);else break}i&&(!a||i<a)&&(r._spread=!0),r.end=Object.assign({},a?e[a][1].start:t[1].end),e.splice(a||o,0,["exit",r,t[2]]),o++,n++}if("listItemPrefix"===t[1].type){let a={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=a,e.splice(o,0,["enter",a,t[2]]),o++,n++,i=void 0,s=!0}}}return e[t][1]._spread=c,n}(e,c.pop(),u));for(u=-1;++u<e.length;){let n=t[e[u][0]];hb.call(n,e[u][1].type)&&n[e[u][1].type].call(Object.assign({sliceSerialize:e[u][2].sliceSerialize},s),e[u][1])}if(s.tokenStack.length>0){let e=s.tokenStack[s.tokenStack.length-1];(e[1]||hE).call(s,void 0,e[0])}for(r.position={start:hy(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:hy(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},u=-1;++u<t.transforms.length;)r=t.transforms[u](r)||r;return r};function r(e,t){return function(n){i.call(this,e(n),n),t&&t.call(this,n)}}function a(){this.stack.push({type:"fragment",children:[]})}function i(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:hy(t.start),end:void 0}}function s(e){return function(t){e&&e.call(this,t),o.call(this,t)}}function o(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(r)r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||hE).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+pY({start:e.start,end:e.end})+"): it’s not open");n.position.end=hy(e.end)}function l(){return ma(this.stack.pop())}function c(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];n&&"text"===n.type||((n={type:"text",value:""}).position={start:hy(e.start),end:void 0},t.push(n)),this.stack.push(n)}function u(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=hy(e.end)}function d(){this.data.atHardBreak=!0}function p(e){this.data.characterReferenceType=e.type}function m(){return{type:"code",lang:null,meta:null,value:""}}function h(){return{type:"heading",depth:0,children:[]}}function f(){return{type:"break"}}function g(){return{type:"html",value:""}}function b(){return{type:"link",title:null,url:"",children:[]}}function y(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}})(a)(function(e){for(;!mR(e););return e}((function(e){let t={constructs:mu([hp,...(e||{}).extensions||[]]),content:n(m_),defined:[],document:n(mk),flow:n(mD),lazy:{},string:n(mM),text:n(mF)};return t;function n(e){return function(n){return function(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},a={},i=[],s=[],o=[],l={attempt:h(function(e,t){f(e,t.from)}),check:h(m),consume:function(e){my(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,g()):-1!==e&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===s[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=e},enter:function(e,t){let n=t||{};return n.type=e,n.start=p(),c.events.push(["enter",n,c]),o.push(n),n},exit:function(e){let t=o.pop();return t.end=p(),c.events.push(["exit",t,c]),t},interrupt:h(m,{interrupt:!0})},c={code:null,containerState:{},defineSkip:function(e){a[e.line]=e.column,g()},events:[],now:p,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n,r=-1,a=[];for(;++r<e.length;){let i,s=e[r];if("string"==typeof s)i=s;else switch(s){case -5:i="\r";break;case -4:i="\n";break;case -3:i="\r\n";break;case -2:i=t?" ":" ";break;case -1:if(!t&&n)continue;i=" ";break;default:i=String.fromCharCode(s)}n=-2===s,a.push(i)}return a.join("")}(d(e),t)},sliceStream:d,write:function(e){return(s=ml(s,e),function(){let e;for(;r._index<s.length;){let n=s[r._index];if("string"==typeof n)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<n.length;){var t;t=n.charCodeAt(r._bufferIndex),u=u(t)}else u=u(n)}}(),null!==s[s.length-1])?[]:(f(t,0),c.events=mz(i,c.events,c),c.events)}},u=t.tokenize.call(c,l);return t.resolveAll&&i.push(t),c;function d(e){return function(e,t){let n,r=t.start._index,a=t.start._bufferIndex,i=t.end._index,s=t.end._bufferIndex;if(r===i)n=[e[r].slice(a,s)];else{if(n=e.slice(r,i),a>-1){let e=n[0];"string"==typeof e?n[0]=e.slice(a):n.shift()}s>0&&n.push(e[i].slice(0,s))}return n}(s,e)}function p(){let{_bufferIndex:e,_index:t,line:n,column:a,offset:i}=r;return{_bufferIndex:e,_index:t,line:n,column:a,offset:i}}function m(e,t){t.restore()}function h(e,t){return function(n,a,i){var s;let u,d,m,h;return Array.isArray(n)?f(n):"tokenize"in n?f([n]):(s=n,function(e){let t=null!==e&&s[e],n=null!==e&&s.null;return f([...Array.isArray(t)?t:t?[t]:[],...Array.isArray(n)?n:n?[n]:[]])(e)});function f(e){return(u=e,d=0,0===e.length)?i:b(e[d])}function b(e){return function(n){let a,i,s,u,d;return(a=p(),i=c.previous,s=c.currentConstruct,u=c.events.length,d=Array.from(o),h={from:u,restore:function(){r=a,c.previous=i,c.currentConstruct=s,c.events.length=u,o=d,g()}},m=e,e.partial||(c.currentConstruct=e),e.name&&c.parser.constructs.disable.null.includes(e.name))?E(n):e.tokenize.call(t?Object.assign(Object.create(c),t):c,l,y,E)(n)}}function y(t){return e(m,h),a}function E(e){return(h.restore(),++d<u.length)?b(u[d]):i}}}function f(e,t){e.resolveAll&&!i.includes(e)&&i.push(e),e.resolve&&mo(c.events,t,c.events.length-t,e.resolve(c.events.slice(t),c)),e.resolveTo&&(c.events=e.resolveTo(c.events,c))}function g(){r.line in a&&r.column<2&&(r.column=a[r.line],r.offset+=a[r.line]-1)}}(t,e,n)}}})(a).document().write((s=1,o="",l=!0,function(e,t,n){let r,a,c,u,d,p=[];for(e=o+("string"==typeof e?e.toString():new TextDecoder(t||void 0).decode(e)),c=0,o="",l&&(65279===e.charCodeAt(0)&&c++,l=void 0);c<e.length;){if(hm.lastIndex=c,u=(r=hm.exec(e))&&void 0!==r.index?r.index:e.length,d=e.charCodeAt(u),!r){o=e.slice(c);break}if(10===d&&c===u&&i)p.push(-3),i=void 0;else switch(i&&(p.push(-5),i=void 0),c<u&&(p.push(e.slice(c,u)),s+=u-c),d){case 0:p.push(65533),s++;break;case 9:for(a=4*Math.ceil(s/4),p.push(-2);s++<a;)p.push(-1);break;case 10:p.push(-4),s=1;break;default:i=!0,s=1}c=u+1}return n&&(i&&p.push(-5),o&&p.push(o),p.push(null)),p})(n,r,!0))))}}let hS="object"==typeof self?self:globalThis,hT=(e,t)=>{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw TypeError("unable to deserialize "+e)}return new hS[e](t)},hv=e=>{var t;let n,r;return(t=new Map,n=(e,n)=>(t.set(n,e),e),r=a=>{if(t.has(a))return t.get(a);let[i,s]=e[a];switch(i){case 0:case -1:return n(s,a);case 1:{let e=n([],a);for(let t of s)e.push(r(t));return e}case 2:{let e=n({},a);for(let[t,n]of s)e[r(t)]=r(n);return e}case 3:return n(new Date(s),a);case 4:{let{source:e,flags:t}=s;return n(new RegExp(e,t),a)}case 5:{let e=n(new Map,a);for(let[t,n]of s)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,a);for(let t of s)e.add(r(t));return e}case 7:{let{name:e,message:t}=s;return n(hT(e,t),a)}case 8:return n(BigInt(s),a);case"BigInt":return n(Object(BigInt(s)),a);case"ArrayBuffer":return n(new Uint8Array(s).buffer,s);case"DataView":{let{buffer:e}=new Uint8Array(s);return n(new DataView(e),s)}}return n(hT(i,s),a)})(0)},{toString:hA}={},{keys:h_}=Object,hk=e=>{let t=typeof e;if("object"!==t||!e)return[0,t];let n=hA.call(e).slice(8,-1);switch(n){case"Array":return[1,""];case"Object":return[2,""];case"Date":return[3,""];case"RegExp":return[4,""];case"Map":return[5,""];case"Set":return[6,""];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},hN=([e,t])=>0===e&&("function"===t||"symbol"===t),hw=(e,{json:t,lossy:n}={})=>{var r,a,i;let s,o,l=[];return(r=!(t||n),a=!!t,i=new Map,s=(e,t)=>{let n=l.push(e)-1;return i.set(t,n),n},o=e=>{if(i.has(e))return i.get(e);let[t,n]=hk(e);switch(t){case 0:{let a=e;switch(n){case"bigint":t=8,a=e.toString();break;case"function":case"symbol":if(r)throw TypeError("unable to serialize "+n);a=null;break;case"undefined":return s([-1],e)}return s([t,a],e)}case 1:{if(n){let t=e;return"DataView"===n?t=new Uint8Array(e.buffer):"ArrayBuffer"===n&&(t=new Uint8Array(e)),s([n,[...t]],e)}let r=[],a=s([t,r],e);for(let t of e)r.push(o(t));return a}case 2:{if(n)switch(n){case"BigInt":return s([n,e.toString()],e);case"Boolean":case"Number":case"String":return s([n,e.valueOf()],e)}if(a&&"toJSON"in e)return o(e.toJSON());let i=[],l=s([t,i],e);for(let t of h_(e))(r||!hN(hk(e[t])))&&i.push([o(t),o(e[t])]);return l}case 3:return s([t,e.toISOString()],e);case 4:{let{source:n,flags:r}=e;return s([t,{source:n,flags:r}],e)}case 5:{let n=[],a=s([t,n],e);for(let[t,a]of e)(r||!(hN(hk(t))||hN(hk(a))))&&n.push([o(t),o(a)]);return a}case 6:{let n=[],a=s([t,n],e);for(let t of e)(r||!hN(hk(t)))&&n.push(o(t));return a}}let{message:l}=e;return s([t,{name:n,message:l}],e)})(e),l},hI="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?hv(hw(e,t)):structuredClone(e):(e,t)=>hv(hw(e,t));function hC(e){let t=[],n=-1,r=0,a=0;for(;++n<e.length;){let i=e.charCodeAt(n),s="";if(37===i&&mp(e.charCodeAt(n+1))&&mp(e.charCodeAt(n+2)))a=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(s=String.fromCharCode(i));else if(i>55295&&i<57344){let t=e.charCodeAt(n+1);i<56320&&t>56319&&t<57344?(s=String.fromCharCode(i,t),a=1):s="�"}else s=String.fromCharCode(i);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+a+1,s=""),a&&(n+=a,a=0)}return t.join("")+e.slice(r)}function hR(e,t){let n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function hO(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}let hL=function(e){var t,n;if(null==e)return hP;if("function"==typeof e)return hD(e);if("object"==typeof e){return Array.isArray(e)?function(e){let t=[],n=-1;for(;++n<e.length;)t[n]=hL(e[n]);return hD(function(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1})}(e):(t=e,hD(function(e){let n;for(n in t)if(e[n]!==t[n])return!1;return!0}))}if("string"==typeof e){return n=e,hD(function(e){return e&&e.type===n})}throw Error("Expected function, string, or object as test")};function hD(e){return function(t,n,r){return!!(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function hP(){return!0}let hM=[],hF="skip";function hj(e,t,n,r){let a;"function"==typeof t&&"function"!=typeof n?(r=n,n=t):a=t;let i=hL(a),s=r?-1:1;(function e(a,o,l){let c=a&&"object"==typeof a?a:{};if("string"==typeof c.type){let e="string"==typeof c.tagName?c.tagName:"string"==typeof c.name?c.name:void 0;Object.defineProperty(u,"name",{value:"node ("+a.type+(e?"<"+e+">":"")+")"})}return u;function u(){var c;let u,d,p,m=hM;if((!t||i(a,o,l[l.length-1]||void 0))&&!1===(m=Array.isArray(c=n(a,l))?c:"number"==typeof c?[!0,c]:null==c?hM:[c])[0])return m;if("children"in a&&a.children&&a.children&&m[0]!==hF)for(d=(r?a.children.length:-1)+s,p=l.concat(a);d>-1&&d<a.children.length;){if(!1===(u=e(a.children[d],d,p)())[0])return u;d="number"==typeof u[1]?u[1]:d+s}return m}})(e,void 0,[])()}function hU(e,t,n,r){let a,i,s;"function"==typeof t&&"function"!=typeof n?(i=void 0,s=t,a=n):(i=t,s=n,a=r),hj(e,i,function(e,t){let n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return s(e,r,n)},a)}function hB(e,t){let n=t.referenceType,r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];let a=e.all(t),i=a[0];i&&"text"===i.type?i.value="["+i.value:a.unshift({type:"text",value:"["});let s=a[a.length-1];return s&&"text"===s.type?s.value+=r:a.push({type:"text",value:r}),a}function hH(e){let t=e.spread;return null==t?e.children.length>1:t}function hz(e,t,n){let r=0,a=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(a-1);for(;9===t||32===t;)a--,t=e.codePointAt(a-1)}return a>r?e.slice(r,a):""}let hG={blockquote:function(e,t){let n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){let n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){let n=t.value?t.value+"\n":"",r={},a=t.lang?t.lang.split(/\s+/):[];a.length>0&&(r.className=["language-"+a[0]]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i={type:"element",tagName:"pre",properties:{},children:[i=e.applyData(t,i)]},e.patch(t,i),i},delete:function(e,t){let n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){let n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){let n,r="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",a=String(t.identifier).toUpperCase(),i=hC(a.toLowerCase()),s=e.footnoteOrder.indexOf(a),o=e.footnoteCounts.get(a);void 0===o?(o=0,e.footnoteOrder.push(a),n=e.footnoteOrder.length):n=s+1,o+=1,e.footnoteCounts.set(a,o);let l={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+i,id:r+"fnref-"+i+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(n)}]};e.patch(t,l);let c={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,c),e.applyData(t,c)},heading:function(e,t){let n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){let n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return hB(e,t);let a={src:hC(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(a.title=r.title);let i={type:"element",tagName:"img",properties:a,children:[]};return e.patch(t,i),e.applyData(t,i)},image:function(e,t){let n={src:hC(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){let n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);let r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return hB(e,t);let a={href:hC(r.url||"")};null!==r.title&&void 0!==r.title&&(a.title=r.title);let i={type:"element",tagName:"a",properties:a,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)},link:function(e,t){let n={href:hC(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){let r=e.all(t),a=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r<n.length;)t=hH(n[r])}return t}(n):hH(t),i={},s=[];if("boolean"==typeof t.checked){let e,n=r[0];n&&"element"===n.type&&"p"===n.tagName?e=n:(e={type:"element",tagName:"p",properties:{},children:[]},r.unshift(e)),e.children.length>0&&e.children.unshift({type:"text",value:" "}),e.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let o=-1;for(;++o<r.length;){let e=r[o];(a||0!==o||"element"!==e.type||"p"!==e.tagName)&&s.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||a?s.push(e):s.push(...e.children)}let l=r[r.length-1];l&&(a||"element"!==l.type||"p"!==l.tagName)&&s.push({type:"text",value:"\n"});let c={type:"element",tagName:"li",properties:i,children:s};return e.patch(t,c),e.applyData(t,c)},list:function(e,t){let n={},r=e.all(t),a=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++a<r.length;){let e=r[a];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}let i={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,i),e.applyData(t,i)},paragraph:function(e,t){let n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){let n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){let n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){let n=e.all(t),r=n.shift(),a=[];if(r){let n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),a.push(n)}if(n.length>0){let r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},i=pq(t.children[1]),s=p$(t.children[t.children.length-1]);i&&s&&(r.position={start:i,end:s}),a.push(r)}let i={type:"element",tagName:"table",properties:{},children:e.wrap(a,!0)};return e.patch(t,i),e.applyData(t,i)},tableCell:function(e,t){let n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){let r=n?n.children:void 0,a=0===(r?r.indexOf(t):1)?"th":"td",i=n&&"table"===n.type?n.align:void 0,s=i?i.length:t.children.length,o=-1,l=[];for(;++o<s;){let n=t.children[o],r={},s=i?i[o]:void 0;s&&(r.align=s);let c={type:"element",tagName:a,properties:r,children:[]};n&&(c.children=e.all(n),e.patch(n,c),c=e.applyData(n,c)),l.push(c)}let c={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};return e.patch(t,c),e.applyData(t,c)},text:function(e,t){let n={type:"text",value:function(e){let t=String(e),n=/\r?\n|\r/g,r=n.exec(t),a=0,i=[];for(;r;)i.push(hz(t.slice(a,r.index),a>0,!0),r[0]),a=r.index+r[0].length,r=n.exec(t);return i.push(hz(t.slice(a),a>0,!1)),i.join("")}(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){let n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:h$,yaml:h$,definition:h$,footnoteDefinition:h$};function h$(){}let hq={}.hasOwnProperty,hV={};function hW(e,t){e.position&&(t.position=pW(e))}function hY(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,a=e.data.hProperties;"string"==typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}),"element"===n.type&&a&&Object.assign(n.properties,hI(a)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function hK(e,t){let n=[],r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function hX(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function hZ(e,t){let n,r,a,i,s=(n=t||hV,r=new Map,a=new Map,i={all:function(e){let t=[];if("children"in e){let n=e.children,r=-1;for(;++r<n.length;){let a=i.one(n[r],e);if(a){if(r&&"break"===n[r-1].type&&(Array.isArray(a)||"text"!==a.type||(a.value=hX(a.value)),!Array.isArray(a)&&"element"===a.type)){let e=a.children[0];e&&"text"===e.type&&(e.value=hX(e.value))}Array.isArray(a)?t.push(...a):t.push(a)}}}return t},applyData:hY,definitionById:r,footnoteById:a,footnoteCounts:new Map,footnoteOrder:[],handlers:{...hG,...n.handlers},one:function(e,t){let n=e.type,r=i.handlers[n];if(hq.call(i.handlers,n)&&r)return r(i,e,t);if(i.options.passThrough&&i.options.passThrough.includes(n)){if("children"in e){let{children:t,...n}=e,r=hI(n);return r.children=i.all(e),r}return hI(e)}return(i.options.unknownHandler||function(e,t){let n=t.data||{},r="value"in t&&!(hq.call(n,"hProperties")||hq.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)})(i,e,t)},options:n,patch:hW,wrap:hK},hU(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){let t="definition"===e.type?r:a,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),i),o=s.one(e,void 0),l=function(e){let t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||hR,r=e.options.footnoteBackLabel||hO,a=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},o=[],l=-1;for(;++l<e.footnoteOrder.length;){let a=e.footnoteById.get(e.footnoteOrder[l]);if(!a)continue;let i=e.all(a),s=String(a.identifier).toUpperCase(),c=hC(s.toLowerCase()),u=0,d=[],p=e.footnoteCounts.get(s);for(;void 0!==p&&++u<=p;){d.length>0&&d.push({type:"text",value:" "});let e="string"==typeof n?n:n(l,u);"string"==typeof e&&(e={type:"text",value:e}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+c+(u>1?"-"+u:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(l,u),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}let m=i[i.length-1];if(m&&"element"===m.type&&"p"===m.tagName){let e=m.children[m.children.length-1];e&&"text"===e.type?e.value+=" ":m.children.push({type:"text",value:" "}),m.children.push(...d)}else i.push(...d);let h={type:"element",tagName:"li",properties:{id:t+"fn-"+c},children:e.wrap(i,!0)};e.patch(a,h),o.push(h)}if(0!==o.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...hI(s),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(o,!0)},{type:"text",value:"\n"}]}}(s),c=Array.isArray(o)?{type:"root",children:o}:o||{type:"root",children:[]};return l&&(d9("children"in c),c.children.push({type:"text",value:"\n"},l)),c}function hQ(e,t){return e&&"run"in e?async function(n,r){let a=hZ(n,{file:r,...t});await e.run(a,r)}:function(n,r){return hZ(n,{file:r,...e||t})}}function hJ(e){if(e)throw e}var h0=e.i(104100);function h1(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}let h2=function(e,t){let n;if(void 0!==t&&"string"!=typeof t)throw TypeError('"ext" argument must be a string');h6(e);let r=0,a=-1,i=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else a<0&&(n=!0,a=i+1);return a<0?"":e.slice(r,a)}if(t===e)return"";let s=-1,o=t.length-1;for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else s<0&&(n=!0,s=i+1),o>-1&&(e.codePointAt(i)===t.codePointAt(o--)?o<0&&(a=i):(o=-1,a=s));return r===a?a=s:a<0&&(a=e.length),e.slice(r,a)},h3=function(e){let t;if(h6(e),0===e.length)return".";let n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},h4=function(e){let t;h6(e);let n=e.length,r=-1,a=0,i=-1,s=0;for(;n--;){let o=e.codePointAt(n);if(47===o){if(t){a=n+1;break}continue}r<0&&(t=!0,r=n+1),46===o?i<0?i=n:1!==s&&(s=1):i>-1&&(s=-1)}return i<0||r<0||0===s||1===s&&i===r-1&&i===a+1?"":e.slice(i,r)},h5=function(...e){var t;let n,r,a,i=-1;for(;++i<e.length;)h6(e[i]),e[i]&&(a=void 0===a?e[i]:a+"/"+e[i]);return void 0===a?".":(h6(t=a),n=47===t.codePointAt(0),0!==(r=function(e,t){let n,r,a="",i=0,s=-1,o=0,l=-1;for(;++l<=e.length;){if(l<e.length)n=e.codePointAt(l);else if(47===n)break;else n=47;if(47===n){if(s===l-1||1===o);else if(s!==l-1&&2===o){if(a.length<2||2!==i||46!==a.codePointAt(a.length-1)||46!==a.codePointAt(a.length-2)){if(a.length>2){if((r=a.lastIndexOf("/"))!==a.length-1){r<0?(a="",i=0):i=(a=a.slice(0,r)).length-1-a.lastIndexOf("/"),s=l,o=0;continue}}else if(a.length>0){a="",i=0,s=l,o=0;continue}}t&&(a=a.length>0?a+"/..":"..",i=2)}else a.length>0?a+="/"+e.slice(s+1,l):a=e.slice(s+1,l),i=l-s-1;s=l,o=0}else 46===n&&o>-1?o++:o=-1}return a}(t,!n)).length||n||(r="."),r.length>0&&47===t.codePointAt(t.length-1)&&(r+="/"),n?"/"+r:r)};function h6(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}function h9(e){return!!(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}let h8=["history","path","basename","stem","extname","dirname"];class h7{constructor(e){let t,n;t=e?h9(e)?{path:e}:"string"==typeof e||function(e){return!!(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":"/",this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<h8.length;){const e=h8[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)h8.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?h2(this.path):void 0}set basename(e){ft(e,"basename"),fe(e,"basename"),this.path=h5(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?h3(this.path):void 0}set dirname(e){fn(this.basename,"dirname"),this.path=h5(e||"",this.basename)}get extname(){return"string"==typeof this.path?h4(this.path):void 0}set extname(e){if(fe(e,"extname"),fn(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw Error("`extname` must start with `.`");if(e.includes(".",1))throw Error("`extname` cannot contain multiple dots")}this.path=h5(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){h9(e)&&(e=function(e){if("string"==typeof e)e=new URL(e);else if(!h9(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){let e=TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){let e=TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}let t=e.pathname,n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){let e=t.codePointAt(n+2);if(70===e||102===e){let e=TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}(e)),ft(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?h2(this.path,this.extname):void 0}set stem(e){ft(e,"stem"),fe(e,"stem"),this.path=h5(this.dirname||"",e+(this.extname||""))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let r=new pQ(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return void 0===this.value?"":"string"==typeof this.value?this.value:new TextDecoder(e||void 0).decode(this.value)}}function fe(e,t){if(e&&e.includes("/"))throw Error("`"+t+"` cannot be a path: did not expect `/`")}function ft(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function fn(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}let fr=function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},fa={}.hasOwnProperty;class fi extends fr{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=function(){let e=[],t={run:function(...t){let n=-1,r=t.pop();if("function"!=typeof r)throw TypeError("Expected function as last argument, not "+r);!function a(i,...s){let o=e[++n],l=-1;if(i)return void r(i);for(;++l<t.length;)(null===s[l]||void 0===s[l])&&(s[l]=t[l]);t=s,o?(function(e,t){let n;return function(...t){let i,s=e.length>t.length;s&&t.push(r);try{i=e.apply(this,t)}catch(e){if(s&&n)throw e;return r(e)}s||(i&&i.then&&"function"==typeof i.then?i.then(a,r):i instanceof Error?r(i):a(i))};function r(e,...a){n||(n=!0,t(e,...a))}function a(e){r(null,e)}})(o,a)(...s):r(null,...s)}(null,...t)},use:function(n){if("function"!=typeof n)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}()}copy(){let e=new fi,t=-1;for(;++t<this.attachers.length;){let n=this.attachers[t];e.use(...n)}return e.data((0,h0.default)(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2==arguments.length?(fc("data",this.frozen),this.namespace[e]=t,this):fa.call(this.namespace,e)&&this.namespace[e]||void 0:e?(fc("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;for(;++this.freezeIndex<this.attachers.length;){let[e,...t]=this.attachers[this.freezeIndex];if(!1===t[0])continue;!0===t[0]&&(t[0]=void 0);let n=e.call(this,...t);"function"==typeof n&&this.transformers.use(n)}return this.frozen=!0,this.freezeIndex=1/0,this}parse(e){this.freeze();let t=fp(e),n=this.parser||this.Parser;return fo("parse",n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),fo("process",this.parser||this.Parser),fl("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,a){let i=fp(e),s=n.parse(i);function o(e,n){e||!n?a(e):r?r(n):(d9(t,"`done` is defined if `resolve` is not"),t(void 0,n))}n.run(s,i,function(e,t,r){var a,i;if(e||!t||!r)return o(e);let s=n.stringify(t,r);"string"==typeof(a=s)||(i=a)&&"object"==typeof i&&"byteLength"in i&&"byteOffset"in i?r.value=s:r.result=s,o(e,r)})}}processSync(e){let t,n=!1;return this.freeze(),fo("processSync",this.parser||this.Parser),fl("processSync",this.compiler||this.Compiler),this.process(e,function(e,r){n=!0,hJ(e),t=r}),fd("processSync","process",n),d9(t,"we either bailed on an error or have a tree"),t}run(e,t,n){fu(e),this.freeze();let r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?a(void 0,n):new Promise(a);function a(a,i){d9("function"!=typeof t,"`file` can’t be a `done` anymore, we checked");let s=fp(t);r.run(e,s,function(t,r,s){let o=r||e;t?i(t):a?a(o):(d9(n,"`done` is defined if `resolve` is not"),n(void 0,o,s))})}}runSync(e,t){let n,r=!1;return this.run(e,t,function(e,t){hJ(e),n=t,r=!0}),fd("runSync","run",r),d9(n,"we either bailed on an error or have a tree"),n}stringify(e,t){this.freeze();let n=fp(t),r=this.compiler||this.Compiler;return fl("stringify",r),fu(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(fc("use",this.frozen),null==e);else if("function"==typeof e)s(e,t);else if("object"==typeof e)Array.isArray(e)?i(e):a(e);else throw TypeError("Expected usable value, not `"+e+"`");return this;function a(e){if(!("plugins"in e)&&!("settings"in e))throw Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");i(e.plugins),e.settings&&(r.settings=(0,h0.default)(!0,r.settings,e.settings))}function i(e){let t=-1;if(null==e);else if(Array.isArray(e))for(;++t<e.length;)!function(e){if("function"==typeof e)s(e,[]);else if("object"==typeof e)if(Array.isArray(e)){let[t,...n]=e;s(t,n)}else a(e);else throw TypeError("Expected usable value, not `"+e+"`")}(e[t]);else throw TypeError("Expected a list of plugins, not `"+e+"`")}function s(e,t){let r=-1,a=-1;for(;++r<n.length;)if(n[r][0]===e){a=r;break}if(-1===a)n.push([e,...t]);else if(t.length>0){let[r,...i]=t,s=n[a][1];h1(s)&&h1(r)&&(r=(0,h0.default)(!0,s,r)),n[a]=[e,r,...i]}}}}let fs=new fi().freeze();function fo(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `parser`")}function fl(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `compiler`")}function fc(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function fu(e){if(!h1(e)||"string"!=typeof e.type)throw TypeError("Expected node, got `"+e+"`")}function fd(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function fp(e){var t;return(t=e)&&"object"==typeof t&&"message"in t&&"messages"in t?e:new h7(e)}let fm=[],fh={allowDangerousHtml:!0},ff=/^(https?|ircs?|mailto|xmpp)$/i,fg=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function fb(e){var t;let n,r,a,i,s,o=(n=(t=e).rehypePlugins||fm,r=t.remarkPlugins||fm,a=t.remarkRehypeOptions?{...t.remarkRehypeOptions,...fh}:fh,fs().use(hx).use(r).use(hQ,a).use(n)),l=(i=e.children||"",s=new h7,"string"==typeof i?s.value=i:d8("Unexpected value `"+i+"` for `children` prop, expected `string`"),s);return function(e,t){let n=t.allowedElements,r=t.allowElement,a=t.components,i=t.disallowedElements,s=t.skipHtml,o=t.unwrapDisallowed,l=t.urlTransform||fy;for(let e of fg)Object.hasOwn(t,e.from)&&d8("Unexpected `"+e.from+"` prop, "+(e.to?"use `"+e.to+"` instead":"remove it")+" (see <https://github.com/remarkjs/react-markdown/blob/main/changelog.md#"+e.id+"> for more info)");return n&&i&&d8("Unexpected combined `allowedElements` and `disallowedElements`, expected one or the other"),t.className&&(e={type:"element",tagName:"div",properties:{className:t.className},children:"root"===e.type?e.children:[e]}),hU(e,function(e,t,a){if("raw"===e.type&&a&&"number"==typeof t)return s?a.children.splice(t,1):a.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in mn)if(Object.hasOwn(mn,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=mn[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=l(String(n||""),t,e))}}if("element"===e.type){let s=n?!n.includes(e.tagName):!!i&&i.includes(e.tagName);if(!s&&r&&"number"==typeof t&&(s=!r(e,t,a)),s&&a&&"number"==typeof t)return o&&e.children?a.children.splice(t,1,...e.children):a.children.splice(t,1),t}}),function(e,t){var n,r,a,i;let s;if(!t||void 0===t.Fragment)throw TypeError("Expected `Fragment` in options");let o=t.filePath||void 0;if(t.development){if("function"!=typeof t.jsxDEV)throw TypeError("Expected `jsxDEV` in options when `development: true`");n=o,r=t.jsxDEV,s=function(e,t,a,i){let s=Array.isArray(a.children),o=pq(e);return r(t,a,i,s,{columnNumber:o?o.column-1:void 0,fileName:n,lineNumber:o?o.line:void 0},void 0)}}else{if("function"!=typeof t.jsx)throw TypeError("Expected `jsx` in production options");if("function"!=typeof t.jsxs)throw TypeError("Expected `jsxs` in production options");a=t.jsx,i=t.jsxs,s=function(e,t,n,r){let s=Array.isArray(n.children)?i:a;return r?s(t,n,r):s(t,n)}}let l={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:s,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:o,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?pB:pU,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},c=p5(l,e,void 0);return c&&"string"!=typeof c?c:l.create(e,l.Fragment,{children:c||void 0},void 0)}(e,{Fragment:eo.Fragment,components:a,ignoreInvalidStyle:!0,jsx:eo.jsx,jsxs:eo.jsxs,passKeys:!0,passNode:!0})}(o.runSync(o.parse(l),l),e)}function fy(e){let t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),a=e.indexOf("/");return -1===t||-1!==a&&t>a||-1!==n&&t>n||-1!==r&&t>r||ff.test(e.slice(0,t))?e:""}function fE(e,t){let n=String(e);if("string"!=typeof t)throw TypeError("Expected character");let r=0,a=n.indexOf(t);for(;-1!==a;)r++,a=n.indexOf(t,a+t.length);return r}let fx="phrasing",fS=["autolink","link","image","label"];function fT(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function fv(e){this.config.enter.autolinkProtocol.call(this,e)}function fA(e){this.config.exit.autolinkProtocol.call(this,e)}function f_(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];d9("link"===t.type),t.url="http://"+this.sliceSerialize(e)}function fk(e){this.config.exit.autolinkEmail.call(this,e)}function fN(e){this.exit(e)}function fw(e){!function(e,t,n){let r=hL((n||{}).ignore||[]),a=function(e){let t=[];if(!Array.isArray(e))throw TypeError("Expected find and replace tuple or list of tuples");let n=!e[0]||Array.isArray(e[0])?e:[e],r=-1;for(;++r<n.length;){var a;let e=n[r];t.push(["string"==typeof(a=e[0])?RegExp(function(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(a),"g"):a,function(e){return"function"==typeof e?e:function(){return e}}(e[1])])}return t}(t),i=-1;for(;++i<a.length;)hj(e,"text",s);function s(e,t){let n,s=-1;for(;++s<t.length;){let e=t[s],a=n?n.children:void 0;if(r(e,a?a.indexOf(e):void 0,n))return;n=e}if(n)return function(e,t){let n=t[t.length-1],r=a[i][0],s=a[i][1],o=0,l=n.children.indexOf(e),c=!1,u=[];r.lastIndex=0;let d=r.exec(e.value);for(;d;){let n=d.index,a={index:d.index,input:d.input,stack:[...t,e]},i=s(...d,a);if("string"==typeof i&&(i=i.length>0?{type:"text",value:i}:void 0),!1===i?r.lastIndex=n+1:(o!==n&&u.push({type:"text",value:e.value.slice(o,n)}),Array.isArray(i)?u.push(...i):i&&u.push(i),o=n+d[0].length,c=!0),!r.global)break;d=r.exec(e.value)}return c?(o<e.value.length&&u.push({type:"text",value:e.value.slice(o)}),n.children.splice(l,1,...u)):u=[e],l+u.length}(e,t)}}(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,fI],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,fC]],{ignore:["link","linkReference"]})}function fI(e,t,n,r,a){let i,s="";if(!fR(a))return!1;if(/^w/i.test(t)&&(n=t+n,t="",s="http://"),(i=n.split(".")).length<2||i[i.length-1]&&(/_/.test(i[i.length-1])||!/[a-zA-Z\d]/.test(i[i.length-1]))||i[i.length-2]&&(/_/.test(i[i.length-2])||!/[a-zA-Z\d]/.test(i[i.length-2])))return!1;let o=function(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")"),a=fE(e,"("),i=fE(e,")");for(;-1!==r&&a>i;)e+=n.slice(0,r+1),r=(n=n.slice(r+1)).indexOf(")"),i++;return[e,n]}(n+r);if(!o[0])return!1;let l={type:"link",title:null,url:s+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[l,{type:"text",value:o[1]}]:l}function fC(e,t,n,r){return!(!fR(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function fR(e,t){let n=e.input.charCodeAt(e.index-1);return(0===e.index||mT(n)||mS(n))&&(!t||47!==n)}function fO(){this.buffer()}function fL(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function fD(){this.buffer()}function fP(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function fM(e){let t=this.resume(),n=this.stack[this.stack.length-1];d9("footnoteReference"===n.type),n.identifier=m4(this.sliceSerialize(e)).toLowerCase(),n.label=t}function fF(e){this.exit(e)}function fj(e){let t=this.resume(),n=this.stack[this.stack.length-1];d9("footnoteDefinition"===n.type),n.identifier=m4(this.sliceSerialize(e)).toLowerCase(),n.label=t}function fU(e){this.exit(e)}function fB(e,t,n,r){let a=n.createTracker(r),i=a.move("[^"),s=n.enter("footnoteReference"),o=n.enter("reference");return i+=a.move(n.safe(n.associationId(e),{after:"]",before:i})),o(),s(),i+=a.move("]")}function fH(e,t,n){return 0===t?e:fz(e,t,n)}function fz(e,t,n){return(n?"":" ")+e}fB.peek=function(){return"["};let fG=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function f$(e){this.enter({type:"delete",children:[]},e)}function fq(e){this.exit(e)}function fV(e,t,n,r){let a=n.createTracker(r),i=n.enter("strikethrough"),s=a.move("~~");return s+=n.containerPhrasing(e,{...a.current(),before:s,after:"~"}),s+=a.move("~~"),i(),s}function fW(e){return e.length}function fY(e){let t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:114*(82===t||114===t)}fV.peek=function(){return"~"};function fK(e,t,n){let r=e.value||"",a="`",i=-1;for(;RegExp("(^|[^`])"+a+"([^`]|$)").test(r);)a+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++i<n.unsafe.length;){let e,t=n.unsafe[i],a=n.compilePattern(t);if(t.atBreak)for(;e=a.exec(r);){let t=e.index;10===r.charCodeAt(t)&&13===r.charCodeAt(t-1)&&t--,r=r.slice(0,t)+" "+r.slice(e.index+1)}}return a+r+a}fK.peek=function(){return"`"};hL(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);let fX=function(e,t,n,r){let a=function(e){let t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n),i=n.bulletCurrent||function(e){let t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}(n);t&&"list"===t.type&&t.ordered&&(i=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+i);let s=i.length+1;("tab"===a||"mixed"===a&&(t&&"list"===t.type&&t.spread||e.spread))&&(s=4*Math.ceil(s/4));let o=n.createTracker(r);o.move(i+" ".repeat(s-i.length)),o.shift(s);let l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,o.current()),function(e,t,n){return t?(n?"":" ".repeat(s))+e:(n?i:i+" ".repeat(s-i.length))+e});return l(),c};function fZ(e){let t=e._align;d9(t,"expected `_align` on table"),this.enter({type:"table",align:t.map(function(e){return"none"===e?null:e}),children:[]},e),this.data.inTable=!0}function fQ(e){this.exit(e),this.data.inTable=void 0}function fJ(e){this.enter({type:"tableRow",children:[]},e)}function f0(e){this.exit(e)}function f1(e){this.enter({type:"tableCell",children:[]},e)}function f2(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,f3));let n=this.stack[this.stack.length-1];d9("inlineCode"===n.type),n.value=t,this.exit(e)}function f3(e,t){return"|"===t?t:e}function f4(e){let t=this.stack[this.stack.length-2];d9("listItem"===t.type),t.checked="taskListCheckValueChecked"===e.type}function f5(e){let t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){let e=this.stack[this.stack.length-1];d9("paragraph"===e.type);let n=e.children[0];if(n&&"text"===n.type){let r,a=t.children,i=-1;for(;++i<a.length;){let e=a[i];if("paragraph"===e.type){r=e;break}}r===e&&(n.value=n.value.slice(1),0===n.value.length?e.children.shift():e.position&&n.position&&"number"==typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function f6(e,t,n,r){let a=e.children[0],i="boolean"==typeof e.checked&&a&&"paragraph"===a.type,s="["+(e.checked?"x":" ")+"] ",o=n.createTracker(r);i&&o.move(s);let l=fX(e,t,n,{...r,...o.current()});return i&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,function(e){return e+s})),l}let f9={tokenize:function(e,t,n){let r=0;return function t(i){return(87===i||119===i)&&r<3?(r++,e.consume(i),t):46===i&&3===r?(e.consume(i),a):n(i)};function a(e){return null===e?n(e):t(e)}},partial:!0},f8={tokenize:function(e,t,n){let r,a,i;return s;function s(t){return 46===t||95===t?e.check(ge,l,o)(t):null===t||mE(t)||mT(t)||45!==t&&mS(t)?l(t):(i=!0,e.consume(t),s)}function o(t){return 95===t?r=!0:(a=r,r=void 0),e.consume(t),s}function l(e){return a||r||!i?n(e):t(e)}},partial:!0},f7={tokenize:function(e,t){let n=0,r=0;return a;function a(s){return 40===s?(n++,e.consume(s),a):41===s&&r<n?i(s):33===s||34===s||38===s||39===s||41===s||42===s||44===s||46===s||58===s||59===s||60===s||63===s||93===s||95===s||126===s?e.check(ge,t,i)(s):null===s||mE(s)||mT(s)?t(s):(e.consume(s),a)}function i(t){return 41===t&&r++,e.consume(t),a}},partial:!0},ge={tokenize:function(e,t,n){return r;function r(s){return 33===s||34===s||39===s||41===s||42===s||44===s||46===s||58===s||59===s||63===s||95===s||126===s?(e.consume(s),r):38===s?(e.consume(s),i):93===s?(e.consume(s),a):60===s||null===s||mE(s)||mT(s)?t(s):n(s)}function a(e){return null===e||40===e||91===e||mE(e)||mT(e)?t(e):r(e)}function i(t){return md(t)?function t(a){return 59===a?(e.consume(a),r):md(a)?(e.consume(a),t):n(a)}(t):n(t)}},partial:!0},gt={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return mp(e)?n(e):t(e)}},partial:!0},gn={name:"wwwAutolink",tokenize:function(e,t,n){let r=this;return function(t){return 87!==t&&119!==t||!go.call(r,r.previous)||gd(r.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(f9,e.attempt(f8,e.attempt(f7,a),n),n)(t))};function a(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:go},gr={name:"protocolAutolink",tokenize:function(e,t,n){let r=this,a="",i=!1;return function(t){return(72===t||104===t)&&gl.call(r,r.previous)&&!gd(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),a+=String.fromCodePoint(t),e.consume(t),s):n(t)};function s(t){if(md(t)&&a.length<5)return a+=String.fromCodePoint(t),e.consume(t),s;if(58===t){let n=a.toLowerCase();if("http"===n||"https"===n)return e.consume(t),o}return n(t)}function o(t){return 47===t?(e.consume(t),i)?l:(i=!0,o):n(t)}function l(t){return null===t||mh(t)||mE(t)||mT(t)||mS(t)?n(t):e.attempt(f8,e.attempt(f7,c),n)(t)}function c(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:gl},ga={name:"emailAutolink",tokenize:function(e,t,n){let r,a,i=this;return function(t){return!gu(t)||!gc.call(i,i.previous)||gd(i.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),function t(r){return gu(r)?(e.consume(r),t):64===r?(e.consume(r),s):n(r)}(t))};function s(t){return 46===t?e.check(gt,l,o)(t):45===t||95===t||mp(t)?(a=!0,e.consume(t),s):l(t)}function o(t){return e.consume(t),r=!0,s}function l(s){return a&&r&&md(i.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(s)):n(s)}},previous:gc},gi={},gs=48;for(;gs<123;)gi[gs]=ga,58==++gs?gs=65:91===gs&&(gs=97);function go(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||mE(e)}function gl(e){return!md(e)}function gc(e){return!(47===e||gu(e))}function gu(e){return 43===e||45===e||46===e||95===e||mp(e)}function gd(e){let t=e.length,n=!1;for(;t--;){let r=e[t][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}gi[43]=ga,gi[45]=ga,gi[46]=ga,gi[95]=ga,gi[72]=[ga,gr],gi[104]=[ga,gr],gi[87]=[ga,gn],gi[119]=[ga,gn];let gp={tokenize:function(e,t,n){let r=this;return mA(e,function(e){let a=r.events[r.events.length-1];return a&&"gfmFootnoteDefinitionIndent"===a[1].type&&4===a[2].sliceSerialize(a[1],!0).length?t(e):n(e)},"gfmFootnoteDefinitionIndent",5)},partial:!0};function gm(e,t,n){let r,a=this,i=a.events.length,s=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);for(;i--;){let e=a.events[i][1];if("labelImage"===e.type){r=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(i){if(!r||!r._balanced)return n(i);let o=m4(a.sliceSerialize({start:r.end,end:a.now()}));return 94===o.codePointAt(0)&&s.includes(o.slice(1))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(i),e.exit("gfmFootnoteCallLabelMarker"),t(i)):n(i)}}function gh(e,t){let n=e.length;for(;n--;)if("labelImage"===e[n][1].type&&"enter"===e[n][0]){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";let r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;let i={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},i.start),end:Object.assign({},i.end)},o=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",a,t],["exit",a,t],["enter",i,t],["enter",s,t],["exit",s,t],["exit",i,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...o),e}function gf(e,t,n){let r,a=this,i=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]),s=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),o};function o(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(o){if(s>999||93===o&&!r||null===o||91===o||mE(o))return n(o);if(93===o){e.exit("chunkString");let r=e.exit("gfmFootnoteCallString");return i.includes(m4(a.sliceSerialize(r)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(o),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(o)}return mE(o)||(r=!0),s++,e.consume(o),92===o?c:l}function c(t){return 91===t||92===t||93===t?(e.consume(t),s++,l):l(t)}}function gg(e,t,n){let r,a,i=this,s=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]),o=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),l};function l(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(t)}function c(t){if(o>999||93===t&&!a||null===t||91===t||mE(t))return n(t);if(93===t){e.exit("chunkString");let n=e.exit("gfmFootnoteDefinitionLabelString");return r=m4(i.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return mE(t)||(a=!0),o++,e.consume(t),92===t?u:c}function u(t){return 91===t||92===t||93===t?(e.consume(t),o++,c):c(t)}function d(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),s.includes(r)||s.push(r),mA(e,p,"gfmFootnoteDefinitionWhitespace")):n(t)}function p(e){return t(e)}}function gb(e,t,n){return e.check(mw,t,e.attempt(gp,t,n))}function gy(e){e.exit("gfmFootnoteDefinition")}class gE{constructor(){this.map=[]}add(e,t,n){!function(e,t,n,r){let a=0;if(0!==n||0!==r.length){for(;a<e.map.length;){if(e.map[a][0]===t){e.map[a][1]+=n,e.map[a][2].push(...r);return}a+=1}e.map.push([t,n,r])}}(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),0===this.map.length)return;let t=this.map.length,n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0}}function gx(e,t,n){let r,a=this,i=0,s=0;return function(e){let t=a.events.length-1;for(;t>-1;){let e=a.events[t][1].type;if("lineEnding"===e||"linePrefix"===e)t--;else break}let r=t>-1?a.events[t][1].type:null,i="tableHead"===r||"tableRow"===r?y:o;return i===y&&a.parser.lazy[a.now().line]?n(e):i(e)};function o(t){var n;return e.enter("tableHead"),e.enter("tableRow"),124===(n=t)||(r=!0,s+=1),l(n)}function l(t){return null===t?n(t):my(t)?s>1?(s=0,a.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d):n(t):mx(t)?mA(e,l,"whitespace")(t):(s+=1,r&&(r=!1,i+=1),124===t)?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),r=!0,l):(e.enter("data"),c(t))}function c(t){return null===t||124===t||mE(t)?(e.exit("data"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return 92===t||124===t?(e.consume(t),c):c(t)}function d(t){return(a.interrupt=!1,a.parser.lazy[a.now().line])?n(t):(e.enter("tableDelimiterRow"),r=!1,mx(t))?mA(e,p,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):p(t)}function p(t){return 45===t||58===t?h(t):124===t?(r=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),m):n(t)}function m(t){return mx(t)?mA(e,h,"whitespace")(t):h(t)}function h(t){return 58===t?(s+=1,r=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),f):45===t?(s+=1,f(t)):null===t||my(t)?b(t):n(t)}function f(t){return 45===t?(e.enter("tableDelimiterFiller"),function t(n){return 45===n?(e.consume(n),t):58===n?(r=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(n),e.exit("tableDelimiterMarker"),g):(e.exit("tableDelimiterFiller"),g(n))}(t)):n(t)}function g(t){return mx(t)?mA(e,b,"whitespace")(t):b(t)}function b(a){if(124===a)return p(a);if(null===a||my(a))return r&&i===s?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(a)):n(a);return n(a)}function y(t){return e.enter("tableRow"),E(t)}function E(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),E):null===n||my(n)?(e.exit("tableRow"),t(n)):mx(n)?mA(e,E,"whitespace")(n):(e.enter("data"),x(n))}function x(t){return null===t||124===t||mE(t)?(e.exit("data"),E(t)):(e.consume(t),92===t?S:x)}function S(t){return 92===t||124===t?(e.consume(t),x):x(t)}}function gS(e,t){let n,r,a,i=-1,s=!0,o=0,l=[0,0,0,0],c=[0,0,0,0],u=!1,d=0,p=new gE;for(;++i<e.length;){let m=e[i],h=m[1];"enter"===m[0]?"tableHead"===h.type?(u=!1,0!==d&&(gv(p,t,d,n,r),r=void 0,d=0),n={type:"table",start:Object.assign({},h.start),end:Object.assign({},h.end)},p.add(i,0,[["enter",n,t]])):"tableRow"===h.type||"tableDelimiterRow"===h.type?(s=!0,a=void 0,l=[0,0,0,0],c=[0,i+1,0,0],u&&(u=!1,r={type:"tableBody",start:Object.assign({},h.start),end:Object.assign({},h.end)},p.add(i,0,[["enter",r,t]])),o="tableDelimiterRow"===h.type?2:r?3:1):o&&("data"===h.type||"tableDelimiterMarker"===h.type||"tableDelimiterFiller"===h.type)?(s=!1,0===c[2]&&(0!==l[1]&&(c[0]=c[1],a=gT(p,t,l,o,void 0,a),l=[0,0,0,0]),c[2]=i)):"tableCellDivider"===h.type&&(s?s=!1:(0!==l[1]&&(c[0]=c[1],a=gT(p,t,l,o,void 0,a)),c=[(l=c)[1],i,0,0])):"tableHead"===h.type?(u=!0,d=i):"tableRow"===h.type||"tableDelimiterRow"===h.type?(d=i,0!==l[1]?(c[0]=c[1],a=gT(p,t,l,o,i,a)):0!==c[1]&&(a=gT(p,t,c,o,i,a)),o=0):o&&("data"===h.type||"tableDelimiterMarker"===h.type||"tableDelimiterFiller"===h.type)&&(c[3]=i)}for(0!==d&&gv(p,t,d,n,r),p.consume(t.events),i=-1;++i<t.events.length;){let e=t.events[i];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=function(e,t){let n=!1,r=[];for(;t<e.length;){let a=e[t];if(n){if("enter"===a[0])"tableContent"===a[1].type&&r.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===a[1].type){if("tableDelimiterMarker"===e[t-1][1].type){let e=r.length-1;r[e]="left"===r[e]?"center":"right"}}else if("tableDelimiterRow"===a[1].type)break}else"enter"===a[0]&&"tableDelimiterRow"===a[1].type&&(n=!0);t+=1}return r}(t.events,i))}return e}function gT(e,t,n,r,a,i){0!==n[0]&&(i.end=Object.assign({},gA(t.events,n[0])),e.add(n[0],0,[["exit",i,t]]));let s=gA(t.events,n[1]);if(i={type:1===r?"tableHeader":2===r?"tableDelimiter":"tableData",start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[["enter",i,t]]),0!==n[2]){let a=gA(t.events,n[2]),i=gA(t.events,n[3]),s={type:"tableContent",start:Object.assign({},a),end:Object.assign({},i)};if(e.add(n[2],0,[["enter",s,t]]),2!==r){let r=t.events[n[2]],a=t.events[n[3]];if(r[1].end=Object.assign({},a[1].end),r[1].type="chunkText",r[1].contentType="text",n[3]>n[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",s,t]])}return void 0!==a&&(i.end=Object.assign({},gA(t.events,a)),e.add(a,0,[["exit",i,t]]),i=void 0),i}function gv(e,t,n,r,a){let i=[],s=gA(t.events,n);a&&(a.end=Object.assign({},s),i.push(["exit",a,t])),r.end=Object.assign({},s),i.push(["exit",r,t]),e.add(n+1,0,i)}function gA(e,t){let n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}let g_={name:"tasklistCheck",tokenize:function(e,t,n){let r=this;return function(t){return null===r.previous&&r._gfmTasklistFirstContentOfListItem?(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),a):n(t)};function a(t){return mE(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),i):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),i):n(t)}function i(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(t)}function s(r){return my(r)?t(r):mx(r)?e.check({tokenize:gk},t,n)(r):n(r)}}};function gk(e,t,n){return mA(e,function(e){return null===e?n(e):t(e)},"whitespace")}let gN={};function gw(e){let t,n,r,a=e||gN,i=this.data(),s=i.micromarkExtensions||(i.micromarkExtensions=[]),o=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),l=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);s.push(mu([{text:gi},{document:{91:{name:"gfmFootnoteDefinition",tokenize:gg,continuation:{tokenize:gb},exit:gy}},text:{91:{name:"gfmFootnoteCall",tokenize:gf},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:gm,resolveTo:gh}}},(t=(a||{}).singleTilde,n={name:"strikethrough",tokenize:function(e,n,r){let a=this.previous,i=this.events,s=0;return function(o){return 126===a&&"characterEscape"!==i[i.length-1][1].type?r(o):(e.enter("strikethroughSequenceTemporary"),function i(o){let l=mH(a);if(126===o)return s>1?r(o):(e.consume(o),s++,i);if(s<2&&!t)return r(o);let c=e.exit("strikethroughSequenceTemporary"),u=mH(o);return c._open=!u||2===u&&!!l,c._close=!l||2===l&&!!u,n(o)}(o))}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset==e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";let a={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},i={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},s=[["enter",a,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",i,t]],o=t.parser.constructs.insideSpan.null;o&&mo(s,s.length,0,mz(o,e.slice(r+1,n),t)),mo(s,s.length,0,[["exit",i,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",a,t]]),mo(e,r-1,n-r+3,s),n=r+s.length-2;break}}for(n=-1;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}},null==t&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}),{flow:{null:{name:"table",tokenize:gx,resolveAll:gS}}},{text:{91:g_}}])),o.push([{transforms:[fw],enter:{literalAutolink:fT,literalAutolinkEmail:fv,literalAutolinkHttp:fv,literalAutolinkWww:fv},exit:{literalAutolink:fN,literalAutolinkEmail:fk,literalAutolinkHttp:fA,literalAutolinkWww:f_}},{enter:{gfmFootnoteCallString:fO,gfmFootnoteCall:fL,gfmFootnoteDefinitionLabelString:fD,gfmFootnoteDefinition:fP},exit:{gfmFootnoteCallString:fM,gfmFootnoteCall:fF,gfmFootnoteDefinitionLabelString:fj,gfmFootnoteDefinition:fU}},{canContainEols:["delete"],enter:{strikethrough:f$},exit:{strikethrough:fq}},{enter:{table:fZ,tableData:f1,tableHeader:f1,tableRow:fJ},exit:{codeText:f2,table:fQ,tableData:f0,tableHeader:f0,tableRow:f0}},{exit:{taskListCheckValueChecked:f4,taskListCheckValueUnchecked:f4,paragraph:f5}}]),l.push({extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:fx,notInConstruct:fS},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:fx,notInConstruct:fS},{character:":",before:"[ps]",after:"\\/",inConstruct:fx,notInConstruct:fS}]},(r=!1,a&&a.firstLineBlank&&(r=!0),{handlers:{footnoteDefinition:function(e,t,n,a){let i=n.createTracker(a),s=i.move("[^"),o=n.enter("footnoteDefinition"),l=n.enter("label");return s+=i.move(n.safe(n.associationId(e),{before:s,after:"]"})),l(),s+=i.move("]:"),e.children&&e.children.length>0&&(i.shift(4),s+=i.move((r?"\n":" ")+n.indentLines(n.containerFlow(e,i.current()),r?fz:fH))),o(),s},footnoteReference:fB},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:fG}],handlers:{delete:fV}},function(e){let t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,a=t.stringLength,i=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,n){let r=fK(e,t,n);return n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&")),r},table:function(e,t,n,r){return o(function(e,t,n){let r=e.children,a=-1,i=[],s=t.enter("table");for(;++a<r.length;)i[a]=l(r[a],t,n);return s(),i}(e,n,r),e.align)},tableCell:s,tableRow:function(e,t,n,r){let a=o([l(e,n,r)]);return a.slice(0,a.indexOf("\n"))}}};function s(e,t,n,r){let a=n.enter("tableCell"),s=n.enter("phrasing"),o=n.containerPhrasing(e,{...r,before:i,after:i});return s(),a(),o}function o(e,t){return function(e,t){let n=t||{},r=(n.align||[]).concat(),a=n.stringLength||fW,i=[],s=[],o=[],l=[],c=0,u=-1;for(;++u<e.length;){let t=[],r=[],i=-1;for(e[u].length>c&&(c=e[u].length);++i<e[u].length;){var d;let s=null==(d=e[u][i])?"":String(d);if(!1!==n.alignDelimiters){let e=a(s);r[i]=e,(void 0===l[i]||e>l[i])&&(l[i]=e)}t.push(s)}s[u]=t,o[u]=r}let p=-1;if("object"==typeof r&&"length"in r)for(;++p<c;)i[p]=fY(r[p]);else{let e=fY(r);for(;++p<c;)i[p]=e}p=-1;let m=[],h=[];for(;++p<c;){let e=i[p],t="",r="";99===e?(t=":",r=":"):108===e?t=":":114===e&&(r=":");let a=!1===n.alignDelimiters?1:Math.max(1,l[p]-t.length-r.length),s=t+"-".repeat(a)+r;!1!==n.alignDelimiters&&((a=t.length+a+r.length)>l[p]&&(l[p]=a),h[p]=a),m[p]=s}s.splice(1,0,m),o.splice(1,0,h),u=-1;let f=[];for(;++u<s.length;){let e=s[u],t=o[u];p=-1;let r=[];for(;++p<c;){let a=e[p]||"",s="",o="";if(!1!==n.alignDelimiters){let e=l[p]-(t[p]||0),n=i[p];114===n?s=" ".repeat(e):99===n?e%2?(s=" ".repeat(e/2+.5),o=" ".repeat(e/2-.5)):o=s=" ".repeat(e/2):o=" ".repeat(e)}!1===n.delimiterStart||p||r.push("|"),!1!==n.padding&&(!1!==n.alignDelimiters||""!==a)&&(!1!==n.delimiterStart||p)&&r.push(" "),!1!==n.alignDelimiters&&r.push(s),r.push(a),!1!==n.alignDelimiters&&r.push(o),!1!==n.padding&&r.push(" "),(!1!==n.delimiterEnd||p!==c-1)&&r.push("|")}f.push(!1===n.delimiterEnd?r.join("").replace(/ +$/,""):r.join(""))}return f.join("\n")}(e,{align:t,alignDelimiters:r,padding:n,stringLength:a})}function l(e,t,n){let r=e.children,a=-1,i=[],o=t.enter("tableRow");for(;++a<r.length;)i[a]=s(r[a],e,t,n);return o(),i}}(a),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:f6}}]})}let gI={tokenize:function(e,t,n){let r=this,a=r.events[r.events.length-1],i=a&&"linePrefix"===a[1].type?a[2].sliceSerialize(a[1],!0).length:0,s=0;return function(t){return e.enter("mathFlow"),e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),function t(r){return 36===r?(e.consume(r),s++,t):s<2?n(r):(e.exit("mathFlowFenceSequence"),mA(e,o,"whitespace")(r))}(t)};function o(t){return null===t||my(t)?l(t):(e.enter("mathFlowFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(r){return null===r||my(r)?(e.exit("chunkString"),e.exit("mathFlowFenceMeta"),l(r)):36===r?n(r):(e.consume(r),t)}(t))}function l(n){return(e.exit("mathFlowFence"),r.interrupt)?t(n):e.attempt(gC,c,p)(n)}function c(t){return e.attempt({tokenize:m,partial:!0},p,u)(t)}function u(t){return(i?mA(e,d,"linePrefix",i+1):d)(t)}function d(t){return null===t?p(t):my(t)?e.attempt(gC,c,p)(t):(e.enter("mathFlowValue"),function t(n){return null===n||my(n)?(e.exit("mathFlowValue"),d(n)):(e.consume(n),t)}(t))}function p(n){return e.exit("mathFlow"),t(n)}function m(e,t,n){let a=0;return mA(e,function(t){return e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),function t(r){return 36===r?(a++,e.consume(r),t):a<s?n(r):(e.exit("mathFlowFenceSequence"),mA(e,i,"whitespace")(r))}(t)},"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function i(r){return null===r||my(r)?(e.exit("mathFlowFence"),t(r)):n(r)}}},concrete:!0,name:"mathFlow"},gC={tokenize:function(e,t,n){let r=this;return function(n){return null===n?t(n):(e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),a)};function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0};function gR(e){let t,n,r=e.length-4,a=3;if(("lineEnding"===e[3][1].type||"space"===e[a][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type)){for(t=a;++t<r;)if("mathTextData"===e[t][1].type){e[r][1].type="mathTextPadding",e[a][1].type="mathTextPadding",a+=2,r-=2;break}}for(t=a-1,r++;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):(t===r||"lineEnding"===e[t][1].type)&&(e[n][1].type="mathTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e}function gO(e){return 36!==e||"characterEscape"===this.events[this.events.length-1][1].type}let gL={};function gD(e){let t,n=e||gL,r=this.data(),a=r.micromarkExtensions||(r.micromarkExtensions=[]),i=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),s=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);a.push({flow:{36:gI},text:{36:(null==(t=(n||{}).singleDollarTextMath)&&(t=!0),{tokenize:function(e,n,r){let a,i,s=0;return function(n){return e.enter("mathText"),e.enter("mathTextSequence"),function n(a){return 36===a?(e.consume(a),s++,n):s<2&&!t?r(a):(e.exit("mathTextSequence"),o(a))}(n)};function o(t){return null===t?r(t):36===t?(i=e.enter("mathTextSequence"),a=0,function t(r){return 36===r?(e.consume(r),a++,t):a===s?(e.exit("mathTextSequence"),e.exit("mathText"),n(r)):(i.type="mathTextData",l(r))}(t)):32===t?(e.enter("space"),e.consume(t),e.exit("space"),o):my(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):(e.enter("mathTextData"),l(t))}function l(t){return null===t||32===t||36===t||my(t)?(e.exit("mathTextData"),o(t)):(e.consume(t),l)}},resolve:gR,previous:gO,name:"mathText"})}}),i.push(function(){return{enter:{mathFlow:function(e){this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[{type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]}]}},e)},mathFlowFenceMeta:function(){this.buffer()},mathText:function(e){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},e),this.buffer()}},exit:{mathFlow:function(e){let t=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),n=this.stack[this.stack.length-1];d9("math"===n.type),this.exit(e),n.value=t;let r=n.data.hChildren[0];d9("element"===r.type),d9("code"===r.tagName),r.children.push({type:"text",value:t}),this.data.mathFlowInside=void 0},mathFlowFence:function(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)},mathFlowFenceMeta:function(){let e=this.resume(),t=this.stack[this.stack.length-1];d9("math"===t.type),t.meta=e},mathFlowValue:e,mathText:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];d9("inlineMath"===n.type),this.exit(e),n.value=t,n.data.hChildren.push({type:"text",value:t})},mathTextData:e}};function e(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}}()),s.push(function(e){let t=(e||{}).singleDollarTextMath;return null==t&&(t=!0),n.peek=function(){return"$"},{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:"\n",inConstruct:"mathFlowMeta"},{character:"$",after:t?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:function(e,t,n,r){let a=e.value||"",i=n.createTracker(r),s="$".repeat(Math.max(function(e){let t=String(e),n=t.indexOf("$"),r=n,a=0,i=0;!1;for(;-1!==n;)n===r?++a>i&&(i=a):a=1,r=n+1,n=t.indexOf("$",r);return i}(a)+1,2)),o=n.enter("mathFlow"),l=i.move(s);if(e.meta){let t=n.enter("mathFlowMeta");l+=i.move(n.safe(e.meta,{after:"\n",before:l,encode:["$"],...i.current()})),t()}return l+=i.move("\n"),a&&(l+=i.move(a+"\n")),l+=i.move(s),o(),l},inlineMath:n}};function n(e,n,r){let a=e.value||"",i=1;for(!t&&i++;RegExp("(^|[^$])"+"\\$".repeat(i)+"([^$]|$)").test(a);)i++;let s="$".repeat(i);/[^ \r\n]/.test(a)&&(/^[ \r\n]/.test(a)&&/[ \r\n]$/.test(a)||/^\$|\$$/.test(a))&&(a=" "+a+" ");let o=-1;for(;++o<r.unsafe.length;){let e,t=r.unsafe[o];if(!t.atBreak)continue;let n=r.compilePattern(t);for(;e=n.exec(a);){let t=e.index;10===a.codePointAt(t)&&13===a.codePointAt(t-1)&&t--,a=a.slice(0,t)+" "+a.slice(e.index+1)}}return s+a+s}}(n))}let gP=/[#.]/g;function gM(e,t,n){let r=n?function(e){let t=new Map;for(let n of e)t.set(n.toLowerCase(),n);return t}(n):void 0;return function(n,a,...i){let s;if(null==n)s={type:"root",children:[]},i.unshift(a);else{let o=(s=function(e,t){let n,r,a=e||"",i={},s=0;for(;s<a.length;){gP.lastIndex=s;let e=gP.exec(a),t=a.slice(s,e?e.index:a.length);t&&(n?"#"===n?i.id=t:Array.isArray(i.className)?i.className.push(t):i.className=[t]:r=t,s+=t.length),e&&(n=e[0],s++)}return{type:"element",tagName:r||t||"div",properties:i,children:[]}}(n,t)).tagName.toLowerCase(),l=r?r.get(o):void 0;if(s.tagName=l||o,function(e){if(null===e||"object"!=typeof e||Array.isArray(e))return!0;if("string"!=typeof e.type)return!1;for(let t of Object.keys(e)){let n=e[t];if(n&&"object"==typeof n){if(!Array.isArray(n))return!0;for(let e of n)if("number"!=typeof e&&"string"!=typeof e)return!0}}return!!("children"in e&&Array.isArray(e.children))}(a))i.unshift(a);else for(let[t,n]of Object.entries(a))!function(e,t,n,r){let a,i=pA(e,n);if(null!=r){if("number"==typeof r){if(Number.isNaN(r))return;a=r}else a="boolean"==typeof r?r:"string"==typeof r?i.spaceSeparated?pH(r):i.commaSeparated?d7(r):i.commaOrSpaceSeparated?pH(d7(r).join(" ")):gF(i,i.property,r):Array.isArray(r)?[...r]:"style"===i.property?function(e){let t=[];for(let[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}(r):String(r);if(Array.isArray(a)){let e=[];for(let t of a)e.push(gF(i,i.property,t));a=e}"className"===i.property&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[i.property]=a}}(e,s.properties,t,n)}for(let e of i)!function e(t,n){if(null==n);else if("number"==typeof n||"string"==typeof n)t.push({type:"text",value:String(n)});else if(Array.isArray(n))for(let r of n)e(t,r);else if("object"==typeof n&&"type"in n)"root"===n.type?e(t,n.children):t.push(n);else throw Error("Expected node, nodes, or string, got `"+n+"`")}(s.children,e);return"element"===s.type&&"template"===s.tagName&&(s.content={type:"root",children:s.children},s.children=[]),s}}function gF(e,t,n){if("string"==typeof n){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(""===n||px(n)===px(t)))return!0}return n}let gj=gM(pU,"div"),gU=gM(pB,"g",["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"]);function gB(e,t){let n=e.indexOf("\r",t),r=e.indexOf("\n",t);return -1===r?n:-1===n||n+1===r?r:n<r?n:r}let gH={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},gz={}.hasOwnProperty,gG=Object.prototype;function g$(e,t){let n;switch(t.nodeName){case"#comment":return n={type:"comment",value:t.data},gV(e,t,n),n;case"#document":case"#document-fragment":{let r="mode"in t&&("quirks"===t.mode||"limited-quirks"===t.mode);if(n={type:"root",children:gq(e,t.childNodes),data:{quirksMode:r}},e.file&&e.location){let t,r,a=String(e.file),i=(t=String(a),r=[],{toOffset:function(e){if(e&&"number"==typeof e.line&&"number"==typeof e.column&&!Number.isNaN(e.line)&&!Number.isNaN(e.column)){for(;r.length<e.line;){let e=r[r.length-1],n=gB(t,e),a=-1===n?t.length+1:n+1;if(e===a)break;r.push(a)}let n=(e.line>1?r[e.line-2]:0)+e.column-1;if(n<r[e.line-1])return n}},toPoint:function(e){if("number"==typeof e&&e>-1&&e<=t.length){let n=0;for(;;){let a=r[n];if(void 0===a){let e=gB(t,r[n-1]);a=-1===e?t.length+1:e+1,r[n]=a}if(a>e)return{line:n+1,column:e-(n>0?r[n-1]:0)+1,offset:e};n++}}}}),s=i.toPoint(0),o=i.toPoint(a.length);d9(s,"expected `start`"),d9(o,"expected `end`"),n.position={start:s,end:o}}return n}case"#documentType":return gV(e,t,n={type:"doctype"}),n;case"#text":return n={type:"text",value:t.value},gV(e,t,n),n;default:return function(e,t){let n=e.schema;e.schema=t.namespaceURI===gH.svg?pB:pU;let r=-1,a={};for(;++r<t.attrs.length;){let e=t.attrs[r],n=(e.prefix?e.prefix+":":"")+e.name;gz.call(gG,n)||(a[n]=e.value)}let i=("svg"===e.schema.space?gU:gj)(t.tagName,a,gq(e,t.childNodes));if(gV(e,t,i),"template"===i.tagName){let n=t.sourceCodeLocation,r=n&&n.startTag&&gW(n.startTag),a=n&&n.endTag&&gW(n.endTag),s=g$(e,t.content);r&&a&&e.file&&(s.position={start:r.end,end:a.start}),i.content=s}return e.schema=n,i}(e,t)}}function gq(e,t){let n=-1,r=[];for(;++n<t.length;){let a=g$(e,t[n]);r.push(a)}return r}function gV(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){let r=function(e,t,n){let r=gW(n);if("element"===t.type){let a=t.children[t.children.length-1];if(r&&!n.endTag&&a&&a.position&&a.position.end&&(r.end=Object.assign({},a.position.end)),e.verbose){let r,a={};if(n.attrs)for(r in n.attrs)gz.call(n.attrs,r)&&(a[pA(e.schema,r).property]=gW(n.attrs[r]));d9(n.startTag,"a start tag should exist");let i=gW(n.startTag),s=n.endTag?gW(n.endTag):void 0,o={opening:i};s&&(o.closing=s),o.properties=a,t.data={position:o}}}return r}(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function gW(e){let t=gY({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=gY({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function gY(e){return e.line&&e.column?e:void 0}let gK={}.hasOwnProperty;function gX(e,t){let n=t||{};function r(t,...n){let a=r.invalid,i=r.handlers;if(t&&gK.call(t,e)){let n=String(t[e]);a=gK.call(i,n)?i[n]:r.unknown}if(a)return a.call(this,t,...n)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}let gZ={}.hasOwnProperty,gQ=gX("type",{handlers:{root:function(e,t){let n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=gJ(e.children,n,t),g0(e,n),n},element:function(e,t){var n,r;let a,i,s=t;"element"===e.type&&"svg"===e.tagName.toLowerCase()&&"html"===t.space&&(s=pB);let o=[];if(e.properties){for(a in e.properties)if("children"!==a&&gZ.call(e.properties,a)){let t=function(e,t,n){let r=pA(e,t);if(!1===n||null==n||"number"==typeof n&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?pe(n):pz(n));let a={name:r.attribute,value:!0===n?"":String(n)};if(r.space&&"html"!==r.space&&"svg"!==r.space){let e=a.name.indexOf(":");e<0?a.prefix="":(a.name=a.name.slice(e+1),a.prefix=r.attribute.slice(0,e)),a.namespace=gH[r.space]}return a}(s,a,e.properties[a]);t&&o.push(t)}}let l=s.space;d9(l);let c={nodeName:e.tagName,tagName:e.tagName,attrs:o,namespaceURI:gH[l],childNodes:[],parentNode:null};return c.childNodes=gJ(e.children,c,s),g0(e,c),"template"===e.tagName&&e.content&&(n=e.content,r=s,(i={nodeName:"#document-fragment",childNodes:[]}).childNodes=gJ(n.children,i,r),g0(n,i),c.content=i),c},text:function(e){let t={nodeName:"#text",value:e.value,parentNode:null};return g0(e,t),t},comment:function(e){let t={nodeName:"#comment",data:e.value,parentNode:null};return g0(e,t),t},doctype:function(e){let t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return g0(e,t),t}}});function gJ(e,t,n){let r=-1,a=[];if(e)for(;++r<e.length;){let i=gQ(e[r],n);i.parentNode=t,a.push(i)}return a}function g0(e,t){let n=e.position;n&&n.start&&n.end&&(d9("number"==typeof n.start.offset),d9("number"==typeof n.end.offset),t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}let g1=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],g2=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]);(_=$||($={}))[_.EOF=-1]="EOF",_[_.NULL=0]="NULL",_[_.TABULATION=9]="TABULATION",_[_.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",_[_.LINE_FEED=10]="LINE_FEED",_[_.FORM_FEED=12]="FORM_FEED",_[_.SPACE=32]="SPACE",_[_.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",_[_.QUOTATION_MARK=34]="QUOTATION_MARK",_[_.AMPERSAND=38]="AMPERSAND",_[_.APOSTROPHE=39]="APOSTROPHE",_[_.HYPHEN_MINUS=45]="HYPHEN_MINUS",_[_.SOLIDUS=47]="SOLIDUS",_[_.DIGIT_0=48]="DIGIT_0",_[_.DIGIT_9=57]="DIGIT_9",_[_.SEMICOLON=59]="SEMICOLON",_[_.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",_[_.EQUALS_SIGN=61]="EQUALS_SIGN",_[_.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",_[_.QUESTION_MARK=63]="QUESTION_MARK",_[_.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",_[_.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",_[_.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",_[_.GRAVE_ACCENT=96]="GRAVE_ACCENT",_[_.LATIN_SMALL_A=97]="LATIN_SMALL_A",_[_.LATIN_SMALL_Z=122]="LATIN_SMALL_Z";let g3="[CDATA[",g4="doctype",g5="script";function g6(e){return e>=55296&&e<=57343}function g9(e){return 32!==e&&10!==e&&13!==e&&9!==e&&12!==e&&e>=1&&e<=31||e>=127&&e<=159}function g8(e){return e>=64976&&e<=65007||g2.has(e)}(k=q||(q={})).controlCharacterInInputStream="control-character-in-input-stream",k.noncharacterInInputStream="noncharacter-in-input-stream",k.surrogateInInputStream="surrogate-in-input-stream",k.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",k.endTagWithAttributes="end-tag-with-attributes",k.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",k.unexpectedSolidusInTag="unexpected-solidus-in-tag",k.unexpectedNullCharacter="unexpected-null-character",k.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",k.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",k.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",k.missingEndTagName="missing-end-tag-name",k.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",k.unknownNamedCharacterReference="unknown-named-character-reference",k.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",k.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",k.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",k.eofBeforeTagName="eof-before-tag-name",k.eofInTag="eof-in-tag",k.missingAttributeValue="missing-attribute-value",k.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",k.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",k.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",k.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",k.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",k.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",k.missingDoctypePublicIdentifier="missing-doctype-public-identifier",k.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",k.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",k.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",k.cdataInHtmlContent="cdata-in-html-content",k.incorrectlyOpenedComment="incorrectly-opened-comment",k.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",k.eofInDoctype="eof-in-doctype",k.nestedComment="nested-comment",k.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",k.eofInComment="eof-in-comment",k.incorrectlyClosedComment="incorrectly-closed-comment",k.eofInCdata="eof-in-cdata",k.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",k.nullCharacterReference="null-character-reference",k.surrogateCharacterReference="surrogate-character-reference",k.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",k.controlCharacterReference="control-character-reference",k.noncharacterCharacterReference="noncharacter-character-reference",k.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",k.missingDoctypeName="missing-doctype-name",k.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",k.duplicateAttribute="duplicate-attribute",k.nonConformingDoctype="non-conforming-doctype",k.missingDoctype="missing-doctype",k.misplacedDoctype="misplaced-doctype",k.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",k.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",k.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",k.openElementsLeftAfterEof="open-elements-left-after-eof",k.abandonedHeadElementChild="abandoned-head-element-child",k.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",k.nestedNoscriptInHead="nested-noscript-in-head",k.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text";class g7{constructor(e){this.handler=e,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=65536,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+Number(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(e,t){let{line:n,col:r,offset:a}=this,i=r+t,s=a+t;return{code:e,startLine:n,endLine:n,startCol:i,endCol:i,startOffset:s,endOffset:s}}_err(e){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(e,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.html.length-1){let t=this.html.charCodeAt(this.pos+1);if(t>=56320&&t<=57343)return this.pos++,this._addGap(),(e-55296)*1024+9216+t}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,$.EOF;return this._err(q.surrogateInInputStream),e}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(e,t){this.html.length>0?this.html+=e:this.html=e,this.endOfChunkHit=!1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(e,t){if(this.pos+e.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(t)return this.html.startsWith(e,this.pos);for(let t=0;t<e.length;t++)if((32|this.html.charCodeAt(this.pos+t))!==e.charCodeAt(t))return!1;return!0}peek(e){let t=this.pos+e;if(t>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,$.EOF;let n=this.html.charCodeAt(t);return n===$.CARRIAGE_RETURN?$.LINE_FEED:n}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,$.EOF;let e=this.html.charCodeAt(this.pos);return e===$.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,$.LINE_FEED):e===$.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,g6(e)&&(e=this._processSurrogate(e)),null===this.handler.onParseError||e>31&&e<127||e===$.LINE_FEED||e===$.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e)}_checkForProblematicCharacters(e){g9(e)?this._err(q.controlCharacterInInputStream):g8(e)&&this._err(q.noncharacterInInputStream)}retreat(e){for(this.pos-=e;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}function be(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}(N=V||(V={}))[N.CHARACTER=0]="CHARACTER",N[N.NULL_CHARACTER=1]="NULL_CHARACTER",N[N.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",N[N.START_TAG=3]="START_TAG",N[N.END_TAG=4]="END_TAG",N[N.COMMENT=5]="COMMENT",N[N.DOCTYPE=6]="DOCTYPE",N[N.EOF=7]="EOF",N[N.HIBERNATION=8]="HIBERNATION",e.s(["TokenType",0,V,"getTokenAttr",0,be],382698);let bt=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),bn=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function br(e){return e>=Y.ZERO&&e<=Y.NINE}W=String.fromCodePoint,(w=Y||(Y={}))[w.NUM=35]="NUM",w[w.SEMI=59]="SEMI",w[w.EQUALS=61]="EQUALS",w[w.ZERO=48]="ZERO",w[w.NINE=57]="NINE",w[w.LOWER_A=97]="LOWER_A",w[w.LOWER_F=102]="LOWER_F",w[w.LOWER_X=120]="LOWER_X",w[w.LOWER_Z=122]="LOWER_Z",w[w.UPPER_A=65]="UPPER_A",w[w.UPPER_F=70]="UPPER_F",w[w.UPPER_Z=90]="UPPER_Z",(I=K||(K={}))[I.VALUE_LENGTH=49152]="VALUE_LENGTH",I[I.BRANCH_LENGTH=16256]="BRANCH_LENGTH",I[I.JUMP_TABLE=127]="JUMP_TABLE",(C=X||(X={}))[C.EntityStart=0]="EntityStart",C[C.NumericStart=1]="NumericStart",C[C.NumericDecimal=2]="NumericDecimal",C[C.NumericHex=3]="NumericHex",C[C.NamedEntity=4]="NamedEntity",(R=Z||(Z={}))[R.Legacy=0]="Legacy",R[R.Strict=1]="Strict",R[R.Attribute=2]="Attribute";class ba{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=X.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Z.Strict}startEntity(e){this.decodeMode=e,this.state=X.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case X.EntityStart:if(e.charCodeAt(t)===Y.NUM)return this.state=X.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1);return this.state=X.NamedEntity,this.stateNamedEntity(e,t);case X.NumericStart:return this.stateNumericStart(e,t);case X.NumericDecimal:return this.stateNumericDecimal(e,t);case X.NumericHex:return this.stateNumericHex(e,t);case X.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===Y.LOWER_X?(this.state=X.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=X.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,n,r){if(t!==n){let a=n-t;this.result=this.result*Math.pow(r,a)+Number.parseInt(e.substr(t,a),r),this.consumed+=a}}stateNumericHex(e,t){let n=t;for(;t<e.length;){var r;let a=e.charCodeAt(t);if(!br(a)&&(!((r=a)>=Y.UPPER_A)||!(r<=Y.UPPER_F))&&(!(r>=Y.LOWER_A)||!(r<=Y.LOWER_F)))return this.addToNumericResult(e,n,t,16),this.emitNumericEntity(a,3);t+=1}return this.addToNumericResult(e,n,t,16),-1}stateNumericDecimal(e,t){let n=t;for(;t<e.length;){let r=e.charCodeAt(t);if(!br(r))return this.addToNumericResult(e,n,t,10),this.emitNumericEntity(r,2);t+=1}return this.addToNumericResult(e,n,t,10),-1}emitNumericEntity(e,t){var n,r,a;if(this.consumed<=t)return null==(n=this.errors)||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===Y.SEMI)this.consumed+=1;else if(this.decodeMode===Z.Strict)return 0;return this.emitCodePoint((r=this.result)>=55296&&r<=57343||r>1114111?65533:null!=(a=bn.get(r))?a:r,this.consumed),this.errors&&(e!==Y.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){let{decodeTree:n}=this,r=n[this.treeIndex],a=(r&K.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){let i=e.charCodeAt(t);if(this.treeIndex=function(e,t,n,r){let a=(t&K.BRANCH_LENGTH)>>7,i=t&K.JUMP_TABLE;if(0===a)return 0!==i&&r===i?n:-1;if(i){let t=r-i;return t<0||t>=a?-1:e[n+t]-1}let s=n,o=s+a-1;for(;s<=o;){let t=s+o>>>1,n=e[t];if(n<r)s=t+1;else{if(!(n>r))return e[t+a];o=t-1}}return -1}(n,r,this.treeIndex+Math.max(1,a),i),this.treeIndex<0)return 0===this.result||this.decodeMode===Z.Attribute&&(0===a||function(e){var t;return e===Y.EQUALS||(t=e)>=Y.UPPER_A&&t<=Y.UPPER_Z||t>=Y.LOWER_A&&t<=Y.LOWER_Z||br(t)}(i))?0:this.emitNotTerminatedNamedEntity();if(0!=(a=((r=n[this.treeIndex])&K.VALUE_LENGTH)>>14)){if(i===Y.SEMI)return this.emitNamedEntityData(this.treeIndex,a,this.consumed+this.excess);this.decodeMode!==Z.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return -1}emitNotTerminatedNamedEntity(){var e;let{result:t,decodeTree:n}=this,r=(n[t]&K.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,r,this.consumed),null==(e=this.errors)||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){let{decodeTree:r}=this;return this.emitCodePoint(1===t?r[e]&~K.VALUE_LENGTH:r[e+1],n),3===t&&this.emitCodePoint(r[e+2],n),n}end(){var e;switch(this.state){case X.NamedEntity:return 0!==this.result&&(this.decodeMode!==Z.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case X.NumericDecimal:return this.emitNumericEntity(0,2);case X.NumericHex:return this.emitNumericEntity(0,3);case X.NumericStart:return null==(e=this.errors)||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case X.EntityStart:return 0}}}(O=Q||(Q={})).HTML="http://www.w3.org/1999/xhtml",O.MATHML="http://www.w3.org/1998/Math/MathML",O.SVG="http://www.w3.org/2000/svg",O.XLINK="http://www.w3.org/1999/xlink",O.XML="http://www.w3.org/XML/1998/namespace",O.XMLNS="http://www.w3.org/2000/xmlns/",(L=J||(J={})).TYPE="type",L.ACTION="action",L.ENCODING="encoding",L.PROMPT="prompt",L.NAME="name",L.COLOR="color",L.FACE="face",L.SIZE="size",(D=ee||(ee={})).NO_QUIRKS="no-quirks",D.QUIRKS="quirks",D.LIMITED_QUIRKS="limited-quirks",(P=et||(et={})).A="a",P.ADDRESS="address",P.ANNOTATION_XML="annotation-xml",P.APPLET="applet",P.AREA="area",P.ARTICLE="article",P.ASIDE="aside",P.B="b",P.BASE="base",P.BASEFONT="basefont",P.BGSOUND="bgsound",P.BIG="big",P.BLOCKQUOTE="blockquote",P.BODY="body",P.BR="br",P.BUTTON="button",P.CAPTION="caption",P.CENTER="center",P.CODE="code",P.COL="col",P.COLGROUP="colgroup",P.DD="dd",P.DESC="desc",P.DETAILS="details",P.DIALOG="dialog",P.DIR="dir",P.DIV="div",P.DL="dl",P.DT="dt",P.EM="em",P.EMBED="embed",P.FIELDSET="fieldset",P.FIGCAPTION="figcaption",P.FIGURE="figure",P.FONT="font",P.FOOTER="footer",P.FOREIGN_OBJECT="foreignObject",P.FORM="form",P.FRAME="frame",P.FRAMESET="frameset",P.H1="h1",P.H2="h2",P.H3="h3",P.H4="h4",P.H5="h5",P.H6="h6",P.HEAD="head",P.HEADER="header",P.HGROUP="hgroup",P.HR="hr",P.HTML="html",P.I="i",P.IMG="img",P.IMAGE="image",P.INPUT="input",P.IFRAME="iframe",P.KEYGEN="keygen",P.LABEL="label",P.LI="li",P.LINK="link",P.LISTING="listing",P.MAIN="main",P.MALIGNMARK="malignmark",P.MARQUEE="marquee",P.MATH="math",P.MENU="menu",P.META="meta",P.MGLYPH="mglyph",P.MI="mi",P.MO="mo",P.MN="mn",P.MS="ms",P.MTEXT="mtext",P.NAV="nav",P.NOBR="nobr",P.NOFRAMES="noframes",P.NOEMBED="noembed",P.NOSCRIPT="noscript",P.OBJECT="object",P.OL="ol",P.OPTGROUP="optgroup",P.OPTION="option",P.P="p",P.PARAM="param",P.PLAINTEXT="plaintext",P.PRE="pre",P.RB="rb",P.RP="rp",P.RT="rt",P.RTC="rtc",P.RUBY="ruby",P.S="s",P.SCRIPT="script",P.SEARCH="search",P.SECTION="section",P.SELECT="select",P.SOURCE="source",P.SMALL="small",P.SPAN="span",P.STRIKE="strike",P.STRONG="strong",P.STYLE="style",P.SUB="sub",P.SUMMARY="summary",P.SUP="sup",P.TABLE="table",P.TBODY="tbody",P.TEMPLATE="template",P.TEXTAREA="textarea",P.TFOOT="tfoot",P.TD="td",P.TH="th",P.THEAD="thead",P.TITLE="title",P.TR="tr",P.TRACK="track",P.TT="tt",P.U="u",P.UL="ul",P.SVG="svg",P.VAR="var",P.WBR="wbr",P.XMP="xmp",(M=en||(en={}))[M.UNKNOWN=0]="UNKNOWN",M[M.A=1]="A",M[M.ADDRESS=2]="ADDRESS",M[M.ANNOTATION_XML=3]="ANNOTATION_XML",M[M.APPLET=4]="APPLET",M[M.AREA=5]="AREA",M[M.ARTICLE=6]="ARTICLE",M[M.ASIDE=7]="ASIDE",M[M.B=8]="B",M[M.BASE=9]="BASE",M[M.BASEFONT=10]="BASEFONT",M[M.BGSOUND=11]="BGSOUND",M[M.BIG=12]="BIG",M[M.BLOCKQUOTE=13]="BLOCKQUOTE",M[M.BODY=14]="BODY",M[M.BR=15]="BR",M[M.BUTTON=16]="BUTTON",M[M.CAPTION=17]="CAPTION",M[M.CENTER=18]="CENTER",M[M.CODE=19]="CODE",M[M.COL=20]="COL",M[M.COLGROUP=21]="COLGROUP",M[M.DD=22]="DD",M[M.DESC=23]="DESC",M[M.DETAILS=24]="DETAILS",M[M.DIALOG=25]="DIALOG",M[M.DIR=26]="DIR",M[M.DIV=27]="DIV",M[M.DL=28]="DL",M[M.DT=29]="DT",M[M.EM=30]="EM",M[M.EMBED=31]="EMBED",M[M.FIELDSET=32]="FIELDSET",M[M.FIGCAPTION=33]="FIGCAPTION",M[M.FIGURE=34]="FIGURE",M[M.FONT=35]="FONT",M[M.FOOTER=36]="FOOTER",M[M.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",M[M.FORM=38]="FORM",M[M.FRAME=39]="FRAME",M[M.FRAMESET=40]="FRAMESET",M[M.H1=41]="H1",M[M.H2=42]="H2",M[M.H3=43]="H3",M[M.H4=44]="H4",M[M.H5=45]="H5",M[M.H6=46]="H6",M[M.HEAD=47]="HEAD",M[M.HEADER=48]="HEADER",M[M.HGROUP=49]="HGROUP",M[M.HR=50]="HR",M[M.HTML=51]="HTML",M[M.I=52]="I",M[M.IMG=53]="IMG",M[M.IMAGE=54]="IMAGE",M[M.INPUT=55]="INPUT",M[M.IFRAME=56]="IFRAME",M[M.KEYGEN=57]="KEYGEN",M[M.LABEL=58]="LABEL",M[M.LI=59]="LI",M[M.LINK=60]="LINK",M[M.LISTING=61]="LISTING",M[M.MAIN=62]="MAIN",M[M.MALIGNMARK=63]="MALIGNMARK",M[M.MARQUEE=64]="MARQUEE",M[M.MATH=65]="MATH",M[M.MENU=66]="MENU",M[M.META=67]="META",M[M.MGLYPH=68]="MGLYPH",M[M.MI=69]="MI",M[M.MO=70]="MO",M[M.MN=71]="MN",M[M.MS=72]="MS",M[M.MTEXT=73]="MTEXT",M[M.NAV=74]="NAV",M[M.NOBR=75]="NOBR",M[M.NOFRAMES=76]="NOFRAMES",M[M.NOEMBED=77]="NOEMBED",M[M.NOSCRIPT=78]="NOSCRIPT",M[M.OBJECT=79]="OBJECT",M[M.OL=80]="OL",M[M.OPTGROUP=81]="OPTGROUP",M[M.OPTION=82]="OPTION",M[M.P=83]="P",M[M.PARAM=84]="PARAM",M[M.PLAINTEXT=85]="PLAINTEXT",M[M.PRE=86]="PRE",M[M.RB=87]="RB",M[M.RP=88]="RP",M[M.RT=89]="RT",M[M.RTC=90]="RTC",M[M.RUBY=91]="RUBY",M[M.S=92]="S",M[M.SCRIPT=93]="SCRIPT",M[M.SEARCH=94]="SEARCH",M[M.SECTION=95]="SECTION",M[M.SELECT=96]="SELECT",M[M.SOURCE=97]="SOURCE",M[M.SMALL=98]="SMALL",M[M.SPAN=99]="SPAN",M[M.STRIKE=100]="STRIKE",M[M.STRONG=101]="STRONG",M[M.STYLE=102]="STYLE",M[M.SUB=103]="SUB",M[M.SUMMARY=104]="SUMMARY",M[M.SUP=105]="SUP",M[M.TABLE=106]="TABLE",M[M.TBODY=107]="TBODY",M[M.TEMPLATE=108]="TEMPLATE",M[M.TEXTAREA=109]="TEXTAREA",M[M.TFOOT=110]="TFOOT",M[M.TD=111]="TD",M[M.TH=112]="TH",M[M.THEAD=113]="THEAD",M[M.TITLE=114]="TITLE",M[M.TR=115]="TR",M[M.TRACK=116]="TRACK",M[M.TT=117]="TT",M[M.U=118]="U",M[M.UL=119]="UL",M[M.SVG=120]="SVG",M[M.VAR=121]="VAR",M[M.WBR=122]="WBR",M[M.XMP=123]="XMP";let bi=new Map([[et.A,en.A],[et.ADDRESS,en.ADDRESS],[et.ANNOTATION_XML,en.ANNOTATION_XML],[et.APPLET,en.APPLET],[et.AREA,en.AREA],[et.ARTICLE,en.ARTICLE],[et.ASIDE,en.ASIDE],[et.B,en.B],[et.BASE,en.BASE],[et.BASEFONT,en.BASEFONT],[et.BGSOUND,en.BGSOUND],[et.BIG,en.BIG],[et.BLOCKQUOTE,en.BLOCKQUOTE],[et.BODY,en.BODY],[et.BR,en.BR],[et.BUTTON,en.BUTTON],[et.CAPTION,en.CAPTION],[et.CENTER,en.CENTER],[et.CODE,en.CODE],[et.COL,en.COL],[et.COLGROUP,en.COLGROUP],[et.DD,en.DD],[et.DESC,en.DESC],[et.DETAILS,en.DETAILS],[et.DIALOG,en.DIALOG],[et.DIR,en.DIR],[et.DIV,en.DIV],[et.DL,en.DL],[et.DT,en.DT],[et.EM,en.EM],[et.EMBED,en.EMBED],[et.FIELDSET,en.FIELDSET],[et.FIGCAPTION,en.FIGCAPTION],[et.FIGURE,en.FIGURE],[et.FONT,en.FONT],[et.FOOTER,en.FOOTER],[et.FOREIGN_OBJECT,en.FOREIGN_OBJECT],[et.FORM,en.FORM],[et.FRAME,en.FRAME],[et.FRAMESET,en.FRAMESET],[et.H1,en.H1],[et.H2,en.H2],[et.H3,en.H3],[et.H4,en.H4],[et.H5,en.H5],[et.H6,en.H6],[et.HEAD,en.HEAD],[et.HEADER,en.HEADER],[et.HGROUP,en.HGROUP],[et.HR,en.HR],[et.HTML,en.HTML],[et.I,en.I],[et.IMG,en.IMG],[et.IMAGE,en.IMAGE],[et.INPUT,en.INPUT],[et.IFRAME,en.IFRAME],[et.KEYGEN,en.KEYGEN],[et.LABEL,en.LABEL],[et.LI,en.LI],[et.LINK,en.LINK],[et.LISTING,en.LISTING],[et.MAIN,en.MAIN],[et.MALIGNMARK,en.MALIGNMARK],[et.MARQUEE,en.MARQUEE],[et.MATH,en.MATH],[et.MENU,en.MENU],[et.META,en.META],[et.MGLYPH,en.MGLYPH],[et.MI,en.MI],[et.MO,en.MO],[et.MN,en.MN],[et.MS,en.MS],[et.MTEXT,en.MTEXT],[et.NAV,en.NAV],[et.NOBR,en.NOBR],[et.NOFRAMES,en.NOFRAMES],[et.NOEMBED,en.NOEMBED],[et.NOSCRIPT,en.NOSCRIPT],[et.OBJECT,en.OBJECT],[et.OL,en.OL],[et.OPTGROUP,en.OPTGROUP],[et.OPTION,en.OPTION],[et.P,en.P],[et.PARAM,en.PARAM],[et.PLAINTEXT,en.PLAINTEXT],[et.PRE,en.PRE],[et.RB,en.RB],[et.RP,en.RP],[et.RT,en.RT],[et.RTC,en.RTC],[et.RUBY,en.RUBY],[et.S,en.S],[et.SCRIPT,en.SCRIPT],[et.SEARCH,en.SEARCH],[et.SECTION,en.SECTION],[et.SELECT,en.SELECT],[et.SOURCE,en.SOURCE],[et.SMALL,en.SMALL],[et.SPAN,en.SPAN],[et.STRIKE,en.STRIKE],[et.STRONG,en.STRONG],[et.STYLE,en.STYLE],[et.SUB,en.SUB],[et.SUMMARY,en.SUMMARY],[et.SUP,en.SUP],[et.TABLE,en.TABLE],[et.TBODY,en.TBODY],[et.TEMPLATE,en.TEMPLATE],[et.TEXTAREA,en.TEXTAREA],[et.TFOOT,en.TFOOT],[et.TD,en.TD],[et.TH,en.TH],[et.THEAD,en.THEAD],[et.TITLE,en.TITLE],[et.TR,en.TR],[et.TRACK,en.TRACK],[et.TT,en.TT],[et.U,en.U],[et.UL,en.UL],[et.SVG,en.SVG],[et.VAR,en.VAR],[et.WBR,en.WBR],[et.XMP,en.XMP]]);function bs(e){var t;return null!=(t=bi.get(e))?t:en.UNKNOWN}let bo=en,bl={[Q.HTML]:new Set([bo.ADDRESS,bo.APPLET,bo.AREA,bo.ARTICLE,bo.ASIDE,bo.BASE,bo.BASEFONT,bo.BGSOUND,bo.BLOCKQUOTE,bo.BODY,bo.BR,bo.BUTTON,bo.CAPTION,bo.CENTER,bo.COL,bo.COLGROUP,bo.DD,bo.DETAILS,bo.DIR,bo.DIV,bo.DL,bo.DT,bo.EMBED,bo.FIELDSET,bo.FIGCAPTION,bo.FIGURE,bo.FOOTER,bo.FORM,bo.FRAME,bo.FRAMESET,bo.H1,bo.H2,bo.H3,bo.H4,bo.H5,bo.H6,bo.HEAD,bo.HEADER,bo.HGROUP,bo.HR,bo.HTML,bo.IFRAME,bo.IMG,bo.INPUT,bo.LI,bo.LINK,bo.LISTING,bo.MAIN,bo.MARQUEE,bo.MENU,bo.META,bo.NAV,bo.NOEMBED,bo.NOFRAMES,bo.NOSCRIPT,bo.OBJECT,bo.OL,bo.P,bo.PARAM,bo.PLAINTEXT,bo.PRE,bo.SCRIPT,bo.SECTION,bo.SELECT,bo.SOURCE,bo.STYLE,bo.SUMMARY,bo.TABLE,bo.TBODY,bo.TD,bo.TEMPLATE,bo.TEXTAREA,bo.TFOOT,bo.TH,bo.THEAD,bo.TITLE,bo.TR,bo.TRACK,bo.UL,bo.WBR,bo.XMP]),[Q.MATHML]:new Set([bo.MI,bo.MO,bo.MN,bo.MS,bo.MTEXT,bo.ANNOTATION_XML]),[Q.SVG]:new Set([bo.TITLE,bo.FOREIGN_OBJECT,bo.DESC]),[Q.XLINK]:new Set,[Q.XML]:new Set,[Q.XMLNS]:new Set},bc=new Set([bo.H1,bo.H2,bo.H3,bo.H4,bo.H5,bo.H6]),bu=new Set([et.STYLE,et.SCRIPT,et.XMP,et.IFRAME,et.NOEMBED,et.NOFRAMES,et.PLAINTEXT]);e.s(["ATTRS",0,J,"DOCUMENT_MODE",0,ee,"NS",0,Q,"NUMBERED_HEADERS",0,bc,"SPECIAL_ELEMENTS",0,bl,"TAG_ID",0,en,"TAG_NAMES",0,et,"getTagID",0,bs,"hasUnescapedText",0,function(e,t){return bu.has(e)||t&&e===et.NOSCRIPT}],615473),(F=er||(er={}))[F.DATA=0]="DATA",F[F.RCDATA=1]="RCDATA",F[F.RAWTEXT=2]="RAWTEXT",F[F.SCRIPT_DATA=3]="SCRIPT_DATA",F[F.PLAINTEXT=4]="PLAINTEXT",F[F.TAG_OPEN=5]="TAG_OPEN",F[F.END_TAG_OPEN=6]="END_TAG_OPEN",F[F.TAG_NAME=7]="TAG_NAME",F[F.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",F[F.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",F[F.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",F[F.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",F[F.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",F[F.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",F[F.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",F[F.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",F[F.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",F[F.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",F[F.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",F[F.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",F[F.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",F[F.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",F[F.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",F[F.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",F[F.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",F[F.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",F[F.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",F[F.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",F[F.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",F[F.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",F[F.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",F[F.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",F[F.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",F[F.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",F[F.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",F[F.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",F[F.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",F[F.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",F[F.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",F[F.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",F[F.BOGUS_COMMENT=40]="BOGUS_COMMENT",F[F.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",F[F.COMMENT_START=42]="COMMENT_START",F[F.COMMENT_START_DASH=43]="COMMENT_START_DASH",F[F.COMMENT=44]="COMMENT",F[F.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",F[F.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",F[F.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",F[F.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",F[F.COMMENT_END_DASH=49]="COMMENT_END_DASH",F[F.COMMENT_END=50]="COMMENT_END",F[F.COMMENT_END_BANG=51]="COMMENT_END_BANG",F[F.DOCTYPE=52]="DOCTYPE",F[F.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",F[F.DOCTYPE_NAME=54]="DOCTYPE_NAME",F[F.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",F[F.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",F[F.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",F[F.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",F[F.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",F[F.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",F[F.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",F[F.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",F[F.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",F[F.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",F[F.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",F[F.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",F[F.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",F[F.CDATA_SECTION=68]="CDATA_SECTION",F[F.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",F[F.CDATA_SECTION_END=70]="CDATA_SECTION_END",F[F.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",F[F.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND";let bd={DATA:er.DATA,RCDATA:er.RCDATA,RAWTEXT:er.RAWTEXT,SCRIPT_DATA:er.SCRIPT_DATA,PLAINTEXT:er.PLAINTEXT,CDATA_SECTION:er.CDATA_SECTION};function bp(e){return e>=$.LATIN_CAPITAL_A&&e<=$.LATIN_CAPITAL_Z}function bm(e){return e>=$.LATIN_SMALL_A&&e<=$.LATIN_SMALL_Z||bp(e)}function bh(e){return bm(e)||e>=$.DIGIT_0&&e<=$.DIGIT_9}function bf(e){return e===$.SPACE||e===$.LINE_FEED||e===$.TABULATION||e===$.FORM_FEED}function bg(e){return bf(e)||e===$.SOLIDUS||e===$.GREATER_THAN_SIGN}class bb{constructor(e,t){this.options=e,this.handler=t,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=er.DATA,this.returnState=er.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new g7(t),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new ba(bt,(e,t)=>{this.preprocessor.pos=this.entityStartPos+t-1,this._flushCodePointConsumedAsCharacterReference(e)},t.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(q.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:e=>{this._err(q.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+e)},validateNumericCharacterReference:e=>{let t=function(e){if(e===$.NULL)return q.nullCharacterReference;if(e>1114111)return q.characterReferenceOutsideUnicodeRange;if(g6(e))return q.surrogateCharacterReference;if(g8(e))return q.noncharacterCharacterReference;if(g9(e)||e===$.CARRIAGE_RETURN)return q.controlCharacterReference;return null}(e);t&&this._err(t,1)}}:void 0)}_err(e,t=0){var n,r;null==(r=(n=this.handler).onParseError)||r.call(n,this.preprocessor.getError(e,t))}getCurrentLocation(e){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-e,startOffset:this.preprocessor.offset-e,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;let e=this._consume();this._ensureHibernation()||this._callState(e)}this.inLoop=!1}}pause(){this.paused=!0}resume(e){if(!this.paused)throw Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||null==e||e())}write(e,t,n){this.active=!0,this.preprocessor.write(e,t),this._runParsingLoop(),this.paused||null==n||n()}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e),this._runParsingLoop()}_ensureHibernation(){return!!this.preprocessor.endOfChunkHit&&(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0)}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(e){this.consumedAfterSnapshot+=e;for(let t=0;t<e;t++)this.preprocessor.advance()}_consumeSequenceIfMatch(e,t){return!!this.preprocessor.startsWith(e,t)&&(this._advanceBy(e.length-1),!0)}_createStartTagToken(){this.currentToken={type:V.START_TAG,tagName:"",tagID:en.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:V.END_TAG,tagName:"",tagID:en.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(e){this.currentToken={type:V.COMMENT,data:"",location:this.getCurrentLocation(e)}}_createDoctypeToken(e){this.currentToken={type:V.DOCTYPE,name:e,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(e,t){this.currentCharacterToken={type:e,chars:t,location:this.currentLocation}}_createAttr(e){this.currentAttr={name:e,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var e,t;let n=this.currentToken;null===be(n,this.currentAttr.name)?(n.attrs.push(this.currentAttr),n.location&&this.currentLocation&&((null!=(e=(t=n.location).attrs)?e:t.attrs=Object.create(null))[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue())):this._err(q.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(e){this._emitCurrentCharacterToken(e.location),this.currentToken=null,e.location&&(e.location.endLine=this.preprocessor.line,e.location.endCol=this.preprocessor.col+1,e.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){let e=this.currentToken;this.prepareToken(e),e.tagID=bs(e.tagName),e.type===V.START_TAG?(this.lastStartTagName=e.tagName,this.handler.onStartTag(e)):(e.attrs.length>0&&this._err(q.endTagWithAttributes),e.selfClosing&&this._err(q.endTagWithTrailingSolidus),this.handler.onEndTag(e)),this.preprocessor.dropParsedChunk()}emitCurrentComment(e){this.prepareToken(e),this.handler.onComment(e),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(e){this.prepareToken(e),this.handler.onDoctype(e),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(e){if(this.currentCharacterToken){switch(e&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=e.startLine,this.currentCharacterToken.location.endCol=e.startCol,this.currentCharacterToken.location.endOffset=e.startOffset),this.currentCharacterToken.type){case V.CHARACTER:this.handler.onCharacter(this.currentCharacterToken);break;case V.NULL_CHARACTER:this.handler.onNullCharacter(this.currentCharacterToken);break;case V.WHITESPACE_CHARACTER:this.handler.onWhitespaceCharacter(this.currentCharacterToken)}this.currentCharacterToken=null}}_emitEOFToken(){let e=this.getCurrentLocation(0);e&&(e.endLine=e.startLine,e.endCol=e.startCol,e.endOffset=e.startOffset),this._emitCurrentCharacterToken(e),this.handler.onEof({type:V.EOF,location:e}),this.active=!1}_appendCharToCurrentCharacterToken(e,t){if(this.currentCharacterToken)if(this.currentCharacterToken.type===e){this.currentCharacterToken.chars+=t;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(e,t)}_emitCodePoint(e){let t=bf(e)?V.WHITESPACE_CHARACTER:e===$.NULL?V.NULL_CHARACTER:V.CHARACTER;this._appendCharToCurrentCharacterToken(t,String.fromCodePoint(e))}_emitChars(e){this._appendCharToCurrentCharacterToken(V.CHARACTER,e)}_startCharacterReference(){this.returnState=this.state,this.state=er.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?Z.Attribute:Z.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===er.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===er.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===er.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(e){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(e):this._emitCodePoint(e)}_callState(e){switch(this.state){case er.DATA:this._stateData(e);break;case er.RCDATA:this._stateRcdata(e);break;case er.RAWTEXT:this._stateRawtext(e);break;case er.SCRIPT_DATA:this._stateScriptData(e);break;case er.PLAINTEXT:this._statePlaintext(e);break;case er.TAG_OPEN:this._stateTagOpen(e);break;case er.END_TAG_OPEN:this._stateEndTagOpen(e);break;case er.TAG_NAME:this._stateTagName(e);break;case er.RCDATA_LESS_THAN_SIGN:this._stateRcdataLessThanSign(e);break;case er.RCDATA_END_TAG_OPEN:this._stateRcdataEndTagOpen(e);break;case er.RCDATA_END_TAG_NAME:this._stateRcdataEndTagName(e);break;case er.RAWTEXT_LESS_THAN_SIGN:this._stateRawtextLessThanSign(e);break;case er.RAWTEXT_END_TAG_OPEN:this._stateRawtextEndTagOpen(e);break;case er.RAWTEXT_END_TAG_NAME:this._stateRawtextEndTagName(e);break;case er.SCRIPT_DATA_LESS_THAN_SIGN:this._stateScriptDataLessThanSign(e);break;case er.SCRIPT_DATA_END_TAG_OPEN:this._stateScriptDataEndTagOpen(e);break;case er.SCRIPT_DATA_END_TAG_NAME:this._stateScriptDataEndTagName(e);break;case er.SCRIPT_DATA_ESCAPE_START:this._stateScriptDataEscapeStart(e);break;case er.SCRIPT_DATA_ESCAPE_START_DASH:this._stateScriptDataEscapeStartDash(e);break;case er.SCRIPT_DATA_ESCAPED:this._stateScriptDataEscaped(e);break;case er.SCRIPT_DATA_ESCAPED_DASH:this._stateScriptDataEscapedDash(e);break;case er.SCRIPT_DATA_ESCAPED_DASH_DASH:this._stateScriptDataEscapedDashDash(e);break;case er.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataEscapedLessThanSign(e);break;case er.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:this._stateScriptDataEscapedEndTagOpen(e);break;case er.SCRIPT_DATA_ESCAPED_END_TAG_NAME:this._stateScriptDataEscapedEndTagName(e);break;case er.SCRIPT_DATA_DOUBLE_ESCAPE_START:this._stateScriptDataDoubleEscapeStart(e);break;case er.SCRIPT_DATA_DOUBLE_ESCAPED:this._stateScriptDataDoubleEscaped(e);break;case er.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:this._stateScriptDataDoubleEscapedDash(e);break;case er.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:this._stateScriptDataDoubleEscapedDashDash(e);break;case er.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataDoubleEscapedLessThanSign(e);break;case er.SCRIPT_DATA_DOUBLE_ESCAPE_END:this._stateScriptDataDoubleEscapeEnd(e);break;case er.BEFORE_ATTRIBUTE_NAME:this._stateBeforeAttributeName(e);break;case er.ATTRIBUTE_NAME:this._stateAttributeName(e);break;case er.AFTER_ATTRIBUTE_NAME:this._stateAfterAttributeName(e);break;case er.BEFORE_ATTRIBUTE_VALUE:this._stateBeforeAttributeValue(e);break;case er.ATTRIBUTE_VALUE_DOUBLE_QUOTED:this._stateAttributeValueDoubleQuoted(e);break;case er.ATTRIBUTE_VALUE_SINGLE_QUOTED:this._stateAttributeValueSingleQuoted(e);break;case er.ATTRIBUTE_VALUE_UNQUOTED:this._stateAttributeValueUnquoted(e);break;case er.AFTER_ATTRIBUTE_VALUE_QUOTED:this._stateAfterAttributeValueQuoted(e);break;case er.SELF_CLOSING_START_TAG:this._stateSelfClosingStartTag(e);break;case er.BOGUS_COMMENT:this._stateBogusComment(e);break;case er.MARKUP_DECLARATION_OPEN:this._stateMarkupDeclarationOpen(e);break;case er.COMMENT_START:this._stateCommentStart(e);break;case er.COMMENT_START_DASH:this._stateCommentStartDash(e);break;case er.COMMENT:this._stateComment(e);break;case er.COMMENT_LESS_THAN_SIGN:this._stateCommentLessThanSign(e);break;case er.COMMENT_LESS_THAN_SIGN_BANG:this._stateCommentLessThanSignBang(e);break;case er.COMMENT_LESS_THAN_SIGN_BANG_DASH:this._stateCommentLessThanSignBangDash(e);break;case er.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:this._stateCommentLessThanSignBangDashDash(e);break;case er.COMMENT_END_DASH:this._stateCommentEndDash(e);break;case er.COMMENT_END:this._stateCommentEnd(e);break;case er.COMMENT_END_BANG:this._stateCommentEndBang(e);break;case er.DOCTYPE:this._stateDoctype(e);break;case er.BEFORE_DOCTYPE_NAME:this._stateBeforeDoctypeName(e);break;case er.DOCTYPE_NAME:this._stateDoctypeName(e);break;case er.AFTER_DOCTYPE_NAME:this._stateAfterDoctypeName(e);break;case er.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._stateAfterDoctypePublicKeyword(e);break;case er.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:this._stateBeforeDoctypePublicIdentifier(e);break;case er.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypePublicIdentifierDoubleQuoted(e);break;case er.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypePublicIdentifierSingleQuoted(e);break;case er.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:this._stateAfterDoctypePublicIdentifier(e);break;case er.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break;case er.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._stateAfterDoctypeSystemKeyword(e);break;case er.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:this._stateBeforeDoctypeSystemIdentifier(e);break;case er.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypeSystemIdentifierDoubleQuoted(e);break;case er.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypeSystemIdentifierSingleQuoted(e);break;case er.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:this._stateAfterDoctypeSystemIdentifier(e);break;case er.BOGUS_DOCTYPE:this._stateBogusDoctype(e);break;case er.CDATA_SECTION:this._stateCdataSection(e);break;case er.CDATA_SECTION_BRACKET:this._stateCdataSectionBracket(e);break;case er.CDATA_SECTION_END:this._stateCdataSectionEnd(e);break;case er.CHARACTER_REFERENCE:this._stateCharacterReference();break;case er.AMBIGUOUS_AMPERSAND:this._stateAmbiguousAmpersand(e);break;default:throw Error("Unknown state")}}_stateData(e){switch(e){case $.LESS_THAN_SIGN:this.state=er.TAG_OPEN;break;case $.AMPERSAND:this._startCharacterReference();break;case $.NULL:this._err(q.unexpectedNullCharacter),this._emitCodePoint(e);break;case $.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRcdata(e){switch(e){case $.AMPERSAND:this._startCharacterReference();break;case $.LESS_THAN_SIGN:this.state=er.RCDATA_LESS_THAN_SIGN;break;case $.NULL:this._err(q.unexpectedNullCharacter),this._emitChars("�");break;case $.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRawtext(e){switch(e){case $.LESS_THAN_SIGN:this.state=er.RAWTEXT_LESS_THAN_SIGN;break;case $.NULL:this._err(q.unexpectedNullCharacter),this._emitChars("�");break;case $.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptData(e){switch(e){case $.LESS_THAN_SIGN:this.state=er.SCRIPT_DATA_LESS_THAN_SIGN;break;case $.NULL:this._err(q.unexpectedNullCharacter),this._emitChars("�");break;case $.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_statePlaintext(e){switch(e){case $.NULL:this._err(q.unexpectedNullCharacter),this._emitChars("�");break;case $.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateTagOpen(e){if(bm(e))this._createStartTagToken(),this.state=er.TAG_NAME,this._stateTagName(e);else switch(e){case $.EXCLAMATION_MARK:this.state=er.MARKUP_DECLARATION_OPEN;break;case $.SOLIDUS:this.state=er.END_TAG_OPEN;break;case $.QUESTION_MARK:this._err(q.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=er.BOGUS_COMMENT,this._stateBogusComment(e);break;case $.EOF:this._err(q.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break;default:this._err(q.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=er.DATA,this._stateData(e)}}_stateEndTagOpen(e){if(bm(e))this._createEndTagToken(),this.state=er.TAG_NAME,this._stateTagName(e);else switch(e){case $.GREATER_THAN_SIGN:this._err(q.missingEndTagName),this.state=er.DATA;break;case $.EOF:this._err(q.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break;default:this._err(q.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=er.BOGUS_COMMENT,this._stateBogusComment(e)}}_stateTagName(e){let t=this.currentToken;switch(e){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:this.state=er.BEFORE_ATTRIBUTE_NAME;break;case $.SOLIDUS:this.state=er.SELF_CLOSING_START_TAG;break;case $.GREATER_THAN_SIGN:this.state=er.DATA,this.emitCurrentTagToken();break;case $.NULL:this._err(q.unexpectedNullCharacter),t.tagName+="�";break;case $.EOF:this._err(q.eofInTag),this._emitEOFToken();break;default:t.tagName+=String.fromCodePoint(bp(e)?e+32:e)}}_stateRcdataLessThanSign(e){e===$.SOLIDUS?this.state=er.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=er.RCDATA,this._stateRcdata(e))}_stateRcdataEndTagOpen(e){bm(e)?(this.state=er.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(e)):(this._emitChars("</"),this.state=er.RCDATA,this._stateRcdata(e))}handleSpecialEndTag(e){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();switch(this._createEndTagToken(),this.currentToken.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=er.BEFORE_ATTRIBUTE_NAME,!1;case $.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=er.SELF_CLOSING_START_TAG,!1;case $.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=er.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=er.RCDATA,this._stateRcdata(e))}_stateRawtextLessThanSign(e){e===$.SOLIDUS?this.state=er.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=er.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagOpen(e){bm(e)?(this.state=er.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(e)):(this._emitChars("</"),this.state=er.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=er.RAWTEXT,this._stateRawtext(e))}_stateScriptDataLessThanSign(e){switch(e){case $.SOLIDUS:this.state=er.SCRIPT_DATA_END_TAG_OPEN;break;case $.EXCLAMATION_MARK:this.state=er.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break;default:this._emitChars("<"),this.state=er.SCRIPT_DATA,this._stateScriptData(e)}}_stateScriptDataEndTagOpen(e){bm(e)?(this.state=er.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(e)):(this._emitChars("</"),this.state=er.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=er.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStart(e){e===$.HYPHEN_MINUS?(this.state=er.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=er.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStartDash(e){e===$.HYPHEN_MINUS?(this.state=er.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=er.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscaped(e){switch(e){case $.HYPHEN_MINUS:this.state=er.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break;case $.LESS_THAN_SIGN:this.state=er.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case $.NULL:this._err(q.unexpectedNullCharacter),this._emitChars("�");break;case $.EOF:this._err(q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataEscapedDash(e){switch(e){case $.HYPHEN_MINUS:this.state=er.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break;case $.LESS_THAN_SIGN:this.state=er.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case $.NULL:this._err(q.unexpectedNullCharacter),this.state=er.SCRIPT_DATA_ESCAPED,this._emitChars("�");break;case $.EOF:this._err(q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=er.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedDashDash(e){switch(e){case $.HYPHEN_MINUS:this._emitChars("-");break;case $.LESS_THAN_SIGN:this.state=er.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case $.GREATER_THAN_SIGN:this.state=er.SCRIPT_DATA,this._emitChars(">");break;case $.NULL:this._err(q.unexpectedNullCharacter),this.state=er.SCRIPT_DATA_ESCAPED,this._emitChars("�");break;case $.EOF:this._err(q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=er.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedLessThanSign(e){e===$.SOLIDUS?this.state=er.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:bm(e)?(this._emitChars("<"),this.state=er.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(e)):(this._emitChars("<"),this.state=er.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagOpen(e){bm(e)?(this.state=er.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(e)):(this._emitChars("</"),this.state=er.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=er.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscapeStart(e){if(this.preprocessor.startsWith(g5,!1)&&bg(this.preprocessor.peek(g5.length))){this._emitCodePoint(e);for(let e=0;e<g5.length;e++)this._emitCodePoint(this._consume());this.state=er.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=er.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscaped(e){switch(e){case $.HYPHEN_MINUS:this.state=er.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break;case $.LESS_THAN_SIGN:this.state=er.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case $.NULL:this._err(q.unexpectedNullCharacter),this._emitChars("�");break;case $.EOF:this._err(q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDash(e){switch(e){case $.HYPHEN_MINUS:this.state=er.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break;case $.LESS_THAN_SIGN:this.state=er.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case $.NULL:this._err(q.unexpectedNullCharacter),this.state=er.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars("�");break;case $.EOF:this._err(q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=er.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDashDash(e){switch(e){case $.HYPHEN_MINUS:this._emitChars("-");break;case $.LESS_THAN_SIGN:this.state=er.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case $.GREATER_THAN_SIGN:this.state=er.SCRIPT_DATA,this._emitChars(">");break;case $.NULL:this._err(q.unexpectedNullCharacter),this.state=er.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars("�");break;case $.EOF:this._err(q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=er.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedLessThanSign(e){e===$.SOLIDUS?(this.state=er.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=er.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateScriptDataDoubleEscapeEnd(e){if(this.preprocessor.startsWith(g5,!1)&&bg(this.preprocessor.peek(g5.length))){this._emitCodePoint(e);for(let e=0;e<g5.length;e++)this._emitCodePoint(this._consume());this.state=er.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=er.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateBeforeAttributeName(e){switch(e){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:break;case $.SOLIDUS:case $.GREATER_THAN_SIGN:case $.EOF:this.state=er.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case $.EQUALS_SIGN:this._err(q.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=er.ATTRIBUTE_NAME;break;default:this._createAttr(""),this.state=er.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateAttributeName(e){switch(e){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:case $.SOLIDUS:case $.GREATER_THAN_SIGN:case $.EOF:this._leaveAttrName(),this.state=er.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case $.EQUALS_SIGN:this._leaveAttrName(),this.state=er.BEFORE_ATTRIBUTE_VALUE;break;case $.QUOTATION_MARK:case $.APOSTROPHE:case $.LESS_THAN_SIGN:this._err(q.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(e);break;case $.NULL:this._err(q.unexpectedNullCharacter),this.currentAttr.name+="�";break;default:this.currentAttr.name+=String.fromCodePoint(bp(e)?e+32:e)}}_stateAfterAttributeName(e){switch(e){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:break;case $.SOLIDUS:this.state=er.SELF_CLOSING_START_TAG;break;case $.EQUALS_SIGN:this.state=er.BEFORE_ATTRIBUTE_VALUE;break;case $.GREATER_THAN_SIGN:this.state=er.DATA,this.emitCurrentTagToken();break;case $.EOF:this._err(q.eofInTag),this._emitEOFToken();break;default:this._createAttr(""),this.state=er.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateBeforeAttributeValue(e){switch(e){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:break;case $.QUOTATION_MARK:this.state=er.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break;case $.APOSTROPHE:this.state=er.ATTRIBUTE_VALUE_SINGLE_QUOTED;break;case $.GREATER_THAN_SIGN:this._err(q.missingAttributeValue),this.state=er.DATA,this.emitCurrentTagToken();break;default:this.state=er.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(e)}}_stateAttributeValueDoubleQuoted(e){switch(e){case $.QUOTATION_MARK:this.state=er.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case $.AMPERSAND:this._startCharacterReference();break;case $.NULL:this._err(q.unexpectedNullCharacter),this.currentAttr.value+="�";break;case $.EOF:this._err(q.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueSingleQuoted(e){switch(e){case $.APOSTROPHE:this.state=er.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case $.AMPERSAND:this._startCharacterReference();break;case $.NULL:this._err(q.unexpectedNullCharacter),this.currentAttr.value+="�";break;case $.EOF:this._err(q.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueUnquoted(e){switch(e){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:this._leaveAttrValue(),this.state=er.BEFORE_ATTRIBUTE_NAME;break;case $.AMPERSAND:this._startCharacterReference();break;case $.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=er.DATA,this.emitCurrentTagToken();break;case $.NULL:this._err(q.unexpectedNullCharacter),this.currentAttr.value+="�";break;case $.QUOTATION_MARK:case $.APOSTROPHE:case $.LESS_THAN_SIGN:case $.EQUALS_SIGN:case $.GRAVE_ACCENT:this._err(q.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(e);break;case $.EOF:this._err(q.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAfterAttributeValueQuoted(e){switch(e){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:this._leaveAttrValue(),this.state=er.BEFORE_ATTRIBUTE_NAME;break;case $.SOLIDUS:this._leaveAttrValue(),this.state=er.SELF_CLOSING_START_TAG;break;case $.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=er.DATA,this.emitCurrentTagToken();break;case $.EOF:this._err(q.eofInTag),this._emitEOFToken();break;default:this._err(q.missingWhitespaceBetweenAttributes),this.state=er.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateSelfClosingStartTag(e){switch(e){case $.GREATER_THAN_SIGN:this.currentToken.selfClosing=!0,this.state=er.DATA,this.emitCurrentTagToken();break;case $.EOF:this._err(q.eofInTag),this._emitEOFToken();break;default:this._err(q.unexpectedSolidusInTag),this.state=er.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateBogusComment(e){let t=this.currentToken;switch(e){case $.GREATER_THAN_SIGN:this.state=er.DATA,this.emitCurrentComment(t);break;case $.EOF:this.emitCurrentComment(t),this._emitEOFToken();break;case $.NULL:this._err(q.unexpectedNullCharacter),t.data+="�";break;default:t.data+=String.fromCodePoint(e)}}_stateMarkupDeclarationOpen(e){this._consumeSequenceIfMatch("--",!0)?(this._createCommentToken(3),this.state=er.COMMENT_START):this._consumeSequenceIfMatch(g4,!1)?(this.currentLocation=this.getCurrentLocation(g4.length+1),this.state=er.DOCTYPE):this._consumeSequenceIfMatch(g3,!0)?this.inForeignNode?this.state=er.CDATA_SECTION:(this._err(q.cdataInHtmlContent),this._createCommentToken(g3.length+1),this.currentToken.data="[CDATA[",this.state=er.BOGUS_COMMENT):this._ensureHibernation()||(this._err(q.incorrectlyOpenedComment),this._createCommentToken(2),this.state=er.BOGUS_COMMENT,this._stateBogusComment(e))}_stateCommentStart(e){switch(e){case $.HYPHEN_MINUS:this.state=er.COMMENT_START_DASH;break;case $.GREATER_THAN_SIGN:{this._err(q.abruptClosingOfEmptyComment),this.state=er.DATA;let e=this.currentToken;this.emitCurrentComment(e);break}default:this.state=er.COMMENT,this._stateComment(e)}}_stateCommentStartDash(e){let t=this.currentToken;switch(e){case $.HYPHEN_MINUS:this.state=er.COMMENT_END;break;case $.GREATER_THAN_SIGN:this._err(q.abruptClosingOfEmptyComment),this.state=er.DATA,this.emitCurrentComment(t);break;case $.EOF:this._err(q.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="-",this.state=er.COMMENT,this._stateComment(e)}}_stateComment(e){let t=this.currentToken;switch(e){case $.HYPHEN_MINUS:this.state=er.COMMENT_END_DASH;break;case $.LESS_THAN_SIGN:t.data+="<",this.state=er.COMMENT_LESS_THAN_SIGN;break;case $.NULL:this._err(q.unexpectedNullCharacter),t.data+="�";break;case $.EOF:this._err(q.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+=String.fromCodePoint(e)}}_stateCommentLessThanSign(e){let t=this.currentToken;switch(e){case $.EXCLAMATION_MARK:t.data+="!",this.state=er.COMMENT_LESS_THAN_SIGN_BANG;break;case $.LESS_THAN_SIGN:t.data+="<";break;default:this.state=er.COMMENT,this._stateComment(e)}}_stateCommentLessThanSignBang(e){e===$.HYPHEN_MINUS?this.state=er.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=er.COMMENT,this._stateComment(e))}_stateCommentLessThanSignBangDash(e){e===$.HYPHEN_MINUS?this.state=er.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=er.COMMENT_END_DASH,this._stateCommentEndDash(e))}_stateCommentLessThanSignBangDashDash(e){e!==$.GREATER_THAN_SIGN&&e!==$.EOF&&this._err(q.nestedComment),this.state=er.COMMENT_END,this._stateCommentEnd(e)}_stateCommentEndDash(e){let t=this.currentToken;switch(e){case $.HYPHEN_MINUS:this.state=er.COMMENT_END;break;case $.EOF:this._err(q.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="-",this.state=er.COMMENT,this._stateComment(e)}}_stateCommentEnd(e){let t=this.currentToken;switch(e){case $.GREATER_THAN_SIGN:this.state=er.DATA,this.emitCurrentComment(t);break;case $.EXCLAMATION_MARK:this.state=er.COMMENT_END_BANG;break;case $.HYPHEN_MINUS:t.data+="-";break;case $.EOF:this._err(q.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="--",this.state=er.COMMENT,this._stateComment(e)}}_stateCommentEndBang(e){let t=this.currentToken;switch(e){case $.HYPHEN_MINUS:t.data+="--!",this.state=er.COMMENT_END_DASH;break;case $.GREATER_THAN_SIGN:this._err(q.incorrectlyClosedComment),this.state=er.DATA,this.emitCurrentComment(t);break;case $.EOF:this._err(q.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="--!",this.state=er.COMMENT,this._stateComment(e)}}_stateDoctype(e){switch(e){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:this.state=er.BEFORE_DOCTYPE_NAME;break;case $.GREATER_THAN_SIGN:this.state=er.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e);break;case $.EOF:{this._err(q.eofInDoctype),this._createDoctypeToken(null);let e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break}default:this._err(q.missingWhitespaceBeforeDoctypeName),this.state=er.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e)}}_stateBeforeDoctypeName(e){if(bp(e))this._createDoctypeToken(String.fromCharCode(e+32)),this.state=er.DOCTYPE_NAME;else switch(e){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:break;case $.NULL:this._err(q.unexpectedNullCharacter),this._createDoctypeToken("�"),this.state=er.DOCTYPE_NAME;break;case $.GREATER_THAN_SIGN:{this._err(q.missingDoctypeName),this._createDoctypeToken(null);let e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this.state=er.DATA;break}case $.EOF:{this._err(q.eofInDoctype),this._createDoctypeToken(null);let e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(e)),this.state=er.DOCTYPE_NAME}}_stateDoctypeName(e){let t=this.currentToken;switch(e){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:this.state=er.AFTER_DOCTYPE_NAME;break;case $.GREATER_THAN_SIGN:this.state=er.DATA,this.emitCurrentDoctype(t);break;case $.NULL:this._err(q.unexpectedNullCharacter),t.name+="�";break;case $.EOF:this._err(q.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.name+=String.fromCodePoint(bp(e)?e+32:e)}}_stateAfterDoctypeName(e){let t=this.currentToken;switch(e){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:break;case $.GREATER_THAN_SIGN:this.state=er.DATA,this.emitCurrentDoctype(t);break;case $.EOF:this._err(q.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._consumeSequenceIfMatch("public",!1)?this.state=er.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch("system",!1)?this.state=er.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(q.invalidCharacterSequenceAfterDoctypeName),t.forceQuirks=!0,this.state=er.BOGUS_DOCTYPE,this._stateBogusDoctype(e))}}_stateAfterDoctypePublicKeyword(e){let t=this.currentToken;switch(e){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:this.state=er.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break;case $.QUOTATION_MARK:this._err(q.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=er.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case $.APOSTROPHE:this._err(q.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=er.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case $.GREATER_THAN_SIGN:this._err(q.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=er.DATA,this.emitCurrentDoctype(t);break;case $.EOF:this._err(q.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(q.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=er.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypePublicIdentifier(e){let t=this.currentToken;switch(e){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:break;case $.QUOTATION_MARK:t.publicId="",this.state=er.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case $.APOSTROPHE:t.publicId="",this.state=er.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case $.GREATER_THAN_SIGN:this._err(q.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=er.DATA,this.emitCurrentDoctype(t);break;case $.EOF:this._err(q.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(q.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=er.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypePublicIdentifierDoubleQuoted(e){let t=this.currentToken;switch(e){case $.QUOTATION_MARK:this.state=er.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case $.NULL:this._err(q.unexpectedNullCharacter),t.publicId+="�";break;case $.GREATER_THAN_SIGN:this._err(q.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=er.DATA;break;case $.EOF:this._err(q.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.publicId+=String.fromCodePoint(e)}}_stateDoctypePublicIdentifierSingleQuoted(e){let t=this.currentToken;switch(e){case $.APOSTROPHE:this.state=er.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case $.NULL:this._err(q.unexpectedNullCharacter),t.publicId+="�";break;case $.GREATER_THAN_SIGN:this._err(q.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=er.DATA;break;case $.EOF:this._err(q.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.publicId+=String.fromCodePoint(e)}}_stateAfterDoctypePublicIdentifier(e){let t=this.currentToken;switch(e){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:this.state=er.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break;case $.GREATER_THAN_SIGN:this.state=er.DATA,this.emitCurrentDoctype(t);break;case $.QUOTATION_MARK:this._err(q.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=er.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case $.APOSTROPHE:this._err(q.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=er.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case $.EOF:this._err(q.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(q.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=er.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBetweenDoctypePublicAndSystemIdentifiers(e){let t=this.currentToken;switch(e){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:break;case $.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=er.DATA;break;case $.QUOTATION_MARK:t.systemId="",this.state=er.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case $.APOSTROPHE:t.systemId="",this.state=er.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case $.EOF:this._err(q.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(q.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=er.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateAfterDoctypeSystemKeyword(e){let t=this.currentToken;switch(e){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:this.state=er.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break;case $.QUOTATION_MARK:this._err(q.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=er.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case $.APOSTROPHE:this._err(q.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=er.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case $.GREATER_THAN_SIGN:this._err(q.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=er.DATA,this.emitCurrentDoctype(t);break;case $.EOF:this._err(q.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(q.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=er.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypeSystemIdentifier(e){let t=this.currentToken;switch(e){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:break;case $.QUOTATION_MARK:t.systemId="",this.state=er.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case $.APOSTROPHE:t.systemId="",this.state=er.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case $.GREATER_THAN_SIGN:this._err(q.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=er.DATA,this.emitCurrentDoctype(t);break;case $.EOF:this._err(q.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(q.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=er.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypeSystemIdentifierDoubleQuoted(e){let t=this.currentToken;switch(e){case $.QUOTATION_MARK:this.state=er.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case $.NULL:this._err(q.unexpectedNullCharacter),t.systemId+="�";break;case $.GREATER_THAN_SIGN:this._err(q.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=er.DATA;break;case $.EOF:this._err(q.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.systemId+=String.fromCodePoint(e)}}_stateDoctypeSystemIdentifierSingleQuoted(e){let t=this.currentToken;switch(e){case $.APOSTROPHE:this.state=er.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case $.NULL:this._err(q.unexpectedNullCharacter),t.systemId+="�";break;case $.GREATER_THAN_SIGN:this._err(q.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=er.DATA;break;case $.EOF:this._err(q.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.systemId+=String.fromCodePoint(e)}}_stateAfterDoctypeSystemIdentifier(e){let t=this.currentToken;switch(e){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:break;case $.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=er.DATA;break;case $.EOF:this._err(q.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(q.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=er.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBogusDoctype(e){let t=this.currentToken;switch(e){case $.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=er.DATA;break;case $.NULL:this._err(q.unexpectedNullCharacter);break;case $.EOF:this.emitCurrentDoctype(t),this._emitEOFToken()}}_stateCdataSection(e){switch(e){case $.RIGHT_SQUARE_BRACKET:this.state=er.CDATA_SECTION_BRACKET;break;case $.EOF:this._err(q.eofInCdata),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateCdataSectionBracket(e){e===$.RIGHT_SQUARE_BRACKET?this.state=er.CDATA_SECTION_END:(this._emitChars("]"),this.state=er.CDATA_SECTION,this._stateCdataSection(e))}_stateCdataSectionEnd(e){switch(e){case $.GREATER_THAN_SIGN:this.state=er.DATA;break;case $.RIGHT_SQUARE_BRACKET:this._emitChars("]");break;default:this._emitChars("]]"),this.state=er.CDATA_SECTION,this._stateCdataSection(e)}}_stateCharacterReference(){let e=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(e<0)if(this.preprocessor.lastChunkWritten)e=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}0===e?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference($.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&bh(this.preprocessor.peek(1))?er.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(e){bh(e)?this._flushCodePointConsumedAsCharacterReference(e):(e===$.SEMICOLON&&this._err(q.unknownNamedCharacterReference),this.state=this.returnState,this._callState(e))}}let by=new Set([en.DD,en.DT,en.LI,en.OPTGROUP,en.OPTION,en.P,en.RB,en.RP,en.RT,en.RTC]),bE=new Set([...by,en.CAPTION,en.COLGROUP,en.TBODY,en.TD,en.TFOOT,en.TH,en.THEAD,en.TR]),bx=new Set([en.APPLET,en.CAPTION,en.HTML,en.MARQUEE,en.OBJECT,en.TABLE,en.TD,en.TEMPLATE,en.TH]),bS=new Set([...bx,en.OL,en.UL]),bT=new Set([...bx,en.BUTTON]),bv=new Set([en.ANNOTATION_XML,en.MI,en.MN,en.MO,en.MS,en.MTEXT]),bA=new Set([en.DESC,en.FOREIGN_OBJECT,en.TITLE]),b_=new Set([en.TR,en.TEMPLATE,en.HTML]),bk=new Set([en.TBODY,en.TFOOT,en.THEAD,en.TEMPLATE,en.HTML]),bN=new Set([en.TABLE,en.TEMPLATE,en.HTML]),bw=new Set([en.TD,en.TH]);class bI{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(e,t,n){this.treeAdapter=t,this.handler=n,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=en.UNKNOWN,this.current=e}_indexOf(e){return this.items.lastIndexOf(e,this.stackTop)}_isInTemplate(){return this.currentTagId===en.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===Q.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(e,t){this.stackTop++,this.items[this.stackTop]=e,this.current=e,this.tagIDs[this.stackTop]=t,this.currentTagId=t,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(e,t,!0)}pop(){let e=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!0)}replace(e,t){let n=this._indexOf(e);this.items[n]=t,n===this.stackTop&&(this.current=t)}insertAfter(e,t,n){let r=this._indexOf(e)+1;this.items.splice(r,0,t),this.tagIDs.splice(r,0,n),this.stackTop++,r===this.stackTop&&this._updateCurrentElement(),this.current&&void 0!==this.currentTagId&&this.handler.onItemPush(this.current,this.currentTagId,r===this.stackTop)}popUntilTagNamePopped(e){let t=this.stackTop+1;do t=this.tagIDs.lastIndexOf(e,t-1);while(t>0&&this.treeAdapter.getNamespaceURI(this.items[t])!==Q.HTML)this.shortenToLength(Math.max(t,0))}shortenToLength(e){for(;this.stackTop>=e;){let t=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,this.stackTop<e)}}popUntilElementPopped(e){let t=this._indexOf(e);this.shortenToLength(Math.max(t,0))}popUntilPopped(e,t){let n=this._indexOfTagNames(e,t);this.shortenToLength(Math.max(n,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(bc,Q.HTML)}popUntilTableCellPopped(){this.popUntilPopped(bw,Q.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(e,t){for(let n=this.stackTop;n>=0;n--)if(e.has(this.tagIDs[n])&&this.treeAdapter.getNamespaceURI(this.items[n])===t)return n;return -1}clearBackTo(e,t){let n=this._indexOfTagNames(e,t);this.shortenToLength(n+1)}clearBackToTableContext(){this.clearBackTo(bN,Q.HTML)}clearBackToTableBodyContext(){this.clearBackTo(bk,Q.HTML)}clearBackToTableRowContext(){this.clearBackTo(b_,Q.HTML)}remove(e){let t=this._indexOf(e);t>=0&&(t===this.stackTop?this.pop():(this.items.splice(t,1),this.tagIDs.splice(t,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===en.BODY?this.items[1]:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){let t=this._indexOf(e)-1;return t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return 0===this.stackTop&&this.tagIDs[0]===en.HTML}hasInDynamicScope(e,t){for(let n=this.stackTop;n>=0;n--){let r=this.tagIDs[n];switch(this.treeAdapter.getNamespaceURI(this.items[n])){case Q.HTML:if(r===e)return!0;if(t.has(r))return!1;break;case Q.SVG:if(bA.has(r))return!1;break;case Q.MATHML:if(bv.has(r))return!1}}return!0}hasInScope(e){return this.hasInDynamicScope(e,bx)}hasInListItemScope(e){return this.hasInDynamicScope(e,bS)}hasInButtonScope(e){return this.hasInDynamicScope(e,bT)}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){let t=this.tagIDs[e];switch(this.treeAdapter.getNamespaceURI(this.items[e])){case Q.HTML:if(bc.has(t))return!0;if(bx.has(t))return!1;break;case Q.SVG:if(bA.has(t))return!1;break;case Q.MATHML:if(bv.has(t))return!1}}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===Q.HTML)switch(this.tagIDs[t]){case e:return!0;case en.TABLE:case en.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--)if(this.treeAdapter.getNamespaceURI(this.items[e])===Q.HTML)switch(this.tagIDs[e]){case en.TBODY:case en.THEAD:case en.TFOOT:return!0;case en.TABLE:case en.HTML:return!1}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===Q.HTML)switch(this.tagIDs[t]){case e:return!0;case en.OPTION:case en.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;void 0!==this.currentTagId&&by.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;void 0!==this.currentTagId&&bE.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;void 0!==this.currentTagId&&this.currentTagId!==e&&bE.has(this.currentTagId);)this.pop()}}(j=ea||(ea={}))[j.Marker=0]="Marker",j[j.Element=1]="Element";let bC={type:ea.Marker};class bR{constructor(e){this.treeAdapter=e,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(e,t){let n=[],r=t.length,a=this.treeAdapter.getTagName(e),i=this.treeAdapter.getNamespaceURI(e);for(let e=0;e<this.entries.length;e++){let t=this.entries[e];if(t.type===ea.Marker)break;let{element:s}=t;if(this.treeAdapter.getTagName(s)===a&&this.treeAdapter.getNamespaceURI(s)===i){let t=this.treeAdapter.getAttrList(s);t.length===r&&n.push({idx:e,attrs:t})}}return n}_ensureNoahArkCondition(e){if(this.entries.length<3)return;let t=this.treeAdapter.getAttrList(e),n=this._getNoahArkConditionCandidates(e,t);if(n.length<3)return;let r=new Map(t.map(e=>[e.name,e.value])),a=0;for(let e=0;e<n.length;e++){let t=n[e];t.attrs.every(e=>r.get(e.name)===e.value)&&(a+=1)>=3&&this.entries.splice(t.idx,1)}}insertMarker(){this.entries.unshift(bC)}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.unshift({type:ea.Element,element:e,token:t})}insertElementAfterBookmark(e,t){let n=this.entries.indexOf(this.bookmark);this.entries.splice(n,0,{type:ea.Element,element:e,token:t})}removeEntry(e){let t=this.entries.indexOf(e);-1!==t&&this.entries.splice(t,1)}clearToLastMarker(){let e=this.entries.indexOf(bC);-1===e?this.entries.length=0:this.entries.splice(0,e+1)}getElementEntryInScopeWithTagName(e){let t=this.entries.find(t=>t.type===ea.Marker||this.treeAdapter.getTagName(t.element)===e);return t&&t.type===ea.Element?t:null}getElementEntry(e){return this.entries.find(t=>t.type===ea.Element&&t.element===e)}}let bO={createDocument:()=>({nodeName:"#document",mode:ee.NO_QUIRKS,childNodes:[]}),createDocumentFragment:()=>({nodeName:"#document-fragment",childNodes:[]}),createElement:(e,t,n)=>({nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}),createCommentNode:e=>({nodeName:"#comment",data:e,parentNode:null}),createTextNode:e=>({nodeName:"#text",value:e,parentNode:null}),appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){let r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent:e=>e.content,setDocumentType(e,t,n,r){let a=e.childNodes.find(e=>"#documentType"===e.nodeName);a?(a.name=t,a.publicId=n,a.systemId=r):bO.appendChild(e,{nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null})},setDocumentMode(e,t){e.mode=t},getDocumentMode:e=>e.mode,detachNode(e){if(e.parentNode){let t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){let n=e.childNodes[e.childNodes.length-1];if(bO.isTextNode(n)){n.value+=t;return}}bO.appendChild(e,bO.createTextNode(t))},insertTextBefore(e,t,n){let r=e.childNodes[e.childNodes.indexOf(n)-1];r&&bO.isTextNode(r)?r.value+=t:bO.insertBefore(e,bO.createTextNode(t),n)},adoptAttributes(e,t){let n=new Set(e.attrs.map(e=>e.name));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},getFirstChild:e=>e.childNodes[0],getChildNodes:e=>e.childNodes,getParentNode:e=>e.parentNode,getAttrList:e=>e.attrs,getTagName:e=>e.tagName,getNamespaceURI:e=>e.namespaceURI,getTextNodeContent:e=>e.value,getCommentNodeContent:e=>e.data,getDocumentTypeNodeName:e=>e.name,getDocumentTypeNodePublicId:e=>e.publicId,getDocumentTypeNodeSystemId:e=>e.systemId,isTextNode:e=>"#text"===e.nodeName,isCommentNode:e=>"#comment"===e.nodeName,isDocumentTypeNode:e=>"#documentType"===e.nodeName,isElementNode:e=>Object.prototype.hasOwnProperty.call(e,"tagName"),setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation:e=>e.sourceCodeLocation,updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},bL="html",bD=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],bP=[...bD,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],bM=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),bF=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],bj=[...bF,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function bU(e,t){return t.some(t=>e.startsWith(t))}let bB=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),bH=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:Q.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:Q.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:Q.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:Q.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:Q.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:Q.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:Q.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:Q.XML}],["xml:space",{prefix:"xml",name:"space",namespace:Q.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:Q.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:Q.XMLNS}]]),bz=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),bG=new Set([en.B,en.BIG,en.BLOCKQUOTE,en.BODY,en.BR,en.CENTER,en.CODE,en.DD,en.DIV,en.DL,en.DT,en.EM,en.EMBED,en.H1,en.H2,en.H3,en.H4,en.H5,en.H6,en.HEAD,en.HR,en.I,en.IMG,en.LI,en.LISTING,en.MENU,en.META,en.NOBR,en.OL,en.P,en.PRE,en.RUBY,en.S,en.SMALL,en.SPAN,en.STRONG,en.STRIKE,en.SUB,en.SUP,en.TABLE,en.TT,en.U,en.UL,en.VAR]);function b$(e){for(let t=0;t<e.attrs.length;t++)if("definitionurl"===e.attrs[t].name){e.attrs[t].name="definitionURL";break}}function bq(e){for(let t=0;t<e.attrs.length;t++){let n=bB.get(e.attrs[t].name);null!=n&&(e.attrs[t].name=n)}}function bV(e){for(let t=0;t<e.attrs.length;t++){let n=bH.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}(U=ei||(ei={}))[U.INITIAL=0]="INITIAL",U[U.BEFORE_HTML=1]="BEFORE_HTML",U[U.BEFORE_HEAD=2]="BEFORE_HEAD",U[U.IN_HEAD=3]="IN_HEAD",U[U.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",U[U.AFTER_HEAD=5]="AFTER_HEAD",U[U.IN_BODY=6]="IN_BODY",U[U.TEXT=7]="TEXT",U[U.IN_TABLE=8]="IN_TABLE",U[U.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",U[U.IN_CAPTION=10]="IN_CAPTION",U[U.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",U[U.IN_TABLE_BODY=12]="IN_TABLE_BODY",U[U.IN_ROW=13]="IN_ROW",U[U.IN_CELL=14]="IN_CELL",U[U.IN_SELECT=15]="IN_SELECT",U[U.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",U[U.IN_TEMPLATE=17]="IN_TEMPLATE",U[U.AFTER_BODY=18]="AFTER_BODY",U[U.IN_FRAMESET=19]="IN_FRAMESET",U[U.AFTER_FRAMESET=20]="AFTER_FRAMESET",U[U.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",U[U.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET";let bW={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},bY=new Set([en.TABLE,en.TBODY,en.TFOOT,en.THEAD,en.TR]),bK={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:bO,onParseError:null};class bX{constructor(e,t,n=null,r=null){this.fragmentContext=n,this.scriptHandler=r,this.currentToken=null,this.stopped=!1,this.insertionMode=ei.INITIAL,this.originalInsertionMode=ei.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...bK,...e},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=null!=t?t:this.treeAdapter.createDocument(),this.tokenizer=new bb(this.options,this),this.activeFormattingElements=new bR(this.treeAdapter),this.fragmentContextID=n?bs(this.treeAdapter.getTagName(n)):en.UNKNOWN,this._setContextModes(null!=n?n:this.document,this.fragmentContextID),this.openElements=new bI(this.document,this.treeAdapter,this)}static parse(e,t){let n=new this(t);return n.tokenizer.write(e,!0),n.document}static getFragmentParser(e,t){let n={...bK,...t};null!=e||(e=n.treeAdapter.createElement(et.TEMPLATE,Q.HTML,[]));let r=n.treeAdapter.createElement("documentmock",Q.HTML,[]),a=new this(n,r,e);return a.fragmentContextID===en.TEMPLATE&&a.tmplInsertionModeStack.unshift(ei.IN_TEMPLATE),a._initTokenizerForFragmentParsing(),a._insertFakeRootElement(),a._resetInsertionMode(),a._findFormInFragmentContext(),a}getFragment(){let e=this.treeAdapter.getFirstChild(this.document),t=this.treeAdapter.createDocumentFragment();return this._adoptNodes(e,t),t}_err(e,t,n){var r;if(!this.onParseError)return;let a=null!=(r=e.location)?r:bW,i={code:t,startLine:a.startLine,startCol:a.startCol,startOffset:a.startOffset,endLine:n?a.startLine:a.endLine,endCol:n?a.startCol:a.endCol,endOffset:n?a.startOffset:a.endOffset};this.onParseError(i)}onItemPush(e,t,n){var r,a;null==(a=(r=this.treeAdapter).onItemPush)||a.call(r,e),n&&this.openElements.stackTop>0&&this._setContextModes(e,t)}onItemPop(e,t){var n,r;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(e,this.currentToken),null==(r=(n=this.treeAdapter).onItemPop)||r.call(n,e,this.openElements.current),t){let e,t;0===this.openElements.stackTop&&this.fragmentContext?(e=this.fragmentContext,t=this.fragmentContextID):{current:e,currentTagId:t}=this.openElements,this._setContextModes(e,t)}}_setContextModes(e,t){let n=e===this.document||e&&this.treeAdapter.getNamespaceURI(e)===Q.HTML;this.currentNotInHTML=!n,this.tokenizer.inForeignNode=!n&&void 0!==e&&void 0!==t&&!this._isIntegrationPoint(t,e)}_switchToTextParsing(e,t){this._insertElement(e,Q.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=ei.TEXT}switchToPlaintextParsing(){this.insertionMode=ei.TEXT,this.originalInsertionMode=ei.IN_BODY,this.tokenizer.state=bd.PLAINTEXT}_getAdjustedCurrentElement(){return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;for(;e;){if(this.treeAdapter.getTagName(e)===et.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}}_initTokenizerForFragmentParsing(){if(this.fragmentContext&&this.treeAdapter.getNamespaceURI(this.fragmentContext)===Q.HTML)switch(this.fragmentContextID){case en.TITLE:case en.TEXTAREA:this.tokenizer.state=bd.RCDATA;break;case en.STYLE:case en.XMP:case en.IFRAME:case en.NOEMBED:case en.NOFRAMES:case en.NOSCRIPT:this.tokenizer.state=bd.RAWTEXT;break;case en.SCRIPT:this.tokenizer.state=bd.SCRIPT_DATA;break;case en.PLAINTEXT:this.tokenizer.state=bd.PLAINTEXT}}_setDocumentType(e){let t=e.name||"",n=e.publicId||"",r=e.systemId||"";if(this.treeAdapter.setDocumentType(this.document,t,n,r),e.location){let t=this.treeAdapter.getChildNodes(this.document).find(e=>this.treeAdapter.isDocumentTypeNode(e));t&&this.treeAdapter.setNodeSourceCodeLocation(t,e.location)}}_attachElementToTree(e,t){if(this.options.sourceCodeLocationInfo){let n=t&&{...t,startTag:t};this.treeAdapter.setNodeSourceCodeLocation(e,n)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{let t=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(null!=t?t:this.document,e)}}_appendElement(e,t){let n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location)}_insertElement(e,t){let n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location),this.openElements.push(n,e.tagID)}_insertFakeElement(e,t){let n=this.treeAdapter.createElement(e,Q.HTML,[]);this._attachElementToTree(n,null),this.openElements.push(n,t)}_insertTemplate(e){let t=this.treeAdapter.createElement(e.tagName,Q.HTML,e.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,n),this._attachElementToTree(t,e.location),this.openElements.push(t,e.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,null)}_insertFakeRootElement(){let e=this.treeAdapter.createElement(et.HTML,Q.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(e,null),this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e,en.HTML)}_appendCommentNode(e,t){let n=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,n),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,e.location)}_insertCharacters(e){let t,n;if(this._shouldFosterParentOnInsertion()?({parent:t,beforeElement:n}=this._findFosterParentingLocation(),n?this.treeAdapter.insertTextBefore(t,e.chars,n):this.treeAdapter.insertText(t,e.chars)):(t=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(t,e.chars)),!e.location)return;let r=this.treeAdapter.getChildNodes(t),a=n?r.lastIndexOf(n):r.length,i=r[a-1];if(this.treeAdapter.getNodeSourceCodeLocation(i)){let{endLine:t,endCol:n,endOffset:r}=e.location;this.treeAdapter.updateNodeSourceCodeLocation(i,{endLine:t,endCol:n,endOffset:r})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(i,e.location)}_adoptNodes(e,t){for(let n=this.treeAdapter.getFirstChild(e);n;n=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(t,n)}_setEndLocation(e,t){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&t.location){let n=t.location,r=this.treeAdapter.getTagName(e),a=t.type===V.END_TAG&&r===t.tagName?{endTag:{...n},endLine:n.endLine,endCol:n.endCol,endOffset:n.endOffset}:{endLine:n.startLine,endCol:n.startCol,endOffset:n.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(e,a)}}shouldProcessStartTagTokenInForeignContent(e){let t,n;return!!this.currentNotInHTML&&(0===this.openElements.stackTop&&this.fragmentContext?(t=this.fragmentContext,n=this.fragmentContextID):{current:t,currentTagId:n}=this.openElements,(e.tagID!==en.SVG||this.treeAdapter.getTagName(t)!==et.ANNOTATION_XML||this.treeAdapter.getNamespaceURI(t)!==Q.MATHML)&&(this.tokenizer.inForeignNode||(e.tagID===en.MGLYPH||e.tagID===en.MALIGNMARK)&&void 0!==n&&!this._isIntegrationPoint(n,t,Q.HTML)))}_processToken(e){switch(e.type){case V.CHARACTER:this.onCharacter(e);break;case V.NULL_CHARACTER:this.onNullCharacter(e);break;case V.COMMENT:this.onComment(e);break;case V.DOCTYPE:this.onDoctype(e);break;case V.START_TAG:this._processStartTag(e);break;case V.END_TAG:this.onEndTag(e);break;case V.EOF:this.onEof(e);break;case V.WHITESPACE_CHARACTER:this.onWhitespaceCharacter(e)}}_isIntegrationPoint(e,t,n){let r=this.treeAdapter.getNamespaceURI(t),a=this.treeAdapter.getAttrList(t);return(!n||n===Q.HTML)&&function(e,t,n){if(t===Q.MATHML&&e===en.ANNOTATION_XML){for(let e=0;e<n.length;e++)if(n[e].name===J.ENCODING){let t=n[e].value.toLowerCase();return"text/html"===t||"application/xhtml+xml"===t}}return t===Q.SVG&&(e===en.FOREIGN_OBJECT||e===en.DESC||e===en.TITLE)}(e,r,a)||(!n||n===Q.MATHML)&&r===Q.MATHML&&(e===en.MI||e===en.MO||e===en.MN||e===en.MS||e===en.MTEXT)}_reconstructActiveFormattingElements(){let e=this.activeFormattingElements.entries.length;if(e){let t=this.activeFormattingElements.entries.findIndex(e=>e.type===ea.Marker||this.openElements.contains(e.element)),n=-1===t?e-1:t-1;for(let e=n;e>=0;e--){let t=this.activeFormattingElements.entries[e];this._insertElement(t.token,this.treeAdapter.getNamespaceURI(t.element)),t.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=ei.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(en.P),this.openElements.popUntilTagNamePopped(en.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop;e>=0;e--)switch(0===e&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){case en.TR:this.insertionMode=ei.IN_ROW;return;case en.TBODY:case en.THEAD:case en.TFOOT:this.insertionMode=ei.IN_TABLE_BODY;return;case en.CAPTION:this.insertionMode=ei.IN_CAPTION;return;case en.COLGROUP:this.insertionMode=ei.IN_COLUMN_GROUP;return;case en.TABLE:this.insertionMode=ei.IN_TABLE;return;case en.BODY:this.insertionMode=ei.IN_BODY;return;case en.FRAMESET:this.insertionMode=ei.IN_FRAMESET;return;case en.SELECT:return void this._resetInsertionModeForSelect(e);case en.TEMPLATE:this.insertionMode=this.tmplInsertionModeStack[0];return;case en.HTML:this.insertionMode=this.headElement?ei.AFTER_HEAD:ei.BEFORE_HEAD;return;case en.TD:case en.TH:if(e>0){this.insertionMode=ei.IN_CELL;return}break;case en.HEAD:if(e>0){this.insertionMode=ei.IN_HEAD;return}}this.insertionMode=ei.IN_BODY}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){let e=this.openElements.tagIDs[t];if(e===en.TEMPLATE)break;if(e===en.TABLE){this.insertionMode=ei.IN_SELECT_IN_TABLE;return}}this.insertionMode=ei.IN_SELECT}_isElementCausesFosterParenting(e){return bY.has(e)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&void 0!==this.openElements.currentTagId&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let e=this.openElements.stackTop;e>=0;e--){let t=this.openElements.items[e];switch(this.openElements.tagIDs[e]){case en.TEMPLATE:if(this.treeAdapter.getNamespaceURI(t)===Q.HTML)return{parent:this.treeAdapter.getTemplateContent(t),beforeElement:null};break;case en.TABLE:{let n=this.treeAdapter.getParentNode(t);if(n)return{parent:n,beforeElement:t};return{parent:this.openElements.items[e-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(e){let t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)}_isSpecialElement(e,t){return bl[this.treeAdapter.getNamespaceURI(e)].has(t)}onCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){var t,n;return void(t=this,n=e,t._insertCharacters(n),t.framesetOk=!1)}switch(this.insertionMode){case ei.INITIAL:b0(this,e);break;case ei.BEFORE_HTML:b1(this,e);break;case ei.BEFORE_HEAD:b2(this,e);break;case ei.IN_HEAD:b5(this,e);break;case ei.IN_HEAD_NO_SCRIPT:b6(this,e);break;case ei.AFTER_HEAD:b9(this,e);break;case ei.IN_BODY:case ei.IN_CAPTION:case ei.IN_CELL:case ei.IN_TEMPLATE:ye(this,e);break;case ei.TEXT:case ei.IN_SELECT:case ei.IN_SELECT_IN_TABLE:this._insertCharacters(e);break;case ei.IN_TABLE:case ei.IN_TABLE_BODY:case ei.IN_ROW:yc(this,e);break;case ei.IN_TABLE_TEXT:yh(this,e);break;case ei.IN_COLUMN_GROUP:yy(this,e);break;case ei.AFTER_BODY:yN(this,e);break;case ei.AFTER_AFTER_BODY:yw(this,e)}}onNullCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){var t,n;return void(t=this,(n=e).chars="�",t._insertCharacters(n))}switch(this.insertionMode){case ei.INITIAL:b0(this,e);break;case ei.BEFORE_HTML:b1(this,e);break;case ei.BEFORE_HEAD:b2(this,e);break;case ei.IN_HEAD:b5(this,e);break;case ei.IN_HEAD_NO_SCRIPT:b6(this,e);break;case ei.AFTER_HEAD:b9(this,e);break;case ei.TEXT:this._insertCharacters(e);break;case ei.IN_TABLE:case ei.IN_TABLE_BODY:case ei.IN_ROW:yc(this,e);break;case ei.IN_COLUMN_GROUP:yy(this,e);break;case ei.AFTER_BODY:yN(this,e);break;case ei.AFTER_AFTER_BODY:yw(this,e)}}onComment(e){var t,n,r,a;if(this.skipNextNewLine=!1,this.currentNotInHTML)return void bQ(this,e);switch(this.insertionMode){case ei.INITIAL:case ei.BEFORE_HTML:case ei.BEFORE_HEAD:case ei.IN_HEAD:case ei.IN_HEAD_NO_SCRIPT:case ei.AFTER_HEAD:case ei.IN_BODY:case ei.IN_TABLE:case ei.IN_CAPTION:case ei.IN_COLUMN_GROUP:case ei.IN_TABLE_BODY:case ei.IN_ROW:case ei.IN_CELL:case ei.IN_SELECT:case ei.IN_SELECT_IN_TABLE:case ei.IN_TEMPLATE:case ei.IN_FRAMESET:case ei.AFTER_FRAMESET:bQ(this,e);break;case ei.IN_TABLE_TEXT:yf(this,e);break;case ei.AFTER_BODY:t=this,n=e,t._appendCommentNode(n,t.openElements.items[0]);break;case ei.AFTER_AFTER_BODY:case ei.AFTER_AFTER_FRAMESET:r=this,a=e,r._appendCommentNode(a,r.document)}}onDoctype(e){switch(this.skipNextNewLine=!1,this.insertionMode){case ei.INITIAL:!function(e,t){e._setDocumentType(t);let n=t.forceQuirks?ee.QUIRKS:function(e){if(e.name!==bL)return ee.QUIRKS;let{systemId:t}=e;if(t&&"http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd"===t.toLowerCase())return ee.QUIRKS;let{publicId:n}=e;if(null!==n){if(n=n.toLowerCase(),bM.has(n))return ee.QUIRKS;let e=null===t?bP:bD;if(bU(n,e))return ee.QUIRKS;if(bU(n,e=null===t?bF:bj))return ee.LIMITED_QUIRKS}return ee.NO_QUIRKS}(t);(t.name!==bL||null!==t.publicId||null!==t.systemId&&"about:legacy-compat"!==t.systemId)&&e._err(t,q.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=ei.BEFORE_HTML}(this,e);break;case ei.BEFORE_HEAD:case ei.IN_HEAD:case ei.IN_HEAD_NO_SCRIPT:case ei.AFTER_HEAD:this._err(e,q.misplacedDoctype);break;case ei.IN_TABLE_TEXT:yf(this,e)}}onStartTag(e){this.skipNextNewLine=!1,this.currentToken=e,this._processStartTag(e),e.selfClosing&&!e.ackSelfClosing&&this._err(e,q.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(e){this.shouldProcessStartTagTokenInForeignContent(e)?function(e,t){let n;if((n=t.tagID)===en.FONT&&t.attrs.some(({name:e})=>e===J.COLOR||e===J.SIZE||e===J.FACE)||bG.has(n))yI(e),e._startTagOutsideForeignContent(t);else{let n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);if(r===Q.MATHML)b$(t);else if(r===Q.SVG){let e;null!=(e=bz.get(t.tagName))&&(t.tagName=e,t.tagID=bs(t.tagName)),bq(t)}bV(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}(this,e):this._startTagOutsideForeignContent(e)}_startTagOutsideForeignContent(e){switch(this.insertionMode){case ei.INITIAL:b0(this,e);break;case ei.BEFORE_HTML:t=this,(n=e).tagID===en.HTML?(t._insertElement(n,Q.HTML),t.insertionMode=ei.BEFORE_HEAD):b1(t,n);break;case ei.BEFORE_HEAD:var t,n,r,a,i,s,o,l,c,u,d,p,m=this,h=e;switch(h.tagID){case en.HTML:yi(m,h);break;case en.HEAD:m._insertElement(h,Q.HTML),m.headElement=m.openElements.current,m.insertionMode=ei.IN_HEAD;break;default:b2(m,h)}break;case ei.IN_HEAD:b3(this,e);break;case ei.IN_HEAD_NO_SCRIPT:var f=this,g=e;switch(g.tagID){case en.HTML:yi(f,g);break;case en.BASEFONT:case en.BGSOUND:case en.HEAD:case en.LINK:case en.META:case en.NOFRAMES:case en.STYLE:b3(f,g);break;case en.NOSCRIPT:f._err(g,q.nestedNoscriptInHead);break;default:b6(f,g)}break;case ei.AFTER_HEAD:var b=this,y=e;switch(y.tagID){case en.HTML:yi(b,y);break;case en.BODY:b._insertElement(y,Q.HTML),b.framesetOk=!1,b.insertionMode=ei.IN_BODY;break;case en.FRAMESET:b._insertElement(y,Q.HTML),b.insertionMode=ei.IN_FRAMESET;break;case en.BASE:case en.BASEFONT:case en.BGSOUND:case en.LINK:case en.META:case en.NOFRAMES:case en.SCRIPT:case en.STYLE:case en.TEMPLATE:case en.TITLE:b._err(y,q.abandonedHeadElementChild),b.openElements.push(b.headElement,en.HEAD),b3(b,y),b.openElements.remove(b.headElement);break;case en.HEAD:b._err(y,q.misplacedStartTagForHeadElement);break;default:b9(b,y)}break;case ei.IN_BODY:yi(this,e);break;case ei.IN_TABLE:yu(this,e);break;case ei.IN_TABLE_TEXT:yf(this,e);break;case ei.IN_CAPTION:let E;r=this,E=(a=e).tagID,yg.has(E)?r.openElements.hasInTableScope(en.CAPTION)&&(r.openElements.generateImpliedEndTags(),r.openElements.popUntilTagNamePopped(en.CAPTION),r.activeFormattingElements.clearToLastMarker(),r.insertionMode=ei.IN_TABLE,yu(r,a)):yi(r,a);break;case ei.IN_COLUMN_GROUP:yb(this,e);break;case ei.IN_TABLE_BODY:yE(this,e);break;case ei.IN_ROW:yS(this,e);break;case ei.IN_CELL:let x;i=this,x=(s=e).tagID,yg.has(x)?(i.openElements.hasInTableScope(en.TD)||i.openElements.hasInTableScope(en.TH))&&(i._closeTableCell(),yS(i,s)):yi(i,s);break;case ei.IN_SELECT:yv(this,e);break;case ei.IN_SELECT_IN_TABLE:let S;o=this,(S=(l=e).tagID)===en.CAPTION||S===en.TABLE||S===en.TBODY||S===en.TFOOT||S===en.THEAD||S===en.TR||S===en.TD||S===en.TH?(o.openElements.popUntilTagNamePopped(en.SELECT),o._resetInsertionMode(),o._processStartTag(l)):yv(o,l);break;case ei.IN_TEMPLATE:var T=this,v=e;switch(v.tagID){case en.BASE:case en.BASEFONT:case en.BGSOUND:case en.LINK:case en.META:case en.NOFRAMES:case en.SCRIPT:case en.STYLE:case en.TEMPLATE:case en.TITLE:b3(T,v);break;case en.CAPTION:case en.COLGROUP:case en.TBODY:case en.TFOOT:case en.THEAD:T.tmplInsertionModeStack[0]=ei.IN_TABLE,T.insertionMode=ei.IN_TABLE,yu(T,v);break;case en.COL:T.tmplInsertionModeStack[0]=ei.IN_COLUMN_GROUP,T.insertionMode=ei.IN_COLUMN_GROUP,yb(T,v);break;case en.TR:T.tmplInsertionModeStack[0]=ei.IN_TABLE_BODY,T.insertionMode=ei.IN_TABLE_BODY,yE(T,v);break;case en.TD:case en.TH:T.tmplInsertionModeStack[0]=ei.IN_ROW,T.insertionMode=ei.IN_ROW,yS(T,v);break;default:T.tmplInsertionModeStack[0]=ei.IN_BODY,T.insertionMode=ei.IN_BODY,yi(T,v)}break;case ei.AFTER_BODY:c=this,(u=e).tagID===en.HTML?yi(c,u):yN(c,u);break;case ei.IN_FRAMESET:var A=this,_=e;switch(_.tagID){case en.HTML:yi(A,_);break;case en.FRAMESET:A._insertElement(_,Q.HTML);break;case en.FRAME:A._appendElement(_,Q.HTML),_.ackSelfClosing=!0;break;case en.NOFRAMES:b3(A,_)}break;case ei.AFTER_FRAMESET:var k=this,N=e;switch(N.tagID){case en.HTML:yi(k,N);break;case en.NOFRAMES:b3(k,N)}break;case ei.AFTER_AFTER_BODY:d=this,(p=e).tagID===en.HTML?yi(d,p):yw(d,p);break;case ei.AFTER_AFTER_FRAMESET:var w=this,I=e;switch(I.tagID){case en.HTML:yi(w,I);break;case en.NOFRAMES:b3(w,I)}}}onEndTag(e){this.skipNextNewLine=!1,this.currentToken=e,this.currentNotInHTML?function(e,t){if(t.tagID===en.P||t.tagID===en.BR){yI(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){let r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===Q.HTML){e._endTagOutsideForeignContent(t);break}let a=e.treeAdapter.getTagName(r);if(a.toLowerCase()===t.tagName){t.tagName=a,e.openElements.shortenToLength(n);break}}}(this,e):this._endTagOutsideForeignContent(e)}_endTagOutsideForeignContent(e){switch(this.insertionMode){case ei.INITIAL:b0(this,e);break;case ei.BEFORE_HTML:let t;r=this,((t=(a=e).tagID)===en.HTML||t===en.HEAD||t===en.BODY||t===en.BR)&&b1(r,a);break;case ei.BEFORE_HEAD:let n;i=this,(n=(s=e).tagID)===en.HEAD||n===en.BODY||n===en.HTML||n===en.BR?b2(i,s):i._err(s,q.endTagWithoutMatchingOpenElement);break;case ei.IN_HEAD:var r,a,i,s,o,l,c,u,d,p,m,h,f=this,g=e;switch(g.tagID){case en.HEAD:f.openElements.pop(),f.insertionMode=ei.AFTER_HEAD;break;case en.BODY:case en.BR:case en.HTML:b5(f,g);break;case en.TEMPLATE:b4(f,g);break;default:f._err(g,q.endTagWithoutMatchingOpenElement)}break;case ei.IN_HEAD_NO_SCRIPT:var b=this,y=e;switch(y.tagID){case en.NOSCRIPT:b.openElements.pop(),b.insertionMode=ei.IN_HEAD;break;case en.BR:b6(b,y);break;default:b._err(y,q.endTagWithoutMatchingOpenElement)}break;case ei.AFTER_HEAD:var E=this,x=e;switch(x.tagID){case en.BODY:case en.HTML:case en.BR:b9(E,x);break;case en.TEMPLATE:b4(E,x);break;default:E._err(x,q.endTagWithoutMatchingOpenElement)}break;case ei.IN_BODY:yo(this,e);break;case ei.TEXT:o=this,e.tagID===en.SCRIPT&&(null==(l=o.scriptHandler)||l.call(o,o.openElements.current)),o.openElements.pop(),o.insertionMode=o.originalInsertionMode;break;case ei.IN_TABLE:yd(this,e);break;case ei.IN_TABLE_TEXT:yf(this,e);break;case ei.IN_CAPTION:var S=this,T=e;let v=T.tagID;switch(v){case en.CAPTION:case en.TABLE:S.openElements.hasInTableScope(en.CAPTION)&&(S.openElements.generateImpliedEndTags(),S.openElements.popUntilTagNamePopped(en.CAPTION),S.activeFormattingElements.clearToLastMarker(),S.insertionMode=ei.IN_TABLE,v===en.TABLE&&yd(S,T));break;case en.BODY:case en.COL:case en.COLGROUP:case en.HTML:case en.TBODY:case en.TD:case en.TFOOT:case en.TH:case en.THEAD:case en.TR:break;default:yo(S,T)}break;case ei.IN_COLUMN_GROUP:var A=this,_=e;switch(_.tagID){case en.COLGROUP:A.openElements.currentTagId===en.COLGROUP&&(A.openElements.pop(),A.insertionMode=ei.IN_TABLE);break;case en.TEMPLATE:b4(A,_);break;case en.COL:break;default:yy(A,_)}break;case ei.IN_TABLE_BODY:yx(this,e);break;case ei.IN_ROW:yT(this,e);break;case ei.IN_CELL:var k=this,N=e;let w=N.tagID;switch(w){case en.TD:case en.TH:k.openElements.hasInTableScope(w)&&(k.openElements.generateImpliedEndTags(),k.openElements.popUntilTagNamePopped(w),k.activeFormattingElements.clearToLastMarker(),k.insertionMode=ei.IN_ROW);break;case en.TABLE:case en.TBODY:case en.TFOOT:case en.THEAD:case en.TR:k.openElements.hasInTableScope(w)&&(k._closeTableCell(),yT(k,N));break;case en.BODY:case en.CAPTION:case en.COL:case en.COLGROUP:case en.HTML:break;default:yo(k,N)}break;case ei.IN_SELECT:yA(this,e);break;case ei.IN_SELECT_IN_TABLE:let I;c=this,(I=(u=e).tagID)===en.CAPTION||I===en.TABLE||I===en.TBODY||I===en.TFOOT||I===en.THEAD||I===en.TR||I===en.TD||I===en.TH?c.openElements.hasInTableScope(I)&&(c.openElements.popUntilTagNamePopped(en.SELECT),c._resetInsertionMode(),c.onEndTag(u)):yA(c,u);break;case ei.IN_TEMPLATE:d=this,(p=e).tagID===en.TEMPLATE&&b4(d,p);break;case ei.AFTER_BODY:yk(this,e);break;case ei.IN_FRAMESET:m=this,e.tagID===en.FRAMESET&&!m.openElements.isRootHtmlElementCurrent()&&(m.openElements.pop(),m.fragmentContext||m.openElements.currentTagId===en.FRAMESET||(m.insertionMode=ei.AFTER_FRAMESET));break;case ei.AFTER_FRAMESET:h=this,e.tagID===en.HTML&&(h.insertionMode=ei.AFTER_AFTER_FRAMESET);break;case ei.AFTER_AFTER_BODY:yw(this,e)}}onEof(e){switch(this.insertionMode){case ei.INITIAL:b0(this,e);break;case ei.BEFORE_HTML:b1(this,e);break;case ei.BEFORE_HEAD:b2(this,e);break;case ei.IN_HEAD:b5(this,e);break;case ei.IN_HEAD_NO_SCRIPT:b6(this,e);break;case ei.AFTER_HEAD:b9(this,e);break;case ei.IN_BODY:case ei.IN_TABLE:case ei.IN_CAPTION:case ei.IN_COLUMN_GROUP:case ei.IN_TABLE_BODY:case ei.IN_ROW:case ei.IN_CELL:case ei.IN_SELECT:case ei.IN_SELECT_IN_TABLE:yl(this,e);break;case ei.TEXT:var t,n;t=this,n=e,t._err(n,q.eofInElementThatCanContainOnlyText),t.openElements.pop(),t.insertionMode=t.originalInsertionMode,t.onEof(n);break;case ei.IN_TABLE_TEXT:yf(this,e);break;case ei.IN_TEMPLATE:y_(this,e);break;case ei.AFTER_BODY:case ei.IN_FRAMESET:case ei.AFTER_FRAMESET:case ei.AFTER_AFTER_BODY:case ei.AFTER_AFTER_FRAMESET:bJ(this,e)}}onWhitespaceCharacter(e){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,e.chars.charCodeAt(0)===$.LINE_FEED)){if(1===e.chars.length)return;e.chars=e.chars.substr(1)}if(this.tokenizer.inForeignNode)return void this._insertCharacters(e);switch(this.insertionMode){case ei.IN_HEAD:case ei.IN_HEAD_NO_SCRIPT:case ei.AFTER_HEAD:case ei.TEXT:case ei.IN_COLUMN_GROUP:case ei.IN_SELECT:case ei.IN_SELECT_IN_TABLE:case ei.IN_FRAMESET:case ei.AFTER_FRAMESET:this._insertCharacters(e);break;case ei.IN_BODY:case ei.IN_CAPTION:case ei.IN_CELL:case ei.IN_TEMPLATE:case ei.AFTER_BODY:case ei.AFTER_AFTER_BODY:case ei.AFTER_AFTER_FRAMESET:b7(this,e);break;case ei.IN_TABLE:case ei.IN_TABLE_BODY:case ei.IN_ROW:yc(this,e);break;case ei.IN_TABLE_TEXT:ym(this,e)}}}function bZ(e,t){for(let n=0;n<8;n++){let n=function(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):ys(e,t),n}(e,t);if(!n)break;let r=function(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){let a=e.openElements.items[r];if(a===t.element)break;e._isSpecialElement(a,e.openElements.tagIDs[r])&&(n=a)}return n||(e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t)),n}(e,n);if(!r)break;e.activeFormattingElements.bookmark=n;let a=function(e,t,n){let r=t,a=e.openElements.getCommonAncestor(t);for(let i=0,s=a;s!==n;i++,s=a){a=e.openElements.getCommonAncestor(s);let n=e.activeFormattingElements.getElementEntry(s),o=n&&i>=3;!n||o?(o&&e.activeFormattingElements.removeEntry(n),e.openElements.remove(s)):(s=function(e,t){let n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}(e,n),r===t&&(e.activeFormattingElements.bookmark=n),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(s,r),r=s)}return r}(e,r,n.element),i=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(a),i&&function(e,t,n){let r=bs(e.treeAdapter.getTagName(t));if(e._isElementCausesFosterParenting(r))e._fosterParentElement(n);else{let a=e.treeAdapter.getNamespaceURI(t);r===en.TEMPLATE&&a===Q.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}(e,i,a),function(e,t,n){let r=e.treeAdapter.getNamespaceURI(n.element),{token:a}=n,i=e.treeAdapter.createElement(a.tagName,r,a.attrs);e._adoptNodes(t,i),e.treeAdapter.appendChild(t,i),e.activeFormattingElements.insertElementAfterBookmark(i,a),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,i,a.tagID)}(e,r,n)}}function bQ(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function bJ(e,t){if(e.stopped=!0,t.location){let n=2*!e.fragmentContext;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){let n=e.openElements.items[0],r=e.treeAdapter.getNodeSourceCodeLocation(n);if(r&&!r.endTag&&(e._setEndLocation(n,t),e.openElements.stackTop>=1)){let n=e.openElements.items[1],r=e.treeAdapter.getNodeSourceCodeLocation(n);r&&!r.endTag&&e._setEndLocation(n,t)}}}}function b0(e,t){e._err(t,q.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,ee.QUIRKS),e.insertionMode=ei.BEFORE_HTML,e._processToken(t)}function b1(e,t){e._insertFakeRootElement(),e.insertionMode=ei.BEFORE_HEAD,e._processToken(t)}function b2(e,t){e._insertFakeElement(et.HEAD,en.HEAD),e.headElement=e.openElements.current,e.insertionMode=ei.IN_HEAD,e._processToken(t)}function b3(e,t){switch(t.tagID){case en.HTML:yi(e,t);break;case en.BASE:case en.BASEFONT:case en.BGSOUND:case en.LINK:case en.META:e._appendElement(t,Q.HTML),t.ackSelfClosing=!0;break;case en.TITLE:e._switchToTextParsing(t,bd.RCDATA);break;case en.NOSCRIPT:e.options.scriptingEnabled?e._switchToTextParsing(t,bd.RAWTEXT):(e._insertElement(t,Q.HTML),e.insertionMode=ei.IN_HEAD_NO_SCRIPT);break;case en.NOFRAMES:case en.STYLE:e._switchToTextParsing(t,bd.RAWTEXT);break;case en.SCRIPT:e._switchToTextParsing(t,bd.SCRIPT_DATA);break;case en.TEMPLATE:e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=ei.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(ei.IN_TEMPLATE);break;case en.HEAD:e._err(t,q.misplacedStartTagForHeadElement);break;default:b5(e,t)}}function b4(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==en.TEMPLATE&&e._err(t,q.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(en.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,q.endTagWithoutMatchingOpenElement)}function b5(e,t){e.openElements.pop(),e.insertionMode=ei.AFTER_HEAD,e._processToken(t)}function b6(e,t){let n=t.type===V.EOF?q.openElementsLeftAfterEof:q.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=ei.IN_HEAD,e._processToken(t)}function b9(e,t){e._insertFakeElement(et.BODY,en.BODY),e.insertionMode=ei.IN_BODY,b8(e,t)}function b8(e,t){switch(t.type){case V.CHARACTER:ye(e,t);break;case V.WHITESPACE_CHARACTER:b7(e,t);break;case V.COMMENT:bQ(e,t);break;case V.START_TAG:yi(e,t);break;case V.END_TAG:yo(e,t);break;case V.EOF:yl(e,t)}}function b7(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function ye(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function yt(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Q.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function yn(e){let t=be(e,J.TYPE);return null!=t&&"hidden"===t.toLowerCase()}function yr(e,t){e._switchToTextParsing(t,bd.RAWTEXT)}function ya(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Q.HTML)}function yi(e,t){switch(t.tagID){case en.I:case en.S:case en.B:case en.U:case en.EM:case en.TT:case en.BIG:case en.CODE:case en.FONT:case en.SMALL:case en.STRIKE:case en.STRONG:e._reconstructActiveFormattingElements(),e._insertElement(t,Q.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t);break;case en.A:let n;(n=e.activeFormattingElements.getElementEntryInScopeWithTagName(et.A))&&(bZ(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,Q.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t);break;case en.H1:case en.H2:case en.H3:case en.H4:case en.H5:case en.H6:e.openElements.hasInButtonScope(en.P)&&e._closePElement(),void 0!==e.openElements.currentTagId&&bc.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,Q.HTML);break;case en.P:case en.DL:case en.OL:case en.UL:case en.DIV:case en.DIR:case en.NAV:case en.MAIN:case en.MENU:case en.ASIDE:case en.CENTER:case en.FIGURE:case en.FOOTER:case en.HEADER:case en.HGROUP:case en.DIALOG:case en.DETAILS:case en.ADDRESS:case en.ARTICLE:case en.SEARCH:case en.SECTION:case en.SUMMARY:case en.FIELDSET:case en.BLOCKQUOTE:case en.FIGCAPTION:e.openElements.hasInButtonScope(en.P)&&e._closePElement(),e._insertElement(t,Q.HTML);break;case en.LI:case en.DD:case en.DT:e.framesetOk=!1;let r=t.tagID;for(let t=e.openElements.stackTop;t>=0;t--){let n=e.openElements.tagIDs[t];if(r===en.LI&&n===en.LI||(r===en.DD||r===en.DT)&&(n===en.DD||n===en.DT)){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n);break}if(n!==en.ADDRESS&&n!==en.DIV&&n!==en.P&&e._isSpecialElement(e.openElements.items[t],n))break}e.openElements.hasInButtonScope(en.P)&&e._closePElement(),e._insertElement(t,Q.HTML);break;case en.BR:case en.IMG:case en.WBR:case en.AREA:case en.EMBED:case en.KEYGEN:yt(e,t);break;case en.HR:e.openElements.hasInButtonScope(en.P)&&e._closePElement(),e._appendElement(t,Q.HTML),e.framesetOk=!1,t.ackSelfClosing=!0;break;case en.RB:case en.RTC:e.openElements.hasInScope(en.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,Q.HTML);break;case en.RT:case en.RP:e.openElements.hasInScope(en.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(en.RTC),e._insertElement(t,Q.HTML);break;case en.PRE:case en.LISTING:e.openElements.hasInButtonScope(en.P)&&e._closePElement(),e._insertElement(t,Q.HTML),e.skipNextNewLine=!0,e.framesetOk=!1;break;case en.XMP:e.openElements.hasInButtonScope(en.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,bd.RAWTEXT);break;case en.SVG:e._reconstructActiveFormattingElements(),bq(t),bV(t),t.selfClosing?e._appendElement(t,Q.SVG):e._insertElement(t,Q.SVG),t.ackSelfClosing=!0;break;case en.HTML:0===e.openElements.tmplCount&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs);break;case en.BASE:case en.LINK:case en.META:case en.STYLE:case en.TITLE:case en.SCRIPT:case en.BGSOUND:case en.BASEFONT:case en.TEMPLATE:b3(e,t);break;case en.BODY:let a;(a=e.openElements.tryPeekProperlyNestedBodyElement())&&0===e.openElements.tmplCount&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(a,t.attrs));break;case en.FORM:let i;i=e.openElements.tmplCount>0,(!e.formElement||i)&&(e.openElements.hasInButtonScope(en.P)&&e._closePElement(),e._insertElement(t,Q.HTML),i||(e.formElement=e.openElements.current));break;case en.NOBR:e._reconstructActiveFormattingElements(),e.openElements.hasInScope(en.NOBR)&&(bZ(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,Q.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t);break;case en.MATH:e._reconstructActiveFormattingElements(),b$(t),bV(t),t.selfClosing?e._appendElement(t,Q.MATHML):e._insertElement(t,Q.MATHML),t.ackSelfClosing=!0;break;case en.TABLE:e.treeAdapter.getDocumentMode(e.document)!==ee.QUIRKS&&e.openElements.hasInButtonScope(en.P)&&e._closePElement(),e._insertElement(t,Q.HTML),e.framesetOk=!1,e.insertionMode=ei.IN_TABLE;break;case en.INPUT:e._reconstructActiveFormattingElements(),e._appendElement(t,Q.HTML),yn(t)||(e.framesetOk=!1),t.ackSelfClosing=!0;break;case en.PARAM:case en.TRACK:case en.SOURCE:e._appendElement(t,Q.HTML),t.ackSelfClosing=!0;break;case en.IMAGE:t.tagName=et.IMG,t.tagID=en.IMG,yt(e,t);break;case en.BUTTON:e.openElements.hasInScope(en.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(en.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,Q.HTML),e.framesetOk=!1;break;case en.APPLET:case en.OBJECT:case en.MARQUEE:e._reconstructActiveFormattingElements(),e._insertElement(t,Q.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1;break;case en.IFRAME:e.framesetOk=!1,e._switchToTextParsing(t,bd.RAWTEXT);break;case en.SELECT:e._reconstructActiveFormattingElements(),e._insertElement(t,Q.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===ei.IN_TABLE||e.insertionMode===ei.IN_CAPTION||e.insertionMode===ei.IN_TABLE_BODY||e.insertionMode===ei.IN_ROW||e.insertionMode===ei.IN_CELL?ei.IN_SELECT_IN_TABLE:ei.IN_SELECT;break;case en.OPTION:case en.OPTGROUP:e.openElements.currentTagId===en.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,Q.HTML);break;case en.NOEMBED:case en.NOFRAMES:yr(e,t);break;case en.FRAMESET:let s;s=e.openElements.tryPeekProperlyNestedBodyElement(),e.framesetOk&&s&&(e.treeAdapter.detachNode(s),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,Q.HTML),e.insertionMode=ei.IN_FRAMESET);break;case en.TEXTAREA:e._insertElement(t,Q.HTML),e.skipNextNewLine=!0,e.tokenizer.state=bd.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=ei.TEXT;break;case en.NOSCRIPT:e.options.scriptingEnabled?yr(e,t):ya(e,t);break;case en.PLAINTEXT:e.openElements.hasInButtonScope(en.P)&&e._closePElement(),e._insertElement(t,Q.HTML),e.tokenizer.state=bd.PLAINTEXT;break;case en.COL:case en.TH:case en.TD:case en.TR:case en.HEAD:case en.FRAME:case en.TBODY:case en.TFOOT:case en.THEAD:case en.CAPTION:case en.COLGROUP:break;default:ya(e,t)}}function ys(e,t){let n=t.tagName,r=t.tagID;for(let t=e.openElements.stackTop;t>0;t--){let a=e.openElements.items[t],i=e.openElements.tagIDs[t];if(r===i&&(r!==en.UNKNOWN||e.treeAdapter.getTagName(a)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=t&&e.openElements.shortenToLength(t);break}if(e._isSpecialElement(a,i))break}}function yo(e,t){switch(t.tagID){case en.A:case en.B:case en.I:case en.S:case en.U:case en.EM:case en.TT:case en.BIG:case en.CODE:case en.FONT:case en.NOBR:case en.SMALL:case en.STRIKE:case en.STRONG:bZ(e,t);break;case en.P:e.openElements.hasInButtonScope(en.P)||e._insertFakeElement(et.P,en.P),e._closePElement();break;case en.DL:case en.UL:case en.OL:case en.DIR:case en.DIV:case en.NAV:case en.PRE:case en.MAIN:case en.MENU:case en.ASIDE:case en.BUTTON:case en.CENTER:case en.FIGURE:case en.FOOTER:case en.HEADER:case en.HGROUP:case en.DIALOG:case en.ADDRESS:case en.ARTICLE:case en.DETAILS:case en.SEARCH:case en.SECTION:case en.SUMMARY:case en.LISTING:case en.FIELDSET:case en.BLOCKQUOTE:case en.FIGCAPTION:let n;n=t.tagID,e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n));break;case en.LI:e.openElements.hasInListItemScope(en.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(en.LI),e.openElements.popUntilTagNamePopped(en.LI));break;case en.DD:case en.DT:let r;r=t.tagID,e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilTagNamePopped(r));break;case en.H1:case en.H2:case en.H3:case en.H4:case en.H5:case en.H6:e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped());break;case en.BR:e._reconstructActiveFormattingElements(),e._insertFakeElement(et.BR,en.BR),e.openElements.pop(),e.framesetOk=!1;break;case en.BODY:if(e.openElements.hasInScope(en.BODY)&&(e.insertionMode=ei.AFTER_BODY,e.options.sourceCodeLocationInfo)){let n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}break;case en.HTML:e.openElements.hasInScope(en.BODY)&&(e.insertionMode=ei.AFTER_BODY,yk(e,t));break;case en.FORM:!function(e){let t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(en.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(en.FORM):n&&e.openElements.remove(n))}(e);break;case en.APPLET:case en.OBJECT:case en.MARQUEE:let a;a=t.tagID,e.openElements.hasInScope(a)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(a),e.activeFormattingElements.clearToLastMarker());break;case en.TEMPLATE:b4(e,t);break;default:ys(e,t)}}function yl(e,t){e.tmplInsertionModeStack.length>0?y_(e,t):bJ(e,t)}function yc(e,t){if(void 0!==e.openElements.currentTagId&&bY.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=ei.IN_TABLE_TEXT,t.type){case V.CHARACTER:yh(e,t);break;case V.WHITESPACE_CHARACTER:ym(e,t)}else yp(e,t)}function yu(e,t){switch(t.tagID){case en.TD:case en.TH:case en.TR:e.openElements.clearBackToTableContext(),e._insertFakeElement(et.TBODY,en.TBODY),e.insertionMode=ei.IN_TABLE_BODY,yE(e,t);break;case en.STYLE:case en.SCRIPT:case en.TEMPLATE:b3(e,t);break;case en.COL:e.openElements.clearBackToTableContext(),e._insertFakeElement(et.COLGROUP,en.COLGROUP),e.insertionMode=ei.IN_COLUMN_GROUP,yb(e,t);break;case en.FORM:e.formElement||0!==e.openElements.tmplCount||(e._insertElement(t,Q.HTML),e.formElement=e.openElements.current,e.openElements.pop());break;case en.TABLE:e.openElements.hasInTableScope(en.TABLE)&&(e.openElements.popUntilTagNamePopped(en.TABLE),e._resetInsertionMode(),e._processStartTag(t));break;case en.TBODY:case en.TFOOT:case en.THEAD:e.openElements.clearBackToTableContext(),e._insertElement(t,Q.HTML),e.insertionMode=ei.IN_TABLE_BODY;break;case en.INPUT:yn(t)?e._appendElement(t,Q.HTML):yp(e,t),t.ackSelfClosing=!0;break;case en.CAPTION:e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,Q.HTML),e.insertionMode=ei.IN_CAPTION;break;case en.COLGROUP:e.openElements.clearBackToTableContext(),e._insertElement(t,Q.HTML),e.insertionMode=ei.IN_COLUMN_GROUP;break;default:yp(e,t)}}function yd(e,t){switch(t.tagID){case en.TABLE:e.openElements.hasInTableScope(en.TABLE)&&(e.openElements.popUntilTagNamePopped(en.TABLE),e._resetInsertionMode());break;case en.TEMPLATE:b4(e,t);break;case en.BODY:case en.CAPTION:case en.COL:case en.COLGROUP:case en.HTML:case en.TBODY:case en.TD:case en.TFOOT:case en.TH:case en.THEAD:case en.TR:break;default:yp(e,t)}}function yp(e,t){let n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,b8(e,t),e.fosterParentingEnabled=n}function ym(e,t){e.pendingCharacterTokens.push(t)}function yh(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function yf(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)yp(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}let yg=new Set([en.CAPTION,en.COL,en.COLGROUP,en.TBODY,en.TD,en.TFOOT,en.TH,en.THEAD,en.TR]);function yb(e,t){switch(t.tagID){case en.HTML:yi(e,t);break;case en.COL:e._appendElement(t,Q.HTML),t.ackSelfClosing=!0;break;case en.TEMPLATE:b3(e,t);break;default:yy(e,t)}}function yy(e,t){e.openElements.currentTagId===en.COLGROUP&&(e.openElements.pop(),e.insertionMode=ei.IN_TABLE,e._processToken(t))}function yE(e,t){switch(t.tagID){case en.TR:e.openElements.clearBackToTableBodyContext(),e._insertElement(t,Q.HTML),e.insertionMode=ei.IN_ROW;break;case en.TH:case en.TD:e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(et.TR,en.TR),e.insertionMode=ei.IN_ROW,yS(e,t);break;case en.CAPTION:case en.COL:case en.COLGROUP:case en.TBODY:case en.TFOOT:case en.THEAD:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=ei.IN_TABLE,yu(e,t));break;default:yu(e,t)}}function yx(e,t){let n=t.tagID;switch(t.tagID){case en.TBODY:case en.TFOOT:case en.THEAD:e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=ei.IN_TABLE);break;case en.TABLE:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=ei.IN_TABLE,yd(e,t));break;case en.BODY:case en.CAPTION:case en.COL:case en.COLGROUP:case en.HTML:case en.TD:case en.TH:case en.TR:break;default:yd(e,t)}}function yS(e,t){switch(t.tagID){case en.TH:case en.TD:e.openElements.clearBackToTableRowContext(),e._insertElement(t,Q.HTML),e.insertionMode=ei.IN_CELL,e.activeFormattingElements.insertMarker();break;case en.CAPTION:case en.COL:case en.COLGROUP:case en.TBODY:case en.TFOOT:case en.THEAD:case en.TR:e.openElements.hasInTableScope(en.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=ei.IN_TABLE_BODY,yE(e,t));break;default:yu(e,t)}}function yT(e,t){switch(t.tagID){case en.TR:e.openElements.hasInTableScope(en.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=ei.IN_TABLE_BODY);break;case en.TABLE:e.openElements.hasInTableScope(en.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=ei.IN_TABLE_BODY,yx(e,t));break;case en.TBODY:case en.TFOOT:case en.THEAD:(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(en.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=ei.IN_TABLE_BODY,yx(e,t));break;case en.BODY:case en.CAPTION:case en.COL:case en.COLGROUP:case en.HTML:case en.TD:case en.TH:break;default:yd(e,t)}}function yv(e,t){switch(t.tagID){case en.HTML:yi(e,t);break;case en.OPTION:e.openElements.currentTagId===en.OPTION&&e.openElements.pop(),e._insertElement(t,Q.HTML);break;case en.OPTGROUP:e.openElements.currentTagId===en.OPTION&&e.openElements.pop(),e.openElements.currentTagId===en.OPTGROUP&&e.openElements.pop(),e._insertElement(t,Q.HTML);break;case en.HR:e.openElements.currentTagId===en.OPTION&&e.openElements.pop(),e.openElements.currentTagId===en.OPTGROUP&&e.openElements.pop(),e._appendElement(t,Q.HTML),t.ackSelfClosing=!0;break;case en.INPUT:case en.KEYGEN:case en.TEXTAREA:case en.SELECT:e.openElements.hasInSelectScope(en.SELECT)&&(e.openElements.popUntilTagNamePopped(en.SELECT),e._resetInsertionMode(),t.tagID!==en.SELECT&&e._processStartTag(t));break;case en.SCRIPT:case en.TEMPLATE:b3(e,t)}}function yA(e,t){switch(t.tagID){case en.OPTGROUP:e.openElements.stackTop>0&&e.openElements.currentTagId===en.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===en.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===en.OPTGROUP&&e.openElements.pop();break;case en.OPTION:e.openElements.currentTagId===en.OPTION&&e.openElements.pop();break;case en.SELECT:e.openElements.hasInSelectScope(en.SELECT)&&(e.openElements.popUntilTagNamePopped(en.SELECT),e._resetInsertionMode());break;case en.TEMPLATE:b4(e,t)}}function y_(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(en.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):bJ(e,t)}function yk(e,t){var n;if(t.tagID===en.HTML){if(e.fragmentContext||(e.insertionMode=ei.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===en.HTML){e._setEndLocation(e.openElements.items[0],t);let r=e.openElements.items[1];!r||(null==(n=e.treeAdapter.getNodeSourceCodeLocation(r))?void 0:n.endTag)||e._setEndLocation(r,t)}}else yN(e,t)}function yN(e,t){e.insertionMode=ei.IN_BODY,b8(e,t)}function yw(e,t){e.insertionMode=ei.IN_BODY,b8(e,t)}function yI(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==Q.HTML&&void 0!==e.openElements.currentTagId&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}et.AREA,et.BASE,et.BASEFONT,et.BGSOUND,et.BR,et.COL,et.EMBED,et.FRAME,et.HR,et.IMG,et.INPUT,et.KEYGEN,et.LINK,et.META,et.PARAM,et.SOURCE,et.TRACK,et.WBR;var yC=e.i(382698),yC=yC,yR=e.i(615473),yR=yR;let yO=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,yL=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),yD={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function yP(e,t){var n,r;let a,i,s=!!((a="root"===(r=e).type?r.children[0]:r)&&("doctype"===a.type||"element"===a.type&&"html"===a.tagName.toLowerCase())),o=gX("type",{handlers:{root:yF,element:yj,text:yU,comment:yH,doctype:yB,raw:yz},unknown:yG}),l={parser:s?new bX(yD):bX.getFragmentParser(void 0,yD),handle(e){o(e,l)},stitches:!1,options:t||{}};o(e,l),y$(l,pq());let c=(n=s?l.parser.document:l.parser.getFragment(),g$({file:(i={file:l.options.file}).file||void 0,location:!1,schema:"svg"===i.space?pB:pU,verbose:i.verbose||!1},n));return(l.stitches&&hU(c,"comment",function(e,t,n){if(e.value.stitch&&n&&void 0!==t)return n.children[t]=e.value.stitch,t}),"root"===c.type&&1===c.children.length&&c.children[0].type===e.type)?c.children[0]:c}function yM(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function yF(e,t){yM(e.children,t)}function yj(e,t){(function(e,t){let n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===bd.PLAINTEXT)return;y$(t,pq(e));let r=t.parser.openElements.current,a="namespaceURI"in r?r.namespaceURI:gH.html;a===gH.html&&"svg"===n&&(a=gH.svg);let i=gQ({...e,children:[]},"svg"===({space:a===gH.svg?"svg":"html"}).space?pB:pU),s={type:yC.TokenType.START_TAG,tagName:n,tagID:yR.getTagID(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in i?i.attrs:[],location:yV(e)};t.parser.currentToken=s,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n})(e,t),yM(e.children,t),function(e,t){let n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&g1.includes(n)||t.parser.tokenizer.state===bd.PLAINTEXT)return;y$(t,p$(e));let r={type:yC.TokenType.END_TAG,tagName:n,tagID:yR.getTagID(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:yV(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===bd.RCDATA||t.parser.tokenizer.state===bd.RAWTEXT||t.parser.tokenizer.state===bd.SCRIPT_DATA)&&(t.parser.tokenizer.state=bd.DATA)}(e,t)}function yU(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);let n={type:yC.TokenType.CHARACTER,chars:e.value,location:yV(e)};y$(t,pq(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function yB(e,t){let n={type:yC.TokenType.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:yV(e)};y$(t,pq(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function yH(e,t){let n=e.value,r={type:yC.TokenType.COMMENT,data:n,location:yV(e)};y$(t,pq(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function yz(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,yq(t,pq(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(yO,"<$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),72===t.parser.tokenizer.state||78===t.parser.tokenizer.state){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;let e=t.parser.tokenizer._consume();t.parser.tokenizer._callState(e)}}function yG(e,t){if(t.options.passThrough&&t.options.passThrough.includes(e.type)){var n;let r;t.stitches=!0,r="children"in(n=e)?hI({...n,children:[]}):hI(n),"children"in e&&"children"in r&&(r.children=yP({type:"root",children:e.children},t.options).children),yH({type:"comment",value:{stitch:r}},t)}else{let t="";throw yL.has(e.type)&&(t=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),Error("Cannot compile `"+e.type+"` node"+t)}}function y$(e,t){yq(e,t);let n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=bd.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function yq(e,t){if(t&&void 0!==t.offset){let n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function yV(e){let t=pq(e)||{line:void 0,column:void 0,offset:void 0},n=p$(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function yW(e){return function(t,n){return yP(t,{...e,file:n})}}let yY=/[#.]/g;function yK(e,t,n){let r=n?function(e){let t=new Map;for(let n of e)t.set(n.toLowerCase(),n);return t}(n):void 0;return function(n,a,...i){let s;if(null==n)s={type:"root",children:[]},i.unshift(a);else{let o=(s=function(e,t){let n,r,a=e||"",i={},s=0;for(;s<a.length;){yY.lastIndex=s;let e=yY.exec(a),t=a.slice(s,e?e.index:a.length);t&&(n?"#"===n?i.id=t:Array.isArray(i.className)?i.className.push(t):i.className=[t]:r=t,s+=t.length),e&&(n=e[0],s++)}return{type:"element",tagName:r||t||"div",properties:i,children:[]}}(n,t)).tagName.toLowerCase(),l=r?r.get(o):void 0;if(s.tagName=l||o,function(e){if(null===e||"object"!=typeof e||Array.isArray(e))return!0;if("string"!=typeof e.type)return!1;for(let t of Object.keys(e)){let n=e[t];if(n&&"object"==typeof n){if(!Array.isArray(n))return!0;for(let e of n)if("number"!=typeof e&&"string"!=typeof e)return!0}}return!!("children"in e&&Array.isArray(e.children))}(a))i.unshift(a);else for(let[t,n]of Object.entries(a))!function(e,t,n,r){let a,i=pA(e,n);if(null!=r){if("number"==typeof r){if(Number.isNaN(r))return;a=r}else a="boolean"==typeof r?r:"string"==typeof r?i.spaceSeparated?pH(r):i.commaSeparated?d7(r):i.commaOrSpaceSeparated?pH(d7(r).join(" ")):yX(i,i.property,r):Array.isArray(r)?[...r]:"style"===i.property?function(e){let t=[];for(let[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}(r):String(r);if(Array.isArray(a)){let e=[];for(let t of a)e.push(yX(i,i.property,t));a=e}"className"===i.property&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[i.property]=a}}(e,s.properties,t,n)}for(let e of i)!function e(t,n){if(null==n);else if("number"==typeof n||"string"==typeof n)t.push({type:"text",value:String(n)});else if(Array.isArray(n))for(let r of n)e(t,r);else if("object"==typeof n&&"type"in n)"root"===n.type?e(t,n.children):t.push(n);else throw Error("Expected node, nodes, or string, got `"+n+"`")}(s.children,e);return"element"===s.type&&"template"===s.tagName&&(s.content={type:"root",children:s.children},s.children=[]),s}}function yX(e,t,n){if("string"==typeof n){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(""===n||px(n)===px(t)))return!0}return n}let yZ=yK(pU,"div"),yQ=yK(pB,"g",["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"]);function yJ(e,t){let n=function(e,t){switch(e.nodeType){case 1:return function(e,t){let n=e.namespaceURI,r=n===gH.svg?yQ:yZ,a=n===gH.html?e.tagName.toLowerCase():e.tagName,i=n===gH.html&&"template"===a?e.content:e,s=e.getAttributeNames(),o={},l=-1;for(;++l<s.length;)o[s[l]]=e.getAttribute(s[l])||"";return r(a,o,y0(i,t))}(e,t);case 3:return{type:"text",value:e.nodeValue||""};case 8:return{type:"comment",value:e.nodeValue||""};case 9:case 11:return function(e,t){return{type:"root",children:y0(e,t)}}(e,t);case 10:return{type:"doctype"};default:return}}(e,t);return n&&t.afterTransform&&t.afterTransform(e,n),n}function y0(e,t){let n=e.childNodes,r=[],a=-1;for(;++a<n.length;){let e=yJ(n[a],t);void 0!==e&&r.push(e)}return r}let y1=new DOMParser,y2=function(e,t,n){let r=hL(n);if(!e||!e.type||!e.children)throw Error("Expected parent node");if("number"==typeof t){if(t<0||t===1/0)throw Error("Expected positive finite number as index")}else if((t=e.children.indexOf(t))<0)throw Error("Expected child node or index");for(;++t<e.children.length;)if(r(e.children[t],t,e))return e.children[t]},y3=function(e){if(null==e)return y5;if("string"==typeof e){var t;return t=e,y4(function(e){return e.tagName===t})}if("object"==typeof e){var n=e;let t=[],r=-1;for(;++r<n.length;)t[r]=y3(n[r]);return y4(function(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1})}if("function"==typeof e)return y4(e);throw Error("Expected function, string, or array as `test`")};function y4(e){return function(t,n,r){var a;return!!(null!==(a=t)&&"object"==typeof a&&"type"in a&&"tagName"in a&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function y5(e){return!!(e&&"object"==typeof e&&"type"in e&&"element"===e.type&&"tagName"in e&&"string"==typeof e.tagName)}let y6=/\n/g,y9=/[\t ]+/g,y8=y3("br"),y7=y3(function(e){return"td"===e.tagName||"th"===e.tagName}),Ee=y3("p"),Et=y3("tr"),En=y3(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",function(e){return!!(e.properties||{}).hidden},function(e){return"dialog"===e.tagName&&!(e.properties||{}).open}]),Er=y3(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function Ea(e,t){let n,r=String(e.value),a=[],i=[],s=0;for(;s<=r.length;){y6.lastIndex=s;let e=y6.exec(r),n=e&&"index"in e?e.index:r.length;a.push(function(e,t,n){let r,a=[],i=0;for(;i<e.length;){y9.lastIndex=i;let n=y9.exec(e);r=n?n.index:e.length,i||r||!n||t||a.push(""),i!==r&&a.push(e.slice(i,r)),i=n?r+n[0].length:r}return i===r||n||a.push(""),a.join(" ")}(r.slice(s,n).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),0!==s||t.breakBefore,n!==r.length||t.breakAfter)),s=n+1}let o=-1;for(;++o<a.length;)8203===a[o].charCodeAt(a[o].length-1)||o<a.length-1&&8203===a[o+1].charCodeAt(0)?(i.push(a[o]),n=void 0):a[o]?("number"==typeof n&&i.push(n),i.push(a[o]),n=0):(0===o||o===a.length-1)&&i.push(0);return i}function Ei(e,t){if("element"===e.type){let n=e.properties||{};switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return n.wrap?"pre-wrap":"pre";case"td":case"th":return n.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap"}}return t.whitespace}var Es=e.i(716400);let Eo={},El=[];function Ec(e){let t=e||Eo;return function(e,n){hj(e,"element",function(e,r){var a,i,s;let o,l,c=Array.isArray(e.properties.className)?e.properties.className:El,u=c.includes("language-math"),d=c.includes("math-display"),p=c.includes("math-inline"),m=d;if(!u&&!d&&!p)return;let h=r[r.length-1],f=e;if("code"===e.tagName&&u&&h&&"element"===h.type&&"pre"===h.tagName&&(f=h,h=r[r.length-2],m=!0),!h)return;let g=function(e,t){let n,r="children"in e?e.children:[],a=Er(e),i=Ei(e,{whitespace:(t||{}).whitespace||"normal",breakBefore:!1,breakAfter:!1}),s=[];("text"===e.type||"comment"===e.type)&&s.push(...Ea(e,{whitespace:i,breakBefore:!0,breakAfter:!0}));let o=-1;for(;++o<r.length;)s.push(...function e(t,n,r){return"element"===t.type?function(t,n,r){let a,i,s=Ei(t,r),o=t.children||[],l=-1,c=[];if(En(t))return c;for(y8(t)||Et(t)&&y2(n,t,Et)?i="\n":Ee(t)?(a=2,i=2):Er(t)&&(a=1,i=1);++l<o.length;)c=c.concat(e(o[l],t,{whitespace:s,breakBefore:l?void 0:a,breakAfter:l<o.length-1?y8(o[l+1]):i}));return y7(t)&&y2(n,t,y7)&&c.push(" "),a&&c.unshift(a),i&&c.push(i),c}(t,n,r):"text"===t.type?"normal"===r.whitespace?Ea(t,r):[String(t.value)]:[]}(r[o],e,{whitespace:i,breakBefore:o?void 0:a,breakAfter:o<r.length-1?y8(r[o+1]):a}));let l=[];for(o=-1;++o<s.length;){let e=s[o];"number"==typeof e?void 0!==n&&e>n&&(n=e):e&&(void 0!==n&&n>-1&&l.push("\n".repeat(n)||" "),n=-1,l.push(e))}return l.join("")}(f,{whitespace:"pre"});try{l=Es.default.renderToString(g,{...t,displayMode:m,throwOnError:!0})}catch(i){let a=i.name.toLowerCase();n.message("Could not render math with KaTeX",{ancestors:[...r,e],cause:i,place:e.position,ruleId:a,source:"rehype-katex"});try{l=Es.default.renderToString(g,{...t,displayMode:m,strict:"ignore",throwOnError:!1})}catch{l=[{type:"element",tagName:"span",properties:{className:["katex-error"],style:"color:"+(t.errorColor||"#cc0000"),title:String(i)},children:[{type:"text",value:g}]}]}}"string"==typeof l&&(l=(a=l,i={fragment:!0},yJ(i?.fragment?(s=a,(o=document.createElement("template")).innerHTML=s,o.content):y1.parseFromString(a,"text/html"),{})||{type:"root",children:[]}).children);let b=h.children.indexOf(f);return h.children.splice(b,1,...l),hF})}}let Eu=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],Ed={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...Eu,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...Eu],h2:[["className","sr-only"]],img:[...Eu,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...Eu,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...Eu],table:[...Eu],ul:[...Eu,["className","contains-task-list"]],"*":["abbr","accept","acceptCharset","accessKey","action","align","alt","axis","border","cellPadding","cellSpacing","char","charOff","charSet","checked","clear","colSpan","color","cols","compact","coords","dateTime","dir","encType","frame","hSpace","headers","height","hrefLang","htmlFor","id","isMap","itemProp","label","lang","maxLength","media","method","multiple","name","noHref","noShade","noWrap","open","prompt","readOnly","rev","rowSpan","rows","rules","scope","selected","shape","size","span","start","summary","tabIndex","title","useMap","vAlign","value","width"]},clobber:["ariaDescribedBy","ariaLabelledBy","id","name"],clobberPrefix:"user-content-",protocols:{cite:["http","https"],href:["http","https","irc","ircs","mailto","xmpp"],longDesc:["http","https"],src:["http","https"]},required:{input:{disabled:!0,type:"checkbox"}},strip:["script"],tagNames:["a","b","blockquote","br","code","dd","del","details","div","dl","dt","em","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","li","ol","p","picture","pre","q","rp","rt","ruby","s","samp","section","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","tr","tt","ul","var"]},Ep={}.hasOwnProperty;function Em(e,t){if(t&&"object"==typeof t)switch("string"==typeof t.type?t.type:""){case"comment":var n,r,a=e,i=t;if(a.schema.allowComments){let e="string"==typeof i.value?i.value:"",t=e.indexOf("-->"),n={type:"comment",value:t<0?e:e.slice(0,t)};return Eb(n,i),n}return;case"doctype":var s=e,o=t;if(s.schema.allowDoctypes){let e={type:"doctype"};return Eb(e,o),e}return;case"element":return function(e,t){let n="string"==typeof t.tagName?t.tagName:"";e.stack.push(n);let r=Eh(e,t.children),a=function(e,t){let n,r=e.stack[e.stack.length-1],a=e.schema.attributes,i=e.schema.required,s=a&&Ep.call(a,r)?a[r]:void 0,o=a&&Ep.call(a,"*")?a["*"]:void 0,l=t&&"object"==typeof t?t:{},c={};for(n in l)if(Ep.call(l,n)){let t=l[n],r=Ef(e,Ey(s,n),n,t);null==r&&(r=Ef(e,Ey(o,n),n,t)),null!=r&&(c[n]=r)}if(i&&Ep.call(i,r)){let e=i[r];for(n in e)Ep.call(e,n)&&!Ep.call(c,n)&&(c[n]=e[n])}return c}(e,t.properties);e.stack.pop();let i=!1;if(n&&"*"!==n&&(!e.schema.tagNames||e.schema.tagNames.includes(n))&&(i=!0,e.schema.ancestors&&Ep.call(e.schema.ancestors,n))){let t=e.schema.ancestors[n],r=-1;for(i=!1;++r<t.length;)e.stack.includes(t[r])&&(i=!0)}if(!i)return e.schema.strip&&!e.schema.strip.includes(n)?r:void 0;let s={type:"element",tagName:n,properties:a,children:r};return Eb(s,t),s}(e,t);case"root":let l;return Eb(l={type:"root",children:Eh(e,(n=t).children)},n),l;case"text":let c;return Eb(c={type:"text",value:"string"==typeof(r=t).value?r.value:""},r),c}}function Eh(e,t){let n=[];if(Array.isArray(t)){let r=-1;for(;++r<t.length;){let a=Em(e,t[r]);a&&(Array.isArray(a)?n.push(...a):n.push(a))}}return n}function Ef(e,t,n,r){return t?Array.isArray(r)?function(e,t,n,r){let a=-1,i=[];for(;++a<r.length;){let s=Eg(e,t,n,r[a]);("number"==typeof s||"string"==typeof s)&&i.push(s)}return i}(e,t,n,r):Eg(e,t,n,r):void 0}function Eg(e,t,n,r){if(("boolean"==typeof r||"number"==typeof r||"string"==typeof r)&&function(e,t,n){let r=e.schema.protocols&&Ep.call(e.schema.protocols,t)?e.schema.protocols[t]:void 0;if(!r||0===r.length)return!0;let a=String(n),i=a.indexOf(":"),s=a.indexOf("?"),o=a.indexOf("#"),l=a.indexOf("/");if(i<0||l>-1&&i>l||s>-1&&i>s||o>-1&&i>o)return!0;let c=-1;for(;++c<r.length;){let e=r[c];if(i===e.length&&a.slice(0,e.length)===e)return!0}return!1}(e,n,r)){if("object"==typeof t&&t.length>1){let e=!1,n=0;for(;++n<t.length;){let a=t[n];if(a&&"object"==typeof a&&"flags"in a){if(a.test(String(r))){e=!0;break}}else if(a===r){e=!0;break}}if(!e)return}return e.schema.clobber&&e.schema.clobberPrefix&&e.schema.clobber.includes(n)?e.schema.clobberPrefix+r:r}}function Eb(e,t){let n=pW(t);t.data&&(e.data=hI(t.data)),n&&(e.position=n)}function Ey(e,t){let n,r=-1;if(e)for(;++r<e.length;){let a=e[r],i="string"==typeof a?a:a[0];if(i===t)return a;"data*"===i&&(n=a)}if(t.length>4&&"data"===t.slice(0,4).toLowerCase())return n}function EE(e){return function(t){let n,r;return n={type:"root",children:[]},(r=Em({schema:e?{...Ed,...e}:Ed,stack:[]},t))&&(Array.isArray(r)?1===r.length?n=r[0]:n.children=r:n=r),n}}function Ex(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ES(e){return function(e){if(Array.isArray(e))return Ex(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e){if(e){if("string"==typeof e)return Ex(e,void 0);var t=({}).toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Ex(e,void 0):void 0}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ET(e){return(ET="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ev(e,t,n){var r;return(r=function(e,t){if("object"!=ET(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ET(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==ET(r)?r:r+"")in e)?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function EA(){return(EA=Object.assign.bind()).apply(null,arguments)}function E_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ek(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?E_(Object(n),!0).forEach(function(t){Ev(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E_(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var EN={},Ew=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function EI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function EC(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?EI(Object(n),!0).forEach(function(t){Ev(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EI(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var ER=/\n/g;function EO(e){var t,n,r,a,i=e.codeString,s=e.codeStyle,o=e.containerStyle,l=e.numberStyle,c=e.startingLineNumber;return el.default.createElement("code",{style:Object.assign({},s,void 0===o?{float:"left",paddingRight:"10px"}:o)},(n=(t={lines:i.replace(/\n$/,"").split("\n"),style:void 0===l?{}:l,startingLineNumber:c}).lines,r=t.startingLineNumber,a=t.style,n.map(function(e,t){var n=t+r;return el.default.createElement("span",{key:"line-".concat(t),className:"react-syntax-highlighter-line-number",style:"function"==typeof a?a(n):a},"".concat(n,"\n"))})))}function EL(e,t){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(e),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:t},children:[{type:"text",value:e}]}}function ED(e,t,n){var r={display:"inline-block",minWidth:"".concat(n.toString().length,".25em"),paddingRight:"1em",textAlign:"right",userSelect:"none"},a="function"==typeof e?e(t):e;return EC(EC({},r),a)}function EP(e){var t=e.children,n=e.lineNumber,r=e.lineNumberStyle,a=e.largestLineNumber,i=e.showInlineLineNumbers,s=e.lineProps,o=void 0===s?{}:s,l=e.className,c=void 0===l?[]:l,u=e.showLineNumbers,d=e.wrapLongLines,p=e.wrapLines,m=void 0!==p&&p?EC({},"function"==typeof o?o(n):o):{};if(m.className=m.className?[].concat(ES(m.className.trim().split(/\s+/)),ES(c)):c,n&&i){var h=ED(r,n,a);t.unshift(EL(n,h))}return d&u&&(m.style=EC({display:"flex"},m.style)),{type:"element",tagName:"span",properties:m,children:t}}function EM(e){var t=e.rows,n=e.stylesheet,r=e.useInlineStyles;return t.map(function(e,t){return function e(t){var n=t.node,r=t.stylesheet,a=t.style,i=t.useInlineStyles,s=t.key,o=n.properties,l=n.type,c=n.tagName,u=n.value;if("text"===l)return u;if(c){var d,p,m=(d=0,function(t){return d+=1,t.map(function(t,n){return e({node:t,stylesheet:r,useInlineStyles:i,key:"code-segment-".concat(d,"-").concat(n)})})});if(i){var h=Object.keys(r).reduce(function(e,t){return t.split(".").forEach(function(t){e.includes(t)||e.push(t)}),e},[]),f=o.className&&o.className.includes("token")?["token"]:[],g=o.className&&f.concat(o.className.filter(function(e){return!h.includes(e)}));p=Ek(Ek({},o),{},{className:g.join(" ")||void 0,style:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return(function(e){if(0===e.length||1===e.length)return e;var t,n=e.join(".");return EN[n]||(EN[n]=0===(t=e.length)||1===t?e:2===t?[e[0],e[1],"".concat(e[0],".").concat(e[1]),"".concat(e[1],".").concat(e[0])]:3===t?[e[0],e[1],e[2],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0])]:t>=4?[e[0],e[1],e[2],e[3],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[2],".").concat(e[3]),"".concat(e[3],".").concat(e[0]),"".concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[0]),"".concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[3],".").concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[2],".").concat(e[1],".").concat(e[0])]:void 0),EN[n]})(e.filter(function(e){return"token"!==e})).reduce(function(e,t){return Ek(Ek({},e),n[t])},t)}(o.className,Object.assign({},o.style,void 0===a?{}:a),r)})}else p=Ek(Ek({},o),{},{className:o.className.join(" ")});var b=m(n.children);return el.default.createElement(c,EA({key:s},p),b)}}({node:e,stylesheet:n,useInlineStyles:r,key:"code-segment-".concat(t)})})}function EF(e){return e&&void 0!==e.highlightAuto}var Ej=(B=e.i(916907).default,H={'code[class*="language-"]':{color:"black",background:"none",textShadow:"0 1px white",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"black",background:"#f5f2f0",textShadow:"0 1px white",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"]::selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"] ::selection':{textShadow:"none",background:"#b3d4fc"},':not(pre) > code[class*="language-"]':{background:"#f5f2f0",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"slategray"},prolog:{color:"slategray"},doctype:{color:"slategray"},cdata:{color:"slategray"},punctuation:{color:"#999"},namespace:{Opacity:".7"},property:{color:"#905"},tag:{color:"#905"},boolean:{color:"#905"},number:{color:"#905"},constant:{color:"#905"},symbol:{color:"#905"},deleted:{color:"#905"},selector:{color:"#690"},"attr-name":{color:"#690"},string:{color:"#690"},char:{color:"#690"},builtin:{color:"#690"},inserted:{color:"#690"},operator:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},entity:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)",cursor:"help"},url:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".language-css .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".style .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},atrule:{color:"#07a"},"attr-value":{color:"#07a"},keyword:{color:"#07a"},function:{color:"#DD4A68"},"class-name":{color:"#DD4A68"},regex:{color:"#e90"},important:{color:"#e90",fontWeight:"bold"},variable:{color:"#e90"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}},function(e){var t,n,r=e.language,a=e.children,i=e.style,s=void 0===i?H:i,o=e.customStyle,l=void 0===o?{}:o,c=e.codeTagProps,u=void 0===c?{className:r?"language-".concat(r):void 0,style:EC(EC({},s['code[class*="language-"]']),s['code[class*="language-'.concat(r,'"]')])}:c,d=e.useInlineStyles,p=void 0===d||d,m=e.showLineNumbers,h=void 0!==m&&m,f=e.showInlineLineNumbers,g=void 0===f||f,b=e.startingLineNumber,y=void 0===b?1:b,E=e.lineNumberContainerStyle,x=e.lineNumberStyle,S=void 0===x?{}:x,T=e.wrapLines,v=e.wrapLongLines,A=void 0!==v&&v,_=e.lineProps,k=e.renderer,N=e.PreTag,w=void 0===N?"pre":N,I=e.CodeTag,C=void 0===I?"code":I,R=e.code,O=void 0===R?(Array.isArray(a)?a[0]:a)||"":R,L=e.astGenerator,D=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&({}).propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,Ew);L=L||B;var P=h?el.default.createElement(EO,{containerStyle:E,codeStyle:u.style||{},numberStyle:S,startingLineNumber:y,codeString:O}):null,M=s.hljs||s['pre[class*="language-"]']||{backgroundColor:"#fff"},F=EF(L)?"hljs":"prismjs",j=p?Object.assign({},D,{style:Object.assign({},M,l)}):Object.assign({},D,{className:D.className?"".concat(F," ").concat(D.className):F,style:Object.assign({},l)});if(A?u.style=EC({whiteSpace:"pre-wrap"},u.style):u.style=EC({whiteSpace:"pre"},u.style),!L)return el.default.createElement(w,j,P,el.default.createElement(C,u,O));(void 0===T&&k||A)&&(T=!0),k=k||EM;var U=[{type:"text",value:O}],z=function(e){var t=e.astGenerator,n=e.language,r=e.code,a=e.defaultCodeValue;if(EF(t)){var i=-1!==t.listLanguages().indexOf(n);return"text"===n?{value:a,language:"text"}:i?t.highlight(n,r):t.highlightAuto(r)}try{return n&&"text"!==n?{value:t.highlight(r,n)}:{value:a}}catch(e){return{value:a}}}({astGenerator:L,language:r,code:O,defaultCodeValue:U});null===z.language&&(z.value=U);var G=y+(null!=(t=null==(n=O.match(/\n/g))?void 0:n.length)?t:0),$=function(e,t,n,r,a,i,s,o,l){var c,u=function e(t){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],a=0;a<t.length;a++){var i=t[a];if("text"===i.type)r.push(EP({children:[i],className:ES(new Set(n))}));else if(i.children){var s=n.concat(i.properties.className);e(i.children,s).forEach(function(e){return r.push(e)})}}return r}(e.value),d=[],p=-1,m=0;function h(e,i){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return t||c.length>0?function(e,i){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return EP({children:e,lineNumber:i,lineNumberStyle:o,largestLineNumber:s,showInlineLineNumbers:a,lineProps:n,className:c,showLineNumbers:r,wrapLongLines:l,wrapLines:t})}(e,i,c):function(e,t){if(r&&t&&a){var n=ED(o,t,s);e.unshift(EL(t,n))}return e}(e,i)}for(;m<u.length;)!function(){var e=u[m],t=e.children[0].value;if(t.match(ER)){var n=t.split("\n");n.forEach(function(t,a){var s=r&&d.length+i,o={type:"text",value:"".concat(t,"\n")};if(0===a){var l=h(u.slice(p+1,m).concat(EP({children:[o],className:e.properties.className})),s);d.push(l)}else if(a===n.length-1){var c=u[m+1]&&u[m+1].children&&u[m+1].children[0],f={type:"text",value:"".concat(t)};if(c){var g=EP({children:[f],className:e.properties.className});u.splice(m+1,0,g)}else{var b=h([f],s,e.properties.className);d.push(b)}}else{var y=h([o],s,e.properties.className);d.push(y)}}),p=m}m++}();if(p!==u.length-1){var f=u.slice(p+1,u.length);if(f&&f.length){var g=h(f,r&&d.length+i);d.push(g)}}return t?d:(c=[]).concat.apply(c,d)}(z,T,void 0===_?{}:_,h,g,y,G,S,A);return el.default.createElement(w,j,el.default.createElement(C,u,!g&&P,k({rows:$,stylesheet:s,useInlineStyles:p})))});Ej.supportedLanguages=["abap","abnf","actionscript","ada","agda","al","antlr4","apacheconf","apex","apl","applescript","aql","arduino","arff","asciidoc","asm6502","asmatmel","aspnet","autohotkey","autoit","avisynth","avro-idl","bash","basic","batch","bbcode","bicep","birb","bison","bnf","brainfuck","brightscript","bro","bsl","c","cfscript","chaiscript","cil","clike","clojure","cmake","cobol","coffeescript","concurnas","coq","cpp","crystal","csharp","cshtml","csp","css-extras","css","csv","cypher","d","dart","dataweave","dax","dhall","diff","django","dns-zone-file","docker","dot","ebnf","editorconfig","eiffel","ejs","elixir","elm","erb","erlang","etlua","excel-formula","factor","false","firestore-security-rules","flow","fortran","fsharp","ftl","gap","gcode","gdscript","gedcom","gherkin","git","glsl","gml","gn","go-module","go","graphql","groovy","haml","handlebars","haskell","haxe","hcl","hlsl","hoon","hpkp","hsts","http","ichigojam","icon","icu-message-format","idris","iecst","ignore","inform7","ini","io","j","java","javadoc","javadoclike","javascript","javastacktrace","jexl","jolie","jq","js-extras","js-templates","jsdoc","json","json5","jsonp","jsstacktrace","jsx","julia","keepalived","keyman","kotlin","kumir","kusto","latex","latte","less","lilypond","liquid","lisp","livescript","llvm","log","lolcode","lua","magma","makefile","markdown","markup-templating","markup","matlab","maxscript","mel","mermaid","mizar","mongodb","monkey","moonscript","n1ql","n4js","nand2tetris-hdl","naniscript","nasm","neon","nevod","nginx","nim","nix","nsis","objectivec","ocaml","opencl","openqasm","oz","parigp","parser","pascal","pascaligo","pcaxis","peoplecode","perl","php-extras","php","phpdoc","plsql","powerquery","powershell","processing","prolog","promql","properties","protobuf","psl","pug","puppet","pure","purebasic","purescript","python","q","qml","qore","qsharp","r","racket","reason","regex","rego","renpy","rest","rip","roboconf","robotframework","ruby","rust","sas","sass","scala","scheme","scss","shell-session","smali","smalltalk","smarty","sml","solidity","solution-file","soy","sparql","splunk-spl","sqf","sql","squirrel","stan","stylus","swift","systemd","t4-cs","t4-templating","t4-vb","tap","tcl","textile","toml","tremor","tsx","tt2","turtle","twig","typescript","typoscript","unrealscript","uorazor","uri","v","vala","vbnet","velocity","verilog","vhdl","vim","visual-basic","warpscript","wasm","web-idl","wiki","wolfram","wren","xeora","xml-doc","xojo","xquery","yaml","yang","zig"];let EU={'code[class*="language-"]':{background:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{background:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto",borderRadius:"0.3em"},'code[class*="language-"]::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"] *::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'pre[class*="language-"] *::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"]::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"] *::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'pre[class*="language-"] *::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},':not(pre) > code[class*="language-"]':{padding:"0.2em 0.3em",borderRadius:"0.3em",whiteSpace:"normal"},comment:{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},prolog:{color:"hsl(220, 10%, 40%)"},cdata:{color:"hsl(220, 10%, 40%)"},doctype:{color:"hsl(220, 14%, 71%)"},punctuation:{color:"hsl(220, 14%, 71%)"},entity:{color:"hsl(220, 14%, 71%)",cursor:"help"},"attr-name":{color:"hsl(29, 54%, 61%)"},"class-name":{color:"hsl(29, 54%, 61%)"},boolean:{color:"hsl(29, 54%, 61%)"},constant:{color:"hsl(29, 54%, 61%)"},number:{color:"hsl(29, 54%, 61%)"},atrule:{color:"hsl(29, 54%, 61%)"},keyword:{color:"hsl(286, 60%, 67%)"},property:{color:"hsl(355, 65%, 65%)"},tag:{color:"hsl(355, 65%, 65%)"},symbol:{color:"hsl(355, 65%, 65%)"},deleted:{color:"hsl(355, 65%, 65%)"},important:{color:"hsl(355, 65%, 65%)"},selector:{color:"hsl(95, 38%, 62%)"},string:{color:"hsl(95, 38%, 62%)"},char:{color:"hsl(95, 38%, 62%)"},builtin:{color:"hsl(95, 38%, 62%)"},inserted:{color:"hsl(95, 38%, 62%)"},regex:{color:"hsl(95, 38%, 62%)"},"attr-value":{color:"hsl(95, 38%, 62%)"},"attr-value > .token.punctuation":{color:"hsl(95, 38%, 62%)"},variable:{color:"hsl(207, 82%, 66%)"},operator:{color:"hsl(207, 82%, 66%)"},function:{color:"hsl(207, 82%, 66%)"},url:{color:"hsl(187, 47%, 55%)"},"attr-value > .token.punctuation.attr-equals":{color:"hsl(220, 14%, 71%)"},"special-attr > .token.attr-value > .token.value.css":{color:"hsl(220, 14%, 71%)"},".language-css .token.selector":{color:"hsl(355, 65%, 65%)"},".language-css .token.property":{color:"hsl(220, 14%, 71%)"},".language-css .token.function":{color:"hsl(187, 47%, 55%)"},".language-css .token.url > .token.function":{color:"hsl(187, 47%, 55%)"},".language-css .token.url > .token.string.url":{color:"hsl(95, 38%, 62%)"},".language-css .token.important":{color:"hsl(286, 60%, 67%)"},".language-css .token.atrule .token.rule":{color:"hsl(286, 60%, 67%)"},".language-javascript .token.operator":{color:"hsl(286, 60%, 67%)"},".language-javascript .token.template-string > .token.interpolation > .token.interpolation-punctuation.punctuation":{color:"hsl(5, 48%, 51%)"},".language-json .token.operator":{color:"hsl(220, 14%, 71%)"},".language-json .token.null.keyword":{color:"hsl(29, 54%, 61%)"},".language-markdown .token.url":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url > .token.operator":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url-reference.url > .token.string":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url > .token.content":{color:"hsl(207, 82%, 66%)"},".language-markdown .token.url > .token.url":{color:"hsl(187, 47%, 55%)"},".language-markdown .token.url-reference.url":{color:"hsl(187, 47%, 55%)"},".language-markdown .token.blockquote.punctuation":{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},".language-markdown .token.hr.punctuation":{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},".language-markdown .token.code-snippet":{color:"hsl(95, 38%, 62%)"},".language-markdown .token.bold .token.content":{color:"hsl(29, 54%, 61%)"},".language-markdown .token.italic .token.content":{color:"hsl(286, 60%, 67%)"},".language-markdown .token.strike .token.content":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.strike .token.punctuation":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.list.punctuation":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.title.important > .token.punctuation":{color:"hsl(355, 65%, 65%)"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},namespace:{Opacity:"0.8"},"token.tab:not(:empty):before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.cr:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.lf:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.space:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item":{marginRight:"0.4em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},".line-highlight.line-highlight":{background:"hsla(220, 100%, 80%, 0.04)"},".line-highlight.line-highlight:before":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 14%, 71%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},".line-highlight.line-highlight[data-end]:after":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 14%, 71%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},"pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before":{backgroundColor:"hsla(220, 100%, 80%, 0.04)"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"hsla(220, 14%, 71%, 0.15)"},".command-line .command-line-prompt":{borderRightColor:"hsla(220, 14%, 71%, 0.15)"},".line-numbers .line-numbers-rows > span:before":{color:"hsl(220, 14%, 45%)"},".command-line .command-line-prompt > span:before":{color:"hsl(220, 14%, 45%)"},".rainbow-braces .token.token.punctuation.brace-level-1":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-5":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-9":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-2":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-6":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-10":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-3":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-7":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-11":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-4":{color:"hsl(286, 60%, 67%)"},".rainbow-braces .token.token.punctuation.brace-level-8":{color:"hsl(286, 60%, 67%)"},".rainbow-braces .token.token.punctuation.brace-level-12":{color:"hsl(286, 60%, 67%)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},".prism-previewer.prism-previewer:before":{borderColor:"hsl(224, 13%, 17%)"},".prism-previewer-gradient.prism-previewer-gradient div":{borderColor:"hsl(224, 13%, 17%)",borderRadius:"0.3em"},".prism-previewer-color.prism-previewer-color:before":{borderRadius:"0.3em"},".prism-previewer-easing.prism-previewer-easing:before":{borderRadius:"0.3em"},".prism-previewer.prism-previewer:after":{borderTopColor:"hsl(224, 13%, 17%)"},".prism-previewer-flipped.prism-previewer-flipped.after":{borderBottomColor:"hsl(224, 13%, 17%)"},".prism-previewer-angle.prism-previewer-angle:before":{background:"hsl(219, 13%, 22%)"},".prism-previewer-time.prism-previewer-time:before":{background:"hsl(219, 13%, 22%)"},".prism-previewer-easing.prism-previewer-easing":{background:"hsl(219, 13%, 22%)"},".prism-previewer-angle.prism-previewer-angle circle":{stroke:"hsl(220, 14%, 71%)",strokeOpacity:"1"},".prism-previewer-time.prism-previewer-time circle":{stroke:"hsl(220, 14%, 71%)",strokeOpacity:"1"},".prism-previewer-easing.prism-previewer-easing circle":{stroke:"hsl(220, 14%, 71%)",fill:"transparent"},".prism-previewer-easing.prism-previewer-easing path":{stroke:"hsl(220, 14%, 71%)"},".prism-previewer-easing.prism-previewer-easing line":{stroke:"hsl(220, 14%, 71%)"}},EB=nf("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);async function EH(e){try{if("u">typeof navigator&&navigator.clipboard?.writeText)return await navigator.clipboard.writeText(e),!0}catch{}try{if("u"<typeof document)return!1;let t=document.createElement("textarea");t.value=e,t.setAttribute("readonly",""),t.style.position="fixed",t.style.top="-9999px",t.style.opacity="0",document.body.appendChild(t);try{return t.select(),t.setSelectionRange(0,e.length),document.execCommand("copy")}finally{t.remove()}}catch{return!1}}let Ez=el.default.memo(({language:e,value:t})=>{let[n,r]=(0,el.useState)(!1),a=(0,el.useRef)(void 0);(0,el.useEffect)(()=>()=>{a.current&&clearTimeout(a.current)},[]),(0,el.useEffect)(()=>{r(!1),a.current&&clearTimeout(a.current)},[t]);let i=(0,el.useCallback)(async()=>{await EH(t)?(r(!0),a.current&&clearTimeout(a.current),a.current=setTimeout(()=>r(!1),2e3)):u5.toast.error("Couldn't copy to clipboard.")},[t]);return(0,eo.jsxs)("div",{className:"group relative max-w-full",children:[(0,eo.jsx)("button",{type:"button",onClick:i,"aria-label":n?"Copied":"Copy code",className:"absolute right-2 top-2 z-10 rounded-md border border-border bg-[var(--color-surface)] p-1.5 text-[var(--color-text-tertiary)] opacity-0 backdrop-blur-sm transition-opacity hover:text-[var(--color-text-primary)] focus-visible:opacity-100 focus-visible:ring-2 focus-visible:ring-ring group-hover:opacity-100",children:n?(0,eo.jsx)(cO,{className:"h-3.5 w-3.5","aria-hidden":"true"}):(0,eo.jsx)(EB,{className:"h-3.5 w-3.5","aria-hidden":"true"})}),(0,eo.jsx)(Ej,{style:EU,language:e,PreTag:"div",className:"max-w-full rounded-md text-sm",wrapLines:!0,wrapLongLines:!0,lineProps:{style:{wordBreak:"break-all",whiteSpace:"pre-wrap",overflowWrap:"break-word"}},customStyle:{margin:0,maxWidth:"100%",overflowX:"auto",fontSize:"0.875rem"},children:t})]})});Ez.displayName="CodeBlock";let EG=nf("rotate-ccw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]),E$=nf("zoom-in",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14",key:"1vmskp"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]),Eq=nf("zoom-out",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]);var EV=e.i(921675);let EW=null,EY=Promise.resolve();async function EK(t,n,r){let a=EY.then(async()=>{let a=await (!EW&&(EW=e.A(695802).then(e=>e.default)),EW);if(a.initialize({startOnLoad:!1,theme:r,securityLevel:"strict"}),!await a.parse(n,{suppressErrors:!0}))return null;let{svg:i}=await a.render(t,n);return i});return EY=a.catch(()=>void 0),a}let EX=el.default.memo(({code:e,isStreaming:t=!1})=>{let n=(0,el.useId)().replace(/:/g,""),{resolvedTheme:r}=(0,EV.useTheme)(),a="dark"===r?"dark":"default",[i,s]=(0,el.useState)(null);return((0,el.useEffect)(()=>{if(t)return;let r=!1;return s(null),EK(`mermaid-${n}`,e,a).then(e=>{r||s(e)}).catch(()=>{r||s(null)}),()=>{r=!0}},[e,n,t,a]),t)?(0,eo.jsx)("pre",{className:"my-4 max-w-full overflow-x-auto whitespace-pre-wrap break-words rounded-md bg-[var(--color-surface)] p-3 text-xs text-[var(--color-text-tertiary)]",children:(0,eo.jsx)("code",{children:e})}):i?(0,eo.jsx)(EZ,{svg:i}):(0,eo.jsx)(Ez,{language:"mermaid",value:e})});EX.displayName="MermaidDiagram";let EZ=el.default.memo(({svg:e})=>{let[t,n]=(0,el.useState)(!1),[r,a]=(0,el.useState)(1),i=Math.round(100*r);return(0,el.useEffect)(()=>{t&&a(1)},[t]),(0,eo.jsxs)(eo.Fragment,{children:[(0,eo.jsx)("button",{type:"button","aria-label":"Open diagram in full view","aria-haspopup":"dialog",onClick:()=>n(!0),className:"my-4 block max-w-full cursor-zoom-in overflow-x-auto rounded-md bg-[var(--color-surface)] p-4 text-left transition-shadow hover:ring-2 hover:ring-primary/40 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary",dangerouslySetInnerHTML:{__html:e}}),(0,eo.jsx)(n4,{open:t,onOpenChange:n,children:(0,eo.jsxs)(n9,{className:"max-h-[calc(100svh-1rem)] w-[calc(100vw-1rem)] max-w-[calc(100vw-1rem)] overflow-auto p-3 sm:max-h-[92vh] sm:w-[min(1200px,95vw)] sm:max-w-[95vw] sm:p-4",children:[(0,eo.jsx)(re,{className:"sr-only",children:"Mermaid diagram"}),(0,eo.jsx)(rt,{className:"sr-only",children:"Full-size preview of the generated Mermaid diagram."}),(0,eo.jsxs)("div",{className:"sticky top-0 z-10 -mx-1 -mt-1 mb-2 flex items-center justify-end gap-1 bg-background/95 pb-2 pr-8 backdrop-blur",children:[(0,eo.jsx)("button",{type:"button",onClick:()=>a(e=>Math.max(.75,e-.25)),disabled:r<=.75,"aria-label":"Zoom out",className:"inline-flex size-8 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-accent hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-40",children:(0,eo.jsx)(Eq,{className:"size-4","aria-hidden":"true"})}),(0,eo.jsxs)("span",{className:"min-w-12 text-center text-xs font-medium tabular-nums text-muted-foreground","aria-live":"polite",children:[i,"%"]}),(0,eo.jsx)("button",{type:"button",onClick:()=>a(e=>Math.min(2.5,e+.25)),disabled:r>=2.5,"aria-label":"Zoom in",className:"inline-flex size-8 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-accent hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-40",children:(0,eo.jsx)(E$,{className:"size-4","aria-hidden":"true"})}),(0,eo.jsx)("button",{type:"button",onClick:()=>a(1),"aria-label":"Reset zoom",className:"inline-flex size-8 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-accent hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring",children:(0,eo.jsx)(EG,{className:"size-4","aria-hidden":"true"})})]}),(0,eo.jsx)("div",{className:"min-w-full overflow-auto rounded-md bg-[var(--color-surface)] p-3",children:(0,eo.jsx)("div",{className:"[&_svg]:!h-auto [&_svg]:!w-full [&_svg]:!max-w-none",style:{width:`${i}%`},dangerouslySetInnerHTML:{__html:e}})})]})})]})});EZ.displayName="MermaidPreview";let EQ=new Set(["md","txt","json","jsonl","yaml","yml","csv","tsv","log","py","ts","tsx","js","jsx","html","css","sh","pdf","png","jpg","jpeg","gif","svg","webp","mp3","wav","mp4","mov"]);function EJ(e){let t=e.trim();if(!t||/\s/.test(t)||/^[a-z][a-z0-9+.-]*:/i.test(t)||!t.includes("/"))return null;let n=t.lastIndexOf(".");if(n<=t.lastIndexOf("/"))return null;let r=t.slice(n+1).toLowerCase();if(!EQ.has(r))return null;if(t.startsWith("/memories/"))return{kind:"memory",display:t,path:t.replace(/^\/memories\/+/,"")};let a=t.replace(/^\/+/,"").replace(/^\.\/+/,"");return{kind:"workspace",display:t,path:a}}let E0="evosci:open-file";function E1(e){window.dispatchEvent(new CustomEvent(E0,{detail:e}))}let E2="#evosci-file:",E3=Array.from(EQ).join("|"),E4=RegExp(`(?:\\/(?:[\\w\\-.]+\\/)*|(?:[\\w\\-.]+\\/)+)[\\w\\-.]+\\.(?:${E3})\\b`,"g"),E5=new Set(["a","code","pre","script","style","kbd","samp"]);function E6(){let e=t=>{if(!t.children||0===t.children.length)return;let n=[];for(let r of t.children){let t;if("element"===r.type&&E5.has(r.tagName??"")){n.push(r);continue}if("element"===r.type){e(r),n.push(r);continue}if("text"!==r.type||"string"!=typeof r.value){n.push(r);continue}let a=r.value;E4.lastIndex=0;let i=0,s=!1;for(;null!==(t=E4.exec(a));)s=!0,t.index>i&&n.push({type:"text",value:a.slice(i,t.index)}),n.push({type:"element",tagName:"a",properties:{href:`${E2}${encodeURIComponent(t[0])}`},children:[{type:"text",value:t[0]}]}),i=t.index+t[0].length;if(!s){n.push(r);continue}i<a.length&&n.push({type:"text",value:a.slice(i)})}t.children=n};return t=>e(t)}let E9={...Ed,attributes:{...Ed.attributes,code:[...Ed.attributes?.code||[],["className","math-inline","math-display"]]}},E8=el.default.memo(({content:e,className:t="",isStreaming:n=!1})=>(0,eo.jsx)("div",{className:n3("prose min-w-0 max-w-full overflow-hidden break-words text-sm leading-relaxed text-inherit [&_h1:first-child]:mt-0 [&_h1]:mb-4 [&_h1]:mt-6 [&_h1]:font-semibold [&_h2:first-child]:mt-0 [&_h2]:mb-4 [&_h2]:mt-6 [&_h2]:font-semibold [&_h3:first-child]:mt-0 [&_h3]:mb-4 [&_h3]:mt-6 [&_h3]:font-semibold [&_h4:first-child]:mt-0 [&_h4]:mb-4 [&_h4]:mt-6 [&_h4]:font-semibold [&_h5:first-child]:mt-0 [&_h5]:mb-4 [&_h5]:mt-6 [&_h5]:font-semibold [&_h6:first-child]:mt-0 [&_h6]:mb-4 [&_h6]:mt-6 [&_h6]:font-semibold [&_p:last-child]:mb-0 [&_p]:mb-4",t),children:(0,eo.jsx)(fb,{remarkPlugins:[gw,gD],rehypePlugins:[yW,E6,[EE,E9],[Ec,{throwOnError:!1,strict:!1}]],components:{code({className:e,children:t,...r}){let a=/language-(\w+)/.exec(e||""),i=String(t),s=i.endsWith("\n"),o=i.replace(/\n$/,"");if(a?.[1]==="mermaid")return(0,eo.jsx)(EX,{code:o,isStreaming:n});if(a)return(0,eo.jsx)(Ez,{language:a[1],value:o});let l=s?null:EJ(o);return l?(0,eo.jsx)("button",{type:"button",onClick:()=>E1(l),title:`Open ${l.display}`,className:"rounded-sm bg-[var(--color-surface)] px-1 py-0.5 font-mono text-[0.9em] text-primary underline underline-offset-2 hover:bg-accent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:l.display}):(0,eo.jsx)("code",{className:"rounded-sm bg-[var(--color-surface)] px-1 py-0.5 font-mono text-[0.9em]",...r,children:t})},pre:({children:e})=>(0,eo.jsx)("div",{className:"my-4 max-w-full overflow-hidden last:mb-0",children:e}),a({href:e,children:t}){if(e&&e.startsWith(E2)){let n,r=e.slice(E2.length);try{n=decodeURIComponent(r)}catch{n=r}let a=EJ(n);return a?(0,eo.jsx)("button",{type:"button",onClick:()=>E1(a),title:`Open ${a.display}`,className:"text-primary underline underline-offset-2 hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:t}):(0,eo.jsx)("span",{children:t})}return(0,eo.jsx)("a",{href:e,target:"_blank",rel:"noopener noreferrer",className:"text-primary no-underline hover:underline",children:t})},blockquote:({children:e})=>(0,eo.jsx)("blockquote",{className:"my-4 border-l-4 border-border pl-4 italic text-[var(--color-text-tertiary)]",children:e}),ul:({children:e})=>(0,eo.jsx)("ul",{className:"my-4 list-disc pl-6 [&>li:last-child]:mb-0 [&>li]:mb-1",children:e}),ol:({children:e})=>(0,eo.jsx)("ol",{className:"my-4 list-decimal pl-6 [&>li:last-child]:mb-0 [&>li]:mb-1",children:e}),details:({children:e,...t})=>(0,eo.jsx)("details",{...t,className:"my-4 rounded-md border border-border bg-[var(--color-surface)] px-3 py-2 [&[open]>summary]:mb-2",children:e}),summary:({children:e,...t})=>(0,eo.jsx)("summary",{...t,className:"cursor-pointer select-none font-medium text-[var(--color-text-primary)] hover:text-[var(--color-text-secondary)]",children:e}),table:({children:e})=>(0,eo.jsx)("div",{className:"my-4 overflow-x-auto",children:(0,eo.jsx)("table",{className:"w-full border-collapse [&_td]:border [&_td]:border-border [&_td]:p-2 [&_th]:border [&_th]:border-border [&_th]:bg-[var(--color-surface)] [&_th]:p-2 [&_th]:text-left [&_th]:font-semibold",children:e})})},children:e})}));function E7({steps:e,hideFinalText:t,compact:n=!1}){let r=new Map;for(let t of e)"tool_result"===t.kind&&t.toolCallId&&r.set(t.toolCallId,t.text);let a=-1;if(t){for(let t=e.length-1;t>=0;t--)if("text"===e[t].kind){a=t;break}}return(0,eo.jsx)("div",{className:n3("flex flex-col gap-1",n&&"gap-0.5"),children:e.map((e,t)=>{if(t===a)return null;if("tool_call"===e.kind){let a={id:e.id,name:e.name,args:e.args,result:r.get(e.id),status:r.has(e.id)?"completed":"pending"};return(0,eo.jsx)(d6,{toolCall:a,compact:n},e.id||`tc-${t}`)}return"text"===e.kind?(0,eo.jsx)("div",{className:n3("px-2 text-sm",n&&"px-1 text-xs"),children:(0,eo.jsx)(E8,{content:e.text,className:n?"text-xs leading-5 [&_blockquote]:my-2 [&_blockquote]:pl-2 [&_h1]:mb-2 [&_h1]:mt-3 [&_h1]:text-base [&_h2]:mb-2 [&_h2]:mt-3 [&_h2]:text-base [&_h3]:mb-1.5 [&_h3]:mt-3 [&_h3]:text-sm [&_h4]:mb-1.5 [&_h4]:mt-3 [&_h4]:text-sm [&_ol]:my-2 [&_ol]:pl-5 [&_p]:mb-2 [&_table]:text-[11px] [&_td]:p-1.5 [&_th]:p-1.5 [&_ul]:my-2 [&_ul]:pl-5":void 0})},`txt-${t}`):null})})}function xe(e){switch(e){case"running":case"pending":case"busy":return"running";case"success":return"success";case"error":case"timeout":return"error";case"cancelled":case"interrupted":return"cancelled";case"expired":return"expired";default:return"unknown"}}E8.displayName="MarkdownContent";let xt={"writing-agent":"Writing agent","data-analysis-agent":"Data analysis agent"},xn="[Async tasks update]";function xr(e){return`${e.task_id}:${e.run_id||"legacy"}`}function xa(e){let t=e.trim().split(/\r?\n/);if(t[0]!==xn||!t[1])return null;try{let e=JSON.parse(t[1]);if("string"!=typeof e.task_id||!e.task_id)return null;return{taskId:e.task_id,runId:"string"==typeof e.run_id&&e.run_id?e.run_id:void 0}}catch{return null}}function xi(e,t){let n=xa(e);return!!n&&n.taskId===t.task_id&&(!n.runId||n.runId===t.run_id)}function xs(e){let t=e.liveStatus||e.status||"success";return[xn,JSON.stringify({agent:e.agent_name,kind:"agent",...e.run_id?{run_id:e.run_id}:{},status:t,task_id:e.task_id}),"(Signal only — fetch full result via check_async_task (sub-agents) if relevant to the current step, else acknowledge & continue.)"].join("\n")}let xo={running:{dot:"bg-[var(--color-warning)]",label:"Running",pulse:!0},success:{dot:"bg-[var(--color-success)]",label:"Done",pulse:!1},error:{dot:"bg-[var(--color-error)]",label:"Error",pulse:!1},cancelled:{dot:"bg-muted-foreground",label:"Cancelled",pulse:!1},expired:{dot:"bg-muted-foreground",label:"Expired",pulse:!1},unknown:{dot:"bg-muted-foreground",label:"Unknown",pulse:!1}};function xl(e){let t=xe(e);return"success"===t||"error"===t||"cancelled"===t}function xc(e){return e.filter(e=>"running"===xe(e.liveStatus??e.status)).length}function xu(e,t){if(!e)return"";let n=Date.parse(e);if(Number.isNaN(n))return"";let r=Math.max(0,Math.round((t-n)/1e3)),a=Math.floor(r/60);if(a>=60){let e=Math.floor(a/60);return`${e}h ${a%60}m`}return a>0?`${a}m ${r%60}s`:`${r}s`}let xd=nf("bell",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]]),xp=nf("brain",[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]]),xm=nf("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),xh=new Set(["stop","tool_calls","function_call","end_turn","tool_use"]),xf=el.default.memo(({message:e,toolCalls:t,isLoading:n,isStreaming:r,actionRequests:a,submittedActionRequestKeys:i,onActionRequestSubmitted:s,reviewConfigsMap:o,ui:l,stream:c,onResumeInterrupt:u,graphId:d,onEditMessage:p,autoApprove:m,subAgentSteps:h})=>{let f="human"===e.type,g=dA(e),b=g&&""!==g.trim(),y=t.length>0,E=(0,el.useMemo)(()=>{let t=e.additional_kwargs?.reasoning_content;return"string"==typeof t&&t.trim()?t.trim():null},[e.additional_kwargs]),x=(0,el.useMemo)(()=>{if(f)return null;let t=e.response_metadata?.finish_reason;return"string"!=typeof t||!t||xh.has(function(e){let t=e.toLowerCase();for(let e of xh)if(t!==e&&t.length%e.length==0){let n=t.length/e.length;if(n>1&&e.repeat(n)===t)return e}return t}(t))?null:{finishReason:t,variant:b||y?"partial":"missing"}},[f,b,y,e.response_metadata]),S=(0,el.useMemo)(()=>t.filter(e=>"task"===e.name&&e.args.subagent_type&&""!==e.args.subagent_type&&null!==e.args.subagent_type).map(e=>{let t=e.args.subagent_type;return{id:e.id,name:e.name,subAgentName:t,input:e.args,output:void 0!==e.result&&null!==e.result?{result:e.result}:void 0,status:e.status}}),[t]),T=(0,el.useMemo)(()=>{let e=new Map;if(!a||0===a.length)return e;let n=new Map;a.forEach((e,t)=>{let r=n.get(e.name),a={actionRequest:e,actionIndex:t};r?r.push(a):n.set(e.name,[a])});let r=new Map;for(let a of t){if("interrupted"!==a.status)continue;let t=n.get(a.name);if(!t)continue;let i=r.get(a.name)??0;i<t.length&&(e.set(a.id,t[i]),r.set(a.name,i+1))}return e},[a,t]),v=(0,el.useMemo)(()=>dv((a??[]).map(e=>({name:e.name,args:e.args})),0),[a]),A=(0,el.useRef)({});(0,el.useEffect)(()=>{A.current={}},[v]);let _=(0,el.useCallback)((e,t)=>{let n=t?.decisions;if(!Array.isArray(n)||!a?.length||1===a.length||n.length===a.length)return void u?.(t);let r=n[0],i={...A.current,[e]:r};A.current=i,a.every((e,t)=>i[t])&&(A.current={},u?.({decisions:a.map((e,t)=>i[t])}))},[a,u]),[k,N]=(0,el.useState)(!1),[w,I]=(0,el.useState)(!1),C=(0,el.useRef)(void 0);(0,el.useEffect)(()=>()=>{C.current&&clearTimeout(C.current)},[]),(0,el.useEffect)(()=>{I(!1),C.current&&clearTimeout(C.current)},[g]);let R=(0,el.useCallback)(async()=>{g&&(await EH(g)?(I(!0),C.current&&clearTimeout(C.current),C.current=setTimeout(()=>I(!1),2e3)):u5.toast.error("Couldn't copy to clipboard."))},[g]),[O,L]=(0,el.useState)({}),D=(0,el.useCallback)(e=>O[e]??!1,[O]),P=(0,el.useCallback)(e=>{L(t=>({...t,[e]:!t[e]}))},[]);return f&&null!==xa(g)?(0,eo.jsx)("div",{className:"flex w-full justify-center py-1.5",children:(0,eo.jsxs)("span",{className:"inline-flex items-center gap-1.5 rounded-full border border-border bg-muted/40 px-3 py-1 text-xs text-muted-foreground",children:[(0,eo.jsx)(xd,{className:"size-3 text-[var(--brand)]","aria-hidden":"true"}),"Background agent reported back"]})}):(0,eo.jsx)("div",{className:n3("group flex w-full max-w-full overflow-x-hidden",f&&"flex-row-reverse"),children:(0,eo.jsxs)("div",{className:n3("min-w-0 max-w-full",f?"max-w-[70%]":"w-full"),children:[!f&&E&&(0,eo.jsxs)("div",{className:"mt-4",children:[(0,eo.jsxs)("button",{type:"button",onClick:()=>N(e=>!e),"aria-expanded":k,className:"flex items-center gap-1.5 text-xs font-medium text-muted-foreground hover:text-foreground",children:[(0,eo.jsx)(xm,{className:n3("h-3.5 w-3.5 transition-transform",k&&"rotate-90"),"aria-hidden":"true"}),(0,eo.jsx)(xp,{className:"h-3.5 w-3.5","aria-hidden":"true"}),"Thinking"]}),k&&(0,eo.jsx)("div",{className:"mt-2 whitespace-pre-wrap break-words border-l-2 border-border pl-3 text-sm leading-relaxed text-muted-foreground",children:E})]}),x&&"missing"===x.variant&&(0,eo.jsxs)("div",{className:"mt-4 flex items-start gap-2 rounded-md border border-destructive/30 bg-destructive/5 px-3 py-2 text-sm text-foreground",children:[(0,eo.jsx)(dB,{className:"mt-0.5 h-4 w-4 shrink-0 text-destructive","aria-hidden":"true"}),(0,eo.jsxs)("span",{children:["This turn ended without a response (",(0,eo.jsx)("span",{className:"font-mono text-xs",children:x.finishReason}),"). Re-send your last message to try again."]})]}),b&&(0,eo.jsx)("div",{className:n3("relative flex items-end gap-0"),children:(0,eo.jsx)("div",{className:n3("mt-4 overflow-hidden break-words text-sm font-normal leading-[150%]",f?"rounded-xl rounded-br-none border border-border px-3 py-2 text-foreground":"text-primary"),style:f?{backgroundColor:"var(--color-user-message-bg)"}:void 0,children:f?(0,eo.jsx)("p",{className:"m-0 whitespace-pre-wrap break-words text-sm leading-relaxed",children:g}):b?(0,eo.jsx)(E8,{content:g,isStreaming:r}):null})}),!f&&b&&(0,eo.jsx)("div",{className:"mt-1",children:(0,eo.jsx)("button",{type:"button",onClick:R,"aria-label":w?"Copied":"Copy message",className:"inline-flex items-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-accent hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring",children:w?(0,eo.jsx)(cO,{className:"h-4 w-4","aria-hidden":"true"}):(0,eo.jsx)(EB,{className:"h-4 w-4","aria-hidden":"true"})})}),x&&"partial"===x.variant&&(0,eo.jsxs)("div",{className:"border-[var(--color-warning)]/30 bg-[var(--color-warning)]/5 mt-3 flex items-start gap-2 rounded-md border px-3 py-2 text-sm text-foreground",children:[(0,eo.jsx)(dB,{className:"mt-0.5 h-4 w-4 shrink-0 text-[var(--color-warning)]","aria-hidden":"true"}),(0,eo.jsxs)("span",{children:["Agent ended its turn unexpectedly (",(0,eo.jsx)("span",{className:"font-mono text-xs",children:x.finishReason}),"). The response above may be incomplete."]})]}),f&&b&&(0,eo.jsxs)("div",{className:"mt-1 flex justify-end gap-1 opacity-0 transition-opacity focus-within:opacity-100 group-hover:opacity-100",children:[(0,eo.jsx)("button",{type:"button",onClick:R,"aria-label":w?"Copied":"Copy message",className:"inline-flex items-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-accent hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring",children:w?(0,eo.jsx)(cO,{className:"h-4 w-4","aria-hidden":"true"}):(0,eo.jsx)(EB,{className:"h-4 w-4","aria-hidden":"true"})}),(0,eo.jsx)("button",{type:"button",onClick:()=>p?.(g),"aria-label":"Edit message",className:"inline-flex items-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-accent hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring",children:(0,eo.jsx)(sA,{className:"h-4 w-4","aria-hidden":"true"})})]}),y&&(0,eo.jsx)("div",{className:"mt-4 flex w-full flex-col",children:t.map(e=>{if("task"===e.name)return null;let t=l?.find(t=>t.metadata?.tool_call_id===e.id),r=T.get(e.id),a=r?.actionRequest,p=r?e.id:void 0,h=o?.get(e.name);return(0,eo.jsx)(d6,{toolCall:e,uiComponent:t,stream:c,graphId:d,actionRequest:a,actionRequestKey:p,actionRequestSubmitted:p?i?.has(p):void 0,onActionRequestSubmitted:s,reviewConfig:h,onResume:r?e=>_(r.actionIndex,e):u,isLoading:n,autoApprove:m},e.id)})}),!f&&S.length>0&&(0,eo.jsx)("div",{className:"flex w-fit max-w-full flex-col gap-4",children:S.map(e=>(0,eo.jsxs)("div",{className:"flex w-full flex-col gap-2",children:[(0,eo.jsx)("div",{className:"flex items-end gap-2",children:(0,eo.jsx)("div",{className:"w-[calc(100%-100px)]",children:(0,eo.jsx)(dV,{subAgent:e,onClick:()=>P(e.id),isExpanded:D(e.id)})})}),D(e.id)&&(0,eo.jsx)("div",{className:"w-full max-w-full",children:(0,eo.jsxs)("div",{className:"border-border-light rounded-md border bg-[var(--color-surface)] p-4",children:[(0,eo.jsx)("h4",{className:"mb-2 text-xs font-semibold uppercase tracking-wider text-[var(--color-text-secondary)]",children:"Input"}),(0,eo.jsx)("div",{className:"mb-4",children:(0,eo.jsx)(E8,{content:d_(e.input)})}),(h?.[e.id]?.length??0)>0&&(0,eo.jsxs)(eo.Fragment,{children:[(0,eo.jsx)("h4",{className:"mb-2 text-xs font-semibold uppercase tracking-wider text-[var(--color-text-secondary)]",children:"Steps"}),(0,eo.jsx)("div",{className:"mb-4",children:(0,eo.jsx)(E7,{steps:h[e.id],hideFinalText:!!e.output})})]}),e.output&&(0,eo.jsxs)(eo.Fragment,{children:[(0,eo.jsx)("h4",{className:"mb-2 text-xs font-semibold uppercase tracking-wider text-[var(--color-text-secondary)]",children:"Output"}),(0,eo.jsx)(E8,{content:d_(e.output)})]})]})})]},e.id))})]})})});xf.displayName="ChatMessage";let xg=nf("layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]]),xb=el.default.memo(({content:e,summarizedCount:t})=>{let[n,r]=(0,el.useState)(!1),a=function(e){if(!e)return"";let t=e.match(/<summary>\s*([\s\S]*?)\s*<\/summary>/);if(t)return t[1].trim();let n=e.match(/Here is a summary of the conversation to date:\s*([\s\S]*)$/);return n?n[1].trim():e.trim()}(e);return(0,eo.jsxs)("div",{className:"my-3 w-full",children:[(0,eo.jsxs)("div",{className:"flex items-center gap-2",children:[(0,eo.jsx)("div",{className:"h-px flex-1 bg-border"}),(0,eo.jsxs)("button",{type:"button",onClick:()=>r(e=>!e),"aria-expanded":n,className:"inline-flex items-center gap-1.5 rounded-full border border-border bg-muted/40 px-3 py-1 text-xs font-medium text-muted-foreground transition-colors hover:text-foreground",children:[(0,eo.jsx)(xg,{className:"size-3.5 text-[var(--brand)]","aria-hidden":"true"}),"Conversation compacted","number"==typeof t&&t>0&&(0,eo.jsxs)("span",{className:"text-muted-foreground/70",children:["· ",t," earlier"," ",1===t?"message":"messages"," summarized"]}),(0,eo.jsx)(xm,{className:n3("size-3.5 transition-transform",n&&"rotate-90"),"aria-hidden":"true"})]}),(0,eo.jsx)("div",{className:"h-px flex-1 bg-border"})]}),n&&(0,eo.jsx)("div",{className:"mt-2 overflow-hidden rounded-md border border-border bg-muted/20 px-4 py-3",children:(0,eo.jsx)(E8,{content:a})})]})});xb.displayName="CompactionSummary";let xy=el.default.memo(function({items:e,isStreaming:t,defaultCollapsed:n,isAtBottom:r,lastMessageId:a,isLoading:i,actionRequests:s,submittedActionRequestKeys:o,onActionRequestSubmitted:l,reviewConfigsMap:c,stream:u,onResumeInterrupt:d,graphId:p,onEditMessage:m,autoApprove:h,subAgentSteps:f,ui:g,compactionAnchorId:b,summarizationEvent:y}){let E=(0,el.useMemo)(()=>!h&&0!==s.length&&void 0!==a&&e.some(e=>e.message.id===a),[h,s.length,a,e]),[x,S]=(0,el.useState)(()=>!n),T=(0,el.useRef)(t),v=(0,el.useRef)(!1);(0,el.useEffect)(()=>{let e=T.current;T.current=t,!v.current&&e&&!t&&!E&&n&&r&&S(!1)},[t,E,n,r]);let A=e.reduce((e,t)=>e+t.toolCalls.length,0),_=function(e){for(let t=e.length-1;t>=0;t--){let n=e[t].toolCalls;if(n.length>0)return n[n.length-1].name||"tool"}return"action"}(e),k=t?`${A} action${1===A?"":"s"} running — ${_}`:`${A} action${1===A?"":"s"} — last: ${_}`;return(0,eo.jsxs)("div",{className:"my-2",children:[(0,eo.jsxs)("button",{type:"button","aria-expanded":x,"aria-label":`${x?"Collapse":"Expand"} ${k}`,title:k,onClick:()=>{v.current=!0,S(e=>!e)},className:n3("group flex w-full items-center gap-2 rounded-md border border-border bg-[var(--color-surface)] px-3 py-2 text-left text-sm text-muted-foreground transition-colors hover:bg-accent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"),children:[(0,eo.jsx)(xm,{"aria-hidden":"true",className:n3("size-3.5 shrink-0 transition-transform",x&&"rotate-90")}),t&&(0,eo.jsx)(sT,{"aria-hidden":"true",className:"size-3.5 shrink-0 animate-spin text-[var(--brand)]"}),(0,eo.jsx)("span",{className:"truncate",children:k})]}),(()=>{if(x||!E||void 0===a)return null;let n=e.find(e=>e.message.id===a);if(!n)return null;let r=g?.filter(e=>e.metadata?.message_id===n.message.id);return(0,eo.jsx)("div",{className:"mt-2 space-y-2 border-l-2 border-border pl-3",children:(0,eo.jsx)(xf,{message:n.message,toolCalls:n.toolCalls,isLoading:i,isStreaming:t,actionRequests:s,submittedActionRequestKeys:o,onActionRequestSubmitted:l,reviewConfigsMap:c??void 0,ui:r,stream:u,onResumeInterrupt:d,graphId:p,onEditMessage:m,autoApprove:h,subAgentSteps:f})})})(),x&&(0,eo.jsxs)("div",{className:"mt-2 space-y-2 border-l-2 border-border pl-3",children:[e.map(e=>{let n=e.message.id===a,r=g?.filter(t=>t.metadata?.message_id===e.message.id),E=b===e.message.id;return(0,eo.jsxs)(el.default.Fragment,{children:[E&&y&&(0,eo.jsx)(xb,{content:y.content,summarizedCount:y.cutoffIndex}),(0,eo.jsx)(xf,{message:e.message,toolCalls:e.toolCalls,isLoading:i,isStreaming:t&&n,actionRequests:n?s:void 0,submittedActionRequestKeys:o,onActionRequestSubmitted:l,reviewConfigsMap:n?c??void 0:void 0,ui:r,stream:u,onResumeInterrupt:d,graphId:p,onEditMessage:m,autoApprove:h,subAgentSteps:f})]},e.message.id)}),(0,eo.jsxs)("button",{type:"button",onClick:()=>{v.current=!0,S(!1)},className:"flex w-full items-center justify-center gap-1.5 rounded-md py-1.5 text-xs text-muted-foreground transition-colors hover:bg-accent hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring","aria-label":`Collapse ${A} action${1===A?"":"s"}`,children:[(0,eo.jsx)(cD,{"aria-hidden":"true",className:"size-3.5"}),"Collapse"]})]})]})}),xE=nf("network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]),xx=nf("activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]),xS=nf("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]),xT=nf("history",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]);function xv(e,t){let n=0x811c9dc5^t;for(let t=0;t<e.length;t++)n^=e.charCodeAt(t),n=Math.imul(n,0x1000193);return((n>>>0)/0xffffffff-.5)*4}function xA(e){switch(e){case"complements":return"#10b981";case"contradicts":return"#f43f5e";case"supersedes":return"#f59e0b";default:return"#94a3b8"}}function x_(e){return Math.max(9,Math.min(22,9+2.5*e))}function xk(e){return"procedural"===e?"#0ea5e9":"#6366f1"}function xN(e){switch(e){case"complements":return"Complements";case"contradicts":return"Contradicts";case"supersedes":return"Supersedes";default:return e}}let xw="scheduled_task",xI="scheduler";function xC(){let e=eT();if(!e)return null;let t=e.langsmithApiKey||es.default.env.NEXT_PUBLIC_LANGSMITH_API_KEY||"";return a9(new aX({apiUrl:e.deploymentUrl,defaultHeaders:t?{"X-Api-Key":t}:{}}))}function xR(e){let t=e.metadata??{};return{cron_id:e.cron_id,name:"string"==typeof t.name&&t.name?t.name:"Unnamed Task",prompt:"string"==typeof t.prompt?t.prompt:"",schedule:e.schedule,next_run_date:e.next_run_date??null,created_at:e.created_at,updated_at:e.updated_at}}async function xO(){let e=xC();if(!e)return[];let t=(await e.crons.search({limit:200})).filter(e=>e.metadata?.run_kind===xw);return await Promise.allSettled(t.filter(e=>"keep"!==e.on_run_completed).map(t=>e.crons.update(t.cron_id,{onRunCompleted:"keep"}))),t.map(xR)}async function xL(e){let t=xC();if(!t)throw Error("No EvoScientist deployment configured.");return xR(await t.crons.create(xI,{input:{messages:[{role:"user",content:e.prompt}]},schedule:e.schedule,onRunCompleted:"keep",metadata:{run_kind:xw,name:e.name,prompt:e.prompt}}))}async function xD(e){let t=xC();if(!t)throw Error("No EvoScientist deployment configured.");await t.crons.delete(e)}async function xP(e){let t=await xL({name:e.name,prompt:e.prompt,schedule:e.schedule});try{return await xD(e.cronId),{task:t,oldTaskDeleted:!0}}catch{return{task:t,oldTaskDeleted:!1}}}async function xM(e){let t=xC();if(!t)throw Error("No EvoScientist deployment configured.");let n={run_kind:xw,cron_id:e.cron_id,trigger:"manual",name:e.name,prompt:e.prompt},r=await t.threads.create({graphId:xI,metadata:n});await t.runs.create(r.thread_id,xI,{input:{messages:[{role:"user",content:e.prompt}]},metadata:n,config:{configurable:{cron_id:e.cron_id}}})}async function xF(e){let t=await e.json().catch(()=>null);return e.ok?t:null}function xj(e){let t=new Date(e).getTime();return Number.isFinite(t)?t:0}function xU({onNavigate:e,onOpenThread:t}){let{data:n}=uG({limit:100}),r=(0,el.useMemo)(()=>(n??[]).flat().filter(e=>e.pinned).sort((e,t)=>t.updatedAt.getTime()-e.updatedAt.getTime()).slice(0,5),[n]),[a,i]=(0,el.useState)(0),[s,o]=(0,el.useState)(0),[l,c]=(0,el.useState)(0),[u,d]=(0,el.useState)(0),[p,m]=(0,el.useState)([]),[h,f]=(0,el.useState)(!1),g=(0,el.useRef)(0);(0,el.useEffect)(()=>{let e=++g.current;(async()=>{try{let[t,n,r,a]=await Promise.all([fetch("/api/memory/observations",{cache:"no-store"}).catch(()=>null),fetch("/api/memory/executions",{cache:"no-store"}).catch(()=>null),fetch("/api/workspace?recursive=1",{cache:"no-store"}).catch(()=>null),xO().catch(()=>[])]),s=t?await xF(t):null,l=n?await xF(n):null,u=r?await xF(r):null;if(g.current!==e)return;d(a.length),c((Array.isArray(u?.entries)?u.entries:[]).reduce((e,t)=>e+("number"==typeof t.size?t.size:0),0));let p=Array.isArray(s?.nodes)?s.nodes:[],h=Array.isArray(l?.entries)?l.entries:[];i(p.length),o(h.length);let b=[...h.map(e=>({kind:"execution",id:e.id,created_at:e.created_at,createdAtMs:xj(e.created_at),summary:e.summary||"Execution completed",label:e.agent||"agent",color:"var(--brand)"})),...p.map(e=>({kind:"observation",id:e.id,created_at:e.created_at,createdAtMs:xj(e.created_at),summary:e.summary||e.id,label:e.memory_type||"memory",color:xk(e.memory_type)}))];b.sort((e,t)=>t.createdAtMs-e.createdAtMs),m(b.slice(0,5)),f(!0)}catch{g.current===e&&f(!0)}})()},[]);let b=h&&(a>0||s>0||u>0||l>0);if(!b&&0===r.length)return null;let y=l<=0?{num:"0",unit:""}:l<1024?{num:String(l),unit:"B"}:l<1048576?{num:String(Math.round(l/1024)),unit:"KB"}:{num:(l/1048576).toFixed(1),unit:"MB"},E=[{value:a,label:"Knowledge",hint:"Observations EvoScientist has learned.",Icon:xE,target:{view:"memory",tab:"knowledge"}},{value:s+a,label:"Timeline",hint:"Runs and observations on the activity timeline.",Icon:xx,target:{view:"memory",tab:"history"}},{value:y.num,unit:y.unit,label:"Workspace",hint:"Total size of files in the current workspace.",Icon:dF,target:{view:"workspace"}},{value:u,label:"Scheduled",hint:"Recurring scheduled tasks.",Icon:sx,target:{view:"schedule"}}];return(0,eo.jsxs)("div",{className:"mt-7 w-full max-w-xl text-left sm:mt-8",children:[b&&(0,eo.jsx)("div",{className:"grid grid-cols-2 gap-2 sm:grid-cols-4",children:E.map(({value:t,unit:n,label:r,hint:a,Icon:i,target:s})=>(0,eo.jsxs)("button",{type:"button",onClick:()=>e(s),title:a,"aria-label":`${r}: ${t}${n?` ${n}`:""}. ${a}`,className:"hover:border-[var(--brand)]/40 flex min-h-[82px] flex-col items-center justify-center gap-1 rounded-md border border-border bg-[var(--color-surface)] px-2 py-2.5 transition-colors hover:bg-accent/60 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:[(0,eo.jsx)(i,{className:"size-4 text-[var(--brand)]","aria-hidden":"true"}),(0,eo.jsxs)("span",{className:"relative inline-block text-base font-bold leading-none text-foreground sm:text-lg",children:[t,n&&(0,eo.jsx)("span",{className:"absolute left-full top-0 ml-0.5 text-[9px] font-medium text-muted-foreground/70",children:n})]}),(0,eo.jsx)("span",{className:"text-[11px] leading-none text-muted-foreground",children:r})]},r))}),r.length>0&&(0,eo.jsxs)("div",{className:"mt-4 sm:mt-5",children:[(0,eo.jsxs)("div",{className:"mb-2 flex items-center gap-1.5",children:[(0,eo.jsx)(s_,{className:"size-3 text-muted-foreground","aria-hidden":"true"}),(0,eo.jsx)("span",{className:"text-[11px] font-semibold uppercase tracking-wide text-muted-foreground",children:"Your research"})]}),(0,eo.jsx)("div",{className:"space-y-1",children:r.map(e=>(0,eo.jsxs)("button",{type:"button",onClick:()=>t(e.id),title:`Open ${e.title}`,"aria-label":`Open pinned research thread: ${e.title}`,className:"flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-left transition-colors hover:bg-accent/60 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:[(0,eo.jsx)(sv,{className:"size-3.5 flex-shrink-0 text-[var(--brand)]","aria-hidden":"true"}),(0,eo.jsx)("span",{className:"min-w-0 flex-1 truncate text-xs text-foreground",children:e.title}),(0,eo.jsx)("span",{className:"flex-shrink-0 text-[11px] tabular-nums text-muted-foreground",children:cz(e.updatedAt)})]},e.id))})]}),b&&p.length>0&&(0,eo.jsxs)("div",{className:"mt-4 sm:mt-5",children:[(0,eo.jsxs)("div",{className:"mb-2 flex items-center justify-between",children:[(0,eo.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,eo.jsx)(xT,{className:"size-3 text-muted-foreground","aria-hidden":"true"}),(0,eo.jsx)("span",{className:"text-[11px] font-semibold uppercase tracking-wide text-muted-foreground",children:"Recent activity"})]}),(0,eo.jsxs)("button",{type:"button",onClick:()=>e({view:"memory",tab:"history"}),className:"flex items-center gap-1 text-[11px] text-[var(--brand)] transition-opacity hover:opacity-80 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:["View all",(0,eo.jsx)(xS,{className:"size-3","aria-hidden":"true"})]})]}),(0,eo.jsx)("div",{className:"space-y-1",children:p.map(t=>{let n,r;return(0,eo.jsxs)("button",{type:"button",onClick:()=>e("observation"===t.kind?{view:"memory",tab:"knowledge",obsId:t.id}:{view:"memory",tab:"history",execId:t.id}),title:t.summary,"aria-label":(n="observation"===t.kind?"recent observation":"recent execution",r=cz(new Date(t.createdAtMs||NaN)),`Open ${n} from ${t.label}${""!==r&&"—"!==r?`, ${r}`:""}`),className:"flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-left transition-colors hover:bg-accent/60 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:[(0,eo.jsx)("span",{className:"size-2 flex-shrink-0 rounded-full",style:{background:t.color},"aria-hidden":"true"}),(0,eo.jsx)("span",{className:"flex-shrink-0 text-xs font-medium text-foreground",children:t.label}),(0,eo.jsx)("span",{className:"min-w-0 flex-1 truncate text-xs text-muted-foreground",children:t.summary}),(0,eo.jsx)("span",{className:"flex-shrink-0 text-[11px] tabular-nums text-muted-foreground",children:cz(new Date(t.createdAtMs||NaN))})]},`${t.kind}-${t.id}`)})})]})]})}let xB=nf("message-circle-question-mark",[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),xH="__other__";function xz({questions:e,onSubmit:t,onCancel:n,isLoading:r}){let[a,i]=(0,el.useState)(()=>e.map(()=>"")),[s,o]=(0,el.useState)(()=>e.map(()=>null)),l=(e,t)=>i(n=>n.map((n,r)=>r===e?t:n)),c=(e,t)=>o(n=>n.map((n,r)=>r===e?t:n)),u=e=>"text"===e.type&&!1===e.required,d=e.every((e,t)=>u(e)||""!==a[t].trim());return(0,eo.jsxs)("div",{className:"w-full rounded-lg border border-border bg-muted/30 p-4",children:[(0,eo.jsxs)("div",{className:"mb-3 flex items-center gap-2 text-foreground",children:[(0,eo.jsx)(xB,{size:16,className:"text-[var(--brand)]","aria-hidden":"true"}),(0,eo.jsx)("span",{className:"text-xs font-semibold uppercase tracking-wider",children:"EvoScientist Needs Your Input"})]}),(0,eo.jsx)("div",{className:"space-y-5",children:e.map((e,t)=>(0,eo.jsxs)("div",{children:[(0,eo.jsxs)("p",{className:"mb-2 text-sm font-medium text-foreground",children:[e.question,!u(e)&&(0,eo.jsx)("span",{className:"ml-1 text-destructive",children:"*"})]}),"multiple_choice"===e.type?(0,eo.jsxs)("div",{className:"flex flex-col gap-2",children:[e.choices?.map(e=>{let n=s[t]===e.value;return(0,eo.jsx)("button",{type:"button",disabled:r,onClick:()=>{c(t,e.value),l(t,e.value)},className:n3("rounded-md border px-3 py-2 text-left text-sm transition-colors",n?"border-[var(--brand-solid)] bg-[var(--brand-solid)] text-[var(--brand-foreground)]":"border-border bg-background hover:bg-accent"),children:e.value},e.value)}),(0,eo.jsx)("button",{type:"button",disabled:r,onClick:()=>{c(t,xH),l(t,"")},className:n3("rounded-md border px-3 py-2 text-left text-sm transition-colors",s[t]===xH?"border-[var(--brand)] text-foreground":"border-border bg-background hover:bg-accent"),children:"Other…"}),s[t]===xH&&(0,eo.jsx)(d3,{value:a[t],onChange:e=>l(t,e.target.value),placeholder:"Type your answer…",className:"text-sm",rows:2,disabled:r})]}):(0,eo.jsx)(d3,{value:a[t],onChange:e=>l(t,e.target.value),placeholder:u(e)?"Type your answer… (optional)":"Type your answer…",className:"text-sm",rows:2,disabled:r})]},t))}),(0,eo.jsxs)("div",{className:"mt-4 flex flex-wrap gap-2",children:[(0,eo.jsx)(rm,{variant:"outline",size:"sm",onClick:n,disabled:r,children:"Cancel"}),(0,eo.jsx)(rm,{size:"sm",onClick:()=>t(a),disabled:!d||r,className:"bg-[var(--brand-solid)] text-[var(--brand-foreground)] hover:opacity-90",children:r?"Submitting…":"Submit"})]})]})}function xG(e,t){if("string"!=typeof e||!e.trim())return null;let n=e.trim(),r=n.lastIndexOf("/"),a=r>=0?n.slice(0,r):"";r>=0&&(n=n.slice(r+1)),n=n.replace(/-\d{8}$/,"");let i="string"==typeof t&&t.trim()||a;return{name:n,provider:i?i.charAt(0).toUpperCase()+i.slice(1):null}}function x$(e,t){let n=t?.enabled??!0,r=t?.intervalMs??3e3,a=ie(),[i,s]=(0,el.useState)([]),[o,l]=(0,el.useState)(!1),[c,u]=(0,el.useState)(null),d=(0,el.useRef)(0),p=(0,el.useRef)(!0),m=(0,el.useRef)(new Set);(0,el.useEffect)(()=>{m.current.clear()},[a,e]);let h=(0,el.useCallback)(async()=>{if(!n||!e){s([]),l(!0);return}let t=++d.current;try{let n=await a.threads.getState(e),r=function(e){if(!e||"object"!=typeof e)return[];let t=[];for(let n of Object.values(e))n&&"object"==typeof n&&"string"==typeof n.task_id&&"string"==typeof n.agent_name&&t.push({task_id:n.task_id,agent_name:n.agent_name,thread_id:"string"==typeof n.thread_id?n.thread_id:n.task_id,run_id:"string"==typeof n.run_id?n.run_id:"",status:"string"==typeof n.status?n.status:"",created_at:"string"==typeof n.created_at?n.created_at:void 0,last_updated_at:"string"==typeof n.last_updated_at?n.last_updated_at:void 0});return t.sort((e,t)=>(t.created_at??"").localeCompare(e.created_at??"")),t}(n.values?.async_tasks),i=await Promise.all(r.map(async e=>{if(!e.run_id)return{...e,liveStatus:e.status,startedAt:e.created_at};let t=`${e.thread_id}:${e.run_id}`;if(m.current.has(t))return{...e,liveStatus:"expired",startedAt:e.created_at,endedAt:e.last_updated_at??e.created_at};try{let t=await a.runs.get(e.thread_id,e.run_id),n=t.status??e.status;return{...e,liveStatus:n,startedAt:t.created_at??e.created_at,endedAt:xl(n)?t.updated_at??e.last_updated_at:void 0}}catch(n){if("object"==typeof n&&null!==n&&404===n.status)return m.current.add(t),{...e,liveStatus:"expired",startedAt:e.created_at,endedAt:e.last_updated_at??e.created_at};return{...e,liveStatus:e.status,startedAt:e.created_at}}}));if(t!==d.current||!p.current)return;s(i),u(null)}catch{t===d.current&&p.current&&u("Couldn't load background agents.")}finally{t===d.current&&p.current&&l(!0)}},[a,e,n]);return(0,el.useEffect)(()=>{if(p.current=!0,!n)return s([]),l(!0),()=>{p.current=!1};l(!1),h();let e=setInterval(()=>{document.hidden||h()},r);return()=>{p.current=!1,clearInterval(e)}},[h,n,r]),{tasks:i,loaded:o,error:c,refresh:h}}let xq="evoscientist-auto-notify",xV="evoscientist-auto-notify-reported",xW="evo-auto-notify-change";function xY(){try{let e=localStorage.getItem(xq);if(!e)return{};let t=JSON.parse(e);if(t&&"object"==typeof t&&!Array.isArray(t))return t}catch{}return{}}function xK(){try{let e=localStorage.getItem(xV);if(!e)return{};let t=JSON.parse(e);if(t&&"object"==typeof t&&!Array.isArray(t))return t}catch{}return{}}function xX(e){try{localStorage.setItem(xV,JSON.stringify(e))}catch{}}function xZ(e){return!!e&&!1!==xY()[e]}function xQ(e,t){if(!e)return;let n=xK(),r=n[e];n[e]={initialized:!0,keys:Array.from(new Set([...r?.keys??[],...t]))},xX(n)}function xJ(e,t){if(!e)return;let n=xK(),r=n[e];n[e]={initialized:r?.initialized??!0,keys:Array.from(new Set([...r?.keys??[],t]))},xX(n)}function x0(e){let[t,n]=(0,el.useState)(()=>xZ(e));return(0,el.useEffect)(()=>{let t=()=>n(xZ(e));return t(),window.addEventListener(xW,t),window.addEventListener("storage",t),()=>{window.removeEventListener(xW,t),window.removeEventListener("storage",t)}},[e]),[t,(0,el.useCallback)(t=>(function(e,t){if(!e)return;let n=xY();t?delete n[e]:n[e]=!1;try{localStorage.setItem(xq,JSON.stringify(n))}catch{}window.dispatchEvent(new Event(xW))})(e,t),[e])]}let x1={damping:.7,stiffness:.05,mass:1.25},x2=1e3/60,x3=!1;function x4(e,t){let n=(0,el.useCallback)(t=>(n.current=t,e(t)),t);return n}globalThis.document?.addEventListener("mousedown",()=>{x3=!0}),globalThis.document?.addEventListener("mouseup",()=>{x3=!1}),globalThis.document?.addEventListener("click",()=>{x3=!1});let x5=new Map;function x6(...e){let t={...x1},n=!1;for(let r of e){if("instant"===r){n=!0;continue}"object"==typeof r&&(n=!1,t.damping=r.damping??t.damping,t.stiffness=r.stiffness??t.stiffness,t.mass=r.mass??t.mass)}let r=JSON.stringify(t);return x5.has(r)||x5.set(r,Object.freeze(t)),n?"instant":x5.get(r)}let x9=nf("file-text",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]),x8=nf("save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]),x7=c8?e=>{e()}:el.default.startTransition,Se=u_(uO,()=>(e,t,n={})=>{let{mutate:r}=uv(),a=(0,el.useRef)(e),i=(0,el.useRef)(t),s=(0,el.useRef)(n),o=(0,el.useRef)(0),[l,c,u]=(e=>{let[,t]=(0,el.useState)({}),n=(0,el.useRef)(!1),r=(0,el.useRef)(e),a=(0,el.useRef)({data:!1,error:!1,isValidating:!1}),i=(0,el.useCallback)(e=>{let i=!1,s=r.current;for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&s[t]!==e[t]&&(s[t]=e[t],a.current[t]&&(i=!0));i&&!n.current&&t({})},[]);return ue(()=>(n.current=!1,()=>{n.current=!0})),[r,a.current,i]})({data:cW,error:cW,isMutating:!1}),d=l.current,p=(0,el.useCallback)(async(e,t)=>{let[n,l]=uo(a.current);if(!i.current)throw Error("Can’t trigger the mutation: missing fetcher.");if(!n)throw Error("Can’t trigger the mutation: missing key.");let c=cX(cX({populateCache:!1,throwOnError:!0},s.current),t),d=uc();o.current=d,u({isMutating:!0});try{let t=await r(n,i.current(l,{arg:e}),cX(c,{throwOnError:!0}));return o.current<=d&&(x7(()=>u({data:t,isMutating:!1,error:void 0})),null==c.onSuccess||c.onSuccess.call(c,t,n,c)),t}catch(e){if(o.current<=d&&(x7(()=>u({error:e,isMutating:!1})),null==c.onError||c.onError.call(c,e,n,c),c.throwOnError))throw e}},[]),m=(0,el.useCallback)(()=>{o.current=uc(),u({data:cW,error:cW,isMutating:!1})},[]);return ue(()=>{a.current=e,i.current=t,s.current=n}),{trigger:p,reset:m,get data(){return c.data=!0,d.data},get error(){return c.error=!0,d.error},get isMutating(){return c.isMutating=!0,d.isMutating}}}),St={js:"javascript",jsx:"javascript",ts:"typescript",tsx:"typescript",py:"python",rb:"ruby",go:"go",rs:"rust",java:"java",cpp:"cpp",c:"c",cs:"csharp",php:"php",swift:"swift",kt:"kotlin",scala:"scala",sh:"bash",bash:"bash",zsh:"bash",json:"json",xml:"xml",html:"html",css:"css",scss:"scss",sass:"sass",less:"less",sql:"sql",yaml:"yaml",yml:"yaml",toml:"toml",ini:"ini",dockerfile:"dockerfile",makefile:"makefile"},Sn=el.default.memo(({file:e,onSaveFile:t,onClose:n,editDisabled:r})=>{let[a,i]=(0,el.useState)(null===e),[s,o]=(0,el.useState)(String(e?.path||"")),[l,c]=(0,el.useState)(String(e?.content||"")),u=Se({kind:"files-update",fileName:s,fileContent:l},async({fileName:e,fileContent:n})=>{if(e&&n)return await t(e,n)},{onSuccess:()=>i(!1),onError:e=>u5.toast.error(`Failed to save file: ${e}`)});(0,el.useEffect)(()=>{o(String(e?.path||"")),c(String(e?.content||"")),i(null===e)},[e]);let d=(0,el.useMemo)(()=>{let e=String(s||"");return e.split(".").pop()?.toLowerCase()||""},[s]),p=(0,el.useMemo)(()=>"md"===d||"markdown"===d,[d]),m=(0,el.useMemo)(()=>St[d]||"text",[d]),h=(0,el.useCallback)(()=>{l&&EH(l)},[l]),f=(0,el.useCallback)(()=>{if(l&&s){let e=new Blob([l],{type:"text/plain"}),t=URL.createObjectURL(e),n=document.createElement("a");n.href=t,n.download=s,document.body.appendChild(n),n.click(),document.body.removeChild(n),URL.revokeObjectURL(t)}},[l,s]),g=(0,el.useCallback)(()=>{i(!0)},[]),b=(0,el.useCallback)(()=>{null===e?n():(o(String(e.path)),c(String(e.content)),i(!1))},[e,n]),y=(0,el.useMemo)(()=>""!==s.trim()&&!s.includes("/")&&!s.includes(" "),[s]);return(0,eo.jsx)(n4,{open:!0,onOpenChange:n,children:(0,eo.jsxs)(n9,{"aria-describedby":void 0,className:"flex h-[80vh] max-h-[80vh] min-w-[60vw] flex-col p-6",children:[(0,eo.jsx)(re,{className:"sr-only",children:e?.path||"New File"}),(0,eo.jsxs)("div",{className:"mb-4 flex items-center justify-between border-b border-border pb-4",children:[(0,eo.jsxs)("div",{className:"flex min-w-0 items-center gap-2",children:[(0,eo.jsx)(x9,{className:"h-5 w-5 shrink-0 text-[var(--color-text-tertiary)]"}),a&&null===e?(0,eo.jsx)(ry,{value:s,onChange:e=>o(e.target.value),placeholder:"Enter filename…",className:"text-base font-medium","aria-invalid":!y}):(0,eo.jsx)("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap text-base font-medium text-primary",children:e?.path})]}),(0,eo.jsx)("div",{className:"flex shrink-0 items-center gap-1",children:!a&&(0,eo.jsxs)(eo.Fragment,{children:[(0,eo.jsxs)(rm,{onClick:g,variant:"ghost",size:"sm",className:"h-8 px-2",disabled:r,children:[(0,eo.jsx)(ir,{size:16,className:"mr-1"}),"Edit"]}),(0,eo.jsxs)(rm,{onClick:h,variant:"ghost",size:"sm",className:"h-8 px-2",children:[(0,eo.jsx)(EB,{size:16,className:"mr-1"}),"Copy"]}),(0,eo.jsxs)(rm,{onClick:f,variant:"ghost",size:"sm",className:"h-8 px-2",children:[(0,eo.jsx)(sS,{size:16,className:"mr-1"}),"Download"]})]})})]}),(0,eo.jsx)("div",{className:"min-h-0 flex-1 overflow-hidden",children:a?(0,eo.jsx)(d3,{value:l,onChange:e=>c(e.target.value),placeholder:"Enter file content…",className:"h-full min-h-[400px] resize-none font-mono text-sm"}):(0,eo.jsx)(on,{className:"h-full rounded-md bg-[var(--color-surface)]",children:(0,eo.jsx)("div",{className:"p-4",children:l?p?(0,eo.jsx)("div",{className:"rounded-md p-6",children:(0,eo.jsx)(E8,{content:l})}):(0,eo.jsx)(Ej,{language:m,style:EU,customStyle:{margin:0,borderRadius:"0.5rem",fontSize:"0.875rem"},showLineNumbers:!0,wrapLines:!0,lineProps:{style:{whiteSpace:"pre-wrap"}},children:l}):(0,eo.jsx)("div",{className:"flex items-center justify-center p-12",children:(0,eo.jsx)("p",{className:"text-sm text-muted-foreground",children:"File is empty"})})})})}),a&&(0,eo.jsxs)("div",{className:"mt-4 flex justify-end gap-2 border-t border-border pt-4",children:[(0,eo.jsxs)(rm,{onClick:b,variant:"outline",size:"sm",children:[(0,eo.jsx)(ng,{size:16,className:"mr-1"}),"Cancel"]}),(0,eo.jsxs)(rm,{onClick:()=>u.trigger(),size:"sm",disabled:u.isMutating||!s.trim()||!l.trim()||!y,children:[u.isMutating?(0,eo.jsx)(sT,{size:16,className:"mr-1 animate-spin"}):(0,eo.jsx)(x8,{size:16,className:"mr-1"}),"Save"]})]})]})})});function Sr({files:e,setFiles:t,editDisabled:n}){let[r,a]=(0,el.useState)(null),i=(0,el.useCallback)(async(n,r)=>{await t({...e,[n]:r}),a({path:n,content:r})},[e,t]);return(0,eo.jsxs)(eo.Fragment,{children:[0===Object.keys(e).length?(0,eo.jsx)("div",{className:"flex h-full items-center justify-center p-4 text-center",children:(0,eo.jsx)("p",{className:"text-xs text-muted-foreground",children:"No files created yet"})}):(0,eo.jsx)("div",{className:"grid grid-cols-[repeat(auto-fill,minmax(256px,1fr))] gap-2",children:Object.keys(e).map(t=>{let n,r=String(t),i=e[t];if("object"==typeof i&&null!==i&&"content"in i){let e=i.content;n=Array.isArray(e)?e.join("\n"):String(e||"")}else n=String(i||"");return(0,eo.jsxs)("button",{type:"button",onClick:()=>a({path:r,content:n}),className:"cursor-pointer space-y-1 truncate rounded-md border border-border px-2 py-3 shadow-sm transition-colors",style:{backgroundColor:"var(--color-file-button)"},onMouseEnter:e=>{e.currentTarget.style.backgroundColor="var(--color-file-button-hover)"},onMouseLeave:e=>{e.currentTarget.style.backgroundColor="var(--color-file-button)"},children:[(0,eo.jsx)(x9,{size:24,className:"mx-auto text-muted-foreground"}),(0,eo.jsx)("span",{className:"mx-auto block w-full truncate break-words text-center text-sm leading-relaxed text-foreground",children:r})]},r)})}),r&&(0,eo.jsx)(Sn,{file:r,onSaveFile:i,onClose:()=>a(null),editDisabled:n})]})}Sn.displayName="FileViewDialog",el.default.memo(({todos:e,files:t,setFiles:n})=>{let{isLoading:r,interrupt:a}=dR(),[i,s]=(0,el.useState)(!1),[o,l]=(0,el.useState)(!1),c=(0,el.useRef)(e.length),u=(0,el.useRef)(Object.keys(t).length);(0,el.useEffect)(()=>{0===c.current&&e.length>0&&s(!0),c.current=e.length},[e.length]);let d=Object.keys(t).length;(0,el.useEffect)(()=>{0===u.current&&d>0&&l(!0),u.current=d},[d]);let p=(0,el.useCallback)(e=>{switch(e){case"completed":return(0,eo.jsx)(dD,{size:12,className:"text-[var(--color-success)]"});case"in_progress":return(0,eo.jsx)(sx,{size:12,className:"text-[var(--color-warning)]"});default:return(0,eo.jsx)(dP,{size:10,className:"text-[var(--color-text-tertiary)]"})}},[]),m=(0,el.useMemo)(()=>({pending:e.filter(e=>"pending"===e.status),in_progress:e.filter(e=>"in_progress"===e.status),completed:e.filter(e=>"completed"===e.status)}),[e]),h={pending:"Pending",in_progress:"In Progress",completed:"Completed"};return(0,eo.jsx)("div",{className:"min-h-0 w-full flex-1",children:(0,eo.jsx)("div",{className:"font-inter flex h-full w-full flex-col p-0",children:(0,eo.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col gap-2 overflow-hidden",children:[(0,eo.jsxs)("div",{className:"flex items-center justify-between px-3 pb-1.5 pt-2",children:[(0,eo.jsx)("span",{className:"text-xs font-semibold tracking-wide text-zinc-600",children:"AGENT TASKS"}),(0,eo.jsx)("button",{onClick:()=>s(e=>!e),className:n3("flex h-6 w-6 items-center justify-center rounded-md text-muted-foreground transition-transform duration-200 hover:bg-muted",i?"rotate-180":"rotate-0"),"aria-label":"Toggle tasks panel",children:(0,eo.jsx)(cL,{size:14})})]}),i&&(0,eo.jsx)("div",{className:"bg-muted-secondary rounded-xl px-3 pb-2",children:(0,eo.jsx)(on,{className:"h-full",children:0===e.length?(0,eo.jsx)("div",{className:"flex h-full items-center justify-center p-4 text-center",children:(0,eo.jsx)("p",{className:"text-xs text-muted-foreground",children:"No tasks created yet"})}):(0,eo.jsx)("div",{className:"ml-1 p-0.5",children:Object.entries(m).map(([e,t])=>(0,eo.jsxs)("div",{className:"mb-4",children:[(0,eo.jsx)("h3",{className:"mb-1 text-[10px] font-semibold uppercase tracking-wider text-tertiary",children:h[e]}),t.map((t,n)=>(0,eo.jsxs)("div",{className:"mb-1.5 flex items-start gap-2 rounded-sm p-1 text-sm",children:[p(t.status),(0,eo.jsx)("span",{className:"flex-1 break-words leading-relaxed text-inherit",children:t.content})]},`${e}_${t.id}_${n}`))]}))})})}),(0,eo.jsxs)("div",{className:"flex items-center justify-between px-3 pb-1.5 pt-2",children:[(0,eo.jsx)("span",{className:"text-xs font-semibold tracking-wide text-zinc-600",children:"FILE SYSTEM"}),(0,eo.jsx)("button",{onClick:()=>l(e=>!e),className:n3("flex h-6 w-6 items-center justify-center rounded-md text-muted-foreground transition-transform duration-200 hover:bg-muted",o?"rotate-180":"rotate-0"),"aria-label":"Toggle files panel",children:(0,eo.jsx)(cL,{size:14})})]}),o&&(0,eo.jsx)(Sr,{files:t,setFiles:n,editDisabled:!0===r||void 0!==a})]})})})}).displayName="TasksFilesSidebar";let Sa=nf("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]),Si={js:"javascript",jsx:"javascript",ts:"typescript",tsx:"typescript",py:"python",rb:"ruby",go:"go",rs:"rust",java:"java",cpp:"cpp",c:"c",cs:"csharp",php:"php",swift:"swift",kt:"kotlin",sh:"bash",bash:"bash",zsh:"bash",json:"json",jsonl:"json",xml:"xml",html:"html",css:"css",scss:"scss",sql:"sql",yaml:"yaml",yml:"yaml",toml:"toml",ini:"ini",tex:"latex",bib:"latex",r:"r"},Ss=new Set(["png","jpg","jpeg","gif","webp","svg","bmp"]),So=new Set([...Object.keys(Si),"txt","md","markdown","log","csv","tsv","cfg","conf","env","gitignore"]);function Sl(e,t=!1){let n=new URLSearchParams({path:e});return t&&n.set("download","1"),`/api/workspace/file?${n.toString()}`}let Sc=el.default.memo(({path:e,size:t,onClose:n,onChanged:r})=>{let[a,i]=(0,el.useState)(null),[s,o]=(0,el.useState)(!1),[l,c]=(0,el.useState)(null),[u,d]=(0,el.useState)(!1),[p,m]=(0,el.useState)(""),[h,f]=(0,el.useState)(!1),[g,b]=(0,el.useState)(null),[y,E]=(0,el.useState)(!1),[x,S]=(0,el.useState)(!1),[T,v]=(0,el.useState)(null),A=(0,el.useRef)(!0);(0,el.useEffect)(()=>(A.current=!0,()=>{A.current=!1}),[]);let _=e?e.split("/").pop()||e:"",k=(0,el.useMemo)(()=>_.includes(".")?_.split(".").pop().toLowerCase():"",[_]),N=Ss.has(k)?"image":"pdf"===k?"pdf":So.has(k)?"text":"binary",w="text"===N&&null!=t&&t>2097152;if((0,el.useEffect)(()=>{if(!e||"text"!==N||w)return void i(null);let t=!1;return o(!0),c(null),d(!1),b(null),fetch(Sl(e)).then(async e=>{if(!e.ok){let t=await e.json().catch(()=>null);throw Error(t?.error||`Failed to load file (${e.status})`)}return e.text()}).then(e=>{t||i(e)}).catch(e=>{t||c(e.message??"Failed to load file.")}).finally(()=>{t||o(!1)}),()=>{t=!0}},[e,N,w]),!e)return null;let I="md"===k||"markdown"===k,C=Si[k]||"text",R=u&&null!==a&&p!==a,O=e=>{R?v(e):"close"===e?n():d(!1)},L=async()=>{f(!0),b(null);try{let t=await fetch(Sl(e),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({content:p})}),n=await t.json().catch(()=>null);if(!t.ok)throw Error(n?.error||"Failed to save.");if(!A.current)return;i(p),d(!1),r?.()}catch(e){A.current&&b(e instanceof Error?e.message:"Failed to save.")}finally{A.current&&f(!1)}},D=async()=>{E(!0),b(null);try{let t=await fetch(Sl(e),{method:"DELETE"});if(!t.ok){let e=await t.json().catch(()=>null);throw Error(e?.error||"Failed to delete.")}r?.(),n()}catch(e){A.current&&(S(!1),b(e instanceof Error?e.message:"Failed to delete."))}finally{A.current&&E(!1)}};return(0,eo.jsxs)(eo.Fragment,{children:[(0,eo.jsx)(n4,{open:!0,onOpenChange:e=>{e||O("close")},children:(0,eo.jsxs)(n9,{"aria-describedby":void 0,className:"flex h-[80vh] max-h-[80vh] min-w-[60vw] flex-col p-6",children:[(0,eo.jsx)(re,{className:"sr-only",children:e}),(0,eo.jsxs)("div",{className:"mb-4 flex items-center justify-between gap-3 border-b border-border pb-4",children:[(0,eo.jsxs)("div",{className:"flex min-w-0 items-center gap-2",children:[(0,eo.jsx)(x9,{className:"h-5 w-5 shrink-0 text-[var(--color-text-tertiary)]","aria-hidden":"true"}),(0,eo.jsx)("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap text-base font-medium text-primary",children:e})]}),(0,eo.jsx)("div",{className:"flex shrink-0 items-center gap-1",children:u?(0,eo.jsxs)(eo.Fragment,{children:[(0,eo.jsxs)(rm,{variant:"ghost",size:"sm",className:"h-8 px-2",onClick:()=>{O("cancel-edit")},disabled:h,children:[(0,eo.jsx)(Sa,{size:16,className:"mr-1","aria-hidden":"true"}),"Cancel"]}),(0,eo.jsxs)(rm,{size:"sm",className:"h-8 bg-[var(--brand-solid)] px-3 text-[var(--brand-foreground)] hover:opacity-90",onClick:L,disabled:h||!R,children:[h?(0,eo.jsx)(sT,{size:16,className:"mr-1 animate-spin","aria-hidden":"true"}):(0,eo.jsx)(x8,{size:16,className:"mr-1","aria-hidden":"true"}),h?"Saving…":"Save"]})]}):(0,eo.jsxs)(eo.Fragment,{children:["text"===N&&!w&&(0,eo.jsxs)(rm,{variant:"ghost",size:"sm",className:"h-8 px-2",onClick:()=>{m(a??""),b(null),d(!0)},disabled:s||null===a,"aria-label":"Edit file",children:[(0,eo.jsx)(sA,{size:16,className:"mr-1","aria-hidden":"true"}),"Edit"]}),(0,eo.jsx)(rm,{variant:"ghost",size:"sm",className:"h-8 px-2",asChild:!0,children:(0,eo.jsxs)("a",{href:Sl(e,!0),download:_,children:[(0,eo.jsx)(sS,{size:16,className:"mr-1","aria-hidden":"true"}),"Download"]})}),(0,eo.jsx)(rm,{variant:"ghost",size:"sm",className:"h-8 px-2 text-muted-foreground hover:text-destructive",onClick:()=>S(!0),disabled:y,"aria-label":"Delete file",title:"Delete file",children:y?(0,eo.jsx)(sT,{size:16,className:"animate-spin","aria-hidden":"true"}):(0,eo.jsx)(sI,{size:16,"aria-hidden":"true"})})]})})]}),g&&(0,eo.jsx)("p",{role:"alert",className:"mb-2 text-sm text-destructive",children:g}),(0,eo.jsx)("div",{className:"min-h-0 flex-1 overflow-hidden",children:u?(0,eo.jsx)("textarea",{value:p,onChange:e=>m(e.target.value),spellCheck:!1,"aria-label":"File content",className:"h-full w-full resize-none rounded-md border border-border bg-background p-4 font-mono text-sm leading-relaxed text-foreground outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring",placeholder:"File is empty…"}):"image"===N?(0,eo.jsx)(on,{className:"h-full rounded-md bg-[var(--color-surface)]",children:(0,eo.jsx)("div",{className:"flex items-center justify-center p-4",children:(0,eo.jsx)("img",{src:Sl(e),alt:_,className:"max-h-full max-w-full object-contain"})})}):"pdf"===N?(0,eo.jsx)("iframe",{src:Sl(e),title:_,className:"h-full w-full rounded-md border border-border"}):"binary"===N||w?(0,eo.jsxs)("div",{className:"flex h-full flex-col items-center justify-center gap-3 p-12 text-center",children:[(0,eo.jsx)("p",{className:"text-sm text-muted-foreground",children:w?"This file is too large to preview inline.":"This file type can't be previewed."}),(0,eo.jsx)(rm,{variant:"outline",size:"sm",asChild:!0,children:(0,eo.jsxs)("a",{href:Sl(e,!0),download:_,children:[(0,eo.jsx)(sS,{size:16,className:"mr-1","aria-hidden":"true"}),"Download file"]})})]}):s?(0,eo.jsx)("div",{className:"flex h-full items-center justify-center",children:(0,eo.jsx)(sT,{className:"size-5 animate-spin text-muted-foreground","aria-hidden":"true"})}):l?(0,eo.jsx)("div",{className:"flex h-full items-center justify-center p-12",children:(0,eo.jsx)("p",{className:"text-sm text-destructive",children:l})}):(0,eo.jsx)(on,{className:"h-full rounded-md bg-[var(--color-surface)]",children:(0,eo.jsx)("div",{className:"p-4",children:a&&a.length>0?I?(0,eo.jsx)("div",{className:"rounded-md p-6",children:(0,eo.jsx)(E8,{content:a})}):(0,eo.jsx)(Ej,{language:C,style:EU,customStyle:{margin:0,borderRadius:"0.5rem",fontSize:"0.875rem"},showLineNumbers:!0,wrapLines:!0,lineProps:{style:{whiteSpace:"pre-wrap"}},children:a}):(0,eo.jsx)("div",{className:"flex items-center justify-center p-12",children:(0,eo.jsx)("p",{className:"text-sm text-muted-foreground",children:"File is empty"})})})})})]})}),(0,eo.jsx)(n4,{open:null!==T,onOpenChange:e=>{e||v(null)},children:(0,eo.jsxs)(n9,{className:"sm:max-w-md",children:[(0,eo.jsxs)(n8,{children:[(0,eo.jsx)(re,{children:"Discard unsaved changes?"}),(0,eo.jsxs)(rt,{children:["Your edits to “",_,"” have not been saved."]})]}),(0,eo.jsxs)(n7,{children:[(0,eo.jsx)(rm,{variant:"outline",onClick:()=>v(null),children:"Keep Editing"}),(0,eo.jsx)(rm,{onClick:()=>{v(null),"close"===T&&n(),"cancel-edit"===T&&d(!1)},className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:"Discard"})]})]})}),(0,eo.jsx)(n4,{open:x,onOpenChange:e=>{y||S(e)},children:(0,eo.jsxs)(n9,{className:"sm:max-w-md",children:[(0,eo.jsxs)(n8,{children:[(0,eo.jsx)(re,{children:"Delete file?"}),(0,eo.jsxs)(rt,{children:["“",_,"” will be permanently removed from the workspace. This can't be undone."]})]}),(0,eo.jsxs)(n7,{children:[(0,eo.jsx)(rm,{variant:"outline",onClick:()=>S(!1),disabled:y,children:"Cancel"}),(0,eo.jsx)(rm,{onClick:D,disabled:y,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:y?"Deleting…":"Delete"})]})]})})]})});Sc.displayName="WorkspaceFileDialog";let Su=el.default.memo(({path:e,onClose:t})=>{let[n,r]=(0,el.useState)(null),[a,i]=(0,el.useState)(!1),[s,o]=(0,el.useState)(null),l=(0,el.useRef)(0);(0,el.useEffect)(()=>{if(!e){r(null),o(null);return}let t=++l.current;i(!0),o(null),r(null),(async()=>{try{let n=await fetch(`/api/memory?path=${encodeURIComponent(e)}`);if(!n.ok){let e=await n.json().catch(()=>null);throw Error(e?.error||`HTTP ${n.status}`)}let a=await n.json();if(l.current!==t)return;r("string"==typeof a.content?a.content:"")}catch(e){if(l.current!==t)return;o(e instanceof Error?e.message:"Failed to read file.")}finally{l.current===t&&i(!1)}})()},[e]);let c=null!==e,u=e?e.split("/").filter(Boolean).pop()||e:"",d=u.toLowerCase().endsWith(".md");return(0,eo.jsx)(n4,{open:c,onOpenChange:e=>{e||t()},children:(0,eo.jsxs)(n9,{className:"flex h-[80vh] max-h-[80vh] min-w-[60vw] flex-col gap-3 p-6",children:[(0,eo.jsxs)(n8,{children:[(0,eo.jsxs)(re,{className:"flex items-center gap-2 text-base",children:[(0,eo.jsx)(x9,{className:"size-4 shrink-0","aria-hidden":"true"}),(0,eo.jsx)("span",{className:"truncate",children:u})]}),e&&(0,eo.jsx)(rt,{className:"break-all font-mono text-xs",children:e})]}),(0,eo.jsxs)(on,{className:"-mx-2 max-h-[65vh] flex-1 px-2",children:[a&&(0,eo.jsx)("div",{className:"flex items-center justify-center py-12",children:(0,eo.jsx)(sT,{className:"size-4 animate-spin text-muted-foreground"})}),s&&(0,eo.jsx)("div",{className:"rounded-md border border-destructive/30 bg-destructive/5 p-3 text-sm",children:s}),!a&&!s&&null!==n&&(d?(0,eo.jsx)(E8,{content:n}):(0,eo.jsx)("pre",{className:"m-0 whitespace-pre-wrap break-words font-mono text-xs leading-6",children:n}))]})]})})});Su.displayName="MemoryFileDialog";let Sd={entries:[],defaultEntry:null},Sp=new Map,Sm=["Survey recent papers on a topic","Design an experiment plan","Analyze workspace files"];function Sh(e,t){let n=t.length>0?`
|
|
8
|
+
|
|
9
|
+
Workspace files uploaded for this request:
|
|
10
|
+
${t.map(e=>`- ${e.path}`).join("\n")}`:"";return`${e}${n}`}let Sf=(e,t)=>{switch(e){case"completed":return(0,eo.jsx)(dD,{size:16,className:n3("text-[var(--color-success)]",t)});case"in_progress":return(0,eo.jsx)(sx,{size:16,className:n3("text-[var(--color-warning)]",t)});default:return(0,eo.jsx)(dP,{size:16,className:n3("text-[var(--color-text-tertiary)]",t)})}},Sg=el.default.memo(({assistant:e,onShowAgents:t,onNotifyReady:n,onNavigate:r,onOpenThread:a,workspaceOpen:i})=>{let s,o,l,c,u,d,[p,m]=(0,el.useState)(null),h=(0,el.useRef)(null),f=(0,el.useRef)(null),g=(0,el.useRef)(null),[b,y]=(0,el.useState)(""),[E,x]=(0,el.useState)([]),[S,T]=(0,el.useState)(!1),[v,A]=(0,el.useState)(null);(0,el.useEffect)(()=>{let e=!1;return fetch("/api/workspace").then(e=>e.ok?e.json():null).then(t=>{!e&&t?.dir&&A(t.dir)}).catch(()=>{}),()=>{e=!0}},[]);let[_,k]=(0,el.useState)([]),N=(0,el.useRef)(_);N.current=_;let w=(0,el.useRef)(0),I=(0,el.useRef)(null),[C]=eE("threadId"),[R,O]=(0,el.useState)(null),[L,D]=(0,el.useState)(null);(0,el.useEffect)(()=>{let e=e=>{let t=e.detail;t&&("memory"===t.kind?D(t.path):O(t.path))};return window.addEventListener(E0,e),()=>window.removeEventListener(E0,e)},[]);let[P,M]=(0,el.useState)(()=>u3(C)),[F,j]=(0,el.useState)(!1),[U,B]=(0,el.useState)(!1),[H,z]=(0,el.useState)("");(0,el.useEffect)(()=>{U&&z("")},[U]);let{registry:G,loading:$,error:q}=function(){let[e,t]=(0,el.useState)(Sd),[n,r]=(0,el.useState)(!0),[a,i]=(0,el.useState)(null);return(0,el.useEffect)(()=>{let e=eT();if(!e)return void r(!1);let n=!1,a=e.langsmithApiKey||es.default.env.NEXT_PUBLIC_LANGSMITH_API_KEY||"";return(function(e,t){let n=e.replace(/\/$/,""),r=Sp.get(n);if(r)return r;let a={};t&&(a["X-Api-Key"]=t);let i=fetch(`${n}/api/models`,{headers:a}).then(async e=>{if(!e.ok)throw Error(`HTTP ${e.status}`);let t=await e.json(),n=[];if(Array.isArray(t.entries))for(let e of t.entries)e&&"object"==typeof e&&"string"==typeof e.name&&"string"==typeof e.provider&&e.name&&e.provider&&n.push({name:e.name,model_id:"string"==typeof e.model_id?e.model_id:e.name,provider:e.provider});let r=null;if(t.default&&"object"==typeof t.default){let e=t.default;"string"==typeof e.name&&e.name&&(r={name:e.name,provider:"string"==typeof e.provider&&e.provider?e.provider:null})}return{entries:n,defaultEntry:r}}).catch(e=>{throw Sp.delete(n),e});return Sp.set(n,i),i})(e.deploymentUrl,a).then(e=>{n||(t(e),i(null))}).catch(e=>{n||(i(e instanceof Error?e.message:"Failed to load models."),t(Sd))}).finally(()=>{n||r(!1)}),()=>{n=!0}},[]),{registry:e,loading:n,error:a}}(),V=!$&&0===G.entries.length;(0,el.useEffect)(()=>{V&&console.warn("[model picker] using curated fallback list — registry fetch failed or empty",q??"(no error message)")},[V,q]);let W=(0,el.useMemo)(()=>G.entries.length>0?G.entries.map(e=>({model:e.name,model_provider:e.provider})):dk.map(e=>({model:e.model,model_provider:e.model_provider})),[G.entries]),Y=(0,el.useMemo)(()=>{let e=H.trim().toLowerCase();return e?W.filter(t=>{let n=t.model_provider??"";return t.model.toLowerCase().includes(e)||n.toLowerCase().includes(e)}):W},[W,H]),K=(0,el.useRef)(new Set),X=(0,el.useRef)(C),Z=(0,el.useRef)(!1),{scrollRef:Q,contentRef:J,scrollToBottom:ee,isAtBottom:et}=((e={})=>{let[t,n]=(0,el.useState)(!1),[r,a]=(0,el.useState)(!1!==e.initial),[i,s]=(0,el.useState)(!1),o=(0,el.useRef)(null);o.current=e;let l=(0,el.useCallback)(()=>{if(!x3)return!1;let e=window.getSelection();if(!e||!e.rangeCount)return!1;let t=e.getRangeAt(0);return t.commonAncestorContainer.contains(g.current)||g.current?.contains(t.commonAncestorContainer)},[]),c=(0,el.useCallback)(e=>{d.isAtBottom=e,a(e)},[]),u=(0,el.useCallback)(e=>{d.escapedFromLock=e,n(e)},[]),d=(0,el.useMemo)(()=>{let n;return{escapedFromLock:t,isAtBottom:r,resizeDifference:0,accumulated:0,velocity:0,listeners:new Set,get scrollTop(){return g.current?.scrollTop??0},set scrollTop(scrollTop){if(g.current){let{scrollBehavior:e}=getComputedStyle(g.current);"auto"!==e&&(g.current.style.scrollBehavior="auto"),g.current.scrollTop=scrollTop,d.ignoreScrollToTop=g.current.scrollTop,"auto"!==e&&(g.current.style.scrollBehavior=e)}},get targetScrollTop(){if(!g.current||!b.current)return 0;return g.current.scrollHeight-1-g.current.clientHeight},get calculatedTargetScrollTop(){if(!g.current||!b.current)return 0;let{targetScrollTop:t}=this;if(!e.targetScrollTop)return t;if(n?.targetScrollTop===t)return n.calculatedScrollTop;let r=Math.max(Math.min(e.targetScrollTop(t,{scrollElement:g.current,contentElement:b.current}),t),0);return n={targetScrollTop:t,calculatedScrollTop:r},requestAnimationFrame(()=>{n=void 0}),r},get scrollDifference(){return this.calculatedTargetScrollTop-this.scrollTop},get isNearBottom(){return this.scrollDifference<=70}}},[]),p=(0,el.useCallback)((e={})=>{let t;"string"==typeof e&&(e={animation:e}),e.preserveScrollPosition||c(!0);let n=Date.now()+(Number(e.wait)||0),r=x6(o.current,e.animation),{ignoreEscapes:a=!1}=e,i=d.calculatedTargetScrollTop;e.duration instanceof Promise?e.duration.finally(()=>{t=Date.now()}):t=n+(e.duration??0);let s=async()=>{let e=new Promise(requestAnimationFrame).then(()=>{if(!d.isAtBottom)return d.animation=void 0,!1;let{scrollTop:c}=d,u=performance.now(),m=(u-(d.lastTick??u))/x2;if(d.animation||(d.animation={behavior:r,promise:e,ignoreEscapes:a}),d.animation.behavior===r&&(d.lastTick=u),l()||n>Date.now())return s();if(c<Math.min(i,d.calculatedTargetScrollTop)){if(d.animation?.behavior===r){if("instant"===r)return d.scrollTop=d.calculatedTargetScrollTop,s();d.velocity=(r.damping*d.velocity+r.stiffness*d.scrollDifference)/r.mass,d.accumulated+=d.velocity*m,d.scrollTop+=d.accumulated,d.scrollTop!==c&&(d.accumulated=0)}return s()}return t>Date.now()?(i=d.calculatedTargetScrollTop,s()):(d.animation=void 0,d.scrollTop<d.calculatedTargetScrollTop)?p({animation:x6(o.current,o.current.resize),ignoreEscapes:a,duration:Math.max(0,t-Date.now())||void 0}):d.isAtBottom});return e.then(e=>(requestAnimationFrame(()=>{d.animation||(d.lastTick=void 0,d.velocity=0)}),e))};return(!0!==e.wait&&(d.animation=void 0),d.animation?.behavior===r)?d.animation.promise:s()},[c,l,d]),m=(0,el.useCallback)(()=>{u(!0),c(!1)},[u,c]),h=(0,el.useCallback)(({target:e})=>{if(e!==g.current)return;let{scrollTop:t,ignoreScrollToTop:n}=d,{lastScrollTop:r=t}=d;d.lastScrollTop=t,d.ignoreScrollToTop=void 0,n&&n>t&&(r=n),s(d.isNearBottom),setTimeout(()=>{if(d.resizeDifference||t===n)return;if(l()){u(!0),c(!1);return}let e=t>r,a=t<r;if(d.animation?.ignoreEscapes){d.scrollTop=r;return}a&&(u(!0),c(!1)),e&&u(!1),!d.escapedFromLock&&d.isNearBottom&&c(!0)},1)},[u,c,l,d]),f=(0,el.useCallback)(({target:e,deltaY:t})=>{let n=e;for(;!["scroll","auto"].includes(getComputedStyle(n).overflow);){if(!n.parentElement)return;n=n.parentElement}n===g.current&&t<0&&g.current.scrollHeight>g.current.clientHeight&&!d.animation?.ignoreEscapes&&(u(!0),c(!1))},[u,c,d]),g=x4(e=>{g.current?.removeEventListener("scroll",h),g.current?.removeEventListener("wheel",f),e?.addEventListener("scroll",h,{passive:!0}),e?.addEventListener("wheel",f,{passive:!0})},[]),b=x4(e=>{let t;d.resizeObserver?.disconnect(),d.resizeObserver=void 0,e&&(d.resizeObserver=new ResizeObserver(([e])=>{let{height:n}=e.contentRect,r=n-(t??n);if(d.resizeDifference=r,d.scrollTop>d.targetScrollTop&&(d.scrollTop=d.targetScrollTop),s(d.isNearBottom),r>=0){let e=x6(o.current,t?o.current.resize:o.current.initial);p({animation:e,wait:!0,preserveScrollPosition:!0,duration:"instant"===e?void 0:350})}else d.isNearBottom&&(u(!1),c(!0));t=n,requestAnimationFrame(()=>{setTimeout(()=>{d.resizeDifference===r&&(d.resizeDifference=0)},1)})}),d.resizeObserver?.observe(e))},[]);return{contentRef:b,scrollRef:g,scrollToBottom:p,stopScroll:m,isAtBottom:r||i,isNearBottom:i,escapedFromLock:t,state:d}})(),{stream:en,messages:er,todos:ea,files:ei,ui:ec,setFiles:eu,isLoading:ed,isThreadLoading:ep,interrupt:em,sendMessage:eh,stopStream:ef,resumeInterrupt:eg,subAgentActivity:eb,asyncTasks:ey,summarizationEvent:ex,modelOverride:eS,setModelOverride:ev}=dR(),{tasks:eA}=x$(C,{enabled:Object.keys(ey??{}).length>0}),e_=(0,el.useMemo)(()=>xc(eA),[eA]),[ek]=x0(C),eN=(0,el.useRef)(!1);(0,el.useEffect)(()=>{eN.current=!1},[C]),(0,el.useEffect)(()=>{ed&&(eN.current=!1)},[ed]),(0,el.useEffect)(()=>{var e;if(!eA||0===eA.length||!C||!ek)return;if(!(C&&xK()[C]?.initialized===!0))return void xQ(C,eA.filter(e=>xl(e.liveStatus)).map(xr));if(ed||eN.current||b.trim()||_.length>0)return;let t=function(e){if(!e)return new Set;let t=xK()[e];return new Set(Array.isArray(t?.keys)?t.keys:[])}(C);for(let n of eA){if(!xl(n.liveStatus))continue;let r=xr(n);if(!t.has(r)){if(er.some(e=>"human"===e.type&&xi(dA(e),n))){xJ(C,r);continue}eN.current=!0,xJ(C,r),eh(xs(n)),u5.toast.success(`Auto-reported ${xt[e=n.agent_name]??e} to the main chat.`);break}}},[eA,ek,ed,b,er,eh,C,_]),(0,el.useEffect)(()=>{ed&&ee()},[ed,ee]);let ew=(0,el.useRef)({sendMessage:eh,isLoading:ed,messages:er,threadId:C});ew.current={sendMessage:eh,isLoading:ed,messages:er,threadId:C};let eI=(0,el.useRef)(n);eI.current=n,(0,el.useEffect)(()=>(eI.current?.((e,t)=>{let n=ew.current;return n.threadId!==t?"wrong-thread":n.isLoading?"busy":n.messages.some(t=>"human"===t.type&&xi(dA(t),e))?"duplicate":(xJ(t,xr(e)),n.sendMessage(xs(e)),"sent")}),()=>eI.current?.(null)),[]);let eC=(0,el.useMemo)(()=>{if(eS)return xG(eS.model,eS.model_provider);if(G.defaultEntry)return xG(G.defaultEntry.name,G.defaultEntry.provider??void 0);let t=e?.config,n=t?.configurable;if(n){let e=xG(n.model??n.model_name,n.model_provider);if(e)return e}for(let e=er.length-1;e>=0;e--){let t=er[e];if("ai"!==t.type)continue;let n=t.response_metadata,r=xG(n?.model_name??n?.model,n?.model_provider);if(r)return r}return null},[er,eS,e?.config,G.defaultEntry]),eR=(0,el.useMemo)(()=>{let e={},t=Object.keys(eb);if(0===t.length)return e;let n=[],r={};for(let e of er)if("ai"===e.type)for(let t of e.tool_calls??[])"task"===t.name&&t.id&&n.push(t.id);else if("tool"===e.type){let t=e.tool_call_id;t&&(r[t]=dA(e))}let a=e=>e.replace(/\s+/g," ").trim(),i=new Set;for(let s of n){let n=a(r[s]??"");if(!n)continue;let o=t.find(e=>{if(i.has(e))return!1;let t=a(function(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if("text"===n.kind)return n.text}return""}(eb[e]));return""!==t&&(n.includes(t)||t.includes(n))});o&&(e[s]=eb[o],i.add(o))}let s=t.filter(e=>!i.has(e)),o=0;for(let t of n)e[t]||r[t]||o<s.length&&(e[t]=eb[s[o++]]);return e},[er,eb]),eO=em?.value,eL=eO?.type==="ask_user"||Array.isArray(eO?.action_requests)&&eO.action_requests.length>0,eD=ed||!e||eL;(0,el.useEffect)(()=>{if(ed||eL||eN.current||0===_.length)return;let[e,...t]=_;e.threadId===C&&(eN.current=!0,k(t),eh(Sh(e.text,e.files)))},[ed,eL,_,eh,C]);let eP=(0,el.useRef)(C);(0,el.useEffect)(()=>{let e=eP.current;(eP.current=C,null===e&&null!==C)?k(e=>e.map(e=>null===e.threadId?{...e,threadId:C}:e)):e!==C&&k([])},[C]);let eM=(0,el.useCallback)(()=>{M(!0),u4(C,!0),j(!1)},[C]),eF=(0,el.useCallback)(()=>{M(!1),u4(C,!1),j(!1),K.current=new Set},[C]);(0,el.useEffect)(()=>{let e=X.current;if(e!==C){if(null===e&&null!==C&&Z.current){let e;(e=u1())[u0]&&(e[C]=!0),u0 in e&&(delete e[u0],u2(e))}else null===e&&null!==C&&u4(null,!1);M(u3(C)),K.current=new Set,j(!1),x([]),Z.current=!1,X.current=C}},[C]);let ej=(0,el.useCallback)(async e=>{let t=Array.from(e.target.files??[]);if(e.target.value="",0!==t.length){T(!0);try{let e=new FormData;t.forEach(t=>e.append("files",t));let n=await fetch("/api/workspace/upload",{method:"POST",body:e}),r=await n.json();if(!n.ok||!r.files)throw Error(r.error||"Failed to upload files.");x(e=>[...e,...r.files]),u5.toast.success(`${r.files.length} file${1===r.files.length?"":"s"} uploaded to the workspace.`)}catch(e){u5.toast.error(e instanceof Error?e.message:"Failed to upload files.")}finally{T(!1)}}},[]),eU=(0,el.useCallback)(e=>{x(t=>t.filter(t=>t.path!==e))},[]),eB=(0,el.useCallback)(async e=>{if(e){if("show"===e.kind)return void B(!0);try{if("reset"===e.kind)await ev(null),u5.toast.success("Model override cleared.");else{let t={model:e.model,...e.provider?{model_provider:e.provider}:{}};await ev(t),u5.toast.success(`Model set to ${e.model}${e.provider?` (${e.provider})`:""}.`)}}catch(e){u5.toast.error(e instanceof Error?`Couldn't update model: ${e.message}`:"Couldn't update model — try again.")}}},[ev]),eH=(0,el.useCallback)(t=>{t&&t.preventDefault();let n=b.trim();if(!n)return;let r=function(e){let t=e.trim();if("/model"!==t&&!t.startsWith("/model "))return null;let n=t.slice(6).trim();if(!n)return{kind:"show"};let r=n.split(/\s+/);return"reset"===r[0].toLowerCase()&&1===r.length?{kind:"reset"}:r.length>2?null:{kind:"set",model:r[0],provider:r[1]}}(n);if(r){eB(r),y("");return}if(e&&!eL&&!S){if(ed){k(e=>[...e,{id:w.current+=1,text:n,files:E,threadId:C}]),y(""),x([]);return}Z.current=null===C&&P,eh(Sh(n,E)),y(""),x([])}},[b,eB,e,eL,P,ed,S,E,eh,C]),ez=(0,el.useCallback)(e=>{let t=N.current.find(t=>t.id===e);t&&(k(t=>t.filter(t=>t.id!==e)),y(t.text),x(t.files),requestAnimationFrame(()=>{let e=f.current;e&&(e.focus(),e.setSelectionRange(t.text.length,t.text.length))}))},[]),eG=(0,el.useCallback)(e=>{k(t=>{let n=t.find(t=>t.id===e);return n&&t[0]?.id!==e?[n,...t.filter(t=>t.id!==e)]:t}),u5.toast.info("This message will run next without interrupting the current turn.")},[]),e$=(0,el.useCallback)((e,t)=>{k(n=>{let r=n.findIndex(t=>t.id===e),a=r+t;if(r<0||a<0||a>=n.length)return n;let i=[...n],[s]=i.splice(r,1);return i.splice(a,0,s),i})},[]),eq=(0,el.useCallback)(e=>{let t=I.current;I.current=null,null!==t&&t!==e&&k(n=>{let r=n.findIndex(e=>e.id===t),a=n.findIndex(t=>t.id===e);if(r<0||a<0)return n;let i=[...n],[s]=i.splice(r,1);return i.splice(a,0,s),i})},[]),eV=(0,el.useCallback)(e=>{k(t=>t.filter(t=>t.id!==e))},[]),eW=(0,el.useCallback)(()=>{k([])},[]),eY=(0,el.useCallback)(e=>{if(!eL&&!e.nativeEvent.isComposing&&229!==e.keyCode){if("ArrowUp"===e.key&&0===b.length&&N.current.length>0){e.preventDefault();let t=N.current;ez(t[t.length-1].id);return}"Enter"!==e.key||e.shiftKey||(e.preventDefault(),eH())}},[eH,eL,b,ez]),eK=(0,el.useCallback)(e=>{y(e),requestAnimationFrame(()=>{let t=f.current;t&&(t.focus(),t.setSelectionRange(e.length,e.length))})},[]),eX=(0,el.useCallback)(e=>{y(e),requestAnimationFrame(()=>f.current?.focus())},[]);(0,el.useEffect)(()=>{if(!P||ed)return;let e=em?.value&&em.value.action_requests;if(!em||!Array.isArray(e)||0===e.length)return;let t=dw(em);null===t||K.current.has(t)||(K.current.add(t),eg({decisions:e.map(()=>({type:"approve"}))}))},[P,em,eg,ed]);let eZ=(0,el.useMemo)(()=>{let e=em?.value;return e?.type==="ask_user"&&Array.isArray(e.questions)?e.questions:null},[em]),eQ=(0,el.useCallback)(e=>{eg({status:"answered",answers:e})},[eg]),eJ=(0,el.useCallback)(()=>{eg({status:"cancelled"})},[eg]),e0=(0,el.useMemo)(()=>{let e=em?.value&&em.value.action_requests;return Array.isArray(e)?e:[]},[em]),e1=(0,el.useMemo)(()=>{let e=new Map,t=new Set,n=er.filter(e=>{if("human"===e.type){let n,r=(n=xa(dA(e)))?`${n.taskId}:${n.runId||"legacy"}`:null;return!r||!t.has(r)&&(t.add(r),!0)}let n=en.getMessagesMetadata(e)?.streamMetadata,r=n?.langgraph_checkpoint_ns;return!("string"==typeof r&&r.includes("|")||function(e){if("human"===e.type){var t;if("human"!==e.type)return!1;let n=e.additional_kwargs;return n?.lc_source==="summarization"}return"ai"===e.type&&!!(t=dA(e))&&(!!(/\bconversation that has been summarized\b/.test(t)||/\bHere is a summary of the conversation to date\b/.test(t)||/<summary>[\s\S]*<\/summary>/.test(t))||/##\s+SESSION INTENT\b/.test(t))}(e))}),r=new Set;for(let e of n){if("tool"!==e.type)continue;let t=e.tool_call_id;t&&r.add(t)}let a=new Map;for(let e of e0)a.set(e.name,(a.get(e.name)??0)+1);n.forEach(t=>{if("ai"===t.type){let n,i=(n=[],t.additional_kwargs?.tool_calls&&Array.isArray(t.additional_kwargs.tool_calls)?n.push(...t.additional_kwargs.tool_calls):t.tool_calls&&Array.isArray(t.tool_calls)?n.push(...t.tool_calls.filter(e=>""!==e.name)):Array.isArray(t.content)&&n.push(...t.content.filter(e=>"tool_use"===e.type)),n.map(e=>{let t=e.function?.arguments||e.args||e.input||{};return{id:e.id,name:e.function?.name||e.name||e.type||"",args:function(e){if(e&&"object"==typeof e)return e;if("string"!=typeof e)return{};try{let t=JSON.parse(e);return t&&"object"==typeof t?t:{}}catch{return{}}}(t)}})).filter(e=>"ToolSelectionResponse"!==e.name||ed&&!em).map((e,n)=>{let i=e.name||"unknown",s=e.id||`${t.id??"ai-message"}-tool-${n}-${i}`,o=a.get(i)??0,l=o>0&&!r.has(s);return l&&a.set(i,o-1),{id:s,name:i,args:e.args,status:l?"interrupted":"pending"}});e.set(t.id,{message:t,toolCalls:i})}else if("tool"===t.type){let n=t.tool_call_id;if(!n)return;for(let[,r]of e.entries()){let e=r.toolCalls.findIndex(e=>e.id===n);if(-1!==e){r.toolCalls[e]={...r.toolCalls[e],status:"completed",result:dA(t)};break}}}else"human"===t.type&&e.set(t.id,{message:t,toolCalls:[]})});let i=Array.from(e.values());return i.map((e,t)=>{let n=t>0?i[t-1].message:null;return{...e,showAvatar:e.message.type!==n?.type}})},[er,e0,em,ed,en]),{value:e2}=rS(),e3=e=>{let t=e.content;if("string"==typeof t)return t.trim().length>0;if(Array.isArray(t))for(let e of t){let t=e?.text;if("string"==typeof t&&t.trim().length>0)return!0}return!1},e4=(0,el.useMemo)(()=>{let e=[];for(let t of e1)if("ai"===t.message.type&&t.toolCalls.length>0&&!e3(t.message)){let n=e[e.length-1];n?.kind==="action-group"?n.items.push(t):e.push({kind:"action-group",items:[t]})}else e.push({kind:"message",data:t});return e},[e1]),e5=e1.length>0?e1[e1.length-1].message.id:void 0,e6=(0,el.useMemo)(()=>{if(!ex)return null;let e=new Set(e1.map(e=>e.message.id));for(let t=ex.cutoffIndex;t<er.length;t++){let n=er[t]?.id;if(null!=n&&e.has(n))return n}return null},[ex,er,e1]),e9={in_progress:ea.filter(e=>"in_progress"===e.status),pending:ea.filter(e=>"pending"===e.status),completed:ea.filter(e=>"completed"===e.status)},e8=ea.length>0,e7=Object.keys(ei).length>0,[te,tt]=(0,el.useState)(()=>new Set);(0,el.useEffect)(()=>{0===e0.length&&tt(new Set)},[e0.length]);let tn=(0,el.useCallback)(e=>{tt(t=>{let n=new Set(t);return n.add(e),n})},[]),tr=(0,el.useMemo)(()=>{let e=em?.value&&em.value.review_configs;if(!Array.isArray(e))return new Map;let t=[];for(let n of e){let e=n.actionName??n.action_name;e&&t.push([e,{actionName:e,allowedDecisions:n.allowedDecisions??n.allowed_decisions}])}return new Map(t)},[em]);return(0,eo.jsxs)("div",{className:"flex flex-1 flex-col overflow-hidden",children:[(0,eo.jsx)(n4,{open:F,onOpenChange:j,children:(0,eo.jsxs)(n9,{className:"sm:max-w-md",children:[(0,eo.jsxs)(n8,{children:[(0,eo.jsx)(re,{children:"Enable Auto-approve?"}),(0,eo.jsx)(rt,{children:"EvoScientist will run tool actions in this research without asking you to review each one. Turn this on only when you trust the current task and deployment."})]}),(0,eo.jsxs)("div",{className:"flex items-start gap-3 rounded-lg border border-amber-300 bg-amber-50 p-3 text-sm text-amber-950 dark:border-amber-800 dark:bg-amber-950/40 dark:text-amber-100",children:[(0,eo.jsx)(dB,{className:"mt-0.5 size-4 shrink-0","aria-hidden":"true"}),(0,eo.jsx)("p",{children:"Auto-approve stays on for this research only — it follows this conversation across views and reloads, and other research keeps its own setting. Turn it off here anytime."})]}),(0,eo.jsxs)(n7,{children:[(0,eo.jsx)(rm,{variant:"outline",onClick:()=>j(!1),children:"Cancel"}),(0,eo.jsx)(rm,{onClick:eM,className:"bg-amber-600 text-white hover:bg-amber-700",children:"Enable Auto-approve"})]})]})}),(0,eo.jsx)(Sc,{path:R,onClose:()=>O(null)}),(0,eo.jsx)(Su,{path:L,onClose:()=>D(null)}),(0,eo.jsx)(n4,{open:U,onOpenChange:B,children:(0,eo.jsxs)(n9,{className:"sm:max-w-md",children:[(0,eo.jsxs)(n8,{children:[(0,eo.jsx)(re,{children:"Pick a model for this chat"}),(0,eo.jsxs)(rt,{children:["The choice applies per-thread. Type"," ",(0,eo.jsx)("span",{className:"font-mono text-xs",children:"/model <name>"})," ","in the composer to use a name not in the list."]})]}),(0,eo.jsxs)("div",{className:"mt-2 space-y-2",children:[(0,eo.jsxs)("div",{className:"text-xs text-muted-foreground",children:["Current:"," ",(0,eo.jsx)("span",{className:"font-mono",children:eC?`${eC.name}${eC.provider?` (${eC.provider})`:""}`:"deployment default"}),$&&(0,eo.jsx)("span",{className:"ml-2 italic",children:"loading registry…"})]}),V&&(0,eo.jsxs)("div",{className:"border-[var(--color-warning)]/30 bg-[var(--color-warning)]/5 flex items-start gap-2 rounded-md border px-3 py-2 text-xs text-foreground",children:[(0,eo.jsx)("span",{"aria-hidden":"true",className:"text-base leading-none text-[var(--color-warning)]",children:"⚠"}),(0,eo.jsxs)("span",{children:["Showing a curated subset — the deployment’s",(0,eo.jsx)("span",{className:"mx-1 font-mono",children:"/api/models"}),"registry didn’t load",q?` (${q})`:"",". Other short names still work via"," ",(0,eo.jsx)("span",{className:"font-mono",children:"/model <name>"}),"."]})]}),(0,eo.jsx)("input",{type:"text",value:H,onChange:e=>z(e.target.value),placeholder:"Filter by name or provider…",autoFocus:!0,className:"w-full rounded-md border border-border bg-background px-3 py-1.5 font-mono text-sm placeholder:font-sans placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"}),(0,eo.jsxs)("ul",{className:"max-h-72 space-y-1 overflow-y-auto pl-0",children:[0===Y.length&&(0,eo.jsxs)("li",{className:"px-3 py-2 text-xs text-muted-foreground",children:["No models match “",H,"”."]}),Y.map(e=>{let t=eS?.model===e.model&&eS?.model_provider===e.model_provider,n=!eS&&G.defaultEntry?.name===e.model&&(G.defaultEntry?.provider??null)===(e.model_provider??null);return(0,eo.jsx)("li",{children:(0,eo.jsxs)("button",{type:"button","aria-label":`Select model ${e.model}${e.model_provider?` from ${e.model_provider}`:""}${n?" (default)":""}`,onClick:async()=>{try{await ev({model:e.model,...e.model_provider?{model_provider:e.model_provider}:{}}),u5.toast.success(`Model set to ${e.model}${e.model_provider?` (${e.model_provider})`:""}.`),B(!1)}catch(e){u5.toast.error(e instanceof Error?`Couldn't update model: ${e.message}`:"Couldn't update model — try again.")}},className:n3("flex w-full items-center justify-between gap-3 rounded px-3 py-2 text-left text-sm transition-colors hover:bg-accent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring",t&&"bg-accent"),children:[(0,eo.jsxs)("span",{className:"min-w-0 truncate font-mono",children:[e.model,n&&(0,eo.jsx)("span",{className:"ml-2 text-xs font-normal text-muted-foreground",children:"· default"})]}),e.model_provider&&(0,eo.jsx)("span",{className:"shrink-0 text-xs text-muted-foreground",children:e.model_provider})]})},`${e.model}|${e.model_provider??""}`)})]})]}),(0,eo.jsxs)(n7,{children:[(0,eo.jsx)(rm,{variant:"outline",onClick:async()=>{try{await ev(null),u5.toast.success("Model override cleared."),B(!1)}catch(e){u5.toast.error(e instanceof Error?`Couldn't clear override: ${e.message}`:"Couldn't clear override — try again.")}},disabled:!eS,children:"Reset to default"}),(0,eo.jsx)(rm,{onClick:()=>B(!1),children:"Close"})]})]})}),(0,eo.jsx)("div",{className:"flex-1 overflow-y-auto overflow-x-hidden overscroll-contain",ref:Q,children:(0,eo.jsx)("div",{className:"mx-auto w-full max-w-[960px] px-4 pb-4 pt-3 sm:px-5",ref:J,children:ep?(0,eo.jsx)("div",{className:"flex items-center justify-center p-8",children:(0,eo.jsx)("p",{className:"text-muted-foreground",children:"Loading…"})}):(0,eo.jsxs)(eo.Fragment,{children:[0===e1.length&&!ed&&(0,eo.jsxs)("div",{className:"flex min-h-[42vh] flex-col items-center justify-center px-3 pt-12 text-center sm:pt-16",children:[(0,eo.jsx)("h2",{className:"text-pretty text-lg font-semibold sm:text-xl",children:"Where research evolves"}),(0,eo.jsx)("p",{className:"mt-2 max-w-lg text-sm text-muted-foreground",children:"Your self-evolving lab partner — reads the literature, runs experiments, and remembers what matters."}),(0,eo.jsx)("div",{className:"mt-4 flex max-w-2xl flex-wrap justify-center gap-2",children:Sm.map(e=>(0,eo.jsx)("button",{type:"button",onClick:()=>eX(e),className:"max-w-full rounded-full border border-border bg-card px-2.5 py-1.5 text-xs text-foreground shadow-sm transition-colors hover:border-[var(--color-border)] hover:bg-accent focus-visible:ring-2 focus-visible:ring-ring sm:text-sm",children:e},e))}),r&&a&&(0,eo.jsx)(xU,{onNavigate:r,onOpenThread:a})]}),e4.map((t,n)=>{if("action-group"===t.kind){let r=t.items[t.items.length-1].message.id,a=n===e4.length-1,i=ed&&a&&r===e5;return(0,eo.jsx)(xy,{items:t.items,isStreaming:i,defaultCollapsed:e2,isAtBottom:et,lastMessageId:e5,isLoading:ed,actionRequests:e0,submittedActionRequestKeys:te,onActionRequestSubmitted:tn,reviewConfigsMap:tr,stream:en,onResumeInterrupt:eg,graphId:e?.graph_id,onEditMessage:eK,autoApprove:P,subAgentSteps:eR,ui:ec,compactionAnchorId:e6,summarizationEvent:ex??null},`action-group-${t.items[0].message.id}`)}let r=t.data,a=ec?.filter(e=>e.metadata?.message_id===r.message.id),i=n===e4.length-1,s="human"!==r.message.type,o=e6===r.message.id;return(0,eo.jsxs)(el.default.Fragment,{children:[o&&ex&&(0,eo.jsx)(xb,{content:ex.content,summarizedCount:ex.cutoffIndex}),(0,eo.jsx)(xf,{message:r.message,toolCalls:r.toolCalls,isLoading:ed,isStreaming:ed&&i&&s,actionRequests:i?e0:void 0,submittedActionRequestKeys:te,onActionRequestSubmitted:tn,reviewConfigsMap:i?tr:void 0,ui:a,stream:en,onResumeInterrupt:eg,graphId:e?.graph_id,onEditMessage:eK,autoApprove:P,subAgentSteps:eR})]},r.message.id)}),ex&&!e6&&(0,eo.jsx)(xb,{content:ex.content,summarizedCount:ex.cutoffIndex}),eZ&&(0,eo.jsx)("div",{className:"mt-4",children:(0,eo.jsx)(xz,{questions:eZ,onSubmit:eQ,onCancel:eJ,isLoading:ed})})]})})}),(0,eo.jsxs)("div",{className:"flex-shrink-0 bg-background",children:[_.length>0&&(0,eo.jsx)("div",{"aria-label":"Queued messages",className:"relative mx-auto -mb-4 w-[calc(100%-16px)] max-w-[960px] px-2 sm:w-[calc(100%-24px)]",children:(0,eo.jsx)("div",{className:"rounded-b-lg rounded-t-2xl border border-border bg-background pb-5 pt-1 shadow-sm",children:_.map((e,t)=>{let n=b.trim().length>0||E.length>0;return(0,eo.jsxs)("div",{onDragOver:e=>e.preventDefault(),onDrop:()=>eq(e.id),className:"relative flex min-h-11 items-start gap-1.5 px-2 py-2 text-sm sm:gap-2 sm:px-3",children:[(0,eo.jsx)("button",{type:"button",draggable:!0,onDragStart:t=>{I.current=e.id,t.dataTransfer.effectAllowed="move",t.dataTransfer.setData("text/plain",String(e.id))},onDragEnd:()=>{I.current=null},onKeyDown:n=>{"ArrowUp"===n.key&&t>0&&(n.preventDefault(),e$(e.id,-1)),"ArrowDown"===n.key&&t<_.length-1&&(n.preventDefault(),e$(e.id,1))},"aria-label":`Reorder queued message ${t+1} of ${_.length}`,title:"Drag to reorder, or use the arrow keys",className:"mt-0.5 inline-flex size-5 shrink-0 cursor-grab items-center justify-center rounded text-muted-foreground/60 focus-visible:ring-2 focus-visible:ring-ring active:cursor-grabbing",children:(0,eo.jsx)(il,{className:"size-3.5","aria-hidden":"true"})}),(0,eo.jsx)(dz,{className:"mt-0.5 size-4 shrink-0 text-muted-foreground","aria-hidden":"true"}),(0,eo.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-0.5",children:[(0,eo.jsx)("span",{className:"line-clamp-2 whitespace-pre-wrap break-words pt-0.5 text-foreground",children:e.text}),e.files.length>0&&(0,eo.jsxs)("span",{className:"inline-flex items-center gap-1 text-xs text-muted-foreground",children:[(0,eo.jsx)(dH,{className:"size-3 shrink-0","aria-hidden":"true"}),e.files.length," file",1===e.files.length?"":"s"]})]}),(0,eo.jsxs)("div",{className:"flex shrink-0 items-center gap-0.5",children:[(0,eo.jsxs)("button",{type:"button",onClick:()=>eG(e.id),"aria-label":"Steer with this message next",title:"Submit next without interrupting the current turn",className:"inline-flex h-7 items-center gap-1 rounded-full px-2 text-xs font-medium text-muted-foreground transition-colors hover:bg-accent hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring",children:[(0,eo.jsx)(dz,{className:"size-3.5","aria-hidden":"true"}),(0,eo.jsx)("span",{className:"hidden sm:inline",children:"Steer"})]}),(0,eo.jsx)("button",{type:"button",onClick:()=>eV(e.id),"aria-label":"Remove queued message",title:"Remove from queue",className:"inline-flex size-7 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-accent hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring",children:(0,eo.jsx)(sI,{className:"size-3.5","aria-hidden":"true"})}),(0,eo.jsxs)("details",{className:"group/menu relative",onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||e.currentTarget.removeAttribute("open")},onKeyDown:e=>{"Escape"===e.key&&(e.currentTarget.removeAttribute("open"),e.currentTarget.querySelector("summary")?.focus())},children:[(0,eo.jsx)("summary",{"aria-label":"More queued message actions",title:"More actions",className:"inline-flex size-7 cursor-pointer list-none items-center justify-center rounded-full text-muted-foreground transition-colors hover:bg-accent hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring [&::-webkit-details-marker]:hidden",children:(0,eo.jsx)(dG,{className:"size-4","aria-hidden":"true"})}),(0,eo.jsxs)("div",{className:"absolute right-0 top-8 z-30 min-w-40 rounded-xl border border-border bg-background p-1.5 shadow-lg",children:[(0,eo.jsxs)("button",{type:"button",onClick:()=>ez(e.id),disabled:n,className:"flex w-full items-center gap-2 rounded-lg px-2.5 py-2 text-left text-sm text-foreground transition-colors hover:bg-accent focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-40",children:[(0,eo.jsx)(sA,{className:"size-4","aria-hidden":"true"}),"Edit message"]}),(0,eo.jsxs)("button",{type:"button",onClick:eW,className:"flex w-full items-center gap-2 rounded-lg px-2.5 py-2 text-left text-sm text-foreground transition-colors hover:bg-accent focus-visible:ring-2 focus-visible:ring-ring",children:[(0,eo.jsx)(d$,{className:"size-4","aria-hidden":"true"}),"Close queue"]})]})]})]})]},e.id)})})}),(0,eo.jsxs)("div",{className:n3("relative z-10 mx-auto mb-2 flex w-[calc(100%-16px)] max-w-[960px] flex-shrink-0 flex-col overflow-hidden rounded-xl border border-border bg-background transition-colors duration-200 ease-in-out sm:mb-4 sm:w-[calc(100%-24px)]","focus-within:ring-2 focus-within:ring-ring"),children:[(0,eo.jsxs)("div",{className:"flex max-h-60 flex-col overflow-y-auto border-b border-border bg-sidebar empty:hidden sm:max-h-72",children:[!p&&(0,eo.jsx)(eo.Fragment,{children:(s=ea.find(e=>"in_progress"===e.status),l=(o=ea.length)-e9.pending.length,c=o===l,u=e8?(0,eo.jsx)("button",{type:"button",onClick:()=>m(e=>"tasks"===e?null:"tasks"),className:"grid w-full cursor-pointer grid-cols-[auto_auto_1fr] items-center gap-2.5 px-3 py-2.5 text-left sm:px-4","aria-expanded":"tasks"===p,children:c?[(0,eo.jsx)(dD,{size:16,className:"text-[var(--color-success)]"},"icon"),(0,eo.jsx)("span",{className:"ml-[1px] min-w-0 truncate text-sm",children:"All tasks completed"},"label")]:null!=s?[(0,eo.jsx)("div",{children:Sf(s.status)},"icon"),(0,eo.jsxs)("span",{className:"ml-[1px] min-w-0 truncate text-sm",children:["Task"," ",o-e9.pending.length," ","of ",o]},"label"),(0,eo.jsx)("span",{className:"min-w-0 gap-2 truncate text-sm text-muted-foreground",children:s.content},"content")]:[(0,eo.jsx)(dP,{size:16,className:"text-[var(--color-text-tertiary)]"},"icon"),(0,eo.jsxs)("span",{className:"ml-[1px] min-w-0 truncate text-sm",children:["Task"," ",o-e9.pending.length," of"," ",o]},"label")]}):null,d=e7?(0,eo.jsxs)("button",{type:"button",onClick:()=>m(e=>"files"===e?null:"files"),className:"flex flex-shrink-0 cursor-pointer items-center gap-2 px-3 py-2.5 text-left text-sm sm:px-4","aria-expanded":"files"===p,children:[(0,eo.jsx)(dM,{size:16}),"Files (State)",(0,eo.jsx)("span",{className:"h-4 min-w-4 rounded-full bg-[var(--brand-solid)] px-0.5 text-center text-[10px] leading-[16px] text-[var(--brand-foreground)]",children:Object.keys(ei).length})]}):null,e8||e7?(0,eo.jsxs)("div",{className:"flex items-center",children:[(0,eo.jsx)("div",{className:"min-w-0 flex-1",children:u}),d]}):null)}),p&&(0,eo.jsxs)(eo.Fragment,{children:[(0,eo.jsxs)("div",{className:"sticky top-0 flex items-stretch bg-sidebar text-sm",children:[e8&&(0,eo.jsx)("button",{type:"button",className:"py-2.5 pr-4 first:pl-3 aria-expanded:font-semibold sm:first:pl-4",onClick:()=>m(e=>"tasks"===e?null:"tasks"),"aria-expanded":"tasks"===p,children:"Tasks"}),e7&&(0,eo.jsxs)("button",{type:"button",className:"inline-flex items-center gap-2 py-2.5 pr-4 first:pl-3 aria-expanded:font-semibold sm:first:pl-4",onClick:()=>m(e=>"files"===e?null:"files"),"aria-expanded":"files"===p,children:["Files (State)",(0,eo.jsx)("span",{className:"h-4 min-w-4 rounded-full bg-[var(--brand-solid)] px-0.5 text-center text-[10px] leading-[16px] text-[var(--brand-foreground)]",children:Object.keys(ei).length})]}),(0,eo.jsx)("button",{"aria-label":"Close",className:"flex-1",onClick:()=>m(null)})]}),(0,eo.jsxs)("div",{ref:h,className:"px-3 sm:px-4",children:["tasks"===p&&Object.entries(e9).filter(([e,t])=>t.length>0).map(([e,t])=>(0,eo.jsxs)("div",{className:"mb-4",children:[(0,eo.jsx)("h3",{className:"mb-1 text-[10px] font-semibold uppercase tracking-wider text-tertiary",children:{pending:"Pending",in_progress:"In Progress",completed:"Completed"}[e]}),(0,eo.jsx)("div",{className:"grid grid-cols-[auto_1fr] gap-3 rounded-sm p-1 pl-0 text-sm",children:t.map((t,n)=>(0,eo.jsxs)(el.Fragment,{children:[Sf(t.status,"mt-0.5"),(0,eo.jsx)("span",{className:"break-words text-inherit",children:t.content})]},`${e}_${t.id}_${n}`))})]},e)),"files"===p&&(0,eo.jsx)("div",{className:"mb-6",children:(0,eo.jsx)(Sr,{files:ei,setFiles:eu,editDisabled:!0===ed||void 0!==em})})]})]})]}),P&&(0,eo.jsxs)("div",{"aria-live":"polite",className:"flex items-center justify-between gap-3 border-b border-amber-300 bg-amber-50 px-3 py-2 text-xs text-amber-950 dark:border-amber-800 dark:bg-amber-950/40 dark:text-amber-100",children:[(0,eo.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,eo.jsx)(dB,{className:"size-3.5 shrink-0","aria-hidden":"true"}),"Tool actions will run without review."]}),(0,eo.jsx)("button",{type:"button",onClick:eF,className:"shrink-0 rounded px-2 py-1 font-semibold transition-colors hover:bg-amber-200 focus-visible:ring-2 focus-visible:ring-amber-700 dark:hover:bg-amber-900",children:"Turn Off"})]}),(eC||e_>0)&&(0,eo.jsxs)("div",{className:"flex items-center gap-1.5 border-t border-border px-3 py-1.5 text-xs text-muted-foreground",children:[eC&&(0,eo.jsxs)("button",{type:"button",onClick:()=>B(!0),title:"Click to change model for this chat","aria-label":"Change model for this chat",className:"-mx-1 flex items-center gap-1.5 rounded px-1 py-0.5 transition-colors hover:bg-accent hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:[(0,eo.jsx)(dU,{className:"size-3.5 shrink-0 text-[var(--brand)]","aria-hidden":"true"}),(0,eo.jsx)("span",{className:"font-medium text-foreground",children:eC.name}),eC.provider&&(0,eo.jsxs)("span",{children:["· ",eC.provider]})]}),e_>0&&(0,eo.jsxs)("button",{type:"button",onClick:t,title:`${e_} background agent${1===e_?"":"s"} running — click to view`,"aria-label":`${e_} background agent${1===e_?"":"s"} running — view`,className:"ml-auto flex shrink-0 items-center gap-1.5 rounded px-1.5 py-0.5 font-medium text-[var(--brand)] transition-colors hover:bg-accent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:[(0,eo.jsx)("span",{className:"size-2 animate-pulse rounded-full bg-[var(--color-warning)]","aria-hidden":"true"}),e_," agent",1===e_?"":"s"]})]}),(0,eo.jsxs)("form",{onSubmit:eH,className:"flex flex-col",children:[E.length>0&&(0,eo.jsx)("div",{"aria-label":"Attached files",className:"flex flex-wrap gap-2 border-b border-border px-3 py-2",children:E.map(e=>(0,eo.jsxs)("span",{className:"inline-flex max-w-full items-center gap-1.5 rounded-md border border-border bg-muted px-2 py-1 text-xs text-foreground",children:[(0,eo.jsx)(dM,{className:"size-3.5 shrink-0 text-muted-foreground","aria-hidden":"true"}),(0,eo.jsx)("span",{className:"max-w-48 truncate",title:e.path,children:e.name}),(0,eo.jsx)("button",{type:"button",onClick:()=>eU(e.path),"aria-label":`Remove ${e.name} from this message`,title:`Remove ${e.name} from this message`,className:"rounded-sm text-muted-foreground transition-colors hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring",children:(0,eo.jsx)(ng,{className:"size-3.5","aria-hidden":"true"})})]},e.path))}),(0,eo.jsx)("textarea",{ref:f,value:b,onChange:e=>y(e.target.value),onKeyDown:eY,"aria-label":"Message",disabled:eL,placeholder:eL?"Respond to the request above to continue…":ed?"Queue a follow-up — sends when this turn finishes…":"Ask EvoScientist anything…",className:"font-inherit field-sizing-content flex-1 resize-none border-0 bg-transparent px-3.5 pb-2.5 pt-3 text-sm leading-6 text-primary outline-none placeholder:text-tertiary disabled:cursor-not-allowed sm:px-4",rows:1}),(0,eo.jsxs)("div",{className:"flex items-center justify-between gap-2 p-2 sm:p-2.5",children:[(0,eo.jsxs)("div",{className:"flex items-center gap-1",children:[(0,eo.jsx)("input",{ref:g,type:"file",multiple:!0,onChange:ej,disabled:!e||eL||S,className:"hidden"}),(0,eo.jsx)("button",{type:"button",onClick:()=>g.current?.click(),disabled:!e||eL||S,"aria-label":"Upload files to workspace",title:"Upload files to workspace (max 50 MB each)",className:"inline-flex size-8 items-center justify-center rounded-full text-muted-foreground transition-colors hover:bg-accent hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",children:(0,eo.jsx)(dH,{className:"size-4","aria-hidden":"true"})}),(0,eo.jsxs)("button",{type:"button",onClick:()=>P?eF():j(!0),"aria-pressed":P,title:"Auto-approve all tool actions in this conversation",className:n3("inline-flex items-center gap-1.5 rounded-md px-2 py-1 text-xs font-medium transition-colors",P?"bg-amber-600 text-white hover:bg-amber-700":"text-muted-foreground hover:bg-accent hover:text-foreground"),children:[(0,eo.jsx)(dj,{className:"size-3.5","aria-hidden":"true"}),(0,eo.jsx)("span",{className:"hidden min-[360px]:inline",children:P?"Auto-approve On":"Auto-approve"})]}),r&&v&&(0,eo.jsxs)("button",{type:"button",onClick:()=>r({view:"workspace"}),title:`${i?"Close":"Open"} workspace: ${v}`,"aria-label":`${i?"Close":"Open"} workspace: ${v}`,"aria-pressed":!!i,className:"inline-flex min-w-0 items-center gap-1.5 rounded-md px-2 py-1 text-xs font-medium text-muted-foreground transition-colors hover:bg-accent hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring",children:[(0,eo.jsx)(dF,{className:"size-3.5 flex-shrink-0","aria-hidden":"true"}),(0,eo.jsx)("span",{className:"hidden max-w-[140px] truncate font-mono sm:inline lg:max-w-[220px]",children:v.split("/").filter(Boolean).pop()||v})]})]}),(0,eo.jsx)("div",{className:"flex justify-end gap-2",children:(0,eo.jsx)(rm,{type:ed?"button":"submit",variant:ed?"destructive":"default",onClick:ed?ef:eH,disabled:!ed&&(eD||S||!b.trim()),"aria-label":ed?"Stop generating":"Send message",children:ed?(0,eo.jsxs)(eo.Fragment,{children:[(0,eo.jsx)(dO,{size:14}),(0,eo.jsx)("span",{className:"hidden sm:inline",children:"Stop"})]}):(0,eo.jsxs)(eo.Fragment,{children:[(0,eo.jsx)(dL,{size:18}),(0,eo.jsx)("span",{className:"hidden sm:inline",children:"Send"})]})})})]})]})]})]})]})});Sg.displayName="ChatInterface";let Sb=nf("rotate-cw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]]),Sy=nf("circle-arrow-up",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 12-4-4-4 4",key:"177agl"}],["path",{d:"M12 16V8",key:"1sbj14"}]]),SE=nf("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]),Sx=el.default.memo(({skill:e,onClose:t})=>{let[n,r]=(0,el.useState)(null),[a,i]=(0,el.useState)(!1),[s,o]=(0,el.useState)(null);if((0,el.useEffect)(()=>{if(!e)return;let t=!1;return r(null),o(null),i(!0),fetch(`/api/skills/detail?name=${encodeURIComponent(e.name)}`).then(async e=>{let t=await e.json().catch(()=>null);if(!e.ok)throw Error(t?.error||`Failed to load (${e.status})`);return t}).then(e=>{t||r(e)}).catch(e=>{t||o(e.message??"Failed to load skill detail.")}).finally(()=>{t||i(!1)}),()=>{t=!0}},[e]),!e)return null;let l=n?.title??e.title,c=n?.version??e.version,u=n?.description??e.description,d=n?.installed??e.installed,p=n?.body;return(0,eo.jsx)(n4,{open:!0,onOpenChange:t,children:(0,eo.jsxs)(n9,{"aria-describedby":void 0,className:"flex h-[80vh] max-h-[80vh] min-w-[60vw] flex-col p-6",children:[(0,eo.jsx)(re,{className:"sr-only",children:l}),(0,eo.jsxs)("div",{className:"mb-3 flex items-start gap-3 border-b border-border pb-4",children:[(0,eo.jsx)(sN,{className:"mt-1 size-6 shrink-0 text-[var(--brand)]","aria-hidden":"true"}),(0,eo.jsx)("div",{className:"min-w-0 flex-1",children:(0,eo.jsxs)("div",{className:"flex flex-wrap items-center gap-x-2 gap-y-0.5",children:[(0,eo.jsx)("h2",{className:"break-words text-lg font-semibold",children:l}),c&&(0,eo.jsxs)("span",{className:"font-mono text-xs text-muted-foreground",children:["v",c]}),null!=e.fileCount&&(0,eo.jsxs)("span",{className:"text-xs text-muted-foreground",children:["· ",e.fileCount," file",1===e.fileCount?"":"s"]}),d&&(0,eo.jsxs)("span",{className:"bg-[var(--brand)]/10 inline-flex items-center gap-1 rounded-full px-2 py-0.5 text-[11px] font-medium text-[var(--brand)]",children:[(0,eo.jsx)(SE,{className:"size-3","aria-hidden":"true"}),"Installed"]})]})})]}),(0,eo.jsx)(on,{className:"min-h-0 flex-1",children:(0,eo.jsxs)("div",{className:"pr-3",children:[(0,eo.jsx)("p",{className:"whitespace-pre-wrap text-sm leading-relaxed text-foreground",children:u||"No description."}),(0,eo.jsx)("div",{className:"mt-4 border-t border-border pt-4",children:a?(0,eo.jsxs)("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[(0,eo.jsx)(sT,{className:"size-4 animate-spin","aria-hidden":"true"}),"Loading skill contents…"]}):s?(0,eo.jsx)("p",{className:"text-sm text-muted-foreground",children:s}):p?(0,eo.jsx)(E8,{content:p}):(0,eo.jsx)("p",{className:"text-sm text-muted-foreground",children:"No additional contents."})})]})})]})})});function SS(){let[e,t]=(0,el.useState)([]),[n,r]=(0,el.useState)([]),[a,i]=(0,el.useState)(!0),[s,o]=(0,el.useState)(null),[l,c]=(0,el.useState)(null),[u,d]=(0,el.useState)({}),[p,m]=(0,el.useState)(null),[h,f]=(0,el.useState)(null),g=(0,el.useCallback)(async(e=!1)=>{i(!0),c(null),o(null);let[n,a]=await Promise.allSettled([fetch(`/api/skills/catalog${e?"?refresh=1":""}`).then(async e=>{let t=await e.json();if(!e.ok)throw Error(t.error||"Failed to load catalog");return t.skills??[]}),fetch("/api/skills").then(async e=>{let t=await e.json();if(!e.ok)throw Error(t.error||"Failed to load skills");return t.skills??[]})]),s="fulfilled"===n.status?n.value:[];if("rejected"===n.status&&o(n.reason instanceof Error?n.reason.message:"Failed to load the official catalog."),t(s),"fulfilled"===a.status){let e=new Set(s.map(e=>e.name));r(a.value.filter(t=>!e.has(t.name)))}else r([]),c(a.reason instanceof Error?a.reason.message:"Failed to load installed skills.");i(!1)},[]);(0,el.useEffect)(()=>{g()},[g]);let b=async(e,n="install")=>{d(t=>({...t,[e]:n})),c(null);try{let n=await fetch("/api/skills/install",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:e})}),r=await n.json();if(!n.ok)throw Error(r.error||"Failed to install");t(t=>t.map(t=>t.name===e?{...t,installed:!0,updateAvailable:!1,installedVersion:t.latestVersion??t.installedVersion}:t))}catch(e){c(e instanceof Error?e.message:`Failed to ${n}`)}finally{d(t=>{let n={...t};return delete n[e],n})}},y=async(e,n)=>{d(t=>({...t,[e]:"uninstall"})),c(null);try{let a=await fetch(`/api/skills?name=${encodeURIComponent(e)}`,{method:"DELETE"});if(!a.ok){let e=await a.json();throw Error(e.error||"Failed to uninstall")}n?t(t=>t.map(t=>t.name===e?{...t,installed:!1}:t)):r(t=>t.filter(t=>t.name!==e))}catch(e){c(e instanceof Error?e.message:"Failed to uninstall")}finally{d(t=>{let n={...t};return delete n[e],n})}},E=async()=>{h&&(f(null),await y(h.name,h.isCatalog))};return(0,eo.jsxs)("div",{className:"h-full overflow-y-auto",children:[(0,eo.jsxs)("div",{className:"mx-auto max-w-[960px] px-4 py-5 sm:px-5 sm:py-6",children:[(0,eo.jsxs)("header",{className:"mb-4 flex items-start justify-between gap-3",children:[(0,eo.jsxs)("div",{children:[(0,eo.jsx)("h2",{className:"text-xl font-semibold sm:text-2xl",children:"Research Skills"}),(0,eo.jsxs)("p",{className:"mt-1 text-sm leading-6 text-muted-foreground",children:["Install official skills from the"," ",(0,eo.jsx)("a",{href:"https://github.com/EvoScientist/EvoSkills",target:"_blank",rel:"noreferrer",className:"underline underline-offset-2 hover:text-foreground",children:"EvoSkills"})," ","catalog, or remove ones you don't need."]})]}),(0,eo.jsx)("button",{type:"button",onClick:()=>g(!0),disabled:a,"aria-label":"Refresh",className:"rounded-md p-2 text-muted-foreground transition-colors hover:bg-accent hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring",children:(0,eo.jsx)(Sb,{className:a?"size-4 animate-spin":"size-4","aria-hidden":"true"})})]}),l&&(0,eo.jsx)("p",{role:"alert",className:"mb-4 text-sm text-destructive",children:l}),a?(0,eo.jsxs)("div",{className:"flex items-center gap-2 text-sm text-muted-foreground","aria-live":"polite",children:[(0,eo.jsx)(sT,{className:"size-4 animate-spin","aria-hidden":"true"}),"Loading skills…"]}):(0,eo.jsxs)("div",{className:"space-y-6",children:[(0,eo.jsxs)("section",{children:[(0,eo.jsx)("h3",{className:"mb-2.5 text-xs font-semibold uppercase tracking-wider text-tertiary",children:"Official catalog"}),s?(0,eo.jsx)("p",{className:"text-sm text-muted-foreground",children:s}):0===e.length?(0,eo.jsx)("p",{className:"text-sm text-muted-foreground",children:"No skills found in the catalog."}):(0,eo.jsx)("div",{className:"grid grid-cols-1 gap-2.5 sm:grid-cols-2",children:e.map(e=>(0,eo.jsx)(ST,{title:e.title,description:e.description,meta:`${e.fileCount} file${1===e.fileCount?"":"s"}`,installed:e.installed,installedVersion:e.installedVersion,latestVersion:e.latestVersion,updateAvailable:e.updateAvailable,busy:u[e.name],onOpen:()=>m({name:e.name,title:e.title,description:e.description,version:e.installed?e.installedVersion:e.latestVersion,fileCount:e.fileCount,installed:e.installed}),onInstall:()=>b(e.name),onUpdate:()=>b(e.name,"update"),onUninstall:()=>f({name:e.name,title:e.title,isCatalog:!0})},e.name))})]}),n.length>0&&(0,eo.jsxs)("section",{children:[(0,eo.jsx)("h3",{className:"mb-2.5 text-xs font-semibold uppercase tracking-wider text-tertiary",children:"Other installed skills"}),(0,eo.jsx)("div",{className:"grid grid-cols-1 gap-2.5 sm:grid-cols-2",children:n.map(e=>(0,eo.jsx)(ST,{title:e.title,description:e.description,installed:!0,busy:u[e.name],onOpen:()=>m({name:e.name,title:e.title,description:e.description,installed:!0}),onUninstall:()=>f({name:e.name,title:e.title,isCatalog:!1})},e.name))})]})]})]}),(0,eo.jsx)(Sx,{skill:p,onClose:()=>m(null)}),(0,eo.jsx)(n4,{open:null!==h,onOpenChange:e=>{e||f(null)},children:(0,eo.jsxs)(n9,{className:"sm:max-w-md",children:[(0,eo.jsxs)(n8,{children:[(0,eo.jsx)(re,{children:"Uninstall skill?"}),(0,eo.jsxs)(rt,{children:["“",h?.title??h?.name,"” will be removed from this Web UI. You can install it again later."]})]}),(0,eo.jsxs)(n7,{children:[(0,eo.jsx)(rm,{variant:"outline",onClick:()=>f(null),children:"Cancel"}),(0,eo.jsx)(rm,{onClick:E,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:"Uninstall"})]})]})})]})}function ST({title:e,description:t,meta:n,installed:r,installedVersion:a,latestVersion:i,updateAvailable:s,busy:o,onOpen:l,onInstall:c,onUpdate:u,onUninstall:d}){let p=r?a&&`v${a}`:i&&`v${i}`;return(0,eo.jsxs)("div",{className:"flex flex-col rounded-lg border border-border bg-card p-3",children:[(0,eo.jsxs)("button",{type:"button",onClick:l,className:"-m-1 flex items-start gap-2.5 rounded-md p-1 text-left transition-colors hover:bg-muted/50 focus-visible:ring-2 focus-visible:ring-ring",title:"View details",children:[(0,eo.jsx)(sN,{className:"mt-0.5 size-5 shrink-0 text-[var(--brand)]","aria-hidden":"true"}),(0,eo.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,eo.jsxs)("div",{className:"flex flex-wrap items-center gap-x-2 gap-y-0.5",children:[(0,eo.jsx)("h3",{className:"break-words text-lg font-medium leading-tight",children:e}),p&&(0,eo.jsx)("span",{className:"shrink-0 font-mono text-xs text-muted-foreground",children:p}),n&&(0,eo.jsxs)("span",{className:"shrink-0 text-xs text-muted-foreground",children:["· ",n]})]}),(0,eo.jsx)("p",{className:"mt-1 line-clamp-2 text-sm leading-6 text-muted-foreground",children:t||"No description."})]})]}),(0,eo.jsxs)("div",{className:"mt-2.5 flex items-center justify-end gap-2",children:[r&&s&&(0,eo.jsxs)("button",{type:"button",onClick:u,disabled:!!o,className:"inline-flex items-center gap-1.5 rounded-md bg-[var(--brand-solid)] px-2.5 py-1 text-xs font-medium text-[var(--brand-foreground)] transition-opacity hover:opacity-90 focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-50",title:i?`Update to v${i}`:"Update",children:["update"===o?(0,eo.jsx)(sT,{className:"size-3.5 animate-spin","aria-hidden":"true"}):(0,eo.jsx)(Sy,{className:"size-3.5","aria-hidden":"true"}),"update"===o?"Updating…":i?`Update → v${i}`:"Update"]}),r?(0,eo.jsxs)("button",{type:"button",onClick:d,disabled:!!o,className:"inline-flex items-center gap-1.5 rounded-md border border-border px-2.5 py-1 text-xs font-medium text-muted-foreground transition-colors hover:border-destructive/40 hover:bg-destructive/10 hover:text-destructive focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-50",children:["uninstall"===o?(0,eo.jsx)(sT,{className:"size-3.5 animate-spin","aria-hidden":"true"}):(0,eo.jsx)(sI,{className:"size-3.5","aria-hidden":"true"}),"uninstall"===o?"Removing…":"Uninstall"]}):(0,eo.jsxs)("button",{type:"button",onClick:c,disabled:!!o,className:"inline-flex items-center gap-1.5 rounded-md bg-[var(--brand-solid)] px-2.5 py-1 text-xs font-medium text-[var(--brand-foreground)] transition-opacity hover:opacity-90 focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-50",children:["install"===o?(0,eo.jsx)(sT,{className:"size-3.5 animate-spin","aria-hidden":"true"}):(0,eo.jsx)(sS,{className:"size-3.5","aria-hidden":"true"}),"install"===o?"Installing…":"Install"]})]})]})}Sx.displayName="SkillDetailDialog";let Sv=nf("fingerprint",[["path",{d:"M12 10a2 2 0 0 0-2 2c0 1.02-.1 2.51-.26 4",key:"1nerag"}],["path",{d:"M14 13.12c0 2.38 0 6.38-1 8.88",key:"o46ks0"}],["path",{d:"M17.29 21.02c.12-.6.43-2.3.5-3.02",key:"ptglia"}],["path",{d:"M2 12a10 10 0 0 1 18-6",key:"ydlgp0"}],["path",{d:"M2 16h.01",key:"1gqxmh"}],["path",{d:"M21.8 16c.2-2 .131-5.354 0-6",key:"drycrb"}],["path",{d:"M5 19.5C5.5 18 6 15 6 12a6 6 0 0 1 .34-2",key:"1tidbn"}],["path",{d:"M8.65 22c.21-.66.45-1.32.57-2",key:"13wd9y"}],["path",{d:"M9 6.8a6 6 0 0 1 9 5.2v2",key:"1fr1j5"}]]),SA=nf("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]),S_=nf("maximize-2",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]]),Sk="rounded border border-border bg-background p-1.5 text-muted-foreground shadow-sm transition-colors hover:bg-accent hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-50",SN=["complements","contradicts","supersedes"];function Sw({node:e,edges:t,nodeMap:n,onClose:r,onNavigate:a}){let i,[s,o]=(0,el.useState)(null),[l,c]=(0,el.useState)(!0),[u,d]=(0,el.useState)(null);(0,el.useEffect)(()=>{let t=new AbortController;return c(!0),o(null),d(null),fetch(`/api/memory?path=${encodeURIComponent(e.path)}`,{cache:"no-store",signal:t.signal}).then(async e=>{let t=await e.json().catch(()=>({}));if(!e.ok)throw Error(t.error||"Failed to load observation.");o(t.content??null)}).catch(e=>{t.signal.aborted||(o(null),d(e instanceof Error?e.message:"Failed to load observation."))}).finally(()=>{t.signal.aborted||c(!1)}),()=>t.abort()},[e.path]);let p=(i=new Set,t.filter(t=>{if(t.source!==e.id&&t.target!==e.id)return!1;let n=t.source===e.id?t.target:t.source,r=`${n}::${t.relation}`;return!i.has(r)&&(i.add(r),!0)})),m=s?s.replace(/^---\r?\n[\s\S]*?\r?\n---\r?\n?/,"").trim():"";return(0,eo.jsxs)("div",{className:"flex h-full flex-col overflow-hidden border-l border-border bg-background shadow-xl md:shadow-none",children:[(0,eo.jsxs)("div",{className:"flex items-start justify-between gap-2 border-b border-border px-4 py-3",children:[(0,eo.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,eo.jsxs)("p",{className:"text-xs font-medium uppercase tracking-wide text-muted-foreground",children:[e.memory_type," · ",e.scope]}),(0,eo.jsx)("h3",{className:"mt-0.5 line-clamp-3 text-sm font-semibold leading-snug text-foreground",children:e.summary}),e.created_at&&(0,eo.jsx)("p",{className:"mt-1 text-xs text-muted-foreground",children:(e=>{try{let t=new Date(e);if(Number.isNaN(t.getTime()))return e;return t.toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric"})}catch{return e}})(e.created_at)})]}),(0,eo.jsx)("button",{type:"button",onClick:r,className:"mt-0.5 inline-flex size-8 flex-shrink-0 items-center justify-center rounded text-muted-foreground transition-colors hover:bg-accent hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring","aria-label":"Close observation details",title:"Close observation details",children:(0,eo.jsx)(ng,{className:"h-4 w-4","aria-hidden":"true"})})]}),(0,eo.jsxs)("div",{className:"flex-1 overflow-y-auto","aria-live":l?"polite":"off",children:[p.length>0&&(0,eo.jsxs)("div",{className:"border-b border-border px-4 py-3",children:[(0,eo.jsx)("p",{className:"mb-2 text-xs font-medium uppercase tracking-wide text-muted-foreground",children:"Relations"}),(0,eo.jsx)("ul",{className:"space-y-1.5",children:p.map((t,r)=>{let i=t.source===e.id?t.target:t.source,s=n.get(i);return(0,eo.jsxs)("li",{className:"flex items-start gap-2",children:[(0,eo.jsx)("span",{className:"mt-0.5 flex-shrink-0 rounded px-1.5 py-0.5 text-[10px] font-semibold text-white",style:{background:xA(t.relation)},children:xN(t.relation)}),s?(0,eo.jsx)("button",{type:"button",onClick:()=>a(i),className:"min-w-0 rounded-sm text-left text-xs text-foreground hover:underline focus-visible:ring-2 focus-visible:ring-ring",children:s.summary}):(0,eo.jsx)("span",{className:"text-xs text-muted-foreground",children:i})]},r)})})]}),(0,eo.jsx)("div",{className:"px-4 py-3",children:l?(0,eo.jsx)("p",{className:"text-xs text-muted-foreground",children:"Loading…"}):u?(0,eo.jsx)("p",{role:"alert",className:"text-xs text-destructive",children:u}):m?(0,eo.jsx)(E8,{content:m,className:"text-xs leading-relaxed [&_h2]:mb-2 [&_h2]:mt-4 [&_h2]:text-sm [&_p]:mb-3"}):(0,eo.jsx)("p",{className:"text-xs text-muted-foreground",children:"This observation has no body content."})})]})]})}function SI({data:e,selectedId:t,onSelect:n,w:r,h:a}){let i=(0,el.useMemo)(()=>{let t=new Set;return e.edges.filter(e=>{let n=[e.source,e.target].sort().join("::");return!t.has(n)&&(t.add(n),!0)})},[e.edges]),s=function(e,t,n,r){let[a,i]=(0,el.useState)([]),s=(0,el.useRef)([]),o=(0,el.useRef)(null),l=(0,el.useRef)(0),c=(0,el.useRef)(n),u=(0,el.useRef)(r);return(0,el.useEffect)(()=>{c.current=n,u.current=r},[n,r]),(0,el.useEffect)(()=>{var n,r;let a,d;if(0===e.length||0===c.current||0===u.current){i([]),s.current=[];return}let p=(n=c.current,r=u.current,d=Math.min(n,r)*Math.max(.28,.12*Math.sqrt(a=Math.max(e.length,1))),e.map((e,t)=>{let i=t/a*2*Math.PI;return{id:e.id,x:n/2+d*Math.cos(i)+xv(e.id,0),y:r/2+d*Math.sin(i)+xv(e.id,1),vx:0,vy:0}}));s.current=p,i(p),l.current=0,o.current&&cancelAnimationFrame(o.current);let m=0,h=()=>{let{positions:e,energy:n}=function(e,t,n,r){let a=n/2,i=r/2,s=new Float64Array(e.length),o=new Float64Array(e.length),l=new Map(e.map((e,t)=>[e.id,t]));for(let t=0;t<e.length;t++)for(let n=t+1;n<e.length;n++){let r=e[t].x-e[n].x,a=e[t].y-e[n].y,i=Math.max(Math.sqrt(r*r+a*a),1),l=6e3/(i*i),c=r/i,u=a/i;s[t]+=l*c,o[t]+=l*u,s[n]-=l*c,o[n]-=l*u}for(let n of t){let t=l.get(n.source),r=l.get(n.target);if(null==t||null==r)continue;let a=e[r].x-e[t].x,i=e[r].y-e[t].y,c=Math.max(Math.sqrt(a*a+i*i),1),u=.04*(c-180),d=a/c,p=i/c;s[t]+=u*d,o[t]+=u*p,s[r]-=u*d,o[r]-=u*p}for(let t=0;t<e.length;t++)s[t]+=.02*(a-e[t].x),o[t]+=.02*(i-e[t].y);let c=0;return{positions:e.map((e,t)=>{let n=(e.vx+s[t])*.78,r=(e.vy+o[t])*.78,a=Math.sqrt(n*n+r*r);return a>12&&(n=n/a*12,r=r/a*12),c+=n*n+r*r,{id:e.id,x:e.x+n,y:e.y+r,vx:n,vy:r}}),energy:c}}(s.current,t,c.current,u.current);s.current=e,l.current++,++m%2==0&&i([...e]),l.current<600&&n>.3?o.current=requestAnimationFrame(h):i([...s.current])};return o.current=requestAnimationFrame(h),()=>{o.current&&cancelAnimationFrame(o.current)}},[e,t]),a}(e.nodes,i,r,a),[o,l]=(0,el.useState)(0),[c,u]=(0,el.useState)(0),[d,p]=(0,el.useState)(1),m=(0,el.useRef)(null),h=(0,el.useRef)(null),[f,g]=(0,el.useState)(new Set(SN)),[b,y]=(0,el.useState)(new Set(["semantic","procedural"])),E=(0,el.useMemo)(()=>new Map(s.map(e=>[e.id,e])),[s]),x=(0,el.useMemo)(()=>new Map(e.nodes.map(e=>[e.id,e])),[e.nodes]),S=(0,el.useRef)({tx:o,ty:c,scale:d});S.current={tx:o,ty:c,scale:d};let T=(0,el.useCallback)((e,t,n)=>{let{tx:r,ty:a,scale:i}=S.current,s=Math.max(.2,Math.min(5,i*n)),o=s/i;p(s),l(e-o*(e-r)),u(t-o*(t-a))},[]),v=(0,el.useCallback)(e=>{e.preventDefault();let t=e.currentTarget.getBoundingClientRect();T(e.clientX-t.left,e.clientY-t.top,e.deltaY<0?1.1:.9)},[T]),A=(0,el.useCallback)(e=>{(e.target===e.currentTarget||"svg"===e.target.tagName)&&(h.current={startX:e.clientX,startY:e.clientY,tx:o,ty:c},e.currentTarget.setPointerCapture(e.pointerId))},[o,c]),_=(0,el.useCallback)(e=>{h.current&&(l(h.current.tx+e.clientX-h.current.startX),u(h.current.ty+e.clientY-h.current.startY))},[]),k=(0,el.useCallback)(()=>{h.current=null},[]);if(0===r||0===a)return null;let N=new Set(e.nodes.filter(e=>b.has("procedural"===e.memory_type?"procedural":"semantic")).map(e=>e.id)),w=e.edges.filter(e=>N.has(e.source)&&N.has(e.target)&&(f.has(e.relation)||!SN.includes(e.relation)));return(0,eo.jsxs)(eo.Fragment,{children:[(0,eo.jsxs)("div",{className:"absolute left-3 top-3 z-10 flex gap-1",children:[(0,eo.jsx)("button",{type:"button",onClick:()=>T(r/2,a/2,1.25),className:Sk,"aria-label":"Zoom in observation graph",title:"Zoom in",children:(0,eo.jsx)(E$,{className:"h-3.5 w-3.5","aria-hidden":"true"})}),(0,eo.jsx)("button",{type:"button",onClick:()=>T(r/2,a/2,.8),className:Sk,"aria-label":"Zoom out observation graph",title:"Zoom out",children:(0,eo.jsx)(Eq,{className:"h-3.5 w-3.5","aria-hidden":"true"})}),(0,eo.jsx)("button",{type:"button",onClick:()=>{l(0),u(0),p(1)},className:Sk,"aria-label":"Reset observation graph view",title:"Reset view",children:(0,eo.jsx)(S_,{className:"h-3.5 w-3.5","aria-hidden":"true"})})]}),(0,eo.jsxs)("div",{className:"absolute right-3 top-3 z-10 flex max-w-[calc(100%-1.5rem)] select-none flex-col gap-1 rounded border border-border bg-background/90 px-2.5 py-2 text-[11px] shadow-sm backdrop-blur-sm",children:[["complements","contradicts","supersedes"].map(e=>{let t=f.has(e);return(0,eo.jsxs)("button",{type:"button",onClick:()=>{g(t=>{let n=new Set(t);if(n.has(e)){if(1===n.size)return t;n.delete(e)}else n.add(e);return n})},"aria-pressed":t,title:`${t?"Hide":"Show"} ${e} edges`,className:`flex items-center gap-1.5 text-left transition-opacity ${t?"opacity-100":"opacity-35"}`,children:[(0,eo.jsx)("span",{className:"inline-block h-2 w-6 flex-shrink-0 rounded-sm",style:{background:xA(e)}}),(0,eo.jsx)("span",{className:"capitalize text-muted-foreground",children:xN(e)})]},e)}),(0,eo.jsx)("div",{className:"mt-1 flex flex-col gap-0.5 border-t border-border pt-1",children:[["semantic","Semantic"],["procedural","Procedural"]].map(([e,t])=>{let n=b.has(e);return(0,eo.jsxs)("button",{type:"button",onClick:()=>{y(t=>{let n=new Set(t);if(n.has(e)){if(1===n.size)return t;n.delete(e)}else n.add(e);return n})},"aria-pressed":n,title:`${n?"Hide":"Show"} ${t.toLowerCase()} nodes`,className:`flex items-center gap-1.5 text-left transition-opacity ${n?"opacity-100":"opacity-35"}`,children:[(0,eo.jsx)("span",{className:"inline-block h-3 w-3 flex-shrink-0 rounded-full",style:{background:xk(e)}}),(0,eo.jsx)("span",{className:"text-muted-foreground",children:t})]},e)})})]}),(0,eo.jsxs)("svg",{ref:m,width:r,height:a,className:"absolute inset-0 cursor-grab active:cursor-grabbing",style:{userSelect:"none"},role:"img","aria-label":"Observation relationship graph",onWheel:v,onPointerDown:A,onPointerMove:_,onPointerUp:k,onClick:e=>{(e.target===e.currentTarget||"svg"===e.target.tagName)&&n(null)},children:[(0,eo.jsx)("defs",{children:["complements","contradicts","supersedes","default"].map(e=>(0,eo.jsx)("marker",{id:`arrow-${e}`,viewBox:"0 0 10 10",markerWidth:"7",markerHeight:"7",refX:"10",refY:"5",orient:"auto",markerUnits:"userSpaceOnUse",children:(0,eo.jsx)("path",{d:"M0,1.5 L10,5 L0,8.5 z",fill:xA(e)})},e))}),(0,eo.jsxs)("g",{transform:`translate(${o},${c}) scale(${d})`,children:[w.map((e,t)=>{let n=E.get(e.source),r=E.get(e.target);if(!n||!r)return null;let a=x.get(e.source),i=x.get(e.target),s=a?x_(a.degree):9,o=i?x_(i.degree):9,l=r.x-n.x,c=r.y-n.y,u=Math.max(Math.sqrt(l*l+c*c),1),d=l/u,p=c/u,m=n.x+d*s,h=n.y+p*s,f=r.x-d*(o+2),g=r.y-p*(o+2),b=e.relation in{complements:1,contradicts:1,supersedes:1}?e.relation:"default",y=xA(e.relation),S=`edge-grad-${t}`,T="complements"===e.relation,v=Math.min(45,7/Math.max(u-s-(o+2),1)*100);return(0,eo.jsxs)("g",{children:[(0,eo.jsx)("linearGradient",{id:S,gradientUnits:"userSpaceOnUse",x1:m,y1:h,x2:f,y2:g,children:T?(0,eo.jsxs)(eo.Fragment,{children:[(0,eo.jsx)("stop",{offset:"0%",stopColor:y,stopOpacity:0}),(0,eo.jsx)("stop",{offset:`${v}%`,stopColor:y,stopOpacity:.7}),(0,eo.jsx)("stop",{offset:`${100-v}%`,stopColor:y,stopOpacity:.7}),(0,eo.jsx)("stop",{offset:"100%",stopColor:y,stopOpacity:0})]}):(0,eo.jsxs)(eo.Fragment,{children:[(0,eo.jsx)("stop",{offset:"0%",stopColor:y,stopOpacity:.7}),(0,eo.jsx)("stop",{offset:`${100-v}%`,stopColor:y,stopOpacity:.7}),(0,eo.jsx)("stop",{offset:"100%",stopColor:y,stopOpacity:0})]})}),(0,eo.jsx)("line",{x1:m,y1:h,x2:f,y2:g,stroke:`url(#${S})`,strokeWidth:1.5,strokeDasharray:"contradicts"===e.relation?"5,3":void 0,markerEnd:T?void 0:`url(#arrow-${b})`})]},t)}),e.nodes.map(e=>{let r=E.get(e.id);if(!r||!N.has(e.id))return null;let a=x_(e.degree),i=e.id===t,s=e.summary.length>28?e.summary.slice(0,26)+"…":e.summary;return(0,eo.jsxs)("g",{role:"button",tabIndex:0,"aria-label":`Select observation: ${e.summary}`,className:"outline-none [&:focus-visible]:outline-none [&:focus]:outline-none",style:{cursor:"pointer"},onClick:r=>{r.stopPropagation(),n(e.id===t?null:e.id)},onKeyDown:r=>{("Enter"===r.key||" "===r.key)&&(r.preventDefault(),n(e.id===t?null:e.id))},children:[i&&(0,eo.jsxs)(eo.Fragment,{children:[(0,eo.jsx)("circle",{cx:r.x,cy:r.y,r:a+7,fill:"none",style:{stroke:"var(--brand)"},strokeWidth:2,opacity:.3}),(0,eo.jsx)("circle",{cx:r.x,cy:r.y,r:a+4,fill:"none",style:{stroke:"var(--brand)"},strokeWidth:2.5})]}),(0,eo.jsx)("circle",{cx:r.x,cy:r.y,r:a,fill:xk(e.memory_type),stroke:"#fff",strokeWidth:1.5,opacity:.9}),(0,eo.jsx)("text",{x:r.x,y:r.y+a+12,textAnchor:"middle",fontSize:10,fill:"currentColor",className:"select-none fill-foreground/70",children:s}),(0,eo.jsx)("title",{children:e.summary})]},e.id)})]})]})]})}function SC({message:e}){return(0,eo.jsx)("div",{className:"flex h-full items-center justify-center text-sm text-muted-foreground",children:e})}function SR({data:e,loading:t,error:n,highlightNodeId:r}){let a=(0,el.useRef)(null),[i,s]=(0,el.useState)({w:0,h:0}),[o,l]=(0,el.useState)(null),[c,u]=(0,el.useState)(!1),[d,p]=(0,el.useState)(360),m=(0,el.useRef)(null);(0,el.useEffect)(()=>{null!=r&&l(r)},[r]),(0,el.useEffect)(()=>{let e=window.matchMedia("(min-width: 768px)"),t=()=>u(e.matches);return t(),e.addEventListener("change",t),()=>e.removeEventListener("change",t)},[]);let h=(0,el.useCallback)(e=>{m.current={startX:e.clientX,startW:d},e.currentTarget.setPointerCapture(e.pointerId)},[d]),f=(0,el.useCallback)(e=>{if(!m.current)return;let t=e.clientX-m.current.startX;p(Math.min(Math.max(640,.6*window.innerWidth),Math.max(280,m.current.startW-t)))},[]),g=(0,el.useCallback)(()=>{m.current=null},[]);(0,el.useEffect)(()=>{let e=a.current;if(!e)return;let t=new ResizeObserver(([e])=>{s({w:e.contentRect.width,h:e.contentRect.height})});return t.observe(e),()=>t.disconnect()},[]);let b=new Map((e?.nodes??[]).map(e=>[e.id,e])),y=o?b.get(o)??null:null,E=null!==y;return(0,eo.jsxs)("div",{className:"flex h-full min-h-0 w-full flex-col",children:[(0,eo.jsx)("div",{className:"flex items-center border-b border-border px-4 py-2",children:(0,eo.jsx)("span",{className:"text-xs text-muted-foreground",children:e?`${e.nodes.length} nodes \xb7 ${e.edges.length} edges`:t?"Loading…":""})}),(0,eo.jsxs)("div",{className:"relative flex min-h-0 flex-1",children:[(0,eo.jsxs)("div",{ref:a,className:"relative min-w-0 flex-1 overflow-hidden bg-muted/20",children:[t&&(0,eo.jsx)(SC,{message:"Loading observations…"}),!t&&n&&(0,eo.jsx)(SC,{message:`Error: ${n}`}),!t&&!n&&e&&0===e.nodes.length&&(0,eo.jsx)(SC,{message:"No observations yet."}),!t&&!n&&e&&e.nodes.length>0&&i.w>0&&(0,eo.jsx)(SI,{data:e,selectedId:o,onSelect:l,w:i.w,h:i.h})]}),E&&c&&(0,eo.jsx)("div",{role:"separator","aria-orientation":"vertical",onPointerDown:h,onPointerMove:f,onPointerUp:g,className:"hover:bg-[var(--brand)]/40 w-1 flex-shrink-0 cursor-col-resize bg-border transition-colors"}),E&&(0,eo.jsx)("div",{className:c?"flex-shrink-0 overflow-hidden":"absolute inset-0 z-20 overflow-hidden",style:c?{width:d}:void 0,children:(0,eo.jsx)(Sw,{node:y,edges:e?.edges??[],nodeMap:b,onClose:()=>l(null),onNavigate:e=>l(e)})})]})]})}let SO=nf("compass",[["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",key:"9ktpf1"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),SL=[{path:"profile/USER_PROFILE.md",label:"User",description:"Persistent context about the researcher",Icon:nf("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]])},{path:"profile/RESEARCH_TASTE.md",label:"Taste",description:"Aesthetic and methodological preferences",Icon:SO},{path:"profile/SOUL.md",label:"SOUL",description:"EvoScientist's core values and personality",Icon:dU}];function SD({entry:e,selected:t,onSelect:n}){let{Icon:r}=e;return(0,eo.jsxs)("button",{type:"button",onClick:()=>n(e),className:n3("group flex w-full min-w-0 items-center gap-2 rounded-md border px-3 py-2.5 text-left transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",t?"border-[var(--brand)]/40 bg-accent":"hover:border-[var(--brand)]/40 border-border bg-[var(--color-surface)] hover:bg-accent/60"),children:[(0,eo.jsx)("span",{className:n3("flex size-7 shrink-0 items-center justify-center rounded-md transition-colors",t?"bg-[var(--brand)] text-white":"bg-muted text-[var(--brand)] group-hover:bg-background"),children:(0,eo.jsx)(r,{className:"size-4","aria-hidden":"true"})}),(0,eo.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,eo.jsx)("span",{className:"block truncate text-sm font-medium",children:e.label}),(0,eo.jsx)("span",{className:"block truncate text-[11px] text-muted-foreground",children:e.description})]})]})}function SP({entry:e}){let[t,n]=(0,el.useState)(""),[r,a]=(0,el.useState)(""),[i,s]=(0,el.useState)(!1),[o,l]=(0,el.useState)(!1),[c,u]=(0,el.useState)(!1),[d,p]=(0,el.useState)(null),m=(0,el.useRef)(0);(0,el.useEffect)(()=>{if(!e){n(""),a("");return}let t=++m.current;s(!0),l(!1),p(null),fetch(`/api/memory?path=${encodeURIComponent(e.path)}`).then(async e=>{let t=await e.json().catch(()=>({}));if(!e.ok)throw Error(t.error||"Failed to load.");return t}).then(e=>{m.current===t&&(n(e.content??""),a(e.content??""))}).catch(e=>{m.current===t&&(n(""),a(""),p(e instanceof Error?e.message:"Failed to load."))}).finally(()=>{m.current===t&&s(!1)})},[e]);let h=async()=>{if(e){u(!0),p(null);try{let t=await fetch("/api/memory",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:e.path,content:r})}),a=await t.json();if(!t.ok)throw Error(a.error??"Failed to save.");n(r),l(!1)}catch(e){p(e instanceof Error?e.message:"Failed to save.")}finally{u(!1)}}};if(!e)return(0,eo.jsx)("div",{className:"flex h-full items-center justify-center text-sm text-muted-foreground",children:"Select a profile to view"});let f=t.replace(/^---\r?\n[\s\S]*?\r?\n---\r?\n?/,"").trim();return(0,eo.jsxs)("div",{className:"flex h-full flex-col overflow-hidden",children:[(0,eo.jsxs)("div",{className:"flex flex-shrink-0 items-center justify-between border-b border-border px-4 py-2.5",children:[(0,eo.jsx)("span",{className:"text-sm font-medium",children:e.label}),(0,eo.jsx)("div",{className:"flex items-center gap-1.5",children:o?(0,eo.jsxs)(eo.Fragment,{children:[(0,eo.jsx)(rm,{variant:"outline",size:"sm",onClick:()=>{l(!1),a(t)},children:"Cancel"}),(0,eo.jsx)(rm,{size:"sm",onClick:h,disabled:c||r===t,children:c?(0,eo.jsxs)(eo.Fragment,{children:[(0,eo.jsx)(sT,{className:"size-3.5 animate-spin","aria-hidden":"true"}),"Saving"]}):"Save"})]}):(0,eo.jsxs)(rm,{variant:"outline",size:"sm",onClick:()=>l(!0),disabled:i,children:[(0,eo.jsx)(sA,{className:"size-3.5","aria-hidden":"true"}),"Edit raw"]})})]}),d&&(0,eo.jsx)("p",{className:"flex-shrink-0 px-4 py-2 text-xs text-destructive",children:d}),(0,eo.jsx)("div",{className:"min-h-0 flex-1 overflow-hidden",children:i?(0,eo.jsxs)("div",{className:"flex h-full items-center justify-center gap-2 text-sm text-muted-foreground",children:[(0,eo.jsx)(sT,{className:"size-4 animate-spin","aria-hidden":"true"}),"Loading…"]}):o?(0,eo.jsx)("textarea",{"aria-label":`Edit ${e.label} memory`,className:"size-full resize-none bg-background p-4 font-mono text-sm text-foreground focus:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring",value:r,onChange:e=>a(e.target.value),spellCheck:!1}):(0,eo.jsx)(on,{className:"h-full",children:(0,eo.jsx)("div",{className:"px-4 py-4",children:(0,eo.jsx)(E8,{content:f})})})})]})}function SM({listing:e,listingLoading:t}){let[n,r]=(0,el.useState)(null),[a,i]=(0,el.useState)(!1);(0,el.useEffect)(()=>{let e=window.matchMedia("(min-width: 768px)"),t=()=>i(e.matches);return t(),e.addEventListener("change",t),()=>e.removeEventListener("change",t)},[]);let s=(0,el.useMemo)(()=>(e?.entries??[]).filter(e=>e.path.startsWith("profile/projects/")&&e.path.endsWith(".md")).map(e=>{let t=e.path.split("/"),n=t.length>=4?`${t[2]}/${t.slice(3).join("/")}`:e.path;return{path:e.path,label:n.replace(/\/PROJECT_PROFILE\.md$/,""),description:"Project profile",Icon:dF}}),[e?.entries]),o=(0,el.useMemo)(()=>[...SL,...s],[s]);(0,el.useEffect)(()=>{!t&&0!==o.length&&(n&&o.some(e=>e.path===n.path)||r(o[0]))},[o,t,n]);let l=(0,eo.jsx)(on,{className:"h-full",children:(0,eo.jsxs)("div",{className:"p-3",children:[(0,eo.jsx)("p",{className:"mb-2 text-[10px] font-bold uppercase tracking-wider text-muted-foreground",children:"Profile"}),(0,eo.jsx)("div",{className:"space-y-1.5",children:SL.map(e=>(0,eo.jsx)(SD,{entry:e,selected:n?.path===e.path,onSelect:r},e.path))}),(0,eo.jsx)("p",{className:"mb-2 mt-5 text-[10px] font-bold uppercase tracking-wider text-muted-foreground",children:"Project Profiles"}),t?(0,eo.jsxs)("div",{className:"flex h-10 items-center gap-2 text-xs text-muted-foreground",children:[(0,eo.jsx)(sT,{className:"size-3.5 animate-spin","aria-hidden":"true"}),"Loading projects…"]}):0===s.length?(0,eo.jsx)("p",{className:"text-xs text-muted-foreground",children:"No project profiles yet."}):(0,eo.jsx)("div",{className:"space-y-1.5",children:s.map(e=>(0,eo.jsx)(SD,{entry:e,selected:n?.path===e.path,onSelect:r},e.path))})]})});return a?(0,eo.jsxs)(sb,{direction:"horizontal",autoSaveId:"evomemory-identity",className:"h-full",children:[(0,eo.jsx)(iS,{defaultSize:35,minSize:22,maxSize:55,children:l}),(0,eo.jsx)(sy,{}),(0,eo.jsx)(iS,{defaultSize:65,minSize:45,children:(0,eo.jsx)(SP,{entry:n})})]}):(0,eo.jsxs)("div",{className:"flex min-h-0 w-full flex-1 flex-col",children:[(0,eo.jsx)("div",{className:"max-h-[42svh] flex-shrink-0 overflow-hidden border-b border-border",children:l}),(0,eo.jsx)("div",{className:"min-h-0 flex-1",children:(0,eo.jsx)(SP,{entry:n})})]})}function SF(e){try{let t=new Date(e),n=new Date;return t.getFullYear()===n.getFullYear()&&t.getMonth()===n.getMonth()&&t.getDate()===n.getDate()}catch{return!1}}function Sj({items:e}){let t=new Set(e.filter(e=>"execution"===e.kind).map(e=>e.project_id).filter(Boolean)).size,n=e.filter(e=>e.created_at&&SF(e.created_at)),r=n.filter(e=>"execution"===e.kind).length,a=n.filter(e=>"observation"===e.kind).length,i=[{n:t,label:"Projects"},{n:e.length,label:"Total"},{n:r,label:"Runs Today"},{n:a,label:"Obs Today"}];return(0,eo.jsx)("div",{className:"flex flex-shrink-0 border-b border-border",children:i.map(e=>(0,eo.jsxs)("div",{className:"flex flex-1 flex-col items-center gap-1 border-r border-border py-2 last:border-r-0",children:[(0,eo.jsx)("span",{className:"text-lg font-bold leading-none text-[var(--brand)]",children:e.n}),(0,eo.jsx)("span",{className:"text-[11px] leading-none text-muted-foreground",children:e.label})]},e.label))})}function SU({created_at:e,dotColor:t,children:n}){return(0,eo.jsxs)("div",{className:"flex gap-2",children:[(0,eo.jsx)("time",{dateTime:e,className:"w-14 flex-shrink-0 pt-3 text-right text-xs tabular-nums leading-none text-muted-foreground",children:function(e){try{let t=new Date(e);if(SF(e))return new Intl.DateTimeFormat(void 0,{hour:"2-digit",minute:"2-digit",hourCycle:"h23"}).format(t);let n=new Date;return new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric",...t.getFullYear()!==n.getFullYear()?{year:"numeric"}:{}}).format(t)}catch{return e}}(e)}),(0,eo.jsxs)("div",{className:"relative flex w-3 flex-shrink-0 justify-center",children:[(0,eo.jsx)("span",{className:"absolute bottom-0 left-1/2 top-0 w-px -translate-x-1/2 bg-border","aria-hidden":"true"}),(0,eo.jsx)("span",{className:"z-10 mt-3 size-2.5 rounded-full border-2 border-[var(--color-surface)]",style:{background:t}})]}),n]})}function SB({entry:e,onNavigateToObs:t,defaultOpen:n=!1}){let[r,a]=(0,el.useState)(n),i=(0,el.useRef)(null),s=`${r?"Collapse":"Expand"} ${e.agent} execution: ${e.summary}`;return(0,el.useEffect)(()=>{n&&(a(!0),i.current?.scrollIntoView({block:"center"}))},[n]),(0,eo.jsx)(SU,{created_at:e.created_at,dotColor:"var(--brand)",children:(0,eo.jsxs)("div",{ref:i,className:`hover:border-[var(--brand)]/40 mb-2 min-w-0 flex-1 overflow-hidden rounded-lg border bg-[var(--color-surface)] transition-colors ${n?"border-[var(--brand)]/40":"border-border"}`,children:[(0,eo.jsxs)("button",{type:"button","aria-expanded":r,"aria-label":s,title:s,onClick:()=>a(e=>!e),className:"flex w-full items-center gap-2 px-3 py-2.5 text-left focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring",children:[(0,eo.jsx)("span",{className:"flex-shrink-0 text-sm font-medium text-foreground",children:e.agent}),!r&&(0,eo.jsx)("span",{className:"min-w-0 flex-1 truncate text-xs text-muted-foreground",children:e.summary}),(0,eo.jsx)(cL,{className:`ml-auto size-3.5 flex-shrink-0 text-muted-foreground transition-transform duration-200 ${r?"rotate-180":""}`,"aria-hidden":"true"})]}),(0,eo.jsx)("div",{className:"grid transition-[grid-template-rows] duration-200",style:{gridTemplateRows:r?"1fr":"0fr"},children:r&&(0,eo.jsxs)("div",{className:"overflow-hidden",children:[e.project_id&&(0,eo.jsx)("p",{className:"px-3 pb-2 font-mono text-[11px] text-muted-foreground",children:e.project_id}),(0,eo.jsx)("p",{className:"border-t border-border px-3 py-3 text-sm leading-relaxed text-foreground",children:e.summary}),e.obs_ids.length>0&&(0,eo.jsxs)("div",{className:"border-t border-border px-3 py-2.5",children:[(0,eo.jsx)("p",{className:"mb-2 text-[11px] font-semibold uppercase tracking-wide text-muted-foreground",children:"Linked Observations"}),(0,eo.jsx)("div",{className:"flex flex-wrap gap-1.5",children:e.obs_ids.map(e=>(0,eo.jsxs)("button",{type:"button",onClick:n=>{n.stopPropagation(),t(e)},className:"border-[var(--brand)]/40 rounded border bg-background px-2 py-0.5 font-mono text-[11px] text-[var(--brand)] transition-colors hover:bg-accent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",title:`Jump to ${e} in Knowledge graph`,"aria-label":`Jump to observation ${e} in Knowledge graph`,children:[e.slice(0,14),"…"]},e))})]})]})})]})})}function SH({obs:e,onNavigateToObs:t}){let n=xk(e.memory_type);return(0,eo.jsx)(SU,{created_at:e.created_at,dotColor:n,children:(0,eo.jsx)("button",{type:"button",onClick:()=>t(e.id),title:"View in Knowledge graph","aria-label":`View observation in Knowledge graph: ${e.summary}`,className:"hover:border-[var(--brand)]/40 mb-2 min-w-0 flex-1 cursor-pointer overflow-hidden rounded-lg border border-dashed border-border bg-[var(--color-surface)] px-3 py-2.5 text-left transition-colors hover:bg-accent/40 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:(0,eo.jsxs)("div",{className:"flex items-center gap-2",children:[(0,eo.jsx)("span",{className:"flex-shrink-0 rounded px-1.5 py-0.5 text-[10px] font-semibold uppercase tracking-wide text-white",style:{background:n},children:e.memory_type}),(0,eo.jsx)("span",{className:"min-w-0 flex-1 truncate text-xs text-foreground",children:e.summary}),(0,eo.jsx)(xE,{className:"ml-auto size-3.5 flex-shrink-0 text-muted-foreground","aria-hidden":"true"})]})})})}function Sz({items:e,truncated:t,loading:n,error:r,highlightExecId:a,onRefresh:i,onNavigateToObs:s}){return n&&!e?(0,eo.jsxs)("div",{className:"flex flex-1 items-center justify-center gap-2 text-sm text-muted-foreground",children:[(0,eo.jsx)(sT,{className:"size-4 animate-spin","aria-hidden":"true"}),"Loading history…"]}):r?(0,eo.jsxs)("div",{className:"flex flex-1 flex-col items-center justify-center gap-3 p-8",children:[(0,eo.jsx)("p",{className:"text-sm text-destructive",children:r}),(0,eo.jsxs)("button",{type:"button",onClick:i,className:"flex items-center gap-1.5 text-xs text-muted-foreground hover:text-foreground",children:[(0,eo.jsx)(SA,{className:"size-3.5","aria-hidden":"true"}),"Retry"]})]}):e&&0!==e.length?(0,eo.jsxs)("div",{className:"flex h-full min-h-0 flex-col",children:[(0,eo.jsx)(Sj,{items:e}),(0,eo.jsx)(on,{type:"always",className:"min-h-0 flex-1 [&_[data-slot=scroll-area-viewport]>div]:!block [&_[data-slot=scroll-area-viewport]>div]:!w-full",children:(0,eo.jsxs)("div",{className:"p-4",children:[(0,eo.jsx)("div",{children:e.map(e=>"execution"===e.kind?(0,eo.jsx)(SB,{entry:e,onNavigateToObs:s,defaultOpen:a===e.id},`e-${e.id}`):(0,eo.jsx)(SH,{obs:e,onNavigateToObs:s},`o-${e.id}`))}),t&&(0,eo.jsxs)("p",{className:"mt-2 text-center text-xs text-muted-foreground",children:["Showing newest ",e.length," items."]})]})})]}):(0,eo.jsx)("div",{className:"flex flex-1 items-center justify-center text-sm text-muted-foreground",children:"No activity yet."})}function SG(e){return"identity"===e||"knowledge"===e||"history"===e}function S$({initialTab:e,initialObsId:t,initialExecId:n}={}){let[r,a]=(0,el.useState)(null),[i,s]=(0,el.useState)(!0),[o,l]=(0,el.useState)(SG(e)?e:"identity"),[c,u]=(0,el.useState)(null),[d,p]=(0,el.useState)(!1),[m,h]=(0,el.useState)(null),[f,g]=(0,el.useState)(null),[b,y]=(0,el.useState)(!1),[E,x]=(0,el.useState)(null),[S,T]=(0,el.useState)(t??null),v=(0,el.useRef)(0),A=(0,el.useRef)(0),_=(0,el.useCallback)(async()=>{s(!0);try{let e=await fetch("/api/memory"),t=await e.json();if(!e.ok)return;a(t);let n=t.entries.reduce((e,t)=>t.mtime>e?t.mtime:e,0);n>0&&uQ(n)}catch{}finally{s(!1)}},[]),k=(0,el.useCallback)(async()=>{let e=++v.current;p(!0),h(null);try{let t=await fetch("/api/memory/observations",{cache:"no-store"}),n=await t.json().catch(()=>({}));if(e!==v.current)return;if(!t.ok)throw Error(n.error||"Failed.");u(n)}catch(t){if(e!==v.current)return;h(t instanceof Error?t.message:"Failed to load.")}finally{e===v.current&&p(!1)}},[]),N=(0,el.useCallback)(async()=>{let e=++A.current;y(!0),x(null);try{let t=await fetch("/api/memory/executions",{cache:"no-store"}),n=await t.json().catch(()=>({}));if(e!==A.current)return;if(!t.ok)throw Error(n.error||"Failed.");g(n)}catch(t){if(e!==A.current)return;x(t instanceof Error?t.message:"Failed to load.")}finally{e===A.current&&y(!1)}},[]);(0,el.useEffect)(()=>{_()},[_]),(0,el.useEffect)(()=>{SG(e)&&l(e)},[e]),(0,el.useEffect)(()=>{t?(T(t),l("knowledge")):T(null)},[t]),(0,el.useEffect)(()=>{n&&l("history")},[n]),(0,el.useEffect)(()=>{if("history"!==o)return;let e=()=>{N(),k()};e();let t=setInterval(e,3e4);return()=>clearInterval(t)},[o,N,k]),(0,el.useEffect)(()=>{"knowledge"!==o||c||d||k()},[o,c,d,k]);let w=(0,el.useMemo)(()=>{if(!f||!c)return null;let e=[];for(let t of f.entries)e.push({kind:"execution",...t});for(let t of c.nodes)e.push({kind:"observation",id:t.id,created_at:t.created_at,summary:t.summary,memory_type:t.memory_type,scope:t.scope});return e.sort((e,t)=>e.created_at<t.created_at?1:-1),e},[f,c]),I=[{id:"identity",label:"Identity",Icon:Sv},{id:"knowledge",label:"Knowledge",Icon:xE},{id:"history",label:"History",Icon:xT}];return(0,eo.jsxs)("div",{className:"flex h-full flex-col overflow-hidden",children:[(0,eo.jsxs)("header",{className:"flex flex-shrink-0 items-start justify-between gap-3 border-b border-border px-4 py-3 sm:px-5",children:[(0,eo.jsxs)("div",{className:"min-w-0",children:[(0,eo.jsx)("h2",{className:"text-xl font-semibold sm:text-2xl",children:"EvoMemory"}),(0,eo.jsxs)("p",{className:"mt-1 text-sm leading-6 text-muted-foreground",children:["EvoScientist's"," ",(0,eo.jsx)("span",{className:"font-medium text-[var(--brand)]",children:"self-evolving memory system"})," ","— continuously learns and refines what it knows about you, your research taste, and lessons from past experiments."]})]}),(0,eo.jsx)("button",{type:"button",onClick:()=>{"history"===o?(N(),k()):"knowledge"===o?k():_()},disabled:"history"===o?b||d:"knowledge"===o?d:i,"aria-label":"Refresh",title:"Refresh",className:"mt-0.5 flex-shrink-0 rounded-md p-2 text-muted-foreground transition-colors hover:bg-accent hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-50",children:(0,eo.jsx)(SA,{className:`size-4 ${"history"===o&&(b||d)||"knowledge"===o&&d||"identity"===o&&i?"animate-spin":""}`,"aria-hidden":"true"})})]}),(0,eo.jsx)("div",{className:"grid flex-shrink-0 grid-cols-3 gap-1 border-b border-border px-2 pt-1 sm:flex sm:items-center sm:px-3",role:"tablist","aria-label":"Memory views",children:I.map(({id:e,label:t,Icon:n})=>(0,eo.jsxs)("button",{type:"button",role:"tab","aria-selected":o===e,onClick:()=>{l(e),"knowledge"!==e&&T(null)},className:n3("flex min-w-0 items-center justify-center gap-1 rounded-t-md border-b-2 px-1.5 py-2 text-xs transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring sm:gap-1.5 sm:px-3 sm:text-sm",o===e?"border-[var(--brand)] bg-accent text-foreground":"border-transparent text-muted-foreground hover:bg-accent hover:text-foreground"),children:[(0,eo.jsx)(n,{className:"size-3.5","aria-hidden":"true"}),t]},e))}),(0,eo.jsxs)("div",{className:"flex min-h-0 flex-1 overflow-hidden",children:["identity"===o&&(0,eo.jsx)(SM,{listing:r,listingLoading:i}),"knowledge"===o&&(0,eo.jsx)(SR,{data:c,loading:d,error:m,highlightNodeId:S}),"history"===o&&(0,eo.jsx)("div",{className:"flex min-h-0 w-full flex-1 flex-col",children:(0,eo.jsx)(Sz,{items:w,truncated:!!f?.truncated,loading:b||d,error:E||m,highlightExecId:n,onRefresh:()=>{N(),k()},onNavigateToObs:e=>{T(e),l("knowledge")}})})]})]})}let Sq=nf("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]),SV=nf("calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]),SW=nf("calendar-clock",[["path",{d:"M16 14v2.2l1.6 1",key:"fo4ql5"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M21 7.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.5",key:"1osxxc"}],["path",{d:"M3 10h5",key:"r794hk"}],["path",{d:"M8 2v4",key:"1cmpym"}],["circle",{cx:"16",cy:"16",r:"6",key:"qoo3c4"}]]),SY=nf("clipboard-list",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]]),SK=nf("flask-conical",[["path",{d:"M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2",key:"18mbvz"}],["path",{d:"M6.453 15h11.094",key:"3shlmq"}],["path",{d:"M8.5 2h7",key:"csnxdl"}]]),SX=nf("play",[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]]),SZ=nf("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]),SQ=nf("repeat-2",[["path",{d:"m2 9 3-3 3 3",key:"1ltn5i"}],["path",{d:"M13 18H7a2 2 0 0 1-2-2V6",key:"1r6tfw"}],["path",{d:"m22 15-3 3-3-3",key:"4rnwn2"}],["path",{d:"M11 6h6a2 2 0 0 1 2 2v10",key:"2f72bc"}]]);function SJ(e){return e&&"object"==typeof e?e:{}}function S0(e){return"pending"===e||"running"===e}let S1={frequency:"daily",hour:9,minute:0,dayOfWeek:1,dayOfMonth:1,custom:"0 9 * * *"},S2=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];function S3(e,t,n){return Number.isFinite(e)?Math.min(n,Math.max(t,e)):t}function S4(e){let t=S3(e.minute,0,59),n=S3(e.hour,0,23),r=S3(e.dayOfWeek,0,6),a=S3(e.dayOfMonth,1,28);switch(e.frequency){case"daily":break;case"weekly":return`${t} ${n} * * ${r}`;case"monthly":return`${t} ${n} ${a} * *`;case"custom":return e.custom.trim()}return`${t} ${n} * * *`}function S5(e){let t=e.trim().split(/\s+/);if(5!==t.length)return{...S1,frequency:"custom",custom:e};let[n,r,a,i,s]=t,o=parseInt(n,10),l=parseInt(r,10);return"*"!==i||"*"!==a||"*"!==s||isNaN(o)||isNaN(l)?"*"!==i||"*"!==a||isNaN(parseInt(s,10))||isNaN(o)||isNaN(l)?"*"!==i||"*"!==s||isNaN(parseInt(a,10))||isNaN(o)||isNaN(l)?{...S1,frequency:"custom",custom:e}:{...S1,frequency:"monthly",hour:S3(l,0,23),minute:S3(o,0,59),dayOfMonth:S3(parseInt(a,10),1,28)}:{...S1,frequency:"weekly",hour:S3(l,0,23),minute:S3(o,0,59),dayOfWeek:S3(parseInt(s,10),0,6)}:{...S1,frequency:"daily",hour:l,minute:o}}function S6(e){let t=S5(e),n=`${String(t.hour).padStart(2,"0")}:${String(t.minute).padStart(2,"0")}`;switch(t.frequency){case"daily":return`Every day at ${n}`;case"weekly":return`Every ${S2[t.dayOfWeek]} at ${n}`;case"monthly":return`Monthly on day ${t.dayOfMonth} at ${n}`;default:return e}}function S9(e){if(!e)return"—";let t=new Date(e);if(isNaN(t.getTime()))return"—";let n=Date.now(),r=t.getTime()-n;if(r<0)return"Overdue";let a=Math.round(r/6e4);if(a<1)return"in <1m";if(a<60)return`in ${a}m`;let i=Math.round(r/36e5);if(i<24)return`in ${i}h`;let s=Math.round(r/864e5);return`in ${s}d`}function S8(e){if(!e)return"";let t=new Date(e);return Number.isNaN(t.getTime())?"":new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric",hour:"numeric",minute:"2-digit"}).format(t)}function S7({task:e}){let{runs:t,loaded:n,error:r}=function(e){let[t,n]=(0,el.useState)([]),[r,a]=(0,el.useState)(!1),[i,s]=(0,el.useState)(null),o=(0,el.useRef)(0),l=(0,el.useRef)(!0),c=(0,el.useRef)(new Map),u=e?.cron_id??null,d=e?.prompt??"";(0,el.useEffect)(()=>{c.current=new Map},[u]);let p=(0,el.useCallback)(async()=>{if(!u){n([]),a(!0);return}let e=xC();if(!e){n([]),a(!0);return}let t=++o.current,r=c.current;try{let a=await e.threads.search({metadata:{graph_id:"scheduler"},limit:50}),i=await Promise.all(a.map(async t=>{let n=r.get(t.thread_id);if(!1===n)return null;if(n&&!S0(n.status)&&n.thread_updated_at===(t.updated_at??null))return n;try{let n,a,i,s,o,l,c,p,m,h=(await e.runs.list(t.thread_id,{limit:1}))[0];if(!h)return null;if(!function(e,t,n){if(SJ(t).cron_id===n.cron_id)return!0;let r=SJ(e),a=SJ(r.metadata);return a.cron_id===n.cron_id||SJ(SJ(SJ(r.kwargs).config).configurable).cron_id===n.cron_id||"scheduled_task"===a.run_kind&&"string"==typeof a.prompt&&""!==a.prompt&&a.prompt===n.prompt}(h,t.metadata,{cron_id:u,prompt:d}))return r.set(t.thread_id,!1),null;let f=(n=SJ(h),a=SJ(n.metadata),i=SJ(t.metadata),s=function(e){switch(e){case"pending":case"running":case"success":case"error":case"timeout":case"interrupted":return e;default:return"error"}}(n.status),o="string"==typeof n.created_at?n.created_at:null,l="string"==typeof n.updated_at?n.updated_at:null,c=o??t.created_at??new Date(0).toISOString(),p=S0(s)?null:l??t.updated_at??null,m="manual"===i.trigger||"manual-run"===a.name?"manual":"cron",{thread_id:t.thread_id,run_id:"string"==typeof n.run_id?n.run_id:null,status:s,trigger:m,started_at:c,ended_at:p,thread_updated_at:t.updated_at??null});return r.set(t.thread_id,f),f}catch{return n||null}}));if(t!==o.current||!l.current)return;let c=i.filter(e=>!!e).sort((e,t)=>Date.parse(t.started_at)-Date.parse(e.started_at)).slice(0,20);n(c),s(null)}catch{t===o.current&&l.current&&s("Couldn't load task runs.")}finally{t===o.current&&l.current&&a(!0)}},[u,d]);return(0,el.useEffect)(()=>{l.current=!0,a(!1),p();let e=setInterval(()=>{document.hidden||p()},3e3);return()=>{l.current=!1,clearInterval(e)}},[p]),{runs:t,loaded:r,error:i,refresh:p}}(e),[a,i]=(0,el.useState)(()=>Date.now()),[s,o]=(0,el.useState)(null),[l,c]=(0,el.useState)({}),[u,d]=(0,el.useState)(null),p=(0,el.useRef)(new Set),m=t.some(e=>S0(e.status));(0,el.useEffect)(()=>{if(!m)return;let e=setInterval(()=>i(Date.now()),1e3);return()=>clearInterval(e)},[m]),(0,el.useEffect)(()=>{o(null),c({}),d(null),p.current.clear()},[e.cron_id]);let h=(0,el.useMemo)(()=>t.find(e=>e.thread_id===s)??null,[t,s]),f=!!h&&S0(h.status),g=h?.thread_updated_at??null;return(0,el.useEffect)(()=>{if(!s)return;let e=`${s}:${g??""}`;if(!f&&p.current.has(e))return;let t=xC();if(!t)return;let n=!1,r=async()=>{try{let r=await t.threads.getState(s);if(n)return;let a=Array.isArray(r.values?.messages)?r.values.messages:[];c(e=>({...e,[s]:dT(a)})),d(null),f||p.current.add(e)}catch{n||d("Couldn't load run steps.")}};r();let a=f?setInterval(r,2500):null;return()=>{n=!0,a&&clearInterval(a)}},[s,f,g]),(0,eo.jsxs)("section",{className:"space-y-1.5",children:[(0,eo.jsx)("p",{className:"text-xs font-medium text-muted-foreground",children:"Activity"}),(0,eo.jsxs)("div",{className:"rounded-md border border-border bg-[var(--color-surface)]",children:[!m&&(0,eo.jsxs)("div",{className:"flex items-center gap-2 border-b border-border px-3 py-2",children:[(0,eo.jsx)("span",{className:"size-2 shrink-0 rounded-full bg-[var(--color-text-tertiary,var(--muted-foreground))] opacity-40","aria-hidden":"true"}),(0,eo.jsx)("p",{className:"min-w-0 truncate text-sm text-muted-foreground",children:e.next_run_date?`Next run ${S9(e.next_run_date)} \xb7 ${S8(e.next_run_date)}`:"Not scheduled"})]}),r?(0,eo.jsx)("p",{className:"px-3 py-2.5 text-sm text-destructive",role:"alert",children:r}):n?0===t.length?(0,eo.jsx)("p",{className:"px-3 py-2.5 text-sm text-muted-foreground",children:"No runs yet. Runs appear here after the schedule fires or you press Run now."}):(0,eo.jsx)("div",{className:"divide-y divide-border",children:t.map(e=>{let t=e.thread_id===s,n=l[e.thread_id];return(0,eo.jsxs)("div",{children:[(0,eo.jsxs)("button",{type:"button",onClick:()=>{var t;return t=e.thread_id,void(d(null),o(e=>e===t?null:t))},"aria-expanded":t,className:"flex w-full items-center gap-2 px-3 py-2 text-left transition-colors hover:bg-accent/60 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:[(0,eo.jsx)("span",{className:n3("size-2 shrink-0 rounded-full",S0(e.status)?"bg-[var(--color-success)] animate-pulse":"success"===e.status?"bg-[var(--color-success)]":"bg-[var(--color-error)]"),"aria-hidden":"true"}),"success"===e.status&&(0,eo.jsx)("span",{className:"sr-only",children:"Completed: "}),(0,eo.jsx)("span",{className:"min-w-0 flex-1 truncate text-sm tabular-nums",children:function(e,t){if(S0(e.status)){let n=xu(e.started_at,t);return n?`Running… ${n}`:"Running…"}let n=S8(e.started_at),r=e.ended_at?xu(e.started_at,Date.parse(e.ended_at)):"",a="success"!==e.status?` \xb7 ${e.status}`:"";return[n,r].filter(Boolean).join(" · ")+a}(e,a)}),"manual"===e.trigger&&(0,eo.jsx)("span",{className:"shrink-0 rounded-full bg-muted px-1.5 py-0.5 text-[10px] text-muted-foreground",children:"manual"}),t?(0,eo.jsx)(cL,{className:"size-3.5 shrink-0 text-muted-foreground","aria-hidden":"true"}):(0,eo.jsx)(xm,{className:"size-3.5 shrink-0 text-muted-foreground","aria-hidden":"true"})]}),t&&(0,eo.jsx)("div",{className:"border-t border-border/60 px-3 py-2",children:u?(0,eo.jsx)("p",{className:"text-xs text-destructive",role:"alert",children:u}):n?0===n.length?(0,eo.jsx)("p",{className:"text-xs text-muted-foreground",children:"No steps recorded yet."}):(0,eo.jsx)(E7,{steps:n,compact:!0}):(0,eo.jsxs)("div",{className:"flex items-center gap-2 text-xs text-muted-foreground",role:"status",children:[(0,eo.jsx)(sT,{className:"size-3 animate-spin","aria-hidden":"true"}),"Loading steps…"]})})]},e.thread_id)})}):(0,eo.jsxs)("div",{className:"flex items-center gap-2 px-3 py-2.5 text-sm text-muted-foreground",role:"status",children:[(0,eo.jsx)(sT,{className:"size-3.5 animate-spin","aria-hidden":"true"}),"Loading runs…"]})]})]})}let Te=[{icon:SY,label:"Daily Papers",description:"Track new ML papers against your research preferences.",name:"Daily Papers",prompt:"Summarise the latest ML papers from arXiv according to my research preferences with the paper-navigator skill. Focus on papers that are relevant to my current projects, explain why each one matters, and save the summary to ./daily-papers.md in the current workspace.",schedule:"0 9 * * *"},{icon:SQ,label:"Weekly Research Review",description:"Summarise this week's research progress and future direction.",name:"Weekly Research Review",prompt:"Summarise this week's research progress across my active projects. Highlight key results, decisions, blockers, open questions, and what changed in my understanding. Then propose future research directions and concrete next steps. Save the review to ./weekly-research-review.md in the current workspace.",schedule:"0 17 * * 5"},{icon:xx,label:"Weekly Research Plan",description:"Draft a Monday plan for the week's research priorities.",name:"Weekly Research Plan",prompt:"Draft this week's research plan based on my active projects, recent progress, project files, and open questions. Prioritise the most important research goals, propose concrete experiments or reading tasks, identify risks, and write a practical schedule for the week. Save the plan to ./weekly-research-plan.md in the current workspace.",schedule:"0 8 * * 1"},{icon:SK,label:"Experiment Backlog",description:"Convert open questions into testable experiment ideas.",name:"Experiment Backlog",prompt:"Review my active project files, recent research notes, and open questions. Turn the most important unresolved ideas into a prioritised experiment backlog with hypotheses, expected signal, required data or code, estimated effort, and success criteria. Save it to ./experiment-backlog.md in the current workspace.",schedule:"0 10 * * 2"}];function Tt(e){if(!e)return"Not scheduled";let t=new Date(e);return Number.isNaN(t.getTime())?"Unknown":new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric",hour:"numeric",minute:"2-digit"}).format(t)}function Tn(e){if(!e)return"";let t=new Date(e);return Number.isNaN(t.getTime())?"":new Intl.DateTimeFormat(void 0,{dateStyle:"medium",timeStyle:"short"}).format(t)}function Tr({children:e,htmlFor:t}){return(0,eo.jsx)("label",{htmlFor:t,className:"text-xs font-medium text-muted-foreground",children:e})}function Ta({value:e,onChange:t,error:n}){let r=n=>t({...e,...n}),a="h-9 rounded-md border border-input bg-background py-1.5 pl-2.5 pr-8 text-sm outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50",i=n3(a,"w-full sm:min-w-40"),s=n3(a,"w-full sm:w-28");return(0,eo.jsxs)("div",{className:"space-y-2",children:[(0,eo.jsxs)("div",{className:"grid gap-2 sm:grid-cols-[minmax(9rem,1fr)_auto_auto_auto_auto] sm:items-center",children:[(0,eo.jsxs)("select",{"aria-label":"Schedule frequency",value:e.frequency,onChange:e=>r({frequency:e.target.value}),className:i,children:[(0,eo.jsx)("option",{value:"daily",children:"Every day"}),(0,eo.jsx)("option",{value:"weekly",children:"Every week"}),(0,eo.jsx)("option",{value:"monthly",children:"Every month"}),(0,eo.jsx)("option",{value:"custom",children:"Custom cron"})]}),"custom"!==e.frequency&&(0,eo.jsxs)(eo.Fragment,{children:["weekly"===e.frequency&&(0,eo.jsx)("select",{"aria-label":"Day of week",value:e.dayOfWeek,onChange:e=>r({dayOfWeek:Number(e.target.value)}),className:s,children:S2.map((e,t)=>(0,eo.jsx)("option",{value:t,children:e},e))}),"monthly"===e.frequency&&(0,eo.jsx)("select",{"aria-label":"Day of month",value:e.dayOfMonth,onChange:e=>r({dayOfMonth:Number(e.target.value)}),className:s,children:Array.from({length:28},(e,t)=>t+1).map(e=>(0,eo.jsxs)("option",{value:e,children:["Day ",e]},e))}),(0,eo.jsx)("span",{className:"hidden text-xs text-muted-foreground sm:block",children:"at"}),(0,eo.jsxs)("div",{className:"grid grid-cols-[1fr_auto_1fr] items-center gap-1 sm:col-span-2 sm:w-32",children:[(0,eo.jsx)(ry,{"aria-label":"Hour",type:"number",min:0,max:23,value:e.hour,onChange:e=>r({hour:Number(e.target.value)}),className:"h-9 text-center font-mono tabular-nums"}),(0,eo.jsx)("span",{className:"font-mono text-muted-foreground",children:":"}),(0,eo.jsx)(ry,{"aria-label":"Minute",type:"number",min:0,max:59,value:e.minute,onChange:e=>r({minute:Number(e.target.value)}),className:"h-9 text-center font-mono tabular-nums"})]})]})]}),"custom"===e.frequency&&(0,eo.jsx)(ry,{type:"text",value:e.custom,onChange:e=>r({custom:e.target.value}),placeholder:"0 9 * * 1-5",spellCheck:!1,"aria-invalid":!!n,"aria-describedby":"schedule-cron-help",className:"h-9 font-mono text-sm"}),(0,eo.jsxs)("div",{id:"schedule-cron-help",className:n3("flex items-center gap-1.5 text-xs",n?"text-destructive":"text-muted-foreground"),children:[(0,eo.jsx)(SW,{className:"size-3.5 shrink-0","aria-hidden":"true"}),(0,eo.jsx)("span",{className:"min-w-0 truncate",children:n??S6(S4(e))})]})]})}function Ti({template:e,onSelect:t,compact:n}){let r=e.icon;return(0,eo.jsxs)("button",{type:"button",onClick:()=>t(e),className:n3("hover:border-[var(--brand)]/40 group flex w-full min-w-0 items-start gap-2 rounded-md border border-border bg-[var(--color-surface)] text-left transition-colors hover:bg-accent/60 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",n?"px-2.5 py-2":"px-3 py-2.5"),children:[(0,eo.jsx)("span",{className:"mt-0.5 flex size-7 shrink-0 items-center justify-center rounded-md bg-muted text-[var(--brand)] group-hover:bg-background",children:(0,eo.jsx)(r,{className:"size-4","aria-hidden":"true"})}),(0,eo.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,eo.jsx)("span",{className:"block truncate text-sm font-medium",children:e.label}),!n&&(0,eo.jsx)("span",{className:"mt-0.5 line-clamp-2 text-xs leading-snug text-muted-foreground",children:e.description}),(0,eo.jsx)("span",{className:"mt-1 block text-[11px] text-muted-foreground",children:S6(e.schedule)})]})]})}function Ts({initialTemplate:e,initialTask:t,onSaved:n,onCancel:r}){let a,i=!!t,[s,o]=(0,el.useState)(t?.name??e?.name??""),[l,c]=(0,el.useState)(t?.prompt??e?.prompt??""),[u,d]=(0,el.useState)(()=>t?S5(t.schedule):e?S5(e.schedule):{...S1}),[p,m]=(0,el.useState)(!1),h=(0,el.useRef)(null),f=S4(u),g="custom"===u.frequency?(a=f.trim())?5!==a.split(/\s+/).length?"Use five cron fields: minute hour day month weekday.":null:"Enter a cron expression.":null,b=!t||s.trim()!==t.name.trim()||l.trim()!==t.prompt.trim()||f!==t.schedule.trim(),y=!!(s.trim()&&l.trim()&&!g&&b);(0,el.useEffect)(()=>{h.current?.focus()},[]);let E=async e=>{if(e.preventDefault(),!s.trim())return void u5.toast.error("Task name is required.");if(!l.trim())return void u5.toast.error("Task description is required.");if(g)return void u5.toast.error(g);if(b){m(!0);try{if(t){let e=await xP({cronId:t.cron_id,name:s.trim(),prompt:l.trim(),schedule:f});e.oldTaskDeleted?u5.toast.success(`"${s.trim()}" updated.`):u5.toast.warning(`"${s.trim()}" was saved, but the old scheduled task could not be removed.`),n(e.task)}else await xL({name:s.trim(),prompt:l.trim(),schedule:f}),u5.toast.success(`"${s.trim()}" scheduled.`),n()}catch(e){u5.toast.error(e instanceof Error?e.message:i?"Failed to update scheduled task.":"Failed to create scheduled task.")}finally{m(!1)}}};return(0,eo.jsxs)("form",{onSubmit:E,className:"flex h-full min-h-0 flex-col",children:[(0,eo.jsxs)("div",{className:"flex flex-shrink-0 items-center gap-2 border-b border-border px-3 py-2.5 sm:px-5",children:[(0,eo.jsx)("button",{type:"button",onClick:r,"aria-label":"Back to scheduled tasks",className:"rounded-md p-1.5 text-muted-foreground transition-colors hover:bg-accent hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring md:hidden",children:(0,eo.jsx)(Sq,{className:"size-4","aria-hidden":"true"})}),(0,eo.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,eo.jsx)("h2",{className:"truncate text-sm font-semibold",children:i?"Edit scheduled task":"New scheduled task"}),(0,eo.jsx)("p",{className:"truncate text-xs text-muted-foreground",children:"EvoScientist will run this task description unattended."})]})]}),(0,eo.jsx)(on,{className:"min-h-0 flex-1",children:(0,eo.jsxs)("div",{className:"mx-auto flex w-full max-w-3xl flex-col gap-4 p-3 sm:p-5",children:[(0,eo.jsxs)("div",{className:"space-y-1.5",children:[(0,eo.jsx)(Tr,{htmlFor:"scheduled-task-name",children:"Task name"}),(0,eo.jsx)(ry,{id:"scheduled-task-name",ref:h,type:"text",value:s,onChange:e=>o(e.target.value),placeholder:"Daily Briefing",autoComplete:"off"})]}),(0,eo.jsxs)("div",{className:"space-y-1.5",children:[(0,eo.jsx)(Tr,{htmlFor:"scheduled-task-prompt",children:"Task description"}),(0,eo.jsx)(d3,{id:"scheduled-task-prompt",value:l,onChange:e=>c(e.target.value),placeholder:"Describe what EvoScientist should do each time this task runs...",rows:9,className:"min-h-52 resize-y leading-relaxed"})]}),(0,eo.jsxs)("div",{className:"space-y-1.5",children:[(0,eo.jsx)(Tr,{children:"Schedule"}),(0,eo.jsx)(Ta,{value:u,onChange:d,error:g})]})]})}),(0,eo.jsxs)("div",{className:"flex flex-shrink-0 items-center justify-end gap-2 border-t border-border bg-background px-3 py-2.5 sm:px-5",children:[(0,eo.jsx)(rm,{type:"button",variant:"outline",size:"sm",onClick:r,disabled:p,children:"Cancel"}),(0,eo.jsxs)(rm,{type:"submit",size:"sm",disabled:p||!y,children:[p?(0,eo.jsx)(sT,{className:"size-3.5 animate-spin"}):i?(0,eo.jsx)(sA,{className:"size-3.5"}):(0,eo.jsx)(SZ,{className:"size-3.5"}),i?"Save changes":"Create task"]})]})]})}function To({task:e,onBack:t,onEdit:n,onDeleted:r}){let a,[i,s]=(0,el.useState)(!1),[o,l]=(0,el.useState)(!1),[c,u]=(0,el.useState)(!1),d=Tn(e.next_run_date),p=(0,el.useCallback)(async()=>{s(!0);try{await xM(e),u5.toast.success(`"${e.name}" started.`)}catch(e){u5.toast.error(e instanceof Error?e.message:"Failed to start the task.")}finally{s(!1)}},[e]),m=(0,el.useCallback)(async()=>{u(!0);try{await xD(e.cron_id),u5.toast.success(`"${e.name}" deleted.`),l(!1),r()}catch(e){u5.toast.error(e instanceof Error?e.message:"Failed to delete the task.")}finally{u(!1)}},[e,r]);return(0,eo.jsxs)(eo.Fragment,{children:[(0,eo.jsxs)("div",{className:"flex h-full min-h-0 flex-col",children:[(0,eo.jsxs)("div",{className:"flex flex-shrink-0 items-center gap-2 border-b border-border px-3 py-2.5 sm:px-5",children:[(0,eo.jsx)("button",{type:"button",onClick:t,"aria-label":"Back to scheduled tasks",className:"rounded-md p-1.5 text-muted-foreground transition-colors hover:bg-accent hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring md:hidden",children:(0,eo.jsx)(Sq,{className:"size-4","aria-hidden":"true"})}),(0,eo.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,eo.jsx)("h2",{className:"truncate text-sm font-semibold",children:e.name}),(0,eo.jsx)("p",{className:"truncate text-xs text-muted-foreground",children:S6(e.schedule)})]}),(0,eo.jsxs)(rm,{size:"sm",onClick:p,disabled:i||!e.prompt.trim(),children:[i?(0,eo.jsx)(sT,{className:"size-3.5 animate-spin"}):(0,eo.jsx)(SX,{className:"size-3.5"}),"Run now"]})]}),(0,eo.jsx)(on,{className:"min-h-0 flex-1",children:(0,eo.jsxs)("div",{className:"mx-auto w-full max-w-3xl space-y-4 p-3 sm:p-5",children:[(0,eo.jsxs)("div",{className:"grid gap-2 sm:grid-cols-3",children:[(0,eo.jsxs)("div",{className:"rounded-md border border-border bg-[var(--color-surface)] px-3 py-2",children:[(0,eo.jsx)("p",{className:"text-[11px] font-medium uppercase text-muted-foreground",children:"Next run"}),(0,eo.jsx)("p",{className:"mt-1 truncate text-sm font-medium tabular-nums",title:d,children:e.next_run_date?`${S9(e.next_run_date)} \xb7 ${Tt(e.next_run_date)}`:"Not scheduled"})]}),(0,eo.jsxs)("div",{className:"rounded-md border border-border bg-[var(--color-surface)] px-3 py-2",children:[(0,eo.jsx)("p",{className:"text-[11px] font-medium uppercase text-muted-foreground",children:"Cron"}),(0,eo.jsx)("p",{className:"mt-1 truncate font-mono text-sm",children:e.schedule})]}),(0,eo.jsxs)("div",{className:"rounded-md border border-border bg-[var(--color-surface)] px-3 py-2",children:[(0,eo.jsx)("p",{className:"text-[11px] font-medium uppercase text-muted-foreground",children:"Created"}),(0,eo.jsx)("p",{className:"mt-1 truncate text-sm",children:Number.isNaN((a=new Date(e.created_at)).getTime())?"Unknown":new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric",year:"numeric"}).format(a)})]})]}),(0,eo.jsxs)("section",{className:"space-y-1.5",children:[(0,eo.jsx)("p",{className:"text-xs font-medium text-muted-foreground",children:"Task description"}),(0,eo.jsx)("div",{className:"max-h-[min(38rem,55vh)] overflow-auto rounded-md border border-border bg-[var(--color-surface)] px-3 py-2.5",children:e.prompt?(0,eo.jsx)("p",{className:"whitespace-pre-wrap break-words text-sm leading-relaxed",children:e.prompt}):(0,eo.jsx)("p",{className:"text-sm italic text-muted-foreground",children:"No task description stored."})})]}),(0,eo.jsx)(S7,{task:e})]})}),(0,eo.jsxs)("div",{className:"flex flex-shrink-0 items-center justify-between gap-2 border-t border-border bg-background px-3 py-2.5 sm:px-5",children:[(0,eo.jsx)("p",{className:"hidden truncate text-xs text-muted-foreground sm:block",children:"Manual runs create a scheduler thread immediately."}),(0,eo.jsxs)("div",{className:"ml-auto flex items-center gap-2",children:[(0,eo.jsxs)(rm,{variant:"outline",size:"sm",onClick:n,"aria-label":`Edit scheduled task "${e.name}"`,children:[(0,eo.jsx)(sA,{className:"size-3.5"}),"Edit"]}),(0,eo.jsxs)(rm,{variant:"outline",size:"sm",onClick:()=>l(!0),"aria-label":`Delete scheduled task "${e.name}"`,className:"text-destructive hover:border-destructive hover:text-destructive",children:[(0,eo.jsx)(sI,{className:"size-3.5"}),"Delete"]})]})]})]}),(0,eo.jsx)(n4,{open:o,onOpenChange:e=>{c||l(e)},children:(0,eo.jsxs)(n9,{className:"sm:max-w-sm",children:[(0,eo.jsxs)(n8,{children:[(0,eo.jsx)(re,{children:"Delete scheduled task?"}),(0,eo.jsxs)(rt,{children:["“",e.name,"” will stop running. This cannot be undone."]})]}),(0,eo.jsxs)(n7,{children:[(0,eo.jsx)(rm,{variant:"outline",size:"sm",onClick:()=>l(!1),disabled:c,children:"Cancel"}),(0,eo.jsxs)(rm,{variant:"destructive",size:"sm",onClick:m,disabled:c,"aria-label":`Confirm delete scheduled task "${e.name}"`,children:[c&&(0,eo.jsx)(sT,{className:"size-3.5 animate-spin"}),"Delete"]})]})]})})]})}function Tl({task:e,active:t,onSelect:n}){let r=e.next_run_date;return(0,eo.jsxs)("button",{type:"button",onClick:n,"aria-current":t,className:n3("flex w-full items-start gap-2 rounded-md px-2 py-2 text-left transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",t?"bg-accent":"hover:bg-accent/60"),children:[(0,eo.jsx)("span",{className:"mt-1 flex size-2 shrink-0 rounded-full bg-[var(--brand)]"}),(0,eo.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,eo.jsx)("span",{className:"block truncate text-sm font-medium",children:e.name}),(0,eo.jsx)("span",{className:"mt-0.5 block truncate text-xs text-muted-foreground",children:S6(e.schedule)}),(0,eo.jsxs)("span",{className:"mt-1 flex min-w-0 items-center gap-1.5 text-[11px] text-muted-foreground",children:[(0,eo.jsx)(sx,{className:"size-3 shrink-0","aria-hidden":"true"}),(0,eo.jsx)("span",{className:"truncate tabular-nums",title:Tn(r),children:r?S9(r):"No next run"})]})]}),(0,eo.jsx)(xm,{className:"mt-1 size-3.5 shrink-0 text-muted-foreground","aria-hidden":"true"})]})}function Tc(){let{tasks:e,loading:t,error:n,refresh:r}=function(){let[e,t]=(0,el.useState)([]),[n,r]=(0,el.useState)(!0),[a,i]=(0,el.useState)(null),[s,o]=(0,el.useState)(0),l=(0,el.useCallback)(()=>o(e=>e+1),[]);return(0,el.useEffect)(()=>{let e=!1;return r(!0),xO().then(n=>{e||(t(n),i(null))}).catch(n=>{e||(i(n instanceof Error?n.message:"Failed to load scheduled tasks."),t([]))}).finally(()=>{e||r(!1)}),()=>{e=!0}},[s]),{tasks:e,loading:n,error:a,refresh:l}}(),[a,i]=(0,el.useState)({kind:"empty"}),[s,o]=(0,el.useState)(""),l=(0,el.useRef)(0),c=(0,el.useRef)(0),u=(0,el.useRef)(null),d=(0,el.useMemo)(()=>[...e].sort((e,t)=>{let n=e.next_run_date?new Date(e.next_run_date).getTime():0,r=t.next_run_date?new Date(t.next_run_date).getTime():0;return n&&r&&n!==r?n-r:n&&!r?-1:!n&&r?1:e.name.localeCompare(t.name)}),[e]),p=(0,el.useMemo)(()=>{let e=s.trim().toLowerCase();return e?d.filter(t=>[t.name,t.prompt,t.schedule,S6(t.schedule),t.next_run_date?Tt(t.next_run_date):""].join(" ").toLowerCase().includes(e)):d},[s,d]),m=d.find(e=>e.next_run_date),h="detail"===a.kind?a.task.cron_id:null;(0,el.useEffect)(()=>{if(!h||t)return;let r=e.find(e=>e.cron_id===h);if(r){u.current===h&&(u.current=null),i({kind:"detail",task:r});return}(u.current!==h||n)&&(u.current=null,i({kind:"empty"}))},[n,t,h,e]);let f=(0,el.useCallback)(e=>{l.current+=1,i({kind:"create",template:e,createId:l.current})},[]),g=(0,el.useCallback)(e=>{c.current+=1,i({kind:"edit",task:e,editId:c.current})},[]),b=(0,el.useCallback)(e=>{u.current=e?.cron_id??null,r(),i(e?{kind:"detail",task:e}:{kind:"empty"})},[r]),y=(0,el.useCallback)(()=>{r(),i({kind:"empty"})},[r]);return(0,eo.jsxs)("div",{className:"flex h-full min-h-0 flex-col bg-background",children:[(0,eo.jsxs)("header",{className:"flex flex-shrink-0 items-center justify-between gap-3 border-b border-border px-3 py-2.5 sm:px-4",children:[(0,eo.jsxs)("div",{className:"flex min-w-0 items-center gap-2",children:[(0,eo.jsx)("span",{className:"flex size-8 shrink-0 items-center justify-center rounded-md bg-accent text-[var(--brand)]",children:(0,eo.jsx)(SW,{className:"size-4","aria-hidden":"true"})}),(0,eo.jsxs)("div",{className:"min-w-0",children:[(0,eo.jsxs)("div",{className:"flex min-w-0 items-center gap-2",children:[(0,eo.jsx)("h1",{className:"truncate text-sm font-semibold",children:"Scheduled"}),!t&&(0,eo.jsx)("span",{className:"rounded-full bg-muted px-1.5 py-0.5 text-[10px] text-muted-foreground",children:e.length})]}),(0,eo.jsx)("p",{className:"truncate text-xs text-muted-foreground",children:m?.next_run_date?`Next: ${S9(m.next_run_date)}`:"Recurring EvoScientist tasks"})]})]}),(0,eo.jsxs)("div",{className:"flex shrink-0 items-center gap-1.5",children:[(0,eo.jsx)("button",{type:"button",onClick:r,disabled:t,"aria-label":"Refresh scheduled tasks",title:"Refresh scheduled tasks",className:"rounded-md p-2 text-muted-foreground transition-colors hover:bg-accent hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-50",children:(0,eo.jsx)(SA,{className:n3("size-4",t&&"animate-spin"),"aria-hidden":"true"})}),(0,eo.jsxs)(rm,{size:"sm",onClick:()=>f(),children:[(0,eo.jsx)(SZ,{className:"size-3.5"}),(0,eo.jsx)("span",{className:"hidden sm:inline",children:"New task"}),(0,eo.jsx)("span",{className:"sm:hidden",children:"New"})]})]})]}),(0,eo.jsxs)("div",{className:"flex min-h-0 flex-1",children:[(0,eo.jsxs)("aside",{className:n3("w-full min-w-0 flex-col border-r border-border md:flex md:w-72 md:flex-shrink-0","empty"===a.kind?"flex":"hidden"),children:[(0,eo.jsx)("div",{className:"flex-shrink-0 space-y-2 border-b border-border p-2.5",children:(0,eo.jsxs)("div",{className:"relative",children:[(0,eo.jsx)(sw,{className:"pointer-events-none absolute left-2.5 top-1/2 size-4 -translate-y-1/2 text-muted-foreground","aria-hidden":"true"}),(0,eo.jsx)(ry,{type:"search",name:"scheduled-search",value:s,onChange:e=>o(e.target.value),placeholder:"Search scheduled tasks...","aria-label":"Search scheduled tasks",autoComplete:"off",spellCheck:!1,className:"h-9 pl-8 pr-8"}),s&&(0,eo.jsx)("button",{type:"button",onClick:()=>o(""),"aria-label":"Clear scheduled task search",className:"absolute right-1 top-1/2 -translate-y-1/2 rounded p-1 text-muted-foreground transition-colors hover:bg-accent hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring",children:(0,eo.jsx)(ng,{className:"size-3.5","aria-hidden":"true"})})]})}),(0,eo.jsx)(on,{className:"h-0 flex-1",children:t?(0,eo.jsxs)("div",{className:"flex items-center justify-center gap-2 py-10 text-sm text-muted-foreground",children:[(0,eo.jsx)(sT,{className:"size-4 animate-spin","aria-hidden":"true"}),"Loading tasks..."]}):n?(0,eo.jsxs)("div",{role:"alert",className:"space-y-3 p-3",children:[(0,eo.jsx)("p",{className:"text-sm text-destructive",children:n}),(0,eo.jsxs)(rm,{variant:"outline",size:"sm",onClick:r,children:[(0,eo.jsx)(SA,{className:"size-3.5"}),"Retry"]})]}):0===e.length?(0,eo.jsxs)("div",{className:"space-y-4 p-3",children:[(0,eo.jsxs)("div",{className:"rounded-md border border-dashed border-border bg-[var(--color-surface)] px-3 py-5 text-center",children:[(0,eo.jsx)(SV,{className:"mx-auto size-7 text-muted-foreground/60","aria-hidden":"true"}),(0,eo.jsx)("p",{className:"mt-2 text-sm font-medium",children:"No scheduled tasks"}),(0,eo.jsx)("p",{className:"mt-1 text-xs text-muted-foreground",children:"Start from a template or create one from scratch."})]}),(0,eo.jsxs)("div",{className:"space-y-2",children:[(0,eo.jsx)("p",{className:"px-1 text-[11px] font-semibold uppercase text-muted-foreground",children:"Templates"}),Te.map(e=>(0,eo.jsx)(Ti,{template:e,onSelect:f},e.label))]})]}):0===p.length?(0,eo.jsxs)("div",{className:"space-y-3 p-4 text-center",children:[(0,eo.jsx)("p",{className:"text-sm font-medium",children:"No matching tasks"}),(0,eo.jsx)("p",{className:"text-xs text-muted-foreground",children:"Try a task name, schedule, or description keyword."}),(0,eo.jsx)(rm,{variant:"outline",size:"sm",onClick:()=>o(""),children:"Clear search"})]}):(0,eo.jsxs)("div",{className:"p-1.5",children:[(0,eo.jsxs)("div",{className:"mb-2 flex items-center justify-between px-2 py-1",children:[(0,eo.jsx)("p",{className:"text-[11px] font-semibold uppercase text-muted-foreground",children:"Tasks"}),(0,eo.jsx)("p",{className:"text-[11px] text-muted-foreground",children:p.length})]}),(0,eo.jsx)("div",{className:"flex flex-col gap-0.5",children:p.map(e=>{let t="detail"===a.kind&&a.task.cron_id===e.cron_id;return(0,eo.jsx)(Tl,{task:e,active:t,onSelect:()=>i({kind:"detail",task:e})},e.cron_id)})}),(0,eo.jsxs)("div",{className:"mt-3 space-y-2 border-t border-border px-1 py-3",children:[(0,eo.jsx)("p",{className:"px-1 text-[11px] font-semibold uppercase text-muted-foreground",children:"Templates"}),(0,eo.jsx)("div",{className:"grid gap-1.5",children:Te.map(e=>(0,eo.jsx)(Ti,{template:e,onSelect:f,compact:!0},e.label))})]})]})})]}),(0,eo.jsxs)("section",{className:n3("min-w-0 flex-1 flex-col","empty"===a.kind?"hidden md:flex":"flex"),children:["empty"===a.kind&&(0,eo.jsx)("div",{className:"flex flex-1 items-center justify-center p-5",children:(0,eo.jsxs)("div",{className:"w-full max-w-lg space-y-4",children:[(0,eo.jsxs)("div",{className:"space-y-1 text-center",children:[(0,eo.jsx)(SW,{className:"mx-auto size-9 text-muted-foreground/40","aria-hidden":"true"}),(0,eo.jsx)("p",{className:"text-sm font-medium",children:"Pick a scheduled task"}),(0,eo.jsx)("p",{className:"text-xs text-muted-foreground",children:"Pick a template below, or ask EvoScientist in chat to create a recurring task."})]}),e.length>0&&(0,eo.jsx)("div",{className:"mx-auto grid w-full max-w-xl gap-2 sm:grid-cols-2",children:Te.map(e=>(0,eo.jsx)(Ti,{template:e,onSelect:f,compact:!0},e.label))})]})}),"create"===a.kind&&(0,eo.jsx)(Ts,{initialTemplate:a.template,onSaved:b,onCancel:()=>i({kind:"empty"})},a.createId),"edit"===a.kind&&(0,eo.jsx)(Ts,{initialTask:a.task,onSaved:b,onCancel:()=>i({kind:"detail",task:a.task})},a.editId),"detail"===a.kind&&(0,eo.jsx)(To,{task:a.task,onBack:()=>i({kind:"empty"}),onEdit:()=>g(a.task),onDeleted:y})]})]})]})}let Tu=nf("moon",[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]),Td=nf("sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);function Tp(){let{resolvedTheme:e,setTheme:t}=(0,EV.useTheme)(),[n,r]=(0,el.useState)(!1);(0,el.useEffect)(()=>r(!0),[]);let a=n&&"dark"===e;return(0,eo.jsx)(rm,{variant:"ghost",size:"icon",className:"size-8 sm:size-9",onClick:()=>t(a?"light":"dark"),"aria-label":a?"Switch to light mode":"Switch to dark mode",title:a?"Switch to light mode":"Switch to dark mode",children:a?(0,eo.jsx)(Tu,{className:"size-5","aria-hidden":"true"}):(0,eo.jsx)(Td,{className:"size-5","aria-hidden":"true"})})}let Tm={checking:{dot:"bg-[var(--color-warning)]",label:"Connecting…",pulse:!0},online:{dot:"bg-[var(--color-success)]",label:"Connected",pulse:!1},offline:{dot:"bg-[var(--color-error)]",label:"Offline",pulse:!1}};function Th(e){return e.trim().replace(/\/+$/,"")}async function Tf(e){let t=new AbortController,n=setTimeout(()=>t.abort(),4e3);try{return(await fetch(`${e}/info`,{signal:t.signal,cache:"no-store"})).ok}catch{return!1}finally{clearTimeout(n)}}function Tg({deploymentUrl:e,onReconnect:t}){let[n,r]=(0,el.useState)("checking"),[a,i]=(0,el.useState)(null),[s,o]=(0,el.useState)(null),l=(0,el.useRef)(0),c=(0,el.useRef)(!0),u=(0,el.useRef)(null),d=(0,el.useCallback)(async t=>{let n=Th(e);try{let e=await fetch("/api/evosci-config",{cache:"no-store"}),r=await e.json().catch(()=>null),a=r?.deploymentUrl?Th(r.deploymentUrl):"";if(t!==l.current||!c.current)return;if(!a||a===n)return void o(null);let i=await Tf(a);if(t!==l.current||!c.current)return;o(i?a:null)}catch{t===l.current&&c.current&&o(null)}},[e]),p=(0,el.useCallback)(async()=>{let t=++l.current,n=Th(e);if(!n){t===l.current&&c.current&&(i(null),r("offline"),o(null));return}u.current?.abort();let a=new AbortController;u.current=a;let s=setTimeout(()=>a.abort(),4e3);try{let e=await fetch(`${n}/info`,{signal:a.signal,cache:"no-store"});if(t!==l.current||!c.current)return;if(!e.ok){r("offline"),d(t);return}let s=await e.json().catch(()=>null);if(t!==l.current||!c.current)return;i(s),r("online"),o(null)}catch{t===l.current&&c.current&&(r("offline"),d(t))}finally{clearTimeout(s)}},[e,d]);(0,el.useEffect)(()=>{c.current=!0,r("checking"),p();let e=setInterval(()=>{document.hidden||p()},1e4),t=()=>p(),n=()=>{document.hidden||p()};return window.addEventListener("focus",t),window.addEventListener("online",t),document.addEventListener("visibilitychange",n),()=>{c.current=!1,u.current?.abort(),clearInterval(e),window.removeEventListener("focus",t),window.removeEventListener("online",t),document.removeEventListener("visibilitychange",n)}},[p]);let m=Tm[n],h="online"===n?`Connected to ${e}${a?.version?` \xb7 langgraph ${a.version}`:""}`:"offline"===n?`Can't reach the backend at ${e}. Is "EvoSci deploy" running? Click to retry.`:`Checking connection to ${e}…`;return(0,eo.jsxs)("div",{className:"flex items-center gap-1",children:[(0,eo.jsxs)(rm,{variant:"ghost",size:"sm",onClick:p,title:h,"aria-label":h,className:"h-8 gap-1.5 px-2 text-xs font-normal text-muted-foreground",children:[(0,eo.jsx)("span",{className:`size-2 shrink-0 rounded-full ${m.dot} ${m.pulse?"animate-pulse":""}`,"aria-hidden":"true"}),(0,eo.jsx)("span",{className:"hidden sm:inline",children:m.label})]}),"offline"===n&&null!==s&&void 0!==t&&(0,eo.jsxs)(rm,{variant:"ghost",size:"sm",onClick:()=>{s&&(o(null),r("checking"),t?.(s))},title:`Backend detected at ${s}. Click to reconnect.`,"aria-label":`Reconnect to detected backend ${s}`,className:"h-8 gap-1 px-2 text-xs font-medium text-[var(--brand)] hover:text-[var(--brand)]",children:["Reconnect"," ",(0,eo.jsx)("span",{className:"tabular-nums",children:s?function(e){try{let t=new URL(e),n="127.0.0.1"===t.hostname||"localhost"===t.hostname||"0.0.0.0"===t.hostname,r=t.port||("https:"===t.protocol?"443":"80");return n?`:${r}`:`${t.hostname}:${r}`}catch{return e}}(s):""})]})]})}let Tb=nf("folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);async function Ty(e){let t=await fetch(`/api/workspace?${new URLSearchParams({path:e})}`),n=await t.json().catch(()=>null);if(!t.ok)throw Error(n?.error||"Failed to list workspace.");return n?.entries??[]}async function TE(){let e=await fetch("/api/workspace?recursive=1"),t=await e.json().catch(()=>null);if(!e.ok)throw Error(t?.error||"Failed to load workspace.");return{entries:t?.entries??[],truncated:!!t?.truncated}}let Tx=[{key:"docs",label:"Papers & docs",Icon:x9,exts:["pdf","tex","bib","md","markdown","txt","docx","doc","rtf","odt"]},{key:"figures",label:"Figures",Icon:nf("image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]),exts:["png","jpg","jpeg","gif","svg","webp","bmp","tiff","tif","eps"]},{key:"data",label:"Data",Icon:nf("database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]),exts:["json","jsonl","csv","tsv","xlsx","xls","parquet","pkl","npy","npz","h5","hdf5","db","sqlite","yaml","yml","xml"]},{key:"code",label:"Code",Icon:nf("code-xml",[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]]),exts:["py","ipynb","js","ts","tsx","jsx","sh","bash","r","jl","cpp","cc","c","h","hpp","java","go","rs","m","rb"]}],TS={key:"other",label:"Other",Icon:dM},TT={};for(let e of Tx)for(let t of e.exts)TT[t]=e.key;function Tv(){let[e,t]=(0,el.useState)("tree"),[n,r]=(0,el.useState)({}),[a,i]=(0,el.useState)(new Set),[s,o]=(0,el.useState)(new Set),[l,c]=(0,el.useState)(!1),[u,d]=(0,el.useState)(null),[p,m]=(0,el.useState)(!1),[h,f]=(0,el.useState)(!1),[g,b]=(0,el.useState)(null),[y,E]=(0,el.useState)(null),x=(0,el.useCallback)(async e=>{o(t=>new Set(t).add(e));try{let t=await Ty(e);return r(n=>({...n,[e]:t})),""===e&&b(null),t}catch(t){throw""===e&&b(t instanceof Error?t.message:"Failed to load."),t}finally{o(t=>{let n=new Set(t);return n.delete(e),n})}},[]),S=(0,el.useCallback)(async()=>{m(!0);try{let{entries:e,truncated:t}=await TE();d(e),f(t),b(null)}catch(e){b(e instanceof Error?e.message:"Failed to load.")}finally{m(!1)}},[]);(0,el.useEffect)(()=>{c(!0),x("").catch(()=>{}).finally(()=>c(!1))},[]),(0,el.useEffect)(()=>{"type"!==e||null!==u||p||S()},[e]);let T=(0,el.useCallback)(async()=>{(b(null),"type"===e)?await S():(c(!0),await Promise.allSettled(["",...a].map(e=>x(e))),c(!1))},[e,a,x,S]),v=(0,el.useCallback)(e=>{i(t=>{let r=new Set(t);return r.has(e)?r.delete(e):(r.add(e),n[e]||x(e).catch(()=>{})),r})},[n,x]),A=(0,el.useMemo)(()=>{let e={};for(let t of u??[]){let n=TT[t.ext]??TS.key;(e[n]??=[]).push(t)}for(let t of Object.values(e))t.sort((e,t)=>t.mtime-e.mtime);return e},[u]),_="type"===e?p:l,k=(e,t)=>{let r=n[e];return r?0===r.length&&0===t?(0,eo.jsx)("p",{className:"px-2 py-6 text-center text-xs text-muted-foreground",children:"No files in the workspace yet"}):r.map(e=>{let n=a.has(e.path),r=s.has(e.path);return(0,eo.jsxs)("div",{children:[(0,eo.jsxs)("button",{type:"button",onClick:()=>"dir"===e.type?v(e.path):E({path:e.path,size:e.size}),className:"flex w-full items-center gap-1.5 rounded-md py-1 pr-2 text-left text-sm text-foreground transition-colors hover:bg-muted",style:{paddingLeft:`${14*t+4}px`},title:e.name,children:["dir"===e.type?(0,eo.jsxs)(eo.Fragment,{children:[(0,eo.jsx)("span",{className:"flex size-4 shrink-0 items-center justify-center text-muted-foreground",children:r?(0,eo.jsx)(sT,{className:"size-3 animate-spin"}):n?(0,eo.jsx)(cL,{className:"size-3.5"}):(0,eo.jsx)(xm,{className:"size-3.5"})}),(0,eo.jsx)(Tb,{className:"size-4 shrink-0 text-[var(--brand)]"})]}):(0,eo.jsxs)(eo.Fragment,{children:[(0,eo.jsx)("span",{className:"size-4 shrink-0"}),(0,eo.jsx)(x9,{className:"size-4 shrink-0 text-muted-foreground"})]}),(0,eo.jsx)("span",{className:"truncate",children:e.name})]}),"dir"===e.type&&n&&k(e.path,t+1)]},e.path)}):null};return(0,eo.jsxs)("div",{className:"flex min-h-0 flex-col",children:[(0,eo.jsxs)("div",{className:"flex items-center justify-between gap-2 pb-1.5",children:[(0,eo.jsx)("div",{className:"flex items-center gap-0.5 rounded-md bg-muted p-0.5 text-xs",children:["tree","type"].map(n=>(0,eo.jsx)("button",{type:"button",onClick:()=>t(n),className:n3("rounded px-2 py-0.5 font-medium transition-colors",e===n?"bg-background text-foreground shadow-sm":"text-muted-foreground hover:text-foreground"),"aria-pressed":e===n,children:"tree"===n?"Tree":"By type"},n))}),(0,eo.jsxs)("div",{className:"flex items-center gap-0.5",children:[(0,eo.jsxs)("a",{href:"/api/workspace/download",download:!0,className:"inline-flex items-center gap-1 rounded-md px-1.5 py-1 text-xs text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",title:"Download the whole workspace as a zip",children:[(0,eo.jsx)(sS,{className:"size-3.5"}),"All"]}),(0,eo.jsx)("button",{type:"button",onClick:T,disabled:_,className:"inline-flex size-7 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:opacity-50","aria-label":"Refresh workspace",title:"Refresh",children:(0,eo.jsx)(SA,{className:n3("size-3.5",_&&"animate-spin")})})]})]}),g?(0,eo.jsx)("p",{className:"px-2 py-6 text-center text-xs text-muted-foreground",children:g}):"tree"===e?l&&!n[""]?(0,eo.jsx)("div",{className:"flex items-center justify-center py-6",children:(0,eo.jsx)(sT,{className:"size-4 animate-spin text-muted-foreground"})}):(0,eo.jsx)("div",{className:"-mx-1",children:k("",0)}):p&&null===u?(0,eo.jsx)("div",{className:"flex items-center justify-center py-6",children:(0,eo.jsx)(sT,{className:"size-4 animate-spin text-muted-foreground"})}):(()=>{if(!u)return null;if(0===u.length)return(0,eo.jsx)("p",{className:"px-2 py-6 text-center text-xs text-muted-foreground",children:"No files in the workspace yet"});let e=[...Tx,TS];return(0,eo.jsxs)("div",{className:"space-y-3",children:[h&&(0,eo.jsx)("p",{className:"px-1 text-[11px] text-muted-foreground",children:"Showing the first files only — the workspace has more than the limit."}),e.map(e=>{let t=A[e.key];if(!t||0===t.length)return null;let n=e.Icon;return(0,eo.jsxs)("div",{children:[(0,eo.jsxs)("div",{className:"mb-0.5 flex items-center gap-1.5 px-1 text-[10px] font-semibold uppercase tracking-wider text-tertiary",children:[(0,eo.jsx)(n,{className:"size-3.5"}),e.label,(0,eo.jsxs)("span",{className:"text-muted-foreground",children:["(",t.length,")"]})]}),t.map(e=>{let t=e.path.includes("/")?e.path.slice(0,e.path.lastIndexOf("/")):"";return(0,eo.jsxs)("button",{type:"button",onClick:()=>E({path:e.path,size:e.size}),className:"flex w-full items-center gap-1.5 rounded-md px-1 py-1 text-left text-sm text-foreground transition-colors hover:bg-muted",title:e.path,children:[(0,eo.jsx)(n,{className:"size-4 shrink-0 text-muted-foreground"}),(0,eo.jsx)("span",{className:"truncate",children:e.name}),t&&(0,eo.jsx)("span",{className:"ml-auto shrink-0 truncate pl-2 text-[11px] text-muted-foreground",children:t})]},e.path)})]},e.key)})]})})(),(0,eo.jsx)(Sc,{path:y?.path??null,size:y?.size,onClose:()=>E(null),onChanged:T})]})}let TA=nf("bell-ring",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M22 8c0-2.3-.8-4.3-2-6",key:"5bb3ad"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}],["path",{d:"M4 2C2.8 3.7 2 5.7 2 8",key:"tap9e0"}]]),T_=nf("corner-up-left",[["path",{d:"M20 20v-7a4 4 0 0 0-4-4H4",key:"1nkjon"}],["path",{d:"M9 14 4 9l5-5",key:"102s5s"}]]);function Tk(e){let t="";for(let n of e)if("human"===n.type){let e=dA(n).trim();if(e){t=e;break}}return{prompt:t,steps:dT(e)}}function TN({status:e}){let t=xo[xe(e)];return(0,eo.jsx)("span",{className:n3("size-2 shrink-0 rounded-full",t.dot,t.pulse&&"animate-pulse"),"aria-hidden":"true"})}function Tw({onReportToMainChat:e}){let t=ie(),[n]=eE("threadId"),{tasks:r,loaded:a,error:i,refresh:s}=x$(n),[o,l]=(0,el.useState)(()=>Date.now()),[c,u]=(0,el.useState)(null),[d,p]=(0,el.useState)({}),m=(0,el.useRef)(new Map),[h,f]=(0,el.useState)({}),[g,b]=x0(n),[y,E]=(0,el.useState)({}),[x,S]=(0,el.useState)({}),[T,v]=(0,el.useState)({}),A=(0,el.useRef)(!0);(0,el.useEffect)(()=>(A.current=!0,()=>{A.current=!1}),[]),(0,el.useEffect)(()=>{let e=setInterval(()=>l(Date.now()),1e3);return()=>clearInterval(e)},[]);let _=async e=>{let n=(y[e.task_id]??"").trim();if(n&&!x[e.task_id]){S(t=>({...t,[e.task_id]:!0})),v(t=>({...t,[e.task_id]:null}));try{let r=await t.runs.wait(e.thread_id,e.agent_name,{input:{messages:[{type:"human",content:n}]}});if(!A.current)return;let a=Array.isArray(r?.messages)?r.messages:[];if(0===a.length)return void v(t=>({...t,[e.task_id]:"The agent didn't return a reply — it may have hit an error."}));E(t=>({...t,[e.task_id]:""}));let{prompt:i,steps:s}=Tk(a);p(t=>({...t,[e.task_id]:{loading:!1,error:null,prompt:i,steps:s}}))}catch(n){if(!A.current)return;let t=n instanceof TypeError||"object"==typeof n&&null!==n&&"number"==typeof n.status;v(n=>({...n,[e.task_id]:t?"Couldn't reach this agent — try again.":"The agent hit an error processing this follow-up."}))}finally{A.current&&S(t=>({...t,[e.task_id]:!1}))}}};(0,el.useEffect)(()=>{if(!c)return;let e=r.find(e=>e.task_id===c);if(!e||"expired"===xe(e.liveStatus))return;let n="running"===xe(e.liveStatus),a=[e.run_id,e.last_updated_at,e.endedAt].join(":");if(!n&&m.current.get(c)===a)return;let i=!1;return p(e=>({...e,[c]:{loading:!e[c],error:null,prompt:e[c]?.prompt??"",steps:e[c]?.steps??[]}})),(async()=>{try{let r=await t.threads.getState(e.thread_id);if(i)return;let{prompt:s,steps:o}=Tk(r.values?.messages??[]);n||m.current.set(c,a),p(e=>({...e,[c]:{loading:!1,error:null,prompt:s,steps:o}}))}catch{if(i)return;m.current.delete(c),p(e=>({...e,[c]:{loading:!1,error:"Couldn't load this agent's steps.",prompt:e[c]?.prompt??"",steps:e[c]?.steps??[]}}))}})(),()=>{i=!0}},[c,r,t]);let k=(0,el.useMemo)(()=>xc(r),[r]);return(0,eo.jsxs)("div",{className:"flex h-full flex-col",children:[(0,eo.jsxs)("div",{className:"flex items-center justify-between gap-2 px-1 pb-2",children:[(0,eo.jsx)("p",{className:"text-xs text-muted-foreground",children:k>0?`${k} running`:r.length>0?`${r.length} total`:"Background agents"}),(0,eo.jsxs)("div",{className:"flex items-center gap-1",children:[(0,eo.jsxs)("button",{type:"button",onClick:()=>{n&&(g||xQ(n,r.filter(e=>xl(e.liveStatus)).map(xr)),b(!g))},"aria-pressed":g,"aria-label":`Auto-report ${g?"on":"off"}`,title:g?"Auto-report on: finished agents are sent to the main chat automatically":"Auto-report off: use each agent's “Notify main chat” button",className:n3("inline-flex items-center gap-1 rounded-md px-1.5 py-1 text-[11px] font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",g?"bg-accent text-[var(--brand)]":"text-muted-foreground hover:bg-accent hover:text-foreground"),children:[(0,eo.jsx)(TA,{className:"size-3.5","aria-hidden":"true"}),(0,eo.jsxs)("span",{className:"hidden min-[340px]:inline",children:["Auto-report ",g?"On":"Off"]})]}),(0,eo.jsx)("button",{type:"button",onClick:s,"aria-label":"Refresh agents",title:"Refresh",className:"rounded p-1 text-muted-foreground transition-colors hover:bg-accent hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring",children:(0,eo.jsx)(SA,{className:"size-3.5","aria-hidden":"true"})})]})]}),i&&(0,eo.jsx)("p",{className:"px-1 text-xs text-[var(--color-error)]",children:i}),!a&&(0,eo.jsxs)("div",{className:"flex items-center gap-2 px-1 py-4 text-xs text-muted-foreground",children:[(0,eo.jsx)(sT,{className:"size-4 animate-spin","aria-hidden":"true"}),"Loading…"]}),a&&0===r.length&&(0,eo.jsxs)("div",{className:"flex flex-col items-center justify-center gap-2 px-4 py-10 text-center",children:[(0,eo.jsx)(dq,{className:"size-9 text-muted-foreground/60","aria-hidden":"true"}),(0,eo.jsx)("p",{className:"text-sm text-muted-foreground",children:"No background agents yet."}),(0,eo.jsx)("p",{className:"text-xs text-muted-foreground/80",children:"When EvoScientist delegates long tasks (writing, data analysis) they run in the background and show up here."})]}),(0,eo.jsx)("div",{className:"flex min-h-0 flex-1 flex-col gap-1.5 overflow-y-auto",children:r.map(t=>{var r;let a,i,s,l=xe(t.liveStatus),p=xo[l],m=c===t.task_id,b="expired"===l,S=d[t.task_id];return(0,eo.jsxs)("div",{className:"rounded-md border border-border bg-background",children:[(0,eo.jsxs)("button",{type:"button",onClick:()=>u(m?null:t.task_id),className:"flex w-full items-center gap-2 rounded-md px-2.5 py-2 text-left transition-colors hover:bg-accent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring","aria-expanded":m,children:[m?(0,eo.jsx)(cL,{className:"size-3.5 shrink-0 text-muted-foreground","aria-hidden":"true"}):(0,eo.jsx)(xm,{className:"size-3.5 shrink-0 text-muted-foreground","aria-hidden":"true"}),(0,eo.jsx)(TN,{status:t.liveStatus}),(0,eo.jsx)("span",{className:"min-w-0 flex-1 truncate text-sm font-medium",children:xt[r=t.agent_name]??r}),(0,eo.jsxs)("span",{className:"shrink-0 text-xs tabular-nums text-muted-foreground",children:[p.label,(a=function(e,t){let n=xe(e.liveStatus);if("expired"===n)return"";let r="running"===n?t:e.endedAt?Date.parse(e.endedAt):t;return xu(e.startedAt??e.created_at,r)}(t,o))?` \xb7 ${a}`:""]})]}),m&&b&&(0,eo.jsx)("div",{className:"border-t border-border px-2.5 py-2 text-xs",children:(0,eo.jsx)("p",{className:"text-muted-foreground",children:"This task ran before a backend restart and its records are gone, so its steps and result can no longer be loaded. Any files it produced are still in the workspace."})}),m&&!b&&(0,eo.jsxs)("div",{className:"border-t border-border px-2.5 py-2 text-xs",children:[S?.loading&&(0,eo.jsxs)("div",{className:"flex items-center gap-2 text-muted-foreground",children:[(0,eo.jsx)(sT,{className:"size-3.5 animate-spin","aria-hidden":"true"}),"Loading steps…"]}),S?.error&&(0,eo.jsx)("p",{className:"text-[var(--color-error)]",children:S.error}),S&&!S.loading&&!S.error&&(0,eo.jsxs)("div",{className:"flex flex-col gap-2",children:[S.prompt&&(0,eo.jsxs)("div",{children:[(0,eo.jsx)("p",{className:"font-semibold text-foreground",children:"Task"}),(0,eo.jsx)("p",{className:"whitespace-pre-wrap break-words text-muted-foreground",children:S.prompt.length>600?S.prompt.slice(0,600)+"…":S.prompt})]}),(0,eo.jsxs)("div",{children:[(0,eo.jsxs)("p",{className:"mb-1 font-semibold text-foreground",children:["Steps"," ",(0,eo.jsxs)("span",{className:"font-normal text-muted-foreground",children:["(",S.steps.length,")"]})]}),0===S.steps.length?(0,eo.jsx)("p",{className:"text-muted-foreground",children:"No steps yet."}):(0,eo.jsx)(E7,{steps:S.steps,compact:!0})]}),xl(t.liveStatus)&&(0,eo.jsx)("div",{className:"mt-1 border-t border-border pt-2",children:g?(0,eo.jsxs)("p",{className:"inline-flex items-center gap-1.5 text-[11px] text-muted-foreground",children:[(0,eo.jsx)(TA,{className:"size-3.5 text-[var(--brand)]","aria-hidden":"true"}),"Auto-report on · future completions notify the main chat"]}):(0,eo.jsxs)("button",{type:"button",onClick:()=>(t=>{if(!e||!n)return void u5.toast.error("Open the conversation to notify the main agent.");let r=e(t,n);if("sent"===r){f(e=>({...e,[xr(t)]:!0})),u5.toast.success("Reported to the main chat.");return}if("duplicate"===r){f(e=>({...e,[xr(t)]:!0})),u5.toast.info("This result is already in the main chat.");return}u5.toast.error("wrong-thread"===r?"The active conversation changed — reopen this task and try again.":"Main chat is busy — try again when it's idle.")})(t),disabled:!e||!!h[xr(t)],title:e?"Send this result back to the main agent":"Open the conversation to notify the main agent",className:"inline-flex items-center gap-1.5 rounded-md border border-border px-2 py-1 text-[11px] font-medium text-foreground transition-colors hover:bg-accent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",children:[(0,eo.jsx)(T_,{className:"size-3.5 text-[var(--brand)]","aria-hidden":"true"}),h[xr(t)]?"Reported to main chat":"Notify main chat"]})}),(i="running"===xe(t.liveStatus),s=!!x[t.task_id],(0,eo.jsxs)("div",{className:"mt-1 border-t border-border pt-2",children:[(0,eo.jsx)("p",{className:"mb-1 text-[11px] text-muted-foreground",children:"Direct follow-up · Main chat is not notified"}),(0,eo.jsxs)("form",{onSubmit:e=>{e.preventDefault(),_(t)},className:"flex items-center gap-1.5",children:[(0,eo.jsx)("input",{type:"text",name:`agent-message-${t.task_id}`,autoComplete:"off",value:y[t.task_id]??"",onChange:e=>E(n=>({...n,[t.task_id]:e.target.value})),onKeyDown:e=>{"Enter"===e.key&&(e.nativeEvent.isComposing||229===e.keyCode)&&e.preventDefault()},disabled:i||s,placeholder:i?"Agent is working…":"Send a direct follow-up…","aria-label":"Message this agent",className:"min-w-0 flex-1 rounded-md border border-border bg-background px-2 py-1.5 text-xs outline-none placeholder:text-muted-foreground focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-60"}),(0,eo.jsx)("button",{type:"submit",disabled:i||s||!(y[t.task_id]??"").trim(),"aria-label":"Send",title:"Send to this agent",className:"inline-flex size-7 shrink-0 items-center justify-center rounded-md bg-[var(--brand-solid)] text-[var(--brand-foreground)] transition-opacity hover:opacity-90 focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-40",children:s?(0,eo.jsx)(sT,{className:"size-3.5 animate-spin","aria-hidden":"true"}):(0,eo.jsx)(dL,{className:"size-3.5","aria-hidden":"true"})})]}),T[t.task_id]&&(0,eo.jsx)("p",{className:"mt-1 text-[var(--color-error)]",role:"status","aria-live":"polite",children:T[t.task_id]})]}))]})]})]},t.task_id)})})]})}function TI({onClose:e,onReportToMainChat:t}){let[n,r]=eE("inspectorTab"),a="agents"===n?"agents":"workspace";return(0,eo.jsxs)("div",{className:"flex h-full flex-col border-l border-border bg-sidebar",children:[(0,eo.jsxs)("div",{className:"flex h-11 shrink-0 items-center justify-between gap-2 border-b border-border px-2",children:[(0,eo.jsxs)("div",{role:"tablist","aria-label":"Inspector",className:"flex items-center gap-1",children:[(0,eo.jsxs)("button",{type:"button",role:"tab","aria-selected":"workspace"===a,onClick:()=>r(null),className:n3("flex items-center gap-1.5 rounded-md px-2 py-1 text-sm font-semibold transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring","workspace"===a?"bg-accent text-foreground":"text-muted-foreground hover:text-foreground"),children:[(0,eo.jsx)(dF,{className:"size-4 text-[var(--brand)]","aria-hidden":"true"}),"Workspace"]}),(0,eo.jsxs)("button",{type:"button",role:"tab","aria-selected":"agents"===a,onClick:()=>r("agents"),className:n3("flex items-center gap-1.5 rounded-md px-2 py-1 text-sm font-semibold transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring","agents"===a?"bg-accent text-foreground":"text-muted-foreground hover:text-foreground"),children:[(0,eo.jsx)(dq,{className:"size-4 text-[var(--brand)]","aria-hidden":"true"}),"Agents"]})]}),(0,eo.jsx)(rm,{variant:"ghost",size:"icon",className:"size-7",onClick:e,"aria-label":"Close inspector",title:"Close",children:(0,eo.jsx)(ng,{className:"size-4","aria-hidden":"true"})})]}),"agents"===a?(0,eo.jsx)("div",{className:"min-h-0 flex-1 overflow-hidden p-3",children:(0,eo.jsx)(Tw,{onReportToMainChat:t})}):(0,eo.jsx)("div",{className:"min-h-0 flex-1 overflow-y-auto p-3",children:(0,eo.jsx)(Tv,{})})]})}function TC({config:e,configDialogOpen:t,setConfigDialogOpen:n,handleSaveConfig:r}){let a=ie(),[i,s]=eE("threadId"),[o,l]=eE("sidebar"),[c,u]=eE("view"),[d,p]=eE("memoryTab"),[m,h]=eE("memoryObs"),[f,g]=eE("memoryExec"),[b,y]=eE("inspector"),[E,x]=eE("inspectorTab"),[S,T]=(0,el.useState)(null),[v,A]=(0,el.useState)(0),[_,k]=(0,el.useState)(null),[N,w]=(0,el.useState)(null),[I,C]=(0,el.useState)(0),[R,O]=(0,el.useState)(null),L=(0,el.useCallback)(async()=>{let t=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(e.assistantId),n=async()=>{if(t)return await a.assistants.get(e.assistantId);let n=await a.assistants.search({graphId:e.assistantId,limit:100}),r=n.find(e=>e.metadata?.created_by==="system")??n[0];if(!r)throw Error("No assistant found for this graph.");return r};for(let e=0;e<3;e+=1)try{k(await n());return}catch(t){if(e<2){await new Promise(e=>setTimeout(e,700));continue}console.warn("Couldn't resolve the EvoScientist assistant; addressing the graph by id instead. Is the backend running?",t)}k({assistant_id:e.assistantId,graph_id:e.assistantId,created_at:new Date().toISOString(),updated_at:new Date().toISOString(),config:{},metadata:{},version:1,name:e.assistantId,context:{}})},[a,e.assistantId]);(0,el.useEffect)(()=>{L()},[L]),(0,el.useEffect)(()=>{let e=window.matchMedia("(min-width: 768px)"),t=()=>w(e.matches);return t(),e.addEventListener("change",t),()=>e.removeEventListener("change",t)},[]),(0,el.useEffect)(()=>{!1===N&&o&&b&&y(null)},[b,N,y,o]);let D=(0,el.useCallback)(()=>l(null),[l]),P=(0,el.useCallback)(()=>{y(null),x(null)},[y,x]),M=(0,el.useCallback)(()=>{o?l(null):(!1===N&&P(),l("1"))},[P,N,l,o]),F=(0,el.useCallback)(()=>{b?P():(!1===N&&l(null),x(null),y("1"))},[P,b,N,y,x,l]),j=(0,el.useCallback)(()=>{x("agents"),!1===N&&l(null),y("1")},[N,y,l,x]),U=c?o?"Hide navigation":"Show navigation":o?"Hide research":"Show research",B=(0,el.useCallback)(()=>{u4(null,!1),s(null),u(null),C(e=>e+1)},[s,u]),H=(0,el.useCallback)(e=>{if("memory"===e.view)p(e.tab),h(e.obsId??null),g(e.execId??null),u("memory");else if("schedule"===e.view)u("schedule");else{if(b&&"agents"!==E)return void P();!1===N&&l(null),x(null),y("1")}},[P,b,E,N,y,x,g,h,p,l,u]),z=(0,el.useCallback)(async e=>{u4(null,!1),u(null);let t=i===e;await s(e),t||C(e=>e+1)},[s,u,i]);return(0,eo.jsxs)(eo.Fragment,{children:[(0,eo.jsx)(rT,{open:t,onOpenChange:n,onSave:r,initialConfig:e}),(0,eo.jsxs)("div",{className:"flex h-screen flex-col",children:[(0,eo.jsxs)("header",{className:"flex h-14 items-center justify-between gap-2 border-b border-border px-2.5 sm:px-4",children:[(0,eo.jsxs)("div",{className:"flex min-w-0 items-center gap-2 sm:gap-3",children:[(0,eo.jsxs)("div",{className:"flex min-w-0 items-center gap-2",children:[(0,eo.jsx)(ec.default,{src:"/evoscientist-logo.png",alt:"EvoScientist",width:28,height:28,className:"size-6 shrink-0",priority:!0}),o&&(0,eo.jsx)("h1",{className:"truncate text-base font-semibold sm:text-lg",children:"EvoScientist"})]}),(0,eo.jsxs)("div",{className:"flex items-center gap-0.5",children:[(0,eo.jsxs)(rm,{variant:"ghost",size:"icon",onClick:M,"aria-label":U,className:"relative size-8",children:[o?(0,eo.jsx)(ii,{className:"size-5","aria-hidden":"true"}):(0,eo.jsx)(ia,{className:"size-5","aria-hidden":"true"}),v>0&&(0,eo.jsx)("span",{className:"absolute right-0 top-0 inline-flex min-h-4 min-w-4 items-center justify-center rounded-full bg-destructive px-1 text-[10px] text-destructive-foreground",children:v})]}),!o&&(0,eo.jsx)(rm,{variant:"ghost",size:"icon",onClick:B,"aria-label":"New chat",className:"size-8",children:(0,eo.jsx)(ir,{className:"size-5","aria-hidden":"true"})})]})]}),(0,eo.jsxs)("div",{className:"flex shrink-0 items-center gap-1 sm:gap-2",children:[(0,eo.jsx)(Tg,{deploymentUrl:e.deploymentUrl,onReconnect:t=>r({...e,deploymentUrl:t})}),(0,eo.jsx)(Tp,{}),(0,eo.jsx)(rm,{variant:"ghost",size:"icon",onClick:F,"aria-label":b?"Hide inspector":"Show workspace",title:b?"Hide inspector":"Show workspace",className:"size-8",children:b?(0,eo.jsx)(io,{className:"size-5","aria-hidden":"true"}):(0,eo.jsx)(is,{className:"size-5","aria-hidden":"true"})}),(0,eo.jsx)(rm,{variant:"ghost",size:"icon",onClick:()=>n(!0),"aria-label":"Settings",title:"Settings",className:"size-8",children:(0,eo.jsx)(it,{className:"size-5","aria-hidden":"true"})})]})]}),(0,eo.jsxs)("div",{className:"relative flex-1 overflow-hidden",children:[o&&!1===N&&(0,eo.jsxs)("div",{className:"absolute inset-0 z-40 flex md:hidden",children:[(0,eo.jsx)("button",{type:"button","aria-label":"Close research",className:"absolute inset-0 bg-black/40",onClick:D}),(0,eo.jsx)("aside",{"aria-label":c?"Navigation":"Research navigation",className:"relative z-10 h-full w-[min(19rem,calc(100vw-2.25rem))] bg-background shadow-xl",children:(0,eo.jsx)(da,{onClose:D,onNewChat:B,onThreadSelect:async e=>{await z(e),D()},onMutateReady:e=>T(()=>e),onInterruptCountChange:A})})]}),b&&!1===N&&(0,eo.jsxs)("div",{className:"absolute inset-0 z-40 flex justify-end md:hidden",children:[(0,eo.jsx)("button",{type:"button","aria-label":"Close inspector",className:"absolute inset-0 bg-black/40",onClick:P}),(0,eo.jsx)("aside",{"aria-label":"Inspector",className:"relative z-10 h-full w-[min(22rem,calc(100vw-2.25rem))] bg-background shadow-xl",children:(0,eo.jsx)(TI,{onClose:P,onReportToMainChat:R})})]}),(0,eo.jsxs)(sb,{direction:"horizontal",autoSaveId:"evoscientist-chat",children:[o&&N&&(0,eo.jsxs)(eo.Fragment,{children:[(0,eo.jsx)(iS,{id:"thread-history",order:1,defaultSize:23,minSize:18,className:"relative min-w-[260px]",children:(0,eo.jsx)(da,{onNewChat:B,onThreadSelect:z,onMutateReady:e=>T(()=>e),onInterruptCountChange:A})}),(0,eo.jsx)(sy,{})]}),(0,eo.jsxs)(iS,{id:"chat",className:"relative flex flex-col",order:2,children:[(0,eo.jsx)("div",{className:n3("flex h-full min-h-0 flex-1 flex-col",null!==c&&"hidden"),children:(0,eo.jsx)(dI,{activeAssistant:_,onHistoryRevalidate:()=>S?.(),children:(0,eo.jsx)(Sg,{assistant:_,onShowAgents:j,onNotifyReady:e=>O(()=>e),onNavigate:H,onOpenThread:z,workspaceOpen:!!(b&&"agents"!==E)})},I)}),"skills"===c&&(0,eo.jsx)(SS,{}),"memory"===c&&(0,eo.jsx)(S$,{initialTab:d,initialObsId:m,initialExecId:f}),"schedule"===c&&(0,eo.jsx)(Tc,{})]}),b&&N&&(0,eo.jsxs)(eo.Fragment,{children:[(0,eo.jsx)(sy,{}),(0,eo.jsx)(iS,{id:"inspector",order:3,defaultSize:26,minSize:20,className:"relative min-w-[300px]",children:(0,eo.jsx)(TI,{onClose:P,onReportToMainChat:R})})]})]})]})]})]})}function TR(){let[e,t]=(0,el.useState)(null),[n,r]=(0,el.useState)(!1),[a,i]=eE("assistantId");(0,el.useEffect)(()=>{let e=eT();e?(t(e),a||i(e.assistantId)):r(!0)},[]),(0,el.useEffect)(()=>{e&&!a&&i(e.assistantId)},[e,a,i]);let s=(0,el.useCallback)(e=>{localStorage.setItem(eS,JSON.stringify(e)),t(e)},[]),o=e?.langsmithApiKey||es.default.env.NEXT_PUBLIC_LANGSMITH_API_KEY||"";return e?(0,eo.jsx)(a7,{deploymentUrl:e.deploymentUrl,apiKey:o,children:(0,eo.jsx)(TC,{config:e,configDialogOpen:n,setConfigDialogOpen:r,handleSaveConfig:s})}):(0,eo.jsxs)(eo.Fragment,{children:[(0,eo.jsx)(rT,{open:n,onOpenChange:r,onSave:s}),(0,eo.jsx)("div",{className:"flex h-screen items-center justify-center",children:(0,eo.jsxs)("div",{className:"text-center",children:[(0,eo.jsx)("h1",{className:"text-2xl font-bold",children:"Welcome to EvoScientist"}),(0,eo.jsx)("p",{className:"mt-2 text-muted-foreground",children:"Configure your deployment to get started"}),(0,eo.jsx)(rm,{onClick:()=>r(!0),className:"mt-4",children:"Open Configuration"})]})})]})}e.s(["default",0,function(){return(0,eo.jsx)(el.Suspense,{fallback:(0,eo.jsx)("div",{className:"flex h-screen items-center justify-center",children:(0,eo.jsx)("p",{className:"text-muted-foreground",children:"Loading…"})}),children:(0,eo.jsx)(TR,{})})}],952683)}]);
|