grafana/plugins/grafana-lokiexplore-app/module.js
2025-01-10 20:54:04 -08:00

2 lines
No EOL
66 KiB
JavaScript

define(["@emotion/css","@grafana/data","@grafana/runtime","@grafana/ui","lodash","react","react-dom","react-redux","react-router-dom","redux","rxjs"],((t,e,r,s,i,n,o,h,a,l,O)=>(()=>{"use strict";var u,f,c,p,d={7608:(t,e,r)=>{r.d(e,{Ge:()=>f,uu:()=>$});var s=r(7781),i=r(3143),n=r(2533),o=r(7232),h=r(6001),a=r(8682);const l="Open in Explore Logs",O="Open current query in the Explore Logs view",u="gf-logs",f=[{targets:s.PluginExtensionPoints.DashboardPanelMenu,title:l,description:O,icon:u,path:p(),configure:c},{targets:s.PluginExtensionPoints.ExploreToolbarAction,title:l,description:O,icon:u,path:p(),configure:c}];function c(t){var e,r;if(!t)return;const s=t.targets.find((t=>{var e;return"loki"===(null===(e=t.datasource)||void 0===e?void 0:e.type)}));if(!s||!(null===(e=s.datasource)||void 0===e?void 0:e.uid))return;const n=s.expr,l=(0,a.BW)(n),O=l.find((t=>t.operator===h.w7.Equal));if(!O)return;const u=$(O.value);let f=O.key===i.OX?"service":O.key;l.sort(((t,e)=>t.key===f?-1:1));let c=g(d.DatasourceId,null===(r=s.datasource)||void 0===r?void 0:r.uid);c=g(d.TimeRangeFrom,t.timeRange.from.valueOf().toString(),c),c=g(d.TimeRangeTo,t.timeRange.to.valueOf().toString(),c);for(const t of l)t.type===o.H.Indexed&&(c=P(d.Labels,`${t.key}|${t.operator}|${t.value}`,c));return{path:p(`/explore/${f}/${u}/logs`,c)}}function p(t="/explore",e){return`/a/${n.id}${t}${e?`?${e.toString()}`:""}`}const d={DatasourceId:`var-${i.EY}`,TimeRangeFrom:"from",TimeRangeTo:"to",Labels:`var-${i.MB}`,Fields:`var-${i.mB}`};function g(t,e,r){var s;const i=new URLSearchParams(null!==(s=null==r?void 0:r.toString())&&void 0!==s?s:location.search);return i.set(t,e),i}function P(t,e,r){var s;const i=new URLSearchParams(null!==(s=null==r?void 0:r.toString())&&void 0!==s?s:location.search);return i.append(t,e),i}function $(t){return t.replace(/\//g,"-")}},7232:(t,e,r)=>{var s;r.d(e,{H:()=>s}),function(t){t.Indexed="I",t.StructuredMetadata="S",t.Parsed="P"}(s||(s={}))},6001:(t,e,r)=>{r.d(e,{$R:()=>h,dD:()=>o,p_:()=>n,rd:()=>l,rm:()=>a,w7:()=>s});var s,i=r(3143);function n(t,e){return 1===t.cardinality?1:1===e.cardinality?-1:t.cardinality-e.cardinality}function o(t){const e=[...t];t.includes(i.e4)||e.unshift(i.e4);const r=e.map((t=>({label:t,value:String(t)})));return[{label:"All",value:i.To},...r]}!function(t){t.Equal="=",t.NotEqual="!="}(s||(s={}));const h=["level_extracted",i.e4,"level"],a=["__aggregated_metric__","__stream_shard__"];function l(t){const e=[...t].map((t=>({label:t,value:String(t)})));return[{label:"All",value:i.To},...e]}},8682:(t,e,r)=>{r.d(e,{BW:()=>O,QH:()=>a,T0:()=>f});var s=r(6001),i=r(2344),n=r(7232);function o(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class h{static fromNode(t){return new h(t.from,t.to,t,t.type)}contains(t){return this.from<=t.from&&this.to>=t.to}getExpression(t){return t.substring(this.from,this.to)}constructor(t,e,r,s){o(this,"from",void 0),o(this,"to",void 0),o(this,"type",void 0),o(this,"syntaxNode",void 0),this.from=t,this.to=e,this.type=s,this.syntaxNode=r}}function a(t,e){const r=[];return i.K3.parse(t).iterate({enter:t=>{(void 0===e||e.includes(t.type.id))&&r.push(t.node)}}),r}function l(t,e){if(t.type.id===e)return[h.fromNode(t)];const r=[];let s=0,i=t.childAfter(s);for(;i;)r.push(...l(i,e)),s=i.to,i=t.childAfter(s);return r}function O(t){const e=[],r=a(t,[i.MD]);if(0===r.length)return e;const o=h.fromNode(r[0]),O=a(t,[i.g$]);for(const r of O){const a=h.fromNode(r),O=l(r,i.gw),u=l(r,i.Qf),f="="===t.substring(O[0].to,u[0].from)?s.w7.Equal:s.w7.NotEqual,c=O[0].getExpression(t),p=u.map((e=>t.substring(e.from+1,e.to-1)))[0];c&&p&&e.push({key:c,operator:f,value:p,type:o.contains(a)?n.H.Indexed:void 0})}return e}const u=0;function f(t){return!1===function(t,e){let r=!1;return i.K3.parse(t).iterate({enter:({type:t})=>{if(t.id===e)return r=!0,!1}}),r}(t,u)}},3143:(t,e,r)=>{r.d(e,{A2:()=>w,Du:()=>g,EY:()=>Q,Gb:()=>P,Jg:()=>p,LI:()=>c,MB:()=>s,OX:()=>E,Oc:()=>o,QE:()=>X,S1:()=>i,S6:()=>a,SA:()=>S,To:()=>T,VL:()=>k,WM:()=>y,Wi:()=>Z,YN:()=>x,ZO:()=>A,_P:()=>h,_Y:()=>u,e4:()=>q,eL:()=>_,gR:()=>m,kl:()=>$,ky:()=>z,mB:()=>n,mF:()=>b,pT:()=>R,qZ:()=>f,sC:()=>O,uw:()=>l,zp:()=>d});const s="filters",i="${filters}",n="fields",o="${fields}",h="metadata",a="${metadata}",l="patterns",O="${patterns}",u="levels",f="${levels}",c="fieldBy",p="labelBy",d="${labelBy}",g="primary_label_search",P="primary_label",$="${primary_label}",Q="ds",m="${ds}",x="| json | logfmt | drop __error__, __error_details__",k="| json | drop __error__, __error_details__",b="| logfmt",X="logsFormat",v="${logsFormat}",y="lineFilter",w="${lineFilter}",S=`{${i}} ${O} ${a} ${w} ${f} ${v} ${o}`,R=`{${i}} ${a} ${O} ${v}`,_={uid:m},T="$__all",q="detected_level",E="service_name",z="service",Z="var_aggregated_metrics",A='""'},6089:e=>{e.exports=t},7781:t=>{t.exports=e},8531:t=>{t.exports=r},2007:t=>{t.exports=s},3241:t=>{t.exports=i},5959:t=>{t.exports=n},8398:t=>{t.exports=o},200:t=>{t.exports=h},3806:t=>{t.exports=a},7694:t=>{t.exports=l},1269:t=>{t.exports=O},2344:(t,e,r)=>{r.d(e,{gw:()=>at,g$:()=>ht,Yw:()=>Ot,MD:()=>ot,Qf:()=>lt,K3:()=>nt});const s=1024;let i=0;class n{constructor(t,e){this.from=t,this.to=e}}class o{constructor(t={}){this.id=i++,this.perNode=!!t.perNode,this.deserialize=t.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(t){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return"function"!=typeof t&&(t=l.match(t)),e=>{let r=t(e);return void 0===r?null:[this,r]}}}o.closedBy=new o({deserialize:t=>t.split(" ")}),o.openedBy=new o({deserialize:t=>t.split(" ")}),o.group=new o({deserialize:t=>t.split(" ")}),o.isolate=new o({deserialize:t=>{if(t&&"rtl"!=t&&"ltr"!=t&&"auto"!=t)throw new RangeError("Invalid value for isolate: "+t);return t||"auto"}}),o.contextHash=new o({perNode:!0}),o.lookAhead=new o({perNode:!0}),o.mounted=new o({perNode:!0});class h{constructor(t,e,r){this.tree=t,this.overlay=e,this.parser=r}static get(t){return t&&t.props&&t.props[o.mounted.id]}}const a=Object.create(null);class l{constructor(t,e,r,s=0){this.name=t,this.props=e,this.id=r,this.flags=s}static define(t){let e=t.props&&t.props.length?Object.create(null):a,r=(t.top?1:0)|(t.skipped?2:0)|(t.error?4:0)|(null==t.name?8:0),s=new l(t.name||"",e,t.id,r);if(t.props)for(let r of t.props)if(Array.isArray(r)||(r=r(s)),r){if(r[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");e[r[0].id]=r[1]}return s}prop(t){return this.props[t.id]}get isTop(){return(1&this.flags)>0}get isSkipped(){return(2&this.flags)>0}get isError(){return(4&this.flags)>0}get isAnonymous(){return(8&this.flags)>0}is(t){if("string"==typeof t){if(this.name==t)return!0;let e=this.prop(o.group);return!!e&&e.indexOf(t)>-1}return this.id==t}static match(t){let e=Object.create(null);for(let r in t)for(let s of r.split(" "))e[s]=t[r];return t=>{for(let r=t.prop(o.group),s=-1;s<(r?r.length:0);s++){let i=e[s<0?t.name:r[s]];if(i)return i}}}}l.none=new l("",Object.create(null),0,8);class O{constructor(t){this.types=t;for(let e=0;e<t.length;e++)if(t[e].id!=e)throw new RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...t){let e=[];for(let r of this.types){let s=null;for(let e of t){let t=e(r);t&&(s||(s=Object.assign({},r.props)),s[t[0].id]=t[1])}e.push(s?new l(r.name,s,r.id,r.flags):r)}return new O(e)}}const u=new WeakMap,f=new WeakMap;var c;!function(t){t[t.ExcludeBuffers=1]="ExcludeBuffers",t[t.IncludeAnonymous=2]="IncludeAnonymous",t[t.IgnoreMounts=4]="IgnoreMounts",t[t.IgnoreOverlays=8]="IgnoreOverlays"}(c||(c={}));class p{constructor(t,e,r,s,i){if(this.type=t,this.children=e,this.positions=r,this.length=s,this.props=null,i&&i.length){this.props=Object.create(null);for(let[t,e]of i)this.props["number"==typeof t?t:t.id]=e}}toString(){let t=h.get(this);if(t&&!t.overlay)return t.tree.toString();let e="";for(let t of this.children){let r=t.toString();r&&(e&&(e+=","),e+=r)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(e.length?"("+e+")":""):e}cursor(t=0){return new w(this.topNode,t)}cursorAt(t,e=0,r=0){let s=u.get(this)||this.topNode,i=new w(s);return i.moveTo(t,e),u.set(this,i._tree),i}get topNode(){return new m(this,0,0,null)}resolve(t,e=0){let r=$(u.get(this)||this.topNode,t,e,!1);return u.set(this,r),r}resolveInner(t,e=0){let r=$(f.get(this)||this.topNode,t,e,!0);return f.set(this,r),r}resolveStack(t,e=0){return function(t,e,r){let s=t.resolveInner(e,r),i=null;for(let t=s instanceof m?s:s.context.parent;t;t=t.parent)if(t.index<0){let n=t.parent;(i||(i=[s])).push(n.resolve(e,r)),t=n}else{let n=h.get(t.tree);if(n&&n.overlay&&n.overlay[0].from<=e&&n.overlay[n.overlay.length-1].to>=e){let o=new m(n.tree,n.overlay[0].from+t.from,-1,t);(i||(i=[s])).push($(o,e,r,!1))}}return i?v(i):s}(this,t,e)}iterate(t){let{enter:e,leave:r,from:s=0,to:i=this.length}=t,n=t.mode||0,o=(n&c.IncludeAnonymous)>0;for(let t=this.cursor(n|c.IncludeAnonymous);;){let n=!1;if(t.from<=i&&t.to>=s&&(!o&&t.type.isAnonymous||!1!==e(t))){if(t.firstChild())continue;n=!0}for(;n&&r&&(o||!t.type.isAnonymous)&&r(t),!t.nextSibling();){if(!t.parent())return;n=!0}}}prop(t){return t.perNode?this.props?this.props[t.id]:void 0:this.type.prop(t)}get propValues(){let t=[];if(this.props)for(let e in this.props)t.push([+e,this.props[e]]);return t}balance(t={}){return this.children.length<=8?this:T(l.none,this.children,this.positions,0,this.children.length,0,this.length,((t,e,r)=>new p(this.type,t,e,r,this.propValues)),t.makeTree||((t,e,r)=>new p(l.none,t,e,r)))}static build(t){return function(t){var e;let{buffer:r,nodeSet:i,maxBufferLength:n=s,reused:h=[],minRepeatType:a=i.types.length}=t,l=Array.isArray(r)?new d(r,r.length):r,O=i.types,u=0,f=0;function c(t,e,r,s,d,x){let{id:k,start:b,end:X,size:v}=l,y=f;for(;v<0;){if(l.next(),-1==v){let e=h[k];return r.push(e),void s.push(b-t)}if(-3==v)return void(u=k);if(-4==v)return void(f=k);throw new RangeError(`Unrecognized record size: ${v}`)}let w,S,R=O[k],_=b-t;if(X-b<=n&&(S=function(t,e){let r=l.fork(),s=0,i=0,o=0,h=r.end-n,O={size:0,start:0,skip:0};t:for(let n=r.pos-t;r.pos>n;){let t=r.size;if(r.id==e&&t>=0){O.size=s,O.start=i,O.skip=o,o+=4,s+=4,r.next();continue}let l=r.pos-t;if(t<0||l<n||r.start<h)break;let u=r.id>=a?4:0,f=r.start;for(r.next();r.pos>l;){if(r.size<0){if(-3!=r.size)break t;u+=4}else r.id>=a&&(u+=4);r.next()}i=f,s+=t,o+=u}return(e<0||s==t)&&(O.size=s,O.start=i,O.skip=o),O.size>4?O:void 0}(l.pos-e,d))){let e=new Uint16Array(S.size-S.skip),r=l.pos-S.size,s=e.length;for(;l.pos>r;)s=m(S.start,e,s);w=new g(e,X-S.start,i),_=S.start-t}else{let t=l.pos-v;l.next();let e=[],r=[],s=k>=a?k:-1,i=0,h=X;for(;l.pos>t;)s>=0&&l.id==s&&l.size>=0?(l.end<=h-n&&($(e,r,b,i,l.end,h,s,y),i=e.length,h=l.end),l.next()):x>2500?P(b,t,e,r):c(b,t,e,r,s,x+1);if(s>=0&&i>0&&i<e.length&&$(e,r,b,i,b,h,s,y),e.reverse(),r.reverse(),s>-1&&i>0){let t=function(t){return(e,r,s)=>{let i,n,h=0,a=e.length-1;if(a>=0&&(i=e[a])instanceof p){if(!a&&i.type==t&&i.length==s)return i;(n=i.prop(o.lookAhead))&&(h=r[a]+i.length+n)}return Q(t,e,r,s,h)}}(R);w=T(R,e,r,0,e.length,0,X-b,t,t)}else w=Q(R,e,r,X-b,y-X)}r.push(w),s.push(_)}function P(t,e,r,s){let o=[],h=0,a=-1;for(;l.pos>e;){let{id:t,start:e,end:r,size:s}=l;if(s>4)l.next();else{if(a>-1&&e<a)break;a<0&&(a=r-n),o.push(t,e,r),h++,l.next()}}if(h){let e=new Uint16Array(4*h),n=o[o.length-2];for(let t=o.length-3,r=0;t>=0;t-=3)e[r++]=o[t],e[r++]=o[t+1]-n,e[r++]=o[t+2]-n,e[r++]=r;r.push(new g(e,o[2]-n,i)),s.push(n-t)}}function $(t,e,r,s,n,o,h,a){let l=[],O=[];for(;t.length>s;)l.push(t.pop()),O.push(e.pop()+r-n);t.push(Q(i.types[h],l,O,o-n,a-o)),e.push(n-r)}function Q(t,e,r,s,i=0,n){if(u){let t=[o.contextHash,u];n=n?[t].concat(n):[t]}if(i>25){let t=[o.lookAhead,i];n=n?[t].concat(n):[t]}return new p(t,e,r,s,n)}function m(t,e,r){let{id:s,start:i,end:n,size:o}=l;if(l.next(),o>=0&&s<a){let h=r;if(o>4){let s=l.pos-(o-4);for(;l.pos>s;)r=m(t,e,r)}e[--r]=h,e[--r]=n-t,e[--r]=i-t,e[--r]=s}else-3==o?u=s:-4==o&&(f=s);return r}let x=[],k=[];for(;l.pos>0;)c(t.start||0,t.bufferStart||0,x,k,-1,0);let b=null!==(e=t.length)&&void 0!==e?e:x.length?k[0]+x[0].length:0;return new p(O[t.topID],x.reverse(),k.reverse(),b)}(t)}}p.empty=new p(l.none,[],[],0);class d{constructor(t,e){this.buffer=t,this.index=e}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new d(this.buffer,this.index)}}class g{constructor(t,e,r){this.buffer=t,this.length=e,this.set=r}get type(){return l.none}toString(){let t=[];for(let e=0;e<this.buffer.length;)t.push(this.childString(e)),e=this.buffer[e+3];return t.join(",")}childString(t){let e=this.buffer[t],r=this.buffer[t+3],s=this.set.types[e],i=s.name;if(/\W/.test(i)&&!s.isError&&(i=JSON.stringify(i)),r==(t+=4))return i;let n=[];for(;t<r;)n.push(this.childString(t)),t=this.buffer[t+3];return i+"("+n.join(",")+")"}findChild(t,e,r,s,i){let{buffer:n}=this,o=-1;for(let h=t;h!=e&&!(P(i,s,n[h+1],n[h+2])&&(o=h,r>0));h=n[h+3]);return o}slice(t,e,r){let s=this.buffer,i=new Uint16Array(e-t),n=0;for(let o=t,h=0;o<e;){i[h++]=s[o++],i[h++]=s[o++]-r;let e=i[h++]=s[o++]-r;i[h++]=s[o++]-t,n=Math.max(n,e)}return new g(i,n,this.set)}}function P(t,e,r,s){switch(t){case-2:return r<e;case-1:return s>=e&&r<e;case 0:return r<e&&s>e;case 1:return r<=e&&s>e;case 2:return s>e;case 4:return!0}}function $(t,e,r,s){for(var i;t.from==t.to||(r<1?t.from>=e:t.from>e)||(r>-1?t.to<=e:t.to<e);){let e=!s&&t instanceof m&&t.index<0?null:t.parent;if(!e)return t;t=e}let n=s?0:c.IgnoreOverlays;if(s)for(let s=t,o=s.parent;o;s=o,o=s.parent)s instanceof m&&s.index<0&&(null===(i=o.enter(e,r,n))||void 0===i?void 0:i.from)!=s.from&&(t=o);for(;;){let s=t.enter(e,r,n);if(!s)return t;t=s}}class Q{cursor(t=0){return new w(this,t)}getChild(t,e=null,r=null){let s=x(this,t,e,r);return s.length?s[0]:null}getChildren(t,e=null,r=null){return x(this,t,e,r)}resolve(t,e=0){return $(this,t,e,!1)}resolveInner(t,e=0){return $(this,t,e,!0)}matchContext(t){return k(this,t)}enterUnfinishedNodesBefore(t){let e=this.childBefore(t),r=this;for(;e;){let t=e.lastChild;if(!t||t.to!=e.to)break;t.type.isError&&t.from==t.to?(r=e,e=t.prevSibling):e=t}return r}get node(){return this}get next(){return this.parent}}class m extends Q{constructor(t,e,r,s){super(),this._tree=t,this.from=e,this.index=r,this._parent=s}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(t,e,r,s,i=0){for(let n=this;;){for(let{children:o,positions:a}=n._tree,l=e>0?o.length:-1;t!=l;t+=e){let l=o[t],O=a[t]+n.from;if(P(s,r,O,O+l.length))if(l instanceof g){if(i&c.ExcludeBuffers)continue;let o=l.findChild(0,l.buffer.length,e,r-O,s);if(o>-1)return new X(new b(n,l,t,O),null,o)}else if(i&c.IncludeAnonymous||!l.type.isAnonymous||S(l)){let o;if(!(i&c.IgnoreMounts)&&(o=h.get(l))&&!o.overlay)return new m(o.tree,O,t,n);let a=new m(l,O,t,n);return i&c.IncludeAnonymous||!a.type.isAnonymous?a:a.nextChild(e<0?l.children.length-1:0,e,r,s)}}if(i&c.IncludeAnonymous||!n.type.isAnonymous)return null;if(t=n.index>=0?n.index+e:e<0?-1:n._parent._tree.children.length,n=n._parent,!n)return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(t){return this.nextChild(0,1,t,2)}childBefore(t){return this.nextChild(this._tree.children.length-1,-1,t,-2)}enter(t,e,r=0){let s;if(!(r&c.IgnoreOverlays)&&(s=h.get(this._tree))&&s.overlay){let r=t-this.from;for(let{from:t,to:i}of s.overlay)if((e>0?t<=r:t<r)&&(e<0?i>=r:i>r))return new m(s.tree,s.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,t,e,r)}nextSignificantParent(){let t=this;for(;t.type.isAnonymous&&t._parent;)t=t._parent;return t}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function x(t,e,r,s){let i=t.cursor(),n=[];if(!i.firstChild())return n;if(null!=r)for(let t=!1;!t;)if(t=i.type.is(r),!i.nextSibling())return n;for(;;){if(null!=s&&i.type.is(s))return n;if(i.type.is(e)&&n.push(i.node),!i.nextSibling())return null==s?n:[]}}function k(t,e,r=e.length-1){for(let s=t.parent;r>=0;s=s.parent){if(!s)return!1;if(!s.type.isAnonymous){if(e[r]&&e[r]!=s.name)return!1;r--}}return!0}class b{constructor(t,e,r,s){this.parent=t,this.buffer=e,this.index=r,this.start=s}}class X extends Q{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(t,e,r){super(),this.context=t,this._parent=e,this.index=r,this.type=t.buffer.set.types[t.buffer.buffer[r]]}child(t,e,r){let{buffer:s}=this.context,i=s.findChild(this.index+4,s.buffer[this.index+3],t,e-this.context.start,r);return i<0?null:new X(this.context,this,i)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(t){return this.child(1,t,2)}childBefore(t){return this.child(-1,t,-2)}enter(t,e,r=0){if(r&c.ExcludeBuffers)return null;let{buffer:s}=this.context,i=s.findChild(this.index+4,s.buffer[this.index+3],e>0?1:-1,t-this.context.start,e);return i<0?null:new X(this.context,this,i)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(t){return this._parent?null:this.context.parent.nextChild(this.context.index+t,t,0,4)}get nextSibling(){let{buffer:t}=this.context,e=t.buffer[this.index+3];return e<(this._parent?t.buffer[this._parent.index+3]:t.buffer.length)?new X(this.context,this._parent,e):this.externalSibling(1)}get prevSibling(){let{buffer:t}=this.context,e=this._parent?this._parent.index+4:0;return this.index==e?this.externalSibling(-1):new X(this.context,this._parent,t.findChild(e,this.index,-1,0,4))}get tree(){return null}toTree(){let t=[],e=[],{buffer:r}=this.context,s=this.index+4,i=r.buffer[this.index+3];if(i>s){let n=r.buffer[this.index+1];t.push(r.slice(s,i,n)),e.push(0)}return new p(this.type,t,e,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function v(t){if(!t.length)return null;let e=0,r=t[0];for(let s=1;s<t.length;s++){let i=t[s];(i.from>r.from||i.to<r.to)&&(r=i,e=s)}let s=r instanceof m&&r.index<0?null:r.parent,i=t.slice();return s?i[e]=s:i.splice(e,1),new y(i,r)}class y{constructor(t,e){this.heads=t,this.node=e}get next(){return v(this.heads)}}class w{get name(){return this.type.name}constructor(t,e=0){if(this.mode=e,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,t instanceof m)this.yieldNode(t);else{this._tree=t.context.parent,this.buffer=t.context;for(let e=t._parent;e;e=e._parent)this.stack.unshift(e.index);this.bufferNode=t,this.yieldBuf(t.index)}}yieldNode(t){return!!t&&(this._tree=t,this.type=t.type,this.from=t.from,this.to=t.to,!0)}yieldBuf(t,e){this.index=t;let{start:r,buffer:s}=this.buffer;return this.type=e||s.set.types[s.buffer[t]],this.from=r+s.buffer[t+1],this.to=r+s.buffer[t+2],!0}yield(t){return!!t&&(t instanceof m?(this.buffer=null,this.yieldNode(t)):(this.buffer=t.context,this.yieldBuf(t.index,t.type)))}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(t,e,r){if(!this.buffer)return this.yield(this._tree.nextChild(t<0?this._tree._tree.children.length-1:0,t,e,r,this.mode));let{buffer:s}=this.buffer,i=s.findChild(this.index+4,s.buffer[this.index+3],t,e-this.buffer.start,r);return!(i<0)&&(this.stack.push(this.index),this.yieldBuf(i))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(t){return this.enterChild(1,t,2)}childBefore(t){return this.enterChild(-1,t,-2)}enter(t,e,r=this.mode){return this.buffer?!(r&c.ExcludeBuffers)&&this.enterChild(1,t,e):this.yield(this._tree.enter(t,e,r))}parent(){if(!this.buffer)return this.yieldNode(this.mode&c.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let t=this.mode&c.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(t)}sibling(t){if(!this.buffer)return!!this._tree._parent&&this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+t,t,0,4,this.mode));let{buffer:e}=this.buffer,r=this.stack.length-1;if(t<0){let t=r<0?0:this.stack[r]+4;if(this.index!=t)return this.yieldBuf(e.findChild(t,this.index,-1,0,4))}else{let t=e.buffer[this.index+3];if(t<(r<0?e.buffer.length:e.buffer[this.stack[r]+3]))return this.yieldBuf(t)}return r<0&&this.yield(this.buffer.parent.nextChild(this.buffer.index+t,t,0,4,this.mode))}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(t){let e,r,{buffer:s}=this;if(s){if(t>0){if(this.index<s.buffer.buffer.length)return!1}else for(let t=0;t<this.index;t++)if(s.buffer.buffer[t+3]<this.index)return!1;({index:e,parent:r}=s)}else({index:e,_parent:r}=this._tree);for(;r;({index:e,_parent:r}=r))if(e>-1)for(let s=e+t,i=t<0?-1:r._tree.children.length;s!=i;s+=t){let t=r._tree.children[s];if(this.mode&c.IncludeAnonymous||t instanceof g||!t.type.isAnonymous||S(t))return!1}return!0}move(t,e){if(e&&this.enterChild(t,0,4))return!0;for(;;){if(this.sibling(t))return!0;if(this.atLastNode(t)||!this.parent())return!1}}next(t=!0){return this.move(1,t)}prev(t=!0){return this.move(-1,t)}moveTo(t,e=0){for(;(this.from==this.to||(e<1?this.from>=t:this.from>t)||(e>-1?this.to<=t:this.to<t))&&this.parent(););for(;this.enterChild(1,t,e););return this}get node(){if(!this.buffer)return this._tree;let t=this.bufferNode,e=null,r=0;if(t&&t.context==this.buffer)t:for(let s=this.index,i=this.stack.length;i>=0;){for(let n=t;n;n=n._parent)if(n.index==s){if(s==this.index)return n;e=n,r=i+1;break t}s=this.stack[--i]}for(let t=r;t<this.stack.length;t++)e=new X(this.buffer,e,this.stack[t]);return this.bufferNode=new X(this.buffer,e,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(t,e){for(let r=0;;){let s=!1;if(this.type.isAnonymous||!1!==t(this)){if(this.firstChild()){r++;continue}this.type.isAnonymous||(s=!0)}for(;s&&e&&e(this),s=this.type.isAnonymous,!this.nextSibling();){if(!r)return;this.parent(),r--,s=!0}}}matchContext(t){if(!this.buffer)return k(this.node,t);let{buffer:e}=this.buffer,{types:r}=e.set;for(let s=t.length-1,i=this.stack.length-1;s>=0;i--){if(i<0)return k(this.node,t,s);let n=r[e.buffer[this.stack[i]]];if(!n.isAnonymous){if(t[s]&&t[s]!=n.name)return!1;s--}}return!0}}function S(t){return t.children.some((t=>t instanceof g||!t.type.isAnonymous||S(t)))}const R=new WeakMap;function _(t,e){if(!t.isAnonymous||e instanceof g||e.type!=t)return 1;let r=R.get(e);if(null==r){r=1;for(let s of e.children){if(s.type!=t||!(s instanceof p)){r=1;break}r+=_(t,s)}R.set(e,r)}return r}function T(t,e,r,s,i,n,o,h,a){let l=0;for(let r=s;r<i;r++)l+=_(t,e[r]);let O=Math.ceil(1.5*l/8),u=[],f=[];return function e(r,s,i,o,h){for(let l=i;l<o;){let i=l,c=s[l],p=_(t,r[l]);for(l++;l<o;l++){let e=_(t,r[l]);if(p+e>=O)break;p+=e}if(l==i+1){if(p>O){let t=r[i];e(t.children,t.positions,0,t.children.length,s[i]+h);continue}u.push(r[i])}else{let e=s[l-1]+r[l-1].length-c;u.push(T(t,r,s,i,l,c,e,null,a))}f.push(c+h-n)}}(e,r,s,i,0),(h||a)(u,f,o)}class q{startParse(t,e,r){return"string"==typeof t&&(t=new E(t)),r=r?r.length?r.map((t=>new n(t.from,t.to))):[new n(0,0)]:[new n(0,t.length)],this.createParse(t,e||[],r)}parse(t,e,r){let s=this.startParse(t,e,r);for(;;){let t=s.advance();if(t)return t}}}class E{constructor(t){this.string=t}get length(){return this.string.length}chunk(t){return this.string.slice(t)}get lineChunks(){return!1}read(t,e){return this.string.slice(t,e)}}new o({perNode:!0});class z{constructor(t,e,r,s,i,n,o,h,a,l=0,O){this.p=t,this.stack=e,this.state=r,this.reducePos=s,this.pos=i,this.score=n,this.buffer=o,this.bufferBase=h,this.curContext=a,this.lookAhead=l,this.parent=O}toString(){return`[${this.stack.filter(((t,e)=>e%3==0)).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(t,e,r=0){let s=t.parser.context;return new z(t,[],e,r,r,0,[],0,s?new Z(s,s.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(t,e){this.stack.push(this.state,e,this.bufferBase+this.buffer.length),this.state=t}reduce(t){var e;let r=t>>19,s=65535&t,{parser:i}=this.p;this.reducePos<this.pos-25&&this.setLookAhead(this.pos);let n=i.dynamicPrecedence(s);if(n&&(this.score+=n),0==r)return this.pushState(i.getGoto(this.state,s,!0),this.reducePos),s<i.minRepeatTerm&&this.storeNode(s,this.reducePos,this.reducePos,4,!0),void this.reduceContext(s,this.reducePos);let o=this.stack.length-3*(r-1)-(262144&t?6:0),h=o?this.stack[o-2]:this.p.ranges[0].from,a=this.reducePos-h;a>=2e3&&!(null===(e=this.p.parser.nodeSet.types[s])||void 0===e?void 0:e.isAnonymous)&&(h==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=a):this.p.lastBigReductionSize<a&&(this.p.bigReductionCount=1,this.p.lastBigReductionStart=h,this.p.lastBigReductionSize=a));let l=o?this.stack[o-1]:0,O=this.bufferBase+this.buffer.length-l;if(s<i.minRepeatTerm||131072&t){let t=i.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(s,h,t,O+4,!0)}if(262144&t)this.state=this.stack[o];else{let t=this.stack[o-3];this.state=i.getGoto(t,s,!0)}for(;this.stack.length>o;)this.stack.pop();this.reduceContext(s,h)}storeNode(t,e,r,s=4,i=!1){if(0==t&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let t=this,s=this.buffer.length;if(0==s&&t.parent&&(s=t.bufferBase-t.parent.bufferBase,t=t.parent),s>0&&0==t.buffer[s-4]&&t.buffer[s-1]>-1){if(e==r)return;if(t.buffer[s-2]>=e)return void(t.buffer[s-2]=r)}}if(i&&this.pos!=r){let i=this.buffer.length;if(i>0&&0!=this.buffer[i-4])for(;i>0&&this.buffer[i-2]>r;)this.buffer[i]=this.buffer[i-4],this.buffer[i+1]=this.buffer[i-3],this.buffer[i+2]=this.buffer[i-2],this.buffer[i+3]=this.buffer[i-1],i-=4,s>4&&(s-=4);this.buffer[i]=t,this.buffer[i+1]=e,this.buffer[i+2]=r,this.buffer[i+3]=s}else this.buffer.push(t,e,r,s)}shift(t,e,r,s){if(131072&t)this.pushState(65535&t,this.pos);else if(262144&t)this.pos=s,this.shiftContext(e,r),e<=this.p.parser.maxNode&&this.buffer.push(e,r,s,4);else{let i=t,{parser:n}=this.p;(s>this.pos||e<=n.maxNode)&&(this.pos=s,n.stateFlag(i,1)||(this.reducePos=s)),this.pushState(i,r),this.shiftContext(e,r),e<=n.maxNode&&this.buffer.push(e,r,s,4)}}apply(t,e,r,s){65536&t?this.reduce(t):this.shift(t,e,r,s)}useNode(t,e){let r=this.p.reused.length-1;(r<0||this.p.reused[r]!=t)&&(this.p.reused.push(t),r++);let s=this.pos;this.reducePos=this.pos=s+t.length,this.pushState(e,s),this.buffer.push(r,s,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,t,this,this.p.stream.reset(this.pos-t.length)))}split(){let t=this,e=t.buffer.length;for(;e>0&&t.buffer[e-2]>t.reducePos;)e-=4;let r=t.buffer.slice(e),s=t.bufferBase+e;for(;t&&s==t.bufferBase;)t=t.parent;return new z(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,r,s,this.curContext,this.lookAhead,t)}recoverByDelete(t,e){let r=t<=this.p.parser.maxNode;r&&this.storeNode(t,this.pos,e,4),this.storeNode(0,this.pos,e,r?8:4),this.pos=this.reducePos=e,this.score-=190}canShift(t){for(let e=new A(this);;){let r=this.p.parser.stateSlot(e.state,4)||this.p.parser.hasAction(e.state,t);if(0==r)return!1;if(!(65536&r))return!0;e.reduce(r)}}recoverByInsert(t){if(this.stack.length>=300)return[];let e=this.p.parser.nextStates(this.state);if(e.length>8||this.stack.length>=120){let r=[];for(let s,i=0;i<e.length;i+=2)(s=e[i+1])!=this.state&&this.p.parser.hasAction(s,t)&&r.push(e[i],s);if(this.stack.length<120)for(let t=0;r.length<8&&t<e.length;t+=2){let s=e[t+1];r.some(((t,e)=>1&e&&t==s))||r.push(e[t],s)}e=r}let r=[];for(let t=0;t<e.length&&r.length<4;t+=2){let s=e[t+1];if(s==this.state)continue;let i=this.split();i.pushState(s,this.pos),i.storeNode(0,i.pos,i.pos,4,!0),i.shiftContext(e[t],this.pos),i.reducePos=this.pos,i.score-=200,r.push(i)}return r}forceReduce(){let{parser:t}=this.p,e=t.stateSlot(this.state,5);if(!(65536&e))return!1;if(!t.validAction(this.state,e)){let r=e>>19,s=65535&e,i=this.stack.length-3*r;if(i<0||t.getGoto(this.stack[i],s,!1)<0){let t=this.findForcedReduction();if(null==t)return!1;e=t}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(e),!0}findForcedReduction(){let{parser:t}=this.p,e=[],r=(s,i)=>{if(!e.includes(s))return e.push(s),t.allActions(s,(e=>{if(393216&e);else if(65536&e){let r=(e>>19)-i;if(r>1){let s=65535&e,i=this.stack.length-3*r;if(i>=0&&t.getGoto(this.stack[i],s,!1)>=0)return r<<19|65536|s}}else{let t=r(e,i+1);if(null!=t)return t}}))};return r(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(3!=this.stack.length)return!1;let{parser:t}=this.p;return 65535==t.data[t.stateSlot(this.state,1)]&&!t.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(t){if(this.state!=t.state||this.stack.length!=t.stack.length)return!1;for(let e=0;e<this.stack.length;e+=3)if(this.stack[e]!=t.stack[e])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(t){return this.p.parser.dialect.flags[t]}shiftContext(t,e){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,t,this,this.p.stream.reset(e)))}reduceContext(t,e){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,t,this,this.p.stream.reset(e)))}emitContext(){let t=this.buffer.length-1;(t<0||-3!=this.buffer[t])&&this.buffer.push(this.curContext.hash,this.pos,this.pos,-3)}emitLookAhead(){let t=this.buffer.length-1;(t<0||-4!=this.buffer[t])&&this.buffer.push(this.lookAhead,this.pos,this.pos,-4)}updateContext(t){if(t!=this.curContext.context){let e=new Z(this.curContext.tracker,t);e.hash!=this.curContext.hash&&this.emitContext(),this.curContext=e}}setLookAhead(t){t>this.lookAhead&&(this.emitLookAhead(),this.lookAhead=t)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class Z{constructor(t,e){this.tracker=t,this.context=e,this.hash=t.strict?t.hash(e):0}}class A{constructor(t){this.start=t,this.state=t.state,this.stack=t.stack,this.base=this.stack.length}reduce(t){let e=65535&t,r=t>>19;0==r?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=3*(r-1);let s=this.start.p.parser.getGoto(this.stack[this.base-3],e,!0);this.state=s}}class V{constructor(t,e,r){this.stack=t,this.pos=e,this.index=r,this.buffer=t.buffer,0==this.index&&this.maybeNext()}static create(t,e=t.bufferBase+t.buffer.length){return new V(t,e,e-t.bufferBase)}maybeNext(){let t=this.stack.parent;null!=t&&(this.index=this.stack.bufferBase-t.bufferBase,this.stack=t,this.buffer=t.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,0==this.index&&this.maybeNext()}fork(){return new V(this.stack,this.pos,this.index)}}function C(t,e=Uint16Array){if("string"!=typeof t)return t;let r=null;for(let s=0,i=0;s<t.length;){let n=0;for(;;){let e=t.charCodeAt(s++),r=!1;if(126==e){n=65535;break}e>=92&&e--,e>=34&&e--;let i=e-32;if(i>=46&&(i-=46,r=!0),n+=i,r)break;n*=46}r?r[i++]=n:r=new e(n)}return r}class U{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const W=new U;class G{constructor(t,e){this.input=t,this.ranges=e,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=W,this.rangeIndex=0,this.pos=this.chunkPos=e[0].from,this.range=e[0],this.end=e[e.length-1].to,this.readNext()}resolveOffset(t,e){let r=this.range,s=this.rangeIndex,i=this.pos+t;for(;i<r.from;){if(!s)return null;let t=this.ranges[--s];i-=r.from-t.to,r=t}for(;e<0?i>r.to:i>=r.to;){if(s==this.ranges.length-1)return null;let t=this.ranges[++s];i+=t.from-r.to,r=t}return i}clipPos(t){if(t>=this.range.from&&t<this.range.to)return t;for(let e of this.ranges)if(e.to>t)return Math.max(t,e.from);return this.end}peek(t){let e,r,s=this.chunkOff+t;if(s>=0&&s<this.chunk.length)e=this.pos+t,r=this.chunk.charCodeAt(s);else{let s=this.resolveOffset(t,1);if(null==s)return-1;if(e=s,e>=this.chunk2Pos&&e<this.chunk2Pos+this.chunk2.length)r=this.chunk2.charCodeAt(e-this.chunk2Pos);else{let t=this.rangeIndex,s=this.range;for(;s.to<=e;)s=this.ranges[++t];this.chunk2=this.input.chunk(this.chunk2Pos=e),e+this.chunk2.length>s.to&&(this.chunk2=this.chunk2.slice(0,s.to-e)),r=this.chunk2.charCodeAt(0)}}return e>=this.token.lookAhead&&(this.token.lookAhead=e+1),r}acceptToken(t,e=0){let r=e?this.resolveOffset(e,-1):this.pos;if(null==r||r<this.token.start)throw new RangeError("Token end out of bounds");this.token.value=t,this.token.end=r}acceptTokenTo(t,e){this.token.value=t,this.token.end=e}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:t,chunkPos:e}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=t,this.chunk2Pos=e,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let t=this.input.chunk(this.pos),e=this.pos+t.length;this.chunk=e>this.range.to?t.slice(0,this.range.to-this.pos):t,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(t=1){for(this.chunkOff+=t;this.pos+t>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();t-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=t,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(t,e){if(e?(this.token=e,e.start=t,e.lookAhead=t+1,e.value=e.extended=-1):this.token=W,this.pos!=t){if(this.pos=t,t==this.end)return this.setDone(),this;for(;t<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;t>=this.range.to;)this.range=this.ranges[++this.rangeIndex];t>=this.chunkPos&&t<this.chunkPos+this.chunk.length?this.chunkOff=t-this.chunkPos:(this.chunk="",this.chunkOff=0),this.readNext()}return this}read(t,e){if(t>=this.chunkPos&&e<=this.chunkPos+this.chunk.length)return this.chunk.slice(t-this.chunkPos,e-this.chunkPos);if(t>=this.chunk2Pos&&e<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(t-this.chunk2Pos,e-this.chunk2Pos);if(t>=this.range.from&&e<=this.range.to)return this.input.read(t,e);let r="";for(let s of this.ranges){if(s.from>=e)break;s.to>t&&(r+=this.input.read(Math.max(s.from,t),Math.min(s.to,e)))}return r}}class N{constructor(t,e){this.data=t,this.id=e}token(t,e){let{parser:r}=e.p;!function(t,e,r,s,i,n){let o=0,h=1<<s,{dialect:a}=r.p.parser;t:for(;h&t[o];){let r=t[o+1];for(let s=o+3;s<r;s+=2)if((t[s+1]&h)>0){let r=t[s];if(a.allows(r)&&(-1==e.token.value||e.token.value==r||D(r,e.token.value,i,n))){e.acceptToken(r);break}}let s=e.next,l=0,O=t[o+2];if(!(e.next<0&&O>l&&65535==t[r+3*O-3])){for(;l<O;){let i=l+O>>1,n=r+i+(i<<1),h=t[n],a=t[n+1]||65536;if(s<h)O=i;else{if(!(s>=a)){o=t[n+2],e.advance();continue t}l=i+1}}break}o=t[r+3*O-1]}}(this.data,t,e,this.id,r.data,r.tokenPrecTable)}}function Y(t,e,r){for(let s,i=e;65535!=(s=t[i]);i++)if(s==r)return i-e;return-1}function D(t,e,r,s){let i=Y(r,s,e);return i<0||Y(r,s,t)<i}N.prototype.contextual=N.prototype.fallback=N.prototype.extend=!1,N.prototype.fallback=N.prototype.extend=!1;const j="undefined"!=typeof process&&process.env&&/\bparse\b/.test(process.env.LOG);let L=null;function B(t,e,r){let s=t.cursor(c.IncludeAnonymous);for(s.moveTo(e);;)if(!(r<0?s.childBefore(e):s.childAfter(e)))for(;;){if((r<0?s.to<e:s.from>e)&&!s.type.isError)return r<0?Math.max(0,Math.min(s.to-1,e-25)):Math.min(t.length,Math.max(s.from+1,e+25));if(r<0?s.prevSibling():s.nextSibling())break;if(!s.parent())return r<0?0:t.length}}class I{constructor(t,e){this.fragments=t,this.nodeSet=e,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let t=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(t){for(this.safeFrom=t.openStart?B(t.tree,t.from+t.offset,1)-t.offset:t.from,this.safeTo=t.openEnd?B(t.tree,t.to+t.offset,-1)-t.offset:t.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(t.tree),this.start.push(-t.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(t){if(t<this.nextStart)return null;for(;this.fragment&&this.safeTo<=t;)this.nextFragment();if(!this.fragment)return null;for(;;){let e=this.trees.length-1;if(e<0)return this.nextFragment(),null;let r=this.trees[e],s=this.index[e];if(s==r.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let i=r.children[s],n=this.start[e]+r.positions[s];if(n>t)return this.nextStart=n,null;if(i instanceof p){if(n==t){if(n<this.safeFrom)return null;let t=n+i.length;if(t<=this.safeTo){let e=i.prop(o.lookAhead);if(!e||t+e<this.fragment.to)return i}}this.index[e]++,n+i.length>=Math.max(this.safeFrom,t)&&(this.trees.push(i),this.start.push(n),this.index.push(0))}else this.index[e]++,this.nextStart=n+i.length}}}class F{constructor(t,e){this.stream=e,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=t.tokenizers.map((t=>new U))}getActions(t){let e=0,r=null,{parser:s}=t.p,{tokenizers:i}=s,n=s.stateSlot(t.state,3),o=t.curContext?t.curContext.hash:0,h=0;for(let s=0;s<i.length;s++){if(!(1<<s&n))continue;let a=i[s],l=this.tokens[s];if((!r||a.fallback)&&((a.contextual||l.start!=t.pos||l.mask!=n||l.context!=o)&&(this.updateCachedToken(l,a,t),l.mask=n,l.context=o),l.lookAhead>l.end+25&&(h=Math.max(l.lookAhead,h)),0!=l.value)){let s=e;if(l.extended>-1&&(e=this.addActions(t,l.extended,l.end,e)),e=this.addActions(t,l.value,l.end,e),!a.extend&&(r=l,e>s))break}}for(;this.actions.length>e;)this.actions.pop();return h&&t.setLookAhead(h),r||t.pos!=this.stream.end||(r=new U,r.value=t.p.parser.eofTerm,r.start=r.end=t.pos,e=this.addActions(t,r.value,r.end,e)),this.mainToken=r,this.actions}getMainToken(t){if(this.mainToken)return this.mainToken;let e=new U,{pos:r,p:s}=t;return e.start=r,e.end=Math.min(r+1,s.stream.end),e.value=r==s.stream.end?s.parser.eofTerm:0,e}updateCachedToken(t,e,r){let s=this.stream.clipPos(r.pos);if(e.token(this.stream.reset(s,t),r),t.value>-1){let{parser:e}=r.p;for(let s=0;s<e.specialized.length;s++)if(e.specialized[s]==t.value){let i=e.specializers[s](this.stream.read(t.start,t.end),r);if(i>=0&&r.p.parser.dialect.allows(i>>1)){1&i?t.extended=i>>1:t.value=i>>1;break}}}else t.value=0,t.end=this.stream.clipPos(s+1)}putAction(t,e,r,s){for(let e=0;e<s;e+=3)if(this.actions[e]==t)return s;return this.actions[s++]=t,this.actions[s++]=e,this.actions[s++]=r,s}addActions(t,e,r,s){let{state:i}=t,{parser:n}=t.p,{data:o}=n;for(let t=0;t<2;t++)for(let h=n.stateSlot(i,t?2:1);;h+=3){if(65535==o[h]){if(1!=o[h+1]){0==s&&2==o[h+1]&&(s=this.putAction(tt(o,h+2),e,r,s));break}h=tt(o,h+2)}o[h]==e&&(s=this.putAction(tt(o,h+1),e,r,s))}return s}}class M{constructor(t,e,r,s){this.parser=t,this.input=e,this.ranges=s,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.lastBigReductionStart=-1,this.lastBigReductionSize=0,this.bigReductionCount=0,this.stream=new G(e,s),this.tokens=new F(t,this.stream),this.topTerm=t.top[1];let{from:i}=s[0];this.stacks=[z.start(this,t.top[0],i)],this.fragments=r.length&&this.stream.end-i>4*t.bufferLength?new I(r,t.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let t,e,r=this.stacks,s=this.minStackPos,i=this.stacks=[];if(this.bigReductionCount>300&&1==r.length){let[t]=r;for(;t.forceReduce()&&t.stack.length&&t.stack[t.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let n=0;n<r.length;n++){let o=r[n];for(;;){if(this.tokens.mainToken=null,o.pos>s)i.push(o);else{if(this.advanceStack(o,i,r))continue;{t||(t=[],e=[]),t.push(o);let r=this.tokens.getMainToken(o);e.push(r.value,r.end)}}break}}if(!i.length){let e=t&&function(t){let e=null;for(let r of t){let t=r.p.stoppedAt;(r.pos==r.p.stream.end||null!=t&&r.pos>t)&&r.p.parser.stateFlag(r.state,2)&&(!e||e.score<r.score)&&(e=r)}return e}(t);if(e)return j&&console.log("Finish with "+this.stackID(e)),this.stackToTree(e);if(this.parser.strict)throw j&&t&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+s);this.recovering||(this.recovering=5)}if(this.recovering&&t){let r=null!=this.stoppedAt&&t[0].pos>this.stoppedAt?t[0]:this.runRecovery(t,e,i);if(r)return j&&console.log("Force-finish "+this.stackID(r)),this.stackToTree(r.forceAll())}if(this.recovering){let t=1==this.recovering?1:3*this.recovering;if(i.length>t)for(i.sort(((t,e)=>e.score-t.score));i.length>t;)i.pop();i.some((t=>t.reducePos>s))&&this.recovering--}else if(i.length>1){t:for(let t=0;t<i.length-1;t++){let e=i[t];for(let r=t+1;r<i.length;r++){let s=i[r];if(e.sameState(s)||e.buffer.length>500&&s.buffer.length>500){if(!((e.score-s.score||e.buffer.length-s.buffer.length)>0)){i.splice(t--,1);continue t}i.splice(r--,1)}}}i.length>12&&i.splice(12,i.length-12)}this.minStackPos=i[0].pos;for(let t=1;t<i.length;t++)i[t].pos<this.minStackPos&&(this.minStackPos=i[t].pos);return null}stopAt(t){if(null!=this.stoppedAt&&this.stoppedAt<t)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=t}advanceStack(t,e,r){let s=t.pos,{parser:i}=this,n=j?this.stackID(t)+" -> ":"";if(null!=this.stoppedAt&&s>this.stoppedAt)return t.forceReduce()?t:null;if(this.fragments){let e=t.curContext&&t.curContext.tracker.strict,r=e?t.curContext.hash:0;for(let h=this.fragments.nodeAt(s);h;){let s=this.parser.nodeSet.types[h.type.id]==h.type?i.getGoto(t.state,h.type.id):-1;if(s>-1&&h.length&&(!e||(h.prop(o.contextHash)||0)==r))return t.useNode(h,s),j&&console.log(n+this.stackID(t)+` (via reuse of ${i.getName(h.type.id)})`),!0;if(!(h instanceof p)||0==h.children.length||h.positions[0]>0)break;let a=h.children[0];if(!(a instanceof p&&0==h.positions[0]))break;h=a}}let h=i.stateSlot(t.state,4);if(h>0)return t.reduce(h),j&&console.log(n+this.stackID(t)+` (via always-reduce ${i.getName(65535&h)})`),!0;if(t.stack.length>=8400)for(;t.stack.length>6e3&&t.forceReduce(););let a=this.tokens.getActions(t);for(let o=0;o<a.length;){let h=a[o++],l=a[o++],O=a[o++],u=o==a.length||!r,f=u?t:t.split(),c=this.tokens.mainToken;if(f.apply(h,l,c?c.start:f.pos,O),j&&console.log(n+this.stackID(f)+` (via ${65536&h?`reduce of ${i.getName(65535&h)}`:"shift"} for ${i.getName(l)} @ ${s}${f==t?"":", split"})`),u)return!0;f.pos>s?e.push(f):r.push(f)}return!1}advanceFully(t,e){let r=t.pos;for(;;){if(!this.advanceStack(t,null,null))return!1;if(t.pos>r)return J(t,e),!0}}runRecovery(t,e,r){let s=null,i=!1;for(let n=0;n<t.length;n++){let o=t[n],h=e[n<<1],a=e[1+(n<<1)],l=j?this.stackID(o)+" -> ":"";if(o.deadEnd){if(i)continue;if(i=!0,o.restart(),j&&console.log(l+this.stackID(o)+" (restarted)"),this.advanceFully(o,r))continue}let O=o.split(),u=l;for(let t=0;O.forceReduce()&&t<10&&(j&&console.log(u+this.stackID(O)+" (via force-reduce)"),!this.advanceFully(O,r));t++)j&&(u=this.stackID(O)+" -> ");for(let t of o.recoverByInsert(h))j&&console.log(l+this.stackID(t)+" (via recover-insert)"),this.advanceFully(t,r);this.stream.end>o.pos?(a==o.pos&&(a++,h=0),o.recoverByDelete(h,a),j&&console.log(l+this.stackID(o)+` (via recover-delete ${this.parser.getName(h)})`),J(o,r)):(!s||s.score<o.score)&&(s=o)}return s}stackToTree(t){return t.close(),p.build({buffer:V.create(t),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:t.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(t){let e=(L||(L=new WeakMap)).get(t);return e||L.set(t,e=String.fromCodePoint(this.nextStackID++)),e+t}}function J(t,e){for(let r=0;r<e.length;r++){let s=e[r];if(s.pos==t.pos&&s.sameState(t))return void(e[r].score<t.score&&(e[r]=t))}e.push(t)}class K{constructor(t,e,r){this.source=t,this.flags=e,this.disabled=r}allows(t){return!this.disabled||0==this.disabled[t]}}class H extends q{constructor(t){if(super(),this.wrappers=[],14!=t.version)throw new RangeError(`Parser version (${t.version}) doesn't match runtime version (14)`);let e=t.nodeNames.split(" ");this.minRepeatTerm=e.length;for(let r=0;r<t.repeatNodeCount;r++)e.push("");let r=Object.keys(t.topRules).map((e=>t.topRules[e][1])),i=[];for(let t=0;t<e.length;t++)i.push([]);function n(t,e,r){i[t].push([e,e.deserialize(String(r))])}if(t.nodeProps)for(let e of t.nodeProps){let t=e[0];"string"==typeof t&&(t=o[t]);for(let r=1;r<e.length;){let s=e[r++];if(s>=0)n(s,t,e[r++]);else{let i=e[r+-s];for(let o=-s;o>0;o--)n(e[r++],t,i);r++}}}this.nodeSet=new O(e.map(((e,s)=>l.define({name:s>=this.minRepeatTerm?void 0:e,id:s,props:i[s],top:r.indexOf(s)>-1,error:0==s,skipped:t.skippedNodes&&t.skippedNodes.indexOf(s)>-1})))),t.propSources&&(this.nodeSet=this.nodeSet.extend(...t.propSources)),this.strict=!1,this.bufferLength=s;let h=C(t.tokenData);this.context=t.context,this.specializerSpecs=t.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let t=0;t<this.specializerSpecs.length;t++)this.specialized[t]=this.specializerSpecs[t].term;this.specializers=this.specializerSpecs.map(et),this.states=C(t.states,Uint32Array),this.data=C(t.stateData),this.goto=C(t.goto),this.maxTerm=t.maxTerm,this.tokenizers=t.tokenizers.map((t=>"number"==typeof t?new N(h,t):t)),this.topRules=t.topRules,this.dialects=t.dialects||{},this.dynamicPrecedences=t.dynamicPrecedences||null,this.tokenPrecTable=t.tokenPrec,this.termNames=t.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(t,e,r){let s=new M(this,t,e,r);for(let i of this.wrappers)s=i(s,t,e,r);return s}getGoto(t,e,r=!1){let s=this.goto;if(e>=s[0])return-1;for(let i=s[e+1];;){let e=s[i++],n=1&e,o=s[i++];if(n&&r)return o;for(let r=i+(e>>1);i<r;i++)if(s[i]==t)return o;if(n)return-1}}hasAction(t,e){let r=this.data;for(let s=0;s<2;s++)for(let i,n=this.stateSlot(t,s?2:1);;n+=3){if(65535==(i=r[n])){if(1!=r[n+1]){if(2==r[n+1])return tt(r,n+2);break}i=r[n=tt(r,n+2)]}if(i==e||0==i)return tt(r,n+1)}return 0}stateSlot(t,e){return this.states[6*t+e]}stateFlag(t,e){return(this.stateSlot(t,0)&e)>0}validAction(t,e){return!!this.allActions(t,(t=>t==e||null))}allActions(t,e){let r=this.stateSlot(t,4),s=r?e(r):void 0;for(let r=this.stateSlot(t,1);null==s;r+=3){if(65535==this.data[r]){if(1!=this.data[r+1])break;r=tt(this.data,r+2)}s=e(tt(this.data,r+1))}return s}nextStates(t){let e=[];for(let r=this.stateSlot(t,1);;r+=3){if(65535==this.data[r]){if(1!=this.data[r+1])break;r=tt(this.data,r+2)}if(!(1&this.data[r+2])){let t=this.data[r+1];e.some(((e,r)=>1&r&&e==t))||e.push(this.data[r],t)}}return e}configure(t){let e=Object.assign(Object.create(H.prototype),this);if(t.props&&(e.nodeSet=this.nodeSet.extend(...t.props)),t.top){let r=this.topRules[t.top];if(!r)throw new RangeError(`Invalid top rule name ${t.top}`);e.top=r}return t.tokenizers&&(e.tokenizers=this.tokenizers.map((e=>{let r=t.tokenizers.find((t=>t.from==e));return r?r.to:e}))),t.specializers&&(e.specializers=this.specializers.slice(),e.specializerSpecs=this.specializerSpecs.map(((r,s)=>{let i=t.specializers.find((t=>t.from==r.external));if(!i)return r;let n=Object.assign(Object.assign({},r),{external:i.to});return e.specializers[s]=et(n),n}))),t.contextTracker&&(e.context=t.contextTracker),t.dialect&&(e.dialect=this.parseDialect(t.dialect)),null!=t.strict&&(e.strict=t.strict),t.wrap&&(e.wrappers=e.wrappers.concat(t.wrap)),null!=t.bufferLength&&(e.bufferLength=t.bufferLength),e}hasWrappers(){return this.wrappers.length>0}getName(t){return this.termNames?this.termNames[t]:String(t<=this.maxNode&&this.nodeSet.types[t].name||t)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(t){let e=this.dynamicPrecedences;return null==e?0:e[t]||0}parseDialect(t){let e=Object.keys(this.dialects),r=e.map((()=>!1));if(t)for(let s of t.split(" ")){let t=e.indexOf(s);t>=0&&(r[t]=!0)}let s=null;for(let t=0;t<e.length;t++)if(!r[t])for(let r,i=this.dialects[e[t]];65535!=(r=this.data[i++]);)(s||(s=new Uint8Array(this.maxTerm+1)))[r]=1;return new K(t,r,s)}static deserialize(t){return new H(t)}}function tt(t,e){return t[e]|t[e+1]<<16}function et(t){if(t.external){let e=t.extend?1:0;return(r,s)=>t.external(r,s)<<1|e}return t.get}const rt={json:1,logfmt:2,unpack:3,pattern:4,regexp:5,label_format:7,line_format:8,label_replace:9,vector:10,offset:11,bool:12,on:13,ignoring:14,group_left:15,group_right:16,unwrap:6,decolorize:17,drop:18,keep:19},st={by:20,without:21,and:22,or:23,unless:24,sum:25,avg:26,count:27,max:28,min:29,stddev:30,stdvar:31,bottomk:32,topk:33,sort:34,sort_desc:35},it={__proto__:null,ip:295,count_over_time:301,rate:303,rate_counter:305,bytes_over_time:307,bytes_rate:309,avg_over_time:311,sum_over_time:313,min_over_time:315,max_over_time:317,stddev_over_time:319,stdvar_over_time:321,quantile_over_time:323,first_over_time:325,last_over_time:327,absent_over_time:329,bytes:335,duration:337,duration_seconds:339},nt=H.deserialize({version:14,states:"EtOYQPOOO#cQPO'#DUOOQO'#ER'#ERO#hQPO'#ERO$}QPO'#DTOYQPO'#DTOOQO'#Ed'#EdO%[QPO'#EcOOQO'#FP'#FPO%aQPO'#FOQ%lQPOOO&mQPO'#F]O&rQPO'#F^OOQO'#Eb'#EbOOQO'#DS'#DSOOQO'#Ee'#EeOOQO'#Ef'#EfOOQO'#Eg'#EgOOQO'#Eh'#EhOOQO'#Ei'#EiOOQO'#Ej'#EjOOQO'#Ek'#EkOOQO'#El'#ElOOQO'#Em'#EmOOQO'#En'#EnOOQO'#Eo'#EoOOQO'#Ep'#EpOOQO'#Eq'#EqOOQO'#Er'#ErOOQO'#Es'#EsO&wQPO'#DWOOQO'#DV'#DVO'VQPO,59pOOQO,5:m,5:mOOQO'#Dc'#DcO'_QPO'#DbO'gQPO'#DaO)lQPO'#D`O*{QPO'#D`OOQO'#D_'#D_O+sQPO,59oO-}QPO,59oO.UQPO,5:|O.]QPO,5:}O.hQPO'#E|O0sQPO,5;jO0zQPO,5;jO1PQPO,5;lO1PQPO,5;lO1PQPO,5;lO1PQPO,5;lO1PQPO,5;lO1PQPO,5;lOYQPO,5;wO3cQPO,5;xO3hQPO,59rO#cQPO,59qOOQO1G/[1G/[OOQO'#Dh'#DhO3mQPO,59|O5^QPO,59|OOQO'#Di'#DiO5cQPO,59{OOQO,59{,59{O5kQP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O!uR%W$QS#|!t#}W$z#y#{%R%SQ%u$yQ%|%TR&Z%{Q%Q#|Q%u$zQ&]%|R&e&ZQ#{!tS$y#y%RQ%P#|Q%S#}S%x$}%QS&Y%z%|R&f&]R%q$xR%o$xQ!OXQ%V$PQ%[$VQ&^%}R&_&PR$S!xwXOT}!V!{#P#Q#R#S#T#U$U%]&r&s&t&u&v&wQ#P!PQ#Q!QQ#R!RQ#S!SQ#T!TQ#U!UQ&r&xQ&s&yQ&t&zQ&u&{Q&v&|R&w&}h!}!P!Q!R!S!T!U&x&y&z&{&|&}R$]#OQ$Z!|Q%b$[R&T%cR%_$YQ%`$YR&`&R",nodeNames:"⚠ Json Logfmt Unpack Pattern Regexp Unwrap LabelFormat LineFormat LabelReplace Vector Offset Bool On Ignoring GroupLeft GroupRight Decolorize Drop Keep By Without And Or Unless Sum Avg Count Max Min Stddev Stdvar Bottomk Topk Sort Sort_Desc LineComment LogQL Expr LogExpr Selector Matchers Matcher Identifier Eq String Neq Re Nre PipelineExpr PipelineStage LineFilters LineFilter Filter PipeExact PipeMatch PipePattern Npa FilterOp Ip OrFilter Pipe LogfmtParser LogfmtParserFlags ParserFlag LabelParser JsonExpressionParser LabelExtractionExpressionList LabelExtractionExpression LogfmtExpressionParser LabelFilter IpLabelFilter UnitFilter DurationFilter Gtr Duration Gte Lss Lte Eql BytesFilter Bytes NumberFilter LiteralExpr Number Add Sub LineFormatExpr LabelFormatExpr LabelsFormat LabelFormatMatcher DecolorizeExpr DropLabelsExpr DropLabels DropLabel KeepLabelsExpr KeepLabels KeepLabel MetricExpr RangeAggregationExpr RangeOp CountOverTime Rate RateCounter BytesOverTime BytesRate AvgOverTime SumOverTime MinOverTime MaxOverTime StddevOverTime StdvarOverTime QuantileOverTime FirstOverTime LastOverTime AbsentOverTime LogRangeExpr Range OffsetExpr UnwrapExpr ConvOp BytesConv DurationConv DurationSecondsConv Grouping Labels VectorAggregationExpr VectorOp BinOpExpr BinOpModifier OnOrIgnoringModifier Grouping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#[#].T#_#`0Q#a#b0Z#d#e0Q#g#h/]#h#i0Q#k#l0l#m#n1W~,wT{|)f}!O)f!Q![)l!d!e-W#]#^-]~-]O!s~~-`P#U#V-W~-fQ!d!e-W#]#^-]~-qP!m~!Q![-t~-wS!Q![-t#[#].T#a#b.i#g#h/]~.YP!m~!Q![.]~.`R!Q![.]#a#b.i#g#h/]~.nQ!m~!Q![.t#g#h/W~.wR!Q![.t#a#b/Q#g#h/]~/TP#g#h/W~/]O!m~~/bP!m~!Q![/e~/hQ!Q![/e#a#b/Q~/qT{|)f}!O)f!Q![)l#U#V-W#]#^-]~0TQ#U#V-W#]#^-]~0`S!m~!Q![.t#U#V-W#]#^-]#g#h/W~0qP!m~!Q![0t~0wT!Q![0t#W#X-l#[#].T#a#b.i#g#h/]~1]P!m~!Q![1`~1cU!Q![1`#W#X-l#[#].T#a#b.i#g#h/]#k#l0l~1xR!Q![2R!c!i2R#T#Z2R~2WR!v~!Q![2R!c!i2R#T#Z2RP2fT{P!Q![2a![!]2a!c!}2a#R#S2a#T#o2a~2zP!o~!_!`2}~3SO!p~~3XQ|~!_!`3_#r#s3d~3dO!q~~3iO!P~~3nP!l~!_!`3q~3vO!n~R3}T{P#zQ!Q![3v![!]2a!c!}3v#R#S3v#T#o3v~4cO$k~~4hO$l~~4mO$O~~4pRO#S4m#S#T%`#T~4m~5OO$U~~5TR!_~!_!`5^!`!a5c#r#s5h~5cO!W~~5hO!Y~~5mO!X~~5rO$W~",tokenizers:[0,1],topRules:{LogQL:[0,37]},specialized:[{term:43,get:(t,e)=>(t=>rt[t.toLowerCase()]||-1)(t)<<1},{term:43,get:(t,e)=>(t=>st[t.toLowerCase()]||-1)(t)<<1|1},{term:43,get:t=>it[t]||-1}],tokenPrec:0}),ot=40,ht=42,at=43,lt=45,Ot=98},2533:t=>{t.exports=JSON.parse('{"id":"grafana-lokiexplore-app"}')}},g={};function P(t){var e=g[t];if(void 0!==e)return e.exports;var r=g[t]={id:t,loaded:!1,exports:{}};return d[t].call(r.exports,r,r.exports,P),r.loaded=!0,r.exports}P.m=d,P.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return P.d(e,{a:e}),e},f=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__,P.t=function(t,e){if(1&e&&(t=this(t)),8&e)return t;if("object"==typeof t&&t){if(4&e&&t.__esModule)return t;if(16&e&&"function"==typeof t.then)return t}var r=Object.create(null);P.r(r);var s={};u=u||[null,f({}),f([]),f(f)];for(var i=2&e&&t;"object"==typeof i&&!~u.indexOf(i);i=f(i))Object.getOwnPropertyNames(i).forEach((e=>s[e]=()=>t[e]));return s.default=()=>t,P.d(r,s),r},P.d=(t,e)=>{for(var r in e)P.o(e,r)&&!P.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},P.f={},P.e=t=>Promise.all(Object.keys(P.f).reduce(((e,r)=>(P.f[r](t,e),e)),[])),P.u=t=>t+".js",P.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),P.hmd=t=>((t=Object.create(t)).children||(t.children=[]),Object.defineProperty(t,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+t.id)}}),t),P.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),c={},p="grafana-lokiexplore-app:",P.l=(t,e,r,s)=>{if(c[t])c[t].push(e);else{var i,n;if(void 0!==r)for(var o=document.getElementsByTagName("script"),h=0;h<o.length;h++){var a=o[h];if(a.getAttribute("src")==t||a.getAttribute("data-webpack")==p+r){i=a;break}}i||(n=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,P.nc&&i.setAttribute("nonce",P.nc),i.setAttribute("data-webpack",p+r),i.src=t),c[t]=[e];var l=(e,r)=>{i.onerror=i.onload=null,clearTimeout(O);var s=c[t];if(delete c[t],i.parentNode&&i.parentNode.removeChild(i),s&&s.forEach((t=>t(r))),e)return e(r)},O=setTimeout(l.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=l.bind(null,i.onerror),i.onload=l.bind(null,i.onload),n&&document.head.appendChild(i)}},P.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},P.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),P.p="public/plugins/grafana-lokiexplore-app/",(()=>{P.b=document.baseURI||self.location.href;var t={231:0};P.f.j=(e,r)=>{var s=P.o(t,e)?t[e]:void 0;if(0!==s)if(s)r.push(s[2]);else{var i=new Promise(((r,i)=>s=t[e]=[r,i]));r.push(s[2]=i);var n=P.p+P.u(e),o=new Error;P.l(n,(r=>{if(P.o(t,e)&&(0!==(s=t[e])&&(t[e]=void 0),s)){var i=r&&("load"===r.type?"missing":r.type),n=r&&r.target&&r.target.src;o.message="Loading chunk "+e+" failed.\n("+i+": "+n+")",o.name="ChunkLoadError",o.type=i,o.request=n,s[1](o)}}),"chunk-"+e,e)}};var e=(e,r)=>{var s,i,[n,o,h]=r,a=0;if(n.some((e=>0!==t[e]))){for(s in o)P.o(o,s)&&(P.m[s]=o[s]);h&&h(P)}for(e&&e(r);a<n.length;a++)i=n[a],P.o(t,i)&&t[i]&&t[i][0](),t[i]=0},r=self.webpackChunkgrafana_lokiexplore_app=self.webpackChunkgrafana_lokiexplore_app||[];r.forEach(e.bind(null,0)),r.push=e.bind(null,r.push.bind(r))})();var $={};return(()=>{P.r($),P.d($,{plugin:()=>o});var t=P(5959),e=P(7781),r=P(7608);function s(t,e,r,s,i,n,o){try{var h=t[n](o),a=h.value}catch(t){return void r(t)}h.done?e(a):Promise.resolve(a).then(s,i)}function i(t){return function(){var e=this,r=arguments;return new Promise((function(i,n){var o=t.apply(e,r);function h(t){s(o,i,n,h,a,"next",t)}function a(t){s(o,i,n,h,a,"throw",t)}h(void 0)}))}}const n=(0,t.lazy)(i((function*(){const{wasmSupported:t}=yield Promise.all([P.e(308),P.e(698),P.e(475)]).then(P.bind(P,5722)),{default:e}=yield Promise.all([P.e(308),P.e(698),P.e(475)]).then(P.bind(P,2854)),{default:r}=yield P.e(308).then(P.bind(P,5308));return e(),t()&&(yield r()),P.e(631).then(P.bind(P,9631))}))),o=(new e.AppPlugin).setRootPage(n);for(const t of r.Ge)o.addLink(t)})(),$})()));
//# sourceMappingURL=module.js.map