@next-core/preview 0.7.50-alpha.3 → 0.7.51
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core.e98e0111.js +2 -0
- package/dist/core.e98e0111.js.map +1 -0
- package/dist/index.html +1 -1
- package/dist/main.8af25096.js +2 -0
- package/dist/main.8af25096.js.map +1 -0
- package/dist/vendors.31455ae2.js +2 -0
- package/package.json +9 -9
- package/dist/core.170aa562.js +0 -2
- package/dist/core.170aa562.js.map +0 -1
- package/dist/main.0a9c3d47.js +0 -2
- package/dist/main.0a9c3d47.js.map +0 -1
- package/dist/vendors.e515b154.js +0 -2
- /package/dist/{vendors.e515b154.js.LICENSE.txt → vendors.31455ae2.js.LICENSE.txt} +0 -0
package/dist/vendors.e515b154.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see vendors.e515b154.js.LICENSE.txt */
|
|
2
|
-
(globalThis.webpackChunk_next_core_preview=globalThis.webpackChunk_next_core_preview||[]).push([[96],{4306:(t,e,s)=>{"use strict";s.r(e),s.d(e,{pipes:()=>i,utils:()=>r});var r={};s.r(r),s.d(r,{convertUnitValueByPrecision:()=>Et,formatUnitValue:()=>Ct});var i={};function n(t,e){return t+e}function a(t){return"0"!==t&&Boolean(t)}s.r(i),s.d(i,{add:()=>n,atobUnicode:()=>Dt,bool:()=>o,boolean:()=>a,btoaUnicode:()=>Ft,cmdbInstanceShowName:()=>c,countBy:()=>h,datetime:()=>d,deltaTime:()=>y,divide:()=>g,equal:()=>x,find:()=>v,findIndex:()=>b,findLast:()=>w,findLastIndex:()=>P,get:()=>T,graphTree:()=>S,groupBy:()=>A,groupByToIndex:()=>N,includes:()=>I,join:()=>M,json:()=>L,jsonStringify:()=>O,keyBy:()=>D,map:()=>F,mapToArray:()=>R,mergeArrayByKey:()=>j,multiply:()=>Y,not:()=>U,nullish:()=>H,number:()=>W,parseTimeRange:()=>$,randomString:()=>z,reverse:()=>V,round:()=>Ot,slice:()=>q,sort:()=>K,split:()=>J,string:()=>G,substr:()=>X,substring:()=>Z,subtract:()=>Q,ternary:()=>tt,uniq:()=>et,unitFormat:()=>Nt,yaml:()=>Mt,yamlStringify:()=>Lt});var o=a;function c(t){if(Array.isArray(t)){var e=t[0]||"-",s=t.slice(1,t.length).join(",");return s?e+"("+s+")":e}return t}var l=s(5521);function h(t,e){return(0,l.countBy)(t,e)}var u=s(8297),p=s.n(u);function d(t,e){return p()(t).format(e)}function f(t){return"object"==typeof t&&null!==t}function m(t,e){return"number"==typeof t?p()(t):p()(t,e)}function y(t,e,s){if(void 0===e&&(e=!0),void 0===s&&(s="YYYY-MM-DD HH:mm:ss"),!t)return"";if(f(t)&&t.startTime&&t.endTime){var r=m(t.startTime,s),i=m(t.endTime,s);return p().duration(i.diff(r)).humanize(e)}var n=m(f(t)?t.startTime||t.endTime:t,s);return p().duration(n.diff(p()())).humanize(e)}function g(t,e){return t/e}function x(t,e){return(0,l.isEqual)(t,e)}function v(t,e,s){return(0,l.find)(t,e,s)}function b(t,e,s){return(0,l.findIndex)(t,e,s)}function w(t,e,s){return(0,l.findLast)(t,e,s)}function P(t,e,s){return(0,l.findLastIndex)(t,e,s)}function T(t,e,s){return(0,l.get)(t,e,s)}function S(t,e){var s,r;if(!t)return[];var i=null==e?void 0:e.sort,n=(0,l.groupBy)(t.edges,"out"),a=function(e){var s=n[e.instanceId];if((0,l.forEach)(s,(function(s){var r=s.out_name,i=(0,l.find)(t.vertices,["instanceId",s.in]);if(i){var n=a(i);e[r]?e[r].push(n):e[r]=[n]}})),i){var r=(0,l.uniq)((0,l.map)(s,"out_name"));(0,l.forEach)(r,(function(t){(0,l.isEmpty)(e[t])||(e[t]=(0,l.orderBy)(e[t],(function(t){var e;return null!==(e=(0,l.get)(t,i.key))&&void 0!==e?e:-1/0}),-1===i.order?"desc":"asc"))}))}return e};return null!==(r=null===(s=t.topic_vertices)||void 0===s?void 0:s.map((function(t){return a(t)})))&&void 0!==r?r:[]}function A(t,e){return(0,l.groupBy)(t,e)}var _,k,E=function(){return E=Object.assign||function(t){for(var e,s=1,r=arguments.length;s<r;s++)for(var i in e=arguments[s])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},E.apply(this,arguments)};function C(){for(var t=0,e=0,s=arguments.length;e<s;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<s;e++)for(var n=arguments[e],a=0,o=n.length;a<o;a++,i++)r[i]=n[a];return r}function N(t,e,s){var r=t;if(!(0,l.isNil)(e)&&!(0,l.isNil)(s)){var i=(0,l.groupBy)(t,e),n=(0,l.keys)(i).sort();r=r.map((function(t){var r=E({},t);return(0,l.set)(r,s,(0,l.indexOf)(n,(0,l.get)(t,e))),r}))}return r}function I(t,e){return t.includes(e)}function M(t,e){return void 0===e&&(e=","),Array.isArray(t)?t.join(e):""}function L(t){if((0,l.isNil)(t))return t;try{return JSON.parse(t)}catch(t){return void console.error(t)}}function O(t,e){void 0===e&&(e=2);try{return JSON.stringify(t,null,e)}catch(t){return void console.error(t)}}function D(t,e){return(0,l.keyBy)(t,e)}function F(t,e){return Array.isArray(t)?t.map((function(t){return(0,l.get)(t,e)})):[]}function R(t,e,s){return"object"==typeof t&&t?Object.entries(t).map((function(t){var r,i=t[0],n=t[1];return(r={})[e]=i,r[s]=n,r})):[]}function j(t,e){return t.reduce((function(t,s){return Object.values((0,l.mergeWith)((0,l.keyBy)(t,e),(0,l.keyBy)(s,e),B))}),[])}function B(t,e){if((0,l.isArray)(t))return t.concat(e)}function Y(t,e){return t*e}function U(t){return!t}function H(t,e){return null!=t?t:e}function W(t){return Number(t)}function $(t){if("now/d"===t)return+p()().startOf("day");if("now/y"===t)return+p()().startOf("year");var e=/^now-(\d+)(\w+)/.exec(t);if(null!==e){var s=e[1],r=e[2];return+p()().subtract(s,r)}return t?+t:+p()()}function z(t,e){t=t>0?t:8,e="string"==typeof e?e:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";for(var s="",r=0;r<t;r++)s+=e.charAt(Math.floor(Math.random()*e.length));return s}function V(t){return Array.isArray(t)?t.slice().reverse():[]}function q(t,e,s){return t.slice(e,s)}function K(t,e){return Array.isArray(t)?(0,l.sortBy)(t,e):[]}function J(t,e){return"string"==typeof t?t.split(e):[]}function G(t){return null==t?"":String(t)}function X(t,e,s){return"string"==typeof t?t.substr(e,s):""}function Z(t,e,s){return"string"==typeof t?t.substring(e,s):""}function Q(t,e){return t-e}function tt(t,e,s){return t?e:s}function et(t){return(0,l.uniq)(t)}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError,function(t){t.Time="time",t.Byte="byte",t.Bibyte="bibyte",t.BitRate="bitRate",t.ByteRate="byteRate"}(_||(_={})),function(t){t.Percent1="percent(1)",t.Percent100="percent(100)"}(k||(k={}));var st,rt=[k.Percent1,k.Percent100];!function(t){t.Bytes="bytes",t.Kilobytes="kilobytes",t.Megabytes="megabytes",t.Gigabytes="gigabytes",t.Terabytes="terabytes",t.Petabytes="petabytes",t.Bibytes="bibytes",t.Kibibytes="kibibytes",t.Mebibytes="mebibytes",t.Gibibytes="gibibytes",t.Tebibytes="tebibytes",t.Pebibytes="pebibytes",t.b="b",t.B="B",t.KB="KB",t.MB="MB",t.GB="GB"}(st||(st={}));var it,nt=[{id:st.Bytes,alias:["B","bytes(B)"],divisor:1,display:"B"},{id:st.Kilobytes,alias:["KB","kilobytes(KB)"],divisor:1e3,display:"KB"},{id:st.Megabytes,alias:["MB","megabytes(MB)"],divisor:Math.pow(1e3,2),display:"MB"},{id:st.Gigabytes,alias:["GB","gigabytes(GB)"],divisor:Math.pow(1e3,3),display:"GB"},{id:st.Terabytes,alias:["TB","terabytes(TB)"],divisor:Math.pow(1e3,4),display:"TB"},{id:st.Petabytes,alias:["PB","petabytes(PB)"],divisor:Math.pow(1e3,5),display:"PB"}],at=[{id:st.Bibytes,alias:["B","bibytes(B)"],divisor:1,display:"B"},{id:st.Kibibytes,alias:["KiB","kibibytes(KiB)"],divisor:1024,display:"KiB"},{id:st.Mebibytes,alias:["MiB","mebibytes(MiB)"],divisor:Math.pow(1024,2),display:"MiB"},{id:st.Gibibytes,alias:["GiB","gibibytes(GiB)"],divisor:Math.pow(1024,3),display:"GiB"},{id:st.Tebibytes,alias:["TiB","tebibytes(TiB)"],divisor:Math.pow(1024,4),display:"TiB"},{id:st.Pebibytes,alias:["PiB","pebibytes(PiB)"],divisor:Math.pow(1024,5),display:"PiB"}],ot=[{id:st.b,divisor:1,display:"b"},{id:st.B,divisor:8,display:"B"},{id:st.KB,divisor:8192,display:"KB"},{id:st.MB,divisor:8388608,display:"MB"},{id:st.GB,divisor:8589934592,display:"GB"}];!function(t){t.BitsPerSecond="bits/sec",t.KilobitsPerSecond="kilobits/sec",t.MegabitsPerSecond="megabits/sec",t.GigabitsPerSecond="gigabits/sec",t.BytesPerSecond="bytes/sec",t.KilobytesPerSecond="kilobytes/sec",t.MegabytesPerSecond="megabytes/sec",t.GigabytesPerSecond="gigabytes/sec",t.bps="bps",t.Bps="Bps",t.KBps="KBps",t.MBps="MBps",t.GBps="GBps"}(it||(it={}));var ct,lt=[{id:it.BitsPerSecond,alias:["bps","bits/sec(bps)"],divisor:1,display:"bps"},{id:it.KilobitsPerSecond,alias:["Kbps","kilobits/sec(Kbps)"],divisor:1024,display:"Kbps"},{id:it.MegabitsPerSecond,alias:["Mbps","megabits/sec(Mbps)"],divisor:1048576,display:"Mbps"},{id:it.GigabitsPerSecond,alias:["Gbps","gigabits/sec(Gbps)"],divisor:1073741824,display:"Gbps"}],ht=[{id:it.BytesPerSecond,alias:["Bps","bytes/sec(Bps)"],divisor:8,display:"Bps"},{id:it.KilobytesPerSecond,alias:["KBps","kilobytes/sec(KBps)"],divisor:8192,display:"KBps"},{id:it.MegabytesPerSecond,alias:["MBps","megabytes/sec(MBps)"],divisor:8388608,display:"MBps"},{id:it.GigabytesPerSecond,alias:["GBps","gigabytes/sec(GBps)"],divisor:8589934592,display:"GBps"}],ut=[{id:it.bps,divisor:1,display:"bps"},{id:it.Bps,divisor:8,display:"Bps"},{id:it.KBps,divisor:8192,display:"KBps"},{id:it.MBps,divisor:8388608,display:"MBps"},{id:it.GBps,divisor:8589934592,display:"GBps"}];!function(t){t.Nanosecond="nanoseconds",t.Microsecond="microseconds",t.Milliseconds="milliseconds",t.Seconds="seconds",t.Minutes="minutes",t.Hours="hours",t.Days="days",t.Weeks="weeks",t.Months="months",t.Years="years",t.ms="ms",t.s="s",t.min="min",t.hour="hour",t.day="day",t.week="week"}(ct||(ct={}));var pt,dt,ft=[{id:ct.Nanosecond,alias:["ns","nanoseconds(ns)"],divisor:1,display:"ns"},{id:ct.Microsecond,alias:["μs","microseconds(μs)"],divisor:1e3,display:"μs"},{id:ct.Milliseconds,alias:["ms","milliseconds(ms)"],divisor:1e6,display:"ms"},{id:ct.Seconds,alias:["s","seconds(s)"],divisor:1e9,display:"s"},{id:ct.Minutes,alias:["min","minutes(min)"],divisor:6e10,display:"min"},{id:ct.Hours,alias:["hour","hours(hour)"],divisor:36e11,display:"hour"},{id:ct.Days,alias:["day","days(day)"],divisor:864e11,display:"day"},{id:ct.Weeks,alias:["week","weeks(week)"],divisor:6048e11,display:"week"},{id:ct.Months,alias:["month","months(month)"],divisor:2592e12,display:"month"},{id:ct.Years,alias:["year","years(year)"],divisor:31536e12,display:"year"}];ct.ms,ct.s,ct.min,ct.hour,ct.day,ct.week,(pt={})[_.Time]=ft,pt[_.Byte]=nt,pt[_.Bibyte]=at,pt[_.BitRate]=lt,pt[_.ByteRate]=ht,function(t){t.None="none",t.K="K",t.M="M",t.B="B",t.T="T"}(dt||(dt={}));var mt,yt,gt=[{id:dt.None,divisor:1,display:""},{id:dt.K,divisor:1e3,display:"K"},{id:dt.M,divisor:1e6,display:"M"},{id:dt.B,divisor:1e9,display:"B"},{id:dt.T,divisor:1e12,display:"T"}],xt=function(t,e){return t.id.toLocaleLowerCase()===(null==e?void 0:e.toLocaleLowerCase())||t.alias&&t.alias.map((function(t){return t.toLocaleLowerCase()})).includes(e)},vt=function(t,e){return t.id.toLocaleLowerCase()===(null==e?void 0:e.toLocaleLowerCase())||t.alias&&t.alias.includes(e)},bt=[ft],wt=[].concat.apply([],bt.map((function(t){return C(t.map((function(t){return t.id})),[].concat.apply([],t.map((function(t){return t.alias?t.alias:[]}))))}))),Pt=[nt,at,ot],Tt=[].concat.apply([],Pt.map((function(t){return C(t.map((function(t){return t.id})),[].concat.apply([],t.map((function(t){return t.alias?t.alias:[]}))))}))),St=[lt,ht,ut],At=[].concat.apply([],St.map((function(t){return C(t.map((function(t){return t.id})),[].concat.apply([],t.map((function(t){return t.alias?t.alias:[]}))))}))),_t=function(t,e,s){var r=0,i=Math.sign(t),n=Math.abs(t);if(e){var a=gt.findIndex((function(t){return t.id.toLocaleLowerCase()===e.toLocaleLowerCase()}));-1!==a&&(r=a)}for(var o=gt[r],c=r+1;c<gt.length&&n/(gt[c].divisor/gt[r].divisor)>=1;++c)o=gt[c];return o.id===dt.None?(i*n).toFixed(null!=s?s:2):(n/(o.divisor/gt[r].divisor)*i).toFixed(null!=s?s:2)+o.display};!function(t){t.None="none",t.Short="short",t.Percent="percent",t.Time="time",t.Data="data",t.DataRate="data_rate"}(yt||(yt={}));var kt=((mt={})[yt.None]=[],mt[yt.Short]=[],mt[yt.Percent]=rt,mt[yt.Time]=wt,mt[yt.Data]=Tt,mt[yt.DataRate]=At,mt),Et=function(t,e){return void 0===e?t.toString():t.toFixed(e)},Ct=function(t,e){if(!e)return[_t(t),null];var s=e.type;s||(e.unit?(s=yt.Short,Object.entries(kt).map((function(t){var r=t[0];t[1].map((function(t){return t.toLocaleLowerCase()})).includes(e.unit.toLocaleLowerCase())&&(s=r)}))):s=yt.None);var r=void 0===(null==e?void 0:e.precision)?2:e.precision;switch(s){case yt.Percent:var i=function(t,e){return e&&e.toLocaleLowerCase()===k.Percent100.toLocaleLowerCase()?t:100*t}(t,e.unit);return[Et(i,r)+"%",null];case yt.Time:var n=function(t,e,s){var r=0,i=2,n=-1;if(e)for(var a=function(t){var a=-1,o=-1;if(bt[t].forEach((function(t,r){xt(t,e)&&(a=r),xt(t,s)&&(o=r)})),-1!==a)return r=t,i=a,n=o,"break"},o=0;o<bt.length&&"break"!==a(o);++o);else s&&(n=bt[r].findIndex((function(t){return xt(t,s)})));var c=bt[r],l=c[i],h=l;if(-1===n)for(o=i+1;o<c.length&&t/(c[o].divisor/l.divisor)>=1;++o)h=c[o];else h=c[n];return s&&-1===n&&console.warn('Cannot convert unit "'+(e||l.display)+'" to "'+s+'"'),[t/(h.divisor/l.divisor),h.display]}(t,e.unit,e.targetUnit),a=n[0],o=n[1];return[""+Et(a,void 0===(null==e?void 0:e.precision)?1:e.precision),o];case yt.Data:var c=function(t,e,s){var r=Pt.length-1,i=0,n=-1,a=Math.sign(t),o=Math.abs(t);if(e)for(var c=function(t){var a=-1,o=-1;if(Pt[t].forEach((function(t,r){vt(t,e)&&(a=r),vt(t,s)&&(o=r)})),-1!==a)return r=t,i=a,n=o,"break"},l=0;l<Pt.length&&"break"!==c(l);++l);else s&&(n=Pt[r].findIndex((function(t){return vt(t,s)})));var h=Pt[r],u=h[i],p=u;if(-1===n)for(l=i+1;l<h.length&&o/(h[l].divisor/u.divisor)>=1;++l)p=h[l];else p=h[n];return s&&-1===n&&console.warn('Cannot convert unit "'+(e||u.display)+'" to "'+s+'"'),[o/(p.divisor/u.divisor)*a,p.display]}(t,e.unit,e.targetUnit),l=c[0],h=c[1];return[""+Et(l,r),h];case yt.DataRate:var u=function(t,e,s){var r=St.length-1,i=0,n=-1,a=Math.sign(t),o=Math.abs(t);if(e)for(var c=function(t){var a=-1,o=-1;if(St[t].forEach((function(t,r){xt(t,e)&&(a=r),xt(t,s)&&(o=r)})),-1!==a)return r=t,i=a,n=o,"break"},l=0;l<St.length&&"break"!==c(l);++l);else s&&(n=St[r].findIndex((function(t){return xt(t,s)})));var h=St[r],u=h[i],p=u;if(-1===n)for(l=i+1;l<h.length&&o/(h[l].divisor/u.divisor)>=1;++l)p=h[l];else p=h[n];return s&&-1===n&&console.warn('Cannot convert unit "'+(e||u.display)+'" to "'+s+'"'),[o/(p.divisor/u.divisor)*a,p.display]}(t,e.unit,e.targetUnit),p=u[0],d=u[1];return[""+Et(p,r),d];case yt.None:return[Et(t,r),""];default:return[_t(t,e.unit,r),e.unit]}};function Nt(t,e,s,r){return void 0===s&&(s=2),Ct(t,{unit:e,precision:s,targetUnit:r})}var It=s(8679);function Mt(t){var e;try{e=(0,It.safeLoad)(t,{schema:It.JSON_SCHEMA,json:!0})}catch(t){console.error(t)}return e}function Lt(t,e,s){var r;void 0===e&&(e=2);try{r=(0,It.safeDump)(t,{indent:e,schema:It.JSON_SCHEMA,skipInvalid:!0,noRefs:!0,noCompatMode:!0,sortKeys:null==s?void 0:s.sortKeys})}catch(t){console.error(t)}return r}function Ot(t,e){return(0,l.round)(t,e)}function Dt(t){return decodeURIComponent(atob(t).split("").map((function(t){return"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)})).join(""))}function Ft(t){return btoa(encodeURIComponent(t).replace(/%([0-9A-F]{2})/g,(function(t,e){return String.fromCharCode(Number("0x"+e))})))}},2110:(t,e,s)=>{"use strict";s.d(e,{y:()=>o});var r=function(t,e){var s={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(s[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(s[r[i]]=t[r[i]])}return s};const i="text/event-stream",n=1e3,a="last-event-id";function o(t,e){var{signal:s,headers:o,onopen:l,onmessage:h,onclose:u,onerror:p,openWhenHidden:d,fetch:f}=e,m=r(e,["signal","headers","onopen","onmessage","onclose","onerror","openWhenHidden","fetch"]);return new Promise(((e,r)=>{const y=Object.assign({},o);let g;function x(){g.abort(),document.hidden||S()}y.accept||(y.accept=i),d||document.addEventListener("visibilitychange",x);let v=n,b=0;function w(){document.removeEventListener("visibilitychange",x),window.clearTimeout(b),g.abort()}null==s||s.addEventListener("abort",(()=>{w(),e()}));const P=null!=f?f:window.fetch,T=null!=l?l:c;async function S(){var s;g=new AbortController;try{const s=await P(t,Object.assign(Object.assign({},m),{headers:y,signal:g.signal}));await T(s),await async function(t,e){const s=t.getReader();let r;for(;!(r=await s.read()).done;)e(r.value)}(s.body,function(t){let e,s,r,i=!1;return function(n){void 0===e?(e=n,s=0,r=-1):e=function(t,e){const s=new Uint8Array(t.length+e.length);return s.set(t),s.set(e,t.length),s}(e,n);const a=e.length;let o=0;for(;s<a;){i&&(10===e[s]&&(o=++s),i=!1);let n=-1;for(;s<a&&-1===n;++s)switch(e[s]){case 58:-1===r&&(r=s-o);break;case 13:i=!0;case 10:n=s}if(-1===n)break;t(e.subarray(o,n),r),o=s,r=-1}o===a?e=void 0:0!==o&&(e=e.subarray(o),s-=o)}}(function(t,e,s){let r={data:"",event:"",id:"",retry:void 0};const i=new TextDecoder;return function(t,e){if(0===t.length)null==s||s(r),r={data:"",event:"",id:"",retry:void 0};else if(e>0){const s=i.decode(t.subarray(0,e)),o=e+(32===t[e+1]?2:1),c=i.decode(t.subarray(o));switch(s){case"data":r.data=r.data?r.data+"\n"+c:c;break;case"event":r.event=c;break;case"id":(n=r.id=c)?y[a]=n:delete y[a];break;case"retry":const t=parseInt(c,10);isNaN(t)||(t=>{v=t})(r.retry=t)}}var n}}(0,0,h))),null==u||u(),w(),e()}catch(t){if(!g.signal.aborted)try{const e=null!==(s=null==p?void 0:p(t))&&void 0!==s?s:v;window.clearTimeout(b),b=window.setTimeout(S,e)}catch(t){w(),r(t)}}}S()}))}function c(t){const e=t.headers.get("content-type");if(!(null==e?void 0:e.startsWith(i)))throw new Error(`Expected content-type to be ${i}, Actual: ${e}`)}},3999:(t,e,s)=>{"use strict";function r(t,e){(function(t){return"string"==typeof t&&-1!==t.indexOf(".")&&1===parseFloat(t)})(t)&&(t="100%");var s=function(t){return"string"==typeof t&&-1!==t.indexOf("%")}(t);return t=360===e?t:Math.min(e,Math.max(0,parseFloat(t))),s&&(t=parseInt(String(t*e),10)/100),Math.abs(t-e)<1e-6?1:t=360===e?(t<0?t%e+e:t%e)/parseFloat(String(e)):t%e/parseFloat(String(e))}function i(t){return t<=1?"".concat(100*Number(t),"%"):t}function n(t){return 1===t.length?"0"+t:String(t)}function a(t,e,s){return s<0&&(s+=1),s>1&&(s-=1),s<1/6?t+6*s*(e-t):s<.5?e:s<2/3?t+(e-t)*(2/3-s)*6:t}function o(t){return c(t)/255}function c(t){return parseInt(t,16)}s.d(e,{eC:()=>L,LP:()=>O,Gb:()=>D});var l={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function h(t){var e,s,n,h={r:0,g:0,b:0},u=1,p=null,d=null,y=null,g=!1,x=!1;return"string"==typeof t&&(t=function(t){if(0===(t=t.trim().toLowerCase()).length)return!1;var e=!1;if(l[t])t=l[t],e=!0;else if("transparent"===t)return{r:0,g:0,b:0,a:0,format:"name"};var s=f.rgb.exec(t);return s?{r:s[1],g:s[2],b:s[3]}:(s=f.rgba.exec(t))?{r:s[1],g:s[2],b:s[3],a:s[4]}:(s=f.hsl.exec(t))?{h:s[1],s:s[2],l:s[3]}:(s=f.hsla.exec(t))?{h:s[1],s:s[2],l:s[3],a:s[4]}:(s=f.hsv.exec(t))?{h:s[1],s:s[2],v:s[3]}:(s=f.hsva.exec(t))?{h:s[1],s:s[2],v:s[3],a:s[4]}:(s=f.hex8.exec(t))?{r:c(s[1]),g:c(s[2]),b:c(s[3]),a:o(s[4]),format:e?"name":"hex8"}:(s=f.hex6.exec(t))?{r:c(s[1]),g:c(s[2]),b:c(s[3]),format:e?"name":"hex"}:(s=f.hex4.exec(t))?{r:c(s[1]+s[1]),g:c(s[2]+s[2]),b:c(s[3]+s[3]),a:o(s[4]+s[4]),format:e?"name":"hex8"}:!!(s=f.hex3.exec(t))&&{r:c(s[1]+s[1]),g:c(s[2]+s[2]),b:c(s[3]+s[3]),format:e?"name":"hex"}}(t)),"object"==typeof t&&(m(t.r)&&m(t.g)&&m(t.b)?(e=t.r,s=t.g,n=t.b,h={r:255*r(e,255),g:255*r(s,255),b:255*r(n,255)},g=!0,x="%"===String(t.r).substr(-1)?"prgb":"rgb"):m(t.h)&&m(t.s)&&m(t.v)?(p=i(t.s),d=i(t.v),h=function(t,e,s){t=6*r(t,360),e=r(e,100),s=r(s,100);var i=Math.floor(t),n=t-i,a=s*(1-e),o=s*(1-n*e),c=s*(1-(1-n)*e),l=i%6;return{r:255*[s,o,a,a,c,s][l],g:255*[c,s,s,o,a,a][l],b:255*[a,a,c,s,s,o][l]}}(t.h,p,d),g=!0,x="hsv"):m(t.h)&&m(t.s)&&m(t.l)&&(p=i(t.s),y=i(t.l),h=function(t,e,s){var i,n,o;if(t=r(t,360),e=r(e,100),s=r(s,100),0===e)n=s,o=s,i=s;else{var c=s<.5?s*(1+e):s+e-s*e,l=2*s-c;i=a(l,c,t+1/3),n=a(l,c,t),o=a(l,c,t-1/3)}return{r:255*i,g:255*n,b:255*o}}(t.h,p,y),g=!0,x="hsl"),Object.prototype.hasOwnProperty.call(t,"a")&&(u=t.a)),u=function(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}(u),{ok:g,format:t.format||x,r:Math.min(255,Math.max(h.r,0)),g:Math.min(255,Math.max(h.g,0)),b:Math.min(255,Math.max(h.b,0)),a:u}}var u="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),p="[\\s|\\(]+(".concat(u,")[,|\\s]+(").concat(u,")[,|\\s]+(").concat(u,")\\s*\\)?"),d="[\\s|\\(]+(".concat(u,")[,|\\s]+(").concat(u,")[,|\\s]+(").concat(u,")[,|\\s]+(").concat(u,")\\s*\\)?"),f={CSS_UNIT:new RegExp(u),rgb:new RegExp("rgb"+p),rgba:new RegExp("rgba"+d),hsl:new RegExp("hsl"+p),hsla:new RegExp("hsla"+d),hsv:new RegExp("hsv"+p),hsva:new RegExp("hsva"+d),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function m(t){return Boolean(f.CSS_UNIT.exec(String(t)))}var y=2,g=.16,x=.05,v=.05,b=.15,w=5,P=4,T=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function S(t){var e=function(t,e,s){t=r(t,255),e=r(e,255),s=r(s,255);var i=Math.max(t,e,s),n=Math.min(t,e,s),a=0,o=i,c=i-n,l=0===i?0:c/i;if(i===n)a=0;else{switch(i){case t:a=(e-s)/c+(e<s?6:0);break;case e:a=(s-t)/c+2;break;case s:a=(t-e)/c+4}a/=6}return{h:a,s:l,v:o}}(t.r,t.g,t.b);return{h:360*e.h,s:e.s,v:e.v}}function A(t){var e=t.r,s=t.g,r=t.b;return"#".concat(function(t,e,s,r){var i=[n(Math.round(t).toString(16)),n(Math.round(e).toString(16)),n(Math.round(s).toString(16))];return i.join("")}(e,s,r))}function _(t,e,s){var r;return(r=Math.round(t.h)>=60&&Math.round(t.h)<=240?s?Math.round(t.h)-y*e:Math.round(t.h)+y*e:s?Math.round(t.h)+y*e:Math.round(t.h)-y*e)<0?r+=360:r>=360&&(r-=360),r}function k(t,e,s){return 0===t.h&&0===t.s?t.s:((r=s?t.s-g*e:e===P?t.s+g:t.s+x*e)>1&&(r=1),s&&e===w&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function E(t,e,s){var r;return(r=s?t.v+v*e:t.v-b*e)>1&&(r=1),Number(r.toFixed(2))}function C(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=[],r=h(t),i=w;i>0;i-=1){var n=S(r),a=A(h({h:_(n,i,!0),s:k(n,i,!0),v:E(n,i,!0)}));s.push(a)}s.push(A(r));for(var o=1;o<=P;o+=1){var c=S(r),l=A(h({h:_(c,o),s:k(c,o),v:E(c,o)}));s.push(l)}return"dark"===e.theme?T.map((function(t){var r,i,n,a=t.index,o=t.opacity;return A((r=h(e.backgroundColor||"#141414"),n=100*o/100,{r:((i=h(s[a])).r-r.r)*n+r.r,g:(i.g-r.g)*n+r.g,b:(i.b-r.b)*n+r.b}))})):s}var N={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},I={},M={};function L(t,e,s){return("dark"===t?R:F)("".concat(function(t,e){return Object.entries(t).flatMap((t=>{var[s,r]=t;return function(t){if(!/^[a-z0-9]+(?:-[a-z0-9]+)*$/.test(t))throw new Error("Invalid base color name: ".concat(JSON.stringify(t)))}(s),r.map(((t,r)=>[" --palette-".concat(s,"-").concat(r+1,"-channel: ").concat(j(t),";")].concat("dark"===e?[]:" --palette-".concat(s,"-").concat(r+1,": rgb(var(--palette-").concat(s,"-").concat(r+1,"-channel));")).join("\n"))).concat("")})).join("\n")}(function(t,e,s){return Object.fromEntries(Object.entries(t).map((t=>{var[r,i]=t;return[r,C(i,"dark"===e?{theme:e,backgroundColor:s}:void 0)]})))}(e,t,s),t),"\n").concat(function(t,e,s){return Object.entries({green:"green",red:"red",blue:"blue",orange:"orange",cyan:"cyan",purple:"purple",geekblue:"indigo"}).flatMap((r=>{var[i,n]=r;return[" --theme-".concat(i,"-color-rgb-channel: ").concat(j(B(e[n],t,s)),";"),..."dark"===t?[]:[" --theme-".concat(i,"-color: var(--palette-").concat(n,"-6);")," --theme-".concat(i,"-border-color: var(--palette-").concat(n,"-3);")]," --theme-".concat(i,"-background: var(--palette-").concat(n,"-").concat("dark"===t?2:1,");"),""]})).join("\n")}(t,e,s)))}function O(t,e){return("dark"===t?R:F)("string"==typeof(s=e)?" --color-brand: ".concat(s,";\n"):[" --color-brand: ".concat(s.default,";")," --color-brand-hover: ".concat(s.hover,";")," --color-brand-active: ".concat(s.active,";"),""].join("\n"));var s}function D(t,e){return("dark"===t?R:F)(function(t){return Object.entries(t).map((t=>{var[e,s]=t;return function(t){if(!/^--[a-z][a-z0-9]*(?:-[a-z0-9]+)*$/.test(t))throw new Error("Invalid css variable name: ".concat(JSON.stringify(t)))}(e)," ".concat(e,": ").concat(s,";")})).concat("").join("\n")}(e))}function F(t){return':root,\n[data-override-theme="light"] {\n'.concat(t,"}")}function R(t){return'html[data-theme="dark-v2"],\n[data-override-theme="dark-v2"] {\n'.concat(t,"}")}function j(t){return t.match(/[0-9a-fA-F]{2}/g).map((t=>parseInt(t,16))).join(", ")}function B(t,e,s){return"dark"===e?C(t,{theme:e,backgroundColor:s})[5]:t}Object.keys(N).forEach((function(t){I[t]=C(N[t]),I[t].primary=I[t][5],M[t]=C(N[t],{theme:"dark",backgroundColor:"#141414"}),M[t].primary=M[t][5]})),I.red,I.volcano,I.gold,I.orange,I.yellow,I.lime,I.green,I.cyan,I.blue,I.geekblue,I.purple,I.magenta,I.grey},5462:(t,e,s)=>{"use strict";s.d(e,{U:()=>l});const r=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,i=t=>{if("string"!=typeof t)throw new TypeError("Invalid argument expected string");const e=t.match(r);if(!e)throw new Error(`Invalid argument not valid semver ('${t}' received)`);return e.shift(),e},n=t=>"*"===t||"x"===t||"X"===t,a=t=>{const e=parseInt(t,10);return isNaN(e)?t:e},o=(t,e)=>{if(n(t)||n(e))return 0;const[s,r]=((t,e)=>typeof t!=typeof e?[String(t),String(e)]:[t,e])(a(t),a(e));return s>r?1:s<r?-1:0},c=(t,e)=>{for(let s=0;s<Math.max(t.length,e.length);s++){const r=o(t[s]||"0",e[s]||"0");if(0!==r)return r}return 0},l=(t,e,s)=>{p(s);const r=((t,e)=>{const s=i(t),r=i(e),n=s.pop(),a=r.pop(),o=c(s,r);return 0!==o?o:n&&a?c(n.split("."),a.split(".")):n||a?n?-1:1:0})(t,e);return h[s].includes(r)},h={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},u=Object.keys(h),p=t=>{if("string"!=typeof t)throw new TypeError("Invalid operator type, expected string but got "+typeof t);if(-1===u.indexOf(t))throw new Error(`Invalid operator, expected one of ${u.join("|")}`)}},5060:function(t,e,s){var r,i;void 0===(i="function"==typeof(r=function(){"use strict";function e(t,e,s){var r=new XMLHttpRequest;r.open("GET",t),r.responseType="blob",r.onload=function(){o(r.response,e,s)},r.onerror=function(){console.error("could not download file")},r.send()}function r(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return 200<=e.status&&299>=e.status}function i(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(s){var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(e)}}var n="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof s.g&&s.g.global===s.g?s.g:void 0,a=n.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),o=n.saveAs||("object"!=typeof window||window!==n?function(){}:"download"in HTMLAnchorElement.prototype&&!a?function(t,s,a){var o=n.URL||n.webkitURL,c=document.createElement("a");s=s||t.name||"download",c.download=s,c.rel="noopener","string"==typeof t?(c.href=t,c.origin===location.origin?i(c):r(c.href)?e(t,s,a):i(c,c.target="_blank")):(c.href=o.createObjectURL(t),setTimeout((function(){o.revokeObjectURL(c.href)}),4e4),setTimeout((function(){i(c)}),0))}:"msSaveOrOpenBlob"in navigator?function(t,s,n){if(s=s||t.name||"download","string"!=typeof t)navigator.msSaveOrOpenBlob(function(t,e){return void 0===e?e={autoBom:!1}:"object"!=typeof e&&(console.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\ufeff",t],{type:t.type}):t}(t,n),s);else if(r(t))e(t,s,n);else{var a=document.createElement("a");a.href=t,a.target="_blank",setTimeout((function(){i(a)}))}}:function(t,s,r,i){if((i=i||open("","_blank"))&&(i.document.title=i.document.body.innerText="downloading..."),"string"==typeof t)return e(t,s,r);var o="application/octet-stream"===t.type,c=/constructor/i.test(n.HTMLElement)||n.safari,l=/CriOS\/[\d]+/.test(navigator.userAgent);if((l||o&&c||a)&&"undefined"!=typeof FileReader){var h=new FileReader;h.onloadend=function(){var t=h.result;t=l?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=t:location=t,i=null},h.readAsDataURL(t)}else{var u=n.URL||n.webkitURL,p=u.createObjectURL(t);i?i.location=p:location.href=p,i=null,setTimeout((function(){u.revokeObjectURL(p)}),4e4)}});n.saveAs=o.saveAs=o,t.exports=o})?r.apply(e,[]):r)||(t.exports=i)},9669:(t,e,s)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var s=arguments[e];for(var r in s)({}).hasOwnProperty.call(s,r)&&(t[r]=s[r])}return t},r.apply(null,arguments)}function i(t){return"/"===t.charAt(0)}function n(t,e){for(var s=e,r=s+1,i=t.length;r<i;s+=1,r+=1)t[s]=t[r];t.pop()}s.r(e),s.d(e,{createBrowserHistory:()=>_,createHashHistory:()=>M,createLocation:()=>x,createMemoryHistory:()=>O,createPath:()=>g,locationsAreEqual:()=>v,parsePath:()=>y});const a=function(t,e){void 0===e&&(e="");var s,r=t&&t.split("/")||[],a=e&&e.split("/")||[],o=t&&i(t),c=e&&i(e),l=o||c;if(t&&i(t)?a=r:r.length&&(a.pop(),a=a.concat(r)),!a.length)return"/";if(a.length){var h=a[a.length-1];s="."===h||".."===h||""===h}else s=!1;for(var u=0,p=a.length;p>=0;p--){var d=a[p];"."===d?n(a,p):".."===d?(n(a,p),u++):u&&(n(a,p),u--)}if(!l)for(;u--;u)a.unshift("..");!l||""===a[0]||a[0]&&i(a[0])||a.unshift("");var f=a.join("/");return s&&"/"!==f.substr(-1)&&(f+="/"),f};function o(t){return t.valueOf?t.valueOf():Object.prototype.valueOf.call(t)}const c=function t(e,s){if(e===s)return!0;if(null==e||null==s)return!1;if(Array.isArray(e))return Array.isArray(s)&&e.length===s.length&&e.every((function(e,r){return t(e,s[r])}));if("object"==typeof e||"object"==typeof s){var r=o(e),i=o(s);return r!==e||i!==s?t(r,i):Object.keys(Object.assign({},e,s)).every((function(r){return t(e[r],s[r])}))}return!1};var l=!0,h="Invariant failed";function u(t,e){if(!t){if(l)throw new Error(h);var s="function"==typeof e?e():e,r=s?"".concat(h,": ").concat(s):h;throw new Error(r)}}function p(t){return"/"===t.charAt(0)?t:"/"+t}function d(t){return"/"===t.charAt(0)?t.substr(1):t}function f(t,e){return function(t,e){return 0===t.toLowerCase().indexOf(e.toLowerCase())&&-1!=="/?#".indexOf(t.charAt(e.length))}(t,e)?t.substr(e.length):t}function m(t){return"/"===t.charAt(t.length-1)?t.slice(0,-1):t}function y(t){var e=t||"/",s="",r="",i=e.indexOf("#");-1!==i&&(r=e.substr(i),e=e.substr(0,i));var n=e.indexOf("?");return-1!==n&&(s=e.substr(n),e=e.substr(0,n)),{pathname:e,search:"?"===s?"":s,hash:"#"===r?"":r}}function g(t){var e=t.pathname,s=t.search,r=t.hash,i=e||"/";return s&&"?"!==s&&(i+="?"===s.charAt(0)?s:"?"+s),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i}function x(t,e,s,i){var n;"string"==typeof t?(n=y(t)).state=e:(void 0===(n=r({},t)).pathname&&(n.pathname=""),n.search?"?"!==n.search.charAt(0)&&(n.search="?"+n.search):n.search="",n.hash?"#"!==n.hash.charAt(0)&&(n.hash="#"+n.hash):n.hash="",void 0!==e&&void 0===n.state&&(n.state=e));try{n.pathname=decodeURI(n.pathname)}catch(t){throw t instanceof URIError?new URIError('Pathname "'+n.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):t}return s&&(n.key=s),i?n.pathname?"/"!==n.pathname.charAt(0)&&(n.pathname=a(n.pathname,i.pathname)):n.pathname=i.pathname:n.pathname||(n.pathname="/"),n}function v(t,e){return t.pathname===e.pathname&&t.search===e.search&&t.hash===e.hash&&t.key===e.key&&c(t.state,e.state)}function b(){var t=null,e=[];return{setPrompt:function(e){return t=e,function(){t===e&&(t=null)}},confirmTransitionTo:function(e,s,r,i){if(null!=t){var n="function"==typeof t?t(e,s):t;"string"==typeof n?"function"==typeof r?r(n,i):i(!0):i(!1!==n)}else i(!0)},appendListener:function(t){var s=!0;function r(){s&&t.apply(void 0,arguments)}return e.push(r),function(){s=!1,e=e.filter((function(t){return t!==r}))}},notifyListeners:function(){for(var t=arguments.length,s=new Array(t),r=0;r<t;r++)s[r]=arguments[r];e.forEach((function(t){return t.apply(void 0,s)}))}}}var w=!("undefined"==typeof window||!window.document||!window.document.createElement);function P(t,e){e(window.confirm(t))}var T="popstate",S="hashchange";function A(){try{return window.history.state||{}}catch(t){return{}}}function _(t){void 0===t&&(t={}),w||u(!1);var e,s=window.history,i=(-1===(e=window.navigator.userAgent).indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,n=!(-1===window.navigator.userAgent.indexOf("Trident")),a=t,o=a.forceRefresh,c=void 0!==o&&o,l=a.getUserConfirmation,h=void 0===l?P:l,d=a.keyLength,y=void 0===d?6:d,v=t.basename?m(p(t.basename)):"";function _(t){var e=t||{},s=e.key,r=e.state,i=window.location,n=i.pathname+i.search+i.hash;return v&&(n=f(n,v)),x(n,r,s)}function k(){return Math.random().toString(36).substr(2,y)}var E=b();function C(t){r(U,t),U.length=s.length,E.notifyListeners(U.location,U.action)}function N(t){(function(t){return void 0===t.state&&-1===navigator.userAgent.indexOf("CriOS")})(t)||L(_(t.state))}function I(){L(_(A()))}var M=!1;function L(t){M?(M=!1,C()):E.confirmTransitionTo(t,"POP",h,(function(e){e?C({action:"POP",location:t}):function(t){var e=U.location,s=D.indexOf(e.key);-1===s&&(s=0);var r=D.indexOf(t.key);-1===r&&(r=0);var i=s-r;i&&(M=!0,R(i))}(t)}))}var O=_(A()),D=[O.key];function F(t){return v+g(t)}function R(t){s.go(t)}var j=0;function B(t){1===(j+=t)&&1===t?(window.addEventListener(T,N),n&&window.addEventListener(S,I)):0===j&&(window.removeEventListener(T,N),n&&window.removeEventListener(S,I))}var Y=!1,U={length:s.length,action:"POP",location:O,createHref:F,push:function(t,e){var r="PUSH",n=x(t,e,k(),U.location);E.confirmTransitionTo(n,r,h,(function(t){if(t){var e=F(n),a=n.key,o=n.state;if(i)if(s.pushState({key:a,state:o},null,e),c)window.location.href=e;else{var l=D.indexOf(U.location.key),h=D.slice(0,l+1);h.push(n.key),D=h,C({action:r,location:n})}else window.location.href=e}}))},replace:function(t,e){var r="REPLACE",n=x(t,e,k(),U.location);E.confirmTransitionTo(n,r,h,(function(t){if(t){var e=F(n),a=n.key,o=n.state;if(i)if(s.replaceState({key:a,state:o},null,e),c)window.location.replace(e);else{var l=D.indexOf(U.location.key);-1!==l&&(D[l]=n.key),C({action:r,location:n})}else window.location.replace(e)}}))},go:R,goBack:function(){R(-1)},goForward:function(){R(1)},block:function(t){void 0===t&&(t=!1);var e=E.setPrompt(t);return Y||(B(1),Y=!0),function(){return Y&&(Y=!1,B(-1)),e()}},listen:function(t){var e=E.appendListener(t);return B(1),function(){B(-1),e()}}};return U}var k="hashchange",E={hashbang:{encodePath:function(t){return"!"===t.charAt(0)?t:"!/"+d(t)},decodePath:function(t){return"!"===t.charAt(0)?t.substr(1):t}},noslash:{encodePath:d,decodePath:p},slash:{encodePath:p,decodePath:p}};function C(t){var e=t.indexOf("#");return-1===e?t:t.slice(0,e)}function N(){var t=window.location.href,e=t.indexOf("#");return-1===e?"":t.substring(e+1)}function I(t){window.location.replace(C(window.location.href)+"#"+t)}function M(t){void 0===t&&(t={}),w||u(!1);var e=window.history,s=(window.navigator.userAgent.indexOf("Firefox"),t),i=s.getUserConfirmation,n=void 0===i?P:i,a=s.hashType,o=void 0===a?"slash":a,c=t.basename?m(p(t.basename)):"",l=E[o],h=l.encodePath,d=l.decodePath;function y(){var t=d(N());return c&&(t=f(t,c)),x(t)}var v=b();function T(t){r(Y,t),Y.length=e.length,v.notifyListeners(Y.location,Y.action)}var S=!1,A=null;function _(){var t,e,s=N(),r=h(s);if(s!==r)I(r);else{var i=y(),a=Y.location;if(!S&&(e=i,(t=a).pathname===e.pathname&&t.search===e.search&&t.hash===e.hash))return;if(A===g(i))return;A=null,function(t){if(S)S=!1,T();else{v.confirmTransitionTo(t,"POP",n,(function(e){e?T({action:"POP",location:t}):function(t){var e=Y.location,s=D.lastIndexOf(g(e));-1===s&&(s=0);var r=D.lastIndexOf(g(t));-1===r&&(r=0);var i=s-r;i&&(S=!0,F(i))}(t)}))}}(i)}}var M=N(),L=h(M);M!==L&&I(L);var O=y(),D=[g(O)];function F(t){e.go(t)}var R=0;function j(t){1===(R+=t)&&1===t?window.addEventListener(k,_):0===R&&window.removeEventListener(k,_)}var B=!1,Y={length:e.length,action:"POP",location:O,createHref:function(t){var e=document.querySelector("base"),s="";return e&&e.getAttribute("href")&&(s=C(window.location.href)),s+"#"+h(c+g(t))},push:function(t,e){var s="PUSH",r=x(t,void 0,void 0,Y.location);v.confirmTransitionTo(r,s,n,(function(t){if(t){var e=g(r),i=h(c+e);if(N()!==i){A=e,function(t){window.location.hash=t}(i);var n=D.lastIndexOf(g(Y.location)),a=D.slice(0,n+1);a.push(e),D=a,T({action:s,location:r})}else T()}}))},replace:function(t,e){var s="REPLACE",r=x(t,void 0,void 0,Y.location);v.confirmTransitionTo(r,s,n,(function(t){if(t){var e=g(r),i=h(c+e);N()!==i&&(A=e,I(i));var n=D.indexOf(g(Y.location));-1!==n&&(D[n]=e),T({action:s,location:r})}}))},go:F,goBack:function(){F(-1)},goForward:function(){F(1)},block:function(t){void 0===t&&(t=!1);var e=v.setPrompt(t);return B||(j(1),B=!0),function(){return B&&(B=!1,j(-1)),e()}},listen:function(t){var e=v.appendListener(t);return j(1),function(){j(-1),e()}}};return Y}function L(t,e,s){return Math.min(Math.max(t,e),s)}function O(t){void 0===t&&(t={});var e=t,s=e.getUserConfirmation,i=e.initialEntries,n=void 0===i?["/"]:i,a=e.initialIndex,o=void 0===a?0:a,c=e.keyLength,l=void 0===c?6:c,h=b();function u(t){r(v,t),v.length=v.entries.length,h.notifyListeners(v.location,v.action)}function p(){return Math.random().toString(36).substr(2,l)}var d=L(o,0,n.length-1),f=n.map((function(t){return x(t,void 0,"string"==typeof t?p():t.key||p())})),m=g;function y(t){var e=L(v.index+t,0,v.entries.length-1),r=v.entries[e];h.confirmTransitionTo(r,"POP",s,(function(t){t?u({action:"POP",location:r,index:e}):u()}))}var v={length:f.length,action:"POP",location:f[d],index:d,entries:f,createHref:m,push:function(t,e){var r="PUSH",i=x(t,e,p(),v.location);h.confirmTransitionTo(i,r,s,(function(t){if(t){var e=v.index+1,s=v.entries.slice(0);s.length>e?s.splice(e,s.length-e,i):s.push(i),u({action:r,location:i,index:e,entries:s})}}))},replace:function(t,e){var r="REPLACE",i=x(t,e,p(),v.location);h.confirmTransitionTo(i,r,s,(function(t){t&&(v.entries[v.index]=i,u({action:r,location:i}))}))},go:y,goBack:function(){y(-1)},goForward:function(){y(1)},canGo:function(t){var e=v.index+t;return e>=0&&e<v.entries.length},block:function(t){return void 0===t&&(t=!1),h.setPrompt(t)},listen:function(t){return h.appendListener(t)}};return v}},9515:(t,e,s)=>{"use strict";var r=s(9142);t.exports=r},9142:(t,e,s)=>{"use strict";var r=s(5506),i=s(6384);function n(t){return function(){throw new Error("Function "+t+" is deprecated and cannot be used.")}}t.exports.Type=s(5417),t.exports.Schema=s(2290),t.exports.FAILSAFE_SCHEMA=s(8028),t.exports.JSON_SCHEMA=s(8739),t.exports.CORE_SCHEMA=s(8774),t.exports.DEFAULT_SAFE_SCHEMA=s(9590),t.exports.DEFAULT_FULL_SCHEMA=s(2846),t.exports.load=r.load,t.exports.loadAll=r.loadAll,t.exports.safeLoad=r.safeLoad,t.exports.safeLoadAll=r.safeLoadAll,t.exports.dump=i.dump,t.exports.safeDump=i.safeDump,t.exports.YAMLException=s(1796),t.exports.MINIMAL_SCHEMA=s(8028),t.exports.SAFE_SCHEMA=s(9590),t.exports.DEFAULT_SCHEMA=s(2846),t.exports.scan=n("scan"),t.exports.parse=n("parse"),t.exports.compose=n("compose"),t.exports.addConstructor=n("addConstructor")},3780:t=>{"use strict";function e(t){return null==t}t.exports.isNothing=e,t.exports.isObject=function(t){return"object"==typeof t&&null!==t},t.exports.toArray=function(t){return Array.isArray(t)?t:e(t)?[]:[t]},t.exports.repeat=function(t,e){var s,r="";for(s=0;s<e;s+=1)r+=t;return r},t.exports.isNegativeZero=function(t){return 0===t&&Number.NEGATIVE_INFINITY===1/t},t.exports.extend=function(t,e){var s,r,i,n;if(e)for(s=0,r=(n=Object.keys(e)).length;s<r;s+=1)t[i=n[s]]=e[i];return t}},6384:(t,e,s)=>{"use strict";var r=s(3780),i=s(1796),n=s(2846),a=s(9590),o=Object.prototype.toString,c=Object.prototype.hasOwnProperty,l=9,h=10,u=13,p=32,d=33,f=34,m=35,y=37,g=38,x=39,v=42,b=44,w=45,P=58,T=61,S=62,A=63,_=64,k=91,E=93,C=96,N=123,I=124,M=125,L={0:"\\0",7:"\\a",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",27:"\\e",34:'\\"',92:"\\\\",133:"\\N",160:"\\_",8232:"\\L",8233:"\\P"},O=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function D(t){var e,s,n;if(e=t.toString(16).toUpperCase(),t<=255)s="x",n=2;else if(t<=65535)s="u",n=4;else{if(!(t<=4294967295))throw new i("code point within a string may not be greater than 0xFFFFFFFF");s="U",n=8}return"\\"+s+r.repeat("0",n-e.length)+e}function F(t){this.schema=t.schema||n,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=r.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=function(t,e){var s,r,i,n,a,o,l;if(null===e)return{};for(s={},i=0,n=(r=Object.keys(e)).length;i<n;i+=1)a=r[i],o=String(e[a]),"!!"===a.slice(0,2)&&(a="tag:yaml.org,2002:"+a.slice(2)),(l=t.compiledTypeMap.fallback[a])&&c.call(l.styleAliases,o)&&(o=l.styleAliases[o]),s[a]=o;return s}(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function R(t,e){for(var s,i=r.repeat(" ",e),n=0,a=-1,o="",c=t.length;n<c;)-1===(a=t.indexOf("\n",n))?(s=t.slice(n),n=c):(s=t.slice(n,a+1),n=a+1),s.length&&"\n"!==s&&(o+=i),o+=s;return o}function j(t,e){return"\n"+r.repeat(" ",t.indent*e)}function B(t){return t===p||t===l}function Y(t){return 32<=t&&t<=126||161<=t&&t<=55295&&8232!==t&&8233!==t||57344<=t&&t<=65533&&65279!==t||65536<=t&&t<=1114111}function U(t,e){return Y(t)&&65279!==t&&t!==b&&t!==k&&t!==E&&t!==N&&t!==M&&t!==P&&(t!==m||e&&function(t){return Y(t)&&!B(t)&&65279!==t&&t!==u&&t!==h}(e))}function H(t){return/^\n* /.test(t)}var W=1,$=2,z=3,V=4,q=5;function K(t,e,s,r){t.dump=function(){if(0===e.length)return"''";if(!t.noCompatMode&&-1!==O.indexOf(e))return"'"+e+"'";var n=t.indent*Math.max(1,s),a=-1===t.lineWidth?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-n),o=r||t.flowLevel>-1&&s>=t.flowLevel;switch(function(t,e,s,r,i){var n,a,o,c,l=!1,u=!1,p=-1!==r,L=-1,O=Y(c=t.charCodeAt(0))&&65279!==c&&!B(c)&&c!==w&&c!==A&&c!==P&&c!==b&&c!==k&&c!==E&&c!==N&&c!==M&&c!==m&&c!==g&&c!==v&&c!==d&&c!==I&&c!==T&&c!==S&&c!==x&&c!==f&&c!==y&&c!==_&&c!==C&&!B(t.charCodeAt(t.length-1));if(e)for(n=0;n<t.length;n++){if(!Y(a=t.charCodeAt(n)))return q;o=n>0?t.charCodeAt(n-1):null,O=O&&U(a,o)}else{for(n=0;n<t.length;n++){if((a=t.charCodeAt(n))===h)l=!0,p&&(u=u||n-L-1>r&&" "!==t[L+1],L=n);else if(!Y(a))return q;o=n>0?t.charCodeAt(n-1):null,O=O&&U(a,o)}u=u||p&&n-L-1>r&&" "!==t[L+1]}return l||u?s>9&&H(t)?q:u?V:z:O&&!i(t)?W:$}(e,o,t.indent,a,(function(e){return function(t,e){var s,r;for(s=0,r=t.implicitTypes.length;s<r;s+=1)if(t.implicitTypes[s].resolve(e))return!0;return!1}(t,e)}))){case W:return e;case $:return"'"+e.replace(/'/g,"''")+"'";case z:return"|"+J(e,t.indent)+G(R(e,n));case V:return">"+J(e,t.indent)+G(R(function(t,e){for(var s,r,i,n=/(\n+)([^\n]*)/g,a=(i=-1!==(i=t.indexOf("\n"))?i:t.length,n.lastIndex=i,X(t.slice(0,i),e)),o="\n"===t[0]||" "===t[0];r=n.exec(t);){var c=r[1],l=r[2];s=" "===l[0],a+=c+(o||s||""===l?"":"\n")+X(l,e),o=s}return a}(e,a),n));case q:return'"'+function(t){for(var e,s,r,i="",n=0;n<t.length;n++)(e=t.charCodeAt(n))>=55296&&e<=56319&&(s=t.charCodeAt(n+1))>=56320&&s<=57343?(i+=D(1024*(e-55296)+s-56320+65536),n++):i+=!(r=L[e])&&Y(e)?t[n]:r||D(e);return i}(e)+'"';default:throw new i("impossible error: invalid scalar style")}}()}function J(t,e){var s=H(t)?String(e):"",r="\n"===t[t.length-1];return s+(!r||"\n"!==t[t.length-2]&&"\n"!==t?r?"":"-":"+")+"\n"}function G(t){return"\n"===t[t.length-1]?t.slice(0,-1):t}function X(t,e){if(""===t||" "===t[0])return t;for(var s,r,i=/ [^ ]/g,n=0,a=0,o=0,c="";s=i.exec(t);)(o=s.index)-n>e&&(r=a>n?a:o,c+="\n"+t.slice(n,r),n=r+1),a=o;return c+="\n",t.length-n>e&&a>n?c+=t.slice(n,a)+"\n"+t.slice(a+1):c+=t.slice(n),c.slice(1)}function Z(t,e,s){var r,n,a,l,h,u;for(a=0,l=(n=s?t.explicitTypes:t.implicitTypes).length;a<l;a+=1)if(((h=n[a]).instanceOf||h.predicate)&&(!h.instanceOf||"object"==typeof e&&e instanceof h.instanceOf)&&(!h.predicate||h.predicate(e))){if(t.tag=s?h.tag:"?",h.represent){if(u=t.styleMap[h.tag]||h.defaultStyle,"[object Function]"===o.call(h.represent))r=h.represent(e,u);else{if(!c.call(h.represent,u))throw new i("!<"+h.tag+'> tag resolver accepts not "'+u+'" style');r=h.represent[u](e,u)}t.dump=r}return!0}return!1}function Q(t,e,s,r,n,a){t.tag=null,t.dump=s,Z(t,s,!1)||Z(t,s,!0);var c=o.call(t.dump);r&&(r=t.flowLevel<0||t.flowLevel>e);var l,u,p="[object Object]"===c||"[object Array]"===c;if(p&&(u=-1!==(l=t.duplicates.indexOf(s))),(null!==t.tag&&"?"!==t.tag||u||2!==t.indent&&e>0)&&(n=!1),u&&t.usedDuplicates[l])t.dump="*ref_"+l;else{if(p&&u&&!t.usedDuplicates[l]&&(t.usedDuplicates[l]=!0),"[object Object]"===c)r&&0!==Object.keys(t.dump).length?(function(t,e,s,r){var n,a,o,c,l,u,p="",d=t.tag,f=Object.keys(s);if(!0===t.sortKeys)f.sort();else if("function"==typeof t.sortKeys)f.sort(t.sortKeys);else if(t.sortKeys)throw new i("sortKeys must be a boolean or a function");for(n=0,a=f.length;n<a;n+=1)u="",r&&0===n||(u+=j(t,e)),c=s[o=f[n]],Q(t,e+1,o,!0,!0,!0)&&((l=null!==t.tag&&"?"!==t.tag||t.dump&&t.dump.length>1024)&&(t.dump&&h===t.dump.charCodeAt(0)?u+="?":u+="? "),u+=t.dump,l&&(u+=j(t,e)),Q(t,e+1,c,!0,l)&&(t.dump&&h===t.dump.charCodeAt(0)?u+=":":u+=": ",p+=u+=t.dump));t.tag=d,t.dump=p||"{}"}(t,e,t.dump,n),u&&(t.dump="&ref_"+l+t.dump)):(function(t,e,s){var r,i,n,a,o,c="",l=t.tag,h=Object.keys(s);for(r=0,i=h.length;r<i;r+=1)o="",0!==r&&(o+=", "),t.condenseFlow&&(o+='"'),a=s[n=h[r]],Q(t,e,n,!1,!1)&&(t.dump.length>1024&&(o+="? "),o+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),Q(t,e,a,!1,!1)&&(c+=o+=t.dump));t.tag=l,t.dump="{"+c+"}"}(t,e,t.dump),u&&(t.dump="&ref_"+l+" "+t.dump));else if("[object Array]"===c){var d=t.noArrayIndent&&e>0?e-1:e;r&&0!==t.dump.length?(function(t,e,s,r){var i,n,a="",o=t.tag;for(i=0,n=s.length;i<n;i+=1)Q(t,e+1,s[i],!0,!0)&&(r&&0===i||(a+=j(t,e)),t.dump&&h===t.dump.charCodeAt(0)?a+="-":a+="- ",a+=t.dump);t.tag=o,t.dump=a||"[]"}(t,d,t.dump,n),u&&(t.dump="&ref_"+l+t.dump)):(function(t,e,s){var r,i,n="",a=t.tag;for(r=0,i=s.length;r<i;r+=1)Q(t,e,s[r],!1,!1)&&(0!==r&&(n+=","+(t.condenseFlow?"":" ")),n+=t.dump);t.tag=a,t.dump="["+n+"]"}(t,d,t.dump),u&&(t.dump="&ref_"+l+" "+t.dump))}else{if("[object String]"!==c){if(t.skipInvalid)return!1;throw new i("unacceptable kind of an object to dump "+c)}"?"!==t.tag&&K(t,t.dump,e,a)}null!==t.tag&&"?"!==t.tag&&(t.dump="!<"+t.tag+"> "+t.dump)}return!0}function tt(t,e){var s,r,i=[],n=[];for(et(t,i,n),s=0,r=n.length;s<r;s+=1)e.duplicates.push(i[n[s]]);e.usedDuplicates=new Array(r)}function et(t,e,s){var r,i,n;if(null!==t&&"object"==typeof t)if(-1!==(i=e.indexOf(t)))-1===s.indexOf(i)&&s.push(i);else if(e.push(t),Array.isArray(t))for(i=0,n=t.length;i<n;i+=1)et(t[i],e,s);else for(i=0,n=(r=Object.keys(t)).length;i<n;i+=1)et(t[r[i]],e,s)}function st(t,e){var s=new F(e=e||{});return s.noRefs||tt(t,s),Q(s,0,t,!0,!0)?s.dump+"\n":""}t.exports.dump=st,t.exports.safeDump=function(t,e){return st(t,r.extend({schema:a},e))}},1796:t=>{"use strict";function e(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e.prototype.toString=function(t){var e=this.name+": ";return e+=this.reason||"(unknown reason)",!t&&this.mark&&(e+=" "+this.mark.toString()),e},t.exports=e},5506:(t,e,s)=>{"use strict";var r=s(3780),i=s(1796),n=s(9348),a=s(9590),o=s(2846),c=Object.prototype.hasOwnProperty,l=1,h=2,u=3,p=4,d=1,f=2,m=3,y=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,g=/[\x85\u2028\u2029]/,x=/[,\[\]\{\}]/,v=/^(?:!|!!|![a-z\-]+!)$/i,b=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function w(t){return Object.prototype.toString.call(t)}function P(t){return 10===t||13===t}function T(t){return 9===t||32===t}function S(t){return 9===t||32===t||10===t||13===t}function A(t){return 44===t||91===t||93===t||123===t||125===t}function _(t){var e;return 48<=t&&t<=57?t-48:97<=(e=32|t)&&e<=102?e-97+10:-1}function k(t){return 48===t?"\0":97===t?"":98===t?"\b":116===t||9===t?"\t":110===t?"\n":118===t?"\v":102===t?"\f":114===t?"\r":101===t?"":32===t?" ":34===t?'"':47===t?"/":92===t?"\\":78===t?"
":95===t?" ":76===t?"\u2028":80===t?"\u2029":""}function E(t){return t<=65535?String.fromCharCode(t):String.fromCharCode(55296+(t-65536>>10),56320+(t-65536&1023))}for(var C=new Array(256),N=new Array(256),I=0;I<256;I++)C[I]=k(I)?1:0,N[I]=k(I);function M(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||o,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function L(t,e){return new i(e,new n(t.filename,t.input,t.position,t.line,t.position-t.lineStart))}function O(t,e){throw L(t,e)}function D(t,e){t.onWarning&&t.onWarning.call(null,L(t,e))}var F={YAML:function(t,e,s){var r,i,n;null!==t.version&&O(t,"duplication of %YAML directive"),1!==s.length&&O(t,"YAML directive accepts exactly one argument"),null===(r=/^([0-9]+)\.([0-9]+)$/.exec(s[0]))&&O(t,"ill-formed argument of the YAML directive"),i=parseInt(r[1],10),n=parseInt(r[2],10),1!==i&&O(t,"unacceptable YAML version of the document"),t.version=s[0],t.checkLineBreaks=n<2,1!==n&&2!==n&&D(t,"unsupported YAML version of the document")},TAG:function(t,e,s){var r,i;2!==s.length&&O(t,"TAG directive accepts exactly two arguments"),r=s[0],i=s[1],v.test(r)||O(t,"ill-formed tag handle (first argument) of the TAG directive"),c.call(t.tagMap,r)&&O(t,'there is a previously declared suffix for "'+r+'" tag handle'),b.test(i)||O(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagMap[r]=i}};function R(t,e,s,r){var i,n,a,o;if(e<s){if(o=t.input.slice(e,s),r)for(i=0,n=o.length;i<n;i+=1)9===(a=o.charCodeAt(i))||32<=a&&a<=1114111||O(t,"expected valid JSON character");else y.test(o)&&O(t,"the stream contains non-printable characters");t.result+=o}}function j(t,e,s,i){var n,a,o,l;for(r.isObject(s)||O(t,"cannot merge mappings; the provided source object is unacceptable"),o=0,l=(n=Object.keys(s)).length;o<l;o+=1)a=n[o],c.call(e,a)||(e[a]=s[a],i[a]=!0)}function B(t,e,s,r,i,n,a,o){var l,h;if(Array.isArray(i))for(l=0,h=(i=Array.prototype.slice.call(i)).length;l<h;l+=1)Array.isArray(i[l])&&O(t,"nested arrays are not supported inside keys"),"object"==typeof i&&"[object Object]"===w(i[l])&&(i[l]="[object Object]");if("object"==typeof i&&"[object Object]"===w(i)&&(i="[object Object]"),i=String(i),null===e&&(e={}),"tag:yaml.org,2002:merge"===r)if(Array.isArray(n))for(l=0,h=n.length;l<h;l+=1)j(t,e,n[l],s);else j(t,e,n,s);else t.json||c.call(s,i)||!c.call(e,i)||(t.line=a||t.line,t.position=o||t.position,O(t,"duplicated mapping key")),e[i]=n,delete s[i];return e}function Y(t){var e;10===(e=t.input.charCodeAt(t.position))?t.position++:13===e?(t.position++,10===t.input.charCodeAt(t.position)&&t.position++):O(t,"a line break is expected"),t.line+=1,t.lineStart=t.position}function U(t,e,s){for(var r=0,i=t.input.charCodeAt(t.position);0!==i;){for(;T(i);)i=t.input.charCodeAt(++t.position);if(e&&35===i)do{i=t.input.charCodeAt(++t.position)}while(10!==i&&13!==i&&0!==i);if(!P(i))break;for(Y(t),i=t.input.charCodeAt(t.position),r++,t.lineIndent=0;32===i;)t.lineIndent++,i=t.input.charCodeAt(++t.position)}return-1!==s&&0!==r&&t.lineIndent<s&&D(t,"deficient indentation"),r}function H(t){var e,s=t.position;return!(45!==(e=t.input.charCodeAt(s))&&46!==e||e!==t.input.charCodeAt(s+1)||e!==t.input.charCodeAt(s+2)||(s+=3,0!==(e=t.input.charCodeAt(s))&&!S(e)))}function W(t,e){1===e?t.result+=" ":e>1&&(t.result+=r.repeat("\n",e-1))}function $(t,e){var s,r,i=t.tag,n=t.anchor,a=[],o=!1;for(null!==t.anchor&&(t.anchorMap[t.anchor]=a),r=t.input.charCodeAt(t.position);0!==r&&45===r&&S(t.input.charCodeAt(t.position+1));)if(o=!0,t.position++,U(t,!0,-1)&&t.lineIndent<=e)a.push(null),r=t.input.charCodeAt(t.position);else if(s=t.line,q(t,e,u,!1,!0),a.push(t.result),U(t,!0,-1),r=t.input.charCodeAt(t.position),(t.line===s||t.lineIndent>e)&&0!==r)O(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break;return!!o&&(t.tag=i,t.anchor=n,t.kind="sequence",t.result=a,!0)}function z(t){var e,s,r,i,n=!1,a=!1;if(33!==(i=t.input.charCodeAt(t.position)))return!1;if(null!==t.tag&&O(t,"duplication of a tag property"),60===(i=t.input.charCodeAt(++t.position))?(n=!0,i=t.input.charCodeAt(++t.position)):33===i?(a=!0,s="!!",i=t.input.charCodeAt(++t.position)):s="!",e=t.position,n){do{i=t.input.charCodeAt(++t.position)}while(0!==i&&62!==i);t.position<t.length?(r=t.input.slice(e,t.position),i=t.input.charCodeAt(++t.position)):O(t,"unexpected end of the stream within a verbatim tag")}else{for(;0!==i&&!S(i);)33===i&&(a?O(t,"tag suffix cannot contain exclamation marks"):(s=t.input.slice(e-1,t.position+1),v.test(s)||O(t,"named tag handle cannot contain such characters"),a=!0,e=t.position+1)),i=t.input.charCodeAt(++t.position);r=t.input.slice(e,t.position),x.test(r)&&O(t,"tag suffix cannot contain flow indicator characters")}return r&&!b.test(r)&&O(t,"tag name cannot contain such characters: "+r),n?t.tag=r:c.call(t.tagMap,s)?t.tag=t.tagMap[s]+r:"!"===s?t.tag="!"+r:"!!"===s?t.tag="tag:yaml.org,2002:"+r:O(t,'undeclared tag handle "'+s+'"'),!0}function V(t){var e,s;if(38!==(s=t.input.charCodeAt(t.position)))return!1;for(null!==t.anchor&&O(t,"duplication of an anchor property"),s=t.input.charCodeAt(++t.position),e=t.position;0!==s&&!S(s)&&!A(s);)s=t.input.charCodeAt(++t.position);return t.position===e&&O(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function q(t,e,s,i,n){var a,o,y,g,x,v,b,w,k=1,I=!1,M=!1;if(null!==t.listener&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,a=o=y=p===s||u===s,i&&U(t,!0,-1)&&(I=!0,t.lineIndent>e?k=1:t.lineIndent===e?k=0:t.lineIndent<e&&(k=-1)),1===k)for(;z(t)||V(t);)U(t,!0,-1)?(I=!0,y=a,t.lineIndent>e?k=1:t.lineIndent===e?k=0:t.lineIndent<e&&(k=-1)):y=!1;if(y&&(y=I||n),1!==k&&p!==s||(b=l===s||h===s?e:e+1,w=t.position-t.lineStart,1===k?y&&($(t,w)||function(t,e,s){var r,i,n,a,o,c=t.tag,l=t.anchor,u={},d={},f=null,m=null,y=null,g=!1,x=!1;for(null!==t.anchor&&(t.anchorMap[t.anchor]=u),o=t.input.charCodeAt(t.position);0!==o;){if(r=t.input.charCodeAt(t.position+1),n=t.line,a=t.position,63!==o&&58!==o||!S(r)){if(!q(t,s,h,!1,!0))break;if(t.line===n){for(o=t.input.charCodeAt(t.position);T(o);)o=t.input.charCodeAt(++t.position);if(58===o)S(o=t.input.charCodeAt(++t.position))||O(t,"a whitespace character is expected after the key-value separator within a block mapping"),g&&(B(t,u,d,f,m,null),f=m=y=null),x=!0,g=!1,i=!1,f=t.tag,m=t.result;else{if(!x)return t.tag=c,t.anchor=l,!0;O(t,"can not read an implicit mapping pair; a colon is missed")}}else{if(!x)return t.tag=c,t.anchor=l,!0;O(t,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===o?(g&&(B(t,u,d,f,m,null),f=m=y=null),x=!0,g=!0,i=!0):g?(g=!1,i=!0):O(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,o=r;if((t.line===n||t.lineIndent>e)&&(q(t,e,p,!0,i)&&(g?m=t.result:y=t.result),g||(B(t,u,d,f,m,y,n,a),f=m=y=null),U(t,!0,-1),o=t.input.charCodeAt(t.position)),t.lineIndent>e&&0!==o)O(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return g&&B(t,u,d,f,m,null),x&&(t.tag=c,t.anchor=l,t.kind="mapping",t.result=u),x}(t,w,b))||function(t,e){var s,r,i,n,a,o,c,h,u,p,d=!0,f=t.tag,m=t.anchor,y={};if(91===(p=t.input.charCodeAt(t.position)))i=93,o=!1,r=[];else{if(123!==p)return!1;i=125,o=!0,r={}}for(null!==t.anchor&&(t.anchorMap[t.anchor]=r),p=t.input.charCodeAt(++t.position);0!==p;){if(U(t,!0,e),(p=t.input.charCodeAt(t.position))===i)return t.position++,t.tag=f,t.anchor=m,t.kind=o?"mapping":"sequence",t.result=r,!0;d||O(t,"missed comma between flow collection entries"),u=null,n=a=!1,63===p&&S(t.input.charCodeAt(t.position+1))&&(n=a=!0,t.position++,U(t,!0,e)),s=t.line,q(t,e,l,!1,!0),h=t.tag,c=t.result,U(t,!0,e),p=t.input.charCodeAt(t.position),!a&&t.line!==s||58!==p||(n=!0,p=t.input.charCodeAt(++t.position),U(t,!0,e),q(t,e,l,!1,!0),u=t.result),o?B(t,r,y,h,c,u):n?r.push(B(t,null,y,h,c,u)):r.push(c),U(t,!0,e),44===(p=t.input.charCodeAt(t.position))?(d=!0,p=t.input.charCodeAt(++t.position)):d=!1}O(t,"unexpected end of the stream within a flow collection")}(t,b)?M=!0:(o&&function(t,e){var s,i,n,a,o,c=d,l=!1,h=!1,u=e,p=0,y=!1;if(124===(a=t.input.charCodeAt(t.position)))i=!1;else{if(62!==a)return!1;i=!0}for(t.kind="scalar",t.result="";0!==a;)if(43===(a=t.input.charCodeAt(++t.position))||45===a)d===c?c=43===a?m:f:O(t,"repeat of a chomping mode identifier");else{if(!((n=48<=(o=a)&&o<=57?o-48:-1)>=0))break;0===n?O(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):h?O(t,"repeat of an indentation width identifier"):(u=e+n-1,h=!0)}if(T(a)){do{a=t.input.charCodeAt(++t.position)}while(T(a));if(35===a)do{a=t.input.charCodeAt(++t.position)}while(!P(a)&&0!==a)}for(;0!==a;){for(Y(t),t.lineIndent=0,a=t.input.charCodeAt(t.position);(!h||t.lineIndent<u)&&32===a;)t.lineIndent++,a=t.input.charCodeAt(++t.position);if(!h&&t.lineIndent>u&&(u=t.lineIndent),P(a))p++;else{if(t.lineIndent<u){c===m?t.result+=r.repeat("\n",l?1+p:p):c===d&&l&&(t.result+="\n");break}for(i?T(a)?(y=!0,t.result+=r.repeat("\n",l?1+p:p)):y?(y=!1,t.result+=r.repeat("\n",p+1)):0===p?l&&(t.result+=" "):t.result+=r.repeat("\n",p):t.result+=r.repeat("\n",l?1+p:p),l=!0,h=!0,p=0,s=t.position;!P(a)&&0!==a;)a=t.input.charCodeAt(++t.position);R(t,s,t.position,!1)}}return!0}(t,b)||function(t,e){var s,r,i;if(39!==(s=t.input.charCodeAt(t.position)))return!1;for(t.kind="scalar",t.result="",t.position++,r=i=t.position;0!==(s=t.input.charCodeAt(t.position));)if(39===s){if(R(t,r,t.position,!0),39!==(s=t.input.charCodeAt(++t.position)))return!0;r=t.position,t.position++,i=t.position}else P(s)?(R(t,r,i,!0),W(t,U(t,!1,e)),r=i=t.position):t.position===t.lineStart&&H(t)?O(t,"unexpected end of the document within a single quoted scalar"):(t.position++,i=t.position);O(t,"unexpected end of the stream within a single quoted scalar")}(t,b)||function(t,e){var s,r,i,n,a,o,c;if(34!==(o=t.input.charCodeAt(t.position)))return!1;for(t.kind="scalar",t.result="",t.position++,s=r=t.position;0!==(o=t.input.charCodeAt(t.position));){if(34===o)return R(t,s,t.position,!0),t.position++,!0;if(92===o){if(R(t,s,t.position,!0),P(o=t.input.charCodeAt(++t.position)))U(t,!1,e);else if(o<256&&C[o])t.result+=N[o],t.position++;else if((a=120===(c=o)?2:117===c?4:85===c?8:0)>0){for(i=a,n=0;i>0;i--)(a=_(o=t.input.charCodeAt(++t.position)))>=0?n=(n<<4)+a:O(t,"expected hexadecimal character");t.result+=E(n),t.position++}else O(t,"unknown escape sequence");s=r=t.position}else P(o)?(R(t,s,r,!0),W(t,U(t,!1,e)),s=r=t.position):t.position===t.lineStart&&H(t)?O(t,"unexpected end of the document within a double quoted scalar"):(t.position++,r=t.position)}O(t,"unexpected end of the stream within a double quoted scalar")}(t,b)?M=!0:function(t){var e,s,r;if(42!==(r=t.input.charCodeAt(t.position)))return!1;for(r=t.input.charCodeAt(++t.position),e=t.position;0!==r&&!S(r)&&!A(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&O(t,"name of an alias node must contain at least one character"),s=t.input.slice(e,t.position),c.call(t.anchorMap,s)||O(t,'unidentified alias "'+s+'"'),t.result=t.anchorMap[s],U(t,!0,-1),!0}(t)?(M=!0,null===t.tag&&null===t.anchor||O(t,"alias node should not have any properties")):function(t,e,s){var r,i,n,a,o,c,l,h,u=t.kind,p=t.result;if(S(h=t.input.charCodeAt(t.position))||A(h)||35===h||38===h||42===h||33===h||124===h||62===h||39===h||34===h||37===h||64===h||96===h)return!1;if((63===h||45===h)&&(S(r=t.input.charCodeAt(t.position+1))||s&&A(r)))return!1;for(t.kind="scalar",t.result="",i=n=t.position,a=!1;0!==h;){if(58===h){if(S(r=t.input.charCodeAt(t.position+1))||s&&A(r))break}else if(35===h){if(S(t.input.charCodeAt(t.position-1)))break}else{if(t.position===t.lineStart&&H(t)||s&&A(h))break;if(P(h)){if(o=t.line,c=t.lineStart,l=t.lineIndent,U(t,!1,-1),t.lineIndent>=e){a=!0,h=t.input.charCodeAt(t.position);continue}t.position=n,t.line=o,t.lineStart=c,t.lineIndent=l;break}}a&&(R(t,i,n,!1),W(t,t.line-o),i=n=t.position,a=!1),T(h)||(n=t.position+1),h=t.input.charCodeAt(++t.position)}return R(t,i,n,!1),!!t.result||(t.kind=u,t.result=p,!1)}(t,b,l===s)&&(M=!0,null===t.tag&&(t.tag="?")),null!==t.anchor&&(t.anchorMap[t.anchor]=t.result)):0===k&&(M=y&&$(t,w))),null!==t.tag&&"!"!==t.tag)if("?"===t.tag){for(null!==t.result&&"scalar"!==t.kind&&O(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),g=0,x=t.implicitTypes.length;g<x;g+=1)if((v=t.implicitTypes[g]).resolve(t.result)){t.result=v.construct(t.result),t.tag=v.tag,null!==t.anchor&&(t.anchorMap[t.anchor]=t.result);break}}else c.call(t.typeMap[t.kind||"fallback"],t.tag)?(v=t.typeMap[t.kind||"fallback"][t.tag],null!==t.result&&v.kind!==t.kind&&O(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+v.kind+'", not "'+t.kind+'"'),v.resolve(t.result)?(t.result=v.construct(t.result),null!==t.anchor&&(t.anchorMap[t.anchor]=t.result)):O(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")):O(t,"unknown tag !<"+t.tag+">");return null!==t.listener&&t.listener("close",t),null!==t.tag||null!==t.anchor||M}function K(t){var e,s,r,i,n=t.position,a=!1;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap={},t.anchorMap={};0!==(i=t.input.charCodeAt(t.position))&&(U(t,!0,-1),i=t.input.charCodeAt(t.position),!(t.lineIndent>0||37!==i));){for(a=!0,i=t.input.charCodeAt(++t.position),e=t.position;0!==i&&!S(i);)i=t.input.charCodeAt(++t.position);for(r=[],(s=t.input.slice(e,t.position)).length<1&&O(t,"directive name must not be less than one character in length");0!==i;){for(;T(i);)i=t.input.charCodeAt(++t.position);if(35===i){do{i=t.input.charCodeAt(++t.position)}while(0!==i&&!P(i));break}if(P(i))break;for(e=t.position;0!==i&&!S(i);)i=t.input.charCodeAt(++t.position);r.push(t.input.slice(e,t.position))}0!==i&&Y(t),c.call(F,s)?F[s](t,s,r):D(t,'unknown document directive "'+s+'"')}U(t,!0,-1),0===t.lineIndent&&45===t.input.charCodeAt(t.position)&&45===t.input.charCodeAt(t.position+1)&&45===t.input.charCodeAt(t.position+2)?(t.position+=3,U(t,!0,-1)):a&&O(t,"directives end mark is expected"),q(t,t.lineIndent-1,p,!1,!0),U(t,!0,-1),t.checkLineBreaks&&g.test(t.input.slice(n,t.position))&&D(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&H(t)?46===t.input.charCodeAt(t.position)&&(t.position+=3,U(t,!0,-1)):t.position<t.length-1&&O(t,"end of the stream or a document separator is expected")}function J(t,e){e=e||{},0!==(t=String(t)).length&&(10!==t.charCodeAt(t.length-1)&&13!==t.charCodeAt(t.length-1)&&(t+="\n"),65279===t.charCodeAt(0)&&(t=t.slice(1)));var s=new M(t,e),r=t.indexOf("\0");for(-1!==r&&(s.position=r,O(s,"null byte is not allowed in input")),s.input+="\0";32===s.input.charCodeAt(s.position);)s.lineIndent+=1,s.position+=1;for(;s.position<s.length-1;)K(s);return s.documents}function G(t,e,s){null!==e&&"object"==typeof e&&void 0===s&&(s=e,e=null);var r=J(t,s);if("function"!=typeof e)return r;for(var i=0,n=r.length;i<n;i+=1)e(r[i])}function X(t,e){var s=J(t,e);if(0!==s.length){if(1===s.length)return s[0];throw new i("expected a single document in the stream, but found more")}}t.exports.loadAll=G,t.exports.load=X,t.exports.safeLoadAll=function(t,e,s){return"object"==typeof e&&null!==e&&void 0===s&&(s=e,e=null),G(t,e,r.extend({schema:a},s))},t.exports.safeLoad=function(t,e){return X(t,r.extend({schema:a},e))}},9348:(t,e,s)=>{"use strict";var r=s(3780);function i(t,e,s,r,i){this.name=t,this.buffer=e,this.position=s,this.line=r,this.column=i}i.prototype.getSnippet=function(t,e){var s,i,n,a,o;if(!this.buffer)return null;for(t=t||4,e=e||75,s="",i=this.position;i>0&&-1==="\0\r\n
\u2028\u2029".indexOf(this.buffer.charAt(i-1));)if(i-=1,this.position-i>e/2-1){s=" ... ",i+=5;break}for(n="",a=this.position;a<this.buffer.length&&-1==="\0\r\n
\u2028\u2029".indexOf(this.buffer.charAt(a));)if((a+=1)-this.position>e/2-1){n=" ... ",a-=5;break}return o=this.buffer.slice(i,a),r.repeat(" ",t)+s+o+n+"\n"+r.repeat(" ",t+this.position-i+s.length)+"^"},i.prototype.toString=function(t){var e,s="";return this.name&&(s+='in "'+this.name+'" '),s+="at line "+(this.line+1)+", column "+(this.column+1),t||(e=this.getSnippet())&&(s+=":\n"+e),s},t.exports=i},2290:(t,e,s)=>{"use strict";var r=s(3780),i=s(1796),n=s(5417);function a(t,e,s){var r=[];return t.include.forEach((function(t){s=a(t,e,s)})),t[e].forEach((function(t){s.forEach((function(e,s){e.tag===t.tag&&e.kind===t.kind&&r.push(s)})),s.push(t)})),s.filter((function(t,e){return-1===r.indexOf(e)}))}function o(t){this.include=t.include||[],this.implicit=t.implicit||[],this.explicit=t.explicit||[],this.implicit.forEach((function(t){if(t.loadKind&&"scalar"!==t.loadKind)throw new i("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")})),this.compiledImplicit=a(this,"implicit",[]),this.compiledExplicit=a(this,"explicit",[]),this.compiledTypeMap=function(){var t,e,s={scalar:{},sequence:{},mapping:{},fallback:{}};function r(t){s[t.kind][t.tag]=s.fallback[t.tag]=t}for(t=0,e=arguments.length;t<e;t+=1)arguments[t].forEach(r);return s}(this.compiledImplicit,this.compiledExplicit)}o.DEFAULT=null,o.create=function(){var t,e;switch(arguments.length){case 1:t=o.DEFAULT,e=arguments[0];break;case 2:t=arguments[0],e=arguments[1];break;default:throw new i("Wrong number of arguments for Schema.create function")}if(t=r.toArray(t),e=r.toArray(e),!t.every((function(t){return t instanceof o})))throw new i("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!e.every((function(t){return t instanceof n})))throw new i("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new o({include:t,explicit:e})},t.exports=o},8774:(t,e,s)=>{"use strict";var r=s(2290);t.exports=new r({include:[s(8739)]})},2846:(t,e,s)=>{"use strict";var r=s(2290);t.exports=r.DEFAULT=new r({include:[s(9590)],explicit:[s(9280),s(6751),s(5986)]})},9590:(t,e,s)=>{"use strict";var r=s(2290);t.exports=new r({include:[s(8774)],implicit:[s(4938),s(7042)],explicit:[s(273),s(3901),s(343),s(6562)]})},8028:(t,e,s)=>{"use strict";var r=s(2290);t.exports=new r({explicit:[s(2621),s(5853),s(1256)]})},8739:(t,e,s)=>{"use strict";var r=s(2290);t.exports=new r({include:[s(8028)],implicit:[s(5137),s(1548),s(6539),s(6076)]})},5417:(t,e,s)=>{"use strict";var r=s(1796),i=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],n=["scalar","sequence","mapping"];t.exports=function(t,e){var s,a;if(e=e||{},Object.keys(e).forEach((function(e){if(-1===i.indexOf(e))throw new r('Unknown option "'+e+'" is met in definition of "'+t+'" YAML type.')})),this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(t){return t},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.defaultStyle=e.defaultStyle||null,this.styleAliases=(s=e.styleAliases||null,a={},null!==s&&Object.keys(s).forEach((function(t){s[t].forEach((function(e){a[String(e)]=t}))})),a),-1===n.indexOf(this.kind))throw new r('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}},273:(t,e,s)=>{"use strict";var r;try{r=Object(function(){var t=new Error("Cannot find module 'buffer'");throw t.code="MODULE_NOT_FOUND",t}())}catch(t){}var i=s(5417),n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";t.exports=new i("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(t){if(null===t)return!1;var e,s,r=0,i=t.length,a=n;for(s=0;s<i;s++)if(!((e=a.indexOf(t.charAt(s)))>64)){if(e<0)return!1;r+=6}return r%8==0},construct:function(t){var e,s,i=t.replace(/[\r\n=]/g,""),a=i.length,o=n,c=0,l=[];for(e=0;e<a;e++)e%4==0&&e&&(l.push(c>>16&255),l.push(c>>8&255),l.push(255&c)),c=c<<6|o.indexOf(i.charAt(e));return 0==(s=a%4*6)?(l.push(c>>16&255),l.push(c>>8&255),l.push(255&c)):18===s?(l.push(c>>10&255),l.push(c>>2&255)):12===s&&l.push(c>>4&255),r?r.from?r.from(l):new r(l):l},predicate:function(t){return r&&r.isBuffer(t)},represent:function(t){var e,s,r="",i=0,a=t.length,o=n;for(e=0;e<a;e++)e%3==0&&e&&(r+=o[i>>18&63],r+=o[i>>12&63],r+=o[i>>6&63],r+=o[63&i]),i=(i<<8)+t[e];return 0==(s=a%3)?(r+=o[i>>18&63],r+=o[i>>12&63],r+=o[i>>6&63],r+=o[63&i]):2===s?(r+=o[i>>10&63],r+=o[i>>4&63],r+=o[i<<2&63],r+=o[64]):1===s&&(r+=o[i>>2&63],r+=o[i<<4&63],r+=o[64],r+=o[64]),r}})},1548:(t,e,s)=>{"use strict";var r=s(5417);t.exports=new r("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(t){if(null===t)return!1;var e=t.length;return 4===e&&("true"===t||"True"===t||"TRUE"===t)||5===e&&("false"===t||"False"===t||"FALSE"===t)},construct:function(t){return"true"===t||"True"===t||"TRUE"===t},predicate:function(t){return"[object Boolean]"===Object.prototype.toString.call(t)},represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}},defaultStyle:"lowercase"})},6076:(t,e,s)=>{"use strict";var r=s(3780),i=s(5417),n=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),a=/^[-+]?[0-9]+e/;t.exports=new i("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(t){return null!==t&&!(!n.test(t)||"_"===t[t.length-1])},construct:function(t){var e,s,r,i;return s="-"===(e=t.replace(/_/g,"").toLowerCase())[0]?-1:1,i=[],"+-".indexOf(e[0])>=0&&(e=e.slice(1)),".inf"===e?1===s?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===e?NaN:e.indexOf(":")>=0?(e.split(":").forEach((function(t){i.unshift(parseFloat(t,10))})),e=0,r=1,i.forEach((function(t){e+=t*r,r*=60})),s*e):s*parseFloat(e,10)},predicate:function(t){return"[object Number]"===Object.prototype.toString.call(t)&&(t%1!=0||r.isNegativeZero(t))},represent:function(t,e){var s;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(r.isNegativeZero(t))return"-0.0";return s=t.toString(10),a.test(s)?s.replace("e",".e"):s},defaultStyle:"lowercase"})},6539:(t,e,s)=>{"use strict";var r=s(3780),i=s(5417);function n(t){return 48<=t&&t<=55}function a(t){return 48<=t&&t<=57}t.exports=new i("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(t){if(null===t)return!1;var e,s,r=t.length,i=0,o=!1;if(!r)return!1;if("-"!==(e=t[i])&&"+"!==e||(e=t[++i]),"0"===e){if(i+1===r)return!0;if("b"===(e=t[++i])){for(i++;i<r;i++)if("_"!==(e=t[i])){if("0"!==e&&"1"!==e)return!1;o=!0}return o&&"_"!==e}if("x"===e){for(i++;i<r;i++)if("_"!==(e=t[i])){if(!(48<=(s=t.charCodeAt(i))&&s<=57||65<=s&&s<=70||97<=s&&s<=102))return!1;o=!0}return o&&"_"!==e}for(;i<r;i++)if("_"!==(e=t[i])){if(!n(t.charCodeAt(i)))return!1;o=!0}return o&&"_"!==e}if("_"===e)return!1;for(;i<r;i++)if("_"!==(e=t[i])){if(":"===e)break;if(!a(t.charCodeAt(i)))return!1;o=!0}return!(!o||"_"===e)&&(":"!==e||/^(:[0-5]?[0-9])+$/.test(t.slice(i)))},construct:function(t){var e,s,r=t,i=1,n=[];return-1!==r.indexOf("_")&&(r=r.replace(/_/g,"")),"-"!==(e=r[0])&&"+"!==e||("-"===e&&(i=-1),e=(r=r.slice(1))[0]),"0"===r?0:"0"===e?"b"===r[1]?i*parseInt(r.slice(2),2):"x"===r[1]?i*parseInt(r,16):i*parseInt(r,8):-1!==r.indexOf(":")?(r.split(":").forEach((function(t){n.unshift(parseInt(t,10))})),r=0,s=1,n.forEach((function(t){r+=t*s,s*=60})),i*r):i*parseInt(r,10)},predicate:function(t){return"[object Number]"===Object.prototype.toString.call(t)&&t%1==0&&!r.isNegativeZero(t)},represent:{binary:function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},octal:function(t){return t>=0?"0"+t.toString(8):"-0"+t.toString(8).slice(1)},decimal:function(t){return t.toString(10)},hexadecimal:function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},5986:(t,e,s)=>{"use strict";var r;try{r=s(Object(function(){var t=new Error("Cannot find module 'esprima'");throw t.code="MODULE_NOT_FOUND",t}()))}catch(t){"undefined"!=typeof window&&(r=window.esprima)}var i=s(5417);t.exports=new i("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:function(t){if(null===t)return!1;try{var e="("+t+")",s=r.parse(e,{range:!0});return"Program"===s.type&&1===s.body.length&&"ExpressionStatement"===s.body[0].type&&("ArrowFunctionExpression"===s.body[0].expression.type||"FunctionExpression"===s.body[0].expression.type)}catch(t){return!1}},construct:function(t){var e,s="("+t+")",i=r.parse(s,{range:!0}),n=[];if("Program"!==i.type||1!==i.body.length||"ExpressionStatement"!==i.body[0].type||"ArrowFunctionExpression"!==i.body[0].expression.type&&"FunctionExpression"!==i.body[0].expression.type)throw new Error("Failed to resolve function");return i.body[0].expression.params.forEach((function(t){n.push(t.name)})),e=i.body[0].expression.body.range,"BlockStatement"===i.body[0].expression.body.type?new Function(n,s.slice(e[0]+1,e[1]-1)):new Function(n,"return "+s.slice(e[0],e[1]))},predicate:function(t){return"[object Function]"===Object.prototype.toString.call(t)},represent:function(t){return t.toString()}})},6751:(t,e,s)=>{"use strict";var r=s(5417);t.exports=new r("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:function(t){if(null===t)return!1;if(0===t.length)return!1;var e=t,s=/\/([gim]*)$/.exec(t),r="";if("/"===e[0]){if(s&&(r=s[1]),r.length>3)return!1;if("/"!==e[e.length-r.length-1])return!1}return!0},construct:function(t){var e=t,s=/\/([gim]*)$/.exec(t),r="";return"/"===e[0]&&(s&&(r=s[1]),e=e.slice(1,e.length-r.length-1)),new RegExp(e,r)},predicate:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},represent:function(t){var e="/"+t.source+"/";return t.global&&(e+="g"),t.multiline&&(e+="m"),t.ignoreCase&&(e+="i"),e}})},9280:(t,e,s)=>{"use strict";var r=s(5417);t.exports=new r("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:function(){return!0},construct:function(){},predicate:function(t){return void 0===t},represent:function(){return""}})},1256:(t,e,s)=>{"use strict";var r=s(5417);t.exports=new r("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return null!==t?t:{}}})},7042:(t,e,s)=>{"use strict";var r=s(5417);t.exports=new r("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(t){return"<<"===t||null===t}})},5137:(t,e,s)=>{"use strict";var r=s(5417);t.exports=new r("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(t){if(null===t)return!0;var e=t.length;return 1===e&&"~"===t||4===e&&("null"===t||"Null"===t||"NULL"===t)},construct:function(){return null},predicate:function(t){return null===t},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})},3901:(t,e,s)=>{"use strict";var r=s(5417),i=Object.prototype.hasOwnProperty,n=Object.prototype.toString;t.exports=new r("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(t){if(null===t)return!0;var e,s,r,a,o,c=[],l=t;for(e=0,s=l.length;e<s;e+=1){if(r=l[e],o=!1,"[object Object]"!==n.call(r))return!1;for(a in r)if(i.call(r,a)){if(o)return!1;o=!0}if(!o)return!1;if(-1!==c.indexOf(a))return!1;c.push(a)}return!0},construct:function(t){return null!==t?t:[]}})},343:(t,e,s)=>{"use strict";var r=s(5417),i=Object.prototype.toString;t.exports=new r("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function(t){if(null===t)return!0;var e,s,r,n,a,o=t;for(a=new Array(o.length),e=0,s=o.length;e<s;e+=1){if(r=o[e],"[object Object]"!==i.call(r))return!1;if(1!==(n=Object.keys(r)).length)return!1;a[e]=[n[0],r[n[0]]]}return!0},construct:function(t){if(null===t)return[];var e,s,r,i,n,a=t;for(n=new Array(a.length),e=0,s=a.length;e<s;e+=1)r=a[e],i=Object.keys(r),n[e]=[i[0],r[i[0]]];return n}})},5853:(t,e,s)=>{"use strict";var r=s(5417);t.exports=new r("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return null!==t?t:[]}})},6562:(t,e,s)=>{"use strict";var r=s(5417),i=Object.prototype.hasOwnProperty;t.exports=new r("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(t){if(null===t)return!0;var e,s=t;for(e in s)if(i.call(s,e)&&null!==s[e])return!1;return!0},construct:function(t){return null!==t?t:{}}})},2621:(t,e,s)=>{"use strict";var r=s(5417);t.exports=new r("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return null!==t?t:""}})},4938:(t,e,s)=>{"use strict";var r=s(5417),i=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),n=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");t.exports=new r("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(t){return null!==t&&(null!==i.exec(t)||null!==n.exec(t))},construct:function(t){var e,s,r,a,o,c,l,h,u=0,p=null;if(null===(e=i.exec(t))&&(e=n.exec(t)),null===e)throw new Error("Date resolve error");if(s=+e[1],r=+e[2]-1,a=+e[3],!e[4])return new Date(Date.UTC(s,r,a));if(o=+e[4],c=+e[5],l=+e[6],e[7]){for(u=e[7].slice(0,3);u.length<3;)u+="0";u=+u}return e[9]&&(p=6e4*(60*+e[10]+ +(e[11]||0)),"-"===e[9]&&(p=-p)),h=new Date(Date.UTC(s,r,a,o,c,l,u)),p&&h.setTime(h.getTime()-p),h},instanceOf:Date,represent:function(t){return t.toISOString()}})},5250:function(t,e,s){var r;t=s.nmd(t),function(){var i,n="Expected a function",a="__lodash_hash_undefined__",o="__lodash_placeholder__",c=32,l=128,h=1/0,u=9007199254740991,p=NaN,d=4294967295,f=[["ary",l],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",c],["partialRight",64],["rearg",256]],m="[object Arguments]",y="[object Array]",g="[object Boolean]",x="[object Date]",v="[object Error]",b="[object Function]",w="[object GeneratorFunction]",P="[object Map]",T="[object Number]",S="[object Object]",A="[object Promise]",_="[object RegExp]",k="[object Set]",E="[object String]",C="[object Symbol]",N="[object WeakMap]",I="[object ArrayBuffer]",M="[object DataView]",L="[object Float32Array]",O="[object Float64Array]",D="[object Int8Array]",F="[object Int16Array]",R="[object Int32Array]",j="[object Uint8Array]",B="[object Uint8ClampedArray]",Y="[object Uint16Array]",U="[object Uint32Array]",H=/\b__p \+= '';/g,W=/\b(__p \+=) '' \+/g,$=/(__e\(.*?\)|\b__t\)) \+\n'';/g,z=/&(?:amp|lt|gt|quot|#39);/g,V=/[&<>"']/g,q=RegExp(z.source),K=RegExp(V.source),J=/<%-([\s\S]+?)%>/g,G=/<%([\s\S]+?)%>/g,X=/<%=([\s\S]+?)%>/g,Z=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Q=/^\w*$/,tt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,et=/[\\^$.*+?()[\]{}|]/g,st=RegExp(et.source),rt=/^\s+/,it=/\s/,nt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,at=/\{\n\/\* \[wrapped with (.+)\] \*/,ot=/,? & /,ct=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,lt=/[()=,{}\[\]\/\s]/,ht=/\\(\\)?/g,ut=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,pt=/\w*$/,dt=/^[-+]0x[0-9a-f]+$/i,ft=/^0b[01]+$/i,mt=/^\[object .+?Constructor\]$/,yt=/^0o[0-7]+$/i,gt=/^(?:0|[1-9]\d*)$/,xt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,vt=/($^)/,bt=/['\n\r\u2028\u2029\\]/g,wt="\\ud800-\\udfff",Pt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Tt="\\u2700-\\u27bf",St="a-z\\xdf-\\xf6\\xf8-\\xff",At="A-Z\\xc0-\\xd6\\xd8-\\xde",_t="\\ufe0e\\ufe0f",kt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Et="["+wt+"]",Ct="["+kt+"]",Nt="["+Pt+"]",It="\\d+",Mt="["+Tt+"]",Lt="["+St+"]",Ot="[^"+wt+kt+It+Tt+St+At+"]",Dt="\\ud83c[\\udffb-\\udfff]",Ft="[^"+wt+"]",Rt="(?:\\ud83c[\\udde6-\\uddff]){2}",jt="[\\ud800-\\udbff][\\udc00-\\udfff]",Bt="["+At+"]",Yt="\\u200d",Ut="(?:"+Lt+"|"+Ot+")",Ht="(?:"+Bt+"|"+Ot+")",Wt="(?:['’](?:d|ll|m|re|s|t|ve))?",$t="(?:['’](?:D|LL|M|RE|S|T|VE))?",zt="(?:"+Nt+"|"+Dt+")?",Vt="["+_t+"]?",qt=Vt+zt+"(?:"+Yt+"(?:"+[Ft,Rt,jt].join("|")+")"+Vt+zt+")*",Kt="(?:"+[Mt,Rt,jt].join("|")+")"+qt,Jt="(?:"+[Ft+Nt+"?",Nt,Rt,jt,Et].join("|")+")",Gt=RegExp("['’]","g"),Xt=RegExp(Nt,"g"),Zt=RegExp(Dt+"(?="+Dt+")|"+Jt+qt,"g"),Qt=RegExp([Bt+"?"+Lt+"+"+Wt+"(?="+[Ct,Bt,"$"].join("|")+")",Ht+"+"+$t+"(?="+[Ct,Bt+Ut,"$"].join("|")+")",Bt+"?"+Ut+"+"+Wt,Bt+"+"+$t,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",It,Kt].join("|"),"g"),te=RegExp("["+Yt+wt+Pt+_t+"]"),ee=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,se=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],re=-1,ie={};ie[L]=ie[O]=ie[D]=ie[F]=ie[R]=ie[j]=ie[B]=ie[Y]=ie[U]=!0,ie[m]=ie[y]=ie[I]=ie[g]=ie[M]=ie[x]=ie[v]=ie[b]=ie[P]=ie[T]=ie[S]=ie[_]=ie[k]=ie[E]=ie[N]=!1;var ne={};ne[m]=ne[y]=ne[I]=ne[M]=ne[g]=ne[x]=ne[L]=ne[O]=ne[D]=ne[F]=ne[R]=ne[P]=ne[T]=ne[S]=ne[_]=ne[k]=ne[E]=ne[C]=ne[j]=ne[B]=ne[Y]=ne[U]=!0,ne[v]=ne[b]=ne[N]=!1;var ae={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},oe=parseFloat,ce=parseInt,le="object"==typeof s.g&&s.g&&s.g.Object===Object&&s.g,he="object"==typeof self&&self&&self.Object===Object&&self,ue=le||he||Function("return this")(),pe=e&&!e.nodeType&&e,de=pe&&t&&!t.nodeType&&t,fe=de&&de.exports===pe,me=fe&&le.process,ye=function(){try{return de&&de.require&&de.require("util").types||me&&me.binding&&me.binding("util")}catch(t){}}(),ge=ye&&ye.isArrayBuffer,xe=ye&&ye.isDate,ve=ye&&ye.isMap,be=ye&&ye.isRegExp,we=ye&&ye.isSet,Pe=ye&&ye.isTypedArray;function Te(t,e,s){switch(s.length){case 0:return t.call(e);case 1:return t.call(e,s[0]);case 2:return t.call(e,s[0],s[1]);case 3:return t.call(e,s[0],s[1],s[2])}return t.apply(e,s)}function Se(t,e,s,r){for(var i=-1,n=null==t?0:t.length;++i<n;){var a=t[i];e(r,a,s(a),t)}return r}function Ae(t,e){for(var s=-1,r=null==t?0:t.length;++s<r&&!1!==e(t[s],s,t););return t}function _e(t,e){for(var s=null==t?0:t.length;s--&&!1!==e(t[s],s,t););return t}function ke(t,e){for(var s=-1,r=null==t?0:t.length;++s<r;)if(!e(t[s],s,t))return!1;return!0}function Ee(t,e){for(var s=-1,r=null==t?0:t.length,i=0,n=[];++s<r;){var a=t[s];e(a,s,t)&&(n[i++]=a)}return n}function Ce(t,e){return!(null==t||!t.length)&&Be(t,e,0)>-1}function Ne(t,e,s){for(var r=-1,i=null==t?0:t.length;++r<i;)if(s(e,t[r]))return!0;return!1}function Ie(t,e){for(var s=-1,r=null==t?0:t.length,i=Array(r);++s<r;)i[s]=e(t[s],s,t);return i}function Me(t,e){for(var s=-1,r=e.length,i=t.length;++s<r;)t[i+s]=e[s];return t}function Le(t,e,s,r){var i=-1,n=null==t?0:t.length;for(r&&n&&(s=t[++i]);++i<n;)s=e(s,t[i],i,t);return s}function Oe(t,e,s,r){var i=null==t?0:t.length;for(r&&i&&(s=t[--i]);i--;)s=e(s,t[i],i,t);return s}function De(t,e){for(var s=-1,r=null==t?0:t.length;++s<r;)if(e(t[s],s,t))return!0;return!1}var Fe=We("length");function Re(t,e,s){var r;return s(t,(function(t,s,i){if(e(t,s,i))return r=s,!1})),r}function je(t,e,s,r){for(var i=t.length,n=s+(r?1:-1);r?n--:++n<i;)if(e(t[n],n,t))return n;return-1}function Be(t,e,s){return e==e?function(t,e,s){for(var r=s-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}(t,e,s):je(t,Ue,s)}function Ye(t,e,s,r){for(var i=s-1,n=t.length;++i<n;)if(r(t[i],e))return i;return-1}function Ue(t){return t!=t}function He(t,e){var s=null==t?0:t.length;return s?Ve(t,e)/s:p}function We(t){return function(e){return null==e?i:e[t]}}function $e(t){return function(e){return null==t?i:t[e]}}function ze(t,e,s,r,i){return i(t,(function(t,i,n){s=r?(r=!1,t):e(s,t,i,n)})),s}function Ve(t,e){for(var s,r=-1,n=t.length;++r<n;){var a=e(t[r]);a!==i&&(s=s===i?a:s+a)}return s}function qe(t,e){for(var s=-1,r=Array(t);++s<t;)r[s]=e(s);return r}function Ke(t){return t?t.slice(0,us(t)+1).replace(rt,""):t}function Je(t){return function(e){return t(e)}}function Ge(t,e){return Ie(e,(function(e){return t[e]}))}function Xe(t,e){return t.has(e)}function Ze(t,e){for(var s=-1,r=t.length;++s<r&&Be(e,t[s],0)>-1;);return s}function Qe(t,e){for(var s=t.length;s--&&Be(e,t[s],0)>-1;);return s}var ts=$e({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),es=$e({"&":"&","<":"<",">":">",'"':""","'":"'"});function ss(t){return"\\"+ae[t]}function rs(t){return te.test(t)}function is(t){var e=-1,s=Array(t.size);return t.forEach((function(t,r){s[++e]=[r,t]})),s}function ns(t,e){return function(s){return t(e(s))}}function as(t,e){for(var s=-1,r=t.length,i=0,n=[];++s<r;){var a=t[s];a!==e&&a!==o||(t[s]=o,n[i++]=s)}return n}function os(t){var e=-1,s=Array(t.size);return t.forEach((function(t){s[++e]=t})),s}function cs(t){var e=-1,s=Array(t.size);return t.forEach((function(t){s[++e]=[t,t]})),s}function ls(t){return rs(t)?function(t){for(var e=Zt.lastIndex=0;Zt.test(t);)++e;return e}(t):Fe(t)}function hs(t){return rs(t)?function(t){return t.match(Zt)||[]}(t):function(t){return t.split("")}(t)}function us(t){for(var e=t.length;e--&&it.test(t.charAt(e)););return e}var ps=$e({"&":"&","<":"<",">":">",""":'"',"'":"'"}),ds=function t(e){var s,r=(e=null==e?ue:ds.defaults(ue.Object(),e,ds.pick(ue,se))).Array,it=e.Date,wt=e.Error,Pt=e.Function,Tt=e.Math,St=e.Object,At=e.RegExp,_t=e.String,kt=e.TypeError,Et=r.prototype,Ct=Pt.prototype,Nt=St.prototype,It=e["__core-js_shared__"],Mt=Ct.toString,Lt=Nt.hasOwnProperty,Ot=0,Dt=(s=/[^.]+$/.exec(It&&It.keys&&It.keys.IE_PROTO||""))?"Symbol(src)_1."+s:"",Ft=Nt.toString,Rt=Mt.call(St),jt=ue._,Bt=At("^"+Mt.call(Lt).replace(et,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Yt=fe?e.Buffer:i,Ut=e.Symbol,Ht=e.Uint8Array,Wt=Yt?Yt.allocUnsafe:i,$t=ns(St.getPrototypeOf,St),zt=St.create,Vt=Nt.propertyIsEnumerable,qt=Et.splice,Kt=Ut?Ut.isConcatSpreadable:i,Jt=Ut?Ut.iterator:i,Zt=Ut?Ut.toStringTag:i,te=function(){try{var t=cn(St,"defineProperty");return t({},"",{}),t}catch(t){}}(),ae=e.clearTimeout!==ue.clearTimeout&&e.clearTimeout,le=it&&it.now!==ue.Date.now&&it.now,he=e.setTimeout!==ue.setTimeout&&e.setTimeout,pe=Tt.ceil,de=Tt.floor,me=St.getOwnPropertySymbols,ye=Yt?Yt.isBuffer:i,Fe=e.isFinite,$e=Et.join,fs=ns(St.keys,St),ms=Tt.max,ys=Tt.min,gs=it.now,xs=e.parseInt,vs=Tt.random,bs=Et.reverse,ws=cn(e,"DataView"),Ps=cn(e,"Map"),Ts=cn(e,"Promise"),Ss=cn(e,"Set"),As=cn(e,"WeakMap"),_s=cn(St,"create"),ks=As&&new As,Es={},Cs=Fn(ws),Ns=Fn(Ps),Is=Fn(Ts),Ms=Fn(Ss),Ls=Fn(As),Os=Ut?Ut.prototype:i,Ds=Os?Os.valueOf:i,Fs=Os?Os.toString:i;function Rs(t){if(Qa(t)&&!Ha(t)&&!(t instanceof Us)){if(t instanceof Ys)return t;if(Lt.call(t,"__wrapped__"))return Rn(t)}return new Ys(t)}var js=function(){function t(){}return function(e){if(!Za(e))return{};if(zt)return zt(e);t.prototype=e;var s=new t;return t.prototype=i,s}}();function Bs(){}function Ys(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=i}function Us(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=d,this.__views__=[]}function Hs(t){var e=-1,s=null==t?0:t.length;for(this.clear();++e<s;){var r=t[e];this.set(r[0],r[1])}}function Ws(t){var e=-1,s=null==t?0:t.length;for(this.clear();++e<s;){var r=t[e];this.set(r[0],r[1])}}function $s(t){var e=-1,s=null==t?0:t.length;for(this.clear();++e<s;){var r=t[e];this.set(r[0],r[1])}}function zs(t){var e=-1,s=null==t?0:t.length;for(this.__data__=new $s;++e<s;)this.add(t[e])}function Vs(t){var e=this.__data__=new Ws(t);this.size=e.size}function qs(t,e){var s=Ha(t),r=!s&&Ua(t),i=!s&&!r&&Va(t),n=!s&&!r&&!i&&oo(t),a=s||r||i||n,o=a?qe(t.length,_t):[],c=o.length;for(var l in t)!e&&!Lt.call(t,l)||a&&("length"==l||i&&("offset"==l||"parent"==l)||n&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||mn(l,c))||o.push(l);return o}function Ks(t){var e=t.length;return e?t[$r(0,e-1)]:i}function Js(t,e){return In(Ai(t),ir(e,0,t.length))}function Gs(t){return In(Ai(t))}function Xs(t,e,s){(s!==i&&!ja(t[e],s)||s===i&&!(e in t))&&sr(t,e,s)}function Zs(t,e,s){var r=t[e];Lt.call(t,e)&&ja(r,s)&&(s!==i||e in t)||sr(t,e,s)}function Qs(t,e){for(var s=t.length;s--;)if(ja(t[s][0],e))return s;return-1}function tr(t,e,s,r){return lr(t,(function(t,i,n){e(r,t,s(t),n)})),r}function er(t,e){return t&&_i(e,No(e),t)}function sr(t,e,s){"__proto__"==e&&te?te(t,e,{configurable:!0,enumerable:!0,value:s,writable:!0}):t[e]=s}function rr(t,e){for(var s=-1,n=e.length,a=r(n),o=null==t;++s<n;)a[s]=o?i:Ao(t,e[s]);return a}function ir(t,e,s){return t==t&&(s!==i&&(t=t<=s?t:s),e!==i&&(t=t>=e?t:e)),t}function nr(t,e,s,r,n,a){var o,c=1&e,l=2&e,h=4&e;if(s&&(o=n?s(t,r,n,a):s(t)),o!==i)return o;if(!Za(t))return t;var u=Ha(t);if(u){if(o=function(t){var e=t.length,s=new t.constructor(e);return e&&"string"==typeof t[0]&&Lt.call(t,"index")&&(s.index=t.index,s.input=t.input),s}(t),!c)return Ai(t,o)}else{var p=un(t),d=p==b||p==w;if(Va(t))return vi(t,c);if(p==S||p==m||d&&!n){if(o=l||d?{}:dn(t),!c)return l?function(t,e){return _i(t,hn(t),e)}(t,function(t,e){return t&&_i(e,Io(e),t)}(o,t)):function(t,e){return _i(t,ln(t),e)}(t,er(o,t))}else{if(!ne[p])return n?t:{};o=function(t,e,s){var r,i=t.constructor;switch(e){case I:return bi(t);case g:case x:return new i(+t);case M:return function(t,e){var s=e?bi(t.buffer):t.buffer;return new t.constructor(s,t.byteOffset,t.byteLength)}(t,s);case L:case O:case D:case F:case R:case j:case B:case Y:case U:return wi(t,s);case P:return new i;case T:case E:return new i(t);case _:return function(t){var e=new t.constructor(t.source,pt.exec(t));return e.lastIndex=t.lastIndex,e}(t);case k:return new i;case C:return r=t,Ds?St(Ds.call(r)):{}}}(t,p,c)}}a||(a=new Vs);var f=a.get(t);if(f)return f;a.set(t,o),io(t)?t.forEach((function(r){o.add(nr(r,e,s,r,t,a))})):to(t)&&t.forEach((function(r,i){o.set(i,nr(r,e,s,i,t,a))}));var y=u?i:(h?l?tn:Qi:l?Io:No)(t);return Ae(y||t,(function(r,i){y&&(r=t[i=r]),Zs(o,i,nr(r,e,s,i,t,a))})),o}function ar(t,e,s){var r=s.length;if(null==t)return!r;for(t=St(t);r--;){var n=s[r],a=e[n],o=t[n];if(o===i&&!(n in t)||!a(o))return!1}return!0}function or(t,e,s){if("function"!=typeof t)throw new kt(n);return kn((function(){t.apply(i,s)}),e)}function cr(t,e,s,r){var i=-1,n=Ce,a=!0,o=t.length,c=[],l=e.length;if(!o)return c;s&&(e=Ie(e,Je(s))),r?(n=Ne,a=!1):e.length>=200&&(n=Xe,a=!1,e=new zs(e));t:for(;++i<o;){var h=t[i],u=null==s?h:s(h);if(h=r||0!==h?h:0,a&&u==u){for(var p=l;p--;)if(e[p]===u)continue t;c.push(h)}else n(e,u,r)||c.push(h)}return c}Rs.templateSettings={escape:J,evaluate:G,interpolate:X,variable:"",imports:{_:Rs}},Rs.prototype=Bs.prototype,Rs.prototype.constructor=Rs,Ys.prototype=js(Bs.prototype),Ys.prototype.constructor=Ys,Us.prototype=js(Bs.prototype),Us.prototype.constructor=Us,Hs.prototype.clear=function(){this.__data__=_s?_s(null):{},this.size=0},Hs.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Hs.prototype.get=function(t){var e=this.__data__;if(_s){var s=e[t];return s===a?i:s}return Lt.call(e,t)?e[t]:i},Hs.prototype.has=function(t){var e=this.__data__;return _s?e[t]!==i:Lt.call(e,t)},Hs.prototype.set=function(t,e){var s=this.__data__;return this.size+=this.has(t)?0:1,s[t]=_s&&e===i?a:e,this},Ws.prototype.clear=function(){this.__data__=[],this.size=0},Ws.prototype.delete=function(t){var e=this.__data__,s=Qs(e,t);return!(s<0||(s==e.length-1?e.pop():qt.call(e,s,1),--this.size,0))},Ws.prototype.get=function(t){var e=this.__data__,s=Qs(e,t);return s<0?i:e[s][1]},Ws.prototype.has=function(t){return Qs(this.__data__,t)>-1},Ws.prototype.set=function(t,e){var s=this.__data__,r=Qs(s,t);return r<0?(++this.size,s.push([t,e])):s[r][1]=e,this},$s.prototype.clear=function(){this.size=0,this.__data__={hash:new Hs,map:new(Ps||Ws),string:new Hs}},$s.prototype.delete=function(t){var e=an(this,t).delete(t);return this.size-=e?1:0,e},$s.prototype.get=function(t){return an(this,t).get(t)},$s.prototype.has=function(t){return an(this,t).has(t)},$s.prototype.set=function(t,e){var s=an(this,t),r=s.size;return s.set(t,e),this.size+=s.size==r?0:1,this},zs.prototype.add=zs.prototype.push=function(t){return this.__data__.set(t,a),this},zs.prototype.has=function(t){return this.__data__.has(t)},Vs.prototype.clear=function(){this.__data__=new Ws,this.size=0},Vs.prototype.delete=function(t){var e=this.__data__,s=e.delete(t);return this.size=e.size,s},Vs.prototype.get=function(t){return this.__data__.get(t)},Vs.prototype.has=function(t){return this.__data__.has(t)},Vs.prototype.set=function(t,e){var s=this.__data__;if(s instanceof Ws){var r=s.__data__;if(!Ps||r.length<199)return r.push([t,e]),this.size=++s.size,this;s=this.__data__=new $s(r)}return s.set(t,e),this.size=s.size,this};var lr=Ci(gr),hr=Ci(xr,!0);function ur(t,e){var s=!0;return lr(t,(function(t,r,i){return s=!!e(t,r,i)})),s}function pr(t,e,s){for(var r=-1,n=t.length;++r<n;){var a=t[r],o=e(a);if(null!=o&&(c===i?o==o&&!ao(o):s(o,c)))var c=o,l=a}return l}function dr(t,e){var s=[];return lr(t,(function(t,r,i){e(t,r,i)&&s.push(t)})),s}function fr(t,e,s,r,i){var n=-1,a=t.length;for(s||(s=fn),i||(i=[]);++n<a;){var o=t[n];e>0&&s(o)?e>1?fr(o,e-1,s,r,i):Me(i,o):r||(i[i.length]=o)}return i}var mr=Ni(),yr=Ni(!0);function gr(t,e){return t&&mr(t,e,No)}function xr(t,e){return t&&yr(t,e,No)}function vr(t,e){return Ee(e,(function(e){return Ja(t[e])}))}function br(t,e){for(var s=0,r=(e=mi(e,t)).length;null!=t&&s<r;)t=t[Dn(e[s++])];return s&&s==r?t:i}function wr(t,e,s){var r=e(t);return Ha(t)?r:Me(r,s(t))}function Pr(t){return null==t?t===i?"[object Undefined]":"[object Null]":Zt&&Zt in St(t)?function(t){var e=Lt.call(t,Zt),s=t[Zt];try{t[Zt]=i;var r=!0}catch(t){}var n=Ft.call(t);return r&&(e?t[Zt]=s:delete t[Zt]),n}(t):function(t){return Ft.call(t)}(t)}function Tr(t,e){return t>e}function Sr(t,e){return null!=t&&Lt.call(t,e)}function Ar(t,e){return null!=t&&e in St(t)}function _r(t,e,s){for(var n=s?Ne:Ce,a=t[0].length,o=t.length,c=o,l=r(o),h=1/0,u=[];c--;){var p=t[c];c&&e&&(p=Ie(p,Je(e))),h=ys(p.length,h),l[c]=!s&&(e||a>=120&&p.length>=120)?new zs(c&&p):i}p=t[0];var d=-1,f=l[0];t:for(;++d<a&&u.length<h;){var m=p[d],y=e?e(m):m;if(m=s||0!==m?m:0,!(f?Xe(f,y):n(u,y,s))){for(c=o;--c;){var g=l[c];if(!(g?Xe(g,y):n(t[c],y,s)))continue t}f&&f.push(y),u.push(m)}}return u}function kr(t,e,s){var r=null==(t=Sn(t,e=mi(e,t)))?t:t[Dn(Kn(e))];return null==r?i:Te(r,t,s)}function Er(t){return Qa(t)&&Pr(t)==m}function Cr(t,e,s,r,n){return t===e||(null==t||null==e||!Qa(t)&&!Qa(e)?t!=t&&e!=e:function(t,e,s,r,n,a){var o=Ha(t),c=Ha(e),l=o?y:un(t),h=c?y:un(e),u=(l=l==m?S:l)==S,p=(h=h==m?S:h)==S,d=l==h;if(d&&Va(t)){if(!Va(e))return!1;o=!0,u=!1}if(d&&!u)return a||(a=new Vs),o||oo(t)?Xi(t,e,s,r,n,a):function(t,e,s,r,i,n,a){switch(s){case M:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case I:return!(t.byteLength!=e.byteLength||!n(new Ht(t),new Ht(e)));case g:case x:case T:return ja(+t,+e);case v:return t.name==e.name&&t.message==e.message;case _:case E:return t==e+"";case P:var o=is;case k:var c=1&r;if(o||(o=os),t.size!=e.size&&!c)return!1;var l=a.get(t);if(l)return l==e;r|=2,a.set(t,e);var h=Xi(o(t),o(e),r,i,n,a);return a.delete(t),h;case C:if(Ds)return Ds.call(t)==Ds.call(e)}return!1}(t,e,l,s,r,n,a);if(!(1&s)){var f=u&&Lt.call(t,"__wrapped__"),b=p&&Lt.call(e,"__wrapped__");if(f||b){var w=f?t.value():t,A=b?e.value():e;return a||(a=new Vs),n(w,A,s,r,a)}}return!!d&&(a||(a=new Vs),function(t,e,s,r,n,a){var o=1&s,c=Qi(t),l=c.length;if(l!=Qi(e).length&&!o)return!1;for(var h=l;h--;){var u=c[h];if(!(o?u in e:Lt.call(e,u)))return!1}var p=a.get(t),d=a.get(e);if(p&&d)return p==e&&d==t;var f=!0;a.set(t,e),a.set(e,t);for(var m=o;++h<l;){var y=t[u=c[h]],g=e[u];if(r)var x=o?r(g,y,u,e,t,a):r(y,g,u,t,e,a);if(!(x===i?y===g||n(y,g,s,r,a):x)){f=!1;break}m||(m="constructor"==u)}if(f&&!m){var v=t.constructor,b=e.constructor;v==b||!("constructor"in t)||!("constructor"in e)||"function"==typeof v&&v instanceof v&&"function"==typeof b&&b instanceof b||(f=!1)}return a.delete(t),a.delete(e),f}(t,e,s,r,n,a))}(t,e,s,r,Cr,n))}function Nr(t,e,s,r){var n=s.length,a=n,o=!r;if(null==t)return!a;for(t=St(t);n--;){var c=s[n];if(o&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++n<a;){var l=(c=s[n])[0],h=t[l],u=c[1];if(o&&c[2]){if(h===i&&!(l in t))return!1}else{var p=new Vs;if(r)var d=r(h,u,l,t,e,p);if(!(d===i?Cr(u,h,3,r,p):d))return!1}}return!0}function Ir(t){return!(!Za(t)||(e=t,Dt&&Dt in e))&&(Ja(t)?Bt:mt).test(Fn(t));var e}function Mr(t){return"function"==typeof t?t:null==t?sc:"object"==typeof t?Ha(t)?Rr(t[0],t[1]):Fr(t):uc(t)}function Lr(t){if(!bn(t))return fs(t);var e=[];for(var s in St(t))Lt.call(t,s)&&"constructor"!=s&&e.push(s);return e}function Or(t,e){return t<e}function Dr(t,e){var s=-1,i=$a(t)?r(t.length):[];return lr(t,(function(t,r,n){i[++s]=e(t,r,n)})),i}function Fr(t){var e=on(t);return 1==e.length&&e[0][2]?Pn(e[0][0],e[0][1]):function(s){return s===t||Nr(s,t,e)}}function Rr(t,e){return gn(t)&&wn(e)?Pn(Dn(t),e):function(s){var r=Ao(s,t);return r===i&&r===e?_o(s,t):Cr(e,r,3)}}function jr(t,e,s,r,n){t!==e&&mr(e,(function(a,o){if(n||(n=new Vs),Za(a))!function(t,e,s,r,n,a,o){var c=An(t,s),l=An(e,s),h=o.get(l);if(h)Xs(t,s,h);else{var u=a?a(c,l,s+"",t,e,o):i,p=u===i;if(p){var d=Ha(l),f=!d&&Va(l),m=!d&&!f&&oo(l);u=l,d||f||m?Ha(c)?u=c:za(c)?u=Ai(c):f?(p=!1,u=vi(l,!0)):m?(p=!1,u=wi(l,!0)):u=[]:so(l)||Ua(l)?(u=c,Ua(c)?u=yo(c):Za(c)&&!Ja(c)||(u=dn(l))):p=!1}p&&(o.set(l,u),n(u,l,r,a,o),o.delete(l)),Xs(t,s,u)}}(t,e,o,s,jr,r,n);else{var c=r?r(An(t,o),a,o+"",t,e,n):i;c===i&&(c=a),Xs(t,o,c)}}),Io)}function Br(t,e){var s=t.length;if(s)return mn(e+=e<0?s:0,s)?t[e]:i}function Yr(t,e,s){e=e.length?Ie(e,(function(t){return Ha(t)?function(e){return br(e,1===t.length?t[0]:t)}:t})):[sc];var r=-1;e=Ie(e,Je(nn()));var i=Dr(t,(function(t,s,i){var n=Ie(e,(function(e){return e(t)}));return{criteria:n,index:++r,value:t}}));return function(t,e){var r=t.length;for(t.sort((function(t,e){return function(t,e,s){for(var r=-1,i=t.criteria,n=e.criteria,a=i.length,o=s.length;++r<a;){var c=Pi(i[r],n[r]);if(c)return r>=o?c:c*("desc"==s[r]?-1:1)}return t.index-e.index}(t,e,s)}));r--;)t[r]=t[r].value;return t}(i)}function Ur(t,e,s){for(var r=-1,i=e.length,n={};++r<i;){var a=e[r],o=br(t,a);s(o,a)&&Jr(n,mi(a,t),o)}return n}function Hr(t,e,s,r){var i=r?Ye:Be,n=-1,a=e.length,o=t;for(t===e&&(e=Ai(e)),s&&(o=Ie(t,Je(s)));++n<a;)for(var c=0,l=e[n],h=s?s(l):l;(c=i(o,h,c,r))>-1;)o!==t&&qt.call(o,c,1),qt.call(t,c,1);return t}function Wr(t,e){for(var s=t?e.length:0,r=s-1;s--;){var i=e[s];if(s==r||i!==n){var n=i;mn(i)?qt.call(t,i,1):oi(t,i)}}return t}function $r(t,e){return t+de(vs()*(e-t+1))}function zr(t,e){var s="";if(!t||e<1||e>u)return s;do{e%2&&(s+=t),(e=de(e/2))&&(t+=t)}while(e);return s}function Vr(t,e){return En(Tn(t,e,sc),t+"")}function qr(t){return Ks(Bo(t))}function Kr(t,e){var s=Bo(t);return In(s,ir(e,0,s.length))}function Jr(t,e,s,r){if(!Za(t))return t;for(var n=-1,a=(e=mi(e,t)).length,o=a-1,c=t;null!=c&&++n<a;){var l=Dn(e[n]),h=s;if("__proto__"===l||"constructor"===l||"prototype"===l)return t;if(n!=o){var u=c[l];(h=r?r(u,l,c):i)===i&&(h=Za(u)?u:mn(e[n+1])?[]:{})}Zs(c,l,h),c=c[l]}return t}var Gr=ks?function(t,e){return ks.set(t,e),t}:sc,Xr=te?function(t,e){return te(t,"toString",{configurable:!0,enumerable:!1,value:Qo(e),writable:!0})}:sc;function Zr(t){return In(Bo(t))}function Qr(t,e,s){var i=-1,n=t.length;e<0&&(e=-e>n?0:n+e),(s=s>n?n:s)<0&&(s+=n),n=e>s?0:s-e>>>0,e>>>=0;for(var a=r(n);++i<n;)a[i]=t[i+e];return a}function ti(t,e){var s;return lr(t,(function(t,r,i){return!(s=e(t,r,i))})),!!s}function ei(t,e,s){var r=0,i=null==t?r:t.length;if("number"==typeof e&&e==e&&i<=2147483647){for(;r<i;){var n=r+i>>>1,a=t[n];null!==a&&!ao(a)&&(s?a<=e:a<e)?r=n+1:i=n}return i}return si(t,e,sc,s)}function si(t,e,s,r){var n=0,a=null==t?0:t.length;if(0===a)return 0;for(var o=(e=s(e))!=e,c=null===e,l=ao(e),h=e===i;n<a;){var u=de((n+a)/2),p=s(t[u]),d=p!==i,f=null===p,m=p==p,y=ao(p);if(o)var g=r||m;else g=h?m&&(r||d):c?m&&d&&(r||!f):l?m&&d&&!f&&(r||!y):!f&&!y&&(r?p<=e:p<e);g?n=u+1:a=u}return ys(a,4294967294)}function ri(t,e){for(var s=-1,r=t.length,i=0,n=[];++s<r;){var a=t[s],o=e?e(a):a;if(!s||!ja(o,c)){var c=o;n[i++]=0===a?0:a}}return n}function ii(t){return"number"==typeof t?t:ao(t)?p:+t}function ni(t){if("string"==typeof t)return t;if(Ha(t))return Ie(t,ni)+"";if(ao(t))return Fs?Fs.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function ai(t,e,s){var r=-1,i=Ce,n=t.length,a=!0,o=[],c=o;if(s)a=!1,i=Ne;else if(n>=200){var l=e?null:zi(t);if(l)return os(l);a=!1,i=Xe,c=new zs}else c=e?[]:o;t:for(;++r<n;){var h=t[r],u=e?e(h):h;if(h=s||0!==h?h:0,a&&u==u){for(var p=c.length;p--;)if(c[p]===u)continue t;e&&c.push(u),o.push(h)}else i(c,u,s)||(c!==o&&c.push(u),o.push(h))}return o}function oi(t,e){return null==(t=Sn(t,e=mi(e,t)))||delete t[Dn(Kn(e))]}function ci(t,e,s,r){return Jr(t,e,s(br(t,e)),r)}function li(t,e,s,r){for(var i=t.length,n=r?i:-1;(r?n--:++n<i)&&e(t[n],n,t););return s?Qr(t,r?0:n,r?n+1:i):Qr(t,r?n+1:0,r?i:n)}function hi(t,e){var s=t;return s instanceof Us&&(s=s.value()),Le(e,(function(t,e){return e.func.apply(e.thisArg,Me([t],e.args))}),s)}function ui(t,e,s){var i=t.length;if(i<2)return i?ai(t[0]):[];for(var n=-1,a=r(i);++n<i;)for(var o=t[n],c=-1;++c<i;)c!=n&&(a[n]=cr(a[n]||o,t[c],e,s));return ai(fr(a,1),e,s)}function pi(t,e,s){for(var r=-1,n=t.length,a=e.length,o={};++r<n;){var c=r<a?e[r]:i;s(o,t[r],c)}return o}function di(t){return za(t)?t:[]}function fi(t){return"function"==typeof t?t:sc}function mi(t,e){return Ha(t)?t:gn(t,e)?[t]:On(go(t))}var yi=Vr;function gi(t,e,s){var r=t.length;return s=s===i?r:s,!e&&s>=r?t:Qr(t,e,s)}var xi=ae||function(t){return ue.clearTimeout(t)};function vi(t,e){if(e)return t.slice();var s=t.length,r=Wt?Wt(s):new t.constructor(s);return t.copy(r),r}function bi(t){var e=new t.constructor(t.byteLength);return new Ht(e).set(new Ht(t)),e}function wi(t,e){var s=e?bi(t.buffer):t.buffer;return new t.constructor(s,t.byteOffset,t.length)}function Pi(t,e){if(t!==e){var s=t!==i,r=null===t,n=t==t,a=ao(t),o=e!==i,c=null===e,l=e==e,h=ao(e);if(!c&&!h&&!a&&t>e||a&&o&&l&&!c&&!h||r&&o&&l||!s&&l||!n)return 1;if(!r&&!a&&!h&&t<e||h&&s&&n&&!r&&!a||c&&s&&n||!o&&n||!l)return-1}return 0}function Ti(t,e,s,i){for(var n=-1,a=t.length,o=s.length,c=-1,l=e.length,h=ms(a-o,0),u=r(l+h),p=!i;++c<l;)u[c]=e[c];for(;++n<o;)(p||n<a)&&(u[s[n]]=t[n]);for(;h--;)u[c++]=t[n++];return u}function Si(t,e,s,i){for(var n=-1,a=t.length,o=-1,c=s.length,l=-1,h=e.length,u=ms(a-c,0),p=r(u+h),d=!i;++n<u;)p[n]=t[n];for(var f=n;++l<h;)p[f+l]=e[l];for(;++o<c;)(d||n<a)&&(p[f+s[o]]=t[n++]);return p}function Ai(t,e){var s=-1,i=t.length;for(e||(e=r(i));++s<i;)e[s]=t[s];return e}function _i(t,e,s,r){var n=!s;s||(s={});for(var a=-1,o=e.length;++a<o;){var c=e[a],l=r?r(s[c],t[c],c,s,t):i;l===i&&(l=t[c]),n?sr(s,c,l):Zs(s,c,l)}return s}function ki(t,e){return function(s,r){var i=Ha(s)?Se:tr,n=e?e():{};return i(s,t,nn(r,2),n)}}function Ei(t){return Vr((function(e,s){var r=-1,n=s.length,a=n>1?s[n-1]:i,o=n>2?s[2]:i;for(a=t.length>3&&"function"==typeof a?(n--,a):i,o&&yn(s[0],s[1],o)&&(a=n<3?i:a,n=1),e=St(e);++r<n;){var c=s[r];c&&t(e,c,r,a)}return e}))}function Ci(t,e){return function(s,r){if(null==s)return s;if(!$a(s))return t(s,r);for(var i=s.length,n=e?i:-1,a=St(s);(e?n--:++n<i)&&!1!==r(a[n],n,a););return s}}function Ni(t){return function(e,s,r){for(var i=-1,n=St(e),a=r(e),o=a.length;o--;){var c=a[t?o:++i];if(!1===s(n[c],c,n))break}return e}}function Ii(t){return function(e){var s=rs(e=go(e))?hs(e):i,r=s?s[0]:e.charAt(0),n=s?gi(s,1).join(""):e.slice(1);return r[t]()+n}}function Mi(t){return function(e){return Le(Go(Ho(e).replace(Gt,"")),t,"")}}function Li(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var s=js(t.prototype),r=t.apply(s,e);return Za(r)?r:s}}function Oi(t){return function(e,s,r){var n=St(e);if(!$a(e)){var a=nn(s,3);e=No(e),s=function(t){return a(n[t],t,n)}}var o=t(e,s,r);return o>-1?n[a?e[o]:o]:i}}function Di(t){return Zi((function(e){var s=e.length,r=s,a=Ys.prototype.thru;for(t&&e.reverse();r--;){var o=e[r];if("function"!=typeof o)throw new kt(n);if(a&&!c&&"wrapper"==sn(o))var c=new Ys([],!0)}for(r=c?r:s;++r<s;){var l=sn(o=e[r]),h="wrapper"==l?en(o):i;c=h&&xn(h[0])&&424==h[1]&&!h[4].length&&1==h[9]?c[sn(h[0])].apply(c,h[3]):1==o.length&&xn(o)?c[l]():c.thru(o)}return function(){var t=arguments,r=t[0];if(c&&1==t.length&&Ha(r))return c.plant(r).value();for(var i=0,n=s?e[i].apply(this,t):r;++i<s;)n=e[i].call(this,n);return n}}))}function Fi(t,e,s,n,a,o,c,h,u,p){var d=e&l,f=1&e,m=2&e,y=24&e,g=512&e,x=m?i:Li(t);return function l(){for(var v=arguments.length,b=r(v),w=v;w--;)b[w]=arguments[w];if(y)var P=rn(l),T=function(t,e){for(var s=t.length,r=0;s--;)t[s]===e&&++r;return r}(b,P);if(n&&(b=Ti(b,n,a,y)),o&&(b=Si(b,o,c,y)),v-=T,y&&v<p){var S=as(b,P);return Wi(t,e,Fi,l.placeholder,s,b,S,h,u,p-v)}var A=f?s:this,_=m?A[t]:t;return v=b.length,h?b=function(t,e){for(var s=t.length,r=ys(e.length,s),n=Ai(t);r--;){var a=e[r];t[r]=mn(a,s)?n[a]:i}return t}(b,h):g&&v>1&&b.reverse(),d&&u<v&&(b.length=u),this&&this!==ue&&this instanceof l&&(_=x||Li(_)),_.apply(A,b)}}function Ri(t,e){return function(s,r){return function(t,e,s,r){return gr(t,(function(t,i,n){e(r,s(t),i,n)})),r}(s,t,e(r),{})}}function ji(t,e){return function(s,r){var n;if(s===i&&r===i)return e;if(s!==i&&(n=s),r!==i){if(n===i)return r;"string"==typeof s||"string"==typeof r?(s=ni(s),r=ni(r)):(s=ii(s),r=ii(r)),n=t(s,r)}return n}}function Bi(t){return Zi((function(e){return e=Ie(e,Je(nn())),Vr((function(s){var r=this;return t(e,(function(t){return Te(t,r,s)}))}))}))}function Yi(t,e){var s=(e=e===i?" ":ni(e)).length;if(s<2)return s?zr(e,t):e;var r=zr(e,pe(t/ls(e)));return rs(e)?gi(hs(r),0,t).join(""):r.slice(0,t)}function Ui(t){return function(e,s,n){return n&&"number"!=typeof n&&yn(e,s,n)&&(s=n=i),e=uo(e),s===i?(s=e,e=0):s=uo(s),function(t,e,s,i){for(var n=-1,a=ms(pe((e-t)/(s||1)),0),o=r(a);a--;)o[i?a:++n]=t,t+=s;return o}(e,s,n=n===i?e<s?1:-1:uo(n),t)}}function Hi(t){return function(e,s){return"string"==typeof e&&"string"==typeof s||(e=mo(e),s=mo(s)),t(e,s)}}function Wi(t,e,s,r,n,a,o,l,h,u){var p=8&e;e|=p?c:64,4&(e&=~(p?64:c))||(e&=-4);var d=[t,e,n,p?a:i,p?o:i,p?i:a,p?i:o,l,h,u],f=s.apply(i,d);return xn(t)&&_n(f,d),f.placeholder=r,Cn(f,t,e)}function $i(t){var e=Tt[t];return function(t,s){if(t=mo(t),(s=null==s?0:ys(po(s),292))&&Fe(t)){var r=(go(t)+"e").split("e");return+((r=(go(e(r[0]+"e"+(+r[1]+s)))+"e").split("e"))[0]+"e"+(+r[1]-s))}return e(t)}}var zi=Ss&&1/os(new Ss([,-0]))[1]==h?function(t){return new Ss(t)}:oc;function Vi(t){return function(e){var s=un(e);return s==P?is(e):s==k?cs(e):function(t,e){return Ie(e,(function(e){return[e,t[e]]}))}(e,t(e))}}function qi(t,e,s,a,h,u,p,d){var f=2&e;if(!f&&"function"!=typeof t)throw new kt(n);var m=a?a.length:0;if(m||(e&=-97,a=h=i),p=p===i?p:ms(po(p),0),d=d===i?d:po(d),m-=h?h.length:0,64&e){var y=a,g=h;a=h=i}var x=f?i:en(t),v=[t,e,s,a,h,y,g,u,p,d];if(x&&function(t,e){var s=t[1],r=e[1],i=s|r,n=i<131,a=r==l&&8==s||r==l&&256==s&&t[7].length<=e[8]||384==r&&e[7].length<=e[8]&&8==s;if(!n&&!a)return t;1&r&&(t[2]=e[2],i|=1&s?0:4);var c=e[3];if(c){var h=t[3];t[3]=h?Ti(h,c,e[4]):c,t[4]=h?as(t[3],o):e[4]}(c=e[5])&&(h=t[5],t[5]=h?Si(h,c,e[6]):c,t[6]=h?as(t[5],o):e[6]),(c=e[7])&&(t[7]=c),r&l&&(t[8]=null==t[8]?e[8]:ys(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=i}(v,x),t=v[0],e=v[1],s=v[2],a=v[3],h=v[4],!(d=v[9]=v[9]===i?f?0:t.length:ms(v[9]-m,0))&&24&e&&(e&=-25),e&&1!=e)b=8==e||16==e?function(t,e,s){var n=Li(t);return function a(){for(var o=arguments.length,c=r(o),l=o,h=rn(a);l--;)c[l]=arguments[l];var u=o<3&&c[0]!==h&&c[o-1]!==h?[]:as(c,h);return(o-=u.length)<s?Wi(t,e,Fi,a.placeholder,i,c,u,i,i,s-o):Te(this&&this!==ue&&this instanceof a?n:t,this,c)}}(t,e,d):e!=c&&33!=e||h.length?Fi.apply(i,v):function(t,e,s,i){var n=1&e,a=Li(t);return function e(){for(var o=-1,c=arguments.length,l=-1,h=i.length,u=r(h+c),p=this&&this!==ue&&this instanceof e?a:t;++l<h;)u[l]=i[l];for(;c--;)u[l++]=arguments[++o];return Te(p,n?s:this,u)}}(t,e,s,a);else var b=function(t,e,s){var r=1&e,i=Li(t);return function e(){return(this&&this!==ue&&this instanceof e?i:t).apply(r?s:this,arguments)}}(t,e,s);return Cn((x?Gr:_n)(b,v),t,e)}function Ki(t,e,s,r){return t===i||ja(t,Nt[s])&&!Lt.call(r,s)?e:t}function Ji(t,e,s,r,n,a){return Za(t)&&Za(e)&&(a.set(e,t),jr(t,e,i,Ji,a),a.delete(e)),t}function Gi(t){return so(t)?i:t}function Xi(t,e,s,r,n,a){var o=1&s,c=t.length,l=e.length;if(c!=l&&!(o&&l>c))return!1;var h=a.get(t),u=a.get(e);if(h&&u)return h==e&&u==t;var p=-1,d=!0,f=2&s?new zs:i;for(a.set(t,e),a.set(e,t);++p<c;){var m=t[p],y=e[p];if(r)var g=o?r(y,m,p,e,t,a):r(m,y,p,t,e,a);if(g!==i){if(g)continue;d=!1;break}if(f){if(!De(e,(function(t,e){if(!Xe(f,e)&&(m===t||n(m,t,s,r,a)))return f.push(e)}))){d=!1;break}}else if(m!==y&&!n(m,y,s,r,a)){d=!1;break}}return a.delete(t),a.delete(e),d}function Zi(t){return En(Tn(t,i,Wn),t+"")}function Qi(t){return wr(t,No,ln)}function tn(t){return wr(t,Io,hn)}var en=ks?function(t){return ks.get(t)}:oc;function sn(t){for(var e=t.name+"",s=Es[e],r=Lt.call(Es,e)?s.length:0;r--;){var i=s[r],n=i.func;if(null==n||n==t)return i.name}return e}function rn(t){return(Lt.call(Rs,"placeholder")?Rs:t).placeholder}function nn(){var t=Rs.iteratee||rc;return t=t===rc?Mr:t,arguments.length?t(arguments[0],arguments[1]):t}function an(t,e){var s,r,i=t.__data__;return("string"==(r=typeof(s=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==s:null===s)?i["string"==typeof e?"string":"hash"]:i.map}function on(t){for(var e=No(t),s=e.length;s--;){var r=e[s],i=t[r];e[s]=[r,i,wn(i)]}return e}function cn(t,e){var s=function(t,e){return null==t?i:t[e]}(t,e);return Ir(s)?s:i}var ln=me?function(t){return null==t?[]:(t=St(t),Ee(me(t),(function(e){return Vt.call(t,e)})))}:fc,hn=me?function(t){for(var e=[];t;)Me(e,ln(t)),t=$t(t);return e}:fc,un=Pr;function pn(t,e,s){for(var r=-1,i=(e=mi(e,t)).length,n=!1;++r<i;){var a=Dn(e[r]);if(!(n=null!=t&&s(t,a)))break;t=t[a]}return n||++r!=i?n:!!(i=null==t?0:t.length)&&Xa(i)&&mn(a,i)&&(Ha(t)||Ua(t))}function dn(t){return"function"!=typeof t.constructor||bn(t)?{}:js($t(t))}function fn(t){return Ha(t)||Ua(t)||!!(Kt&&t&&t[Kt])}function mn(t,e){var s=typeof t;return!!(e=null==e?u:e)&&("number"==s||"symbol"!=s&>.test(t))&&t>-1&&t%1==0&&t<e}function yn(t,e,s){if(!Za(s))return!1;var r=typeof e;return!!("number"==r?$a(s)&&mn(e,s.length):"string"==r&&e in s)&&ja(s[e],t)}function gn(t,e){if(Ha(t))return!1;var s=typeof t;return!("number"!=s&&"symbol"!=s&&"boolean"!=s&&null!=t&&!ao(t))||Q.test(t)||!Z.test(t)||null!=e&&t in St(e)}function xn(t){var e=sn(t),s=Rs[e];if("function"!=typeof s||!(e in Us.prototype))return!1;if(t===s)return!0;var r=en(s);return!!r&&t===r[0]}(ws&&un(new ws(new ArrayBuffer(1)))!=M||Ps&&un(new Ps)!=P||Ts&&un(Ts.resolve())!=A||Ss&&un(new Ss)!=k||As&&un(new As)!=N)&&(un=function(t){var e=Pr(t),s=e==S?t.constructor:i,r=s?Fn(s):"";if(r)switch(r){case Cs:return M;case Ns:return P;case Is:return A;case Ms:return k;case Ls:return N}return e});var vn=It?Ja:mc;function bn(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Nt)}function wn(t){return t==t&&!Za(t)}function Pn(t,e){return function(s){return null!=s&&s[t]===e&&(e!==i||t in St(s))}}function Tn(t,e,s){return e=ms(e===i?t.length-1:e,0),function(){for(var i=arguments,n=-1,a=ms(i.length-e,0),o=r(a);++n<a;)o[n]=i[e+n];n=-1;for(var c=r(e+1);++n<e;)c[n]=i[n];return c[e]=s(o),Te(t,this,c)}}function Sn(t,e){return e.length<2?t:br(t,Qr(e,0,-1))}function An(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var _n=Nn(Gr),kn=he||function(t,e){return ue.setTimeout(t,e)},En=Nn(Xr);function Cn(t,e,s){var r=e+"";return En(t,function(t,e){var s=e.length;if(!s)return t;var r=s-1;return e[r]=(s>1?"& ":"")+e[r],e=e.join(s>2?", ":" "),t.replace(nt,"{\n/* [wrapped with "+e+"] */\n")}(r,function(t,e){return Ae(f,(function(s){var r="_."+s[0];e&s[1]&&!Ce(t,r)&&t.push(r)})),t.sort()}(function(t){var e=t.match(at);return e?e[1].split(ot):[]}(r),s)))}function Nn(t){var e=0,s=0;return function(){var r=gs(),n=16-(r-s);if(s=r,n>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(i,arguments)}}function In(t,e){var s=-1,r=t.length,n=r-1;for(e=e===i?r:e;++s<e;){var a=$r(s,n),o=t[a];t[a]=t[s],t[s]=o}return t.length=e,t}var Mn,Ln,On=(Mn=Ma((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(tt,(function(t,s,r,i){e.push(r?i.replace(ht,"$1"):s||t)})),e}),(function(t){return 500===Ln.size&&Ln.clear(),t})),Ln=Mn.cache,Mn);function Dn(t){if("string"==typeof t||ao(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function Fn(t){if(null!=t){try{return Mt.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Rn(t){if(t instanceof Us)return t.clone();var e=new Ys(t.__wrapped__,t.__chain__);return e.__actions__=Ai(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var jn=Vr((function(t,e){return za(t)?cr(t,fr(e,1,za,!0)):[]})),Bn=Vr((function(t,e){var s=Kn(e);return za(s)&&(s=i),za(t)?cr(t,fr(e,1,za,!0),nn(s,2)):[]})),Yn=Vr((function(t,e){var s=Kn(e);return za(s)&&(s=i),za(t)?cr(t,fr(e,1,za,!0),i,s):[]}));function Un(t,e,s){var r=null==t?0:t.length;if(!r)return-1;var i=null==s?0:po(s);return i<0&&(i=ms(r+i,0)),je(t,nn(e,3),i)}function Hn(t,e,s){var r=null==t?0:t.length;if(!r)return-1;var n=r-1;return s!==i&&(n=po(s),n=s<0?ms(r+n,0):ys(n,r-1)),je(t,nn(e,3),n,!0)}function Wn(t){return null!=t&&t.length?fr(t,1):[]}function $n(t){return t&&t.length?t[0]:i}var zn=Vr((function(t){var e=Ie(t,di);return e.length&&e[0]===t[0]?_r(e):[]})),Vn=Vr((function(t){var e=Kn(t),s=Ie(t,di);return e===Kn(s)?e=i:s.pop(),s.length&&s[0]===t[0]?_r(s,nn(e,2)):[]})),qn=Vr((function(t){var e=Kn(t),s=Ie(t,di);return(e="function"==typeof e?e:i)&&s.pop(),s.length&&s[0]===t[0]?_r(s,i,e):[]}));function Kn(t){var e=null==t?0:t.length;return e?t[e-1]:i}var Jn=Vr(Gn);function Gn(t,e){return t&&t.length&&e&&e.length?Hr(t,e):t}var Xn=Zi((function(t,e){var s=null==t?0:t.length,r=rr(t,e);return Wr(t,Ie(e,(function(t){return mn(t,s)?+t:t})).sort(Pi)),r}));function Zn(t){return null==t?t:bs.call(t)}var Qn=Vr((function(t){return ai(fr(t,1,za,!0))})),ta=Vr((function(t){var e=Kn(t);return za(e)&&(e=i),ai(fr(t,1,za,!0),nn(e,2))})),ea=Vr((function(t){var e=Kn(t);return e="function"==typeof e?e:i,ai(fr(t,1,za,!0),i,e)}));function sa(t){if(!t||!t.length)return[];var e=0;return t=Ee(t,(function(t){if(za(t))return e=ms(t.length,e),!0})),qe(e,(function(e){return Ie(t,We(e))}))}function ra(t,e){if(!t||!t.length)return[];var s=sa(t);return null==e?s:Ie(s,(function(t){return Te(e,i,t)}))}var ia=Vr((function(t,e){return za(t)?cr(t,e):[]})),na=Vr((function(t){return ui(Ee(t,za))})),aa=Vr((function(t){var e=Kn(t);return za(e)&&(e=i),ui(Ee(t,za),nn(e,2))})),oa=Vr((function(t){var e=Kn(t);return e="function"==typeof e?e:i,ui(Ee(t,za),i,e)})),ca=Vr(sa),la=Vr((function(t){var e=t.length,s=e>1?t[e-1]:i;return s="function"==typeof s?(t.pop(),s):i,ra(t,s)}));function ha(t){var e=Rs(t);return e.__chain__=!0,e}function ua(t,e){return e(t)}var pa=Zi((function(t){var e=t.length,s=e?t[0]:0,r=this.__wrapped__,n=function(e){return rr(e,t)};return!(e>1||this.__actions__.length)&&r instanceof Us&&mn(s)?((r=r.slice(s,+s+(e?1:0))).__actions__.push({func:ua,args:[n],thisArg:i}),new Ys(r,this.__chain__).thru((function(t){return e&&!t.length&&t.push(i),t}))):this.thru(n)})),da=ki((function(t,e,s){Lt.call(t,s)?++t[s]:sr(t,s,1)})),fa=Oi(Un),ma=Oi(Hn);function ya(t,e){return(Ha(t)?Ae:lr)(t,nn(e,3))}function ga(t,e){return(Ha(t)?_e:hr)(t,nn(e,3))}var xa=ki((function(t,e,s){Lt.call(t,s)?t[s].push(e):sr(t,s,[e])})),va=Vr((function(t,e,s){var i=-1,n="function"==typeof e,a=$a(t)?r(t.length):[];return lr(t,(function(t){a[++i]=n?Te(e,t,s):kr(t,e,s)})),a})),ba=ki((function(t,e,s){sr(t,s,e)}));function wa(t,e){return(Ha(t)?Ie:Dr)(t,nn(e,3))}var Pa=ki((function(t,e,s){t[s?0:1].push(e)}),(function(){return[[],[]]})),Ta=Vr((function(t,e){if(null==t)return[];var s=e.length;return s>1&&yn(t,e[0],e[1])?e=[]:s>2&&yn(e[0],e[1],e[2])&&(e=[e[0]]),Yr(t,fr(e,1),[])})),Sa=le||function(){return ue.Date.now()};function Aa(t,e,s){return e=s?i:e,e=t&&null==e?t.length:e,qi(t,l,i,i,i,i,e)}function _a(t,e){var s;if("function"!=typeof e)throw new kt(n);return t=po(t),function(){return--t>0&&(s=e.apply(this,arguments)),t<=1&&(e=i),s}}var ka=Vr((function(t,e,s){var r=1;if(s.length){var i=as(s,rn(ka));r|=c}return qi(t,r,e,s,i)})),Ea=Vr((function(t,e,s){var r=3;if(s.length){var i=as(s,rn(Ea));r|=c}return qi(e,r,t,s,i)}));function Ca(t,e,s){var r,a,o,c,l,h,u=0,p=!1,d=!1,f=!0;if("function"!=typeof t)throw new kt(n);function m(e){var s=r,n=a;return r=a=i,u=e,c=t.apply(n,s)}function y(t){var s=t-h;return h===i||s>=e||s<0||d&&t-u>=o}function g(){var t=Sa();if(y(t))return x(t);l=kn(g,function(t){var s=e-(t-h);return d?ys(s,o-(t-u)):s}(t))}function x(t){return l=i,f&&r?m(t):(r=a=i,c)}function v(){var t=Sa(),s=y(t);if(r=arguments,a=this,h=t,s){if(l===i)return function(t){return u=t,l=kn(g,e),p?m(t):c}(h);if(d)return xi(l),l=kn(g,e),m(h)}return l===i&&(l=kn(g,e)),c}return e=mo(e)||0,Za(s)&&(p=!!s.leading,o=(d="maxWait"in s)?ms(mo(s.maxWait)||0,e):o,f="trailing"in s?!!s.trailing:f),v.cancel=function(){l!==i&&xi(l),u=0,r=h=a=l=i},v.flush=function(){return l===i?c:x(Sa())},v}var Na=Vr((function(t,e){return or(t,1,e)})),Ia=Vr((function(t,e,s){return or(t,mo(e)||0,s)}));function Ma(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new kt(n);var s=function(){var r=arguments,i=e?e.apply(this,r):r[0],n=s.cache;if(n.has(i))return n.get(i);var a=t.apply(this,r);return s.cache=n.set(i,a)||n,a};return s.cache=new(Ma.Cache||$s),s}function La(t){if("function"!=typeof t)throw new kt(n);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}Ma.Cache=$s;var Oa=yi((function(t,e){var s=(e=1==e.length&&Ha(e[0])?Ie(e[0],Je(nn())):Ie(fr(e,1),Je(nn()))).length;return Vr((function(r){for(var i=-1,n=ys(r.length,s);++i<n;)r[i]=e[i].call(this,r[i]);return Te(t,this,r)}))})),Da=Vr((function(t,e){var s=as(e,rn(Da));return qi(t,c,i,e,s)})),Fa=Vr((function(t,e){var s=as(e,rn(Fa));return qi(t,64,i,e,s)})),Ra=Zi((function(t,e){return qi(t,256,i,i,i,e)}));function ja(t,e){return t===e||t!=t&&e!=e}var Ba=Hi(Tr),Ya=Hi((function(t,e){return t>=e})),Ua=Er(function(){return arguments}())?Er:function(t){return Qa(t)&&Lt.call(t,"callee")&&!Vt.call(t,"callee")},Ha=r.isArray,Wa=ge?Je(ge):function(t){return Qa(t)&&Pr(t)==I};function $a(t){return null!=t&&Xa(t.length)&&!Ja(t)}function za(t){return Qa(t)&&$a(t)}var Va=ye||mc,qa=xe?Je(xe):function(t){return Qa(t)&&Pr(t)==x};function Ka(t){if(!Qa(t))return!1;var e=Pr(t);return e==v||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!so(t)}function Ja(t){if(!Za(t))return!1;var e=Pr(t);return e==b||e==w||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Ga(t){return"number"==typeof t&&t==po(t)}function Xa(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=u}function Za(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Qa(t){return null!=t&&"object"==typeof t}var to=ve?Je(ve):function(t){return Qa(t)&&un(t)==P};function eo(t){return"number"==typeof t||Qa(t)&&Pr(t)==T}function so(t){if(!Qa(t)||Pr(t)!=S)return!1;var e=$t(t);if(null===e)return!0;var s=Lt.call(e,"constructor")&&e.constructor;return"function"==typeof s&&s instanceof s&&Mt.call(s)==Rt}var ro=be?Je(be):function(t){return Qa(t)&&Pr(t)==_},io=we?Je(we):function(t){return Qa(t)&&un(t)==k};function no(t){return"string"==typeof t||!Ha(t)&&Qa(t)&&Pr(t)==E}function ao(t){return"symbol"==typeof t||Qa(t)&&Pr(t)==C}var oo=Pe?Je(Pe):function(t){return Qa(t)&&Xa(t.length)&&!!ie[Pr(t)]},co=Hi(Or),lo=Hi((function(t,e){return t<=e}));function ho(t){if(!t)return[];if($a(t))return no(t)?hs(t):Ai(t);if(Jt&&t[Jt])return function(t){for(var e,s=[];!(e=t.next()).done;)s.push(e.value);return s}(t[Jt]());var e=un(t);return(e==P?is:e==k?os:Bo)(t)}function uo(t){return t?(t=mo(t))===h||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function po(t){var e=uo(t),s=e%1;return e==e?s?e-s:e:0}function fo(t){return t?ir(po(t),0,d):0}function mo(t){if("number"==typeof t)return t;if(ao(t))return p;if(Za(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Za(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Ke(t);var s=ft.test(t);return s||yt.test(t)?ce(t.slice(2),s?2:8):dt.test(t)?p:+t}function yo(t){return _i(t,Io(t))}function go(t){return null==t?"":ni(t)}var xo=Ei((function(t,e){if(bn(e)||$a(e))_i(e,No(e),t);else for(var s in e)Lt.call(e,s)&&Zs(t,s,e[s])})),vo=Ei((function(t,e){_i(e,Io(e),t)})),bo=Ei((function(t,e,s,r){_i(e,Io(e),t,r)})),wo=Ei((function(t,e,s,r){_i(e,No(e),t,r)})),Po=Zi(rr),To=Vr((function(t,e){t=St(t);var s=-1,r=e.length,n=r>2?e[2]:i;for(n&&yn(e[0],e[1],n)&&(r=1);++s<r;)for(var a=e[s],o=Io(a),c=-1,l=o.length;++c<l;){var h=o[c],u=t[h];(u===i||ja(u,Nt[h])&&!Lt.call(t,h))&&(t[h]=a[h])}return t})),So=Vr((function(t){return t.push(i,Ji),Te(Lo,i,t)}));function Ao(t,e,s){var r=null==t?i:br(t,e);return r===i?s:r}function _o(t,e){return null!=t&&pn(t,e,Ar)}var ko=Ri((function(t,e,s){null!=e&&"function"!=typeof e.toString&&(e=Ft.call(e)),t[e]=s}),Qo(sc)),Eo=Ri((function(t,e,s){null!=e&&"function"!=typeof e.toString&&(e=Ft.call(e)),Lt.call(t,e)?t[e].push(s):t[e]=[s]}),nn),Co=Vr(kr);function No(t){return $a(t)?qs(t):Lr(t)}function Io(t){return $a(t)?qs(t,!0):function(t){if(!Za(t))return function(t){var e=[];if(null!=t)for(var s in St(t))e.push(s);return e}(t);var e=bn(t),s=[];for(var r in t)("constructor"!=r||!e&&Lt.call(t,r))&&s.push(r);return s}(t)}var Mo=Ei((function(t,e,s){jr(t,e,s)})),Lo=Ei((function(t,e,s,r){jr(t,e,s,r)})),Oo=Zi((function(t,e){var s={};if(null==t)return s;var r=!1;e=Ie(e,(function(e){return e=mi(e,t),r||(r=e.length>1),e})),_i(t,tn(t),s),r&&(s=nr(s,7,Gi));for(var i=e.length;i--;)oi(s,e[i]);return s})),Do=Zi((function(t,e){return null==t?{}:function(t,e){return Ur(t,e,(function(e,s){return _o(t,s)}))}(t,e)}));function Fo(t,e){if(null==t)return{};var s=Ie(tn(t),(function(t){return[t]}));return e=nn(e),Ur(t,s,(function(t,s){return e(t,s[0])}))}var Ro=Vi(No),jo=Vi(Io);function Bo(t){return null==t?[]:Ge(t,No(t))}var Yo=Mi((function(t,e,s){return e=e.toLowerCase(),t+(s?Uo(e):e)}));function Uo(t){return Jo(go(t).toLowerCase())}function Ho(t){return(t=go(t))&&t.replace(xt,ts).replace(Xt,"")}var Wo=Mi((function(t,e,s){return t+(s?"-":"")+e.toLowerCase()})),$o=Mi((function(t,e,s){return t+(s?" ":"")+e.toLowerCase()})),zo=Ii("toLowerCase"),Vo=Mi((function(t,e,s){return t+(s?"_":"")+e.toLowerCase()})),qo=Mi((function(t,e,s){return t+(s?" ":"")+Jo(e)})),Ko=Mi((function(t,e,s){return t+(s?" ":"")+e.toUpperCase()})),Jo=Ii("toUpperCase");function Go(t,e,s){return t=go(t),(e=s?i:e)===i?function(t){return ee.test(t)}(t)?function(t){return t.match(Qt)||[]}(t):function(t){return t.match(ct)||[]}(t):t.match(e)||[]}var Xo=Vr((function(t,e){try{return Te(t,i,e)}catch(t){return Ka(t)?t:new wt(t)}})),Zo=Zi((function(t,e){return Ae(e,(function(e){e=Dn(e),sr(t,e,ka(t[e],t))})),t}));function Qo(t){return function(){return t}}var tc=Di(),ec=Di(!0);function sc(t){return t}function rc(t){return Mr("function"==typeof t?t:nr(t,1))}var ic=Vr((function(t,e){return function(s){return kr(s,t,e)}})),nc=Vr((function(t,e){return function(s){return kr(t,s,e)}}));function ac(t,e,s){var r=No(e),i=vr(e,r);null!=s||Za(e)&&(i.length||!r.length)||(s=e,e=t,t=this,i=vr(e,No(e)));var n=!(Za(s)&&"chain"in s&&!s.chain),a=Ja(t);return Ae(i,(function(s){var r=e[s];t[s]=r,a&&(t.prototype[s]=function(){var e=this.__chain__;if(n||e){var s=t(this.__wrapped__);return(s.__actions__=Ai(this.__actions__)).push({func:r,args:arguments,thisArg:t}),s.__chain__=e,s}return r.apply(t,Me([this.value()],arguments))})})),t}function oc(){}var cc=Bi(Ie),lc=Bi(ke),hc=Bi(De);function uc(t){return gn(t)?We(Dn(t)):function(t){return function(e){return br(e,t)}}(t)}var pc=Ui(),dc=Ui(!0);function fc(){return[]}function mc(){return!1}var yc,gc=ji((function(t,e){return t+e}),0),xc=$i("ceil"),vc=ji((function(t,e){return t/e}),1),bc=$i("floor"),wc=ji((function(t,e){return t*e}),1),Pc=$i("round"),Tc=ji((function(t,e){return t-e}),0);return Rs.after=function(t,e){if("function"!=typeof e)throw new kt(n);return t=po(t),function(){if(--t<1)return e.apply(this,arguments)}},Rs.ary=Aa,Rs.assign=xo,Rs.assignIn=vo,Rs.assignInWith=bo,Rs.assignWith=wo,Rs.at=Po,Rs.before=_a,Rs.bind=ka,Rs.bindAll=Zo,Rs.bindKey=Ea,Rs.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Ha(t)?t:[t]},Rs.chain=ha,Rs.chunk=function(t,e,s){e=(s?yn(t,e,s):e===i)?1:ms(po(e),0);var n=null==t?0:t.length;if(!n||e<1)return[];for(var a=0,o=0,c=r(pe(n/e));a<n;)c[o++]=Qr(t,a,a+=e);return c},Rs.compact=function(t){for(var e=-1,s=null==t?0:t.length,r=0,i=[];++e<s;){var n=t[e];n&&(i[r++]=n)}return i},Rs.concat=function(){var t=arguments.length;if(!t)return[];for(var e=r(t-1),s=arguments[0],i=t;i--;)e[i-1]=arguments[i];return Me(Ha(s)?Ai(s):[s],fr(e,1))},Rs.cond=function(t){var e=null==t?0:t.length,s=nn();return t=e?Ie(t,(function(t){if("function"!=typeof t[1])throw new kt(n);return[s(t[0]),t[1]]})):[],Vr((function(s){for(var r=-1;++r<e;){var i=t[r];if(Te(i[0],this,s))return Te(i[1],this,s)}}))},Rs.conforms=function(t){return function(t){var e=No(t);return function(s){return ar(s,t,e)}}(nr(t,1))},Rs.constant=Qo,Rs.countBy=da,Rs.create=function(t,e){var s=js(t);return null==e?s:er(s,e)},Rs.curry=function t(e,s,r){var n=qi(e,8,i,i,i,i,i,s=r?i:s);return n.placeholder=t.placeholder,n},Rs.curryRight=function t(e,s,r){var n=qi(e,16,i,i,i,i,i,s=r?i:s);return n.placeholder=t.placeholder,n},Rs.debounce=Ca,Rs.defaults=To,Rs.defaultsDeep=So,Rs.defer=Na,Rs.delay=Ia,Rs.difference=jn,Rs.differenceBy=Bn,Rs.differenceWith=Yn,Rs.drop=function(t,e,s){var r=null==t?0:t.length;return r?Qr(t,(e=s||e===i?1:po(e))<0?0:e,r):[]},Rs.dropRight=function(t,e,s){var r=null==t?0:t.length;return r?Qr(t,0,(e=r-(e=s||e===i?1:po(e)))<0?0:e):[]},Rs.dropRightWhile=function(t,e){return t&&t.length?li(t,nn(e,3),!0,!0):[]},Rs.dropWhile=function(t,e){return t&&t.length?li(t,nn(e,3),!0):[]},Rs.fill=function(t,e,s,r){var n=null==t?0:t.length;return n?(s&&"number"!=typeof s&&yn(t,e,s)&&(s=0,r=n),function(t,e,s,r){var n=t.length;for((s=po(s))<0&&(s=-s>n?0:n+s),(r=r===i||r>n?n:po(r))<0&&(r+=n),r=s>r?0:fo(r);s<r;)t[s++]=e;return t}(t,e,s,r)):[]},Rs.filter=function(t,e){return(Ha(t)?Ee:dr)(t,nn(e,3))},Rs.flatMap=function(t,e){return fr(wa(t,e),1)},Rs.flatMapDeep=function(t,e){return fr(wa(t,e),h)},Rs.flatMapDepth=function(t,e,s){return s=s===i?1:po(s),fr(wa(t,e),s)},Rs.flatten=Wn,Rs.flattenDeep=function(t){return null!=t&&t.length?fr(t,h):[]},Rs.flattenDepth=function(t,e){return null!=t&&t.length?fr(t,e=e===i?1:po(e)):[]},Rs.flip=function(t){return qi(t,512)},Rs.flow=tc,Rs.flowRight=ec,Rs.fromPairs=function(t){for(var e=-1,s=null==t?0:t.length,r={};++e<s;){var i=t[e];r[i[0]]=i[1]}return r},Rs.functions=function(t){return null==t?[]:vr(t,No(t))},Rs.functionsIn=function(t){return null==t?[]:vr(t,Io(t))},Rs.groupBy=xa,Rs.initial=function(t){return null!=t&&t.length?Qr(t,0,-1):[]},Rs.intersection=zn,Rs.intersectionBy=Vn,Rs.intersectionWith=qn,Rs.invert=ko,Rs.invertBy=Eo,Rs.invokeMap=va,Rs.iteratee=rc,Rs.keyBy=ba,Rs.keys=No,Rs.keysIn=Io,Rs.map=wa,Rs.mapKeys=function(t,e){var s={};return e=nn(e,3),gr(t,(function(t,r,i){sr(s,e(t,r,i),t)})),s},Rs.mapValues=function(t,e){var s={};return e=nn(e,3),gr(t,(function(t,r,i){sr(s,r,e(t,r,i))})),s},Rs.matches=function(t){return Fr(nr(t,1))},Rs.matchesProperty=function(t,e){return Rr(t,nr(e,1))},Rs.memoize=Ma,Rs.merge=Mo,Rs.mergeWith=Lo,Rs.method=ic,Rs.methodOf=nc,Rs.mixin=ac,Rs.negate=La,Rs.nthArg=function(t){return t=po(t),Vr((function(e){return Br(e,t)}))},Rs.omit=Oo,Rs.omitBy=function(t,e){return Fo(t,La(nn(e)))},Rs.once=function(t){return _a(2,t)},Rs.orderBy=function(t,e,s,r){return null==t?[]:(Ha(e)||(e=null==e?[]:[e]),Ha(s=r?i:s)||(s=null==s?[]:[s]),Yr(t,e,s))},Rs.over=cc,Rs.overArgs=Oa,Rs.overEvery=lc,Rs.overSome=hc,Rs.partial=Da,Rs.partialRight=Fa,Rs.partition=Pa,Rs.pick=Do,Rs.pickBy=Fo,Rs.property=uc,Rs.propertyOf=function(t){return function(e){return null==t?i:br(t,e)}},Rs.pull=Jn,Rs.pullAll=Gn,Rs.pullAllBy=function(t,e,s){return t&&t.length&&e&&e.length?Hr(t,e,nn(s,2)):t},Rs.pullAllWith=function(t,e,s){return t&&t.length&&e&&e.length?Hr(t,e,i,s):t},Rs.pullAt=Xn,Rs.range=pc,Rs.rangeRight=dc,Rs.rearg=Ra,Rs.reject=function(t,e){return(Ha(t)?Ee:dr)(t,La(nn(e,3)))},Rs.remove=function(t,e){var s=[];if(!t||!t.length)return s;var r=-1,i=[],n=t.length;for(e=nn(e,3);++r<n;){var a=t[r];e(a,r,t)&&(s.push(a),i.push(r))}return Wr(t,i),s},Rs.rest=function(t,e){if("function"!=typeof t)throw new kt(n);return Vr(t,e=e===i?e:po(e))},Rs.reverse=Zn,Rs.sampleSize=function(t,e,s){return e=(s?yn(t,e,s):e===i)?1:po(e),(Ha(t)?Js:Kr)(t,e)},Rs.set=function(t,e,s){return null==t?t:Jr(t,e,s)},Rs.setWith=function(t,e,s,r){return r="function"==typeof r?r:i,null==t?t:Jr(t,e,s,r)},Rs.shuffle=function(t){return(Ha(t)?Gs:Zr)(t)},Rs.slice=function(t,e,s){var r=null==t?0:t.length;return r?(s&&"number"!=typeof s&&yn(t,e,s)?(e=0,s=r):(e=null==e?0:po(e),s=s===i?r:po(s)),Qr(t,e,s)):[]},Rs.sortBy=Ta,Rs.sortedUniq=function(t){return t&&t.length?ri(t):[]},Rs.sortedUniqBy=function(t,e){return t&&t.length?ri(t,nn(e,2)):[]},Rs.split=function(t,e,s){return s&&"number"!=typeof s&&yn(t,e,s)&&(e=s=i),(s=s===i?d:s>>>0)?(t=go(t))&&("string"==typeof e||null!=e&&!ro(e))&&!(e=ni(e))&&rs(t)?gi(hs(t),0,s):t.split(e,s):[]},Rs.spread=function(t,e){if("function"!=typeof t)throw new kt(n);return e=null==e?0:ms(po(e),0),Vr((function(s){var r=s[e],i=gi(s,0,e);return r&&Me(i,r),Te(t,this,i)}))},Rs.tail=function(t){var e=null==t?0:t.length;return e?Qr(t,1,e):[]},Rs.take=function(t,e,s){return t&&t.length?Qr(t,0,(e=s||e===i?1:po(e))<0?0:e):[]},Rs.takeRight=function(t,e,s){var r=null==t?0:t.length;return r?Qr(t,(e=r-(e=s||e===i?1:po(e)))<0?0:e,r):[]},Rs.takeRightWhile=function(t,e){return t&&t.length?li(t,nn(e,3),!1,!0):[]},Rs.takeWhile=function(t,e){return t&&t.length?li(t,nn(e,3)):[]},Rs.tap=function(t,e){return e(t),t},Rs.throttle=function(t,e,s){var r=!0,i=!0;if("function"!=typeof t)throw new kt(n);return Za(s)&&(r="leading"in s?!!s.leading:r,i="trailing"in s?!!s.trailing:i),Ca(t,e,{leading:r,maxWait:e,trailing:i})},Rs.thru=ua,Rs.toArray=ho,Rs.toPairs=Ro,Rs.toPairsIn=jo,Rs.toPath=function(t){return Ha(t)?Ie(t,Dn):ao(t)?[t]:Ai(On(go(t)))},Rs.toPlainObject=yo,Rs.transform=function(t,e,s){var r=Ha(t),i=r||Va(t)||oo(t);if(e=nn(e,4),null==s){var n=t&&t.constructor;s=i?r?new n:[]:Za(t)&&Ja(n)?js($t(t)):{}}return(i?Ae:gr)(t,(function(t,r,i){return e(s,t,r,i)})),s},Rs.unary=function(t){return Aa(t,1)},Rs.union=Qn,Rs.unionBy=ta,Rs.unionWith=ea,Rs.uniq=function(t){return t&&t.length?ai(t):[]},Rs.uniqBy=function(t,e){return t&&t.length?ai(t,nn(e,2)):[]},Rs.uniqWith=function(t,e){return e="function"==typeof e?e:i,t&&t.length?ai(t,i,e):[]},Rs.unset=function(t,e){return null==t||oi(t,e)},Rs.unzip=sa,Rs.unzipWith=ra,Rs.update=function(t,e,s){return null==t?t:ci(t,e,fi(s))},Rs.updateWith=function(t,e,s,r){return r="function"==typeof r?r:i,null==t?t:ci(t,e,fi(s),r)},Rs.values=Bo,Rs.valuesIn=function(t){return null==t?[]:Ge(t,Io(t))},Rs.without=ia,Rs.words=Go,Rs.wrap=function(t,e){return Da(fi(e),t)},Rs.xor=na,Rs.xorBy=aa,Rs.xorWith=oa,Rs.zip=ca,Rs.zipObject=function(t,e){return pi(t||[],e||[],Zs)},Rs.zipObjectDeep=function(t,e){return pi(t||[],e||[],Jr)},Rs.zipWith=la,Rs.entries=Ro,Rs.entriesIn=jo,Rs.extend=vo,Rs.extendWith=bo,ac(Rs,Rs),Rs.add=gc,Rs.attempt=Xo,Rs.camelCase=Yo,Rs.capitalize=Uo,Rs.ceil=xc,Rs.clamp=function(t,e,s){return s===i&&(s=e,e=i),s!==i&&(s=(s=mo(s))==s?s:0),e!==i&&(e=(e=mo(e))==e?e:0),ir(mo(t),e,s)},Rs.clone=function(t){return nr(t,4)},Rs.cloneDeep=function(t){return nr(t,5)},Rs.cloneDeepWith=function(t,e){return nr(t,5,e="function"==typeof e?e:i)},Rs.cloneWith=function(t,e){return nr(t,4,e="function"==typeof e?e:i)},Rs.conformsTo=function(t,e){return null==e||ar(t,e,No(e))},Rs.deburr=Ho,Rs.defaultTo=function(t,e){return null==t||t!=t?e:t},Rs.divide=vc,Rs.endsWith=function(t,e,s){t=go(t),e=ni(e);var r=t.length,n=s=s===i?r:ir(po(s),0,r);return(s-=e.length)>=0&&t.slice(s,n)==e},Rs.eq=ja,Rs.escape=function(t){return(t=go(t))&&K.test(t)?t.replace(V,es):t},Rs.escapeRegExp=function(t){return(t=go(t))&&st.test(t)?t.replace(et,"\\$&"):t},Rs.every=function(t,e,s){var r=Ha(t)?ke:ur;return s&&yn(t,e,s)&&(e=i),r(t,nn(e,3))},Rs.find=fa,Rs.findIndex=Un,Rs.findKey=function(t,e){return Re(t,nn(e,3),gr)},Rs.findLast=ma,Rs.findLastIndex=Hn,Rs.findLastKey=function(t,e){return Re(t,nn(e,3),xr)},Rs.floor=bc,Rs.forEach=ya,Rs.forEachRight=ga,Rs.forIn=function(t,e){return null==t?t:mr(t,nn(e,3),Io)},Rs.forInRight=function(t,e){return null==t?t:yr(t,nn(e,3),Io)},Rs.forOwn=function(t,e){return t&&gr(t,nn(e,3))},Rs.forOwnRight=function(t,e){return t&&xr(t,nn(e,3))},Rs.get=Ao,Rs.gt=Ba,Rs.gte=Ya,Rs.has=function(t,e){return null!=t&&pn(t,e,Sr)},Rs.hasIn=_o,Rs.head=$n,Rs.identity=sc,Rs.includes=function(t,e,s,r){t=$a(t)?t:Bo(t),s=s&&!r?po(s):0;var i=t.length;return s<0&&(s=ms(i+s,0)),no(t)?s<=i&&t.indexOf(e,s)>-1:!!i&&Be(t,e,s)>-1},Rs.indexOf=function(t,e,s){var r=null==t?0:t.length;if(!r)return-1;var i=null==s?0:po(s);return i<0&&(i=ms(r+i,0)),Be(t,e,i)},Rs.inRange=function(t,e,s){return e=uo(e),s===i?(s=e,e=0):s=uo(s),function(t,e,s){return t>=ys(e,s)&&t<ms(e,s)}(t=mo(t),e,s)},Rs.invoke=Co,Rs.isArguments=Ua,Rs.isArray=Ha,Rs.isArrayBuffer=Wa,Rs.isArrayLike=$a,Rs.isArrayLikeObject=za,Rs.isBoolean=function(t){return!0===t||!1===t||Qa(t)&&Pr(t)==g},Rs.isBuffer=Va,Rs.isDate=qa,Rs.isElement=function(t){return Qa(t)&&1===t.nodeType&&!so(t)},Rs.isEmpty=function(t){if(null==t)return!0;if($a(t)&&(Ha(t)||"string"==typeof t||"function"==typeof t.splice||Va(t)||oo(t)||Ua(t)))return!t.length;var e=un(t);if(e==P||e==k)return!t.size;if(bn(t))return!Lr(t).length;for(var s in t)if(Lt.call(t,s))return!1;return!0},Rs.isEqual=function(t,e){return Cr(t,e)},Rs.isEqualWith=function(t,e,s){var r=(s="function"==typeof s?s:i)?s(t,e):i;return r===i?Cr(t,e,i,s):!!r},Rs.isError=Ka,Rs.isFinite=function(t){return"number"==typeof t&&Fe(t)},Rs.isFunction=Ja,Rs.isInteger=Ga,Rs.isLength=Xa,Rs.isMap=to,Rs.isMatch=function(t,e){return t===e||Nr(t,e,on(e))},Rs.isMatchWith=function(t,e,s){return s="function"==typeof s?s:i,Nr(t,e,on(e),s)},Rs.isNaN=function(t){return eo(t)&&t!=+t},Rs.isNative=function(t){if(vn(t))throw new wt("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Ir(t)},Rs.isNil=function(t){return null==t},Rs.isNull=function(t){return null===t},Rs.isNumber=eo,Rs.isObject=Za,Rs.isObjectLike=Qa,Rs.isPlainObject=so,Rs.isRegExp=ro,Rs.isSafeInteger=function(t){return Ga(t)&&t>=-9007199254740991&&t<=u},Rs.isSet=io,Rs.isString=no,Rs.isSymbol=ao,Rs.isTypedArray=oo,Rs.isUndefined=function(t){return t===i},Rs.isWeakMap=function(t){return Qa(t)&&un(t)==N},Rs.isWeakSet=function(t){return Qa(t)&&"[object WeakSet]"==Pr(t)},Rs.join=function(t,e){return null==t?"":$e.call(t,e)},Rs.kebabCase=Wo,Rs.last=Kn,Rs.lastIndexOf=function(t,e,s){var r=null==t?0:t.length;if(!r)return-1;var n=r;return s!==i&&(n=(n=po(s))<0?ms(r+n,0):ys(n,r-1)),e==e?function(t,e,s){for(var r=s+1;r--;)if(t[r]===e)return r;return r}(t,e,n):je(t,Ue,n,!0)},Rs.lowerCase=$o,Rs.lowerFirst=zo,Rs.lt=co,Rs.lte=lo,Rs.max=function(t){return t&&t.length?pr(t,sc,Tr):i},Rs.maxBy=function(t,e){return t&&t.length?pr(t,nn(e,2),Tr):i},Rs.mean=function(t){return He(t,sc)},Rs.meanBy=function(t,e){return He(t,nn(e,2))},Rs.min=function(t){return t&&t.length?pr(t,sc,Or):i},Rs.minBy=function(t,e){return t&&t.length?pr(t,nn(e,2),Or):i},Rs.stubArray=fc,Rs.stubFalse=mc,Rs.stubObject=function(){return{}},Rs.stubString=function(){return""},Rs.stubTrue=function(){return!0},Rs.multiply=wc,Rs.nth=function(t,e){return t&&t.length?Br(t,po(e)):i},Rs.noConflict=function(){return ue._===this&&(ue._=jt),this},Rs.noop=oc,Rs.now=Sa,Rs.pad=function(t,e,s){t=go(t);var r=(e=po(e))?ls(t):0;if(!e||r>=e)return t;var i=(e-r)/2;return Yi(de(i),s)+t+Yi(pe(i),s)},Rs.padEnd=function(t,e,s){t=go(t);var r=(e=po(e))?ls(t):0;return e&&r<e?t+Yi(e-r,s):t},Rs.padStart=function(t,e,s){t=go(t);var r=(e=po(e))?ls(t):0;return e&&r<e?Yi(e-r,s)+t:t},Rs.parseInt=function(t,e,s){return s||null==e?e=0:e&&(e=+e),xs(go(t).replace(rt,""),e||0)},Rs.random=function(t,e,s){if(s&&"boolean"!=typeof s&&yn(t,e,s)&&(e=s=i),s===i&&("boolean"==typeof e?(s=e,e=i):"boolean"==typeof t&&(s=t,t=i)),t===i&&e===i?(t=0,e=1):(t=uo(t),e===i?(e=t,t=0):e=uo(e)),t>e){var r=t;t=e,e=r}if(s||t%1||e%1){var n=vs();return ys(t+n*(e-t+oe("1e-"+((n+"").length-1))),e)}return $r(t,e)},Rs.reduce=function(t,e,s){var r=Ha(t)?Le:ze,i=arguments.length<3;return r(t,nn(e,4),s,i,lr)},Rs.reduceRight=function(t,e,s){var r=Ha(t)?Oe:ze,i=arguments.length<3;return r(t,nn(e,4),s,i,hr)},Rs.repeat=function(t,e,s){return e=(s?yn(t,e,s):e===i)?1:po(e),zr(go(t),e)},Rs.replace=function(){var t=arguments,e=go(t[0]);return t.length<3?e:e.replace(t[1],t[2])},Rs.result=function(t,e,s){var r=-1,n=(e=mi(e,t)).length;for(n||(n=1,t=i);++r<n;){var a=null==t?i:t[Dn(e[r])];a===i&&(r=n,a=s),t=Ja(a)?a.call(t):a}return t},Rs.round=Pc,Rs.runInContext=t,Rs.sample=function(t){return(Ha(t)?Ks:qr)(t)},Rs.size=function(t){if(null==t)return 0;if($a(t))return no(t)?ls(t):t.length;var e=un(t);return e==P||e==k?t.size:Lr(t).length},Rs.snakeCase=Vo,Rs.some=function(t,e,s){var r=Ha(t)?De:ti;return s&&yn(t,e,s)&&(e=i),r(t,nn(e,3))},Rs.sortedIndex=function(t,e){return ei(t,e)},Rs.sortedIndexBy=function(t,e,s){return si(t,e,nn(s,2))},Rs.sortedIndexOf=function(t,e){var s=null==t?0:t.length;if(s){var r=ei(t,e);if(r<s&&ja(t[r],e))return r}return-1},Rs.sortedLastIndex=function(t,e){return ei(t,e,!0)},Rs.sortedLastIndexBy=function(t,e,s){return si(t,e,nn(s,2),!0)},Rs.sortedLastIndexOf=function(t,e){if(null!=t&&t.length){var s=ei(t,e,!0)-1;if(ja(t[s],e))return s}return-1},Rs.startCase=qo,Rs.startsWith=function(t,e,s){return t=go(t),s=null==s?0:ir(po(s),0,t.length),e=ni(e),t.slice(s,s+e.length)==e},Rs.subtract=Tc,Rs.sum=function(t){return t&&t.length?Ve(t,sc):0},Rs.sumBy=function(t,e){return t&&t.length?Ve(t,nn(e,2)):0},Rs.template=function(t,e,s){var r=Rs.templateSettings;s&&yn(t,e,s)&&(e=i),t=go(t),e=bo({},e,r,Ki);var n,a,o=bo({},e.imports,r.imports,Ki),c=No(o),l=Ge(o,c),h=0,u=e.interpolate||vt,p="__p += '",d=At((e.escape||vt).source+"|"+u.source+"|"+(u===X?ut:vt).source+"|"+(e.evaluate||vt).source+"|$","g"),f="//# sourceURL="+(Lt.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++re+"]")+"\n";t.replace(d,(function(e,s,r,i,o,c){return r||(r=i),p+=t.slice(h,c).replace(bt,ss),s&&(n=!0,p+="' +\n__e("+s+") +\n'"),o&&(a=!0,p+="';\n"+o+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),h=c+e.length,e})),p+="';\n";var m=Lt.call(e,"variable")&&e.variable;if(m){if(lt.test(m))throw new wt("Invalid `variable` option passed into `_.template`")}else p="with (obj) {\n"+p+"\n}\n";p=(a?p.replace(H,""):p).replace(W,"$1").replace($,"$1;"),p="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(n?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var y=Xo((function(){return Pt(c,f+"return "+p).apply(i,l)}));if(y.source=p,Ka(y))throw y;return y},Rs.times=function(t,e){if((t=po(t))<1||t>u)return[];var s=d,r=ys(t,d);e=nn(e),t-=d;for(var i=qe(r,e);++s<t;)e(s);return i},Rs.toFinite=uo,Rs.toInteger=po,Rs.toLength=fo,Rs.toLower=function(t){return go(t).toLowerCase()},Rs.toNumber=mo,Rs.toSafeInteger=function(t){return t?ir(po(t),-9007199254740991,u):0===t?t:0},Rs.toString=go,Rs.toUpper=function(t){return go(t).toUpperCase()},Rs.trim=function(t,e,s){if((t=go(t))&&(s||e===i))return Ke(t);if(!t||!(e=ni(e)))return t;var r=hs(t),n=hs(e);return gi(r,Ze(r,n),Qe(r,n)+1).join("")},Rs.trimEnd=function(t,e,s){if((t=go(t))&&(s||e===i))return t.slice(0,us(t)+1);if(!t||!(e=ni(e)))return t;var r=hs(t);return gi(r,0,Qe(r,hs(e))+1).join("")},Rs.trimStart=function(t,e,s){if((t=go(t))&&(s||e===i))return t.replace(rt,"");if(!t||!(e=ni(e)))return t;var r=hs(t);return gi(r,Ze(r,hs(e))).join("")},Rs.truncate=function(t,e){var s=30,r="...";if(Za(e)){var n="separator"in e?e.separator:n;s="length"in e?po(e.length):s,r="omission"in e?ni(e.omission):r}var a=(t=go(t)).length;if(rs(t)){var o=hs(t);a=o.length}if(s>=a)return t;var c=s-ls(r);if(c<1)return r;var l=o?gi(o,0,c).join(""):t.slice(0,c);if(n===i)return l+r;if(o&&(c+=l.length-c),ro(n)){if(t.slice(c).search(n)){var h,u=l;for(n.global||(n=At(n.source,go(pt.exec(n))+"g")),n.lastIndex=0;h=n.exec(u);)var p=h.index;l=l.slice(0,p===i?c:p)}}else if(t.indexOf(ni(n),c)!=c){var d=l.lastIndexOf(n);d>-1&&(l=l.slice(0,d))}return l+r},Rs.unescape=function(t){return(t=go(t))&&q.test(t)?t.replace(z,ps):t},Rs.uniqueId=function(t){var e=++Ot;return go(t)+e},Rs.upperCase=Ko,Rs.upperFirst=Jo,Rs.each=ya,Rs.eachRight=ga,Rs.first=$n,ac(Rs,(yc={},gr(Rs,(function(t,e){Lt.call(Rs.prototype,e)||(yc[e]=t)})),yc),{chain:!1}),Rs.VERSION="4.17.21",Ae(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Rs[t].placeholder=Rs})),Ae(["drop","take"],(function(t,e){Us.prototype[t]=function(s){s=s===i?1:ms(po(s),0);var r=this.__filtered__&&!e?new Us(this):this.clone();return r.__filtered__?r.__takeCount__=ys(s,r.__takeCount__):r.__views__.push({size:ys(s,d),type:t+(r.__dir__<0?"Right":"")}),r},Us.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),Ae(["filter","map","takeWhile"],(function(t,e){var s=e+1,r=1==s||3==s;Us.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:nn(t,3),type:s}),e.__filtered__=e.__filtered__||r,e}})),Ae(["head","last"],(function(t,e){var s="take"+(e?"Right":"");Us.prototype[t]=function(){return this[s](1).value()[0]}})),Ae(["initial","tail"],(function(t,e){var s="drop"+(e?"":"Right");Us.prototype[t]=function(){return this.__filtered__?new Us(this):this[s](1)}})),Us.prototype.compact=function(){return this.filter(sc)},Us.prototype.find=function(t){return this.filter(t).head()},Us.prototype.findLast=function(t){return this.reverse().find(t)},Us.prototype.invokeMap=Vr((function(t,e){return"function"==typeof t?new Us(this):this.map((function(s){return kr(s,t,e)}))})),Us.prototype.reject=function(t){return this.filter(La(nn(t)))},Us.prototype.slice=function(t,e){t=po(t);var s=this;return s.__filtered__&&(t>0||e<0)?new Us(s):(t<0?s=s.takeRight(-t):t&&(s=s.drop(t)),e!==i&&(s=(e=po(e))<0?s.dropRight(-e):s.take(e-t)),s)},Us.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Us.prototype.toArray=function(){return this.take(d)},gr(Us.prototype,(function(t,e){var s=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),n=Rs[r?"take"+("last"==e?"Right":""):e],a=r||/^find/.test(e);n&&(Rs.prototype[e]=function(){var e=this.__wrapped__,o=r?[1]:arguments,c=e instanceof Us,l=o[0],h=c||Ha(e),u=function(t){var e=n.apply(Rs,Me([t],o));return r&&p?e[0]:e};h&&s&&"function"==typeof l&&1!=l.length&&(c=h=!1);var p=this.__chain__,d=!!this.__actions__.length,f=a&&!p,m=c&&!d;if(!a&&h){e=m?e:new Us(this);var y=t.apply(e,o);return y.__actions__.push({func:ua,args:[u],thisArg:i}),new Ys(y,p)}return f&&m?t.apply(this,o):(y=this.thru(u),f?r?y.value()[0]:y.value():y)})})),Ae(["pop","push","shift","sort","splice","unshift"],(function(t){var e=Et[t],s=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);Rs.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var i=this.value();return e.apply(Ha(i)?i:[],t)}return this[s]((function(s){return e.apply(Ha(s)?s:[],t)}))}})),gr(Us.prototype,(function(t,e){var s=Rs[e];if(s){var r=s.name+"";Lt.call(Es,r)||(Es[r]=[]),Es[r].push({name:e,func:s})}})),Es[Fi(i,2).name]=[{name:"wrapper",func:i}],Us.prototype.clone=function(){var t=new Us(this.__wrapped__);return t.__actions__=Ai(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Ai(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Ai(this.__views__),t},Us.prototype.reverse=function(){if(this.__filtered__){var t=new Us(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Us.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,s=Ha(t),r=e<0,i=s?t.length:0,n=function(t,e,s){for(var r=-1,i=s.length;++r<i;){var n=s[r],a=n.size;switch(n.type){case"drop":t+=a;break;case"dropRight":e-=a;break;case"take":e=ys(e,t+a);break;case"takeRight":t=ms(t,e-a)}}return{start:t,end:e}}(0,i,this.__views__),a=n.start,o=n.end,c=o-a,l=r?o:a-1,h=this.__iteratees__,u=h.length,p=0,d=ys(c,this.__takeCount__);if(!s||!r&&i==c&&d==c)return hi(t,this.__actions__);var f=[];t:for(;c--&&p<d;){for(var m=-1,y=t[l+=e];++m<u;){var g=h[m],x=g.iteratee,v=g.type,b=x(y);if(2==v)y=b;else if(!b){if(1==v)continue t;break t}}f[p++]=y}return f},Rs.prototype.at=pa,Rs.prototype.chain=function(){return ha(this)},Rs.prototype.commit=function(){return new Ys(this.value(),this.__chain__)},Rs.prototype.next=function(){this.__values__===i&&(this.__values__=ho(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?i:this.__values__[this.__index__++]}},Rs.prototype.plant=function(t){for(var e,s=this;s instanceof Bs;){var r=Rn(s);r.__index__=0,r.__values__=i,e?n.__wrapped__=r:e=r;var n=r;s=s.__wrapped__}return n.__wrapped__=t,e},Rs.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Us){var e=t;return this.__actions__.length&&(e=new Us(this)),(e=e.reverse()).__actions__.push({func:ua,args:[Zn],thisArg:i}),new Ys(e,this.__chain__)}return this.thru(Zn)},Rs.prototype.toJSON=Rs.prototype.valueOf=Rs.prototype.value=function(){return hi(this.__wrapped__,this.__actions__)},Rs.prototype.first=Rs.prototype.head,Jt&&(Rs.prototype[Jt]=function(){return this}),Rs}();ue._=ds,(r=function(){return ds}.call(e,s,e,t))===i||(t.exports=r)}.call(this)},4073:function(t,e,s){!function(t){"use strict";t.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:0,doy:4}})}(s(9420))},1387:function(t,e,s){!function(t){"use strict";t.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}})}(s(9420))},1386:function(t,e,s){!function(t){"use strict";t.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(s(9420))},3537:function(t,e,s){!function(t){"use strict";t.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(s(9420))},7050:function(t,e,s){!function(t){"use strict";t.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}})}(s(9420))},3008:function(t,e,s){!function(t){"use strict";t.defineLocale("en-in",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:0,doy:6}})}(s(9420))},6963:function(t,e,s){!function(t){"use strict";t.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(s(9420))},4865:function(t,e,s){!function(t){"use strict";t.defineLocale("en-sg",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(s(9420))},1329:function(t,e,s){!function(t){"use strict";t.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(t,e){return 12===t&&(t=0),"凌晨"===e||"早上"===e||"上午"===e?t:"下午"===e||"晚上"===e?t+12:t>=11?t:t+12},meridiem:function(t,e,s){var r=100*t+e;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:function(t){return t.week()!==this.week()?"[下]dddLT":"[本]dddLT"},lastDay:"[昨天]LT",lastWeek:function(t){return this.week()!==t.week()?"[上]dddLT":"[本]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"日";case"M":return t+"月";case"w":case"W":return t+"周";default:return t}},relativeTime:{future:"%s后",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",w:"1 周",ww:"%d 周",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}})}(s(9420))},3005:function(t,e,s){!function(t){"use strict";t.defineLocale("zh-hk",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(t,e){return 12===t&&(t=0),"凌晨"===e||"早上"===e||"上午"===e?t:"中午"===e?t>=11?t:t+12:"下午"===e||"晚上"===e?t+12:void 0},meridiem:function(t,e,s){var r=100*t+e;return r<600?"凌晨":r<900?"早上":r<1200?"上午":1200===r?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"日";case"M":return t+"月";case"w":case"W":return t+"週";default:return t}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(s(9420))},7696:function(t,e,s){!function(t){"use strict";t.defineLocale("zh-mo",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"D/M/YYYY",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(t,e){return 12===t&&(t=0),"凌晨"===e||"早上"===e||"上午"===e?t:"中午"===e?t>=11?t:t+12:"下午"===e||"晚上"===e?t+12:void 0},meridiem:function(t,e,s){var r=100*t+e;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"日";case"M":return t+"月";case"w":case"W":return t+"週";default:return t}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(s(9420))},5861:function(t,e,s){!function(t){"use strict";t.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(t,e){return 12===t&&(t=0),"凌晨"===e||"早上"===e||"上午"===e?t:"中午"===e?t>=11?t:t+12:"下午"===e||"晚上"===e?t+12:void 0},meridiem:function(t,e,s){var r=100*t+e;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"日";case"M":return t+"月";case"w":case"W":return t+"週";default:return t}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(s(9420))},9420:function(t,e,s){(t=s.nmd(t)).exports=function(){"use strict";var e,r;function i(){return e.apply(null,arguments)}function n(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function a(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function o(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function c(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(o(t,e))return!1;return!0}function l(t){return void 0===t}function h(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function u(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function p(t,e){var s,r=[],i=t.length;for(s=0;s<i;++s)r.push(e(t[s],s));return r}function d(t,e){for(var s in e)o(e,s)&&(t[s]=e[s]);return o(e,"toString")&&(t.toString=e.toString),o(e,"valueOf")&&(t.valueOf=e.valueOf),t}function f(t,e,s,r){return Oe(t,e,s,r,!0).utc()}function m(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),t._pf}function y(t){var e=null,s=!1,i=t._d&&!isNaN(t._d.getTime());return i&&(e=m(t),s=r.call(e.parsedDateParts,(function(t){return null!=t})),i=e.overflow<0&&!e.empty&&!e.invalidEra&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&s),t._strict&&(i=i&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour)),null!=Object.isFrozen&&Object.isFrozen(t)?i:(t._isValid=i,t._isValid)}function g(t){var e=f(NaN);return null!=t?d(m(e),t):m(e).userInvalidated=!0,e}r=Array.prototype.some?Array.prototype.some:function(t){var e,s=Object(this),r=s.length>>>0;for(e=0;e<r;e++)if(e in s&&t.call(this,s[e],e,s))return!0;return!1};var x=i.momentProperties=[],v=!1;function b(t,e){var s,r,i,n=x.length;if(l(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),l(e._i)||(t._i=e._i),l(e._f)||(t._f=e._f),l(e._l)||(t._l=e._l),l(e._strict)||(t._strict=e._strict),l(e._tzm)||(t._tzm=e._tzm),l(e._isUTC)||(t._isUTC=e._isUTC),l(e._offset)||(t._offset=e._offset),l(e._pf)||(t._pf=m(e)),l(e._locale)||(t._locale=e._locale),n>0)for(s=0;s<n;s++)l(i=e[r=x[s]])||(t[r]=i);return t}function w(t){b(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===v&&(v=!0,i.updateOffset(this),v=!1)}function P(t){return t instanceof w||null!=t&&null!=t._isAMomentObject}function T(t){!1===i.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function S(t,e){var s=!0;return d((function(){if(null!=i.deprecationHandler&&i.deprecationHandler(null,t),s){var r,n,a,c=[],l=arguments.length;for(n=0;n<l;n++){if(r="","object"==typeof arguments[n]){for(a in r+="\n["+n+"] ",arguments[0])o(arguments[0],a)&&(r+=a+": "+arguments[0][a]+", ");r=r.slice(0,-2)}else r=arguments[n];c.push(r)}T(t+"\nArguments: "+Array.prototype.slice.call(c).join("")+"\n"+(new Error).stack),s=!1}return e.apply(this,arguments)}),e)}var A,_={};function k(t,e){null!=i.deprecationHandler&&i.deprecationHandler(t,e),_[t]||(T(e),_[t]=!0)}function E(t){return"undefined"!=typeof Function&&t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function C(t,e){var s,r=d({},t);for(s in e)o(e,s)&&(a(t[s])&&a(e[s])?(r[s]={},d(r[s],t[s]),d(r[s],e[s])):null!=e[s]?r[s]=e[s]:delete r[s]);for(s in t)o(t,s)&&!o(e,s)&&a(t[s])&&(r[s]=d({},r[s]));return r}function N(t){null!=t&&this.set(t)}i.suppressDeprecationWarnings=!1,i.deprecationHandler=null,A=Object.keys?Object.keys:function(t){var e,s=[];for(e in t)o(t,e)&&s.push(e);return s};function I(t,e,s){var r=""+Math.abs(t),i=e-r.length;return(t>=0?s?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var M=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,L=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,O={},D={};function F(t,e,s,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),t&&(D[t]=i),e&&(D[e[0]]=function(){return I(i.apply(this,arguments),e[1],e[2])}),s&&(D[s]=function(){return this.localeData().ordinal(i.apply(this,arguments),t)})}function R(t,e){return t.isValid()?(e=j(e,t.localeData()),O[e]=O[e]||function(t){var e,s,r,i=t.match(M);for(e=0,s=i.length;e<s;e++)D[i[e]]?i[e]=D[i[e]]:i[e]=(r=i[e]).match(/\[[\s\S]/)?r.replace(/^\[|\]$/g,""):r.replace(/\\/g,"");return function(e){var r,n="";for(r=0;r<s;r++)n+=E(i[r])?i[r].call(e,t):i[r];return n}}(e),O[e](t)):t.localeData().invalidDate()}function j(t,e){var s=5;function r(t){return e.longDateFormat(t)||t}for(L.lastIndex=0;s>=0&&L.test(t);)t=t.replace(L,r),L.lastIndex=0,s-=1;return t}var B={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function Y(t){return"string"==typeof t?B[t]||B[t.toLowerCase()]:void 0}function U(t){var e,s,r={};for(s in t)o(t,s)&&(e=Y(s))&&(r[e]=t[s]);return r}var H={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};var W,$=/\d/,z=/\d\d/,V=/\d{3}/,q=/\d{4}/,K=/[+-]?\d{6}/,J=/\d\d?/,G=/\d\d\d\d?/,X=/\d\d\d\d\d\d?/,Z=/\d{1,3}/,Q=/\d{1,4}/,tt=/[+-]?\d{1,6}/,et=/\d+/,st=/[+-]?\d+/,rt=/Z|[+-]\d\d:?\d\d/gi,it=/Z|[+-]\d\d(?::?\d\d)?/gi,nt=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,at=/^[1-9]\d?/,ot=/^([1-9]\d|\d)/;function ct(t,e,s){W[t]=E(e)?e:function(t,r){return t&&s?s:e}}function lt(t,e){return o(W,t)?W[t](e._strict,e._locale):new RegExp(ht(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(t,e,s,r,i){return e||s||r||i}))))}function ht(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function ut(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function pt(t){var e=+t,s=0;return 0!==e&&isFinite(e)&&(s=ut(e)),s}W={};var dt={};function ft(t,e){var s,r,i=e;for("string"==typeof t&&(t=[t]),h(e)&&(i=function(t,s){s[e]=pt(t)}),r=t.length,s=0;s<r;s++)dt[t[s]]=i}function mt(t,e){ft(t,(function(t,s,r,i){r._w=r._w||{},e(t,r._w,r,i)}))}function yt(t,e,s){null!=e&&o(dt,t)&&dt[t](e,s._a,s,t)}function gt(t){return t%4==0&&t%100!=0||t%400==0}var xt=0,vt=1,bt=2,wt=3,Pt=4,Tt=5,St=6,At=7,_t=8;function kt(t){return gt(t)?366:365}F("Y",0,0,(function(){var t=this.year();return t<=9999?I(t,4):"+"+t})),F(0,["YY",2],0,(function(){return this.year()%100})),F(0,["YYYY",4],0,"year"),F(0,["YYYYY",5],0,"year"),F(0,["YYYYYY",6,!0],0,"year"),ct("Y",st),ct("YY",J,z),ct("YYYY",Q,q),ct("YYYYY",tt,K),ct("YYYYYY",tt,K),ft(["YYYYY","YYYYYY"],xt),ft("YYYY",(function(t,e){e[xt]=2===t.length?i.parseTwoDigitYear(t):pt(t)})),ft("YY",(function(t,e){e[xt]=i.parseTwoDigitYear(t)})),ft("Y",(function(t,e){e[xt]=parseInt(t,10)})),i.parseTwoDigitYear=function(t){return pt(t)+(pt(t)>68?1900:2e3)};var Et,Ct=Nt("FullYear",!0);function Nt(t,e){return function(s){return null!=s?(Mt(this,t,s),i.updateOffset(this,e),this):It(this,t)}}function It(t,e){if(!t.isValid())return NaN;var s=t._d,r=t._isUTC;switch(e){case"Milliseconds":return r?s.getUTCMilliseconds():s.getMilliseconds();case"Seconds":return r?s.getUTCSeconds():s.getSeconds();case"Minutes":return r?s.getUTCMinutes():s.getMinutes();case"Hours":return r?s.getUTCHours():s.getHours();case"Date":return r?s.getUTCDate():s.getDate();case"Day":return r?s.getUTCDay():s.getDay();case"Month":return r?s.getUTCMonth():s.getMonth();case"FullYear":return r?s.getUTCFullYear():s.getFullYear();default:return NaN}}function Mt(t,e,s){var r,i,n,a,o;if(t.isValid()&&!isNaN(s)){switch(r=t._d,i=t._isUTC,e){case"Milliseconds":return void(i?r.setUTCMilliseconds(s):r.setMilliseconds(s));case"Seconds":return void(i?r.setUTCSeconds(s):r.setSeconds(s));case"Minutes":return void(i?r.setUTCMinutes(s):r.setMinutes(s));case"Hours":return void(i?r.setUTCHours(s):r.setHours(s));case"Date":return void(i?r.setUTCDate(s):r.setDate(s));case"FullYear":break;default:return}n=s,a=t.month(),o=29!==(o=t.date())||1!==a||gt(n)?o:28,i?r.setUTCFullYear(n,a,o):r.setFullYear(n,a,o)}}function Lt(t,e){if(isNaN(t)||isNaN(e))return NaN;var s,r=(e%(s=12)+s)%s;return t+=(e-r)/12,1===r?gt(t)?29:28:31-r%7%2}Et=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1},F("M",["MM",2],"Mo",(function(){return this.month()+1})),F("MMM",0,0,(function(t){return this.localeData().monthsShort(this,t)})),F("MMMM",0,0,(function(t){return this.localeData().months(this,t)})),ct("M",J,at),ct("MM",J,z),ct("MMM",(function(t,e){return e.monthsShortRegex(t)})),ct("MMMM",(function(t,e){return e.monthsRegex(t)})),ft(["M","MM"],(function(t,e){e[vt]=pt(t)-1})),ft(["MMM","MMMM"],(function(t,e,s,r){var i=s._locale.monthsParse(t,r,s._strict);null!=i?e[vt]=i:m(s).invalidMonth=t}));var Ot="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Dt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Ft=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Rt=nt,jt=nt;function Bt(t,e,s){var r,i,n,a=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)n=f([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(n,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(n,"").toLocaleLowerCase();return s?"MMM"===e?-1!==(i=Et.call(this._shortMonthsParse,a))?i:null:-1!==(i=Et.call(this._longMonthsParse,a))?i:null:"MMM"===e?-1!==(i=Et.call(this._shortMonthsParse,a))||-1!==(i=Et.call(this._longMonthsParse,a))?i:null:-1!==(i=Et.call(this._longMonthsParse,a))||-1!==(i=Et.call(this._shortMonthsParse,a))?i:null}function Yt(t,e){if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=pt(e);else if(!h(e=t.localeData().monthsParse(e)))return t;var s=e,r=t.date();return r=r<29?r:Math.min(r,Lt(t.year(),s)),t._isUTC?t._d.setUTCMonth(s,r):t._d.setMonth(s,r),t}function Ut(t){return null!=t?(Yt(this,t),i.updateOffset(this,!0),this):It(this,"Month")}function Ht(){function t(t,e){return e.length-t.length}var e,s,r,i,n=[],a=[],o=[];for(e=0;e<12;e++)s=f([2e3,e]),r=ht(this.monthsShort(s,"")),i=ht(this.months(s,"")),n.push(r),a.push(i),o.push(i),o.push(r);n.sort(t),a.sort(t),o.sort(t),this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}function Wt(t,e,s,r,i,n,a){var o;return t<100&&t>=0?(o=new Date(t+400,e,s,r,i,n,a),isFinite(o.getFullYear())&&o.setFullYear(t)):o=new Date(t,e,s,r,i,n,a),o}function $t(t){var e,s;return t<100&&t>=0?((s=Array.prototype.slice.call(arguments))[0]=t+400,e=new Date(Date.UTC.apply(null,s)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC.apply(null,arguments)),e}function zt(t,e,s){var r=7+e-s;return-(7+$t(t,0,r).getUTCDay()-e)%7+r-1}function Vt(t,e,s,r,i){var n,a,o=1+7*(e-1)+(7+s-r)%7+zt(t,r,i);return o<=0?a=kt(n=t-1)+o:o>kt(t)?(n=t+1,a=o-kt(t)):(n=t,a=o),{year:n,dayOfYear:a}}function qt(t,e,s){var r,i,n=zt(t.year(),e,s),a=Math.floor((t.dayOfYear()-n-1)/7)+1;return a<1?r=a+Kt(i=t.year()-1,e,s):a>Kt(t.year(),e,s)?(r=a-Kt(t.year(),e,s),i=t.year()+1):(i=t.year(),r=a),{week:r,year:i}}function Kt(t,e,s){var r=zt(t,e,s),i=zt(t+1,e,s);return(kt(t)-r+i)/7}F("w",["ww",2],"wo","week"),F("W",["WW",2],"Wo","isoWeek"),ct("w",J,at),ct("ww",J,z),ct("W",J,at),ct("WW",J,z),mt(["w","ww","W","WW"],(function(t,e,s,r){e[r.substr(0,1)]=pt(t)}));function Jt(t,e){return t.slice(e,7).concat(t.slice(0,e))}F("d",0,"do","day"),F("dd",0,0,(function(t){return this.localeData().weekdaysMin(this,t)})),F("ddd",0,0,(function(t){return this.localeData().weekdaysShort(this,t)})),F("dddd",0,0,(function(t){return this.localeData().weekdays(this,t)})),F("e",0,0,"weekday"),F("E",0,0,"isoWeekday"),ct("d",J),ct("e",J),ct("E",J),ct("dd",(function(t,e){return e.weekdaysMinRegex(t)})),ct("ddd",(function(t,e){return e.weekdaysShortRegex(t)})),ct("dddd",(function(t,e){return e.weekdaysRegex(t)})),mt(["dd","ddd","dddd"],(function(t,e,s,r){var i=s._locale.weekdaysParse(t,r,s._strict);null!=i?e.d=i:m(s).invalidWeekday=t})),mt(["d","e","E"],(function(t,e,s,r){e[r]=pt(t)}));var Gt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Xt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Zt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Qt=nt,te=nt,ee=nt;function se(t,e,s){var r,i,n,a=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)n=f([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(n,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(n,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(n,"").toLocaleLowerCase();return s?"dddd"===e?-1!==(i=Et.call(this._weekdaysParse,a))?i:null:"ddd"===e?-1!==(i=Et.call(this._shortWeekdaysParse,a))?i:null:-1!==(i=Et.call(this._minWeekdaysParse,a))?i:null:"dddd"===e?-1!==(i=Et.call(this._weekdaysParse,a))||-1!==(i=Et.call(this._shortWeekdaysParse,a))||-1!==(i=Et.call(this._minWeekdaysParse,a))?i:null:"ddd"===e?-1!==(i=Et.call(this._shortWeekdaysParse,a))||-1!==(i=Et.call(this._weekdaysParse,a))||-1!==(i=Et.call(this._minWeekdaysParse,a))?i:null:-1!==(i=Et.call(this._minWeekdaysParse,a))||-1!==(i=Et.call(this._weekdaysParse,a))||-1!==(i=Et.call(this._shortWeekdaysParse,a))?i:null}function re(){function t(t,e){return e.length-t.length}var e,s,r,i,n,a=[],o=[],c=[],l=[];for(e=0;e<7;e++)s=f([2e3,1]).day(e),r=ht(this.weekdaysMin(s,"")),i=ht(this.weekdaysShort(s,"")),n=ht(this.weekdays(s,"")),a.push(r),o.push(i),c.push(n),l.push(r),l.push(i),l.push(n);a.sort(t),o.sort(t),c.sort(t),l.sort(t),this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function ie(){return this.hours()%12||12}function ne(t,e){F(t,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)}))}function ae(t,e){return e._meridiemParse}F("H",["HH",2],0,"hour"),F("h",["hh",2],0,ie),F("k",["kk",2],0,(function(){return this.hours()||24})),F("hmm",0,0,(function(){return""+ie.apply(this)+I(this.minutes(),2)})),F("hmmss",0,0,(function(){return""+ie.apply(this)+I(this.minutes(),2)+I(this.seconds(),2)})),F("Hmm",0,0,(function(){return""+this.hours()+I(this.minutes(),2)})),F("Hmmss",0,0,(function(){return""+this.hours()+I(this.minutes(),2)+I(this.seconds(),2)})),ne("a",!0),ne("A",!1),ct("a",ae),ct("A",ae),ct("H",J,ot),ct("h",J,at),ct("k",J,at),ct("HH",J,z),ct("hh",J,z),ct("kk",J,z),ct("hmm",G),ct("hmmss",X),ct("Hmm",G),ct("Hmmss",X),ft(["H","HH"],wt),ft(["k","kk"],(function(t,e,s){var r=pt(t);e[wt]=24===r?0:r})),ft(["a","A"],(function(t,e,s){s._isPm=s._locale.isPM(t),s._meridiem=t})),ft(["h","hh"],(function(t,e,s){e[wt]=pt(t),m(s).bigHour=!0})),ft("hmm",(function(t,e,s){var r=t.length-2;e[wt]=pt(t.substr(0,r)),e[Pt]=pt(t.substr(r)),m(s).bigHour=!0})),ft("hmmss",(function(t,e,s){var r=t.length-4,i=t.length-2;e[wt]=pt(t.substr(0,r)),e[Pt]=pt(t.substr(r,2)),e[Tt]=pt(t.substr(i)),m(s).bigHour=!0})),ft("Hmm",(function(t,e,s){var r=t.length-2;e[wt]=pt(t.substr(0,r)),e[Pt]=pt(t.substr(r))})),ft("Hmmss",(function(t,e,s){var r=t.length-4,i=t.length-2;e[wt]=pt(t.substr(0,r)),e[Pt]=pt(t.substr(r,2)),e[Tt]=pt(t.substr(i))}));var oe=Nt("Hours",!0);var ce,le={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Ot,monthsShort:Dt,week:{dow:0,doy:6},weekdays:Gt,weekdaysMin:Zt,weekdaysShort:Xt,meridiemParse:/[ap]\.?m?\.?/i},he={},ue={};function pe(t,e){var s,r=Math.min(t.length,e.length);for(s=0;s<r;s+=1)if(t[s]!==e[s])return s;return r}function de(t){return t?t.toLowerCase().replace("_","-"):t}function fe(e){var r=null;if(void 0===he[e]&&t&&t.exports&&function(t){return!(!t||!t.match("^[^/\\\\]*$"))}(e))try{r=ce._abbr,s(9844)("./"+e),me(r)}catch(t){he[e]=null}return he[e]}function me(t,e){var s;return t&&((s=l(e)?ge(t):ye(t,e))?ce=s:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),ce._abbr}function ye(t,e){if(null!==e){var s,r=le;if(e.abbr=t,null!=he[t])k("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=he[t]._config;else if(null!=e.parentLocale)if(null!=he[e.parentLocale])r=he[e.parentLocale]._config;else{if(null==(s=fe(e.parentLocale)))return ue[e.parentLocale]||(ue[e.parentLocale]=[]),ue[e.parentLocale].push({name:t,config:e}),null;r=s._config}return he[t]=new N(C(r,e)),ue[t]&&ue[t].forEach((function(t){ye(t.name,t.config)})),me(t),he[t]}return delete he[t],null}function ge(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return ce;if(!n(t)){if(e=fe(t))return e;t=[t]}return function(t){for(var e,s,r,i,n=0;n<t.length;){for(e=(i=de(t[n]).split("-")).length,s=(s=de(t[n+1]))?s.split("-"):null;e>0;){if(r=fe(i.slice(0,e).join("-")))return r;if(s&&s.length>=e&&pe(i,s)>=e-1)break;e--}n++}return ce}(t)}function xe(t){var e,s=t._a;return s&&-2===m(t).overflow&&(e=s[vt]<0||s[vt]>11?vt:s[bt]<1||s[bt]>Lt(s[xt],s[vt])?bt:s[wt]<0||s[wt]>24||24===s[wt]&&(0!==s[Pt]||0!==s[Tt]||0!==s[St])?wt:s[Pt]<0||s[Pt]>59?Pt:s[Tt]<0||s[Tt]>59?Tt:s[St]<0||s[St]>999?St:-1,m(t)._overflowDayOfYear&&(e<xt||e>bt)&&(e=bt),m(t)._overflowWeeks&&-1===e&&(e=At),m(t)._overflowWeekday&&-1===e&&(e=_t),m(t).overflow=e),t}var ve=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,be=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,we=/Z|[+-]\d\d(?::?\d\d)?/,Pe=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Te=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Se=/^\/?Date\((-?\d+)/i,Ae=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,_e={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function ke(t){var e,s,r,i,n,a,o=t._i,c=ve.exec(o)||be.exec(o),l=Pe.length,h=Te.length;if(c){for(m(t).iso=!0,e=0,s=l;e<s;e++)if(Pe[e][1].exec(c[1])){i=Pe[e][0],r=!1!==Pe[e][2];break}if(null==i)return void(t._isValid=!1);if(c[3]){for(e=0,s=h;e<s;e++)if(Te[e][1].exec(c[3])){n=(c[2]||" ")+Te[e][0];break}if(null==n)return void(t._isValid=!1)}if(!r&&null!=n)return void(t._isValid=!1);if(c[4]){if(!we.exec(c[4]))return void(t._isValid=!1);a="Z"}t._f=i+(n||"")+(a||""),Me(t)}else t._isValid=!1}function Ee(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}function Ce(t){var e,s,r,i,n,a,o,c,l=Ae.exec(t._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(l){if(s=l[4],r=l[3],i=l[2],n=l[5],a=l[6],o=l[7],c=[Ee(s),Dt.indexOf(r),parseInt(i,10),parseInt(n,10),parseInt(a,10)],o&&c.push(parseInt(o,10)),e=c,!function(t,e,s){return!t||Xt.indexOf(t)===new Date(e[0],e[1],e[2]).getDay()||(m(s).weekdayMismatch=!0,s._isValid=!1,!1)}(l[1],e,t))return;t._a=e,t._tzm=function(t,e,s){if(t)return _e[t];if(e)return 0;var r=parseInt(s,10),i=r%100;return(r-i)/100*60+i}(l[8],l[9],l[10]),t._d=$t.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),m(t).rfc2822=!0}else t._isValid=!1}function Ne(t,e,s){return null!=t?t:null!=e?e:s}function Ie(t){var e,s,r,n,a,o=[];if(!t._d){for(r=function(t){var e=new Date(i.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}(t),t._w&&null==t._a[bt]&&null==t._a[vt]&&function(t){var e,s,r,i,n,a,o,c,l;null!=(e=t._w).GG||null!=e.W||null!=e.E?(n=1,a=4,s=Ne(e.GG,t._a[xt],qt(De(),1,4).year),r=Ne(e.W,1),((i=Ne(e.E,1))<1||i>7)&&(c=!0)):(n=t._locale._week.dow,a=t._locale._week.doy,l=qt(De(),n,a),s=Ne(e.gg,t._a[xt],l.year),r=Ne(e.w,l.week),null!=e.d?((i=e.d)<0||i>6)&&(c=!0):null!=e.e?(i=e.e+n,(e.e<0||e.e>6)&&(c=!0)):i=n),r<1||r>Kt(s,n,a)?m(t)._overflowWeeks=!0:null!=c?m(t)._overflowWeekday=!0:(o=Vt(s,r,i,n,a),t._a[xt]=o.year,t._dayOfYear=o.dayOfYear)}(t),null!=t._dayOfYear&&(a=Ne(t._a[xt],r[xt]),(t._dayOfYear>kt(a)||0===t._dayOfYear)&&(m(t)._overflowDayOfYear=!0),s=$t(a,0,t._dayOfYear),t._a[vt]=s.getUTCMonth(),t._a[bt]=s.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=o[e]=r[e];for(;e<7;e++)t._a[e]=o[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[wt]&&0===t._a[Pt]&&0===t._a[Tt]&&0===t._a[St]&&(t._nextDay=!0,t._a[wt]=0),t._d=(t._useUTC?$t:Wt).apply(null,o),n=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[wt]=24),t._w&&void 0!==t._w.d&&t._w.d!==n&&(m(t).weekdayMismatch=!0)}}function Me(t){if(t._f!==i.ISO_8601)if(t._f!==i.RFC_2822){t._a=[],m(t).empty=!0;var e,s,r,n,a,o,c,l=""+t._i,h=l.length,u=0;for(c=(r=j(t._f,t._locale).match(M)||[]).length,e=0;e<c;e++)n=r[e],(s=(l.match(lt(n,t))||[])[0])&&((a=l.substr(0,l.indexOf(s))).length>0&&m(t).unusedInput.push(a),l=l.slice(l.indexOf(s)+s.length),u+=s.length),D[n]?(s?m(t).empty=!1:m(t).unusedTokens.push(n),yt(n,s,t)):t._strict&&!s&&m(t).unusedTokens.push(n);m(t).charsLeftOver=h-u,l.length>0&&m(t).unusedInput.push(l),t._a[wt]<=12&&!0===m(t).bigHour&&t._a[wt]>0&&(m(t).bigHour=void 0),m(t).parsedDateParts=t._a.slice(0),m(t).meridiem=t._meridiem,t._a[wt]=function(t,e,s){var r;return null==s?e:null!=t.meridiemHour?t.meridiemHour(e,s):null!=t.isPM?((r=t.isPM(s))&&e<12&&(e+=12),r||12!==e||(e=0),e):e}(t._locale,t._a[wt],t._meridiem),null!==(o=m(t).era)&&(t._a[xt]=t._locale.erasConvertYear(o,t._a[xt])),Ie(t),xe(t)}else Ce(t);else ke(t)}function Le(t){var e=t._i,s=t._f;return t._locale=t._locale||ge(t._l),null===e||void 0===s&&""===e?g({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),P(e)?new w(xe(e)):(u(e)?t._d=e:n(s)?function(t){var e,s,r,i,n,a,o=!1,c=t._f.length;if(0===c)return m(t).invalidFormat=!0,void(t._d=new Date(NaN));for(i=0;i<c;i++)n=0,a=!1,e=b({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[i],Me(e),y(e)&&(a=!0),n+=m(e).charsLeftOver,n+=10*m(e).unusedTokens.length,m(e).score=n,o?n<r&&(r=n,s=e):(null==r||n<r||a)&&(r=n,s=e,a&&(o=!0));d(t,s||e)}(t):s?Me(t):function(t){var e=t._i;l(e)?t._d=new Date(i.now()):u(e)?t._d=new Date(e.valueOf()):"string"==typeof e?function(t){var e=Se.exec(t._i);null===e?(ke(t),!1===t._isValid&&(delete t._isValid,Ce(t),!1===t._isValid&&(delete t._isValid,t._strict?t._isValid=!1:i.createFromInputFallback(t)))):t._d=new Date(+e[1])}(t):n(e)?(t._a=p(e.slice(0),(function(t){return parseInt(t,10)})),Ie(t)):a(e)?function(t){if(!t._d){var e=U(t._i),s=void 0===e.day?e.date:e.day;t._a=p([e.year,e.month,s,e.hour,e.minute,e.second,e.millisecond],(function(t){return t&&parseInt(t,10)})),Ie(t)}}(t):h(e)?t._d=new Date(e):i.createFromInputFallback(t)}(t),y(t)||(t._d=null),t))}function Oe(t,e,s,r,i){var o,l={};return!0!==e&&!1!==e||(r=e,e=void 0),!0!==s&&!1!==s||(r=s,s=void 0),(a(t)&&c(t)||n(t)&&0===t.length)&&(t=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=i,l._l=s,l._i=t,l._f=e,l._strict=r,(o=new w(xe(Le(l))))._nextDay&&(o.add(1,"d"),o._nextDay=void 0),o}function De(t,e,s,r){return Oe(t,e,s,r,!1)}i.createFromInputFallback=S("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))})),i.ISO_8601=function(){},i.RFC_2822=function(){};var Fe=S("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=De.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:g()})),Re=S("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=De.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:g()}));function je(t,e){var s,r;if(1===e.length&&n(e[0])&&(e=e[0]),!e.length)return De();for(s=e[0],r=1;r<e.length;++r)e[r].isValid()&&!e[r][t](s)||(s=e[r]);return s}var Be=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Ye(t){var e=U(t),s=e.year||0,r=e.quarter||0,i=e.month||0,n=e.week||e.isoWeek||0,a=e.day||0,c=e.hour||0,l=e.minute||0,h=e.second||0,u=e.millisecond||0;this._isValid=function(t){var e,s,r=!1,i=Be.length;for(e in t)if(o(t,e)&&(-1===Et.call(Be,e)||null!=t[e]&&isNaN(t[e])))return!1;for(s=0;s<i;++s)if(t[Be[s]]){if(r)return!1;parseFloat(t[Be[s]])!==pt(t[Be[s]])&&(r=!0)}return!0}(e),this._milliseconds=+u+1e3*h+6e4*l+1e3*c*60*60,this._days=+a+7*n,this._months=+i+3*r+12*s,this._data={},this._locale=ge(),this._bubble()}function Ue(t){return t instanceof Ye}function He(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function We(t,e){F(t,0,0,(function(){var t=this.utcOffset(),s="+";return t<0&&(t=-t,s="-"),s+I(~~(t/60),2)+e+I(~~t%60,2)}))}We("Z",":"),We("ZZ",""),ct("Z",it),ct("ZZ",it),ft(["Z","ZZ"],(function(t,e,s){s._useUTC=!0,s._tzm=ze(it,t)}));var $e=/([\+\-]|\d\d)/gi;function ze(t,e){var s,r,i=(e||"").match(t);return null===i?null:0===(r=60*(s=((i[i.length-1]||[])+"").match($e)||["-",0,0])[1]+pt(s[2]))?0:"+"===s[0]?r:-r}function Ve(t,e){var s,r;return e._isUTC?(s=e.clone(),r=(P(t)||u(t)?t.valueOf():De(t).valueOf())-s.valueOf(),s._d.setTime(s._d.valueOf()+r),i.updateOffset(s,!1),s):De(t).local()}function qe(t){return-Math.round(t._d.getTimezoneOffset())}function Ke(){return!!this.isValid()&&this._isUTC&&0===this._offset}i.updateOffset=function(){};var Je=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Ge=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Xe(t,e){var s,r,i,n,a,c,l=t,u=null;return Ue(t)?l={ms:t._milliseconds,d:t._days,M:t._months}:h(t)||!isNaN(+t)?(l={},e?l[e]=+t:l.milliseconds=+t):(u=Je.exec(t))?(s="-"===u[1]?-1:1,l={y:0,d:pt(u[bt])*s,h:pt(u[wt])*s,m:pt(u[Pt])*s,s:pt(u[Tt])*s,ms:pt(He(1e3*u[St]))*s}):(u=Ge.exec(t))?(s="-"===u[1]?-1:1,l={y:Ze(u[2],s),M:Ze(u[3],s),w:Ze(u[4],s),d:Ze(u[5],s),h:Ze(u[6],s),m:Ze(u[7],s),s:Ze(u[8],s)}):null==l?l={}:"object"==typeof l&&("from"in l||"to"in l)&&(n=De(l.from),a=De(l.to),i=n.isValid()&&a.isValid()?(a=Ve(a,n),n.isBefore(a)?c=Qe(n,a):((c=Qe(a,n)).milliseconds=-c.milliseconds,c.months=-c.months),c):{milliseconds:0,months:0},(l={}).ms=i.milliseconds,l.M=i.months),r=new Ye(l),Ue(t)&&o(t,"_locale")&&(r._locale=t._locale),Ue(t)&&o(t,"_isValid")&&(r._isValid=t._isValid),r}function Ze(t,e){var s=t&&parseFloat(t.replace(",","."));return(isNaN(s)?0:s)*e}function Qe(t,e){var s={};return s.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(s.months,"M").isAfter(e)&&--s.months,s.milliseconds=+e-+t.clone().add(s.months,"M"),s}function ts(t,e){return function(s,r){var i;return null===r||isNaN(+r)||(k(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=s,s=r,r=i),es(this,Xe(s,r),t),this}}function es(t,e,s,r){var n=e._milliseconds,a=He(e._days),o=He(e._months);t.isValid()&&(r=null==r||r,o&&Yt(t,It(t,"Month")+o*s),a&&Mt(t,"Date",It(t,"Date")+a*s),n&&t._d.setTime(t._d.valueOf()+n*s),r&&i.updateOffset(t,a||o))}Xe.fn=Ye.prototype,Xe.invalid=function(){return Xe(NaN)};var ss=ts(1,"add"),rs=ts(-1,"subtract");function is(t){return"string"==typeof t||t instanceof String}function ns(t){return P(t)||u(t)||is(t)||h(t)||function(t){var e=n(t),s=!1;return e&&(s=0===t.filter((function(e){return!h(e)&&is(t)})).length),e&&s}(t)||function(t){var e,s,r=a(t)&&!c(t),i=!1,n=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],l=n.length;for(e=0;e<l;e+=1)s=n[e],i=i||o(t,s);return r&&i}(t)||null==t}function as(t,e){if(t.date()<e.date())return-as(e,t);var s=12*(e.year()-t.year())+(e.month()-t.month()),r=t.clone().add(s,"months");return-(s+(e-r<0?(e-r)/(r-t.clone().add(s-1,"months")):(e-r)/(t.clone().add(s+1,"months")-r)))||0}function os(t){var e;return void 0===t?this._locale._abbr:(null!=(e=ge(t))&&(this._locale=e),this)}i.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",i.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var cs=S("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(t){return void 0===t?this.localeData():this.locale(t)}));function ls(){return this._locale}var hs=1e3,us=6e4,ps=36e5,ds=126227808e5;function fs(t,e){return(t%e+e)%e}function ms(t,e,s){return t<100&&t>=0?new Date(t+400,e,s)-ds:new Date(t,e,s).valueOf()}function ys(t,e,s){return t<100&&t>=0?Date.UTC(t+400,e,s)-ds:Date.UTC(t,e,s)}function gs(t,e){return e.erasAbbrRegex(t)}function xs(){var t,e,s,r,i,n=[],a=[],o=[],c=[],l=this.eras();for(t=0,e=l.length;t<e;++t)s=ht(l[t].name),r=ht(l[t].abbr),i=ht(l[t].narrow),a.push(s),n.push(r),o.push(i),c.push(s),c.push(r),c.push(i);this._erasRegex=new RegExp("^("+c.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+a.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+o.join("|")+")","i")}function vs(t,e){F(0,[t,t.length],0,e)}function bs(t,e,s,r,i){var n;return null==t?qt(this,r,i).year:(e>(n=Kt(t,r,i))&&(e=n),ws.call(this,t,e,s,r,i))}function ws(t,e,s,r,i){var n=Vt(t,e,s,r,i),a=$t(n.year,0,n.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}F("N",0,0,"eraAbbr"),F("NN",0,0,"eraAbbr"),F("NNN",0,0,"eraAbbr"),F("NNNN",0,0,"eraName"),F("NNNNN",0,0,"eraNarrow"),F("y",["y",1],"yo","eraYear"),F("y",["yy",2],0,"eraYear"),F("y",["yyy",3],0,"eraYear"),F("y",["yyyy",4],0,"eraYear"),ct("N",gs),ct("NN",gs),ct("NNN",gs),ct("NNNN",(function(t,e){return e.erasNameRegex(t)})),ct("NNNNN",(function(t,e){return e.erasNarrowRegex(t)})),ft(["N","NN","NNN","NNNN","NNNNN"],(function(t,e,s,r){var i=s._locale.erasParse(t,r,s._strict);i?m(s).era=i:m(s).invalidEra=t})),ct("y",et),ct("yy",et),ct("yyy",et),ct("yyyy",et),ct("yo",(function(t,e){return e._eraYearOrdinalRegex||et})),ft(["y","yy","yyy","yyyy"],xt),ft(["yo"],(function(t,e,s,r){var i;s._locale._eraYearOrdinalRegex&&(i=t.match(s._locale._eraYearOrdinalRegex)),s._locale.eraYearOrdinalParse?e[xt]=s._locale.eraYearOrdinalParse(t,i):e[xt]=parseInt(t,10)})),F(0,["gg",2],0,(function(){return this.weekYear()%100})),F(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),vs("gggg","weekYear"),vs("ggggg","weekYear"),vs("GGGG","isoWeekYear"),vs("GGGGG","isoWeekYear"),ct("G",st),ct("g",st),ct("GG",J,z),ct("gg",J,z),ct("GGGG",Q,q),ct("gggg",Q,q),ct("GGGGG",tt,K),ct("ggggg",tt,K),mt(["gggg","ggggg","GGGG","GGGGG"],(function(t,e,s,r){e[r.substr(0,2)]=pt(t)})),mt(["gg","GG"],(function(t,e,s,r){e[r]=i.parseTwoDigitYear(t)})),F("Q",0,"Qo","quarter"),ct("Q",$),ft("Q",(function(t,e){e[vt]=3*(pt(t)-1)})),F("D",["DD",2],"Do","date"),ct("D",J,at),ct("DD",J,z),ct("Do",(function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient})),ft(["D","DD"],bt),ft("Do",(function(t,e){e[bt]=pt(t.match(J)[0])}));var Ps=Nt("Date",!0);F("DDD",["DDDD",3],"DDDo","dayOfYear"),ct("DDD",Z),ct("DDDD",V),ft(["DDD","DDDD"],(function(t,e,s){s._dayOfYear=pt(t)})),F("m",["mm",2],0,"minute"),ct("m",J,ot),ct("mm",J,z),ft(["m","mm"],Pt);var Ts=Nt("Minutes",!1);F("s",["ss",2],0,"second"),ct("s",J,ot),ct("ss",J,z),ft(["s","ss"],Tt);var Ss,As,_s=Nt("Seconds",!1);for(F("S",0,0,(function(){return~~(this.millisecond()/100)})),F(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),F(0,["SSS",3],0,"millisecond"),F(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),F(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),F(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),F(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),F(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),F(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),ct("S",Z,$),ct("SS",Z,z),ct("SSS",Z,V),Ss="SSSS";Ss.length<=9;Ss+="S")ct(Ss,et);function ks(t,e){e[St]=pt(1e3*("0."+t))}for(Ss="S";Ss.length<=9;Ss+="S")ft(Ss,ks);As=Nt("Milliseconds",!1),F("z",0,0,"zoneAbbr"),F("zz",0,0,"zoneName");var Es=w.prototype;function Cs(t){return t}Es.add=ss,Es.calendar=function(t,e){1===arguments.length&&(arguments[0]?ns(arguments[0])?(t=arguments[0],e=void 0):function(t){var e,s=a(t)&&!c(t),r=!1,i=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(e=0;e<i.length;e+=1)r=r||o(t,i[e]);return s&&r}(arguments[0])&&(e=arguments[0],t=void 0):(t=void 0,e=void 0));var s=t||De(),r=Ve(s,this).startOf("day"),n=i.calendarFormat(this,r)||"sameElse",l=e&&(E(e[n])?e[n].call(this,s):e[n]);return this.format(l||this.localeData().calendar(n,this,De(s)))},Es.clone=function(){return new w(this)},Es.diff=function(t,e,s){var r,i,n;if(!this.isValid())return NaN;if(!(r=Ve(t,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),e=Y(e)){case"year":n=as(this,r)/12;break;case"month":n=as(this,r);break;case"quarter":n=as(this,r)/3;break;case"second":n=(this-r)/1e3;break;case"minute":n=(this-r)/6e4;break;case"hour":n=(this-r)/36e5;break;case"day":n=(this-r-i)/864e5;break;case"week":n=(this-r-i)/6048e5;break;default:n=this-r}return s?n:ut(n)},Es.endOf=function(t){var e,s;if(void 0===(t=Y(t))||"millisecond"===t||!this.isValid())return this;switch(s=this._isUTC?ys:ms,t){case"year":e=s(this.year()+1,0,1)-1;break;case"quarter":e=s(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=s(this.year(),this.month()+1,1)-1;break;case"week":e=s(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=s(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=s(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=ps-fs(e+(this._isUTC?0:this.utcOffset()*us),ps)-1;break;case"minute":e=this._d.valueOf(),e+=us-fs(e,us)-1;break;case"second":e=this._d.valueOf(),e+=hs-fs(e,hs)-1}return this._d.setTime(e),i.updateOffset(this,!0),this},Es.format=function(t){t||(t=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var e=R(this,t);return this.localeData().postformat(e)},Es.from=function(t,e){return this.isValid()&&(P(t)&&t.isValid()||De(t).isValid())?Xe({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},Es.fromNow=function(t){return this.from(De(),t)},Es.to=function(t,e){return this.isValid()&&(P(t)&&t.isValid()||De(t).isValid())?Xe({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},Es.toNow=function(t){return this.to(De(),t)},Es.get=function(t){return E(this[t=Y(t)])?this[t]():this},Es.invalidAt=function(){return m(this).overflow},Es.isAfter=function(t,e){var s=P(t)?t:De(t);return!(!this.isValid()||!s.isValid())&&("millisecond"===(e=Y(e)||"millisecond")?this.valueOf()>s.valueOf():s.valueOf()<this.clone().startOf(e).valueOf())},Es.isBefore=function(t,e){var s=P(t)?t:De(t);return!(!this.isValid()||!s.isValid())&&("millisecond"===(e=Y(e)||"millisecond")?this.valueOf()<s.valueOf():this.clone().endOf(e).valueOf()<s.valueOf())},Es.isBetween=function(t,e,s,r){var i=P(t)?t:De(t),n=P(e)?e:De(e);return!!(this.isValid()&&i.isValid()&&n.isValid())&&("("===(r=r||"()")[0]?this.isAfter(i,s):!this.isBefore(i,s))&&(")"===r[1]?this.isBefore(n,s):!this.isAfter(n,s))},Es.isSame=function(t,e){var s,r=P(t)?t:De(t);return!(!this.isValid()||!r.isValid())&&("millisecond"===(e=Y(e)||"millisecond")?this.valueOf()===r.valueOf():(s=r.valueOf(),this.clone().startOf(e).valueOf()<=s&&s<=this.clone().endOf(e).valueOf()))},Es.isSameOrAfter=function(t,e){return this.isSame(t,e)||this.isAfter(t,e)},Es.isSameOrBefore=function(t,e){return this.isSame(t,e)||this.isBefore(t,e)},Es.isValid=function(){return y(this)},Es.lang=cs,Es.locale=os,Es.localeData=ls,Es.max=Re,Es.min=Fe,Es.parsingFlags=function(){return d({},m(this))},Es.set=function(t,e){if("object"==typeof t){var s,r=function(t){var e,s=[];for(e in t)o(t,e)&&s.push({unit:e,priority:H[e]});return s.sort((function(t,e){return t.priority-e.priority})),s}(t=U(t)),i=r.length;for(s=0;s<i;s++)this[r[s].unit](t[r[s].unit])}else if(E(this[t=Y(t)]))return this[t](e);return this},Es.startOf=function(t){var e,s;if(void 0===(t=Y(t))||"millisecond"===t||!this.isValid())return this;switch(s=this._isUTC?ys:ms,t){case"year":e=s(this.year(),0,1);break;case"quarter":e=s(this.year(),this.month()-this.month()%3,1);break;case"month":e=s(this.year(),this.month(),1);break;case"week":e=s(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=s(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=s(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=fs(e+(this._isUTC?0:this.utcOffset()*us),ps);break;case"minute":e=this._d.valueOf(),e-=fs(e,us);break;case"second":e=this._d.valueOf(),e-=fs(e,hs)}return this._d.setTime(e),i.updateOffset(this,!0),this},Es.subtract=rs,Es.toArray=function(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]},Es.toObject=function(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}},Es.toDate=function(){return new Date(this.valueOf())},Es.toISOString=function(t){if(!this.isValid())return null;var e=!0!==t,s=e?this.clone().utc():this;return s.year()<0||s.year()>9999?R(s,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):E(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",R(s,"Z")):R(s,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Es.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t,e,s,r="moment",i="";return this.isLocal()||(r=0===this.utcOffset()?"moment.utc":"moment.parseZone",i="Z"),t="["+r+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY","-MM-DD[T]HH:mm:ss.SSS",s=i+'[")]',this.format(t+e+"-MM-DD[T]HH:mm:ss.SSS"+s)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(Es[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Es.toJSON=function(){return this.isValid()?this.toISOString():null},Es.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Es.unix=function(){return Math.floor(this.valueOf()/1e3)},Es.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},Es.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Es.eraName=function(){var t,e,s,r=this.localeData().eras();for(t=0,e=r.length;t<e;++t){if(s=this.clone().startOf("day").valueOf(),r[t].since<=s&&s<=r[t].until)return r[t].name;if(r[t].until<=s&&s<=r[t].since)return r[t].name}return""},Es.eraNarrow=function(){var t,e,s,r=this.localeData().eras();for(t=0,e=r.length;t<e;++t){if(s=this.clone().startOf("day").valueOf(),r[t].since<=s&&s<=r[t].until)return r[t].narrow;if(r[t].until<=s&&s<=r[t].since)return r[t].narrow}return""},Es.eraAbbr=function(){var t,e,s,r=this.localeData().eras();for(t=0,e=r.length;t<e;++t){if(s=this.clone().startOf("day").valueOf(),r[t].since<=s&&s<=r[t].until)return r[t].abbr;if(r[t].until<=s&&s<=r[t].since)return r[t].abbr}return""},Es.eraYear=function(){var t,e,s,r,n=this.localeData().eras();for(t=0,e=n.length;t<e;++t)if(s=n[t].since<=n[t].until?1:-1,r=this.clone().startOf("day").valueOf(),n[t].since<=r&&r<=n[t].until||n[t].until<=r&&r<=n[t].since)return(this.year()-i(n[t].since).year())*s+n[t].offset;return this.year()},Es.year=Ct,Es.isLeapYear=function(){return gt(this.year())},Es.weekYear=function(t){return bs.call(this,t,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)},Es.isoWeekYear=function(t){return bs.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},Es.quarter=Es.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},Es.month=Ut,Es.daysInMonth=function(){return Lt(this.year(),this.month())},Es.week=Es.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},Es.isoWeek=Es.isoWeeks=function(t){var e=qt(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},Es.weeksInYear=function(){var t=this.localeData()._week;return Kt(this.year(),t.dow,t.doy)},Es.weeksInWeekYear=function(){var t=this.localeData()._week;return Kt(this.weekYear(),t.dow,t.doy)},Es.isoWeeksInYear=function(){return Kt(this.year(),1,4)},Es.isoWeeksInISOWeekYear=function(){return Kt(this.isoWeekYear(),1,4)},Es.date=Ps,Es.day=Es.days=function(t){if(!this.isValid())return null!=t?this:NaN;var e=It(this,"Day");return null!=t?(t=function(t,e){return"string"!=typeof t?t:isNaN(t)?"number"==typeof(t=e.weekdaysParse(t))?t:null:parseInt(t,10)}(t,this.localeData()),this.add(t-e,"d")):e},Es.weekday=function(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")},Es.isoWeekday=function(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=function(t,e){return"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7},Es.dayOfYear=function(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},Es.hour=Es.hours=oe,Es.minute=Es.minutes=Ts,Es.second=Es.seconds=_s,Es.millisecond=Es.milliseconds=As,Es.utcOffset=function(t,e,s){var r,n=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=ze(it,t)))return this}else Math.abs(t)<16&&!s&&(t*=60);return!this._isUTC&&e&&(r=qe(this)),this._offset=t,this._isUTC=!0,null!=r&&this.add(r,"m"),n!==t&&(!e||this._changeInProgress?es(this,Xe(t-n,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?n:qe(this)},Es.utc=function(t){return this.utcOffset(0,t)},Es.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(qe(this),"m")),this},Es.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=ze(rt,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},Es.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?De(t).utcOffset():0,(this.utcOffset()-t)%60==0)},Es.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Es.isLocal=function(){return!!this.isValid()&&!this._isUTC},Es.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},Es.isUtc=Ke,Es.isUTC=Ke,Es.zoneAbbr=function(){return this._isUTC?"UTC":""},Es.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},Es.dates=S("dates accessor is deprecated. Use date instead.",Ps),Es.months=S("months accessor is deprecated. Use month instead",Ut),Es.years=S("years accessor is deprecated. Use year instead",Ct),Es.zone=S("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()})),Es.isDSTShifted=S("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!l(this._isDSTShifted))return this._isDSTShifted;var t,e={};return b(e,this),(e=Le(e))._a?(t=e._isUTC?f(e._a):De(e._a),this._isDSTShifted=this.isValid()&&function(t,e,s){var r,i=Math.min(t.length,e.length),n=Math.abs(t.length-e.length),a=0;for(r=0;r<i;r++)(s&&t[r]!==e[r]||!s&&pt(t[r])!==pt(e[r]))&&a++;return a+n}(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}));var Ns=N.prototype;function Is(t,e,s,r){var i=ge(),n=f().set(r,e);return i[s](n,t)}function Ms(t,e,s){if(h(t)&&(e=t,t=void 0),t=t||"",null!=e)return Is(t,e,s,"month");var r,i=[];for(r=0;r<12;r++)i[r]=Is(t,r,s,"month");return i}function Ls(t,e,s,r){"boolean"==typeof t?(h(e)&&(s=e,e=void 0),e=e||""):(s=e=t,t=!1,h(e)&&(s=e,e=void 0),e=e||"");var i,n=ge(),a=t?n._week.dow:0,o=[];if(null!=s)return Is(e,(s+a)%7,r,"day");for(i=0;i<7;i++)o[i]=Is(e,(i+a)%7,r,"day");return o}Ns.calendar=function(t,e,s){var r=this._calendar[t]||this._calendar.sameElse;return E(r)?r.call(e,s):r},Ns.longDateFormat=function(t){var e=this._longDateFormat[t],s=this._longDateFormat[t.toUpperCase()];return e||!s?e:(this._longDateFormat[t]=s.match(M).map((function(t){return"MMMM"===t||"MM"===t||"DD"===t||"dddd"===t?t.slice(1):t})).join(""),this._longDateFormat[t])},Ns.invalidDate=function(){return this._invalidDate},Ns.ordinal=function(t){return this._ordinal.replace("%d",t)},Ns.preparse=Cs,Ns.postformat=Cs,Ns.relativeTime=function(t,e,s,r){var i=this._relativeTime[s];return E(i)?i(t,e,s,r):i.replace(/%d/i,t)},Ns.pastFuture=function(t,e){var s=this._relativeTime[t>0?"future":"past"];return E(s)?s(e):s.replace(/%s/i,e)},Ns.set=function(t){var e,s;for(s in t)o(t,s)&&(E(e=t[s])?this[s]=e:this["_"+s]=e);this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Ns.eras=function(t,e){var s,r,n,a=this._eras||ge("en")._eras;for(s=0,r=a.length;s<r;++s)switch("string"==typeof a[s].since&&(n=i(a[s].since).startOf("day"),a[s].since=n.valueOf()),typeof a[s].until){case"undefined":a[s].until=1/0;break;case"string":n=i(a[s].until).startOf("day").valueOf(),a[s].until=n.valueOf()}return a},Ns.erasParse=function(t,e,s){var r,i,n,a,o,c=this.eras();for(t=t.toUpperCase(),r=0,i=c.length;r<i;++r)if(n=c[r].name.toUpperCase(),a=c[r].abbr.toUpperCase(),o=c[r].narrow.toUpperCase(),s)switch(e){case"N":case"NN":case"NNN":if(a===t)return c[r];break;case"NNNN":if(n===t)return c[r];break;case"NNNNN":if(o===t)return c[r]}else if([n,a,o].indexOf(t)>=0)return c[r]},Ns.erasConvertYear=function(t,e){var s=t.since<=t.until?1:-1;return void 0===e?i(t.since).year():i(t.since).year()+(e-t.offset)*s},Ns.erasAbbrRegex=function(t){return o(this,"_erasAbbrRegex")||xs.call(this),t?this._erasAbbrRegex:this._erasRegex},Ns.erasNameRegex=function(t){return o(this,"_erasNameRegex")||xs.call(this),t?this._erasNameRegex:this._erasRegex},Ns.erasNarrowRegex=function(t){return o(this,"_erasNarrowRegex")||xs.call(this),t?this._erasNarrowRegex:this._erasRegex},Ns.months=function(t,e){return t?n(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||Ft).test(e)?"format":"standalone"][t.month()]:n(this._months)?this._months:this._months.standalone},Ns.monthsShort=function(t,e){return t?n(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[Ft.test(e)?"format":"standalone"][t.month()]:n(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Ns.monthsParse=function(t,e,s){var r,i,n;if(this._monthsParseExact)return Bt.call(this,t,e,s);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=f([2e3,r]),s&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),s||this._monthsParse[r]||(n="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(n.replace(".",""),"i")),s&&"MMMM"===e&&this._longMonthsParse[r].test(t))return r;if(s&&"MMM"===e&&this._shortMonthsParse[r].test(t))return r;if(!s&&this._monthsParse[r].test(t))return r}},Ns.monthsRegex=function(t){return this._monthsParseExact?(o(this,"_monthsRegex")||Ht.call(this),t?this._monthsStrictRegex:this._monthsRegex):(o(this,"_monthsRegex")||(this._monthsRegex=jt),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},Ns.monthsShortRegex=function(t){return this._monthsParseExact?(o(this,"_monthsRegex")||Ht.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(o(this,"_monthsShortRegex")||(this._monthsShortRegex=Rt),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},Ns.week=function(t){return qt(t,this._week.dow,this._week.doy).week},Ns.firstDayOfYear=function(){return this._week.doy},Ns.firstDayOfWeek=function(){return this._week.dow},Ns.weekdays=function(t,e){var s=n(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?Jt(s,this._week.dow):t?s[t.day()]:s},Ns.weekdaysMin=function(t){return!0===t?Jt(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},Ns.weekdaysShort=function(t){return!0===t?Jt(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort},Ns.weekdaysParse=function(t,e,s){var r,i,n;if(this._weekdaysParseExact)return se.call(this,t,e,s);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=f([2e3,1]).day(r),s&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(n="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(n.replace(".",""),"i")),s&&"dddd"===e&&this._fullWeekdaysParse[r].test(t))return r;if(s&&"ddd"===e&&this._shortWeekdaysParse[r].test(t))return r;if(s&&"dd"===e&&this._minWeekdaysParse[r].test(t))return r;if(!s&&this._weekdaysParse[r].test(t))return r}},Ns.weekdaysRegex=function(t){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||re.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(o(this,"_weekdaysRegex")||(this._weekdaysRegex=Qt),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},Ns.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||re.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(o(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=te),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Ns.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||re.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(o(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ee),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Ns.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},Ns.meridiem=function(t,e,s){return t>11?s?"pm":"PM":s?"am":"AM"},me("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===pt(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),i.lang=S("moment.lang is deprecated. Use moment.locale instead.",me),i.langData=S("moment.langData is deprecated. Use moment.localeData instead.",ge);var Os=Math.abs;function Ds(t,e,s,r){var i=Xe(e,s);return t._milliseconds+=r*i._milliseconds,t._days+=r*i._days,t._months+=r*i._months,t._bubble()}function Fs(t){return t<0?Math.floor(t):Math.ceil(t)}function Rs(t){return 4800*t/146097}function js(t){return 146097*t/4800}function Bs(t){return function(){return this.as(t)}}var Ys=Bs("ms"),Us=Bs("s"),Hs=Bs("m"),Ws=Bs("h"),$s=Bs("d"),zs=Bs("w"),Vs=Bs("M"),qs=Bs("Q"),Ks=Bs("y"),Js=Ys;function Gs(t){return function(){return this.isValid()?this._data[t]:NaN}}var Xs=Gs("milliseconds"),Zs=Gs("seconds"),Qs=Gs("minutes"),tr=Gs("hours"),er=Gs("days"),sr=Gs("months"),rr=Gs("years");var ir=Math.round,nr={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ar(t,e,s,r,i){return i.relativeTime(e||1,!!s,t,r)}var or=Math.abs;function cr(t){return(t>0)-(t<0)||+t}function lr(){if(!this.isValid())return this.localeData().invalidDate();var t,e,s,r,i,n,a,o,c=or(this._milliseconds)/1e3,l=or(this._days),h=or(this._months),u=this.asSeconds();return u?(t=ut(c/60),e=ut(t/60),c%=60,t%=60,s=ut(h/12),h%=12,r=c?c.toFixed(3).replace(/\.?0+$/,""):"",i=u<0?"-":"",n=cr(this._months)!==cr(u)?"-":"",a=cr(this._days)!==cr(u)?"-":"",o=cr(this._milliseconds)!==cr(u)?"-":"",i+"P"+(s?n+s+"Y":"")+(h?n+h+"M":"")+(l?a+l+"D":"")+(e||t||c?"T":"")+(e?o+e+"H":"")+(t?o+t+"M":"")+(c?o+r+"S":"")):"P0D"}var hr=Ye.prototype;return hr.isValid=function(){return this._isValid},hr.abs=function(){var t=this._data;return this._milliseconds=Os(this._milliseconds),this._days=Os(this._days),this._months=Os(this._months),t.milliseconds=Os(t.milliseconds),t.seconds=Os(t.seconds),t.minutes=Os(t.minutes),t.hours=Os(t.hours),t.months=Os(t.months),t.years=Os(t.years),this},hr.add=function(t,e){return Ds(this,t,e,1)},hr.subtract=function(t,e){return Ds(this,t,e,-1)},hr.as=function(t){if(!this.isValid())return NaN;var e,s,r=this._milliseconds;if("month"===(t=Y(t))||"quarter"===t||"year"===t)switch(e=this._days+r/864e5,s=this._months+Rs(e),t){case"month":return s;case"quarter":return s/3;case"year":return s/12}else switch(e=this._days+Math.round(js(this._months)),t){case"week":return e/7+r/6048e5;case"day":return e+r/864e5;case"hour":return 24*e+r/36e5;case"minute":return 1440*e+r/6e4;case"second":return 86400*e+r/1e3;case"millisecond":return Math.floor(864e5*e)+r;default:throw new Error("Unknown unit "+t)}},hr.asMilliseconds=Ys,hr.asSeconds=Us,hr.asMinutes=Hs,hr.asHours=Ws,hr.asDays=$s,hr.asWeeks=zs,hr.asMonths=Vs,hr.asQuarters=qs,hr.asYears=Ks,hr.valueOf=Js,hr._bubble=function(){var t,e,s,r,i,n=this._milliseconds,a=this._days,o=this._months,c=this._data;return n>=0&&a>=0&&o>=0||n<=0&&a<=0&&o<=0||(n+=864e5*Fs(js(o)+a),a=0,o=0),c.milliseconds=n%1e3,t=ut(n/1e3),c.seconds=t%60,e=ut(t/60),c.minutes=e%60,s=ut(e/60),c.hours=s%24,a+=ut(s/24),o+=i=ut(Rs(a)),a-=Fs(js(i)),r=ut(o/12),o%=12,c.days=a,c.months=o,c.years=r,this},hr.clone=function(){return Xe(this)},hr.get=function(t){return t=Y(t),this.isValid()?this[t+"s"]():NaN},hr.milliseconds=Xs,hr.seconds=Zs,hr.minutes=Qs,hr.hours=tr,hr.days=er,hr.weeks=function(){return ut(this.days()/7)},hr.months=sr,hr.years=rr,hr.humanize=function(t,e){if(!this.isValid())return this.localeData().invalidDate();var s,r,i=!1,n=nr;return"object"==typeof t&&(e=t,t=!1),"boolean"==typeof t&&(i=t),"object"==typeof e&&(n=Object.assign({},nr,e),null!=e.s&&null==e.ss&&(n.ss=e.s-1)),r=function(t,e,s,r){var i=Xe(t).abs(),n=ir(i.as("s")),a=ir(i.as("m")),o=ir(i.as("h")),c=ir(i.as("d")),l=ir(i.as("M")),h=ir(i.as("w")),u=ir(i.as("y")),p=n<=s.ss&&["s",n]||n<s.s&&["ss",n]||a<=1&&["m"]||a<s.m&&["mm",a]||o<=1&&["h"]||o<s.h&&["hh",o]||c<=1&&["d"]||c<s.d&&["dd",c];return null!=s.w&&(p=p||h<=1&&["w"]||h<s.w&&["ww",h]),(p=p||l<=1&&["M"]||l<s.M&&["MM",l]||u<=1&&["y"]||["yy",u])[2]=e,p[3]=+t>0,p[4]=r,ar.apply(null,p)}(this,!i,n,s=this.localeData()),i&&(r=s.pastFuture(+this,r)),s.postformat(r)},hr.toISOString=lr,hr.toString=lr,hr.toJSON=lr,hr.locale=os,hr.localeData=ls,hr.toIsoString=S("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",lr),hr.lang=cs,F("X",0,0,"unix"),F("x",0,0,"valueOf"),ct("x",st),ct("X",/[+-]?\d+(\.\d{1,3})?/),ft("X",(function(t,e,s){s._d=new Date(1e3*parseFloat(t))})),ft("x",(function(t,e,s){s._d=new Date(pt(t))})),i.version="2.30.1",e=De,i.fn=Es,i.min=function(){return je("isBefore",[].slice.call(arguments,0))},i.max=function(){return je("isAfter",[].slice.call(arguments,0))},i.now=function(){return Date.now?Date.now():+new Date},i.utc=f,i.unix=function(t){return De(1e3*t)},i.months=function(t,e){return Ms(t,e,"months")},i.isDate=u,i.locale=me,i.invalid=g,i.duration=Xe,i.isMoment=P,i.weekdays=function(t,e,s){return Ls(t,e,s,"weekdays")},i.parseZone=function(){return De.apply(null,arguments).parseZone()},i.localeData=ge,i.isDuration=Ue,i.monthsShort=function(t,e){return Ms(t,e,"monthsShort")},i.weekdaysMin=function(t,e,s){return Ls(t,e,s,"weekdaysMin")},i.defineLocale=ye,i.updateLocale=function(t,e){if(null!=e){var s,r,i=le;null!=he[t]&&null!=he[t].parentLocale?he[t].set(C(he[t]._config,e)):(null!=(r=fe(t))&&(i=r._config),e=C(i,e),null==r&&(e.abbr=t),(s=new N(e)).parentLocale=he[t],he[t]=s),me(t)}else null!=he[t]&&(null!=he[t].parentLocale?(he[t]=he[t].parentLocale,t===me()&&me(t)):null!=he[t]&&delete he[t]);return he[t]},i.locales=function(){return A(he)},i.weekdaysShort=function(t,e,s){return Ls(t,e,s,"weekdaysShort")},i.normalizeUnits=Y,i.relativeTimeRounding=function(t){return void 0===t?ir:"function"==typeof t&&(ir=t,!0)},i.relativeTimeThreshold=function(t,e){return void 0!==nr[t]&&(void 0===e?nr[t]:(nr[t]=e,"s"===t&&(nr.ss=e-1),!0))},i.calendarFormat=function(t,e){var s=t.diff(e,"days",!0);return s<-6?"sameElse":s<-1?"lastWeek":s<0?"lastDay":s<1?"sameDay":s<2?"nextDay":s<7?"nextWeek":"sameElse"},i.prototype=Es,i.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},i}()},264:(t,e,s)=>{"use strict";function r(t){return t.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function i(t){return t&&t.sensitive?"":"i"}function n(t,e,s){return function(t,e,s){void 0===s&&(s={});for(var n=s.strict,a=void 0!==n&&n,o=s.start,c=void 0===o||o,l=s.end,h=void 0===l||l,u=s.encode,p=void 0===u?function(t){return t}:u,d=s.delimiter,f=void 0===d?"/#?":d,m=s.endsWith,y="[".concat(r(void 0===m?"":m),"]|$"),g="[".concat(r(f),"]"),x=c?"^":"",v=0,b=t;v<b.length;v++){var w=b[v];if("string"==typeof w)x+=r(p(w));else{var P=r(p(w.prefix)),T=r(p(w.suffix));if(w.pattern)if(e&&e.push(w),P||T)if("+"===w.modifier||"*"===w.modifier){var S="*"===w.modifier?"?":"";x+="(?:".concat(P,"((?:").concat(w.pattern,")(?:").concat(T).concat(P,"(?:").concat(w.pattern,"))*)").concat(T,")").concat(S)}else x+="(?:".concat(P,"(").concat(w.pattern,")").concat(T,")").concat(w.modifier);else{if("+"===w.modifier||"*"===w.modifier)throw new TypeError('Can not repeat "'.concat(w.name,'" without a prefix and suffix'));x+="(".concat(w.pattern,")").concat(w.modifier)}else x+="(?:".concat(P).concat(T,")").concat(w.modifier)}}if(h)a||(x+="".concat(g,"?")),x+=s.endsWith?"(?=".concat(y,")"):"$";else{var A=t[t.length-1],_="string"==typeof A?g.indexOf(A[A.length-1])>-1:void 0===A;a||(x+="(?:".concat(g,"(?=").concat(y,"))?")),_||(x+="(?=".concat(g,"|").concat(y,")"))}return new RegExp(x,i(s))}(function(t,e){void 0===e&&(e={});for(var s=function(t){for(var e=[],s=0;s<t.length;){var r=t[s];if("*"!==r&&"+"!==r&&"?"!==r)if("\\"!==r)if("{"!==r)if("}"!==r)if(":"!==r)if("("!==r)e.push({type:"CHAR",index:s,value:t[s++]});else{var i=1,n="";if("?"===t[o=s+1])throw new TypeError('Pattern cannot start with "?" at '.concat(o));for(;o<t.length;)if("\\"!==t[o]){if(")"===t[o]){if(0==--i){o++;break}}else if("("===t[o]&&(i++,"?"!==t[o+1]))throw new TypeError("Capturing groups are not allowed at ".concat(o));n+=t[o++]}else n+=t[o++]+t[o++];if(i)throw new TypeError("Unbalanced pattern at ".concat(s));if(!n)throw new TypeError("Missing pattern at ".concat(s));e.push({type:"PATTERN",index:s,value:n}),s=o}else{for(var a="",o=s+1;o<t.length;){var c=t.charCodeAt(o);if(!(c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||95===c))break;a+=t[o++]}if(!a)throw new TypeError("Missing parameter name at ".concat(s));e.push({type:"NAME",index:s,value:a}),s=o}else e.push({type:"CLOSE",index:s,value:t[s++]});else e.push({type:"OPEN",index:s,value:t[s++]});else e.push({type:"ESCAPED_CHAR",index:s++,value:t[s++]});else e.push({type:"MODIFIER",index:s,value:t[s++]})}return e.push({type:"END",index:s,value:""}),e}(t),i=e.prefixes,n=void 0===i?"./":i,a=e.delimiter,o=void 0===a?"/#?":a,c=[],l=0,h=0,u="",p=function(t){if(h<s.length&&s[h].type===t)return s[h++].value},d=function(t){var e=p(t);if(void 0!==e)return e;var r=s[h],i=r.type,n=r.index;throw new TypeError("Unexpected ".concat(i," at ").concat(n,", expected ").concat(t))},f=function(){for(var t,e="";t=p("CHAR")||p("ESCAPED_CHAR");)e+=t;return e},m=function(t){var e=c[c.length-1],s=t||(e&&"string"==typeof e?e:"");if(e&&!s)throw new TypeError('Must have text between two parameters, missing text after "'.concat(e.name,'"'));return!s||function(t){for(var e=0,s=o;e<s.length;e++){var r=s[e];if(t.indexOf(r)>-1)return!0}return!1}(s)?"[^".concat(r(o),"]+?"):"(?:(?!".concat(r(s),")[^").concat(r(o),"])+?")};h<s.length;){var y=p("CHAR"),g=p("NAME"),x=p("PATTERN");if(g||x){var v=y||"";-1===n.indexOf(v)&&(u+=v,v=""),u&&(c.push(u),u=""),c.push({name:g||l++,prefix:v,suffix:"",pattern:x||m(v),modifier:p("MODIFIER")||""})}else{var b=y||p("ESCAPED_CHAR");if(b)u+=b;else if(u&&(c.push(u),u=""),p("OPEN")){v=f();var w=p("NAME")||"",P=p("PATTERN")||"",T=f();d("CLOSE"),c.push({name:w||(P?l++:""),pattern:w&&!P?m(v):P,prefix:v,suffix:T,modifier:p("MODIFIER")||""})}else d("END")}}return c}(t,s),e,s)}function a(t,e,s){return t instanceof RegExp?function(t,e){if(!e)return t;for(var s=/\((?:\?<(.*?)>)?(?!\?)/g,r=0,i=s.exec(t.source);i;)e.push({name:i[1]||r++,prefix:"",suffix:"",modifier:"",pattern:""}),i=s.exec(t.source);return t}(t,e):Array.isArray(t)?function(t,e,s){var r=t.map((function(t){return a(t,e,s).source}));return new RegExp("(?:".concat(r.join("|"),")"),i(s))}(t,e,s):n(t,e,s)}s.d(e,{MM:()=>a})},6773:(t,e)=>{"use strict";function s(t,e){if(null==t)return{};var s={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.includes(r))continue;s[r]=t[r]}return s}Object.defineProperty(e,"__esModule",{value:!0});class r{constructor(t,e,s){this.line=void 0,this.column=void 0,this.index=void 0,this.line=t,this.column=e,this.index=s}}class i{constructor(t,e){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=t,this.end=e}}function n(t,e){const{line:s,column:i,index:n}=t;return new r(s,i+e,n+e)}const a="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED";var o={ImportMetaOutsideModule:{message:"import.meta may appear only with 'sourceType: \"module\"'",code:a},ImportOutsideModule:{message:"'import' and 'export' may appear only with 'sourceType: \"module\"'",code:a}};const c={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},l=t=>"UpdateExpression"===t.type?c.UpdateExpression[`${t.prefix}`]:c[t.type];var h={AccessorIsGenerator:({kind:t})=>`A ${t}ter cannot be a generator.`,ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncFunction:"'await' is only allowed within async functions.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:({kind:t})=>`Missing initializer in ${t} declaration.`,DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:({exportName:t})=>`\`${t}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",DynamicImportPhaseRequiresImportExpressions:({phase:t})=>`'import.${t}(...)' can only be parsed when using the 'createImportExpressions' option.`,ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:({localName:t,exportName:e})=>`A string literal cannot be used as an exported binding without \`from\`.\n- Did you mean \`export { '${t}' as '${e}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:t})=>`'${"ForInStatement"===t?"for-in":"for-of"}' loop variable declaration may not have an initializer.`,ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:({type:t})=>`Unsyntactic ${"BreakStatement"===t?"break":"continue"}.`,IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportAttributesUseAssert:"The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You can enable the `deprecatedAssertSyntax: true` option in the import attributes plugin to suppress this error.",ImportBindingIsString:({importName:t})=>`A string literal cannot be used as an imported binding.\n- Did you mean \`import { "${t}" as foo }\`?`,ImportCallArgumentTrailingComma:"Trailing comma is disallowed inside import(...) arguments.",ImportCallArity:({maxArgumentCount:t})=>`\`import()\` requires exactly ${1===t?"one argument":"one or two arguments"}.`,ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:({radix:t})=>`Expected number in radix ${t}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:t})=>`Escape sequence in keyword ${t}.`,InvalidIdentifier:({identifierName:t})=>`Invalid identifier ${t}.`,InvalidLhs:({ancestor:t})=>`Invalid left-hand side in ${l(t)}.`,InvalidLhsBinding:({ancestor:t})=>`Binding invalid left-hand side in ${l(t)}.`,InvalidLhsOptionalChaining:({ancestor:t})=>`Invalid optional chaining in the left-hand side of ${l(t)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:t})=>`Unexpected character '${t}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:t})=>`Private name #${t} is not defined.`,InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:({labelName:t})=>`Label '${t}' is already declared.`,LetInLexicalBinding:"'let' is disallowed as a lexically bound name.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:({missingPlugin:t})=>`This experimental syntax requires enabling the parser plugin: ${t.map((t=>JSON.stringify(t))).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:t})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${t.map((t=>JSON.stringify(t))).join(", ")}.`,MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:({key:t})=>`Duplicate key "${t}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:t})=>`An export name cannot include a lone surrogate, found '\\u${t.toString(16)}'.`,ModuleExportUndefined:({localName:t})=>`Export '${t}' is not defined.`,MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:({identifierName:t})=>`Private names are only allowed in property accesses (\`obj.#${t}\`) or in \`in\` expressions (\`#${t} in obj\`).`,PrivateNameRedeclaration:({identifierName:t})=>`Duplicate private name #${t}.`,RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",SourcePhaseImportRequiresDefault:'Only `import source x from "./module"` is valid.',StaticPrototype:"Classes may not have static property named prototype.",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:({keyword:t})=>`Unexpected keyword '${t}'.`,UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:({reservedWord:t})=>`Unexpected reserved word '${t}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected:t,unexpected:e})=>`Unexpected token${e?` '${e}'.`:""}${t?`, expected "${t}"`:""}`,UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script`.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:({target:t,onlyValidPropertyName:e})=>`The only valid meta property for ${t} is ${t}.${e}.`,UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationExport:"Using declaration cannot be exported.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:({identifierName:t})=>`Identifier '${t}' has already been declared.`,YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."};const u=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]);var p={PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:({token:t})=>`Invalid topic token ${t}. In order to use ${t} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${t}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type:t})=>`Hack-style pipe body cannot be an unparenthesized ${l({type:t})}; please wrap it in parentheses.`,PipelineBodyNoArrow:'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.',PipelineBodySequenceExpression:"Pipeline body may not be a comma-separated sequence expression.",PipelineHeadSequenceExpression:"Pipeline head should not be a comma-separated sequence expression.",PipelineTopicUnused:"Pipeline is in topic style but does not use topic reference.",PrimaryTopicNotAllowed:"Topic reference was used in a lexical context without topic binding.",PrimaryTopicRequiresSmartPipeline:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'};const d=["message"];function f(t,e,s){Object.defineProperty(t,e,{enumerable:!1,configurable:!0,value:s})}function m({toMessage:t,code:e,reasonCode:s,syntaxPlugin:i}){const n="MissingPlugin"===s||"MissingOneOfPlugins"===s;{const t={AccessorCannotDeclareThisParameter:"AccesorCannotDeclareThisParameter",AccessorCannotHaveTypeParameters:"AccesorCannotHaveTypeParameters",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference",SetAccessorCannotHaveOptionalParameter:"SetAccesorCannotHaveOptionalParameter",SetAccessorCannotHaveRestParameter:"SetAccesorCannotHaveRestParameter",SetAccessorCannotHaveReturnType:"SetAccesorCannotHaveReturnType"};t[s]&&(s=t[s])}return function a(o,c){const l=new SyntaxError;return l.code=e,l.reasonCode=s,l.loc=o,l.pos=o.index,l.syntaxPlugin=i,n&&(l.missingPlugin=c.missingPlugin),f(l,"clone",(function(t={}){var e;const{line:s,column:i,index:n}=null!=(e=t.loc)?e:o;return a(new r(s,i,n),Object.assign({},c,t.details))})),f(l,"details",c),Object.defineProperty(l,"message",{configurable:!0,get(){const e=`${t(c)} (${o.line}:${o.column})`;return this.message=e,e},set(t){Object.defineProperty(this,"message",{value:t,writable:!0})}}),l}}function y(t,e){if(Array.isArray(t))return e=>y(e,t[0]);const r={};for(const i of Object.keys(t)){const n=t[i],a="string"==typeof n?{message:()=>n}:"function"==typeof n?{message:n}:n,{message:o}=a,c=s(a,d),l="string"==typeof o?()=>o:o;r[i]=m(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:i,toMessage:l},e?{syntaxPlugin:e}:{},c))}return r}const g=Object.assign({},y(o),y(h),y({StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:({referenceName:t})=>`Assigning to '${t}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:t})=>`Binding '${t}' in strict mode.`,StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."}),y`pipelineOperator`(p)),{defineProperty:x}=Object,v=(t,e)=>{t&&x(t,e,{enumerable:!1,value:t[e]})};function b(t){return v(t.loc.start,"index"),v(t.loc.end,"index"),t}class w{constructor(t,e){this.token=void 0,this.preserveSpace=void 0,this.token=t,this.preserveSpace=!!e}}const P={brace:new w("{"),j_oTag:new w("<tag"),j_cTag:new w("</tag"),j_expr:new w("<tag>...</tag>",!0)};P.template=new w("`",!0);const T=!0,S=!0,A=!0,_=!0,k=!0;class E{constructor(t,e={}){this.label=void 0,this.keyword=void 0,this.beforeExpr=void 0,this.startsExpr=void 0,this.rightAssociative=void 0,this.isLoop=void 0,this.isAssign=void 0,this.prefix=void 0,this.postfix=void 0,this.binop=void 0,this.label=t,this.keyword=e.keyword,this.beforeExpr=!!e.beforeExpr,this.startsExpr=!!e.startsExpr,this.rightAssociative=!!e.rightAssociative,this.isLoop=!!e.isLoop,this.isAssign=!!e.isAssign,this.prefix=!!e.prefix,this.postfix=!!e.postfix,this.binop=null!=e.binop?e.binop:null,this.updateContext=null}}const C=new Map;function N(t,e={}){e.keyword=t;const s=B(t,e);return C.set(t,s),s}function I(t,e){return B(t,{beforeExpr:T,binop:e})}let M=-1;const L=[],O=[],D=[],F=[],R=[],j=[];function B(t,e={}){var s,r,i,n;return++M,O.push(t),D.push(null!=(s=e.binop)?s:-1),F.push(null!=(r=e.beforeExpr)&&r),R.push(null!=(i=e.startsExpr)&&i),j.push(null!=(n=e.prefix)&&n),L.push(new E(t,e)),M}function Y(t,e={}){var s,r,i,n;return++M,C.set(t,M),O.push(t),D.push(null!=(s=e.binop)?s:-1),F.push(null!=(r=e.beforeExpr)&&r),R.push(null!=(i=e.startsExpr)&&i),j.push(null!=(n=e.prefix)&&n),L.push(new E("name",e)),M}const U={bracketL:B("[",{beforeExpr:T,startsExpr:S}),bracketHashL:B("#[",{beforeExpr:T,startsExpr:S}),bracketBarL:B("[|",{beforeExpr:T,startsExpr:S}),bracketR:B("]"),bracketBarR:B("|]"),braceL:B("{",{beforeExpr:T,startsExpr:S}),braceBarL:B("{|",{beforeExpr:T,startsExpr:S}),braceHashL:B("#{",{beforeExpr:T,startsExpr:S}),braceR:B("}"),braceBarR:B("|}"),parenL:B("(",{beforeExpr:T,startsExpr:S}),parenR:B(")"),comma:B(",",{beforeExpr:T}),semi:B(";",{beforeExpr:T}),colon:B(":",{beforeExpr:T}),doubleColon:B("::",{beforeExpr:T}),dot:B("."),question:B("?",{beforeExpr:T}),questionDot:B("?."),arrow:B("=>",{beforeExpr:T}),template:B("template"),ellipsis:B("...",{beforeExpr:T}),backQuote:B("`",{startsExpr:S}),dollarBraceL:B("${",{beforeExpr:T,startsExpr:S}),templateTail:B("...`",{startsExpr:S}),templateNonTail:B("...${",{beforeExpr:T,startsExpr:S}),at:B("@"),hash:B("#",{startsExpr:S}),interpreterDirective:B("#!..."),eq:B("=",{beforeExpr:T,isAssign:_}),assign:B("_=",{beforeExpr:T,isAssign:_}),slashAssign:B("_=",{beforeExpr:T,isAssign:_}),xorAssign:B("_=",{beforeExpr:T,isAssign:_}),moduloAssign:B("_=",{beforeExpr:T,isAssign:_}),incDec:B("++/--",{prefix:k,postfix:!0,startsExpr:S}),bang:B("!",{beforeExpr:T,prefix:k,startsExpr:S}),tilde:B("~",{beforeExpr:T,prefix:k,startsExpr:S}),doubleCaret:B("^^",{startsExpr:S}),doubleAt:B("@@",{startsExpr:S}),pipeline:I("|>",0),nullishCoalescing:I("??",1),logicalOR:I("||",1),logicalAND:I("&&",2),bitwiseOR:I("|",3),bitwiseXOR:I("^",4),bitwiseAND:I("&",5),equality:I("==/!=/===/!==",6),lt:I("</>/<=/>=",7),gt:I("</>/<=/>=",7),relational:I("</>/<=/>=",7),bitShift:I("<</>>/>>>",8),bitShiftL:I("<</>>/>>>",8),bitShiftR:I("<</>>/>>>",8),plusMin:B("+/-",{beforeExpr:T,binop:9,prefix:k,startsExpr:S}),modulo:B("%",{binop:10,startsExpr:S}),star:B("*",{binop:10}),slash:I("/",10),exponent:B("**",{beforeExpr:T,binop:11,rightAssociative:!0}),_in:N("in",{beforeExpr:T,binop:7}),_instanceof:N("instanceof",{beforeExpr:T,binop:7}),_break:N("break"),_case:N("case",{beforeExpr:T}),_catch:N("catch"),_continue:N("continue"),_debugger:N("debugger"),_default:N("default",{beforeExpr:T}),_else:N("else",{beforeExpr:T}),_finally:N("finally"),_function:N("function",{startsExpr:S}),_if:N("if"),_return:N("return",{beforeExpr:T}),_switch:N("switch"),_throw:N("throw",{beforeExpr:T,prefix:k,startsExpr:S}),_try:N("try"),_var:N("var"),_const:N("const"),_with:N("with"),_new:N("new",{beforeExpr:T,startsExpr:S}),_this:N("this",{startsExpr:S}),_super:N("super",{startsExpr:S}),_class:N("class",{startsExpr:S}),_extends:N("extends",{beforeExpr:T}),_export:N("export"),_import:N("import",{startsExpr:S}),_null:N("null",{startsExpr:S}),_true:N("true",{startsExpr:S}),_false:N("false",{startsExpr:S}),_typeof:N("typeof",{beforeExpr:T,prefix:k,startsExpr:S}),_void:N("void",{beforeExpr:T,prefix:k,startsExpr:S}),_delete:N("delete",{beforeExpr:T,prefix:k,startsExpr:S}),_do:N("do",{isLoop:A,beforeExpr:T}),_for:N("for",{isLoop:A}),_while:N("while",{isLoop:A}),_as:Y("as",{startsExpr:S}),_assert:Y("assert",{startsExpr:S}),_async:Y("async",{startsExpr:S}),_await:Y("await",{startsExpr:S}),_defer:Y("defer",{startsExpr:S}),_from:Y("from",{startsExpr:S}),_get:Y("get",{startsExpr:S}),_let:Y("let",{startsExpr:S}),_meta:Y("meta",{startsExpr:S}),_of:Y("of",{startsExpr:S}),_sent:Y("sent",{startsExpr:S}),_set:Y("set",{startsExpr:S}),_source:Y("source",{startsExpr:S}),_static:Y("static",{startsExpr:S}),_using:Y("using",{startsExpr:S}),_yield:Y("yield",{startsExpr:S}),_asserts:Y("asserts",{startsExpr:S}),_checks:Y("checks",{startsExpr:S}),_exports:Y("exports",{startsExpr:S}),_global:Y("global",{startsExpr:S}),_implements:Y("implements",{startsExpr:S}),_intrinsic:Y("intrinsic",{startsExpr:S}),_infer:Y("infer",{startsExpr:S}),_is:Y("is",{startsExpr:S}),_mixins:Y("mixins",{startsExpr:S}),_proto:Y("proto",{startsExpr:S}),_require:Y("require",{startsExpr:S}),_satisfies:Y("satisfies",{startsExpr:S}),_keyof:Y("keyof",{startsExpr:S}),_readonly:Y("readonly",{startsExpr:S}),_unique:Y("unique",{startsExpr:S}),_abstract:Y("abstract",{startsExpr:S}),_declare:Y("declare",{startsExpr:S}),_enum:Y("enum",{startsExpr:S}),_module:Y("module",{startsExpr:S}),_namespace:Y("namespace",{startsExpr:S}),_interface:Y("interface",{startsExpr:S}),_type:Y("type",{startsExpr:S}),_opaque:Y("opaque",{startsExpr:S}),name:B("name",{startsExpr:S}),string:B("string",{startsExpr:S}),num:B("num",{startsExpr:S}),bigint:B("bigint",{startsExpr:S}),decimal:B("decimal",{startsExpr:S}),regexp:B("regexp",{startsExpr:S}),privateName:B("#name",{startsExpr:S}),eof:B("eof"),jsxName:B("jsxName"),jsxText:B("jsxText",{beforeExpr:!0}),jsxTagStart:B("jsxTagStart",{startsExpr:!0}),jsxTagEnd:B("jsxTagEnd"),placeholder:B("%%",{startsExpr:!0})};function H(t){return t>=93&&t<=132}function W(t){return t>=58&&t<=132}function $(t){return t>=58&&t<=136}function z(t){return R[t]}function V(t){return t>=129&&t<=131}function q(t){return t>=58&&t<=92}function K(t){return O[t]}function J(t){return D[t]}function G(t){return t>=24&&t<=25}function X(t){return L[t]}L[8].updateContext=t=>{t.pop()},L[5].updateContext=L[7].updateContext=L[23].updateContext=t=>{t.push(P.brace)},L[22].updateContext=t=>{t[t.length-1]===P.template?t.pop():t.push(P.template)},L[142].updateContext=t=>{t.push(P.j_expr,P.j_oTag)};let Z="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",Q="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";const tt=new RegExp("["+Z+"]"),et=new RegExp("["+Z+Q+"]");Z=Q=null;const st=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],rt=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239];function it(t,e){let s=65536;for(let r=0,i=e.length;r<i;r+=2){if(s+=e[r],s>t)return!1;if(s+=e[r+1],s>=t)return!0}return!1}function nt(t){return t<65?36===t:t<=90||(t<97?95===t:t<=122||(t<=65535?t>=170&&tt.test(String.fromCharCode(t)):it(t,st)))}function at(t){return t<48?36===t:t<58||!(t<65)&&(t<=90||(t<97?95===t:t<=122||(t<=65535?t>=170&&et.test(String.fromCharCode(t)):it(t,st)||it(t,rt))))}const ot=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"]),ct=new Set(["implements","interface","let","package","private","protected","public","static","yield"]),lt=new Set(["eval","arguments"]);function ht(t,e){return e&&"await"===t||"enum"===t}function ut(t,e){return ht(t,e)||ct.has(t)}function pt(t){return lt.has(t)}function dt(t,e){return ut(t,e)||pt(t)}const ft=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);class mt{constructor(t){this.flags=0,this.names=new Map,this.firstLexicalName="",this.flags=t}}class yt{constructor(t,e){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=t,this.inModule=e}get inTopLevel(){return(1&this.currentScope().flags)>0}get inFunction(){return(2&this.currentVarScopeFlags())>0}get allowSuper(){return(16&this.currentThisScopeFlags())>0}get allowDirectSuper(){return(32&this.currentThisScopeFlags())>0}get inClass(){return(64&this.currentThisScopeFlags())>0}get inClassAndNotInNonArrowFunction(){const t=this.currentThisScopeFlags();return(64&t)>0&&0==(2&t)}get inStaticBlock(){for(let t=this.scopeStack.length-1;;t--){const{flags:e}=this.scopeStack[t];if(128&e)return!0;if(451&e)return!1}}get inNonArrowFunction(){return(2&this.currentThisScopeFlags())>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(t){return new mt(t)}enter(t){this.scopeStack.push(this.createScope(t))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(t){return!!(130&t.flags||!this.parser.inModule&&1&t.flags)}declareName(t,e,s){let r=this.currentScope();if(8&e||16&e){this.checkRedeclarationInScope(r,t,e,s);let i=r.names.get(t)||0;16&e?i|=4:(r.firstLexicalName||(r.firstLexicalName=t),i|=2),r.names.set(t,i),8&e&&this.maybeExportDefined(r,t)}else if(4&e)for(let i=this.scopeStack.length-1;i>=0&&(r=this.scopeStack[i],this.checkRedeclarationInScope(r,t,e,s),r.names.set(t,1|(r.names.get(t)||0)),this.maybeExportDefined(r,t),!(387&r.flags));--i);this.parser.inModule&&1&r.flags&&this.undefinedExports.delete(t)}maybeExportDefined(t,e){this.parser.inModule&&1&t.flags&&this.undefinedExports.delete(e)}checkRedeclarationInScope(t,e,s,r){this.isRedeclaredInScope(t,e,s)&&this.parser.raise(g.VarRedeclaration,r,{identifierName:e})}isRedeclaredInScope(t,e,s){if(!(1&s))return!1;if(8&s)return t.names.has(e);const r=t.names.get(e);return 16&s?(2&r)>0||!this.treatFunctionsAsVarInScope(t)&&(1&r)>0:(2&r)>0&&!(8&t.flags&&t.firstLexicalName===e)||!this.treatFunctionsAsVarInScope(t)&&(4&r)>0}checkLocalExport(t){const{name:e}=t;this.scopeStack[0].names.has(e)||this.undefinedExports.set(e,t.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let t=this.scopeStack.length-1;;t--){const{flags:e}=this.scopeStack[t];if(387&e)return e}}currentThisScopeFlags(){for(let t=this.scopeStack.length-1;;t--){const{flags:e}=this.scopeStack[t];if(451&e&&!(4&e))return e}}}class gt extends mt{constructor(...t){super(...t),this.declareFunctions=new Set}}class xt extends yt{createScope(t){return new gt(t)}declareName(t,e,s){const r=this.currentScope();if(2048&e)return this.checkRedeclarationInScope(r,t,e,s),this.maybeExportDefined(r,t),void r.declareFunctions.add(t);super.declareName(t,e,s)}isRedeclaredInScope(t,e,s){if(super.isRedeclaredInScope(t,e,s))return!0;if(2048&s&&!t.declareFunctions.has(e)){const s=t.names.get(e);return(4&s)>0||(2&s)>0}return!1}checkLocalExport(t){this.scopeStack[0].declareFunctions.has(t.name)||super.checkLocalExport(t)}}class vt{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}hasPlugin(t){if("string"==typeof t)return this.plugins.has(t);{const[e,s]=t;if(!this.hasPlugin(e))return!1;const r=this.plugins.get(e);for(const t of Object.keys(s))if((null==r?void 0:r[t])!==s[t])return!1;return!0}}getPluginOption(t,e){var s;return null==(s=this.plugins.get(t))?void 0:s[e]}}function bt(t,e){void 0===t.trailingComments?t.trailingComments=e:t.trailingComments.unshift(...e)}function wt(t,e){void 0===t.innerComments?t.innerComments=e:t.innerComments.unshift(...e)}function Pt(t,e,s){let r=null,i=e.length;for(;null===r&&i>0;)r=e[--i];null===r||r.start>s.start?wt(t,s.comments):bt(r,s.comments)}class Tt extends vt{addComment(t){this.filename&&(t.loc.filename=this.filename);const{commentsLen:e}=this.state;this.comments.length!==e&&(this.comments.length=e),this.comments.push(t),this.state.commentsLen++}processComment(t){const{commentStack:e}=this.state,s=e.length;if(0===s)return;let r=s-1;const i=e[r];i.start===t.end&&(i.leadingNode=t,r--);const{start:n}=t;for(;r>=0;r--){const s=e[r],i=s.end;if(!(i>n)){i===n&&(s.trailingNode=t);break}s.containingNode=t,this.finalizeComment(s),e.splice(r,1)}}finalizeComment(t){const{comments:e}=t;if(null!==t.leadingNode||null!==t.trailingNode)null!==t.leadingNode&&bt(t.leadingNode,e),null!==t.trailingNode&&function(t,e){void 0===t.leadingComments?t.leadingComments=e:t.leadingComments.unshift(...e)}(t.trailingNode,e);else{const{containingNode:s,start:r}=t;if(44===this.input.charCodeAt(r-1))switch(s.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":Pt(s,s.properties,t);break;case"CallExpression":case"OptionalCallExpression":Pt(s,s.arguments,t);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":Pt(s,s.params,t);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":Pt(s,s.elements,t);break;case"ExportNamedDeclaration":case"ImportDeclaration":Pt(s,s.specifiers,t);break;default:wt(s,e)}else wt(s,e)}}finalizeRemainingComments(){const{commentStack:t}=this.state;for(let e=t.length-1;e>=0;e--)this.finalizeComment(t[e]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(t){const{commentStack:e}=this.state,{length:s}=e;if(0===s)return;const r=e[s-1];r.leadingNode===t&&(r.leadingNode=null)}resetPreviousIdentifierLeadingComments(t){const{commentStack:e}=this.state,{length:s}=e;0!==s&&(e[s-1].trailingNode===t?e[s-1].trailingNode=null:s>=2&&e[s-2].trailingNode===t&&(e[s-2].trailingNode=null))}takeSurroundingComments(t,e,s){const{commentStack:r}=this.state,i=r.length;if(0===i)return;let n=i-1;for(;n>=0;n--){const i=r[n],a=i.end;if(i.start===s)i.leadingNode=t;else if(a===e)i.trailingNode=t;else if(a<e)break}}}const St=new RegExp(/\r\n|[\r\n\u2028\u2029]/.source,"g");function At(t){switch(t){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}function _t(t,e,s){for(let r=e;r<s;r++)if(At(t.charCodeAt(r)))return!0;return!1}const kt=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Et=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g;function Ct(t){switch(t){case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8239:case 8287:case 12288:case 65279:return!0;default:return!1}}class Nt{constructor(){this.flags=1024,this.curLine=void 0,this.lineStart=void 0,this.startLoc=void 0,this.endLoc=void 0,this.errors=[],this.potentialArrowAt=-1,this.noArrowAt=[],this.noArrowParamsConversionAt=[],this.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null},this.labels=[],this.commentsLen=0,this.commentStack=[],this.pos=0,this.type=139,this.value=null,this.start=0,this.end=0,this.lastTokEndLoc=null,this.lastTokStartLoc=null,this.context=[P.brace],this.firstInvalidTemplateEscapePos=null,this.strictErrors=new Map,this.tokensLength=0}get strict(){return(1&this.flags)>0}set strict(t){t?this.flags|=1:this.flags&=-2}init({strictMode:t,sourceType:e,startLine:s,startColumn:i}){this.strict=!1!==t&&(!0===t||"module"===e),this.curLine=s,this.lineStart=-i,this.startLoc=this.endLoc=new r(s,i,0)}get maybeInArrowParameters(){return(2&this.flags)>0}set maybeInArrowParameters(t){t?this.flags|=2:this.flags&=-3}get inType(){return(4&this.flags)>0}set inType(t){t?this.flags|=4:this.flags&=-5}get noAnonFunctionType(){return(8&this.flags)>0}set noAnonFunctionType(t){t?this.flags|=8:this.flags&=-9}get hasFlowComment(){return(16&this.flags)>0}set hasFlowComment(t){t?this.flags|=16:this.flags&=-17}get isAmbientContext(){return(32&this.flags)>0}set isAmbientContext(t){t?this.flags|=32:this.flags&=-33}get inAbstractClass(){return(64&this.flags)>0}set inAbstractClass(t){t?this.flags|=64:this.flags&=-65}get inDisallowConditionalTypesContext(){return(128&this.flags)>0}set inDisallowConditionalTypesContext(t){t?this.flags|=128:this.flags&=-129}get soloAwait(){return(256&this.flags)>0}set soloAwait(t){t?this.flags|=256:this.flags&=-257}get inFSharpPipelineDirectBody(){return(512&this.flags)>0}set inFSharpPipelineDirectBody(t){t?this.flags|=512:this.flags&=-513}get canStartJSXElement(){return(1024&this.flags)>0}set canStartJSXElement(t){t?this.flags|=1024:this.flags&=-1025}get containsEsc(){return(2048&this.flags)>0}set containsEsc(t){t?this.flags|=2048:this.flags&=-2049}get hasTopLevelAwait(){return(4096&this.flags)>0}set hasTopLevelAwait(t){t?this.flags|=4096:this.flags&=-4097}curPosition(){return new r(this.curLine,this.pos-this.lineStart,this.pos)}clone(){const t=new Nt;return t.flags=this.flags,t.curLine=this.curLine,t.lineStart=this.lineStart,t.startLoc=this.startLoc,t.endLoc=this.endLoc,t.errors=this.errors.slice(),t.potentialArrowAt=this.potentialArrowAt,t.noArrowAt=this.noArrowAt.slice(),t.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),t.topicContext=this.topicContext,t.labels=this.labels.slice(),t.commentsLen=this.commentsLen,t.commentStack=this.commentStack.slice(),t.pos=this.pos,t.type=this.type,t.value=this.value,t.start=this.start,t.end=this.end,t.lastTokEndLoc=this.lastTokEndLoc,t.lastTokStartLoc=this.lastTokStartLoc,t.context=this.context.slice(),t.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,t.strictErrors=this.strictErrors,t.tokensLength=this.tokensLength,t}}var It=function(t){return t>=48&&t<=57};const Mt={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},Lt={bin:t=>48===t||49===t,oct:t=>t>=48&&t<=55,dec:t=>t>=48&&t<=57,hex:t=>t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102};function Ot(t,e,s,r,i,n){const a=s,o=r,c=i;let l="",h=null,u=s;const{length:p}=e;for(;;){if(s>=p){n.unterminated(a,o,c),l+=e.slice(u,s);break}const d=e.charCodeAt(s);if(Dt(t,d,e,s)){l+=e.slice(u,s);break}if(92===d){l+=e.slice(u,s);const a=Ft(e,s,r,i,"template"===t,n);null!==a.ch||h?l+=a.ch:h={pos:s,lineStart:r,curLine:i},({pos:s,lineStart:r,curLine:i}=a),u=s}else 8232===d||8233===d?(++i,r=++s):10===d||13===d?"template"===t?(l+=e.slice(u,s)+"\n",++s,13===d&&10===e.charCodeAt(s)&&++s,++i,u=r=s):n.unterminated(a,o,c):++s}return{pos:s,str:l,firstInvalidLoc:h,lineStart:r,curLine:i,containsInvalid:!!h}}function Dt(t,e,s,r){return"template"===t?96===e||36===e&&123===s.charCodeAt(r+1):e===("double"===t?34:39)}function Ft(t,e,s,r,i,n){const a=!i;e++;const o=t=>({pos:e,ch:t,lineStart:s,curLine:r}),c=t.charCodeAt(e++);switch(c){case 110:return o("\n");case 114:return o("\r");case 120:{let i;return({code:i,pos:e}=Rt(t,e,s,r,2,!1,a,n)),o(null===i?null:String.fromCharCode(i))}case 117:{let i;return({code:i,pos:e}=Bt(t,e,s,r,a,n)),o(null===i?null:String.fromCodePoint(i))}case 116:return o("\t");case 98:return o("\b");case 118:return o("\v");case 102:return o("\f");case 13:10===t.charCodeAt(e)&&++e;case 10:s=e,++r;case 8232:case 8233:return o("");case 56:case 57:if(i)return o(null);n.strictNumericEscape(e-1,s,r);default:if(c>=48&&c<=55){const a=e-1;let c=/^[0-7]+/.exec(t.slice(a,e+2))[0],l=parseInt(c,8);l>255&&(c=c.slice(0,-1),l=parseInt(c,8)),e+=c.length-1;const h=t.charCodeAt(e);if("0"!==c||56===h||57===h){if(i)return o(null);n.strictNumericEscape(a,s,r)}return o(String.fromCharCode(l))}return o(String.fromCharCode(c))}}function Rt(t,e,s,r,i,n,a,o){const c=e;let l;return({n:l,pos:e}=jt(t,e,s,r,16,i,n,!1,o,!a)),null===l&&(a?o.invalidEscapeSequence(c,s,r):e=c-1),{code:l,pos:e}}function jt(t,e,s,r,i,n,a,o,c,l){const h=e,u=16===i?Mt.hex:Mt.decBinOct,p=16===i?Lt.hex:10===i?Lt.dec:8===i?Lt.oct:Lt.bin;let d=!1,f=0;for(let h=0,m=null==n?1/0:n;h<m;++h){const n=t.charCodeAt(e);let h;if(95!==n||"bail"===o){if(h=n>=97?n-97+10:n>=65?n-65+10:It(n)?n-48:1/0,h>=i){if(h<=9&&l)return{n:null,pos:e};if(h<=9&&c.invalidDigit(e,s,r,i))h=0;else{if(!a)break;h=0,d=!0}}++e,f=f*i+h}else{const i=t.charCodeAt(e-1),n=t.charCodeAt(e+1);if(o){if(Number.isNaN(n)||!p(n)||u.has(i)||u.has(n)){if(l)return{n:null,pos:e};c.unexpectedNumericSeparator(e,s,r)}}else{if(l)return{n:null,pos:e};c.numericSeparatorInEscapeSequence(e,s,r)}++e}}return e===h||null!=n&&e-h!==n||d?{n:null,pos:e}:{n:f,pos:e}}function Bt(t,e,s,r,i,n){let a;if(123===t.charCodeAt(e)){if(++e,({code:a,pos:e}=Rt(t,e,s,r,t.indexOf("}",e)-e,!0,i,n)),++e,null!==a&&a>1114111){if(!i)return{code:null,pos:e};n.invalidCodePoint(e,s,r)}}else({code:a,pos:e}=Rt(t,e,s,r,4,!1,i,n));return{code:a,pos:e}}function Yt(t,e,s){return new r(s,t-e,t)}const Ut=new Set([103,109,115,105,121,117,100,118]);class Ht{constructor(t){this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,this.loc=new i(t.startLoc,t.endLoc)}}class Wt extends Tt{constructor(t,e){super(),this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(t,e,s,r)=>!!this.options.errorRecovery&&(this.raise(g.InvalidDigit,Yt(t,e,s),{radix:r}),!0),numericSeparatorInEscapeSequence:this.errorBuilder(g.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(g.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(g.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(g.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(t,e,s)=>{this.recordStrictModeErrors(g.StrictNumericEscape,Yt(t,e,s))},unterminated:(t,e,s)=>{throw this.raise(g.UnterminatedString,Yt(t-1,e,s))}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(g.StrictNumericEscape),unterminated:(t,e,s)=>{throw this.raise(g.UnterminatedTemplate,Yt(t,e,s))}}),this.state=new Nt,this.state.init(t),this.input=e,this.length=e.length,this.comments=[],this.isLookahead=!1}pushToken(t){this.tokens.length=this.state.tokensLength,this.tokens.push(t),++this.state.tokensLength}next(){this.checkKeywordEscapes(),this.options.tokens&&this.pushToken(new Ht(this.state)),this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(t){return!!this.match(t)&&(this.next(),!0)}match(t){return this.state.type===t}createLookaheadState(t){return{pos:t.pos,value:null,type:t.type,start:t.start,end:t.end,context:[this.curContext()],inType:t.inType,startLoc:t.startLoc,lastTokEndLoc:t.lastTokEndLoc,curLine:t.curLine,lineStart:t.lineStart,curPosition:t.curPosition}}lookahead(){const t=this.state;this.state=this.createLookaheadState(t),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;const e=this.state;return this.state=t,e}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(t){return kt.lastIndex=t,kt.test(this.input)?kt.lastIndex:t}lookaheadCharCode(){return this.input.charCodeAt(this.nextTokenStart())}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(t){return Et.lastIndex=t,Et.test(this.input)?Et.lastIndex:t}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(t){let e=this.input.charCodeAt(t);if(55296==(64512&e)&&++t<this.input.length){const s=this.input.charCodeAt(t);56320==(64512&s)&&(e=65536+((1023&e)<<10)+(1023&s))}return e}setStrict(t){this.state.strict=t,t&&(this.state.strictErrors.forEach((([t,e])=>this.raise(t,e))),this.state.strictErrors.clear())}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){this.skipSpace(),this.state.start=this.state.pos,this.isLookahead||(this.state.startLoc=this.state.curPosition()),this.state.pos>=this.length?this.finishToken(139):this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(t){let e;this.isLookahead||(e=this.state.curPosition());const s=this.state.pos,r=this.input.indexOf(t,s+2);if(-1===r)throw this.raise(g.UnterminatedComment,this.state.curPosition());for(this.state.pos=r+t.length,St.lastIndex=s+2;St.test(this.input)&&St.lastIndex<=r;)++this.state.curLine,this.state.lineStart=St.lastIndex;if(this.isLookahead)return;const n={type:"CommentBlock",value:this.input.slice(s+2,r),start:s,end:r+t.length,loc:new i(e,this.state.curPosition())};return this.options.tokens&&this.pushToken(n),n}skipLineComment(t){const e=this.state.pos;let s;this.isLookahead||(s=this.state.curPosition());let r=this.input.charCodeAt(this.state.pos+=t);if(this.state.pos<this.length)for(;!At(r)&&++this.state.pos<this.length;)r=this.input.charCodeAt(this.state.pos);if(this.isLookahead)return;const n=this.state.pos,a={type:"CommentLine",value:this.input.slice(e+t,n),start:e,end:n,loc:new i(s,this.state.curPosition())};return this.options.tokens&&this.pushToken(a),a}skipSpace(){const t=this.state.pos,e=[];t:for(;this.state.pos<this.length;){const s=this.input.charCodeAt(this.state.pos);switch(s){case 32:case 160:case 9:++this.state.pos;break;case 13:10===this.input.charCodeAt(this.state.pos+1)&&++this.state.pos;case 10:case 8232:case 8233:++this.state.pos,++this.state.curLine,this.state.lineStart=this.state.pos;break;case 47:switch(this.input.charCodeAt(this.state.pos+1)){case 42:{const t=this.skipBlockComment("*/");void 0!==t&&(this.addComment(t),this.options.attachComment&&e.push(t));break}case 47:{const t=this.skipLineComment(2);void 0!==t&&(this.addComment(t),this.options.attachComment&&e.push(t));break}default:break t}break;default:if(Ct(s))++this.state.pos;else if(45===s&&!this.inModule&&this.options.annexB){const s=this.state.pos;if(45!==this.input.charCodeAt(s+1)||62!==this.input.charCodeAt(s+2)||!(0===t||this.state.lineStart>t))break t;{const t=this.skipLineComment(3);void 0!==t&&(this.addComment(t),this.options.attachComment&&e.push(t))}}else{if(60!==s||this.inModule||!this.options.annexB)break t;{const t=this.state.pos;if(33!==this.input.charCodeAt(t+1)||45!==this.input.charCodeAt(t+2)||45!==this.input.charCodeAt(t+3))break t;{const t=this.skipLineComment(4);void 0!==t&&(this.addComment(t),this.options.attachComment&&e.push(t))}}}}}if(e.length>0){const s={start:t,end:this.state.pos,comments:e,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(s)}}finishToken(t,e){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();const s=this.state.type;this.state.type=t,this.state.value=e,this.isLookahead||this.updateContext(s)}replaceToken(t){this.state.type=t,this.updateContext()}readToken_numberSign(){if(0===this.state.pos&&this.readToken_interpreter())return;const t=this.state.pos+1,e=this.codePointAtPos(t);if(e>=48&&e<=57)throw this.raise(g.UnexpectedDigitAfterHash,this.state.curPosition());if(123===e||91===e&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),"bar"===this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(123===e?g.RecordExpressionHashIncorrectStartSyntaxType:g.TupleExpressionHashIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,123===e?this.finishToken(7):this.finishToken(1)}else nt(e)?(++this.state.pos,this.finishToken(138,this.readWord1(e))):92===e?(++this.state.pos,this.finishToken(138,this.readWord1())):this.finishOp(27,1)}readToken_dot(){const t=this.input.charCodeAt(this.state.pos+1);t>=48&&t<=57?this.readNumber(!0):46===t&&46===this.input.charCodeAt(this.state.pos+2)?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16))}readToken_slash(){61===this.input.charCodeAt(this.state.pos+1)?this.finishOp(31,2):this.finishOp(56,1)}readToken_interpreter(){if(0!==this.state.pos||this.length<2)return!1;let t=this.input.charCodeAt(this.state.pos+1);if(33!==t)return!1;const e=this.state.pos;for(this.state.pos+=1;!At(t)&&++this.state.pos<this.length;)t=this.input.charCodeAt(this.state.pos);const s=this.input.slice(e+2,this.state.pos);return this.finishToken(28,s),!0}readToken_mult_modulo(t){let e=42===t?55:54,s=1,r=this.input.charCodeAt(this.state.pos+1);42===t&&42===r&&(s++,r=this.input.charCodeAt(this.state.pos+2),e=57),61!==r||this.state.inType||(s++,e=37===t?33:30),this.finishOp(e,s)}readToken_pipe_amp(t){const e=this.input.charCodeAt(this.state.pos+1);if(e!==t){if(124===t){if(62===e)return void this.finishOp(39,2);if(this.hasPlugin("recordAndTuple")&&125===e){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(g.RecordExpressionBarIncorrectEndSyntaxType,this.state.curPosition());return this.state.pos+=2,void this.finishToken(9)}if(this.hasPlugin("recordAndTuple")&&93===e){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(g.TupleExpressionBarIncorrectEndSyntaxType,this.state.curPosition());return this.state.pos+=2,void this.finishToken(4)}}61!==e?this.finishOp(124===t?43:45,1):this.finishOp(30,2)}else 61===this.input.charCodeAt(this.state.pos+2)?this.finishOp(30,3):this.finishOp(124===t?41:42,2)}readToken_caret(){const t=this.input.charCodeAt(this.state.pos+1);61!==t||this.state.inType?94===t&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"^^"}])?(this.finishOp(37,2),94===this.input.codePointAt(this.state.pos)&&this.unexpected()):this.finishOp(44,1):this.finishOp(32,2)}readToken_atSign(){64===this.input.charCodeAt(this.state.pos+1)&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"@@"}])?this.finishOp(38,2):this.finishOp(26,1)}readToken_plus_min(t){const e=this.input.charCodeAt(this.state.pos+1);e!==t?61===e?this.finishOp(30,2):this.finishOp(53,1):this.finishOp(34,2)}readToken_lt(){const{pos:t}=this.state,e=this.input.charCodeAt(t+1);if(60===e)return 61===this.input.charCodeAt(t+2)?void this.finishOp(30,3):void this.finishOp(51,2);61!==e?this.finishOp(47,1):this.finishOp(49,2)}readToken_gt(){const{pos:t}=this.state,e=this.input.charCodeAt(t+1);if(62===e){const e=62===this.input.charCodeAt(t+2)?3:2;return 61===this.input.charCodeAt(t+e)?void this.finishOp(30,e+1):void this.finishOp(52,e)}61!==e?this.finishOp(48,1):this.finishOp(49,2)}readToken_eq_excl(t){const e=this.input.charCodeAt(this.state.pos+1);if(61!==e)return 61===t&&62===e?(this.state.pos+=2,void this.finishToken(19)):void this.finishOp(61===t?29:35,1);this.finishOp(46,61===this.input.charCodeAt(this.state.pos+2)?3:2)}readToken_question(){const t=this.input.charCodeAt(this.state.pos+1),e=this.input.charCodeAt(this.state.pos+2);63===t?61===e?this.finishOp(30,3):this.finishOp(40,2):46!==t||e>=48&&e<=57?(++this.state.pos,this.finishToken(17)):(this.state.pos+=2,this.finishToken(18))}getTokenFromCode(t){switch(t){case 46:return void this.readToken_dot();case 40:return++this.state.pos,void this.finishToken(10);case 41:return++this.state.pos,void this.finishToken(11);case 59:return++this.state.pos,void this.finishToken(13);case 44:return++this.state.pos,void this.finishToken(12);case 91:if(this.hasPlugin("recordAndTuple")&&124===this.input.charCodeAt(this.state.pos+1)){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(g.TupleExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(2)}else++this.state.pos,this.finishToken(0);return;case 93:return++this.state.pos,void this.finishToken(3);case 123:if(this.hasPlugin("recordAndTuple")&&124===this.input.charCodeAt(this.state.pos+1)){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(g.RecordExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(6)}else++this.state.pos,this.finishToken(5);return;case 125:return++this.state.pos,void this.finishToken(8);case 58:return void(this.hasPlugin("functionBind")&&58===this.input.charCodeAt(this.state.pos+1)?this.finishOp(15,2):(++this.state.pos,this.finishToken(14)));case 63:return void this.readToken_question();case 96:return void this.readTemplateToken();case 48:{const t=this.input.charCodeAt(this.state.pos+1);if(120===t||88===t)return void this.readRadixNumber(16);if(111===t||79===t)return void this.readRadixNumber(8);if(98===t||66===t)return void this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return void this.readNumber(!1);case 34:case 39:return void this.readString(t);case 47:return void this.readToken_slash();case 37:case 42:return void this.readToken_mult_modulo(t);case 124:case 38:return void this.readToken_pipe_amp(t);case 94:return void this.readToken_caret();case 43:case 45:return void this.readToken_plus_min(t);case 60:return void this.readToken_lt();case 62:return void this.readToken_gt();case 61:case 33:return void this.readToken_eq_excl(t);case 126:return void this.finishOp(36,1);case 64:return void this.readToken_atSign();case 35:return void this.readToken_numberSign();case 92:return void this.readWord();default:if(nt(t))return void this.readWord(t)}throw this.raise(g.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(t)})}finishOp(t,e){const s=this.input.slice(this.state.pos,this.state.pos+e);this.state.pos+=e,this.finishToken(t,s)}readRegexp(){const t=this.state.startLoc,e=this.state.start+1;let s,r,{pos:i}=this.state;for(;;++i){if(i>=this.length)throw this.raise(g.UnterminatedRegExp,n(t,1));const e=this.input.charCodeAt(i);if(At(e))throw this.raise(g.UnterminatedRegExp,n(t,1));if(s)s=!1;else{if(91===e)r=!0;else if(93===e&&r)r=!1;else if(47===e&&!r)break;s=92===e}}const a=this.input.slice(e,i);++i;let o="";const c=()=>n(t,i+2-e);for(;i<this.length;){const t=this.codePointAtPos(i),e=String.fromCharCode(t);if(Ut.has(t))118===t?o.includes("u")&&this.raise(g.IncompatibleRegExpUVFlags,c()):117===t&&o.includes("v")&&this.raise(g.IncompatibleRegExpUVFlags,c()),o.includes(e)&&this.raise(g.DuplicateRegExpFlags,c());else{if(!at(t)&&92!==t)break;this.raise(g.MalformedRegExpFlags,c())}++i,o+=e}this.state.pos=i,this.finishToken(137,{pattern:a,flags:o})}readInt(t,e,s=!1,r=!0){const{n:i,pos:n}=jt(this.input,this.state.pos,this.state.lineStart,this.state.curLine,t,e,s,r,this.errorHandlers_readInt,!1);return this.state.pos=n,i}readRadixNumber(t){const e=this.state.curPosition();let s=!1;this.state.pos+=2;const r=this.readInt(t);null==r&&this.raise(g.InvalidDigit,n(e,2),{radix:t});const i=this.input.charCodeAt(this.state.pos);if(110===i)++this.state.pos,s=!0;else if(109===i)throw this.raise(g.InvalidDecimal,e);if(nt(this.codePointAtPos(this.state.pos)))throw this.raise(g.NumberIdentifier,this.state.curPosition());if(s){const t=this.input.slice(e.index,this.state.pos).replace(/[_n]/g,"");this.finishToken(135,t)}else this.finishToken(134,r)}readNumber(t){const e=this.state.pos,s=this.state.curPosition();let r=!1,i=!1,a=!1,o=!1,c=!1;t||null!==this.readInt(10)||this.raise(g.InvalidNumber,this.state.curPosition());const l=this.state.pos-e>=2&&48===this.input.charCodeAt(e);if(l){const t=this.input.slice(e,this.state.pos);if(this.recordStrictModeErrors(g.StrictOctalLiteral,s),!this.state.strict){const e=t.indexOf("_");e>0&&this.raise(g.ZeroDigitNumericSeparator,n(s,e))}c=l&&!/[89]/.test(t)}let h=this.input.charCodeAt(this.state.pos);if(46!==h||c||(++this.state.pos,this.readInt(10),r=!0,h=this.input.charCodeAt(this.state.pos)),69!==h&&101!==h||c||(h=this.input.charCodeAt(++this.state.pos),43!==h&&45!==h||++this.state.pos,null===this.readInt(10)&&this.raise(g.InvalidOrMissingExponent,s),r=!0,o=!0,h=this.input.charCodeAt(this.state.pos)),110===h&&((r||l)&&this.raise(g.InvalidBigIntLiteral,s),++this.state.pos,i=!0),109===h&&(this.expectPlugin("decimal",this.state.curPosition()),(o||l)&&this.raise(g.InvalidDecimal,s),++this.state.pos,a=!0),nt(this.codePointAtPos(this.state.pos)))throw this.raise(g.NumberIdentifier,this.state.curPosition());const u=this.input.slice(e,this.state.pos).replace(/[_mn]/g,"");if(i)return void this.finishToken(135,u);if(a)return void this.finishToken(136,u);const p=c?parseInt(u,8):parseFloat(u);this.finishToken(134,p)}readCodePoint(t){const{code:e,pos:s}=Bt(this.input,this.state.pos,this.state.lineStart,this.state.curLine,t,this.errorHandlers_readCodePoint);return this.state.pos=s,e}readString(t){const{str:e,pos:s,curLine:r,lineStart:i}=Ot(34===t?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=s+1,this.state.lineStart=i,this.state.curLine=r,this.finishToken(133,e)}readTemplateContinuation(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()}readTemplateToken(){const t=this.input[this.state.pos],{str:e,firstInvalidLoc:s,pos:i,curLine:n,lineStart:a}=Ot("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);this.state.pos=i+1,this.state.lineStart=a,this.state.curLine=n,s&&(this.state.firstInvalidTemplateEscapePos=new r(s.curLine,s.pos-s.lineStart,s.pos)),96===this.input.codePointAt(i)?this.finishToken(24,s?null:t+e+"`"):(this.state.pos++,this.finishToken(25,s?null:t+e+"${"))}recordStrictModeErrors(t,e){const s=e.index;this.state.strict&&!this.state.strictErrors.has(s)?this.raise(t,e):this.state.strictErrors.set(s,[t,e])}readWord1(t){this.state.containsEsc=!1;let e="";const s=this.state.pos;let r=this.state.pos;for(void 0!==t&&(this.state.pos+=t<=65535?1:2);this.state.pos<this.length;){const t=this.codePointAtPos(this.state.pos);if(at(t))this.state.pos+=t<=65535?1:2;else{if(92!==t)break;{this.state.containsEsc=!0,e+=this.input.slice(r,this.state.pos);const t=this.state.curPosition(),i=this.state.pos===s?nt:at;if(117!==this.input.charCodeAt(++this.state.pos)){this.raise(g.MissingUnicodeEscape,this.state.curPosition()),r=this.state.pos-1;continue}++this.state.pos;const n=this.readCodePoint(!0);null!==n&&(i(n)||this.raise(g.EscapedCharNotAnIdentifier,t),e+=String.fromCodePoint(n)),r=this.state.pos}}}return e+this.input.slice(r,this.state.pos)}readWord(t){const e=this.readWord1(t),s=C.get(e);void 0!==s?this.finishToken(s,K(s)):this.finishToken(132,e)}checkKeywordEscapes(){const{type:t}=this.state;q(t)&&this.state.containsEsc&&this.raise(g.InvalidEscapedReservedWord,this.state.startLoc,{reservedWord:K(t)})}raise(t,e,s={}){const i=t(e instanceof r?e:e.loc.start,s);if(!this.options.errorRecovery)throw i;return this.isLookahead||this.state.errors.push(i),i}raiseOverwrite(t,e,s={}){const i=e instanceof r?e:e.loc.start,n=i.index,a=this.state.errors;for(let e=a.length-1;e>=0;e--){const r=a[e];if(r.loc.index===n)return a[e]=t(i,s);if(r.loc.index<n)break}return this.raise(t,e,s)}updateContext(t){}unexpected(t,e){throw this.raise(g.UnexpectedToken,null!=t?t:this.state.startLoc,{expected:e?K(e):null})}expectPlugin(t,e){if(this.hasPlugin(t))return!0;throw this.raise(g.MissingPlugin,null!=e?e:this.state.startLoc,{missingPlugin:[t]})}expectOnePlugin(t){if(!t.some((t=>this.hasPlugin(t))))throw this.raise(g.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:t})}errorBuilder(t){return(e,s,r)=>{this.raise(t,Yt(e,s,r))}}}class $t{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}}class zt{constructor(t){this.parser=void 0,this.stack=[],this.undefinedPrivateNames=new Map,this.parser=t}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new $t)}exit(){const t=this.stack.pop(),e=this.current();for(const[s,r]of Array.from(t.undefinedPrivateNames))e?e.undefinedPrivateNames.has(s)||e.undefinedPrivateNames.set(s,r):this.parser.raise(g.InvalidPrivateFieldResolution,r,{identifierName:s})}declarePrivateName(t,e,s){const{privateNames:r,loneAccessors:i,undefinedPrivateNames:n}=this.current();let a=r.has(t);if(3&e){const s=a&&i.get(t);s?(a=(3&s)==(3&e)||(4&s)!=(4&e),a||i.delete(t)):a||i.set(t,e)}a&&this.parser.raise(g.PrivateNameRedeclaration,s,{identifierName:t}),r.add(t),n.delete(t)}usePrivateName(t,e){let s;for(s of this.stack)if(s.privateNames.has(t))return;s?s.undefinedPrivateNames.set(t,e):this.parser.raise(g.InvalidPrivateFieldResolution,e,{identifierName:t})}}class Vt{constructor(t=0){this.type=t}canBeArrowParameterDeclaration(){return 2===this.type||1===this.type}isCertainlyParameterDeclaration(){return 3===this.type}}class qt extends Vt{constructor(t){super(t),this.declarationErrors=new Map}recordDeclarationError(t,e){const s=e.index;this.declarationErrors.set(s,[t,e])}clearDeclarationError(t){this.declarationErrors.delete(t)}iterateErrors(t){this.declarationErrors.forEach(t)}}class Kt{constructor(t){this.parser=void 0,this.stack=[new Vt],this.parser=t}enter(t){this.stack.push(t)}exit(){this.stack.pop()}recordParameterInitializerError(t,e){const s=e.loc.start,{stack:r}=this;let i=r.length-1,n=r[i];for(;!n.isCertainlyParameterDeclaration();){if(!n.canBeArrowParameterDeclaration())return;n.recordDeclarationError(t,s),n=r[--i]}this.parser.raise(t,s)}recordArrowParameterBindingError(t,e){const{stack:s}=this,r=s[s.length-1],i=e.loc.start;if(r.isCertainlyParameterDeclaration())this.parser.raise(t,i);else{if(!r.canBeArrowParameterDeclaration())return;r.recordDeclarationError(t,i)}}recordAsyncArrowParametersError(t){const{stack:e}=this;let s=e.length-1,r=e[s];for(;r.canBeArrowParameterDeclaration();)2===r.type&&r.recordDeclarationError(g.AwaitBindingIdentifier,t),r=e[--s]}validateAsPattern(){const{stack:t}=this,e=t[t.length-1];e.canBeArrowParameterDeclaration()&&e.iterateErrors((([e,s])=>{this.parser.raise(e,s);let r=t.length-2,i=t[r];for(;i.canBeArrowParameterDeclaration();)i.clearDeclarationError(s.index),i=t[--r]}))}}function Jt(){return new Vt}class Gt{constructor(){this.stacks=[]}enter(t){this.stacks.push(t)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(2&this.currentFlags())>0}get hasYield(){return(1&this.currentFlags())>0}get hasReturn(){return(4&this.currentFlags())>0}get hasIn(){return(8&this.currentFlags())>0}}function Xt(t,e){return(t?2:0)|(e?1:0)}class Zt extends Wt{addExtra(t,e,s,r=!0){if(!t)return;let{extra:i}=t;null==i&&(i={},t.extra=i),r?i[e]=s:Object.defineProperty(i,e,{enumerable:r,value:s})}isContextual(t){return this.state.type===t&&!this.state.containsEsc}isUnparsedContextual(t,e){const s=t+e.length;if(this.input.slice(t,s)===e){const t=this.input.charCodeAt(s);return!(at(t)||55296==(64512&t))}return!1}isLookaheadContextual(t){const e=this.nextTokenStart();return this.isUnparsedContextual(e,t)}eatContextual(t){return!!this.isContextual(t)&&(this.next(),!0)}expectContextual(t,e){if(!this.eatContextual(t)){if(null!=e)throw this.raise(e,this.state.startLoc);this.unexpected(null,t)}}canInsertSemicolon(){return this.match(139)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return _t(this.input,this.state.lastTokEndLoc.index,this.state.start)}hasFollowingLineBreak(){return _t(this.input,this.state.end,this.nextTokenStart())}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(t=!0){(t?this.isLineTerminator():this.eat(13))||this.raise(g.MissingSemicolon,this.state.lastTokEndLoc)}expect(t,e){this.eat(t)||this.unexpected(e,t)}tryParse(t,e=this.state.clone()){const s={node:null};try{const r=t(((t=null)=>{throw s.node=t,s}));if(this.state.errors.length>e.errors.length){const t=this.state;return this.state=e,this.state.tokensLength=t.tokensLength,{node:r,error:t.errors[e.errors.length],thrown:!1,aborted:!1,failState:t}}return{node:r,error:null,thrown:!1,aborted:!1,failState:null}}catch(t){const r=this.state;if(this.state=e,t instanceof SyntaxError)return{node:null,error:t,thrown:!0,aborted:!1,failState:r};if(t===s)return{node:s.node,error:null,thrown:!1,aborted:!0,failState:r};throw t}}checkExpressionErrors(t,e){if(!t)return!1;const{shorthandAssignLoc:s,doubleProtoLoc:r,privateKeyLoc:i,optionalParametersLoc:n}=t;if(!e)return!!(s||r||n||i);null!=s&&this.raise(g.InvalidCoverInitializedName,s),null!=r&&this.raise(g.DuplicateProto,r),null!=i&&this.raise(g.UnexpectedPrivateField,i),null!=n&&this.unexpected(n)}isLiteralPropertyName(){return $(this.state.type)}isPrivateName(t){return"PrivateName"===t.type}getPrivateNameSV(t){return t.id.name}hasPropertyAsPrivateName(t){return("MemberExpression"===t.type||"OptionalMemberExpression"===t.type)&&this.isPrivateName(t.property)}isObjectProperty(t){return"ObjectProperty"===t.type}isObjectMethod(t){return"ObjectMethod"===t.type}initializeScopes(t="module"===this.options.sourceType){const e=this.state.labels;this.state.labels=[];const s=this.exportedIdentifiers;this.exportedIdentifiers=new Set;const r=this.inModule;this.inModule=t;const i=this.scope,n=this.getScopeHandler();this.scope=new n(this,t);const a=this.prodParam;this.prodParam=new Gt;const o=this.classScope;this.classScope=new zt(this);const c=this.expressionScope;return this.expressionScope=new Kt(this),()=>{this.state.labels=e,this.exportedIdentifiers=s,this.inModule=r,this.scope=i,this.prodParam=a,this.classScope=o,this.expressionScope=c}}enterInitialScopes(){let t=0;this.inModule&&(t|=2),this.scope.enter(1),this.prodParam.enter(t)}checkDestructuringPrivate(t){const{privateKeyLoc:e}=t;null!==e&&this.expectPlugin("destructuringPrivate",e)}}class Qt{constructor(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null}}class te{constructor(t,e,s){this.type="",this.start=e,this.end=0,this.loc=new i(s),null!=t&&t.options.ranges&&(this.range=[e,0]),null!=t&&t.filename&&(this.loc.filename=t.filename)}}const ee=te.prototype;function se(t){const{type:e,start:s,end:r,loc:i,range:n,extra:a,name:o}=t,c=Object.create(ee);return c.type=e,c.start=s,c.end=r,c.loc=i,c.range=n,c.extra=a,c.name=o,"Placeholder"===e&&(c.expectedNode=t.expectedNode),c}ee.__clone=function(){const t=new te(void 0,this.start,this.loc.start),e=Object.keys(this);for(let s=0,r=e.length;s<r;s++){const r=e[s];"leadingComments"!==r&&"trailingComments"!==r&&"innerComments"!==r&&(t[r]=this[r])}return t};class re extends Zt{startNode(){const t=this.state.startLoc;return new te(this,t.index,t)}startNodeAt(t){return new te(this,t.index,t)}startNodeAtNode(t){return this.startNodeAt(t.loc.start)}finishNode(t,e){return this.finishNodeAt(t,e,this.state.lastTokEndLoc)}finishNodeAt(t,e,s){return t.type=e,t.end=s.index,t.loc.end=s,this.options.ranges&&(t.range[1]=s.index),this.options.attachComment&&this.processComment(t),t}resetStartLocation(t,e){t.start=e.index,t.loc.start=e,this.options.ranges&&(t.range[0]=e.index)}resetEndLocation(t,e=this.state.lastTokEndLoc){t.end=e.index,t.loc.end=e,this.options.ranges&&(t.range[1]=e.index)}resetStartLocationFromNode(t,e){this.resetStartLocation(t,e.loc.start)}}const ie=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),ne=y`flow`({AmbiguousConditionalArrow:"Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.",AmbiguousDeclareModuleKind:"Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.",AssignReservedType:({reservedType:t})=>`Cannot overwrite reserved type ${t}.`,DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:({memberName:t,enumName:e})=>`Boolean enum members need to be initialized. Use either \`${t} = true,\` or \`${t} = false,\` in enum \`${e}\`.`,EnumDuplicateMemberName:({memberName:t,enumName:e})=>`Enum member names need to be unique, but the name \`${t}\` has already been used before in enum \`${e}\`.`,EnumInconsistentMemberValues:({enumName:t})=>`Enum \`${t}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,EnumInvalidExplicitType:({invalidEnumType:t,enumName:e})=>`Enum type \`${t}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${e}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName:t})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${t}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName:t,memberName:e,explicitType:s})=>`Enum \`${t}\` has type \`${s}\`, so the initializer of \`${e}\` needs to be a ${s} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName:t,memberName:e})=>`Symbol enum members cannot be initialized. Use \`${e},\` in enum \`${t}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName:t,memberName:e})=>`The enum member initializer for \`${e}\` needs to be a literal (either a boolean, number, or string) in enum \`${t}\`.`,EnumInvalidMemberName:({enumName:t,memberName:e,suggestion:s})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${e}\`, consider using \`${s}\`, in enum \`${t}\`.`,EnumNumberMemberNotInitialized:({enumName:t,memberName:e})=>`Number enum members need to be initialized, e.g. \`${e} = 1\` in enum \`${t}\`.`,EnumStringMemberInconsistentlyInitialized:({enumName:t})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${t}\`.`,GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` or `typeof` keyword.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:"Explicit inexact syntax cannot appear inside an explicit exact object type.",InexactInsideNonObject:"Explicit inexact syntax cannot appear in class or interface definitions.",InexactVariance:"Explicit inexact syntax cannot have variance.",InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:"Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:"Cannot have a flow comment inside another flow comment.",PatternIsOptional:Object.assign({message:"A binding pattern parameter cannot be optional in an implementation signature."},{reasonCode:"OptionalBindingPattern"}),SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:"Spread properties cannot have variance.",ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:"The type cast expression is expected to be wrapped with parenthesis.",UnexpectedExplicitInexactInObject:"Explicit inexact syntax must appear at the end of an inexact object.",UnexpectedReservedType:({reservedType:t})=>`Unexpected reserved type ${t}.`,UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:"Spread operator cannot appear in class or interface definitions.",UnexpectedSubtractionOperand:'Unexpected token, expected "number" or "bigint".',UnexpectedTokenAfterTypeParameter:"Expected an arrow function after this type parameter declaration.",UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of `<T> async () => {}`, use `async <T>() => {}`.",UnsupportedDeclareExportKind:({unsupportedExportKind:t,suggestion:e})=>`\`declare export ${t}\` is not supported. Use \`${e}\` instead.`,UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function ae(t){return"type"===t.importKind||"typeof"===t.importKind}const oe={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"},ce=/\*?\s*@((?:no)?flow)\b/,le={__proto__:null,quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"},he=y`jsx`({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:({openingTagName:t})=>`Expected corresponding JSX closing tag for <${t}>.`,MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",UnexpectedToken:({unexpected:t,HTMLEntity:e})=>`Unexpected token \`${t}\`. Did you mean \`${e}\` or \`{'${t}'}\`?`,UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text.",UnterminatedJsxContent:"Unterminated JSX contents.",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>?"});function ue(t){return!!t&&("JSXOpeningFragment"===t.type||"JSXClosingFragment"===t.type)}function pe(t){if("JSXIdentifier"===t.type)return t.name;if("JSXNamespacedName"===t.type)return t.namespace.name+":"+t.name.name;if("JSXMemberExpression"===t.type)return pe(t.object)+"."+pe(t.property);throw new Error("Node had unexpected type: "+t.type)}class de extends mt{constructor(...t){super(...t),this.tsNames=new Map}}class fe extends yt{constructor(...t){super(...t),this.importsStack=[]}createScope(t){return this.importsStack.push(new Set),new de(t)}enter(t){256===t&&this.importsStack.push(new Set),super.enter(t)}exit(){const t=super.exit();return 256===t&&this.importsStack.pop(),t}hasImport(t,e){const s=this.importsStack.length;if(this.importsStack[s-1].has(t))return!0;if(!e&&s>1)for(let e=0;e<s-1;e++)if(this.importsStack[e].has(t))return!0;return!1}declareName(t,e,s){if(4096&e)return this.hasImport(t,!0)&&this.parser.raise(g.VarRedeclaration,s,{identifierName:t}),void this.importsStack[this.importsStack.length-1].add(t);const r=this.currentScope();let i=r.tsNames.get(t)||0;if(1024&e)return this.maybeExportDefined(r,t),void r.tsNames.set(t,16|i);super.declareName(t,e,s),2&e&&(1&e||(this.checkRedeclarationInScope(r,t,e,s),this.maybeExportDefined(r,t)),i|=1),256&e&&(i|=2),512&e&&(i|=4),128&e&&(i|=8),i&&r.tsNames.set(t,i)}isRedeclaredInScope(t,e,s){const r=t.tsNames.get(e);return(2&r)>0?!(256&s)||!!(512&s)!=(4&r)>0:128&s&&(8&r)>0?!!(2&t.names.get(e))&&!!(1&s):!!(2&s&&(1&r)>0)||super.isRedeclaredInScope(t,e,s)}checkLocalExport(t){const{name:e}=t;if(!this.hasImport(e)){for(let t=this.scopeStack.length-1;t>=0;t--){const s=this.scopeStack[t].tsNames.get(e);if((1&s)>0||(16&s)>0)return}super.checkLocalExport(t)}}}const me=t=>"ParenthesizedExpression"===t.type?me(t.expression):t;class ye extends re{toAssignable(t,e=!1){var s,r;let i;switch(("ParenthesizedExpression"===t.type||null!=(s=t.extra)&&s.parenthesized)&&(i=me(t),e?"Identifier"===i.type?this.expressionScope.recordArrowParameterBindingError(g.InvalidParenthesizedAssignment,t):"MemberExpression"===i.type||this.isOptionalMemberExpression(i)||this.raise(g.InvalidParenthesizedAssignment,t):this.raise(g.InvalidParenthesizedAssignment,t)),t.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":t.type="ObjectPattern";for(let s=0,r=t.properties.length,i=r-1;s<r;s++){var n;const r=t.properties[s],a=s===i;this.toAssignableObjectExpressionProp(r,a,e),a&&"RestElement"===r.type&&null!=(n=t.extra)&&n.trailingCommaLoc&&this.raise(g.RestTrailingComma,t.extra.trailingCommaLoc)}break;case"ObjectProperty":{const{key:s,value:r}=t;this.isPrivateName(s)&&this.classScope.usePrivateName(this.getPrivateNameSV(s),s.loc.start),this.toAssignable(r,e);break}case"SpreadElement":throw new Error("Internal @babel/parser error (this is a bug, please report it). SpreadElement should be converted by .toAssignable's caller.");case"ArrayExpression":t.type="ArrayPattern",this.toAssignableList(t.elements,null==(r=t.extra)?void 0:r.trailingCommaLoc,e);break;case"AssignmentExpression":"="!==t.operator&&this.raise(g.MissingEqInAssignment,t.left.loc.end),t.type="AssignmentPattern",delete t.operator,this.toAssignable(t.left,e);break;case"ParenthesizedExpression":this.toAssignable(i,e)}}toAssignableObjectExpressionProp(t,e,s){if("ObjectMethod"===t.type)this.raise("get"===t.kind||"set"===t.kind?g.PatternHasAccessor:g.PatternHasMethod,t.key);else if("SpreadElement"===t.type){t.type="RestElement";const r=t.argument;this.checkToRestConversion(r,!1),this.toAssignable(r,s),e||this.raise(g.RestTrailingComma,t)}else this.toAssignable(t,s)}toAssignableList(t,e,s){const r=t.length-1;for(let i=0;i<=r;i++){const n=t[i];if(n){if("SpreadElement"===n.type){n.type="RestElement";const t=n.argument;this.checkToRestConversion(t,!0),this.toAssignable(t,s)}else this.toAssignable(n,s);"RestElement"===n.type&&(i<r?this.raise(g.RestTrailingComma,n):e&&this.raise(g.RestTrailingComma,e))}}}isAssignable(t,e){switch(t.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":return!0;case"ObjectExpression":{const e=t.properties.length-1;return t.properties.every(((t,s)=>"ObjectMethod"!==t.type&&(s===e||"SpreadElement"!==t.type)&&this.isAssignable(t)))}case"ObjectProperty":return this.isAssignable(t.value);case"SpreadElement":return this.isAssignable(t.argument);case"ArrayExpression":return t.elements.every((t=>null===t||this.isAssignable(t)));case"AssignmentExpression":return"="===t.operator;case"ParenthesizedExpression":return this.isAssignable(t.expression);case"MemberExpression":case"OptionalMemberExpression":return!e;default:return!1}}toReferencedList(t,e){return t}toReferencedListDeep(t,e){this.toReferencedList(t,e);for(const e of t)"ArrayExpression"===(null==e?void 0:e.type)&&this.toReferencedListDeep(e.elements)}parseSpread(t){const e=this.startNode();return this.next(),e.argument=this.parseMaybeAssignAllowIn(t,void 0),this.finishNode(e,"SpreadElement")}parseRestBinding(){const t=this.startNode();return this.next(),t.argument=this.parseBindingAtom(),this.finishNode(t,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{const t=this.startNode();return this.next(),t.elements=this.parseBindingList(3,93,1),this.finishNode(t,"ArrayPattern")}case 5:return this.parseObjectLike(8,!0)}return this.parseIdentifier()}parseBindingList(t,e,s){const r=1&s,i=[];let n=!0;for(;!this.eat(t);)if(n?n=!1:this.expect(12),r&&this.match(12))i.push(null);else{if(this.eat(t))break;if(this.match(21)){if(i.push(this.parseAssignableListItemTypes(this.parseRestBinding(),s)),!this.checkCommaAfterRest(e)){this.expect(t);break}}else{const t=[];for(this.match(26)&&this.hasPlugin("decorators")&&this.raise(g.UnsupportedParameterDecorator,this.state.startLoc);this.match(26);)t.push(this.parseDecorator());i.push(this.parseAssignableListItem(s,t))}}return i}parseBindingRestProperty(t){return this.next(),t.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(t,"RestElement")}parseBindingProperty(){const{type:t,startLoc:e}=this.state;if(21===t)return this.parseBindingRestProperty(this.startNode());const s=this.startNode();return 138===t?(this.expectPlugin("destructuringPrivate",e),this.classScope.usePrivateName(this.state.value,e),s.key=this.parsePrivateName()):this.parsePropertyName(s),s.method=!1,this.parseObjPropValue(s,e,!1,!1,!0,!1)}parseAssignableListItem(t,e){const s=this.parseMaybeDefault();this.parseAssignableListItemTypes(s,t);const r=this.parseMaybeDefault(s.loc.start,s);return e.length&&(s.decorators=e),r}parseAssignableListItemTypes(t,e){return t}parseMaybeDefault(t,e){var s;if(null!=t||(t=this.state.startLoc),e=null!=(s=e)?s:this.parseBindingAtom(),!this.eat(29))return e;const r=this.startNodeAt(t);return r.left=e,r.right=this.parseMaybeAssignAllowIn(),this.finishNode(r,"AssignmentPattern")}isValidLVal(t,e,s){switch(t){case"AssignmentPattern":return"left";case"RestElement":return"argument";case"ObjectProperty":return"value";case"ParenthesizedExpression":return"expression";case"ArrayPattern":return"elements";case"ObjectPattern":return"properties"}return!1}isOptionalMemberExpression(t){return"OptionalMemberExpression"===t.type}checkLVal(t,e,s=64,r=!1,i=!1,n=!1){var a;const o=t.type;if(this.isObjectMethod(t))return;const c=this.isOptionalMemberExpression(t);if(c||"MemberExpression"===o)return c&&(this.expectPlugin("optionalChainingAssign",t.loc.start),"AssignmentExpression"!==e.type&&this.raise(g.InvalidLhsOptionalChaining,t,{ancestor:e})),void(64!==s&&this.raise(g.InvalidPropertyBindingPattern,t));if("Identifier"===o){this.checkIdentifier(t,s,i);const{name:e}=t;return void(r&&(r.has(e)?this.raise(g.ParamDupe,t):r.add(e)))}const l=this.isValidLVal(o,!(n||null!=(a=t.extra)&&a.parenthesized)&&"AssignmentExpression"===e.type,s);if(!0===l)return;if(!1===l){const r=64===s?g.InvalidLhs:g.InvalidLhsBinding;return void this.raise(r,t,{ancestor:e})}let h,u;"string"==typeof l?(h=l,u="ParenthesizedExpression"===o):[h,u]=l;const p="ArrayPattern"===o||"ObjectPattern"===o?{type:o}:e,d=t[h];if(Array.isArray(d))for(const t of d)t&&this.checkLVal(t,p,s,r,i,u);else d&&this.checkLVal(d,p,s,r,i,u)}checkIdentifier(t,e,s=!1){this.state.strict&&(s?dt(t.name,this.inModule):pt(t.name))&&(64===e?this.raise(g.StrictEvalArguments,t,{referenceName:t.name}):this.raise(g.StrictEvalArgumentsBinding,t,{bindingName:t.name})),8192&e&&"let"===t.name&&this.raise(g.LetInLexicalBinding,t),64&e||this.declareNameFromIdentifier(t,e)}declareNameFromIdentifier(t,e){this.scope.declareName(t.name,e,t.loc.start)}checkToRestConversion(t,e){switch(t.type){case"ParenthesizedExpression":this.checkToRestConversion(t.expression,e);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(e)break;default:this.raise(g.InvalidRestAssignmentPattern,t)}}checkCommaAfterRest(t){return!!this.match(12)&&(this.raise(this.lookaheadCharCode()===t?g.RestTrailingComma:g.ElementAfterRest,this.state.startLoc),!0)}}function ge(t){if(!t)throw new Error("Assert fail")}const xe=y`typescript`({AbstractMethodHasImplementation:({methodName:t})=>`Method '${t}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:t})=>`Property '${t}' cannot have an initializer because it is marked abstract.`,AccessorCannotBeOptional:"An 'accessor' property cannot be declared optional.",AccessorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccessorCannotHaveTypeParameters:"An accessor cannot have type parameters.",ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:({kind:t})=>`'declare' is not allowed in ${t}ters.`,DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:({modifier:t})=>"Accessibility modifier already seen.",DuplicateModifier:({modifier:t})=>`Duplicate modifier: '${t}'.`,EmptyHeritageClauseType:({token:t})=>`'${t}' list cannot be empty.`,EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` modifier",IncompatibleModifiers:({modifiers:t})=>`'${t[0]}' modifier cannot be used with '${t[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier:t})=>`Index signatures cannot have an accessibility modifier ('${t}').`,IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InvalidModifierOnTypeMember:({modifier:t})=>`'${t}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:t})=>`'${t}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:t})=>`'${t}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifiersOrder:({orderedModifiers:t})=>`'${t[0]}' modifier must precede '${t[1]}' modifier.`,InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifer:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:({modifier:t})=>`Private elements cannot have an accessibility modifier ('${t}').`,ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `<T,>() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccessorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccessorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccessorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:({typeParameterName:t})=>`Single type parameter ${t} should have a trailing comma. Example usage: <${t},>.`,StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TupleOptionalAfterType:"A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:({type:t})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${t}.`});function ve(t){return"private"===t||"public"===t||"protected"===t}function be(t){return"in"===t||"out"===t}function we(t){if("MemberExpression"!==t.type)return!1;const{computed:e,property:s}=t;return(!e||"StringLiteral"===s.type||!("TemplateLiteral"!==s.type||s.expressions.length>0))&&Se(t.object)}function Pe(t,e){var s;const{type:r}=t;if(null!=(s=t.extra)&&s.parenthesized)return!1;if(e){if("Literal"===r){const{value:e}=t;if("string"==typeof e||"boolean"==typeof e)return!0}}else if("StringLiteral"===r||"BooleanLiteral"===r)return!0;return!(!Te(t,e)&&!function(t,e){if("UnaryExpression"===t.type){const{operator:s,argument:r}=t;if("-"===s&&Te(r,e))return!0}return!1}(t,e))||"TemplateLiteral"===r&&0===t.expressions.length||!!we(t)}function Te(t,e){return e?"Literal"===t.type&&("number"==typeof t.value||"bigint"in t):"NumericLiteral"===t.type||"BigIntLiteral"===t.type}function Se(t){return"Identifier"===t.type||"MemberExpression"===t.type&&!t.computed&&Se(t.object)}const Ae=y`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."}),_e=["minimal","fsharp","hack","smart"],ke=["^^","@@","^","%","#"],Ee={estree:t=>class extends t{parse(){const t=b(super.parse());return this.options.tokens&&(t.tokens=t.tokens.map(b)),t}parseRegExpLiteral({pattern:t,flags:e}){let s=null;try{s=new RegExp(t,e)}catch(t){}const r=this.estreeParseLiteral(s);return r.regex={pattern:t,flags:e},r}parseBigIntLiteral(t){let e;try{e=BigInt(t)}catch(t){e=null}const s=this.estreeParseLiteral(e);return s.bigint=String(s.value||t),s}parseDecimalLiteral(t){const e=this.estreeParseLiteral(null);return e.decimal=String(e.value||t),e}estreeParseLiteral(t){return this.parseLiteral(t,"Literal")}parseStringLiteral(t){return this.estreeParseLiteral(t)}parseNumericLiteral(t){return this.estreeParseLiteral(t)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(t){return this.estreeParseLiteral(t)}directiveToStmt(t){const e=t.value;delete t.value,e.type="Literal",e.raw=e.extra.raw,e.value=e.extra.expressionValue;const s=t;return s.type="ExpressionStatement",s.expression=e,s.directive=e.extra.rawValue,delete e.extra,s}initFunction(t,e){super.initFunction(t,e),t.expression=!1}checkDeclaration(t){null!=t&&this.isObjectProperty(t)?this.checkDeclaration(t.value):super.checkDeclaration(t)}getObjectOrClassMethodParams(t){return t.value.params}isValidDirective(t){var e;return"ExpressionStatement"===t.type&&"Literal"===t.expression.type&&"string"==typeof t.expression.value&&!(null!=(e=t.expression.extra)&&e.parenthesized)}parseBlockBody(t,e,s,r,i){super.parseBlockBody(t,e,s,r,i);const n=t.directives.map((t=>this.directiveToStmt(t)));t.body=n.concat(t.body),delete t.directives}pushClassMethod(t,e,s,r,i,n){this.parseMethod(e,s,r,i,n,"ClassMethod",!0),e.typeParameters&&(e.value.typeParameters=e.typeParameters,delete e.typeParameters),t.body.push(e)}parsePrivateName(){const t=super.parsePrivateName();return this.getPluginOption("estree","classFeatures")?this.convertPrivateNameToPrivateIdentifier(t):t}convertPrivateNameToPrivateIdentifier(t){const e=super.getPrivateNameSV(t);return delete t.id,t.name=e,t.type="PrivateIdentifier",t}isPrivateName(t){return this.getPluginOption("estree","classFeatures")?"PrivateIdentifier"===t.type:super.isPrivateName(t)}getPrivateNameSV(t){return this.getPluginOption("estree","classFeatures")?t.name:super.getPrivateNameSV(t)}parseLiteral(t,e){const s=super.parseLiteral(t,e);return s.raw=s.extra.raw,delete s.extra,s}parseFunctionBody(t,e,s=!1){super.parseFunctionBody(t,e,s),t.expression="BlockStatement"!==t.body.type}parseMethod(t,e,s,r,i,n,a=!1){let o=this.startNode();return o.kind=t.kind,o=super.parseMethod(o,e,s,r,i,n,a),o.type="FunctionExpression",delete o.kind,t.value=o,"ClassPrivateMethod"===n&&(t.computed=!1),this.finishNode(t,"MethodDefinition")}nameIsConstructor(t){return"Literal"===t.type?"constructor"===t.value:super.nameIsConstructor(t)}parseClassProperty(...t){const e=super.parseClassProperty(...t);return this.getPluginOption("estree","classFeatures")?(e.type="PropertyDefinition",e):e}parseClassPrivateProperty(...t){const e=super.parseClassPrivateProperty(...t);return this.getPluginOption("estree","classFeatures")?(e.type="PropertyDefinition",e.computed=!1,e):e}parseObjectMethod(t,e,s,r,i){const n=super.parseObjectMethod(t,e,s,r,i);return n&&(n.type="Property","method"===n.kind&&(n.kind="init"),n.shorthand=!1),n}parseObjectProperty(t,e,s,r){const i=super.parseObjectProperty(t,e,s,r);return i&&(i.kind="init",i.type="Property"),i}isValidLVal(t,e,s){return"Property"===t?"value":super.isValidLVal(t,e,s)}isAssignable(t,e){return null!=t&&this.isObjectProperty(t)?this.isAssignable(t.value,e):super.isAssignable(t,e)}toAssignable(t,e=!1){if(null!=t&&this.isObjectProperty(t)){const{key:s,value:r}=t;this.isPrivateName(s)&&this.classScope.usePrivateName(this.getPrivateNameSV(s),s.loc.start),this.toAssignable(r,e)}else super.toAssignable(t,e)}toAssignableObjectExpressionProp(t,e,s){"Property"!==t.type||"get"!==t.kind&&"set"!==t.kind?"Property"===t.type&&t.method?this.raise(g.PatternHasMethod,t.key):super.toAssignableObjectExpressionProp(t,e,s):this.raise(g.PatternHasAccessor,t.key)}finishCallExpression(t,e){const s=super.finishCallExpression(t,e);var r,i;"Import"===s.callee.type&&(s.type="ImportExpression",s.source=s.arguments[0],(this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions"))&&(s.options=null!=(r=s.arguments[1])?r:null,s.attributes=null!=(i=s.arguments[1])?i:null),delete s.arguments,delete s.callee);return s}toReferencedArguments(t){"ImportExpression"!==t.type&&super.toReferencedArguments(t)}parseExport(t,e){const s=this.state.lastTokStartLoc,r=super.parseExport(t,e);switch(r.type){case"ExportAllDeclaration":r.exported=null;break;case"ExportNamedDeclaration":1===r.specifiers.length&&"ExportNamespaceSpecifier"===r.specifiers[0].type&&(r.type="ExportAllDeclaration",r.exported=r.specifiers[0].exported,delete r.specifiers);case"ExportDefaultDeclaration":{var i;const{declaration:t}=r;"ClassDeclaration"===(null==t?void 0:t.type)&&(null==(i=t.decorators)?void 0:i.length)>0&&t.start===r.start&&this.resetStartLocation(r,s)}}return r}parseSubscript(t,e,s,r){const i=super.parseSubscript(t,e,s,r);if(r.optionalChainMember){if("OptionalMemberExpression"!==i.type&&"OptionalCallExpression"!==i.type||(i.type=i.type.substring(8)),r.stop){const t=this.startNodeAtNode(i);return t.expression=i,this.finishNode(t,"ChainExpression")}}else"MemberExpression"!==i.type&&"CallExpression"!==i.type||(i.optional=!1);return i}isOptionalMemberExpression(t){return"ChainExpression"===t.type?"MemberExpression"===t.expression.type:super.isOptionalMemberExpression(t)}hasPropertyAsPrivateName(t){return"ChainExpression"===t.type&&(t=t.expression),super.hasPropertyAsPrivateName(t)}isObjectProperty(t){return"Property"===t.type&&"init"===t.kind&&!t.method}isObjectMethod(t){return"Property"===t.type&&(t.method||"get"===t.kind||"set"===t.kind)}finishNodeAt(t,e,s){return b(super.finishNodeAt(t,e,s))}resetStartLocation(t,e){super.resetStartLocation(t,e),b(t)}resetEndLocation(t,e=this.state.lastTokEndLoc){super.resetEndLocation(t,e),b(t)}},jsx:t=>class extends t{jsxReadToken(){let t="",e=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(he.UnterminatedJsxContent,this.state.startLoc);const s=this.input.charCodeAt(this.state.pos);switch(s){case 60:case 123:return this.state.pos===this.state.start?void(60===s&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(142)):super.getTokenFromCode(s)):(t+=this.input.slice(e,this.state.pos),void this.finishToken(141,t));case 38:t+=this.input.slice(e,this.state.pos),t+=this.jsxReadEntity(),e=this.state.pos;break;default:At(s)?(t+=this.input.slice(e,this.state.pos),t+=this.jsxReadNewLine(!0),e=this.state.pos):++this.state.pos}}}jsxReadNewLine(t){const e=this.input.charCodeAt(this.state.pos);let s;return++this.state.pos,13===e&&10===this.input.charCodeAt(this.state.pos)?(++this.state.pos,s=t?"\n":"\r\n"):s=String.fromCharCode(e),++this.state.curLine,this.state.lineStart=this.state.pos,s}jsxReadString(t){let e="",s=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(g.UnterminatedString,this.state.startLoc);const r=this.input.charCodeAt(this.state.pos);if(r===t)break;38===r?(e+=this.input.slice(s,this.state.pos),e+=this.jsxReadEntity(),s=this.state.pos):At(r)?(e+=this.input.slice(s,this.state.pos),e+=this.jsxReadNewLine(!1),s=this.state.pos):++this.state.pos}e+=this.input.slice(s,this.state.pos++),this.finishToken(133,e)}jsxReadEntity(){const t=++this.state.pos;if(35===this.codePointAtPos(this.state.pos)){++this.state.pos;let t=10;120===this.codePointAtPos(this.state.pos)&&(t=16,++this.state.pos);const e=this.readInt(t,void 0,!1,"bail");if(null!==e&&59===this.codePointAtPos(this.state.pos))return++this.state.pos,String.fromCodePoint(e)}else{let e=0,s=!1;for(;e++<10&&this.state.pos<this.length&&!(s=59===this.codePointAtPos(this.state.pos));)++this.state.pos;if(s){const e=this.input.slice(t,this.state.pos),s=le[e];if(++this.state.pos,s)return s}}return this.state.pos=t,"&"}jsxReadWord(){let t;const e=this.state.pos;do{t=this.input.charCodeAt(++this.state.pos)}while(at(t)||45===t);this.finishToken(140,this.input.slice(e,this.state.pos))}jsxParseIdentifier(){const t=this.startNode();return this.match(140)?t.name=this.state.value:q(this.state.type)?t.name=K(this.state.type):this.unexpected(),this.next(),this.finishNode(t,"JSXIdentifier")}jsxParseNamespacedName(){const t=this.state.startLoc,e=this.jsxParseIdentifier();if(!this.eat(14))return e;const s=this.startNodeAt(t);return s.namespace=e,s.name=this.jsxParseIdentifier(),this.finishNode(s,"JSXNamespacedName")}jsxParseElementName(){const t=this.state.startLoc;let e=this.jsxParseNamespacedName();if("JSXNamespacedName"===e.type)return e;for(;this.eat(16);){const s=this.startNodeAt(t);s.object=e,s.property=this.jsxParseIdentifier(),e=this.finishNode(s,"JSXMemberExpression")}return e}jsxParseAttributeValue(){let t;switch(this.state.type){case 5:return t=this.startNode(),this.setContext(P.brace),this.next(),t=this.jsxParseExpressionContainer(t,P.j_oTag),"JSXEmptyExpression"===t.expression.type&&this.raise(he.AttributeIsEmpty,t),t;case 142:case 133:return this.parseExprAtom();default:throw this.raise(he.UnsupportedJsxValue,this.state.startLoc)}}jsxParseEmptyExpression(){const t=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(t,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(t){return this.next(),t.expression=this.parseExpression(),this.setContext(P.j_expr),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(t,"JSXSpreadChild")}jsxParseExpressionContainer(t,e){if(this.match(8))t.expression=this.jsxParseEmptyExpression();else{const e=this.parseExpression();t.expression=e}return this.setContext(e),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(t,"JSXExpressionContainer")}jsxParseAttribute(){const t=this.startNode();return this.match(5)?(this.setContext(P.brace),this.next(),this.expect(21),t.argument=this.parseMaybeAssignAllowIn(),this.setContext(P.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(t,"JSXSpreadAttribute")):(t.name=this.jsxParseNamespacedName(),t.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(t,"JSXAttribute"))}jsxParseOpeningElementAt(t){const e=this.startNodeAt(t);return this.eat(143)?this.finishNode(e,"JSXOpeningFragment"):(e.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(e))}jsxParseOpeningElementAfterName(t){const e=[];for(;!this.match(56)&&!this.match(143);)e.push(this.jsxParseAttribute());return t.attributes=e,t.selfClosing=this.eat(56),this.expect(143),this.finishNode(t,"JSXOpeningElement")}jsxParseClosingElementAt(t){const e=this.startNodeAt(t);return this.eat(143)?this.finishNode(e,"JSXClosingFragment"):(e.name=this.jsxParseElementName(),this.expect(143),this.finishNode(e,"JSXClosingElement"))}jsxParseElementAt(t){const e=this.startNodeAt(t),s=[],r=this.jsxParseOpeningElementAt(t);let i=null;if(!r.selfClosing){t:for(;;)switch(this.state.type){case 142:if(t=this.state.startLoc,this.next(),this.eat(56)){i=this.jsxParseClosingElementAt(t);break t}s.push(this.jsxParseElementAt(t));break;case 141:s.push(this.parseLiteral(this.state.value,"JSXText"));break;case 5:{const t=this.startNode();this.setContext(P.brace),this.next(),this.match(21)?s.push(this.jsxParseSpreadChild(t)):s.push(this.jsxParseExpressionContainer(t,P.j_expr));break}default:this.unexpected()}ue(r)&&!ue(i)&&null!==i?this.raise(he.MissingClosingTagFragment,i):!ue(r)&&ue(i)?this.raise(he.MissingClosingTagElement,i,{openingTagName:pe(r.name)}):ue(r)||ue(i)||pe(i.name)!==pe(r.name)&&this.raise(he.MissingClosingTagElement,i,{openingTagName:pe(r.name)})}if(ue(r)?(e.openingFragment=r,e.closingFragment=i):(e.openingElement=r,e.closingElement=i),e.children=s,this.match(47))throw this.raise(he.UnwrappedAdjacentJSXElements,this.state.startLoc);return ue(r)?this.finishNode(e,"JSXFragment"):this.finishNode(e,"JSXElement")}jsxParseElement(){const t=this.state.startLoc;return this.next(),this.jsxParseElementAt(t)}setContext(t){const{context:e}=this.state;e[e.length-1]=t}parseExprAtom(t){return this.match(142)?this.jsxParseElement():this.match(47)&&33!==this.input.charCodeAt(this.state.pos)?(this.replaceToken(142),this.jsxParseElement()):super.parseExprAtom(t)}skipSpace(){this.curContext().preserveSpace||super.skipSpace()}getTokenFromCode(t){const e=this.curContext();if(e!==P.j_expr){if(e===P.j_oTag||e===P.j_cTag){if(nt(t))return void this.jsxReadWord();if(62===t)return++this.state.pos,void this.finishToken(143);if((34===t||39===t)&&e===P.j_oTag)return void this.jsxReadString(t)}if(60===t&&this.state.canStartJSXElement&&33!==this.input.charCodeAt(this.state.pos+1))return++this.state.pos,void this.finishToken(142);super.getTokenFromCode(t)}else this.jsxReadToken()}updateContext(t){const{context:e,type:s}=this.state;if(56===s&&142===t)e.splice(-2,2,P.j_cTag),this.state.canStartJSXElement=!1;else if(142===s)e.push(P.j_oTag);else if(143===s){const s=e[e.length-1];s===P.j_oTag&&56===t||s===P.j_cTag?(e.pop(),this.state.canStartJSXElement=e[e.length-1]===P.j_expr):(this.setContext(P.j_expr),this.state.canStartJSXElement=!0)}else this.state.canStartJSXElement=F[s]}},flow:t=>class extends t{constructor(...t){super(...t),this.flowPragma=void 0}getScopeHandler(){return xt}shouldParseTypes(){return this.getPluginOption("flow","all")||"flow"===this.flowPragma}shouldParseEnums(){return!!this.getPluginOption("flow","enums")}finishToken(t,e){133!==t&&13!==t&&28!==t&&void 0===this.flowPragma&&(this.flowPragma=null),super.finishToken(t,e)}addComment(t){if(void 0===this.flowPragma){const e=ce.exec(t.value);if(e)if("flow"===e[1])this.flowPragma="flow";else{if("noflow"!==e[1])throw new Error("Unexpected flow pragma");this.flowPragma="noflow"}}super.addComment(t)}flowParseTypeInitialiser(t){const e=this.state.inType;this.state.inType=!0,this.expect(t||14);const s=this.flowParseType();return this.state.inType=e,s}flowParsePredicate(){const t=this.startNode(),e=this.state.startLoc;return this.next(),this.expectContextual(110),this.state.lastTokStartLoc.index>e.index+1&&this.raise(ne.UnexpectedSpaceBetweenModuloChecks,e),this.eat(10)?(t.value=super.parseExpression(),this.expect(11),this.finishNode(t,"DeclaredPredicate")):this.finishNode(t,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){const t=this.state.inType;this.state.inType=!0,this.expect(14);let e=null,s=null;return this.match(54)?(this.state.inType=t,s=this.flowParsePredicate()):(e=this.flowParseType(),this.state.inType=t,this.match(54)&&(s=this.flowParsePredicate())),[e,s]}flowParseDeclareClass(t){return this.next(),this.flowParseInterfaceish(t,!0),this.finishNode(t,"DeclareClass")}flowParseDeclareFunction(t){this.next();const e=t.id=this.parseIdentifier(),s=this.startNode(),r=this.startNode();this.match(47)?s.typeParameters=this.flowParseTypeParameterDeclaration():s.typeParameters=null,this.expect(10);const i=this.flowParseFunctionTypeParams();return s.params=i.params,s.rest=i.rest,s.this=i._this,this.expect(11),[s.returnType,t.predicate]=this.flowParseTypeAndPredicateInitialiser(),r.typeAnnotation=this.finishNode(s,"FunctionTypeAnnotation"),e.typeAnnotation=this.finishNode(r,"TypeAnnotation"),this.resetEndLocation(e),this.semicolon(),this.scope.declareName(t.id.name,2048,t.id.loc.start),this.finishNode(t,"DeclareFunction")}flowParseDeclare(t,e){return this.match(80)?this.flowParseDeclareClass(t):this.match(68)?this.flowParseDeclareFunction(t):this.match(74)?this.flowParseDeclareVariable(t):this.eatContextual(127)?this.match(16)?this.flowParseDeclareModuleExports(t):(e&&this.raise(ne.NestedDeclareModule,this.state.lastTokStartLoc),this.flowParseDeclareModule(t)):this.isContextual(130)?this.flowParseDeclareTypeAlias(t):this.isContextual(131)?this.flowParseDeclareOpaqueType(t):this.isContextual(129)?this.flowParseDeclareInterface(t):this.match(82)?this.flowParseDeclareExportDeclaration(t,e):void this.unexpected()}flowParseDeclareVariable(t){return this.next(),t.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(t.id.name,5,t.id.loc.start),this.semicolon(),this.finishNode(t,"DeclareVariable")}flowParseDeclareModule(t){this.scope.enter(0),this.match(133)?t.id=super.parseExprAtom():t.id=this.parseIdentifier();const e=t.body=this.startNode(),s=e.body=[];for(this.expect(5);!this.match(8);){let t=this.startNode();this.match(83)?(this.next(),this.isContextual(130)||this.match(87)||this.raise(ne.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),super.parseImport(t)):(this.expectContextual(125,ne.UnsupportedStatementInDeclareModule),t=this.flowParseDeclare(t,!0)),s.push(t)}this.scope.exit(),this.expect(8),this.finishNode(e,"BlockStatement");let r=null,i=!1;return s.forEach((t=>{!function(t){return"DeclareExportAllDeclaration"===t.type||"DeclareExportDeclaration"===t.type&&(!t.declaration||"TypeAlias"!==t.declaration.type&&"InterfaceDeclaration"!==t.declaration.type)}(t)?"DeclareModuleExports"===t.type&&(i&&this.raise(ne.DuplicateDeclareModuleExports,t),"ES"===r&&this.raise(ne.AmbiguousDeclareModuleKind,t),r="CommonJS",i=!0):("CommonJS"===r&&this.raise(ne.AmbiguousDeclareModuleKind,t),r="ES")})),t.kind=r||"CommonJS",this.finishNode(t,"DeclareModule")}flowParseDeclareExportDeclaration(t,e){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?t.declaration=this.flowParseDeclare(this.startNode()):(t.declaration=this.flowParseType(),this.semicolon()),t.default=!0,this.finishNode(t,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!e){const t=this.state.value;throw this.raise(ne.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:t,suggestion:oe[t]})}return this.match(74)||this.match(68)||this.match(80)||this.isContextual(131)?(t.declaration=this.flowParseDeclare(this.startNode()),t.default=!1,this.finishNode(t,"DeclareExportDeclaration")):this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131)?("ExportNamedDeclaration"===(t=this.parseExport(t,null)).type&&(t.type="ExportDeclaration",t.default=!1,delete t.exportKind),t.type="Declare"+t.type,t):void this.unexpected()}flowParseDeclareModuleExports(t){return this.next(),this.expectContextual(111),t.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(t,"DeclareModuleExports")}flowParseDeclareTypeAlias(t){this.next();const e=this.flowParseTypeAlias(t);return e.type="DeclareTypeAlias",e}flowParseDeclareOpaqueType(t){this.next();const e=this.flowParseOpaqueType(t,!0);return e.type="DeclareOpaqueType",e}flowParseDeclareInterface(t){return this.next(),this.flowParseInterfaceish(t,!1),this.finishNode(t,"DeclareInterface")}flowParseInterfaceish(t,e){if(t.id=this.flowParseRestrictedIdentifier(!e,!0),this.scope.declareName(t.id.name,e?17:8201,t.id.loc.start),this.match(47)?t.typeParameters=this.flowParseTypeParameterDeclaration():t.typeParameters=null,t.extends=[],this.eat(81))do{t.extends.push(this.flowParseInterfaceExtends())}while(!e&&this.eat(12));if(e){if(t.implements=[],t.mixins=[],this.eatContextual(117))do{t.mixins.push(this.flowParseInterfaceExtends())}while(this.eat(12));if(this.eatContextual(113))do{t.implements.push(this.flowParseInterfaceExtends())}while(this.eat(12))}t.body=this.flowParseObjectType({allowStatic:e,allowExact:!1,allowSpread:!1,allowProto:e,allowInexact:!1})}flowParseInterfaceExtends(){const t=this.startNode();return t.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?t.typeParameters=this.flowParseTypeParameterInstantiation():t.typeParameters=null,this.finishNode(t,"InterfaceExtends")}flowParseInterface(t){return this.flowParseInterfaceish(t,!1),this.finishNode(t,"InterfaceDeclaration")}checkNotUnderscore(t){"_"===t&&this.raise(ne.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(t,e,s){ie.has(t)&&this.raise(s?ne.AssignReservedType:ne.UnexpectedReservedType,e,{reservedType:t})}flowParseRestrictedIdentifier(t,e){return this.checkReservedType(this.state.value,this.state.startLoc,e),this.parseIdentifier(t)}flowParseTypeAlias(t){return t.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(t.id.name,8201,t.id.loc.start),this.match(47)?t.typeParameters=this.flowParseTypeParameterDeclaration():t.typeParameters=null,t.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(t,"TypeAlias")}flowParseOpaqueType(t,e){return this.expectContextual(130),t.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(t.id.name,8201,t.id.loc.start),this.match(47)?t.typeParameters=this.flowParseTypeParameterDeclaration():t.typeParameters=null,t.supertype=null,this.match(14)&&(t.supertype=this.flowParseTypeInitialiser(14)),t.impltype=null,e||(t.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(t,"OpaqueType")}flowParseTypeParameter(t=!1){const e=this.state.startLoc,s=this.startNode(),r=this.flowParseVariance(),i=this.flowParseTypeAnnotatableIdentifier();return s.name=i.name,s.variance=r,s.bound=i.typeAnnotation,this.match(29)?(this.eat(29),s.default=this.flowParseType()):t&&this.raise(ne.MissingTypeParamDefault,e),this.finishNode(s,"TypeParameter")}flowParseTypeParameterDeclaration(){const t=this.state.inType,e=this.startNode();e.params=[],this.state.inType=!0,this.match(47)||this.match(142)?this.next():this.unexpected();let s=!1;do{const t=this.flowParseTypeParameter(s);e.params.push(t),t.default&&(s=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=t,this.finishNode(e,"TypeParameterDeclaration")}flowParseTypeParameterInstantiation(){const t=this.startNode(),e=this.state.inType;t.params=[],this.state.inType=!0,this.expect(47);const s=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)t.params.push(this.flowParseType()),this.match(48)||this.expect(12);return this.state.noAnonFunctionType=s,this.expect(48),this.state.inType=e,this.finishNode(t,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){const t=this.startNode(),e=this.state.inType;for(t.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)t.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=e,this.finishNode(t,"TypeParameterInstantiation")}flowParseInterfaceType(){const t=this.startNode();if(this.expectContextual(129),t.extends=[],this.eat(81))do{t.extends.push(this.flowParseInterfaceExtends())}while(this.eat(12));return t.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(t,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(134)||this.match(133)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(t,e,s){return t.static=e,14===this.lookahead().type?(t.id=this.flowParseObjectPropertyKey(),t.key=this.flowParseTypeInitialiser()):(t.id=null,t.key=this.flowParseType()),this.expect(3),t.value=this.flowParseTypeInitialiser(),t.variance=s,this.finishNode(t,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(t,e){return t.static=e,t.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(t.method=!0,t.optional=!1,t.value=this.flowParseObjectTypeMethodish(this.startNodeAt(t.loc.start))):(t.method=!1,this.eat(17)&&(t.optional=!0),t.value=this.flowParseTypeInitialiser()),this.finishNode(t,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(t){for(t.params=[],t.rest=null,t.typeParameters=null,t.this=null,this.match(47)&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(t.this=this.flowParseFunctionTypeParam(!0),t.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)t.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(t.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),t.returnType=this.flowParseTypeInitialiser(),this.finishNode(t,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(t,e){const s=this.startNode();return t.static=e,t.value=this.flowParseObjectTypeMethodish(s),this.finishNode(t,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:t,allowExact:e,allowSpread:s,allowProto:r,allowInexact:i}){const n=this.state.inType;this.state.inType=!0;const a=this.startNode();let o,c;a.callProperties=[],a.properties=[],a.indexers=[],a.internalSlots=[];let l=!1;for(e&&this.match(6)?(this.expect(6),o=9,c=!0):(this.expect(5),o=8,c=!1),a.exact=c;!this.match(o);){let e=!1,n=null,o=null;const h=this.startNode();if(r&&this.isContextual(118)){const e=this.lookahead();14!==e.type&&17!==e.type&&(this.next(),n=this.state.startLoc,t=!1)}if(t&&this.isContextual(106)){const t=this.lookahead();14!==t.type&&17!==t.type&&(this.next(),e=!0)}const u=this.flowParseVariance();if(this.eat(0))null!=n&&this.unexpected(n),this.eat(0)?(u&&this.unexpected(u.loc.start),a.internalSlots.push(this.flowParseObjectTypeInternalSlot(h,e))):a.indexers.push(this.flowParseObjectTypeIndexer(h,e,u));else if(this.match(10)||this.match(47))null!=n&&this.unexpected(n),u&&this.unexpected(u.loc.start),a.callProperties.push(this.flowParseObjectTypeCallProperty(h,e));else{let t="init";(this.isContextual(99)||this.isContextual(104))&&$(this.lookahead().type)&&(t=this.state.value,this.next());const r=this.flowParseObjectTypeProperty(h,e,n,u,t,s,null!=i?i:!c);null===r?(l=!0,o=this.state.lastTokStartLoc):a.properties.push(r)}this.flowObjectTypeSemicolon(),!o||this.match(8)||this.match(9)||this.raise(ne.UnexpectedExplicitInexactInObject,o)}this.expect(o),s&&(a.inexact=l);const h=this.finishNode(a,"ObjectTypeAnnotation");return this.state.inType=n,h}flowParseObjectTypeProperty(t,e,s,r,i,n,a){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(n?a||this.raise(ne.InexactInsideExact,this.state.lastTokStartLoc):this.raise(ne.InexactInsideNonObject,this.state.lastTokStartLoc),r&&this.raise(ne.InexactVariance,r),null):(n||this.raise(ne.UnexpectedSpreadType,this.state.lastTokStartLoc),null!=s&&this.unexpected(s),r&&this.raise(ne.SpreadVariance,r),t.argument=this.flowParseType(),this.finishNode(t,"ObjectTypeSpreadProperty"));{t.key=this.flowParseObjectPropertyKey(),t.static=e,t.proto=null!=s,t.kind=i;let a=!1;return this.match(47)||this.match(10)?(t.method=!0,null!=s&&this.unexpected(s),r&&this.unexpected(r.loc.start),t.value=this.flowParseObjectTypeMethodish(this.startNodeAt(t.loc.start)),"get"!==i&&"set"!==i||this.flowCheckGetterSetterParams(t),!n&&"constructor"===t.key.name&&t.value.this&&this.raise(ne.ThisParamBannedInConstructor,t.value.this)):("init"!==i&&this.unexpected(),t.method=!1,this.eat(17)&&(a=!0),t.value=this.flowParseTypeInitialiser(),t.variance=r),t.optional=a,this.finishNode(t,"ObjectTypeProperty")}}flowCheckGetterSetterParams(t){const e="get"===t.kind?0:1,s=t.value.params.length+(t.value.rest?1:0);t.value.this&&this.raise("get"===t.kind?ne.GetterMayNotHaveThisParam:ne.SetterMayNotHaveThisParam,t.value.this),s!==e&&this.raise("get"===t.kind?g.BadGetterArity:g.BadSetterArity,t),"set"===t.kind&&t.value.rest&&this.raise(g.BadSetterRestParameter,t)}flowObjectTypeSemicolon(){this.eat(13)||this.eat(12)||this.match(8)||this.match(9)||this.unexpected()}flowParseQualifiedTypeIdentifier(t,e){null!=t||(t=this.state.startLoc);let s=e||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){const e=this.startNodeAt(t);e.qualification=s,e.id=this.flowParseRestrictedIdentifier(!0),s=this.finishNode(e,"QualifiedTypeIdentifier")}return s}flowParseGenericType(t,e){const s=this.startNodeAt(t);return s.typeParameters=null,s.id=this.flowParseQualifiedTypeIdentifier(t,e),this.match(47)&&(s.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(s,"GenericTypeAnnotation")}flowParseTypeofType(){const t=this.startNode();return this.expect(87),t.argument=this.flowParsePrimaryType(),this.finishNode(t,"TypeofTypeAnnotation")}flowParseTupleType(){const t=this.startNode();for(t.types=[],this.expect(0);this.state.pos<this.length&&!this.match(3)&&(t.types.push(this.flowParseType()),!this.match(3));)this.expect(12);return this.expect(3),this.finishNode(t,"TupleTypeAnnotation")}flowParseFunctionTypeParam(t){let e=null,s=!1,r=null;const i=this.startNode(),n=this.lookahead(),a=78===this.state.type;return 14===n.type||17===n.type?(a&&!t&&this.raise(ne.ThisParamMustBeFirst,i),e=this.parseIdentifier(a),this.eat(17)&&(s=!0,a&&this.raise(ne.ThisParamMayNotBeOptional,i)),r=this.flowParseTypeInitialiser()):r=this.flowParseType(),i.name=e,i.optional=s,i.typeAnnotation=r,this.finishNode(i,"FunctionTypeParam")}reinterpretTypeAsFunctionTypeParam(t){const e=this.startNodeAt(t.loc.start);return e.name=null,e.optional=!1,e.typeAnnotation=t,this.finishNode(e,"FunctionTypeParam")}flowParseFunctionTypeParams(t=[]){let e=null,s=null;for(this.match(78)&&(s=this.flowParseFunctionTypeParam(!0),s.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)t.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(e=this.flowParseFunctionTypeParam(!1)),{params:t,rest:e,_this:s}}flowIdentToTypeAnnotation(t,e,s){switch(s.name){case"any":return this.finishNode(e,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(e,"BooleanTypeAnnotation");case"mixed":return this.finishNode(e,"MixedTypeAnnotation");case"empty":return this.finishNode(e,"EmptyTypeAnnotation");case"number":return this.finishNode(e,"NumberTypeAnnotation");case"string":return this.finishNode(e,"StringTypeAnnotation");case"symbol":return this.finishNode(e,"SymbolTypeAnnotation");default:return this.checkNotUnderscore(s.name),this.flowParseGenericType(t,s)}}flowParsePrimaryType(){const t=this.state.startLoc,e=this.startNode();let s,r,i=!1;const n=this.state.noAnonFunctionType;switch(this.state.type){case 5:return this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!0,allowProto:!1,allowInexact:!0});case 6:return this.flowParseObjectType({allowStatic:!1,allowExact:!0,allowSpread:!0,allowProto:!1,allowInexact:!1});case 0:return this.state.noAnonFunctionType=!1,r=this.flowParseTupleType(),this.state.noAnonFunctionType=n,r;case 47:{const t=this.startNode();return t.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(10),s=this.flowParseFunctionTypeParams(),t.params=s.params,t.rest=s.rest,t.this=s._this,this.expect(11),this.expect(19),t.returnType=this.flowParseType(),this.finishNode(t,"FunctionTypeAnnotation")}case 10:{const t=this.startNode();if(this.next(),!this.match(11)&&!this.match(21))if(H(this.state.type)||this.match(78)){const t=this.lookahead().type;i=17!==t&&14!==t}else i=!0;if(i){if(this.state.noAnonFunctionType=!1,r=this.flowParseType(),this.state.noAnonFunctionType=n,this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&19===this.lookahead().type))return this.expect(11),r;this.eat(12)}return s=r?this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(r)]):this.flowParseFunctionTypeParams(),t.params=s.params,t.rest=s.rest,t.this=s._this,this.expect(11),this.expect(19),t.returnType=this.flowParseType(),t.typeParameters=null,this.finishNode(t,"FunctionTypeAnnotation")}case 133:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case 85:case 86:return e.value=this.match(85),this.next(),this.finishNode(e,"BooleanLiteralTypeAnnotation");case 53:if("-"===this.state.value){if(this.next(),this.match(134))return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",e);if(this.match(135))return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",e);throw this.raise(ne.UnexpectedSubtractionOperand,this.state.startLoc)}return void this.unexpected();case 134:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case 135:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case 88:return this.next(),this.finishNode(e,"VoidTypeAnnotation");case 84:return this.next(),this.finishNode(e,"NullLiteralTypeAnnotation");case 78:return this.next(),this.finishNode(e,"ThisTypeAnnotation");case 55:return this.next(),this.finishNode(e,"ExistsTypeAnnotation");case 87:return this.flowParseTypeofType();default:if(q(this.state.type)){const t=K(this.state.type);return this.next(),super.createIdentifier(e,t)}if(H(this.state.type))return this.isContextual(129)?this.flowParseInterfaceType():this.flowIdentToTypeAnnotation(t,e,this.parseIdentifier())}this.unexpected()}flowParsePostfixType(){const t=this.state.startLoc;let e=this.flowParsePrimaryType(),s=!1;for(;(this.match(0)||this.match(18))&&!this.canInsertSemicolon();){const r=this.startNodeAt(t),i=this.eat(18);s=s||i,this.expect(0),!i&&this.match(3)?(r.elementType=e,this.next(),e=this.finishNode(r,"ArrayTypeAnnotation")):(r.objectType=e,r.indexType=this.flowParseType(),this.expect(3),s?(r.optional=i,e=this.finishNode(r,"OptionalIndexedAccessType")):e=this.finishNode(r,"IndexedAccessType"))}return e}flowParsePrefixType(){const t=this.startNode();return this.eat(17)?(t.typeAnnotation=this.flowParsePrefixType(),this.finishNode(t,"NullableTypeAnnotation")):this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){const t=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){const e=this.startNodeAt(t.loc.start);return e.params=[this.reinterpretTypeAsFunctionTypeParam(t)],e.rest=null,e.this=null,e.returnType=this.flowParseType(),e.typeParameters=null,this.finishNode(e,"FunctionTypeAnnotation")}return t}flowParseIntersectionType(){const t=this.startNode();this.eat(45);const e=this.flowParseAnonFunctionWithoutParens();for(t.types=[e];this.eat(45);)t.types.push(this.flowParseAnonFunctionWithoutParens());return 1===t.types.length?e:this.finishNode(t,"IntersectionTypeAnnotation")}flowParseUnionType(){const t=this.startNode();this.eat(43);const e=this.flowParseIntersectionType();for(t.types=[e];this.eat(43);)t.types.push(this.flowParseIntersectionType());return 1===t.types.length?e:this.finishNode(t,"UnionTypeAnnotation")}flowParseType(){const t=this.state.inType;this.state.inType=!0;const e=this.flowParseUnionType();return this.state.inType=t,e}flowParseTypeOrImplicitInstantiation(){if(132===this.state.type&&"_"===this.state.value){const t=this.state.startLoc,e=this.parseIdentifier();return this.flowParseGenericType(t,e)}return this.flowParseType()}flowParseTypeAnnotation(){const t=this.startNode();return t.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(t,"TypeAnnotation")}flowParseTypeAnnotatableIdentifier(t){const e=t?this.parseIdentifier():this.flowParseRestrictedIdentifier();return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(e)),e}typeCastToParameter(t){return t.expression.typeAnnotation=t.typeAnnotation,this.resetEndLocation(t.expression,t.typeAnnotation.loc.end),t.expression}flowParseVariance(){let t=null;return this.match(53)?(t=this.startNode(),"+"===this.state.value?t.kind="plus":t.kind="minus",this.next(),this.finishNode(t,"Variance")):t}parseFunctionBody(t,e,s=!1){e?this.forwardNoArrowParamsConversionAt(t,(()=>super.parseFunctionBody(t,!0,s))):super.parseFunctionBody(t,!1,s)}parseFunctionBodyAndFinish(t,e,s=!1){if(this.match(14)){const e=this.startNode();[e.typeAnnotation,t.predicate]=this.flowParseTypeAndPredicateInitialiser(),t.returnType=e.typeAnnotation?this.finishNode(e,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(t,e,s)}parseStatementLike(t){if(this.state.strict&&this.isContextual(129)){if(W(this.lookahead().type)){const t=this.startNode();return this.next(),this.flowParseInterface(t)}}else if(this.shouldParseEnums()&&this.isContextual(126)){const t=this.startNode();return this.next(),this.flowParseEnumDeclaration(t)}const e=super.parseStatementLike(t);return void 0!==this.flowPragma||this.isValidDirective(e)||(this.flowPragma=null),e}parseExpressionStatement(t,e,s){if("Identifier"===e.type)if("declare"===e.name){if(this.match(80)||H(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(t)}else if(H(this.state.type)){if("interface"===e.name)return this.flowParseInterface(t);if("type"===e.name)return this.flowParseTypeAlias(t);if("opaque"===e.name)return this.flowParseOpaqueType(t,!1)}return super.parseExpressionStatement(t,e,s)}shouldParseExportDeclaration(){const{type:t}=this.state;return V(t)||this.shouldParseEnums()&&126===t?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){const{type:t}=this.state;return V(t)||this.shouldParseEnums()&&126===t?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.shouldParseEnums()&&this.isContextual(126)){const t=this.startNode();return this.next(),this.flowParseEnumDeclaration(t)}return super.parseExportDefaultExpression()}parseConditional(t,e,s){if(!this.match(17))return t;if(this.state.maybeInArrowParameters){const e=this.lookaheadCharCode();if(44===e||61===e||58===e||41===e)return this.setOptionalParametersError(s),t}this.expect(17);const r=this.state.clone(),i=this.state.noArrowAt,n=this.startNodeAt(e);let{consequent:a,failed:o}=this.tryParseConditionalConsequent(),[c,l]=this.getArrowLikeExpressions(a);if(o||l.length>0){const t=[...i];if(l.length>0){this.state=r,this.state.noArrowAt=t;for(let e=0;e<l.length;e++)t.push(l[e].start);({consequent:a,failed:o}=this.tryParseConditionalConsequent()),[c,l]=this.getArrowLikeExpressions(a)}o&&c.length>1&&this.raise(ne.AmbiguousConditionalArrow,r.startLoc),o&&1===c.length&&(this.state=r,t.push(c[0].start),this.state.noArrowAt=t,({consequent:a,failed:o}=this.tryParseConditionalConsequent()))}return this.getArrowLikeExpressions(a,!0),this.state.noArrowAt=i,this.expect(14),n.test=t,n.consequent=a,n.alternate=this.forwardNoArrowParamsConversionAt(n,(()=>this.parseMaybeAssign(void 0,void 0))),this.finishNode(n,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);const t=this.parseMaybeAssignAllowIn(),e=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:t,failed:e}}getArrowLikeExpressions(t,e){const s=[t],r=[];for(;0!==s.length;){const t=s.pop();"ArrowFunctionExpression"===t.type&&"BlockStatement"!==t.body.type?(t.typeParameters||!t.returnType?this.finishArrowValidation(t):r.push(t),s.push(t.body)):"ConditionalExpression"===t.type&&(s.push(t.consequent),s.push(t.alternate))}return e?(r.forEach((t=>this.finishArrowValidation(t))),[r,[]]):function(t,e){const s=[],r=[];for(let i=0;i<t.length;i++)(e(t[i])?s:r).push(t[i]);return[s,r]}(r,(t=>t.params.every((t=>this.isAssignable(t,!0)))))}finishArrowValidation(t){var e;this.toAssignableList(t.params,null==(e=t.extra)?void 0:e.trailingCommaLoc,!1),this.scope.enter(6),super.checkParams(t,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(t,e){let s;return this.state.noArrowParamsConversionAt.includes(t.start)?(this.state.noArrowParamsConversionAt.push(this.state.start),s=e(),this.state.noArrowParamsConversionAt.pop()):s=e(),s}parseParenItem(t,e){const s=super.parseParenItem(t,e);if(this.eat(17)&&(s.optional=!0,this.resetEndLocation(t)),this.match(14)){const t=this.startNodeAt(e);return t.expression=s,t.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(t,"TypeCastExpression")}return s}assertModuleNodeAllowed(t){"ImportDeclaration"===t.type&&("type"===t.importKind||"typeof"===t.importKind)||"ExportNamedDeclaration"===t.type&&"type"===t.exportKind||"ExportAllDeclaration"===t.type&&"type"===t.exportKind||super.assertModuleNodeAllowed(t)}parseExportDeclaration(t){if(this.isContextual(130)){t.exportKind="type";const e=this.startNode();return this.next(),this.match(5)?(t.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(t),null):this.flowParseTypeAlias(e)}if(this.isContextual(131)){t.exportKind="type";const e=this.startNode();return this.next(),this.flowParseOpaqueType(e,!1)}if(this.isContextual(129)){t.exportKind="type";const e=this.startNode();return this.next(),this.flowParseInterface(e)}if(this.shouldParseEnums()&&this.isContextual(126)){t.exportKind="value";const e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}return super.parseExportDeclaration(t)}eatExportStar(t){return!!super.eatExportStar(t)||!(!this.isContextual(130)||55!==this.lookahead().type)&&(t.exportKind="type",this.next(),this.next(),!0)}maybeParseExportNamespaceSpecifier(t){const{startLoc:e}=this.state,s=super.maybeParseExportNamespaceSpecifier(t);return s&&"type"===t.exportKind&&this.unexpected(e),s}parseClassId(t,e,s){super.parseClassId(t,e,s),this.match(47)&&(t.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(t,e,s){const{startLoc:r}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(t,e))return;e.declare=!0}super.parseClassMember(t,e,s),e.declare&&("ClassProperty"!==e.type&&"ClassPrivateProperty"!==e.type&&"PropertyDefinition"!==e.type?this.raise(ne.DeclareClassElement,r):e.value&&this.raise(ne.DeclareClassFieldInitializer,e.value))}isIterator(t){return"iterator"===t||"asyncIterator"===t}readIterator(){const t=super.readWord1(),e="@@"+t;this.isIterator(t)&&this.state.inType||this.raise(g.InvalidIdentifier,this.state.curPosition(),{identifierName:e}),this.finishToken(132,e)}getTokenFromCode(t){const e=this.input.charCodeAt(this.state.pos+1);123===t&&124===e?this.finishOp(6,2):!this.state.inType||62!==t&&60!==t?this.state.inType&&63===t?46===e?this.finishOp(18,2):this.finishOp(17,1):function(t,e,s){return 64===t&&64===e&&nt(s)}(t,e,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(t):this.finishOp(62===t?48:47,1)}isAssignable(t,e){return"TypeCastExpression"===t.type?this.isAssignable(t.expression,e):super.isAssignable(t,e)}toAssignable(t,e=!1){e||"AssignmentExpression"!==t.type||"TypeCastExpression"!==t.left.type||(t.left=this.typeCastToParameter(t.left)),super.toAssignable(t,e)}toAssignableList(t,e,s){for(let e=0;e<t.length;e++){const s=t[e];"TypeCastExpression"===(null==s?void 0:s.type)&&(t[e]=this.typeCastToParameter(s))}super.toAssignableList(t,e,s)}toReferencedList(t,e){for(let r=0;r<t.length;r++){var s;const i=t[r];!i||"TypeCastExpression"!==i.type||null!=(s=i.extra)&&s.parenthesized||!(t.length>1)&&e||this.raise(ne.TypeCastInPattern,i.typeAnnotation)}return t}parseArrayLike(t,e,s,r){const i=super.parseArrayLike(t,e,s,r);return e&&!this.state.maybeInArrowParameters&&this.toReferencedList(i.elements),i}isValidLVal(t,e,s){return"TypeCastExpression"===t||super.isValidLVal(t,e,s)}parseClassProperty(t){return this.match(14)&&(t.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(t)}parseClassPrivateProperty(t){return this.match(14)&&(t.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(t)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(t){return!this.match(14)&&super.isNonstaticConstructor(t)}pushClassMethod(t,e,s,r,i,n){if(e.variance&&this.unexpected(e.variance.loc.start),delete e.variance,this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(t,e,s,r,i,n),e.params&&i){const t=e.params;t.length>0&&this.isThisParam(t[0])&&this.raise(ne.ThisParamBannedInConstructor,e)}else if("MethodDefinition"===e.type&&i&&e.value.params){const t=e.value.params;t.length>0&&this.isThisParam(t[0])&&this.raise(ne.ThisParamBannedInConstructor,e)}}pushClassPrivateMethod(t,e,s,r){e.variance&&this.unexpected(e.variance.loc.start),delete e.variance,this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(t,e,s,r)}parseClassSuper(t){if(super.parseClassSuper(t),t.superClass&&this.match(47)&&(t.superTypeParameters=this.flowParseTypeParameterInstantiation()),this.isContextual(113)){this.next();const e=t.implements=[];do{const t=this.startNode();t.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?t.typeParameters=this.flowParseTypeParameterInstantiation():t.typeParameters=null,e.push(this.finishNode(t,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(t){super.checkGetterSetterParams(t);const e=this.getObjectOrClassMethodParams(t);if(e.length>0){const s=e[0];this.isThisParam(s)&&"get"===t.kind?this.raise(ne.GetterMayNotHaveThisParam,s):this.isThisParam(s)&&this.raise(ne.SetterMayNotHaveThisParam,s)}}parsePropertyNamePrefixOperator(t){t.variance=this.flowParseVariance()}parseObjPropValue(t,e,s,r,i,n,a){let o;t.variance&&this.unexpected(t.variance.loc.start),delete t.variance,this.match(47)&&!n&&(o=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());const c=super.parseObjPropValue(t,e,s,r,i,n,a);return o&&((c.value||c).typeParameters=o),c}parseAssignableListItemTypes(t){return this.eat(17)&&("Identifier"!==t.type&&this.raise(ne.PatternIsOptional,t),this.isThisParam(t)&&this.raise(ne.ThisParamMayNotBeOptional,t),t.optional=!0),this.match(14)?t.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(t)&&this.raise(ne.ThisParamAnnotationRequired,t),this.match(29)&&this.isThisParam(t)&&this.raise(ne.ThisParamNoDefault,t),this.resetEndLocation(t),t}parseMaybeDefault(t,e){const s=super.parseMaybeDefault(t,e);return"AssignmentPattern"===s.type&&s.typeAnnotation&&s.right.start<s.typeAnnotation.start&&this.raise(ne.TypeBeforeInitializer,s.typeAnnotation),s}checkImportReflection(t){super.checkImportReflection(t),t.module&&"value"!==t.importKind&&this.raise(ne.ImportReflectionHasImportType,t.specifiers[0].loc.start)}parseImportSpecifierLocal(t,e,s){e.local=ae(t)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),t.specifiers.push(this.finishImportSpecifier(e,s))}isPotentialImportPhase(t){if(super.isPotentialImportPhase(t))return!0;if(this.isContextual(130)){if(!t)return!0;const e=this.lookaheadCharCode();return 123===e||42===e}return!t&&this.isContextual(87)}applyImportPhase(t,e,s,r){if(super.applyImportPhase(t,e,s,r),e){if(!s&&this.match(65))return;t.exportKind="type"===s?s:"value"}else"type"===s&&this.match(55)&&this.unexpected(),t.importKind="type"===s||"typeof"===s?s:"value"}parseImportSpecifier(t,e,s,r,i){const n=t.imported;let a=null;"Identifier"===n.type&&("type"===n.name?a="type":"typeof"===n.name&&(a="typeof"));let o=!1;if(this.isContextual(93)&&!this.isLookaheadContextual("as")){const e=this.parseIdentifier(!0);null===a||W(this.state.type)?(t.imported=n,t.importKind=null,t.local=this.parseIdentifier()):(t.imported=e,t.importKind=a,t.local=se(e))}else{if(null!==a&&W(this.state.type))t.imported=this.parseIdentifier(!0),t.importKind=a;else{if(e)throw this.raise(g.ImportBindingIsString,t,{importName:n.value});t.imported=n,t.importKind=null}this.eatContextual(93)?t.local=this.parseIdentifier():(o=!0,t.local=se(t.imported))}const c=ae(t);return s&&c&&this.raise(ne.ImportTypeShorthandOnlyInPureImport,t),(s||c)&&this.checkReservedType(t.local.name,t.local.loc.start,!0),!o||s||c||this.checkReservedWord(t.local.name,t.loc.start,!0,!0),this.finishImportSpecifier(t,"ImportSpecifier")}parseBindingAtom(){return 78===this.state.type?this.parseIdentifier(!0):super.parseBindingAtom()}parseFunctionParams(t,e){const s=t.kind;"get"!==s&&"set"!==s&&this.match(47)&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),super.parseFunctionParams(t,e)}parseVarId(t,e){super.parseVarId(t,e),this.match(14)&&(t.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(t.id))}parseAsyncArrowFromCallExpression(t,e){if(this.match(14)){const e=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,t.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=e}return super.parseAsyncArrowFromCallExpression(t,e)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}parseMaybeAssign(t,e){var s;let r,i=null;if(this.hasPlugin("jsx")&&(this.match(142)||this.match(47))){if(i=this.state.clone(),r=this.tryParse((()=>super.parseMaybeAssign(t,e)),i),!r.error)return r.node;const{context:s}=this.state,n=s[s.length-1];n!==P.j_oTag&&n!==P.j_expr||s.pop()}if(null!=(s=r)&&s.error||this.match(47)){var n,a;let s;i=i||this.state.clone();const o=this.tryParse((r=>{var i;s=this.flowParseTypeParameterDeclaration();const n=this.forwardNoArrowParamsConversionAt(s,(()=>{const r=super.parseMaybeAssign(t,e);return this.resetStartLocationFromNode(r,s),r}));null!=(i=n.extra)&&i.parenthesized&&r();const a=this.maybeUnwrapTypeCastExpression(n);return"ArrowFunctionExpression"!==a.type&&r(),a.typeParameters=s,this.resetStartLocationFromNode(a,s),n}),i);let c=null;if(o.node&&"ArrowFunctionExpression"===this.maybeUnwrapTypeCastExpression(o.node).type){if(!o.error&&!o.aborted)return o.node.async&&this.raise(ne.UnexpectedTypeParameterBeforeAsyncArrowFunction,s),o.node;c=o.node}if(null!=(n=r)&&n.node)return this.state=r.failState,r.node;if(c)return this.state=o.failState,c;if(null!=(a=r)&&a.thrown)throw r.error;if(o.thrown)throw o.error;throw this.raise(ne.UnexpectedTokenAfterTypeParameter,s)}return super.parseMaybeAssign(t,e)}parseArrow(t){if(this.match(14)){const e=this.tryParse((()=>{const e=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;const s=this.startNode();return[s.typeAnnotation,t.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=e,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),s}));if(e.thrown)return null;e.error&&(this.state=e.failState),t.returnType=e.node.typeAnnotation?this.finishNode(e.node,"TypeAnnotation"):null}return super.parseArrow(t)}shouldParseArrow(t){return this.match(14)||super.shouldParseArrow(t)}setArrowFunctionParameters(t,e){this.state.noArrowParamsConversionAt.includes(t.start)?t.params=e:super.setArrowFunctionParameters(t,e)}checkParams(t,e,s,r=!0){if(!s||!this.state.noArrowParamsConversionAt.includes(t.start)){for(let e=0;e<t.params.length;e++)this.isThisParam(t.params[e])&&e>0&&this.raise(ne.ThisParamMustBeFirst,t.params[e]);super.checkParams(t,e,s,r)}}parseParenAndDistinguishExpression(t){return super.parseParenAndDistinguishExpression(t&&!this.state.noArrowAt.includes(this.state.start))}parseSubscripts(t,e,s){if("Identifier"===t.type&&"async"===t.name&&this.state.noArrowAt.includes(e.index)){this.next();const s=this.startNodeAt(e);s.callee=t,s.arguments=super.parseCallExpressionArguments(11,!1),t=this.finishNode(s,"CallExpression")}else if("Identifier"===t.type&&"async"===t.name&&this.match(47)){const r=this.state.clone(),i=this.tryParse((t=>this.parseAsyncArrowWithTypeParameters(e)||t()),r);if(!i.error&&!i.aborted)return i.node;const n=this.tryParse((()=>super.parseSubscripts(t,e,s)),r);if(n.node&&!n.error)return n.node;if(i.node)return this.state=i.failState,i.node;if(n.node)return this.state=n.failState,n.node;throw i.error||n.error}return super.parseSubscripts(t,e,s)}parseSubscript(t,e,s,r){if(this.match(18)&&this.isLookaheadToken_lt()){if(r.optionalChainMember=!0,s)return r.stop=!0,t;this.next();const i=this.startNodeAt(e);return i.callee=t,i.typeArguments=this.flowParseTypeParameterInstantiation(),this.expect(10),i.arguments=this.parseCallExpressionArguments(11,!1),i.optional=!0,this.finishCallExpression(i,!0)}if(!s&&this.shouldParseTypes()&&this.match(47)){const s=this.startNodeAt(e);s.callee=t;const i=this.tryParse((()=>(s.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),s.arguments=super.parseCallExpressionArguments(11,!1),r.optionalChainMember&&(s.optional=!1),this.finishCallExpression(s,r.optionalChainMember))));if(i.node)return i.error&&(this.state=i.failState),i.node}return super.parseSubscript(t,e,s,r)}parseNewCallee(t){super.parseNewCallee(t);let e=null;this.shouldParseTypes()&&this.match(47)&&(e=this.tryParse((()=>this.flowParseTypeParameterInstantiationCallOrNew())).node),t.typeArguments=e}parseAsyncArrowWithTypeParameters(t){const e=this.startNodeAt(t);if(this.parseFunctionParams(e,!1),this.parseArrow(e))return super.parseArrowExpression(e,void 0,!0)}readToken_mult_modulo(t){const e=this.input.charCodeAt(this.state.pos+1);if(42===t&&47===e&&this.state.hasFlowComment)return this.state.hasFlowComment=!1,this.state.pos+=2,void this.nextToken();super.readToken_mult_modulo(t)}readToken_pipe_amp(t){const e=this.input.charCodeAt(this.state.pos+1);124!==t||125!==e?super.readToken_pipe_amp(t):this.finishOp(9,2)}parseTopLevel(t,e){const s=super.parseTopLevel(t,e);return this.state.hasFlowComment&&this.raise(ne.UnterminatedFlowComment,this.state.curPosition()),s}skipBlockComment(){if(!this.hasPlugin("flowComments")||!this.skipFlowComment())return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/");{if(this.state.hasFlowComment)throw this.raise(ne.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();const t=this.skipFlowComment();t&&(this.state.pos+=t,this.state.hasFlowComment=!0)}}skipFlowComment(){const{pos:t}=this.state;let e=2;for(;[32,9].includes(this.input.charCodeAt(t+e));)e++;const s=this.input.charCodeAt(e+t),r=this.input.charCodeAt(e+t+1);return 58===s&&58===r?e+2:"flow-include"===this.input.slice(e+t,e+t+12)?e+12:58===s&&58!==r&&e}hasFlowCommentCompletion(){if(-1===this.input.indexOf("*/",this.state.pos))throw this.raise(g.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(t,{enumName:e,memberName:s}){this.raise(ne.EnumBooleanMemberNotInitialized,t,{memberName:s,enumName:e})}flowEnumErrorInvalidMemberInitializer(t,e){return this.raise(e.explicitType?"symbol"===e.explicitType?ne.EnumInvalidMemberInitializerSymbolType:ne.EnumInvalidMemberInitializerPrimaryType:ne.EnumInvalidMemberInitializerUnknownType,t,e)}flowEnumErrorNumberMemberNotInitialized(t,e){this.raise(ne.EnumNumberMemberNotInitialized,t,e)}flowEnumErrorStringMemberInconsistentlyInitialized(t,e){this.raise(ne.EnumStringMemberInconsistentlyInitialized,t,e)}flowEnumMemberInit(){const t=this.state.startLoc,e=()=>this.match(12)||this.match(8);switch(this.state.type){case 134:{const s=this.parseNumericLiteral(this.state.value);return e()?{type:"number",loc:s.loc.start,value:s}:{type:"invalid",loc:t}}case 133:{const s=this.parseStringLiteral(this.state.value);return e()?{type:"string",loc:s.loc.start,value:s}:{type:"invalid",loc:t}}case 85:case 86:{const s=this.parseBooleanLiteral(this.match(85));return e()?{type:"boolean",loc:s.loc.start,value:s}:{type:"invalid",loc:t}}default:return{type:"invalid",loc:t}}}flowEnumMemberRaw(){const t=this.state.startLoc;return{id:this.parseIdentifier(!0),init:this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:t}}}flowEnumCheckExplicitTypeMismatch(t,e,s){const{explicitType:r}=e;null!==r&&r!==s&&this.flowEnumErrorInvalidMemberInitializer(t,e)}flowEnumMembers({enumName:t,explicitType:e}){const s=new Set,r={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]};let i=!1;for(;!this.match(8);){if(this.eat(21)){i=!0;break}const n=this.startNode(),{id:a,init:o}=this.flowEnumMemberRaw(),c=a.name;if(""===c)continue;/^[a-z]/.test(c)&&this.raise(ne.EnumInvalidMemberName,a,{memberName:c,suggestion:c[0].toUpperCase()+c.slice(1),enumName:t}),s.has(c)&&this.raise(ne.EnumDuplicateMemberName,a,{memberName:c,enumName:t}),s.add(c);const l={enumName:t,explicitType:e,memberName:c};switch(n.id=a,o.type){case"boolean":this.flowEnumCheckExplicitTypeMismatch(o.loc,l,"boolean"),n.init=o.value,r.booleanMembers.push(this.finishNode(n,"EnumBooleanMember"));break;case"number":this.flowEnumCheckExplicitTypeMismatch(o.loc,l,"number"),n.init=o.value,r.numberMembers.push(this.finishNode(n,"EnumNumberMember"));break;case"string":this.flowEnumCheckExplicitTypeMismatch(o.loc,l,"string"),n.init=o.value,r.stringMembers.push(this.finishNode(n,"EnumStringMember"));break;case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(o.loc,l);case"none":switch(e){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(o.loc,l);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(o.loc,l);break;default:r.defaultedMembers.push(this.finishNode(n,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}return{members:r,hasUnknownMembers:i}}flowEnumStringMembers(t,e,{enumName:s}){if(0===t.length)return e;if(0===e.length)return t;if(e.length>t.length){for(const e of t)this.flowEnumErrorStringMemberInconsistentlyInitialized(e,{enumName:s});return e}for(const t of e)this.flowEnumErrorStringMemberInconsistentlyInitialized(t,{enumName:s});return t}flowEnumParseExplicitType({enumName:t}){if(!this.eatContextual(102))return null;if(!H(this.state.type))throw this.raise(ne.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:t});const{value:e}=this.state;return this.next(),"boolean"!==e&&"number"!==e&&"string"!==e&&"symbol"!==e&&this.raise(ne.EnumInvalidExplicitType,this.state.startLoc,{enumName:t,invalidEnumType:e}),e}flowEnumBody(t,e){const s=e.name,r=e.loc.start,i=this.flowEnumParseExplicitType({enumName:s});this.expect(5);const{members:n,hasUnknownMembers:a}=this.flowEnumMembers({enumName:s,explicitType:i});switch(t.hasUnknownMembers=a,i){case"boolean":return t.explicitType=!0,t.members=n.booleanMembers,this.expect(8),this.finishNode(t,"EnumBooleanBody");case"number":return t.explicitType=!0,t.members=n.numberMembers,this.expect(8),this.finishNode(t,"EnumNumberBody");case"string":return t.explicitType=!0,t.members=this.flowEnumStringMembers(n.stringMembers,n.defaultedMembers,{enumName:s}),this.expect(8),this.finishNode(t,"EnumStringBody");case"symbol":return t.members=n.defaultedMembers,this.expect(8),this.finishNode(t,"EnumSymbolBody");default:{const e=()=>(t.members=[],this.expect(8),this.finishNode(t,"EnumStringBody"));t.explicitType=!1;const i=n.booleanMembers.length,a=n.numberMembers.length,o=n.stringMembers.length,c=n.defaultedMembers.length;if(i||a||o||c){if(i||a){if(!a&&!o&&i>=c){for(const t of n.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(t.loc.start,{enumName:s,memberName:t.id.name});return t.members=n.booleanMembers,this.expect(8),this.finishNode(t,"EnumBooleanBody")}if(!i&&!o&&a>=c){for(const t of n.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(t.loc.start,{enumName:s,memberName:t.id.name});return t.members=n.numberMembers,this.expect(8),this.finishNode(t,"EnumNumberBody")}return this.raise(ne.EnumInconsistentMemberValues,r,{enumName:s}),e()}return t.members=this.flowEnumStringMembers(n.stringMembers,n.defaultedMembers,{enumName:s}),this.expect(8),this.finishNode(t,"EnumStringBody")}return e()}}}flowParseEnumDeclaration(t){const e=this.parseIdentifier();return t.id=e,t.body=this.flowEnumBody(this.startNode(),e),this.finishNode(t,"EnumDeclaration")}isLookaheadToken_lt(){const t=this.nextTokenStart();if(60===this.input.charCodeAt(t)){const e=this.input.charCodeAt(t+1);return 60!==e&&61!==e}return!1}maybeUnwrapTypeCastExpression(t){return"TypeCastExpression"===t.type?t.expression:t}},typescript:t=>class extends t{constructor(...t){super(...t),this.tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:xe.InvalidModifierOnTypeParameter}),this.tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:xe.InvalidModifierOnTypeParameterPositions}),this.tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:xe.InvalidModifierOnTypeParameter})}getScopeHandler(){return fe}tsIsIdentifier(){return H(this.state.type)}tsTokenCanFollowModifier(){return this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(138)||this.isLiteralPropertyName()}tsNextTokenOnSameLineAndCanFollowModifier(){return this.next(),!this.hasPrecedingLineBreak()&&this.tsTokenCanFollowModifier()}tsNextTokenCanFollowModifier(){return this.match(106)?(this.next(),this.tsTokenCanFollowModifier()):this.tsNextTokenOnSameLineAndCanFollowModifier()}tsParseModifier(t,e){if(!H(this.state.type)&&58!==this.state.type&&75!==this.state.type)return;const s=this.state.value;if(t.includes(s)){if(e&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return s}}tsParseModifiers({allowedModifiers:t,disallowedModifiers:e,stopOnStartOfClassStaticBlock:s,errorTemplate:r=xe.InvalidModifierOnTypeMember},i){const n=(t,e,s,r)=>{e===s&&i[r]&&this.raise(xe.InvalidModifiersOrder,t,{orderedModifiers:[s,r]})},a=(t,e,s,r)=>{(i[s]&&e===r||i[r]&&e===s)&&this.raise(xe.IncompatibleModifiers,t,{modifiers:[s,r]})};for(;;){const{startLoc:o}=this.state,c=this.tsParseModifier(t.concat(null!=e?e:[]),s);if(!c)break;ve(c)?i.accessibility?this.raise(xe.DuplicateAccessibilityModifier,o,{modifier:c}):(n(o,c,c,"override"),n(o,c,c,"static"),n(o,c,c,"readonly"),i.accessibility=c):be(c)?(i[c]&&this.raise(xe.DuplicateModifier,o,{modifier:c}),i[c]=!0,n(o,c,"in","out")):(hasOwnProperty.call(i,c)?this.raise(xe.DuplicateModifier,o,{modifier:c}):(n(o,c,"static","readonly"),n(o,c,"static","override"),n(o,c,"override","readonly"),n(o,c,"abstract","override"),a(o,c,"declare","override"),a(o,c,"static","abstract")),i[c]=!0),null!=e&&e.includes(c)&&this.raise(r,o,{modifier:c})}}tsIsListTerminator(t){switch(t){case"EnumMembers":case"TypeMembers":return this.match(8);case"HeritageClauseElement":return this.match(5);case"TupleElementTypes":return this.match(3);case"TypeParametersOrArguments":return this.match(48)}}tsParseList(t,e){const s=[];for(;!this.tsIsListTerminator(t);)s.push(e());return s}tsParseDelimitedList(t,e,s){return function(t){if(null==t)throw new Error(`Unexpected ${t} value.`);return t}(this.tsParseDelimitedListWorker(t,e,!0,s))}tsParseDelimitedListWorker(t,e,s,r){const i=[];let n=-1;for(;!this.tsIsListTerminator(t);){n=-1;const r=e();if(null==r)return;if(i.push(r),!this.eat(12)){if(this.tsIsListTerminator(t))break;return void(s&&this.expect(12))}n=this.state.lastTokStartLoc.index}return r&&(r.value=n),i}tsParseBracketedList(t,e,s,r,i){r||(s?this.expect(0):this.expect(47));const n=this.tsParseDelimitedList(t,e,i);return s?this.expect(3):this.expect(48),n}tsParseImportType(){const t=this.startNode();return this.expect(83),this.expect(10),this.match(133)||this.raise(xe.UnsupportedImportTypeArgument,this.state.startLoc),t.argument=super.parseExprAtom(),(this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions"))&&(t.options=null),this.eat(12)&&(this.expectImportAttributesPlugin(),this.match(11)||(t.options=super.parseMaybeAssignAllowIn(),this.eat(12))),this.expect(11),this.eat(16)&&(t.qualifier=this.tsParseEntityName()),this.match(47)&&(t.typeParameters=this.tsParseTypeArguments()),this.finishNode(t,"TSImportType")}tsParseEntityName(t=!0){let e=this.parseIdentifier(t);for(;this.eat(16);){const s=this.startNodeAtNode(e);s.left=e,s.right=this.parseIdentifier(t),e=this.finishNode(s,"TSQualifiedName")}return e}tsParseTypeReference(){const t=this.startNode();return t.typeName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.match(47)&&(t.typeParameters=this.tsParseTypeArguments()),this.finishNode(t,"TSTypeReference")}tsParseThisTypePredicate(t){this.next();const e=this.startNodeAtNode(t);return e.parameterName=t,e.typeAnnotation=this.tsParseTypeAnnotation(!1),e.asserts=!1,this.finishNode(e,"TSTypePredicate")}tsParseThisTypeNode(){const t=this.startNode();return this.next(),this.finishNode(t,"TSThisType")}tsParseTypeQuery(){const t=this.startNode();return this.expect(87),this.match(83)?t.exprName=this.tsParseImportType():t.exprName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.match(47)&&(t.typeParameters=this.tsParseTypeArguments()),this.finishNode(t,"TSTypeQuery")}tsParseTypeParameter(t){const e=this.startNode();return t(e),e.name=this.tsParseTypeParameterName(),e.constraint=this.tsEatThenParseType(81),e.default=this.tsEatThenParseType(29),this.finishNode(e,"TSTypeParameter")}tsTryParseTypeParameters(t){if(this.match(47))return this.tsParseTypeParameters(t)}tsParseTypeParameters(t){const e=this.startNode();this.match(47)||this.match(142)?this.next():this.unexpected();const s={value:-1};return e.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,t),!1,!0,s),0===e.params.length&&this.raise(xe.EmptyTypeParameters,e),-1!==s.value&&this.addExtra(e,"trailingComma",s.value),this.finishNode(e,"TSTypeParameterDeclaration")}tsFillSignature(t,e){const s=19===t;e.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),e.parameters=this.tsParseBindingListForSignature(),(s||this.match(t))&&(e.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(t))}tsParseBindingListForSignature(){const t=super.parseBindingList(11,41,2);for(const e of t){const{type:t}=e;"AssignmentPattern"!==t&&"TSParameterProperty"!==t||this.raise(xe.UnsupportedSignatureParameterKind,e,{type:t})}return t}tsParseTypeMemberSemicolon(){this.eat(12)||this.isLineTerminator()||this.expect(13)}tsParseSignatureMember(t,e){return this.tsFillSignature(14,e),this.tsParseTypeMemberSemicolon(),this.finishNode(e,t)}tsIsUnambiguouslyIndexSignature(){return this.next(),!!H(this.state.type)&&(this.next(),this.match(14))}tsTryParseIndexSignature(t){if(!this.match(0)||!this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this)))return;this.expect(0);const e=this.parseIdentifier();e.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(e),this.expect(3),t.parameters=[e];const s=this.tsTryParseTypeAnnotation();return s&&(t.typeAnnotation=s),this.tsParseTypeMemberSemicolon(),this.finishNode(t,"TSIndexSignature")}tsParsePropertyOrMethodSignature(t,e){this.eat(17)&&(t.optional=!0);const s=t;if(this.match(10)||this.match(47)){e&&this.raise(xe.ReadonlyForMethodSignature,t);const r=s;r.kind&&this.match(47)&&this.raise(xe.AccessorCannotHaveTypeParameters,this.state.curPosition()),this.tsFillSignature(14,r),this.tsParseTypeMemberSemicolon();const i="parameters",n="typeAnnotation";if("get"===r.kind)r[i].length>0&&(this.raise(g.BadGetterArity,this.state.curPosition()),this.isThisParam(r[i][0])&&this.raise(xe.AccessorCannotDeclareThisParameter,this.state.curPosition()));else if("set"===r.kind){if(1!==r[i].length)this.raise(g.BadSetterArity,this.state.curPosition());else{const t=r[i][0];this.isThisParam(t)&&this.raise(xe.AccessorCannotDeclareThisParameter,this.state.curPosition()),"Identifier"===t.type&&t.optional&&this.raise(xe.SetAccessorCannotHaveOptionalParameter,this.state.curPosition()),"RestElement"===t.type&&this.raise(xe.SetAccessorCannotHaveRestParameter,this.state.curPosition())}r[n]&&this.raise(xe.SetAccessorCannotHaveReturnType,r[n])}else r.kind="method";return this.finishNode(r,"TSMethodSignature")}{const t=s;e&&(t.readonly=!0);const r=this.tsTryParseTypeAnnotation();return r&&(t.typeAnnotation=r),this.tsParseTypeMemberSemicolon(),this.finishNode(t,"TSPropertySignature")}}tsParseTypeMember(){const t=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",t);if(this.match(77)){const e=this.startNode();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember("TSConstructSignatureDeclaration",t):(t.key=this.createIdentifier(e,"new"),this.tsParsePropertyOrMethodSignature(t,!1))}this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},t);return this.tsTryParseIndexSignature(t)||(super.parsePropertyName(t),t.computed||"Identifier"!==t.key.type||"get"!==t.key.name&&"set"!==t.key.name||!this.tsTokenCanFollowModifier()||(t.kind=t.key.name,super.parsePropertyName(t)),this.tsParsePropertyOrMethodSignature(t,!!t.readonly))}tsParseTypeLiteral(){const t=this.startNode();return t.members=this.tsParseObjectTypeMembers(),this.finishNode(t,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);const t=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),t}tsIsStartOfMappedType(){return this.next(),this.eat(53)?this.isContextual(122):(this.isContextual(122)&&this.next(),!!this.match(0)&&(this.next(),!!this.tsIsIdentifier()&&(this.next(),this.match(58))))}tsParseMappedType(){const t=this.startNode();this.expect(5),this.match(53)?(t.readonly=this.state.value,this.next(),this.expectContextual(122)):this.eatContextual(122)&&(t.readonly=!0),this.expect(0);{const e=this.startNode();e.name=this.tsParseTypeParameterName(),e.constraint=this.tsExpectThenParseType(58),t.typeParameter=this.finishNode(e,"TSTypeParameter")}return t.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(t.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(t.optional=!0),t.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(t,"TSMappedType")}tsParseTupleType(){const t=this.startNode();t.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let e=!1;return t.elementTypes.forEach((t=>{const{type:s}=t;!e||"TSRestType"===s||"TSOptionalType"===s||"TSNamedTupleMember"===s&&t.optional||this.raise(xe.OptionalTypeBeforeRequired,t),e||(e="TSNamedTupleMember"===s&&t.optional||"TSOptionalType"===s)})),this.finishNode(t,"TSTupleType")}tsParseTupleElementType(){const{startLoc:t}=this.state,e=this.eat(21);let s,r,i,n;const a=W(this.state.type)?this.lookaheadCharCode():null;if(58===a)s=!0,i=!1,r=this.parseIdentifier(!0),this.expect(14),n=this.tsParseType();else if(63===a){i=!0;const t=this.state.startLoc,e=this.state.value,a=this.tsParseNonArrayType();58===this.lookaheadCharCode()?(s=!0,r=this.createIdentifier(this.startNodeAt(t),e),this.expect(17),this.expect(14),n=this.tsParseType()):(s=!1,n=a,this.expect(17))}else n=this.tsParseType(),i=this.eat(17),s=this.eat(14);if(s){let t;r?(t=this.startNodeAtNode(r),t.optional=i,t.label=r,t.elementType=n,this.eat(17)&&(t.optional=!0,this.raise(xe.TupleOptionalAfterType,this.state.lastTokStartLoc))):(t=this.startNodeAtNode(n),t.optional=i,this.raise(xe.InvalidTupleMemberLabel,n),t.label=n,t.elementType=this.tsParseType()),n=this.finishNode(t,"TSNamedTupleMember")}else if(i){const t=this.startNodeAtNode(n);t.typeAnnotation=n,n=this.finishNode(t,"TSOptionalType")}if(e){const e=this.startNodeAt(t);e.typeAnnotation=n,n=this.finishNode(e,"TSRestType")}return n}tsParseParenthesizedType(){const t=this.startNode();return this.expect(10),t.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(t,"TSParenthesizedType")}tsParseFunctionOrConstructorType(t,e){const s=this.startNode();return"TSConstructorType"===t&&(s.abstract=!!e,e&&this.next(),this.next()),this.tsInAllowConditionalTypesContext((()=>this.tsFillSignature(19,s))),this.finishNode(s,t)}tsParseLiteralTypeNode(){const t=this.startNode();switch(this.state.type){case 134:case 135:case 133:case 85:case 86:t.literal=super.parseExprAtom();break;default:this.unexpected()}return this.finishNode(t,"TSLiteralType")}tsParseTemplateLiteralType(){const t=this.startNode();return t.literal=super.parseTemplate(!1),this.finishNode(t,"TSLiteralType")}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){const t=this.tsParseThisTypeNode();return this.isContextual(116)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(t):t}tsParseNonArrayType(){switch(this.state.type){case 133:case 134:case 135:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if("-"===this.state.value){const t=this.startNode(),e=this.lookahead();return 134!==e.type&&135!==e.type&&this.unexpected(),t.literal=this.parseMaybeUnary(),this.finishNode(t,"TSLiteralType")}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{const{type:t}=this.state;if(H(t)||88===t||84===t){const e=88===t?"TSVoidKeyword":84===t?"TSNullKeyword":function(t){switch(t){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}}(this.state.value);if(void 0!==e&&46!==this.lookaheadCharCode()){const t=this.startNode();return this.next(),this.finishNode(t,e)}return this.tsParseTypeReference()}}}this.unexpected()}tsParseArrayTypeOrHigher(){let t=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){const e=this.startNodeAtNode(t);e.elementType=t,this.expect(3),t=this.finishNode(e,"TSArrayType")}else{const e=this.startNodeAtNode(t);e.objectType=t,e.indexType=this.tsParseType(),this.expect(3),t=this.finishNode(e,"TSIndexedAccessType")}return t}tsParseTypeOperator(){const t=this.startNode(),e=this.state.value;return this.next(),t.operator=e,t.typeAnnotation=this.tsParseTypeOperatorOrHigher(),"readonly"===e&&this.tsCheckTypeAnnotationForReadOnly(t),this.finishNode(t,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(t){switch(t.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(xe.UnexpectedReadonly,t)}}tsParseInferType(){const t=this.startNode();this.expectContextual(115);const e=this.startNode();return e.name=this.tsParseTypeParameterName(),e.constraint=this.tsTryParse((()=>this.tsParseConstraintForInferType())),t.typeParameter=this.finishNode(e,"TSTypeParameter"),this.finishNode(t,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){const t=this.tsInDisallowConditionalTypesContext((()=>this.tsParseType()));if(this.state.inDisallowConditionalTypesContext||!this.match(17))return t}}tsParseTypeOperatorOrHigher(){var t;return(t=this.state.type)>=121&&t<=123&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext((()=>this.tsParseArrayTypeOrHigher()))}tsParseUnionOrIntersectionType(t,e,s){const r=this.startNode(),i=this.eat(s),n=[];do{n.push(e())}while(this.eat(s));return 1!==n.length||i?(r.types=n,this.finishNode(r,t)):n[0]}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),45)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),43)}tsIsStartOfFunctionType(){return!!this.match(47)||this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(H(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){const{errors:t}=this.state,e=t.length;try{return this.parseObjectLike(8,!0),t.length===e}catch(t){return!1}}if(this.match(0)){this.next();const{errors:t}=this.state,e=t.length;try{return super.parseBindingList(3,93,1),t.length===e}catch(t){return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){if(this.next(),this.match(11)||this.match(21))return!0;if(this.tsSkipParameterStart()){if(this.match(14)||this.match(12)||this.match(17)||this.match(29))return!0;if(this.match(11)&&(this.next(),this.match(19)))return!0}return!1}tsParseTypeOrTypePredicateAnnotation(t){return this.tsInType((()=>{const e=this.startNode();this.expect(t);const s=this.startNode(),r=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(r&&this.match(78)){let t=this.tsParseThisTypeOrThisTypePredicate();return"TSThisType"===t.type?(s.parameterName=t,s.asserts=!0,s.typeAnnotation=null,t=this.finishNode(s,"TSTypePredicate")):(this.resetStartLocationFromNode(t,s),t.asserts=!0),e.typeAnnotation=t,this.finishNode(e,"TSTypeAnnotation")}const i=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!i)return r?(s.parameterName=this.parseIdentifier(),s.asserts=r,s.typeAnnotation=null,e.typeAnnotation=this.finishNode(s,"TSTypePredicate"),this.finishNode(e,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,e);const n=this.tsParseTypeAnnotation(!1);return s.parameterName=i,s.typeAnnotation=n,s.asserts=r,e.typeAnnotation=this.finishNode(s,"TSTypePredicate"),this.finishNode(e,"TSTypeAnnotation")}))}tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(14))return this.tsParseTypeOrTypePredicateAnnotation(14)}tsTryParseTypeAnnotation(){if(this.match(14))return this.tsParseTypeAnnotation()}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){const t=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.next(),t}tsParseTypePredicateAsserts(){if(109!==this.state.type)return!1;const t=this.state.containsEsc;return this.next(),!(!H(this.state.type)&&!this.match(78)||(t&&this.raise(g.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"}),0))}tsParseTypeAnnotation(t=!0,e=this.startNode()){return this.tsInType((()=>{t&&this.expect(14),e.typeAnnotation=this.tsParseType()})),this.finishNode(e,"TSTypeAnnotation")}tsParseType(){ge(this.state.inType);const t=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return t;const e=this.startNodeAtNode(t);return e.checkType=t,e.extendsType=this.tsInDisallowConditionalTypesContext((()=>this.tsParseNonConditionalType())),this.expect(17),e.trueType=this.tsInAllowConditionalTypesContext((()=>this.tsParseType())),this.expect(14),e.falseType=this.tsInAllowConditionalTypesContext((()=>this.tsParseType())),this.finishNode(e,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(124)&&77===this.lookahead().type}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(77)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(xe.ReservedTypeAssertion,this.state.startLoc);const t=this.startNode();return t.typeAnnotation=this.tsInType((()=>(this.next(),this.match(75)?this.tsParseTypeReference():this.tsParseType()))),this.expect(48),t.expression=this.parseMaybeUnary(),this.finishNode(t,"TSTypeAssertion")}tsParseHeritageClause(t){const e=this.state.startLoc,s=this.tsParseDelimitedList("HeritageClauseElement",(()=>{const t=this.startNode();return t.expression=this.tsParseEntityName(),this.match(47)&&(t.typeParameters=this.tsParseTypeArguments()),this.finishNode(t,"TSExpressionWithTypeArguments")}));return s.length||this.raise(xe.EmptyHeritageClauseType,e,{token:t}),s}tsParseInterfaceDeclaration(t,e={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(129),e.declare&&(t.declare=!0),H(this.state.type)?(t.id=this.parseIdentifier(),this.checkIdentifier(t.id,130)):(t.id=null,this.raise(xe.MissingInterfaceName,this.state.startLoc)),t.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81)&&(t.extends=this.tsParseHeritageClause("extends"));const s=this.startNode();return s.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),t.body=this.finishNode(s,"TSInterfaceBody"),this.finishNode(t,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(t){return t.id=this.parseIdentifier(),this.checkIdentifier(t.id,2),t.typeAnnotation=this.tsInType((()=>{if(t.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(29),this.isContextual(114)&&16!==this.lookahead().type){const t=this.startNode();return this.next(),this.finishNode(t,"TSIntrinsicKeyword")}return this.tsParseType()})),this.semicolon(),this.finishNode(t,"TSTypeAliasDeclaration")}tsInNoContext(t){const e=this.state.context;this.state.context=[e[0]];try{return t()}finally{this.state.context=e}}tsInType(t){const e=this.state.inType;this.state.inType=!0;try{return t()}finally{this.state.inType=e}}tsInDisallowConditionalTypesContext(t){const e=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return t()}finally{this.state.inDisallowConditionalTypesContext=e}}tsInAllowConditionalTypesContext(t){const e=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return t()}finally{this.state.inDisallowConditionalTypesContext=e}}tsEatThenParseType(t){if(this.match(t))return this.tsNextThenParseType()}tsExpectThenParseType(t){return this.tsInType((()=>(this.expect(t),this.tsParseType())))}tsNextThenParseType(){return this.tsInType((()=>(this.next(),this.tsParseType())))}tsParseEnumMember(){const t=this.startNode();return t.id=this.match(133)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29)&&(t.initializer=super.parseMaybeAssignAllowIn()),this.finishNode(t,"TSEnumMember")}tsParseEnumDeclaration(t,e={}){return e.const&&(t.const=!0),e.declare&&(t.declare=!0),this.expectContextual(126),t.id=this.parseIdentifier(),this.checkIdentifier(t.id,t.const?8971:8459),this.expect(5),t.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(t,"TSEnumDeclaration")}tsParseModuleBlock(){const t=this.startNode();return this.scope.enter(0),this.expect(5),super.parseBlockOrModuleBlockBody(t.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(t,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(t,e=!1){if(t.id=this.parseIdentifier(),e||this.checkIdentifier(t.id,1024),this.eat(16)){const e=this.startNode();this.tsParseModuleOrNamespaceDeclaration(e,!0),t.body=e}else this.scope.enter(256),this.prodParam.enter(0),t.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(t,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(t){return this.isContextual(112)?(t.global=!0,t.id=this.parseIdentifier()):this.match(133)?t.id=super.parseStringLiteral(this.state.value):this.unexpected(),this.match(5)?(this.scope.enter(256),this.prodParam.enter(0),t.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(t,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(t,e,s){t.isExport=s||!1,t.id=e||this.parseIdentifier(),this.checkIdentifier(t.id,4096),this.expect(29);const r=this.tsParseModuleReference();return"type"===t.importKind&&"TSExternalModuleReference"!==r.type&&this.raise(xe.ImportAliasHasImportType,r),t.moduleReference=r,this.semicolon(),this.finishNode(t,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(119)&&40===this.lookaheadCharCode()}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)}tsParseExternalModuleReference(){const t=this.startNode();return this.expectContextual(119),this.expect(10),this.match(133)||this.unexpected(),t.expression=super.parseExprAtom(),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(t,"TSExternalModuleReference")}tsLookAhead(t){const e=this.state.clone(),s=t();return this.state=e,s}tsTryParseAndCatch(t){const e=this.tryParse((e=>t()||e()));if(!e.aborted&&e.node)return e.error&&(this.state=e.failState),e.node}tsTryParse(t){const e=this.state.clone(),s=t();if(void 0!==s&&!1!==s)return s;this.state=e}tsTryParseDeclare(t){if(this.isLineTerminator())return;let e,s=this.state.type;return this.isContextual(100)&&(s=74,e="let"),this.tsInAmbientContext((()=>{switch(s){case 68:return t.declare=!0,super.parseFunctionStatement(t,!1,!1);case 80:return t.declare=!0,this.parseClass(t,!0,!1);case 126:return this.tsParseEnumDeclaration(t,{declare:!0});case 112:return this.tsParseAmbientExternalModuleDeclaration(t);case 75:case 74:return this.match(75)&&this.isLookaheadContextual("enum")?(this.expect(75),this.tsParseEnumDeclaration(t,{const:!0,declare:!0})):(t.declare=!0,this.parseVarStatement(t,e||this.state.value,!0));case 129:{const e=this.tsParseInterfaceDeclaration(t,{declare:!0});if(e)return e}default:if(H(s))return this.tsParseDeclaration(t,this.state.value,!0,null)}}))}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0,null)}tsParseExpressionStatement(t,e,s){switch(e.name){case"declare":{const e=this.tsTryParseDeclare(t);return e&&(e.declare=!0),e}case"global":if(this.match(5)){this.scope.enter(256),this.prodParam.enter(0);const s=t;return s.global=!0,s.id=e,s.body=this.tsParseModuleBlock(),this.scope.exit(),this.prodParam.exit(),this.finishNode(s,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(t,e.name,!1,s)}}tsParseDeclaration(t,e,s,r){switch(e){case"abstract":if(this.tsCheckLineTerminator(s)&&(this.match(80)||H(this.state.type)))return this.tsParseAbstractDeclaration(t,r);break;case"module":if(this.tsCheckLineTerminator(s)){if(this.match(133))return this.tsParseAmbientExternalModuleDeclaration(t);if(H(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(t)}break;case"namespace":if(this.tsCheckLineTerminator(s)&&H(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(t);break;case"type":if(this.tsCheckLineTerminator(s)&&H(this.state.type))return this.tsParseTypeAliasDeclaration(t)}}tsCheckLineTerminator(t){return t?!this.hasFollowingLineBreak()&&(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(t){if(!this.match(47))return;const e=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;const s=this.tsTryParseAndCatch((()=>{const e=this.startNodeAt(t);return e.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(e),e.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),e}));return this.state.maybeInArrowParameters=e,s?super.parseArrowExpression(s,null,!0):void 0}tsParseTypeArgumentsInExpression(){if(47===this.reScan_lt())return this.tsParseTypeArguments()}tsParseTypeArguments(){const t=this.startNode();return t.params=this.tsInType((()=>this.tsInNoContext((()=>(this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))))),0===t.params.length?this.raise(xe.EmptyTypeArguments,t):this.state.inType||this.curContext()!==P.brace||this.reScan_lt_gt(),this.expect(48),this.finishNode(t,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return(t=this.state.type)>=124&&t<=130;var t}isExportDefaultSpecifier(){return!this.tsIsDeclarationStart()&&super.isExportDefaultSpecifier()}parseAssignableListItem(t,e){const s=this.state.startLoc,r={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},r);const i=r.accessibility,n=r.override,a=r.readonly;4&t||!(i||a||n)||this.raise(xe.UnexpectedParameterModifier,s);const o=this.parseMaybeDefault();this.parseAssignableListItemTypes(o,t);const c=this.parseMaybeDefault(o.loc.start,o);if(i||a||n){const t=this.startNodeAt(s);return e.length&&(t.decorators=e),i&&(t.accessibility=i),a&&(t.readonly=a),n&&(t.override=n),"Identifier"!==c.type&&"AssignmentPattern"!==c.type&&this.raise(xe.UnsupportedParameterPropertyKind,t),t.parameter=c,this.finishNode(t,"TSParameterProperty")}return e.length&&(o.decorators=e),c}isSimpleParameter(t){return"TSParameterProperty"===t.type&&super.isSimpleParameter(t.parameter)||super.isSimpleParameter(t)}tsDisallowOptionalPattern(t){for(const e of t.params)"Identifier"!==e.type&&e.optional&&!this.state.isAmbientContext&&this.raise(xe.PatternIsOptional,e)}setArrowFunctionParameters(t,e,s){super.setArrowFunctionParameters(t,e,s),this.tsDisallowOptionalPattern(t)}parseFunctionBodyAndFinish(t,e,s=!1){this.match(14)&&(t.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));const r="FunctionDeclaration"===e?"TSDeclareFunction":"ClassMethod"===e||"ClassPrivateMethod"===e?"TSDeclareMethod":void 0;return r&&!this.match(5)&&this.isLineTerminator()?this.finishNode(t,r):"TSDeclareFunction"===r&&this.state.isAmbientContext&&(this.raise(xe.DeclareFunctionHasImplementation,t),t.declare)?super.parseFunctionBodyAndFinish(t,r,s):(this.tsDisallowOptionalPattern(t),super.parseFunctionBodyAndFinish(t,e,s))}registerFunctionStatementId(t){!t.body&&t.id?this.checkIdentifier(t.id,1024):super.registerFunctionStatementId(t)}tsCheckForInvalidTypeCasts(t){t.forEach((t=>{"TSTypeCastExpression"===(null==t?void 0:t.type)&&this.raise(xe.UnexpectedTypeAnnotation,t.typeAnnotation)}))}toReferencedList(t,e){return this.tsCheckForInvalidTypeCasts(t),t}parseArrayLike(t,e,s,r){const i=super.parseArrayLike(t,e,s,r);return"ArrayExpression"===i.type&&this.tsCheckForInvalidTypeCasts(i.elements),i}parseSubscript(t,e,s,r){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();const s=this.startNodeAt(e);return s.expression=t,this.finishNode(s,"TSNonNullExpression")}let i=!1;if(this.match(18)&&60===this.lookaheadCharCode()){if(s)return r.stop=!0,t;r.optionalChainMember=i=!0,this.next()}if(this.match(47)||this.match(51)){let n;const a=this.tsTryParseAndCatch((()=>{if(!s&&this.atPossibleAsyncArrow(t)){const t=this.tsTryParseGenericAsyncArrowFunction(e);if(t)return t}const a=this.tsParseTypeArgumentsInExpression();if(!a)return;if(i&&!this.match(10))return void(n=this.state.curPosition());if(G(this.state.type)){const s=super.parseTaggedTemplateExpression(t,e,r);return s.typeParameters=a,s}if(!s&&this.eat(10)){const s=this.startNodeAt(e);return s.callee=t,s.arguments=this.parseCallExpressionArguments(11,!1),this.tsCheckForInvalidTypeCasts(s.arguments),s.typeParameters=a,r.optionalChainMember&&(s.optional=i),this.finishCallExpression(s,r.optionalChainMember)}const o=this.state.type;if(48===o||52===o||10!==o&&z(o)&&!this.hasPrecedingLineBreak())return;const c=this.startNodeAt(e);return c.expression=t,c.typeParameters=a,this.finishNode(c,"TSInstantiationExpression")}));if(n&&this.unexpected(n,10),a)return"TSInstantiationExpression"===a.type&&(this.match(16)||this.match(18)&&40!==this.lookaheadCharCode())&&this.raise(xe.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc),a}return super.parseSubscript(t,e,s,r)}parseNewCallee(t){var e;super.parseNewCallee(t);const{callee:s}=t;"TSInstantiationExpression"!==s.type||null!=(e=s.extra)&&e.parenthesized||(t.typeParameters=s.typeParameters,t.callee=s.expression)}parseExprOp(t,e,s){let r;if(J(58)>s&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(r=this.isContextual(120)))){const i=this.startNodeAt(e);return i.expression=t,i.typeAnnotation=this.tsInType((()=>(this.next(),this.match(75)?(r&&this.raise(g.UnexpectedKeyword,this.state.startLoc,{keyword:"const"}),this.tsParseTypeReference()):this.tsParseType()))),this.finishNode(i,r?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(i,e,s)}return super.parseExprOp(t,e,s)}checkReservedWord(t,e,s,r){this.state.isAmbientContext||super.checkReservedWord(t,e,s,r)}checkImportReflection(t){super.checkImportReflection(t),t.module&&"value"!==t.importKind&&this.raise(xe.ImportReflectionHasImportType,t.specifiers[0].loc.start)}checkDuplicateExports(){}isPotentialImportPhase(t){if(super.isPotentialImportPhase(t))return!0;if(this.isContextual(130)){const e=this.lookaheadCharCode();return t?123===e||42===e:61!==e}return!t&&this.isContextual(87)}applyImportPhase(t,e,s,r){super.applyImportPhase(t,e,s,r),e?t.exportKind="type"===s?"type":"value":t.importKind="type"===s||"typeof"===s?s:"value"}parseImport(t){if(this.match(133))return t.importKind="value",super.parseImport(t);let e;if(H(this.state.type)&&61===this.lookaheadCharCode())return t.importKind="value",this.tsParseImportEqualsDeclaration(t);if(this.isContextual(130)){const s=this.parseMaybeImportPhase(t,!1);if(61===this.lookaheadCharCode())return this.tsParseImportEqualsDeclaration(t,s);e=super.parseImportSpecifiersAndAfter(t,s)}else e=super.parseImport(t);return"type"===e.importKind&&e.specifiers.length>1&&"ImportDefaultSpecifier"===e.specifiers[0].type&&this.raise(xe.TypeImportCannotSpecifyDefaultAndNamed,e),e}parseExport(t,e){if(this.match(83)){this.next();const e=t;let s=null;return this.isContextual(130)&&this.isPotentialImportPhase(!1)?s=this.parseMaybeImportPhase(e,!1):e.importKind="value",this.tsParseImportEqualsDeclaration(e,s,!0)}if(this.eat(29)){const e=t;return e.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(e,"TSExportAssignment")}if(this.eatContextual(93)){const e=t;return this.expectContextual(128),e.id=this.parseIdentifier(),this.semicolon(),this.finishNode(e,"TSNamespaceExportDeclaration")}return super.parseExport(t,e)}isAbstractClass(){return this.isContextual(124)&&80===this.lookahead().type}parseExportDefaultExpression(){if(this.isAbstractClass()){const t=this.startNode();return this.next(),t.abstract=!0,this.parseClass(t,!0,!0)}if(this.match(129)){const t=this.tsParseInterfaceDeclaration(this.startNode());if(t)return t}return super.parseExportDefaultExpression()}parseVarStatement(t,e,s=!1){const{isAmbientContext:r}=this.state,i=super.parseVarStatement(t,e,s||r);if(!r)return i;for(const{id:t,init:s}of i.declarations)s&&("const"!==e||t.typeAnnotation?this.raise(xe.InitializerNotAllowedInAmbientContext,s):Pe(s,this.hasPlugin("estree"))||this.raise(xe.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference,s));return i}parseStatementContent(t,e){if(this.match(75)&&this.isLookaheadContextual("enum")){const t=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(t,{const:!0})}if(this.isContextual(126))return this.tsParseEnumDeclaration(this.startNode());if(this.isContextual(129)){const t=this.tsParseInterfaceDeclaration(this.startNode());if(t)return t}return super.parseStatementContent(t,e)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(t,e){return e.some((e=>ve(e)?t.accessibility===e:!!t[e]))}tsIsStartOfStaticBlocks(){return this.isContextual(106)&&123===this.lookaheadCharCode()}parseClassMember(t,e,s){const r=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:r,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:xe.InvalidModifierOnTypeParameterPositions},e);const i=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(e,r)&&this.raise(xe.StaticBlockCannotHaveModifier,this.state.curPosition()),super.parseClassStaticBlock(t,e)):this.parseClassMemberWithIsStatic(t,e,s,!!e.static)};e.declare?this.tsInAmbientContext(i):i()}parseClassMemberWithIsStatic(t,e,s,r){const i=this.tsTryParseIndexSignature(e);if(i)return t.body.push(i),e.abstract&&this.raise(xe.IndexSignatureHasAbstract,e),e.accessibility&&this.raise(xe.IndexSignatureHasAccessibility,e,{modifier:e.accessibility}),e.declare&&this.raise(xe.IndexSignatureHasDeclare,e),void(e.override&&this.raise(xe.IndexSignatureHasOverride,e));!this.state.inAbstractClass&&e.abstract&&this.raise(xe.NonAbstractClassHasAbstractMethod,e),e.override&&(s.hadSuperClass||this.raise(xe.OverrideNotInSubClass,e)),super.parseClassMemberWithIsStatic(t,e,s,r)}parsePostMemberNameModifiers(t){this.eat(17)&&(t.optional=!0),t.readonly&&this.match(10)&&this.raise(xe.ClassMethodHasReadonly,t),t.declare&&this.match(10)&&this.raise(xe.ClassMethodHasDeclare,t)}parseExpressionStatement(t,e,s){return("Identifier"===e.type?this.tsParseExpressionStatement(t,e,s):void 0)||super.parseExpressionStatement(t,e,s)}shouldParseExportDeclaration(){return!!this.tsIsDeclarationStart()||super.shouldParseExportDeclaration()}parseConditional(t,e,s){if(!this.state.maybeInArrowParameters||!this.match(17))return super.parseConditional(t,e,s);const r=this.tryParse((()=>super.parseConditional(t,e)));return r.node?(r.error&&(this.state=r.failState),r.node):(r.error&&super.setOptionalParametersError(s,r.error),t)}parseParenItem(t,e){const s=super.parseParenItem(t,e);if(this.eat(17)&&(s.optional=!0,this.resetEndLocation(t)),this.match(14)){const s=this.startNodeAt(e);return s.expression=t,s.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(s,"TSTypeCastExpression")}return t}parseExportDeclaration(t){if(!this.state.isAmbientContext&&this.isContextual(125))return this.tsInAmbientContext((()=>this.parseExportDeclaration(t)));const e=this.state.startLoc,s=this.eatContextual(125);if(s&&(this.isContextual(125)||!this.shouldParseExportDeclaration()))throw this.raise(xe.ExpectedAmbientAfterExportDeclare,this.state.startLoc);const r=H(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(t);return r?(("TSInterfaceDeclaration"===r.type||"TSTypeAliasDeclaration"===r.type||s)&&(t.exportKind="type"),s&&(this.resetStartLocation(r,e),r.declare=!0),r):null}parseClassId(t,e,s,r){if((!e||s)&&this.isContextual(113))return;super.parseClassId(t,e,s,t.declare?1024:8331);const i=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);i&&(t.typeParameters=i)}parseClassPropertyAnnotation(t){t.optional||(this.eat(35)?t.definite=!0:this.eat(17)&&(t.optional=!0));const e=this.tsTryParseTypeAnnotation();e&&(t.typeAnnotation=e)}parseClassProperty(t){if(this.parseClassPropertyAnnotation(t),this.state.isAmbientContext&&(!t.readonly||t.typeAnnotation)&&this.match(29)&&this.raise(xe.DeclareClassFieldHasInitializer,this.state.startLoc),t.abstract&&this.match(29)){const{key:e}=t;this.raise(xe.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:"Identifier"!==e.type||t.computed?`[${this.input.slice(e.start,e.end)}]`:e.name})}return super.parseClassProperty(t)}parseClassPrivateProperty(t){return t.abstract&&this.raise(xe.PrivateElementHasAbstract,t),t.accessibility&&this.raise(xe.PrivateElementHasAccessibility,t,{modifier:t.accessibility}),this.parseClassPropertyAnnotation(t),super.parseClassPrivateProperty(t)}parseClassAccessorProperty(t){return this.parseClassPropertyAnnotation(t),t.optional&&this.raise(xe.AccessorCannotBeOptional,t),super.parseClassAccessorProperty(t)}pushClassMethod(t,e,s,r,i,n){const a=this.tsTryParseTypeParameters(this.tsParseConstModifier);a&&i&&this.raise(xe.ConstructorHasTypeParameters,a);const{declare:o=!1,kind:c}=e;!o||"get"!==c&&"set"!==c||this.raise(xe.DeclareAccessor,e,{kind:c}),a&&(e.typeParameters=a),super.pushClassMethod(t,e,s,r,i,n)}pushClassPrivateMethod(t,e,s,r){const i=this.tsTryParseTypeParameters(this.tsParseConstModifier);i&&(e.typeParameters=i),super.pushClassPrivateMethod(t,e,s,r)}declareClassPrivateMethodInScope(t,e){"TSDeclareMethod"!==t.type&&("MethodDefinition"!==t.type||hasOwnProperty.call(t.value,"body"))&&super.declareClassPrivateMethodInScope(t,e)}parseClassSuper(t){super.parseClassSuper(t),t.superClass&&(this.match(47)||this.match(51))&&(t.superTypeParameters=this.tsParseTypeArgumentsInExpression()),this.eatContextual(113)&&(t.implements=this.tsParseHeritageClause("implements"))}parseObjPropValue(t,e,s,r,i,n,a){const o=this.tsTryParseTypeParameters(this.tsParseConstModifier);return o&&(t.typeParameters=o),super.parseObjPropValue(t,e,s,r,i,n,a)}parseFunctionParams(t,e){const s=this.tsTryParseTypeParameters(this.tsParseConstModifier);s&&(t.typeParameters=s),super.parseFunctionParams(t,e)}parseVarId(t,e){super.parseVarId(t,e),"Identifier"===t.id.type&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(t.definite=!0);const s=this.tsTryParseTypeAnnotation();s&&(t.id.typeAnnotation=s,this.resetEndLocation(t.id))}parseAsyncArrowFromCallExpression(t,e){return this.match(14)&&(t.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(t,e)}parseMaybeAssign(t,e){var s,r,i,n,a;let o,c,l,h;if(this.hasPlugin("jsx")&&(this.match(142)||this.match(47))){if(o=this.state.clone(),c=this.tryParse((()=>super.parseMaybeAssign(t,e)),o),!c.error)return c.node;const{context:s}=this.state,r=s[s.length-1];r!==P.j_oTag&&r!==P.j_expr||s.pop()}if(!(null!=(s=c)&&s.error||this.match(47)))return super.parseMaybeAssign(t,e);o&&o!==this.state||(o=this.state.clone());const u=this.tryParse((s=>{var r,i;h=this.tsParseTypeParameters(this.tsParseConstModifier);const n=super.parseMaybeAssign(t,e);return("ArrowFunctionExpression"!==n.type||null!=(r=n.extra)&&r.parenthesized)&&s(),0!==(null==(i=h)?void 0:i.params.length)&&this.resetStartLocationFromNode(n,h),n.typeParameters=h,n}),o);if(!u.error&&!u.aborted)return h&&this.reportReservedArrowTypeParam(h),u.node;if(!c&&(ge(!this.hasPlugin("jsx")),l=this.tryParse((()=>super.parseMaybeAssign(t,e)),o),!l.error))return l.node;if(null!=(r=c)&&r.node)return this.state=c.failState,c.node;if(u.node)return this.state=u.failState,h&&this.reportReservedArrowTypeParam(h),u.node;if(null!=(i=l)&&i.node)return this.state=l.failState,l.node;throw(null==(n=c)?void 0:n.error)||u.error||(null==(a=l)?void 0:a.error)}reportReservedArrowTypeParam(t){var e;1!==t.params.length||t.params[0].constraint||null!=(e=t.extra)&&e.trailingComma||!this.getPluginOption("typescript","disallowAmbiguousJSXLike")||this.raise(xe.ReservedArrowTypeParam,t)}parseMaybeUnary(t,e){return!this.hasPlugin("jsx")&&this.match(47)?this.tsParseTypeAssertion():super.parseMaybeUnary(t,e)}parseArrow(t){if(this.match(14)){const e=this.tryParse((t=>{const e=this.tsParseTypeOrTypePredicateAnnotation(14);return!this.canInsertSemicolon()&&this.match(19)||t(),e}));if(e.aborted)return;e.thrown||(e.error&&(this.state=e.failState),t.returnType=e.node)}return super.parseArrow(t)}parseAssignableListItemTypes(t,e){if(!(2&e))return t;this.eat(17)&&(t.optional=!0);const s=this.tsTryParseTypeAnnotation();return s&&(t.typeAnnotation=s),this.resetEndLocation(t),t}isAssignable(t,e){switch(t.type){case"TSTypeCastExpression":return this.isAssignable(t.expression,e);case"TSParameterProperty":return!0;default:return super.isAssignable(t,e)}}toAssignable(t,e=!1){switch(t.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(t,e);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":e?this.expressionScope.recordArrowParameterBindingError(xe.UnexpectedTypeCastInParameter,t):this.raise(xe.UnexpectedTypeCastInParameter,t),this.toAssignable(t.expression,e);break;case"AssignmentExpression":e||"TSTypeCastExpression"!==t.left.type||(t.left=this.typeCastToParameter(t.left));default:super.toAssignable(t,e)}}toAssignableParenthesizedExpression(t,e){switch(t.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(t.expression,e);break;default:super.toAssignable(t,e)}}checkToRestConversion(t,e){switch(t.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(t.expression,!1);break;default:super.checkToRestConversion(t,e)}}isValidLVal(t,e,s){switch(t){case"TSTypeCastExpression":return!0;case"TSParameterProperty":return"parameter";case"TSNonNullExpression":case"TSInstantiationExpression":return"expression";case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":return(64!==s||!e)&&["expression",!0];default:return super.isValidLVal(t,e,s)}}parseBindingAtom(){return 78===this.state.type?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(t){if(this.match(47)||this.match(51)){const e=this.tsParseTypeArgumentsInExpression();if(this.match(10)){const s=super.parseMaybeDecoratorArguments(t);return s.typeParameters=e,s}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(t)}checkCommaAfterRest(t){return this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===t?(this.next(),!1):super.checkCommaAfterRest(t)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(t,e){const s=super.parseMaybeDefault(t,e);return"AssignmentPattern"===s.type&&s.typeAnnotation&&s.right.start<s.typeAnnotation.start&&this.raise(xe.TypeAnnotationAfterAssign,s.typeAnnotation),s}getTokenFromCode(t){if(this.state.inType){if(62===t)return void this.finishOp(48,1);if(60===t)return void this.finishOp(47,1)}super.getTokenFromCode(t)}reScan_lt_gt(){const{type:t}=this.state;47===t?(this.state.pos-=1,this.readToken_lt()):48===t&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){const{type:t}=this.state;return 51===t?(this.state.pos-=2,this.finishOp(47,1),47):t}toAssignableList(t,e,s){for(let e=0;e<t.length;e++){const s=t[e];"TSTypeCastExpression"===(null==s?void 0:s.type)&&(t[e]=this.typeCastToParameter(s))}super.toAssignableList(t,e,s)}typeCastToParameter(t){return t.expression.typeAnnotation=t.typeAnnotation,this.resetEndLocation(t.expression,t.typeAnnotation.loc.end),t.expression}shouldParseArrow(t){return this.match(14)?t.every((t=>this.isAssignable(t,!0))):super.shouldParseArrow(t)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(t){if(this.match(47)||this.match(51)){const e=this.tsTryParseAndCatch((()=>this.tsParseTypeArgumentsInExpression()));e&&(t.typeParameters=e)}return super.jsxParseOpeningElementAfterName(t)}getGetterSetterExpectedParamCount(t){const e=super.getGetterSetterExpectedParamCount(t),s=this.getObjectOrClassMethodParams(t)[0];return s&&this.isThisParam(s)?e+1:e}parseCatchClauseParam(){const t=super.parseCatchClauseParam(),e=this.tsTryParseTypeAnnotation();return e&&(t.typeAnnotation=e,this.resetEndLocation(t)),t}tsInAmbientContext(t){const{isAmbientContext:e,strict:s}=this.state;this.state.isAmbientContext=!0,this.state.strict=!1;try{return t()}finally{this.state.isAmbientContext=e,this.state.strict=s}}parseClass(t,e,s){const r=this.state.inAbstractClass;this.state.inAbstractClass=!!t.abstract;try{return super.parseClass(t,e,s)}finally{this.state.inAbstractClass=r}}tsParseAbstractDeclaration(t,e){if(this.match(80))return t.abstract=!0,this.maybeTakeDecorators(e,this.parseClass(t,!0,!1));if(this.isContextual(129)){if(!this.hasFollowingLineBreak())return t.abstract=!0,this.raise(xe.NonClassMethodPropertyHasAbstractModifer,t),this.tsParseInterfaceDeclaration(t)}else this.unexpected(null,80)}parseMethod(t,e,s,r,i,n,a){const o=super.parseMethod(t,e,s,r,i,n,a);if(o.abstract&&(this.hasPlugin("estree")?o.value.body:o.body)){const{key:t}=o;this.raise(xe.AbstractMethodHasImplementation,o,{methodName:"Identifier"!==t.type||o.computed?`[${this.input.slice(t.start,t.end)}]`:t.name})}return o}tsParseTypeParameterName(){return this.parseIdentifier().name}shouldParseAsAmbientContext(){return!!this.getPluginOption("typescript","dts")}parse(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.parse()}getExpression(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.getExpression()}parseExportSpecifier(t,e,s,r){return!e&&r?(this.parseTypeOnlyImportExportSpecifier(t,!1,s),this.finishNode(t,"ExportSpecifier")):(t.exportKind="value",super.parseExportSpecifier(t,e,s,r))}parseImportSpecifier(t,e,s,r,i){return!e&&r?(this.parseTypeOnlyImportExportSpecifier(t,!0,s),this.finishNode(t,"ImportSpecifier")):(t.importKind="value",super.parseImportSpecifier(t,e,s,r,s?4098:4096))}parseTypeOnlyImportExportSpecifier(t,e,s){const r=e?"imported":"local",i=e?"local":"exported";let n,a=t[r],o=!1,c=!0;const l=a.loc.start;if(this.isContextual(93)){const t=this.parseIdentifier();if(this.isContextual(93)){const s=this.parseIdentifier();W(this.state.type)?(o=!0,a=t,n=e?this.parseIdentifier():this.parseModuleExportName(),c=!1):(n=s,c=!1)}else W(this.state.type)?(c=!1,n=e?this.parseIdentifier():this.parseModuleExportName()):(o=!0,a=t)}else W(this.state.type)&&(o=!0,e?(a=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord(a.name,a.loc.start,!0,!0)):a=this.parseModuleExportName());o&&s&&this.raise(e?xe.TypeModifierIsUsedInTypeImports:xe.TypeModifierIsUsedInTypeExports,l),t[r]=a,t[i]=n,t[e?"importKind":"exportKind"]=o?"type":"value",c&&this.eatContextual(93)&&(t[i]=e?this.parseIdentifier():this.parseModuleExportName()),t[i]||(t[i]=se(t[r])),e&&this.checkIdentifier(t[i],o?4098:4096)}},v8intrinsic:t=>class extends t{parseV8Intrinsic(){if(this.match(54)){const t=this.state.startLoc,e=this.startNode();if(this.next(),H(this.state.type)){const t=this.parseIdentifierName(),s=this.createIdentifier(e,t);if(s.type="V8IntrinsicIdentifier",this.match(10))return s}this.unexpected(t)}}parseExprAtom(t){return this.parseV8Intrinsic()||super.parseExprAtom(t)}},placeholders:t=>class extends t{parsePlaceholder(t){if(this.match(144)){const e=this.startNode();return this.next(),this.assertNoSpace(),e.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(144),this.finishPlaceholder(e,t)}}finishPlaceholder(t,e){let s=t;return s.expectedNode&&s.type||(s=this.finishNode(s,"Placeholder")),s.expectedNode=e,s}getTokenFromCode(t){37===t&&37===this.input.charCodeAt(this.state.pos+1)?this.finishOp(144,2):super.getTokenFromCode(t)}parseExprAtom(t){return this.parsePlaceholder("Expression")||super.parseExprAtom(t)}parseIdentifier(t){return this.parsePlaceholder("Identifier")||super.parseIdentifier(t)}checkReservedWord(t,e,s,r){void 0!==t&&super.checkReservedWord(t,e,s,r)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(t,e,s){return"Placeholder"===t||super.isValidLVal(t,e,s)}toAssignable(t,e){t&&"Placeholder"===t.type&&"Expression"===t.expectedNode?t.expectedNode="Pattern":super.toAssignable(t,e)}chStartsBindingIdentifier(t,e){return!!super.chStartsBindingIdentifier(t,e)||144===this.lookahead().type}verifyBreakContinue(t,e){t.label&&"Placeholder"===t.label.type||super.verifyBreakContinue(t,e)}parseExpressionStatement(t,e){var s;if("Placeholder"!==e.type||null!=(s=e.extra)&&s.parenthesized)return super.parseExpressionStatement(t,e);if(this.match(14)){const s=t;return s.label=this.finishPlaceholder(e,"Identifier"),this.next(),s.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(s,"LabeledStatement")}this.semicolon();const r=t;return r.name=e.name,this.finishPlaceholder(r,"Statement")}parseBlock(t,e,s){return this.parsePlaceholder("BlockStatement")||super.parseBlock(t,e,s)}parseFunctionId(t){return this.parsePlaceholder("Identifier")||super.parseFunctionId(t)}parseClass(t,e,s){const r=e?"ClassDeclaration":"ClassExpression";this.next();const i=this.state.strict,n=this.parsePlaceholder("Identifier");if(n){if(!(this.match(81)||this.match(144)||this.match(5))){if(s||!e)return t.id=null,t.body=this.finishPlaceholder(n,"ClassBody"),this.finishNode(t,r);throw this.raise(Ae.ClassNameIsRequired,this.state.startLoc)}t.id=n}else this.parseClassId(t,e,s);return super.parseClassSuper(t),t.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!t.superClass,i),this.finishNode(t,r)}parseExport(t,e){const s=this.parsePlaceholder("Identifier");if(!s)return super.parseExport(t,e);const r=t;if(!this.isContextual(98)&&!this.match(12))return r.specifiers=[],r.source=null,r.declaration=this.finishPlaceholder(s,"Declaration"),this.finishNode(r,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");const i=this.startNode();return i.exported=s,r.specifiers=[this.finishNode(i,"ExportDefaultSpecifier")],super.parseExport(r,e)}isExportDefaultSpecifier(){if(this.match(65)){const t=this.nextTokenStart();if(this.isUnparsedContextual(t,"from")&&this.input.startsWith(K(144),this.nextTokenStartSince(t+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(t,e){var s;return!(null==(s=t.specifiers)||!s.length)||super.maybeParseExportDefaultSpecifier(t,e)}checkExport(t){const{specifiers:e}=t;null!=e&&e.length&&(t.specifiers=e.filter((t=>"Placeholder"===t.exported.type))),super.checkExport(t),t.specifiers=e}parseImport(t){const e=this.parsePlaceholder("Identifier");if(!e)return super.parseImport(t);if(t.specifiers=[],!this.isContextual(98)&&!this.match(12))return t.source=this.finishPlaceholder(e,"StringLiteral"),this.semicolon(),this.finishNode(t,"ImportDeclaration");const s=this.startNodeAtNode(e);return s.local=e,t.specifiers.push(this.finishNode(s,"ImportDefaultSpecifier")),this.eat(12)&&(this.maybeParseStarImportSpecifier(t)||this.parseNamedImportSpecifiers(t)),this.expectContextual(98),t.source=this.parseImportSource(),this.semicolon(),this.finishNode(t,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){this.state.start>this.state.lastTokEndLoc.index&&this.raise(Ae.UnexpectedSpace,this.state.lastTokEndLoc)}}},Ce=Object.keys(Ee),Ne={sourceType:"script",sourceFilename:void 0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,plugins:[],strictMode:null,ranges:!1,tokens:!1,createImportExpressions:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0};class Ie extends ye{checkProto(t,e,s,r){if("SpreadElement"===t.type||this.isObjectMethod(t)||t.computed||t.shorthand)return;const i=t.key;if("__proto__"===("Identifier"===i.type?i.name:i.value)){if(e)return void this.raise(g.RecordNoProto,i);s.used&&(r?null===r.doubleProtoLoc&&(r.doubleProtoLoc=i.loc.start):this.raise(g.DuplicateProto,i)),s.used=!0}}shouldExitDescending(t,e){return"ArrowFunctionExpression"===t.type&&t.start===e}getExpression(){this.enterInitialScopes(),this.nextToken();const t=this.parseExpression();return this.match(139)||this.unexpected(),this.finalizeRemainingComments(),t.comments=this.comments,t.errors=this.state.errors,this.options.tokens&&(t.tokens=this.tokens),t}parseExpression(t,e){return t?this.disallowInAnd((()=>this.parseExpressionBase(e))):this.allowInAnd((()=>this.parseExpressionBase(e)))}parseExpressionBase(t){const e=this.state.startLoc,s=this.parseMaybeAssign(t);if(this.match(12)){const r=this.startNodeAt(e);for(r.expressions=[s];this.eat(12);)r.expressions.push(this.parseMaybeAssign(t));return this.toReferencedList(r.expressions),this.finishNode(r,"SequenceExpression")}return s}parseMaybeAssignDisallowIn(t,e){return this.disallowInAnd((()=>this.parseMaybeAssign(t,e)))}parseMaybeAssignAllowIn(t,e){return this.allowInAnd((()=>this.parseMaybeAssign(t,e)))}setOptionalParametersError(t,e){var s;t.optionalParametersLoc=null!=(s=null==e?void 0:e.loc)?s:this.state.startLoc}parseMaybeAssign(t,e){const s=this.state.startLoc;if(this.isContextual(108)&&this.prodParam.hasYield){let t=this.parseYield();return e&&(t=e.call(this,t,s)),t}let r;t?r=!1:(t=new Qt,r=!0);const{type:i}=this.state;(10===i||H(i))&&(this.state.potentialArrowAt=this.state.start);let n=this.parseMaybeConditional(t);if(e&&(n=e.call(this,n,s)),(a=this.state.type)>=29&&a<=33){const e=this.startNodeAt(s),r=this.state.value;if(e.operator=r,this.match(29)){this.toAssignable(n,!0),e.left=n;const r=s.index;null!=t.doubleProtoLoc&&t.doubleProtoLoc.index>=r&&(t.doubleProtoLoc=null),null!=t.shorthandAssignLoc&&t.shorthandAssignLoc.index>=r&&(t.shorthandAssignLoc=null),null!=t.privateKeyLoc&&t.privateKeyLoc.index>=r&&(this.checkDestructuringPrivate(t),t.privateKeyLoc=null)}else e.left=n;return this.next(),e.right=this.parseMaybeAssign(),this.checkLVal(n,this.finishNode(e,"AssignmentExpression")),e}var a;return r&&this.checkExpressionErrors(t,!0),n}parseMaybeConditional(t){const e=this.state.startLoc,s=this.state.potentialArrowAt,r=this.parseExprOps(t);return this.shouldExitDescending(r,s)?r:this.parseConditional(r,e,t)}parseConditional(t,e,s){if(this.eat(17)){const s=this.startNodeAt(e);return s.test=t,s.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),s.alternate=this.parseMaybeAssign(),this.finishNode(s,"ConditionalExpression")}return t}parseMaybeUnaryOrPrivate(t){return this.match(138)?this.parsePrivateName():this.parseMaybeUnary(t)}parseExprOps(t){const e=this.state.startLoc,s=this.state.potentialArrowAt,r=this.parseMaybeUnaryOrPrivate(t);return this.shouldExitDescending(r,s)?r:this.parseExprOp(r,e,-1)}parseExprOp(t,e,s){if(this.isPrivateName(t)){const e=this.getPrivateNameSV(t);(s>=J(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(g.PrivateInExpectedIn,t,{identifierName:e}),this.classScope.usePrivateName(e,t.loc.start)}const r=this.state.type;if((i=r)>=39&&i<=59&&(this.prodParam.hasIn||!this.match(58))){let i=J(r);if(i>s){if(39===r){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return t;this.checkPipelineAtInfixOperator(t,e)}const n=this.startNodeAt(e);n.left=t,n.operator=this.state.value;const a=41===r||42===r,o=40===r;if(o&&(i=J(42)),this.next(),39===r&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])&&96===this.state.type&&this.prodParam.hasAwait)throw this.raise(g.UnexpectedAwaitAfterPipelineBody,this.state.startLoc);n.right=this.parseExprOpRightExpr(r,i);const c=this.finishNode(n,a||o?"LogicalExpression":"BinaryExpression"),l=this.state.type;if(o&&(41===l||42===l)||a&&40===l)throw this.raise(g.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(c,e,s)}}var i;return t}parseExprOpRightExpr(t,e){const s=this.state.startLoc;if(39===t)switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext((()=>this.parseHackPipeBody()));case"smart":return this.withTopicBindingContext((()=>{if(this.prodParam.hasYield&&this.isContextual(108))throw this.raise(g.PipeBodyIsTighter,this.state.startLoc);return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(t,e),s)}));case"fsharp":return this.withSoloAwaitPermittingContext((()=>this.parseFSharpPipelineBody(e)))}return this.parseExprOpBaseRightExpr(t,e)}parseExprOpBaseRightExpr(t,e){const s=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),s,57===t?e-1:e)}parseHackPipeBody(){var t;const{startLoc:e}=this.state,s=this.parseMaybeAssign();return!u.has(s.type)||null!=(t=s.extra)&&t.parenthesized||this.raise(g.PipeUnparenthesizedBody,e,{type:s.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(g.PipeTopicUnused,e),s}checkExponentialAfterUnary(t){this.match(57)&&this.raise(g.UnexpectedTokenUnaryExponentiation,t.argument)}parseMaybeUnary(t,e){const s=this.state.startLoc,r=this.isContextual(96);if(r&&this.recordAwaitIfAllowed()){this.next();const t=this.parseAwait(s);return e||this.checkExponentialAfterUnary(t),t}const i=this.match(34),n=this.startNode();if(a=this.state.type,j[a]){n.operator=this.state.value,n.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");const s=this.match(89);if(this.next(),n.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(t,!0),this.state.strict&&s){const t=n.argument;"Identifier"===t.type?this.raise(g.StrictDelete,n):this.hasPropertyAsPrivateName(t)&&this.raise(g.DeletePrivateField,n)}if(!i)return e||this.checkExponentialAfterUnary(n),this.finishNode(n,"UnaryExpression")}var a;const o=this.parseUpdate(n,i,t);if(r){const{type:t}=this.state;if((this.hasPlugin("v8intrinsic")?z(t):z(t)&&!this.match(54))&&!this.isAmbiguousAwait())return this.raiseOverwrite(g.AwaitNotInAsyncContext,s),this.parseAwait(s)}return o}parseUpdate(t,e,s){if(e){const e=t;return this.checkLVal(e.argument,this.finishNode(e,"UpdateExpression")),t}const r=this.state.startLoc;let i=this.parseExprSubscripts(s);if(this.checkExpressionErrors(s,!1))return i;for(;34===this.state.type&&!this.canInsertSemicolon();){const t=this.startNodeAt(r);t.operator=this.state.value,t.prefix=!1,t.argument=i,this.next(),this.checkLVal(i,i=this.finishNode(t,"UpdateExpression"))}return i}parseExprSubscripts(t){const e=this.state.startLoc,s=this.state.potentialArrowAt,r=this.parseExprAtom(t);return this.shouldExitDescending(r,s)?r:this.parseSubscripts(r,e)}parseSubscripts(t,e,s){const r={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(t),stop:!1};do{t=this.parseSubscript(t,e,s,r),r.maybeAsyncArrow=!1}while(!r.stop);return t}parseSubscript(t,e,s,r){const{type:i}=this.state;if(!s&&15===i)return this.parseBind(t,e,s,r);if(G(i))return this.parseTaggedTemplateExpression(t,e,r);let n=!1;if(18===i){if(s&&(this.raise(g.OptionalChainingNoNew,this.state.startLoc),40===this.lookaheadCharCode()))return r.stop=!0,t;r.optionalChainMember=n=!0,this.next()}if(!s&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(t,e,r,n);{const s=this.eat(0);return s||n||this.eat(16)?this.parseMember(t,e,r,s,n):(r.stop=!0,t)}}parseMember(t,e,s,r,i){const n=this.startNodeAt(e);return n.object=t,n.computed=r,r?(n.property=this.parseExpression(),this.expect(3)):this.match(138)?("Super"===t.type&&this.raise(g.SuperPrivateField,e),this.classScope.usePrivateName(this.state.value,this.state.startLoc),n.property=this.parsePrivateName()):n.property=this.parseIdentifier(!0),s.optionalChainMember?(n.optional=i,this.finishNode(n,"OptionalMemberExpression")):this.finishNode(n,"MemberExpression")}parseBind(t,e,s,r){const i=this.startNodeAt(e);return i.object=t,this.next(),i.callee=this.parseNoCallExpr(),r.stop=!0,this.parseSubscripts(this.finishNode(i,"BindExpression"),e,s)}parseCoverCallAndAsyncArrowHead(t,e,s,r){const i=this.state.maybeInArrowParameters;let n=null;this.state.maybeInArrowParameters=!0,this.next();const a=this.startNodeAt(e);a.callee=t;const{maybeAsyncArrow:o,optionalChainMember:c}=s;o&&(this.expressionScope.enter(new qt(2)),n=new Qt),c&&(a.optional=r),a.arguments=r?this.parseCallExpressionArguments(11):this.parseCallExpressionArguments(11,"Import"===t.type,"Super"!==t.type,a,n);let l=this.finishCallExpression(a,c);return o&&this.shouldParseAsyncArrow()&&!r?(s.stop=!0,this.checkDestructuringPrivate(n),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),l=this.parseAsyncArrowFromCallExpression(this.startNodeAt(e),l)):(o&&(this.checkExpressionErrors(n,!0),this.expressionScope.exit()),this.toReferencedArguments(l)),this.state.maybeInArrowParameters=i,l}toReferencedArguments(t,e){this.toReferencedListDeep(t.arguments,e)}parseTaggedTemplateExpression(t,e,s){const r=this.startNodeAt(e);return r.tag=t,r.quasi=this.parseTemplate(!0),s.optionalChainMember&&this.raise(g.OptionalChainingNoTemplate,e),this.finishNode(r,"TaggedTemplateExpression")}atPossibleAsyncArrow(t){return"Identifier"===t.type&&"async"===t.name&&this.state.lastTokEndLoc.index===t.end&&!this.canInsertSemicolon()&&t.end-t.start==5&&t.start===this.state.potentialArrowAt}expectImportAttributesPlugin(){this.hasPlugin("importAssertions")||this.expectPlugin("importAttributes")}finishCallExpression(t,e){if("Import"===t.callee.type)if(2===t.arguments.length&&(this.hasPlugin("moduleAttributes")||this.expectImportAttributesPlugin()),0===t.arguments.length||t.arguments.length>2)this.raise(g.ImportCallArity,t,{maxArgumentCount:this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions")||this.hasPlugin("moduleAttributes")?2:1});else for(const e of t.arguments)"SpreadElement"===e.type&&this.raise(g.ImportCallSpreadArgument,e);return this.finishNode(t,e?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(t,e,s,r,i){const n=[];let a=!0;const o=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(t);){if(a)a=!1;else if(this.expect(12),this.match(t)){!e||this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions")||this.hasPlugin("moduleAttributes")||this.raise(g.ImportCallArgumentTrailingComma,this.state.lastTokStartLoc),r&&this.addTrailingCommaExtraToNode(r),this.next();break}n.push(this.parseExprListItem(!1,i,s))}return this.state.inFSharpPipelineDirectBody=o,n}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(t,e){var s;return this.resetPreviousNodeTrailingComments(e),this.expect(19),this.parseArrowExpression(t,e.arguments,!0,null==(s=e.extra)?void 0:s.trailingCommaLoc),e.innerComments&&wt(t,e.innerComments),e.callee.trailingComments&&wt(t,e.callee.trailingComments),t}parseNoCallExpr(){const t=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),t,!0)}parseExprAtom(t){let e,s=null;const{type:r}=this.state;switch(r){case 79:return this.parseSuper();case 83:return e=this.startNode(),this.next(),this.match(16)?this.parseImportMetaProperty(e):this.match(10)?this.options.createImportExpressions?this.parseImportCall(e):this.finishNode(e,"Import"):(this.raise(g.UnsupportedImport,this.state.lastTokStartLoc),this.finishNode(e,"Import"));case 78:return e=this.startNode(),this.next(),this.finishNode(e,"ThisExpression");case 90:return this.parseDo(this.startNode(),!1);case 56:case 31:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 134:return this.parseNumericLiteral(this.state.value);case 135:return this.parseBigIntLiteral(this.state.value);case 136:return this.parseDecimalLiteral(this.state.value);case 133:return this.parseStringLiteral(this.state.value);case 84:return this.parseNullLiteral();case 85:return this.parseBooleanLiteral(!0);case 86:return this.parseBooleanLiteral(!1);case 10:{const t=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(t)}case 2:case 1:return this.parseArrayLike(2===this.state.type?4:3,!1,!0);case 0:return this.parseArrayLike(3,!0,!1,t);case 6:case 7:return this.parseObjectLike(6===this.state.type?9:8,!1,!0);case 5:return this.parseObjectLike(8,!1,!1,t);case 68:return this.parseFunctionOrFunctionSent();case 26:s=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(s,this.startNode()),!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{e=this.startNode(),this.next(),e.object=null;const t=e.callee=this.parseNoCallExpr();if("MemberExpression"===t.type)return this.finishNode(e,"BindExpression");throw this.raise(g.UnsupportedBind,t)}case 138:return this.raise(g.PrivateInExpectedIn,this.state.startLoc,{identifierName:this.state.value}),this.parsePrivateName();case 33:return this.parseTopicReferenceThenEqualsSign(54,"%");case 32:return this.parseTopicReferenceThenEqualsSign(44,"^");case 37:case 38:return this.parseTopicReference("hack");case 44:case 54:case 27:{const t=this.getPluginOption("pipelineOperator","proposal");if(t)return this.parseTopicReference(t);this.unexpected();break}case 47:{const t=this.input.codePointAt(this.nextTokenStart());nt(t)||62===t?this.expectOnePlugin(["jsx","flow","typescript"]):this.unexpected();break}default:if(H(r)){if(this.isContextual(127)&&123===this.lookaheadInLineCharCode())return this.parseModuleExpression();const t=this.state.potentialArrowAt===this.state.start,e=this.state.containsEsc,s=this.parseIdentifier();if(!e&&"async"===s.name&&!this.canInsertSemicolon()){const{type:t}=this.state;if(68===t)return this.resetPreviousNodeTrailingComments(s),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(s));if(H(t))return 61===this.lookaheadCharCode()?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(s)):s;if(90===t)return this.resetPreviousNodeTrailingComments(s),this.parseDo(this.startNodeAtNode(s),!0)}return t&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(s),[s],!1)):s}this.unexpected()}}parseTopicReferenceThenEqualsSign(t,e){const s=this.getPluginOption("pipelineOperator","proposal");if(s)return this.state.type=t,this.state.value=e,this.state.pos--,this.state.end--,this.state.endLoc=n(this.state.endLoc,-1),this.parseTopicReference(s);this.unexpected()}parseTopicReference(t){const e=this.startNode(),s=this.state.startLoc,r=this.state.type;return this.next(),this.finishTopicReference(e,s,t,r)}finishTopicReference(t,e,s,r){if(this.testTopicReferenceConfiguration(s,e,r)){const r="smart"===s?"PipelinePrimaryTopicReference":"TopicReference";return this.topicReferenceIsAllowedInCurrentContext()||this.raise("smart"===s?g.PrimaryTopicNotAllowed:g.PipeTopicUnbound,e),this.registerTopicReference(),this.finishNode(t,r)}throw this.raise(g.PipeTopicUnconfiguredToken,e,{token:K(r)})}testTopicReferenceConfiguration(t,e,s){switch(t){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:K(s)}]);case"smart":return 27===s;default:throw this.raise(g.PipeTopicRequiresHackPipes,e)}}parseAsyncArrowUnaryFunction(t){this.prodParam.enter(Xt(!0,this.prodParam.hasYield));const e=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(g.LineTerminatorBeforeArrow,this.state.curPosition()),this.expect(19),this.parseArrowExpression(t,e,!0)}parseDo(t,e){this.expectPlugin("doExpressions"),e&&this.expectPlugin("asyncDoExpressions"),t.async=e,this.next();const s=this.state.labels;return this.state.labels=[],e?(this.prodParam.enter(2),t.body=this.parseBlock(),this.prodParam.exit()):t.body=this.parseBlock(),this.state.labels=s,this.finishNode(t,"DoExpression")}parseSuper(){const t=this.startNode();return this.next(),!this.match(10)||this.scope.allowDirectSuper||this.options.allowSuperOutsideMethod?this.scope.allowSuper||this.options.allowSuperOutsideMethod||this.raise(g.UnexpectedSuper,t):this.raise(g.SuperNotAllowed,t),this.match(10)||this.match(0)||this.match(16)||this.raise(g.UnsupportedSuper,t),this.finishNode(t,"Super")}parsePrivateName(){const t=this.startNode(),e=this.startNodeAt(n(this.state.startLoc,1)),s=this.state.value;return this.next(),t.id=this.createIdentifier(e,s),this.finishNode(t,"PrivateName")}parseFunctionOrFunctionSent(){const t=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){const e=this.createIdentifier(this.startNodeAtNode(t),"function");return this.next(),this.match(103)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected(),this.parseMetaProperty(t,e,"sent")}return this.parseFunction(t)}parseMetaProperty(t,e,s){t.meta=e;const r=this.state.containsEsc;return t.property=this.parseIdentifier(!0),(t.property.name!==s||r)&&this.raise(g.UnsupportedMetaProperty,t.property,{target:e.name,onlyValidPropertyName:s}),this.finishNode(t,"MetaProperty")}parseImportMetaProperty(t){const e=this.createIdentifier(this.startNodeAtNode(t),"import");if(this.next(),this.isContextual(101))this.inModule||this.raise(g.ImportMetaOutsideModule,e),this.sawUnambiguousESM=!0;else if(this.isContextual(105)||this.isContextual(97)){const e=this.isContextual(105);if(e||this.unexpected(),this.expectPlugin(e?"sourcePhaseImports":"deferredImportEvaluation"),!this.options.createImportExpressions)throw this.raise(g.DynamicImportPhaseRequiresImportExpressions,this.state.startLoc,{phase:this.state.value});return this.next(),t.phase=e?"source":"defer",this.parseImportCall(t)}return this.parseMetaProperty(t,e,"meta")}parseLiteralAtNode(t,e,s){return this.addExtra(s,"rawValue",t),this.addExtra(s,"raw",this.input.slice(s.start,this.state.end)),s.value=t,this.next(),this.finishNode(s,e)}parseLiteral(t,e){const s=this.startNode();return this.parseLiteralAtNode(t,e,s)}parseStringLiteral(t){return this.parseLiteral(t,"StringLiteral")}parseNumericLiteral(t){return this.parseLiteral(t,"NumericLiteral")}parseBigIntLiteral(t){return this.parseLiteral(t,"BigIntLiteral")}parseDecimalLiteral(t){return this.parseLiteral(t,"DecimalLiteral")}parseRegExpLiteral(t){const e=this.startNode();return this.addExtra(e,"raw",this.input.slice(e.start,this.state.end)),e.pattern=t.pattern,e.flags=t.flags,this.next(),this.finishNode(e,"RegExpLiteral")}parseBooleanLiteral(t){const e=this.startNode();return e.value=t,this.next(),this.finishNode(e,"BooleanLiteral")}parseNullLiteral(){const t=this.startNode();return this.next(),this.finishNode(t,"NullLiteral")}parseParenAndDistinguishExpression(t){const e=this.state.startLoc;let s;this.next(),this.expressionScope.enter(new qt(1));const r=this.state.maybeInArrowParameters,i=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;const n=this.state.startLoc,a=[],o=new Qt;let c,l,h=!0;for(;!this.match(11);){if(h)h=!1;else if(this.expect(12,null===o.optionalParametersLoc?null:o.optionalParametersLoc),this.match(11)){l=this.state.startLoc;break}if(this.match(21)){const t=this.state.startLoc;if(c=this.state.startLoc,a.push(this.parseParenItem(this.parseRestBinding(),t)),!this.checkCommaAfterRest(41))break}else a.push(this.parseMaybeAssignAllowIn(o,this.parseParenItem))}const u=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=r,this.state.inFSharpPipelineDirectBody=i;let p=this.startNodeAt(e);return t&&this.shouldParseArrow(a)&&(p=this.parseArrow(p))?(this.checkDestructuringPrivate(o),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(p,a,!1),p):(this.expressionScope.exit(),a.length||this.unexpected(this.state.lastTokStartLoc),l&&this.unexpected(l),c&&this.unexpected(c),this.checkExpressionErrors(o,!0),this.toReferencedListDeep(a,!0),a.length>1?(s=this.startNodeAt(n),s.expressions=a,this.finishNode(s,"SequenceExpression"),this.resetEndLocation(s,u)):s=a[0],this.wrapParenthesis(e,s))}wrapParenthesis(t,e){if(!this.options.createParenthesizedExpressions)return this.addExtra(e,"parenthesized",!0),this.addExtra(e,"parenStart",t.index),this.takeSurroundingComments(e,t.index,this.state.lastTokEndLoc.index),e;const s=this.startNodeAt(t);return s.expression=e,this.finishNode(s,"ParenthesizedExpression")}shouldParseArrow(t){return!this.canInsertSemicolon()}parseArrow(t){if(this.eat(19))return t}parseParenItem(t,e){return t}parseNewOrNewTarget(){const t=this.startNode();if(this.next(),this.match(16)){const e=this.createIdentifier(this.startNodeAtNode(t),"new");this.next();const s=this.parseMetaProperty(t,e,"target");return this.scope.inNonArrowFunction||this.scope.inClass||this.options.allowNewTargetOutsideFunction||this.raise(g.UnexpectedNewTarget,s),s}return this.parseNew(t)}parseNew(t){if(this.parseNewCallee(t),this.eat(10)){const e=this.parseExprList(11);this.toReferencedList(e),t.arguments=e}else t.arguments=[];return this.finishNode(t,"NewExpression")}parseNewCallee(t){const e=this.match(83),s=this.parseNoCallExpr();t.callee=s,!e||"Import"!==s.type&&"ImportExpression"!==s.type||this.raise(g.ImportCallNotNewExpression,s)}parseTemplateElement(t){const{start:e,startLoc:s,end:r,value:i}=this.state,a=e+1,o=this.startNodeAt(n(s,1));null===i&&(t||this.raise(g.InvalidEscapeSequenceTemplate,n(this.state.firstInvalidTemplateEscapePos,1)));const c=this.match(24),l=c?-1:-2,h=r+l;o.value={raw:this.input.slice(a,h).replace(/\r\n?/g,"\n"),cooked:null===i?null:i.slice(1,l)},o.tail=c,this.next();const u=this.finishNode(o,"TemplateElement");return this.resetEndLocation(u,n(this.state.lastTokEndLoc,l)),u}parseTemplate(t){const e=this.startNode();let s=this.parseTemplateElement(t);const r=[s],i=[];for(;!s.tail;)i.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),r.push(s=this.parseTemplateElement(t));return e.expressions=i,e.quasis=r,this.finishNode(e,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(t,e,s,r){s&&this.expectPlugin("recordAndTuple");const i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;const n=Object.create(null);let a=!0;const o=this.startNode();for(o.properties=[],this.next();!this.match(t);){if(a)a=!1;else if(this.expect(12),this.match(t)){this.addTrailingCommaExtraToNode(o);break}let i;e?i=this.parseBindingProperty():(i=this.parsePropertyDefinition(r),this.checkProto(i,s,n,r)),s&&!this.isObjectProperty(i)&&"SpreadElement"!==i.type&&this.raise(g.InvalidRecordProperty,i),i.shorthand&&this.addExtra(i,"shorthand",!0),o.properties.push(i)}this.next(),this.state.inFSharpPipelineDirectBody=i;let c="ObjectExpression";return e?c="ObjectPattern":s&&(c="RecordExpression"),this.finishNode(o,c)}addTrailingCommaExtraToNode(t){this.addExtra(t,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(t,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(t){return!t.computed&&"Identifier"===t.key.type&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(t){let e=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(g.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)e.push(this.parseDecorator());const s=this.startNode();let r,i=!1,n=!1;if(this.match(21))return e.length&&this.unexpected(),this.parseSpread();e.length&&(s.decorators=e,e=[]),s.method=!1,t&&(r=this.state.startLoc);let a=this.eat(55);this.parsePropertyNamePrefixOperator(s);const o=this.state.containsEsc;if(this.parsePropertyName(s,t),!a&&!o&&this.maybeAsyncOrAccessorProp(s)){const{key:t}=s,e=t.name;"async"!==e||this.hasPrecedingLineBreak()||(i=!0,this.resetPreviousNodeTrailingComments(t),a=this.eat(55),this.parsePropertyName(s)),"get"!==e&&"set"!==e||(n=!0,this.resetPreviousNodeTrailingComments(t),s.kind=e,this.match(55)&&(a=!0,this.raise(g.AccessorIsGenerator,this.state.curPosition(),{kind:e}),this.next()),this.parsePropertyName(s))}return this.parseObjPropValue(s,r,a,i,!1,n,t)}getGetterSetterExpectedParamCount(t){return"get"===t.kind?0:1}getObjectOrClassMethodParams(t){return t.params}checkGetterSetterParams(t){var e;const s=this.getGetterSetterExpectedParamCount(t),r=this.getObjectOrClassMethodParams(t);r.length!==s&&this.raise("get"===t.kind?g.BadGetterArity:g.BadSetterArity,t),"set"===t.kind&&"RestElement"===(null==(e=r[r.length-1])?void 0:e.type)&&this.raise(g.BadSetterRestParameter,t)}parseObjectMethod(t,e,s,r,i){if(i){const s=this.parseMethod(t,e,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(s),s}if(s||e||this.match(10))return r&&this.unexpected(),t.kind="method",t.method=!0,this.parseMethod(t,e,s,!1,!1,"ObjectMethod")}parseObjectProperty(t,e,s,r){if(t.shorthand=!1,this.eat(14))return t.value=s?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowIn(r),this.finishNode(t,"ObjectProperty");if(!t.computed&&"Identifier"===t.key.type){if(this.checkReservedWord(t.key.name,t.key.loc.start,!0,!1),s)t.value=this.parseMaybeDefault(e,se(t.key));else if(this.match(29)){const s=this.state.startLoc;null!=r?null===r.shorthandAssignLoc&&(r.shorthandAssignLoc=s):this.raise(g.InvalidCoverInitializedName,s),t.value=this.parseMaybeDefault(e,se(t.key))}else t.value=se(t.key);return t.shorthand=!0,this.finishNode(t,"ObjectProperty")}}parseObjPropValue(t,e,s,r,i,n,a){const o=this.parseObjectMethod(t,s,r,i,n)||this.parseObjectProperty(t,e,i,a);return o||this.unexpected(),o}parsePropertyName(t,e){if(this.eat(0))t.computed=!0,t.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{const{type:s,value:r}=this.state;let i;if(W(s))i=this.parseIdentifier(!0);else switch(s){case 134:i=this.parseNumericLiteral(r);break;case 133:i=this.parseStringLiteral(r);break;case 135:i=this.parseBigIntLiteral(r);break;case 136:i=this.parseDecimalLiteral(r);break;case 138:{const t=this.state.startLoc;null!=e?null===e.privateKeyLoc&&(e.privateKeyLoc=t):this.raise(g.UnexpectedPrivateField,t),i=this.parsePrivateName();break}default:this.unexpected()}t.key=i,138!==s&&(t.computed=!1)}}initFunction(t,e){t.id=null,t.generator=!1,t.async=e}parseMethod(t,e,s,r,i,n,a=!1){this.initFunction(t,s),t.generator=e,this.scope.enter(18|(a?64:0)|(i?32:0)),this.prodParam.enter(Xt(s,t.generator)),this.parseFunctionParams(t,r);const o=this.parseFunctionBodyAndFinish(t,n,!0);return this.prodParam.exit(),this.scope.exit(),o}parseArrayLike(t,e,s,r){s&&this.expectPlugin("recordAndTuple");const i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;const n=this.startNode();return this.next(),n.elements=this.parseExprList(t,!s,r,n),this.state.inFSharpPipelineDirectBody=i,this.finishNode(n,s?"TupleExpression":"ArrayExpression")}parseArrowExpression(t,e,s,r){this.scope.enter(6);let i=Xt(s,!1);!this.match(5)&&this.prodParam.hasIn&&(i|=8),this.prodParam.enter(i),this.initFunction(t,s);const n=this.state.maybeInArrowParameters;return e&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(t,e,r)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(t,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=n,this.finishNode(t,"ArrowFunctionExpression")}setArrowFunctionParameters(t,e,s){this.toAssignableList(e,s,!1),t.params=e}parseFunctionBodyAndFinish(t,e,s=!1){return this.parseFunctionBody(t,!1,s),this.finishNode(t,e)}parseFunctionBody(t,e,s=!1){const r=e&&!this.match(5);if(this.expressionScope.enter(Jt()),r)t.body=this.parseMaybeAssign(),this.checkParams(t,!1,e,!1);else{const r=this.state.strict,i=this.state.labels;this.state.labels=[],this.prodParam.enter(4|this.prodParam.currentFlags()),t.body=this.parseBlock(!0,!1,(i=>{const n=!this.isSimpleParamList(t.params);i&&n&&this.raise(g.IllegalLanguageModeDirective,"method"!==t.kind&&"constructor"!==t.kind||!t.key?t:t.key.loc.end);const a=!r&&this.state.strict;this.checkParams(t,!(this.state.strict||e||s||n),e,a),this.state.strict&&t.id&&this.checkIdentifier(t.id,65,a)})),this.prodParam.exit(),this.state.labels=i}this.expressionScope.exit()}isSimpleParameter(t){return"Identifier"===t.type}isSimpleParamList(t){for(let e=0,s=t.length;e<s;e++)if(!this.isSimpleParameter(t[e]))return!1;return!0}checkParams(t,e,s,r=!0){const i=!e&&new Set,n={type:"FormalParameters"};for(const e of t.params)this.checkLVal(e,n,5,i,r)}parseExprList(t,e,s,r){const i=[];let n=!0;for(;!this.eat(t);){if(n)n=!1;else if(this.expect(12),this.match(t)){r&&this.addTrailingCommaExtraToNode(r),this.next();break}i.push(this.parseExprListItem(e,s))}return i}parseExprListItem(t,e,s){let r;if(this.match(12))t||this.raise(g.UnexpectedToken,this.state.curPosition(),{unexpected:","}),r=null;else if(this.match(21)){const t=this.state.startLoc;r=this.parseParenItem(this.parseSpread(e),t)}else if(this.match(17)){this.expectPlugin("partialApplication"),s||this.raise(g.UnexpectedArgumentPlaceholder,this.state.startLoc);const t=this.startNode();this.next(),r=this.finishNode(t,"ArgumentPlaceholder")}else r=this.parseMaybeAssignAllowIn(e,this.parseParenItem);return r}parseIdentifier(t){const e=this.startNode(),s=this.parseIdentifierName(t);return this.createIdentifier(e,s)}createIdentifier(t,e){return t.name=e,t.loc.identifierName=e,this.finishNode(t,"Identifier")}parseIdentifierName(t){let e;const{startLoc:s,type:r}=this.state;W(r)?e=this.state.value:this.unexpected();const i=r<=92;return t?i&&this.replaceToken(132):this.checkReservedWord(e,s,i,!1),this.next(),e}checkReservedWord(t,e,s,r){if(!(t.length>10)&&function(t){return ft.has(t)}(t))if(s&&function(t){return ot.has(t)}(t))this.raise(g.UnexpectedKeyword,e,{keyword:t});else if((this.state.strict?r?dt:ut:ht)(t,this.inModule))this.raise(g.UnexpectedReservedWord,e,{reservedWord:t});else if("yield"===t){if(this.prodParam.hasYield)return void this.raise(g.YieldBindingIdentifier,e)}else if("await"===t){if(this.prodParam.hasAwait)return void this.raise(g.AwaitBindingIdentifier,e);if(this.scope.inStaticBlock)return void this.raise(g.AwaitBindingIdentifierInStaticBlock,e);this.expressionScope.recordAsyncArrowParametersError(e)}else if("arguments"===t&&this.scope.inClassAndNotInNonArrowFunction)return void this.raise(g.ArgumentsInClass,e)}recordAwaitIfAllowed(){const t=this.prodParam.hasAwait||this.options.allowAwaitOutsideFunction&&!this.scope.inFunction;return t&&!this.scope.inFunction&&(this.state.hasTopLevelAwait=!0),t}parseAwait(t){const e=this.startNodeAt(t);return this.expressionScope.recordParameterInitializerError(g.AwaitExpressionFormalParameter,e),this.eat(55)&&this.raise(g.ObsoleteAwaitStar,e),this.scope.inFunction||this.options.allowAwaitOutsideFunction||(this.isAmbiguousAwait()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(e.argument=this.parseMaybeUnary(null,!0)),this.finishNode(e,"AwaitExpression")}isAmbiguousAwait(){if(this.hasPrecedingLineBreak())return!0;const{type:t}=this.state;return 53===t||10===t||0===t||G(t)||102===t&&!this.state.containsEsc||137===t||56===t||this.hasPlugin("v8intrinsic")&&54===t}parseYield(){const t=this.startNode();this.expressionScope.recordParameterInitializerError(g.YieldInParameter,t),this.next();let e=!1,s=null;if(!this.hasPrecedingLineBreak())switch(e=this.eat(55),this.state.type){case 13:case 139:case 8:case 11:case 3:case 9:case 14:case 12:if(!e)break;default:s=this.parseMaybeAssign()}return t.delegate=e,t.argument=s,this.finishNode(t,"YieldExpression")}parseImportCall(t){return this.next(),t.source=this.parseMaybeAssignAllowIn(),(this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions"))&&(t.options=null),this.eat(12)&&(this.expectImportAttributesPlugin(),this.match(11)||(t.options=this.parseMaybeAssignAllowIn(),this.eat(12))),this.expect(11),this.finishNode(t,"ImportExpression")}checkPipelineAtInfixOperator(t,e){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&"SequenceExpression"===t.type&&this.raise(g.PipelineHeadSequenceExpression,e)}parseSmartPipelineBodyInStyle(t,e){if(this.isSimpleReference(t)){const s=this.startNodeAt(e);return s.callee=t,this.finishNode(s,"PipelineBareFunction")}{const s=this.startNodeAt(e);return this.checkSmartPipeTopicBodyEarlyErrors(e),s.expression=t,this.finishNode(s,"PipelineTopicExpression")}}isSimpleReference(t){switch(t.type){case"MemberExpression":return!t.computed&&this.isSimpleReference(t.object);case"Identifier":return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(t){if(this.match(19))throw this.raise(g.PipelineBodyNoArrow,this.state.startLoc);this.topicReferenceWasUsedInCurrentContext()||this.raise(g.PipelineTopicUnused,t)}withTopicBindingContext(t){const e=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return t()}finally{this.state.topicContext=e}}withSmartMixTopicForbiddingContext(t){if(!this.hasPlugin(["pipelineOperator",{proposal:"smart"}]))return t();{const e=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return t()}finally{this.state.topicContext=e}}}withSoloAwaitPermittingContext(t){const e=this.state.soloAwait;this.state.soloAwait=!0;try{return t()}finally{this.state.soloAwait=e}}allowInAnd(t){const e=this.prodParam.currentFlags();if(8&~e){this.prodParam.enter(8|e);try{return t()}finally{this.prodParam.exit()}}return t()}disallowInAnd(t){const e=this.prodParam.currentFlags();if(8&e){this.prodParam.enter(-9&e);try{return t()}finally{this.prodParam.exit()}}return t()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return null!=this.state.topicContext.maxTopicIndex&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(t){const e=this.state.startLoc;this.state.potentialArrowAt=this.state.start;const s=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;const r=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),e,t);return this.state.inFSharpPipelineDirectBody=s,r}parseModuleExpression(){this.expectPlugin("moduleBlocks");const t=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);const e=this.startNodeAt(this.state.endLoc);this.next();const s=this.initializeScopes(!0);this.enterInitialScopes();try{t.body=this.parseProgram(e,8,"module")}finally{s()}return this.finishNode(t,"ModuleExpression")}parsePropertyNamePrefixOperator(t){}}const Me={kind:1},Le={kind:2},Oe=/[\uD800-\uDFFF]/u,De=/in(?:stanceof)?/y;class Fe extends Ie{parseTopLevel(t,e){return t.program=this.parseProgram(e),t.comments=this.comments,this.options.tokens&&(t.tokens=function(t,e){for(let s=0;s<t.length;s++){const r=t[s],{type:i}=r;if("number"==typeof i){if(138===i){const{loc:e,start:i,value:a,end:o}=r,c=i+1,l=n(e.start,1);t.splice(s,1,new Ht({type:X(27),value:"#",start:i,end:c,startLoc:e.start,endLoc:l}),new Ht({type:X(132),value:a,start:c,end:o,startLoc:l,endLoc:e.end})),s++;continue}if(G(i)){const{loc:a,start:o,value:c,end:l}=r,h=o+1,u=n(a.start,1);let p,d,f,m,y;p=96===e.charCodeAt(o)?new Ht({type:X(22),value:"`",start:o,end:h,startLoc:a.start,endLoc:u}):new Ht({type:X(8),value:"}",start:o,end:h,startLoc:a.start,endLoc:u}),24===i?(f=l-1,m=n(a.end,-1),d=null===c?null:c.slice(1,-1),y=new Ht({type:X(22),value:"`",start:f,end:l,startLoc:m,endLoc:a.end})):(f=l-2,m=n(a.end,-2),d=null===c?null:c.slice(1,-2),y=new Ht({type:X(23),value:"${",start:f,end:l,startLoc:m,endLoc:a.end})),t.splice(s,1,p,new Ht({type:X(20),value:d,start:h,end:f,startLoc:u,endLoc:m}),y),s+=2;continue}r.type=X(i)}}return t}(this.tokens,this.input)),this.finishNode(t,"File")}parseProgram(t,e=139,s=this.options.sourceType){if(t.sourceType=s,t.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(t,!0,!0,e),this.inModule){if(!this.options.allowUndeclaredExports&&this.scope.undefinedExports.size>0)for(const[t,e]of Array.from(this.scope.undefinedExports))this.raise(g.ModuleExportUndefined,e,{localName:t});this.addExtra(t,"topLevelAwait",this.state.hasTopLevelAwait)}let r;return r=139===e?this.finishNode(t,"Program"):this.finishNodeAt(t,"Program",n(this.state.startLoc,-1)),r}stmtToDirective(t){const e=t;e.type="Directive",e.value=e.expression,delete e.expression;const s=e.value,r=s.value,i=this.input.slice(s.start,s.end),n=s.value=i.slice(1,-1);return this.addExtra(s,"raw",i),this.addExtra(s,"rawValue",n),this.addExtra(s,"expressionValue",r),s.type="DirectiveLiteral",e}parseInterpreterDirective(){if(!this.match(28))return null;const t=this.startNode();return t.value=this.state.value,this.next(),this.finishNode(t,"InterpreterDirective")}isLet(){return!!this.isContextual(100)&&this.hasFollowingBindingAtom()}chStartsBindingIdentifier(t,e){if(nt(t)){if(De.lastIndex=e,De.test(this.input)){const t=this.codePointAtPos(De.lastIndex);if(!at(t)&&92!==t)return!1}return!0}return 92===t}chStartsBindingPattern(t){return 91===t||123===t}hasFollowingBindingAtom(){const t=this.nextTokenStart(),e=this.codePointAtPos(t);return this.chStartsBindingPattern(e)||this.chStartsBindingIdentifier(e,t)}hasInLineFollowingBindingIdentifierOrBrace(){const t=this.nextTokenInLineStart(),e=this.codePointAtPos(t);return 123===e||this.chStartsBindingIdentifier(e,t)}startsUsingForOf(){const{type:t,containsEsc:e}=this.lookahead();return!(102===t&&!e)&&(H(t)&&!this.hasFollowingLineBreak()?(this.expectPlugin("explicitResourceManagement"),!0):void 0)}startsAwaitUsing(){let t=this.nextTokenInLineStart();if(this.isUnparsedContextual(t,"using")){t=this.nextTokenInLineStartSince(t+5);const e=this.codePointAtPos(t);if(this.chStartsBindingIdentifier(e,t))return this.expectPlugin("explicitResourceManagement"),!0}return!1}parseModuleItem(){return this.parseStatementLike(15)}parseStatementListItem(){return this.parseStatementLike(6|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(t=!1){let e=0;return this.options.annexB&&!this.state.strict&&(e|=4,t&&(e|=8)),this.parseStatementLike(e)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(t){let e=null;return this.match(26)&&(e=this.parseDecorators(!0)),this.parseStatementContent(t,e)}parseStatementContent(t,e){const s=this.state.type,r=this.startNode(),i=!!(2&t),n=!!(4&t),a=1&t;switch(s){case 60:return this.parseBreakContinueStatement(r,!0);case 63:return this.parseBreakContinueStatement(r,!1);case 64:return this.parseDebuggerStatement(r);case 90:return this.parseDoWhileStatement(r);case 91:return this.parseForStatement(r);case 68:if(46===this.lookaheadCharCode())break;return n||this.raise(this.state.strict?g.StrictFunction:this.options.annexB?g.SloppyFunctionAnnexB:g.SloppyFunction,this.state.startLoc),this.parseFunctionStatement(r,!1,!i&&n);case 80:return i||this.unexpected(),this.parseClass(this.maybeTakeDecorators(e,r),!0);case 69:return this.parseIfStatement(r);case 70:return this.parseReturnStatement(r);case 71:return this.parseSwitchStatement(r);case 72:return this.parseThrowStatement(r);case 73:return this.parseTryStatement(r);case 96:if(!this.state.containsEsc&&this.startsAwaitUsing())return this.recordAwaitIfAllowed()?i||this.raise(g.UnexpectedLexicalDeclaration,r):this.raise(g.AwaitUsingNotInAsyncContext,r),this.next(),this.parseVarStatement(r,"await using");break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifierOrBrace())break;return this.expectPlugin("explicitResourceManagement"),!this.scope.inModule&&this.scope.inTopLevel?this.raise(g.UnexpectedUsingDeclaration,this.state.startLoc):i||this.raise(g.UnexpectedLexicalDeclaration,this.state.startLoc),this.parseVarStatement(r,"using");case 100:{if(this.state.containsEsc)break;const t=this.nextTokenStart(),e=this.codePointAtPos(t);if(91!==e){if(!i&&this.hasFollowingLineBreak())break;if(!this.chStartsBindingIdentifier(e,t)&&123!==e)break}}case 75:i||this.raise(g.UnexpectedLexicalDeclaration,this.state.startLoc);case 74:{const t=this.state.value;return this.parseVarStatement(r,t)}case 92:return this.parseWhileStatement(r);case 76:return this.parseWithStatement(r);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(r);case 83:{const t=this.lookaheadCharCode();if(40===t||46===t)break}case 82:{let t;return this.options.allowImportExportEverywhere||a||this.raise(g.UnexpectedImportExport,this.state.startLoc),this.next(),83===s?(t=this.parseImport(r),"ImportDeclaration"!==t.type||t.importKind&&"value"!==t.importKind||(this.sawUnambiguousESM=!0)):(t=this.parseExport(r,e),("ExportNamedDeclaration"!==t.type||t.exportKind&&"value"!==t.exportKind)&&("ExportAllDeclaration"!==t.type||t.exportKind&&"value"!==t.exportKind)&&"ExportDefaultDeclaration"!==t.type||(this.sawUnambiguousESM=!0)),this.assertModuleNodeAllowed(t),t}default:if(this.isAsyncFunction())return i||this.raise(g.AsyncFunctionInSingleStatementContext,this.state.startLoc),this.next(),this.parseFunctionStatement(r,!0,!i&&n)}const o=this.state.value,c=this.parseExpression();return H(s)&&"Identifier"===c.type&&this.eat(14)?this.parseLabeledStatement(r,o,c,t):this.parseExpressionStatement(r,c,e)}assertModuleNodeAllowed(t){this.options.allowImportExportEverywhere||this.inModule||this.raise(g.ImportOutsideModule,t)}decoratorsEnabledBeforeExport(){return!!this.hasPlugin("decorators-legacy")||this.hasPlugin("decorators")&&!1!==this.getPluginOption("decorators","decoratorsBeforeExport")}maybeTakeDecorators(t,e,s){return t&&(e.decorators&&e.decorators.length>0?("boolean"!=typeof this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(g.DecoratorsBeforeAfterExport,e.decorators[0]),e.decorators.unshift(...t)):e.decorators=t,this.resetStartLocationFromNode(e,t[0]),s&&this.resetStartLocationFromNode(s,e)),e}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(t){const e=[];do{e.push(this.parseDecorator())}while(this.match(26));if(this.match(82))t||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(g.DecoratorExportClass,this.state.startLoc);else if(!this.canHaveLeadingDecorator())throw this.raise(g.UnexpectedLeadingDecorator,this.state.startLoc);return e}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);const t=this.startNode();if(this.next(),this.hasPlugin("decorators")){const e=this.state.startLoc;let s;if(this.match(10)){const e=this.state.startLoc;this.next(),s=this.parseExpression(),this.expect(11),s=this.wrapParenthesis(e,s);const r=this.state.startLoc;t.expression=this.parseMaybeDecoratorArguments(s),!1===this.getPluginOption("decorators","allowCallParenthesized")&&t.expression!==s&&this.raise(g.DecoratorArgumentsOutsideParentheses,r)}else{for(s=this.parseIdentifier(!1);this.eat(16);){const t=this.startNodeAt(e);t.object=s,this.match(138)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),t.property=this.parsePrivateName()):t.property=this.parseIdentifier(!0),t.computed=!1,s=this.finishNode(t,"MemberExpression")}t.expression=this.parseMaybeDecoratorArguments(s)}}else t.expression=this.parseExprSubscripts();return this.finishNode(t,"Decorator")}parseMaybeDecoratorArguments(t){if(this.eat(10)){const e=this.startNodeAtNode(t);return e.callee=t,e.arguments=this.parseCallExpressionArguments(11,!1),this.toReferencedList(e.arguments),this.finishNode(e,"CallExpression")}return t}parseBreakContinueStatement(t,e){return this.next(),this.isLineTerminator()?t.label=null:(t.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(t,e),this.finishNode(t,e?"BreakStatement":"ContinueStatement")}verifyBreakContinue(t,e){let s;for(s=0;s<this.state.labels.length;++s){const r=this.state.labels[s];if(null==t.label||r.name===t.label.name){if(null!=r.kind&&(e||1===r.kind))break;if(t.label&&e)break}}if(s===this.state.labels.length){const s=e?"BreakStatement":"ContinueStatement";this.raise(g.IllegalBreakContinue,t,{type:s})}}parseDebuggerStatement(t){return this.next(),this.semicolon(),this.finishNode(t,"DebuggerStatement")}parseHeaderExpression(){this.expect(10);const t=this.parseExpression();return this.expect(11),t}parseDoWhileStatement(t){return this.next(),this.state.labels.push(Me),t.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement())),this.state.labels.pop(),this.expect(92),t.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(t,"DoWhileStatement")}parseForStatement(t){this.next(),this.state.labels.push(Me);let e=null;if(this.isContextual(96)&&this.recordAwaitIfAllowed()&&(e=this.state.startLoc,this.next()),this.scope.enter(0),this.expect(10),this.match(13))return null!==e&&this.unexpected(e),this.parseFor(t,null);const s=this.isContextual(100);{const r=this.isContextual(96)&&this.startsAwaitUsing(),i=r||this.isContextual(107)&&this.startsUsingForOf(),n=s&&this.hasFollowingBindingAtom()||i;if(this.match(74)||this.match(75)||n){const s=this.startNode();let n;r?(n="await using",this.recordAwaitIfAllowed()||this.raise(g.AwaitUsingNotInAsyncContext,this.state.startLoc),this.next()):n=this.state.value,this.next(),this.parseVar(s,!0,n);const a=this.finishNode(s,"VariableDeclaration"),o=this.match(58);return o&&i&&this.raise(g.ForInUsing,a),(o||this.isContextual(102))&&1===a.declarations.length?this.parseForIn(t,a,e):(null!==e&&this.unexpected(e),this.parseFor(t,a))}}const r=this.isContextual(95),i=new Qt,n=this.parseExpression(!0,i),a=this.isContextual(102);if(a&&(s&&this.raise(g.ForOfLet,n),null===e&&r&&"Identifier"===n.type&&this.raise(g.ForOfAsync,n)),a||this.match(58)){this.checkDestructuringPrivate(i),this.toAssignable(n,!0);const s=a?"ForOfStatement":"ForInStatement";return this.checkLVal(n,{type:s}),this.parseForIn(t,n,e)}return this.checkExpressionErrors(i,!0),null!==e&&this.unexpected(e),this.parseFor(t,n)}parseFunctionStatement(t,e,s){return this.next(),this.parseFunction(t,1|(s?2:0)|(e?8:0))}parseIfStatement(t){return this.next(),t.test=this.parseHeaderExpression(),t.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),t.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(t,"IfStatement")}parseReturnStatement(t){return this.prodParam.hasReturn||this.options.allowReturnOutsideFunction||this.raise(g.IllegalReturn,this.state.startLoc),this.next(),this.isLineTerminator()?t.argument=null:(t.argument=this.parseExpression(),this.semicolon()),this.finishNode(t,"ReturnStatement")}parseSwitchStatement(t){this.next(),t.discriminant=this.parseHeaderExpression();const e=t.cases=[];let s;this.expect(5),this.state.labels.push(Le),this.scope.enter(0);for(let t;!this.match(8);)if(this.match(61)||this.match(65)){const r=this.match(61);s&&this.finishNode(s,"SwitchCase"),e.push(s=this.startNode()),s.consequent=[],this.next(),r?s.test=this.parseExpression():(t&&this.raise(g.MultipleDefaultsInSwitch,this.state.lastTokStartLoc),t=!0,s.test=null),this.expect(14)}else s?s.consequent.push(this.parseStatementListItem()):this.unexpected();return this.scope.exit(),s&&this.finishNode(s,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(t,"SwitchStatement")}parseThrowStatement(t){return this.next(),this.hasPrecedingLineBreak()&&this.raise(g.NewlineAfterThrow,this.state.lastTokEndLoc),t.argument=this.parseExpression(),this.semicolon(),this.finishNode(t,"ThrowStatement")}parseCatchClauseParam(){const t=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&"Identifier"===t.type?8:0),this.checkLVal(t,{type:"CatchClause"},9),t}parseTryStatement(t){if(this.next(),t.block=this.parseBlock(),t.handler=null,this.match(62)){const e=this.startNode();this.next(),this.match(10)?(this.expect(10),e.param=this.parseCatchClauseParam(),this.expect(11)):(e.param=null,this.scope.enter(0)),e.body=this.withSmartMixTopicForbiddingContext((()=>this.parseBlock(!1,!1))),this.scope.exit(),t.handler=this.finishNode(e,"CatchClause")}return t.finalizer=this.eat(67)?this.parseBlock():null,t.handler||t.finalizer||this.raise(g.NoCatchOrFinally,t),this.finishNode(t,"TryStatement")}parseVarStatement(t,e,s=!1){return this.next(),this.parseVar(t,!1,e,s),this.semicolon(),this.finishNode(t,"VariableDeclaration")}parseWhileStatement(t){return this.next(),t.test=this.parseHeaderExpression(),this.state.labels.push(Me),t.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement())),this.state.labels.pop(),this.finishNode(t,"WhileStatement")}parseWithStatement(t){return this.state.strict&&this.raise(g.StrictWith,this.state.startLoc),this.next(),t.object=this.parseHeaderExpression(),t.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement())),this.finishNode(t,"WithStatement")}parseEmptyStatement(t){return this.next(),this.finishNode(t,"EmptyStatement")}parseLabeledStatement(t,e,s,r){for(const t of this.state.labels)t.name===e&&this.raise(g.LabelRedeclaration,s,{labelName:e});const i=(n=this.state.type)>=90&&n<=92?1:this.match(71)?2:null;var n;for(let e=this.state.labels.length-1;e>=0;e--){const s=this.state.labels[e];if(s.statementStart!==t.start)break;s.statementStart=this.state.start,s.kind=i}return this.state.labels.push({name:e,kind:i,statementStart:this.state.start}),t.body=8&r?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),t.label=s,this.finishNode(t,"LabeledStatement")}parseExpressionStatement(t,e,s){return t.expression=e,this.semicolon(),this.finishNode(t,"ExpressionStatement")}parseBlock(t=!1,e=!0,s){const r=this.startNode();return t&&this.state.strictErrors.clear(),this.expect(5),e&&this.scope.enter(0),this.parseBlockBody(r,t,!1,8,s),e&&this.scope.exit(),this.finishNode(r,"BlockStatement")}isValidDirective(t){return"ExpressionStatement"===t.type&&"StringLiteral"===t.expression.type&&!t.expression.extra.parenthesized}parseBlockBody(t,e,s,r,i){const n=t.body=[],a=t.directives=[];this.parseBlockOrModuleBlockBody(n,e?a:void 0,s,r,i)}parseBlockOrModuleBlockBody(t,e,s,r,i){const n=this.state.strict;let a=!1,o=!1;for(;!this.match(r);){const r=s?this.parseModuleItem():this.parseStatementListItem();if(e&&!o){if(this.isValidDirective(r)){const t=this.stmtToDirective(r);e.push(t),a||"use strict"!==t.value.value||(a=!0,this.setStrict(!0));continue}o=!0,this.state.strictErrors.clear()}t.push(r)}null==i||i.call(this,a),n||this.setStrict(!1),this.next()}parseFor(t,e){return t.init=e,this.semicolon(!1),t.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),t.update=this.match(11)?null:this.parseExpression(),this.expect(11),t.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement())),this.scope.exit(),this.state.labels.pop(),this.finishNode(t,"ForStatement")}parseForIn(t,e,s){const r=this.match(58);return this.next(),r?null!==s&&this.unexpected(s):t.await=null!==s,"VariableDeclaration"!==e.type||null==e.declarations[0].init||r&&this.options.annexB&&!this.state.strict&&"var"===e.kind&&"Identifier"===e.declarations[0].id.type||this.raise(g.ForInOfLoopInitializer,e,{type:r?"ForInStatement":"ForOfStatement"}),"AssignmentPattern"===e.type&&this.raise(g.InvalidLhs,e,{ancestor:{type:"ForStatement"}}),t.left=e,t.right=r?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),t.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement())),this.scope.exit(),this.state.labels.pop(),this.finishNode(t,r?"ForInStatement":"ForOfStatement")}parseVar(t,e,s,r=!1){const i=t.declarations=[];for(t.kind=s;;){const t=this.startNode();if(this.parseVarId(t,s),t.init=this.eat(29)?e?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,null!==t.init||r||("Identifier"===t.id.type||e&&(this.match(58)||this.isContextual(102))?"const"!==s&&"using"!==s&&"await using"!==s||this.match(58)||this.isContextual(102)||this.raise(g.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:s}):this.raise(g.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"})),i.push(this.finishNode(t,"VariableDeclarator")),!this.eat(12))break}return t}parseVarId(t,e){const s=this.parseBindingAtom();"using"!==e&&"await using"!==e||"ArrayPattern"!==s.type&&"ObjectPattern"!==s.type||this.raise(g.UsingDeclarationHasBindingPattern,s.loc.start),this.checkLVal(s,{type:"VariableDeclarator"},"var"===e?5:8201),t.id=s}parseAsyncFunctionExpression(t){return this.parseFunction(t,8)}parseFunction(t,e=0){const s=2&e,r=!!(1&e),i=r&&!(4&e),n=!!(8&e);this.initFunction(t,n),this.match(55)&&(s&&this.raise(g.GeneratorInSingleStatementContext,this.state.startLoc),this.next(),t.generator=!0),r&&(t.id=this.parseFunctionId(i));const a=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(2),this.prodParam.enter(Xt(n,t.generator)),r||(t.id=this.parseFunctionId()),this.parseFunctionParams(t,!1),this.withSmartMixTopicForbiddingContext((()=>{this.parseFunctionBodyAndFinish(t,r?"FunctionDeclaration":"FunctionExpression")})),this.prodParam.exit(),this.scope.exit(),r&&!s&&this.registerFunctionStatementId(t),this.state.maybeInArrowParameters=a,t}parseFunctionId(t){return t||H(this.state.type)?this.parseIdentifier():null}parseFunctionParams(t,e){this.expect(10),this.expressionScope.enter(new Vt(3)),t.params=this.parseBindingList(11,41,2|(e?4:0)),this.expressionScope.exit()}registerFunctionStatementId(t){t.id&&this.scope.declareName(t.id.name,!this.options.annexB||this.state.strict||t.generator||t.async?this.scope.treatFunctionsAsVar?5:8201:17,t.id.loc.start)}parseClass(t,e,s){this.next();const r=this.state.strict;return this.state.strict=!0,this.parseClassId(t,e,s),this.parseClassSuper(t),t.body=this.parseClassBody(!!t.superClass,r),this.finishNode(t,e?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}nameIsConstructor(t){return"Identifier"===t.type&&"constructor"===t.name||"StringLiteral"===t.type&&"constructor"===t.value}isNonstaticConstructor(t){return!t.computed&&!t.static&&this.nameIsConstructor(t.key)}parseClassBody(t,e){this.classScope.enter();const s={hadConstructor:!1,hadSuperClass:t};let r=[];const i=this.startNode();if(i.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext((()=>{for(;!this.match(8);){if(this.eat(13)){if(r.length>0)throw this.raise(g.DecoratorSemicolon,this.state.lastTokEndLoc);continue}if(this.match(26)){r.push(this.parseDecorator());continue}const t=this.startNode();r.length&&(t.decorators=r,this.resetStartLocationFromNode(t,r[0]),r=[]),this.parseClassMember(i,t,s),"constructor"===t.kind&&t.decorators&&t.decorators.length>0&&this.raise(g.DecoratorConstructor,t)}})),this.state.strict=e,this.next(),r.length)throw this.raise(g.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(i,"ClassBody")}parseClassMemberFromModifier(t,e){const s=this.parseIdentifier(!0);if(this.isClassMethod()){const r=e;return r.kind="method",r.computed=!1,r.key=s,r.static=!1,this.pushClassMethod(t,r,!1,!1,!1,!1),!0}if(this.isClassProperty()){const r=e;return r.computed=!1,r.key=s,r.static=!1,t.body.push(this.parseClassProperty(r)),!0}return this.resetPreviousNodeTrailingComments(s),!1}parseClassMember(t,e,s){const r=this.isContextual(106);if(r){if(this.parseClassMemberFromModifier(t,e))return;if(this.eat(5))return void this.parseClassStaticBlock(t,e)}this.parseClassMemberWithIsStatic(t,e,s,r)}parseClassMemberWithIsStatic(t,e,s,r){const i=e,n=e,a=e,o=e,c=e,l=i,h=i;if(e.static=r,this.parsePropertyNamePrefixOperator(e),this.eat(55)){l.kind="method";const e=this.match(138);return this.parseClassElementName(l),e?void this.pushClassPrivateMethod(t,n,!0,!1):(this.isNonstaticConstructor(i)&&this.raise(g.ConstructorIsGenerator,i.key),void this.pushClassMethod(t,i,!0,!1,!1,!1))}const u=!this.state.containsEsc&&H(this.state.type),p=this.parseClassElementName(e),d=u?p.name:null,f=this.isPrivateName(p),m=this.state.startLoc;if(this.parsePostMemberNameModifiers(h),this.isClassMethod()){if(l.kind="method",f)return void this.pushClassPrivateMethod(t,n,!1,!1);const r=this.isNonstaticConstructor(i);let a=!1;r&&(i.kind="constructor",s.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(g.DuplicateConstructor,p),r&&this.hasPlugin("typescript")&&e.override&&this.raise(g.OverrideOnConstructor,p),s.hadConstructor=!0,a=s.hadSuperClass),this.pushClassMethod(t,i,!1,!1,r,a)}else if(this.isClassProperty())f?this.pushClassPrivateProperty(t,o):this.pushClassProperty(t,a);else if("async"!==d||this.isLineTerminator())if("get"!==d&&"set"!==d||this.match(55)&&this.isLineTerminator())if("accessor"!==d||this.isLineTerminator())this.isLineTerminator()?f?this.pushClassPrivateProperty(t,o):this.pushClassProperty(t,a):this.unexpected();else{this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(p);const e=this.match(138);this.parseClassElementName(a),this.pushClassAccessorProperty(t,c,e)}else{this.resetPreviousNodeTrailingComments(p),l.kind=d;const e=this.match(138);this.parseClassElementName(i),e?this.pushClassPrivateMethod(t,n,!1,!1):(this.isNonstaticConstructor(i)&&this.raise(g.ConstructorIsAccessor,i.key),this.pushClassMethod(t,i,!1,!1,!1,!1)),this.checkGetterSetterParams(i)}else{this.resetPreviousNodeTrailingComments(p);const e=this.eat(55);h.optional&&this.unexpected(m),l.kind="method";const s=this.match(138);this.parseClassElementName(l),this.parsePostMemberNameModifiers(h),s?this.pushClassPrivateMethod(t,n,e,!0):(this.isNonstaticConstructor(i)&&this.raise(g.ConstructorIsAsync,i.key),this.pushClassMethod(t,i,e,!0,!1,!1))}}parseClassElementName(t){const{type:e,value:s}=this.state;if(132!==e&&133!==e||!t.static||"prototype"!==s||this.raise(g.StaticPrototype,this.state.startLoc),138===e){"constructor"===s&&this.raise(g.ConstructorClassPrivateField,this.state.startLoc);const e=this.parsePrivateName();return t.key=e,e}return this.parsePropertyName(t),t.key}parseClassStaticBlock(t,e){var s;this.scope.enter(208);const r=this.state.labels;this.state.labels=[],this.prodParam.enter(0);const i=e.body=[];this.parseBlockOrModuleBlockBody(i,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=r,t.body.push(this.finishNode(e,"StaticBlock")),null!=(s=e.decorators)&&s.length&&this.raise(g.DecoratorStaticBlock,e)}pushClassProperty(t,e){!e.computed&&this.nameIsConstructor(e.key)&&this.raise(g.ConstructorClassField,e.key),t.body.push(this.parseClassProperty(e))}pushClassPrivateProperty(t,e){const s=this.parseClassPrivateProperty(e);t.body.push(s),this.classScope.declarePrivateName(this.getPrivateNameSV(s.key),0,s.key.loc.start)}pushClassAccessorProperty(t,e,s){s||e.computed||!this.nameIsConstructor(e.key)||this.raise(g.ConstructorClassField,e.key);const r=this.parseClassAccessorProperty(e);t.body.push(r),s&&this.classScope.declarePrivateName(this.getPrivateNameSV(r.key),0,r.key.loc.start)}pushClassMethod(t,e,s,r,i,n){t.body.push(this.parseMethod(e,s,r,i,n,"ClassMethod",!0))}pushClassPrivateMethod(t,e,s,r){const i=this.parseMethod(e,s,r,!1,!1,"ClassPrivateMethod",!0);t.body.push(i);const n="get"===i.kind?i.static?6:2:"set"===i.kind?i.static?5:1:0;this.declareClassPrivateMethodInScope(i,n)}declareClassPrivateMethodInScope(t,e){this.classScope.declarePrivateName(this.getPrivateNameSV(t.key),e,t.key.loc.start)}parsePostMemberNameModifiers(t){}parseClassPrivateProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassPrivateProperty")}parseClassProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassProperty")}parseClassAccessorProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassAccessorProperty")}parseInitializer(t){this.scope.enter(80),this.expressionScope.enter(Jt()),this.prodParam.enter(0),t.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(t,e,s,r=8331){if(H(this.state.type))t.id=this.parseIdentifier(),e&&this.declareNameFromIdentifier(t.id,r);else{if(!s&&e)throw this.raise(g.MissingClassName,this.state.startLoc);t.id=null}}parseClassSuper(t){t.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(t,e){const s=this.parseMaybeImportPhase(t,!0),r=this.maybeParseExportDefaultSpecifier(t,s),i=!r||this.eat(12),n=i&&this.eatExportStar(t),a=n&&this.maybeParseExportNamespaceSpecifier(t),o=i&&(!a||this.eat(12)),c=r||n;if(n&&!a){if(r&&this.unexpected(),e)throw this.raise(g.UnsupportedDecoratorExport,t);return this.parseExportFrom(t,!0),this.finishNode(t,"ExportAllDeclaration")}const l=this.maybeParseExportNamedSpecifiers(t);let h;if(r&&i&&!n&&!l&&this.unexpected(null,5),a&&o&&this.unexpected(null,98),c||l){if(h=!1,e)throw this.raise(g.UnsupportedDecoratorExport,t);this.parseExportFrom(t,c)}else h=this.maybeParseExportDeclaration(t);if(c||l||h){var u;const s=t;if(this.checkExport(s,!0,!1,!!s.source),"ClassDeclaration"===(null==(u=s.declaration)?void 0:u.type))this.maybeTakeDecorators(e,s.declaration,s);else if(e)throw this.raise(g.UnsupportedDecoratorExport,t);return this.finishNode(s,"ExportNamedDeclaration")}if(this.eat(65)){const s=t,r=this.parseExportDefaultExpression();if(s.declaration=r,"ClassDeclaration"===r.type)this.maybeTakeDecorators(e,r,s);else if(e)throw this.raise(g.UnsupportedDecoratorExport,t);return this.checkExport(s,!0,!0),this.finishNode(s,"ExportDefaultDeclaration")}this.unexpected(null,5)}eatExportStar(t){return this.eat(55)}maybeParseExportDefaultSpecifier(t,e){if(e||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",null==e?void 0:e.loc.start);const s=e||this.parseIdentifier(!0),r=this.startNodeAtNode(s);return r.exported=s,t.specifiers=[this.finishNode(r,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(t){if(this.isContextual(93)){var e;null!=(e=t).specifiers||(e.specifiers=[]);const s=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),s.exported=this.parseModuleExportName(),t.specifiers.push(this.finishNode(s,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(t){if(this.match(5)){const e=t;e.specifiers||(e.specifiers=[]);const s="type"===e.exportKind;return e.specifiers.push(...this.parseExportSpecifiers(s)),e.source=null,e.declaration=null,this.hasPlugin("importAssertions")&&(e.assertions=[]),!0}return!1}maybeParseExportDeclaration(t){return!!this.shouldParseExportDeclaration()&&(t.specifiers=[],t.source=null,this.hasPlugin("importAssertions")&&(t.assertions=[]),t.declaration=this.parseExportDeclaration(t),!0)}isAsyncFunction(){if(!this.isContextual(95))return!1;const t=this.nextTokenInLineStart();return this.isUnparsedContextual(t,"function")}parseExportDefaultExpression(){const t=this.startNode();if(this.match(68))return this.next(),this.parseFunction(t,5);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(t,13);if(this.match(80))return this.parseClass(t,!0,!0);if(this.match(26))return this.hasPlugin("decorators")&&!0===this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(g.DecoratorBeforeExport,this.state.startLoc),this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(75)||this.match(74)||this.isLet())throw this.raise(g.UnsupportedDefaultExport,this.state.startLoc);const e=this.parseMaybeAssignAllowIn();return this.semicolon(),e}parseExportDeclaration(t){return this.match(80)?this.parseClass(this.startNode(),!0,!1):this.parseStatementListItem()}isExportDefaultSpecifier(){const{type:t}=this.state;if(H(t)){if(95===t&&!this.state.containsEsc||100===t)return!1;if((130===t||129===t)&&!this.state.containsEsc){const{type:t}=this.lookahead();if(H(t)&&98!==t||5===t)return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;const e=this.nextTokenStart(),s=this.isUnparsedContextual(e,"from");if(44===this.input.charCodeAt(e)||H(this.state.type)&&s)return!0;if(this.match(65)&&s){const t=this.input.charCodeAt(this.nextTokenStartSince(e+4));return 34===t||39===t}return!1}parseExportFrom(t,e){this.eatContextual(98)?(t.source=this.parseImportSource(),this.checkExport(t),this.maybeParseImportAttributes(t),this.checkJSONModuleImport(t)):e&&this.unexpected(),this.semicolon()}shouldParseExportDeclaration(){const{type:t}=this.state;return 26===t&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))?(!0===this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(g.DecoratorBeforeExport,this.state.startLoc),!0):this.isContextual(107)||this.isContextual(96)&&this.startsAwaitUsing()?(this.raise(g.UsingDeclarationExport,this.state.startLoc),!0):74===t||75===t||68===t||80===t||this.isLet()||this.isAsyncFunction()}checkExport(t,e,s,r){var i;if(e)if(s){if(this.checkDuplicateExports(t,"default"),this.hasPlugin("exportDefaultFrom")){var n;const e=t.declaration;"Identifier"!==e.type||"from"!==e.name||e.end-e.start!=4||null!=(n=e.extra)&&n.parenthesized||this.raise(g.ExportDefaultFromAsIdentifier,e)}}else if(null!=(i=t.specifiers)&&i.length)for(const e of t.specifiers){const{exported:t}=e,s="Identifier"===t.type?t.name:t.value;if(this.checkDuplicateExports(e,s),!r&&e.local){const{local:t}=e;"Identifier"!==t.type?this.raise(g.ExportBindingIsString,e,{localName:t.value,exportName:s}):(this.checkReservedWord(t.name,t.loc.start,!0,!1),this.scope.checkLocalExport(t))}}else if(t.declaration){const e=t.declaration;if("FunctionDeclaration"===e.type||"ClassDeclaration"===e.type){const{id:s}=e;if(!s)throw new Error("Assertion failure");this.checkDuplicateExports(t,s.name)}else if("VariableDeclaration"===e.type)for(const t of e.declarations)this.checkDeclaration(t.id)}}checkDeclaration(t){if("Identifier"===t.type)this.checkDuplicateExports(t,t.name);else if("ObjectPattern"===t.type)for(const e of t.properties)this.checkDeclaration(e);else if("ArrayPattern"===t.type)for(const e of t.elements)e&&this.checkDeclaration(e);else"ObjectProperty"===t.type?this.checkDeclaration(t.value):"RestElement"===t.type?this.checkDeclaration(t.argument):"AssignmentPattern"===t.type&&this.checkDeclaration(t.left)}checkDuplicateExports(t,e){this.exportedIdentifiers.has(e)&&("default"===e?this.raise(g.DuplicateDefaultExport,t):this.raise(g.DuplicateExport,t,{exportName:e})),this.exportedIdentifiers.add(e)}parseExportSpecifiers(t){const e=[];let s=!0;for(this.expect(5);!this.eat(8);){if(s)s=!1;else if(this.expect(12),this.eat(8))break;const r=this.isContextual(130),i=this.match(133),n=this.startNode();n.local=this.parseModuleExportName(),e.push(this.parseExportSpecifier(n,i,t,r))}return e}parseExportSpecifier(t,e,s,r){return this.eatContextual(93)?t.exported=this.parseModuleExportName():e?t.exported=function(t){const{type:e,start:s,end:r,loc:i,range:n,extra:a}=t;if("Placeholder"===e)return function(t){return se(t)}(t);const o=Object.create(ee);return o.type=e,o.start=s,o.end=r,o.loc=i,o.range=n,void 0!==t.raw?o.raw=t.raw:o.extra=a,o.value=t.value,o}(t.local):t.exported||(t.exported=se(t.local)),this.finishNode(t,"ExportSpecifier")}parseModuleExportName(){if(this.match(133)){const t=this.parseStringLiteral(this.state.value),e=Oe.exec(t.value);return e&&this.raise(g.ModuleExportNameHasLoneSurrogate,t,{surrogateCharCode:e[0].charCodeAt(0)}),t}return this.parseIdentifier(!0)}isJSONModuleImport(t){return null!=t.assertions&&t.assertions.some((({key:t,value:e})=>"json"===e.value&&("Identifier"===t.type?"type"===t.name:"type"===t.value)))}checkImportReflection(t){const{specifiers:e}=t,s=1===e.length?e[0].type:null;if("source"===t.phase)"ImportDefaultSpecifier"!==s&&this.raise(g.SourcePhaseImportRequiresDefault,e[0].loc.start);else if("defer"===t.phase)"ImportNamespaceSpecifier"!==s&&this.raise(g.DeferImportRequiresNamespace,e[0].loc.start);else if(t.module){var r;"ImportDefaultSpecifier"!==s&&this.raise(g.ImportReflectionNotBinding,e[0].loc.start),(null==(r=t.assertions)?void 0:r.length)>0&&this.raise(g.ImportReflectionHasAssertion,e[0].loc.start)}}checkJSONModuleImport(t){if(this.isJSONModuleImport(t)&&"ExportAllDeclaration"!==t.type){const{specifiers:e}=t;if(null!=e){const t=e.find((t=>{let e;if("ExportSpecifier"===t.type?e=t.local:"ImportSpecifier"===t.type&&(e=t.imported),void 0!==e)return"Identifier"===e.type?"default"!==e.name:"default"!==e.value}));void 0!==t&&this.raise(g.ImportJSONBindingNotDefault,t.loc.start)}}}isPotentialImportPhase(t){return!t&&(this.isContextual(105)||this.isContextual(97)||this.isContextual(127))}applyImportPhase(t,e,s,r){e||("module"===s?(this.expectPlugin("importReflection",r),t.module=!0):this.hasPlugin("importReflection")&&(t.module=!1),"source"===s?(this.expectPlugin("sourcePhaseImports",r),t.phase="source"):"defer"===s?(this.expectPlugin("deferredImportEvaluation",r),t.phase="defer"):this.hasPlugin("sourcePhaseImports")&&(t.phase=null))}parseMaybeImportPhase(t,e){if(!this.isPotentialImportPhase(e))return this.applyImportPhase(t,e,null),null;const s=this.parseIdentifier(!0),{type:r}=this.state;return(W(r)?98!==r||102===this.lookaheadCharCode():12!==r)?(this.resetPreviousIdentifierLeadingComments(s),this.applyImportPhase(t,e,s.name,s.loc.start),null):(this.applyImportPhase(t,e,null),s)}isPrecedingIdImportPhase(t){const{type:e}=this.state;return H(e)?98!==e||102===this.lookaheadCharCode():12!==e}parseImport(t){return this.match(133)?this.parseImportSourceAndAttributes(t):this.parseImportSpecifiersAndAfter(t,this.parseMaybeImportPhase(t,!1))}parseImportSpecifiersAndAfter(t,e){t.specifiers=[];const s=!this.maybeParseDefaultImportSpecifier(t,e)||this.eat(12),r=s&&this.maybeParseStarImportSpecifier(t);return s&&!r&&this.parseNamedImportSpecifiers(t),this.expectContextual(98),this.parseImportSourceAndAttributes(t)}parseImportSourceAndAttributes(t){return null!=t.specifiers||(t.specifiers=[]),t.source=this.parseImportSource(),this.maybeParseImportAttributes(t),this.checkImportReflection(t),this.checkJSONModuleImport(t),this.semicolon(),this.finishNode(t,"ImportDeclaration")}parseImportSource(){return this.match(133)||this.unexpected(),this.parseExprAtom()}parseImportSpecifierLocal(t,e,s){e.local=this.parseIdentifier(),t.specifiers.push(this.finishImportSpecifier(e,s))}finishImportSpecifier(t,e,s=8201){return this.checkLVal(t.local,{type:e},s),this.finishNode(t,e)}parseImportAttributes(){this.expect(5);const t=[],e=new Set;do{if(this.match(8))break;const s=this.startNode(),r=this.state.value;if(e.has(r)&&this.raise(g.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:r}),e.add(r),this.match(133)?s.key=this.parseStringLiteral(r):s.key=this.parseIdentifier(!0),this.expect(14),!this.match(133))throw this.raise(g.ModuleAttributeInvalidValue,this.state.startLoc);s.value=this.parseStringLiteral(this.state.value),t.push(this.finishNode(s,"ImportAttribute"))}while(this.eat(12));return this.expect(8),t}parseModuleAttributes(){const t=[],e=new Set;do{const s=this.startNode();if(s.key=this.parseIdentifier(!0),"type"!==s.key.name&&this.raise(g.ModuleAttributeDifferentFromType,s.key),e.has(s.key.name)&&this.raise(g.ModuleAttributesWithDuplicateKeys,s.key,{key:s.key.name}),e.add(s.key.name),this.expect(14),!this.match(133))throw this.raise(g.ModuleAttributeInvalidValue,this.state.startLoc);s.value=this.parseStringLiteral(this.state.value),t.push(this.finishNode(s,"ImportAttribute"))}while(this.eat(12));return t}maybeParseImportAttributes(t){let e,s=!1;if(this.match(76)){if(this.hasPrecedingLineBreak()&&40===this.lookaheadCharCode())return;this.next(),this.hasPlugin("moduleAttributes")?e=this.parseModuleAttributes():(this.expectImportAttributesPlugin(),e=this.parseImportAttributes()),s=!0}else if(this.isContextual(94)&&!this.hasPrecedingLineBreak())this.hasPlugin("importAttributes")?(!0!==this.getPluginOption("importAttributes","deprecatedAssertSyntax")&&this.raise(g.ImportAttributesUseAssert,this.state.startLoc),this.addExtra(t,"deprecatedAssertSyntax",!0)):this.expectOnePlugin(["importAttributes","importAssertions"]),this.next(),e=this.parseImportAttributes();else if(this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions"))e=[];else{if(!this.hasPlugin("moduleAttributes"))return;e=[]}!s&&this.hasPlugin("importAssertions")?t.assertions=e:t.attributes=e}maybeParseDefaultImportSpecifier(t,e){if(e){const s=this.startNodeAtNode(e);return s.local=e,t.specifiers.push(this.finishImportSpecifier(s,"ImportDefaultSpecifier")),!0}return!!W(this.state.type)&&(this.parseImportSpecifierLocal(t,this.startNode(),"ImportDefaultSpecifier"),!0)}maybeParseStarImportSpecifier(t){if(this.match(55)){const e=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(t,e,"ImportNamespaceSpecifier"),!0}return!1}parseNamedImportSpecifiers(t){let e=!0;for(this.expect(5);!this.eat(8);){if(e)e=!1;else{if(this.eat(14))throw this.raise(g.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}const s=this.startNode(),r=this.match(133),i=this.isContextual(130);s.imported=this.parseModuleExportName();const n=this.parseImportSpecifier(s,r,"type"===t.importKind||"typeof"===t.importKind,i,void 0);t.specifiers.push(n)}}parseImportSpecifier(t,e,s,r,i){if(this.eatContextual(93))t.local=this.parseIdentifier();else{const{imported:s}=t;if(e)throw this.raise(g.ImportBindingIsString,t,{importName:s.value});this.checkReservedWord(s.name,t.loc.start,!0,!0),t.local||(t.local=se(s))}return this.finishImportSpecifier(t,"ImportSpecifier",i)}isThisParam(t){return"Identifier"===t.type&&"this"===t.name}}class Re extends Fe{constructor(t,e,s){super(t=function(t){if(null==t)return Object.assign({},Ne);if(null!=t.annexB&&!1!==t.annexB)throw new Error("The `annexB` option can only be set to `false`.");const e={};for(const r of Object.keys(Ne)){var s;e[r]=null!=(s=t[r])?s:Ne[r]}return e}(t),e),this.options=t,this.initializeScopes(),this.plugins=s,this.filename=t.sourceFilename}getScopeHandler(){return yt}parse(){this.enterInitialScopes();const t=this.startNode(),e=this.startNode();return this.nextToken(),t.errors=null,this.parseTopLevel(t,e),t.errors=this.state.errors,t.comments.length=this.state.commentsLen,t}}const je=function(t){const e={};for(const s of Object.keys(t))e[s]=X(t[s]);return e}(U);function Be(t,e){let s=Re;const r=new Map;if(null!=t&&t.plugins){for(const e of t.plugins){let t,s;"string"==typeof e?t=e:[t,s]=e,r.has(t)||r.set(t,s||{})}!function(t){if(t.has("decorators")){if(t.has("decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");const e=t.get("decorators").decoratorsBeforeExport;if(null!=e&&"boolean"!=typeof e)throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");const s=t.get("decorators").allowCallParenthesized;if(null!=s&&"boolean"!=typeof s)throw new Error("'allowCallParenthesized' must be a boolean.")}if(t.has("flow")&&t.has("typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(t.has("placeholders")&&t.has("v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(t.has("pipelineOperator")){var e;const s=t.get("pipelineOperator").proposal;if(!_e.includes(s)){const t=_e.map((t=>`"${t}"`)).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${t}.`)}const r="hash"===(null==(e=t.get("recordAndTuple"))?void 0:e.syntaxType);if("hack"===s){if(t.has("placeholders"))throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");if(t.has("v8intrinsic"))throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");const e=t.get("pipelineOperator").topicToken;if(!ke.includes(e)){const t=ke.map((t=>`"${t}"`)).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${t}.`)}if("#"===e&&r)throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "hack", topicToken: "#" }]\` and \`${JSON.stringify(["recordAndTuple",t.get("recordAndTuple")])}\`.`)}else if("smart"===s&&r)throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "smart" }]\` and \`${JSON.stringify(["recordAndTuple",t.get("recordAndTuple")])}\`.`)}if(t.has("moduleAttributes")){if(t.has("importAttributes")||t.has("importAssertions"))throw new Error("Cannot combine importAssertions, importAttributes and moduleAttributes plugins.");if("may-2020"!==t.get("moduleAttributes").version)throw new Error("The 'moduleAttributes' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is 'may-2020'.")}if(t.has("importAttributes")&&t.has("importAssertions"))throw new Error("Cannot combine importAssertions and importAttributes plugins.");if(t.has("recordAndTuple")){const e=t.get("recordAndTuple").syntaxType;if(null!=e){const t=["hash","bar"];if(!t.includes(e))throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: "+t.map((t=>`'${t}'`)).join(", "))}}if(t.has("asyncDoExpressions")&&!t.has("doExpressions")){const t=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw t.missingPlugins="doExpressions",t}if(t.has("optionalChainingAssign")&&"2023-07"!==t.get("optionalChainingAssign").version)throw new Error("The 'optionalChainingAssign' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is '2023-07'.")}(r),s=function(t){const e=[];for(const s of Ce)t.has(s)&&e.push(s);const s=e.join("|");let r=Ye.get(s);if(!r){r=Re;for(const t of e)r=Ee[t](r);Ye.set(s,r)}return r}(r)}return new s(t,e,r)}const Ye=new Map;e.parse=function(t,e){var s;if("unambiguous"!==(null==(s=e)?void 0:s.sourceType))return Be(e,t).parse();e=Object.assign({},e);try{e.sourceType="module";const s=Be(e,t),r=s.parse();if(s.sawUnambiguousESM)return r;if(s.ambiguousScriptDifferentAst)try{return e.sourceType="script",Be(e,t).parse()}catch(t){}else r.program.sourceType="script";return r}catch(s){try{return e.sourceType="script",Be(e,t).parse()}catch(t){}throw s}},e.parseExpression=function(t,e){const s=Be(e,t);return s.options.strictMode&&(s.state.strict=!0),s.getExpression()},e.tokTypes=je},2559:(t,e,s)=>{"use strict";function r(t,e,s){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:s;throw new TypeError("Private element is not present on this object")}s.d(e,{A:()=>r})},2016:(t,e,s)=>{"use strict";function r(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}s.d(e,{A:()=>r})},829:(t,e,s)=>{"use strict";s.d(e,{A:()=>i});var r=s(2559);function i(t,e){return t.get((0,r.A)(t,e))}},918:(t,e,s)=>{"use strict";s.d(e,{A:()=>i});var r=s(2016);function i(t,e,s){(0,r.A)(t,e),e.set(t,s)}},6121:(t,e,s)=>{"use strict";s.d(e,{A:()=>i});var r=s(2559);function i(t,e,s){return t.set((0,r.A)(t,e),s),s}},4635:(t,e,s)=>{"use strict";s.d(e,{A:()=>i});var r=s(2016);function i(t,e){(0,r.A)(t,e),e.add(t)}},8158:(t,e,s)=>{"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function i(t,e,s){return(e=function(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var s=t[Symbol.toPrimitive];if(void 0!==s){var i=s.call(t,"string");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==r(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:s,enumerable:!0,configurable:!0,writable:!0}):t[e]=s,t}s.d(e,{A:()=>i})},3601:(t,e,s)=>{"use strict";s.d(e,{A:()=>i});var r={};try{r.EventTarget=(new EventTarget).constructor}catch(t){!function(t,e){var s=t.create,i=t.defineProperty,n=a.prototype;function a(){e.set(this,s(null))}function o(t,e,s){i(t,e,{configurable:!0,writable:!0,value:s})}function c(t){var e=t.options;return e&&e.once&&t.target.removeEventListener(this.type,t.listener),"function"==typeof t.listener?t.listener.call(t.target,this):t.listener.handleEvent(this),this._stopImmediatePropagationFlag}o(n,"addEventListener",(function(t,s,r){for(var i=e.get(this),n=i[t]||(i[t]=[]),a=0,o=n.length;a<o;a++)if(n[a].listener===s)return;n.push({target:this,listener:s,options:r})})),o(n,"dispatchEvent",(function(t){var s=e.get(this)[t.type];return s&&(o(t,"target",this),o(t,"currentTarget",this),s.slice(0).some(c,t),delete t.currentTarget,delete t.target),!0})),o(n,"removeEventListener",(function(t,s){for(var r=e.get(this),i=r[t]||(r[t]=[]),n=0,a=i.length;n<a;n++)if(i[n].listener===s)return void i.splice(n,1)})),r.EventTarget=a}(Object,new WeakMap)}const i=r.EventTarget},726:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>w});const{slice:r,forEach:i}=[],n=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,a={create(t,e,s,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{path:"/",sameSite:"strict"};s&&(i.expires=new Date,i.expires.setTime(i.expires.getTime()+60*s*1e3)),r&&(i.domain=r),document.cookie=function(t,e){const s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{path:"/"};let r=`${t}=${encodeURIComponent(e)}`;if(s.maxAge>0){const t=s.maxAge-0;if(Number.isNaN(t))throw new Error("maxAge should be a Number");r+=`; Max-Age=${Math.floor(t)}`}if(s.domain){if(!n.test(s.domain))throw new TypeError("option domain is invalid");r+=`; Domain=${s.domain}`}if(s.path){if(!n.test(s.path))throw new TypeError("option path is invalid");r+=`; Path=${s.path}`}if(s.expires){if("function"!=typeof s.expires.toUTCString)throw new TypeError("option expires is invalid");r+=`; Expires=${s.expires.toUTCString()}`}if(s.httpOnly&&(r+="; HttpOnly"),s.secure&&(r+="; Secure"),s.sameSite)switch("string"==typeof s.sameSite?s.sameSite.toLowerCase():s.sameSite){case!0:r+="; SameSite=Strict";break;case"lax":r+="; SameSite=Lax";break;case"strict":r+="; SameSite=Strict";break;case"none":r+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return r}(t,encodeURIComponent(e),i)},read(t){const e=`${t}=`,s=document.cookie.split(";");for(let t=0;t<s.length;t++){let r=s[t];for(;" "===r.charAt(0);)r=r.substring(1,r.length);if(0===r.indexOf(e))return r.substring(e.length,r.length)}return null},remove(t){this.create(t,"",-1)}};var o={name:"cookie",lookup(t){let{lookupCookie:e}=t;if(e&&"undefined"!=typeof document)return a.read(e)||void 0},cacheUserLanguage(t,e){let{lookupCookie:s,cookieMinutes:r,cookieDomain:i,cookieOptions:n}=e;s&&"undefined"!=typeof document&&a.create(s,t,r,i,n)}},c={name:"querystring",lookup(t){let e,{lookupQuerystring:s}=t;if("undefined"!=typeof window){let{search:t}=window.location;!window.location.search&&window.location.hash?.indexOf("?")>-1&&(t=window.location.hash.substring(window.location.hash.indexOf("?")));const r=t.substring(1).split("&");for(let t=0;t<r.length;t++){const i=r[t].indexOf("=");i>0&&r[t].substring(0,i)===s&&(e=r[t].substring(i+1))}}return e}};let l=null;const h=()=>{if(null!==l)return l;try{l="undefined"!==window&&null!==window.localStorage;const t="i18next.translate.boo";window.localStorage.setItem(t,"foo"),window.localStorage.removeItem(t)}catch(t){l=!1}return l};var u={name:"localStorage",lookup(t){let{lookupLocalStorage:e}=t;if(e&&h())return window.localStorage.getItem(e)||void 0},cacheUserLanguage(t,e){let{lookupLocalStorage:s}=e;s&&h()&&window.localStorage.setItem(s,t)}};let p=null;const d=()=>{if(null!==p)return p;try{p="undefined"!==window&&null!==window.sessionStorage;const t="i18next.translate.boo";window.sessionStorage.setItem(t,"foo"),window.sessionStorage.removeItem(t)}catch(t){p=!1}return p};var f={name:"sessionStorage",lookup(t){let{lookupSessionStorage:e}=t;if(e&&d())return window.sessionStorage.getItem(e)||void 0},cacheUserLanguage(t,e){let{lookupSessionStorage:s}=e;s&&d()&&window.sessionStorage.setItem(s,t)}},m={name:"navigator",lookup(t){const e=[];if("undefined"!=typeof navigator){const{languages:t,userLanguage:s,language:r}=navigator;if(t)for(let s=0;s<t.length;s++)e.push(t[s]);s&&e.push(s),r&&e.push(r)}return e.length>0?e:void 0}},y={name:"htmlTag",lookup(t){let e,{htmlTag:s}=t;const r=s||("undefined"!=typeof document?document.documentElement:null);return r&&"function"==typeof r.getAttribute&&(e=r.getAttribute("lang")),e}},g={name:"path",lookup(t){let{lookupFromPathIndex:e}=t;if("undefined"==typeof window)return;const s=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(!Array.isArray(s))return;const r="number"==typeof e?e:0;return s[r]?.replace("/","")}},x={name:"subdomain",lookup(t){let{lookupFromSubdomainIndex:e}=t;const s="number"==typeof e?e+1:1,r="undefined"!=typeof window&&window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(r)return r[s]}};let v=!1;try{document.cookie,v=!0}catch(t){}const b=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];v||b.splice(1,1);class w{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(t,e)}init(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{languageUtils:{}},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=t,this.options=function(t){return i.call(r.call(arguments,1),(e=>{if(e)for(const s in e)void 0===t[s]&&(t[s]=e[s])})),t}(e,this.options||{},{order:b,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:t=>t}),"string"==typeof this.options.convertDetectedLanguage&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=t=>t.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=s,this.addDetector(o),this.addDetector(c),this.addDetector(u),this.addDetector(f),this.addDetector(m),this.addDetector(y),this.addDetector(g),this.addDetector(x)}addDetector(t){return this.detectors[t.name]=t,this}detect(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.options.order,e=[];return t.forEach((t=>{if(this.detectors[t]){let s=this.detectors[t].lookup(this.options);s&&"string"==typeof s&&(s=[s]),s&&(e=e.concat(s))}})),e=e.map((t=>this.options.convertDetectedLanguage(t))),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?e:e.length>0?e[0]:null}cacheUserLanguage(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.options.caches;e&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(t)>-1||e.forEach((e=>{this.detectors[e]&&this.detectors[e].cacheUserLanguage(t,this.options)})))}}w.type="languageDetector"},7304:(t,e,s)=>{"use strict";s.r(e),s.d(e,{changeLanguage:()=>Q,createInstance:()=>q,default:()=>V,dir:()=>K,exists:()=>st,getFixedT:()=>tt,hasLoadedNamespace:()=>it,init:()=>J,loadLanguages:()=>at,loadNamespaces:()=>nt,loadResources:()=>G,reloadResources:()=>X,setDefaultNamespace:()=>rt,t:()=>et,use:()=>Z});const r=t=>"string"==typeof t,i=()=>{let t,e;const s=new Promise(((s,r)=>{t=s,e=r}));return s.resolve=t,s.reject=e,s},n=t=>null==t?"":""+t,a=/###/g,o=t=>t&&t.indexOf("###")>-1?t.replace(a,"."):t,c=t=>!t||r(t),l=(t,e,s)=>{const i=r(e)?e.split("."):e;let n=0;for(;n<i.length-1;){if(c(t))return{};const e=o(i[n]);!t[e]&&s&&(t[e]=new s),t=Object.prototype.hasOwnProperty.call(t,e)?t[e]:{},++n}return c(t)?{}:{obj:t,k:o(i[n])}},h=(t,e,s)=>{const{obj:r,k:i}=l(t,e,Object);if(void 0!==r||1===e.length)return void(r[i]=s);let n=e[e.length-1],a=e.slice(0,e.length-1),o=l(t,a,Object);for(;void 0===o.obj&&a.length;)n=`${a[a.length-1]}.${n}`,a=a.slice(0,a.length-1),o=l(t,a,Object),o&&o.obj&&void 0!==o.obj[`${o.k}.${n}`]&&(o.obj=void 0);o.obj[`${o.k}.${n}`]=s},u=(t,e)=>{const{obj:s,k:r}=l(t,e);if(s)return s[r]},p=(t,e,s)=>{for(const i in e)"__proto__"!==i&&"constructor"!==i&&(i in t?r(t[i])||t[i]instanceof String||r(e[i])||e[i]instanceof String?s&&(t[i]=e[i]):p(t[i],e[i],s):t[i]=e[i]);return t},d=t=>t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var f={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const m=t=>r(t)?t.replace(/[&<>"'\/]/g,(t=>f[t])):t,y=[" ",",","?","!",";"],g=new class{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const e=this.regExpMap.get(t);if(void 0!==e)return e;const s=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,s),this.regExpQueue.push(t),s}}(20),x=function(t,e){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!t)return;if(t[e])return t[e];const r=e.split(s);let i=t;for(let t=0;t<r.length;){if(!i||"object"!=typeof i)return;let e,n="";for(let a=t;a<r.length;++a)if(a!==t&&(n+=s),n+=r[a],e=i[n],void 0!==e){if(["string","number","boolean"].indexOf(typeof e)>-1&&a<r.length-1)continue;t+=a-t+1;break}i=e}return i},v=t=>t&&t.replace("_","-"),b={type:"logger",log(t){this.output("log",t)},warn(t){this.output("warn",t)},error(t){this.output("error",t)},output(t,e){console&&console[t]&&console[t].apply(console,e)}};class w{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(t,e)}init(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=e.prefix||"i18next:",this.logger=t||b,this.options=e,this.debug=e.debug}log(){for(var t=arguments.length,e=new Array(t),s=0;s<t;s++)e[s]=arguments[s];return this.forward(e,"log","",!0)}warn(){for(var t=arguments.length,e=new Array(t),s=0;s<t;s++)e[s]=arguments[s];return this.forward(e,"warn","",!0)}error(){for(var t=arguments.length,e=new Array(t),s=0;s<t;s++)e[s]=arguments[s];return this.forward(e,"error","")}deprecate(){for(var t=arguments.length,e=new Array(t),s=0;s<t;s++)e[s]=arguments[s];return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(t,e,s,i){return i&&!this.debug?null:(r(t[0])&&(t[0]=`${s}${this.prefix} ${t[0]}`),this.logger[e](t))}create(t){return new w(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return(t=t||this.options).prefix=t.prefix||this.prefix,new w(this.logger,t)}}var P=new w;class T{constructor(){this.observers={}}on(t,e){return t.split(" ").forEach((t=>{this.observers[t]||(this.observers[t]=new Map);const s=this.observers[t].get(e)||0;this.observers[t].set(e,s+1)})),this}off(t,e){this.observers[t]&&(e?this.observers[t].delete(e):delete this.observers[t])}emit(t){for(var e=arguments.length,s=new Array(e>1?e-1:0),r=1;r<e;r++)s[r-1]=arguments[r];this.observers[t]&&Array.from(this.observers[t].entries()).forEach((t=>{let[e,r]=t;for(let t=0;t<r;t++)e(...s)})),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach((e=>{let[r,i]=e;for(let e=0;e<i;e++)r.apply(r,[t,...s])}))}}class S extends T{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=e,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const e=this.options.ns.indexOf(t);e>-1&&this.options.ns.splice(e,1)}getResource(t,e,s){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const n=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,a=void 0!==i.ignoreJSONStructure?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let o;t.indexOf(".")>-1?o=t.split("."):(o=[t,e],s&&(Array.isArray(s)?o.push(...s):r(s)&&n?o.push(...s.split(n)):o.push(s)));const c=u(this.data,o);return!c&&!e&&!s&&t.indexOf(".")>-1&&(t=o[0],e=o[1],s=o.slice(2).join(".")),!c&&a&&r(s)?x(this.data&&this.data[t]&&this.data[t][e],s,n):c}addResource(t,e,s,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1};const n=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator;let a=[t,e];s&&(a=a.concat(n?s.split(n):s)),t.indexOf(".")>-1&&(a=t.split("."),r=e,e=a[1]),this.addNamespaces(e),h(this.data,a,r),i.silent||this.emit("added",t,e,s,r)}addResources(t,e,s){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(const i in s)(r(s[i])||Array.isArray(s[i]))&&this.addResource(t,e,i,s[i],{silent:!0});i.silent||this.emit("added",t,e,s)}addResourceBundle(t,e,s,r,i){let n=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1,skipCopy:!1},a=[t,e];t.indexOf(".")>-1&&(a=t.split("."),r=s,s=e,e=a[1]),this.addNamespaces(e);let o=u(this.data,a)||{};n.skipCopy||(s=JSON.parse(JSON.stringify(s))),r?p(o,s,i):o={...o,...s},h(this.data,a,o),n.silent||this.emit("added",t,e,s)}removeResourceBundle(t,e){this.hasResourceBundle(t,e)&&delete this.data[t][e],this.removeNamespaces(e),this.emit("removed",t,e)}hasResourceBundle(t,e){return void 0!==this.getResource(t,e)}getResourceBundle(t,e){return e||(e=this.options.defaultNS),"v1"===this.options.compatibilityAPI?{...this.getResource(t,e)}:this.getResource(t,e)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const e=this.getDataByLanguage(t);return!!(e&&Object.keys(e)||[]).find((t=>e[t]&&Object.keys(e[t]).length>0))}toJSON(){return this.data}}var A={processors:{},addPostProcessor(t){this.processors[t.name]=t},handle(t,e,s,r,i){return t.forEach((t=>{this.processors[t]&&(e=this.processors[t].process(e,s,r,i))})),e}};const _={};class k extends T{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),((t,e,s)=>{["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"].forEach((t=>{e[t]&&(s[t]=e[t])}))})(0,t,this),this.options=e,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=P.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==t)return!1;const s=this.resolve(t,e);return s&&void 0!==s.res}extractFromKey(t,e){let s=void 0!==e.nsSeparator?e.nsSeparator:this.options.nsSeparator;void 0===s&&(s=":");const i=void 0!==e.keySeparator?e.keySeparator:this.options.keySeparator;let n=e.ns||this.options.defaultNS||[];const a=s&&t.indexOf(s)>-1,o=!(this.options.userDefinedKeySeparator||e.keySeparator||this.options.userDefinedNsSeparator||e.nsSeparator||((t,e,s)=>{e=e||"",s=s||"";const r=y.filter((t=>e.indexOf(t)<0&&s.indexOf(t)<0));if(0===r.length)return!0;const i=g.getRegExp(`(${r.map((t=>"?"===t?"\\?":t)).join("|")})`);let n=!i.test(t);if(!n){const e=t.indexOf(s);e>0&&!i.test(t.substring(0,e))&&(n=!0)}return n})(t,s,i));if(a&&!o){const e=t.match(this.interpolator.nestingRegexp);if(e&&e.length>0)return{key:t,namespaces:r(n)?[n]:n};const a=t.split(s);(s!==i||s===i&&this.options.ns.indexOf(a[0])>-1)&&(n=a.shift()),t=a.join(i)}return{key:t,namespaces:r(n)?[n]:n}}translate(t,e,s){if("object"!=typeof e&&this.options.overloadTranslationOptionHandler&&(e=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof e&&(e={...e}),e||(e={}),null==t)return"";Array.isArray(t)||(t=[String(t)]);const i=void 0!==e.returnDetails?e.returnDetails:this.options.returnDetails,n=void 0!==e.keySeparator?e.keySeparator:this.options.keySeparator,{key:a,namespaces:o}=this.extractFromKey(t[t.length-1],e),c=o[o.length-1],l=e.lng||this.language,h=e.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&"cimode"===l.toLowerCase()){if(h){const t=e.nsSeparator||this.options.nsSeparator;return i?{res:`${c}${t}${a}`,usedKey:a,exactUsedKey:a,usedLng:l,usedNS:c,usedParams:this.getUsedParamsDetails(e)}:`${c}${t}${a}`}return i?{res:a,usedKey:a,exactUsedKey:a,usedLng:l,usedNS:c,usedParams:this.getUsedParamsDetails(e)}:a}const u=this.resolve(t,e);let p=u&&u.res;const d=u&&u.usedKey||a,f=u&&u.exactUsedKey||a,m=Object.prototype.toString.apply(p),y=void 0!==e.joinArrays?e.joinArrays:this.options.joinArrays,g=!this.i18nFormat||this.i18nFormat.handleAsObject,x=!r(p)&&"boolean"!=typeof p&&"number"!=typeof p;if(!(g&&p&&x&&["[object Number]","[object Function]","[object RegExp]"].indexOf(m)<0)||r(y)&&Array.isArray(p))if(g&&r(y)&&Array.isArray(p))p=p.join(y),p&&(p=this.extendTranslation(p,t,e,s));else{let i=!1,o=!1;const h=void 0!==e.count&&!r(e.count),d=k.hasDefaultValue(e),f=h?this.pluralResolver.getSuffix(l,e.count,e):"",m=e.ordinal&&h?this.pluralResolver.getSuffix(l,e.count,{ordinal:!1}):"",y=h&&!e.ordinal&&0===e.count&&this.pluralResolver.shouldUseIntlApi(),g=y&&e[`defaultValue${this.options.pluralSeparator}zero`]||e[`defaultValue${f}`]||e[`defaultValue${m}`]||e.defaultValue;!this.isValidLookup(p)&&d&&(i=!0,p=g),this.isValidLookup(p)||(o=!0,p=a);const x=(e.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&o?void 0:p,v=d&&g!==p&&this.options.updateMissing;if(o||i||v){if(this.logger.log(v?"updateKey":"missingKey",l,c,a,v?g:p),n){const t=this.resolve(a,{...e,keySeparator:!1});t&&t.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let t=[];const s=this.languageUtils.getFallbackCodes(this.options.fallbackLng,e.lng||this.language);if("fallback"===this.options.saveMissingTo&&s&&s[0])for(let e=0;e<s.length;e++)t.push(s[e]);else"all"===this.options.saveMissingTo?t=this.languageUtils.toResolveHierarchy(e.lng||this.language):t.push(e.lng||this.language);const r=(t,s,r)=>{const i=d&&r!==p?r:x;this.options.missingKeyHandler?this.options.missingKeyHandler(t,c,s,i,v,e):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(t,c,s,i,v,e),this.emit("missingKey",t,c,s,p)};this.options.saveMissing&&(this.options.saveMissingPlurals&&h?t.forEach((t=>{const s=this.pluralResolver.getSuffixes(t,e);y&&e[`defaultValue${this.options.pluralSeparator}zero`]&&s.indexOf(`${this.options.pluralSeparator}zero`)<0&&s.push(`${this.options.pluralSeparator}zero`),s.forEach((s=>{r([t],a+s,e[`defaultValue${s}`]||g)}))})):r(t,a,g))}p=this.extendTranslation(p,t,e,u,s),o&&p===a&&this.options.appendNamespaceToMissingKey&&(p=`${c}:${a}`),(o||i)&&this.options.parseMissingKeyHandler&&(p="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}:${a}`:a,i?p:void 0):this.options.parseMissingKeyHandler(p))}else{if(!e.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const t=this.options.returnedObjectHandler?this.options.returnedObjectHandler(d,p,{...e,ns:o}):`key '${a} (${this.language})' returned an object instead of string.`;return i?(u.res=t,u.usedParams=this.getUsedParamsDetails(e),u):t}if(n){const t=Array.isArray(p),s=t?[]:{},r=t?f:d;for(const t in p)if(Object.prototype.hasOwnProperty.call(p,t)){const i=`${r}${n}${t}`;s[t]=this.translate(i,{...e,joinArrays:!1,ns:o}),s[t]===i&&(s[t]=p[t])}p=s}}return i?(u.res=p,u.usedParams=this.getUsedParamsDetails(e),u):p}extendTranslation(t,e,s,i,n){var a=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...s},s.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!s.skipInterpolation){s.interpolation&&this.interpolator.init({...s,interpolation:{...this.options.interpolation,...s.interpolation}});const o=r(t)&&(s&&s.interpolation&&void 0!==s.interpolation.skipOnVariables?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let c;if(o){const e=t.match(this.interpolator.nestingRegexp);c=e&&e.length}let l=s.replace&&!r(s.replace)?s.replace:s;if(this.options.interpolation.defaultVariables&&(l={...this.options.interpolation.defaultVariables,...l}),t=this.interpolator.interpolate(t,l,s.lng||this.language||i.usedLng,s),o){const e=t.match(this.interpolator.nestingRegexp);c<(e&&e.length)&&(s.nest=!1)}!s.lng&&"v1"!==this.options.compatibilityAPI&&i&&i.res&&(s.lng=this.language||i.usedLng),!1!==s.nest&&(t=this.interpolator.nest(t,(function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return n&&n[0]===r[0]&&!s.context?(a.logger.warn(`It seems you are nesting recursively key: ${r[0]} in key: ${e[0]}`),null):a.translate(...r,e)}),s)),s.interpolation&&this.interpolator.reset()}const o=s.postProcess||this.options.postProcess,c=r(o)?[o]:o;return null!=t&&c&&c.length&&!1!==s.applyPostProcessor&&(t=A.handle(c,t,e,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...i,usedParams:this.getUsedParamsDetails(s)},...s}:s,this)),t}resolve(t){let e,s,i,n,a,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r(t)&&(t=[t]),t.forEach((t=>{if(this.isValidLookup(e))return;const c=this.extractFromKey(t,o),l=c.key;s=l;let h=c.namespaces;this.options.fallbackNS&&(h=h.concat(this.options.fallbackNS));const u=void 0!==o.count&&!r(o.count),p=u&&!o.ordinal&&0===o.count&&this.pluralResolver.shouldUseIntlApi(),d=void 0!==o.context&&(r(o.context)||"number"==typeof o.context)&&""!==o.context,f=o.lngs?o.lngs:this.languageUtils.toResolveHierarchy(o.lng||this.language,o.fallbackLng);h.forEach((t=>{this.isValidLookup(e)||(a=t,!_[`${f[0]}-${t}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(a)&&(_[`${f[0]}-${t}`]=!0,this.logger.warn(`key "${s}" for languages "${f.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),f.forEach((s=>{if(this.isValidLookup(e))return;n=s;const r=[l];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(r,l,s,t,o);else{let t;u&&(t=this.pluralResolver.getSuffix(s,o.count,o));const e=`${this.options.pluralSeparator}zero`,i=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(r.push(l+t),o.ordinal&&0===t.indexOf(i)&&r.push(l+t.replace(i,this.options.pluralSeparator)),p&&r.push(l+e)),d){const s=`${l}${this.options.contextSeparator}${o.context}`;r.push(s),u&&(r.push(s+t),o.ordinal&&0===t.indexOf(i)&&r.push(s+t.replace(i,this.options.pluralSeparator)),p&&r.push(s+e))}}let a;for(;a=r.pop();)this.isValidLookup(e)||(i=a,e=this.getResource(s,t,a,o))})))}))})),{res:e,usedKey:s,exactUsedKey:i,usedLng:n,usedNS:a}}isValidLookup(t){return!(void 0===t||!this.options.returnNull&&null===t||!this.options.returnEmptyString&&""===t)}getResource(t,e,s){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,e,s,r):this.resourceStore.getResource(t,e,s,r)}getUsedParamsDetails(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const e=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],s=t.replace&&!r(t.replace);let i=s?t.replace:t;if(s&&void 0!==t.count&&(i.count=t.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!s){i={...i};for(const t of e)delete i[t]}return i}static hasDefaultValue(t){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e)&&"defaultValue"===e.substring(0,12)&&void 0!==t[e])return!0;return!1}}const E=t=>t.charAt(0).toUpperCase()+t.slice(1);class C{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=P.create("languageUtils")}getScriptPartFromCode(t){if(!(t=v(t))||t.indexOf("-")<0)return null;const e=t.split("-");return 2===e.length?null:(e.pop(),"x"===e[e.length-1].toLowerCase()?null:this.formatLanguageCode(e.join("-")))}getLanguagePartFromCode(t){if(!(t=v(t))||t.indexOf("-")<0)return t;const e=t.split("-");return this.formatLanguageCode(e[0])}formatLanguageCode(t){if(r(t)&&t.indexOf("-")>-1){if("undefined"!=typeof Intl&&void 0!==Intl.getCanonicalLocales)try{let e=Intl.getCanonicalLocales(t)[0];if(e&&this.options.lowerCaseLng&&(e=e.toLowerCase()),e)return e}catch(t){}const e=["hans","hant","latn","cyrl","cans","mong","arab"];let s=t.split("-");return this.options.lowerCaseLng?s=s.map((t=>t.toLowerCase())):2===s.length?(s[0]=s[0].toLowerCase(),s[1]=s[1].toUpperCase(),e.indexOf(s[1].toLowerCase())>-1&&(s[1]=E(s[1].toLowerCase()))):3===s.length&&(s[0]=s[0].toLowerCase(),2===s[1].length&&(s[1]=s[1].toUpperCase()),"sgn"!==s[0]&&2===s[2].length&&(s[2]=s[2].toUpperCase()),e.indexOf(s[1].toLowerCase())>-1&&(s[1]=E(s[1].toLowerCase())),e.indexOf(s[2].toLowerCase())>-1&&(s[2]=E(s[2].toLowerCase()))),s.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let e;return t.forEach((t=>{if(e)return;const s=this.formatLanguageCode(t);this.options.supportedLngs&&!this.isSupportedCode(s)||(e=s)})),!e&&this.options.supportedLngs&&t.forEach((t=>{if(e)return;const s=this.getLanguagePartFromCode(t);if(this.isSupportedCode(s))return e=s;e=this.options.supportedLngs.find((t=>t===s?t:t.indexOf("-")<0&&s.indexOf("-")<0?void 0:t.indexOf("-")>0&&s.indexOf("-")<0&&t.substring(0,t.indexOf("-"))===s||0===t.indexOf(s)&&s.length>1?t:void 0))})),e||(e=this.getFallbackCodes(this.options.fallbackLng)[0]),e}getFallbackCodes(t,e){if(!t)return[];if("function"==typeof t&&(t=t(e)),r(t)&&(t=[t]),Array.isArray(t))return t;if(!e)return t.default||[];let s=t[e];return s||(s=t[this.getScriptPartFromCode(e)]),s||(s=t[this.formatLanguageCode(e)]),s||(s=t[this.getLanguagePartFromCode(e)]),s||(s=t.default),s||[]}toResolveHierarchy(t,e){const s=this.getFallbackCodes(e||this.options.fallbackLng||[],t),i=[],n=t=>{t&&(this.isSupportedCode(t)?i.push(t):this.logger.warn(`rejecting language code not found in supportedLngs: ${t}`))};return r(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?("languageOnly"!==this.options.load&&n(this.formatLanguageCode(t)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&n(this.getScriptPartFromCode(t)),"currentOnly"!==this.options.load&&n(this.getLanguagePartFromCode(t))):r(t)&&n(this.formatLanguageCode(t)),s.forEach((t=>{i.indexOf(t)<0&&n(this.formatLanguageCode(t))})),i}}let N=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],I={1:t=>Number(t>1),2:t=>Number(1!=t),3:t=>0,4:t=>Number(t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2),5:t=>Number(0==t?0:1==t?1:2==t?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5),6:t=>Number(1==t?0:t>=2&&t<=4?1:2),7:t=>Number(1==t?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2),8:t=>Number(1==t?0:2==t?1:8!=t&&11!=t?2:3),9:t=>Number(t>=2),10:t=>Number(1==t?0:2==t?1:t<7?2:t<11?3:4),11:t=>Number(1==t||11==t?0:2==t||12==t?1:t>2&&t<20?2:3),12:t=>Number(t%10!=1||t%100==11),13:t=>Number(0!==t),14:t=>Number(1==t?0:2==t?1:3==t?2:3),15:t=>Number(t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2),16:t=>Number(t%10==1&&t%100!=11?0:0!==t?1:2),17:t=>Number(1==t||t%10==1&&t%100!=11?0:1),18:t=>Number(0==t?0:1==t?1:2),19:t=>Number(1==t?0:0==t||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3),20:t=>Number(1==t?0:0==t||t%100>0&&t%100<20?1:2),21:t=>Number(t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0),22:t=>Number(1==t?0:2==t?1:(t<0||t>10)&&t%10==0?2:3)};const M=["v1","v2","v3"],L=["v4"],O={zero:0,one:1,two:2,few:3,many:4,other:5};class D{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=t,this.options=e,this.logger=P.create("pluralResolver"),this.options.compatibilityJSON&&!L.includes(this.options.compatibilityJSON)||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=(()=>{const t={};return N.forEach((e=>{e.lngs.forEach((s=>{t[s]={numbers:e.nr,plurals:I[e.fc]}}))})),t})(),this.pluralRulesCache={}}addRule(t,e){this.rules[t]=e}clearCache(){this.pluralRulesCache={}}getRule(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi()){const s=v("dev"===t?"en":t),r=e.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:s,type:r});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let n;try{n=new Intl.PluralRules(s,{type:r})}catch(s){if(!t.match(/-|_/))return;const r=this.languageUtils.getLanguagePartFromCode(t);n=this.getRule(r,e)}return this.pluralRulesCache[i]=n,n}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const s=this.getRule(t,e);return this.shouldUseIntlApi()?s&&s.resolvedOptions().pluralCategories.length>1:s&&s.numbers.length>1}getPluralFormsOfKey(t,e){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(t,s).map((t=>`${e}${t}`))}getSuffixes(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const s=this.getRule(t,e);return s?this.shouldUseIntlApi()?s.resolvedOptions().pluralCategories.sort(((t,e)=>O[t]-O[e])).map((t=>`${this.options.prepend}${e.ordinal?`ordinal${this.options.prepend}`:""}${t}`)):s.numbers.map((s=>this.getSuffix(t,s,e))):[]}getSuffix(t,e){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=this.getRule(t,s);return r?this.shouldUseIntlApi()?`${this.options.prepend}${s.ordinal?`ordinal${this.options.prepend}`:""}${r.select(e)}`:this.getSuffixRetroCompatible(r,e):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,e){const s=t.noAbs?t.plurals(e):t.plurals(Math.abs(e));let r=t.numbers[s];this.options.simplifyPluralSuffix&&2===t.numbers.length&&1===t.numbers[0]&&(2===r?r="plural":1===r&&(r=""));const i=()=>this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString();return"v1"===this.options.compatibilityJSON?1===r?"":"number"==typeof r?`_plural_${r.toString()}`:i():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===t.numbers.length&&1===t.numbers[0]?i():this.options.prepend&&s.toString()?this.options.prepend+s.toString():s.toString()}shouldUseIntlApi(){return!M.includes(this.options.compatibilityJSON)}}const F=function(t,e,s){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",n=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=((t,e,s)=>{const r=u(t,s);return void 0!==r?r:u(e,s)})(t,e,s);return!a&&n&&r(s)&&(a=x(t,s,i),void 0===a&&(a=x(e,s,i))),a},R=t=>t.replace(/\$/g,"$$$$");class j{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=P.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(t=>t),this.init(t)}init(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:e,escapeValue:s,useRawValueToEscape:r,prefix:i,prefixEscaped:n,suffix:a,suffixEscaped:o,formatSeparator:c,unescapeSuffix:l,unescapePrefix:h,nestingPrefix:u,nestingPrefixEscaped:p,nestingSuffix:f,nestingSuffixEscaped:y,nestingOptionsSeparator:g,maxReplaces:x,alwaysFormat:v}=t.interpolation;this.escape=void 0!==e?e:m,this.escapeValue=void 0===s||s,this.useRawValueToEscape=void 0!==r&&r,this.prefix=i?d(i):n||"{{",this.suffix=a?d(a):o||"}}",this.formatSeparator=c||",",this.unescapePrefix=l?"":h||"-",this.unescapeSuffix=this.unescapePrefix?"":l||"",this.nestingPrefix=u?d(u):p||d("$t("),this.nestingSuffix=f?d(f):y||d(")"),this.nestingOptionsSeparator=g||",",this.maxReplaces=x||1e3,this.alwaysFormat=void 0!==v&&v,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(t,e)=>t&&t.source===e?(t.lastIndex=0,t):new RegExp(e,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,e,s,i){let a,o,c;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},h=t=>{if(t.indexOf(this.formatSeparator)<0){const r=F(e,l,t,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(r,void 0,s,{...i,...e,interpolationkey:t}):r}const r=t.split(this.formatSeparator),n=r.shift().trim(),a=r.join(this.formatSeparator).trim();return this.format(F(e,l,n,this.options.keySeparator,this.options.ignoreJSONStructure),a,s,{...i,...e,interpolationkey:n})};this.resetRegExp();const u=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,p=i&&i.interpolation&&void 0!==i.interpolation.skipOnVariables?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:t=>R(t)},{regex:this.regexp,safeValue:t=>this.escapeValue?R(this.escape(t)):R(t)}].forEach((e=>{for(c=0;a=e.regex.exec(t);){const s=a[1].trim();if(o=h(s),void 0===o)if("function"==typeof u){const e=u(t,a,i);o=r(e)?e:""}else if(i&&Object.prototype.hasOwnProperty.call(i,s))o="";else{if(p){o=a[0];continue}this.logger.warn(`missed to pass in variable ${s} for interpolating ${t}`),o=""}else r(o)||this.useRawValueToEscape||(o=n(o));const l=e.safeValue(o);if(t=t.replace(a[0],l),p?(e.regex.lastIndex+=o.length,e.regex.lastIndex-=a[0].length):e.regex.lastIndex=0,c++,c>=this.maxReplaces)break}})),t}nest(t,e){let s,i,a,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const c=(t,e)=>{const s=this.nestingOptionsSeparator;if(t.indexOf(s)<0)return t;const r=t.split(new RegExp(`${s}[ ]*{`));let i=`{${r[1]}`;t=r[0],i=this.interpolate(i,a);const n=i.match(/'/g),o=i.match(/"/g);(n&&n.length%2==0&&!o||o.length%2!=0)&&(i=i.replace(/'/g,'"'));try{a=JSON.parse(i),e&&(a={...e,...a})}catch(e){return this.logger.warn(`failed parsing options string in nesting for key ${t}`,e),`${t}${s}${i}`}return a.defaultValue&&a.defaultValue.indexOf(this.prefix)>-1&&delete a.defaultValue,t};for(;s=this.nestingRegexp.exec(t);){let l=[];a={...o},a=a.replace&&!r(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let h=!1;if(-1!==s[0].indexOf(this.formatSeparator)&&!/{.*}/.test(s[1])){const t=s[1].split(this.formatSeparator).map((t=>t.trim()));s[1]=t.shift(),l=t,h=!0}if(i=e(c.call(this,s[1].trim(),a),a),i&&s[0]===t&&!r(i))return i;r(i)||(i=n(i)),i||(this.logger.warn(`missed to resolve ${s[1]} for nesting ${t}`),i=""),h&&(i=l.reduce(((t,e)=>this.format(t,e,o.lng,{...o,interpolationkey:s[1].trim()})),i.trim())),t=t.replace(s[0],i),this.regexp.lastIndex=0}return t}}const B=t=>{const e={};return(s,r,i)=>{let n=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(n={...n,[i.interpolationkey]:void 0});const a=r+JSON.stringify(n);let o=e[a];return o||(o=t(v(r),i),e[a]=o),o(s)}};class Y{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=P.create("formatter"),this.options=t,this.formats={number:B(((t,e)=>{const s=new Intl.NumberFormat(t,{...e});return t=>s.format(t)})),currency:B(((t,e)=>{const s=new Intl.NumberFormat(t,{...e,style:"currency"});return t=>s.format(t)})),datetime:B(((t,e)=>{const s=new Intl.DateTimeFormat(t,{...e});return t=>s.format(t)})),relativetime:B(((t,e)=>{const s=new Intl.RelativeTimeFormat(t,{...e});return t=>s.format(t,e.range||"day")})),list:B(((t,e)=>{const s=new Intl.ListFormat(t,{...e});return t=>s.format(t)}))},this.init(t)}init(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};this.formatSeparator=e.interpolation.formatSeparator||","}add(t,e){this.formats[t.toLowerCase().trim()]=e}addCached(t,e){this.formats[t.toLowerCase().trim()]=B(e)}format(t,e,s){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const i=e.split(this.formatSeparator);if(i.length>1&&i[0].indexOf("(")>1&&i[0].indexOf(")")<0&&i.find((t=>t.indexOf(")")>-1))){const t=i.findIndex((t=>t.indexOf(")")>-1));i[0]=[i[0],...i.splice(1,t)].join(this.formatSeparator)}return i.reduce(((t,e)=>{const{formatName:i,formatOptions:n}=(t=>{let e=t.toLowerCase().trim();const s={};if(t.indexOf("(")>-1){const r=t.split("(");e=r[0].toLowerCase().trim();const i=r[1].substring(0,r[1].length-1);"currency"===e&&i.indexOf(":")<0?s.currency||(s.currency=i.trim()):"relativetime"===e&&i.indexOf(":")<0?s.range||(s.range=i.trim()):i.split(";").forEach((t=>{if(t){const[e,...r]=t.split(":"),i=r.join(":").trim().replace(/^'+|'+$/g,""),n=e.trim();s[n]||(s[n]=i),"false"===i&&(s[n]=!1),"true"===i&&(s[n]=!0),isNaN(i)||(s[n]=parseInt(i,10))}}))}return{formatName:e,formatOptions:s}})(e);if(this.formats[i]){let e=t;try{const a=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},o=a.locale||a.lng||r.locale||r.lng||s;e=this.formats[i](t,o,{...n,...r,...a})}catch(t){this.logger.warn(t)}return e}return this.logger.warn(`there was no format function for ${i}`),t}),t)}}class U extends T{constructor(t,e,s){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=t,this.store=e,this.services=s,this.languageUtils=s.languageUtils,this.options=r,this.logger=P.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(s,r.backend,r)}queueLoad(t,e,s,r){const i={},n={},a={},o={};return t.forEach((t=>{let r=!0;e.forEach((e=>{const a=`${t}|${e}`;!s.reload&&this.store.hasResourceBundle(t,e)?this.state[a]=2:this.state[a]<0||(1===this.state[a]?void 0===n[a]&&(n[a]=!0):(this.state[a]=1,r=!1,void 0===n[a]&&(n[a]=!0),void 0===i[a]&&(i[a]=!0),void 0===o[e]&&(o[e]=!0)))})),r||(a[t]=!0)})),(Object.keys(i).length||Object.keys(n).length)&&this.queue.push({pending:n,pendingCount:Object.keys(n).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(n),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(o)}}loaded(t,e,s){const r=t.split("|"),i=r[0],n=r[1];e&&this.emit("failedLoading",i,n,e),!e&&s&&this.store.addResourceBundle(i,n,s,void 0,void 0,{skipCopy:!0}),this.state[t]=e?-1:2,e&&s&&(this.state[t]=0);const a={};this.queue.forEach((s=>{((t,e,s,r)=>{const{obj:i,k:n}=l(t,e,Object);i[n]=i[n]||[],i[n].push(s)})(s.loaded,[i],n),((t,e)=>{void 0!==t.pending[e]&&(delete t.pending[e],t.pendingCount--)})(s,t),e&&s.errors.push(e),0!==s.pendingCount||s.done||(Object.keys(s.loaded).forEach((t=>{a[t]||(a[t]={});const e=s.loaded[t];e.length&&e.forEach((e=>{void 0===a[t][e]&&(a[t][e]=!0)}))})),s.done=!0,s.errors.length?s.callback(s.errors):s.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((t=>!t.done))}read(t,e,s){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,n=arguments.length>5?arguments[5]:void 0;if(!t.length)return n(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:t,ns:e,fcName:s,tried:r,wait:i,callback:n});this.readingCalls++;const a=(a,o)=>{if(this.readingCalls--,this.waitingReads.length>0){const t=this.waitingReads.shift();this.read(t.lng,t.ns,t.fcName,t.tried,t.wait,t.callback)}a&&o&&r<this.maxRetries?setTimeout((()=>{this.read.call(this,t,e,s,r+1,2*i,n)}),i):n(a,o)},o=this.backend[s].bind(this.backend);if(2!==o.length)return o(t,e,a);try{const s=o(t,e);s&&"function"==typeof s.then?s.then((t=>a(null,t))).catch(a):a(null,s)}catch(t){a(t)}}prepareLoading(t,e){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();r(t)&&(t=this.languageUtils.toResolveHierarchy(t)),r(e)&&(e=[e]);const n=this.queueLoad(t,e,s,i);if(!n.toLoad.length)return n.pending.length||i(),null;n.toLoad.forEach((t=>{this.loadOne(t)}))}load(t,e,s){this.prepareLoading(t,e,{},s)}reload(t,e,s){this.prepareLoading(t,e,{reload:!0},s)}loadOne(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const s=t.split("|"),r=s[0],i=s[1];this.read(r,i,"read",void 0,void 0,((s,n)=>{s&&this.logger.warn(`${e}loading namespace ${i} for language ${r} failed`,s),!s&&n&&this.logger.log(`${e}loaded namespace ${i} for language ${r}`,n),this.loaded(t,s,n)}))}saveMissing(t,e,s,r,i){let n=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(e))this.logger.warn(`did not save key "${s}" as the namespace "${e}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");else if(null!=s&&""!==s){if(this.backend&&this.backend.create){const o={...n,isUpdate:i},c=this.backend.create.bind(this.backend);if(c.length<6)try{let i;i=5===c.length?c(t,e,s,r,o):c(t,e,s,r),i&&"function"==typeof i.then?i.then((t=>a(null,t))).catch(a):a(null,i)}catch(t){a(t)}else c(t,e,s,r,a,o)}t&&t[0]&&this.store.addResource(t[0],e,s,r)}}}const H=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:t=>{let e={};if("object"==typeof t[1]&&(e=t[1]),r(t[1])&&(e.defaultValue=t[1]),r(t[2])&&(e.tDescription=t[2]),"object"==typeof t[2]||"object"==typeof t[3]){const s=t[3]||t[2];Object.keys(s).forEach((t=>{e[t]=s[t]}))}return e},interpolation:{escapeValue:!0,format:t=>t,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),W=t=>(r(t.ns)&&(t.ns=[t.ns]),r(t.fallbackLng)&&(t.fallbackLng=[t.fallbackLng]),r(t.fallbackNS)&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t),$=()=>{};class z extends T{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;var s;if(super(),this.options=W(t),this.services={},this.logger=P,this.modules={external:[]},s=this,Object.getOwnPropertyNames(Object.getPrototypeOf(s)).forEach((t=>{"function"==typeof s[t]&&(s[t]=s[t].bind(s))})),e&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,e),this;setTimeout((()=>{this.init(t,e)}),0)}}init(){var t=this;let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},s=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,"function"==typeof e&&(s=e,e={}),!e.defaultNS&&!1!==e.defaultNS&&e.ns&&(r(e.ns)?e.defaultNS=e.ns:e.ns.indexOf("translation")<0&&(e.defaultNS=e.ns[0]));const n=H();this.options={...n,...this.options,...W(e)},"v1"!==this.options.compatibilityAPI&&(this.options.interpolation={...n.interpolation,...this.options.interpolation}),void 0!==e.keySeparator&&(this.options.userDefinedKeySeparator=e.keySeparator),void 0!==e.nsSeparator&&(this.options.userDefinedNsSeparator=e.nsSeparator);const a=t=>t?"function"==typeof t?new t:t:null;if(!this.options.isClone){let e;this.modules.logger?P.init(a(this.modules.logger),this.options):P.init(null,this.options),this.modules.formatter?e=this.modules.formatter:"undefined"!=typeof Intl&&(e=Y);const s=new C(this.options);this.store=new S(this.options.resources,this.options);const r=this.services;r.logger=P,r.resourceStore=this.store,r.languageUtils=s,r.pluralResolver=new D(s,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!e||this.options.interpolation.format&&this.options.interpolation.format!==n.interpolation.format||(r.formatter=a(e),r.formatter.init(r,this.options),this.options.interpolation.format=r.formatter.format.bind(r.formatter)),r.interpolator=new j(this.options),r.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},r.backendConnector=new U(a(this.modules.backend),r.resourceStore,r,this.options),r.backendConnector.on("*",(function(e){for(var s=arguments.length,r=new Array(s>1?s-1:0),i=1;i<s;i++)r[i-1]=arguments[i];t.emit(e,...r)})),this.modules.languageDetector&&(r.languageDetector=a(this.modules.languageDetector),r.languageDetector.init&&r.languageDetector.init(r,this.options.detection,this.options)),this.modules.i18nFormat&&(r.i18nFormat=a(this.modules.i18nFormat),r.i18nFormat.init&&r.i18nFormat.init(this)),this.translator=new k(this.services,this.options),this.translator.on("*",(function(e){for(var s=arguments.length,r=new Array(s>1?s-1:0),i=1;i<s;i++)r[i-1]=arguments[i];t.emit(e,...r)})),this.modules.external.forEach((t=>{t.init&&t.init(this)}))}if(this.format=this.options.interpolation.format,s||(s=$),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const t=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);t.length>0&&"dev"!==t[0]&&(this.options.lng=t[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach((e=>{this[e]=function(){return t.store[e](...arguments)}})),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((e=>{this[e]=function(){return t.store[e](...arguments),t}}));const o=i(),c=()=>{const t=(t,e)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),o.resolve(e),s(t,e)};if(this.languages&&"v1"!==this.options.compatibilityAPI&&!this.isInitialized)return t(null,this.t.bind(this));this.changeLanguage(this.options.lng,t)};return this.options.resources||!this.options.initImmediate?c():setTimeout(c,0),o}loadResources(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:$;const s=r(t)?t:this.language;if("function"==typeof t&&(e=t),!this.options.resources||this.options.partialBundledLanguages){if(s&&"cimode"===s.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return e();const t=[],r=e=>{e&&"cimode"!==e&&this.services.languageUtils.toResolveHierarchy(e).forEach((e=>{"cimode"!==e&&t.indexOf(e)<0&&t.push(e)}))};s?r(s):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((t=>r(t))),this.options.preload&&this.options.preload.forEach((t=>r(t))),this.services.backendConnector.load(t,this.options.ns,(t=>{t||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),e(t)}))}else e(null)}reloadResources(t,e,s){const r=i();return"function"==typeof t&&(s=t,t=void 0),"function"==typeof e&&(s=e,e=void 0),t||(t=this.languages),e||(e=this.options.ns),s||(s=$),this.services.backendConnector.reload(t,e,(t=>{r.resolve(),s(t)})),r}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===t.type&&(this.modules.backend=t),("logger"===t.type||t.log&&t.warn&&t.error)&&(this.modules.logger=t),"languageDetector"===t.type&&(this.modules.languageDetector=t),"i18nFormat"===t.type&&(this.modules.i18nFormat=t),"postProcessor"===t.type&&A.addPostProcessor(t),"formatter"===t.type&&(this.modules.formatter=t),"3rdParty"===t.type&&this.modules.external.push(t),this}setResolvedLanguage(t){if(t&&this.languages&&!(["cimode","dev"].indexOf(t)>-1))for(let t=0;t<this.languages.length;t++){const e=this.languages[t];if(!(["cimode","dev"].indexOf(e)>-1)&&this.store.hasLanguageSomeTranslations(e)){this.resolvedLanguage=e;break}}}changeLanguage(t,e){var s=this;this.isLanguageChangingTo=t;const n=i();this.emit("languageChanging",t);const a=t=>{this.language=t,this.languages=this.services.languageUtils.toResolveHierarchy(t),this.resolvedLanguage=void 0,this.setResolvedLanguage(t)},o=(t,r)=>{r?(a(r),this.translator.changeLanguage(r),this.isLanguageChangingTo=void 0,this.emit("languageChanged",r),this.logger.log("languageChanged",r)):this.isLanguageChangingTo=void 0,n.resolve((function(){return s.t(...arguments)})),e&&e(t,(function(){return s.t(...arguments)}))},c=e=>{t||e||!this.services.languageDetector||(e=[]);const s=r(e)?e:this.services.languageUtils.getBestMatchFromCodes(e);s&&(this.language||a(s),this.translator.language||this.translator.changeLanguage(s),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(s)),this.loadResources(s,(t=>{o(t,s)}))};return t||!this.services.languageDetector||this.services.languageDetector.async?!t&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(c):this.services.languageDetector.detect(c):c(t):c(this.services.languageDetector.detect()),n}getFixedT(t,e,s){var i=this;const n=function(t,e){let r;if("object"!=typeof e){for(var a=arguments.length,o=new Array(a>2?a-2:0),c=2;c<a;c++)o[c-2]=arguments[c];r=i.options.overloadTranslationOptionHandler([t,e].concat(o))}else r={...e};r.lng=r.lng||n.lng,r.lngs=r.lngs||n.lngs,r.ns=r.ns||n.ns,""!==r.keyPrefix&&(r.keyPrefix=r.keyPrefix||s||n.keyPrefix);const l=i.options.keySeparator||".";let h;return h=r.keyPrefix&&Array.isArray(t)?t.map((t=>`${r.keyPrefix}${l}${t}`)):r.keyPrefix?`${r.keyPrefix}${l}${t}`:t,i.t(h,r)};return r(t)?n.lng=t:n.lngs=t,n.ns=e,n.keyPrefix=s,n}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const s=e.lng||this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===s.toLowerCase())return!0;const n=(t,e)=>{const s=this.services.backendConnector.state[`${t}|${e}`];return-1===s||0===s||2===s};if(e.precheck){const t=e.precheck(this,n);if(void 0!==t)return t}return!(!this.hasResourceBundle(s,t)&&this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages)&&(!n(s,t)||r&&!n(i,t)))}loadNamespaces(t,e){const s=i();return this.options.ns?(r(t)&&(t=[t]),t.forEach((t=>{this.options.ns.indexOf(t)<0&&this.options.ns.push(t)})),this.loadResources((t=>{s.resolve(),e&&e(t)})),s):(e&&e(),Promise.resolve())}loadLanguages(t,e){const s=i();r(t)&&(t=[t]);const n=this.options.preload||[],a=t.filter((t=>n.indexOf(t)<0&&this.services.languageUtils.isSupportedCode(t)));return a.length?(this.options.preload=n.concat(a),this.loadResources((t=>{s.resolve(),e&&e(t)})),s):(e&&e(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const e=this.services&&this.services.languageUtils||new C(H());return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(e.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){return new z(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}cloneInstance(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:$;const s=t.forkResourceStore;s&&delete t.forkResourceStore;const r={...this.options,...t,isClone:!0},i=new z(r);return void 0===t.debug&&void 0===t.prefix||(i.logger=i.logger.clone(t)),["store","services","language"].forEach((t=>{i[t]=this[t]})),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},s&&(i.store=new S(this.store.data,r),i.services.resourceStore=i.store),i.translator=new k(i.services,r),i.translator.on("*",(function(t){for(var e=arguments.length,s=new Array(e>1?e-1:0),r=1;r<e;r++)s[r-1]=arguments[r];i.emit(t,...s)})),i.init(r,e),i.translator.options=r,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const V=z.createInstance();V.createInstance=z.createInstance;const q=V.createInstance,K=V.dir,J=V.init,G=V.loadResources,X=V.reloadResources,Z=V.use,Q=V.changeLanguage,tt=V.getFixedT,et=V.t,st=V.exists,rt=V.setDefaultNamespace,it=V.hasLoadedNamespace,nt=V.loadNamespaces,at=V.loadLanguages}}]);
|