@morphql/playground 0.1.3 → 0.1.6

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.
@@ -1,13 +1,13 @@
1
- var ST=(i,n)=>()=>(n||i((n={exports:{}}).exports,n),n.exports);var Nw=ST((Xe,Fe)=>{(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))r(u);new MutationObserver(u=>{for(const c of u)if(c.type==="childList")for(const h of c.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&r(h)}).observe(document,{childList:!0,subtree:!0});function s(u){const c={};return u.integrity&&(c.integrity=u.integrity),u.referrerPolicy&&(c.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?c.credentials="include":u.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function r(u){if(u.ep)return;u.ep=!0;const c=s(u);fetch(u.href,c)}})();function Sh(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var bf={exports:{}},lr={};var tm;function AT(){if(tm)return lr;tm=1;var i=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function s(r,u,c){var h=null;if(c!==void 0&&(h=""+c),u.key!==void 0&&(h=""+u.key),"key"in u){c={};for(var _ in u)_!=="key"&&(c[_]=u[_])}else c=u;return u=c.ref,{$$typeof:i,type:r,key:h,ref:u!==void 0?u:null,props:c}}return lr.Fragment=n,lr.jsx=s,lr.jsxs=s,lr}var em;function OT(){return em||(em=1,bf.exports=AT()),bf.exports}var st=OT(),Tf={exports:{}},pt={};var nm;function NT(){if(nm)return pt;nm=1;var i=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),h=Symbol.for("react.context"),_=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),E=Symbol.for("react.activity"),A=Symbol.iterator;function j(N){return N===null||typeof N!="object"?null:(N=A&&N[A]||N["@@iterator"],typeof N=="function"?N:null)}var H={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},X=Object.assign,S={};function v(N,$,Z){this.props=N,this.context=$,this.refs=S,this.updater=Z||H}v.prototype.isReactComponent={},v.prototype.setState=function(N,$){if(typeof N!="object"&&typeof N!="function"&&N!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,N,$,"setState")},v.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function T(){}T.prototype=v.prototype;function w(N,$,Z){this.props=N,this.context=$,this.refs=S,this.updater=Z||H}var I=w.prototype=new T;I.constructor=w,X(I,v.prototype),I.isPureReactComponent=!0;var F=Array.isArray;function U(){}var L={H:null,A:null,T:null,S:null},C=Object.prototype.hasOwnProperty;function Y(N,$,Z){var W=Z.ref;return{$$typeof:i,type:N,key:$,ref:W!==void 0?W:null,props:Z}}function m(N,$){return Y(N.type,$,N.props)}function P(N){return typeof N=="object"&&N!==null&&N.$$typeof===i}function G(N){var $={"=":"=0",":":"=2"};return"$"+N.replace(/[=:]/g,function(Z){return $[Z]})}var et=/\/+/g;function at(N,$){return typeof N=="object"&&N!==null&&N.key!=null?G(""+N.key):$.toString(36)}function J(N){switch(N.status){case"fulfilled":return N.value;case"rejected":throw N.reason;default:switch(typeof N.status=="string"?N.then(U,U):(N.status="pending",N.then(function($){N.status==="pending"&&(N.status="fulfilled",N.value=$)},function($){N.status==="pending"&&(N.status="rejected",N.reason=$)})),N.status){case"fulfilled":return N.value;case"rejected":throw N.reason}}throw N}function M(N,$,Z,W,_t){var ut=typeof N;(ut==="undefined"||ut==="boolean")&&(N=null);var gt=!1;if(N===null)gt=!0;else switch(ut){case"bigint":case"string":case"number":gt=!0;break;case"object":switch(N.$$typeof){case i:case n:gt=!0;break;case b:return gt=N._init,M(gt(N._payload),$,Z,W,_t)}}if(gt)return _t=_t(N),gt=W===""?"."+at(N,0):W,F(_t)?(Z="",gt!=null&&(Z=gt.replace(et,"$&/")+"/"),M(_t,$,Z,"",function(ye){return ye})):_t!=null&&(P(_t)&&(_t=m(_t,Z+(_t.key==null||N&&N.key===_t.key?"":(""+_t.key).replace(et,"$&/")+"/")+gt)),$.push(_t)),1;gt=0;var Kt=W===""?".":W+":";if(F(N))for(var Nt=0;Nt<N.length;Nt++)W=N[Nt],ut=Kt+at(W,Nt),gt+=M(W,$,Z,ut,_t);else if(Nt=j(N),typeof Nt=="function")for(N=Nt.call(N),Nt=0;!(W=N.next()).done;)W=W.value,ut=Kt+at(W,Nt++),gt+=M(W,$,Z,ut,_t);else if(ut==="object"){if(typeof N.then=="function")return M(J(N),$,Z,W,_t);throw $=String(N),Error("Objects are not valid as a React child (found: "+($==="[object Object]"?"object with keys {"+Object.keys(N).join(", ")+"}":$)+"). If you meant to render a collection of children, use an array instead.")}return gt}function Q(N,$,Z){if(N==null)return N;var W=[],_t=0;return M(N,W,"","",function(ut){return $.call(Z,ut,_t++)}),W}function it(N){if(N._status===-1){var $=N._result;$=$(),$.then(function(Z){(N._status===0||N._status===-1)&&(N._status=1,N._result=Z)},function(Z){(N._status===0||N._status===-1)&&(N._status=2,N._result=Z)}),N._status===-1&&(N._status=0,N._result=$)}if(N._status===1)return N._result.default;throw N._result}var yt=typeof reportError=="function"?reportError:function(N){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var $=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof N=="object"&&N!==null&&typeof N.message=="string"?String(N.message):String(N),error:N});if(!window.dispatchEvent($))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",N);return}console.error(N)},Ot={map:Q,forEach:function(N,$,Z){Q(N,function(){$.apply(this,arguments)},Z)},count:function(N){var $=0;return Q(N,function(){$++}),$},toArray:function(N){return Q(N,function($){return $})||[]},only:function(N){if(!P(N))throw Error("React.Children.only expected to receive a single React element child.");return N}};return pt.Activity=E,pt.Children=Ot,pt.Component=v,pt.Fragment=s,pt.Profiler=u,pt.PureComponent=w,pt.StrictMode=r,pt.Suspense=d,pt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=L,pt.__COMPILER_RUNTIME={__proto__:null,c:function(N){return L.H.useMemoCache(N)}},pt.cache=function(N){return function(){return N.apply(null,arguments)}},pt.cacheSignal=function(){return null},pt.cloneElement=function(N,$,Z){if(N==null)throw Error("The argument must be a React element, but you passed "+N+".");var W=X({},N.props),_t=N.key;if($!=null)for(ut in $.key!==void 0&&(_t=""+$.key),$)!C.call($,ut)||ut==="key"||ut==="__self"||ut==="__source"||ut==="ref"&&$.ref===void 0||(W[ut]=$[ut]);var ut=arguments.length-2;if(ut===1)W.children=Z;else if(1<ut){for(var gt=Array(ut),Kt=0;Kt<ut;Kt++)gt[Kt]=arguments[Kt+2];W.children=gt}return Y(N.type,_t,W)},pt.createContext=function(N){return N={$$typeof:h,_currentValue:N,_currentValue2:N,_threadCount:0,Provider:null,Consumer:null},N.Provider=N,N.Consumer={$$typeof:c,_context:N},N},pt.createElement=function(N,$,Z){var W,_t={},ut=null;if($!=null)for(W in $.key!==void 0&&(ut=""+$.key),$)C.call($,W)&&W!=="key"&&W!=="__self"&&W!=="__source"&&(_t[W]=$[W]);var gt=arguments.length-2;if(gt===1)_t.children=Z;else if(1<gt){for(var Kt=Array(gt),Nt=0;Nt<gt;Nt++)Kt[Nt]=arguments[Nt+2];_t.children=Kt}if(N&&N.defaultProps)for(W in gt=N.defaultProps,gt)_t[W]===void 0&&(_t[W]=gt[W]);return Y(N,ut,_t)},pt.createRef=function(){return{current:null}},pt.forwardRef=function(N){return{$$typeof:_,render:N}},pt.isValidElement=P,pt.lazy=function(N){return{$$typeof:b,_payload:{_status:-1,_result:N},_init:it}},pt.memo=function(N,$){return{$$typeof:g,type:N,compare:$===void 0?null:$}},pt.startTransition=function(N){var $=L.T,Z={};L.T=Z;try{var W=N(),_t=L.S;_t!==null&&_t(Z,W),typeof W=="object"&&W!==null&&typeof W.then=="function"&&W.then(U,yt)}catch(ut){yt(ut)}finally{$!==null&&Z.types!==null&&($.types=Z.types),L.T=$}},pt.unstable_useCacheRefresh=function(){return L.H.useCacheRefresh()},pt.use=function(N){return L.H.use(N)},pt.useActionState=function(N,$,Z){return L.H.useActionState(N,$,Z)},pt.useCallback=function(N,$){return L.H.useCallback(N,$)},pt.useContext=function(N){return L.H.useContext(N)},pt.useDebugValue=function(){},pt.useDeferredValue=function(N,$){return L.H.useDeferredValue(N,$)},pt.useEffect=function(N,$){return L.H.useEffect(N,$)},pt.useEffectEvent=function(N){return L.H.useEffectEvent(N)},pt.useId=function(){return L.H.useId()},pt.useImperativeHandle=function(N,$,Z){return L.H.useImperativeHandle(N,$,Z)},pt.useInsertionEffect=function(N,$){return L.H.useInsertionEffect(N,$)},pt.useLayoutEffect=function(N,$){return L.H.useLayoutEffect(N,$)},pt.useMemo=function(N,$){return L.H.useMemo(N,$)},pt.useOptimistic=function(N,$){return L.H.useOptimistic(N,$)},pt.useReducer=function(N,$,Z){return L.H.useReducer(N,$,Z)},pt.useRef=function(N){return L.H.useRef(N)},pt.useState=function(N){return L.H.useState(N)},pt.useSyncExternalStore=function(N,$,Z){return L.H.useSyncExternalStore(N,$,Z)},pt.useTransition=function(){return L.H.useTransition()},pt.version="19.2.3",pt}var im;function Ah(){return im||(im=1,Tf.exports=NT()),Tf.exports}var ct=Ah();const fa=Sh(ct);var Sf={exports:{}},ur={},Af={exports:{}},Of={};var am;function RT(){return am||(am=1,(function(i){function n(M,Q){var it=M.length;M.push(Q);t:for(;0<it;){var yt=it-1>>>1,Ot=M[yt];if(0<u(Ot,Q))M[yt]=Q,M[it]=Ot,it=yt;else break t}}function s(M){return M.length===0?null:M[0]}function r(M){if(M.length===0)return null;var Q=M[0],it=M.pop();if(it!==Q){M[0]=it;t:for(var yt=0,Ot=M.length,N=Ot>>>1;yt<N;){var $=2*(yt+1)-1,Z=M[$],W=$+1,_t=M[W];if(0>u(Z,it))W<Ot&&0>u(_t,Z)?(M[yt]=_t,M[W]=it,yt=W):(M[yt]=Z,M[$]=it,yt=$);else if(W<Ot&&0>u(_t,it))M[yt]=_t,M[W]=it,yt=W;else break t}}return Q}function u(M,Q){var it=M.sortIndex-Q.sortIndex;return it!==0?it:M.id-Q.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;i.unstable_now=function(){return c.now()}}else{var h=Date,_=h.now();i.unstable_now=function(){return h.now()-_}}var d=[],g=[],b=1,E=null,A=3,j=!1,H=!1,X=!1,S=!1,v=typeof setTimeout=="function"?setTimeout:null,T=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;function I(M){for(var Q=s(g);Q!==null;){if(Q.callback===null)r(g);else if(Q.startTime<=M)r(g),Q.sortIndex=Q.expirationTime,n(d,Q);else break;Q=s(g)}}function F(M){if(X=!1,I(M),!H)if(s(d)!==null)H=!0,U||(U=!0,G());else{var Q=s(g);Q!==null&&J(F,Q.startTime-M)}}var U=!1,L=-1,C=5,Y=-1;function m(){return S?!0:!(i.unstable_now()-Y<C)}function P(){if(S=!1,U){var M=i.unstable_now();Y=M;var Q=!0;try{t:{H=!1,X&&(X=!1,T(L),L=-1),j=!0;var it=A;try{e:{for(I(M),E=s(d);E!==null&&!(E.expirationTime>M&&m());){var yt=E.callback;if(typeof yt=="function"){E.callback=null,A=E.priorityLevel;var Ot=yt(E.expirationTime<=M);if(M=i.unstable_now(),typeof Ot=="function"){E.callback=Ot,I(M),Q=!0;break e}E===s(d)&&r(d),I(M)}else r(d);E=s(d)}if(E!==null)Q=!0;else{var N=s(g);N!==null&&J(F,N.startTime-M),Q=!1}}break t}finally{E=null,A=it,j=!1}Q=void 0}}finally{Q?G():U=!1}}}var G;if(typeof w=="function")G=function(){w(P)};else if(typeof MessageChannel<"u"){var et=new MessageChannel,at=et.port2;et.port1.onmessage=P,G=function(){at.postMessage(null)}}else G=function(){v(P,0)};function J(M,Q){L=v(function(){M(i.unstable_now())},Q)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(M){M.callback=null},i.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):C=0<M?Math.floor(1e3/M):5},i.unstable_getCurrentPriorityLevel=function(){return A},i.unstable_next=function(M){switch(A){case 1:case 2:case 3:var Q=3;break;default:Q=A}var it=A;A=Q;try{return M()}finally{A=it}},i.unstable_requestPaint=function(){S=!0},i.unstable_runWithPriority=function(M,Q){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var it=A;A=M;try{return Q()}finally{A=it}},i.unstable_scheduleCallback=function(M,Q,it){var yt=i.unstable_now();switch(typeof it=="object"&&it!==null?(it=it.delay,it=typeof it=="number"&&0<it?yt+it:yt):it=yt,M){case 1:var Ot=-1;break;case 2:Ot=250;break;case 5:Ot=1073741823;break;case 4:Ot=1e4;break;default:Ot=5e3}return Ot=it+Ot,M={id:b++,callback:Q,priorityLevel:M,startTime:it,expirationTime:Ot,sortIndex:-1},it>yt?(M.sortIndex=it,n(g,M),s(d)===null&&M===s(g)&&(X?(T(L),L=-1):X=!0,J(F,it-yt))):(M.sortIndex=Ot,n(d,M),H||j||(H=!0,U||(U=!0,G()))),M},i.unstable_shouldYield=m,i.unstable_wrapCallback=function(M){var Q=A;return function(){var it=A;A=Q;try{return M.apply(this,arguments)}finally{A=it}}}})(Of)),Of}var sm;function xT(){return sm||(sm=1,Af.exports=RT()),Af.exports}var Nf={exports:{}},ge={};var rm;function CT(){if(rm)return ge;rm=1;var i=Ah();function n(d){var g="https://react.dev/errors/"+d;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)g+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+d+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var r={d:{f:s,r:function(){throw Error(n(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},u=Symbol.for("react.portal");function c(d,g,b){var E=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:E==null?null:""+E,children:d,containerInfo:g,implementation:b}}var h=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function _(d,g){if(d==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return ge.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,ge.createPortal=function(d,g){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(n(299));return c(d,g,null,b)},ge.flushSync=function(d){var g=h.T,b=r.p;try{if(h.T=null,r.p=2,d)return d()}finally{h.T=g,r.p=b,r.d.f()}},ge.preconnect=function(d,g){typeof d=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,r.d.C(d,g))},ge.prefetchDNS=function(d){typeof d=="string"&&r.d.D(d)},ge.preinit=function(d,g){if(typeof d=="string"&&g&&typeof g.as=="string"){var b=g.as,E=_(b,g.crossOrigin),A=typeof g.integrity=="string"?g.integrity:void 0,j=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;b==="style"?r.d.S(d,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:E,integrity:A,fetchPriority:j}):b==="script"&&r.d.X(d,{crossOrigin:E,integrity:A,fetchPriority:j,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},ge.preinitModule=function(d,g){if(typeof d=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var b=_(g.as,g.crossOrigin);r.d.M(d,{crossOrigin:b,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&r.d.M(d)},ge.preload=function(d,g){if(typeof d=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var b=g.as,E=_(b,g.crossOrigin);r.d.L(d,b,{crossOrigin:E,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},ge.preloadModule=function(d,g){if(typeof d=="string")if(g){var b=_(g.as,g.crossOrigin);r.d.m(d,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:b,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else r.d.m(d)},ge.requestFormReset=function(d){r.d.r(d)},ge.unstable_batchedUpdates=function(d,g){return d(g)},ge.useFormState=function(d,g,b){return h.H.useFormState(d,g,b)},ge.useFormStatus=function(){return h.H.useHostTransitionStatus()},ge.version="19.2.3",ge}var lm;function LT(){if(lm)return Nf.exports;lm=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(n){console.error(n)}}return i(),Nf.exports=CT(),Nf.exports}var um;function wT(){if(um)return ur;um=1;var i=xT(),n=Ah(),s=LT();function r(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)e+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function c(t){var e=t,a=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(a=e.return),t=e.return;while(t)}return e.tag===3?a:null}function h(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function _(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function d(t){if(c(t)!==t)throw Error(r(188))}function g(t){var e=t.alternate;if(!e){if(e=c(t),e===null)throw Error(r(188));return e!==t?null:t}for(var a=t,l=e;;){var o=a.return;if(o===null)break;var f=o.alternate;if(f===null){if(l=o.return,l!==null){a=l;continue}break}if(o.child===f.child){for(f=o.child;f;){if(f===a)return d(o),t;if(f===l)return d(o),e;f=f.sibling}throw Error(r(188))}if(a.return!==l.return)a=o,l=f;else{for(var p=!1,y=o.child;y;){if(y===a){p=!0,a=o,l=f;break}if(y===l){p=!0,l=o,a=f;break}y=y.sibling}if(!p){for(y=f.child;y;){if(y===a){p=!0,a=f,l=o;break}if(y===l){p=!0,l=f,a=o;break}y=y.sibling}if(!p)throw Error(r(189))}}if(a.alternate!==l)throw Error(r(190))}if(a.tag!==3)throw Error(r(188));return a.stateNode.current===a?t:e}function b(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=b(t),e!==null)return e;t=t.sibling}return null}var E=Object.assign,A=Symbol.for("react.element"),j=Symbol.for("react.transitional.element"),H=Symbol.for("react.portal"),X=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),T=Symbol.for("react.consumer"),w=Symbol.for("react.context"),I=Symbol.for("react.forward_ref"),F=Symbol.for("react.suspense"),U=Symbol.for("react.suspense_list"),L=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),Y=Symbol.for("react.activity"),m=Symbol.for("react.memo_cache_sentinel"),P=Symbol.iterator;function G(t){return t===null||typeof t!="object"?null:(t=P&&t[P]||t["@@iterator"],typeof t=="function"?t:null)}var et=Symbol.for("react.client.reference");function at(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===et?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case X:return"Fragment";case v:return"Profiler";case S:return"StrictMode";case F:return"Suspense";case U:return"SuspenseList";case Y:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case H:return"Portal";case w:return t.displayName||"Context";case T:return(t._context.displayName||"Context")+".Consumer";case I:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case L:return e=t.displayName||null,e!==null?e:at(t.type)||"Memo";case C:e=t._payload,t=t._init;try{return at(t(e))}catch{}}return null}var J=Array.isArray,M=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,it={pending:!1,data:null,method:null,action:null},yt=[],Ot=-1;function N(t){return{current:t}}function $(t){0>Ot||(t.current=yt[Ot],yt[Ot]=null,Ot--)}function Z(t,e){Ot++,yt[Ot]=t.current,t.current=e}var W=N(null),_t=N(null),ut=N(null),gt=N(null);function Kt(t,e){switch(Z(ut,e),Z(_t,t),Z(W,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?Sg(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=Sg(e),t=Ag(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}$(W),Z(W,t)}function Nt(){$(W),$(_t),$(ut)}function ye(t){t.memoizedState!==null&&Z(gt,t);var e=W.current,a=Ag(e,t.type);e!==a&&(Z(_t,t),Z(W,a))}function ke(t){_t.current===t&&($(W),$(_t)),gt.current===t&&($(gt),ir._currentValue=it)}var ze,Rn;function gn(t){if(ze===void 0)try{throw Error()}catch(a){var e=a.stack.trim().match(/\n( *(at )?)/);ze=e&&e[1]||"",Rn=-1<a.stack.indexOf(`
1
+ var NT=(i,n)=>()=>(n||i((n={exports:{}}).exports,n),n.exports);var Cw=NT((Fe,Xe)=>{(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))r(u);new MutationObserver(u=>{for(const c of u)if(c.type==="childList")for(const h of c.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&r(h)}).observe(document,{childList:!0,subtree:!0});function s(u){const c={};return u.integrity&&(c.integrity=u.integrity),u.referrerPolicy&&(c.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?c.credentials="include":u.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function r(u){if(u.ep)return;u.ep=!0;const c=s(u);fetch(u.href,c)}})();function Th(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var Tf={exports:{}},ur={};var Jg;function RT(){if(Jg)return ur;Jg=1;var i=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function s(r,u,c){var h=null;if(c!==void 0&&(h=""+c),u.key!==void 0&&(h=""+u.key),"key"in u){c={};for(var _ in u)_!=="key"&&(c[_]=u[_])}else c=u;return u=c.ref,{$$typeof:i,type:r,key:h,ref:u!==void 0?u:null,props:c}}return ur.Fragment=n,ur.jsx=s,ur.jsxs=s,ur}var tm;function xT(){return tm||(tm=1,Tf.exports=RT()),Tf.exports}var st=xT(),Sf={exports:{}},pt={};var em;function CT(){if(em)return pt;em=1;var i=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),h=Symbol.for("react.context"),_=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),E=Symbol.for("react.activity"),A=Symbol.iterator;function j(N){return N===null||typeof N!="object"?null:(N=A&&N[A]||N["@@iterator"],typeof N=="function"?N:null)}var H={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},F=Object.assign,S={};function v(N,$,Z){this.props=N,this.context=$,this.refs=S,this.updater=Z||H}v.prototype.isReactComponent={},v.prototype.setState=function(N,$){if(typeof N!="object"&&typeof N!="function"&&N!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,N,$,"setState")},v.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function T(){}T.prototype=v.prototype;function w(N,$,Z){this.props=N,this.context=$,this.refs=S,this.updater=Z||H}var I=w.prototype=new T;I.constructor=w,F(I,v.prototype),I.isPureReactComponent=!0;var X=Array.isArray;function U(){}var L={H:null,A:null,T:null,S:null},C=Object.prototype.hasOwnProperty;function Y(N,$,Z){var W=Z.ref;return{$$typeof:i,type:N,key:$,ref:W!==void 0?W:null,props:Z}}function m(N,$){return Y(N.type,$,N.props)}function P(N){return typeof N=="object"&&N!==null&&N.$$typeof===i}function G(N){var $={"=":"=0",":":"=2"};return"$"+N.replace(/[=:]/g,function(Z){return $[Z]})}var et=/\/+/g;function at(N,$){return typeof N=="object"&&N!==null&&N.key!=null?G(""+N.key):$.toString(36)}function J(N){switch(N.status){case"fulfilled":return N.value;case"rejected":throw N.reason;default:switch(typeof N.status=="string"?N.then(U,U):(N.status="pending",N.then(function($){N.status==="pending"&&(N.status="fulfilled",N.value=$)},function($){N.status==="pending"&&(N.status="rejected",N.reason=$)})),N.status){case"fulfilled":return N.value;case"rejected":throw N.reason}}throw N}function M(N,$,Z,W,_t){var ut=typeof N;(ut==="undefined"||ut==="boolean")&&(N=null);var gt=!1;if(N===null)gt=!0;else switch(ut){case"bigint":case"string":case"number":gt=!0;break;case"object":switch(N.$$typeof){case i:case n:gt=!0;break;case b:return gt=N._init,M(gt(N._payload),$,Z,W,_t)}}if(gt)return _t=_t(N),gt=W===""?"."+at(N,0):W,X(_t)?(Z="",gt!=null&&(Z=gt.replace(et,"$&/")+"/"),M(_t,$,Z,"",function(ve){return ve})):_t!=null&&(P(_t)&&(_t=m(_t,Z+(_t.key==null||N&&N.key===_t.key?"":(""+_t.key).replace(et,"$&/")+"/")+gt)),$.push(_t)),1;gt=0;var Kt=W===""?".":W+":";if(X(N))for(var Nt=0;Nt<N.length;Nt++)W=N[Nt],ut=Kt+at(W,Nt),gt+=M(W,$,Z,ut,_t);else if(Nt=j(N),typeof Nt=="function")for(N=Nt.call(N),Nt=0;!(W=N.next()).done;)W=W.value,ut=Kt+at(W,Nt++),gt+=M(W,$,Z,ut,_t);else if(ut==="object"){if(typeof N.then=="function")return M(J(N),$,Z,W,_t);throw $=String(N),Error("Objects are not valid as a React child (found: "+($==="[object Object]"?"object with keys {"+Object.keys(N).join(", ")+"}":$)+"). If you meant to render a collection of children, use an array instead.")}return gt}function Q(N,$,Z){if(N==null)return N;var W=[],_t=0;return M(N,W,"","",function(ut){return $.call(Z,ut,_t++)}),W}function it(N){if(N._status===-1){var $=N._result;$=$(),$.then(function(Z){(N._status===0||N._status===-1)&&(N._status=1,N._result=Z)},function(Z){(N._status===0||N._status===-1)&&(N._status=2,N._result=Z)}),N._status===-1&&(N._status=0,N._result=$)}if(N._status===1)return N._result.default;throw N._result}var vt=typeof reportError=="function"?reportError:function(N){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var $=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof N=="object"&&N!==null&&typeof N.message=="string"?String(N.message):String(N),error:N});if(!window.dispatchEvent($))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",N);return}console.error(N)},Ot={map:Q,forEach:function(N,$,Z){Q(N,function(){$.apply(this,arguments)},Z)},count:function(N){var $=0;return Q(N,function(){$++}),$},toArray:function(N){return Q(N,function($){return $})||[]},only:function(N){if(!P(N))throw Error("React.Children.only expected to receive a single React element child.");return N}};return pt.Activity=E,pt.Children=Ot,pt.Component=v,pt.Fragment=s,pt.Profiler=u,pt.PureComponent=w,pt.StrictMode=r,pt.Suspense=d,pt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=L,pt.__COMPILER_RUNTIME={__proto__:null,c:function(N){return L.H.useMemoCache(N)}},pt.cache=function(N){return function(){return N.apply(null,arguments)}},pt.cacheSignal=function(){return null},pt.cloneElement=function(N,$,Z){if(N==null)throw Error("The argument must be a React element, but you passed "+N+".");var W=F({},N.props),_t=N.key;if($!=null)for(ut in $.key!==void 0&&(_t=""+$.key),$)!C.call($,ut)||ut==="key"||ut==="__self"||ut==="__source"||ut==="ref"&&$.ref===void 0||(W[ut]=$[ut]);var ut=arguments.length-2;if(ut===1)W.children=Z;else if(1<ut){for(var gt=Array(ut),Kt=0;Kt<ut;Kt++)gt[Kt]=arguments[Kt+2];W.children=gt}return Y(N.type,_t,W)},pt.createContext=function(N){return N={$$typeof:h,_currentValue:N,_currentValue2:N,_threadCount:0,Provider:null,Consumer:null},N.Provider=N,N.Consumer={$$typeof:c,_context:N},N},pt.createElement=function(N,$,Z){var W,_t={},ut=null;if($!=null)for(W in $.key!==void 0&&(ut=""+$.key),$)C.call($,W)&&W!=="key"&&W!=="__self"&&W!=="__source"&&(_t[W]=$[W]);var gt=arguments.length-2;if(gt===1)_t.children=Z;else if(1<gt){for(var Kt=Array(gt),Nt=0;Nt<gt;Nt++)Kt[Nt]=arguments[Nt+2];_t.children=Kt}if(N&&N.defaultProps)for(W in gt=N.defaultProps,gt)_t[W]===void 0&&(_t[W]=gt[W]);return Y(N,ut,_t)},pt.createRef=function(){return{current:null}},pt.forwardRef=function(N){return{$$typeof:_,render:N}},pt.isValidElement=P,pt.lazy=function(N){return{$$typeof:b,_payload:{_status:-1,_result:N},_init:it}},pt.memo=function(N,$){return{$$typeof:g,type:N,compare:$===void 0?null:$}},pt.startTransition=function(N){var $=L.T,Z={};L.T=Z;try{var W=N(),_t=L.S;_t!==null&&_t(Z,W),typeof W=="object"&&W!==null&&typeof W.then=="function"&&W.then(U,vt)}catch(ut){vt(ut)}finally{$!==null&&Z.types!==null&&($.types=Z.types),L.T=$}},pt.unstable_useCacheRefresh=function(){return L.H.useCacheRefresh()},pt.use=function(N){return L.H.use(N)},pt.useActionState=function(N,$,Z){return L.H.useActionState(N,$,Z)},pt.useCallback=function(N,$){return L.H.useCallback(N,$)},pt.useContext=function(N){return L.H.useContext(N)},pt.useDebugValue=function(){},pt.useDeferredValue=function(N,$){return L.H.useDeferredValue(N,$)},pt.useEffect=function(N,$){return L.H.useEffect(N,$)},pt.useEffectEvent=function(N){return L.H.useEffectEvent(N)},pt.useId=function(){return L.H.useId()},pt.useImperativeHandle=function(N,$,Z){return L.H.useImperativeHandle(N,$,Z)},pt.useInsertionEffect=function(N,$){return L.H.useInsertionEffect(N,$)},pt.useLayoutEffect=function(N,$){return L.H.useLayoutEffect(N,$)},pt.useMemo=function(N,$){return L.H.useMemo(N,$)},pt.useOptimistic=function(N,$){return L.H.useOptimistic(N,$)},pt.useReducer=function(N,$,Z){return L.H.useReducer(N,$,Z)},pt.useRef=function(N){return L.H.useRef(N)},pt.useState=function(N){return L.H.useState(N)},pt.useSyncExternalStore=function(N,$,Z){return L.H.useSyncExternalStore(N,$,Z)},pt.useTransition=function(){return L.H.useTransition()},pt.version="19.2.3",pt}var nm;function Sh(){return nm||(nm=1,Sf.exports=CT()),Sf.exports}var ct=Sh();const fa=Th(ct);var Af={exports:{}},or={},Of={exports:{}},Nf={};var im;function LT(){return im||(im=1,(function(i){function n(M,Q){var it=M.length;M.push(Q);t:for(;0<it;){var vt=it-1>>>1,Ot=M[vt];if(0<u(Ot,Q))M[vt]=Q,M[it]=Ot,it=vt;else break t}}function s(M){return M.length===0?null:M[0]}function r(M){if(M.length===0)return null;var Q=M[0],it=M.pop();if(it!==Q){M[0]=it;t:for(var vt=0,Ot=M.length,N=Ot>>>1;vt<N;){var $=2*(vt+1)-1,Z=M[$],W=$+1,_t=M[W];if(0>u(Z,it))W<Ot&&0>u(_t,Z)?(M[vt]=_t,M[W]=it,vt=W):(M[vt]=Z,M[$]=it,vt=$);else if(W<Ot&&0>u(_t,it))M[vt]=_t,M[W]=it,vt=W;else break t}}return Q}function u(M,Q){var it=M.sortIndex-Q.sortIndex;return it!==0?it:M.id-Q.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;i.unstable_now=function(){return c.now()}}else{var h=Date,_=h.now();i.unstable_now=function(){return h.now()-_}}var d=[],g=[],b=1,E=null,A=3,j=!1,H=!1,F=!1,S=!1,v=typeof setTimeout=="function"?setTimeout:null,T=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;function I(M){for(var Q=s(g);Q!==null;){if(Q.callback===null)r(g);else if(Q.startTime<=M)r(g),Q.sortIndex=Q.expirationTime,n(d,Q);else break;Q=s(g)}}function X(M){if(F=!1,I(M),!H)if(s(d)!==null)H=!0,U||(U=!0,G());else{var Q=s(g);Q!==null&&J(X,Q.startTime-M)}}var U=!1,L=-1,C=5,Y=-1;function m(){return S?!0:!(i.unstable_now()-Y<C)}function P(){if(S=!1,U){var M=i.unstable_now();Y=M;var Q=!0;try{t:{H=!1,F&&(F=!1,T(L),L=-1),j=!0;var it=A;try{e:{for(I(M),E=s(d);E!==null&&!(E.expirationTime>M&&m());){var vt=E.callback;if(typeof vt=="function"){E.callback=null,A=E.priorityLevel;var Ot=vt(E.expirationTime<=M);if(M=i.unstable_now(),typeof Ot=="function"){E.callback=Ot,I(M),Q=!0;break e}E===s(d)&&r(d),I(M)}else r(d);E=s(d)}if(E!==null)Q=!0;else{var N=s(g);N!==null&&J(X,N.startTime-M),Q=!1}}break t}finally{E=null,A=it,j=!1}Q=void 0}}finally{Q?G():U=!1}}}var G;if(typeof w=="function")G=function(){w(P)};else if(typeof MessageChannel<"u"){var et=new MessageChannel,at=et.port2;et.port1.onmessage=P,G=function(){at.postMessage(null)}}else G=function(){v(P,0)};function J(M,Q){L=v(function(){M(i.unstable_now())},Q)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(M){M.callback=null},i.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):C=0<M?Math.floor(1e3/M):5},i.unstable_getCurrentPriorityLevel=function(){return A},i.unstable_next=function(M){switch(A){case 1:case 2:case 3:var Q=3;break;default:Q=A}var it=A;A=Q;try{return M()}finally{A=it}},i.unstable_requestPaint=function(){S=!0},i.unstable_runWithPriority=function(M,Q){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var it=A;A=M;try{return Q()}finally{A=it}},i.unstable_scheduleCallback=function(M,Q,it){var vt=i.unstable_now();switch(typeof it=="object"&&it!==null?(it=it.delay,it=typeof it=="number"&&0<it?vt+it:vt):it=vt,M){case 1:var Ot=-1;break;case 2:Ot=250;break;case 5:Ot=1073741823;break;case 4:Ot=1e4;break;default:Ot=5e3}return Ot=it+Ot,M={id:b++,callback:Q,priorityLevel:M,startTime:it,expirationTime:Ot,sortIndex:-1},it>vt?(M.sortIndex=it,n(g,M),s(d)===null&&M===s(g)&&(F?(T(L),L=-1):F=!0,J(X,it-vt))):(M.sortIndex=Ot,n(d,M),H||j||(H=!0,U||(U=!0,G()))),M},i.unstable_shouldYield=m,i.unstable_wrapCallback=function(M){var Q=A;return function(){var it=A;A=Q;try{return M.apply(this,arguments)}finally{A=it}}}})(Nf)),Nf}var am;function wT(){return am||(am=1,Of.exports=LT()),Of.exports}var Rf={exports:{}},me={};var sm;function MT(){if(sm)return me;sm=1;var i=Sh();function n(d){var g="https://react.dev/errors/"+d;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)g+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+d+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var r={d:{f:s,r:function(){throw Error(n(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},u=Symbol.for("react.portal");function c(d,g,b){var E=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:E==null?null:""+E,children:d,containerInfo:g,implementation:b}}var h=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function _(d,g){if(d==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return me.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,me.createPortal=function(d,g){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(n(299));return c(d,g,null,b)},me.flushSync=function(d){var g=h.T,b=r.p;try{if(h.T=null,r.p=2,d)return d()}finally{h.T=g,r.p=b,r.d.f()}},me.preconnect=function(d,g){typeof d=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,r.d.C(d,g))},me.prefetchDNS=function(d){typeof d=="string"&&r.d.D(d)},me.preinit=function(d,g){if(typeof d=="string"&&g&&typeof g.as=="string"){var b=g.as,E=_(b,g.crossOrigin),A=typeof g.integrity=="string"?g.integrity:void 0,j=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;b==="style"?r.d.S(d,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:E,integrity:A,fetchPriority:j}):b==="script"&&r.d.X(d,{crossOrigin:E,integrity:A,fetchPriority:j,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},me.preinitModule=function(d,g){if(typeof d=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var b=_(g.as,g.crossOrigin);r.d.M(d,{crossOrigin:b,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&r.d.M(d)},me.preload=function(d,g){if(typeof d=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var b=g.as,E=_(b,g.crossOrigin);r.d.L(d,b,{crossOrigin:E,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},me.preloadModule=function(d,g){if(typeof d=="string")if(g){var b=_(g.as,g.crossOrigin);r.d.m(d,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:b,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else r.d.m(d)},me.requestFormReset=function(d){r.d.r(d)},me.unstable_batchedUpdates=function(d,g){return d(g)},me.useFormState=function(d,g,b){return h.H.useFormState(d,g,b)},me.useFormStatus=function(){return h.H.useHostTransitionStatus()},me.version="19.2.3",me}var rm;function UT(){if(rm)return Rf.exports;rm=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(n){console.error(n)}}return i(),Rf.exports=MT(),Rf.exports}var lm;function IT(){if(lm)return or;lm=1;var i=wT(),n=Sh(),s=UT();function r(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)e+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function c(t){var e=t,a=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(a=e.return),t=e.return;while(t)}return e.tag===3?a:null}function h(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function _(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function d(t){if(c(t)!==t)throw Error(r(188))}function g(t){var e=t.alternate;if(!e){if(e=c(t),e===null)throw Error(r(188));return e!==t?null:t}for(var a=t,l=e;;){var o=a.return;if(o===null)break;var f=o.alternate;if(f===null){if(l=o.return,l!==null){a=l;continue}break}if(o.child===f.child){for(f=o.child;f;){if(f===a)return d(o),t;if(f===l)return d(o),e;f=f.sibling}throw Error(r(188))}if(a.return!==l.return)a=o,l=f;else{for(var p=!1,y=o.child;y;){if(y===a){p=!0,a=o,l=f;break}if(y===l){p=!0,l=o,a=f;break}y=y.sibling}if(!p){for(y=f.child;y;){if(y===a){p=!0,a=f,l=o;break}if(y===l){p=!0,l=f,a=o;break}y=y.sibling}if(!p)throw Error(r(189))}}if(a.alternate!==l)throw Error(r(190))}if(a.tag!==3)throw Error(r(188));return a.stateNode.current===a?t:e}function b(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=b(t),e!==null)return e;t=t.sibling}return null}var E=Object.assign,A=Symbol.for("react.element"),j=Symbol.for("react.transitional.element"),H=Symbol.for("react.portal"),F=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),T=Symbol.for("react.consumer"),w=Symbol.for("react.context"),I=Symbol.for("react.forward_ref"),X=Symbol.for("react.suspense"),U=Symbol.for("react.suspense_list"),L=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),Y=Symbol.for("react.activity"),m=Symbol.for("react.memo_cache_sentinel"),P=Symbol.iterator;function G(t){return t===null||typeof t!="object"?null:(t=P&&t[P]||t["@@iterator"],typeof t=="function"?t:null)}var et=Symbol.for("react.client.reference");function at(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===et?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case F:return"Fragment";case v:return"Profiler";case S:return"StrictMode";case X:return"Suspense";case U:return"SuspenseList";case Y:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case H:return"Portal";case w:return t.displayName||"Context";case T:return(t._context.displayName||"Context")+".Consumer";case I:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case L:return e=t.displayName||null,e!==null?e:at(t.type)||"Memo";case C:e=t._payload,t=t._init;try{return at(t(e))}catch{}}return null}var J=Array.isArray,M=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,it={pending:!1,data:null,method:null,action:null},vt=[],Ot=-1;function N(t){return{current:t}}function $(t){0>Ot||(t.current=vt[Ot],vt[Ot]=null,Ot--)}function Z(t,e){Ot++,vt[Ot]=t.current,t.current=e}var W=N(null),_t=N(null),ut=N(null),gt=N(null);function Kt(t,e){switch(Z(ut,e),Z(_t,t),Z(W,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?Tg(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=Tg(e),t=Sg(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}$(W),Z(W,t)}function Nt(){$(W),$(_t),$(ut)}function ve(t){t.memoizedState!==null&&Z(gt,t);var e=W.current,a=Sg(e,t.type);e!==a&&(Z(_t,t),Z(W,a))}function ke(t){_t.current===t&&($(W),$(_t)),gt.current===t&&($(gt),ar._currentValue=it)}var ze,Rn;function gn(t){if(ze===void 0)try{throw Error()}catch(a){var e=a.stack.trim().match(/\n( *(at )?)/);ze=e&&e[1]||"",Rn=-1<a.stack.indexOf(`
2
2
  at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
3
- `+ze+t+Rn}var Ea=!1;function io(t,e){if(!t||Ea)return"";Ea=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(e){var V=function(){throw Error()};if(Object.defineProperty(V.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(V,[])}catch(D){var B=D}Reflect.construct(t,[],V)}else{try{V.call()}catch(D){B=D}t.call(V.prototype)}}else{try{throw Error()}catch(D){B=D}(V=t())&&typeof V.catch=="function"&&V.catch(function(){})}}catch(D){if(D&&B&&typeof D.stack=="string")return[D.stack,B.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var f=l.DetermineComponentFrameRoot(),p=f[0],y=f[1];if(p&&y){var O=p.split(`
3
+ `+ze+t+Rn}var Ea=!1;function ao(t,e){if(!t||Ea)return"";Ea=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(e){var V=function(){throw Error()};if(Object.defineProperty(V.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(V,[])}catch(D){var B=D}Reflect.construct(t,[],V)}else{try{V.call()}catch(D){B=D}t.call(V.prototype)}}else{try{throw Error()}catch(D){B=D}(V=t())&&typeof V.catch=="function"&&V.catch(function(){})}}catch(D){if(D&&B&&typeof D.stack=="string")return[D.stack,B.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var f=l.DetermineComponentFrameRoot(),p=f[0],y=f[1];if(p&&y){var O=p.split(`
4
4
  `),z=y.split(`
5
5
  `);for(o=l=0;l<O.length&&!O[l].includes("DetermineComponentFrameRoot");)l++;for(;o<z.length&&!z[o].includes("DetermineComponentFrameRoot");)o++;if(l===O.length||o===z.length)for(l=O.length-1,o=z.length-1;1<=l&&0<=o&&O[l]!==z[o];)o--;for(;1<=l&&0<=o;l--,o--)if(O[l]!==z[o]){if(l!==1||o!==1)do if(l--,o--,0>o||O[l]!==z[o]){var q=`
6
- `+O[l].replace(" at new "," at ");return t.displayName&&q.includes("<anonymous>")&&(q=q.replace("<anonymous>",t.displayName)),q}while(1<=l&&0<=o);break}}}finally{Ea=!1,Error.prepareStackTrace=a}return(a=t?t.displayName||t.name:"")?gn(a):""}function tE(t,e){switch(t.tag){case 26:case 27:case 5:return gn(t.type);case 16:return gn("Lazy");case 13:return t.child!==e&&e!==null?gn("Suspense Fallback"):gn("Suspense");case 19:return gn("SuspenseList");case 0:case 15:return io(t.type,!1);case 11:return io(t.type.render,!1);case 1:return io(t.type,!0);case 31:return gn("Activity");default:return""}}function td(t){try{var e="",a=null;do e+=tE(t,a),a=t,t=t.return;while(t);return e}catch(l){return`
6
+ `+O[l].replace(" at new "," at ");return t.displayName&&q.includes("<anonymous>")&&(q=q.replace("<anonymous>",t.displayName)),q}while(1<=l&&0<=o);break}}}finally{Ea=!1,Error.prepareStackTrace=a}return(a=t?t.displayName||t.name:"")?gn(a):""}function iE(t,e){switch(t.tag){case 26:case 27:case 5:return gn(t.type);case 16:return gn("Lazy");case 13:return t.child!==e&&e!==null?gn("Suspense Fallback"):gn("Suspense");case 19:return gn("SuspenseList");case 0:case 15:return ao(t.type,!1);case 11:return ao(t.type.render,!1);case 1:return ao(t.type,!0);case 31:return gn("Activity");default:return""}}function Jh(t){try{var e="",a=null;do e+=iE(t,a),a=t,t=t.return;while(t);return e}catch(l){return`
7
7
  Error generating stack: `+l.message+`
8
- `+l.stack}}var ao=Object.prototype.hasOwnProperty,so=i.unstable_scheduleCallback,ro=i.unstable_cancelCallback,eE=i.unstable_shouldYield,nE=i.unstable_requestPaint,Be=i.unstable_now,iE=i.unstable_getCurrentPriorityLevel,ed=i.unstable_ImmediatePriority,nd=i.unstable_UserBlockingPriority,Dr=i.unstable_NormalPriority,aE=i.unstable_LowPriority,id=i.unstable_IdlePriority,sE=i.log,rE=i.unstable_setDisableYieldValue,ps=null,De=null;function hi(t){if(typeof sE=="function"&&rE(t),De&&typeof De.setStrictMode=="function")try{De.setStrictMode(ps,t)}catch{}}var je=Math.clz32?Math.clz32:oE,lE=Math.log,uE=Math.LN2;function oE(t){return t>>>=0,t===0?32:31-(lE(t)/uE|0)|0}var jr=256,Pr=262144,Gr=4194304;function Hi(t){var e=t&42;if(e!==0)return e;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function qr(t,e,a){var l=t.pendingLanes;if(l===0)return 0;var o=0,f=t.suspendedLanes,p=t.pingedLanes;t=t.warmLanes;var y=l&134217727;return y!==0?(l=y&~f,l!==0?o=Hi(l):(p&=y,p!==0?o=Hi(p):a||(a=y&~t,a!==0&&(o=Hi(a))))):(y=l&~f,y!==0?o=Hi(y):p!==0?o=Hi(p):a||(a=l&~t,a!==0&&(o=Hi(a)))),o===0?0:e!==0&&e!==o&&(e&f)===0&&(f=o&-o,a=e&-e,f>=a||f===32&&(a&4194048)!==0)?e:o}function gs(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function cE(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ad(){var t=Gr;return Gr<<=1,(Gr&62914560)===0&&(Gr=4194304),t}function lo(t){for(var e=[],a=0;31>a;a++)e.push(t);return e}function ms(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function fE(t,e,a,l,o,f){var p=t.pendingLanes;t.pendingLanes=a,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=a,t.entangledLanes&=a,t.errorRecoveryDisabledLanes&=a,t.shellSuspendCounter=0;var y=t.entanglements,O=t.expirationTimes,z=t.hiddenUpdates;for(a=p&~a;0<a;){var q=31-je(a),V=1<<q;y[q]=0,O[q]=-1;var B=z[q];if(B!==null)for(z[q]=null,q=0;q<B.length;q++){var D=B[q];D!==null&&(D.lane&=-536870913)}a&=~V}l!==0&&sd(t,l,0),f!==0&&o===0&&t.tag!==0&&(t.suspendedLanes|=f&~(p&~e))}function sd(t,e,a){t.pendingLanes|=e,t.suspendedLanes&=~e;var l=31-je(e);t.entangledLanes|=e,t.entanglements[l]=t.entanglements[l]|1073741824|a&261930}function rd(t,e){var a=t.entangledLanes|=e;for(t=t.entanglements;a;){var l=31-je(a),o=1<<l;o&e|t[l]&e&&(t[l]|=e),a&=~o}}function ld(t,e){var a=e&-e;return a=(a&42)!==0?1:uo(a),(a&(t.suspendedLanes|e))!==0?0:a}function uo(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function oo(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function ud(){var t=Q.p;return t!==0?t:(t=window.event,t===void 0?32:Yg(t.type))}function od(t,e){var a=Q.p;try{return Q.p=t,e()}finally{Q.p=a}}var di=Math.random().toString(36).slice(2),oe="__reactFiber$"+di,Ae="__reactProps$"+di,ba="__reactContainer$"+di,co="__reactEvents$"+di,hE="__reactListeners$"+di,dE="__reactHandles$"+di,cd="__reactResources$"+di,ys="__reactMarker$"+di;function fo(t){delete t[oe],delete t[Ae],delete t[co],delete t[hE],delete t[dE]}function Ta(t){var e=t[oe];if(e)return e;for(var a=t.parentNode;a;){if(e=a[ba]||a[oe]){if(a=e.alternate,e.child!==null||a!==null&&a.child!==null)for(t=wg(t);t!==null;){if(a=t[oe])return a;t=wg(t)}return e}t=a,a=t.parentNode}return null}function Sa(t){if(t=t[oe]||t[ba]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function vs(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(r(33))}function Aa(t){var e=t[cd];return e||(e=t[cd]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function le(t){t[ys]=!0}var fd=new Set,hd={};function $i(t,e){Oa(t,e),Oa(t+"Capture",e)}function Oa(t,e){for(hd[t]=e,t=0;t<e.length;t++)fd.add(e[t])}var _E=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),dd={},_d={};function pE(t){return ao.call(_d,t)?!0:ao.call(dd,t)?!1:_E.test(t)?_d[t]=!0:(dd[t]=!0,!1)}function Hr(t,e,a){if(pE(e))if(a===null)t.removeAttribute(e);else{switch(typeof a){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var l=e.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+a)}}function $r(t,e,a){if(a===null)t.removeAttribute(e);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+a)}}function Gn(t,e,a,l){if(l===null)t.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(a);return}t.setAttributeNS(e,a,""+l)}}function Je(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function pd(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function gE(t,e,a){var l=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var o=l.get,f=l.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return o.call(this)},set:function(p){a=""+p,f.call(this,p)}}),Object.defineProperty(t,e,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(p){a=""+p},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function ho(t){if(!t._valueTracker){var e=pd(t)?"checked":"value";t._valueTracker=gE(t,e,""+t[e])}}function gd(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var a=e.getValue(),l="";return t&&(l=pd(t)?t.checked?"true":"false":t.value),t=l,t!==a?(e.setValue(t),!0):!1}function Kr(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var mE=/[\n"\\]/g;function tn(t){return t.replace(mE,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function _o(t,e,a,l,o,f,p,y){t.name="",p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"?t.type=p:t.removeAttribute("type"),e!=null?p==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Je(e)):t.value!==""+Je(e)&&(t.value=""+Je(e)):p!=="submit"&&p!=="reset"||t.removeAttribute("value"),e!=null?po(t,p,Je(e)):a!=null?po(t,p,Je(a)):l!=null&&t.removeAttribute("value"),o==null&&f!=null&&(t.defaultChecked=!!f),o!=null&&(t.checked=o&&typeof o!="function"&&typeof o!="symbol"),y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?t.name=""+Je(y):t.removeAttribute("name")}function md(t,e,a,l,o,f,p,y){if(f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(t.type=f),e!=null||a!=null){if(!(f!=="submit"&&f!=="reset"||e!=null)){ho(t);return}a=a!=null?""+Je(a):"",e=e!=null?""+Je(e):a,y||e===t.value||(t.value=e),t.defaultValue=e}l=l??o,l=typeof l!="function"&&typeof l!="symbol"&&!!l,t.checked=y?t.checked:!!l,t.defaultChecked=!!l,p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(t.name=p),ho(t)}function po(t,e,a){e==="number"&&Kr(t.ownerDocument)===t||t.defaultValue===""+a||(t.defaultValue=""+a)}function Na(t,e,a,l){if(t=t.options,e){e={};for(var o=0;o<a.length;o++)e["$"+a[o]]=!0;for(a=0;a<t.length;a++)o=e.hasOwnProperty("$"+t[a].value),t[a].selected!==o&&(t[a].selected=o),o&&l&&(t[a].defaultSelected=!0)}else{for(a=""+Je(a),e=null,o=0;o<t.length;o++){if(t[o].value===a){t[o].selected=!0,l&&(t[o].defaultSelected=!0);return}e!==null||t[o].disabled||(e=t[o])}e!==null&&(e.selected=!0)}}function yd(t,e,a){if(e!=null&&(e=""+Je(e),e!==t.value&&(t.value=e),a==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=a!=null?""+Je(a):""}function vd(t,e,a,l){if(e==null){if(l!=null){if(a!=null)throw Error(r(92));if(J(l)){if(1<l.length)throw Error(r(93));l=l[0]}a=l}a==null&&(a=""),e=a}a=Je(e),t.defaultValue=a,l=t.textContent,l===a&&l!==""&&l!==null&&(t.value=l),ho(t)}function Ra(t,e){if(e){var a=t.firstChild;if(a&&a===t.lastChild&&a.nodeType===3){a.nodeValue=e;return}}t.textContent=e}var yE=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Ed(t,e,a){var l=e.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?l?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":l?t.setProperty(e,a):typeof a!="number"||a===0||yE.has(e)?e==="float"?t.cssFloat=a:t[e]=(""+a).trim():t[e]=a+"px"}function bd(t,e,a){if(e!=null&&typeof e!="object")throw Error(r(62));if(t=t.style,a!=null){for(var l in a)!a.hasOwnProperty(l)||e!=null&&e.hasOwnProperty(l)||(l.indexOf("--")===0?t.setProperty(l,""):l==="float"?t.cssFloat="":t[l]="");for(var o in e)l=e[o],e.hasOwnProperty(o)&&a[o]!==l&&Ed(t,o,l)}else for(var f in e)e.hasOwnProperty(f)&&Ed(t,f,e[f])}function go(t){if(t.indexOf("-")===-1)return!1;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var vE=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["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"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["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"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["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"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),EE=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Vr(t){return EE.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function qn(){}var mo=null;function yo(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var xa=null,Ca=null;function Td(t){var e=Sa(t);if(e&&(t=e.stateNode)){var a=t[Ae]||null;t:switch(t=e.stateNode,e.type){case"input":if(_o(t,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),e=a.name,a.type==="radio"&&e!=null){for(a=t;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+tn(""+e)+'"][type="radio"]'),e=0;e<a.length;e++){var l=a[e];if(l!==t&&l.form===t.form){var o=l[Ae]||null;if(!o)throw Error(r(90));_o(l,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(e=0;e<a.length;e++)l=a[e],l.form===t.form&&gd(l)}break t;case"textarea":yd(t,a.value,a.defaultValue);break t;case"select":e=a.value,e!=null&&Na(t,!!a.multiple,e,!1)}}}var vo=!1;function Sd(t,e,a){if(vo)return t(e,a);vo=!0;try{var l=t(e);return l}finally{if(vo=!1,(xa!==null||Ca!==null)&&(Ul(),xa&&(e=xa,t=Ca,Ca=xa=null,Td(e),t)))for(e=0;e<t.length;e++)Td(t[e])}}function Es(t,e){var a=t.stateNode;if(a===null)return null;var l=a[Ae]||null;if(l===null)return null;a=l[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(t=t.type,l=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!l;break t;default:t=!1}if(t)return null;if(a&&typeof a!="function")throw Error(r(231,e,typeof a));return a}var Hn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Eo=!1;if(Hn)try{var bs={};Object.defineProperty(bs,"passive",{get:function(){Eo=!0}}),window.addEventListener("test",bs,bs),window.removeEventListener("test",bs,bs)}catch{Eo=!1}var _i=null,bo=null,Yr=null;function Ad(){if(Yr)return Yr;var t,e=bo,a=e.length,l,o="value"in _i?_i.value:_i.textContent,f=o.length;for(t=0;t<a&&e[t]===o[t];t++);var p=a-t;for(l=1;l<=p&&e[a-l]===o[f-l];l++);return Yr=o.slice(t,1<l?1-l:void 0)}function Xr(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function Fr(){return!0}function Od(){return!1}function Oe(t){function e(a,l,o,f,p){this._reactName=a,this._targetInst=o,this.type=l,this.nativeEvent=f,this.target=p,this.currentTarget=null;for(var y in t)t.hasOwnProperty(y)&&(a=t[y],this[y]=a?a(f):f[y]);return this.isDefaultPrevented=(f.defaultPrevented!=null?f.defaultPrevented:f.returnValue===!1)?Fr:Od,this.isPropagationStopped=Od,this}return E(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Fr)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Fr)},persist:function(){},isPersistent:Fr}),e}var Ki={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Qr=Oe(Ki),Ts=E({},Ki,{view:0,detail:0}),bE=Oe(Ts),To,So,Ss,Zr=E({},Ts,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Oo,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Ss&&(Ss&&t.type==="mousemove"?(To=t.screenX-Ss.screenX,So=t.screenY-Ss.screenY):So=To=0,Ss=t),To)},movementY:function(t){return"movementY"in t?t.movementY:So}}),Nd=Oe(Zr),TE=E({},Zr,{dataTransfer:0}),SE=Oe(TE),AE=E({},Ts,{relatedTarget:0}),Ao=Oe(AE),OE=E({},Ki,{animationName:0,elapsedTime:0,pseudoElement:0}),NE=Oe(OE),RE=E({},Ki,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),xE=Oe(RE),CE=E({},Ki,{data:0}),Rd=Oe(CE),LE={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},wE={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},ME={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function UE(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=ME[t])?!!e[t]:!1}function Oo(){return UE}var IE=E({},Ts,{key:function(t){if(t.key){var e=LE[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Xr(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?wE[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Oo,charCode:function(t){return t.type==="keypress"?Xr(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Xr(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),kE=Oe(IE),zE=E({},Zr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),xd=Oe(zE),BE=E({},Ts,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Oo}),DE=Oe(BE),jE=E({},Ki,{propertyName:0,elapsedTime:0,pseudoElement:0}),PE=Oe(jE),GE=E({},Zr,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),qE=Oe(GE),HE=E({},Ki,{newState:0,oldState:0}),$E=Oe(HE),KE=[9,13,27,32],No=Hn&&"CompositionEvent"in window,As=null;Hn&&"documentMode"in document&&(As=document.documentMode);var VE=Hn&&"TextEvent"in window&&!As,Cd=Hn&&(!No||As&&8<As&&11>=As),Ld=" ",wd=!1;function Md(t,e){switch(t){case"keyup":return KE.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ud(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var La=!1;function YE(t,e){switch(t){case"compositionend":return Ud(e);case"keypress":return e.which!==32?null:(wd=!0,Ld);case"textInput":return t=e.data,t===Ld&&wd?null:t;default:return null}}function XE(t,e){if(La)return t==="compositionend"||!No&&Md(t,e)?(t=Ad(),Yr=bo=_i=null,La=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return Cd&&e.locale!=="ko"?null:e.data;default:return null}}var FE={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Id(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!FE[t.type]:e==="textarea"}function kd(t,e,a,l){xa?Ca?Ca.push(l):Ca=[l]:xa=l,e=Pl(e,"onChange"),0<e.length&&(a=new Qr("onChange","change",null,a,l),t.push({event:a,listeners:e}))}var Os=null,Ns=null;function QE(t){mg(t,0)}function Wr(t){var e=vs(t);if(gd(e))return t}function zd(t,e){if(t==="change")return e}var Bd=!1;if(Hn){var Ro;if(Hn){var xo="oninput"in document;if(!xo){var Dd=document.createElement("div");Dd.setAttribute("oninput","return;"),xo=typeof Dd.oninput=="function"}Ro=xo}else Ro=!1;Bd=Ro&&(!document.documentMode||9<document.documentMode)}function jd(){Os&&(Os.detachEvent("onpropertychange",Pd),Ns=Os=null)}function Pd(t){if(t.propertyName==="value"&&Wr(Ns)){var e=[];kd(e,Ns,t,yo(t)),Sd(QE,e)}}function ZE(t,e,a){t==="focusin"?(jd(),Os=e,Ns=a,Os.attachEvent("onpropertychange",Pd)):t==="focusout"&&jd()}function WE(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Wr(Ns)}function JE(t,e){if(t==="click")return Wr(e)}function tb(t,e){if(t==="input"||t==="change")return Wr(e)}function eb(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Pe=typeof Object.is=="function"?Object.is:eb;function Rs(t,e){if(Pe(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var a=Object.keys(t),l=Object.keys(e);if(a.length!==l.length)return!1;for(l=0;l<a.length;l++){var o=a[l];if(!ao.call(e,o)||!Pe(t[o],e[o]))return!1}return!0}function Gd(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function qd(t,e){var a=Gd(t);t=0;for(var l;a;){if(a.nodeType===3){if(l=t+a.textContent.length,t<=e&&l>=e)return{node:a,offset:e-t};t=l}t:{for(;a;){if(a.nextSibling){a=a.nextSibling;break t}a=a.parentNode}a=void 0}a=Gd(a)}}function Hd(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Hd(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function $d(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Kr(t.document);e instanceof t.HTMLIFrameElement;){try{var a=typeof e.contentWindow.location.href=="string"}catch{a=!1}if(a)t=e.contentWindow;else break;e=Kr(t.document)}return e}function Co(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var nb=Hn&&"documentMode"in document&&11>=document.documentMode,wa=null,Lo=null,xs=null,wo=!1;function Kd(t,e,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;wo||wa==null||wa!==Kr(l)||(l=wa,"selectionStart"in l&&Co(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),xs&&Rs(xs,l)||(xs=l,l=Pl(Lo,"onSelect"),0<l.length&&(e=new Qr("onSelect","select",null,e,a),t.push({event:e,listeners:l}),e.target=wa)))}function Vi(t,e){var a={};return a[t.toLowerCase()]=e.toLowerCase(),a["Webkit"+t]="webkit"+e,a["Moz"+t]="moz"+e,a}var Ma={animationend:Vi("Animation","AnimationEnd"),animationiteration:Vi("Animation","AnimationIteration"),animationstart:Vi("Animation","AnimationStart"),transitionrun:Vi("Transition","TransitionRun"),transitionstart:Vi("Transition","TransitionStart"),transitioncancel:Vi("Transition","TransitionCancel"),transitionend:Vi("Transition","TransitionEnd")},Mo={},Vd={};Hn&&(Vd=document.createElement("div").style,"AnimationEvent"in window||(delete Ma.animationend.animation,delete Ma.animationiteration.animation,delete Ma.animationstart.animation),"TransitionEvent"in window||delete Ma.transitionend.transition);function Yi(t){if(Mo[t])return Mo[t];if(!Ma[t])return t;var e=Ma[t],a;for(a in e)if(e.hasOwnProperty(a)&&a in Vd)return Mo[t]=e[a];return t}var Yd=Yi("animationend"),Xd=Yi("animationiteration"),Fd=Yi("animationstart"),ib=Yi("transitionrun"),ab=Yi("transitionstart"),sb=Yi("transitioncancel"),Qd=Yi("transitionend"),Zd=new Map,Uo="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Uo.push("scrollEnd");function mn(t,e){Zd.set(t,e),$i(e,[t])}var Jr=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},en=[],Ua=0,Io=0;function tl(){for(var t=Ua,e=Io=Ua=0;e<t;){var a=en[e];en[e++]=null;var l=en[e];en[e++]=null;var o=en[e];en[e++]=null;var f=en[e];if(en[e++]=null,l!==null&&o!==null){var p=l.pending;p===null?o.next=o:(o.next=p.next,p.next=o),l.pending=o}f!==0&&Wd(a,o,f)}}function el(t,e,a,l){en[Ua++]=t,en[Ua++]=e,en[Ua++]=a,en[Ua++]=l,Io|=l,t.lanes|=l,t=t.alternate,t!==null&&(t.lanes|=l)}function ko(t,e,a,l){return el(t,e,a,l),nl(t)}function Xi(t,e){return el(t,null,null,e),nl(t)}function Wd(t,e,a){t.lanes|=a;var l=t.alternate;l!==null&&(l.lanes|=a);for(var o=!1,f=t.return;f!==null;)f.childLanes|=a,l=f.alternate,l!==null&&(l.childLanes|=a),f.tag===22&&(t=f.stateNode,t===null||t._visibility&1||(o=!0)),t=f,f=f.return;return t.tag===3?(f=t.stateNode,o&&e!==null&&(o=31-je(a),t=f.hiddenUpdates,l=t[o],l===null?t[o]=[e]:l.push(e),e.lane=a|536870912),f):null}function nl(t){if(50<Qs)throw Qs=0,$c=null,Error(r(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var Ia={};function rb(t,e,a,l){this.tag=t,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ge(t,e,a,l){return new rb(t,e,a,l)}function zo(t){return t=t.prototype,!(!t||!t.isReactComponent)}function $n(t,e){var a=t.alternate;return a===null?(a=Ge(t.tag,e,t.key,t.mode),a.elementType=t.elementType,a.type=t.type,a.stateNode=t.stateNode,a.alternate=t,t.alternate=a):(a.pendingProps=e,a.type=t.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=t.flags&65011712,a.childLanes=t.childLanes,a.lanes=t.lanes,a.child=t.child,a.memoizedProps=t.memoizedProps,a.memoizedState=t.memoizedState,a.updateQueue=t.updateQueue,e=t.dependencies,a.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},a.sibling=t.sibling,a.index=t.index,a.ref=t.ref,a.refCleanup=t.refCleanup,a}function Jd(t,e){t.flags&=65011714;var a=t.alternate;return a===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=a.childLanes,t.lanes=a.lanes,t.child=a.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=a.memoizedProps,t.memoizedState=a.memoizedState,t.updateQueue=a.updateQueue,t.type=a.type,e=a.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function il(t,e,a,l,o,f){var p=0;if(l=t,typeof t=="function")zo(t)&&(p=1);else if(typeof t=="string")p=fT(t,a,W.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case Y:return t=Ge(31,a,e,o),t.elementType=Y,t.lanes=f,t;case X:return Fi(a.children,o,f,e);case S:p=8,o|=24;break;case v:return t=Ge(12,a,e,o|2),t.elementType=v,t.lanes=f,t;case F:return t=Ge(13,a,e,o),t.elementType=F,t.lanes=f,t;case U:return t=Ge(19,a,e,o),t.elementType=U,t.lanes=f,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case w:p=10;break t;case T:p=9;break t;case I:p=11;break t;case L:p=14;break t;case C:p=16,l=null;break t}p=29,a=Error(r(130,t===null?"null":typeof t,"")),l=null}return e=Ge(p,a,e,o),e.elementType=t,e.type=l,e.lanes=f,e}function Fi(t,e,a,l){return t=Ge(7,t,l,e),t.lanes=a,t}function Bo(t,e,a){return t=Ge(6,t,null,e),t.lanes=a,t}function t_(t){var e=Ge(18,null,null,0);return e.stateNode=t,e}function Do(t,e,a){return e=Ge(4,t.children!==null?t.children:[],t.key,e),e.lanes=a,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var e_=new WeakMap;function nn(t,e){if(typeof t=="object"&&t!==null){var a=e_.get(t);return a!==void 0?a:(e={value:t,source:e,stack:td(e)},e_.set(t,e),e)}return{value:t,source:e,stack:td(e)}}var ka=[],za=0,al=null,Cs=0,an=[],sn=0,pi=null,xn=1,Cn="";function Kn(t,e){ka[za++]=Cs,ka[za++]=al,al=t,Cs=e}function n_(t,e,a){an[sn++]=xn,an[sn++]=Cn,an[sn++]=pi,pi=t;var l=xn;t=Cn;var o=32-je(l)-1;l&=~(1<<o),a+=1;var f=32-je(e)+o;if(30<f){var p=o-o%5;f=(l&(1<<p)-1).toString(32),l>>=p,o-=p,xn=1<<32-je(e)+o|a<<o|l,Cn=f+t}else xn=1<<f|a<<o|l,Cn=t}function jo(t){t.return!==null&&(Kn(t,1),n_(t,1,0))}function Po(t){for(;t===al;)al=ka[--za],ka[za]=null,Cs=ka[--za],ka[za]=null;for(;t===pi;)pi=an[--sn],an[sn]=null,Cn=an[--sn],an[sn]=null,xn=an[--sn],an[sn]=null}function i_(t,e){an[sn++]=xn,an[sn++]=Cn,an[sn++]=pi,xn=e.id,Cn=e.overflow,pi=t}var ce=null,Pt=null,Rt=!1,gi=null,rn=!1,Go=Error(r(519));function mi(t){var e=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ls(nn(e,t)),Go}function a_(t){var e=t.stateNode,a=t.type,l=t.memoizedProps;switch(e[oe]=t,e[Ae]=l,a){case"dialog":Tt("cancel",e),Tt("close",e);break;case"iframe":case"object":case"embed":Tt("load",e);break;case"video":case"audio":for(a=0;a<Ws.length;a++)Tt(Ws[a],e);break;case"source":Tt("error",e);break;case"img":case"image":case"link":Tt("error",e),Tt("load",e);break;case"details":Tt("toggle",e);break;case"input":Tt("invalid",e),md(e,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":Tt("invalid",e);break;case"textarea":Tt("invalid",e),vd(e,l.value,l.defaultValue,l.children)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||e.textContent===""+a||l.suppressHydrationWarning===!0||bg(e.textContent,a)?(l.popover!=null&&(Tt("beforetoggle",e),Tt("toggle",e)),l.onScroll!=null&&Tt("scroll",e),l.onScrollEnd!=null&&Tt("scrollend",e),l.onClick!=null&&(e.onclick=qn),e=!0):e=!1,e||mi(t,!0)}function s_(t){for(ce=t.return;ce;)switch(ce.tag){case 5:case 31:case 13:rn=!1;return;case 27:case 3:rn=!0;return;default:ce=ce.return}}function Ba(t){if(t!==ce)return!1;if(!Rt)return s_(t),Rt=!0,!1;var e=t.tag,a;if((a=e!==3&&e!==27)&&((a=e===5)&&(a=t.type,a=!(a!=="form"&&a!=="button")||rf(t.type,t.memoizedProps)),a=!a),a&&Pt&&mi(t),s_(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));Pt=Lg(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));Pt=Lg(t)}else e===27?(e=Pt,wi(t.type)?(t=ff,ff=null,Pt=t):Pt=e):Pt=ce?un(t.stateNode.nextSibling):null;return!0}function Qi(){Pt=ce=null,Rt=!1}function qo(){var t=gi;return t!==null&&(Ce===null?Ce=t:Ce.push.apply(Ce,t),gi=null),t}function Ls(t){gi===null?gi=[t]:gi.push(t)}var Ho=N(null),Zi=null,Vn=null;function yi(t,e,a){Z(Ho,e._currentValue),e._currentValue=a}function Yn(t){t._currentValue=Ho.current,$(Ho)}function $o(t,e,a){for(;t!==null;){var l=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,l!==null&&(l.childLanes|=e)):l!==null&&(l.childLanes&e)!==e&&(l.childLanes|=e),t===a)break;t=t.return}}function Ko(t,e,a,l){var o=t.child;for(o!==null&&(o.return=t);o!==null;){var f=o.dependencies;if(f!==null){var p=o.child;f=f.firstContext;t:for(;f!==null;){var y=f;f=o;for(var O=0;O<e.length;O++)if(y.context===e[O]){f.lanes|=a,y=f.alternate,y!==null&&(y.lanes|=a),$o(f.return,a,t),l||(p=null);break t}f=y.next}}else if(o.tag===18){if(p=o.return,p===null)throw Error(r(341));p.lanes|=a,f=p.alternate,f!==null&&(f.lanes|=a),$o(p,a,t),p=null}else p=o.child;if(p!==null)p.return=o;else for(p=o;p!==null;){if(p===t){p=null;break}if(o=p.sibling,o!==null){o.return=p.return,p=o;break}p=p.return}o=p}}function Da(t,e,a,l){t=null;for(var o=e,f=!1;o!==null;){if(!f){if((o.flags&524288)!==0)f=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var p=o.alternate;if(p===null)throw Error(r(387));if(p=p.memoizedProps,p!==null){var y=o.type;Pe(o.pendingProps.value,p.value)||(t!==null?t.push(y):t=[y])}}else if(o===gt.current){if(p=o.alternate,p===null)throw Error(r(387));p.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(t!==null?t.push(ir):t=[ir])}o=o.return}t!==null&&Ko(e,t,a,l),e.flags|=262144}function sl(t){for(t=t.firstContext;t!==null;){if(!Pe(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Wi(t){Zi=t,Vn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function fe(t){return r_(Zi,t)}function rl(t,e){return Zi===null&&Wi(t),r_(t,e)}function r_(t,e){var a=e._currentValue;if(e={context:e,memoizedValue:a,next:null},Vn===null){if(t===null)throw Error(r(308));Vn=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else Vn=Vn.next=e;return a}var lb=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(a,l){t.push(l)}};this.abort=function(){e.aborted=!0,t.forEach(function(a){return a()})}},ub=i.unstable_scheduleCallback,ob=i.unstable_NormalPriority,Jt={$$typeof:w,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Vo(){return{controller:new lb,data:new Map,refCount:0}}function ws(t){t.refCount--,t.refCount===0&&ub(ob,function(){t.controller.abort()})}var Ms=null,Yo=0,ja=0,Pa=null;function cb(t,e){if(Ms===null){var a=Ms=[];Yo=0,ja=Qc(),Pa={status:"pending",value:void 0,then:function(l){a.push(l)}}}return Yo++,e.then(l_,l_),e}function l_(){if(--Yo===0&&Ms!==null){Pa!==null&&(Pa.status="fulfilled");var t=Ms;Ms=null,ja=0,Pa=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function fb(t,e){var a=[],l={status:"pending",value:null,reason:null,then:function(o){a.push(o)}};return t.then(function(){l.status="fulfilled",l.value=e;for(var o=0;o<a.length;o++)(0,a[o])(e)},function(o){for(l.status="rejected",l.reason=o,o=0;o<a.length;o++)(0,a[o])(void 0)}),l}var u_=M.S;M.S=function(t,e){Kp=Be(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&cb(t,e),u_!==null&&u_(t,e)};var Ji=N(null);function Xo(){var t=Ji.current;return t!==null?t:Bt.pooledCache}function ll(t,e){e===null?Z(Ji,Ji.current):Z(Ji,e.pool)}function o_(){var t=Xo();return t===null?null:{parent:Jt._currentValue,pool:t}}var Ga=Error(r(460)),Fo=Error(r(474)),ul=Error(r(542)),ol={then:function(){}};function c_(t){return t=t.status,t==="fulfilled"||t==="rejected"}function f_(t,e,a){switch(a=t[a],a===void 0?t.push(e):a!==e&&(e.then(qn,qn),e=a),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,d_(t),t;default:if(typeof e.status=="string")e.then(qn,qn);else{if(t=Bt,t!==null&&100<t.shellSuspendCounter)throw Error(r(482));t=e,t.status="pending",t.then(function(l){if(e.status==="pending"){var o=e;o.status="fulfilled",o.value=l}},function(l){if(e.status==="pending"){var o=e;o.status="rejected",o.reason=l}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,d_(t),t}throw ea=e,Ga}}function ta(t){try{var e=t._init;return e(t._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(ea=a,Ga):a}}var ea=null;function h_(){if(ea===null)throw Error(r(459));var t=ea;return ea=null,t}function d_(t){if(t===Ga||t===ul)throw Error(r(483))}var qa=null,Us=0;function cl(t){var e=Us;return Us+=1,qa===null&&(qa=[]),f_(qa,t,e)}function Is(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function fl(t,e){throw e.$$typeof===A?Error(r(525)):(t=Object.prototype.toString.call(e),Error(r(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function __(t){function e(x,R){if(t){var k=x.deletions;k===null?(x.deletions=[R],x.flags|=16):k.push(R)}}function a(x,R){if(!t)return null;for(;R!==null;)e(x,R),R=R.sibling;return null}function l(x){for(var R=new Map;x!==null;)x.key!==null?R.set(x.key,x):R.set(x.index,x),x=x.sibling;return R}function o(x,R){return x=$n(x,R),x.index=0,x.sibling=null,x}function f(x,R,k){return x.index=k,t?(k=x.alternate,k!==null?(k=k.index,k<R?(x.flags|=67108866,R):k):(x.flags|=67108866,R)):(x.flags|=1048576,R)}function p(x){return t&&x.alternate===null&&(x.flags|=67108866),x}function y(x,R,k,K){return R===null||R.tag!==6?(R=Bo(k,x.mode,K),R.return=x,R):(R=o(R,k),R.return=x,R)}function O(x,R,k,K){var lt=k.type;return lt===X?q(x,R,k.props.children,K,k.key):R!==null&&(R.elementType===lt||typeof lt=="object"&&lt!==null&&lt.$$typeof===C&&ta(lt)===R.type)?(R=o(R,k.props),Is(R,k),R.return=x,R):(R=il(k.type,k.key,k.props,null,x.mode,K),Is(R,k),R.return=x,R)}function z(x,R,k,K){return R===null||R.tag!==4||R.stateNode.containerInfo!==k.containerInfo||R.stateNode.implementation!==k.implementation?(R=Do(k,x.mode,K),R.return=x,R):(R=o(R,k.children||[]),R.return=x,R)}function q(x,R,k,K,lt){return R===null||R.tag!==7?(R=Fi(k,x.mode,K,lt),R.return=x,R):(R=o(R,k),R.return=x,R)}function V(x,R,k){if(typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint")return R=Bo(""+R,x.mode,k),R.return=x,R;if(typeof R=="object"&&R!==null){switch(R.$$typeof){case j:return k=il(R.type,R.key,R.props,null,x.mode,k),Is(k,R),k.return=x,k;case H:return R=Do(R,x.mode,k),R.return=x,R;case C:return R=ta(R),V(x,R,k)}if(J(R)||G(R))return R=Fi(R,x.mode,k,null),R.return=x,R;if(typeof R.then=="function")return V(x,cl(R),k);if(R.$$typeof===w)return V(x,rl(x,R),k);fl(x,R)}return null}function B(x,R,k,K){var lt=R!==null?R.key:null;if(typeof k=="string"&&k!==""||typeof k=="number"||typeof k=="bigint")return lt!==null?null:y(x,R,""+k,K);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case j:return k.key===lt?O(x,R,k,K):null;case H:return k.key===lt?z(x,R,k,K):null;case C:return k=ta(k),B(x,R,k,K)}if(J(k)||G(k))return lt!==null?null:q(x,R,k,K,null);if(typeof k.then=="function")return B(x,R,cl(k),K);if(k.$$typeof===w)return B(x,R,rl(x,k),K);fl(x,k)}return null}function D(x,R,k,K,lt){if(typeof K=="string"&&K!==""||typeof K=="number"||typeof K=="bigint")return x=x.get(k)||null,y(R,x,""+K,lt);if(typeof K=="object"&&K!==null){switch(K.$$typeof){case j:return x=x.get(K.key===null?k:K.key)||null,O(R,x,K,lt);case H:return x=x.get(K.key===null?k:K.key)||null,z(R,x,K,lt);case C:return K=ta(K),D(x,R,k,K,lt)}if(J(K)||G(K))return x=x.get(k)||null,q(R,x,K,lt,null);if(typeof K.then=="function")return D(x,R,k,cl(K),lt);if(K.$$typeof===w)return D(x,R,k,rl(R,K),lt);fl(R,K)}return null}function tt(x,R,k,K){for(var lt=null,Ct=null,nt=R,vt=R=0,At=null;nt!==null&&vt<k.length;vt++){nt.index>vt?(At=nt,nt=null):At=nt.sibling;var Lt=B(x,nt,k[vt],K);if(Lt===null){nt===null&&(nt=At);break}t&&nt&&Lt.alternate===null&&e(x,nt),R=f(Lt,R,vt),Ct===null?lt=Lt:Ct.sibling=Lt,Ct=Lt,nt=At}if(vt===k.length)return a(x,nt),Rt&&Kn(x,vt),lt;if(nt===null){for(;vt<k.length;vt++)nt=V(x,k[vt],K),nt!==null&&(R=f(nt,R,vt),Ct===null?lt=nt:Ct.sibling=nt,Ct=nt);return Rt&&Kn(x,vt),lt}for(nt=l(nt);vt<k.length;vt++)At=D(nt,x,vt,k[vt],K),At!==null&&(t&&At.alternate!==null&&nt.delete(At.key===null?vt:At.key),R=f(At,R,vt),Ct===null?lt=At:Ct.sibling=At,Ct=At);return t&&nt.forEach(function(zi){return e(x,zi)}),Rt&&Kn(x,vt),lt}function ot(x,R,k,K){if(k==null)throw Error(r(151));for(var lt=null,Ct=null,nt=R,vt=R=0,At=null,Lt=k.next();nt!==null&&!Lt.done;vt++,Lt=k.next()){nt.index>vt?(At=nt,nt=null):At=nt.sibling;var zi=B(x,nt,Lt.value,K);if(zi===null){nt===null&&(nt=At);break}t&&nt&&zi.alternate===null&&e(x,nt),R=f(zi,R,vt),Ct===null?lt=zi:Ct.sibling=zi,Ct=zi,nt=At}if(Lt.done)return a(x,nt),Rt&&Kn(x,vt),lt;if(nt===null){for(;!Lt.done;vt++,Lt=k.next())Lt=V(x,Lt.value,K),Lt!==null&&(R=f(Lt,R,vt),Ct===null?lt=Lt:Ct.sibling=Lt,Ct=Lt);return Rt&&Kn(x,vt),lt}for(nt=l(nt);!Lt.done;vt++,Lt=k.next())Lt=D(nt,x,vt,Lt.value,K),Lt!==null&&(t&&Lt.alternate!==null&&nt.delete(Lt.key===null?vt:Lt.key),R=f(Lt,R,vt),Ct===null?lt=Lt:Ct.sibling=Lt,Ct=Lt);return t&&nt.forEach(function(TT){return e(x,TT)}),Rt&&Kn(x,vt),lt}function zt(x,R,k,K){if(typeof k=="object"&&k!==null&&k.type===X&&k.key===null&&(k=k.props.children),typeof k=="object"&&k!==null){switch(k.$$typeof){case j:t:{for(var lt=k.key;R!==null;){if(R.key===lt){if(lt=k.type,lt===X){if(R.tag===7){a(x,R.sibling),K=o(R,k.props.children),K.return=x,x=K;break t}}else if(R.elementType===lt||typeof lt=="object"&&lt!==null&&lt.$$typeof===C&&ta(lt)===R.type){a(x,R.sibling),K=o(R,k.props),Is(K,k),K.return=x,x=K;break t}a(x,R);break}else e(x,R);R=R.sibling}k.type===X?(K=Fi(k.props.children,x.mode,K,k.key),K.return=x,x=K):(K=il(k.type,k.key,k.props,null,x.mode,K),Is(K,k),K.return=x,x=K)}return p(x);case H:t:{for(lt=k.key;R!==null;){if(R.key===lt)if(R.tag===4&&R.stateNode.containerInfo===k.containerInfo&&R.stateNode.implementation===k.implementation){a(x,R.sibling),K=o(R,k.children||[]),K.return=x,x=K;break t}else{a(x,R);break}else e(x,R);R=R.sibling}K=Do(k,x.mode,K),K.return=x,x=K}return p(x);case C:return k=ta(k),zt(x,R,k,K)}if(J(k))return tt(x,R,k,K);if(G(k)){if(lt=G(k),typeof lt!="function")throw Error(r(150));return k=lt.call(k),ot(x,R,k,K)}if(typeof k.then=="function")return zt(x,R,cl(k),K);if(k.$$typeof===w)return zt(x,R,rl(x,k),K);fl(x,k)}return typeof k=="string"&&k!==""||typeof k=="number"||typeof k=="bigint"?(k=""+k,R!==null&&R.tag===6?(a(x,R.sibling),K=o(R,k),K.return=x,x=K):(a(x,R),K=Bo(k,x.mode,K),K.return=x,x=K),p(x)):a(x,R)}return function(x,R,k,K){try{Us=0;var lt=zt(x,R,k,K);return qa=null,lt}catch(nt){if(nt===Ga||nt===ul)throw nt;var Ct=Ge(29,nt,null,x.mode);return Ct.lanes=K,Ct.return=x,Ct}}}var na=__(!0),p_=__(!1),vi=!1;function Qo(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Zo(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Ei(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function bi(t,e,a){var l=t.updateQueue;if(l===null)return null;if(l=l.shared,(wt&2)!==0){var o=l.pending;return o===null?e.next=e:(e.next=o.next,o.next=e),l.pending=e,e=nl(t),Wd(t,null,a),e}return el(t,l,e,a),nl(t)}function ks(t,e,a){if(e=e.updateQueue,e!==null&&(e=e.shared,(a&4194048)!==0)){var l=e.lanes;l&=t.pendingLanes,a|=l,e.lanes=a,rd(t,a)}}function Wo(t,e){var a=t.updateQueue,l=t.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var o=null,f=null;if(a=a.firstBaseUpdate,a!==null){do{var p={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};f===null?o=f=p:f=f.next=p,a=a.next}while(a!==null);f===null?o=f=e:f=f.next=e}else o=f=e;a={baseState:l.baseState,firstBaseUpdate:o,lastBaseUpdate:f,shared:l.shared,callbacks:l.callbacks},t.updateQueue=a;return}t=a.lastBaseUpdate,t===null?a.firstBaseUpdate=e:t.next=e,a.lastBaseUpdate=e}var Jo=!1;function zs(){if(Jo){var t=Pa;if(t!==null)throw t}}function Bs(t,e,a,l){Jo=!1;var o=t.updateQueue;vi=!1;var f=o.firstBaseUpdate,p=o.lastBaseUpdate,y=o.shared.pending;if(y!==null){o.shared.pending=null;var O=y,z=O.next;O.next=null,p===null?f=z:p.next=z,p=O;var q=t.alternate;q!==null&&(q=q.updateQueue,y=q.lastBaseUpdate,y!==p&&(y===null?q.firstBaseUpdate=z:y.next=z,q.lastBaseUpdate=O))}if(f!==null){var V=o.baseState;p=0,q=z=O=null,y=f;do{var B=y.lane&-536870913,D=B!==y.lane;if(D?(St&B)===B:(l&B)===B){B!==0&&B===ja&&(Jo=!0),q!==null&&(q=q.next={lane:0,tag:y.tag,payload:y.payload,callback:null,next:null});t:{var tt=t,ot=y;B=e;var zt=a;switch(ot.tag){case 1:if(tt=ot.payload,typeof tt=="function"){V=tt.call(zt,V,B);break t}V=tt;break t;case 3:tt.flags=tt.flags&-65537|128;case 0:if(tt=ot.payload,B=typeof tt=="function"?tt.call(zt,V,B):tt,B==null)break t;V=E({},V,B);break t;case 2:vi=!0}}B=y.callback,B!==null&&(t.flags|=64,D&&(t.flags|=8192),D=o.callbacks,D===null?o.callbacks=[B]:D.push(B))}else D={lane:B,tag:y.tag,payload:y.payload,callback:y.callback,next:null},q===null?(z=q=D,O=V):q=q.next=D,p|=B;if(y=y.next,y===null){if(y=o.shared.pending,y===null)break;D=y,y=D.next,D.next=null,o.lastBaseUpdate=D,o.shared.pending=null}}while(!0);q===null&&(O=V),o.baseState=O,o.firstBaseUpdate=z,o.lastBaseUpdate=q,f===null&&(o.shared.lanes=0),Ni|=p,t.lanes=p,t.memoizedState=V}}function g_(t,e){if(typeof t!="function")throw Error(r(191,t));t.call(e)}function m_(t,e){var a=t.callbacks;if(a!==null)for(t.callbacks=null,t=0;t<a.length;t++)g_(a[t],e)}var Ha=N(null),hl=N(0);function y_(t,e){t=ni,Z(hl,t),Z(Ha,e),ni=t|e.baseLanes}function tc(){Z(hl,ni),Z(Ha,Ha.current)}function ec(){ni=hl.current,$(Ha),$(hl)}var qe=N(null),ln=null;function Ti(t){var e=t.alternate;Z(Qt,Qt.current&1),Z(qe,t),ln===null&&(e===null||Ha.current!==null||e.memoizedState!==null)&&(ln=t)}function nc(t){Z(Qt,Qt.current),Z(qe,t),ln===null&&(ln=t)}function v_(t){t.tag===22?(Z(Qt,Qt.current),Z(qe,t),ln===null&&(ln=t)):Si()}function Si(){Z(Qt,Qt.current),Z(qe,qe.current)}function He(t){$(qe),ln===t&&(ln=null),$(Qt)}var Qt=N(0);function dl(t){for(var e=t;e!==null;){if(e.tag===13){var a=e.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||of(a)||cf(a)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var Xn=0,mt=null,It=null,te=null,_l=!1,$a=!1,ia=!1,pl=0,Ds=0,Ka=null,hb=0;function Vt(){throw Error(r(321))}function ic(t,e){if(e===null)return!1;for(var a=0;a<e.length&&a<t.length;a++)if(!Pe(t[a],e[a]))return!1;return!0}function ac(t,e,a,l,o,f){return Xn=f,mt=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,M.H=t===null||t.memoizedState===null?np:vc,ia=!1,f=a(l,o),ia=!1,$a&&(f=b_(e,a,l,o)),E_(t),f}function E_(t){M.H=Gs;var e=It!==null&&It.next!==null;if(Xn=0,te=It=mt=null,_l=!1,Ds=0,Ka=null,e)throw Error(r(300));t===null||ee||(t=t.dependencies,t!==null&&sl(t)&&(ee=!0))}function b_(t,e,a,l){mt=t;var o=0;do{if($a&&(Ka=null),Ds=0,$a=!1,25<=o)throw Error(r(301));if(o+=1,te=It=null,t.updateQueue!=null){var f=t.updateQueue;f.lastEffect=null,f.events=null,f.stores=null,f.memoCache!=null&&(f.memoCache.index=0)}M.H=ip,f=e(a,l)}while($a);return f}function db(){var t=M.H,e=t.useState()[0];return e=typeof e.then=="function"?js(e):e,t=t.useState()[0],(It!==null?It.memoizedState:null)!==t&&(mt.flags|=1024),e}function sc(){var t=pl!==0;return pl=0,t}function rc(t,e,a){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~a}function lc(t){if(_l){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}_l=!1}Xn=0,te=It=mt=null,$a=!1,Ds=pl=0,Ka=null}function ve(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return te===null?mt.memoizedState=te=t:te=te.next=t,te}function Zt(){if(It===null){var t=mt.alternate;t=t!==null?t.memoizedState:null}else t=It.next;var e=te===null?mt.memoizedState:te.next;if(e!==null)te=e,It=t;else{if(t===null)throw mt.alternate===null?Error(r(467)):Error(r(310));It=t,t={memoizedState:It.memoizedState,baseState:It.baseState,baseQueue:It.baseQueue,queue:It.queue,next:null},te===null?mt.memoizedState=te=t:te=te.next=t}return te}function gl(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function js(t){var e=Ds;return Ds+=1,Ka===null&&(Ka=[]),t=f_(Ka,t,e),e=mt,(te===null?e.memoizedState:te.next)===null&&(e=e.alternate,M.H=e===null||e.memoizedState===null?np:vc),t}function ml(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return js(t);if(t.$$typeof===w)return fe(t)}throw Error(r(438,String(t)))}function uc(t){var e=null,a=mt.updateQueue;if(a!==null&&(e=a.memoCache),e==null){var l=mt.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(e={data:l.data.map(function(o){return o.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),a===null&&(a=gl(),mt.updateQueue=a),a.memoCache=e,a=e.data[e.index],a===void 0)for(a=e.data[e.index]=Array(t),l=0;l<t;l++)a[l]=m;return e.index++,a}function Fn(t,e){return typeof e=="function"?e(t):e}function yl(t){var e=Zt();return oc(e,It,t)}function oc(t,e,a){var l=t.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=a;var o=t.baseQueue,f=l.pending;if(f!==null){if(o!==null){var p=o.next;o.next=f.next,f.next=p}e.baseQueue=o=f,l.pending=null}if(f=t.baseState,o===null)t.memoizedState=f;else{e=o.next;var y=p=null,O=null,z=e,q=!1;do{var V=z.lane&-536870913;if(V!==z.lane?(St&V)===V:(Xn&V)===V){var B=z.revertLane;if(B===0)O!==null&&(O=O.next={lane:0,revertLane:0,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null}),V===ja&&(q=!0);else if((Xn&B)===B){z=z.next,B===ja&&(q=!0);continue}else V={lane:0,revertLane:z.revertLane,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},O===null?(y=O=V,p=f):O=O.next=V,mt.lanes|=B,Ni|=B;V=z.action,ia&&a(f,V),f=z.hasEagerState?z.eagerState:a(f,V)}else B={lane:V,revertLane:z.revertLane,gesture:z.gesture,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},O===null?(y=O=B,p=f):O=O.next=B,mt.lanes|=V,Ni|=V;z=z.next}while(z!==null&&z!==e);if(O===null?p=f:O.next=y,!Pe(f,t.memoizedState)&&(ee=!0,q&&(a=Pa,a!==null)))throw a;t.memoizedState=f,t.baseState=p,t.baseQueue=O,l.lastRenderedState=f}return o===null&&(l.lanes=0),[t.memoizedState,l.dispatch]}function cc(t){var e=Zt(),a=e.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=t;var l=a.dispatch,o=a.pending,f=e.memoizedState;if(o!==null){a.pending=null;var p=o=o.next;do f=t(f,p.action),p=p.next;while(p!==o);Pe(f,e.memoizedState)||(ee=!0),e.memoizedState=f,e.baseQueue===null&&(e.baseState=f),a.lastRenderedState=f}return[f,l]}function T_(t,e,a){var l=mt,o=Zt(),f=Rt;if(f){if(a===void 0)throw Error(r(407));a=a()}else a=e();var p=!Pe((It||o).memoizedState,a);if(p&&(o.memoizedState=a,ee=!0),o=o.queue,dc(O_.bind(null,l,o,t),[t]),o.getSnapshot!==e||p||te!==null&&te.memoizedState.tag&1){if(l.flags|=2048,Va(9,{destroy:void 0},A_.bind(null,l,o,a,e),null),Bt===null)throw Error(r(349));f||(Xn&127)!==0||S_(l,e,a)}return a}function S_(t,e,a){t.flags|=16384,t={getSnapshot:e,value:a},e=mt.updateQueue,e===null?(e=gl(),mt.updateQueue=e,e.stores=[t]):(a=e.stores,a===null?e.stores=[t]:a.push(t))}function A_(t,e,a,l){e.value=a,e.getSnapshot=l,N_(e)&&R_(t)}function O_(t,e,a){return a(function(){N_(e)&&R_(t)})}function N_(t){var e=t.getSnapshot;t=t.value;try{var a=e();return!Pe(t,a)}catch{return!0}}function R_(t){var e=Xi(t,2);e!==null&&Le(e,t,2)}function fc(t){var e=ve();if(typeof t=="function"){var a=t;if(t=a(),ia){hi(!0);try{a()}finally{hi(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fn,lastRenderedState:t},e}function x_(t,e,a,l){return t.baseState=a,oc(t,It,typeof l=="function"?l:Fn)}function _b(t,e,a,l,o){if(bl(t))throw Error(r(485));if(t=e.action,t!==null){var f={payload:o,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(p){f.listeners.push(p)}};M.T!==null?a(!0):f.isTransition=!1,l(f),a=e.pending,a===null?(f.next=e.pending=f,C_(e,f)):(f.next=a.next,e.pending=a.next=f)}}function C_(t,e){var a=e.action,l=e.payload,o=t.state;if(e.isTransition){var f=M.T,p={};M.T=p;try{var y=a(o,l),O=M.S;O!==null&&O(p,y),L_(t,e,y)}catch(z){hc(t,e,z)}finally{f!==null&&p.types!==null&&(f.types=p.types),M.T=f}}else try{f=a(o,l),L_(t,e,f)}catch(z){hc(t,e,z)}}function L_(t,e,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){w_(t,e,l)},function(l){return hc(t,e,l)}):w_(t,e,a)}function w_(t,e,a){e.status="fulfilled",e.value=a,M_(e),t.state=a,e=t.pending,e!==null&&(a=e.next,a===e?t.pending=null:(a=a.next,e.next=a,C_(t,a)))}function hc(t,e,a){var l=t.pending;if(t.pending=null,l!==null){l=l.next;do e.status="rejected",e.reason=a,M_(e),e=e.next;while(e!==l)}t.action=null}function M_(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function U_(t,e){return e}function I_(t,e){if(Rt){var a=Bt.formState;if(a!==null){t:{var l=mt;if(Rt){if(Pt){e:{for(var o=Pt,f=rn;o.nodeType!==8;){if(!f){o=null;break e}if(o=un(o.nextSibling),o===null){o=null;break e}}f=o.data,o=f==="F!"||f==="F"?o:null}if(o){Pt=un(o.nextSibling),l=o.data==="F!";break t}}mi(l)}l=!1}l&&(e=a[0])}}return a=ve(),a.memoizedState=a.baseState=e,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:U_,lastRenderedState:e},a.queue=l,a=J_.bind(null,mt,l),l.dispatch=a,l=fc(!1),f=yc.bind(null,mt,!1,l.queue),l=ve(),o={state:e,dispatch:null,action:t,pending:null},l.queue=o,a=_b.bind(null,mt,o,f,a),o.dispatch=a,l.memoizedState=t,[e,a,!1]}function k_(t){var e=Zt();return z_(e,It,t)}function z_(t,e,a){if(e=oc(t,e,U_)[0],t=yl(Fn)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var l=js(e)}catch(p){throw p===Ga?ul:p}else l=e;e=Zt();var o=e.queue,f=o.dispatch;return a!==e.memoizedState&&(mt.flags|=2048,Va(9,{destroy:void 0},pb.bind(null,o,a),null)),[l,f,t]}function pb(t,e){t.action=e}function B_(t){var e=Zt(),a=It;if(a!==null)return z_(e,a,t);Zt(),e=e.memoizedState,a=Zt();var l=a.queue.dispatch;return a.memoizedState=t,[e,l,!1]}function Va(t,e,a,l){return t={tag:t,create:a,deps:l,inst:e,next:null},e=mt.updateQueue,e===null&&(e=gl(),mt.updateQueue=e),a=e.lastEffect,a===null?e.lastEffect=t.next=t:(l=a.next,a.next=t,t.next=l,e.lastEffect=t),t}function D_(){return Zt().memoizedState}function vl(t,e,a,l){var o=ve();mt.flags|=t,o.memoizedState=Va(1|e,{destroy:void 0},a,l===void 0?null:l)}function El(t,e,a,l){var o=Zt();l=l===void 0?null:l;var f=o.memoizedState.inst;It!==null&&l!==null&&ic(l,It.memoizedState.deps)?o.memoizedState=Va(e,f,a,l):(mt.flags|=t,o.memoizedState=Va(1|e,f,a,l))}function j_(t,e){vl(8390656,8,t,e)}function dc(t,e){El(2048,8,t,e)}function gb(t){mt.flags|=4;var e=mt.updateQueue;if(e===null)e=gl(),mt.updateQueue=e,e.events=[t];else{var a=e.events;a===null?e.events=[t]:a.push(t)}}function P_(t){var e=Zt().memoizedState;return gb({ref:e,nextImpl:t}),function(){if((wt&2)!==0)throw Error(r(440));return e.impl.apply(void 0,arguments)}}function G_(t,e){return El(4,2,t,e)}function q_(t,e){return El(4,4,t,e)}function H_(t,e){if(typeof e=="function"){t=t();var a=e(t);return function(){typeof a=="function"?a():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function $_(t,e,a){a=a!=null?a.concat([t]):null,El(4,4,H_.bind(null,e,t),a)}function _c(){}function K_(t,e){var a=Zt();e=e===void 0?null:e;var l=a.memoizedState;return e!==null&&ic(e,l[1])?l[0]:(a.memoizedState=[t,e],t)}function V_(t,e){var a=Zt();e=e===void 0?null:e;var l=a.memoizedState;if(e!==null&&ic(e,l[1]))return l[0];if(l=t(),ia){hi(!0);try{t()}finally{hi(!1)}}return a.memoizedState=[l,e],l}function pc(t,e,a){return a===void 0||(Xn&1073741824)!==0&&(St&261930)===0?t.memoizedState=e:(t.memoizedState=a,t=Yp(),mt.lanes|=t,Ni|=t,a)}function Y_(t,e,a,l){return Pe(a,e)?a:Ha.current!==null?(t=pc(t,a,l),Pe(t,e)||(ee=!0),t):(Xn&42)===0||(Xn&1073741824)!==0&&(St&261930)===0?(ee=!0,t.memoizedState=a):(t=Yp(),mt.lanes|=t,Ni|=t,e)}function X_(t,e,a,l,o){var f=Q.p;Q.p=f!==0&&8>f?f:8;var p=M.T,y={};M.T=y,yc(t,!1,e,a);try{var O=o(),z=M.S;if(z!==null&&z(y,O),O!==null&&typeof O=="object"&&typeof O.then=="function"){var q=fb(O,l);Ps(t,e,q,Ve(t))}else Ps(t,e,l,Ve(t))}catch(V){Ps(t,e,{then:function(){},status:"rejected",reason:V},Ve())}finally{Q.p=f,p!==null&&y.types!==null&&(p.types=y.types),M.T=p}}function mb(){}function gc(t,e,a,l){if(t.tag!==5)throw Error(r(476));var o=F_(t).queue;X_(t,o,e,it,a===null?mb:function(){return Q_(t),a(l)})}function F_(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:it,baseState:it,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fn,lastRenderedState:it},next:null};var a={};return e.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fn,lastRenderedState:a},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Q_(t){var e=F_(t);e.next===null&&(e=t.alternate.memoizedState),Ps(t,e.next.queue,{},Ve())}function mc(){return fe(ir)}function Z_(){return Zt().memoizedState}function W_(){return Zt().memoizedState}function yb(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var a=Ve();t=Ei(a);var l=bi(e,t,a);l!==null&&(Le(l,e,a),ks(l,e,a)),e={cache:Vo()},t.payload=e;return}e=e.return}}function vb(t,e,a){var l=Ve();a={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},bl(t)?tp(e,a):(a=ko(t,e,a,l),a!==null&&(Le(a,t,l),ep(a,e,l)))}function J_(t,e,a){var l=Ve();Ps(t,e,a,l)}function Ps(t,e,a,l){var o={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(bl(t))tp(e,o);else{var f=t.alternate;if(t.lanes===0&&(f===null||f.lanes===0)&&(f=e.lastRenderedReducer,f!==null))try{var p=e.lastRenderedState,y=f(p,a);if(o.hasEagerState=!0,o.eagerState=y,Pe(y,p))return el(t,e,o,0),Bt===null&&tl(),!1}catch{}if(a=ko(t,e,o,l),a!==null)return Le(a,t,l),ep(a,e,l),!0}return!1}function yc(t,e,a,l){if(l={lane:2,revertLane:Qc(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},bl(t)){if(e)throw Error(r(479))}else e=ko(t,a,l,2),e!==null&&Le(e,t,2)}function bl(t){var e=t.alternate;return t===mt||e!==null&&e===mt}function tp(t,e){$a=_l=!0;var a=t.pending;a===null?e.next=e:(e.next=a.next,a.next=e),t.pending=e}function ep(t,e,a){if((a&4194048)!==0){var l=e.lanes;l&=t.pendingLanes,a|=l,e.lanes=a,rd(t,a)}}var Gs={readContext:fe,use:ml,useCallback:Vt,useContext:Vt,useEffect:Vt,useImperativeHandle:Vt,useLayoutEffect:Vt,useInsertionEffect:Vt,useMemo:Vt,useReducer:Vt,useRef:Vt,useState:Vt,useDebugValue:Vt,useDeferredValue:Vt,useTransition:Vt,useSyncExternalStore:Vt,useId:Vt,useHostTransitionStatus:Vt,useFormState:Vt,useActionState:Vt,useOptimistic:Vt,useMemoCache:Vt,useCacheRefresh:Vt};Gs.useEffectEvent=Vt;var np={readContext:fe,use:ml,useCallback:function(t,e){return ve().memoizedState=[t,e===void 0?null:e],t},useContext:fe,useEffect:j_,useImperativeHandle:function(t,e,a){a=a!=null?a.concat([t]):null,vl(4194308,4,H_.bind(null,e,t),a)},useLayoutEffect:function(t,e){return vl(4194308,4,t,e)},useInsertionEffect:function(t,e){vl(4,2,t,e)},useMemo:function(t,e){var a=ve();e=e===void 0?null:e;var l=t();if(ia){hi(!0);try{t()}finally{hi(!1)}}return a.memoizedState=[l,e],l},useReducer:function(t,e,a){var l=ve();if(a!==void 0){var o=a(e);if(ia){hi(!0);try{a(e)}finally{hi(!1)}}}else o=e;return l.memoizedState=l.baseState=o,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:o},l.queue=t,t=t.dispatch=vb.bind(null,mt,t),[l.memoizedState,t]},useRef:function(t){var e=ve();return t={current:t},e.memoizedState=t},useState:function(t){t=fc(t);var e=t.queue,a=J_.bind(null,mt,e);return e.dispatch=a,[t.memoizedState,a]},useDebugValue:_c,useDeferredValue:function(t,e){var a=ve();return pc(a,t,e)},useTransition:function(){var t=fc(!1);return t=X_.bind(null,mt,t.queue,!0,!1),ve().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,a){var l=mt,o=ve();if(Rt){if(a===void 0)throw Error(r(407));a=a()}else{if(a=e(),Bt===null)throw Error(r(349));(St&127)!==0||S_(l,e,a)}o.memoizedState=a;var f={value:a,getSnapshot:e};return o.queue=f,j_(O_.bind(null,l,f,t),[t]),l.flags|=2048,Va(9,{destroy:void 0},A_.bind(null,l,f,a,e),null),a},useId:function(){var t=ve(),e=Bt.identifierPrefix;if(Rt){var a=Cn,l=xn;a=(l&~(1<<32-je(l)-1)).toString(32)+a,e="_"+e+"R_"+a,a=pl++,0<a&&(e+="H"+a.toString(32)),e+="_"}else a=hb++,e="_"+e+"r_"+a.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:mc,useFormState:I_,useActionState:I_,useOptimistic:function(t){var e=ve();e.memoizedState=e.baseState=t;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=a,e=yc.bind(null,mt,!0,a),a.dispatch=e,[t,e]},useMemoCache:uc,useCacheRefresh:function(){return ve().memoizedState=yb.bind(null,mt)},useEffectEvent:function(t){var e=ve(),a={impl:t};return e.memoizedState=a,function(){if((wt&2)!==0)throw Error(r(440));return a.impl.apply(void 0,arguments)}}},vc={readContext:fe,use:ml,useCallback:K_,useContext:fe,useEffect:dc,useImperativeHandle:$_,useInsertionEffect:G_,useLayoutEffect:q_,useMemo:V_,useReducer:yl,useRef:D_,useState:function(){return yl(Fn)},useDebugValue:_c,useDeferredValue:function(t,e){var a=Zt();return Y_(a,It.memoizedState,t,e)},useTransition:function(){var t=yl(Fn)[0],e=Zt().memoizedState;return[typeof t=="boolean"?t:js(t),e]},useSyncExternalStore:T_,useId:Z_,useHostTransitionStatus:mc,useFormState:k_,useActionState:k_,useOptimistic:function(t,e){var a=Zt();return x_(a,It,t,e)},useMemoCache:uc,useCacheRefresh:W_};vc.useEffectEvent=P_;var ip={readContext:fe,use:ml,useCallback:K_,useContext:fe,useEffect:dc,useImperativeHandle:$_,useInsertionEffect:G_,useLayoutEffect:q_,useMemo:V_,useReducer:cc,useRef:D_,useState:function(){return cc(Fn)},useDebugValue:_c,useDeferredValue:function(t,e){var a=Zt();return It===null?pc(a,t,e):Y_(a,It.memoizedState,t,e)},useTransition:function(){var t=cc(Fn)[0],e=Zt().memoizedState;return[typeof t=="boolean"?t:js(t),e]},useSyncExternalStore:T_,useId:Z_,useHostTransitionStatus:mc,useFormState:B_,useActionState:B_,useOptimistic:function(t,e){var a=Zt();return It!==null?x_(a,It,t,e):(a.baseState=t,[t,a.queue.dispatch])},useMemoCache:uc,useCacheRefresh:W_};ip.useEffectEvent=P_;function Ec(t,e,a,l){e=t.memoizedState,a=a(l,e),a=a==null?e:E({},e,a),t.memoizedState=a,t.lanes===0&&(t.updateQueue.baseState=a)}var bc={enqueueSetState:function(t,e,a){t=t._reactInternals;var l=Ve(),o=Ei(l);o.payload=e,a!=null&&(o.callback=a),e=bi(t,o,l),e!==null&&(Le(e,t,l),ks(e,t,l))},enqueueReplaceState:function(t,e,a){t=t._reactInternals;var l=Ve(),o=Ei(l);o.tag=1,o.payload=e,a!=null&&(o.callback=a),e=bi(t,o,l),e!==null&&(Le(e,t,l),ks(e,t,l))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var a=Ve(),l=Ei(a);l.tag=2,e!=null&&(l.callback=e),e=bi(t,l,a),e!==null&&(Le(e,t,a),ks(e,t,a))}};function ap(t,e,a,l,o,f,p){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(l,f,p):e.prototype&&e.prototype.isPureReactComponent?!Rs(a,l)||!Rs(o,f):!0}function sp(t,e,a,l){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(a,l),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(a,l),e.state!==t&&bc.enqueueReplaceState(e,e.state,null)}function aa(t,e){var a=e;if("ref"in e){a={};for(var l in e)l!=="ref"&&(a[l]=e[l])}if(t=t.defaultProps){a===e&&(a=E({},a));for(var o in t)a[o]===void 0&&(a[o]=t[o])}return a}function rp(t){Jr(t)}function lp(t){console.error(t)}function up(t){Jr(t)}function Tl(t,e){try{var a=t.onUncaughtError;a(e.value,{componentStack:e.stack})}catch(l){setTimeout(function(){throw l})}}function op(t,e,a){try{var l=t.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function Tc(t,e,a){return a=Ei(a),a.tag=3,a.payload={element:null},a.callback=function(){Tl(t,e)},a}function cp(t){return t=Ei(t),t.tag=3,t}function fp(t,e,a,l){var o=a.type.getDerivedStateFromError;if(typeof o=="function"){var f=l.value;t.payload=function(){return o(f)},t.callback=function(){op(e,a,l)}}var p=a.stateNode;p!==null&&typeof p.componentDidCatch=="function"&&(t.callback=function(){op(e,a,l),typeof o!="function"&&(Ri===null?Ri=new Set([this]):Ri.add(this));var y=l.stack;this.componentDidCatch(l.value,{componentStack:y!==null?y:""})})}function Eb(t,e,a,l,o){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(e=a.alternate,e!==null&&Da(e,a,o,!0),a=qe.current,a!==null){switch(a.tag){case 31:case 13:return ln===null?Il():a.alternate===null&&Yt===0&&(Yt=3),a.flags&=-257,a.flags|=65536,a.lanes=o,l===ol?a.flags|=16384:(e=a.updateQueue,e===null?a.updateQueue=new Set([l]):e.add(l),Yc(t,l,o)),!1;case 22:return a.flags|=65536,l===ol?a.flags|=16384:(e=a.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([l])},a.updateQueue=e):(a=e.retryQueue,a===null?e.retryQueue=new Set([l]):a.add(l)),Yc(t,l,o)),!1}throw Error(r(435,a.tag))}return Yc(t,l,o),Il(),!1}if(Rt)return e=qe.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=o,l!==Go&&(t=Error(r(422),{cause:l}),Ls(nn(t,a)))):(l!==Go&&(e=Error(r(423),{cause:l}),Ls(nn(e,a))),t=t.current.alternate,t.flags|=65536,o&=-o,t.lanes|=o,l=nn(l,a),o=Tc(t.stateNode,l,o),Wo(t,o),Yt!==4&&(Yt=2)),!1;var f=Error(r(520),{cause:l});if(f=nn(f,a),Fs===null?Fs=[f]:Fs.push(f),Yt!==4&&(Yt=2),e===null)return!0;l=nn(l,a),a=e;do{switch(a.tag){case 3:return a.flags|=65536,t=o&-o,a.lanes|=t,t=Tc(a.stateNode,l,t),Wo(a,t),!1;case 1:if(e=a.type,f=a.stateNode,(a.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||f!==null&&typeof f.componentDidCatch=="function"&&(Ri===null||!Ri.has(f))))return a.flags|=65536,o&=-o,a.lanes|=o,o=cp(o),fp(o,t,a,l),Wo(a,o),!1}a=a.return}while(a!==null);return!1}var Sc=Error(r(461)),ee=!1;function he(t,e,a,l){e.child=t===null?p_(e,null,a,l):na(e,t.child,a,l)}function hp(t,e,a,l,o){a=a.render;var f=e.ref;if("ref"in l){var p={};for(var y in l)y!=="ref"&&(p[y]=l[y])}else p=l;return Wi(e),l=ac(t,e,a,p,f,o),y=sc(),t!==null&&!ee?(rc(t,e,o),Qn(t,e,o)):(Rt&&y&&jo(e),e.flags|=1,he(t,e,l,o),e.child)}function dp(t,e,a,l,o){if(t===null){var f=a.type;return typeof f=="function"&&!zo(f)&&f.defaultProps===void 0&&a.compare===null?(e.tag=15,e.type=f,_p(t,e,f,l,o)):(t=il(a.type,null,l,e,e.mode,o),t.ref=e.ref,t.return=e,e.child=t)}if(f=t.child,!wc(t,o)){var p=f.memoizedProps;if(a=a.compare,a=a!==null?a:Rs,a(p,l)&&t.ref===e.ref)return Qn(t,e,o)}return e.flags|=1,t=$n(f,l),t.ref=e.ref,t.return=e,e.child=t}function _p(t,e,a,l,o){if(t!==null){var f=t.memoizedProps;if(Rs(f,l)&&t.ref===e.ref)if(ee=!1,e.pendingProps=l=f,wc(t,o))(t.flags&131072)!==0&&(ee=!0);else return e.lanes=t.lanes,Qn(t,e,o)}return Ac(t,e,a,l,o)}function pp(t,e,a,l){var o=l.children,f=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((e.flags&128)!==0){if(f=f!==null?f.baseLanes|a:a,t!==null){for(l=e.child=t.child,o=0;l!==null;)o=o|l.lanes|l.childLanes,l=l.sibling;l=o&~f}else l=0,e.child=null;return gp(t,e,f,a,l)}if((a&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&ll(e,f!==null?f.cachePool:null),f!==null?y_(e,f):tc(),v_(e);else return l=e.lanes=536870912,gp(t,e,f!==null?f.baseLanes|a:a,a,l)}else f!==null?(ll(e,f.cachePool),y_(e,f),Si(),e.memoizedState=null):(t!==null&&ll(e,null),tc(),Si());return he(t,e,o,a),e.child}function qs(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function gp(t,e,a,l,o){var f=Xo();return f=f===null?null:{parent:Jt._currentValue,pool:f},e.memoizedState={baseLanes:a,cachePool:f},t!==null&&ll(e,null),tc(),v_(e),t!==null&&Da(t,e,l,!0),e.childLanes=o,null}function Sl(t,e){return e=Ol({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function mp(t,e,a){return na(e,t.child,null,a),t=Sl(e,e.pendingProps),t.flags|=2,He(e),e.memoizedState=null,t}function bb(t,e,a){var l=e.pendingProps,o=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(Rt){if(l.mode==="hidden")return t=Sl(e,l),e.lanes=536870912,qs(null,t);if(nc(e),(t=Pt)?(t=Cg(t,rn),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:pi!==null?{id:xn,overflow:Cn}:null,retryLane:536870912,hydrationErrors:null},a=t_(t),a.return=e,e.child=a,ce=e,Pt=null)):t=null,t===null)throw mi(e);return e.lanes=536870912,null}return Sl(e,l)}var f=t.memoizedState;if(f!==null){var p=f.dehydrated;if(nc(e),o)if(e.flags&256)e.flags&=-257,e=mp(t,e,a);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(r(558));else if(ee||Da(t,e,a,!1),o=(a&t.childLanes)!==0,ee||o){if(l=Bt,l!==null&&(p=ld(l,a),p!==0&&p!==f.retryLane))throw f.retryLane=p,Xi(t,p),Le(l,t,p),Sc;Il(),e=mp(t,e,a)}else t=f.treeContext,Pt=un(p.nextSibling),ce=e,Rt=!0,gi=null,rn=!1,t!==null&&i_(e,t),e=Sl(e,l),e.flags|=4096;return e}return t=$n(t.child,{mode:l.mode,children:l.children}),t.ref=e.ref,e.child=t,t.return=e,t}function Al(t,e){var a=e.ref;if(a===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(r(284));(t===null||t.ref!==a)&&(e.flags|=4194816)}}function Ac(t,e,a,l,o){return Wi(e),a=ac(t,e,a,l,void 0,o),l=sc(),t!==null&&!ee?(rc(t,e,o),Qn(t,e,o)):(Rt&&l&&jo(e),e.flags|=1,he(t,e,a,o),e.child)}function yp(t,e,a,l,o,f){return Wi(e),e.updateQueue=null,a=b_(e,l,a,o),E_(t),l=sc(),t!==null&&!ee?(rc(t,e,f),Qn(t,e,f)):(Rt&&l&&jo(e),e.flags|=1,he(t,e,a,f),e.child)}function vp(t,e,a,l,o){if(Wi(e),e.stateNode===null){var f=Ia,p=a.contextType;typeof p=="object"&&p!==null&&(f=fe(p)),f=new a(l,f),e.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,f.updater=bc,e.stateNode=f,f._reactInternals=e,f=e.stateNode,f.props=l,f.state=e.memoizedState,f.refs={},Qo(e),p=a.contextType,f.context=typeof p=="object"&&p!==null?fe(p):Ia,f.state=e.memoizedState,p=a.getDerivedStateFromProps,typeof p=="function"&&(Ec(e,a,p,l),f.state=e.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(p=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),p!==f.state&&bc.enqueueReplaceState(f,f.state,null),Bs(e,l,f,o),zs(),f.state=e.memoizedState),typeof f.componentDidMount=="function"&&(e.flags|=4194308),l=!0}else if(t===null){f=e.stateNode;var y=e.memoizedProps,O=aa(a,y);f.props=O;var z=f.context,q=a.contextType;p=Ia,typeof q=="object"&&q!==null&&(p=fe(q));var V=a.getDerivedStateFromProps;q=typeof V=="function"||typeof f.getSnapshotBeforeUpdate=="function",y=e.pendingProps!==y,q||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(y||z!==p)&&sp(e,f,l,p),vi=!1;var B=e.memoizedState;f.state=B,Bs(e,l,f,o),zs(),z=e.memoizedState,y||B!==z||vi?(typeof V=="function"&&(Ec(e,a,V,l),z=e.memoizedState),(O=vi||ap(e,a,O,l,B,z,p))?(q||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount()),typeof f.componentDidMount=="function"&&(e.flags|=4194308)):(typeof f.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=l,e.memoizedState=z),f.props=l,f.state=z,f.context=p,l=O):(typeof f.componentDidMount=="function"&&(e.flags|=4194308),l=!1)}else{f=e.stateNode,Zo(t,e),p=e.memoizedProps,q=aa(a,p),f.props=q,V=e.pendingProps,B=f.context,z=a.contextType,O=Ia,typeof z=="object"&&z!==null&&(O=fe(z)),y=a.getDerivedStateFromProps,(z=typeof y=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(p!==V||B!==O)&&sp(e,f,l,O),vi=!1,B=e.memoizedState,f.state=B,Bs(e,l,f,o),zs();var D=e.memoizedState;p!==V||B!==D||vi||t!==null&&t.dependencies!==null&&sl(t.dependencies)?(typeof y=="function"&&(Ec(e,a,y,l),D=e.memoizedState),(q=vi||ap(e,a,q,l,B,D,O)||t!==null&&t.dependencies!==null&&sl(t.dependencies))?(z||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(l,D,O),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(l,D,O)),typeof f.componentDidUpdate=="function"&&(e.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof f.componentDidUpdate!="function"||p===t.memoizedProps&&B===t.memoizedState||(e.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||p===t.memoizedProps&&B===t.memoizedState||(e.flags|=1024),e.memoizedProps=l,e.memoizedState=D),f.props=l,f.state=D,f.context=O,l=q):(typeof f.componentDidUpdate!="function"||p===t.memoizedProps&&B===t.memoizedState||(e.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||p===t.memoizedProps&&B===t.memoizedState||(e.flags|=1024),l=!1)}return f=l,Al(t,e),l=(e.flags&128)!==0,f||l?(f=e.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:f.render(),e.flags|=1,t!==null&&l?(e.child=na(e,t.child,null,o),e.child=na(e,null,a,o)):he(t,e,a,o),e.memoizedState=f.state,t=e.child):t=Qn(t,e,o),t}function Ep(t,e,a,l){return Qi(),e.flags|=256,he(t,e,a,l),e.child}var Oc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Nc(t){return{baseLanes:t,cachePool:o_()}}function Rc(t,e,a){return t=t!==null?t.childLanes&~a:0,e&&(t|=Ke),t}function bp(t,e,a){var l=e.pendingProps,o=!1,f=(e.flags&128)!==0,p;if((p=f)||(p=t!==null&&t.memoizedState===null?!1:(Qt.current&2)!==0),p&&(o=!0,e.flags&=-129),p=(e.flags&32)!==0,e.flags&=-33,t===null){if(Rt){if(o?Ti(e):Si(),(t=Pt)?(t=Cg(t,rn),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:pi!==null?{id:xn,overflow:Cn}:null,retryLane:536870912,hydrationErrors:null},a=t_(t),a.return=e,e.child=a,ce=e,Pt=null)):t=null,t===null)throw mi(e);return cf(t)?e.lanes=32:e.lanes=536870912,null}var y=l.children;return l=l.fallback,o?(Si(),o=e.mode,y=Ol({mode:"hidden",children:y},o),l=Fi(l,o,a,null),y.return=e,l.return=e,y.sibling=l,e.child=y,l=e.child,l.memoizedState=Nc(a),l.childLanes=Rc(t,p,a),e.memoizedState=Oc,qs(null,l)):(Ti(e),xc(e,y))}var O=t.memoizedState;if(O!==null&&(y=O.dehydrated,y!==null)){if(f)e.flags&256?(Ti(e),e.flags&=-257,e=Cc(t,e,a)):e.memoizedState!==null?(Si(),e.child=t.child,e.flags|=128,e=null):(Si(),y=l.fallback,o=e.mode,l=Ol({mode:"visible",children:l.children},o),y=Fi(y,o,a,null),y.flags|=2,l.return=e,y.return=e,l.sibling=y,e.child=l,na(e,t.child,null,a),l=e.child,l.memoizedState=Nc(a),l.childLanes=Rc(t,p,a),e.memoizedState=Oc,e=qs(null,l));else if(Ti(e),cf(y)){if(p=y.nextSibling&&y.nextSibling.dataset,p)var z=p.dgst;p=z,l=Error(r(419)),l.stack="",l.digest=p,Ls({value:l,source:null,stack:null}),e=Cc(t,e,a)}else if(ee||Da(t,e,a,!1),p=(a&t.childLanes)!==0,ee||p){if(p=Bt,p!==null&&(l=ld(p,a),l!==0&&l!==O.retryLane))throw O.retryLane=l,Xi(t,l),Le(p,t,l),Sc;of(y)||Il(),e=Cc(t,e,a)}else of(y)?(e.flags|=192,e.child=t.child,e=null):(t=O.treeContext,Pt=un(y.nextSibling),ce=e,Rt=!0,gi=null,rn=!1,t!==null&&i_(e,t),e=xc(e,l.children),e.flags|=4096);return e}return o?(Si(),y=l.fallback,o=e.mode,O=t.child,z=O.sibling,l=$n(O,{mode:"hidden",children:l.children}),l.subtreeFlags=O.subtreeFlags&65011712,z!==null?y=$n(z,y):(y=Fi(y,o,a,null),y.flags|=2),y.return=e,l.return=e,l.sibling=y,e.child=l,qs(null,l),l=e.child,y=t.child.memoizedState,y===null?y=Nc(a):(o=y.cachePool,o!==null?(O=Jt._currentValue,o=o.parent!==O?{parent:O,pool:O}:o):o=o_(),y={baseLanes:y.baseLanes|a,cachePool:o}),l.memoizedState=y,l.childLanes=Rc(t,p,a),e.memoizedState=Oc,qs(t.child,l)):(Ti(e),a=t.child,t=a.sibling,a=$n(a,{mode:"visible",children:l.children}),a.return=e,a.sibling=null,t!==null&&(p=e.deletions,p===null?(e.deletions=[t],e.flags|=16):p.push(t)),e.child=a,e.memoizedState=null,a)}function xc(t,e){return e=Ol({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function Ol(t,e){return t=Ge(22,t,null,e),t.lanes=0,t}function Cc(t,e,a){return na(e,t.child,null,a),t=xc(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function Tp(t,e,a){t.lanes|=e;var l=t.alternate;l!==null&&(l.lanes|=e),$o(t.return,e,a)}function Lc(t,e,a,l,o,f){var p=t.memoizedState;p===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:o,treeForkCount:f}:(p.isBackwards=e,p.rendering=null,p.renderingStartTime=0,p.last=l,p.tail=a,p.tailMode=o,p.treeForkCount=f)}function Sp(t,e,a){var l=e.pendingProps,o=l.revealOrder,f=l.tail;l=l.children;var p=Qt.current,y=(p&2)!==0;if(y?(p=p&1|2,e.flags|=128):p&=1,Z(Qt,p),he(t,e,l,a),l=Rt?Cs:0,!y&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Tp(t,a,e);else if(t.tag===19)Tp(t,a,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(o){case"forwards":for(a=e.child,o=null;a!==null;)t=a.alternate,t!==null&&dl(t)===null&&(o=a),a=a.sibling;a=o,a===null?(o=e.child,e.child=null):(o=a.sibling,a.sibling=null),Lc(e,!1,o,a,f,l);break;case"backwards":case"unstable_legacy-backwards":for(a=null,o=e.child,e.child=null;o!==null;){if(t=o.alternate,t!==null&&dl(t)===null){e.child=o;break}t=o.sibling,o.sibling=a,a=o,o=t}Lc(e,!0,a,null,f,l);break;case"together":Lc(e,!1,null,null,void 0,l);break;default:e.memoizedState=null}return e.child}function Qn(t,e,a){if(t!==null&&(e.dependencies=t.dependencies),Ni|=e.lanes,(a&e.childLanes)===0)if(t!==null){if(Da(t,e,a,!1),(a&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(r(153));if(e.child!==null){for(t=e.child,a=$n(t,t.pendingProps),e.child=a,a.return=e;t.sibling!==null;)t=t.sibling,a=a.sibling=$n(t,t.pendingProps),a.return=e;a.sibling=null}return e.child}function wc(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&sl(t)))}function Tb(t,e,a){switch(e.tag){case 3:Kt(e,e.stateNode.containerInfo),yi(e,Jt,t.memoizedState.cache),Qi();break;case 27:case 5:ye(e);break;case 4:Kt(e,e.stateNode.containerInfo);break;case 10:yi(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,nc(e),null;break;case 13:var l=e.memoizedState;if(l!==null)return l.dehydrated!==null?(Ti(e),e.flags|=128,null):(a&e.child.childLanes)!==0?bp(t,e,a):(Ti(e),t=Qn(t,e,a),t!==null?t.sibling:null);Ti(e);break;case 19:var o=(t.flags&128)!==0;if(l=(a&e.childLanes)!==0,l||(Da(t,e,a,!1),l=(a&e.childLanes)!==0),o){if(l)return Sp(t,e,a);e.flags|=128}if(o=e.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Z(Qt,Qt.current),l)break;return null;case 22:return e.lanes=0,pp(t,e,a,e.pendingProps);case 24:yi(e,Jt,t.memoizedState.cache)}return Qn(t,e,a)}function Ap(t,e,a){if(t!==null)if(t.memoizedProps!==e.pendingProps)ee=!0;else{if(!wc(t,a)&&(e.flags&128)===0)return ee=!1,Tb(t,e,a);ee=(t.flags&131072)!==0}else ee=!1,Rt&&(e.flags&1048576)!==0&&n_(e,Cs,e.index);switch(e.lanes=0,e.tag){case 16:t:{var l=e.pendingProps;if(t=ta(e.elementType),e.type=t,typeof t=="function")zo(t)?(l=aa(t,l),e.tag=1,e=vp(null,e,t,l,a)):(e.tag=0,e=Ac(null,e,t,l,a));else{if(t!=null){var o=t.$$typeof;if(o===I){e.tag=11,e=hp(null,e,t,l,a);break t}else if(o===L){e.tag=14,e=dp(null,e,t,l,a);break t}}throw e=at(t)||t,Error(r(306,e,""))}}return e;case 0:return Ac(t,e,e.type,e.pendingProps,a);case 1:return l=e.type,o=aa(l,e.pendingProps),vp(t,e,l,o,a);case 3:t:{if(Kt(e,e.stateNode.containerInfo),t===null)throw Error(r(387));l=e.pendingProps;var f=e.memoizedState;o=f.element,Zo(t,e),Bs(e,l,null,a);var p=e.memoizedState;if(l=p.cache,yi(e,Jt,l),l!==f.cache&&Ko(e,[Jt],a,!0),zs(),l=p.element,f.isDehydrated)if(f={element:l,isDehydrated:!1,cache:p.cache},e.updateQueue.baseState=f,e.memoizedState=f,e.flags&256){e=Ep(t,e,l,a);break t}else if(l!==o){o=nn(Error(r(424)),e),Ls(o),e=Ep(t,e,l,a);break t}else for(t=e.stateNode.containerInfo,t.nodeType===9?t=t.body:t=t.nodeName==="HTML"?t.ownerDocument.body:t,Pt=un(t.firstChild),ce=e,Rt=!0,gi=null,rn=!0,a=p_(e,null,l,a),e.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(Qi(),l===o){e=Qn(t,e,a);break t}he(t,e,l,a)}e=e.child}return e;case 26:return Al(t,e),t===null?(a=kg(e.type,null,e.pendingProps,null))?e.memoizedState=a:Rt||(a=e.type,t=e.pendingProps,l=Gl(ut.current).createElement(a),l[oe]=e,l[Ae]=t,de(l,a,t),le(l),e.stateNode=l):e.memoizedState=kg(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return ye(e),t===null&&Rt&&(l=e.stateNode=Mg(e.type,e.pendingProps,ut.current),ce=e,rn=!0,o=Pt,wi(e.type)?(ff=o,Pt=un(l.firstChild)):Pt=o),he(t,e,e.pendingProps.children,a),Al(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&Rt&&((o=l=Pt)&&(l=Wb(l,e.type,e.pendingProps,rn),l!==null?(e.stateNode=l,ce=e,Pt=un(l.firstChild),rn=!1,o=!0):o=!1),o||mi(e)),ye(e),o=e.type,f=e.pendingProps,p=t!==null?t.memoizedProps:null,l=f.children,rf(o,f)?l=null:p!==null&&rf(o,p)&&(e.flags|=32),e.memoizedState!==null&&(o=ac(t,e,db,null,null,a),ir._currentValue=o),Al(t,e),he(t,e,l,a),e.child;case 6:return t===null&&Rt&&((t=a=Pt)&&(a=Jb(a,e.pendingProps,rn),a!==null?(e.stateNode=a,ce=e,Pt=null,t=!0):t=!1),t||mi(e)),null;case 13:return bp(t,e,a);case 4:return Kt(e,e.stateNode.containerInfo),l=e.pendingProps,t===null?e.child=na(e,null,l,a):he(t,e,l,a),e.child;case 11:return hp(t,e,e.type,e.pendingProps,a);case 7:return he(t,e,e.pendingProps,a),e.child;case 8:return he(t,e,e.pendingProps.children,a),e.child;case 12:return he(t,e,e.pendingProps.children,a),e.child;case 10:return l=e.pendingProps,yi(e,e.type,l.value),he(t,e,l.children,a),e.child;case 9:return o=e.type._context,l=e.pendingProps.children,Wi(e),o=fe(o),l=l(o),e.flags|=1,he(t,e,l,a),e.child;case 14:return dp(t,e,e.type,e.pendingProps,a);case 15:return _p(t,e,e.type,e.pendingProps,a);case 19:return Sp(t,e,a);case 31:return bb(t,e,a);case 22:return pp(t,e,a,e.pendingProps);case 24:return Wi(e),l=fe(Jt),t===null?(o=Xo(),o===null&&(o=Bt,f=Vo(),o.pooledCache=f,f.refCount++,f!==null&&(o.pooledCacheLanes|=a),o=f),e.memoizedState={parent:l,cache:o},Qo(e),yi(e,Jt,o)):((t.lanes&a)!==0&&(Zo(t,e),Bs(e,null,null,a),zs()),o=t.memoizedState,f=e.memoizedState,o.parent!==l?(o={parent:l,cache:l},e.memoizedState=o,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=o),yi(e,Jt,l)):(l=f.cache,yi(e,Jt,l),l!==o.cache&&Ko(e,[Jt],a,!0))),he(t,e,e.pendingProps.children,a),e.child;case 29:throw e.pendingProps}throw Error(r(156,e.tag))}function Zn(t){t.flags|=4}function Mc(t,e,a,l,o){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(o&335544128)===o)if(t.stateNode.complete)t.flags|=8192;else if(Zp())t.flags|=8192;else throw ea=ol,Fo}else t.flags&=-16777217}function Op(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Pg(e))if(Zp())t.flags|=8192;else throw ea=ol,Fo}function Nl(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?ad():536870912,t.lanes|=e,Qa|=e)}function Hs(t,e){if(!Rt)switch(t.tailMode){case"hidden":e=t.tail;for(var a=null;e!==null;)e.alternate!==null&&(a=e),e=e.sibling;a===null?t.tail=null:a.sibling=null;break;case"collapsed":a=t.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:l.sibling=null}}function Gt(t){var e=t.alternate!==null&&t.alternate.child===t.child,a=0,l=0;if(e)for(var o=t.child;o!==null;)a|=o.lanes|o.childLanes,l|=o.subtreeFlags&65011712,l|=o.flags&65011712,o.return=t,o=o.sibling;else for(o=t.child;o!==null;)a|=o.lanes|o.childLanes,l|=o.subtreeFlags,l|=o.flags,o.return=t,o=o.sibling;return t.subtreeFlags|=l,t.childLanes=a,e}function Sb(t,e,a){var l=e.pendingProps;switch(Po(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Gt(e),null;case 1:return Gt(e),null;case 3:return a=e.stateNode,l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),Yn(Jt),Nt(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(t===null||t.child===null)&&(Ba(e)?Zn(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,qo())),Gt(e),null;case 26:var o=e.type,f=e.memoizedState;return t===null?(Zn(e),f!==null?(Gt(e),Op(e,f)):(Gt(e),Mc(e,o,null,l,a))):f?f!==t.memoizedState?(Zn(e),Gt(e),Op(e,f)):(Gt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==l&&Zn(e),Gt(e),Mc(e,o,t,l,a)),null;case 27:if(ke(e),a=ut.current,o=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&Zn(e);else{if(!l){if(e.stateNode===null)throw Error(r(166));return Gt(e),null}t=W.current,Ba(e)?a_(e):(t=Mg(o,l,a),e.stateNode=t,Zn(e))}return Gt(e),null;case 5:if(ke(e),o=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&Zn(e);else{if(!l){if(e.stateNode===null)throw Error(r(166));return Gt(e),null}if(f=W.current,Ba(e))a_(e);else{var p=Gl(ut.current);switch(f){case 1:f=p.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:f=p.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":f=p.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":f=p.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":f=p.createElement("div"),f.innerHTML="<script><\/script>",f=f.removeChild(f.firstChild);break;case"select":f=typeof l.is=="string"?p.createElement("select",{is:l.is}):p.createElement("select"),l.multiple?f.multiple=!0:l.size&&(f.size=l.size);break;default:f=typeof l.is=="string"?p.createElement(o,{is:l.is}):p.createElement(o)}}f[oe]=e,f[Ae]=l;t:for(p=e.child;p!==null;){if(p.tag===5||p.tag===6)f.appendChild(p.stateNode);else if(p.tag!==4&&p.tag!==27&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===e)break t;for(;p.sibling===null;){if(p.return===null||p.return===e)break t;p=p.return}p.sibling.return=p.return,p=p.sibling}e.stateNode=f;t:switch(de(f,o,l),o){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break t;case"img":l=!0;break t;default:l=!1}l&&Zn(e)}}return Gt(e),Mc(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,a),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==l&&Zn(e);else{if(typeof l!="string"&&e.stateNode===null)throw Error(r(166));if(t=ut.current,Ba(e)){if(t=e.stateNode,a=e.memoizedProps,l=null,o=ce,o!==null)switch(o.tag){case 27:case 5:l=o.memoizedProps}t[oe]=e,t=!!(t.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||bg(t.nodeValue,a)),t||mi(e,!0)}else t=Gl(t).createTextNode(l),t[oe]=e,e.stateNode=t}return Gt(e),null;case 31:if(a=e.memoizedState,t===null||t.memoizedState!==null){if(l=Ba(e),a!==null){if(t===null){if(!l)throw Error(r(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(557));t[oe]=e}else Qi(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Gt(e),t=!1}else a=qo(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=a),t=!0;if(!t)return e.flags&256?(He(e),e):(He(e),null);if((e.flags&128)!==0)throw Error(r(558))}return Gt(e),null;case 13:if(l=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(o=Ba(e),l!==null&&l.dehydrated!==null){if(t===null){if(!o)throw Error(r(318));if(o=e.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));o[oe]=e}else Qi(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Gt(e),o=!1}else o=qo(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=o),o=!0;if(!o)return e.flags&256?(He(e),e):(He(e),null)}return He(e),(e.flags&128)!==0?(e.lanes=a,e):(a=l!==null,t=t!==null&&t.memoizedState!==null,a&&(l=e.child,o=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(o=l.alternate.memoizedState.cachePool.pool),f=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(f=l.memoizedState.cachePool.pool),f!==o&&(l.flags|=2048)),a!==t&&a&&(e.child.flags|=8192),Nl(e,e.updateQueue),Gt(e),null);case 4:return Nt(),t===null&&tf(e.stateNode.containerInfo),Gt(e),null;case 10:return Yn(e.type),Gt(e),null;case 19:if($(Qt),l=e.memoizedState,l===null)return Gt(e),null;if(o=(e.flags&128)!==0,f=l.rendering,f===null)if(o)Hs(l,!1);else{if(Yt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(f=dl(t),f!==null){for(e.flags|=128,Hs(l,!1),t=f.updateQueue,e.updateQueue=t,Nl(e,t),e.subtreeFlags=0,t=a,a=e.child;a!==null;)Jd(a,t),a=a.sibling;return Z(Qt,Qt.current&1|2),Rt&&Kn(e,l.treeForkCount),e.child}t=t.sibling}l.tail!==null&&Be()>wl&&(e.flags|=128,o=!0,Hs(l,!1),e.lanes=4194304)}else{if(!o)if(t=dl(f),t!==null){if(e.flags|=128,o=!0,t=t.updateQueue,e.updateQueue=t,Nl(e,t),Hs(l,!0),l.tail===null&&l.tailMode==="hidden"&&!f.alternate&&!Rt)return Gt(e),null}else 2*Be()-l.renderingStartTime>wl&&a!==536870912&&(e.flags|=128,o=!0,Hs(l,!1),e.lanes=4194304);l.isBackwards?(f.sibling=e.child,e.child=f):(t=l.last,t!==null?t.sibling=f:e.child=f,l.last=f)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=Be(),t.sibling=null,a=Qt.current,Z(Qt,o?a&1|2:a&1),Rt&&Kn(e,l.treeForkCount),t):(Gt(e),null);case 22:case 23:return He(e),ec(),l=e.memoizedState!==null,t!==null?t.memoizedState!==null!==l&&(e.flags|=8192):l&&(e.flags|=8192),l?(a&536870912)!==0&&(e.flags&128)===0&&(Gt(e),e.subtreeFlags&6&&(e.flags|=8192)):Gt(e),a=e.updateQueue,a!==null&&Nl(e,a.retryQueue),a=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),l=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),l!==a&&(e.flags|=2048),t!==null&&$(Ji),null;case 24:return a=null,t!==null&&(a=t.memoizedState.cache),e.memoizedState.cache!==a&&(e.flags|=2048),Yn(Jt),Gt(e),null;case 25:return null;case 30:return null}throw Error(r(156,e.tag))}function Ab(t,e){switch(Po(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Yn(Jt),Nt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return ke(e),null;case 31:if(e.memoizedState!==null){if(He(e),e.alternate===null)throw Error(r(340));Qi()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(He(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(r(340));Qi()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return $(Qt),null;case 4:return Nt(),null;case 10:return Yn(e.type),null;case 22:case 23:return He(e),ec(),t!==null&&$(Ji),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return Yn(Jt),null;case 25:return null;default:return null}}function Np(t,e){switch(Po(e),e.tag){case 3:Yn(Jt),Nt();break;case 26:case 27:case 5:ke(e);break;case 4:Nt();break;case 31:e.memoizedState!==null&&He(e);break;case 13:He(e);break;case 19:$(Qt);break;case 10:Yn(e.type);break;case 22:case 23:He(e),ec(),t!==null&&$(Ji);break;case 24:Yn(Jt)}}function $s(t,e){try{var a=e.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var o=l.next;a=o;do{if((a.tag&t)===t){l=void 0;var f=a.create,p=a.inst;l=f(),p.destroy=l}a=a.next}while(a!==o)}}catch(y){Ut(e,e.return,y)}}function Ai(t,e,a){try{var l=e.updateQueue,o=l!==null?l.lastEffect:null;if(o!==null){var f=o.next;l=f;do{if((l.tag&t)===t){var p=l.inst,y=p.destroy;if(y!==void 0){p.destroy=void 0,o=e;var O=a,z=y;try{z()}catch(q){Ut(o,O,q)}}}l=l.next}while(l!==f)}}catch(q){Ut(e,e.return,q)}}function Rp(t){var e=t.updateQueue;if(e!==null){var a=t.stateNode;try{m_(e,a)}catch(l){Ut(t,t.return,l)}}}function xp(t,e,a){a.props=aa(t.type,t.memoizedProps),a.state=t.memoizedState;try{a.componentWillUnmount()}catch(l){Ut(t,e,l)}}function Ks(t,e){try{var a=t.ref;if(a!==null){switch(t.tag){case 26:case 27:case 5:var l=t.stateNode;break;case 30:l=t.stateNode;break;default:l=t.stateNode}typeof a=="function"?t.refCleanup=a(l):a.current=l}}catch(o){Ut(t,e,o)}}function Ln(t,e){var a=t.ref,l=t.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(o){Ut(t,e,o)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(o){Ut(t,e,o)}else a.current=null}function Cp(t){var e=t.type,a=t.memoizedProps,l=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break t;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(o){Ut(t,t.return,o)}}function Uc(t,e,a){try{var l=t.stateNode;Vb(l,t.type,a,e),l[Ae]=e}catch(o){Ut(t,t.return,o)}}function Lp(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&wi(t.type)||t.tag===4}function Ic(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Lp(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&wi(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function kc(t,e,a){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(t,e):(e=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,e.appendChild(t),a=a._reactRootContainer,a!=null||e.onclick!==null||(e.onclick=qn));else if(l!==4&&(l===27&&wi(t.type)&&(a=t.stateNode,e=null),t=t.child,t!==null))for(kc(t,e,a),t=t.sibling;t!==null;)kc(t,e,a),t=t.sibling}function Rl(t,e,a){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?a.insertBefore(t,e):a.appendChild(t);else if(l!==4&&(l===27&&wi(t.type)&&(a=t.stateNode),t=t.child,t!==null))for(Rl(t,e,a),t=t.sibling;t!==null;)Rl(t,e,a),t=t.sibling}function wp(t){var e=t.stateNode,a=t.memoizedProps;try{for(var l=t.type,o=e.attributes;o.length;)e.removeAttributeNode(o[0]);de(e,l,a),e[oe]=t,e[Ae]=a}catch(f){Ut(t,t.return,f)}}var Wn=!1,ne=!1,zc=!1,Mp=typeof WeakSet=="function"?WeakSet:Set,ue=null;function Ob(t,e){if(t=t.containerInfo,af=Xl,t=$d(t),Co(t)){if("selectionStart"in t)var a={start:t.selectionStart,end:t.selectionEnd};else t:{a=(a=t.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var o=l.anchorOffset,f=l.focusNode;l=l.focusOffset;try{a.nodeType,f.nodeType}catch{a=null;break t}var p=0,y=-1,O=-1,z=0,q=0,V=t,B=null;e:for(;;){for(var D;V!==a||o!==0&&V.nodeType!==3||(y=p+o),V!==f||l!==0&&V.nodeType!==3||(O=p+l),V.nodeType===3&&(p+=V.nodeValue.length),(D=V.firstChild)!==null;)B=V,V=D;for(;;){if(V===t)break e;if(B===a&&++z===o&&(y=p),B===f&&++q===l&&(O=p),(D=V.nextSibling)!==null)break;V=B,B=V.parentNode}V=D}a=y===-1||O===-1?null:{start:y,end:O}}else a=null}a=a||{start:0,end:0}}else a=null;for(sf={focusedElem:t,selectionRange:a},Xl=!1,ue=e;ue!==null;)if(e=ue,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,ue=t;else for(;ue!==null;){switch(e=ue,f=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(a=0;a<t.length;a++)o=t[a],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&f!==null){t=void 0,a=e,o=f.memoizedProps,f=f.memoizedState,l=a.stateNode;try{var tt=aa(a.type,o);t=l.getSnapshotBeforeUpdate(tt,f),l.__reactInternalSnapshotBeforeUpdate=t}catch(ot){Ut(a,a.return,ot)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,a=t.nodeType,a===9)uf(t);else if(a===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":uf(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(r(163))}if(t=e.sibling,t!==null){t.return=e.return,ue=t;break}ue=e.return}}function Up(t,e,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:ti(t,a),l&4&&$s(5,a);break;case 1:if(ti(t,a),l&4)if(t=a.stateNode,e===null)try{t.componentDidMount()}catch(p){Ut(a,a.return,p)}else{var o=aa(a.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(o,e,t.__reactInternalSnapshotBeforeUpdate)}catch(p){Ut(a,a.return,p)}}l&64&&Rp(a),l&512&&Ks(a,a.return);break;case 3:if(ti(t,a),l&64&&(t=a.updateQueue,t!==null)){if(e=null,a.child!==null)switch(a.child.tag){case 27:case 5:e=a.child.stateNode;break;case 1:e=a.child.stateNode}try{m_(t,e)}catch(p){Ut(a,a.return,p)}}break;case 27:e===null&&l&4&&wp(a);case 26:case 5:ti(t,a),e===null&&l&4&&Cp(a),l&512&&Ks(a,a.return);break;case 12:ti(t,a);break;case 31:ti(t,a),l&4&&zp(t,a);break;case 13:ti(t,a),l&4&&Bp(t,a),l&64&&(t=a.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(a=Ib.bind(null,a),tT(t,a))));break;case 22:if(l=a.memoizedState!==null||Wn,!l){e=e!==null&&e.memoizedState!==null||ne,o=Wn;var f=ne;Wn=l,(ne=e)&&!f?ei(t,a,(a.subtreeFlags&8772)!==0):ti(t,a),Wn=o,ne=f}break;case 30:break;default:ti(t,a)}}function Ip(t){var e=t.alternate;e!==null&&(t.alternate=null,Ip(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&fo(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var Ht=null,Ne=!1;function Jn(t,e,a){for(a=a.child;a!==null;)kp(t,e,a),a=a.sibling}function kp(t,e,a){if(De&&typeof De.onCommitFiberUnmount=="function")try{De.onCommitFiberUnmount(ps,a)}catch{}switch(a.tag){case 26:ne||Ln(a,e),Jn(t,e,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:ne||Ln(a,e);var l=Ht,o=Ne;wi(a.type)&&(Ht=a.stateNode,Ne=!1),Jn(t,e,a),tr(a.stateNode),Ht=l,Ne=o;break;case 5:ne||Ln(a,e);case 6:if(l=Ht,o=Ne,Ht=null,Jn(t,e,a),Ht=l,Ne=o,Ht!==null)if(Ne)try{(Ht.nodeType===9?Ht.body:Ht.nodeName==="HTML"?Ht.ownerDocument.body:Ht).removeChild(a.stateNode)}catch(f){Ut(a,e,f)}else try{Ht.removeChild(a.stateNode)}catch(f){Ut(a,e,f)}break;case 18:Ht!==null&&(Ne?(t=Ht,Rg(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,a.stateNode),as(t)):Rg(Ht,a.stateNode));break;case 4:l=Ht,o=Ne,Ht=a.stateNode.containerInfo,Ne=!0,Jn(t,e,a),Ht=l,Ne=o;break;case 0:case 11:case 14:case 15:Ai(2,a,e),ne||Ai(4,a,e),Jn(t,e,a);break;case 1:ne||(Ln(a,e),l=a.stateNode,typeof l.componentWillUnmount=="function"&&xp(a,e,l)),Jn(t,e,a);break;case 21:Jn(t,e,a);break;case 22:ne=(l=ne)||a.memoizedState!==null,Jn(t,e,a),ne=l;break;default:Jn(t,e,a)}}function zp(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{as(t)}catch(a){Ut(e,e.return,a)}}}function Bp(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{as(t)}catch(a){Ut(e,e.return,a)}}function Nb(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new Mp),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new Mp),e;default:throw Error(r(435,t.tag))}}function xl(t,e){var a=Nb(t);e.forEach(function(l){if(!a.has(l)){a.add(l);var o=kb.bind(null,t,l);l.then(o,o)}})}function Re(t,e){var a=e.deletions;if(a!==null)for(var l=0;l<a.length;l++){var o=a[l],f=t,p=e,y=p;t:for(;y!==null;){switch(y.tag){case 27:if(wi(y.type)){Ht=y.stateNode,Ne=!1;break t}break;case 5:Ht=y.stateNode,Ne=!1;break t;case 3:case 4:Ht=y.stateNode.containerInfo,Ne=!0;break t}y=y.return}if(Ht===null)throw Error(r(160));kp(f,p,o),Ht=null,Ne=!1,f=o.alternate,f!==null&&(f.return=null),o.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)Dp(e,t),e=e.sibling}var yn=null;function Dp(t,e){var a=t.alternate,l=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Re(e,t),xe(t),l&4&&(Ai(3,t,t.return),$s(3,t),Ai(5,t,t.return));break;case 1:Re(e,t),xe(t),l&512&&(ne||a===null||Ln(a,a.return)),l&64&&Wn&&(t=t.updateQueue,t!==null&&(l=t.callbacks,l!==null&&(a=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=a===null?l:a.concat(l))));break;case 26:var o=yn;if(Re(e,t),xe(t),l&512&&(ne||a===null||Ln(a,a.return)),l&4){var f=a!==null?a.memoizedState:null;if(l=t.memoizedState,a===null)if(l===null)if(t.stateNode===null){t:{l=t.type,a=t.memoizedProps,o=o.ownerDocument||o;e:switch(l){case"title":f=o.getElementsByTagName("title")[0],(!f||f[ys]||f[oe]||f.namespaceURI==="http://www.w3.org/2000/svg"||f.hasAttribute("itemprop"))&&(f=o.createElement(l),o.head.insertBefore(f,o.querySelector("head > title"))),de(f,l,a),f[oe]=t,le(f),l=f;break t;case"link":var p=Dg("link","href",o).get(l+(a.href||""));if(p){for(var y=0;y<p.length;y++)if(f=p[y],f.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&f.getAttribute("rel")===(a.rel==null?null:a.rel)&&f.getAttribute("title")===(a.title==null?null:a.title)&&f.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){p.splice(y,1);break e}}f=o.createElement(l),de(f,l,a),o.head.appendChild(f);break;case"meta":if(p=Dg("meta","content",o).get(l+(a.content||""))){for(y=0;y<p.length;y++)if(f=p[y],f.getAttribute("content")===(a.content==null?null:""+a.content)&&f.getAttribute("name")===(a.name==null?null:a.name)&&f.getAttribute("property")===(a.property==null?null:a.property)&&f.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&f.getAttribute("charset")===(a.charSet==null?null:a.charSet)){p.splice(y,1);break e}}f=o.createElement(l),de(f,l,a),o.head.appendChild(f);break;default:throw Error(r(468,l))}f[oe]=t,le(f),l=f}t.stateNode=l}else jg(o,t.type,t.stateNode);else t.stateNode=Bg(o,l,t.memoizedProps);else f!==l?(f===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):f.count--,l===null?jg(o,t.type,t.stateNode):Bg(o,l,t.memoizedProps)):l===null&&t.stateNode!==null&&Uc(t,t.memoizedProps,a.memoizedProps)}break;case 27:Re(e,t),xe(t),l&512&&(ne||a===null||Ln(a,a.return)),a!==null&&l&4&&Uc(t,t.memoizedProps,a.memoizedProps);break;case 5:if(Re(e,t),xe(t),l&512&&(ne||a===null||Ln(a,a.return)),t.flags&32){o=t.stateNode;try{Ra(o,"")}catch(tt){Ut(t,t.return,tt)}}l&4&&t.stateNode!=null&&(o=t.memoizedProps,Uc(t,o,a!==null?a.memoizedProps:o)),l&1024&&(zc=!0);break;case 6:if(Re(e,t),xe(t),l&4){if(t.stateNode===null)throw Error(r(162));l=t.memoizedProps,a=t.stateNode;try{a.nodeValue=l}catch(tt){Ut(t,t.return,tt)}}break;case 3:if($l=null,o=yn,yn=ql(e.containerInfo),Re(e,t),yn=o,xe(t),l&4&&a!==null&&a.memoizedState.isDehydrated)try{as(e.containerInfo)}catch(tt){Ut(t,t.return,tt)}zc&&(zc=!1,jp(t));break;case 4:l=yn,yn=ql(t.stateNode.containerInfo),Re(e,t),xe(t),yn=l;break;case 12:Re(e,t),xe(t);break;case 31:Re(e,t),xe(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,xl(t,l)));break;case 13:Re(e,t),xe(t),t.child.flags&8192&&t.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Ll=Be()),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,xl(t,l)));break;case 22:o=t.memoizedState!==null;var O=a!==null&&a.memoizedState!==null,z=Wn,q=ne;if(Wn=z||o,ne=q||O,Re(e,t),ne=q,Wn=z,xe(t),l&8192)t:for(e=t.stateNode,e._visibility=o?e._visibility&-2:e._visibility|1,o&&(a===null||O||Wn||ne||sa(t)),a=null,e=t;;){if(e.tag===5||e.tag===26){if(a===null){O=a=e;try{if(f=O.stateNode,o)p=f.style,typeof p.setProperty=="function"?p.setProperty("display","none","important"):p.display="none";else{y=O.stateNode;var V=O.memoizedProps.style,B=V!=null&&V.hasOwnProperty("display")?V.display:null;y.style.display=B==null||typeof B=="boolean"?"":(""+B).trim()}}catch(tt){Ut(O,O.return,tt)}}}else if(e.tag===6){if(a===null){O=e;try{O.stateNode.nodeValue=o?"":O.memoizedProps}catch(tt){Ut(O,O.return,tt)}}}else if(e.tag===18){if(a===null){O=e;try{var D=O.stateNode;o?xg(D,!0):xg(O.stateNode,!1)}catch(tt){Ut(O,O.return,tt)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;a===e&&(a=null),e=e.return}a===e&&(a=null),e.sibling.return=e.return,e=e.sibling}l&4&&(l=t.updateQueue,l!==null&&(a=l.retryQueue,a!==null&&(l.retryQueue=null,xl(t,a))));break;case 19:Re(e,t),xe(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,xl(t,l)));break;case 30:break;case 21:break;default:Re(e,t),xe(t)}}function xe(t){var e=t.flags;if(e&2){try{for(var a,l=t.return;l!==null;){if(Lp(l)){a=l;break}l=l.return}if(a==null)throw Error(r(160));switch(a.tag){case 27:var o=a.stateNode,f=Ic(t);Rl(t,f,o);break;case 5:var p=a.stateNode;a.flags&32&&(Ra(p,""),a.flags&=-33);var y=Ic(t);Rl(t,y,p);break;case 3:case 4:var O=a.stateNode.containerInfo,z=Ic(t);kc(t,z,O);break;default:throw Error(r(161))}}catch(q){Ut(t,t.return,q)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function jp(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;jp(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function ti(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)Up(t,e.alternate,e),e=e.sibling}function sa(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:Ai(4,e,e.return),sa(e);break;case 1:Ln(e,e.return);var a=e.stateNode;typeof a.componentWillUnmount=="function"&&xp(e,e.return,a),sa(e);break;case 27:tr(e.stateNode);case 26:case 5:Ln(e,e.return),sa(e);break;case 22:e.memoizedState===null&&sa(e);break;case 30:sa(e);break;default:sa(e)}t=t.sibling}}function ei(t,e,a){for(a=a&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var l=e.alternate,o=t,f=e,p=f.flags;switch(f.tag){case 0:case 11:case 15:ei(o,f,a),$s(4,f);break;case 1:if(ei(o,f,a),l=f,o=l.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(z){Ut(l,l.return,z)}if(l=f,o=l.updateQueue,o!==null){var y=l.stateNode;try{var O=o.shared.hiddenCallbacks;if(O!==null)for(o.shared.hiddenCallbacks=null,o=0;o<O.length;o++)g_(O[o],y)}catch(z){Ut(l,l.return,z)}}a&&p&64&&Rp(f),Ks(f,f.return);break;case 27:wp(f);case 26:case 5:ei(o,f,a),a&&l===null&&p&4&&Cp(f),Ks(f,f.return);break;case 12:ei(o,f,a);break;case 31:ei(o,f,a),a&&p&4&&zp(o,f);break;case 13:ei(o,f,a),a&&p&4&&Bp(o,f);break;case 22:f.memoizedState===null&&ei(o,f,a),Ks(f,f.return);break;case 30:break;default:ei(o,f,a)}e=e.sibling}}function Bc(t,e){var a=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==a&&(t!=null&&t.refCount++,a!=null&&ws(a))}function Dc(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&ws(t))}function vn(t,e,a,l){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Pp(t,e,a,l),e=e.sibling}function Pp(t,e,a,l){var o=e.flags;switch(e.tag){case 0:case 11:case 15:vn(t,e,a,l),o&2048&&$s(9,e);break;case 1:vn(t,e,a,l);break;case 3:vn(t,e,a,l),o&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&ws(t)));break;case 12:if(o&2048){vn(t,e,a,l),t=e.stateNode;try{var f=e.memoizedProps,p=f.id,y=f.onPostCommit;typeof y=="function"&&y(p,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(O){Ut(e,e.return,O)}}else vn(t,e,a,l);break;case 31:vn(t,e,a,l);break;case 13:vn(t,e,a,l);break;case 23:break;case 22:f=e.stateNode,p=e.alternate,e.memoizedState!==null?f._visibility&2?vn(t,e,a,l):Vs(t,e):f._visibility&2?vn(t,e,a,l):(f._visibility|=2,Ya(t,e,a,l,(e.subtreeFlags&10256)!==0||!1)),o&2048&&Bc(p,e);break;case 24:vn(t,e,a,l),o&2048&&Dc(e.alternate,e);break;default:vn(t,e,a,l)}}function Ya(t,e,a,l,o){for(o=o&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var f=t,p=e,y=a,O=l,z=p.flags;switch(p.tag){case 0:case 11:case 15:Ya(f,p,y,O,o),$s(8,p);break;case 23:break;case 22:var q=p.stateNode;p.memoizedState!==null?q._visibility&2?Ya(f,p,y,O,o):Vs(f,p):(q._visibility|=2,Ya(f,p,y,O,o)),o&&z&2048&&Bc(p.alternate,p);break;case 24:Ya(f,p,y,O,o),o&&z&2048&&Dc(p.alternate,p);break;default:Ya(f,p,y,O,o)}e=e.sibling}}function Vs(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var a=t,l=e,o=l.flags;switch(l.tag){case 22:Vs(a,l),o&2048&&Bc(l.alternate,l);break;case 24:Vs(a,l),o&2048&&Dc(l.alternate,l);break;default:Vs(a,l)}e=e.sibling}}var Ys=8192;function Xa(t,e,a){if(t.subtreeFlags&Ys)for(t=t.child;t!==null;)Gp(t,e,a),t=t.sibling}function Gp(t,e,a){switch(t.tag){case 26:Xa(t,e,a),t.flags&Ys&&t.memoizedState!==null&&hT(a,yn,t.memoizedState,t.memoizedProps);break;case 5:Xa(t,e,a);break;case 3:case 4:var l=yn;yn=ql(t.stateNode.containerInfo),Xa(t,e,a),yn=l;break;case 22:t.memoizedState===null&&(l=t.alternate,l!==null&&l.memoizedState!==null?(l=Ys,Ys=16777216,Xa(t,e,a),Ys=l):Xa(t,e,a));break;default:Xa(t,e,a)}}function qp(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function Xs(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var a=0;a<e.length;a++){var l=e[a];ue=l,$p(l,t)}qp(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Hp(t),t=t.sibling}function Hp(t){switch(t.tag){case 0:case 11:case 15:Xs(t),t.flags&2048&&Ai(9,t,t.return);break;case 3:Xs(t);break;case 12:Xs(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,Cl(t)):Xs(t);break;default:Xs(t)}}function Cl(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var a=0;a<e.length;a++){var l=e[a];ue=l,$p(l,t)}qp(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Ai(8,e,e.return),Cl(e);break;case 22:a=e.stateNode,a._visibility&2&&(a._visibility&=-3,Cl(e));break;default:Cl(e)}t=t.sibling}}function $p(t,e){for(;ue!==null;){var a=ue;switch(a.tag){case 0:case 11:case 15:Ai(8,a,e);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var l=a.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:ws(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,ue=l;else t:for(a=t;ue!==null;){l=ue;var o=l.sibling,f=l.return;if(Ip(l),l===a){ue=null;break t}if(o!==null){o.return=f,ue=o;break t}ue=f}}}var Rb={getCacheForType:function(t){var e=fe(Jt),a=e.data.get(t);return a===void 0&&(a=t(),e.data.set(t,a)),a},cacheSignal:function(){return fe(Jt).controller.signal}},xb=typeof WeakMap=="function"?WeakMap:Map,wt=0,Bt=null,bt=null,St=0,Mt=0,$e=null,Oi=!1,Fa=!1,jc=!1,ni=0,Yt=0,Ni=0,ra=0,Pc=0,Ke=0,Qa=0,Fs=null,Ce=null,Gc=!1,Ll=0,Kp=0,wl=1/0,Ml=null,Ri=null,ie=0,xi=null,Za=null,ii=0,qc=0,Hc=null,Vp=null,Qs=0,$c=null;function Ve(){return(wt&2)!==0&&St!==0?St&-St:M.T!==null?Qc():ud()}function Yp(){if(Ke===0)if((St&536870912)===0||Rt){var t=Pr;Pr<<=1,(Pr&3932160)===0&&(Pr=262144),Ke=t}else Ke=536870912;return t=qe.current,t!==null&&(t.flags|=32),Ke}function Le(t,e,a){(t===Bt&&(Mt===2||Mt===9)||t.cancelPendingCommit!==null)&&(Wa(t,0),Ci(t,St,Ke,!1)),ms(t,a),((wt&2)===0||t!==Bt)&&(t===Bt&&((wt&2)===0&&(ra|=a),Yt===4&&Ci(t,St,Ke,!1)),wn(t))}function Xp(t,e,a){if((wt&6)!==0)throw Error(r(327));var l=!a&&(e&127)===0&&(e&t.expiredLanes)===0||gs(t,e),o=l?wb(t,e):Vc(t,e,!0),f=l;do{if(o===0){Fa&&!l&&Ci(t,e,0,!1);break}else{if(a=t.current.alternate,f&&!Cb(a)){o=Vc(t,e,!1),f=!1;continue}if(o===2){if(f=e,t.errorRecoveryDisabledLanes&f)var p=0;else p=t.pendingLanes&-536870913,p=p!==0?p:p&536870912?536870912:0;if(p!==0){e=p;t:{var y=t;o=Fs;var O=y.current.memoizedState.isDehydrated;if(O&&(Wa(y,p).flags|=256),p=Vc(y,p,!1),p!==2){if(jc&&!O){y.errorRecoveryDisabledLanes|=f,ra|=f,o=4;break t}f=Ce,Ce=o,f!==null&&(Ce===null?Ce=f:Ce.push.apply(Ce,f))}o=p}if(f=!1,o!==2)continue}}if(o===1){Wa(t,0),Ci(t,e,0,!0);break}t:{switch(l=t,f=o,f){case 0:case 1:throw Error(r(345));case 4:if((e&4194048)!==e)break;case 6:Ci(l,e,Ke,!Oi);break t;case 2:Ce=null;break;case 3:case 5:break;default:throw Error(r(329))}if((e&62914560)===e&&(o=Ll+300-Be(),10<o)){if(Ci(l,e,Ke,!Oi),qr(l,0,!0)!==0)break t;ii=e,l.timeoutHandle=Og(Fp.bind(null,l,a,Ce,Ml,Gc,e,Ke,ra,Qa,Oi,f,"Throttled",-0,0),o);break t}Fp(l,a,Ce,Ml,Gc,e,Ke,ra,Qa,Oi,f,null,-0,0)}}break}while(!0);wn(t)}function Fp(t,e,a,l,o,f,p,y,O,z,q,V,B,D){if(t.timeoutHandle=-1,V=e.subtreeFlags,V&8192||(V&16785408)===16785408){V={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:qn},Gp(e,f,V);var tt=(f&62914560)===f?Ll-Be():(f&4194048)===f?Kp-Be():0;if(tt=dT(V,tt),tt!==null){ii=f,t.cancelPendingCommit=tt(ig.bind(null,t,e,f,a,l,o,p,y,O,q,V,null,B,D)),Ci(t,f,p,!z);return}}ig(t,e,f,a,l,o,p,y,O)}function Cb(t){for(var e=t;;){var a=e.tag;if((a===0||a===11||a===15)&&e.flags&16384&&(a=e.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var l=0;l<a.length;l++){var o=a[l],f=o.getSnapshot;o=o.value;try{if(!Pe(f(),o))return!1}catch{return!1}}if(a=e.child,e.subtreeFlags&16384&&a!==null)a.return=e,e=a;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function Ci(t,e,a,l){e&=~Pc,e&=~ra,t.suspendedLanes|=e,t.pingedLanes&=~e,l&&(t.warmLanes|=e),l=t.expirationTimes;for(var o=e;0<o;){var f=31-je(o),p=1<<f;l[f]=-1,o&=~p}a!==0&&sd(t,a,e)}function Ul(){return(wt&6)===0?(Zs(0),!1):!0}function Kc(){if(bt!==null){if(Mt===0)var t=bt.return;else t=bt,Vn=Zi=null,lc(t),qa=null,Us=0,t=bt;for(;t!==null;)Np(t.alternate,t),t=t.return;bt=null}}function Wa(t,e){var a=t.timeoutHandle;a!==-1&&(t.timeoutHandle=-1,Fb(a)),a=t.cancelPendingCommit,a!==null&&(t.cancelPendingCommit=null,a()),ii=0,Kc(),Bt=t,bt=a=$n(t.current,null),St=e,Mt=0,$e=null,Oi=!1,Fa=gs(t,e),jc=!1,Qa=Ke=Pc=ra=Ni=Yt=0,Ce=Fs=null,Gc=!1,(e&8)!==0&&(e|=e&32);var l=t.entangledLanes;if(l!==0)for(t=t.entanglements,l&=e;0<l;){var o=31-je(l),f=1<<o;e|=t[o],l&=~f}return ni=e,tl(),a}function Qp(t,e){mt=null,M.H=Gs,e===Ga||e===ul?(e=h_(),Mt=3):e===Fo?(e=h_(),Mt=4):Mt=e===Sc?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,$e=e,bt===null&&(Yt=1,Tl(t,nn(e,t.current)))}function Zp(){var t=qe.current;return t===null?!0:(St&4194048)===St?ln===null:(St&62914560)===St||(St&536870912)!==0?t===ln:!1}function Wp(){var t=M.H;return M.H=Gs,t===null?Gs:t}function Jp(){var t=M.A;return M.A=Rb,t}function Il(){Yt=4,Oi||(St&4194048)!==St&&qe.current!==null||(Fa=!0),(Ni&134217727)===0&&(ra&134217727)===0||Bt===null||Ci(Bt,St,Ke,!1)}function Vc(t,e,a){var l=wt;wt|=2;var o=Wp(),f=Jp();(Bt!==t||St!==e)&&(Ml=null,Wa(t,e)),e=!1;var p=Yt;t:do try{if(Mt!==0&&bt!==null){var y=bt,O=$e;switch(Mt){case 8:Kc(),p=6;break t;case 3:case 2:case 9:case 6:qe.current===null&&(e=!0);var z=Mt;if(Mt=0,$e=null,Ja(t,y,O,z),a&&Fa){p=0;break t}break;default:z=Mt,Mt=0,$e=null,Ja(t,y,O,z)}}Lb(),p=Yt;break}catch(q){Qp(t,q)}while(!0);return e&&t.shellSuspendCounter++,Vn=Zi=null,wt=l,M.H=o,M.A=f,bt===null&&(Bt=null,St=0,tl()),p}function Lb(){for(;bt!==null;)tg(bt)}function wb(t,e){var a=wt;wt|=2;var l=Wp(),o=Jp();Bt!==t||St!==e?(Ml=null,wl=Be()+500,Wa(t,e)):Fa=gs(t,e);t:do try{if(Mt!==0&&bt!==null){e=bt;var f=$e;e:switch(Mt){case 1:Mt=0,$e=null,Ja(t,e,f,1);break;case 2:case 9:if(c_(f)){Mt=0,$e=null,eg(e);break}e=function(){Mt!==2&&Mt!==9||Bt!==t||(Mt=7),wn(t)},f.then(e,e);break t;case 3:Mt=7;break t;case 4:Mt=5;break t;case 7:c_(f)?(Mt=0,$e=null,eg(e)):(Mt=0,$e=null,Ja(t,e,f,7));break;case 5:var p=null;switch(bt.tag){case 26:p=bt.memoizedState;case 5:case 27:var y=bt;if(p?Pg(p):y.stateNode.complete){Mt=0,$e=null;var O=y.sibling;if(O!==null)bt=O;else{var z=y.return;z!==null?(bt=z,kl(z)):bt=null}break e}}Mt=0,$e=null,Ja(t,e,f,5);break;case 6:Mt=0,$e=null,Ja(t,e,f,6);break;case 8:Kc(),Yt=6;break t;default:throw Error(r(462))}}Mb();break}catch(q){Qp(t,q)}while(!0);return Vn=Zi=null,M.H=l,M.A=o,wt=a,bt!==null?0:(Bt=null,St=0,tl(),Yt)}function Mb(){for(;bt!==null&&!eE();)tg(bt)}function tg(t){var e=Ap(t.alternate,t,ni);t.memoizedProps=t.pendingProps,e===null?kl(t):bt=e}function eg(t){var e=t,a=e.alternate;switch(e.tag){case 15:case 0:e=yp(a,e,e.pendingProps,e.type,void 0,St);break;case 11:e=yp(a,e,e.pendingProps,e.type.render,e.ref,St);break;case 5:lc(e);default:Np(a,e),e=bt=Jd(e,ni),e=Ap(a,e,ni)}t.memoizedProps=t.pendingProps,e===null?kl(t):bt=e}function Ja(t,e,a,l){Vn=Zi=null,lc(e),qa=null,Us=0;var o=e.return;try{if(Eb(t,o,e,a,St)){Yt=1,Tl(t,nn(a,t.current)),bt=null;return}}catch(f){if(o!==null)throw bt=o,f;Yt=1,Tl(t,nn(a,t.current)),bt=null;return}e.flags&32768?(Rt||l===1?t=!0:Fa||(St&536870912)!==0?t=!1:(Oi=t=!0,(l===2||l===9||l===3||l===6)&&(l=qe.current,l!==null&&l.tag===13&&(l.flags|=16384))),ng(e,t)):kl(e)}function kl(t){var e=t;do{if((e.flags&32768)!==0){ng(e,Oi);return}t=e.return;var a=Sb(e.alternate,e,ni);if(a!==null){bt=a;return}if(e=e.sibling,e!==null){bt=e;return}bt=e=t}while(e!==null);Yt===0&&(Yt=5)}function ng(t,e){do{var a=Ab(t.alternate,t);if(a!==null){a.flags&=32767,bt=a;return}if(a=t.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!e&&(t=t.sibling,t!==null)){bt=t;return}bt=t=a}while(t!==null);Yt=6,bt=null}function ig(t,e,a,l,o,f,p,y,O){t.cancelPendingCommit=null;do zl();while(ie!==0);if((wt&6)!==0)throw Error(r(327));if(e!==null){if(e===t.current)throw Error(r(177));if(f=e.lanes|e.childLanes,f|=Io,fE(t,a,f,p,y,O),t===Bt&&(bt=Bt=null,St=0),Za=e,xi=t,ii=a,qc=f,Hc=o,Vp=l,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,zb(Dr,function(){return ug(),null})):(t.callbackNode=null,t.callbackPriority=0),l=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||l){l=M.T,M.T=null,o=Q.p,Q.p=2,p=wt,wt|=4;try{Ob(t,e,a)}finally{wt=p,Q.p=o,M.T=l}}ie=1,ag(),sg(),rg()}}function ag(){if(ie===1){ie=0;var t=xi,e=Za,a=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||a){a=M.T,M.T=null;var l=Q.p;Q.p=2;var o=wt;wt|=4;try{Dp(e,t);var f=sf,p=$d(t.containerInfo),y=f.focusedElem,O=f.selectionRange;if(p!==y&&y&&y.ownerDocument&&Hd(y.ownerDocument.documentElement,y)){if(O!==null&&Co(y)){var z=O.start,q=O.end;if(q===void 0&&(q=z),"selectionStart"in y)y.selectionStart=z,y.selectionEnd=Math.min(q,y.value.length);else{var V=y.ownerDocument||document,B=V&&V.defaultView||window;if(B.getSelection){var D=B.getSelection(),tt=y.textContent.length,ot=Math.min(O.start,tt),zt=O.end===void 0?ot:Math.min(O.end,tt);!D.extend&&ot>zt&&(p=zt,zt=ot,ot=p);var x=qd(y,ot),R=qd(y,zt);if(x&&R&&(D.rangeCount!==1||D.anchorNode!==x.node||D.anchorOffset!==x.offset||D.focusNode!==R.node||D.focusOffset!==R.offset)){var k=V.createRange();k.setStart(x.node,x.offset),D.removeAllRanges(),ot>zt?(D.addRange(k),D.extend(R.node,R.offset)):(k.setEnd(R.node,R.offset),D.addRange(k))}}}}for(V=[],D=y;D=D.parentNode;)D.nodeType===1&&V.push({element:D,left:D.scrollLeft,top:D.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y<V.length;y++){var K=V[y];K.element.scrollLeft=K.left,K.element.scrollTop=K.top}}Xl=!!af,sf=af=null}finally{wt=o,Q.p=l,M.T=a}}t.current=e,ie=2}}function sg(){if(ie===2){ie=0;var t=xi,e=Za,a=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||a){a=M.T,M.T=null;var l=Q.p;Q.p=2;var o=wt;wt|=4;try{Up(t,e.alternate,e)}finally{wt=o,Q.p=l,M.T=a}}ie=3}}function rg(){if(ie===4||ie===3){ie=0,nE();var t=xi,e=Za,a=ii,l=Vp;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?ie=5:(ie=0,Za=xi=null,lg(t,t.pendingLanes));var o=t.pendingLanes;if(o===0&&(Ri=null),oo(a),e=e.stateNode,De&&typeof De.onCommitFiberRoot=="function")try{De.onCommitFiberRoot(ps,e,void 0,(e.current.flags&128)===128)}catch{}if(l!==null){e=M.T,o=Q.p,Q.p=2,M.T=null;try{for(var f=t.onRecoverableError,p=0;p<l.length;p++){var y=l[p];f(y.value,{componentStack:y.stack})}}finally{M.T=e,Q.p=o}}(ii&3)!==0&&zl(),wn(t),o=t.pendingLanes,(a&261930)!==0&&(o&42)!==0?t===$c?Qs++:(Qs=0,$c=t):Qs=0,Zs(0)}}function lg(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,ws(e)))}function zl(){return ag(),sg(),rg(),ug()}function ug(){if(ie!==5)return!1;var t=xi,e=qc;qc=0;var a=oo(ii),l=M.T,o=Q.p;try{Q.p=32>a?32:a,M.T=null,a=Hc,Hc=null;var f=xi,p=ii;if(ie=0,Za=xi=null,ii=0,(wt&6)!==0)throw Error(r(331));var y=wt;if(wt|=4,Hp(f.current),Pp(f,f.current,p,a),wt=y,Zs(0,!1),De&&typeof De.onPostCommitFiberRoot=="function")try{De.onPostCommitFiberRoot(ps,f)}catch{}return!0}finally{Q.p=o,M.T=l,lg(t,e)}}function og(t,e,a){e=nn(a,e),e=Tc(t.stateNode,e,2),t=bi(t,e,2),t!==null&&(ms(t,2),wn(t))}function Ut(t,e,a){if(t.tag===3)og(t,t,a);else for(;e!==null;){if(e.tag===3){og(e,t,a);break}else if(e.tag===1){var l=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Ri===null||!Ri.has(l))){t=nn(a,t),a=cp(2),l=bi(e,a,2),l!==null&&(fp(a,l,e,t),ms(l,2),wn(l));break}}e=e.return}}function Yc(t,e,a){var l=t.pingCache;if(l===null){l=t.pingCache=new xb;var o=new Set;l.set(e,o)}else o=l.get(e),o===void 0&&(o=new Set,l.set(e,o));o.has(a)||(jc=!0,o.add(a),t=Ub.bind(null,t,e,a),e.then(t,t))}function Ub(t,e,a){var l=t.pingCache;l!==null&&l.delete(e),t.pingedLanes|=t.suspendedLanes&a,t.warmLanes&=~a,Bt===t&&(St&a)===a&&(Yt===4||Yt===3&&(St&62914560)===St&&300>Be()-Ll?(wt&2)===0&&Wa(t,0):Pc|=a,Qa===St&&(Qa=0)),wn(t)}function cg(t,e){e===0&&(e=ad()),t=Xi(t,e),t!==null&&(ms(t,e),wn(t))}function Ib(t){var e=t.memoizedState,a=0;e!==null&&(a=e.retryLane),cg(t,a)}function kb(t,e){var a=0;switch(t.tag){case 31:case 13:var l=t.stateNode,o=t.memoizedState;o!==null&&(a=o.retryLane);break;case 19:l=t.stateNode;break;case 22:l=t.stateNode._retryCache;break;default:throw Error(r(314))}l!==null&&l.delete(e),cg(t,a)}function zb(t,e){return so(t,e)}var Bl=null,ts=null,Xc=!1,Dl=!1,Fc=!1,Li=0;function wn(t){t!==ts&&t.next===null&&(ts===null?Bl=ts=t:ts=ts.next=t),Dl=!0,Xc||(Xc=!0,Db())}function Zs(t,e){if(!Fc&&Dl){Fc=!0;do for(var a=!1,l=Bl;l!==null;){if(t!==0){var o=l.pendingLanes;if(o===0)var f=0;else{var p=l.suspendedLanes,y=l.pingedLanes;f=(1<<31-je(42|t)+1)-1,f&=o&~(p&~y),f=f&201326741?f&201326741|1:f?f|2:0}f!==0&&(a=!0,_g(l,f))}else f=St,f=qr(l,l===Bt?f:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(f&3)===0||gs(l,f)||(a=!0,_g(l,f));l=l.next}while(a);Fc=!1}}function Bb(){fg()}function fg(){Dl=Xc=!1;var t=0;Li!==0&&Xb()&&(t=Li);for(var e=Be(),a=null,l=Bl;l!==null;){var o=l.next,f=hg(l,e);f===0?(l.next=null,a===null?Bl=o:a.next=o,o===null&&(ts=a)):(a=l,(t!==0||(f&3)!==0)&&(Dl=!0)),l=o}ie!==0&&ie!==5||Zs(t),Li!==0&&(Li=0)}function hg(t,e){for(var a=t.suspendedLanes,l=t.pingedLanes,o=t.expirationTimes,f=t.pendingLanes&-62914561;0<f;){var p=31-je(f),y=1<<p,O=o[p];O===-1?((y&a)===0||(y&l)!==0)&&(o[p]=cE(y,e)):O<=e&&(t.expiredLanes|=y),f&=~y}if(e=Bt,a=St,a=qr(t,t===e?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l=t.callbackNode,a===0||t===e&&(Mt===2||Mt===9)||t.cancelPendingCommit!==null)return l!==null&&l!==null&&ro(l),t.callbackNode=null,t.callbackPriority=0;if((a&3)===0||gs(t,a)){if(e=a&-a,e===t.callbackPriority)return e;switch(l!==null&&ro(l),oo(a)){case 2:case 8:a=nd;break;case 32:a=Dr;break;case 268435456:a=id;break;default:a=Dr}return l=dg.bind(null,t),a=so(a,l),t.callbackPriority=e,t.callbackNode=a,e}return l!==null&&l!==null&&ro(l),t.callbackPriority=2,t.callbackNode=null,2}function dg(t,e){if(ie!==0&&ie!==5)return t.callbackNode=null,t.callbackPriority=0,null;var a=t.callbackNode;if(zl()&&t.callbackNode!==a)return null;var l=St;return l=qr(t,t===Bt?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l===0?null:(Xp(t,l,e),hg(t,Be()),t.callbackNode!=null&&t.callbackNode===a?dg.bind(null,t):null)}function _g(t,e){if(zl())return null;Xp(t,e,!0)}function Db(){Qb(function(){(wt&6)!==0?so(ed,Bb):fg()})}function Qc(){if(Li===0){var t=ja;t===0&&(t=jr,jr<<=1,(jr&261888)===0&&(jr=256)),Li=t}return Li}function pg(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Vr(""+t)}function gg(t,e){var a=e.ownerDocument.createElement("input");return a.name=e.name,a.value=e.value,t.id&&a.setAttribute("form",t.id),e.parentNode.insertBefore(a,e),t=new FormData(t),a.parentNode.removeChild(a),t}function jb(t,e,a,l,o){if(e==="submit"&&a&&a.stateNode===o){var f=pg((o[Ae]||null).action),p=l.submitter;p&&(e=(e=p[Ae]||null)?pg(e.formAction):p.getAttribute("formAction"),e!==null&&(f=e,p=null));var y=new Qr("action","action",null,l,o);t.push({event:y,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Li!==0){var O=p?gg(o,p):new FormData(o);gc(a,{pending:!0,data:O,method:o.method,action:f},null,O)}}else typeof f=="function"&&(y.preventDefault(),O=p?gg(o,p):new FormData(o),gc(a,{pending:!0,data:O,method:o.method,action:f},f,O))},currentTarget:o}]})}}for(var Zc=0;Zc<Uo.length;Zc++){var Wc=Uo[Zc],Pb=Wc.toLowerCase(),Gb=Wc[0].toUpperCase()+Wc.slice(1);mn(Pb,"on"+Gb)}mn(Yd,"onAnimationEnd"),mn(Xd,"onAnimationIteration"),mn(Fd,"onAnimationStart"),mn("dblclick","onDoubleClick"),mn("focusin","onFocus"),mn("focusout","onBlur"),mn(ib,"onTransitionRun"),mn(ab,"onTransitionStart"),mn(sb,"onTransitionCancel"),mn(Qd,"onTransitionEnd"),Oa("onMouseEnter",["mouseout","mouseover"]),Oa("onMouseLeave",["mouseout","mouseover"]),Oa("onPointerEnter",["pointerout","pointerover"]),Oa("onPointerLeave",["pointerout","pointerover"]),$i("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),$i("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),$i("onBeforeInput",["compositionend","keypress","textInput","paste"]),$i("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),$i("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),$i("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ws="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),qb=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ws));function mg(t,e){e=(e&4)!==0;for(var a=0;a<t.length;a++){var l=t[a],o=l.event;l=l.listeners;t:{var f=void 0;if(e)for(var p=l.length-1;0<=p;p--){var y=l[p],O=y.instance,z=y.currentTarget;if(y=y.listener,O!==f&&o.isPropagationStopped())break t;f=y,o.currentTarget=z;try{f(o)}catch(q){Jr(q)}o.currentTarget=null,f=O}else for(p=0;p<l.length;p++){if(y=l[p],O=y.instance,z=y.currentTarget,y=y.listener,O!==f&&o.isPropagationStopped())break t;f=y,o.currentTarget=z;try{f(o)}catch(q){Jr(q)}o.currentTarget=null,f=O}}}}function Tt(t,e){var a=e[co];a===void 0&&(a=e[co]=new Set);var l=t+"__bubble";a.has(l)||(yg(e,t,2,!1),a.add(l))}function Jc(t,e,a){var l=0;e&&(l|=4),yg(a,t,l,e)}var jl="_reactListening"+Math.random().toString(36).slice(2);function tf(t){if(!t[jl]){t[jl]=!0,fd.forEach(function(a){a!=="selectionchange"&&(qb.has(a)||Jc(a,!1,t),Jc(a,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[jl]||(e[jl]=!0,Jc("selectionchange",!1,e))}}function yg(t,e,a,l){switch(Yg(e)){case 2:var o=gT;break;case 8:o=mT;break;default:o=gf}a=o.bind(null,e,a,t),o=void 0,!Eo||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(o=!0),l?o!==void 0?t.addEventListener(e,a,{capture:!0,passive:o}):t.addEventListener(e,a,!0):o!==void 0?t.addEventListener(e,a,{passive:o}):t.addEventListener(e,a,!1)}function ef(t,e,a,l,o){var f=l;if((e&1)===0&&(e&2)===0&&l!==null)t:for(;;){if(l===null)return;var p=l.tag;if(p===3||p===4){var y=l.stateNode.containerInfo;if(y===o)break;if(p===4)for(p=l.return;p!==null;){var O=p.tag;if((O===3||O===4)&&p.stateNode.containerInfo===o)return;p=p.return}for(;y!==null;){if(p=Ta(y),p===null)return;if(O=p.tag,O===5||O===6||O===26||O===27){l=f=p;continue t}y=y.parentNode}}l=l.return}Sd(function(){var z=f,q=yo(a),V=[];t:{var B=Zd.get(t);if(B!==void 0){var D=Qr,tt=t;switch(t){case"keypress":if(Xr(a)===0)break t;case"keydown":case"keyup":D=kE;break;case"focusin":tt="focus",D=Ao;break;case"focusout":tt="blur",D=Ao;break;case"beforeblur":case"afterblur":D=Ao;break;case"click":if(a.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":D=Nd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":D=SE;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":D=DE;break;case Yd:case Xd:case Fd:D=NE;break;case Qd:D=PE;break;case"scroll":case"scrollend":D=bE;break;case"wheel":D=qE;break;case"copy":case"cut":case"paste":D=xE;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":D=xd;break;case"toggle":case"beforetoggle":D=$E}var ot=(e&4)!==0,zt=!ot&&(t==="scroll"||t==="scrollend"),x=ot?B!==null?B+"Capture":null:B;ot=[];for(var R=z,k;R!==null;){var K=R;if(k=K.stateNode,K=K.tag,K!==5&&K!==26&&K!==27||k===null||x===null||(K=Es(R,x),K!=null&&ot.push(Js(R,K,k))),zt)break;R=R.return}0<ot.length&&(B=new D(B,tt,null,a,q),V.push({event:B,listeners:ot}))}}if((e&7)===0){t:{if(B=t==="mouseover"||t==="pointerover",D=t==="mouseout"||t==="pointerout",B&&a!==mo&&(tt=a.relatedTarget||a.fromElement)&&(Ta(tt)||tt[ba]))break t;if((D||B)&&(B=q.window===q?q:(B=q.ownerDocument)?B.defaultView||B.parentWindow:window,D?(tt=a.relatedTarget||a.toElement,D=z,tt=tt?Ta(tt):null,tt!==null&&(zt=c(tt),ot=tt.tag,tt!==zt||ot!==5&&ot!==27&&ot!==6)&&(tt=null)):(D=null,tt=z),D!==tt)){if(ot=Nd,K="onMouseLeave",x="onMouseEnter",R="mouse",(t==="pointerout"||t==="pointerover")&&(ot=xd,K="onPointerLeave",x="onPointerEnter",R="pointer"),zt=D==null?B:vs(D),k=tt==null?B:vs(tt),B=new ot(K,R+"leave",D,a,q),B.target=zt,B.relatedTarget=k,K=null,Ta(q)===z&&(ot=new ot(x,R+"enter",tt,a,q),ot.target=k,ot.relatedTarget=zt,K=ot),zt=K,D&&tt)e:{for(ot=Hb,x=D,R=tt,k=0,K=x;K;K=ot(K))k++;K=0;for(var lt=R;lt;lt=ot(lt))K++;for(;0<k-K;)x=ot(x),k--;for(;0<K-k;)R=ot(R),K--;for(;k--;){if(x===R||R!==null&&x===R.alternate){ot=x;break e}x=ot(x),R=ot(R)}ot=null}else ot=null;D!==null&&vg(V,B,D,ot,!1),tt!==null&&zt!==null&&vg(V,zt,tt,ot,!0)}}t:{if(B=z?vs(z):window,D=B.nodeName&&B.nodeName.toLowerCase(),D==="select"||D==="input"&&B.type==="file")var Ct=zd;else if(Id(B))if(Bd)Ct=tb;else{Ct=WE;var nt=ZE}else D=B.nodeName,!D||D.toLowerCase()!=="input"||B.type!=="checkbox"&&B.type!=="radio"?z&&go(z.elementType)&&(Ct=zd):Ct=JE;if(Ct&&(Ct=Ct(t,z))){kd(V,Ct,a,q);break t}nt&&nt(t,B,z),t==="focusout"&&z&&B.type==="number"&&z.memoizedProps.value!=null&&po(B,"number",B.value)}switch(nt=z?vs(z):window,t){case"focusin":(Id(nt)||nt.contentEditable==="true")&&(wa=nt,Lo=z,xs=null);break;case"focusout":xs=Lo=wa=null;break;case"mousedown":wo=!0;break;case"contextmenu":case"mouseup":case"dragend":wo=!1,Kd(V,a,q);break;case"selectionchange":if(nb)break;case"keydown":case"keyup":Kd(V,a,q)}var vt;if(No)t:{switch(t){case"compositionstart":var At="onCompositionStart";break t;case"compositionend":At="onCompositionEnd";break t;case"compositionupdate":At="onCompositionUpdate";break t}At=void 0}else La?Md(t,a)&&(At="onCompositionEnd"):t==="keydown"&&a.keyCode===229&&(At="onCompositionStart");At&&(Cd&&a.locale!=="ko"&&(La||At!=="onCompositionStart"?At==="onCompositionEnd"&&La&&(vt=Ad()):(_i=q,bo="value"in _i?_i.value:_i.textContent,La=!0)),nt=Pl(z,At),0<nt.length&&(At=new Rd(At,t,null,a,q),V.push({event:At,listeners:nt}),vt?At.data=vt:(vt=Ud(a),vt!==null&&(At.data=vt)))),(vt=VE?YE(t,a):XE(t,a))&&(At=Pl(z,"onBeforeInput"),0<At.length&&(nt=new Rd("onBeforeInput","beforeinput",null,a,q),V.push({event:nt,listeners:At}),nt.data=vt)),jb(V,t,z,a,q)}mg(V,e)})}function Js(t,e,a){return{instance:t,listener:e,currentTarget:a}}function Pl(t,e){for(var a=e+"Capture",l=[];t!==null;){var o=t,f=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||f===null||(o=Es(t,a),o!=null&&l.unshift(Js(t,o,f)),o=Es(t,e),o!=null&&l.push(Js(t,o,f))),t.tag===3)return l;t=t.return}return[]}function Hb(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function vg(t,e,a,l,o){for(var f=e._reactName,p=[];a!==null&&a!==l;){var y=a,O=y.alternate,z=y.stateNode;if(y=y.tag,O!==null&&O===l)break;y!==5&&y!==26&&y!==27||z===null||(O=z,o?(z=Es(a,f),z!=null&&p.unshift(Js(a,z,O))):o||(z=Es(a,f),z!=null&&p.push(Js(a,z,O)))),a=a.return}p.length!==0&&t.push({event:e,listeners:p})}var $b=/\r\n?/g,Kb=/\u0000|\uFFFD/g;function Eg(t){return(typeof t=="string"?t:""+t).replace($b,`
9
- `).replace(Kb,"")}function bg(t,e){return e=Eg(e),Eg(t)===e}function kt(t,e,a,l,o,f){switch(a){case"children":typeof l=="string"?e==="body"||e==="textarea"&&l===""||Ra(t,l):(typeof l=="number"||typeof l=="bigint")&&e!=="body"&&Ra(t,""+l);break;case"className":$r(t,"class",l);break;case"tabIndex":$r(t,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":$r(t,a,l);break;case"style":bd(t,l,f);break;case"data":if(e!=="object"){$r(t,"data",l);break}case"src":case"href":if(l===""&&(e!=="a"||a!=="href")){t.removeAttribute(a);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(a);break}l=Vr(""+l),t.setAttribute(a,l);break;case"action":case"formAction":if(typeof l=="function"){t.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof f=="function"&&(a==="formAction"?(e!=="input"&&kt(t,e,"name",o.name,o,null),kt(t,e,"formEncType",o.formEncType,o,null),kt(t,e,"formMethod",o.formMethod,o,null),kt(t,e,"formTarget",o.formTarget,o,null)):(kt(t,e,"encType",o.encType,o,null),kt(t,e,"method",o.method,o,null),kt(t,e,"target",o.target,o,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(a);break}l=Vr(""+l),t.setAttribute(a,l);break;case"onClick":l!=null&&(t.onclick=qn);break;case"onScroll":l!=null&&Tt("scroll",t);break;case"onScrollEnd":l!=null&&Tt("scrollend",t);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(a=l.__html,a!=null){if(o.children!=null)throw Error(r(60));t.innerHTML=a}}break;case"multiple":t.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":t.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){t.removeAttribute("xlink:href");break}a=Vr(""+l),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(a,""+l):t.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(a,""):t.removeAttribute(a);break;case"capture":case"download":l===!0?t.setAttribute(a,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(a,l):t.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?t.setAttribute(a,l):t.removeAttribute(a);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?t.removeAttribute(a):t.setAttribute(a,l);break;case"popover":Tt("beforetoggle",t),Tt("toggle",t),Hr(t,"popover",l);break;case"xlinkActuate":Gn(t,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":Gn(t,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":Gn(t,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":Gn(t,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":Gn(t,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":Gn(t,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":Gn(t,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":Gn(t,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":Gn(t,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Hr(t,"is",l);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=vE.get(a)||a,Hr(t,a,l))}}function nf(t,e,a,l,o,f){switch(a){case"style":bd(t,l,f);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(a=l.__html,a!=null){if(o.children!=null)throw Error(r(60));t.innerHTML=a}}break;case"children":typeof l=="string"?Ra(t,l):(typeof l=="number"||typeof l=="bigint")&&Ra(t,""+l);break;case"onScroll":l!=null&&Tt("scroll",t);break;case"onScrollEnd":l!=null&&Tt("scrollend",t);break;case"onClick":l!=null&&(t.onclick=qn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!hd.hasOwnProperty(a))t:{if(a[0]==="o"&&a[1]==="n"&&(o=a.endsWith("Capture"),e=a.slice(2,o?a.length-7:void 0),f=t[Ae]||null,f=f!=null?f[a]:null,typeof f=="function"&&t.removeEventListener(e,f,o),typeof l=="function")){typeof f!="function"&&f!==null&&(a in t?t[a]=null:t.hasAttribute(a)&&t.removeAttribute(a)),t.addEventListener(e,l,o);break t}a in t?t[a]=l:l===!0?t.setAttribute(a,""):Hr(t,a,l)}}}function de(t,e,a){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Tt("error",t),Tt("load",t);var l=!1,o=!1,f;for(f in a)if(a.hasOwnProperty(f)){var p=a[f];if(p!=null)switch(f){case"src":l=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:kt(t,e,f,p,a,null)}}o&&kt(t,e,"srcSet",a.srcSet,a,null),l&&kt(t,e,"src",a.src,a,null);return;case"input":Tt("invalid",t);var y=f=p=o=null,O=null,z=null;for(l in a)if(a.hasOwnProperty(l)){var q=a[l];if(q!=null)switch(l){case"name":o=q;break;case"type":p=q;break;case"checked":O=q;break;case"defaultChecked":z=q;break;case"value":f=q;break;case"defaultValue":y=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(r(137,e));break;default:kt(t,e,l,q,a,null)}}md(t,f,y,O,z,p,o,!1);return;case"select":Tt("invalid",t),l=p=f=null;for(o in a)if(a.hasOwnProperty(o)&&(y=a[o],y!=null))switch(o){case"value":f=y;break;case"defaultValue":p=y;break;case"multiple":l=y;default:kt(t,e,o,y,a,null)}e=f,a=p,t.multiple=!!l,e!=null?Na(t,!!l,e,!1):a!=null&&Na(t,!!l,a,!0);return;case"textarea":Tt("invalid",t),f=o=l=null;for(p in a)if(a.hasOwnProperty(p)&&(y=a[p],y!=null))switch(p){case"value":l=y;break;case"defaultValue":o=y;break;case"children":f=y;break;case"dangerouslySetInnerHTML":if(y!=null)throw Error(r(91));break;default:kt(t,e,p,y,a,null)}vd(t,l,o,f);return;case"option":for(O in a)a.hasOwnProperty(O)&&(l=a[O],l!=null)&&(O==="selected"?t.selected=l&&typeof l!="function"&&typeof l!="symbol":kt(t,e,O,l,a,null));return;case"dialog":Tt("beforetoggle",t),Tt("toggle",t),Tt("cancel",t),Tt("close",t);break;case"iframe":case"object":Tt("load",t);break;case"video":case"audio":for(l=0;l<Ws.length;l++)Tt(Ws[l],t);break;case"image":Tt("error",t),Tt("load",t);break;case"details":Tt("toggle",t);break;case"embed":case"source":case"link":Tt("error",t),Tt("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(z in a)if(a.hasOwnProperty(z)&&(l=a[z],l!=null))switch(z){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:kt(t,e,z,l,a,null)}return;default:if(go(e)){for(q in a)a.hasOwnProperty(q)&&(l=a[q],l!==void 0&&nf(t,e,q,l,a,void 0));return}}for(y in a)a.hasOwnProperty(y)&&(l=a[y],l!=null&&kt(t,e,y,l,a,null))}function Vb(t,e,a,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,f=null,p=null,y=null,O=null,z=null,q=null;for(D in a){var V=a[D];if(a.hasOwnProperty(D)&&V!=null)switch(D){case"checked":break;case"value":break;case"defaultValue":O=V;default:l.hasOwnProperty(D)||kt(t,e,D,null,l,V)}}for(var B in l){var D=l[B];if(V=a[B],l.hasOwnProperty(B)&&(D!=null||V!=null))switch(B){case"type":f=D;break;case"name":o=D;break;case"checked":z=D;break;case"defaultChecked":q=D;break;case"value":p=D;break;case"defaultValue":y=D;break;case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(r(137,e));break;default:D!==V&&kt(t,e,B,D,l,V)}}_o(t,p,y,O,z,q,f,o);return;case"select":D=p=y=B=null;for(f in a)if(O=a[f],a.hasOwnProperty(f)&&O!=null)switch(f){case"value":break;case"multiple":D=O;default:l.hasOwnProperty(f)||kt(t,e,f,null,l,O)}for(o in l)if(f=l[o],O=a[o],l.hasOwnProperty(o)&&(f!=null||O!=null))switch(o){case"value":B=f;break;case"defaultValue":y=f;break;case"multiple":p=f;default:f!==O&&kt(t,e,o,f,l,O)}e=y,a=p,l=D,B!=null?Na(t,!!a,B,!1):!!l!=!!a&&(e!=null?Na(t,!!a,e,!0):Na(t,!!a,a?[]:"",!1));return;case"textarea":D=B=null;for(y in a)if(o=a[y],a.hasOwnProperty(y)&&o!=null&&!l.hasOwnProperty(y))switch(y){case"value":break;case"children":break;default:kt(t,e,y,null,l,o)}for(p in l)if(o=l[p],f=a[p],l.hasOwnProperty(p)&&(o!=null||f!=null))switch(p){case"value":B=o;break;case"defaultValue":D=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(r(91));break;default:o!==f&&kt(t,e,p,o,l,f)}yd(t,B,D);return;case"option":for(var tt in a)B=a[tt],a.hasOwnProperty(tt)&&B!=null&&!l.hasOwnProperty(tt)&&(tt==="selected"?t.selected=!1:kt(t,e,tt,null,l,B));for(O in l)B=l[O],D=a[O],l.hasOwnProperty(O)&&B!==D&&(B!=null||D!=null)&&(O==="selected"?t.selected=B&&typeof B!="function"&&typeof B!="symbol":kt(t,e,O,B,l,D));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ot in a)B=a[ot],a.hasOwnProperty(ot)&&B!=null&&!l.hasOwnProperty(ot)&&kt(t,e,ot,null,l,B);for(z in l)if(B=l[z],D=a[z],l.hasOwnProperty(z)&&B!==D&&(B!=null||D!=null))switch(z){case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(r(137,e));break;default:kt(t,e,z,B,l,D)}return;default:if(go(e)){for(var zt in a)B=a[zt],a.hasOwnProperty(zt)&&B!==void 0&&!l.hasOwnProperty(zt)&&nf(t,e,zt,void 0,l,B);for(q in l)B=l[q],D=a[q],!l.hasOwnProperty(q)||B===D||B===void 0&&D===void 0||nf(t,e,q,B,l,D);return}}for(var x in a)B=a[x],a.hasOwnProperty(x)&&B!=null&&!l.hasOwnProperty(x)&&kt(t,e,x,null,l,B);for(V in l)B=l[V],D=a[V],!l.hasOwnProperty(V)||B===D||B==null&&D==null||kt(t,e,V,B,l,D)}function Tg(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Yb(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,a=performance.getEntriesByType("resource"),l=0;l<a.length;l++){var o=a[l],f=o.transferSize,p=o.initiatorType,y=o.duration;if(f&&y&&Tg(p)){for(p=0,y=o.responseEnd,l+=1;l<a.length;l++){var O=a[l],z=O.startTime;if(z>y)break;var q=O.transferSize,V=O.initiatorType;q&&Tg(V)&&(O=O.responseEnd,p+=q*(O<y?1:(y-z)/(O-z)))}if(--l,e+=8*(f+p)/(o.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var af=null,sf=null;function Gl(t){return t.nodeType===9?t:t.ownerDocument}function Sg(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Ag(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function rf(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var lf=null;function Xb(){var t=window.event;return t&&t.type==="popstate"?t===lf?!1:(lf=t,!0):(lf=null,!1)}var Og=typeof setTimeout=="function"?setTimeout:void 0,Fb=typeof clearTimeout=="function"?clearTimeout:void 0,Ng=typeof Promise=="function"?Promise:void 0,Qb=typeof queueMicrotask=="function"?queueMicrotask:typeof Ng<"u"?function(t){return Ng.resolve(null).then(t).catch(Zb)}:Og;function Zb(t){setTimeout(function(){throw t})}function wi(t){return t==="head"}function Rg(t,e){var a=e,l=0;do{var o=a.nextSibling;if(t.removeChild(a),o&&o.nodeType===8)if(a=o.data,a==="/$"||a==="/&"){if(l===0){t.removeChild(o),as(e);return}l--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")l++;else if(a==="html")tr(t.ownerDocument.documentElement);else if(a==="head"){a=t.ownerDocument.head,tr(a);for(var f=a.firstChild;f;){var p=f.nextSibling,y=f.nodeName;f[ys]||y==="SCRIPT"||y==="STYLE"||y==="LINK"&&f.rel.toLowerCase()==="stylesheet"||a.removeChild(f),f=p}}else a==="body"&&tr(t.ownerDocument.body);a=o}while(a);as(e)}function xg(t,e){var a=t;t=0;do{var l=a.nextSibling;if(a.nodeType===1?e?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(e?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),l&&l.nodeType===8)if(a=l.data,a==="/$"){if(t===0)break;t--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||t++;a=l}while(a)}function uf(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var a=e;switch(e=e.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":uf(a),fo(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}t.removeChild(a)}}function Wb(t,e,a,l){for(;t.nodeType===1;){var o=a;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!l&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(l){if(!t[ys])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(f=t.getAttribute("rel"),f==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(f!==o.rel||t.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||t.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||t.getAttribute("title")!==(o.title==null?null:o.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(f=t.getAttribute("src"),(f!==(o.src==null?null:o.src)||t.getAttribute("type")!==(o.type==null?null:o.type)||t.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&f&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var f=o.name==null?null:""+o.name;if(o.type==="hidden"&&t.getAttribute("name")===f)return t}else return t;if(t=un(t.nextSibling),t===null)break}return null}function Jb(t,e,a){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!a||(t=un(t.nextSibling),t===null))return null;return t}function Cg(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=un(t.nextSibling),t===null))return null;return t}function of(t){return t.data==="$?"||t.data==="$~"}function cf(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function tT(t,e){var a=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||a.readyState!=="loading")e();else{var l=function(){e(),a.removeEventListener("DOMContentLoaded",l)};a.addEventListener("DOMContentLoaded",l),t._reactRetry=l}}function un(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var ff=null;function Lg(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var a=t.data;if(a==="/$"||a==="/&"){if(e===0)return un(t.nextSibling);e--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||e++}t=t.nextSibling}return null}function wg(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var a=t.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(e===0)return t;e--}else a!=="/$"&&a!=="/&"||e++}t=t.previousSibling}return null}function Mg(t,e,a){switch(e=Gl(a),t){case"html":if(t=e.documentElement,!t)throw Error(r(452));return t;case"head":if(t=e.head,!t)throw Error(r(453));return t;case"body":if(t=e.body,!t)throw Error(r(454));return t;default:throw Error(r(451))}}function tr(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);fo(t)}var on=new Map,Ug=new Set;function ql(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var ai=Q.d;Q.d={f:eT,r:nT,D:iT,C:aT,L:sT,m:rT,X:uT,S:lT,M:oT};function eT(){var t=ai.f(),e=Ul();return t||e}function nT(t){var e=Sa(t);e!==null&&e.tag===5&&e.type==="form"?Q_(e):ai.r(t)}var es=typeof document>"u"?null:document;function Ig(t,e,a){var l=es;if(l&&typeof e=="string"&&e){var o=tn(e);o='link[rel="'+t+'"][href="'+o+'"]',typeof a=="string"&&(o+='[crossorigin="'+a+'"]'),Ug.has(o)||(Ug.add(o),t={rel:t,crossOrigin:a,href:e},l.querySelector(o)===null&&(e=l.createElement("link"),de(e,"link",t),le(e),l.head.appendChild(e)))}}function iT(t){ai.D(t),Ig("dns-prefetch",t,null)}function aT(t,e){ai.C(t,e),Ig("preconnect",t,e)}function sT(t,e,a){ai.L(t,e,a);var l=es;if(l&&t&&e){var o='link[rel="preload"][as="'+tn(e)+'"]';e==="image"&&a&&a.imageSrcSet?(o+='[imagesrcset="'+tn(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(o+='[imagesizes="'+tn(a.imageSizes)+'"]')):o+='[href="'+tn(t)+'"]';var f=o;switch(e){case"style":f=ns(t);break;case"script":f=is(t)}on.has(f)||(t=E({rel:"preload",href:e==="image"&&a&&a.imageSrcSet?void 0:t,as:e},a),on.set(f,t),l.querySelector(o)!==null||e==="style"&&l.querySelector(er(f))||e==="script"&&l.querySelector(nr(f))||(e=l.createElement("link"),de(e,"link",t),le(e),l.head.appendChild(e)))}}function rT(t,e){ai.m(t,e);var a=es;if(a&&t){var l=e&&typeof e.as=="string"?e.as:"script",o='link[rel="modulepreload"][as="'+tn(l)+'"][href="'+tn(t)+'"]',f=o;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":f=is(t)}if(!on.has(f)&&(t=E({rel:"modulepreload",href:t},e),on.set(f,t),a.querySelector(o)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(nr(f)))return}l=a.createElement("link"),de(l,"link",t),le(l),a.head.appendChild(l)}}}function lT(t,e,a){ai.S(t,e,a);var l=es;if(l&&t){var o=Aa(l).hoistableStyles,f=ns(t);e=e||"default";var p=o.get(f);if(!p){var y={loading:0,preload:null};if(p=l.querySelector(er(f)))y.loading=5;else{t=E({rel:"stylesheet",href:t,"data-precedence":e},a),(a=on.get(f))&&hf(t,a);var O=p=l.createElement("link");le(O),de(O,"link",t),O._p=new Promise(function(z,q){O.onload=z,O.onerror=q}),O.addEventListener("load",function(){y.loading|=1}),O.addEventListener("error",function(){y.loading|=2}),y.loading|=4,Hl(p,e,l)}p={type:"stylesheet",instance:p,count:1,state:y},o.set(f,p)}}}function uT(t,e){ai.X(t,e);var a=es;if(a&&t){var l=Aa(a).hoistableScripts,o=is(t),f=l.get(o);f||(f=a.querySelector(nr(o)),f||(t=E({src:t,async:!0},e),(e=on.get(o))&&df(t,e),f=a.createElement("script"),le(f),de(f,"link",t),a.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},l.set(o,f))}}function oT(t,e){ai.M(t,e);var a=es;if(a&&t){var l=Aa(a).hoistableScripts,o=is(t),f=l.get(o);f||(f=a.querySelector(nr(o)),f||(t=E({src:t,async:!0,type:"module"},e),(e=on.get(o))&&df(t,e),f=a.createElement("script"),le(f),de(f,"link",t),a.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},l.set(o,f))}}function kg(t,e,a,l){var o=(o=ut.current)?ql(o):null;if(!o)throw Error(r(446));switch(t){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(e=ns(a.href),a=Aa(o).hoistableStyles,l=a.get(e),l||(l={type:"style",instance:null,count:0,state:null},a.set(e,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){t=ns(a.href);var f=Aa(o).hoistableStyles,p=f.get(t);if(p||(o=o.ownerDocument||o,p={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},f.set(t,p),(f=o.querySelector(er(t)))&&!f._p&&(p.instance=f,p.state.loading=5),on.has(t)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},on.set(t,a),f||cT(o,t,a,p.state))),e&&l===null)throw Error(r(528,""));return p}if(e&&l!==null)throw Error(r(529,""));return null;case"script":return e=a.async,a=a.src,typeof a=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=is(a),a=Aa(o).hoistableScripts,l=a.get(e),l||(l={type:"script",instance:null,count:0,state:null},a.set(e,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,t))}}function ns(t){return'href="'+tn(t)+'"'}function er(t){return'link[rel="stylesheet"]['+t+"]"}function zg(t){return E({},t,{"data-precedence":t.precedence,precedence:null})}function cT(t,e,a,l){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?l.loading=1:(e=t.createElement("link"),l.preload=e,e.addEventListener("load",function(){return l.loading|=1}),e.addEventListener("error",function(){return l.loading|=2}),de(e,"link",a),le(e),t.head.appendChild(e))}function is(t){return'[src="'+tn(t)+'"]'}function nr(t){return"script[async]"+t}function Bg(t,e,a){if(e.count++,e.instance===null)switch(e.type){case"style":var l=t.querySelector('style[data-href~="'+tn(a.href)+'"]');if(l)return e.instance=l,le(l),l;var o=E({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(t.ownerDocument||t).createElement("style"),le(l),de(l,"style",o),Hl(l,a.precedence,t),e.instance=l;case"stylesheet":o=ns(a.href);var f=t.querySelector(er(o));if(f)return e.state.loading|=4,e.instance=f,le(f),f;l=zg(a),(o=on.get(o))&&hf(l,o),f=(t.ownerDocument||t).createElement("link"),le(f);var p=f;return p._p=new Promise(function(y,O){p.onload=y,p.onerror=O}),de(f,"link",l),e.state.loading|=4,Hl(f,a.precedence,t),e.instance=f;case"script":return f=is(a.src),(o=t.querySelector(nr(f)))?(e.instance=o,le(o),o):(l=a,(o=on.get(f))&&(l=E({},a),df(l,o)),t=t.ownerDocument||t,o=t.createElement("script"),le(o),de(o,"link",l),t.head.appendChild(o),e.instance=o);case"void":return null;default:throw Error(r(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(l=e.instance,e.state.loading|=4,Hl(l,a.precedence,t));return e.instance}function Hl(t,e,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=l.length?l[l.length-1]:null,f=o,p=0;p<l.length;p++){var y=l[p];if(y.dataset.precedence===e)f=y;else if(f!==o)break}f?f.parentNode.insertBefore(t,f.nextSibling):(e=a.nodeType===9?a.head:a,e.insertBefore(t,e.firstChild))}function hf(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function df(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var $l=null;function Dg(t,e,a){if($l===null){var l=new Map,o=$l=new Map;o.set(a,l)}else o=$l,l=o.get(a),l||(l=new Map,o.set(a,l));if(l.has(t))return l;for(l.set(t,null),a=a.getElementsByTagName(t),o=0;o<a.length;o++){var f=a[o];if(!(f[ys]||f[oe]||t==="link"&&f.getAttribute("rel")==="stylesheet")&&f.namespaceURI!=="http://www.w3.org/2000/svg"){var p=f.getAttribute(e)||"";p=t+p;var y=l.get(p);y?y.push(f):l.set(p,[f])}}return l}function jg(t,e,a){t=t.ownerDocument||t,t.head.insertBefore(a,e==="title"?t.querySelector("head > title"):null)}function fT(t,e,a){if(a===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;return e.rel==="stylesheet"?(t=e.disabled,typeof e.precedence=="string"&&t==null):!0;case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function Pg(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function hT(t,e,a,l){if(a.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var o=ns(l.href),f=e.querySelector(er(o));if(f){e=f._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Kl.bind(t),e.then(t,t)),a.state.loading|=4,a.instance=f,le(f);return}f=e.ownerDocument||e,l=zg(l),(o=on.get(o))&&hf(l,o),f=f.createElement("link"),le(f);var p=f;p._p=new Promise(function(y,O){p.onload=y,p.onerror=O}),de(f,"link",l),a.instance=f}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(a,e),(e=a.state.preload)&&(a.state.loading&3)===0&&(t.count++,a=Kl.bind(t),e.addEventListener("load",a),e.addEventListener("error",a))}}var _f=0;function dT(t,e){return t.stylesheets&&t.count===0&&Yl(t,t.stylesheets),0<t.count||0<t.imgCount?function(a){var l=setTimeout(function(){if(t.stylesheets&&Yl(t,t.stylesheets),t.unsuspend){var f=t.unsuspend;t.unsuspend=null,f()}},6e4+e);0<t.imgBytes&&_f===0&&(_f=62500*Yb());var o=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Yl(t,t.stylesheets),t.unsuspend)){var f=t.unsuspend;t.unsuspend=null,f()}},(t.imgBytes>_f?50:800)+e);return t.unsuspend=a,function(){t.unsuspend=null,clearTimeout(l),clearTimeout(o)}}:null}function Kl(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Yl(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Vl=null;function Yl(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Vl=new Map,e.forEach(_T,t),Vl=null,Kl.call(t))}function _T(t,e){if(!(e.state.loading&4)){var a=Vl.get(t);if(a)var l=a.get(null);else{a=new Map,Vl.set(t,a);for(var o=t.querySelectorAll("link[data-precedence],style[data-precedence]"),f=0;f<o.length;f++){var p=o[f];(p.nodeName==="LINK"||p.getAttribute("media")!=="not all")&&(a.set(p.dataset.precedence,p),l=p)}l&&a.set(null,l)}o=e.instance,p=o.getAttribute("data-precedence"),f=a.get(p)||l,f===l&&a.set(null,o),a.set(p,o),this.count++,l=Kl.bind(this),o.addEventListener("load",l),o.addEventListener("error",l),f?f.parentNode.insertBefore(o,f.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(o,t.firstChild)),e.state.loading|=4}}var ir={$$typeof:w,Provider:null,Consumer:null,_currentValue:it,_currentValue2:it,_threadCount:0};function pT(t,e,a,l,o,f,p,y,O){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=lo(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=lo(0),this.hiddenUpdates=lo(null),this.identifierPrefix=l,this.onUncaughtError=o,this.onCaughtError=f,this.onRecoverableError=p,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=O,this.incompleteTransitions=new Map}function Gg(t,e,a,l,o,f,p,y,O,z,q,V){return t=new pT(t,e,a,p,O,z,q,V,y),e=1,f===!0&&(e|=24),f=Ge(3,null,null,e),t.current=f,f.stateNode=t,e=Vo(),e.refCount++,t.pooledCache=e,e.refCount++,f.memoizedState={element:l,isDehydrated:a,cache:e},Qo(f),t}function qg(t){return t?(t=Ia,t):Ia}function Hg(t,e,a,l,o,f){o=qg(o),l.context===null?l.context=o:l.pendingContext=o,l=Ei(e),l.payload={element:a},f=f===void 0?null:f,f!==null&&(l.callback=f),a=bi(t,l,e),a!==null&&(Le(a,t,e),ks(a,t,e))}function $g(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var a=t.retryLane;t.retryLane=a!==0&&a<e?a:e}}function pf(t,e){$g(t,e),(t=t.alternate)&&$g(t,e)}function Kg(t){if(t.tag===13||t.tag===31){var e=Xi(t,67108864);e!==null&&Le(e,t,67108864),pf(t,67108864)}}function Vg(t){if(t.tag===13||t.tag===31){var e=Ve();e=uo(e);var a=Xi(t,e);a!==null&&Le(a,t,e),pf(t,e)}}var Xl=!0;function gT(t,e,a,l){var o=M.T;M.T=null;var f=Q.p;try{Q.p=2,gf(t,e,a,l)}finally{Q.p=f,M.T=o}}function mT(t,e,a,l){var o=M.T;M.T=null;var f=Q.p;try{Q.p=8,gf(t,e,a,l)}finally{Q.p=f,M.T=o}}function gf(t,e,a,l){if(Xl){var o=mf(l);if(o===null)ef(t,e,l,Fl,a),Xg(t,l);else if(vT(o,t,e,a,l))l.stopPropagation();else if(Xg(t,l),e&4&&-1<yT.indexOf(t)){for(;o!==null;){var f=Sa(o);if(f!==null)switch(f.tag){case 3:if(f=f.stateNode,f.current.memoizedState.isDehydrated){var p=Hi(f.pendingLanes);if(p!==0){var y=f;for(y.pendingLanes|=2,y.entangledLanes|=2;p;){var O=1<<31-je(p);y.entanglements[1]|=O,p&=~O}wn(f),(wt&6)===0&&(wl=Be()+500,Zs(0))}}break;case 31:case 13:y=Xi(f,2),y!==null&&Le(y,f,2),Ul(),pf(f,2)}if(f=mf(l),f===null&&ef(t,e,l,Fl,a),f===o)break;o=f}o!==null&&l.stopPropagation()}else ef(t,e,l,null,a)}}function mf(t){return t=yo(t),yf(t)}var Fl=null;function yf(t){if(Fl=null,t=Ta(t),t!==null){var e=c(t);if(e===null)t=null;else{var a=e.tag;if(a===13){if(t=h(e),t!==null)return t;t=null}else if(a===31){if(t=_(e),t!==null)return t;t=null}else if(a===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return Fl=t,null}function Yg(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(iE()){case ed:return 2;case nd:return 8;case Dr:case aE:return 32;case id:return 268435456;default:return 32}default:return 32}}var vf=!1,Mi=null,Ui=null,Ii=null,ar=new Map,sr=new Map,ki=[],yT="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Xg(t,e){switch(t){case"focusin":case"focusout":Mi=null;break;case"dragenter":case"dragleave":Ui=null;break;case"mouseover":case"mouseout":Ii=null;break;case"pointerover":case"pointerout":ar.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":sr.delete(e.pointerId)}}function rr(t,e,a,l,o,f){return t===null||t.nativeEvent!==f?(t={blockedOn:e,domEventName:a,eventSystemFlags:l,nativeEvent:f,targetContainers:[o]},e!==null&&(e=Sa(e),e!==null&&Kg(e)),t):(t.eventSystemFlags|=l,e=t.targetContainers,o!==null&&e.indexOf(o)===-1&&e.push(o),t)}function vT(t,e,a,l,o){switch(e){case"focusin":return Mi=rr(Mi,t,e,a,l,o),!0;case"dragenter":return Ui=rr(Ui,t,e,a,l,o),!0;case"mouseover":return Ii=rr(Ii,t,e,a,l,o),!0;case"pointerover":var f=o.pointerId;return ar.set(f,rr(ar.get(f)||null,t,e,a,l,o)),!0;case"gotpointercapture":return f=o.pointerId,sr.set(f,rr(sr.get(f)||null,t,e,a,l,o)),!0}return!1}function Fg(t){var e=Ta(t.target);if(e!==null){var a=c(e);if(a!==null){if(e=a.tag,e===13){if(e=h(a),e!==null){t.blockedOn=e,od(t.priority,function(){Vg(a)});return}}else if(e===31){if(e=_(a),e!==null){t.blockedOn=e,od(t.priority,function(){Vg(a)});return}}else if(e===3&&a.stateNode.current.memoizedState.isDehydrated){t.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Ql(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var a=mf(t.nativeEvent);if(a===null){a=t.nativeEvent;var l=new a.constructor(a.type,a);mo=l,a.target.dispatchEvent(l),mo=null}else return e=Sa(a),e!==null&&Kg(e),t.blockedOn=a,!1;e.shift()}return!0}function Qg(t,e,a){Ql(t)&&a.delete(e)}function ET(){vf=!1,Mi!==null&&Ql(Mi)&&(Mi=null),Ui!==null&&Ql(Ui)&&(Ui=null),Ii!==null&&Ql(Ii)&&(Ii=null),ar.forEach(Qg),sr.forEach(Qg)}function Zl(t,e){t.blockedOn===e&&(t.blockedOn=null,vf||(vf=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,ET)))}var Wl=null;function Zg(t){Wl!==t&&(Wl=t,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){Wl===t&&(Wl=null);for(var e=0;e<t.length;e+=3){var a=t[e],l=t[e+1],o=t[e+2];if(typeof l!="function"){if(yf(l||a)===null)continue;break}var f=Sa(a);f!==null&&(t.splice(e,3),e-=3,gc(f,{pending:!0,data:o,method:a.method,action:l},l,o))}}))}function as(t){function e(O){return Zl(O,t)}Mi!==null&&Zl(Mi,t),Ui!==null&&Zl(Ui,t),Ii!==null&&Zl(Ii,t),ar.forEach(e),sr.forEach(e);for(var a=0;a<ki.length;a++){var l=ki[a];l.blockedOn===t&&(l.blockedOn=null)}for(;0<ki.length&&(a=ki[0],a.blockedOn===null);)Fg(a),a.blockedOn===null&&ki.shift();if(a=(t.ownerDocument||t).$$reactFormReplay,a!=null)for(l=0;l<a.length;l+=3){var o=a[l],f=a[l+1],p=o[Ae]||null;if(typeof f=="function")p||Zg(a);else if(p){var y=null;if(f&&f.hasAttribute("formAction")){if(o=f,p=f[Ae]||null)y=p.formAction;else if(yf(o)!==null)continue}else y=p.action;typeof y=="function"?a[l+1]=y:(a.splice(l,3),l-=3),Zg(a)}}}function Wg(){function t(f){f.canIntercept&&f.info==="react-transition"&&f.intercept({handler:function(){return new Promise(function(p){return o=p})},focusReset:"manual",scroll:"manual"})}function e(){o!==null&&(o(),o=null),l||setTimeout(a,20)}function a(){if(!l&&!navigation.transition){var f=navigation.currentEntry;f&&f.url!=null&&navigation.navigate(f.url,{state:f.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,o=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(a,100),function(){l=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),o!==null&&(o(),o=null)}}}function Ef(t){this._internalRoot=t}Jl.prototype.render=Ef.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(r(409));var a=e.current,l=Ve();Hg(a,l,t,e,null,null)},Jl.prototype.unmount=Ef.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;Hg(t.current,2,null,t,null,null),Ul(),e[ba]=null}};function Jl(t){this._internalRoot=t}Jl.prototype.unstable_scheduleHydration=function(t){if(t){var e=ud();t={blockedOn:null,target:t,priority:e};for(var a=0;a<ki.length&&e!==0&&e<ki[a].priority;a++);ki.splice(a,0,t),a===0&&Fg(t)}};var Jg=n.version;if(Jg!=="19.2.3")throw Error(r(527,Jg,"19.2.3"));Q.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(r(188)):(t=Object.keys(t).join(","),Error(r(268,t)));return t=g(e),t=t!==null?b(t):null,t=t===null?null:t.stateNode,t};var bT={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:M,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var tu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!tu.isDisabled&&tu.supportsFiber)try{ps=tu.inject(bT),De=tu}catch{}}return ur.createRoot=function(t,e){if(!u(t))throw Error(r(299));var a=!1,l="",o=rp,f=lp,p=up;return e!=null&&(e.unstable_strictMode===!0&&(a=!0),e.identifierPrefix!==void 0&&(l=e.identifierPrefix),e.onUncaughtError!==void 0&&(o=e.onUncaughtError),e.onCaughtError!==void 0&&(f=e.onCaughtError),e.onRecoverableError!==void 0&&(p=e.onRecoverableError)),e=Gg(t,1,!1,null,null,a,l,null,o,f,p,Wg),t[ba]=e.current,tf(t),new Ef(e)},ur.hydrateRoot=function(t,e,a){if(!u(t))throw Error(r(299));var l=!1,o="",f=rp,p=lp,y=up,O=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(o=a.identifierPrefix),a.onUncaughtError!==void 0&&(f=a.onUncaughtError),a.onCaughtError!==void 0&&(p=a.onCaughtError),a.onRecoverableError!==void 0&&(y=a.onRecoverableError),a.formState!==void 0&&(O=a.formState)),e=Gg(t,1,!0,e,a??null,l,o,O,f,p,y,Wg),e.context=qg(null),a=e.current,l=Ve(),l=uo(l),o=Ei(l),o.callback=null,bi(a,o,l),a=l,e.current.lanes=a,ms(e,a),wn(e),t[ba]=e.current,tf(t),new Jl(e)},ur.version="19.2.3",ur}var om;function MT(){if(om)return Sf.exports;om=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(n){console.error(n)}}return i(),Sf.exports=wT(),Sf.exports}var UT=MT();const IT=Sh(UT);function cm(i,n){(n==null||n>i.length)&&(n=i.length);for(var s=0,r=Array(n);s<n;s++)r[s]=i[s];return r}function kT(i){if(Array.isArray(i))return i}function zT(i,n,s){return(n=HT(n))in i?Object.defineProperty(i,n,{value:s,enumerable:!0,configurable:!0,writable:!0}):i[n]=s,i}function BT(i,n){var s=i==null?null:typeof Symbol<"u"&&i[Symbol.iterator]||i["@@iterator"];if(s!=null){var r,u,c,h,_=[],d=!0,g=!1;try{if(c=(s=s.call(i)).next,n!==0)for(;!(d=(r=c.call(s)).done)&&(_.push(r.value),_.length!==n);d=!0);}catch(b){g=!0,u=b}finally{try{if(!d&&s.return!=null&&(h=s.return(),Object(h)!==h))return}finally{if(g)throw u}}return _}}function DT(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
10
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fm(i,n){var s=Object.keys(i);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(i);n&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(i,u).enumerable})),s.push.apply(s,r)}return s}function hm(i){for(var n=1;n<arguments.length;n++){var s=arguments[n]!=null?arguments[n]:{};n%2?fm(Object(s),!0).forEach(function(r){zT(i,r,s[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(s)):fm(Object(s)).forEach(function(r){Object.defineProperty(i,r,Object.getOwnPropertyDescriptor(s,r))})}return i}function jT(i,n){if(i==null)return{};var s,r,u=PT(i,n);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(i);for(r=0;r<c.length;r++)s=c[r],n.indexOf(s)===-1&&{}.propertyIsEnumerable.call(i,s)&&(u[s]=i[s])}return u}function PT(i,n){if(i==null)return{};var s={};for(var r in i)if({}.hasOwnProperty.call(i,r)){if(n.indexOf(r)!==-1)continue;s[r]=i[r]}return s}function GT(i,n){return kT(i)||BT(i,n)||$T(i,n)||DT()}function qT(i,n){if(typeof i!="object"||!i)return i;var s=i[Symbol.toPrimitive];if(s!==void 0){var r=s.call(i,n);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(i)}function HT(i){var n=qT(i,"string");return typeof n=="symbol"?n:n+""}function $T(i,n){if(i){if(typeof i=="string")return cm(i,n);var s={}.toString.call(i).slice(8,-1);return s==="Object"&&i.constructor&&(s=i.constructor.name),s==="Map"||s==="Set"?Array.from(i):s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?cm(i,n):void 0}}function KT(i,n,s){return n in i?Object.defineProperty(i,n,{value:s,enumerable:!0,configurable:!0,writable:!0}):i[n]=s,i}function dm(i,n){var s=Object.keys(i);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(i);n&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(i,u).enumerable})),s.push.apply(s,r)}return s}function _m(i){for(var n=1;n<arguments.length;n++){var s=arguments[n]!=null?arguments[n]:{};n%2?dm(Object(s),!0).forEach(function(r){KT(i,r,s[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(s)):dm(Object(s)).forEach(function(r){Object.defineProperty(i,r,Object.getOwnPropertyDescriptor(s,r))})}return i}function VT(){for(var i=arguments.length,n=new Array(i),s=0;s<i;s++)n[s]=arguments[s];return function(r){return n.reduceRight(function(u,c){return c(u)},r)}}function gr(i){return function n(){for(var s=this,r=arguments.length,u=new Array(r),c=0;c<r;c++)u[c]=arguments[c];return u.length>=i.length?i.apply(this,u):function(){for(var h=arguments.length,_=new Array(h),d=0;d<h;d++)_[d]=arguments[d];return n.apply(s,[].concat(u,_))}}}function Su(i){return{}.toString.call(i).includes("Object")}function YT(i){return!Object.keys(i).length}function Ar(i){return typeof i=="function"}function XT(i,n){return Object.prototype.hasOwnProperty.call(i,n)}function FT(i,n){return Su(n)||Bi("changeType"),Object.keys(n).some(function(s){return!XT(i,s)})&&Bi("changeField"),n}function QT(i){Ar(i)||Bi("selectorType")}function ZT(i){Ar(i)||Su(i)||Bi("handlerType"),Su(i)&&Object.values(i).some(function(n){return!Ar(n)})&&Bi("handlersType")}function WT(i){i||Bi("initialIsRequired"),Su(i)||Bi("initialType"),YT(i)&&Bi("initialContent")}function JT(i,n){throw new Error(i[n]||i.default)}var t1={initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"},Bi=gr(JT)(t1),eu={changes:FT,selector:QT,handler:ZT,initial:WT};function e1(i){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};eu.initial(i),eu.handler(n);var s={current:i},r=gr(a1)(s,n),u=gr(i1)(s),c=gr(eu.changes)(i),h=gr(n1)(s);function _(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(b){return b};return eu.selector(g),g(s.current)}function d(g){VT(r,u,c,h)(g)}return[_,d]}function n1(i,n){return Ar(n)?n(i.current):n}function i1(i,n){return i.current=_m(_m({},i.current),n),n}function a1(i,n,s){return Ar(n)?n(i.current):Object.keys(s).forEach(function(r){var u;return(u=n[r])===null||u===void 0?void 0:u.call(n,i.current[r])}),s}var s1={create:e1},r1={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs"}};function l1(i){return function n(){for(var s=this,r=arguments.length,u=new Array(r),c=0;c<r;c++)u[c]=arguments[c];return u.length>=i.length?i.apply(this,u):function(){for(var h=arguments.length,_=new Array(h),d=0;d<h;d++)_[d]=arguments[d];return n.apply(s,[].concat(u,_))}}}function u1(i){return{}.toString.call(i).includes("Object")}function o1(i){return i||pm("configIsRequired"),u1(i)||pm("configType"),i.urls?(c1(),{paths:{vs:i.urls.monacoBase}}):i}function c1(){console.warn(Wy.deprecation)}function f1(i,n){throw new Error(i[n]||i.default)}var Wy={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
8
+ `+l.stack}}var so=Object.prototype.hasOwnProperty,ro=i.unstable_scheduleCallback,lo=i.unstable_cancelCallback,aE=i.unstable_shouldYield,sE=i.unstable_requestPaint,Be=i.unstable_now,rE=i.unstable_getCurrentPriorityLevel,td=i.unstable_ImmediatePriority,ed=i.unstable_UserBlockingPriority,jr=i.unstable_NormalPriority,lE=i.unstable_LowPriority,nd=i.unstable_IdlePriority,uE=i.log,oE=i.unstable_setDisableYieldValue,gs=null,De=null;function di(t){if(typeof uE=="function"&&oE(t),De&&typeof De.setStrictMode=="function")try{De.setStrictMode(gs,t)}catch{}}var je=Math.clz32?Math.clz32:hE,cE=Math.log,fE=Math.LN2;function hE(t){return t>>>=0,t===0?32:31-(cE(t)/fE|0)|0}var Pr=256,Gr=262144,qr=4194304;function Hi(t){var e=t&42;if(e!==0)return e;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Hr(t,e,a){var l=t.pendingLanes;if(l===0)return 0;var o=0,f=t.suspendedLanes,p=t.pingedLanes;t=t.warmLanes;var y=l&134217727;return y!==0?(l=y&~f,l!==0?o=Hi(l):(p&=y,p!==0?o=Hi(p):a||(a=y&~t,a!==0&&(o=Hi(a))))):(y=l&~f,y!==0?o=Hi(y):p!==0?o=Hi(p):a||(a=l&~t,a!==0&&(o=Hi(a)))),o===0?0:e!==0&&e!==o&&(e&f)===0&&(f=o&-o,a=e&-e,f>=a||f===32&&(a&4194048)!==0)?e:o}function ms(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function dE(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function id(){var t=qr;return qr<<=1,(qr&62914560)===0&&(qr=4194304),t}function uo(t){for(var e=[],a=0;31>a;a++)e.push(t);return e}function ys(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function _E(t,e,a,l,o,f){var p=t.pendingLanes;t.pendingLanes=a,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=a,t.entangledLanes&=a,t.errorRecoveryDisabledLanes&=a,t.shellSuspendCounter=0;var y=t.entanglements,O=t.expirationTimes,z=t.hiddenUpdates;for(a=p&~a;0<a;){var q=31-je(a),V=1<<q;y[q]=0,O[q]=-1;var B=z[q];if(B!==null)for(z[q]=null,q=0;q<B.length;q++){var D=B[q];D!==null&&(D.lane&=-536870913)}a&=~V}l!==0&&ad(t,l,0),f!==0&&o===0&&t.tag!==0&&(t.suspendedLanes|=f&~(p&~e))}function ad(t,e,a){t.pendingLanes|=e,t.suspendedLanes&=~e;var l=31-je(e);t.entangledLanes|=e,t.entanglements[l]=t.entanglements[l]|1073741824|a&261930}function sd(t,e){var a=t.entangledLanes|=e;for(t=t.entanglements;a;){var l=31-je(a),o=1<<l;o&e|t[l]&e&&(t[l]|=e),a&=~o}}function rd(t,e){var a=e&-e;return a=(a&42)!==0?1:oo(a),(a&(t.suspendedLanes|e))!==0?0:a}function oo(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function co(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function ld(){var t=Q.p;return t!==0?t:(t=window.event,t===void 0?32:Vg(t.type))}function ud(t,e){var a=Q.p;try{return Q.p=t,e()}finally{Q.p=a}}var _i=Math.random().toString(36).slice(2),ce="__reactFiber$"+_i,Ae="__reactProps$"+_i,ba="__reactContainer$"+_i,fo="__reactEvents$"+_i,pE="__reactListeners$"+_i,gE="__reactHandles$"+_i,od="__reactResources$"+_i,vs="__reactMarker$"+_i;function ho(t){delete t[ce],delete t[Ae],delete t[fo],delete t[pE],delete t[gE]}function Ta(t){var e=t[ce];if(e)return e;for(var a=t.parentNode;a;){if(e=a[ba]||a[ce]){if(a=e.alternate,e.child!==null||a!==null&&a.child!==null)for(t=Lg(t);t!==null;){if(a=t[ce])return a;t=Lg(t)}return e}t=a,a=t.parentNode}return null}function Sa(t){if(t=t[ce]||t[ba]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function Es(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(r(33))}function Aa(t){var e=t[od];return e||(e=t[od]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function le(t){t[vs]=!0}var cd=new Set,fd={};function $i(t,e){Oa(t,e),Oa(t+"Capture",e)}function Oa(t,e){for(fd[t]=e,t=0;t<e.length;t++)cd.add(e[t])}var mE=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),hd={},dd={};function yE(t){return so.call(dd,t)?!0:so.call(hd,t)?!1:mE.test(t)?dd[t]=!0:(hd[t]=!0,!1)}function $r(t,e,a){if(yE(e))if(a===null)t.removeAttribute(e);else{switch(typeof a){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var l=e.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+a)}}function Kr(t,e,a){if(a===null)t.removeAttribute(e);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+a)}}function Gn(t,e,a,l){if(l===null)t.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(a);return}t.setAttributeNS(e,a,""+l)}}function Je(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function _d(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function vE(t,e,a){var l=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var o=l.get,f=l.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return o.call(this)},set:function(p){a=""+p,f.call(this,p)}}),Object.defineProperty(t,e,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(p){a=""+p},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function _o(t){if(!t._valueTracker){var e=_d(t)?"checked":"value";t._valueTracker=vE(t,e,""+t[e])}}function pd(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var a=e.getValue(),l="";return t&&(l=_d(t)?t.checked?"true":"false":t.value),t=l,t!==a?(e.setValue(t),!0):!1}function Vr(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var EE=/[\n"\\]/g;function tn(t){return t.replace(EE,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function po(t,e,a,l,o,f,p,y){t.name="",p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"?t.type=p:t.removeAttribute("type"),e!=null?p==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Je(e)):t.value!==""+Je(e)&&(t.value=""+Je(e)):p!=="submit"&&p!=="reset"||t.removeAttribute("value"),e!=null?go(t,p,Je(e)):a!=null?go(t,p,Je(a)):l!=null&&t.removeAttribute("value"),o==null&&f!=null&&(t.defaultChecked=!!f),o!=null&&(t.checked=o&&typeof o!="function"&&typeof o!="symbol"),y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?t.name=""+Je(y):t.removeAttribute("name")}function gd(t,e,a,l,o,f,p,y){if(f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(t.type=f),e!=null||a!=null){if(!(f!=="submit"&&f!=="reset"||e!=null)){_o(t);return}a=a!=null?""+Je(a):"",e=e!=null?""+Je(e):a,y||e===t.value||(t.value=e),t.defaultValue=e}l=l??o,l=typeof l!="function"&&typeof l!="symbol"&&!!l,t.checked=y?t.checked:!!l,t.defaultChecked=!!l,p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(t.name=p),_o(t)}function go(t,e,a){e==="number"&&Vr(t.ownerDocument)===t||t.defaultValue===""+a||(t.defaultValue=""+a)}function Na(t,e,a,l){if(t=t.options,e){e={};for(var o=0;o<a.length;o++)e["$"+a[o]]=!0;for(a=0;a<t.length;a++)o=e.hasOwnProperty("$"+t[a].value),t[a].selected!==o&&(t[a].selected=o),o&&l&&(t[a].defaultSelected=!0)}else{for(a=""+Je(a),e=null,o=0;o<t.length;o++){if(t[o].value===a){t[o].selected=!0,l&&(t[o].defaultSelected=!0);return}e!==null||t[o].disabled||(e=t[o])}e!==null&&(e.selected=!0)}}function md(t,e,a){if(e!=null&&(e=""+Je(e),e!==t.value&&(t.value=e),a==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=a!=null?""+Je(a):""}function yd(t,e,a,l){if(e==null){if(l!=null){if(a!=null)throw Error(r(92));if(J(l)){if(1<l.length)throw Error(r(93));l=l[0]}a=l}a==null&&(a=""),e=a}a=Je(e),t.defaultValue=a,l=t.textContent,l===a&&l!==""&&l!==null&&(t.value=l),_o(t)}function Ra(t,e){if(e){var a=t.firstChild;if(a&&a===t.lastChild&&a.nodeType===3){a.nodeValue=e;return}}t.textContent=e}var bE=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function vd(t,e,a){var l=e.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?l?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":l?t.setProperty(e,a):typeof a!="number"||a===0||bE.has(e)?e==="float"?t.cssFloat=a:t[e]=(""+a).trim():t[e]=a+"px"}function Ed(t,e,a){if(e!=null&&typeof e!="object")throw Error(r(62));if(t=t.style,a!=null){for(var l in a)!a.hasOwnProperty(l)||e!=null&&e.hasOwnProperty(l)||(l.indexOf("--")===0?t.setProperty(l,""):l==="float"?t.cssFloat="":t[l]="");for(var o in e)l=e[o],e.hasOwnProperty(o)&&a[o]!==l&&vd(t,o,l)}else for(var f in e)e.hasOwnProperty(f)&&vd(t,f,e[f])}function mo(t){if(t.indexOf("-")===-1)return!1;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var TE=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["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"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["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"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["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"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),SE=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Yr(t){return SE.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function qn(){}var yo=null;function vo(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var xa=null,Ca=null;function bd(t){var e=Sa(t);if(e&&(t=e.stateNode)){var a=t[Ae]||null;t:switch(t=e.stateNode,e.type){case"input":if(po(t,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),e=a.name,a.type==="radio"&&e!=null){for(a=t;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+tn(""+e)+'"][type="radio"]'),e=0;e<a.length;e++){var l=a[e];if(l!==t&&l.form===t.form){var o=l[Ae]||null;if(!o)throw Error(r(90));po(l,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(e=0;e<a.length;e++)l=a[e],l.form===t.form&&pd(l)}break t;case"textarea":md(t,a.value,a.defaultValue);break t;case"select":e=a.value,e!=null&&Na(t,!!a.multiple,e,!1)}}}var Eo=!1;function Td(t,e,a){if(Eo)return t(e,a);Eo=!0;try{var l=t(e);return l}finally{if(Eo=!1,(xa!==null||Ca!==null)&&(Il(),xa&&(e=xa,t=Ca,Ca=xa=null,bd(e),t)))for(e=0;e<t.length;e++)bd(t[e])}}function bs(t,e){var a=t.stateNode;if(a===null)return null;var l=a[Ae]||null;if(l===null)return null;a=l[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(t=t.type,l=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!l;break t;default:t=!1}if(t)return null;if(a&&typeof a!="function")throw Error(r(231,e,typeof a));return a}var Hn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),bo=!1;if(Hn)try{var Ts={};Object.defineProperty(Ts,"passive",{get:function(){bo=!0}}),window.addEventListener("test",Ts,Ts),window.removeEventListener("test",Ts,Ts)}catch{bo=!1}var pi=null,To=null,Fr=null;function Sd(){if(Fr)return Fr;var t,e=To,a=e.length,l,o="value"in pi?pi.value:pi.textContent,f=o.length;for(t=0;t<a&&e[t]===o[t];t++);var p=a-t;for(l=1;l<=p&&e[a-l]===o[f-l];l++);return Fr=o.slice(t,1<l?1-l:void 0)}function Xr(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function Qr(){return!0}function Ad(){return!1}function Oe(t){function e(a,l,o,f,p){this._reactName=a,this._targetInst=o,this.type=l,this.nativeEvent=f,this.target=p,this.currentTarget=null;for(var y in t)t.hasOwnProperty(y)&&(a=t[y],this[y]=a?a(f):f[y]);return this.isDefaultPrevented=(f.defaultPrevented!=null?f.defaultPrevented:f.returnValue===!1)?Qr:Ad,this.isPropagationStopped=Ad,this}return E(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Qr)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Qr)},persist:function(){},isPersistent:Qr}),e}var Ki={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Zr=Oe(Ki),Ss=E({},Ki,{view:0,detail:0}),AE=Oe(Ss),So,Ao,As,Wr=E({},Ss,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:No,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==As&&(As&&t.type==="mousemove"?(So=t.screenX-As.screenX,Ao=t.screenY-As.screenY):Ao=So=0,As=t),So)},movementY:function(t){return"movementY"in t?t.movementY:Ao}}),Od=Oe(Wr),OE=E({},Wr,{dataTransfer:0}),NE=Oe(OE),RE=E({},Ss,{relatedTarget:0}),Oo=Oe(RE),xE=E({},Ki,{animationName:0,elapsedTime:0,pseudoElement:0}),CE=Oe(xE),LE=E({},Ki,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),wE=Oe(LE),ME=E({},Ki,{data:0}),Nd=Oe(ME),UE={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},IE={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},kE={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function zE(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=kE[t])?!!e[t]:!1}function No(){return zE}var BE=E({},Ss,{key:function(t){if(t.key){var e=UE[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Xr(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?IE[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:No,charCode:function(t){return t.type==="keypress"?Xr(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Xr(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),DE=Oe(BE),jE=E({},Wr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Rd=Oe(jE),PE=E({},Ss,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:No}),GE=Oe(PE),qE=E({},Ki,{propertyName:0,elapsedTime:0,pseudoElement:0}),HE=Oe(qE),$E=E({},Wr,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),KE=Oe($E),VE=E({},Ki,{newState:0,oldState:0}),YE=Oe(VE),FE=[9,13,27,32],Ro=Hn&&"CompositionEvent"in window,Os=null;Hn&&"documentMode"in document&&(Os=document.documentMode);var XE=Hn&&"TextEvent"in window&&!Os,xd=Hn&&(!Ro||Os&&8<Os&&11>=Os),Cd=" ",Ld=!1;function wd(t,e){switch(t){case"keyup":return FE.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Md(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var La=!1;function QE(t,e){switch(t){case"compositionend":return Md(e);case"keypress":return e.which!==32?null:(Ld=!0,Cd);case"textInput":return t=e.data,t===Cd&&Ld?null:t;default:return null}}function ZE(t,e){if(La)return t==="compositionend"||!Ro&&wd(t,e)?(t=Sd(),Fr=To=pi=null,La=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return xd&&e.locale!=="ko"?null:e.data;default:return null}}var WE={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Ud(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!WE[t.type]:e==="textarea"}function Id(t,e,a,l){xa?Ca?Ca.push(l):Ca=[l]:xa=l,e=Gl(e,"onChange"),0<e.length&&(a=new Zr("onChange","change",null,a,l),t.push({event:a,listeners:e}))}var Ns=null,Rs=null;function JE(t){gg(t,0)}function Jr(t){var e=Es(t);if(pd(e))return t}function kd(t,e){if(t==="change")return e}var zd=!1;if(Hn){var xo;if(Hn){var Co="oninput"in document;if(!Co){var Bd=document.createElement("div");Bd.setAttribute("oninput","return;"),Co=typeof Bd.oninput=="function"}xo=Co}else xo=!1;zd=xo&&(!document.documentMode||9<document.documentMode)}function Dd(){Ns&&(Ns.detachEvent("onpropertychange",jd),Rs=Ns=null)}function jd(t){if(t.propertyName==="value"&&Jr(Rs)){var e=[];Id(e,Rs,t,vo(t)),Td(JE,e)}}function tb(t,e,a){t==="focusin"?(Dd(),Ns=e,Rs=a,Ns.attachEvent("onpropertychange",jd)):t==="focusout"&&Dd()}function eb(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Jr(Rs)}function nb(t,e){if(t==="click")return Jr(e)}function ib(t,e){if(t==="input"||t==="change")return Jr(e)}function ab(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Pe=typeof Object.is=="function"?Object.is:ab;function xs(t,e){if(Pe(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var a=Object.keys(t),l=Object.keys(e);if(a.length!==l.length)return!1;for(l=0;l<a.length;l++){var o=a[l];if(!so.call(e,o)||!Pe(t[o],e[o]))return!1}return!0}function Pd(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Gd(t,e){var a=Pd(t);t=0;for(var l;a;){if(a.nodeType===3){if(l=t+a.textContent.length,t<=e&&l>=e)return{node:a,offset:e-t};t=l}t:{for(;a;){if(a.nextSibling){a=a.nextSibling;break t}a=a.parentNode}a=void 0}a=Pd(a)}}function qd(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?qd(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Hd(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Vr(t.document);e instanceof t.HTMLIFrameElement;){try{var a=typeof e.contentWindow.location.href=="string"}catch{a=!1}if(a)t=e.contentWindow;else break;e=Vr(t.document)}return e}function Lo(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var sb=Hn&&"documentMode"in document&&11>=document.documentMode,wa=null,wo=null,Cs=null,Mo=!1;function $d(t,e,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Mo||wa==null||wa!==Vr(l)||(l=wa,"selectionStart"in l&&Lo(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Cs&&xs(Cs,l)||(Cs=l,l=Gl(wo,"onSelect"),0<l.length&&(e=new Zr("onSelect","select",null,e,a),t.push({event:e,listeners:l}),e.target=wa)))}function Vi(t,e){var a={};return a[t.toLowerCase()]=e.toLowerCase(),a["Webkit"+t]="webkit"+e,a["Moz"+t]="moz"+e,a}var Ma={animationend:Vi("Animation","AnimationEnd"),animationiteration:Vi("Animation","AnimationIteration"),animationstart:Vi("Animation","AnimationStart"),transitionrun:Vi("Transition","TransitionRun"),transitionstart:Vi("Transition","TransitionStart"),transitioncancel:Vi("Transition","TransitionCancel"),transitionend:Vi("Transition","TransitionEnd")},Uo={},Kd={};Hn&&(Kd=document.createElement("div").style,"AnimationEvent"in window||(delete Ma.animationend.animation,delete Ma.animationiteration.animation,delete Ma.animationstart.animation),"TransitionEvent"in window||delete Ma.transitionend.transition);function Yi(t){if(Uo[t])return Uo[t];if(!Ma[t])return t;var e=Ma[t],a;for(a in e)if(e.hasOwnProperty(a)&&a in Kd)return Uo[t]=e[a];return t}var Vd=Yi("animationend"),Yd=Yi("animationiteration"),Fd=Yi("animationstart"),rb=Yi("transitionrun"),lb=Yi("transitionstart"),ub=Yi("transitioncancel"),Xd=Yi("transitionend"),Qd=new Map,Io="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Io.push("scrollEnd");function mn(t,e){Qd.set(t,e),$i(e,[t])}var tl=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},en=[],Ua=0,ko=0;function el(){for(var t=Ua,e=ko=Ua=0;e<t;){var a=en[e];en[e++]=null;var l=en[e];en[e++]=null;var o=en[e];en[e++]=null;var f=en[e];if(en[e++]=null,l!==null&&o!==null){var p=l.pending;p===null?o.next=o:(o.next=p.next,p.next=o),l.pending=o}f!==0&&Zd(a,o,f)}}function nl(t,e,a,l){en[Ua++]=t,en[Ua++]=e,en[Ua++]=a,en[Ua++]=l,ko|=l,t.lanes|=l,t=t.alternate,t!==null&&(t.lanes|=l)}function zo(t,e,a,l){return nl(t,e,a,l),il(t)}function Fi(t,e){return nl(t,null,null,e),il(t)}function Zd(t,e,a){t.lanes|=a;var l=t.alternate;l!==null&&(l.lanes|=a);for(var o=!1,f=t.return;f!==null;)f.childLanes|=a,l=f.alternate,l!==null&&(l.childLanes|=a),f.tag===22&&(t=f.stateNode,t===null||t._visibility&1||(o=!0)),t=f,f=f.return;return t.tag===3?(f=t.stateNode,o&&e!==null&&(o=31-je(a),t=f.hiddenUpdates,l=t[o],l===null?t[o]=[e]:l.push(e),e.lane=a|536870912),f):null}function il(t){if(50<Zs)throw Zs=0,Kc=null,Error(r(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var Ia={};function ob(t,e,a,l){this.tag=t,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ge(t,e,a,l){return new ob(t,e,a,l)}function Bo(t){return t=t.prototype,!(!t||!t.isReactComponent)}function $n(t,e){var a=t.alternate;return a===null?(a=Ge(t.tag,e,t.key,t.mode),a.elementType=t.elementType,a.type=t.type,a.stateNode=t.stateNode,a.alternate=t,t.alternate=a):(a.pendingProps=e,a.type=t.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=t.flags&65011712,a.childLanes=t.childLanes,a.lanes=t.lanes,a.child=t.child,a.memoizedProps=t.memoizedProps,a.memoizedState=t.memoizedState,a.updateQueue=t.updateQueue,e=t.dependencies,a.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},a.sibling=t.sibling,a.index=t.index,a.ref=t.ref,a.refCleanup=t.refCleanup,a}function Wd(t,e){t.flags&=65011714;var a=t.alternate;return a===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=a.childLanes,t.lanes=a.lanes,t.child=a.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=a.memoizedProps,t.memoizedState=a.memoizedState,t.updateQueue=a.updateQueue,t.type=a.type,e=a.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function al(t,e,a,l,o,f){var p=0;if(l=t,typeof t=="function")Bo(t)&&(p=1);else if(typeof t=="string")p=_T(t,a,W.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case Y:return t=Ge(31,a,e,o),t.elementType=Y,t.lanes=f,t;case F:return Xi(a.children,o,f,e);case S:p=8,o|=24;break;case v:return t=Ge(12,a,e,o|2),t.elementType=v,t.lanes=f,t;case X:return t=Ge(13,a,e,o),t.elementType=X,t.lanes=f,t;case U:return t=Ge(19,a,e,o),t.elementType=U,t.lanes=f,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case w:p=10;break t;case T:p=9;break t;case I:p=11;break t;case L:p=14;break t;case C:p=16,l=null;break t}p=29,a=Error(r(130,t===null?"null":typeof t,"")),l=null}return e=Ge(p,a,e,o),e.elementType=t,e.type=l,e.lanes=f,e}function Xi(t,e,a,l){return t=Ge(7,t,l,e),t.lanes=a,t}function Do(t,e,a){return t=Ge(6,t,null,e),t.lanes=a,t}function Jd(t){var e=Ge(18,null,null,0);return e.stateNode=t,e}function jo(t,e,a){return e=Ge(4,t.children!==null?t.children:[],t.key,e),e.lanes=a,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var t_=new WeakMap;function nn(t,e){if(typeof t=="object"&&t!==null){var a=t_.get(t);return a!==void 0?a:(e={value:t,source:e,stack:Jh(e)},t_.set(t,e),e)}return{value:t,source:e,stack:Jh(e)}}var ka=[],za=0,sl=null,Ls=0,an=[],sn=0,gi=null,xn=1,Cn="";function Kn(t,e){ka[za++]=Ls,ka[za++]=sl,sl=t,Ls=e}function e_(t,e,a){an[sn++]=xn,an[sn++]=Cn,an[sn++]=gi,gi=t;var l=xn;t=Cn;var o=32-je(l)-1;l&=~(1<<o),a+=1;var f=32-je(e)+o;if(30<f){var p=o-o%5;f=(l&(1<<p)-1).toString(32),l>>=p,o-=p,xn=1<<32-je(e)+o|a<<o|l,Cn=f+t}else xn=1<<f|a<<o|l,Cn=t}function Po(t){t.return!==null&&(Kn(t,1),e_(t,1,0))}function Go(t){for(;t===sl;)sl=ka[--za],ka[za]=null,Ls=ka[--za],ka[za]=null;for(;t===gi;)gi=an[--sn],an[sn]=null,Cn=an[--sn],an[sn]=null,xn=an[--sn],an[sn]=null}function n_(t,e){an[sn++]=xn,an[sn++]=Cn,an[sn++]=gi,xn=e.id,Cn=e.overflow,gi=t}var fe=null,Pt=null,Rt=!1,mi=null,rn=!1,qo=Error(r(519));function yi(t){var e=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ws(nn(e,t)),qo}function i_(t){var e=t.stateNode,a=t.type,l=t.memoizedProps;switch(e[ce]=t,e[Ae]=l,a){case"dialog":Tt("cancel",e),Tt("close",e);break;case"iframe":case"object":case"embed":Tt("load",e);break;case"video":case"audio":for(a=0;a<Js.length;a++)Tt(Js[a],e);break;case"source":Tt("error",e);break;case"img":case"image":case"link":Tt("error",e),Tt("load",e);break;case"details":Tt("toggle",e);break;case"input":Tt("invalid",e),gd(e,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":Tt("invalid",e);break;case"textarea":Tt("invalid",e),yd(e,l.value,l.defaultValue,l.children)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||e.textContent===""+a||l.suppressHydrationWarning===!0||Eg(e.textContent,a)?(l.popover!=null&&(Tt("beforetoggle",e),Tt("toggle",e)),l.onScroll!=null&&Tt("scroll",e),l.onScrollEnd!=null&&Tt("scrollend",e),l.onClick!=null&&(e.onclick=qn),e=!0):e=!1,e||yi(t,!0)}function a_(t){for(fe=t.return;fe;)switch(fe.tag){case 5:case 31:case 13:rn=!1;return;case 27:case 3:rn=!0;return;default:fe=fe.return}}function Ba(t){if(t!==fe)return!1;if(!Rt)return a_(t),Rt=!0,!1;var e=t.tag,a;if((a=e!==3&&e!==27)&&((a=e===5)&&(a=t.type,a=!(a!=="form"&&a!=="button")||lf(t.type,t.memoizedProps)),a=!a),a&&Pt&&yi(t),a_(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));Pt=Cg(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));Pt=Cg(t)}else e===27?(e=Pt,Mi(t.type)?(t=hf,hf=null,Pt=t):Pt=e):Pt=fe?un(t.stateNode.nextSibling):null;return!0}function Qi(){Pt=fe=null,Rt=!1}function Ho(){var t=mi;return t!==null&&(Ce===null?Ce=t:Ce.push.apply(Ce,t),mi=null),t}function ws(t){mi===null?mi=[t]:mi.push(t)}var $o=N(null),Zi=null,Vn=null;function vi(t,e,a){Z($o,e._currentValue),e._currentValue=a}function Yn(t){t._currentValue=$o.current,$($o)}function Ko(t,e,a){for(;t!==null;){var l=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,l!==null&&(l.childLanes|=e)):l!==null&&(l.childLanes&e)!==e&&(l.childLanes|=e),t===a)break;t=t.return}}function Vo(t,e,a,l){var o=t.child;for(o!==null&&(o.return=t);o!==null;){var f=o.dependencies;if(f!==null){var p=o.child;f=f.firstContext;t:for(;f!==null;){var y=f;f=o;for(var O=0;O<e.length;O++)if(y.context===e[O]){f.lanes|=a,y=f.alternate,y!==null&&(y.lanes|=a),Ko(f.return,a,t),l||(p=null);break t}f=y.next}}else if(o.tag===18){if(p=o.return,p===null)throw Error(r(341));p.lanes|=a,f=p.alternate,f!==null&&(f.lanes|=a),Ko(p,a,t),p=null}else p=o.child;if(p!==null)p.return=o;else for(p=o;p!==null;){if(p===t){p=null;break}if(o=p.sibling,o!==null){o.return=p.return,p=o;break}p=p.return}o=p}}function Da(t,e,a,l){t=null;for(var o=e,f=!1;o!==null;){if(!f){if((o.flags&524288)!==0)f=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var p=o.alternate;if(p===null)throw Error(r(387));if(p=p.memoizedProps,p!==null){var y=o.type;Pe(o.pendingProps.value,p.value)||(t!==null?t.push(y):t=[y])}}else if(o===gt.current){if(p=o.alternate,p===null)throw Error(r(387));p.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(t!==null?t.push(ar):t=[ar])}o=o.return}t!==null&&Vo(e,t,a,l),e.flags|=262144}function rl(t){for(t=t.firstContext;t!==null;){if(!Pe(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Wi(t){Zi=t,Vn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function he(t){return s_(Zi,t)}function ll(t,e){return Zi===null&&Wi(t),s_(t,e)}function s_(t,e){var a=e._currentValue;if(e={context:e,memoizedValue:a,next:null},Vn===null){if(t===null)throw Error(r(308));Vn=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else Vn=Vn.next=e;return a}var cb=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(a,l){t.push(l)}};this.abort=function(){e.aborted=!0,t.forEach(function(a){return a()})}},fb=i.unstable_scheduleCallback,hb=i.unstable_NormalPriority,Jt={$$typeof:w,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Yo(){return{controller:new cb,data:new Map,refCount:0}}function Ms(t){t.refCount--,t.refCount===0&&fb(hb,function(){t.controller.abort()})}var Us=null,Fo=0,ja=0,Pa=null;function db(t,e){if(Us===null){var a=Us=[];Fo=0,ja=Zc(),Pa={status:"pending",value:void 0,then:function(l){a.push(l)}}}return Fo++,e.then(r_,r_),e}function r_(){if(--Fo===0&&Us!==null){Pa!==null&&(Pa.status="fulfilled");var t=Us;Us=null,ja=0,Pa=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function _b(t,e){var a=[],l={status:"pending",value:null,reason:null,then:function(o){a.push(o)}};return t.then(function(){l.status="fulfilled",l.value=e;for(var o=0;o<a.length;o++)(0,a[o])(e)},function(o){for(l.status="rejected",l.reason=o,o=0;o<a.length;o++)(0,a[o])(void 0)}),l}var l_=M.S;M.S=function(t,e){$p=Be(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&db(t,e),l_!==null&&l_(t,e)};var Ji=N(null);function Xo(){var t=Ji.current;return t!==null?t:Bt.pooledCache}function ul(t,e){e===null?Z(Ji,Ji.current):Z(Ji,e.pool)}function u_(){var t=Xo();return t===null?null:{parent:Jt._currentValue,pool:t}}var Ga=Error(r(460)),Qo=Error(r(474)),ol=Error(r(542)),cl={then:function(){}};function o_(t){return t=t.status,t==="fulfilled"||t==="rejected"}function c_(t,e,a){switch(a=t[a],a===void 0?t.push(e):a!==e&&(e.then(qn,qn),e=a),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,h_(t),t;default:if(typeof e.status=="string")e.then(qn,qn);else{if(t=Bt,t!==null&&100<t.shellSuspendCounter)throw Error(r(482));t=e,t.status="pending",t.then(function(l){if(e.status==="pending"){var o=e;o.status="fulfilled",o.value=l}},function(l){if(e.status==="pending"){var o=e;o.status="rejected",o.reason=l}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,h_(t),t}throw ea=e,Ga}}function ta(t){try{var e=t._init;return e(t._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(ea=a,Ga):a}}var ea=null;function f_(){if(ea===null)throw Error(r(459));var t=ea;return ea=null,t}function h_(t){if(t===Ga||t===ol)throw Error(r(483))}var qa=null,Is=0;function fl(t){var e=Is;return Is+=1,qa===null&&(qa=[]),c_(qa,t,e)}function ks(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function hl(t,e){throw e.$$typeof===A?Error(r(525)):(t=Object.prototype.toString.call(e),Error(r(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function d_(t){function e(x,R){if(t){var k=x.deletions;k===null?(x.deletions=[R],x.flags|=16):k.push(R)}}function a(x,R){if(!t)return null;for(;R!==null;)e(x,R),R=R.sibling;return null}function l(x){for(var R=new Map;x!==null;)x.key!==null?R.set(x.key,x):R.set(x.index,x),x=x.sibling;return R}function o(x,R){return x=$n(x,R),x.index=0,x.sibling=null,x}function f(x,R,k){return x.index=k,t?(k=x.alternate,k!==null?(k=k.index,k<R?(x.flags|=67108866,R):k):(x.flags|=67108866,R)):(x.flags|=1048576,R)}function p(x){return t&&x.alternate===null&&(x.flags|=67108866),x}function y(x,R,k,K){return R===null||R.tag!==6?(R=Do(k,x.mode,K),R.return=x,R):(R=o(R,k),R.return=x,R)}function O(x,R,k,K){var lt=k.type;return lt===F?q(x,R,k.props.children,K,k.key):R!==null&&(R.elementType===lt||typeof lt=="object"&&lt!==null&&lt.$$typeof===C&&ta(lt)===R.type)?(R=o(R,k.props),ks(R,k),R.return=x,R):(R=al(k.type,k.key,k.props,null,x.mode,K),ks(R,k),R.return=x,R)}function z(x,R,k,K){return R===null||R.tag!==4||R.stateNode.containerInfo!==k.containerInfo||R.stateNode.implementation!==k.implementation?(R=jo(k,x.mode,K),R.return=x,R):(R=o(R,k.children||[]),R.return=x,R)}function q(x,R,k,K,lt){return R===null||R.tag!==7?(R=Xi(k,x.mode,K,lt),R.return=x,R):(R=o(R,k),R.return=x,R)}function V(x,R,k){if(typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint")return R=Do(""+R,x.mode,k),R.return=x,R;if(typeof R=="object"&&R!==null){switch(R.$$typeof){case j:return k=al(R.type,R.key,R.props,null,x.mode,k),ks(k,R),k.return=x,k;case H:return R=jo(R,x.mode,k),R.return=x,R;case C:return R=ta(R),V(x,R,k)}if(J(R)||G(R))return R=Xi(R,x.mode,k,null),R.return=x,R;if(typeof R.then=="function")return V(x,fl(R),k);if(R.$$typeof===w)return V(x,ll(x,R),k);hl(x,R)}return null}function B(x,R,k,K){var lt=R!==null?R.key:null;if(typeof k=="string"&&k!==""||typeof k=="number"||typeof k=="bigint")return lt!==null?null:y(x,R,""+k,K);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case j:return k.key===lt?O(x,R,k,K):null;case H:return k.key===lt?z(x,R,k,K):null;case C:return k=ta(k),B(x,R,k,K)}if(J(k)||G(k))return lt!==null?null:q(x,R,k,K,null);if(typeof k.then=="function")return B(x,R,fl(k),K);if(k.$$typeof===w)return B(x,R,ll(x,k),K);hl(x,k)}return null}function D(x,R,k,K,lt){if(typeof K=="string"&&K!==""||typeof K=="number"||typeof K=="bigint")return x=x.get(k)||null,y(R,x,""+K,lt);if(typeof K=="object"&&K!==null){switch(K.$$typeof){case j:return x=x.get(K.key===null?k:K.key)||null,O(R,x,K,lt);case H:return x=x.get(K.key===null?k:K.key)||null,z(R,x,K,lt);case C:return K=ta(K),D(x,R,k,K,lt)}if(J(K)||G(K))return x=x.get(k)||null,q(R,x,K,lt,null);if(typeof K.then=="function")return D(x,R,k,fl(K),lt);if(K.$$typeof===w)return D(x,R,k,ll(R,K),lt);hl(R,K)}return null}function tt(x,R,k,K){for(var lt=null,Ct=null,nt=R,Et=R=0,At=null;nt!==null&&Et<k.length;Et++){nt.index>Et?(At=nt,nt=null):At=nt.sibling;var Lt=B(x,nt,k[Et],K);if(Lt===null){nt===null&&(nt=At);break}t&&nt&&Lt.alternate===null&&e(x,nt),R=f(Lt,R,Et),Ct===null?lt=Lt:Ct.sibling=Lt,Ct=Lt,nt=At}if(Et===k.length)return a(x,nt),Rt&&Kn(x,Et),lt;if(nt===null){for(;Et<k.length;Et++)nt=V(x,k[Et],K),nt!==null&&(R=f(nt,R,Et),Ct===null?lt=nt:Ct.sibling=nt,Ct=nt);return Rt&&Kn(x,Et),lt}for(nt=l(nt);Et<k.length;Et++)At=D(nt,x,Et,k[Et],K),At!==null&&(t&&At.alternate!==null&&nt.delete(At.key===null?Et:At.key),R=f(At,R,Et),Ct===null?lt=At:Ct.sibling=At,Ct=At);return t&&nt.forEach(function(Bi){return e(x,Bi)}),Rt&&Kn(x,Et),lt}function ot(x,R,k,K){if(k==null)throw Error(r(151));for(var lt=null,Ct=null,nt=R,Et=R=0,At=null,Lt=k.next();nt!==null&&!Lt.done;Et++,Lt=k.next()){nt.index>Et?(At=nt,nt=null):At=nt.sibling;var Bi=B(x,nt,Lt.value,K);if(Bi===null){nt===null&&(nt=At);break}t&&nt&&Bi.alternate===null&&e(x,nt),R=f(Bi,R,Et),Ct===null?lt=Bi:Ct.sibling=Bi,Ct=Bi,nt=At}if(Lt.done)return a(x,nt),Rt&&Kn(x,Et),lt;if(nt===null){for(;!Lt.done;Et++,Lt=k.next())Lt=V(x,Lt.value,K),Lt!==null&&(R=f(Lt,R,Et),Ct===null?lt=Lt:Ct.sibling=Lt,Ct=Lt);return Rt&&Kn(x,Et),lt}for(nt=l(nt);!Lt.done;Et++,Lt=k.next())Lt=D(nt,x,Et,Lt.value,K),Lt!==null&&(t&&Lt.alternate!==null&&nt.delete(Lt.key===null?Et:Lt.key),R=f(Lt,R,Et),Ct===null?lt=Lt:Ct.sibling=Lt,Ct=Lt);return t&&nt.forEach(function(OT){return e(x,OT)}),Rt&&Kn(x,Et),lt}function zt(x,R,k,K){if(typeof k=="object"&&k!==null&&k.type===F&&k.key===null&&(k=k.props.children),typeof k=="object"&&k!==null){switch(k.$$typeof){case j:t:{for(var lt=k.key;R!==null;){if(R.key===lt){if(lt=k.type,lt===F){if(R.tag===7){a(x,R.sibling),K=o(R,k.props.children),K.return=x,x=K;break t}}else if(R.elementType===lt||typeof lt=="object"&&lt!==null&&lt.$$typeof===C&&ta(lt)===R.type){a(x,R.sibling),K=o(R,k.props),ks(K,k),K.return=x,x=K;break t}a(x,R);break}else e(x,R);R=R.sibling}k.type===F?(K=Xi(k.props.children,x.mode,K,k.key),K.return=x,x=K):(K=al(k.type,k.key,k.props,null,x.mode,K),ks(K,k),K.return=x,x=K)}return p(x);case H:t:{for(lt=k.key;R!==null;){if(R.key===lt)if(R.tag===4&&R.stateNode.containerInfo===k.containerInfo&&R.stateNode.implementation===k.implementation){a(x,R.sibling),K=o(R,k.children||[]),K.return=x,x=K;break t}else{a(x,R);break}else e(x,R);R=R.sibling}K=jo(k,x.mode,K),K.return=x,x=K}return p(x);case C:return k=ta(k),zt(x,R,k,K)}if(J(k))return tt(x,R,k,K);if(G(k)){if(lt=G(k),typeof lt!="function")throw Error(r(150));return k=lt.call(k),ot(x,R,k,K)}if(typeof k.then=="function")return zt(x,R,fl(k),K);if(k.$$typeof===w)return zt(x,R,ll(x,k),K);hl(x,k)}return typeof k=="string"&&k!==""||typeof k=="number"||typeof k=="bigint"?(k=""+k,R!==null&&R.tag===6?(a(x,R.sibling),K=o(R,k),K.return=x,x=K):(a(x,R),K=Do(k,x.mode,K),K.return=x,x=K),p(x)):a(x,R)}return function(x,R,k,K){try{Is=0;var lt=zt(x,R,k,K);return qa=null,lt}catch(nt){if(nt===Ga||nt===ol)throw nt;var Ct=Ge(29,nt,null,x.mode);return Ct.lanes=K,Ct.return=x,Ct}}}var na=d_(!0),__=d_(!1),Ei=!1;function Zo(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Wo(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function bi(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Ti(t,e,a){var l=t.updateQueue;if(l===null)return null;if(l=l.shared,(wt&2)!==0){var o=l.pending;return o===null?e.next=e:(e.next=o.next,o.next=e),l.pending=e,e=il(t),Zd(t,null,a),e}return nl(t,l,e,a),il(t)}function zs(t,e,a){if(e=e.updateQueue,e!==null&&(e=e.shared,(a&4194048)!==0)){var l=e.lanes;l&=t.pendingLanes,a|=l,e.lanes=a,sd(t,a)}}function Jo(t,e){var a=t.updateQueue,l=t.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var o=null,f=null;if(a=a.firstBaseUpdate,a!==null){do{var p={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};f===null?o=f=p:f=f.next=p,a=a.next}while(a!==null);f===null?o=f=e:f=f.next=e}else o=f=e;a={baseState:l.baseState,firstBaseUpdate:o,lastBaseUpdate:f,shared:l.shared,callbacks:l.callbacks},t.updateQueue=a;return}t=a.lastBaseUpdate,t===null?a.firstBaseUpdate=e:t.next=e,a.lastBaseUpdate=e}var tc=!1;function Bs(){if(tc){var t=Pa;if(t!==null)throw t}}function Ds(t,e,a,l){tc=!1;var o=t.updateQueue;Ei=!1;var f=o.firstBaseUpdate,p=o.lastBaseUpdate,y=o.shared.pending;if(y!==null){o.shared.pending=null;var O=y,z=O.next;O.next=null,p===null?f=z:p.next=z,p=O;var q=t.alternate;q!==null&&(q=q.updateQueue,y=q.lastBaseUpdate,y!==p&&(y===null?q.firstBaseUpdate=z:y.next=z,q.lastBaseUpdate=O))}if(f!==null){var V=o.baseState;p=0,q=z=O=null,y=f;do{var B=y.lane&-536870913,D=B!==y.lane;if(D?(St&B)===B:(l&B)===B){B!==0&&B===ja&&(tc=!0),q!==null&&(q=q.next={lane:0,tag:y.tag,payload:y.payload,callback:null,next:null});t:{var tt=t,ot=y;B=e;var zt=a;switch(ot.tag){case 1:if(tt=ot.payload,typeof tt=="function"){V=tt.call(zt,V,B);break t}V=tt;break t;case 3:tt.flags=tt.flags&-65537|128;case 0:if(tt=ot.payload,B=typeof tt=="function"?tt.call(zt,V,B):tt,B==null)break t;V=E({},V,B);break t;case 2:Ei=!0}}B=y.callback,B!==null&&(t.flags|=64,D&&(t.flags|=8192),D=o.callbacks,D===null?o.callbacks=[B]:D.push(B))}else D={lane:B,tag:y.tag,payload:y.payload,callback:y.callback,next:null},q===null?(z=q=D,O=V):q=q.next=D,p|=B;if(y=y.next,y===null){if(y=o.shared.pending,y===null)break;D=y,y=D.next,D.next=null,o.lastBaseUpdate=D,o.shared.pending=null}}while(!0);q===null&&(O=V),o.baseState=O,o.firstBaseUpdate=z,o.lastBaseUpdate=q,f===null&&(o.shared.lanes=0),Ri|=p,t.lanes=p,t.memoizedState=V}}function p_(t,e){if(typeof t!="function")throw Error(r(191,t));t.call(e)}function g_(t,e){var a=t.callbacks;if(a!==null)for(t.callbacks=null,t=0;t<a.length;t++)p_(a[t],e)}var Ha=N(null),dl=N(0);function m_(t,e){t=ni,Z(dl,t),Z(Ha,e),ni=t|e.baseLanes}function ec(){Z(dl,ni),Z(Ha,Ha.current)}function nc(){ni=dl.current,$(Ha),$(dl)}var qe=N(null),ln=null;function Si(t){var e=t.alternate;Z(Qt,Qt.current&1),Z(qe,t),ln===null&&(e===null||Ha.current!==null||e.memoizedState!==null)&&(ln=t)}function ic(t){Z(Qt,Qt.current),Z(qe,t),ln===null&&(ln=t)}function y_(t){t.tag===22?(Z(Qt,Qt.current),Z(qe,t),ln===null&&(ln=t)):Ai()}function Ai(){Z(Qt,Qt.current),Z(qe,qe.current)}function He(t){$(qe),ln===t&&(ln=null),$(Qt)}var Qt=N(0);function _l(t){for(var e=t;e!==null;){if(e.tag===13){var a=e.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||cf(a)||ff(a)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var Fn=0,yt=null,It=null,te=null,pl=!1,$a=!1,ia=!1,gl=0,js=0,Ka=null,pb=0;function Vt(){throw Error(r(321))}function ac(t,e){if(e===null)return!1;for(var a=0;a<e.length&&a<t.length;a++)if(!Pe(t[a],e[a]))return!1;return!0}function sc(t,e,a,l,o,f){return Fn=f,yt=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,M.H=t===null||t.memoizedState===null?ep:Ec,ia=!1,f=a(l,o),ia=!1,$a&&(f=E_(e,a,l,o)),v_(t),f}function v_(t){M.H=qs;var e=It!==null&&It.next!==null;if(Fn=0,te=It=yt=null,pl=!1,js=0,Ka=null,e)throw Error(r(300));t===null||ee||(t=t.dependencies,t!==null&&rl(t)&&(ee=!0))}function E_(t,e,a,l){yt=t;var o=0;do{if($a&&(Ka=null),js=0,$a=!1,25<=o)throw Error(r(301));if(o+=1,te=It=null,t.updateQueue!=null){var f=t.updateQueue;f.lastEffect=null,f.events=null,f.stores=null,f.memoCache!=null&&(f.memoCache.index=0)}M.H=np,f=e(a,l)}while($a);return f}function gb(){var t=M.H,e=t.useState()[0];return e=typeof e.then=="function"?Ps(e):e,t=t.useState()[0],(It!==null?It.memoizedState:null)!==t&&(yt.flags|=1024),e}function rc(){var t=gl!==0;return gl=0,t}function lc(t,e,a){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~a}function uc(t){if(pl){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}pl=!1}Fn=0,te=It=yt=null,$a=!1,js=gl=0,Ka=null}function Ee(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return te===null?yt.memoizedState=te=t:te=te.next=t,te}function Zt(){if(It===null){var t=yt.alternate;t=t!==null?t.memoizedState:null}else t=It.next;var e=te===null?yt.memoizedState:te.next;if(e!==null)te=e,It=t;else{if(t===null)throw yt.alternate===null?Error(r(467)):Error(r(310));It=t,t={memoizedState:It.memoizedState,baseState:It.baseState,baseQueue:It.baseQueue,queue:It.queue,next:null},te===null?yt.memoizedState=te=t:te=te.next=t}return te}function ml(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ps(t){var e=js;return js+=1,Ka===null&&(Ka=[]),t=c_(Ka,t,e),e=yt,(te===null?e.memoizedState:te.next)===null&&(e=e.alternate,M.H=e===null||e.memoizedState===null?ep:Ec),t}function yl(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Ps(t);if(t.$$typeof===w)return he(t)}throw Error(r(438,String(t)))}function oc(t){var e=null,a=yt.updateQueue;if(a!==null&&(e=a.memoCache),e==null){var l=yt.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(e={data:l.data.map(function(o){return o.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),a===null&&(a=ml(),yt.updateQueue=a),a.memoCache=e,a=e.data[e.index],a===void 0)for(a=e.data[e.index]=Array(t),l=0;l<t;l++)a[l]=m;return e.index++,a}function Xn(t,e){return typeof e=="function"?e(t):e}function vl(t){var e=Zt();return cc(e,It,t)}function cc(t,e,a){var l=t.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=a;var o=t.baseQueue,f=l.pending;if(f!==null){if(o!==null){var p=o.next;o.next=f.next,f.next=p}e.baseQueue=o=f,l.pending=null}if(f=t.baseState,o===null)t.memoizedState=f;else{e=o.next;var y=p=null,O=null,z=e,q=!1;do{var V=z.lane&-536870913;if(V!==z.lane?(St&V)===V:(Fn&V)===V){var B=z.revertLane;if(B===0)O!==null&&(O=O.next={lane:0,revertLane:0,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null}),V===ja&&(q=!0);else if((Fn&B)===B){z=z.next,B===ja&&(q=!0);continue}else V={lane:0,revertLane:z.revertLane,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},O===null?(y=O=V,p=f):O=O.next=V,yt.lanes|=B,Ri|=B;V=z.action,ia&&a(f,V),f=z.hasEagerState?z.eagerState:a(f,V)}else B={lane:V,revertLane:z.revertLane,gesture:z.gesture,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},O===null?(y=O=B,p=f):O=O.next=B,yt.lanes|=V,Ri|=V;z=z.next}while(z!==null&&z!==e);if(O===null?p=f:O.next=y,!Pe(f,t.memoizedState)&&(ee=!0,q&&(a=Pa,a!==null)))throw a;t.memoizedState=f,t.baseState=p,t.baseQueue=O,l.lastRenderedState=f}return o===null&&(l.lanes=0),[t.memoizedState,l.dispatch]}function fc(t){var e=Zt(),a=e.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=t;var l=a.dispatch,o=a.pending,f=e.memoizedState;if(o!==null){a.pending=null;var p=o=o.next;do f=t(f,p.action),p=p.next;while(p!==o);Pe(f,e.memoizedState)||(ee=!0),e.memoizedState=f,e.baseQueue===null&&(e.baseState=f),a.lastRenderedState=f}return[f,l]}function b_(t,e,a){var l=yt,o=Zt(),f=Rt;if(f){if(a===void 0)throw Error(r(407));a=a()}else a=e();var p=!Pe((It||o).memoizedState,a);if(p&&(o.memoizedState=a,ee=!0),o=o.queue,_c(A_.bind(null,l,o,t),[t]),o.getSnapshot!==e||p||te!==null&&te.memoizedState.tag&1){if(l.flags|=2048,Va(9,{destroy:void 0},S_.bind(null,l,o,a,e),null),Bt===null)throw Error(r(349));f||(Fn&127)!==0||T_(l,e,a)}return a}function T_(t,e,a){t.flags|=16384,t={getSnapshot:e,value:a},e=yt.updateQueue,e===null?(e=ml(),yt.updateQueue=e,e.stores=[t]):(a=e.stores,a===null?e.stores=[t]:a.push(t))}function S_(t,e,a,l){e.value=a,e.getSnapshot=l,O_(e)&&N_(t)}function A_(t,e,a){return a(function(){O_(e)&&N_(t)})}function O_(t){var e=t.getSnapshot;t=t.value;try{var a=e();return!Pe(t,a)}catch{return!0}}function N_(t){var e=Fi(t,2);e!==null&&Le(e,t,2)}function hc(t){var e=Ee();if(typeof t=="function"){var a=t;if(t=a(),ia){di(!0);try{a()}finally{di(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xn,lastRenderedState:t},e}function R_(t,e,a,l){return t.baseState=a,cc(t,It,typeof l=="function"?l:Xn)}function mb(t,e,a,l,o){if(Tl(t))throw Error(r(485));if(t=e.action,t!==null){var f={payload:o,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(p){f.listeners.push(p)}};M.T!==null?a(!0):f.isTransition=!1,l(f),a=e.pending,a===null?(f.next=e.pending=f,x_(e,f)):(f.next=a.next,e.pending=a.next=f)}}function x_(t,e){var a=e.action,l=e.payload,o=t.state;if(e.isTransition){var f=M.T,p={};M.T=p;try{var y=a(o,l),O=M.S;O!==null&&O(p,y),C_(t,e,y)}catch(z){dc(t,e,z)}finally{f!==null&&p.types!==null&&(f.types=p.types),M.T=f}}else try{f=a(o,l),C_(t,e,f)}catch(z){dc(t,e,z)}}function C_(t,e,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){L_(t,e,l)},function(l){return dc(t,e,l)}):L_(t,e,a)}function L_(t,e,a){e.status="fulfilled",e.value=a,w_(e),t.state=a,e=t.pending,e!==null&&(a=e.next,a===e?t.pending=null:(a=a.next,e.next=a,x_(t,a)))}function dc(t,e,a){var l=t.pending;if(t.pending=null,l!==null){l=l.next;do e.status="rejected",e.reason=a,w_(e),e=e.next;while(e!==l)}t.action=null}function w_(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function M_(t,e){return e}function U_(t,e){if(Rt){var a=Bt.formState;if(a!==null){t:{var l=yt;if(Rt){if(Pt){e:{for(var o=Pt,f=rn;o.nodeType!==8;){if(!f){o=null;break e}if(o=un(o.nextSibling),o===null){o=null;break e}}f=o.data,o=f==="F!"||f==="F"?o:null}if(o){Pt=un(o.nextSibling),l=o.data==="F!";break t}}yi(l)}l=!1}l&&(e=a[0])}}return a=Ee(),a.memoizedState=a.baseState=e,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:M_,lastRenderedState:e},a.queue=l,a=W_.bind(null,yt,l),l.dispatch=a,l=hc(!1),f=vc.bind(null,yt,!1,l.queue),l=Ee(),o={state:e,dispatch:null,action:t,pending:null},l.queue=o,a=mb.bind(null,yt,o,f,a),o.dispatch=a,l.memoizedState=t,[e,a,!1]}function I_(t){var e=Zt();return k_(e,It,t)}function k_(t,e,a){if(e=cc(t,e,M_)[0],t=vl(Xn)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var l=Ps(e)}catch(p){throw p===Ga?ol:p}else l=e;e=Zt();var o=e.queue,f=o.dispatch;return a!==e.memoizedState&&(yt.flags|=2048,Va(9,{destroy:void 0},yb.bind(null,o,a),null)),[l,f,t]}function yb(t,e){t.action=e}function z_(t){var e=Zt(),a=It;if(a!==null)return k_(e,a,t);Zt(),e=e.memoizedState,a=Zt();var l=a.queue.dispatch;return a.memoizedState=t,[e,l,!1]}function Va(t,e,a,l){return t={tag:t,create:a,deps:l,inst:e,next:null},e=yt.updateQueue,e===null&&(e=ml(),yt.updateQueue=e),a=e.lastEffect,a===null?e.lastEffect=t.next=t:(l=a.next,a.next=t,t.next=l,e.lastEffect=t),t}function B_(){return Zt().memoizedState}function El(t,e,a,l){var o=Ee();yt.flags|=t,o.memoizedState=Va(1|e,{destroy:void 0},a,l===void 0?null:l)}function bl(t,e,a,l){var o=Zt();l=l===void 0?null:l;var f=o.memoizedState.inst;It!==null&&l!==null&&ac(l,It.memoizedState.deps)?o.memoizedState=Va(e,f,a,l):(yt.flags|=t,o.memoizedState=Va(1|e,f,a,l))}function D_(t,e){El(8390656,8,t,e)}function _c(t,e){bl(2048,8,t,e)}function vb(t){yt.flags|=4;var e=yt.updateQueue;if(e===null)e=ml(),yt.updateQueue=e,e.events=[t];else{var a=e.events;a===null?e.events=[t]:a.push(t)}}function j_(t){var e=Zt().memoizedState;return vb({ref:e,nextImpl:t}),function(){if((wt&2)!==0)throw Error(r(440));return e.impl.apply(void 0,arguments)}}function P_(t,e){return bl(4,2,t,e)}function G_(t,e){return bl(4,4,t,e)}function q_(t,e){if(typeof e=="function"){t=t();var a=e(t);return function(){typeof a=="function"?a():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function H_(t,e,a){a=a!=null?a.concat([t]):null,bl(4,4,q_.bind(null,e,t),a)}function pc(){}function $_(t,e){var a=Zt();e=e===void 0?null:e;var l=a.memoizedState;return e!==null&&ac(e,l[1])?l[0]:(a.memoizedState=[t,e],t)}function K_(t,e){var a=Zt();e=e===void 0?null:e;var l=a.memoizedState;if(e!==null&&ac(e,l[1]))return l[0];if(l=t(),ia){di(!0);try{t()}finally{di(!1)}}return a.memoizedState=[l,e],l}function gc(t,e,a){return a===void 0||(Fn&1073741824)!==0&&(St&261930)===0?t.memoizedState=e:(t.memoizedState=a,t=Vp(),yt.lanes|=t,Ri|=t,a)}function V_(t,e,a,l){return Pe(a,e)?a:Ha.current!==null?(t=gc(t,a,l),Pe(t,e)||(ee=!0),t):(Fn&42)===0||(Fn&1073741824)!==0&&(St&261930)===0?(ee=!0,t.memoizedState=a):(t=Vp(),yt.lanes|=t,Ri|=t,e)}function Y_(t,e,a,l,o){var f=Q.p;Q.p=f!==0&&8>f?f:8;var p=M.T,y={};M.T=y,vc(t,!1,e,a);try{var O=o(),z=M.S;if(z!==null&&z(y,O),O!==null&&typeof O=="object"&&typeof O.then=="function"){var q=_b(O,l);Gs(t,e,q,Ve(t))}else Gs(t,e,l,Ve(t))}catch(V){Gs(t,e,{then:function(){},status:"rejected",reason:V},Ve())}finally{Q.p=f,p!==null&&y.types!==null&&(p.types=y.types),M.T=p}}function Eb(){}function mc(t,e,a,l){if(t.tag!==5)throw Error(r(476));var o=F_(t).queue;Y_(t,o,e,it,a===null?Eb:function(){return X_(t),a(l)})}function F_(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:it,baseState:it,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xn,lastRenderedState:it},next:null};var a={};return e.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xn,lastRenderedState:a},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function X_(t){var e=F_(t);e.next===null&&(e=t.alternate.memoizedState),Gs(t,e.next.queue,{},Ve())}function yc(){return he(ar)}function Q_(){return Zt().memoizedState}function Z_(){return Zt().memoizedState}function bb(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var a=Ve();t=bi(a);var l=Ti(e,t,a);l!==null&&(Le(l,e,a),zs(l,e,a)),e={cache:Yo()},t.payload=e;return}e=e.return}}function Tb(t,e,a){var l=Ve();a={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Tl(t)?J_(e,a):(a=zo(t,e,a,l),a!==null&&(Le(a,t,l),tp(a,e,l)))}function W_(t,e,a){var l=Ve();Gs(t,e,a,l)}function Gs(t,e,a,l){var o={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Tl(t))J_(e,o);else{var f=t.alternate;if(t.lanes===0&&(f===null||f.lanes===0)&&(f=e.lastRenderedReducer,f!==null))try{var p=e.lastRenderedState,y=f(p,a);if(o.hasEagerState=!0,o.eagerState=y,Pe(y,p))return nl(t,e,o,0),Bt===null&&el(),!1}catch{}if(a=zo(t,e,o,l),a!==null)return Le(a,t,l),tp(a,e,l),!0}return!1}function vc(t,e,a,l){if(l={lane:2,revertLane:Zc(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Tl(t)){if(e)throw Error(r(479))}else e=zo(t,a,l,2),e!==null&&Le(e,t,2)}function Tl(t){var e=t.alternate;return t===yt||e!==null&&e===yt}function J_(t,e){$a=pl=!0;var a=t.pending;a===null?e.next=e:(e.next=a.next,a.next=e),t.pending=e}function tp(t,e,a){if((a&4194048)!==0){var l=e.lanes;l&=t.pendingLanes,a|=l,e.lanes=a,sd(t,a)}}var qs={readContext:he,use:yl,useCallback:Vt,useContext:Vt,useEffect:Vt,useImperativeHandle:Vt,useLayoutEffect:Vt,useInsertionEffect:Vt,useMemo:Vt,useReducer:Vt,useRef:Vt,useState:Vt,useDebugValue:Vt,useDeferredValue:Vt,useTransition:Vt,useSyncExternalStore:Vt,useId:Vt,useHostTransitionStatus:Vt,useFormState:Vt,useActionState:Vt,useOptimistic:Vt,useMemoCache:Vt,useCacheRefresh:Vt};qs.useEffectEvent=Vt;var ep={readContext:he,use:yl,useCallback:function(t,e){return Ee().memoizedState=[t,e===void 0?null:e],t},useContext:he,useEffect:D_,useImperativeHandle:function(t,e,a){a=a!=null?a.concat([t]):null,El(4194308,4,q_.bind(null,e,t),a)},useLayoutEffect:function(t,e){return El(4194308,4,t,e)},useInsertionEffect:function(t,e){El(4,2,t,e)},useMemo:function(t,e){var a=Ee();e=e===void 0?null:e;var l=t();if(ia){di(!0);try{t()}finally{di(!1)}}return a.memoizedState=[l,e],l},useReducer:function(t,e,a){var l=Ee();if(a!==void 0){var o=a(e);if(ia){di(!0);try{a(e)}finally{di(!1)}}}else o=e;return l.memoizedState=l.baseState=o,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:o},l.queue=t,t=t.dispatch=Tb.bind(null,yt,t),[l.memoizedState,t]},useRef:function(t){var e=Ee();return t={current:t},e.memoizedState=t},useState:function(t){t=hc(t);var e=t.queue,a=W_.bind(null,yt,e);return e.dispatch=a,[t.memoizedState,a]},useDebugValue:pc,useDeferredValue:function(t,e){var a=Ee();return gc(a,t,e)},useTransition:function(){var t=hc(!1);return t=Y_.bind(null,yt,t.queue,!0,!1),Ee().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,a){var l=yt,o=Ee();if(Rt){if(a===void 0)throw Error(r(407));a=a()}else{if(a=e(),Bt===null)throw Error(r(349));(St&127)!==0||T_(l,e,a)}o.memoizedState=a;var f={value:a,getSnapshot:e};return o.queue=f,D_(A_.bind(null,l,f,t),[t]),l.flags|=2048,Va(9,{destroy:void 0},S_.bind(null,l,f,a,e),null),a},useId:function(){var t=Ee(),e=Bt.identifierPrefix;if(Rt){var a=Cn,l=xn;a=(l&~(1<<32-je(l)-1)).toString(32)+a,e="_"+e+"R_"+a,a=gl++,0<a&&(e+="H"+a.toString(32)),e+="_"}else a=pb++,e="_"+e+"r_"+a.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:yc,useFormState:U_,useActionState:U_,useOptimistic:function(t){var e=Ee();e.memoizedState=e.baseState=t;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=a,e=vc.bind(null,yt,!0,a),a.dispatch=e,[t,e]},useMemoCache:oc,useCacheRefresh:function(){return Ee().memoizedState=bb.bind(null,yt)},useEffectEvent:function(t){var e=Ee(),a={impl:t};return e.memoizedState=a,function(){if((wt&2)!==0)throw Error(r(440));return a.impl.apply(void 0,arguments)}}},Ec={readContext:he,use:yl,useCallback:$_,useContext:he,useEffect:_c,useImperativeHandle:H_,useInsertionEffect:P_,useLayoutEffect:G_,useMemo:K_,useReducer:vl,useRef:B_,useState:function(){return vl(Xn)},useDebugValue:pc,useDeferredValue:function(t,e){var a=Zt();return V_(a,It.memoizedState,t,e)},useTransition:function(){var t=vl(Xn)[0],e=Zt().memoizedState;return[typeof t=="boolean"?t:Ps(t),e]},useSyncExternalStore:b_,useId:Q_,useHostTransitionStatus:yc,useFormState:I_,useActionState:I_,useOptimistic:function(t,e){var a=Zt();return R_(a,It,t,e)},useMemoCache:oc,useCacheRefresh:Z_};Ec.useEffectEvent=j_;var np={readContext:he,use:yl,useCallback:$_,useContext:he,useEffect:_c,useImperativeHandle:H_,useInsertionEffect:P_,useLayoutEffect:G_,useMemo:K_,useReducer:fc,useRef:B_,useState:function(){return fc(Xn)},useDebugValue:pc,useDeferredValue:function(t,e){var a=Zt();return It===null?gc(a,t,e):V_(a,It.memoizedState,t,e)},useTransition:function(){var t=fc(Xn)[0],e=Zt().memoizedState;return[typeof t=="boolean"?t:Ps(t),e]},useSyncExternalStore:b_,useId:Q_,useHostTransitionStatus:yc,useFormState:z_,useActionState:z_,useOptimistic:function(t,e){var a=Zt();return It!==null?R_(a,It,t,e):(a.baseState=t,[t,a.queue.dispatch])},useMemoCache:oc,useCacheRefresh:Z_};np.useEffectEvent=j_;function bc(t,e,a,l){e=t.memoizedState,a=a(l,e),a=a==null?e:E({},e,a),t.memoizedState=a,t.lanes===0&&(t.updateQueue.baseState=a)}var Tc={enqueueSetState:function(t,e,a){t=t._reactInternals;var l=Ve(),o=bi(l);o.payload=e,a!=null&&(o.callback=a),e=Ti(t,o,l),e!==null&&(Le(e,t,l),zs(e,t,l))},enqueueReplaceState:function(t,e,a){t=t._reactInternals;var l=Ve(),o=bi(l);o.tag=1,o.payload=e,a!=null&&(o.callback=a),e=Ti(t,o,l),e!==null&&(Le(e,t,l),zs(e,t,l))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var a=Ve(),l=bi(a);l.tag=2,e!=null&&(l.callback=e),e=Ti(t,l,a),e!==null&&(Le(e,t,a),zs(e,t,a))}};function ip(t,e,a,l,o,f,p){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(l,f,p):e.prototype&&e.prototype.isPureReactComponent?!xs(a,l)||!xs(o,f):!0}function ap(t,e,a,l){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(a,l),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(a,l),e.state!==t&&Tc.enqueueReplaceState(e,e.state,null)}function aa(t,e){var a=e;if("ref"in e){a={};for(var l in e)l!=="ref"&&(a[l]=e[l])}if(t=t.defaultProps){a===e&&(a=E({},a));for(var o in t)a[o]===void 0&&(a[o]=t[o])}return a}function sp(t){tl(t)}function rp(t){console.error(t)}function lp(t){tl(t)}function Sl(t,e){try{var a=t.onUncaughtError;a(e.value,{componentStack:e.stack})}catch(l){setTimeout(function(){throw l})}}function up(t,e,a){try{var l=t.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function Sc(t,e,a){return a=bi(a),a.tag=3,a.payload={element:null},a.callback=function(){Sl(t,e)},a}function op(t){return t=bi(t),t.tag=3,t}function cp(t,e,a,l){var o=a.type.getDerivedStateFromError;if(typeof o=="function"){var f=l.value;t.payload=function(){return o(f)},t.callback=function(){up(e,a,l)}}var p=a.stateNode;p!==null&&typeof p.componentDidCatch=="function"&&(t.callback=function(){up(e,a,l),typeof o!="function"&&(xi===null?xi=new Set([this]):xi.add(this));var y=l.stack;this.componentDidCatch(l.value,{componentStack:y!==null?y:""})})}function Sb(t,e,a,l,o){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(e=a.alternate,e!==null&&Da(e,a,o,!0),a=qe.current,a!==null){switch(a.tag){case 31:case 13:return ln===null?kl():a.alternate===null&&Yt===0&&(Yt=3),a.flags&=-257,a.flags|=65536,a.lanes=o,l===cl?a.flags|=16384:(e=a.updateQueue,e===null?a.updateQueue=new Set([l]):e.add(l),Fc(t,l,o)),!1;case 22:return a.flags|=65536,l===cl?a.flags|=16384:(e=a.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([l])},a.updateQueue=e):(a=e.retryQueue,a===null?e.retryQueue=new Set([l]):a.add(l)),Fc(t,l,o)),!1}throw Error(r(435,a.tag))}return Fc(t,l,o),kl(),!1}if(Rt)return e=qe.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=o,l!==qo&&(t=Error(r(422),{cause:l}),ws(nn(t,a)))):(l!==qo&&(e=Error(r(423),{cause:l}),ws(nn(e,a))),t=t.current.alternate,t.flags|=65536,o&=-o,t.lanes|=o,l=nn(l,a),o=Sc(t.stateNode,l,o),Jo(t,o),Yt!==4&&(Yt=2)),!1;var f=Error(r(520),{cause:l});if(f=nn(f,a),Qs===null?Qs=[f]:Qs.push(f),Yt!==4&&(Yt=2),e===null)return!0;l=nn(l,a),a=e;do{switch(a.tag){case 3:return a.flags|=65536,t=o&-o,a.lanes|=t,t=Sc(a.stateNode,l,t),Jo(a,t),!1;case 1:if(e=a.type,f=a.stateNode,(a.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||f!==null&&typeof f.componentDidCatch=="function"&&(xi===null||!xi.has(f))))return a.flags|=65536,o&=-o,a.lanes|=o,o=op(o),cp(o,t,a,l),Jo(a,o),!1}a=a.return}while(a!==null);return!1}var Ac=Error(r(461)),ee=!1;function de(t,e,a,l){e.child=t===null?__(e,null,a,l):na(e,t.child,a,l)}function fp(t,e,a,l,o){a=a.render;var f=e.ref;if("ref"in l){var p={};for(var y in l)y!=="ref"&&(p[y]=l[y])}else p=l;return Wi(e),l=sc(t,e,a,p,f,o),y=rc(),t!==null&&!ee?(lc(t,e,o),Qn(t,e,o)):(Rt&&y&&Po(e),e.flags|=1,de(t,e,l,o),e.child)}function hp(t,e,a,l,o){if(t===null){var f=a.type;return typeof f=="function"&&!Bo(f)&&f.defaultProps===void 0&&a.compare===null?(e.tag=15,e.type=f,dp(t,e,f,l,o)):(t=al(a.type,null,l,e,e.mode,o),t.ref=e.ref,t.return=e,e.child=t)}if(f=t.child,!Mc(t,o)){var p=f.memoizedProps;if(a=a.compare,a=a!==null?a:xs,a(p,l)&&t.ref===e.ref)return Qn(t,e,o)}return e.flags|=1,t=$n(f,l),t.ref=e.ref,t.return=e,e.child=t}function dp(t,e,a,l,o){if(t!==null){var f=t.memoizedProps;if(xs(f,l)&&t.ref===e.ref)if(ee=!1,e.pendingProps=l=f,Mc(t,o))(t.flags&131072)!==0&&(ee=!0);else return e.lanes=t.lanes,Qn(t,e,o)}return Oc(t,e,a,l,o)}function _p(t,e,a,l){var o=l.children,f=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((e.flags&128)!==0){if(f=f!==null?f.baseLanes|a:a,t!==null){for(l=e.child=t.child,o=0;l!==null;)o=o|l.lanes|l.childLanes,l=l.sibling;l=o&~f}else l=0,e.child=null;return pp(t,e,f,a,l)}if((a&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&ul(e,f!==null?f.cachePool:null),f!==null?m_(e,f):ec(),y_(e);else return l=e.lanes=536870912,pp(t,e,f!==null?f.baseLanes|a:a,a,l)}else f!==null?(ul(e,f.cachePool),m_(e,f),Ai(),e.memoizedState=null):(t!==null&&ul(e,null),ec(),Ai());return de(t,e,o,a),e.child}function Hs(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function pp(t,e,a,l,o){var f=Xo();return f=f===null?null:{parent:Jt._currentValue,pool:f},e.memoizedState={baseLanes:a,cachePool:f},t!==null&&ul(e,null),ec(),y_(e),t!==null&&Da(t,e,l,!0),e.childLanes=o,null}function Al(t,e){return e=Nl({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function gp(t,e,a){return na(e,t.child,null,a),t=Al(e,e.pendingProps),t.flags|=2,He(e),e.memoizedState=null,t}function Ab(t,e,a){var l=e.pendingProps,o=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(Rt){if(l.mode==="hidden")return t=Al(e,l),e.lanes=536870912,Hs(null,t);if(ic(e),(t=Pt)?(t=xg(t,rn),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:gi!==null?{id:xn,overflow:Cn}:null,retryLane:536870912,hydrationErrors:null},a=Jd(t),a.return=e,e.child=a,fe=e,Pt=null)):t=null,t===null)throw yi(e);return e.lanes=536870912,null}return Al(e,l)}var f=t.memoizedState;if(f!==null){var p=f.dehydrated;if(ic(e),o)if(e.flags&256)e.flags&=-257,e=gp(t,e,a);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(r(558));else if(ee||Da(t,e,a,!1),o=(a&t.childLanes)!==0,ee||o){if(l=Bt,l!==null&&(p=rd(l,a),p!==0&&p!==f.retryLane))throw f.retryLane=p,Fi(t,p),Le(l,t,p),Ac;kl(),e=gp(t,e,a)}else t=f.treeContext,Pt=un(p.nextSibling),fe=e,Rt=!0,mi=null,rn=!1,t!==null&&n_(e,t),e=Al(e,l),e.flags|=4096;return e}return t=$n(t.child,{mode:l.mode,children:l.children}),t.ref=e.ref,e.child=t,t.return=e,t}function Ol(t,e){var a=e.ref;if(a===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(r(284));(t===null||t.ref!==a)&&(e.flags|=4194816)}}function Oc(t,e,a,l,o){return Wi(e),a=sc(t,e,a,l,void 0,o),l=rc(),t!==null&&!ee?(lc(t,e,o),Qn(t,e,o)):(Rt&&l&&Po(e),e.flags|=1,de(t,e,a,o),e.child)}function mp(t,e,a,l,o,f){return Wi(e),e.updateQueue=null,a=E_(e,l,a,o),v_(t),l=rc(),t!==null&&!ee?(lc(t,e,f),Qn(t,e,f)):(Rt&&l&&Po(e),e.flags|=1,de(t,e,a,f),e.child)}function yp(t,e,a,l,o){if(Wi(e),e.stateNode===null){var f=Ia,p=a.contextType;typeof p=="object"&&p!==null&&(f=he(p)),f=new a(l,f),e.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,f.updater=Tc,e.stateNode=f,f._reactInternals=e,f=e.stateNode,f.props=l,f.state=e.memoizedState,f.refs={},Zo(e),p=a.contextType,f.context=typeof p=="object"&&p!==null?he(p):Ia,f.state=e.memoizedState,p=a.getDerivedStateFromProps,typeof p=="function"&&(bc(e,a,p,l),f.state=e.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(p=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),p!==f.state&&Tc.enqueueReplaceState(f,f.state,null),Ds(e,l,f,o),Bs(),f.state=e.memoizedState),typeof f.componentDidMount=="function"&&(e.flags|=4194308),l=!0}else if(t===null){f=e.stateNode;var y=e.memoizedProps,O=aa(a,y);f.props=O;var z=f.context,q=a.contextType;p=Ia,typeof q=="object"&&q!==null&&(p=he(q));var V=a.getDerivedStateFromProps;q=typeof V=="function"||typeof f.getSnapshotBeforeUpdate=="function",y=e.pendingProps!==y,q||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(y||z!==p)&&ap(e,f,l,p),Ei=!1;var B=e.memoizedState;f.state=B,Ds(e,l,f,o),Bs(),z=e.memoizedState,y||B!==z||Ei?(typeof V=="function"&&(bc(e,a,V,l),z=e.memoizedState),(O=Ei||ip(e,a,O,l,B,z,p))?(q||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount()),typeof f.componentDidMount=="function"&&(e.flags|=4194308)):(typeof f.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=l,e.memoizedState=z),f.props=l,f.state=z,f.context=p,l=O):(typeof f.componentDidMount=="function"&&(e.flags|=4194308),l=!1)}else{f=e.stateNode,Wo(t,e),p=e.memoizedProps,q=aa(a,p),f.props=q,V=e.pendingProps,B=f.context,z=a.contextType,O=Ia,typeof z=="object"&&z!==null&&(O=he(z)),y=a.getDerivedStateFromProps,(z=typeof y=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(p!==V||B!==O)&&ap(e,f,l,O),Ei=!1,B=e.memoizedState,f.state=B,Ds(e,l,f,o),Bs();var D=e.memoizedState;p!==V||B!==D||Ei||t!==null&&t.dependencies!==null&&rl(t.dependencies)?(typeof y=="function"&&(bc(e,a,y,l),D=e.memoizedState),(q=Ei||ip(e,a,q,l,B,D,O)||t!==null&&t.dependencies!==null&&rl(t.dependencies))?(z||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(l,D,O),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(l,D,O)),typeof f.componentDidUpdate=="function"&&(e.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof f.componentDidUpdate!="function"||p===t.memoizedProps&&B===t.memoizedState||(e.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||p===t.memoizedProps&&B===t.memoizedState||(e.flags|=1024),e.memoizedProps=l,e.memoizedState=D),f.props=l,f.state=D,f.context=O,l=q):(typeof f.componentDidUpdate!="function"||p===t.memoizedProps&&B===t.memoizedState||(e.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||p===t.memoizedProps&&B===t.memoizedState||(e.flags|=1024),l=!1)}return f=l,Ol(t,e),l=(e.flags&128)!==0,f||l?(f=e.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:f.render(),e.flags|=1,t!==null&&l?(e.child=na(e,t.child,null,o),e.child=na(e,null,a,o)):de(t,e,a,o),e.memoizedState=f.state,t=e.child):t=Qn(t,e,o),t}function vp(t,e,a,l){return Qi(),e.flags|=256,de(t,e,a,l),e.child}var Nc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Rc(t){return{baseLanes:t,cachePool:u_()}}function xc(t,e,a){return t=t!==null?t.childLanes&~a:0,e&&(t|=Ke),t}function Ep(t,e,a){var l=e.pendingProps,o=!1,f=(e.flags&128)!==0,p;if((p=f)||(p=t!==null&&t.memoizedState===null?!1:(Qt.current&2)!==0),p&&(o=!0,e.flags&=-129),p=(e.flags&32)!==0,e.flags&=-33,t===null){if(Rt){if(o?Si(e):Ai(),(t=Pt)?(t=xg(t,rn),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:gi!==null?{id:xn,overflow:Cn}:null,retryLane:536870912,hydrationErrors:null},a=Jd(t),a.return=e,e.child=a,fe=e,Pt=null)):t=null,t===null)throw yi(e);return ff(t)?e.lanes=32:e.lanes=536870912,null}var y=l.children;return l=l.fallback,o?(Ai(),o=e.mode,y=Nl({mode:"hidden",children:y},o),l=Xi(l,o,a,null),y.return=e,l.return=e,y.sibling=l,e.child=y,l=e.child,l.memoizedState=Rc(a),l.childLanes=xc(t,p,a),e.memoizedState=Nc,Hs(null,l)):(Si(e),Cc(e,y))}var O=t.memoizedState;if(O!==null&&(y=O.dehydrated,y!==null)){if(f)e.flags&256?(Si(e),e.flags&=-257,e=Lc(t,e,a)):e.memoizedState!==null?(Ai(),e.child=t.child,e.flags|=128,e=null):(Ai(),y=l.fallback,o=e.mode,l=Nl({mode:"visible",children:l.children},o),y=Xi(y,o,a,null),y.flags|=2,l.return=e,y.return=e,l.sibling=y,e.child=l,na(e,t.child,null,a),l=e.child,l.memoizedState=Rc(a),l.childLanes=xc(t,p,a),e.memoizedState=Nc,e=Hs(null,l));else if(Si(e),ff(y)){if(p=y.nextSibling&&y.nextSibling.dataset,p)var z=p.dgst;p=z,l=Error(r(419)),l.stack="",l.digest=p,ws({value:l,source:null,stack:null}),e=Lc(t,e,a)}else if(ee||Da(t,e,a,!1),p=(a&t.childLanes)!==0,ee||p){if(p=Bt,p!==null&&(l=rd(p,a),l!==0&&l!==O.retryLane))throw O.retryLane=l,Fi(t,l),Le(p,t,l),Ac;cf(y)||kl(),e=Lc(t,e,a)}else cf(y)?(e.flags|=192,e.child=t.child,e=null):(t=O.treeContext,Pt=un(y.nextSibling),fe=e,Rt=!0,mi=null,rn=!1,t!==null&&n_(e,t),e=Cc(e,l.children),e.flags|=4096);return e}return o?(Ai(),y=l.fallback,o=e.mode,O=t.child,z=O.sibling,l=$n(O,{mode:"hidden",children:l.children}),l.subtreeFlags=O.subtreeFlags&65011712,z!==null?y=$n(z,y):(y=Xi(y,o,a,null),y.flags|=2),y.return=e,l.return=e,l.sibling=y,e.child=l,Hs(null,l),l=e.child,y=t.child.memoizedState,y===null?y=Rc(a):(o=y.cachePool,o!==null?(O=Jt._currentValue,o=o.parent!==O?{parent:O,pool:O}:o):o=u_(),y={baseLanes:y.baseLanes|a,cachePool:o}),l.memoizedState=y,l.childLanes=xc(t,p,a),e.memoizedState=Nc,Hs(t.child,l)):(Si(e),a=t.child,t=a.sibling,a=$n(a,{mode:"visible",children:l.children}),a.return=e,a.sibling=null,t!==null&&(p=e.deletions,p===null?(e.deletions=[t],e.flags|=16):p.push(t)),e.child=a,e.memoizedState=null,a)}function Cc(t,e){return e=Nl({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function Nl(t,e){return t=Ge(22,t,null,e),t.lanes=0,t}function Lc(t,e,a){return na(e,t.child,null,a),t=Cc(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function bp(t,e,a){t.lanes|=e;var l=t.alternate;l!==null&&(l.lanes|=e),Ko(t.return,e,a)}function wc(t,e,a,l,o,f){var p=t.memoizedState;p===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:o,treeForkCount:f}:(p.isBackwards=e,p.rendering=null,p.renderingStartTime=0,p.last=l,p.tail=a,p.tailMode=o,p.treeForkCount=f)}function Tp(t,e,a){var l=e.pendingProps,o=l.revealOrder,f=l.tail;l=l.children;var p=Qt.current,y=(p&2)!==0;if(y?(p=p&1|2,e.flags|=128):p&=1,Z(Qt,p),de(t,e,l,a),l=Rt?Ls:0,!y&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&bp(t,a,e);else if(t.tag===19)bp(t,a,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(o){case"forwards":for(a=e.child,o=null;a!==null;)t=a.alternate,t!==null&&_l(t)===null&&(o=a),a=a.sibling;a=o,a===null?(o=e.child,e.child=null):(o=a.sibling,a.sibling=null),wc(e,!1,o,a,f,l);break;case"backwards":case"unstable_legacy-backwards":for(a=null,o=e.child,e.child=null;o!==null;){if(t=o.alternate,t!==null&&_l(t)===null){e.child=o;break}t=o.sibling,o.sibling=a,a=o,o=t}wc(e,!0,a,null,f,l);break;case"together":wc(e,!1,null,null,void 0,l);break;default:e.memoizedState=null}return e.child}function Qn(t,e,a){if(t!==null&&(e.dependencies=t.dependencies),Ri|=e.lanes,(a&e.childLanes)===0)if(t!==null){if(Da(t,e,a,!1),(a&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(r(153));if(e.child!==null){for(t=e.child,a=$n(t,t.pendingProps),e.child=a,a.return=e;t.sibling!==null;)t=t.sibling,a=a.sibling=$n(t,t.pendingProps),a.return=e;a.sibling=null}return e.child}function Mc(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&rl(t)))}function Ob(t,e,a){switch(e.tag){case 3:Kt(e,e.stateNode.containerInfo),vi(e,Jt,t.memoizedState.cache),Qi();break;case 27:case 5:ve(e);break;case 4:Kt(e,e.stateNode.containerInfo);break;case 10:vi(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,ic(e),null;break;case 13:var l=e.memoizedState;if(l!==null)return l.dehydrated!==null?(Si(e),e.flags|=128,null):(a&e.child.childLanes)!==0?Ep(t,e,a):(Si(e),t=Qn(t,e,a),t!==null?t.sibling:null);Si(e);break;case 19:var o=(t.flags&128)!==0;if(l=(a&e.childLanes)!==0,l||(Da(t,e,a,!1),l=(a&e.childLanes)!==0),o){if(l)return Tp(t,e,a);e.flags|=128}if(o=e.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Z(Qt,Qt.current),l)break;return null;case 22:return e.lanes=0,_p(t,e,a,e.pendingProps);case 24:vi(e,Jt,t.memoizedState.cache)}return Qn(t,e,a)}function Sp(t,e,a){if(t!==null)if(t.memoizedProps!==e.pendingProps)ee=!0;else{if(!Mc(t,a)&&(e.flags&128)===0)return ee=!1,Ob(t,e,a);ee=(t.flags&131072)!==0}else ee=!1,Rt&&(e.flags&1048576)!==0&&e_(e,Ls,e.index);switch(e.lanes=0,e.tag){case 16:t:{var l=e.pendingProps;if(t=ta(e.elementType),e.type=t,typeof t=="function")Bo(t)?(l=aa(t,l),e.tag=1,e=yp(null,e,t,l,a)):(e.tag=0,e=Oc(null,e,t,l,a));else{if(t!=null){var o=t.$$typeof;if(o===I){e.tag=11,e=fp(null,e,t,l,a);break t}else if(o===L){e.tag=14,e=hp(null,e,t,l,a);break t}}throw e=at(t)||t,Error(r(306,e,""))}}return e;case 0:return Oc(t,e,e.type,e.pendingProps,a);case 1:return l=e.type,o=aa(l,e.pendingProps),yp(t,e,l,o,a);case 3:t:{if(Kt(e,e.stateNode.containerInfo),t===null)throw Error(r(387));l=e.pendingProps;var f=e.memoizedState;o=f.element,Wo(t,e),Ds(e,l,null,a);var p=e.memoizedState;if(l=p.cache,vi(e,Jt,l),l!==f.cache&&Vo(e,[Jt],a,!0),Bs(),l=p.element,f.isDehydrated)if(f={element:l,isDehydrated:!1,cache:p.cache},e.updateQueue.baseState=f,e.memoizedState=f,e.flags&256){e=vp(t,e,l,a);break t}else if(l!==o){o=nn(Error(r(424)),e),ws(o),e=vp(t,e,l,a);break t}else for(t=e.stateNode.containerInfo,t.nodeType===9?t=t.body:t=t.nodeName==="HTML"?t.ownerDocument.body:t,Pt=un(t.firstChild),fe=e,Rt=!0,mi=null,rn=!0,a=__(e,null,l,a),e.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(Qi(),l===o){e=Qn(t,e,a);break t}de(t,e,l,a)}e=e.child}return e;case 26:return Ol(t,e),t===null?(a=Ig(e.type,null,e.pendingProps,null))?e.memoizedState=a:Rt||(a=e.type,t=e.pendingProps,l=ql(ut.current).createElement(a),l[ce]=e,l[Ae]=t,_e(l,a,t),le(l),e.stateNode=l):e.memoizedState=Ig(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return ve(e),t===null&&Rt&&(l=e.stateNode=wg(e.type,e.pendingProps,ut.current),fe=e,rn=!0,o=Pt,Mi(e.type)?(hf=o,Pt=un(l.firstChild)):Pt=o),de(t,e,e.pendingProps.children,a),Ol(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&Rt&&((o=l=Pt)&&(l=eT(l,e.type,e.pendingProps,rn),l!==null?(e.stateNode=l,fe=e,Pt=un(l.firstChild),rn=!1,o=!0):o=!1),o||yi(e)),ve(e),o=e.type,f=e.pendingProps,p=t!==null?t.memoizedProps:null,l=f.children,lf(o,f)?l=null:p!==null&&lf(o,p)&&(e.flags|=32),e.memoizedState!==null&&(o=sc(t,e,gb,null,null,a),ar._currentValue=o),Ol(t,e),de(t,e,l,a),e.child;case 6:return t===null&&Rt&&((t=a=Pt)&&(a=nT(a,e.pendingProps,rn),a!==null?(e.stateNode=a,fe=e,Pt=null,t=!0):t=!1),t||yi(e)),null;case 13:return Ep(t,e,a);case 4:return Kt(e,e.stateNode.containerInfo),l=e.pendingProps,t===null?e.child=na(e,null,l,a):de(t,e,l,a),e.child;case 11:return fp(t,e,e.type,e.pendingProps,a);case 7:return de(t,e,e.pendingProps,a),e.child;case 8:return de(t,e,e.pendingProps.children,a),e.child;case 12:return de(t,e,e.pendingProps.children,a),e.child;case 10:return l=e.pendingProps,vi(e,e.type,l.value),de(t,e,l.children,a),e.child;case 9:return o=e.type._context,l=e.pendingProps.children,Wi(e),o=he(o),l=l(o),e.flags|=1,de(t,e,l,a),e.child;case 14:return hp(t,e,e.type,e.pendingProps,a);case 15:return dp(t,e,e.type,e.pendingProps,a);case 19:return Tp(t,e,a);case 31:return Ab(t,e,a);case 22:return _p(t,e,a,e.pendingProps);case 24:return Wi(e),l=he(Jt),t===null?(o=Xo(),o===null&&(o=Bt,f=Yo(),o.pooledCache=f,f.refCount++,f!==null&&(o.pooledCacheLanes|=a),o=f),e.memoizedState={parent:l,cache:o},Zo(e),vi(e,Jt,o)):((t.lanes&a)!==0&&(Wo(t,e),Ds(e,null,null,a),Bs()),o=t.memoizedState,f=e.memoizedState,o.parent!==l?(o={parent:l,cache:l},e.memoizedState=o,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=o),vi(e,Jt,l)):(l=f.cache,vi(e,Jt,l),l!==o.cache&&Vo(e,[Jt],a,!0))),de(t,e,e.pendingProps.children,a),e.child;case 29:throw e.pendingProps}throw Error(r(156,e.tag))}function Zn(t){t.flags|=4}function Uc(t,e,a,l,o){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(o&335544128)===o)if(t.stateNode.complete)t.flags|=8192;else if(Qp())t.flags|=8192;else throw ea=cl,Qo}else t.flags&=-16777217}function Ap(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!jg(e))if(Qp())t.flags|=8192;else throw ea=cl,Qo}function Rl(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?id():536870912,t.lanes|=e,Qa|=e)}function $s(t,e){if(!Rt)switch(t.tailMode){case"hidden":e=t.tail;for(var a=null;e!==null;)e.alternate!==null&&(a=e),e=e.sibling;a===null?t.tail=null:a.sibling=null;break;case"collapsed":a=t.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:l.sibling=null}}function Gt(t){var e=t.alternate!==null&&t.alternate.child===t.child,a=0,l=0;if(e)for(var o=t.child;o!==null;)a|=o.lanes|o.childLanes,l|=o.subtreeFlags&65011712,l|=o.flags&65011712,o.return=t,o=o.sibling;else for(o=t.child;o!==null;)a|=o.lanes|o.childLanes,l|=o.subtreeFlags,l|=o.flags,o.return=t,o=o.sibling;return t.subtreeFlags|=l,t.childLanes=a,e}function Nb(t,e,a){var l=e.pendingProps;switch(Go(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Gt(e),null;case 1:return Gt(e),null;case 3:return a=e.stateNode,l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),Yn(Jt),Nt(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(t===null||t.child===null)&&(Ba(e)?Zn(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,Ho())),Gt(e),null;case 26:var o=e.type,f=e.memoizedState;return t===null?(Zn(e),f!==null?(Gt(e),Ap(e,f)):(Gt(e),Uc(e,o,null,l,a))):f?f!==t.memoizedState?(Zn(e),Gt(e),Ap(e,f)):(Gt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==l&&Zn(e),Gt(e),Uc(e,o,t,l,a)),null;case 27:if(ke(e),a=ut.current,o=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&Zn(e);else{if(!l){if(e.stateNode===null)throw Error(r(166));return Gt(e),null}t=W.current,Ba(e)?i_(e):(t=wg(o,l,a),e.stateNode=t,Zn(e))}return Gt(e),null;case 5:if(ke(e),o=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&Zn(e);else{if(!l){if(e.stateNode===null)throw Error(r(166));return Gt(e),null}if(f=W.current,Ba(e))i_(e);else{var p=ql(ut.current);switch(f){case 1:f=p.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:f=p.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":f=p.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":f=p.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":f=p.createElement("div"),f.innerHTML="<script><\/script>",f=f.removeChild(f.firstChild);break;case"select":f=typeof l.is=="string"?p.createElement("select",{is:l.is}):p.createElement("select"),l.multiple?f.multiple=!0:l.size&&(f.size=l.size);break;default:f=typeof l.is=="string"?p.createElement(o,{is:l.is}):p.createElement(o)}}f[ce]=e,f[Ae]=l;t:for(p=e.child;p!==null;){if(p.tag===5||p.tag===6)f.appendChild(p.stateNode);else if(p.tag!==4&&p.tag!==27&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===e)break t;for(;p.sibling===null;){if(p.return===null||p.return===e)break t;p=p.return}p.sibling.return=p.return,p=p.sibling}e.stateNode=f;t:switch(_e(f,o,l),o){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break t;case"img":l=!0;break t;default:l=!1}l&&Zn(e)}}return Gt(e),Uc(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,a),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==l&&Zn(e);else{if(typeof l!="string"&&e.stateNode===null)throw Error(r(166));if(t=ut.current,Ba(e)){if(t=e.stateNode,a=e.memoizedProps,l=null,o=fe,o!==null)switch(o.tag){case 27:case 5:l=o.memoizedProps}t[ce]=e,t=!!(t.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||Eg(t.nodeValue,a)),t||yi(e,!0)}else t=ql(t).createTextNode(l),t[ce]=e,e.stateNode=t}return Gt(e),null;case 31:if(a=e.memoizedState,t===null||t.memoizedState!==null){if(l=Ba(e),a!==null){if(t===null){if(!l)throw Error(r(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(557));t[ce]=e}else Qi(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Gt(e),t=!1}else a=Ho(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=a),t=!0;if(!t)return e.flags&256?(He(e),e):(He(e),null);if((e.flags&128)!==0)throw Error(r(558))}return Gt(e),null;case 13:if(l=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(o=Ba(e),l!==null&&l.dehydrated!==null){if(t===null){if(!o)throw Error(r(318));if(o=e.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));o[ce]=e}else Qi(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Gt(e),o=!1}else o=Ho(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=o),o=!0;if(!o)return e.flags&256?(He(e),e):(He(e),null)}return He(e),(e.flags&128)!==0?(e.lanes=a,e):(a=l!==null,t=t!==null&&t.memoizedState!==null,a&&(l=e.child,o=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(o=l.alternate.memoizedState.cachePool.pool),f=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(f=l.memoizedState.cachePool.pool),f!==o&&(l.flags|=2048)),a!==t&&a&&(e.child.flags|=8192),Rl(e,e.updateQueue),Gt(e),null);case 4:return Nt(),t===null&&ef(e.stateNode.containerInfo),Gt(e),null;case 10:return Yn(e.type),Gt(e),null;case 19:if($(Qt),l=e.memoizedState,l===null)return Gt(e),null;if(o=(e.flags&128)!==0,f=l.rendering,f===null)if(o)$s(l,!1);else{if(Yt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(f=_l(t),f!==null){for(e.flags|=128,$s(l,!1),t=f.updateQueue,e.updateQueue=t,Rl(e,t),e.subtreeFlags=0,t=a,a=e.child;a!==null;)Wd(a,t),a=a.sibling;return Z(Qt,Qt.current&1|2),Rt&&Kn(e,l.treeForkCount),e.child}t=t.sibling}l.tail!==null&&Be()>Ml&&(e.flags|=128,o=!0,$s(l,!1),e.lanes=4194304)}else{if(!o)if(t=_l(f),t!==null){if(e.flags|=128,o=!0,t=t.updateQueue,e.updateQueue=t,Rl(e,t),$s(l,!0),l.tail===null&&l.tailMode==="hidden"&&!f.alternate&&!Rt)return Gt(e),null}else 2*Be()-l.renderingStartTime>Ml&&a!==536870912&&(e.flags|=128,o=!0,$s(l,!1),e.lanes=4194304);l.isBackwards?(f.sibling=e.child,e.child=f):(t=l.last,t!==null?t.sibling=f:e.child=f,l.last=f)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=Be(),t.sibling=null,a=Qt.current,Z(Qt,o?a&1|2:a&1),Rt&&Kn(e,l.treeForkCount),t):(Gt(e),null);case 22:case 23:return He(e),nc(),l=e.memoizedState!==null,t!==null?t.memoizedState!==null!==l&&(e.flags|=8192):l&&(e.flags|=8192),l?(a&536870912)!==0&&(e.flags&128)===0&&(Gt(e),e.subtreeFlags&6&&(e.flags|=8192)):Gt(e),a=e.updateQueue,a!==null&&Rl(e,a.retryQueue),a=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),l=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),l!==a&&(e.flags|=2048),t!==null&&$(Ji),null;case 24:return a=null,t!==null&&(a=t.memoizedState.cache),e.memoizedState.cache!==a&&(e.flags|=2048),Yn(Jt),Gt(e),null;case 25:return null;case 30:return null}throw Error(r(156,e.tag))}function Rb(t,e){switch(Go(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Yn(Jt),Nt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return ke(e),null;case 31:if(e.memoizedState!==null){if(He(e),e.alternate===null)throw Error(r(340));Qi()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(He(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(r(340));Qi()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return $(Qt),null;case 4:return Nt(),null;case 10:return Yn(e.type),null;case 22:case 23:return He(e),nc(),t!==null&&$(Ji),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return Yn(Jt),null;case 25:return null;default:return null}}function Op(t,e){switch(Go(e),e.tag){case 3:Yn(Jt),Nt();break;case 26:case 27:case 5:ke(e);break;case 4:Nt();break;case 31:e.memoizedState!==null&&He(e);break;case 13:He(e);break;case 19:$(Qt);break;case 10:Yn(e.type);break;case 22:case 23:He(e),nc(),t!==null&&$(Ji);break;case 24:Yn(Jt)}}function Ks(t,e){try{var a=e.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var o=l.next;a=o;do{if((a.tag&t)===t){l=void 0;var f=a.create,p=a.inst;l=f(),p.destroy=l}a=a.next}while(a!==o)}}catch(y){Ut(e,e.return,y)}}function Oi(t,e,a){try{var l=e.updateQueue,o=l!==null?l.lastEffect:null;if(o!==null){var f=o.next;l=f;do{if((l.tag&t)===t){var p=l.inst,y=p.destroy;if(y!==void 0){p.destroy=void 0,o=e;var O=a,z=y;try{z()}catch(q){Ut(o,O,q)}}}l=l.next}while(l!==f)}}catch(q){Ut(e,e.return,q)}}function Np(t){var e=t.updateQueue;if(e!==null){var a=t.stateNode;try{g_(e,a)}catch(l){Ut(t,t.return,l)}}}function Rp(t,e,a){a.props=aa(t.type,t.memoizedProps),a.state=t.memoizedState;try{a.componentWillUnmount()}catch(l){Ut(t,e,l)}}function Vs(t,e){try{var a=t.ref;if(a!==null){switch(t.tag){case 26:case 27:case 5:var l=t.stateNode;break;case 30:l=t.stateNode;break;default:l=t.stateNode}typeof a=="function"?t.refCleanup=a(l):a.current=l}}catch(o){Ut(t,e,o)}}function Ln(t,e){var a=t.ref,l=t.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(o){Ut(t,e,o)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(o){Ut(t,e,o)}else a.current=null}function xp(t){var e=t.type,a=t.memoizedProps,l=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break t;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(o){Ut(t,t.return,o)}}function Ic(t,e,a){try{var l=t.stateNode;Xb(l,t.type,a,e),l[Ae]=e}catch(o){Ut(t,t.return,o)}}function Cp(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Mi(t.type)||t.tag===4}function kc(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Cp(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Mi(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function zc(t,e,a){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(t,e):(e=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,e.appendChild(t),a=a._reactRootContainer,a!=null||e.onclick!==null||(e.onclick=qn));else if(l!==4&&(l===27&&Mi(t.type)&&(a=t.stateNode,e=null),t=t.child,t!==null))for(zc(t,e,a),t=t.sibling;t!==null;)zc(t,e,a),t=t.sibling}function xl(t,e,a){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?a.insertBefore(t,e):a.appendChild(t);else if(l!==4&&(l===27&&Mi(t.type)&&(a=t.stateNode),t=t.child,t!==null))for(xl(t,e,a),t=t.sibling;t!==null;)xl(t,e,a),t=t.sibling}function Lp(t){var e=t.stateNode,a=t.memoizedProps;try{for(var l=t.type,o=e.attributes;o.length;)e.removeAttributeNode(o[0]);_e(e,l,a),e[ce]=t,e[Ae]=a}catch(f){Ut(t,t.return,f)}}var Wn=!1,ne=!1,Bc=!1,wp=typeof WeakSet=="function"?WeakSet:Set,ue=null;function xb(t,e){if(t=t.containerInfo,sf=Xl,t=Hd(t),Lo(t)){if("selectionStart"in t)var a={start:t.selectionStart,end:t.selectionEnd};else t:{a=(a=t.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var o=l.anchorOffset,f=l.focusNode;l=l.focusOffset;try{a.nodeType,f.nodeType}catch{a=null;break t}var p=0,y=-1,O=-1,z=0,q=0,V=t,B=null;e:for(;;){for(var D;V!==a||o!==0&&V.nodeType!==3||(y=p+o),V!==f||l!==0&&V.nodeType!==3||(O=p+l),V.nodeType===3&&(p+=V.nodeValue.length),(D=V.firstChild)!==null;)B=V,V=D;for(;;){if(V===t)break e;if(B===a&&++z===o&&(y=p),B===f&&++q===l&&(O=p),(D=V.nextSibling)!==null)break;V=B,B=V.parentNode}V=D}a=y===-1||O===-1?null:{start:y,end:O}}else a=null}a=a||{start:0,end:0}}else a=null;for(rf={focusedElem:t,selectionRange:a},Xl=!1,ue=e;ue!==null;)if(e=ue,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,ue=t;else for(;ue!==null;){switch(e=ue,f=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(a=0;a<t.length;a++)o=t[a],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&f!==null){t=void 0,a=e,o=f.memoizedProps,f=f.memoizedState,l=a.stateNode;try{var tt=aa(a.type,o);t=l.getSnapshotBeforeUpdate(tt,f),l.__reactInternalSnapshotBeforeUpdate=t}catch(ot){Ut(a,a.return,ot)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,a=t.nodeType,a===9)of(t);else if(a===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":of(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(r(163))}if(t=e.sibling,t!==null){t.return=e.return,ue=t;break}ue=e.return}}function Mp(t,e,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:ti(t,a),l&4&&Ks(5,a);break;case 1:if(ti(t,a),l&4)if(t=a.stateNode,e===null)try{t.componentDidMount()}catch(p){Ut(a,a.return,p)}else{var o=aa(a.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(o,e,t.__reactInternalSnapshotBeforeUpdate)}catch(p){Ut(a,a.return,p)}}l&64&&Np(a),l&512&&Vs(a,a.return);break;case 3:if(ti(t,a),l&64&&(t=a.updateQueue,t!==null)){if(e=null,a.child!==null)switch(a.child.tag){case 27:case 5:e=a.child.stateNode;break;case 1:e=a.child.stateNode}try{g_(t,e)}catch(p){Ut(a,a.return,p)}}break;case 27:e===null&&l&4&&Lp(a);case 26:case 5:ti(t,a),e===null&&l&4&&xp(a),l&512&&Vs(a,a.return);break;case 12:ti(t,a);break;case 31:ti(t,a),l&4&&kp(t,a);break;case 13:ti(t,a),l&4&&zp(t,a),l&64&&(t=a.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(a=Bb.bind(null,a),iT(t,a))));break;case 22:if(l=a.memoizedState!==null||Wn,!l){e=e!==null&&e.memoizedState!==null||ne,o=Wn;var f=ne;Wn=l,(ne=e)&&!f?ei(t,a,(a.subtreeFlags&8772)!==0):ti(t,a),Wn=o,ne=f}break;case 30:break;default:ti(t,a)}}function Up(t){var e=t.alternate;e!==null&&(t.alternate=null,Up(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&ho(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var Ht=null,Ne=!1;function Jn(t,e,a){for(a=a.child;a!==null;)Ip(t,e,a),a=a.sibling}function Ip(t,e,a){if(De&&typeof De.onCommitFiberUnmount=="function")try{De.onCommitFiberUnmount(gs,a)}catch{}switch(a.tag){case 26:ne||Ln(a,e),Jn(t,e,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:ne||Ln(a,e);var l=Ht,o=Ne;Mi(a.type)&&(Ht=a.stateNode,Ne=!1),Jn(t,e,a),er(a.stateNode),Ht=l,Ne=o;break;case 5:ne||Ln(a,e);case 6:if(l=Ht,o=Ne,Ht=null,Jn(t,e,a),Ht=l,Ne=o,Ht!==null)if(Ne)try{(Ht.nodeType===9?Ht.body:Ht.nodeName==="HTML"?Ht.ownerDocument.body:Ht).removeChild(a.stateNode)}catch(f){Ut(a,e,f)}else try{Ht.removeChild(a.stateNode)}catch(f){Ut(a,e,f)}break;case 18:Ht!==null&&(Ne?(t=Ht,Ng(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,a.stateNode),as(t)):Ng(Ht,a.stateNode));break;case 4:l=Ht,o=Ne,Ht=a.stateNode.containerInfo,Ne=!0,Jn(t,e,a),Ht=l,Ne=o;break;case 0:case 11:case 14:case 15:Oi(2,a,e),ne||Oi(4,a,e),Jn(t,e,a);break;case 1:ne||(Ln(a,e),l=a.stateNode,typeof l.componentWillUnmount=="function"&&Rp(a,e,l)),Jn(t,e,a);break;case 21:Jn(t,e,a);break;case 22:ne=(l=ne)||a.memoizedState!==null,Jn(t,e,a),ne=l;break;default:Jn(t,e,a)}}function kp(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{as(t)}catch(a){Ut(e,e.return,a)}}}function zp(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{as(t)}catch(a){Ut(e,e.return,a)}}function Cb(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new wp),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new wp),e;default:throw Error(r(435,t.tag))}}function Cl(t,e){var a=Cb(t);e.forEach(function(l){if(!a.has(l)){a.add(l);var o=Db.bind(null,t,l);l.then(o,o)}})}function Re(t,e){var a=e.deletions;if(a!==null)for(var l=0;l<a.length;l++){var o=a[l],f=t,p=e,y=p;t:for(;y!==null;){switch(y.tag){case 27:if(Mi(y.type)){Ht=y.stateNode,Ne=!1;break t}break;case 5:Ht=y.stateNode,Ne=!1;break t;case 3:case 4:Ht=y.stateNode.containerInfo,Ne=!0;break t}y=y.return}if(Ht===null)throw Error(r(160));Ip(f,p,o),Ht=null,Ne=!1,f=o.alternate,f!==null&&(f.return=null),o.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)Bp(e,t),e=e.sibling}var yn=null;function Bp(t,e){var a=t.alternate,l=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Re(e,t),xe(t),l&4&&(Oi(3,t,t.return),Ks(3,t),Oi(5,t,t.return));break;case 1:Re(e,t),xe(t),l&512&&(ne||a===null||Ln(a,a.return)),l&64&&Wn&&(t=t.updateQueue,t!==null&&(l=t.callbacks,l!==null&&(a=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=a===null?l:a.concat(l))));break;case 26:var o=yn;if(Re(e,t),xe(t),l&512&&(ne||a===null||Ln(a,a.return)),l&4){var f=a!==null?a.memoizedState:null;if(l=t.memoizedState,a===null)if(l===null)if(t.stateNode===null){t:{l=t.type,a=t.memoizedProps,o=o.ownerDocument||o;e:switch(l){case"title":f=o.getElementsByTagName("title")[0],(!f||f[vs]||f[ce]||f.namespaceURI==="http://www.w3.org/2000/svg"||f.hasAttribute("itemprop"))&&(f=o.createElement(l),o.head.insertBefore(f,o.querySelector("head > title"))),_e(f,l,a),f[ce]=t,le(f),l=f;break t;case"link":var p=Bg("link","href",o).get(l+(a.href||""));if(p){for(var y=0;y<p.length;y++)if(f=p[y],f.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&f.getAttribute("rel")===(a.rel==null?null:a.rel)&&f.getAttribute("title")===(a.title==null?null:a.title)&&f.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){p.splice(y,1);break e}}f=o.createElement(l),_e(f,l,a),o.head.appendChild(f);break;case"meta":if(p=Bg("meta","content",o).get(l+(a.content||""))){for(y=0;y<p.length;y++)if(f=p[y],f.getAttribute("content")===(a.content==null?null:""+a.content)&&f.getAttribute("name")===(a.name==null?null:a.name)&&f.getAttribute("property")===(a.property==null?null:a.property)&&f.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&f.getAttribute("charset")===(a.charSet==null?null:a.charSet)){p.splice(y,1);break e}}f=o.createElement(l),_e(f,l,a),o.head.appendChild(f);break;default:throw Error(r(468,l))}f[ce]=t,le(f),l=f}t.stateNode=l}else Dg(o,t.type,t.stateNode);else t.stateNode=zg(o,l,t.memoizedProps);else f!==l?(f===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):f.count--,l===null?Dg(o,t.type,t.stateNode):zg(o,l,t.memoizedProps)):l===null&&t.stateNode!==null&&Ic(t,t.memoizedProps,a.memoizedProps)}break;case 27:Re(e,t),xe(t),l&512&&(ne||a===null||Ln(a,a.return)),a!==null&&l&4&&Ic(t,t.memoizedProps,a.memoizedProps);break;case 5:if(Re(e,t),xe(t),l&512&&(ne||a===null||Ln(a,a.return)),t.flags&32){o=t.stateNode;try{Ra(o,"")}catch(tt){Ut(t,t.return,tt)}}l&4&&t.stateNode!=null&&(o=t.memoizedProps,Ic(t,o,a!==null?a.memoizedProps:o)),l&1024&&(Bc=!0);break;case 6:if(Re(e,t),xe(t),l&4){if(t.stateNode===null)throw Error(r(162));l=t.memoizedProps,a=t.stateNode;try{a.nodeValue=l}catch(tt){Ut(t,t.return,tt)}}break;case 3:if(Kl=null,o=yn,yn=Hl(e.containerInfo),Re(e,t),yn=o,xe(t),l&4&&a!==null&&a.memoizedState.isDehydrated)try{as(e.containerInfo)}catch(tt){Ut(t,t.return,tt)}Bc&&(Bc=!1,Dp(t));break;case 4:l=yn,yn=Hl(t.stateNode.containerInfo),Re(e,t),xe(t),yn=l;break;case 12:Re(e,t),xe(t);break;case 31:Re(e,t),xe(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,Cl(t,l)));break;case 13:Re(e,t),xe(t),t.child.flags&8192&&t.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(wl=Be()),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,Cl(t,l)));break;case 22:o=t.memoizedState!==null;var O=a!==null&&a.memoizedState!==null,z=Wn,q=ne;if(Wn=z||o,ne=q||O,Re(e,t),ne=q,Wn=z,xe(t),l&8192)t:for(e=t.stateNode,e._visibility=o?e._visibility&-2:e._visibility|1,o&&(a===null||O||Wn||ne||sa(t)),a=null,e=t;;){if(e.tag===5||e.tag===26){if(a===null){O=a=e;try{if(f=O.stateNode,o)p=f.style,typeof p.setProperty=="function"?p.setProperty("display","none","important"):p.display="none";else{y=O.stateNode;var V=O.memoizedProps.style,B=V!=null&&V.hasOwnProperty("display")?V.display:null;y.style.display=B==null||typeof B=="boolean"?"":(""+B).trim()}}catch(tt){Ut(O,O.return,tt)}}}else if(e.tag===6){if(a===null){O=e;try{O.stateNode.nodeValue=o?"":O.memoizedProps}catch(tt){Ut(O,O.return,tt)}}}else if(e.tag===18){if(a===null){O=e;try{var D=O.stateNode;o?Rg(D,!0):Rg(O.stateNode,!1)}catch(tt){Ut(O,O.return,tt)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;a===e&&(a=null),e=e.return}a===e&&(a=null),e.sibling.return=e.return,e=e.sibling}l&4&&(l=t.updateQueue,l!==null&&(a=l.retryQueue,a!==null&&(l.retryQueue=null,Cl(t,a))));break;case 19:Re(e,t),xe(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,Cl(t,l)));break;case 30:break;case 21:break;default:Re(e,t),xe(t)}}function xe(t){var e=t.flags;if(e&2){try{for(var a,l=t.return;l!==null;){if(Cp(l)){a=l;break}l=l.return}if(a==null)throw Error(r(160));switch(a.tag){case 27:var o=a.stateNode,f=kc(t);xl(t,f,o);break;case 5:var p=a.stateNode;a.flags&32&&(Ra(p,""),a.flags&=-33);var y=kc(t);xl(t,y,p);break;case 3:case 4:var O=a.stateNode.containerInfo,z=kc(t);zc(t,z,O);break;default:throw Error(r(161))}}catch(q){Ut(t,t.return,q)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Dp(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Dp(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function ti(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)Mp(t,e.alternate,e),e=e.sibling}function sa(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:Oi(4,e,e.return),sa(e);break;case 1:Ln(e,e.return);var a=e.stateNode;typeof a.componentWillUnmount=="function"&&Rp(e,e.return,a),sa(e);break;case 27:er(e.stateNode);case 26:case 5:Ln(e,e.return),sa(e);break;case 22:e.memoizedState===null&&sa(e);break;case 30:sa(e);break;default:sa(e)}t=t.sibling}}function ei(t,e,a){for(a=a&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var l=e.alternate,o=t,f=e,p=f.flags;switch(f.tag){case 0:case 11:case 15:ei(o,f,a),Ks(4,f);break;case 1:if(ei(o,f,a),l=f,o=l.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(z){Ut(l,l.return,z)}if(l=f,o=l.updateQueue,o!==null){var y=l.stateNode;try{var O=o.shared.hiddenCallbacks;if(O!==null)for(o.shared.hiddenCallbacks=null,o=0;o<O.length;o++)p_(O[o],y)}catch(z){Ut(l,l.return,z)}}a&&p&64&&Np(f),Vs(f,f.return);break;case 27:Lp(f);case 26:case 5:ei(o,f,a),a&&l===null&&p&4&&xp(f),Vs(f,f.return);break;case 12:ei(o,f,a);break;case 31:ei(o,f,a),a&&p&4&&kp(o,f);break;case 13:ei(o,f,a),a&&p&4&&zp(o,f);break;case 22:f.memoizedState===null&&ei(o,f,a),Vs(f,f.return);break;case 30:break;default:ei(o,f,a)}e=e.sibling}}function Dc(t,e){var a=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==a&&(t!=null&&t.refCount++,a!=null&&Ms(a))}function jc(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Ms(t))}function vn(t,e,a,l){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)jp(t,e,a,l),e=e.sibling}function jp(t,e,a,l){var o=e.flags;switch(e.tag){case 0:case 11:case 15:vn(t,e,a,l),o&2048&&Ks(9,e);break;case 1:vn(t,e,a,l);break;case 3:vn(t,e,a,l),o&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Ms(t)));break;case 12:if(o&2048){vn(t,e,a,l),t=e.stateNode;try{var f=e.memoizedProps,p=f.id,y=f.onPostCommit;typeof y=="function"&&y(p,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(O){Ut(e,e.return,O)}}else vn(t,e,a,l);break;case 31:vn(t,e,a,l);break;case 13:vn(t,e,a,l);break;case 23:break;case 22:f=e.stateNode,p=e.alternate,e.memoizedState!==null?f._visibility&2?vn(t,e,a,l):Ys(t,e):f._visibility&2?vn(t,e,a,l):(f._visibility|=2,Ya(t,e,a,l,(e.subtreeFlags&10256)!==0||!1)),o&2048&&Dc(p,e);break;case 24:vn(t,e,a,l),o&2048&&jc(e.alternate,e);break;default:vn(t,e,a,l)}}function Ya(t,e,a,l,o){for(o=o&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var f=t,p=e,y=a,O=l,z=p.flags;switch(p.tag){case 0:case 11:case 15:Ya(f,p,y,O,o),Ks(8,p);break;case 23:break;case 22:var q=p.stateNode;p.memoizedState!==null?q._visibility&2?Ya(f,p,y,O,o):Ys(f,p):(q._visibility|=2,Ya(f,p,y,O,o)),o&&z&2048&&Dc(p.alternate,p);break;case 24:Ya(f,p,y,O,o),o&&z&2048&&jc(p.alternate,p);break;default:Ya(f,p,y,O,o)}e=e.sibling}}function Ys(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var a=t,l=e,o=l.flags;switch(l.tag){case 22:Ys(a,l),o&2048&&Dc(l.alternate,l);break;case 24:Ys(a,l),o&2048&&jc(l.alternate,l);break;default:Ys(a,l)}e=e.sibling}}var Fs=8192;function Fa(t,e,a){if(t.subtreeFlags&Fs)for(t=t.child;t!==null;)Pp(t,e,a),t=t.sibling}function Pp(t,e,a){switch(t.tag){case 26:Fa(t,e,a),t.flags&Fs&&t.memoizedState!==null&&pT(a,yn,t.memoizedState,t.memoizedProps);break;case 5:Fa(t,e,a);break;case 3:case 4:var l=yn;yn=Hl(t.stateNode.containerInfo),Fa(t,e,a),yn=l;break;case 22:t.memoizedState===null&&(l=t.alternate,l!==null&&l.memoizedState!==null?(l=Fs,Fs=16777216,Fa(t,e,a),Fs=l):Fa(t,e,a));break;default:Fa(t,e,a)}}function Gp(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function Xs(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var a=0;a<e.length;a++){var l=e[a];ue=l,Hp(l,t)}Gp(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)qp(t),t=t.sibling}function qp(t){switch(t.tag){case 0:case 11:case 15:Xs(t),t.flags&2048&&Oi(9,t,t.return);break;case 3:Xs(t);break;case 12:Xs(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,Ll(t)):Xs(t);break;default:Xs(t)}}function Ll(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var a=0;a<e.length;a++){var l=e[a];ue=l,Hp(l,t)}Gp(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Oi(8,e,e.return),Ll(e);break;case 22:a=e.stateNode,a._visibility&2&&(a._visibility&=-3,Ll(e));break;default:Ll(e)}t=t.sibling}}function Hp(t,e){for(;ue!==null;){var a=ue;switch(a.tag){case 0:case 11:case 15:Oi(8,a,e);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var l=a.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Ms(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,ue=l;else t:for(a=t;ue!==null;){l=ue;var o=l.sibling,f=l.return;if(Up(l),l===a){ue=null;break t}if(o!==null){o.return=f,ue=o;break t}ue=f}}}var Lb={getCacheForType:function(t){var e=he(Jt),a=e.data.get(t);return a===void 0&&(a=t(),e.data.set(t,a)),a},cacheSignal:function(){return he(Jt).controller.signal}},wb=typeof WeakMap=="function"?WeakMap:Map,wt=0,Bt=null,bt=null,St=0,Mt=0,$e=null,Ni=!1,Xa=!1,Pc=!1,ni=0,Yt=0,Ri=0,ra=0,Gc=0,Ke=0,Qa=0,Qs=null,Ce=null,qc=!1,wl=0,$p=0,Ml=1/0,Ul=null,xi=null,ie=0,Ci=null,Za=null,ii=0,Hc=0,$c=null,Kp=null,Zs=0,Kc=null;function Ve(){return(wt&2)!==0&&St!==0?St&-St:M.T!==null?Zc():ld()}function Vp(){if(Ke===0)if((St&536870912)===0||Rt){var t=Gr;Gr<<=1,(Gr&3932160)===0&&(Gr=262144),Ke=t}else Ke=536870912;return t=qe.current,t!==null&&(t.flags|=32),Ke}function Le(t,e,a){(t===Bt&&(Mt===2||Mt===9)||t.cancelPendingCommit!==null)&&(Wa(t,0),Li(t,St,Ke,!1)),ys(t,a),((wt&2)===0||t!==Bt)&&(t===Bt&&((wt&2)===0&&(ra|=a),Yt===4&&Li(t,St,Ke,!1)),wn(t))}function Yp(t,e,a){if((wt&6)!==0)throw Error(r(327));var l=!a&&(e&127)===0&&(e&t.expiredLanes)===0||ms(t,e),o=l?Ib(t,e):Yc(t,e,!0),f=l;do{if(o===0){Xa&&!l&&Li(t,e,0,!1);break}else{if(a=t.current.alternate,f&&!Mb(a)){o=Yc(t,e,!1),f=!1;continue}if(o===2){if(f=e,t.errorRecoveryDisabledLanes&f)var p=0;else p=t.pendingLanes&-536870913,p=p!==0?p:p&536870912?536870912:0;if(p!==0){e=p;t:{var y=t;o=Qs;var O=y.current.memoizedState.isDehydrated;if(O&&(Wa(y,p).flags|=256),p=Yc(y,p,!1),p!==2){if(Pc&&!O){y.errorRecoveryDisabledLanes|=f,ra|=f,o=4;break t}f=Ce,Ce=o,f!==null&&(Ce===null?Ce=f:Ce.push.apply(Ce,f))}o=p}if(f=!1,o!==2)continue}}if(o===1){Wa(t,0),Li(t,e,0,!0);break}t:{switch(l=t,f=o,f){case 0:case 1:throw Error(r(345));case 4:if((e&4194048)!==e)break;case 6:Li(l,e,Ke,!Ni);break t;case 2:Ce=null;break;case 3:case 5:break;default:throw Error(r(329))}if((e&62914560)===e&&(o=wl+300-Be(),10<o)){if(Li(l,e,Ke,!Ni),Hr(l,0,!0)!==0)break t;ii=e,l.timeoutHandle=Ag(Fp.bind(null,l,a,Ce,Ul,qc,e,Ke,ra,Qa,Ni,f,"Throttled",-0,0),o);break t}Fp(l,a,Ce,Ul,qc,e,Ke,ra,Qa,Ni,f,null,-0,0)}}break}while(!0);wn(t)}function Fp(t,e,a,l,o,f,p,y,O,z,q,V,B,D){if(t.timeoutHandle=-1,V=e.subtreeFlags,V&8192||(V&16785408)===16785408){V={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:qn},Pp(e,f,V);var tt=(f&62914560)===f?wl-Be():(f&4194048)===f?$p-Be():0;if(tt=gT(V,tt),tt!==null){ii=f,t.cancelPendingCommit=tt(ng.bind(null,t,e,f,a,l,o,p,y,O,q,V,null,B,D)),Li(t,f,p,!z);return}}ng(t,e,f,a,l,o,p,y,O)}function Mb(t){for(var e=t;;){var a=e.tag;if((a===0||a===11||a===15)&&e.flags&16384&&(a=e.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var l=0;l<a.length;l++){var o=a[l],f=o.getSnapshot;o=o.value;try{if(!Pe(f(),o))return!1}catch{return!1}}if(a=e.child,e.subtreeFlags&16384&&a!==null)a.return=e,e=a;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function Li(t,e,a,l){e&=~Gc,e&=~ra,t.suspendedLanes|=e,t.pingedLanes&=~e,l&&(t.warmLanes|=e),l=t.expirationTimes;for(var o=e;0<o;){var f=31-je(o),p=1<<f;l[f]=-1,o&=~p}a!==0&&ad(t,a,e)}function Il(){return(wt&6)===0?(Ws(0),!1):!0}function Vc(){if(bt!==null){if(Mt===0)var t=bt.return;else t=bt,Vn=Zi=null,uc(t),qa=null,Is=0,t=bt;for(;t!==null;)Op(t.alternate,t),t=t.return;bt=null}}function Wa(t,e){var a=t.timeoutHandle;a!==-1&&(t.timeoutHandle=-1,Wb(a)),a=t.cancelPendingCommit,a!==null&&(t.cancelPendingCommit=null,a()),ii=0,Vc(),Bt=t,bt=a=$n(t.current,null),St=e,Mt=0,$e=null,Ni=!1,Xa=ms(t,e),Pc=!1,Qa=Ke=Gc=ra=Ri=Yt=0,Ce=Qs=null,qc=!1,(e&8)!==0&&(e|=e&32);var l=t.entangledLanes;if(l!==0)for(t=t.entanglements,l&=e;0<l;){var o=31-je(l),f=1<<o;e|=t[o],l&=~f}return ni=e,el(),a}function Xp(t,e){yt=null,M.H=qs,e===Ga||e===ol?(e=f_(),Mt=3):e===Qo?(e=f_(),Mt=4):Mt=e===Ac?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,$e=e,bt===null&&(Yt=1,Sl(t,nn(e,t.current)))}function Qp(){var t=qe.current;return t===null?!0:(St&4194048)===St?ln===null:(St&62914560)===St||(St&536870912)!==0?t===ln:!1}function Zp(){var t=M.H;return M.H=qs,t===null?qs:t}function Wp(){var t=M.A;return M.A=Lb,t}function kl(){Yt=4,Ni||(St&4194048)!==St&&qe.current!==null||(Xa=!0),(Ri&134217727)===0&&(ra&134217727)===0||Bt===null||Li(Bt,St,Ke,!1)}function Yc(t,e,a){var l=wt;wt|=2;var o=Zp(),f=Wp();(Bt!==t||St!==e)&&(Ul=null,Wa(t,e)),e=!1;var p=Yt;t:do try{if(Mt!==0&&bt!==null){var y=bt,O=$e;switch(Mt){case 8:Vc(),p=6;break t;case 3:case 2:case 9:case 6:qe.current===null&&(e=!0);var z=Mt;if(Mt=0,$e=null,Ja(t,y,O,z),a&&Xa){p=0;break t}break;default:z=Mt,Mt=0,$e=null,Ja(t,y,O,z)}}Ub(),p=Yt;break}catch(q){Xp(t,q)}while(!0);return e&&t.shellSuspendCounter++,Vn=Zi=null,wt=l,M.H=o,M.A=f,bt===null&&(Bt=null,St=0,el()),p}function Ub(){for(;bt!==null;)Jp(bt)}function Ib(t,e){var a=wt;wt|=2;var l=Zp(),o=Wp();Bt!==t||St!==e?(Ul=null,Ml=Be()+500,Wa(t,e)):Xa=ms(t,e);t:do try{if(Mt!==0&&bt!==null){e=bt;var f=$e;e:switch(Mt){case 1:Mt=0,$e=null,Ja(t,e,f,1);break;case 2:case 9:if(o_(f)){Mt=0,$e=null,tg(e);break}e=function(){Mt!==2&&Mt!==9||Bt!==t||(Mt=7),wn(t)},f.then(e,e);break t;case 3:Mt=7;break t;case 4:Mt=5;break t;case 7:o_(f)?(Mt=0,$e=null,tg(e)):(Mt=0,$e=null,Ja(t,e,f,7));break;case 5:var p=null;switch(bt.tag){case 26:p=bt.memoizedState;case 5:case 27:var y=bt;if(p?jg(p):y.stateNode.complete){Mt=0,$e=null;var O=y.sibling;if(O!==null)bt=O;else{var z=y.return;z!==null?(bt=z,zl(z)):bt=null}break e}}Mt=0,$e=null,Ja(t,e,f,5);break;case 6:Mt=0,$e=null,Ja(t,e,f,6);break;case 8:Vc(),Yt=6;break t;default:throw Error(r(462))}}kb();break}catch(q){Xp(t,q)}while(!0);return Vn=Zi=null,M.H=l,M.A=o,wt=a,bt!==null?0:(Bt=null,St=0,el(),Yt)}function kb(){for(;bt!==null&&!aE();)Jp(bt)}function Jp(t){var e=Sp(t.alternate,t,ni);t.memoizedProps=t.pendingProps,e===null?zl(t):bt=e}function tg(t){var e=t,a=e.alternate;switch(e.tag){case 15:case 0:e=mp(a,e,e.pendingProps,e.type,void 0,St);break;case 11:e=mp(a,e,e.pendingProps,e.type.render,e.ref,St);break;case 5:uc(e);default:Op(a,e),e=bt=Wd(e,ni),e=Sp(a,e,ni)}t.memoizedProps=t.pendingProps,e===null?zl(t):bt=e}function Ja(t,e,a,l){Vn=Zi=null,uc(e),qa=null,Is=0;var o=e.return;try{if(Sb(t,o,e,a,St)){Yt=1,Sl(t,nn(a,t.current)),bt=null;return}}catch(f){if(o!==null)throw bt=o,f;Yt=1,Sl(t,nn(a,t.current)),bt=null;return}e.flags&32768?(Rt||l===1?t=!0:Xa||(St&536870912)!==0?t=!1:(Ni=t=!0,(l===2||l===9||l===3||l===6)&&(l=qe.current,l!==null&&l.tag===13&&(l.flags|=16384))),eg(e,t)):zl(e)}function zl(t){var e=t;do{if((e.flags&32768)!==0){eg(e,Ni);return}t=e.return;var a=Nb(e.alternate,e,ni);if(a!==null){bt=a;return}if(e=e.sibling,e!==null){bt=e;return}bt=e=t}while(e!==null);Yt===0&&(Yt=5)}function eg(t,e){do{var a=Rb(t.alternate,t);if(a!==null){a.flags&=32767,bt=a;return}if(a=t.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!e&&(t=t.sibling,t!==null)){bt=t;return}bt=t=a}while(t!==null);Yt=6,bt=null}function ng(t,e,a,l,o,f,p,y,O){t.cancelPendingCommit=null;do Bl();while(ie!==0);if((wt&6)!==0)throw Error(r(327));if(e!==null){if(e===t.current)throw Error(r(177));if(f=e.lanes|e.childLanes,f|=ko,_E(t,a,f,p,y,O),t===Bt&&(bt=Bt=null,St=0),Za=e,Ci=t,ii=a,Hc=f,$c=o,Kp=l,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,jb(jr,function(){return lg(),null})):(t.callbackNode=null,t.callbackPriority=0),l=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||l){l=M.T,M.T=null,o=Q.p,Q.p=2,p=wt,wt|=4;try{xb(t,e,a)}finally{wt=p,Q.p=o,M.T=l}}ie=1,ig(),ag(),sg()}}function ig(){if(ie===1){ie=0;var t=Ci,e=Za,a=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||a){a=M.T,M.T=null;var l=Q.p;Q.p=2;var o=wt;wt|=4;try{Bp(e,t);var f=rf,p=Hd(t.containerInfo),y=f.focusedElem,O=f.selectionRange;if(p!==y&&y&&y.ownerDocument&&qd(y.ownerDocument.documentElement,y)){if(O!==null&&Lo(y)){var z=O.start,q=O.end;if(q===void 0&&(q=z),"selectionStart"in y)y.selectionStart=z,y.selectionEnd=Math.min(q,y.value.length);else{var V=y.ownerDocument||document,B=V&&V.defaultView||window;if(B.getSelection){var D=B.getSelection(),tt=y.textContent.length,ot=Math.min(O.start,tt),zt=O.end===void 0?ot:Math.min(O.end,tt);!D.extend&&ot>zt&&(p=zt,zt=ot,ot=p);var x=Gd(y,ot),R=Gd(y,zt);if(x&&R&&(D.rangeCount!==1||D.anchorNode!==x.node||D.anchorOffset!==x.offset||D.focusNode!==R.node||D.focusOffset!==R.offset)){var k=V.createRange();k.setStart(x.node,x.offset),D.removeAllRanges(),ot>zt?(D.addRange(k),D.extend(R.node,R.offset)):(k.setEnd(R.node,R.offset),D.addRange(k))}}}}for(V=[],D=y;D=D.parentNode;)D.nodeType===1&&V.push({element:D,left:D.scrollLeft,top:D.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y<V.length;y++){var K=V[y];K.element.scrollLeft=K.left,K.element.scrollTop=K.top}}Xl=!!sf,rf=sf=null}finally{wt=o,Q.p=l,M.T=a}}t.current=e,ie=2}}function ag(){if(ie===2){ie=0;var t=Ci,e=Za,a=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||a){a=M.T,M.T=null;var l=Q.p;Q.p=2;var o=wt;wt|=4;try{Mp(t,e.alternate,e)}finally{wt=o,Q.p=l,M.T=a}}ie=3}}function sg(){if(ie===4||ie===3){ie=0,sE();var t=Ci,e=Za,a=ii,l=Kp;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?ie=5:(ie=0,Za=Ci=null,rg(t,t.pendingLanes));var o=t.pendingLanes;if(o===0&&(xi=null),co(a),e=e.stateNode,De&&typeof De.onCommitFiberRoot=="function")try{De.onCommitFiberRoot(gs,e,void 0,(e.current.flags&128)===128)}catch{}if(l!==null){e=M.T,o=Q.p,Q.p=2,M.T=null;try{for(var f=t.onRecoverableError,p=0;p<l.length;p++){var y=l[p];f(y.value,{componentStack:y.stack})}}finally{M.T=e,Q.p=o}}(ii&3)!==0&&Bl(),wn(t),o=t.pendingLanes,(a&261930)!==0&&(o&42)!==0?t===Kc?Zs++:(Zs=0,Kc=t):Zs=0,Ws(0)}}function rg(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,Ms(e)))}function Bl(){return ig(),ag(),sg(),lg()}function lg(){if(ie!==5)return!1;var t=Ci,e=Hc;Hc=0;var a=co(ii),l=M.T,o=Q.p;try{Q.p=32>a?32:a,M.T=null,a=$c,$c=null;var f=Ci,p=ii;if(ie=0,Za=Ci=null,ii=0,(wt&6)!==0)throw Error(r(331));var y=wt;if(wt|=4,qp(f.current),jp(f,f.current,p,a),wt=y,Ws(0,!1),De&&typeof De.onPostCommitFiberRoot=="function")try{De.onPostCommitFiberRoot(gs,f)}catch{}return!0}finally{Q.p=o,M.T=l,rg(t,e)}}function ug(t,e,a){e=nn(a,e),e=Sc(t.stateNode,e,2),t=Ti(t,e,2),t!==null&&(ys(t,2),wn(t))}function Ut(t,e,a){if(t.tag===3)ug(t,t,a);else for(;e!==null;){if(e.tag===3){ug(e,t,a);break}else if(e.tag===1){var l=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(xi===null||!xi.has(l))){t=nn(a,t),a=op(2),l=Ti(e,a,2),l!==null&&(cp(a,l,e,t),ys(l,2),wn(l));break}}e=e.return}}function Fc(t,e,a){var l=t.pingCache;if(l===null){l=t.pingCache=new wb;var o=new Set;l.set(e,o)}else o=l.get(e),o===void 0&&(o=new Set,l.set(e,o));o.has(a)||(Pc=!0,o.add(a),t=zb.bind(null,t,e,a),e.then(t,t))}function zb(t,e,a){var l=t.pingCache;l!==null&&l.delete(e),t.pingedLanes|=t.suspendedLanes&a,t.warmLanes&=~a,Bt===t&&(St&a)===a&&(Yt===4||Yt===3&&(St&62914560)===St&&300>Be()-wl?(wt&2)===0&&Wa(t,0):Gc|=a,Qa===St&&(Qa=0)),wn(t)}function og(t,e){e===0&&(e=id()),t=Fi(t,e),t!==null&&(ys(t,e),wn(t))}function Bb(t){var e=t.memoizedState,a=0;e!==null&&(a=e.retryLane),og(t,a)}function Db(t,e){var a=0;switch(t.tag){case 31:case 13:var l=t.stateNode,o=t.memoizedState;o!==null&&(a=o.retryLane);break;case 19:l=t.stateNode;break;case 22:l=t.stateNode._retryCache;break;default:throw Error(r(314))}l!==null&&l.delete(e),og(t,a)}function jb(t,e){return ro(t,e)}var Dl=null,ts=null,Xc=!1,jl=!1,Qc=!1,wi=0;function wn(t){t!==ts&&t.next===null&&(ts===null?Dl=ts=t:ts=ts.next=t),jl=!0,Xc||(Xc=!0,Gb())}function Ws(t,e){if(!Qc&&jl){Qc=!0;do for(var a=!1,l=Dl;l!==null;){if(t!==0){var o=l.pendingLanes;if(o===0)var f=0;else{var p=l.suspendedLanes,y=l.pingedLanes;f=(1<<31-je(42|t)+1)-1,f&=o&~(p&~y),f=f&201326741?f&201326741|1:f?f|2:0}f!==0&&(a=!0,dg(l,f))}else f=St,f=Hr(l,l===Bt?f:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(f&3)===0||ms(l,f)||(a=!0,dg(l,f));l=l.next}while(a);Qc=!1}}function Pb(){cg()}function cg(){jl=Xc=!1;var t=0;wi!==0&&Zb()&&(t=wi);for(var e=Be(),a=null,l=Dl;l!==null;){var o=l.next,f=fg(l,e);f===0?(l.next=null,a===null?Dl=o:a.next=o,o===null&&(ts=a)):(a=l,(t!==0||(f&3)!==0)&&(jl=!0)),l=o}ie!==0&&ie!==5||Ws(t),wi!==0&&(wi=0)}function fg(t,e){for(var a=t.suspendedLanes,l=t.pingedLanes,o=t.expirationTimes,f=t.pendingLanes&-62914561;0<f;){var p=31-je(f),y=1<<p,O=o[p];O===-1?((y&a)===0||(y&l)!==0)&&(o[p]=dE(y,e)):O<=e&&(t.expiredLanes|=y),f&=~y}if(e=Bt,a=St,a=Hr(t,t===e?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l=t.callbackNode,a===0||t===e&&(Mt===2||Mt===9)||t.cancelPendingCommit!==null)return l!==null&&l!==null&&lo(l),t.callbackNode=null,t.callbackPriority=0;if((a&3)===0||ms(t,a)){if(e=a&-a,e===t.callbackPriority)return e;switch(l!==null&&lo(l),co(a)){case 2:case 8:a=ed;break;case 32:a=jr;break;case 268435456:a=nd;break;default:a=jr}return l=hg.bind(null,t),a=ro(a,l),t.callbackPriority=e,t.callbackNode=a,e}return l!==null&&l!==null&&lo(l),t.callbackPriority=2,t.callbackNode=null,2}function hg(t,e){if(ie!==0&&ie!==5)return t.callbackNode=null,t.callbackPriority=0,null;var a=t.callbackNode;if(Bl()&&t.callbackNode!==a)return null;var l=St;return l=Hr(t,t===Bt?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l===0?null:(Yp(t,l,e),fg(t,Be()),t.callbackNode!=null&&t.callbackNode===a?hg.bind(null,t):null)}function dg(t,e){if(Bl())return null;Yp(t,e,!0)}function Gb(){Jb(function(){(wt&6)!==0?ro(td,Pb):cg()})}function Zc(){if(wi===0){var t=ja;t===0&&(t=Pr,Pr<<=1,(Pr&261888)===0&&(Pr=256)),wi=t}return wi}function _g(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Yr(""+t)}function pg(t,e){var a=e.ownerDocument.createElement("input");return a.name=e.name,a.value=e.value,t.id&&a.setAttribute("form",t.id),e.parentNode.insertBefore(a,e),t=new FormData(t),a.parentNode.removeChild(a),t}function qb(t,e,a,l,o){if(e==="submit"&&a&&a.stateNode===o){var f=_g((o[Ae]||null).action),p=l.submitter;p&&(e=(e=p[Ae]||null)?_g(e.formAction):p.getAttribute("formAction"),e!==null&&(f=e,p=null));var y=new Zr("action","action",null,l,o);t.push({event:y,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(wi!==0){var O=p?pg(o,p):new FormData(o);mc(a,{pending:!0,data:O,method:o.method,action:f},null,O)}}else typeof f=="function"&&(y.preventDefault(),O=p?pg(o,p):new FormData(o),mc(a,{pending:!0,data:O,method:o.method,action:f},f,O))},currentTarget:o}]})}}for(var Wc=0;Wc<Io.length;Wc++){var Jc=Io[Wc],Hb=Jc.toLowerCase(),$b=Jc[0].toUpperCase()+Jc.slice(1);mn(Hb,"on"+$b)}mn(Vd,"onAnimationEnd"),mn(Yd,"onAnimationIteration"),mn(Fd,"onAnimationStart"),mn("dblclick","onDoubleClick"),mn("focusin","onFocus"),mn("focusout","onBlur"),mn(rb,"onTransitionRun"),mn(lb,"onTransitionStart"),mn(ub,"onTransitionCancel"),mn(Xd,"onTransitionEnd"),Oa("onMouseEnter",["mouseout","mouseover"]),Oa("onMouseLeave",["mouseout","mouseover"]),Oa("onPointerEnter",["pointerout","pointerover"]),Oa("onPointerLeave",["pointerout","pointerover"]),$i("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),$i("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),$i("onBeforeInput",["compositionend","keypress","textInput","paste"]),$i("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),$i("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),$i("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Js="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Kb=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Js));function gg(t,e){e=(e&4)!==0;for(var a=0;a<t.length;a++){var l=t[a],o=l.event;l=l.listeners;t:{var f=void 0;if(e)for(var p=l.length-1;0<=p;p--){var y=l[p],O=y.instance,z=y.currentTarget;if(y=y.listener,O!==f&&o.isPropagationStopped())break t;f=y,o.currentTarget=z;try{f(o)}catch(q){tl(q)}o.currentTarget=null,f=O}else for(p=0;p<l.length;p++){if(y=l[p],O=y.instance,z=y.currentTarget,y=y.listener,O!==f&&o.isPropagationStopped())break t;f=y,o.currentTarget=z;try{f(o)}catch(q){tl(q)}o.currentTarget=null,f=O}}}}function Tt(t,e){var a=e[fo];a===void 0&&(a=e[fo]=new Set);var l=t+"__bubble";a.has(l)||(mg(e,t,2,!1),a.add(l))}function tf(t,e,a){var l=0;e&&(l|=4),mg(a,t,l,e)}var Pl="_reactListening"+Math.random().toString(36).slice(2);function ef(t){if(!t[Pl]){t[Pl]=!0,cd.forEach(function(a){a!=="selectionchange"&&(Kb.has(a)||tf(a,!1,t),tf(a,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Pl]||(e[Pl]=!0,tf("selectionchange",!1,e))}}function mg(t,e,a,l){switch(Vg(e)){case 2:var o=vT;break;case 8:o=ET;break;default:o=mf}a=o.bind(null,e,a,t),o=void 0,!bo||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(o=!0),l?o!==void 0?t.addEventListener(e,a,{capture:!0,passive:o}):t.addEventListener(e,a,!0):o!==void 0?t.addEventListener(e,a,{passive:o}):t.addEventListener(e,a,!1)}function nf(t,e,a,l,o){var f=l;if((e&1)===0&&(e&2)===0&&l!==null)t:for(;;){if(l===null)return;var p=l.tag;if(p===3||p===4){var y=l.stateNode.containerInfo;if(y===o)break;if(p===4)for(p=l.return;p!==null;){var O=p.tag;if((O===3||O===4)&&p.stateNode.containerInfo===o)return;p=p.return}for(;y!==null;){if(p=Ta(y),p===null)return;if(O=p.tag,O===5||O===6||O===26||O===27){l=f=p;continue t}y=y.parentNode}}l=l.return}Td(function(){var z=f,q=vo(a),V=[];t:{var B=Qd.get(t);if(B!==void 0){var D=Zr,tt=t;switch(t){case"keypress":if(Xr(a)===0)break t;case"keydown":case"keyup":D=DE;break;case"focusin":tt="focus",D=Oo;break;case"focusout":tt="blur",D=Oo;break;case"beforeblur":case"afterblur":D=Oo;break;case"click":if(a.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":D=Od;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":D=NE;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":D=GE;break;case Vd:case Yd:case Fd:D=CE;break;case Xd:D=HE;break;case"scroll":case"scrollend":D=AE;break;case"wheel":D=KE;break;case"copy":case"cut":case"paste":D=wE;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":D=Rd;break;case"toggle":case"beforetoggle":D=YE}var ot=(e&4)!==0,zt=!ot&&(t==="scroll"||t==="scrollend"),x=ot?B!==null?B+"Capture":null:B;ot=[];for(var R=z,k;R!==null;){var K=R;if(k=K.stateNode,K=K.tag,K!==5&&K!==26&&K!==27||k===null||x===null||(K=bs(R,x),K!=null&&ot.push(tr(R,K,k))),zt)break;R=R.return}0<ot.length&&(B=new D(B,tt,null,a,q),V.push({event:B,listeners:ot}))}}if((e&7)===0){t:{if(B=t==="mouseover"||t==="pointerover",D=t==="mouseout"||t==="pointerout",B&&a!==yo&&(tt=a.relatedTarget||a.fromElement)&&(Ta(tt)||tt[ba]))break t;if((D||B)&&(B=q.window===q?q:(B=q.ownerDocument)?B.defaultView||B.parentWindow:window,D?(tt=a.relatedTarget||a.toElement,D=z,tt=tt?Ta(tt):null,tt!==null&&(zt=c(tt),ot=tt.tag,tt!==zt||ot!==5&&ot!==27&&ot!==6)&&(tt=null)):(D=null,tt=z),D!==tt)){if(ot=Od,K="onMouseLeave",x="onMouseEnter",R="mouse",(t==="pointerout"||t==="pointerover")&&(ot=Rd,K="onPointerLeave",x="onPointerEnter",R="pointer"),zt=D==null?B:Es(D),k=tt==null?B:Es(tt),B=new ot(K,R+"leave",D,a,q),B.target=zt,B.relatedTarget=k,K=null,Ta(q)===z&&(ot=new ot(x,R+"enter",tt,a,q),ot.target=k,ot.relatedTarget=zt,K=ot),zt=K,D&&tt)e:{for(ot=Vb,x=D,R=tt,k=0,K=x;K;K=ot(K))k++;K=0;for(var lt=R;lt;lt=ot(lt))K++;for(;0<k-K;)x=ot(x),k--;for(;0<K-k;)R=ot(R),K--;for(;k--;){if(x===R||R!==null&&x===R.alternate){ot=x;break e}x=ot(x),R=ot(R)}ot=null}else ot=null;D!==null&&yg(V,B,D,ot,!1),tt!==null&&zt!==null&&yg(V,zt,tt,ot,!0)}}t:{if(B=z?Es(z):window,D=B.nodeName&&B.nodeName.toLowerCase(),D==="select"||D==="input"&&B.type==="file")var Ct=kd;else if(Ud(B))if(zd)Ct=ib;else{Ct=eb;var nt=tb}else D=B.nodeName,!D||D.toLowerCase()!=="input"||B.type!=="checkbox"&&B.type!=="radio"?z&&mo(z.elementType)&&(Ct=kd):Ct=nb;if(Ct&&(Ct=Ct(t,z))){Id(V,Ct,a,q);break t}nt&&nt(t,B,z),t==="focusout"&&z&&B.type==="number"&&z.memoizedProps.value!=null&&go(B,"number",B.value)}switch(nt=z?Es(z):window,t){case"focusin":(Ud(nt)||nt.contentEditable==="true")&&(wa=nt,wo=z,Cs=null);break;case"focusout":Cs=wo=wa=null;break;case"mousedown":Mo=!0;break;case"contextmenu":case"mouseup":case"dragend":Mo=!1,$d(V,a,q);break;case"selectionchange":if(sb)break;case"keydown":case"keyup":$d(V,a,q)}var Et;if(Ro)t:{switch(t){case"compositionstart":var At="onCompositionStart";break t;case"compositionend":At="onCompositionEnd";break t;case"compositionupdate":At="onCompositionUpdate";break t}At=void 0}else La?wd(t,a)&&(At="onCompositionEnd"):t==="keydown"&&a.keyCode===229&&(At="onCompositionStart");At&&(xd&&a.locale!=="ko"&&(La||At!=="onCompositionStart"?At==="onCompositionEnd"&&La&&(Et=Sd()):(pi=q,To="value"in pi?pi.value:pi.textContent,La=!0)),nt=Gl(z,At),0<nt.length&&(At=new Nd(At,t,null,a,q),V.push({event:At,listeners:nt}),Et?At.data=Et:(Et=Md(a),Et!==null&&(At.data=Et)))),(Et=XE?QE(t,a):ZE(t,a))&&(At=Gl(z,"onBeforeInput"),0<At.length&&(nt=new Nd("onBeforeInput","beforeinput",null,a,q),V.push({event:nt,listeners:At}),nt.data=Et)),qb(V,t,z,a,q)}gg(V,e)})}function tr(t,e,a){return{instance:t,listener:e,currentTarget:a}}function Gl(t,e){for(var a=e+"Capture",l=[];t!==null;){var o=t,f=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||f===null||(o=bs(t,a),o!=null&&l.unshift(tr(t,o,f)),o=bs(t,e),o!=null&&l.push(tr(t,o,f))),t.tag===3)return l;t=t.return}return[]}function Vb(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function yg(t,e,a,l,o){for(var f=e._reactName,p=[];a!==null&&a!==l;){var y=a,O=y.alternate,z=y.stateNode;if(y=y.tag,O!==null&&O===l)break;y!==5&&y!==26&&y!==27||z===null||(O=z,o?(z=bs(a,f),z!=null&&p.unshift(tr(a,z,O))):o||(z=bs(a,f),z!=null&&p.push(tr(a,z,O)))),a=a.return}p.length!==0&&t.push({event:e,listeners:p})}var Yb=/\r\n?/g,Fb=/\u0000|\uFFFD/g;function vg(t){return(typeof t=="string"?t:""+t).replace(Yb,`
9
+ `).replace(Fb,"")}function Eg(t,e){return e=vg(e),vg(t)===e}function kt(t,e,a,l,o,f){switch(a){case"children":typeof l=="string"?e==="body"||e==="textarea"&&l===""||Ra(t,l):(typeof l=="number"||typeof l=="bigint")&&e!=="body"&&Ra(t,""+l);break;case"className":Kr(t,"class",l);break;case"tabIndex":Kr(t,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Kr(t,a,l);break;case"style":Ed(t,l,f);break;case"data":if(e!=="object"){Kr(t,"data",l);break}case"src":case"href":if(l===""&&(e!=="a"||a!=="href")){t.removeAttribute(a);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(a);break}l=Yr(""+l),t.setAttribute(a,l);break;case"action":case"formAction":if(typeof l=="function"){t.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof f=="function"&&(a==="formAction"?(e!=="input"&&kt(t,e,"name",o.name,o,null),kt(t,e,"formEncType",o.formEncType,o,null),kt(t,e,"formMethod",o.formMethod,o,null),kt(t,e,"formTarget",o.formTarget,o,null)):(kt(t,e,"encType",o.encType,o,null),kt(t,e,"method",o.method,o,null),kt(t,e,"target",o.target,o,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(a);break}l=Yr(""+l),t.setAttribute(a,l);break;case"onClick":l!=null&&(t.onclick=qn);break;case"onScroll":l!=null&&Tt("scroll",t);break;case"onScrollEnd":l!=null&&Tt("scrollend",t);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(a=l.__html,a!=null){if(o.children!=null)throw Error(r(60));t.innerHTML=a}}break;case"multiple":t.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":t.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){t.removeAttribute("xlink:href");break}a=Yr(""+l),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(a,""+l):t.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(a,""):t.removeAttribute(a);break;case"capture":case"download":l===!0?t.setAttribute(a,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(a,l):t.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?t.setAttribute(a,l):t.removeAttribute(a);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?t.removeAttribute(a):t.setAttribute(a,l);break;case"popover":Tt("beforetoggle",t),Tt("toggle",t),$r(t,"popover",l);break;case"xlinkActuate":Gn(t,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":Gn(t,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":Gn(t,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":Gn(t,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":Gn(t,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":Gn(t,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":Gn(t,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":Gn(t,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":Gn(t,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":$r(t,"is",l);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=TE.get(a)||a,$r(t,a,l))}}function af(t,e,a,l,o,f){switch(a){case"style":Ed(t,l,f);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(a=l.__html,a!=null){if(o.children!=null)throw Error(r(60));t.innerHTML=a}}break;case"children":typeof l=="string"?Ra(t,l):(typeof l=="number"||typeof l=="bigint")&&Ra(t,""+l);break;case"onScroll":l!=null&&Tt("scroll",t);break;case"onScrollEnd":l!=null&&Tt("scrollend",t);break;case"onClick":l!=null&&(t.onclick=qn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!fd.hasOwnProperty(a))t:{if(a[0]==="o"&&a[1]==="n"&&(o=a.endsWith("Capture"),e=a.slice(2,o?a.length-7:void 0),f=t[Ae]||null,f=f!=null?f[a]:null,typeof f=="function"&&t.removeEventListener(e,f,o),typeof l=="function")){typeof f!="function"&&f!==null&&(a in t?t[a]=null:t.hasAttribute(a)&&t.removeAttribute(a)),t.addEventListener(e,l,o);break t}a in t?t[a]=l:l===!0?t.setAttribute(a,""):$r(t,a,l)}}}function _e(t,e,a){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Tt("error",t),Tt("load",t);var l=!1,o=!1,f;for(f in a)if(a.hasOwnProperty(f)){var p=a[f];if(p!=null)switch(f){case"src":l=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:kt(t,e,f,p,a,null)}}o&&kt(t,e,"srcSet",a.srcSet,a,null),l&&kt(t,e,"src",a.src,a,null);return;case"input":Tt("invalid",t);var y=f=p=o=null,O=null,z=null;for(l in a)if(a.hasOwnProperty(l)){var q=a[l];if(q!=null)switch(l){case"name":o=q;break;case"type":p=q;break;case"checked":O=q;break;case"defaultChecked":z=q;break;case"value":f=q;break;case"defaultValue":y=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(r(137,e));break;default:kt(t,e,l,q,a,null)}}gd(t,f,y,O,z,p,o,!1);return;case"select":Tt("invalid",t),l=p=f=null;for(o in a)if(a.hasOwnProperty(o)&&(y=a[o],y!=null))switch(o){case"value":f=y;break;case"defaultValue":p=y;break;case"multiple":l=y;default:kt(t,e,o,y,a,null)}e=f,a=p,t.multiple=!!l,e!=null?Na(t,!!l,e,!1):a!=null&&Na(t,!!l,a,!0);return;case"textarea":Tt("invalid",t),f=o=l=null;for(p in a)if(a.hasOwnProperty(p)&&(y=a[p],y!=null))switch(p){case"value":l=y;break;case"defaultValue":o=y;break;case"children":f=y;break;case"dangerouslySetInnerHTML":if(y!=null)throw Error(r(91));break;default:kt(t,e,p,y,a,null)}yd(t,l,o,f);return;case"option":for(O in a)a.hasOwnProperty(O)&&(l=a[O],l!=null)&&(O==="selected"?t.selected=l&&typeof l!="function"&&typeof l!="symbol":kt(t,e,O,l,a,null));return;case"dialog":Tt("beforetoggle",t),Tt("toggle",t),Tt("cancel",t),Tt("close",t);break;case"iframe":case"object":Tt("load",t);break;case"video":case"audio":for(l=0;l<Js.length;l++)Tt(Js[l],t);break;case"image":Tt("error",t),Tt("load",t);break;case"details":Tt("toggle",t);break;case"embed":case"source":case"link":Tt("error",t),Tt("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(z in a)if(a.hasOwnProperty(z)&&(l=a[z],l!=null))switch(z){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:kt(t,e,z,l,a,null)}return;default:if(mo(e)){for(q in a)a.hasOwnProperty(q)&&(l=a[q],l!==void 0&&af(t,e,q,l,a,void 0));return}}for(y in a)a.hasOwnProperty(y)&&(l=a[y],l!=null&&kt(t,e,y,l,a,null))}function Xb(t,e,a,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,f=null,p=null,y=null,O=null,z=null,q=null;for(D in a){var V=a[D];if(a.hasOwnProperty(D)&&V!=null)switch(D){case"checked":break;case"value":break;case"defaultValue":O=V;default:l.hasOwnProperty(D)||kt(t,e,D,null,l,V)}}for(var B in l){var D=l[B];if(V=a[B],l.hasOwnProperty(B)&&(D!=null||V!=null))switch(B){case"type":f=D;break;case"name":o=D;break;case"checked":z=D;break;case"defaultChecked":q=D;break;case"value":p=D;break;case"defaultValue":y=D;break;case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(r(137,e));break;default:D!==V&&kt(t,e,B,D,l,V)}}po(t,p,y,O,z,q,f,o);return;case"select":D=p=y=B=null;for(f in a)if(O=a[f],a.hasOwnProperty(f)&&O!=null)switch(f){case"value":break;case"multiple":D=O;default:l.hasOwnProperty(f)||kt(t,e,f,null,l,O)}for(o in l)if(f=l[o],O=a[o],l.hasOwnProperty(o)&&(f!=null||O!=null))switch(o){case"value":B=f;break;case"defaultValue":y=f;break;case"multiple":p=f;default:f!==O&&kt(t,e,o,f,l,O)}e=y,a=p,l=D,B!=null?Na(t,!!a,B,!1):!!l!=!!a&&(e!=null?Na(t,!!a,e,!0):Na(t,!!a,a?[]:"",!1));return;case"textarea":D=B=null;for(y in a)if(o=a[y],a.hasOwnProperty(y)&&o!=null&&!l.hasOwnProperty(y))switch(y){case"value":break;case"children":break;default:kt(t,e,y,null,l,o)}for(p in l)if(o=l[p],f=a[p],l.hasOwnProperty(p)&&(o!=null||f!=null))switch(p){case"value":B=o;break;case"defaultValue":D=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(r(91));break;default:o!==f&&kt(t,e,p,o,l,f)}md(t,B,D);return;case"option":for(var tt in a)B=a[tt],a.hasOwnProperty(tt)&&B!=null&&!l.hasOwnProperty(tt)&&(tt==="selected"?t.selected=!1:kt(t,e,tt,null,l,B));for(O in l)B=l[O],D=a[O],l.hasOwnProperty(O)&&B!==D&&(B!=null||D!=null)&&(O==="selected"?t.selected=B&&typeof B!="function"&&typeof B!="symbol":kt(t,e,O,B,l,D));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ot in a)B=a[ot],a.hasOwnProperty(ot)&&B!=null&&!l.hasOwnProperty(ot)&&kt(t,e,ot,null,l,B);for(z in l)if(B=l[z],D=a[z],l.hasOwnProperty(z)&&B!==D&&(B!=null||D!=null))switch(z){case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(r(137,e));break;default:kt(t,e,z,B,l,D)}return;default:if(mo(e)){for(var zt in a)B=a[zt],a.hasOwnProperty(zt)&&B!==void 0&&!l.hasOwnProperty(zt)&&af(t,e,zt,void 0,l,B);for(q in l)B=l[q],D=a[q],!l.hasOwnProperty(q)||B===D||B===void 0&&D===void 0||af(t,e,q,B,l,D);return}}for(var x in a)B=a[x],a.hasOwnProperty(x)&&B!=null&&!l.hasOwnProperty(x)&&kt(t,e,x,null,l,B);for(V in l)B=l[V],D=a[V],!l.hasOwnProperty(V)||B===D||B==null&&D==null||kt(t,e,V,B,l,D)}function bg(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Qb(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,a=performance.getEntriesByType("resource"),l=0;l<a.length;l++){var o=a[l],f=o.transferSize,p=o.initiatorType,y=o.duration;if(f&&y&&bg(p)){for(p=0,y=o.responseEnd,l+=1;l<a.length;l++){var O=a[l],z=O.startTime;if(z>y)break;var q=O.transferSize,V=O.initiatorType;q&&bg(V)&&(O=O.responseEnd,p+=q*(O<y?1:(y-z)/(O-z)))}if(--l,e+=8*(f+p)/(o.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var sf=null,rf=null;function ql(t){return t.nodeType===9?t:t.ownerDocument}function Tg(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Sg(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function lf(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var uf=null;function Zb(){var t=window.event;return t&&t.type==="popstate"?t===uf?!1:(uf=t,!0):(uf=null,!1)}var Ag=typeof setTimeout=="function"?setTimeout:void 0,Wb=typeof clearTimeout=="function"?clearTimeout:void 0,Og=typeof Promise=="function"?Promise:void 0,Jb=typeof queueMicrotask=="function"?queueMicrotask:typeof Og<"u"?function(t){return Og.resolve(null).then(t).catch(tT)}:Ag;function tT(t){setTimeout(function(){throw t})}function Mi(t){return t==="head"}function Ng(t,e){var a=e,l=0;do{var o=a.nextSibling;if(t.removeChild(a),o&&o.nodeType===8)if(a=o.data,a==="/$"||a==="/&"){if(l===0){t.removeChild(o),as(e);return}l--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")l++;else if(a==="html")er(t.ownerDocument.documentElement);else if(a==="head"){a=t.ownerDocument.head,er(a);for(var f=a.firstChild;f;){var p=f.nextSibling,y=f.nodeName;f[vs]||y==="SCRIPT"||y==="STYLE"||y==="LINK"&&f.rel.toLowerCase()==="stylesheet"||a.removeChild(f),f=p}}else a==="body"&&er(t.ownerDocument.body);a=o}while(a);as(e)}function Rg(t,e){var a=t;t=0;do{var l=a.nextSibling;if(a.nodeType===1?e?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(e?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),l&&l.nodeType===8)if(a=l.data,a==="/$"){if(t===0)break;t--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||t++;a=l}while(a)}function of(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var a=e;switch(e=e.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":of(a),ho(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}t.removeChild(a)}}function eT(t,e,a,l){for(;t.nodeType===1;){var o=a;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!l&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(l){if(!t[vs])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(f=t.getAttribute("rel"),f==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(f!==o.rel||t.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||t.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||t.getAttribute("title")!==(o.title==null?null:o.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(f=t.getAttribute("src"),(f!==(o.src==null?null:o.src)||t.getAttribute("type")!==(o.type==null?null:o.type)||t.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&f&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var f=o.name==null?null:""+o.name;if(o.type==="hidden"&&t.getAttribute("name")===f)return t}else return t;if(t=un(t.nextSibling),t===null)break}return null}function nT(t,e,a){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!a||(t=un(t.nextSibling),t===null))return null;return t}function xg(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=un(t.nextSibling),t===null))return null;return t}function cf(t){return t.data==="$?"||t.data==="$~"}function ff(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function iT(t,e){var a=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||a.readyState!=="loading")e();else{var l=function(){e(),a.removeEventListener("DOMContentLoaded",l)};a.addEventListener("DOMContentLoaded",l),t._reactRetry=l}}function un(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var hf=null;function Cg(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var a=t.data;if(a==="/$"||a==="/&"){if(e===0)return un(t.nextSibling);e--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||e++}t=t.nextSibling}return null}function Lg(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var a=t.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(e===0)return t;e--}else a!=="/$"&&a!=="/&"||e++}t=t.previousSibling}return null}function wg(t,e,a){switch(e=ql(a),t){case"html":if(t=e.documentElement,!t)throw Error(r(452));return t;case"head":if(t=e.head,!t)throw Error(r(453));return t;case"body":if(t=e.body,!t)throw Error(r(454));return t;default:throw Error(r(451))}}function er(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);ho(t)}var on=new Map,Mg=new Set;function Hl(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var ai=Q.d;Q.d={f:aT,r:sT,D:rT,C:lT,L:uT,m:oT,X:fT,S:cT,M:hT};function aT(){var t=ai.f(),e=Il();return t||e}function sT(t){var e=Sa(t);e!==null&&e.tag===5&&e.type==="form"?X_(e):ai.r(t)}var es=typeof document>"u"?null:document;function Ug(t,e,a){var l=es;if(l&&typeof e=="string"&&e){var o=tn(e);o='link[rel="'+t+'"][href="'+o+'"]',typeof a=="string"&&(o+='[crossorigin="'+a+'"]'),Mg.has(o)||(Mg.add(o),t={rel:t,crossOrigin:a,href:e},l.querySelector(o)===null&&(e=l.createElement("link"),_e(e,"link",t),le(e),l.head.appendChild(e)))}}function rT(t){ai.D(t),Ug("dns-prefetch",t,null)}function lT(t,e){ai.C(t,e),Ug("preconnect",t,e)}function uT(t,e,a){ai.L(t,e,a);var l=es;if(l&&t&&e){var o='link[rel="preload"][as="'+tn(e)+'"]';e==="image"&&a&&a.imageSrcSet?(o+='[imagesrcset="'+tn(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(o+='[imagesizes="'+tn(a.imageSizes)+'"]')):o+='[href="'+tn(t)+'"]';var f=o;switch(e){case"style":f=ns(t);break;case"script":f=is(t)}on.has(f)||(t=E({rel:"preload",href:e==="image"&&a&&a.imageSrcSet?void 0:t,as:e},a),on.set(f,t),l.querySelector(o)!==null||e==="style"&&l.querySelector(nr(f))||e==="script"&&l.querySelector(ir(f))||(e=l.createElement("link"),_e(e,"link",t),le(e),l.head.appendChild(e)))}}function oT(t,e){ai.m(t,e);var a=es;if(a&&t){var l=e&&typeof e.as=="string"?e.as:"script",o='link[rel="modulepreload"][as="'+tn(l)+'"][href="'+tn(t)+'"]',f=o;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":f=is(t)}if(!on.has(f)&&(t=E({rel:"modulepreload",href:t},e),on.set(f,t),a.querySelector(o)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(ir(f)))return}l=a.createElement("link"),_e(l,"link",t),le(l),a.head.appendChild(l)}}}function cT(t,e,a){ai.S(t,e,a);var l=es;if(l&&t){var o=Aa(l).hoistableStyles,f=ns(t);e=e||"default";var p=o.get(f);if(!p){var y={loading:0,preload:null};if(p=l.querySelector(nr(f)))y.loading=5;else{t=E({rel:"stylesheet",href:t,"data-precedence":e},a),(a=on.get(f))&&df(t,a);var O=p=l.createElement("link");le(O),_e(O,"link",t),O._p=new Promise(function(z,q){O.onload=z,O.onerror=q}),O.addEventListener("load",function(){y.loading|=1}),O.addEventListener("error",function(){y.loading|=2}),y.loading|=4,$l(p,e,l)}p={type:"stylesheet",instance:p,count:1,state:y},o.set(f,p)}}}function fT(t,e){ai.X(t,e);var a=es;if(a&&t){var l=Aa(a).hoistableScripts,o=is(t),f=l.get(o);f||(f=a.querySelector(ir(o)),f||(t=E({src:t,async:!0},e),(e=on.get(o))&&_f(t,e),f=a.createElement("script"),le(f),_e(f,"link",t),a.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},l.set(o,f))}}function hT(t,e){ai.M(t,e);var a=es;if(a&&t){var l=Aa(a).hoistableScripts,o=is(t),f=l.get(o);f||(f=a.querySelector(ir(o)),f||(t=E({src:t,async:!0,type:"module"},e),(e=on.get(o))&&_f(t,e),f=a.createElement("script"),le(f),_e(f,"link",t),a.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},l.set(o,f))}}function Ig(t,e,a,l){var o=(o=ut.current)?Hl(o):null;if(!o)throw Error(r(446));switch(t){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(e=ns(a.href),a=Aa(o).hoistableStyles,l=a.get(e),l||(l={type:"style",instance:null,count:0,state:null},a.set(e,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){t=ns(a.href);var f=Aa(o).hoistableStyles,p=f.get(t);if(p||(o=o.ownerDocument||o,p={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},f.set(t,p),(f=o.querySelector(nr(t)))&&!f._p&&(p.instance=f,p.state.loading=5),on.has(t)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},on.set(t,a),f||dT(o,t,a,p.state))),e&&l===null)throw Error(r(528,""));return p}if(e&&l!==null)throw Error(r(529,""));return null;case"script":return e=a.async,a=a.src,typeof a=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=is(a),a=Aa(o).hoistableScripts,l=a.get(e),l||(l={type:"script",instance:null,count:0,state:null},a.set(e,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,t))}}function ns(t){return'href="'+tn(t)+'"'}function nr(t){return'link[rel="stylesheet"]['+t+"]"}function kg(t){return E({},t,{"data-precedence":t.precedence,precedence:null})}function dT(t,e,a,l){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?l.loading=1:(e=t.createElement("link"),l.preload=e,e.addEventListener("load",function(){return l.loading|=1}),e.addEventListener("error",function(){return l.loading|=2}),_e(e,"link",a),le(e),t.head.appendChild(e))}function is(t){return'[src="'+tn(t)+'"]'}function ir(t){return"script[async]"+t}function zg(t,e,a){if(e.count++,e.instance===null)switch(e.type){case"style":var l=t.querySelector('style[data-href~="'+tn(a.href)+'"]');if(l)return e.instance=l,le(l),l;var o=E({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(t.ownerDocument||t).createElement("style"),le(l),_e(l,"style",o),$l(l,a.precedence,t),e.instance=l;case"stylesheet":o=ns(a.href);var f=t.querySelector(nr(o));if(f)return e.state.loading|=4,e.instance=f,le(f),f;l=kg(a),(o=on.get(o))&&df(l,o),f=(t.ownerDocument||t).createElement("link"),le(f);var p=f;return p._p=new Promise(function(y,O){p.onload=y,p.onerror=O}),_e(f,"link",l),e.state.loading|=4,$l(f,a.precedence,t),e.instance=f;case"script":return f=is(a.src),(o=t.querySelector(ir(f)))?(e.instance=o,le(o),o):(l=a,(o=on.get(f))&&(l=E({},a),_f(l,o)),t=t.ownerDocument||t,o=t.createElement("script"),le(o),_e(o,"link",l),t.head.appendChild(o),e.instance=o);case"void":return null;default:throw Error(r(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(l=e.instance,e.state.loading|=4,$l(l,a.precedence,t));return e.instance}function $l(t,e,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=l.length?l[l.length-1]:null,f=o,p=0;p<l.length;p++){var y=l[p];if(y.dataset.precedence===e)f=y;else if(f!==o)break}f?f.parentNode.insertBefore(t,f.nextSibling):(e=a.nodeType===9?a.head:a,e.insertBefore(t,e.firstChild))}function df(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function _f(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Kl=null;function Bg(t,e,a){if(Kl===null){var l=new Map,o=Kl=new Map;o.set(a,l)}else o=Kl,l=o.get(a),l||(l=new Map,o.set(a,l));if(l.has(t))return l;for(l.set(t,null),a=a.getElementsByTagName(t),o=0;o<a.length;o++){var f=a[o];if(!(f[vs]||f[ce]||t==="link"&&f.getAttribute("rel")==="stylesheet")&&f.namespaceURI!=="http://www.w3.org/2000/svg"){var p=f.getAttribute(e)||"";p=t+p;var y=l.get(p);y?y.push(f):l.set(p,[f])}}return l}function Dg(t,e,a){t=t.ownerDocument||t,t.head.insertBefore(a,e==="title"?t.querySelector("head > title"):null)}function _T(t,e,a){if(a===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;return e.rel==="stylesheet"?(t=e.disabled,typeof e.precedence=="string"&&t==null):!0;case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function jg(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function pT(t,e,a,l){if(a.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var o=ns(l.href),f=e.querySelector(nr(o));if(f){e=f._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Vl.bind(t),e.then(t,t)),a.state.loading|=4,a.instance=f,le(f);return}f=e.ownerDocument||e,l=kg(l),(o=on.get(o))&&df(l,o),f=f.createElement("link"),le(f);var p=f;p._p=new Promise(function(y,O){p.onload=y,p.onerror=O}),_e(f,"link",l),a.instance=f}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(a,e),(e=a.state.preload)&&(a.state.loading&3)===0&&(t.count++,a=Vl.bind(t),e.addEventListener("load",a),e.addEventListener("error",a))}}var pf=0;function gT(t,e){return t.stylesheets&&t.count===0&&Fl(t,t.stylesheets),0<t.count||0<t.imgCount?function(a){var l=setTimeout(function(){if(t.stylesheets&&Fl(t,t.stylesheets),t.unsuspend){var f=t.unsuspend;t.unsuspend=null,f()}},6e4+e);0<t.imgBytes&&pf===0&&(pf=62500*Qb());var o=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Fl(t,t.stylesheets),t.unsuspend)){var f=t.unsuspend;t.unsuspend=null,f()}},(t.imgBytes>pf?50:800)+e);return t.unsuspend=a,function(){t.unsuspend=null,clearTimeout(l),clearTimeout(o)}}:null}function Vl(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Fl(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Yl=null;function Fl(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Yl=new Map,e.forEach(mT,t),Yl=null,Vl.call(t))}function mT(t,e){if(!(e.state.loading&4)){var a=Yl.get(t);if(a)var l=a.get(null);else{a=new Map,Yl.set(t,a);for(var o=t.querySelectorAll("link[data-precedence],style[data-precedence]"),f=0;f<o.length;f++){var p=o[f];(p.nodeName==="LINK"||p.getAttribute("media")!=="not all")&&(a.set(p.dataset.precedence,p),l=p)}l&&a.set(null,l)}o=e.instance,p=o.getAttribute("data-precedence"),f=a.get(p)||l,f===l&&a.set(null,o),a.set(p,o),this.count++,l=Vl.bind(this),o.addEventListener("load",l),o.addEventListener("error",l),f?f.parentNode.insertBefore(o,f.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(o,t.firstChild)),e.state.loading|=4}}var ar={$$typeof:w,Provider:null,Consumer:null,_currentValue:it,_currentValue2:it,_threadCount:0};function yT(t,e,a,l,o,f,p,y,O){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=uo(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=uo(0),this.hiddenUpdates=uo(null),this.identifierPrefix=l,this.onUncaughtError=o,this.onCaughtError=f,this.onRecoverableError=p,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=O,this.incompleteTransitions=new Map}function Pg(t,e,a,l,o,f,p,y,O,z,q,V){return t=new yT(t,e,a,p,O,z,q,V,y),e=1,f===!0&&(e|=24),f=Ge(3,null,null,e),t.current=f,f.stateNode=t,e=Yo(),e.refCount++,t.pooledCache=e,e.refCount++,f.memoizedState={element:l,isDehydrated:a,cache:e},Zo(f),t}function Gg(t){return t?(t=Ia,t):Ia}function qg(t,e,a,l,o,f){o=Gg(o),l.context===null?l.context=o:l.pendingContext=o,l=bi(e),l.payload={element:a},f=f===void 0?null:f,f!==null&&(l.callback=f),a=Ti(t,l,e),a!==null&&(Le(a,t,e),zs(a,t,e))}function Hg(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var a=t.retryLane;t.retryLane=a!==0&&a<e?a:e}}function gf(t,e){Hg(t,e),(t=t.alternate)&&Hg(t,e)}function $g(t){if(t.tag===13||t.tag===31){var e=Fi(t,67108864);e!==null&&Le(e,t,67108864),gf(t,67108864)}}function Kg(t){if(t.tag===13||t.tag===31){var e=Ve();e=oo(e);var a=Fi(t,e);a!==null&&Le(a,t,e),gf(t,e)}}var Xl=!0;function vT(t,e,a,l){var o=M.T;M.T=null;var f=Q.p;try{Q.p=2,mf(t,e,a,l)}finally{Q.p=f,M.T=o}}function ET(t,e,a,l){var o=M.T;M.T=null;var f=Q.p;try{Q.p=8,mf(t,e,a,l)}finally{Q.p=f,M.T=o}}function mf(t,e,a,l){if(Xl){var o=yf(l);if(o===null)nf(t,e,l,Ql,a),Yg(t,l);else if(TT(o,t,e,a,l))l.stopPropagation();else if(Yg(t,l),e&4&&-1<bT.indexOf(t)){for(;o!==null;){var f=Sa(o);if(f!==null)switch(f.tag){case 3:if(f=f.stateNode,f.current.memoizedState.isDehydrated){var p=Hi(f.pendingLanes);if(p!==0){var y=f;for(y.pendingLanes|=2,y.entangledLanes|=2;p;){var O=1<<31-je(p);y.entanglements[1]|=O,p&=~O}wn(f),(wt&6)===0&&(Ml=Be()+500,Ws(0))}}break;case 31:case 13:y=Fi(f,2),y!==null&&Le(y,f,2),Il(),gf(f,2)}if(f=yf(l),f===null&&nf(t,e,l,Ql,a),f===o)break;o=f}o!==null&&l.stopPropagation()}else nf(t,e,l,null,a)}}function yf(t){return t=vo(t),vf(t)}var Ql=null;function vf(t){if(Ql=null,t=Ta(t),t!==null){var e=c(t);if(e===null)t=null;else{var a=e.tag;if(a===13){if(t=h(e),t!==null)return t;t=null}else if(a===31){if(t=_(e),t!==null)return t;t=null}else if(a===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return Ql=t,null}function Vg(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(rE()){case td:return 2;case ed:return 8;case jr:case lE:return 32;case nd:return 268435456;default:return 32}default:return 32}}var Ef=!1,Ui=null,Ii=null,ki=null,sr=new Map,rr=new Map,zi=[],bT="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Yg(t,e){switch(t){case"focusin":case"focusout":Ui=null;break;case"dragenter":case"dragleave":Ii=null;break;case"mouseover":case"mouseout":ki=null;break;case"pointerover":case"pointerout":sr.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":rr.delete(e.pointerId)}}function lr(t,e,a,l,o,f){return t===null||t.nativeEvent!==f?(t={blockedOn:e,domEventName:a,eventSystemFlags:l,nativeEvent:f,targetContainers:[o]},e!==null&&(e=Sa(e),e!==null&&$g(e)),t):(t.eventSystemFlags|=l,e=t.targetContainers,o!==null&&e.indexOf(o)===-1&&e.push(o),t)}function TT(t,e,a,l,o){switch(e){case"focusin":return Ui=lr(Ui,t,e,a,l,o),!0;case"dragenter":return Ii=lr(Ii,t,e,a,l,o),!0;case"mouseover":return ki=lr(ki,t,e,a,l,o),!0;case"pointerover":var f=o.pointerId;return sr.set(f,lr(sr.get(f)||null,t,e,a,l,o)),!0;case"gotpointercapture":return f=o.pointerId,rr.set(f,lr(rr.get(f)||null,t,e,a,l,o)),!0}return!1}function Fg(t){var e=Ta(t.target);if(e!==null){var a=c(e);if(a!==null){if(e=a.tag,e===13){if(e=h(a),e!==null){t.blockedOn=e,ud(t.priority,function(){Kg(a)});return}}else if(e===31){if(e=_(a),e!==null){t.blockedOn=e,ud(t.priority,function(){Kg(a)});return}}else if(e===3&&a.stateNode.current.memoizedState.isDehydrated){t.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Zl(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var a=yf(t.nativeEvent);if(a===null){a=t.nativeEvent;var l=new a.constructor(a.type,a);yo=l,a.target.dispatchEvent(l),yo=null}else return e=Sa(a),e!==null&&$g(e),t.blockedOn=a,!1;e.shift()}return!0}function Xg(t,e,a){Zl(t)&&a.delete(e)}function ST(){Ef=!1,Ui!==null&&Zl(Ui)&&(Ui=null),Ii!==null&&Zl(Ii)&&(Ii=null),ki!==null&&Zl(ki)&&(ki=null),sr.forEach(Xg),rr.forEach(Xg)}function Wl(t,e){t.blockedOn===e&&(t.blockedOn=null,Ef||(Ef=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,ST)))}var Jl=null;function Qg(t){Jl!==t&&(Jl=t,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){Jl===t&&(Jl=null);for(var e=0;e<t.length;e+=3){var a=t[e],l=t[e+1],o=t[e+2];if(typeof l!="function"){if(vf(l||a)===null)continue;break}var f=Sa(a);f!==null&&(t.splice(e,3),e-=3,mc(f,{pending:!0,data:o,method:a.method,action:l},l,o))}}))}function as(t){function e(O){return Wl(O,t)}Ui!==null&&Wl(Ui,t),Ii!==null&&Wl(Ii,t),ki!==null&&Wl(ki,t),sr.forEach(e),rr.forEach(e);for(var a=0;a<zi.length;a++){var l=zi[a];l.blockedOn===t&&(l.blockedOn=null)}for(;0<zi.length&&(a=zi[0],a.blockedOn===null);)Fg(a),a.blockedOn===null&&zi.shift();if(a=(t.ownerDocument||t).$$reactFormReplay,a!=null)for(l=0;l<a.length;l+=3){var o=a[l],f=a[l+1],p=o[Ae]||null;if(typeof f=="function")p||Qg(a);else if(p){var y=null;if(f&&f.hasAttribute("formAction")){if(o=f,p=f[Ae]||null)y=p.formAction;else if(vf(o)!==null)continue}else y=p.action;typeof y=="function"?a[l+1]=y:(a.splice(l,3),l-=3),Qg(a)}}}function Zg(){function t(f){f.canIntercept&&f.info==="react-transition"&&f.intercept({handler:function(){return new Promise(function(p){return o=p})},focusReset:"manual",scroll:"manual"})}function e(){o!==null&&(o(),o=null),l||setTimeout(a,20)}function a(){if(!l&&!navigation.transition){var f=navigation.currentEntry;f&&f.url!=null&&navigation.navigate(f.url,{state:f.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,o=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(a,100),function(){l=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),o!==null&&(o(),o=null)}}}function bf(t){this._internalRoot=t}tu.prototype.render=bf.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(r(409));var a=e.current,l=Ve();qg(a,l,t,e,null,null)},tu.prototype.unmount=bf.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;qg(t.current,2,null,t,null,null),Il(),e[ba]=null}};function tu(t){this._internalRoot=t}tu.prototype.unstable_scheduleHydration=function(t){if(t){var e=ld();t={blockedOn:null,target:t,priority:e};for(var a=0;a<zi.length&&e!==0&&e<zi[a].priority;a++);zi.splice(a,0,t),a===0&&Fg(t)}};var Wg=n.version;if(Wg!=="19.2.3")throw Error(r(527,Wg,"19.2.3"));Q.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(r(188)):(t=Object.keys(t).join(","),Error(r(268,t)));return t=g(e),t=t!==null?b(t):null,t=t===null?null:t.stateNode,t};var AT={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:M,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var eu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!eu.isDisabled&&eu.supportsFiber)try{gs=eu.inject(AT),De=eu}catch{}}return or.createRoot=function(t,e){if(!u(t))throw Error(r(299));var a=!1,l="",o=sp,f=rp,p=lp;return e!=null&&(e.unstable_strictMode===!0&&(a=!0),e.identifierPrefix!==void 0&&(l=e.identifierPrefix),e.onUncaughtError!==void 0&&(o=e.onUncaughtError),e.onCaughtError!==void 0&&(f=e.onCaughtError),e.onRecoverableError!==void 0&&(p=e.onRecoverableError)),e=Pg(t,1,!1,null,null,a,l,null,o,f,p,Zg),t[ba]=e.current,ef(t),new bf(e)},or.hydrateRoot=function(t,e,a){if(!u(t))throw Error(r(299));var l=!1,o="",f=sp,p=rp,y=lp,O=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(o=a.identifierPrefix),a.onUncaughtError!==void 0&&(f=a.onUncaughtError),a.onCaughtError!==void 0&&(p=a.onCaughtError),a.onRecoverableError!==void 0&&(y=a.onRecoverableError),a.formState!==void 0&&(O=a.formState)),e=Pg(t,1,!0,e,a??null,l,o,O,f,p,y,Zg),e.context=Gg(null),a=e.current,l=Ve(),l=oo(l),o=bi(l),o.callback=null,Ti(a,o,l),a=l,e.current.lanes=a,ys(e,a),wn(e),t[ba]=e.current,ef(t),new tu(e)},or.version="19.2.3",or}var um;function kT(){if(um)return Af.exports;um=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(n){console.error(n)}}return i(),Af.exports=IT(),Af.exports}var zT=kT();const BT=Th(zT);function om(i,n){(n==null||n>i.length)&&(n=i.length);for(var s=0,r=Array(n);s<n;s++)r[s]=i[s];return r}function DT(i){if(Array.isArray(i))return i}function jT(i,n,s){return(n=VT(n))in i?Object.defineProperty(i,n,{value:s,enumerable:!0,configurable:!0,writable:!0}):i[n]=s,i}function PT(i,n){var s=i==null?null:typeof Symbol<"u"&&i[Symbol.iterator]||i["@@iterator"];if(s!=null){var r,u,c,h,_=[],d=!0,g=!1;try{if(c=(s=s.call(i)).next,n!==0)for(;!(d=(r=c.call(s)).done)&&(_.push(r.value),_.length!==n);d=!0);}catch(b){g=!0,u=b}finally{try{if(!d&&s.return!=null&&(h=s.return(),Object(h)!==h))return}finally{if(g)throw u}}return _}}function GT(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
10
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cm(i,n){var s=Object.keys(i);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(i);n&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(i,u).enumerable})),s.push.apply(s,r)}return s}function fm(i){for(var n=1;n<arguments.length;n++){var s=arguments[n]!=null?arguments[n]:{};n%2?cm(Object(s),!0).forEach(function(r){jT(i,r,s[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(s)):cm(Object(s)).forEach(function(r){Object.defineProperty(i,r,Object.getOwnPropertyDescriptor(s,r))})}return i}function qT(i,n){if(i==null)return{};var s,r,u=HT(i,n);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(i);for(r=0;r<c.length;r++)s=c[r],n.indexOf(s)===-1&&{}.propertyIsEnumerable.call(i,s)&&(u[s]=i[s])}return u}function HT(i,n){if(i==null)return{};var s={};for(var r in i)if({}.hasOwnProperty.call(i,r)){if(n.indexOf(r)!==-1)continue;s[r]=i[r]}return s}function $T(i,n){return DT(i)||PT(i,n)||YT(i,n)||GT()}function KT(i,n){if(typeof i!="object"||!i)return i;var s=i[Symbol.toPrimitive];if(s!==void 0){var r=s.call(i,n);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(i)}function VT(i){var n=KT(i,"string");return typeof n=="symbol"?n:n+""}function YT(i,n){if(i){if(typeof i=="string")return om(i,n);var s={}.toString.call(i).slice(8,-1);return s==="Object"&&i.constructor&&(s=i.constructor.name),s==="Map"||s==="Set"?Array.from(i):s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?om(i,n):void 0}}function FT(i,n,s){return n in i?Object.defineProperty(i,n,{value:s,enumerable:!0,configurable:!0,writable:!0}):i[n]=s,i}function hm(i,n){var s=Object.keys(i);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(i);n&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(i,u).enumerable})),s.push.apply(s,r)}return s}function dm(i){for(var n=1;n<arguments.length;n++){var s=arguments[n]!=null?arguments[n]:{};n%2?hm(Object(s),!0).forEach(function(r){FT(i,r,s[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(s)):hm(Object(s)).forEach(function(r){Object.defineProperty(i,r,Object.getOwnPropertyDescriptor(s,r))})}return i}function XT(){for(var i=arguments.length,n=new Array(i),s=0;s<i;s++)n[s]=arguments[s];return function(r){return n.reduceRight(function(u,c){return c(u)},r)}}function mr(i){return function n(){for(var s=this,r=arguments.length,u=new Array(r),c=0;c<r;c++)u[c]=arguments[c];return u.length>=i.length?i.apply(this,u):function(){for(var h=arguments.length,_=new Array(h),d=0;d<h;d++)_[d]=arguments[d];return n.apply(s,[].concat(u,_))}}}function Au(i){return{}.toString.call(i).includes("Object")}function QT(i){return!Object.keys(i).length}function Or(i){return typeof i=="function"}function ZT(i,n){return Object.prototype.hasOwnProperty.call(i,n)}function WT(i,n){return Au(n)||Di("changeType"),Object.keys(n).some(function(s){return!ZT(i,s)})&&Di("changeField"),n}function JT(i){Or(i)||Di("selectorType")}function t1(i){Or(i)||Au(i)||Di("handlerType"),Au(i)&&Object.values(i).some(function(n){return!Or(n)})&&Di("handlersType")}function e1(i){i||Di("initialIsRequired"),Au(i)||Di("initialType"),QT(i)&&Di("initialContent")}function n1(i,n){throw new Error(i[n]||i.default)}var i1={initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"},Di=mr(n1)(i1),nu={changes:WT,selector:JT,handler:t1,initial:e1};function a1(i){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};nu.initial(i),nu.handler(n);var s={current:i},r=mr(l1)(s,n),u=mr(r1)(s),c=mr(nu.changes)(i),h=mr(s1)(s);function _(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(b){return b};return nu.selector(g),g(s.current)}function d(g){XT(r,u,c,h)(g)}return[_,d]}function s1(i,n){return Or(n)?n(i.current):n}function r1(i,n){return i.current=dm(dm({},i.current),n),n}function l1(i,n,s){return Or(n)?n(i.current):Object.keys(s).forEach(function(r){var u;return(u=n[r])===null||u===void 0?void 0:u.call(n,i.current[r])}),s}var u1={create:a1},o1={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs"}};function c1(i){return function n(){for(var s=this,r=arguments.length,u=new Array(r),c=0;c<r;c++)u[c]=arguments[c];return u.length>=i.length?i.apply(this,u):function(){for(var h=arguments.length,_=new Array(h),d=0;d<h;d++)_[d]=arguments[d];return n.apply(s,[].concat(u,_))}}}function f1(i){return{}.toString.call(i).includes("Object")}function h1(i){return i||_m("configIsRequired"),f1(i)||_m("configType"),i.urls?(d1(),{paths:{vs:i.urls.monacoBase}}):i}function d1(){console.warn(Zy.deprecation)}function _1(i,n){throw new Error(i[n]||i.default)}var Zy={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
11
11
  You are using deprecated way of configuration.
12
12
 
13
13
  Instead of using
@@ -16,65 +16,65 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
16
16
  monaco.config({ paths: { vs: '...' } })
17
17
 
18
18
  For more please check the link https://github.com/suren-atoyan/monaco-loader#config
19
- `},pm=l1(f1)(Wy),h1={config:o1},d1=function(){for(var n=arguments.length,s=new Array(n),r=0;r<n;r++)s[r]=arguments[r];return function(u){return s.reduceRight(function(c,h){return h(c)},u)}};function Jy(i,n){return Object.keys(n).forEach(function(s){n[s]instanceof Object&&i[s]&&Object.assign(n[s],Jy(i[s],n[s]))}),hm(hm({},i),n)}var _1={type:"cancelation",msg:"operation is manually canceled"};function Rf(i){var n=!1,s=new Promise(function(r,u){i.then(function(c){return n?u(_1):r(c)}),i.catch(u)});return s.cancel=function(){return n=!0},s}var p1=["monaco"],g1=s1.create({config:r1,isInitialized:!1,resolve:null,reject:null,monaco:null}),t0=GT(g1,2),Cr=t0[0],Bu=t0[1];function m1(i){var n=h1.config(i),s=n.monaco,r=jT(n,p1);Bu(function(u){return{config:Jy(u.config,r),monaco:s}})}function y1(){var i=Cr(function(n){var s=n.monaco,r=n.isInitialized,u=n.resolve;return{monaco:s,isInitialized:r,resolve:u}});if(!i.isInitialized){if(Bu({isInitialized:!0}),i.monaco)return i.resolve(i.monaco),Rf(xf);if(window.monaco&&window.monaco.editor)return e0(window.monaco),i.resolve(window.monaco),Rf(xf);d1(v1,b1)(T1)}return Rf(xf)}function v1(i){return document.body.appendChild(i)}function E1(i){var n=document.createElement("script");return i&&(n.src=i),n}function b1(i){var n=Cr(function(r){var u=r.config,c=r.reject;return{config:u,reject:c}}),s=E1("".concat(n.config.paths.vs,"/loader.js"));return s.onload=function(){return i()},s.onerror=n.reject,s}function T1(){var i=Cr(function(s){var r=s.config,u=s.resolve,c=s.reject;return{config:r,resolve:u,reject:c}}),n=window.require;n.config(i.config),n(["vs/editor/editor.main"],function(s){var r=s.m||s;e0(r),i.resolve(r)},function(s){i.reject(s)})}function e0(i){Cr().monaco||Bu({monaco:i})}function S1(){return Cr(function(i){var n=i.monaco;return n})}var xf=new Promise(function(i,n){return Bu({resolve:i,reject:n})}),n0={config:m1,init:y1,__getMonacoInstance:S1},A1={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},Cf=A1,O1={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},N1=O1;function R1({children:i}){return fa.createElement("div",{style:N1.container},i)}var x1=R1,C1=x1;function L1({width:i,height:n,isEditorReady:s,loading:r,_ref:u,className:c,wrapperProps:h}){return fa.createElement("section",{style:{...Cf.wrapper,width:i,height:n},...h},!s&&fa.createElement(C1,null,r),fa.createElement("div",{ref:u,style:{...Cf.fullWidth,...!s&&Cf.hide},className:c}))}var w1=L1,i0=ct.memo(w1);function M1(i){ct.useEffect(i,[])}var a0=M1;function U1(i,n,s=!0){let r=ct.useRef(!0);ct.useEffect(r.current||!s?()=>{r.current=!1}:i,n)}var Ye=U1;function br(){}function ls(i,n,s,r){return I1(i,r)||k1(i,n,s,r)}function I1(i,n){return i.editor.getModel(s0(i,n))}function k1(i,n,s,r){return i.editor.createModel(n,s,r?s0(i,r):void 0)}function s0(i,n){return i.Uri.parse(n)}function z1({original:i,modified:n,language:s,originalLanguage:r,modifiedLanguage:u,originalModelPath:c,modifiedModelPath:h,keepCurrentOriginalModel:_=!1,keepCurrentModifiedModel:d=!1,theme:g="light",loading:b="Loading...",options:E={},height:A="100%",width:j="100%",className:H,wrapperProps:X={},beforeMount:S=br,onMount:v=br}){let[T,w]=ct.useState(!1),[I,F]=ct.useState(!0),U=ct.useRef(null),L=ct.useRef(null),C=ct.useRef(null),Y=ct.useRef(v),m=ct.useRef(S),P=ct.useRef(!1);a0(()=>{let J=n0.init();return J.then(M=>(L.current=M)&&F(!1)).catch(M=>M?.type!=="cancelation"&&console.error("Monaco initialization: error:",M)),()=>U.current?at():J.cancel()}),Ye(()=>{if(U.current&&L.current){let J=U.current.getOriginalEditor(),M=ls(L.current,i||"",r||s||"text",c||"");M!==J.getModel()&&J.setModel(M)}},[c],T),Ye(()=>{if(U.current&&L.current){let J=U.current.getModifiedEditor(),M=ls(L.current,n||"",u||s||"text",h||"");M!==J.getModel()&&J.setModel(M)}},[h],T),Ye(()=>{let J=U.current.getModifiedEditor();J.getOption(L.current.editor.EditorOption.readOnly)?J.setValue(n||""):n!==J.getValue()&&(J.executeEdits("",[{range:J.getModel().getFullModelRange(),text:n||"",forceMoveMarkers:!0}]),J.pushUndoStop())},[n],T),Ye(()=>{U.current?.getModel()?.original.setValue(i||"")},[i],T),Ye(()=>{let{original:J,modified:M}=U.current.getModel();L.current.editor.setModelLanguage(J,r||s||"text"),L.current.editor.setModelLanguage(M,u||s||"text")},[s,r,u],T),Ye(()=>{L.current?.editor.setTheme(g)},[g],T),Ye(()=>{U.current?.updateOptions(E)},[E],T);let G=ct.useCallback(()=>{if(!L.current)return;m.current(L.current);let J=ls(L.current,i||"",r||s||"text",c||""),M=ls(L.current,n||"",u||s||"text",h||"");U.current?.setModel({original:J,modified:M})},[s,n,u,i,r,c,h]),et=ct.useCallback(()=>{!P.current&&C.current&&(U.current=L.current.editor.createDiffEditor(C.current,{automaticLayout:!0,...E}),G(),L.current?.editor.setTheme(g),w(!0),P.current=!0)},[E,g,G]);ct.useEffect(()=>{T&&Y.current(U.current,L.current)},[T]),ct.useEffect(()=>{!I&&!T&&et()},[I,T,et]);function at(){let J=U.current?.getModel();_||J?.original?.dispose(),d||J?.modified?.dispose(),U.current?.dispose()}return fa.createElement(i0,{width:j,height:A,isEditorReady:T,loading:b,_ref:C,className:H,wrapperProps:X})}var B1=z1;ct.memo(B1);function D1(i){let n=ct.useRef();return ct.useEffect(()=>{n.current=i},[i]),n.current}var j1=D1,nu=new Map;function P1({defaultValue:i,defaultLanguage:n,defaultPath:s,value:r,language:u,path:c,theme:h="light",line:_,loading:d="Loading...",options:g={},overrideServices:b={},saveViewState:E=!0,keepCurrentModel:A=!1,width:j="100%",height:H="100%",className:X,wrapperProps:S={},beforeMount:v=br,onMount:T=br,onChange:w,onValidate:I=br}){let[F,U]=ct.useState(!1),[L,C]=ct.useState(!0),Y=ct.useRef(null),m=ct.useRef(null),P=ct.useRef(null),G=ct.useRef(T),et=ct.useRef(v),at=ct.useRef(),J=ct.useRef(r),M=j1(c),Q=ct.useRef(!1),it=ct.useRef(!1);a0(()=>{let N=n0.init();return N.then($=>(Y.current=$)&&C(!1)).catch($=>$?.type!=="cancelation"&&console.error("Monaco initialization: error:",$)),()=>m.current?Ot():N.cancel()}),Ye(()=>{let N=ls(Y.current,i||r||"",n||u||"",c||s||"");N!==m.current?.getModel()&&(E&&nu.set(M,m.current?.saveViewState()),m.current?.setModel(N),E&&m.current?.restoreViewState(nu.get(c)))},[c],F),Ye(()=>{m.current?.updateOptions(g)},[g],F),Ye(()=>{!m.current||r===void 0||(m.current.getOption(Y.current.editor.EditorOption.readOnly)?m.current.setValue(r):r!==m.current.getValue()&&(it.current=!0,m.current.executeEdits("",[{range:m.current.getModel().getFullModelRange(),text:r,forceMoveMarkers:!0}]),m.current.pushUndoStop(),it.current=!1))},[r],F),Ye(()=>{let N=m.current?.getModel();N&&u&&Y.current?.editor.setModelLanguage(N,u)},[u],F),Ye(()=>{_!==void 0&&m.current?.revealLine(_)},[_],F),Ye(()=>{Y.current?.editor.setTheme(h)},[h],F);let yt=ct.useCallback(()=>{if(!(!P.current||!Y.current)&&!Q.current){et.current(Y.current);let N=c||s,$=ls(Y.current,r||i||"",n||u||"",N||"");m.current=Y.current?.editor.create(P.current,{model:$,automaticLayout:!0,...g},b),E&&m.current.restoreViewState(nu.get(N)),Y.current.editor.setTheme(h),_!==void 0&&m.current.revealLine(_),U(!0),Q.current=!0}},[i,n,s,r,u,c,g,b,E,h,_]);ct.useEffect(()=>{F&&G.current(m.current,Y.current)},[F]),ct.useEffect(()=>{!L&&!F&&yt()},[L,F,yt]),J.current=r,ct.useEffect(()=>{F&&w&&(at.current?.dispose(),at.current=m.current?.onDidChangeModelContent(N=>{it.current||w(m.current.getValue(),N)}))},[F,w]),ct.useEffect(()=>{if(F){let N=Y.current.editor.onDidChangeMarkers($=>{let Z=m.current.getModel()?.uri;if(Z&&$.find(W=>W.path===Z.path)){let W=Y.current.editor.getModelMarkers({resource:Z});I?.(W)}});return()=>{N?.dispose()}}return()=>{}},[F,I]);function Ot(){at.current?.dispose(),A?E&&nu.set(c,m.current.saveViewState()):m.current.getModel()?.dispose(),m.current.dispose()}return fa.createElement(i0,{width:j,height:H,isEditorReady:F,loading:d,_ref:P,className:X,wrapperProps:S})}var G1=P1,q1=ct.memo(G1),iu=q1;const H1=i=>i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),$1=i=>i.replace(/^([A-Z])|[\s-_]+(\w)/g,(n,s,r)=>r?r.toUpperCase():s.toLowerCase()),gm=i=>{const n=$1(i);return n.charAt(0).toUpperCase()+n.slice(1)},r0=(...i)=>i.filter((n,s,r)=>!!n&&n.trim()!==""&&r.indexOf(n)===s).join(" ").trim(),K1=i=>{for(const n in i)if(n.startsWith("aria-")||n==="role"||n==="title")return!0};var V1={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"};const Y1=ct.forwardRef(({color:i="currentColor",size:n=24,strokeWidth:s=2,absoluteStrokeWidth:r,className:u="",children:c,iconNode:h,..._},d)=>ct.createElement("svg",{ref:d,...V1,width:n,height:n,stroke:i,strokeWidth:r?Number(s)*24/Number(n):s,className:r0("lucide",u),...!c&&!K1(_)&&{"aria-hidden":"true"},..._},[...h.map(([g,b])=>ct.createElement(g,b)),...Array.isArray(c)?c:[c]]));const ga=(i,n)=>{const s=ct.forwardRef(({className:r,...u},c)=>ct.createElement(Y1,{ref:c,iconNode:n,className:r0(`lucide-${H1(gm(i))}`,`lucide-${i}`,r),...u}));return s.displayName=gm(i),s};const X1=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],F1=ga("check",X1);const Q1=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],mm=ga("code",Q1);const Z1=[["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"}]],W1=ga("copy",Z1);const J1=[["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"}]],tS=ga("database",J1);const eS=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}]],nS=ga("file-code",eS);const iS=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],aS=ga("info",iS);const sS=[["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"}]],rS=ga("play",sS);var l0=typeof global=="object"&&global&&global.Object===Object&&global,lS=typeof self=="object"&&self&&self.Object===Object&&self,kn=l0||lS||Function("return this")(),hn=kn.Symbol,u0=Object.prototype,uS=u0.hasOwnProperty,oS=u0.toString,or=hn?hn.toStringTag:void 0;function cS(i){var n=uS.call(i,or),s=i[or];try{i[or]=void 0;var r=!0}catch{}var u=oS.call(i);return r&&(n?i[or]=s:delete i[or]),u}var fS=Object.prototype,hS=fS.toString;function dS(i){return hS.call(i)}var _S="[object Null]",pS="[object Undefined]",ym=hn?hn.toStringTag:void 0;function Pi(i){return i==null?i===void 0?pS:_S:ym&&ym in Object(i)?cS(i):dS(i)}function Tn(i){return i!=null&&typeof i=="object"}var gS="[object Symbol]";function Du(i){return typeof i=="symbol"||Tn(i)&&Pi(i)==gS}function ju(i,n){for(var s=-1,r=i==null?0:i.length,u=Array(r);++s<r;)u[s]=n(i[s],s,i);return u}var xt=Array.isArray,vm=hn?hn.prototype:void 0,Em=vm?vm.toString:void 0;function o0(i){if(typeof i=="string")return i;if(xt(i))return ju(i,o0)+"";if(Du(i))return Em?Em.call(i):"";var n=i+"";return n=="0"&&1/i==-1/0?"-0":n}var mS=/\s/;function yS(i){for(var n=i.length;n--&&mS.test(i.charAt(n)););return n}var vS=/^\s+/;function ES(i){return i&&i.slice(0,yS(i)+1).replace(vS,"")}function dn(i){var n=typeof i;return i!=null&&(n=="object"||n=="function")}var bm=NaN,bS=/^[-+]0x[0-9a-f]+$/i,TS=/^0b[01]+$/i,SS=/^0o[0-7]+$/i,AS=parseInt;function OS(i){if(typeof i=="number")return i;if(Du(i))return bm;if(dn(i)){var n=typeof i.valueOf=="function"?i.valueOf():i;i=dn(n)?n+"":n}if(typeof i!="string")return i===0?i:+i;i=ES(i);var s=TS.test(i);return s||SS.test(i)?AS(i.slice(2),s?2:8):bS.test(i)?bm:+i}var Tm=1/0,NS=17976931348623157e292;function RS(i){if(!i)return i===0?i:0;if(i=OS(i),i===Tm||i===-Tm){var n=i<0?-1:1;return n*NS}return i===i?i:0}function Pu(i){var n=RS(i),s=n%1;return n===n?s?n-s:n:0}function cs(i){return i}var xS="[object AsyncFunction]",CS="[object Function]",LS="[object GeneratorFunction]",wS="[object Proxy]";function oi(i){if(!dn(i))return!1;var n=Pi(i);return n==CS||n==LS||n==xS||n==wS}var Lf=kn["__core-js_shared__"],Sm=(function(){var i=/[^.]+$/.exec(Lf&&Lf.keys&&Lf.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""})();function MS(i){return!!Sm&&Sm in i}var US=Function.prototype,IS=US.toString;function ma(i){if(i!=null){try{return IS.call(i)}catch{}try{return i+""}catch{}}return""}var kS=/[\\^$.*+?()[\]{}|]/g,zS=/^\[object .+?Constructor\]$/,BS=Function.prototype,DS=Object.prototype,jS=BS.toString,PS=DS.hasOwnProperty,GS=RegExp("^"+jS.call(PS).replace(kS,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function qS(i){if(!dn(i)||MS(i))return!1;var n=oi(i)?GS:zS;return n.test(ma(i))}function HS(i,n){return i?.[n]}function ya(i,n){var s=HS(i,n);return qS(s)?s:void 0}var nh=ya(kn,"WeakMap"),Am=Object.create,$S=(function(){function i(){}return function(n){if(!dn(n))return{};if(Am)return Am(n);i.prototype=n;var s=new i;return i.prototype=void 0,s}})();function KS(i,n,s){switch(s.length){case 0:return i.call(n);case 1:return i.call(n,s[0]);case 2:return i.call(n,s[0],s[1]);case 3:return i.call(n,s[0],s[1],s[2])}return i.apply(n,s)}function ae(){}function VS(i,n){var s=-1,r=i.length;for(n||(n=Array(r));++s<r;)n[s]=i[s];return n}var YS=800,XS=16,FS=Date.now;function QS(i){var n=0,s=0;return function(){var r=FS(),u=XS-(r-s);if(s=r,u>0){if(++n>=YS)return arguments[0]}else n=0;return i.apply(void 0,arguments)}}function ZS(i){return function(){return i}}var Au=(function(){try{var i=ya(Object,"defineProperty");return i({},"",{}),i}catch{}})(),WS=Au?function(i,n){return Au(i,"toString",{configurable:!0,enumerable:!1,value:ZS(n),writable:!0})}:cs,JS=QS(WS);function c0(i,n){for(var s=-1,r=i==null?0:i.length;++s<r&&n(i[s],s,i)!==!1;);return i}function f0(i,n,s,r){for(var u=i.length,c=s+-1;++c<u;)if(n(i[c],c,i))return c;return-1}function tA(i){return i!==i}function eA(i,n,s){for(var r=s-1,u=i.length;++r<u;)if(i[r]===n)return r;return-1}function Oh(i,n,s){return n===n?eA(i,n,s):f0(i,tA,s)}function h0(i,n){var s=i==null?0:i.length;return!!s&&Oh(i,n,0)>-1}var nA=9007199254740991,iA=/^(?:0|[1-9]\d*)$/;function Gu(i,n){var s=typeof i;return n=n??nA,!!n&&(s=="number"||s!="symbol"&&iA.test(i))&&i>-1&&i%1==0&&i<n}function Nh(i,n,s){n=="__proto__"&&Au?Au(i,n,{configurable:!0,enumerable:!0,value:s,writable:!0}):i[n]=s}function Lr(i,n){return i===n||i!==i&&n!==n}var aA=Object.prototype,sA=aA.hasOwnProperty;function qu(i,n,s){var r=i[n];(!(sA.call(i,n)&&Lr(r,s))||s===void 0&&!(n in i))&&Nh(i,n,s)}function Rh(i,n,s,r){var u=!s;s||(s={});for(var c=-1,h=n.length;++c<h;){var _=n[c],d=void 0;d===void 0&&(d=i[_]),u?Nh(s,_,d):qu(s,_,d)}return s}var Om=Math.max;function rA(i,n,s){return n=Om(n===void 0?i.length-1:n,0),function(){for(var r=arguments,u=-1,c=Om(r.length-n,0),h=Array(c);++u<c;)h[u]=r[n+u];u=-1;for(var _=Array(n+1);++u<n;)_[u]=r[u];return _[n]=s(h),KS(i,this,_)}}function xh(i,n){return JS(rA(i,n,cs),i+"")}var lA=9007199254740991;function Ch(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=lA}function zn(i){return i!=null&&Ch(i.length)&&!oi(i)}function d0(i,n,s){if(!dn(s))return!1;var r=typeof n;return(r=="number"?zn(s)&&Gu(n,s.length):r=="string"&&n in s)?Lr(s[n],i):!1}function uA(i){return xh(function(n,s){var r=-1,u=s.length,c=u>1?s[u-1]:void 0,h=u>2?s[2]:void 0;for(c=i.length>3&&typeof c=="function"?(u--,c):void 0,h&&d0(s[0],s[1],h)&&(c=u<3?void 0:c,u=1),n=Object(n);++r<u;){var _=s[r];_&&i(n,_,r,c)}return n})}var oA=Object.prototype;function wr(i){var n=i&&i.constructor,s=typeof n=="function"&&n.prototype||oA;return i===s}function cA(i,n){for(var s=-1,r=Array(i);++s<i;)r[s]=n(s);return r}var fA="[object Arguments]";function Nm(i){return Tn(i)&&Pi(i)==fA}var _0=Object.prototype,hA=_0.hasOwnProperty,dA=_0.propertyIsEnumerable,Hu=Nm((function(){return arguments})())?Nm:function(i){return Tn(i)&&hA.call(i,"callee")&&!dA.call(i,"callee")};function _A(){return!1}var p0=typeof Xe=="object"&&Xe&&!Xe.nodeType&&Xe,Rm=p0&&typeof Fe=="object"&&Fe&&!Fe.nodeType&&Fe,pA=Rm&&Rm.exports===p0,xm=pA?kn.Buffer:void 0,gA=xm?xm.isBuffer:void 0,Or=gA||_A,mA="[object Arguments]",yA="[object Array]",vA="[object Boolean]",EA="[object Date]",bA="[object Error]",TA="[object Function]",SA="[object Map]",AA="[object Number]",OA="[object Object]",NA="[object RegExp]",RA="[object Set]",xA="[object String]",CA="[object WeakMap]",LA="[object ArrayBuffer]",wA="[object DataView]",MA="[object Float32Array]",UA="[object Float64Array]",IA="[object Int8Array]",kA="[object Int16Array]",zA="[object Int32Array]",BA="[object Uint8Array]",DA="[object Uint8ClampedArray]",jA="[object Uint16Array]",PA="[object Uint32Array]",qt={};qt[MA]=qt[UA]=qt[IA]=qt[kA]=qt[zA]=qt[BA]=qt[DA]=qt[jA]=qt[PA]=!0;qt[mA]=qt[yA]=qt[LA]=qt[vA]=qt[wA]=qt[EA]=qt[bA]=qt[TA]=qt[SA]=qt[AA]=qt[OA]=qt[NA]=qt[RA]=qt[xA]=qt[CA]=!1;function GA(i){return Tn(i)&&Ch(i.length)&&!!qt[Pi(i)]}function $u(i){return function(n){return i(n)}}var g0=typeof Xe=="object"&&Xe&&!Xe.nodeType&&Xe,Tr=g0&&typeof Fe=="object"&&Fe&&!Fe.nodeType&&Fe,qA=Tr&&Tr.exports===g0,wf=qA&&l0.process,Di=(function(){try{var i=Tr&&Tr.require&&Tr.require("util").types;return i||wf&&wf.binding&&wf.binding("util")}catch{}})(),Cm=Di&&Di.isTypedArray,Lh=Cm?$u(Cm):GA,HA=Object.prototype,$A=HA.hasOwnProperty;function m0(i,n){var s=xt(i),r=!s&&Hu(i),u=!s&&!r&&Or(i),c=!s&&!r&&!u&&Lh(i),h=s||r||u||c,_=h?cA(i.length,String):[],d=_.length;for(var g in i)(n||$A.call(i,g))&&!(h&&(g=="length"||u&&(g=="offset"||g=="parent")||c&&(g=="buffer"||g=="byteLength"||g=="byteOffset")||Gu(g,d)))&&_.push(g);return _}function y0(i,n){return function(s){return i(n(s))}}var KA=y0(Object.keys,Object),VA=Object.prototype,YA=VA.hasOwnProperty;function v0(i){if(!wr(i))return KA(i);var n=[];for(var s in Object(i))YA.call(i,s)&&s!="constructor"&&n.push(s);return n}function _n(i){return zn(i)?m0(i):v0(i)}var XA=Object.prototype,FA=XA.hasOwnProperty,Qe=uA(function(i,n){if(wr(n)||zn(n)){Rh(n,_n(n),i);return}for(var s in n)FA.call(n,s)&&qu(i,s,n[s])});function QA(i){var n=[];if(i!=null)for(var s in Object(i))n.push(s);return n}var ZA=Object.prototype,WA=ZA.hasOwnProperty;function JA(i){if(!dn(i))return QA(i);var n=wr(i),s=[];for(var r in i)r=="constructor"&&(n||!WA.call(i,r))||s.push(r);return s}function E0(i){return zn(i)?m0(i,!0):JA(i)}var tO=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,eO=/^\w*$/;function wh(i,n){if(xt(i))return!1;var s=typeof i;return s=="number"||s=="symbol"||s=="boolean"||i==null||Du(i)?!0:eO.test(i)||!tO.test(i)||n!=null&&i in Object(n)}var Nr=ya(Object,"create");function nO(){this.__data__=Nr?Nr(null):{},this.size=0}function iO(i){var n=this.has(i)&&delete this.__data__[i];return this.size-=n?1:0,n}var aO="__lodash_hash_undefined__",sO=Object.prototype,rO=sO.hasOwnProperty;function lO(i){var n=this.__data__;if(Nr){var s=n[i];return s===aO?void 0:s}return rO.call(n,i)?n[i]:void 0}var uO=Object.prototype,oO=uO.hasOwnProperty;function cO(i){var n=this.__data__;return Nr?n[i]!==void 0:oO.call(n,i)}var fO="__lodash_hash_undefined__";function hO(i,n){var s=this.__data__;return this.size+=this.has(i)?0:1,s[i]=Nr&&n===void 0?fO:n,this}function ha(i){var n=-1,s=i==null?0:i.length;for(this.clear();++n<s;){var r=i[n];this.set(r[0],r[1])}}ha.prototype.clear=nO;ha.prototype.delete=iO;ha.prototype.get=lO;ha.prototype.has=cO;ha.prototype.set=hO;function dO(){this.__data__=[],this.size=0}function Ku(i,n){for(var s=i.length;s--;)if(Lr(i[s][0],n))return s;return-1}var _O=Array.prototype,pO=_O.splice;function gO(i){var n=this.__data__,s=Ku(n,i);if(s<0)return!1;var r=n.length-1;return s==r?n.pop():pO.call(n,s,1),--this.size,!0}function mO(i){var n=this.__data__,s=Ku(n,i);return s<0?void 0:n[s][1]}function yO(i){return Ku(this.__data__,i)>-1}function vO(i,n){var s=this.__data__,r=Ku(s,i);return r<0?(++this.size,s.push([i,n])):s[r][1]=n,this}function ci(i){var n=-1,s=i==null?0:i.length;for(this.clear();++n<s;){var r=i[n];this.set(r[0],r[1])}}ci.prototype.clear=dO;ci.prototype.delete=gO;ci.prototype.get=mO;ci.prototype.has=yO;ci.prototype.set=vO;var Rr=ya(kn,"Map");function EO(){this.size=0,this.__data__={hash:new ha,map:new(Rr||ci),string:new ha}}function bO(i){var n=typeof i;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?i!=="__proto__":i===null}function Vu(i,n){var s=i.__data__;return bO(n)?s[typeof n=="string"?"string":"hash"]:s.map}function TO(i){var n=Vu(this,i).delete(i);return this.size-=n?1:0,n}function SO(i){return Vu(this,i).get(i)}function AO(i){return Vu(this,i).has(i)}function OO(i,n){var s=Vu(this,i),r=s.size;return s.set(i,n),this.size+=s.size==r?0:1,this}function fi(i){var n=-1,s=i==null?0:i.length;for(this.clear();++n<s;){var r=i[n];this.set(r[0],r[1])}}fi.prototype.clear=EO;fi.prototype.delete=TO;fi.prototype.get=SO;fi.prototype.has=AO;fi.prototype.set=OO;var NO="Expected a function";function Mh(i,n){if(typeof i!="function"||n!=null&&typeof n!="function")throw new TypeError(NO);var s=function(){var r=arguments,u=n?n.apply(this,r):r[0],c=s.cache;if(c.has(u))return c.get(u);var h=i.apply(this,r);return s.cache=c.set(u,h)||c,h};return s.cache=new(Mh.Cache||fi),s}Mh.Cache=fi;var RO=500;function xO(i){var n=Mh(i,function(r){return s.size===RO&&s.clear(),r}),s=n.cache;return n}var CO=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,LO=/\\(\\)?/g,wO=xO(function(i){var n=[];return i.charCodeAt(0)===46&&n.push(""),i.replace(CO,function(s,r,u,c){n.push(u?c.replace(LO,"$1"):r||s)}),n});function MO(i){return i==null?"":o0(i)}function Yu(i,n){return xt(i)?i:wh(i,n)?[i]:wO(MO(i))}function Mr(i){if(typeof i=="string"||Du(i))return i;var n=i+"";return n=="0"&&1/i==-1/0?"-0":n}function Uh(i,n){n=Yu(n,i);for(var s=0,r=n.length;i!=null&&s<r;)i=i[Mr(n[s++])];return s&&s==r?i:void 0}function UO(i,n,s){var r=i==null?void 0:Uh(i,n);return r===void 0?s:r}function Ih(i,n){for(var s=-1,r=n.length,u=i.length;++s<r;)i[u+s]=n[s];return i}var Lm=hn?hn.isConcatSpreadable:void 0;function IO(i){return xt(i)||Hu(i)||!!(Lm&&i&&i[Lm])}function kh(i,n,s,r,u){var c=-1,h=i.length;for(s||(s=IO),u||(u=[]);++c<h;){var _=i[c];s(_)?Ih(u,_):r||(u[u.length]=_)}return u}function En(i){var n=i==null?0:i.length;return n?kh(i):[]}var b0=y0(Object.getPrototypeOf,Object);function T0(i,n,s){var r=-1,u=i.length;n<0&&(n=-n>u?0:u+n),s=s>u?u:s,s<0&&(s+=u),u=n>s?0:s-n>>>0,n>>>=0;for(var c=Array(u);++r<u;)c[r]=i[r+n];return c}function kO(i,n,s,r){var u=-1,c=i==null?0:i.length;for(r&&c&&(s=i[++u]);++u<c;)s=n(s,i[u],u,i);return s}function zO(){this.__data__=new ci,this.size=0}function BO(i){var n=this.__data__,s=n.delete(i);return this.size=n.size,s}function DO(i){return this.__data__.get(i)}function jO(i){return this.__data__.has(i)}var PO=200;function GO(i,n){var s=this.__data__;if(s instanceof ci){var r=s.__data__;if(!Rr||r.length<PO-1)return r.push([i,n]),this.size=++s.size,this;s=this.__data__=new fi(r)}return s.set(i,n),this.size=s.size,this}function In(i){var n=this.__data__=new ci(i);this.size=n.size}In.prototype.clear=zO;In.prototype.delete=BO;In.prototype.get=DO;In.prototype.has=jO;In.prototype.set=GO;function qO(i,n){return i&&Rh(n,_n(n),i)}var S0=typeof Xe=="object"&&Xe&&!Xe.nodeType&&Xe,wm=S0&&typeof Fe=="object"&&Fe&&!Fe.nodeType&&Fe,HO=wm&&wm.exports===S0,Mm=HO?kn.Buffer:void 0,Um=Mm?Mm.allocUnsafe:void 0;function $O(i,n){var s=i.length,r=Um?Um(s):new i.constructor(s);return i.copy(r),r}function zh(i,n){for(var s=-1,r=i==null?0:i.length,u=0,c=[];++s<r;){var h=i[s];n(h,s,i)&&(c[u++]=h)}return c}function A0(){return[]}var KO=Object.prototype,VO=KO.propertyIsEnumerable,Im=Object.getOwnPropertySymbols,Bh=Im?function(i){return i==null?[]:(i=Object(i),zh(Im(i),function(n){return VO.call(i,n)}))}:A0;function YO(i,n){return Rh(i,Bh(i),n)}var XO=Object.getOwnPropertySymbols,FO=XO?function(i){for(var n=[];i;)Ih(n,Bh(i)),i=b0(i);return n}:A0;function O0(i,n,s){var r=n(i);return xt(i)?r:Ih(r,s(i))}function ih(i){return O0(i,_n,Bh)}function QO(i){return O0(i,E0,FO)}var ah=ya(kn,"DataView"),sh=ya(kn,"Promise"),os=ya(kn,"Set"),km="[object Map]",ZO="[object Object]",zm="[object Promise]",Bm="[object Set]",Dm="[object WeakMap]",jm="[object DataView]",WO=ma(ah),JO=ma(Rr),tN=ma(sh),eN=ma(os),nN=ma(nh),cn=Pi;(ah&&cn(new ah(new ArrayBuffer(1)))!=jm||Rr&&cn(new Rr)!=km||sh&&cn(sh.resolve())!=zm||os&&cn(new os)!=Bm||nh&&cn(new nh)!=Dm)&&(cn=function(i){var n=Pi(i),s=n==ZO?i.constructor:void 0,r=s?ma(s):"";if(r)switch(r){case WO:return jm;case JO:return km;case tN:return zm;case eN:return Bm;case nN:return Dm}return n});var iN=Object.prototype,aN=iN.hasOwnProperty;function sN(i){var n=i.length,s=new i.constructor(n);return n&&typeof i[0]=="string"&&aN.call(i,"index")&&(s.index=i.index,s.input=i.input),s}var Ou=kn.Uint8Array;function rN(i){var n=new i.constructor(i.byteLength);return new Ou(n).set(new Ou(i)),n}function lN(i,n){var s=i.buffer;return new i.constructor(s,i.byteOffset,i.byteLength)}var uN=/\w*$/;function oN(i){var n=new i.constructor(i.source,uN.exec(i));return n.lastIndex=i.lastIndex,n}var Pm=hn?hn.prototype:void 0,Gm=Pm?Pm.valueOf:void 0;function cN(i){return Gm?Object(Gm.call(i)):{}}function fN(i,n){var s=i.buffer;return new i.constructor(s,i.byteOffset,i.length)}var hN="[object Boolean]",dN="[object Date]",_N="[object Map]",pN="[object Number]",gN="[object RegExp]",mN="[object Set]",yN="[object String]",vN="[object Symbol]",EN="[object ArrayBuffer]",bN="[object DataView]",TN="[object Float32Array]",SN="[object Float64Array]",AN="[object Int8Array]",ON="[object Int16Array]",NN="[object Int32Array]",RN="[object Uint8Array]",xN="[object Uint8ClampedArray]",CN="[object Uint16Array]",LN="[object Uint32Array]";function wN(i,n,s){var r=i.constructor;switch(n){case EN:return rN(i);case hN:case dN:return new r(+i);case bN:return lN(i);case TN:case SN:case AN:case ON:case NN:case RN:case xN:case CN:case LN:return fN(i);case _N:return new r;case pN:case yN:return new r(i);case gN:return oN(i);case mN:return new r;case vN:return cN(i)}}function MN(i){return typeof i.constructor=="function"&&!wr(i)?$S(b0(i)):{}}var UN="[object Map]";function IN(i){return Tn(i)&&cn(i)==UN}var qm=Di&&Di.isMap,kN=qm?$u(qm):IN,zN="[object Set]";function BN(i){return Tn(i)&&cn(i)==zN}var Hm=Di&&Di.isSet,DN=Hm?$u(Hm):BN,N0="[object Arguments]",jN="[object Array]",PN="[object Boolean]",GN="[object Date]",qN="[object Error]",R0="[object Function]",HN="[object GeneratorFunction]",$N="[object Map]",KN="[object Number]",x0="[object Object]",VN="[object RegExp]",YN="[object Set]",XN="[object String]",FN="[object Symbol]",QN="[object WeakMap]",ZN="[object ArrayBuffer]",WN="[object DataView]",JN="[object Float32Array]",tR="[object Float64Array]",eR="[object Int8Array]",nR="[object Int16Array]",iR="[object Int32Array]",aR="[object Uint8Array]",sR="[object Uint8ClampedArray]",rR="[object Uint16Array]",lR="[object Uint32Array]",Dt={};Dt[N0]=Dt[jN]=Dt[ZN]=Dt[WN]=Dt[PN]=Dt[GN]=Dt[JN]=Dt[tR]=Dt[eR]=Dt[nR]=Dt[iR]=Dt[$N]=Dt[KN]=Dt[x0]=Dt[VN]=Dt[YN]=Dt[XN]=Dt[FN]=Dt[aR]=Dt[sR]=Dt[rR]=Dt[lR]=!0;Dt[qN]=Dt[R0]=Dt[QN]=!1;function pu(i,n,s,r,u,c){var h;if(h!==void 0)return h;if(!dn(i))return i;var _=xt(i);if(_)return h=sN(i),VS(i,h);var d=cn(i),g=d==R0||d==HN;if(Or(i))return $O(i);if(d==x0||d==N0||g&&!u)return h=g?{}:MN(i),YO(i,qO(h,i));if(!Dt[d])return u?i:{};h=wN(i,d),c||(c=new In);var b=c.get(i);if(b)return b;c.set(i,h),DN(i)?i.forEach(function(j){h.add(pu(j,n,s,j,i,c))}):kN(i)&&i.forEach(function(j,H){h.set(H,pu(j,n,s,H,i,c))});var E=ih,A=_?void 0:E(i);return c0(A||i,function(j,H){A&&(H=j,j=i[H]),qu(h,H,pu(j,n,s,H,i,c))}),h}var uR=4;function pe(i){return pu(i,uR)}function Ur(i){for(var n=-1,s=i==null?0:i.length,r=0,u=[];++n<s;){var c=i[n];c&&(u[r++]=c)}return u}var oR="__lodash_hash_undefined__";function cR(i){return this.__data__.set(i,oR),this}function fR(i){return this.__data__.has(i)}function fs(i){var n=-1,s=i==null?0:i.length;for(this.__data__=new fi;++n<s;)this.add(i[n])}fs.prototype.add=fs.prototype.push=cR;fs.prototype.has=fR;function C0(i,n){for(var s=-1,r=i==null?0:i.length;++s<r;)if(n(i[s],s,i))return!0;return!1}function Dh(i,n){return i.has(n)}var hR=1,dR=2;function L0(i,n,s,r,u,c){var h=s&hR,_=i.length,d=n.length;if(_!=d&&!(h&&d>_))return!1;var g=c.get(i),b=c.get(n);if(g&&b)return g==n&&b==i;var E=-1,A=!0,j=s&dR?new fs:void 0;for(c.set(i,n),c.set(n,i);++E<_;){var H=i[E],X=n[E];if(r)var S=h?r(X,H,E,n,i,c):r(H,X,E,i,n,c);if(S!==void 0){if(S)continue;A=!1;break}if(j){if(!C0(n,function(v,T){if(!Dh(j,T)&&(H===v||u(H,v,s,r,c)))return j.push(T)})){A=!1;break}}else if(!(H===X||u(H,X,s,r,c))){A=!1;break}}return c.delete(i),c.delete(n),A}function _R(i){var n=-1,s=Array(i.size);return i.forEach(function(r,u){s[++n]=[u,r]}),s}function jh(i){var n=-1,s=Array(i.size);return i.forEach(function(r){s[++n]=r}),s}var pR=1,gR=2,mR="[object Boolean]",yR="[object Date]",vR="[object Error]",ER="[object Map]",bR="[object Number]",TR="[object RegExp]",SR="[object Set]",AR="[object String]",OR="[object Symbol]",NR="[object ArrayBuffer]",RR="[object DataView]",$m=hn?hn.prototype:void 0,Mf=$m?$m.valueOf:void 0;function xR(i,n,s,r,u,c,h){switch(s){case RR:if(i.byteLength!=n.byteLength||i.byteOffset!=n.byteOffset)return!1;i=i.buffer,n=n.buffer;case NR:return!(i.byteLength!=n.byteLength||!c(new Ou(i),new Ou(n)));case mR:case yR:case bR:return Lr(+i,+n);case vR:return i.name==n.name&&i.message==n.message;case TR:case AR:return i==n+"";case ER:var _=_R;case SR:var d=r&pR;if(_||(_=jh),i.size!=n.size&&!d)return!1;var g=h.get(i);if(g)return g==n;r|=gR,h.set(i,n);var b=L0(_(i),_(n),r,u,c,h);return h.delete(i),b;case OR:if(Mf)return Mf.call(i)==Mf.call(n)}return!1}var CR=1,LR=Object.prototype,wR=LR.hasOwnProperty;function MR(i,n,s,r,u,c){var h=s&CR,_=ih(i),d=_.length,g=ih(n),b=g.length;if(d!=b&&!h)return!1;for(var E=d;E--;){var A=_[E];if(!(h?A in n:wR.call(n,A)))return!1}var j=c.get(i),H=c.get(n);if(j&&H)return j==n&&H==i;var X=!0;c.set(i,n),c.set(n,i);for(var S=h;++E<d;){A=_[E];var v=i[A],T=n[A];if(r)var w=h?r(T,v,A,n,i,c):r(v,T,A,i,n,c);if(!(w===void 0?v===T||u(v,T,s,r,c):w)){X=!1;break}S||(S=A=="constructor")}if(X&&!S){var I=i.constructor,F=n.constructor;I!=F&&"constructor"in i&&"constructor"in n&&!(typeof I=="function"&&I instanceof I&&typeof F=="function"&&F instanceof F)&&(X=!1)}return c.delete(i),c.delete(n),X}var UR=1,Km="[object Arguments]",Vm="[object Array]",au="[object Object]",IR=Object.prototype,Ym=IR.hasOwnProperty;function kR(i,n,s,r,u,c){var h=xt(i),_=xt(n),d=h?Vm:cn(i),g=_?Vm:cn(n);d=d==Km?au:d,g=g==Km?au:g;var b=d==au,E=g==au,A=d==g;if(A&&Or(i)){if(!Or(n))return!1;h=!0,b=!1}if(A&&!b)return c||(c=new In),h||Lh(i)?L0(i,n,s,r,u,c):xR(i,n,d,s,r,u,c);if(!(s&UR)){var j=b&&Ym.call(i,"__wrapped__"),H=E&&Ym.call(n,"__wrapped__");if(j||H){var X=j?i.value():i,S=H?n.value():n;return c||(c=new In),u(X,S,s,r,c)}}return A?(c||(c=new In),MR(i,n,s,r,u,c)):!1}function Ph(i,n,s,r,u){return i===n?!0:i==null||n==null||!Tn(i)&&!Tn(n)?i!==i&&n!==n:kR(i,n,s,r,Ph,u)}var zR=1,BR=2;function DR(i,n,s,r){var u=s.length,c=u;if(i==null)return!c;for(i=Object(i);u--;){var h=s[u];if(h[2]?h[1]!==i[h[0]]:!(h[0]in i))return!1}for(;++u<c;){h=s[u];var _=h[0],d=i[_],g=h[1];if(h[2]){if(d===void 0&&!(_ in i))return!1}else{var b=new In,E;if(!(E===void 0?Ph(g,d,zR|BR,r,b):E))return!1}}return!0}function w0(i){return i===i&&!dn(i)}function jR(i){for(var n=_n(i),s=n.length;s--;){var r=n[s],u=i[r];n[s]=[r,u,w0(u)]}return n}function M0(i,n){return function(s){return s==null?!1:s[i]===n&&(n!==void 0||i in Object(s))}}function PR(i){var n=jR(i);return n.length==1&&n[0][2]?M0(n[0][0],n[0][1]):function(s){return s===i||DR(s,i,n)}}function GR(i,n){return i!=null&&n in Object(i)}function U0(i,n,s){n=Yu(n,i);for(var r=-1,u=n.length,c=!1;++r<u;){var h=Mr(n[r]);if(!(c=i!=null&&s(i,h)))break;i=i[h]}return c||++r!=u?c:(u=i==null?0:i.length,!!u&&Ch(u)&&Gu(h,u)&&(xt(i)||Hu(i)))}function qR(i,n){return i!=null&&U0(i,n,GR)}var HR=1,$R=2;function KR(i,n){return wh(i)&&w0(n)?M0(Mr(i),n):function(s){var r=UO(s,i);return r===void 0&&r===n?qR(s,i):Ph(n,r,HR|$R)}}function VR(i){return function(n){return n?.[i]}}function YR(i){return function(n){return Uh(n,i)}}function XR(i){return wh(i)?VR(Mr(i)):YR(i)}function Bn(i){return typeof i=="function"?i:i==null?cs:typeof i=="object"?xt(i)?KR(i[0],i[1]):PR(i):XR(i)}function FR(i,n,s,r){for(var u=-1,c=i==null?0:i.length;++u<c;){var h=i[u];n(r,h,s(h),i)}return r}function QR(i){return function(n,s,r){for(var u=-1,c=Object(n),h=r(n),_=h.length;_--;){var d=h[++u];if(s(c[d],d,c)===!1)break}return n}}var ZR=QR();function WR(i,n){return i&&ZR(i,n,_n)}function JR(i,n){return function(s,r){if(s==null)return s;if(!zn(s))return i(s,r);for(var u=s.length,c=-1,h=Object(s);++c<u&&r(h[c],c,h)!==!1;);return s}}var va=JR(WR);function tx(i,n,s,r){return va(i,function(u,c,h){n(r,u,s(u),h)}),r}function ex(i,n){return function(s,r){var u=xt(s)?FR:tx,c=n?n():{};return u(s,i,Bn(r),c)}}var I0=Object.prototype,nx=I0.hasOwnProperty,Gh=xh(function(i,n){i=Object(i);var s=-1,r=n.length,u=r>2?n[2]:void 0;for(u&&d0(n[0],n[1],u)&&(r=1);++s<r;)for(var c=n[s],h=E0(c),_=-1,d=h.length;++_<d;){var g=h[_],b=i[g];(b===void 0||Lr(b,I0[g])&&!nx.call(i,g))&&(i[g]=c[g])}return i});function Xm(i){return Tn(i)&&zn(i)}var ix=200;function ax(i,n,s,r){var u=-1,c=h0,h=!0,_=i.length,d=[],g=n.length;if(!_)return d;n.length>=ix&&(c=Dh,h=!1,n=new fs(n));t:for(;++u<_;){var b=i[u],E=b;if(b=b!==0?b:0,h&&E===E){for(var A=g;A--;)if(n[A]===E)continue t;d.push(b)}else c(n,E,r)||d.push(b)}return d}var Xu=xh(function(i,n){return Xm(i)?ax(i,kh(n,1,Xm,!0)):[]});function da(i){var n=i==null?0:i.length;return n?i[n-1]:void 0}function _e(i,n,s){var r=i==null?0:i.length;return r?(n=n===void 0?1:Pu(n),T0(i,n<0?0:n,r)):[]}function xr(i,n,s){var r=i==null?0:i.length;return r?(n=n===void 0?1:Pu(n),n=r-n,T0(i,0,n<0?0:n)):[]}function sx(i){return typeof i=="function"?i:cs}function ht(i,n){var s=xt(i)?c0:va;return s(i,sx(n))}function rx(i,n){for(var s=-1,r=i==null?0:i.length;++s<r;)if(!n(i[s],s,i))return!1;return!0}function lx(i,n){var s=!0;return va(i,function(r,u,c){return s=!!n(r,u,c),s}),s}function bn(i,n,s){var r=xt(i)?rx:lx;return r(i,Bn(n))}function k0(i,n){var s=[];return va(i,function(r,u,c){n(r,u,c)&&s.push(r)}),s}function pn(i,n){var s=xt(i)?zh:k0;return s(i,Bn(n))}function ux(i){return function(n,s,r){var u=Object(n);if(!zn(n)){var c=Bn(s);n=_n(n),s=function(_){return c(u[_],_,u)}}var h=i(n,s,r);return h>-1?u[c?n[h]:h]:void 0}}var ox=Math.max;function cx(i,n,s){var r=i==null?0:i.length;if(!r)return-1;var u=s==null?0:Pu(s);return u<0&&(u=ox(r+u,0)),f0(i,Bn(n),u)}var hs=ux(cx);function Sn(i){return i&&i.length?i[0]:void 0}function fx(i,n){var s=-1,r=zn(i)?Array(i.length):[];return va(i,function(u,c,h){r[++s]=n(u,c,h)}),r}function rt(i,n){var s=xt(i)?ju:fx;return s(i,Bn(n))}function fn(i,n){return kh(rt(i,n))}var hx=Object.prototype,dx=hx.hasOwnProperty,_x=ex(function(i,n,s){dx.call(i,s)?i[s].push(n):Nh(i,s,[n])}),px=Object.prototype,gx=px.hasOwnProperty;function mx(i,n){return i!=null&&gx.call(i,n)}function ft(i,n){return i!=null&&U0(i,n,mx)}var yx="[object String]";function Ue(i){return typeof i=="string"||!xt(i)&&Tn(i)&&Pi(i)==yx}function vx(i,n){return ju(n,function(s){return i[s]})}function se(i){return i==null?[]:vx(i,_n(i))}var Ex=Math.max;function Se(i,n,s,r){i=zn(i)?i:se(i),s=s?Pu(s):0;var u=i.length;return s<0&&(s=Ex(u+s,0)),Ue(i)?s<=u&&i.indexOf(n,s)>-1:!!u&&Oh(i,n,s)>-1}function Fm(i,n,s){var r=i==null?0:i.length;if(!r)return-1;var u=0;return Oh(i,n,u)}var bx="[object Map]",Tx="[object Set]",Sx=Object.prototype,Ax=Sx.hasOwnProperty;function jt(i){if(i==null)return!0;if(zn(i)&&(xt(i)||typeof i=="string"||typeof i.splice=="function"||Or(i)||Lh(i)||Hu(i)))return!i.length;var n=cn(i);if(n==bx||n==Tx)return!i.size;if(wr(i))return!v0(i).length;for(var s in i)if(Ax.call(i,s))return!1;return!0}var Ox="[object RegExp]";function Nx(i){return Tn(i)&&Pi(i)==Ox}var Qm=Di&&Di.isRegExp,ri=Qm?$u(Qm):Nx;function li(i){return i===void 0}var Rx="Expected a function";function xx(i){if(typeof i!="function")throw new TypeError(Rx);return function(){var n=arguments;switch(n.length){case 0:return!i.call(this);case 1:return!i.call(this,n[0]);case 2:return!i.call(this,n[0],n[1]);case 3:return!i.call(this,n[0],n[1],n[2])}return!i.apply(this,n)}}function Cx(i,n,s,r){if(!dn(i))return i;n=Yu(n,i);for(var u=-1,c=n.length,h=c-1,_=i;_!=null&&++u<c;){var d=Mr(n[u]),g=s;if(d==="__proto__"||d==="constructor"||d==="prototype")return i;if(u!=h){var b=_[d];g=void 0,g===void 0&&(g=dn(b)?b:Gu(n[u+1])?[]:{})}qu(_,d,g),_=_[d]}return i}function Lx(i,n,s){for(var r=-1,u=n.length,c={};++r<u;){var h=n[r],_=Uh(i,h);s(_,h)&&Cx(c,Yu(h,i),_)}return c}function An(i,n){if(i==null)return{};var s=ju(QO(i),function(r){return[r]});return n=Bn(n),Lx(i,s,function(r,u){return n(r,u[0])})}function wx(i,n,s,r,u){return u(i,function(c,h,_){s=r?(r=!1,c):n(s,c,h,_)}),s}function Ze(i,n,s){var r=xt(i)?kO:wx,u=arguments.length<3;return r(i,Bn(n),s,u,va)}function Fu(i,n){var s=xt(i)?zh:k0;return s(i,xx(Bn(n)))}function Mx(i,n){var s;return va(i,function(r,u,c){return s=n(r,u,c),!s}),!!s}function z0(i,n,s){var r=xt(i)?C0:Mx;return r(i,Bn(n))}var Ux=1/0,Ix=os&&1/jh(new os([,-0]))[1]==Ux?function(i){return new os(i)}:ae,kx=200;function zx(i,n,s){var r=-1,u=h0,c=i.length,h=!0,_=[],d=_;if(c>=kx){var g=Ix(i);if(g)return jh(g);h=!1,u=Dh,d=new fs}else d=_;t:for(;++r<c;){var b=i[r],E=b;if(b=b!==0?b:0,h&&E===E){for(var A=d.length;A--;)if(d[A]===E)continue t;_.push(b)}else u(d,E,s)||(d!==_&&d.push(E),_.push(b))}return _}function qh(i){return i&&i.length?zx(i):[]}function rh(i){console&&console.error&&console.error(`Error: ${i}`)}function B0(i){console&&console.warn&&console.warn(`Warning: ${i}`)}function D0(i){const n=new Date().getTime(),s=i();return{time:new Date().getTime()-n,value:s}}function j0(i){function n(){}n.prototype=i;const s=new n;function r(){return typeof s.bar}return r(),r(),i}function Bx(i){return Dx(i)?i.LABEL:i.name}function Dx(i){return Ue(i.LABEL)&&i.LABEL!==""}class Dn{get definition(){return this._definition}set definition(n){this._definition=n}constructor(n){this._definition=n}accept(n){n.visit(this),ht(this.definition,s=>{s.accept(n)})}}class We extends Dn{constructor(n){super([]),this.idx=1,Qe(this,An(n,s=>s!==void 0))}set definition(n){}get definition(){return this.referencedRule!==void 0?this.referencedRule.definition:[]}accept(n){n.visit(this)}}class ds extends Dn{constructor(n){super(n.definition),this.orgText="",Qe(this,An(n,s=>s!==void 0))}}class Ie extends Dn{constructor(n){super(n.definition),this.ignoreAmbiguities=!1,Qe(this,An(n,s=>s!==void 0))}}class Me extends Dn{constructor(n){super(n.definition),this.idx=1,Qe(this,An(n,s=>s!==void 0))}}class jn extends Dn{constructor(n){super(n.definition),this.idx=1,Qe(this,An(n,s=>s!==void 0))}}class Pn extends Dn{constructor(n){super(n.definition),this.idx=1,Qe(this,An(n,s=>s!==void 0))}}class re extends Dn{constructor(n){super(n.definition),this.idx=1,Qe(this,An(n,s=>s!==void 0))}}class On extends Dn{constructor(n){super(n.definition),this.idx=1,Qe(this,An(n,s=>s!==void 0))}}class Nn extends Dn{get definition(){return this._definition}set definition(n){this._definition=n}constructor(n){super(n.definition),this.idx=1,this.ignoreAmbiguities=!1,this.hasPredicates=!1,Qe(this,An(n,s=>s!==void 0))}}class $t{constructor(n){this.idx=1,Qe(this,An(n,s=>s!==void 0))}accept(n){n.visit(this)}}function jx(i){return rt(i,gu)}function gu(i){function n(s){return rt(s,gu)}if(i instanceof We){const s={type:"NonTerminal",name:i.nonTerminalName,idx:i.idx};return Ue(i.label)&&(s.label=i.label),s}else{if(i instanceof Ie)return{type:"Alternative",definition:n(i.definition)};if(i instanceof Me)return{type:"Option",idx:i.idx,definition:n(i.definition)};if(i instanceof jn)return{type:"RepetitionMandatory",idx:i.idx,definition:n(i.definition)};if(i instanceof Pn)return{type:"RepetitionMandatoryWithSeparator",idx:i.idx,separator:gu(new $t({terminalType:i.separator})),definition:n(i.definition)};if(i instanceof On)return{type:"RepetitionWithSeparator",idx:i.idx,separator:gu(new $t({terminalType:i.separator})),definition:n(i.definition)};if(i instanceof re)return{type:"Repetition",idx:i.idx,definition:n(i.definition)};if(i instanceof Nn)return{type:"Alternation",idx:i.idx,definition:n(i.definition)};if(i instanceof $t){const s={type:"Terminal",name:i.terminalType.name,label:Bx(i.terminalType),idx:i.idx};Ue(i.label)&&(s.terminalLabel=i.label);const r=i.terminalType.PATTERN;return i.terminalType.PATTERN&&(s.pattern=ri(r)?r.source:r),s}else{if(i instanceof ds)return{type:"Rule",name:i.name,orgText:i.orgText,definition:n(i.definition)};throw Error("non exhaustive match")}}}class _s{visit(n){const s=n;switch(s.constructor){case We:return this.visitNonTerminal(s);case Ie:return this.visitAlternative(s);case Me:return this.visitOption(s);case jn:return this.visitRepetitionMandatory(s);case Pn:return this.visitRepetitionMandatoryWithSeparator(s);case On:return this.visitRepetitionWithSeparator(s);case re:return this.visitRepetition(s);case Nn:return this.visitAlternation(s);case $t:return this.visitTerminal(s);case ds:return this.visitRule(s);default:throw Error("non exhaustive match")}}visitNonTerminal(n){}visitAlternative(n){}visitOption(n){}visitRepetition(n){}visitRepetitionMandatory(n){}visitRepetitionMandatoryWithSeparator(n){}visitRepetitionWithSeparator(n){}visitAlternation(n){}visitTerminal(n){}visitRule(n){}}function Px(i){return i instanceof Ie||i instanceof Me||i instanceof re||i instanceof jn||i instanceof Pn||i instanceof On||i instanceof $t||i instanceof ds}function Nu(i,n=[]){return i instanceof Me||i instanceof re||i instanceof On?!0:i instanceof Nn?z0(i.definition,r=>Nu(r,n)):i instanceof We&&Se(n,i)?!1:i instanceof Dn?(i instanceof We&&n.push(i),bn(i.definition,r=>Nu(r,n))):!1}function Gx(i){return i instanceof Nn}function Un(i){if(i instanceof We)return"SUBRULE";if(i instanceof Me)return"OPTION";if(i instanceof Nn)return"OR";if(i instanceof jn)return"AT_LEAST_ONE";if(i instanceof Pn)return"AT_LEAST_ONE_SEP";if(i instanceof On)return"MANY_SEP";if(i instanceof re)return"MANY";if(i instanceof $t)return"CONSUME";throw Error("non exhaustive match")}class Qu{walk(n,s=[]){ht(n.definition,(r,u)=>{const c=_e(n.definition,u+1);if(r instanceof We)this.walkProdRef(r,c,s);else if(r instanceof $t)this.walkTerminal(r,c,s);else if(r instanceof Ie)this.walkFlat(r,c,s);else if(r instanceof Me)this.walkOption(r,c,s);else if(r instanceof jn)this.walkAtLeastOne(r,c,s);else if(r instanceof Pn)this.walkAtLeastOneSep(r,c,s);else if(r instanceof On)this.walkManySep(r,c,s);else if(r instanceof re)this.walkMany(r,c,s);else if(r instanceof Nn)this.walkOr(r,c,s);else throw Error("non exhaustive match")})}walkTerminal(n,s,r){}walkProdRef(n,s,r){}walkFlat(n,s,r){const u=s.concat(r);this.walk(n,u)}walkOption(n,s,r){const u=s.concat(r);this.walk(n,u)}walkAtLeastOne(n,s,r){const u=[new Me({definition:n.definition})].concat(s,r);this.walk(n,u)}walkAtLeastOneSep(n,s,r){const u=Zm(n,s,r);this.walk(n,u)}walkMany(n,s,r){const u=[new Me({definition:n.definition})].concat(s,r);this.walk(n,u)}walkManySep(n,s,r){const u=Zm(n,s,r);this.walk(n,u)}walkOr(n,s,r){const u=s.concat(r);ht(n.definition,c=>{const h=new Ie({definition:[c]});this.walk(h,u)})}}function Zm(i,n,s){return[new Me({definition:[new $t({terminalType:i.separator})].concat(i.definition)})].concat(n,s)}function Ir(i){if(i instanceof We)return Ir(i.referencedRule);if(i instanceof $t)return $x(i);if(Px(i))return qx(i);if(Gx(i))return Hx(i);throw Error("non exhaustive match")}function qx(i){let n=[];const s=i.definition;let r=0,u=s.length>r,c,h=!0;for(;u&&h;)c=s[r],h=Nu(c),n=n.concat(Ir(c)),r=r+1,u=s.length>r;return qh(n)}function Hx(i){const n=rt(i.definition,s=>Ir(s));return qh(En(n))}function $x(i){return[i.terminalType]}const P0="_~IN~_";class Kx extends Qu{constructor(n){super(),this.topProd=n,this.follows={}}startWalking(){return this.walk(this.topProd),this.follows}walkTerminal(n,s,r){}walkProdRef(n,s,r){const u=Yx(n.referencedRule,n.idx)+this.topProd.name,c=s.concat(r),h=new Ie({definition:c}),_=Ir(h);this.follows[u]=_}}function Vx(i){const n={};return ht(i,s=>{const r=new Kx(s).startWalking();Qe(n,r)}),n}function Yx(i,n){return i.name+n+P0}function dt(i){return i.charCodeAt(0)}function Uf(i,n){Array.isArray(i)?i.forEach(function(s){n.push(s)}):n.push(i)}function cr(i,n){if(i[n]===!0)throw"duplicate flag "+n;i[n],i[n]=!0}function ss(i){if(i===void 0)throw Error("Internal Error - Should never get here!");return!0}function Xx(){throw Error("Internal Error - Should never get here!")}function Wm(i){return i.type==="Character"}const Ru=[];for(let i=dt("0");i<=dt("9");i++)Ru.push(i);const xu=[dt("_")].concat(Ru);for(let i=dt("a");i<=dt("z");i++)xu.push(i);for(let i=dt("A");i<=dt("Z");i++)xu.push(i);const Jm=[dt(" "),dt("\f"),dt(`
20
- `),dt("\r"),dt(" "),dt("\v"),dt(" "),dt(" "),dt(" "),dt(" "),dt(" "),dt(" "),dt(" "),dt(" "),dt(" "),dt(" "),dt(" "),dt(" "),dt(" "),dt(" "),dt("\u2028"),dt("\u2029"),dt(" "),dt(" "),dt(" "),dt("\uFEFF")],Fx=/[0-9a-fA-F]/,su=/[0-9]/,Qx=/[1-9]/;class Zx{constructor(){this.idx=0,this.input="",this.groupIdx=0}saveState(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}}restoreState(n){this.idx=n.idx,this.input=n.input,this.groupIdx=n.groupIdx}pattern(n){this.idx=0,this.input=n,this.groupIdx=0,this.consumeChar("/");const s=this.disjunction();this.consumeChar("/");const r={type:"Flags",loc:{begin:this.idx,end:n.length},global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};for(;this.isRegExpFlag();)switch(this.popChar()){case"g":cr(r,"global");break;case"i":cr(r,"ignoreCase");break;case"m":cr(r,"multiLine");break;case"u":cr(r,"unicode");break;case"y":cr(r,"sticky");break}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:r,value:s,loc:this.loc(0)}}disjunction(){const n=[],s=this.idx;for(n.push(this.alternative());this.peekChar()==="|";)this.consumeChar("|"),n.push(this.alternative());return{type:"Disjunction",value:n,loc:this.loc(s)}}alternative(){const n=[],s=this.idx;for(;this.isTerm();)n.push(this.term());return{type:"Alternative",value:n,loc:this.loc(s)}}term(){return this.isAssertion()?this.assertion():this.atom()}assertion(){const n=this.idx;switch(this.popChar()){case"^":return{type:"StartAnchor",loc:this.loc(n)};case"$":return{type:"EndAnchor",loc:this.loc(n)};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary",loc:this.loc(n)};case"B":return{type:"NonWordBoundary",loc:this.loc(n)}}throw Error("Invalid Assertion Escape");case"(":this.consumeChar("?");let s;switch(this.popChar()){case"=":s="Lookahead";break;case"!":s="NegativeLookahead";break;case"<":{switch(this.popChar()){case"=":s="Lookbehind";break;case"!":s="NegativeLookbehind"}break}}ss(s);const r=this.disjunction();return this.consumeChar(")"),{type:s,value:r,loc:this.loc(n)}}return Xx()}quantifier(n=!1){let s;const r=this.idx;switch(this.popChar()){case"*":s={atLeast:0,atMost:1/0};break;case"+":s={atLeast:1,atMost:1/0};break;case"?":s={atLeast:0,atMost:1};break;case"{":const u=this.integerIncludingZero();switch(this.popChar()){case"}":s={atLeast:u,atMost:u};break;case",":let c;this.isDigit()?(c=this.integerIncludingZero(),s={atLeast:u,atMost:c}):s={atLeast:u,atMost:1/0},this.consumeChar("}");break}if(n===!0&&s===void 0)return;ss(s);break}if(!(n===!0&&s===void 0)&&ss(s))return this.peekChar(0)==="?"?(this.consumeChar("?"),s.greedy=!1):s.greedy=!0,s.type="Quantifier",s.loc=this.loc(r),s}atom(){let n;const s=this.idx;switch(this.peekChar()){case".":n=this.dotAll();break;case"\\":n=this.atomEscape();break;case"[":n=this.characterClass();break;case"(":n=this.group();break}if(n===void 0&&this.isPatternCharacter()&&(n=this.patternCharacter()),ss(n))return n.loc=this.loc(s),this.isQuantifier()&&(n.quantifier=this.quantifier()),n}dotAll(){return this.consumeChar("."),{type:"Set",complement:!0,value:[dt(`
21
- `),dt("\r"),dt("\u2028"),dt("\u2029")]}}atomEscape(){switch(this.consumeChar("\\"),this.peekChar()){case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return this.decimalEscapeAtom();case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}}decimalEscapeAtom(){return{type:"GroupBackReference",value:this.positiveInteger()}}characterClassEscape(){let n,s=!1;switch(this.popChar()){case"d":n=Ru;break;case"D":n=Ru,s=!0;break;case"s":n=Jm;break;case"S":n=Jm,s=!0;break;case"w":n=xu;break;case"W":n=xu,s=!0;break}if(ss(n))return{type:"Set",value:n,complement:s}}controlEscapeAtom(){let n;switch(this.popChar()){case"f":n=dt("\f");break;case"n":n=dt(`
19
+ `},_m=c1(_1)(Zy),p1={config:h1},g1=function(){for(var n=arguments.length,s=new Array(n),r=0;r<n;r++)s[r]=arguments[r];return function(u){return s.reduceRight(function(c,h){return h(c)},u)}};function Wy(i,n){return Object.keys(n).forEach(function(s){n[s]instanceof Object&&i[s]&&Object.assign(n[s],Wy(i[s],n[s]))}),fm(fm({},i),n)}var m1={type:"cancelation",msg:"operation is manually canceled"};function xf(i){var n=!1,s=new Promise(function(r,u){i.then(function(c){return n?u(m1):r(c)}),i.catch(u)});return s.cancel=function(){return n=!0},s}var y1=["monaco"],v1=u1.create({config:o1,isInitialized:!1,resolve:null,reject:null,monaco:null}),Jy=$T(v1,2),Lr=Jy[0],Du=Jy[1];function E1(i){var n=p1.config(i),s=n.monaco,r=qT(n,y1);Du(function(u){return{config:Wy(u.config,r),monaco:s}})}function b1(){var i=Lr(function(n){var s=n.monaco,r=n.isInitialized,u=n.resolve;return{monaco:s,isInitialized:r,resolve:u}});if(!i.isInitialized){if(Du({isInitialized:!0}),i.monaco)return i.resolve(i.monaco),xf(Cf);if(window.monaco&&window.monaco.editor)return t0(window.monaco),i.resolve(window.monaco),xf(Cf);g1(T1,A1)(O1)}return xf(Cf)}function T1(i){return document.body.appendChild(i)}function S1(i){var n=document.createElement("script");return i&&(n.src=i),n}function A1(i){var n=Lr(function(r){var u=r.config,c=r.reject;return{config:u,reject:c}}),s=S1("".concat(n.config.paths.vs,"/loader.js"));return s.onload=function(){return i()},s.onerror=n.reject,s}function O1(){var i=Lr(function(s){var r=s.config,u=s.resolve,c=s.reject;return{config:r,resolve:u,reject:c}}),n=window.require;n.config(i.config),n(["vs/editor/editor.main"],function(s){var r=s.m||s;t0(r),i.resolve(r)},function(s){i.reject(s)})}function t0(i){Lr().monaco||Du({monaco:i})}function N1(){return Lr(function(i){var n=i.monaco;return n})}var Cf=new Promise(function(i,n){return Du({resolve:i,reject:n})}),e0={config:E1,init:b1,__getMonacoInstance:N1},R1={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},Lf=R1,x1={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},C1=x1;function L1({children:i}){return fa.createElement("div",{style:C1.container},i)}var w1=L1,M1=w1;function U1({width:i,height:n,isEditorReady:s,loading:r,_ref:u,className:c,wrapperProps:h}){return fa.createElement("section",{style:{...Lf.wrapper,width:i,height:n},...h},!s&&fa.createElement(M1,null,r),fa.createElement("div",{ref:u,style:{...Lf.fullWidth,...!s&&Lf.hide},className:c}))}var I1=U1,n0=ct.memo(I1);function k1(i){ct.useEffect(i,[])}var i0=k1;function z1(i,n,s=!0){let r=ct.useRef(!0);ct.useEffect(r.current||!s?()=>{r.current=!1}:i,n)}var Ye=z1;function Tr(){}function us(i,n,s,r){return B1(i,r)||D1(i,n,s,r)}function B1(i,n){return i.editor.getModel(a0(i,n))}function D1(i,n,s,r){return i.editor.createModel(n,s,r?a0(i,r):void 0)}function a0(i,n){return i.Uri.parse(n)}function j1({original:i,modified:n,language:s,originalLanguage:r,modifiedLanguage:u,originalModelPath:c,modifiedModelPath:h,keepCurrentOriginalModel:_=!1,keepCurrentModifiedModel:d=!1,theme:g="light",loading:b="Loading...",options:E={},height:A="100%",width:j="100%",className:H,wrapperProps:F={},beforeMount:S=Tr,onMount:v=Tr}){let[T,w]=ct.useState(!1),[I,X]=ct.useState(!0),U=ct.useRef(null),L=ct.useRef(null),C=ct.useRef(null),Y=ct.useRef(v),m=ct.useRef(S),P=ct.useRef(!1);i0(()=>{let J=e0.init();return J.then(M=>(L.current=M)&&X(!1)).catch(M=>M?.type!=="cancelation"&&console.error("Monaco initialization: error:",M)),()=>U.current?at():J.cancel()}),Ye(()=>{if(U.current&&L.current){let J=U.current.getOriginalEditor(),M=us(L.current,i||"",r||s||"text",c||"");M!==J.getModel()&&J.setModel(M)}},[c],T),Ye(()=>{if(U.current&&L.current){let J=U.current.getModifiedEditor(),M=us(L.current,n||"",u||s||"text",h||"");M!==J.getModel()&&J.setModel(M)}},[h],T),Ye(()=>{let J=U.current.getModifiedEditor();J.getOption(L.current.editor.EditorOption.readOnly)?J.setValue(n||""):n!==J.getValue()&&(J.executeEdits("",[{range:J.getModel().getFullModelRange(),text:n||"",forceMoveMarkers:!0}]),J.pushUndoStop())},[n],T),Ye(()=>{U.current?.getModel()?.original.setValue(i||"")},[i],T),Ye(()=>{let{original:J,modified:M}=U.current.getModel();L.current.editor.setModelLanguage(J,r||s||"text"),L.current.editor.setModelLanguage(M,u||s||"text")},[s,r,u],T),Ye(()=>{L.current?.editor.setTheme(g)},[g],T),Ye(()=>{U.current?.updateOptions(E)},[E],T);let G=ct.useCallback(()=>{if(!L.current)return;m.current(L.current);let J=us(L.current,i||"",r||s||"text",c||""),M=us(L.current,n||"",u||s||"text",h||"");U.current?.setModel({original:J,modified:M})},[s,n,u,i,r,c,h]),et=ct.useCallback(()=>{!P.current&&C.current&&(U.current=L.current.editor.createDiffEditor(C.current,{automaticLayout:!0,...E}),G(),L.current?.editor.setTheme(g),w(!0),P.current=!0)},[E,g,G]);ct.useEffect(()=>{T&&Y.current(U.current,L.current)},[T]),ct.useEffect(()=>{!I&&!T&&et()},[I,T,et]);function at(){let J=U.current?.getModel();_||J?.original?.dispose(),d||J?.modified?.dispose(),U.current?.dispose()}return fa.createElement(n0,{width:j,height:A,isEditorReady:T,loading:b,_ref:C,className:H,wrapperProps:F})}var P1=j1;ct.memo(P1);function G1(i){let n=ct.useRef();return ct.useEffect(()=>{n.current=i},[i]),n.current}var q1=G1,iu=new Map;function H1({defaultValue:i,defaultLanguage:n,defaultPath:s,value:r,language:u,path:c,theme:h="light",line:_,loading:d="Loading...",options:g={},overrideServices:b={},saveViewState:E=!0,keepCurrentModel:A=!1,width:j="100%",height:H="100%",className:F,wrapperProps:S={},beforeMount:v=Tr,onMount:T=Tr,onChange:w,onValidate:I=Tr}){let[X,U]=ct.useState(!1),[L,C]=ct.useState(!0),Y=ct.useRef(null),m=ct.useRef(null),P=ct.useRef(null),G=ct.useRef(T),et=ct.useRef(v),at=ct.useRef(),J=ct.useRef(r),M=q1(c),Q=ct.useRef(!1),it=ct.useRef(!1);i0(()=>{let N=e0.init();return N.then($=>(Y.current=$)&&C(!1)).catch($=>$?.type!=="cancelation"&&console.error("Monaco initialization: error:",$)),()=>m.current?Ot():N.cancel()}),Ye(()=>{let N=us(Y.current,i||r||"",n||u||"",c||s||"");N!==m.current?.getModel()&&(E&&iu.set(M,m.current?.saveViewState()),m.current?.setModel(N),E&&m.current?.restoreViewState(iu.get(c)))},[c],X),Ye(()=>{m.current?.updateOptions(g)},[g],X),Ye(()=>{!m.current||r===void 0||(m.current.getOption(Y.current.editor.EditorOption.readOnly)?m.current.setValue(r):r!==m.current.getValue()&&(it.current=!0,m.current.executeEdits("",[{range:m.current.getModel().getFullModelRange(),text:r,forceMoveMarkers:!0}]),m.current.pushUndoStop(),it.current=!1))},[r],X),Ye(()=>{let N=m.current?.getModel();N&&u&&Y.current?.editor.setModelLanguage(N,u)},[u],X),Ye(()=>{_!==void 0&&m.current?.revealLine(_)},[_],X),Ye(()=>{Y.current?.editor.setTheme(h)},[h],X);let vt=ct.useCallback(()=>{if(!(!P.current||!Y.current)&&!Q.current){et.current(Y.current);let N=c||s,$=us(Y.current,r||i||"",n||u||"",N||"");m.current=Y.current?.editor.create(P.current,{model:$,automaticLayout:!0,...g},b),E&&m.current.restoreViewState(iu.get(N)),Y.current.editor.setTheme(h),_!==void 0&&m.current.revealLine(_),U(!0),Q.current=!0}},[i,n,s,r,u,c,g,b,E,h,_]);ct.useEffect(()=>{X&&G.current(m.current,Y.current)},[X]),ct.useEffect(()=>{!L&&!X&&vt()},[L,X,vt]),J.current=r,ct.useEffect(()=>{X&&w&&(at.current?.dispose(),at.current=m.current?.onDidChangeModelContent(N=>{it.current||w(m.current.getValue(),N)}))},[X,w]),ct.useEffect(()=>{if(X){let N=Y.current.editor.onDidChangeMarkers($=>{let Z=m.current.getModel()?.uri;if(Z&&$.find(W=>W.path===Z.path)){let W=Y.current.editor.getModelMarkers({resource:Z});I?.(W)}});return()=>{N?.dispose()}}return()=>{}},[X,I]);function Ot(){at.current?.dispose(),A?E&&iu.set(c,m.current.saveViewState()):m.current.getModel()?.dispose(),m.current.dispose()}return fa.createElement(n0,{width:j,height:H,isEditorReady:X,loading:d,_ref:P,className:F,wrapperProps:S})}var $1=H1,K1=ct.memo($1),au=K1;const V1=i=>i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Y1=i=>i.replace(/^([A-Z])|[\s-_]+(\w)/g,(n,s,r)=>r?r.toUpperCase():s.toLowerCase()),pm=i=>{const n=Y1(i);return n.charAt(0).toUpperCase()+n.slice(1)},s0=(...i)=>i.filter((n,s,r)=>!!n&&n.trim()!==""&&r.indexOf(n)===s).join(" ").trim(),F1=i=>{for(const n in i)if(n.startsWith("aria-")||n==="role"||n==="title")return!0};var X1={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"};const Q1=ct.forwardRef(({color:i="currentColor",size:n=24,strokeWidth:s=2,absoluteStrokeWidth:r,className:u="",children:c,iconNode:h,..._},d)=>ct.createElement("svg",{ref:d,...X1,width:n,height:n,stroke:i,strokeWidth:r?Number(s)*24/Number(n):s,className:s0("lucide",u),...!c&&!F1(_)&&{"aria-hidden":"true"},..._},[...h.map(([g,b])=>ct.createElement(g,b)),...Array.isArray(c)?c:[c]]));const ga=(i,n)=>{const s=ct.forwardRef(({className:r,...u},c)=>ct.createElement(Q1,{ref:c,iconNode:n,className:s0(`lucide-${V1(pm(i))}`,`lucide-${i}`,r),...u}));return s.displayName=pm(i),s};const Z1=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],W1=ga("check",Z1);const J1=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],gm=ga("code",J1);const tS=[["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"}]],eS=ga("copy",tS);const nS=[["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"}]],iS=ga("database",nS);const aS=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}]],sS=ga("file-code",aS);const rS=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],lS=ga("info",rS);const uS=[["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"}]],oS=ga("play",uS);var r0=typeof global=="object"&&global&&global.Object===Object&&global,cS=typeof self=="object"&&self&&self.Object===Object&&self,kn=r0||cS||Function("return this")(),hn=kn.Symbol,l0=Object.prototype,fS=l0.hasOwnProperty,hS=l0.toString,cr=hn?hn.toStringTag:void 0;function dS(i){var n=fS.call(i,cr),s=i[cr];try{i[cr]=void 0;var r=!0}catch{}var u=hS.call(i);return r&&(n?i[cr]=s:delete i[cr]),u}var _S=Object.prototype,pS=_S.toString;function gS(i){return pS.call(i)}var mS="[object Null]",yS="[object Undefined]",mm=hn?hn.toStringTag:void 0;function Gi(i){return i==null?i===void 0?yS:mS:mm&&mm in Object(i)?dS(i):gS(i)}function Tn(i){return i!=null&&typeof i=="object"}var vS="[object Symbol]";function ju(i){return typeof i=="symbol"||Tn(i)&&Gi(i)==vS}function Pu(i,n){for(var s=-1,r=i==null?0:i.length,u=Array(r);++s<r;)u[s]=n(i[s],s,i);return u}var xt=Array.isArray,ym=hn?hn.prototype:void 0,vm=ym?ym.toString:void 0;function u0(i){if(typeof i=="string")return i;if(xt(i))return Pu(i,u0)+"";if(ju(i))return vm?vm.call(i):"";var n=i+"";return n=="0"&&1/i==-1/0?"-0":n}var ES=/\s/;function bS(i){for(var n=i.length;n--&&ES.test(i.charAt(n)););return n}var TS=/^\s+/;function SS(i){return i&&i.slice(0,bS(i)+1).replace(TS,"")}function dn(i){var n=typeof i;return i!=null&&(n=="object"||n=="function")}var Em=NaN,AS=/^[-+]0x[0-9a-f]+$/i,OS=/^0b[01]+$/i,NS=/^0o[0-7]+$/i,RS=parseInt;function xS(i){if(typeof i=="number")return i;if(ju(i))return Em;if(dn(i)){var n=typeof i.valueOf=="function"?i.valueOf():i;i=dn(n)?n+"":n}if(typeof i!="string")return i===0?i:+i;i=SS(i);var s=OS.test(i);return s||NS.test(i)?RS(i.slice(2),s?2:8):AS.test(i)?Em:+i}var bm=1/0,CS=17976931348623157e292;function LS(i){if(!i)return i===0?i:0;if(i=xS(i),i===bm||i===-bm){var n=i<0?-1:1;return n*CS}return i===i?i:0}function Gu(i){var n=LS(i),s=n%1;return n===n?s?n-s:n:0}function fs(i){return i}var wS="[object AsyncFunction]",MS="[object Function]",US="[object GeneratorFunction]",IS="[object Proxy]";function oi(i){if(!dn(i))return!1;var n=Gi(i);return n==MS||n==US||n==wS||n==IS}var wf=kn["__core-js_shared__"],Tm=(function(){var i=/[^.]+$/.exec(wf&&wf.keys&&wf.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""})();function kS(i){return!!Tm&&Tm in i}var zS=Function.prototype,BS=zS.toString;function ma(i){if(i!=null){try{return BS.call(i)}catch{}try{return i+""}catch{}}return""}var DS=/[\\^$.*+?()[\]{}|]/g,jS=/^\[object .+?Constructor\]$/,PS=Function.prototype,GS=Object.prototype,qS=PS.toString,HS=GS.hasOwnProperty,$S=RegExp("^"+qS.call(HS).replace(DS,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function KS(i){if(!dn(i)||kS(i))return!1;var n=oi(i)?$S:jS;return n.test(ma(i))}function VS(i,n){return i?.[n]}function ya(i,n){var s=VS(i,n);return KS(s)?s:void 0}var ih=ya(kn,"WeakMap"),Sm=Object.create,YS=(function(){function i(){}return function(n){if(!dn(n))return{};if(Sm)return Sm(n);i.prototype=n;var s=new i;return i.prototype=void 0,s}})();function FS(i,n,s){switch(s.length){case 0:return i.call(n);case 1:return i.call(n,s[0]);case 2:return i.call(n,s[0],s[1]);case 3:return i.call(n,s[0],s[1],s[2])}return i.apply(n,s)}function ae(){}function XS(i,n){var s=-1,r=i.length;for(n||(n=Array(r));++s<r;)n[s]=i[s];return n}var QS=800,ZS=16,WS=Date.now;function JS(i){var n=0,s=0;return function(){var r=WS(),u=ZS-(r-s);if(s=r,u>0){if(++n>=QS)return arguments[0]}else n=0;return i.apply(void 0,arguments)}}function tA(i){return function(){return i}}var Ou=(function(){try{var i=ya(Object,"defineProperty");return i({},"",{}),i}catch{}})(),eA=Ou?function(i,n){return Ou(i,"toString",{configurable:!0,enumerable:!1,value:tA(n),writable:!0})}:fs,nA=JS(eA);function o0(i,n){for(var s=-1,r=i==null?0:i.length;++s<r&&n(i[s],s,i)!==!1;);return i}function c0(i,n,s,r){for(var u=i.length,c=s+-1;++c<u;)if(n(i[c],c,i))return c;return-1}function iA(i){return i!==i}function aA(i,n,s){for(var r=s-1,u=i.length;++r<u;)if(i[r]===n)return r;return-1}function Ah(i,n,s){return n===n?aA(i,n,s):c0(i,iA,s)}function f0(i,n){var s=i==null?0:i.length;return!!s&&Ah(i,n,0)>-1}var sA=9007199254740991,rA=/^(?:0|[1-9]\d*)$/;function qu(i,n){var s=typeof i;return n=n??sA,!!n&&(s=="number"||s!="symbol"&&rA.test(i))&&i>-1&&i%1==0&&i<n}function Oh(i,n,s){n=="__proto__"&&Ou?Ou(i,n,{configurable:!0,enumerable:!0,value:s,writable:!0}):i[n]=s}function wr(i,n){return i===n||i!==i&&n!==n}var lA=Object.prototype,uA=lA.hasOwnProperty;function Hu(i,n,s){var r=i[n];(!(uA.call(i,n)&&wr(r,s))||s===void 0&&!(n in i))&&Oh(i,n,s)}function Nh(i,n,s,r){var u=!s;s||(s={});for(var c=-1,h=n.length;++c<h;){var _=n[c],d=void 0;d===void 0&&(d=i[_]),u?Oh(s,_,d):Hu(s,_,d)}return s}var Am=Math.max;function oA(i,n,s){return n=Am(n===void 0?i.length-1:n,0),function(){for(var r=arguments,u=-1,c=Am(r.length-n,0),h=Array(c);++u<c;)h[u]=r[n+u];u=-1;for(var _=Array(n+1);++u<n;)_[u]=r[u];return _[n]=s(h),FS(i,this,_)}}function Rh(i,n){return nA(oA(i,n,fs),i+"")}var cA=9007199254740991;function xh(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=cA}function zn(i){return i!=null&&xh(i.length)&&!oi(i)}function h0(i,n,s){if(!dn(s))return!1;var r=typeof n;return(r=="number"?zn(s)&&qu(n,s.length):r=="string"&&n in s)?wr(s[n],i):!1}function fA(i){return Rh(function(n,s){var r=-1,u=s.length,c=u>1?s[u-1]:void 0,h=u>2?s[2]:void 0;for(c=i.length>3&&typeof c=="function"?(u--,c):void 0,h&&h0(s[0],s[1],h)&&(c=u<3?void 0:c,u=1),n=Object(n);++r<u;){var _=s[r];_&&i(n,_,r,c)}return n})}var hA=Object.prototype;function Mr(i){var n=i&&i.constructor,s=typeof n=="function"&&n.prototype||hA;return i===s}function dA(i,n){for(var s=-1,r=Array(i);++s<i;)r[s]=n(s);return r}var _A="[object Arguments]";function Om(i){return Tn(i)&&Gi(i)==_A}var d0=Object.prototype,pA=d0.hasOwnProperty,gA=d0.propertyIsEnumerable,$u=Om((function(){return arguments})())?Om:function(i){return Tn(i)&&pA.call(i,"callee")&&!gA.call(i,"callee")};function mA(){return!1}var _0=typeof Fe=="object"&&Fe&&!Fe.nodeType&&Fe,Nm=_0&&typeof Xe=="object"&&Xe&&!Xe.nodeType&&Xe,yA=Nm&&Nm.exports===_0,Rm=yA?kn.Buffer:void 0,vA=Rm?Rm.isBuffer:void 0,Nr=vA||mA,EA="[object Arguments]",bA="[object Array]",TA="[object Boolean]",SA="[object Date]",AA="[object Error]",OA="[object Function]",NA="[object Map]",RA="[object Number]",xA="[object Object]",CA="[object RegExp]",LA="[object Set]",wA="[object String]",MA="[object WeakMap]",UA="[object ArrayBuffer]",IA="[object DataView]",kA="[object Float32Array]",zA="[object Float64Array]",BA="[object Int8Array]",DA="[object Int16Array]",jA="[object Int32Array]",PA="[object Uint8Array]",GA="[object Uint8ClampedArray]",qA="[object Uint16Array]",HA="[object Uint32Array]",qt={};qt[kA]=qt[zA]=qt[BA]=qt[DA]=qt[jA]=qt[PA]=qt[GA]=qt[qA]=qt[HA]=!0;qt[EA]=qt[bA]=qt[UA]=qt[TA]=qt[IA]=qt[SA]=qt[AA]=qt[OA]=qt[NA]=qt[RA]=qt[xA]=qt[CA]=qt[LA]=qt[wA]=qt[MA]=!1;function $A(i){return Tn(i)&&xh(i.length)&&!!qt[Gi(i)]}function Ku(i){return function(n){return i(n)}}var p0=typeof Fe=="object"&&Fe&&!Fe.nodeType&&Fe,Sr=p0&&typeof Xe=="object"&&Xe&&!Xe.nodeType&&Xe,KA=Sr&&Sr.exports===p0,Mf=KA&&r0.process,ji=(function(){try{var i=Sr&&Sr.require&&Sr.require("util").types;return i||Mf&&Mf.binding&&Mf.binding("util")}catch{}})(),xm=ji&&ji.isTypedArray,Ch=xm?Ku(xm):$A,VA=Object.prototype,YA=VA.hasOwnProperty;function g0(i,n){var s=xt(i),r=!s&&$u(i),u=!s&&!r&&Nr(i),c=!s&&!r&&!u&&Ch(i),h=s||r||u||c,_=h?dA(i.length,String):[],d=_.length;for(var g in i)(n||YA.call(i,g))&&!(h&&(g=="length"||u&&(g=="offset"||g=="parent")||c&&(g=="buffer"||g=="byteLength"||g=="byteOffset")||qu(g,d)))&&_.push(g);return _}function m0(i,n){return function(s){return i(n(s))}}var FA=m0(Object.keys,Object),XA=Object.prototype,QA=XA.hasOwnProperty;function y0(i){if(!Mr(i))return FA(i);var n=[];for(var s in Object(i))QA.call(i,s)&&s!="constructor"&&n.push(s);return n}function _n(i){return zn(i)?g0(i):y0(i)}var ZA=Object.prototype,WA=ZA.hasOwnProperty,Qe=fA(function(i,n){if(Mr(n)||zn(n)){Nh(n,_n(n),i);return}for(var s in n)WA.call(n,s)&&Hu(i,s,n[s])});function JA(i){var n=[];if(i!=null)for(var s in Object(i))n.push(s);return n}var tO=Object.prototype,eO=tO.hasOwnProperty;function nO(i){if(!dn(i))return JA(i);var n=Mr(i),s=[];for(var r in i)r=="constructor"&&(n||!eO.call(i,r))||s.push(r);return s}function v0(i){return zn(i)?g0(i,!0):nO(i)}var iO=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,aO=/^\w*$/;function Lh(i,n){if(xt(i))return!1;var s=typeof i;return s=="number"||s=="symbol"||s=="boolean"||i==null||ju(i)?!0:aO.test(i)||!iO.test(i)||n!=null&&i in Object(n)}var Rr=ya(Object,"create");function sO(){this.__data__=Rr?Rr(null):{},this.size=0}function rO(i){var n=this.has(i)&&delete this.__data__[i];return this.size-=n?1:0,n}var lO="__lodash_hash_undefined__",uO=Object.prototype,oO=uO.hasOwnProperty;function cO(i){var n=this.__data__;if(Rr){var s=n[i];return s===lO?void 0:s}return oO.call(n,i)?n[i]:void 0}var fO=Object.prototype,hO=fO.hasOwnProperty;function dO(i){var n=this.__data__;return Rr?n[i]!==void 0:hO.call(n,i)}var _O="__lodash_hash_undefined__";function pO(i,n){var s=this.__data__;return this.size+=this.has(i)?0:1,s[i]=Rr&&n===void 0?_O:n,this}function ha(i){var n=-1,s=i==null?0:i.length;for(this.clear();++n<s;){var r=i[n];this.set(r[0],r[1])}}ha.prototype.clear=sO;ha.prototype.delete=rO;ha.prototype.get=cO;ha.prototype.has=dO;ha.prototype.set=pO;function gO(){this.__data__=[],this.size=0}function Vu(i,n){for(var s=i.length;s--;)if(wr(i[s][0],n))return s;return-1}var mO=Array.prototype,yO=mO.splice;function vO(i){var n=this.__data__,s=Vu(n,i);if(s<0)return!1;var r=n.length-1;return s==r?n.pop():yO.call(n,s,1),--this.size,!0}function EO(i){var n=this.__data__,s=Vu(n,i);return s<0?void 0:n[s][1]}function bO(i){return Vu(this.__data__,i)>-1}function TO(i,n){var s=this.__data__,r=Vu(s,i);return r<0?(++this.size,s.push([i,n])):s[r][1]=n,this}function ci(i){var n=-1,s=i==null?0:i.length;for(this.clear();++n<s;){var r=i[n];this.set(r[0],r[1])}}ci.prototype.clear=gO;ci.prototype.delete=vO;ci.prototype.get=EO;ci.prototype.has=bO;ci.prototype.set=TO;var xr=ya(kn,"Map");function SO(){this.size=0,this.__data__={hash:new ha,map:new(xr||ci),string:new ha}}function AO(i){var n=typeof i;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?i!=="__proto__":i===null}function Yu(i,n){var s=i.__data__;return AO(n)?s[typeof n=="string"?"string":"hash"]:s.map}function OO(i){var n=Yu(this,i).delete(i);return this.size-=n?1:0,n}function NO(i){return Yu(this,i).get(i)}function RO(i){return Yu(this,i).has(i)}function xO(i,n){var s=Yu(this,i),r=s.size;return s.set(i,n),this.size+=s.size==r?0:1,this}function fi(i){var n=-1,s=i==null?0:i.length;for(this.clear();++n<s;){var r=i[n];this.set(r[0],r[1])}}fi.prototype.clear=SO;fi.prototype.delete=OO;fi.prototype.get=NO;fi.prototype.has=RO;fi.prototype.set=xO;var CO="Expected a function";function wh(i,n){if(typeof i!="function"||n!=null&&typeof n!="function")throw new TypeError(CO);var s=function(){var r=arguments,u=n?n.apply(this,r):r[0],c=s.cache;if(c.has(u))return c.get(u);var h=i.apply(this,r);return s.cache=c.set(u,h)||c,h};return s.cache=new(wh.Cache||fi),s}wh.Cache=fi;var LO=500;function wO(i){var n=wh(i,function(r){return s.size===LO&&s.clear(),r}),s=n.cache;return n}var MO=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,UO=/\\(\\)?/g,IO=wO(function(i){var n=[];return i.charCodeAt(0)===46&&n.push(""),i.replace(MO,function(s,r,u,c){n.push(u?c.replace(UO,"$1"):r||s)}),n});function kO(i){return i==null?"":u0(i)}function Fu(i,n){return xt(i)?i:Lh(i,n)?[i]:IO(kO(i))}function Ur(i){if(typeof i=="string"||ju(i))return i;var n=i+"";return n=="0"&&1/i==-1/0?"-0":n}function Mh(i,n){n=Fu(n,i);for(var s=0,r=n.length;i!=null&&s<r;)i=i[Ur(n[s++])];return s&&s==r?i:void 0}function zO(i,n,s){var r=i==null?void 0:Mh(i,n);return r===void 0?s:r}function Uh(i,n){for(var s=-1,r=n.length,u=i.length;++s<r;)i[u+s]=n[s];return i}var Cm=hn?hn.isConcatSpreadable:void 0;function BO(i){return xt(i)||$u(i)||!!(Cm&&i&&i[Cm])}function Ih(i,n,s,r,u){var c=-1,h=i.length;for(s||(s=BO),u||(u=[]);++c<h;){var _=i[c];s(_)?Uh(u,_):r||(u[u.length]=_)}return u}function En(i){var n=i==null?0:i.length;return n?Ih(i):[]}var E0=m0(Object.getPrototypeOf,Object);function b0(i,n,s){var r=-1,u=i.length;n<0&&(n=-n>u?0:u+n),s=s>u?u:s,s<0&&(s+=u),u=n>s?0:s-n>>>0,n>>>=0;for(var c=Array(u);++r<u;)c[r]=i[r+n];return c}function DO(i,n,s,r){var u=-1,c=i==null?0:i.length;for(r&&c&&(s=i[++u]);++u<c;)s=n(s,i[u],u,i);return s}function jO(){this.__data__=new ci,this.size=0}function PO(i){var n=this.__data__,s=n.delete(i);return this.size=n.size,s}function GO(i){return this.__data__.get(i)}function qO(i){return this.__data__.has(i)}var HO=200;function $O(i,n){var s=this.__data__;if(s instanceof ci){var r=s.__data__;if(!xr||r.length<HO-1)return r.push([i,n]),this.size=++s.size,this;s=this.__data__=new fi(r)}return s.set(i,n),this.size=s.size,this}function In(i){var n=this.__data__=new ci(i);this.size=n.size}In.prototype.clear=jO;In.prototype.delete=PO;In.prototype.get=GO;In.prototype.has=qO;In.prototype.set=$O;function KO(i,n){return i&&Nh(n,_n(n),i)}var T0=typeof Fe=="object"&&Fe&&!Fe.nodeType&&Fe,Lm=T0&&typeof Xe=="object"&&Xe&&!Xe.nodeType&&Xe,VO=Lm&&Lm.exports===T0,wm=VO?kn.Buffer:void 0,Mm=wm?wm.allocUnsafe:void 0;function YO(i,n){var s=i.length,r=Mm?Mm(s):new i.constructor(s);return i.copy(r),r}function kh(i,n){for(var s=-1,r=i==null?0:i.length,u=0,c=[];++s<r;){var h=i[s];n(h,s,i)&&(c[u++]=h)}return c}function S0(){return[]}var FO=Object.prototype,XO=FO.propertyIsEnumerable,Um=Object.getOwnPropertySymbols,zh=Um?function(i){return i==null?[]:(i=Object(i),kh(Um(i),function(n){return XO.call(i,n)}))}:S0;function QO(i,n){return Nh(i,zh(i),n)}var ZO=Object.getOwnPropertySymbols,WO=ZO?function(i){for(var n=[];i;)Uh(n,zh(i)),i=E0(i);return n}:S0;function A0(i,n,s){var r=n(i);return xt(i)?r:Uh(r,s(i))}function ah(i){return A0(i,_n,zh)}function JO(i){return A0(i,v0,WO)}var sh=ya(kn,"DataView"),rh=ya(kn,"Promise"),cs=ya(kn,"Set"),Im="[object Map]",tN="[object Object]",km="[object Promise]",zm="[object Set]",Bm="[object WeakMap]",Dm="[object DataView]",eN=ma(sh),nN=ma(xr),iN=ma(rh),aN=ma(cs),sN=ma(ih),cn=Gi;(sh&&cn(new sh(new ArrayBuffer(1)))!=Dm||xr&&cn(new xr)!=Im||rh&&cn(rh.resolve())!=km||cs&&cn(new cs)!=zm||ih&&cn(new ih)!=Bm)&&(cn=function(i){var n=Gi(i),s=n==tN?i.constructor:void 0,r=s?ma(s):"";if(r)switch(r){case eN:return Dm;case nN:return Im;case iN:return km;case aN:return zm;case sN:return Bm}return n});var rN=Object.prototype,lN=rN.hasOwnProperty;function uN(i){var n=i.length,s=new i.constructor(n);return n&&typeof i[0]=="string"&&lN.call(i,"index")&&(s.index=i.index,s.input=i.input),s}var Nu=kn.Uint8Array;function oN(i){var n=new i.constructor(i.byteLength);return new Nu(n).set(new Nu(i)),n}function cN(i,n){var s=i.buffer;return new i.constructor(s,i.byteOffset,i.byteLength)}var fN=/\w*$/;function hN(i){var n=new i.constructor(i.source,fN.exec(i));return n.lastIndex=i.lastIndex,n}var jm=hn?hn.prototype:void 0,Pm=jm?jm.valueOf:void 0;function dN(i){return Pm?Object(Pm.call(i)):{}}function _N(i,n){var s=i.buffer;return new i.constructor(s,i.byteOffset,i.length)}var pN="[object Boolean]",gN="[object Date]",mN="[object Map]",yN="[object Number]",vN="[object RegExp]",EN="[object Set]",bN="[object String]",TN="[object Symbol]",SN="[object ArrayBuffer]",AN="[object DataView]",ON="[object Float32Array]",NN="[object Float64Array]",RN="[object Int8Array]",xN="[object Int16Array]",CN="[object Int32Array]",LN="[object Uint8Array]",wN="[object Uint8ClampedArray]",MN="[object Uint16Array]",UN="[object Uint32Array]";function IN(i,n,s){var r=i.constructor;switch(n){case SN:return oN(i);case pN:case gN:return new r(+i);case AN:return cN(i);case ON:case NN:case RN:case xN:case CN:case LN:case wN:case MN:case UN:return _N(i);case mN:return new r;case yN:case bN:return new r(i);case vN:return hN(i);case EN:return new r;case TN:return dN(i)}}function kN(i){return typeof i.constructor=="function"&&!Mr(i)?YS(E0(i)):{}}var zN="[object Map]";function BN(i){return Tn(i)&&cn(i)==zN}var Gm=ji&&ji.isMap,DN=Gm?Ku(Gm):BN,jN="[object Set]";function PN(i){return Tn(i)&&cn(i)==jN}var qm=ji&&ji.isSet,GN=qm?Ku(qm):PN,O0="[object Arguments]",qN="[object Array]",HN="[object Boolean]",$N="[object Date]",KN="[object Error]",N0="[object Function]",VN="[object GeneratorFunction]",YN="[object Map]",FN="[object Number]",R0="[object Object]",XN="[object RegExp]",QN="[object Set]",ZN="[object String]",WN="[object Symbol]",JN="[object WeakMap]",tR="[object ArrayBuffer]",eR="[object DataView]",nR="[object Float32Array]",iR="[object Float64Array]",aR="[object Int8Array]",sR="[object Int16Array]",rR="[object Int32Array]",lR="[object Uint8Array]",uR="[object Uint8ClampedArray]",oR="[object Uint16Array]",cR="[object Uint32Array]",Dt={};Dt[O0]=Dt[qN]=Dt[tR]=Dt[eR]=Dt[HN]=Dt[$N]=Dt[nR]=Dt[iR]=Dt[aR]=Dt[sR]=Dt[rR]=Dt[YN]=Dt[FN]=Dt[R0]=Dt[XN]=Dt[QN]=Dt[ZN]=Dt[WN]=Dt[lR]=Dt[uR]=Dt[oR]=Dt[cR]=!0;Dt[KN]=Dt[N0]=Dt[JN]=!1;function gu(i,n,s,r,u,c){var h;if(h!==void 0)return h;if(!dn(i))return i;var _=xt(i);if(_)return h=uN(i),XS(i,h);var d=cn(i),g=d==N0||d==VN;if(Nr(i))return YO(i);if(d==R0||d==O0||g&&!u)return h=g?{}:kN(i),QO(i,KO(h,i));if(!Dt[d])return u?i:{};h=IN(i,d),c||(c=new In);var b=c.get(i);if(b)return b;c.set(i,h),GN(i)?i.forEach(function(j){h.add(gu(j,n,s,j,i,c))}):DN(i)&&i.forEach(function(j,H){h.set(H,gu(j,n,s,H,i,c))});var E=ah,A=_?void 0:E(i);return o0(A||i,function(j,H){A&&(H=j,j=i[H]),Hu(h,H,gu(j,n,s,H,i,c))}),h}var fR=4;function ge(i){return gu(i,fR)}function Ir(i){for(var n=-1,s=i==null?0:i.length,r=0,u=[];++n<s;){var c=i[n];c&&(u[r++]=c)}return u}var hR="__lodash_hash_undefined__";function dR(i){return this.__data__.set(i,hR),this}function _R(i){return this.__data__.has(i)}function hs(i){var n=-1,s=i==null?0:i.length;for(this.__data__=new fi;++n<s;)this.add(i[n])}hs.prototype.add=hs.prototype.push=dR;hs.prototype.has=_R;function x0(i,n){for(var s=-1,r=i==null?0:i.length;++s<r;)if(n(i[s],s,i))return!0;return!1}function Bh(i,n){return i.has(n)}var pR=1,gR=2;function C0(i,n,s,r,u,c){var h=s&pR,_=i.length,d=n.length;if(_!=d&&!(h&&d>_))return!1;var g=c.get(i),b=c.get(n);if(g&&b)return g==n&&b==i;var E=-1,A=!0,j=s&gR?new hs:void 0;for(c.set(i,n),c.set(n,i);++E<_;){var H=i[E],F=n[E];if(r)var S=h?r(F,H,E,n,i,c):r(H,F,E,i,n,c);if(S!==void 0){if(S)continue;A=!1;break}if(j){if(!x0(n,function(v,T){if(!Bh(j,T)&&(H===v||u(H,v,s,r,c)))return j.push(T)})){A=!1;break}}else if(!(H===F||u(H,F,s,r,c))){A=!1;break}}return c.delete(i),c.delete(n),A}function mR(i){var n=-1,s=Array(i.size);return i.forEach(function(r,u){s[++n]=[u,r]}),s}function Dh(i){var n=-1,s=Array(i.size);return i.forEach(function(r){s[++n]=r}),s}var yR=1,vR=2,ER="[object Boolean]",bR="[object Date]",TR="[object Error]",SR="[object Map]",AR="[object Number]",OR="[object RegExp]",NR="[object Set]",RR="[object String]",xR="[object Symbol]",CR="[object ArrayBuffer]",LR="[object DataView]",Hm=hn?hn.prototype:void 0,Uf=Hm?Hm.valueOf:void 0;function wR(i,n,s,r,u,c,h){switch(s){case LR:if(i.byteLength!=n.byteLength||i.byteOffset!=n.byteOffset)return!1;i=i.buffer,n=n.buffer;case CR:return!(i.byteLength!=n.byteLength||!c(new Nu(i),new Nu(n)));case ER:case bR:case AR:return wr(+i,+n);case TR:return i.name==n.name&&i.message==n.message;case OR:case RR:return i==n+"";case SR:var _=mR;case NR:var d=r&yR;if(_||(_=Dh),i.size!=n.size&&!d)return!1;var g=h.get(i);if(g)return g==n;r|=vR,h.set(i,n);var b=C0(_(i),_(n),r,u,c,h);return h.delete(i),b;case xR:if(Uf)return Uf.call(i)==Uf.call(n)}return!1}var MR=1,UR=Object.prototype,IR=UR.hasOwnProperty;function kR(i,n,s,r,u,c){var h=s&MR,_=ah(i),d=_.length,g=ah(n),b=g.length;if(d!=b&&!h)return!1;for(var E=d;E--;){var A=_[E];if(!(h?A in n:IR.call(n,A)))return!1}var j=c.get(i),H=c.get(n);if(j&&H)return j==n&&H==i;var F=!0;c.set(i,n),c.set(n,i);for(var S=h;++E<d;){A=_[E];var v=i[A],T=n[A];if(r)var w=h?r(T,v,A,n,i,c):r(v,T,A,i,n,c);if(!(w===void 0?v===T||u(v,T,s,r,c):w)){F=!1;break}S||(S=A=="constructor")}if(F&&!S){var I=i.constructor,X=n.constructor;I!=X&&"constructor"in i&&"constructor"in n&&!(typeof I=="function"&&I instanceof I&&typeof X=="function"&&X instanceof X)&&(F=!1)}return c.delete(i),c.delete(n),F}var zR=1,$m="[object Arguments]",Km="[object Array]",su="[object Object]",BR=Object.prototype,Vm=BR.hasOwnProperty;function DR(i,n,s,r,u,c){var h=xt(i),_=xt(n),d=h?Km:cn(i),g=_?Km:cn(n);d=d==$m?su:d,g=g==$m?su:g;var b=d==su,E=g==su,A=d==g;if(A&&Nr(i)){if(!Nr(n))return!1;h=!0,b=!1}if(A&&!b)return c||(c=new In),h||Ch(i)?C0(i,n,s,r,u,c):wR(i,n,d,s,r,u,c);if(!(s&zR)){var j=b&&Vm.call(i,"__wrapped__"),H=E&&Vm.call(n,"__wrapped__");if(j||H){var F=j?i.value():i,S=H?n.value():n;return c||(c=new In),u(F,S,s,r,c)}}return A?(c||(c=new In),kR(i,n,s,r,u,c)):!1}function jh(i,n,s,r,u){return i===n?!0:i==null||n==null||!Tn(i)&&!Tn(n)?i!==i&&n!==n:DR(i,n,s,r,jh,u)}var jR=1,PR=2;function GR(i,n,s,r){var u=s.length,c=u;if(i==null)return!c;for(i=Object(i);u--;){var h=s[u];if(h[2]?h[1]!==i[h[0]]:!(h[0]in i))return!1}for(;++u<c;){h=s[u];var _=h[0],d=i[_],g=h[1];if(h[2]){if(d===void 0&&!(_ in i))return!1}else{var b=new In,E;if(!(E===void 0?jh(g,d,jR|PR,r,b):E))return!1}}return!0}function L0(i){return i===i&&!dn(i)}function qR(i){for(var n=_n(i),s=n.length;s--;){var r=n[s],u=i[r];n[s]=[r,u,L0(u)]}return n}function w0(i,n){return function(s){return s==null?!1:s[i]===n&&(n!==void 0||i in Object(s))}}function HR(i){var n=qR(i);return n.length==1&&n[0][2]?w0(n[0][0],n[0][1]):function(s){return s===i||GR(s,i,n)}}function $R(i,n){return i!=null&&n in Object(i)}function M0(i,n,s){n=Fu(n,i);for(var r=-1,u=n.length,c=!1;++r<u;){var h=Ur(n[r]);if(!(c=i!=null&&s(i,h)))break;i=i[h]}return c||++r!=u?c:(u=i==null?0:i.length,!!u&&xh(u)&&qu(h,u)&&(xt(i)||$u(i)))}function KR(i,n){return i!=null&&M0(i,n,$R)}var VR=1,YR=2;function FR(i,n){return Lh(i)&&L0(n)?w0(Ur(i),n):function(s){var r=zO(s,i);return r===void 0&&r===n?KR(s,i):jh(n,r,VR|YR)}}function XR(i){return function(n){return n?.[i]}}function QR(i){return function(n){return Mh(n,i)}}function ZR(i){return Lh(i)?XR(Ur(i)):QR(i)}function Bn(i){return typeof i=="function"?i:i==null?fs:typeof i=="object"?xt(i)?FR(i[0],i[1]):HR(i):ZR(i)}function WR(i,n,s,r){for(var u=-1,c=i==null?0:i.length;++u<c;){var h=i[u];n(r,h,s(h),i)}return r}function JR(i){return function(n,s,r){for(var u=-1,c=Object(n),h=r(n),_=h.length;_--;){var d=h[++u];if(s(c[d],d,c)===!1)break}return n}}var tx=JR();function ex(i,n){return i&&tx(i,n,_n)}function nx(i,n){return function(s,r){if(s==null)return s;if(!zn(s))return i(s,r);for(var u=s.length,c=-1,h=Object(s);++c<u&&r(h[c],c,h)!==!1;);return s}}var va=nx(ex);function ix(i,n,s,r){return va(i,function(u,c,h){n(r,u,s(u),h)}),r}function ax(i,n){return function(s,r){var u=xt(s)?WR:ix,c=n?n():{};return u(s,i,Bn(r),c)}}var U0=Object.prototype,sx=U0.hasOwnProperty,Ph=Rh(function(i,n){i=Object(i);var s=-1,r=n.length,u=r>2?n[2]:void 0;for(u&&h0(n[0],n[1],u)&&(r=1);++s<r;)for(var c=n[s],h=v0(c),_=-1,d=h.length;++_<d;){var g=h[_],b=i[g];(b===void 0||wr(b,U0[g])&&!sx.call(i,g))&&(i[g]=c[g])}return i});function Ym(i){return Tn(i)&&zn(i)}var rx=200;function lx(i,n,s,r){var u=-1,c=f0,h=!0,_=i.length,d=[],g=n.length;if(!_)return d;n.length>=rx&&(c=Bh,h=!1,n=new hs(n));t:for(;++u<_;){var b=i[u],E=b;if(b=b!==0?b:0,h&&E===E){for(var A=g;A--;)if(n[A]===E)continue t;d.push(b)}else c(n,E,r)||d.push(b)}return d}var Xu=Rh(function(i,n){return Ym(i)?lx(i,Ih(n,1,Ym,!0)):[]});function da(i){var n=i==null?0:i.length;return n?i[n-1]:void 0}function pe(i,n,s){var r=i==null?0:i.length;return r?(n=n===void 0?1:Gu(n),b0(i,n<0?0:n,r)):[]}function Cr(i,n,s){var r=i==null?0:i.length;return r?(n=n===void 0?1:Gu(n),n=r-n,b0(i,0,n<0?0:n)):[]}function ux(i){return typeof i=="function"?i:fs}function ht(i,n){var s=xt(i)?o0:va;return s(i,ux(n))}function ox(i,n){for(var s=-1,r=i==null?0:i.length;++s<r;)if(!n(i[s],s,i))return!1;return!0}function cx(i,n){var s=!0;return va(i,function(r,u,c){return s=!!n(r,u,c),s}),s}function bn(i,n,s){var r=xt(i)?ox:cx;return r(i,Bn(n))}function I0(i,n){var s=[];return va(i,function(r,u,c){n(r,u,c)&&s.push(r)}),s}function pn(i,n){var s=xt(i)?kh:I0;return s(i,Bn(n))}function fx(i){return function(n,s,r){var u=Object(n);if(!zn(n)){var c=Bn(s);n=_n(n),s=function(_){return c(u[_],_,u)}}var h=i(n,s,r);return h>-1?u[c?n[h]:h]:void 0}}var hx=Math.max;function dx(i,n,s){var r=i==null?0:i.length;if(!r)return-1;var u=s==null?0:Gu(s);return u<0&&(u=hx(r+u,0)),c0(i,Bn(n),u)}var ds=fx(dx);function Sn(i){return i&&i.length?i[0]:void 0}function _x(i,n){var s=-1,r=zn(i)?Array(i.length):[];return va(i,function(u,c,h){r[++s]=n(u,c,h)}),r}function rt(i,n){var s=xt(i)?Pu:_x;return s(i,Bn(n))}function fn(i,n){return Ih(rt(i,n))}var px=Object.prototype,gx=px.hasOwnProperty,mx=ax(function(i,n,s){gx.call(i,s)?i[s].push(n):Oh(i,s,[n])}),yx=Object.prototype,vx=yx.hasOwnProperty;function Ex(i,n){return i!=null&&vx.call(i,n)}function ft(i,n){return i!=null&&M0(i,n,Ex)}var bx="[object String]";function Ue(i){return typeof i=="string"||!xt(i)&&Tn(i)&&Gi(i)==bx}function Tx(i,n){return Pu(n,function(s){return i[s]})}function se(i){return i==null?[]:Tx(i,_n(i))}var Sx=Math.max;function Se(i,n,s,r){i=zn(i)?i:se(i),s=s?Gu(s):0;var u=i.length;return s<0&&(s=Sx(u+s,0)),Ue(i)?s<=u&&i.indexOf(n,s)>-1:!!u&&Ah(i,n,s)>-1}function Fm(i,n,s){var r=i==null?0:i.length;if(!r)return-1;var u=0;return Ah(i,n,u)}var Ax="[object Map]",Ox="[object Set]",Nx=Object.prototype,Rx=Nx.hasOwnProperty;function jt(i){if(i==null)return!0;if(zn(i)&&(xt(i)||typeof i=="string"||typeof i.splice=="function"||Nr(i)||Ch(i)||$u(i)))return!i.length;var n=cn(i);if(n==Ax||n==Ox)return!i.size;if(Mr(i))return!y0(i).length;for(var s in i)if(Rx.call(i,s))return!1;return!0}var xx="[object RegExp]";function Cx(i){return Tn(i)&&Gi(i)==xx}var Xm=ji&&ji.isRegExp,ri=Xm?Ku(Xm):Cx;function li(i){return i===void 0}var Lx="Expected a function";function wx(i){if(typeof i!="function")throw new TypeError(Lx);return function(){var n=arguments;switch(n.length){case 0:return!i.call(this);case 1:return!i.call(this,n[0]);case 2:return!i.call(this,n[0],n[1]);case 3:return!i.call(this,n[0],n[1],n[2])}return!i.apply(this,n)}}function Mx(i,n,s,r){if(!dn(i))return i;n=Fu(n,i);for(var u=-1,c=n.length,h=c-1,_=i;_!=null&&++u<c;){var d=Ur(n[u]),g=s;if(d==="__proto__"||d==="constructor"||d==="prototype")return i;if(u!=h){var b=_[d];g=void 0,g===void 0&&(g=dn(b)?b:qu(n[u+1])?[]:{})}Hu(_,d,g),_=_[d]}return i}function Ux(i,n,s){for(var r=-1,u=n.length,c={};++r<u;){var h=n[r],_=Mh(i,h);s(_,h)&&Mx(c,Fu(h,i),_)}return c}function An(i,n){if(i==null)return{};var s=Pu(JO(i),function(r){return[r]});return n=Bn(n),Ux(i,s,function(r,u){return n(r,u[0])})}function Ix(i,n,s,r,u){return u(i,function(c,h,_){s=r?(r=!1,c):n(s,c,h,_)}),s}function Ze(i,n,s){var r=xt(i)?DO:Ix,u=arguments.length<3;return r(i,Bn(n),s,u,va)}function Qu(i,n){var s=xt(i)?kh:I0;return s(i,wx(Bn(n)))}function kx(i,n){var s;return va(i,function(r,u,c){return s=n(r,u,c),!s}),!!s}function k0(i,n,s){var r=xt(i)?x0:kx;return r(i,Bn(n))}var zx=1/0,Bx=cs&&1/Dh(new cs([,-0]))[1]==zx?function(i){return new cs(i)}:ae,Dx=200;function jx(i,n,s){var r=-1,u=f0,c=i.length,h=!0,_=[],d=_;if(c>=Dx){var g=Bx(i);if(g)return Dh(g);h=!1,u=Bh,d=new hs}else d=_;t:for(;++r<c;){var b=i[r],E=b;if(b=b!==0?b:0,h&&E===E){for(var A=d.length;A--;)if(d[A]===E)continue t;_.push(b)}else u(d,E,s)||(d!==_&&d.push(E),_.push(b))}return _}function Gh(i){return i&&i.length?jx(i):[]}function lh(i){console&&console.error&&console.error(`Error: ${i}`)}function z0(i){console&&console.warn&&console.warn(`Warning: ${i}`)}function B0(i){const n=new Date().getTime(),s=i();return{time:new Date().getTime()-n,value:s}}function D0(i){function n(){}n.prototype=i;const s=new n;function r(){return typeof s.bar}return r(),r(),i}function Px(i){return Gx(i)?i.LABEL:i.name}function Gx(i){return Ue(i.LABEL)&&i.LABEL!==""}class Dn{get definition(){return this._definition}set definition(n){this._definition=n}constructor(n){this._definition=n}accept(n){n.visit(this),ht(this.definition,s=>{s.accept(n)})}}class We extends Dn{constructor(n){super([]),this.idx=1,Qe(this,An(n,s=>s!==void 0))}set definition(n){}get definition(){return this.referencedRule!==void 0?this.referencedRule.definition:[]}accept(n){n.visit(this)}}class _s extends Dn{constructor(n){super(n.definition),this.orgText="",Qe(this,An(n,s=>s!==void 0))}}class Ie extends Dn{constructor(n){super(n.definition),this.ignoreAmbiguities=!1,Qe(this,An(n,s=>s!==void 0))}}class Me extends Dn{constructor(n){super(n.definition),this.idx=1,Qe(this,An(n,s=>s!==void 0))}}class jn extends Dn{constructor(n){super(n.definition),this.idx=1,Qe(this,An(n,s=>s!==void 0))}}class Pn extends Dn{constructor(n){super(n.definition),this.idx=1,Qe(this,An(n,s=>s!==void 0))}}class re extends Dn{constructor(n){super(n.definition),this.idx=1,Qe(this,An(n,s=>s!==void 0))}}class On extends Dn{constructor(n){super(n.definition),this.idx=1,Qe(this,An(n,s=>s!==void 0))}}class Nn extends Dn{get definition(){return this._definition}set definition(n){this._definition=n}constructor(n){super(n.definition),this.idx=1,this.ignoreAmbiguities=!1,this.hasPredicates=!1,Qe(this,An(n,s=>s!==void 0))}}class $t{constructor(n){this.idx=1,Qe(this,An(n,s=>s!==void 0))}accept(n){n.visit(this)}}function qx(i){return rt(i,mu)}function mu(i){function n(s){return rt(s,mu)}if(i instanceof We){const s={type:"NonTerminal",name:i.nonTerminalName,idx:i.idx};return Ue(i.label)&&(s.label=i.label),s}else{if(i instanceof Ie)return{type:"Alternative",definition:n(i.definition)};if(i instanceof Me)return{type:"Option",idx:i.idx,definition:n(i.definition)};if(i instanceof jn)return{type:"RepetitionMandatory",idx:i.idx,definition:n(i.definition)};if(i instanceof Pn)return{type:"RepetitionMandatoryWithSeparator",idx:i.idx,separator:mu(new $t({terminalType:i.separator})),definition:n(i.definition)};if(i instanceof On)return{type:"RepetitionWithSeparator",idx:i.idx,separator:mu(new $t({terminalType:i.separator})),definition:n(i.definition)};if(i instanceof re)return{type:"Repetition",idx:i.idx,definition:n(i.definition)};if(i instanceof Nn)return{type:"Alternation",idx:i.idx,definition:n(i.definition)};if(i instanceof $t){const s={type:"Terminal",name:i.terminalType.name,label:Px(i.terminalType),idx:i.idx};Ue(i.label)&&(s.terminalLabel=i.label);const r=i.terminalType.PATTERN;return i.terminalType.PATTERN&&(s.pattern=ri(r)?r.source:r),s}else{if(i instanceof _s)return{type:"Rule",name:i.name,orgText:i.orgText,definition:n(i.definition)};throw Error("non exhaustive match")}}}class ps{visit(n){const s=n;switch(s.constructor){case We:return this.visitNonTerminal(s);case Ie:return this.visitAlternative(s);case Me:return this.visitOption(s);case jn:return this.visitRepetitionMandatory(s);case Pn:return this.visitRepetitionMandatoryWithSeparator(s);case On:return this.visitRepetitionWithSeparator(s);case re:return this.visitRepetition(s);case Nn:return this.visitAlternation(s);case $t:return this.visitTerminal(s);case _s:return this.visitRule(s);default:throw Error("non exhaustive match")}}visitNonTerminal(n){}visitAlternative(n){}visitOption(n){}visitRepetition(n){}visitRepetitionMandatory(n){}visitRepetitionMandatoryWithSeparator(n){}visitRepetitionWithSeparator(n){}visitAlternation(n){}visitTerminal(n){}visitRule(n){}}function Hx(i){return i instanceof Ie||i instanceof Me||i instanceof re||i instanceof jn||i instanceof Pn||i instanceof On||i instanceof $t||i instanceof _s}function Ru(i,n=[]){return i instanceof Me||i instanceof re||i instanceof On?!0:i instanceof Nn?k0(i.definition,r=>Ru(r,n)):i instanceof We&&Se(n,i)?!1:i instanceof Dn?(i instanceof We&&n.push(i),bn(i.definition,r=>Ru(r,n))):!1}function $x(i){return i instanceof Nn}function Un(i){if(i instanceof We)return"SUBRULE";if(i instanceof Me)return"OPTION";if(i instanceof Nn)return"OR";if(i instanceof jn)return"AT_LEAST_ONE";if(i instanceof Pn)return"AT_LEAST_ONE_SEP";if(i instanceof On)return"MANY_SEP";if(i instanceof re)return"MANY";if(i instanceof $t)return"CONSUME";throw Error("non exhaustive match")}class Zu{walk(n,s=[]){ht(n.definition,(r,u)=>{const c=pe(n.definition,u+1);if(r instanceof We)this.walkProdRef(r,c,s);else if(r instanceof $t)this.walkTerminal(r,c,s);else if(r instanceof Ie)this.walkFlat(r,c,s);else if(r instanceof Me)this.walkOption(r,c,s);else if(r instanceof jn)this.walkAtLeastOne(r,c,s);else if(r instanceof Pn)this.walkAtLeastOneSep(r,c,s);else if(r instanceof On)this.walkManySep(r,c,s);else if(r instanceof re)this.walkMany(r,c,s);else if(r instanceof Nn)this.walkOr(r,c,s);else throw Error("non exhaustive match")})}walkTerminal(n,s,r){}walkProdRef(n,s,r){}walkFlat(n,s,r){const u=s.concat(r);this.walk(n,u)}walkOption(n,s,r){const u=s.concat(r);this.walk(n,u)}walkAtLeastOne(n,s,r){const u=[new Me({definition:n.definition})].concat(s,r);this.walk(n,u)}walkAtLeastOneSep(n,s,r){const u=Qm(n,s,r);this.walk(n,u)}walkMany(n,s,r){const u=[new Me({definition:n.definition})].concat(s,r);this.walk(n,u)}walkManySep(n,s,r){const u=Qm(n,s,r);this.walk(n,u)}walkOr(n,s,r){const u=s.concat(r);ht(n.definition,c=>{const h=new Ie({definition:[c]});this.walk(h,u)})}}function Qm(i,n,s){return[new Me({definition:[new $t({terminalType:i.separator})].concat(i.definition)})].concat(n,s)}function kr(i){if(i instanceof We)return kr(i.referencedRule);if(i instanceof $t)return Yx(i);if(Hx(i))return Kx(i);if($x(i))return Vx(i);throw Error("non exhaustive match")}function Kx(i){let n=[];const s=i.definition;let r=0,u=s.length>r,c,h=!0;for(;u&&h;)c=s[r],h=Ru(c),n=n.concat(kr(c)),r=r+1,u=s.length>r;return Gh(n)}function Vx(i){const n=rt(i.definition,s=>kr(s));return Gh(En(n))}function Yx(i){return[i.terminalType]}const j0="_~IN~_";class Fx extends Zu{constructor(n){super(),this.topProd=n,this.follows={}}startWalking(){return this.walk(this.topProd),this.follows}walkTerminal(n,s,r){}walkProdRef(n,s,r){const u=Qx(n.referencedRule,n.idx)+this.topProd.name,c=s.concat(r),h=new Ie({definition:c}),_=kr(h);this.follows[u]=_}}function Xx(i){const n={};return ht(i,s=>{const r=new Fx(s).startWalking();Qe(n,r)}),n}function Qx(i,n){return i.name+n+j0}function dt(i){return i.charCodeAt(0)}function If(i,n){Array.isArray(i)?i.forEach(function(s){n.push(s)}):n.push(i)}function fr(i,n){if(i[n]===!0)throw"duplicate flag "+n;i[n],i[n]=!0}function ss(i){if(i===void 0)throw Error("Internal Error - Should never get here!");return!0}function Zx(){throw Error("Internal Error - Should never get here!")}function Zm(i){return i.type==="Character"}const xu=[];for(let i=dt("0");i<=dt("9");i++)xu.push(i);const Cu=[dt("_")].concat(xu);for(let i=dt("a");i<=dt("z");i++)Cu.push(i);for(let i=dt("A");i<=dt("Z");i++)Cu.push(i);const Wm=[dt(" "),dt("\f"),dt(`
20
+ `),dt("\r"),dt(" "),dt("\v"),dt(" "),dt(" "),dt(" "),dt(" "),dt(" "),dt(" "),dt(" "),dt(" "),dt(" "),dt(" "),dt(" "),dt(" "),dt(" "),dt(" "),dt("\u2028"),dt("\u2029"),dt(" "),dt(" "),dt(" "),dt("\uFEFF")],Wx=/[0-9a-fA-F]/,ru=/[0-9]/,Jx=/[1-9]/;class tC{constructor(){this.idx=0,this.input="",this.groupIdx=0}saveState(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}}restoreState(n){this.idx=n.idx,this.input=n.input,this.groupIdx=n.groupIdx}pattern(n){this.idx=0,this.input=n,this.groupIdx=0,this.consumeChar("/");const s=this.disjunction();this.consumeChar("/");const r={type:"Flags",loc:{begin:this.idx,end:n.length},global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};for(;this.isRegExpFlag();)switch(this.popChar()){case"g":fr(r,"global");break;case"i":fr(r,"ignoreCase");break;case"m":fr(r,"multiLine");break;case"u":fr(r,"unicode");break;case"y":fr(r,"sticky");break}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:r,value:s,loc:this.loc(0)}}disjunction(){const n=[],s=this.idx;for(n.push(this.alternative());this.peekChar()==="|";)this.consumeChar("|"),n.push(this.alternative());return{type:"Disjunction",value:n,loc:this.loc(s)}}alternative(){const n=[],s=this.idx;for(;this.isTerm();)n.push(this.term());return{type:"Alternative",value:n,loc:this.loc(s)}}term(){return this.isAssertion()?this.assertion():this.atom()}assertion(){const n=this.idx;switch(this.popChar()){case"^":return{type:"StartAnchor",loc:this.loc(n)};case"$":return{type:"EndAnchor",loc:this.loc(n)};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary",loc:this.loc(n)};case"B":return{type:"NonWordBoundary",loc:this.loc(n)}}throw Error("Invalid Assertion Escape");case"(":this.consumeChar("?");let s;switch(this.popChar()){case"=":s="Lookahead";break;case"!":s="NegativeLookahead";break;case"<":{switch(this.popChar()){case"=":s="Lookbehind";break;case"!":s="NegativeLookbehind"}break}}ss(s);const r=this.disjunction();return this.consumeChar(")"),{type:s,value:r,loc:this.loc(n)}}return Zx()}quantifier(n=!1){let s;const r=this.idx;switch(this.popChar()){case"*":s={atLeast:0,atMost:1/0};break;case"+":s={atLeast:1,atMost:1/0};break;case"?":s={atLeast:0,atMost:1};break;case"{":const u=this.integerIncludingZero();switch(this.popChar()){case"}":s={atLeast:u,atMost:u};break;case",":let c;this.isDigit()?(c=this.integerIncludingZero(),s={atLeast:u,atMost:c}):s={atLeast:u,atMost:1/0},this.consumeChar("}");break}if(n===!0&&s===void 0)return;ss(s);break}if(!(n===!0&&s===void 0)&&ss(s))return this.peekChar(0)==="?"?(this.consumeChar("?"),s.greedy=!1):s.greedy=!0,s.type="Quantifier",s.loc=this.loc(r),s}atom(){let n;const s=this.idx;switch(this.peekChar()){case".":n=this.dotAll();break;case"\\":n=this.atomEscape();break;case"[":n=this.characterClass();break;case"(":n=this.group();break}if(n===void 0&&this.isPatternCharacter()&&(n=this.patternCharacter()),ss(n))return n.loc=this.loc(s),this.isQuantifier()&&(n.quantifier=this.quantifier()),n}dotAll(){return this.consumeChar("."),{type:"Set",complement:!0,value:[dt(`
21
+ `),dt("\r"),dt("\u2028"),dt("\u2029")]}}atomEscape(){switch(this.consumeChar("\\"),this.peekChar()){case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return this.decimalEscapeAtom();case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}}decimalEscapeAtom(){return{type:"GroupBackReference",value:this.positiveInteger()}}characterClassEscape(){let n,s=!1;switch(this.popChar()){case"d":n=xu;break;case"D":n=xu,s=!0;break;case"s":n=Wm;break;case"S":n=Wm,s=!0;break;case"w":n=Cu;break;case"W":n=Cu,s=!0;break}if(ss(n))return{type:"Set",value:n,complement:s}}controlEscapeAtom(){let n;switch(this.popChar()){case"f":n=dt("\f");break;case"n":n=dt(`
22
22
  `);break;case"r":n=dt("\r");break;case"t":n=dt(" ");break;case"v":n=dt("\v");break}if(ss(n))return{type:"Character",value:n}}controlLetterEscapeAtom(){this.consumeChar("c");const n=this.popChar();if(/[a-zA-Z]/.test(n)===!1)throw Error("Invalid ");return{type:"Character",value:n.toUpperCase().charCodeAt(0)-64}}nulCharacterAtom(){return this.consumeChar("0"),{type:"Character",value:dt("\0")}}hexEscapeSequenceAtom(){return this.consumeChar("x"),this.parseHexDigits(2)}regExpUnicodeEscapeSequenceAtom(){return this.consumeChar("u"),this.parseHexDigits(4)}identityEscapeAtom(){const n=this.popChar();return{type:"Character",value:dt(n)}}classPatternCharacterAtom(){switch(this.peekChar()){case`
23
- `:case"\r":case"\u2028":case"\u2029":case"\\":case"]":throw Error("TBD");default:const n=this.popChar();return{type:"Character",value:dt(n)}}}characterClass(){const n=[];let s=!1;for(this.consumeChar("["),this.peekChar(0)==="^"&&(this.consumeChar("^"),s=!0);this.isClassAtom();){const r=this.classAtom();if(r.type,Wm(r)&&this.isRangeDash()){this.consumeChar("-");const u=this.classAtom();if(u.type,Wm(u)){if(u.value<r.value)throw Error("Range out of order in character class");n.push({from:r.value,to:u.value})}else Uf(r.value,n),n.push(dt("-")),Uf(u.value,n)}else Uf(r.value,n)}return this.consumeChar("]"),{type:"Set",complement:s,value:n}}classAtom(){switch(this.peekChar()){case"]":case`
24
- `:case"\r":case"\u2028":case"\u2029":throw Error("TBD");case"\\":return this.classEscape();default:return this.classPatternCharacterAtom()}}classEscape(){switch(this.consumeChar("\\"),this.peekChar()){case"b":return this.consumeChar("b"),{type:"Character",value:dt("\b")};case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}}group(){let n=!0;this.consumeChar("("),this.peekChar(0)==="?"?(this.consumeChar("?"),this.consumeChar(":"),n=!1):this.groupIdx++;const s=this.disjunction();this.consumeChar(")");const r={type:"Group",capturing:n,value:s};return n&&(r.idx=this.groupIdx),r}positiveInteger(){let n=this.popChar();if(Qx.test(n)===!1)throw Error("Expecting a positive integer");for(;su.test(this.peekChar(0));)n+=this.popChar();return parseInt(n,10)}integerIncludingZero(){let n=this.popChar();if(su.test(n)===!1)throw Error("Expecting an integer");for(;su.test(this.peekChar(0));)n+=this.popChar();return parseInt(n,10)}patternCharacter(){const n=this.popChar();switch(n){case`
25
- `:case"\r":case"\u2028":case"\u2029":case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":throw Error("TBD");default:return{type:"Character",value:dt(n)}}}isRegExpFlag(){switch(this.peekChar(0)){case"g":case"i":case"m":case"u":case"y":return!0;default:return!1}}isRangeDash(){return this.peekChar()==="-"&&this.isClassAtom(1)}isDigit(){return su.test(this.peekChar(0))}isClassAtom(n=0){switch(this.peekChar(n)){case"]":case`
23
+ `:case"\r":case"\u2028":case"\u2029":case"\\":case"]":throw Error("TBD");default:const n=this.popChar();return{type:"Character",value:dt(n)}}}characterClass(){const n=[];let s=!1;for(this.consumeChar("["),this.peekChar(0)==="^"&&(this.consumeChar("^"),s=!0);this.isClassAtom();){const r=this.classAtom();if(r.type,Zm(r)&&this.isRangeDash()){this.consumeChar("-");const u=this.classAtom();if(u.type,Zm(u)){if(u.value<r.value)throw Error("Range out of order in character class");n.push({from:r.value,to:u.value})}else If(r.value,n),n.push(dt("-")),If(u.value,n)}else If(r.value,n)}return this.consumeChar("]"),{type:"Set",complement:s,value:n}}classAtom(){switch(this.peekChar()){case"]":case`
24
+ `:case"\r":case"\u2028":case"\u2029":throw Error("TBD");case"\\":return this.classEscape();default:return this.classPatternCharacterAtom()}}classEscape(){switch(this.consumeChar("\\"),this.peekChar()){case"b":return this.consumeChar("b"),{type:"Character",value:dt("\b")};case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}}group(){let n=!0;this.consumeChar("("),this.peekChar(0)==="?"?(this.consumeChar("?"),this.consumeChar(":"),n=!1):this.groupIdx++;const s=this.disjunction();this.consumeChar(")");const r={type:"Group",capturing:n,value:s};return n&&(r.idx=this.groupIdx),r}positiveInteger(){let n=this.popChar();if(Jx.test(n)===!1)throw Error("Expecting a positive integer");for(;ru.test(this.peekChar(0));)n+=this.popChar();return parseInt(n,10)}integerIncludingZero(){let n=this.popChar();if(ru.test(n)===!1)throw Error("Expecting an integer");for(;ru.test(this.peekChar(0));)n+=this.popChar();return parseInt(n,10)}patternCharacter(){const n=this.popChar();switch(n){case`
25
+ `:case"\r":case"\u2028":case"\u2029":case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":throw Error("TBD");default:return{type:"Character",value:dt(n)}}}isRegExpFlag(){switch(this.peekChar(0)){case"g":case"i":case"m":case"u":case"y":return!0;default:return!1}}isRangeDash(){return this.peekChar()==="-"&&this.isClassAtom(1)}isDigit(){return ru.test(this.peekChar(0))}isClassAtom(n=0){switch(this.peekChar(n)){case"]":case`
26
26
  `:case"\r":case"\u2028":case"\u2029":return!1;default:return!0}}isTerm(){return this.isAtom()||this.isAssertion()}isAtom(){if(this.isPatternCharacter())return!0;switch(this.peekChar(0)){case".":case"\\":case"[":case"(":return!0;default:return!1}}isAssertion(){switch(this.peekChar(0)){case"^":case"$":return!0;case"\\":switch(this.peekChar(1)){case"b":case"B":return!0;default:return!1}case"(":return this.peekChar(1)==="?"&&(this.peekChar(2)==="="||this.peekChar(2)==="!"||this.peekChar(2)==="<"&&(this.peekChar(3)==="="||this.peekChar(3)==="!"));default:return!1}}isQuantifier(){const n=this.saveState();try{return this.quantifier(!0)!==void 0}catch{return!1}finally{this.restoreState(n)}}isPatternCharacter(){switch(this.peekChar()){case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":case"/":case`
27
- `:case"\r":case"\u2028":case"\u2029":return!1;default:return!0}}parseHexDigits(n){let s="";for(let u=0;u<n;u++){const c=this.popChar();if(Fx.test(c)===!1)throw Error("Expecting a HexDecimal digits");s+=c}return{type:"Character",value:parseInt(s,16)}}peekChar(n=0){return this.input[this.idx+n]}popChar(){const n=this.peekChar(0);return this.consumeChar(void 0),n}consumeChar(n){if(n!==void 0&&this.input[this.idx]!==n)throw Error("Expected: '"+n+"' but found: '"+this.input[this.idx]+"' at offset: "+this.idx);if(this.idx>=this.input.length)throw Error("Unexpected end of input");this.idx++}loc(n){return{begin:n,end:this.idx}}}class Hh{visitChildren(n){for(const s in n){const r=n[s];n.hasOwnProperty(s)&&(r.type!==void 0?this.visit(r):Array.isArray(r)&&r.forEach(u=>{this.visit(u)},this))}}visit(n){switch(n.type){case"Pattern":this.visitPattern(n);break;case"Flags":this.visitFlags(n);break;case"Disjunction":this.visitDisjunction(n);break;case"Alternative":this.visitAlternative(n);break;case"StartAnchor":this.visitStartAnchor(n);break;case"EndAnchor":this.visitEndAnchor(n);break;case"WordBoundary":this.visitWordBoundary(n);break;case"NonWordBoundary":this.visitNonWordBoundary(n);break;case"Lookahead":this.visitLookahead(n);break;case"NegativeLookahead":this.visitNegativeLookahead(n);break;case"Lookbehind":this.visitLookbehind(n);break;case"NegativeLookbehind":this.visitNegativeLookbehind(n);break;case"Character":this.visitCharacter(n);break;case"Set":this.visitSet(n);break;case"Group":this.visitGroup(n);break;case"GroupBackReference":this.visitGroupBackReference(n);break;case"Quantifier":this.visitQuantifier(n);break}this.visitChildren(n)}visitPattern(n){}visitFlags(n){}visitDisjunction(n){}visitAlternative(n){}visitStartAnchor(n){}visitEndAnchor(n){}visitWordBoundary(n){}visitNonWordBoundary(n){}visitLookahead(n){}visitNegativeLookahead(n){}visitLookbehind(n){}visitNegativeLookbehind(n){}visitCharacter(n){}visitSet(n){}visitGroup(n){}visitGroupBackReference(n){}visitQuantifier(n){}}let mu={};const Wx=new Zx;function Zu(i){const n=i.toString();if(mu.hasOwnProperty(n))return mu[n];{const s=Wx.pattern(n);return mu[n]=s,s}}function Jx(){mu={}}const G0="Complement Sets are not supported for first char optimization",Cu=`Unable to use "first char" lexer optimizations:
28
- `;function tC(i,n=!1){try{const s=Zu(i);return lh(s.value,{},s.flags.ignoreCase)}catch(s){if(s.message===G0)n&&B0(`${Cu} Unable to optimize: < ${i.toString()} >
27
+ `:case"\r":case"\u2028":case"\u2029":return!1;default:return!0}}parseHexDigits(n){let s="";for(let u=0;u<n;u++){const c=this.popChar();if(Wx.test(c)===!1)throw Error("Expecting a HexDecimal digits");s+=c}return{type:"Character",value:parseInt(s,16)}}peekChar(n=0){return this.input[this.idx+n]}popChar(){const n=this.peekChar(0);return this.consumeChar(void 0),n}consumeChar(n){if(n!==void 0&&this.input[this.idx]!==n)throw Error("Expected: '"+n+"' but found: '"+this.input[this.idx]+"' at offset: "+this.idx);if(this.idx>=this.input.length)throw Error("Unexpected end of input");this.idx++}loc(n){return{begin:n,end:this.idx}}}class qh{visitChildren(n){for(const s in n){const r=n[s];n.hasOwnProperty(s)&&(r.type!==void 0?this.visit(r):Array.isArray(r)&&r.forEach(u=>{this.visit(u)},this))}}visit(n){switch(n.type){case"Pattern":this.visitPattern(n);break;case"Flags":this.visitFlags(n);break;case"Disjunction":this.visitDisjunction(n);break;case"Alternative":this.visitAlternative(n);break;case"StartAnchor":this.visitStartAnchor(n);break;case"EndAnchor":this.visitEndAnchor(n);break;case"WordBoundary":this.visitWordBoundary(n);break;case"NonWordBoundary":this.visitNonWordBoundary(n);break;case"Lookahead":this.visitLookahead(n);break;case"NegativeLookahead":this.visitNegativeLookahead(n);break;case"Lookbehind":this.visitLookbehind(n);break;case"NegativeLookbehind":this.visitNegativeLookbehind(n);break;case"Character":this.visitCharacter(n);break;case"Set":this.visitSet(n);break;case"Group":this.visitGroup(n);break;case"GroupBackReference":this.visitGroupBackReference(n);break;case"Quantifier":this.visitQuantifier(n);break}this.visitChildren(n)}visitPattern(n){}visitFlags(n){}visitDisjunction(n){}visitAlternative(n){}visitStartAnchor(n){}visitEndAnchor(n){}visitWordBoundary(n){}visitNonWordBoundary(n){}visitLookahead(n){}visitNegativeLookahead(n){}visitLookbehind(n){}visitNegativeLookbehind(n){}visitCharacter(n){}visitSet(n){}visitGroup(n){}visitGroupBackReference(n){}visitQuantifier(n){}}let yu={};const eC=new tC;function Wu(i){const n=i.toString();if(yu.hasOwnProperty(n))return yu[n];{const s=eC.pattern(n);return yu[n]=s,s}}function nC(){yu={}}const P0="Complement Sets are not supported for first char optimization",Lu=`Unable to use "first char" lexer optimizations:
28
+ `;function iC(i,n=!1){try{const s=Wu(i);return uh(s.value,{},s.flags.ignoreCase)}catch(s){if(s.message===P0)n&&z0(`${Lu} Unable to optimize: < ${i.toString()} >
29
29
  Complement Sets cannot be automatically optimized.
30
30
  This will disable the lexer's first char optimizations.
31
31
  See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#COMPLEMENT for details.`);else{let r="";n&&(r=`
32
32
  This will disable the lexer's first char optimizations.
33
- See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details.`),rh(`${Cu}
33
+ See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details.`),lh(`${Lu}
34
34
  Failed parsing: < ${i.toString()} >
35
35
  Using the @chevrotain/regexp-to-ast library
36
- Please open an issue at: https://github.com/chevrotain/chevrotain/issues`+r)}}return[]}function lh(i,n,s){switch(i.type){case"Disjunction":for(let u=0;u<i.value.length;u++)lh(i.value[u],n,s);break;case"Alternative":const r=i.value;for(let u=0;u<r.length;u++){const c=r[u];switch(c.type){case"EndAnchor":case"GroupBackReference":case"Lookahead":case"NegativeLookahead":case"Lookbehind":case"NegativeLookbehind":case"StartAnchor":case"WordBoundary":case"NonWordBoundary":continue}const h=c;switch(h.type){case"Character":ru(h.value,n,s);break;case"Set":if(h.complement===!0)throw Error(G0);ht(h.value,d=>{if(typeof d=="number")ru(d,n,s);else{const g=d;if(s===!0)for(let b=g.from;b<=g.to;b++)ru(b,n,s);else{for(let b=g.from;b<=g.to&&b<yr;b++)ru(b,n,s);if(g.to>=yr){const b=g.from>=yr?g.from:yr,E=g.to,A=ji(b),j=ji(E);for(let H=A;H<=j;H++)n[H]=H}}}});break;case"Group":lh(h.value,n,s);break;default:throw Error("Non Exhaustive Match")}const _=h.quantifier!==void 0&&h.quantifier.atLeast===0;if(h.type==="Group"&&uh(h)===!1||h.type!=="Group"&&_===!1)break}break;default:throw Error("non exhaustive match!")}return se(n)}function ru(i,n,s){const r=ji(i);n[r]=r,s===!0&&eC(i,n)}function eC(i,n){const s=String.fromCharCode(i),r=s.toUpperCase();if(r!==s){const u=ji(r.charCodeAt(0));n[u]=u}else{const u=s.toLowerCase();if(u!==s){const c=ji(u.charCodeAt(0));n[c]=c}}}function ty(i,n){return hs(i.value,s=>{if(typeof s=="number")return Se(n,s);{const r=s;return hs(n,u=>r.from<=u&&u<=r.to)!==void 0}})}function uh(i){const n=i.quantifier;return n&&n.atLeast===0?!0:i.value?xt(i.value)?bn(i.value,uh):uh(i.value):!1}class nC extends Hh{constructor(n){super(),this.targetCharCodes=n,this.found=!1}visitChildren(n){if(this.found!==!0){switch(n.type){case"Lookahead":this.visitLookahead(n);return;case"NegativeLookahead":this.visitNegativeLookahead(n);return;case"Lookbehind":this.visitLookbehind(n);return;case"NegativeLookbehind":this.visitNegativeLookbehind(n);return}super.visitChildren(n)}}visitCharacter(n){Se(this.targetCharCodes,n.value)&&(this.found=!0)}visitSet(n){n.complement?ty(n,this.targetCharCodes)===void 0&&(this.found=!0):ty(n,this.targetCharCodes)!==void 0&&(this.found=!0)}}function $h(i,n){if(n instanceof RegExp){const s=Zu(n),r=new nC(i);return r.visit(s),r.found}else return hs(n,s=>Se(i,s.charCodeAt(0)))!==void 0}const _a="PATTERN",mr="defaultMode",lu="modes";let q0=typeof new RegExp("(?:)").sticky=="boolean";function iC(i,n){n=Gh(n,{useSticky:q0,debug:!1,safeMode:!1,positionTracking:"full",lineTerminatorCharacters:["\r",`
37
- `],tracer:(T,w)=>w()});const s=n.tracer;s("initCharCodeToOptimizedIndexMap",()=>{RC()});let r;s("Reject Lexer.NA",()=>{r=Fu(i,T=>T[_a]===me.NA)});let u=!1,c;s("Transform Patterns",()=>{u=!1,c=rt(r,T=>{const w=T[_a];if(ri(w)){const I=w.source;return I.length===1&&I!=="^"&&I!=="$"&&I!=="."&&!w.ignoreCase?I:I.length===2&&I[0]==="\\"&&!Se(["d","D","s","S","t","r","n","t","0","c","b","B","f","v","w","W"],I[1])?I[1]:n.useSticky?ny(w):ey(w)}else{if(oi(w))return u=!0,{exec:w};if(typeof w=="object")return u=!0,w;if(typeof w=="string"){if(w.length===1)return w;{const I=w.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&"),F=new RegExp(I);return n.useSticky?ny(F):ey(F)}}else throw Error("non exhaustive match")}})});let h,_,d,g,b;s("misc mapping",()=>{h=rt(r,T=>T.tokenTypeIdx),_=rt(r,T=>{const w=T.GROUP;if(w!==me.SKIPPED){if(Ue(w))return w;if(li(w))return!1;throw Error("non exhaustive match")}}),d=rt(r,T=>{const w=T.LONGER_ALT;if(w)return xt(w)?rt(w,F=>Fm(r,F)):[Fm(r,w)]}),g=rt(r,T=>T.PUSH_MODE),b=rt(r,T=>ft(T,"POP_MODE"))});let E;s("Line Terminator Handling",()=>{const T=K0(n.lineTerminatorCharacters);E=rt(r,w=>!1),n.positionTracking!=="onlyOffset"&&(E=rt(r,w=>ft(w,"LINE_BREAKS")?!!w.LINE_BREAKS:$0(w,T)===!1&&$h(T,w.PATTERN)))});let A,j,H,X;s("Misc Mapping #2",()=>{A=rt(r,H0),j=rt(c,AC),H=Ze(r,(T,w)=>{const I=w.GROUP;return Ue(I)&&I!==me.SKIPPED&&(T[I]=[]),T},{}),X=rt(c,(T,w)=>({pattern:c[w],longerAlt:d[w],canLineTerminator:E[w],isCustom:A[w],short:j[w],group:_[w],push:g[w],pop:b[w],tokenTypeIdx:h[w],tokenType:r[w]}))});let S=!0,v=[];return n.safeMode||s("First Char Optimization",()=>{v=Ze(r,(T,w,I)=>{if(typeof w.PATTERN=="string"){const F=w.PATTERN.charCodeAt(0),U=ji(F);If(T,U,X[I])}else if(xt(w.START_CHARS_HINT)){let F;ht(w.START_CHARS_HINT,U=>{const L=typeof U=="string"?U.charCodeAt(0):U,C=ji(L);F!==C&&(F=C,If(T,C,X[I]))})}else if(ri(w.PATTERN))if(w.PATTERN.unicode)S=!1,n.ensureOptimizations&&rh(`${Cu} Unable to analyze < ${w.PATTERN.toString()} > pattern.
36
+ Please open an issue at: https://github.com/chevrotain/chevrotain/issues`+r)}}return[]}function uh(i,n,s){switch(i.type){case"Disjunction":for(let u=0;u<i.value.length;u++)uh(i.value[u],n,s);break;case"Alternative":const r=i.value;for(let u=0;u<r.length;u++){const c=r[u];switch(c.type){case"EndAnchor":case"GroupBackReference":case"Lookahead":case"NegativeLookahead":case"Lookbehind":case"NegativeLookbehind":case"StartAnchor":case"WordBoundary":case"NonWordBoundary":continue}const h=c;switch(h.type){case"Character":lu(h.value,n,s);break;case"Set":if(h.complement===!0)throw Error(P0);ht(h.value,d=>{if(typeof d=="number")lu(d,n,s);else{const g=d;if(s===!0)for(let b=g.from;b<=g.to;b++)lu(b,n,s);else{for(let b=g.from;b<=g.to&&b<vr;b++)lu(b,n,s);if(g.to>=vr){const b=g.from>=vr?g.from:vr,E=g.to,A=Pi(b),j=Pi(E);for(let H=A;H<=j;H++)n[H]=H}}}});break;case"Group":uh(h.value,n,s);break;default:throw Error("Non Exhaustive Match")}const _=h.quantifier!==void 0&&h.quantifier.atLeast===0;if(h.type==="Group"&&oh(h)===!1||h.type!=="Group"&&_===!1)break}break;default:throw Error("non exhaustive match!")}return se(n)}function lu(i,n,s){const r=Pi(i);n[r]=r,s===!0&&aC(i,n)}function aC(i,n){const s=String.fromCharCode(i),r=s.toUpperCase();if(r!==s){const u=Pi(r.charCodeAt(0));n[u]=u}else{const u=s.toLowerCase();if(u!==s){const c=Pi(u.charCodeAt(0));n[c]=c}}}function Jm(i,n){return ds(i.value,s=>{if(typeof s=="number")return Se(n,s);{const r=s;return ds(n,u=>r.from<=u&&u<=r.to)!==void 0}})}function oh(i){const n=i.quantifier;return n&&n.atLeast===0?!0:i.value?xt(i.value)?bn(i.value,oh):oh(i.value):!1}class sC extends qh{constructor(n){super(),this.targetCharCodes=n,this.found=!1}visitChildren(n){if(this.found!==!0){switch(n.type){case"Lookahead":this.visitLookahead(n);return;case"NegativeLookahead":this.visitNegativeLookahead(n);return;case"Lookbehind":this.visitLookbehind(n);return;case"NegativeLookbehind":this.visitNegativeLookbehind(n);return}super.visitChildren(n)}}visitCharacter(n){Se(this.targetCharCodes,n.value)&&(this.found=!0)}visitSet(n){n.complement?Jm(n,this.targetCharCodes)===void 0&&(this.found=!0):Jm(n,this.targetCharCodes)!==void 0&&(this.found=!0)}}function Hh(i,n){if(n instanceof RegExp){const s=Wu(n),r=new sC(i);return r.visit(s),r.found}else return ds(n,s=>Se(i,s.charCodeAt(0)))!==void 0}const _a="PATTERN",yr="defaultMode",uu="modes";let G0=typeof new RegExp("(?:)").sticky=="boolean";function rC(i,n){n=Ph(n,{useSticky:G0,debug:!1,safeMode:!1,positionTracking:"full",lineTerminatorCharacters:["\r",`
37
+ `],tracer:(T,w)=>w()});const s=n.tracer;s("initCharCodeToOptimizedIndexMap",()=>{LC()});let r;s("Reject Lexer.NA",()=>{r=Qu(i,T=>T[_a]===ye.NA)});let u=!1,c;s("Transform Patterns",()=>{u=!1,c=rt(r,T=>{const w=T[_a];if(ri(w)){const I=w.source;return I.length===1&&I!=="^"&&I!=="$"&&I!=="."&&!w.ignoreCase?I:I.length===2&&I[0]==="\\"&&!Se(["d","D","s","S","t","r","n","t","0","c","b","B","f","v","w","W"],I[1])?I[1]:n.useSticky?ey(w):ty(w)}else{if(oi(w))return u=!0,{exec:w};if(typeof w=="object")return u=!0,w;if(typeof w=="string"){if(w.length===1)return w;{const I=w.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&"),X=new RegExp(I);return n.useSticky?ey(X):ty(X)}}else throw Error("non exhaustive match")}})});let h,_,d,g,b;s("misc mapping",()=>{h=rt(r,T=>T.tokenTypeIdx),_=rt(r,T=>{const w=T.GROUP;if(w!==ye.SKIPPED){if(Ue(w))return w;if(li(w))return!1;throw Error("non exhaustive match")}}),d=rt(r,T=>{const w=T.LONGER_ALT;if(w)return xt(w)?rt(w,X=>Fm(r,X)):[Fm(r,w)]}),g=rt(r,T=>T.PUSH_MODE),b=rt(r,T=>ft(T,"POP_MODE"))});let E;s("Line Terminator Handling",()=>{const T=$0(n.lineTerminatorCharacters);E=rt(r,w=>!1),n.positionTracking!=="onlyOffset"&&(E=rt(r,w=>ft(w,"LINE_BREAKS")?!!w.LINE_BREAKS:H0(w,T)===!1&&Hh(T,w.PATTERN)))});let A,j,H,F;s("Misc Mapping #2",()=>{A=rt(r,q0),j=rt(c,RC),H=Ze(r,(T,w)=>{const I=w.GROUP;return Ue(I)&&I!==ye.SKIPPED&&(T[I]=[]),T},{}),F=rt(c,(T,w)=>({pattern:c[w],longerAlt:d[w],canLineTerminator:E[w],isCustom:A[w],short:j[w],group:_[w],push:g[w],pop:b[w],tokenTypeIdx:h[w],tokenType:r[w]}))});let S=!0,v=[];return n.safeMode||s("First Char Optimization",()=>{v=Ze(r,(T,w,I)=>{if(typeof w.PATTERN=="string"){const X=w.PATTERN.charCodeAt(0),U=Pi(X);kf(T,U,F[I])}else if(xt(w.START_CHARS_HINT)){let X;ht(w.START_CHARS_HINT,U=>{const L=typeof U=="string"?U.charCodeAt(0):U,C=Pi(L);X!==C&&(X=C,kf(T,C,F[I]))})}else if(ri(w.PATTERN))if(w.PATTERN.unicode)S=!1,n.ensureOptimizations&&lh(`${Lu} Unable to analyze < ${w.PATTERN.toString()} > pattern.
38
38
  The regexp unicode flag is not currently supported by the regexp-to-ast library.
39
39
  This will disable the lexer's first char optimizations.
40
- For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE`);else{const F=tC(w.PATTERN,n.ensureOptimizations);jt(F)&&(S=!1),ht(F,U=>{If(T,U,X[I])})}else n.ensureOptimizations&&rh(`${Cu} TokenType: <${w.name}> is using a custom token pattern without providing <start_chars_hint> parameter.
40
+ For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE`);else{const X=iC(w.PATTERN,n.ensureOptimizations);jt(X)&&(S=!1),ht(X,U=>{kf(T,U,F[I])})}else n.ensureOptimizations&&lh(`${Lu} TokenType: <${w.name}> is using a custom token pattern without providing <start_chars_hint> parameter.
41
41
  This will disable the lexer's first char optimizations.
42
- For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE`),S=!1;return T},[])}),{emptyGroups:H,patternIdxToConfig:X,charCodeToPatternIdxToConfig:v,hasCustom:u,canBeOptimized:S}}function aC(i,n){let s=[];const r=rC(i);s=s.concat(r.errors);const u=lC(r.valid),c=u.valid;return s=s.concat(u.errors),s=s.concat(sC(c)),s=s.concat(pC(c)),s=s.concat(gC(c,n)),s=s.concat(mC(c)),s}function sC(i){let n=[];const s=pn(i,r=>ri(r[_a]));return n=n.concat(oC(s)),n=n.concat(hC(s)),n=n.concat(dC(s)),n=n.concat(_C(s)),n=n.concat(cC(s)),n}function rC(i){const n=pn(i,u=>!ft(u,_a)),s=rt(n,u=>({message:"Token Type: ->"+u.name+"<- missing static 'PATTERN' property",type:Ft.MISSING_PATTERN,tokenTypes:[u]})),r=Xu(i,n);return{errors:s,valid:r}}function lC(i){const n=pn(i,u=>{const c=u[_a];return!ri(c)&&!oi(c)&&!ft(c,"exec")&&!Ue(c)}),s=rt(n,u=>({message:"Token Type: ->"+u.name+"<- static 'PATTERN' can only be a RegExp, a Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.",type:Ft.INVALID_PATTERN,tokenTypes:[u]})),r=Xu(i,n);return{errors:s,valid:r}}const uC=/[^\\][$]/;function oC(i){class n extends Hh{constructor(){super(...arguments),this.found=!1}visitEndAnchor(c){this.found=!0}}const s=pn(i,u=>{const c=u.PATTERN;try{const h=Zu(c),_=new n;return _.visit(h),_.found}catch{return uC.test(c.source)}});return rt(s,u=>({message:`Unexpected RegExp Anchor Error:
42
+ For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE`),S=!1;return T},[])}),{emptyGroups:H,patternIdxToConfig:F,charCodeToPatternIdxToConfig:v,hasCustom:u,canBeOptimized:S}}function lC(i,n){let s=[];const r=oC(i);s=s.concat(r.errors);const u=cC(r.valid),c=u.valid;return s=s.concat(u.errors),s=s.concat(uC(c)),s=s.concat(yC(c)),s=s.concat(vC(c,n)),s=s.concat(EC(c)),s}function uC(i){let n=[];const s=pn(i,r=>ri(r[_a]));return n=n.concat(hC(s)),n=n.concat(pC(s)),n=n.concat(gC(s)),n=n.concat(mC(s)),n=n.concat(dC(s)),n}function oC(i){const n=pn(i,u=>!ft(u,_a)),s=rt(n,u=>({message:"Token Type: ->"+u.name+"<- missing static 'PATTERN' property",type:Xt.MISSING_PATTERN,tokenTypes:[u]})),r=Xu(i,n);return{errors:s,valid:r}}function cC(i){const n=pn(i,u=>{const c=u[_a];return!ri(c)&&!oi(c)&&!ft(c,"exec")&&!Ue(c)}),s=rt(n,u=>({message:"Token Type: ->"+u.name+"<- static 'PATTERN' can only be a RegExp, a Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.",type:Xt.INVALID_PATTERN,tokenTypes:[u]})),r=Xu(i,n);return{errors:s,valid:r}}const fC=/[^\\][$]/;function hC(i){class n extends qh{constructor(){super(...arguments),this.found=!1}visitEndAnchor(c){this.found=!0}}const s=pn(i,u=>{const c=u.PATTERN;try{const h=Wu(c),_=new n;return _.visit(h),_.found}catch{return fC.test(c.source)}});return rt(s,u=>({message:`Unexpected RegExp Anchor Error:
43
43
  Token Type: ->`+u.name+`<- static 'PATTERN' cannot contain end of input anchor '$'
44
- See chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:Ft.EOI_ANCHOR_FOUND,tokenTypes:[u]}))}function cC(i){const n=pn(i,r=>r.PATTERN.test(""));return rt(n,r=>({message:"Token Type: ->"+r.name+"<- static 'PATTERN' must not match an empty string",type:Ft.EMPTY_MATCH_PATTERN,tokenTypes:[r]}))}const fC=/[^\\[][\^]|^\^/;function hC(i){class n extends Hh{constructor(){super(...arguments),this.found=!1}visitStartAnchor(c){this.found=!0}}const s=pn(i,u=>{const c=u.PATTERN;try{const h=Zu(c),_=new n;return _.visit(h),_.found}catch{return fC.test(c.source)}});return rt(s,u=>({message:`Unexpected RegExp Anchor Error:
44
+ See chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:Xt.EOI_ANCHOR_FOUND,tokenTypes:[u]}))}function dC(i){const n=pn(i,r=>r.PATTERN.test(""));return rt(n,r=>({message:"Token Type: ->"+r.name+"<- static 'PATTERN' must not match an empty string",type:Xt.EMPTY_MATCH_PATTERN,tokenTypes:[r]}))}const _C=/[^\\[][\^]|^\^/;function pC(i){class n extends qh{constructor(){super(...arguments),this.found=!1}visitStartAnchor(c){this.found=!0}}const s=pn(i,u=>{const c=u.PATTERN;try{const h=Wu(c),_=new n;return _.visit(h),_.found}catch{return _C.test(c.source)}});return rt(s,u=>({message:`Unexpected RegExp Anchor Error:
45
45
  Token Type: ->`+u.name+`<- static 'PATTERN' cannot contain start of input anchor '^'
46
- See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:Ft.SOI_ANCHOR_FOUND,tokenTypes:[u]}))}function dC(i){const n=pn(i,r=>{const u=r[_a];return u instanceof RegExp&&(u.multiline||u.global)});return rt(n,r=>({message:"Token Type: ->"+r.name+"<- static 'PATTERN' may NOT contain global('g') or multiline('m')",type:Ft.UNSUPPORTED_FLAGS_FOUND,tokenTypes:[r]}))}function _C(i){const n=[];let s=rt(i,c=>Ze(i,(h,_)=>(c.PATTERN.source===_.PATTERN.source&&!Se(n,_)&&_.PATTERN!==me.NA&&(n.push(_),h.push(_)),h),[]));s=Ur(s);const r=pn(s,c=>c.length>1);return rt(r,c=>{const h=rt(c,d=>d.name);return{message:`The same RegExp pattern ->${Sn(c).PATTERN}<-has been used in all of the following Token Types: ${h.join(", ")} <-`,type:Ft.DUPLICATE_PATTERNS_FOUND,tokenTypes:c}})}function pC(i){const n=pn(i,r=>{if(!ft(r,"GROUP"))return!1;const u=r.GROUP;return u!==me.SKIPPED&&u!==me.NA&&!Ue(u)});return rt(n,r=>({message:"Token Type: ->"+r.name+"<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String",type:Ft.INVALID_GROUP_TYPE_FOUND,tokenTypes:[r]}))}function gC(i,n){const s=pn(i,u=>u.PUSH_MODE!==void 0&&!Se(n,u.PUSH_MODE));return rt(s,u=>({message:`Token Type: ->${u.name}<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->${u.PUSH_MODE}<-which does not exist`,type:Ft.PUSH_MODE_DOES_NOT_EXIST,tokenTypes:[u]}))}function mC(i){const n=[],s=Ze(i,(r,u,c)=>{const h=u.PATTERN;return h===me.NA||(Ue(h)?r.push({str:h,idx:c,tokenType:u}):ri(h)&&vC(h)&&r.push({str:h.source,idx:c,tokenType:u})),r},[]);return ht(i,(r,u)=>{ht(s,({str:c,idx:h,tokenType:_})=>{if(u<h&&yC(c,r.PATTERN)){const d=`Token: ->${_.name}<- can never be matched.
46
+ See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:Xt.SOI_ANCHOR_FOUND,tokenTypes:[u]}))}function gC(i){const n=pn(i,r=>{const u=r[_a];return u instanceof RegExp&&(u.multiline||u.global)});return rt(n,r=>({message:"Token Type: ->"+r.name+"<- static 'PATTERN' may NOT contain global('g') or multiline('m')",type:Xt.UNSUPPORTED_FLAGS_FOUND,tokenTypes:[r]}))}function mC(i){const n=[];let s=rt(i,c=>Ze(i,(h,_)=>(c.PATTERN.source===_.PATTERN.source&&!Se(n,_)&&_.PATTERN!==ye.NA&&(n.push(_),h.push(_)),h),[]));s=Ir(s);const r=pn(s,c=>c.length>1);return rt(r,c=>{const h=rt(c,d=>d.name);return{message:`The same RegExp pattern ->${Sn(c).PATTERN}<-has been used in all of the following Token Types: ${h.join(", ")} <-`,type:Xt.DUPLICATE_PATTERNS_FOUND,tokenTypes:c}})}function yC(i){const n=pn(i,r=>{if(!ft(r,"GROUP"))return!1;const u=r.GROUP;return u!==ye.SKIPPED&&u!==ye.NA&&!Ue(u)});return rt(n,r=>({message:"Token Type: ->"+r.name+"<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String",type:Xt.INVALID_GROUP_TYPE_FOUND,tokenTypes:[r]}))}function vC(i,n){const s=pn(i,u=>u.PUSH_MODE!==void 0&&!Se(n,u.PUSH_MODE));return rt(s,u=>({message:`Token Type: ->${u.name}<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->${u.PUSH_MODE}<-which does not exist`,type:Xt.PUSH_MODE_DOES_NOT_EXIST,tokenTypes:[u]}))}function EC(i){const n=[],s=Ze(i,(r,u,c)=>{const h=u.PATTERN;return h===ye.NA||(Ue(h)?r.push({str:h,idx:c,tokenType:u}):ri(h)&&TC(h)&&r.push({str:h.source,idx:c,tokenType:u})),r},[]);return ht(i,(r,u)=>{ht(s,({str:c,idx:h,tokenType:_})=>{if(u<h&&bC(c,r.PATTERN)){const d=`Token: ->${_.name}<- can never be matched.
47
47
  Because it appears AFTER the Token Type ->${r.name}<-in the lexer's definition.
48
- See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;n.push({message:d,type:Ft.UNREACHABLE_PATTERN,tokenTypes:[r,_]})}})}),n}function yC(i,n){if(ri(n)){if(EC(n))return!1;const s=n.exec(i);return s!==null&&s.index===0}else{if(oi(n))return n(i,0,[],{});if(ft(n,"exec"))return n.exec(i,0,[],{});if(typeof n=="string")return n===i;throw Error("non exhaustive match")}}function vC(i){return hs([".","\\","[","]","|","^","$","(",")","?","*","+","{"],s=>i.source.indexOf(s)!==-1)===void 0}function EC(i){return/(\(\?=)|(\(\?!)|(\(\?<=)|(\(\?<!)/.test(i.source)}function ey(i){const n=i.ignoreCase?"i":"";return new RegExp(`^(?:${i.source})`,n)}function ny(i){const n=i.ignoreCase?"iy":"y";return new RegExp(`${i.source}`,n)}function bC(i,n,s){const r=[];return ft(i,mr)||r.push({message:"A MultiMode Lexer cannot be initialized without a <"+mr+`> property in its definition
49
- `,type:Ft.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE}),ft(i,lu)||r.push({message:"A MultiMode Lexer cannot be initialized without a <"+lu+`> property in its definition
50
- `,type:Ft.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY}),ft(i,lu)&&ft(i,mr)&&!ft(i.modes,i.defaultMode)&&r.push({message:`A MultiMode Lexer cannot be initialized with a ${mr}: <${i.defaultMode}>which does not exist
51
- `,type:Ft.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST}),ft(i,lu)&&ht(i.modes,(u,c)=>{ht(u,(h,_)=>{if(li(h))r.push({message:`A Lexer cannot be initialized using an undefined Token Type. Mode:<${c}> at index: <${_}>
52
- `,type:Ft.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED});else if(ft(h,"LONGER_ALT")){const d=xt(h.LONGER_ALT)?h.LONGER_ALT:[h.LONGER_ALT];ht(d,g=>{!li(g)&&!Se(u,g)&&r.push({message:`A MultiMode Lexer cannot be initialized with a longer_alt <${g.name}> on token <${h.name}> outside of mode <${c}>
53
- `,type:Ft.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE})})}})}),r}function TC(i,n,s){const r=[];let u=!1;const c=Ur(En(se(i.modes))),h=Fu(c,d=>d[_a]===me.NA),_=K0(s);return n&&ht(h,d=>{const g=$0(d,_);if(g!==!1){const E={message:NC(d,g),type:g.issue,tokenType:d};r.push(E)}else ft(d,"LINE_BREAKS")?d.LINE_BREAKS===!0&&(u=!0):$h(_,d.PATTERN)&&(u=!0)}),n&&!u&&r.push({message:`Warning: No LINE_BREAKS Found.
48
+ See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;n.push({message:d,type:Xt.UNREACHABLE_PATTERN,tokenTypes:[r,_]})}})}),n}function bC(i,n){if(ri(n)){if(SC(n))return!1;const s=n.exec(i);return s!==null&&s.index===0}else{if(oi(n))return n(i,0,[],{});if(ft(n,"exec"))return n.exec(i,0,[],{});if(typeof n=="string")return n===i;throw Error("non exhaustive match")}}function TC(i){return ds([".","\\","[","]","|","^","$","(",")","?","*","+","{"],s=>i.source.indexOf(s)!==-1)===void 0}function SC(i){return/(\(\?=)|(\(\?!)|(\(\?<=)|(\(\?<!)/.test(i.source)}function ty(i){const n=i.ignoreCase?"i":"";return new RegExp(`^(?:${i.source})`,n)}function ey(i){const n=i.ignoreCase?"iy":"y";return new RegExp(`${i.source}`,n)}function AC(i,n,s){const r=[];return ft(i,yr)||r.push({message:"A MultiMode Lexer cannot be initialized without a <"+yr+`> property in its definition
49
+ `,type:Xt.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE}),ft(i,uu)||r.push({message:"A MultiMode Lexer cannot be initialized without a <"+uu+`> property in its definition
50
+ `,type:Xt.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY}),ft(i,uu)&&ft(i,yr)&&!ft(i.modes,i.defaultMode)&&r.push({message:`A MultiMode Lexer cannot be initialized with a ${yr}: <${i.defaultMode}>which does not exist
51
+ `,type:Xt.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST}),ft(i,uu)&&ht(i.modes,(u,c)=>{ht(u,(h,_)=>{if(li(h))r.push({message:`A Lexer cannot be initialized using an undefined Token Type. Mode:<${c}> at index: <${_}>
52
+ `,type:Xt.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED});else if(ft(h,"LONGER_ALT")){const d=xt(h.LONGER_ALT)?h.LONGER_ALT:[h.LONGER_ALT];ht(d,g=>{!li(g)&&!Se(u,g)&&r.push({message:`A MultiMode Lexer cannot be initialized with a longer_alt <${g.name}> on token <${h.name}> outside of mode <${c}>
53
+ `,type:Xt.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE})})}})}),r}function OC(i,n,s){const r=[];let u=!1;const c=Ir(En(se(i.modes))),h=Qu(c,d=>d[_a]===ye.NA),_=$0(s);return n&&ht(h,d=>{const g=H0(d,_);if(g!==!1){const E={message:CC(d,g),type:g.issue,tokenType:d};r.push(E)}else ft(d,"LINE_BREAKS")?d.LINE_BREAKS===!0&&(u=!0):Hh(_,d.PATTERN)&&(u=!0)}),n&&!u&&r.push({message:`Warning: No LINE_BREAKS Found.
54
54
  This Lexer has been defined to track line and column information,
55
55
  But none of the Token Types can be identified as matching a line terminator.
56
56
  See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#LINE_BREAKS
57
- for details.`,type:Ft.NO_LINE_BREAKS_FLAGS}),r}function SC(i){const n={},s=_n(i);return ht(s,r=>{const u=i[r];if(xt(u))n[r]=[];else throw Error("non exhaustive match")}),n}function H0(i){const n=i.PATTERN;if(ri(n))return!1;if(oi(n))return!0;if(ft(n,"exec"))return!0;if(Ue(n))return!1;throw Error("non exhaustive match")}function AC(i){return Ue(i)&&i.length===1?i.charCodeAt(0):!1}const OC={test:function(i){const n=i.length;for(let s=this.lastIndex;s<n;s++){const r=i.charCodeAt(s);if(r===10)return this.lastIndex=s+1,!0;if(r===13)return i.charCodeAt(s+1)===10?this.lastIndex=s+2:this.lastIndex=s+1,!0}return!1},lastIndex:0};function $0(i,n){if(ft(i,"LINE_BREAKS"))return!1;if(ri(i.PATTERN)){try{$h(n,i.PATTERN)}catch(s){return{issue:Ft.IDENTIFY_TERMINATOR,errMsg:s.message}}return!1}else{if(Ue(i.PATTERN))return!1;if(H0(i))return{issue:Ft.CUSTOM_LINE_BREAK};throw Error("non exhaustive match")}}function NC(i,n){if(n.issue===Ft.IDENTIFY_TERMINATOR)return`Warning: unable to identify line terminator usage in pattern.
57
+ for details.`,type:Xt.NO_LINE_BREAKS_FLAGS}),r}function NC(i){const n={},s=_n(i);return ht(s,r=>{const u=i[r];if(xt(u))n[r]=[];else throw Error("non exhaustive match")}),n}function q0(i){const n=i.PATTERN;if(ri(n))return!1;if(oi(n))return!0;if(ft(n,"exec"))return!0;if(Ue(n))return!1;throw Error("non exhaustive match")}function RC(i){return Ue(i)&&i.length===1?i.charCodeAt(0):!1}const xC={test:function(i){const n=i.length;for(let s=this.lastIndex;s<n;s++){const r=i.charCodeAt(s);if(r===10)return this.lastIndex=s+1,!0;if(r===13)return i.charCodeAt(s+1)===10?this.lastIndex=s+2:this.lastIndex=s+1,!0}return!1},lastIndex:0};function H0(i,n){if(ft(i,"LINE_BREAKS"))return!1;if(ri(i.PATTERN)){try{Hh(n,i.PATTERN)}catch(s){return{issue:Xt.IDENTIFY_TERMINATOR,errMsg:s.message}}return!1}else{if(Ue(i.PATTERN))return!1;if(q0(i))return{issue:Xt.CUSTOM_LINE_BREAK};throw Error("non exhaustive match")}}function CC(i,n){if(n.issue===Xt.IDENTIFY_TERMINATOR)return`Warning: unable to identify line terminator usage in pattern.
58
58
  The problem is in the <${i.name}> Token Type
59
59
  Root cause: ${n.errMsg}.
60
- For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR`;if(n.issue===Ft.CUSTOM_LINE_BREAK)return`Warning: A Custom Token Pattern should specify the <line_breaks> option.
60
+ For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR`;if(n.issue===Xt.CUSTOM_LINE_BREAK)return`Warning: A Custom Token Pattern should specify the <line_breaks> option.
61
61
  The problem is in the <${i.name}> Token Type
62
- For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK`;throw Error("non exhaustive match")}function K0(i){return rt(i,s=>Ue(s)?s.charCodeAt(0):s)}function If(i,n,s){i[n]===void 0?i[n]=[s]:i[n].push(s)}const yr=256;let yu=[];function ji(i){return i<yr?i:yu[i]}function RC(){if(jt(yu)){yu=new Array(65536);for(let i=0;i<65536;i++)yu[i]=i>255?255+~~(i/255):i}}function kr(i,n){const s=i.tokenTypeIdx;return s===n.tokenTypeIdx?!0:n.isParent===!0&&n.categoryMatchesMap[s]===!0}function Lu(i,n){return i.tokenTypeIdx===n.tokenTypeIdx}let iy=1;const V0={};function zr(i){const n=xC(i);CC(n),wC(n),LC(n),ht(n,s=>{s.isParent=s.categoryMatches.length>0})}function xC(i){let n=pe(i),s=i,r=!0;for(;r;){s=Ur(En(rt(s,c=>c.CATEGORIES)));const u=Xu(s,n);n=n.concat(u),jt(u)?r=!1:s=u}return n}function CC(i){ht(i,n=>{X0(n)||(V0[iy]=n,n.tokenTypeIdx=iy++),ay(n)&&!xt(n.CATEGORIES)&&(n.CATEGORIES=[n.CATEGORIES]),ay(n)||(n.CATEGORIES=[]),MC(n)||(n.categoryMatches=[]),UC(n)||(n.categoryMatchesMap={})})}function LC(i){ht(i,n=>{n.categoryMatches=[],ht(n.categoryMatchesMap,(s,r)=>{n.categoryMatches.push(V0[r].tokenTypeIdx)})})}function wC(i){ht(i,n=>{Y0([],n)})}function Y0(i,n){ht(i,s=>{n.categoryMatchesMap[s.tokenTypeIdx]=!0}),ht(n.CATEGORIES,s=>{const r=i.concat(n);Se(r,s)||Y0(r,s)})}function X0(i){return ft(i,"tokenTypeIdx")}function ay(i){return ft(i,"CATEGORIES")}function MC(i){return ft(i,"categoryMatches")}function UC(i){return ft(i,"categoryMatchesMap")}function IC(i){return ft(i,"tokenTypeIdx")}const kC={buildUnableToPopLexerModeMessage(i){return`Unable to pop Lexer Mode after encountering Token ->${i.image}<- The Mode Stack is empty`},buildUnexpectedCharactersMessage(i,n,s,r,u,c){return`unexpected character: ->${i.charAt(n)}<- at offset: ${n}, skipped ${s} characters.`}};var Ft;(function(i){i[i.MISSING_PATTERN=0]="MISSING_PATTERN",i[i.INVALID_PATTERN=1]="INVALID_PATTERN",i[i.EOI_ANCHOR_FOUND=2]="EOI_ANCHOR_FOUND",i[i.UNSUPPORTED_FLAGS_FOUND=3]="UNSUPPORTED_FLAGS_FOUND",i[i.DUPLICATE_PATTERNS_FOUND=4]="DUPLICATE_PATTERNS_FOUND",i[i.INVALID_GROUP_TYPE_FOUND=5]="INVALID_GROUP_TYPE_FOUND",i[i.PUSH_MODE_DOES_NOT_EXIST=6]="PUSH_MODE_DOES_NOT_EXIST",i[i.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE=7]="MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE",i[i.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY=8]="MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY",i[i.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST=9]="MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST",i[i.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED=10]="LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED",i[i.SOI_ANCHOR_FOUND=11]="SOI_ANCHOR_FOUND",i[i.EMPTY_MATCH_PATTERN=12]="EMPTY_MATCH_PATTERN",i[i.NO_LINE_BREAKS_FLAGS=13]="NO_LINE_BREAKS_FLAGS",i[i.UNREACHABLE_PATTERN=14]="UNREACHABLE_PATTERN",i[i.IDENTIFY_TERMINATOR=15]="IDENTIFY_TERMINATOR",i[i.CUSTOM_LINE_BREAK=16]="CUSTOM_LINE_BREAK",i[i.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE=17]="MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE"})(Ft||(Ft={}));const vr={deferDefinitionErrorsHandling:!1,positionTracking:"full",lineTerminatorsPattern:/\n|\r\n?/g,lineTerminatorCharacters:[`
63
- `,"\r"],ensureOptimizations:!1,safeMode:!1,errorMessageProvider:kC,traceInitPerf:!1,skipValidations:!1,recoveryEnabled:!0};Object.freeze(vr);class me{constructor(n,s=vr){if(this.lexerDefinition=n,this.lexerDefinitionErrors=[],this.lexerDefinitionWarning=[],this.patternIdxToConfig={},this.charCodeToPatternIdxToConfig={},this.modes=[],this.emptyGroups={},this.trackStartLines=!0,this.trackEndLines=!0,this.hasCustom=!1,this.canModeBeOptimized={},this.TRACE_INIT=(u,c)=>{if(this.traceInitPerf===!0){this.traceInitIndent++;const h=new Array(this.traceInitIndent+1).join(" ");this.traceInitIndent<this.traceInitMaxIdent&&console.log(`${h}--> <${u}>`);const{time:_,value:d}=D0(c),g=_>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&g(`${h}<-- <${u}> time: ${_}ms`),this.traceInitIndent--,d}else return c()},typeof s=="boolean")throw Error(`The second argument to the Lexer constructor is now an ILexerConfig Object.
64
- a boolean 2nd argument is no longer supported`);this.config=Qe({},vr,s);const r=this.config.traceInitPerf;r===!0?(this.traceInitMaxIdent=1/0,this.traceInitPerf=!0):typeof r=="number"&&(this.traceInitMaxIdent=r,this.traceInitPerf=!0),this.traceInitIndent=-1,this.TRACE_INIT("Lexer Constructor",()=>{let u,c=!0;this.TRACE_INIT("Lexer Config handling",()=>{if(this.config.lineTerminatorsPattern===vr.lineTerminatorsPattern)this.config.lineTerminatorsPattern=OC;else if(this.config.lineTerminatorCharacters===vr.lineTerminatorCharacters)throw Error(`Error: Missing <lineTerminatorCharacters> property on the Lexer config.
65
- For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS`);if(s.safeMode&&s.ensureOptimizations)throw Error('"safeMode" and "ensureOptimizations" flags are mutually exclusive.');this.trackStartLines=/full|onlyStart/i.test(this.config.positionTracking),this.trackEndLines=/full/i.test(this.config.positionTracking),xt(n)?u={modes:{defaultMode:pe(n)},defaultMode:mr}:(c=!1,u=pe(n))}),this.config.skipValidations===!1&&(this.TRACE_INIT("performRuntimeChecks",()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(bC(u,this.trackStartLines,this.config.lineTerminatorCharacters))}),this.TRACE_INIT("performWarningRuntimeChecks",()=>{this.lexerDefinitionWarning=this.lexerDefinitionWarning.concat(TC(u,this.trackStartLines,this.config.lineTerminatorCharacters))})),u.modes=u.modes?u.modes:{},ht(u.modes,(_,d)=>{u.modes[d]=Fu(_,g=>li(g))});const h=_n(u.modes);if(ht(u.modes,(_,d)=>{this.TRACE_INIT(`Mode: <${d}> processing`,()=>{if(this.modes.push(d),this.config.skipValidations===!1&&this.TRACE_INIT("validatePatterns",()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(aC(_,h))}),jt(this.lexerDefinitionErrors)){zr(_);let g;this.TRACE_INIT("analyzeTokenTypes",()=>{g=iC(_,{lineTerminatorCharacters:this.config.lineTerminatorCharacters,positionTracking:s.positionTracking,ensureOptimizations:s.ensureOptimizations,safeMode:s.safeMode,tracer:this.TRACE_INIT})}),this.patternIdxToConfig[d]=g.patternIdxToConfig,this.charCodeToPatternIdxToConfig[d]=g.charCodeToPatternIdxToConfig,this.emptyGroups=Qe({},this.emptyGroups,g.emptyGroups),this.hasCustom=g.hasCustom||this.hasCustom,this.canModeBeOptimized[d]=g.canBeOptimized}})}),this.defaultMode=u.defaultMode,!jt(this.lexerDefinitionErrors)&&!this.config.deferDefinitionErrorsHandling){const d=rt(this.lexerDefinitionErrors,g=>g.message).join(`-----------------------
62
+ For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK`;throw Error("non exhaustive match")}function $0(i){return rt(i,s=>Ue(s)?s.charCodeAt(0):s)}function kf(i,n,s){i[n]===void 0?i[n]=[s]:i[n].push(s)}const vr=256;let vu=[];function Pi(i){return i<vr?i:vu[i]}function LC(){if(jt(vu)){vu=new Array(65536);for(let i=0;i<65536;i++)vu[i]=i>255?255+~~(i/255):i}}function zr(i,n){const s=i.tokenTypeIdx;return s===n.tokenTypeIdx?!0:n.isParent===!0&&n.categoryMatchesMap[s]===!0}function wu(i,n){return i.tokenTypeIdx===n.tokenTypeIdx}let ny=1;const K0={};function Br(i){const n=wC(i);MC(n),IC(n),UC(n),ht(n,s=>{s.isParent=s.categoryMatches.length>0})}function wC(i){let n=ge(i),s=i,r=!0;for(;r;){s=Ir(En(rt(s,c=>c.CATEGORIES)));const u=Xu(s,n);n=n.concat(u),jt(u)?r=!1:s=u}return n}function MC(i){ht(i,n=>{Y0(n)||(K0[ny]=n,n.tokenTypeIdx=ny++),iy(n)&&!xt(n.CATEGORIES)&&(n.CATEGORIES=[n.CATEGORIES]),iy(n)||(n.CATEGORIES=[]),kC(n)||(n.categoryMatches=[]),zC(n)||(n.categoryMatchesMap={})})}function UC(i){ht(i,n=>{n.categoryMatches=[],ht(n.categoryMatchesMap,(s,r)=>{n.categoryMatches.push(K0[r].tokenTypeIdx)})})}function IC(i){ht(i,n=>{V0([],n)})}function V0(i,n){ht(i,s=>{n.categoryMatchesMap[s.tokenTypeIdx]=!0}),ht(n.CATEGORIES,s=>{const r=i.concat(n);Se(r,s)||V0(r,s)})}function Y0(i){return ft(i,"tokenTypeIdx")}function iy(i){return ft(i,"CATEGORIES")}function kC(i){return ft(i,"categoryMatches")}function zC(i){return ft(i,"categoryMatchesMap")}function BC(i){return ft(i,"tokenTypeIdx")}const DC={buildUnableToPopLexerModeMessage(i){return`Unable to pop Lexer Mode after encountering Token ->${i.image}<- The Mode Stack is empty`},buildUnexpectedCharactersMessage(i,n,s,r,u,c){return`unexpected character: ->${i.charAt(n)}<- at offset: ${n}, skipped ${s} characters.`}};var Xt;(function(i){i[i.MISSING_PATTERN=0]="MISSING_PATTERN",i[i.INVALID_PATTERN=1]="INVALID_PATTERN",i[i.EOI_ANCHOR_FOUND=2]="EOI_ANCHOR_FOUND",i[i.UNSUPPORTED_FLAGS_FOUND=3]="UNSUPPORTED_FLAGS_FOUND",i[i.DUPLICATE_PATTERNS_FOUND=4]="DUPLICATE_PATTERNS_FOUND",i[i.INVALID_GROUP_TYPE_FOUND=5]="INVALID_GROUP_TYPE_FOUND",i[i.PUSH_MODE_DOES_NOT_EXIST=6]="PUSH_MODE_DOES_NOT_EXIST",i[i.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE=7]="MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE",i[i.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY=8]="MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY",i[i.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST=9]="MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST",i[i.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED=10]="LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED",i[i.SOI_ANCHOR_FOUND=11]="SOI_ANCHOR_FOUND",i[i.EMPTY_MATCH_PATTERN=12]="EMPTY_MATCH_PATTERN",i[i.NO_LINE_BREAKS_FLAGS=13]="NO_LINE_BREAKS_FLAGS",i[i.UNREACHABLE_PATTERN=14]="UNREACHABLE_PATTERN",i[i.IDENTIFY_TERMINATOR=15]="IDENTIFY_TERMINATOR",i[i.CUSTOM_LINE_BREAK=16]="CUSTOM_LINE_BREAK",i[i.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE=17]="MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE"})(Xt||(Xt={}));const Er={deferDefinitionErrorsHandling:!1,positionTracking:"full",lineTerminatorsPattern:/\n|\r\n?/g,lineTerminatorCharacters:[`
63
+ `,"\r"],ensureOptimizations:!1,safeMode:!1,errorMessageProvider:DC,traceInitPerf:!1,skipValidations:!1,recoveryEnabled:!0};Object.freeze(Er);class ye{constructor(n,s=Er){if(this.lexerDefinition=n,this.lexerDefinitionErrors=[],this.lexerDefinitionWarning=[],this.patternIdxToConfig={},this.charCodeToPatternIdxToConfig={},this.modes=[],this.emptyGroups={},this.trackStartLines=!0,this.trackEndLines=!0,this.hasCustom=!1,this.canModeBeOptimized={},this.TRACE_INIT=(u,c)=>{if(this.traceInitPerf===!0){this.traceInitIndent++;const h=new Array(this.traceInitIndent+1).join(" ");this.traceInitIndent<this.traceInitMaxIdent&&console.log(`${h}--> <${u}>`);const{time:_,value:d}=B0(c),g=_>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&g(`${h}<-- <${u}> time: ${_}ms`),this.traceInitIndent--,d}else return c()},typeof s=="boolean")throw Error(`The second argument to the Lexer constructor is now an ILexerConfig Object.
64
+ a boolean 2nd argument is no longer supported`);this.config=Qe({},Er,s);const r=this.config.traceInitPerf;r===!0?(this.traceInitMaxIdent=1/0,this.traceInitPerf=!0):typeof r=="number"&&(this.traceInitMaxIdent=r,this.traceInitPerf=!0),this.traceInitIndent=-1,this.TRACE_INIT("Lexer Constructor",()=>{let u,c=!0;this.TRACE_INIT("Lexer Config handling",()=>{if(this.config.lineTerminatorsPattern===Er.lineTerminatorsPattern)this.config.lineTerminatorsPattern=xC;else if(this.config.lineTerminatorCharacters===Er.lineTerminatorCharacters)throw Error(`Error: Missing <lineTerminatorCharacters> property on the Lexer config.
65
+ For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS`);if(s.safeMode&&s.ensureOptimizations)throw Error('"safeMode" and "ensureOptimizations" flags are mutually exclusive.');this.trackStartLines=/full|onlyStart/i.test(this.config.positionTracking),this.trackEndLines=/full/i.test(this.config.positionTracking),xt(n)?u={modes:{defaultMode:ge(n)},defaultMode:yr}:(c=!1,u=ge(n))}),this.config.skipValidations===!1&&(this.TRACE_INIT("performRuntimeChecks",()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(AC(u,this.trackStartLines,this.config.lineTerminatorCharacters))}),this.TRACE_INIT("performWarningRuntimeChecks",()=>{this.lexerDefinitionWarning=this.lexerDefinitionWarning.concat(OC(u,this.trackStartLines,this.config.lineTerminatorCharacters))})),u.modes=u.modes?u.modes:{},ht(u.modes,(_,d)=>{u.modes[d]=Qu(_,g=>li(g))});const h=_n(u.modes);if(ht(u.modes,(_,d)=>{this.TRACE_INIT(`Mode: <${d}> processing`,()=>{if(this.modes.push(d),this.config.skipValidations===!1&&this.TRACE_INIT("validatePatterns",()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(lC(_,h))}),jt(this.lexerDefinitionErrors)){Br(_);let g;this.TRACE_INIT("analyzeTokenTypes",()=>{g=rC(_,{lineTerminatorCharacters:this.config.lineTerminatorCharacters,positionTracking:s.positionTracking,ensureOptimizations:s.ensureOptimizations,safeMode:s.safeMode,tracer:this.TRACE_INIT})}),this.patternIdxToConfig[d]=g.patternIdxToConfig,this.charCodeToPatternIdxToConfig[d]=g.charCodeToPatternIdxToConfig,this.emptyGroups=Qe({},this.emptyGroups,g.emptyGroups),this.hasCustom=g.hasCustom||this.hasCustom,this.canModeBeOptimized[d]=g.canBeOptimized}})}),this.defaultMode=u.defaultMode,!jt(this.lexerDefinitionErrors)&&!this.config.deferDefinitionErrorsHandling){const d=rt(this.lexerDefinitionErrors,g=>g.message).join(`-----------------------
66
66
  `);throw new Error(`Errors detected in definition of Lexer:
67
- `+d)}ht(this.lexerDefinitionWarning,_=>{B0(_.message)}),this.TRACE_INIT("Choosing sub-methods implementations",()=>{if(q0?(this.chopInput=cs,this.match=this.matchWithTest):(this.updateLastIndex=ae,this.match=this.matchWithExec),c&&(this.handleModes=ae),this.trackStartLines===!1&&(this.computeNewColumn=cs),this.trackEndLines===!1&&(this.updateTokenEndLineColumnLocation=ae),/full/i.test(this.config.positionTracking))this.createTokenInstance=this.createFullToken;else if(/onlyStart/i.test(this.config.positionTracking))this.createTokenInstance=this.createStartOnlyToken;else if(/onlyOffset/i.test(this.config.positionTracking))this.createTokenInstance=this.createOffsetOnlyToken;else throw Error(`Invalid <positionTracking> config option: "${this.config.positionTracking}"`);this.hasCustom?(this.addToken=this.addTokenUsingPush,this.handlePayload=this.handlePayloadWithCustom):(this.addToken=this.addTokenUsingMemberAccess,this.handlePayload=this.handlePayloadNoCustom)}),this.TRACE_INIT("Failed Optimization Warnings",()=>{const _=Ze(this.canModeBeOptimized,(d,g,b)=>(g===!1&&d.push(b),d),[]);if(s.ensureOptimizations&&!jt(_))throw Error(`Lexer Modes: < ${_.join(", ")} > cannot be optimized.
67
+ `+d)}ht(this.lexerDefinitionWarning,_=>{z0(_.message)}),this.TRACE_INIT("Choosing sub-methods implementations",()=>{if(G0?(this.chopInput=fs,this.match=this.matchWithTest):(this.updateLastIndex=ae,this.match=this.matchWithExec),c&&(this.handleModes=ae),this.trackStartLines===!1&&(this.computeNewColumn=fs),this.trackEndLines===!1&&(this.updateTokenEndLineColumnLocation=ae),/full/i.test(this.config.positionTracking))this.createTokenInstance=this.createFullToken;else if(/onlyStart/i.test(this.config.positionTracking))this.createTokenInstance=this.createStartOnlyToken;else if(/onlyOffset/i.test(this.config.positionTracking))this.createTokenInstance=this.createOffsetOnlyToken;else throw Error(`Invalid <positionTracking> config option: "${this.config.positionTracking}"`);this.hasCustom?(this.addToken=this.addTokenUsingPush,this.handlePayload=this.handlePayloadWithCustom):(this.addToken=this.addTokenUsingMemberAccess,this.handlePayload=this.handlePayloadNoCustom)}),this.TRACE_INIT("Failed Optimization Warnings",()=>{const _=Ze(this.canModeBeOptimized,(d,g,b)=>(g===!1&&d.push(b),d),[]);if(s.ensureOptimizations&&!jt(_))throw Error(`Lexer Modes: < ${_.join(", ")} > cannot be optimized.
68
68
  Disable the "ensureOptimizations" lexer config flag to silently ignore this and run the lexer in an un-optimized mode.
69
- Or inspect the console log for details on how to resolve these issues.`)}),this.TRACE_INIT("clearRegExpParserCache",()=>{Jx()}),this.TRACE_INIT("toFastProperties",()=>{j0(this)})})}tokenize(n,s=this.defaultMode){if(!jt(this.lexerDefinitionErrors)){const u=rt(this.lexerDefinitionErrors,c=>c.message).join(`-----------------------
69
+ Or inspect the console log for details on how to resolve these issues.`)}),this.TRACE_INIT("clearRegExpParserCache",()=>{nC()}),this.TRACE_INIT("toFastProperties",()=>{D0(this)})})}tokenize(n,s=this.defaultMode){if(!jt(this.lexerDefinitionErrors)){const u=rt(this.lexerDefinitionErrors,c=>c.message).join(`-----------------------
70
70
  `);throw new Error(`Unable to Tokenize because Errors detected in definition of Lexer:
71
- `+u)}return this.tokenizeInternal(n,s)}tokenizeInternal(n,s){let r,u,c,h,_,d,g,b,E,A,j,H,X,S,v;const T=n,w=T.length;let I=0,F=0;const U=this.hasCustom?0:Math.floor(n.length/10),L=new Array(U),C=[];let Y=this.trackStartLines?1:void 0,m=this.trackStartLines?1:void 0;const P=SC(this.emptyGroups),G=this.trackStartLines,et=this.config.lineTerminatorsPattern;let at=0,J=[],M=[];const Q=[],it=[];Object.freeze(it);let yt;function Ot(){return J}function N(ut){const gt=ji(ut),Kt=M[gt];return Kt===void 0?it:Kt}const $=ut=>{if(Q.length===1&&ut.tokenType.PUSH_MODE===void 0){const gt=this.config.errorMessageProvider.buildUnableToPopLexerModeMessage(ut);C.push({offset:ut.startOffset,line:ut.startLine,column:ut.startColumn,length:ut.image.length,message:gt})}else{Q.pop();const gt=da(Q);J=this.patternIdxToConfig[gt],M=this.charCodeToPatternIdxToConfig[gt],at=J.length;const Kt=this.canModeBeOptimized[gt]&&this.config.safeMode===!1;M&&Kt?yt=N:yt=Ot}};function Z(ut){Q.push(ut),M=this.charCodeToPatternIdxToConfig[ut],J=this.patternIdxToConfig[ut],at=J.length,at=J.length;const gt=this.canModeBeOptimized[ut]&&this.config.safeMode===!1;M&&gt?yt=N:yt=Ot}Z.call(this,s);let W;const _t=this.config.recoveryEnabled;for(;I<w;){d=null;const ut=T.charCodeAt(I),gt=yt(ut),Kt=gt.length;for(r=0;r<Kt;r++){W=gt[r];const Nt=W.pattern;g=null;const ye=W.short;if(ye!==!1?ut===ye&&(d=Nt):W.isCustom===!0?(v=Nt.exec(T,I,L,P),v!==null?(d=v[0],v.payload!==void 0&&(g=v.payload)):d=null):(this.updateLastIndex(Nt,I),d=this.match(Nt,n,I)),d!==null){if(_=W.longerAlt,_!==void 0){const ke=_.length;for(c=0;c<ke;c++){const ze=J[_[c]],Rn=ze.pattern;if(b=null,ze.isCustom===!0?(v=Rn.exec(T,I,L,P),v!==null?(h=v[0],v.payload!==void 0&&(b=v.payload)):h=null):(this.updateLastIndex(Rn,I),h=this.match(Rn,n,I)),h&&h.length>d.length){d=h,g=b,W=ze;break}}}break}}if(d!==null){if(E=d.length,A=W.group,A!==void 0&&(j=W.tokenTypeIdx,H=this.createTokenInstance(d,I,j,W.tokenType,Y,m,E),this.handlePayload(H,g),A===!1?F=this.addToken(L,F,H):P[A].push(H)),n=this.chopInput(n,E),I=I+E,m=this.computeNewColumn(m,E),G===!0&&W.canLineTerminator===!0){let Nt=0,ye,ke;et.lastIndex=0;do ye=et.test(d),ye===!0&&(ke=et.lastIndex-1,Nt++);while(ye===!0);Nt!==0&&(Y=Y+Nt,m=E-ke,this.updateTokenEndLineColumnLocation(H,A,ke,Nt,Y,m,E))}this.handleModes(W,$,Z,H)}else{const Nt=I,ye=Y,ke=m;let ze=_t===!1;for(;ze===!1&&I<w;)for(n=this.chopInput(n,1),I++,u=0;u<at;u++){const Rn=J[u],gn=Rn.pattern,Ea=Rn.short;if(Ea!==!1?T.charCodeAt(I)===Ea&&(ze=!0):Rn.isCustom===!0?ze=gn.exec(T,I,L,P)!==null:(this.updateLastIndex(gn,I),ze=gn.exec(n)!==null),ze===!0)break}if(X=I-Nt,m=this.computeNewColumn(m,X),S=this.config.errorMessageProvider.buildUnexpectedCharactersMessage(T,Nt,X,ye,ke,da(Q)),C.push({offset:Nt,line:ye,column:ke,length:X,message:S}),_t===!1)break}}return this.hasCustom||(L.length=F),{tokens:L,groups:P,errors:C}}handleModes(n,s,r,u){if(n.pop===!0){const c=n.push;s(u),c!==void 0&&r.call(this,c)}else n.push!==void 0&&r.call(this,n.push)}chopInput(n,s){return n.substring(s)}updateLastIndex(n,s){n.lastIndex=s}updateTokenEndLineColumnLocation(n,s,r,u,c,h,_){let d,g;s!==void 0&&(d=r===_-1,g=d?-1:0,u===1&&d===!0||(n.endLine=c+g,n.endColumn=h-1+-g))}computeNewColumn(n,s){return n+s}createOffsetOnlyToken(n,s,r,u){return{image:n,startOffset:s,tokenTypeIdx:r,tokenType:u}}createStartOnlyToken(n,s,r,u,c,h){return{image:n,startOffset:s,startLine:c,startColumn:h,tokenTypeIdx:r,tokenType:u}}createFullToken(n,s,r,u,c,h,_){return{image:n,startOffset:s,endOffset:s+_-1,startLine:c,endLine:c,startColumn:h,endColumn:h+_-1,tokenTypeIdx:r,tokenType:u}}addTokenUsingPush(n,s,r){return n.push(r),s}addTokenUsingMemberAccess(n,s,r){return n[s]=r,s++,s}handlePayloadNoCustom(n,s){}handlePayloadWithCustom(n,s){s!==null&&(n.payload=s)}matchWithTest(n,s,r){return n.test(s)===!0?s.substring(r,n.lastIndex):null}matchWithExec(n,s){const r=n.exec(s);return r!==null?r[0]:null}}me.SKIPPED="This marks a skipped Token pattern, this means each token identified by it will be consumed and then thrown into oblivion, this can be used to for example to completely ignore whitespace.";me.NA=/NOT_APPLICABLE/;function Sr(i){return F0(i)?i.LABEL:i.name}function F0(i){return Ue(i.LABEL)&&i.LABEL!==""}const zC="parent",sy="categories",ry="label",ly="group",uy="push_mode",oy="pop_mode",cy="longer_alt",fy="line_breaks",hy="start_chars_hint";function Et(i){return BC(i)}function BC(i){const n=i.pattern,s={};if(s.name=i.name,li(n)||(s.PATTERN=n),ft(i,zC))throw`The parent property is no longer supported.
72
- See: https://github.com/chevrotain/chevrotain/issues/564#issuecomment-349062346 for details.`;return ft(i,sy)&&(s.CATEGORIES=i[sy]),zr([s]),ft(i,ry)&&(s.LABEL=i[ry]),ft(i,ly)&&(s.GROUP=i[ly]),ft(i,oy)&&(s.POP_MODE=i[oy]),ft(i,uy)&&(s.PUSH_MODE=i[uy]),ft(i,cy)&&(s.LONGER_ALT=i[cy]),ft(i,fy)&&(s.LINE_BREAKS=i[fy]),ft(i,hy)&&(s.START_CHARS_HINT=i[hy]),s}const pa=Et({name:"EOF",pattern:me.NA});zr([pa]);function Kh(i,n,s,r,u,c,h,_){return{image:n,startOffset:s,endOffset:r,startLine:u,endLine:c,startColumn:h,endColumn:_,tokenTypeIdx:i.tokenTypeIdx,tokenType:i}}function DC(i,n){return kr(i,n)}const Q0={buildMismatchTokenMessage({expected:i,actual:n,previous:s,ruleName:r}){return`Expecting ${F0(i)?`--> ${Sr(i)} <--`:`token of type --> ${i.name} <--`} but found --> '${n.image}' <--`},buildNotAllInputParsedMessage({firstRedundant:i,ruleName:n}){return"Redundant input, expecting EOF but found: "+i.image},buildNoViableAltMessage({expectedPathsPerAlt:i,actual:n,previous:s,customUserDescription:r,ruleName:u}){const c="Expecting: ",_=`
73
- but found: '`+Sn(n).image+"'";if(r)return c+r+_;{const d=Ze(i,(A,j)=>A.concat(j),[]),g=rt(d,A=>`[${rt(A,j=>Sr(j)).join(", ")}]`),E=`one of these possible Token sequences:
71
+ `+u)}return this.tokenizeInternal(n,s)}tokenizeInternal(n,s){let r,u,c,h,_,d,g,b,E,A,j,H,F,S,v;const T=n,w=T.length;let I=0,X=0;const U=this.hasCustom?0:Math.floor(n.length/10),L=new Array(U),C=[];let Y=this.trackStartLines?1:void 0,m=this.trackStartLines?1:void 0;const P=NC(this.emptyGroups),G=this.trackStartLines,et=this.config.lineTerminatorsPattern;let at=0,J=[],M=[];const Q=[],it=[];Object.freeze(it);let vt;function Ot(){return J}function N(ut){const gt=Pi(ut),Kt=M[gt];return Kt===void 0?it:Kt}const $=ut=>{if(Q.length===1&&ut.tokenType.PUSH_MODE===void 0){const gt=this.config.errorMessageProvider.buildUnableToPopLexerModeMessage(ut);C.push({offset:ut.startOffset,line:ut.startLine,column:ut.startColumn,length:ut.image.length,message:gt})}else{Q.pop();const gt=da(Q);J=this.patternIdxToConfig[gt],M=this.charCodeToPatternIdxToConfig[gt],at=J.length;const Kt=this.canModeBeOptimized[gt]&&this.config.safeMode===!1;M&&Kt?vt=N:vt=Ot}};function Z(ut){Q.push(ut),M=this.charCodeToPatternIdxToConfig[ut],J=this.patternIdxToConfig[ut],at=J.length,at=J.length;const gt=this.canModeBeOptimized[ut]&&this.config.safeMode===!1;M&&gt?vt=N:vt=Ot}Z.call(this,s);let W;const _t=this.config.recoveryEnabled;for(;I<w;){d=null;const ut=T.charCodeAt(I),gt=vt(ut),Kt=gt.length;for(r=0;r<Kt;r++){W=gt[r];const Nt=W.pattern;g=null;const ve=W.short;if(ve!==!1?ut===ve&&(d=Nt):W.isCustom===!0?(v=Nt.exec(T,I,L,P),v!==null?(d=v[0],v.payload!==void 0&&(g=v.payload)):d=null):(this.updateLastIndex(Nt,I),d=this.match(Nt,n,I)),d!==null){if(_=W.longerAlt,_!==void 0){const ke=_.length;for(c=0;c<ke;c++){const ze=J[_[c]],Rn=ze.pattern;if(b=null,ze.isCustom===!0?(v=Rn.exec(T,I,L,P),v!==null?(h=v[0],v.payload!==void 0&&(b=v.payload)):h=null):(this.updateLastIndex(Rn,I),h=this.match(Rn,n,I)),h&&h.length>d.length){d=h,g=b,W=ze;break}}}break}}if(d!==null){if(E=d.length,A=W.group,A!==void 0&&(j=W.tokenTypeIdx,H=this.createTokenInstance(d,I,j,W.tokenType,Y,m,E),this.handlePayload(H,g),A===!1?X=this.addToken(L,X,H):P[A].push(H)),n=this.chopInput(n,E),I=I+E,m=this.computeNewColumn(m,E),G===!0&&W.canLineTerminator===!0){let Nt=0,ve,ke;et.lastIndex=0;do ve=et.test(d),ve===!0&&(ke=et.lastIndex-1,Nt++);while(ve===!0);Nt!==0&&(Y=Y+Nt,m=E-ke,this.updateTokenEndLineColumnLocation(H,A,ke,Nt,Y,m,E))}this.handleModes(W,$,Z,H)}else{const Nt=I,ve=Y,ke=m;let ze=_t===!1;for(;ze===!1&&I<w;)for(n=this.chopInput(n,1),I++,u=0;u<at;u++){const Rn=J[u],gn=Rn.pattern,Ea=Rn.short;if(Ea!==!1?T.charCodeAt(I)===Ea&&(ze=!0):Rn.isCustom===!0?ze=gn.exec(T,I,L,P)!==null:(this.updateLastIndex(gn,I),ze=gn.exec(n)!==null),ze===!0)break}if(F=I-Nt,m=this.computeNewColumn(m,F),S=this.config.errorMessageProvider.buildUnexpectedCharactersMessage(T,Nt,F,ve,ke,da(Q)),C.push({offset:Nt,line:ve,column:ke,length:F,message:S}),_t===!1)break}}return this.hasCustom||(L.length=X),{tokens:L,groups:P,errors:C}}handleModes(n,s,r,u){if(n.pop===!0){const c=n.push;s(u),c!==void 0&&r.call(this,c)}else n.push!==void 0&&r.call(this,n.push)}chopInput(n,s){return n.substring(s)}updateLastIndex(n,s){n.lastIndex=s}updateTokenEndLineColumnLocation(n,s,r,u,c,h,_){let d,g;s!==void 0&&(d=r===_-1,g=d?-1:0,u===1&&d===!0||(n.endLine=c+g,n.endColumn=h-1+-g))}computeNewColumn(n,s){return n+s}createOffsetOnlyToken(n,s,r,u){return{image:n,startOffset:s,tokenTypeIdx:r,tokenType:u}}createStartOnlyToken(n,s,r,u,c,h){return{image:n,startOffset:s,startLine:c,startColumn:h,tokenTypeIdx:r,tokenType:u}}createFullToken(n,s,r,u,c,h,_){return{image:n,startOffset:s,endOffset:s+_-1,startLine:c,endLine:c,startColumn:h,endColumn:h+_-1,tokenTypeIdx:r,tokenType:u}}addTokenUsingPush(n,s,r){return n.push(r),s}addTokenUsingMemberAccess(n,s,r){return n[s]=r,s++,s}handlePayloadNoCustom(n,s){}handlePayloadWithCustom(n,s){s!==null&&(n.payload=s)}matchWithTest(n,s,r){return n.test(s)===!0?s.substring(r,n.lastIndex):null}matchWithExec(n,s){const r=n.exec(s);return r!==null?r[0]:null}}ye.SKIPPED="This marks a skipped Token pattern, this means each token identified by it will be consumed and then thrown into oblivion, this can be used to for example to completely ignore whitespace.";ye.NA=/NOT_APPLICABLE/;function Ar(i){return F0(i)?i.LABEL:i.name}function F0(i){return Ue(i.LABEL)&&i.LABEL!==""}const jC="parent",ay="categories",sy="label",ry="group",ly="push_mode",uy="pop_mode",oy="longer_alt",cy="line_breaks",fy="start_chars_hint";function mt(i){return PC(i)}function PC(i){const n=i.pattern,s={};if(s.name=i.name,li(n)||(s.PATTERN=n),ft(i,jC))throw`The parent property is no longer supported.
72
+ See: https://github.com/chevrotain/chevrotain/issues/564#issuecomment-349062346 for details.`;return ft(i,ay)&&(s.CATEGORIES=i[ay]),Br([s]),ft(i,sy)&&(s.LABEL=i[sy]),ft(i,ry)&&(s.GROUP=i[ry]),ft(i,uy)&&(s.POP_MODE=i[uy]),ft(i,ly)&&(s.PUSH_MODE=i[ly]),ft(i,oy)&&(s.LONGER_ALT=i[oy]),ft(i,cy)&&(s.LINE_BREAKS=i[cy]),ft(i,fy)&&(s.START_CHARS_HINT=i[fy]),s}const pa=mt({name:"EOF",pattern:ye.NA});Br([pa]);function $h(i,n,s,r,u,c,h,_){return{image:n,startOffset:s,endOffset:r,startLine:u,endLine:c,startColumn:h,endColumn:_,tokenTypeIdx:i.tokenTypeIdx,tokenType:i}}function GC(i,n){return zr(i,n)}const X0={buildMismatchTokenMessage({expected:i,actual:n,previous:s,ruleName:r}){return`Expecting ${F0(i)?`--> ${Ar(i)} <--`:`token of type --> ${i.name} <--`} but found --> '${n.image}' <--`},buildNotAllInputParsedMessage({firstRedundant:i,ruleName:n}){return"Redundant input, expecting EOF but found: "+i.image},buildNoViableAltMessage({expectedPathsPerAlt:i,actual:n,previous:s,customUserDescription:r,ruleName:u}){const c="Expecting: ",_=`
73
+ but found: '`+Sn(n).image+"'";if(r)return c+r+_;{const d=Ze(i,(A,j)=>A.concat(j),[]),g=rt(d,A=>`[${rt(A,j=>Ar(j)).join(", ")}]`),E=`one of these possible Token sequences:
74
74
  ${rt(g,(A,j)=>` ${j+1}. ${A}`).join(`
75
75
  `)}`;return c+E+_}},buildEarlyExitMessage({expectedIterationPaths:i,actual:n,customUserDescription:s,ruleName:r}){const u="Expecting: ",h=`
76
76
  but found: '`+Sn(n).image+"'";if(s)return u+s+h;{const d=`expecting at least one iteration which starts with one of these possible Token sequences::
77
- <${rt(i,g=>`[${rt(g,b=>Sr(b)).join(",")}]`).join(" ,")}>`;return u+d+h}}};Object.freeze(Q0);const jC={buildRuleNotFoundError(i,n){return"Invalid grammar, reference to a rule which is not defined: ->"+n.nonTerminalName+`<-
77
+ <${rt(i,g=>`[${rt(g,b=>Ar(b)).join(",")}]`).join(" ,")}>`;return u+d+h}}};Object.freeze(X0);const qC={buildRuleNotFoundError(i,n){return"Invalid grammar, reference to a rule which is not defined: ->"+n.nonTerminalName+`<-
78
78
  inside top level rule: ->`+i.name+"<-"}},oa={buildDuplicateFoundError(i,n){function s(b){return b instanceof $t?b.terminalType.name:b instanceof We?b.nonTerminalName:""}const r=i.name,u=Sn(n),c=u.idx,h=Un(u),_=s(u),d=c>0;let g=`->${h}${d?c:""}<- ${_?`with argument: ->${_}<-`:""}
79
79
  appears more than once (${n.length} times) in the top level rule: ->${r}<-.
80
80
  For further details see: https://chevrotain.io/docs/FAQ.html#NUMERICAL_SUFFIXES
@@ -83,11 +83,11 @@ inside top level rule: ->`+i.name+"<-"}},oa={buildDuplicateFoundError(i,n){funct
83
83
  The grammar has both a Terminal(Token) and a Non-Terminal(Rule) named: <${i.name}>.
84
84
  To resolve this make sure each Terminal and Non-Terminal names are unique
85
85
  This is easy to accomplish by using the convention that Terminal names start with an uppercase letter
86
- and Non-Terminal names start with a lower case letter.`},buildAlternationPrefixAmbiguityError(i){const n=rt(i.prefixPath,u=>Sr(u)).join(", "),s=i.alternation.idx===0?"":i.alternation.idx;return`Ambiguous alternatives: <${i.ambiguityIndices.join(" ,")}> due to common lookahead prefix
86
+ and Non-Terminal names start with a lower case letter.`},buildAlternationPrefixAmbiguityError(i){const n=rt(i.prefixPath,u=>Ar(u)).join(", "),s=i.alternation.idx===0?"":i.alternation.idx;return`Ambiguous alternatives: <${i.ambiguityIndices.join(" ,")}> due to common lookahead prefix
87
87
  in <OR${s}> inside <${i.topLevelRule.name}> Rule,
88
88
  <${n}> may appears as a prefix path in all these alternatives.
89
89
  See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#COMMON_PREFIX
90
- For Further details.`},buildAlternationAmbiguityError(i){const n=rt(i.prefixPath,u=>Sr(u)).join(", "),s=i.alternation.idx===0?"":i.alternation.idx;let r=`Ambiguous Alternatives Detected: <${i.ambiguityIndices.join(" ,")}> in <OR${s}> inside <${i.topLevelRule.name}> Rule,
90
+ For Further details.`},buildAlternationAmbiguityError(i){const n=rt(i.prefixPath,u=>Ar(u)).join(", "),s=i.alternation.idx===0?"":i.alternation.idx;let r=`Ambiguous Alternatives Detected: <${i.ambiguityIndices.join(" ,")}> in <OR${s}> inside <${i.topLevelRule.name}> Rule,
91
91
  <${n}> may appears as a prefix path in all these alternatives.
92
92
  `;return r=r+`See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES
93
93
  For Further details.`,r},buildEmptyRepetitionError(i){let n=Un(i.repetition);return i.repetition.idx!==0&&(n+=i.repetition.idx),`The repetition <${n}> within Rule <${i.topLevelRule.name}> can never consume any tokens.
@@ -99,77 +99,77 @@ rule: <${n}> can be invoked from itself (directly or indirectly)
99
99
  without consuming any Tokens. The grammar path that causes this is:
100
100
  ${r}
101
101
  To fix this refactor your grammar to remove the left recursion.
102
- see: https://en.wikipedia.org/wiki/LL_parser#Left_factoring.`},buildInvalidRuleNameError(i){return"deprecated"},buildDuplicateRuleNameError(i){let n;return i.topLevelRule instanceof ds?n=i.topLevelRule.name:n=i.topLevelRule,`Duplicate definition, rule: ->${n}<- is already defined in the grammar: ->${i.grammarName}<-`}};function PC(i,n){const s=new GC(i,n);return s.resolveRefs(),s.errors}class GC extends _s{constructor(n,s){super(),this.nameToTopRule=n,this.errMsgProvider=s,this.errors=[]}resolveRefs(){ht(se(this.nameToTopRule),n=>{this.currTopLevel=n,n.accept(this)})}visitNonTerminal(n){const s=this.nameToTopRule[n.nonTerminalName];if(s)n.referencedRule=s;else{const r=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,n);this.errors.push({message:r,type:be.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:n.nonTerminalName})}}}class qC extends Qu{constructor(n,s){super(),this.topProd=n,this.path=s,this.possibleTokTypes=[],this.nextProductionName="",this.nextProductionOccurrence=0,this.found=!1,this.isAtEndOfPath=!1}startWalking(){if(this.found=!1,this.path.ruleStack[0]!==this.topProd.name)throw Error("The path does not start with the walker's top Rule!");return this.ruleStack=pe(this.path.ruleStack).reverse(),this.occurrenceStack=pe(this.path.occurrenceStack).reverse(),this.ruleStack.pop(),this.occurrenceStack.pop(),this.updateExpectedNext(),this.walk(this.topProd),this.possibleTokTypes}walk(n,s=[]){this.found||super.walk(n,s)}walkProdRef(n,s,r){if(n.referencedRule.name===this.nextProductionName&&n.idx===this.nextProductionOccurrence){const u=s.concat(r);this.updateExpectedNext(),this.walk(n.referencedRule,u)}}updateExpectedNext(){jt(this.ruleStack)?(this.nextProductionName="",this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())}}class HC extends qC{constructor(n,s){super(n,s),this.path=s,this.nextTerminalName="",this.nextTerminalOccurrence=0,this.nextTerminalName=this.path.lastTok.name,this.nextTerminalOccurrence=this.path.lastTokOccurrence}walkTerminal(n,s,r){if(this.isAtEndOfPath&&n.terminalType.name===this.nextTerminalName&&n.idx===this.nextTerminalOccurrence&&!this.found){const u=s.concat(r),c=new Ie({definition:u});this.possibleTokTypes=Ir(c),this.found=!0}}}class Wu extends Qu{constructor(n,s){super(),this.topRule=n,this.occurrence=s,this.result={token:void 0,occurrence:void 0,isEndOfRule:void 0}}startWalking(){return this.walk(this.topRule),this.result}}class $C extends Wu{walkMany(n,s,r){if(n.idx===this.occurrence){const u=Sn(s.concat(r));this.result.isEndOfRule=u===void 0,u instanceof $t&&(this.result.token=u.terminalType,this.result.occurrence=u.idx)}else super.walkMany(n,s,r)}}class dy extends Wu{walkManySep(n,s,r){if(n.idx===this.occurrence){const u=Sn(s.concat(r));this.result.isEndOfRule=u===void 0,u instanceof $t&&(this.result.token=u.terminalType,this.result.occurrence=u.idx)}else super.walkManySep(n,s,r)}}class KC extends Wu{walkAtLeastOne(n,s,r){if(n.idx===this.occurrence){const u=Sn(s.concat(r));this.result.isEndOfRule=u===void 0,u instanceof $t&&(this.result.token=u.terminalType,this.result.occurrence=u.idx)}else super.walkAtLeastOne(n,s,r)}}class _y extends Wu{walkAtLeastOneSep(n,s,r){if(n.idx===this.occurrence){const u=Sn(s.concat(r));this.result.isEndOfRule=u===void 0,u instanceof $t&&(this.result.token=u.terminalType,this.result.occurrence=u.idx)}else super.walkAtLeastOneSep(n,s,r)}}function oh(i,n,s=[]){s=pe(s);let r=[],u=0;function c(_){return _.concat(_e(i,u+1))}function h(_){const d=oh(c(_),n,s);return r.concat(d)}for(;s.length<n&&u<i.length;){const _=i[u];if(_ instanceof Ie)return h(_.definition);if(_ instanceof We)return h(_.definition);if(_ instanceof Me)r=h(_.definition);else if(_ instanceof jn){const d=_.definition.concat([new re({definition:_.definition})]);return h(d)}else if(_ instanceof Pn){const d=[new Ie({definition:_.definition}),new re({definition:[new $t({terminalType:_.separator})].concat(_.definition)})];return h(d)}else if(_ instanceof On){const d=_.definition.concat([new re({definition:[new $t({terminalType:_.separator})].concat(_.definition)})]);r=h(d)}else if(_ instanceof re){const d=_.definition.concat([new re({definition:_.definition})]);r=h(d)}else{if(_ instanceof Nn)return ht(_.definition,d=>{jt(d.definition)===!1&&(r=h(d.definition))}),r;if(_ instanceof $t)s.push(_.terminalType);else throw Error("non exhaustive match")}u++}return r.push({partialPath:s,suffixDef:_e(i,u)}),r}function Z0(i,n,s,r){const u="EXIT_NONE_TERMINAL",c=[u],h="EXIT_ALTERNATIVE";let _=!1;const d=n.length,g=d-r-1,b=[],E=[];for(E.push({idx:-1,def:i,ruleStack:[],occurrenceStack:[]});!jt(E);){const A=E.pop();if(A===h){_&&da(E).idx<=g&&E.pop();continue}const j=A.def,H=A.idx,X=A.ruleStack,S=A.occurrenceStack;if(jt(j))continue;const v=j[0];if(v===u){const T={idx:H,def:_e(j),ruleStack:xr(X),occurrenceStack:xr(S)};E.push(T)}else if(v instanceof $t)if(H<d-1){const T=H+1,w=n[T];if(s(w,v.terminalType)){const I={idx:T,def:_e(j),ruleStack:X,occurrenceStack:S};E.push(I)}}else if(H===d-1)b.push({nextTokenType:v.terminalType,nextTokenOccurrence:v.idx,ruleStack:X,occurrenceStack:S}),_=!0;else throw Error("non exhaustive match");else if(v instanceof We){const T=pe(X);T.push(v.nonTerminalName);const w=pe(S);w.push(v.idx);const I={idx:H,def:v.definition.concat(c,_e(j)),ruleStack:T,occurrenceStack:w};E.push(I)}else if(v instanceof Me){const T={idx:H,def:_e(j),ruleStack:X,occurrenceStack:S};E.push(T),E.push(h);const w={idx:H,def:v.definition.concat(_e(j)),ruleStack:X,occurrenceStack:S};E.push(w)}else if(v instanceof jn){const T=new re({definition:v.definition,idx:v.idx}),w=v.definition.concat([T],_e(j)),I={idx:H,def:w,ruleStack:X,occurrenceStack:S};E.push(I)}else if(v instanceof Pn){const T=new $t({terminalType:v.separator}),w=new re({definition:[T].concat(v.definition),idx:v.idx}),I=v.definition.concat([w],_e(j)),F={idx:H,def:I,ruleStack:X,occurrenceStack:S};E.push(F)}else if(v instanceof On){const T={idx:H,def:_e(j),ruleStack:X,occurrenceStack:S};E.push(T),E.push(h);const w=new $t({terminalType:v.separator}),I=new re({definition:[w].concat(v.definition),idx:v.idx}),F=v.definition.concat([I],_e(j)),U={idx:H,def:F,ruleStack:X,occurrenceStack:S};E.push(U)}else if(v instanceof re){const T={idx:H,def:_e(j),ruleStack:X,occurrenceStack:S};E.push(T),E.push(h);const w=new re({definition:v.definition,idx:v.idx}),I=v.definition.concat([w],_e(j)),F={idx:H,def:I,ruleStack:X,occurrenceStack:S};E.push(F)}else if(v instanceof Nn)for(let T=v.definition.length-1;T>=0;T--){const w=v.definition[T],I={idx:H,def:w.definition.concat(_e(j)),ruleStack:X,occurrenceStack:S};E.push(I),E.push(h)}else if(v instanceof Ie)E.push({idx:H,def:v.definition.concat(_e(j)),ruleStack:X,occurrenceStack:S});else if(v instanceof ds)E.push(VC(v,H,X,S));else throw Error("non exhaustive match")}return b}function VC(i,n,s,r){const u=pe(s);u.push(i.name);const c=pe(r);return c.push(1),{idx:n,def:i.definition,ruleStack:u,occurrenceStack:c}}var Xt;(function(i){i[i.OPTION=0]="OPTION",i[i.REPETITION=1]="REPETITION",i[i.REPETITION_MANDATORY=2]="REPETITION_MANDATORY",i[i.REPETITION_MANDATORY_WITH_SEPARATOR=3]="REPETITION_MANDATORY_WITH_SEPARATOR",i[i.REPETITION_WITH_SEPARATOR=4]="REPETITION_WITH_SEPARATOR",i[i.ALTERNATION=5]="ALTERNATION"})(Xt||(Xt={}));function W0(i){if(i instanceof Me||i==="Option")return Xt.OPTION;if(i instanceof re||i==="Repetition")return Xt.REPETITION;if(i instanceof jn||i==="RepetitionMandatory")return Xt.REPETITION_MANDATORY;if(i instanceof Pn||i==="RepetitionMandatoryWithSeparator")return Xt.REPETITION_MANDATORY_WITH_SEPARATOR;if(i instanceof On||i==="RepetitionWithSeparator")return Xt.REPETITION_WITH_SEPARATOR;if(i instanceof Nn||i==="Alternation")return Xt.ALTERNATION;throw Error("non exhaustive match")}function YC(i,n,s,r,u,c){const h=Vh(i,n,s),_=ev(h)?Lu:kr;return c(h,r,_,u)}function XC(i,n,s,r,u,c){const h=Yh(i,n,u,s),_=ev(h)?Lu:kr;return c(h[0],_,r)}function FC(i,n,s,r){const u=i.length,c=bn(i,h=>bn(h,_=>_.length===1));if(n)return function(h){const _=rt(h,d=>d.GATE);for(let d=0;d<u;d++){const g=i[d],b=g.length,E=_[d];if(!(E!==void 0&&E.call(this)===!1))t:for(let A=0;A<b;A++){const j=g[A],H=j.length;for(let X=0;X<H;X++){const S=this.LA(X+1);if(s(S,j[X])===!1)continue t}return d}}};if(c&&!r){const h=rt(i,d=>En(d)),_=Ze(h,(d,g,b)=>(ht(g,E=>{ft(d,E.tokenTypeIdx)||(d[E.tokenTypeIdx]=b),ht(E.categoryMatches,A=>{ft(d,A)||(d[A]=b)})}),d),{});return function(){const d=this.LA(1);return _[d.tokenTypeIdx]}}else return function(){for(let h=0;h<u;h++){const _=i[h],d=_.length;t:for(let g=0;g<d;g++){const b=_[g],E=b.length;for(let A=0;A<E;A++){const j=this.LA(A+1);if(s(j,b[A])===!1)continue t}return h}}}}function QC(i,n,s){const r=bn(i,c=>c.length===1),u=i.length;if(r&&!s){const c=En(i);if(c.length===1&&jt(c[0].categoryMatches)){const _=c[0].tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===_}}else{const h=Ze(c,(_,d,g)=>(_[d.tokenTypeIdx]=!0,ht(d.categoryMatches,b=>{_[b]=!0}),_),[]);return function(){const _=this.LA(1);return h[_.tokenTypeIdx]===!0}}}else return function(){t:for(let c=0;c<u;c++){const h=i[c],_=h.length;for(let d=0;d<_;d++){const g=this.LA(d+1);if(n(g,h[d])===!1)continue t}return!0}return!1}}class ZC extends Qu{constructor(n,s,r){super(),this.topProd=n,this.targetOccurrence=s,this.targetProdType=r}startWalking(){return this.walk(this.topProd),this.restDef}checkIsTarget(n,s,r,u){return n.idx===this.targetOccurrence&&this.targetProdType===s?(this.restDef=r.concat(u),!0):!1}walkOption(n,s,r){this.checkIsTarget(n,Xt.OPTION,s,r)||super.walkOption(n,s,r)}walkAtLeastOne(n,s,r){this.checkIsTarget(n,Xt.REPETITION_MANDATORY,s,r)||super.walkOption(n,s,r)}walkAtLeastOneSep(n,s,r){this.checkIsTarget(n,Xt.REPETITION_MANDATORY_WITH_SEPARATOR,s,r)||super.walkOption(n,s,r)}walkMany(n,s,r){this.checkIsTarget(n,Xt.REPETITION,s,r)||super.walkOption(n,s,r)}walkManySep(n,s,r){this.checkIsTarget(n,Xt.REPETITION_WITH_SEPARATOR,s,r)||super.walkOption(n,s,r)}}class J0 extends _s{constructor(n,s,r){super(),this.targetOccurrence=n,this.targetProdType=s,this.targetRef=r,this.result=[]}checkIsTarget(n,s){n.idx===this.targetOccurrence&&this.targetProdType===s&&(this.targetRef===void 0||n===this.targetRef)&&(this.result=n.definition)}visitOption(n){this.checkIsTarget(n,Xt.OPTION)}visitRepetition(n){this.checkIsTarget(n,Xt.REPETITION)}visitRepetitionMandatory(n){this.checkIsTarget(n,Xt.REPETITION_MANDATORY)}visitRepetitionMandatoryWithSeparator(n){this.checkIsTarget(n,Xt.REPETITION_MANDATORY_WITH_SEPARATOR)}visitRepetitionWithSeparator(n){this.checkIsTarget(n,Xt.REPETITION_WITH_SEPARATOR)}visitAlternation(n){this.checkIsTarget(n,Xt.ALTERNATION)}}function py(i){const n=new Array(i);for(let s=0;s<i;s++)n[s]=[];return n}function kf(i){let n=[""];for(let s=0;s<i.length;s++){const r=i[s],u=[];for(let c=0;c<n.length;c++){const h=n[c];u.push(h+"_"+r.tokenTypeIdx);for(let _=0;_<r.categoryMatches.length;_++){const d="_"+r.categoryMatches[_];u.push(h+d)}}n=u}return n}function WC(i,n,s){for(let r=0;r<i.length;r++){if(r===s)continue;const u=i[r];for(let c=0;c<n.length;c++){const h=n[c];if(u[h]===!0)return!1}}return!0}function tv(i,n){const s=rt(i,h=>oh([h],1)),r=py(s.length),u=rt(s,h=>{const _={};return ht(h,d=>{const g=kf(d.partialPath);ht(g,b=>{_[b]=!0})}),_});let c=s;for(let h=1;h<=n;h++){const _=c;c=py(_.length);for(let d=0;d<_.length;d++){const g=_[d];for(let b=0;b<g.length;b++){const E=g[b].partialPath,A=g[b].suffixDef,j=kf(E);if(WC(u,j,d)||jt(A)||E.length===n){const X=r[d];if(ch(X,E)===!1){X.push(E);for(let S=0;S<j.length;S++){const v=j[S];u[d][v]=!0}}}else{const X=oh(A,h+1,E);c[d]=c[d].concat(X),ht(X,S=>{const v=kf(S.partialPath);ht(v,T=>{u[d][T]=!0})})}}}}return r}function Vh(i,n,s,r){const u=new J0(i,Xt.ALTERNATION,r);return n.accept(u),tv(u.result,s)}function Yh(i,n,s,r){const u=new J0(i,s);n.accept(u);const c=u.result,_=new ZC(n,i,s).startWalking(),d=new Ie({definition:c}),g=new Ie({definition:_});return tv([d,g],r)}function ch(i,n){t:for(let s=0;s<i.length;s++){const r=i[s];if(r.length===n.length){for(let u=0;u<r.length;u++){const c=n[u],h=r[u];if((c===h||h.categoryMatchesMap[c.tokenTypeIdx]!==void 0)===!1)continue t}return!0}}return!1}function JC(i,n){return i.length<n.length&&bn(i,(s,r)=>{const u=n[r];return s===u||u.categoryMatchesMap[s.tokenTypeIdx]})}function ev(i){return bn(i,n=>bn(n,s=>bn(s,r=>jt(r.categoryMatches))))}function t2(i){const n=i.lookaheadStrategy.validate({rules:i.rules,tokenTypes:i.tokenTypes,grammarName:i.grammarName});return rt(n,s=>Object.assign({type:be.CUSTOM_LOOKAHEAD_VALIDATION},s))}function e2(i,n,s,r){const u=fn(i,d=>n2(d,s)),c=_2(i,n,s),h=fn(i,d=>c2(d,s)),_=fn(i,d=>s2(d,i,r,s));return u.concat(c,h,_)}function n2(i,n){const s=new a2;i.accept(s);const r=s.allProductions,u=_x(r,i2),c=An(u,_=>_.length>1);return rt(se(c),_=>{const d=Sn(_),g=n.buildDuplicateFoundError(i,_),b=Un(d),E={message:g,type:be.DUPLICATE_PRODUCTIONS,ruleName:i.name,dslName:b,occurrence:d.idx},A=nv(d);return A&&(E.parameter=A),E})}function i2(i){return`${Un(i)}_#_${i.idx}_#_${nv(i)}`}function nv(i){return i instanceof $t?i.terminalType.name:i instanceof We?i.nonTerminalName:""}class a2 extends _s{constructor(){super(...arguments),this.allProductions=[]}visitNonTerminal(n){this.allProductions.push(n)}visitOption(n){this.allProductions.push(n)}visitRepetitionWithSeparator(n){this.allProductions.push(n)}visitRepetitionMandatory(n){this.allProductions.push(n)}visitRepetitionMandatoryWithSeparator(n){this.allProductions.push(n)}visitRepetition(n){this.allProductions.push(n)}visitAlternation(n){this.allProductions.push(n)}visitTerminal(n){this.allProductions.push(n)}}function s2(i,n,s,r){const u=[];if(Ze(n,(h,_)=>_.name===i.name?h+1:h,0)>1){const h=r.buildDuplicateRuleNameError({topLevelRule:i,grammarName:s});u.push({message:h,type:be.DUPLICATE_RULE_NAME,ruleName:i.name})}return u}function r2(i,n,s){const r=[];let u;return Se(n,i)||(u=`Invalid rule override, rule: ->${i}<- cannot be overridden in the grammar: ->${s}<-as it is not defined in any of the super grammars `,r.push({message:u,type:be.INVALID_RULE_OVERRIDE,ruleName:i})),r}function iv(i,n,s,r=[]){const u=[],c=vu(n.definition);if(jt(c))return[];{const h=i.name;Se(c,i)&&u.push({message:s.buildLeftRecursionError({topLevelRule:i,leftRecursionPath:r}),type:be.LEFT_RECURSION,ruleName:h});const d=Xu(c,r.concat([i])),g=fn(d,b=>{const E=pe(r);return E.push(b),iv(i,b,s,E)});return u.concat(g)}}function vu(i){let n=[];if(jt(i))return n;const s=Sn(i);if(s instanceof We)n.push(s.referencedRule);else if(s instanceof Ie||s instanceof Me||s instanceof jn||s instanceof Pn||s instanceof On||s instanceof re)n=n.concat(vu(s.definition));else if(s instanceof Nn)n=En(rt(s.definition,c=>vu(c.definition)));else if(!(s instanceof $t))throw Error("non exhaustive match");const r=Nu(s),u=i.length>1;if(r&&u){const c=_e(i);return n.concat(vu(c))}else return n}class Xh extends _s{constructor(){super(...arguments),this.alternations=[]}visitAlternation(n){this.alternations.push(n)}}function l2(i,n){const s=new Xh;i.accept(s);const r=s.alternations;return fn(r,c=>{const h=xr(c.definition);return fn(h,(_,d)=>{const g=Z0([_],[],kr,1);return jt(g)?[{message:n.buildEmptyAlternationError({topLevelRule:i,alternation:c,emptyChoiceIdx:d}),type:be.NONE_LAST_EMPTY_ALT,ruleName:i.name,occurrence:c.idx,alternative:d+1}]:[]})})}function u2(i,n,s){const r=new Xh;i.accept(r);let u=r.alternations;return u=Fu(u,h=>h.ignoreAmbiguities===!0),fn(u,h=>{const _=h.idx,d=h.maxLookahead||n,g=Vh(_,i,d,h),b=h2(g,h,i,s),E=d2(g,h,i,s);return b.concat(E)})}class o2 extends _s{constructor(){super(...arguments),this.allProductions=[]}visitRepetitionWithSeparator(n){this.allProductions.push(n)}visitRepetitionMandatory(n){this.allProductions.push(n)}visitRepetitionMandatoryWithSeparator(n){this.allProductions.push(n)}visitRepetition(n){this.allProductions.push(n)}}function c2(i,n){const s=new Xh;i.accept(s);const r=s.alternations;return fn(r,c=>c.definition.length>255?[{message:n.buildTooManyAlternativesError({topLevelRule:i,alternation:c}),type:be.TOO_MANY_ALTS,ruleName:i.name,occurrence:c.idx}]:[])}function f2(i,n,s){const r=[];return ht(i,u=>{const c=new o2;u.accept(c);const h=c.allProductions;ht(h,_=>{const d=W0(_),g=_.maxLookahead||n,b=_.idx,A=Yh(b,u,d,g)[0];if(jt(En(A))){const j=s.buildEmptyRepetitionError({topLevelRule:u,repetition:_});r.push({message:j,type:be.NO_NON_EMPTY_LOOKAHEAD,ruleName:u.name})}})}),r}function h2(i,n,s,r){const u=[],c=Ze(i,(_,d,g)=>(n.definition[g].ignoreAmbiguities===!0||ht(d,b=>{const E=[g];ht(i,(A,j)=>{g!==j&&ch(A,b)&&n.definition[j].ignoreAmbiguities!==!0&&E.push(j)}),E.length>1&&!ch(u,b)&&(u.push(b),_.push({alts:E,path:b}))}),_),[]);return rt(c,_=>{const d=rt(_.alts,b=>b+1);return{message:r.buildAlternationAmbiguityError({topLevelRule:s,alternation:n,ambiguityIndices:d,prefixPath:_.path}),type:be.AMBIGUOUS_ALTS,ruleName:s.name,occurrence:n.idx,alternatives:_.alts}})}function d2(i,n,s,r){const u=Ze(i,(h,_,d)=>{const g=rt(_,b=>({idx:d,path:b}));return h.concat(g)},[]);return Ur(fn(u,h=>{if(n.definition[h.idx].ignoreAmbiguities===!0)return[];const d=h.idx,g=h.path,b=pn(u,A=>n.definition[A.idx].ignoreAmbiguities!==!0&&A.idx<d&&JC(A.path,g));return rt(b,A=>{const j=[A.idx+1,d+1],H=n.idx===0?"":n.idx;return{message:r.buildAlternationPrefixAmbiguityError({topLevelRule:s,alternation:n,ambiguityIndices:j,prefixPath:A.path}),type:be.AMBIGUOUS_PREFIX_ALTS,ruleName:s.name,occurrence:H,alternatives:j}})}))}function _2(i,n,s){const r=[],u=rt(n,c=>c.name);return ht(i,c=>{const h=c.name;if(Se(u,h)){const _=s.buildNamespaceConflictError(c);r.push({message:_,type:be.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:h})}}),r}function p2(i){const n=Gh(i,{errMsgProvider:jC}),s={};return ht(i.rules,r=>{s[r.name]=r}),PC(s,n.errMsgProvider)}function g2(i){return i=Gh(i,{errMsgProvider:oa}),e2(i.rules,i.tokenTypes,i.errMsgProvider,i.grammarName)}const av="MismatchedTokenException",sv="NoViableAltException",rv="EarlyExitException",lv="NotAllInputParsedException",uv=[av,sv,rv,lv];Object.freeze(uv);function wu(i){return Se(uv,i.name)}class Ju extends Error{constructor(n,s){super(n),this.token=s,this.resyncedTokens=[],Object.setPrototypeOf(this,new.target.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}}class ov extends Ju{constructor(n,s,r){super(n,s),this.previousToken=r,this.name=av}}class m2 extends Ju{constructor(n,s,r){super(n,s),this.previousToken=r,this.name=sv}}class y2 extends Ju{constructor(n,s){super(n,s),this.name=lv}}class v2 extends Ju{constructor(n,s,r){super(n,s),this.previousToken=r,this.name=rv}}const zf={},cv="InRuleRecoveryException";class E2 extends Error{constructor(n){super(n),this.name=cv}}class b2{initRecoverable(n){this.firstAfterRepMap={},this.resyncFollows={},this.recoveryEnabled=ft(n,"recoveryEnabled")?n.recoveryEnabled:ui.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=T2)}getTokenToInsert(n){const s=Kh(n,"",NaN,NaN,NaN,NaN,NaN,NaN);return s.isInsertedInRecovery=!0,s}canTokenTypeBeInsertedInRecovery(n){return!0}canTokenTypeBeDeletedInRecovery(n){return!0}tryInRepetitionRecovery(n,s,r,u){const c=this.findReSyncTokenType(),h=this.exportLexerState(),_=[];let d=!1;const g=this.LA(1);let b=this.LA(1);const E=()=>{const A=this.LA(0),j=this.errorMessageProvider.buildMismatchTokenMessage({expected:u,actual:g,previous:A,ruleName:this.getCurrRuleFullName()}),H=new ov(j,g,this.LA(0));H.resyncedTokens=xr(_),this.SAVE_ERROR(H)};for(;!d;)if(this.tokenMatcher(b,u)){E();return}else if(r.call(this)){E(),n.apply(this,s);return}else this.tokenMatcher(b,c)?d=!0:(b=this.SKIP_TOKEN(),this.addToResyncTokens(b,_));this.importLexerState(h)}shouldInRepetitionRecoveryBeTried(n,s,r){return!(r===!1||this.tokenMatcher(this.LA(1),n)||this.isBackTracking()||this.canPerformInRuleRecovery(n,this.getFollowsForInRuleRecovery(n,s)))}getFollowsForInRuleRecovery(n,s){const r=this.getCurrentGrammarPath(n,s);return this.getNextPossibleTokenTypes(r)}tryInRuleRecovery(n,s){if(this.canRecoverWithSingleTokenInsertion(n,s))return this.getTokenToInsert(n);if(this.canRecoverWithSingleTokenDeletion(n)){const r=this.SKIP_TOKEN();return this.consumeToken(),r}throw new E2("sad sad panda")}canPerformInRuleRecovery(n,s){return this.canRecoverWithSingleTokenInsertion(n,s)||this.canRecoverWithSingleTokenDeletion(n)}canRecoverWithSingleTokenInsertion(n,s){if(!this.canTokenTypeBeInsertedInRecovery(n)||jt(s))return!1;const r=this.LA(1);return hs(s,c=>this.tokenMatcher(r,c))!==void 0}canRecoverWithSingleTokenDeletion(n){return this.canTokenTypeBeDeletedInRecovery(n)?this.tokenMatcher(this.LA(2),n):!1}isInCurrentRuleReSyncSet(n){const s=this.getCurrFollowKey(),r=this.getFollowSetFromFollowKey(s);return Se(r,n)}findReSyncTokenType(){const n=this.flattenFollowSet();let s=this.LA(1),r=2;for(;;){const u=hs(n,c=>DC(s,c));if(u!==void 0)return u;s=this.LA(r),r++}}getCurrFollowKey(){if(this.RULE_STACK.length===1)return zf;const n=this.getLastExplicitRuleShortName(),s=this.getLastExplicitRuleOccurrenceIndex(),r=this.getPreviousExplicitRuleShortName();return{ruleName:this.shortRuleNameToFullName(n),idxInCallingRule:s,inRule:this.shortRuleNameToFullName(r)}}buildFullFollowKeyStack(){const n=this.RULE_STACK,s=this.RULE_OCCURRENCE_STACK;return rt(n,(r,u)=>u===0?zf:{ruleName:this.shortRuleNameToFullName(r),idxInCallingRule:s[u],inRule:this.shortRuleNameToFullName(n[u-1])})}flattenFollowSet(){const n=rt(this.buildFullFollowKeyStack(),s=>this.getFollowSetFromFollowKey(s));return En(n)}getFollowSetFromFollowKey(n){if(n===zf)return[pa];const s=n.ruleName+n.idxInCallingRule+P0+n.inRule;return this.resyncFollows[s]}addToResyncTokens(n,s){return this.tokenMatcher(n,pa)||s.push(n),s}reSyncTo(n){const s=[];let r=this.LA(1);for(;this.tokenMatcher(r,n)===!1;)r=this.SKIP_TOKEN(),this.addToResyncTokens(r,s);return xr(s)}attemptInRepetitionRecovery(n,s,r,u,c,h,_){}getCurrentGrammarPath(n,s){const r=this.getHumanReadableRuleStack(),u=pe(this.RULE_OCCURRENCE_STACK);return{ruleStack:r,occurrenceStack:u,lastTok:n,lastTokOccurrence:s}}getHumanReadableRuleStack(){return rt(this.RULE_STACK,n=>this.shortRuleNameToFullName(n))}}function T2(i,n,s,r,u,c,h){const _=this.getKeyForAutomaticLookahead(r,u);let d=this.firstAfterRepMap[_];if(d===void 0){const A=this.getCurrRuleFullName(),j=this.getGAstProductions()[A];d=new c(j,u).startWalking(),this.firstAfterRepMap[_]=d}let g=d.token,b=d.occurrence;const E=d.isEndOfRule;this.RULE_STACK.length===1&&E&&g===void 0&&(g=pa,b=1),!(g===void 0||b===void 0)&&this.shouldInRepetitionRecoveryBeTried(g,b,h)&&this.tryInRepetitionRecovery(i,n,s,g)}const S2=4,Gi=8,fv=1<<Gi,hv=2<<Gi,fh=3<<Gi,hh=4<<Gi,dh=5<<Gi,Eu=6<<Gi;function Bf(i,n,s){return s|n|i}class A2{constructor(n){var s;this.maxLookahead=(s=n?.maxLookahead)!==null&&s!==void 0?s:ui.maxLookahead}validate(n){const s=this.validateNoLeftRecursion(n.rules);if(jt(s)){const r=this.validateEmptyOrAlternatives(n.rules),u=this.validateAmbiguousAlternationAlternatives(n.rules,this.maxLookahead),c=this.validateSomeNonEmptyLookaheadPath(n.rules,this.maxLookahead);return[...s,...r,...u,...c]}return s}validateNoLeftRecursion(n){return fn(n,s=>iv(s,s,oa))}validateEmptyOrAlternatives(n){return fn(n,s=>l2(s,oa))}validateAmbiguousAlternationAlternatives(n,s){return fn(n,r=>u2(r,s,oa))}validateSomeNonEmptyLookaheadPath(n,s){return f2(n,s,oa)}buildLookaheadForAlternation(n){return YC(n.prodOccurrence,n.rule,n.maxLookahead,n.hasPredicates,n.dynamicTokensEnabled,FC)}buildLookaheadForOptional(n){return XC(n.prodOccurrence,n.rule,n.maxLookahead,n.dynamicTokensEnabled,W0(n.prodType),QC)}}class O2{initLooksAhead(n){this.dynamicTokensEnabled=ft(n,"dynamicTokensEnabled")?n.dynamicTokensEnabled:ui.dynamicTokensEnabled,this.maxLookahead=ft(n,"maxLookahead")?n.maxLookahead:ui.maxLookahead,this.lookaheadStrategy=ft(n,"lookaheadStrategy")?n.lookaheadStrategy:new A2({maxLookahead:this.maxLookahead}),this.lookAheadFuncsCache=new Map}preComputeLookaheadFunctions(n){ht(n,s=>{this.TRACE_INIT(`${s.name} Rule Lookahead`,()=>{const{alternation:r,repetition:u,option:c,repetitionMandatory:h,repetitionMandatoryWithSeparator:_,repetitionWithSeparator:d}=R2(s);ht(r,g=>{const b=g.idx===0?"":g.idx;this.TRACE_INIT(`${Un(g)}${b}`,()=>{const E=this.lookaheadStrategy.buildLookaheadForAlternation({prodOccurrence:g.idx,rule:s,maxLookahead:g.maxLookahead||this.maxLookahead,hasPredicates:g.hasPredicates,dynamicTokensEnabled:this.dynamicTokensEnabled}),A=Bf(this.fullRuleNameToShort[s.name],fv,g.idx);this.setLaFuncCache(A,E)})}),ht(u,g=>{this.computeLookaheadFunc(s,g.idx,fh,"Repetition",g.maxLookahead,Un(g))}),ht(c,g=>{this.computeLookaheadFunc(s,g.idx,hv,"Option",g.maxLookahead,Un(g))}),ht(h,g=>{this.computeLookaheadFunc(s,g.idx,hh,"RepetitionMandatory",g.maxLookahead,Un(g))}),ht(_,g=>{this.computeLookaheadFunc(s,g.idx,Eu,"RepetitionMandatoryWithSeparator",g.maxLookahead,Un(g))}),ht(d,g=>{this.computeLookaheadFunc(s,g.idx,dh,"RepetitionWithSeparator",g.maxLookahead,Un(g))})})})}computeLookaheadFunc(n,s,r,u,c,h){this.TRACE_INIT(`${h}${s===0?"":s}`,()=>{const _=this.lookaheadStrategy.buildLookaheadForOptional({prodOccurrence:s,rule:n,maxLookahead:c||this.maxLookahead,dynamicTokensEnabled:this.dynamicTokensEnabled,prodType:u}),d=Bf(this.fullRuleNameToShort[n.name],r,s);this.setLaFuncCache(d,_)})}getKeyForAutomaticLookahead(n,s){const r=this.getLastExplicitRuleShortName();return Bf(r,n,s)}getLaFuncFromCache(n){return this.lookAheadFuncsCache.get(n)}setLaFuncCache(n,s){this.lookAheadFuncsCache.set(n,s)}}class N2 extends _s{constructor(){super(...arguments),this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}}reset(){this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}}visitOption(n){this.dslMethods.option.push(n)}visitRepetitionWithSeparator(n){this.dslMethods.repetitionWithSeparator.push(n)}visitRepetitionMandatory(n){this.dslMethods.repetitionMandatory.push(n)}visitRepetitionMandatoryWithSeparator(n){this.dslMethods.repetitionMandatoryWithSeparator.push(n)}visitRepetition(n){this.dslMethods.repetition.push(n)}visitAlternation(n){this.dslMethods.alternation.push(n)}}const uu=new N2;function R2(i){uu.reset(),i.accept(uu);const n=uu.dslMethods;return uu.reset(),n}function gy(i,n){isNaN(i.startOffset)===!0?(i.startOffset=n.startOffset,i.endOffset=n.endOffset):i.endOffset<n.endOffset&&(i.endOffset=n.endOffset)}function my(i,n){isNaN(i.startOffset)===!0?(i.startOffset=n.startOffset,i.startColumn=n.startColumn,i.startLine=n.startLine,i.endOffset=n.endOffset,i.endColumn=n.endColumn,i.endLine=n.endLine):i.endOffset<n.endOffset&&(i.endOffset=n.endOffset,i.endColumn=n.endColumn,i.endLine=n.endLine)}function x2(i,n,s){i.children[s]===void 0?i.children[s]=[n]:i.children[s].push(n)}function C2(i,n,s){i.children[n]===void 0?i.children[n]=[s]:i.children[n].push(s)}const L2="name";function dv(i,n){Object.defineProperty(i,L2,{enumerable:!1,configurable:!0,writable:!1,value:n})}function w2(i,n){const s=_n(i),r=s.length;for(let u=0;u<r;u++){const c=s[u],h=i[c],_=h.length;for(let d=0;d<_;d++){const g=h[d];g.tokenTypeIdx===void 0&&this[g.name](g.children,n)}}}function M2(i,n){const s=function(){};dv(s,i+"BaseSemantics");const r={visit:function(u,c){if(xt(u)&&(u=u[0]),!li(u))return this[u.name](u.children,c)},validateVisitor:function(){const u=I2(this,n);if(!jt(u)){const c=rt(u,h=>h.msg);throw Error(`Errors Detected in CST Visitor <${this.constructor.name}>:
102
+ see: https://en.wikipedia.org/wiki/LL_parser#Left_factoring.`},buildInvalidRuleNameError(i){return"deprecated"},buildDuplicateRuleNameError(i){let n;return i.topLevelRule instanceof _s?n=i.topLevelRule.name:n=i.topLevelRule,`Duplicate definition, rule: ->${n}<- is already defined in the grammar: ->${i.grammarName}<-`}};function HC(i,n){const s=new $C(i,n);return s.resolveRefs(),s.errors}class $C extends ps{constructor(n,s){super(),this.nameToTopRule=n,this.errMsgProvider=s,this.errors=[]}resolveRefs(){ht(se(this.nameToTopRule),n=>{this.currTopLevel=n,n.accept(this)})}visitNonTerminal(n){const s=this.nameToTopRule[n.nonTerminalName];if(s)n.referencedRule=s;else{const r=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,n);this.errors.push({message:r,type:Te.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:n.nonTerminalName})}}}class KC extends Zu{constructor(n,s){super(),this.topProd=n,this.path=s,this.possibleTokTypes=[],this.nextProductionName="",this.nextProductionOccurrence=0,this.found=!1,this.isAtEndOfPath=!1}startWalking(){if(this.found=!1,this.path.ruleStack[0]!==this.topProd.name)throw Error("The path does not start with the walker's top Rule!");return this.ruleStack=ge(this.path.ruleStack).reverse(),this.occurrenceStack=ge(this.path.occurrenceStack).reverse(),this.ruleStack.pop(),this.occurrenceStack.pop(),this.updateExpectedNext(),this.walk(this.topProd),this.possibleTokTypes}walk(n,s=[]){this.found||super.walk(n,s)}walkProdRef(n,s,r){if(n.referencedRule.name===this.nextProductionName&&n.idx===this.nextProductionOccurrence){const u=s.concat(r);this.updateExpectedNext(),this.walk(n.referencedRule,u)}}updateExpectedNext(){jt(this.ruleStack)?(this.nextProductionName="",this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())}}class VC extends KC{constructor(n,s){super(n,s),this.path=s,this.nextTerminalName="",this.nextTerminalOccurrence=0,this.nextTerminalName=this.path.lastTok.name,this.nextTerminalOccurrence=this.path.lastTokOccurrence}walkTerminal(n,s,r){if(this.isAtEndOfPath&&n.terminalType.name===this.nextTerminalName&&n.idx===this.nextTerminalOccurrence&&!this.found){const u=s.concat(r),c=new Ie({definition:u});this.possibleTokTypes=kr(c),this.found=!0}}}class Ju extends Zu{constructor(n,s){super(),this.topRule=n,this.occurrence=s,this.result={token:void 0,occurrence:void 0,isEndOfRule:void 0}}startWalking(){return this.walk(this.topRule),this.result}}class YC extends Ju{walkMany(n,s,r){if(n.idx===this.occurrence){const u=Sn(s.concat(r));this.result.isEndOfRule=u===void 0,u instanceof $t&&(this.result.token=u.terminalType,this.result.occurrence=u.idx)}else super.walkMany(n,s,r)}}class hy extends Ju{walkManySep(n,s,r){if(n.idx===this.occurrence){const u=Sn(s.concat(r));this.result.isEndOfRule=u===void 0,u instanceof $t&&(this.result.token=u.terminalType,this.result.occurrence=u.idx)}else super.walkManySep(n,s,r)}}class FC extends Ju{walkAtLeastOne(n,s,r){if(n.idx===this.occurrence){const u=Sn(s.concat(r));this.result.isEndOfRule=u===void 0,u instanceof $t&&(this.result.token=u.terminalType,this.result.occurrence=u.idx)}else super.walkAtLeastOne(n,s,r)}}class dy extends Ju{walkAtLeastOneSep(n,s,r){if(n.idx===this.occurrence){const u=Sn(s.concat(r));this.result.isEndOfRule=u===void 0,u instanceof $t&&(this.result.token=u.terminalType,this.result.occurrence=u.idx)}else super.walkAtLeastOneSep(n,s,r)}}function ch(i,n,s=[]){s=ge(s);let r=[],u=0;function c(_){return _.concat(pe(i,u+1))}function h(_){const d=ch(c(_),n,s);return r.concat(d)}for(;s.length<n&&u<i.length;){const _=i[u];if(_ instanceof Ie)return h(_.definition);if(_ instanceof We)return h(_.definition);if(_ instanceof Me)r=h(_.definition);else if(_ instanceof jn){const d=_.definition.concat([new re({definition:_.definition})]);return h(d)}else if(_ instanceof Pn){const d=[new Ie({definition:_.definition}),new re({definition:[new $t({terminalType:_.separator})].concat(_.definition)})];return h(d)}else if(_ instanceof On){const d=_.definition.concat([new re({definition:[new $t({terminalType:_.separator})].concat(_.definition)})]);r=h(d)}else if(_ instanceof re){const d=_.definition.concat([new re({definition:_.definition})]);r=h(d)}else{if(_ instanceof Nn)return ht(_.definition,d=>{jt(d.definition)===!1&&(r=h(d.definition))}),r;if(_ instanceof $t)s.push(_.terminalType);else throw Error("non exhaustive match")}u++}return r.push({partialPath:s,suffixDef:pe(i,u)}),r}function Q0(i,n,s,r){const u="EXIT_NONE_TERMINAL",c=[u],h="EXIT_ALTERNATIVE";let _=!1;const d=n.length,g=d-r-1,b=[],E=[];for(E.push({idx:-1,def:i,ruleStack:[],occurrenceStack:[]});!jt(E);){const A=E.pop();if(A===h){_&&da(E).idx<=g&&E.pop();continue}const j=A.def,H=A.idx,F=A.ruleStack,S=A.occurrenceStack;if(jt(j))continue;const v=j[0];if(v===u){const T={idx:H,def:pe(j),ruleStack:Cr(F),occurrenceStack:Cr(S)};E.push(T)}else if(v instanceof $t)if(H<d-1){const T=H+1,w=n[T];if(s(w,v.terminalType)){const I={idx:T,def:pe(j),ruleStack:F,occurrenceStack:S};E.push(I)}}else if(H===d-1)b.push({nextTokenType:v.terminalType,nextTokenOccurrence:v.idx,ruleStack:F,occurrenceStack:S}),_=!0;else throw Error("non exhaustive match");else if(v instanceof We){const T=ge(F);T.push(v.nonTerminalName);const w=ge(S);w.push(v.idx);const I={idx:H,def:v.definition.concat(c,pe(j)),ruleStack:T,occurrenceStack:w};E.push(I)}else if(v instanceof Me){const T={idx:H,def:pe(j),ruleStack:F,occurrenceStack:S};E.push(T),E.push(h);const w={idx:H,def:v.definition.concat(pe(j)),ruleStack:F,occurrenceStack:S};E.push(w)}else if(v instanceof jn){const T=new re({definition:v.definition,idx:v.idx}),w=v.definition.concat([T],pe(j)),I={idx:H,def:w,ruleStack:F,occurrenceStack:S};E.push(I)}else if(v instanceof Pn){const T=new $t({terminalType:v.separator}),w=new re({definition:[T].concat(v.definition),idx:v.idx}),I=v.definition.concat([w],pe(j)),X={idx:H,def:I,ruleStack:F,occurrenceStack:S};E.push(X)}else if(v instanceof On){const T={idx:H,def:pe(j),ruleStack:F,occurrenceStack:S};E.push(T),E.push(h);const w=new $t({terminalType:v.separator}),I=new re({definition:[w].concat(v.definition),idx:v.idx}),X=v.definition.concat([I],pe(j)),U={idx:H,def:X,ruleStack:F,occurrenceStack:S};E.push(U)}else if(v instanceof re){const T={idx:H,def:pe(j),ruleStack:F,occurrenceStack:S};E.push(T),E.push(h);const w=new re({definition:v.definition,idx:v.idx}),I=v.definition.concat([w],pe(j)),X={idx:H,def:I,ruleStack:F,occurrenceStack:S};E.push(X)}else if(v instanceof Nn)for(let T=v.definition.length-1;T>=0;T--){const w=v.definition[T],I={idx:H,def:w.definition.concat(pe(j)),ruleStack:F,occurrenceStack:S};E.push(I),E.push(h)}else if(v instanceof Ie)E.push({idx:H,def:v.definition.concat(pe(j)),ruleStack:F,occurrenceStack:S});else if(v instanceof _s)E.push(XC(v,H,F,S));else throw Error("non exhaustive match")}return b}function XC(i,n,s,r){const u=ge(s);u.push(i.name);const c=ge(r);return c.push(1),{idx:n,def:i.definition,ruleStack:u,occurrenceStack:c}}var Ft;(function(i){i[i.OPTION=0]="OPTION",i[i.REPETITION=1]="REPETITION",i[i.REPETITION_MANDATORY=2]="REPETITION_MANDATORY",i[i.REPETITION_MANDATORY_WITH_SEPARATOR=3]="REPETITION_MANDATORY_WITH_SEPARATOR",i[i.REPETITION_WITH_SEPARATOR=4]="REPETITION_WITH_SEPARATOR",i[i.ALTERNATION=5]="ALTERNATION"})(Ft||(Ft={}));function Z0(i){if(i instanceof Me||i==="Option")return Ft.OPTION;if(i instanceof re||i==="Repetition")return Ft.REPETITION;if(i instanceof jn||i==="RepetitionMandatory")return Ft.REPETITION_MANDATORY;if(i instanceof Pn||i==="RepetitionMandatoryWithSeparator")return Ft.REPETITION_MANDATORY_WITH_SEPARATOR;if(i instanceof On||i==="RepetitionWithSeparator")return Ft.REPETITION_WITH_SEPARATOR;if(i instanceof Nn||i==="Alternation")return Ft.ALTERNATION;throw Error("non exhaustive match")}function QC(i,n,s,r,u,c){const h=Kh(i,n,s),_=tv(h)?wu:zr;return c(h,r,_,u)}function ZC(i,n,s,r,u,c){const h=Vh(i,n,u,s),_=tv(h)?wu:zr;return c(h[0],_,r)}function WC(i,n,s,r){const u=i.length,c=bn(i,h=>bn(h,_=>_.length===1));if(n)return function(h){const _=rt(h,d=>d.GATE);for(let d=0;d<u;d++){const g=i[d],b=g.length,E=_[d];if(!(E!==void 0&&E.call(this)===!1))t:for(let A=0;A<b;A++){const j=g[A],H=j.length;for(let F=0;F<H;F++){const S=this.LA(F+1);if(s(S,j[F])===!1)continue t}return d}}};if(c&&!r){const h=rt(i,d=>En(d)),_=Ze(h,(d,g,b)=>(ht(g,E=>{ft(d,E.tokenTypeIdx)||(d[E.tokenTypeIdx]=b),ht(E.categoryMatches,A=>{ft(d,A)||(d[A]=b)})}),d),{});return function(){const d=this.LA(1);return _[d.tokenTypeIdx]}}else return function(){for(let h=0;h<u;h++){const _=i[h],d=_.length;t:for(let g=0;g<d;g++){const b=_[g],E=b.length;for(let A=0;A<E;A++){const j=this.LA(A+1);if(s(j,b[A])===!1)continue t}return h}}}}function JC(i,n,s){const r=bn(i,c=>c.length===1),u=i.length;if(r&&!s){const c=En(i);if(c.length===1&&jt(c[0].categoryMatches)){const _=c[0].tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===_}}else{const h=Ze(c,(_,d,g)=>(_[d.tokenTypeIdx]=!0,ht(d.categoryMatches,b=>{_[b]=!0}),_),[]);return function(){const _=this.LA(1);return h[_.tokenTypeIdx]===!0}}}else return function(){t:for(let c=0;c<u;c++){const h=i[c],_=h.length;for(let d=0;d<_;d++){const g=this.LA(d+1);if(n(g,h[d])===!1)continue t}return!0}return!1}}class t2 extends Zu{constructor(n,s,r){super(),this.topProd=n,this.targetOccurrence=s,this.targetProdType=r}startWalking(){return this.walk(this.topProd),this.restDef}checkIsTarget(n,s,r,u){return n.idx===this.targetOccurrence&&this.targetProdType===s?(this.restDef=r.concat(u),!0):!1}walkOption(n,s,r){this.checkIsTarget(n,Ft.OPTION,s,r)||super.walkOption(n,s,r)}walkAtLeastOne(n,s,r){this.checkIsTarget(n,Ft.REPETITION_MANDATORY,s,r)||super.walkOption(n,s,r)}walkAtLeastOneSep(n,s,r){this.checkIsTarget(n,Ft.REPETITION_MANDATORY_WITH_SEPARATOR,s,r)||super.walkOption(n,s,r)}walkMany(n,s,r){this.checkIsTarget(n,Ft.REPETITION,s,r)||super.walkOption(n,s,r)}walkManySep(n,s,r){this.checkIsTarget(n,Ft.REPETITION_WITH_SEPARATOR,s,r)||super.walkOption(n,s,r)}}class W0 extends ps{constructor(n,s,r){super(),this.targetOccurrence=n,this.targetProdType=s,this.targetRef=r,this.result=[]}checkIsTarget(n,s){n.idx===this.targetOccurrence&&this.targetProdType===s&&(this.targetRef===void 0||n===this.targetRef)&&(this.result=n.definition)}visitOption(n){this.checkIsTarget(n,Ft.OPTION)}visitRepetition(n){this.checkIsTarget(n,Ft.REPETITION)}visitRepetitionMandatory(n){this.checkIsTarget(n,Ft.REPETITION_MANDATORY)}visitRepetitionMandatoryWithSeparator(n){this.checkIsTarget(n,Ft.REPETITION_MANDATORY_WITH_SEPARATOR)}visitRepetitionWithSeparator(n){this.checkIsTarget(n,Ft.REPETITION_WITH_SEPARATOR)}visitAlternation(n){this.checkIsTarget(n,Ft.ALTERNATION)}}function _y(i){const n=new Array(i);for(let s=0;s<i;s++)n[s]=[];return n}function zf(i){let n=[""];for(let s=0;s<i.length;s++){const r=i[s],u=[];for(let c=0;c<n.length;c++){const h=n[c];u.push(h+"_"+r.tokenTypeIdx);for(let _=0;_<r.categoryMatches.length;_++){const d="_"+r.categoryMatches[_];u.push(h+d)}}n=u}return n}function e2(i,n,s){for(let r=0;r<i.length;r++){if(r===s)continue;const u=i[r];for(let c=0;c<n.length;c++){const h=n[c];if(u[h]===!0)return!1}}return!0}function J0(i,n){const s=rt(i,h=>ch([h],1)),r=_y(s.length),u=rt(s,h=>{const _={};return ht(h,d=>{const g=zf(d.partialPath);ht(g,b=>{_[b]=!0})}),_});let c=s;for(let h=1;h<=n;h++){const _=c;c=_y(_.length);for(let d=0;d<_.length;d++){const g=_[d];for(let b=0;b<g.length;b++){const E=g[b].partialPath,A=g[b].suffixDef,j=zf(E);if(e2(u,j,d)||jt(A)||E.length===n){const F=r[d];if(fh(F,E)===!1){F.push(E);for(let S=0;S<j.length;S++){const v=j[S];u[d][v]=!0}}}else{const F=ch(A,h+1,E);c[d]=c[d].concat(F),ht(F,S=>{const v=zf(S.partialPath);ht(v,T=>{u[d][T]=!0})})}}}}return r}function Kh(i,n,s,r){const u=new W0(i,Ft.ALTERNATION,r);return n.accept(u),J0(u.result,s)}function Vh(i,n,s,r){const u=new W0(i,s);n.accept(u);const c=u.result,_=new t2(n,i,s).startWalking(),d=new Ie({definition:c}),g=new Ie({definition:_});return J0([d,g],r)}function fh(i,n){t:for(let s=0;s<i.length;s++){const r=i[s];if(r.length===n.length){for(let u=0;u<r.length;u++){const c=n[u],h=r[u];if((c===h||h.categoryMatchesMap[c.tokenTypeIdx]!==void 0)===!1)continue t}return!0}}return!1}function n2(i,n){return i.length<n.length&&bn(i,(s,r)=>{const u=n[r];return s===u||u.categoryMatchesMap[s.tokenTypeIdx]})}function tv(i){return bn(i,n=>bn(n,s=>bn(s,r=>jt(r.categoryMatches))))}function i2(i){const n=i.lookaheadStrategy.validate({rules:i.rules,tokenTypes:i.tokenTypes,grammarName:i.grammarName});return rt(n,s=>Object.assign({type:Te.CUSTOM_LOOKAHEAD_VALIDATION},s))}function a2(i,n,s,r){const u=fn(i,d=>s2(d,s)),c=m2(i,n,s),h=fn(i,d=>d2(d,s)),_=fn(i,d=>u2(d,i,r,s));return u.concat(c,h,_)}function s2(i,n){const s=new l2;i.accept(s);const r=s.allProductions,u=mx(r,r2),c=An(u,_=>_.length>1);return rt(se(c),_=>{const d=Sn(_),g=n.buildDuplicateFoundError(i,_),b=Un(d),E={message:g,type:Te.DUPLICATE_PRODUCTIONS,ruleName:i.name,dslName:b,occurrence:d.idx},A=ev(d);return A&&(E.parameter=A),E})}function r2(i){return`${Un(i)}_#_${i.idx}_#_${ev(i)}`}function ev(i){return i instanceof $t?i.terminalType.name:i instanceof We?i.nonTerminalName:""}class l2 extends ps{constructor(){super(...arguments),this.allProductions=[]}visitNonTerminal(n){this.allProductions.push(n)}visitOption(n){this.allProductions.push(n)}visitRepetitionWithSeparator(n){this.allProductions.push(n)}visitRepetitionMandatory(n){this.allProductions.push(n)}visitRepetitionMandatoryWithSeparator(n){this.allProductions.push(n)}visitRepetition(n){this.allProductions.push(n)}visitAlternation(n){this.allProductions.push(n)}visitTerminal(n){this.allProductions.push(n)}}function u2(i,n,s,r){const u=[];if(Ze(n,(h,_)=>_.name===i.name?h+1:h,0)>1){const h=r.buildDuplicateRuleNameError({topLevelRule:i,grammarName:s});u.push({message:h,type:Te.DUPLICATE_RULE_NAME,ruleName:i.name})}return u}function o2(i,n,s){const r=[];let u;return Se(n,i)||(u=`Invalid rule override, rule: ->${i}<- cannot be overridden in the grammar: ->${s}<-as it is not defined in any of the super grammars `,r.push({message:u,type:Te.INVALID_RULE_OVERRIDE,ruleName:i})),r}function nv(i,n,s,r=[]){const u=[],c=Eu(n.definition);if(jt(c))return[];{const h=i.name;Se(c,i)&&u.push({message:s.buildLeftRecursionError({topLevelRule:i,leftRecursionPath:r}),type:Te.LEFT_RECURSION,ruleName:h});const d=Xu(c,r.concat([i])),g=fn(d,b=>{const E=ge(r);return E.push(b),nv(i,b,s,E)});return u.concat(g)}}function Eu(i){let n=[];if(jt(i))return n;const s=Sn(i);if(s instanceof We)n.push(s.referencedRule);else if(s instanceof Ie||s instanceof Me||s instanceof jn||s instanceof Pn||s instanceof On||s instanceof re)n=n.concat(Eu(s.definition));else if(s instanceof Nn)n=En(rt(s.definition,c=>Eu(c.definition)));else if(!(s instanceof $t))throw Error("non exhaustive match");const r=Ru(s),u=i.length>1;if(r&&u){const c=pe(i);return n.concat(Eu(c))}else return n}class Yh extends ps{constructor(){super(...arguments),this.alternations=[]}visitAlternation(n){this.alternations.push(n)}}function c2(i,n){const s=new Yh;i.accept(s);const r=s.alternations;return fn(r,c=>{const h=Cr(c.definition);return fn(h,(_,d)=>{const g=Q0([_],[],zr,1);return jt(g)?[{message:n.buildEmptyAlternationError({topLevelRule:i,alternation:c,emptyChoiceIdx:d}),type:Te.NONE_LAST_EMPTY_ALT,ruleName:i.name,occurrence:c.idx,alternative:d+1}]:[]})})}function f2(i,n,s){const r=new Yh;i.accept(r);let u=r.alternations;return u=Qu(u,h=>h.ignoreAmbiguities===!0),fn(u,h=>{const _=h.idx,d=h.maxLookahead||n,g=Kh(_,i,d,h),b=p2(g,h,i,s),E=g2(g,h,i,s);return b.concat(E)})}class h2 extends ps{constructor(){super(...arguments),this.allProductions=[]}visitRepetitionWithSeparator(n){this.allProductions.push(n)}visitRepetitionMandatory(n){this.allProductions.push(n)}visitRepetitionMandatoryWithSeparator(n){this.allProductions.push(n)}visitRepetition(n){this.allProductions.push(n)}}function d2(i,n){const s=new Yh;i.accept(s);const r=s.alternations;return fn(r,c=>c.definition.length>255?[{message:n.buildTooManyAlternativesError({topLevelRule:i,alternation:c}),type:Te.TOO_MANY_ALTS,ruleName:i.name,occurrence:c.idx}]:[])}function _2(i,n,s){const r=[];return ht(i,u=>{const c=new h2;u.accept(c);const h=c.allProductions;ht(h,_=>{const d=Z0(_),g=_.maxLookahead||n,b=_.idx,A=Vh(b,u,d,g)[0];if(jt(En(A))){const j=s.buildEmptyRepetitionError({topLevelRule:u,repetition:_});r.push({message:j,type:Te.NO_NON_EMPTY_LOOKAHEAD,ruleName:u.name})}})}),r}function p2(i,n,s,r){const u=[],c=Ze(i,(_,d,g)=>(n.definition[g].ignoreAmbiguities===!0||ht(d,b=>{const E=[g];ht(i,(A,j)=>{g!==j&&fh(A,b)&&n.definition[j].ignoreAmbiguities!==!0&&E.push(j)}),E.length>1&&!fh(u,b)&&(u.push(b),_.push({alts:E,path:b}))}),_),[]);return rt(c,_=>{const d=rt(_.alts,b=>b+1);return{message:r.buildAlternationAmbiguityError({topLevelRule:s,alternation:n,ambiguityIndices:d,prefixPath:_.path}),type:Te.AMBIGUOUS_ALTS,ruleName:s.name,occurrence:n.idx,alternatives:_.alts}})}function g2(i,n,s,r){const u=Ze(i,(h,_,d)=>{const g=rt(_,b=>({idx:d,path:b}));return h.concat(g)},[]);return Ir(fn(u,h=>{if(n.definition[h.idx].ignoreAmbiguities===!0)return[];const d=h.idx,g=h.path,b=pn(u,A=>n.definition[A.idx].ignoreAmbiguities!==!0&&A.idx<d&&n2(A.path,g));return rt(b,A=>{const j=[A.idx+1,d+1],H=n.idx===0?"":n.idx;return{message:r.buildAlternationPrefixAmbiguityError({topLevelRule:s,alternation:n,ambiguityIndices:j,prefixPath:A.path}),type:Te.AMBIGUOUS_PREFIX_ALTS,ruleName:s.name,occurrence:H,alternatives:j}})}))}function m2(i,n,s){const r=[],u=rt(n,c=>c.name);return ht(i,c=>{const h=c.name;if(Se(u,h)){const _=s.buildNamespaceConflictError(c);r.push({message:_,type:Te.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:h})}}),r}function y2(i){const n=Ph(i,{errMsgProvider:qC}),s={};return ht(i.rules,r=>{s[r.name]=r}),HC(s,n.errMsgProvider)}function v2(i){return i=Ph(i,{errMsgProvider:oa}),a2(i.rules,i.tokenTypes,i.errMsgProvider,i.grammarName)}const iv="MismatchedTokenException",av="NoViableAltException",sv="EarlyExitException",rv="NotAllInputParsedException",lv=[iv,av,sv,rv];Object.freeze(lv);function Mu(i){return Se(lv,i.name)}class to extends Error{constructor(n,s){super(n),this.token=s,this.resyncedTokens=[],Object.setPrototypeOf(this,new.target.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}}class uv extends to{constructor(n,s,r){super(n,s),this.previousToken=r,this.name=iv}}class E2 extends to{constructor(n,s,r){super(n,s),this.previousToken=r,this.name=av}}class b2 extends to{constructor(n,s){super(n,s),this.name=rv}}class T2 extends to{constructor(n,s,r){super(n,s),this.previousToken=r,this.name=sv}}const Bf={},ov="InRuleRecoveryException";class S2 extends Error{constructor(n){super(n),this.name=ov}}class A2{initRecoverable(n){this.firstAfterRepMap={},this.resyncFollows={},this.recoveryEnabled=ft(n,"recoveryEnabled")?n.recoveryEnabled:ui.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=O2)}getTokenToInsert(n){const s=$h(n,"",NaN,NaN,NaN,NaN,NaN,NaN);return s.isInsertedInRecovery=!0,s}canTokenTypeBeInsertedInRecovery(n){return!0}canTokenTypeBeDeletedInRecovery(n){return!0}tryInRepetitionRecovery(n,s,r,u){const c=this.findReSyncTokenType(),h=this.exportLexerState(),_=[];let d=!1;const g=this.LA(1);let b=this.LA(1);const E=()=>{const A=this.LA(0),j=this.errorMessageProvider.buildMismatchTokenMessage({expected:u,actual:g,previous:A,ruleName:this.getCurrRuleFullName()}),H=new uv(j,g,this.LA(0));H.resyncedTokens=Cr(_),this.SAVE_ERROR(H)};for(;!d;)if(this.tokenMatcher(b,u)){E();return}else if(r.call(this)){E(),n.apply(this,s);return}else this.tokenMatcher(b,c)?d=!0:(b=this.SKIP_TOKEN(),this.addToResyncTokens(b,_));this.importLexerState(h)}shouldInRepetitionRecoveryBeTried(n,s,r){return!(r===!1||this.tokenMatcher(this.LA(1),n)||this.isBackTracking()||this.canPerformInRuleRecovery(n,this.getFollowsForInRuleRecovery(n,s)))}getFollowsForInRuleRecovery(n,s){const r=this.getCurrentGrammarPath(n,s);return this.getNextPossibleTokenTypes(r)}tryInRuleRecovery(n,s){if(this.canRecoverWithSingleTokenInsertion(n,s))return this.getTokenToInsert(n);if(this.canRecoverWithSingleTokenDeletion(n)){const r=this.SKIP_TOKEN();return this.consumeToken(),r}throw new S2("sad sad panda")}canPerformInRuleRecovery(n,s){return this.canRecoverWithSingleTokenInsertion(n,s)||this.canRecoverWithSingleTokenDeletion(n)}canRecoverWithSingleTokenInsertion(n,s){if(!this.canTokenTypeBeInsertedInRecovery(n)||jt(s))return!1;const r=this.LA(1);return ds(s,c=>this.tokenMatcher(r,c))!==void 0}canRecoverWithSingleTokenDeletion(n){return this.canTokenTypeBeDeletedInRecovery(n)?this.tokenMatcher(this.LA(2),n):!1}isInCurrentRuleReSyncSet(n){const s=this.getCurrFollowKey(),r=this.getFollowSetFromFollowKey(s);return Se(r,n)}findReSyncTokenType(){const n=this.flattenFollowSet();let s=this.LA(1),r=2;for(;;){const u=ds(n,c=>GC(s,c));if(u!==void 0)return u;s=this.LA(r),r++}}getCurrFollowKey(){if(this.RULE_STACK.length===1)return Bf;const n=this.getLastExplicitRuleShortName(),s=this.getLastExplicitRuleOccurrenceIndex(),r=this.getPreviousExplicitRuleShortName();return{ruleName:this.shortRuleNameToFullName(n),idxInCallingRule:s,inRule:this.shortRuleNameToFullName(r)}}buildFullFollowKeyStack(){const n=this.RULE_STACK,s=this.RULE_OCCURRENCE_STACK;return rt(n,(r,u)=>u===0?Bf:{ruleName:this.shortRuleNameToFullName(r),idxInCallingRule:s[u],inRule:this.shortRuleNameToFullName(n[u-1])})}flattenFollowSet(){const n=rt(this.buildFullFollowKeyStack(),s=>this.getFollowSetFromFollowKey(s));return En(n)}getFollowSetFromFollowKey(n){if(n===Bf)return[pa];const s=n.ruleName+n.idxInCallingRule+j0+n.inRule;return this.resyncFollows[s]}addToResyncTokens(n,s){return this.tokenMatcher(n,pa)||s.push(n),s}reSyncTo(n){const s=[];let r=this.LA(1);for(;this.tokenMatcher(r,n)===!1;)r=this.SKIP_TOKEN(),this.addToResyncTokens(r,s);return Cr(s)}attemptInRepetitionRecovery(n,s,r,u,c,h,_){}getCurrentGrammarPath(n,s){const r=this.getHumanReadableRuleStack(),u=ge(this.RULE_OCCURRENCE_STACK);return{ruleStack:r,occurrenceStack:u,lastTok:n,lastTokOccurrence:s}}getHumanReadableRuleStack(){return rt(this.RULE_STACK,n=>this.shortRuleNameToFullName(n))}}function O2(i,n,s,r,u,c,h){const _=this.getKeyForAutomaticLookahead(r,u);let d=this.firstAfterRepMap[_];if(d===void 0){const A=this.getCurrRuleFullName(),j=this.getGAstProductions()[A];d=new c(j,u).startWalking(),this.firstAfterRepMap[_]=d}let g=d.token,b=d.occurrence;const E=d.isEndOfRule;this.RULE_STACK.length===1&&E&&g===void 0&&(g=pa,b=1),!(g===void 0||b===void 0)&&this.shouldInRepetitionRecoveryBeTried(g,b,h)&&this.tryInRepetitionRecovery(i,n,s,g)}const N2=4,qi=8,cv=1<<qi,fv=2<<qi,hh=3<<qi,dh=4<<qi,_h=5<<qi,bu=6<<qi;function Df(i,n,s){return s|n|i}class R2{constructor(n){var s;this.maxLookahead=(s=n?.maxLookahead)!==null&&s!==void 0?s:ui.maxLookahead}validate(n){const s=this.validateNoLeftRecursion(n.rules);if(jt(s)){const r=this.validateEmptyOrAlternatives(n.rules),u=this.validateAmbiguousAlternationAlternatives(n.rules,this.maxLookahead),c=this.validateSomeNonEmptyLookaheadPath(n.rules,this.maxLookahead);return[...s,...r,...u,...c]}return s}validateNoLeftRecursion(n){return fn(n,s=>nv(s,s,oa))}validateEmptyOrAlternatives(n){return fn(n,s=>c2(s,oa))}validateAmbiguousAlternationAlternatives(n,s){return fn(n,r=>f2(r,s,oa))}validateSomeNonEmptyLookaheadPath(n,s){return _2(n,s,oa)}buildLookaheadForAlternation(n){return QC(n.prodOccurrence,n.rule,n.maxLookahead,n.hasPredicates,n.dynamicTokensEnabled,WC)}buildLookaheadForOptional(n){return ZC(n.prodOccurrence,n.rule,n.maxLookahead,n.dynamicTokensEnabled,Z0(n.prodType),JC)}}class x2{initLooksAhead(n){this.dynamicTokensEnabled=ft(n,"dynamicTokensEnabled")?n.dynamicTokensEnabled:ui.dynamicTokensEnabled,this.maxLookahead=ft(n,"maxLookahead")?n.maxLookahead:ui.maxLookahead,this.lookaheadStrategy=ft(n,"lookaheadStrategy")?n.lookaheadStrategy:new R2({maxLookahead:this.maxLookahead}),this.lookAheadFuncsCache=new Map}preComputeLookaheadFunctions(n){ht(n,s=>{this.TRACE_INIT(`${s.name} Rule Lookahead`,()=>{const{alternation:r,repetition:u,option:c,repetitionMandatory:h,repetitionMandatoryWithSeparator:_,repetitionWithSeparator:d}=L2(s);ht(r,g=>{const b=g.idx===0?"":g.idx;this.TRACE_INIT(`${Un(g)}${b}`,()=>{const E=this.lookaheadStrategy.buildLookaheadForAlternation({prodOccurrence:g.idx,rule:s,maxLookahead:g.maxLookahead||this.maxLookahead,hasPredicates:g.hasPredicates,dynamicTokensEnabled:this.dynamicTokensEnabled}),A=Df(this.fullRuleNameToShort[s.name],cv,g.idx);this.setLaFuncCache(A,E)})}),ht(u,g=>{this.computeLookaheadFunc(s,g.idx,hh,"Repetition",g.maxLookahead,Un(g))}),ht(c,g=>{this.computeLookaheadFunc(s,g.idx,fv,"Option",g.maxLookahead,Un(g))}),ht(h,g=>{this.computeLookaheadFunc(s,g.idx,dh,"RepetitionMandatory",g.maxLookahead,Un(g))}),ht(_,g=>{this.computeLookaheadFunc(s,g.idx,bu,"RepetitionMandatoryWithSeparator",g.maxLookahead,Un(g))}),ht(d,g=>{this.computeLookaheadFunc(s,g.idx,_h,"RepetitionWithSeparator",g.maxLookahead,Un(g))})})})}computeLookaheadFunc(n,s,r,u,c,h){this.TRACE_INIT(`${h}${s===0?"":s}`,()=>{const _=this.lookaheadStrategy.buildLookaheadForOptional({prodOccurrence:s,rule:n,maxLookahead:c||this.maxLookahead,dynamicTokensEnabled:this.dynamicTokensEnabled,prodType:u}),d=Df(this.fullRuleNameToShort[n.name],r,s);this.setLaFuncCache(d,_)})}getKeyForAutomaticLookahead(n,s){const r=this.getLastExplicitRuleShortName();return Df(r,n,s)}getLaFuncFromCache(n){return this.lookAheadFuncsCache.get(n)}setLaFuncCache(n,s){this.lookAheadFuncsCache.set(n,s)}}class C2 extends ps{constructor(){super(...arguments),this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}}reset(){this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}}visitOption(n){this.dslMethods.option.push(n)}visitRepetitionWithSeparator(n){this.dslMethods.repetitionWithSeparator.push(n)}visitRepetitionMandatory(n){this.dslMethods.repetitionMandatory.push(n)}visitRepetitionMandatoryWithSeparator(n){this.dslMethods.repetitionMandatoryWithSeparator.push(n)}visitRepetition(n){this.dslMethods.repetition.push(n)}visitAlternation(n){this.dslMethods.alternation.push(n)}}const ou=new C2;function L2(i){ou.reset(),i.accept(ou);const n=ou.dslMethods;return ou.reset(),n}function py(i,n){isNaN(i.startOffset)===!0?(i.startOffset=n.startOffset,i.endOffset=n.endOffset):i.endOffset<n.endOffset&&(i.endOffset=n.endOffset)}function gy(i,n){isNaN(i.startOffset)===!0?(i.startOffset=n.startOffset,i.startColumn=n.startColumn,i.startLine=n.startLine,i.endOffset=n.endOffset,i.endColumn=n.endColumn,i.endLine=n.endLine):i.endOffset<n.endOffset&&(i.endOffset=n.endOffset,i.endColumn=n.endColumn,i.endLine=n.endLine)}function w2(i,n,s){i.children[s]===void 0?i.children[s]=[n]:i.children[s].push(n)}function M2(i,n,s){i.children[n]===void 0?i.children[n]=[s]:i.children[n].push(s)}const U2="name";function hv(i,n){Object.defineProperty(i,U2,{enumerable:!1,configurable:!0,writable:!1,value:n})}function I2(i,n){const s=_n(i),r=s.length;for(let u=0;u<r;u++){const c=s[u],h=i[c],_=h.length;for(let d=0;d<_;d++){const g=h[d];g.tokenTypeIdx===void 0&&this[g.name](g.children,n)}}}function k2(i,n){const s=function(){};hv(s,i+"BaseSemantics");const r={visit:function(u,c){if(xt(u)&&(u=u[0]),!li(u))return this[u.name](u.children,c)},validateVisitor:function(){const u=B2(this,n);if(!jt(u)){const c=rt(u,h=>h.msg);throw Error(`Errors Detected in CST Visitor <${this.constructor.name}>:
103
103
  ${c.join(`
104
104
 
105
105
  `).replace(/\n/g,`
106
- `)}`)}}};return s.prototype=r,s.prototype.constructor=s,s._RULE_NAMES=n,s}function U2(i,n,s){const r=function(){};dv(r,i+"BaseSemanticsWithDefaults");const u=Object.create(s.prototype);return ht(n,c=>{u[c]=w2}),r.prototype=u,r.prototype.constructor=r,r}var _h;(function(i){i[i.REDUNDANT_METHOD=0]="REDUNDANT_METHOD",i[i.MISSING_METHOD=1]="MISSING_METHOD"})(_h||(_h={}));function I2(i,n){return k2(i,n)}function k2(i,n){const s=pn(n,u=>oi(i[u])===!1),r=rt(s,u=>({msg:`Missing visitor method: <${u}> on ${i.constructor.name} CST Visitor.`,type:_h.MISSING_METHOD,methodName:u}));return Ur(r)}class z2{initTreeBuilder(n){if(this.CST_STACK=[],this.outputCst=n.outputCst,this.nodeLocationTracking=ft(n,"nodeLocationTracking")?n.nodeLocationTracking:ui.nodeLocationTracking,!this.outputCst)this.cstInvocationStateUpdate=ae,this.cstFinallyStateUpdate=ae,this.cstPostTerminal=ae,this.cstPostNonTerminal=ae,this.cstPostRule=ae;else if(/full/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=my,this.setNodeLocationFromNode=my,this.cstPostRule=ae,this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery):(this.setNodeLocationFromToken=ae,this.setNodeLocationFromNode=ae,this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular);else if(/onlyOffset/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=gy,this.setNodeLocationFromNode=gy,this.cstPostRule=ae,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery):(this.setNodeLocationFromToken=ae,this.setNodeLocationFromNode=ae,this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular);else if(/none/i.test(this.nodeLocationTracking))this.setNodeLocationFromToken=ae,this.setNodeLocationFromNode=ae,this.cstPostRule=ae,this.setInitialNodeLocation=ae;else throw Error(`Invalid <nodeLocationTracking> config option: "${n.nodeLocationTracking}"`)}setInitialNodeLocationOnlyOffsetRecovery(n){n.location={startOffset:NaN,endOffset:NaN}}setInitialNodeLocationOnlyOffsetRegular(n){n.location={startOffset:this.LA(1).startOffset,endOffset:NaN}}setInitialNodeLocationFullRecovery(n){n.location={startOffset:NaN,startLine:NaN,startColumn:NaN,endOffset:NaN,endLine:NaN,endColumn:NaN}}setInitialNodeLocationFullRegular(n){const s=this.LA(1);n.location={startOffset:s.startOffset,startLine:s.startLine,startColumn:s.startColumn,endOffset:NaN,endLine:NaN,endColumn:NaN}}cstInvocationStateUpdate(n){const s={name:n,children:Object.create(null)};this.setInitialNodeLocation(s),this.CST_STACK.push(s)}cstFinallyStateUpdate(){this.CST_STACK.pop()}cstPostRuleFull(n){const s=this.LA(0),r=n.location;r.startOffset<=s.startOffset?(r.endOffset=s.endOffset,r.endLine=s.endLine,r.endColumn=s.endColumn):(r.startOffset=NaN,r.startLine=NaN,r.startColumn=NaN)}cstPostRuleOnlyOffset(n){const s=this.LA(0),r=n.location;r.startOffset<=s.startOffset?r.endOffset=s.endOffset:r.startOffset=NaN}cstPostTerminal(n,s){const r=this.CST_STACK[this.CST_STACK.length-1];x2(r,s,n),this.setNodeLocationFromToken(r.location,s)}cstPostNonTerminal(n,s){const r=this.CST_STACK[this.CST_STACK.length-1];C2(r,s,n),this.setNodeLocationFromNode(r.location,n.location)}getBaseCstVisitorConstructor(){if(li(this.baseCstVisitorConstructor)){const n=M2(this.className,_n(this.gastProductionsCache));return this.baseCstVisitorConstructor=n,n}return this.baseCstVisitorConstructor}getBaseCstVisitorConstructorWithDefaults(){if(li(this.baseCstVisitorWithDefaultsConstructor)){const n=U2(this.className,_n(this.gastProductionsCache),this.getBaseCstVisitorConstructor());return this.baseCstVisitorWithDefaultsConstructor=n,n}return this.baseCstVisitorWithDefaultsConstructor}getLastExplicitRuleShortName(){const n=this.RULE_STACK;return n[n.length-1]}getPreviousExplicitRuleShortName(){const n=this.RULE_STACK;return n[n.length-2]}getLastExplicitRuleOccurrenceIndex(){const n=this.RULE_OCCURRENCE_STACK;return n[n.length-1]}}class B2{initLexerAdapter(){this.tokVector=[],this.tokVectorLength=0,this.currIdx=-1}set input(n){if(this.selfAnalysisDone!==!0)throw Error("Missing <performSelfAnalysis> invocation at the end of the Parser's constructor.");this.reset(),this.tokVector=n,this.tokVectorLength=n.length}get input(){return this.tokVector}SKIP_TOKEN(){return this.currIdx<=this.tokVector.length-2?(this.consumeToken(),this.LA(1)):Uu}LA(n){const s=this.currIdx+n;return s<0||this.tokVectorLength<=s?Uu:this.tokVector[s]}consumeToken(){this.currIdx++}exportLexerState(){return this.currIdx}importLexerState(n){this.currIdx=n}resetLexerState(){this.currIdx=-1}moveToTerminatedState(){this.currIdx=this.tokVector.length-1}getLexerPosition(){return this.exportLexerState()}}class D2{ACTION(n){return n.call(this)}consume(n,s,r){return this.consumeInternal(s,n,r)}subrule(n,s,r){return this.subruleInternal(s,n,r)}option(n,s){return this.optionInternal(s,n)}or(n,s){return this.orInternal(s,n)}many(n,s){return this.manyInternal(n,s)}atLeastOne(n,s){return this.atLeastOneInternal(n,s)}CONSUME(n,s){return this.consumeInternal(n,0,s)}CONSUME1(n,s){return this.consumeInternal(n,1,s)}CONSUME2(n,s){return this.consumeInternal(n,2,s)}CONSUME3(n,s){return this.consumeInternal(n,3,s)}CONSUME4(n,s){return this.consumeInternal(n,4,s)}CONSUME5(n,s){return this.consumeInternal(n,5,s)}CONSUME6(n,s){return this.consumeInternal(n,6,s)}CONSUME7(n,s){return this.consumeInternal(n,7,s)}CONSUME8(n,s){return this.consumeInternal(n,8,s)}CONSUME9(n,s){return this.consumeInternal(n,9,s)}SUBRULE(n,s){return this.subruleInternal(n,0,s)}SUBRULE1(n,s){return this.subruleInternal(n,1,s)}SUBRULE2(n,s){return this.subruleInternal(n,2,s)}SUBRULE3(n,s){return this.subruleInternal(n,3,s)}SUBRULE4(n,s){return this.subruleInternal(n,4,s)}SUBRULE5(n,s){return this.subruleInternal(n,5,s)}SUBRULE6(n,s){return this.subruleInternal(n,6,s)}SUBRULE7(n,s){return this.subruleInternal(n,7,s)}SUBRULE8(n,s){return this.subruleInternal(n,8,s)}SUBRULE9(n,s){return this.subruleInternal(n,9,s)}OPTION(n){return this.optionInternal(n,0)}OPTION1(n){return this.optionInternal(n,1)}OPTION2(n){return this.optionInternal(n,2)}OPTION3(n){return this.optionInternal(n,3)}OPTION4(n){return this.optionInternal(n,4)}OPTION5(n){return this.optionInternal(n,5)}OPTION6(n){return this.optionInternal(n,6)}OPTION7(n){return this.optionInternal(n,7)}OPTION8(n){return this.optionInternal(n,8)}OPTION9(n){return this.optionInternal(n,9)}OR(n){return this.orInternal(n,0)}OR1(n){return this.orInternal(n,1)}OR2(n){return this.orInternal(n,2)}OR3(n){return this.orInternal(n,3)}OR4(n){return this.orInternal(n,4)}OR5(n){return this.orInternal(n,5)}OR6(n){return this.orInternal(n,6)}OR7(n){return this.orInternal(n,7)}OR8(n){return this.orInternal(n,8)}OR9(n){return this.orInternal(n,9)}MANY(n){this.manyInternal(0,n)}MANY1(n){this.manyInternal(1,n)}MANY2(n){this.manyInternal(2,n)}MANY3(n){this.manyInternal(3,n)}MANY4(n){this.manyInternal(4,n)}MANY5(n){this.manyInternal(5,n)}MANY6(n){this.manyInternal(6,n)}MANY7(n){this.manyInternal(7,n)}MANY8(n){this.manyInternal(8,n)}MANY9(n){this.manyInternal(9,n)}MANY_SEP(n){this.manySepFirstInternal(0,n)}MANY_SEP1(n){this.manySepFirstInternal(1,n)}MANY_SEP2(n){this.manySepFirstInternal(2,n)}MANY_SEP3(n){this.manySepFirstInternal(3,n)}MANY_SEP4(n){this.manySepFirstInternal(4,n)}MANY_SEP5(n){this.manySepFirstInternal(5,n)}MANY_SEP6(n){this.manySepFirstInternal(6,n)}MANY_SEP7(n){this.manySepFirstInternal(7,n)}MANY_SEP8(n){this.manySepFirstInternal(8,n)}MANY_SEP9(n){this.manySepFirstInternal(9,n)}AT_LEAST_ONE(n){this.atLeastOneInternal(0,n)}AT_LEAST_ONE1(n){return this.atLeastOneInternal(1,n)}AT_LEAST_ONE2(n){this.atLeastOneInternal(2,n)}AT_LEAST_ONE3(n){this.atLeastOneInternal(3,n)}AT_LEAST_ONE4(n){this.atLeastOneInternal(4,n)}AT_LEAST_ONE5(n){this.atLeastOneInternal(5,n)}AT_LEAST_ONE6(n){this.atLeastOneInternal(6,n)}AT_LEAST_ONE7(n){this.atLeastOneInternal(7,n)}AT_LEAST_ONE8(n){this.atLeastOneInternal(8,n)}AT_LEAST_ONE9(n){this.atLeastOneInternal(9,n)}AT_LEAST_ONE_SEP(n){this.atLeastOneSepFirstInternal(0,n)}AT_LEAST_ONE_SEP1(n){this.atLeastOneSepFirstInternal(1,n)}AT_LEAST_ONE_SEP2(n){this.atLeastOneSepFirstInternal(2,n)}AT_LEAST_ONE_SEP3(n){this.atLeastOneSepFirstInternal(3,n)}AT_LEAST_ONE_SEP4(n){this.atLeastOneSepFirstInternal(4,n)}AT_LEAST_ONE_SEP5(n){this.atLeastOneSepFirstInternal(5,n)}AT_LEAST_ONE_SEP6(n){this.atLeastOneSepFirstInternal(6,n)}AT_LEAST_ONE_SEP7(n){this.atLeastOneSepFirstInternal(7,n)}AT_LEAST_ONE_SEP8(n){this.atLeastOneSepFirstInternal(8,n)}AT_LEAST_ONE_SEP9(n){this.atLeastOneSepFirstInternal(9,n)}RULE(n,s,r=Iu){if(Se(this.definedRulesNames,n)){const h={message:oa.buildDuplicateRuleNameError({topLevelRule:n,grammarName:this.className}),type:be.DUPLICATE_RULE_NAME,ruleName:n};this.definitionErrors.push(h)}this.definedRulesNames.push(n);const u=this.defineRule(n,s,r);return this[n]=u,u}OVERRIDE_RULE(n,s,r=Iu){const u=r2(n,this.definedRulesNames,this.className);this.definitionErrors=this.definitionErrors.concat(u);const c=this.defineRule(n,s,r);return this[n]=c,c}BACKTRACK(n,s){return function(){this.isBackTrackingStack.push(1);const r=this.saveRecogState();try{return n.apply(this,s),!0}catch(u){if(wu(u))return!1;throw u}finally{this.reloadRecogState(r),this.isBackTrackingStack.pop()}}}getGAstProductions(){return this.gastProductionsCache}getSerializedGastProductions(){return jx(se(this.gastProductionsCache))}}class j2{initRecognizerEngine(n,s){if(this.className=this.constructor.name,this.shortRuleNameToFull={},this.fullRuleNameToShort={},this.ruleShortNameIdx=256,this.tokenMatcher=Lu,this.subruleIdx=0,this.definedRulesNames=[],this.tokensMap={},this.isBackTrackingStack=[],this.RULE_STACK=[],this.RULE_OCCURRENCE_STACK=[],this.gastProductionsCache={},ft(s,"serializedGrammar"))throw Error(`The Parser's configuration can no longer contain a <serializedGrammar> property.
106
+ `)}`)}}};return s.prototype=r,s.prototype.constructor=s,s._RULE_NAMES=n,s}function z2(i,n,s){const r=function(){};hv(r,i+"BaseSemanticsWithDefaults");const u=Object.create(s.prototype);return ht(n,c=>{u[c]=I2}),r.prototype=u,r.prototype.constructor=r,r}var ph;(function(i){i[i.REDUNDANT_METHOD=0]="REDUNDANT_METHOD",i[i.MISSING_METHOD=1]="MISSING_METHOD"})(ph||(ph={}));function B2(i,n){return D2(i,n)}function D2(i,n){const s=pn(n,u=>oi(i[u])===!1),r=rt(s,u=>({msg:`Missing visitor method: <${u}> on ${i.constructor.name} CST Visitor.`,type:ph.MISSING_METHOD,methodName:u}));return Ir(r)}class j2{initTreeBuilder(n){if(this.CST_STACK=[],this.outputCst=n.outputCst,this.nodeLocationTracking=ft(n,"nodeLocationTracking")?n.nodeLocationTracking:ui.nodeLocationTracking,!this.outputCst)this.cstInvocationStateUpdate=ae,this.cstFinallyStateUpdate=ae,this.cstPostTerminal=ae,this.cstPostNonTerminal=ae,this.cstPostRule=ae;else if(/full/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=gy,this.setNodeLocationFromNode=gy,this.cstPostRule=ae,this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery):(this.setNodeLocationFromToken=ae,this.setNodeLocationFromNode=ae,this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular);else if(/onlyOffset/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=py,this.setNodeLocationFromNode=py,this.cstPostRule=ae,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery):(this.setNodeLocationFromToken=ae,this.setNodeLocationFromNode=ae,this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular);else if(/none/i.test(this.nodeLocationTracking))this.setNodeLocationFromToken=ae,this.setNodeLocationFromNode=ae,this.cstPostRule=ae,this.setInitialNodeLocation=ae;else throw Error(`Invalid <nodeLocationTracking> config option: "${n.nodeLocationTracking}"`)}setInitialNodeLocationOnlyOffsetRecovery(n){n.location={startOffset:NaN,endOffset:NaN}}setInitialNodeLocationOnlyOffsetRegular(n){n.location={startOffset:this.LA(1).startOffset,endOffset:NaN}}setInitialNodeLocationFullRecovery(n){n.location={startOffset:NaN,startLine:NaN,startColumn:NaN,endOffset:NaN,endLine:NaN,endColumn:NaN}}setInitialNodeLocationFullRegular(n){const s=this.LA(1);n.location={startOffset:s.startOffset,startLine:s.startLine,startColumn:s.startColumn,endOffset:NaN,endLine:NaN,endColumn:NaN}}cstInvocationStateUpdate(n){const s={name:n,children:Object.create(null)};this.setInitialNodeLocation(s),this.CST_STACK.push(s)}cstFinallyStateUpdate(){this.CST_STACK.pop()}cstPostRuleFull(n){const s=this.LA(0),r=n.location;r.startOffset<=s.startOffset?(r.endOffset=s.endOffset,r.endLine=s.endLine,r.endColumn=s.endColumn):(r.startOffset=NaN,r.startLine=NaN,r.startColumn=NaN)}cstPostRuleOnlyOffset(n){const s=this.LA(0),r=n.location;r.startOffset<=s.startOffset?r.endOffset=s.endOffset:r.startOffset=NaN}cstPostTerminal(n,s){const r=this.CST_STACK[this.CST_STACK.length-1];w2(r,s,n),this.setNodeLocationFromToken(r.location,s)}cstPostNonTerminal(n,s){const r=this.CST_STACK[this.CST_STACK.length-1];M2(r,s,n),this.setNodeLocationFromNode(r.location,n.location)}getBaseCstVisitorConstructor(){if(li(this.baseCstVisitorConstructor)){const n=k2(this.className,_n(this.gastProductionsCache));return this.baseCstVisitorConstructor=n,n}return this.baseCstVisitorConstructor}getBaseCstVisitorConstructorWithDefaults(){if(li(this.baseCstVisitorWithDefaultsConstructor)){const n=z2(this.className,_n(this.gastProductionsCache),this.getBaseCstVisitorConstructor());return this.baseCstVisitorWithDefaultsConstructor=n,n}return this.baseCstVisitorWithDefaultsConstructor}getLastExplicitRuleShortName(){const n=this.RULE_STACK;return n[n.length-1]}getPreviousExplicitRuleShortName(){const n=this.RULE_STACK;return n[n.length-2]}getLastExplicitRuleOccurrenceIndex(){const n=this.RULE_OCCURRENCE_STACK;return n[n.length-1]}}class P2{initLexerAdapter(){this.tokVector=[],this.tokVectorLength=0,this.currIdx=-1}set input(n){if(this.selfAnalysisDone!==!0)throw Error("Missing <performSelfAnalysis> invocation at the end of the Parser's constructor.");this.reset(),this.tokVector=n,this.tokVectorLength=n.length}get input(){return this.tokVector}SKIP_TOKEN(){return this.currIdx<=this.tokVector.length-2?(this.consumeToken(),this.LA(1)):Iu}LA(n){const s=this.currIdx+n;return s<0||this.tokVectorLength<=s?Iu:this.tokVector[s]}consumeToken(){this.currIdx++}exportLexerState(){return this.currIdx}importLexerState(n){this.currIdx=n}resetLexerState(){this.currIdx=-1}moveToTerminatedState(){this.currIdx=this.tokVector.length-1}getLexerPosition(){return this.exportLexerState()}}class G2{ACTION(n){return n.call(this)}consume(n,s,r){return this.consumeInternal(s,n,r)}subrule(n,s,r){return this.subruleInternal(s,n,r)}option(n,s){return this.optionInternal(s,n)}or(n,s){return this.orInternal(s,n)}many(n,s){return this.manyInternal(n,s)}atLeastOne(n,s){return this.atLeastOneInternal(n,s)}CONSUME(n,s){return this.consumeInternal(n,0,s)}CONSUME1(n,s){return this.consumeInternal(n,1,s)}CONSUME2(n,s){return this.consumeInternal(n,2,s)}CONSUME3(n,s){return this.consumeInternal(n,3,s)}CONSUME4(n,s){return this.consumeInternal(n,4,s)}CONSUME5(n,s){return this.consumeInternal(n,5,s)}CONSUME6(n,s){return this.consumeInternal(n,6,s)}CONSUME7(n,s){return this.consumeInternal(n,7,s)}CONSUME8(n,s){return this.consumeInternal(n,8,s)}CONSUME9(n,s){return this.consumeInternal(n,9,s)}SUBRULE(n,s){return this.subruleInternal(n,0,s)}SUBRULE1(n,s){return this.subruleInternal(n,1,s)}SUBRULE2(n,s){return this.subruleInternal(n,2,s)}SUBRULE3(n,s){return this.subruleInternal(n,3,s)}SUBRULE4(n,s){return this.subruleInternal(n,4,s)}SUBRULE5(n,s){return this.subruleInternal(n,5,s)}SUBRULE6(n,s){return this.subruleInternal(n,6,s)}SUBRULE7(n,s){return this.subruleInternal(n,7,s)}SUBRULE8(n,s){return this.subruleInternal(n,8,s)}SUBRULE9(n,s){return this.subruleInternal(n,9,s)}OPTION(n){return this.optionInternal(n,0)}OPTION1(n){return this.optionInternal(n,1)}OPTION2(n){return this.optionInternal(n,2)}OPTION3(n){return this.optionInternal(n,3)}OPTION4(n){return this.optionInternal(n,4)}OPTION5(n){return this.optionInternal(n,5)}OPTION6(n){return this.optionInternal(n,6)}OPTION7(n){return this.optionInternal(n,7)}OPTION8(n){return this.optionInternal(n,8)}OPTION9(n){return this.optionInternal(n,9)}OR(n){return this.orInternal(n,0)}OR1(n){return this.orInternal(n,1)}OR2(n){return this.orInternal(n,2)}OR3(n){return this.orInternal(n,3)}OR4(n){return this.orInternal(n,4)}OR5(n){return this.orInternal(n,5)}OR6(n){return this.orInternal(n,6)}OR7(n){return this.orInternal(n,7)}OR8(n){return this.orInternal(n,8)}OR9(n){return this.orInternal(n,9)}MANY(n){this.manyInternal(0,n)}MANY1(n){this.manyInternal(1,n)}MANY2(n){this.manyInternal(2,n)}MANY3(n){this.manyInternal(3,n)}MANY4(n){this.manyInternal(4,n)}MANY5(n){this.manyInternal(5,n)}MANY6(n){this.manyInternal(6,n)}MANY7(n){this.manyInternal(7,n)}MANY8(n){this.manyInternal(8,n)}MANY9(n){this.manyInternal(9,n)}MANY_SEP(n){this.manySepFirstInternal(0,n)}MANY_SEP1(n){this.manySepFirstInternal(1,n)}MANY_SEP2(n){this.manySepFirstInternal(2,n)}MANY_SEP3(n){this.manySepFirstInternal(3,n)}MANY_SEP4(n){this.manySepFirstInternal(4,n)}MANY_SEP5(n){this.manySepFirstInternal(5,n)}MANY_SEP6(n){this.manySepFirstInternal(6,n)}MANY_SEP7(n){this.manySepFirstInternal(7,n)}MANY_SEP8(n){this.manySepFirstInternal(8,n)}MANY_SEP9(n){this.manySepFirstInternal(9,n)}AT_LEAST_ONE(n){this.atLeastOneInternal(0,n)}AT_LEAST_ONE1(n){return this.atLeastOneInternal(1,n)}AT_LEAST_ONE2(n){this.atLeastOneInternal(2,n)}AT_LEAST_ONE3(n){this.atLeastOneInternal(3,n)}AT_LEAST_ONE4(n){this.atLeastOneInternal(4,n)}AT_LEAST_ONE5(n){this.atLeastOneInternal(5,n)}AT_LEAST_ONE6(n){this.atLeastOneInternal(6,n)}AT_LEAST_ONE7(n){this.atLeastOneInternal(7,n)}AT_LEAST_ONE8(n){this.atLeastOneInternal(8,n)}AT_LEAST_ONE9(n){this.atLeastOneInternal(9,n)}AT_LEAST_ONE_SEP(n){this.atLeastOneSepFirstInternal(0,n)}AT_LEAST_ONE_SEP1(n){this.atLeastOneSepFirstInternal(1,n)}AT_LEAST_ONE_SEP2(n){this.atLeastOneSepFirstInternal(2,n)}AT_LEAST_ONE_SEP3(n){this.atLeastOneSepFirstInternal(3,n)}AT_LEAST_ONE_SEP4(n){this.atLeastOneSepFirstInternal(4,n)}AT_LEAST_ONE_SEP5(n){this.atLeastOneSepFirstInternal(5,n)}AT_LEAST_ONE_SEP6(n){this.atLeastOneSepFirstInternal(6,n)}AT_LEAST_ONE_SEP7(n){this.atLeastOneSepFirstInternal(7,n)}AT_LEAST_ONE_SEP8(n){this.atLeastOneSepFirstInternal(8,n)}AT_LEAST_ONE_SEP9(n){this.atLeastOneSepFirstInternal(9,n)}RULE(n,s,r=ku){if(Se(this.definedRulesNames,n)){const h={message:oa.buildDuplicateRuleNameError({topLevelRule:n,grammarName:this.className}),type:Te.DUPLICATE_RULE_NAME,ruleName:n};this.definitionErrors.push(h)}this.definedRulesNames.push(n);const u=this.defineRule(n,s,r);return this[n]=u,u}OVERRIDE_RULE(n,s,r=ku){const u=o2(n,this.definedRulesNames,this.className);this.definitionErrors=this.definitionErrors.concat(u);const c=this.defineRule(n,s,r);return this[n]=c,c}BACKTRACK(n,s){return function(){this.isBackTrackingStack.push(1);const r=this.saveRecogState();try{return n.apply(this,s),!0}catch(u){if(Mu(u))return!1;throw u}finally{this.reloadRecogState(r),this.isBackTrackingStack.pop()}}}getGAstProductions(){return this.gastProductionsCache}getSerializedGastProductions(){return qx(se(this.gastProductionsCache))}}class q2{initRecognizerEngine(n,s){if(this.className=this.constructor.name,this.shortRuleNameToFull={},this.fullRuleNameToShort={},this.ruleShortNameIdx=256,this.tokenMatcher=wu,this.subruleIdx=0,this.definedRulesNames=[],this.tokensMap={},this.isBackTrackingStack=[],this.RULE_STACK=[],this.RULE_OCCURRENCE_STACK=[],this.gastProductionsCache={},ft(s,"serializedGrammar"))throw Error(`The Parser's configuration can no longer contain a <serializedGrammar> property.
107
107
  See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_6-0-0
108
108
  For Further details.`);if(xt(n)){if(jt(n))throw Error(`A Token Vocabulary cannot be empty.
109
109
  Note that the first argument for the parser constructor
110
110
  is no longer a Token vector (since v4.0).`);if(typeof n[0].startOffset=="number")throw Error(`The Parser constructor no longer accepts a token vector as the first argument.
111
111
  See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_4-0-0
112
- For Further details.`)}if(xt(n))this.tokensMap=Ze(n,(c,h)=>(c[h.name]=h,c),{});else if(ft(n,"modes")&&bn(En(se(n.modes)),IC)){const c=En(se(n.modes)),h=qh(c);this.tokensMap=Ze(h,(_,d)=>(_[d.name]=d,_),{})}else if(dn(n))this.tokensMap=pe(n);else throw new Error("<tokensDictionary> argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition");this.tokensMap.EOF=pa;const r=ft(n,"modes")?En(se(n.modes)):se(n),u=bn(r,c=>jt(c.categoryMatches));this.tokenMatcher=u?Lu:kr,zr(se(this.tokensMap))}defineRule(n,s,r){if(this.selfAnalysisDone)throw Error(`Grammar rule <${n}> may not be defined after the 'performSelfAnalysis' method has been called'
113
- Make sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.`);const u=ft(r,"resyncEnabled")?r.resyncEnabled:Iu.resyncEnabled,c=ft(r,"recoveryValueFunc")?r.recoveryValueFunc:Iu.recoveryValueFunc,h=this.ruleShortNameIdx<<S2+Gi;this.ruleShortNameIdx++,this.shortRuleNameToFull[h]=n,this.fullRuleNameToShort[n]=h;let _;return this.outputCst===!0?_=function(...b){try{this.ruleInvocationStateUpdate(h,n,this.subruleIdx),s.apply(this,b);const E=this.CST_STACK[this.CST_STACK.length-1];return this.cstPostRule(E),E}catch(E){return this.invokeRuleCatch(E,u,c)}finally{this.ruleFinallyStateUpdate()}}:_=function(...b){try{return this.ruleInvocationStateUpdate(h,n,this.subruleIdx),s.apply(this,b)}catch(E){return this.invokeRuleCatch(E,u,c)}finally{this.ruleFinallyStateUpdate()}},Object.assign(_,{ruleName:n,originalGrammarAction:s})}invokeRuleCatch(n,s,r){const u=this.RULE_STACK.length===1,c=s&&!this.isBackTracking()&&this.recoveryEnabled;if(wu(n)){const h=n;if(c){const _=this.findReSyncTokenType();if(this.isInCurrentRuleReSyncSet(_))if(h.resyncedTokens=this.reSyncTo(_),this.outputCst){const d=this.CST_STACK[this.CST_STACK.length-1];return d.recoveredNode=!0,d}else return r(n);else{if(this.outputCst){const d=this.CST_STACK[this.CST_STACK.length-1];d.recoveredNode=!0,h.partialCstResult=d}throw h}}else{if(u)return this.moveToTerminatedState(),r(n);throw h}}else throw n}optionInternal(n,s){const r=this.getKeyForAutomaticLookahead(hv,s);return this.optionInternalLogic(n,s,r)}optionInternalLogic(n,s,r){let u=this.getLaFuncFromCache(r),c;if(typeof n!="function"){c=n.DEF;const h=n.GATE;if(h!==void 0){const _=u;u=()=>h.call(this)&&_.call(this)}}else c=n;if(u.call(this)===!0)return c.call(this)}atLeastOneInternal(n,s){const r=this.getKeyForAutomaticLookahead(hh,n);return this.atLeastOneInternalLogic(n,s,r)}atLeastOneInternalLogic(n,s,r){let u=this.getLaFuncFromCache(r),c;if(typeof s!="function"){c=s.DEF;const h=s.GATE;if(h!==void 0){const _=u;u=()=>h.call(this)&&_.call(this)}}else c=s;if(u.call(this)===!0){let h=this.doSingleRepetition(c);for(;u.call(this)===!0&&h===!0;)h=this.doSingleRepetition(c)}else throw this.raiseEarlyExitException(n,Xt.REPETITION_MANDATORY,s.ERR_MSG);this.attemptInRepetitionRecovery(this.atLeastOneInternal,[n,s],u,hh,n,KC)}atLeastOneSepFirstInternal(n,s){const r=this.getKeyForAutomaticLookahead(Eu,n);this.atLeastOneSepFirstInternalLogic(n,s,r)}atLeastOneSepFirstInternalLogic(n,s,r){const u=s.DEF,c=s.SEP;if(this.getLaFuncFromCache(r).call(this)===!0){u.call(this);const _=()=>this.tokenMatcher(this.LA(1),c);for(;this.tokenMatcher(this.LA(1),c)===!0;)this.CONSUME(c),u.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[n,c,_,u,_y],_,Eu,n,_y)}else throw this.raiseEarlyExitException(n,Xt.REPETITION_MANDATORY_WITH_SEPARATOR,s.ERR_MSG)}manyInternal(n,s){const r=this.getKeyForAutomaticLookahead(fh,n);return this.manyInternalLogic(n,s,r)}manyInternalLogic(n,s,r){let u=this.getLaFuncFromCache(r),c;if(typeof s!="function"){c=s.DEF;const _=s.GATE;if(_!==void 0){const d=u;u=()=>_.call(this)&&d.call(this)}}else c=s;let h=!0;for(;u.call(this)===!0&&h===!0;)h=this.doSingleRepetition(c);this.attemptInRepetitionRecovery(this.manyInternal,[n,s],u,fh,n,$C,h)}manySepFirstInternal(n,s){const r=this.getKeyForAutomaticLookahead(dh,n);this.manySepFirstInternalLogic(n,s,r)}manySepFirstInternalLogic(n,s,r){const u=s.DEF,c=s.SEP;if(this.getLaFuncFromCache(r).call(this)===!0){u.call(this);const _=()=>this.tokenMatcher(this.LA(1),c);for(;this.tokenMatcher(this.LA(1),c)===!0;)this.CONSUME(c),u.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[n,c,_,u,dy],_,dh,n,dy)}}repetitionSepSecondInternal(n,s,r,u,c){for(;r();)this.CONSUME(s),u.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[n,s,r,u,c],r,Eu,n,c)}doSingleRepetition(n){const s=this.getLexerPosition();return n.call(this),this.getLexerPosition()>s}orInternal(n,s){const r=this.getKeyForAutomaticLookahead(fv,s),u=xt(n)?n:n.DEF,h=this.getLaFuncFromCache(r).call(this,u);if(h!==void 0)return u[h].ALT.call(this);this.raiseNoAltException(s,n.ERR_MSG)}ruleFinallyStateUpdate(){if(this.RULE_STACK.pop(),this.RULE_OCCURRENCE_STACK.pop(),this.cstFinallyStateUpdate(),this.RULE_STACK.length===0&&this.isAtEndOfInput()===!1){const n=this.LA(1),s=this.errorMessageProvider.buildNotAllInputParsedMessage({firstRedundant:n,ruleName:this.getCurrRuleFullName()});this.SAVE_ERROR(new y2(s,n))}}subruleInternal(n,s,r){let u;try{const c=r!==void 0?r.ARGS:void 0;return this.subruleIdx=s,u=n.apply(this,c),this.cstPostNonTerminal(u,r!==void 0&&r.LABEL!==void 0?r.LABEL:n.ruleName),u}catch(c){throw this.subruleInternalError(c,r,n.ruleName)}}subruleInternalError(n,s,r){throw wu(n)&&n.partialCstResult!==void 0&&(this.cstPostNonTerminal(n.partialCstResult,s!==void 0&&s.LABEL!==void 0?s.LABEL:r),delete n.partialCstResult),n}consumeInternal(n,s,r){let u;try{const c=this.LA(1);this.tokenMatcher(c,n)===!0?(this.consumeToken(),u=c):this.consumeInternalError(n,c,r)}catch(c){u=this.consumeInternalRecovery(n,s,c)}return this.cstPostTerminal(r!==void 0&&r.LABEL!==void 0?r.LABEL:n.name,u),u}consumeInternalError(n,s,r){let u;const c=this.LA(0);throw r!==void 0&&r.ERR_MSG?u=r.ERR_MSG:u=this.errorMessageProvider.buildMismatchTokenMessage({expected:n,actual:s,previous:c,ruleName:this.getCurrRuleFullName()}),this.SAVE_ERROR(new ov(u,s,c))}consumeInternalRecovery(n,s,r){if(this.recoveryEnabled&&r.name==="MismatchedTokenException"&&!this.isBackTracking()){const u=this.getFollowsForInRuleRecovery(n,s);try{return this.tryInRuleRecovery(n,u)}catch(c){throw c.name===cv?r:c}}else throw r}saveRecogState(){const n=this.errors,s=pe(this.RULE_STACK);return{errors:n,lexerState:this.exportLexerState(),RULE_STACK:s,CST_STACK:this.CST_STACK}}reloadRecogState(n){this.errors=n.errors,this.importLexerState(n.lexerState),this.RULE_STACK=n.RULE_STACK}ruleInvocationStateUpdate(n,s,r){this.RULE_OCCURRENCE_STACK.push(r),this.RULE_STACK.push(n),this.cstInvocationStateUpdate(s)}isBackTracking(){return this.isBackTrackingStack.length!==0}getCurrRuleFullName(){const n=this.getLastExplicitRuleShortName();return this.shortRuleNameToFull[n]}shortRuleNameToFullName(n){return this.shortRuleNameToFull[n]}isAtEndOfInput(){return this.tokenMatcher(this.LA(1),pa)}reset(){this.resetLexerState(),this.subruleIdx=0,this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK=[],this.CST_STACK=[],this.RULE_OCCURRENCE_STACK=[]}}class P2{initErrorHandler(n){this._errors=[],this.errorMessageProvider=ft(n,"errorMessageProvider")?n.errorMessageProvider:ui.errorMessageProvider}SAVE_ERROR(n){if(wu(n))return n.context={ruleStack:this.getHumanReadableRuleStack(),ruleOccurrenceStack:pe(this.RULE_OCCURRENCE_STACK)},this._errors.push(n),n;throw Error("Trying to save an Error which is not a RecognitionException")}get errors(){return pe(this._errors)}set errors(n){this._errors=n}raiseEarlyExitException(n,s,r){const u=this.getCurrRuleFullName(),c=this.getGAstProductions()[u],_=Yh(n,c,s,this.maxLookahead)[0],d=[];for(let b=1;b<=this.maxLookahead;b++)d.push(this.LA(b));const g=this.errorMessageProvider.buildEarlyExitMessage({expectedIterationPaths:_,actual:d,previous:this.LA(0),customUserDescription:r,ruleName:u});throw this.SAVE_ERROR(new v2(g,this.LA(1),this.LA(0)))}raiseNoAltException(n,s){const r=this.getCurrRuleFullName(),u=this.getGAstProductions()[r],c=Vh(n,u,this.maxLookahead),h=[];for(let g=1;g<=this.maxLookahead;g++)h.push(this.LA(g));const _=this.LA(0),d=this.errorMessageProvider.buildNoViableAltMessage({expectedPathsPerAlt:c,actual:h,previous:_,customUserDescription:s,ruleName:this.getCurrRuleFullName()});throw this.SAVE_ERROR(new m2(d,this.LA(1),_))}}class G2{initContentAssist(){}computeContentAssist(n,s){const r=this.gastProductionsCache[n];if(li(r))throw Error(`Rule ->${n}<- does not exist in this grammar.`);return Z0([r],s,this.tokenMatcher,this.maxLookahead)}getNextPossibleTokenTypes(n){const s=Sn(n.ruleStack),u=this.getGAstProductions()[s];return new HC(u,n).startWalking()}}const to={description:"This Object indicates the Parser is during Recording Phase"};Object.freeze(to);const yy=!0,vy=Math.pow(2,Gi)-1,_v=Et({name:"RECORDING_PHASE_TOKEN",pattern:me.NA});zr([_v]);const pv=Kh(_v,`This IToken indicates the Parser is in Recording Phase
114
- See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`,-1,-1,-1,-1,-1,-1);Object.freeze(pv);const q2={name:`This CSTNode indicates the Parser is in Recording Phase
115
- See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`,children:{}};class H2{initGastRecorder(n){this.recordingProdStack=[],this.RECORDING_PHASE=!1}enableRecording(){this.RECORDING_PHASE=!0,this.TRACE_INIT("Enable Recording",()=>{for(let n=0;n<10;n++){const s=n>0?n:"";this[`CONSUME${s}`]=function(r,u){return this.consumeInternalRecord(r,n,u)},this[`SUBRULE${s}`]=function(r,u){return this.subruleInternalRecord(r,n,u)},this[`OPTION${s}`]=function(r){return this.optionInternalRecord(r,n)},this[`OR${s}`]=function(r){return this.orInternalRecord(r,n)},this[`MANY${s}`]=function(r){this.manyInternalRecord(n,r)},this[`MANY_SEP${s}`]=function(r){this.manySepFirstInternalRecord(n,r)},this[`AT_LEAST_ONE${s}`]=function(r){this.atLeastOneInternalRecord(n,r)},this[`AT_LEAST_ONE_SEP${s}`]=function(r){this.atLeastOneSepFirstInternalRecord(n,r)}}this.consume=function(n,s,r){return this.consumeInternalRecord(s,n,r)},this.subrule=function(n,s,r){return this.subruleInternalRecord(s,n,r)},this.option=function(n,s){return this.optionInternalRecord(s,n)},this.or=function(n,s){return this.orInternalRecord(s,n)},this.many=function(n,s){this.manyInternalRecord(n,s)},this.atLeastOne=function(n,s){this.atLeastOneInternalRecord(n,s)},this.ACTION=this.ACTION_RECORD,this.BACKTRACK=this.BACKTRACK_RECORD,this.LA=this.LA_RECORD})}disableRecording(){this.RECORDING_PHASE=!1,this.TRACE_INIT("Deleting Recording methods",()=>{const n=this;for(let s=0;s<10;s++){const r=s>0?s:"";delete n[`CONSUME${r}`],delete n[`SUBRULE${r}`],delete n[`OPTION${r}`],delete n[`OR${r}`],delete n[`MANY${r}`],delete n[`MANY_SEP${r}`],delete n[`AT_LEAST_ONE${r}`],delete n[`AT_LEAST_ONE_SEP${r}`]}delete n.consume,delete n.subrule,delete n.option,delete n.or,delete n.many,delete n.atLeastOne,delete n.ACTION,delete n.BACKTRACK,delete n.LA})}ACTION_RECORD(n){}BACKTRACK_RECORD(n,s){return()=>!0}LA_RECORD(n){return Uu}topLevelRuleRecord(n,s){try{const r=new ds({definition:[],name:n});return r.name=n,this.recordingProdStack.push(r),s.call(this),this.recordingProdStack.pop(),r}catch(r){if(r.KNOWN_RECORDER_ERROR!==!0)try{r.message=r.message+`
112
+ For Further details.`)}if(xt(n))this.tokensMap=Ze(n,(c,h)=>(c[h.name]=h,c),{});else if(ft(n,"modes")&&bn(En(se(n.modes)),BC)){const c=En(se(n.modes)),h=Gh(c);this.tokensMap=Ze(h,(_,d)=>(_[d.name]=d,_),{})}else if(dn(n))this.tokensMap=ge(n);else throw new Error("<tokensDictionary> argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition");this.tokensMap.EOF=pa;const r=ft(n,"modes")?En(se(n.modes)):se(n),u=bn(r,c=>jt(c.categoryMatches));this.tokenMatcher=u?wu:zr,Br(se(this.tokensMap))}defineRule(n,s,r){if(this.selfAnalysisDone)throw Error(`Grammar rule <${n}> may not be defined after the 'performSelfAnalysis' method has been called'
113
+ Make sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.`);const u=ft(r,"resyncEnabled")?r.resyncEnabled:ku.resyncEnabled,c=ft(r,"recoveryValueFunc")?r.recoveryValueFunc:ku.recoveryValueFunc,h=this.ruleShortNameIdx<<N2+qi;this.ruleShortNameIdx++,this.shortRuleNameToFull[h]=n,this.fullRuleNameToShort[n]=h;let _;return this.outputCst===!0?_=function(...b){try{this.ruleInvocationStateUpdate(h,n,this.subruleIdx),s.apply(this,b);const E=this.CST_STACK[this.CST_STACK.length-1];return this.cstPostRule(E),E}catch(E){return this.invokeRuleCatch(E,u,c)}finally{this.ruleFinallyStateUpdate()}}:_=function(...b){try{return this.ruleInvocationStateUpdate(h,n,this.subruleIdx),s.apply(this,b)}catch(E){return this.invokeRuleCatch(E,u,c)}finally{this.ruleFinallyStateUpdate()}},Object.assign(_,{ruleName:n,originalGrammarAction:s})}invokeRuleCatch(n,s,r){const u=this.RULE_STACK.length===1,c=s&&!this.isBackTracking()&&this.recoveryEnabled;if(Mu(n)){const h=n;if(c){const _=this.findReSyncTokenType();if(this.isInCurrentRuleReSyncSet(_))if(h.resyncedTokens=this.reSyncTo(_),this.outputCst){const d=this.CST_STACK[this.CST_STACK.length-1];return d.recoveredNode=!0,d}else return r(n);else{if(this.outputCst){const d=this.CST_STACK[this.CST_STACK.length-1];d.recoveredNode=!0,h.partialCstResult=d}throw h}}else{if(u)return this.moveToTerminatedState(),r(n);throw h}}else throw n}optionInternal(n,s){const r=this.getKeyForAutomaticLookahead(fv,s);return this.optionInternalLogic(n,s,r)}optionInternalLogic(n,s,r){let u=this.getLaFuncFromCache(r),c;if(typeof n!="function"){c=n.DEF;const h=n.GATE;if(h!==void 0){const _=u;u=()=>h.call(this)&&_.call(this)}}else c=n;if(u.call(this)===!0)return c.call(this)}atLeastOneInternal(n,s){const r=this.getKeyForAutomaticLookahead(dh,n);return this.atLeastOneInternalLogic(n,s,r)}atLeastOneInternalLogic(n,s,r){let u=this.getLaFuncFromCache(r),c;if(typeof s!="function"){c=s.DEF;const h=s.GATE;if(h!==void 0){const _=u;u=()=>h.call(this)&&_.call(this)}}else c=s;if(u.call(this)===!0){let h=this.doSingleRepetition(c);for(;u.call(this)===!0&&h===!0;)h=this.doSingleRepetition(c)}else throw this.raiseEarlyExitException(n,Ft.REPETITION_MANDATORY,s.ERR_MSG);this.attemptInRepetitionRecovery(this.atLeastOneInternal,[n,s],u,dh,n,FC)}atLeastOneSepFirstInternal(n,s){const r=this.getKeyForAutomaticLookahead(bu,n);this.atLeastOneSepFirstInternalLogic(n,s,r)}atLeastOneSepFirstInternalLogic(n,s,r){const u=s.DEF,c=s.SEP;if(this.getLaFuncFromCache(r).call(this)===!0){u.call(this);const _=()=>this.tokenMatcher(this.LA(1),c);for(;this.tokenMatcher(this.LA(1),c)===!0;)this.CONSUME(c),u.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[n,c,_,u,dy],_,bu,n,dy)}else throw this.raiseEarlyExitException(n,Ft.REPETITION_MANDATORY_WITH_SEPARATOR,s.ERR_MSG)}manyInternal(n,s){const r=this.getKeyForAutomaticLookahead(hh,n);return this.manyInternalLogic(n,s,r)}manyInternalLogic(n,s,r){let u=this.getLaFuncFromCache(r),c;if(typeof s!="function"){c=s.DEF;const _=s.GATE;if(_!==void 0){const d=u;u=()=>_.call(this)&&d.call(this)}}else c=s;let h=!0;for(;u.call(this)===!0&&h===!0;)h=this.doSingleRepetition(c);this.attemptInRepetitionRecovery(this.manyInternal,[n,s],u,hh,n,YC,h)}manySepFirstInternal(n,s){const r=this.getKeyForAutomaticLookahead(_h,n);this.manySepFirstInternalLogic(n,s,r)}manySepFirstInternalLogic(n,s,r){const u=s.DEF,c=s.SEP;if(this.getLaFuncFromCache(r).call(this)===!0){u.call(this);const _=()=>this.tokenMatcher(this.LA(1),c);for(;this.tokenMatcher(this.LA(1),c)===!0;)this.CONSUME(c),u.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[n,c,_,u,hy],_,_h,n,hy)}}repetitionSepSecondInternal(n,s,r,u,c){for(;r();)this.CONSUME(s),u.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[n,s,r,u,c],r,bu,n,c)}doSingleRepetition(n){const s=this.getLexerPosition();return n.call(this),this.getLexerPosition()>s}orInternal(n,s){const r=this.getKeyForAutomaticLookahead(cv,s),u=xt(n)?n:n.DEF,h=this.getLaFuncFromCache(r).call(this,u);if(h!==void 0)return u[h].ALT.call(this);this.raiseNoAltException(s,n.ERR_MSG)}ruleFinallyStateUpdate(){if(this.RULE_STACK.pop(),this.RULE_OCCURRENCE_STACK.pop(),this.cstFinallyStateUpdate(),this.RULE_STACK.length===0&&this.isAtEndOfInput()===!1){const n=this.LA(1),s=this.errorMessageProvider.buildNotAllInputParsedMessage({firstRedundant:n,ruleName:this.getCurrRuleFullName()});this.SAVE_ERROR(new b2(s,n))}}subruleInternal(n,s,r){let u;try{const c=r!==void 0?r.ARGS:void 0;return this.subruleIdx=s,u=n.apply(this,c),this.cstPostNonTerminal(u,r!==void 0&&r.LABEL!==void 0?r.LABEL:n.ruleName),u}catch(c){throw this.subruleInternalError(c,r,n.ruleName)}}subruleInternalError(n,s,r){throw Mu(n)&&n.partialCstResult!==void 0&&(this.cstPostNonTerminal(n.partialCstResult,s!==void 0&&s.LABEL!==void 0?s.LABEL:r),delete n.partialCstResult),n}consumeInternal(n,s,r){let u;try{const c=this.LA(1);this.tokenMatcher(c,n)===!0?(this.consumeToken(),u=c):this.consumeInternalError(n,c,r)}catch(c){u=this.consumeInternalRecovery(n,s,c)}return this.cstPostTerminal(r!==void 0&&r.LABEL!==void 0?r.LABEL:n.name,u),u}consumeInternalError(n,s,r){let u;const c=this.LA(0);throw r!==void 0&&r.ERR_MSG?u=r.ERR_MSG:u=this.errorMessageProvider.buildMismatchTokenMessage({expected:n,actual:s,previous:c,ruleName:this.getCurrRuleFullName()}),this.SAVE_ERROR(new uv(u,s,c))}consumeInternalRecovery(n,s,r){if(this.recoveryEnabled&&r.name==="MismatchedTokenException"&&!this.isBackTracking()){const u=this.getFollowsForInRuleRecovery(n,s);try{return this.tryInRuleRecovery(n,u)}catch(c){throw c.name===ov?r:c}}else throw r}saveRecogState(){const n=this.errors,s=ge(this.RULE_STACK);return{errors:n,lexerState:this.exportLexerState(),RULE_STACK:s,CST_STACK:this.CST_STACK}}reloadRecogState(n){this.errors=n.errors,this.importLexerState(n.lexerState),this.RULE_STACK=n.RULE_STACK}ruleInvocationStateUpdate(n,s,r){this.RULE_OCCURRENCE_STACK.push(r),this.RULE_STACK.push(n),this.cstInvocationStateUpdate(s)}isBackTracking(){return this.isBackTrackingStack.length!==0}getCurrRuleFullName(){const n=this.getLastExplicitRuleShortName();return this.shortRuleNameToFull[n]}shortRuleNameToFullName(n){return this.shortRuleNameToFull[n]}isAtEndOfInput(){return this.tokenMatcher(this.LA(1),pa)}reset(){this.resetLexerState(),this.subruleIdx=0,this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK=[],this.CST_STACK=[],this.RULE_OCCURRENCE_STACK=[]}}class H2{initErrorHandler(n){this._errors=[],this.errorMessageProvider=ft(n,"errorMessageProvider")?n.errorMessageProvider:ui.errorMessageProvider}SAVE_ERROR(n){if(Mu(n))return n.context={ruleStack:this.getHumanReadableRuleStack(),ruleOccurrenceStack:ge(this.RULE_OCCURRENCE_STACK)},this._errors.push(n),n;throw Error("Trying to save an Error which is not a RecognitionException")}get errors(){return ge(this._errors)}set errors(n){this._errors=n}raiseEarlyExitException(n,s,r){const u=this.getCurrRuleFullName(),c=this.getGAstProductions()[u],_=Vh(n,c,s,this.maxLookahead)[0],d=[];for(let b=1;b<=this.maxLookahead;b++)d.push(this.LA(b));const g=this.errorMessageProvider.buildEarlyExitMessage({expectedIterationPaths:_,actual:d,previous:this.LA(0),customUserDescription:r,ruleName:u});throw this.SAVE_ERROR(new T2(g,this.LA(1),this.LA(0)))}raiseNoAltException(n,s){const r=this.getCurrRuleFullName(),u=this.getGAstProductions()[r],c=Kh(n,u,this.maxLookahead),h=[];for(let g=1;g<=this.maxLookahead;g++)h.push(this.LA(g));const _=this.LA(0),d=this.errorMessageProvider.buildNoViableAltMessage({expectedPathsPerAlt:c,actual:h,previous:_,customUserDescription:s,ruleName:this.getCurrRuleFullName()});throw this.SAVE_ERROR(new E2(d,this.LA(1),_))}}class $2{initContentAssist(){}computeContentAssist(n,s){const r=this.gastProductionsCache[n];if(li(r))throw Error(`Rule ->${n}<- does not exist in this grammar.`);return Q0([r],s,this.tokenMatcher,this.maxLookahead)}getNextPossibleTokenTypes(n){const s=Sn(n.ruleStack),u=this.getGAstProductions()[s];return new VC(u,n).startWalking()}}const eo={description:"This Object indicates the Parser is during Recording Phase"};Object.freeze(eo);const my=!0,yy=Math.pow(2,qi)-1,dv=mt({name:"RECORDING_PHASE_TOKEN",pattern:ye.NA});Br([dv]);const _v=$h(dv,`This IToken indicates the Parser is in Recording Phase
114
+ See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`,-1,-1,-1,-1,-1,-1);Object.freeze(_v);const K2={name:`This CSTNode indicates the Parser is in Recording Phase
115
+ See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`,children:{}};class V2{initGastRecorder(n){this.recordingProdStack=[],this.RECORDING_PHASE=!1}enableRecording(){this.RECORDING_PHASE=!0,this.TRACE_INIT("Enable Recording",()=>{for(let n=0;n<10;n++){const s=n>0?n:"";this[`CONSUME${s}`]=function(r,u){return this.consumeInternalRecord(r,n,u)},this[`SUBRULE${s}`]=function(r,u){return this.subruleInternalRecord(r,n,u)},this[`OPTION${s}`]=function(r){return this.optionInternalRecord(r,n)},this[`OR${s}`]=function(r){return this.orInternalRecord(r,n)},this[`MANY${s}`]=function(r){this.manyInternalRecord(n,r)},this[`MANY_SEP${s}`]=function(r){this.manySepFirstInternalRecord(n,r)},this[`AT_LEAST_ONE${s}`]=function(r){this.atLeastOneInternalRecord(n,r)},this[`AT_LEAST_ONE_SEP${s}`]=function(r){this.atLeastOneSepFirstInternalRecord(n,r)}}this.consume=function(n,s,r){return this.consumeInternalRecord(s,n,r)},this.subrule=function(n,s,r){return this.subruleInternalRecord(s,n,r)},this.option=function(n,s){return this.optionInternalRecord(s,n)},this.or=function(n,s){return this.orInternalRecord(s,n)},this.many=function(n,s){this.manyInternalRecord(n,s)},this.atLeastOne=function(n,s){this.atLeastOneInternalRecord(n,s)},this.ACTION=this.ACTION_RECORD,this.BACKTRACK=this.BACKTRACK_RECORD,this.LA=this.LA_RECORD})}disableRecording(){this.RECORDING_PHASE=!1,this.TRACE_INIT("Deleting Recording methods",()=>{const n=this;for(let s=0;s<10;s++){const r=s>0?s:"";delete n[`CONSUME${r}`],delete n[`SUBRULE${r}`],delete n[`OPTION${r}`],delete n[`OR${r}`],delete n[`MANY${r}`],delete n[`MANY_SEP${r}`],delete n[`AT_LEAST_ONE${r}`],delete n[`AT_LEAST_ONE_SEP${r}`]}delete n.consume,delete n.subrule,delete n.option,delete n.or,delete n.many,delete n.atLeastOne,delete n.ACTION,delete n.BACKTRACK,delete n.LA})}ACTION_RECORD(n){}BACKTRACK_RECORD(n,s){return()=>!0}LA_RECORD(n){return Iu}topLevelRuleRecord(n,s){try{const r=new _s({definition:[],name:n});return r.name=n,this.recordingProdStack.push(r),s.call(this),this.recordingProdStack.pop(),r}catch(r){if(r.KNOWN_RECORDER_ERROR!==!0)try{r.message=r.message+`
116
116
  This error was thrown during the "grammar recording phase" For more info see:
117
- https://chevrotain.io/docs/guide/internals.html#grammar-recording`}catch{throw r}throw r}}optionInternalRecord(n,s){return fr.call(this,Me,n,s)}atLeastOneInternalRecord(n,s){fr.call(this,jn,s,n)}atLeastOneSepFirstInternalRecord(n,s){fr.call(this,Pn,s,n,yy)}manyInternalRecord(n,s){fr.call(this,re,s,n)}manySepFirstInternalRecord(n,s){fr.call(this,On,s,n,yy)}orInternalRecord(n,s){return $2.call(this,n,s)}subruleInternalRecord(n,s,r){if(Mu(s),!n||ft(n,"ruleName")===!1){const _=new Error(`<SUBRULE${Ey(s)}> argument is invalid expecting a Parser method reference but got: <${JSON.stringify(n)}>
118
- inside top level rule: <${this.recordingProdStack[0].name}>`);throw _.KNOWN_RECORDER_ERROR=!0,_}const u=da(this.recordingProdStack),c=n.ruleName,h=new We({idx:s,nonTerminalName:c,label:r?.LABEL,referencedRule:void 0});return u.definition.push(h),this.outputCst?q2:to}consumeInternalRecord(n,s,r){if(Mu(s),!X0(n)){const h=new Error(`<CONSUME${Ey(s)}> argument is invalid expecting a TokenType reference but got: <${JSON.stringify(n)}>
119
- inside top level rule: <${this.recordingProdStack[0].name}>`);throw h.KNOWN_RECORDER_ERROR=!0,h}const u=da(this.recordingProdStack),c=new $t({idx:s,terminalType:n,label:r?.LABEL});return u.definition.push(c),pv}}function fr(i,n,s,r=!1){Mu(s);const u=da(this.recordingProdStack),c=oi(n)?n:n.DEF,h=new i({definition:[],idx:s});return r&&(h.separator=n.SEP),ft(n,"MAX_LOOKAHEAD")&&(h.maxLookahead=n.MAX_LOOKAHEAD),this.recordingProdStack.push(h),c.call(this),u.definition.push(h),this.recordingProdStack.pop(),to}function $2(i,n){Mu(n);const s=da(this.recordingProdStack),r=xt(i)===!1,u=r===!1?i:i.DEF,c=new Nn({definition:[],idx:n,ignoreAmbiguities:r&&i.IGNORE_AMBIGUITIES===!0});ft(i,"MAX_LOOKAHEAD")&&(c.maxLookahead=i.MAX_LOOKAHEAD);const h=z0(u,_=>oi(_.GATE));return c.hasPredicates=h,s.definition.push(c),ht(u,_=>{const d=new Ie({definition:[]});c.definition.push(d),ft(_,"IGNORE_AMBIGUITIES")?d.ignoreAmbiguities=_.IGNORE_AMBIGUITIES:ft(_,"GATE")&&(d.ignoreAmbiguities=!0),this.recordingProdStack.push(d),_.ALT.call(this),this.recordingProdStack.pop()}),to}function Ey(i){return i===0?"":`${i}`}function Mu(i){if(i<0||i>vy){const n=new Error(`Invalid DSL Method idx value: <${i}>
120
- Idx value must be a none negative value smaller than ${vy+1}`);throw n.KNOWN_RECORDER_ERROR=!0,n}}class K2{initPerformanceTracer(n){if(ft(n,"traceInitPerf")){const s=n.traceInitPerf,r=typeof s=="number";this.traceInitMaxIdent=r?s:1/0,this.traceInitPerf=r?s>0:s}else this.traceInitMaxIdent=0,this.traceInitPerf=ui.traceInitPerf;this.traceInitIndent=-1}TRACE_INIT(n,s){if(this.traceInitPerf===!0){this.traceInitIndent++;const r=new Array(this.traceInitIndent+1).join(" ");this.traceInitIndent<this.traceInitMaxIdent&&console.log(`${r}--> <${n}>`);const{time:u,value:c}=D0(s),h=u>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&h(`${r}<-- <${n}> time: ${u}ms`),this.traceInitIndent--,c}else return s()}}function V2(i,n){n.forEach(s=>{const r=s.prototype;Object.getOwnPropertyNames(r).forEach(u=>{if(u==="constructor")return;const c=Object.getOwnPropertyDescriptor(r,u);c&&(c.get||c.set)?Object.defineProperty(i.prototype,u,c):i.prototype[u]=s.prototype[u]})})}const Uu=Kh(pa,"",NaN,NaN,NaN,NaN,NaN,NaN);Object.freeze(Uu);const ui=Object.freeze({recoveryEnabled:!1,maxLookahead:3,dynamicTokensEnabled:!1,outputCst:!0,errorMessageProvider:Q0,nodeLocationTracking:"none",traceInitPerf:!1,skipValidations:!1}),Iu=Object.freeze({recoveryValueFunc:()=>{},resyncEnabled:!0});var be;(function(i){i[i.INVALID_RULE_NAME=0]="INVALID_RULE_NAME",i[i.DUPLICATE_RULE_NAME=1]="DUPLICATE_RULE_NAME",i[i.INVALID_RULE_OVERRIDE=2]="INVALID_RULE_OVERRIDE",i[i.DUPLICATE_PRODUCTIONS=3]="DUPLICATE_PRODUCTIONS",i[i.UNRESOLVED_SUBRULE_REF=4]="UNRESOLVED_SUBRULE_REF",i[i.LEFT_RECURSION=5]="LEFT_RECURSION",i[i.NONE_LAST_EMPTY_ALT=6]="NONE_LAST_EMPTY_ALT",i[i.AMBIGUOUS_ALTS=7]="AMBIGUOUS_ALTS",i[i.CONFLICT_TOKENS_RULES_NAMESPACE=8]="CONFLICT_TOKENS_RULES_NAMESPACE",i[i.INVALID_TOKEN_NAME=9]="INVALID_TOKEN_NAME",i[i.NO_NON_EMPTY_LOOKAHEAD=10]="NO_NON_EMPTY_LOOKAHEAD",i[i.AMBIGUOUS_PREFIX_ALTS=11]="AMBIGUOUS_PREFIX_ALTS",i[i.TOO_MANY_ALTS=12]="TOO_MANY_ALTS",i[i.CUSTOM_LOOKAHEAD_VALIDATION=13]="CUSTOM_LOOKAHEAD_VALIDATION"})(be||(be={}));class Br{static performSelfAnalysis(n){throw Error("The **static** `performSelfAnalysis` method has been deprecated. \nUse the **instance** method with the same name instead.")}performSelfAnalysis(){this.TRACE_INIT("performSelfAnalysis",()=>{let n;this.selfAnalysisDone=!0;const s=this.className;this.TRACE_INIT("toFastProps",()=>{j0(this)}),this.TRACE_INIT("Grammar Recording",()=>{try{this.enableRecording(),ht(this.definedRulesNames,u=>{const h=this[u].originalGrammarAction;let _;this.TRACE_INIT(`${u} Rule`,()=>{_=this.topLevelRuleRecord(u,h)}),this.gastProductionsCache[u]=_})}finally{this.disableRecording()}});let r=[];if(this.TRACE_INIT("Grammar Resolving",()=>{r=p2({rules:se(this.gastProductionsCache)}),this.definitionErrors=this.definitionErrors.concat(r)}),this.TRACE_INIT("Grammar Validations",()=>{if(jt(r)&&this.skipValidations===!1){const u=g2({rules:se(this.gastProductionsCache),tokenTypes:se(this.tokensMap),errMsgProvider:oa,grammarName:s}),c=t2({lookaheadStrategy:this.lookaheadStrategy,rules:se(this.gastProductionsCache),tokenTypes:se(this.tokensMap),grammarName:s});this.definitionErrors=this.definitionErrors.concat(u,c)}}),jt(this.definitionErrors)&&(this.recoveryEnabled&&this.TRACE_INIT("computeAllProdsFollows",()=>{const u=Vx(se(this.gastProductionsCache));this.resyncFollows=u}),this.TRACE_INIT("ComputeLookaheadFunctions",()=>{var u,c;(c=(u=this.lookaheadStrategy).initialize)===null||c===void 0||c.call(u,{rules:se(this.gastProductionsCache)}),this.preComputeLookaheadFunctions(se(this.gastProductionsCache))})),!Br.DEFER_DEFINITION_ERRORS_HANDLING&&!jt(this.definitionErrors))throw n=rt(this.definitionErrors,u=>u.message),new Error(`Parser Definition Errors detected:
117
+ https://chevrotain.io/docs/guide/internals.html#grammar-recording`}catch{throw r}throw r}}optionInternalRecord(n,s){return hr.call(this,Me,n,s)}atLeastOneInternalRecord(n,s){hr.call(this,jn,s,n)}atLeastOneSepFirstInternalRecord(n,s){hr.call(this,Pn,s,n,my)}manyInternalRecord(n,s){hr.call(this,re,s,n)}manySepFirstInternalRecord(n,s){hr.call(this,On,s,n,my)}orInternalRecord(n,s){return Y2.call(this,n,s)}subruleInternalRecord(n,s,r){if(Uu(s),!n||ft(n,"ruleName")===!1){const _=new Error(`<SUBRULE${vy(s)}> argument is invalid expecting a Parser method reference but got: <${JSON.stringify(n)}>
118
+ inside top level rule: <${this.recordingProdStack[0].name}>`);throw _.KNOWN_RECORDER_ERROR=!0,_}const u=da(this.recordingProdStack),c=n.ruleName,h=new We({idx:s,nonTerminalName:c,label:r?.LABEL,referencedRule:void 0});return u.definition.push(h),this.outputCst?K2:eo}consumeInternalRecord(n,s,r){if(Uu(s),!Y0(n)){const h=new Error(`<CONSUME${vy(s)}> argument is invalid expecting a TokenType reference but got: <${JSON.stringify(n)}>
119
+ inside top level rule: <${this.recordingProdStack[0].name}>`);throw h.KNOWN_RECORDER_ERROR=!0,h}const u=da(this.recordingProdStack),c=new $t({idx:s,terminalType:n,label:r?.LABEL});return u.definition.push(c),_v}}function hr(i,n,s,r=!1){Uu(s);const u=da(this.recordingProdStack),c=oi(n)?n:n.DEF,h=new i({definition:[],idx:s});return r&&(h.separator=n.SEP),ft(n,"MAX_LOOKAHEAD")&&(h.maxLookahead=n.MAX_LOOKAHEAD),this.recordingProdStack.push(h),c.call(this),u.definition.push(h),this.recordingProdStack.pop(),eo}function Y2(i,n){Uu(n);const s=da(this.recordingProdStack),r=xt(i)===!1,u=r===!1?i:i.DEF,c=new Nn({definition:[],idx:n,ignoreAmbiguities:r&&i.IGNORE_AMBIGUITIES===!0});ft(i,"MAX_LOOKAHEAD")&&(c.maxLookahead=i.MAX_LOOKAHEAD);const h=k0(u,_=>oi(_.GATE));return c.hasPredicates=h,s.definition.push(c),ht(u,_=>{const d=new Ie({definition:[]});c.definition.push(d),ft(_,"IGNORE_AMBIGUITIES")?d.ignoreAmbiguities=_.IGNORE_AMBIGUITIES:ft(_,"GATE")&&(d.ignoreAmbiguities=!0),this.recordingProdStack.push(d),_.ALT.call(this),this.recordingProdStack.pop()}),eo}function vy(i){return i===0?"":`${i}`}function Uu(i){if(i<0||i>yy){const n=new Error(`Invalid DSL Method idx value: <${i}>
120
+ Idx value must be a none negative value smaller than ${yy+1}`);throw n.KNOWN_RECORDER_ERROR=!0,n}}class F2{initPerformanceTracer(n){if(ft(n,"traceInitPerf")){const s=n.traceInitPerf,r=typeof s=="number";this.traceInitMaxIdent=r?s:1/0,this.traceInitPerf=r?s>0:s}else this.traceInitMaxIdent=0,this.traceInitPerf=ui.traceInitPerf;this.traceInitIndent=-1}TRACE_INIT(n,s){if(this.traceInitPerf===!0){this.traceInitIndent++;const r=new Array(this.traceInitIndent+1).join(" ");this.traceInitIndent<this.traceInitMaxIdent&&console.log(`${r}--> <${n}>`);const{time:u,value:c}=B0(s),h=u>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&h(`${r}<-- <${n}> time: ${u}ms`),this.traceInitIndent--,c}else return s()}}function X2(i,n){n.forEach(s=>{const r=s.prototype;Object.getOwnPropertyNames(r).forEach(u=>{if(u==="constructor")return;const c=Object.getOwnPropertyDescriptor(r,u);c&&(c.get||c.set)?Object.defineProperty(i.prototype,u,c):i.prototype[u]=s.prototype[u]})})}const Iu=$h(pa,"",NaN,NaN,NaN,NaN,NaN,NaN);Object.freeze(Iu);const ui=Object.freeze({recoveryEnabled:!1,maxLookahead:3,dynamicTokensEnabled:!1,outputCst:!0,errorMessageProvider:X0,nodeLocationTracking:"none",traceInitPerf:!1,skipValidations:!1}),ku=Object.freeze({recoveryValueFunc:()=>{},resyncEnabled:!0});var Te;(function(i){i[i.INVALID_RULE_NAME=0]="INVALID_RULE_NAME",i[i.DUPLICATE_RULE_NAME=1]="DUPLICATE_RULE_NAME",i[i.INVALID_RULE_OVERRIDE=2]="INVALID_RULE_OVERRIDE",i[i.DUPLICATE_PRODUCTIONS=3]="DUPLICATE_PRODUCTIONS",i[i.UNRESOLVED_SUBRULE_REF=4]="UNRESOLVED_SUBRULE_REF",i[i.LEFT_RECURSION=5]="LEFT_RECURSION",i[i.NONE_LAST_EMPTY_ALT=6]="NONE_LAST_EMPTY_ALT",i[i.AMBIGUOUS_ALTS=7]="AMBIGUOUS_ALTS",i[i.CONFLICT_TOKENS_RULES_NAMESPACE=8]="CONFLICT_TOKENS_RULES_NAMESPACE",i[i.INVALID_TOKEN_NAME=9]="INVALID_TOKEN_NAME",i[i.NO_NON_EMPTY_LOOKAHEAD=10]="NO_NON_EMPTY_LOOKAHEAD",i[i.AMBIGUOUS_PREFIX_ALTS=11]="AMBIGUOUS_PREFIX_ALTS",i[i.TOO_MANY_ALTS=12]="TOO_MANY_ALTS",i[i.CUSTOM_LOOKAHEAD_VALIDATION=13]="CUSTOM_LOOKAHEAD_VALIDATION"})(Te||(Te={}));class Dr{static performSelfAnalysis(n){throw Error("The **static** `performSelfAnalysis` method has been deprecated. \nUse the **instance** method with the same name instead.")}performSelfAnalysis(){this.TRACE_INIT("performSelfAnalysis",()=>{let n;this.selfAnalysisDone=!0;const s=this.className;this.TRACE_INIT("toFastProps",()=>{D0(this)}),this.TRACE_INIT("Grammar Recording",()=>{try{this.enableRecording(),ht(this.definedRulesNames,u=>{const h=this[u].originalGrammarAction;let _;this.TRACE_INIT(`${u} Rule`,()=>{_=this.topLevelRuleRecord(u,h)}),this.gastProductionsCache[u]=_})}finally{this.disableRecording()}});let r=[];if(this.TRACE_INIT("Grammar Resolving",()=>{r=y2({rules:se(this.gastProductionsCache)}),this.definitionErrors=this.definitionErrors.concat(r)}),this.TRACE_INIT("Grammar Validations",()=>{if(jt(r)&&this.skipValidations===!1){const u=v2({rules:se(this.gastProductionsCache),tokenTypes:se(this.tokensMap),errMsgProvider:oa,grammarName:s}),c=i2({lookaheadStrategy:this.lookaheadStrategy,rules:se(this.gastProductionsCache),tokenTypes:se(this.tokensMap),grammarName:s});this.definitionErrors=this.definitionErrors.concat(u,c)}}),jt(this.definitionErrors)&&(this.recoveryEnabled&&this.TRACE_INIT("computeAllProdsFollows",()=>{const u=Xx(se(this.gastProductionsCache));this.resyncFollows=u}),this.TRACE_INIT("ComputeLookaheadFunctions",()=>{var u,c;(c=(u=this.lookaheadStrategy).initialize)===null||c===void 0||c.call(u,{rules:se(this.gastProductionsCache)}),this.preComputeLookaheadFunctions(se(this.gastProductionsCache))})),!Dr.DEFER_DEFINITION_ERRORS_HANDLING&&!jt(this.definitionErrors))throw n=rt(this.definitionErrors,u=>u.message),new Error(`Parser Definition Errors detected:
121
121
  ${n.join(`
122
122
  -------------------------------
123
123
  `)}`)})}constructor(n,s){this.definitionErrors=[],this.selfAnalysisDone=!1;const r=this;if(r.initErrorHandler(s),r.initLexerAdapter(),r.initLooksAhead(s),r.initRecognizerEngine(n,s),r.initRecoverable(s),r.initTreeBuilder(s),r.initContentAssist(),r.initGastRecorder(s),r.initPerformanceTracer(s),ft(s,"ignoredIssues"))throw new Error(`The <ignoredIssues> IParserConfig property has been deprecated.
124
124
  Please use the <IGNORE_AMBIGUITIES> flag on the relevant DSL method instead.
125
125
  See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#IGNORING_AMBIGUITIES
126
- For further details.`);this.skipValidations=ft(s,"skipValidations")?s.skipValidations:ui.skipValidations}}Br.DEFER_DEFINITION_ERRORS_HANDLING=!1;V2(Br,[b2,O2,z2,B2,j2,D2,P2,G2,H2,K2]);class Y2 extends Br{constructor(n,s=ui){const r=pe(s);r.outputCst=!0,super(n,r)}}const gv=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",X2=gv+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",F2="["+gv+"]["+X2+"]*",Q2=new RegExp("^"+F2+"$");function mv(i,n){const s=[];let r=n.exec(i);for(;r;){const u=[];u.startIndex=n.lastIndex-r[0].length;const c=r.length;for(let h=0;h<c;h++)u.push(r[h]);s.push(u),r=n.exec(i)}return s}const eo=function(i){const n=Q2.exec(i);return!(n===null||typeof n>"u")};function Z2(i){return typeof i<"u"}const W2={allowBooleanAttributes:!1,unpairedTags:[]};function J2(i,n){n=Object.assign({},W2,n);const s=[];let r=!1,u=!1;i[0]==="\uFEFF"&&(i=i.substr(1));for(let c=0;c<i.length;c++)if(i[c]==="<"&&i[c+1]==="?"){if(c+=2,c=Ty(i,c),c.err)return c}else if(i[c]==="<"){let h=c;if(c++,i[c]==="!"){c=Sy(i,c);continue}else{let _=!1;i[c]==="/"&&(_=!0,c++);let d="";for(;c<i.length&&i[c]!==">"&&i[c]!==" "&&i[c]!==" "&&i[c]!==`
127
- `&&i[c]!=="\r";c++)d+=i[c];if(d=d.trim(),d[d.length-1]==="/"&&(d=d.substring(0,d.length-1),c--),!lL(d)){let E;return d.trim().length===0?E="Invalid space after '<'.":E="Tag '"+d+"' is an invalid name.",Wt("InvalidTag",E,Ee(i,c))}const g=nL(i,c);if(g===!1)return Wt("InvalidAttr","Attributes for '"+d+"' have open quote.",Ee(i,c));let b=g.value;if(c=g.index,b[b.length-1]==="/"){const E=c-b.length;b=b.substring(0,b.length-1);const A=Ay(b,n);if(A===!0)r=!0;else return Wt(A.err.code,A.err.msg,Ee(i,E+A.err.line))}else if(_)if(g.tagClosed){if(b.trim().length>0)return Wt("InvalidTag","Closing tag '"+d+"' can't have attributes or invalid starting.",Ee(i,h));if(s.length===0)return Wt("InvalidTag","Closing tag '"+d+"' has not been opened.",Ee(i,h));{const E=s.pop();if(d!==E.tagName){let A=Ee(i,E.tagStartPos);return Wt("InvalidTag","Expected closing tag '"+E.tagName+"' (opened in line "+A.line+", col "+A.col+") instead of closing tag '"+d+"'.",Ee(i,h))}s.length==0&&(u=!0)}}else return Wt("InvalidTag","Closing tag '"+d+"' doesn't have proper closing.",Ee(i,c));else{const E=Ay(b,n);if(E!==!0)return Wt(E.err.code,E.err.msg,Ee(i,c-b.length+E.err.line));if(u===!0)return Wt("InvalidXml","Multiple possible root nodes found.",Ee(i,c));n.unpairedTags.indexOf(d)!==-1||s.push({tagName:d,tagStartPos:h}),r=!0}for(c++;c<i.length;c++)if(i[c]==="<")if(i[c+1]==="!"){c++,c=Sy(i,c);continue}else if(i[c+1]==="?"){if(c=Ty(i,++c),c.err)return c}else break;else if(i[c]==="&"){const E=sL(i,c);if(E==-1)return Wt("InvalidChar","char '&' is not expected.",Ee(i,c));c=E}else if(u===!0&&!by(i[c]))return Wt("InvalidXml","Extra text at the end",Ee(i,c));i[c]==="<"&&c--}}else{if(by(i[c]))continue;return Wt("InvalidChar","char '"+i[c]+"' is not expected.",Ee(i,c))}if(r){if(s.length==1)return Wt("InvalidTag","Unclosed tag '"+s[0].tagName+"'.",Ee(i,s[0].tagStartPos));if(s.length>0)return Wt("InvalidXml","Invalid '"+JSON.stringify(s.map(c=>c.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Wt("InvalidXml","Start tag expected.",1);return!0}function by(i){return i===" "||i===" "||i===`
128
- `||i==="\r"}function Ty(i,n){const s=n;for(;n<i.length;n++)if(i[n]=="?"||i[n]==" "){const r=i.substr(s,n-s);if(n>5&&r==="xml")return Wt("InvalidXml","XML declaration allowed only at the start of the document.",Ee(i,n));if(i[n]=="?"&&i[n+1]==">"){n++;break}else continue}return n}function Sy(i,n){if(i.length>n+5&&i[n+1]==="-"&&i[n+2]==="-"){for(n+=3;n<i.length;n++)if(i[n]==="-"&&i[n+1]==="-"&&i[n+2]===">"){n+=2;break}}else if(i.length>n+8&&i[n+1]==="D"&&i[n+2]==="O"&&i[n+3]==="C"&&i[n+4]==="T"&&i[n+5]==="Y"&&i[n+6]==="P"&&i[n+7]==="E"){let s=1;for(n+=8;n<i.length;n++)if(i[n]==="<")s++;else if(i[n]===">"&&(s--,s===0))break}else if(i.length>n+9&&i[n+1]==="["&&i[n+2]==="C"&&i[n+3]==="D"&&i[n+4]==="A"&&i[n+5]==="T"&&i[n+6]==="A"&&i[n+7]==="["){for(n+=8;n<i.length;n++)if(i[n]==="]"&&i[n+1]==="]"&&i[n+2]===">"){n+=2;break}}return n}const tL='"',eL="'";function nL(i,n){let s="",r="",u=!1;for(;n<i.length;n++){if(i[n]===tL||i[n]===eL)r===""?r=i[n]:r!==i[n]||(r="");else if(i[n]===">"&&r===""){u=!0;break}s+=i[n]}return r!==""?!1:{value:s,index:n,tagClosed:u}}const iL=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function Ay(i,n){const s=mv(i,iL),r={};for(let u=0;u<s.length;u++){if(s[u][1].length===0)return Wt("InvalidAttr","Attribute '"+s[u][2]+"' has no space in starting.",hr(s[u]));if(s[u][3]!==void 0&&s[u][4]===void 0)return Wt("InvalidAttr","Attribute '"+s[u][2]+"' is without value.",hr(s[u]));if(s[u][3]===void 0&&!n.allowBooleanAttributes)return Wt("InvalidAttr","boolean attribute '"+s[u][2]+"' is not allowed.",hr(s[u]));const c=s[u][2];if(!rL(c))return Wt("InvalidAttr","Attribute '"+c+"' is an invalid name.",hr(s[u]));if(!r.hasOwnProperty(c))r[c]=1;else return Wt("InvalidAttr","Attribute '"+c+"' is repeated.",hr(s[u]))}return!0}function aL(i,n){let s=/\d/;for(i[n]==="x"&&(n++,s=/[\da-fA-F]/);n<i.length;n++){if(i[n]===";")return n;if(!i[n].match(s))break}return-1}function sL(i,n){if(n++,i[n]===";")return-1;if(i[n]==="#")return n++,aL(i,n);let s=0;for(;n<i.length;n++,s++)if(!(i[n].match(/\w/)&&s<20)){if(i[n]===";")break;return-1}return n}function Wt(i,n,s){return{err:{code:i,msg:n,line:s.line||s,col:s.col}}}function rL(i){return eo(i)}function lL(i){return eo(i)}function Ee(i,n){const s=i.substring(0,n).split(/\r?\n/);return{line:s.length,col:s[s.length-1].length+1}}function hr(i){return i.startIndex+i[1].length}const uL={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(i,n){return n},attributeValueProcessor:function(i,n){return n},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(i,n,s){return i},captureMetaData:!1},oL=function(i){return Object.assign({},uL,i)};let ku;typeof Symbol!="function"?ku="@@xmlMetadata":ku=Symbol("XML Node Metadata");class ua{constructor(n){this.tagname=n,this.child=[],this[":@"]={}}add(n,s){n==="__proto__"&&(n="#__proto__"),this.child.push({[n]:s})}addChild(n,s){n.tagname==="__proto__"&&(n.tagname="#__proto__"),n[":@"]&&Object.keys(n[":@"]).length>0?this.child.push({[n.tagname]:n.child,":@":n[":@"]}):this.child.push({[n.tagname]:n.child}),s!==void 0&&(this.child[this.child.length-1][ku]={startIndex:s})}static getMetaDataSymbol(){return ku}}class cL{constructor(n){this.suppressValidationErr=!n}readDocType(n,s){const r={};if(n[s+3]==="O"&&n[s+4]==="C"&&n[s+5]==="T"&&n[s+6]==="Y"&&n[s+7]==="P"&&n[s+8]==="E"){s=s+9;let u=1,c=!1,h=!1,_="";for(;s<n.length;s++)if(n[s]==="<"&&!h){if(c&&la(n,"!ENTITY",s)){s+=7;let d,g;[d,g,s]=this.readEntityExp(n,s+1,this.suppressValidationErr),g.indexOf("&")===-1&&(r[d]={regx:RegExp(`&${d};`,"g"),val:g})}else if(c&&la(n,"!ELEMENT",s)){s+=8;const{index:d}=this.readElementExp(n,s+1);s=d}else if(c&&la(n,"!ATTLIST",s))s+=8;else if(c&&la(n,"!NOTATION",s)){s+=9;const{index:d}=this.readNotationExp(n,s+1,this.suppressValidationErr);s=d}else if(la(n,"!--",s))h=!0;else throw new Error("Invalid DOCTYPE");u++,_=""}else if(n[s]===">"){if(h?n[s-1]==="-"&&n[s-2]==="-"&&(h=!1,u--):u--,u===0)break}else n[s]==="["?c=!0:_+=n[s];if(u!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:r,i:s}}readEntityExp(n,s){s=we(n,s);let r="";for(;s<n.length&&!/\s/.test(n[s])&&n[s]!=='"'&&n[s]!=="'";)r+=n[s],s++;if(dr(r),s=we(n,s),!this.suppressValidationErr){if(n.substring(s,s+6).toUpperCase()==="SYSTEM")throw new Error("External entities are not supported");if(n[s]==="%")throw new Error("Parameter entities are not supported")}let u="";return[s,u]=this.readIdentifierVal(n,s,"entity"),s--,[r,u,s]}readNotationExp(n,s){s=we(n,s);let r="";for(;s<n.length&&!/\s/.test(n[s]);)r+=n[s],s++;!this.suppressValidationErr&&dr(r),s=we(n,s);const u=n.substring(s,s+6).toUpperCase();if(!this.suppressValidationErr&&u!=="SYSTEM"&&u!=="PUBLIC")throw new Error(`Expected SYSTEM or PUBLIC, found "${u}"`);s+=u.length,s=we(n,s);let c=null,h=null;if(u==="PUBLIC")[s,c]=this.readIdentifierVal(n,s,"publicIdentifier"),s=we(n,s),(n[s]==='"'||n[s]==="'")&&([s,h]=this.readIdentifierVal(n,s,"systemIdentifier"));else if(u==="SYSTEM"&&([s,h]=this.readIdentifierVal(n,s,"systemIdentifier"),!this.suppressValidationErr&&!h))throw new Error("Missing mandatory system identifier for SYSTEM notation");return{notationName:r,publicIdentifier:c,systemIdentifier:h,index:--s}}readIdentifierVal(n,s,r){let u="";const c=n[s];if(c!=='"'&&c!=="'")throw new Error(`Expected quoted string, found "${c}"`);for(s++;s<n.length&&n[s]!==c;)u+=n[s],s++;if(n[s]!==c)throw new Error(`Unterminated ${r} value`);return s++,[s,u]}readElementExp(n,s){s=we(n,s);let r="";for(;s<n.length&&!/\s/.test(n[s]);)r+=n[s],s++;if(!this.suppressValidationErr&&!eo(r))throw new Error(`Invalid element name: "${r}"`);s=we(n,s);let u="";if(n[s]==="E"&&la(n,"MPTY",s))s+=4;else if(n[s]==="A"&&la(n,"NY",s))s+=2;else if(n[s]==="("){for(s++;s<n.length&&n[s]!==")";)u+=n[s],s++;if(n[s]!==")")throw new Error("Unterminated content model")}else if(!this.suppressValidationErr)throw new Error(`Invalid Element Expression, found "${n[s]}"`);return{elementName:r,contentModel:u.trim(),index:s}}readAttlistExp(n,s){s=we(n,s);let r="";for(;s<n.length&&!/\s/.test(n[s]);)r+=n[s],s++;dr(r),s=we(n,s);let u="";for(;s<n.length&&!/\s/.test(n[s]);)u+=n[s],s++;if(!dr(u))throw new Error(`Invalid attribute name: "${u}"`);s=we(n,s);let c="";if(n.substring(s,s+8).toUpperCase()==="NOTATION"){if(c="NOTATION",s+=8,s=we(n,s),n[s]!=="(")throw new Error(`Expected '(', found "${n[s]}"`);s++;let _=[];for(;s<n.length&&n[s]!==")";){let d="";for(;s<n.length&&n[s]!=="|"&&n[s]!==")";)d+=n[s],s++;if(d=d.trim(),!dr(d))throw new Error(`Invalid notation name: "${d}"`);_.push(d),n[s]==="|"&&(s++,s=we(n,s))}if(n[s]!==")")throw new Error("Unterminated list of notations");s++,c+=" ("+_.join("|")+")"}else{for(;s<n.length&&!/\s/.test(n[s]);)c+=n[s],s++;const _=["CDATA","ID","IDREF","IDREFS","ENTITY","ENTITIES","NMTOKEN","NMTOKENS"];if(!this.suppressValidationErr&&!_.includes(c.toUpperCase()))throw new Error(`Invalid attribute type: "${c}"`)}s=we(n,s);let h="";return n.substring(s,s+8).toUpperCase()==="#REQUIRED"?(h="#REQUIRED",s+=8):n.substring(s,s+7).toUpperCase()==="#IMPLIED"?(h="#IMPLIED",s+=7):[s,h]=this.readIdentifierVal(n,s,"ATTLIST"),{elementName:r,attributeName:u,attributeType:c,defaultValue:h,index:s}}}const we=(i,n)=>{for(;n<i.length&&/\s/.test(i[n]);)n++;return n};function la(i,n,s){for(let r=0;r<n.length;r++)if(n[r]!==i[s+r+1])return!1;return!0}function dr(i){if(eo(i))return i;throw new Error(`Invalid entity name ${i}`)}const fL=/^[-+]?0x[a-fA-F0-9]+$/,hL=/^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/,dL={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};function _L(i,n={}){if(n=Object.assign({},dL,n),!i||typeof i!="string")return i;let s=i.trim();if(n.skipLike!==void 0&&n.skipLike.test(s))return i;if(i==="0")return 0;if(n.hex&&fL.test(s))return yL(s,16);if(s.includes("e")||s.includes("E"))return gL(i,s,n);{const r=hL.exec(s);if(r){const u=r[1]||"",c=r[2];let h=mL(r[3]);const _=u?i[c.length+1]===".":i[c.length]===".";if(!n.leadingZeros&&(c.length>1||c.length===1&&!_))return i;{const d=Number(s),g=String(d);if(d===0)return d;if(g.search(/[eE]/)!==-1)return n.eNotation?d:i;if(s.indexOf(".")!==-1)return g==="0"||g===h||g===`${u}${h}`?d:i;let b=c?h:s;return c?b===g||u+b===g?d:i:b===g||b===u+g?d:i}}else return i}}const pL=/^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;function gL(i,n,s){if(!s.eNotation)return i;const r=n.match(pL);if(r){let u=r[1]||"";const c=r[3].indexOf("e")===-1?"E":"e",h=r[2],_=u?i[h.length+1]===c:i[h.length]===c;return h.length>1&&_?i:h.length===1&&(r[3].startsWith(`.${c}`)||r[3][0]===c)?Number(n):s.leadingZeros&&!_?(n=(r[1]||"")+r[3],Number(n)):i}else return i}function mL(i){return i&&i.indexOf(".")!==-1&&(i=i.replace(/0+$/,""),i==="."?i="0":i[0]==="."?i="0"+i:i[i.length-1]==="."&&(i=i.substring(0,i.length-1))),i}function yL(i,n){if(parseInt)return parseInt(i,n);if(Number.parseInt)return Number.parseInt(i,n);if(window&&window.parseInt)return window.parseInt(i,n);throw new Error("parseInt, Number.parseInt, window.parseInt are not supported")}function yv(i){return typeof i=="function"?i:Array.isArray(i)?n=>{for(const s of i)if(typeof s=="string"&&n===s||s instanceof RegExp&&s.test(n))return!0}:()=>!1}class vL{constructor(n){if(this.options=n,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(s,r)=>String.fromCodePoint(Number.parseInt(r,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(s,r)=>String.fromCodePoint(Number.parseInt(r,16))}},this.addExternalEntities=EL,this.parseXml=OL,this.parseTextData=bL,this.resolveNameSpace=TL,this.buildAttributesMap=AL,this.isItStopNode=CL,this.replaceEntitiesValue=RL,this.readStopNodeData=wL,this.saveTextToParentTag=xL,this.addChild=NL,this.ignoreAttributesFn=yv(this.options.ignoreAttributes),this.options.stopNodes&&this.options.stopNodes.length>0){this.stopNodesExact=new Set,this.stopNodesWildcard=new Set;for(let s=0;s<this.options.stopNodes.length;s++){const r=this.options.stopNodes[s];typeof r=="string"&&(r.startsWith("*.")?this.stopNodesWildcard.add(r.substring(2)):this.stopNodesExact.add(r))}}}}function EL(i){const n=Object.keys(i);for(let s=0;s<n.length;s++){const r=n[s];this.lastEntities[r]={regex:new RegExp("&"+r+";","g"),val:i[r]}}}function bL(i,n,s,r,u,c,h){if(i!==void 0&&(this.options.trimValues&&!r&&(i=i.trim()),i.length>0)){h||(i=this.replaceEntitiesValue(i));const _=this.options.tagValueProcessor(n,i,s,u,c);return _==null?i:typeof _!=typeof i||_!==i?_:this.options.trimValues?gh(i,this.options.parseTagValue,this.options.numberParseOptions):i.trim()===i?gh(i,this.options.parseTagValue,this.options.numberParseOptions):i}}function TL(i){if(this.options.removeNSPrefix){const n=i.split(":"),s=i.charAt(0)==="/"?"/":"";if(n[0]==="xmlns")return"";n.length===2&&(i=s+n[1])}return i}const SL=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function AL(i,n){if(this.options.ignoreAttributes!==!0&&typeof i=="string"){const s=mv(i,SL),r=s.length,u={};for(let c=0;c<r;c++){const h=this.resolveNameSpace(s[c][1]);if(this.ignoreAttributesFn(h,n))continue;let _=s[c][4],d=this.options.attributeNamePrefix+h;if(h.length)if(this.options.transformAttributeName&&(d=this.options.transformAttributeName(d)),d==="__proto__"&&(d="#__proto__"),_!==void 0){this.options.trimValues&&(_=_.trim()),_=this.replaceEntitiesValue(_);const g=this.options.attributeValueProcessor(h,_,n);g==null?u[d]=_:typeof g!=typeof _||g!==_?u[d]=g:u[d]=gh(_,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(u[d]=!0)}if(!Object.keys(u).length)return;if(this.options.attributesGroupName){const c={};return c[this.options.attributesGroupName]=u,c}return u}}const OL=function(i){i=i.replace(/\r\n?/g,`
129
- `);const n=new ua("!xml");let s=n,r="",u="";const c=new cL(this.options.processEntities);for(let h=0;h<i.length;h++)if(i[h]==="<")if(i[h+1]==="/"){const d=ca(i,">",h,"Closing Tag is not closed.");let g=i.substring(h+2,d).trim();if(this.options.removeNSPrefix){const A=g.indexOf(":");A!==-1&&(g=g.substr(A+1))}this.options.transformTagName&&(g=this.options.transformTagName(g)),s&&(r=this.saveTextToParentTag(r,s,u));const b=u.substring(u.lastIndexOf(".")+1);if(g&&this.options.unpairedTags.indexOf(g)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${g}>`);let E=0;b&&this.options.unpairedTags.indexOf(b)!==-1?(E=u.lastIndexOf(".",u.lastIndexOf(".")-1),this.tagsNodeStack.pop()):E=u.lastIndexOf("."),u=u.substring(0,E),s=this.tagsNodeStack.pop(),r="",h=d}else if(i[h+1]==="?"){let d=ph(i,h,!1,"?>");if(!d)throw new Error("Pi Tag is not closed.");if(r=this.saveTextToParentTag(r,s,u),!(this.options.ignoreDeclaration&&d.tagName==="?xml"||this.options.ignorePiTags)){const g=new ua(d.tagName);g.add(this.options.textNodeName,""),d.tagName!==d.tagExp&&d.attrExpPresent&&(g[":@"]=this.buildAttributesMap(d.tagExp,u)),this.addChild(s,g,u,h)}h=d.closeIndex+1}else if(i.substr(h+1,3)==="!--"){const d=ca(i,"-->",h+4,"Comment is not closed.");if(this.options.commentPropName){const g=i.substring(h+4,d-2);r=this.saveTextToParentTag(r,s,u),s.add(this.options.commentPropName,[{[this.options.textNodeName]:g}])}h=d}else if(i.substr(h+1,2)==="!D"){const d=c.readDocType(i,h);this.docTypeEntities=d.entities,h=d.i}else if(i.substr(h+1,2)==="!["){const d=ca(i,"]]>",h,"CDATA is not closed.")-2,g=i.substring(h+9,d);r=this.saveTextToParentTag(r,s,u);let b=this.parseTextData(g,s.tagname,u,!0,!1,!0,!0);b==null&&(b=""),this.options.cdataPropName?s.add(this.options.cdataPropName,[{[this.options.textNodeName]:g}]):s.add(this.options.textNodeName,b),h=d+2}else{let d=ph(i,h,this.options.removeNSPrefix),g=d.tagName;const b=d.rawTagName;let E=d.tagExp,A=d.attrExpPresent,j=d.closeIndex;if(this.options.transformTagName){const S=this.options.transformTagName(g);E===g&&(E=S),g=S}s&&r&&s.tagname!=="!xml"&&(r=this.saveTextToParentTag(r,s,u,!1));const H=s;H&&this.options.unpairedTags.indexOf(H.tagname)!==-1&&(s=this.tagsNodeStack.pop(),u=u.substring(0,u.lastIndexOf("."))),g!==n.tagname&&(u+=u?"."+g:g);const X=h;if(this.isItStopNode(this.stopNodesExact,this.stopNodesWildcard,u,g)){let S="";if(E.length>0&&E.lastIndexOf("/")===E.length-1)g[g.length-1]==="/"?(g=g.substr(0,g.length-1),u=u.substr(0,u.length-1),E=g):E=E.substr(0,E.length-1),h=d.closeIndex;else if(this.options.unpairedTags.indexOf(g)!==-1)h=d.closeIndex;else{const T=this.readStopNodeData(i,b,j+1);if(!T)throw new Error(`Unexpected end of ${b}`);h=T.i,S=T.tagContent}const v=new ua(g);g!==E&&A&&(v[":@"]=this.buildAttributesMap(E,u)),S&&(S=this.parseTextData(S,g,u,!0,A,!0,!0)),u=u.substr(0,u.lastIndexOf(".")),v.add(this.options.textNodeName,S),this.addChild(s,v,u,X)}else{if(E.length>0&&E.lastIndexOf("/")===E.length-1){if(g[g.length-1]==="/"?(g=g.substr(0,g.length-1),u=u.substr(0,u.length-1),E=g):E=E.substr(0,E.length-1),this.options.transformTagName){const v=this.options.transformTagName(g);E===g&&(E=v),g=v}const S=new ua(g);g!==E&&A&&(S[":@"]=this.buildAttributesMap(E,u)),this.addChild(s,S,u,X),u=u.substr(0,u.lastIndexOf("."))}else{const S=new ua(g);this.tagsNodeStack.push(s),g!==E&&A&&(S[":@"]=this.buildAttributesMap(E,u)),this.addChild(s,S,u,X),s=S}r="",h=j}}else r+=i[h];return n.child};function NL(i,n,s,r){this.options.captureMetaData||(r=void 0);const u=this.options.updateTag(n.tagname,s,n[":@"]);u===!1||(typeof u=="string"&&(n.tagname=u),i.addChild(n,r))}const RL=function(i){if(this.options.processEntities){for(let n in this.docTypeEntities){const s=this.docTypeEntities[n];i=i.replace(s.regx,s.val)}for(let n in this.lastEntities){const s=this.lastEntities[n];i=i.replace(s.regex,s.val)}if(this.options.htmlEntities)for(let n in this.htmlEntities){const s=this.htmlEntities[n];i=i.replace(s.regex,s.val)}i=i.replace(this.ampEntity.regex,this.ampEntity.val)}return i};function xL(i,n,s,r){return i&&(r===void 0&&(r=n.child.length===0),i=this.parseTextData(i,n.tagname,s,!1,n[":@"]?Object.keys(n[":@"]).length!==0:!1,r),i!==void 0&&i!==""&&n.add(this.options.textNodeName,i),i=""),i}function CL(i,n,s,r){return!!(n&&n.has(r)||i&&i.has(s))}function LL(i,n,s=">"){let r,u="";for(let c=n;c<i.length;c++){let h=i[c];if(r)h===r&&(r="");else if(h==='"'||h==="'")r=h;else if(h===s[0])if(s[1]){if(i[c+1]===s[1])return{data:u,index:c}}else return{data:u,index:c};else h===" "&&(h=" ");u+=h}}function ca(i,n,s,r){const u=i.indexOf(n,s);if(u===-1)throw new Error(r);return u+n.length-1}function ph(i,n,s,r=">"){const u=LL(i,n+1,r);if(!u)return;let c=u.data;const h=u.index,_=c.search(/\s/);let d=c,g=!0;_!==-1&&(d=c.substring(0,_),c=c.substring(_+1).trimStart());const b=d;if(s){const E=d.indexOf(":");E!==-1&&(d=d.substr(E+1),g=d!==u.data.substr(E+1))}return{tagName:d,tagExp:c,closeIndex:h,attrExpPresent:g,rawTagName:b}}function wL(i,n,s){const r=s;let u=1;for(;s<i.length;s++)if(i[s]==="<")if(i[s+1]==="/"){const c=ca(i,">",s,`${n} is not closed`);if(i.substring(s+2,c).trim()===n&&(u--,u===0))return{tagContent:i.substring(r,s),i:c};s=c}else if(i[s+1]==="?")s=ca(i,"?>",s+1,"StopNode is not closed.");else if(i.substr(s+1,3)==="!--")s=ca(i,"-->",s+3,"StopNode is not closed.");else if(i.substr(s+1,2)==="![")s=ca(i,"]]>",s,"StopNode is not closed.")-2;else{const c=ph(i,s,">");c&&((c&&c.tagName)===n&&c.tagExp[c.tagExp.length-1]!=="/"&&u++,s=c.closeIndex)}}function gh(i,n,s){if(n&&typeof i=="string"){const r=i.trim();return r==="true"?!0:r==="false"?!1:_L(i,s)}else return Z2(i)?i:""}const Df=ua.getMetaDataSymbol();function ML(i,n){return vv(i,n)}function vv(i,n,s){let r;const u={};for(let c=0;c<i.length;c++){const h=i[c],_=UL(h);let d="";if(s===void 0?d=_:d=s+"."+_,_===n.textNodeName)r===void 0?r=h[_]:r+=""+h[_];else{if(_===void 0)continue;if(h[_]){let g=vv(h[_],n,d);const b=kL(g,n);h[Df]!==void 0&&(g[Df]=h[Df]),h[":@"]?IL(g,h[":@"],d,n):Object.keys(g).length===1&&g[n.textNodeName]!==void 0&&!n.alwaysCreateTextNode?g=g[n.textNodeName]:Object.keys(g).length===0&&(n.alwaysCreateTextNode?g[n.textNodeName]="":g=""),u[_]!==void 0&&u.hasOwnProperty(_)?(Array.isArray(u[_])||(u[_]=[u[_]]),u[_].push(g)):n.isArray(_,d,b)?u[_]=[g]:u[_]=g}}}return typeof r=="string"?r.length>0&&(u[n.textNodeName]=r):r!==void 0&&(u[n.textNodeName]=r),u}function UL(i){const n=Object.keys(i);for(let s=0;s<n.length;s++){const r=n[s];if(r!==":@")return r}}function IL(i,n,s,r){if(n){const u=Object.keys(n),c=u.length;for(let h=0;h<c;h++){const _=u[h];r.isArray(_,s+"."+_,!0,!0)?i[_]=[n[_]]:i[_]=n[_]}}}function kL(i,n){const{textNodeName:s}=n,r=Object.keys(i).length;return!!(r===0||r===1&&(i[s]||typeof i[s]=="boolean"||i[s]===0))}class zL{constructor(n){this.externalEntities={},this.options=oL(n)}parse(n,s){if(typeof n!="string"&&n.toString)n=n.toString();else if(typeof n!="string")throw new Error("XML data is accepted in String or Bytes[] form.");if(s){s===!0&&(s={});const c=J2(n,s);if(c!==!0)throw Error(`${c.err.msg}:${c.err.line}:${c.err.col}`)}const r=new vL(this.options);r.addExternalEntities(this.externalEntities);const u=r.parseXml(n);return this.options.preserveOrder||u===void 0?u:ML(u,this.options)}addEntity(n,s){if(s.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");if(n.indexOf("&")!==-1||n.indexOf(";")!==-1)throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '&#xD;'");if(s==="&")throw new Error("An entity with value '&' is not permitted");this.externalEntities[n]=s}static getMetaDataSymbol(){return ua.getMetaDataSymbol()}}const BL=`
130
- `;function DL(i,n){let s="";return n.format&&n.indentBy.length>0&&(s=BL),Ev(i,n,"",s)}function Ev(i,n,s,r){let u="",c=!1;for(let h=0;h<i.length;h++){const _=i[h],d=jL(_);if(d===void 0)continue;let g="";if(s.length===0?g=d:g=`${s}.${d}`,d===n.textNodeName){let H=_[d];PL(g,n)||(H=n.tagValueProcessor(d,H),H=bv(H,n)),c&&(u+=r),u+=H,c=!1;continue}else if(d===n.cdataPropName){c&&(u+=r),u+=`<![CDATA[${_[d][0][n.textNodeName]}]]>`,c=!1;continue}else if(d===n.commentPropName){u+=r+`<!--${_[d][0][n.textNodeName]}-->`,c=!0;continue}else if(d[0]==="?"){const H=Oy(_[":@"],n),X=d==="?xml"?"":r;let S=_[d][0][n.textNodeName];S=S.length!==0?" "+S:"",u+=X+`<${d}${S}${H}?>`,c=!0;continue}let b=r;b!==""&&(b+=n.indentBy);const E=Oy(_[":@"],n),A=r+`<${d}${E}`,j=Ev(_[d],n,g,b);n.unpairedTags.indexOf(d)!==-1?n.suppressUnpairedNode?u+=A+">":u+=A+"/>":(!j||j.length===0)&&n.suppressEmptyNode?u+=A+"/>":j&&j.endsWith(">")?u+=A+`>${j}${r}</${d}>`:(u+=A+">",j&&r!==""&&(j.includes("/>")||j.includes("</"))?u+=r+n.indentBy+j+r:u+=j,u+=`</${d}>`),c=!0}return u}function jL(i){const n=Object.keys(i);for(let s=0;s<n.length;s++){const r=n[s];if(i.hasOwnProperty(r)&&r!==":@")return r}}function Oy(i,n){let s="";if(i&&!n.ignoreAttributes)for(let r in i){if(!i.hasOwnProperty(r))continue;let u=n.attributeValueProcessor(r,i[r]);u=bv(u,n),u===!0&&n.suppressBooleanAttributes?s+=` ${r.substr(n.attributeNamePrefix.length)}`:s+=` ${r.substr(n.attributeNamePrefix.length)}="${u}"`}return s}function PL(i,n){i=i.substr(0,i.length-n.textNodeName.length-1);let s=i.substr(i.lastIndexOf(".")+1);for(let r in n.stopNodes)if(n.stopNodes[r]===i||n.stopNodes[r]==="*."+s)return!0;return!1}function bv(i,n){if(i&&i.length>0&&n.processEntities)for(let s=0;s<n.entities.length;s++){const r=n.entities[s];i=i.replace(r.regex,r.val)}return i}const GL={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(i,n){return n},attributeValueProcessor:function(i,n){return n},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1};function qi(i){this.options=Object.assign({},GL,i),this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=yv(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=$L),this.processTextOrObjNode=qL,this.options.format?(this.indentate=HL,this.tagEndChar=`>
126
+ For further details.`);this.skipValidations=ft(s,"skipValidations")?s.skipValidations:ui.skipValidations}}Dr.DEFER_DEFINITION_ERRORS_HANDLING=!1;X2(Dr,[A2,x2,j2,P2,q2,G2,H2,$2,V2,F2]);class Q2 extends Dr{constructor(n,s=ui){const r=ge(s);r.outputCst=!0,super(n,r)}}const pv=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",Z2=pv+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",W2="["+pv+"]["+Z2+"]*",J2=new RegExp("^"+W2+"$");function gv(i,n){const s=[];let r=n.exec(i);for(;r;){const u=[];u.startIndex=n.lastIndex-r[0].length;const c=r.length;for(let h=0;h<c;h++)u.push(r[h]);s.push(u),r=n.exec(i)}return s}const no=function(i){const n=J2.exec(i);return!(n===null||typeof n>"u")};function tL(i){return typeof i<"u"}const eL={allowBooleanAttributes:!1,unpairedTags:[]};function nL(i,n){n=Object.assign({},eL,n);const s=[];let r=!1,u=!1;i[0]==="\uFEFF"&&(i=i.substr(1));for(let c=0;c<i.length;c++)if(i[c]==="<"&&i[c+1]==="?"){if(c+=2,c=by(i,c),c.err)return c}else if(i[c]==="<"){let h=c;if(c++,i[c]==="!"){c=Ty(i,c);continue}else{let _=!1;i[c]==="/"&&(_=!0,c++);let d="";for(;c<i.length&&i[c]!==">"&&i[c]!==" "&&i[c]!==" "&&i[c]!==`
127
+ `&&i[c]!=="\r";c++)d+=i[c];if(d=d.trim(),d[d.length-1]==="/"&&(d=d.substring(0,d.length-1),c--),!cL(d)){let E;return d.trim().length===0?E="Invalid space after '<'.":E="Tag '"+d+"' is an invalid name.",Wt("InvalidTag",E,be(i,c))}const g=sL(i,c);if(g===!1)return Wt("InvalidAttr","Attributes for '"+d+"' have open quote.",be(i,c));let b=g.value;if(c=g.index,b[b.length-1]==="/"){const E=c-b.length;b=b.substring(0,b.length-1);const A=Sy(b,n);if(A===!0)r=!0;else return Wt(A.err.code,A.err.msg,be(i,E+A.err.line))}else if(_)if(g.tagClosed){if(b.trim().length>0)return Wt("InvalidTag","Closing tag '"+d+"' can't have attributes or invalid starting.",be(i,h));if(s.length===0)return Wt("InvalidTag","Closing tag '"+d+"' has not been opened.",be(i,h));{const E=s.pop();if(d!==E.tagName){let A=be(i,E.tagStartPos);return Wt("InvalidTag","Expected closing tag '"+E.tagName+"' (opened in line "+A.line+", col "+A.col+") instead of closing tag '"+d+"'.",be(i,h))}s.length==0&&(u=!0)}}else return Wt("InvalidTag","Closing tag '"+d+"' doesn't have proper closing.",be(i,c));else{const E=Sy(b,n);if(E!==!0)return Wt(E.err.code,E.err.msg,be(i,c-b.length+E.err.line));if(u===!0)return Wt("InvalidXml","Multiple possible root nodes found.",be(i,c));n.unpairedTags.indexOf(d)!==-1||s.push({tagName:d,tagStartPos:h}),r=!0}for(c++;c<i.length;c++)if(i[c]==="<")if(i[c+1]==="!"){c++,c=Ty(i,c);continue}else if(i[c+1]==="?"){if(c=by(i,++c),c.err)return c}else break;else if(i[c]==="&"){const E=uL(i,c);if(E==-1)return Wt("InvalidChar","char '&' is not expected.",be(i,c));c=E}else if(u===!0&&!Ey(i[c]))return Wt("InvalidXml","Extra text at the end",be(i,c));i[c]==="<"&&c--}}else{if(Ey(i[c]))continue;return Wt("InvalidChar","char '"+i[c]+"' is not expected.",be(i,c))}if(r){if(s.length==1)return Wt("InvalidTag","Unclosed tag '"+s[0].tagName+"'.",be(i,s[0].tagStartPos));if(s.length>0)return Wt("InvalidXml","Invalid '"+JSON.stringify(s.map(c=>c.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Wt("InvalidXml","Start tag expected.",1);return!0}function Ey(i){return i===" "||i===" "||i===`
128
+ `||i==="\r"}function by(i,n){const s=n;for(;n<i.length;n++)if(i[n]=="?"||i[n]==" "){const r=i.substr(s,n-s);if(n>5&&r==="xml")return Wt("InvalidXml","XML declaration allowed only at the start of the document.",be(i,n));if(i[n]=="?"&&i[n+1]==">"){n++;break}else continue}return n}function Ty(i,n){if(i.length>n+5&&i[n+1]==="-"&&i[n+2]==="-"){for(n+=3;n<i.length;n++)if(i[n]==="-"&&i[n+1]==="-"&&i[n+2]===">"){n+=2;break}}else if(i.length>n+8&&i[n+1]==="D"&&i[n+2]==="O"&&i[n+3]==="C"&&i[n+4]==="T"&&i[n+5]==="Y"&&i[n+6]==="P"&&i[n+7]==="E"){let s=1;for(n+=8;n<i.length;n++)if(i[n]==="<")s++;else if(i[n]===">"&&(s--,s===0))break}else if(i.length>n+9&&i[n+1]==="["&&i[n+2]==="C"&&i[n+3]==="D"&&i[n+4]==="A"&&i[n+5]==="T"&&i[n+6]==="A"&&i[n+7]==="["){for(n+=8;n<i.length;n++)if(i[n]==="]"&&i[n+1]==="]"&&i[n+2]===">"){n+=2;break}}return n}const iL='"',aL="'";function sL(i,n){let s="",r="",u=!1;for(;n<i.length;n++){if(i[n]===iL||i[n]===aL)r===""?r=i[n]:r!==i[n]||(r="");else if(i[n]===">"&&r===""){u=!0;break}s+=i[n]}return r!==""?!1:{value:s,index:n,tagClosed:u}}const rL=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function Sy(i,n){const s=gv(i,rL),r={};for(let u=0;u<s.length;u++){if(s[u][1].length===0)return Wt("InvalidAttr","Attribute '"+s[u][2]+"' has no space in starting.",dr(s[u]));if(s[u][3]!==void 0&&s[u][4]===void 0)return Wt("InvalidAttr","Attribute '"+s[u][2]+"' is without value.",dr(s[u]));if(s[u][3]===void 0&&!n.allowBooleanAttributes)return Wt("InvalidAttr","boolean attribute '"+s[u][2]+"' is not allowed.",dr(s[u]));const c=s[u][2];if(!oL(c))return Wt("InvalidAttr","Attribute '"+c+"' is an invalid name.",dr(s[u]));if(!r.hasOwnProperty(c))r[c]=1;else return Wt("InvalidAttr","Attribute '"+c+"' is repeated.",dr(s[u]))}return!0}function lL(i,n){let s=/\d/;for(i[n]==="x"&&(n++,s=/[\da-fA-F]/);n<i.length;n++){if(i[n]===";")return n;if(!i[n].match(s))break}return-1}function uL(i,n){if(n++,i[n]===";")return-1;if(i[n]==="#")return n++,lL(i,n);let s=0;for(;n<i.length;n++,s++)if(!(i[n].match(/\w/)&&s<20)){if(i[n]===";")break;return-1}return n}function Wt(i,n,s){return{err:{code:i,msg:n,line:s.line||s,col:s.col}}}function oL(i){return no(i)}function cL(i){return no(i)}function be(i,n){const s=i.substring(0,n).split(/\r?\n/);return{line:s.length,col:s[s.length-1].length+1}}function dr(i){return i.startIndex+i[1].length}const fL={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(i,n){return n},attributeValueProcessor:function(i,n){return n},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(i,n,s){return i},captureMetaData:!1},hL=function(i){return Object.assign({},fL,i)};let zu;typeof Symbol!="function"?zu="@@xmlMetadata":zu=Symbol("XML Node Metadata");class ua{constructor(n){this.tagname=n,this.child=[],this[":@"]={}}add(n,s){n==="__proto__"&&(n="#__proto__"),this.child.push({[n]:s})}addChild(n,s){n.tagname==="__proto__"&&(n.tagname="#__proto__"),n[":@"]&&Object.keys(n[":@"]).length>0?this.child.push({[n.tagname]:n.child,":@":n[":@"]}):this.child.push({[n.tagname]:n.child}),s!==void 0&&(this.child[this.child.length-1][zu]={startIndex:s})}static getMetaDataSymbol(){return zu}}class dL{constructor(n){this.suppressValidationErr=!n}readDocType(n,s){const r={};if(n[s+3]==="O"&&n[s+4]==="C"&&n[s+5]==="T"&&n[s+6]==="Y"&&n[s+7]==="P"&&n[s+8]==="E"){s=s+9;let u=1,c=!1,h=!1,_="";for(;s<n.length;s++)if(n[s]==="<"&&!h){if(c&&la(n,"!ENTITY",s)){s+=7;let d,g;[d,g,s]=this.readEntityExp(n,s+1,this.suppressValidationErr),g.indexOf("&")===-1&&(r[d]={regx:RegExp(`&${d};`,"g"),val:g})}else if(c&&la(n,"!ELEMENT",s)){s+=8;const{index:d}=this.readElementExp(n,s+1);s=d}else if(c&&la(n,"!ATTLIST",s))s+=8;else if(c&&la(n,"!NOTATION",s)){s+=9;const{index:d}=this.readNotationExp(n,s+1,this.suppressValidationErr);s=d}else if(la(n,"!--",s))h=!0;else throw new Error("Invalid DOCTYPE");u++,_=""}else if(n[s]===">"){if(h?n[s-1]==="-"&&n[s-2]==="-"&&(h=!1,u--):u--,u===0)break}else n[s]==="["?c=!0:_+=n[s];if(u!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:r,i:s}}readEntityExp(n,s){s=we(n,s);let r="";for(;s<n.length&&!/\s/.test(n[s])&&n[s]!=='"'&&n[s]!=="'";)r+=n[s],s++;if(_r(r),s=we(n,s),!this.suppressValidationErr){if(n.substring(s,s+6).toUpperCase()==="SYSTEM")throw new Error("External entities are not supported");if(n[s]==="%")throw new Error("Parameter entities are not supported")}let u="";return[s,u]=this.readIdentifierVal(n,s,"entity"),s--,[r,u,s]}readNotationExp(n,s){s=we(n,s);let r="";for(;s<n.length&&!/\s/.test(n[s]);)r+=n[s],s++;!this.suppressValidationErr&&_r(r),s=we(n,s);const u=n.substring(s,s+6).toUpperCase();if(!this.suppressValidationErr&&u!=="SYSTEM"&&u!=="PUBLIC")throw new Error(`Expected SYSTEM or PUBLIC, found "${u}"`);s+=u.length,s=we(n,s);let c=null,h=null;if(u==="PUBLIC")[s,c]=this.readIdentifierVal(n,s,"publicIdentifier"),s=we(n,s),(n[s]==='"'||n[s]==="'")&&([s,h]=this.readIdentifierVal(n,s,"systemIdentifier"));else if(u==="SYSTEM"&&([s,h]=this.readIdentifierVal(n,s,"systemIdentifier"),!this.suppressValidationErr&&!h))throw new Error("Missing mandatory system identifier for SYSTEM notation");return{notationName:r,publicIdentifier:c,systemIdentifier:h,index:--s}}readIdentifierVal(n,s,r){let u="";const c=n[s];if(c!=='"'&&c!=="'")throw new Error(`Expected quoted string, found "${c}"`);for(s++;s<n.length&&n[s]!==c;)u+=n[s],s++;if(n[s]!==c)throw new Error(`Unterminated ${r} value`);return s++,[s,u]}readElementExp(n,s){s=we(n,s);let r="";for(;s<n.length&&!/\s/.test(n[s]);)r+=n[s],s++;if(!this.suppressValidationErr&&!no(r))throw new Error(`Invalid element name: "${r}"`);s=we(n,s);let u="";if(n[s]==="E"&&la(n,"MPTY",s))s+=4;else if(n[s]==="A"&&la(n,"NY",s))s+=2;else if(n[s]==="("){for(s++;s<n.length&&n[s]!==")";)u+=n[s],s++;if(n[s]!==")")throw new Error("Unterminated content model")}else if(!this.suppressValidationErr)throw new Error(`Invalid Element Expression, found "${n[s]}"`);return{elementName:r,contentModel:u.trim(),index:s}}readAttlistExp(n,s){s=we(n,s);let r="";for(;s<n.length&&!/\s/.test(n[s]);)r+=n[s],s++;_r(r),s=we(n,s);let u="";for(;s<n.length&&!/\s/.test(n[s]);)u+=n[s],s++;if(!_r(u))throw new Error(`Invalid attribute name: "${u}"`);s=we(n,s);let c="";if(n.substring(s,s+8).toUpperCase()==="NOTATION"){if(c="NOTATION",s+=8,s=we(n,s),n[s]!=="(")throw new Error(`Expected '(', found "${n[s]}"`);s++;let _=[];for(;s<n.length&&n[s]!==")";){let d="";for(;s<n.length&&n[s]!=="|"&&n[s]!==")";)d+=n[s],s++;if(d=d.trim(),!_r(d))throw new Error(`Invalid notation name: "${d}"`);_.push(d),n[s]==="|"&&(s++,s=we(n,s))}if(n[s]!==")")throw new Error("Unterminated list of notations");s++,c+=" ("+_.join("|")+")"}else{for(;s<n.length&&!/\s/.test(n[s]);)c+=n[s],s++;const _=["CDATA","ID","IDREF","IDREFS","ENTITY","ENTITIES","NMTOKEN","NMTOKENS"];if(!this.suppressValidationErr&&!_.includes(c.toUpperCase()))throw new Error(`Invalid attribute type: "${c}"`)}s=we(n,s);let h="";return n.substring(s,s+8).toUpperCase()==="#REQUIRED"?(h="#REQUIRED",s+=8):n.substring(s,s+7).toUpperCase()==="#IMPLIED"?(h="#IMPLIED",s+=7):[s,h]=this.readIdentifierVal(n,s,"ATTLIST"),{elementName:r,attributeName:u,attributeType:c,defaultValue:h,index:s}}}const we=(i,n)=>{for(;n<i.length&&/\s/.test(i[n]);)n++;return n};function la(i,n,s){for(let r=0;r<n.length;r++)if(n[r]!==i[s+r+1])return!1;return!0}function _r(i){if(no(i))return i;throw new Error(`Invalid entity name ${i}`)}const _L=/^[-+]?0x[a-fA-F0-9]+$/,pL=/^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/,gL={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};function mL(i,n={}){if(n=Object.assign({},gL,n),!i||typeof i!="string")return i;let s=i.trim();if(n.skipLike!==void 0&&n.skipLike.test(s))return i;if(i==="0")return 0;if(n.hex&&_L.test(s))return bL(s,16);if(s.includes("e")||s.includes("E"))return vL(i,s,n);{const r=pL.exec(s);if(r){const u=r[1]||"",c=r[2];let h=EL(r[3]);const _=u?i[c.length+1]===".":i[c.length]===".";if(!n.leadingZeros&&(c.length>1||c.length===1&&!_))return i;{const d=Number(s),g=String(d);if(d===0)return d;if(g.search(/[eE]/)!==-1)return n.eNotation?d:i;if(s.indexOf(".")!==-1)return g==="0"||g===h||g===`${u}${h}`?d:i;let b=c?h:s;return c?b===g||u+b===g?d:i:b===g||b===u+g?d:i}}else return i}}const yL=/^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;function vL(i,n,s){if(!s.eNotation)return i;const r=n.match(yL);if(r){let u=r[1]||"";const c=r[3].indexOf("e")===-1?"E":"e",h=r[2],_=u?i[h.length+1]===c:i[h.length]===c;return h.length>1&&_?i:h.length===1&&(r[3].startsWith(`.${c}`)||r[3][0]===c)?Number(n):s.leadingZeros&&!_?(n=(r[1]||"")+r[3],Number(n)):i}else return i}function EL(i){return i&&i.indexOf(".")!==-1&&(i=i.replace(/0+$/,""),i==="."?i="0":i[0]==="."?i="0"+i:i[i.length-1]==="."&&(i=i.substring(0,i.length-1))),i}function bL(i,n){if(parseInt)return parseInt(i,n);if(Number.parseInt)return Number.parseInt(i,n);if(window&&window.parseInt)return window.parseInt(i,n);throw new Error("parseInt, Number.parseInt, window.parseInt are not supported")}function mv(i){return typeof i=="function"?i:Array.isArray(i)?n=>{for(const s of i)if(typeof s=="string"&&n===s||s instanceof RegExp&&s.test(n))return!0}:()=>!1}class TL{constructor(n){if(this.options=n,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(s,r)=>String.fromCodePoint(Number.parseInt(r,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(s,r)=>String.fromCodePoint(Number.parseInt(r,16))}},this.addExternalEntities=SL,this.parseXml=xL,this.parseTextData=AL,this.resolveNameSpace=OL,this.buildAttributesMap=RL,this.isItStopNode=ML,this.replaceEntitiesValue=LL,this.readStopNodeData=IL,this.saveTextToParentTag=wL,this.addChild=CL,this.ignoreAttributesFn=mv(this.options.ignoreAttributes),this.options.stopNodes&&this.options.stopNodes.length>0){this.stopNodesExact=new Set,this.stopNodesWildcard=new Set;for(let s=0;s<this.options.stopNodes.length;s++){const r=this.options.stopNodes[s];typeof r=="string"&&(r.startsWith("*.")?this.stopNodesWildcard.add(r.substring(2)):this.stopNodesExact.add(r))}}}}function SL(i){const n=Object.keys(i);for(let s=0;s<n.length;s++){const r=n[s];this.lastEntities[r]={regex:new RegExp("&"+r+";","g"),val:i[r]}}}function AL(i,n,s,r,u,c,h){if(i!==void 0&&(this.options.trimValues&&!r&&(i=i.trim()),i.length>0)){h||(i=this.replaceEntitiesValue(i));const _=this.options.tagValueProcessor(n,i,s,u,c);return _==null?i:typeof _!=typeof i||_!==i?_:this.options.trimValues?mh(i,this.options.parseTagValue,this.options.numberParseOptions):i.trim()===i?mh(i,this.options.parseTagValue,this.options.numberParseOptions):i}}function OL(i){if(this.options.removeNSPrefix){const n=i.split(":"),s=i.charAt(0)==="/"?"/":"";if(n[0]==="xmlns")return"";n.length===2&&(i=s+n[1])}return i}const NL=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function RL(i,n){if(this.options.ignoreAttributes!==!0&&typeof i=="string"){const s=gv(i,NL),r=s.length,u={};for(let c=0;c<r;c++){const h=this.resolveNameSpace(s[c][1]);if(this.ignoreAttributesFn(h,n))continue;let _=s[c][4],d=this.options.attributeNamePrefix+h;if(h.length)if(this.options.transformAttributeName&&(d=this.options.transformAttributeName(d)),d==="__proto__"&&(d="#__proto__"),_!==void 0){this.options.trimValues&&(_=_.trim()),_=this.replaceEntitiesValue(_);const g=this.options.attributeValueProcessor(h,_,n);g==null?u[d]=_:typeof g!=typeof _||g!==_?u[d]=g:u[d]=mh(_,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(u[d]=!0)}if(!Object.keys(u).length)return;if(this.options.attributesGroupName){const c={};return c[this.options.attributesGroupName]=u,c}return u}}const xL=function(i){i=i.replace(/\r\n?/g,`
129
+ `);const n=new ua("!xml");let s=n,r="",u="";const c=new dL(this.options.processEntities);for(let h=0;h<i.length;h++)if(i[h]==="<")if(i[h+1]==="/"){const d=ca(i,">",h,"Closing Tag is not closed.");let g=i.substring(h+2,d).trim();if(this.options.removeNSPrefix){const A=g.indexOf(":");A!==-1&&(g=g.substr(A+1))}this.options.transformTagName&&(g=this.options.transformTagName(g)),s&&(r=this.saveTextToParentTag(r,s,u));const b=u.substring(u.lastIndexOf(".")+1);if(g&&this.options.unpairedTags.indexOf(g)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${g}>`);let E=0;b&&this.options.unpairedTags.indexOf(b)!==-1?(E=u.lastIndexOf(".",u.lastIndexOf(".")-1),this.tagsNodeStack.pop()):E=u.lastIndexOf("."),u=u.substring(0,E),s=this.tagsNodeStack.pop(),r="",h=d}else if(i[h+1]==="?"){let d=gh(i,h,!1,"?>");if(!d)throw new Error("Pi Tag is not closed.");if(r=this.saveTextToParentTag(r,s,u),!(this.options.ignoreDeclaration&&d.tagName==="?xml"||this.options.ignorePiTags)){const g=new ua(d.tagName);g.add(this.options.textNodeName,""),d.tagName!==d.tagExp&&d.attrExpPresent&&(g[":@"]=this.buildAttributesMap(d.tagExp,u)),this.addChild(s,g,u,h)}h=d.closeIndex+1}else if(i.substr(h+1,3)==="!--"){const d=ca(i,"-->",h+4,"Comment is not closed.");if(this.options.commentPropName){const g=i.substring(h+4,d-2);r=this.saveTextToParentTag(r,s,u),s.add(this.options.commentPropName,[{[this.options.textNodeName]:g}])}h=d}else if(i.substr(h+1,2)==="!D"){const d=c.readDocType(i,h);this.docTypeEntities=d.entities,h=d.i}else if(i.substr(h+1,2)==="!["){const d=ca(i,"]]>",h,"CDATA is not closed.")-2,g=i.substring(h+9,d);r=this.saveTextToParentTag(r,s,u);let b=this.parseTextData(g,s.tagname,u,!0,!1,!0,!0);b==null&&(b=""),this.options.cdataPropName?s.add(this.options.cdataPropName,[{[this.options.textNodeName]:g}]):s.add(this.options.textNodeName,b),h=d+2}else{let d=gh(i,h,this.options.removeNSPrefix),g=d.tagName;const b=d.rawTagName;let E=d.tagExp,A=d.attrExpPresent,j=d.closeIndex;if(this.options.transformTagName){const S=this.options.transformTagName(g);E===g&&(E=S),g=S}s&&r&&s.tagname!=="!xml"&&(r=this.saveTextToParentTag(r,s,u,!1));const H=s;H&&this.options.unpairedTags.indexOf(H.tagname)!==-1&&(s=this.tagsNodeStack.pop(),u=u.substring(0,u.lastIndexOf("."))),g!==n.tagname&&(u+=u?"."+g:g);const F=h;if(this.isItStopNode(this.stopNodesExact,this.stopNodesWildcard,u,g)){let S="";if(E.length>0&&E.lastIndexOf("/")===E.length-1)g[g.length-1]==="/"?(g=g.substr(0,g.length-1),u=u.substr(0,u.length-1),E=g):E=E.substr(0,E.length-1),h=d.closeIndex;else if(this.options.unpairedTags.indexOf(g)!==-1)h=d.closeIndex;else{const T=this.readStopNodeData(i,b,j+1);if(!T)throw new Error(`Unexpected end of ${b}`);h=T.i,S=T.tagContent}const v=new ua(g);g!==E&&A&&(v[":@"]=this.buildAttributesMap(E,u)),S&&(S=this.parseTextData(S,g,u,!0,A,!0,!0)),u=u.substr(0,u.lastIndexOf(".")),v.add(this.options.textNodeName,S),this.addChild(s,v,u,F)}else{if(E.length>0&&E.lastIndexOf("/")===E.length-1){if(g[g.length-1]==="/"?(g=g.substr(0,g.length-1),u=u.substr(0,u.length-1),E=g):E=E.substr(0,E.length-1),this.options.transformTagName){const v=this.options.transformTagName(g);E===g&&(E=v),g=v}const S=new ua(g);g!==E&&A&&(S[":@"]=this.buildAttributesMap(E,u)),this.addChild(s,S,u,F),u=u.substr(0,u.lastIndexOf("."))}else{const S=new ua(g);this.tagsNodeStack.push(s),g!==E&&A&&(S[":@"]=this.buildAttributesMap(E,u)),this.addChild(s,S,u,F),s=S}r="",h=j}}else r+=i[h];return n.child};function CL(i,n,s,r){this.options.captureMetaData||(r=void 0);const u=this.options.updateTag(n.tagname,s,n[":@"]);u===!1||(typeof u=="string"&&(n.tagname=u),i.addChild(n,r))}const LL=function(i){if(this.options.processEntities){for(let n in this.docTypeEntities){const s=this.docTypeEntities[n];i=i.replace(s.regx,s.val)}for(let n in this.lastEntities){const s=this.lastEntities[n];i=i.replace(s.regex,s.val)}if(this.options.htmlEntities)for(let n in this.htmlEntities){const s=this.htmlEntities[n];i=i.replace(s.regex,s.val)}i=i.replace(this.ampEntity.regex,this.ampEntity.val)}return i};function wL(i,n,s,r){return i&&(r===void 0&&(r=n.child.length===0),i=this.parseTextData(i,n.tagname,s,!1,n[":@"]?Object.keys(n[":@"]).length!==0:!1,r),i!==void 0&&i!==""&&n.add(this.options.textNodeName,i),i=""),i}function ML(i,n,s,r){return!!(n&&n.has(r)||i&&i.has(s))}function UL(i,n,s=">"){let r,u="";for(let c=n;c<i.length;c++){let h=i[c];if(r)h===r&&(r="");else if(h==='"'||h==="'")r=h;else if(h===s[0])if(s[1]){if(i[c+1]===s[1])return{data:u,index:c}}else return{data:u,index:c};else h===" "&&(h=" ");u+=h}}function ca(i,n,s,r){const u=i.indexOf(n,s);if(u===-1)throw new Error(r);return u+n.length-1}function gh(i,n,s,r=">"){const u=UL(i,n+1,r);if(!u)return;let c=u.data;const h=u.index,_=c.search(/\s/);let d=c,g=!0;_!==-1&&(d=c.substring(0,_),c=c.substring(_+1).trimStart());const b=d;if(s){const E=d.indexOf(":");E!==-1&&(d=d.substr(E+1),g=d!==u.data.substr(E+1))}return{tagName:d,tagExp:c,closeIndex:h,attrExpPresent:g,rawTagName:b}}function IL(i,n,s){const r=s;let u=1;for(;s<i.length;s++)if(i[s]==="<")if(i[s+1]==="/"){const c=ca(i,">",s,`${n} is not closed`);if(i.substring(s+2,c).trim()===n&&(u--,u===0))return{tagContent:i.substring(r,s),i:c};s=c}else if(i[s+1]==="?")s=ca(i,"?>",s+1,"StopNode is not closed.");else if(i.substr(s+1,3)==="!--")s=ca(i,"-->",s+3,"StopNode is not closed.");else if(i.substr(s+1,2)==="![")s=ca(i,"]]>",s,"StopNode is not closed.")-2;else{const c=gh(i,s,">");c&&((c&&c.tagName)===n&&c.tagExp[c.tagExp.length-1]!=="/"&&u++,s=c.closeIndex)}}function mh(i,n,s){if(n&&typeof i=="string"){const r=i.trim();return r==="true"?!0:r==="false"?!1:mL(i,s)}else return tL(i)?i:""}const jf=ua.getMetaDataSymbol();function kL(i,n){return yv(i,n)}function yv(i,n,s){let r;const u={};for(let c=0;c<i.length;c++){const h=i[c],_=zL(h);let d="";if(s===void 0?d=_:d=s+"."+_,_===n.textNodeName)r===void 0?r=h[_]:r+=""+h[_];else{if(_===void 0)continue;if(h[_]){let g=yv(h[_],n,d);const b=DL(g,n);h[jf]!==void 0&&(g[jf]=h[jf]),h[":@"]?BL(g,h[":@"],d,n):Object.keys(g).length===1&&g[n.textNodeName]!==void 0&&!n.alwaysCreateTextNode?g=g[n.textNodeName]:Object.keys(g).length===0&&(n.alwaysCreateTextNode?g[n.textNodeName]="":g=""),u[_]!==void 0&&u.hasOwnProperty(_)?(Array.isArray(u[_])||(u[_]=[u[_]]),u[_].push(g)):n.isArray(_,d,b)?u[_]=[g]:u[_]=g}}}return typeof r=="string"?r.length>0&&(u[n.textNodeName]=r):r!==void 0&&(u[n.textNodeName]=r),u}function zL(i){const n=Object.keys(i);for(let s=0;s<n.length;s++){const r=n[s];if(r!==":@")return r}}function BL(i,n,s,r){if(n){const u=Object.keys(n),c=u.length;for(let h=0;h<c;h++){const _=u[h];r.isArray(_,s+"."+_,!0,!0)?i[_]=[n[_]]:i[_]=n[_]}}}function DL(i,n){const{textNodeName:s}=n,r=Object.keys(i).length;return!!(r===0||r===1&&(i[s]||typeof i[s]=="boolean"||i[s]===0))}class jL{constructor(n){this.externalEntities={},this.options=hL(n)}parse(n,s){if(typeof n!="string"&&n.toString)n=n.toString();else if(typeof n!="string")throw new Error("XML data is accepted in String or Bytes[] form.");if(s){s===!0&&(s={});const c=nL(n,s);if(c!==!0)throw Error(`${c.err.msg}:${c.err.line}:${c.err.col}`)}const r=new TL(this.options);r.addExternalEntities(this.externalEntities);const u=r.parseXml(n);return this.options.preserveOrder||u===void 0?u:kL(u,this.options)}addEntity(n,s){if(s.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");if(n.indexOf("&")!==-1||n.indexOf(";")!==-1)throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '&#xD;'");if(s==="&")throw new Error("An entity with value '&' is not permitted");this.externalEntities[n]=s}static getMetaDataSymbol(){return ua.getMetaDataSymbol()}}const PL=`
130
+ `;function GL(i,n){let s="";return n.format&&n.indentBy.length>0&&(s=PL),vv(i,n,"",s)}function vv(i,n,s,r){let u="",c=!1;for(let h=0;h<i.length;h++){const _=i[h],d=qL(_);if(d===void 0)continue;let g="";if(s.length===0?g=d:g=`${s}.${d}`,d===n.textNodeName){let H=_[d];HL(g,n)||(H=n.tagValueProcessor(d,H),H=Ev(H,n)),c&&(u+=r),u+=H,c=!1;continue}else if(d===n.cdataPropName){c&&(u+=r),u+=`<![CDATA[${_[d][0][n.textNodeName]}]]>`,c=!1;continue}else if(d===n.commentPropName){u+=r+`<!--${_[d][0][n.textNodeName]}-->`,c=!0;continue}else if(d[0]==="?"){const H=Ay(_[":@"],n),F=d==="?xml"?"":r;let S=_[d][0][n.textNodeName];S=S.length!==0?" "+S:"",u+=F+`<${d}${S}${H}?>`,c=!0;continue}let b=r;b!==""&&(b+=n.indentBy);const E=Ay(_[":@"],n),A=r+`<${d}${E}`,j=vv(_[d],n,g,b);n.unpairedTags.indexOf(d)!==-1?n.suppressUnpairedNode?u+=A+">":u+=A+"/>":(!j||j.length===0)&&n.suppressEmptyNode?u+=A+"/>":j&&j.endsWith(">")?u+=A+`>${j}${r}</${d}>`:(u+=A+">",j&&r!==""&&(j.includes("/>")||j.includes("</"))?u+=r+n.indentBy+j+r:u+=j,u+=`</${d}>`),c=!0}return u}function qL(i){const n=Object.keys(i);for(let s=0;s<n.length;s++){const r=n[s];if(i.hasOwnProperty(r)&&r!==":@")return r}}function Ay(i,n){let s="";if(i&&!n.ignoreAttributes)for(let r in i){if(!i.hasOwnProperty(r))continue;let u=n.attributeValueProcessor(r,i[r]);u=Ev(u,n),u===!0&&n.suppressBooleanAttributes?s+=` ${r.substr(n.attributeNamePrefix.length)}`:s+=` ${r.substr(n.attributeNamePrefix.length)}="${u}"`}return s}function HL(i,n){i=i.substr(0,i.length-n.textNodeName.length-1);let s=i.substr(i.lastIndexOf(".")+1);for(let r in n.stopNodes)if(n.stopNodes[r]===i||n.stopNodes[r]==="*."+s)return!0;return!1}function Ev(i,n){if(i&&i.length>0&&n.processEntities)for(let s=0;s<n.entities.length;s++){const r=n.entities[s];i=i.replace(r.regex,r.val)}return i}const $L={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(i,n){return n},attributeValueProcessor:function(i,n){return n},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1};function hi(i){this.options=Object.assign({},$L,i),this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=mv(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=YL),this.processTextOrObjNode=KL,this.options.format?(this.indentate=VL,this.tagEndChar=`>
131
131
  `,this.newLine=`
132
- `):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}qi.prototype.build=function(i){return this.options.preserveOrder?DL(i,this.options):(Array.isArray(i)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(i={[this.options.arrayNodeName]:i}),this.j2x(i,0,[]).val)};qi.prototype.j2x=function(i,n,s){let r="",u="";const c=s.join(".");for(let h in i)if(Object.prototype.hasOwnProperty.call(i,h))if(typeof i[h]>"u")this.isAttribute(h)&&(u+="");else if(i[h]===null)this.isAttribute(h)||h===this.options.cdataPropName?u+="":h[0]==="?"?u+=this.indentate(n)+"<"+h+"?"+this.tagEndChar:u+=this.indentate(n)+"<"+h+"/"+this.tagEndChar;else if(i[h]instanceof Date)u+=this.buildTextValNode(i[h],h,"",n);else if(typeof i[h]!="object"){const _=this.isAttribute(h);if(_&&!this.ignoreAttributesFn(_,c))r+=this.buildAttrPairStr(_,""+i[h]);else if(!_)if(h===this.options.textNodeName){let d=this.options.tagValueProcessor(h,""+i[h]);u+=this.replaceEntitiesValue(d)}else u+=this.buildTextValNode(i[h],h,"",n)}else if(Array.isArray(i[h])){const _=i[h].length;let d="",g="";for(let b=0;b<_;b++){const E=i[h][b];if(!(typeof E>"u"))if(E===null)h[0]==="?"?u+=this.indentate(n)+"<"+h+"?"+this.tagEndChar:u+=this.indentate(n)+"<"+h+"/"+this.tagEndChar;else if(typeof E=="object")if(this.options.oneListGroup){const A=this.j2x(E,n+1,s.concat(h));d+=A.val,this.options.attributesGroupName&&E.hasOwnProperty(this.options.attributesGroupName)&&(g+=A.attrStr)}else d+=this.processTextOrObjNode(E,h,n,s);else if(this.options.oneListGroup){let A=this.options.tagValueProcessor(h,E);A=this.replaceEntitiesValue(A),d+=A}else d+=this.buildTextValNode(E,h,"",n)}this.options.oneListGroup&&(d=this.buildObjectNode(d,h,g,n)),u+=d}else if(this.options.attributesGroupName&&h===this.options.attributesGroupName){const _=Object.keys(i[h]),d=_.length;for(let g=0;g<d;g++)r+=this.buildAttrPairStr(_[g],""+i[h][_[g]])}else u+=this.processTextOrObjNode(i[h],h,n,s);return{attrStr:r,val:u}};qi.prototype.buildAttrPairStr=function(i,n){return n=this.options.attributeValueProcessor(i,""+n),n=this.replaceEntitiesValue(n),this.options.suppressBooleanAttributes&&n==="true"?" "+i:" "+i+'="'+n+'"'};function qL(i,n,s,r){const u=this.j2x(i,s+1,r.concat(n));return i[this.options.textNodeName]!==void 0&&Object.keys(i).length===1?this.buildTextValNode(i[this.options.textNodeName],n,u.attrStr,s):this.buildObjectNode(u.val,n,u.attrStr,s)}qi.prototype.buildObjectNode=function(i,n,s,r){if(i==="")return n[0]==="?"?this.indentate(r)+"<"+n+s+"?"+this.tagEndChar:this.indentate(r)+"<"+n+s+this.closeTag(n)+this.tagEndChar;{let u="</"+n+this.tagEndChar,c="";return n[0]==="?"&&(c="?",u=""),(s||s==="")&&i.indexOf("<")===-1?this.indentate(r)+"<"+n+s+c+">"+i+u:this.options.commentPropName!==!1&&n===this.options.commentPropName&&c.length===0?this.indentate(r)+`<!--${i}-->`+this.newLine:this.indentate(r)+"<"+n+s+c+this.tagEndChar+i+this.indentate(r)+u}};qi.prototype.closeTag=function(i){let n="";return this.options.unpairedTags.indexOf(i)!==-1?this.options.suppressUnpairedNode||(n="/"):this.options.suppressEmptyNode?n="/":n=`></${i}`,n};qi.prototype.buildTextValNode=function(i,n,s,r){if(this.options.cdataPropName!==!1&&n===this.options.cdataPropName)return this.indentate(r)+`<![CDATA[${i}]]>`+this.newLine;if(this.options.commentPropName!==!1&&n===this.options.commentPropName)return this.indentate(r)+`<!--${i}-->`+this.newLine;if(n[0]==="?")return this.indentate(r)+"<"+n+s+"?"+this.tagEndChar;{let u=this.options.tagValueProcessor(n,i);return u=this.replaceEntitiesValue(u),u===""?this.indentate(r)+"<"+n+s+this.closeTag(n)+this.tagEndChar:this.indentate(r)+"<"+n+s+">"+u+"</"+n+this.tagEndChar}};qi.prototype.replaceEntitiesValue=function(i){if(i&&i.length>0&&this.options.processEntities)for(let n=0;n<this.options.entities.length;n++){const s=this.options.entities[n];i=i.replace(s.regex,s.val)}return i};function HL(i){return this.options.indentBy.repeat(i)}function $L(i){return i.startsWith(this.options.attributeNamePrefix)&&i!==this.options.textNodeName?i.substr(this.attrPrefixLen):!1}var jf={exports:{}},_r={},ou={exports:{}},Pf={},Gf={},Ny;function Fh(){if(Ny)return Gf;Ny=1;function i(r){this.__parent=r,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}i.prototype.clone_empty=function(){var r=new i(this.__parent);return r.set_indent(this.__indent_count,this.__alignment_count),r},i.prototype.item=function(r){return r<0?this.__items[this.__items.length+r]:this.__items[r]},i.prototype.has_match=function(r){for(var u=this.__items.length-1;u>=0;u--)if(this.__items[u].match(r))return!0;return!1},i.prototype.set_indent=function(r,u){this.is_empty()&&(this.__indent_count=r||0,this.__alignment_count=u||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},i.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},i.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},i.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var r=this.__parent.current_line;return r.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),r.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),r.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,r.__items[0]===" "&&(r.__items.splice(0,1),r.__character_count-=1),!0}return!1},i.prototype.is_empty=function(){return this.__items.length===0},i.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},i.prototype.push=function(r){this.__items.push(r);var u=r.lastIndexOf(`
132
+ `):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}hi.prototype.build=function(i){return this.options.preserveOrder?GL(i,this.options):(Array.isArray(i)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(i={[this.options.arrayNodeName]:i}),this.j2x(i,0,[]).val)};hi.prototype.j2x=function(i,n,s){let r="",u="";const c=s.join(".");for(let h in i)if(Object.prototype.hasOwnProperty.call(i,h))if(typeof i[h]>"u")this.isAttribute(h)&&(u+="");else if(i[h]===null)this.isAttribute(h)||h===this.options.cdataPropName?u+="":h[0]==="?"?u+=this.indentate(n)+"<"+h+"?"+this.tagEndChar:u+=this.indentate(n)+"<"+h+"/"+this.tagEndChar;else if(i[h]instanceof Date)u+=this.buildTextValNode(i[h],h,"",n);else if(typeof i[h]!="object"){const _=this.isAttribute(h);if(_&&!this.ignoreAttributesFn(_,c))r+=this.buildAttrPairStr(_,""+i[h]);else if(!_)if(h===this.options.textNodeName){let d=this.options.tagValueProcessor(h,""+i[h]);u+=this.replaceEntitiesValue(d)}else u+=this.buildTextValNode(i[h],h,"",n)}else if(Array.isArray(i[h])){const _=i[h].length;let d="",g="";for(let b=0;b<_;b++){const E=i[h][b];if(!(typeof E>"u"))if(E===null)h[0]==="?"?u+=this.indentate(n)+"<"+h+"?"+this.tagEndChar:u+=this.indentate(n)+"<"+h+"/"+this.tagEndChar;else if(typeof E=="object")if(this.options.oneListGroup){const A=this.j2x(E,n+1,s.concat(h));d+=A.val,this.options.attributesGroupName&&E.hasOwnProperty(this.options.attributesGroupName)&&(g+=A.attrStr)}else d+=this.processTextOrObjNode(E,h,n,s);else if(this.options.oneListGroup){let A=this.options.tagValueProcessor(h,E);A=this.replaceEntitiesValue(A),d+=A}else d+=this.buildTextValNode(E,h,"",n)}this.options.oneListGroup&&(d=this.buildObjectNode(d,h,g,n)),u+=d}else if(this.options.attributesGroupName&&h===this.options.attributesGroupName){const _=Object.keys(i[h]),d=_.length;for(let g=0;g<d;g++)r+=this.buildAttrPairStr(_[g],""+i[h][_[g]])}else u+=this.processTextOrObjNode(i[h],h,n,s);return{attrStr:r,val:u}};hi.prototype.buildAttrPairStr=function(i,n){return n=this.options.attributeValueProcessor(i,""+n),n=this.replaceEntitiesValue(n),this.options.suppressBooleanAttributes&&n==="true"?" "+i:" "+i+'="'+n+'"'};function KL(i,n,s,r){const u=this.j2x(i,s+1,r.concat(n));return i[this.options.textNodeName]!==void 0&&Object.keys(i).length===1?this.buildTextValNode(i[this.options.textNodeName],n,u.attrStr,s):this.buildObjectNode(u.val,n,u.attrStr,s)}hi.prototype.buildObjectNode=function(i,n,s,r){if(i==="")return n[0]==="?"?this.indentate(r)+"<"+n+s+"?"+this.tagEndChar:this.indentate(r)+"<"+n+s+this.closeTag(n)+this.tagEndChar;{let u="</"+n+this.tagEndChar,c="";return n[0]==="?"&&(c="?",u=""),(s||s==="")&&i.indexOf("<")===-1?this.indentate(r)+"<"+n+s+c+">"+i+u:this.options.commentPropName!==!1&&n===this.options.commentPropName&&c.length===0?this.indentate(r)+`<!--${i}-->`+this.newLine:this.indentate(r)+"<"+n+s+c+this.tagEndChar+i+this.indentate(r)+u}};hi.prototype.closeTag=function(i){let n="";return this.options.unpairedTags.indexOf(i)!==-1?this.options.suppressUnpairedNode||(n="/"):this.options.suppressEmptyNode?n="/":n=`></${i}`,n};hi.prototype.buildTextValNode=function(i,n,s,r){if(this.options.cdataPropName!==!1&&n===this.options.cdataPropName)return this.indentate(r)+`<![CDATA[${i}]]>`+this.newLine;if(this.options.commentPropName!==!1&&n===this.options.commentPropName)return this.indentate(r)+`<!--${i}-->`+this.newLine;if(n[0]==="?")return this.indentate(r)+"<"+n+s+"?"+this.tagEndChar;{let u=this.options.tagValueProcessor(n,i);return u=this.replaceEntitiesValue(u),u===""?this.indentate(r)+"<"+n+s+this.closeTag(n)+this.tagEndChar:this.indentate(r)+"<"+n+s+">"+u+"</"+n+this.tagEndChar}};hi.prototype.replaceEntitiesValue=function(i){if(i&&i.length>0&&this.options.processEntities)for(let n=0;n<this.options.entities.length;n++){const s=this.options.entities[n];i=i.replace(s.regex,s.val)}return i};function VL(i){return this.options.indentBy.repeat(i)}function YL(i){return i.startsWith(this.options.attributeNamePrefix)&&i!==this.options.textNodeName?i.substr(this.attrPrefixLen):!1}var Pf={exports:{}},pr={},cu={exports:{}},Gf={},qf={},Oy;function Fh(){if(Oy)return qf;Oy=1;function i(r){this.__parent=r,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}i.prototype.clone_empty=function(){var r=new i(this.__parent);return r.set_indent(this.__indent_count,this.__alignment_count),r},i.prototype.item=function(r){return r<0?this.__items[this.__items.length+r]:this.__items[r]},i.prototype.has_match=function(r){for(var u=this.__items.length-1;u>=0;u--)if(this.__items[u].match(r))return!0;return!1},i.prototype.set_indent=function(r,u){this.is_empty()&&(this.__indent_count=r||0,this.__alignment_count=u||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},i.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},i.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},i.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var r=this.__parent.current_line;return r.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),r.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),r.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,r.__items[0]===" "&&(r.__items.splice(0,1),r.__character_count-=1),!0}return!1},i.prototype.is_empty=function(){return this.__items.length===0},i.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},i.prototype.push=function(r){this.__items.push(r);var u=r.lastIndexOf(`
133
133
  `);u!==-1?this.__character_count=r.length-u:this.__character_count+=r.length},i.prototype.pop=function(){var r=null;return this.is_empty()||(r=this.__items.pop(),this.__character_count-=r.length),r},i.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},i.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},i.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},i.prototype.toString=function(){var r="";return this.is_empty()?this.__parent.indent_empty_lines&&(r=this.__parent.get_indent_string(this.__indent_count)):(r=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),r+=this.__items.join("")),r};function n(r,u){this.__cache=[""],this.__indent_size=r.indent_size,this.__indent_string=r.indent_char,r.indent_with_tabs||(this.__indent_string=new Array(r.indent_size+1).join(r.indent_char)),u=u||"",r.indent_level>0&&(u=new Array(r.indent_level+1).join(this.__indent_string)),this.__base_string=u,this.__base_string_length=u.length}n.prototype.get_indent_size=function(r,u){var c=this.__base_string_length;return u=u||0,r<0&&(c=0),c+=r*this.__indent_size,c+=u,c},n.prototype.get_indent_string=function(r,u){var c=this.__base_string;return u=u||0,r<0&&(r=0,c=""),u+=r*this.__indent_size,this.__ensure_cache(u),c+=this.__cache[u],c},n.prototype.__ensure_cache=function(r){for(;r>=this.__cache.length;)this.__add_column()},n.prototype.__add_column=function(){var r=this.__cache.length,u=0,c="";this.__indent_size&&r>=this.__indent_size&&(u=Math.floor(r/this.__indent_size),r-=u*this.__indent_size,c=new Array(u+1).join(this.__indent_string)),r&&(c+=new Array(r+1).join(" ")),this.__cache.push(c)};function s(r,u){this.__indent_cache=new n(r,u),this.raw=!1,this._end_with_newline=r.end_with_newline,this.indent_size=r.indent_size,this.wrap_line_length=r.wrap_line_length,this.indent_empty_lines=r.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new i(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}return s.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},s.prototype.get_line_number=function(){return this.__lines.length},s.prototype.get_indent_string=function(r,u){return this.__indent_cache.get_indent_string(r,u)},s.prototype.get_indent_size=function(r,u){return this.__indent_cache.get_indent_size(r,u)},s.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},s.prototype.add_new_line=function(r){return this.is_empty()||!r&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},s.prototype.get_code=function(r){this.trim(!0);var u=this.current_line.pop();u&&(u[u.length-1]===`
134
134
  `&&(u=u.replace(/\n+$/g,"")),this.current_line.push(u)),this._end_with_newline&&this.__add_outputline();var c=this.__lines.join(`
135
135
  `);return r!==`
136
- `&&(c=c.replace(/[\n]/g,r)),c},s.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},s.prototype.set_indent=function(r,u){return r=r||0,u=u||0,this.next_line.set_indent(r,u),this.__lines.length>1?(this.current_line.set_indent(r,u),!0):(this.current_line.set_indent(),!1)},s.prototype.add_raw_token=function(r){for(var u=0;u<r.newlines;u++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(r.whitespace_before),this.current_line.push(r.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},s.prototype.add_token=function(r){this.__add_space_before_token(),this.current_line.push(r),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},s.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},s.prototype.remove_indent=function(r){for(var u=this.__lines.length;r<u;)this.__lines[r]._remove_indent(),r++;this.current_line._remove_wrap_indent()},s.prototype.trim=function(r){for(r=r===void 0?!1:r,this.current_line.trim();r&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},s.prototype.just_added_newline=function(){return this.current_line.is_empty()},s.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},s.prototype.ensure_empty_line_above=function(r,u){for(var c=this.__lines.length-2;c>=0;){var h=this.__lines[c];if(h.is_empty())break;if(h.item(0).indexOf(r)!==0&&h.item(-1)!==u){this.__lines.splice(c+1,0,new i(this)),this.previous_line=this.__lines[this.__lines.length-2];break}c--}},Gf.Output=s,Gf}var qf={},Ry;function Tv(){if(Ry)return qf;Ry=1;function i(n,s,r,u){this.type=n,this.text=s,this.comments_before=null,this.newlines=r||0,this.whitespace_before=u||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}return qf.Token=i,qf}var Hf={},xy;function Sv(){return xy||(xy=1,(function(i){var n="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",s="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",r="\\xaa\\xb5\\xba\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376\\u0377\\u037a-\\u037d\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05d0-\\u05ea\\u05f0-\\u05f2\\u0620-\\u064a\\u066e\\u066f\\u0671-\\u06d3\\u06d5\\u06e5\\u06e6\\u06ee\\u06ef\\u06fa-\\u06fc\\u06ff\\u0710\\u0712-\\u072f\\u074d-\\u07a5\\u07b1\\u07ca-\\u07ea\\u07f4\\u07f5\\u07fa\\u0800-\\u0815\\u081a\\u0824\\u0828\\u0840-\\u0858\\u08a0\\u08a2-\\u08ac\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097f\\u0985-\\u098c\\u098f\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0\\u0ae1\\u0b05-\\u0b0c\\u0b0f\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c\\u0b5d\\u0b5f-\\u0b61\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99\\u0b9a\\u0b9c\\u0b9e\\u0b9f\\u0ba3\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c33\\u0c35-\\u0c39\\u0c3d\\u0c58\\u0c59\\u0c60\\u0c61\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d05-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d60\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e40-\\u0e46\\u0e81\\u0e82\\u0e84\\u0e87\\u0e88\\u0e8a\\u0e8d\\u0e94-\\u0e97\\u0e99-\\u0e9f\\u0ea1-\\u0ea3\\u0ea5\\u0ea7\\u0eaa\\u0eab\\u0ead-\\u0eb0\\u0eb2\\u0eb3\\u0ebd\\u0ec0-\\u0ec4\\u0ec6\\u0edc-\\u0edf\\u0f00\\u0f40-\\u0f47\\u0f49-\\u0f6c\\u0f88-\\u0f8c\\u1000-\\u102a\\u103f\\u1050-\\u1055\\u105a-\\u105d\\u1061\\u1065\\u1066\\u106e-\\u1070\\u1075-\\u1081\\u108e\\u10a0-\\u10c5\\u10c7\\u10cd\\u10d0-\\u10fa\\u10fc-\\u1248\\u124a-\\u124d\\u1250-\\u1256\\u1258\\u125a-\\u125d\\u1260-\\u1288\\u128a-\\u128d\\u1290-\\u12b0\\u12b2-\\u12b5\\u12b8-\\u12be\\u12c0\\u12c2-\\u12c5\\u12c8-\\u12d6\\u12d8-\\u1310\\u1312-\\u1315\\u1318-\\u135a\\u1380-\\u138f\\u13a0-\\u13f4\\u1401-\\u166c\\u166f-\\u167f\\u1681-\\u169a\\u16a0-\\u16ea\\u16ee-\\u16f0\\u1700-\\u170c\\u170e-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176c\\u176e-\\u1770\\u1780-\\u17b3\\u17d7\\u17dc\\u1820-\\u1877\\u1880-\\u18a8\\u18aa\\u18b0-\\u18f5\\u1900-\\u191c\\u1950-\\u196d\\u1970-\\u1974\\u1980-\\u19ab\\u19c1-\\u19c7\\u1a00-\\u1a16\\u1a20-\\u1a54\\u1aa7\\u1b05-\\u1b33\\u1b45-\\u1b4b\\u1b83-\\u1ba0\\u1bae\\u1baf\\u1bba-\\u1be5\\u1c00-\\u1c23\\u1c4d-\\u1c4f\\u1c5a-\\u1c7d\\u1ce9-\\u1cec\\u1cee-\\u1cf1\\u1cf5\\u1cf6\\u1d00-\\u1dbf\\u1e00-\\u1f15\\u1f18-\\u1f1d\\u1f20-\\u1f45\\u1f48-\\u1f4d\\u1f50-\\u1f57\\u1f59\\u1f5b\\u1f5d\\u1f5f-\\u1f7d\\u1f80-\\u1fb4\\u1fb6-\\u1fbc\\u1fbe\\u1fc2-\\u1fc4\\u1fc6-\\u1fcc\\u1fd0-\\u1fd3\\u1fd6-\\u1fdb\\u1fe0-\\u1fec\\u1ff2-\\u1ff4\\u1ff6-\\u1ffc\\u2071\\u207f\\u2090-\\u209c\\u2102\\u2107\\u210a-\\u2113\\u2115\\u2119-\\u211d\\u2124\\u2126\\u2128\\u212a-\\u212d\\u212f-\\u2139\\u213c-\\u213f\\u2145-\\u2149\\u214e\\u2160-\\u2188\\u2c00-\\u2c2e\\u2c30-\\u2c5e\\u2c60-\\u2ce4\\u2ceb-\\u2cee\\u2cf2\\u2cf3\\u2d00-\\u2d25\\u2d27\\u2d2d\\u2d30-\\u2d67\\u2d6f\\u2d80-\\u2d96\\u2da0-\\u2da6\\u2da8-\\u2dae\\u2db0-\\u2db6\\u2db8-\\u2dbe\\u2dc0-\\u2dc6\\u2dc8-\\u2dce\\u2dd0-\\u2dd6\\u2dd8-\\u2dde\\u2e2f\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303c\\u3041-\\u3096\\u309d-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312d\\u3131-\\u318e\\u31a0-\\u31ba\\u31f0-\\u31ff\\u3400-\\u4db5\\u4e00-\\u9fcc\\ua000-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua697\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua78e\\ua790-\\ua793\\ua7a0-\\ua7aa\\ua7f8-\\ua801\\ua803-\\ua805\\ua807-\\ua80a\\ua80c-\\ua822\\ua840-\\ua873\\ua882-\\ua8b3\\ua8f2-\\ua8f7\\ua8fb\\ua90a-\\ua925\\ua930-\\ua946\\ua960-\\ua97c\\ua984-\\ua9b2\\ua9cf\\uaa00-\\uaa28\\uaa40-\\uaa42\\uaa44-\\uaa4b\\uaa60-\\uaa76\\uaa7a\\uaa80-\\uaaaf\\uaab1\\uaab5\\uaab6\\uaab9-\\uaabd\\uaac0\\uaac2\\uaadb-\\uaadd\\uaae0-\\uaaea\\uaaf2-\\uaaf4\\uab01-\\uab06\\uab09-\\uab0e\\uab11-\\uab16\\uab20-\\uab26\\uab28-\\uab2e\\uabc0-\\uabe2\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufb00-\\ufb06\\ufb13-\\ufb17\\ufb1d\\ufb1f-\\ufb28\\ufb2a-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40\\ufb41\\ufb43\\ufb44\\ufb46-\\ufbb1\\ufbd3-\\ufd3d\\ufd50-\\ufd8f\\ufd92-\\ufdc7\\ufdf0-\\ufdfb\\ufe70-\\ufe74\\ufe76-\\ufefc\\uff21-\\uff3a\\uff41-\\uff5a\\uff66-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc",u="\\u0300-\\u036f\\u0483-\\u0487\\u0591-\\u05bd\\u05bf\\u05c1\\u05c2\\u05c4\\u05c5\\u05c7\\u0610-\\u061a\\u0620-\\u0649\\u0672-\\u06d3\\u06e7-\\u06e8\\u06fb-\\u06fc\\u0730-\\u074a\\u0800-\\u0814\\u081b-\\u0823\\u0825-\\u0827\\u0829-\\u082d\\u0840-\\u0857\\u08e4-\\u08fe\\u0900-\\u0903\\u093a-\\u093c\\u093e-\\u094f\\u0951-\\u0957\\u0962-\\u0963\\u0966-\\u096f\\u0981-\\u0983\\u09bc\\u09be-\\u09c4\\u09c7\\u09c8\\u09d7\\u09df-\\u09e0\\u0a01-\\u0a03\\u0a3c\\u0a3e-\\u0a42\\u0a47\\u0a48\\u0a4b-\\u0a4d\\u0a51\\u0a66-\\u0a71\\u0a75\\u0a81-\\u0a83\\u0abc\\u0abe-\\u0ac5\\u0ac7-\\u0ac9\\u0acb-\\u0acd\\u0ae2-\\u0ae3\\u0ae6-\\u0aef\\u0b01-\\u0b03\\u0b3c\\u0b3e-\\u0b44\\u0b47\\u0b48\\u0b4b-\\u0b4d\\u0b56\\u0b57\\u0b5f-\\u0b60\\u0b66-\\u0b6f\\u0b82\\u0bbe-\\u0bc2\\u0bc6-\\u0bc8\\u0bca-\\u0bcd\\u0bd7\\u0be6-\\u0bef\\u0c01-\\u0c03\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55\\u0c56\\u0c62-\\u0c63\\u0c66-\\u0c6f\\u0c82\\u0c83\\u0cbc\\u0cbe-\\u0cc4\\u0cc6-\\u0cc8\\u0cca-\\u0ccd\\u0cd5\\u0cd6\\u0ce2-\\u0ce3\\u0ce6-\\u0cef\\u0d02\\u0d03\\u0d46-\\u0d48\\u0d57\\u0d62-\\u0d63\\u0d66-\\u0d6f\\u0d82\\u0d83\\u0dca\\u0dcf-\\u0dd4\\u0dd6\\u0dd8-\\u0ddf\\u0df2\\u0df3\\u0e34-\\u0e3a\\u0e40-\\u0e45\\u0e50-\\u0e59\\u0eb4-\\u0eb9\\u0ec8-\\u0ecd\\u0ed0-\\u0ed9\\u0f18\\u0f19\\u0f20-\\u0f29\\u0f35\\u0f37\\u0f39\\u0f41-\\u0f47\\u0f71-\\u0f84\\u0f86-\\u0f87\\u0f8d-\\u0f97\\u0f99-\\u0fbc\\u0fc6\\u1000-\\u1029\\u1040-\\u1049\\u1067-\\u106d\\u1071-\\u1074\\u1082-\\u108d\\u108f-\\u109d\\u135d-\\u135f\\u170e-\\u1710\\u1720-\\u1730\\u1740-\\u1750\\u1772\\u1773\\u1780-\\u17b2\\u17dd\\u17e0-\\u17e9\\u180b-\\u180d\\u1810-\\u1819\\u1920-\\u192b\\u1930-\\u193b\\u1951-\\u196d\\u19b0-\\u19c0\\u19c8-\\u19c9\\u19d0-\\u19d9\\u1a00-\\u1a15\\u1a20-\\u1a53\\u1a60-\\u1a7c\\u1a7f-\\u1a89\\u1a90-\\u1a99\\u1b46-\\u1b4b\\u1b50-\\u1b59\\u1b6b-\\u1b73\\u1bb0-\\u1bb9\\u1be6-\\u1bf3\\u1c00-\\u1c22\\u1c40-\\u1c49\\u1c5b-\\u1c7d\\u1cd0-\\u1cd2\\u1d00-\\u1dbe\\u1e01-\\u1f15\\u200c\\u200d\\u203f\\u2040\\u2054\\u20d0-\\u20dc\\u20e1\\u20e5-\\u20f0\\u2d81-\\u2d96\\u2de0-\\u2dff\\u3021-\\u3028\\u3099\\u309a\\ua640-\\ua66d\\ua674-\\ua67d\\ua69f\\ua6f0-\\ua6f1\\ua7f8-\\ua800\\ua806\\ua80b\\ua823-\\ua827\\ua880-\\ua881\\ua8b4-\\ua8c4\\ua8d0-\\ua8d9\\ua8f3-\\ua8f7\\ua900-\\ua909\\ua926-\\ua92d\\ua930-\\ua945\\ua980-\\ua983\\ua9b3-\\ua9c0\\uaa00-\\uaa27\\uaa40-\\uaa41\\uaa4c-\\uaa4d\\uaa50-\\uaa59\\uaa7b\\uaae0-\\uaae9\\uaaf2-\\uaaf3\\uabc0-\\uabe1\\uabec\\uabed\\uabf0-\\uabf9\\ufb20-\\ufb28\\ufe00-\\ufe0f\\ufe20-\\ufe26\\ufe33\\ufe34\\ufe4d-\\ufe4f\\uff10-\\uff19\\uff3f",c="\\\\u[0-9a-fA-F]{4}|\\\\u\\{[0-9a-fA-F]+\\}",h="(?:"+c+"|["+n+r+"])",_="(?:"+c+"|["+s+r+u+"])*";i.identifier=new RegExp(h+_,"g"),i.identifierStart=new RegExp(h),i.identifierMatch=new RegExp("(?:"+c+"|["+s+r+u+"])+"),i.newline=/[\n\r\u2028\u2029]/,i.lineBreak=new RegExp(`\r
137
- |`+i.newline.source),i.allLineBreaks=new RegExp(i.lineBreak.source,"g")})(Hf)),Hf}var $f={},pr={},Cy;function Qh(){if(Cy)return pr;Cy=1;function i(r,u){this.raw_options=n(r,u),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"])}i.prototype._get_array=function(r,u){var c=this.raw_options[r],h=u||[];return typeof c=="object"?c!==null&&typeof c.concat=="function"&&(h=c.concat()):typeof c=="string"&&(h=c.split(/[^a-zA-Z0-9_\/\-]+/)),h},i.prototype._get_boolean=function(r,u){var c=this.raw_options[r],h=c===void 0?!!u:!!c;return h},i.prototype._get_characters=function(r,u){var c=this.raw_options[r],h=u||"";return typeof c=="string"&&(h=c.replace(/\\r/,"\r").replace(/\\n/,`
136
+ `&&(c=c.replace(/[\n]/g,r)),c},s.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},s.prototype.set_indent=function(r,u){return r=r||0,u=u||0,this.next_line.set_indent(r,u),this.__lines.length>1?(this.current_line.set_indent(r,u),!0):(this.current_line.set_indent(),!1)},s.prototype.add_raw_token=function(r){for(var u=0;u<r.newlines;u++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(r.whitespace_before),this.current_line.push(r.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},s.prototype.add_token=function(r){this.__add_space_before_token(),this.current_line.push(r),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},s.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},s.prototype.remove_indent=function(r){for(var u=this.__lines.length;r<u;)this.__lines[r]._remove_indent(),r++;this.current_line._remove_wrap_indent()},s.prototype.trim=function(r){for(r=r===void 0?!1:r,this.current_line.trim();r&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},s.prototype.just_added_newline=function(){return this.current_line.is_empty()},s.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},s.prototype.ensure_empty_line_above=function(r,u){for(var c=this.__lines.length-2;c>=0;){var h=this.__lines[c];if(h.is_empty())break;if(h.item(0).indexOf(r)!==0&&h.item(-1)!==u){this.__lines.splice(c+1,0,new i(this)),this.previous_line=this.__lines[this.__lines.length-2];break}c--}},qf.Output=s,qf}var Hf={},Ny;function bv(){if(Ny)return Hf;Ny=1;function i(n,s,r,u){this.type=n,this.text=s,this.comments_before=null,this.newlines=r||0,this.whitespace_before=u||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}return Hf.Token=i,Hf}var $f={},Ry;function Tv(){return Ry||(Ry=1,(function(i){var n="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",s="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",r="\\xaa\\xb5\\xba\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376\\u0377\\u037a-\\u037d\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05d0-\\u05ea\\u05f0-\\u05f2\\u0620-\\u064a\\u066e\\u066f\\u0671-\\u06d3\\u06d5\\u06e5\\u06e6\\u06ee\\u06ef\\u06fa-\\u06fc\\u06ff\\u0710\\u0712-\\u072f\\u074d-\\u07a5\\u07b1\\u07ca-\\u07ea\\u07f4\\u07f5\\u07fa\\u0800-\\u0815\\u081a\\u0824\\u0828\\u0840-\\u0858\\u08a0\\u08a2-\\u08ac\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097f\\u0985-\\u098c\\u098f\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0\\u0ae1\\u0b05-\\u0b0c\\u0b0f\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c\\u0b5d\\u0b5f-\\u0b61\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99\\u0b9a\\u0b9c\\u0b9e\\u0b9f\\u0ba3\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c33\\u0c35-\\u0c39\\u0c3d\\u0c58\\u0c59\\u0c60\\u0c61\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d05-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d60\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e40-\\u0e46\\u0e81\\u0e82\\u0e84\\u0e87\\u0e88\\u0e8a\\u0e8d\\u0e94-\\u0e97\\u0e99-\\u0e9f\\u0ea1-\\u0ea3\\u0ea5\\u0ea7\\u0eaa\\u0eab\\u0ead-\\u0eb0\\u0eb2\\u0eb3\\u0ebd\\u0ec0-\\u0ec4\\u0ec6\\u0edc-\\u0edf\\u0f00\\u0f40-\\u0f47\\u0f49-\\u0f6c\\u0f88-\\u0f8c\\u1000-\\u102a\\u103f\\u1050-\\u1055\\u105a-\\u105d\\u1061\\u1065\\u1066\\u106e-\\u1070\\u1075-\\u1081\\u108e\\u10a0-\\u10c5\\u10c7\\u10cd\\u10d0-\\u10fa\\u10fc-\\u1248\\u124a-\\u124d\\u1250-\\u1256\\u1258\\u125a-\\u125d\\u1260-\\u1288\\u128a-\\u128d\\u1290-\\u12b0\\u12b2-\\u12b5\\u12b8-\\u12be\\u12c0\\u12c2-\\u12c5\\u12c8-\\u12d6\\u12d8-\\u1310\\u1312-\\u1315\\u1318-\\u135a\\u1380-\\u138f\\u13a0-\\u13f4\\u1401-\\u166c\\u166f-\\u167f\\u1681-\\u169a\\u16a0-\\u16ea\\u16ee-\\u16f0\\u1700-\\u170c\\u170e-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176c\\u176e-\\u1770\\u1780-\\u17b3\\u17d7\\u17dc\\u1820-\\u1877\\u1880-\\u18a8\\u18aa\\u18b0-\\u18f5\\u1900-\\u191c\\u1950-\\u196d\\u1970-\\u1974\\u1980-\\u19ab\\u19c1-\\u19c7\\u1a00-\\u1a16\\u1a20-\\u1a54\\u1aa7\\u1b05-\\u1b33\\u1b45-\\u1b4b\\u1b83-\\u1ba0\\u1bae\\u1baf\\u1bba-\\u1be5\\u1c00-\\u1c23\\u1c4d-\\u1c4f\\u1c5a-\\u1c7d\\u1ce9-\\u1cec\\u1cee-\\u1cf1\\u1cf5\\u1cf6\\u1d00-\\u1dbf\\u1e00-\\u1f15\\u1f18-\\u1f1d\\u1f20-\\u1f45\\u1f48-\\u1f4d\\u1f50-\\u1f57\\u1f59\\u1f5b\\u1f5d\\u1f5f-\\u1f7d\\u1f80-\\u1fb4\\u1fb6-\\u1fbc\\u1fbe\\u1fc2-\\u1fc4\\u1fc6-\\u1fcc\\u1fd0-\\u1fd3\\u1fd6-\\u1fdb\\u1fe0-\\u1fec\\u1ff2-\\u1ff4\\u1ff6-\\u1ffc\\u2071\\u207f\\u2090-\\u209c\\u2102\\u2107\\u210a-\\u2113\\u2115\\u2119-\\u211d\\u2124\\u2126\\u2128\\u212a-\\u212d\\u212f-\\u2139\\u213c-\\u213f\\u2145-\\u2149\\u214e\\u2160-\\u2188\\u2c00-\\u2c2e\\u2c30-\\u2c5e\\u2c60-\\u2ce4\\u2ceb-\\u2cee\\u2cf2\\u2cf3\\u2d00-\\u2d25\\u2d27\\u2d2d\\u2d30-\\u2d67\\u2d6f\\u2d80-\\u2d96\\u2da0-\\u2da6\\u2da8-\\u2dae\\u2db0-\\u2db6\\u2db8-\\u2dbe\\u2dc0-\\u2dc6\\u2dc8-\\u2dce\\u2dd0-\\u2dd6\\u2dd8-\\u2dde\\u2e2f\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303c\\u3041-\\u3096\\u309d-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312d\\u3131-\\u318e\\u31a0-\\u31ba\\u31f0-\\u31ff\\u3400-\\u4db5\\u4e00-\\u9fcc\\ua000-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua697\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua78e\\ua790-\\ua793\\ua7a0-\\ua7aa\\ua7f8-\\ua801\\ua803-\\ua805\\ua807-\\ua80a\\ua80c-\\ua822\\ua840-\\ua873\\ua882-\\ua8b3\\ua8f2-\\ua8f7\\ua8fb\\ua90a-\\ua925\\ua930-\\ua946\\ua960-\\ua97c\\ua984-\\ua9b2\\ua9cf\\uaa00-\\uaa28\\uaa40-\\uaa42\\uaa44-\\uaa4b\\uaa60-\\uaa76\\uaa7a\\uaa80-\\uaaaf\\uaab1\\uaab5\\uaab6\\uaab9-\\uaabd\\uaac0\\uaac2\\uaadb-\\uaadd\\uaae0-\\uaaea\\uaaf2-\\uaaf4\\uab01-\\uab06\\uab09-\\uab0e\\uab11-\\uab16\\uab20-\\uab26\\uab28-\\uab2e\\uabc0-\\uabe2\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufb00-\\ufb06\\ufb13-\\ufb17\\ufb1d\\ufb1f-\\ufb28\\ufb2a-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40\\ufb41\\ufb43\\ufb44\\ufb46-\\ufbb1\\ufbd3-\\ufd3d\\ufd50-\\ufd8f\\ufd92-\\ufdc7\\ufdf0-\\ufdfb\\ufe70-\\ufe74\\ufe76-\\ufefc\\uff21-\\uff3a\\uff41-\\uff5a\\uff66-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc",u="\\u0300-\\u036f\\u0483-\\u0487\\u0591-\\u05bd\\u05bf\\u05c1\\u05c2\\u05c4\\u05c5\\u05c7\\u0610-\\u061a\\u0620-\\u0649\\u0672-\\u06d3\\u06e7-\\u06e8\\u06fb-\\u06fc\\u0730-\\u074a\\u0800-\\u0814\\u081b-\\u0823\\u0825-\\u0827\\u0829-\\u082d\\u0840-\\u0857\\u08e4-\\u08fe\\u0900-\\u0903\\u093a-\\u093c\\u093e-\\u094f\\u0951-\\u0957\\u0962-\\u0963\\u0966-\\u096f\\u0981-\\u0983\\u09bc\\u09be-\\u09c4\\u09c7\\u09c8\\u09d7\\u09df-\\u09e0\\u0a01-\\u0a03\\u0a3c\\u0a3e-\\u0a42\\u0a47\\u0a48\\u0a4b-\\u0a4d\\u0a51\\u0a66-\\u0a71\\u0a75\\u0a81-\\u0a83\\u0abc\\u0abe-\\u0ac5\\u0ac7-\\u0ac9\\u0acb-\\u0acd\\u0ae2-\\u0ae3\\u0ae6-\\u0aef\\u0b01-\\u0b03\\u0b3c\\u0b3e-\\u0b44\\u0b47\\u0b48\\u0b4b-\\u0b4d\\u0b56\\u0b57\\u0b5f-\\u0b60\\u0b66-\\u0b6f\\u0b82\\u0bbe-\\u0bc2\\u0bc6-\\u0bc8\\u0bca-\\u0bcd\\u0bd7\\u0be6-\\u0bef\\u0c01-\\u0c03\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55\\u0c56\\u0c62-\\u0c63\\u0c66-\\u0c6f\\u0c82\\u0c83\\u0cbc\\u0cbe-\\u0cc4\\u0cc6-\\u0cc8\\u0cca-\\u0ccd\\u0cd5\\u0cd6\\u0ce2-\\u0ce3\\u0ce6-\\u0cef\\u0d02\\u0d03\\u0d46-\\u0d48\\u0d57\\u0d62-\\u0d63\\u0d66-\\u0d6f\\u0d82\\u0d83\\u0dca\\u0dcf-\\u0dd4\\u0dd6\\u0dd8-\\u0ddf\\u0df2\\u0df3\\u0e34-\\u0e3a\\u0e40-\\u0e45\\u0e50-\\u0e59\\u0eb4-\\u0eb9\\u0ec8-\\u0ecd\\u0ed0-\\u0ed9\\u0f18\\u0f19\\u0f20-\\u0f29\\u0f35\\u0f37\\u0f39\\u0f41-\\u0f47\\u0f71-\\u0f84\\u0f86-\\u0f87\\u0f8d-\\u0f97\\u0f99-\\u0fbc\\u0fc6\\u1000-\\u1029\\u1040-\\u1049\\u1067-\\u106d\\u1071-\\u1074\\u1082-\\u108d\\u108f-\\u109d\\u135d-\\u135f\\u170e-\\u1710\\u1720-\\u1730\\u1740-\\u1750\\u1772\\u1773\\u1780-\\u17b2\\u17dd\\u17e0-\\u17e9\\u180b-\\u180d\\u1810-\\u1819\\u1920-\\u192b\\u1930-\\u193b\\u1951-\\u196d\\u19b0-\\u19c0\\u19c8-\\u19c9\\u19d0-\\u19d9\\u1a00-\\u1a15\\u1a20-\\u1a53\\u1a60-\\u1a7c\\u1a7f-\\u1a89\\u1a90-\\u1a99\\u1b46-\\u1b4b\\u1b50-\\u1b59\\u1b6b-\\u1b73\\u1bb0-\\u1bb9\\u1be6-\\u1bf3\\u1c00-\\u1c22\\u1c40-\\u1c49\\u1c5b-\\u1c7d\\u1cd0-\\u1cd2\\u1d00-\\u1dbe\\u1e01-\\u1f15\\u200c\\u200d\\u203f\\u2040\\u2054\\u20d0-\\u20dc\\u20e1\\u20e5-\\u20f0\\u2d81-\\u2d96\\u2de0-\\u2dff\\u3021-\\u3028\\u3099\\u309a\\ua640-\\ua66d\\ua674-\\ua67d\\ua69f\\ua6f0-\\ua6f1\\ua7f8-\\ua800\\ua806\\ua80b\\ua823-\\ua827\\ua880-\\ua881\\ua8b4-\\ua8c4\\ua8d0-\\ua8d9\\ua8f3-\\ua8f7\\ua900-\\ua909\\ua926-\\ua92d\\ua930-\\ua945\\ua980-\\ua983\\ua9b3-\\ua9c0\\uaa00-\\uaa27\\uaa40-\\uaa41\\uaa4c-\\uaa4d\\uaa50-\\uaa59\\uaa7b\\uaae0-\\uaae9\\uaaf2-\\uaaf3\\uabc0-\\uabe1\\uabec\\uabed\\uabf0-\\uabf9\\ufb20-\\ufb28\\ufe00-\\ufe0f\\ufe20-\\ufe26\\ufe33\\ufe34\\ufe4d-\\ufe4f\\uff10-\\uff19\\uff3f",c="\\\\u[0-9a-fA-F]{4}|\\\\u\\{[0-9a-fA-F]+\\}",h="(?:"+c+"|["+n+r+"])",_="(?:"+c+"|["+s+r+u+"])*";i.identifier=new RegExp(h+_,"g"),i.identifierStart=new RegExp(h),i.identifierMatch=new RegExp("(?:"+c+"|["+s+r+u+"])+"),i.newline=/[\n\r\u2028\u2029]/,i.lineBreak=new RegExp(`\r
137
+ |`+i.newline.source),i.allLineBreaks=new RegExp(i.lineBreak.source,"g")})($f)),$f}var Kf={},gr={},xy;function Xh(){if(xy)return gr;xy=1;function i(r,u){this.raw_options=n(r,u),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"])}i.prototype._get_array=function(r,u){var c=this.raw_options[r],h=u||[];return typeof c=="object"?c!==null&&typeof c.concat=="function"&&(h=c.concat()):typeof c=="string"&&(h=c.split(/[^a-zA-Z0-9_\/\-]+/)),h},i.prototype._get_boolean=function(r,u){var c=this.raw_options[r],h=c===void 0?!!u:!!c;return h},i.prototype._get_characters=function(r,u){var c=this.raw_options[r],h=u||"";return typeof c=="string"&&(h=c.replace(/\\r/,"\r").replace(/\\n/,`
138
138
  `).replace(/\\t/," ")),h},i.prototype._get_number=function(r,u){var c=this.raw_options[r];u=parseInt(u,10),isNaN(u)&&(u=0);var h=parseInt(c,10);return isNaN(h)&&(h=u),h},i.prototype._get_selection=function(r,u,c){var h=this._get_selection_list(r,u,c);if(h.length!==1)throw new Error("Invalid Option Value: The option '"+r+`' can only be one of the following values:
139
139
  `+u+`
140
140
  You passed in: '`+this.raw_options[r]+"'");return h[0]},i.prototype._get_selection_list=function(r,u,c){if(!u||u.length===0)throw new Error("Selection list cannot be empty.");if(c=c||[u[0]],!this._is_valid_selection(c,u))throw new Error("Invalid Default Value!");var h=this._get_array(r,c);if(!this._is_valid_selection(h,u))throw new Error("Invalid Option Value: The option '"+r+`' can contain only the following values:
141
141
  `+u+`
142
- You passed in: '`+this.raw_options[r]+"'");return h},i.prototype._is_valid_selection=function(r,u){return r.length&&u.length&&!r.some(function(c){return u.indexOf(c)===-1})};function n(r,u){var c={};r=s(r);var h;for(h in r)h!==u&&(c[h]=r[h]);if(u&&r[u])for(h in r[u])c[h]=r[u][h];return c}function s(r){var u={},c;for(c in r){var h=c.replace(/-/g,"_");u[h]=r[c]}return u}return pr.Options=i,pr.normalizeOpts=s,pr.mergeOpts=n,pr}var Ly;function Av(){if(Ly)return $f;Ly=1;var i=Qh().Options,n=["before-newline","after-newline","preserve-newline"];function s(r){i.call(this,r,"js");var u=this.raw_options.brace_style||null;u==="expand-strict"?this.raw_options.brace_style="expand":u==="collapse-preserve-inline"?this.raw_options.brace_style="collapse,preserve-inline":this.raw_options.braces_on_own_line!==void 0&&(this.raw_options.brace_style=this.raw_options.braces_on_own_line?"expand":"collapse");var c=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var h=0;h<c.length;h++)c[h]==="preserve-inline"?this.brace_preserve_inline=!0:this.brace_style=c[h];this.unindent_chained_methods=this._get_boolean("unindent_chained_methods"),this.break_chained_methods=this._get_boolean("break_chained_methods"),this.space_in_paren=this._get_boolean("space_in_paren"),this.space_in_empty_paren=this._get_boolean("space_in_empty_paren"),this.jslint_happy=this._get_boolean("jslint_happy"),this.space_after_anon_function=this._get_boolean("space_after_anon_function"),this.space_after_named_function=this._get_boolean("space_after_named_function"),this.keep_array_indentation=this._get_boolean("keep_array_indentation"),this.space_before_conditional=this._get_boolean("space_before_conditional",!0),this.unescape_strings=this._get_boolean("unescape_strings"),this.e4x=this._get_boolean("e4x"),this.comma_first=this._get_boolean("comma_first"),this.operator_position=this._get_selection("operator_position",n),this.test_output_raw=this._get_boolean("test_output_raw"),this.jslint_happy&&(this.space_after_anon_function=!0)}return s.prototype=new i,$f.Options=s,$f}var rs={},Kf={},wy;function Zh(){if(wy)return Kf;wy=1;var i=RegExp.prototype.hasOwnProperty("sticky");function n(s){this.__input=s||"",this.__input_length=this.__input.length,this.__position=0}return n.prototype.restart=function(){this.__position=0},n.prototype.back=function(){this.__position>0&&(this.__position-=1)},n.prototype.hasNext=function(){return this.__position<this.__input_length},n.prototype.next=function(){var s=null;return this.hasNext()&&(s=this.__input.charAt(this.__position),this.__position+=1),s},n.prototype.peek=function(s){var r=null;return s=s||0,s+=this.__position,s>=0&&s<this.__input_length&&(r=this.__input.charAt(s)),r},n.prototype.__match=function(s,r){s.lastIndex=r;var u=s.exec(this.__input);return u&&!(i&&s.sticky)&&u.index!==r&&(u=null),u},n.prototype.test=function(s,r){return r=r||0,r+=this.__position,r>=0&&r<this.__input_length?!!this.__match(s,r):!1},n.prototype.testChar=function(s,r){var u=this.peek(r);return s.lastIndex=0,u!==null&&s.test(u)},n.prototype.match=function(s){var r=this.__match(s,this.__position);return r?this.__position+=r[0].length:r=null,r},n.prototype.read=function(s,r,u){var c="",h;return s&&(h=this.match(s),h&&(c+=h[0])),r&&(h||!s)&&(c+=this.readUntil(r,u)),c},n.prototype.readUntil=function(s,r){var u="",c=this.__position;s.lastIndex=this.__position;var h=s.exec(this.__input);return h?(c=h.index,r&&(c+=h[0].length)):c=this.__input_length,u=this.__input.substring(this.__position,c),this.__position=c,u},n.prototype.readUntilAfter=function(s){return this.readUntil(s,!0)},n.prototype.get_regexp=function(s,r){var u=null,c="g";return r&&i&&(c="y"),typeof s=="string"&&s!==""?u=new RegExp(s,c):s&&(u=new RegExp(s.source,c)),u},n.prototype.get_literal_regexp=function(s){return RegExp(s.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},n.prototype.peekUntilAfter=function(s){var r=this.__position,u=this.readUntilAfter(s);return this.__position=r,u},n.prototype.lookBack=function(s){var r=this.__position-1;return r>=s.length&&this.__input.substring(r-s.length,r).toLowerCase()===s},Kf.InputScanner=n,Kf}var cu={},Vf={},My;function KL(){if(My)return Vf;My=1;function i(n){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=n}return i.prototype.restart=function(){this.__position=0},i.prototype.isEmpty=function(){return this.__tokens_length===0},i.prototype.hasNext=function(){return this.__position<this.__tokens_length},i.prototype.next=function(){var n=null;return this.hasNext()&&(n=this.__tokens[this.__position],this.__position+=1),n},i.prototype.peek=function(n){var s=null;return n=n||0,n+=this.__position,n>=0&&n<this.__tokens_length&&(s=this.__tokens[n]),s},i.prototype.add=function(n){this.__parent_token&&(n.parent=this.__parent_token),this.__tokens.push(n),this.__tokens_length+=1},Vf.TokenStream=i,Vf}var Yf={},Xf={},Uy;function no(){if(Uy)return Xf;Uy=1;function i(n,s){this._input=n,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,s&&(this._starting_pattern=this._input.get_regexp(s._starting_pattern,!0),this._match_pattern=this._input.get_regexp(s._match_pattern,!0),this._until_pattern=this._input.get_regexp(s._until_pattern),this._until_after=s._until_after)}return i.prototype.read=function(){var n=this._input.read(this._starting_pattern);return(!this._starting_pattern||n)&&(n+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),n},i.prototype.read_match=function(){return this._input.match(this._match_pattern)},i.prototype.until_after=function(n){var s=this._create();return s._until_after=!0,s._until_pattern=this._input.get_regexp(n),s._update(),s},i.prototype.until=function(n){var s=this._create();return s._until_after=!1,s._until_pattern=this._input.get_regexp(n),s._update(),s},i.prototype.starting_with=function(n){var s=this._create();return s._starting_pattern=this._input.get_regexp(n,!0),s._update(),s},i.prototype.matching=function(n){var s=this._create();return s._match_pattern=this._input.get_regexp(n,!0),s._update(),s},i.prototype._create=function(){return new i(this._input,this)},i.prototype._update=function(){},Xf.Pattern=i,Xf}var Iy;function VL(){if(Iy)return Yf;Iy=1;var i=no().Pattern;function n(s,r){i.call(this,s,r),r?this._line_regexp=this._input.get_regexp(r._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}return n.prototype=new i,n.prototype.__set_whitespace_patterns=function(s,r){s+="\\t ",r+="\\n\\r",this._match_pattern=this._input.get_regexp("["+s+r+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+r+"]")},n.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var s=this._input.read(this._match_pattern);if(s===" ")this.whitespace_before_token=" ";else if(s){var r=this.__split(this._newline_regexp,s);this.newline_count=r.length-1,this.whitespace_before_token=r[this.newline_count]}return s},n.prototype.matching=function(s,r){var u=this._create();return u.__set_whitespace_patterns(s,r),u._update(),u},n.prototype._create=function(){return new n(this._input,this)},n.prototype.__split=function(s,r){s.lastIndex=0;for(var u=0,c=[],h=s.exec(r);h;)c.push(r.substring(u,h.index)),u=h.index+h[0].length,h=s.exec(r);return u<r.length?c.push(r.substring(u,r.length)):c.push(""),c},Yf.WhitespacePattern=n,Yf}var ky;function zu(){if(ky)return cu;ky=1;var i=Zh().InputScanner,n=Tv().Token,s=KL().TokenStream,r=VL().WhitespacePattern,u={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},c=function(h,_){this._input=new i(h),this._options=_||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new r(this._input)};return c.prototype.tokenize=function(){this._input.restart(),this.__tokens=new s,this._reset();for(var h,_=new n(u.START,""),d=null,g=[],b=new s;_.type!==u.EOF;){for(h=this._get_next_token(_,d);this._is_comment(h);)b.add(h),h=this._get_next_token(_,d);b.isEmpty()||(h.comments_before=b,b=new s),h.parent=d,this._is_opening(h)?(g.push(d),d=h):d&&this._is_closing(h,d)&&(h.opened=d,d.closed=h,d=g.pop(),h.parent=d),h.previous=_,_.next=h,this.__tokens.add(h),_=h}return this.__tokens},c.prototype._is_first_token=function(){return this.__tokens.isEmpty()},c.prototype._reset=function(){},c.prototype._get_next_token=function(h,_){this._readWhitespace();var d=this._input.read(/.+/g);return d?this._create_token(u.RAW,d):this._create_token(u.EOF,"")},c.prototype._is_comment=function(h){return!1},c.prototype._is_opening=function(h){return!1},c.prototype._is_closing=function(h,_){return!1},c.prototype._create_token=function(h,_){var d=new n(h,_,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return d},c.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},cu.Tokenizer=c,cu.TOKEN=u,cu}var Ff={},zy;function Wh(){if(zy)return Ff;zy=1;function i(n,s){n=typeof n=="string"?n:n.source,s=typeof s=="string"?s:s.source,this.__directives_block_pattern=new RegExp(n+/ beautify( \w+[:]\w+)+ /.source+s,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(n+/\sbeautify\signore:end\s/.source+s,"g")}return i.prototype.get_directives=function(n){if(!n.match(this.__directives_block_pattern))return null;var s={};this.__directive_pattern.lastIndex=0;for(var r=this.__directive_pattern.exec(n);r;)s[r[1]]=r[2],r=this.__directive_pattern.exec(n);return s},i.prototype.readIgnored=function(n){return n.readUntilAfter(this.__directives_end_ignore_pattern)},Ff.Directives=i,Ff}var Qf={},By;function Ov(){if(By)return Qf;By=1;var i=no().Pattern,n={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function s(r,u){i.call(this,r,u),this.__template_pattern=null,this._disabled=Object.assign({},n),this._excluded=Object.assign({},n),u&&(this.__template_pattern=this._input.get_regexp(u.__template_pattern),this._excluded=Object.assign(this._excluded,u._excluded),this._disabled=Object.assign(this._disabled,u._disabled));var c=new i(r);this.__patterns={handlebars_comment:c.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:c.starting_with(/{{{/).until_after(/}}}/),handlebars:c.starting_with(/{{/).until_after(/}}/),php:c.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:c.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:c.starting_with(/{%/).until_after(/%}/),django_value:c.starting_with(/{{/).until_after(/}}/),django_comment:c.starting_with(/{#/).until_after(/#}/),smarty:c.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:c.starting_with(/{\*/).until_after(/\*}/),smarty_literal:c.starting_with(/{literal}/).until_after(/{\/literal}/)}}return s.prototype=new i,s.prototype._create=function(){return new s(this._input,this)},s.prototype._update=function(){this.__set_templated_pattern()},s.prototype.disable=function(r){var u=this._create();return u._disabled[r]=!0,u._update(),u},s.prototype.read_options=function(r){var u=this._create();for(var c in n)u._disabled[c]=r.templating.indexOf(c)===-1;return u._update(),u},s.prototype.exclude=function(r){var u=this._create();return u._excluded[r]=!0,u._update(),u},s.prototype.read=function(){var r="";this._match_pattern?r=this._input.read(this._starting_pattern):r=this._input.read(this._starting_pattern,this.__template_pattern);for(var u=this._read_template();u;)this._match_pattern?u+=this._input.read(this._match_pattern):u+=this._input.readUntil(this.__template_pattern),r+=u,u=this._read_template();return this._until_after&&(r+=this._input.readUntilAfter(this._until_pattern)),r},s.prototype.__set_templated_pattern=function(){var r=[];this._disabled.php||r.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||r.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.angular||r.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||r.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(r.push(this.__patterns.django._starting_pattern.source),r.push(this.__patterns.django_value._starting_pattern.source),r.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||r.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&r.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+r.join("|")+")")},s.prototype._read_template=function(){var r="",u=this._input.peek();if(u==="<"){var c=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&c==="?"&&(r=r||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&c==="%"&&(r=r||this.__patterns.erb.read())}else u==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(r=r||this.__patterns.handlebars_comment.read(),r=r||this.__patterns.handlebars_unescaped.read(),r=r||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(r=r||this.__patterns.django_value.read()),this._excluded.django||(r=r||this.__patterns.django_comment.read(),r=r||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(r=r||this.__patterns.smarty_comment.read(),r=r||this.__patterns.smarty_literal.read(),r=r||this.__patterns.smarty.read()));return r},Qf.TemplatablePattern=s,Qf}var Dy;function fu(){if(Dy)return rs;Dy=1;var i=Zh().InputScanner,n=zu().Tokenizer,s=zu().TOKEN,r=Wh().Directives,u=Sv(),c=no().Pattern,h=Ov().TemplatablePattern;function _(U,L){return L.indexOf(U)!==-1}var d={START_EXPR:"TK_START_EXPR",END_EXPR:"TK_END_EXPR",START_BLOCK:"TK_START_BLOCK",END_BLOCK:"TK_END_BLOCK",WORD:"TK_WORD",RESERVED:"TK_RESERVED",SEMICOLON:"TK_SEMICOLON",STRING:"TK_STRING",EQUALS:"TK_EQUALS",OPERATOR:"TK_OPERATOR",COMMA:"TK_COMMA",BLOCK_COMMENT:"TK_BLOCK_COMMENT",COMMENT:"TK_COMMENT",DOT:"TK_DOT",UNKNOWN:"TK_UNKNOWN",START:s.START,RAW:s.RAW,EOF:s.EOF},g=new r(/\/\*/,/\*\//),b=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,E=/[0-9]/,A=/[^\d\.]/,j=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),H=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";H=H.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),H="\\?\\.(?!\\d) "+H,H=H.replace(/ /g,"|");var X=new RegExp(H),S="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),v=S.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),T=new RegExp("^(?:"+v.join("|")+")$"),w,I=function(U,L){n.call(this,U,L),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var C=new c(this._input),Y=new h(this._input).read_options(this._options);this.__patterns={template:Y,identifier:Y.starting_with(u.identifier).matching(u.identifierMatch),number:C.matching(b),punct:C.matching(X),comment:C.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:C.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:C.matching(/<!--/),html_comment_end:C.matching(/-->/),include:C.starting_with(/#include/).until_after(u.lineBreak),shebang:C.starting_with(/#!/).until_after(u.lineBreak),xml:C.matching(/[\s\S]*?<(\/?)([-a-zA-Z:0-9_.]+|{[^}]+?}|!\[CDATA\[[^\]]*?\]\]|)(\s*{[^}]+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{([^{}]|{[^}]+?})+?}))*\s*(\/?)\s*>/),single_quote:Y.until(/['\\\n\r\u2028\u2029]/),double_quote:Y.until(/["\\\n\r\u2028\u2029]/),template_text:Y.until(/[`\\$]/),template_expression:Y.until(/[`}\\]/)}};I.prototype=new n,I.prototype._is_comment=function(U){return U.type===d.COMMENT||U.type===d.BLOCK_COMMENT||U.type===d.UNKNOWN},I.prototype._is_opening=function(U){return U.type===d.START_BLOCK||U.type===d.START_EXPR},I.prototype._is_closing=function(U,L){return(U.type===d.END_BLOCK||U.type===d.END_EXPR)&&L&&(U.text==="]"&&L.text==="["||U.text===")"&&L.text==="("||U.text==="}"&&L.text==="{")},I.prototype._reset=function(){w=!1},I.prototype._get_next_token=function(U,L){var C=null;this._readWhitespace();var Y=this._input.peek();return Y===null?this._create_token(d.EOF,""):(C=C||this._read_non_javascript(Y),C=C||this._read_string(Y),C=C||this._read_pair(Y,this._input.peek(1)),C=C||this._read_word(U),C=C||this._read_singles(Y),C=C||this._read_comment(Y),C=C||this._read_regexp(Y,U),C=C||this._read_xml(Y,U),C=C||this._read_punctuation(),C=C||this._create_token(d.UNKNOWN,this._input.next()),C)},I.prototype._read_word=function(U){var L;if(L=this.__patterns.identifier.read(),L!=="")return L=L.replace(u.allLineBreaks,`
142
+ You passed in: '`+this.raw_options[r]+"'");return h},i.prototype._is_valid_selection=function(r,u){return r.length&&u.length&&!r.some(function(c){return u.indexOf(c)===-1})};function n(r,u){var c={};r=s(r);var h;for(h in r)h!==u&&(c[h]=r[h]);if(u&&r[u])for(h in r[u])c[h]=r[u][h];return c}function s(r){var u={},c;for(c in r){var h=c.replace(/-/g,"_");u[h]=r[c]}return u}return gr.Options=i,gr.normalizeOpts=s,gr.mergeOpts=n,gr}var Cy;function Sv(){if(Cy)return Kf;Cy=1;var i=Xh().Options,n=["before-newline","after-newline","preserve-newline"];function s(r){i.call(this,r,"js");var u=this.raw_options.brace_style||null;u==="expand-strict"?this.raw_options.brace_style="expand":u==="collapse-preserve-inline"?this.raw_options.brace_style="collapse,preserve-inline":this.raw_options.braces_on_own_line!==void 0&&(this.raw_options.brace_style=this.raw_options.braces_on_own_line?"expand":"collapse");var c=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var h=0;h<c.length;h++)c[h]==="preserve-inline"?this.brace_preserve_inline=!0:this.brace_style=c[h];this.unindent_chained_methods=this._get_boolean("unindent_chained_methods"),this.break_chained_methods=this._get_boolean("break_chained_methods"),this.space_in_paren=this._get_boolean("space_in_paren"),this.space_in_empty_paren=this._get_boolean("space_in_empty_paren"),this.jslint_happy=this._get_boolean("jslint_happy"),this.space_after_anon_function=this._get_boolean("space_after_anon_function"),this.space_after_named_function=this._get_boolean("space_after_named_function"),this.keep_array_indentation=this._get_boolean("keep_array_indentation"),this.space_before_conditional=this._get_boolean("space_before_conditional",!0),this.unescape_strings=this._get_boolean("unescape_strings"),this.e4x=this._get_boolean("e4x"),this.comma_first=this._get_boolean("comma_first"),this.operator_position=this._get_selection("operator_position",n),this.test_output_raw=this._get_boolean("test_output_raw"),this.jslint_happy&&(this.space_after_anon_function=!0)}return s.prototype=new i,Kf.Options=s,Kf}var rs={},Vf={},Ly;function Qh(){if(Ly)return Vf;Ly=1;var i=RegExp.prototype.hasOwnProperty("sticky");function n(s){this.__input=s||"",this.__input_length=this.__input.length,this.__position=0}return n.prototype.restart=function(){this.__position=0},n.prototype.back=function(){this.__position>0&&(this.__position-=1)},n.prototype.hasNext=function(){return this.__position<this.__input_length},n.prototype.next=function(){var s=null;return this.hasNext()&&(s=this.__input.charAt(this.__position),this.__position+=1),s},n.prototype.peek=function(s){var r=null;return s=s||0,s+=this.__position,s>=0&&s<this.__input_length&&(r=this.__input.charAt(s)),r},n.prototype.__match=function(s,r){s.lastIndex=r;var u=s.exec(this.__input);return u&&!(i&&s.sticky)&&u.index!==r&&(u=null),u},n.prototype.test=function(s,r){return r=r||0,r+=this.__position,r>=0&&r<this.__input_length?!!this.__match(s,r):!1},n.prototype.testChar=function(s,r){var u=this.peek(r);return s.lastIndex=0,u!==null&&s.test(u)},n.prototype.match=function(s){var r=this.__match(s,this.__position);return r?this.__position+=r[0].length:r=null,r},n.prototype.read=function(s,r,u){var c="",h;return s&&(h=this.match(s),h&&(c+=h[0])),r&&(h||!s)&&(c+=this.readUntil(r,u)),c},n.prototype.readUntil=function(s,r){var u="",c=this.__position;s.lastIndex=this.__position;var h=s.exec(this.__input);return h?(c=h.index,r&&(c+=h[0].length)):c=this.__input_length,u=this.__input.substring(this.__position,c),this.__position=c,u},n.prototype.readUntilAfter=function(s){return this.readUntil(s,!0)},n.prototype.get_regexp=function(s,r){var u=null,c="g";return r&&i&&(c="y"),typeof s=="string"&&s!==""?u=new RegExp(s,c):s&&(u=new RegExp(s.source,c)),u},n.prototype.get_literal_regexp=function(s){return RegExp(s.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},n.prototype.peekUntilAfter=function(s){var r=this.__position,u=this.readUntilAfter(s);return this.__position=r,u},n.prototype.lookBack=function(s){var r=this.__position-1;return r>=s.length&&this.__input.substring(r-s.length,r).toLowerCase()===s},Vf.InputScanner=n,Vf}var fu={},Yf={},wy;function FL(){if(wy)return Yf;wy=1;function i(n){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=n}return i.prototype.restart=function(){this.__position=0},i.prototype.isEmpty=function(){return this.__tokens_length===0},i.prototype.hasNext=function(){return this.__position<this.__tokens_length},i.prototype.next=function(){var n=null;return this.hasNext()&&(n=this.__tokens[this.__position],this.__position+=1),n},i.prototype.peek=function(n){var s=null;return n=n||0,n+=this.__position,n>=0&&n<this.__tokens_length&&(s=this.__tokens[n]),s},i.prototype.add=function(n){this.__parent_token&&(n.parent=this.__parent_token),this.__tokens.push(n),this.__tokens_length+=1},Yf.TokenStream=i,Yf}var Ff={},Xf={},My;function io(){if(My)return Xf;My=1;function i(n,s){this._input=n,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,s&&(this._starting_pattern=this._input.get_regexp(s._starting_pattern,!0),this._match_pattern=this._input.get_regexp(s._match_pattern,!0),this._until_pattern=this._input.get_regexp(s._until_pattern),this._until_after=s._until_after)}return i.prototype.read=function(){var n=this._input.read(this._starting_pattern);return(!this._starting_pattern||n)&&(n+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),n},i.prototype.read_match=function(){return this._input.match(this._match_pattern)},i.prototype.until_after=function(n){var s=this._create();return s._until_after=!0,s._until_pattern=this._input.get_regexp(n),s._update(),s},i.prototype.until=function(n){var s=this._create();return s._until_after=!1,s._until_pattern=this._input.get_regexp(n),s._update(),s},i.prototype.starting_with=function(n){var s=this._create();return s._starting_pattern=this._input.get_regexp(n,!0),s._update(),s},i.prototype.matching=function(n){var s=this._create();return s._match_pattern=this._input.get_regexp(n,!0),s._update(),s},i.prototype._create=function(){return new i(this._input,this)},i.prototype._update=function(){},Xf.Pattern=i,Xf}var Uy;function XL(){if(Uy)return Ff;Uy=1;var i=io().Pattern;function n(s,r){i.call(this,s,r),r?this._line_regexp=this._input.get_regexp(r._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}return n.prototype=new i,n.prototype.__set_whitespace_patterns=function(s,r){s+="\\t ",r+="\\n\\r",this._match_pattern=this._input.get_regexp("["+s+r+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+r+"]")},n.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var s=this._input.read(this._match_pattern);if(s===" ")this.whitespace_before_token=" ";else if(s){var r=this.__split(this._newline_regexp,s);this.newline_count=r.length-1,this.whitespace_before_token=r[this.newline_count]}return s},n.prototype.matching=function(s,r){var u=this._create();return u.__set_whitespace_patterns(s,r),u._update(),u},n.prototype._create=function(){return new n(this._input,this)},n.prototype.__split=function(s,r){s.lastIndex=0;for(var u=0,c=[],h=s.exec(r);h;)c.push(r.substring(u,h.index)),u=h.index+h[0].length,h=s.exec(r);return u<r.length?c.push(r.substring(u,r.length)):c.push(""),c},Ff.WhitespacePattern=n,Ff}var Iy;function Bu(){if(Iy)return fu;Iy=1;var i=Qh().InputScanner,n=bv().Token,s=FL().TokenStream,r=XL().WhitespacePattern,u={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},c=function(h,_){this._input=new i(h),this._options=_||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new r(this._input)};return c.prototype.tokenize=function(){this._input.restart(),this.__tokens=new s,this._reset();for(var h,_=new n(u.START,""),d=null,g=[],b=new s;_.type!==u.EOF;){for(h=this._get_next_token(_,d);this._is_comment(h);)b.add(h),h=this._get_next_token(_,d);b.isEmpty()||(h.comments_before=b,b=new s),h.parent=d,this._is_opening(h)?(g.push(d),d=h):d&&this._is_closing(h,d)&&(h.opened=d,d.closed=h,d=g.pop(),h.parent=d),h.previous=_,_.next=h,this.__tokens.add(h),_=h}return this.__tokens},c.prototype._is_first_token=function(){return this.__tokens.isEmpty()},c.prototype._reset=function(){},c.prototype._get_next_token=function(h,_){this._readWhitespace();var d=this._input.read(/.+/g);return d?this._create_token(u.RAW,d):this._create_token(u.EOF,"")},c.prototype._is_comment=function(h){return!1},c.prototype._is_opening=function(h){return!1},c.prototype._is_closing=function(h,_){return!1},c.prototype._create_token=function(h,_){var d=new n(h,_,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return d},c.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},fu.Tokenizer=c,fu.TOKEN=u,fu}var Qf={},ky;function Zh(){if(ky)return Qf;ky=1;function i(n,s){n=typeof n=="string"?n:n.source,s=typeof s=="string"?s:s.source,this.__directives_block_pattern=new RegExp(n+/ beautify( \w+[:]\w+)+ /.source+s,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(n+/\sbeautify\signore:end\s/.source+s,"g")}return i.prototype.get_directives=function(n){if(!n.match(this.__directives_block_pattern))return null;var s={};this.__directive_pattern.lastIndex=0;for(var r=this.__directive_pattern.exec(n);r;)s[r[1]]=r[2],r=this.__directive_pattern.exec(n);return s},i.prototype.readIgnored=function(n){return n.readUntilAfter(this.__directives_end_ignore_pattern)},Qf.Directives=i,Qf}var Zf={},zy;function Av(){if(zy)return Zf;zy=1;var i=io().Pattern,n={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function s(r,u){i.call(this,r,u),this.__template_pattern=null,this._disabled=Object.assign({},n),this._excluded=Object.assign({},n),u&&(this.__template_pattern=this._input.get_regexp(u.__template_pattern),this._excluded=Object.assign(this._excluded,u._excluded),this._disabled=Object.assign(this._disabled,u._disabled));var c=new i(r);this.__patterns={handlebars_comment:c.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:c.starting_with(/{{{/).until_after(/}}}/),handlebars:c.starting_with(/{{/).until_after(/}}/),php:c.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:c.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:c.starting_with(/{%/).until_after(/%}/),django_value:c.starting_with(/{{/).until_after(/}}/),django_comment:c.starting_with(/{#/).until_after(/#}/),smarty:c.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:c.starting_with(/{\*/).until_after(/\*}/),smarty_literal:c.starting_with(/{literal}/).until_after(/{\/literal}/)}}return s.prototype=new i,s.prototype._create=function(){return new s(this._input,this)},s.prototype._update=function(){this.__set_templated_pattern()},s.prototype.disable=function(r){var u=this._create();return u._disabled[r]=!0,u._update(),u},s.prototype.read_options=function(r){var u=this._create();for(var c in n)u._disabled[c]=r.templating.indexOf(c)===-1;return u._update(),u},s.prototype.exclude=function(r){var u=this._create();return u._excluded[r]=!0,u._update(),u},s.prototype.read=function(){var r="";this._match_pattern?r=this._input.read(this._starting_pattern):r=this._input.read(this._starting_pattern,this.__template_pattern);for(var u=this._read_template();u;)this._match_pattern?u+=this._input.read(this._match_pattern):u+=this._input.readUntil(this.__template_pattern),r+=u,u=this._read_template();return this._until_after&&(r+=this._input.readUntilAfter(this._until_pattern)),r},s.prototype.__set_templated_pattern=function(){var r=[];this._disabled.php||r.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||r.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.angular||r.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||r.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(r.push(this.__patterns.django._starting_pattern.source),r.push(this.__patterns.django_value._starting_pattern.source),r.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||r.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&r.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+r.join("|")+")")},s.prototype._read_template=function(){var r="",u=this._input.peek();if(u==="<"){var c=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&c==="?"&&(r=r||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&c==="%"&&(r=r||this.__patterns.erb.read())}else u==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(r=r||this.__patterns.handlebars_comment.read(),r=r||this.__patterns.handlebars_unescaped.read(),r=r||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(r=r||this.__patterns.django_value.read()),this._excluded.django||(r=r||this.__patterns.django_comment.read(),r=r||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(r=r||this.__patterns.smarty_comment.read(),r=r||this.__patterns.smarty_literal.read(),r=r||this.__patterns.smarty.read()));return r},Zf.TemplatablePattern=s,Zf}var By;function hu(){if(By)return rs;By=1;var i=Qh().InputScanner,n=Bu().Tokenizer,s=Bu().TOKEN,r=Zh().Directives,u=Tv(),c=io().Pattern,h=Av().TemplatablePattern;function _(U,L){return L.indexOf(U)!==-1}var d={START_EXPR:"TK_START_EXPR",END_EXPR:"TK_END_EXPR",START_BLOCK:"TK_START_BLOCK",END_BLOCK:"TK_END_BLOCK",WORD:"TK_WORD",RESERVED:"TK_RESERVED",SEMICOLON:"TK_SEMICOLON",STRING:"TK_STRING",EQUALS:"TK_EQUALS",OPERATOR:"TK_OPERATOR",COMMA:"TK_COMMA",BLOCK_COMMENT:"TK_BLOCK_COMMENT",COMMENT:"TK_COMMENT",DOT:"TK_DOT",UNKNOWN:"TK_UNKNOWN",START:s.START,RAW:s.RAW,EOF:s.EOF},g=new r(/\/\*/,/\*\//),b=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,E=/[0-9]/,A=/[^\d\.]/,j=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),H=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";H=H.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),H="\\?\\.(?!\\d) "+H,H=H.replace(/ /g,"|");var F=new RegExp(H),S="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),v=S.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),T=new RegExp("^(?:"+v.join("|")+")$"),w,I=function(U,L){n.call(this,U,L),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var C=new c(this._input),Y=new h(this._input).read_options(this._options);this.__patterns={template:Y,identifier:Y.starting_with(u.identifier).matching(u.identifierMatch),number:C.matching(b),punct:C.matching(F),comment:C.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:C.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:C.matching(/<!--/),html_comment_end:C.matching(/-->/),include:C.starting_with(/#include/).until_after(u.lineBreak),shebang:C.starting_with(/#!/).until_after(u.lineBreak),xml:C.matching(/[\s\S]*?<(\/?)([-a-zA-Z:0-9_.]+|{[^}]+?}|!\[CDATA\[[^\]]*?\]\]|)(\s*{[^}]+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{([^{}]|{[^}]+?})+?}))*\s*(\/?)\s*>/),single_quote:Y.until(/['\\\n\r\u2028\u2029]/),double_quote:Y.until(/["\\\n\r\u2028\u2029]/),template_text:Y.until(/[`\\$]/),template_expression:Y.until(/[`}\\]/)}};I.prototype=new n,I.prototype._is_comment=function(U){return U.type===d.COMMENT||U.type===d.BLOCK_COMMENT||U.type===d.UNKNOWN},I.prototype._is_opening=function(U){return U.type===d.START_BLOCK||U.type===d.START_EXPR},I.prototype._is_closing=function(U,L){return(U.type===d.END_BLOCK||U.type===d.END_EXPR)&&L&&(U.text==="]"&&L.text==="["||U.text===")"&&L.text==="("||U.text==="}"&&L.text==="{")},I.prototype._reset=function(){w=!1},I.prototype._get_next_token=function(U,L){var C=null;this._readWhitespace();var Y=this._input.peek();return Y===null?this._create_token(d.EOF,""):(C=C||this._read_non_javascript(Y),C=C||this._read_string(Y),C=C||this._read_pair(Y,this._input.peek(1)),C=C||this._read_word(U),C=C||this._read_singles(Y),C=C||this._read_comment(Y),C=C||this._read_regexp(Y,U),C=C||this._read_xml(Y,U),C=C||this._read_punctuation(),C=C||this._create_token(d.UNKNOWN,this._input.next()),C)},I.prototype._read_word=function(U){var L;if(L=this.__patterns.identifier.read(),L!=="")return L=L.replace(u.allLineBreaks,`
143
143
  `),!(U.type===d.DOT||U.type===d.RESERVED&&(U.text==="set"||U.text==="get"))&&T.test(L)?(L==="in"||L==="of")&&(U.type===d.WORD||U.type===d.STRING)?this._create_token(d.OPERATOR,L):this._create_token(d.RESERVED,L):this._create_token(d.WORD,L);if(L=this.__patterns.number.read(),L!=="")return this._create_token(d.WORD,L)},I.prototype._read_singles=function(U){var L=null;return U==="("||U==="["?L=this._create_token(d.START_EXPR,U):U===")"||U==="]"?L=this._create_token(d.END_EXPR,U):U==="{"?L=this._create_token(d.START_BLOCK,U):U==="}"?L=this._create_token(d.END_BLOCK,U):U===";"?L=this._create_token(d.SEMICOLON,U):U==="."&&A.test(this._input.peek(1))?L=this._create_token(d.DOT,U):U===","&&(L=this._create_token(d.COMMA,U)),L&&this._input.next(),L},I.prototype._read_pair=function(U,L){var C=null;return U==="#"&&L==="{"&&(C=this._create_token(d.START_BLOCK,U+L)),C&&(this._input.next(),this._input.next()),C},I.prototype._read_punctuation=function(){var U=this.__patterns.punct.read();if(U!=="")return U==="="?this._create_token(d.EQUALS,U):U==="?."?this._create_token(d.DOT,U):this._create_token(d.OPERATOR,U)},I.prototype._read_non_javascript=function(U){var L="";if(U==="#"){if(this._is_first_token()&&(L=this.__patterns.shebang.read(),L))return this._create_token(d.UNKNOWN,L.trim()+`
144
144
  `);if(L=this.__patterns.include.read(),L)return this._create_token(d.UNKNOWN,L.trim()+`
145
145
  `);U=this._input.next();var C="#";if(this._input.hasNext()&&this._input.testChar(E)){do U=this._input.next(),C+=U;while(this._input.hasNext()&&U!=="#"&&U!=="=");return U==="#"||(this._input.peek()==="["&&this._input.peek(1)==="]"?(C+="[]",this._input.next(),this._input.next()):this._input.peek()==="{"&&this._input.peek(1)==="}"&&(C+="{}",this._input.next(),this._input.next())),this._create_token(d.WORD,C)}this._input.back()}else if(U==="<"&&this._is_first_token()){if(L=this.__patterns.html_comment_start.read(),L){for(;this._input.hasNext()&&!this._input.testChar(u.newline);)L+=this._input.next();return w=!0,this._create_token(d.COMMENT,L)}}else if(w&&U==="-"&&(L=this.__patterns.html_comment_end.read(),L))return w=!1,this._create_token(d.COMMENT,L);return null},I.prototype._read_comment=function(U){var L=null;if(U==="/"){var C="";if(this._input.peek(1)==="*"){C=this.__patterns.block_comment.read();var Y=g.get_directives(C);Y&&Y.ignore==="start"&&(C+=g.readIgnored(this._input)),C=C.replace(u.allLineBreaks,`
146
- `),L=this._create_token(d.BLOCK_COMMENT,C),L.directives=Y}else this._input.peek(1)==="/"&&(C=this.__patterns.comment.read(),L=this._create_token(d.COMMENT,C))}return L},I.prototype._read_string=function(U){if(U==="`"||U==="'"||U==='"'){var L=this._input.next();return this.has_char_escapes=!1,U==="`"?L+=this._read_string_recursive("`",!0,"${"):L+=this._read_string_recursive(U),this.has_char_escapes&&this._options.unescape_strings&&(L=F(L)),this._input.peek()===U&&(L+=this._input.next()),L=L.replace(u.allLineBreaks,`
146
+ `),L=this._create_token(d.BLOCK_COMMENT,C),L.directives=Y}else this._input.peek(1)==="/"&&(C=this.__patterns.comment.read(),L=this._create_token(d.COMMENT,C))}return L},I.prototype._read_string=function(U){if(U==="`"||U==="'"||U==='"'){var L=this._input.next();return this.has_char_escapes=!1,U==="`"?L+=this._read_string_recursive("`",!0,"${"):L+=this._read_string_recursive(U),this.has_char_escapes&&this._options.unescape_strings&&(L=X(L)),this._input.peek()===U&&(L+=this._input.next()),L=L.replace(u.allLineBreaks,`
147
147
  `),this._create_token(d.STRING,L)}return null},I.prototype._allow_regexp_or_xml=function(U){return U.type===d.RESERVED&&_(U.text,["return","case","throw","else","do","typeof","yield"])||U.type===d.END_EXPR&&U.text===")"&&U.opened.previous.type===d.RESERVED&&_(U.opened.previous.text,["if","while","for"])||_(U.type,[d.COMMENT,d.START_EXPR,d.START_BLOCK,d.START,d.END_BLOCK,d.OPERATOR,d.EQUALS,d.EOF,d.SEMICOLON,d.COMMA])},I.prototype._read_regexp=function(U,L){if(U==="/"&&this._allow_regexp_or_xml(L)){for(var C=this._input.next(),Y=!1,m=!1;this._input.hasNext()&&(Y||m||this._input.peek()!==U)&&!this._input.testChar(u.newline);)C+=this._input.peek(),Y?Y=!1:(Y=this._input.peek()==="\\",this._input.peek()==="["?m=!0:this._input.peek()==="]"&&(m=!1)),this._input.next();return this._input.peek()===U&&(C+=this._input.next(),C+=this._input.read(u.identifier)),this._create_token(d.STRING,C)}return null},I.prototype._read_xml=function(U,L){if(this._options.e4x&&U==="<"&&this._allow_regexp_or_xml(L)){var C="",Y=this.__patterns.xml.read_match();if(Y){for(var m=Y[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),P=m.indexOf("{")===0,G=0;Y;){var et=!!Y[1],at=Y[2],J=!!Y[Y.length-1]||at.slice(0,8)==="![CDATA[";if(!J&&(at===m||P&&at.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(et?--G:++G),C+=Y[0],G<=0)break;Y=this.__patterns.xml.read_match()}return Y||(C+=this._input.match(/[\s\S]*/g)[0]),C=C.replace(u.allLineBreaks,`
148
- `),this._create_token(d.STRING,C)}}return null};function F(U){for(var L="",C=0,Y=new i(U),m=null;Y.hasNext();)if(m=Y.match(/([\s]|[^\\]|\\\\)+/g),m&&(L+=m[0]),Y.peek()==="\\"){if(Y.next(),Y.peek()==="x")m=Y.match(/x([0-9A-Fa-f]{2})/g);else if(Y.peek()==="u")m=Y.match(/u([0-9A-Fa-f]{4})/g),m||(m=Y.match(/u\{([0-9A-Fa-f]+)\}/g));else{L+="\\",Y.hasNext()&&(L+=Y.next());continue}if(!m||(C=parseInt(m[1],16),C>126&&C<=255&&m[0].indexOf("x")===0))return U;C>=0&&C<32||C>1114111?L+="\\"+m[0]:C===34||C===39||C===92?L+="\\"+String.fromCharCode(C):L+=String.fromCharCode(C)}return L}return I.prototype._read_string_recursive=function(U,L,C){var Y,m;U==="'"?m=this.__patterns.single_quote:U==='"'?m=this.__patterns.double_quote:U==="`"?m=this.__patterns.template_text:U==="}"&&(m=this.__patterns.template_expression);for(var P=m.read(),G="";this._input.hasNext();){if(G=this._input.next(),G===U||!L&&u.newline.test(G)){this._input.back();break}else G==="\\"&&this._input.hasNext()?(Y=this._input.peek(),Y==="x"||Y==="u"?this.has_char_escapes=!0:Y==="\r"&&this._input.peek(1)===`
149
- `&&this._input.next(),G+=this._input.next()):C&&(C==="${"&&G==="$"&&this._input.peek()==="{"&&(G+=this._input.next()),C===G&&(U==="`"?G+=this._read_string_recursive("}",L,"`"):G+=this._read_string_recursive("`",L,"${"),this._input.hasNext()&&(G+=this._input.next())));G+=m.read(),P+=G}return P},rs.Tokenizer=I,rs.TOKEN=d,rs.positionable_operators=j.slice(),rs.line_starters=S.slice(),rs}var jy;function YL(){if(jy)return Pf;jy=1;var i=Fh().Output,n=Tv().Token,s=Sv(),r=Av().Options,u=fu().Tokenizer,c=fu().line_starters,h=fu().positionable_operators,_=fu().TOKEN;function d(m,P){return P.indexOf(m)!==-1}function g(m){return m.replace(/^\s+/g,"")}function b(m){for(var P={},G=0;G<m.length;G++)P[m[G].replace(/-/g,"_")]=m[G];return P}function E(m,P){return m&&m.type===_.RESERVED&&m.text===P}function A(m,P){return m&&m.type===_.RESERVED&&d(m.text,P)}var j=["case","return","do","if","throw","else","await","break","continue","async"],H=["before-newline","after-newline","preserve-newline"],X=b(H),S=[X.before_newline,X.preserve_newline],v={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"};function T(m,P){P.multiline_frame||P.mode===v.ForInitializer||P.mode===v.Conditional||m.remove_indent(P.start_line_index)}function w(m){m=m.replace(s.allLineBreaks,`
148
+ `),this._create_token(d.STRING,C)}}return null};function X(U){for(var L="",C=0,Y=new i(U),m=null;Y.hasNext();)if(m=Y.match(/([\s]|[^\\]|\\\\)+/g),m&&(L+=m[0]),Y.peek()==="\\"){if(Y.next(),Y.peek()==="x")m=Y.match(/x([0-9A-Fa-f]{2})/g);else if(Y.peek()==="u")m=Y.match(/u([0-9A-Fa-f]{4})/g),m||(m=Y.match(/u\{([0-9A-Fa-f]+)\}/g));else{L+="\\",Y.hasNext()&&(L+=Y.next());continue}if(!m||(C=parseInt(m[1],16),C>126&&C<=255&&m[0].indexOf("x")===0))return U;C>=0&&C<32||C>1114111?L+="\\"+m[0]:C===34||C===39||C===92?L+="\\"+String.fromCharCode(C):L+=String.fromCharCode(C)}return L}return I.prototype._read_string_recursive=function(U,L,C){var Y,m;U==="'"?m=this.__patterns.single_quote:U==='"'?m=this.__patterns.double_quote:U==="`"?m=this.__patterns.template_text:U==="}"&&(m=this.__patterns.template_expression);for(var P=m.read(),G="";this._input.hasNext();){if(G=this._input.next(),G===U||!L&&u.newline.test(G)){this._input.back();break}else G==="\\"&&this._input.hasNext()?(Y=this._input.peek(),Y==="x"||Y==="u"?this.has_char_escapes=!0:Y==="\r"&&this._input.peek(1)===`
149
+ `&&this._input.next(),G+=this._input.next()):C&&(C==="${"&&G==="$"&&this._input.peek()==="{"&&(G+=this._input.next()),C===G&&(U==="`"?G+=this._read_string_recursive("}",L,"`"):G+=this._read_string_recursive("`",L,"${"),this._input.hasNext()&&(G+=this._input.next())));G+=m.read(),P+=G}return P},rs.Tokenizer=I,rs.TOKEN=d,rs.positionable_operators=j.slice(),rs.line_starters=S.slice(),rs}var Dy;function QL(){if(Dy)return Gf;Dy=1;var i=Fh().Output,n=bv().Token,s=Tv(),r=Sv().Options,u=hu().Tokenizer,c=hu().line_starters,h=hu().positionable_operators,_=hu().TOKEN;function d(m,P){return P.indexOf(m)!==-1}function g(m){return m.replace(/^\s+/g,"")}function b(m){for(var P={},G=0;G<m.length;G++)P[m[G].replace(/-/g,"_")]=m[G];return P}function E(m,P){return m&&m.type===_.RESERVED&&m.text===P}function A(m,P){return m&&m.type===_.RESERVED&&d(m.text,P)}var j=["case","return","do","if","throw","else","await","break","continue","async"],H=["before-newline","after-newline","preserve-newline"],F=b(H),S=[F.before_newline,F.preserve_newline],v={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"};function T(m,P){P.multiline_frame||P.mode===v.ForInitializer||P.mode===v.Conditional||m.remove_indent(P.start_line_index)}function w(m){m=m.replace(s.allLineBreaks,`
150
150
  `);for(var P=[],G=m.indexOf(`
151
151
  `);G!==-1;)P.push(m.substring(0,G)),m=m.substring(G+1),G=m.indexOf(`
152
- `);return m.length&&P.push(m),P}function I(m){return m===v.ArrayLiteral}function F(m){return d(m,[v.Expression,v.ForInitializer,v.Conditional])}function U(m,P){for(var G=0;G<m.length;G++){var et=m[G].trim();if(et.charAt(0)!==P)return!1}return!0}function L(m,P){for(var G=0,et=m.length,at;G<et;G++)if(at=m[G],at&&at.indexOf(P)!==0)return!1;return!0}function C(m,P){P=P||{},this._source_text=m||"",this._output=null,this._tokens=null,this._last_last_text=null,this._flags=null,this._previous_flags=null,this._flag_store=null,this._options=new r(P)}C.prototype.create_flags=function(m,P){var G=0;m&&(G=m.indentation_level,!this._output.just_added_newline()&&m.line_indent_level>G&&(G=m.line_indent_level));var et={mode:P,parent:m,last_token:m?m.last_token:new n(_.START_BLOCK,""),last_word:m?m.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,inline_frame:!1,if_block:!1,else_block:!1,class_start_block:!1,do_block:!1,do_while:!1,import_block:!1,in_case_statement:!1,in_case:!1,case_body:!1,case_block:!1,indentation_level:G,alignment:0,line_indent_level:m?m.line_indent_level:G,start_line_index:this._output.get_line_number(),ternary_depth:0};return et},C.prototype._reset=function(m){var P=m.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new i(this._options,P),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(v.BlockStatement);var G=new u(m,this._options);return this._tokens=G.tokenize(),m},C.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var m,P=this._reset(this._source_text),G=this._options.eol;this._options.eol==="auto"&&(G=`
153
- `,P&&s.lineBreak.test(P||"")&&(G=P.match(s.lineBreak)[0]));for(var et=this._tokens.next();et;)this.handle_token(et),this._last_last_text=this._flags.last_token.text,this._flags.last_token=et,et=this._tokens.next();return m=this._output.get_code(G),m},C.prototype.handle_token=function(m,P){m.type===_.START_EXPR?this.handle_start_expr(m):m.type===_.END_EXPR?this.handle_end_expr(m):m.type===_.START_BLOCK?this.handle_start_block(m):m.type===_.END_BLOCK?this.handle_end_block(m):m.type===_.WORD?this.handle_word(m):m.type===_.RESERVED?this.handle_word(m):m.type===_.SEMICOLON?this.handle_semicolon(m):m.type===_.STRING?this.handle_string(m):m.type===_.EQUALS?this.handle_equals(m):m.type===_.OPERATOR?this.handle_operator(m):m.type===_.COMMA?this.handle_comma(m):m.type===_.BLOCK_COMMENT?this.handle_block_comment(m,P):m.type===_.COMMENT?this.handle_comment(m,P):m.type===_.DOT?this.handle_dot(m):m.type===_.EOF?this.handle_eof(m):m.type===_.UNKNOWN?this.handle_unknown(m,P):this.handle_unknown(m,P)},C.prototype.handle_whitespace_and_comments=function(m,P){var G=m.newlines,et=this._options.keep_array_indentation&&I(this._flags.mode);if(m.comments_before)for(var at=m.comments_before.next();at;)this.handle_whitespace_and_comments(at,P),this.handle_token(at,P),at=m.comments_before.next();if(et)for(var J=0;J<G;J+=1)this.print_newline(J>0,P);else if(this._options.max_preserve_newlines&&G>this._options.max_preserve_newlines&&(G=this._options.max_preserve_newlines),this._options.preserve_newlines&&G>1){this.print_newline(!1,P);for(var M=1;M<G;M+=1)this.print_newline(!0,P)}};var Y=["async","break","continue","return","throw","yield"];return C.prototype.allow_wrap_or_preserved_newline=function(m,P){if(P=P===void 0?!1:P,!this._output.just_added_newline()){var G=this._options.preserve_newlines&&m.newlines||P,et=d(this._flags.last_token.text,h)||d(m.text,h);if(et){var at=d(this._flags.last_token.text,h)&&d(this._options.operator_position,S)||d(m.text,h);G=G&&at}if(G)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(A(this._flags.last_token,Y))return;this._output.set_wrap_point()}}},C.prototype.print_newline=function(m,P){if(!P&&this._flags.last_token.text!==";"&&this._flags.last_token.text!==","&&this._flags.last_token.text!=="="&&(this._flags.last_token.type!==_.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++"))for(var G=this._tokens.peek();this._flags.mode===v.Statement&&!(this._flags.if_block&&E(G,"else"))&&!this._flags.do_block;)this.restore_mode();this._output.add_new_line(m)&&(this._flags.multiline_frame=!0)},C.prototype.print_token_line_indentation=function(m){this._output.just_added_newline()&&(this._options.keep_array_indentation&&m.newlines&&(m.text==="["||I(this._flags.mode))?(this._output.current_line.set_indent(-1),this._output.current_line.push(m.whitespace_before),this._output.space_before_token=!1):this._output.set_indent(this._flags.indentation_level,this._flags.alignment)&&(this._flags.line_indent_level=this._flags.indentation_level))},C.prototype.print_token=function(m){if(this._output.raw){this._output.add_raw_token(m);return}if(this._options.comma_first&&m.previous&&m.previous.type===_.COMMA&&this._output.just_added_newline()&&this._output.previous_line.last()===","){var P=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push(P),this._output.trim(!0),this._output.current_line.pop(),this._output.trim()),this.print_token_line_indentation(m),this._output.add_token(","),this._output.space_before_token=!0}this.print_token_line_indentation(m),this._output.non_breaking_space=!0,this._output.add_token(m.text),this._output.previous_token_wrapped&&(this._flags.multiline_frame=!0)},C.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},C.prototype.deindent=function(){this._flags.indentation_level>0&&(!this._flags.parent||this._flags.indentation_level>this._flags.parent.indentation_level)&&(this._flags.indentation_level-=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},C.prototype.set_mode=function(m){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,m),this._flags=this.create_flags(this._previous_flags,m),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},C.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===v.Statement&&T(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},C.prototype.start_of_object_property=function(){return this._flags.parent.mode===v.ObjectLiteral&&this._flags.mode===v.Statement&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||A(this._flags.last_token,["get","set"]))},C.prototype.start_of_statement=function(m){var P=!1;return P=P||A(this._flags.last_token,["var","let","const"])&&m.type===_.WORD,P=P||E(this._flags.last_token,"do"),P=P||!(this._flags.parent.mode===v.ObjectLiteral&&this._flags.mode===v.Statement)&&A(this._flags.last_token,Y)&&!m.newlines,P=P||E(this._flags.last_token,"else")&&!(E(m,"if")&&!m.comments_before),P=P||this._flags.last_token.type===_.END_EXPR&&(this._previous_flags.mode===v.ForInitializer||this._previous_flags.mode===v.Conditional),P=P||this._flags.last_token.type===_.WORD&&this._flags.mode===v.BlockStatement&&!this._flags.in_case&&!(m.text==="--"||m.text==="++")&&this._last_last_text!=="function"&&m.type!==_.WORD&&m.type!==_.RESERVED,P=P||this._flags.mode===v.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||A(this._flags.last_token,["get","set"])),P?(this.set_mode(v.Statement),this.indent(),this.handle_whitespace_and_comments(m,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(m,A(m,["do","for","if","while"])),!0):!1},C.prototype.handle_start_expr=function(m){this.start_of_statement(m)||this.handle_whitespace_and_comments(m);var P=v.Expression;if(m.text==="["){if(this._flags.last_token.type===_.WORD||this._flags.last_token.text===")"){A(this._flags.last_token,c)&&(this._output.space_before_token=!0),this.print_token(m),this.set_mode(P),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}P=v.ArrayLiteral,I(this._flags.mode)&&(this._flags.last_token.text==="["||this._flags.last_token.text===","&&(this._last_last_text==="]"||this._last_last_text==="}"))&&(this._options.keep_array_indentation||this.print_newline()),d(this._flags.last_token.type,[_.START_EXPR,_.END_EXPR,_.WORD,_.OPERATOR,_.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===_.RESERVED)this._flags.last_token.text==="for"?(this._output.space_before_token=this._options.space_before_conditional,P=v.ForInitializer):d(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,P=v.Conditional):d(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:this._flags.last_token.text==="import"&&m.whitespace_before===""?this._output.space_before_token=!1:(d(this._flags.last_token.text,c)||this._flags.last_token.text==="catch")&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===_.EQUALS||this._flags.last_token.type===_.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(m);else if(this._flags.last_token.type===_.WORD){this._output.space_before_token=!1;var G=this._tokens.peek(-3);if(this._options.space_after_named_function&&G){var et=this._tokens.peek(-4);A(G,["async","function"])||G.text==="*"&&A(et,["async","function"])?this._output.space_before_token=!0:this._flags.mode===v.ObjectLiteral?(G.text==="{"||G.text===","||G.text==="*"&&(et.text==="{"||et.text===","))&&(this._output.space_before_token=!0):this._flags.parent&&this._flags.parent.class_start_block&&(this._output.space_before_token=!0)}}else this.allow_wrap_or_preserved_newline(m);(this._flags.last_token.type===_.RESERVED&&(this._flags.last_word==="function"||this._flags.last_word==="typeof")||this._flags.last_token.text==="*"&&(d(this._last_last_text,["function","yield"])||this._flags.mode===v.ObjectLiteral&&d(this._last_last_text,["{",","])))&&(this._output.space_before_token=this._options.space_after_anon_function)}this._flags.last_token.text===";"||this._flags.last_token.type===_.START_BLOCK?this.print_newline():(this._flags.last_token.type===_.END_EXPR||this._flags.last_token.type===_.START_EXPR||this._flags.last_token.type===_.END_BLOCK||this._flags.last_token.text==="."||this._flags.last_token.type===_.COMMA)&&this.allow_wrap_or_preserved_newline(m,m.newlines),this.print_token(m),this.set_mode(P),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},C.prototype.handle_end_expr=function(m){for(;this._flags.mode===v.Statement;)this.restore_mode();this.handle_whitespace_and_comments(m),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(m,m.text==="]"&&I(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type===_.START_EXPR&&!this._options.space_in_empty_paren?(this._output.trim(),this._output.space_before_token=!1):this._output.space_before_token=!0),this.deindent(),this.print_token(m),this.restore_mode(),T(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===v.Conditional&&(this._previous_flags.mode=v.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},C.prototype.handle_start_block=function(m){this.handle_whitespace_and_comments(m);var P=this._tokens.peek(),G=this._tokens.peek(1);this._flags.last_word==="switch"&&this._flags.last_token.type===_.END_EXPR?(this.set_mode(v.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(v.BlockStatement):G&&(d(G.text,[":",","])&&d(P.type,[_.STRING,_.WORD,_.RESERVED])||d(P.text,["get","set","..."])&&d(G.type,[_.WORD,_.RESERVED]))?d(this._last_last_text,["class","interface"])&&!d(G.text,[":",","])?this.set_mode(v.BlockStatement):this.set_mode(v.ObjectLiteral):this._flags.last_token.type===_.OPERATOR&&this._flags.last_token.text==="=>"?this.set_mode(v.BlockStatement):d(this._flags.last_token.type,[_.EQUALS,_.START_EXPR,_.COMMA,_.OPERATOR])||A(this._flags.last_token,["return","throw","import","default"])?this.set_mode(v.ObjectLiteral):this.set_mode(v.BlockStatement),this._flags.last_token&&A(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0);var et=!P.comments_before&&P.text==="}",at=et&&this._flags.last_word==="function"&&this._flags.last_token.type===_.END_EXPR;if(this._options.brace_preserve_inline){var J=0,M=null;this._flags.inline_frame=!0;do if(J+=1,M=this._tokens.peek(J-1),M.newlines){this._flags.inline_frame=!1;break}while(M.type!==_.EOF&&!(M.type===_.END_BLOCK&&M.opened===m))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&m.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==_.OPERATOR&&(at||this._flags.last_token.type===_.EQUALS||A(this._flags.last_token,j)&&this._flags.last_token.text!=="else")?this._output.space_before_token=!0:this.print_newline(!1,!0):(I(this._previous_flags.mode)&&(this._flags.last_token.type===_.START_EXPR||this._flags.last_token.type===_.COMMA)&&((this._flags.last_token.type===_.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===_.COMMA||this._flags.last_token.type===_.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(m),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==_.OPERATOR&&this._flags.last_token.type!==_.START_EXPR&&(d(this._flags.last_token.type,[_.START_BLOCK,_.SEMICOLON])&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(m),this.indent(),!et&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()},C.prototype.handle_end_block=function(m){for(this.handle_whitespace_and_comments(m);this._flags.mode===v.Statement;)this.restore_mode();var P=this._flags.last_token.type===_.START_BLOCK;this._flags.inline_frame&&!P?this._output.space_before_token=!0:this._options.brace_style==="expand"?P||this.print_newline():P||(I(this._flags.mode)&&this._options.keep_array_indentation?(this._options.keep_array_indentation=!1,this.print_newline(),this._options.keep_array_indentation=!0):this.print_newline()),this.restore_mode(),this.print_token(m)},C.prototype.handle_word=function(m){if(m.type===_.RESERVED){if(d(m.text,["set","get"])&&this._flags.mode!==v.ObjectLiteral)m.type=_.WORD;else if(m.text==="import"&&d(this._tokens.peek().text,["(","."]))m.type=_.WORD;else if(d(m.text,["as","from"])&&!this._flags.import_block)m.type=_.WORD;else if(this._flags.mode===v.ObjectLiteral){var P=this._tokens.peek();P.text===":"&&(m.type=_.WORD)}}if(this.start_of_statement(m)?A(this._flags.last_token,["var","let","const"])&&m.type===_.WORD&&(this._flags.declaration_statement=!0):m.newlines&&!F(this._flags.mode)&&(this._flags.last_token.type!==_.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")&&this._flags.last_token.type!==_.EQUALS&&(this._options.preserve_newlines||!A(this._flags.last_token,["var","let","const","set","get"]))?(this.handle_whitespace_and_comments(m),this.print_newline()):this.handle_whitespace_and_comments(m),this._flags.do_block&&!this._flags.do_while)if(E(m,"while")){this._output.space_before_token=!0,this.print_token(m),this._output.space_before_token=!0,this._flags.do_while=!0;return}else this.print_newline(),this._flags.do_block=!1;if(this._flags.if_block)if(!this._flags.else_block&&E(m,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===v.Statement;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&A(m,["case","default"])){this.print_newline(),!this._flags.case_block&&(this._flags.case_body||this._options.jslint_happy)&&this.deindent(),this._flags.case_body=!1,this.print_token(m),this._flags.in_case=!0;return}if((this._flags.last_token.type===_.COMMA||this._flags.last_token.type===_.START_EXPR||this._flags.last_token.type===_.EQUALS||this._flags.last_token.type===_.OPERATOR)&&!this.start_of_object_property()&&!(d(this._flags.last_token.text,["+","-"])&&this._last_last_text===":"&&this._flags.parent.mode===v.ObjectLiteral)&&this.allow_wrap_or_preserved_newline(m),E(m,"function")){(d(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!(d(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===_.OPERATOR))&&!this._output.just_added_blankline()&&!m.comments_before&&(this.print_newline(),this.print_newline(!0)),this._flags.last_token.type===_.RESERVED||this._flags.last_token.type===_.WORD?A(this._flags.last_token,["get","set","new","export"])||A(this._flags.last_token,Y)?this._output.space_before_token=!0:E(this._flags.last_token,"default")&&this._last_last_text==="export"?this._output.space_before_token=!0:this._flags.last_token.text==="declare"?this._output.space_before_token=!0:this.print_newline():this._flags.last_token.type===_.OPERATOR||this._flags.last_token.text==="="?this._output.space_before_token=!0:!this._flags.multiline_frame&&(F(this._flags.mode)||I(this._flags.mode))||this.print_newline(),this.print_token(m),this._flags.last_word=m.text;return}var G="NONE";if(this._flags.last_token.type===_.END_BLOCK?this._previous_flags.inline_frame?G="SPACE":A(m,["else","catch","finally","from"])?this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&m.newlines?G="NEWLINE":(G="SPACE",this._output.space_before_token=!0):G="NEWLINE":this._flags.last_token.type===_.SEMICOLON&&this._flags.mode===v.BlockStatement?G="NEWLINE":this._flags.last_token.type===_.SEMICOLON&&F(this._flags.mode)?G="SPACE":this._flags.last_token.type===_.STRING?G="NEWLINE":this._flags.last_token.type===_.RESERVED||this._flags.last_token.type===_.WORD||this._flags.last_token.text==="*"&&(d(this._last_last_text,["function","yield"])||this._flags.mode===v.ObjectLiteral&&d(this._last_last_text,["{",","]))?G="SPACE":this._flags.last_token.type===_.START_BLOCK?this._flags.inline_frame?G="SPACE":G="NEWLINE":this._flags.last_token.type===_.END_EXPR&&(this._output.space_before_token=!0,G="NEWLINE"),A(m,c)&&this._flags.last_token.text!==")"&&(this._flags.inline_frame||this._flags.last_token.text==="else"||this._flags.last_token.text==="export"?G="SPACE":G="NEWLINE"),A(m,["else","catch","finally"]))if((!(this._flags.last_token.type===_.END_BLOCK&&this._previous_flags.mode===v.BlockStatement)||this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&m.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var et=this._output.current_line;et.last()!=="}"&&this.print_newline(),this._output.space_before_token=!0}else G==="NEWLINE"?A(this._flags.last_token,j)?this._output.space_before_token=!0:this._flags.last_token.text==="declare"&&A(m,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==_.END_EXPR?(this._flags.last_token.type!==_.START_EXPR||!A(m,["var","let","const"]))&&this._flags.last_token.text!==":"&&(E(m,"if")&&E(m.previous,"else")?this._output.space_before_token=!0:this.print_newline()):A(m,c)&&this._flags.last_token.text!==")"&&this.print_newline():this._flags.multiline_frame&&I(this._flags.mode)&&this._flags.last_token.text===","&&this._last_last_text==="}"?this.print_newline():G==="SPACE"&&(this._output.space_before_token=!0);m.previous&&(m.previous.type===_.WORD||m.previous.type===_.RESERVED)&&(this._output.space_before_token=!0),this.print_token(m),this._flags.last_word=m.text,m.type===_.RESERVED&&(m.text==="do"?this._flags.do_block=!0:m.text==="if"?this._flags.if_block=!0:m.text==="import"?this._flags.import_block=!0:this._flags.import_block&&E(m,"from")&&(this._flags.import_block=!1))},C.prototype.handle_semicolon=function(m){this.start_of_statement(m)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(m);for(var P=this._tokens.peek();this._flags.mode===v.Statement&&!(this._flags.if_block&&E(P,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(m)},C.prototype.handle_string=function(m){m.text.startsWith("`")&&m.newlines===0&&m.whitespace_before===""&&(m.previous.text===")"||this._flags.last_token.type===_.WORD)||(this.start_of_statement(m)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(m),this._flags.last_token.type===_.RESERVED||this._flags.last_token.type===_.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===_.COMMA||this._flags.last_token.type===_.START_EXPR||this._flags.last_token.type===_.EQUALS||this._flags.last_token.type===_.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(m):m.text.startsWith("`")&&this._flags.last_token.type===_.END_EXPR&&(m.previous.text==="]"||m.previous.text===")")&&m.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(m)},C.prototype.handle_equals=function(m){this.start_of_statement(m)||this.handle_whitespace_and_comments(m),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(m),this._output.space_before_token=!0},C.prototype.handle_comma=function(m){this.handle_whitespace_and_comments(m,!0),this.print_token(m),this._output.space_before_token=!0,this._flags.declaration_statement?(F(this._flags.parent.mode)&&(this._flags.declaration_assignment=!1),this._flags.declaration_assignment?(this._flags.declaration_assignment=!1,this.print_newline(!1,!0)):this._options.comma_first&&this.allow_wrap_or_preserved_newline(m)):this._flags.mode===v.ObjectLiteral||this._flags.mode===v.Statement&&this._flags.parent.mode===v.ObjectLiteral?(this._flags.mode===v.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(m)},C.prototype.handle_operator=function(m){var P=m.text==="*"&&(A(this._flags.last_token,["function","yield"])||d(this._flags.last_token.type,[_.START_BLOCK,_.COMMA,_.END_BLOCK,_.SEMICOLON])),G=d(m.text,["-","+"])&&(d(this._flags.last_token.type,[_.START_BLOCK,_.START_EXPR,_.EQUALS,_.OPERATOR])||d(this._flags.last_token.text,c)||this._flags.last_token.text===",");if(!this.start_of_statement(m)){var et=!P;this.handle_whitespace_and_comments(m,et)}if(m.text==="*"&&this._flags.last_token.type===_.DOT){this.print_token(m);return}if(m.text==="::"){this.print_token(m);return}if(d(m.text,["-","+"])&&this.start_of_object_property()){this.print_token(m);return}if(this._flags.last_token.type===_.OPERATOR&&d(this._options.operator_position,S)&&this.allow_wrap_or_preserved_newline(m),m.text===":"&&this._flags.in_case){this.print_token(m),this._flags.in_case=!1,this._flags.case_body=!0,this._tokens.peek().type!==_.START_BLOCK?(this.indent(),this.print_newline(),this._flags.case_block=!1):(this._flags.case_block=!0,this._output.space_before_token=!0);return}var at=!0,J=!0,M=!1;if(m.text===":"?this._flags.ternary_depth===0?at=!1:(this._flags.ternary_depth-=1,M=!0):m.text==="?"&&(this._flags.ternary_depth+=1),!G&&!P&&this._options.preserve_newlines&&d(m.text,h)){var Q=m.text===":",it=Q&&M,yt=Q&&!M;switch(this._options.operator_position){case X.before_newline:this._output.space_before_token=!yt,this.print_token(m),(!Q||it)&&this.allow_wrap_or_preserved_newline(m),this._output.space_before_token=!0;return;case X.after_newline:this._output.space_before_token=!0,!Q||it?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(m):this._output.space_before_token=!1,this.print_token(m),this._output.space_before_token=!0;return;case X.preserve_newline:yt||this.allow_wrap_or_preserved_newline(m),at=!(this._output.just_added_newline()||yt),this._output.space_before_token=at,this.print_token(m),this._output.space_before_token=!0;return}}if(P){this.allow_wrap_or_preserved_newline(m),at=!1;var Ot=this._tokens.peek();J=Ot&&d(Ot.type,[_.WORD,_.RESERVED])}else if(m.text==="...")this.allow_wrap_or_preserved_newline(m),at=this._flags.last_token.type===_.START_BLOCK,J=!1;else if(d(m.text,["--","++","!","~"])||G){if((this._flags.last_token.type===_.COMMA||this._flags.last_token.type===_.START_EXPR)&&this.allow_wrap_or_preserved_newline(m),at=!1,J=!1,m.newlines&&(m.text==="--"||m.text==="++"||m.text==="~")){var N=A(this._flags.last_token,j)&&m.newlines;N&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(N,!0)}this._flags.last_token.text===";"&&F(this._flags.mode)&&(at=!0),this._flags.last_token.type===_.RESERVED?at=!0:this._flags.last_token.type===_.END_EXPR?at=!(this._flags.last_token.text==="]"&&(m.text==="--"||m.text==="++")):this._flags.last_token.type===_.OPERATOR&&(at=d(m.text,["--","-","++","+"])&&d(this._flags.last_token.text,["--","-","++","+"]),d(m.text,["+","-"])&&d(this._flags.last_token.text,["--","++"])&&(J=!0)),(this._flags.mode===v.BlockStatement&&!this._flags.inline_frame||this._flags.mode===v.Statement)&&(this._flags.last_token.text==="{"||this._flags.last_token.text===";")&&this.print_newline()}this._output.space_before_token=this._output.space_before_token||at,this.print_token(m),this._output.space_before_token=J},C.prototype.handle_block_comment=function(m,P){if(this._output.raw){this._output.add_raw_token(m),m.directives&&m.directives.preserve==="end"&&(this._output.raw=this._options.test_output_raw);return}if(m.directives){this.print_newline(!1,P),this.print_token(m),m.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!s.newline.test(m.text)&&!m.newlines){this._output.space_before_token=!0,this.print_token(m),this._output.space_before_token=!0;return}else this.print_block_commment(m,P)},C.prototype.print_block_commment=function(m,P){var G=w(m.text),et,at=!1,J=!1,M=m.whitespace_before,Q=M.length;if(this.print_newline(!1,P),this.print_token_line_indentation(m),this._output.add_token(G[0]),this.print_newline(!1,P),G.length>1){for(G=G.slice(1),at=U(G,"*"),J=L(G,M),at&&(this._flags.alignment=1),et=0;et<G.length;et++)at?(this.print_token_line_indentation(m),this._output.add_token(g(G[et]))):J&&G[et]?(this.print_token_line_indentation(m),this._output.add_token(G[et].substring(Q))):(this._output.current_line.set_indent(-1),this._output.add_token(G[et])),this.print_newline(!1,P);this._flags.alignment=0}},C.prototype.handle_comment=function(m,P){m.newlines?this.print_newline(!1,P):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(m),this.print_newline(!1,P)},C.prototype.handle_dot=function(m){this.start_of_statement(m)||this.handle_whitespace_and_comments(m,!0),this._flags.last_token.text.match("^[0-9]+$")&&(this._output.space_before_token=!0),A(this._flags.last_token,j)?this._output.space_before_token=!1:this.allow_wrap_or_preserved_newline(m,this._flags.last_token.text===")"&&this._options.break_chained_methods),this._options.unindent_chained_methods&&this._output.just_added_newline()&&this.deindent(),this.print_token(m)},C.prototype.handle_unknown=function(m,P){this.print_token(m),m.text[m.text.length-1]===`
154
- `&&this.print_newline(!1,P)},C.prototype.handle_eof=function(m){for(;this._flags.mode===v.Statement;)this.restore_mode();this.handle_whitespace_and_comments(m)},Pf.Beautifier=C,Pf}var Py;function XL(){if(Py)return ou.exports;Py=1;var i=YL().Beautifier,n=Av().Options;function s(r,u){var c=new i(r,u);return c.beautify()}return ou.exports=s,ou.exports.defaultOptions=function(){return new n},ou.exports}var hu={exports:{}},Zf={},Wf={},Gy;function Nv(){if(Gy)return Wf;Gy=1;var i=Qh().Options;function n(s){i.call(this,s,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var r=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||r;var u=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var c=0;c<u.length;c++)u[c]!=="expand"?this.brace_style="collapse":this.brace_style=u[c]}return n.prototype=new i,Wf.Options=n,Wf}var qy;function FL(){if(qy)return Zf;qy=1;var i=Nv().Options,n=Fh().Output,s=Zh().InputScanner,r=Wh().Directives,u=new r(/\/\*/,/\*\//),c=/\r\n|[\r\n]/,h=/\r\n|[\r\n]/g,_=/\s/,d=/(?:\s|\n)+/g,g=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,b=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function E(A,j){this._source_text=A||"",this._options=new i(j),this._ch=null,this._input=null,this.NESTED_AT_RULE={page:!0,"font-face":!0,keyframes:!0,media:!0,supports:!0,document:!0},this.CONDITIONAL_GROUP_RULE={media:!0,supports:!0,document:!0},this.NON_SEMICOLON_NEWLINE_PROPERTY=["grid-template-areas","grid-template"]}return E.prototype.eatString=function(A){var j="";for(this._ch=this._input.next();this._ch;){if(j+=this._ch,this._ch==="\\")j+=this._input.next();else if(A.indexOf(this._ch)!==-1||this._ch===`
152
+ `);return m.length&&P.push(m),P}function I(m){return m===v.ArrayLiteral}function X(m){return d(m,[v.Expression,v.ForInitializer,v.Conditional])}function U(m,P){for(var G=0;G<m.length;G++){var et=m[G].trim();if(et.charAt(0)!==P)return!1}return!0}function L(m,P){for(var G=0,et=m.length,at;G<et;G++)if(at=m[G],at&&at.indexOf(P)!==0)return!1;return!0}function C(m,P){P=P||{},this._source_text=m||"",this._output=null,this._tokens=null,this._last_last_text=null,this._flags=null,this._previous_flags=null,this._flag_store=null,this._options=new r(P)}C.prototype.create_flags=function(m,P){var G=0;m&&(G=m.indentation_level,!this._output.just_added_newline()&&m.line_indent_level>G&&(G=m.line_indent_level));var et={mode:P,parent:m,last_token:m?m.last_token:new n(_.START_BLOCK,""),last_word:m?m.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,inline_frame:!1,if_block:!1,else_block:!1,class_start_block:!1,do_block:!1,do_while:!1,import_block:!1,in_case_statement:!1,in_case:!1,case_body:!1,case_block:!1,indentation_level:G,alignment:0,line_indent_level:m?m.line_indent_level:G,start_line_index:this._output.get_line_number(),ternary_depth:0};return et},C.prototype._reset=function(m){var P=m.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new i(this._options,P),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(v.BlockStatement);var G=new u(m,this._options);return this._tokens=G.tokenize(),m},C.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var m,P=this._reset(this._source_text),G=this._options.eol;this._options.eol==="auto"&&(G=`
153
+ `,P&&s.lineBreak.test(P||"")&&(G=P.match(s.lineBreak)[0]));for(var et=this._tokens.next();et;)this.handle_token(et),this._last_last_text=this._flags.last_token.text,this._flags.last_token=et,et=this._tokens.next();return m=this._output.get_code(G),m},C.prototype.handle_token=function(m,P){m.type===_.START_EXPR?this.handle_start_expr(m):m.type===_.END_EXPR?this.handle_end_expr(m):m.type===_.START_BLOCK?this.handle_start_block(m):m.type===_.END_BLOCK?this.handle_end_block(m):m.type===_.WORD?this.handle_word(m):m.type===_.RESERVED?this.handle_word(m):m.type===_.SEMICOLON?this.handle_semicolon(m):m.type===_.STRING?this.handle_string(m):m.type===_.EQUALS?this.handle_equals(m):m.type===_.OPERATOR?this.handle_operator(m):m.type===_.COMMA?this.handle_comma(m):m.type===_.BLOCK_COMMENT?this.handle_block_comment(m,P):m.type===_.COMMENT?this.handle_comment(m,P):m.type===_.DOT?this.handle_dot(m):m.type===_.EOF?this.handle_eof(m):m.type===_.UNKNOWN?this.handle_unknown(m,P):this.handle_unknown(m,P)},C.prototype.handle_whitespace_and_comments=function(m,P){var G=m.newlines,et=this._options.keep_array_indentation&&I(this._flags.mode);if(m.comments_before)for(var at=m.comments_before.next();at;)this.handle_whitespace_and_comments(at,P),this.handle_token(at,P),at=m.comments_before.next();if(et)for(var J=0;J<G;J+=1)this.print_newline(J>0,P);else if(this._options.max_preserve_newlines&&G>this._options.max_preserve_newlines&&(G=this._options.max_preserve_newlines),this._options.preserve_newlines&&G>1){this.print_newline(!1,P);for(var M=1;M<G;M+=1)this.print_newline(!0,P)}};var Y=["async","break","continue","return","throw","yield"];return C.prototype.allow_wrap_or_preserved_newline=function(m,P){if(P=P===void 0?!1:P,!this._output.just_added_newline()){var G=this._options.preserve_newlines&&m.newlines||P,et=d(this._flags.last_token.text,h)||d(m.text,h);if(et){var at=d(this._flags.last_token.text,h)&&d(this._options.operator_position,S)||d(m.text,h);G=G&&at}if(G)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(A(this._flags.last_token,Y))return;this._output.set_wrap_point()}}},C.prototype.print_newline=function(m,P){if(!P&&this._flags.last_token.text!==";"&&this._flags.last_token.text!==","&&this._flags.last_token.text!=="="&&(this._flags.last_token.type!==_.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++"))for(var G=this._tokens.peek();this._flags.mode===v.Statement&&!(this._flags.if_block&&E(G,"else"))&&!this._flags.do_block;)this.restore_mode();this._output.add_new_line(m)&&(this._flags.multiline_frame=!0)},C.prototype.print_token_line_indentation=function(m){this._output.just_added_newline()&&(this._options.keep_array_indentation&&m.newlines&&(m.text==="["||I(this._flags.mode))?(this._output.current_line.set_indent(-1),this._output.current_line.push(m.whitespace_before),this._output.space_before_token=!1):this._output.set_indent(this._flags.indentation_level,this._flags.alignment)&&(this._flags.line_indent_level=this._flags.indentation_level))},C.prototype.print_token=function(m){if(this._output.raw){this._output.add_raw_token(m);return}if(this._options.comma_first&&m.previous&&m.previous.type===_.COMMA&&this._output.just_added_newline()&&this._output.previous_line.last()===","){var P=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push(P),this._output.trim(!0),this._output.current_line.pop(),this._output.trim()),this.print_token_line_indentation(m),this._output.add_token(","),this._output.space_before_token=!0}this.print_token_line_indentation(m),this._output.non_breaking_space=!0,this._output.add_token(m.text),this._output.previous_token_wrapped&&(this._flags.multiline_frame=!0)},C.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},C.prototype.deindent=function(){this._flags.indentation_level>0&&(!this._flags.parent||this._flags.indentation_level>this._flags.parent.indentation_level)&&(this._flags.indentation_level-=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},C.prototype.set_mode=function(m){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,m),this._flags=this.create_flags(this._previous_flags,m),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},C.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===v.Statement&&T(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},C.prototype.start_of_object_property=function(){return this._flags.parent.mode===v.ObjectLiteral&&this._flags.mode===v.Statement&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||A(this._flags.last_token,["get","set"]))},C.prototype.start_of_statement=function(m){var P=!1;return P=P||A(this._flags.last_token,["var","let","const"])&&m.type===_.WORD,P=P||E(this._flags.last_token,"do"),P=P||!(this._flags.parent.mode===v.ObjectLiteral&&this._flags.mode===v.Statement)&&A(this._flags.last_token,Y)&&!m.newlines,P=P||E(this._flags.last_token,"else")&&!(E(m,"if")&&!m.comments_before),P=P||this._flags.last_token.type===_.END_EXPR&&(this._previous_flags.mode===v.ForInitializer||this._previous_flags.mode===v.Conditional),P=P||this._flags.last_token.type===_.WORD&&this._flags.mode===v.BlockStatement&&!this._flags.in_case&&!(m.text==="--"||m.text==="++")&&this._last_last_text!=="function"&&m.type!==_.WORD&&m.type!==_.RESERVED,P=P||this._flags.mode===v.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||A(this._flags.last_token,["get","set"])),P?(this.set_mode(v.Statement),this.indent(),this.handle_whitespace_and_comments(m,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(m,A(m,["do","for","if","while"])),!0):!1},C.prototype.handle_start_expr=function(m){this.start_of_statement(m)||this.handle_whitespace_and_comments(m);var P=v.Expression;if(m.text==="["){if(this._flags.last_token.type===_.WORD||this._flags.last_token.text===")"){A(this._flags.last_token,c)&&(this._output.space_before_token=!0),this.print_token(m),this.set_mode(P),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}P=v.ArrayLiteral,I(this._flags.mode)&&(this._flags.last_token.text==="["||this._flags.last_token.text===","&&(this._last_last_text==="]"||this._last_last_text==="}"))&&(this._options.keep_array_indentation||this.print_newline()),d(this._flags.last_token.type,[_.START_EXPR,_.END_EXPR,_.WORD,_.OPERATOR,_.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===_.RESERVED)this._flags.last_token.text==="for"?(this._output.space_before_token=this._options.space_before_conditional,P=v.ForInitializer):d(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,P=v.Conditional):d(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:this._flags.last_token.text==="import"&&m.whitespace_before===""?this._output.space_before_token=!1:(d(this._flags.last_token.text,c)||this._flags.last_token.text==="catch")&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===_.EQUALS||this._flags.last_token.type===_.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(m);else if(this._flags.last_token.type===_.WORD){this._output.space_before_token=!1;var G=this._tokens.peek(-3);if(this._options.space_after_named_function&&G){var et=this._tokens.peek(-4);A(G,["async","function"])||G.text==="*"&&A(et,["async","function"])?this._output.space_before_token=!0:this._flags.mode===v.ObjectLiteral?(G.text==="{"||G.text===","||G.text==="*"&&(et.text==="{"||et.text===","))&&(this._output.space_before_token=!0):this._flags.parent&&this._flags.parent.class_start_block&&(this._output.space_before_token=!0)}}else this.allow_wrap_or_preserved_newline(m);(this._flags.last_token.type===_.RESERVED&&(this._flags.last_word==="function"||this._flags.last_word==="typeof")||this._flags.last_token.text==="*"&&(d(this._last_last_text,["function","yield"])||this._flags.mode===v.ObjectLiteral&&d(this._last_last_text,["{",","])))&&(this._output.space_before_token=this._options.space_after_anon_function)}this._flags.last_token.text===";"||this._flags.last_token.type===_.START_BLOCK?this.print_newline():(this._flags.last_token.type===_.END_EXPR||this._flags.last_token.type===_.START_EXPR||this._flags.last_token.type===_.END_BLOCK||this._flags.last_token.text==="."||this._flags.last_token.type===_.COMMA)&&this.allow_wrap_or_preserved_newline(m,m.newlines),this.print_token(m),this.set_mode(P),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},C.prototype.handle_end_expr=function(m){for(;this._flags.mode===v.Statement;)this.restore_mode();this.handle_whitespace_and_comments(m),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(m,m.text==="]"&&I(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type===_.START_EXPR&&!this._options.space_in_empty_paren?(this._output.trim(),this._output.space_before_token=!1):this._output.space_before_token=!0),this.deindent(),this.print_token(m),this.restore_mode(),T(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===v.Conditional&&(this._previous_flags.mode=v.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},C.prototype.handle_start_block=function(m){this.handle_whitespace_and_comments(m);var P=this._tokens.peek(),G=this._tokens.peek(1);this._flags.last_word==="switch"&&this._flags.last_token.type===_.END_EXPR?(this.set_mode(v.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(v.BlockStatement):G&&(d(G.text,[":",","])&&d(P.type,[_.STRING,_.WORD,_.RESERVED])||d(P.text,["get","set","..."])&&d(G.type,[_.WORD,_.RESERVED]))?d(this._last_last_text,["class","interface"])&&!d(G.text,[":",","])?this.set_mode(v.BlockStatement):this.set_mode(v.ObjectLiteral):this._flags.last_token.type===_.OPERATOR&&this._flags.last_token.text==="=>"?this.set_mode(v.BlockStatement):d(this._flags.last_token.type,[_.EQUALS,_.START_EXPR,_.COMMA,_.OPERATOR])||A(this._flags.last_token,["return","throw","import","default"])?this.set_mode(v.ObjectLiteral):this.set_mode(v.BlockStatement),this._flags.last_token&&A(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0);var et=!P.comments_before&&P.text==="}",at=et&&this._flags.last_word==="function"&&this._flags.last_token.type===_.END_EXPR;if(this._options.brace_preserve_inline){var J=0,M=null;this._flags.inline_frame=!0;do if(J+=1,M=this._tokens.peek(J-1),M.newlines){this._flags.inline_frame=!1;break}while(M.type!==_.EOF&&!(M.type===_.END_BLOCK&&M.opened===m))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&m.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==_.OPERATOR&&(at||this._flags.last_token.type===_.EQUALS||A(this._flags.last_token,j)&&this._flags.last_token.text!=="else")?this._output.space_before_token=!0:this.print_newline(!1,!0):(I(this._previous_flags.mode)&&(this._flags.last_token.type===_.START_EXPR||this._flags.last_token.type===_.COMMA)&&((this._flags.last_token.type===_.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===_.COMMA||this._flags.last_token.type===_.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(m),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==_.OPERATOR&&this._flags.last_token.type!==_.START_EXPR&&(d(this._flags.last_token.type,[_.START_BLOCK,_.SEMICOLON])&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(m),this.indent(),!et&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()},C.prototype.handle_end_block=function(m){for(this.handle_whitespace_and_comments(m);this._flags.mode===v.Statement;)this.restore_mode();var P=this._flags.last_token.type===_.START_BLOCK;this._flags.inline_frame&&!P?this._output.space_before_token=!0:this._options.brace_style==="expand"?P||this.print_newline():P||(I(this._flags.mode)&&this._options.keep_array_indentation?(this._options.keep_array_indentation=!1,this.print_newline(),this._options.keep_array_indentation=!0):this.print_newline()),this.restore_mode(),this.print_token(m)},C.prototype.handle_word=function(m){if(m.type===_.RESERVED){if(d(m.text,["set","get"])&&this._flags.mode!==v.ObjectLiteral)m.type=_.WORD;else if(m.text==="import"&&d(this._tokens.peek().text,["(","."]))m.type=_.WORD;else if(d(m.text,["as","from"])&&!this._flags.import_block)m.type=_.WORD;else if(this._flags.mode===v.ObjectLiteral){var P=this._tokens.peek();P.text===":"&&(m.type=_.WORD)}}if(this.start_of_statement(m)?A(this._flags.last_token,["var","let","const"])&&m.type===_.WORD&&(this._flags.declaration_statement=!0):m.newlines&&!X(this._flags.mode)&&(this._flags.last_token.type!==_.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")&&this._flags.last_token.type!==_.EQUALS&&(this._options.preserve_newlines||!A(this._flags.last_token,["var","let","const","set","get"]))?(this.handle_whitespace_and_comments(m),this.print_newline()):this.handle_whitespace_and_comments(m),this._flags.do_block&&!this._flags.do_while)if(E(m,"while")){this._output.space_before_token=!0,this.print_token(m),this._output.space_before_token=!0,this._flags.do_while=!0;return}else this.print_newline(),this._flags.do_block=!1;if(this._flags.if_block)if(!this._flags.else_block&&E(m,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===v.Statement;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&A(m,["case","default"])){this.print_newline(),!this._flags.case_block&&(this._flags.case_body||this._options.jslint_happy)&&this.deindent(),this._flags.case_body=!1,this.print_token(m),this._flags.in_case=!0;return}if((this._flags.last_token.type===_.COMMA||this._flags.last_token.type===_.START_EXPR||this._flags.last_token.type===_.EQUALS||this._flags.last_token.type===_.OPERATOR)&&!this.start_of_object_property()&&!(d(this._flags.last_token.text,["+","-"])&&this._last_last_text===":"&&this._flags.parent.mode===v.ObjectLiteral)&&this.allow_wrap_or_preserved_newline(m),E(m,"function")){(d(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!(d(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===_.OPERATOR))&&!this._output.just_added_blankline()&&!m.comments_before&&(this.print_newline(),this.print_newline(!0)),this._flags.last_token.type===_.RESERVED||this._flags.last_token.type===_.WORD?A(this._flags.last_token,["get","set","new","export"])||A(this._flags.last_token,Y)?this._output.space_before_token=!0:E(this._flags.last_token,"default")&&this._last_last_text==="export"?this._output.space_before_token=!0:this._flags.last_token.text==="declare"?this._output.space_before_token=!0:this.print_newline():this._flags.last_token.type===_.OPERATOR||this._flags.last_token.text==="="?this._output.space_before_token=!0:!this._flags.multiline_frame&&(X(this._flags.mode)||I(this._flags.mode))||this.print_newline(),this.print_token(m),this._flags.last_word=m.text;return}var G="NONE";if(this._flags.last_token.type===_.END_BLOCK?this._previous_flags.inline_frame?G="SPACE":A(m,["else","catch","finally","from"])?this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&m.newlines?G="NEWLINE":(G="SPACE",this._output.space_before_token=!0):G="NEWLINE":this._flags.last_token.type===_.SEMICOLON&&this._flags.mode===v.BlockStatement?G="NEWLINE":this._flags.last_token.type===_.SEMICOLON&&X(this._flags.mode)?G="SPACE":this._flags.last_token.type===_.STRING?G="NEWLINE":this._flags.last_token.type===_.RESERVED||this._flags.last_token.type===_.WORD||this._flags.last_token.text==="*"&&(d(this._last_last_text,["function","yield"])||this._flags.mode===v.ObjectLiteral&&d(this._last_last_text,["{",","]))?G="SPACE":this._flags.last_token.type===_.START_BLOCK?this._flags.inline_frame?G="SPACE":G="NEWLINE":this._flags.last_token.type===_.END_EXPR&&(this._output.space_before_token=!0,G="NEWLINE"),A(m,c)&&this._flags.last_token.text!==")"&&(this._flags.inline_frame||this._flags.last_token.text==="else"||this._flags.last_token.text==="export"?G="SPACE":G="NEWLINE"),A(m,["else","catch","finally"]))if((!(this._flags.last_token.type===_.END_BLOCK&&this._previous_flags.mode===v.BlockStatement)||this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&m.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var et=this._output.current_line;et.last()!=="}"&&this.print_newline(),this._output.space_before_token=!0}else G==="NEWLINE"?A(this._flags.last_token,j)?this._output.space_before_token=!0:this._flags.last_token.text==="declare"&&A(m,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==_.END_EXPR?(this._flags.last_token.type!==_.START_EXPR||!A(m,["var","let","const"]))&&this._flags.last_token.text!==":"&&(E(m,"if")&&E(m.previous,"else")?this._output.space_before_token=!0:this.print_newline()):A(m,c)&&this._flags.last_token.text!==")"&&this.print_newline():this._flags.multiline_frame&&I(this._flags.mode)&&this._flags.last_token.text===","&&this._last_last_text==="}"?this.print_newline():G==="SPACE"&&(this._output.space_before_token=!0);m.previous&&(m.previous.type===_.WORD||m.previous.type===_.RESERVED)&&(this._output.space_before_token=!0),this.print_token(m),this._flags.last_word=m.text,m.type===_.RESERVED&&(m.text==="do"?this._flags.do_block=!0:m.text==="if"?this._flags.if_block=!0:m.text==="import"?this._flags.import_block=!0:this._flags.import_block&&E(m,"from")&&(this._flags.import_block=!1))},C.prototype.handle_semicolon=function(m){this.start_of_statement(m)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(m);for(var P=this._tokens.peek();this._flags.mode===v.Statement&&!(this._flags.if_block&&E(P,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(m)},C.prototype.handle_string=function(m){m.text.startsWith("`")&&m.newlines===0&&m.whitespace_before===""&&(m.previous.text===")"||this._flags.last_token.type===_.WORD)||(this.start_of_statement(m)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(m),this._flags.last_token.type===_.RESERVED||this._flags.last_token.type===_.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===_.COMMA||this._flags.last_token.type===_.START_EXPR||this._flags.last_token.type===_.EQUALS||this._flags.last_token.type===_.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(m):m.text.startsWith("`")&&this._flags.last_token.type===_.END_EXPR&&(m.previous.text==="]"||m.previous.text===")")&&m.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(m)},C.prototype.handle_equals=function(m){this.start_of_statement(m)||this.handle_whitespace_and_comments(m),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(m),this._output.space_before_token=!0},C.prototype.handle_comma=function(m){this.handle_whitespace_and_comments(m,!0),this.print_token(m),this._output.space_before_token=!0,this._flags.declaration_statement?(X(this._flags.parent.mode)&&(this._flags.declaration_assignment=!1),this._flags.declaration_assignment?(this._flags.declaration_assignment=!1,this.print_newline(!1,!0)):this._options.comma_first&&this.allow_wrap_or_preserved_newline(m)):this._flags.mode===v.ObjectLiteral||this._flags.mode===v.Statement&&this._flags.parent.mode===v.ObjectLiteral?(this._flags.mode===v.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(m)},C.prototype.handle_operator=function(m){var P=m.text==="*"&&(A(this._flags.last_token,["function","yield"])||d(this._flags.last_token.type,[_.START_BLOCK,_.COMMA,_.END_BLOCK,_.SEMICOLON])),G=d(m.text,["-","+"])&&(d(this._flags.last_token.type,[_.START_BLOCK,_.START_EXPR,_.EQUALS,_.OPERATOR])||d(this._flags.last_token.text,c)||this._flags.last_token.text===",");if(!this.start_of_statement(m)){var et=!P;this.handle_whitespace_and_comments(m,et)}if(m.text==="*"&&this._flags.last_token.type===_.DOT){this.print_token(m);return}if(m.text==="::"){this.print_token(m);return}if(d(m.text,["-","+"])&&this.start_of_object_property()){this.print_token(m);return}if(this._flags.last_token.type===_.OPERATOR&&d(this._options.operator_position,S)&&this.allow_wrap_or_preserved_newline(m),m.text===":"&&this._flags.in_case){this.print_token(m),this._flags.in_case=!1,this._flags.case_body=!0,this._tokens.peek().type!==_.START_BLOCK?(this.indent(),this.print_newline(),this._flags.case_block=!1):(this._flags.case_block=!0,this._output.space_before_token=!0);return}var at=!0,J=!0,M=!1;if(m.text===":"?this._flags.ternary_depth===0?at=!1:(this._flags.ternary_depth-=1,M=!0):m.text==="?"&&(this._flags.ternary_depth+=1),!G&&!P&&this._options.preserve_newlines&&d(m.text,h)){var Q=m.text===":",it=Q&&M,vt=Q&&!M;switch(this._options.operator_position){case F.before_newline:this._output.space_before_token=!vt,this.print_token(m),(!Q||it)&&this.allow_wrap_or_preserved_newline(m),this._output.space_before_token=!0;return;case F.after_newline:this._output.space_before_token=!0,!Q||it?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(m):this._output.space_before_token=!1,this.print_token(m),this._output.space_before_token=!0;return;case F.preserve_newline:vt||this.allow_wrap_or_preserved_newline(m),at=!(this._output.just_added_newline()||vt),this._output.space_before_token=at,this.print_token(m),this._output.space_before_token=!0;return}}if(P){this.allow_wrap_or_preserved_newline(m),at=!1;var Ot=this._tokens.peek();J=Ot&&d(Ot.type,[_.WORD,_.RESERVED])}else if(m.text==="...")this.allow_wrap_or_preserved_newline(m),at=this._flags.last_token.type===_.START_BLOCK,J=!1;else if(d(m.text,["--","++","!","~"])||G){if((this._flags.last_token.type===_.COMMA||this._flags.last_token.type===_.START_EXPR)&&this.allow_wrap_or_preserved_newline(m),at=!1,J=!1,m.newlines&&(m.text==="--"||m.text==="++"||m.text==="~")){var N=A(this._flags.last_token,j)&&m.newlines;N&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(N,!0)}this._flags.last_token.text===";"&&X(this._flags.mode)&&(at=!0),this._flags.last_token.type===_.RESERVED?at=!0:this._flags.last_token.type===_.END_EXPR?at=!(this._flags.last_token.text==="]"&&(m.text==="--"||m.text==="++")):this._flags.last_token.type===_.OPERATOR&&(at=d(m.text,["--","-","++","+"])&&d(this._flags.last_token.text,["--","-","++","+"]),d(m.text,["+","-"])&&d(this._flags.last_token.text,["--","++"])&&(J=!0)),(this._flags.mode===v.BlockStatement&&!this._flags.inline_frame||this._flags.mode===v.Statement)&&(this._flags.last_token.text==="{"||this._flags.last_token.text===";")&&this.print_newline()}this._output.space_before_token=this._output.space_before_token||at,this.print_token(m),this._output.space_before_token=J},C.prototype.handle_block_comment=function(m,P){if(this._output.raw){this._output.add_raw_token(m),m.directives&&m.directives.preserve==="end"&&(this._output.raw=this._options.test_output_raw);return}if(m.directives){this.print_newline(!1,P),this.print_token(m),m.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!s.newline.test(m.text)&&!m.newlines){this._output.space_before_token=!0,this.print_token(m),this._output.space_before_token=!0;return}else this.print_block_commment(m,P)},C.prototype.print_block_commment=function(m,P){var G=w(m.text),et,at=!1,J=!1,M=m.whitespace_before,Q=M.length;if(this.print_newline(!1,P),this.print_token_line_indentation(m),this._output.add_token(G[0]),this.print_newline(!1,P),G.length>1){for(G=G.slice(1),at=U(G,"*"),J=L(G,M),at&&(this._flags.alignment=1),et=0;et<G.length;et++)at?(this.print_token_line_indentation(m),this._output.add_token(g(G[et]))):J&&G[et]?(this.print_token_line_indentation(m),this._output.add_token(G[et].substring(Q))):(this._output.current_line.set_indent(-1),this._output.add_token(G[et])),this.print_newline(!1,P);this._flags.alignment=0}},C.prototype.handle_comment=function(m,P){m.newlines?this.print_newline(!1,P):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(m),this.print_newline(!1,P)},C.prototype.handle_dot=function(m){this.start_of_statement(m)||this.handle_whitespace_and_comments(m,!0),this._flags.last_token.text.match("^[0-9]+$")&&(this._output.space_before_token=!0),A(this._flags.last_token,j)?this._output.space_before_token=!1:this.allow_wrap_or_preserved_newline(m,this._flags.last_token.text===")"&&this._options.break_chained_methods),this._options.unindent_chained_methods&&this._output.just_added_newline()&&this.deindent(),this.print_token(m)},C.prototype.handle_unknown=function(m,P){this.print_token(m),m.text[m.text.length-1]===`
154
+ `&&this.print_newline(!1,P)},C.prototype.handle_eof=function(m){for(;this._flags.mode===v.Statement;)this.restore_mode();this.handle_whitespace_and_comments(m)},Gf.Beautifier=C,Gf}var jy;function ZL(){if(jy)return cu.exports;jy=1;var i=QL().Beautifier,n=Sv().Options;function s(r,u){var c=new i(r,u);return c.beautify()}return cu.exports=s,cu.exports.defaultOptions=function(){return new n},cu.exports}var du={exports:{}},Wf={},Jf={},Py;function Ov(){if(Py)return Jf;Py=1;var i=Xh().Options;function n(s){i.call(this,s,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var r=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||r;var u=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var c=0;c<u.length;c++)u[c]!=="expand"?this.brace_style="collapse":this.brace_style=u[c]}return n.prototype=new i,Jf.Options=n,Jf}var Gy;function WL(){if(Gy)return Wf;Gy=1;var i=Ov().Options,n=Fh().Output,s=Qh().InputScanner,r=Zh().Directives,u=new r(/\/\*/,/\*\//),c=/\r\n|[\r\n]/,h=/\r\n|[\r\n]/g,_=/\s/,d=/(?:\s|\n)+/g,g=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,b=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function E(A,j){this._source_text=A||"",this._options=new i(j),this._ch=null,this._input=null,this.NESTED_AT_RULE={page:!0,"font-face":!0,keyframes:!0,media:!0,supports:!0,document:!0},this.CONDITIONAL_GROUP_RULE={media:!0,supports:!0,document:!0},this.NON_SEMICOLON_NEWLINE_PROPERTY=["grid-template-areas","grid-template"]}return E.prototype.eatString=function(A){var j="";for(this._ch=this._input.next();this._ch;){if(j+=this._ch,this._ch==="\\")j+=this._input.next();else if(A.indexOf(this._ch)!==-1||this._ch===`
155
155
  `)break;this._ch=this._input.next()}return j},E.prototype.eatWhitespace=function(A){for(var j=_.test(this._input.peek()),H=0;_.test(this._input.peek());)this._ch=this._input.next(),A&&this._ch===`
156
156
  `&&(H===0||H<this._options.max_preserve_newlines)&&(H++,this._output.add_new_line(!0));return j},E.prototype.foundNestedPseudoClass=function(){for(var A=0,j=1,H=this._input.peek(j);H;){if(H==="{")return!0;if(H==="(")A+=1;else if(H===")"){if(A===0)return!1;A-=1}else if(H===";"||H==="}")return!1;j++,H=this._input.peek(j)}return!1},E.prototype.print_string=function(A){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(A)},E.prototype.preserveSingleSpace=function(A){A&&(this._output.space_before_token=!0)},E.prototype.indent=function(){this._indentLevel++},E.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},E.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var A=this._source_text,j=this._options.eol;j==="auto"&&(j=`
157
157
  `,A&&c.test(A||"")&&(j=A.match(c)[0])),A=A.replace(h,`
158
- `);var H=A.match(/^[\t ]*/)[0];this._output=new n(this._options,H),this._input=new s(A),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var X=0,S=!1,v=!1,T=!1,w=!1,I=!1,F=this._ch,U=!1,L,C,Y;L=this._input.read(d),C=L!=="",Y=F,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),F=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var m=this._input.read(g),P=u.get_directives(m);P&&P.ignore==="start"&&(m+=u.readIgnored(this._input)),this.print_string(m),this.eatWhitespace(!0),this._output.add_new_line()}else if(this._ch==="/"&&this._input.peek()==="/")this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(b)),this.eatWhitespace(!0);else if(this._ch==="$"){this.preserveSingleSpace(C),this.print_string(this._ch);var G=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);G.match(/[ :]$/)&&(G=this.eatString(": ").replace(/\s+$/,""),this.print_string(G),this._output.space_before_token=!0),X===0&&G.indexOf(":")!==-1&&(v=!0,this.indent())}else if(this._ch==="@")if(this.preserveSingleSpace(C),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var et=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);et.match(/[ :]$/)&&(et=this.eatString(": ").replace(/\s+$/,""),this.print_string(et),this._output.space_before_token=!0),X===0&&et.indexOf(":")!==-1?(v=!0,this.indent()):et in this.NESTED_AT_RULE?(this._nestedLevel+=1,et in this.CONDITIONAL_GROUP_RULE&&(T=!0)):X===0&&!v&&(w=!0)}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace(C),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")v&&(v=!1,this.outdent()),w=!1,T?(T=!1,S=this._indentLevel>=this._nestedLevel):S=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&S&&this._output.previous_line&&this._output.previous_line.item(-1)!=="{"&&this._output.ensure_empty_line_above("/",","),this._output.space_before_token=!0,this._options.brace_style==="expand"?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):(Y==="("?this._output.space_before_token=!1:Y!==","&&this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line();else if(this._ch==="}")this.outdent(),this._output.add_new_line(),Y==="{"&&this._output.trim(!0),v&&(this.outdent(),v=!1),this.print_string(this._ch),S=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&this._input.peek()!=="}"&&this._output.add_new_line(!0),this._input.peek()===")"&&(this._output.trim(!0),this._options.brace_style==="expand"&&this._output.add_new_line(!0));else if(this._ch===":"){for(var at=0;at<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;at++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[at])){U=!0;break}(S||T)&&!(this._input.lookBack("&")||this.foundNestedPseudoClass())&&!this._input.lookBack("(")&&!w&&X===0?(this.print_string(":"),v||(v=!0,this._output.space_before_token=!0,this.eatWhitespace(!0),this.indent())):(this._input.lookBack(" ")&&(this._output.space_before_token=!0),this._input.peek()===":"?(this._ch=this._input.next(),this.print_string("::")):this.print_string(":"))}else if(this._ch==='"'||this._ch==="'"){var J=Y==='"'||Y==="'";this.preserveSingleSpace(J||C),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(this._ch===";")U=!1,X===0?(v&&(this.outdent(),v=!1),w=!1,this.print_string(this._ch),this.eatWhitespace(!0),this._input.peek()!=="/"&&this._output.add_new_line()):(this.print_string(this._ch),this.eatWhitespace(!0),this._output.space_before_token=!0);else if(this._ch==="(")if(this._input.lookBack("url"))this.print_string(this._ch),this.eatWhitespace(),X++,this.indent(),this._ch=this._input.next(),this._ch===")"||this._ch==='"'||this._ch==="'"?this._input.back():this._ch&&(this.print_string(this._ch+this.eatString(")")),X&&(X--,this.outdent()));else{var M=!1;this._input.lookBack("with")&&(M=!0),this.preserveSingleSpace(C||M),this.print_string(this._ch),v&&Y==="$"&&this._options.selector_separator_newline?(this._output.add_new_line(),I=!0):(this.eatWhitespace(),X++,this.indent())}else if(this._ch===")")X&&(X--,this.outdent()),I&&this._input.peek()===";"&&this._options.selector_separator_newline&&(I=!1,this.outdent(),this._output.add_new_line()),this.print_string(this._ch);else if(this._ch===",")this.print_string(this._ch),this.eatWhitespace(!0),this._options.selector_separator_newline&&(!v||I)&&X===0&&!w?this._output.add_new_line():this._output.space_before_token=!0;else if((this._ch===">"||this._ch==="+"||this._ch==="~")&&!v&&X===0)this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&_.test(this._ch)&&(this._ch=""));else if(this._ch==="]")this.print_string(this._ch);else if(this._ch==="[")this.preserveSingleSpace(C),this.print_string(this._ch);else if(this._ch==="=")this.eatWhitespace(),this.print_string("="),_.test(this._ch)&&(this._ch="");else if(this._ch==="!"&&!this._input.lookBack("\\"))this._output.space_before_token=!0,this.print_string(this._ch);else{var Q=Y==='"'||Y==="'";this.preserveSingleSpace(Q||C),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===`
159
- `&&U&&this._output.add_new_line()}var it=this._output.get_code(j);return it},Zf.Beautifier=E,Zf}var Hy;function QL(){if(Hy)return hu.exports;Hy=1;var i=FL().Beautifier,n=Nv().Options;function s(r,u){var c=new i(r,u);return c.beautify()}return hu.exports=s,hu.exports.defaultOptions=function(){return new n},hu.exports}var du={exports:{}},Jf={},th={},$y;function Rv(){if($y)return th;$y=1;var i=Qh().Options;function n(s){i.call(this,s,"html"),this.templating.length===1&&this.templating[0]==="auto"&&(this.templating=["django","erb","handlebars","php"]),this.indent_inner_html=this._get_boolean("indent_inner_html"),this.indent_body_inner_html=this._get_boolean("indent_body_inner_html",!0),this.indent_head_inner_html=this._get_boolean("indent_head_inner_html",!0),this.indent_handlebars=this._get_boolean("indent_handlebars",!0),this.wrap_attributes=this._get_selection("wrap_attributes",["auto","force","force-aligned","force-expand-multiline","aligned-multiple","preserve","preserve-aligned"]),this.wrap_attributes_min_attrs=this._get_number("wrap_attributes_min_attrs",2),this.wrap_attributes_indent_size=this._get_number("wrap_attributes_indent_size",this.indent_size),this.extra_liners=this._get_array("extra_liners",["head","body","/html"]),this.inline=this._get_array("inline",["a","abbr","area","audio","b","bdi","bdo","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","keygen","label","map","mark","math","meter","noscript","object","output","progress","q","ruby","s","samp","select","small","span","strong","sub","sup","svg","template","textarea","time","u","var","video","wbr","text","acronym","big","strike","tt"]),this.inline_custom_elements=this._get_boolean("inline_custom_elements",!0),this.void_elements=this._get_array("void_elements",["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr","!doctype","?xml","basefont","isindex"]),this.unformatted=this._get_array("unformatted",[]),this.content_unformatted=this._get_array("content_unformatted",["pre","textarea"]),this.unformatted_content_delimiter=this._get_characters("unformatted_content_delimiter"),this.indent_scripts=this._get_selection("indent_scripts",["normal","keep","separate"])}return n.prototype=new i,th.Options=n,th}var _u={},Ky;function Vy(){if(Ky)return _u;Ky=1;var i=zu().Tokenizer,n=zu().TOKEN,s=Wh().Directives,r=Ov().TemplatablePattern,u=no().Pattern,c={TAG_OPEN:"TK_TAG_OPEN",TAG_CLOSE:"TK_TAG_CLOSE",CONTROL_FLOW_OPEN:"TK_CONTROL_FLOW_OPEN",CONTROL_FLOW_CLOSE:"TK_CONTROL_FLOW_CLOSE",ATTRIBUTE:"TK_ATTRIBUTE",EQUALS:"TK_EQUALS",VALUE:"TK_VALUE",COMMENT:"TK_COMMENT",TEXT:"TK_TEXT",UNKNOWN:"TK_UNKNOWN",START:n.START,RAW:n.RAW,EOF:n.EOF},h=new s(/<\!--/,/-->/),_=function(d,g){i.call(this,d,g),this._current_tag_name="";var b=new r(this._input).read_options(this._options),E=new u(this._input);if(this.__patterns={word:b.until(/[\n\r\t <]/),word_control_flow_close_excluded:b.until(/[\n\r\t <}]/),single_quote:b.until_after(/'/),double_quote:b.until_after(/"/),attribute:b.until(/[\n\r\t =>]|\/>/),element_name:b.until(/[\n\r\t >\/]/),angular_control_flow_start:E.matching(/\@[a-zA-Z]+[^({]*[({]/),handlebars_comment:E.starting_with(/{{!--/).until_after(/--}}/),handlebars:E.starting_with(/{{/).until_after(/}}/),handlebars_open:E.until(/[\n\r\t }]/),handlebars_raw_close:E.until(/}}/),comment:E.starting_with(/<!--/).until_after(/-->/),cdata:E.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:E.starting_with(/<!\[/).until_after(/]>/),processing:E.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars&&(this.__patterns.word=this.__patterns.word.exclude("handlebars"),this.__patterns.word_control_flow_close_excluded=this.__patterns.word_control_flow_close_excluded.exclude("handlebars")),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter){var A=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=E.matching(A).until_after(A)}};return _.prototype=new i,_.prototype._is_comment=function(d){return!1},_.prototype._is_opening=function(d){return d.type===c.TAG_OPEN||d.type===c.CONTROL_FLOW_OPEN},_.prototype._is_closing=function(d,g){return d.type===c.TAG_CLOSE&&g&&((d.text===">"||d.text==="/>")&&g.text[0]==="<"||d.text==="}}"&&g.text[0]==="{"&&g.text[1]==="{")||d.type===c.CONTROL_FLOW_CLOSE&&d.text==="}"&&g.text.endsWith("{")},_.prototype._reset=function(){this._current_tag_name=""},_.prototype._get_next_token=function(d,g){var b=null;this._readWhitespace();var E=this._input.peek();return E===null?this._create_token(c.EOF,""):(b=b||this._read_open_handlebars(E,g),b=b||this._read_attribute(E,d,g),b=b||this._read_close(E,g),b=b||this._read_script_and_style(E,d),b=b||this._read_control_flows(E,g),b=b||this._read_raw_content(E,d,g),b=b||this._read_content_word(E,g),b=b||this._read_comment_or_cdata(E),b=b||this._read_processing(E),b=b||this._read_open(E,g),b=b||this._create_token(c.UNKNOWN,this._input.next()),b)},_.prototype._read_comment_or_cdata=function(d){var g=null,b=null,E=null;if(d==="<"){var A=this._input.peek(1);A==="!"&&(b=this.__patterns.comment.read(),b?(E=h.get_directives(b),E&&E.ignore==="start"&&(b+=h.readIgnored(this._input))):b=this.__patterns.cdata.read()),b&&(g=this._create_token(c.COMMENT,b),g.directives=E)}return g},_.prototype._read_processing=function(d){var g=null,b=null,E=null;if(d==="<"){var A=this._input.peek(1);(A==="!"||A==="?")&&(b=this.__patterns.conditional_comment.read(),b=b||this.__patterns.processing.read()),b&&(g=this._create_token(c.COMMENT,b),g.directives=E)}return g},_.prototype._read_open=function(d,g){var b=null,E=null;return(!g||g.type===c.CONTROL_FLOW_OPEN)&&d==="<"&&(b=this._input.next(),this._input.peek()==="/"&&(b+=this._input.next()),b+=this.__patterns.element_name.read(),E=this._create_token(c.TAG_OPEN,b)),E},_.prototype._read_open_handlebars=function(d,g){var b=null,E=null;return(!g||g.type===c.CONTROL_FLOW_OPEN)&&(this._options.templating.includes("angular")||this._options.indent_handlebars)&&d==="{"&&this._input.peek(1)==="{"&&(this._options.indent_handlebars&&this._input.peek(2)==="!"?(b=this.__patterns.handlebars_comment.read(),b=b||this.__patterns.handlebars.read(),E=this._create_token(c.COMMENT,b)):(b=this.__patterns.handlebars_open.read(),E=this._create_token(c.TAG_OPEN,b))),E},_.prototype._read_control_flows=function(d,g){var b="",E=null;if(!this._options.templating.includes("angular"))return E;if(d==="@"){if(b=this.__patterns.angular_control_flow_start.read(),b==="")return E;for(var A=b.endsWith("(")?1:0,j=0;!(b.endsWith("{")&&A===j);){var H=this._input.next();if(H===null)break;H==="("?A++:H===")"&&j++,b+=H}E=this._create_token(c.CONTROL_FLOW_OPEN,b)}else d==="}"&&g&&g.type===c.CONTROL_FLOW_OPEN&&(b=this._input.next(),E=this._create_token(c.CONTROL_FLOW_CLOSE,b));return E},_.prototype._read_close=function(d,g){var b=null,E=null;return g&&g.type===c.TAG_OPEN&&(g.text[0]==="<"&&(d===">"||d==="/"&&this._input.peek(1)===">")?(b=this._input.next(),d==="/"&&(b+=this._input.next()),E=this._create_token(c.TAG_CLOSE,b)):g.text[0]==="{"&&d==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),E=this._create_token(c.TAG_CLOSE,"}}"))),E},_.prototype._read_attribute=function(d,g,b){var E=null,A="";if(b&&b.text[0]==="<")if(d==="=")E=this._create_token(c.EQUALS,this._input.next());else if(d==='"'||d==="'"){var j=this._input.next();d==='"'?j+=this.__patterns.double_quote.read():j+=this.__patterns.single_quote.read(),E=this._create_token(c.VALUE,j)}else A=this.__patterns.attribute.read(),A&&(g.type===c.EQUALS?E=this._create_token(c.VALUE,A):E=this._create_token(c.ATTRIBUTE,A));return E},_.prototype._is_content_unformatted=function(d){return this._options.void_elements.indexOf(d)===-1&&(this._options.content_unformatted.indexOf(d)!==-1||this._options.unformatted.indexOf(d)!==-1)},_.prototype._read_raw_content=function(d,g,b){var E="";if(b&&b.text[0]==="{")E=this.__patterns.handlebars_raw_close.read();else if(g.type===c.TAG_CLOSE&&g.opened.text[0]==="<"&&g.text[0]!=="/"){var A=g.opened.text.substr(1).toLowerCase();this._is_content_unformatted(A)&&(E=this._input.readUntil(new RegExp("</"+A+"[\\n\\r\\t ]*?>","ig")))}return E?this._create_token(c.TEXT,E):null},_.prototype._read_script_and_style=function(d,g){if(g.type===c.TAG_CLOSE&&g.opened.text[0]==="<"&&g.text[0]!=="/"){var b=g.opened.text.substr(1).toLowerCase();if(b==="script"||b==="style"){var E=this._read_comment_or_cdata(d);if(E)return E.type=c.TEXT,E;var A=this._input.readUntil(new RegExp("</"+b+"[\\n\\r\\t ]*?>","ig"));if(A)return this._create_token(c.TEXT,A)}}return null},_.prototype._read_content_word=function(d,g){var b="";return this._options.unformatted_content_delimiter&&d===this._options.unformatted_content_delimiter[0]&&(b=this.__patterns.unformatted_content_delimiter.read()),b||(b=g&&g.type===c.CONTROL_FLOW_OPEN?this.__patterns.word_control_flow_close_excluded.read():this.__patterns.word.read()),b?this._create_token(c.TEXT,b):null},_u.Tokenizer=_,_u.TOKEN=c,_u}var Yy;function ZL(){if(Yy)return Jf;Yy=1;var i=Rv().Options,n=Fh().Output,s=Vy().Tokenizer,r=Vy().TOKEN,u=/\r\n|[\r\n]/,c=/\r\n|[\r\n]/g,h=function(S,v){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=S.max_preserve_newlines,this.preserve_newlines=S.preserve_newlines,this._output=new n(S,v)};h.prototype.current_line_has_match=function(S){return this._output.current_line.has_match(S)},h.prototype.set_space_before_token=function(S,v){this._output.space_before_token=S,this._output.non_breaking_space=v},h.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},h.prototype.add_raw_token=function(S){this._output.add_raw_token(S)},h.prototype.print_preserved_newlines=function(S){var v=0;S.type!==r.TEXT&&S.previous.type!==r.TEXT&&(v=S.newlines?1:0),this.preserve_newlines&&(v=S.newlines<this.max_preserve_newlines+1?S.newlines:this.max_preserve_newlines+1);for(var T=0;T<v;T++)this.print_newline(T>0);return v!==0},h.prototype.traverse_whitespace=function(S){return S.whitespace_before||S.newlines?(this.print_preserved_newlines(S)||(this._output.space_before_token=!0),!0):!1},h.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},h.prototype.print_newline=function(S){this._output.add_new_line(S)},h.prototype.print_token=function(S){S.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(S.text))},h.prototype.indent=function(){this.indent_level++},h.prototype.deindent=function(){this.indent_level>0&&(this.indent_level--,this._output.set_indent(this.indent_level,this.alignment_size))},h.prototype.get_full_indent=function(S){return S=this.indent_level+(S||0),S<1?"":this._output.get_indent_string(S)};var _=function(S){for(var v=null,T=S.next;T.type!==r.EOF&&S.closed!==T;){if(T.type===r.ATTRIBUTE&&T.text==="type"){T.next&&T.next.type===r.EQUALS&&T.next.next&&T.next.next.type===r.VALUE&&(v=T.next.next.text);break}T=T.next}return v},d=function(S,v){var T=null,w=null;return v.closed?(S==="script"?T="text/javascript":S==="style"&&(T="text/css"),T=_(v)||T,T.search("text/css")>-1?w="css":T.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?w="javascript":T.search(/(text|application|dojo)\/(x-)?(html)/)>-1?w="html":T.search(/test\/null/)>-1&&(w="null"),w):null};function g(S,v){return v.indexOf(S)!==-1}function b(S,v,T){this.parent=S||null,this.tag=v?v.tag_name:"",this.indent_level=T||0,this.parser_token=v||null}function E(S){this._printer=S,this._current_frame=null}E.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},E.prototype.record_tag=function(S){var v=new b(this._current_frame,S,this._printer.indent_level);this._current_frame=v},E.prototype._try_pop_frame=function(S){var v=null;return S&&(v=S.parser_token,this._printer.indent_level=S.indent_level,this._current_frame=S.parent),v},E.prototype._get_frame=function(S,v){for(var T=this._current_frame;T&&S.indexOf(T.tag)===-1;){if(v&&v.indexOf(T.tag)!==-1){T=null;break}T=T.parent}return T},E.prototype.try_pop=function(S,v){var T=this._get_frame([S],v);return this._try_pop_frame(T)},E.prototype.indent_to_tag=function(S){var v=this._get_frame(S);v&&(this._printer.indent_level=v.indent_level)};function A(S,v,T,w){this._source_text=S||"",v=v||{},this._js_beautify=T,this._css_beautify=w,this._tag_stack=null;var I=new i(v,"html");this._options=I,this._is_wrap_attributes_force=this._options.wrap_attributes.substr(0,5)==="force",this._is_wrap_attributes_force_expand_multiline=this._options.wrap_attributes==="force-expand-multiline",this._is_wrap_attributes_force_aligned=this._options.wrap_attributes==="force-aligned",this._is_wrap_attributes_aligned_multiple=this._options.wrap_attributes==="aligned-multiple",this._is_wrap_attributes_preserve=this._options.wrap_attributes.substr(0,8)==="preserve",this._is_wrap_attributes_preserve_aligned=this._options.wrap_attributes==="preserve-aligned"}A.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var S=this._source_text,v=this._options.eol;this._options.eol==="auto"&&(v=`
158
+ `);var H=A.match(/^[\t ]*/)[0];this._output=new n(this._options,H),this._input=new s(A),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var F=0,S=!1,v=!1,T=!1,w=!1,I=!1,X=this._ch,U=!1,L,C,Y;L=this._input.read(d),C=L!=="",Y=X,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),X=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var m=this._input.read(g),P=u.get_directives(m);P&&P.ignore==="start"&&(m+=u.readIgnored(this._input)),this.print_string(m),this.eatWhitespace(!0),this._output.add_new_line()}else if(this._ch==="/"&&this._input.peek()==="/")this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(b)),this.eatWhitespace(!0);else if(this._ch==="$"){this.preserveSingleSpace(C),this.print_string(this._ch);var G=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);G.match(/[ :]$/)&&(G=this.eatString(": ").replace(/\s+$/,""),this.print_string(G),this._output.space_before_token=!0),F===0&&G.indexOf(":")!==-1&&(v=!0,this.indent())}else if(this._ch==="@")if(this.preserveSingleSpace(C),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var et=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);et.match(/[ :]$/)&&(et=this.eatString(": ").replace(/\s+$/,""),this.print_string(et),this._output.space_before_token=!0),F===0&&et.indexOf(":")!==-1?(v=!0,this.indent()):et in this.NESTED_AT_RULE?(this._nestedLevel+=1,et in this.CONDITIONAL_GROUP_RULE&&(T=!0)):F===0&&!v&&(w=!0)}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace(C),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")v&&(v=!1,this.outdent()),w=!1,T?(T=!1,S=this._indentLevel>=this._nestedLevel):S=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&S&&this._output.previous_line&&this._output.previous_line.item(-1)!=="{"&&this._output.ensure_empty_line_above("/",","),this._output.space_before_token=!0,this._options.brace_style==="expand"?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):(Y==="("?this._output.space_before_token=!1:Y!==","&&this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line();else if(this._ch==="}")this.outdent(),this._output.add_new_line(),Y==="{"&&this._output.trim(!0),v&&(this.outdent(),v=!1),this.print_string(this._ch),S=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&this._input.peek()!=="}"&&this._output.add_new_line(!0),this._input.peek()===")"&&(this._output.trim(!0),this._options.brace_style==="expand"&&this._output.add_new_line(!0));else if(this._ch===":"){for(var at=0;at<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;at++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[at])){U=!0;break}(S||T)&&!(this._input.lookBack("&")||this.foundNestedPseudoClass())&&!this._input.lookBack("(")&&!w&&F===0?(this.print_string(":"),v||(v=!0,this._output.space_before_token=!0,this.eatWhitespace(!0),this.indent())):(this._input.lookBack(" ")&&(this._output.space_before_token=!0),this._input.peek()===":"?(this._ch=this._input.next(),this.print_string("::")):this.print_string(":"))}else if(this._ch==='"'||this._ch==="'"){var J=Y==='"'||Y==="'";this.preserveSingleSpace(J||C),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(this._ch===";")U=!1,F===0?(v&&(this.outdent(),v=!1),w=!1,this.print_string(this._ch),this.eatWhitespace(!0),this._input.peek()!=="/"&&this._output.add_new_line()):(this.print_string(this._ch),this.eatWhitespace(!0),this._output.space_before_token=!0);else if(this._ch==="(")if(this._input.lookBack("url"))this.print_string(this._ch),this.eatWhitespace(),F++,this.indent(),this._ch=this._input.next(),this._ch===")"||this._ch==='"'||this._ch==="'"?this._input.back():this._ch&&(this.print_string(this._ch+this.eatString(")")),F&&(F--,this.outdent()));else{var M=!1;this._input.lookBack("with")&&(M=!0),this.preserveSingleSpace(C||M),this.print_string(this._ch),v&&Y==="$"&&this._options.selector_separator_newline?(this._output.add_new_line(),I=!0):(this.eatWhitespace(),F++,this.indent())}else if(this._ch===")")F&&(F--,this.outdent()),I&&this._input.peek()===";"&&this._options.selector_separator_newline&&(I=!1,this.outdent(),this._output.add_new_line()),this.print_string(this._ch);else if(this._ch===",")this.print_string(this._ch),this.eatWhitespace(!0),this._options.selector_separator_newline&&(!v||I)&&F===0&&!w?this._output.add_new_line():this._output.space_before_token=!0;else if((this._ch===">"||this._ch==="+"||this._ch==="~")&&!v&&F===0)this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&_.test(this._ch)&&(this._ch=""));else if(this._ch==="]")this.print_string(this._ch);else if(this._ch==="[")this.preserveSingleSpace(C),this.print_string(this._ch);else if(this._ch==="=")this.eatWhitespace(),this.print_string("="),_.test(this._ch)&&(this._ch="");else if(this._ch==="!"&&!this._input.lookBack("\\"))this._output.space_before_token=!0,this.print_string(this._ch);else{var Q=Y==='"'||Y==="'";this.preserveSingleSpace(Q||C),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===`
159
+ `&&U&&this._output.add_new_line()}var it=this._output.get_code(j);return it},Wf.Beautifier=E,Wf}var qy;function JL(){if(qy)return du.exports;qy=1;var i=WL().Beautifier,n=Ov().Options;function s(r,u){var c=new i(r,u);return c.beautify()}return du.exports=s,du.exports.defaultOptions=function(){return new n},du.exports}var _u={exports:{}},th={},eh={},Hy;function Nv(){if(Hy)return eh;Hy=1;var i=Xh().Options;function n(s){i.call(this,s,"html"),this.templating.length===1&&this.templating[0]==="auto"&&(this.templating=["django","erb","handlebars","php"]),this.indent_inner_html=this._get_boolean("indent_inner_html"),this.indent_body_inner_html=this._get_boolean("indent_body_inner_html",!0),this.indent_head_inner_html=this._get_boolean("indent_head_inner_html",!0),this.indent_handlebars=this._get_boolean("indent_handlebars",!0),this.wrap_attributes=this._get_selection("wrap_attributes",["auto","force","force-aligned","force-expand-multiline","aligned-multiple","preserve","preserve-aligned"]),this.wrap_attributes_min_attrs=this._get_number("wrap_attributes_min_attrs",2),this.wrap_attributes_indent_size=this._get_number("wrap_attributes_indent_size",this.indent_size),this.extra_liners=this._get_array("extra_liners",["head","body","/html"]),this.inline=this._get_array("inline",["a","abbr","area","audio","b","bdi","bdo","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","keygen","label","map","mark","math","meter","noscript","object","output","progress","q","ruby","s","samp","select","small","span","strong","sub","sup","svg","template","textarea","time","u","var","video","wbr","text","acronym","big","strike","tt"]),this.inline_custom_elements=this._get_boolean("inline_custom_elements",!0),this.void_elements=this._get_array("void_elements",["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr","!doctype","?xml","basefont","isindex"]),this.unformatted=this._get_array("unformatted",[]),this.content_unformatted=this._get_array("content_unformatted",["pre","textarea"]),this.unformatted_content_delimiter=this._get_characters("unformatted_content_delimiter"),this.indent_scripts=this._get_selection("indent_scripts",["normal","keep","separate"])}return n.prototype=new i,eh.Options=n,eh}var pu={},$y;function Ky(){if($y)return pu;$y=1;var i=Bu().Tokenizer,n=Bu().TOKEN,s=Zh().Directives,r=Av().TemplatablePattern,u=io().Pattern,c={TAG_OPEN:"TK_TAG_OPEN",TAG_CLOSE:"TK_TAG_CLOSE",CONTROL_FLOW_OPEN:"TK_CONTROL_FLOW_OPEN",CONTROL_FLOW_CLOSE:"TK_CONTROL_FLOW_CLOSE",ATTRIBUTE:"TK_ATTRIBUTE",EQUALS:"TK_EQUALS",VALUE:"TK_VALUE",COMMENT:"TK_COMMENT",TEXT:"TK_TEXT",UNKNOWN:"TK_UNKNOWN",START:n.START,RAW:n.RAW,EOF:n.EOF},h=new s(/<\!--/,/-->/),_=function(d,g){i.call(this,d,g),this._current_tag_name="";var b=new r(this._input).read_options(this._options),E=new u(this._input);if(this.__patterns={word:b.until(/[\n\r\t <]/),word_control_flow_close_excluded:b.until(/[\n\r\t <}]/),single_quote:b.until_after(/'/),double_quote:b.until_after(/"/),attribute:b.until(/[\n\r\t =>]|\/>/),element_name:b.until(/[\n\r\t >\/]/),angular_control_flow_start:E.matching(/\@[a-zA-Z]+[^({]*[({]/),handlebars_comment:E.starting_with(/{{!--/).until_after(/--}}/),handlebars:E.starting_with(/{{/).until_after(/}}/),handlebars_open:E.until(/[\n\r\t }]/),handlebars_raw_close:E.until(/}}/),comment:E.starting_with(/<!--/).until_after(/-->/),cdata:E.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:E.starting_with(/<!\[/).until_after(/]>/),processing:E.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars&&(this.__patterns.word=this.__patterns.word.exclude("handlebars"),this.__patterns.word_control_flow_close_excluded=this.__patterns.word_control_flow_close_excluded.exclude("handlebars")),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter){var A=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=E.matching(A).until_after(A)}};return _.prototype=new i,_.prototype._is_comment=function(d){return!1},_.prototype._is_opening=function(d){return d.type===c.TAG_OPEN||d.type===c.CONTROL_FLOW_OPEN},_.prototype._is_closing=function(d,g){return d.type===c.TAG_CLOSE&&g&&((d.text===">"||d.text==="/>")&&g.text[0]==="<"||d.text==="}}"&&g.text[0]==="{"&&g.text[1]==="{")||d.type===c.CONTROL_FLOW_CLOSE&&d.text==="}"&&g.text.endsWith("{")},_.prototype._reset=function(){this._current_tag_name=""},_.prototype._get_next_token=function(d,g){var b=null;this._readWhitespace();var E=this._input.peek();return E===null?this._create_token(c.EOF,""):(b=b||this._read_open_handlebars(E,g),b=b||this._read_attribute(E,d,g),b=b||this._read_close(E,g),b=b||this._read_script_and_style(E,d),b=b||this._read_control_flows(E,g),b=b||this._read_raw_content(E,d,g),b=b||this._read_content_word(E,g),b=b||this._read_comment_or_cdata(E),b=b||this._read_processing(E),b=b||this._read_open(E,g),b=b||this._create_token(c.UNKNOWN,this._input.next()),b)},_.prototype._read_comment_or_cdata=function(d){var g=null,b=null,E=null;if(d==="<"){var A=this._input.peek(1);A==="!"&&(b=this.__patterns.comment.read(),b?(E=h.get_directives(b),E&&E.ignore==="start"&&(b+=h.readIgnored(this._input))):b=this.__patterns.cdata.read()),b&&(g=this._create_token(c.COMMENT,b),g.directives=E)}return g},_.prototype._read_processing=function(d){var g=null,b=null,E=null;if(d==="<"){var A=this._input.peek(1);(A==="!"||A==="?")&&(b=this.__patterns.conditional_comment.read(),b=b||this.__patterns.processing.read()),b&&(g=this._create_token(c.COMMENT,b),g.directives=E)}return g},_.prototype._read_open=function(d,g){var b=null,E=null;return(!g||g.type===c.CONTROL_FLOW_OPEN)&&d==="<"&&(b=this._input.next(),this._input.peek()==="/"&&(b+=this._input.next()),b+=this.__patterns.element_name.read(),E=this._create_token(c.TAG_OPEN,b)),E},_.prototype._read_open_handlebars=function(d,g){var b=null,E=null;return(!g||g.type===c.CONTROL_FLOW_OPEN)&&(this._options.templating.includes("angular")||this._options.indent_handlebars)&&d==="{"&&this._input.peek(1)==="{"&&(this._options.indent_handlebars&&this._input.peek(2)==="!"?(b=this.__patterns.handlebars_comment.read(),b=b||this.__patterns.handlebars.read(),E=this._create_token(c.COMMENT,b)):(b=this.__patterns.handlebars_open.read(),E=this._create_token(c.TAG_OPEN,b))),E},_.prototype._read_control_flows=function(d,g){var b="",E=null;if(!this._options.templating.includes("angular"))return E;if(d==="@"){if(b=this.__patterns.angular_control_flow_start.read(),b==="")return E;for(var A=b.endsWith("(")?1:0,j=0;!(b.endsWith("{")&&A===j);){var H=this._input.next();if(H===null)break;H==="("?A++:H===")"&&j++,b+=H}E=this._create_token(c.CONTROL_FLOW_OPEN,b)}else d==="}"&&g&&g.type===c.CONTROL_FLOW_OPEN&&(b=this._input.next(),E=this._create_token(c.CONTROL_FLOW_CLOSE,b));return E},_.prototype._read_close=function(d,g){var b=null,E=null;return g&&g.type===c.TAG_OPEN&&(g.text[0]==="<"&&(d===">"||d==="/"&&this._input.peek(1)===">")?(b=this._input.next(),d==="/"&&(b+=this._input.next()),E=this._create_token(c.TAG_CLOSE,b)):g.text[0]==="{"&&d==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),E=this._create_token(c.TAG_CLOSE,"}}"))),E},_.prototype._read_attribute=function(d,g,b){var E=null,A="";if(b&&b.text[0]==="<")if(d==="=")E=this._create_token(c.EQUALS,this._input.next());else if(d==='"'||d==="'"){var j=this._input.next();d==='"'?j+=this.__patterns.double_quote.read():j+=this.__patterns.single_quote.read(),E=this._create_token(c.VALUE,j)}else A=this.__patterns.attribute.read(),A&&(g.type===c.EQUALS?E=this._create_token(c.VALUE,A):E=this._create_token(c.ATTRIBUTE,A));return E},_.prototype._is_content_unformatted=function(d){return this._options.void_elements.indexOf(d)===-1&&(this._options.content_unformatted.indexOf(d)!==-1||this._options.unformatted.indexOf(d)!==-1)},_.prototype._read_raw_content=function(d,g,b){var E="";if(b&&b.text[0]==="{")E=this.__patterns.handlebars_raw_close.read();else if(g.type===c.TAG_CLOSE&&g.opened.text[0]==="<"&&g.text[0]!=="/"){var A=g.opened.text.substr(1).toLowerCase();this._is_content_unformatted(A)&&(E=this._input.readUntil(new RegExp("</"+A+"[\\n\\r\\t ]*?>","ig")))}return E?this._create_token(c.TEXT,E):null},_.prototype._read_script_and_style=function(d,g){if(g.type===c.TAG_CLOSE&&g.opened.text[0]==="<"&&g.text[0]!=="/"){var b=g.opened.text.substr(1).toLowerCase();if(b==="script"||b==="style"){var E=this._read_comment_or_cdata(d);if(E)return E.type=c.TEXT,E;var A=this._input.readUntil(new RegExp("</"+b+"[\\n\\r\\t ]*?>","ig"));if(A)return this._create_token(c.TEXT,A)}}return null},_.prototype._read_content_word=function(d,g){var b="";return this._options.unformatted_content_delimiter&&d===this._options.unformatted_content_delimiter[0]&&(b=this.__patterns.unformatted_content_delimiter.read()),b||(b=g&&g.type===c.CONTROL_FLOW_OPEN?this.__patterns.word_control_flow_close_excluded.read():this.__patterns.word.read()),b?this._create_token(c.TEXT,b):null},pu.Tokenizer=_,pu.TOKEN=c,pu}var Vy;function tw(){if(Vy)return th;Vy=1;var i=Nv().Options,n=Fh().Output,s=Ky().Tokenizer,r=Ky().TOKEN,u=/\r\n|[\r\n]/,c=/\r\n|[\r\n]/g,h=function(S,v){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=S.max_preserve_newlines,this.preserve_newlines=S.preserve_newlines,this._output=new n(S,v)};h.prototype.current_line_has_match=function(S){return this._output.current_line.has_match(S)},h.prototype.set_space_before_token=function(S,v){this._output.space_before_token=S,this._output.non_breaking_space=v},h.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},h.prototype.add_raw_token=function(S){this._output.add_raw_token(S)},h.prototype.print_preserved_newlines=function(S){var v=0;S.type!==r.TEXT&&S.previous.type!==r.TEXT&&(v=S.newlines?1:0),this.preserve_newlines&&(v=S.newlines<this.max_preserve_newlines+1?S.newlines:this.max_preserve_newlines+1);for(var T=0;T<v;T++)this.print_newline(T>0);return v!==0},h.prototype.traverse_whitespace=function(S){return S.whitespace_before||S.newlines?(this.print_preserved_newlines(S)||(this._output.space_before_token=!0),!0):!1},h.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},h.prototype.print_newline=function(S){this._output.add_new_line(S)},h.prototype.print_token=function(S){S.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(S.text))},h.prototype.indent=function(){this.indent_level++},h.prototype.deindent=function(){this.indent_level>0&&(this.indent_level--,this._output.set_indent(this.indent_level,this.alignment_size))},h.prototype.get_full_indent=function(S){return S=this.indent_level+(S||0),S<1?"":this._output.get_indent_string(S)};var _=function(S){for(var v=null,T=S.next;T.type!==r.EOF&&S.closed!==T;){if(T.type===r.ATTRIBUTE&&T.text==="type"){T.next&&T.next.type===r.EQUALS&&T.next.next&&T.next.next.type===r.VALUE&&(v=T.next.next.text);break}T=T.next}return v},d=function(S,v){var T=null,w=null;return v.closed?(S==="script"?T="text/javascript":S==="style"&&(T="text/css"),T=_(v)||T,T.search("text/css")>-1?w="css":T.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?w="javascript":T.search(/(text|application|dojo)\/(x-)?(html)/)>-1?w="html":T.search(/test\/null/)>-1&&(w="null"),w):null};function g(S,v){return v.indexOf(S)!==-1}function b(S,v,T){this.parent=S||null,this.tag=v?v.tag_name:"",this.indent_level=T||0,this.parser_token=v||null}function E(S){this._printer=S,this._current_frame=null}E.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},E.prototype.record_tag=function(S){var v=new b(this._current_frame,S,this._printer.indent_level);this._current_frame=v},E.prototype._try_pop_frame=function(S){var v=null;return S&&(v=S.parser_token,this._printer.indent_level=S.indent_level,this._current_frame=S.parent),v},E.prototype._get_frame=function(S,v){for(var T=this._current_frame;T&&S.indexOf(T.tag)===-1;){if(v&&v.indexOf(T.tag)!==-1){T=null;break}T=T.parent}return T},E.prototype.try_pop=function(S,v){var T=this._get_frame([S],v);return this._try_pop_frame(T)},E.prototype.indent_to_tag=function(S){var v=this._get_frame(S);v&&(this._printer.indent_level=v.indent_level)};function A(S,v,T,w){this._source_text=S||"",v=v||{},this._js_beautify=T,this._css_beautify=w,this._tag_stack=null;var I=new i(v,"html");this._options=I,this._is_wrap_attributes_force=this._options.wrap_attributes.substr(0,5)==="force",this._is_wrap_attributes_force_expand_multiline=this._options.wrap_attributes==="force-expand-multiline",this._is_wrap_attributes_force_aligned=this._options.wrap_attributes==="force-aligned",this._is_wrap_attributes_aligned_multiple=this._options.wrap_attributes==="aligned-multiple",this._is_wrap_attributes_preserve=this._options.wrap_attributes.substr(0,8)==="preserve",this._is_wrap_attributes_preserve_aligned=this._options.wrap_attributes==="preserve-aligned"}A.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var S=this._source_text,v=this._options.eol;this._options.eol==="auto"&&(v=`
160
160
  `,S&&u.test(S)&&(v=S.match(u)[0])),S=S.replace(c,`
161
- `);var T=S.match(/^[\t ]*/)[0],w={text:"",type:""},I=new j(this._options),F=new h(this._options,T),U=new s(S,this._options).tokenize();this._tag_stack=new E(F);for(var L=null,C=U.next();C.type!==r.EOF;)C.type===r.TAG_OPEN||C.type===r.COMMENT?(L=this._handle_tag_open(F,C,I,w,U),I=L):C.type===r.ATTRIBUTE||C.type===r.EQUALS||C.type===r.VALUE||C.type===r.TEXT&&!I.tag_complete?L=this._handle_inside_tag(F,C,I,w):C.type===r.TAG_CLOSE?L=this._handle_tag_close(F,C,I):C.type===r.TEXT?L=this._handle_text(F,C,I):C.type===r.CONTROL_FLOW_OPEN?L=this._handle_control_flow_open(F,C):C.type===r.CONTROL_FLOW_CLOSE?L=this._handle_control_flow_close(F,C):F.add_raw_token(C),w=L,C=U.next();var Y=F._output.get_code(v);return Y},A.prototype._handle_control_flow_open=function(S,v){var T={text:v.text,type:v.type};return S.set_space_before_token(v.newlines||v.whitespace_before!=="",!0),v.newlines?S.print_preserved_newlines(v):S.set_space_before_token(v.newlines||v.whitespace_before!=="",!0),S.print_token(v),S.indent(),T},A.prototype._handle_control_flow_close=function(S,v){var T={text:v.text,type:v.type};return S.deindent(),v.newlines?S.print_preserved_newlines(v):S.set_space_before_token(v.newlines||v.whitespace_before!=="",!0),S.print_token(v),T},A.prototype._handle_tag_close=function(S,v,T){var w={text:v.text,type:v.type};return S.alignment_size=0,T.tag_complete=!0,S.set_space_before_token(v.newlines||v.whitespace_before!=="",!0),T.is_unformatted?S.add_raw_token(v):(T.tag_start_char==="<"&&(S.set_space_before_token(v.text[0]==="/",!0),this._is_wrap_attributes_force_expand_multiline&&T.has_wrapped_attrs&&S.print_newline(!1)),S.print_token(v)),T.indent_content&&!(T.is_unformatted||T.is_content_unformatted)&&(S.indent(),T.indent_content=!1),!T.is_inline_element&&!(T.is_unformatted||T.is_content_unformatted)&&S.set_wrap_point(),w},A.prototype._handle_inside_tag=function(S,v,T,w){var I=T.has_wrapped_attrs,F={text:v.text,type:v.type};return S.set_space_before_token(v.newlines||v.whitespace_before!=="",!0),T.is_unformatted?S.add_raw_token(v):T.tag_start_char==="{"&&v.type===r.TEXT?S.print_preserved_newlines(v)?(v.newlines=0,S.add_raw_token(v)):S.print_token(v):(v.type===r.ATTRIBUTE?S.set_space_before_token(!0):(v.type===r.EQUALS||v.type===r.VALUE&&v.previous.type===r.EQUALS)&&S.set_space_before_token(!1),v.type===r.ATTRIBUTE&&T.tag_start_char==="<"&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(S.traverse_whitespace(v),I=I||v.newlines!==0),this._is_wrap_attributes_force&&T.attr_count>=this._options.wrap_attributes_min_attrs&&(w.type!==r.TAG_OPEN||this._is_wrap_attributes_force_expand_multiline)&&(S.print_newline(!1),I=!0)),S.print_token(v),I=I||S.previous_token_wrapped(),T.has_wrapped_attrs=I),F},A.prototype._handle_text=function(S,v,T){var w={text:v.text,type:"TK_CONTENT"};return T.custom_beautifier_name?this._print_custom_beatifier_text(S,v,T):T.is_unformatted||T.is_content_unformatted?S.add_raw_token(v):(S.traverse_whitespace(v),S.print_token(v)),w},A.prototype._print_custom_beatifier_text=function(S,v,T){var w=this;if(v.text!==""){var I=v.text,F,U=1,L="",C="";T.custom_beautifier_name==="javascript"&&typeof this._js_beautify=="function"?F=this._js_beautify:T.custom_beautifier_name==="css"&&typeof this._css_beautify=="function"?F=this._css_beautify:T.custom_beautifier_name==="html"&&(F=function(at,J){var M=new A(at,J,w._js_beautify,w._css_beautify);return M.beautify()}),this._options.indent_scripts==="keep"?U=0:this._options.indent_scripts==="separate"&&(U=-S.indent_level);var Y=S.get_full_indent(U);if(I=I.replace(/\n[ \t]*$/,""),T.custom_beautifier_name!=="html"&&I[0]==="<"&&I.match(/^(<!--|<!\[CDATA\[)/)){var m=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(I);if(!m){S.add_raw_token(v);return}L=Y+m[1]+`
161
+ `);var T=S.match(/^[\t ]*/)[0],w={text:"",type:""},I=new j(this._options),X=new h(this._options,T),U=new s(S,this._options).tokenize();this._tag_stack=new E(X);for(var L=null,C=U.next();C.type!==r.EOF;)C.type===r.TAG_OPEN||C.type===r.COMMENT?(L=this._handle_tag_open(X,C,I,w,U),I=L):C.type===r.ATTRIBUTE||C.type===r.EQUALS||C.type===r.VALUE||C.type===r.TEXT&&!I.tag_complete?L=this._handle_inside_tag(X,C,I,w):C.type===r.TAG_CLOSE?L=this._handle_tag_close(X,C,I):C.type===r.TEXT?L=this._handle_text(X,C,I):C.type===r.CONTROL_FLOW_OPEN?L=this._handle_control_flow_open(X,C):C.type===r.CONTROL_FLOW_CLOSE?L=this._handle_control_flow_close(X,C):X.add_raw_token(C),w=L,C=U.next();var Y=X._output.get_code(v);return Y},A.prototype._handle_control_flow_open=function(S,v){var T={text:v.text,type:v.type};return S.set_space_before_token(v.newlines||v.whitespace_before!=="",!0),v.newlines?S.print_preserved_newlines(v):S.set_space_before_token(v.newlines||v.whitespace_before!=="",!0),S.print_token(v),S.indent(),T},A.prototype._handle_control_flow_close=function(S,v){var T={text:v.text,type:v.type};return S.deindent(),v.newlines?S.print_preserved_newlines(v):S.set_space_before_token(v.newlines||v.whitespace_before!=="",!0),S.print_token(v),T},A.prototype._handle_tag_close=function(S,v,T){var w={text:v.text,type:v.type};return S.alignment_size=0,T.tag_complete=!0,S.set_space_before_token(v.newlines||v.whitespace_before!=="",!0),T.is_unformatted?S.add_raw_token(v):(T.tag_start_char==="<"&&(S.set_space_before_token(v.text[0]==="/",!0),this._is_wrap_attributes_force_expand_multiline&&T.has_wrapped_attrs&&S.print_newline(!1)),S.print_token(v)),T.indent_content&&!(T.is_unformatted||T.is_content_unformatted)&&(S.indent(),T.indent_content=!1),!T.is_inline_element&&!(T.is_unformatted||T.is_content_unformatted)&&S.set_wrap_point(),w},A.prototype._handle_inside_tag=function(S,v,T,w){var I=T.has_wrapped_attrs,X={text:v.text,type:v.type};return S.set_space_before_token(v.newlines||v.whitespace_before!=="",!0),T.is_unformatted?S.add_raw_token(v):T.tag_start_char==="{"&&v.type===r.TEXT?S.print_preserved_newlines(v)?(v.newlines=0,S.add_raw_token(v)):S.print_token(v):(v.type===r.ATTRIBUTE?S.set_space_before_token(!0):(v.type===r.EQUALS||v.type===r.VALUE&&v.previous.type===r.EQUALS)&&S.set_space_before_token(!1),v.type===r.ATTRIBUTE&&T.tag_start_char==="<"&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(S.traverse_whitespace(v),I=I||v.newlines!==0),this._is_wrap_attributes_force&&T.attr_count>=this._options.wrap_attributes_min_attrs&&(w.type!==r.TAG_OPEN||this._is_wrap_attributes_force_expand_multiline)&&(S.print_newline(!1),I=!0)),S.print_token(v),I=I||S.previous_token_wrapped(),T.has_wrapped_attrs=I),X},A.prototype._handle_text=function(S,v,T){var w={text:v.text,type:"TK_CONTENT"};return T.custom_beautifier_name?this._print_custom_beatifier_text(S,v,T):T.is_unformatted||T.is_content_unformatted?S.add_raw_token(v):(S.traverse_whitespace(v),S.print_token(v)),w},A.prototype._print_custom_beatifier_text=function(S,v,T){var w=this;if(v.text!==""){var I=v.text,X,U=1,L="",C="";T.custom_beautifier_name==="javascript"&&typeof this._js_beautify=="function"?X=this._js_beautify:T.custom_beautifier_name==="css"&&typeof this._css_beautify=="function"?X=this._css_beautify:T.custom_beautifier_name==="html"&&(X=function(at,J){var M=new A(at,J,w._js_beautify,w._css_beautify);return M.beautify()}),this._options.indent_scripts==="keep"?U=0:this._options.indent_scripts==="separate"&&(U=-S.indent_level);var Y=S.get_full_indent(U);if(I=I.replace(/\n[ \t]*$/,""),T.custom_beautifier_name!=="html"&&I[0]==="<"&&I.match(/^(<!--|<!\[CDATA\[)/)){var m=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(I);if(!m){S.add_raw_token(v);return}L=Y+m[1]+`
162
162
  `,I=m[4],m[5]&&(C=Y+m[5]),I=I.replace(/\n[ \t]*$/,""),(m[2]||m[3].indexOf(`
163
- `)!==-1)&&(m=m[3].match(/[ \t]+$/),m&&(v.whitespace_before=m[0]))}if(I)if(F){var P=function(){this.eol=`
164
- `};P.prototype=this._options.raw_options;var G=new P;I=F(Y+I,G)}else{var et=v.whitespace_before;et&&(I=I.replace(new RegExp(`
163
+ `)!==-1)&&(m=m[3].match(/[ \t]+$/),m&&(v.whitespace_before=m[0]))}if(I)if(X){var P=function(){this.eol=`
164
+ `};P.prototype=this._options.raw_options;var G=new P;I=X(Y+I,G)}else{var et=v.whitespace_before;et&&(I=I.replace(new RegExp(`
165
165
  (`+et+")?","g"),`
166
166
  `)),I=Y+I.replace(/\n/g,`
167
167
  `+Y)}L&&(I?I=L+I+`
168
- `+C:I=L+C),S.print_newline(!1),I&&(v.text=I,v.whitespace_before="",v.newlines=0,S.add_raw_token(v),S.print_newline(!0))}},A.prototype._handle_tag_open=function(S,v,T,w,I){var F=this._get_tag_open_token(v);if((T.is_unformatted||T.is_content_unformatted)&&!T.is_empty_element&&v.type===r.TAG_OPEN&&!F.is_start_tag?(S.add_raw_token(v),F.start_tag_token=this._tag_stack.try_pop(F.tag_name)):(S.traverse_whitespace(v),this._set_tag_position(S,v,F,T,w),F.is_inline_element||S.set_wrap_point(),S.print_token(v)),F.is_start_tag&&this._is_wrap_attributes_force){var U=0,L;do L=I.peek(U),L.type===r.ATTRIBUTE&&(F.attr_count+=1),U+=1;while(L.type!==r.EOF&&L.type!==r.TAG_CLOSE)}return(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(F.alignment_size=v.text.length+1),!F.tag_complete&&!F.is_unformatted&&(S.alignment_size=F.alignment_size),F};var j=function(S,v,T){if(this.parent=v||null,this.text="",this.type="TK_TAG_OPEN",this.tag_name="",this.is_inline_element=!1,this.is_unformatted=!1,this.is_content_unformatted=!1,this.is_empty_element=!1,this.is_start_tag=!1,this.is_end_tag=!1,this.indent_content=!1,this.multiline_content=!1,this.custom_beautifier_name=null,this.start_tag_token=null,this.attr_count=0,this.has_wrapped_attrs=!1,this.alignment_size=0,this.tag_complete=!1,this.tag_start_char="",this.tag_check="",!T)this.tag_complete=!0;else{var w;this.tag_start_char=T.text[0],this.text=T.text,this.tag_start_char==="<"?(w=T.text.match(/^<([^\s>]*)/),this.tag_check=w?w[1]:""):(w=T.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=w?w[1]:"",(T.text.startsWith("{{#>")||T.text.startsWith("{{~#>"))&&this.tag_check[0]===">"&&(this.tag_check===">"&&T.next!==null?this.tag_check=T.next.text.split(" ")[0]:this.tag_check=T.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),T.type===r.COMMENT&&(this.tag_complete=!0),this.is_start_tag=this.tag_check.charAt(0)!=="/",this.tag_name=this.is_start_tag?this.tag_check:this.tag_check.substr(1),this.is_end_tag=!this.is_start_tag||T.closed&&T.closed.text==="/>";var I=2;this.tag_start_char==="{"&&this.text.length>=3&&this.text.charAt(2)==="~"&&(I=3),this.is_end_tag=this.is_end_tag||this.tag_start_char==="{"&&(!S.indent_handlebars||this.text.length<3||/[^#\^]/.test(this.text.charAt(I)))}};A.prototype._get_tag_open_token=function(S){var v=new j(this._options,this._tag_stack.get_parser_token(),S);return v.alignment_size=this._options.wrap_attributes_indent_size,v.is_end_tag=v.is_end_tag||g(v.tag_check,this._options.void_elements),v.is_empty_element=v.tag_complete||v.is_start_tag&&v.is_end_tag,v.is_unformatted=!v.tag_complete&&g(v.tag_check,this._options.unformatted),v.is_content_unformatted=!v.is_empty_element&&g(v.tag_check,this._options.content_unformatted),v.is_inline_element=g(v.tag_name,this._options.inline)||this._options.inline_custom_elements&&v.tag_name.includes("-")||v.tag_start_char==="{",v},A.prototype._set_tag_position=function(S,v,T,w,I){if(T.is_empty_element||(T.is_end_tag?T.start_tag_token=this._tag_stack.try_pop(T.tag_name):(this._do_optional_end_element(T)&&(T.is_inline_element||S.print_newline(!1)),this._tag_stack.record_tag(T),(T.tag_name==="script"||T.tag_name==="style")&&!(T.is_unformatted||T.is_content_unformatted)&&(T.custom_beautifier_name=d(T.tag_check,v)))),g(T.tag_check,this._options.extra_liners)&&(S.print_newline(!1),S._output.just_added_blankline()||S.print_newline(!0)),T.is_empty_element){if(T.tag_start_char==="{"&&T.tag_check==="else"){this._tag_stack.indent_to_tag(["if","unless","each"]),T.indent_content=!0;var F=S.current_line_has_match(/{{#if/);F||S.print_newline(!1)}T.tag_name==="!--"&&I.type===r.TAG_CLOSE&&w.is_end_tag&&T.text.indexOf(`
169
- `)===-1||(T.is_inline_element||T.is_unformatted||S.print_newline(!1),this._calcluate_parent_multiline(S,T))}else if(T.is_end_tag){var U=!1;U=T.start_tag_token&&T.start_tag_token.multiline_content,U=U||!T.is_inline_element&&!(w.is_inline_element||w.is_unformatted)&&!(I.type===r.TAG_CLOSE&&T.start_tag_token===w)&&I.type!=="TK_CONTENT",(T.is_content_unformatted||T.is_unformatted)&&(U=!1),U&&S.print_newline(!1)}else T.indent_content=!T.custom_beautifier_name,T.tag_start_char==="<"&&(T.tag_name==="html"?T.indent_content=this._options.indent_inner_html:T.tag_name==="head"?T.indent_content=this._options.indent_head_inner_html:T.tag_name==="body"&&(T.indent_content=this._options.indent_body_inner_html)),!(T.is_inline_element||T.is_unformatted)&&(I.type!=="TK_CONTENT"||T.is_content_unformatted)&&S.print_newline(!1),this._calcluate_parent_multiline(S,T)},A.prototype._calcluate_parent_multiline=function(S,v){v.parent&&S._output.just_added_newline()&&!((v.is_inline_element||v.is_unformatted)&&v.parent.is_inline_element)&&(v.parent.multiline_content=!0)};var H=["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","menu","nav","ol","p","pre","section","table","ul"],X=["a","audio","del","ins","map","noscript","video"];return A.prototype._do_optional_end_element=function(S){var v=null;if(!(S.is_empty_element||!S.is_start_tag||!S.parent)){if(S.tag_name==="body")v=v||this._tag_stack.try_pop("head");else if(S.tag_name==="li")v=v||this._tag_stack.try_pop("li",["ol","ul","menu"]);else if(S.tag_name==="dd"||S.tag_name==="dt")v=v||this._tag_stack.try_pop("dt",["dl"]),v=v||this._tag_stack.try_pop("dd",["dl"]);else if(S.parent.tag_name==="p"&&H.indexOf(S.tag_name)!==-1){var T=S.parent.parent;(!T||X.indexOf(T.tag_name)===-1)&&(v=v||this._tag_stack.try_pop("p"))}else S.tag_name==="rp"||S.tag_name==="rt"?(v=v||this._tag_stack.try_pop("rt",["ruby","rtc"]),v=v||this._tag_stack.try_pop("rp",["ruby","rtc"])):S.tag_name==="optgroup"?v=v||this._tag_stack.try_pop("optgroup",["select"]):S.tag_name==="option"?v=v||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):S.tag_name==="colgroup"?v=v||this._tag_stack.try_pop("caption",["table"]):S.tag_name==="thead"?(v=v||this._tag_stack.try_pop("caption",["table"]),v=v||this._tag_stack.try_pop("colgroup",["table"])):S.tag_name==="tbody"||S.tag_name==="tfoot"?(v=v||this._tag_stack.try_pop("caption",["table"]),v=v||this._tag_stack.try_pop("colgroup",["table"]),v=v||this._tag_stack.try_pop("thead",["table"]),v=v||this._tag_stack.try_pop("tbody",["table"])):S.tag_name==="tr"?(v=v||this._tag_stack.try_pop("caption",["table"]),v=v||this._tag_stack.try_pop("colgroup",["table"]),v=v||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(S.tag_name==="th"||S.tag_name==="td")&&(v=v||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),v=v||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return S.parent=this._tag_stack.get_parser_token(),v}},Jf.Beautifier=A,Jf}var Xy;function WL(){if(Xy)return du.exports;Xy=1;var i=ZL().Beautifier,n=Rv().Options;function s(r,u,c,h){var _=new i(r,u,c,h);return _.beautify()}return du.exports=s,du.exports.defaultOptions=function(){return new n},du.exports}var Fy;function JL(){if(Fy)return _r;Fy=1;var i=XL(),n=QL(),s=WL();function r(u,c,h,_){return h=h||i,_=_||n,s(u,c,h,_)}return r.defaultOptions=s.defaultOptions,_r.js=i,_r.css=n,_r.html=r,_r}var Qy;function tw(){return Qy||(Qy=1,(function(i){function n(s,r,u){var c=function(h,_){return s.js_beautify(h,_)};return c.js=s.js_beautify,c.css=r.css_beautify,c.html=u.html_beautify,c.js_beautify=s.js_beautify,c.css_beautify=r.css_beautify,c.html_beautify=u.html_beautify,c}(function(s){var r=JL();r.js_beautify=r.js,r.css_beautify=r.css,r.html_beautify=r.html,s.exports=n(r,r,r)})(i)})(jf)),jf.exports}var ew=tw();const nw=Sh(ew);var iw=Et({name:"WhiteSpace",pattern:/\s+/,group:me.SKIPPED}),aw=Et({name:"LineComment",pattern:/\/\/[^\n\r]*/,group:me.SKIPPED}),sw=Et({name:"BlockComment",pattern:/\/\*[\s\S]*?\*\//,group:me.SKIPPED}),Te=Et({name:"Identifier",pattern:/[a-zA-Z_$][a-zA-Z0-9_.\[\]]*/}),xv=Et({name:"QuotedIdentifier",pattern:/`([^`\\]|\\.)*`/}),bu=Et({name:"From",pattern:/from/i,longer_alt:Te}),mh=Et({name:"To",pattern:/to/i,longer_alt:Te}),yh=Et({name:"Transform",pattern:/transform/i,longer_alt:Te}),Cv=Et({name:"Set",pattern:/set/i,longer_alt:Te}),Lv=Et({name:"Section",pattern:/section/i,longer_alt:Te}),wv=Et({name:"Multiple",pattern:/multiple/i,longer_alt:Te}),Mv=Et({name:"Clone",pattern:/clone/i,longer_alt:Te}),Uv=Et({name:"Delete",pattern:/delete/i,longer_alt:Te}),Iv=Et({name:"Define",pattern:/define/i,longer_alt:Te}),kv=Et({name:"Modify",pattern:/modify/i,longer_alt:Te}),vh=Et({name:"If",pattern:/if/i,longer_alt:Te}),zv=Et({name:"Else",pattern:/else/i,longer_alt:Te}),Bv=Et({name:"EqualsEquals",pattern:/==/}),Dv=Et({name:"EqualsEqualsEquals",pattern:/===/}),jv=Et({name:"NotEquals",pattern:/!=/}),Pv=Et({name:"NotEqualsEquals",pattern:/!==/}),Gv=Et({name:"LessThanOrEqual",pattern:/<=/}),qv=Et({name:"GreaterThanOrEqual",pattern:/>=/}),Hv=Et({name:"LessThan",pattern:/</}),$v=Et({name:"GreaterThan",pattern:/>/}),Kv=Et({name:"And",pattern:/&&/}),Vv=Et({name:"Or",pattern:/\|\|/}),Yv=Et({name:"Not",pattern:/!/}),Tu=Et({name:"Equals",pattern:/=/}),Xv=Et({name:"Plus",pattern:/\+/}),Eh=Et({name:"Minus",pattern:/-/}),Fv=Et({name:"Times",pattern:/\*/}),Qv=Et({name:"Divide",pattern:/\//}),Mn=Et({name:"LParen",pattern:/\(/}),si=Et({name:"RParen",pattern:/\)/}),bh=Et({name:"Comma",pattern:/,/}),Th=Et({name:"StringLiteral",pattern:/"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'/}),Zv=Et({name:"NumericLiteral",pattern:/-?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/}),Wv=[iw,aw,sw,bu,mh,yh,Cv,Lv,wv,Mv,Uv,Iv,kv,vh,zv,Dv,Bv,Pv,jv,Gv,qv,Kv,Vv,Tu,Hv,$v,Yv,Xv,Eh,Fv,Qv,Mn,si,bh,Th,Zv,xv,Te],rw=new me(Wv),lw=class extends Y2{constructor(){super(Wv),this.performSelfAnalysis()}query=this.RULE("query",()=>{this.CONSUME(bu),this.SUBRULE(this.typeFormat,{LABEL:"sourceType"}),this.CONSUME(mh),this.SUBRULE1(this.typeFormat,{LABEL:"targetType"}),this.OPTION(()=>{this.CONSUME(yh),this.MANY(()=>{this.SUBRULE(this.action)})})});typeFormat=this.RULE("typeFormat",()=>{this.SUBRULE(this.anyIdentifier,{LABEL:"name"}),this.OPTION(()=>{this.CONSUME(Mn),this.CONSUME(Th,{LABEL:"parameter"}),this.CONSUME(si)})});anyIdentifier=this.RULE("anyIdentifier",()=>{this.OR([{ALT:()=>this.CONSUME(Te)},{ALT:()=>this.CONSUME(xv)}])});literal=this.RULE("literal",()=>{this.OR([{ALT:()=>this.CONSUME(Th)},{ALT:()=>this.CONSUME(Zv)}])});action=this.RULE("action",()=>{this.OR([{ALT:()=>this.SUBRULE(this.setRule)},{ALT:()=>this.SUBRULE(this.modifyRule)},{ALT:()=>this.SUBRULE(this.sectionRule)},{ALT:()=>this.SUBRULE(this.cloneRule)},{ALT:()=>this.SUBRULE(this.deleteRule)},{ALT:()=>this.SUBRULE(this.ifAction)},{ALT:()=>this.SUBRULE(this.defineRule)}])});deleteRule=this.RULE("deleteRule",()=>{this.CONSUME(Uv),this.SUBRULE(this.anyIdentifier,{LABEL:"field"})});ifAction=this.RULE("ifAction",()=>{this.CONSUME(vh),this.CONSUME(Mn),this.SUBRULE(this.expression,{LABEL:"condition"}),this.CONSUME(si),this.CONSUME2(Mn),this.MANY(()=>{this.SUBRULE(this.action,{LABEL:"thenActions"})}),this.CONSUME2(si),this.OPTION(()=>{this.CONSUME(zv),this.CONSUME3(Mn),this.MANY2(()=>{this.SUBRULE2(this.action,{LABEL:"elseActions"})}),this.CONSUME3(si)})});cloneRule=this.RULE("cloneRule",()=>{this.CONSUME(Mv),this.OPTION(()=>{this.CONSUME(Mn),this.MANY_SEP({SEP:bh,DEF:()=>{this.SUBRULE(this.anyIdentifier,{LABEL:"fields"})}}),this.CONSUME(si)})});setRule=this.RULE("setRule",()=>{this.CONSUME(Cv),this.SUBRULE(this.anyIdentifier,{LABEL:"left"}),this.CONSUME(Tu),this.SUBRULE(this.expression,{LABEL:"right"})});modifyRule=this.RULE("modifyRule",()=>{this.CONSUME(kv),this.SUBRULE(this.anyIdentifier,{LABEL:"left"}),this.CONSUME(Tu),this.SUBRULE(this.expression,{LABEL:"right"})});expression=this.RULE("expression",()=>{this.SUBRULE(this.logicalOr)});logicalOr=this.RULE("logicalOr",()=>{this.SUBRULE(this.logicalAnd,{LABEL:"lhs"}),this.MANY(()=>{this.CONSUME(Vv),this.SUBRULE1(this.logicalAnd,{LABEL:"rhs"})})});logicalAnd=this.RULE("logicalAnd",()=>{this.SUBRULE(this.comparison,{LABEL:"lhs"}),this.MANY(()=>{this.CONSUME(Kv),this.SUBRULE1(this.comparison,{LABEL:"rhs"})})});comparison=this.RULE("comparison",()=>{this.SUBRULE(this.addition,{LABEL:"lhs"}),this.OPTION(()=>{this.OR([{ALT:()=>this.CONSUME(Bv,{LABEL:"ops"})},{ALT:()=>this.CONSUME(Dv,{LABEL:"ops"})},{ALT:()=>this.CONSUME(jv,{LABEL:"ops"})},{ALT:()=>this.CONSUME(Pv,{LABEL:"ops"})},{ALT:()=>this.CONSUME(Gv,{LABEL:"ops"})},{ALT:()=>this.CONSUME(qv,{LABEL:"ops"})},{ALT:()=>this.CONSUME(Hv,{LABEL:"ops"})},{ALT:()=>this.CONSUME($v,{LABEL:"ops"})}]),this.SUBRULE1(this.addition,{LABEL:"rhs"})})});addition=this.RULE("addition",()=>{this.SUBRULE(this.multiplication,{LABEL:"lhs"}),this.MANY(()=>{this.OR([{ALT:()=>this.CONSUME(Xv,{LABEL:"ops"})},{ALT:()=>this.CONSUME(Eh,{LABEL:"ops"})}]),this.SUBRULE1(this.multiplication,{LABEL:"rhs"})})});multiplication=this.RULE("multiplication",()=>{this.SUBRULE(this.unaryExpression,{LABEL:"lhs"}),this.MANY(()=>{this.OR([{ALT:()=>this.CONSUME(Fv,{LABEL:"ops"})},{ALT:()=>this.CONSUME(Qv,{LABEL:"ops"})}]),this.SUBRULE1(this.unaryExpression,{LABEL:"rhs"})})});unaryExpression=this.RULE("unaryExpression",()=>{this.OPTION(()=>{this.OR([{ALT:()=>this.CONSUME(Eh,{LABEL:"sign"})},{ALT:()=>this.CONSUME(Yv,{LABEL:"sign"})}])}),this.SUBRULE(this.atomic)});atomic=this.RULE("atomic",()=>{this.OR([{ALT:()=>this.SUBRULE(this.literal)},{GATE:()=>this.LA(2).tokenType===Mn,ALT:()=>this.SUBRULE(this.functionCall)},{ALT:()=>this.SUBRULE(this.anyIdentifier)},{ALT:()=>{this.CONSUME(Mn),this.SUBRULE(this.expression),this.CONSUME(si)}}])});functionCall=this.RULE("functionCall",()=>{this.OR([{ALT:()=>this.CONSUME(Te,{LABEL:"name"})},{ALT:()=>this.CONSUME(vh,{LABEL:"name"})}]),this.CONSUME(Mn),this.MANY_SEP({SEP:bh,DEF:()=>{this.SUBRULE(this.expression,{LABEL:"args"})}}),this.CONSUME(si)});sectionRule=this.RULE("sectionRule",()=>{this.CONSUME(Lv),this.OPTION(()=>{this.CONSUME(wv)}),this.SUBRULE(this.anyIdentifier,{LABEL:"sectionName"}),this.CONSUME(Mn),this.OPTION1(()=>{this.CONSUME(bu,{LABEL:"subqueryFrom"}),this.SUBRULE(this.typeFormat,{LABEL:"subquerySourceType"}),this.CONSUME(mh,{LABEL:"subqueryTo"}),this.SUBRULE1(this.typeFormat,{LABEL:"subqueryTargetType"}),this.OPTION2(()=>{this.CONSUME(yh,{LABEL:"subqueryTransform"})})}),this.MANY(()=>{this.SUBRULE(this.action)}),this.CONSUME(si),this.OPTION3(()=>{this.CONSUME1(bu,{LABEL:"followFrom"}),this.SUBRULE2(this.anyIdentifier,{LABEL:"followPath"})})});defineRule=this.RULE("defineRule",()=>{this.CONSUME(Iv),this.SUBRULE(this.anyIdentifier,{LABEL:"left"}),this.CONSUME(Tu),this.SUBRULE(this.expression,{LABEL:"right"})})},Er=new lw,uw={substring:i=>{if(i.length<2)throw new Error("substring() requires at least 2 arguments (string, start, [length])");let[n,s,r]=i;return r!==void 0?`String(${n}).slice(${s}, (${s}) + (${r}))`:`String(${n}).slice(${s})`},if:i=>{if(i.length!==3)throw new Error("if() requires exactly 3 arguments (condition, trueValue, falseValue)");let[n,s,r]=i;return`((${n}) ? (${s}) : (${r}))`},text:i=>{if(i.length!==1)throw new Error("text() requires exactly 1 argument (string or number)");let[n]=i;return`String(${n})`},replace:i=>{if(i.length!==3)throw new Error("replace() requires exactly 3 arguments (string, search, replacement)");let[n,s,r]=i;return`String(${n}).replace(${s}, ${r})`},number:i=>{if(i.length!==1)throw new Error("number() requires exactly 1 argument (string)");let[n]=i;return`Number(${n})`},extractnumber:i=>{if(i.length!==1)throw new Error("extractNumber() requires exactly 1 argument (string)");let[n]=i;return`Number(String(${n}).match(/\\d+(\\.\\d+)?/)[0])`},uppercase:i=>{if(i.length!==1)throw new Error("uppercase() requires exactly 1 argument (string)");let[n]=i;return`String(${n}).toUpperCase()`},lowercase:i=>{if(i.length!==1)throw new Error("lowercase() requires exactly 1 argument (string)");let[n]=i;return`String(${n}).toLowerCase()`},xmlnode:i=>{if(i.length<1)throw new Error("xmlnode() requires at least 1 argument (string)");let n=i[0],s=[...i.slice(1)],r="";if(s.length>0){let[u,c]=[s,2];u=[...Array(Math.ceil(u.length/c))].map(h=>u.splice(0,c)).map(([h,_])=>{let d=h;return h.startsWith('"')||h.startsWith("'")?d=`"$${h.slice(1,-1)}"`:d=`["$"+${h}]`,`${d}:${_||"null"}`}),r=","+u.join(",")}else return n;return`{_:${n}${r}}`},split:i=>{if(i.length<1)throw new Error("split() requires at least 1 argument (string)");let[n,s,r]=i,u=s!==void 0?s:'""',c=r!==void 0?`, ${r}`:"";return`String(${n}).split(${u}${c})`},to_base64:i=>{if(i.length!==1)throw new Error("to_base64() requires exactly 1 argument (string)");let[n]=i;return`(typeof btoa === 'function' ? btoa(unescape(encodeURIComponent(String(${n})))) : Buffer.from(String(${n}), 'utf-8').toString('base64'))`},from_base64:i=>{if(i.length!==1)throw new Error("from_base64() requires exactly 1 argument (string)");let[n]=i;return`(typeof atob === 'function' ? decodeURIComponent(escape(atob(String(${n})))) : Buffer.from(String(${n}), 'base64').toString('utf-8'))`},aslist:i=>{if(i.length!==1)throw new Error("aslist() requires exactly 1 argument");let[n]=i;return`(Array.isArray(${n}) ? ${n} : (${n} == null ? [] : [${n}]))`}},ow=Er.getBaseCstVisitorConstructor(),cw=class extends ow{readFrom="source";constructor(){super(),this.validateVisitor()}visitWithContext(i,n){let s=this.readFrom;this.readFrom=n.readFrom;let r=this.visit(i);return this.readFrom=s,r}query(i){let n=i.action?i.action.map(_=>this.visit(_)):[];i.Transform||n.push("Object.assign(target, source);");let s=this.visit(i.sourceType),r=this.visit(i.targetType),u=s.name,c=r.name,h=r.parameter?`'${r.parameter}'`:"undefined";return{code:`
168
+ `+C:I=L+C),S.print_newline(!1),I&&(v.text=I,v.whitespace_before="",v.newlines=0,S.add_raw_token(v),S.print_newline(!0))}},A.prototype._handle_tag_open=function(S,v,T,w,I){var X=this._get_tag_open_token(v);if((T.is_unformatted||T.is_content_unformatted)&&!T.is_empty_element&&v.type===r.TAG_OPEN&&!X.is_start_tag?(S.add_raw_token(v),X.start_tag_token=this._tag_stack.try_pop(X.tag_name)):(S.traverse_whitespace(v),this._set_tag_position(S,v,X,T,w),X.is_inline_element||S.set_wrap_point(),S.print_token(v)),X.is_start_tag&&this._is_wrap_attributes_force){var U=0,L;do L=I.peek(U),L.type===r.ATTRIBUTE&&(X.attr_count+=1),U+=1;while(L.type!==r.EOF&&L.type!==r.TAG_CLOSE)}return(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(X.alignment_size=v.text.length+1),!X.tag_complete&&!X.is_unformatted&&(S.alignment_size=X.alignment_size),X};var j=function(S,v,T){if(this.parent=v||null,this.text="",this.type="TK_TAG_OPEN",this.tag_name="",this.is_inline_element=!1,this.is_unformatted=!1,this.is_content_unformatted=!1,this.is_empty_element=!1,this.is_start_tag=!1,this.is_end_tag=!1,this.indent_content=!1,this.multiline_content=!1,this.custom_beautifier_name=null,this.start_tag_token=null,this.attr_count=0,this.has_wrapped_attrs=!1,this.alignment_size=0,this.tag_complete=!1,this.tag_start_char="",this.tag_check="",!T)this.tag_complete=!0;else{var w;this.tag_start_char=T.text[0],this.text=T.text,this.tag_start_char==="<"?(w=T.text.match(/^<([^\s>]*)/),this.tag_check=w?w[1]:""):(w=T.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=w?w[1]:"",(T.text.startsWith("{{#>")||T.text.startsWith("{{~#>"))&&this.tag_check[0]===">"&&(this.tag_check===">"&&T.next!==null?this.tag_check=T.next.text.split(" ")[0]:this.tag_check=T.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),T.type===r.COMMENT&&(this.tag_complete=!0),this.is_start_tag=this.tag_check.charAt(0)!=="/",this.tag_name=this.is_start_tag?this.tag_check:this.tag_check.substr(1),this.is_end_tag=!this.is_start_tag||T.closed&&T.closed.text==="/>";var I=2;this.tag_start_char==="{"&&this.text.length>=3&&this.text.charAt(2)==="~"&&(I=3),this.is_end_tag=this.is_end_tag||this.tag_start_char==="{"&&(!S.indent_handlebars||this.text.length<3||/[^#\^]/.test(this.text.charAt(I)))}};A.prototype._get_tag_open_token=function(S){var v=new j(this._options,this._tag_stack.get_parser_token(),S);return v.alignment_size=this._options.wrap_attributes_indent_size,v.is_end_tag=v.is_end_tag||g(v.tag_check,this._options.void_elements),v.is_empty_element=v.tag_complete||v.is_start_tag&&v.is_end_tag,v.is_unformatted=!v.tag_complete&&g(v.tag_check,this._options.unformatted),v.is_content_unformatted=!v.is_empty_element&&g(v.tag_check,this._options.content_unformatted),v.is_inline_element=g(v.tag_name,this._options.inline)||this._options.inline_custom_elements&&v.tag_name.includes("-")||v.tag_start_char==="{",v},A.prototype._set_tag_position=function(S,v,T,w,I){if(T.is_empty_element||(T.is_end_tag?T.start_tag_token=this._tag_stack.try_pop(T.tag_name):(this._do_optional_end_element(T)&&(T.is_inline_element||S.print_newline(!1)),this._tag_stack.record_tag(T),(T.tag_name==="script"||T.tag_name==="style")&&!(T.is_unformatted||T.is_content_unformatted)&&(T.custom_beautifier_name=d(T.tag_check,v)))),g(T.tag_check,this._options.extra_liners)&&(S.print_newline(!1),S._output.just_added_blankline()||S.print_newline(!0)),T.is_empty_element){if(T.tag_start_char==="{"&&T.tag_check==="else"){this._tag_stack.indent_to_tag(["if","unless","each"]),T.indent_content=!0;var X=S.current_line_has_match(/{{#if/);X||S.print_newline(!1)}T.tag_name==="!--"&&I.type===r.TAG_CLOSE&&w.is_end_tag&&T.text.indexOf(`
169
+ `)===-1||(T.is_inline_element||T.is_unformatted||S.print_newline(!1),this._calcluate_parent_multiline(S,T))}else if(T.is_end_tag){var U=!1;U=T.start_tag_token&&T.start_tag_token.multiline_content,U=U||!T.is_inline_element&&!(w.is_inline_element||w.is_unformatted)&&!(I.type===r.TAG_CLOSE&&T.start_tag_token===w)&&I.type!=="TK_CONTENT",(T.is_content_unformatted||T.is_unformatted)&&(U=!1),U&&S.print_newline(!1)}else T.indent_content=!T.custom_beautifier_name,T.tag_start_char==="<"&&(T.tag_name==="html"?T.indent_content=this._options.indent_inner_html:T.tag_name==="head"?T.indent_content=this._options.indent_head_inner_html:T.tag_name==="body"&&(T.indent_content=this._options.indent_body_inner_html)),!(T.is_inline_element||T.is_unformatted)&&(I.type!=="TK_CONTENT"||T.is_content_unformatted)&&S.print_newline(!1),this._calcluate_parent_multiline(S,T)},A.prototype._calcluate_parent_multiline=function(S,v){v.parent&&S._output.just_added_newline()&&!((v.is_inline_element||v.is_unformatted)&&v.parent.is_inline_element)&&(v.parent.multiline_content=!0)};var H=["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","menu","nav","ol","p","pre","section","table","ul"],F=["a","audio","del","ins","map","noscript","video"];return A.prototype._do_optional_end_element=function(S){var v=null;if(!(S.is_empty_element||!S.is_start_tag||!S.parent)){if(S.tag_name==="body")v=v||this._tag_stack.try_pop("head");else if(S.tag_name==="li")v=v||this._tag_stack.try_pop("li",["ol","ul","menu"]);else if(S.tag_name==="dd"||S.tag_name==="dt")v=v||this._tag_stack.try_pop("dt",["dl"]),v=v||this._tag_stack.try_pop("dd",["dl"]);else if(S.parent.tag_name==="p"&&H.indexOf(S.tag_name)!==-1){var T=S.parent.parent;(!T||F.indexOf(T.tag_name)===-1)&&(v=v||this._tag_stack.try_pop("p"))}else S.tag_name==="rp"||S.tag_name==="rt"?(v=v||this._tag_stack.try_pop("rt",["ruby","rtc"]),v=v||this._tag_stack.try_pop("rp",["ruby","rtc"])):S.tag_name==="optgroup"?v=v||this._tag_stack.try_pop("optgroup",["select"]):S.tag_name==="option"?v=v||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):S.tag_name==="colgroup"?v=v||this._tag_stack.try_pop("caption",["table"]):S.tag_name==="thead"?(v=v||this._tag_stack.try_pop("caption",["table"]),v=v||this._tag_stack.try_pop("colgroup",["table"])):S.tag_name==="tbody"||S.tag_name==="tfoot"?(v=v||this._tag_stack.try_pop("caption",["table"]),v=v||this._tag_stack.try_pop("colgroup",["table"]),v=v||this._tag_stack.try_pop("thead",["table"]),v=v||this._tag_stack.try_pop("tbody",["table"])):S.tag_name==="tr"?(v=v||this._tag_stack.try_pop("caption",["table"]),v=v||this._tag_stack.try_pop("colgroup",["table"]),v=v||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(S.tag_name==="th"||S.tag_name==="td")&&(v=v||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),v=v||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return S.parent=this._tag_stack.get_parser_token(),v}},th.Beautifier=A,th}var Yy;function ew(){if(Yy)return _u.exports;Yy=1;var i=tw().Beautifier,n=Nv().Options;function s(r,u,c,h){var _=new i(r,u,c,h);return _.beautify()}return _u.exports=s,_u.exports.defaultOptions=function(){return new n},_u.exports}var Fy;function nw(){if(Fy)return pr;Fy=1;var i=ZL(),n=JL(),s=ew();function r(u,c,h,_){return h=h||i,_=_||n,s(u,c,h,_)}return r.defaultOptions=s.defaultOptions,pr.js=i,pr.css=n,pr.html=r,pr}var Xy;function iw(){return Xy||(Xy=1,(function(i){function n(s,r,u){var c=function(h,_){return s.js_beautify(h,_)};return c.js=s.js_beautify,c.css=r.css_beautify,c.html=u.html_beautify,c.js_beautify=s.js_beautify,c.css_beautify=r.css_beautify,c.html_beautify=u.html_beautify,c}(function(s){var r=nw();r.js_beautify=r.js,r.css_beautify=r.css,r.html_beautify=r.html,s.exports=n(r,r,r)})(i)})(Pf)),Pf.exports}var aw=iw();const sw=Th(aw);var rw=mt({name:"WhiteSpace",pattern:/\s+/,group:ye.SKIPPED}),lw=mt({name:"LineComment",pattern:/\/\/[^\n\r]*/,group:ye.SKIPPED}),uw=mt({name:"BlockComment",pattern:/\/\*[\s\S]*?\*\//,group:ye.SKIPPED}),oe=mt({name:"Identifier",pattern:/[a-zA-Z_$][a-zA-Z0-9_.\[\]]*/}),Rv=mt({name:"QuotedIdentifier",pattern:/`([^`\\]|\\.)*`/}),Tu=mt({name:"From",pattern:/from/i,longer_alt:oe}),yh=mt({name:"To",pattern:/to/i,longer_alt:oe}),vh=mt({name:"Transform",pattern:/transform/i,longer_alt:oe}),xv=mt({name:"Set",pattern:/set/i,longer_alt:oe}),Cv=mt({name:"Section",pattern:/section/i,longer_alt:oe}),Lv=mt({name:"Multiple",pattern:/multiple/i,longer_alt:oe}),wv=mt({name:"Clone",pattern:/clone/i,longer_alt:oe}),Mv=mt({name:"Delete",pattern:/delete/i,longer_alt:oe}),Uv=mt({name:"Define",pattern:/define/i,longer_alt:oe}),Iv=mt({name:"Modify",pattern:/modify/i,longer_alt:oe}),Eh=mt({name:"If",pattern:/if/i,longer_alt:oe}),kv=mt({name:"Else",pattern:/else/i,longer_alt:oe}),zv=mt({name:"True",pattern:/true/i,longer_alt:oe}),Bv=mt({name:"False",pattern:/false/i,longer_alt:oe}),Dv=mt({name:"Null",pattern:/null/i,longer_alt:oe}),jv=mt({name:"EqualsEquals",pattern:/==/}),Pv=mt({name:"EqualsEqualsEquals",pattern:/===/}),Gv=mt({name:"NotEquals",pattern:/!=/}),qv=mt({name:"NotEqualsEquals",pattern:/!==/}),Hv=mt({name:"LessThanOrEqual",pattern:/<=/}),$v=mt({name:"GreaterThanOrEqual",pattern:/>=/}),Kv=mt({name:"LessThan",pattern:/</}),Vv=mt({name:"GreaterThan",pattern:/>/}),Yv=mt({name:"And",pattern:/&&/}),Fv=mt({name:"Or",pattern:/\|\|/}),Xv=mt({name:"Not",pattern:/!/}),ls=mt({name:"Equals",pattern:/=/}),Qv=mt({name:"Plus",pattern:/\+/}),bh=mt({name:"Minus",pattern:/-/}),Zv=mt({name:"Times",pattern:/\*/}),Wv=mt({name:"Divide",pattern:/\//}),Mn=mt({name:"LParen",pattern:/\(/}),si=mt({name:"RParen",pattern:/\)/}),Su=mt({name:"Comma",pattern:/,/}),Jv=mt({name:"StringLiteral",pattern:/"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'/}),tE=mt({name:"NumericLiteral",pattern:/-?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/}),eE=[rw,lw,uw,Tu,yh,vh,xv,Cv,Lv,wv,Mv,Uv,Iv,Eh,kv,zv,Bv,Dv,Pv,jv,qv,Gv,Hv,$v,Yv,Fv,ls,Kv,Vv,Xv,Qv,bh,Zv,Wv,Mn,si,Su,Jv,tE,Rv,oe],ow=new ye(eE),cw=class extends Q2{constructor(){super(eE),this.performSelfAnalysis()}query=this.RULE("query",()=>{this.CONSUME(Tu),this.SUBRULE(this.typeFormat,{LABEL:"sourceType"}),this.CONSUME(yh),this.SUBRULE1(this.typeFormat,{LABEL:"targetType"}),this.OPTION(()=>{this.CONSUME(vh),this.MANY(()=>{this.SUBRULE(this.action)})})});typeFormat=this.RULE("typeFormat",()=>{this.SUBRULE(this.anyIdentifier,{LABEL:"name"}),this.OPTION(()=>{this.CONSUME(Mn),this.MANY_SEP({SEP:Su,DEF:()=>{this.SUBRULE(this.typeFormatParameter,{LABEL:"params"})}}),this.CONSUME(si)})});typeFormatParameter=this.RULE("typeFormatParameter",()=>{this.OR([{GATE:()=>this.LA(2).tokenType===ls,ALT:()=>this.SUBRULE(this.namedParameter)},{ALT:()=>this.SUBRULE(this.literal)}])});namedParameter=this.RULE("namedParameter",()=>{this.SUBRULE(this.anyIdentifier,{LABEL:"key"}),this.CONSUME(ls),this.SUBRULE(this.literal,{LABEL:"value"})});anyIdentifier=this.RULE("anyIdentifier",()=>{this.OR([{ALT:()=>this.CONSUME(oe)},{ALT:()=>this.CONSUME(Rv)}])});literal=this.RULE("literal",()=>{this.OR([{ALT:()=>this.CONSUME(Jv)},{ALT:()=>this.CONSUME(tE)},{ALT:()=>this.CONSUME(zv)},{ALT:()=>this.CONSUME(Bv)},{ALT:()=>this.CONSUME(Dv)}])});action=this.RULE("action",()=>{this.OR([{ALT:()=>this.SUBRULE(this.setRule)},{ALT:()=>this.SUBRULE(this.modifyRule)},{ALT:()=>this.SUBRULE(this.sectionRule)},{ALT:()=>this.SUBRULE(this.cloneRule)},{ALT:()=>this.SUBRULE(this.deleteRule)},{ALT:()=>this.SUBRULE(this.ifAction)},{ALT:()=>this.SUBRULE(this.defineRule)}])});deleteRule=this.RULE("deleteRule",()=>{this.CONSUME(Mv),this.SUBRULE(this.anyIdentifier,{LABEL:"field"})});ifAction=this.RULE("ifAction",()=>{this.CONSUME(Eh),this.CONSUME(Mn),this.SUBRULE(this.expression,{LABEL:"condition"}),this.CONSUME(si),this.CONSUME2(Mn),this.MANY(()=>{this.SUBRULE(this.action,{LABEL:"thenActions"})}),this.CONSUME2(si),this.OPTION(()=>{this.CONSUME(kv),this.CONSUME3(Mn),this.MANY2(()=>{this.SUBRULE2(this.action,{LABEL:"elseActions"})}),this.CONSUME3(si)})});cloneRule=this.RULE("cloneRule",()=>{this.CONSUME(wv),this.OPTION(()=>{this.CONSUME(Mn),this.MANY_SEP({SEP:Su,DEF:()=>{this.SUBRULE(this.anyIdentifier,{LABEL:"fields"})}}),this.CONSUME(si)})});setRule=this.RULE("setRule",()=>{this.CONSUME(xv),this.SUBRULE(this.anyIdentifier,{LABEL:"left"}),this.CONSUME(ls),this.SUBRULE(this.expression,{LABEL:"right"})});modifyRule=this.RULE("modifyRule",()=>{this.CONSUME(Iv),this.SUBRULE(this.anyIdentifier,{LABEL:"left"}),this.CONSUME(ls),this.SUBRULE(this.expression,{LABEL:"right"})});expression=this.RULE("expression",()=>{this.SUBRULE(this.logicalOr)});logicalOr=this.RULE("logicalOr",()=>{this.SUBRULE(this.logicalAnd,{LABEL:"lhs"}),this.MANY(()=>{this.CONSUME(Fv),this.SUBRULE1(this.logicalAnd,{LABEL:"rhs"})})});logicalAnd=this.RULE("logicalAnd",()=>{this.SUBRULE(this.comparison,{LABEL:"lhs"}),this.MANY(()=>{this.CONSUME(Yv),this.SUBRULE1(this.comparison,{LABEL:"rhs"})})});comparison=this.RULE("comparison",()=>{this.SUBRULE(this.addition,{LABEL:"lhs"}),this.OPTION(()=>{this.OR([{ALT:()=>this.CONSUME(jv,{LABEL:"ops"})},{ALT:()=>this.CONSUME(Pv,{LABEL:"ops"})},{ALT:()=>this.CONSUME(Gv,{LABEL:"ops"})},{ALT:()=>this.CONSUME(qv,{LABEL:"ops"})},{ALT:()=>this.CONSUME(Hv,{LABEL:"ops"})},{ALT:()=>this.CONSUME($v,{LABEL:"ops"})},{ALT:()=>this.CONSUME(Kv,{LABEL:"ops"})},{ALT:()=>this.CONSUME(Vv,{LABEL:"ops"})}]),this.SUBRULE1(this.addition,{LABEL:"rhs"})})});addition=this.RULE("addition",()=>{this.SUBRULE(this.multiplication,{LABEL:"lhs"}),this.MANY(()=>{this.OR([{ALT:()=>this.CONSUME(Qv,{LABEL:"ops"})},{ALT:()=>this.CONSUME(bh,{LABEL:"ops"})}]),this.SUBRULE1(this.multiplication,{LABEL:"rhs"})})});multiplication=this.RULE("multiplication",()=>{this.SUBRULE(this.unaryExpression,{LABEL:"lhs"}),this.MANY(()=>{this.OR([{ALT:()=>this.CONSUME(Zv,{LABEL:"ops"})},{ALT:()=>this.CONSUME(Wv,{LABEL:"ops"})}]),this.SUBRULE1(this.unaryExpression,{LABEL:"rhs"})})});unaryExpression=this.RULE("unaryExpression",()=>{this.OPTION(()=>{this.OR([{ALT:()=>this.CONSUME(bh,{LABEL:"sign"})},{ALT:()=>this.CONSUME(Xv,{LABEL:"sign"})}])}),this.SUBRULE(this.atomic)});atomic=this.RULE("atomic",()=>{this.OR([{ALT:()=>this.SUBRULE(this.literal)},{GATE:()=>this.LA(2).tokenType===Mn,ALT:()=>this.SUBRULE(this.functionCall)},{ALT:()=>this.SUBRULE(this.anyIdentifier)},{ALT:()=>{this.CONSUME(Mn),this.SUBRULE(this.expression),this.CONSUME(si)}}])});functionCall=this.RULE("functionCall",()=>{this.OR([{ALT:()=>this.CONSUME(oe,{LABEL:"name"})},{ALT:()=>this.CONSUME(Eh,{LABEL:"name"})}]),this.CONSUME(Mn),this.MANY_SEP({SEP:Su,DEF:()=>{this.SUBRULE(this.expression,{LABEL:"args"})}}),this.CONSUME(si)});sectionRule=this.RULE("sectionRule",()=>{this.CONSUME(Cv),this.OPTION(()=>{this.CONSUME(Lv)}),this.SUBRULE(this.anyIdentifier,{LABEL:"sectionName"}),this.CONSUME(Mn),this.OPTION1(()=>{this.CONSUME(Tu,{LABEL:"subqueryFrom"}),this.SUBRULE(this.typeFormat,{LABEL:"subquerySourceType"}),this.CONSUME(yh,{LABEL:"subqueryTo"}),this.SUBRULE1(this.typeFormat,{LABEL:"subqueryTargetType"}),this.OPTION2(()=>{this.CONSUME(vh,{LABEL:"subqueryTransform"})})}),this.MANY(()=>{this.SUBRULE(this.action)}),this.CONSUME(si),this.OPTION3(()=>{this.CONSUME1(Tu,{LABEL:"followFrom"}),this.SUBRULE2(this.anyIdentifier,{LABEL:"followPath"})})});defineRule=this.RULE("defineRule",()=>{this.CONSUME(Uv),this.SUBRULE(this.anyIdentifier,{LABEL:"left"}),this.CONSUME(ls),this.SUBRULE(this.expression,{LABEL:"right"})})},br=new cw,fw={substring:i=>{if(i.length<2)throw new Error("substring() requires at least 2 arguments (string, start, [length])");let[n,s,r]=i;return r!==void 0?`String(${n}).slice(${s}, (${s}) + (${r}))`:`String(${n}).slice(${s})`},if:i=>{if(i.length!==3)throw new Error("if() requires exactly 3 arguments (condition, trueValue, falseValue)");let[n,s,r]=i;return`((${n}) ? (${s}) : (${r}))`},text:i=>{if(i.length!==1)throw new Error("text() requires exactly 1 argument (string or number)");let[n]=i;return`String(${n})`},replace:i=>{if(i.length!==3)throw new Error("replace() requires exactly 3 arguments (string, search, replacement)");let[n,s,r]=i;return`String(${n}).replace(${s}, ${r})`},number:i=>{if(i.length!==1)throw new Error("number() requires exactly 1 argument (string)");let[n]=i;return`Number(${n})`},extractnumber:i=>{if(i.length!==1)throw new Error("extractNumber() requires exactly 1 argument (string)");let[n]=i;return`Number(String(${n}).match(/\\d+(\\.\\d+)?/)[0])`},uppercase:i=>{if(i.length!==1)throw new Error("uppercase() requires exactly 1 argument (string)");let[n]=i;return`String(${n}).toUpperCase()`},lowercase:i=>{if(i.length!==1)throw new Error("lowercase() requires exactly 1 argument (string)");let[n]=i;return`String(${n}).toLowerCase()`},xmlnode:i=>{if(i.length<1)throw new Error("xmlnode() requires at least 1 argument (string)");let n=i[0],s=[...i.slice(1)],r="";if(s.length>0){let[u,c]=[s,2];u=[...Array(Math.ceil(u.length/c))].map(h=>u.splice(0,c)).map(([h,_])=>{let d=h;return h.startsWith('"')||h.startsWith("'")?d=`"$${h.slice(1,-1)}"`:d=`["$"+${h}]`,`${d}:${_||"null"}`}),r=","+u.join(",")}else return n;return`{_:${n}${r}}`},split:i=>{if(i.length<1)throw new Error("split() requires at least 1 argument (string)");let[n,s,r]=i,u=s!==void 0?s:'""',c=r!==void 0?`, ${r}`:"";return`String(${n}).split(${u}${c})`},to_base64:i=>{if(i.length!==1)throw new Error("to_base64() requires exactly 1 argument (string)");let[n]=i;return`(typeof btoa === 'function' ? btoa(unescape(encodeURIComponent(String(${n})))) : Buffer.from(String(${n}), 'utf-8').toString('base64'))`},from_base64:i=>{if(i.length!==1)throw new Error("from_base64() requires exactly 1 argument (string)");let[n]=i;return`(typeof atob === 'function' ? decodeURIComponent(escape(atob(String(${n})))) : Buffer.from(String(${n}), 'base64').toString('utf-8'))`},aslist:i=>{if(i.length!==1)throw new Error("aslist() requires exactly 1 argument");let[n]=i;return`(Array.isArray(${n}) ? ${n} : (${n} == null ? [] : [${n}]))`}},hw=br.getBaseCstVisitorConstructor(),dw=class extends hw{readFrom="source";constructor(){super(),this.validateVisitor()}visitWithContext(i,n){let s=this.readFrom;this.readFrom=n.readFrom;let r=this.visit(i);return this.readFrom=s,r}query(i){let n=i.action?i.action.map(d=>this.visit(d)):[];i.Transform||n.push("Object.assign(target, source);");let s=this.visit(i.sourceType),r=this.visit(i.targetType),u=s.name,c=r.name,h=JSON.stringify(s.options),_=JSON.stringify(r.options);return{code:`
170
170
  return function(input, env) {
171
171
  // 1. Parse Input
172
- const source = env.parse('${u}', input);
172
+ const source = env.parse('${u}', input, ${h});
173
173
  const _rootSource = source;
174
174
 
175
175
  // 2. Transform
@@ -179,33 +179,33 @@ You passed in: '`+this.raw_options[r]+"'");return h},i.prototype._is_valid_selec
179
179
  `)}
180
180
 
181
181
  // 3. Serialize Output
182
- return env.serialize('${c}', target ${h!=="undefined"?`, { rootGenerated: ${h} }`:""} );
182
+ return env.serialize('${c}', target, ${_});
183
183
  }
184
- `,sourceType:s,targetType:r}}typeFormat(i){let n=this.visit(i.name),s;return i.parameter&&(s=i.parameter[0].image.slice(1,-1)),{name:n.name,parameter:s}}genAccess(i,n){return n.quoted||n.name.includes("-")&&!n.name.includes(".")&&!n.name.includes("[")?`${i}["${n.name}"]`:`${i}.${n.name}`}anyIdentifier(i){if(i.Identifier)return{name:i.Identifier[0].image,quoted:!1};if(i.QuotedIdentifier)return{name:i.QuotedIdentifier[0].image.slice(1,-1).replace(/\\(.)/g,"$1"),quoted:!0}}literal(i){if(i.StringLiteral)return i.StringLiteral[0].image;if(i.NumericLiteral)return i.NumericLiteral[0].image}action(i){if(i.setRule)return this.visit(i.setRule);if(i.modifyRule)return this.visit(i.modifyRule);if(i.sectionRule)return this.visit(i.sectionRule);if(i.cloneRule)return this.visit(i.cloneRule);if(i.ifAction)return this.visit(i.ifAction);if(i.deleteRule)return this.visit(i.deleteRule);if(i.defineRule)return this.visit(i.defineRule)}deleteRule(i){let n=this.visit(i.field);return`delete ${this.genAccess("target",n)};`}ifAction(i){let n=this.visit(i.condition),s=i.thenActions?i.thenActions.map(u=>this.visit(u)).join(`
184
+ `,sourceType:s,targetType:r}}typeFormat(i){let n=this.visit(i.name),s={params:[]};return i.params&&i.params.forEach(r=>{let u=this.visit(r);typeof u=="object"&&"key"in u?s[u.key]=this.parseLiteral(u.value):s.params.push(this.parseLiteral(u))}),{name:n.name,options:s}}typeFormatParameter(i){if(i.namedParameter)return this.visit(i.namedParameter);if(i.literal)return this.visit(i.literal)}namedParameter(i){let n=this.visit(i.key).name,s=this.visit(i.value);return{key:n,value:s}}parseLiteral(i){if(i==="true")return!0;if(i==="false")return!1;if(i==="null")return null;if(i.startsWith('"')&&i.endsWith('"')||i.startsWith("'")&&i.endsWith("'"))return i.slice(1,-1);let n=Number(i);return isNaN(n)?i:n}genAccess(i,n){return n.quoted||n.name.includes("-")&&!n.name.includes(".")&&!n.name.includes("[")?`${i}["${n.name}"]`:`${i}.${n.name}`}anyIdentifier(i){if(i.Identifier)return{name:i.Identifier[0].image,quoted:!1};if(i.QuotedIdentifier)return{name:i.QuotedIdentifier[0].image.slice(1,-1).replace(/\\(.)/g,"$1"),quoted:!0}}literal(i){if(i.StringLiteral)return i.StringLiteral[0].image;if(i.NumericLiteral)return i.NumericLiteral[0].image;if(i.True)return"true";if(i.False)return"false";if(i.Null)return"null"}action(i){if(i.setRule)return this.visit(i.setRule);if(i.modifyRule)return this.visit(i.modifyRule);if(i.sectionRule)return this.visit(i.sectionRule);if(i.cloneRule)return this.visit(i.cloneRule);if(i.ifAction)return this.visit(i.ifAction);if(i.deleteRule)return this.visit(i.deleteRule);if(i.defineRule)return this.visit(i.defineRule)}deleteRule(i){let n=this.visit(i.field);return`delete ${this.genAccess("target",n)};`}ifAction(i){let n=this.visit(i.condition),s=i.thenActions?i.thenActions.map(u=>this.visit(u)).join(`
185
185
  `):"",r=i.elseActions?`else { ${i.elseActions.map(u=>this.visit(u)).join(`
186
186
  `)} }`:"";return`if (${n}) {
187
187
  ${s}
188
188
  } ${r}`}cloneRule(i){return i.fields?i.fields.map(n=>this.visit(n)).map(n=>`${this.genAccess("target",n)} = ${this.genAccess("source",n)};`).join(`
189
- `):"Object.assign(target, source);"}setRule(i){let n=this.visit(i.left),s=this.visit(i.right);return`${this.genAccess("target",n)} = ${s};`}modifyRule(i){let n=this.visit(i.left),s=this.visitWithContext(i.right,{readFrom:"target"});return`${this.genAccess("target",n)} = ${s};`}defineRule(i){let n=this.visit(i.left),s=this.visit(i.right);return`${this.genAccess("source",n)} = ${s};`}expression(i){return this.visit(i.logicalOr)}logicalOr(i){let n=this.visit(i.lhs);if(i.rhs)for(let s=0;s<i.rhs.length;s++){let r=this.visit(i.rhs[s]);n=`${n} || ${r}`}return n}logicalAnd(i){let n=this.visit(i.lhs);if(i.rhs)for(let s=0;s<i.rhs.length;s++){let r=this.visit(i.rhs[s]);n=`${n} && ${r}`}return n}comparison(i){let n=this.visit(i.lhs);if(i.rhs){let s=i.ops[0].image,r=this.visit(i.rhs[0]);n=`${n} ${s} ${r}`}return n}addition(i){let n=this.visit(i.lhs);if(i.rhs)for(let s=0;s<i.rhs.length;s++){let r=i.ops[s].image,u=this.visit(i.rhs[s]);n=`${n} ${r} ${u}`}return n}multiplication(i){let n=this.visit(i.lhs);if(i.rhs)for(let s=0;s<i.rhs.length;s++){let r=i.ops[s].image,u=this.visit(i.rhs[s]);n=`${n} ${r} ${u}`}return n}unaryExpression(i){let n=this.visit(i.atomic);return i.sign?`${i.sign[0].image}${n}`:n}atomic(i){if(i.literal)return this.visit(i.literal);if(i.functionCall)return this.visit(i.functionCall);if(i.anyIdentifier){let n=this.visit(i.anyIdentifier);if(["true","false","null"].includes(n.name)&&!n.quoted)return n.name;if(!n.quoted){if(n.name==="_source"||n.name.startsWith("_source.")||n.name.startsWith("_source["))return`_rootSource${n.name.substring(7)}`;if(n.name==="_target"||n.name.startsWith("_target.")||n.name.startsWith("_target["))return`_rootTarget${n.name.substring(7)}`}return this.genAccess(this.readFrom,n)}if(i.expression)return`(${this.visit(i.expression)})`}functionCall(i){let n=i.name[0].image,s=(n.startsWith("`")?n.slice(1,-1):n).toLowerCase(),r=i.args?i.args.map(c=>this.visit(c)):[],u=uw[s];if(u)return u(r);throw new Error(`Unknown function: ${n}`)}sectionRule(i){let n=this.visit(i.sectionName);n.name;let s=this.genAccess("target",n),r=i.followPath?this.visit(i.followPath):n;r.name==="parent"||""+r.name;let u=r.name==="parent"?"source":this.genAccess("source",r),c=!!i.Multiple,h=i.action?i.action.map(_=>this.visit(_)):[];if(i.subqueryFrom){let _=this.visit(i.subquerySourceType),d=this.visit(i.subqueryTargetType);i.subqueryTransform||h.push("Object.assign(target, source);");let g=d.parameter?`, { rootGenerated: "${d.parameter}" }`:"";return c?`
189
+ `):"Object.assign(target, source);"}setRule(i){let n=this.visit(i.left),s=this.visit(i.right);return`${this.genAccess("target",n)} = ${s};`}modifyRule(i){let n=this.visit(i.left),s=this.visitWithContext(i.right,{readFrom:"target"});return`${this.genAccess("target",n)} = ${s};`}defineRule(i){let n=this.visit(i.left),s=this.visit(i.right);return`${this.genAccess("source",n)} = ${s};`}expression(i){return this.visit(i.logicalOr)}logicalOr(i){let n=this.visit(i.lhs);if(i.rhs)for(let s=0;s<i.rhs.length;s++){let r=this.visit(i.rhs[s]);n=`${n} || ${r}`}return n}logicalAnd(i){let n=this.visit(i.lhs);if(i.rhs)for(let s=0;s<i.rhs.length;s++){let r=this.visit(i.rhs[s]);n=`${n} && ${r}`}return n}comparison(i){let n=this.visit(i.lhs);if(i.rhs){let s=i.ops[0].image,r=this.visit(i.rhs[0]);n=`${n} ${s} ${r}`}return n}addition(i){let n=this.visit(i.lhs);if(i.rhs)for(let s=0;s<i.rhs.length;s++){let r=i.ops[s].image,u=this.visit(i.rhs[s]);n=`${n} ${r} ${u}`}return n}multiplication(i){let n=this.visit(i.lhs);if(i.rhs)for(let s=0;s<i.rhs.length;s++){let r=i.ops[s].image,u=this.visit(i.rhs[s]);n=`${n} ${r} ${u}`}return n}unaryExpression(i){let n=this.visit(i.atomic);return i.sign?`${i.sign[0].image}${n}`:n}atomic(i){if(i.literal)return this.visit(i.literal);if(i.functionCall)return this.visit(i.functionCall);if(i.anyIdentifier){let n=this.visit(i.anyIdentifier);if(["true","false","null"].includes(n.name)&&!n.quoted)return n.name;if(!n.quoted){if(n.name==="_source"||n.name.startsWith("_source.")||n.name.startsWith("_source["))return`_rootSource${n.name.substring(7)}`;if(n.name==="_target"||n.name.startsWith("_target.")||n.name.startsWith("_target["))return`_rootTarget${n.name.substring(7)}`}return this.genAccess(this.readFrom,n)}if(i.expression)return`(${this.visit(i.expression)})`}functionCall(i){let n=i.name[0].image,s=(n.startsWith("`")?n.slice(1,-1):n).toLowerCase(),r=i.args?i.args.map(c=>this.visit(c)):[],u=fw[s];if(u)return u(r);throw new Error(`Unknown function: ${n}`)}sectionRule(i){let n=this.visit(i.sectionName);n.name;let s=this.genAccess("target",n),r=i.followPath?this.visit(i.followPath):n;r.name==="parent"||""+r.name;let u=r.name==="parent"?"source":this.genAccess("source",r),c=!!i.Multiple,h=i.action?i.action.map(_=>this.visit(_)):[];if(i.subqueryFrom){let _=this.visit(i.subquerySourceType),d=this.visit(i.subqueryTargetType);i.subqueryTransform||h.push("Object.assign(target, source);");let g=JSON.stringify(_.options),b=JSON.stringify(d.options);return c?`
190
190
  if (${u} && Array.isArray(${u})) {
191
191
  ${s} = ${u}.map(item => {
192
- const subSource = env.parse('${_.name}', item);
192
+ const subSource = env.parse('${_.name}', item, ${g});
193
193
  const source = subSource;
194
194
  const target = {};
195
195
  ${h.join(`
196
196
  `)}
197
- return env.serialize('${d.name}', target${g});
197
+ return env.serialize('${d.name}', target, ${b});
198
198
  });
199
199
  }
200
200
  `:`
201
201
  if (${u}) {
202
202
  ${s} = (function(innerSource) {
203
- const subSource = env.parse('${_.name}', innerSource);
203
+ const subSource = env.parse('${_.name}', innerSource, ${g});
204
204
  const source = subSource;
205
205
  const target = {};
206
206
  ${h.join(`
207
207
  `)}
208
- return env.serialize('${d.name}', target${g});
208
+ return env.serialize('${d.name}', target, ${b});
209
209
  })(${u});
210
210
  }
211
211
  `}return c?`
@@ -228,7 +228,7 @@ You passed in: '`+this.raw_options[r]+"'");return h},i.prototype._is_valid_selec
228
228
  return target;
229
229
  })(${u});
230
230
  }
231
- `}},fw=new cw,Jv={};function Jh(i,n){Jv[i.toLowerCase()]=n}function Zy(i){let n=Jv[i.toLowerCase()];if(!n)throw new Error(`No adapter found for format: ${i}`);return n}Jh("json",{parse:i=>typeof i!="string"?i:JSON.parse(i),serialize:i=>JSON.stringify(i,null,2)});var hw=new qi({ignoreAttributes:!1,attributeNamePrefix:"$",textNodeName:"_",format:!0});Jh("xml",{parse:i=>typeof i!="string"?i:new zL({ignoreAttributes:!1,removeNSPrefix:!0}).parse(i),serialize:(i,n)=>{let s=n?.rootGenerated??"root";return hw.build({[s]:i})}});Jh("object",{parse:i=>i,serialize:i=>i});async function dw(i,n){let s=rw.tokenize(i);if(s.errors.length>0)throw new Error(`Lexing errors: ${s.errors[0].message}`);Er.input=s.tokens;let r=Er.query();if(Er.errors.length>0)throw new Error(`Parsing errors: ${Er.errors[0].message}`);let{code:u}=fw.visit(r),c=nw.js(u,{indent_size:2,space_in_empty_paren:!0,end_with_newline:!0});return _w(c)}function _w(i){let n=new Function(i)(),s={parse:(u,c)=>Zy(u).parse(c),serialize:(u,c,h)=>Zy(u).serialize(c,h)},r=(u=>n(u,s));return r.code=i,r}function eh(i,...n){return i.reduce((s,r,u)=>s+r+(n[u]??""),"")}const us=[{name:"Customer Profile (JSON to XML)",query:eh`from json
231
+ `}},_w=new dw,nE={};function Wh(i,n){nE[i.toLowerCase()]=n}function Qy(i){let n=nE[i.toLowerCase()];if(!n)throw new Error(`No adapter found for format: ${i}`);return n}Wh("json",{parse:i=>typeof i!="string"?i:JSON.parse(i),serialize:i=>JSON.stringify(i,null,2)});var pw=new hi({ignoreAttributes:!1,attributeNamePrefix:"$",textNodeName:"_",format:!0});Wh("xml",{parse:(i,n)=>typeof i!="string"?i:new jL({ignoreAttributes:!1,removeNSPrefix:!0,...n}).parse(i),serialize:(i,n)=>{let s=n?.rootGenerated??n?.params?.[0]??"root";return(n?new hi({ignoreAttributes:!1,attributeNamePrefix:"$",textNodeName:"_",format:!0,...n}):pw).build({[s]:i})}});Wh("object",{parse:i=>i,serialize:i=>i});async function gw(i,n){let s=ow.tokenize(i);if(s.errors.length>0)throw new Error(`Lexing errors: ${s.errors[0].message}`);br.input=s.tokens;let r=br.query();if(br.errors.length>0)throw new Error(`Parsing errors: ${br.errors[0].message}`);let{code:u}=_w.visit(r),c=sw.js(u,{indent_size:2,space_in_empty_paren:!0,end_with_newline:!0});return mw(c)}function mw(i){let n=new Function(i)(),s={parse:(u,c,h)=>Qy(u).parse(c,h),serialize:(u,c,h)=>Qy(u).serialize(c,h)},r=(u=>n(u,s));return r.code=i,r}function nh(i,...n){return i.reduce((s,r,u)=>s+r+(n[u]??""),"")}const os=[{name:"Customer Profile (JSON to XML)",query:nh`from json
232
232
  to xml("UserProfile")
233
233
  transform
234
234
  section profile(
@@ -271,14 +271,14 @@ transform
271
271
  set accountType = if(visits > 40, "Frequent", "Casual")
272
272
  set lastSeen = substring(lastLogin, 0, 10)
273
273
  ) from metrics
274
- ) from customer`,source:JSON.stringify({customer:{id:"CUST-001",name:"Jane Doe",isActive:!0,contact:{email:"jane.doe@example.com",phone:"+1-555-0199"},addresses:[{type:"billing",street:"123 Main St",city:"Metropolis",zip:"10001",primary:!0},{type:"shipping",street:"456 Ocean Dr",city:"Gotham",zip:"10200",primary:!1}],orders:[{id:"ORD-2023-001",date:"2023-10-15",total:150.5,status:"shipped",items:[{sku:"WIDGET-A",qty:2,price:50},{sku:"GADGET-B",qty:1,price:50.5}]},{id:"ORD-2023-009",date:"2023-11-01",total:200,status:"pending",items:[{sku:"LUX-ITEM",qty:1,price:200}]}],metrics:{visits:42,lastLogin:"2023-11-05T10:00:00Z",tags:["vip","early-adopter"]}}},null,2)},{name:"Simple Math (JSON to JSON)",query:eh`from json
274
+ ) from customer`,source:JSON.stringify({customer:{id:"CUST-001",name:"Jane Doe",isActive:!0,contact:{email:"jane.doe@example.com",phone:"+1-555-0199"},addresses:[{type:"billing",street:"123 Main St",city:"Metropolis",zip:"10001",primary:!0},{type:"shipping",street:"456 Ocean Dr",city:"Gotham",zip:"10200",primary:!1}],orders:[{id:"ORD-2023-001",date:"2023-10-15",total:150.5,status:"shipped",items:[{sku:"WIDGET-A",qty:2,price:50},{sku:"GADGET-B",qty:1,price:50.5}]},{id:"ORD-2023-009",date:"2023-11-01",total:200,status:"pending",items:[{sku:"LUX-ITEM",qty:1,price:200}]}],metrics:{visits:42,lastLogin:"2023-11-05T10:00:00Z",tags:["vip","early-adopter"]}}},null,2)},{name:"Simple Math (JSON to JSON)",query:nh`from json
275
275
  to json
276
276
  transform
277
277
  set sum = a + b
278
278
  set difference = a - b
279
279
  set product = a * b
280
280
  set quotient = a / b
281
- set formatted = "The result is " + (a + b)`,source:JSON.stringify({a:10,b:5},null,2)},{name:"Books (XML to JSON)",query:eh`from xml
281
+ set formatted = "The result is " + (a + b)`,source:JSON.stringify({a:10,b:5},null,2)},{name:"Books (XML to JSON)",query:nh`from xml
282
282
  to json
283
283
  transform
284
284
  section library(
@@ -298,7 +298,7 @@ transform
298
298
  <author>George Orwell</author>
299
299
  <year>1949</year>
300
300
  </book>
301
- </catalog>`}];var pw=[{name:"from",category:"control",doc:{signature:"from <format>",description:"Specifies the input data format.",parameters:[{name:"format",description:"If used as first keyword: The starting format, one of `json`, `xml`, or `object`. When used after a section, defines its source"}],example:"from json to xml"}},{name:"to",category:"control",doc:{signature:"to <format>",description:"Specifies the output data format.",parameters:[{name:"format",description:"One of: `json`, `xml`, or `object`"}],example:"from json to xml"}},{name:"transform",category:"control",doc:{signature:"transform",description:"Begins the transformation block containing actions.",example:`transform
301
+ </catalog>`}];var yw=[{name:"from",category:"control",doc:{signature:"from <format>",description:"Specifies the input data format.",parameters:[{name:"format",description:"If used as first keyword: The starting format, one of `json`, `xml`, or `object`. When used after a section, defines its source"}],example:"from json to xml"}},{name:"to",category:"control",doc:{signature:"to <format>",description:"Specifies the output data format.",parameters:[{name:"format",description:"One of: `json`, `xml`, or `object`"}],example:"from json to xml"}},{name:"transform",category:"control",doc:{signature:"transform",description:"Begins the transformation block containing actions.",example:`transform
302
302
  set name = firstName`}},{name:"set",category:"action",doc:{signature:"set <target> = <expression>",description:"Assigns a value to a field in the output.",parameters:[{name:"target",description:"The field name to set"},{name:"expression",description:"The value or expression to assign"}],example:'set fullName = firstName + " " + lastName'}},{name:"section",category:"action",doc:{signature:"section [multiple] <name>( [subquery] <actions> ) [from <path>]",description:"Creates a nested object or array in the output. Can optionally include a subquery for format conversion.",parameters:[{name:"multiple",description:"(Optional) Treat as array mapping"},{name:"name",description:"The section/field name"},{name:"subquery",description:"(Optional) Nested query: from <format> to <format> [transform]"},{name:"actions",description:"Actions to perform within the section"},{name:"from",description:"(Optional) Source path for the section data"}],example:`section metadata(
303
303
  from xml to object
304
304
  transform
@@ -316,5 +316,5 @@ set totalWithTax = total * (1 + taxRate)`}},{name:"if",category:"control",doc:{s
316
316
  ) else (
317
317
  ...
318
318
  )`}},{name:"modify",category:"action",doc:{signature:"modify <target> = <expression>",description:"Modifies a field in the output by reading from the target (not source). Useful for post-processing already-mapped values.",parameters:[{name:"target",description:"The field name to modify"},{name:"expression",description:"The expression to assign (reads from target, not source)"}],example:`set total = price * quantity
319
- modify total = total * 1.10`}}],gw=()=>pw.map(i=>i.name),mw=[{name:"substring",doc:{signature:"substring(str, start, [length])",description:"Extracts a portion of a string. Supports negative indices.",parameters:[{name:"str",description:"The source string"},{name:"start",description:"Starting index (0-based, negative counts from end)"},{name:"length",description:"(Optional) Number of characters to extract"}],returns:"string",example:`substring("Hello World", 0, 5) // "Hello"
320
- substring("Hello World", -5) // "World"`}},{name:"split",doc:{signature:"split(str, [separator], [limit])",description:"Splits a string into an array.",parameters:[{name:"str",description:"The string to split"},{name:"separator",description:'(Optional) Delimiter string. Default: ""'},{name:"limit",description:"(Optional) Maximum number of splits"}],returns:"array",example:'split("a,b,c", ",") // ["a", "b", "c"]'}},{name:"replace",doc:{signature:"replace(str, search, replacement)",description:"Replaces occurrences in a string.",parameters:[{name:"str",description:"The source string"},{name:"search",description:"The substring to find"},{name:"replacement",description:"The replacement string"}],returns:"string",example:'replace("Hello World", "World", "MorphQL") // "Hello MorphQL"'}},{name:"text",doc:{signature:"text(value)",description:"Converts a value to a string.",parameters:[{name:"value",description:"The value to convert"}],returns:"string",example:'text(123) // "123"'}},{name:"number",doc:{signature:"number(value)",description:"Converts a value to a number.",parameters:[{name:"value",description:"The value to convert"}],returns:"number",example:'number("42") // 42'}},{name:"uppercase",doc:{signature:"uppercase(str)",description:"Converts a string to uppercase.",parameters:[{name:"str",description:"The string to convert"}],returns:"string",example:'uppercase("hello") // "HELLO"'}},{name:"lowercase",doc:{signature:"lowercase(str)",description:"Converts a string to lowercase.",parameters:[{name:"str",description:"The string to convert"}],returns:"string",example:'lowercase("HELLO") // "hello"'}},{name:"extractnumber",doc:{signature:"extractnumber(str)",description:"Extracts the first numeric sequence from a string.",parameters:[{name:"str",description:"The string to extract from"}],returns:"number",example:'extractnumber("Price: 100USD") // 100'}},{name:"xmlnode",doc:{signature:"xmlnode(value, [attrKey, attrVal, ...])",description:"Wraps a value for XML output with optional attributes.",parameters:[{name:"value",description:"The node content"},{name:"attrKey, attrVal",description:"(Optional) Pairs of attribute keys and values"}],returns:"XML node",example:'xmlnode(content, "id", 1, "type", "text")'}},{name:"to_base64",doc:{signature:"to_base64(value)",description:"Encodes a string value to Base64.",parameters:[{name:"value",description:"The string to encode"}],returns:"string",example:'to_base64("hello") // "aGVsbG8="'}},{name:"from_base64",doc:{signature:"from_base64(value)",description:"Decodes a Base64 string value.",parameters:[{name:"value",description:"The Base64 string to decode"}],returns:"string",example:'from_base64("aGVsbG8=") // "hello"'}},{name:"aslist",doc:{signature:"aslist(value)",description:"Ensures a value is an array. Useful for XML nodes that might be a single object or an array.",parameters:[{name:"value",description:"The value to normalize"}],returns:"array",example:"aslist(items) // Always returns an array"}}],yw=()=>mw.map(i=>i.name),vw=[{symbol:"===",category:"comparison",precedence:7},{symbol:"!==",category:"comparison",precedence:7},{symbol:"==",category:"comparison",precedence:7},{symbol:"!=",category:"comparison",precedence:7},{symbol:"<=",category:"comparison",precedence:6},{symbol:">=",category:"comparison",precedence:6},{symbol:"<",category:"comparison",precedence:6},{symbol:">",category:"comparison",precedence:6},{symbol:"&&",category:"logical",precedence:5},{symbol:"||",category:"logical",precedence:4},{symbol:"!",category:"logical",precedence:9},{symbol:"+",category:"arithmetic",precedence:10},{symbol:"-",category:"arithmetic",precedence:10},{symbol:"*",category:"arithmetic",precedence:11},{symbol:"/",category:"arithmetic",precedence:11},{symbol:"=",category:"assignment",precedence:1}],Ew=()=>vw.map(i=>i.symbol);function bw(){return{keywords:gw(),builtinFunctions:yw(),operators:Ew(),symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/\/\/.*$/,"comment"],[/\/\*/,"comment","@comment"],[/[a-zA-Z_$][\w$]*/,{cases:{"@keywords":"keyword","@builtinFunctions":"predefined","@default":"identifier"}}],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string_double"],[/'/,"string","@string_single"],[/-?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/,"number"],[/[{}()\[\]]/,"@brackets"],[/@symbols/,{cases:{"@operators":"operator","@default":""}}]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],string_double:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],string_single:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,"string","@pop"]]}}}const Tw=bw();function Sw(i){i.languages.register({id:"morphql"}),i.languages.setMonarchTokensProvider("morphql",Tw),i.languages.setLanguageConfiguration("morphql",{comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["(",")"],["{","}"],["[","]"]],autoClosingPairs:[{open:"(",close:")"},{open:"{",close:"}"},{open:"[",close:"]"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"(",close:")"},{open:"{",close:"}"},{open:"[",close:"]"},{open:'"',close:'"'},{open:"'",close:"'"}]})}function Aw({initialQuery:i=us[0].query,initialSourceData:n=us[0].source,className:s="",onQueryChange:r,onSourceDataChange:u}){const[c,h]=ct.useState(i),[_,d]=ct.useState(n),[g,b]=ct.useState(!1),[E,A]=ct.useState({result:"",generatedCode:"",error:null}),j=_.trim().startsWith("<")?"xml":"json";ct.useEffect(()=>{h(i)},[i]),ct.useEffect(()=>{d(n)},[n]),ct.useEffect(()=>{async function T(){try{const w=await dw(c),I=w(_);A({result:typeof I=="string"?I:JSON.stringify(I,null,2),generatedCode:w.code,error:null})}catch(w){A({result:"",generatedCode:"",error:w instanceof Error?w.message:String(w)})}}T()},[c,_]);const H=T=>{const w=us.find(I=>I.name===T.target.value);w&&(h(w.query),d(w.source),r?.(w.query),u?.(w.source))},X=()=>{navigator.clipboard.writeText(E.result),b(!0),setTimeout(()=>b(!1),2e3)},S=T=>{const w=T||"";h(w),r?.(w)},v=T=>{const w=T||"";d(w),u?.(w)};return st.jsxs("div",{className:`flex flex-col h-full bg-[#0f172a] text-slate-200 overflow-hidden ${s}`,children:[st.jsxs("header",{className:"flex items-center justify-between px-6 py-4 border-b border-slate-800 bg-[#1e293b]",children:[st.jsxs("div",{className:"flex items-center gap-3",children:[st.jsx("div",{className:"w-8 h-8 rounded-lg bg-indigo-500 flex items-center justify-center shadow-lg shadow-indigo-500/20",children:st.jsx(rS,{className:"w-5 h-5 text-white fill-current"})}),st.jsxs("div",{children:[st.jsx("h1",{className:"text-lg font-bold bg-clip-text text-transparent bg-gradient-to-r from-white to-slate-400",children:"MorphQL Playground"}),st.jsx("p",{className:"text-xs text-slate-400 font-medium",children:"High-Performance Query-to-Code Engine"})]})]}),st.jsxs("div",{className:"flex items-center gap-4",children:[st.jsxs("select",{className:"text-xs font-semibold px-3 py-1.5 rounded-full bg-slate-800 hover:bg-slate-700 transition-colors border border-slate-700 text-slate-200 outline-none cursor-pointer",onChange:H,defaultValue:"",children:[st.jsx("option",{value:"",disabled:!0,children:"Load Example..."}),us.map(T=>st.jsx("option",{value:T.name,children:T.name},T.name))]}),st.jsx("a",{href:"https://hyperwindmill.github.io/morphql",className:"text-xs font-semibold px-3 py-1.5 rounded-full bg-slate-800 hover:bg-slate-700 transition-colors border border-slate-700",children:"Documentation"})]})]}),st.jsxs("main",{className:"flex-1 flex overflow-hidden",children:[st.jsxs("div",{className:"w-1/2 flex flex-col border-r border-slate-800",children:[st.jsxs("div",{className:"h-1/2 flex flex-col border-b border-slate-800",children:[st.jsxs("div",{className:"flex items-center gap-2 px-4 py-2 bg-slate-900 border-b border-slate-800",children:[st.jsx(nS,{className:"w-4 h-4 text-indigo-400"}),st.jsx("span",{className:"text-xs font-bold uppercase tracking-wider text-slate-400",children:"Morph Query"})]}),st.jsx("div",{className:"flex-1 overflow-hidden pt-2",children:st.jsx(iu,{theme:"vs-dark",defaultLanguage:"morphql",value:c,onChange:S,beforeMount:T=>{Sw(T)},options:{minimap:{enabled:!1},fontSize:13,lineNumbers:"on",scrollBeyondLastLine:!1,automaticLayout:!0,padding:{top:10}}})})]}),st.jsxs("div",{className:"h-1/2 flex flex-col",children:[st.jsxs("div",{className:"flex items-center gap-2 px-4 py-2 bg-slate-900 border-b border-slate-800",children:[st.jsx(mm,{className:"w-4 h-4 text-amber-400"}),st.jsx("span",{className:"text-xs font-bold uppercase tracking-wider text-slate-400",children:"Generated JS"})]}),st.jsx("div",{className:"flex-1 overflow-hidden pt-2",children:st.jsx(iu,{theme:"vs-dark",defaultLanguage:"javascript",value:E.generatedCode,options:{readOnly:!0,minimap:{enabled:!1},fontSize:13,lineNumbers:"on",scrollBeyondLastLine:!1,automaticLayout:!0,padding:{top:10}}})})]})]}),st.jsxs("div",{className:"w-1/2 flex flex-col overflow-hidden",children:[st.jsxs("div",{className:"h-1/2 flex flex-col border-b border-slate-800",children:[st.jsxs("div",{className:"flex items-center gap-2 px-4 py-2 bg-slate-900 border-b border-slate-800",children:[st.jsx(tS,{className:"w-4 h-4 text-emerald-400"}),st.jsxs("span",{className:"text-xs font-bold uppercase tracking-wider text-slate-400",children:["Source Data (",j.toUpperCase(),")"]})]}),st.jsx("div",{className:"flex-1 overflow-hidden pt-2",children:st.jsx(iu,{theme:"vs-dark",language:j==="json"?"json":"xml",value:_,onChange:v,options:{minimap:{enabled:!1},fontSize:14,lineNumbers:"on",scrollBeyondLastLine:!1,automaticLayout:!0,padding:{top:10}}})})]}),st.jsxs("div",{className:"h-1/2 flex flex-col relative",children:[st.jsxs("div",{className:"flex items-center justify-between px-4 py-2 bg-slate-900 border-b border-slate-800",children:[st.jsxs("div",{className:"flex items-center gap-2",children:[st.jsx(mm,{className:"w-4 h-4 text-amber-400"}),st.jsx("span",{className:"text-xs font-bold uppercase tracking-wider text-slate-400",children:"Transformation Result"})]}),st.jsx("button",{onClick:X,className:"p-1 hover:bg-slate-800 rounded transition-colors text-slate-400 hover:text-white",title:"Copy Result",children:g?st.jsx(F1,{className:"w-4 h-4 text-emerald-400"}):st.jsx(W1,{className:"w-4 h-4"})})]}),st.jsx("div",{className:"flex-1 overflow-hidden pt-2 bg-[#1e1e1e]",children:E.error?st.jsxs("div",{className:"p-4 flex gap-3 text-red-400 bg-red-950/20 m-4 rounded-lg border border-red-900/50",children:[st.jsx(aS,{className:"w-5 h-5 flex-shrink-0"}),st.jsxs("div",{children:[st.jsx("p",{className:"text-sm font-bold mb-1",children:"Compilation/Execution Error"}),st.jsx("p",{className:"text-xs font-mono",children:E.error})]})]}):st.jsx(iu,{theme:"vs-dark",language:E.result.trim().startsWith("<")?"xml":"json",value:E.result,options:{readOnly:!0,minimap:{enabled:!1},fontSize:14,lineNumbers:"on",scrollBeyondLastLine:!1,automaticLayout:!0,padding:{top:10}}})})]})]})]}),st.jsxs("footer",{className:"px-6 py-2 border-t border-slate-800 bg-[#1e293b] flex justify-between items-center",children:[st.jsx("div",{className:"flex items-center gap-6",children:st.jsx("div",{className:"text-[10px] font-bold text-slate-500 uppercase tracking-tighter",children:"Version: 0.1.0-alpha"})}),st.jsx("div",{className:"text-[10px] text-slate-500 font-medium italic",children:"MorphQL Engine © 2026"})]})]})}function Ow(){const[i,n]=ct.useState(()=>sessionStorage.getItem("morph_query")||us[0].query),[s,r]=ct.useState(()=>sessionStorage.getItem("morph_source")||us[0].source),u=h=>{n(h),sessionStorage.setItem("morph_query",h)},c=h=>{r(h),sessionStorage.setItem("morph_source",h)};return st.jsx("div",{className:"h-screen w-screen",children:st.jsx(Aw,{initialQuery:i,initialSourceData:s,onQueryChange:u,onSourceDataChange:c})})}IT.createRoot(document.getElementById("root")).render(st.jsx(fa.StrictMode,{children:st.jsx(Ow,{})}))});export default Nw();
319
+ modify total = total * 1.10`}}],vw=()=>yw.map(i=>i.name),Ew=[{name:"substring",doc:{signature:"substring(str, start, [length])",description:"Extracts a portion of a string. Supports negative indices.",parameters:[{name:"str",description:"The source string"},{name:"start",description:"Starting index (0-based, negative counts from end)"},{name:"length",description:"(Optional) Number of characters to extract"}],returns:"string",example:`substring("Hello World", 0, 5) // "Hello"
320
+ substring("Hello World", -5) // "World"`}},{name:"split",doc:{signature:"split(str, [separator], [limit])",description:"Splits a string into an array.",parameters:[{name:"str",description:"The string to split"},{name:"separator",description:'(Optional) Delimiter string. Default: ""'},{name:"limit",description:"(Optional) Maximum number of splits"}],returns:"array",example:'split("a,b,c", ",") // ["a", "b", "c"]'}},{name:"replace",doc:{signature:"replace(str, search, replacement)",description:"Replaces occurrences in a string.",parameters:[{name:"str",description:"The source string"},{name:"search",description:"The substring to find"},{name:"replacement",description:"The replacement string"}],returns:"string",example:'replace("Hello World", "World", "MorphQL") // "Hello MorphQL"'}},{name:"text",doc:{signature:"text(value)",description:"Converts a value to a string.",parameters:[{name:"value",description:"The value to convert"}],returns:"string",example:'text(123) // "123"'}},{name:"number",doc:{signature:"number(value)",description:"Converts a value to a number.",parameters:[{name:"value",description:"The value to convert"}],returns:"number",example:'number("42") // 42'}},{name:"uppercase",doc:{signature:"uppercase(str)",description:"Converts a string to uppercase.",parameters:[{name:"str",description:"The string to convert"}],returns:"string",example:'uppercase("hello") // "HELLO"'}},{name:"lowercase",doc:{signature:"lowercase(str)",description:"Converts a string to lowercase.",parameters:[{name:"str",description:"The string to convert"}],returns:"string",example:'lowercase("HELLO") // "hello"'}},{name:"extractnumber",doc:{signature:"extractnumber(str)",description:"Extracts the first numeric sequence from a string.",parameters:[{name:"str",description:"The string to extract from"}],returns:"number",example:'extractnumber("Price: 100USD") // 100'}},{name:"xmlnode",doc:{signature:"xmlnode(value, [attrKey, attrVal, ...])",description:"Wraps a value for XML output with optional attributes.",parameters:[{name:"value",description:"The node content"},{name:"attrKey, attrVal",description:"(Optional) Pairs of attribute keys and values"}],returns:"XML node",example:'xmlnode(content, "id", 1, "type", "text")'}},{name:"to_base64",doc:{signature:"to_base64(value)",description:"Encodes a string value to Base64.",parameters:[{name:"value",description:"The string to encode"}],returns:"string",example:'to_base64("hello") // "aGVsbG8="'}},{name:"from_base64",doc:{signature:"from_base64(value)",description:"Decodes a Base64 string value.",parameters:[{name:"value",description:"The Base64 string to decode"}],returns:"string",example:'from_base64("aGVsbG8=") // "hello"'}},{name:"aslist",doc:{signature:"aslist(value)",description:"Ensures a value is an array. Useful for XML nodes that might be a single object or an array.",parameters:[{name:"value",description:"The value to normalize"}],returns:"array",example:"aslist(items) // Always returns an array"}}],bw=()=>Ew.map(i=>i.name),Tw=[{symbol:"===",category:"comparison",precedence:7},{symbol:"!==",category:"comparison",precedence:7},{symbol:"==",category:"comparison",precedence:7},{symbol:"!=",category:"comparison",precedence:7},{symbol:"<=",category:"comparison",precedence:6},{symbol:">=",category:"comparison",precedence:6},{symbol:"<",category:"comparison",precedence:6},{symbol:">",category:"comparison",precedence:6},{symbol:"&&",category:"logical",precedence:5},{symbol:"||",category:"logical",precedence:4},{symbol:"!",category:"logical",precedence:9},{symbol:"+",category:"arithmetic",precedence:10},{symbol:"-",category:"arithmetic",precedence:10},{symbol:"*",category:"arithmetic",precedence:11},{symbol:"/",category:"arithmetic",precedence:11},{symbol:"=",category:"assignment",precedence:1}],Sw=()=>Tw.map(i=>i.symbol);function Aw(){return{keywords:vw(),builtinFunctions:bw(),operators:Sw(),symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/\/\/.*$/,"comment"],[/\/\*/,"comment","@comment"],[/[a-zA-Z_$][\w$]*/,{cases:{"@keywords":"keyword","@builtinFunctions":"predefined","@default":"identifier"}}],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string_double"],[/'/,"string","@string_single"],[/-?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/,"number"],[/[{}()\[\]]/,"@brackets"],[/@symbols/,{cases:{"@operators":"operator","@default":""}}]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],string_double:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],string_single:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,"string","@pop"]]}}}const Ow=Aw();function Nw(i){i.languages.register({id:"morphql"}),i.languages.setMonarchTokensProvider("morphql",Ow),i.languages.setLanguageConfiguration("morphql",{comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["(",")"],["{","}"],["[","]"]],autoClosingPairs:[{open:"(",close:")"},{open:"{",close:"}"},{open:"[",close:"]"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"(",close:")"},{open:"{",close:"}"},{open:"[",close:"]"},{open:'"',close:'"'},{open:"'",close:"'"}]})}function Rw({initialQuery:i=os[0].query,initialSourceData:n=os[0].source,className:s="",onQueryChange:r,onSourceDataChange:u}){const[c,h]=ct.useState(i),[_,d]=ct.useState(n),[g,b]=ct.useState(!1),[E,A]=ct.useState({result:"",generatedCode:"",error:null}),j=_.trim().startsWith("<")?"xml":"json";ct.useEffect(()=>{h(i)},[i]),ct.useEffect(()=>{d(n)},[n]),ct.useEffect(()=>{async function T(){try{const w=await gw(c),I=w(_);A({result:typeof I=="string"?I:JSON.stringify(I,null,2),generatedCode:w.code,error:null})}catch(w){A({result:"",generatedCode:"",error:w instanceof Error?w.message:String(w)})}}T()},[c,_]);const H=T=>{const w=os.find(I=>I.name===T.target.value);w&&(h(w.query),d(w.source),r?.(w.query),u?.(w.source))},F=()=>{navigator.clipboard.writeText(E.result),b(!0),setTimeout(()=>b(!1),2e3)},S=T=>{const w=T||"";h(w),r?.(w)},v=T=>{const w=T||"";d(w),u?.(w)};return st.jsxs("div",{className:`flex flex-col h-full bg-[#0f172a] text-slate-200 overflow-hidden ${s}`,children:[st.jsxs("header",{className:"flex items-center justify-between px-6 py-4 border-b border-slate-800 bg-[#1e293b]",children:[st.jsxs("div",{className:"flex items-center gap-3",children:[st.jsx("div",{className:"w-8 h-8 rounded-lg bg-indigo-500 flex items-center justify-center shadow-lg shadow-indigo-500/20",children:st.jsx(oS,{className:"w-5 h-5 text-white fill-current"})}),st.jsxs("div",{children:[st.jsx("h1",{className:"text-lg font-bold bg-clip-text text-transparent bg-gradient-to-r from-white to-slate-400",children:"MorphQL Playground"}),st.jsx("p",{className:"text-xs text-slate-400 font-medium",children:"High-Performance Query-to-Code Engine"})]})]}),st.jsxs("div",{className:"flex items-center gap-4",children:[st.jsxs("select",{className:"text-xs font-semibold px-3 py-1.5 rounded-full bg-slate-800 hover:bg-slate-700 transition-colors border border-slate-700 text-slate-200 outline-none cursor-pointer",onChange:H,defaultValue:"",children:[st.jsx("option",{value:"",disabled:!0,children:"Load Example..."}),os.map(T=>st.jsx("option",{value:T.name,children:T.name},T.name))]}),st.jsx("a",{href:"https://hyperwindmill.github.io/morphql",className:"text-xs font-semibold px-3 py-1.5 rounded-full bg-slate-800 hover:bg-slate-700 transition-colors border border-slate-700",children:"Documentation"})]})]}),st.jsxs("main",{className:"flex-1 flex overflow-hidden",children:[st.jsxs("div",{className:"w-1/2 flex flex-col border-r border-slate-800",children:[st.jsxs("div",{className:"h-1/2 flex flex-col border-b border-slate-800",children:[st.jsxs("div",{className:"flex items-center gap-2 px-4 py-2 bg-slate-900 border-b border-slate-800",children:[st.jsx(sS,{className:"w-4 h-4 text-indigo-400"}),st.jsx("span",{className:"text-xs font-bold uppercase tracking-wider text-slate-400",children:"Morph Query"})]}),st.jsx("div",{className:"flex-1 overflow-hidden pt-2",children:st.jsx(au,{theme:"vs-dark",defaultLanguage:"morphql",value:c,onChange:S,beforeMount:T=>{Nw(T)},options:{minimap:{enabled:!1},fontSize:13,lineNumbers:"on",scrollBeyondLastLine:!1,automaticLayout:!0,padding:{top:10}}})})]}),st.jsxs("div",{className:"h-1/2 flex flex-col",children:[st.jsxs("div",{className:"flex items-center gap-2 px-4 py-2 bg-slate-900 border-b border-slate-800",children:[st.jsx(gm,{className:"w-4 h-4 text-amber-400"}),st.jsx("span",{className:"text-xs font-bold uppercase tracking-wider text-slate-400",children:"Generated JS"})]}),st.jsx("div",{className:"flex-1 overflow-hidden pt-2",children:st.jsx(au,{theme:"vs-dark",defaultLanguage:"javascript",value:E.generatedCode,options:{readOnly:!0,minimap:{enabled:!1},fontSize:13,lineNumbers:"on",scrollBeyondLastLine:!1,automaticLayout:!0,padding:{top:10}}})})]})]}),st.jsxs("div",{className:"w-1/2 flex flex-col overflow-hidden",children:[st.jsxs("div",{className:"h-1/2 flex flex-col border-b border-slate-800",children:[st.jsxs("div",{className:"flex items-center gap-2 px-4 py-2 bg-slate-900 border-b border-slate-800",children:[st.jsx(iS,{className:"w-4 h-4 text-emerald-400"}),st.jsxs("span",{className:"text-xs font-bold uppercase tracking-wider text-slate-400",children:["Source Data (",j.toUpperCase(),")"]})]}),st.jsx("div",{className:"flex-1 overflow-hidden pt-2",children:st.jsx(au,{theme:"vs-dark",language:j==="json"?"json":"xml",value:_,onChange:v,options:{minimap:{enabled:!1},fontSize:14,lineNumbers:"on",scrollBeyondLastLine:!1,automaticLayout:!0,padding:{top:10}}})})]}),st.jsxs("div",{className:"h-1/2 flex flex-col relative",children:[st.jsxs("div",{className:"flex items-center justify-between px-4 py-2 bg-slate-900 border-b border-slate-800",children:[st.jsxs("div",{className:"flex items-center gap-2",children:[st.jsx(gm,{className:"w-4 h-4 text-amber-400"}),st.jsx("span",{className:"text-xs font-bold uppercase tracking-wider text-slate-400",children:"Transformation Result"})]}),st.jsx("button",{onClick:F,className:"p-1 hover:bg-slate-800 rounded transition-colors text-slate-400 hover:text-white",title:"Copy Result",children:g?st.jsx(W1,{className:"w-4 h-4 text-emerald-400"}):st.jsx(eS,{className:"w-4 h-4"})})]}),st.jsx("div",{className:"flex-1 overflow-hidden pt-2 bg-[#1e1e1e]",children:E.error?st.jsxs("div",{className:"p-4 flex gap-3 text-red-400 bg-red-950/20 m-4 rounded-lg border border-red-900/50",children:[st.jsx(lS,{className:"w-5 h-5 flex-shrink-0"}),st.jsxs("div",{children:[st.jsx("p",{className:"text-sm font-bold mb-1",children:"Compilation/Execution Error"}),st.jsx("p",{className:"text-xs font-mono",children:E.error})]})]}):st.jsx(au,{theme:"vs-dark",language:E.result.trim().startsWith("<")?"xml":"json",value:E.result,options:{readOnly:!0,minimap:{enabled:!1},fontSize:14,lineNumbers:"on",scrollBeyondLastLine:!1,automaticLayout:!0,padding:{top:10}}})})]})]})]}),st.jsxs("footer",{className:"px-6 py-2 border-t border-slate-800 bg-[#1e293b] flex justify-between items-center",children:[st.jsx("div",{className:"flex items-center gap-6",children:st.jsx("div",{className:"text-[10px] font-bold text-slate-500 uppercase tracking-tighter",children:"Version: 0.1.0-alpha"})}),st.jsx("div",{className:"text-[10px] text-slate-500 font-medium italic",children:"MorphQL Engine © 2026"})]})]})}function xw(){const[i,n]=ct.useState(()=>sessionStorage.getItem("morph_query")||os[0].query),[s,r]=ct.useState(()=>sessionStorage.getItem("morph_source")||os[0].source),u=h=>{n(h),sessionStorage.setItem("morph_query",h)},c=h=>{r(h),sessionStorage.setItem("morph_source",h)};return st.jsx("div",{className:"h-screen w-screen",children:st.jsx(Rw,{initialQuery:i,initialSourceData:s,onQueryChange:u,onSourceDataChange:c})})}BT.createRoot(document.getElementById("root")).render(st.jsx(fa.StrictMode,{children:st.jsx(xw,{})}))});export default Cw();